@calcom/atoms 1.0.102 → 1.0.104
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/{AddressInput-YE9WpjKC.js → AddressInput-U9hkNsGY.js} +1 -1
- package/dist/{AlbyPriceComponent-PaPm6LhU.js → AlbyPriceComponent-bg65pVI3.js} +1 -1
- package/dist/{AppCard-MntOjmyg.js → AppCard-i9LOXFIp.js} +1 -1
- package/dist/{AppListCardPlatformWrapper-X0qF62a4.js → AppListCardPlatformWrapper-WFo5sj54.js} +1 -1
- package/dist/{AppListCardWebWrapper-1oIcjTSH.js → AppListCardWebWrapper-oCme3GwN.js} +1 -1
- package/dist/{AppSettingsInterface-QWf89__4.js → AppSettingsInterface-4hKNHAqi.js} +1 -1
- package/dist/{AppSettingsInterface-9GNK2lFF.js → AppSettingsInterface-QyjWqyaz.js} +1 -1
- package/dist/{AppSettingsInterface-CZo7vxrG.js → AppSettingsInterface-_88Q1KFo.js} +1 -1
- package/dist/{DateRangePicker-l0v7-7g4.js → DateRangePicker-H6yWwPbT.js} +186 -199
- package/dist/{EventTypeAppCardInterface-vQxln_Jq.js → EventTypeAppCardInterface-3FwwUZ9q.js} +4 -4
- package/dist/{EventTypeAppCardInterface-NcC7DkuV.js → EventTypeAppCardInterface-6hLind29.js} +3 -3
- package/dist/{EventTypeAppCardInterface-s2tdVznj.js → EventTypeAppCardInterface-7U4dfYQ9.js} +4 -4
- package/dist/{EventTypeAppCardInterface-8dWbRlMk.js → EventTypeAppCardInterface-7iH8Qofq.js} +4 -4
- package/dist/{EventTypeAppCardInterface-DRjWH-Oi.js → EventTypeAppCardInterface-9mq3QoSl.js} +4 -4
- package/dist/{EventTypeAppCardInterface-95KcxDGd.js → EventTypeAppCardInterface-9x_qwmrQ.js} +4 -4
- package/dist/{EventTypeAppCardInterface-QsZpj6A3.js → EventTypeAppCardInterface-ChSISAK_.js} +3 -3
- package/dist/{EventTypeAppCardInterface-6axlOb6b.js → EventTypeAppCardInterface-ESZM19SR.js} +3 -3
- package/dist/{EventTypeAppCardInterface-iXbLI1En.js → EventTypeAppCardInterface-EttHPuYw.js} +3 -3
- package/dist/{EventTypeAppCardInterface-uANDBqc5.js → EventTypeAppCardInterface-GfDraVmB.js} +3 -3
- package/dist/{EventTypeAppCardInterface-ipgNs8H3.js → EventTypeAppCardInterface-HCya2iZZ.js} +3 -3
- package/dist/{EventTypeAppCardInterface-hkjg5s7h.js → EventTypeAppCardInterface-IlPuJAjF.js} +4 -4
- package/dist/{EventTypeAppCardInterface-48DlMxTe.js → EventTypeAppCardInterface-InEwnqn3.js} +3 -3
- package/dist/{EventTypeAppCardInterface-tiWS0_7-.js → EventTypeAppCardInterface-OKO08mcb.js} +3 -3
- package/dist/{EventTypeAppCardInterface-9pi3Atnv.js → EventTypeAppCardInterface-OtgNTnav.js} +4 -4
- package/dist/{EventTypeAppCardInterface-i0lfpfoV.js → EventTypeAppCardInterface-Qj1PA9cU.js} +2 -2
- package/dist/{EventTypeAppCardInterface-0rlxrS83.js → EventTypeAppCardInterface-TnZ42_r-.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Ih6mDcpb.js → EventTypeAppCardInterface-VGP1CUwq.js} +3 -3
- package/dist/{EventTypeAppCardInterface-GasNp2lA.js → EventTypeAppCardInterface-_wl3vFrV.js} +3 -3
- package/dist/{EventTypeAppCardInterface-n22JhcDP.js → EventTypeAppCardInterface-esMda4md.js} +4 -4
- package/dist/{EventTypeAppCardInterface-jO9kYmJy.js → EventTypeAppCardInterface-esxiLBFW.js} +2 -2
- package/dist/{EventTypeAppCardInterface-khZbyxB0.js → EventTypeAppCardInterface-kgCByoiX.js} +3 -3
- package/dist/{EventTypeAppCardInterface-ot93Tt3F.js → EventTypeAppCardInterface-nFHvPXEO.js} +4 -4
- package/dist/EventTypeAppCardInterface-unRaKBxz.js +24 -0
- package/dist/{EventTypeAppCardInterface-1_cqzbF5.js → EventTypeAppCardInterface-yg7Orflw.js} +3 -3
- package/dist/{EventTypeAppCardInterface-7rCnXRDt.js → EventTypeAppCardInterface-zjQ9jQmD.js} +4 -4
- package/dist/{EventTypeAppSettingsInterface-b4CktZt2.js → EventTypeAppSettingsInterface--KUac0uo.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface--pKZQkAF.js → EventTypeAppSettingsInterface-0rhmWuVB.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-_pl5BbOS.js → EventTypeAppSettingsInterface-5WkGHvxv.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-EiNHZYQl.js → EventTypeAppSettingsInterface-At0BU0pj.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-MomTLQ9U.js → EventTypeAppSettingsInterface-HRd2MGRE.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-KczERVxP.js → EventTypeAppSettingsInterface-KGFC7UD7.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-mxtj-GgV.js → EventTypeAppSettingsInterface-Kqzd-8Jt.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-D4EgsKtQ.js → EventTypeAppSettingsInterface-VcqWAzIJ.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-lXSGhZEa.js → EventTypeAppSettingsInterface-Y3XBiDtJ.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-EISXufqa.js → EventTypeAppSettingsInterface-gyVoEWRG.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-9_Fc_lFw.js → EventTypeAppSettingsInterface-p5WuaCaB.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-YWrR8Ruw.js → EventTypeAppSettingsInterface-vAcwHAAd.js} +1 -1
- package/dist/{InstallAppButton-UsgXXf79.js → InstallAppButton-4HKMZeph.js} +1 -1
- package/dist/{InstallAppButton-J7jzBq_P.js → InstallAppButton-hGiHrdCQ.js} +1 -1
- package/dist/{InstallAppButton-E5ngs5E_.js → InstallAppButton-wAVqSUVH.js} +1 -1
- package/dist/{PhoneInput-3xozRqeH.js → PhoneInput-KF8Own7h.js} +1 -1
- package/dist/{StripePaymentForm-ZeJyYZtF.js → StripePaymentForm-WQOm2iiG.js} +1 -1
- package/dist/cal-atoms.js +1 -1
- package/dist/{index-3UJPo_Lv.js → index-KNcunfAt.js} +1 -1
- package/dist/{index-LGGFkhru.js → index-Z-lH5osF.js} +1 -1
- package/dist/{index-BD5cCCpM.js → index-ddQrFbWn.js} +62506 -62581
- package/dist/{index-FAijc5rD.js → index-obsZAW1M.js} +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +3 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts +1 -2
- package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +8 -0
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts +2 -3
- package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +6 -0
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +9 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +3 -0
- package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +5 -0
- package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +26 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +4 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +32 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +26 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getLocationValuesForDb.d.ts +12 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getLocationValuesForDb.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +20 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/getLocationValueForDb.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/getLocationValueForDb.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts.map +1 -1
- package/dist/packages/features/data-table/DataTableProvider.d.ts +3 -1
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/NumberFilterOptions.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/TextFilterOptions.d.ts.map +1 -1
- package/dist/packages/features/data-table/hooks/useSegments.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/dateRange.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/types.d.ts +8 -2
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts +96 -2
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/pages/payment.d.ts +2 -0
- package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts +4 -0
- package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/twilioProvider.d.ts +6 -2
- package/dist/packages/features/ee/workflows/lib/reminders/providers/twilioProvider.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/ContentSidMapping.d.ts +11 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/ContentSidMapping.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts +6 -0
- package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/test/twilioWebhook.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/test/twilioWebhook.test.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/Locations.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/Locations.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +9 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +5 -0
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +2 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +6 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/types.d.ts +2 -0
- package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +1 -0
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts +12 -0
- package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +9 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +2 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +9 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts +6 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +6 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +12 -0
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +9 -0
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/types/api.d.ts +0 -8
- package/dist/packages/platform/types/api.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/get-bookings.input.d.ts +1 -0
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/get-bookings.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-bookings.output.d.ts +1 -10
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-bookings.output.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
- package/dist/packages/platform/types/index.d.ts +2 -0
- package/dist/packages/platform/types/index.d.ts.map +1 -1
- package/dist/packages/platform/types/pagination/pagination.input.d.ts +9 -0
- package/dist/packages/platform/types/pagination/pagination.input.d.ts.map +1 -0
- package/dist/packages/platform/types/pagination/pagination.output.d.ts +11 -0
- package/dist/packages/platform/types/pagination/pagination.output.d.ts.map +1 -0
- package/dist/packages/prisma/zod/calvideosettings.d.ts +34 -0
- package/dist/packages/prisma/zod/calvideosettings.d.ts.map +1 -0
- package/dist/packages/prisma/zod/custom/booking.d.ts +9 -0
- package/dist/packages/prisma/zod/custom/booking.d.ts.map +1 -1
- package/dist/packages/prisma/zod/custom/eventtype.d.ts +20 -0
- package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/delegationcredential.d.ts +6 -0
- package/dist/packages/prisma/zod/delegationcredential.d.ts.map +1 -1
- package/dist/packages/prisma/zod/eventtype.d.ts +21 -1
- package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/filtersegment.d.ts +2 -1
- package/dist/packages/prisma/zod/filtersegment.d.ts.map +1 -1
- package/dist/packages/prisma/zod/index.d.ts +4 -0
- package/dist/packages/prisma/zod/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/membership.d.ts +5 -1
- package/dist/packages/prisma/zod/membership.d.ts.map +1 -1
- package/dist/packages/prisma/zod/role.d.ts +42 -0
- package/dist/packages/prisma/zod/role.d.ts.map +1 -0
- package/dist/packages/prisma/zod/rolepermission.d.ts +31 -0
- package/dist/packages/prisma/zod/rolepermission.d.ts.map +1 -0
- package/dist/packages/prisma/zod/selectedcalendar.d.ts +12 -0
- package/dist/packages/prisma/zod/selectedcalendar.d.ts.map +1 -1
- package/dist/packages/prisma/zod/task.d.ts +2 -2
- package/dist/packages/prisma/zod/team.d.ts +2 -1
- package/dist/packages/prisma/zod/team.d.ts.map +1 -1
- package/dist/packages/prisma/zod/user.d.ts +2 -1
- package/dist/packages/prisma/zod/user.d.ts.map +1 -1
- package/dist/packages/prisma/zod/userfiltersegmentpreference.d.ts +35 -0
- package/dist/packages/prisma/zod/userfiltersegmentpreference.d.ts.map +1 -0
- package/dist/packages/prisma/zod-utils.d.ts +48 -0
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +8968 -660
- package/dist/packages/trpc/react/hooks/__tests__/preserveLocalTime.test.d.ts +2 -0
- package/dist/packages/trpc/react/hooks/__tests__/preserveLocalTime.test.d.ts.map +1 -0
- package/dist/packages/trpc/react/hooks/useUserTimePreferences.d.ts +7 -0
- package/dist/packages/trpc/react/hooks/useUserTimePreferences.d.ts.map +1 -0
- package/dist/packages/trpc/react/shared.d.ts +1 -1
- package/dist/packages/trpc/react/shared.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +88 -0
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/{useIsAppEnabled-ytiPxn9-.js → useIsAppEnabled-AS-kT_uQ.js} +1 -1
- package/package.json +3 -3
- package/dist/EventTypeAppCardInterface-zfmf1-zD.js +0 -24
- package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.d.ts +0 -3
- package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.d.ts.map +0 -1
- package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.test.d.ts +0 -2
- package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.test.d.ts.map +0 -1
- package/dist/packages/prisma/zod/platformmanagedorganization.d.ts +0 -26
- package/dist/packages/prisma/zod/platformmanagedorganization.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as d, jsxs as O, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { M as J, av as Ye, aw as Fe, N as Le, ax as Dt, ay as Mt, r as _t, az as kt } from "./index-
|
|
2
|
+
import { M as J, av as Ye, aw as Fe, N as Le, ax as Dt, ay as Mt, r as _t, az as kt } from "./index-ddQrFbWn.js";
|
|
3
3
|
import { createContext as q, forwardRef as Nt, useContext as Q, useState as K, useEffect as ie, useLayoutEffect as xt, useRef as Pt } from "react";
|
|
4
4
|
function M(e) {
|
|
5
5
|
const t = Object.prototype.toString.call(e);
|
|
@@ -1227,30 +1227,30 @@ function Nn(e, t, n) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
const xn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Pn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, On = /^'([^]*?)'?$/, Cn = /''/g, Sn = /[a-zA-Z]/;
|
|
1229
1229
|
function E(e, t, n) {
|
|
1230
|
-
var u, h, m, f,
|
|
1231
|
-
const a = Z(), r = (n == null ? void 0 : n.locale) ?? a.locale ?? $e, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((h = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((f = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((
|
|
1230
|
+
var u, h, m, f, y, D, w, N;
|
|
1231
|
+
const a = Z(), r = (n == null ? void 0 : n.locale) ?? a.locale ?? $e, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((h = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((f = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((D = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : D.weekStartsOn) ?? a.weekStartsOn ?? ((N = (w = a.locale) == null ? void 0 : w.options) == null ? void 0 : N.weekStartsOn) ?? 0, s = M(e);
|
|
1232
1232
|
if (!Ft(s))
|
|
1233
1233
|
throw new RangeError("Invalid time value");
|
|
1234
|
-
let l = t.match(Pn).map((
|
|
1235
|
-
const x =
|
|
1234
|
+
let l = t.match(Pn).map((p) => {
|
|
1235
|
+
const x = p[0];
|
|
1236
1236
|
if (x === "p" || x === "P") {
|
|
1237
1237
|
const j = gn[x];
|
|
1238
|
-
return j(
|
|
1238
|
+
return j(p, r.formatLong);
|
|
1239
1239
|
}
|
|
1240
|
-
return
|
|
1241
|
-
}).join("").match(xn).map((
|
|
1242
|
-
if (
|
|
1240
|
+
return p;
|
|
1241
|
+
}).join("").match(xn).map((p) => {
|
|
1242
|
+
if (p === "''")
|
|
1243
1243
|
return { isToken: !1, value: "'" };
|
|
1244
|
-
const x =
|
|
1244
|
+
const x = p[0];
|
|
1245
1245
|
if (x === "'")
|
|
1246
|
-
return { isToken: !1, value: Wn(
|
|
1246
|
+
return { isToken: !1, value: Wn(p) };
|
|
1247
1247
|
if (Ee[x])
|
|
1248
|
-
return { isToken: !0, value:
|
|
1248
|
+
return { isToken: !0, value: p };
|
|
1249
1249
|
if (x.match(Sn))
|
|
1250
1250
|
throw new RangeError(
|
|
1251
1251
|
"Format string contains an unescaped latin alphabet character `" + x + "`"
|
|
1252
1252
|
);
|
|
1253
|
-
return { isToken: !1, value:
|
|
1253
|
+
return { isToken: !1, value: p };
|
|
1254
1254
|
});
|
|
1255
1255
|
r.localize.preprocessor && (l = r.localize.preprocessor(s, l));
|
|
1256
1256
|
const c = {
|
|
@@ -1258,10 +1258,10 @@ function E(e, t, n) {
|
|
|
1258
1258
|
weekStartsOn: i,
|
|
1259
1259
|
locale: r
|
|
1260
1260
|
};
|
|
1261
|
-
return l.map((
|
|
1262
|
-
if (!
|
|
1263
|
-
return
|
|
1264
|
-
const x =
|
|
1261
|
+
return l.map((p) => {
|
|
1262
|
+
if (!p.isToken)
|
|
1263
|
+
return p.value;
|
|
1264
|
+
const x = p.value;
|
|
1265
1265
|
(!(n != null && n.useAdditionalWeekYearTokens) && _n(x) || !(n != null && n.useAdditionalDayOfYearTokens) && Mn(x)) && kn(x, t, String(e));
|
|
1266
1266
|
const j = Ee[x[0]];
|
|
1267
1267
|
return j(s, x, r.localize, c);
|
|
@@ -1318,15 +1318,15 @@ function je(e, t) {
|
|
|
1318
1318
|
const n = M(e);
|
|
1319
1319
|
return isNaN(+n) ? W(e, NaN) : (n.setFullYear(t), n);
|
|
1320
1320
|
}
|
|
1321
|
-
var
|
|
1322
|
-
return
|
|
1321
|
+
var b = function() {
|
|
1322
|
+
return b = Object.assign || function(t) {
|
|
1323
1323
|
for (var n, a = 1, r = arguments.length; a < r; a++) {
|
|
1324
1324
|
n = arguments[a];
|
|
1325
1325
|
for (var o in n)
|
|
1326
1326
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1327
1327
|
}
|
|
1328
1328
|
return t;
|
|
1329
|
-
},
|
|
1329
|
+
}, b.apply(this, arguments);
|
|
1330
1330
|
};
|
|
1331
1331
|
function In(e, t) {
|
|
1332
1332
|
var n = {};
|
|
@@ -1474,28 +1474,28 @@ function na(e) {
|
|
|
1474
1474
|
s !== "buttons" && (!o || !i) && (s = "buttons");
|
|
1475
1475
|
var l;
|
|
1476
1476
|
(se(n) || ee(n) || te(n)) && (l = n.onSelect);
|
|
1477
|
-
var c =
|
|
1477
|
+
var c = b(b(b({}, a), n), { captionLayout: s, classNames: b(b({}, a.classNames), n.classNames), components: b({}, n.components), formatters: b(b({}, a.formatters), n.formatters), fromDate: o, labels: b(b({}, a.labels), n.labels), mode: n.mode || a.mode, modifiers: b(b({}, a.modifiers), n.modifiers), modifiersClassNames: b(b({}, a.modifiersClassNames), n.modifiersClassNames), onSelect: l, styles: b(b({}, a.styles), n.styles), toDate: i });
|
|
1478
1478
|
return d(tt.Provider, { value: c, children: e.children });
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function k() {
|
|
1481
1481
|
var e = Q(tt);
|
|
1482
1482
|
if (!e)
|
|
1483
1483
|
throw new Error("useDayPicker must be used within a DayPickerProvider.");
|
|
1484
1484
|
return e;
|
|
1485
1485
|
}
|
|
1486
1486
|
function nt(e) {
|
|
1487
|
-
var t =
|
|
1487
|
+
var t = k(), n = t.locale, a = t.classNames, r = t.styles, o = t.formatters.formatCaption;
|
|
1488
1488
|
return d("div", { className: a.caption_label, style: r.caption_label, "aria-live": "polite", role: "presentation", id: e.id, children: o(e.displayMonth, { locale: n }) });
|
|
1489
1489
|
}
|
|
1490
1490
|
function aa(e) {
|
|
1491
|
-
return d("svg",
|
|
1491
|
+
return d("svg", b({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: d("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
1492
1492
|
}
|
|
1493
1493
|
function at(e) {
|
|
1494
|
-
var t, n, a = e.onChange, r = e.value, o = e.children, i = e.caption, s = e.className, l = e.style, c =
|
|
1494
|
+
var t, n, a = e.onChange, r = e.value, o = e.children, i = e.caption, s = e.className, l = e.style, c = k(), u = (n = (t = c.components) === null || t === void 0 ? void 0 : t.IconDropdown) !== null && n !== void 0 ? n : aa;
|
|
1495
1495
|
return O("div", { className: s, style: l, children: [d("span", { className: c.classNames.vhidden, children: e["aria-label"] }), d("select", { name: e.name, "aria-label": e["aria-label"], className: c.classNames.dropdown, style: c.styles.dropdown, value: r, onChange: a, children: o }), O("div", { className: c.classNames.caption_label, style: c.styles.caption_label, "aria-hidden": "true", children: [i, d(u, { className: c.classNames.dropdown_icon, style: c.styles.dropdown_icon })] })] });
|
|
1496
1496
|
}
|
|
1497
1497
|
function ra(e) {
|
|
1498
|
-
var t, n =
|
|
1498
|
+
var t, n = k(), a = n.fromDate, r = n.toDate, o = n.styles, i = n.locale, s = n.formatters.formatMonthCaption, l = n.classNames, c = n.components, u = n.labels.labelMonthDropdown;
|
|
1499
1499
|
if (!a)
|
|
1500
1500
|
return d(T, {});
|
|
1501
1501
|
if (!r)
|
|
@@ -1507,28 +1507,28 @@ function ra(e) {
|
|
|
1507
1507
|
else
|
|
1508
1508
|
for (var m = S(/* @__PURE__ */ new Date()), f = 0; f <= 11; f++)
|
|
1509
1509
|
h.push(me(m, f));
|
|
1510
|
-
var
|
|
1511
|
-
var
|
|
1512
|
-
e.onChange(
|
|
1513
|
-
},
|
|
1514
|
-
return d(
|
|
1515
|
-
return d("option", { value:
|
|
1510
|
+
var y = function(w) {
|
|
1511
|
+
var N = Number(w.target.value), p = me(S(e.displayMonth), N);
|
|
1512
|
+
e.onChange(p);
|
|
1513
|
+
}, D = (t = c == null ? void 0 : c.Dropdown) !== null && t !== void 0 ? t : at;
|
|
1514
|
+
return d(D, { name: "months", "aria-label": u(), className: l.dropdown_month, style: o.dropdown_month, onChange: y, value: e.displayMonth.getMonth(), caption: s(e.displayMonth, { locale: i }), children: h.map(function(w) {
|
|
1515
|
+
return d("option", { value: w.getMonth(), children: s(w, { locale: i }) }, w.getMonth());
|
|
1516
1516
|
}) });
|
|
1517
1517
|
}
|
|
1518
1518
|
function oa(e) {
|
|
1519
|
-
var t, n = e.displayMonth, a =
|
|
1519
|
+
var t, n = e.displayMonth, a = k(), r = a.fromDate, o = a.toDate, i = a.locale, s = a.styles, l = a.classNames, c = a.components, u = a.formatters.formatYearCaption, h = a.labels.labelYearDropdown, m = [];
|
|
1520
1520
|
if (!r)
|
|
1521
1521
|
return d(T, {});
|
|
1522
1522
|
if (!o)
|
|
1523
1523
|
return d(T, {});
|
|
1524
|
-
for (var f = r.getFullYear(),
|
|
1525
|
-
m.push(je(Ge(/* @__PURE__ */ new Date()),
|
|
1526
|
-
var
|
|
1527
|
-
var x = je(S(n), Number(
|
|
1524
|
+
for (var f = r.getFullYear(), y = o.getFullYear(), D = f; D <= y; D++)
|
|
1525
|
+
m.push(je(Ge(/* @__PURE__ */ new Date()), D));
|
|
1526
|
+
var w = function(p) {
|
|
1527
|
+
var x = je(S(n), Number(p.target.value));
|
|
1528
1528
|
e.onChange(x);
|
|
1529
|
-
},
|
|
1530
|
-
return d(
|
|
1531
|
-
return d("option", { value:
|
|
1529
|
+
}, N = (t = c == null ? void 0 : c.Dropdown) !== null && t !== void 0 ? t : at;
|
|
1530
|
+
return d(N, { name: "years", "aria-label": h(), className: l.dropdown_year, style: s.dropdown_year, onChange: w, value: n.getFullYear(), caption: u(n, { locale: i }), children: m.map(function(p) {
|
|
1531
|
+
return d("option", { value: p.getFullYear(), children: u(p, { locale: i }) }, p.getFullYear());
|
|
1532
1532
|
}) });
|
|
1533
1533
|
}
|
|
1534
1534
|
function ia(e, t) {
|
|
@@ -1544,7 +1544,7 @@ function sa(e) {
|
|
|
1544
1544
|
return i && z(r, i) < 0 && (r = i), S(r);
|
|
1545
1545
|
}
|
|
1546
1546
|
function la() {
|
|
1547
|
-
var e =
|
|
1547
|
+
var e = k(), t = sa(e), n = ia(t, e.month), a = n[0], r = n[1], o = function(i) {
|
|
1548
1548
|
var s;
|
|
1549
1549
|
if (!e.disableNavigation) {
|
|
1550
1550
|
var l = S(i);
|
|
@@ -1582,7 +1582,7 @@ function da(e, t) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
var rt = q(void 0);
|
|
1584
1584
|
function fa(e) {
|
|
1585
|
-
var t =
|
|
1585
|
+
var t = k(), n = la(), a = n[0], r = n[1], o = ua(a, t), i = ca(a, t), s = da(a, t), l = function(h) {
|
|
1586
1586
|
return o.some(function(m) {
|
|
1587
1587
|
return Ne(h, m);
|
|
1588
1588
|
});
|
|
@@ -1606,39 +1606,39 @@ function ne() {
|
|
|
1606
1606
|
return e;
|
|
1607
1607
|
}
|
|
1608
1608
|
function He(e) {
|
|
1609
|
-
var t, n =
|
|
1609
|
+
var t, n = k(), a = n.classNames, r = n.styles, o = n.components, i = ne().goToMonth, s = function(u) {
|
|
1610
1610
|
i(Y(u, e.displayIndex ? -e.displayIndex : 0));
|
|
1611
1611
|
}, l = (t = o == null ? void 0 : o.CaptionLabel) !== null && t !== void 0 ? t : nt, c = d(l, { id: e.id, displayMonth: e.displayMonth });
|
|
1612
1612
|
return O("div", { className: a.caption_dropdowns, style: r.caption_dropdowns, children: [d("div", { className: a.vhidden, children: c }), d(ra, { onChange: s, displayMonth: e.displayMonth }), d(oa, { onChange: s, displayMonth: e.displayMonth })] });
|
|
1613
1613
|
}
|
|
1614
1614
|
function ha(e) {
|
|
1615
|
-
return d("svg",
|
|
1615
|
+
return d("svg", b({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
1616
1616
|
}
|
|
1617
1617
|
function ma(e) {
|
|
1618
|
-
return d("svg",
|
|
1618
|
+
return d("svg", b({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
|
|
1619
1619
|
}
|
|
1620
1620
|
var oe = Nt(function(e, t) {
|
|
1621
|
-
var n =
|
|
1621
|
+
var n = k(), a = n.classNames, r = n.styles, o = [a.button_reset, a.button];
|
|
1622
1622
|
e.className && o.push(e.className);
|
|
1623
|
-
var i = o.join(" "), s =
|
|
1624
|
-
return e.style && Object.assign(s, e.style), d("button",
|
|
1623
|
+
var i = o.join(" "), s = b(b({}, r.button_reset), r.button);
|
|
1624
|
+
return e.style && Object.assign(s, e.style), d("button", b({}, e, { ref: t, type: "button", className: i, style: s }));
|
|
1625
1625
|
});
|
|
1626
1626
|
function va(e) {
|
|
1627
|
-
var t, n, a =
|
|
1627
|
+
var t, n, a = k(), r = a.dir, o = a.locale, i = a.classNames, s = a.styles, l = a.labels, c = l.labelPrevious, u = l.labelNext, h = a.components;
|
|
1628
1628
|
if (!e.nextMonth && !e.previousMonth)
|
|
1629
1629
|
return d(T, {});
|
|
1630
1630
|
var m = c(e.previousMonth, { locale: o }), f = [
|
|
1631
1631
|
i.nav_button,
|
|
1632
1632
|
i.nav_button_previous
|
|
1633
|
-
].join(" "),
|
|
1633
|
+
].join(" "), y = u(e.nextMonth, { locale: o }), D = [
|
|
1634
1634
|
i.nav_button,
|
|
1635
1635
|
i.nav_button_next
|
|
1636
|
-
].join(" "),
|
|
1637
|
-
return O("div", { className: i.nav, style: s.nav, children: [!e.hidePrevious && d(oe, { name: "previous-month", "aria-label": m, className: f, style: s.nav_button_previous, disabled: !e.previousMonth, onClick: e.onPreviousClick, children: r === "rtl" ? d(
|
|
1636
|
+
].join(" "), w = (t = h == null ? void 0 : h.IconRight) !== null && t !== void 0 ? t : ma, N = (n = h == null ? void 0 : h.IconLeft) !== null && n !== void 0 ? n : ha;
|
|
1637
|
+
return O("div", { className: i.nav, style: s.nav, children: [!e.hidePrevious && d(oe, { name: "previous-month", "aria-label": m, className: f, style: s.nav_button_previous, disabled: !e.previousMonth, onClick: e.onPreviousClick, children: r === "rtl" ? d(w, { className: i.nav_icon, style: s.nav_icon }) : d(N, { className: i.nav_icon, style: s.nav_icon }) }), !e.hideNext && d(oe, { name: "next-month", "aria-label": y, className: D, style: s.nav_button_next, disabled: !e.nextMonth, onClick: e.onNextClick, children: r === "rtl" ? d(N, { className: i.nav_icon, style: s.nav_icon }) : d(w, { className: i.nav_icon, style: s.nav_icon }) })] });
|
|
1638
1638
|
}
|
|
1639
1639
|
function Ae(e) {
|
|
1640
|
-
var t =
|
|
1641
|
-
return Ne(e.displayMonth,
|
|
1640
|
+
var t = k().numberOfMonths, n = ne(), a = n.previousMonth, r = n.nextMonth, o = n.goToMonth, i = n.displayMonths, s = i.findIndex(function(y) {
|
|
1641
|
+
return Ne(e.displayMonth, y);
|
|
1642
1642
|
}), l = s === 0, c = s === i.length - 1, u = t > 1 && (l || !c), h = t > 1 && (c || !l), m = function() {
|
|
1643
1643
|
a && o(a);
|
|
1644
1644
|
}, f = function() {
|
|
@@ -1647,11 +1647,11 @@ function Ae(e) {
|
|
|
1647
1647
|
return d(va, { displayMonth: e.displayMonth, hideNext: u, hidePrevious: h, nextMonth: r, previousMonth: a, onPreviousClick: m, onNextClick: f });
|
|
1648
1648
|
}
|
|
1649
1649
|
function ya(e) {
|
|
1650
|
-
var t, n =
|
|
1650
|
+
var t, n = k(), a = n.classNames, r = n.disableNavigation, o = n.styles, i = n.captionLayout, s = n.components, l = (t = s == null ? void 0 : s.CaptionLabel) !== null && t !== void 0 ? t : nt, c;
|
|
1651
1651
|
return r ? c = d(l, { id: e.id, displayMonth: e.displayMonth }) : i === "dropdown" ? c = d(He, { displayMonth: e.displayMonth, id: e.id }) : i === "dropdown-buttons" ? c = O(T, { children: [d(He, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), d(Ae, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : c = O(T, { children: [d(l, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), d(Ae, { displayMonth: e.displayMonth, id: e.id })] }), d("div", { className: a.caption, style: o.caption, children: c });
|
|
1652
1652
|
}
|
|
1653
1653
|
function ba(e) {
|
|
1654
|
-
var t =
|
|
1654
|
+
var t = k(), n = t.footer, a = t.styles, r = t.classNames.tfoot;
|
|
1655
1655
|
return n ? d("tfoot", { className: r, style: a.tfoot, children: d("tr", { children: d("td", { colSpan: 8, children: n }) }) }) : d(T, {});
|
|
1656
1656
|
}
|
|
1657
1657
|
function ga(e, t, n) {
|
|
@@ -1662,17 +1662,17 @@ function ga(e, t, n) {
|
|
|
1662
1662
|
return r;
|
|
1663
1663
|
}
|
|
1664
1664
|
function wa() {
|
|
1665
|
-
var e =
|
|
1665
|
+
var e = k(), t = e.classNames, n = e.styles, a = e.showWeekNumber, r = e.locale, o = e.weekStartsOn, i = e.ISOWeek, s = e.formatters.formatWeekdayName, l = e.labels.labelWeekday, c = ga(r, o, i);
|
|
1666
1666
|
return O("tr", { style: n.head_row, className: t.head_row, children: [a && d("td", { style: n.head_cell, className: t.head_cell }), c.map(function(u, h) {
|
|
1667
1667
|
return d("th", { scope: "col", className: t.head_cell, style: n.head_cell, "aria-label": l(u, { locale: r }), children: s(u, { locale: r }) }, h);
|
|
1668
1668
|
})] });
|
|
1669
1669
|
}
|
|
1670
1670
|
function pa() {
|
|
1671
|
-
var e, t =
|
|
1671
|
+
var e, t = k(), n = t.classNames, a = t.styles, r = t.components, o = (e = r == null ? void 0 : r.HeadRow) !== null && e !== void 0 ? e : wa;
|
|
1672
1672
|
return d("thead", { style: a.head, className: n.head, children: d(o, {}) });
|
|
1673
1673
|
}
|
|
1674
1674
|
function Da(e) {
|
|
1675
|
-
var t =
|
|
1675
|
+
var t = k(), n = t.locale, a = t.formatters.formatDay;
|
|
1676
1676
|
return d(T, { children: a(e.date, { locale: n }) });
|
|
1677
1677
|
}
|
|
1678
1678
|
var xe = q(void 0);
|
|
@@ -1692,19 +1692,19 @@ function _a(e) {
|
|
|
1692
1692
|
var t = e.initialProps, n = e.children, a = t.selected, r = t.min, o = t.max, i = function(c, u, h) {
|
|
1693
1693
|
var m, f;
|
|
1694
1694
|
(m = t.onDayClick) === null || m === void 0 || m.call(t, c, u, h);
|
|
1695
|
-
var
|
|
1696
|
-
if (!
|
|
1697
|
-
var
|
|
1698
|
-
if (!
|
|
1699
|
-
var
|
|
1695
|
+
var y = !!(u.selected && r && (a == null ? void 0 : a.length) === r);
|
|
1696
|
+
if (!y) {
|
|
1697
|
+
var D = !!(!u.selected && o && (a == null ? void 0 : a.length) === o);
|
|
1698
|
+
if (!D) {
|
|
1699
|
+
var w = a ? et([], a, !0) : [];
|
|
1700
1700
|
if (u.selected) {
|
|
1701
|
-
var
|
|
1702
|
-
return C(c,
|
|
1701
|
+
var N = w.findIndex(function(p) {
|
|
1702
|
+
return C(c, p);
|
|
1703
1703
|
});
|
|
1704
|
-
|
|
1704
|
+
w.splice(N, 1);
|
|
1705
1705
|
} else
|
|
1706
|
-
|
|
1707
|
-
(f = t.onSelect) === null || f === void 0 || f.call(t,
|
|
1706
|
+
w.push(c);
|
|
1707
|
+
(f = t.onSelect) === null || f === void 0 || f.call(t, w, c, u, h);
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
}, s = {
|
|
@@ -1750,11 +1750,11 @@ function Na(e) {
|
|
|
1750
1750
|
return d(xa, { initialProps: e.initialProps, children: e.children });
|
|
1751
1751
|
}
|
|
1752
1752
|
function xa(e) {
|
|
1753
|
-
var t = e.initialProps, n = e.children, a = t.selected, r = a || {}, o = r.from, i = r.to, s = t.min, l = t.max, c = function(f,
|
|
1754
|
-
var
|
|
1755
|
-
(
|
|
1756
|
-
var
|
|
1757
|
-
(
|
|
1753
|
+
var t = e.initialProps, n = e.children, a = t.selected, r = a || {}, o = r.from, i = r.to, s = t.min, l = t.max, c = function(f, y, D) {
|
|
1754
|
+
var w, N;
|
|
1755
|
+
(w = t.onDayClick) === null || w === void 0 || w.call(t, f, y, D);
|
|
1756
|
+
var p = ka(f, a);
|
|
1757
|
+
(N = t.onSelect) === null || N === void 0 || N.call(t, p, f, y, D);
|
|
1758
1758
|
}, u = {
|
|
1759
1759
|
range_start: [],
|
|
1760
1760
|
range_end: [],
|
|
@@ -1823,7 +1823,7 @@ function Ta(e, t, n) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
var ot = q(void 0);
|
|
1825
1825
|
function Ya(e) {
|
|
1826
|
-
var t =
|
|
1826
|
+
var t = k(), n = Pe(), a = Ce(), r = Ta(t, n, a), o = Pa(t.modifiers), i = b(b({}, r), o);
|
|
1827
1827
|
return d(ot.Provider, { value: i, children: e.children });
|
|
1828
1828
|
}
|
|
1829
1829
|
function it() {
|
|
@@ -1911,80 +1911,80 @@ function st(e, t) {
|
|
|
1911
1911
|
week: we,
|
|
1912
1912
|
month: Y,
|
|
1913
1913
|
year: Wt,
|
|
1914
|
-
startOfWeek: function(
|
|
1915
|
-
return r.ISOWeek ? A(
|
|
1914
|
+
startOfWeek: function(w) {
|
|
1915
|
+
return r.ISOWeek ? A(w) : I(w, { locale: h, weekStartsOn: l });
|
|
1916
1916
|
},
|
|
1917
|
-
endOfWeek: function(
|
|
1918
|
-
return r.ISOWeek ? Ve(
|
|
1917
|
+
endOfWeek: function(w) {
|
|
1918
|
+
return r.ISOWeek ? Ve(w) : ke(w, { locale: h, weekStartsOn: l });
|
|
1919
1919
|
}
|
|
1920
1920
|
}, f = m[n](e, a === "after" ? 1 : -1);
|
|
1921
1921
|
a === "before" && c ? f = Tt([c, f]) : a === "after" && u && (f = Yt([u, f]));
|
|
1922
|
-
var
|
|
1922
|
+
var y = !0;
|
|
1923
1923
|
if (o) {
|
|
1924
|
-
var
|
|
1925
|
-
|
|
1924
|
+
var D = Se(f, o);
|
|
1925
|
+
y = !D.disabled && !D.hidden;
|
|
1926
1926
|
}
|
|
1927
|
-
return
|
|
1927
|
+
return y ? f : s.count > Qa ? s.lastFocused : st(f, {
|
|
1928
1928
|
moveBy: n,
|
|
1929
1929
|
direction: a,
|
|
1930
1930
|
context: r,
|
|
1931
1931
|
modifiers: o,
|
|
1932
|
-
retry:
|
|
1932
|
+
retry: b(b({}, s), { count: s.count + 1 })
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
var lt = q(void 0);
|
|
1936
1936
|
function Xa(e) {
|
|
1937
1937
|
var t = ne(), n = it(), a = K(), r = a[0], o = a[1], i = K(), s = i[0], l = i[1], c = qa(t.displayMonths, n), u = r ?? (s && t.isDateDisplayed(s)) ? s : c, h = function() {
|
|
1938
1938
|
l(r), o(void 0);
|
|
1939
|
-
}, m = function(
|
|
1940
|
-
o(
|
|
1941
|
-
}, f =
|
|
1939
|
+
}, m = function(w) {
|
|
1940
|
+
o(w);
|
|
1941
|
+
}, f = k(), y = function(w, N) {
|
|
1942
1942
|
if (r) {
|
|
1943
|
-
var
|
|
1944
|
-
moveBy:
|
|
1945
|
-
direction:
|
|
1943
|
+
var p = st(r, {
|
|
1944
|
+
moveBy: w,
|
|
1945
|
+
direction: N,
|
|
1946
1946
|
context: f,
|
|
1947
1947
|
modifiers: n
|
|
1948
1948
|
});
|
|
1949
|
-
C(r,
|
|
1949
|
+
C(r, p) || (t.goToDate(p, r), m(p));
|
|
1950
1950
|
}
|
|
1951
|
-
},
|
|
1951
|
+
}, D = {
|
|
1952
1952
|
focusedDay: r,
|
|
1953
1953
|
focusTarget: u,
|
|
1954
1954
|
blur: h,
|
|
1955
1955
|
focus: m,
|
|
1956
1956
|
focusDayAfter: function() {
|
|
1957
|
-
return
|
|
1957
|
+
return y("day", "after");
|
|
1958
1958
|
},
|
|
1959
1959
|
focusDayBefore: function() {
|
|
1960
|
-
return
|
|
1960
|
+
return y("day", "before");
|
|
1961
1961
|
},
|
|
1962
1962
|
focusWeekAfter: function() {
|
|
1963
|
-
return
|
|
1963
|
+
return y("week", "after");
|
|
1964
1964
|
},
|
|
1965
1965
|
focusWeekBefore: function() {
|
|
1966
|
-
return
|
|
1966
|
+
return y("week", "before");
|
|
1967
1967
|
},
|
|
1968
1968
|
focusMonthBefore: function() {
|
|
1969
|
-
return
|
|
1969
|
+
return y("month", "before");
|
|
1970
1970
|
},
|
|
1971
1971
|
focusMonthAfter: function() {
|
|
1972
|
-
return
|
|
1972
|
+
return y("month", "after");
|
|
1973
1973
|
},
|
|
1974
1974
|
focusYearBefore: function() {
|
|
1975
|
-
return
|
|
1975
|
+
return y("year", "before");
|
|
1976
1976
|
},
|
|
1977
1977
|
focusYearAfter: function() {
|
|
1978
|
-
return
|
|
1978
|
+
return y("year", "after");
|
|
1979
1979
|
},
|
|
1980
1980
|
focusStartOfWeek: function() {
|
|
1981
|
-
return
|
|
1981
|
+
return y("startOfWeek", "before");
|
|
1982
1982
|
},
|
|
1983
1983
|
focusEndOfWeek: function() {
|
|
1984
|
-
return
|
|
1984
|
+
return y("endOfWeek", "after");
|
|
1985
1985
|
}
|
|
1986
1986
|
};
|
|
1987
|
-
return d(lt.Provider, { value:
|
|
1987
|
+
return d(lt.Provider, { value: D, children: e.children });
|
|
1988
1988
|
}
|
|
1989
1989
|
function We() {
|
|
1990
1990
|
var e = Q(lt);
|
|
@@ -2027,71 +2027,71 @@ function ut() {
|
|
|
2027
2027
|
return e;
|
|
2028
2028
|
}
|
|
2029
2029
|
function Ua(e, t) {
|
|
2030
|
-
var n =
|
|
2031
|
-
var
|
|
2032
|
-
se(n) ? (
|
|
2033
|
-
}, j = function(
|
|
2034
|
-
var
|
|
2035
|
-
m(e), (
|
|
2036
|
-
}, le = function(
|
|
2037
|
-
var
|
|
2038
|
-
h(), (
|
|
2039
|
-
}, V = function(
|
|
2040
|
-
var
|
|
2041
|
-
(
|
|
2042
|
-
}, dt = function(
|
|
2043
|
-
var
|
|
2044
|
-
(
|
|
2045
|
-
}, ft = function(
|
|
2046
|
-
var
|
|
2047
|
-
(
|
|
2048
|
-
}, ht = function(
|
|
2049
|
-
var
|
|
2050
|
-
(
|
|
2051
|
-
}, mt = function(
|
|
2052
|
-
var
|
|
2053
|
-
(
|
|
2054
|
-
}, vt = function(
|
|
2055
|
-
var
|
|
2056
|
-
(
|
|
2057
|
-
}, yt = function(
|
|
2058
|
-
var
|
|
2059
|
-
(
|
|
2060
|
-
}, bt = function(
|
|
2061
|
-
var
|
|
2062
|
-
(
|
|
2063
|
-
}, gt = function(
|
|
2064
|
-
var
|
|
2065
|
-
(
|
|
2066
|
-
}, wt = function(
|
|
2067
|
-
var
|
|
2068
|
-
switch (
|
|
2030
|
+
var n = k(), a = ut(), r = Pe(), o = Ce(), i = We(), s = i.focusDayAfter, l = i.focusDayBefore, c = i.focusWeekAfter, u = i.focusWeekBefore, h = i.blur, m = i.focus, f = i.focusMonthBefore, y = i.focusMonthAfter, D = i.focusYearBefore, w = i.focusYearAfter, N = i.focusStartOfWeek, p = i.focusEndOfWeek, x = function(g) {
|
|
2031
|
+
var v, ue, ce, de;
|
|
2032
|
+
se(n) ? (v = a.onDayClick) === null || v === void 0 || v.call(a, e, t, g) : ee(n) ? (ue = r.onDayClick) === null || ue === void 0 || ue.call(r, e, t, g) : te(n) ? (ce = o.onDayClick) === null || ce === void 0 || ce.call(o, e, t, g) : (de = n.onDayClick) === null || de === void 0 || de.call(n, e, t, g);
|
|
2033
|
+
}, j = function(g) {
|
|
2034
|
+
var v;
|
|
2035
|
+
m(e), (v = n.onDayFocus) === null || v === void 0 || v.call(n, e, t, g);
|
|
2036
|
+
}, le = function(g) {
|
|
2037
|
+
var v;
|
|
2038
|
+
h(), (v = n.onDayBlur) === null || v === void 0 || v.call(n, e, t, g);
|
|
2039
|
+
}, V = function(g) {
|
|
2040
|
+
var v;
|
|
2041
|
+
(v = n.onDayMouseEnter) === null || v === void 0 || v.call(n, e, t, g);
|
|
2042
|
+
}, dt = function(g) {
|
|
2043
|
+
var v;
|
|
2044
|
+
(v = n.onDayMouseLeave) === null || v === void 0 || v.call(n, e, t, g);
|
|
2045
|
+
}, ft = function(g) {
|
|
2046
|
+
var v;
|
|
2047
|
+
(v = n.onDayPointerEnter) === null || v === void 0 || v.call(n, e, t, g);
|
|
2048
|
+
}, ht = function(g) {
|
|
2049
|
+
var v;
|
|
2050
|
+
(v = n.onDayPointerLeave) === null || v === void 0 || v.call(n, e, t, g);
|
|
2051
|
+
}, mt = function(g) {
|
|
2052
|
+
var v;
|
|
2053
|
+
(v = n.onDayTouchCancel) === null || v === void 0 || v.call(n, e, t, g);
|
|
2054
|
+
}, vt = function(g) {
|
|
2055
|
+
var v;
|
|
2056
|
+
(v = n.onDayTouchEnd) === null || v === void 0 || v.call(n, e, t, g);
|
|
2057
|
+
}, yt = function(g) {
|
|
2058
|
+
var v;
|
|
2059
|
+
(v = n.onDayTouchMove) === null || v === void 0 || v.call(n, e, t, g);
|
|
2060
|
+
}, bt = function(g) {
|
|
2061
|
+
var v;
|
|
2062
|
+
(v = n.onDayTouchStart) === null || v === void 0 || v.call(n, e, t, g);
|
|
2063
|
+
}, gt = function(g) {
|
|
2064
|
+
var v;
|
|
2065
|
+
(v = n.onDayKeyUp) === null || v === void 0 || v.call(n, e, t, g);
|
|
2066
|
+
}, wt = function(g) {
|
|
2067
|
+
var v;
|
|
2068
|
+
switch (g.key) {
|
|
2069
2069
|
case "ArrowLeft":
|
|
2070
|
-
|
|
2070
|
+
g.preventDefault(), g.stopPropagation(), n.dir === "rtl" ? s() : l();
|
|
2071
2071
|
break;
|
|
2072
2072
|
case "ArrowRight":
|
|
2073
|
-
|
|
2073
|
+
g.preventDefault(), g.stopPropagation(), n.dir === "rtl" ? l() : s();
|
|
2074
2074
|
break;
|
|
2075
2075
|
case "ArrowDown":
|
|
2076
|
-
|
|
2076
|
+
g.preventDefault(), g.stopPropagation(), c();
|
|
2077
2077
|
break;
|
|
2078
2078
|
case "ArrowUp":
|
|
2079
|
-
|
|
2079
|
+
g.preventDefault(), g.stopPropagation(), u();
|
|
2080
2080
|
break;
|
|
2081
2081
|
case "PageUp":
|
|
2082
|
-
|
|
2082
|
+
g.preventDefault(), g.stopPropagation(), g.shiftKey ? D() : f();
|
|
2083
2083
|
break;
|
|
2084
2084
|
case "PageDown":
|
|
2085
|
-
|
|
2085
|
+
g.preventDefault(), g.stopPropagation(), g.shiftKey ? w() : y();
|
|
2086
2086
|
break;
|
|
2087
2087
|
case "Home":
|
|
2088
|
-
|
|
2088
|
+
g.preventDefault(), g.stopPropagation(), N();
|
|
2089
2089
|
break;
|
|
2090
2090
|
case "End":
|
|
2091
|
-
|
|
2091
|
+
g.preventDefault(), g.stopPropagation(), p();
|
|
2092
2092
|
break;
|
|
2093
2093
|
}
|
|
2094
|
-
(
|
|
2094
|
+
(v = n.onDayKeyDown) === null || v === void 0 || v.call(n, e, t, g);
|
|
2095
2095
|
}, pt = {
|
|
2096
2096
|
onClick: x,
|
|
2097
2097
|
onFocus: j,
|
|
@@ -2110,7 +2110,7 @@ function Ua(e, t) {
|
|
|
2110
2110
|
return pt;
|
|
2111
2111
|
}
|
|
2112
2112
|
function Ja() {
|
|
2113
|
-
var e =
|
|
2113
|
+
var e = k(), t = ut(), n = Pe(), a = Ce(), r = se(e) ? t.selected : ee(e) ? n.selected : te(e) ? a.selected : void 0;
|
|
2114
2114
|
return r;
|
|
2115
2115
|
}
|
|
2116
2116
|
function Ka(e) {
|
|
@@ -2129,14 +2129,14 @@ function za(e, t) {
|
|
|
2129
2129
|
}), n;
|
|
2130
2130
|
}
|
|
2131
2131
|
function Za(e, t) {
|
|
2132
|
-
var n =
|
|
2132
|
+
var n = b({}, e.styles.day);
|
|
2133
2133
|
return Object.keys(t).forEach(function(a) {
|
|
2134
2134
|
var r;
|
|
2135
|
-
n =
|
|
2135
|
+
n = b(b({}, n), (r = e.modifiersStyles) === null || r === void 0 ? void 0 : r[a]);
|
|
2136
2136
|
}), n;
|
|
2137
2137
|
}
|
|
2138
2138
|
function er(e, t, n) {
|
|
2139
|
-
var a, r, o, i =
|
|
2139
|
+
var a, r, o, i = k(), s = We(), l = Ga(e, t), c = Ua(e, l), u = Ja(), h = !!(i.onDayClick || i.mode !== "default");
|
|
2140
2140
|
ie(function() {
|
|
2141
2141
|
var V;
|
|
2142
2142
|
l.outside || s.focusedDay && h && C(s.focusedDay, e) && ((V = n.current) === null || V === void 0 || V.focus());
|
|
@@ -2147,27 +2147,27 @@ function er(e, t, n) {
|
|
|
2147
2147
|
h,
|
|
2148
2148
|
l.outside
|
|
2149
2149
|
]);
|
|
2150
|
-
var m = za(i, l).join(" "), f = Za(i, l),
|
|
2150
|
+
var m = za(i, l).join(" "), f = Za(i, l), y = !!(l.outside && !i.showOutsideDays || l.hidden), D = (o = (r = i.components) === null || r === void 0 ? void 0 : r.DayContent) !== null && o !== void 0 ? o : Da, w = d(D, { date: e, displayMonth: t, activeModifiers: l }), N = {
|
|
2151
2151
|
style: f,
|
|
2152
2152
|
className: m,
|
|
2153
|
-
children:
|
|
2153
|
+
children: w,
|
|
2154
2154
|
role: "gridcell"
|
|
2155
|
-
},
|
|
2155
|
+
}, p = s.focusTarget && C(s.focusTarget, e) && !l.outside, x = s.focusedDay && C(s.focusedDay, e), j = b(b(b({}, N), (a = { disabled: l.disabled, role: "gridcell" }, a["aria-selected"] = l.selected, a.tabIndex = x || p ? 0 : -1, a)), c), le = {
|
|
2156
2156
|
isButton: h,
|
|
2157
|
-
isHidden:
|
|
2157
|
+
isHidden: y,
|
|
2158
2158
|
activeModifiers: l,
|
|
2159
2159
|
selectedDays: u,
|
|
2160
2160
|
buttonProps: j,
|
|
2161
|
-
divProps:
|
|
2161
|
+
divProps: N
|
|
2162
2162
|
};
|
|
2163
2163
|
return le;
|
|
2164
2164
|
}
|
|
2165
2165
|
function tr(e) {
|
|
2166
2166
|
var t = Pt(null), n = er(e.date, e.displayMonth, t);
|
|
2167
|
-
return n.isHidden ? d("div", { role: "gridcell" }) : n.isButton ? d(oe,
|
|
2167
|
+
return n.isHidden ? d("div", { role: "gridcell" }) : n.isButton ? d(oe, b({ name: "day", ref: t }, n.buttonProps)) : d("div", b({}, n.divProps));
|
|
2168
2168
|
}
|
|
2169
2169
|
function nr(e) {
|
|
2170
|
-
var t = e.number, n = e.dates, a =
|
|
2170
|
+
var t = e.number, n = e.dates, a = k(), r = a.onWeekNumberClick, o = a.styles, i = a.classNames, s = a.locale, l = a.labels.labelWeekNumber, c = a.formatters.formatWeekNumber, u = c(Number(t), { locale: s });
|
|
2171
2171
|
if (!r)
|
|
2172
2172
|
return d("span", { className: i.weeknumber, style: o.weeknumber, children: u });
|
|
2173
2173
|
var h = l(Number(t), { locale: s }), m = function(f) {
|
|
@@ -2176,7 +2176,7 @@ function nr(e) {
|
|
|
2176
2176
|
return d(oe, { name: "week-number", "aria-label": h, className: i.weeknumber, style: o.weeknumber, onClick: m, children: u });
|
|
2177
2177
|
}
|
|
2178
2178
|
function ar(e) {
|
|
2179
|
-
var t, n, a =
|
|
2179
|
+
var t, n, a = k(), r = a.styles, o = a.classNames, i = a.showWeekNumber, s = a.components, l = (t = s == null ? void 0 : s.Day) !== null && t !== void 0 ? t : tr, c = (n = s == null ? void 0 : s.WeekNumber) !== null && n !== void 0 ? n : nr, u;
|
|
2180
2180
|
return i && (u = d("td", { className: o.cell, style: r.cell, children: d(c, { number: e.weekNumber, dates: e.dates }) })), O("tr", { className: o.row, style: r.row, children: [u, e.dates.map(function(h) {
|
|
2181
2181
|
return d("td", { className: o.cell, style: r.cell, role: "presentation", children: d(l, { displayMonth: e.displayMonth, date: h }) }, Yn(h));
|
|
2182
2182
|
})] });
|
|
@@ -2207,16 +2207,16 @@ function rr(e, t) {
|
|
|
2207
2207
|
return n;
|
|
2208
2208
|
}
|
|
2209
2209
|
function or(e) {
|
|
2210
|
-
var t, n, a, r =
|
|
2210
|
+
var t, n, a, r = k(), o = r.locale, i = r.classNames, s = r.styles, l = r.hideHead, c = r.fixedWeeks, u = r.components, h = r.weekStartsOn, m = r.firstWeekContainsDate, f = r.ISOWeek, y = rr(e.displayMonth, {
|
|
2211
2211
|
useFixedWeeks: !!c,
|
|
2212
2212
|
ISOWeek: f,
|
|
2213
2213
|
locale: o,
|
|
2214
2214
|
weekStartsOn: h,
|
|
2215
2215
|
firstWeekContainsDate: m
|
|
2216
|
-
}),
|
|
2217
|
-
return O("table", { id: e.id, className: i.table, style: s.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!l && d(
|
|
2218
|
-
return d(
|
|
2219
|
-
}) }), d(
|
|
2216
|
+
}), D = (t = u == null ? void 0 : u.Head) !== null && t !== void 0 ? t : pa, w = (n = u == null ? void 0 : u.Row) !== null && n !== void 0 ? n : ar, N = (a = u == null ? void 0 : u.Footer) !== null && a !== void 0 ? a : ba;
|
|
2217
|
+
return O("table", { id: e.id, className: i.table, style: s.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!l && d(D, {}), d("tbody", { className: i.tbody, style: s.tbody, children: y.map(function(p) {
|
|
2218
|
+
return d(w, { displayMonth: e.displayMonth, dates: p.dates, weekNumber: p.weekNumber }, p.weekNumber);
|
|
2219
|
+
}) }), d(N, { displayMonth: e.displayMonth })] });
|
|
2220
2220
|
}
|
|
2221
2221
|
function ir() {
|
|
2222
2222
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
@@ -2234,17 +2234,17 @@ function ur(e) {
|
|
|
2234
2234
|
}, []), (t = e ?? r) !== null && t !== void 0 ? t : void 0;
|
|
2235
2235
|
}
|
|
2236
2236
|
function cr(e) {
|
|
2237
|
-
var t, n, a =
|
|
2238
|
-
r === "rtl" && (t = [f,
|
|
2239
|
-
var
|
|
2240
|
-
return O("div", { className: h.join(" "), style: m, children: [d(
|
|
2237
|
+
var t, n, a = k(), r = a.dir, o = a.classNames, i = a.styles, s = a.components, l = ne().displayMonths, c = ur(a.id ? "".concat(a.id, "-").concat(e.displayIndex) : void 0), u = a.id ? "".concat(a.id, "-grid-").concat(e.displayIndex) : void 0, h = [o.month], m = i.month, f = e.displayIndex === 0, y = e.displayIndex === l.length - 1, D = !f && !y;
|
|
2238
|
+
r === "rtl" && (t = [f, y], y = t[0], f = t[1]), f && (h.push(o.caption_start), m = b(b({}, m), i.caption_start)), y && (h.push(o.caption_end), m = b(b({}, m), i.caption_end)), D && (h.push(o.caption_between), m = b(b({}, m), i.caption_between));
|
|
2239
|
+
var w = (n = s == null ? void 0 : s.Caption) !== null && n !== void 0 ? n : ya;
|
|
2240
|
+
return O("div", { className: h.join(" "), style: m, children: [d(w, { id: c, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), d(or, { id: u, "aria-labelledby": c, displayMonth: e.displayMonth })] }, e.displayIndex);
|
|
2241
2241
|
}
|
|
2242
2242
|
function dr(e) {
|
|
2243
|
-
var t =
|
|
2243
|
+
var t = k(), n = t.classNames, a = t.styles;
|
|
2244
2244
|
return d("div", { className: n.months, style: a.months, children: e.children });
|
|
2245
2245
|
}
|
|
2246
2246
|
function fr(e) {
|
|
2247
|
-
var t, n, a = e.initialProps, r =
|
|
2247
|
+
var t, n, a = e.initialProps, r = k(), o = We(), i = ne(), s = K(!1), l = s[0], c = s[1];
|
|
2248
2248
|
ie(function() {
|
|
2249
2249
|
r.initialFocus && o.focusTarget && (l || (o.focus(o.focusTarget), c(!0)));
|
|
2250
2250
|
}, [
|
|
@@ -2256,14 +2256,14 @@ function fr(e) {
|
|
|
2256
2256
|
]);
|
|
2257
2257
|
var u = [r.classNames.root, r.className];
|
|
2258
2258
|
r.numberOfMonths > 1 && u.push(r.classNames.multiple_months), r.showWeekNumber && u.push(r.classNames.with_weeknumber);
|
|
2259
|
-
var h =
|
|
2260
|
-
return
|
|
2261
|
-
}).reduce(function(
|
|
2262
|
-
var
|
|
2263
|
-
return
|
|
2259
|
+
var h = b(b({}, r.styles.root), r.style), m = Object.keys(a).filter(function(y) {
|
|
2260
|
+
return y.startsWith("data-");
|
|
2261
|
+
}).reduce(function(y, D) {
|
|
2262
|
+
var w;
|
|
2263
|
+
return b(b({}, y), (w = {}, w[D] = a[D], w));
|
|
2264
2264
|
}, {}), f = (n = (t = a.components) === null || t === void 0 ? void 0 : t.Months) !== null && n !== void 0 ? n : dr;
|
|
2265
|
-
return d("div",
|
|
2266
|
-
return d(cr, { displayIndex:
|
|
2265
|
+
return d("div", b({ className: u.join(" "), style: h, dir: r.dir, id: r.id, nonce: a.nonce, title: a.title, lang: a.lang }, m, { children: d(f, { children: i.displayMonths.map(function(y, D) {
|
|
2266
|
+
return d(cr, { displayIndex: D, displayMonth: y }, D);
|
|
2267
2267
|
}) }) }));
|
|
2268
2268
|
}
|
|
2269
2269
|
function hr(e) {
|
|
@@ -2271,7 +2271,7 @@ function hr(e) {
|
|
|
2271
2271
|
return d(na, { initialProps: n, children: d(fa, { children: d(Va, { initialProps: n, children: d(Ma, { initialProps: n, children: d(Na, { initialProps: n, children: d(Ya, { children: d(Xa, { children: t }) }) }) }) }) }) });
|
|
2272
2272
|
}
|
|
2273
2273
|
function mr(e) {
|
|
2274
|
-
return d(hr,
|
|
2274
|
+
return d(hr, b({}, e, { children: d(fr, { initialProps: e }) }));
|
|
2275
2275
|
}
|
|
2276
2276
|
function ct({
|
|
2277
2277
|
className: e,
|
|
@@ -2348,24 +2348,11 @@ function gr({
|
|
|
2348
2348
|
if (t != null && t.endDate)
|
|
2349
2349
|
r({ startDate: f, endDate: void 0 });
|
|
2350
2350
|
else {
|
|
2351
|
-
const
|
|
2352
|
-
r({ startDate:
|
|
2351
|
+
const y = t.startDate ? f < t.startDate ? f : t.startDate : f, D = t.startDate ? f < t.startDate ? t.startDate : f : void 0;
|
|
2352
|
+
r({ startDate: y, endDate: D });
|
|
2353
2353
|
}
|
|
2354
|
-
else
|
|
2355
|
-
r({ startDate: f, endDate: f });
|
|
2356
|
-
else {
|
|
2357
|
-
const v = t.startDate.getTime(), p = t.endDate.getTime(), y = f.getTime();
|
|
2358
|
-
if (y === v || y === p)
|
|
2359
|
-
r({ startDate: f, endDate: f });
|
|
2360
|
-
else if (y < v)
|
|
2361
|
-
r({ startDate: f, endDate: t.endDate });
|
|
2362
|
-
else if (y > p)
|
|
2363
|
-
r({ startDate: t.startDate, endDate: f });
|
|
2364
|
-
else {
|
|
2365
|
-
const k = y - v, D = p - y;
|
|
2366
|
-
k < D ? r({ startDate: f, endDate: t.endDate }) : r({ startDate: t.startDate, endDate: f });
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2354
|
+
else
|
|
2355
|
+
t.startDate ? t.endDate ? f.getTime() === t.startDate.getTime() || f.getTime() === t.endDate.getTime() ? r({ startDate: f, endDate: void 0 }) : f < t.startDate ? r({ startDate: f, endDate: void 0 }) : r({ startDate: t.startDate, endDate: f }) : f < t.startDate ? r({ startDate: f, endDate: t.startDate }) : r({ startDate: t.startDate, endDate: f }) : r({ startDate: f, endDate: void 0 });
|
|
2369
2356
|
}
|
|
2370
2357
|
const m = /* @__PURE__ */ d(
|
|
2371
2358
|
ct,
|