@konstructio/ui 0.1.2-alpha.109 → 0.1.2-alpha.110
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/{AdditionalOptions-Crcnz0_g.js → AdditionalOptions-D3SZ2WFJ.js} +1 -1
- package/dist/{AlertDialogTrigger-ouMGAlJW.js → AlertDialogTrigger-Cdw3C2Tv.js} +2 -2
- package/dist/AnimatePresence-V0yte2ER.js +186 -0
- package/dist/{Breadcrumb-MrF1Z6w2.js → Breadcrumb-CHi5-wVa.js} +2 -3
- package/dist/{Checkbox-8KnRLpQG.js → Checkbox-CrNxsm3G.js} +2 -3
- package/dist/{CommandInput-CGnqfudl.js → CommandInput-DiRv6fEA.js} +3 -4
- package/dist/{Counter-CDXdP1Af.js → Counter-DN50BVq6.js} +4 -5
- package/dist/{DayPicker-C22j0Y-u.js → DayPicker-BtpJg2q3.js} +355 -349
- package/dist/{DropdownButton-LEDrhn1j.js → DropdownButton-Blhkj-Oi.js} +114 -117
- package/dist/FlagSelectorList-ClKGwDpS.js +918 -0
- package/dist/{HamburgerTrigger-B_NGSZ2r.js → HamburgerTrigger-DjHmNEJD.js} +2 -3
- package/dist/{ImageUpload-D7HKSXK8.js → ImageUpload-BNZjCUTX.js} +2 -2
- package/dist/{Input-is8n7emP.js → Input-2M2I_H60.js} +3 -5
- package/dist/Loading-u8hXrFJR.js +25 -0
- package/dist/{Modal-DL4p692X.js → Modal-B6lSyPYQ.js} +3 -3
- package/dist/{Spinner-BJE79VTl.js → Spinner-smR3esbL.js} +28 -22
- package/dist/StepIndicatorContent-yB2HfOdY.js +36 -0
- package/dist/{Switch-C7286Bcu.js → Switch-CPE8v6Zh.js} +1 -1
- package/dist/Toast-DTb03cfB.js +76 -0
- package/dist/{Wrapper-a7RVCcrn.js → Wrapper-BxfB3BDa.js} +2 -2
- package/dist/{Wrapper-CyHxGs4E.js → Wrapper-JmStmade.js} +3 -4
- package/dist/{Wrapper-Bbaaa7YA.js → Wrapper-MmlrJppS.js} +76 -70
- package/dist/chevron-down-BODx0Q7h.js +14 -0
- package/dist/chevron-left-B1zWfqll.js +14 -0
- package/dist/chevron-right-D4OkgIIT.js +14 -0
- package/dist/chevron-up-B8hiVgxZ.js +14 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +1 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +2 -2
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +2 -2
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +2 -2
- package/dist/components/Command/components/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +2 -2
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/CopyButton/CopyButton.js +2 -2
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +3 -3
- package/dist/components/Datepicker/DatePicker.js +4 -4
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +1 -1
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +3 -3
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +3 -3
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.js +2 -2
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +2 -2
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +2 -2
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +3 -3
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +2 -2
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +2 -2
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +2 -2
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +3 -3
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Spinner/Spinner.js +3 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/components/Content.js +2 -2
- package/dist/components/Tabs/components/List.js +2 -2
- package/dist/components/Tabs/components/Trigger.js +2 -2
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/List/List.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +73 -41
- package/dist/components/Toast/ToastProvider.js +19 -0
- package/dist/components/Toast/components/ToastCard/ToastCard.js +103 -0
- package/dist/components/Toast/components/index.js +4 -0
- package/dist/components/Toast/constants/index.js +35 -0
- package/dist/components/Toast/contexts/index.js +4 -0
- package/dist/components/Toast/contexts/toast-store.context.js +5 -0
- package/dist/components/Toast/hooks/index.js +15 -0
- package/dist/components/Toast/hooks/useStackExpansion/useStackExpansion.js +29 -0
- package/dist/components/Toast/hooks/useToast/useToast.js +17 -0
- package/dist/components/Toast/hooks/useToastHeights/useToastHeights.js +23 -0
- package/dist/components/Toast/hooks/useToastSource/useToastSource.js +15 -0
- package/dist/components/Toast/hooks/useToastStore/useToastStore.js +11 -0
- package/dist/components/Toast/hooks/useToastTimer/useToastTimer.js +26 -0
- package/dist/components/Toast/store/create-toast-store.js +46 -0
- package/dist/components/Toast/store/default-toast-store.js +5 -0
- package/dist/components/Toast/store/index.js +6 -0
- package/dist/components/Toast/utils/compute-stack-layout/compute-stack-layout.js +24 -0
- package/dist/components/Toast/utils/index.js +4 -0
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +3 -3
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +3 -3
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +2 -2
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +143 -130
- package/dist/{components-CaEW5ge4.js → components-z-LYRWfq.js} +3 -3
- package/dist/{constants-HQIXhj2t.js → constants-q2QnJrOb.js} +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/createLucideIcon-C7E_xycG.js +119 -0
- package/dist/{dist-CszFjHAP.js → dist-Bi8Y5nEx.js} +7 -9
- package/dist/{dist-BIBFLVt1.js → dist-CNui_Egg.js} +9 -10
- package/dist/{dist-pxvIAJzo.js → dist-CR3FMRzF.js} +3 -3
- package/dist/{dist-BbX4Nrk2.js → dist-CgzF5_J6.js} +2 -2
- package/dist/{dist-AxOGvL82.js → dist-D5Q2IYuC.js} +3 -3
- package/dist/dist-D70ZJkHf.js +29 -0
- package/dist/{dist-DwxO2RoR.js → dist-DZ_SU77k.js} +82 -72
- package/dist/{dist-9WbMf_jT.js → dist-DcFwF4XM.js} +1 -1
- package/dist/{dist-iUAHw-3y.js → dist-Dg3vyTx9.js} +6 -6
- package/dist/{dist-ByCJijZd.js → dist-LRkZdylX.js} +4 -4
- package/dist/{dist-DO3apbIh.js → dist-f8EwfITY.js} +3 -3
- package/dist/dist-uerXivvM.js +178 -0
- package/dist/ellipsis-vertical-C_yX7aQe.js +31 -0
- package/dist/{es2015-CoHq2g4y.js → es2015-Hhb87ipX.js} +1 -1
- package/dist/hooks/index.js +8 -6
- package/dist/hooks/useIsHydrated/useIsHydrated.js +6 -0
- package/dist/hooks/useIsHydrated/utils/index.js +4 -0
- package/dist/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.js +5 -0
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/index.js +164 -149
- package/dist/lib/components/Command/components/CommandShortcut.d.ts +1 -1
- package/dist/lib/components/Command/contexts/Command.provider.d.ts +1 -1
- package/dist/lib/components/ImageUpload/ImageUpload.d.ts +1 -1
- package/dist/lib/components/Modal/contexts/Modal.provider.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.d.ts +19 -14
- package/dist/lib/components/Toast/Toast.types.d.ts +62 -35
- package/dist/lib/components/Toast/Toast.variants.d.ts +16 -3
- package/dist/lib/components/Toast/ToastProvider.d.ts +11 -0
- package/dist/lib/components/Toast/ToastProvider.types.d.ts +17 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.d.ts +3 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +17 -0
- package/dist/lib/components/Toast/components/index.d.ts +1 -0
- package/dist/lib/components/Toast/constants/index.d.ts +25 -0
- package/dist/lib/components/Toast/contexts/index.d.ts +1 -0
- package/dist/lib/components/Toast/contexts/toast-store.context.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/index.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.types.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useToast/useToast.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.types.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.types.d.ts +11 -0
- package/dist/lib/components/Toast/hooks/useToastStore/useToastStore.d.ts +3 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.types.d.ts +7 -0
- package/dist/lib/components/Toast/store/create-toast-store.d.ts +2 -0
- package/dist/lib/components/Toast/store/create-toast-store.types.d.ts +24 -0
- package/dist/lib/components/Toast/store/default-toast-store.d.ts +1 -0
- package/dist/lib/components/Toast/store/index.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.types.d.ts +12 -0
- package/dist/lib/components/Toast/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +8 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/useIsHydrated.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/index.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.d.ts +1 -0
- package/dist/{libphonenumber-BMq3Thej.js → libphonenumber-DtibHRPP.js} +123 -114
- package/dist/package.json +28 -28
- package/dist/{phone-number.provider-Dkq_p1Gi.js → phone-number.provider-BASl9fGG.js} +2 -3
- package/dist/{react-DRLuFcbk.js → react-DpRKGbW_.js} +1935 -1841
- package/dist/styles.css +1 -1
- package/dist/{table.provider-CWzODR1t.js → table.provider-MQ4T5Xb5.js} +2 -2
- package/dist/{theme.provider-CSL1WCYG.js → theme.provider-CvL6sqHq.js} +1 -1
- package/dist/{useBreadcrumb-Ds_9BeFz.js → useBreadcrumb-BvP9cgD8.js} +580 -545
- package/dist/utils/index.js +1 -1
- package/dist/{utils-B-6R7kNE.js → utils-DnIJruo0.js} +208 -129
- package/dist/x-C8O1IsaM.js +17 -0
- package/dist/{x-Ierxf0uI.js → x-Vur_9PXW.js} +1 -2
- package/package.json +28 -28
- package/dist/AnimatePresence-C5PSMIZj.js +0 -186
- package/dist/FlagSelectorList-tYZNl-tz.js +0 -863
- package/dist/Loading-DO8JOWBV.js +0 -18
- package/dist/StepIndicatorContent-BGDvxLzV.js +0 -30
- package/dist/Toast-jSx3Lao8.js +0 -461
- package/dist/chevron-down-DNP-OOAQ.js +0 -8
- package/dist/chevron-left-DxGDBBKA.js +0 -8
- package/dist/chevron-right-CDwgDdp-.js +0 -8
- package/dist/chevron-up-Bjpvg6ui.js +0 -8
- package/dist/createLucideIcon-MbzNWCaI.js +0 -42
- package/dist/dist-D5XYRjmR.js +0 -15
- package/dist/dist-DGOjiAnB.js +0 -14
- package/dist/dist-DKryKPmP.js +0 -193
- package/dist/dist-DYIabsrY.js +0 -17
- package/dist/ellipsis-vertical-BBmhzIXn.js +0 -24
- package/dist/x-a_LpoXzG.js +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as Ve } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
-
import m, { createContext as
|
|
2
|
+
import m, { createContext as Cn, useCallback as j, useContext as Tn, useEffect as pt, useLayoutEffect as Yn, useMemo as Ne, useRef as Ce, useState as Ue } from "react";
|
|
3
3
|
function xn(e, t, n = "long") {
|
|
4
4
|
return new Intl.DateTimeFormat("en-US", {
|
|
5
5
|
hour: "numeric",
|
|
@@ -28,7 +28,7 @@ function ct(e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
var ye = class ve extends Date {
|
|
30
30
|
constructor(...t) {
|
|
31
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ee(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)),
|
|
31
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ee(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), kt(this, t)) : this.setTime(Date.now());
|
|
32
32
|
}
|
|
33
33
|
static tz(t, ...n) {
|
|
34
34
|
return n.length ? new ve(...n, t) : new ve(Date.now(), t);
|
|
@@ -62,9 +62,9 @@ function Te(e) {
|
|
|
62
62
|
e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ee(e.timeZone, e) * 60));
|
|
63
63
|
}
|
|
64
64
|
function Fn(e) {
|
|
65
|
-
Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()),
|
|
65
|
+
Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), kt(e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function kt(e, t) {
|
|
68
68
|
const n = Array.isArray(t) ? _n(t) : +e.internal, r = ee(e.timeZone, e), o = r > 0 ? Math.floor(r) : Math.ceil(r), a = /* @__PURE__ */ new Date(+e);
|
|
69
69
|
a.setUTCHours(a.getUTCHours() - 1);
|
|
70
70
|
const s = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), i = -(/* @__PURE__ */ new Date(+a)).getTimezoneOffset(), u = s - i;
|
|
@@ -81,8 +81,8 @@ function pt(e, t) {
|
|
|
81
81
|
l.setUTCSeconds(0);
|
|
82
82
|
const O = s > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, g = Math.round(-(ee(e.timeZone, e) * 60)) % 60;
|
|
83
83
|
(g || O) && Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + g + O);
|
|
84
|
-
const
|
|
85
|
-
if (F && b && !
|
|
84
|
+
const D = ee(e.timeZone, e), Y = D > 0 ? Math.floor(D) : Math.ceil(D), M = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - Y, F = Y !== o, b = M - f, y = Y - o, v = n - Y * 60 * 1e3, p = y > 0 && ft(e) - n === y * 60 * 1e3 && ft(e, v) !== n;
|
|
85
|
+
if (F && b && !p) {
|
|
86
86
|
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + b);
|
|
87
87
|
const S = ee(e.timeZone, e), N = Y - (S > 0 ? Math.floor(S) : Math.ceil(S));
|
|
88
88
|
N && b < 0 && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + N);
|
|
@@ -149,45 +149,29 @@ var R = class ge extends ye {
|
|
|
149
149
|
[/* @__PURE__ */ Symbol.for("constructDateFrom")](t) {
|
|
150
150
|
return new ge(+new Date(t), this.timeZone);
|
|
151
151
|
}
|
|
152
|
-
}, Bn = 365.2425, In = Math.pow(10, 8) * 24 * 60 * 60 * 1e3, Pa = -In,
|
|
152
|
+
}, Bn = 365.2425, In = Math.pow(10, 8) * 24 * 60 * 60 * 1e3, Pa = -In, Ot = 6048e5, Hn = 864e5, An = 3600, Wt = An * 24, Ea = Wt * 7, qn = Wt * Bn, Gn = qn / 12, Fa = Gn * 3, dt = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
153
153
|
function I(e, t) {
|
|
154
154
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && dt in e ? e[dt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
155
155
|
}
|
|
156
156
|
function P(e, t) {
|
|
157
157
|
return I(t || e, e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function St(e, t, n) {
|
|
160
160
|
const r = P(e, n?.in);
|
|
161
161
|
return isNaN(t) ? I(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Nt(e, t, n) {
|
|
164
164
|
const r = P(e, n?.in);
|
|
165
165
|
if (isNaN(t)) return I(n?.in || e, NaN);
|
|
166
166
|
if (!t) return r;
|
|
167
167
|
const o = r.getDate(), a = I(n?.in || e, r.getTime());
|
|
168
168
|
return a.setMonth(r.getMonth() + t + 1, 0), o >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), o), r);
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return $n;
|
|
173
|
-
}
|
|
174
|
-
function ce(e, t) {
|
|
175
|
-
const n = Me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = P(e, t?.in), a = o.getDay(), s = (a < r ? 7 : 0) + a - r;
|
|
176
|
-
return o.setDate(o.getDate() - s), o.setHours(0, 0, 0, 0), o;
|
|
177
|
-
}
|
|
178
|
-
function we(e, t) {
|
|
179
|
-
return ce(e, {
|
|
180
|
-
...t,
|
|
181
|
-
weekStartsOn: 1
|
|
182
|
-
});
|
|
170
|
+
function $n(e, t, n) {
|
|
171
|
+
return St(e, t * 7, n);
|
|
183
172
|
}
|
|
184
|
-
function
|
|
185
|
-
|
|
186
|
-
o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
187
|
-
const a = we(o), s = I(n, 0);
|
|
188
|
-
s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
|
|
189
|
-
const i = we(s);
|
|
190
|
-
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
|
|
173
|
+
function jn(e, t, n) {
|
|
174
|
+
return Nt(e, t * 12, n);
|
|
191
175
|
}
|
|
192
176
|
function ht(e) {
|
|
193
177
|
const t = P(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
@@ -197,67 +181,27 @@ function le(e, ...t) {
|
|
|
197
181
|
const n = I.bind(null, e || t.find((r) => typeof r == "object"));
|
|
198
182
|
return t.map(n);
|
|
199
183
|
}
|
|
200
|
-
function
|
|
184
|
+
function we(e, t) {
|
|
201
185
|
const n = P(e, t?.in);
|
|
202
186
|
return n.setHours(0, 0, 0, 0), n;
|
|
203
187
|
}
|
|
204
188
|
function Ke(e, t, n) {
|
|
205
|
-
const [r, o] = le(n?.in, e, t), a =
|
|
189
|
+
const [r, o] = le(n?.in, e, t), a = we(r), s = we(o), i = +a - ht(a), u = +s - ht(s);
|
|
206
190
|
return Math.round((i - u) / Hn);
|
|
207
191
|
}
|
|
208
|
-
function
|
|
209
|
-
const n = Nt(e, t), r = I(t?.in || e, 0);
|
|
210
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), we(r);
|
|
211
|
-
}
|
|
212
|
-
function Rn(e, t, n) {
|
|
213
|
-
return Wt(e, t * 7, n);
|
|
214
|
-
}
|
|
215
|
-
function Zn(e, t, n) {
|
|
216
|
-
return St(e, t * 12, n);
|
|
217
|
-
}
|
|
218
|
-
function zn(e, t) {
|
|
219
|
-
let n, r = t?.in;
|
|
220
|
-
return e.forEach((o) => {
|
|
221
|
-
!r && typeof o == "object" && (r = I.bind(null, o));
|
|
222
|
-
const a = P(o, r);
|
|
223
|
-
(!n || n < a || isNaN(+a)) && (n = a);
|
|
224
|
-
}), I(r, n || NaN);
|
|
225
|
-
}
|
|
226
|
-
function Un(e, t) {
|
|
227
|
-
let n, r = t?.in;
|
|
228
|
-
return e.forEach((o) => {
|
|
229
|
-
!r && typeof o == "object" && (r = I.bind(null, o));
|
|
230
|
-
const a = P(o, r);
|
|
231
|
-
(!n || n > a || isNaN(+a)) && (n = a);
|
|
232
|
-
}), I(r, n || NaN);
|
|
233
|
-
}
|
|
234
|
-
function Qn(e, t, n) {
|
|
235
|
-
const [r, o] = le(n?.in, e, t);
|
|
236
|
-
return +De(r) == +De(o);
|
|
237
|
-
}
|
|
238
|
-
function Ct(e) {
|
|
239
|
-
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
240
|
-
}
|
|
241
|
-
function Vn(e) {
|
|
242
|
-
return !(!Ct(e) && typeof e != "number" || isNaN(+P(e)));
|
|
243
|
-
}
|
|
244
|
-
function Tt(e, t, n) {
|
|
192
|
+
function Ct(e, t, n) {
|
|
245
193
|
const [r, o] = le(n?.in, e, t), a = r.getFullYear() - o.getFullYear(), s = r.getMonth() - o.getMonth();
|
|
246
194
|
return a * 12 + s;
|
|
247
195
|
}
|
|
248
|
-
function
|
|
249
|
-
const n = P(e, t?.in), r = n.getMonth();
|
|
250
|
-
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
251
|
-
}
|
|
252
|
-
function Yt(e, t) {
|
|
196
|
+
function Tt(e, t) {
|
|
253
197
|
const [n, r] = le(e, t.start, t.end);
|
|
254
198
|
return {
|
|
255
199
|
start: n,
|
|
256
200
|
end: r
|
|
257
201
|
};
|
|
258
202
|
}
|
|
259
|
-
function
|
|
260
|
-
const { start: n, end: r } =
|
|
203
|
+
function Rn(e, t) {
|
|
204
|
+
const { start: n, end: r } = Tt(t?.in, e);
|
|
261
205
|
let o = +n > +r;
|
|
262
206
|
const a = o ? +n : +r, s = o ? r : n;
|
|
263
207
|
s.setHours(0, 0, 0, 0), s.setDate(1);
|
|
@@ -269,20 +213,8 @@ function Xn(e, t) {
|
|
|
269
213
|
u.push(I(n, s)), s.setMonth(s.getMonth() + i);
|
|
270
214
|
return o ? u.reverse() : u;
|
|
271
215
|
}
|
|
272
|
-
function
|
|
273
|
-
const n =
|
|
274
|
-
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
275
|
-
}
|
|
276
|
-
function Ln(e, t) {
|
|
277
|
-
const n = P(e, t?.in), r = n.getFullYear();
|
|
278
|
-
return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
279
|
-
}
|
|
280
|
-
function xt(e, t) {
|
|
281
|
-
const n = P(e, t?.in);
|
|
282
|
-
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
283
|
-
}
|
|
284
|
-
function er(e, t) {
|
|
285
|
-
const { start: n, end: r } = Yt(t?.in, e);
|
|
216
|
+
function Zn(e, t) {
|
|
217
|
+
const { start: n, end: r } = Tt(t?.in, e);
|
|
286
218
|
let o = +n > +r;
|
|
287
219
|
const a = o ? +n : +r, s = o ? r : n;
|
|
288
220
|
s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
|
|
@@ -294,17 +226,29 @@ function er(e, t) {
|
|
|
294
226
|
u.push(I(n, s)), s.setFullYear(s.getFullYear() + i);
|
|
295
227
|
return o ? u.reverse() : u;
|
|
296
228
|
}
|
|
297
|
-
|
|
229
|
+
var zn = {};
|
|
230
|
+
function Me() {
|
|
231
|
+
return zn;
|
|
232
|
+
}
|
|
233
|
+
function Yt(e, t) {
|
|
298
234
|
const n = Me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = P(e, t?.in), a = o.getDay(), s = (a < r ? -7 : 0) + 6 - (a - r);
|
|
299
235
|
return o.setDate(o.getDate() + s), o.setHours(23, 59, 59, 999), o;
|
|
300
236
|
}
|
|
301
|
-
function
|
|
302
|
-
return
|
|
237
|
+
function Un(e, t) {
|
|
238
|
+
return Yt(e, {
|
|
303
239
|
...t,
|
|
304
240
|
weekStartsOn: 1
|
|
305
241
|
});
|
|
306
242
|
}
|
|
307
|
-
|
|
243
|
+
function Qn(e, t) {
|
|
244
|
+
const n = P(e, t?.in), r = n.getMonth();
|
|
245
|
+
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
246
|
+
}
|
|
247
|
+
function Vn(e, t) {
|
|
248
|
+
const n = P(e, t?.in), r = n.getFullYear();
|
|
249
|
+
return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
250
|
+
}
|
|
251
|
+
var Kn = {
|
|
308
252
|
lessThanXSeconds: {
|
|
309
253
|
one: "less than a second",
|
|
310
254
|
other: "less than {{count}} seconds"
|
|
@@ -366,9 +310,9 @@ var nr = {
|
|
|
366
310
|
one: "almost 1 year",
|
|
367
311
|
other: "almost {{count}} years"
|
|
368
312
|
}
|
|
369
|
-
},
|
|
313
|
+
}, Xn = (e, t, n) => {
|
|
370
314
|
let r;
|
|
371
|
-
const o =
|
|
315
|
+
const o = Kn[e];
|
|
372
316
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
373
317
|
};
|
|
374
318
|
function $e(e) {
|
|
@@ -377,42 +321,42 @@ function $e(e) {
|
|
|
377
321
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
378
322
|
};
|
|
379
323
|
}
|
|
380
|
-
var
|
|
324
|
+
var Jn = {
|
|
381
325
|
full: "EEEE, MMMM do, y",
|
|
382
326
|
long: "MMMM do, y",
|
|
383
327
|
medium: "MMM d, y",
|
|
384
328
|
short: "MM/dd/yyyy"
|
|
385
|
-
},
|
|
329
|
+
}, Ln = {
|
|
386
330
|
full: "h:mm:ss a zzzz",
|
|
387
331
|
long: "h:mm:ss a z",
|
|
388
332
|
medium: "h:mm:ss a",
|
|
389
333
|
short: "h:mm a"
|
|
390
|
-
},
|
|
334
|
+
}, er = {
|
|
391
335
|
full: "{{date}} 'at' {{time}}",
|
|
392
336
|
long: "{{date}} 'at' {{time}}",
|
|
393
337
|
medium: "{{date}}, {{time}}",
|
|
394
338
|
short: "{{date}}, {{time}}"
|
|
395
|
-
},
|
|
339
|
+
}, tr = {
|
|
396
340
|
date: $e({
|
|
397
|
-
formats:
|
|
341
|
+
formats: Jn,
|
|
398
342
|
defaultWidth: "full"
|
|
399
343
|
}),
|
|
400
344
|
time: $e({
|
|
401
|
-
formats:
|
|
345
|
+
formats: Ln,
|
|
402
346
|
defaultWidth: "full"
|
|
403
347
|
}),
|
|
404
348
|
dateTime: $e({
|
|
405
|
-
formats:
|
|
349
|
+
formats: er,
|
|
406
350
|
defaultWidth: "full"
|
|
407
351
|
})
|
|
408
|
-
},
|
|
352
|
+
}, nr = {
|
|
409
353
|
lastWeek: "'last' eeee 'at' p",
|
|
410
354
|
yesterday: "'yesterday at' p",
|
|
411
355
|
today: "'today at' p",
|
|
412
356
|
tomorrow: "'tomorrow at' p",
|
|
413
357
|
nextWeek: "eeee 'at' p",
|
|
414
358
|
other: "P"
|
|
415
|
-
},
|
|
359
|
+
}, rr = (e, t, n, r) => nr[e];
|
|
416
360
|
function de(e) {
|
|
417
361
|
return (t, n) => {
|
|
418
362
|
const r = n?.context ? String(n.context) : "standalone";
|
|
@@ -428,11 +372,11 @@ function de(e) {
|
|
|
428
372
|
return o[a];
|
|
429
373
|
};
|
|
430
374
|
}
|
|
431
|
-
var
|
|
375
|
+
var or = {
|
|
432
376
|
narrow: ["B", "A"],
|
|
433
377
|
abbreviated: ["BC", "AD"],
|
|
434
378
|
wide: ["Before Christ", "Anno Domini"]
|
|
435
|
-
},
|
|
379
|
+
}, ar = {
|
|
436
380
|
narrow: [
|
|
437
381
|
"1",
|
|
438
382
|
"2",
|
|
@@ -451,7 +395,7 @@ var lr = {
|
|
|
451
395
|
"3rd quarter",
|
|
452
396
|
"4th quarter"
|
|
453
397
|
]
|
|
454
|
-
},
|
|
398
|
+
}, sr = {
|
|
455
399
|
narrow: [
|
|
456
400
|
"J",
|
|
457
401
|
"F",
|
|
@@ -494,7 +438,7 @@ var lr = {
|
|
|
494
438
|
"November",
|
|
495
439
|
"December"
|
|
496
440
|
]
|
|
497
|
-
},
|
|
441
|
+
}, ir = {
|
|
498
442
|
narrow: [
|
|
499
443
|
"S",
|
|
500
444
|
"M",
|
|
@@ -531,7 +475,7 @@ var lr = {
|
|
|
531
475
|
"Friday",
|
|
532
476
|
"Saturday"
|
|
533
477
|
]
|
|
534
|
-
},
|
|
478
|
+
}, ur = {
|
|
535
479
|
narrow: {
|
|
536
480
|
am: "a",
|
|
537
481
|
pm: "p",
|
|
@@ -562,7 +506,7 @@ var lr = {
|
|
|
562
506
|
evening: "evening",
|
|
563
507
|
night: "night"
|
|
564
508
|
}
|
|
565
|
-
},
|
|
509
|
+
}, cr = {
|
|
566
510
|
narrow: {
|
|
567
511
|
am: "a",
|
|
568
512
|
pm: "p",
|
|
@@ -593,7 +537,7 @@ var lr = {
|
|
|
593
537
|
evening: "in the evening",
|
|
594
538
|
night: "at night"
|
|
595
539
|
}
|
|
596
|
-
},
|
|
540
|
+
}, lr = (e, t) => {
|
|
597
541
|
const n = Number(e), r = n % 100;
|
|
598
542
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
599
543
|
case 1:
|
|
@@ -604,29 +548,29 @@ var lr = {
|
|
|
604
548
|
return n + "rd";
|
|
605
549
|
}
|
|
606
550
|
return n + "th";
|
|
607
|
-
},
|
|
608
|
-
ordinalNumber:
|
|
551
|
+
}, fr = {
|
|
552
|
+
ordinalNumber: lr,
|
|
609
553
|
era: de({
|
|
610
|
-
values:
|
|
554
|
+
values: or,
|
|
611
555
|
defaultWidth: "wide"
|
|
612
556
|
}),
|
|
613
557
|
quarter: de({
|
|
614
|
-
values:
|
|
558
|
+
values: ar,
|
|
615
559
|
defaultWidth: "wide",
|
|
616
560
|
argumentCallback: (e) => e - 1
|
|
617
561
|
}),
|
|
618
562
|
month: de({
|
|
619
|
-
values:
|
|
563
|
+
values: sr,
|
|
620
564
|
defaultWidth: "wide"
|
|
621
565
|
}),
|
|
622
566
|
day: de({
|
|
623
|
-
values:
|
|
567
|
+
values: ir,
|
|
624
568
|
defaultWidth: "wide"
|
|
625
569
|
}),
|
|
626
570
|
dayPeriod: de({
|
|
627
|
-
values:
|
|
571
|
+
values: ur,
|
|
628
572
|
defaultWidth: "wide",
|
|
629
|
-
formattingValues:
|
|
573
|
+
formattingValues: cr,
|
|
630
574
|
defaultFormattingWidth: "wide"
|
|
631
575
|
})
|
|
632
576
|
};
|
|
@@ -634,7 +578,7 @@ function he(e) {
|
|
|
634
578
|
return (t, n = {}) => {
|
|
635
579
|
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
|
|
636
580
|
if (!a) return null;
|
|
637
|
-
const s = a[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ?
|
|
581
|
+
const s = a[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? hr(i, (l) => l.test(s)) : dr(i, (l) => l.test(s));
|
|
638
582
|
let c;
|
|
639
583
|
c = e.valueCallback ? e.valueCallback(u) : u, c = n.valueCallback ? n.valueCallback(c) : c;
|
|
640
584
|
const f = t.slice(s.length);
|
|
@@ -644,13 +588,13 @@ function he(e) {
|
|
|
644
588
|
};
|
|
645
589
|
};
|
|
646
590
|
}
|
|
647
|
-
function
|
|
591
|
+
function dr(e, t) {
|
|
648
592
|
for (const n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
649
593
|
}
|
|
650
|
-
function
|
|
594
|
+
function hr(e, t) {
|
|
651
595
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
652
596
|
}
|
|
653
|
-
function
|
|
597
|
+
function mr(e) {
|
|
654
598
|
return (t, n = {}) => {
|
|
655
599
|
const r = t.match(e.matchPattern);
|
|
656
600
|
if (!r) return null;
|
|
@@ -665,24 +609,24 @@ function Dr(e) {
|
|
|
665
609
|
};
|
|
666
610
|
};
|
|
667
611
|
}
|
|
668
|
-
var
|
|
612
|
+
var yr = /^(\d+)(th|st|nd|rd)?/i, vr = /\d+/i, gr = {
|
|
669
613
|
narrow: /^(b|a)/i,
|
|
670
614
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
671
615
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
672
|
-
},
|
|
616
|
+
}, br = { any: [/^b/i, /^(a|c)/i] }, wr = {
|
|
673
617
|
narrow: /^[1234]/i,
|
|
674
618
|
abbreviated: /^q[1234]/i,
|
|
675
619
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
676
|
-
},
|
|
620
|
+
}, Dr = { any: [
|
|
677
621
|
/1/i,
|
|
678
622
|
/2/i,
|
|
679
623
|
/3/i,
|
|
680
624
|
/4/i
|
|
681
|
-
] },
|
|
625
|
+
] }, Mr = {
|
|
682
626
|
narrow: /^[jfmasond]/i,
|
|
683
627
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
684
628
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
685
|
-
},
|
|
629
|
+
}, pr = {
|
|
686
630
|
narrow: [
|
|
687
631
|
/^j/i,
|
|
688
632
|
/^f/i,
|
|
@@ -711,12 +655,12 @@ var Mr = /^(\d+)(th|st|nd|rd)?/i, pr = /\d+/i, kr = {
|
|
|
711
655
|
/^n/i,
|
|
712
656
|
/^d/i
|
|
713
657
|
]
|
|
714
|
-
},
|
|
658
|
+
}, kr = {
|
|
715
659
|
narrow: /^[smtwf]/i,
|
|
716
660
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
717
661
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
718
662
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
719
|
-
},
|
|
663
|
+
}, Or = {
|
|
720
664
|
narrow: [
|
|
721
665
|
/^s/i,
|
|
722
666
|
/^m/i,
|
|
@@ -735,10 +679,10 @@ var Mr = /^(\d+)(th|st|nd|rd)?/i, pr = /\d+/i, kr = {
|
|
|
735
679
|
/^f/i,
|
|
736
680
|
/^sa/i
|
|
737
681
|
]
|
|
738
|
-
},
|
|
682
|
+
}, Wr = {
|
|
739
683
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
740
684
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
741
|
-
},
|
|
685
|
+
}, Sr = { any: {
|
|
742
686
|
am: /^a/i,
|
|
743
687
|
pm: /^p/i,
|
|
744
688
|
midnight: /^mi/i,
|
|
@@ -747,62 +691,88 @@ var Mr = /^(\d+)(th|st|nd|rd)?/i, pr = /\d+/i, kr = {
|
|
|
747
691
|
afternoon: /afternoon/i,
|
|
748
692
|
evening: /evening/i,
|
|
749
693
|
night: /night/i
|
|
750
|
-
} },
|
|
751
|
-
ordinalNumber:
|
|
752
|
-
matchPattern:
|
|
753
|
-
parsePattern:
|
|
694
|
+
} }, Nr = {
|
|
695
|
+
ordinalNumber: mr({
|
|
696
|
+
matchPattern: yr,
|
|
697
|
+
parsePattern: vr,
|
|
754
698
|
valueCallback: (e) => parseInt(e, 10)
|
|
755
699
|
}),
|
|
756
700
|
era: he({
|
|
757
|
-
matchPatterns:
|
|
701
|
+
matchPatterns: gr,
|
|
758
702
|
defaultMatchWidth: "wide",
|
|
759
|
-
parsePatterns:
|
|
703
|
+
parsePatterns: br,
|
|
760
704
|
defaultParseWidth: "any"
|
|
761
705
|
}),
|
|
762
706
|
quarter: he({
|
|
763
|
-
matchPatterns:
|
|
707
|
+
matchPatterns: wr,
|
|
764
708
|
defaultMatchWidth: "wide",
|
|
765
|
-
parsePatterns:
|
|
709
|
+
parsePatterns: Dr,
|
|
766
710
|
defaultParseWidth: "any",
|
|
767
711
|
valueCallback: (e) => e + 1
|
|
768
712
|
}),
|
|
769
713
|
month: he({
|
|
770
|
-
matchPatterns:
|
|
714
|
+
matchPatterns: Mr,
|
|
771
715
|
defaultMatchWidth: "wide",
|
|
772
|
-
parsePatterns:
|
|
716
|
+
parsePatterns: pr,
|
|
773
717
|
defaultParseWidth: "any"
|
|
774
718
|
}),
|
|
775
719
|
day: he({
|
|
776
|
-
matchPatterns:
|
|
720
|
+
matchPatterns: kr,
|
|
777
721
|
defaultMatchWidth: "wide",
|
|
778
|
-
parsePatterns:
|
|
722
|
+
parsePatterns: Or,
|
|
779
723
|
defaultParseWidth: "any"
|
|
780
724
|
}),
|
|
781
725
|
dayPeriod: he({
|
|
782
|
-
matchPatterns:
|
|
726
|
+
matchPatterns: Wr,
|
|
783
727
|
defaultMatchWidth: "any",
|
|
784
|
-
parsePatterns:
|
|
728
|
+
parsePatterns: Sr,
|
|
785
729
|
defaultParseWidth: "any"
|
|
786
730
|
})
|
|
787
731
|
}, ue = {
|
|
788
732
|
code: "en-US",
|
|
789
|
-
formatDistance:
|
|
790
|
-
formatLong:
|
|
791
|
-
formatRelative:
|
|
792
|
-
localize:
|
|
793
|
-
match:
|
|
733
|
+
formatDistance: Xn,
|
|
734
|
+
formatLong: tr,
|
|
735
|
+
formatRelative: rr,
|
|
736
|
+
localize: fr,
|
|
737
|
+
match: Nr,
|
|
794
738
|
options: {
|
|
795
739
|
weekStartsOn: 0,
|
|
796
740
|
firstWeekContainsDate: 1
|
|
797
741
|
}
|
|
798
742
|
};
|
|
799
|
-
function
|
|
743
|
+
function xt(e, t) {
|
|
744
|
+
const n = P(e, t?.in);
|
|
745
|
+
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
746
|
+
}
|
|
747
|
+
function Cr(e, t) {
|
|
800
748
|
const n = P(e, t?.in);
|
|
801
749
|
return Ke(n, xt(n)) + 1;
|
|
802
750
|
}
|
|
751
|
+
function ce(e, t) {
|
|
752
|
+
const n = Me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = P(e, t?.in), a = o.getDay(), s = (a < r ? 7 : 0) + a - r;
|
|
753
|
+
return o.setDate(o.getDate() - s), o.setHours(0, 0, 0, 0), o;
|
|
754
|
+
}
|
|
755
|
+
function De(e, t) {
|
|
756
|
+
return ce(e, {
|
|
757
|
+
...t,
|
|
758
|
+
weekStartsOn: 1
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
function Pt(e, t) {
|
|
762
|
+
const n = P(e, t?.in), r = n.getFullYear(), o = I(n, 0);
|
|
763
|
+
o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
764
|
+
const a = De(o), s = I(n, 0);
|
|
765
|
+
s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
|
|
766
|
+
const i = De(s);
|
|
767
|
+
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
|
|
768
|
+
}
|
|
769
|
+
function Tr(e, t) {
|
|
770
|
+
const n = Pt(e, t), r = I(t?.in || e, 0);
|
|
771
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), De(r);
|
|
772
|
+
}
|
|
803
773
|
function Xe(e, t) {
|
|
804
|
-
const n = P(e, t?.in), r = +
|
|
805
|
-
return Math.round(r /
|
|
774
|
+
const n = P(e, t?.in), r = +De(n) - +Tr(n);
|
|
775
|
+
return Math.round(r / Ot) + 1;
|
|
806
776
|
}
|
|
807
777
|
function Et(e, t) {
|
|
808
778
|
const n = P(e, t?.in), r = n.getFullYear(), o = Me(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, s = I(t?.in || e, 0);
|
|
@@ -812,13 +782,13 @@ function Et(e, t) {
|
|
|
812
782
|
const c = ce(u, t);
|
|
813
783
|
return +n >= +i ? r + 1 : +n >= +c ? r : r - 1;
|
|
814
784
|
}
|
|
815
|
-
function
|
|
785
|
+
function Yr(e, t) {
|
|
816
786
|
const n = Me(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = Et(e, t), a = I(t?.in || e, 0);
|
|
817
787
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), ce(a, t);
|
|
818
788
|
}
|
|
819
789
|
function Je(e, t) {
|
|
820
|
-
const n = P(e, t?.in), r = +ce(n, t) - +
|
|
821
|
-
return Math.round(r /
|
|
790
|
+
const n = P(e, t?.in), r = +ce(n, t) - +Yr(n, t);
|
|
791
|
+
return Math.round(r / Ot) + 1;
|
|
822
792
|
}
|
|
823
793
|
function x(e, t) {
|
|
824
794
|
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
@@ -904,7 +874,7 @@ var re = {
|
|
|
904
874
|
return t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : x(a, t.length);
|
|
905
875
|
},
|
|
906
876
|
R: function(e, t) {
|
|
907
|
-
const n =
|
|
877
|
+
const n = Pt(e);
|
|
908
878
|
return x(n, t.length);
|
|
909
879
|
},
|
|
910
880
|
u: function(e, t) {
|
|
@@ -1026,7 +996,7 @@ var re = {
|
|
|
1026
996
|
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : re.d(e, t);
|
|
1027
997
|
},
|
|
1028
998
|
D: function(e, t, n) {
|
|
1029
|
-
const r =
|
|
999
|
+
const r = Cr(e);
|
|
1030
1000
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : x(r, t.length);
|
|
1031
1001
|
},
|
|
1032
1002
|
E: function(e, t, n) {
|
|
@@ -1340,7 +1310,7 @@ var gt = (e, t) => {
|
|
|
1340
1310
|
default:
|
|
1341
1311
|
return t.time({ width: "full" });
|
|
1342
1312
|
}
|
|
1343
|
-
},
|
|
1313
|
+
}, xr = (e, t) => {
|
|
1344
1314
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1345
1315
|
if (!o) return gt(e, t);
|
|
1346
1316
|
let a;
|
|
@@ -1358,41 +1328,47 @@ var gt = (e, t) => {
|
|
|
1358
1328
|
a = t.dateTime({ width: "full" });
|
|
1359
1329
|
}
|
|
1360
1330
|
return a.replace("{{date}}", gt(r, t)).replace("{{time}}", Ft(o, t));
|
|
1361
|
-
},
|
|
1331
|
+
}, Pr = {
|
|
1362
1332
|
p: Ft,
|
|
1363
|
-
P:
|
|
1364
|
-
},
|
|
1333
|
+
P: xr
|
|
1334
|
+
}, Er = /^D+$/, Fr = /^Y+$/, _r = [
|
|
1365
1335
|
"D",
|
|
1366
1336
|
"DD",
|
|
1367
1337
|
"YY",
|
|
1368
1338
|
"YYYY"
|
|
1369
1339
|
];
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1340
|
+
function Br(e) {
|
|
1341
|
+
return Er.test(e);
|
|
1372
1342
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1343
|
+
function Ir(e) {
|
|
1344
|
+
return Fr.test(e);
|
|
1375
1345
|
}
|
|
1376
|
-
function
|
|
1377
|
-
const r =
|
|
1378
|
-
if (console.warn(r),
|
|
1346
|
+
function Hr(e, t, n) {
|
|
1347
|
+
const r = Ar(e, t, n);
|
|
1348
|
+
if (console.warn(r), _r.includes(e)) throw new RangeError(r);
|
|
1379
1349
|
}
|
|
1380
|
-
function
|
|
1350
|
+
function Ar(e, t, n) {
|
|
1381
1351
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1382
1352
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1383
1353
|
}
|
|
1384
|
-
|
|
1354
|
+
function _t(e) {
|
|
1355
|
+
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1356
|
+
}
|
|
1357
|
+
function qr(e) {
|
|
1358
|
+
return !(!_t(e) && typeof e != "number" || isNaN(+P(e)));
|
|
1359
|
+
}
|
|
1360
|
+
var Gr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, $r = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, jr = /^'([^]*?)'?$/, Rr = /''/g, Zr = /[a-zA-Z]/;
|
|
1385
1361
|
function be(e, t, n) {
|
|
1386
1362
|
const r = Me(), o = n?.locale ?? r.locale ?? ue, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = P(e, n?.in);
|
|
1387
|
-
if (!
|
|
1388
|
-
let u = t.match(
|
|
1363
|
+
if (!qr(i)) throw new RangeError("Invalid time value");
|
|
1364
|
+
let u = t.match($r).map((f) => {
|
|
1389
1365
|
const l = f[0];
|
|
1390
1366
|
if (l === "p" || l === "P") {
|
|
1391
|
-
const O =
|
|
1367
|
+
const O = Pr[l];
|
|
1392
1368
|
return O(f, o.formatLong);
|
|
1393
1369
|
}
|
|
1394
1370
|
return f;
|
|
1395
|
-
}).join("").match(
|
|
1371
|
+
}).join("").match(Gr).map((f) => {
|
|
1396
1372
|
if (f === "''") return {
|
|
1397
1373
|
isToken: !1,
|
|
1398
1374
|
value: "'"
|
|
@@ -1400,13 +1376,13 @@ function be(e, t, n) {
|
|
|
1400
1376
|
const l = f[0];
|
|
1401
1377
|
if (l === "'") return {
|
|
1402
1378
|
isToken: !1,
|
|
1403
|
-
value:
|
|
1379
|
+
value: zr(f)
|
|
1404
1380
|
};
|
|
1405
1381
|
if (mt[l]) return {
|
|
1406
1382
|
isToken: !0,
|
|
1407
1383
|
value: f
|
|
1408
1384
|
};
|
|
1409
|
-
if (l.match(
|
|
1385
|
+
if (l.match(Zr)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + l + "`");
|
|
1410
1386
|
return {
|
|
1411
1387
|
isToken: !1,
|
|
1412
1388
|
value: f
|
|
@@ -1421,63 +1397,87 @@ function be(e, t, n) {
|
|
|
1421
1397
|
return u.map((f) => {
|
|
1422
1398
|
if (!f.isToken) return f.value;
|
|
1423
1399
|
const l = f.value;
|
|
1424
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
1400
|
+
(!n?.useAdditionalWeekYearTokens && Ir(l) || !n?.useAdditionalDayOfYearTokens && Br(l)) && Hr(l, t, String(e));
|
|
1425
1401
|
const O = mt[l[0]];
|
|
1426
1402
|
return O(i, l, o.localize, c);
|
|
1427
1403
|
}).join("");
|
|
1428
1404
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const t = e.match(
|
|
1431
|
-
return t ? t[1].replace(
|
|
1405
|
+
function zr(e) {
|
|
1406
|
+
const t = e.match(jr);
|
|
1407
|
+
return t ? t[1].replace(Rr, "'") : e;
|
|
1432
1408
|
}
|
|
1433
|
-
function
|
|
1434
|
-
const n = P(e, t?.in), r = n.getFullYear(), o = n.getMonth(), a = I(n, 0);
|
|
1435
|
-
return a.setFullYear(r, o + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
|
|
1436
|
-
}
|
|
1437
|
-
function Jr(e, t) {
|
|
1409
|
+
function Ur(e, t) {
|
|
1438
1410
|
return P(e, t?.in).getMonth();
|
|
1439
1411
|
}
|
|
1440
|
-
function
|
|
1412
|
+
function Qr(e, t) {
|
|
1441
1413
|
return P(e, t?.in).getFullYear();
|
|
1442
1414
|
}
|
|
1443
|
-
function
|
|
1415
|
+
function Vr(e, t) {
|
|
1444
1416
|
return +P(e) > +P(t);
|
|
1445
1417
|
}
|
|
1446
|
-
function
|
|
1418
|
+
function Kr(e, t) {
|
|
1447
1419
|
return +P(e) < +P(t);
|
|
1448
1420
|
}
|
|
1449
|
-
function
|
|
1421
|
+
function Xr(e, t, n) {
|
|
1422
|
+
const [r, o] = le(n?.in, e, t);
|
|
1423
|
+
return +we(r) == +we(o);
|
|
1424
|
+
}
|
|
1425
|
+
function Jr(e, t, n) {
|
|
1450
1426
|
const [r, o] = le(n?.in, e, t);
|
|
1451
1427
|
return r.getFullYear() === o.getFullYear() && r.getMonth() === o.getMonth();
|
|
1452
1428
|
}
|
|
1453
|
-
function
|
|
1429
|
+
function Lr(e, t, n) {
|
|
1454
1430
|
const [r, o] = le(n?.in, e, t);
|
|
1455
1431
|
return r.getFullYear() === o.getFullYear();
|
|
1456
1432
|
}
|
|
1457
|
-
function
|
|
1433
|
+
function eo(e, t) {
|
|
1434
|
+
let n, r = t?.in;
|
|
1435
|
+
return e.forEach((o) => {
|
|
1436
|
+
!r && typeof o == "object" && (r = I.bind(null, o));
|
|
1437
|
+
const a = P(o, r);
|
|
1438
|
+
(!n || n < a || isNaN(+a)) && (n = a);
|
|
1439
|
+
}), I(r, n || NaN);
|
|
1440
|
+
}
|
|
1441
|
+
function to(e, t) {
|
|
1442
|
+
let n, r = t?.in;
|
|
1443
|
+
return e.forEach((o) => {
|
|
1444
|
+
!r && typeof o == "object" && (r = I.bind(null, o));
|
|
1445
|
+
const a = P(o, r);
|
|
1446
|
+
(!n || n > a || isNaN(+a)) && (n = a);
|
|
1447
|
+
}), I(r, n || NaN);
|
|
1448
|
+
}
|
|
1449
|
+
function no(e, t) {
|
|
1450
|
+
const n = P(e, t?.in), r = n.getFullYear(), o = n.getMonth(), a = I(n, 0);
|
|
1451
|
+
return a.setFullYear(r, o + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
|
|
1452
|
+
}
|
|
1453
|
+
function ro(e, t, n) {
|
|
1458
1454
|
const r = P(e, n?.in), o = r.getFullYear(), a = r.getDate(), s = I(n?.in || e, 0);
|
|
1459
1455
|
s.setFullYear(o, t, 15), s.setHours(0, 0, 0, 0);
|
|
1460
|
-
const i =
|
|
1456
|
+
const i = no(s);
|
|
1461
1457
|
return r.setMonth(t, Math.min(a, i)), r;
|
|
1462
1458
|
}
|
|
1463
|
-
function
|
|
1459
|
+
function oo(e, t, n) {
|
|
1464
1460
|
const r = P(e, n?.in);
|
|
1465
1461
|
return isNaN(+r) ? I(n?.in || e, NaN) : (r.setFullYear(t), r);
|
|
1466
1462
|
}
|
|
1463
|
+
function ao(e, t) {
|
|
1464
|
+
const n = P(e, t?.in);
|
|
1465
|
+
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
1466
|
+
}
|
|
1467
1467
|
var so = 5, io = 4;
|
|
1468
1468
|
function uo(e, t) {
|
|
1469
1469
|
const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), a = t.addDays(o, 34);
|
|
1470
1470
|
return t.getMonth(e) === t.getMonth(a) ? so : io;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function Bt(e, t) {
|
|
1473
1473
|
const n = t.startOfMonth(e), r = n.getDay();
|
|
1474
1474
|
return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
|
|
1475
1475
|
}
|
|
1476
1476
|
function co(e, t) {
|
|
1477
|
-
const n =
|
|
1477
|
+
const n = Bt(e, t), r = uo(e, t);
|
|
1478
1478
|
return t.addDays(n, r * 7 - 1);
|
|
1479
1479
|
}
|
|
1480
|
-
var
|
|
1480
|
+
var It = {
|
|
1481
1481
|
...ue,
|
|
1482
1482
|
labels: {
|
|
1483
1483
|
labelDayButton: (e, t, n, r) => {
|
|
@@ -1522,18 +1522,18 @@ var Bt = {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
}, K = class Qe {
|
|
1524
1524
|
constructor(t, n) {
|
|
1525
|
-
this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? R.tz(this.options.timeZone) : new (this.options.Date ?? Date)(), this.newDate = (r, o, a) => this.overrides?.newDate ? this.overrides.newDate(r, o, a) : this.options.timeZone ? new R(r, o, a, this.options.timeZone) : new Date(r, o, a), this.addDays = (r, o) => this.overrides?.addDays ? this.overrides.addDays(r, o) :
|
|
1526
|
-
const o = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) :
|
|
1525
|
+
this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? R.tz(this.options.timeZone) : new (this.options.Date ?? Date)(), this.newDate = (r, o, a) => this.overrides?.newDate ? this.overrides.newDate(r, o, a) : this.options.timeZone ? new R(r, o, a, this.options.timeZone) : new Date(r, o, a), this.addDays = (r, o) => this.overrides?.addDays ? this.overrides.addDays(r, o) : St(r, o), this.addMonths = (r, o) => this.overrides?.addMonths ? this.overrides.addMonths(r, o) : Nt(r, o), this.addWeeks = (r, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, o) : $n(r, o), this.addYears = (r, o) => this.overrides?.addYears ? this.overrides.addYears(r, o) : jn(r, o), this.differenceInCalendarDays = (r, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : Ke(r, o), this.differenceInCalendarMonths = (r, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Ct(r, o), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Rn(r), this.eachYearOfInterval = (r) => {
|
|
1526
|
+
const o = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Zn(r), a = new Set(o.map((i) => this.getYear(i)));
|
|
1527
1527
|
if (a.size === o.length) return o;
|
|
1528
1528
|
const s = [];
|
|
1529
1529
|
return a.forEach((i) => {
|
|
1530
1530
|
s.push(new Date(i, 0, 1));
|
|
1531
1531
|
}), s;
|
|
1532
|
-
}, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : co(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) :
|
|
1532
|
+
}, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : co(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Un(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : Qn(r), this.endOfWeek = (r, o) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, o) : Yt(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : Vn(r), this.format = (r, o, a) => {
|
|
1533
1533
|
const s = this.overrides?.format ? this.overrides.format(r, o, this.options) : be(r, o, this.options);
|
|
1534
1534
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
|
|
1535
|
-
}, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Xe(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) :
|
|
1536
|
-
locale:
|
|
1535
|
+
}, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Xe(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : Ur(r, this.options), this.getYear = (r, o) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : Qr(r, this.options), this.getWeek = (r, o) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : Je(r, this.options), this.isAfter = (r, o) => this.overrides?.isAfter ? this.overrides.isAfter(r, o) : Vr(r, o), this.isBefore = (r, o) => this.overrides?.isBefore ? this.overrides.isBefore(r, o) : Kr(r, o), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : _t(r), this.isSameDay = (r, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, o) : Xr(r, o), this.isSameMonth = (r, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, o) : Jr(r, o), this.isSameYear = (r, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, o) : Lr(r, o), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : eo(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : to(r), this.setMonth = (r, o) => this.overrides?.setMonth ? this.overrides.setMonth(r, o) : ro(r, o), this.setYear = (r, o) => this.overrides?.setYear ? this.overrides.setYear(r, o) : oo(r, o), this.startOfBroadcastWeek = (r, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : Bt(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : we(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : De(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : ao(r), this.startOfWeek = (r, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : ce(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : xt(r), this.options = {
|
|
1536
|
+
locale: It,
|
|
1537
1537
|
...t
|
|
1538
1538
|
}, this.overrides = n;
|
|
1539
1539
|
}
|
|
@@ -1587,7 +1587,7 @@ K.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
1587
1587
|
"zh-HK",
|
|
1588
1588
|
"zh-TW"
|
|
1589
1589
|
]);
|
|
1590
|
-
var X = new K(),
|
|
1590
|
+
var X = new K(), Ht = class {
|
|
1591
1591
|
constructor(e, t, n = X) {
|
|
1592
1592
|
this.date = e, this.displayMonth = t, this.outside = !!(t && !n.isSameMonth(e, t)), this.dateLib = n, this.isoDate = n.format(e, "yyyy-MM-dd"), this.displayMonthId = n.format(t, "yyyy-MM"), this.dateMonthId = n.format(e, "yyyy-MM");
|
|
1593
1593
|
}
|
|
@@ -1645,9 +1645,9 @@ var G;
|
|
|
1645
1645
|
(function(e) {
|
|
1646
1646
|
e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
|
|
1647
1647
|
})(G || (G = {}));
|
|
1648
|
-
var
|
|
1648
|
+
var At = Cn(void 0);
|
|
1649
1649
|
function Ye() {
|
|
1650
|
-
const e =
|
|
1650
|
+
const e = Tn(At);
|
|
1651
1651
|
if (e === void 0) throw new Error("useDayPicker() must be used within a custom component.");
|
|
1652
1652
|
return e;
|
|
1653
1653
|
}
|
|
@@ -1820,10 +1820,10 @@ function et(e) {
|
|
|
1820
1820
|
function tt(e) {
|
|
1821
1821
|
return !!(e && typeof e == "object" && "before" in e);
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function qt(e) {
|
|
1824
1824
|
return !!(e && typeof e == "object" && "dayOfWeek" in e);
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function Gt(e, t) {
|
|
1827
1827
|
return Array.isArray(e) && e.every(t.isDate);
|
|
1828
1828
|
}
|
|
1829
1829
|
function ne(e, t, n = X) {
|
|
@@ -1831,9 +1831,9 @@ function ne(e, t, n = X) {
|
|
|
1831
1831
|
return r.some((i) => {
|
|
1832
1832
|
if (typeof i == "boolean") return i;
|
|
1833
1833
|
if (n.isDate(i)) return o(e, i);
|
|
1834
|
-
if (
|
|
1834
|
+
if (Gt(i, n)) return i.some((u) => o(e, u));
|
|
1835
1835
|
if (xe(i)) return te(i, e, !1, n);
|
|
1836
|
-
if (
|
|
1836
|
+
if (qt(i))
|
|
1837
1837
|
return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
|
|
1838
1838
|
if (Le(i)) {
|
|
1839
1839
|
const u = a(i.before, e), c = a(i.after, e), f = u > 0, l = c < 0;
|
|
@@ -1843,21 +1843,21 @@ function ne(e, t, n = X) {
|
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
1845
1845
|
function Ao(e, t, n, r, o) {
|
|
1846
|
-
const { disabled: a, hidden: s, modifiers: i, showOutsideDays: u, broadcastCalendar: c, today: f = o.today() } = t, { isSameDay: l, isSameMonth: O, startOfMonth: g, isBefore:
|
|
1846
|
+
const { disabled: a, hidden: s, modifiers: i, showOutsideDays: u, broadcastCalendar: c, today: f = o.today() } = t, { isSameDay: l, isSameMonth: O, startOfMonth: g, isBefore: D, endOfMonth: Y, isAfter: M } = o, F = n && g(n), b = r && Y(r), y = {
|
|
1847
1847
|
[_.focused]: [],
|
|
1848
1848
|
[_.outside]: [],
|
|
1849
1849
|
[_.disabled]: [],
|
|
1850
1850
|
[_.hidden]: [],
|
|
1851
1851
|
[_.today]: []
|
|
1852
1852
|
}, v = {};
|
|
1853
|
-
for (const
|
|
1854
|
-
const { date: d, displayMonth: S } =
|
|
1855
|
-
N && y.outside.push(
|
|
1853
|
+
for (const p of e) {
|
|
1854
|
+
const { date: d, displayMonth: S } = p, N = !!(S && !O(d, S)), E = !!(F && D(d, F)), $ = !!(b && M(d, b)), H = !!(a && ne(d, a, o)), A = !!(s && ne(d, s, o)) || E || $ || !c && !u && N || c && u === !1 && N, fe = l(d, f);
|
|
1855
|
+
N && y.outside.push(p), H && y.disabled.push(p), A && y.hidden.push(p), fe && y.today.push(p), i && Object.keys(i).forEach((oe) => {
|
|
1856
1856
|
const ke = i?.[oe];
|
|
1857
|
-
ke && ne(d, ke, o) && (v[oe] ? v[oe].push(
|
|
1857
|
+
ke && ne(d, ke, o) && (v[oe] ? v[oe].push(p) : v[oe] = [p]);
|
|
1858
1858
|
});
|
|
1859
1859
|
}
|
|
1860
|
-
return (
|
|
1860
|
+
return (p) => {
|
|
1861
1861
|
const d = {
|
|
1862
1862
|
[_.focused]: !1,
|
|
1863
1863
|
[_.disabled]: !1,
|
|
@@ -1865,8 +1865,8 @@ function Ao(e, t, n, r, o) {
|
|
|
1865
1865
|
[_.outside]: !1,
|
|
1866
1866
|
[_.today]: !1
|
|
1867
1867
|
}, S = {};
|
|
1868
|
-
for (const N in y) d[N] = y[N].some((E) => E ===
|
|
1869
|
-
for (const N in v) S[N] = v[N].some((E) => E ===
|
|
1868
|
+
for (const N in y) d[N] = y[N].some((E) => E === p);
|
|
1869
|
+
for (const N in v) S[N] = v[N].some((E) => E === p);
|
|
1870
1870
|
return {
|
|
1871
1871
|
...d,
|
|
1872
1872
|
...S
|
|
@@ -1939,71 +1939,71 @@ function Jo(e) {
|
|
|
1939
1939
|
...e
|
|
1940
1940
|
};
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function $t(e, t, n, r) {
|
|
1943
1943
|
let o = (r ?? new K(n)).format(e, "PPPP");
|
|
1944
1944
|
return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function jt(e, t, n) {
|
|
1947
1947
|
return (n ?? new K(t)).formatMonthYear(e);
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function Rt(e, t, n, r) {
|
|
1950
1950
|
let o = (r ?? new K(n)).format(e, "PPPP");
|
|
1951
1951
|
return t?.today && (o = `Today, ${o}`), o;
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function Zt(e) {
|
|
1954
1954
|
return "Choose the Month";
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function zt() {
|
|
1957
1957
|
return "";
|
|
1958
1958
|
}
|
|
1959
1959
|
var Lo = "Go to the Next Month";
|
|
1960
|
-
function
|
|
1960
|
+
function Ut(e, t) {
|
|
1961
1961
|
return Lo;
|
|
1962
1962
|
}
|
|
1963
|
-
function
|
|
1963
|
+
function Qt(e) {
|
|
1964
1964
|
return "Go to the Previous Month";
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function Vt(e, t, n) {
|
|
1967
1967
|
return (n ?? new K(t)).format(e, "cccc");
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function Kt(e, t) {
|
|
1970
1970
|
return `Week ${e}`;
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function Xt(e) {
|
|
1973
1973
|
return "Week Number";
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function Jt(e) {
|
|
1976
1976
|
return "Choose the Year";
|
|
1977
1977
|
}
|
|
1978
1978
|
var ea = /* @__PURE__ */ Ve({
|
|
1979
|
-
labelDayButton: () =>
|
|
1980
|
-
labelGrid: () =>
|
|
1981
|
-
labelGridcell: () =>
|
|
1982
|
-
labelMonthDropdown: () =>
|
|
1983
|
-
labelNav: () =>
|
|
1984
|
-
labelNext: () =>
|
|
1985
|
-
labelPrevious: () =>
|
|
1986
|
-
labelWeekNumber: () =>
|
|
1987
|
-
labelWeekNumberHeader: () =>
|
|
1988
|
-
labelWeekday: () =>
|
|
1989
|
-
labelYearDropdown: () =>
|
|
1979
|
+
labelDayButton: () => $t,
|
|
1980
|
+
labelGrid: () => jt,
|
|
1981
|
+
labelGridcell: () => Rt,
|
|
1982
|
+
labelMonthDropdown: () => Zt,
|
|
1983
|
+
labelNav: () => zt,
|
|
1984
|
+
labelNext: () => Ut,
|
|
1985
|
+
labelPrevious: () => Qt,
|
|
1986
|
+
labelWeekNumber: () => Kt,
|
|
1987
|
+
labelWeekNumberHeader: () => Xt,
|
|
1988
|
+
labelWeekday: () => Vt,
|
|
1989
|
+
labelYearDropdown: () => Jt
|
|
1990
1990
|
}), U = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
|
|
1991
1991
|
function ta(e, t) {
|
|
1992
1992
|
const n = t.locale?.labels ?? {};
|
|
1993
1993
|
return {
|
|
1994
1994
|
...ea,
|
|
1995
1995
|
...e ?? {},
|
|
1996
|
-
labelDayButton: U(
|
|
1997
|
-
labelMonthDropdown: U(
|
|
1998
|
-
labelNext: U(
|
|
1999
|
-
labelPrevious: U(
|
|
2000
|
-
labelWeekNumber: U(
|
|
2001
|
-
labelYearDropdown: U(
|
|
2002
|
-
labelGrid: U(
|
|
2003
|
-
labelGridcell: U(
|
|
2004
|
-
labelNav: U(
|
|
2005
|
-
labelWeekNumberHeader: U(
|
|
2006
|
-
labelWeekday: U(
|
|
1996
|
+
labelDayButton: U($t, e?.labelDayButton, n.labelDayButton),
|
|
1997
|
+
labelMonthDropdown: U(Zt, e?.labelMonthDropdown, n.labelMonthDropdown),
|
|
1998
|
+
labelNext: U(Ut, e?.labelNext, n.labelNext),
|
|
1999
|
+
labelPrevious: U(Qt, e?.labelPrevious, n.labelPrevious),
|
|
2000
|
+
labelWeekNumber: U(Kt, e?.labelWeekNumber, n.labelWeekNumber),
|
|
2001
|
+
labelYearDropdown: U(Jt, e?.labelYearDropdown, n.labelYearDropdown),
|
|
2002
|
+
labelGrid: U(jt, e?.labelGrid, n.labelGrid),
|
|
2003
|
+
labelGridcell: U(Rt, e?.labelGridcell, n.labelGridcell),
|
|
2004
|
+
labelNav: U(zt, e?.labelNav, n.labelNav),
|
|
2005
|
+
labelWeekNumberHeader: U(Xt, e?.labelWeekNumberHeader, n.labelWeekNumberHeader),
|
|
2006
|
+
labelWeekday: U(Vt, e?.labelWeekday, n.labelWeekday)
|
|
2007
2007
|
};
|
|
2008
2008
|
}
|
|
2009
2009
|
function na(e, t, n, r, o) {
|
|
@@ -2141,7 +2141,7 @@ function sa(e, t = {}) {
|
|
|
2141
2141
|
},
|
|
2142
2142
|
differenceInCalendarMonths: (i, u) => {
|
|
2143
2143
|
const c = s(i), f = s(u);
|
|
2144
|
-
return
|
|
2144
|
+
return Ct(c, f);
|
|
2145
2145
|
}
|
|
2146
2146
|
};
|
|
2147
2147
|
}
|
|
@@ -2151,24 +2151,24 @@ function la(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
|
|
|
2151
2151
|
Yn(() => {
|
|
2152
2152
|
const c = i.current;
|
|
2153
2153
|
if (i.current = r, !t || !e.current || !(e.current instanceof HTMLElement) || r.length === 0 || c.length === 0 || r.length !== c.length) return;
|
|
2154
|
-
const f = a.isSameMonth(r[0].date, c[0].date), l = a.isAfter(r[0].date, c[0].date), O = l ? n[G.caption_after_enter] : n[G.caption_before_enter], g = l ? n[G.weeks_after_enter] : n[G.weeks_before_enter],
|
|
2154
|
+
const f = a.isSameMonth(r[0].date, c[0].date), l = a.isAfter(r[0].date, c[0].date), O = l ? n[G.caption_after_enter] : n[G.caption_before_enter], g = l ? n[G.weeks_after_enter] : n[G.weeks_before_enter], D = s.current, Y = e.current.cloneNode(!0);
|
|
2155
2155
|
if (Y instanceof HTMLElement ? (je(Y).forEach((b) => {
|
|
2156
2156
|
if (!(b instanceof HTMLElement)) return;
|
|
2157
2157
|
const y = ia(b);
|
|
2158
2158
|
y && b.contains(y) && b.removeChild(y);
|
|
2159
2159
|
const v = Re(b);
|
|
2160
2160
|
v && v.classList.remove(O);
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2161
|
+
const p = Ze(b);
|
|
2162
|
+
p && p.classList.remove(g);
|
|
2163
2163
|
}), s.current = Y) : s.current = null, u.current || f || o) return;
|
|
2164
|
-
const
|
|
2165
|
-
if (F?.every((b) => b instanceof HTMLElement) &&
|
|
2164
|
+
const M = D instanceof HTMLElement ? je(D) : [], F = je(e.current);
|
|
2165
|
+
if (F?.every((b) => b instanceof HTMLElement) && M?.every((b) => b instanceof HTMLElement)) {
|
|
2166
2166
|
u.current = !0;
|
|
2167
2167
|
const b = [];
|
|
2168
2168
|
e.current.style.isolation = "isolate";
|
|
2169
2169
|
const y = ua(e.current);
|
|
2170
|
-
y && (y.style.zIndex = "1"), F.forEach((v,
|
|
2171
|
-
const d =
|
|
2170
|
+
y && (y.style.zIndex = "1"), F.forEach((v, p) => {
|
|
2171
|
+
const d = M[p];
|
|
2172
2172
|
if (!d) return;
|
|
2173
2173
|
v.style.position = "relative", v.style.overflow = "hidden";
|
|
2174
2174
|
const S = Re(v);
|
|
@@ -2190,7 +2190,7 @@ function la(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
|
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
2192
2192
|
function fa(e, t, n, r) {
|
|
2193
|
-
const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: u } = n ?? {}, { addDays: c, differenceInCalendarDays: f, differenceInCalendarMonths: l, endOfBroadcastWeek: O, endOfISOWeek: g, endOfMonth:
|
|
2193
|
+
const o = e[0], a = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: u } = n ?? {}, { addDays: c, differenceInCalendarDays: f, differenceInCalendarMonths: l, endOfBroadcastWeek: O, endOfISOWeek: g, endOfMonth: D, endOfWeek: Y, isAfter: M, startOfBroadcastWeek: F, startOfISOWeek: b, startOfWeek: y } = r, v = u ? F(o, r) : s ? b(o) : y(o), p = u ? O(a) : s ? g(D(a)) : Y(D(a)), d = t && (u ? O(t) : s ? g(t) : Y(t)), S = f(d && M(p, d) ? d : p, v), N = l(a, o) + 1, E = [];
|
|
2194
2194
|
for (let H = 0; H <= S; H++) {
|
|
2195
2195
|
const A = c(v, H);
|
|
2196
2196
|
E.push(A);
|
|
@@ -2228,8 +2228,8 @@ function bt(e, t, n, r) {
|
|
|
2228
2228
|
return n && c(n, u) < i - 1 && (u = f(n, -1 * (i - 1))), t && c(u, t) < 0 && (u = t), l(u);
|
|
2229
2229
|
}
|
|
2230
2230
|
function ma(e, t, n, r) {
|
|
2231
|
-
const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: u, getISOWeek: c, getWeek: f, startOfBroadcastWeek: l, startOfISOWeek: O, startOfWeek: g } = r,
|
|
2232
|
-
const F = n.broadcastCalendar ? l(
|
|
2231
|
+
const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: s, endOfMonth: i, endOfWeek: u, getISOWeek: c, getWeek: f, startOfBroadcastWeek: l, startOfISOWeek: O, startOfWeek: g } = r, D = e.reduce((Y, M) => {
|
|
2232
|
+
const F = n.broadcastCalendar ? l(M, r) : n.ISOWeek ? O(M) : g(M), b = n.broadcastCalendar ? a(M) : n.ISOWeek ? s(i(M)) : u(i(M)), y = t.filter((S) => S >= F && S <= b), v = n.broadcastCalendar ? 35 : 42;
|
|
2233
2233
|
if (n.fixedWeeks && y.length < v) {
|
|
2234
2234
|
const S = t.filter((N) => {
|
|
2235
2235
|
const E = v - y.length;
|
|
@@ -2237,13 +2237,13 @@ function ma(e, t, n, r) {
|
|
|
2237
2237
|
});
|
|
2238
2238
|
y.push(...S);
|
|
2239
2239
|
}
|
|
2240
|
-
const
|
|
2241
|
-
const E = n.ISOWeek ? c(N) : f(N), $ = S.find((A) => A.weekNumber === E), H = new
|
|
2240
|
+
const p = y.reduce((S, N) => {
|
|
2241
|
+
const E = n.ISOWeek ? c(N) : f(N), $ = S.find((A) => A.weekNumber === E), H = new Ht(N, M, r);
|
|
2242
2242
|
return $ ? $.days.push(H) : S.push(new fo(E, [H])), S;
|
|
2243
|
-
}, []), d = new lo(
|
|
2243
|
+
}, []), d = new lo(M, p);
|
|
2244
2244
|
return Y.push(d), Y;
|
|
2245
2245
|
}, []);
|
|
2246
|
-
return n.reverseMonths ?
|
|
2246
|
+
return n.reverseMonths ? D.reverse() : D;
|
|
2247
2247
|
}
|
|
2248
2248
|
function ya(e, t) {
|
|
2249
2249
|
let { startMonth: n, endMonth: r } = e;
|
|
@@ -2273,7 +2273,7 @@ function Pe(e, t) {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
function wa(e, t) {
|
|
2275
2275
|
const [n, r] = ya(e, t), { startOfMonth: o, endOfMonth: a } = t, s = bt(e, n, r, t), [i, u] = Pe(s, e.month ? s : void 0);
|
|
2276
|
-
|
|
2276
|
+
pt(() => {
|
|
2277
2277
|
const y = bt(e, n, r, t);
|
|
2278
2278
|
u(y);
|
|
2279
2279
|
}, [e.timeZone]);
|
|
@@ -2282,16 +2282,16 @@ function wa(e, t) {
|
|
|
2282
2282
|
ISOWeek: e.ISOWeek,
|
|
2283
2283
|
fixedWeeks: e.fixedWeeks,
|
|
2284
2284
|
broadcastCalendar: e.broadcastCalendar
|
|
2285
|
-
}, t),
|
|
2285
|
+
}, t), p = ma(y, v, {
|
|
2286
2286
|
broadcastCalendar: e.broadcastCalendar,
|
|
2287
2287
|
fixedWeeks: e.fixedWeeks,
|
|
2288
2288
|
ISOWeek: e.ISOWeek,
|
|
2289
2289
|
reverseMonths: e.reverseMonths
|
|
2290
2290
|
}, t);
|
|
2291
2291
|
return {
|
|
2292
|
-
months:
|
|
2293
|
-
weeks: ba(
|
|
2294
|
-
days: da(
|
|
2292
|
+
months: p,
|
|
2293
|
+
weeks: ba(p),
|
|
2294
|
+
days: da(p),
|
|
2295
2295
|
previousMonth: ga(i, n, e, t),
|
|
2296
2296
|
nextMonth: va(i, r, e, t)
|
|
2297
2297
|
};
|
|
@@ -2308,8 +2308,8 @@ function wa(e, t) {
|
|
|
2308
2308
|
e.numberOfMonths,
|
|
2309
2309
|
e.pagedNavigation,
|
|
2310
2310
|
e.reverseMonths
|
|
2311
|
-
]), { disableNavigation:
|
|
2312
|
-
if (
|
|
2311
|
+
]), { disableNavigation: D, onMonthChange: Y } = e, M = (y) => f.some((v) => v.days.some((p) => p.isEqualTo(y))), F = (y) => {
|
|
2312
|
+
if (D) return;
|
|
2313
2313
|
let v = o(y);
|
|
2314
2314
|
n && v < o(n) && (v = o(n)), r && v > o(r) && (v = o(r)), u(v), Y?.(v);
|
|
2315
2315
|
};
|
|
@@ -2323,7 +2323,7 @@ function wa(e, t) {
|
|
|
2323
2323
|
nextMonth: g,
|
|
2324
2324
|
goToMonth: F,
|
|
2325
2325
|
goToDay: (y) => {
|
|
2326
|
-
|
|
2326
|
+
M(y) || F(y.date);
|
|
2327
2327
|
}
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
@@ -2343,49 +2343,55 @@ function Da(e, t, n, r) {
|
|
|
2343
2343
|
return o || (o = e.find((s) => wt(t(s)))), o;
|
|
2344
2344
|
}
|
|
2345
2345
|
function Ma(e, t, n, r, o, a, s) {
|
|
2346
|
-
const { ISOWeek: i, broadcastCalendar: u } = a, { addDays: c, addMonths: f, addWeeks: l, addYears: O, endOfBroadcastWeek: g, endOfISOWeek:
|
|
2347
|
-
let
|
|
2346
|
+
const { ISOWeek: i, broadcastCalendar: u } = a, { addDays: c, addMonths: f, addWeeks: l, addYears: O, endOfBroadcastWeek: g, endOfISOWeek: D, endOfWeek: Y, max: M, min: F, startOfBroadcastWeek: b, startOfISOWeek: y, startOfWeek: v } = s;
|
|
2347
|
+
let p = {
|
|
2348
2348
|
day: c,
|
|
2349
2349
|
week: l,
|
|
2350
2350
|
month: f,
|
|
2351
2351
|
year: O,
|
|
2352
2352
|
startOfWeek: (d) => u ? b(d, s) : i ? y(d) : v(d),
|
|
2353
|
-
endOfWeek: (d) => u ? g(d) : i ?
|
|
2353
|
+
endOfWeek: (d) => u ? g(d) : i ? D(d) : Y(d)
|
|
2354
2354
|
}[e](n, t === "after" ? 1 : -1);
|
|
2355
|
-
return t === "before" && r ?
|
|
2355
|
+
return t === "before" && r ? p = M([r, p]) : t === "after" && o && (p = F([o, p])), p;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Lt(e, t, n, r, o, a, s, i = 0) {
|
|
2358
2358
|
if (i > 365) return;
|
|
2359
|
-
const u = Ma(e, t, n.date, r, o, a, s), c = !!(a.disabled && ne(u, a.disabled, s)), f = !!(a.hidden && ne(u, a.hidden, s)), l = new
|
|
2360
|
-
return !c && !f ? l :
|
|
2359
|
+
const u = Ma(e, t, n.date, r, o, a, s), c = !!(a.disabled && ne(u, a.disabled, s)), f = !!(a.hidden && ne(u, a.hidden, s)), l = new Ht(u, u, s);
|
|
2360
|
+
return !c && !f ? l : Lt(e, t, l, r, o, a, s, i + 1);
|
|
2361
2361
|
}
|
|
2362
2362
|
function pa(e, t, n, r, o) {
|
|
2363
2363
|
const { autoFocus: a } = e, [s, i] = Ue(), u = Da(t.days, n, r || (() => !1), s), [c, f] = Ue(a ? u : void 0);
|
|
2364
|
-
return {
|
|
2365
|
-
|
|
2364
|
+
return pt(() => {
|
|
2365
|
+
!c || !u || t.days.some((D) => D.isEqualTo(c)) || f(u);
|
|
2366
|
+
}, [
|
|
2367
|
+
t.days,
|
|
2368
|
+
c,
|
|
2369
|
+
u
|
|
2370
|
+
]), {
|
|
2371
|
+
isFocusTarget: (D) => !!u?.isEqualTo(D),
|
|
2366
2372
|
setFocused: f,
|
|
2367
2373
|
focused: c,
|
|
2368
2374
|
blur: () => {
|
|
2369
2375
|
i(c), f(void 0);
|
|
2370
2376
|
},
|
|
2371
|
-
moveFocus: (
|
|
2377
|
+
moveFocus: (D, Y) => {
|
|
2372
2378
|
if (!c) return;
|
|
2373
|
-
const
|
|
2374
|
-
|
|
2379
|
+
const M = Lt(D, Y, c, t.navStart, t.navEnd, e, o);
|
|
2380
|
+
M && (e.disableNavigation && !t.days.some((F) => F.isEqualTo(M)) || (t.goToDay(M), f(M)));
|
|
2375
2381
|
}
|
|
2376
2382
|
};
|
|
2377
2383
|
}
|
|
2378
2384
|
function ka(e, t) {
|
|
2379
|
-
const { selected: n, required: r, onSelect: o } = e, [a, s] = Pe(n, o ? n : void 0), i = o ? n : a, { isSameDay: u } = t, c = (g) => i?.some((
|
|
2385
|
+
const { selected: n, required: r, onSelect: o } = e, [a, s] = Pe(n, o ? n : void 0), i = o ? n : a, { isSameDay: u } = t, c = (g) => i?.some((D) => u(D, g)) ?? !1, { min: f, max: l } = e;
|
|
2380
2386
|
return {
|
|
2381
2387
|
selected: i,
|
|
2382
|
-
select: (g,
|
|
2383
|
-
let
|
|
2388
|
+
select: (g, D, Y) => {
|
|
2389
|
+
let M = [...i ?? []];
|
|
2384
2390
|
if (c(g)) {
|
|
2385
2391
|
if (i?.length === f || r && i?.length === 1) return;
|
|
2386
|
-
|
|
2387
|
-
} else i?.length === l ?
|
|
2388
|
-
return o || s(
|
|
2392
|
+
M = i?.filter((F) => !u(F, g));
|
|
2393
|
+
} else i?.length === l ? M = [g] : M = [...M, g];
|
|
2394
|
+
return o || s(M), o?.(M, g, D, Y), M;
|
|
2389
2395
|
},
|
|
2390
2396
|
isSelected: c
|
|
2391
2397
|
};
|
|
@@ -2465,10 +2471,10 @@ function Dt(e, t, n = X) {
|
|
|
2465
2471
|
}
|
|
2466
2472
|
function Sa(e, t, n = X) {
|
|
2467
2473
|
const r = Array.isArray(t) ? t : [t];
|
|
2468
|
-
if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ? te(e, a, !1, n) :
|
|
2474
|
+
if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ? te(e, a, !1, n) : Gt(a, n) ? a.some((s) => te(e, s, !1, n)) : xe(a) ? a.from && a.to ? Dt(e, {
|
|
2469
2475
|
from: a.from,
|
|
2470
2476
|
to: a.to
|
|
2471
|
-
}, n) : !1 :
|
|
2477
|
+
}, n) : !1 : qt(a) ? Wa(e, a.dayOfWeek, n) : Le(a) ? n.isAfter(a.before, a.after) ? Dt(e, {
|
|
2472
2478
|
from: n.addDays(a.after, 1),
|
|
2473
2479
|
to: n.addDays(a.before, -1)
|
|
2474
2480
|
}, n) : ne(e.from, a, n) || ne(e.to, a, n) : et(a) || tt(a) ? ne(e.from, a, n) || ne(e.to, a, n) : !1)) return !0;
|
|
@@ -2487,20 +2493,20 @@ function Na(e, t) {
|
|
|
2487
2493
|
const { disabled: n, excludeDisabled: r, resetOnSelect: o, selected: a, required: s, onSelect: i } = e, [u, c] = Pe(a, i ? a : void 0), f = i ? a : u;
|
|
2488
2494
|
return {
|
|
2489
2495
|
selected: f,
|
|
2490
|
-
select: (g,
|
|
2491
|
-
const { min:
|
|
2496
|
+
select: (g, D, Y) => {
|
|
2497
|
+
const { min: M, max: F } = e;
|
|
2492
2498
|
let b;
|
|
2493
2499
|
if (g) {
|
|
2494
|
-
const y = f?.from, v = f?.to,
|
|
2495
|
-
o && (
|
|
2500
|
+
const y = f?.from, v = f?.to, p = !!y && !!v, d = !!y && !!v && t.isSameDay(y, v) && t.isSameDay(g, y);
|
|
2501
|
+
o && (p || !f?.from) ? !s && d ? b = void 0 : b = {
|
|
2496
2502
|
from: g,
|
|
2497
2503
|
to: void 0
|
|
2498
|
-
} : b = Oa(g, f,
|
|
2504
|
+
} : b = Oa(g, f, M, F, s, t);
|
|
2499
2505
|
}
|
|
2500
2506
|
return r && n && b?.from && b.to && Sa({
|
|
2501
2507
|
from: b.from,
|
|
2502
2508
|
to: b.to
|
|
2503
|
-
}, n, t) && (b.from = g, b.to = void 0), i || c(b), i?.(b, g,
|
|
2509
|
+
}, n, t) && (b.from = g, b.to = void 0), i || c(b), i?.(b, g, D, Y), b;
|
|
2504
2510
|
},
|
|
2505
2511
|
isSelected: (g) => f && te(f, g, !1, t)
|
|
2506
2512
|
};
|
|
@@ -2510,8 +2516,8 @@ function Ca(e, t) {
|
|
|
2510
2516
|
return {
|
|
2511
2517
|
selected: i,
|
|
2512
2518
|
select: (l, O, g) => {
|
|
2513
|
-
let
|
|
2514
|
-
return !r && i && i && u(l, i) && (
|
|
2519
|
+
let D = l;
|
|
2520
|
+
return !r && i && i && u(l, i) && (D = void 0), o || s(D), o?.(D, l, O, g), D;
|
|
2515
2521
|
},
|
|
2516
2522
|
isSelected: (l) => i ? u(i, l) : !1
|
|
2517
2523
|
};
|
|
@@ -2567,7 +2573,7 @@ function _a(e) {
|
|
|
2567
2573
|
}
|
|
2568
2574
|
const { components: r, formatters: o, labels: a, dateLib: s, locale: i, classNames: u } = Ne(() => {
|
|
2569
2575
|
const w = {
|
|
2570
|
-
...
|
|
2576
|
+
...It,
|
|
2571
2577
|
...t.locale
|
|
2572
2578
|
}, W = t.broadcastCalendar ? 1 : t.weekStartsOn, k = t.noonSafe && t.timeZone ? sa(t.timeZone, {
|
|
2573
2579
|
weekStartsOn: W,
|
|
@@ -2615,12 +2621,12 @@ function _a(e) {
|
|
|
2615
2621
|
...t,
|
|
2616
2622
|
today: s.today()
|
|
2617
2623
|
});
|
|
2618
|
-
const { captionLayout: c, mode: f, navLayout: l, numberOfMonths: O = 1, onDayBlur: g, onDayClick:
|
|
2624
|
+
const { captionLayout: c, mode: f, navLayout: l, numberOfMonths: O = 1, onDayBlur: g, onDayClick: D, onDayFocus: Y, onDayKeyDown: M, onDayMouseEnter: F, onDayMouseLeave: b, onNextClick: y, onPrevClick: v, showWeekNumber: p, styles: d } = t, { formatCaption: S, formatDay: N, formatMonthDropdown: E, formatWeekNumber: $, formatWeekNumberHeader: H, formatWeekdayName: A, formatYearDropdown: fe } = o, oe = wa(t, s), { days: ke, months: Oe, navStart: Ee, navEnd: Fe, previousMonth: Z, nextMonth: z, goToMonth: J } = oe, _e = Ao(ke, t, Ee, Fe, s), { isSelected: Be, select: Ie, selected: We } = Ta(t, s) ?? {}, { blur: nt, focused: rt, isFocusTarget: en, moveFocus: ot, setFocused: Se } = pa(t, oe, _e, Be ?? (() => !1), s), { labelDayButton: tn, labelGridcell: nn, labelGrid: rn, labelMonthDropdown: on, labelNav: at, labelPrevious: an, labelNext: sn, labelWeekday: un, labelWeekNumber: cn, labelWeekNumberHeader: ln, labelYearDropdown: fn } = a, dn = Ne(() => oa(s, t.ISOWeek, t.broadcastCalendar, t.today), [
|
|
2619
2625
|
s,
|
|
2620
2626
|
t.ISOWeek,
|
|
2621
2627
|
t.broadcastCalendar,
|
|
2622
2628
|
t.today
|
|
2623
|
-
]), st = f !== void 0 ||
|
|
2629
|
+
]), st = f !== void 0 || D !== void 0, He = j(() => {
|
|
2624
2630
|
Z && (J(Z), v?.(Z));
|
|
2625
2631
|
}, [
|
|
2626
2632
|
Z,
|
|
@@ -2632,17 +2638,17 @@ function _a(e) {
|
|
|
2632
2638
|
J,
|
|
2633
2639
|
z,
|
|
2634
2640
|
y
|
|
2635
|
-
]),
|
|
2636
|
-
k.preventDefault(), k.stopPropagation(), Se(w), !W.disabled && (Ie?.(w.date, W, k),
|
|
2641
|
+
]), hn = j((w, W) => (k) => {
|
|
2642
|
+
k.preventDefault(), k.stopPropagation(), Se(w), !W.disabled && (Ie?.(w.date, W, k), D?.(w.date, W, k));
|
|
2637
2643
|
}, [
|
|
2638
2644
|
Ie,
|
|
2639
|
-
|
|
2645
|
+
D,
|
|
2640
2646
|
Se
|
|
2641
|
-
]),
|
|
2647
|
+
]), mn = j((w, W) => (k) => {
|
|
2642
2648
|
Se(w), Y?.(w.date, W, k);
|
|
2643
|
-
}, [Y, Se]),
|
|
2649
|
+
}, [Y, Se]), yn = j((w, W) => (k) => {
|
|
2644
2650
|
nt(), g?.(w.date, W, k);
|
|
2645
|
-
}, [nt, g]),
|
|
2651
|
+
}, [nt, g]), vn = j((w, W) => (k) => {
|
|
2646
2652
|
const B = {
|
|
2647
2653
|
ArrowLeft: [k.shiftKey ? "month" : "day", t.dir === "rtl" ? "after" : "before"],
|
|
2648
2654
|
ArrowRight: [k.shiftKey ? "month" : "day", t.dir === "rtl" ? "before" : "after"],
|
|
@@ -2658,22 +2664,22 @@ function _a(e) {
|
|
|
2658
2664
|
const [T, L] = B[k.key];
|
|
2659
2665
|
ot(T, L);
|
|
2660
2666
|
}
|
|
2661
|
-
|
|
2667
|
+
M?.(w.date, W, k);
|
|
2662
2668
|
}, [
|
|
2663
2669
|
ot,
|
|
2664
|
-
|
|
2670
|
+
M,
|
|
2665
2671
|
t.dir
|
|
2666
|
-
]),
|
|
2672
|
+
]), gn = j((w, W) => (k) => {
|
|
2667
2673
|
F?.(w.date, W, k);
|
|
2668
|
-
}, [F]),
|
|
2674
|
+
}, [F]), bn = j((w, W) => (k) => {
|
|
2669
2675
|
b?.(w.date, W, k);
|
|
2670
|
-
}, [b]),
|
|
2676
|
+
}, [b]), wn = j((w, W) => (k) => {
|
|
2671
2677
|
const B = Number(k.target.value), T = s.setMonth(s.startOfMonth(w), B);
|
|
2672
2678
|
J(s.addMonths(T, -W));
|
|
2673
|
-
}, [s, J]),
|
|
2679
|
+
}, [s, J]), Dn = j((w, W) => (k) => {
|
|
2674
2680
|
const B = Number(k.target.value), T = s.setYear(s.startOfMonth(w), B);
|
|
2675
2681
|
J(s.addMonths(T, -W));
|
|
2676
|
-
}, [s, J]), { className:
|
|
2682
|
+
}, [s, J]), { className: Mn, style: pn } = Ne(() => ({
|
|
2677
2683
|
className: [u[h.Root], t.className].filter(Boolean).join(" "),
|
|
2678
2684
|
style: {
|
|
2679
2685
|
...d?.[h.Root],
|
|
@@ -2684,7 +2690,7 @@ function _a(e) {
|
|
|
2684
2690
|
t.className,
|
|
2685
2691
|
t.style,
|
|
2686
2692
|
d
|
|
2687
|
-
]),
|
|
2693
|
+
]), kn = $o(t), it = (w) => {
|
|
2688
2694
|
const W = d?.[h.Dropdown], k = d?.[w];
|
|
2689
2695
|
if (!(!W && !k))
|
|
2690
2696
|
return {
|
|
@@ -2698,7 +2704,7 @@ function _a(e) {
|
|
|
2698
2704
|
focused: rt,
|
|
2699
2705
|
dateLib: s
|
|
2700
2706
|
});
|
|
2701
|
-
const
|
|
2707
|
+
const On = {
|
|
2702
2708
|
dayPickerProps: t,
|
|
2703
2709
|
selected: We,
|
|
2704
2710
|
select: Ie,
|
|
@@ -2714,10 +2720,10 @@ function _a(e) {
|
|
|
2714
2720
|
labels: a,
|
|
2715
2721
|
formatters: o
|
|
2716
2722
|
};
|
|
2717
|
-
return m.createElement(
|
|
2723
|
+
return m.createElement(At.Provider, { value: On }, m.createElement(r.Root, {
|
|
2718
2724
|
rootRef: t.animate ? ut : void 0,
|
|
2719
|
-
className:
|
|
2720
|
-
style:
|
|
2725
|
+
className: Mn,
|
|
2726
|
+
style: pn,
|
|
2721
2727
|
dir: t.dir,
|
|
2722
2728
|
id: t.id,
|
|
2723
2729
|
lang: t.lang ?? i.code,
|
|
@@ -2726,7 +2732,7 @@ function _a(e) {
|
|
|
2726
2732
|
role: t.role,
|
|
2727
2733
|
"aria-label": t["aria-label"],
|
|
2728
2734
|
"aria-labelledby": t["aria-labelledby"],
|
|
2729
|
-
...
|
|
2735
|
+
...kn
|
|
2730
2736
|
}, m.createElement(r.Months, {
|
|
2731
2737
|
className: u[h.Months],
|
|
2732
2738
|
style: d?.[h.Months]
|
|
@@ -2754,7 +2760,7 @@ function _a(e) {
|
|
|
2754
2760
|
style: d?.[h.PreviousMonthButton],
|
|
2755
2761
|
tabIndex: Z ? void 0 : -1,
|
|
2756
2762
|
"aria-disabled": Z ? void 0 : !0,
|
|
2757
|
-
"aria-label":
|
|
2763
|
+
"aria-label": an(Z),
|
|
2758
2764
|
onClick: He,
|
|
2759
2765
|
"data-animated-button": t.animate ? "true" : void 0
|
|
2760
2766
|
}, m.createElement(r.Chevron, {
|
|
@@ -2775,18 +2781,18 @@ function _a(e) {
|
|
|
2775
2781
|
const B = c === "dropdown" || c === "dropdown-months" ? m.createElement(r.MonthsDropdown, {
|
|
2776
2782
|
key: "month",
|
|
2777
2783
|
className: u[h.MonthsDropdown],
|
|
2778
|
-
"aria-label":
|
|
2784
|
+
"aria-label": on(),
|
|
2779
2785
|
disabled: !!t.disableNavigation,
|
|
2780
|
-
onChange:
|
|
2786
|
+
onChange: wn(w.date, k),
|
|
2781
2787
|
options: na(w.date, Ee, Fe, o, s),
|
|
2782
2788
|
style: it(h.MonthsDropdown),
|
|
2783
2789
|
value: s.getMonth(w.date)
|
|
2784
2790
|
}) : m.createElement("span", { key: "month" }, E(w.date, s)), T = c === "dropdown" || c === "dropdown-years" ? m.createElement(r.YearsDropdown, {
|
|
2785
2791
|
key: "year",
|
|
2786
2792
|
className: u[h.YearsDropdown],
|
|
2787
|
-
"aria-label":
|
|
2793
|
+
"aria-label": fn(s.options),
|
|
2788
2794
|
disabled: !!t.disableNavigation,
|
|
2789
|
-
onChange:
|
|
2795
|
+
onChange: Dn(w.date, k),
|
|
2790
2796
|
options: aa(Ee, Fe, o, s, !!t.reverseYears),
|
|
2791
2797
|
style: it(h.YearsDropdown),
|
|
2792
2798
|
value: s.getYear(w.date)
|
|
@@ -2818,7 +2824,7 @@ function _a(e) {
|
|
|
2818
2824
|
style: d?.[h.NextMonthButton],
|
|
2819
2825
|
tabIndex: z ? void 0 : -1,
|
|
2820
2826
|
"aria-disabled": z ? void 0 : !0,
|
|
2821
|
-
"aria-label":
|
|
2827
|
+
"aria-label": sn(z),
|
|
2822
2828
|
onClick: Ae,
|
|
2823
2829
|
"data-animated-button": t.animate ? "true" : void 0
|
|
2824
2830
|
}, m.createElement(r.Chevron, {
|
|
@@ -2838,20 +2844,20 @@ function _a(e) {
|
|
|
2838
2844
|
}), m.createElement(r.MonthGrid, {
|
|
2839
2845
|
role: "grid",
|
|
2840
2846
|
"aria-multiselectable": f === "multiple" || f === "range",
|
|
2841
|
-
"aria-label":
|
|
2847
|
+
"aria-label": rn(w.date, s.options, s) || void 0,
|
|
2842
2848
|
className: u[h.MonthGrid],
|
|
2843
2849
|
style: d?.[h.MonthGrid]
|
|
2844
2850
|
}, !t.hideWeekdays && m.createElement(r.Weekdays, {
|
|
2845
2851
|
"data-animated-weekdays": t.animate ? "true" : void 0,
|
|
2846
2852
|
className: u[h.Weekdays],
|
|
2847
2853
|
style: d?.[h.Weekdays]
|
|
2848
|
-
},
|
|
2849
|
-
"aria-label":
|
|
2854
|
+
}, p && m.createElement(r.WeekNumberHeader, {
|
|
2855
|
+
"aria-label": ln(s.options),
|
|
2850
2856
|
className: u[h.WeekNumberHeader],
|
|
2851
2857
|
style: d?.[h.WeekNumberHeader],
|
|
2852
2858
|
scope: "col"
|
|
2853
|
-
}, H()),
|
|
2854
|
-
"aria-label":
|
|
2859
|
+
}, H()), dn.map((B) => m.createElement(r.Weekday, {
|
|
2860
|
+
"aria-label": un(B, s.options, s),
|
|
2855
2861
|
className: u[h.Weekday],
|
|
2856
2862
|
key: String(B),
|
|
2857
2863
|
style: d?.[h.Weekday],
|
|
@@ -2865,10 +2871,10 @@ function _a(e) {
|
|
|
2865
2871
|
key: B.weekNumber,
|
|
2866
2872
|
style: d?.[h.Week],
|
|
2867
2873
|
week: B
|
|
2868
|
-
},
|
|
2874
|
+
}, p && m.createElement(r.WeekNumber, {
|
|
2869
2875
|
week: B,
|
|
2870
2876
|
style: d?.[h.WeekNumber],
|
|
2871
|
-
"aria-label":
|
|
2877
|
+
"aria-label": cn(B.weekNumber, { locale: i }),
|
|
2872
2878
|
className: u[h.WeekNumber],
|
|
2873
2879
|
scope: "row",
|
|
2874
2880
|
role: "rowheader"
|
|
@@ -2878,16 +2884,16 @@ function _a(e) {
|
|
|
2878
2884
|
const { from: qe, to: Ge } = We;
|
|
2879
2885
|
C[Q.range_start] = !!(qe && Ge && s.isSameDay(L, qe)), C[Q.range_end] = !!(qe && Ge && s.isSameDay(L, Ge)), C[Q.range_middle] = te(We, L, !0, s);
|
|
2880
2886
|
}
|
|
2881
|
-
const
|
|
2887
|
+
const Wn = ra(C, d, t.modifiersStyles), Sn = qo(C, u, t.modifiersClassNames), Nn = !st && !C.hidden ? nn(L, C, s.options, s) : void 0;
|
|
2882
2888
|
return m.createElement(r.Day, {
|
|
2883
2889
|
key: `${T.isoDate}_${T.displayMonthId}`,
|
|
2884
2890
|
day: T,
|
|
2885
2891
|
modifiers: C,
|
|
2886
|
-
className:
|
|
2887
|
-
style:
|
|
2892
|
+
className: Sn.join(" "),
|
|
2893
|
+
style: Wn,
|
|
2888
2894
|
role: "gridcell",
|
|
2889
2895
|
"aria-selected": C.selected || void 0,
|
|
2890
|
-
"aria-label":
|
|
2896
|
+
"aria-label": Nn,
|
|
2891
2897
|
"data-day": T.isoDate,
|
|
2892
2898
|
"data-month": T.outside ? T.dateMonthId : void 0,
|
|
2893
2899
|
"data-selected": C.selected || void 0,
|
|
@@ -2904,14 +2910,14 @@ function _a(e) {
|
|
|
2904
2910
|
modifiers: C,
|
|
2905
2911
|
disabled: !C.focused && C.disabled || void 0,
|
|
2906
2912
|
"aria-disabled": C.focused && C.disabled || void 0,
|
|
2907
|
-
tabIndex:
|
|
2908
|
-
"aria-label":
|
|
2909
|
-
onClick:
|
|
2910
|
-
onBlur:
|
|
2911
|
-
onFocus:
|
|
2912
|
-
onKeyDown:
|
|
2913
|
-
onMouseEnter:
|
|
2914
|
-
onMouseLeave:
|
|
2913
|
+
tabIndex: en(T) ? 0 : -1,
|
|
2914
|
+
"aria-label": tn(L, C, s.options, s),
|
|
2915
|
+
onClick: hn(T, C),
|
|
2916
|
+
onBlur: yn(T, C),
|
|
2917
|
+
onFocus: mn(T, C),
|
|
2918
|
+
onKeyDown: vn(T, C),
|
|
2919
|
+
onMouseEnter: gn(T, C),
|
|
2920
|
+
onMouseLeave: bn(T, C)
|
|
2915
2921
|
}, N(L, s.options, s)) : !C.hidden && N(T.date, s.options, s));
|
|
2916
2922
|
}))))));
|
|
2917
2923
|
})), t.footer && m.createElement(r.Footer, {
|