@undefine-ui/design-system 3.5.2 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs +1137 -497
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +218 -4
- package/dist/index.d.ts +218 -4
- package/dist/index.js +1121 -481
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63,6 +63,8 @@ __export(index_exports, {
|
|
|
63
63
|
FilterDropdown: () => FilterDropdown,
|
|
64
64
|
FilterList: () => FilterList,
|
|
65
65
|
Form: () => Form,
|
|
66
|
+
GooglePlacesAutocomplete: () => GooglePlacesAutocomplete,
|
|
67
|
+
GooglePlacesProvider: () => GooglePlacesProvider,
|
|
66
68
|
HelpCircle: () => HelpCircle,
|
|
67
69
|
Icon: () => Icon,
|
|
68
70
|
Image: () => Image,
|
|
@@ -76,6 +78,7 @@ __export(index_exports, {
|
|
|
76
78
|
LocalStorageGetItem: () => LocalStorageGetItem,
|
|
77
79
|
Logo: () => Logo,
|
|
78
80
|
LongArrowUpLeftSolid: () => LongArrowUpLeftSolid,
|
|
81
|
+
MapPinXMark: () => MapPinXMark,
|
|
79
82
|
MoreHorizontal: () => MoreHorizontal,
|
|
80
83
|
NavArrowDown: () => NavArrowDown,
|
|
81
84
|
NavArrowDownSolid: () => NavArrowDownSolid,
|
|
@@ -89,10 +92,12 @@ __export(index_exports, {
|
|
|
89
92
|
RHFDatePicker: () => RHFDatePicker,
|
|
90
93
|
RHFDateRangePicker: () => RHFDateRangePicker,
|
|
91
94
|
RHFDateTimePicker: () => RHFDateTimePicker,
|
|
95
|
+
RHFGooglePlacesAutocomplete: () => RHFGooglePlacesAutocomplete,
|
|
92
96
|
RHFMultiCheckbox: () => RHFMultiCheckbox,
|
|
93
97
|
RHFMultiSwitch: () => RHFMultiSwitch,
|
|
94
98
|
RHFOTPInput: () => RHFOTPInput,
|
|
95
99
|
RHFRadioGroup: () => RHFRadioGroup,
|
|
100
|
+
RHFSelect: () => RHFSelect,
|
|
96
101
|
RHFSwitch: () => RHFSwitch,
|
|
97
102
|
RHFTextField: () => RHFTextField,
|
|
98
103
|
RHFTimePicker: () => RHFTimePicker,
|
|
@@ -183,6 +188,7 @@ __export(index_exports, {
|
|
|
183
188
|
orderBy: () => orderBy,
|
|
184
189
|
paper: () => paper,
|
|
185
190
|
paramCase: () => paramCase,
|
|
191
|
+
parseAddressComponents: () => parseAddressComponents,
|
|
186
192
|
primary: () => primary,
|
|
187
193
|
primaryFont: () => primaryFont,
|
|
188
194
|
pxToRem: () => pxToRem,
|
|
@@ -214,6 +220,9 @@ __export(index_exports, {
|
|
|
214
220
|
useCountdownDate: () => useCountdownDate,
|
|
215
221
|
useCountdownSeconds: () => useCountdownSeconds,
|
|
216
222
|
useEventListener: () => useEventListener,
|
|
223
|
+
useGooglePlacesAutocomplete: () => useGooglePlacesAutocomplete,
|
|
224
|
+
useGooglePlacesContext: () => useGooglePlacesContext,
|
|
225
|
+
useGooglePlacesLoaded: () => useGooglePlacesLoaded,
|
|
217
226
|
useLocalStorage: () => useLocalStorage,
|
|
218
227
|
usePopover: () => usePopover,
|
|
219
228
|
useResponsive: () => useResponsive,
|
|
@@ -1853,7 +1862,10 @@ var MuiList = {
|
|
|
1853
1862
|
styleOverrides: {
|
|
1854
1863
|
root: ({ theme }) => ({
|
|
1855
1864
|
'&[role="listbox"]': {
|
|
1856
|
-
padding: theme.spacing(0, 1)
|
|
1865
|
+
// padding: theme.spacing(0, 1)
|
|
1866
|
+
"& .MuiMenuItem-root": {
|
|
1867
|
+
margin: theme.spacing(0.5, 1)
|
|
1868
|
+
}
|
|
1857
1869
|
}
|
|
1858
1870
|
})
|
|
1859
1871
|
}
|
|
@@ -2413,6 +2425,7 @@ __export(components_exports, {
|
|
|
2413
2425
|
KeyCommand: () => KeyCommand,
|
|
2414
2426
|
Loader: () => Loader,
|
|
2415
2427
|
LongArrowUpLeftSolid: () => LongArrowUpLeftSolid,
|
|
2428
|
+
MapPinXMark: () => MapPinXMark,
|
|
2416
2429
|
MoreHorizontal: () => MoreHorizontal,
|
|
2417
2430
|
NavArrowDown: () => NavArrowDown,
|
|
2418
2431
|
NavArrowDownSolid: () => NavArrowDownSolid,
|
|
@@ -3827,10 +3840,65 @@ var RadioSelect = (props) => {
|
|
|
3827
3840
|
);
|
|
3828
3841
|
};
|
|
3829
3842
|
|
|
3830
|
-
// src/components/Icon/components/
|
|
3843
|
+
// src/components/Icon/components/MapPinXMark.tsx
|
|
3831
3844
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3832
|
-
var
|
|
3845
|
+
var MapPinXMark = (props) => {
|
|
3833
3846
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
3847
|
+
"svg",
|
|
3848
|
+
{
|
|
3849
|
+
width: "24",
|
|
3850
|
+
height: "24",
|
|
3851
|
+
viewBox: "0 0 24 24",
|
|
3852
|
+
fill: "none",
|
|
3853
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3854
|
+
...props,
|
|
3855
|
+
children: [
|
|
3856
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("g", { clipPath: "url(#clip0_45_32538)", children: [
|
|
3857
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3858
|
+
"path",
|
|
3859
|
+
{
|
|
3860
|
+
fillRule: "evenodd",
|
|
3861
|
+
clipRule: "evenodd",
|
|
3862
|
+
d: "M9 2.75C5.568 2.75 2.75 5.61771 2.75 9.2C2.75 10.0022 3.11319 11.0386 3.75164 12.205C4.37955 13.3521 5.22616 14.5407 6.08726 15.6247C6.94615 16.7059 7.80699 17.6674 8.45407 18.3594C8.66057 18.5803 8.84491 18.7733 9 18.9335C9.15509 18.7733 9.33943 18.5803 9.54593 18.3594C10.193 17.6674 11.0539 16.7059 11.9127 15.6247C12.7738 14.5407 13.6204 13.3521 14.2484 12.205C14.8868 11.0386 15.25 10.0022 15.25 9.2C15.25 5.61771 12.432 2.75 9 2.75ZM9 20C8.47648 20.5371 8.47638 20.537 8.47625 20.5368L8.47017 20.5309L8.4539 20.5149L8.39273 20.4544C8.33966 20.4017 8.26256 20.3245 8.16486 20.2253C7.9695 20.0269 7.69152 19.7402 7.35843 19.3839C6.69301 18.6723 5.80385 17.6794 4.91275 16.5577C4.02384 15.4387 3.12045 14.1758 2.43586 12.9252C1.76181 11.6938 1.25 10.386 1.25 9.2C1.25 4.82939 4.70002 1.25 9 1.25C13.3 1.25 16.75 4.82939 16.75 9.2C16.75 10.386 16.2382 11.6938 15.5641 12.9252C14.8796 14.1758 13.9762 15.4387 13.0873 16.5577C12.1961 17.6794 11.307 18.6723 10.6416 19.3839C10.3085 19.7402 10.0305 20.0269 9.83514 20.2253C9.73744 20.3245 9.66034 20.4017 9.60727 20.4544L9.5461 20.5149L9.52983 20.5309L9.52414 20.5364C9.52401 20.5366 9.52352 20.5371 9 20ZM9 20L9.52414 20.5364L9 21.0474L8.47625 20.5368L9 20Z",
|
|
3863
|
+
fill: "black"
|
|
3864
|
+
}
|
|
3865
|
+
),
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3867
|
+
"path",
|
|
3868
|
+
{
|
|
3869
|
+
d: "M9 10C9.55228 10 10 9.55228 10 9C10 8.44772 9.55228 8 9 8C8.44772 8 8 8.44772 8 9C8 9.55228 8.44772 10 9 10Z",
|
|
3870
|
+
fill: "black"
|
|
3871
|
+
}
|
|
3872
|
+
),
|
|
3873
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3874
|
+
"path",
|
|
3875
|
+
{
|
|
3876
|
+
fillRule: "evenodd",
|
|
3877
|
+
clipRule: "evenodd",
|
|
3878
|
+
d: "M9 8.75C8.86193 8.75 8.75 8.86193 8.75 9C8.75 9.13807 8.86193 9.25 9 9.25C9.13807 9.25 9.25 9.13807 9.25 9C9.25 8.86193 9.13807 8.75 9 8.75ZM7.25 9C7.25 8.0335 8.0335 7.25 9 7.25C9.9665 7.25 10.75 8.0335 10.75 9C10.75 9.9665 9.9665 10.75 9 10.75C8.0335 10.75 7.25 9.9665 7.25 9Z",
|
|
3879
|
+
fill: "black"
|
|
3880
|
+
}
|
|
3881
|
+
),
|
|
3882
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3883
|
+
"path",
|
|
3884
|
+
{
|
|
3885
|
+
fillRule: "evenodd",
|
|
3886
|
+
clipRule: "evenodd",
|
|
3887
|
+
d: "M16.3489 16.3483C16.6418 16.0555 17.1167 16.0555 17.4096 16.3483L19.0006 17.9393L20.5916 16.3483C20.8844 16.0555 21.3593 16.0555 21.6522 16.3483C21.9451 16.6412 21.9451 17.1161 21.6522 17.409L20.0612 19L21.6522 20.591C21.9451 20.8839 21.9451 21.3588 21.6522 21.6517C21.3593 21.9445 20.8844 21.9445 20.5916 21.6517L19.0006 20.0607L17.4096 21.6517C17.1167 21.9445 16.6418 21.9445 16.3489 21.6517C16.056 21.3588 16.056 20.8839 16.3489 20.591L17.9399 19L16.3489 17.409C16.056 17.1161 16.056 16.6412 16.3489 16.3483Z",
|
|
3888
|
+
fill: "black"
|
|
3889
|
+
}
|
|
3890
|
+
)
|
|
3891
|
+
] }),
|
|
3892
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("clipPath", { id: "clip0_45_32538", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
3893
|
+
]
|
|
3894
|
+
}
|
|
3895
|
+
);
|
|
3896
|
+
};
|
|
3897
|
+
|
|
3898
|
+
// src/components/Icon/components/SuccessToast.tsx
|
|
3899
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3900
|
+
var SuccessToast = (props) => {
|
|
3901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
3834
3902
|
"svg",
|
|
3835
3903
|
{
|
|
3836
3904
|
width: "30",
|
|
@@ -3840,7 +3908,7 @@ var SuccessToast = (props) => {
|
|
|
3840
3908
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3841
3909
|
...props,
|
|
3842
3910
|
children: [
|
|
3843
|
-
/* @__PURE__ */ (0,
|
|
3911
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3844
3912
|
"rect",
|
|
3845
3913
|
{
|
|
3846
3914
|
x: "0.5",
|
|
@@ -3852,8 +3920,8 @@ var SuccessToast = (props) => {
|
|
|
3852
3920
|
"stroke-opacity": "0.1"
|
|
3853
3921
|
}
|
|
3854
3922
|
),
|
|
3855
|
-
/* @__PURE__ */ (0,
|
|
3856
|
-
/* @__PURE__ */ (0,
|
|
3923
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("rect", { x: "3.5", y: "3.5", width: "23", height: "23", rx: "11.5", stroke: "#22C55E", strokeOpacity: "0.3" }),
|
|
3924
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3857
3925
|
"path",
|
|
3858
3926
|
{
|
|
3859
3927
|
fillRule: "evenodd",
|
|
@@ -3862,7 +3930,7 @@ var SuccessToast = (props) => {
|
|
|
3862
3930
|
fill: "#1AB04F"
|
|
3863
3931
|
}
|
|
3864
3932
|
),
|
|
3865
|
-
/* @__PURE__ */ (0,
|
|
3933
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3866
3934
|
"path",
|
|
3867
3935
|
{
|
|
3868
3936
|
fillRule: "evenodd",
|
|
@@ -3877,9 +3945,9 @@ var SuccessToast = (props) => {
|
|
|
3877
3945
|
};
|
|
3878
3946
|
|
|
3879
3947
|
// src/components/Icon/components/WarningToast.tsx
|
|
3880
|
-
var
|
|
3948
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3881
3949
|
var WarningToast = (props) => {
|
|
3882
|
-
return /* @__PURE__ */ (0,
|
|
3950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3883
3951
|
"svg",
|
|
3884
3952
|
{
|
|
3885
3953
|
width: "30",
|
|
@@ -3889,9 +3957,9 @@ var WarningToast = (props) => {
|
|
|
3889
3957
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3890
3958
|
...props,
|
|
3891
3959
|
children: [
|
|
3892
|
-
/* @__PURE__ */ (0,
|
|
3893
|
-
/* @__PURE__ */ (0,
|
|
3894
|
-
/* @__PURE__ */ (0,
|
|
3960
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("rect", { x: "0.5", y: "0.5", width: "29", height: "29", rx: "14.5", stroke: "#F59E0B", strokeOpacity: "0.1" }),
|
|
3961
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("rect", { x: "3.5", y: "3.5", width: "23", height: "23", rx: "11.5", stroke: "#F59E0B", strokeOpacity: "0.3" }),
|
|
3962
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3895
3963
|
"path",
|
|
3896
3964
|
{
|
|
3897
3965
|
fillRule: "evenodd",
|
|
@@ -3900,7 +3968,7 @@ var WarningToast = (props) => {
|
|
|
3900
3968
|
fill: "#DB8709"
|
|
3901
3969
|
}
|
|
3902
3970
|
),
|
|
3903
|
-
/* @__PURE__ */ (0,
|
|
3971
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3904
3972
|
"path",
|
|
3905
3973
|
{
|
|
3906
3974
|
fillRule: "evenodd",
|
|
@@ -3909,7 +3977,7 @@ var WarningToast = (props) => {
|
|
|
3909
3977
|
fill: "#DB8709"
|
|
3910
3978
|
}
|
|
3911
3979
|
),
|
|
3912
|
-
/* @__PURE__ */ (0,
|
|
3980
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3913
3981
|
"path",
|
|
3914
3982
|
{
|
|
3915
3983
|
fillRule: "evenodd",
|
|
@@ -3924,9 +3992,9 @@ var WarningToast = (props) => {
|
|
|
3924
3992
|
};
|
|
3925
3993
|
|
|
3926
3994
|
// src/components/Icon/components/RadioDefault.tsx
|
|
3927
|
-
var
|
|
3995
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3928
3996
|
var RadioDefault = (props) => {
|
|
3929
|
-
return /* @__PURE__ */ (0,
|
|
3997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3930
3998
|
"svg",
|
|
3931
3999
|
{
|
|
3932
4000
|
width: "16",
|
|
@@ -3935,15 +4003,15 @@ var RadioDefault = (props) => {
|
|
|
3935
4003
|
fill: "none",
|
|
3936
4004
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3937
4005
|
...props,
|
|
3938
|
-
children: /* @__PURE__ */ (0,
|
|
4006
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("rect", { x: "0.5", y: "0.5", width: "15", height: "15", rx: "7.5", stroke: "currentColor" })
|
|
3939
4007
|
}
|
|
3940
4008
|
);
|
|
3941
4009
|
};
|
|
3942
4010
|
|
|
3943
4011
|
// src/components/Icon/components/NavArrowDown.tsx
|
|
3944
|
-
var
|
|
4012
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3945
4013
|
var NavArrowDown = (props) => {
|
|
3946
|
-
return /* @__PURE__ */ (0,
|
|
4014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3947
4015
|
"svg",
|
|
3948
4016
|
{
|
|
3949
4017
|
width: "16",
|
|
@@ -3953,7 +4021,7 @@ var NavArrowDown = (props) => {
|
|
|
3953
4021
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3954
4022
|
...props,
|
|
3955
4023
|
children: [
|
|
3956
|
-
/* @__PURE__ */ (0,
|
|
4024
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3957
4025
|
"path",
|
|
3958
4026
|
{
|
|
3959
4027
|
d: "M4 6L8 10L12 6",
|
|
@@ -3963,7 +4031,7 @@ var NavArrowDown = (props) => {
|
|
|
3963
4031
|
strokeLinejoin: "round"
|
|
3964
4032
|
}
|
|
3965
4033
|
),
|
|
3966
|
-
/* @__PURE__ */ (0,
|
|
4034
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3967
4035
|
"path",
|
|
3968
4036
|
{
|
|
3969
4037
|
fillRule: "evenodd",
|
|
@@ -3978,9 +4046,9 @@ var NavArrowDown = (props) => {
|
|
|
3978
4046
|
};
|
|
3979
4047
|
|
|
3980
4048
|
// src/components/Icon/components/NavArrowLeft.tsx
|
|
3981
|
-
var
|
|
4049
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3982
4050
|
var NavArrowLeft = (props) => {
|
|
3983
|
-
return /* @__PURE__ */ (0,
|
|
4051
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3984
4052
|
"svg",
|
|
3985
4053
|
{
|
|
3986
4054
|
width: "25",
|
|
@@ -3989,7 +4057,7 @@ var NavArrowLeft = (props) => {
|
|
|
3989
4057
|
fill: "none",
|
|
3990
4058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3991
4059
|
...props,
|
|
3992
|
-
children: /* @__PURE__ */ (0,
|
|
4060
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3993
4061
|
"path",
|
|
3994
4062
|
{
|
|
3995
4063
|
fillRule: "evenodd",
|
|
@@ -4003,9 +4071,9 @@ var NavArrowLeft = (props) => {
|
|
|
4003
4071
|
};
|
|
4004
4072
|
|
|
4005
4073
|
// src/components/Icon/components/NavArrowRight.tsx
|
|
4006
|
-
var
|
|
4074
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4007
4075
|
var NavArrowRight = (props) => {
|
|
4008
|
-
return /* @__PURE__ */ (0,
|
|
4076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4009
4077
|
"svg",
|
|
4010
4078
|
{
|
|
4011
4079
|
width: "25",
|
|
@@ -4014,7 +4082,7 @@ var NavArrowRight = (props) => {
|
|
|
4014
4082
|
fill: "none",
|
|
4015
4083
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4016
4084
|
...props,
|
|
4017
|
-
children: /* @__PURE__ */ (0,
|
|
4085
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4018
4086
|
"path",
|
|
4019
4087
|
{
|
|
4020
4088
|
fillRule: "evenodd",
|
|
@@ -4028,9 +4096,9 @@ var NavArrowRight = (props) => {
|
|
|
4028
4096
|
};
|
|
4029
4097
|
|
|
4030
4098
|
// src/components/Icon/components/MoreHorizontal.tsx
|
|
4031
|
-
var
|
|
4099
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4032
4100
|
var MoreHorizontal = (props) => {
|
|
4033
|
-
return /* @__PURE__ */ (0,
|
|
4101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
4034
4102
|
"svg",
|
|
4035
4103
|
{
|
|
4036
4104
|
width: "24",
|
|
@@ -4040,14 +4108,14 @@ var MoreHorizontal = (props) => {
|
|
|
4040
4108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4041
4109
|
...props,
|
|
4042
4110
|
children: [
|
|
4043
|
-
/* @__PURE__ */ (0,
|
|
4111
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4044
4112
|
"path",
|
|
4045
4113
|
{
|
|
4046
4114
|
d: "M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z",
|
|
4047
4115
|
fill: "currentColor"
|
|
4048
4116
|
}
|
|
4049
4117
|
),
|
|
4050
|
-
/* @__PURE__ */ (0,
|
|
4118
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4051
4119
|
"path",
|
|
4052
4120
|
{
|
|
4053
4121
|
fillRule: "evenodd",
|
|
@@ -4056,14 +4124,14 @@ var MoreHorizontal = (props) => {
|
|
|
4056
4124
|
fill: "currentColor"
|
|
4057
4125
|
}
|
|
4058
4126
|
),
|
|
4059
|
-
/* @__PURE__ */ (0,
|
|
4127
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4060
4128
|
"path",
|
|
4061
4129
|
{
|
|
4062
4130
|
d: "M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",
|
|
4063
4131
|
fill: "currentColor"
|
|
4064
4132
|
}
|
|
4065
4133
|
),
|
|
4066
|
-
/* @__PURE__ */ (0,
|
|
4134
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4067
4135
|
"path",
|
|
4068
4136
|
{
|
|
4069
4137
|
fillRule: "evenodd",
|
|
@@ -4072,14 +4140,14 @@ var MoreHorizontal = (props) => {
|
|
|
4072
4140
|
fill: "currentColor"
|
|
4073
4141
|
}
|
|
4074
4142
|
),
|
|
4075
|
-
/* @__PURE__ */ (0,
|
|
4143
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4076
4144
|
"path",
|
|
4077
4145
|
{
|
|
4078
4146
|
d: "M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z",
|
|
4079
4147
|
fill: "currentColor"
|
|
4080
4148
|
}
|
|
4081
4149
|
),
|
|
4082
|
-
/* @__PURE__ */ (0,
|
|
4150
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4083
4151
|
"path",
|
|
4084
4152
|
{
|
|
4085
4153
|
fillRule: "evenodd",
|
|
@@ -4094,9 +4162,9 @@ var MoreHorizontal = (props) => {
|
|
|
4094
4162
|
};
|
|
4095
4163
|
|
|
4096
4164
|
// src/components/Icon/components/ClipboardCheck.tsx
|
|
4097
|
-
var
|
|
4165
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4098
4166
|
var ClipboardCheck = (props) => {
|
|
4099
|
-
return /* @__PURE__ */ (0,
|
|
4167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4100
4168
|
"svg",
|
|
4101
4169
|
{
|
|
4102
4170
|
width: "24",
|
|
@@ -4106,7 +4174,7 @@ var ClipboardCheck = (props) => {
|
|
|
4106
4174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4107
4175
|
...props,
|
|
4108
4176
|
children: [
|
|
4109
|
-
/* @__PURE__ */ (0,
|
|
4177
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4110
4178
|
"path",
|
|
4111
4179
|
{
|
|
4112
4180
|
fillRule: "evenodd",
|
|
@@ -4115,7 +4183,7 @@ var ClipboardCheck = (props) => {
|
|
|
4115
4183
|
fill: "currentColor"
|
|
4116
4184
|
}
|
|
4117
4185
|
),
|
|
4118
|
-
/* @__PURE__ */ (0,
|
|
4186
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4119
4187
|
"path",
|
|
4120
4188
|
{
|
|
4121
4189
|
fillRule: "evenodd",
|
|
@@ -4124,7 +4192,7 @@ var ClipboardCheck = (props) => {
|
|
|
4124
4192
|
fill: "currentColor"
|
|
4125
4193
|
}
|
|
4126
4194
|
),
|
|
4127
|
-
/* @__PURE__ */ (0,
|
|
4195
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4128
4196
|
"path",
|
|
4129
4197
|
{
|
|
4130
4198
|
fillRule: "evenodd",
|
|
@@ -4133,7 +4201,7 @@ var ClipboardCheck = (props) => {
|
|
|
4133
4201
|
fill: "currentColor"
|
|
4134
4202
|
}
|
|
4135
4203
|
),
|
|
4136
|
-
/* @__PURE__ */ (0,
|
|
4204
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4137
4205
|
"path",
|
|
4138
4206
|
{
|
|
4139
4207
|
fillRule: "evenodd",
|
|
@@ -4148,9 +4216,9 @@ var ClipboardCheck = (props) => {
|
|
|
4148
4216
|
};
|
|
4149
4217
|
|
|
4150
4218
|
// src/components/Icon/components/CheckboxSelect.tsx
|
|
4151
|
-
var
|
|
4219
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4152
4220
|
var CheckboxSelect = (props) => {
|
|
4153
|
-
return /* @__PURE__ */ (0,
|
|
4221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
4154
4222
|
"svg",
|
|
4155
4223
|
{
|
|
4156
4224
|
width: "24",
|
|
@@ -4160,14 +4228,14 @@ var CheckboxSelect = (props) => {
|
|
|
4160
4228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4161
4229
|
...props,
|
|
4162
4230
|
children: [
|
|
4163
|
-
/* @__PURE__ */ (0,
|
|
4231
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4164
4232
|
"path",
|
|
4165
4233
|
{
|
|
4166
4234
|
d: "M0 8C0 3.58172 3.58172 0 8 0H16C20.4183 0 24 3.58172 24 8V16C24 20.4183 20.4183 24 16 24H8C3.58172 24 0 20.4183 0 16V8Z",
|
|
4167
4235
|
fill: "currentColor"
|
|
4168
4236
|
}
|
|
4169
4237
|
),
|
|
4170
|
-
/* @__PURE__ */ (0,
|
|
4238
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4171
4239
|
"path",
|
|
4172
4240
|
{
|
|
4173
4241
|
d: "M6.16602 12.8333L9.49935 16.1666L17.8327 7.83331",
|
|
@@ -4183,9 +4251,9 @@ var CheckboxSelect = (props) => {
|
|
|
4183
4251
|
};
|
|
4184
4252
|
|
|
4185
4253
|
// src/components/Icon/components/InfoCircleSolid.tsx
|
|
4186
|
-
var
|
|
4254
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4187
4255
|
var InfoCircleSolid = (props) => {
|
|
4188
|
-
return /* @__PURE__ */ (0,
|
|
4256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4189
4257
|
"svg",
|
|
4190
4258
|
{
|
|
4191
4259
|
width: "20",
|
|
@@ -4194,7 +4262,7 @@ var InfoCircleSolid = (props) => {
|
|
|
4194
4262
|
fill: "none",
|
|
4195
4263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4196
4264
|
...props,
|
|
4197
|
-
children: /* @__PURE__ */ (0,
|
|
4265
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4198
4266
|
"path",
|
|
4199
4267
|
{
|
|
4200
4268
|
d: "M10.001 1.04199C14.9485 1.04199 18.959 5.05245 18.959 10C18.959 14.9476 14.9485 18.958 10.001 18.958C5.05343 18.958 1.04297 14.9476 1.04297 10C1.04297 5.05245 5.05343 1.04199 10.001 1.04199ZM10.001 8.95801C9.65591 8.95801 9.37615 9.23798 9.37598 9.58301V13.75C9.37598 14.0952 9.6558 14.375 10.001 14.375C10.3462 14.375 10.626 14.0952 10.626 13.75V9.58301C10.6258 9.23798 10.346 8.95801 10.001 8.95801ZM10.4277 5.78418C10.1712 5.55335 9.77583 5.5746 9.54492 5.83105L9.53613 5.84082C9.30564 6.09736 9.32667 6.49185 9.58301 6.72266C9.83958 6.95357 10.2349 6.93333 10.4658 6.67676L10.4736 6.66699C10.7045 6.41042 10.6843 6.01508 10.4277 5.78418Z",
|
|
@@ -4206,9 +4274,9 @@ var InfoCircleSolid = (props) => {
|
|
|
4206
4274
|
};
|
|
4207
4275
|
|
|
4208
4276
|
// src/components/Icon/components/CheckboxDefault.tsx
|
|
4209
|
-
var
|
|
4277
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4210
4278
|
var CheckboxDefault = (props) => {
|
|
4211
|
-
return /* @__PURE__ */ (0,
|
|
4279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4212
4280
|
"svg",
|
|
4213
4281
|
{
|
|
4214
4282
|
width: "24",
|
|
@@ -4217,7 +4285,7 @@ var CheckboxDefault = (props) => {
|
|
|
4217
4285
|
fill: "none",
|
|
4218
4286
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4219
4287
|
...props,
|
|
4220
|
-
children: /* @__PURE__ */ (0,
|
|
4288
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4221
4289
|
"path",
|
|
4222
4290
|
{
|
|
4223
4291
|
d: "M8 0.5H16C20.1421 0.5 23.5 3.85786 23.5 8V16C23.5 20.1421 20.1421 23.5 16 23.5H8C3.85786 23.5 0.5 20.1421 0.5 16V8C0.5 3.85786 3.85786 0.5 8 0.5Z",
|
|
@@ -4229,9 +4297,9 @@ var CheckboxDefault = (props) => {
|
|
|
4229
4297
|
};
|
|
4230
4298
|
|
|
4231
4299
|
// src/components/Icon/components/CheckCircleSolid.tsx
|
|
4232
|
-
var
|
|
4300
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4233
4301
|
var CheckCircleSolid = (props) => {
|
|
4234
|
-
return /* @__PURE__ */ (0,
|
|
4302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4235
4303
|
"svg",
|
|
4236
4304
|
{
|
|
4237
4305
|
width: "24",
|
|
@@ -4240,7 +4308,7 @@ var CheckCircleSolid = (props) => {
|
|
|
4240
4308
|
fill: "none",
|
|
4241
4309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4242
4310
|
...props,
|
|
4243
|
-
children: /* @__PURE__ */ (0,
|
|
4311
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4244
4312
|
"path",
|
|
4245
4313
|
{
|
|
4246
4314
|
d: "M12 1.25C17.9371 1.25 22.75 6.06294 22.75 12C22.75 17.9371 17.9371 22.75 12 22.75C6.06294 22.75 1.25 17.9371 1.25 12C1.25 6.06294 6.06294 1.25 12 1.25ZM17.5303 7.96973C17.2374 7.67689 16.7626 7.67685 16.4697 7.96973L10 14.4395L7.53027 11.9697C7.23738 11.6769 6.7626 11.6769 6.46973 11.9697C6.17691 12.2626 6.17691 12.7374 6.46973 13.0303L9.46973 16.0303C9.7626 16.3231 10.2374 16.3231 10.5303 16.0303L17.5303 9.03027C17.8232 8.73738 17.8232 8.26262 17.5303 7.96973Z",
|
|
@@ -4252,9 +4320,9 @@ var CheckCircleSolid = (props) => {
|
|
|
4252
4320
|
};
|
|
4253
4321
|
|
|
4254
4322
|
// src/components/Icon/components/BellNotification.tsx
|
|
4255
|
-
var
|
|
4323
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4256
4324
|
var BellNotification = (props) => {
|
|
4257
|
-
return /* @__PURE__ */ (0,
|
|
4325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4258
4326
|
"svg",
|
|
4259
4327
|
{
|
|
4260
4328
|
width: "20",
|
|
@@ -4264,7 +4332,7 @@ var BellNotification = (props) => {
|
|
|
4264
4332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4265
4333
|
...props,
|
|
4266
4334
|
children: [
|
|
4267
|
-
/* @__PURE__ */ (0,
|
|
4335
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4268
4336
|
"path",
|
|
4269
4337
|
{
|
|
4270
4338
|
fillRule: "evenodd",
|
|
@@ -4273,7 +4341,7 @@ var BellNotification = (props) => {
|
|
|
4273
4341
|
fill: "currentColor"
|
|
4274
4342
|
}
|
|
4275
4343
|
),
|
|
4276
|
-
/* @__PURE__ */ (0,
|
|
4344
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4277
4345
|
"path",
|
|
4278
4346
|
{
|
|
4279
4347
|
fillRule: "evenodd",
|
|
@@ -4282,7 +4350,7 @@ var BellNotification = (props) => {
|
|
|
4282
4350
|
fill: "currentColor"
|
|
4283
4351
|
}
|
|
4284
4352
|
),
|
|
4285
|
-
/* @__PURE__ */ (0,
|
|
4353
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4286
4354
|
"path",
|
|
4287
4355
|
{
|
|
4288
4356
|
fillRule: "evenodd",
|
|
@@ -4291,7 +4359,7 @@ var BellNotification = (props) => {
|
|
|
4291
4359
|
fill: "currentColor"
|
|
4292
4360
|
}
|
|
4293
4361
|
),
|
|
4294
|
-
/* @__PURE__ */ (0,
|
|
4362
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4295
4363
|
"path",
|
|
4296
4364
|
{
|
|
4297
4365
|
d: "M15.6937 13.6179C15.8418 13.9075 15.9909 14.1587 16.1344 14.375H10.0001C9.65496 14.375 9.37514 14.6548 9.37514 15C9.37514 15.3452 9.65496 15.625 10.0001 15.625H17.5001C17.7721 15.625 18.0128 15.4492 18.0955 15.1901C18.1775 14.9333 18.0856 14.6531 17.868 14.4947L17.8607 14.4891C17.8513 14.4816 17.8333 14.4669 17.8079 14.4443C17.7573 14.3993 17.6771 14.3229 17.5768 14.21C17.3766 13.9845 17.0943 13.6115 16.8066 13.0488C16.3746 12.2039 15.9239 10.9191 15.7271 9.04612C15.6523 8.33332 14.4002 8.37434 14.483 9.16668C14.6937 11.1836 15.1843 12.6219 15.6937 13.6179Z",
|
|
@@ -4304,9 +4372,9 @@ var BellNotification = (props) => {
|
|
|
4304
4372
|
};
|
|
4305
4373
|
|
|
4306
4374
|
// src/components/Icon/components/NavArrowDownSolid.tsx
|
|
4307
|
-
var
|
|
4375
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4308
4376
|
var NavArrowDownSolid = (props) => {
|
|
4309
|
-
return /* @__PURE__ */ (0,
|
|
4377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4310
4378
|
"svg",
|
|
4311
4379
|
{
|
|
4312
4380
|
width: "24",
|
|
@@ -4315,7 +4383,7 @@ var NavArrowDownSolid = (props) => {
|
|
|
4315
4383
|
fill: "none",
|
|
4316
4384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4317
4385
|
...props,
|
|
4318
|
-
children: /* @__PURE__ */ (0,
|
|
4386
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4319
4387
|
"path",
|
|
4320
4388
|
{
|
|
4321
4389
|
fillRule: "evenodd",
|
|
@@ -4329,9 +4397,9 @@ var NavArrowDownSolid = (props) => {
|
|
|
4329
4397
|
};
|
|
4330
4398
|
|
|
4331
4399
|
// src/components/Icon/components/LongArrowUpLeftSolid.tsx
|
|
4332
|
-
var
|
|
4400
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4333
4401
|
var LongArrowUpLeftSolid = (props) => {
|
|
4334
|
-
return /* @__PURE__ */ (0,
|
|
4402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
4335
4403
|
"svg",
|
|
4336
4404
|
{
|
|
4337
4405
|
width: "24",
|
|
@@ -4341,7 +4409,7 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4341
4409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4342
4410
|
...props,
|
|
4343
4411
|
children: [
|
|
4344
|
-
/* @__PURE__ */ (0,
|
|
4412
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4345
4413
|
"path",
|
|
4346
4414
|
{
|
|
4347
4415
|
fillRule: "evenodd",
|
|
@@ -4350,7 +4418,7 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4350
4418
|
fill: "currentColor"
|
|
4351
4419
|
}
|
|
4352
4420
|
),
|
|
4353
|
-
/* @__PURE__ */ (0,
|
|
4421
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4354
4422
|
"path",
|
|
4355
4423
|
{
|
|
4356
4424
|
fillRule: "evenodd",
|
|
@@ -4365,9 +4433,9 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4365
4433
|
};
|
|
4366
4434
|
|
|
4367
4435
|
// src/components/Icon/components/CheckboxIndeterminate.tsx
|
|
4368
|
-
var
|
|
4436
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4369
4437
|
var CheckboxIndeterminate = (props) => {
|
|
4370
|
-
return /* @__PURE__ */ (0,
|
|
4438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4371
4439
|
"svg",
|
|
4372
4440
|
{
|
|
4373
4441
|
width: "24",
|
|
@@ -4377,23 +4445,23 @@ var CheckboxIndeterminate = (props) => {
|
|
|
4377
4445
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4378
4446
|
...props,
|
|
4379
4447
|
children: [
|
|
4380
|
-
/* @__PURE__ */ (0,
|
|
4448
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4381
4449
|
"path",
|
|
4382
4450
|
{
|
|
4383
4451
|
d: "M0 8C0 3.58172 3.58172 0 8 0H16C20.4183 0 24 3.58172 24 8V16C24 20.4183 20.4183 24 16 24H8C3.58172 24 0 20.4183 0 16V8Z",
|
|
4384
4452
|
fill: "currentColor"
|
|
4385
4453
|
}
|
|
4386
4454
|
),
|
|
4387
|
-
/* @__PURE__ */ (0,
|
|
4455
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { d: "M6 12H18", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
4388
4456
|
]
|
|
4389
4457
|
}
|
|
4390
4458
|
);
|
|
4391
4459
|
};
|
|
4392
4460
|
|
|
4393
4461
|
// src/components/Icon/components/ChatBubbleQuestionSolid.tsx
|
|
4394
|
-
var
|
|
4462
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4395
4463
|
var ChatBubbleQuestionSolid = (props) => {
|
|
4396
|
-
return /* @__PURE__ */ (0,
|
|
4464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4397
4465
|
"svg",
|
|
4398
4466
|
{
|
|
4399
4467
|
width: "24",
|
|
@@ -4402,7 +4470,7 @@ var ChatBubbleQuestionSolid = (props) => {
|
|
|
4402
4470
|
fill: "none",
|
|
4403
4471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4404
4472
|
...props,
|
|
4405
|
-
children: /* @__PURE__ */ (0,
|
|
4473
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4406
4474
|
"path",
|
|
4407
4475
|
{
|
|
4408
4476
|
d: "M12 1.25C17.937 1.25 22.75 6.06293 22.75 12C22.75 17.937 17.937 22.75 12 22.75C10.1437 22.75 8.39531 22.2788 6.87012 21.4492L2.6377 22.2373C2.39464 22.2826 2.14454 22.2051 1.96973 22.0303C1.79491 21.8555 1.71744 21.6054 1.7627 21.3623L2.55078 17.1299C1.72115 15.6047 1.25 13.8563 1.25 12C1.25 6.06294 6.06294 1.25 12 1.25ZM12.5117 17.4414C12.204 17.1645 11.7303 17.1896 11.4531 17.4971L11.4424 17.5078C11.1652 17.8156 11.1903 18.2901 11.498 18.5674C11.8058 18.8446 12.2804 18.8195 12.5576 18.5117L12.5674 18.501C12.8445 18.1932 12.8194 17.7186 12.5117 17.4414ZM11.75 5.625C10.9119 5.625 10.0445 5.89017 9.37402 6.45898C8.68725 7.04171 8.25 7.90898 8.25 9C8.25 9.41421 8.58579 9.75 9 9.75C9.41421 9.75 9.75 9.41421 9.75 9C9.75 8.34109 10.0003 7.8958 10.3447 7.60352C10.7055 7.2974 11.2131 7.125 11.75 7.125C12.2869 7.125 12.7945 7.2974 13.1553 7.60352C13.4997 7.8958 13.75 8.3411 13.75 9C13.75 9.48412 13.6337 9.77555 13.4854 9.99805C13.3276 10.2347 13.1205 10.4208 12.8203 10.6904C12.7969 10.7114 12.7726 10.7328 12.748 10.7549C12.4302 11.0409 12.0373 11.4073 11.7383 11.9355C11.4319 12.4768 11.25 13.1384 11.25 14C11.25 14.4142 11.5858 14.75 12 14.75C12.4142 14.75 12.75 14.4142 12.75 14C12.75 13.3617 12.8806 12.9606 13.043 12.6738C13.2127 12.374 13.4448 12.1465 13.752 11.8701C13.78 11.8449 13.8089 11.8187 13.8389 11.792C14.1142 11.5463 14.4641 11.2339 14.7334 10.8301C15.0538 10.3495 15.25 9.76587 15.25 9C15.25 7.90899 14.8127 7.0417 14.126 6.45898C13.4555 5.89017 12.5881 5.625 11.75 5.625Z",
|
|
@@ -4419,10 +4487,10 @@ var iconClasses = {
|
|
|
4419
4487
|
};
|
|
4420
4488
|
|
|
4421
4489
|
// src/components/Icon/icon.tsx
|
|
4422
|
-
var
|
|
4490
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4423
4491
|
var Icon = ({ icon: icon2, className, ...props }) => {
|
|
4424
4492
|
const IconComponent = components_exports[icon2];
|
|
4425
|
-
return /* @__PURE__ */ (0,
|
|
4493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4426
4494
|
import_Box.default,
|
|
4427
4495
|
{
|
|
4428
4496
|
component: IconComponent,
|
|
@@ -4433,7 +4501,7 @@ var Icon = ({ icon: icon2, className, ...props }) => {
|
|
|
4433
4501
|
};
|
|
4434
4502
|
|
|
4435
4503
|
// src/theme/core/components/alert.tsx
|
|
4436
|
-
var
|
|
4504
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4437
4505
|
var COLORS2 = ["info", "success", "warning", "error"];
|
|
4438
4506
|
function styleColors2(ownerState, styles) {
|
|
4439
4507
|
const outputStyle = COLORS2.reduce((acc, color) => {
|
|
@@ -4451,10 +4519,10 @@ var MuiAlert = {
|
|
|
4451
4519
|
defaultProps: {
|
|
4452
4520
|
variant: "standard",
|
|
4453
4521
|
iconMapping: {
|
|
4454
|
-
error: /* @__PURE__ */ (0,
|
|
4455
|
-
info: /* @__PURE__ */ (0,
|
|
4456
|
-
success: /* @__PURE__ */ (0,
|
|
4457
|
-
warning: /* @__PURE__ */ (0,
|
|
4522
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: "InfoCircleSolid" }),
|
|
4523
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: "InfoCircleSolid" }),
|
|
4524
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: "InfoCircleSolid" }),
|
|
4525
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: "InfoCircleSolid" })
|
|
4458
4526
|
}
|
|
4459
4527
|
},
|
|
4460
4528
|
/** **************************************
|
|
@@ -4663,7 +4731,7 @@ var badge = { MuiBadge };
|
|
|
4663
4731
|
|
|
4664
4732
|
// src/theme/core/components/radio.tsx
|
|
4665
4733
|
var import_Radio = require("@mui/material/Radio");
|
|
4666
|
-
var
|
|
4734
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4667
4735
|
var MuiRadio = {
|
|
4668
4736
|
/** **************************************
|
|
4669
4737
|
* DEFAULT PROPS
|
|
@@ -4672,8 +4740,8 @@ var MuiRadio = {
|
|
|
4672
4740
|
color: "default",
|
|
4673
4741
|
size: "small",
|
|
4674
4742
|
disableRipple: true,
|
|
4675
|
-
icon: /* @__PURE__ */ (0,
|
|
4676
|
-
checkedIcon: /* @__PURE__ */ (0,
|
|
4743
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { icon: "RadioDefault" }),
|
|
4744
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { icon: "RadioSelect" })
|
|
4677
4745
|
},
|
|
4678
4746
|
/** **************************************
|
|
4679
4747
|
* STYLE
|
|
@@ -4977,13 +5045,13 @@ var MuiDrawer = {
|
|
|
4977
5045
|
var drawer = { MuiDrawer };
|
|
4978
5046
|
|
|
4979
5047
|
// src/theme/core/components/select.tsx
|
|
4980
|
-
var
|
|
5048
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4981
5049
|
var MuiSelect = {
|
|
4982
5050
|
/** **************************************
|
|
4983
5051
|
* DEFAULT PROPS
|
|
4984
5052
|
*************************************** */
|
|
4985
5053
|
defaultProps: {
|
|
4986
|
-
IconComponent: () => /* @__PURE__ */ (0,
|
|
5054
|
+
IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
|
|
4987
5055
|
}
|
|
4988
5056
|
};
|
|
4989
5057
|
var MuiNativeSelect = {
|
|
@@ -4991,7 +5059,7 @@ var MuiNativeSelect = {
|
|
|
4991
5059
|
* DEFAULT PROPS
|
|
4992
5060
|
*************************************** */
|
|
4993
5061
|
defaultProps: {
|
|
4994
|
-
IconComponent: () => /* @__PURE__ */ (0,
|
|
5062
|
+
IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
|
|
4995
5063
|
}
|
|
4996
5064
|
};
|
|
4997
5065
|
var select = { MuiSelect, MuiNativeSelect };
|
|
@@ -4999,13 +5067,13 @@ var select = { MuiSelect, MuiNativeSelect };
|
|
|
4999
5067
|
// src/theme/core/components/rating.tsx
|
|
5000
5068
|
var import_Rating = require("@mui/material/Rating");
|
|
5001
5069
|
var import_SvgIcon = __toESM(require("@mui/material/SvgIcon"), 1);
|
|
5002
|
-
var
|
|
5003
|
-
var RatingIcon = (props) => /* @__PURE__ */ (0,
|
|
5070
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5071
|
+
var RatingIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_SvgIcon.default, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { d: "M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z" }) });
|
|
5004
5072
|
var MuiRating = {
|
|
5005
5073
|
/** **************************************
|
|
5006
5074
|
* DEFAULT PROPS
|
|
5007
5075
|
*************************************** */
|
|
5008
|
-
defaultProps: { emptyIcon: /* @__PURE__ */ (0,
|
|
5076
|
+
defaultProps: { emptyIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RatingIcon, {}), icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RatingIcon, {}) },
|
|
5009
5077
|
/** **************************************
|
|
5010
5078
|
* STYLE
|
|
5011
5079
|
*************************************** */
|
|
@@ -5130,7 +5198,7 @@ var slider = {
|
|
|
5130
5198
|
// src/theme/core/components/button.tsx
|
|
5131
5199
|
var import_Button = require("@mui/material/Button");
|
|
5132
5200
|
var import_styles11 = require("@mui/material/styles");
|
|
5133
|
-
var
|
|
5201
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5134
5202
|
var spin = import_styles11.keyframes`
|
|
5135
5203
|
0% {
|
|
5136
5204
|
transform: rotate(0deg);
|
|
@@ -5250,7 +5318,7 @@ var MuiButton = {
|
|
|
5250
5318
|
variant: "primary",
|
|
5251
5319
|
disableElevation: true,
|
|
5252
5320
|
disableRipple: true,
|
|
5253
|
-
loadingIndicator: /* @__PURE__ */ (0,
|
|
5321
|
+
loadingIndicator: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: "Loader" })
|
|
5254
5322
|
},
|
|
5255
5323
|
/** **************************************
|
|
5256
5324
|
* VARIANTS
|
|
@@ -5805,7 +5873,7 @@ var timeline = { MuiTimelineDot, MuiTimelineConnector };
|
|
|
5805
5873
|
|
|
5806
5874
|
// src/theme/core/components/checkbox.tsx
|
|
5807
5875
|
var import_Checkbox2 = require("@mui/material/Checkbox");
|
|
5808
|
-
var
|
|
5876
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5809
5877
|
var MuiCheckbox = {
|
|
5810
5878
|
/** **************************************
|
|
5811
5879
|
* DEFAULT PROPS
|
|
@@ -5814,9 +5882,9 @@ var MuiCheckbox = {
|
|
|
5814
5882
|
color: "default",
|
|
5815
5883
|
size: "small",
|
|
5816
5884
|
disableRipple: true,
|
|
5817
|
-
icon: /* @__PURE__ */ (0,
|
|
5818
|
-
checkedIcon: /* @__PURE__ */ (0,
|
|
5819
|
-
indeterminateIcon: /* @__PURE__ */ (0,
|
|
5885
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: "CheckboxDefault" }),
|
|
5886
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: "CheckboxSelect" }),
|
|
5887
|
+
indeterminateIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: "CheckboxIndeterminate" })
|
|
5820
5888
|
},
|
|
5821
5889
|
/** **************************************
|
|
5822
5890
|
* STYLE
|
|
@@ -6358,16 +6426,16 @@ var breadcrumbs = { MuiBreadcrumbs };
|
|
|
6358
6426
|
// src/theme/core/components/mui-x-data-grid.tsx
|
|
6359
6427
|
var import_material = require("@mui/material");
|
|
6360
6428
|
var import_List2 = require("@mui/material/List");
|
|
6361
|
-
var
|
|
6362
|
-
var
|
|
6429
|
+
var import_Paper3 = require("@mui/material/Paper");
|
|
6430
|
+
var import_TextField9 = require("@mui/material/TextField");
|
|
6363
6431
|
var import_InputBase4 = require("@mui/material/InputBase");
|
|
6364
6432
|
var import_InputLabel3 = require("@mui/material/InputLabel");
|
|
6365
6433
|
var import_IconButton7 = require("@mui/material/IconButton");
|
|
6366
6434
|
var import_ListItemIcon = require("@mui/material/ListItemIcon");
|
|
6367
6435
|
var import_ListItemText = require("@mui/material/ListItemText");
|
|
6368
|
-
var
|
|
6436
|
+
var import_CircularProgress3 = require("@mui/material/CircularProgress");
|
|
6369
6437
|
var import_FormControlLabel6 = require("@mui/material/FormControlLabel");
|
|
6370
|
-
var
|
|
6438
|
+
var import_SvgIcon3 = __toESM(require("@mui/material/SvgIcon"), 1);
|
|
6371
6439
|
|
|
6372
6440
|
// src/components/index.ts
|
|
6373
6441
|
var components_exports2 = {};
|
|
@@ -6404,6 +6472,8 @@ __export(components_exports2, {
|
|
|
6404
6472
|
FilterDropdown: () => FilterDropdown,
|
|
6405
6473
|
FilterList: () => FilterList,
|
|
6406
6474
|
Form: () => Form,
|
|
6475
|
+
GooglePlacesAutocomplete: () => GooglePlacesAutocomplete,
|
|
6476
|
+
GooglePlacesProvider: () => GooglePlacesProvider,
|
|
6407
6477
|
HelpCircle: () => HelpCircle,
|
|
6408
6478
|
Icon: () => Icon,
|
|
6409
6479
|
Image: () => Image,
|
|
@@ -6415,6 +6485,7 @@ __export(components_exports2, {
|
|
|
6415
6485
|
LoadingScreen: () => LoadingScreen,
|
|
6416
6486
|
Logo: () => Logo,
|
|
6417
6487
|
LongArrowUpLeftSolid: () => LongArrowUpLeftSolid,
|
|
6488
|
+
MapPinXMark: () => MapPinXMark,
|
|
6418
6489
|
MoreHorizontal: () => MoreHorizontal,
|
|
6419
6490
|
NavArrowDown: () => NavArrowDown,
|
|
6420
6491
|
NavArrowDownSolid: () => NavArrowDownSolid,
|
|
@@ -6428,10 +6499,12 @@ __export(components_exports2, {
|
|
|
6428
6499
|
RHFDatePicker: () => RHFDatePicker,
|
|
6429
6500
|
RHFDateRangePicker: () => RHFDateRangePicker,
|
|
6430
6501
|
RHFDateTimePicker: () => RHFDateTimePicker,
|
|
6502
|
+
RHFGooglePlacesAutocomplete: () => RHFGooglePlacesAutocomplete,
|
|
6431
6503
|
RHFMultiCheckbox: () => RHFMultiCheckbox,
|
|
6432
6504
|
RHFMultiSwitch: () => RHFMultiSwitch,
|
|
6433
6505
|
RHFOTPInput: () => RHFOTPInput,
|
|
6434
6506
|
RHFRadioGroup: () => RHFRadioGroup,
|
|
6507
|
+
RHFSelect: () => RHFSelect,
|
|
6435
6508
|
RHFSwitch: () => RHFSwitch,
|
|
6436
6509
|
RHFTextField: () => RHFTextField,
|
|
6437
6510
|
RHFTimePicker: () => RHFTimePicker,
|
|
@@ -6471,13 +6544,17 @@ __export(components_exports2, {
|
|
|
6471
6544
|
feedbackDialogClasses: () => feedbackDialogClasses,
|
|
6472
6545
|
getDateRangeFromPreset: () => getDateRangeFromPreset,
|
|
6473
6546
|
iconClasses: () => iconClasses,
|
|
6474
|
-
|
|
6547
|
+
parseAddressComponents: () => parseAddressComponents,
|
|
6548
|
+
toolbarClasses: () => toolbarClasses,
|
|
6549
|
+
useGooglePlacesAutocomplete: () => useGooglePlacesAutocomplete,
|
|
6550
|
+
useGooglePlacesContext: () => useGooglePlacesContext,
|
|
6551
|
+
useGooglePlacesLoaded: () => useGooglePlacesLoaded
|
|
6475
6552
|
});
|
|
6476
6553
|
|
|
6477
6554
|
// src/components/Logo/index.tsx
|
|
6478
6555
|
var import_Link = __toESM(require("@mui/material/Link"), 1);
|
|
6479
6556
|
var import_Box2 = __toESM(require("@mui/material/Box"), 1);
|
|
6480
|
-
var
|
|
6557
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
6481
6558
|
var LOGO_MAP = {
|
|
6482
6559
|
full: {
|
|
6483
6560
|
black: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077834/define-agency/logos/logo-black-full_mjngwu.png",
|
|
@@ -6505,7 +6582,7 @@ var Logo = ({
|
|
|
6505
6582
|
const type = isFull ? "full" : "single";
|
|
6506
6583
|
const color = isWhite ? "white" : isBlack ? "black" : "default";
|
|
6507
6584
|
const logoImg = src ?? LOGO_MAP[type][color];
|
|
6508
|
-
const logo = /* @__PURE__ */ (0,
|
|
6585
|
+
const logo = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6509
6586
|
import_Box2.default,
|
|
6510
6587
|
{
|
|
6511
6588
|
component: "img",
|
|
@@ -6518,10 +6595,10 @@ var Logo = ({
|
|
|
6518
6595
|
if (disableLink) {
|
|
6519
6596
|
return logo;
|
|
6520
6597
|
}
|
|
6521
|
-
return /* @__PURE__ */ (0,
|
|
6598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_Link.default, { component: LinkComponent, href, sx: { display: "contents" }, children: logo });
|
|
6522
6599
|
};
|
|
6523
6600
|
var AnimatedLogo = () => {
|
|
6524
|
-
return /* @__PURE__ */ (0,
|
|
6601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
6525
6602
|
"svg",
|
|
6526
6603
|
{
|
|
6527
6604
|
width: "120",
|
|
@@ -6530,7 +6607,7 @@ var AnimatedLogo = () => {
|
|
|
6530
6607
|
fill: "none",
|
|
6531
6608
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6532
6609
|
children: [
|
|
6533
|
-
/* @__PURE__ */ (0,
|
|
6610
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("style", { children: `
|
|
6534
6611
|
@keyframes fadeIn {
|
|
6535
6612
|
from {
|
|
6536
6613
|
opacity: 0;
|
|
@@ -6591,7 +6668,7 @@ var AnimatedLogo = () => {
|
|
|
6591
6668
|
transform-origin: center;
|
|
6592
6669
|
}
|
|
6593
6670
|
` }),
|
|
6594
|
-
/* @__PURE__ */ (0,
|
|
6671
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6595
6672
|
"rect",
|
|
6596
6673
|
{
|
|
6597
6674
|
className: "background-rect",
|
|
@@ -6602,7 +6679,7 @@ var AnimatedLogo = () => {
|
|
|
6602
6679
|
fill: "white"
|
|
6603
6680
|
}
|
|
6604
6681
|
),
|
|
6605
|
-
/* @__PURE__ */ (0,
|
|
6682
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6606
6683
|
"path",
|
|
6607
6684
|
{
|
|
6608
6685
|
className: "bars",
|
|
@@ -6610,7 +6687,7 @@ var AnimatedLogo = () => {
|
|
|
6610
6687
|
fill: "#5E30EB"
|
|
6611
6688
|
}
|
|
6612
6689
|
),
|
|
6613
|
-
/* @__PURE__ */ (0,
|
|
6690
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6614
6691
|
"path",
|
|
6615
6692
|
{
|
|
6616
6693
|
className: "d-letter",
|
|
@@ -6633,7 +6710,7 @@ var import_styles22 = require("@mui/material/styles");
|
|
|
6633
6710
|
var import_Box3 = __toESM(require("@mui/material/Box"), 1);
|
|
6634
6711
|
var import_Stack = __toESM(require("@mui/material/Stack"), 1);
|
|
6635
6712
|
var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
|
|
6636
|
-
var
|
|
6713
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
6637
6714
|
var EmptyContent = ({
|
|
6638
6715
|
sx,
|
|
6639
6716
|
imgUrl,
|
|
@@ -6644,7 +6721,7 @@ var EmptyContent = ({
|
|
|
6644
6721
|
title = "No data",
|
|
6645
6722
|
...rest
|
|
6646
6723
|
}) => {
|
|
6647
|
-
return /* @__PURE__ */ (0,
|
|
6724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
6648
6725
|
import_Stack.default,
|
|
6649
6726
|
{
|
|
6650
6727
|
flexGrow: 1,
|
|
@@ -6662,7 +6739,7 @@ var EmptyContent = ({
|
|
|
6662
6739
|
},
|
|
6663
6740
|
...rest,
|
|
6664
6741
|
children: [
|
|
6665
|
-
imgUrl && /* @__PURE__ */ (0,
|
|
6742
|
+
imgUrl && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
6666
6743
|
import_Box3.default,
|
|
6667
6744
|
{
|
|
6668
6745
|
component: "img",
|
|
@@ -6671,7 +6748,7 @@ var EmptyContent = ({
|
|
|
6671
6748
|
sx: { width: 1, maxWidth: 160, ...slotProps?.img, mb: 2 }
|
|
6672
6749
|
}
|
|
6673
6750
|
),
|
|
6674
|
-
title && /* @__PURE__ */ (0,
|
|
6751
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
6675
6752
|
import_Typography2.default,
|
|
6676
6753
|
{
|
|
6677
6754
|
variant: filled ? "h7" : "h6",
|
|
@@ -6685,7 +6762,7 @@ var EmptyContent = ({
|
|
|
6685
6762
|
children: title
|
|
6686
6763
|
}
|
|
6687
6764
|
),
|
|
6688
|
-
description && /* @__PURE__ */ (0,
|
|
6765
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
6689
6766
|
import_Typography2.default,
|
|
6690
6767
|
{
|
|
6691
6768
|
variant: "h8",
|
|
@@ -6705,14 +6782,14 @@ var EmptyContent = ({
|
|
|
6705
6782
|
};
|
|
6706
6783
|
|
|
6707
6784
|
// src/components/Table/components/TableNoRows.tsx
|
|
6708
|
-
var
|
|
6785
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
6709
6786
|
var StyledGridOverlay = (0, import_styles22.styled)("div")(({ theme }) => ({
|
|
6710
6787
|
padding: theme.spacing(1.5, 3, 3),
|
|
6711
6788
|
width: "100%",
|
|
6712
6789
|
height: "100%"
|
|
6713
6790
|
}));
|
|
6714
6791
|
var TableNoRows = (props) => {
|
|
6715
|
-
return /* @__PURE__ */ (0,
|
|
6792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(StyledGridOverlay, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(EmptyContent, { ...props, sx: { width: "100%" } }) });
|
|
6716
6793
|
};
|
|
6717
6794
|
var TableNoRows_default = TableNoRows;
|
|
6718
6795
|
|
|
@@ -6724,14 +6801,14 @@ var import_Typography3 = __toESM(require("@mui/material/Typography"), 1);
|
|
|
6724
6801
|
var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
|
|
6725
6802
|
var import_PaginationItem2 = __toESM(require("@mui/material/PaginationItem"), 1);
|
|
6726
6803
|
var import_x_data_grid = require("@mui/x-data-grid");
|
|
6727
|
-
var
|
|
6804
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
6728
6805
|
var TablePagination = () => {
|
|
6729
6806
|
const theme = (0, import_styles23.useTheme)();
|
|
6730
6807
|
const apiRef = (0, import_x_data_grid.useGridApiContext)();
|
|
6731
6808
|
const page = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSelector);
|
|
6732
6809
|
const pageCount = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageCountSelector);
|
|
6733
6810
|
const pageSize = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSizeSelector);
|
|
6734
|
-
return /* @__PURE__ */ (0,
|
|
6811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
6735
6812
|
import_Stack2.default,
|
|
6736
6813
|
{
|
|
6737
6814
|
direction: "row",
|
|
@@ -6740,7 +6817,7 @@ var TablePagination = () => {
|
|
|
6740
6817
|
width: 1,
|
|
6741
6818
|
p: 1.5,
|
|
6742
6819
|
children: [
|
|
6743
|
-
/* @__PURE__ */ (0,
|
|
6820
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_Stack2.default, { direction: "row", alignItems: "center", spacing: 1, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
6744
6821
|
import_Typography3.default,
|
|
6745
6822
|
{
|
|
6746
6823
|
variant: "h8",
|
|
@@ -6752,13 +6829,13 @@ var TablePagination = () => {
|
|
|
6752
6829
|
]
|
|
6753
6830
|
}
|
|
6754
6831
|
) }),
|
|
6755
|
-
/* @__PURE__ */ (0,
|
|
6832
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6756
6833
|
import_Stack2.default,
|
|
6757
6834
|
{
|
|
6758
6835
|
direction: { xs: "column", md: "row" },
|
|
6759
6836
|
alignItems: { xs: "flex-start", md: "center" },
|
|
6760
6837
|
spacing: 2,
|
|
6761
|
-
children: /* @__PURE__ */ (0,
|
|
6838
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6762
6839
|
import_Pagination.default,
|
|
6763
6840
|
{
|
|
6764
6841
|
size: "medium",
|
|
@@ -6770,13 +6847,13 @@ var TablePagination = () => {
|
|
|
6770
6847
|
hideNextButton: true,
|
|
6771
6848
|
hidePrevButton: true,
|
|
6772
6849
|
onChange: (_, value) => apiRef.current.setPage(value - 1),
|
|
6773
|
-
renderItem: (item) => /* @__PURE__ */ (0,
|
|
6850
|
+
renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_PaginationItem2.default, { ...item })
|
|
6774
6851
|
}
|
|
6775
6852
|
)
|
|
6776
6853
|
}
|
|
6777
6854
|
),
|
|
6778
|
-
/* @__PURE__ */ (0,
|
|
6779
|
-
/* @__PURE__ */ (0,
|
|
6855
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_Stack2.default, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6856
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6780
6857
|
import_Button2.default,
|
|
6781
6858
|
{
|
|
6782
6859
|
color: "inherit",
|
|
@@ -6786,7 +6863,7 @@ var TablePagination = () => {
|
|
|
6786
6863
|
children: "Previous"
|
|
6787
6864
|
}
|
|
6788
6865
|
),
|
|
6789
|
-
/* @__PURE__ */ (0,
|
|
6866
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6790
6867
|
import_Button2.default,
|
|
6791
6868
|
{
|
|
6792
6869
|
color: "inherit",
|
|
@@ -6803,11 +6880,11 @@ var TablePagination = () => {
|
|
|
6803
6880
|
};
|
|
6804
6881
|
|
|
6805
6882
|
// src/components/Table/Table.tsx
|
|
6806
|
-
var
|
|
6883
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6807
6884
|
var Table = (props) => {
|
|
6808
6885
|
const { data, showFooter = true, sx, slots, slotProps, ...rest } = props;
|
|
6809
6886
|
const isEmpty = data.length === 0;
|
|
6810
|
-
return /* @__PURE__ */ (0,
|
|
6887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
6811
6888
|
import_x_data_grid2.DataGrid,
|
|
6812
6889
|
{
|
|
6813
6890
|
rowHeight: 56,
|
|
@@ -6871,7 +6948,7 @@ var imageClasses = {
|
|
|
6871
6948
|
};
|
|
6872
6949
|
|
|
6873
6950
|
// src/components/Image/index.tsx
|
|
6874
|
-
var
|
|
6951
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6875
6952
|
var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
6876
6953
|
const {
|
|
6877
6954
|
src,
|
|
@@ -6970,7 +7047,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
6970
7047
|
const showLoader = status === "idle" || status === "loading";
|
|
6971
7048
|
const showError = status === "error";
|
|
6972
7049
|
const loadingAttr = lazy ? "lazy" : imgLoading ?? "eager";
|
|
6973
|
-
return /* @__PURE__ */ (0,
|
|
7050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
6974
7051
|
import_Box4.default,
|
|
6975
7052
|
{
|
|
6976
7053
|
className: imageClasses.root.concat(className ? ` ${className}` : ""),
|
|
@@ -6985,7 +7062,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
6985
7062
|
},
|
|
6986
7063
|
...rest,
|
|
6987
7064
|
children: [
|
|
6988
|
-
showLoader && (loadingIndicator ?? /* @__PURE__ */ (0,
|
|
7065
|
+
showLoader && (loadingIndicator ?? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
6989
7066
|
import_Skeleton.default,
|
|
6990
7067
|
{
|
|
6991
7068
|
animation: "wave",
|
|
@@ -7000,7 +7077,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7000
7077
|
}
|
|
7001
7078
|
}
|
|
7002
7079
|
)),
|
|
7003
|
-
/* @__PURE__ */ (0,
|
|
7080
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7004
7081
|
import_Box4.default,
|
|
7005
7082
|
{
|
|
7006
7083
|
ref: setRefs,
|
|
@@ -7029,7 +7106,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7029
7106
|
}
|
|
7030
7107
|
}
|
|
7031
7108
|
),
|
|
7032
|
-
withOverlay && !showError && /* @__PURE__ */ (0,
|
|
7109
|
+
withOverlay && !showError && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7033
7110
|
import_Box4.default,
|
|
7034
7111
|
{
|
|
7035
7112
|
className: imageClasses.overlay,
|
|
@@ -7041,7 +7118,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7041
7118
|
children: overlay
|
|
7042
7119
|
}
|
|
7043
7120
|
),
|
|
7044
|
-
showError && (renderError ?? /* @__PURE__ */ (0,
|
|
7121
|
+
showError && (renderError ?? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7045
7122
|
import_Box4.default,
|
|
7046
7123
|
{
|
|
7047
7124
|
className: imageClasses.overlay,
|
|
@@ -7264,9 +7341,9 @@ var StyledToaster = (0, import_styles24.styled)(import_sonner.Toaster)(({ theme
|
|
|
7264
7341
|
|
|
7265
7342
|
// src/components/Toast/index.tsx
|
|
7266
7343
|
__reExport(Toast_exports, require("sonner"));
|
|
7267
|
-
var
|
|
7344
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7268
7345
|
var Toast = () => {
|
|
7269
|
-
return /* @__PURE__ */ (0,
|
|
7346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_Portal.default, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7270
7347
|
StyledToaster,
|
|
7271
7348
|
{
|
|
7272
7349
|
expand: true,
|
|
@@ -7298,12 +7375,12 @@ var Toast = () => {
|
|
|
7298
7375
|
}
|
|
7299
7376
|
},
|
|
7300
7377
|
icons: {
|
|
7301
|
-
loading: /* @__PURE__ */ (0,
|
|
7302
|
-
info: /* @__PURE__ */ (0,
|
|
7303
|
-
success: /* @__PURE__ */ (0,
|
|
7304
|
-
warning: /* @__PURE__ */ (0,
|
|
7305
|
-
error: /* @__PURE__ */ (0,
|
|
7306
|
-
close: /* @__PURE__ */ (0,
|
|
7378
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: toasterClasses.loadingIcon }),
|
|
7379
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "InfoToast" }),
|
|
7380
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "SuccessToast" }),
|
|
7381
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "WarningToast" }),
|
|
7382
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "ErrorToast" }),
|
|
7383
|
+
close: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "XMark" })
|
|
7307
7384
|
}
|
|
7308
7385
|
}
|
|
7309
7386
|
) });
|
|
@@ -7322,9 +7399,9 @@ var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
|
7322
7399
|
// src/components/Upload/components/Placeholder.tsx
|
|
7323
7400
|
var import_Stack3 = __toESM(require("@mui/material/Stack"), 1);
|
|
7324
7401
|
var import_Box5 = __toESM(require("@mui/material/Box"), 1);
|
|
7325
|
-
var
|
|
7402
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7326
7403
|
var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
7327
|
-
return /* @__PURE__ */ (0,
|
|
7404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
7328
7405
|
import_Box5.default,
|
|
7329
7406
|
{
|
|
7330
7407
|
sx: {
|
|
@@ -7335,7 +7412,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7335
7412
|
},
|
|
7336
7413
|
...rest,
|
|
7337
7414
|
children: [
|
|
7338
|
-
/* @__PURE__ */ (0,
|
|
7415
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7339
7416
|
Icon,
|
|
7340
7417
|
{
|
|
7341
7418
|
icon: "CloudUpload",
|
|
@@ -7346,10 +7423,10 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7346
7423
|
}
|
|
7347
7424
|
}
|
|
7348
7425
|
),
|
|
7349
|
-
/* @__PURE__ */ (0,
|
|
7350
|
-
/* @__PURE__ */ (0,
|
|
7426
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_Stack3.default, { spacing: 1, sx: { textAlign: "center", mt: 2 }, children: [
|
|
7427
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_Box5.default, { sx: { typography: "h8" }, children: [
|
|
7351
7428
|
"Drag files here or",
|
|
7352
|
-
/* @__PURE__ */ (0,
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7353
7430
|
import_Box5.default,
|
|
7354
7431
|
{
|
|
7355
7432
|
component: "span",
|
|
@@ -7362,7 +7439,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7362
7439
|
}
|
|
7363
7440
|
)
|
|
7364
7441
|
] }),
|
|
7365
|
-
/* @__PURE__ */ (0,
|
|
7442
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
7366
7443
|
import_Box5.default,
|
|
7367
7444
|
{
|
|
7368
7445
|
sx: {
|
|
@@ -7417,12 +7494,12 @@ var fileData = (file) => {
|
|
|
7417
7494
|
};
|
|
7418
7495
|
|
|
7419
7496
|
// src/components/Upload/components/RejectionFiles.tsx
|
|
7420
|
-
var
|
|
7497
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
7421
7498
|
var RejectionFiles = ({ files }) => {
|
|
7422
7499
|
if (!files.length) {
|
|
7423
7500
|
return null;
|
|
7424
7501
|
}
|
|
7425
|
-
return /* @__PURE__ */ (0,
|
|
7502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
7426
7503
|
import_Paper.default,
|
|
7427
7504
|
{
|
|
7428
7505
|
variant: "outlined",
|
|
@@ -7437,13 +7514,13 @@ var RejectionFiles = ({ files }) => {
|
|
|
7437
7514
|
},
|
|
7438
7515
|
children: files.map(({ file, errors }) => {
|
|
7439
7516
|
const { path, size } = fileData(file);
|
|
7440
|
-
return /* @__PURE__ */ (0,
|
|
7441
|
-
/* @__PURE__ */ (0,
|
|
7517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_Box6.default, { sx: { my: 1 }, children: [
|
|
7518
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_Typography4.default, { variant: "subtitle2", noWrap: true, children: [
|
|
7442
7519
|
path,
|
|
7443
7520
|
" - ",
|
|
7444
7521
|
size ? fData(size) : ""
|
|
7445
7522
|
] }),
|
|
7446
|
-
errors.map((error2) => /* @__PURE__ */ (0,
|
|
7523
|
+
errors.map((error2) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_Box6.default, { component: "span", sx: { typography: "caption" }, children: [
|
|
7447
7524
|
"- ",
|
|
7448
7525
|
error2.message
|
|
7449
7526
|
] }, error2.code))
|
|
@@ -7456,9 +7533,9 @@ var RejectionFiles = ({ files }) => {
|
|
|
7456
7533
|
// src/components/Upload/components/UploadProgress.tsx
|
|
7457
7534
|
var import_Box7 = __toESM(require("@mui/material/Box"), 1);
|
|
7458
7535
|
var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"), 1);
|
|
7459
|
-
var
|
|
7536
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7460
7537
|
var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
7461
|
-
return /* @__PURE__ */ (0,
|
|
7538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
7462
7539
|
import_Box7.default,
|
|
7463
7540
|
{
|
|
7464
7541
|
sx: {
|
|
@@ -7469,8 +7546,8 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7469
7546
|
height: "100%"
|
|
7470
7547
|
},
|
|
7471
7548
|
children: [
|
|
7472
|
-
/* @__PURE__ */ (0,
|
|
7473
|
-
/* @__PURE__ */ (0,
|
|
7549
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_Box7.default, { sx: { position: "relative", display: "inline-flex" }, children: [
|
|
7550
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7474
7551
|
import_CircularProgress.default,
|
|
7475
7552
|
{
|
|
7476
7553
|
variant: "determinate",
|
|
@@ -7483,7 +7560,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7483
7560
|
}
|
|
7484
7561
|
}
|
|
7485
7562
|
),
|
|
7486
|
-
/* @__PURE__ */ (0,
|
|
7563
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7487
7564
|
import_CircularProgress.default,
|
|
7488
7565
|
{
|
|
7489
7566
|
variant: "determinate",
|
|
@@ -7495,7 +7572,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7495
7572
|
}
|
|
7496
7573
|
}
|
|
7497
7574
|
),
|
|
7498
|
-
/* @__PURE__ */ (0,
|
|
7575
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7499
7576
|
import_Box7.default,
|
|
7500
7577
|
{
|
|
7501
7578
|
sx: {
|
|
@@ -7508,11 +7585,11 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7508
7585
|
alignItems: "center",
|
|
7509
7586
|
justifyContent: "center"
|
|
7510
7587
|
},
|
|
7511
|
-
children: /* @__PURE__ */ (0,
|
|
7588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_Box7.default, { sx: { typography: "h6", color: "common.black" }, children: `${Math.round(progress2)}` })
|
|
7512
7589
|
}
|
|
7513
7590
|
)
|
|
7514
7591
|
] }),
|
|
7515
|
-
/* @__PURE__ */ (0,
|
|
7592
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_Box7.default, { sx: { mt: 2, typography: "h6" }, children: "Uploading" })
|
|
7516
7593
|
]
|
|
7517
7594
|
}
|
|
7518
7595
|
);
|
|
@@ -7526,11 +7603,11 @@ var import_IconButton2 = __toESM(require("@mui/material/IconButton"), 1);
|
|
|
7526
7603
|
// src/components/Upload/components/SingleFilePreview.tsx
|
|
7527
7604
|
var import_Box8 = __toESM(require("@mui/material/Box"), 1);
|
|
7528
7605
|
var import_IconButton = __toESM(require("@mui/material/IconButton"), 1);
|
|
7529
|
-
var
|
|
7606
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
7530
7607
|
var SingleFilePreview = ({ file }) => {
|
|
7531
7608
|
const fileName = typeof file === "string" ? file : file.name;
|
|
7532
7609
|
const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
|
|
7533
|
-
const renderImg = /* @__PURE__ */ (0,
|
|
7610
|
+
const renderImg = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
7534
7611
|
import_Box8.default,
|
|
7535
7612
|
{
|
|
7536
7613
|
component: "img",
|
|
@@ -7544,7 +7621,7 @@ var SingleFilePreview = ({ file }) => {
|
|
|
7544
7621
|
}
|
|
7545
7622
|
}
|
|
7546
7623
|
);
|
|
7547
|
-
return /* @__PURE__ */ (0,
|
|
7624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
7548
7625
|
import_Box8.default,
|
|
7549
7626
|
{
|
|
7550
7627
|
sx: {
|
|
@@ -7560,7 +7637,7 @@ var SingleFilePreview = ({ file }) => {
|
|
|
7560
7637
|
);
|
|
7561
7638
|
};
|
|
7562
7639
|
var DeleteButton = ({ sx, ...rest }) => {
|
|
7563
|
-
return /* @__PURE__ */ (0,
|
|
7640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
7564
7641
|
import_IconButton.default,
|
|
7565
7642
|
{
|
|
7566
7643
|
size: "small",
|
|
@@ -7579,13 +7656,13 @@ var DeleteButton = ({ sx, ...rest }) => {
|
|
|
7579
7656
|
...sx
|
|
7580
7657
|
},
|
|
7581
7658
|
...rest,
|
|
7582
|
-
children: /* @__PURE__ */ (0,
|
|
7659
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, { icon: "XMark", sx: { width: 18, height: 18 } })
|
|
7583
7660
|
}
|
|
7584
7661
|
);
|
|
7585
7662
|
};
|
|
7586
7663
|
|
|
7587
7664
|
// src/components/Upload/components/MultiFilePreview.tsx
|
|
7588
|
-
var
|
|
7665
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
7589
7666
|
var MultiFilePreview = ({ files, onRemove }) => {
|
|
7590
7667
|
const scrollRef = (0, import_react13.useRef)(null);
|
|
7591
7668
|
const handleScroll = (direction) => {
|
|
@@ -7599,8 +7676,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7599
7676
|
}
|
|
7600
7677
|
};
|
|
7601
7678
|
const showNavigation = files.length > 2;
|
|
7602
|
-
return /* @__PURE__ */ (0,
|
|
7603
|
-
showNavigation && /* @__PURE__ */ (0,
|
|
7679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_Box9.default, { sx: { position: "relative", width: 1 }, children: [
|
|
7680
|
+
showNavigation && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
7604
7681
|
import_IconButton2.default,
|
|
7605
7682
|
{
|
|
7606
7683
|
size: "small",
|
|
@@ -7617,10 +7694,10 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7617
7694
|
bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
|
|
7618
7695
|
}
|
|
7619
7696
|
},
|
|
7620
|
-
children: /* @__PURE__ */ (0,
|
|
7697
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon, { icon: "NavArrowLeft", width: 20 })
|
|
7621
7698
|
}
|
|
7622
7699
|
),
|
|
7623
|
-
/* @__PURE__ */ (0,
|
|
7700
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
7624
7701
|
import_Box9.default,
|
|
7625
7702
|
{
|
|
7626
7703
|
ref: scrollRef,
|
|
@@ -7639,7 +7716,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7639
7716
|
children: files.map((file, index) => {
|
|
7640
7717
|
const fileName = typeof file === "string" ? file : file.name;
|
|
7641
7718
|
const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
|
|
7642
|
-
return /* @__PURE__ */ (0,
|
|
7719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
7643
7720
|
import_Box9.default,
|
|
7644
7721
|
{
|
|
7645
7722
|
sx: {
|
|
@@ -7651,7 +7728,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7651
7728
|
flexShrink: 0
|
|
7652
7729
|
},
|
|
7653
7730
|
children: [
|
|
7654
|
-
/* @__PURE__ */ (0,
|
|
7731
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
7655
7732
|
import_Box9.default,
|
|
7656
7733
|
{
|
|
7657
7734
|
component: "img",
|
|
@@ -7665,7 +7742,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7665
7742
|
}
|
|
7666
7743
|
}
|
|
7667
7744
|
),
|
|
7668
|
-
onRemove && /* @__PURE__ */ (0,
|
|
7745
|
+
onRemove && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
7669
7746
|
DeleteButton,
|
|
7670
7747
|
{
|
|
7671
7748
|
onClick: (e) => {
|
|
@@ -7681,7 +7758,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7681
7758
|
})
|
|
7682
7759
|
}
|
|
7683
7760
|
),
|
|
7684
|
-
showNavigation && /* @__PURE__ */ (0,
|
|
7761
|
+
showNavigation && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
7685
7762
|
import_IconButton2.default,
|
|
7686
7763
|
{
|
|
7687
7764
|
size: "small",
|
|
@@ -7698,14 +7775,14 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7698
7775
|
bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
|
|
7699
7776
|
}
|
|
7700
7777
|
},
|
|
7701
|
-
children: /* @__PURE__ */ (0,
|
|
7778
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon, { icon: "NavArrowRight", width: 20 })
|
|
7702
7779
|
}
|
|
7703
7780
|
)
|
|
7704
7781
|
] });
|
|
7705
7782
|
};
|
|
7706
7783
|
|
|
7707
7784
|
// src/components/Upload/Upload.tsx
|
|
7708
|
-
var
|
|
7785
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
7709
7786
|
var Upload = ({
|
|
7710
7787
|
sx,
|
|
7711
7788
|
value,
|
|
@@ -7732,19 +7809,19 @@ var Upload = ({
|
|
|
7732
7809
|
const hasError = isDragReject || !!error2;
|
|
7733
7810
|
const renderContent = () => {
|
|
7734
7811
|
if (isUploading) {
|
|
7735
|
-
return /* @__PURE__ */ (0,
|
|
7812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(UploadProgress, { progress: uploadProgress });
|
|
7736
7813
|
}
|
|
7737
7814
|
if (hasFile) {
|
|
7738
|
-
return /* @__PURE__ */ (0,
|
|
7815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SingleFilePreview, { file: value });
|
|
7739
7816
|
}
|
|
7740
7817
|
if (hasFiles) {
|
|
7741
|
-
return /* @__PURE__ */ (0,
|
|
7818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(MultiFilePreview, { files: value, onRemove });
|
|
7742
7819
|
}
|
|
7743
|
-
return /* @__PURE__ */ (0,
|
|
7820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(UploadPlaceholder, { hasError });
|
|
7744
7821
|
};
|
|
7745
7822
|
const shouldShowDropzone = !hasFile && !hasFiles && !isUploading;
|
|
7746
|
-
return /* @__PURE__ */ (0,
|
|
7747
|
-
/* @__PURE__ */ (0,
|
|
7823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_Box10.default, { sx: { width: 1, position: "relative", ...sx }, children: [
|
|
7824
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
7748
7825
|
import_Box10.default,
|
|
7749
7826
|
{
|
|
7750
7827
|
...shouldShowDropzone ? getRootProps() : {},
|
|
@@ -7783,37 +7860,37 @@ var Upload = ({
|
|
|
7783
7860
|
}
|
|
7784
7861
|
},
|
|
7785
7862
|
children: [
|
|
7786
|
-
shouldShowDropzone && /* @__PURE__ */ (0,
|
|
7863
|
+
shouldShowDropzone && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("input", { ...getInputProps() }),
|
|
7787
7864
|
renderContent()
|
|
7788
7865
|
]
|
|
7789
7866
|
}
|
|
7790
7867
|
),
|
|
7791
|
-
hasFile && !isUploading && /* @__PURE__ */ (0,
|
|
7792
|
-
hasFiles && /* @__PURE__ */ (0,
|
|
7793
|
-
onRemoveAll && /* @__PURE__ */ (0,
|
|
7868
|
+
hasFile && !isUploading && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DeleteButton, { onClick: onDelete }),
|
|
7869
|
+
hasFiles && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_Stack4.default, { direction: "row", spacing: 2, sx: { mt: 2 }, children: [
|
|
7870
|
+
onRemoveAll && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
7794
7871
|
import_Button3.default,
|
|
7795
7872
|
{
|
|
7796
7873
|
variant: "outlined",
|
|
7797
7874
|
color: "inherit",
|
|
7798
7875
|
size: "small",
|
|
7799
7876
|
onClick: onRemoveAll,
|
|
7800
|
-
startIcon: /* @__PURE__ */ (0,
|
|
7877
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { icon: "Trash", sx: { width: 14, height: 14 } }),
|
|
7801
7878
|
children: "Remove all"
|
|
7802
7879
|
}
|
|
7803
7880
|
),
|
|
7804
|
-
onUpload && /* @__PURE__ */ (0,
|
|
7881
|
+
onUpload && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
7805
7882
|
import_Button3.default,
|
|
7806
7883
|
{
|
|
7807
7884
|
variant: "contained",
|
|
7808
7885
|
size: "small",
|
|
7809
7886
|
onClick: onUpload,
|
|
7810
|
-
startIcon: /* @__PURE__ */ (0,
|
|
7887
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { icon: "CloudUpload", sx: { width: 14, height: 14 } }),
|
|
7811
7888
|
children: "Upload files"
|
|
7812
7889
|
}
|
|
7813
7890
|
)
|
|
7814
7891
|
] }),
|
|
7815
|
-
helperText && /* @__PURE__ */ (0,
|
|
7816
|
-
/* @__PURE__ */ (0,
|
|
7892
|
+
helperText && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_FormHelperText.default, { error: !!error2, sx: { color: "text.body", fontWeight: 500, mt: 1 }, children: helperText }),
|
|
7893
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(RejectionFiles, { files: [...fileRejections] })
|
|
7817
7894
|
] });
|
|
7818
7895
|
};
|
|
7819
7896
|
|
|
@@ -7834,16 +7911,16 @@ var feedbackDialogClasses = {
|
|
|
7834
7911
|
var import_Box11 = __toESM(require("@mui/material/Box"), 1);
|
|
7835
7912
|
var import_IconButton3 = __toESM(require("@mui/material/IconButton"), 1);
|
|
7836
7913
|
var import_Dialog = __toESM(require("@mui/material/Dialog"), 1);
|
|
7837
|
-
var
|
|
7914
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
7838
7915
|
var CustomDialog = ({ children, onClose, className, ...props }) => {
|
|
7839
|
-
return /* @__PURE__ */ (0,
|
|
7916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
7840
7917
|
import_Dialog.default,
|
|
7841
7918
|
{
|
|
7842
7919
|
className: dialogClasses.root.concat(className ? ` ${className}` : ""),
|
|
7843
7920
|
onClose,
|
|
7844
7921
|
...props,
|
|
7845
7922
|
children: [
|
|
7846
|
-
/* @__PURE__ */ (0,
|
|
7923
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
7847
7924
|
import_IconButton3.default,
|
|
7848
7925
|
{
|
|
7849
7926
|
"aria-label": "close",
|
|
@@ -7856,10 +7933,10 @@ var CustomDialog = ({ children, onClose, className, ...props }) => {
|
|
|
7856
7933
|
color: (theme) => theme.vars.palette.text.body,
|
|
7857
7934
|
zIndex: 1
|
|
7858
7935
|
},
|
|
7859
|
-
children: /* @__PURE__ */ (0,
|
|
7936
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { icon: "XMark", sx: { width: 25, height: 24 } })
|
|
7860
7937
|
}
|
|
7861
7938
|
),
|
|
7862
|
-
/* @__PURE__ */ (0,
|
|
7939
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_Box11.default, { sx: { p: 4, pt: 9.5 }, children })
|
|
7863
7940
|
]
|
|
7864
7941
|
}
|
|
7865
7942
|
);
|
|
@@ -7869,7 +7946,7 @@ var CustomDialog = ({ children, onClose, className, ...props }) => {
|
|
|
7869
7946
|
var import_Stack5 = __toESM(require("@mui/material/Stack"), 1);
|
|
7870
7947
|
var import_Box12 = __toESM(require("@mui/material/Box"), 1);
|
|
7871
7948
|
var import_Typography5 = __toESM(require("@mui/material/Typography"), 1);
|
|
7872
|
-
var
|
|
7949
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
7873
7950
|
var FeedbackDialog = ({
|
|
7874
7951
|
image,
|
|
7875
7952
|
title,
|
|
@@ -7879,7 +7956,7 @@ var FeedbackDialog = ({
|
|
|
7879
7956
|
slotProps,
|
|
7880
7957
|
...props
|
|
7881
7958
|
}) => {
|
|
7882
|
-
return /* @__PURE__ */ (0,
|
|
7959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
7883
7960
|
CustomDialog,
|
|
7884
7961
|
{
|
|
7885
7962
|
slotProps: {
|
|
@@ -7890,8 +7967,8 @@ var FeedbackDialog = ({
|
|
|
7890
7967
|
}
|
|
7891
7968
|
},
|
|
7892
7969
|
...props,
|
|
7893
|
-
children: /* @__PURE__ */ (0,
|
|
7894
|
-
image && /* @__PURE__ */ (0,
|
|
7970
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_Stack5.default, { className: feedbackDialogClasses.root, alignItems: "center", spacing: 2.5, children: [
|
|
7971
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
7895
7972
|
import_Box12.default,
|
|
7896
7973
|
{
|
|
7897
7974
|
component: "img",
|
|
@@ -7906,7 +7983,7 @@ var FeedbackDialog = ({
|
|
|
7906
7983
|
}
|
|
7907
7984
|
}
|
|
7908
7985
|
),
|
|
7909
|
-
title && /* @__PURE__ */ (0,
|
|
7986
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
7910
7987
|
import_Typography5.default,
|
|
7911
7988
|
{
|
|
7912
7989
|
variant: "h4",
|
|
@@ -7920,7 +7997,7 @@ var FeedbackDialog = ({
|
|
|
7920
7997
|
children: title
|
|
7921
7998
|
}
|
|
7922
7999
|
),
|
|
7923
|
-
description && /* @__PURE__ */ (0,
|
|
8000
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
7924
8001
|
import_Typography5.default,
|
|
7925
8002
|
{
|
|
7926
8003
|
variant: "body2",
|
|
@@ -7933,7 +8010,7 @@ var FeedbackDialog = ({
|
|
|
7933
8010
|
children: description
|
|
7934
8011
|
}
|
|
7935
8012
|
),
|
|
7936
|
-
actions && /* @__PURE__ */ (0,
|
|
8013
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
7937
8014
|
import_Box12.default,
|
|
7938
8015
|
{
|
|
7939
8016
|
className: feedbackDialogClasses.actions,
|
|
@@ -7966,7 +8043,7 @@ var import_Box13 = __toESM(require("@mui/material/Box"), 1);
|
|
|
7966
8043
|
var import_IconButton4 = __toESM(require("@mui/material/IconButton"), 1);
|
|
7967
8044
|
var import_Typography6 = __toESM(require("@mui/material/Typography"), 1);
|
|
7968
8045
|
var import_Drawer = __toESM(require("@mui/material/Drawer"), 1);
|
|
7969
|
-
var
|
|
8046
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
7970
8047
|
var CustomDrawer = ({
|
|
7971
8048
|
title,
|
|
7972
8049
|
children,
|
|
@@ -7976,7 +8053,7 @@ var CustomDrawer = ({
|
|
|
7976
8053
|
slotProps,
|
|
7977
8054
|
...props
|
|
7978
8055
|
}) => {
|
|
7979
|
-
return /* @__PURE__ */ (0,
|
|
8056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
7980
8057
|
import_Drawer.default,
|
|
7981
8058
|
{
|
|
7982
8059
|
anchor,
|
|
@@ -7995,7 +8072,7 @@ var CustomDrawer = ({
|
|
|
7995
8072
|
},
|
|
7996
8073
|
...props,
|
|
7997
8074
|
children: [
|
|
7998
|
-
/* @__PURE__ */ (0,
|
|
8075
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
7999
8076
|
import_Box13.default,
|
|
8000
8077
|
{
|
|
8001
8078
|
className: drawerClasses.header,
|
|
@@ -8008,7 +8085,7 @@ var CustomDrawer = ({
|
|
|
8008
8085
|
flexShrink: 0
|
|
8009
8086
|
},
|
|
8010
8087
|
children: [
|
|
8011
|
-
/* @__PURE__ */ (0,
|
|
8088
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
8012
8089
|
import_Typography6.default,
|
|
8013
8090
|
{
|
|
8014
8091
|
variant: "h4",
|
|
@@ -8022,7 +8099,7 @@ var CustomDrawer = ({
|
|
|
8022
8099
|
children: title
|
|
8023
8100
|
}
|
|
8024
8101
|
),
|
|
8025
|
-
/* @__PURE__ */ (0,
|
|
8102
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
8026
8103
|
import_IconButton4.default,
|
|
8027
8104
|
{
|
|
8028
8105
|
"aria-label": "close",
|
|
@@ -8032,13 +8109,13 @@ var CustomDrawer = ({
|
|
|
8032
8109
|
color: "text.body",
|
|
8033
8110
|
p: 0
|
|
8034
8111
|
},
|
|
8035
|
-
children: /* @__PURE__ */ (0,
|
|
8112
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "XMark", sx: { width: 25, height: 24 } })
|
|
8036
8113
|
}
|
|
8037
8114
|
)
|
|
8038
8115
|
]
|
|
8039
8116
|
}
|
|
8040
8117
|
),
|
|
8041
|
-
/* @__PURE__ */ (0,
|
|
8118
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
8042
8119
|
import_Box13.default,
|
|
8043
8120
|
{
|
|
8044
8121
|
className: drawerClasses.content,
|
|
@@ -8089,7 +8166,7 @@ var import_FormControlLabel = __toESM(require("@mui/material/FormControlLabel"),
|
|
|
8089
8166
|
// src/components/Toolbar/ToolbarButton.tsx
|
|
8090
8167
|
var import_Typography7 = __toESM(require("@mui/material/Typography"), 1);
|
|
8091
8168
|
var import_ButtonBase = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
8092
|
-
var
|
|
8169
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
8093
8170
|
var baseStyles2 = {
|
|
8094
8171
|
display: "flex",
|
|
8095
8172
|
alignItems: "center",
|
|
@@ -8116,7 +8193,7 @@ var ToolbarButton = ({
|
|
|
8116
8193
|
sx,
|
|
8117
8194
|
...props
|
|
8118
8195
|
}) => {
|
|
8119
|
-
return /* @__PURE__ */ (0,
|
|
8196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
8120
8197
|
import_ButtonBase.default,
|
|
8121
8198
|
{
|
|
8122
8199
|
className: toolbarClasses.button.concat(
|
|
@@ -8131,7 +8208,7 @@ var ToolbarButton = ({
|
|
|
8131
8208
|
},
|
|
8132
8209
|
...props,
|
|
8133
8210
|
children: [
|
|
8134
|
-
icon2 && /* @__PURE__ */ (0,
|
|
8211
|
+
icon2 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8135
8212
|
Icon,
|
|
8136
8213
|
{
|
|
8137
8214
|
icon: icon2,
|
|
@@ -8139,7 +8216,7 @@ var ToolbarButton = ({
|
|
|
8139
8216
|
sx: { width: 16, height: 16, color: "text.header" }
|
|
8140
8217
|
}
|
|
8141
8218
|
),
|
|
8142
|
-
label && /* @__PURE__ */ (0,
|
|
8219
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8143
8220
|
import_Typography7.default,
|
|
8144
8221
|
{
|
|
8145
8222
|
variant: "body2",
|
|
@@ -8159,13 +8236,13 @@ var ToolbarButton = ({
|
|
|
8159
8236
|
};
|
|
8160
8237
|
|
|
8161
8238
|
// src/components/Toolbar/ToolbarSortButton.tsx
|
|
8162
|
-
var
|
|
8239
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
8163
8240
|
var ToolbarSortButton = ({ label = "Sort", ...props }) => {
|
|
8164
|
-
return /* @__PURE__ */ (0,
|
|
8241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ToolbarButton, { icon: "SortUp", label, ...props });
|
|
8165
8242
|
};
|
|
8166
8243
|
|
|
8167
8244
|
// src/components/Toolbar/SortDropdown.tsx
|
|
8168
|
-
var
|
|
8245
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
8169
8246
|
var SortDropdown = (0, import_react14.forwardRef)(
|
|
8170
8247
|
({
|
|
8171
8248
|
options,
|
|
@@ -8212,8 +8289,8 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8212
8289
|
},
|
|
8213
8290
|
[externalValue, onChange, currentValue]
|
|
8214
8291
|
);
|
|
8215
|
-
return /* @__PURE__ */ (0,
|
|
8216
|
-
/* @__PURE__ */ (0,
|
|
8292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_Box14.default, { ref, className: toolbarClasses.sortDropdown, children: [
|
|
8293
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8217
8294
|
ToolbarSortButton,
|
|
8218
8295
|
{
|
|
8219
8296
|
label: buttonLabel,
|
|
@@ -8222,7 +8299,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8222
8299
|
disabled
|
|
8223
8300
|
}
|
|
8224
8301
|
),
|
|
8225
|
-
/* @__PURE__ */ (0,
|
|
8302
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
8226
8303
|
import_Popover.default,
|
|
8227
8304
|
{
|
|
8228
8305
|
open,
|
|
@@ -8241,11 +8318,11 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8241
8318
|
},
|
|
8242
8319
|
...PopoverProps,
|
|
8243
8320
|
children: [
|
|
8244
|
-
/* @__PURE__ */ (0,
|
|
8321
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_RadioGroup.default, { value: currentValue, onChange: handleValueChange, sx: { px: 1, py: 0.5 }, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8245
8322
|
import_FormControlLabel.default,
|
|
8246
8323
|
{
|
|
8247
8324
|
value: option.value,
|
|
8248
|
-
control: /* @__PURE__ */ (0,
|
|
8325
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8249
8326
|
import_Radio2.default,
|
|
8250
8327
|
{
|
|
8251
8328
|
sx: {
|
|
@@ -8261,7 +8338,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8261
8338
|
}
|
|
8262
8339
|
}
|
|
8263
8340
|
),
|
|
8264
|
-
label: /* @__PURE__ */ (0,
|
|
8341
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8265
8342
|
import_Typography8.default,
|
|
8266
8343
|
{
|
|
8267
8344
|
sx: {
|
|
@@ -8281,7 +8358,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8281
8358
|
},
|
|
8282
8359
|
option.value
|
|
8283
8360
|
)) }),
|
|
8284
|
-
/* @__PURE__ */ (0,
|
|
8361
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
8285
8362
|
import_Box14.default,
|
|
8286
8363
|
{
|
|
8287
8364
|
sx: {
|
|
@@ -8291,7 +8368,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8291
8368
|
overflow: "hidden"
|
|
8292
8369
|
},
|
|
8293
8370
|
children: [
|
|
8294
|
-
/* @__PURE__ */ (0,
|
|
8371
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
8295
8372
|
import_ButtonBase2.default,
|
|
8296
8373
|
{
|
|
8297
8374
|
onClick: () => handleDirectionChange("asc"),
|
|
@@ -8308,7 +8385,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8308
8385
|
}
|
|
8309
8386
|
},
|
|
8310
8387
|
children: [
|
|
8311
|
-
/* @__PURE__ */ (0,
|
|
8388
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8312
8389
|
Icon,
|
|
8313
8390
|
{
|
|
8314
8391
|
icon: "SortUp",
|
|
@@ -8319,7 +8396,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8319
8396
|
}
|
|
8320
8397
|
}
|
|
8321
8398
|
),
|
|
8322
|
-
/* @__PURE__ */ (0,
|
|
8399
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8323
8400
|
import_Typography8.default,
|
|
8324
8401
|
{
|
|
8325
8402
|
sx: {
|
|
@@ -8333,7 +8410,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8333
8410
|
]
|
|
8334
8411
|
}
|
|
8335
8412
|
),
|
|
8336
|
-
/* @__PURE__ */ (0,
|
|
8413
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
8337
8414
|
import_ButtonBase2.default,
|
|
8338
8415
|
{
|
|
8339
8416
|
onClick: () => handleDirectionChange("desc"),
|
|
@@ -8350,7 +8427,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8350
8427
|
}
|
|
8351
8428
|
},
|
|
8352
8429
|
children: [
|
|
8353
|
-
/* @__PURE__ */ (0,
|
|
8430
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8354
8431
|
Icon,
|
|
8355
8432
|
{
|
|
8356
8433
|
icon: "SortDown",
|
|
@@ -8361,7 +8438,7 @@ var SortDropdown = (0, import_react14.forwardRef)(
|
|
|
8361
8438
|
}
|
|
8362
8439
|
}
|
|
8363
8440
|
),
|
|
8364
|
-
/* @__PURE__ */ (0,
|
|
8441
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8365
8442
|
import_Typography8.default,
|
|
8366
8443
|
{
|
|
8367
8444
|
sx: {
|
|
@@ -8392,13 +8469,13 @@ var import_Box15 = __toESM(require("@mui/material/Box"), 1);
|
|
|
8392
8469
|
var import_Popover2 = __toESM(require("@mui/material/Popover"), 1);
|
|
8393
8470
|
|
|
8394
8471
|
// src/components/Toolbar/ToolbarFilterButton.tsx
|
|
8395
|
-
var
|
|
8472
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
8396
8473
|
var ToolbarFilterButton = ({ label = "Filter", ...props }) => {
|
|
8397
|
-
return /* @__PURE__ */ (0,
|
|
8474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ToolbarButton, { icon: "FilterList", label, ...props });
|
|
8398
8475
|
};
|
|
8399
8476
|
|
|
8400
8477
|
// src/components/Toolbar/FilterDropdown.tsx
|
|
8401
|
-
var
|
|
8478
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
8402
8479
|
var FilterDropdown = (0, import_react15.forwardRef)(
|
|
8403
8480
|
({ children, onClose, buttonLabel = "Filter", popoverSx, PopoverProps, disabled }, ref) => {
|
|
8404
8481
|
const [anchorEl, setAnchorEl] = (0, import_react15.useState)(null);
|
|
@@ -8410,8 +8487,8 @@ var FilterDropdown = (0, import_react15.forwardRef)(
|
|
|
8410
8487
|
setAnchorEl(null);
|
|
8411
8488
|
onClose?.();
|
|
8412
8489
|
}, [onClose]);
|
|
8413
|
-
return /* @__PURE__ */ (0,
|
|
8414
|
-
/* @__PURE__ */ (0,
|
|
8490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_Box15.default, { ref, className: toolbarClasses.filterDropdown, children: [
|
|
8491
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
8415
8492
|
ToolbarFilterButton,
|
|
8416
8493
|
{
|
|
8417
8494
|
label: buttonLabel,
|
|
@@ -8420,7 +8497,7 @@ var FilterDropdown = (0, import_react15.forwardRef)(
|
|
|
8420
8497
|
disabled
|
|
8421
8498
|
}
|
|
8422
8499
|
),
|
|
8423
|
-
/* @__PURE__ */ (0,
|
|
8500
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
8424
8501
|
import_Popover2.default,
|
|
8425
8502
|
{
|
|
8426
8503
|
open,
|
|
@@ -8460,12 +8537,12 @@ var import_date_fns2 = require("date-fns");
|
|
|
8460
8537
|
var import_Popover3 = __toESM(require("@mui/material/Popover"), 1);
|
|
8461
8538
|
|
|
8462
8539
|
// src/components/Toolbar/ToolbarDatePickerButton.tsx
|
|
8463
|
-
var
|
|
8540
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
8464
8541
|
var ToolbarDatePickerButton = ({
|
|
8465
8542
|
label = "Last 30 days",
|
|
8466
8543
|
...props
|
|
8467
8544
|
}) => {
|
|
8468
|
-
return /* @__PURE__ */ (0,
|
|
8545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ToolbarButton, { icon: "Calendar", label, ...props });
|
|
8469
8546
|
};
|
|
8470
8547
|
|
|
8471
8548
|
// src/components/DateRangePicker/index.tsx
|
|
@@ -8481,7 +8558,7 @@ var import_FormControlLabel2 = __toESM(require("@mui/material/FormControlLabel")
|
|
|
8481
8558
|
var import_DateCalendar = require("@mui/x-date-pickers/DateCalendar");
|
|
8482
8559
|
var import_AdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
|
|
8483
8560
|
var import_LocalizationProvider = require("@mui/x-date-pickers/LocalizationProvider");
|
|
8484
|
-
var
|
|
8561
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
8485
8562
|
var defaultPresets = [
|
|
8486
8563
|
{ value: "today", label: "Today" },
|
|
8487
8564
|
{ value: "yesterday", label: "Yesterday" },
|
|
@@ -8585,7 +8662,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8585
8662
|
if (tempRange.end) return tempRange.end;
|
|
8586
8663
|
return (0, import_date_fns.addMonths)(/* @__PURE__ */ new Date(), 1);
|
|
8587
8664
|
}, [tempRange.end]);
|
|
8588
|
-
return /* @__PURE__ */ (0,
|
|
8665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_LocalizationProvider.LocalizationProvider, { dateAdapter: import_AdapterDateFns.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8589
8666
|
import_Box16.default,
|
|
8590
8667
|
{
|
|
8591
8668
|
ref,
|
|
@@ -8596,7 +8673,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8596
8673
|
...sx
|
|
8597
8674
|
},
|
|
8598
8675
|
children: [
|
|
8599
|
-
showPresets && /* @__PURE__ */ (0,
|
|
8676
|
+
showPresets && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8600
8677
|
import_Box16.default,
|
|
8601
8678
|
{
|
|
8602
8679
|
sx: {
|
|
@@ -8610,20 +8687,20 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8610
8687
|
borderColor: "border.mute",
|
|
8611
8688
|
bgcolor: "common.white"
|
|
8612
8689
|
},
|
|
8613
|
-
children: /* @__PURE__ */ (0,
|
|
8690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_RadioGroup2.default, { value: selectedPreset, onChange: handlePresetChange, children: presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8614
8691
|
import_FormControlLabel2.default,
|
|
8615
8692
|
{
|
|
8616
8693
|
value: preset.value,
|
|
8617
|
-
control: /* @__PURE__ */ (0,
|
|
8618
|
-
label: /* @__PURE__ */ (0,
|
|
8694
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Radio3.default, { size: "small" }),
|
|
8695
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Typography9.default, { variant: "body2", children: preset.label }),
|
|
8619
8696
|
sx: { m: 0, mb: 1.5, gap: 1 }
|
|
8620
8697
|
},
|
|
8621
8698
|
preset.value
|
|
8622
8699
|
)) })
|
|
8623
8700
|
}
|
|
8624
8701
|
),
|
|
8625
|
-
/* @__PURE__ */ (0,
|
|
8626
|
-
/* @__PURE__ */ (0,
|
|
8702
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_Box16.default, { sx: { display: "flex", flexDirection: "column" }, children: [
|
|
8703
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8627
8704
|
import_Box16.default,
|
|
8628
8705
|
{
|
|
8629
8706
|
sx: {
|
|
@@ -8632,7 +8709,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8632
8709
|
borderColor: "border.mute"
|
|
8633
8710
|
},
|
|
8634
8711
|
children: [
|
|
8635
|
-
/* @__PURE__ */ (0,
|
|
8712
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8636
8713
|
import_DateCalendar.DateCalendar,
|
|
8637
8714
|
{
|
|
8638
8715
|
value: tempRange.start,
|
|
@@ -8649,7 +8726,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8649
8726
|
}
|
|
8650
8727
|
}
|
|
8651
8728
|
),
|
|
8652
|
-
/* @__PURE__ */ (0,
|
|
8729
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8653
8730
|
import_DateCalendar.DateCalendar,
|
|
8654
8731
|
{
|
|
8655
8732
|
value: tempRange.end,
|
|
@@ -8667,7 +8744,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8667
8744
|
]
|
|
8668
8745
|
}
|
|
8669
8746
|
),
|
|
8670
|
-
showActions && /* @__PURE__ */ (0,
|
|
8747
|
+
showActions && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8671
8748
|
import_Box16.default,
|
|
8672
8749
|
{
|
|
8673
8750
|
sx: {
|
|
@@ -8676,7 +8753,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8676
8753
|
justifyContent: "space-between"
|
|
8677
8754
|
},
|
|
8678
8755
|
children: [
|
|
8679
|
-
/* @__PURE__ */ (0,
|
|
8756
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
8680
8757
|
import_Box16.default,
|
|
8681
8758
|
{
|
|
8682
8759
|
sx: {
|
|
@@ -8687,7 +8764,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8687
8764
|
flex: 1
|
|
8688
8765
|
},
|
|
8689
8766
|
children: [
|
|
8690
|
-
/* @__PURE__ */ (0,
|
|
8767
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8691
8768
|
import_TextField.default,
|
|
8692
8769
|
{
|
|
8693
8770
|
size: "small",
|
|
@@ -8702,8 +8779,8 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8702
8779
|
sx: { flex: 1 }
|
|
8703
8780
|
}
|
|
8704
8781
|
),
|
|
8705
|
-
/* @__PURE__ */ (0,
|
|
8706
|
-
/* @__PURE__ */ (0,
|
|
8782
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Typography9.default, { color: "text.primary", children: "-" }),
|
|
8783
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
8707
8784
|
import_TextField.default,
|
|
8708
8785
|
{
|
|
8709
8786
|
size: "small",
|
|
@@ -8721,9 +8798,9 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8721
8798
|
]
|
|
8722
8799
|
}
|
|
8723
8800
|
),
|
|
8724
|
-
/* @__PURE__ */ (0,
|
|
8725
|
-
/* @__PURE__ */ (0,
|
|
8726
|
-
/* @__PURE__ */ (0,
|
|
8801
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_Box16.default, { sx: { display: "flex", gap: 1, px: 2 }, children: [
|
|
8802
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Button4.default, { size: "small", variant: "secondary", color: "neutral", onClick: onCancel, children: cancelLabel }),
|
|
8803
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Button4.default, { size: "small", variant: "primary", onClick: handleApply, children: applyLabel })
|
|
8727
8804
|
] })
|
|
8728
8805
|
]
|
|
8729
8806
|
}
|
|
@@ -8737,7 +8814,7 @@ var DateRangePicker = (0, import_react16.forwardRef)(
|
|
|
8737
8814
|
DateRangePicker.displayName = "DateRangePicker";
|
|
8738
8815
|
|
|
8739
8816
|
// src/components/Toolbar/DateRangeDropdown.tsx
|
|
8740
|
-
var
|
|
8817
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
8741
8818
|
function DateRangeDropdown({
|
|
8742
8819
|
value,
|
|
8743
8820
|
preset,
|
|
@@ -8779,8 +8856,8 @@ function DateRangeDropdown({
|
|
|
8779
8856
|
},
|
|
8780
8857
|
[onChange, handleClose]
|
|
8781
8858
|
);
|
|
8782
|
-
return /* @__PURE__ */ (0,
|
|
8783
|
-
/* @__PURE__ */ (0,
|
|
8859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
|
|
8860
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8784
8861
|
ToolbarDatePickerButton,
|
|
8785
8862
|
{
|
|
8786
8863
|
label: displayLabel,
|
|
@@ -8789,7 +8866,7 @@ function DateRangeDropdown({
|
|
|
8789
8866
|
disabled
|
|
8790
8867
|
}
|
|
8791
8868
|
),
|
|
8792
|
-
/* @__PURE__ */ (0,
|
|
8869
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8793
8870
|
import_Popover3.default,
|
|
8794
8871
|
{
|
|
8795
8872
|
open,
|
|
@@ -8816,7 +8893,7 @@ function DateRangeDropdown({
|
|
|
8816
8893
|
}
|
|
8817
8894
|
},
|
|
8818
8895
|
...PopoverProps,
|
|
8819
|
-
children: /* @__PURE__ */ (0,
|
|
8896
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
8820
8897
|
DateRangePicker,
|
|
8821
8898
|
{
|
|
8822
8899
|
value,
|
|
@@ -8835,9 +8912,9 @@ function DateRangeDropdown({
|
|
|
8835
8912
|
}
|
|
8836
8913
|
|
|
8837
8914
|
// src/components/Toolbar/ToolbarTodayButton.tsx
|
|
8838
|
-
var
|
|
8915
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
8839
8916
|
var ToolbarTodayButton = ({ label = "Today", sx, ...props }) => {
|
|
8840
|
-
return /* @__PURE__ */ (0,
|
|
8917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ToolbarButton, { label, sx: { px: 1.5, ...sx }, ...props });
|
|
8841
8918
|
};
|
|
8842
8919
|
|
|
8843
8920
|
// src/components/Toolbar/ToolbarSearchField.tsx
|
|
@@ -8845,7 +8922,7 @@ var import_react18 = require("react");
|
|
|
8845
8922
|
var import_Box17 = __toESM(require("@mui/material/Box"), 1);
|
|
8846
8923
|
var import_ButtonBase3 = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
8847
8924
|
var import_InputBase2 = __toESM(require("@mui/material/InputBase"), 1);
|
|
8848
|
-
var
|
|
8925
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
8849
8926
|
var baseStyles3 = {
|
|
8850
8927
|
display: "flex",
|
|
8851
8928
|
alignItems: "center",
|
|
@@ -8878,7 +8955,7 @@ var ToolbarSearchField = (0, import_react18.forwardRef)(
|
|
|
8878
8955
|
const handleClear = (0, import_react18.useCallback)(() => {
|
|
8879
8956
|
onClear?.();
|
|
8880
8957
|
}, [onClear]);
|
|
8881
|
-
return /* @__PURE__ */ (0,
|
|
8958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
8882
8959
|
import_Box17.default,
|
|
8883
8960
|
{
|
|
8884
8961
|
ref,
|
|
@@ -8895,7 +8972,7 @@ var ToolbarSearchField = (0, import_react18.forwardRef)(
|
|
|
8895
8972
|
...sx
|
|
8896
8973
|
},
|
|
8897
8974
|
children: [
|
|
8898
|
-
/* @__PURE__ */ (0,
|
|
8975
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8899
8976
|
Icon,
|
|
8900
8977
|
{
|
|
8901
8978
|
icon: "Search",
|
|
@@ -8903,7 +8980,7 @@ var ToolbarSearchField = (0, import_react18.forwardRef)(
|
|
|
8903
8980
|
sx: { width: 16, height: 16, color: "icon.black", flexShrink: 0 }
|
|
8904
8981
|
}
|
|
8905
8982
|
),
|
|
8906
|
-
/* @__PURE__ */ (0,
|
|
8983
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8907
8984
|
import_InputBase2.default,
|
|
8908
8985
|
{
|
|
8909
8986
|
inputRef,
|
|
@@ -8930,7 +9007,7 @@ var ToolbarSearchField = (0, import_react18.forwardRef)(
|
|
|
8930
9007
|
...props
|
|
8931
9008
|
}
|
|
8932
9009
|
),
|
|
8933
|
-
hasValue && onClear && /* @__PURE__ */ (0,
|
|
9010
|
+
hasValue && onClear && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
8934
9011
|
import_ButtonBase3.default,
|
|
8935
9012
|
{
|
|
8936
9013
|
onClick: handleClear,
|
|
@@ -8943,7 +9020,7 @@ var ToolbarSearchField = (0, import_react18.forwardRef)(
|
|
|
8943
9020
|
bgcolor: "grey.100"
|
|
8944
9021
|
}
|
|
8945
9022
|
},
|
|
8946
|
-
children: /* @__PURE__ */ (0,
|
|
9023
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon, { icon: "XMark", sx: { width: 14, height: 14, color: "icon.mute" } })
|
|
8947
9024
|
}
|
|
8948
9025
|
)
|
|
8949
9026
|
]
|
|
@@ -8956,7 +9033,7 @@ var ToolbarSearchField = (0, import_react18.forwardRef)(
|
|
|
8956
9033
|
var import_Box18 = __toESM(require("@mui/material/Box"), 1);
|
|
8957
9034
|
var import_Typography10 = __toESM(require("@mui/material/Typography"), 1);
|
|
8958
9035
|
var import_ButtonBase4 = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
8959
|
-
var
|
|
9036
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
8960
9037
|
var viewLabels = {
|
|
8961
9038
|
year: "Year",
|
|
8962
9039
|
month: "Month",
|
|
@@ -8986,7 +9063,7 @@ var ToolbarViewSwitcher = ({
|
|
|
8986
9063
|
sx,
|
|
8987
9064
|
...props
|
|
8988
9065
|
}) => {
|
|
8989
|
-
return /* @__PURE__ */ (0,
|
|
9066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
8990
9067
|
import_ButtonBase4.default,
|
|
8991
9068
|
{
|
|
8992
9069
|
className: toolbarClasses.viewSwitcher.concat(
|
|
@@ -9003,7 +9080,7 @@ var ToolbarViewSwitcher = ({
|
|
|
9003
9080
|
},
|
|
9004
9081
|
...props,
|
|
9005
9082
|
children: [
|
|
9006
|
-
/* @__PURE__ */ (0,
|
|
9083
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
9007
9084
|
import_Box18.default,
|
|
9008
9085
|
{
|
|
9009
9086
|
sx: {
|
|
@@ -9014,7 +9091,7 @@ var ToolbarViewSwitcher = ({
|
|
|
9014
9091
|
borderRight: "0.5px solid",
|
|
9015
9092
|
borderColor: "border.mute"
|
|
9016
9093
|
},
|
|
9017
|
-
children: /* @__PURE__ */ (0,
|
|
9094
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
9018
9095
|
import_Typography10.default,
|
|
9019
9096
|
{
|
|
9020
9097
|
variant: "body2",
|
|
@@ -9030,7 +9107,7 @@ var ToolbarViewSwitcher = ({
|
|
|
9030
9107
|
)
|
|
9031
9108
|
}
|
|
9032
9109
|
),
|
|
9033
|
-
/* @__PURE__ */ (0,
|
|
9110
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
9034
9111
|
Icon,
|
|
9035
9112
|
{
|
|
9036
9113
|
icon: "NavArrowDown",
|
|
@@ -9045,7 +9122,7 @@ var ToolbarViewSwitcher = ({
|
|
|
9045
9122
|
|
|
9046
9123
|
// src/components/Toolbar/ToolbarSettingsButton.tsx
|
|
9047
9124
|
var import_ButtonBase5 = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
9048
|
-
var
|
|
9125
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
9049
9126
|
var baseStyles5 = {
|
|
9050
9127
|
display: "flex",
|
|
9051
9128
|
alignItems: "center",
|
|
@@ -9067,7 +9144,7 @@ var ToolbarSettingsButton = ({
|
|
|
9067
9144
|
sx,
|
|
9068
9145
|
...props
|
|
9069
9146
|
}) => {
|
|
9070
|
-
return /* @__PURE__ */ (0,
|
|
9147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9071
9148
|
import_ButtonBase5.default,
|
|
9072
9149
|
{
|
|
9073
9150
|
className: toolbarClasses.button.concat(
|
|
@@ -9083,7 +9160,7 @@ var ToolbarSettingsButton = ({
|
|
|
9083
9160
|
...sx
|
|
9084
9161
|
},
|
|
9085
9162
|
...props,
|
|
9086
|
-
children: /* @__PURE__ */ (0,
|
|
9163
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9087
9164
|
Icon,
|
|
9088
9165
|
{
|
|
9089
9166
|
icon: "Settings",
|
|
@@ -9098,14 +9175,14 @@ var ToolbarSettingsButton = ({
|
|
|
9098
9175
|
// src/components/HookForm/Form.tsx
|
|
9099
9176
|
var import_react_hook_form = require("react-hook-form");
|
|
9100
9177
|
var import_Box19 = __toESM(require("@mui/material/Box"), 1);
|
|
9101
|
-
var
|
|
9178
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
9102
9179
|
var Form = ({
|
|
9103
9180
|
children,
|
|
9104
9181
|
onSubmit,
|
|
9105
9182
|
methods,
|
|
9106
9183
|
...rest
|
|
9107
9184
|
}) => {
|
|
9108
|
-
return /* @__PURE__ */ (0,
|
|
9185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_hook_form.FormProvider, { ...methods, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9109
9186
|
import_Box19.default,
|
|
9110
9187
|
{
|
|
9111
9188
|
component: "form",
|
|
@@ -9134,7 +9211,7 @@ var import_FormLabel = __toESM(require("@mui/material/FormLabel"), 1);
|
|
|
9134
9211
|
var import_FormControl = __toESM(require("@mui/material/FormControl"), 1);
|
|
9135
9212
|
var import_FormHelperText2 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
9136
9213
|
var import_FormControlLabel3 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
9137
|
-
var
|
|
9214
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
9138
9215
|
var RHFSwitch = ({
|
|
9139
9216
|
name,
|
|
9140
9217
|
description,
|
|
@@ -9146,16 +9223,16 @@ var RHFSwitch = ({
|
|
|
9146
9223
|
}) => {
|
|
9147
9224
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
9148
9225
|
const baseAriaLabel = `Switch ${name}`;
|
|
9149
|
-
return /* @__PURE__ */ (0,
|
|
9226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9150
9227
|
import_react_hook_form2.Controller,
|
|
9151
9228
|
{
|
|
9152
9229
|
name,
|
|
9153
9230
|
control,
|
|
9154
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9155
|
-
/* @__PURE__ */ (0,
|
|
9231
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_Box20.default, { sx: slotProps?.wrap, children: [
|
|
9232
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9156
9233
|
import_FormControlLabel3.default,
|
|
9157
9234
|
{
|
|
9158
|
-
control: /* @__PURE__ */ (0,
|
|
9235
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9159
9236
|
import_Switch2.default,
|
|
9160
9237
|
{
|
|
9161
9238
|
...field,
|
|
@@ -9170,9 +9247,9 @@ var RHFSwitch = ({
|
|
|
9170
9247
|
}
|
|
9171
9248
|
}
|
|
9172
9249
|
),
|
|
9173
|
-
label: /* @__PURE__ */ (0,
|
|
9174
|
-
/* @__PURE__ */ (0,
|
|
9175
|
-
description && /* @__PURE__ */ (0,
|
|
9250
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_Stack6.default, { children: [
|
|
9251
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Typography11.default, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: label }),
|
|
9252
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Typography11.default, { variant: "body2", color: "text.body", children: description })
|
|
9176
9253
|
] }),
|
|
9177
9254
|
sx: {
|
|
9178
9255
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -9181,7 +9258,7 @@ var RHFSwitch = ({
|
|
|
9181
9258
|
...other
|
|
9182
9259
|
}
|
|
9183
9260
|
),
|
|
9184
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
9261
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9185
9262
|
import_FormHelperText2.default,
|
|
9186
9263
|
{
|
|
9187
9264
|
error: !!error2,
|
|
@@ -9204,19 +9281,19 @@ var RHFMultiSwitch = ({
|
|
|
9204
9281
|
}) => {
|
|
9205
9282
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
9206
9283
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
9207
|
-
return /* @__PURE__ */ (0,
|
|
9284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9208
9285
|
import_react_hook_form2.Controller,
|
|
9209
9286
|
{
|
|
9210
9287
|
name,
|
|
9211
9288
|
control,
|
|
9212
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9289
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
9213
9290
|
import_FormControl.default,
|
|
9214
9291
|
{
|
|
9215
9292
|
component: "fieldset",
|
|
9216
9293
|
sx: slotProps?.formControl?.sx,
|
|
9217
9294
|
...slotProps?.formControl,
|
|
9218
9295
|
children: [
|
|
9219
|
-
label && /* @__PURE__ */ (0,
|
|
9296
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9220
9297
|
import_FormLabel.default,
|
|
9221
9298
|
{
|
|
9222
9299
|
component: "legend",
|
|
@@ -9225,12 +9302,12 @@ var RHFMultiSwitch = ({
|
|
|
9225
9302
|
children: label
|
|
9226
9303
|
}
|
|
9227
9304
|
),
|
|
9228
|
-
/* @__PURE__ */ (0,
|
|
9305
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_FormGroup.default, { ...other, children: options.map((option) => {
|
|
9229
9306
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
9230
|
-
return /* @__PURE__ */ (0,
|
|
9307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9231
9308
|
import_FormControlLabel3.default,
|
|
9232
9309
|
{
|
|
9233
|
-
control: /* @__PURE__ */ (0,
|
|
9310
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9234
9311
|
import_Switch2.default,
|
|
9235
9312
|
{
|
|
9236
9313
|
checked: (field.value || []).includes(option.value),
|
|
@@ -9253,7 +9330,7 @@ var RHFMultiSwitch = ({
|
|
|
9253
9330
|
option.value
|
|
9254
9331
|
);
|
|
9255
9332
|
}) }),
|
|
9256
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
9333
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_FormHelperText2.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
9257
9334
|
]
|
|
9258
9335
|
}
|
|
9259
9336
|
)
|
|
@@ -9263,10 +9340,10 @@ var RHFMultiSwitch = ({
|
|
|
9263
9340
|
|
|
9264
9341
|
// src/components/HookForm/RHFUpload.tsx
|
|
9265
9342
|
var import_react_hook_form3 = require("react-hook-form");
|
|
9266
|
-
var
|
|
9343
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
9267
9344
|
var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
9268
9345
|
const { control, setValue } = (0, import_react_hook_form3.useFormContext)();
|
|
9269
|
-
return /* @__PURE__ */ (0,
|
|
9346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9270
9347
|
import_react_hook_form3.Controller,
|
|
9271
9348
|
{
|
|
9272
9349
|
name,
|
|
@@ -9294,7 +9371,7 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
|
9294
9371
|
const onRemoveAll = () => {
|
|
9295
9372
|
setValue(name, [], { shouldValidate: true });
|
|
9296
9373
|
};
|
|
9297
|
-
return /* @__PURE__ */ (0,
|
|
9374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9298
9375
|
Upload,
|
|
9299
9376
|
{
|
|
9300
9377
|
multiple,
|
|
@@ -9314,8 +9391,53 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
|
9314
9391
|
);
|
|
9315
9392
|
};
|
|
9316
9393
|
|
|
9317
|
-
// src/components/HookForm/
|
|
9394
|
+
// src/components/HookForm/RHFSelect.tsx
|
|
9318
9395
|
var import_react_hook_form4 = require("react-hook-form");
|
|
9396
|
+
var import_MenuItem2 = __toESM(require("@mui/material/MenuItem"), 1);
|
|
9397
|
+
var import_TextField2 = __toESM(require("@mui/material/TextField"), 1);
|
|
9398
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
9399
|
+
var RHFSelect = ({
|
|
9400
|
+
name,
|
|
9401
|
+
options,
|
|
9402
|
+
helperText,
|
|
9403
|
+
placeholder,
|
|
9404
|
+
slotProps,
|
|
9405
|
+
...rest
|
|
9406
|
+
}) => {
|
|
9407
|
+
const { control } = (0, import_react_hook_form4.useFormContext)();
|
|
9408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
9409
|
+
import_react_hook_form4.Controller,
|
|
9410
|
+
{
|
|
9411
|
+
name,
|
|
9412
|
+
control,
|
|
9413
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
9414
|
+
import_TextField2.default,
|
|
9415
|
+
{
|
|
9416
|
+
...field,
|
|
9417
|
+
select: true,
|
|
9418
|
+
fullWidth: true,
|
|
9419
|
+
error: !!error2,
|
|
9420
|
+
helperText: error2?.message ?? helperText,
|
|
9421
|
+
slotProps: {
|
|
9422
|
+
...slotProps,
|
|
9423
|
+
select: {
|
|
9424
|
+
displayEmpty: !!placeholder,
|
|
9425
|
+
...slotProps?.select
|
|
9426
|
+
}
|
|
9427
|
+
},
|
|
9428
|
+
...rest,
|
|
9429
|
+
children: [
|
|
9430
|
+
placeholder && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_MenuItem2.default, { value: "", disabled: true, sx: { display: "none" }, children: placeholder }),
|
|
9431
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_MenuItem2.default, { value: option.value, disabled: option.disabled, children: option.label }, option.value))
|
|
9432
|
+
]
|
|
9433
|
+
}
|
|
9434
|
+
)
|
|
9435
|
+
}
|
|
9436
|
+
);
|
|
9437
|
+
};
|
|
9438
|
+
|
|
9439
|
+
// src/components/HookForm/RHFOTPInput.tsx
|
|
9440
|
+
var import_react_hook_form5 = require("react-hook-form");
|
|
9319
9441
|
|
|
9320
9442
|
// src/components/OTPInput/index.tsx
|
|
9321
9443
|
var import_react19 = require("react");
|
|
@@ -9323,8 +9445,8 @@ var import_styles31 = require("@mui/material/styles");
|
|
|
9323
9445
|
var import_Box21 = __toESM(require("@mui/material/Box"), 1);
|
|
9324
9446
|
var import_FormHelperText3 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
9325
9447
|
var import_InputBase3 = require("@mui/material/InputBase");
|
|
9326
|
-
var
|
|
9327
|
-
var
|
|
9448
|
+
var import_TextField3 = __toESM(require("@mui/material/TextField"), 1);
|
|
9449
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
9328
9450
|
var OTPInput = (props) => {
|
|
9329
9451
|
const { length = 6, onChange, onComplete, error: error2, helperText, containerProps, ...rest } = props;
|
|
9330
9452
|
const theme = (0, import_styles31.useTheme)();
|
|
@@ -9392,8 +9514,8 @@ var OTPInput = (props) => {
|
|
|
9392
9514
|
onComplete?.(newOtp.join(""));
|
|
9393
9515
|
}
|
|
9394
9516
|
};
|
|
9395
|
-
return /* @__PURE__ */ (0,
|
|
9396
|
-
/* @__PURE__ */ (0,
|
|
9517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
9518
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_Box21.default, { display: "flex", justifyContent: "center", ...containerProps, children: otp.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
9397
9519
|
import_Box21.default,
|
|
9398
9520
|
{
|
|
9399
9521
|
display: "flex",
|
|
@@ -9403,8 +9525,8 @@ var OTPInput = (props) => {
|
|
|
9403
9525
|
mr: 1.5
|
|
9404
9526
|
}
|
|
9405
9527
|
},
|
|
9406
|
-
children: /* @__PURE__ */ (0,
|
|
9407
|
-
|
|
9528
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
9529
|
+
import_TextField3.default,
|
|
9408
9530
|
{
|
|
9409
9531
|
size: "medium",
|
|
9410
9532
|
value: otp[index],
|
|
@@ -9486,21 +9608,21 @@ var OTPInput = (props) => {
|
|
|
9486
9608
|
},
|
|
9487
9609
|
index
|
|
9488
9610
|
)) }),
|
|
9489
|
-
error2 && /* @__PURE__ */ (0,
|
|
9611
|
+
error2 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_FormHelperText3.default, { sx: { color: "error.main" }, children: helperText })
|
|
9490
9612
|
] });
|
|
9491
9613
|
};
|
|
9492
9614
|
var OTPInput_default = OTPInput;
|
|
9493
9615
|
|
|
9494
9616
|
// src/components/HookForm/RHFOTPInput.tsx
|
|
9495
|
-
var
|
|
9617
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
9496
9618
|
var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
|
|
9497
|
-
const { control, setValue } = (0,
|
|
9498
|
-
return /* @__PURE__ */ (0,
|
|
9499
|
-
|
|
9619
|
+
const { control, setValue } = (0, import_react_hook_form5.useFormContext)();
|
|
9620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
9621
|
+
import_react_hook_form5.Controller,
|
|
9500
9622
|
{
|
|
9501
9623
|
name,
|
|
9502
9624
|
control,
|
|
9503
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9625
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
9504
9626
|
OTPInput_default,
|
|
9505
9627
|
{
|
|
9506
9628
|
length,
|
|
@@ -9516,21 +9638,21 @@ var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
|
|
|
9516
9638
|
};
|
|
9517
9639
|
|
|
9518
9640
|
// src/components/HookForm/RHFTextField.tsx
|
|
9519
|
-
var
|
|
9641
|
+
var import_react_hook_form6 = require("react-hook-form");
|
|
9520
9642
|
var import_IconButton5 = __toESM(require("@mui/material/IconButton"), 1);
|
|
9521
9643
|
var import_InputAdornment2 = __toESM(require("@mui/material/InputAdornment"), 1);
|
|
9522
|
-
var
|
|
9523
|
-
var
|
|
9644
|
+
var import_TextField4 = __toESM(require("@mui/material/TextField"), 1);
|
|
9645
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
9524
9646
|
var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
9525
|
-
const { control } = (0,
|
|
9647
|
+
const { control } = (0, import_react_hook_form6.useFormContext)();
|
|
9526
9648
|
const passwordVisibility = useBoolean();
|
|
9527
|
-
return /* @__PURE__ */ (0,
|
|
9528
|
-
|
|
9649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9650
|
+
import_react_hook_form6.Controller,
|
|
9529
9651
|
{
|
|
9530
9652
|
name,
|
|
9531
9653
|
control,
|
|
9532
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9533
|
-
|
|
9654
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9655
|
+
import_TextField4.default,
|
|
9534
9656
|
{
|
|
9535
9657
|
...field,
|
|
9536
9658
|
fullWidth: true,
|
|
@@ -9550,7 +9672,7 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
|
9550
9672
|
input: {
|
|
9551
9673
|
...slotProps?.input,
|
|
9552
9674
|
...type === "password" && {
|
|
9553
|
-
endAdornment: /* @__PURE__ */ (0,
|
|
9675
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_InputAdornment2.default, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_IconButton5.default, { edge: "end", onClick: passwordVisibility.onToggle, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
9554
9676
|
Icon,
|
|
9555
9677
|
{
|
|
9556
9678
|
icon: passwordVisibility.value ? "EyeClosed" : "Eye",
|
|
@@ -9568,7 +9690,7 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
|
9568
9690
|
};
|
|
9569
9691
|
|
|
9570
9692
|
// src/components/HookForm/RHFRadioGroup.tsx
|
|
9571
|
-
var
|
|
9693
|
+
var import_react_hook_form7 = require("react-hook-form");
|
|
9572
9694
|
var import_Stack7 = __toESM(require("@mui/material/Stack"), 1);
|
|
9573
9695
|
var import_Typography12 = __toESM(require("@mui/material/Typography"), 1);
|
|
9574
9696
|
var import_Radio4 = __toESM(require("@mui/material/Radio"), 1);
|
|
@@ -9577,7 +9699,7 @@ var import_FormLabel2 = __toESM(require("@mui/material/FormLabel"), 1);
|
|
|
9577
9699
|
var import_RadioGroup3 = __toESM(require("@mui/material/RadioGroup"), 1);
|
|
9578
9700
|
var import_FormControl2 = __toESM(require("@mui/material/FormControl"), 1);
|
|
9579
9701
|
var import_FormHelperText4 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
9580
|
-
var
|
|
9702
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
9581
9703
|
var RHFRadioGroup = ({
|
|
9582
9704
|
name,
|
|
9583
9705
|
label,
|
|
@@ -9586,16 +9708,16 @@ var RHFRadioGroup = ({
|
|
|
9586
9708
|
slotProps,
|
|
9587
9709
|
...other
|
|
9588
9710
|
}) => {
|
|
9589
|
-
const { control } = (0,
|
|
9711
|
+
const { control } = (0, import_react_hook_form7.useFormContext)();
|
|
9590
9712
|
const labelledby = `${name}-radio-buttons-group-label`;
|
|
9591
9713
|
const ariaLabel = (val) => `Radio ${val}`;
|
|
9592
|
-
return /* @__PURE__ */ (0,
|
|
9593
|
-
|
|
9714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
9715
|
+
import_react_hook_form7.Controller,
|
|
9594
9716
|
{
|
|
9595
9717
|
name,
|
|
9596
9718
|
control,
|
|
9597
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9598
|
-
label && /* @__PURE__ */ (0,
|
|
9719
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_FormControl2.default, { component: "fieldset", sx: slotProps?.wrap, children: [
|
|
9720
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
9599
9721
|
import_FormLabel2.default,
|
|
9600
9722
|
{
|
|
9601
9723
|
id: labelledby,
|
|
@@ -9605,11 +9727,11 @@ var RHFRadioGroup = ({
|
|
|
9605
9727
|
children: label
|
|
9606
9728
|
}
|
|
9607
9729
|
),
|
|
9608
|
-
/* @__PURE__ */ (0,
|
|
9730
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_RadioGroup3.default, { ...field, "aria-labelledby": labelledby, ...other, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
9609
9731
|
import_FormControlLabel4.default,
|
|
9610
9732
|
{
|
|
9611
9733
|
value: option.value,
|
|
9612
|
-
control: /* @__PURE__ */ (0,
|
|
9734
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
9613
9735
|
import_Radio4.default,
|
|
9614
9736
|
{
|
|
9615
9737
|
...slotProps?.radio,
|
|
@@ -9621,9 +9743,9 @@ var RHFRadioGroup = ({
|
|
|
9621
9743
|
}
|
|
9622
9744
|
}
|
|
9623
9745
|
),
|
|
9624
|
-
label: /* @__PURE__ */ (0,
|
|
9625
|
-
/* @__PURE__ */ (0,
|
|
9626
|
-
option?.description && /* @__PURE__ */ (0,
|
|
9746
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_Stack7.default, { children: [
|
|
9747
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography12.default, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: option.label }),
|
|
9748
|
+
option?.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography12.default, { variant: "body2", color: "text.body", children: option?.description })
|
|
9627
9749
|
] }),
|
|
9628
9750
|
sx: {
|
|
9629
9751
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -9631,17 +9753,17 @@ var RHFRadioGroup = ({
|
|
|
9631
9753
|
},
|
|
9632
9754
|
option.value
|
|
9633
9755
|
)) }),
|
|
9634
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
9756
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_FormHelperText4.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
9635
9757
|
] })
|
|
9636
9758
|
}
|
|
9637
9759
|
);
|
|
9638
9760
|
};
|
|
9639
9761
|
|
|
9640
9762
|
// src/components/HookForm/RHFAutocomplete.tsx
|
|
9641
|
-
var
|
|
9642
|
-
var
|
|
9763
|
+
var import_react_hook_form8 = require("react-hook-form");
|
|
9764
|
+
var import_TextField5 = __toESM(require("@mui/material/TextField"), 1);
|
|
9643
9765
|
var import_Autocomplete3 = __toESM(require("@mui/material/Autocomplete"), 1);
|
|
9644
|
-
var
|
|
9766
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
9645
9767
|
var RHFAutocomplete = ({
|
|
9646
9768
|
name,
|
|
9647
9769
|
label,
|
|
@@ -9651,13 +9773,13 @@ var RHFAutocomplete = ({
|
|
|
9651
9773
|
handleChange,
|
|
9652
9774
|
...other
|
|
9653
9775
|
}) => {
|
|
9654
|
-
const { control, setValue } = (0,
|
|
9655
|
-
return /* @__PURE__ */ (0,
|
|
9656
|
-
|
|
9776
|
+
const { control, setValue } = (0, import_react_hook_form8.useFormContext)();
|
|
9777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9778
|
+
import_react_hook_form8.Controller,
|
|
9657
9779
|
{
|
|
9658
9780
|
name,
|
|
9659
9781
|
control,
|
|
9660
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9782
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9661
9783
|
import_Autocomplete3.default,
|
|
9662
9784
|
{
|
|
9663
9785
|
...field,
|
|
@@ -9666,8 +9788,8 @@ var RHFAutocomplete = ({
|
|
|
9666
9788
|
setValue(name, newValue, { shouldValidate: true });
|
|
9667
9789
|
handleChange?.(newValue);
|
|
9668
9790
|
},
|
|
9669
|
-
renderInput: (params) => /* @__PURE__ */ (0,
|
|
9670
|
-
|
|
9791
|
+
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9792
|
+
import_TextField5.default,
|
|
9671
9793
|
{
|
|
9672
9794
|
label,
|
|
9673
9795
|
placeholder,
|
|
@@ -9686,13 +9808,13 @@ var RHFAutocomplete = ({
|
|
|
9686
9808
|
|
|
9687
9809
|
// src/components/HookForm/RHFDateRangePicker.tsx
|
|
9688
9810
|
var import_react20 = require("react");
|
|
9689
|
-
var
|
|
9811
|
+
var import_react_hook_form9 = require("react-hook-form");
|
|
9690
9812
|
var import_date_fns3 = require("date-fns");
|
|
9691
9813
|
var import_Box22 = __toESM(require("@mui/material/Box"), 1);
|
|
9692
9814
|
var import_Popover4 = __toESM(require("@mui/material/Popover"), 1);
|
|
9693
|
-
var
|
|
9815
|
+
var import_TextField6 = __toESM(require("@mui/material/TextField"), 1);
|
|
9694
9816
|
var import_InputAdornment3 = __toESM(require("@mui/material/InputAdornment"), 1);
|
|
9695
|
-
var
|
|
9817
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
9696
9818
|
function RHFDateRangePicker({
|
|
9697
9819
|
name,
|
|
9698
9820
|
label,
|
|
@@ -9706,10 +9828,10 @@ function RHFDateRangePicker({
|
|
|
9706
9828
|
size = "medium",
|
|
9707
9829
|
fullWidth = true
|
|
9708
9830
|
}) {
|
|
9709
|
-
const { control } = (0,
|
|
9831
|
+
const { control } = (0, import_react_hook_form9.useFormContext)();
|
|
9710
9832
|
const [anchorEl, setAnchorEl] = (0, import_react20.useState)(null);
|
|
9711
9833
|
const open = Boolean(anchorEl);
|
|
9712
|
-
const watchedValue = (0,
|
|
9834
|
+
const watchedValue = (0, import_react_hook_form9.useWatch)({ control, name });
|
|
9713
9835
|
const value = watchedValue ?? {
|
|
9714
9836
|
start: null,
|
|
9715
9837
|
end: null,
|
|
@@ -9740,8 +9862,8 @@ function RHFDateRangePicker({
|
|
|
9740
9862
|
const handleClose = (0, import_react20.useCallback)(() => {
|
|
9741
9863
|
setAnchorEl(null);
|
|
9742
9864
|
}, []);
|
|
9743
|
-
return /* @__PURE__ */ (0,
|
|
9744
|
-
|
|
9865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
9866
|
+
import_react_hook_form9.Controller,
|
|
9745
9867
|
{
|
|
9746
9868
|
name,
|
|
9747
9869
|
control,
|
|
@@ -9750,9 +9872,9 @@ function RHFDateRangePicker({
|
|
|
9750
9872
|
field.onChange({ ...range, preset });
|
|
9751
9873
|
handleClose();
|
|
9752
9874
|
};
|
|
9753
|
-
return /* @__PURE__ */ (0,
|
|
9754
|
-
/* @__PURE__ */ (0,
|
|
9755
|
-
|
|
9875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
|
|
9876
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_Box22.default, { onClick: handleClick, sx: { cursor: disabled ? "default" : "pointer" }, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
9877
|
+
import_TextField6.default,
|
|
9756
9878
|
{
|
|
9757
9879
|
label,
|
|
9758
9880
|
placeholder,
|
|
@@ -9765,13 +9887,13 @@ function RHFDateRangePicker({
|
|
|
9765
9887
|
slotProps: {
|
|
9766
9888
|
input: {
|
|
9767
9889
|
readOnly: true,
|
|
9768
|
-
endAdornment: /* @__PURE__ */ (0,
|
|
9890
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_InputAdornment3.default, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon, { icon: "Calendar", sx: { width: 20, height: 20, color: "icon.mute" } }) }),
|
|
9769
9891
|
sx: { cursor: disabled ? "default" : "pointer" }
|
|
9770
9892
|
}
|
|
9771
9893
|
}
|
|
9772
9894
|
}
|
|
9773
9895
|
) }),
|
|
9774
|
-
/* @__PURE__ */ (0,
|
|
9896
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
9775
9897
|
import_Popover4.default,
|
|
9776
9898
|
{
|
|
9777
9899
|
open,
|
|
@@ -9796,7 +9918,7 @@ function RHFDateRangePicker({
|
|
|
9796
9918
|
}
|
|
9797
9919
|
}
|
|
9798
9920
|
},
|
|
9799
|
-
children: /* @__PURE__ */ (0,
|
|
9921
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
9800
9922
|
DateRangePicker,
|
|
9801
9923
|
{
|
|
9802
9924
|
value: { start: value.start, end: value.end },
|
|
@@ -9817,7 +9939,7 @@ function RHFDateRangePicker({
|
|
|
9817
9939
|
}
|
|
9818
9940
|
|
|
9819
9941
|
// src/components/HookForm/RHFCheckbox.tsx
|
|
9820
|
-
var
|
|
9942
|
+
var import_react_hook_form10 = require("react-hook-form");
|
|
9821
9943
|
var import_Stack8 = __toESM(require("@mui/material/Stack"), 1);
|
|
9822
9944
|
var import_Box23 = __toESM(require("@mui/material/Box"), 1);
|
|
9823
9945
|
var import_Typography13 = __toESM(require("@mui/material/Typography"), 1);
|
|
@@ -9827,7 +9949,7 @@ var import_FormLabel3 = __toESM(require("@mui/material/FormLabel"), 1);
|
|
|
9827
9949
|
var import_FormControl3 = __toESM(require("@mui/material/FormControl"), 1);
|
|
9828
9950
|
var import_FormHelperText5 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
9829
9951
|
var import_FormControlLabel5 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
9830
|
-
var
|
|
9952
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
9831
9953
|
var RHFCheckbox = ({
|
|
9832
9954
|
name,
|
|
9833
9955
|
description,
|
|
@@ -9837,18 +9959,18 @@ var RHFCheckbox = ({
|
|
|
9837
9959
|
slotProps,
|
|
9838
9960
|
...other
|
|
9839
9961
|
}) => {
|
|
9840
|
-
const { control } = (0,
|
|
9962
|
+
const { control } = (0, import_react_hook_form10.useFormContext)();
|
|
9841
9963
|
const baseAriaLabel = `Checkbox for ${name}`;
|
|
9842
|
-
return /* @__PURE__ */ (0,
|
|
9843
|
-
|
|
9964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9965
|
+
import_react_hook_form10.Controller,
|
|
9844
9966
|
{
|
|
9845
9967
|
name,
|
|
9846
9968
|
control,
|
|
9847
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9848
|
-
/* @__PURE__ */ (0,
|
|
9969
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_Box23.default, { sx: slotProps?.wrap, children: [
|
|
9970
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9849
9971
|
import_FormControlLabel5.default,
|
|
9850
9972
|
{
|
|
9851
|
-
control: /* @__PURE__ */ (0,
|
|
9973
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9852
9974
|
import_Checkbox3.default,
|
|
9853
9975
|
{
|
|
9854
9976
|
...field,
|
|
@@ -9863,9 +9985,9 @@ var RHFCheckbox = ({
|
|
|
9863
9985
|
}
|
|
9864
9986
|
}
|
|
9865
9987
|
),
|
|
9866
|
-
label: /* @__PURE__ */ (0,
|
|
9867
|
-
/* @__PURE__ */ (0,
|
|
9868
|
-
description && /* @__PURE__ */ (0,
|
|
9988
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_Stack8.default, { children: [
|
|
9989
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_Typography13.default, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: label }),
|
|
9990
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_Typography13.default, { variant: "body2", color: "text.body", children: description })
|
|
9869
9991
|
] }),
|
|
9870
9992
|
sx: {
|
|
9871
9993
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -9874,7 +9996,7 @@ var RHFCheckbox = ({
|
|
|
9874
9996
|
...other
|
|
9875
9997
|
}
|
|
9876
9998
|
),
|
|
9877
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
9999
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_FormHelperText5.default, { error: !!error2, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
9878
10000
|
] })
|
|
9879
10001
|
}
|
|
9880
10002
|
);
|
|
@@ -9888,15 +10010,15 @@ var RHFMultiCheckbox = ({
|
|
|
9888
10010
|
row,
|
|
9889
10011
|
...other
|
|
9890
10012
|
}) => {
|
|
9891
|
-
const { control } = (0,
|
|
10013
|
+
const { control } = (0, import_react_hook_form10.useFormContext)();
|
|
9892
10014
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
9893
|
-
return /* @__PURE__ */ (0,
|
|
9894
|
-
|
|
10015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
10016
|
+
import_react_hook_form10.Controller,
|
|
9895
10017
|
{
|
|
9896
10018
|
name,
|
|
9897
10019
|
control,
|
|
9898
10020
|
defaultValue: [],
|
|
9899
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10021
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
9900
10022
|
import_FormControl3.default,
|
|
9901
10023
|
{
|
|
9902
10024
|
component: "fieldset",
|
|
@@ -9904,7 +10026,7 @@ var RHFMultiCheckbox = ({
|
|
|
9904
10026
|
sx: slotProps?.formControl?.sx,
|
|
9905
10027
|
...slotProps?.formControl,
|
|
9906
10028
|
children: [
|
|
9907
|
-
label && /* @__PURE__ */ (0,
|
|
10029
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9908
10030
|
import_FormLabel3.default,
|
|
9909
10031
|
{
|
|
9910
10032
|
component: "legend",
|
|
@@ -9913,12 +10035,12 @@ var RHFMultiCheckbox = ({
|
|
|
9913
10035
|
children: label
|
|
9914
10036
|
}
|
|
9915
10037
|
),
|
|
9916
|
-
/* @__PURE__ */ (0,
|
|
10038
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_FormGroup2.default, { row, ...other, children: options.map((option) => {
|
|
9917
10039
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
9918
|
-
return /* @__PURE__ */ (0,
|
|
10040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9919
10041
|
import_FormControlLabel5.default,
|
|
9920
10042
|
{
|
|
9921
|
-
control: /* @__PURE__ */ (0,
|
|
10043
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9922
10044
|
import_Checkbox3.default,
|
|
9923
10045
|
{
|
|
9924
10046
|
checked: (field.value || []).includes(option.value),
|
|
@@ -9936,9 +10058,9 @@ var RHFMultiCheckbox = ({
|
|
|
9936
10058
|
}
|
|
9937
10059
|
}
|
|
9938
10060
|
),
|
|
9939
|
-
label: /* @__PURE__ */ (0,
|
|
9940
|
-
/* @__PURE__ */ (0,
|
|
9941
|
-
option?.description && /* @__PURE__ */ (0,
|
|
10061
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_Stack8.default, { children: [
|
|
10062
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_Typography13.default, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: option.label }),
|
|
10063
|
+
option?.description && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_Typography13.default, { variant: "body2", color: "text.body", children: option?.description })
|
|
9942
10064
|
] }),
|
|
9943
10065
|
sx: {
|
|
9944
10066
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -9947,7 +10069,7 @@ var RHFMultiCheckbox = ({
|
|
|
9947
10069
|
option.value
|
|
9948
10070
|
);
|
|
9949
10071
|
}) }),
|
|
9950
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
10072
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
9951
10073
|
import_FormHelperText5.default,
|
|
9952
10074
|
{
|
|
9953
10075
|
sx: { mx: 0, ...slotProps?.formHelperText?.sx },
|
|
@@ -9962,16 +10084,523 @@ var RHFMultiCheckbox = ({
|
|
|
9962
10084
|
);
|
|
9963
10085
|
};
|
|
9964
10086
|
|
|
9965
|
-
// src/components/HookForm/
|
|
10087
|
+
// src/components/HookForm/RHFGooglePlacesAutocomplete.tsx
|
|
10088
|
+
var import_react_hook_form11 = require("react-hook-form");
|
|
10089
|
+
|
|
10090
|
+
// src/components/GooglePlacesAutocomplete/types.ts
|
|
10091
|
+
var parseAddressComponents = (addressComponents) => {
|
|
10092
|
+
if (!addressComponents) return {};
|
|
10093
|
+
const getComponent = (type) => addressComponents.find((c) => c.types.includes(type));
|
|
10094
|
+
const streetNumber = getComponent("street_number")?.longText;
|
|
10095
|
+
const street = getComponent("route")?.longText;
|
|
10096
|
+
const neighborhood = getComponent("sublocality_level_1")?.longText || getComponent("sublocality")?.longText || getComponent("neighborhood")?.longText;
|
|
10097
|
+
const city = getComponent("locality")?.longText || getComponent("administrative_area_level_2")?.longText || getComponent("postal_town")?.longText;
|
|
10098
|
+
const stateComponent = getComponent("administrative_area_level_1");
|
|
10099
|
+
const countryComponent = getComponent("country");
|
|
10100
|
+
const postalCode = getComponent("postal_code")?.longText;
|
|
10101
|
+
const county = getComponent("administrative_area_level_2")?.longText;
|
|
10102
|
+
return {
|
|
10103
|
+
streetNumber,
|
|
10104
|
+
street,
|
|
10105
|
+
address: streetNumber && street ? `${streetNumber} ${street}` : street || streetNumber,
|
|
10106
|
+
neighborhood,
|
|
10107
|
+
city,
|
|
10108
|
+
state: stateComponent?.longText,
|
|
10109
|
+
stateCode: stateComponent?.shortText,
|
|
10110
|
+
country: countryComponent?.longText,
|
|
10111
|
+
countryCode: countryComponent?.shortText,
|
|
10112
|
+
postalCode,
|
|
10113
|
+
county
|
|
10114
|
+
};
|
|
10115
|
+
};
|
|
10116
|
+
|
|
10117
|
+
// src/components/GooglePlacesAutocomplete/GooglePlacesContext.tsx
|
|
9966
10118
|
var import_react21 = require("react");
|
|
9967
|
-
var
|
|
9968
|
-
var
|
|
10119
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
10120
|
+
var GOOGLE_NAMESPACE = "_google_callback";
|
|
10121
|
+
var GooglePlacesContext = (0, import_react21.createContext)(void 0);
|
|
10122
|
+
var GooglePlacesProvider = ({
|
|
10123
|
+
apiKey,
|
|
10124
|
+
children,
|
|
10125
|
+
libraries = []
|
|
10126
|
+
}) => {
|
|
10127
|
+
const [loaded, setLoaded] = (0, import_react21.useState)(false);
|
|
10128
|
+
const [error2, setError] = (0, import_react21.useState)(null);
|
|
10129
|
+
const loadScript = (0, import_react21.useCallback)(() => {
|
|
10130
|
+
if (typeof window !== "undefined" && window.google?.maps?.places) {
|
|
10131
|
+
setLoaded(true);
|
|
10132
|
+
return;
|
|
10133
|
+
}
|
|
10134
|
+
const existingScript = document.querySelector("#google-maps-places");
|
|
10135
|
+
if (existingScript) {
|
|
10136
|
+
if (window.google?.maps?.places) {
|
|
10137
|
+
setLoaded(true);
|
|
10138
|
+
}
|
|
10139
|
+
return;
|
|
10140
|
+
}
|
|
10141
|
+
const callbackName = `initGooglePlaces_${Date.now()}`;
|
|
10142
|
+
const globalContext = window[GOOGLE_NAMESPACE] || (window[GOOGLE_NAMESPACE] = {});
|
|
10143
|
+
globalContext[callbackName] = () => {
|
|
10144
|
+
setLoaded(true);
|
|
10145
|
+
delete globalContext[callbackName];
|
|
10146
|
+
};
|
|
10147
|
+
const allLibraries = ["places", ...libraries.filter((lib) => lib !== "places")].join(",");
|
|
10148
|
+
const script = document.createElement("script");
|
|
10149
|
+
script.id = "google-maps-places";
|
|
10150
|
+
script.async = true;
|
|
10151
|
+
script.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&libraries=${allLibraries}&loading=async&callback=${GOOGLE_NAMESPACE}.${callbackName}`;
|
|
10152
|
+
script.onerror = () => {
|
|
10153
|
+
setError(new Error("Failed to load Google Maps Places API"));
|
|
10154
|
+
delete globalContext[callbackName];
|
|
10155
|
+
};
|
|
10156
|
+
document.head.appendChild(script);
|
|
10157
|
+
}, [apiKey, libraries]);
|
|
10158
|
+
(0, import_react21.useEffect)(() => {
|
|
10159
|
+
if (typeof window !== "undefined") {
|
|
10160
|
+
loadScript();
|
|
10161
|
+
}
|
|
10162
|
+
}, [loadScript]);
|
|
10163
|
+
const value = (0, import_react21.useMemo)(
|
|
10164
|
+
() => ({
|
|
10165
|
+
apiKey,
|
|
10166
|
+
loaded,
|
|
10167
|
+
error: error2
|
|
10168
|
+
}),
|
|
10169
|
+
[apiKey, loaded, error2]
|
|
10170
|
+
);
|
|
10171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(GooglePlacesContext.Provider, { value, children });
|
|
10172
|
+
};
|
|
10173
|
+
var useGooglePlacesContext = () => {
|
|
10174
|
+
const context = (0, import_react21.useContext)(GooglePlacesContext);
|
|
10175
|
+
if (!context) {
|
|
10176
|
+
throw new Error("useGooglePlacesContext must be used within a GooglePlacesProvider");
|
|
10177
|
+
}
|
|
10178
|
+
return context;
|
|
10179
|
+
};
|
|
10180
|
+
var useGooglePlacesLoaded = () => {
|
|
10181
|
+
const { loaded } = useGooglePlacesContext();
|
|
10182
|
+
return loaded;
|
|
10183
|
+
};
|
|
10184
|
+
|
|
10185
|
+
// src/components/GooglePlacesAutocomplete/GooglePlacesAutocomplete.tsx
|
|
10186
|
+
var import_Box24 = __toESM(require("@mui/material/Box"), 1);
|
|
10187
|
+
var import_Grid = __toESM(require("@mui/material/Grid"), 1);
|
|
10188
|
+
var import_Typography14 = __toESM(require("@mui/material/Typography"), 1);
|
|
10189
|
+
var import_Paper2 = __toESM(require("@mui/material/Paper"), 1);
|
|
10190
|
+
var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"), 1);
|
|
10191
|
+
var import_SvgIcon2 = __toESM(require("@mui/material/SvgIcon"), 1);
|
|
10192
|
+
var import_TextField7 = __toESM(require("@mui/material/TextField"), 1);
|
|
10193
|
+
var import_Autocomplete4 = __toESM(require("@mui/material/Autocomplete"), 1);
|
|
10194
|
+
|
|
10195
|
+
// src/components/GooglePlacesAutocomplete/useGooglePlacesAutocomplete.ts
|
|
10196
|
+
var import_react22 = require("react");
|
|
10197
|
+
var import_utils5 = require("@mui/material/utils");
|
|
10198
|
+
var useGooglePlacesAutocomplete = (options = {}) => {
|
|
10199
|
+
const {
|
|
10200
|
+
debounceMs = 300,
|
|
10201
|
+
types,
|
|
10202
|
+
componentRestrictions,
|
|
10203
|
+
fetchPlaceDetails = false,
|
|
10204
|
+
placeDetailsFields = ["location", "formattedAddress", "addressComponents", "displayName"]
|
|
10205
|
+
} = options;
|
|
10206
|
+
const { loaded, error: contextError } = useGooglePlacesContext();
|
|
10207
|
+
const [inputValue, setInputValue] = (0, import_react22.useState)("");
|
|
10208
|
+
const [value, setValue] = (0, import_react22.useState)(null);
|
|
10209
|
+
const [autocompleteOptions, setAutocompleteOptions] = (0, import_react22.useState)([]);
|
|
10210
|
+
const [loading, setLoading] = (0, import_react22.useState)(false);
|
|
10211
|
+
const [error2, setError] = (0, import_react22.useState)(contextError);
|
|
10212
|
+
const sessionTokenRef = (0, import_react22.useRef)(null);
|
|
10213
|
+
(0, import_react22.useEffect)(() => {
|
|
10214
|
+
if (loaded && !sessionTokenRef.current) {
|
|
10215
|
+
sessionTokenRef.current = new window.google.maps.places.AutocompleteSessionToken();
|
|
10216
|
+
}
|
|
10217
|
+
}, [loaded]);
|
|
10218
|
+
const fetchSuggestions = (0, import_react22.useMemo)(
|
|
10219
|
+
() => (0, import_utils5.debounce)(async (input) => {
|
|
10220
|
+
if (!loaded || !input.trim()) {
|
|
10221
|
+
setAutocompleteOptions(value ? [value] : []);
|
|
10222
|
+
setLoading(false);
|
|
10223
|
+
return;
|
|
10224
|
+
}
|
|
10225
|
+
try {
|
|
10226
|
+
setLoading(true);
|
|
10227
|
+
const request = {
|
|
10228
|
+
input,
|
|
10229
|
+
sessionToken: sessionTokenRef.current
|
|
10230
|
+
};
|
|
10231
|
+
if (types?.length) {
|
|
10232
|
+
request.includedPrimaryTypes = types;
|
|
10233
|
+
}
|
|
10234
|
+
if (componentRestrictions?.country) {
|
|
10235
|
+
const countries = Array.isArray(componentRestrictions.country) ? componentRestrictions.country : [componentRestrictions.country];
|
|
10236
|
+
request.includedRegionCodes = countries;
|
|
10237
|
+
}
|
|
10238
|
+
const { suggestions } = await window.google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions(request);
|
|
10239
|
+
const results = suggestions.map((suggestion) => {
|
|
10240
|
+
const place = suggestion.placePrediction;
|
|
10241
|
+
return {
|
|
10242
|
+
description: place.text.text,
|
|
10243
|
+
place_id: place.placeId,
|
|
10244
|
+
structured_formatting: {
|
|
10245
|
+
main_text: place.mainText.text,
|
|
10246
|
+
main_text_matched_substrings: (place.mainText.matches || []).map((match) => ({
|
|
10247
|
+
offset: match.startOffset || 0,
|
|
10248
|
+
length: (match.endOffset || 0) - (match.startOffset || 0)
|
|
10249
|
+
})),
|
|
10250
|
+
secondary_text: place.secondaryText?.text
|
|
10251
|
+
}
|
|
10252
|
+
};
|
|
10253
|
+
});
|
|
10254
|
+
let newOptions = results;
|
|
10255
|
+
if (value && !results.some((r) => r.description === value.description)) {
|
|
10256
|
+
newOptions = [value, ...results];
|
|
10257
|
+
}
|
|
10258
|
+
setAutocompleteOptions(newOptions);
|
|
10259
|
+
setError(null);
|
|
10260
|
+
} catch (err) {
|
|
10261
|
+
console.error("Google Places Autocomplete error:", err);
|
|
10262
|
+
setError(err);
|
|
10263
|
+
} finally {
|
|
10264
|
+
setLoading(false);
|
|
10265
|
+
}
|
|
10266
|
+
}, debounceMs),
|
|
10267
|
+
[loaded, value, types, componentRestrictions, debounceMs]
|
|
10268
|
+
);
|
|
10269
|
+
(0, import_react22.useEffect)(() => {
|
|
10270
|
+
if (inputValue === "") {
|
|
10271
|
+
setAutocompleteOptions(value ? [value] : []);
|
|
10272
|
+
return;
|
|
10273
|
+
}
|
|
10274
|
+
fetchSuggestions(inputValue);
|
|
10275
|
+
return () => {
|
|
10276
|
+
fetchSuggestions.clear();
|
|
10277
|
+
};
|
|
10278
|
+
}, [inputValue, fetchSuggestions, value]);
|
|
10279
|
+
const getPlaceDetails = (0, import_react22.useCallback)(
|
|
10280
|
+
async (placeId) => {
|
|
10281
|
+
if (!loaded || !placeId) return null;
|
|
10282
|
+
try {
|
|
10283
|
+
const { Place } = window.google.maps.places;
|
|
10284
|
+
const place = new Place({ id: placeId });
|
|
10285
|
+
await place.fetchFields({ fields: placeDetailsFields });
|
|
10286
|
+
sessionTokenRef.current = new window.google.maps.places.AutocompleteSessionToken();
|
|
10287
|
+
const parsedAddress = parseAddressComponents(place.addressComponents);
|
|
10288
|
+
const coordinates = place.location ? {
|
|
10289
|
+
latitude: place.location.lat(),
|
|
10290
|
+
longitude: place.location.lng()
|
|
10291
|
+
} : void 0;
|
|
10292
|
+
return {
|
|
10293
|
+
placeId,
|
|
10294
|
+
description: place.displayName || "",
|
|
10295
|
+
mainText: place.displayName || "",
|
|
10296
|
+
secondaryText: place.formattedAddress || "",
|
|
10297
|
+
lat: place.location?.lat(),
|
|
10298
|
+
lng: place.location?.lng(),
|
|
10299
|
+
formattedAddress: place.formattedAddress,
|
|
10300
|
+
addressComponents: place.addressComponents,
|
|
10301
|
+
parsedAddress,
|
|
10302
|
+
coordinates
|
|
10303
|
+
};
|
|
10304
|
+
} catch (err) {
|
|
10305
|
+
console.error("Failed to fetch place details:", err);
|
|
10306
|
+
return null;
|
|
10307
|
+
}
|
|
10308
|
+
},
|
|
10309
|
+
[loaded, placeDetailsFields]
|
|
10310
|
+
);
|
|
10311
|
+
const handleSetValue = (0, import_react22.useCallback)(
|
|
10312
|
+
async (newValue) => {
|
|
10313
|
+
setValue(newValue);
|
|
10314
|
+
if (newValue && fetchPlaceDetails && newValue.place_id) {
|
|
10315
|
+
await getPlaceDetails(newValue.place_id);
|
|
10316
|
+
}
|
|
10317
|
+
},
|
|
10318
|
+
[fetchPlaceDetails, getPlaceDetails]
|
|
10319
|
+
);
|
|
10320
|
+
const clear = (0, import_react22.useCallback)(() => {
|
|
10321
|
+
setValue(null);
|
|
10322
|
+
setInputValue("");
|
|
10323
|
+
setAutocompleteOptions([]);
|
|
10324
|
+
}, []);
|
|
10325
|
+
return {
|
|
10326
|
+
inputValue,
|
|
10327
|
+
setInputValue,
|
|
10328
|
+
value,
|
|
10329
|
+
setValue: handleSetValue,
|
|
10330
|
+
options: autocompleteOptions,
|
|
10331
|
+
loaded,
|
|
10332
|
+
loading,
|
|
10333
|
+
error: error2,
|
|
10334
|
+
getPlaceDetails,
|
|
10335
|
+
clear
|
|
10336
|
+
};
|
|
10337
|
+
};
|
|
10338
|
+
|
|
10339
|
+
// src/components/GooglePlacesAutocomplete/GooglePlacesAutocomplete.tsx
|
|
10340
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
10341
|
+
var DefaultLocationIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_SvgIcon2.default, { ...props, viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" }) });
|
|
10342
|
+
var GoogleMapsAttribution = () => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
10343
|
+
import_Box24.default,
|
|
10344
|
+
{
|
|
10345
|
+
sx: (theme) => ({
|
|
10346
|
+
display: "flex",
|
|
10347
|
+
justifyContent: "flex-end",
|
|
10348
|
+
p: "5px 10px 6px 10px",
|
|
10349
|
+
opacity: 0.9,
|
|
10350
|
+
"& path": {
|
|
10351
|
+
fill: theme.palette.text.secondary
|
|
10352
|
+
}
|
|
10353
|
+
}),
|
|
10354
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
10355
|
+
"svg",
|
|
10356
|
+
{
|
|
10357
|
+
"aria-label": "Google Maps",
|
|
10358
|
+
height: "14",
|
|
10359
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
10360
|
+
viewBox: "0 0 98 18",
|
|
10361
|
+
width: "77",
|
|
10362
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", { d: "M7.08 13.96a6.9 6.9 0 01-4.99-2.05A6.7 6.7 0 010 6.98Q0 4.1 2.09 2.05A6.9 6.9 0 017.08 0a6.7 6.7 0 014.79 1.92l-1.35 1.35a4.8 4.8 0 00-3.44-1.36q-2.1 0-3.55 1.48a5 5 0 00-1.45 3.59q0 2.12 1.46 3.59a4.8 4.8 0 003.55 1.48 4.8 4.8 0 003.53-1.4q.84-.84 1.04-2.4H7.08v-1.9h6.42a6 6 0 01.1 1.19q0 2.8-1.65 4.46a6.4 6.4 0 01-4.87 1.96M22 12.68a4.4 4.4 0 01-3.2 1.29 4.4 4.4 0 01-3.2-1.29 4.3 4.3 0 01-1.31-3.21q0-1.92 1.31-3.21a4.4 4.4 0 013.2-1.29q1.9 0 3.2 1.29a4.3 4.3 0 011.31 3.21A4.3 4.3 0 0122 12.68m-4.99-1.26q.75.78 1.79.77 1.04 0 1.79-.77.75-.78.75-1.95 0-1.19-.74-1.96-.75-.77-1.8-.77t-1.8.77a2.7 2.7 0 00-.74 1.96q0 1.17.75 1.95m14.84 1.26q-1.3 1.29-3.2 1.29c-1.9 0-2.33-.43-3.2-1.29a4.3 4.3 0 01-1.31-3.21q0-1.92 1.31-3.21 1.3-1.29 3.2-1.29c1.9 0 2.33.43 3.2 1.29a4.3 4.3 0 011.31 3.21q0 1.92-1.31 3.21m-4.99-1.26q.75.78 1.79.77 1.04 0 1.79-.77.75-.78.75-1.95 0-1.19-.74-1.96c-.74-.77-1.09-.77-1.8-.77q-1.05 0-1.8.77a2.7 2.7 0 00-.74 1.96q0 1.17.75 1.95M38.32 18q-1.5 0-2.52-.8a4.5 4.5 0 01-1.46-1.86l1.72-.72q.27.65.85 1.12.59.48 1.41.48a2.3 2.3 0 001.76-.68q.64-.68.64-1.96v-.65h-.07a2.9 2.9 0 01-2.37 1.02 4 4 0 01-3.01-1.31 4.4 4.4 0 01-1.29-3.17 4.4 4.4 0 011.29-3.19 4 4 0 013.01-1.32q.76 0 1.39.29t.98.72h.07v-.72h1.87v8.07q0 2.35-1.2 3.52A4.2 4.2 0 0138.32 18m.13-5.81q1.02 0 1.71-.77a2.8 2.8 0 00.69-1.93q0-1.17-.69-1.96a2.2 2.2 0 00-1.71-.79q-1.03 0-1.77.78a2.8 2.8 0 00-.73 1.96q0 1.16.73 1.93.74.78 1.77.78M45.93.48v13.21h-1.98V.48zm5.41 13.48a4.38 4.38 0 01-4.46-4.49q0-1.98 1.23-3.24a4 4 0 013.01-1.26 3.8 3.8 0 012.68 1.07 5 5 0 011.17 1.8l.2.51-6.01 2.49a2.3 2.3 0 002.18 1.36q1.37 0 2.21-1.24l1.53 1.02q-.5.76-1.45 1.38-.92.6-2.29.6m-2.5-4.63l4.02-1.67a1.4 1.4 0 00-.63-.69 2 2 0 00-1.04-.26q-.87 0-1.63.72a2.4 2.4 0 00-.72 1.9m11.21 4.36V1.5h1.57l4.24 7.42h.07l4.24-7.42h1.57v12.19h-1.57V6.45l.07-2.04h-.07l-3.81 6.69h-.92l-3.81-6.69h-.07l.07 2.04v7.24zm16.31.27q-1.33 0-2.22-.77a2.5 2.5 0 01-.89-2.03q0-1.36 1.06-2.14 1.05-.77 2.61-.77 1.38 0 2.26.51v-.23q0-.91-.63-1.47A2.3 2.3 0 0077 6.51q-.68 0-1.23.32a1.6 1.6 0 00-.77.88l-1.43-.61q.28-.75 1.14-1.39a3.6 3.6 0 012.25-.64q1.6 0 2.66.94 1.05.93 1.06 2.64v5.04h-1.5v-1.16h-.08a3 3 0 01-2.74 1.43m.25-1.43q.97 0 1.76-.72.8-.72.79-1.71-.67-.54-1.99-.54-1.14 0-1.72.49-.58.5-.58 1.16 0 .61.53.97.54.35 1.21.35m9.97 1.43q-.96 0-1.71-.41a3 3 0 01-1.13-1.02h-.07l.07 1.16v3.68h-1.57V5.35h1.5v1.16h.07a3 3 0 011.13-1.02 3.67 3.67 0 014.5.87 4.5 4.5 0 011.18 3.17q0 1.9-1.18 3.17a3.7 3.7 0 01-2.79 1.26m-.26-1.43q1.1 0 1.87-.83.78-.82.78-2.19t-.78-2.19a2.5 2.5 0 00-1.87-.83q-1.11 0-1.88.82-.78.81-.77 2.2c.01 1.39.26 1.65.77 2.2q.78.82 1.88.82m8.39 1.43a3.8 3.8 0 01-3.65-2.38l1.4-.58q.67 1.57 2.26 1.57.73 0 1.2-.32a1 1 0 00.47-.85q0-.81-1.14-1.11l-1.69-.41a4 4 0 01-1.52-.77 1.9 1.9 0 01-.72-1.54q0-1.11.98-1.8a4 4 0 012.32-.69q1.11 0 1.98.5t1.24 1.44l-1.34.56q-.46-1.11-1.91-1.11-.7 0-1.18.29t-.48.78q0 .72 1.11.97l1.65.39a3 3 0 011.74.94q.56.66.56 1.5 0 1.12-.92 1.87-.9.75-2.36.75" })
|
|
10363
|
+
}
|
|
10364
|
+
)
|
|
10365
|
+
}
|
|
10366
|
+
);
|
|
10367
|
+
var CustomPaper = (props) => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_Paper2.default, { elevation: 8, ...props, children: [
|
|
10368
|
+
props.children,
|
|
10369
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(GoogleMapsAttribution, {})
|
|
10370
|
+
] });
|
|
10371
|
+
var GooglePlacesAutocomplete = ({
|
|
10372
|
+
// Autocomplete options
|
|
10373
|
+
debounceMs,
|
|
10374
|
+
types,
|
|
10375
|
+
componentRestrictions,
|
|
10376
|
+
fetchPlaceDetails,
|
|
10377
|
+
placeDetailsFields,
|
|
10378
|
+
// Component props
|
|
10379
|
+
label = "Search location",
|
|
10380
|
+
placeholder,
|
|
10381
|
+
helperText,
|
|
10382
|
+
error: error2,
|
|
10383
|
+
errorMessage,
|
|
10384
|
+
required,
|
|
10385
|
+
onChange,
|
|
10386
|
+
onPlaceDetailsChange,
|
|
10387
|
+
textFieldProps,
|
|
10388
|
+
LocationIcon = DefaultLocationIcon,
|
|
10389
|
+
noOptionsText = "No locations found",
|
|
10390
|
+
value: externalValue,
|
|
10391
|
+
inputValue: externalInputValue,
|
|
10392
|
+
...autocompleteProps
|
|
10393
|
+
}) => {
|
|
10394
|
+
const {
|
|
10395
|
+
inputValue: internalInputValue,
|
|
10396
|
+
setInputValue,
|
|
10397
|
+
value: internalValue,
|
|
10398
|
+
setValue,
|
|
10399
|
+
options,
|
|
10400
|
+
loaded,
|
|
10401
|
+
loading,
|
|
10402
|
+
getPlaceDetails
|
|
10403
|
+
} = useGooglePlacesAutocomplete({
|
|
10404
|
+
debounceMs,
|
|
10405
|
+
types,
|
|
10406
|
+
componentRestrictions,
|
|
10407
|
+
fetchPlaceDetails,
|
|
10408
|
+
placeDetailsFields
|
|
10409
|
+
});
|
|
10410
|
+
const value = externalValue !== void 0 ? externalValue : internalValue;
|
|
10411
|
+
const inputValueToUse = externalInputValue !== void 0 ? externalInputValue : internalInputValue;
|
|
10412
|
+
const handleChange = async (_event, newValue) => {
|
|
10413
|
+
setValue(newValue);
|
|
10414
|
+
onChange?.(newValue);
|
|
10415
|
+
if (newValue?.place_id && onPlaceDetailsChange) {
|
|
10416
|
+
const details = await getPlaceDetails(newValue.place_id);
|
|
10417
|
+
onPlaceDetailsChange(details);
|
|
10418
|
+
}
|
|
10419
|
+
};
|
|
10420
|
+
const handleInputChange = (_event, newInputValue) => {
|
|
10421
|
+
setInputValue(newInputValue);
|
|
10422
|
+
};
|
|
10423
|
+
const renderOption = (props, option) => {
|
|
10424
|
+
const { key, ...optionProps } = props;
|
|
10425
|
+
const matches = option.structured_formatting.main_text_matched_substrings || [];
|
|
10426
|
+
const parts = [];
|
|
10427
|
+
const mainText = option.structured_formatting.main_text;
|
|
10428
|
+
let lastIndex = 0;
|
|
10429
|
+
matches.forEach((match) => {
|
|
10430
|
+
if (match.offset > lastIndex) {
|
|
10431
|
+
parts.push({
|
|
10432
|
+
text: mainText.substring(lastIndex, match.offset),
|
|
10433
|
+
highlight: false
|
|
10434
|
+
});
|
|
10435
|
+
}
|
|
10436
|
+
parts.push({
|
|
10437
|
+
text: mainText.substring(match.offset, match.offset + match.length),
|
|
10438
|
+
highlight: true
|
|
10439
|
+
});
|
|
10440
|
+
lastIndex = match.offset + match.length;
|
|
10441
|
+
});
|
|
10442
|
+
if (lastIndex < mainText.length) {
|
|
10443
|
+
parts.push({
|
|
10444
|
+
text: mainText.substring(lastIndex),
|
|
10445
|
+
highlight: false
|
|
10446
|
+
});
|
|
10447
|
+
}
|
|
10448
|
+
if (parts.length === 0) {
|
|
10449
|
+
parts.push({ text: mainText, highlight: false });
|
|
10450
|
+
}
|
|
10451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("li", { ...optionProps, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_Grid.default, { container: true, sx: { alignItems: "center" }, children: [
|
|
10452
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_Grid.default, { sx: { display: "flex", width: 44 }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(LocationIcon, { sx: { color: "text.secondary", width: 20, height: 20 } }) }),
|
|
10453
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_Grid.default, { sx: { width: "calc(100% - 44px)", wordWrap: "break-word" }, children: [
|
|
10454
|
+
parts.map((part, index) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
10455
|
+
import_Box24.default,
|
|
10456
|
+
{
|
|
10457
|
+
component: "span",
|
|
10458
|
+
sx: {
|
|
10459
|
+
fontWeight: part.highlight ? "fontWeightBold" : "fontWeightRegular"
|
|
10460
|
+
},
|
|
10461
|
+
children: part.text
|
|
10462
|
+
},
|
|
10463
|
+
index
|
|
10464
|
+
)),
|
|
10465
|
+
option.structured_formatting.secondary_text && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_Typography14.default, { variant: "body2", sx: { color: "text.secondary" }, children: option.structured_formatting.secondary_text })
|
|
10466
|
+
] })
|
|
10467
|
+
] }) }, key);
|
|
10468
|
+
};
|
|
10469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
10470
|
+
import_Autocomplete4.default,
|
|
10471
|
+
{
|
|
10472
|
+
getOptionLabel: (option) => typeof option === "string" ? option : option.description,
|
|
10473
|
+
filterOptions: (x) => x,
|
|
10474
|
+
options,
|
|
10475
|
+
autoComplete: true,
|
|
10476
|
+
includeInputInList: true,
|
|
10477
|
+
filterSelectedOptions: true,
|
|
10478
|
+
value,
|
|
10479
|
+
inputValue: inputValueToUse,
|
|
10480
|
+
loading,
|
|
10481
|
+
noOptionsText: loaded ? noOptionsText : "Loading...",
|
|
10482
|
+
onChange: handleChange,
|
|
10483
|
+
onInputChange: handleInputChange,
|
|
10484
|
+
isOptionEqualToValue: (option, val) => option.description === val.description,
|
|
10485
|
+
slots: {
|
|
10486
|
+
paper: CustomPaper
|
|
10487
|
+
},
|
|
10488
|
+
renderOption,
|
|
10489
|
+
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
10490
|
+
import_TextField7.default,
|
|
10491
|
+
{
|
|
10492
|
+
...params,
|
|
10493
|
+
label,
|
|
10494
|
+
placeholder,
|
|
10495
|
+
required,
|
|
10496
|
+
error: error2 || !!errorMessage,
|
|
10497
|
+
helperText: errorMessage || helperText,
|
|
10498
|
+
slotProps: {
|
|
10499
|
+
input: {
|
|
10500
|
+
...params.InputProps,
|
|
10501
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
10502
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_CircularProgress2.default, { color: "inherit", size: 20 }),
|
|
10503
|
+
params.InputProps.endAdornment
|
|
10504
|
+
] })
|
|
10505
|
+
}
|
|
10506
|
+
},
|
|
10507
|
+
...textFieldProps
|
|
10508
|
+
}
|
|
10509
|
+
),
|
|
10510
|
+
...autocompleteProps
|
|
10511
|
+
}
|
|
10512
|
+
);
|
|
10513
|
+
};
|
|
10514
|
+
|
|
10515
|
+
// src/components/HookForm/RHFGooglePlacesAutocomplete.tsx
|
|
10516
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
10517
|
+
var RHFGooglePlacesAutocomplete = ({
|
|
10518
|
+
name,
|
|
10519
|
+
helperText,
|
|
10520
|
+
valueType = "full",
|
|
10521
|
+
onValueChange,
|
|
10522
|
+
onPlaceDetailsChange,
|
|
10523
|
+
fetchPlaceDetails,
|
|
10524
|
+
...other
|
|
10525
|
+
}) => {
|
|
10526
|
+
const { control, setValue: setFormValue } = (0, import_react_hook_form11.useFormContext)();
|
|
10527
|
+
const shouldFetchDetails = valueType === "details" || fetchPlaceDetails;
|
|
10528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
10529
|
+
import_react_hook_form11.Controller,
|
|
10530
|
+
{
|
|
10531
|
+
name,
|
|
10532
|
+
control,
|
|
10533
|
+
render: ({ field, fieldState: { error: error2 } }) => {
|
|
10534
|
+
const getDisplayValue = () => {
|
|
10535
|
+
if (!field.value) return null;
|
|
10536
|
+
if (typeof field.value === "string") {
|
|
10537
|
+
return {
|
|
10538
|
+
description: field.value,
|
|
10539
|
+
structured_formatting: {
|
|
10540
|
+
main_text: field.value,
|
|
10541
|
+
main_text_matched_substrings: []
|
|
10542
|
+
}
|
|
10543
|
+
};
|
|
10544
|
+
}
|
|
10545
|
+
if (field.value.placeId) {
|
|
10546
|
+
return {
|
|
10547
|
+
description: field.value.description || field.value.formattedAddress,
|
|
10548
|
+
place_id: field.value.placeId,
|
|
10549
|
+
structured_formatting: {
|
|
10550
|
+
main_text: field.value.mainText || field.value.description,
|
|
10551
|
+
main_text_matched_substrings: [],
|
|
10552
|
+
secondary_text: field.value.secondaryText
|
|
10553
|
+
}
|
|
10554
|
+
};
|
|
10555
|
+
}
|
|
10556
|
+
return field.value;
|
|
10557
|
+
};
|
|
10558
|
+
const handleChange = (newValue) => {
|
|
10559
|
+
onValueChange?.(newValue);
|
|
10560
|
+
if (!newValue) {
|
|
10561
|
+
setFormValue(name, null, { shouldValidate: true });
|
|
10562
|
+
return;
|
|
10563
|
+
}
|
|
10564
|
+
if (valueType === "description") {
|
|
10565
|
+
setFormValue(name, newValue.description, { shouldValidate: true });
|
|
10566
|
+
} else {
|
|
10567
|
+
setFormValue(name, newValue, { shouldValidate: true });
|
|
10568
|
+
}
|
|
10569
|
+
};
|
|
10570
|
+
const handlePlaceDetailsChange = (details) => {
|
|
10571
|
+
onPlaceDetailsChange?.(details);
|
|
10572
|
+
if (valueType === "details" && details) {
|
|
10573
|
+
setFormValue(name, details, { shouldValidate: true });
|
|
10574
|
+
}
|
|
10575
|
+
};
|
|
10576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
10577
|
+
GooglePlacesAutocomplete,
|
|
10578
|
+
{
|
|
10579
|
+
value: getDisplayValue(),
|
|
10580
|
+
onChange: handleChange,
|
|
10581
|
+
onPlaceDetailsChange: handlePlaceDetailsChange,
|
|
10582
|
+
fetchPlaceDetails: shouldFetchDetails,
|
|
10583
|
+
error: !!error2,
|
|
10584
|
+
errorMessage: error2?.message,
|
|
10585
|
+
helperText,
|
|
10586
|
+
...other
|
|
10587
|
+
}
|
|
10588
|
+
);
|
|
10589
|
+
}
|
|
10590
|
+
}
|
|
10591
|
+
);
|
|
10592
|
+
};
|
|
10593
|
+
|
|
10594
|
+
// src/components/HookForm/RHFDatePicker.tsx
|
|
10595
|
+
var import_react23 = require("react");
|
|
10596
|
+
var import_react_hook_form12 = require("react-hook-form");
|
|
10597
|
+
var import_TextField8 = __toESM(require("@mui/material/TextField"), 1);
|
|
9969
10598
|
var import_x_date_pickers = require("@mui/x-date-pickers");
|
|
9970
10599
|
var import_AdapterDateFns2 = require("@mui/x-date-pickers/AdapterDateFns");
|
|
9971
10600
|
var import_DatePicker = require("@mui/x-date-pickers/DatePicker");
|
|
9972
10601
|
var import_TimePicker = require("@mui/x-date-pickers/TimePicker");
|
|
9973
10602
|
var import_DateTimePicker = require("@mui/x-date-pickers/DateTimePicker");
|
|
9974
|
-
var
|
|
10603
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
9975
10604
|
var RHFDatePickerComponent = ({
|
|
9976
10605
|
name,
|
|
9977
10606
|
slotProps,
|
|
@@ -9980,10 +10609,10 @@ var RHFDatePickerComponent = ({
|
|
|
9980
10609
|
format: format4 = "MMM d, yyyy",
|
|
9981
10610
|
...other
|
|
9982
10611
|
}) => {
|
|
9983
|
-
const { control } = (0,
|
|
9984
|
-
const [isOpen, setIsOpen] = (0,
|
|
9985
|
-
const [cleared, setCleared] = (0,
|
|
9986
|
-
(0,
|
|
10612
|
+
const { control } = (0, import_react_hook_form12.useFormContext)();
|
|
10613
|
+
const [isOpen, setIsOpen] = (0, import_react23.useState)(false);
|
|
10614
|
+
const [cleared, setCleared] = (0, import_react23.useState)(false);
|
|
10615
|
+
(0, import_react23.useEffect)(() => {
|
|
9987
10616
|
if (cleared) {
|
|
9988
10617
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
9989
10618
|
return () => clearTimeout(timeout);
|
|
@@ -9991,12 +10620,12 @@ var RHFDatePickerComponent = ({
|
|
|
9991
10620
|
return () => {
|
|
9992
10621
|
};
|
|
9993
10622
|
}, [cleared]);
|
|
9994
|
-
return /* @__PURE__ */ (0,
|
|
9995
|
-
|
|
10623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10624
|
+
import_react_hook_form12.Controller,
|
|
9996
10625
|
{
|
|
9997
10626
|
name,
|
|
9998
10627
|
control,
|
|
9999
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10628
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_x_date_pickers.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10000
10629
|
import_DatePicker.DatePicker,
|
|
10001
10630
|
{
|
|
10002
10631
|
...field,
|
|
@@ -10007,7 +10636,7 @@ var RHFDatePickerComponent = ({
|
|
|
10007
10636
|
open: isOpen,
|
|
10008
10637
|
onClose: () => setIsOpen(false),
|
|
10009
10638
|
slots: {
|
|
10010
|
-
textField:
|
|
10639
|
+
textField: import_TextField8.default,
|
|
10011
10640
|
...other.slots
|
|
10012
10641
|
},
|
|
10013
10642
|
slotProps: {
|
|
@@ -10028,7 +10657,7 @@ var RHFDatePickerComponent = ({
|
|
|
10028
10657
|
}
|
|
10029
10658
|
);
|
|
10030
10659
|
};
|
|
10031
|
-
var RHFDatePicker = (0,
|
|
10660
|
+
var RHFDatePicker = (0, import_react23.memo)(RHFDatePickerComponent);
|
|
10032
10661
|
var RHFTimePickerComponent = ({
|
|
10033
10662
|
name,
|
|
10034
10663
|
slotProps,
|
|
@@ -10037,10 +10666,10 @@ var RHFTimePickerComponent = ({
|
|
|
10037
10666
|
format: format4 = "h:mma",
|
|
10038
10667
|
...other
|
|
10039
10668
|
}) => {
|
|
10040
|
-
const { control } = (0,
|
|
10041
|
-
const [isOpen, setIsOpen] = (0,
|
|
10042
|
-
const [cleared, setCleared] = (0,
|
|
10043
|
-
(0,
|
|
10669
|
+
const { control } = (0, import_react_hook_form12.useFormContext)();
|
|
10670
|
+
const [isOpen, setIsOpen] = (0, import_react23.useState)(false);
|
|
10671
|
+
const [cleared, setCleared] = (0, import_react23.useState)(false);
|
|
10672
|
+
(0, import_react23.useEffect)(() => {
|
|
10044
10673
|
if (cleared) {
|
|
10045
10674
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
10046
10675
|
return () => clearTimeout(timeout);
|
|
@@ -10048,12 +10677,12 @@ var RHFTimePickerComponent = ({
|
|
|
10048
10677
|
return () => {
|
|
10049
10678
|
};
|
|
10050
10679
|
}, [cleared]);
|
|
10051
|
-
return /* @__PURE__ */ (0,
|
|
10052
|
-
|
|
10680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10681
|
+
import_react_hook_form12.Controller,
|
|
10053
10682
|
{
|
|
10054
10683
|
name,
|
|
10055
10684
|
control,
|
|
10056
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10685
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_x_date_pickers.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10057
10686
|
import_TimePicker.TimePicker,
|
|
10058
10687
|
{
|
|
10059
10688
|
...field,
|
|
@@ -10064,7 +10693,7 @@ var RHFTimePickerComponent = ({
|
|
|
10064
10693
|
open: isOpen,
|
|
10065
10694
|
onClose: () => setIsOpen(false),
|
|
10066
10695
|
slots: {
|
|
10067
|
-
textField:
|
|
10696
|
+
textField: import_TextField8.default,
|
|
10068
10697
|
...other.slots
|
|
10069
10698
|
},
|
|
10070
10699
|
slotProps: {
|
|
@@ -10085,7 +10714,7 @@ var RHFTimePickerComponent = ({
|
|
|
10085
10714
|
}
|
|
10086
10715
|
);
|
|
10087
10716
|
};
|
|
10088
|
-
var RHFTimePicker = (0,
|
|
10717
|
+
var RHFTimePicker = (0, import_react23.memo)(RHFTimePickerComponent);
|
|
10089
10718
|
var RHFDateTimePickerComponent = ({
|
|
10090
10719
|
name,
|
|
10091
10720
|
slotProps,
|
|
@@ -10094,10 +10723,10 @@ var RHFDateTimePickerComponent = ({
|
|
|
10094
10723
|
format: format4 = "MMM d, yyyy h:mma",
|
|
10095
10724
|
...other
|
|
10096
10725
|
}) => {
|
|
10097
|
-
const { control } = (0,
|
|
10098
|
-
const [isOpen, setIsOpen] = (0,
|
|
10099
|
-
const [cleared, setCleared] = (0,
|
|
10100
|
-
(0,
|
|
10726
|
+
const { control } = (0, import_react_hook_form12.useFormContext)();
|
|
10727
|
+
const [isOpen, setIsOpen] = (0, import_react23.useState)(false);
|
|
10728
|
+
const [cleared, setCleared] = (0, import_react23.useState)(false);
|
|
10729
|
+
(0, import_react23.useEffect)(() => {
|
|
10101
10730
|
if (cleared) {
|
|
10102
10731
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
10103
10732
|
return () => clearTimeout(timeout);
|
|
@@ -10105,12 +10734,12 @@ var RHFDateTimePickerComponent = ({
|
|
|
10105
10734
|
return () => {
|
|
10106
10735
|
};
|
|
10107
10736
|
}, [cleared]);
|
|
10108
|
-
return /* @__PURE__ */ (0,
|
|
10109
|
-
|
|
10737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10738
|
+
import_react_hook_form12.Controller,
|
|
10110
10739
|
{
|
|
10111
10740
|
name,
|
|
10112
10741
|
control,
|
|
10113
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10742
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_x_date_pickers.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
10114
10743
|
import_DateTimePicker.DateTimePicker,
|
|
10115
10744
|
{
|
|
10116
10745
|
...field,
|
|
@@ -10121,7 +10750,7 @@ var RHFDateTimePickerComponent = ({
|
|
|
10121
10750
|
open: isOpen,
|
|
10122
10751
|
onClose: () => setIsOpen(false),
|
|
10123
10752
|
slots: {
|
|
10124
|
-
textField:
|
|
10753
|
+
textField: import_TextField8.default,
|
|
10125
10754
|
...other.slots
|
|
10126
10755
|
},
|
|
10127
10756
|
slotProps: {
|
|
@@ -10142,13 +10771,14 @@ var RHFDateTimePickerComponent = ({
|
|
|
10142
10771
|
}
|
|
10143
10772
|
);
|
|
10144
10773
|
};
|
|
10145
|
-
var RHFDateTimePicker = (0,
|
|
10774
|
+
var RHFDateTimePicker = (0, import_react23.memo)(RHFDateTimePickerComponent);
|
|
10146
10775
|
|
|
10147
10776
|
// src/components/HookForm/fields.ts
|
|
10148
10777
|
var Field = {
|
|
10149
10778
|
OTP: RHFOTPInput,
|
|
10150
10779
|
Switch: RHFSwitch,
|
|
10151
10780
|
Upload: RHFUpload,
|
|
10781
|
+
Select: RHFSelect,
|
|
10152
10782
|
Text: RHFTextField,
|
|
10153
10783
|
Radio: RHFRadioGroup,
|
|
10154
10784
|
Checkbox: RHFCheckbox,
|
|
@@ -10157,35 +10787,36 @@ var Field = {
|
|
|
10157
10787
|
Date: RHFDatePicker,
|
|
10158
10788
|
Time: RHFTimePicker,
|
|
10159
10789
|
DateTime: RHFDateTimePicker,
|
|
10160
|
-
DateRange: RHFDateRangePicker
|
|
10790
|
+
DateRange: RHFDateRangePicker,
|
|
10791
|
+
GooglePlacesAutocomplete: RHFGooglePlacesAutocomplete
|
|
10161
10792
|
};
|
|
10162
10793
|
|
|
10163
10794
|
// src/components/CopyButton/index.tsx
|
|
10164
10795
|
var import_Tooltip2 = __toESM(require("@mui/material/Tooltip"), 1);
|
|
10165
10796
|
var import_IconButton6 = __toESM(require("@mui/material/IconButton"), 1);
|
|
10166
|
-
var
|
|
10797
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
10167
10798
|
var CopyButton = ({ text: text2, size = "small" }) => {
|
|
10168
10799
|
const { copy, isCopied } = useCopyToClipboard();
|
|
10169
|
-
return /* @__PURE__ */ (0,
|
|
10800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_Tooltip2.default, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
10170
10801
|
import_IconButton6.default,
|
|
10171
10802
|
{
|
|
10172
10803
|
size,
|
|
10173
10804
|
onClick: () => copy(text2),
|
|
10174
10805
|
"aria-label": "copy token",
|
|
10175
10806
|
sx: { color: "icon.black" },
|
|
10176
|
-
children: /* @__PURE__ */ (0,
|
|
10807
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
|
|
10177
10808
|
}
|
|
10178
10809
|
) });
|
|
10179
10810
|
};
|
|
10180
10811
|
|
|
10181
10812
|
// src/components/LoadingScreen/index.tsx
|
|
10182
10813
|
var import_Portal2 = __toESM(require("@mui/material/Portal"), 1);
|
|
10183
|
-
var
|
|
10814
|
+
var import_Box25 = __toESM(require("@mui/material/Box"), 1);
|
|
10184
10815
|
var import_LinearProgress = __toESM(require("@mui/material/LinearProgress"), 1);
|
|
10185
|
-
var
|
|
10816
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
10186
10817
|
var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
10187
|
-
const content = /* @__PURE__ */ (0,
|
|
10188
|
-
|
|
10818
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
10819
|
+
import_Box25.default,
|
|
10189
10820
|
{
|
|
10190
10821
|
sx: {
|
|
10191
10822
|
px: 5,
|
|
@@ -10198,17 +10829,17 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
|
10198
10829
|
...sx
|
|
10199
10830
|
},
|
|
10200
10831
|
...rest,
|
|
10201
|
-
children: /* @__PURE__ */ (0,
|
|
10832
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_LinearProgress.default, { color: "primary", sx: { width: 1, maxWidth: 360 } })
|
|
10202
10833
|
}
|
|
10203
10834
|
);
|
|
10204
10835
|
if (portal) {
|
|
10205
|
-
return /* @__PURE__ */ (0,
|
|
10836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_Portal2.default, { children: content });
|
|
10206
10837
|
}
|
|
10207
10838
|
return content;
|
|
10208
10839
|
};
|
|
10209
10840
|
var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
10210
|
-
const content = /* @__PURE__ */ (0,
|
|
10211
|
-
|
|
10841
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
10842
|
+
import_Box25.default,
|
|
10212
10843
|
{
|
|
10213
10844
|
sx: {
|
|
10214
10845
|
right: 0,
|
|
@@ -10224,17 +10855,17 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
|
10224
10855
|
...sx
|
|
10225
10856
|
},
|
|
10226
10857
|
...rest,
|
|
10227
|
-
children: /* @__PURE__ */ (0,
|
|
10858
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(AnimatedLogo, {})
|
|
10228
10859
|
}
|
|
10229
10860
|
);
|
|
10230
10861
|
if (portal) {
|
|
10231
|
-
return /* @__PURE__ */ (0,
|
|
10862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_Portal2.default, { children: content });
|
|
10232
10863
|
}
|
|
10233
10864
|
return content;
|
|
10234
10865
|
};
|
|
10235
10866
|
|
|
10236
10867
|
// src/theme/core/components/mui-x-data-grid.tsx
|
|
10237
|
-
var
|
|
10868
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
10238
10869
|
var MuiDataGrid = {
|
|
10239
10870
|
/** **************************************
|
|
10240
10871
|
* DEFAULT PROPS
|
|
@@ -10242,9 +10873,9 @@ var MuiDataGrid = {
|
|
|
10242
10873
|
defaultProps: {
|
|
10243
10874
|
slots: {
|
|
10244
10875
|
/* Column */
|
|
10245
|
-
columnSortedAscendingIcon: (props) => /* @__PURE__ */ (0,
|
|
10246
|
-
columnSortedDescendingIcon: (props) => /* @__PURE__ */ (0,
|
|
10247
|
-
columnUnsortedIcon: (props) => /* @__PURE__ */ (0,
|
|
10876
|
+
columnSortedAscendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridArrowUpIcon, { sx: { color: "text.primary" }, ...props }),
|
|
10877
|
+
columnSortedDescendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridArrowDownIcon, { sx: { color: "text.primary" }, ...props }),
|
|
10878
|
+
columnUnsortedIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10248
10879
|
DataGridArrowUpIcon,
|
|
10249
10880
|
{
|
|
10250
10881
|
fontSize: props.fontSize,
|
|
@@ -10252,28 +10883,28 @@ var MuiDataGrid = {
|
|
|
10252
10883
|
sx: { color: "text.disabled" }
|
|
10253
10884
|
}
|
|
10254
10885
|
),
|
|
10255
|
-
columnMenuIcon: (props) => /* @__PURE__ */ (0,
|
|
10256
|
-
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ (0,
|
|
10257
|
-
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ (0,
|
|
10258
|
-
columnMenuFilterIcon: (props) => /* @__PURE__ */ (0,
|
|
10259
|
-
columnMenuHideIcon: (props) => /* @__PURE__ */ (0,
|
|
10260
|
-
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ (0,
|
|
10261
|
-
columnSelectorIcon: (props) => /* @__PURE__ */ (0,
|
|
10886
|
+
columnMenuIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridMoreIcon, { width: 20, ...props }),
|
|
10887
|
+
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridArrowUpIcon, { ...props }),
|
|
10888
|
+
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridArrowDownIcon, { ...props }),
|
|
10889
|
+
columnMenuFilterIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridFilterIcon, { ...props }),
|
|
10890
|
+
columnMenuHideIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridEyeCloseIcon, { ...props }),
|
|
10891
|
+
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridEyeIcon, { ...props }),
|
|
10892
|
+
columnSelectorIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridEyeIcon, { ...props }),
|
|
10262
10893
|
/* Filter */
|
|
10263
|
-
filterPanelDeleteIcon: (props) => /* @__PURE__ */ (0,
|
|
10264
|
-
openFilterButtonIcon: (props) => /* @__PURE__ */ (0,
|
|
10265
|
-
columnFilteredIcon: (props) => /* @__PURE__ */ (0,
|
|
10894
|
+
filterPanelDeleteIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridCloseIcon, { ...props }),
|
|
10895
|
+
openFilterButtonIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridFilterIcon, { ...props }),
|
|
10896
|
+
columnFilteredIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridFilterIcon, { sx: { width: 16, color: "text.primary" }, ...props }),
|
|
10266
10897
|
/* Density */
|
|
10267
|
-
densityCompactIcon: (props) => /* @__PURE__ */ (0,
|
|
10268
|
-
densityStandardIcon: (props) => /* @__PURE__ */ (0,
|
|
10269
|
-
densityComfortableIcon: (props) => /* @__PURE__ */ (0,
|
|
10898
|
+
densityCompactIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridDensityCompactIcon, { ...props }),
|
|
10899
|
+
densityStandardIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridDensityStandardIcon, { ...props }),
|
|
10900
|
+
densityComfortableIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridDensityComfortableIcon, { ...props }),
|
|
10270
10901
|
/* Export */
|
|
10271
|
-
exportIcon: (props) => /* @__PURE__ */ (0,
|
|
10902
|
+
exportIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridExportIcon, { ...props }),
|
|
10272
10903
|
/* Quick Filter */
|
|
10273
|
-
quickFilterIcon: (props) => /* @__PURE__ */ (0,
|
|
10274
|
-
quickFilterClearIcon: (props) => /* @__PURE__ */ (0,
|
|
10904
|
+
quickFilterIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridSearchIcon, { sx: { width: 24, height: 24, color: "text.secondary" }, ...props }),
|
|
10905
|
+
quickFilterClearIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(DataGridCloseIcon, { ...props }),
|
|
10275
10906
|
/* Actions Column */
|
|
10276
|
-
moreActionsIcon: (props) => /* @__PURE__ */ (0,
|
|
10907
|
+
moreActionsIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Icon, { icon: "MoreHorizontal", sx: { width: 20, height: 20 }, ...props })
|
|
10277
10908
|
},
|
|
10278
10909
|
slotProps: {
|
|
10279
10910
|
basePopper: { placement: "bottom-end" },
|
|
@@ -10341,7 +10972,7 @@ var MuiDataGrid = {
|
|
|
10341
10972
|
toolbarContainer: ({ theme }) => ({
|
|
10342
10973
|
gap: theme.spacing(2),
|
|
10343
10974
|
padding: theme.spacing(2),
|
|
10344
|
-
[`& .${
|
|
10975
|
+
[`& .${import_TextField9.textFieldClasses.root}`]: {
|
|
10345
10976
|
padding: 0,
|
|
10346
10977
|
width: "100%",
|
|
10347
10978
|
[`& .${import_InputBase4.inputBaseClasses.input}`]: {
|
|
@@ -10359,7 +10990,7 @@ var MuiDataGrid = {
|
|
|
10359
10990
|
padding: 0
|
|
10360
10991
|
}),
|
|
10361
10992
|
menu: ({ theme }) => ({
|
|
10362
|
-
[`& .${
|
|
10993
|
+
[`& .${import_Paper3.paperClasses.root}`]: {
|
|
10363
10994
|
minWidth: 140,
|
|
10364
10995
|
padding: theme.spacing(0.75, 1),
|
|
10365
10996
|
borderRadius: theme.radius["radius-xl"],
|
|
@@ -10438,27 +11069,27 @@ var MuiDataGrid = {
|
|
|
10438
11069
|
[`& .${import_IconButton7.iconButtonClasses.root}`]: {
|
|
10439
11070
|
padding: theme.spacing(0.25),
|
|
10440
11071
|
backgroundColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.16),
|
|
10441
|
-
[`& .${
|
|
11072
|
+
[`& .${import_SvgIcon3.svgIconClasses.root}`]: { width: 16, height: 16 }
|
|
10442
11073
|
}
|
|
10443
11074
|
}),
|
|
10444
11075
|
/** Overlay */
|
|
10445
11076
|
overlay: ({ theme }) => ({
|
|
10446
|
-
[`& .${
|
|
11077
|
+
[`& .${import_CircularProgress3.circularProgressClasses.root}`]: {
|
|
10447
11078
|
color: theme.vars.palette.text.primary
|
|
10448
11079
|
}
|
|
10449
11080
|
})
|
|
10450
11081
|
}
|
|
10451
11082
|
};
|
|
10452
11083
|
var dataGrid = { MuiDataGrid };
|
|
10453
|
-
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
10454
|
-
/* @__PURE__ */ (0,
|
|
11084
|
+
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11085
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10455
11086
|
"path",
|
|
10456
11087
|
{
|
|
10457
11088
|
fill: "currentColor",
|
|
10458
11089
|
d: "m8.303 11.596l3.327-3.431a.499.499 0 0 1 .74 0l6.43 6.63c.401.414.158 1.205-.37 1.205h-5.723z"
|
|
10459
11090
|
}
|
|
10460
11091
|
),
|
|
10461
|
-
/* @__PURE__ */ (0,
|
|
11092
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10462
11093
|
"path",
|
|
10463
11094
|
{
|
|
10464
11095
|
fill: "currentColor",
|
|
@@ -10467,15 +11098,15 @@ var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runti
|
|
|
10467
11098
|
}
|
|
10468
11099
|
)
|
|
10469
11100
|
] });
|
|
10470
|
-
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
10471
|
-
/* @__PURE__ */ (0,
|
|
11101
|
+
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11102
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10472
11103
|
"path",
|
|
10473
11104
|
{
|
|
10474
11105
|
fill: "currentColor",
|
|
10475
11106
|
d: "m8.303 12.404l3.327 3.431c.213.22.527.22.74 0l6.43-6.63C19.201 8.79 18.958 8 18.43 8h-5.723z"
|
|
10476
11107
|
}
|
|
10477
11108
|
),
|
|
10478
|
-
/* @__PURE__ */ (0,
|
|
11109
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10479
11110
|
"path",
|
|
10480
11111
|
{
|
|
10481
11112
|
fill: "currentColor",
|
|
@@ -10484,15 +11115,15 @@ var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
10484
11115
|
}
|
|
10485
11116
|
)
|
|
10486
11117
|
] });
|
|
10487
|
-
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11118
|
+
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10488
11119
|
"path",
|
|
10489
11120
|
{
|
|
10490
11121
|
fill: "currentColor",
|
|
10491
11122
|
d: "M19 3H5c-1.414 0-2.121 0-2.56.412C2 3.824 2 4.488 2 5.815v.69c0 1.037 0 1.556.26 1.986c.26.43.733.698 1.682 1.232l2.913 1.64c.636.358.955.537 1.183.735c.474.411.766.895.898 1.49c.064.284.064.618.064 1.285v2.67c0 .909 0 1.364.252 1.718c.252.355.7.53 1.594.88c1.879.734 2.818 1.101 3.486.683c.668-.417.668-1.372.668-3.282v-2.67c0-.666 0-1 .064-1.285a2.68 2.68 0 0 1 .899-1.49c.227-.197.546-.376 1.182-.735l2.913-1.64c.948-.533 1.423-.8 1.682-1.23c.26-.43.26-.95.26-1.988v-.69c0-1.326 0-1.99-.44-2.402C21.122 3 20.415 3 19 3"
|
|
10492
11123
|
}
|
|
10493
11124
|
) });
|
|
10494
|
-
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
10495
|
-
/* @__PURE__ */ (0,
|
|
11125
|
+
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11126
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10496
11127
|
"path",
|
|
10497
11128
|
{
|
|
10498
11129
|
fill: "currentColor",
|
|
@@ -10501,7 +11132,7 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
10501
11132
|
clipRule: "evenodd"
|
|
10502
11133
|
}
|
|
10503
11134
|
),
|
|
10504
|
-
/* @__PURE__ */ (0,
|
|
11135
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10505
11136
|
"path",
|
|
10506
11137
|
{
|
|
10507
11138
|
fill: "currentColor",
|
|
@@ -10509,9 +11140,9 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
10509
11140
|
}
|
|
10510
11141
|
)
|
|
10511
11142
|
] });
|
|
10512
|
-
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
10513
|
-
/* @__PURE__ */ (0,
|
|
10514
|
-
/* @__PURE__ */ (0,
|
|
11143
|
+
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11144
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("path", { fill: "currentColor", d: "M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0" }),
|
|
11145
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10515
11146
|
"path",
|
|
10516
11147
|
{
|
|
10517
11148
|
fill: "currentColor",
|
|
@@ -10521,7 +11152,7 @@ var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime10
|
|
|
10521
11152
|
}
|
|
10522
11153
|
)
|
|
10523
11154
|
] });
|
|
10524
|
-
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11155
|
+
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10525
11156
|
"path",
|
|
10526
11157
|
{
|
|
10527
11158
|
fill: "currentColor",
|
|
@@ -10530,23 +11161,23 @@ var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runt
|
|
|
10530
11161
|
clipRule: "evenodd"
|
|
10531
11162
|
}
|
|
10532
11163
|
) });
|
|
10533
|
-
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11164
|
+
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10534
11165
|
"path",
|
|
10535
11166
|
{
|
|
10536
11167
|
fill: "currentColor",
|
|
10537
11168
|
d: "m20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8a7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42M5 11a6 6 0 1 1 6 6a6 6 0 0 1-6-6"
|
|
10538
11169
|
}
|
|
10539
11170
|
) });
|
|
10540
|
-
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11171
|
+
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10541
11172
|
"path",
|
|
10542
11173
|
{
|
|
10543
11174
|
fill: "currentColor",
|
|
10544
11175
|
d: "m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"
|
|
10545
11176
|
}
|
|
10546
11177
|
) });
|
|
10547
|
-
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
10548
|
-
/* @__PURE__ */ (0,
|
|
10549
|
-
/* @__PURE__ */ (0,
|
|
11178
|
+
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("g", { fill: "none", children: [
|
|
11179
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
11180
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10550
11181
|
"path",
|
|
10551
11182
|
{
|
|
10552
11183
|
fill: "currentColor",
|
|
@@ -10554,16 +11185,16 @@ var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime1
|
|
|
10554
11185
|
}
|
|
10555
11186
|
)
|
|
10556
11187
|
] }) });
|
|
10557
|
-
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11188
|
+
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10558
11189
|
"path",
|
|
10559
11190
|
{
|
|
10560
11191
|
fill: "currentColor",
|
|
10561
11192
|
d: "M4 15.5q-.425 0-.712-.288T3 14.5V14q0-.425.288-.712T4 13h16q.425 0 .713.288T21 14v.5q0 .425-.288.713T20 15.5zM4 11q-.425 0-.712-.288T3 10v-.5q0-.425.288-.712T4 8.5h16q.425 0 .713.288T21 9.5v.5q0 .425-.288.713T20 11zm0-4.5q-.425 0-.712-.288T3 5.5V5q0-.425.288-.712T4 4h16q.425 0 .713.288T21 5v.5q0 .425-.288.713T20 6.5zM4 20q-.425 0-.712-.288T3 19v-.5q0-.425.288-.712T4 17.5h16q.425 0 .713.288T21 18.5v.5q0 .425-.288.713T20 20z"
|
|
10562
11193
|
}
|
|
10563
11194
|
) });
|
|
10564
|
-
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
10565
|
-
/* @__PURE__ */ (0,
|
|
10566
|
-
/* @__PURE__ */ (0,
|
|
11195
|
+
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("g", { fill: "none", fillRule: "evenodd", children: [
|
|
11196
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
11197
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10567
11198
|
"path",
|
|
10568
11199
|
{
|
|
10569
11200
|
fill: "currentColor",
|
|
@@ -10571,9 +11202,9 @@ var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ (0, impor
|
|
|
10571
11202
|
}
|
|
10572
11203
|
)
|
|
10573
11204
|
] }) });
|
|
10574
|
-
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
10575
|
-
/* @__PURE__ */ (0,
|
|
10576
|
-
/* @__PURE__ */ (0,
|
|
11205
|
+
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_SvgIcon3.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("g", { fill: "none", children: [
|
|
11206
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
11207
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
10577
11208
|
"path",
|
|
10578
11209
|
{
|
|
10579
11210
|
fill: "currentColor",
|
|
@@ -10731,20 +11362,20 @@ var MuiButtonGroup = {
|
|
|
10731
11362
|
var buttonGroup = { MuiButtonGroup };
|
|
10732
11363
|
|
|
10733
11364
|
// src/theme/core/components/autocomplete.tsx
|
|
10734
|
-
var
|
|
10735
|
-
var
|
|
10736
|
-
var
|
|
11365
|
+
var import_SvgIcon4 = require("@mui/material/SvgIcon");
|
|
11366
|
+
var import_Autocomplete5 = require("@mui/material/Autocomplete");
|
|
11367
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
10737
11368
|
var MuiAutocomplete = {
|
|
10738
11369
|
/** **************************************
|
|
10739
11370
|
* DEFAULT PROPS
|
|
10740
11371
|
*************************************** */
|
|
10741
|
-
defaultProps: { popupIcon: /* @__PURE__ */ (0,
|
|
11372
|
+
defaultProps: { popupIcon: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { icon: "NavArrowDown" }) },
|
|
10742
11373
|
/** **************************************
|
|
10743
11374
|
* STYLE
|
|
10744
11375
|
*************************************** */
|
|
10745
11376
|
styleOverrides: {
|
|
10746
11377
|
root: ({ theme }) => ({
|
|
10747
|
-
[`& span.${
|
|
11378
|
+
[`& span.${import_Autocomplete5.autocompleteClasses.tag}`]: {
|
|
10748
11379
|
...theme.typography.subtitle2,
|
|
10749
11380
|
height: 24,
|
|
10750
11381
|
minWidth: 24,
|
|
@@ -10761,11 +11392,11 @@ var MuiAutocomplete = {
|
|
|
10761
11392
|
}),
|
|
10762
11393
|
listbox: ({ theme }) => ({
|
|
10763
11394
|
padding: theme.spacing(0, 1),
|
|
10764
|
-
[`& .${
|
|
11395
|
+
[`& .${import_Autocomplete5.autocompleteClasses.option}`]: {
|
|
10765
11396
|
...menuItem(theme)
|
|
10766
11397
|
}
|
|
10767
11398
|
}),
|
|
10768
|
-
endAdornment: { [`& .${
|
|
11399
|
+
endAdornment: { [`& .${import_SvgIcon4.svgIconClasses.root}`]: { width: 24, height: 24 } }
|
|
10769
11400
|
}
|
|
10770
11401
|
};
|
|
10771
11402
|
var autocomplete = { MuiAutocomplete };
|
|
@@ -10863,11 +11494,11 @@ var toggleButton = { MuiToggleButton, MuiToggleButtonGroup };
|
|
|
10863
11494
|
|
|
10864
11495
|
// src/theme/core/components/mui-x-date-picker.tsx
|
|
10865
11496
|
var import_IconButton8 = __toESM(require("@mui/material/IconButton"), 1);
|
|
10866
|
-
var
|
|
11497
|
+
var import_Typography15 = __toESM(require("@mui/material/Typography"), 1);
|
|
10867
11498
|
var import_Button5 = require("@mui/material/Button");
|
|
10868
11499
|
var import_styles36 = require("@mui/material/styles");
|
|
10869
11500
|
var import_DialogActions = require("@mui/material/DialogActions");
|
|
10870
|
-
var
|
|
11501
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
10871
11502
|
var CustomCalendarHeaderRoot = (0, import_styles36.styled)("div")(({ theme }) => ({
|
|
10872
11503
|
display: "flex",
|
|
10873
11504
|
justifyContent: "space-between",
|
|
@@ -10905,10 +11536,10 @@ function CustomCalendarHeader(props) {
|
|
|
10905
11536
|
onViewChange("year");
|
|
10906
11537
|
}
|
|
10907
11538
|
};
|
|
10908
|
-
return /* @__PURE__ */ (0,
|
|
10909
|
-
/* @__PURE__ */ (0,
|
|
10910
|
-
/* @__PURE__ */ (0,
|
|
10911
|
-
|
|
11539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(CustomCalendarHeaderRoot, { children: [
|
|
11540
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(CustomIconButton, { onClick: selectPreviousMonth, title: "Previous month", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "NavArrowLeft", width: 16 }) }),
|
|
11541
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
11542
|
+
import_Typography15.default,
|
|
10912
11543
|
{
|
|
10913
11544
|
variant: "subtitle1",
|
|
10914
11545
|
onClick: handleLabelClick,
|
|
@@ -10922,7 +11553,7 @@ function CustomCalendarHeader(props) {
|
|
|
10922
11553
|
children: monthLabel
|
|
10923
11554
|
}
|
|
10924
11555
|
),
|
|
10925
|
-
/* @__PURE__ */ (0,
|
|
11556
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(CustomIconButton, { onClick: selectNextMonth, title: "Next month", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "NavArrowRight", width: 16 }) })
|
|
10926
11557
|
] });
|
|
10927
11558
|
}
|
|
10928
11559
|
var localeText = {
|
|
@@ -10930,13 +11561,13 @@ var localeText = {
|
|
|
10930
11561
|
};
|
|
10931
11562
|
var defaultProps = {
|
|
10932
11563
|
date: {
|
|
10933
|
-
openPickerIcon: () => /* @__PURE__ */ (0,
|
|
11564
|
+
openPickerIcon: () => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "Calendar", sx: { width: 20, height: 20 } }),
|
|
10934
11565
|
calendarHeader: CustomCalendarHeader
|
|
10935
11566
|
},
|
|
10936
11567
|
time: {
|
|
10937
|
-
openPickerIcon: () => /* @__PURE__ */ (0,
|
|
10938
|
-
rightArrowIcon: () => /* @__PURE__ */ (0,
|
|
10939
|
-
switchViewIcon: () => /* @__PURE__ */ (0,
|
|
11568
|
+
openPickerIcon: () => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "Clock", sx: { width: 20, height: 20 } }),
|
|
11569
|
+
rightArrowIcon: () => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "NavArrowRight" }),
|
|
11570
|
+
switchViewIcon: () => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "NavArrowDownSolid" })
|
|
10940
11571
|
}
|
|
10941
11572
|
};
|
|
10942
11573
|
var dateViews = ["year", "month", "day"];
|
|
@@ -11367,18 +11998,18 @@ var import__8 = require("@fontsource/geist/500.css");
|
|
|
11367
11998
|
var import__9 = require("@fontsource/geist/600.css");
|
|
11368
11999
|
var import__10 = require("@fontsource/geist/700.css");
|
|
11369
12000
|
var import_satoshi = require("./satoshi-4X3TX4PE.css");
|
|
11370
|
-
var
|
|
12001
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
11371
12002
|
var ThemeProvider = ({ children }) => {
|
|
11372
12003
|
const settings = useSettings();
|
|
11373
12004
|
const theme = createTheme(settings);
|
|
11374
|
-
return /* @__PURE__ */ (0,
|
|
12005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
11375
12006
|
import_styles41.ThemeProvider,
|
|
11376
12007
|
{
|
|
11377
12008
|
theme,
|
|
11378
12009
|
defaultMode: schemeConfig.defaultMode,
|
|
11379
12010
|
modeStorageKey: schemeConfig.modeStorageKey,
|
|
11380
12011
|
children: [
|
|
11381
|
-
/* @__PURE__ */ (0,
|
|
12012
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_CssBaseline.default, {}),
|
|
11382
12013
|
children
|
|
11383
12014
|
]
|
|
11384
12015
|
}
|
|
@@ -11421,6 +12052,8 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
11421
12052
|
FilterDropdown,
|
|
11422
12053
|
FilterList,
|
|
11423
12054
|
Form,
|
|
12055
|
+
GooglePlacesAutocomplete,
|
|
12056
|
+
GooglePlacesProvider,
|
|
11424
12057
|
HelpCircle,
|
|
11425
12058
|
Icon,
|
|
11426
12059
|
Image,
|
|
@@ -11434,6 +12067,7 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
11434
12067
|
LocalStorageGetItem,
|
|
11435
12068
|
Logo,
|
|
11436
12069
|
LongArrowUpLeftSolid,
|
|
12070
|
+
MapPinXMark,
|
|
11437
12071
|
MoreHorizontal,
|
|
11438
12072
|
NavArrowDown,
|
|
11439
12073
|
NavArrowDownSolid,
|
|
@@ -11447,10 +12081,12 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
11447
12081
|
RHFDatePicker,
|
|
11448
12082
|
RHFDateRangePicker,
|
|
11449
12083
|
RHFDateTimePicker,
|
|
12084
|
+
RHFGooglePlacesAutocomplete,
|
|
11450
12085
|
RHFMultiCheckbox,
|
|
11451
12086
|
RHFMultiSwitch,
|
|
11452
12087
|
RHFOTPInput,
|
|
11453
12088
|
RHFRadioGroup,
|
|
12089
|
+
RHFSelect,
|
|
11454
12090
|
RHFSwitch,
|
|
11455
12091
|
RHFTextField,
|
|
11456
12092
|
RHFTimePicker,
|
|
@@ -11541,6 +12177,7 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
11541
12177
|
orderBy,
|
|
11542
12178
|
paper,
|
|
11543
12179
|
paramCase,
|
|
12180
|
+
parseAddressComponents,
|
|
11544
12181
|
primary,
|
|
11545
12182
|
primaryFont,
|
|
11546
12183
|
pxToRem,
|
|
@@ -11572,6 +12209,9 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
11572
12209
|
useCountdownDate,
|
|
11573
12210
|
useCountdownSeconds,
|
|
11574
12211
|
useEventListener,
|
|
12212
|
+
useGooglePlacesAutocomplete,
|
|
12213
|
+
useGooglePlacesContext,
|
|
12214
|
+
useGooglePlacesLoaded,
|
|
11575
12215
|
useLocalStorage,
|
|
11576
12216
|
usePopover,
|
|
11577
12217
|
useResponsive,
|