@zydon/common 2.2.48 → 2.2.50
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-23GJSDGU.js +10 -0
- package/dist/chunk-2MVQI7NJ.js +8 -0
- package/dist/chunk-3APKMSVD.js +5 -0
- package/dist/chunk-3E5A45HM.js +3 -0
- package/dist/chunk-4CNAGEPZ.js +13 -0
- package/dist/chunk-4INDXVIX.js +5 -0
- package/dist/chunk-56NARAT6.js +11 -0
- package/dist/chunk-5YJTSVA2.js +6 -0
- package/dist/chunk-7F56LFN2.js +17 -0
- package/dist/chunk-7KZ2UT76.js +8 -0
- package/dist/chunk-ANAHA3L6.js +3 -0
- package/dist/chunk-BA43A7R3.js +18 -0
- package/dist/chunk-BUYQKDFG.js +13 -0
- package/dist/chunk-BYAPKKGB.js +7 -0
- package/dist/chunk-CFVUZ4S5.js +5 -0
- package/dist/chunk-CFYNJQGN.js +43 -0
- package/dist/chunk-CQDKXUUX.js +3 -0
- package/dist/chunk-D27ND54J.js +16 -0
- package/dist/chunk-D2VRQ2K3.js +10 -0
- package/dist/chunk-DZ7YW2X6.js +18 -0
- package/dist/chunk-E5MGOPPQ.js +8 -0
- package/dist/chunk-EBTRMUBS.js +7 -0
- package/dist/chunk-EFUFJKJD.js +7 -0
- package/dist/chunk-F7CW3DXN.js +14 -0
- package/dist/chunk-GA4A5P3S.js +6 -0
- package/dist/chunk-GOC7PC2S.js +6 -0
- package/dist/chunk-ILHUUK4X.js +6 -0
- package/dist/chunk-KFZEM7KS.js +5 -0
- package/dist/chunk-KORVZU6L.js +17 -0
- package/dist/chunk-M6QHAL4V.js +7 -0
- package/dist/chunk-MCT77MRN.js +8 -0
- package/dist/chunk-NF42ENKE.js +9 -0
- package/dist/chunk-NHQNAQTD.js +7 -0
- package/dist/chunk-NQ32QBBI.js +7 -0
- package/dist/chunk-ORYAES3Q.js +5 -0
- package/dist/chunk-PMPALWRO.js +9 -0
- package/dist/chunk-QHVL5QNM.js +13 -0
- package/dist/chunk-QNAXGE5H.js +8 -0
- package/dist/chunk-QQB3DGHT.js +3 -0
- package/dist/chunk-RLMWIJKJ.js +10 -0
- package/dist/chunk-SEVJABAI.js +7 -0
- package/dist/chunk-T7I256S6.js +8 -0
- package/dist/chunk-TRI6XGH4.js +7 -0
- package/dist/chunk-TWGGHTU5.js +5 -0
- package/dist/chunk-UGH5FWZQ.js +13 -0
- package/dist/chunk-VTHBHXM2.js +7 -0
- package/dist/chunk-VVMQMROT.js +5 -0
- package/dist/chunk-W3MYAMTH.js +5 -0
- package/dist/chunk-WKD3OXUA.js +6 -0
- package/dist/chunk-YWEB6IAI.js +6 -0
- package/dist/chunk-YYKIC4EK.js +28 -0
- package/dist/chunk-Z2TDWMRU.js +6 -0
- package/dist/chunk-ZDHXW74M.js +5 -0
- package/dist/chunk-ZHP7IRS6.js +7 -0
- package/dist/chunk-ZODC2MGF.js +10 -0
- package/dist/components/ActionButton/index.js +3 -35
- package/dist/components/Autocomplete/index.js +3 -141
- package/dist/components/AutocompleteDetailed/index.js +3 -142
- package/dist/components/BuilderLayout/index.js +12 -26
- package/dist/components/BuilderSidebar/index.js +10 -20
- package/dist/components/ColorPickerInput/index.js +2 -101
- package/dist/components/ColoredLabel/index.js +7 -44
- package/dist/components/Common/index.js +22 -31
- package/dist/components/Confirm/index.js +11 -51
- package/dist/components/CustomAvatar/index.js +1 -62
- package/dist/components/CustomAvatarGroup/index.js +7 -76
- package/dist/components/DashedDivider/index.js +1 -10
- package/dist/components/DataCards/index.js +20 -60
- package/dist/components/DataGrid/index.js +15 -81
- package/dist/components/DatePicker/index.js +7 -42
- package/dist/components/DateRangePicker/index.js +7 -50
- package/dist/components/DateTimePicker/index.js +7 -40
- package/dist/components/Delayed/index.js +5 -17
- package/dist/components/Drawer/index.js +12 -39
- package/dist/components/EmptyContent/index.js +3 -80
- package/dist/components/EmptyView/index.js +2 -34
- package/dist/components/Error/index.js +10 -46
- package/dist/components/ExpandableGroup/index.js +13 -33
- package/dist/components/FixedProgressBar/index.js +1 -22
- package/dist/components/FrameSkeleton/index.js +16 -108
- package/dist/components/HelpButton/index.js +3 -22
- package/dist/components/Icon/index.js +2 -670
- package/dist/components/ImageCrop/index.js +1 -51
- package/dist/components/ImageCropModal/index.js +5 -130
- package/dist/components/Incrementer/index.js +5 -161
- package/dist/components/Label/index.js +9 -74
- package/dist/components/LoadingScreen/index.js +8 -11
- package/dist/components/MaskedInput/index.js +1 -55
- package/dist/components/MenuItem/index.js +11 -24
- package/dist/components/MenuPopover/index.js +1 -48
- package/dist/components/Modal/index.js +3 -33
- package/dist/components/ModalActions/index.js +6 -11
- package/dist/components/MoreMenu/index.js +11 -18
- package/dist/components/NumberInput/index.js +1 -109
- package/dist/components/PasswordRules/index.js +11 -78
- package/dist/components/PopoverSelect/index.js +13 -50
- package/dist/components/Portal/index.js +1 -28
- package/dist/components/Result/index.js +1 -28
- package/dist/components/SavedChanges/index.js +7 -42
- package/dist/components/Scrollbar/index.js +1 -45
- package/dist/components/SearchInput/index.js +3 -73
- package/dist/components/SelectableCards/index.js +8 -144
- package/dist/components/SeoPreview/index.js +13 -167
- package/dist/components/SplashScreen/index.js +8 -107
- package/dist/components/Steps/index.js +14 -71
- package/dist/components/StyledTab/index.js +10 -90
- package/dist/components/StyledTabs/index.js +7 -27
- package/dist/components/Summary/index.js +8 -15
- package/dist/components/SwapList/index.js +22 -249
- package/dist/components/TabPanel/index.js +6 -34
- package/dist/components/TextMaxLine/index.js +2 -49
- package/dist/components/TimePicker/index.js +7 -42
- package/dist/components/ToggleButtonGroup/index.js +7 -10
- package/dist/components/Tooltip/index.js +6 -8
- package/dist/components/WhiteBox/index.js +1 -8
- package/dist/components/animate/index.js +2 -16
- package/dist/components/carousel/index.js +16 -10
- package/dist/components/form/Address/index.js +15 -199
- package/dist/components/form/Autocomplete/index.js +4 -42
- package/dist/components/form/AutocompleteDetailed/index.js +9 -42
- package/dist/components/form/Checkbox/index.js +9 -51
- package/dist/components/form/Codes/index.js +11 -87
- package/dist/components/form/ColorPicker/index.js +8 -52
- package/dist/components/form/DatePicker/index.js +8 -63
- package/dist/components/form/DateRangePicker/index.js +10 -77
- package/dist/components/form/DateTimePicker/index.js +8 -61
- package/dist/components/form/Field/index.js +1 -49
- package/dist/components/form/Form/index.js +7 -29
- package/dist/components/form/Incrementer/index.js +11 -38
- package/dist/components/form/InputTags/index.js +9 -69
- package/dist/components/form/MaskedInput/index.js +2 -45
- package/dist/components/form/MultiCheckbox/index.js +12 -93
- package/dist/components/form/MultiChipField/index.js +8 -49
- package/dist/components/form/NumberInput/index.js +7 -43
- package/dist/components/form/Password/index.js +13 -91
- package/dist/components/form/RadioGroup/index.js +13 -127
- package/dist/components/form/SelectableCards/index.js +14 -22
- package/dist/components/form/Switch/index.js +9 -71
- package/dist/components/form/TimePicker/index.js +8 -64
- package/dist/components/form/UploadAvatarWithCrop/index.js +20 -59
- package/dist/components/form/UploadWithCrop/index.js +23 -59
- package/dist/components/form/Webhook/index.js +19 -146
- package/dist/components/lightbox/index.js +16 -3
- package/dist/components/table/index.js +21 -19
- package/dist/components/upload/index.js +23 -14
- package/dist/hooks/useActiveElement.js +5 -27
- package/dist/hooks/useApiMessage.js +5 -33
- package/dist/hooks/useAutocomplete.js +6 -61
- package/dist/hooks/useCopyToClipboard.js +5 -22
- package/dist/hooks/useDatagrid.js +6 -45
- package/dist/hooks/useDebounceValue.js +5 -18
- package/dist/hooks/useDeepCompareEffect.js +6 -16
- package/dist/hooks/useEventCallback.js +2 -17
- package/dist/hooks/useEventListener.js +1 -24
- package/dist/hooks/useIsMounting.js +5 -13
- package/dist/hooks/useIsomorphicLayoutEffect.js +1 -6
- package/dist/hooks/useLocalStorage.js +8 -88
- package/dist/hooks/useMount.js +5 -9
- package/dist/hooks/useOnClickOutside.js +5 -15
- package/dist/hooks/usePagination.js +5 -40
- package/dist/hooks/usePopover.js +1 -24
- package/dist/hooks/useResponsive.js +1 -35
- package/dist/hooks/useScrollOffSetTop.js +6 -32
- package/dist/hooks/useSnackbar.js +1 -13
- package/dist/hooks/useTabs.js +5 -16
- package/dist/hooks/useToggle.js +1 -11
- package/dist/hooks/useUpload.js +1 -57
- package/dist/hooks/useUploadImage.js +2 -79
- package/dist/index.css +10 -0
- package/dist/index.js +3 -6
- package/dist/locales/all-langs.js +1 -39
- package/dist/theme/core/index.js +3 -6
- package/dist/theme/styles/index.d.ts +1 -1
- package/dist/theme/styles/index.js +1 -3
- package/dist/theme/theme-provider.js +7 -45
- package/dist/theme/with-settings/index.js +4 -2
- package/dist/types/addressProps.js +1 -1
- package/dist/types/api.js +1 -1
- package/dist/types/autoComplete.js +1 -1
- package/dist/types/autoCompleteProps.js +1 -1
- package/dist/types/baseField.js +1 -1
- package/dist/types/dataGridProps.js +1 -1
- package/dist/types/datagrid.js +1 -1
- package/dist/types/datePickerProps.js +1 -1
- package/dist/types/dateRangePickerProps.js +1 -1
- package/dist/types/dateTimePickerProps.js +1 -1
- package/dist/types/fieldProps.js +1 -1
- package/dist/types/icon.js +1 -331
- package/dist/types/iconProps.js +1 -1
- package/dist/types/incrementerProps.js +1 -1
- package/dist/types/item.js +1 -1
- package/dist/types/multiCheckboxProps.js +1 -1
- package/dist/types/numberInputProps.js +1 -1
- package/dist/types/option.js +1 -1
- package/dist/types/radioGroupProps.js +1 -1
- package/dist/types/searchInputProps.js +1 -1
- package/dist/types/sectionProps.js +1 -1
- package/dist/types/switchProps.js +1 -1
- package/dist/types/timePickerProps.js +1 -1
- package/dist/types/upload.js +1 -1
- package/dist/types/webhook.js +3 -51
- package/dist/utils/color.js +1 -6
- package/dist/utils/compare.js +1 -6
- package/dist/utils/date.js +6 -23
- package/dist/utils/formatNumber.js +1 -94
- package/dist/utils/formatTime.js +1 -169
- package/dist/utils/loadable.js +7 -14
- package/dist/utils/mask.js +3 -44
- package/dist/utils/number.js +1 -15
- package/dist/utils/sort.js +3 -24
- package/dist/utils/uuidv4.js +3 -10
- package/dist/utils/validators.js +1 -86
- package/package.json +1 -1
- package/dist/components/ActionButton/index.js.map +0 -1
- package/dist/components/Autocomplete/index.js.map +0 -1
- package/dist/components/AutocompleteDetailed/index.js.map +0 -1
- package/dist/components/BuilderLayout/index.js.map +0 -1
- package/dist/components/BuilderSidebar/index.js.map +0 -1
- package/dist/components/ColorPickerInput/index.js.map +0 -1
- package/dist/components/ColoredLabel/index.js.map +0 -1
- package/dist/components/Common/index.js.map +0 -1
- package/dist/components/Confirm/index.js.map +0 -1
- package/dist/components/CustomAvatar/index.js.map +0 -1
- package/dist/components/CustomAvatarGroup/index.js.map +0 -1
- package/dist/components/DashedDivider/index.js.map +0 -1
- package/dist/components/DataCards/index.js.map +0 -1
- package/dist/components/DataGrid/index.js.map +0 -1
- package/dist/components/DatePicker/index.js.map +0 -1
- package/dist/components/DateRangePicker/index.js.map +0 -1
- package/dist/components/DateTimePicker/index.js.map +0 -1
- package/dist/components/Delayed/index.js.map +0 -1
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/EmptyContent/index.js.map +0 -1
- package/dist/components/EmptyView/index.js.map +0 -1
- package/dist/components/Error/index.js.map +0 -1
- package/dist/components/ExpandableGroup/index.js.map +0 -1
- package/dist/components/FixedProgressBar/index.js.map +0 -1
- package/dist/components/FrameSkeleton/index.js.map +0 -1
- package/dist/components/HelpButton/index.js.map +0 -1
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/ImageCrop/index.js.map +0 -1
- package/dist/components/ImageCropModal/index.js.map +0 -1
- package/dist/components/Incrementer/index.js.map +0 -1
- package/dist/components/Label/index.js.map +0 -1
- package/dist/components/LoadingScreen/index.js.map +0 -1
- package/dist/components/MaskedInput/index.js.map +0 -1
- package/dist/components/MenuItem/index.js.map +0 -1
- package/dist/components/MenuPopover/index.js.map +0 -1
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/ModalActions/index.js.map +0 -1
- package/dist/components/MoreMenu/index.js.map +0 -1
- package/dist/components/NumberInput/index.js.map +0 -1
- package/dist/components/PasswordRules/index.js.map +0 -1
- package/dist/components/PopoverSelect/index.js.map +0 -1
- package/dist/components/Portal/index.js.map +0 -1
- package/dist/components/Result/index.js.map +0 -1
- package/dist/components/SavedChanges/index.js.map +0 -1
- package/dist/components/Scrollbar/index.js.map +0 -1
- package/dist/components/SearchInput/index.js.map +0 -1
- package/dist/components/SelectableCards/index.js.map +0 -1
- package/dist/components/SeoPreview/index.js.map +0 -1
- package/dist/components/SplashScreen/index.js.map +0 -1
- package/dist/components/Steps/index.js.map +0 -1
- package/dist/components/StyledTab/index.js.map +0 -1
- package/dist/components/StyledTabs/index.js.map +0 -1
- package/dist/components/Summary/index.js.map +0 -1
- package/dist/components/SwapList/index.js.map +0 -1
- package/dist/components/TabPanel/index.js.map +0 -1
- package/dist/components/TextMaxLine/index.js.map +0 -1
- package/dist/components/TimePicker/index.js.map +0 -1
- package/dist/components/ToggleButtonGroup/index.js.map +0 -1
- package/dist/components/Tooltip/index.js.map +0 -1
- package/dist/components/WhiteBox/index.js.map +0 -1
- package/dist/components/animate/index.js.map +0 -1
- package/dist/components/carousel/index.js.map +0 -1
- package/dist/components/form/Address/index.js.map +0 -1
- package/dist/components/form/Autocomplete/index.js.map +0 -1
- package/dist/components/form/AutocompleteDetailed/index.js.map +0 -1
- package/dist/components/form/Checkbox/index.js.map +0 -1
- package/dist/components/form/Codes/index.js.map +0 -1
- package/dist/components/form/ColorPicker/index.js.map +0 -1
- package/dist/components/form/DatePicker/index.js.map +0 -1
- package/dist/components/form/DateRangePicker/index.js.map +0 -1
- package/dist/components/form/DateTimePicker/index.js.map +0 -1
- package/dist/components/form/Field/index.js.map +0 -1
- package/dist/components/form/Form/index.js.map +0 -1
- package/dist/components/form/Incrementer/index.js.map +0 -1
- package/dist/components/form/InputTags/index.js.map +0 -1
- package/dist/components/form/MaskedInput/index.js.map +0 -1
- package/dist/components/form/MultiCheckbox/index.js.map +0 -1
- package/dist/components/form/MultiChipField/index.js.map +0 -1
- package/dist/components/form/NumberInput/index.js.map +0 -1
- package/dist/components/form/Password/index.js.map +0 -1
- package/dist/components/form/RadioGroup/index.js.map +0 -1
- package/dist/components/form/SelectableCards/index.js.map +0 -1
- package/dist/components/form/Switch/index.js.map +0 -1
- package/dist/components/form/TimePicker/index.js.map +0 -1
- package/dist/components/form/UploadAvatarWithCrop/index.js.map +0 -1
- package/dist/components/form/UploadWithCrop/index.js.map +0 -1
- package/dist/components/form/Webhook/index.js.map +0 -1
- package/dist/components/lightbox/index.js.map +0 -1
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/upload/index.js.map +0 -1
- package/dist/hooks/useActiveElement.js.map +0 -1
- package/dist/hooks/useApiMessage.js.map +0 -1
- package/dist/hooks/useAutocomplete.js.map +0 -1
- package/dist/hooks/useCopyToClipboard.js.map +0 -1
- package/dist/hooks/useDatagrid.js.map +0 -1
- package/dist/hooks/useDebounceValue.js.map +0 -1
- package/dist/hooks/useDeepCompareEffect.js.map +0 -1
- package/dist/hooks/useEventCallback.js.map +0 -1
- package/dist/hooks/useEventListener.js.map +0 -1
- package/dist/hooks/useIsMounting.js.map +0 -1
- package/dist/hooks/useIsomorphicLayoutEffect.js.map +0 -1
- package/dist/hooks/useLocalStorage.js.map +0 -1
- package/dist/hooks/useMount.js.map +0 -1
- package/dist/hooks/useOnClickOutside.js.map +0 -1
- package/dist/hooks/usePagination.js.map +0 -1
- package/dist/hooks/usePopover.js.map +0 -1
- package/dist/hooks/useResponsive.js.map +0 -1
- package/dist/hooks/useScrollOffSetTop.js.map +0 -1
- package/dist/hooks/useSnackbar.js.map +0 -1
- package/dist/hooks/useTabs.js.map +0 -1
- package/dist/hooks/useToggle.js.map +0 -1
- package/dist/hooks/useUpload.js.map +0 -1
- package/dist/hooks/useUploadImage.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/locales/all-langs.js.map +0 -1
- package/dist/theme/core/index.js.map +0 -1
- package/dist/theme/styles/index.js.map +0 -1
- package/dist/theme/theme-provider.js.map +0 -1
- package/dist/theme/with-settings/index.js.map +0 -1
- package/dist/types/addressProps.js.map +0 -1
- package/dist/types/api.js.map +0 -1
- package/dist/types/autoComplete.js.map +0 -1
- package/dist/types/autoCompleteProps.js.map +0 -1
- package/dist/types/baseField.js.map +0 -1
- package/dist/types/dataGridProps.js.map +0 -1
- package/dist/types/datagrid.js.map +0 -1
- package/dist/types/datePickerProps.js.map +0 -1
- package/dist/types/dateRangePickerProps.js.map +0 -1
- package/dist/types/dateTimePickerProps.js.map +0 -1
- package/dist/types/fieldProps.js.map +0 -1
- package/dist/types/icon.js.map +0 -1
- package/dist/types/iconProps.js.map +0 -1
- package/dist/types/incrementerProps.js.map +0 -1
- package/dist/types/item.js.map +0 -1
- package/dist/types/multiCheckboxProps.js.map +0 -1
- package/dist/types/numberInputProps.js.map +0 -1
- package/dist/types/option.js.map +0 -1
- package/dist/types/radioGroupProps.js.map +0 -1
- package/dist/types/searchInputProps.js.map +0 -1
- package/dist/types/sectionProps.js.map +0 -1
- package/dist/types/switchProps.js.map +0 -1
- package/dist/types/timePickerProps.js.map +0 -1
- package/dist/types/upload.js.map +0 -1
- package/dist/types/webhook.js.map +0 -1
- package/dist/utils/color.js.map +0 -1
- package/dist/utils/compare.js.map +0 -1
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/formatNumber.js.map +0 -1
- package/dist/utils/formatTime.js.map +0 -1
- package/dist/utils/loadable.js.map +0 -1
- package/dist/utils/mask.js.map +0 -1
- package/dist/utils/number.js.map +0 -1
- package/dist/utils/sort.js.map +0 -1
- package/dist/utils/uuidv4.js.map +0 -1
- package/dist/utils/validators.js.map +0 -1
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"& .MuiTabs-indicator": {
|
|
9
|
-
display: "none",
|
|
10
|
-
justifyContent: "center",
|
|
11
|
-
backgroundColor: "transparent"
|
|
12
|
-
},
|
|
13
|
-
"& > .MuiButtonBase-root": {
|
|
14
|
-
height: 32,
|
|
15
|
-
width: 32,
|
|
16
|
-
color: "#fff",
|
|
17
|
-
marginBottom: 2
|
|
18
|
-
},
|
|
19
|
-
"& .MuiTabs-flexContainer": {
|
|
20
|
-
gap: 4
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
var StyledTabs_default = StyledTabs;
|
|
24
|
-
export {
|
|
25
|
-
StyledTabs_default as default
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { styled } from '@mui/material/styles';
|
|
2
|
+
import r from '@mui/material/Tabs';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var a=styled(o=>jsx(r,{...o,variant:"scrollable",scrollButtons:"auto"}))({height:"100%",alignItems:"flex-end",gap:8,"& .MuiTabs-indicator":{display:"none",justifyContent:"center",backgroundColor:"transparent"},"& > .MuiButtonBase-root":{height:32,width:32,color:"#fff",marginBottom:2},"& .MuiTabs-flexContainer":{gap:4}}),s=a;
|
|
6
|
+
|
|
7
|
+
export { s as default };
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
]) });
|
|
10
|
-
};
|
|
11
|
-
var Summary_default = Summary;
|
|
12
|
-
export {
|
|
13
|
-
Summary_default as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import n from '@mui/material/Stack';
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
3
|
+
import a from '@mui/material/Typography';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var l=styled(n)({display:"grid",gridTemplateColumns:"auto auto"}),p=styled(a)(({theme:e})=>({color:e.palette.grey[600],display:"flex",gap:"8px",alignItems:"center"})),i=styled(a)(({theme:e})=>({textAlign:"right",color:e.palette.grey[800]}));var u=({data:e,...m})=>e.length===0?null:jsx(l,{gap:1,...m,children:e.map(r=>[jsx(p,{variant:"body2",children:r.label},`label:${r.id}`),jsx(i,{variant:"body2",children:r.value},`value:${r.id}`)])}),c=u;
|
|
7
|
+
|
|
8
|
+
export { c as default };
|
|
@@ -1,249 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
itemsTitle,
|
|
24
|
-
selectedItemsTitle,
|
|
25
|
-
additionalContent,
|
|
26
|
-
enableSearchInSelectedItems,
|
|
27
|
-
selectedItemChild,
|
|
28
|
-
onSearch
|
|
29
|
-
}) => {
|
|
30
|
-
const [localSearch, setLocalSearch] = useState("");
|
|
31
|
-
const handleSearchWithDebounce = debounce(onSearch, 400);
|
|
32
|
-
const availableItems = items.filter(
|
|
33
|
-
(item) => !selectedItems.some((selectedItem) => selectedItem.id === item.id)
|
|
34
|
-
);
|
|
35
|
-
const searchedSelectedItems = selectedItems.filter(
|
|
36
|
-
(item) => item.name?.toLowerCase().includes(localSearch.toLowerCase()) || item.id?.toLowerCase().includes(localSearch.toLowerCase())
|
|
37
|
-
);
|
|
38
|
-
const filtredSelectedItems = enableSearchInSelectedItems && localSearch ? searchedSelectedItems : selectedItems;
|
|
39
|
-
const [selectedesForAdd, setSelectedesForAdd] = useState([]);
|
|
40
|
-
const [selectedesForRemove, setSelectedesForRemove] = useState([]);
|
|
41
|
-
const onAddItems = () => {
|
|
42
|
-
onAdd(selectedesForAdd);
|
|
43
|
-
setSelectedesForAdd([]);
|
|
44
|
-
};
|
|
45
|
-
const onRemoveItems = () => {
|
|
46
|
-
onRemove(selectedesForRemove);
|
|
47
|
-
setSelectedesForRemove([]);
|
|
48
|
-
};
|
|
49
|
-
const onSelectAllForRemove = (checked) => {
|
|
50
|
-
if (checked) {
|
|
51
|
-
setSelectedesForRemove(filtredSelectedItems);
|
|
52
|
-
} else {
|
|
53
|
-
setSelectedesForRemove([]);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const onSelectAllForAdd = (checked) => {
|
|
57
|
-
if (checked) {
|
|
58
|
-
setSelectedesForAdd(availableItems);
|
|
59
|
-
} else {
|
|
60
|
-
setSelectedesForAdd([]);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const onSelectItemForRemove = (item, checked) => {
|
|
64
|
-
if (checked) {
|
|
65
|
-
setSelectedesForRemove((prevState) => [...prevState, item]);
|
|
66
|
-
} else {
|
|
67
|
-
setSelectedesForRemove(
|
|
68
|
-
(prevState) => prevState.filter((prevItem) => prevItem.id !== item.id)
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const onSelectItemForAdd = (item, checked) => {
|
|
73
|
-
if (checked) {
|
|
74
|
-
setSelectedesForAdd((prevState) => [...prevState, item]);
|
|
75
|
-
} else {
|
|
76
|
-
setSelectedesForAdd(
|
|
77
|
-
(prevState) => prevState.filter((prevItem) => prevItem.id !== item.id)
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
const handleKeyDown = (e) => {
|
|
82
|
-
if (e.key === "Enter")
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
};
|
|
85
|
-
return /* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", gap: 3, children: [
|
|
86
|
-
/* @__PURE__ */ jsx(Card, { flex: 1, children: /* @__PURE__ */ jsxs(Stack, { flex: 1, overflow: "hidden", children: [
|
|
87
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 1, padding: 2, children: [
|
|
88
|
-
/* @__PURE__ */ jsx(
|
|
89
|
-
Checkbox,
|
|
90
|
-
{
|
|
91
|
-
size: "small",
|
|
92
|
-
indeterminate: selectedesForAdd.length > 0 && selectedesForAdd.length !== availableItems.length,
|
|
93
|
-
checked: selectedesForAdd.length > 0 && selectedesForAdd.length === availableItems.length,
|
|
94
|
-
onChange: (e) => onSelectAllForAdd(e.target.checked)
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
98
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", color: "text.primary", children: `${itemsTitle} cadastrados(as)` }),
|
|
99
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.disabled", children: `${selectedesForAdd.length}/${availableItems.length} selecionados` })
|
|
100
|
-
] })
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ jsx(Divider, {}),
|
|
103
|
-
/* @__PURE__ */ jsxs(Stack, { p: 2, flex: 1, overflow: "hidden", children: [
|
|
104
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 1, children: [
|
|
105
|
-
/* @__PURE__ */ jsx(
|
|
106
|
-
SearchInput,
|
|
107
|
-
{
|
|
108
|
-
iconPosition: "start",
|
|
109
|
-
placeholder: "Buscar",
|
|
110
|
-
onKeyDown: handleKeyDown,
|
|
111
|
-
size: "small",
|
|
112
|
-
fullWidth: true,
|
|
113
|
-
trigger: "change",
|
|
114
|
-
onSearch: (value) => handleSearchWithDebounce(value)
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
additionalContent
|
|
118
|
-
] }),
|
|
119
|
-
/* @__PURE__ */ jsx(
|
|
120
|
-
Result,
|
|
121
|
-
{
|
|
122
|
-
isLoading: loading,
|
|
123
|
-
loading: /* @__PURE__ */ jsx(Stack, { alignItems: "center", justifyContent: "center", flex: 1, children: /* @__PURE__ */ jsx(CircularProgress, {}) }),
|
|
124
|
-
isEmpty: availableItems.length === 0,
|
|
125
|
-
empty: /* @__PURE__ */ jsx(
|
|
126
|
-
EmptyView,
|
|
127
|
-
{
|
|
128
|
-
text: search ? `Nenhum ${searchText} encontrado` : `Nenhum ${searchText} dispon\xEDvel`,
|
|
129
|
-
sx: { svg: { height: 140 } }
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
children: /* @__PURE__ */ jsx(Scrollbar, { sx: { maxHeight: 280 }, children: availableItems.map((element) => /* @__PURE__ */ jsxs(Stack, { gap: 1, marginTop: "8px", children: [
|
|
133
|
-
/* @__PURE__ */ jsxs(
|
|
134
|
-
Stack,
|
|
135
|
-
{
|
|
136
|
-
direction: "row",
|
|
137
|
-
gap: 0.5,
|
|
138
|
-
alignItems: "center",
|
|
139
|
-
marginTop: "8px",
|
|
140
|
-
children: [
|
|
141
|
-
/* @__PURE__ */ jsx(
|
|
142
|
-
Checkbox,
|
|
143
|
-
{
|
|
144
|
-
size: "small",
|
|
145
|
-
checked: selectedesForAdd.includes(element),
|
|
146
|
-
onChange: (event) => onSelectItemForAdd(element, event.target.checked)
|
|
147
|
-
}
|
|
148
|
-
),
|
|
149
|
-
element.label
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ jsx(Divider, {})
|
|
154
|
-
] }, element.id)) })
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
] })
|
|
158
|
-
] }) }),
|
|
159
|
-
/* @__PURE__ */ jsxs(Stack, { gap: 3, children: [
|
|
160
|
-
/* @__PURE__ */ jsx(StyledSwapButton, { variant: "outlined", onClick: onAddItems, children: /* @__PURE__ */ jsx(Icon, { icon: "ARROW_RIGHT_SIMPLE" }) }),
|
|
161
|
-
/* @__PURE__ */ jsx(StyledSwapButton, { variant: "outlined", onClick: onRemoveItems, children: /* @__PURE__ */ jsx(Icon, { icon: "ARROW_LEFT_SIMPLE" }) })
|
|
162
|
-
] }),
|
|
163
|
-
/* @__PURE__ */ jsx(Card, { flex: 1, children: /* @__PURE__ */ jsxs(Stack, { flex: 1, overflow: "hidden", children: [
|
|
164
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 1, padding: 2, children: [
|
|
165
|
-
/* @__PURE__ */ jsx(
|
|
166
|
-
Checkbox,
|
|
167
|
-
{
|
|
168
|
-
size: "small",
|
|
169
|
-
indeterminate: selectedesForRemove.length > 0 && selectedesForRemove.length !== selectedItems.length,
|
|
170
|
-
checked: selectedesForRemove.length > 0 && selectedesForRemove.length === selectedItems.length,
|
|
171
|
-
onChange: (e) => onSelectAllForRemove(e.target.checked)
|
|
172
|
-
}
|
|
173
|
-
),
|
|
174
|
-
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
175
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", color: "text.primary", children: `${selectedItemsTitle} selecionados(as)` }),
|
|
176
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.disabled", children: `${selectedesForRemove.length}/${selectedItems.length} selecionados` })
|
|
177
|
-
] })
|
|
178
|
-
] }),
|
|
179
|
-
/* @__PURE__ */ jsx(Divider, {}),
|
|
180
|
-
/* @__PURE__ */ jsxs(Stack, { p: 2, gap: 1, overflow: "hidden", children: [
|
|
181
|
-
enableSearchInSelectedItems && /* @__PURE__ */ jsx(
|
|
182
|
-
SearchInput,
|
|
183
|
-
{
|
|
184
|
-
iconPosition: "start",
|
|
185
|
-
placeholder: "Buscar",
|
|
186
|
-
size: "small",
|
|
187
|
-
fullWidth: true,
|
|
188
|
-
trigger: "change",
|
|
189
|
-
onSearch: (value) => setLocalSearch(value ?? ""),
|
|
190
|
-
onKeyDown: handleKeyDown
|
|
191
|
-
}
|
|
192
|
-
),
|
|
193
|
-
/* @__PURE__ */ jsx(
|
|
194
|
-
Result,
|
|
195
|
-
{
|
|
196
|
-
isLoading: loading,
|
|
197
|
-
loading: /* @__PURE__ */ jsx(Stack, { alignItems: "center", justifyContent: "center", flex: 1, children: /* @__PURE__ */ jsx(CircularProgress, {}) }),
|
|
198
|
-
isEmpty: filtredSelectedItems.length === 0,
|
|
199
|
-
empty: /* @__PURE__ */ jsx(
|
|
200
|
-
EmptyView,
|
|
201
|
-
{
|
|
202
|
-
text: localSearch && enableSearchInSelectedItems ? `Nenhum ${searchText} encontrado` : `Nenhum ${searchText} selecionado`,
|
|
203
|
-
sx: {
|
|
204
|
-
svg: { height: 140 },
|
|
205
|
-
marginTop: "56px",
|
|
206
|
-
backgroundColor: "transparent"
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
),
|
|
210
|
-
children: /* @__PURE__ */ jsx(Scrollbar, { sx: { maxHeight: 280 }, children: filtredSelectedItems.map((element) => /* @__PURE__ */ jsxs(Stack, { gap: 1, children: [
|
|
211
|
-
/* @__PURE__ */ jsxs(
|
|
212
|
-
Stack,
|
|
213
|
-
{
|
|
214
|
-
direction: "row",
|
|
215
|
-
gap: 0.5,
|
|
216
|
-
alignItems: "center",
|
|
217
|
-
marginTop: "8px",
|
|
218
|
-
children: [
|
|
219
|
-
/* @__PURE__ */ jsxs(Stack, { direction: "row", children: [
|
|
220
|
-
selectedItemChild && selectedItemChild(element),
|
|
221
|
-
/* @__PURE__ */ jsx(
|
|
222
|
-
Checkbox,
|
|
223
|
-
{
|
|
224
|
-
size: "small",
|
|
225
|
-
checked: selectedesForRemove.includes(element),
|
|
226
|
-
onChange: (event) => onSelectItemForRemove(
|
|
227
|
-
element,
|
|
228
|
-
event.target.checked
|
|
229
|
-
)
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
] }),
|
|
233
|
-
element.label
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
),
|
|
237
|
-
/* @__PURE__ */ jsx(Divider, {})
|
|
238
|
-
] }, element.id)) })
|
|
239
|
-
}
|
|
240
|
-
)
|
|
241
|
-
] })
|
|
242
|
-
] }) })
|
|
243
|
-
] }) });
|
|
244
|
-
};
|
|
245
|
-
var SwapList_default = SwapList;
|
|
246
|
-
export {
|
|
247
|
-
SwapList_default as default
|
|
248
|
-
};
|
|
249
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { a } from '../../chunk-D2VRQ2K3.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-TWGGHTU5.js';
|
|
3
|
+
import { a as a$3 } from '../../chunk-E5MGOPPQ.js';
|
|
4
|
+
import { a as a$2 } from '../../chunk-2MVQI7NJ.js';
|
|
5
|
+
import '../../chunk-ZDHXW74M.js';
|
|
6
|
+
import { a as a$4 } from '../../chunk-PMPALWRO.js';
|
|
7
|
+
import '../../chunk-3E5A45HM.js';
|
|
8
|
+
import { useState } from 'react';
|
|
9
|
+
import h from '@mui/material/Checkbox';
|
|
10
|
+
import T from '@mui/material/CircularProgress';
|
|
11
|
+
import f from '@mui/material/Divider';
|
|
12
|
+
import t from '@mui/material/Stack';
|
|
13
|
+
import S from '@mui/material/Typography';
|
|
14
|
+
import { debounce } from '@mui/material/utils';
|
|
15
|
+
import U from '@mui/material/Box';
|
|
16
|
+
import X from '@mui/material/Button';
|
|
17
|
+
import { styled } from '@mui/material/styles';
|
|
18
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
19
|
+
|
|
20
|
+
var R=styled(X)(({theme:a})=>({borderColor:a.palette.grey[300]})),L=styled(U)(({theme:a})=>({display:"flex",border:`1.5px solid ${a.palette.grey[300]}`,height:450,borderRadius:8,flex:1,overflow:"hidden"}));var Z=({selectedItems:a$5,items:B,loading:$,searchText:g,onAdd:D,onRemove:P,search:z,itemsTitle:W,selectedItemsTitle:H,additionalContent:K,enableSearchInSelectedItems:k,selectedItemChild:A,onSearch:N})=>{let[m,_]=useState(""),M=debounce(N,400),d=B.filter(e=>!a$5.some(n=>n.id===e.id)),O=a$5.filter(e=>e.name?.toLowerCase().includes(m.toLowerCase())||e.id?.toLowerCase().includes(m.toLowerCase())),u=k&&m?O:a$5,[i,s]=useState([]),[l,p]=useState([]),j=()=>{D(i),s([]);},G=()=>{P(l),p([]);},V=e=>{p(e?u:[]);},q=e=>{s(e?d:[]);},J=(e,n)=>{p(n?c=>[...c,e]:c=>c.filter(y=>y.id!==e.id));},Q=(e,n)=>{s(n?c=>[...c,e]:c=>c.filter(y=>y.id!==e.id));},E=e=>{e.key==="Enter"&&e.preventDefault();};return jsx(t,{children:jsxs(t,{direction:"row",alignItems:"center",gap:3,children:[jsx(L,{flex:1,children:jsxs(t,{flex:1,overflow:"hidden",children:[jsxs(t,{direction:"row",gap:1,padding:2,children:[jsx(h,{size:"small",indeterminate:i.length>0&&i.length!==d.length,checked:i.length>0&&i.length===d.length,onChange:e=>q(e.target.checked)}),jsxs(t,{children:[jsx(S,{variant:"subtitle2",color:"text.primary",children:`${W} cadastrados(as)`}),jsx(S,{variant:"caption",color:"text.disabled",children:`${i.length}/${d.length} selecionados`})]})]}),jsx(f,{}),jsxs(t,{p:2,flex:1,overflow:"hidden",children:[jsxs(t,{direction:"row",gap:1,children:[jsx(a,{iconPosition:"start",placeholder:"Buscar",onKeyDown:E,size:"small",fullWidth:!0,trigger:"change",onSearch:e=>M(e)}),K]}),jsx(a$1,{isLoading:$,loading:jsx(t,{alignItems:"center",justifyContent:"center",flex:1,children:jsx(T,{})}),isEmpty:d.length===0,empty:jsx(a$2,{text:z?`Nenhum ${g} encontrado`:`Nenhum ${g} dispon\xEDvel`,sx:{svg:{height:140}}}),children:jsx(a$3,{sx:{maxHeight:280},children:d.map(e=>jsxs(t,{gap:1,marginTop:"8px",children:[jsxs(t,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[jsx(h,{size:"small",checked:i.includes(e),onChange:n=>Q(e,n.target.checked)}),e.label]}),jsx(f,{})]},e.id))})})]})]})}),jsxs(t,{gap:3,children:[jsx(R,{variant:"outlined",onClick:j,children:jsx(a$4,{icon:"ARROW_RIGHT_SIMPLE"})}),jsx(R,{variant:"outlined",onClick:G,children:jsx(a$4,{icon:"ARROW_LEFT_SIMPLE"})})]}),jsx(L,{flex:1,children:jsxs(t,{flex:1,overflow:"hidden",children:[jsxs(t,{direction:"row",gap:1,padding:2,children:[jsx(h,{size:"small",indeterminate:l.length>0&&l.length!==a$5.length,checked:l.length>0&&l.length===a$5.length,onChange:e=>V(e.target.checked)}),jsxs(t,{children:[jsx(S,{variant:"subtitle2",color:"text.primary",children:`${H} selecionados(as)`}),jsx(S,{variant:"caption",color:"text.disabled",children:`${l.length}/${a$5.length} selecionados`})]})]}),jsx(f,{}),jsxs(t,{p:2,gap:1,overflow:"hidden",children:[k&&jsx(a,{iconPosition:"start",placeholder:"Buscar",size:"small",fullWidth:!0,trigger:"change",onSearch:e=>_(e??""),onKeyDown:E}),jsx(a$1,{isLoading:$,loading:jsx(t,{alignItems:"center",justifyContent:"center",flex:1,children:jsx(T,{})}),isEmpty:u.length===0,empty:jsx(a$2,{text:m&&k?`Nenhum ${g} encontrado`:`Nenhum ${g} selecionado`,sx:{svg:{height:140},marginTop:"56px",backgroundColor:"transparent"}}),children:jsx(a$3,{sx:{maxHeight:280},children:u.map(e=>jsxs(t,{gap:1,children:[jsxs(t,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[jsxs(t,{direction:"row",children:[A&&A(e),jsx(h,{size:"small",checked:l.includes(e),onChange:n=>J(e,n.target.checked)})]}),e.label]}),jsx(f,{})]},e.id))})})]})]})})]})})},ue=Z;
|
|
21
|
+
|
|
22
|
+
export { ue as default };
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
sx
|
|
8
|
-
}) => {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
Box,
|
|
11
|
-
{
|
|
12
|
-
role: "tabpanel",
|
|
13
|
-
id: `simple-tabpanel-${index}`,
|
|
14
|
-
"aria-labelledby": `simple-tab-${index}`,
|
|
15
|
-
sx: {
|
|
16
|
-
mt: 3,
|
|
17
|
-
...value.toString() !== index.toString() && {
|
|
18
|
-
position: "absolute",
|
|
19
|
-
width: "100%",
|
|
20
|
-
height: 0,
|
|
21
|
-
overflow: "hidden",
|
|
22
|
-
visibility: "hidden"
|
|
23
|
-
},
|
|
24
|
-
...sx
|
|
25
|
-
},
|
|
26
|
-
children
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
var TabPanel_default = TabPanel;
|
|
31
|
-
export {
|
|
32
|
-
TabPanel_default as default
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import l from '@mui/material/Box';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var e=({children:i,value:t,index:o,sx:r})=>jsx(l,{role:"tabpanel",id:`simple-tabpanel-${o}`,"aria-labelledby":`simple-tab-${o}`,sx:{mt:3,...t.toString()!==o.toString()&&{position:"absolute",width:"100%",height:0,overflow:"hidden",visibility:"hidden"},...r},children:i}),n=e;
|
|
5
|
+
|
|
6
|
+
export { n as default };
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import Link from "@mui/material/Link";
|
|
4
|
-
import Typography from "@mui/material/Typography";
|
|
5
|
-
import useTypography from "./useTypography";
|
|
6
|
-
const TextMaxLine = forwardRef(
|
|
7
|
-
({
|
|
8
|
-
asLink,
|
|
9
|
-
variant = "body1",
|
|
10
|
-
line = 2,
|
|
11
|
-
persistent = false,
|
|
12
|
-
children,
|
|
13
|
-
sx,
|
|
14
|
-
...other
|
|
15
|
-
}, ref) => {
|
|
16
|
-
const { lineHeight } = useTypography(variant);
|
|
17
|
-
const styles = {
|
|
18
|
-
overflow: "hidden",
|
|
19
|
-
textOverflow: "ellipsis",
|
|
20
|
-
display: "-webkit-box",
|
|
21
|
-
WebkitLineClamp: line,
|
|
22
|
-
WebkitBoxOrient: "vertical",
|
|
23
|
-
...persistent && {
|
|
24
|
-
height: lineHeight * line
|
|
25
|
-
},
|
|
26
|
-
...sx
|
|
27
|
-
};
|
|
28
|
-
if (asLink) {
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
Link,
|
|
31
|
-
{
|
|
32
|
-
color: "inherit",
|
|
33
|
-
ref,
|
|
34
|
-
variant,
|
|
35
|
-
sx: { ...styles },
|
|
36
|
-
...other,
|
|
37
|
-
children
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
return /* @__PURE__ */ jsx(Typography, { ref, variant, sx: { ...styles }, ...other, children });
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
TextMaxLine.displayName = "TextMaxLine";
|
|
45
|
-
var TextMaxLine_default = TextMaxLine;
|
|
46
|
-
export {
|
|
47
|
-
TextMaxLine_default as default
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-RLMWIJKJ.js';
|
|
2
|
+
import '../../chunk-ILHUUK4X.js';
|
|
@@ -1,42 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
helperText,
|
|
9
|
-
required,
|
|
10
|
-
...other
|
|
11
|
-
}) => {
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
-
MuiTimePicker,
|
|
14
|
-
{
|
|
15
|
-
...other,
|
|
16
|
-
format: "HH:mm",
|
|
17
|
-
value: value ? dayjs(value) : null,
|
|
18
|
-
onChange: (v) => onChange(v ? v.toDate() : null),
|
|
19
|
-
slotProps: {
|
|
20
|
-
textField: {
|
|
21
|
-
...other.slotProps?.textField,
|
|
22
|
-
required,
|
|
23
|
-
helperText,
|
|
24
|
-
autoComplete: "off",
|
|
25
|
-
spellCheck: "false",
|
|
26
|
-
fullWidth: true,
|
|
27
|
-
inputProps: {
|
|
28
|
-
tabIndex
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
openPickerButton: {
|
|
32
|
-
tabIndex
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
var TimePicker_default = TimePicker;
|
|
39
|
-
export {
|
|
40
|
-
TimePicker_default as default
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { TimePicker } from '@mui/x-date-pickers-pro';
|
|
2
|
+
import s from 'dayjs';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var P=({value:e,onChange:i,tabIndex:o,helperText:l,required:m,...r})=>jsx(TimePicker,{...r,format:"HH:mm",value:e?s(e):null,onChange:t=>i(t?t.toDate():null),slotProps:{textField:{...r.slotProps?.textField,required:m,helperText:l,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:o}},openPickerButton:{tabIndex:o}}}),k=P;
|
|
6
|
+
|
|
7
|
+
export { k as default };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
ToggleButtonGroup_default as default
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { styled } from '@mui/material/styles';
|
|
2
|
+
import p from '@mui/material/ToggleButtonGroup';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var t=styled(p)(({theme:o})=>({button:{textTransform:"none"},"& .MuiToggleButton-primary:hover":{backgroundColor:`${o.palette.primary.dark}`,color:o.palette.primary.contrastText},"& button:not(.Mui-selected):hover":{backgroundColor:o.palette.primary.lighter,color:o.palette.primary.main},"& .Mui-selected":{backgroundColor:`${o.palette.primary.main} !important`,color:`${o.palette.primary.contrastText} !important`}}));var e=o=>jsx(t,{...o}),g=e;
|
|
6
|
+
|
|
7
|
+
export { g as default };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import p from '@mui/material/Tooltip';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var t=o=>jsx(p,{...o}),r=t;
|
|
5
|
+
|
|
6
|
+
export { r as default };
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box } from "./styles";
|
|
3
|
-
const WhiteBox = ({ children, ...other }) => /* @__PURE__ */ jsx(Box, { borderRadius: 1, gap: 3, padding: 3, ...other, children });
|
|
4
|
-
var WhiteBox_default = WhiteBox;
|
|
5
|
-
export {
|
|
6
|
-
WhiteBox_default as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { a as default } from '../../chunk-BYAPKKGB.js';
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export * from "./variants";
|
|
4
|
-
import {
|
|
5
|
-
AnimatePresence,
|
|
6
|
-
m,
|
|
7
|
-
useMotionValueEvent,
|
|
8
|
-
useScroll
|
|
9
|
-
} from "framer-motion";
|
|
10
|
-
export {
|
|
11
|
-
AnimatePresence,
|
|
12
|
-
m,
|
|
13
|
-
useMotionValueEvent,
|
|
14
|
-
useScroll
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { t as AnimatePresence, r as MotionContainer, s as MotionViewport, l as TRANSITION, u as m, v as useMotionValueEvent, w as useScroll, b as varBgColor, c as varBgKenburns, d as varBgPan, h as varBounce, i as varContainer, j as varFade, k as varFlip, a as varHover, m as varPath, n as varRotate, o as varScale, p as varSlide, f as varTranEnter, g as varTranExit, e as varTranHover, q as varZoom } from '../../chunk-23GJSDGU.js';
|
|
2
|
+
import '../../chunk-ILHUUK4X.js';
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { i, a } from '../../chunk-D27ND54J.js';
|
|
2
|
+
import { a as a$1 } from '../../chunk-PMPALWRO.js';
|
|
3
|
+
import '../../chunk-3E5A45HM.js';
|
|
4
|
+
import { forwardRef, Children, isValidElement, useMemo, useState, useCallback, useEffect, useRef } from 'react';
|
|
5
|
+
import N from '@mui/material/Box';
|
|
6
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
7
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
+
import J, { buttonBaseClasses } from '@mui/material/ButtonBase';
|
|
9
|
+
import Y from '@mui/material/Stack';
|
|
10
|
+
import he from '@mui/material/SvgIcon';
|
|
11
|
+
import _e from '@mui/material/NoSsr';
|
|
12
|
+
import Xe from 'embla-carousel-react';
|
|
13
|
+
|
|
14
|
+
var Ge={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg:"(min-width: 1200px)",xl:"(min-width: 1536px)"};var p={root:"mnl__carousel__root",container:"mnl__carousel__container",dots:"mnl__carousel__dots",dot:"mnl__carousel__dot",arrows:"mnl__carousel__arrows",arrowsLabel:"mnl__carousel__arrows_label",arrowPrev:"mnl__carousel__btn--prev",arrowNext:"mnl__carousel__btn--next",arrowSvg:"mnl__carousel__btn__svg",slide:"mnl__carousel__slide",slideContent:"mnl__carousel__slide__content",thumbs:"mnl__carousel__thumbs",thumb:"mnl__carousel__thumb",thumbContainer:"mnl__carousel__thumbs__container",thumbImage:"mnl__carousel__thumb__image",progress:"mnl__carousel__progress",progressBar:"mnl__carousel__progress__bar",state:{selected:"state--selected",disabled:"state--disabled"}};var pe=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"block",position:"relative",...e==="x"&&{minWidth:0,paddingLeft:o},...e==="y"&&{minHeight:0,paddingTop:o}})),me=styled(N)(()=>({overflow:"hidden",position:"relative",borderRadius:"inherit"}));function w({sx:e,options:o,children:r,...t}){let u=de(o?.slidesToShow);return jsx(pe,{component:"li",axis:o?.axis??"x",slideSpacing:o?.slideSpacing,className:p.slide,sx:{flex:u,...e},...t,children:o?.parallax?jsx(me,{className:p.slideContent,children:jsx("div",{className:"slide__parallax__layer",children:r})}):r})}function de(e){return e&&typeof e=="object"?Object.keys(e).reduce((o,r)=>{let t=e[r];return o[r]=W(t),o},{}):W(e)}function W(e=1){if(typeof e=="string"){if(!(e==="auto"||e.endsWith("%")||e.endsWith("px")))throw new Error("Only accepts values: auto, px, %, or number.");return `0 0 ${e}`}if(typeof e=="number")return `0 0 ${100/e}%`;throw new Error("Invalid value type. Only accepts values: auto, px, %, or number.")}var R=styled(N,{shouldForwardProp:e=>e!=="axis"})(({axis:e})=>({margin:"auto",width:"100%",maxWidth:"100%",overflow:"hidden",position:"relative",...e==="y"&&{height:"100%"}})),I=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"flex",backfaceVisibility:"hidden",...e==="x"&&{touchAction:"pan-y pinch-zoom",marginLeft:`calc(${o} * -1)`},...e==="y"&&{height:"100%",flexDirection:"column",touchAction:"pan-x pinch-zoom",marginTop:`calc(${o} * -1)`}}));function io({carousel:e,children:o,sx:r,slotProps:t}){let{mainRef:u,options:a}=e,s=a?.axis??"x",n=a?.slideSpacing??"0px",l=a?.direction??"ltr",c=Children.map(o,i=>{if(isValidElement(i)){let m=i;return jsx(w,{options:e.options,sx:t?.slide,children:i},m.key)}return null});return jsx(R,{sx:r,axis:s,ref:u,dir:l,className:p.root,children:jsx(I,{component:"ul",axis:s,slideSpacing:n,className:p.container,sx:{...e.pluginNames?.includes("autoHeight")&&{alignItems:"flex-start",transition:i=>i.transitions.create(["height"],{easing:i.transitions.easing.easeInOut,duration:i.transitions.duration.shorter})},...t?.container},children:c})})}function Co({options:e,slotProps:o,totalSlides:r,selectedIndex:t,onClickPrev:u,onClickNext:a,disablePrev:s,disableNext:n,sx:l,...c}){return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:p.arrows,sx:{gap:.5,zIndex:9,color:"action.active",...l},...c,children:[jsx(h,{variant:"prev",options:e,disabled:s,onClick:u,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx}),jsx(h,{variant:"next",options:e,disabled:n,onClick:a,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx})]})}function ho({options:e,slotProps:o,totalSlides:r,selectedIndex:t,onClickPrev:u,onClickNext:a,disablePrev:s,disableNext:n,sx:l,...c}){let i$1=useTheme();return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:p.arrows,sx:{p:.5,gap:.25,zIndex:9,borderRadius:1.25,color:"common.white",bgcolor:i(i$1.vars.palette.grey["900Channel"],.48),...l},...c,children:[jsx(h,{variant:"prev",options:e,disabled:s,onClick:u,sx:{p:.75,borderRadius:"inherit",...o?.prevBtn?.sx},svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16}),jsxs(N,{component:"span",className:p.arrowsLabel,sx:{mx:.5,typography:"subtitle2"},children:[t,"/",r]}),jsx(h,{variant:"next",options:e,disabled:n,onClick:a,sx:{p:.75,borderRadius:"inherit",...o?.nextBtn?.sx},svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16})]})}function So({options:e,slotProps:o,onClickPrev:r,onClickNext:t,disablePrev:u,disableNext:a$1}){let s={zIndex:9,top:"50%",borderRadius:1.5,position:"absolute",color:"common.white",bgcolor:"text.primary",transform:"translateY(-50%)","&:hover":{opacity:.8},[a.dark]:{color:"grey.800"}};return jsxs(Fragment,{children:[jsx(h,{variant:"prev",options:e,disabled:u,onClick:r,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:{left:-16,...s,...o?.prevBtn?.sx}}),jsx(h,{variant:"next",options:e,disabled:a$1,onClick:t,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.nextBtn?.svgSize,sx:{right:-16,...s,...o?.nextBtn?.sx}})]})}function h({sx:e,svgIcon:o,svgSize:r,options:t,variant:u,...a}){let s=u==="prev",n=u==="next",l=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.488 4.43a.75.75 0 0 1 .081 1.058L9.988 12l5.581 6.512a.75.75 0 1 1-1.138.976l-6-7a.75.75 0 0 1 0-.976l6-7a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}),c=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057",clipRule:"evenodd"});return jsx(J,{className:s?p.arrowPrev:p.arrowPrev,"aria-label":s?"Prev button":"Next button",sx:{p:1,borderRadius:"50%",boxSizing:"content-box",transition:i=>i.transitions.create(["all"],{easing:i.transitions.easing.sharp,duration:i.transitions.duration.short}),[`&.${buttonBaseClasses.disabled}`]:{opacity:.4},...e,...t?.direction==="rtl"&&{...s&&{right:-16,left:"auto"},...n&&{left:-16,right:"auto"}}},...a,children:jsx(he,{className:p.arrowSvg,sx:{width:r??20,height:r??20,...t?.axis==="y"&&{transform:" rotate(90deg)"},...t?.direction==="rtl"&&{transform:" scaleX(-1)"}},children:s?l:c})})}function Ro({sx:e,gap:o,slotProps:r,onClickDot:t,scrollSnaps:u,selectedIndex:a$1,fallbackCount:s=1,variant:n="circular",fallback:l=!1,...c}){let i$1=useTheme(),m={number:o??6,rounded:o??2,circular:o??2},d={circular:r?.dot?.size??18,number:r?.dot?.size??28},S=jsx(N,{sx:{height:d.circular,width:`calc(${s*d.circular+m.circular*(s-1)}px )`,...n==="number"&&{height:d.number,width:`calc(${s*d.number+m.number*(s-1)}px )`}}}),f={circular:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:i$1.transitions.create(["opacity"],{easing:i$1.transitions.easing.sharp,duration:i$1.transitions.duration.short}),...y&&{opacity:1}}}),rounded:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:i$1.transitions.create(["width","opacity"],{easing:i$1.transitions.easing.sharp,duration:i$1.transitions.duration.short}),...y&&{width:"calc(100% - 4px)",opacity:1,borderRadius:1}}}),number:y=>({width:d.number,height:d.number,borderRadius:"50%",typography:"caption",color:"text.disabled",border:`solid 1px ${i(i$1.vars.palette.grey["500Channel"],.16)}`,...y&&{color:"common.white",bgcolor:"text.primary",fontWeight:"fontWeightSemiBold",[a.dark]:{color:"grey.800"}}})};return jsx(_e,{fallback:l?S:null,children:jsx(N,{component:"ul",className:p.dots,sx:{zIndex:9,display:"inline-flex",...n==="circular"&&{gap:`${m.circular}px`},...n==="rounded"&&{gap:`${m.rounded}px`},...n==="number"&&{gap:`${m.number}px`},...e},...c,children:u.map((y,x)=>{let v=x===a$1;return jsx(N,{component:"li",sx:{display:"inline-flex"},children:jsx(J,{disableRipple:!0,"aria-label":`dot-${x}`,className:p.dot.concat(v?` ${p.state.selected}`:""),onClick:()=>t(x),sx:{...n==="circular"&&f.circular(v),...n==="rounded"&&f.rounded(v),...n==="number"&&f.number(v),[`&.${p.state.selected}`]:{...r?.dot?.selected},...r?.dot?.sx},children:n==="number"&&x+1})},x)})})})}var we=styled(N)(({theme:e})=>({height:6,maxWidth:120,width:"100%",borderRadius:6,overflow:"hidden",position:"relative",color:e.vars.palette.text.primary,backgroundColor:i(e.vars.palette.grey["500Channel"],.2)})),Pe=styled(N)(()=>({top:0,bottom:0,width:"100%",left:"-100%",position:"absolute",backgroundColor:"currentColor"}));function Uo({value:e,sx:o,...r}){return jsx(we,{sx:o,className:p.progress,...r,children:jsx(Pe,{className:p.progressBar,sx:{transform:`translate3d(${e}%, 0px, 0px)`}})})}var Ne=forwardRef(({children:e,slotProps:o,options:r,sx:t,...u},a)=>{let s=r?.axis??"x",n=r?.slideSpacing??"12px",l=Oe(s),c=Children.map(e,i=>{if(isValidElement(i)){let m=i;return jsx(w,{options:{...r,slideSpacing:n},sx:o?.slide,children:i},m.key)}return null});return jsx(R,{ref:a,slideSpacing:void 0,axis:s,className:p.thumbs,sx:{flexShrink:0,...s==="x"&&{p:.5,maxWidth:1},...s==="y"&&{p:.5,maxHeight:1},...!o?.disableMask&&l,...t},...u,children:jsx(I,{component:"ul",axis:s,slideSpacing:n,className:p.thumbContainer,sx:{...o?.container},children:c})})});Ne.displayName="CarouselThumbs";function Go({thumbType:e="image",sx:o,src:r,index:t,selected:u,imageRender:a,thumbAlt:s,...n}){if(e==="image"&&(r||a)){let l={width:1,height:1,aspectRatio:1,objectFit:"cover",borderRadius:"inherit"};return jsx(J,{className:p.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,transition:c=>c.transitions.create(["opacity","box-shadow"],{easing:c.transitions.easing.sharp,duration:c.transitions.duration.short}),...u&&{opacity:1,boxShadow:c=>`0 0 0 2px ${c.vars.palette.primary.main}`},...o},...n,children:a?.({sx:l,classes:p.thumbImage})||jsx(N,{component:"img",alt:s||`Imagem do slide ${t}`,src:r,className:p.thumbImage,sx:l})})}return e==="video"?jsx(J,{className:p.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,color:l=>l.vars.palette.primary.main,transition:l=>l.transitions.create(["opacity","box-shadow"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...u&&{opacity:1,boxShadow:l=>`0 0 0 2px ${l.vars.palette.primary.main}`},...o},...n,children:jsx(a$1,{icon:"PLAY_CIRCLE",width:32})}):null}function Oe(e){let o=useTheme(),r={zIndex:9,content:'""',position:"absolute"},t=`${o.vars.palette.background.paper} 20%, ${i(o.vars.palette.background.paperChannel,0)} 100%)`;return e==="y"?{"&::before, &::after":{...r,left:0,height:40,width:"100%"},"&::before":{top:-8,background:`linear-gradient(to bottom, ${t}`},"&::after":{bottom:-8,background:`linear-gradient(to top, ${t}`}}:{"&::before, &::after":{...r,top:0,width:40,height:"100%"},"&::before":{left:-8,background:`linear-gradient(to right, ${t}`},"&::after":{right:-8,background:`linear-gradient(to left, ${t}`}}}var A=e=>{let[o,r]=useState(!0),[t,u]=useState(!0),a=useCallback(()=>{e&&e.scrollPrev();},[e]),s=useCallback(()=>{e&&e.scrollNext();},[e]),n=useCallback(l=>{r(!l.canScrollPrev()),u(!l.canScrollNext());},[]);return useEffect(()=>{e&&(n(e),e.on("reInit",n),e.on("select",n));},[e,n]),{disablePrev:o,disableNext:t,onClickPrev:a,onClickNext:s}};function oe(e){let[o,r]=useState(!1),t=useCallback(a=>{let s=e?.plugins()?.autoplay;if(!s)return;(s.options.stopOnInteraction===!1?s.reset:s.stop)(),a();},[e]),u=useCallback(()=>{let a=e?.plugins()?.autoplay;if(!a)return;(a.isPlaying()?a.stop:a.play)();},[e]);return useEffect(()=>{let a=e?.plugins()?.autoplay;a&&(r(a.isPlaying()),e.on("autoplay:play",()=>r(!0)).on("autoplay:stop",()=>r(!1)).on("reInit",()=>r(!1)));},[e]),{isPlaying:o,onTogglePlay:u,onClickAutoplay:t}}function re(e){let[o,r]=useState(!1),t=useCallback(a=>{let s=e?.plugins()?.autoScroll;if(!s)return;(s.options.stopOnInteraction===!1?s.reset:s.stop)(),a();},[e]),u=useCallback(()=>{let a=e?.plugins()?.autoScroll;if(!a)return;(a.isPlaying()?a.stop:a.play)();},[e]);return useEffect(()=>{let a=e?.plugins()?.autoScroll;a&&(r(a.isPlaying()),e.on("autoScroll:play",()=>r(!0)).on("autoScroll:stop",()=>r(!1)).on("reInit",()=>r(!1)));},[e]),{isPlaying:o,onTogglePlay:u,onClickAutoplay:t}}function se(e){let[o,r]=useState(0),[t,u]=useState(0),[a,s]=useState([]),n=useCallback(i=>{e&&e.scrollTo(i);},[e]),l=useCallback(i=>{s(i.scrollSnapList());},[]),c=useCallback(i=>{u(i.selectedScrollSnap()),r(i.scrollSnapList().length);},[]);return useEffect(()=>{e&&(l(e),c(e),e.on("reInit",l),e.on("reInit",c),e.on("select",c));},[e,l,c]),{dotCount:o,scrollSnaps:a,selectedIndex:t,onClickDot:n}}function ne(e,o){let r=useRef(0),t=useRef([]),u=typeof o=="number"?o:.24,a=useCallback(l=>{t.current=l.slideNodes().map(c=>c.querySelector(".slide__parallax__layer"));},[]),s=useCallback(l=>{r.current=u*l.scrollSnapList().length;},[u]),n=useCallback((l,c)=>{let i=l.internalEngine(),m=l.scrollProgress(),d=l.slidesInView(),S=c==="scroll";l.scrollSnapList().forEach((f,y)=>{let x=f-m;i.slideRegistry[y].forEach(k=>{if(S&&!d.includes(k))return;i.options.loop&&i.slideLooper.loopPoints.forEach(D=>{let M=D.target();if(k===D.index&&M!==0){let V=Math.sign(M);V===-1&&(x=f-(1+m)),V===1&&(x=f+(1-m));}});let ce=x*(-1*r.current)*100,U=t.current[k];U&&(U.style.transform=`translateX(${ce}%)`);});});},[]);return useEffect(()=>{!e||!o||(a(e),s(e),n(e),e.on("reInit",a).on("reInit",s).on("reInit",n).on("scroll",n));},[e,n]),null}function le(e){let[o,r]=useState(0),t=useCallback(u=>{let a=Math.max(0,Math.min(1,u.scrollProgress()));r(a*100);},[]);return useEffect(()=>{e&&(t(e),e.on("reInit",t),e.on("scroll",t));},[e,t]),{value:o}}function ue(e,o){let[r,t]=Xe({containScroll:"keepSnaps",dragFree:!0,...o}),[u,a]=useState(0),s=useCallback(l=>{!e||!t||e.scrollTo(l);},[e,t]),n=useCallback(()=>{!e||!t||(a(e.selectedScrollSnap()),t.scrollTo(e.selectedScrollSnap()));},[e,t,a]);return useEffect(()=>{e&&(n(),e.on("select",n),e.on("reInit",n));},[e,n]),{onClickThumb:s,thumbsRef:r,thumbsApi:t,selectedIndex:u}}var vt=(e,o)=>{let[r,t]=Xe(e,o),{disablePrev:u,disableNext:a,onClickPrev:s,onClickNext:n}=A(t),l=o?.map(y=>y.name),c=se(t),i=oe(t),m=re(t),d=le(t),S=ue(t,e?.thumbs);ne(t,e?.parallax);let f=useMemo(()=>l?.includes("autoplay")?{onClickPrev:()=>i.onClickAutoplay(s),onClickNext:()=>i.onClickAutoplay(n)}:l?.includes("autoScroll")?{onClickPrev:()=>m.onClickAutoplay(s),onClickNext:()=>m.onClickAutoplay(n)}:{onClickPrev:s,onClickNext:n},[m,i,n,s,l]);return {options:{...e,...t?.internalEngine().options},pluginNames:l,mainRef:r,mainApi:t,arrows:{disablePrev:u,disableNext:a,onClickPrev:f.onClickPrev,onClickNext:f.onClickNext},dots:c,thumbs:S,progress:d,autoplay:i,autoScroll:m}};
|
|
15
|
+
|
|
16
|
+
export { h as ArrowButton, io as Carousel, Co as CarouselArrowBasicButtons, So as CarouselArrowFloatButtons, ho as CarouselArrowNumberButtons, Ro as CarouselDotButtons, Uo as CarouselProgressBar, w as CarouselSlide, Go as CarouselThumb, Ne as CarouselThumbs, I as StyledContainer, R as StyledRoot, Ge as carouselBreakpoints, p as carouselClasses, vt as useCarousel };
|