@zydon/common 2.8.33 → 2.8.35
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/chunk-2W54CJ6E.js +0 -1
- package/dist/{chunk-TS23ND2I.js → chunk-2XYLNHQV.js} +2 -3
- package/dist/chunk-373WGZZL.js +0 -1
- package/dist/chunk-3C7RDPW6.js +0 -1
- package/dist/chunk-3TGBDRKG.js +0 -1
- package/dist/chunk-44ZCB2RS.js +0 -1
- package/dist/chunk-4P2L7UJA.js +0 -1
- package/dist/chunk-57ZSTQXG.js +0 -1
- package/dist/chunk-5EKUS6HX.js +0 -1
- package/dist/chunk-5ORENZHV.js +0 -1
- package/dist/chunk-6U5LS7MP.js +0 -1
- package/dist/chunk-6ZSTKYGL.js +0 -1
- package/dist/chunk-7OV7UPWM.js +0 -1
- package/dist/chunk-A3QLGMSB.js +0 -1
- package/dist/chunk-AVPFUSEB.js +0 -1
- package/dist/chunk-B3RDL4QX.js +0 -1
- package/dist/chunk-BNBE2OMA.js +0 -1
- package/dist/chunk-BX2DSNRV.js +0 -1
- package/dist/chunk-CFNATBO2.js +0 -1
- package/dist/chunk-CO2KQFUN.js +0 -1
- package/dist/{chunk-EDUNXVYV.js → chunk-CWRUW77O.js} +2 -3
- package/dist/chunk-CYWFK4OE.js +0 -1
- package/dist/chunk-E3R7W7GK.js +0 -1
- package/dist/chunk-E5ULJSWF.js +0 -1
- package/dist/chunk-ESFOFEVL.js +0 -1
- package/dist/chunk-ET3WPQIO.js +0 -1
- package/dist/chunk-ET6H3IRG.js +0 -1
- package/dist/chunk-F65ZXAGV.js +0 -1
- package/dist/chunk-F6H765KA.js +0 -1
- package/dist/chunk-FBN7HCBY.js +0 -1
- package/dist/chunk-FG2BVR7Y.js +0 -1
- package/dist/chunk-FPZ25CEJ.js +0 -1
- package/dist/chunk-FTYHXGXC.js +0 -1
- package/dist/chunk-GLRLKFPS.js +0 -1
- package/dist/chunk-GNNZB7DN.js +6 -0
- package/dist/chunk-GNNZB7DN.js.map +1 -0
- package/dist/chunk-GPFANUMT.js +0 -1
- package/dist/chunk-HBOBTNB5.js +0 -1
- package/dist/chunk-HELCCAF2.js +18 -0
- package/dist/chunk-HELCCAF2.js.map +1 -0
- package/dist/chunk-HSJS3HUW.js +0 -1
- package/dist/chunk-I4PPSW36.js +0 -1
- package/dist/chunk-IAOMC4C4.js +0 -1
- package/dist/chunk-ICEDOBLM.js +0 -1
- package/dist/chunk-IDFJFFIV.js +0 -1
- package/dist/chunk-IJZCVZ32.js +0 -1
- package/dist/chunk-IL3EAU5G.js +0 -1
- package/dist/chunk-IPPNUP2X.js +0 -1
- package/dist/chunk-JNDZPNQJ.js +0 -1
- package/dist/chunk-JW3LMT7N.js +0 -1
- package/dist/chunk-KGLU4CR2.js +0 -1
- package/dist/chunk-KKVRDMSE.js +0 -1
- package/dist/chunk-KYV74QIT.js +0 -1
- package/dist/chunk-LFHA3YUV.js +0 -1
- package/dist/chunk-LG2B5RFV.js +0 -1
- package/dist/{chunk-ZLLJ2NCY.js → chunk-LLIJZZMN.js} +3 -4
- package/dist/chunk-LQRRMVFN.js +0 -1
- package/dist/chunk-LRSF3YE6.js +0 -1
- package/dist/chunk-MC44LVZD.js +0 -1
- package/dist/chunk-MCRXKVSY.js +0 -1
- package/dist/chunk-MZN5X6GM.js +0 -1
- package/dist/chunk-N7IK5EUP.js +0 -1
- package/dist/chunk-NIQW2J3M.js +0 -1
- package/dist/chunk-O7SN6FIA.js +0 -1
- package/dist/chunk-OF6623HG.js +0 -1
- package/dist/chunk-OR7BKXIN.js +0 -1
- package/dist/chunk-POTVACYB.js +0 -1
- package/dist/chunk-QSHKTHGM.js +0 -1
- package/dist/chunk-RBTYTONM.js +0 -1
- package/dist/chunk-RFAAH7QG.js +0 -1
- package/dist/chunk-RP7PNTLJ.js +0 -1
- package/dist/chunk-RPO7AI5K.js +0 -1
- package/dist/chunk-RTC7H5E5.js +0 -1
- package/dist/chunk-RUABKHIV.js +0 -1
- package/dist/chunk-SVX7EWV4.js +0 -1
- package/dist/chunk-SY2RHBDJ.js +0 -1
- package/dist/chunk-T6UNWMMX.js +0 -1
- package/dist/chunk-TCZOZ4MN.js +0 -1
- package/dist/{chunk-EUQNIDDO.js → chunk-TGEDZBDY.js} +2 -3
- package/dist/{chunk-X53N7UR5.js → chunk-TLGUGGRI.js} +2 -3
- package/dist/chunk-TVKBRJHF.js +0 -1
- package/dist/chunk-U5YMUW4E.js +0 -1
- package/dist/chunk-UB3AKGVA.js +8 -0
- package/dist/chunk-UB3AKGVA.js.map +1 -0
- package/dist/chunk-UVPQR2Q2.js +0 -1
- package/dist/chunk-VITOOMKK.js +0 -1
- package/dist/chunk-VL4W63YA.js +0 -1
- package/dist/chunk-VR3K2Y2C.js +0 -1
- package/dist/chunk-W3CK33IH.js +0 -1
- package/dist/chunk-WRGRGZEM.js +0 -1
- package/dist/chunk-WUFEPE2G.js +0 -1
- package/dist/chunk-X24L6CUP.js +0 -1
- package/dist/chunk-X2NG6VDB.js +0 -1
- package/dist/chunk-X64QHBVQ.js +0 -1
- package/dist/chunk-XMVYDQSN.js +0 -1
- package/dist/chunk-XNKYJHNL.js +0 -1
- package/dist/chunk-YXRL4O4H.js +0 -1
- package/dist/components/ActionButton/index.js +0 -1
- package/dist/components/Actions/index.js +0 -1
- package/dist/components/Autocomplete/index.js +1 -2
- package/dist/components/AutocompleteDetailed/index.js +0 -1
- package/dist/components/Avatar/index.js +0 -1
- package/dist/components/AvatarButton/index.js +1 -2
- package/dist/components/BuilderLayout/index.js +0 -1
- package/dist/components/BuilderSidebar/index.js +0 -1
- package/dist/components/BulkEditModal/index.js +2 -3
- package/dist/components/CardBrand/index.js +0 -1
- package/dist/components/CardBrandText/index.js +0 -1
- package/dist/components/CardFlag/index.js +0 -1
- package/dist/components/CardWithHeader/index.js +0 -1
- package/dist/components/ColorPickerInput/index.js +0 -1
- package/dist/components/ColoredLabel/index.js +0 -1
- package/dist/components/Common/index.js +0 -1
- package/dist/components/Confirm/index.js +0 -1
- package/dist/components/CopyButton/index.js +0 -1
- package/dist/components/CustomAvatar/index.js +0 -1
- package/dist/components/CustomAvatarGroup/index.js +0 -1
- package/dist/components/DashedDivider/index.js +0 -1
- package/dist/components/DataCards/index.js +1 -2
- package/dist/components/DataGrid/index.js +0 -1
- package/dist/components/DataView/index.js +2 -3
- package/dist/components/DateCalendar/index.js +0 -1
- package/dist/components/DatePicker/index.js +0 -1
- package/dist/components/DateRangeCalendar/index.js +0 -1
- package/dist/components/DateRangePicker/index.js +0 -1
- package/dist/components/DateTimePicker/index.js +0 -1
- package/dist/components/Delayed/index.js +0 -1
- package/dist/components/DisplayMode/index.js +0 -1
- package/dist/components/DragButton/index.js +0 -1
- package/dist/components/DragContainer/index.js +0 -1
- package/dist/components/Drawer/index.js +1 -2
- package/dist/components/DrawerActions/index.js +0 -1
- package/dist/components/DynamicDataView/index.js +5 -6
- package/dist/components/EasyCrop/index.js +0 -1
- package/dist/components/EasyCropModal/index.js +2 -3
- package/dist/components/EmptyContent/index.js +0 -1
- package/dist/components/EmptyView/index.js +0 -1
- package/dist/components/Error/index.js +0 -1
- package/dist/components/ExpandableGroup/index.js +0 -1
- package/dist/components/FieldMentions/index.js +0 -1
- package/dist/components/FileUpload/index.js +4 -5
- package/dist/components/FixedProgressBar/index.js +0 -1
- package/dist/components/FrameSkeleton/index.js +3 -4
- package/dist/components/HelpButton/index.js +0 -1
- package/dist/components/Icon/index.js +0 -1
- package/dist/components/IconButton/index.js +0 -1
- package/dist/components/ImageCrop/index.js +0 -1
- package/dist/components/ImageCropModal/index.js +0 -1
- package/dist/components/Incrementer/index.js +0 -1
- package/dist/components/InfoCircle/index.js +0 -1
- package/dist/components/Label/index.js +0 -1
- package/dist/components/ListBundles/index.js +0 -1
- package/dist/components/LoadingScreen/index.js +0 -1
- package/dist/components/MaskedInput/index.js +0 -1
- package/dist/components/MenuItem/index.js +0 -1
- package/dist/components/MenuPopover/index.js +0 -1
- package/dist/components/Modal/index.js +0 -1
- package/dist/components/ModalActions/index.js +0 -1
- package/dist/components/MoreMenu/index.js +0 -1
- package/dist/components/NotFound/index.js +0 -1
- package/dist/components/NumberInput/index.js +0 -1
- package/dist/components/Page/index.js +0 -1
- package/dist/components/PageHeader/index.js +0 -1
- package/dist/components/Panel/index.js +0 -1
- package/dist/components/PasswordRules/index.js +0 -1
- package/dist/components/PopoverSelect/index.js +0 -1
- package/dist/components/Portal/index.js +0 -1
- package/dist/components/ResponsivePopover/index.js +0 -1
- package/dist/components/Result/index.js +0 -1
- package/dist/components/SavedChanges/index.js +0 -1
- package/dist/components/Scrollbar/index.js +0 -1
- package/dist/components/SearchInput/index.js +0 -1
- package/dist/components/SelectList/index.js +0 -1
- package/dist/components/SelectableCards/index.js +2 -3
- package/dist/components/SeoPreview/index.js +0 -1
- package/dist/components/SimpleCard/index.js +0 -1
- package/dist/components/Skeleton/index.js +0 -1
- package/dist/components/SmartText/index.js +0 -1
- package/dist/components/SplashScreen/index.js +0 -1
- package/dist/components/StateDisplay/index.js +0 -1
- package/dist/components/Steps/index.js +0 -1
- package/dist/components/StyledTab/index.js +0 -1
- package/dist/components/StyledTabs/index.js +0 -1
- package/dist/components/Summary/index.js +0 -1
- package/dist/components/SwapList/index.js +1 -2
- package/dist/components/TabPanel/index.js +0 -1
- package/dist/components/TextMaxLine/index.js +0 -1
- package/dist/components/TimePicker/index.js +0 -1
- package/dist/components/ToggleButtonGroup/index.js +0 -1
- package/dist/components/ToggleTheme/index.js +0 -1
- package/dist/components/Tooltip/index.js +0 -1
- package/dist/components/WebhookCard/index.js +0 -1
- package/dist/components/WhiteBox/index.js +0 -1
- package/dist/components/animate/index.js +0 -1
- package/dist/components/carousel/index.js +0 -1
- package/dist/components/form/Address/index.js +2 -3
- package/dist/components/form/Autocomplete/index.d.ts +1 -1
- package/dist/components/form/Autocomplete/index.js +2 -3
- package/dist/components/form/AutocompleteDetailed/index.js +0 -1
- package/dist/components/form/Checkbox/index.js +0 -1
- package/dist/components/form/Codes/index.js +0 -1
- package/dist/components/form/ColorPicker/index.js +0 -1
- package/dist/components/form/DateField/index.js +0 -1
- package/dist/components/form/DatePicker/index.js +0 -1
- package/dist/components/form/DateRangePicker/index.js +0 -1
- package/dist/components/form/DateTimePicker/index.js +0 -1
- package/dist/components/form/Field/index.js +0 -1
- package/dist/components/form/FileUpload/index.js +4 -5
- package/dist/components/form/Form/index.js +0 -1
- package/dist/components/form/Incrementer/index.js +0 -1
- package/dist/components/form/InputTags/index.js +0 -1
- package/dist/components/form/MaskedInput/index.js +0 -1
- package/dist/components/form/MultiCheckbox/index.js +0 -1
- package/dist/components/form/MultiChipField/index.js +0 -1
- package/dist/components/form/NumberInput/index.js +0 -1
- package/dist/components/form/Password/index.js +0 -1
- package/dist/components/form/RadioGroup/index.js +0 -1
- package/dist/components/form/SelectList/index.js +0 -1
- package/dist/components/form/SelectableCards/index.js +2 -3
- package/dist/components/form/Switch/index.js +0 -1
- package/dist/components/form/TimePicker/index.js +0 -1
- package/dist/components/form/Webhook/index.js +2 -3
- package/dist/components/lightbox/index.js +0 -1
- package/dist/components/table/index.js +0 -1
- package/dist/contexts/Messages/index.js +0 -1
- package/dist/contexts/PushNotifications/index.js +0 -1
- package/dist/hooks/useActiveElement.js +0 -1
- package/dist/hooks/useApiMessage.js +0 -1
- package/dist/hooks/useAutocomplete.js +1 -2
- package/dist/hooks/useAutocomplete.js.map +1 -1
- package/dist/hooks/useCollapseSidebarOnMount.js +2 -3
- package/dist/hooks/useCopyToClipboard.js +0 -1
- package/dist/hooks/useDatagrid.js +0 -1
- package/dist/hooks/useDebounceValue.js +1 -6
- package/dist/hooks/useDebounceValue.js.map +1 -1
- package/dist/hooks/useDeepCompareEffect.js +0 -1
- package/dist/hooks/useDynamicAutocomplete.d.ts +32 -0
- package/dist/hooks/useDynamicAutocomplete.js +8 -0
- package/dist/hooks/useDynamicAutocomplete.js.map +1 -0
- package/dist/hooks/useEventCallback.js +0 -1
- package/dist/hooks/useEventListener.js +0 -1
- package/dist/hooks/useIsMounting.js +0 -1
- package/dist/hooks/useIsVisible.js +0 -1
- package/dist/hooks/useIsomorphicLayoutEffect.js +0 -1
- package/dist/hooks/useLocalStorage.js +0 -1
- package/dist/hooks/useMount.js +0 -1
- package/dist/hooks/useOnClickOutside.js +0 -1
- package/dist/hooks/usePagination.js +0 -1
- package/dist/hooks/usePopover.js +0 -1
- package/dist/hooks/useResponsive.js +0 -1
- package/dist/hooks/useScreenSize.js +0 -1
- package/dist/hooks/useScrollOffSetTop.js +0 -1
- package/dist/hooks/useSnackbar.js +0 -1
- package/dist/hooks/useTabs.js +0 -1
- package/dist/hooks/useThemeToggle.js +0 -1
- package/dist/hooks/useToggle.js +0 -1
- package/dist/hooks/useUpload.js +0 -1
- package/dist/hooks/useUploadImage.js +0 -1
- package/dist/hooks/useWindowFocus.js +0 -1
- package/dist/index.js +0 -1
- package/dist/layouts/Admin/index.js +0 -1
- package/dist/locales/all-langs.js +0 -1
- package/dist/theme/core/index.js +0 -1
- package/dist/theme/settings-provider.js +0 -1
- package/dist/theme/styles/index.js +0 -1
- package/dist/theme/theme-provider.js +0 -1
- package/dist/theme/with-settings/index.js +0 -1
- package/dist/types/addressProps.js +0 -1
- package/dist/types/api.js +0 -1
- package/dist/types/autoComplete.d.ts +2 -1
- package/dist/types/autoComplete.js +0 -1
- package/dist/types/autoCompleteProps.js +0 -1
- package/dist/types/baseField.js +0 -1
- package/dist/types/cards.js +0 -1
- package/dist/types/consoleLog.js +0 -1
- package/dist/types/dataGridProps.js +0 -1
- package/dist/types/datagrid.js +0 -1
- package/dist/types/dateFieldProps.js +0 -1
- package/dist/types/datePickerProps.js +0 -1
- package/dist/types/dateRangePickerProps.js +0 -1
- package/dist/types/dateTimePickerProps.js +0 -1
- package/dist/types/entityMetadata.js +0 -1
- package/dist/types/export.js +0 -1
- package/dist/types/fieldMentions.js +0 -1
- package/dist/types/fieldProps.js +0 -1
- package/dist/types/files.js +0 -1
- package/dist/types/filter.js +0 -1
- package/dist/types/icon.js +0 -1
- package/dist/types/iconProps.js +0 -1
- package/dist/types/incrementerProps.js +0 -1
- package/dist/types/item.js +0 -1
- package/dist/types/messages.js +0 -1
- package/dist/types/multiCheckboxProps.js +0 -1
- package/dist/types/numberInputProps.js +0 -1
- package/dist/types/option.js +0 -1
- package/dist/types/pushNotifications.js +0 -1
- package/dist/types/radioGroupProps.js +0 -1
- package/dist/types/searchInputProps.js +0 -1
- package/dist/types/sectionProps.js +0 -1
- package/dist/types/selectList.js +0 -1
- package/dist/types/switchProps.js +0 -1
- package/dist/types/timePickerProps.js +0 -1
- package/dist/types/upload.js +0 -1
- package/dist/types/webhook.js +0 -1
- package/dist/utils/buildExportPayload.js +0 -1
- package/dist/utils/cards.js +0 -1
- package/dist/utils/color.js +0 -1
- package/dist/utils/compare.js +0 -1
- package/dist/utils/consoleLog.js +0 -1
- package/dist/utils/date.js +0 -1
- package/dist/utils/diacritics.js +0 -1
- package/dist/utils/dnd.js +0 -1
- package/dist/utils/execution.js +0 -1
- package/dist/utils/files.js +0 -1
- package/dist/utils/flagCard.js +0 -1
- package/dist/utils/formatNumber.js +0 -1
- package/dist/utils/formatTime.js +0 -1
- package/dist/utils/loadable.js +0 -1
- package/dist/utils/mask.js +0 -1
- package/dist/utils/mobile.js +0 -1
- package/dist/utils/number.js +0 -1
- package/dist/utils/object.js +0 -1
- package/dist/utils/paymentValidators.js +0 -1
- package/dist/utils/popup.js +0 -1
- package/dist/utils/sort.js +0 -1
- package/dist/utils/string.js +0 -1
- package/dist/utils/urlBase64ToUint8Array.js +0 -1
- package/dist/utils/user.js +0 -1
- package/dist/utils/uuidv4.js +0 -1
- package/dist/utils/validators.js +0 -1
- package/package.json +2 -2
- package/dist/chunk-DWSIBYYG.js +0 -9
- package/dist/chunk-DWSIBYYG.js.map +0 -1
- package/dist/chunk-U23ZCGMS.js +0 -19
- package/dist/chunk-U23ZCGMS.js.map +0 -1
- /package/dist/{chunk-TS23ND2I.js.map → chunk-2XYLNHQV.js.map} +0 -0
- /package/dist/{chunk-EDUNXVYV.js.map → chunk-CWRUW77O.js.map} +0 -0
- /package/dist/{chunk-ZLLJ2NCY.js.map → chunk-LLIJZZMN.js.map} +0 -0
- /package/dist/{chunk-EUQNIDDO.js.map → chunk-TGEDZBDY.js.map} +0 -0
- /package/dist/{chunk-X53N7UR5.js.map → chunk-TLGUGGRI.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a } from './chunk-U5YMUW4E.js';
|
|
2
|
-
import { a as a$5 } from './chunk-
|
|
2
|
+
import { a as a$5 } from './chunk-2XYLNHQV.js';
|
|
3
3
|
import { a as a$2 } from './chunk-B3RDL4QX.js';
|
|
4
4
|
import { e } from './chunk-OF6623HG.js';
|
|
5
|
-
import { a as a$3 } from './chunk-FBN7HCBY.js';
|
|
6
5
|
import { a as a$6 } from './chunk-6U5LS7MP.js';
|
|
6
|
+
import { a as a$3 } from './chunk-FBN7HCBY.js';
|
|
7
7
|
import { j } from './chunk-VITOOMKK.js';
|
|
8
8
|
import { a as a$4 } from './chunk-ET6H3IRG.js';
|
|
9
9
|
import { a as a$7 } from './chunk-SVX7EWV4.js';
|
|
@@ -31,5 +31,4 @@ import oi from '@mui/material/CircularProgress';
|
|
|
31
31
|
var pr=({helperText:e,disabled:o,isError:r})=>e?jsx(sr,{error:r,sx:a=>({mx:"14px",color:o?a.palette.grey[500]:void 0}),children:e}):null,S=memo(pr);var Ce=styled(he)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),ke=styled(he)({position:"absolute",top:4,right:4,gap:.5,"& svg":{width:16,height:16}}),lo=styled(ze,{shouldForwardProp:e=>!["isDragActive","isError","disabled"].includes(e)})(({theme:e,isDragActive:o,isError:r,disabled:a})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`dashed 1px ${e.palette.divider}`,...o&&{opacity:.72},...r&&{color:e.palette.error.main,backgroundColor:e.palette.error.lighter,borderColor:e.palette.error.light},...a&&{opacity:.48,pointerEvents:"none"},"&:hover":{opacity:.72}})),so=styled(cr)(({theme:e})=>({position:"relative",zIndex:999,pointerEvents:"auto",color:e.palette.grey[700],backgroundColor:e.palette.grey[100],"&:hover":{color:e.palette.grey[900],backgroundColor:e.palette.grey[300]}})),Xe=styled("div")({position:"relative",zIndex:1,userSelect:"none","&:hover":{zIndex:2}}),po=styled(he,{shouldForwardProp:e=>!["isDragging"].includes(e)})(({theme:e,width:o,isDragging:r})=>({width:o,height:100,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2,1,2,1),gap:e.spacing(1),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),co=styled(m.div)(({theme:e,width:o,isDragging:r})=>({width:o,height:60,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),mo=styled(a)(({theme:e})=>({top:16,right:16,zIndex:9,position:"absolute",color:e.palette.common.white,backgroundColor:alpha(e.palette.grey[900],.72),"&:hover":{backgroundColor:alpha(e.palette.grey[900],.48)}})),fo=styled(ze,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="disabled"&&e!=="hasError"})(({theme:e,isDragActive:o,disabled:r,hasError:a})=>({width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:e.palette.text.disabled,justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),border:`dashed 1px ${alpha(e.palette.grey[500],.16)}`,...o&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...a&&{color:e.palette.error.main,borderColor:e.palette.error.main,backgroundColor:alpha(e.palette.error.main,.08)},"&:hover":{opacity:.72}})),uo=styled(ze)(({theme:e})=>({padding:e.spacing(1),top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out",filter:"blur(0)","&:hover .single-file-preview-img":{filter:"blur(3px)",transition:"all 0.1s ease-in-out"},"&:hover .single-file-preview-hover-overlay":{opacity:1}})),go=styled("img",{shouldForwardProp:e=>e!=="aspectRatio"&&e!=="isLoading"&&e!=="isUploading"&&e!=="maxWidth"&&e!=="maxHeight"&&e!=="cropSize"&&e!=="fill"})(({theme:e,aspectRatio:o,maxWidth:r,maxHeight:a,isLoading:t,isUploading:s,fill:n})=>({borderRadius:e.shape.borderRadius,objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)",filter:"blur(0)",zIndex:1,backgroundColor:e.palette.background.paper,...n&&{width:"100%",height:"100%"},...!n&&Math.abs(o)>=1&&{maxWidth:r,maxHeight:a,aspectRatio:Math.abs(o),width:"calc(100% - 16px)",height:void 0},...!n&&Math.abs(o)<1&&{maxWidth:r,maxHeight:a,aspectRatio:Math.abs(o),width:void 0,height:"calc(100% - 16px)"},transition:"all 0.3s ease-in-out",...t||s?{opacity:0,filter:"blur(1.5rem)",transform:"translate(-50%, -50%) scale(0.7)"}:{}})),xo=styled("img",{shouldForwardProp:e=>e!=="isLoading"&&e!=="isUploading"})(({isLoading:e,isUploading:o})=>({width:"100%",height:"100%",objectFit:"cover",top:0,left:0,filter:"blur(1.5rem)",transform:"scale(1.1)",position:"absolute",zIndex:0,transition:"opacity 0.3s ease-in-out",...e&&{opacity:0},...o&&{opacity:.7,filter:"blur(2rem)"}})),ho=styled(he)(({theme:e})=>({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:alpha(e.palette.primary.darker,.75),zIndex:2,pointerEvents:"none",opacity:0,transition:"opacity 0.3s ease-in-out"})),bo=styled(he)({width:"100%",height:"100%",position:"relative",overflow:"hidden",borderRadius:"50%",justifyContent:"center",alignItems:"center"});styled(mr)(({theme:e})=>({py:1,px:2,mt:3,textAlign:"left",borderStyle:"dashed",borderColor:"error.main",backgroundColor:alpha(e.palette.error.main,.08)}));var qe=styled(ze,{shouldForwardProp:e=>e!=="isError"&&e!=="hasFile"})(({theme:e,isError:o,hasFile:r})=>({top:0,gap:e.spacing(1),left:0,width:"100%",height:"100%",zIndex:9,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",color:e.palette.text.disabled,flexDirection:"column",justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter}),"&:hover":{opacity:.92},...o&&{color:e.palette.error.main},...r&&{zIndex:9,opacity:0,color:e.palette.common.white,backgroundColor:alpha(e.palette.common.black,.54)}})),Io=styled(he)({top:0,left:0,right:0,bottom:0,position:"absolute",zIndex:10,alignItems:"center",justifyContent:"center",opacity:.8});styled(he)(({theme:e})=>({padding:20,justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch",borderRadius:12,background:e.palette.divider,color:e.palette.text.disabled,height:160}));var Po=styled(ze,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="isError"&&e!=="hasFile"})(({theme:e,isDragActive:o,disabled:r,isError:a,hasFile:t})=>({padding:e.spacing(1),margin:"auto",width:144,height:144,cursor:"pointer",overflow:"hidden",borderRadius:"50%",border:`1px dashed ${e.palette.divider}`,...o&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...a&&{borderColor:"error.main"},...t&&{...a&&{bgcolor:alpha(e.palette.error.main,.08)},"&:hover .upload-placeholder":{opacity:1},"& img":{filter:"blur(0)"},"&:hover img":{filter:"blur(3px)"}}})),vo=styled("img")({width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover",transition:"all 0.3s ease-in-out"}),Fo=styled(a)(({theme:e})=>({backgroundColor:alpha(e.palette.grey[900],.72),color:e.palette.common.white,"&:hover":{backgroundColor:alpha(e.palette.grey[600],.64),color:e.palette.common.white},"& svg":{width:14,height:14}}));var xr=({onRemove:e,sx:o,file:r,disableDrag:a,attributes:t,listeners:s,innerWidth:n,isDragging:d})=>{let c=r?.id;return c?jsx(gr,{anchorOrigin:{vertical:"top",horizontal:"left"},children:jsxs(co,{width:n,isDragging:d,"data-testid":`preview-multi-img-${c}`,...j().inUp,sx:o,children:[jsx(a$2,{disableDrag:a,...t,...s}),jsx(Ee,{imageView:!0,file:r}),jsx(ke,{sx:{position:"absolute",right:3,top:3,zIndex:1},children:e&&jsx(Fo,{size:"small",label:"Remover arquivo",onClick:()=>e(r),icon:"DELETE_MARK_BUTTON_02"})})]})},`badge-${c}`):null},Eo=memo(xr);var Fr=({file:e$1,thumbnail:o,onRemove:r,sx:a$1,disableDrag:t=!1,disableTransitions:s=!1})=>{let n=e$1.size||0,d=e$1.name||e$1.id,c=e$1.id,m=typeof e$1=="string",l=t?70:80,{attributes:x,listeners:b,setNodeRef:v,transform:M,transition:E,isDragging:k}=useSortable({id:c,disabled:t}),z={transform:s?void 0:CSS.Transform.toString(M),transition:s?"none":E,opacity:s?.2:1,display:"inline-block",alignItems:"center",justifyContent:"center",width:`${l+8}px`,height:"68px"};return o&&e$1?jsx(Xe,{ref:v,style:z,children:jsx(Eo,{innerWidth:l,isDragging:k,sx:a$1,file:e$1,disableDrag:t,attributes:x,listeners:b,onRemove:r})}):jsx(Xe,{ref:v,style:{...z,height:"80px",width:`${l+38}px`},children:jsxs(po,{width:l+30,isDragging:k,"data-testid":`preview-multi-img-${c}`,...j().inUp,sx:a$1,children:[jsx(a$2,{disableDrag:t,...x,...b}),e$1&&jsx(Ee,{file:e$1}),jsxs(he,{flexGrow:1,sx:{width:"100%"},children:[jsx(a$3,{title:d,children:jsx(eo,{variant:"subtitle2",noWrap:!0,children:d})}),jsx(eo,{variant:"caption",sx:{color:"text.secondary"},children:m?"":e(n)})]}),jsx(ke,{children:r&&jsx(a,{size:"small",label:"Remover arquivo",onClick:()=>r(e$1),icon:"DELETE_MARK_BUTTON_02"})})]})})},Ao=memo(Fr);var kr=({thumbnail:e,files:o,onRemove:r,onReorder:a,sx:t})=>{let[s,n]=useState(!1),d=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),c=useCallback(l=>{let{active:x,over:b}=l;if(!(!x||!b||x.id===b.id)&&a){let v=o.findIndex(({id:E})=>E===x.id),M=o.findIndex(({id:E})=>E===b.id);v!==-1&&M!==-1&&(a(v,M,o),n(!0),setTimeout(()=>{n(!1);},300));}},[o,a]),m=jsx(AnimatePresence,{initial:!1,children:o.map(l=>jsx(Ao,{sx:t,id:`preview-file-${l.id}`,file:l,onRemove:r,thumbnail:e,disableDrag:!a,disableTransitions:s},`preview-file-${l.id}`))});return a?jsx(DndContext,{sensors:d,collisionDetection:closestCenter,onDragEnd:c,modifiers:[restrictToHorizontalAxis,restrictToParentElement,restrictToWindowEdges],children:jsx(SortableContext,{items:o.map(l=>l.id),strategy:horizontalListSortingStrategy,children:m})}):m},De=memo(kr);var Mo=forwardRef(({onLoading:e,aspectRatio:o,cropSize:r,...a},t)=>{let{maxWidth:s,maxHeight:n}=useMemo(()=>r&&typeof r=="object"?{maxWidth:r.width,maxHeight:r.height}:r&&typeof r=="number"?{maxWidth:r,maxHeight:r}:{maxWidth:"100%",maxHeight:"100%"},[r]);a$1(()=>{e?.(!0);}),useLayoutEffect(()=>{typeof t=="object"&&t?.current?e?.(!t.current.complete):e?.(!1);},[t,e]);function d(){e?.(!1);}return jsx(go,{...a,maxWidth:s,maxHeight:n,ref:t,aspectRatio:o,onLoad:d,onError:d})});Mo.displayName="LoadingPreviewImage";var Do=Mo;var Hr=({file:e,aspectRatio:o=1,isUploading:r,isLoading:a,onLoading:t,cropSize:s,maxWidth:n,maxHeight:d,hoverAlt:c,fill:m})=>{let l=useRef(null),x=e?.id||"",b=e?.name||"",v=URL.createObjectURL(e);return x?jsxs(uo,{className:"single-file-preview-box",children:[jsx(Do,{className:"single-file-preview-img",aspectRatio:o,cropSize:s,isLoading:a,isUploading:r,alt:b,src:v,ref:l,loading:"lazy",onLoading:t,onLoad:()=>t?.(!1),onError:()=>t?.(!1),maxWidth:n,maxHeight:d,fill:m},`image-preview-${x}`),jsx(xo,{className:"single-file-preview-bg",alt:b,src:v,isLoading:a,isUploading:r}),c&&jsx(ho,{className:"single-file-preview-hover-overlay",children:c})]}):null},Ke=memo(Hr);var yo=["pdf"],_o=["txt"],Lo=["psd"],So=["doc","docx"],Oo=["xls","xlsx"],To=["zip","rar","iso"],Uo=["ai","eps"],Co=["ppt","pptx"],ko=["wav","aif","mp3","aac"],Bo=["jpg","jpeg","gif","bmp","png","svg","webp"],No=["m4v","avi","mpg","mp4","webm"];function Xr(e){return e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e==="application/pdf"?"pdf":e==="text/plain"?"txt":e==="application/msword"||e==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?"word":e==="application/vnd.ms-excel"||e==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?"excel":e==="application/vnd.ms-powerpoint"||e==="application/vnd.openxmlformats-officedocument.presentationml.presentation"?"powerpoint":e==="application/zip"||e==="application/x-rar-compressed"||e==="application/x-iso9660-image"?"zip":e==="image/vnd.adobe.photoshop"?"photoshop":e==="application/illustrator"||e==="application/postscript"?"illustrator":null}function Wo(e,o){if(o){let a=Xr(o);if(a)return a}let r=jo(e);return _o.includes(r)?"txt":To.includes(r)?"zip":ko.includes(r)?"audio":Bo.includes(r)?"image":No.includes(r)?"video":So.includes(r)?"word":Oo.includes(r)?"excel":Co.includes(r)?"powerpoint":yo.includes(r)?"pdf":Lo.includes(r)?"photoshop":Uo.includes(r)?"illustrator":"file"}function qr(e){let o=jo(e);return _o.includes(o)?"txt":To.includes(o)?"zip":ko.includes(o)?"audio":Bo.includes(o)?"image":No.includes(o)?"video":So.includes(o)?"word":Oo.includes(o)?"excel":Co.includes(o)?"powerpoint":yo.includes(o)?"pdf":Lo.includes(o)?"photoshop":Uo.includes(o)?"illustrator":e?.startsWith("http")?"image":o||"file"}function Go(e){let o;switch(qr(e)){case"folder":o="IC_FOLDER";break;case"txt":o="IC_TXT";break;case"zip":o="IC_ZIP";break;case"audio":o="IC_AUDIO";break;case"video":o="IC_VIDEO";break;case"word":o="IC_WORD";break;case"excel":o="IC_EXCEL";break;case"powerpoint":o="IC_POWER_POINT";break;case"pdf":o="IC_PDF";break;case"photoshop":o="IC_PTS";break;case"illustrator":o="IC_AI";break;case"image":o="IC_IMG";break;default:o="IC_FILE";}return o}function jo(e){return e&&e.split(".").pop()||""}function ua(e){return e.split("/").pop()}var Ne={root:"mnl__file__thumbnail__root",img:"mnl__file__thumbnail__img",icon:"mnl__file__thumbnail__icon",removeBtn:"mnl__file__thumbnail__remove__button",downloadBtn:"mnl__file__thumbnail__download__button"},Ee=({sx:e,file:o,tooltip:r,onRemove:a,imageView:t,slotProps:s,onDownload:n,...d})=>{let c=o.size>0?URL.createObjectURL(o):o.url,m=o?.name||"",l=Wo(m,o.type),x=jsx(ze,{component:"img",src:c,className:Ne.img,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit",...s?.img}}),b=jsx(a$4,{icon:Go(l),sx:{width:32,height:32,flexShrink:0,...e}}),v=jsxs(he,{component:"span",className:Ne.root,sx:{width:36,height:36,flexShrink:0,borderRadius:1.25,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...e},...d,children:[l==="image"&&t?x:b,a&&jsx(Kr,{onClick:a,className:Ne.removeBtn,sx:s?.removeBtn,children:jsx(a$4,{icon:"CLOSE_MARK_BUTTON",width:24})}),n&&jsx(cr,{onClick:n,className:Ne.downloadBtn,sx:s?.downloadBtn,size:"small",children:jsx(a$4,{icon:"ARROW_DOWN_CICLE",width:12})})]});return r?jsx(Yr,{arrow:!0,title:m,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:v}):v};var wa=e=>e.startsWith("image/"),Zo=(e,o=.8)=>new Promise((r,a)=>{let t=document.createElement("canvas"),s=t.getContext("2d"),n=new Image;n.onload=()=>{t.width=n.width,t.height=n.height,s?(s.drawImage(n,0,0),t.toBlob(d=>{if(d){let c=new File([d],e.name.replace(/\.[^/.]+$/,".webp"),{type:"image/webp",lastModified:Date.now()});r(c);}else a(new Error("Falha ao converter para WebP"));},"image/webp",o)):a(new Error("N\xE3o foi poss\xEDvel obter contexto do canvas"));},n.onerror=()=>a(new Error("Falha ao carregar imagem")),n.src=URL.createObjectURL(e);}),Ho=(e,o=.8,r,a)=>new Promise((t,s)=>{let n=document.createElement("canvas"),d=n.getContext("2d"),c=new Image;c.onload=()=>{let{width:m,height:l}=c;r&&m>r&&(l=l*r/m,m=r),a&&l>a&&(m=m*a/l,l=a),n.width=m,n.height=l,d?(d.imageSmoothingEnabled=!0,d.imageSmoothingQuality="high",d.drawImage(c,0,0,m,l),n.toBlob(x=>{if(x){let b=new File([x],e.name.replace(/\.[^/.]+$/,".webp"),{type:"image/webp",lastModified:Date.now()});t(b);}else s(new Error("Falha ao comprimir imagem"));},"image/webp",o)):s(new Error("N\xE3o foi poss\xEDvel obter contexto do canvas"));},c.onerror=()=>s(new Error("Falha ao carregar imagem")),c.src=URL.createObjectURL(e);}),$o=e=>{let o=e.match(/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i);return o?.[1]||o?.[2]||""},Xo=e=>`UTF-8''${encodeURIComponent(e)}`;var at=({onFilesSelect:e$1,onFileSelect:o,onReorder:r,onRemove:a,uploadFiles:t,filesPreview:s,dropzoneOptions:n,enableCrop:d=!1,customAspectRatio:c,convertToWebp:m=!0,cropSize:l,maxFiles:x,compressionQuality:b=.8,maxCompressedWidth:v,maxCompressedHeight:M})=>{let{showErrorMessage:E}=a$7(),k=useMemo(()=>c||(l&&typeof l!="number"?l.width/l.height:1),[c,l]),[z,I]=useState([]),[R,u]=useState(!1),[A,T]=useState(null),[C,P]=useState(null),[f,w]=useState(""),[D,U]=useState(!1),[y,_]=useState([]),[W,K]=useState(0),[re,Z]=useState(0),se=g=>{if(g.length<1)return;let h=g[0];T(h),K(L=>L+1);let F=new FileReader;F.onload=()=>{w(F.result),u(!0);},F.readAsDataURL(h);},ge=(g,h)=>{P(h);},pe=async g=>!A||!C?null:new Promise(h=>{let F=document.createElement("canvas"),L=F.getContext("2d"),B=new Image;B.onload=async()=>{let{width:G,height:ce,x:ye,y:ir}=C,ar=Math.abs(k),_e=G,Le=ce;l&&typeof l=="object"?(_e=l.width,Le=l.height):l&&typeof l=="number"&&(_e=l,Le=l/ar),F.width=_e,F.height=Le,L?(L.drawImage(B,ye,ir,G,ce,0,0,_e,Le),F.toBlob(async io=>{if(io){let $e=new File([io],A.name,{type:A.type,lastModified:Date.now()});if(m)try{$e=await Zo($e,b);}catch(nr){E(nr,"Erro ao converter para WebP");}let ao=$e;ao.id=g,h(ao);}else h(null);},"image/png")):h(null);},B.src=f;}),de=async()=>{if(!(!A||!C||y.length===0)){U(!0);try{let g=y[0],h=await pe(g.id);if(h){let L=await t([h]);L&&(!e$1&&!o&&I(B=>[...B,...L]),e$1?.([...s||[],...L]),o?.(h));}u(!1),U(!1),w(""),T(null);let F=y.slice(1);_(F),se(F);}catch(g){E(g,"Erro ao processar imagem"),U(!1);}}},H=()=>{u(!1),U(!1),w(""),T(null),_([]),K(0),Z(0);},J=async g=>{if(g.length===0)return;let h=Object.keys(n?.accept||{}).some(L=>L.includes("image/")),F=z.length+g.length;if(x&&F>x){E(new Error(`M\xE1ximo de ${x} arquivos`),"Erro ao fazer upload");return}try{if(h&&d){let B=g.filter(G=>G.type.startsWith("image/")).map((G,ce)=>{let ye=G;return ye.id=`temp-crop-${Date.now()}-${ce}`,ye});Z(B.length),K(0),_(B),se(B);}else {let L=[];for(let G of g)if(G.type.startsWith("image/")&&m)try{let ce=await Ho(G,b,v,M);L.push(ce);}catch(ce){E(ce,"Erro ao comprimir imagem"),L.push(G);}else L.push(G);let B=await t(L);B&&(!e$1&&!o&&I(G=>[...G,...B]),e$1?.([...s||[],...B]),o?.(B[0]));}}catch(L){E(L,"Erro ao processar arquivos");}},Q=g=>{if(!g.length)return;let h=g[0]?.errors[0]?.code,F=n?.maxSize||3145728;E(h==="file-too-large"?new Error(`O arquivo excede o tamanho m\xE1ximo de ${e(F)}`):h==="file-invalid-type"?new Error("Formato de arquivo n\xE3o suportado"):g[0]?.errors[0]||new Error("Erro ao enviar arquivo"),"Erro ao fazer upload");},{getRootProps:te,getInputProps:ie,isDragActive:p,isDragReject:ae,fileRejections:Y}=useDropzone({onDrop:J,onDropRejected:Q,...n}),Ie=g=>{if(!g){a||I([]),a?.(void 0);return}let h=z.filter(F=>F.id!==g.id);a||I(h),a?.(g);},we=(g,h,F)=>{r?.(g,h,F);},xe=useRef("");return useEffect(()=>{let g=s?.map(h=>h.id).join(",")||"";g!==xe.current&&(xe.current=g,I(s||[]));},[s]),{file:z?.[0],files:z,aspectRatio:k,dropzoneProps:{getRootProps:te,getInputProps:ie,isDragActive:p,isDragReject:ae,fileRejections:Y},cropState:{cropModalOpen:R,imagePreview:f,cropLoading:D,setCropModalOpen:u,onCropInitialized:ge,handleCropSave:de,handleCropCancel:H,currentImageIndex:W,totalPendingImages:re},setInitialFiles:I,handleRemove:Ie,handleReorder:we}},X=at;var Je=(p=>(p.APPLICATION_OCTET_STREAM="application/octet-stream",p.IMAGE_JPEG="image/jpeg",p.IMAGE_JPG="image/jpg",p.IMAGE_PNG="image/png",p.IMAGE_GIF="image/gif",p.IMAGE_WEBP="image/webp",p.IMAGE_SVG="image/svg+xml",p.IMAGE_BMP="image/bmp",p.IMAGE_TIFF="image/tiff",p.IMAGE_ICO="image/x-icon",p.IMAGE_AVIF="image/avif",p.APPLICATION_PDF="application/pdf",p.TEXT_PLAIN="text/plain",p.TEXT_CSV="text/csv",p.APPLICATION_RTF="application/rtf",p.APPLICATION_MSWORD="application/msword",p.APPLICATION_DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",p.APPLICATION_MSEXCEL="application/vnd.ms-excel",p.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",p.APPLICATION_MSPOWERPOINT="application/vnd.ms-powerpoint",p.APPLICATION_PPTX="application/vnd.openxmlformats-officedocument.presentationml.presentation",p.APPLICATION_ODT="application/vnd.oasis.opendocument.text",p.APPLICATION_ODS="application/vnd.oasis.opendocument.spreadsheet",p.APPLICATION_ODP="application/vnd.oasis.opendocument.presentation",p.APPLICATION_XML="application/xml",p.TEXT_XML="text/xml",p.TEXT_HTML="text/html",p.TEXT_CSS="text/css",p.APPLICATION_JSON="application/json",p.TEXT_JAVASCRIPT="text/javascript",p.APPLICATION_ZIP="application/zip",p.APPLICATION_GZIP="application/gzip",p.APPLICATION_RAR="application/vnd.rar",p.APPLICATION_7Z="application/x-7z-compressed",p.AUDIO_MPEG="audio/mpeg",p.AUDIO_WAV="audio/wav",p.AUDIO_OGG="audio/ogg",p.AUDIO_WEBM="audio/webm",p.AUDIO_AAC="audio/aac",p.VIDEO_MP4="video/mp4",p.VIDEO_MPEG="video/mpeg",p.VIDEO_OGG="video/ogg",p.VIDEO_WEBM="video/webm",p.VIDEO_QUICKTIME="video/quicktime",p))(Je||{}),We=(e=>(e["application/octet-stream"]="APPLICATION_OCTET_STREAM",e["image/jpeg"]="IMAGE_JPEG",e["image/jpg"]="IMAGE_JPG",e["image/png"]="IMAGE_PNG",e["image/gif"]="IMAGE_GIF",e["image/webp"]="IMAGE_WEBP",e["image/svg+xml"]="IMAGE_SVG",e["image/bmp"]="IMAGE_BMP",e["image/tiff"]="IMAGE_TIFF",e["image/x-icon"]="IMAGE_ICO",e["image/avif"]="IMAGE_AVIF",e["application/pdf"]="APPLICATION_PDF",e["text/plain"]="TEXT_PLAIN",e["text/csv"]="TEXT_CSV",e["application/rtf"]="APPLICATION_RTF",e["application/msword"]="APPLICATION_MSWORD",e["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]="APPLICATION_DOCX",e["application/vnd.ms-excel"]="APPLICATION_MSEXCEL",e["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]="APPLICATION_XLSX",e["application/vnd.ms-powerpoint"]="APPLICATION_MSPOWERPOINT",e["application/vnd.openxmlformats-officedocument.presentationml.presentation"]="APPLICATION_PPTX",e["application/vnd.oasis.opendocument.text"]="APPLICATION_ODT",e["application/vnd.oasis.opendocument.spreadsheet"]="APPLICATION_ODS",e["application/vnd.oasis.opendocument.presentation"]="APPLICATION_ODP",e["application/xml"]="APPLICATION_XML",e["text/xml"]="TEXT_XML",e["text/html"]="TEXT_HTML",e["text/css"]="TEXT_CSS",e["application/json"]="APPLICATION_JSON",e["text/javascript"]="TEXT_JAVASCRIPT",e["application/zip"]="APPLICATION_ZIP",e["application/gzip"]="APPLICATION_GZIP",e["application/vnd.rar"]="APPLICATION_RAR",e["application/x-7z-compressed"]="APPLICATION_7Z",e["audio/mpeg"]="AUDIO_MPEG",e["audio/wav"]="AUDIO_WAV",e["audio/ogg"]="AUDIO_OGG",e["audio/webm"]="AUDIO_WEBM",e["audio/aac"]="AUDIO_AAC",e["video/mp4"]="VIDEO_MP4",e["video/mpeg"]="VIDEO_MPEG",e["video/ogg"]="VIDEO_OGG",e["video/webm"]="VIDEO_WEBM",e["video/quicktime"]="VIDEO_QUICKTIME",e))(We||{});var pt=({createFilesMutation:e,filesDetails:o})=>{let{showErrorMessage:r}=a$7(),[a,t]=useState(!1),[s,n]=useState(!1),[d,c]=useState(null),[m,l]=useState([]),x=useMemo(()=>m?.[0],[m]),b=s||a,v=useCallback(async I=>{if(!I.length){l([]),n(!1);return}n(!0);try{let u=(await Promise.all(I.map(async({url:A,id:T,name:C})=>{try{if(!A)return null;let P=await fetch(A);if(!P.ok)throw new Error(P.statusText);let f=await P.blob(),w=null;if(!C){let y=P.headers.get("content-disposition")||void 0;if(y){let _=$o(y);if(_)try{w=decodeURIComponent(_);}catch{w=_;}}}let D=w||C||T,U=new File([f],D,{type:f.type});return U.id=T,U.url=A,U}catch{return null}}))).filter(Boolean);l(u),n(!1);}catch(R){r(R,"Erro ao carregar arquivos"),l([]),n(!1);}},[r]),M=useRef("");useEffect(()=>{let I=o?.map(({id:R})=>R).join(",")||"";I!==M.current&&(async()=>(M.current=I,await v(o)))();},[o,v]);let E=async I=>{if(!I||!Array.isArray(I))throw new Error("Arquivos inv\xE1lidos");let R=I.filter(u=>u instanceof File);if(R?.length){t(!0);try{let u=R.map(P=>{let f=P.type||"application/octet-stream",w=We[f];if(!w)throw new Error(`Tipo de arquivo n\xE3o suportado: ${f}`);return {file:P,mimeType:f,contentTypeEnum:w}}),A=await e({files:u.map(({file:P,contentTypeEnum:f})=>({content_type:f,name:P.name}))}).unwrap(),T=A.files.map((P,f)=>{let w=u[f].file,D=w;return D.id=P.id,D.url=URL.createObjectURL(w),D});return await(await Promise.all(A.files.map((P,f)=>{let{mimeType:w}=u[f],D=T[f];return fetch(P.url,{method:"PUT",headers:{"Content-Type":w,"Content-Disposition":`inline; filename*=${Xo(D.name)}`,"X-File-Id":P.id},body:D})}))).forEach(async P=>{if(!P.ok)throw new Error("Erro no upload do arquivo.")}),T}catch(u){throw c(u),r(u,"Erro no upload"),u}finally{t(!1);}}},k=useMemo(()=>d&&d instanceof Error?d.message:d,[d]),z=useMemo(()=>o.filter(I=>!m.some(R=>R.id===I.id)),[o,m]);return {setFilesPreview:l,uploadFiles:E,filesPreview:m,filePreview:x,isLoadingPreview:s,isUploadingFiles:a,isUploadOrLoadingFiles:b,uploadErrorText:k,invalidFiles:z}},q=pt;var ct=({sx:e,id:o,name:r,tabIndex:a,uploading:t,getRootProps:s,getInputProps:n,isDragActive:d,isError:c,disabled:m,dropZoneSxProps:l,dropZoneContent:x,children:b,...v})=>jsxs(Ce,{children:[t&&jsx(a$6,{"data-testid":"uploading-progress-bar",sx:{zIndex:1}}),jsxs(ze,{sx:{width:1,position:"relative",...e},children:[jsxs(lo,{...s(),"data-testid":"drop-zone-styled-area",isError:c,isDragActive:d,disabled:!!m,sx:l,...v,children:[jsx("input",{...n(),id:o,tabIndex:a,name:r}),x]}),b]})]}),me=ct;function Ko(){let e=useTheme(),o=useId(),r=e.vars.palette.primary.main;return jsxs(Fragment,{children:[jsx("defs",{children:jsxs("linearGradient",{id:o,x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[jsx("stop",{offset:"0%",stopColor:r}),jsx("stop",{offset:"100%",stopColor:r,stopOpacity:"0"})]})}),jsx("path",{fill:`url(#${o})`,fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})}function bt({hideBackground:e,sx:o,...r}){let a=useTheme(),t=a.vars.palette.primary.main,s=a.vars.palette.primary.dark,n=a.vars.palette.primary.darker;return jsxs(ze,{component:"svg",width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",sx:{width:320,maxWidth:1,flexShrink:0,height:"auto",...o},...r,children:[!e&&jsx(Ko,{}),jsx("defs",{children:jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[jsx("stop",{offset:"0%",stopOpacity:"0"}),jsx("stop",{offset:"100%"})]})}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),jsx("path",{fill:n,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),jsx("ellipse",{cx:"380.363",cy:"298.487",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),jsx("ellipse",{cx:"390.052",cy:"264.383",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),jsx("ellipse",{cx:"346.97",cy:"270.022",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:t,fillRule:"nonzero",opacity:"0.2"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),jsx("path",{fill:s,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),jsx("ellipse",{cx:"119.593",cy:"258.664",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),jsx("ellipse",{cx:"101.03",cy:"260.545",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),jsx("ellipse",{cx:"108.459",cy:"265.905",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),jsx("ellipse",{cx:"89.193",cy:"265.433",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),jsx("path",{stroke:n,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("path",{fill:s,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),jsx("path",{fill:s,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})}var Qo=memo(bt);var vt=({header:e,description:o,sx:r,...a})=>jsxs(he,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...a,children:[jsx(Qo,{sx:{width:220}}),jsxs("div",{children:[jsx(eo,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),jsx(eo,{variant:"body2",sx:{color:"text.secondary"},children:o||jsxs(Fragment,{children:["Solte os arquivos aqui ou clique",jsx(eo,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua m\xE1quina"]})})]})]}),fe=memo(vt);var At=({onRemove:e,onReorder:o,onFilesSelect:r,createFilesMutation:a,filesDetails:t=[],id:s,disabled:n,error:d,helperText:c,thumbnail:m,dropZoneSxProps:l,uploading:x,tabIndex:b,maxFiles:v,placeholderAlt:M,placeholderProps:E,...k})=>{let{filesPreview:z,isUploadOrLoadingFiles:I,uploadErrorText:R,uploadFiles:u}=q({createFilesMutation:a,filesDetails:t}),{files:A,dropzoneProps:T,handleRemove:C,handleReorder:P}=X({onFilesSelect:r,onReorder:o,onRemove:e,filesPreview:z,dropzoneOptions:{multiple:!0,disabled:n,...k},maxFiles:v,uploadFiles:u}),{getRootProps:f,getInputProps:w,isDragActive:D,isDragReject:U}=T,y=!!A?.filter(W=>!!W.id).length,_=U||!!d||!!R;return jsxs(me,{id:s,uploading:x||I,disabled:n,dropZoneSxProps:l,tabIndex:b,getRootProps:f,getInputProps:w,isDragActive:D,isError:_,dropZoneContent:jsx(Fragment,{children:M?jsx(he,{children:M}):jsx(fe,{header:E?.header,description:E?.description})}),children:[jsx(S,{disabled:n,helperText:c,isError:_}),d?jsx(S,{helperText:d,isError:!0}):null,R?jsx(S,{helperText:R,isError:!0}):null,y&&jsx(ze,{sx:{my:3},children:jsx(De,{files:A,thumbnail:!!m,onRemove:e?C:void 0,onReorder:o?P:void 0})})]})},zt=memo(At);var St=({onRemove:e,onReorder:o,onFilesSelect:r,createFilesMutation:a,filesDetails:t=[],id:s,disabled:n,error:d,helperText:c,dropZoneSxProps:m,placeholderProps:l,placeholderAlt:x,uploading:b,tabIndex:v,maxFiles:M,aspectRatio:E,enableCrop:k=!0,convertToWebp:z=!0,cropSize:I,name:R,label:u,keepInvalidFiles:A=!1,...T})=>{let{filesPreview:C,isUploadOrLoadingFiles:P,uploadErrorText:f,uploadFiles:w,invalidFiles:D}=q({createFilesMutation:a,filesDetails:t}),U=b||P,{files:y,dropzoneProps:_,cropState:W,aspectRatio:K,handleRemove:re,handleReorder:Z}=X({onFilesSelect:r,onReorder:o,onRemove:e,filesPreview:C,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!0,disabled:n,...T},enableCrop:k,customAspectRatio:E,convertToWebp:z,maxFiles:M,cropSize:I,uploadFiles:w}),{getRootProps:se,getInputProps:ge,isDragActive:pe,isDragReject:de}=_,{cropModalOpen:H,imagePreview:J,cropLoading:Q,onCropInitialized:te,handleCropSave:ie,handleCropCancel:p,currentImageIndex:ae,totalPendingImages:Y}=W,Ie=useMemo(()=>{if(!A)return y;let h=D.map(F=>({...new File([],F.name??"invalid-file"),id:F.id,url:"url.invalid"}));return [...y,...h]},[A,y,D]),we=!!Ie?.filter(h=>!!h.id).length,xe=de||!!d||!!f,g=useMemo(()=>{let h=u??"Ajustar Imagem",F=Y>1||ae>1?` (${ae} de ${Y})`:"";return `${h}${F}`},[u,Y,ae]);return jsxs(me,{id:s,name:R,uploading:U,disabled:n,dropZoneSxProps:m,tabIndex:v,getRootProps:se,getInputProps:ge,isDragActive:pe,isError:xe,dropZoneContent:jsx(Fragment,{children:x?jsx(he,{children:x}):jsx(fe,{header:l?.header,description:l?.description})}),children:[jsx(S,{disabled:n,helperText:c,isError:xe}),d?jsx(S,{helperText:d,isError:!0}):null,f?jsx(S,{helperText:f,isError:!0}):null,we&&jsx(ze,{sx:{my:3,ml:.5},children:jsx(De,{files:Ie,thumbnail:!0,onRemove:re,onReorder:o?Z:void 0})}),jsx(a$5,{open:H,onClose:p,label:g,imageSrc:J,aspectRatio:K,onInitialized:te,onSave:ie,loading:Q,cropSize:I})]})},Ot=memo(St);var Nt=({onFileSelect:e$1,onRemove:o,createFilesMutation:r,fileDetails:a,id:t,disabled:s,error:n,helperText:d,sx:c,dropZoneSxProps:m$1,uploading:l,tabIndex:x,placeholderAlt:b,placeholderProps:v,...M})=>{let{filesPreview:E,isUploadOrLoadingFiles:k,uploadErrorText:z,uploadFiles:I}=q({createFilesMutation:r,filesDetails:a?[a]:[]}),R=k||l,{file:u,dropzoneProps:A,handleRemove:T}=X({uploadFiles:I,onFileSelect:e$1,onRemove:o,filesPreview:E,dropzoneOptions:{multiple:!1,disabled:s,...M}}),{getRootProps:C,getInputProps:P,isDragActive:f,isDragReject:w}=A,D=useCallback(W=>{W.stopPropagation(),T(u||void 0);},[u,T]),U=!!u,y=typeof u=="string",_=w||!!n||!!z;return jsxs(me,{id:t,uploading:R,disabled:s,dropZoneSxProps:m$1,tabIndex:x,getRootProps:C,getInputProps:P,isDragActive:f,isError:_,dropZoneContent:jsxs(Fragment,{children:[!U&&(b?jsx(he,{...v,children:b}):jsx(fe,{})),U&&jsxs(he,{component:m.div,...j().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:W=>`solid 1px ${W.palette.divider}`,...c},children:[jsx(Ee,{file:u}),jsxs(he,{flexGrow:1,sx:{minWidth:0},children:[jsx(eo,{variant:"subtitle2",noWrap:!0,children:y?u:u.name}),jsx(eo,{variant:"caption",sx:{color:"text.secondary"},children:y?"":e(u.size)})]}),o&&jsx(a$3,{title:"Remover arquivo",children:jsx(so,{edge:"end",size:"small",disabled:s,"aria-label":"Remover arquivo",onClick:D,children:jsx(a$4,{icon:"DELETE_MARK_BUTTON_02",width:16})})})]})]}),children:[jsx(S,{disabled:s,helperText:d,isError:_}),n?jsx(S,{helperText:n,isError:!0}):null,z?jsx(S,{helperText:z,isError:!0}):null]})},Wt=memo(Nt);var qt=({onRemove:e,onFileSelect:o,createFilesMutation:r,fileDetails:a,id:t,disabled:s,error:n,helperText:d,dropZoneSxProps:c,placeholderProps:m,placeholderAlt:l,hoverAlt:x,uploading:b,tabIndex:v,aspectRatio:M,enableCrop:E=!0,convertToWebp:k=!0,name:z,label:I,cropSize:R,sx:u,maxWidth:A,maxHeight:T,compressionQuality:C=.8,maxCompressedWidth:P,maxCompressedHeight:f,fill:w,...D})=>{let{filesPreview:U,isUploadOrLoadingFiles:y,uploadErrorText:_,uploadFiles:W}=q({createFilesMutation:r,filesDetails:a?[a]:[]}),[K,re]=useState(!1),{file:Z,dropzoneProps:se,cropState:ge,handleRemove:pe,aspectRatio:de}=X({onFileSelect:o,onRemove:e,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:s,...D},filesPreview:U,enableCrop:E,customAspectRatio:M,convertToWebp:k,cropSize:R,uploadFiles:W,compressionQuality:C,maxCompressedWidth:P,maxCompressedHeight:f}),{getRootProps:H,getInputProps:J,isDragActive:Q,isDragReject:te}=se,{cropModalOpen:ie,imagePreview:p,cropLoading:ae,onCropInitialized:Y,handleCropSave:Ie,handleCropCancel:we}=ge,xe=useCallback(()=>{pe(Z||void 0);},[Z,pe]),g=!!Z,h=te||!!n||!!_,F=b||y,L=g?{opacity:0}:{opacity:1},B=c?.width;return useEffect(()=>{g||re(!1);},[g]),jsxs(Ce,{sx:{...u,...B&&{width:B}},children:[(F||K)&&jsx(a$6,{}),jsxs(me,{id:t,uploading:F,disabled:s,dropZoneSxProps:c,tabIndex:v,getRootProps:H,getInputProps:J,isDragActive:Q,isError:h,name:z,dropZoneContent:jsxs(Fragment,{children:[l?jsx(he,{sx:L,children:l}):jsx(fe,{sx:L,header:m?.title,description:m?.description}),g&&jsx(Ke,{file:Z,cropSize:R,isLoading:K,isUploading:F,onLoading:re,aspectRatio:de,maxWidth:A,maxHeight:T,hoverAlt:x,fill:w})]}),children:[jsx(S,{disabled:s,helperText:d,isError:h}),n?jsx(S,{helperText:n,isError:!0}):null,_?jsx(S,{helperText:_,isError:!0}):null,g&&e&&jsx(mo,{size:"small",onClick:xe,disabled:s,label:"Remover arquivo",children:jsx(a$4,{icon:"DELETE_MARK_BUTTON_02",width:16})}),jsx(a$5,{open:ie,onClose:we,label:I??"Ajustar Imagem",imageSrc:p,aspectRatio:de,onInitialized:Y,onSave:Ie,loading:ae,cropSize:R})]})]})},Vt=memo(qt);var ri=({onRemove:e,onFileSelect:o,createFilesMutation:r,fileDetails:a,disabled:t,label:s,id:n,tabIndex:d,error:c,helperText:m,sx:l,name:x,maxSize:b,uploading:v,aspectRatio:M=1,enableCrop:E=!0,convertToWebp:k=!0,cropSize:z,...I})=>{let[R,u]=useState(!1),{filesPreview:A,isUploadOrLoadingFiles:T,uploadErrorText:C,uploadFiles:P}=q({createFilesMutation:r,filesDetails:a?[a]:[]}),{file:f,dropzoneProps:w,cropState:D,handleRemove:U}=X({filesPreview:A,onFileSelect:o,onRemove:e,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:t,maxSize:b,...I},enableCrop:E,customAspectRatio:M,convertToWebp:k,cropSize:z,uploadFiles:P}),{getRootProps:y,getInputProps:_,isDragActive:W,isDragReject:K}=w,{cropModalOpen:re,imagePreview:Z,cropLoading:se,onCropInitialized:ge,handleCropSave:pe,handleCropCancel:de}=D,H=K||!!c||!!C,J=R||T||v,Q=!!e,te=useRef(a?.url||""),ie=useRef(void 0);useEffect(()=>{if(!f){te.current="",ie.current=void 0;return}if(ie.current===f.id)return;ie.current=f.id,u(!0);let Y=URL.createObjectURL(f);return te.current=Y,()=>{URL.revokeObjectURL(Y);}},[f]);let p=()=>{u(!1);},ae=useCallback(()=>Q&&f?()=>U(f):y().onClick,[Q,f,y,U]);return jsxs(Fragment,{children:[jsxs(he,{sx:{alignItems:"center"},children:[jsxs(Po,{sx:l,isError:H,isDragActive:W,hasFile:!!f,...y(),onClick:ae(),children:[jsxs(bo,{children:[J&&jsx(Io,{children:jsx(oi,{size:135,thickness:2,color:"primary"})}),f&&jsx(vo,{alt:"Avatar Preview",src:te.current,onLoad:p,...J&&{sx:{filter:"blur(5px) !important",scale:1.2,opacity:.7}}}),!f&&!J&&jsxs(qe,{isError:H,hasFile:!1,children:[jsx(a$4,{icon:"ADD_IMAGE",width:32}),jsx(eo,{variant:"caption",textAlign:"center",sx:{color:H?"error.main":"text.disabled"},children:"Adicionar foto"})]}),f&&!J&&jsxs(qe,{isError:H,hasFile:!0,children:[jsx(a$4,{icon:Q?"DELETE_MARK_BUTTON_02":"ADD_IMAGE",width:32}),jsx(eo,{variant:"caption",textAlign:"center",sx:{color:H?"error.main":"common.white"},children:Q?"Remover foto":"Alterar foto"})]})]}),jsx("input",{name:x,id:n,tabIndex:d,..._()})]}),jsx(he,{sx:{alignItems:"center",mt:-.5},children:jsx(S,{helperText:m,disabled:t,isError:H})}),C?jsx(S,{helperText:C,isError:!0}):null,c?jsx(S,{helperText:c,isError:!0}):null]}),re&&Z&&jsx(a$5,{open:re,onClose:de,label:s??"Ajustar Imagem",imageSrc:Z,aspectRatio:M,onInitialized:ge,onSave:pe,loading:se,cropSize:z,cropShape:"round"})]})},ti=memo(ri);var li=({error:e,name:o,disabled:r,sx:a,...t})=>{let{getRootProps:s,getInputProps:n,isDragActive:d,isDragReject:c}=useDropzone({disabled:r,...t}),m=c||e;return jsxs(fo,{...s(),isDragActive:d,hasError:!!m,disabled:!!r,sx:a,"data-testid":"upload-box",children:[jsx("input",{name:o,...n()}),"Selecionar arquivo"]})},si=memo(li);
|
|
32
32
|
|
|
33
33
|
export { S as a, De as b, Ke as c, Xr as d, Wo as e, qr as f, Go as g, jo as h, ua as i, Ne as j, Ee as k, wa as l, Zo as m, Ho as n, $o as o, Xo as p, X as q, Je as r, We as s, q as t, zt as u, Ot as v, Wt as w, Vt as x, ti as y, si as z };
|
|
34
|
-
//# sourceMappingURL=
|
|
35
|
-
//# sourceMappingURL=chunk-ZLLJ2NCY.js.map
|
|
34
|
+
//# sourceMappingURL=chunk-LLIJZZMN.js.map
|
package/dist/chunk-LQRRMVFN.js
CHANGED
|
@@ -3,5 +3,4 @@ import { useState, useCallback } from 'react';
|
|
|
3
3
|
var p=()=>{let[t,e]=useState(null),o=useCallback(s=>{e(s.currentTarget);},[]),l=useCallback(()=>{e(null);},[]);return {open:t,onOpen:o,onClose:l,setOpen:e}},v=p;
|
|
4
4
|
|
|
5
5
|
export { v as a };
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
6
|
//# sourceMappingURL=chunk-LQRRMVFN.js.map
|
package/dist/chunk-LRSF3YE6.js
CHANGED
|
@@ -42,5 +42,4 @@ import { tooltipClasses } from '@mui/material/Tooltip';
|
|
|
42
42
|
var Lr={styleOverrides:{root:({theme:o})=>({backgroundColor:"transparent",[`&.${accordionClasses.expanded}`]:{boxShadow:o.customShadows.z8,borderRadius:o.shape.borderRadius,backgroundColor:o.vars.palette.background.paper},[`&.${accordionClasses.disabled}`]:{backgroundColor:"transparent"}})}},Br={styleOverrides:{root:({theme:o})=>({paddingLeft:o.spacing(2),paddingRight:o.spacing(1),[`&.${accordionSummaryClasses.disabled}`]:{opacity:1,color:o.vars.palette.action.disabled,[`& .${typographyClasses.root}`]:{color:"inherit"}}}),expandIconWrapper:{color:"inherit"}}},ao={MuiAccordion:Lr,MuiAccordionSummary:Br};var Ar=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-10 5.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2",clipRule:"evenodd"})}),Dr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.97-3.03a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})}),zr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.312 10.762C8.23 5.587 9.689 3 12 3c2.31 0 3.77 2.587 6.688 7.762l.364.644c2.425 4.3 3.638 6.45 2.542 8.022S17.786 21 12.364 21h-.728c-5.422 0-8.134 0-9.23-1.572s.117-3.722 2.542-8.022zM12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2",clipRule:"evenodd"})}),Fr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.843 3.802C9.872 2.601 10.886 2 12 2c1.114 0 2.128.6 4.157 1.802l.686.406c2.029 1.202 3.043 1.803 3.6 2.792c.557.99.557 2.19.557 4.594v.812c0 2.403 0 3.605-.557 4.594c-.557.99-1.571 1.59-3.6 2.791l-.686.407C14.128 21.399 13.114 22 12 22c-1.114 0-2.128-.6-4.157-1.802l-.686-.407c-2.029-1.2-3.043-1.802-3.6-2.791C3 16.01 3 14.81 3 12.406v-.812C3 9.19 3 7.989 3.557 7c.557-.99 1.571-1.59 3.6-2.792zM13 16a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-1-9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})}),Vr=["info","success","warning","error"];function q(o,r){return Vr.reduce((a,s)=>(o.severity===s&&(a=r(s)),a),{})}var Gr={defaultProps:{iconMapping:{error:jsx(Fr,{}),info:jsx(Ar,{}),success:jsx(Dr,{}),warning:jsx(zr,{})}},styleOverrides:{icon:{opacity:1},standard:({ownerState:o,theme:r})=>({...{colors:q(o,a=>({color:r.vars.palette[a].darker,backgroundColor:r.vars.palette[a].lighter,[b.dark]:{color:r.vars.palette[a].lighter,backgroundColor:r.vars.palette[a].darker},[`& .${alertClasses.icon}`]:{color:r.vars.palette[a].main,[b.dark]:{color:r.vars.palette[a].light}}}))}.colors}),filled:({ownerState:o,theme:r})=>({...{colors:q(o,a=>({color:r.vars.palette[a].contrastText}))}.colors}),outlined:({ownerState:o,theme:r})=>({...{colors:q(o,a=>({backgroundColor:k(r.vars.palette[a].mainChannel,.08),color:r.vars.palette[a].dark,border:`solid 1px ${k(r.vars.palette[a].mainChannel,.16)}`,[b.dark]:{color:r.vars.palette[a].light},[`& .${alertClasses.icon}`]:{color:r.vars.palette[a].main}}))}.colors})}},Wr={styleOverrides:{root:({theme:o})=>({marginBottom:o.spacing(.5),fontWeight:o.typography.fontWeightSemiBold})}},lo={MuiAlert:Gr,MuiAlertTitle:Wr};var Hr={defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}},io={MuiAppBar:Hr};var Zr=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15a1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16"})}),Nr={defaultProps:{popupIcon:jsx(Zr,{})},styleOverrides:{root:({theme:o})=>({[`& span.${autocompleteClasses.tag}`]:{...o.typography.subtitle2,height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:o.spacing(0,.75),color:o.vars.palette.text.secondary,borderRadius:o.shape.borderRadius,backgroundColor:k(o.vars.palette.grey["500Channel"],.16)}}),paper:({theme:o})=>({...s({theme:o,dropdown:!0})}),listbox:({theme:o})=>({padding:0,[`& .${autocompleteClasses.option}`]:{...t(o)}}),endAdornment:{[`& .${svgIconClasses.root}`]:{width:18,height:18}},input:({ownerState:o})=>({...o.size==="small"&&{paddingTop:"3.5px !important",paddingBottom:"3.5px !important"}})}},po={MuiAutocomplete:Nr};var Ur=["primary","secondary","info","success","warning","error"],jr=o=>{let r=o.charAt(0).toLowerCase();return ["a","c","f"].includes(r)?"primary":["e","d","h"].includes(r)?"secondary":["i","k","l"].includes(r)?"info":["m","n","p"].includes(r)?"success":["q","s","t"].includes(r)?"warning":["v","x","y"].includes(r)?"error":"default"},co={colors:Ur.map(o=>({props:({ownerState:r})=>r.color===o,style:({theme:r})=>({color:r.vars.palette[o].contrastText,backgroundColor:r.vars.palette[o].main})})),defaultColor:[{props:({ownerState:o})=>o.color==="default",style:({theme:o})=>({color:o.vars.palette.text.secondary,backgroundColor:k(o.vars.palette.grey["500Channel"],.24)})}]},Xr={variants:[...co.defaultColor,...co.colors],styleOverrides:{rounded:({theme:o})=>({borderRadius:o.shape.borderRadius*1.5}),colorDefault:({ownerState:o,theme:r})=>{let t=jr(`${o.alt}`);return {...!!o.alt&&{...t!=="default"?{color:r.vars.palette[t].contrastText,backgroundColor:r.vars.palette[t].main}:{color:r.vars.palette.text.secondary,backgroundColor:k(r.vars.palette.grey["500Channel"],.24)}}}}}},Yr={defaultProps:{max:4},styleOverrides:{root:({ownerState:o})=>({justifyContent:"flex-end",...o.variant==="compact"&&{width:40,height:40,position:"relative",[`& .${avatarGroupClasses.avatar}`]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}),avatar:({theme:o})=>({fontSize:16,fontWeight:o.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:o.vars.palette.primary.dark,backgroundColor:o.vars.palette.primary.lighter}})}},mo={MuiAvatar:Xr,MuiAvatarGroup:Yr};var Jr={styleOverrides:{root:({theme:o})=>({backgroundColor:k(o.vars.palette.grey["800Channel"],.48)}),invisible:{background:"transparent"}}},uo={MuiBackdrop:Jr};var D=o=>({width:10,zIndex:9,padding:0,height:10,minWidth:"auto","&::before, &::after":{content:'""',borderRadius:1,backgroundColor:o.vars.palette.common.white},[`&.${badgeClasses.invisible}`]:{transform:"unset"}}),Kr={variants:[{props:({ownerState:o})=>o.variant==="online",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...D(o),backgroundColor:o.vars.palette.success.main}})},{props:({ownerState:o})=>o.variant==="alway",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...D(o),backgroundColor:o.vars.palette.warning.main,"&::before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&::after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}})},{props:({ownerState:o})=>o.variant==="busy",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...D(o),backgroundColor:o.vars.palette.error.main,"&::before":{width:6,height:2}}})},{props:({ownerState:o})=>o.variant==="offline",style:({theme:o})=>({[`& .${badgeClasses.badge}`]:{...D(o),backgroundColor:o.vars.palette.text.disabled,"&::before":{width:6,height:6,borderRadius:"50%"}}})},{props:({ownerState:o})=>o.variant==="invisible",style:{[`& .${badgeClasses.badge}`]:{display:"none"}}}],styleOverrides:{dot:{borderRadius:"50%"}}},go={MuiBadge:Kr};var Qr={styleOverrides:{ol:({theme:o})=>({rowGap:o.spacing(.5),columnGap:o.spacing(2)}),li:({theme:o})=>({display:"inline-flex","& > *":{...o.typography.body2}}),separator:{margin:0}}},Co={MuiBreadcrumbs:Qr};var bo=["primary","secondary","info","success","warning","error"];function ho(o,r){return bo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var oe={styleOverrides:{root:({theme:o})=>({fontFamily:o.typography.fontFamily})}},yo={colors:bo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].dark,backgroundColor:k(r.vars.palette[o].mainChannel,.16),"&:hover":{backgroundColor:k(r.vars.palette[o].mainChannel,.32)},[b.dark]:{color:r.vars.palette[o].light}})})),base:[{props:({ownerState:o})=>o.variant==="soft",style:({theme:o})=>({backgroundColor:k(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:k(o.vars.palette.grey["500Channel"],.24)},[`&.${buttonClasses.disabled}`]:{backgroundColor:o.vars.palette.action.disabledBackground},[`& .${loadingButtonClasses.loadingIndicatorStart}`]:{left:14},[`& .${loadingButtonClasses.loadingIndicatorEnd}`]:{right:14},[`&.${buttonClasses.sizeSmall}`]:{[`& .${loadingButtonClasses.loadingIndicatorStart}`]:{left:10},[`& .${loadingButtonClasses.loadingIndicatorEnd}`]:{right:10}}})}]},re={defaultProps:{color:"primary",disableElevation:!0},variants:[...yo.base,...yo.colors],styleOverrides:{contained:({theme:o,ownerState:r})=>{let t={colors:ho(r,a=>({"&:hover":{boxShadow:o.customShadows[a]}})),inheritColor:{...r.color==="inherit"&&!r.disabled&&{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.grey[800],"&:hover":{boxShadow:o.customShadows.z8,backgroundColor:o.vars.palette.grey[700]},[b.dark]:{color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.common.white,"&:hover":{backgroundColor:o.vars.palette.grey[400]}}}}};return {...t.inheritColor,...t.colors}},outlined:({theme:o,ownerState:r})=>{let t={colors:ho(r,a=>({borderColor:k(o.vars.palette[a].mainChannel,.48)})),inheritColor:{...r.color==="inherit"&&!r.disabled&&{borderColor:k(o.vars.palette.grey["500Channel"],.32),"&:hover":{backgroundColor:o.vars.palette.action.hover}}},base:{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor"}}};return {...t.base,...t.inheritColor,...t.colors}},text:({ownerState:o,theme:r})=>({...{inheritColor:{...o.color==="inherit"&&!o.disabled&&{"&:hover":{backgroundColor:r.vars.palette.action.hover}}}}.inheritColor}),sizeSmall:({ownerState:o})=>({height:30,...o.variant==="text"?{paddingLeft:"4px",paddingRight:"4px"}:{paddingLeft:"8px",paddingRight:"8px"}}),sizeMedium:({ownerState:o})=>({...o.variant==="text"?{paddingLeft:"8px",paddingRight:"8px"}:{paddingLeft:"12px",paddingRight:"12px"}}),sizeLarge:({ownerState:o})=>({height:48,...o.variant==="text"?{paddingLeft:"10px",paddingRight:"10px"}:{paddingLeft:"16px",paddingRight:"16px"}})}},fo={MuiButtonBase:oe,MuiButton:re};var N=["primary","secondary","info","success","warning","error"],Po=["default","inherit"],ee=["extended","outlinedExtended","softExtended"],xo=["circular","extended"],ko=["outlined","outlinedExtended"],Mo=["soft","softExtended"],So={colors:N.map(o=>({props:({ownerState:r})=>!r.disabled&&xo.includes(r.variant)&&r.color===o,style:({theme:r})=>({boxShadow:r.customShadows[o],"&:hover":{boxShadow:"none"}})})),base:[{props:({ownerState:o})=>xo.includes(o.variant)&&Po.includes(o.color),style:({theme:o})=>({boxShadow:o.customShadows.z8,color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:o.vars.palette.grey[400]},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,"&:hover":{backgroundColor:o.vars.palette.grey[700]},[b.dark]:{color:o.vars.palette.grey[800],"&:hover":{backgroundColor:o.vars.palette.grey[400]}}}})}]},To={colors:N.map(o=>({props:({ownerState:r})=>!r.disabled&&ko.includes(r.variant)&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].main,border:`solid 1px ${k(r.vars.palette[o].mainChannel,.48)}`,"&:hover":{backgroundColor:k(r.vars.palette[o].mainChannel,.08)}})})),base:[{props:({ownerState:o})=>ko.includes(o.variant),style:({theme:o})=>({boxShadow:"none",backgroundColor:"transparent",color:o.vars.palette.text.secondary,border:`solid 1px ${k(o.vars.palette.grey["500Channel"],.32)}`,"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor",backgroundColor:o.vars.palette.action.hover},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.text.primary},[`&.${fabClasses.disabled}`]:{backgroundColor:"transparent",border:`1px solid ${o.vars.palette.action.disabledBackground}`}})}]},Io={colors:N.map(o=>({props:({ownerState:r})=>!r.disabled&&Mo.includes(r.variant)&&r.color===o,style:({theme:r})=>({boxShadow:"none",color:r.vars.palette[o].dark,backgroundColor:k(r.vars.palette[o].mainChannel,.16),"&:hover":{boxShadow:"none",backgroundColor:k(r.vars.palette[o].mainChannel,.32)},[b.dark]:{color:r.vars.palette[o].light}})})),base:[{props:({ownerState:o})=>Mo.includes(o.variant)&&Po.includes(o.color),style:({theme:o})=>({boxShadow:"none",color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:o.vars.palette.grey[400]},[`&.${fabClasses.colorInherit}`]:{color:o.vars.palette.text.primary,backgroundColor:k(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:k(o.vars.palette.grey["500Channel"],.24)}}})}]},te=[{props:({ownerState:o})=>ee.includes(o.variant),style:({theme:o})=>({height:48,width:"auto",minHeight:48,borderRadius:48/2,gap:o.spacing(1),padding:o.spacing(0,2),[`&.${fabClasses.sizeSmall}`]:{height:34,minHeight:34,borderRadius:34/2,gap:o.spacing(.5),padding:o.spacing(0,1)},[`&.${fabClasses.sizeMedium}`]:{height:40,minHeight:40,borderRadius:40/2}})}],ae={defaultProps:{color:"primary"},variants:[...So.base,...So.colors,...To.base,...To.colors,...Io.base,...Io.colors,...te],styleOverrides:{}},$o={MuiFab:ae};var Ro=["primary","secondary","info","success","warning","error"];function Oo(o,r){return Ro.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var C=`& .${buttonGroupClasses.firstButton}, & .${buttonGroupClasses.middleButton}`,wo={colors:Ro.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({[C]:{borderColor:k(r.vars.palette[o].darkChannel,.24),[b.dark]:{borderColor:k(r.vars.palette[o].lightChannel,.24)}},[`&.${buttonGroupClasses.vertical}`]:{[C]:{borderColor:k(r.vars.palette[o].darkChannel,.24),[b.dark]:{borderColor:k(r.vars.palette[o].lightChannel,.24)}}}})})),base:[{props:({ownerState:o})=>o.variant==="soft",style:({theme:o})=>({[C]:{borderRight:`solid 1px ${k(o.vars.palette.grey["500Channel"],.32)}`,[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}},[`&.${buttonGroupClasses.vertical}`]:{[C]:{borderRight:"none",borderBottom:`solid 1px ${k(o.vars.palette.grey["500Channel"],.32)}`,[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}})}]},ne={defaultProps:{disableElevation:!0},variants:[...wo.base,...wo.colors],styleOverrides:{contained:({theme:o,ownerState:r})=>{let t={colors:Oo(r,a=>({[C]:{borderColor:k(o.vars.palette[a].darkChannel,.48)}})),inheritColor:{...r.color==="inherit"&&{[C]:{borderColor:k(o.vars.palette.grey["500Channel"],.32)}}},disabled:{...r.disabled&&{[C]:{[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}}};return {...t.inheritColor,...t.colors,...t.disabled}},text:({theme:o,ownerState:r})=>{let t={colors:Oo(r,a=>({[C]:{borderColor:k(o.vars.palette[a].mainChannel,.48)}})),inheritColor:{...r.color==="inherit"&&{[C]:{borderColor:k(o.vars.palette.grey["500Channel"],.32)}}},disabled:{...r.disabled&&{[C]:{[`&.${buttonGroupClasses.disabled}`]:{borderColor:o.vars.palette.action.disabledBackground}}}}};return {...t.inheritColor,...t.colors,...t.disabled}}}},Lo={MuiButtonGroup:ne};var le=["primary","secondary","info","success","warning","error"];function ie(o,r){return le.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var se={styleOverrides:{root:({theme:o,ownerState:r})=>{let t={colors:ie(r,a=>({"&:hover":{borderColor:k(o.vars.palette[a].mainChannel,.48),backgroundColor:k(o.vars.palette[a].mainChannel,o.vars.palette.action.hoverOpacity)}})),selected:{[`&.${toggleButtonClasses.selected}`]:{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor"}},disabled:{...r.disabled&&{[`&.${toggleButtonClasses.selected}`]:{color:o.vars.palette.action.disabled,backgroundColor:o.vars.palette.action.selected,borderColor:o.vars.palette.action.disabledBackground}}}};return {...t.colors,...t.selected,...t.disabled}}}},pe={styleOverrides:{root:({theme:o})=>({gap:4,padding:4,border:`solid 1px ${k(o.vars.palette.grey["500Channel"],.08)}`}),grouped:{[`&.${toggleButtonClasses.root}`]:{border:"none",borderRadius:"inherit"},[`&.${toggleButtonClasses.selected}`]:{boxShadow:"none"}}}},Bo={MuiToggleButton:se,MuiToggleButtonGroup:pe};var de={styleOverrides:{root:({theme:o})=>({position:"relative",boxShadow:o.customShadows.card,borderRadius:o.shape.borderRadius*2,zIndex:0})}},ce={defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:"4px"}},styleOverrides:{root:({theme:o})=>({padding:o.spacing(3,3,0)})}},me={styleOverrides:{root:({theme:o})=>({padding:o.spacing(3)})}},Ao={MuiCard:de,MuiCardHeader:ce,MuiCardContent:me};var ue=o=>jsx(c,{...o,children:jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}),ge=o=>jsx(c,{...o,children:jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}),Ce=o=>jsx(c,{...o,children:jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}),ve={defaultProps:{size:"small",icon:jsx(ue,{}),checkedIcon:jsx(ge,{}),indeterminateIcon:jsx(Ce,{})},styleOverrides:{root:({ownerState:o,theme:r})=>({padding:r.spacing(1),...o.color==="default"&&{[`&.${checkboxClasses.checked}`]:{color:r.vars.palette.text.primary}},[`&.${checkboxClasses.disabled}`]:{color:r.vars.palette.action.disabled}})}},zo={MuiCheckbox:ve};var ye=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10M8.97 8.97a.75.75 0 0 1 1.06 0L12 10.94l1.97-1.97a.75.75 0 0 1 1.06 1.06L13.06 12l1.97 1.97a.75.75 0 0 1-1.06 1.06L12 13.06l-1.97 1.97a.75.75 0 0 1-1.06-1.06L10.94 12l-1.97-1.97a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})}),Vo=["primary","secondary","info","success","warning","error"];function be(o,r){return Vo.reduce((a,s)=>(!o.disabled&&o.color===s&&(a=r(s)),a),{})}var Fo={colors:Vo.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({color:r.vars.palette[o].dark,backgroundColor:k(r.vars.palette[o].mainChannel,.16),"&:hover":{backgroundColor:k(r.vars.palette[o].mainChannel,.32)},[b.dark]:{color:r.vars.palette[o].light}})})),inheritColor:[{props:({ownerState:o})=>o.variant==="soft"&&o.color==="default",style:({theme:o})=>({backgroundColor:k(o.vars.palette.grey["500Channel"],.16),"&:hover":{backgroundColor:k(o.vars.palette.grey["500Channel"],.32)}})}]},fe={defaultProps:{deleteIcon:jsx(ye,{}),color:"primary"},variants:[...Fo.inheritColor,...Fo.colors],styleOverrides:{root:({ownerState:o,theme:r})=>{let t={colors:be(o,a=>({[`& .${chipClasses.avatar}`]:{color:r.vars.palette[a].lighter,backgroundColor:r.vars.palette[a].dark}})),disabled:{[`&.${chipClasses.disabled}`]:{opacity:1,[`& .${chipClasses.avatar}`]:{color:r.vars.palette.action.disabled,backgroundColor:r.vars.palette.action.disabledBackground},...o.variant==="outlined"&&{color:r.vars.palette.action.disabled,borderColor:r.vars.palette.action.disabledBackground},...["filled","soft"].includes(o.variant)&&{color:r.vars.palette.action.disabled,backgroundColor:r.vars.palette.action.disabledBackground}}}};return {...t.colors,...t.disabled}},label:({theme:o})=>({fontWeight:o.typography.fontWeightMedium}),icon:{color:"currentColor"},deleteIcon:{opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},sizeMedium:({theme:o})=>({borderRadius:o.shape.borderRadius*1.25}),sizeSmall:({theme:o})=>({borderRadius:o.shape.borderRadius}),filled:({ownerState:o,theme:r})=>({...{defaultColor:{...!o.disabled&&o.color==="default"&&{color:r.vars.palette.common.white,backgroundColor:r.vars.palette.text.primary,[`& .${chipClasses.avatar}`]:{color:r.vars.palette.text.primary},"&:hover":{backgroundColor:r.vars.palette.grey[700]},[b.dark]:{color:r.vars.palette.grey[800],"&:hover":{backgroundColor:r.vars.palette.grey[100]}}}}}.defaultColor}),outlined:({ownerState:o,theme:r})=>({...{defaultColor:{...!o.disabled&&o.color==="default"&&{borderColor:k(r.vars.palette.grey["500Channel"],.32)}}}.defaultColor})}},Go={MuiChip:fe};var xe={styleOverrides:{paper:({ownerState:o,theme:r})=>({boxShadow:r.customShadows.dialog,borderRadius:r.shape.borderRadius*2,...!o.fullScreen&&{margin:r.spacing(2)}}),paperFullScreen:{borderRadius:0}}},ke={styleOverrides:{root:({theme:o})=>({padding:o.spacing(3)})}},Me={styleOverrides:{root:({theme:o})=>({padding:o.spacing(0,3)}),dividers:({theme:o})=>({borderTop:0,borderBottomStyle:"dashed",paddingBottom:o.spacing(3)})}},Se={defaultProps:{disableSpacing:!0},styleOverrides:{root:({theme:o})=>({padding:o.spacing(3),"& > :not(:first-of-type)":{marginLeft:o.spacing(1.5)}})}},Wo={MuiDialog:xe,MuiDialogTitle:ke,MuiDialogContent:Me,MuiDialogActions:Se};var Te={styleOverrides:{paper:({theme:o})=>({backgroundColor:k(o.vars.palette.background.paperChannel,1),backgroundImage:"none !important"}),paperAnchorRight:({ownerState:o,theme:r})=>({...o.variant==="temporary"&&{...s({theme:r,color:k(r.vars.palette.background.paperChannel,1)}),boxShadow:`-40px 40px 80px -8px ${k(r.vars.palette.grey["500Channel"],.24)}`,[b.dark]:{boxShadow:`-40px 40px 80px -8px ${k(r.vars.palette.common.blackChannel,.24)}`}}}),paperAnchorLeft:({ownerState:o,theme:r})=>({...o.variant==="temporary"&&{...s({theme:r,color:k(r.vars.palette.background.paperChannel,1)}),boxShadow:`40px 40px 80px -8px ${k(r.vars.palette.grey["500Channel"],.24)}`,[b.dark]:{boxShadow:`40px 40px 80px -8px ${k(r.vars.palette.common.blackChannel,.24)}`}}})}},Ho={MuiDrawer:Te};var Ie={styleOverrides:{root:({theme:o})=>({...o.typography.body2,color:o.vars.palette.text.disabled,[`&.${inputLabelClasses.shrink}`]:{...o.typography.body1,fontWeight:600,color:o.vars.palette.text.secondary,zIndex:1,[`&.${inputLabelClasses.focused}`]:{color:o.vars.palette.text.primary},[`&.${inputLabelClasses.error}`]:{color:o.vars.palette.error.main},[`&.${inputLabelClasses.disabled}`]:{color:o.vars.palette.text.disabled},[`&.${inputLabelClasses.filled}`]:{transform:"translate(12px, 6px) scale(0.75)"}}})}},Pe={defaultProps:{component:"div"},styleOverrides:{root:({theme:o})=>({marginTop:o.spacing(1)})}},$e={styleOverrides:{label:({theme:o})=>({...o.typography.body2})}},Eo={MuiFormLabel:Ie,MuiFormHelperText:Pe,MuiFormControlLabel:$e};var Oe={defaultProps:{underline:"hover"},styleOverrides:{}},qo={MuiLink:Oe};var we={styleOverrides:{root:({theme:o})=>({color:"inherit",minWidth:"auto",marginRight:o.spacing(2)})}},Re={styleOverrides:{root:({theme:o})=>({minWidth:"auto",marginRight:o.spacing(2)})}},Le={defaultProps:{primaryTypographyProps:{typography:"subtitle2"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}},Zo={MuiListItemIcon:we,MuiListItemAvatar:Re,MuiListItemText:Le};var Be={styleOverrides:{root:({theme:o})=>({...t(o)})}},No={MuiMenuItem:Be};var He={defaultProps:{slots:{columnSortedAscendingIcon:o=>jsx(X,{sx:{color:"text.primary"},...o}),columnSortedDescendingIcon:o=>jsx(jo,{sx:{color:"text.primary"},...o}),columnUnsortedIcon:o=>jsx(X,{fontSize:o.fontSize,className:o.className,sx:{color:"text.disabled"}}),columnMenuIcon:o=>jsx(Ne,{width:20,...o}),columnMenuSortAscendingIcon:o=>jsx(X,{...o}),columnMenuSortDescendingIcon:o=>jsx(jo,{...o}),columnMenuFilterIcon:o=>jsx(Y,{...o}),columnMenuHideIcon:o=>jsx(qe,{...o}),columnMenuManageColumnsIcon:o=>jsx(Xo,{...o}),columnSelectorIcon:o=>jsx(Xo,{...o}),filterPanelDeleteIcon:o=>jsx(Yo,{...o}),openFilterButtonIcon:o=>jsx(Y,{...o}),columnFilteredIcon:o=>jsx(Y,{sx:{width:16,color:"text.primary"},...o}),densityCompactIcon:o=>jsx(_e,{...o}),densityStandardIcon:o=>jsx(je,{...o}),densityComfortableIcon:o=>jsx(Ue,{...o}),exportIcon:o=>jsx(Ee,{...o}),quickFilterIcon:o=>jsx(Ze,{sx:{width:24,height:24,color:"text.secondary"},...o}),quickFilterClearIcon:o=>jsx(Yo,{...o})},slotProps:{basePopper:{placement:"bottom-end"},baseChip:{size:"small"},baseSwitch:{size:"small"},baseCheckbox:{size:"small",disableRipple:!0},baseInputLabel:{shrink:!0},baseTextField:{variant:"outlined"},baseSelect:{native:!0,variant:"outlined"}}},styleOverrides:{root:({theme:o})=>({"--unstable_DataGrid-radius":0,"--DataGrid-rowBorderColor":o.vars.palette.divider,"--DataGrid-containerBackground":o.vars.palette.background.neutral,"--unstable_DataGrid-headWeight":o.typography.fontWeightSemiBold,borderWidth:0,scrollbarWidth:"thin",scrollbarColor:`${k(o.vars.palette.text.disabledChannel,.4)} ${k(o.vars.palette.text.disabledChannel,.08)}`,"& .MuiDataGrid-filler > div":{borderTopStyle:"dashed"},"& .MuiDataGrid-topContainer::after":{height:0},"& .MuiDataGrid-filler":{borderBottom:"0 !important"}}),withBorderColor:{borderColor:"var(--DataGrid-rowBorderColor)"},columnHeader:({theme:o})=>({fontSize:14,color:o.vars.palette.text.secondary,borderBottom:"0 !important","&--sorted":{color:o.vars.palette.text.primary}}),columnSeparator:{color:"var(--DataGrid-rowBorderColor)"},cell:({theme:o})=>({borderTopStyle:"dashed","&--editing":{boxShadow:"none",backgroundColor:k(o.vars.palette.primary.mainChannel,.08)}}),toolbarContainer:({theme:o})=>({gap:o.spacing(2),padding:o.spacing(2),[`& .${textFieldClasses.root}`]:{padding:0,width:"100%",[`& .${inputBaseClasses.input}`]:{paddingTop:o.spacing(2),paddingBottom:o.spacing(2)},[o.breakpoints.up("md")]:{width:"unset"}}}),paper:({theme:o})=>({...s({theme:o,dropdown:!0}),padding:0}),menu:({theme:o})=>({[`& .${paperClasses.root}`]:{...s({theme:o,dropdown:!0}),minWidth:140},[`& .${listClasses.root}`]:{padding:0,[`& .${listItemIconClasses.root}`]:{minWidth:0,marginRight:o.spacing(2)}}}),menuIcon:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{margin:o.spacing(0,1),padding:o.spacing(.25)}}),iconButtonContainer:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{padding:o.spacing(.25),marginLeft:o.spacing(1)}}),footerContainer:{minHeight:"auto",borderTopStyle:"dashed"},selectedRowCount:{display:"none",whiteSpace:"nowrap"},overlay:({theme:o})=>({[`& .${circularProgressClasses.root}`]:{color:o.vars.palette.text.primary}}),columnsManagementHeader:({theme:o})=>({padding:o.spacing(2.5,2,0,2),[`& .${inputBaseClasses.input}`]:{paddingTop:o.spacing(2),paddingBottom:o.spacing(2)}}),columnsManagement:({theme:o})=>({gap:o.spacing(.5),padding:o.spacing(2,1.5),[`& .${formControlLabelClasses.root}`]:{gap:4,marginLeft:0}}),columnsManagementFooter:({theme:o})=>({borderTopStyle:"dashed",padding:o.spacing(1.5),[`& .${formControlLabelClasses.root}`]:{gap:4,marginLeft:0}}),filterForm:({theme:o})=>({alignItems:"center",gap:o.spacing(1.5),padding:o.spacing(2),[`& .${inputLabelClasses.shrink}`]:{transform:"translate(14px, -9px) scale(0.75)"}}),filterFormDeleteIcon:({theme:o})=>({[`& .${iconButtonClasses.root}`]:{padding:o.spacing(.25),backgroundColor:k(o.vars.palette.grey["500Channel"],.16),[`& .${svgIconClasses.root}`]:{width:16,height:16}}})}},Jo={MuiDataGrid:He},X=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",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"}),jsx("path",{fill:"currentColor",d:"M11.293 16H5.57c-.528 0-.771-.791-.37-1.205l2.406-2.482z",opacity:"0.5"})]}),jo=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",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"}),jsx("path",{fill:"currentColor",d:"M11.293 8H5.57c-.528 0-.771.79-.37 1.205l2.406 2.481z",opacity:"0.5"})]}),Y=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",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"})}),Ee=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.845 7.905a.75.75 0 0 0 1.06 0l1.72-1.72v8.19a.75.75 0 0 0 1.5 0v-8.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06",clipRule:"evenodd"}),jsx("path",{fill:"currentColor",d:"M12.375 20.375a8 8 0 0 0 8-8h-3.75c-.943 0-1.414 0-1.707.293c-.293.293-.293.764-.293 1.707a2.25 2.25 0 0 1-4.5 0c0-.943 0-1.414-.293-1.707c-.293-.293-.764-.293-1.707-.293h-3.75a8 8 0 0 0 8 8"})]}),Xo=({...o})=>jsxs(c,{sx:{width:20,height:20,...o.sx},...o,children:[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"}),jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 12c0 1.64.425 2.191 1.275 3.296C4.972 17.5 7.818 20 12 20c4.182 0 7.028-2.5 8.725-4.704C21.575 14.192 22 13.639 22 12c0-1.64-.425-2.191-1.275-3.296C19.028 6.5 16.182 4 12 4C7.818 4 4.972 6.5 3.275 8.704C2.425 9.81 2 10.361 2 12m10-3.75a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5",clipRule:"evenodd"})]}),qe=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.606 6.08a1 1 0 0 1 1.313.526L2 7l.92-.394v-.001c0-.001 0 0 0 0l.003.009l.021.045c.02.042.051.108.094.194c.086.172.219.424.4.729a13.37 13.37 0 0 0 1.67 2.237a11.966 11.966 0 0 0 .59.592C7.18 11.8 9.251 13 12 13a8.706 8.706 0 0 0 3.22-.602c1.227-.483 2.254-1.21 3.096-1.998a13.053 13.053 0 0 0 2.733-3.725l.027-.058l.005-.011a1 1 0 0 1 1.838.788L22 7l.92.394l-.003.005l-.004.008l-.011.026l-.04.087a14.045 14.045 0 0 1-.741 1.348a15.368 15.368 0 0 1-1.711 2.256l.797.797a1 1 0 0 1-1.414 1.415l-.84-.84a11.81 11.81 0 0 1-1.897 1.256l.782 1.202a1 1 0 1 1-1.676 1.091l-.986-1.514c-.679.208-1.404.355-2.176.424V16.5a1 1 0 0 1-2 0v-1.544c-.775-.07-1.5-.217-2.177-.425l-.985 1.514a1 1 0 0 1-1.676-1.09l.782-1.203c-.7-.37-1.332-.8-1.897-1.257l-.84.84a1 1 0 0 1-1.414-1.414l.797-.797a15.406 15.406 0 0 1-1.87-2.519a13.457 13.457 0 0 1-.591-1.107a5.418 5.418 0 0 1-.033-.072l-.01-.021l-.002-.007l-.001-.002v-.001C1.08 7.395 1.08 7.394 2 7l-.919.395a1 1 0 0 1 .525-1.314",clipRule:"evenodd"})}),Ze=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",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"})}),Yo=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",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"})}),Ne=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",children:[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"}),jsx("path",{fill:"currentColor",d:"M5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4m7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4m7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4"})]})}),_e=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsx("path",{fill:"currentColor",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"})}),Ue=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",fillRule:"evenodd",children:[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"}),jsx("path",{fill:"currentColor",d:"M5 3a2 2 0 0 0-2 2v6h18V5a2 2 0 0 0-2-2zm16 10H3v6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"})]})}),je=({...o})=>jsx(c,{sx:{width:20,height:20,...o.sx},...o,children:jsxs("g",{fill:"none",children:[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"}),jsx("path",{fill:"currentColor",d:"M21 16v3a2 2 0 0 1-1.85 1.995L19 21H5a2 2 0 0 1-1.995-1.85L3 19v-3zm0-6v4H3v-4zm-2-7a2 2 0 0 1 2 2v3H3V5a2 2 0 0 1 2-2z"})]})});var Ko=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28"})}),Je=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M13.83 19a1 1 0 0 1-.78-.37l-4.83-6a1 1 0 0 1 0-1.27l5-6a1 1 0 0 1 1.54 1.28L10.29 12l4.32 5.36a1 1 0 0 1-.78 1.64"})}),Qo=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M10 19a1 1 0 0 1-.64-.23a1 1 0 0 1-.13-1.41L13.71 12L9.39 6.63a1 1 0 0 1 .15-1.41a1 1 0 0 1 1.46.15l4.83 6a1 1 0 0 1 0 1.27l-5 6A1 1 0 0 1 10 19"})}),Ke=o=>jsxs(c,{...o,children:[jsx("path",{fill:"currentColor",d:"M6.96 2c.418 0 .756.31.756.692V4.09c.67-.012 1.422-.012 2.268-.012h4.032c.846 0 1.597 0 2.268.012V2.692c0-.382.338-.692.756-.692s.756.31.756.692V4.15c1.45.106 2.403.368 3.103 1.008c.7.641.985 1.513 1.101 2.842v1H2V8c.116-1.329.401-2.2 1.101-2.842c.7-.64 1.652-.902 3.103-1.008V2.692c0-.382.339-.692.756-.692"}),jsx("path",{fill:"currentColor",d:"M22 14v-2c0-.839-.013-2.335-.026-3H2.006c-.013.665 0 2.161 0 3v2c0 3.771 0 5.657 1.17 6.828C4.349 22 6.234 22 10.004 22h4c3.77 0 5.654 0 6.826-1.172C22 19.657 22 17.771 22 14",opacity:"0.5"}),jsx("path",{fill:"currentColor",d:"M18 16.5a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0"})]}),Qe=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.75a9.25 9.25 0 1 0 0 18.5a9.25 9.25 0 0 0 0-18.5M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12S17.937 22.75 12 22.75S1.25 17.937 1.25 12M12 7.25a.75.75 0 0 1 .75.75v3.69l2.28 2.28a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1-.22-.53V8a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})}),u={date:{openPickerIcon:Ke,leftArrowIcon:Je,rightArrowIcon:Qo,switchViewIcon:Ko},time:{openPickerIcon:Qe,rightArrowIcon:Qo,switchViewIcon:Ko}},ot={defaultProps:{slots:u.date}},rt={defaultProps:{slots:u.date}},et={defaultProps:{slots:u.date}},tt={defaultProps:{slots:u.date}},at={defaultProps:{slots:u.date}},nt={defaultProps:{slots:u.date}},lt={defaultProps:{slots:u.date}},it={defaultProps:{slots:u.time}},st={defaultProps:{slots:u.time}},pt={defaultProps:{slots:u.time}},dt={defaultProps:{slots:u.time}},ct={styleOverrides:{root:({theme:o})=>({[`& .${dialogActionsClasses.root}`]:{[`& .${buttonClasses.root}`]:{["&:last-of-type"]:{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,[b.dark]:{color:o.vars.palette.grey[800]}}}}})}},mt={styleOverrides:{paper:({theme:o})=>({boxShadow:o.customShadows.dropdown,borderRadius:o.shape.borderRadius*1.5})}},or={MuiPickersPopper:mt,MuiPickersLayout:ct,MuiDatePicker:ot,MuiDateTimePicker:rt,MuiStaticDatePicker:et,MuiDesktopDatePicker:tt,MuiDesktopDateTimePicker:at,MuiMobileDatePicker:nt,MuiMobileDateTimePicker:lt,MuiTimePicker:it,MuiMobileTimePicker:st,MuiStaticTimePicker:pt,MuiDesktopTimePicker:dt};var gt={styleOverrides:{label:({theme:o})=>({...o.typography.body2}),iconContainer:{width:"auto"}}},rr={MuiTreeItem:gt};var Ct=["primary","secondary","info","success","warning","error"],er={colors:Ct.map(o=>({props:({ownerState:r})=>!r.disabled&&r.variant==="soft"&&r.color===o,style:({theme:r})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:r.typography.fontWeightSemiBold,color:r.vars.palette[o].dark,backgroundColor:k(r.vars.palette[o].mainChannel,.08),"&:hover":{backgroundColor:k(r.vars.palette[o].mainChannel,.16)},[b.dark]:{color:r.vars.palette[o].light}}}})})),standardColor:[{props:({ownerState:o})=>o.variant==="soft"&&o.color==="standard",style:({theme:o})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:o.typography.fontWeightSemiBold,backgroundColor:k(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:k(o.vars.palette.grey["500Channel"],.16)}}}})}]},vt={variants:[...er.standardColor,...er.colors],styleOverrides:{text:({ownerState:o,theme:r})=>({[`& .${paginationItemClasses.root}`]:{[`&.${paginationItemClasses.selected}`]:{fontWeight:r.typography.fontWeightSemiBold,...o.color==="standard"&&{color:r.vars.palette.common.white,backgroundColor:r.vars.palette.text.primary,"&:hover":{backgroundColor:r.vars.palette.grey[700]},[b.dark]:{color:r.vars.palette.grey[800],"&:hover":{backgroundColor:r.vars.palette.grey[100]}}}}}}),outlined:({ownerState:o,theme:r})=>({[`& .${paginationItemClasses.root}`]:{borderColor:k(r.vars.palette.grey["500Channel"],.24),[`&.${paginationItemClasses.selected}`]:{borderColor:"currentColor",fontWeight:r.typography.fontWeightSemiBold,...o.color==="standard"&&{backgroundColor:k(r.vars.palette.grey["500Channel"],.08)}}}})}},tr={MuiPagination:vt};var ht={defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:({theme:o})=>({borderColor:k(o.vars.palette.grey["500Channel"],.16)})}},ar={MuiPaper:ht};var bt={styleOverrides:{paper:({theme:o})=>({...s({theme:o,dropdown:!0}),[`& .${listClasses.root}`]:{paddingTop:0,paddingBottom:0}})}},nr={MuiPopover:bt};var ft=["primary","secondary","info","success","warning","error"];function xt(o,r){return ft.reduce((a,s)=>(o.color===s&&(a=r(s)),a),{})}var kt={styleOverrides:{root:({theme:o,ownerState:r})=>{let t={colors:xt(r,a=>({backgroundColor:k(o.vars.palette[a].mainChannel,.24)})),inheritColor:{...r.color==="inherit"&&{"&::before":{display:"none"},backgroundColor:k(o.vars.palette.text.primaryChannel,.24)}}};return {borderRadius:4,...r.variant!=="buffer"&&{...t.inheritColor,...t.colors}}},bar:{borderRadius:"inherit"}}},lr={MuiLinearProgress:kt};var Mt=o=>jsx(c,{...o,children:jsx("path",{d:"M12 2C13.9778 2 15.9112 2.58649 17.5557 3.6853C19.2002 4.78412 20.4819 6.3459 21.2388 8.17317C21.9957 10.0004 22.1937 12.0111 21.8079 13.9509C21.422 15.8907 20.4696 17.6725 19.0711 19.0711C17.6725 20.4696 15.8907 21.422 13.9509 21.8079C12.0111 22.1937 10.0004 21.9957 8.17317 21.2388C6.3459 20.4819 4.78412 19.2002 3.6853 17.5557C2.58649 15.9112 2 13.9778 2 12C2 6.477 6.477 2 12 2ZM12 3.5C9.74566 3.5 7.58365 4.39553 5.98959 5.98959C4.39553 7.58365 3.5 9.74566 3.5 12C3.5 14.2543 4.39553 16.4163 5.98959 18.0104C7.58365 19.6045 9.74566 20.5 12 20.5C14.2543 20.5 16.4163 19.6045 18.0104 18.0104C19.6045 16.4163 20.5 14.2543 20.5 12C20.5 9.74566 19.6045 7.58365 18.0104 5.98959C16.4163 4.39553 14.2543 3.5 12 3.5Z",fill:"currentColor"})}),St=o=>jsx(c,{...o,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 8C10.9391 8 9.92172 8.42143 9.17157 9.17157C8.42143 9.92172 8 10.9391 8 12C8 13.0609 8.42143 14.0783 9.17157 14.8284C9.92172 15.5786 10.9391 16 12 16C13.0609 16 14.0783 15.5786 14.8284 14.8284C15.5786 14.0783 16 13.0609 16 12C16 10.9391 15.5786 9.92172 14.8284 9.17157C14.0783 8.42143 13.0609 8 12 8Z",fill:"currentColor"})}),Tt={defaultProps:{size:"small",icon:jsx(Mt,{}),checkedIcon:jsx(St,{})},styleOverrides:{root:({ownerState:o,theme:r})=>({padding:r.spacing(1),...o.color==="default"&&{[`&.${radioClasses.checked}`]:{color:r.vars.palette.text.primary}},[`&.${radioClasses.disabled}`]:{color:r.vars.palette.action.disabled}})}},pr={MuiRadio:Tt};var dr=o=>jsx(c,{...o,children: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"})}),$t={defaultProps:{emptyIcon:jsx(dr,{}),icon:jsx(dr,{})},styleOverrides:{root:{[`&.${ratingClasses.disabled}`]:{opacity:.48}},iconEmpty:({theme:o})=>({color:k(o.vars.palette.grey["500Channel"],.48)}),sizeSmall:{[`& .${svgIconClasses.root}`]:{width:20,height:20}},sizeMedium:{[`& .${svgIconClasses.root}`]:{width:24,height:24}},sizeLarge:{[`& .${svgIconClasses.root}`]:{width:28,height:28}}}},cr={MuiRating:$t};var ur=o=>jsx(c,{...o,children:jsx("path",{fill:"currentColor",d:"M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15a1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16"})}),wt={defaultProps:{IconComponent:ur},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},Rt={defaultProps:{IconComponent:ur},styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},gr={MuiSelect:wt,MuiNativeSelect:Rt};var Lt={defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:({theme:o})=>({backgroundColor:k(o.vars.palette.grey["400Channel"],.12)}),rounded:({theme:o})=>({borderRadius:o.shape.borderRadius*2})}},Cr={MuiSkeleton:Lt};var v={rail:{small:6,medium:10},thumb:{small:16,medium:20},mark:{small:4,medium:6}},Bt={defaultProps:{size:"small"},variants:[{props:({ownerState:o})=>o.color==="inherit",style:({theme:o})=>({[`& .${sliderClasses.markActive}`]:{[b.dark]:{backgroundColor:k(o.vars.palette.grey["800Channel"],.48)}}})},{props:({ownerState:o})=>!!o.disabled,style:({theme:o})=>({[`&.${sliderClasses.disabled}`]:{color:k(o.vars.palette.grey["500Channel"],o.vars.palette.action.disabledOpacity)}})}],styleOverrides:{root:({theme:o})=>({[`& .${sliderClasses.thumb}`]:{borderWidth:1,borderStyle:"solid",width:v.thumb.medium,height:v.thumb.medium,boxShadow:o.customShadows.z1,color:o.vars.palette.common.white,borderColor:k(o.vars.palette.grey["500Channel"],.08),"&::before":{opacity:.4,boxShadow:"none",width:"calc(100% - 4px)",height:"calc(100% - 4px)",backgroundImage:`linear-gradient(180deg, ${o.vars.palette.grey[500]} 0%, ${k(o.vars.palette.grey["500Channel"],0)} 100%)`,[b.dark]:{opacity:.8}}}}),rail:({theme:o})=>({opacity:.12,height:v.rail.medium,backgroundColor:o.vars.palette.grey[500]}),track:{height:v.rail.medium},mark:({theme:o})=>({width:1,height:v.mark.medium,backgroundColor:k(o.vars.palette.grey["500Channel"],.48),'&[data-index="0"]':{display:"none"}}),markActive:({theme:o})=>({backgroundColor:k(o.vars.palette.common.whiteChannel,.64)}),markLabel:({theme:o})=>({fontSize:o.typography.pxToRem(13),color:o.vars.palette.text.disabled}),valueLabel:({theme:o})=>({borderRadius:8,backgroundColor:o.vars.palette.grey[800],[b.dark]:{backgroundColor:o.vars.palette.grey[700]}}),sizeSmall:{[`& .${sliderClasses.thumb}`]:{width:v.thumb.small,height:v.thumb.small},[`& .${sliderClasses.rail}`]:{height:v.rail.small},[`& .${sliderClasses.track}`]:{height:v.rail.small},[`& .${sliderClasses.mark}`]:{height:v.mark.small}}}},vr={MuiSlider:Bt};var At={defaultProps:{useFlexGap:!0},styleOverrides:{}},hr={MuiStack:At};var Dt={styleOverrides:{line:({theme:o})=>({borderColor:o.vars.palette.divider})}},yr={MuiStepConnector:Dt};var zt={styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}},br={MuiSvgIcon:zt};var Ft={styleOverrides:{root:{alignItems:"center"},switchBase:({ownerState:o,theme:r})=>({top:"unset",transform:"translateX(6px)",[`&.${switchClasses.checked}`]:{[`& .${switchClasses.thumb}`]:{...o.color==="default"&&{[b.dark]:{color:r.vars.palette.grey[800]}}},[`&+.${switchClasses.track}`]:{opacity:1,...o.color==="default"&&{backgroundColor:r.vars.palette.text.primary}}},[`&.${switchClasses.disabled}`]:{[`& .${switchClasses.thumb}`]:{opacity:1,[b.dark]:{opacity:.48}},[`&+.${switchClasses.track}`]:{opacity:.48}}}),track:({theme:o})=>({opacity:1,borderRadius:10,backgroundColor:k(o.vars.palette.grey["500Channel"],.48)}),thumb:({theme:o})=>({color:o.vars.palette.common.white}),sizeMedium:{[`& .${switchClasses.track}`]:{height:20},[`& .${switchClasses.thumb}`]:{width:14,height:14}},sizeSmall:{[`& .${switchClasses.track}`]:{height:16},[`& .${switchClasses.thumb}`]:{width:10,height:10}}}},fr={MuiSwitch:Ft};var Wt={styleOverrides:{root:({theme:o})=>({position:"relative",scrollbarWidth:"thin",scrollbarColor:`${k(o.vars.palette.text.disabledChannel,.4)} ${k(o.vars.palette.text.disabledChannel,.08)}`})}},Ht={styleOverrides:{root:({theme:o})=>({"--palette-TableCell-border":o.vars.palette.divider})}},Et={styleOverrides:{root:({theme:o})=>({[`&.${tableRowClasses.selected}`]:{backgroundColor:k(o.vars.palette.primary.darkChannel,.04),"&:hover":{backgroundColor:k(o.vars.palette.primary.darkChannel,.08)}},"&:last-of-type":{[`& .${tableCellClasses.root}`]:{borderColor:"transparent"}}})}},qt={styleOverrides:{root:{borderBottomStyle:"dashed",borderBottomWidth:"1px",borderBottomColor:"var(--palette-TableCell-border)"},head:({theme:o})=>({fontSize:14,color:o.vars.palette.text.secondary,fontWeight:o.typography.fontWeightSemiBold,backgroundColor:o.vars.palette.background.neutral}),stickyHeader:({theme:o})=>({backgroundColor:o.vars.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${o.vars.palette.background.neutral} 0%, ${o.vars.palette.background.neutral} 100%)`}),paddingCheckbox:({theme:o})=>({paddingLeft:o.spacing(1)})}},Zt={defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},slotProps:{select:{name:"table-pagination-select"}}},styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:({theme:o})=>({paddingLeft:8,"&:focus":{borderRadius:o.shape.borderRadius}}),selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}},xr={MuiTable:Ht,MuiTableRow:Et,MuiTableCell:qt,MuiTableContainer:Wt,MuiTablePagination:Zt};var _t={defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{flexContainer:({ownerState:o,theme:r})=>({...o.variant!=="fullWidth"&&{gap:"24px",[r.breakpoints.up("sm")]:{gap:"40px"}}})}},Ut={defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({theme:o})=>({opacity:1,minWidth:48,minHeight:48,padding:o.spacing(1,0),color:o.vars.palette.text.secondary,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight,[`&.${tabClasses.selected}`]:{color:o.vars.palette.text.primary,fontWeight:o.typography.fontWeightSemiBold}})}},kr={MuiTabs:_t,MuiTab:Ut};var Yt={styleOverrides:{root:({theme:o})=>({[`&.${inputBaseClasses.disabled}`]:{"& svg":{color:o.vars.palette.text.disabled}}}),input:({theme:o,ownerState:r})=>({fontSize:o.typography.pxToRem(15),[o.breakpoints.down("sm")]:{fontSize:o.typography.pxToRem(16)},"&::placeholder":{opacity:1,color:o.vars.palette.text.disabled},...r.size==="small"&&{padding:"9.5px 14px !important"}})}},Jt={styleOverrides:{underline:({theme:o})=>({"&::before":{borderBottomColor:k(o.vars.palette.grey["500Channel"],.32)},"&::after":{borderBottomColor:o.vars.palette.text.primary}})}},Kt={styleOverrides:{root:({theme:o})=>({backgroundColor:o.vars.palette.background.paper,[`&.${outlinedInputClasses.focused}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.text.primary}},[`&.${outlinedInputClasses.error}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.error.main}},[`&.${outlinedInputClasses.disabled}`]:{[`& .${outlinedInputClasses.notchedOutline}`]:{borderColor:o.vars.palette.action.disabledBackground,backgroundColor:alpha(o.palette.grey[500],.075)}}}),notchedOutline:({theme:o})=>({borderColor:o.palette.divider,transition:o.transitions.create(["border-color"],{duration:o.transitions.duration.shortest})})}},Qt={defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:o})=>({borderRadius:o.shape.borderRadius,backgroundColor:k(o.vars.palette.grey["500Channel"],.08),"&:hover":{backgroundColor:k(o.vars.palette.grey["500Channel"],.16)},[`&.${filledInputClasses.focused}`]:{backgroundColor:k(o.vars.palette.grey["500Channel"],.16)},[`&.${filledInputClasses.error}`]:{backgroundColor:k(o.vars.palette.error.mainChannel,.08),[`&.${filledInputClasses.focused}`]:{backgroundColor:k(o.vars.palette.error.mainChannel,.16)}},[`&.${filledInputClasses.disabled}`]:{backgroundColor:o.vars.palette.action.disabledBackground}})}},Mr={MuiInput:Jt,MuiInputBase:Yt,MuiFilledInput:Qt,MuiOutlinedInput:Kt};var oa={styleOverrides:{root:{boxShadow:"none"}}},ra={styleOverrides:{root:({theme:o})=>({backgroundColor:o.vars.palette.divider})}},Sr={MuiTimelineDot:oa,MuiTimelineConnector:ra};var ea={styleOverrides:{tooltip:({theme:o})=>({backgroundColor:o.vars.palette.grey[800],[b.dark]:{backgroundColor:o.vars.palette.grey[700]}}),arrow:({theme:o})=>({color:o.vars.palette.grey[800],[b.dark]:{color:o.vars.palette.grey[700]}}),popper:{[`&.${tooltipClasses.popper}[data-popper-placement*="bottom"] .${tooltipClasses.tooltip}`]:{marginTop:12},[`&.${tooltipClasses.popper}[data-popper-placement*="top"] .${tooltipClasses.tooltip}`]:{marginBottom:12},[`&.${tooltipClasses.popper}[data-popper-placement*="right"] .${tooltipClasses.tooltip}`]:{marginLeft:12},[`&.${tooltipClasses.popper}[data-popper-placement*="left"] .${tooltipClasses.tooltip}`]:{marginRight:12}}}},Tr={MuiTooltip:ea};var ta={styleOverrides:{paragraph:({theme:o})=>({marginBottom:o.spacing(2)}),gutterBottom:({theme:o})=>({marginBottom:o.spacing(1)})}},Ir={MuiTypography:ta};var gi={...$o,...Ao,...qo,...Eo,...kr,...Go,...No,...Zo,...hr,...ar,...xr,...lo,...go,...pr,...Wo,...io,...mo,...Ho,...vr,...cr,...gr,...fo,...yr,...Tr,...nr,...br,...Cr,...Sr,...uo,...lr,...fr,...zo,...rr,...Jo,...ao,...Mr,...Ir,...tr,...or,...Co,...Lo,...po,...Bo};var i=j(a.grey),aa=j(a.primary),K=j(a.secondary),Q=j(a.info),oo=j(a.success),ro=j(a.warning),eo=j(a.error),E=j(a.common),H={light:j({primary:i[800],secondary:i[600],disabled:i[500]}),dark:j({primary:"#FFFFFF",secondary:"#D0D0D0",disabled:"#A5A5A5"})},Pr={light:j({paper:"#FFFFFF",default:"#FFFFFF",neutral:i[200]}),dark:j({paper:"#121314",default:"#202020",neutral:"#08090A"})},$r={light:{hover:k(i["500Channel"],.08),selected:k(i["500Channel"],.16),focus:k(i["500Channel"],.24),disabled:k(i["500Channel"],.8),disabledBackground:k(i["500Channel"],.24),hoverOpacity:.08,disabledOpacity:.48,active:i[600]},dark:{hover:k(i["500Channel"],.08),selected:k(i["500Channel"],.16),focus:k(i["500Channel"],.24),disabled:k(i["500Channel"],.8),disabledBackground:k(i["500Channel"],.24),hoverOpacity:.08,disabledOpacity:.48,active:i[500]}},Or={primary:aa,secondary:K,info:Q,success:oo,warning:ro,error:eo,grey:i,common:E},na={...Or,divider:k(i["500Channel"],.2),noAlphaText:H.light,text:H.light,background:Pr.light,action:$r.light},la={...Or,divider:k(h("#FFFFFF"),.2),noAlphaText:H.dark,text:{...H.dark,secondary:k(h("#FFFFFF"),.8),disabled:k(h("#FFFFFF"),.48)},background:Pr.dark,action:$r.dark},yi={light:{palette:na},dark:{palette:la}};function w(o){return `0 8px 16px 0 ${k(o,.24)}`}function ki(o,r){let t=o==="light"?i["500Channel"]:E.blackChannel;return {z1:`0 1px 2px 0 ${k(t,.16)}`,z4:`0 4px 8px 0 ${k(t,.16)}`,z8:`0 8px 16px 0 ${k(t,.16)}`,z12:`0 12px 24px -4px ${k(t,.16)}`,z16:`0 16px 32px -4px ${k(t,.16)}`,z20:`0 20px 40px -4px ${k(t,.16)}`,z24:`0 24px 48px 0 ${k(t,.16)}`,dialog:`-40px 40px 80px -8px ${k(E.blackChannel,.24)}`,card:`0 0 2px 0 ${k(t,.2)}, 0 12px 24px -4px ${k(t,.12)}`,dropdown:`0 0 2px 0 ${k(t,.24)}, -20px 20px 40px -4px ${k(t,.24)}`,primary:w(h(r)),secondary:w(K.mainChannel),info:w(Q.mainChannel),success:w(oo.mainChannel),warning:w(ro.mainChannel),error:w(eo.mainChannel)}}
|
|
43
43
|
|
|
44
44
|
export { gi as a, i as b, aa as c, K as d, Q as e, oo as f, ro as g, eo as h, E as i, H as j, Pr as k, $r as l, Or as m, na as n, la as o, yi as p, w as q, ki as r };
|
|
45
|
-
//# sourceMappingURL=out.js.map
|
|
46
45
|
//# sourceMappingURL=chunk-LRSF3YE6.js.map
|
package/dist/chunk-MC44LVZD.js
CHANGED
|
@@ -8,5 +8,4 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
8
8
|
var h=({onSearch:n,onChange:a$1,trigger:d="click",iconPosition:r="end",tabIndex:f,InputProps:e,iconButtonAriaLabel:s="Buscar",...o})=>{let u=useRef(null),i=jsx(A,{color:"inherit",onClick:()=>{n(u.current?.value);},"aria-label":s,children:jsx(a,{icon:"SEARCH_MAGNIFYING_GLASS",width:20,height:20,color:"text.secondary"})});return jsx(g,{inputRef:u,sx:{"& .MuiOutlinedInput-root":{backgroundColor:"background.paper","& input::placeholder":{color:"text.disabled",opacity:.7}}},InputProps:{...e,onKeyDown:t=>{t.key==="Enter"&&(n(u.current?.value),t.preventDefault());},...r==="start"?{startAdornment:jsxs(c,{position:r,children:[i,e?.startAdornment]})}:{endAdornment:jsxs(c,{position:r,children:[i,e?.endAdornment]})}},inputProps:{tabIndex:f,name:o.name,...o.inputProps},onChange:t=>{if(d==="change"){n(t.target.value);return}t.target.value===""&&n(""),a$1&&a$1(t);},...o})},R=h;
|
|
9
9
|
|
|
10
10
|
export { R as a };
|
|
11
|
-
//# sourceMappingURL=out.js.map
|
|
12
11
|
//# sourceMappingURL=chunk-MC44LVZD.js.map
|
package/dist/chunk-MCRXKVSY.js
CHANGED
|
@@ -9,5 +9,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var R=r=>{switch(r){case"success":return jsx(a,{"data-testid":"icon-SUCCESS",icon:"CHECK_CIRCLE",width:120,height:120});case"error":return jsx(a,{"data-testid":"icon-ERROR",icon:"CANCEL_CIRCLE",width:120,height:120});case"info":return jsx(a,{"data-testid":"icon-INFO",icon:"INFO_CIRCLE",width:120,height:120});case"empty":default:return jsx(a,{"data-testid":"icon-DEFAULT",icon:"PACKAGE",width:120,height:120})}},L=(r,e)=>{switch(r){case"success":return e.palette.success.main;case"error":return e.palette.error.main;case"info":return e.palette.primary.main;case"empty":default:return e.palette.text.disabled}},b=({icon:r,title:e,description:i,primaryAction:p,secondaryAction:l,primaryActionLabel:g,secondaryActionLabel:f,onPrimaryAction:n,onSecondaryAction:s,primaryActionProps:C,secondaryActionProps:y,variant:m="default",iconSize:h=120,maxWidth:x=768,sx:S,...w})=>{let E=useTheme(),T=typeof e=="string"?"h3":"div",v=typeof i=="string"?"p":"div",I=L(m,E);return jsxs(o,{alignItems:"center",justifyContent:"center",spacing:3,sx:{height:"100%",textAlign:"center",py:4,px:2,...S},...w,children:[jsx(o,{sx:{color:I,"& svg":{width:h,height:h}},children:r||R(m)}),jsxs(o,{spacing:1,sx:{maxWidth:x},children:[e&&jsx(u,{component:T,variant:"subtitle1",fontWeight:"600",color:"text.primary",sx:{mb:.5},children:e}),i&&jsx(u,{component:v,variant:"body1",color:"text.secondary",sx:{lineHeight:1.6},children:i})]}),(p||l||n||s)&&jsxs(o,{direction:"row",spacing:2,flexWrap:"wrap",justifyContent:"center",children:[l||s&&jsx(d,{variant:"outlined",color:"inherit",onClick:s,sx:{minWidth:120},...y,children:f||"Cancelar"}),p||n&&jsx(d,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:120},...C,children:g||"Confirmar"})]})]})},_=memo(b);
|
|
10
10
|
|
|
11
11
|
export { _ as a };
|
|
12
|
-
//# sourceMappingURL=out.js.map
|
|
13
12
|
//# sourceMappingURL=chunk-MCRXKVSY.js.map
|
package/dist/chunk-MZN5X6GM.js
CHANGED
|
@@ -3,5 +3,4 @@ import { a as a$1 } from './chunk-RFAAH7QG.js';
|
|
|
3
3
|
var a={["VISA"]:"Visa",["MASTERCARD"]:"Mastercard",["AMEX"]:"American Express",["DISCOVER"]:"Discover",["DINERSCLUB"]:"Diners Club",["JCB"]:"JCB",["UNIONPAY"]:"UnionPay",["MAESTRO"]:"Maestro",["CIRRUS"]:"Cirrus",["HIPER"]:"Hiper",["HIPERCARD"]:"Hipercard",["ELO"]:"Elo",["PIX"]:"PIX",["PAYPAL"]:"PayPal",["GPAY"]:"GPay",["APPLEPAY"]:"Apple Pay",["AMAZONPAY"]:"Amazon Pay",["MERCADOPAY"]:"Mercado Pay",["GENERIC"]:"Gen\xE9rico"},C=e=>{let A=a$1(e);return a[A]||a["GENERIC"]};
|
|
4
4
|
|
|
5
5
|
export { C as a };
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
6
|
//# sourceMappingURL=chunk-MZN5X6GM.js.map
|
package/dist/chunk-N7IK5EUP.js
CHANGED
|
@@ -5,5 +5,4 @@ import D from 'dayjs/plugin/relativeTime';
|
|
|
5
5
|
t.extend(p);t.extend(D);var c={dateTime:"DD/MM/YYYY HH:mm",date:"DD/MM/YYYY",time:"HH:mm",split:{dateTime:"DD/MM/YYYY HH:mm",date:"DD/MM/YYYY"},paramCase:{dateTime:"DD/MM/YYYY HH:mm",date:"DD/MM/YYYY"}};function P(r){return t(new Date).startOf("day").format(r)}function v(r,i){return r?t(r).isValid()?t(r).format(i??c.dateTime):"Invalid time value":null}function u(r,i){return r?t(r).isValid()?t(r).format(i??c.date):"Invalid time value":null}function M(r,i){return r?t(r).isValid()?t(r).format(i??c.time):"Invalid time value":null}function l(r){return r?t(r).isValid()?t(r).valueOf():"Invalid time value":null}function k(r){return r?t(r).isValid()?t(r).toNow(!0):"Invalid time value":null}function F(r,i,e){if(!r||!i||!e)return !1;let o=l(r),a=l(i),n=l(e);return o&&a&&n?o>=a&&o<=n:!1}function Y(r,i){return t(r).isAfter(i)}function f(r,i,e){return !r||!i?!1:t(r).isValid()&&t(i).isValid()?t(r).isSame(i,e??"year"):"Invalid time value"}function b(r,i,e){let o=t(r).isValid()&&t(i).isValid(),a=Y(r,i);if(!o||a)return "Invalid time value";let n=`${u(r)} - ${u(i)}`;if(e)return n;let m=f(r,i,"year"),s=f(r,i,"month"),d=f(r,i,"day");return m&&!s?n=`${u(r,"DD MMM")} - ${u(i)}`:m&&s&&!d?n=`${u(r,"DD")} - ${u(i)}`:m&&s&&d&&(n=`${u(i)}`),n}function I({years:r=0,months:i=0,days:e=0,hours:o=0,minutes:a=0,seconds:n=0,milliseconds:m=0}){return t().add(t.duration({years:r,months:i,days:e,hours:o,minutes:a,seconds:n,milliseconds:m})).format()}function T({years:r=0,months:i=0,days:e=0,hours:o=0,minutes:a=0,seconds:n=0,milliseconds:m=0}){return t().subtract(t.duration({years:r,months:i,days:e,hours:o,minutes:a,seconds:n,milliseconds:m})).format()}var S=(r,i)=>!r||!i?null:t(i).diff(t(r),"day");
|
|
6
6
|
|
|
7
7
|
export { c as a, P as b, v as c, u as d, M as e, l as f, k as g, F as h, Y as i, f as j, b as k, I as l, T as m, S as n };
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
8
|
//# sourceMappingURL=chunk-N7IK5EUP.js.map
|
package/dist/chunk-NIQW2J3M.js
CHANGED
|
@@ -3,5 +3,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
var e=()=>jsxs("svg",{width:200,height:150,viewBox:"0 0 201 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{opacity:"0.2",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 82.8253C0.5 100.099 6.72724 115.84 16.9746 127.736C28.7306 141.388 45.778 149.971 64.7803 150C73.085 150.012 81.0259 148.38 88.3199 145.401C92.0913 143.861 96.3124 144.037 99.9651 145.863C104.25 148.002 109.048 149.201 114.114 149.201C116.207 149.201 118.256 148.995 120.239 148.603C125.897 147.491 131.047 144.858 135.276 141.128C137.934 138.784 141.338 137.605 144.817 137.609H144.876C156.371 137.609 167.049 133.971 175.914 127.736C183.84 122.169 190.312 114.529 194.624 105.559C198.384 97.7421 200.5 88.9116 200.5 79.5658C200.5 47.5113 175.594 21.5222 144.876 21.5222C141.744 21.5222 138.676 21.7982 135.683 22.3132C127.757 8.92503 113.565 0 97.3743 0C90.5388 0 84.0585 1.5907 78.2578 4.44218C72.7413 7.14514 67.8365 10.9859 63.8243 15.6667C50.2006 15.8933 37.6033 20.5375 27.2929 28.2881C11.0631 40.4813 0.5 60.3676 0.5 82.8253Z",fill:"url(#paint0_linear_50548_150894)"})}),jsxs("g",{clipPath:"url(#clip0_50548_150894)",children:[jsx("g",{opacity:"0.24",children:jsx("g",{opacity:"0.24",children:jsx("g",{opacity:"0.24",children:jsx("path",{opacity:"0.24",fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 82.8253C0.5 100.099 6.72724 115.84 16.9746 127.736C28.7306 141.388 45.778 149.971 64.7803 150C73.085 150.012 81.0259 148.38 88.3199 145.401C92.0913 143.861 96.3124 144.037 99.9651 145.863C104.25 148.002 109.048 149.201 114.114 149.201C116.207 149.201 118.256 148.995 120.239 148.603C125.897 147.491 131.047 144.858 135.276 141.128C137.934 138.784 141.338 137.605 144.817 137.609H144.876C156.371 137.609 167.049 133.971 175.914 127.736C183.84 122.169 190.312 114.529 194.624 105.559C198.384 97.7421 200.5 88.9116 200.5 79.5658C200.5 47.5113 175.594 21.5222 144.876 21.5222C141.744 21.5222 138.676 21.7982 135.683 22.3132C127.757 8.92503 113.565 0 97.3743 0C90.5388 0 84.0585 1.5907 78.2578 4.44218C72.7413 7.14514 67.8365 10.9859 63.8243 15.6667C50.2006 15.8933 37.6033 20.5375 27.2929 28.2881C11.0631 40.4813 0.5 60.3676 0.5 82.8253Z",fill:"url(#paint1_linear_50548_150894)"})})})}),jsx("path",{opacity:"0.545118",d:"M113.803 31.5164C112.753 31.5164 111.703 31.1175 110.904 30.3195C109.305 28.7234 109.305 26.1266 110.904 24.5308C112.502 22.9353 115.104 22.9348 116.702 24.5308C118.301 26.1269 118.301 28.7237 116.702 30.3195C115.903 31.1175 114.853 31.5164 113.803 31.5164ZM113.803 26.1554C113.477 26.1554 113.151 26.279 112.903 26.5269C112.407 27.022 112.407 27.828 112.903 28.3234C113.4 28.8185 114.206 28.8188 114.703 28.3234C115.199 27.8283 115.199 27.0223 114.703 26.5269C114.455 26.2793 114.129 26.1554 113.803 26.1554Z",fill:"#C4CDD5"}),jsx("path",{opacity:"0.545118",d:"M81.5727 127.084C80.5228 127.084 79.4727 126.685 78.6736 125.887C77.0749 124.291 77.0749 121.694 78.6736 120.098C80.2718 118.502 82.8737 118.502 84.4718 120.098C86.0705 121.694 86.0705 124.291 84.4718 125.887C83.6727 126.685 82.6226 127.084 81.5727 127.084ZM81.5727 121.723C81.247 121.723 80.921 121.846 80.6727 122.094C80.1768 122.589 80.1768 123.395 80.6727 123.891C81.1692 124.386 81.9759 124.386 82.4724 123.891C82.9684 123.396 82.9684 122.59 82.4724 122.094C82.2245 121.847 81.8984 121.723 81.5727 121.723Z",fill:"#C4CDD5"}),jsx("path",{d:"M153.253 107.805C152.891 107.805 152.529 107.667 152.253 107.392L150.567 105.708L148.88 107.392C148.328 107.943 147.433 107.943 146.881 107.392C146.329 106.841 146.329 105.947 146.881 105.396L149.567 102.714C150.119 102.163 151.015 102.163 151.566 102.714L154.252 105.396C154.805 105.947 154.805 106.841 154.252 107.392C153.977 107.667 153.614 107.805 153.253 107.805Z",fill:"#DFE3E8"}),jsx("path",{d:"M53.536 102.428C53.1744 102.428 52.8122 102.29 52.5365 102.015L50.8499 100.331L49.1632 102.015C48.6116 102.566 47.7158 102.566 47.1642 102.015C46.6119 101.464 46.6119 100.57 47.1642 100.019L49.8503 97.3371C50.402 96.7861 51.2978 96.7861 51.8494 97.3371L54.5356 100.019C55.0878 100.57 55.0878 101.464 54.5356 102.015C54.2596 102.29 53.8977 102.428 53.536 102.428Z",fill:"#C4CDD5"}),jsxs("g",{filter:"url(#filter0_d_50548_150894)",children:[jsx("mask",{id:"mask0_50548_150894",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"59",y:"41",width:"84",height:"68",children:jsx("path",{d:"M136.593 41.5693H65.4361C62.2548 41.5693 59.6758 44.1483 59.6758 47.3297V102.994C59.6758 106.175 62.2548 108.754 65.4361 108.754H136.593C139.774 108.754 142.353 106.175 142.353 102.994V47.3297C142.353 44.1483 139.774 41.5693 136.593 41.5693Z",fill:"white"})}),jsxs("g",{mask:"url(#mask0_50548_150894)",children:[jsx("path",{d:"M136.593 41.5693H65.4361C62.2548 41.5693 59.6758 44.1483 59.6758 47.3297V102.994C59.6758 106.175 62.2548 108.754 65.4361 108.754H136.593C139.774 108.754 142.353 106.175 142.353 102.994V47.3297C142.353 44.1483 139.774 41.5693 136.593 41.5693Z",fill:"#DFE3E8",stroke:"#919EAB",strokeOpacity:"0.48",strokeWidth:"0.629439"}),jsx("path",{opacity:"0.32",d:"M139.931 41.5693C141.288 41.5693 142.353 42.4138 142.353 43.4889V60.7651H59.6758V43.4889C59.6758 42.4138 60.7414 41.5693 62.098 41.5693H139.931ZM72.1735 48.7677C70.8275 48.7677 69.7701 49.8233 69.7701 51.1672C69.7701 52.5107 70.8275 53.5667 72.1735 53.5667C73.5196 53.5667 74.577 52.5107 74.577 51.1672C74.577 49.8233 73.5196 48.7677 72.1735 48.7677ZM81.7872 48.7677C80.4411 48.7677 79.3838 49.8233 79.3838 51.1672C79.3838 52.5107 80.4411 53.5667 81.7872 53.5667C83.1333 53.5667 84.1906 52.5107 84.1906 51.1672C84.1906 49.8233 83.1333 48.7677 81.7872 48.7677ZM91.4009 48.7677C90.0548 48.7677 88.9975 49.8233 88.9975 51.1672C88.9975 52.5107 90.0548 53.5667 91.4009 53.5667C92.747 53.5667 93.8043 52.5107 93.8043 51.1672C93.8043 49.8233 92.747 48.7677 91.4009 48.7677Z",fill:"#919EAB"}),jsx("path",{d:"M129.856 67.4834H105.821C104.493 67.4834 103.418 68.5566 103.418 69.8829V98.6765C103.418 100.003 104.493 101.076 105.821 101.076H129.856C131.184 101.076 132.259 100.003 132.259 98.6765V69.8829C132.259 68.5566 131.184 67.4834 129.856 67.4834Z",fill:"#919EAB",fillOpacity:"0.48",stroke:"#919EAB",strokeWidth:"0.503551",strokeDasharray:"0.84 0.84"}),jsx("path",{opacity:"0.72",d:"M72.1729 72.2823H81.7866C83.1151 72.2823 84.19 71.2091 84.19 69.8829C84.19 68.5566 83.1151 67.4834 81.7866 67.4834H72.1729C70.8445 67.4834 69.7695 68.5566 69.7695 69.8829C69.7695 71.2091 70.8445 72.2823 72.1729 72.2823Z",stroke:"#919EAB",strokeWidth:"0.503551",strokeDasharray:"0.84 0.84"}),jsx("path",{opacity:"0.72",d:"M96.2071 77.082H72.1729C70.8445 77.082 69.7695 78.1552 69.7695 79.4815C69.7695 80.8078 70.8445 81.881 72.1729 81.881H96.2071C97.5356 81.881 98.6105 80.8078 98.6105 79.4815C98.6105 78.1552 97.5356 77.082 96.2071 77.082Z",stroke:"#919EAB",strokeWidth:"0.503551",strokeDasharray:"0.84 0.84"}),jsx("path",{opacity:"0.72",d:"M96.2071 86.6797H72.1729C70.8445 86.6797 69.7695 87.7529 69.7695 89.0792C69.7695 90.4054 70.8445 91.4786 72.1729 91.4786H96.2071C97.5356 91.4786 98.6105 90.4054 98.6105 89.0792C98.6105 87.7529 97.5356 86.6797 96.2071 86.6797Z",stroke:"#919EAB",strokeWidth:"0.503551",strokeDasharray:"0.84 0.84"}),jsx("path",{opacity:"0.72",d:"M96.2071 96.2773H72.1729C70.8445 96.2773 69.7695 97.3506 69.7695 98.6768C69.7695 100.003 70.8445 101.076 72.1729 101.076H96.2071C97.5356 101.076 98.6105 100.003 98.6105 98.6768C98.6105 97.3506 97.5356 96.2773 96.2071 96.2773Z",stroke:"#919EAB",strokeWidth:"0.503551",strokeDasharray:"0.84 0.84"})]})]})]}),jsxs("defs",{children:[jsxs("filter",{id:"filter0_d_50548_150894",x:"54.5765",y:"36.47",width:"103.075",height:"87.5818",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),jsx("feOffset",{dx:"5.0993",dy:"5.0993"}),jsx("feGaussianBlur",{stdDeviation:"5.0993"}),jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.270588 0 0 0 0 0.309804 0 0 0 0 0.356863 0 0 0 0.24 0"}),jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_50548_150894"}),jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_50548_150894",result:"shape"})]}),jsxs("linearGradient",{id:"paint0_linear_50548_150894",x1:"137.504",y1:"176.68",x2:"211.08",y2:"10.8533",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#919EAB"}),jsx("stop",{offset:"1",stopColor:"#919EAB",stopOpacity:"0.01"})]}),jsxs("linearGradient",{id:"paint1_linear_50548_150894",x1:"39.4918",y1:"107.733",x2:"124.182",y2:"0.365504",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#00AB55"}),jsx("stop",{offset:"1",stopColor:"#00AB55",stopOpacity:"0"})]}),jsx("clipPath",{id:"clip0_50548_150894",children:jsx("rect",{width:"200",height:"150",fill:"white",transform:"translate(0.5)"})})]})]}),a=e;
|
|
4
4
|
|
|
5
5
|
export { a };
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
6
|
//# sourceMappingURL=chunk-NIQW2J3M.js.map
|
package/dist/chunk-O7SN6FIA.js
CHANGED
|
@@ -8,5 +8,4 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
8
8
|
function c(o){return Math.round(parseFloat(o)*16)}function y(o){let e=useTheme(),t=a$1(),p=e.breakpoints.up(t==="xl"?"lg":t),h=(o==="h1"||o==="h2"||o==="h3"||o==="h4"||o==="h5"||o==="h6")&&e.typography[o][p]?e.typography[o][p]:e.typography[o],r=c(h.fontSize),i=Number(e.typography[o].lineHeight)*r,{fontWeight:m,letterSpacing:n}=e.typography[o];return {fontSize:r,lineHeight:i,fontWeight:m,letterSpacing:n}}var a=memo(forwardRef(({asLink:o,variant:e="body1",line:t=2,persistent:p=!1,children:s,sx:h,...r},i)=>{let{lineHeight:m}=y(e),n={overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",wordBreak:"break-all",...p&&{height:m*t},...h};return o?jsx(d,{color:"inherit",ref:i,variant:e,sx:{...n},...r,children:s}):jsx(k,{ref:i,variant:e,sx:{...n},...r,children:s})}));a.displayName="TextMaxLine";var P=a;
|
|
9
9
|
|
|
10
10
|
export { P as a };
|
|
11
|
-
//# sourceMappingURL=out.js.map
|
|
12
11
|
//# sourceMappingURL=chunk-O7SN6FIA.js.map
|
package/dist/chunk-OF6623HG.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
var i={code:"pt-BR",currency:"BRL"};function u(t){return t==null||Number.isNaN(t)?null:Number(t)}function s(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{minimumFractionDigits:0,maximumFractionDigits:2,...n}).format(r)}function a(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{style:"currency",currency:e.currency,minimumFractionDigits:0,maximumFractionDigits:2,...n}).format(r)}function l(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1,...n}).format(r/100)}function f(t,n){let e=i,r=u(t);return r===null?"":new Intl.NumberFormat(e.code,{notation:"compact",maximumFractionDigits:2,...n}).format(r).replace(/[A-Z]/g,m=>m.toLowerCase())}function b(t){let n=u(t);if(n===null||n===0)return "0 bytes";let e=["bytes","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],r=2,o=1024,m=Math.floor(Math.log(n)/Math.log(o));return `${parseFloat((n/o**m).toFixed(r))} ${e[m]}`}var p=(t,n=12)=>+Number(t).toFixed(n);function N(t){return t===0||t==="0"?"0":typeof t=="string"?t.padStart(2,"0"):t.toString().padStart(2,"0")}var g=t=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(t||0);
|
|
2
2
|
|
|
3
3
|
export { s as a, a as b, l as c, f as d, b as e, p as f, N as g, g as h };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
4
|
//# sourceMappingURL=chunk-OF6623HG.js.map
|
package/dist/chunk-OR7BKXIN.js
CHANGED
|
@@ -5,5 +5,4 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
5
5
|
var i=({actionType:n,children:E,...r})=>{let A={SAVE:"SAVE_MARK",NEW:"SIMPLE_ADD",CREATE:"SAVE_MARK",SETTINGS:"SETTINGS",EDIT:"SAVE_MARK",DELETE:"DELETE_MARK_BUTTON_02",VIEW:"SHARE_BUTTON_MARK",CANCEL:"CANCEL_CIRCLE",CONFIRM:"SIMPLE_CHECK"}[n];return jsx(c,{startIcon:jsx(a,{icon:A}),variant:"contained",color:"primary",...r,children:E})},C=i;
|
|
6
6
|
|
|
7
7
|
export { C as a };
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
8
|
//# sourceMappingURL=chunk-OR7BKXIN.js.map
|
package/dist/chunk-POTVACYB.js
CHANGED
|
@@ -4,5 +4,4 @@ import { useRef, useCallback } from 'react';
|
|
|
4
4
|
var a=e=>{let r=useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return a$1(()=>{r.current=e;},[e]),useCallback((...s)=>r.current?.(...s),[r])},f=a;
|
|
5
5
|
|
|
6
6
|
export { f as a };
|
|
7
|
-
//# sourceMappingURL=out.js.map
|
|
8
7
|
//# sourceMappingURL=chunk-POTVACYB.js.map
|
package/dist/chunk-QSHKTHGM.js
CHANGED
|
@@ -12,5 +12,4 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
12
12
|
var p=styled(ChromePicker)({fontFamily:"inherit",boxShadow:"none"});var I=({value:l,tabIndex:s,onChangeColor:a$1,...t})=>{let[m,c]=useState(),n=m||l,r=n?"#"+n.replaceAll("#",""):"",e=a(),u=()=>{e.onClose(),a$1(r);};return jsxs(Fragment,{children:[jsx(b,{...t,value:r,InputProps:{...t.InputProps,startAdornment:jsx(k,{position:"start",sx:{ml:2},children:jsx(g,{edge:"start","aria-label":"Escolher cor",onClick:e.onOpen,children:jsx(C,{sx:{minWidth:23,minHeight:23,backgroundColor:r,borderRadius:.5,boxShadow:"0 0 0 2px rgba(0, 0, 0, 0.0375)"}})})})},inputProps:{readOnly:!0,...t.inputProps,maxLength:7,tabIndex:s}}),jsx(x,{className:"popover-color-picker",open:!!e.open,anchorEl:e.open,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(p,{color:r,onChange:({hex:d})=>c(d),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})},L=I;
|
|
13
13
|
|
|
14
14
|
export { L as a };
|
|
15
|
-
//# sourceMappingURL=out.js.map
|
|
16
15
|
//# sourceMappingURL=chunk-QSHKTHGM.js.map
|
package/dist/chunk-RBTYTONM.js
CHANGED
|
@@ -9,5 +9,4 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var c=styled(C)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),b=()=>{let e=useGridApiContext(),{rowHeight:m,paginationModel:g,initialState:u}=useGridRootProps(),l=g?.pageSize||u?.pagination?.paginationModel?.pageSize||10,a=gridColumnsTotalWidthSelector(e),s=gridColumnPositionsSelector(e),f=p.useMemo(()=>s.filter(o=>o<=a).length,[a,s]),n=e.current?e.current.getVisibleColumns().slice(0,f):[],r=n.length>1?n:[...n,...Array.from({length:8},(o,t)=>({field:`fake${String(t+1).padStart(2,"0")}`,headerName:"",computedWidth:200,align:"flex-start"}))],h=p.useMemo(()=>{let o=[];for(let t=0;t<l;t+=1){for(let d of r)o.push(jsx(c,{sx:{justifyContent:d.align},children:jsx(S,{width:"100%"})},`column-${t}-${d.field}`));o.push(jsx(c,{},`fill-${t}`));}return o},[l,r]);return jsx(k,{display:"grid",sx:{display:"grid",gridTemplateColumns:`${r.map(({computedWidth:o})=>`${o}px`).join(" ")} 1fr`,gridAutoRows:m,backgroundColor:o=>o.palette.background.paper,overflow:"hidden",maxHeight:"100%"},children:h})},H=b;
|
|
10
10
|
|
|
11
11
|
export { H as a };
|
|
12
|
-
//# sourceMappingURL=out.js.map
|
|
13
12
|
//# sourceMappingURL=chunk-RBTYTONM.js.map
|
package/dist/chunk-RFAAH7QG.js
CHANGED
|
@@ -3,5 +3,4 @@ import a from 'card-validator';
|
|
|
3
3
|
var s=e=>{let{card:r}=a.number(e);if(!r)return "GENERIC";switch(r.type){case"visa":return "VISA";case"mastercard":return "MASTERCARD";case"american-express":return "AMEX";case"discover":return "DISCOVER";case"diners-club":return "DINERSCLUB";case"jcb":return "JCB";case"unionpay":return "UNIONPAY";case"maestro":return "MAESTRO";case"hipercard":return "HIPERCARD";case"elo":return "ELO";default:return "GENERIC"}};
|
|
4
4
|
|
|
5
5
|
export { s as a };
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
6
|
//# sourceMappingURL=chunk-RFAAH7QG.js.map
|
package/dist/chunk-RP7PNTLJ.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function c(n){let a="=".repeat((4-n.length%4)%4),o=(n+a).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(o),e=new Uint8Array(r.length);for(let t=0;t<r.length;++t)e[t]=r.charCodeAt(t);return e}
|
|
2
2
|
|
|
3
3
|
export { c as a };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
4
|
//# sourceMappingURL=chunk-RP7PNTLJ.js.map
|
package/dist/chunk-RPO7AI5K.js
CHANGED
|
@@ -4,5 +4,4 @@ import o from '@mui/material/useMediaQuery';
|
|
|
4
4
|
var l=(n,t,r)=>{let e=useTheme(),a=o(e.breakpoints.up(t)),s=o(e.breakpoints.down(t)),p=o(e.breakpoints.between(t,r)),i=o(e.breakpoints.only(t));return n==="up"?a:n==="down"?s:n==="between"?p:i};function y(){let n=useTheme();return [...n.breakpoints.keys].reverse().reduce((r,e)=>{let a=o(n.breakpoints.up(e));return !r&&a?e:r},null)||"xs"}var b=l;
|
|
5
5
|
|
|
6
6
|
export { y as a, b };
|
|
7
|
-
//# sourceMappingURL=out.js.map
|
|
8
7
|
//# sourceMappingURL=chunk-RPO7AI5K.js.map
|
package/dist/chunk-RTC7H5E5.js
CHANGED
|
@@ -6,5 +6,4 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
6
6
|
var M=IMaskMixin(t=>{let{inputRef:e,"data-value":n,defaultValue:u,tabIndex:p,name:s,...a}=t;return jsx(k,{inputRef:e,fullWidth:!0,...a,inputProps:{...a.inputProps,name:s,tabIndex:p},value:n,"data-testid":"masked-input-wrapper"})}),d=memo(forwardRef(({onChange:t,name:e,...n},u)=>{let[p,s]=useState("");return jsx(M,{inputRef:u,name:e,"data-value":p,...n,onAccept:(a,r)=>{s(a),t({target:{name:e,value:r._unmaskedValue}});}})}));d.displayName="MaskedInput";var c=d;
|
|
7
7
|
|
|
8
8
|
export { c as a };
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
9
|
//# sourceMappingURL=chunk-RTC7H5E5.js.map
|
package/dist/chunk-RUABKHIV.js
CHANGED
package/dist/chunk-SVX7EWV4.js
CHANGED
|
@@ -4,5 +4,4 @@ import { toast } from 'sonner';
|
|
|
4
4
|
var c=(s,t)=>{try{return "message"in s?s.message||t:"data"in s&&s.data&&typeof s.data=="object"&&"message"in s.data&&typeof s.data.message=="string"?s.data.message:t}catch{return t}},o=()=>{let s=useCallback(a=>{toast.success(a);},[]),t=useCallback((a,i)=>{toast.error(c(a,i));},[]);return {showSuccessMessage:s,showErrorMessage:t}},m=o;
|
|
5
5
|
|
|
6
6
|
export { m as a };
|
|
7
|
-
//# sourceMappingURL=out.js.map
|
|
8
7
|
//# sourceMappingURL=chunk-SVX7EWV4.js.map
|
package/dist/chunk-SY2RHBDJ.js
CHANGED
|
@@ -9,5 +9,4 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var l=({label:t="Copiar conte\xFAdo",message:c="Conte\xFAdo copiado!",toCopy:m})=>{let{copy:e}=a(),{success:s}=a$1();return jsx(a$2,{title:t,arrow:!0,children:jsx(C,{"aria-label":t,size:"small",onClick:()=>{e(m),s(c);},children:jsx(a$3,{icon:"COPY_CONTENT",color:"text.secondary",width:16})})})},I=memo(l);
|
|
10
10
|
|
|
11
11
|
export { I as a };
|
|
12
|
-
//# sourceMappingURL=out.js.map
|
|
13
12
|
//# sourceMappingURL=chunk-SY2RHBDJ.js.map
|
package/dist/chunk-T6UNWMMX.js
CHANGED
|
@@ -7,5 +7,4 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
7
7
|
var n=styled(r)(({theme:o})=>({display:"flex",alignItems:"center",gap:o.spacing(2),userSelect:"none"})),g=styled(r,{shouldForwardProp:o=>o!=="isDark"})(({isDark:o,theme:e})=>({TapHighlightColor:"transparent",position:"relative",width:50,height:26,borderRadius:24,border:`1px solid ${e.palette.divider}`,overflow:"hidden",cursor:"pointer",userSelect:"none",backgroundColor:e.palette.grey[100],transition:"all 0.1s ease-in-out",...o&&{backgroundColor:e.palette.grey[900]}})),p=styled(r,{shouldForwardProp:o=>o!=="isDark"})(({isDark:o,theme:e})=>({position:"absolute",margin:"auto",top:1,left:-21,width:22,height:22,background:"transparent",borderRadius:"50%",boxShadow:`22px 0 0 -1px ${e.palette.grey[600]}, 22px 0 0 -1px ${e.palette.grey[600]}`,transition:"all 0.2s ease-in-out",...o&&{left:16,boxShadow:`2px 0 0 0 ${alpha(e.palette.background.paper,.3)}, 9px 0 0 0 ${e.palette.grey[100]}`}}));var s=forwardRef(()=>{let{isDark:o,toggleTheme:e}=a(),d=()=>{e();},l=`Alternar para modo ${o?"claro":"escuro"}`;return jsx(n,{children:jsx(g,{onClick:d,role:"button",tabIndex:0,"aria-label":l,title:l,isDark:o,children:jsx(p,{isDark:o})})})});s.displayName="Toggle";var T=s;
|
|
8
8
|
|
|
9
9
|
export { T as a };
|
|
10
|
-
//# sourceMappingURL=out.js.map
|
|
11
10
|
//# sourceMappingURL=chunk-T6UNWMMX.js.map
|
package/dist/chunk-TCZOZ4MN.js
CHANGED
|
@@ -14,5 +14,4 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
14
14
|
var W=t=>({lighter:lighten(t,.815),light:lighten(t,.225),main:t,dark:darken(t,.15),darker:darken(t,.35),contrastText:"#000"});function x(t,o,r$1="app"){let e$1=W(o.primaryColor),m=F(p);a(m,"dark.palette.primary",e$1),a(m,"light.palette.primary",e$1);let a$4={mode:o.colorScheme,colorSchemes:m,shadows:a$1(o.colorScheme),customShadows:r(o.colorScheme,e$1.main),shape:{borderRadius:8},components:a$2,typography:{...e,fontFamily:d(o.fontFamily)},cssVarPrefix:r$1,shouldSkipGeneratingVar:I},s=a$3(a$4,o);return experimental_extendTheme(s,t,b(o))}function I(t,o){let r=["mixins","overlays","direction","breakpoints","cssVarPrefix","unstable_sxConfig","typography","colorSchemes"],e={global:["tonalOffset","dividerChannel","contrastThreshold"],grey:["A100","A200","A400","A700"],text:["icon"]};if(t[0]==="palette"){let a=t[1],s=e[a]||e.global;return t.some(i=>s?.includes(i))}return t.some(a=>r?.includes(a))}var $=({children:t,primaryColor:o="#4E5BEC",cssVarPrefix:r="app"})=>{let{settings:e}=b$1();useEffect(()=>{localStorage.setItem(`${e.storageKey}`,e.colorScheme),localStorage.setItem(`${e.storageKey}-light`,"light"),localStorage.setItem(`${e.storageKey}-dark`,"dark");},[e.storageKey,e.colorScheme]);let m=useMemo(()=>{let s=x(a$5[1].systemValue,{primaryColor:o,colorScheme:e.colorScheme,contrast:e.contrast,navLayout:e.navLayout,navColor:e.navColor,compactLayout:e.compactLayout,fontFamily:e.fontFamily,storageKey:e.storageKey},r);return s.palette=s.colorSchemes?.[e.colorScheme]?.palette,s},[e,o,r]),a=useMemo(()=>({theme:m,mode:e.colorScheme,defaultMode:e.colorScheme,defaultColorScheme:e.colorScheme,modeStorageKey:e.storageKey,colorSchemeStorageKey:e.storageKey,attribute:a$4.ATTRIBUTE}),[m,e.colorScheme,e.storageKey]);return jsxs(Experimental_CssVarsProvider,{...a,children:[jsx(M,{enableColorScheme:!0}),jsx(B,{children:t})]})},B=({children:t})=>{let{settings:o,updateSettings:r}=b$1(),{mode:e,setMode:m}=useColorScheme();return useEffect(()=>{let a=o.colorScheme;document?.documentElement.setAttribute(a$4.ATTRIBUTE,a),m(a);},[o.colorScheme,m]),useEffect(()=>{e!==o.colorScheme&&r({colorScheme:e==="system"?o.colorScheme:e});},[e,o.colorScheme,r]),t},w=({children:t,cssVarPrefix:o,primaryColor:r="#4E5BEC",fontFamily:e="Public Sans",compactLayout:m=!0,contrast:a="default",navColor:s="integrate",navLayout:i="vertical",colorScheme:A="light"})=>{let k=`${o?`${o}-`:""}${a$4.STORAGE_KEY}`;return jsx(c,{primaryColor:r,fontFamily:e,compactLayout:m,contrast:a,navColor:s,navLayout:i,colorScheme:A,cssVarPrefix:o,storageKey:k,children:jsx($,{primaryColor:r,cssVarPrefix:o,children:t})})};var te=w;
|
|
15
15
|
|
|
16
16
|
export { x as a, te as b };
|
|
17
|
-
//# sourceMappingURL=out.js.map
|
|
18
17
|
//# sourceMappingURL=chunk-TCZOZ4MN.js.map
|
|
@@ -3,10 +3,10 @@ import { a as a$5 } from './chunk-IJZCVZ32.js';
|
|
|
3
3
|
import { a as a$8 } from './chunk-IDFJFFIV.js';
|
|
4
4
|
import { a as a$6 } from './chunk-6U5LS7MP.js';
|
|
5
5
|
import { i, j, a as a$2, b as b$2, c, d, f, e, g, h as h$1 } from './chunk-2W54CJ6E.js';
|
|
6
|
+
import { a as a$7 } from './chunk-F65ZXAGV.js';
|
|
6
7
|
import { a as a$9 } from './chunk-I4PPSW36.js';
|
|
7
8
|
import { a as a$3 } from './chunk-CO2KQFUN.js';
|
|
8
9
|
import { a } from './chunk-ET6H3IRG.js';
|
|
9
|
-
import { a as a$7 } from './chunk-F65ZXAGV.js';
|
|
10
10
|
import { a as a$1 } from './chunk-LQRRMVFN.js';
|
|
11
11
|
import { b as b$1 } from './chunk-RPO7AI5K.js';
|
|
12
12
|
import { memo, forwardRef, useState, useRef, useEffect, useCallback, useMemo, Children, isValidElement, cloneElement } from 'react';
|
|
@@ -23,5 +23,4 @@ import { GridToolbarColumnsButton } from '@mui/x-data-grid-premium';
|
|
|
23
23
|
var b="datagrid-actions";var Ho=({rowCount:r,page:e,rowsPerPage:n,onPaginationChange:i$1})=>jsxs(i,{children:[jsxs(h,{direction:"row",alignItems:"center",gap:.5,children:[jsx(mo,{variant:"body2",color:"text.disabled",children:"Total de itens:"}),jsx(mo,{variant:"body2",children:r})]}),jsx(j,{count:r,page:e,rowsPerPage:n,onPageChange:s=>i$1(s,n),onRowsPerPageChange:s=>i$1(e,s)})]}),uo=memo(Ho);var ho=(r,e)=>Children.map(r,n=>{if(!isValidElement(n))return n;let i=n.props.onClick,s={};s.onClick=(...d)=>{e(),i&&i(...d);};let l=n.props;return l?.children&&(s.children=ho(l.children,e)),cloneElement(n,s)}),zo=({children:r,onClose:e})=>r?ho(r,e):null,go=memo(zo);var qo=forwardRef(({children:r,...e},n)=>jsx(H,{...e,ref:n,color:"inherit",startIcon:jsx(a,{icon:"COLUMNS"}),children:r??"Colunas"}));qo.displayName="ColumnsButton";var Qo=({setFilterButtonEl:r})=>{let e=useCallback(n=>{r(n);},[r]);return jsx(a$9,{container:b,children:jsx(GridToolbarColumnsButton,{ref:e,slotProps:{button:{color:"inherit",startIcon:jsx(a,{icon:"COLUMNS"}),children:"Colunas"}}})})},Co=Qo;var et=({title:r,header:e$1,headerProps:n,breakpoint:i="md",columns:s,rows:l=[],mobileSlots:d$1,mobileSlotsProps:O,mobileRender:ko,rowCount:w=0,paginationModel:p={page:0,pageSize:25},onPaginationChange:f$1,actions:L,moreActions:N,onAdd:V,onSearch:z,searchValue:To,onSearchChange:vo,slots:C,slotProps:Do,loading:P,fetching:F,fetchingNextPage:So,containerProps:Ao={height:562,maxHeight:562},hideFooter:_,showColumnButton:y=!1,filterButton:k,activeFilters:W,onRowsScrollEnd:v,scrollEndThreshold:R=200,...bo})=>{let u=a$1(),c$1=b$1("down",i),[wo,yo]=useState(null),U=useRef(null);useEffect(()=>{let a=U.current;if(!a||!c$1||!v)return;let K=()=>{let{scrollTop:xo,scrollHeight:Eo,clientHeight:Io}=a;Eo-xo-Io<=R&&v();};return a.addEventListener("scroll",K,{passive:!0}),()=>{a.removeEventListener("scroll",K);}},[c$1,v,R,l.length]);let q=!!z,M=!!V,D=!!L,x=!!N,E=c$1&&x,S=!c$1&&x,Ro=D||M||E,Q=S||q||y||!!k||!c$1,J=useCallback(()=>f$1?jsx(uo,{rowCount:w,page:p.page,rowsPerPage:p.pageSize,onPaginationChange:f$1}):null,[w,p,f$1]),Mo=useMemo(()=>({...C,footer:J,...y&&!C?.toolbar&&{toolbar:Co}}),[C,J,y]);return jsxs(a$2,{breakpoint:i,...Ao,flex:P?1:void 0,minHeight:P||l.length===0?562:void 0,children:[e$1?jsx(h,{p:3,...n,children:e$1}):jsxs(Fragment,{children:[jsxs(b$2,{breakpoint:i,children:[jsx(mo,{variant:"overline",color:"text.secondary",noWrap:!0,children:r}),Ro&&jsxs(c,{breakpoint:i,children:[D&&L,M&&jsxs(Fragment,{children:[D&&jsx(d,{orientation:"vertical",flexItem:!0}),jsx(H,{startIcon:jsx(a,{icon:"SIMPLE_ADD"}),variant:"contained",onClick:V,children:"Adicionar"})]}),E&&jsxs(Fragment,{children:[(D||M)&&jsx(d,{orientation:"vertical",flexItem:!0}),jsx(H,{color:"inherit",startIcon:jsx(a,{icon:"MORE_BOLD"}),size:"small",onClick:u.onOpen,children:"Mais"})]})]})]}),Q&&jsxs(f,{breakpoint:i,children:[jsxs(h,{flex:1,direction:"row",alignItems:"center",id:b,gap:.5,children:[x&&jsxs(Fragment,{children:[S&&jsxs(Fragment,{children:[jsx(H,{color:"inherit",startIcon:jsx(a,{icon:"MORE_BOLD"}),size:"small",onClick:u.onOpen,children:"Mais"}),!c$1&&jsx(e,{orientation:"vertical",flexItem:!0})]}),(S||E)&&jsx(a$3,{open:u.open,anchorEl:u.open,onClose:u.onClose,sx:{minWidth:160},disabledArrow:!0,children:jsx(go,{onClose:u.onClose,children:N})})]}),!c$1&&k&&jsxs(Fragment,{children:[k,S&&jsx(e,{orientation:"vertical",flexItem:!0})]})]}),q&&jsxs(g,{breakpoint:i,children:[jsx(a$4,{value:To,placeholder:"Buscar",onSearch:z,onChange:a=>vo?.(a.target.value),size:"small",fullWidth:!0,iconPosition:"start"}),c$1&&k&&jsx(h,{ml:1,children:k})]})]}),W&&W,!Q&&jsx(tt,{sx:{mt:2}})]}),c$1?jsxs(a$5,{isFetching:F,fetching:jsx(a$6,{}),isLoading:P,loading:jsx(ot,{sx:{m:"160px auto"}}),isEmpty:l.length===0,empty:jsxs(h,{flex:1,direction:"column",...O,children:[d$1&&d$1,jsx(h,{flex:1,alignItems:"center",justifyContent:"center",children:C?.noRowsOverlay?jsx(C.noRowsOverlay,{}):jsx(mo,{variant:"body2",color:"text.secondary",children:"Nenhum registro encontrado"})})]}),children:[jsxs(h,{direction:"column",flex:1,minHeight:0,...O,children:[d$1&&d$1,jsx(a$7,{fillContent:!0,ref:U,children:l.map(a=>ko(a))})]}),!_&&f$1&&jsx(h$1,{children:jsx(j,{count:w,page:p.page,rowsPerPage:p.pageSize,onPageChange:a=>f$1?.(a,p.pageSize),onRowsPerPageChange:a=>f$1?.(p.page,a)})})]}):jsx(a$8,{columns:s,rows:l,slots:Mo,slotProps:{panel:{anchorEl:wo},toolbar:{setFilterButtonEl:yo,showQuickFilter:!0},...Do},columnHeaderHeight:48,getRowHeight:()=>68,loading:P,fetching:F,hideFooter:_,onRowsScrollEnd:v,scrollEndThreshold:R,...bo}),So&&jsx(rt,{})]},P?"loading":"data")},Xt=memo(et,jo);
|
|
24
24
|
|
|
25
25
|
export { uo as a, go as b, Co as c, Xt as d };
|
|
26
|
-
//# sourceMappingURL=
|
|
27
|
-
//# sourceMappingURL=chunk-EUQNIDDO.js.map
|
|
26
|
+
//# sourceMappingURL=chunk-TGEDZBDY.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as a$4 } from './chunk-6ZSTKYGL.js';
|
|
2
2
|
import { a as a$1 } from './chunk-MC44LVZD.js';
|
|
3
3
|
import { a as a$3 } from './chunk-IJZCVZ32.js';
|
|
4
|
-
import { a } from './chunk-ET6H3IRG.js';
|
|
5
4
|
import { a as a$2 } from './chunk-F65ZXAGV.js';
|
|
5
|
+
import { a } from './chunk-ET6H3IRG.js';
|
|
6
6
|
import { memo, useCallback, useState, useMemo } from 'react';
|
|
7
7
|
import J from '@mui/material/Button';
|
|
8
8
|
import Q from '@mui/material/CircularProgress';
|
|
@@ -16,5 +16,4 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
16
16
|
var P=styled(N,{shouldForwardProp:r=>r!=="active"&&r!=="disabled"})(({theme:r,active:a,disabled:i})=>({boxShadow:"none",borderRadius:8,borderStyle:"solid",borderWidth:1.5,borderColor:a?r.palette.primary.main:r.palette.grey[300],color:r.palette.primary.main,backgroundColor:a?alpha(r.palette.primary.main,.04):"white","&:hover":{borderColor:r.palette.primary.main},...i?{opacity:.6,cursor:"default"}:{opacity:1,cursor:"pointer"}}));var L=memo(({item:r,isSelected:a$1,disabled:i,onSelectItem:n})=>{let o=useCallback(()=>{n(r);},[r,n]);return jsx(j,{item:!0,xs:4,children:jsx(P,{active:a$1,onClick:o,disabled:i,children:jsxs(d,{padding:1.5,width:"100%",children:[jsxs(d,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[jsx(h,{color:a$1?"primary.main":"text.primary",variant:"subtitle2",textAlign:"left",noWrap:!0,children:r.title}),a$1&&jsx(a,{icon:"CHECK_CIRCLE",width:24})]}),r.options.map(l=>jsx(h,{mt:1,variant:"body2",color:"text.disabled",fontSize:12,textAlign:"left",noWrap:!0,children:`${l.label}: ${l.value}`},l.label))]})})},r.title)});L.displayName="CardItem";var D=L;var X=new Intl.PluralRules("pt-BR"),Y=new Map([["one","selecionado"],["other","selecionados"]]),Z=r=>{let a=X.select(r),i=Y.get(a);return `${r} ${i}`},rr=({title:r,action:a,loading:i,items:n,values:o,onChange:l,disabled:s=!1})=>{let[c,O]=useState(),C=useMemo(()=>new Set(o),[o]),y=useCallback(t=>C.has(t),[C]),$=useMemo(()=>{if(!c)return n;let t=c.toLowerCase();return n.filter(u=>u.title.toLowerCase().includes(t))},[n,c]),A=useCallback(t=>{if(s)return;let u=y(t.value),g;u?g=o.filter(M=>M!==t.value):g=[...o,t.value],l(g);},[s,y,l,o]),b=useMemo(()=>n.map(t=>t.value),[n]),B=useCallback(()=>{s||(o.length===n.length?l([]):l(b));},[s,n.length,l,o.length,b]),G=useCallback(t=>O(t),[]),K=t=>{t.key==="Enter"&&t.preventDefault();},W=useMemo(()=>o.length===0?"nenhum selecionado":Z(o.length),[o.length]),z=useMemo(()=>typeof r=="string"?jsx(h,{variant:"overline",color:"text.disabled",children:r}):r,[r]);return jsxs(d,{gap:1.5,height:450,children:[jsxs(d,{direction:"row",justifyContent:"space-between",children:[z,jsx(h,{variant:"overline",color:"text.disabled",children:W})]}),jsxs(d,{direction:"row",alignItems:"center",spacing:1.5,children:[jsx(a$1,{fullWidth:!0,size:"small",iconPosition:"start",placeholder:"Buscar",trigger:"change",onSearch:G,onKeyDown:K}),a?jsx(Fragment,{children:a}):jsx(J,{onClick:B,size:"small",disabled:s,children:jsx(h,{variant:"overline",children:"TODOS"})})]}),jsx(a$2,{children:jsx(d,{flex:1,mb:2,children:jsx(a$3,{isLoading:i,loading:jsx(d,{alignItems:"center",mt:3,children:jsx(Q,{})}),isEmpty:n.length===0,empty:jsx(a$4,{sx:{svg:{height:140}},text:c?`N\xE3o foi possivel encontrar o item "${c}"`:"Nenhum item dispon\xEDvel"}),children:jsx(j,{container:!0,spacing:1.5,children:$.map(t=>jsx(D,{item:t,isSelected:y(t.value),disabled:s,onSelectItem:A},t.value))})})})})]})},vr=rr;
|
|
17
17
|
|
|
18
18
|
export { vr as a };
|
|
19
|
-
//# sourceMappingURL=
|
|
20
|
-
//# sourceMappingURL=chunk-X53N7UR5.js.map
|
|
19
|
+
//# sourceMappingURL=chunk-TLGUGGRI.js.map
|
package/dist/chunk-TVKBRJHF.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
var o=(n=>(n.LOG="LOG",n.WARN="WARN",n.ERROR="ERROR",n))(o||{}),e=(n=>(n.DEVELOPMENT="development",n.HOMOLOGATION="homologation",n.PRODUCTION="production",n))(e||{});
|
|
2
2
|
|
|
3
3
|
export { o as a, e as b };
|
|
4
|
-
//# sourceMappingURL=out.js.map
|
|
5
4
|
//# sourceMappingURL=chunk-TVKBRJHF.js.map
|