@undefine-ui/design-system 3.7.1 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +276 -165
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -16
- package/dist/index.d.ts +39 -16
- package/dist/index.js +277 -164
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -90,6 +90,7 @@ __export(index_exports, {
|
|
|
90
90
|
RHFSwitch: () => RHFSwitch,
|
|
91
91
|
RHFTextField: () => RHFTextField,
|
|
92
92
|
RHFTimePicker: () => RHFTimePicker,
|
|
93
|
+
RHFToggleButton: () => RHFToggleButton,
|
|
93
94
|
RHFUpload: () => RHFUpload,
|
|
94
95
|
RadioDefault: () => RadioDefault,
|
|
95
96
|
RadioSelect: () => RadioSelect,
|
|
@@ -6179,6 +6180,10 @@ var MuiTextField = {
|
|
|
6179
6180
|
width: 20,
|
|
6180
6181
|
height: 20,
|
|
6181
6182
|
color: theme.vars.palette.icon.black
|
|
6183
|
+
},
|
|
6184
|
+
[`& .${inputAdornmentClasses.root} span`]: {
|
|
6185
|
+
...theme.typography.h8,
|
|
6186
|
+
color: theme.vars.palette.icon.black
|
|
6182
6187
|
}
|
|
6183
6188
|
},
|
|
6184
6189
|
// Size small - 16x16 icons
|
|
@@ -6506,6 +6511,7 @@ __export(components_exports2, {
|
|
|
6506
6511
|
RHFSwitch: () => RHFSwitch,
|
|
6507
6512
|
RHFTextField: () => RHFTextField,
|
|
6508
6513
|
RHFTimePicker: () => RHFTimePicker,
|
|
6514
|
+
RHFToggleButton: () => RHFToggleButton,
|
|
6509
6515
|
RHFUpload: () => RHFUpload,
|
|
6510
6516
|
RadioDefault: () => RadioDefault,
|
|
6511
6517
|
RadioSelect: () => RadioSelect,
|
|
@@ -9822,15 +9828,120 @@ var RHFAutocomplete = ({
|
|
|
9822
9828
|
);
|
|
9823
9829
|
};
|
|
9824
9830
|
|
|
9831
|
+
// src/components/HookForm/RHFToggleButton.tsx
|
|
9832
|
+
import { Controller as Controller8, useFormContext as useFormContext8 } from "react-hook-form";
|
|
9833
|
+
import FormLabel3 from "@mui/material/FormLabel";
|
|
9834
|
+
import FormControl3 from "@mui/material/FormControl";
|
|
9835
|
+
import FormHelperText5 from "@mui/material/FormHelperText";
|
|
9836
|
+
import ToggleButton, { toggleButtonClasses } from "@mui/material/ToggleButton";
|
|
9837
|
+
import ToggleButtonGroup, {
|
|
9838
|
+
toggleButtonGroupClasses
|
|
9839
|
+
} from "@mui/material/ToggleButtonGroup";
|
|
9840
|
+
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
9841
|
+
var RHFToggleButton = ({
|
|
9842
|
+
name,
|
|
9843
|
+
label,
|
|
9844
|
+
helperText,
|
|
9845
|
+
options,
|
|
9846
|
+
fullWidth,
|
|
9847
|
+
slotProps,
|
|
9848
|
+
sx,
|
|
9849
|
+
...other
|
|
9850
|
+
}) => {
|
|
9851
|
+
const { control } = useFormContext8();
|
|
9852
|
+
return /* @__PURE__ */ jsx97(
|
|
9853
|
+
Controller8,
|
|
9854
|
+
{
|
|
9855
|
+
name,
|
|
9856
|
+
control,
|
|
9857
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs61(
|
|
9858
|
+
FormControl3,
|
|
9859
|
+
{
|
|
9860
|
+
component: "fieldset",
|
|
9861
|
+
error: !!error2,
|
|
9862
|
+
fullWidth,
|
|
9863
|
+
...slotProps?.formControl,
|
|
9864
|
+
children: [
|
|
9865
|
+
label && /* @__PURE__ */ jsx97(FormLabel3, { component: "legend", sx: { mb: 1 }, ...slotProps?.formLabel, children: label }),
|
|
9866
|
+
/* @__PURE__ */ jsx97(
|
|
9867
|
+
ToggleButtonGroup,
|
|
9868
|
+
{
|
|
9869
|
+
...field,
|
|
9870
|
+
value: field.value ?? "",
|
|
9871
|
+
onChange: (_, newValue) => {
|
|
9872
|
+
if (newValue !== null) {
|
|
9873
|
+
field.onChange(newValue);
|
|
9874
|
+
}
|
|
9875
|
+
},
|
|
9876
|
+
exclusive: true,
|
|
9877
|
+
...other,
|
|
9878
|
+
sx: {
|
|
9879
|
+
backgroundColor: "transparent",
|
|
9880
|
+
borderRadius: "100px",
|
|
9881
|
+
gap: 1.5,
|
|
9882
|
+
border: "none",
|
|
9883
|
+
display: "inline-flex",
|
|
9884
|
+
width: "auto",
|
|
9885
|
+
[`& .${toggleButtonGroupClasses.grouped}.${toggleButtonClasses.root}`]: {
|
|
9886
|
+
px: 1,
|
|
9887
|
+
py: 0.5,
|
|
9888
|
+
border: "none",
|
|
9889
|
+
textTransform: "none",
|
|
9890
|
+
fontSize: 14,
|
|
9891
|
+
fontWeight: 500,
|
|
9892
|
+
color: "text.primary",
|
|
9893
|
+
backgroundColor: "surface.disable",
|
|
9894
|
+
borderRadius: "100px",
|
|
9895
|
+
transition: "all 0.2s",
|
|
9896
|
+
flex: "0 0 auto",
|
|
9897
|
+
"&:hover": {
|
|
9898
|
+
backgroundColor: "rgba(0, 0, 0, 0.04)"
|
|
9899
|
+
},
|
|
9900
|
+
[`&.${toggleButtonClasses.selected}`]: {
|
|
9901
|
+
backgroundColor: "primary.main",
|
|
9902
|
+
color: "common.white",
|
|
9903
|
+
"&:hover": {
|
|
9904
|
+
color: "common.white",
|
|
9905
|
+
backgroundColor: "primary.dark"
|
|
9906
|
+
}
|
|
9907
|
+
},
|
|
9908
|
+
[`&.${toggleButtonClasses.disabled}`]: {
|
|
9909
|
+
color: "text.disabled",
|
|
9910
|
+
backgroundColor: "transparent"
|
|
9911
|
+
}
|
|
9912
|
+
},
|
|
9913
|
+
...sx
|
|
9914
|
+
},
|
|
9915
|
+
children: options.map((option) => /* @__PURE__ */ jsx97(
|
|
9916
|
+
ToggleButton,
|
|
9917
|
+
{
|
|
9918
|
+
value: option.value,
|
|
9919
|
+
disabled: option.disabled,
|
|
9920
|
+
"aria-label": `${option.label}`,
|
|
9921
|
+
...option.toggleButtonProps,
|
|
9922
|
+
children: option.label
|
|
9923
|
+
},
|
|
9924
|
+
option.value
|
|
9925
|
+
))
|
|
9926
|
+
}
|
|
9927
|
+
),
|
|
9928
|
+
(error2?.message || helperText) && /* @__PURE__ */ jsx97(FormHelperText5, { sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2?.message ?? helperText })
|
|
9929
|
+
]
|
|
9930
|
+
}
|
|
9931
|
+
)
|
|
9932
|
+
}
|
|
9933
|
+
);
|
|
9934
|
+
};
|
|
9935
|
+
|
|
9825
9936
|
// src/components/HookForm/RHFDateRangePicker.tsx
|
|
9826
9937
|
import { useMemo as useMemo10, useState as useState16, useCallback as useCallback14 } from "react";
|
|
9827
|
-
import { useWatch, Controller as
|
|
9938
|
+
import { useWatch, Controller as Controller9, useFormContext as useFormContext9 } from "react-hook-form";
|
|
9828
9939
|
import { format as format3, isValid } from "date-fns";
|
|
9829
9940
|
import Box22 from "@mui/material/Box";
|
|
9830
9941
|
import Popover4 from "@mui/material/Popover";
|
|
9831
9942
|
import TextField6 from "@mui/material/TextField";
|
|
9832
9943
|
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
9833
|
-
import { Fragment as Fragment3, jsx as
|
|
9944
|
+
import { Fragment as Fragment3, jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
9834
9945
|
function RHFDateRangePicker({
|
|
9835
9946
|
name,
|
|
9836
9947
|
label,
|
|
@@ -9844,7 +9955,7 @@ function RHFDateRangePicker({
|
|
|
9844
9955
|
size = "medium",
|
|
9845
9956
|
fullWidth = true
|
|
9846
9957
|
}) {
|
|
9847
|
-
const { control } =
|
|
9958
|
+
const { control } = useFormContext9();
|
|
9848
9959
|
const [anchorEl, setAnchorEl] = useState16(null);
|
|
9849
9960
|
const open = Boolean(anchorEl);
|
|
9850
9961
|
const watchedValue = useWatch({ control, name });
|
|
@@ -9878,8 +9989,8 @@ function RHFDateRangePicker({
|
|
|
9878
9989
|
const handleClose = useCallback14(() => {
|
|
9879
9990
|
setAnchorEl(null);
|
|
9880
9991
|
}, []);
|
|
9881
|
-
return /* @__PURE__ */
|
|
9882
|
-
|
|
9992
|
+
return /* @__PURE__ */ jsx98(
|
|
9993
|
+
Controller9,
|
|
9883
9994
|
{
|
|
9884
9995
|
name,
|
|
9885
9996
|
control,
|
|
@@ -9888,8 +9999,8 @@ function RHFDateRangePicker({
|
|
|
9888
9999
|
field.onChange({ ...range, preset });
|
|
9889
10000
|
handleClose();
|
|
9890
10001
|
};
|
|
9891
|
-
return /* @__PURE__ */
|
|
9892
|
-
/* @__PURE__ */
|
|
10002
|
+
return /* @__PURE__ */ jsxs62(Fragment3, { children: [
|
|
10003
|
+
/* @__PURE__ */ jsx98(Box22, { onClick: handleClick, sx: { cursor: disabled ? "default" : "pointer" }, children: /* @__PURE__ */ jsx98(
|
|
9893
10004
|
TextField6,
|
|
9894
10005
|
{
|
|
9895
10006
|
label,
|
|
@@ -9903,13 +10014,13 @@ function RHFDateRangePicker({
|
|
|
9903
10014
|
slotProps: {
|
|
9904
10015
|
input: {
|
|
9905
10016
|
readOnly: true,
|
|
9906
|
-
endAdornment: /* @__PURE__ */
|
|
10017
|
+
endAdornment: /* @__PURE__ */ jsx98(InputAdornment2, { position: "end", children: /* @__PURE__ */ jsx98(Icon, { icon: "Calendar", sx: { width: 20, height: 20, color: "icon.mute" } }) }),
|
|
9907
10018
|
sx: { cursor: disabled ? "default" : "pointer" }
|
|
9908
10019
|
}
|
|
9909
10020
|
}
|
|
9910
10021
|
}
|
|
9911
10022
|
) }),
|
|
9912
|
-
/* @__PURE__ */
|
|
10023
|
+
/* @__PURE__ */ jsx98(
|
|
9913
10024
|
Popover4,
|
|
9914
10025
|
{
|
|
9915
10026
|
open,
|
|
@@ -9934,7 +10045,7 @@ function RHFDateRangePicker({
|
|
|
9934
10045
|
}
|
|
9935
10046
|
}
|
|
9936
10047
|
},
|
|
9937
|
-
children: /* @__PURE__ */
|
|
10048
|
+
children: /* @__PURE__ */ jsx98(
|
|
9938
10049
|
DateRangePicker,
|
|
9939
10050
|
{
|
|
9940
10051
|
value: { start: value.start, end: value.end },
|
|
@@ -9955,17 +10066,17 @@ function RHFDateRangePicker({
|
|
|
9955
10066
|
}
|
|
9956
10067
|
|
|
9957
10068
|
// src/components/HookForm/RHFCheckbox.tsx
|
|
9958
|
-
import { Controller as
|
|
10069
|
+
import { Controller as Controller10, useFormContext as useFormContext10 } from "react-hook-form";
|
|
9959
10070
|
import Stack8 from "@mui/material/Stack";
|
|
9960
10071
|
import Box23 from "@mui/material/Box";
|
|
9961
10072
|
import Typography12 from "@mui/material/Typography";
|
|
9962
10073
|
import Checkbox from "@mui/material/Checkbox";
|
|
9963
10074
|
import FormGroup2 from "@mui/material/FormGroup";
|
|
9964
|
-
import
|
|
9965
|
-
import
|
|
9966
|
-
import
|
|
10075
|
+
import FormLabel4 from "@mui/material/FormLabel";
|
|
10076
|
+
import FormControl4 from "@mui/material/FormControl";
|
|
10077
|
+
import FormHelperText6 from "@mui/material/FormHelperText";
|
|
9967
10078
|
import FormControlLabel5 from "@mui/material/FormControlLabel";
|
|
9968
|
-
import { jsx as
|
|
10079
|
+
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9969
10080
|
var RHFCheckbox = ({
|
|
9970
10081
|
name,
|
|
9971
10082
|
description,
|
|
@@ -9975,18 +10086,18 @@ var RHFCheckbox = ({
|
|
|
9975
10086
|
slotProps,
|
|
9976
10087
|
...other
|
|
9977
10088
|
}) => {
|
|
9978
|
-
const { control } =
|
|
10089
|
+
const { control } = useFormContext10();
|
|
9979
10090
|
const baseAriaLabel = `Checkbox for ${name}`;
|
|
9980
|
-
return /* @__PURE__ */
|
|
9981
|
-
|
|
10091
|
+
return /* @__PURE__ */ jsx99(
|
|
10092
|
+
Controller10,
|
|
9982
10093
|
{
|
|
9983
10094
|
name,
|
|
9984
10095
|
control,
|
|
9985
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
9986
|
-
/* @__PURE__ */
|
|
10096
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs63(Box23, { sx: slotProps?.wrap, children: [
|
|
10097
|
+
/* @__PURE__ */ jsx99(
|
|
9987
10098
|
FormControlLabel5,
|
|
9988
10099
|
{
|
|
9989
|
-
control: /* @__PURE__ */
|
|
10100
|
+
control: /* @__PURE__ */ jsx99(
|
|
9990
10101
|
Checkbox,
|
|
9991
10102
|
{
|
|
9992
10103
|
...field,
|
|
@@ -10001,9 +10112,9 @@ var RHFCheckbox = ({
|
|
|
10001
10112
|
}
|
|
10002
10113
|
}
|
|
10003
10114
|
),
|
|
10004
|
-
label: /* @__PURE__ */
|
|
10005
|
-
/* @__PURE__ */
|
|
10006
|
-
description && /* @__PURE__ */
|
|
10115
|
+
label: /* @__PURE__ */ jsxs63(Stack8, { children: [
|
|
10116
|
+
/* @__PURE__ */ jsx99(Typography12, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: label }),
|
|
10117
|
+
description && /* @__PURE__ */ jsx99(Typography12, { variant: "body2", color: "text.body", children: description })
|
|
10007
10118
|
] }),
|
|
10008
10119
|
sx: {
|
|
10009
10120
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -10012,7 +10123,7 @@ var RHFCheckbox = ({
|
|
|
10012
10123
|
...other
|
|
10013
10124
|
}
|
|
10014
10125
|
),
|
|
10015
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
10126
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx99(FormHelperText6, { error: !!error2, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
10016
10127
|
] })
|
|
10017
10128
|
}
|
|
10018
10129
|
);
|
|
@@ -10026,24 +10137,24 @@ var RHFMultiCheckbox = ({
|
|
|
10026
10137
|
row,
|
|
10027
10138
|
...other
|
|
10028
10139
|
}) => {
|
|
10029
|
-
const { control } =
|
|
10140
|
+
const { control } = useFormContext10();
|
|
10030
10141
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
10031
|
-
return /* @__PURE__ */
|
|
10032
|
-
|
|
10142
|
+
return /* @__PURE__ */ jsx99(
|
|
10143
|
+
Controller10,
|
|
10033
10144
|
{
|
|
10034
10145
|
name,
|
|
10035
10146
|
control,
|
|
10036
10147
|
defaultValue: [],
|
|
10037
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10038
|
-
|
|
10148
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs63(
|
|
10149
|
+
FormControl4,
|
|
10039
10150
|
{
|
|
10040
10151
|
component: "fieldset",
|
|
10041
10152
|
error: !!error2,
|
|
10042
10153
|
sx: slotProps?.formControl?.sx,
|
|
10043
10154
|
...slotProps?.formControl,
|
|
10044
10155
|
children: [
|
|
10045
|
-
label && /* @__PURE__ */
|
|
10046
|
-
|
|
10156
|
+
label && /* @__PURE__ */ jsx99(
|
|
10157
|
+
FormLabel4,
|
|
10047
10158
|
{
|
|
10048
10159
|
component: "legend",
|
|
10049
10160
|
...slotProps?.formLabel,
|
|
@@ -10051,12 +10162,12 @@ var RHFMultiCheckbox = ({
|
|
|
10051
10162
|
children: label
|
|
10052
10163
|
}
|
|
10053
10164
|
),
|
|
10054
|
-
/* @__PURE__ */
|
|
10165
|
+
/* @__PURE__ */ jsx99(FormGroup2, { row, ...other, children: options.map((option) => {
|
|
10055
10166
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
10056
|
-
return /* @__PURE__ */
|
|
10167
|
+
return /* @__PURE__ */ jsx99(
|
|
10057
10168
|
FormControlLabel5,
|
|
10058
10169
|
{
|
|
10059
|
-
control: /* @__PURE__ */
|
|
10170
|
+
control: /* @__PURE__ */ jsx99(
|
|
10060
10171
|
Checkbox,
|
|
10061
10172
|
{
|
|
10062
10173
|
checked: (field.value || []).includes(option.value),
|
|
@@ -10074,9 +10185,9 @@ var RHFMultiCheckbox = ({
|
|
|
10074
10185
|
}
|
|
10075
10186
|
}
|
|
10076
10187
|
),
|
|
10077
|
-
label: /* @__PURE__ */
|
|
10078
|
-
/* @__PURE__ */
|
|
10079
|
-
option?.description && /* @__PURE__ */
|
|
10188
|
+
label: /* @__PURE__ */ jsxs63(Stack8, { children: [
|
|
10189
|
+
/* @__PURE__ */ jsx99(Typography12, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: option.label }),
|
|
10190
|
+
option?.description && /* @__PURE__ */ jsx99(Typography12, { variant: "body2", color: "text.body", children: option?.description })
|
|
10080
10191
|
] }),
|
|
10081
10192
|
sx: {
|
|
10082
10193
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -10085,8 +10196,8 @@ var RHFMultiCheckbox = ({
|
|
|
10085
10196
|
option.value
|
|
10086
10197
|
);
|
|
10087
10198
|
}) }),
|
|
10088
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
10089
|
-
|
|
10199
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx99(
|
|
10200
|
+
FormHelperText6,
|
|
10090
10201
|
{
|
|
10091
10202
|
sx: { mx: 0, ...slotProps?.formHelperText?.sx },
|
|
10092
10203
|
...slotProps?.formHelperText,
|
|
@@ -10101,7 +10212,7 @@ var RHFMultiCheckbox = ({
|
|
|
10101
10212
|
};
|
|
10102
10213
|
|
|
10103
10214
|
// src/components/HookForm/RHFGooglePlacesAutocomplete.tsx
|
|
10104
|
-
import { Controller as
|
|
10215
|
+
import { Controller as Controller11, useFormContext as useFormContext11 } from "react-hook-form";
|
|
10105
10216
|
|
|
10106
10217
|
// src/components/GooglePlacesAutocomplete/types.ts
|
|
10107
10218
|
var parseAddressComponents = (addressComponents) => {
|
|
@@ -10132,7 +10243,7 @@ var parseAddressComponents = (addressComponents) => {
|
|
|
10132
10243
|
|
|
10133
10244
|
// src/components/GooglePlacesAutocomplete/GooglePlacesContext.tsx
|
|
10134
10245
|
import { useMemo as useMemo11, useState as useState17, useEffect as useEffect6, useContext as useContext2, useCallback as useCallback15, createContext as createContext2 } from "react";
|
|
10135
|
-
import { jsx as
|
|
10246
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
10136
10247
|
var GOOGLE_NAMESPACE = "_google_callback";
|
|
10137
10248
|
var GooglePlacesContext = createContext2(void 0);
|
|
10138
10249
|
var GooglePlacesProvider = ({
|
|
@@ -10184,7 +10295,7 @@ var GooglePlacesProvider = ({
|
|
|
10184
10295
|
}),
|
|
10185
10296
|
[apiKey, loaded, error2]
|
|
10186
10297
|
);
|
|
10187
|
-
return /* @__PURE__ */
|
|
10298
|
+
return /* @__PURE__ */ jsx100(GooglePlacesContext.Provider, { value, children });
|
|
10188
10299
|
};
|
|
10189
10300
|
var useGooglePlacesContext = () => {
|
|
10190
10301
|
const context = useContext2(GooglePlacesContext);
|
|
@@ -10353,9 +10464,9 @@ var useGooglePlacesAutocomplete = (options = {}) => {
|
|
|
10353
10464
|
};
|
|
10354
10465
|
|
|
10355
10466
|
// src/components/GooglePlacesAutocomplete/GooglePlacesAutocomplete.tsx
|
|
10356
|
-
import { Fragment as Fragment4, jsx as
|
|
10357
|
-
var DefaultLocationIcon = (props) => /* @__PURE__ */
|
|
10358
|
-
var GoogleMapsAttribution = () => /* @__PURE__ */
|
|
10467
|
+
import { Fragment as Fragment4, jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
10468
|
+
var DefaultLocationIcon = (props) => /* @__PURE__ */ jsx101(SvgIcon2, { ...props, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx101("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" }) });
|
|
10469
|
+
var GoogleMapsAttribution = () => /* @__PURE__ */ jsx101(
|
|
10359
10470
|
Box24,
|
|
10360
10471
|
{
|
|
10361
10472
|
sx: (theme) => ({
|
|
@@ -10367,7 +10478,7 @@ var GoogleMapsAttribution = () => /* @__PURE__ */ jsx100(
|
|
|
10367
10478
|
fill: theme.palette.text.secondary
|
|
10368
10479
|
}
|
|
10369
10480
|
}),
|
|
10370
|
-
children: /* @__PURE__ */
|
|
10481
|
+
children: /* @__PURE__ */ jsx101(
|
|
10371
10482
|
"svg",
|
|
10372
10483
|
{
|
|
10373
10484
|
"aria-label": "Google Maps",
|
|
@@ -10375,14 +10486,14 @@ var GoogleMapsAttribution = () => /* @__PURE__ */ jsx100(
|
|
|
10375
10486
|
preserveAspectRatio: "xMidYMid meet",
|
|
10376
10487
|
viewBox: "0 0 98 18",
|
|
10377
10488
|
width: "77",
|
|
10378
|
-
children: /* @__PURE__ */
|
|
10489
|
+
children: /* @__PURE__ */ jsx101("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" })
|
|
10379
10490
|
}
|
|
10380
10491
|
)
|
|
10381
10492
|
}
|
|
10382
10493
|
);
|
|
10383
|
-
var CustomPaper = (props) => /* @__PURE__ */
|
|
10494
|
+
var CustomPaper = (props) => /* @__PURE__ */ jsxs64(Paper2, { elevation: 8, ...props, children: [
|
|
10384
10495
|
props.children,
|
|
10385
|
-
/* @__PURE__ */
|
|
10496
|
+
/* @__PURE__ */ jsx101(GoogleMapsAttribution, {})
|
|
10386
10497
|
] });
|
|
10387
10498
|
var GooglePlacesAutocomplete = ({
|
|
10388
10499
|
// Autocomplete options
|
|
@@ -10464,10 +10575,10 @@ var GooglePlacesAutocomplete = ({
|
|
|
10464
10575
|
if (parts.length === 0) {
|
|
10465
10576
|
parts.push({ text: mainText, highlight: false });
|
|
10466
10577
|
}
|
|
10467
|
-
return /* @__PURE__ */
|
|
10468
|
-
/* @__PURE__ */
|
|
10469
|
-
/* @__PURE__ */
|
|
10470
|
-
parts.map((part, index) => /* @__PURE__ */
|
|
10578
|
+
return /* @__PURE__ */ jsx101("li", { ...optionProps, children: /* @__PURE__ */ jsxs64(Grid, { container: true, sx: { alignItems: "center" }, children: [
|
|
10579
|
+
/* @__PURE__ */ jsx101(Grid, { sx: { display: "flex", width: 44 }, children: /* @__PURE__ */ jsx101(LocationIcon, { sx: { color: "text.secondary", width: 20, height: 20 } }) }),
|
|
10580
|
+
/* @__PURE__ */ jsxs64(Grid, { sx: { width: "calc(100% - 44px)", wordWrap: "break-word" }, children: [
|
|
10581
|
+
parts.map((part, index) => /* @__PURE__ */ jsx101(
|
|
10471
10582
|
Box24,
|
|
10472
10583
|
{
|
|
10473
10584
|
component: "span",
|
|
@@ -10478,11 +10589,11 @@ var GooglePlacesAutocomplete = ({
|
|
|
10478
10589
|
},
|
|
10479
10590
|
index
|
|
10480
10591
|
)),
|
|
10481
|
-
option.structured_formatting.secondary_text && /* @__PURE__ */
|
|
10592
|
+
option.structured_formatting.secondary_text && /* @__PURE__ */ jsx101(Typography13, { variant: "body2", sx: { color: "text.secondary" }, children: option.structured_formatting.secondary_text })
|
|
10482
10593
|
] })
|
|
10483
10594
|
] }) }, key);
|
|
10484
10595
|
};
|
|
10485
|
-
return /* @__PURE__ */
|
|
10596
|
+
return /* @__PURE__ */ jsx101(
|
|
10486
10597
|
Autocomplete2,
|
|
10487
10598
|
{
|
|
10488
10599
|
getOptionLabel: (option) => typeof option === "string" ? option : option.description,
|
|
@@ -10502,7 +10613,7 @@ var GooglePlacesAutocomplete = ({
|
|
|
10502
10613
|
paper: CustomPaper
|
|
10503
10614
|
},
|
|
10504
10615
|
renderOption,
|
|
10505
|
-
renderInput: (params) => /* @__PURE__ */
|
|
10616
|
+
renderInput: (params) => /* @__PURE__ */ jsx101(
|
|
10506
10617
|
TextField7,
|
|
10507
10618
|
{
|
|
10508
10619
|
...params,
|
|
@@ -10514,8 +10625,8 @@ var GooglePlacesAutocomplete = ({
|
|
|
10514
10625
|
slotProps: {
|
|
10515
10626
|
input: {
|
|
10516
10627
|
...params.InputProps,
|
|
10517
|
-
endAdornment: /* @__PURE__ */
|
|
10518
|
-
loading && /* @__PURE__ */
|
|
10628
|
+
endAdornment: /* @__PURE__ */ jsxs64(Fragment4, { children: [
|
|
10629
|
+
loading && /* @__PURE__ */ jsx101(CircularProgress2, { color: "inherit", size: 20 }),
|
|
10519
10630
|
params.InputProps.endAdornment
|
|
10520
10631
|
] })
|
|
10521
10632
|
}
|
|
@@ -10529,7 +10640,7 @@ var GooglePlacesAutocomplete = ({
|
|
|
10529
10640
|
};
|
|
10530
10641
|
|
|
10531
10642
|
// src/components/HookForm/RHFGooglePlacesAutocomplete.tsx
|
|
10532
|
-
import { jsx as
|
|
10643
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
10533
10644
|
var RHFGooglePlacesAutocomplete = ({
|
|
10534
10645
|
name,
|
|
10535
10646
|
helperText,
|
|
@@ -10539,10 +10650,10 @@ var RHFGooglePlacesAutocomplete = ({
|
|
|
10539
10650
|
fetchPlaceDetails,
|
|
10540
10651
|
...other
|
|
10541
10652
|
}) => {
|
|
10542
|
-
const { control, setValue: setFormValue } =
|
|
10653
|
+
const { control, setValue: setFormValue } = useFormContext11();
|
|
10543
10654
|
const shouldFetchDetails = valueType === "details" || fetchPlaceDetails;
|
|
10544
|
-
return /* @__PURE__ */
|
|
10545
|
-
|
|
10655
|
+
return /* @__PURE__ */ jsx102(
|
|
10656
|
+
Controller11,
|
|
10546
10657
|
{
|
|
10547
10658
|
name,
|
|
10548
10659
|
control,
|
|
@@ -10609,7 +10720,7 @@ var RHFGooglePlacesAutocomplete = ({
|
|
|
10609
10720
|
setFormValue(name, details, { shouldValidate: true });
|
|
10610
10721
|
}
|
|
10611
10722
|
};
|
|
10612
|
-
return /* @__PURE__ */
|
|
10723
|
+
return /* @__PURE__ */ jsx102(
|
|
10613
10724
|
GooglePlacesAutocomplete,
|
|
10614
10725
|
{
|
|
10615
10726
|
value: getDisplayValue(),
|
|
@@ -10629,7 +10740,7 @@ var RHFGooglePlacesAutocomplete = ({
|
|
|
10629
10740
|
|
|
10630
10741
|
// src/components/HookForm/RHFDatePicker.tsx
|
|
10631
10742
|
import { memo, useState as useState19, useEffect as useEffect8 } from "react";
|
|
10632
|
-
import { Controller as
|
|
10743
|
+
import { Controller as Controller12, useFormContext as useFormContext12 } from "react-hook-form";
|
|
10633
10744
|
import TextField8 from "@mui/material/TextField";
|
|
10634
10745
|
import { LocalizationProvider as LocalizationProvider2 } from "@mui/x-date-pickers";
|
|
10635
10746
|
import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
|
|
@@ -10642,7 +10753,7 @@ import {
|
|
|
10642
10753
|
import {
|
|
10643
10754
|
DateTimePicker as MuiDateTimePicker
|
|
10644
10755
|
} from "@mui/x-date-pickers/DateTimePicker";
|
|
10645
|
-
import { jsx as
|
|
10756
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
10646
10757
|
var RHFDatePickerComponent = ({
|
|
10647
10758
|
name,
|
|
10648
10759
|
slotProps,
|
|
@@ -10651,7 +10762,7 @@ var RHFDatePickerComponent = ({
|
|
|
10651
10762
|
format: format4 = "MMM d, yyyy",
|
|
10652
10763
|
...other
|
|
10653
10764
|
}) => {
|
|
10654
|
-
const { control } =
|
|
10765
|
+
const { control } = useFormContext12();
|
|
10655
10766
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10656
10767
|
const [cleared, setCleared] = useState19(false);
|
|
10657
10768
|
useEffect8(() => {
|
|
@@ -10662,12 +10773,12 @@ var RHFDatePickerComponent = ({
|
|
|
10662
10773
|
return () => {
|
|
10663
10774
|
};
|
|
10664
10775
|
}, [cleared]);
|
|
10665
|
-
return /* @__PURE__ */
|
|
10666
|
-
|
|
10776
|
+
return /* @__PURE__ */ jsx103(
|
|
10777
|
+
Controller12,
|
|
10667
10778
|
{
|
|
10668
10779
|
name,
|
|
10669
10780
|
control,
|
|
10670
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10781
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10671
10782
|
MuiDatePicker,
|
|
10672
10783
|
{
|
|
10673
10784
|
...field,
|
|
@@ -10708,7 +10819,7 @@ var RHFTimePickerComponent = ({
|
|
|
10708
10819
|
format: format4 = "h:mma",
|
|
10709
10820
|
...other
|
|
10710
10821
|
}) => {
|
|
10711
|
-
const { control } =
|
|
10822
|
+
const { control } = useFormContext12();
|
|
10712
10823
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10713
10824
|
const [cleared, setCleared] = useState19(false);
|
|
10714
10825
|
useEffect8(() => {
|
|
@@ -10719,12 +10830,12 @@ var RHFTimePickerComponent = ({
|
|
|
10719
10830
|
return () => {
|
|
10720
10831
|
};
|
|
10721
10832
|
}, [cleared]);
|
|
10722
|
-
return /* @__PURE__ */
|
|
10723
|
-
|
|
10833
|
+
return /* @__PURE__ */ jsx103(
|
|
10834
|
+
Controller12,
|
|
10724
10835
|
{
|
|
10725
10836
|
name,
|
|
10726
10837
|
control,
|
|
10727
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10838
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10728
10839
|
MuiTimePicker,
|
|
10729
10840
|
{
|
|
10730
10841
|
...field,
|
|
@@ -10765,7 +10876,7 @@ var RHFDateTimePickerComponent = ({
|
|
|
10765
10876
|
format: format4 = "MMM d, yyyy h:mma",
|
|
10766
10877
|
...other
|
|
10767
10878
|
}) => {
|
|
10768
|
-
const { control } =
|
|
10879
|
+
const { control } = useFormContext12();
|
|
10769
10880
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10770
10881
|
const [cleared, setCleared] = useState19(false);
|
|
10771
10882
|
useEffect8(() => {
|
|
@@ -10776,12 +10887,12 @@ var RHFDateTimePickerComponent = ({
|
|
|
10776
10887
|
return () => {
|
|
10777
10888
|
};
|
|
10778
10889
|
}, [cleared]);
|
|
10779
|
-
return /* @__PURE__ */
|
|
10780
|
-
|
|
10890
|
+
return /* @__PURE__ */ jsx103(
|
|
10891
|
+
Controller12,
|
|
10781
10892
|
{
|
|
10782
10893
|
name,
|
|
10783
10894
|
control,
|
|
10784
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10895
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10785
10896
|
MuiDateTimePicker,
|
|
10786
10897
|
{
|
|
10787
10898
|
...field,
|
|
@@ -10824,20 +10935,21 @@ var Field = {
|
|
|
10824
10935
|
Text: RHFTextField,
|
|
10825
10936
|
Radio: RHFRadioGroup,
|
|
10826
10937
|
Checkbox: RHFCheckbox,
|
|
10827
|
-
Autocomplete: RHFAutocomplete,
|
|
10828
|
-
MultiCheckbox: RHFMultiCheckbox,
|
|
10829
10938
|
Date: RHFDatePicker,
|
|
10830
10939
|
Time: RHFTimePicker,
|
|
10831
10940
|
DateTime: RHFDateTimePicker,
|
|
10832
10941
|
DateRange: RHFDateRangePicker,
|
|
10942
|
+
Autocomplete: RHFAutocomplete,
|
|
10943
|
+
ToggleButton: RHFToggleButton,
|
|
10944
|
+
MultiCheckbox: RHFMultiCheckbox,
|
|
10833
10945
|
GooglePlacesAutocomplete: RHFGooglePlacesAutocomplete
|
|
10834
10946
|
};
|
|
10835
10947
|
|
|
10836
10948
|
// src/components/FormLabel/index.tsx
|
|
10837
10949
|
import Tooltip from "@mui/material/Tooltip";
|
|
10838
10950
|
import Typography14 from "@mui/material/Typography";
|
|
10839
|
-
import
|
|
10840
|
-
import { jsx as
|
|
10951
|
+
import FormLabel5 from "@mui/material/FormLabel";
|
|
10952
|
+
import { jsx as jsx104, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
10841
10953
|
var CustomFormLabel = ({
|
|
10842
10954
|
label,
|
|
10843
10955
|
tooltip: tooltip2,
|
|
@@ -10845,26 +10957,26 @@ var CustomFormLabel = ({
|
|
|
10845
10957
|
optional,
|
|
10846
10958
|
sx,
|
|
10847
10959
|
...rest
|
|
10848
|
-
}) => /* @__PURE__ */
|
|
10960
|
+
}) => /* @__PURE__ */ jsxs65(FormLabel5, { sx: { mb: 0.5, display: "flex", alignItems: "center", gap: 0.5, ...sx }, ...rest, children: [
|
|
10849
10961
|
label,
|
|
10850
|
-
optional && /* @__PURE__ */
|
|
10851
|
-
tooltip2 && /* @__PURE__ */
|
|
10962
|
+
optional && /* @__PURE__ */ jsx104(Typography14, { component: "span", variant: "caption", color: "text.secondary", children: "(Optional)" }),
|
|
10963
|
+
tooltip2 && /* @__PURE__ */ jsx104(Tooltip, { placement: "right", title: tooltip2, children: /* @__PURE__ */ jsx104("span", { style: { display: "inline-flex" }, children: icon2 ?? /* @__PURE__ */ jsx104(Icon, { icon: "InfoCircle", sx: { width: 16, height: 16, color: "icons.black" } }) }) })
|
|
10852
10964
|
] });
|
|
10853
10965
|
|
|
10854
10966
|
// src/components/CopyButton/index.tsx
|
|
10855
10967
|
import Tooltip2 from "@mui/material/Tooltip";
|
|
10856
10968
|
import IconButton6 from "@mui/material/IconButton";
|
|
10857
|
-
import { jsx as
|
|
10969
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
10858
10970
|
var CopyButton = ({ text: text2, size = "small" }) => {
|
|
10859
10971
|
const { copy, isCopied } = useCopyToClipboard();
|
|
10860
|
-
return /* @__PURE__ */
|
|
10972
|
+
return /* @__PURE__ */ jsx105(Tooltip2, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ jsx105(
|
|
10861
10973
|
IconButton6,
|
|
10862
10974
|
{
|
|
10863
10975
|
size,
|
|
10864
10976
|
onClick: () => copy(text2),
|
|
10865
10977
|
"aria-label": "copy token",
|
|
10866
10978
|
sx: { color: "icon.black" },
|
|
10867
|
-
children: /* @__PURE__ */
|
|
10979
|
+
children: /* @__PURE__ */ jsx105(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
|
|
10868
10980
|
}
|
|
10869
10981
|
) });
|
|
10870
10982
|
};
|
|
@@ -10873,9 +10985,9 @@ var CopyButton = ({ text: text2, size = "small" }) => {
|
|
|
10873
10985
|
import Portal2 from "@mui/material/Portal";
|
|
10874
10986
|
import Box25 from "@mui/material/Box";
|
|
10875
10987
|
import LinearProgress from "@mui/material/LinearProgress";
|
|
10876
|
-
import { jsx as
|
|
10988
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10877
10989
|
var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
10878
|
-
const content = /* @__PURE__ */
|
|
10990
|
+
const content = /* @__PURE__ */ jsx106(
|
|
10879
10991
|
Box25,
|
|
10880
10992
|
{
|
|
10881
10993
|
sx: {
|
|
@@ -10889,16 +11001,16 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
|
10889
11001
|
...sx
|
|
10890
11002
|
},
|
|
10891
11003
|
...rest,
|
|
10892
|
-
children: /* @__PURE__ */
|
|
11004
|
+
children: /* @__PURE__ */ jsx106(LinearProgress, { color: "primary", sx: { width: 1, maxWidth: 360 } })
|
|
10893
11005
|
}
|
|
10894
11006
|
);
|
|
10895
11007
|
if (portal) {
|
|
10896
|
-
return /* @__PURE__ */
|
|
11008
|
+
return /* @__PURE__ */ jsx106(Portal2, { children: content });
|
|
10897
11009
|
}
|
|
10898
11010
|
return content;
|
|
10899
11011
|
};
|
|
10900
11012
|
var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
10901
|
-
const content = /* @__PURE__ */
|
|
11013
|
+
const content = /* @__PURE__ */ jsx106(
|
|
10902
11014
|
Box25,
|
|
10903
11015
|
{
|
|
10904
11016
|
sx: {
|
|
@@ -10915,17 +11027,17 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
|
10915
11027
|
...sx
|
|
10916
11028
|
},
|
|
10917
11029
|
...rest,
|
|
10918
|
-
children: /* @__PURE__ */
|
|
11030
|
+
children: /* @__PURE__ */ jsx106(AnimatedLogo, {})
|
|
10919
11031
|
}
|
|
10920
11032
|
);
|
|
10921
11033
|
if (portal) {
|
|
10922
|
-
return /* @__PURE__ */
|
|
11034
|
+
return /* @__PURE__ */ jsx106(Portal2, { children: content });
|
|
10923
11035
|
}
|
|
10924
11036
|
return content;
|
|
10925
11037
|
};
|
|
10926
11038
|
|
|
10927
11039
|
// src/theme/core/components/mui-x-data-grid.tsx
|
|
10928
|
-
import { jsx as
|
|
11040
|
+
import { jsx as jsx107, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
10929
11041
|
var MuiDataGrid = {
|
|
10930
11042
|
/** **************************************
|
|
10931
11043
|
* DEFAULT PROPS
|
|
@@ -10933,9 +11045,9 @@ var MuiDataGrid = {
|
|
|
10933
11045
|
defaultProps: {
|
|
10934
11046
|
slots: {
|
|
10935
11047
|
/* Column */
|
|
10936
|
-
columnSortedAscendingIcon: (props) => /* @__PURE__ */
|
|
10937
|
-
columnSortedDescendingIcon: (props) => /* @__PURE__ */
|
|
10938
|
-
columnUnsortedIcon: (props) => /* @__PURE__ */
|
|
11048
|
+
columnSortedAscendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowUpIcon, { sx: { color: "text.primary" }, ...props }),
|
|
11049
|
+
columnSortedDescendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowDownIcon, { sx: { color: "text.primary" }, ...props }),
|
|
11050
|
+
columnUnsortedIcon: (props) => /* @__PURE__ */ jsx107(
|
|
10939
11051
|
DataGridArrowUpIcon,
|
|
10940
11052
|
{
|
|
10941
11053
|
fontSize: props.fontSize,
|
|
@@ -10943,28 +11055,28 @@ var MuiDataGrid = {
|
|
|
10943
11055
|
sx: { color: "text.disabled" }
|
|
10944
11056
|
}
|
|
10945
11057
|
),
|
|
10946
|
-
columnMenuIcon: (props) => /* @__PURE__ */
|
|
10947
|
-
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */
|
|
10948
|
-
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */
|
|
10949
|
-
columnMenuFilterIcon: (props) => /* @__PURE__ */
|
|
10950
|
-
columnMenuHideIcon: (props) => /* @__PURE__ */
|
|
10951
|
-
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */
|
|
10952
|
-
columnSelectorIcon: (props) => /* @__PURE__ */
|
|
11058
|
+
columnMenuIcon: (props) => /* @__PURE__ */ jsx107(DataGridMoreIcon, { width: 20, ...props }),
|
|
11059
|
+
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowUpIcon, { ...props }),
|
|
11060
|
+
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowDownIcon, { ...props }),
|
|
11061
|
+
columnMenuFilterIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { ...props }),
|
|
11062
|
+
columnMenuHideIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeCloseIcon, { ...props }),
|
|
11063
|
+
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeIcon, { ...props }),
|
|
11064
|
+
columnSelectorIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeIcon, { ...props }),
|
|
10953
11065
|
/* Filter */
|
|
10954
|
-
filterPanelDeleteIcon: (props) => /* @__PURE__ */
|
|
10955
|
-
openFilterButtonIcon: (props) => /* @__PURE__ */
|
|
10956
|
-
columnFilteredIcon: (props) => /* @__PURE__ */
|
|
11066
|
+
filterPanelDeleteIcon: (props) => /* @__PURE__ */ jsx107(DataGridCloseIcon, { ...props }),
|
|
11067
|
+
openFilterButtonIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { ...props }),
|
|
11068
|
+
columnFilteredIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { sx: { width: 16, color: "text.primary" }, ...props }),
|
|
10957
11069
|
/* Density */
|
|
10958
|
-
densityCompactIcon: (props) => /* @__PURE__ */
|
|
10959
|
-
densityStandardIcon: (props) => /* @__PURE__ */
|
|
10960
|
-
densityComfortableIcon: (props) => /* @__PURE__ */
|
|
11070
|
+
densityCompactIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityCompactIcon, { ...props }),
|
|
11071
|
+
densityStandardIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityStandardIcon, { ...props }),
|
|
11072
|
+
densityComfortableIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityComfortableIcon, { ...props }),
|
|
10961
11073
|
/* Export */
|
|
10962
|
-
exportIcon: (props) => /* @__PURE__ */
|
|
11074
|
+
exportIcon: (props) => /* @__PURE__ */ jsx107(DataGridExportIcon, { ...props }),
|
|
10963
11075
|
/* Quick Filter */
|
|
10964
|
-
quickFilterIcon: (props) => /* @__PURE__ */
|
|
10965
|
-
quickFilterClearIcon: (props) => /* @__PURE__ */
|
|
11076
|
+
quickFilterIcon: (props) => /* @__PURE__ */ jsx107(DataGridSearchIcon, { sx: { width: 24, height: 24, color: "text.secondary" }, ...props }),
|
|
11077
|
+
quickFilterClearIcon: (props) => /* @__PURE__ */ jsx107(DataGridCloseIcon, { ...props }),
|
|
10966
11078
|
/* Actions Column */
|
|
10967
|
-
moreActionsIcon: (props) => /* @__PURE__ */
|
|
11079
|
+
moreActionsIcon: (props) => /* @__PURE__ */ jsx107(Icon, { icon: "MoreHorizontal", sx: { width: 20, height: 20 }, ...props })
|
|
10968
11080
|
},
|
|
10969
11081
|
slotProps: {
|
|
10970
11082
|
basePopper: { placement: "bottom-end" },
|
|
@@ -11141,15 +11253,15 @@ var MuiDataGrid = {
|
|
|
11141
11253
|
}
|
|
11142
11254
|
};
|
|
11143
11255
|
var dataGrid = { MuiDataGrid };
|
|
11144
|
-
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */
|
|
11145
|
-
/* @__PURE__ */
|
|
11256
|
+
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11257
|
+
/* @__PURE__ */ jsx107(
|
|
11146
11258
|
"path",
|
|
11147
11259
|
{
|
|
11148
11260
|
fill: "currentColor",
|
|
11149
11261
|
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"
|
|
11150
11262
|
}
|
|
11151
11263
|
),
|
|
11152
|
-
/* @__PURE__ */
|
|
11264
|
+
/* @__PURE__ */ jsx107(
|
|
11153
11265
|
"path",
|
|
11154
11266
|
{
|
|
11155
11267
|
fill: "currentColor",
|
|
@@ -11158,15 +11270,15 @@ var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { s
|
|
|
11158
11270
|
}
|
|
11159
11271
|
)
|
|
11160
11272
|
] });
|
|
11161
|
-
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */
|
|
11162
|
-
/* @__PURE__ */
|
|
11273
|
+
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11274
|
+
/* @__PURE__ */ jsx107(
|
|
11163
11275
|
"path",
|
|
11164
11276
|
{
|
|
11165
11277
|
fill: "currentColor",
|
|
11166
11278
|
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"
|
|
11167
11279
|
}
|
|
11168
11280
|
),
|
|
11169
|
-
/* @__PURE__ */
|
|
11281
|
+
/* @__PURE__ */ jsx107(
|
|
11170
11282
|
"path",
|
|
11171
11283
|
{
|
|
11172
11284
|
fill: "currentColor",
|
|
@@ -11175,15 +11287,15 @@ var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, {
|
|
|
11175
11287
|
}
|
|
11176
11288
|
)
|
|
11177
11289
|
] });
|
|
11178
|
-
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */
|
|
11290
|
+
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11179
11291
|
"path",
|
|
11180
11292
|
{
|
|
11181
11293
|
fill: "currentColor",
|
|
11182
11294
|
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"
|
|
11183
11295
|
}
|
|
11184
11296
|
) });
|
|
11185
|
-
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */
|
|
11186
|
-
/* @__PURE__ */
|
|
11297
|
+
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11298
|
+
/* @__PURE__ */ jsx107(
|
|
11187
11299
|
"path",
|
|
11188
11300
|
{
|
|
11189
11301
|
fill: "currentColor",
|
|
@@ -11192,7 +11304,7 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx
|
|
|
11192
11304
|
clipRule: "evenodd"
|
|
11193
11305
|
}
|
|
11194
11306
|
),
|
|
11195
|
-
/* @__PURE__ */
|
|
11307
|
+
/* @__PURE__ */ jsx107(
|
|
11196
11308
|
"path",
|
|
11197
11309
|
{
|
|
11198
11310
|
fill: "currentColor",
|
|
@@ -11200,9 +11312,9 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx
|
|
|
11200
11312
|
}
|
|
11201
11313
|
)
|
|
11202
11314
|
] });
|
|
11203
|
-
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */
|
|
11204
|
-
/* @__PURE__ */
|
|
11205
|
-
/* @__PURE__ */
|
|
11315
|
+
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11316
|
+
/* @__PURE__ */ jsx107("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" }),
|
|
11317
|
+
/* @__PURE__ */ jsx107(
|
|
11206
11318
|
"path",
|
|
11207
11319
|
{
|
|
11208
11320
|
fill: "currentColor",
|
|
@@ -11212,7 +11324,7 @@ var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx: {
|
|
|
11212
11324
|
}
|
|
11213
11325
|
)
|
|
11214
11326
|
] });
|
|
11215
|
-
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
11327
|
+
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11216
11328
|
"path",
|
|
11217
11329
|
{
|
|
11218
11330
|
fill: "currentColor",
|
|
@@ -11221,23 +11333,23 @@ var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx106(SvgIcon3, {
|
|
|
11221
11333
|
clipRule: "evenodd"
|
|
11222
11334
|
}
|
|
11223
11335
|
) });
|
|
11224
|
-
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */
|
|
11336
|
+
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11225
11337
|
"path",
|
|
11226
11338
|
{
|
|
11227
11339
|
fill: "currentColor",
|
|
11228
11340
|
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"
|
|
11229
11341
|
}
|
|
11230
11342
|
) });
|
|
11231
|
-
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
11343
|
+
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11232
11344
|
"path",
|
|
11233
11345
|
{
|
|
11234
11346
|
fill: "currentColor",
|
|
11235
11347
|
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"
|
|
11236
11348
|
}
|
|
11237
11349
|
) });
|
|
11238
|
-
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */
|
|
11239
|
-
/* @__PURE__ */
|
|
11240
|
-
/* @__PURE__ */
|
|
11350
|
+
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", children: [
|
|
11351
|
+
/* @__PURE__ */ jsx107("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" }),
|
|
11352
|
+
/* @__PURE__ */ jsx107(
|
|
11241
11353
|
"path",
|
|
11242
11354
|
{
|
|
11243
11355
|
fill: "currentColor",
|
|
@@ -11245,16 +11357,16 @@ var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx106(SvgIcon3, { sx:
|
|
|
11245
11357
|
}
|
|
11246
11358
|
)
|
|
11247
11359
|
] }) });
|
|
11248
|
-
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */
|
|
11360
|
+
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11249
11361
|
"path",
|
|
11250
11362
|
{
|
|
11251
11363
|
fill: "currentColor",
|
|
11252
11364
|
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"
|
|
11253
11365
|
}
|
|
11254
11366
|
) });
|
|
11255
|
-
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */
|
|
11256
|
-
/* @__PURE__ */
|
|
11257
|
-
/* @__PURE__ */
|
|
11367
|
+
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", fillRule: "evenodd", children: [
|
|
11368
|
+
/* @__PURE__ */ jsx107("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" }),
|
|
11369
|
+
/* @__PURE__ */ jsx107(
|
|
11258
11370
|
"path",
|
|
11259
11371
|
{
|
|
11260
11372
|
fill: "currentColor",
|
|
@@ -11262,9 +11374,9 @@ var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx106(Sv
|
|
|
11262
11374
|
}
|
|
11263
11375
|
)
|
|
11264
11376
|
] }) });
|
|
11265
|
-
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */
|
|
11266
|
-
/* @__PURE__ */
|
|
11267
|
-
/* @__PURE__ */
|
|
11377
|
+
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", children: [
|
|
11378
|
+
/* @__PURE__ */ jsx107("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" }),
|
|
11379
|
+
/* @__PURE__ */ jsx107(
|
|
11268
11380
|
"path",
|
|
11269
11381
|
{
|
|
11270
11382
|
fill: "currentColor",
|
|
@@ -11425,13 +11537,13 @@ var buttonGroup = { MuiButtonGroup };
|
|
|
11425
11537
|
import { chipClasses as chipClasses2 } from "@mui/material/Chip";
|
|
11426
11538
|
import { inputBaseClasses as inputBaseClasses4 } from "@mui/material/InputBase";
|
|
11427
11539
|
import { autocompleteClasses as autocompleteClasses3 } from "@mui/material/Autocomplete";
|
|
11428
|
-
import { jsx as
|
|
11540
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
11429
11541
|
var MuiAutocomplete = {
|
|
11430
11542
|
/** **************************************
|
|
11431
11543
|
* DEFAULT PROPS
|
|
11432
11544
|
*************************************** */
|
|
11433
11545
|
defaultProps: {
|
|
11434
|
-
popupIcon: /* @__PURE__ */
|
|
11546
|
+
popupIcon: /* @__PURE__ */ jsx108(Icon, { icon: "NavArrowDown" }),
|
|
11435
11547
|
forcePopupIcon: true
|
|
11436
11548
|
},
|
|
11437
11549
|
/** **************************************
|
|
@@ -11545,8 +11657,8 @@ var MuiAutocomplete = {
|
|
|
11545
11657
|
var autocomplete = { MuiAutocomplete };
|
|
11546
11658
|
|
|
11547
11659
|
// src/theme/core/components/toggle-button.ts
|
|
11548
|
-
import { toggleButtonGroupClasses } from "@mui/material/ToggleButtonGroup";
|
|
11549
|
-
import { toggleButtonClasses } from "@mui/material/ToggleButton";
|
|
11660
|
+
import { toggleButtonGroupClasses as toggleButtonGroupClasses2 } from "@mui/material/ToggleButtonGroup";
|
|
11661
|
+
import { toggleButtonClasses as toggleButtonClasses2 } from "@mui/material/ToggleButton";
|
|
11550
11662
|
var COLORS9 = ["primary", "secondary", "info", "success", "warning", "error"];
|
|
11551
11663
|
function styleColors6(ownerState, styles) {
|
|
11552
11664
|
const outputStyle = COLORS9.reduce((acc, color) => {
|
|
@@ -11575,7 +11687,7 @@ var MuiToggleButton = {
|
|
|
11575
11687
|
}
|
|
11576
11688
|
})),
|
|
11577
11689
|
selected: {
|
|
11578
|
-
[`&.${
|
|
11690
|
+
[`&.${toggleButtonClasses2.selected}`]: {
|
|
11579
11691
|
color: theme.vars.palette.common.white,
|
|
11580
11692
|
backgroundColor: theme.vars.palette.primary.light,
|
|
11581
11693
|
borderColor: "currentColor",
|
|
@@ -11587,7 +11699,7 @@ var MuiToggleButton = {
|
|
|
11587
11699
|
},
|
|
11588
11700
|
disabled: {
|
|
11589
11701
|
...ownerState.disabled && {
|
|
11590
|
-
[`&.${
|
|
11702
|
+
[`&.${toggleButtonClasses2.selected}`]: {
|
|
11591
11703
|
color: theme.vars.palette.action.disabled,
|
|
11592
11704
|
backgroundColor: theme.vars.palette.action.selected,
|
|
11593
11705
|
borderColor: theme.vars.palette.action.disabledBackground
|
|
@@ -11615,21 +11727,21 @@ var MuiToggleButtonGroup = {
|
|
|
11615
11727
|
borderRadius: Number(theme.shape.borderRadius) * 2
|
|
11616
11728
|
}),
|
|
11617
11729
|
grouped: ({ theme }) => ({
|
|
11618
|
-
[`&.${
|
|
11730
|
+
[`&.${toggleButtonClasses2.root}`]: {
|
|
11619
11731
|
padding: theme.spacing(1, 2),
|
|
11620
11732
|
border: "none"
|
|
11621
11733
|
},
|
|
11622
|
-
[`&.${
|
|
11734
|
+
[`&.${toggleButtonGroupClasses2.firstButton}`]: {
|
|
11623
11735
|
border: "none",
|
|
11624
11736
|
borderTopLeftRadius: "inherit",
|
|
11625
11737
|
borderBottomLeftRadius: "inherit"
|
|
11626
11738
|
},
|
|
11627
|
-
[`&.${
|
|
11739
|
+
[`&.${toggleButtonGroupClasses2.lastButton}`]: {
|
|
11628
11740
|
border: "none",
|
|
11629
11741
|
borderTopRightRadius: "inherit",
|
|
11630
11742
|
borderBottomRightRadius: "inherit"
|
|
11631
11743
|
},
|
|
11632
|
-
[`&.${
|
|
11744
|
+
[`&.${toggleButtonClasses2.selected}`]: { boxShadow: "none" }
|
|
11633
11745
|
})
|
|
11634
11746
|
}
|
|
11635
11747
|
};
|
|
@@ -11641,7 +11753,7 @@ import Typography15 from "@mui/material/Typography";
|
|
|
11641
11753
|
import { buttonClasses as buttonClasses3 } from "@mui/material/Button";
|
|
11642
11754
|
import { styled as styled3 } from "@mui/material/styles";
|
|
11643
11755
|
import { dialogActionsClasses } from "@mui/material/DialogActions";
|
|
11644
|
-
import { jsx as
|
|
11756
|
+
import { jsx as jsx109, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11645
11757
|
var CustomCalendarHeaderRoot = styled3("div")(({ theme }) => ({
|
|
11646
11758
|
display: "flex",
|
|
11647
11759
|
justifyContent: "space-between",
|
|
@@ -11679,9 +11791,9 @@ function CustomCalendarHeader(props) {
|
|
|
11679
11791
|
onViewChange("year");
|
|
11680
11792
|
}
|
|
11681
11793
|
};
|
|
11682
|
-
return /* @__PURE__ */
|
|
11683
|
-
/* @__PURE__ */
|
|
11684
|
-
/* @__PURE__ */
|
|
11794
|
+
return /* @__PURE__ */ jsxs67(CustomCalendarHeaderRoot, { children: [
|
|
11795
|
+
/* @__PURE__ */ jsx109(CustomIconButton, { onClick: selectPreviousMonth, title: "Previous month", size: "small", children: /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowLeft", width: 16 }) }),
|
|
11796
|
+
/* @__PURE__ */ jsx109(
|
|
11685
11797
|
Typography15,
|
|
11686
11798
|
{
|
|
11687
11799
|
variant: "subtitle1",
|
|
@@ -11696,7 +11808,7 @@ function CustomCalendarHeader(props) {
|
|
|
11696
11808
|
children: monthLabel
|
|
11697
11809
|
}
|
|
11698
11810
|
),
|
|
11699
|
-
/* @__PURE__ */
|
|
11811
|
+
/* @__PURE__ */ jsx109(CustomIconButton, { onClick: selectNextMonth, title: "Next month", size: "small", children: /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowRight", width: 16 }) })
|
|
11700
11812
|
] });
|
|
11701
11813
|
}
|
|
11702
11814
|
var localeText = {
|
|
@@ -11704,13 +11816,13 @@ var localeText = {
|
|
|
11704
11816
|
};
|
|
11705
11817
|
var defaultProps = {
|
|
11706
11818
|
date: {
|
|
11707
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
11819
|
+
openPickerIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "Calendar", sx: { width: 20, height: 20 } }),
|
|
11708
11820
|
calendarHeader: CustomCalendarHeader
|
|
11709
11821
|
},
|
|
11710
11822
|
time: {
|
|
11711
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
11712
|
-
rightArrowIcon: () => /* @__PURE__ */
|
|
11713
|
-
switchViewIcon: () => /* @__PURE__ */
|
|
11823
|
+
openPickerIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "Clock", sx: { width: 20, height: 20 } }),
|
|
11824
|
+
rightArrowIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowRight" }),
|
|
11825
|
+
switchViewIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowDownSolid" })
|
|
11714
11826
|
}
|
|
11715
11827
|
};
|
|
11716
11828
|
var dateViews = ["year", "month", "day"];
|
|
@@ -12141,18 +12253,18 @@ import "@fontsource/geist/500.css";
|
|
|
12141
12253
|
import "@fontsource/geist/600.css";
|
|
12142
12254
|
import "@fontsource/geist/700.css";
|
|
12143
12255
|
import "./satoshi-4X3TX4PE.css";
|
|
12144
|
-
import { jsx as
|
|
12256
|
+
import { jsx as jsx110, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
12145
12257
|
var ThemeProvider = ({ children }) => {
|
|
12146
12258
|
const settings = useSettings();
|
|
12147
12259
|
const theme = createTheme(settings);
|
|
12148
|
-
return /* @__PURE__ */
|
|
12260
|
+
return /* @__PURE__ */ jsxs68(
|
|
12149
12261
|
MuiThemeProvider,
|
|
12150
12262
|
{
|
|
12151
12263
|
theme,
|
|
12152
12264
|
defaultMode: schemeConfig.defaultMode,
|
|
12153
12265
|
modeStorageKey: schemeConfig.modeStorageKey,
|
|
12154
12266
|
children: [
|
|
12155
|
-
/* @__PURE__ */
|
|
12267
|
+
/* @__PURE__ */ jsx110(CssBaseline, {}),
|
|
12156
12268
|
children
|
|
12157
12269
|
]
|
|
12158
12270
|
}
|
|
@@ -12233,6 +12345,7 @@ export {
|
|
|
12233
12345
|
RHFSwitch,
|
|
12234
12346
|
RHFTextField,
|
|
12235
12347
|
RHFTimePicker,
|
|
12348
|
+
RHFToggleButton,
|
|
12236
12349
|
RHFUpload,
|
|
12237
12350
|
RadioDefault,
|
|
12238
12351
|
RadioSelect,
|