@calcom/atoms 1.0.98 → 1.0.100
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-IC5bCyoy.js → AddressInput-VvdGgcFY.js} +1 -1
- package/dist/{AlbyPriceComponent-RbsIVvlh.js → AlbyPriceComponent-qwBpyj1u.js} +10 -10
- package/dist/{AppCard-FF41DY1a.js → AppCard-IYwXZB0q.js} +11 -11
- package/dist/{AppListCardPlatformWrapper-qAgUYfWp.js → AppListCardPlatformWrapper-pjMdLapD.js} +1 -1
- package/dist/{AppListCardWebWrapper-FacP6t6u.js → AppListCardWebWrapper-rJLH8pLc.js} +18 -18
- package/dist/{AppSettingsInterface-X8HiYPXB.js → AppSettingsInterface-TZgHhVIG.js} +4 -4
- package/dist/{AppSettingsInterface-5aVK9oxc.js → AppSettingsInterface-XSfKeLus.js} +1 -1
- package/dist/{AppSettingsInterface-cgBxDPwm.js → AppSettingsInterface-aWE1OufI.js} +1 -1
- package/dist/{DateRangePicker-tS970hSY.js → DateRangePicker-Dz4TzJmd.js} +389 -372
- package/dist/{EventTypeAppCardInterface-ZMkMx3UO.js → EventTypeAppCardInterface-0Uf1T3ux.js} +4 -4
- package/dist/{EventTypeAppCardInterface-jbPxMcQe.js → EventTypeAppCardInterface-0XhzgCDg.js} +10 -10
- package/dist/{EventTypeAppCardInterface-arvxbglS.js → EventTypeAppCardInterface-1Bx9eMoL.js} +4 -4
- package/dist/{EventTypeAppCardInterface-XN7zHp-t.js → EventTypeAppCardInterface-1ztuB1hs.js} +8 -8
- package/dist/{EventTypeAppCardInterface-OxpGqa5x.js → EventTypeAppCardInterface-5dEv3OKA.js} +207 -167
- package/dist/{EventTypeAppCardInterface-PH8OfCXX.js → EventTypeAppCardInterface-BvImub0B.js} +4 -4
- package/dist/{EventTypeAppCardInterface-3rUyu9zT.js → EventTypeAppCardInterface-CNUqWmI2.js} +3 -3
- package/dist/{EventTypeAppCardInterface-nh4Bw0XN.js → EventTypeAppCardInterface-F9JXRTyf.js} +27 -27
- package/dist/{EventTypeAppCardInterface-a_b-apjm.js → EventTypeAppCardInterface-Gmbb6Gvh.js} +8 -8
- package/dist/{EventTypeAppCardInterface-DUuqWQYh.js → EventTypeAppCardInterface-QBKgH_Ff.js} +3 -3
- package/dist/{EventTypeAppCardInterface-1Rjwvfkf.js → EventTypeAppCardInterface-UT_z5U7K.js} +3 -3
- package/dist/{EventTypeAppCardInterface-lxH6VsWo.js → EventTypeAppCardInterface-WNKjUBra.js} +3 -3
- package/dist/{EventTypeAppCardInterface-aZlmShf_.js → EventTypeAppCardInterface-Y4mQsFNS.js} +3 -3
- package/dist/{EventTypeAppCardInterface-vr_kZwo4.js → EventTypeAppCardInterface-c5Lw9vSU.js} +15 -15
- package/dist/{EventTypeAppCardInterface-13tt-HVm.js → EventTypeAppCardInterface-dh6jC1kN.js} +3 -3
- package/dist/{EventTypeAppCardInterface-rnq5hibD.js → EventTypeAppCardInterface-dickhpVC.js} +4 -4
- package/dist/{EventTypeAppCardInterface-WjzwonkP.js → EventTypeAppCardInterface-dlnTOnM2.js} +4 -4
- package/dist/{EventTypeAppCardInterface-vk4Emhb7.js → EventTypeAppCardInterface-fBFQbEI7.js} +3 -3
- package/dist/{EventTypeAppCardInterface-SCUf-dWb.js → EventTypeAppCardInterface-fxKGCkHe.js} +4 -4
- package/dist/{EventTypeAppCardInterface-4uF6y_wC.js → EventTypeAppCardInterface-gXs2V4Se.js} +3 -3
- package/dist/{EventTypeAppCardInterface-pBJf4bSH.js → EventTypeAppCardInterface-mHtz6mF4.js} +4 -4
- package/dist/{EventTypeAppCardInterface-dQDcGngh.js → EventTypeAppCardInterface-obJvlSlU.js} +3 -3
- package/dist/{EventTypeAppCardInterface-BK11_uAd.js → EventTypeAppCardInterface-tJFzj8Ah.js} +4 -4
- package/dist/{EventTypeAppCardInterface-iL6lzKeX.js → EventTypeAppCardInterface-uXK8QTdD.js} +4 -4
- package/dist/{EventTypeAppCardInterface-NE-0Qnr2.js → EventTypeAppCardInterface-y1aVej25.js} +3 -3
- package/dist/EventTypeAppCardInterface-y3kh9WVm.js +24 -0
- package/dist/{EventTypeAppSettingsInterface-X2-1vNz-.js → EventTypeAppSettingsInterface-6il0n6Cq.js} +6 -6
- package/dist/{EventTypeAppSettingsInterface-0IuJod38.js → EventTypeAppSettingsInterface-8PKo71W5.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-e4Md8clU.js → EventTypeAppSettingsInterface-AkBUmJ5l.js} +5 -5
- package/dist/{EventTypeAppSettingsInterface-vpVd_4XZ.js → EventTypeAppSettingsInterface-LZtyw2oV.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-pGANbCQo.js → EventTypeAppSettingsInterface-LzU69UgA.js} +5 -5
- package/dist/{EventTypeAppSettingsInterface-m9wri89q.js → EventTypeAppSettingsInterface-MuzTABXE.js} +8 -8
- package/dist/{EventTypeAppSettingsInterface-jwj_jmtd.js → EventTypeAppSettingsInterface-Q07jpG4C.js} +14 -14
- package/dist/{EventTypeAppSettingsInterface-29o016tq.js → EventTypeAppSettingsInterface-TbY0pgk8.js} +9 -9
- package/dist/{EventTypeAppSettingsInterface-hxj3Cm8J.js → EventTypeAppSettingsInterface-YqwIpsZk.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-zDnztP59.js → EventTypeAppSettingsInterface-dWVs0uNV.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-euX-AtKi.js → EventTypeAppSettingsInterface-fcDBa586.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-afqqqXjx.js → EventTypeAppSettingsInterface-lj3UxPsg.js} +1 -1
- package/dist/{InstallAppButton-8Okj1YKt.js → InstallAppButton-769wpv3L.js} +3 -3
- package/dist/{InstallAppButton-dU9hGCdN.js → InstallAppButton-TUQ7pKWK.js} +3 -3
- package/dist/{InstallAppButton-dy7BXSFA.js → InstallAppButton-jc8Moe67.js} +1 -1
- package/dist/{PhoneInput-nBgqJnp5.js → PhoneInput-FqfbsWsL.js} +77 -75
- package/dist/{StripePaymentForm-DOZXe-LC.js → StripePaymentForm-kZNZ2LFh.js} +18 -18
- package/dist/cal-atoms.js +18 -18
- package/dist/{framer-features-WaArUztg.js → framer-features-2CLxmdz8.js} +57 -57
- package/dist/index-0IEhbSFy.js +28 -0
- package/dist/{index-nDUrmoDr.js → index-5NHOyCIB.js} +1 -1
- package/dist/{index-f0-Ex6JM.js → index-Op-zWGFz.js} +15 -15
- package/dist/{index-XX0jWi_4.js → index-kaGA8-X2.js} +71101 -69856
- package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts +3 -3
- package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +30 -2
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -0
- package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts +16 -2
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +2 -3
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +3 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts +4 -3
- package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +12 -3
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +4 -5
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/complex-schedules.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/date-overrides.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/dynamic-group-booking.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/handleNewRecurringBooking.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/handleNewRecurringBooking.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-scheduling.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +14 -5
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewRecurringBooking.d.ts +10 -5
- package/dist/packages/features/bookings/lib/handleNewRecurringBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts +5 -2
- package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts.map +1 -1
- package/dist/packages/features/bookings/types.d.ts +1 -1
- package/dist/packages/features/bookings/types.d.ts.map +1 -1
- package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts.map +1 -1
- package/dist/packages/features/data-table/DataTableProvider.d.ts +18 -164
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTable.d.ts +2 -2
- package/dist/packages/features/data-table/components/DataTable.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTablePagination.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTableSelectionBar.d.ts +2 -2
- package/dist/packages/features/data-table/components/DataTableSelectionBar.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTableToolbar.d.ts +5 -7
- package/dist/packages/features/data-table/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/AddFilterButton.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/ColumnVisibilityButton.d.ts +1 -1
- package/dist/packages/features/data-table/components/filters/ColumnVisibilityButton.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/FilterBar.d.ts +7 -0
- package/dist/packages/features/data-table/components/filters/FilterBar.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/filters/TextFilterOptions.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/index.d.ts +2 -0
- package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/index.d.ts +1 -0
- package/dist/packages/features/data-table/components/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/DeleteSegmentDialog.d.ts +6 -0
- package/dist/packages/features/data-table/components/segment/DeleteSegmentDialog.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/segment/DuplicateSegmentDialog.d.ts +6 -0
- package/dist/packages/features/data-table/components/segment/DuplicateSegmentDialog.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts +2 -0
- package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/segment/RenameSegmentDialog.d.ts +6 -0
- package/dist/packages/features/data-table/components/segment/RenameSegmentDialog.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts +2 -0
- package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/segment/index.d.ts +7 -0
- package/dist/packages/features/data-table/components/segment/index.d.ts.map +1 -0
- package/dist/packages/features/data-table/lib/resizing.d.ts +1 -2
- package/dist/packages/features/data-table/lib/resizing.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/segments.d.ts +27 -0
- package/dist/packages/features/data-table/lib/segments.d.ts.map +1 -0
- package/dist/packages/features/data-table/lib/types.d.ts +357 -0
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/billing-service.d.ts +22 -0
- package/dist/packages/features/ee/billing/billing-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts +5 -0
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/pages/payment.d.ts +2 -1
- package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.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/actionHelperFunctions.d.ts +6 -0
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/compareReminderBodyToTemplate.d.ts +6 -0
- package/dist/packages/features/ee/workflows/lib/compareReminderBodyToTemplate.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/getAllWorkflows.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/getAllWorkflows.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +16 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/plainTextTemplates.d.ts +17 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/plainTextTemplates.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/smsReminderTemplate.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/smsReminderTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/index.d.ts +4 -4
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/index.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventCancelledTemplate.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventCancelledTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventCompletedTemplate.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventCompletedTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventReminderTemplate.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventReminderTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventRescheduledTemplate.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/whatsapp/whatsappEventRescheduledTemplate.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/compareReminderBodyToTemplate.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/test/compareReminderBodyToTemplate.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/types.d.ts +1 -0
- package/dist/packages/features/ee/workflows/lib/types.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/AddMembersWithSwitch.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/CreateEventTypeDialog.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/CreateEventTypeDialog.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.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 +29 -2
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +2 -0
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/form-builder/Components.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/ConferencingAppsViewPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/ConferencingAppsViewPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +4 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomGetEventTypes.d.ts +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomGetEventTypes.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts +59 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useConnect.d.ts +6 -4
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useDeleteCredential.d.ts +2 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useDeleteCredential.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useGetDefaultConferencingApp.d.ts +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useGetDefaultConferencingApp.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useUpdateUserDefaultConferencingApp.d.ts +2 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useUpdateUserDefaultConferencingApp.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts +8 -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 +7 -1
- 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 +4 -3
- 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 +6 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/payments/PaymentForm.d.ts +2 -2
- package/dist/packages/platform/atoms/event-types/payments/PaymentForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/payments/StripePaymentForm.d.ts +2 -2
- package/dist/packages/platform/atoms/event-types/payments/StripePaymentForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -0
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +2 -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 +2 -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 +2 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +29 -2
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +2 -4
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/packages/platform/constants/api.d.ts +1 -0
- package/dist/packages/platform/constants/api.d.ts.map +1 -1
- package/dist/packages/platform/libraries/event-types.d.ts +3 -4
- package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +2 -1
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +4 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
- 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/booking.output.d.ts +1 -0
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/seats.input.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/eventtype.d.ts +22 -0
- package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/filtersegment.d.ts +64 -0
- package/dist/packages/prisma/zod/filtersegment.d.ts.map +1 -0
- package/dist/packages/prisma/zod/index.d.ts +1 -0
- package/dist/packages/prisma/zod/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/team.d.ts +28 -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/workflowstep.d.ts +3 -0
- package/dist/packages/prisma/zod/workflowstep.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +106 -23
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +3462 -278
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +8 -0
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts.map +1 -1
- 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 +10 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/{useIsAppEnabled-QIw4ydUi.js → useIsAppEnabled-Z2j-XkyQ.js} +1 -1
- package/globals.min.css +1 -22
- package/package.json +1 -1
- package/dist/EventTypeAppCardInterface-p9huPol5.js +0 -24
- package/dist/index-Q1IEXczf.js +0 -28
- package/dist/index-iCQToj2C.js +0 -13
- package/dist/isSupportedCountry-aHJbkpx4.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { createContext as q, forwardRef as Nt, useContext as
|
|
1
|
+
import { jsx as d, jsxs as O, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import { M as K, aJ as Ye, aK as Fe, X as Le, aL as Dt, aM as Mt, r as _t, aN as kt } from "./index-kaGA8-X2.js";
|
|
3
|
+
import { createContext as q, forwardRef as Nt, useContext as X, useState as U, 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);
|
|
6
6
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -33,14 +33,14 @@ function Z() {
|
|
|
33
33
|
return Ct;
|
|
34
34
|
}
|
|
35
35
|
function I(e, t) {
|
|
36
|
-
var s, l,
|
|
37
|
-
const n = Z(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (
|
|
36
|
+
var s, l, c, u;
|
|
37
|
+
const n = Z(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, r = M(e), o = r.getDay(), i = (o < a ? 7 : 0) + o - a;
|
|
38
38
|
return r.setDate(r.getDate() - i), r.setHours(0, 0, 0, 0), r;
|
|
39
39
|
}
|
|
40
40
|
function A(e) {
|
|
41
41
|
return I(e, { weekStartsOn: 1 });
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Qe(e) {
|
|
44
44
|
const t = M(e), n = t.getFullYear(), a = W(e, 0);
|
|
45
45
|
a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
46
46
|
const r = A(a), o = W(e, 0);
|
|
@@ -71,7 +71,7 @@ function L(e, t) {
|
|
|
71
71
|
return Math.round((r - o) / Ot);
|
|
72
72
|
}
|
|
73
73
|
function St(e) {
|
|
74
|
-
const t =
|
|
74
|
+
const t = Qe(e), n = W(e, 0);
|
|
75
75
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), A(n);
|
|
76
76
|
}
|
|
77
77
|
function we(e, t) {
|
|
@@ -129,8 +129,8 @@ function Ge(e) {
|
|
|
129
129
|
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
130
130
|
}
|
|
131
131
|
function ke(e, t) {
|
|
132
|
-
var s, l,
|
|
133
|
-
const n = Z(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (
|
|
132
|
+
var s, l, c, u;
|
|
133
|
+
const n = Z(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, r = M(e), o = r.getDay(), i = (o < a ? -7 : 0) + 6 - (o - a);
|
|
134
134
|
return r.setDate(r.getDate() + i), r.setHours(23, 59, 59, 999), r;
|
|
135
135
|
}
|
|
136
136
|
function Ve(e) {
|
|
@@ -260,11 +260,11 @@ function $(e) {
|
|
|
260
260
|
return r[o];
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const Xt = {
|
|
264
264
|
narrow: ["B", "A"],
|
|
265
265
|
abbreviated: ["BC", "AD"],
|
|
266
266
|
wide: ["Before Christ", "Anno Domini"]
|
|
267
|
-
},
|
|
267
|
+
}, Qt = {
|
|
268
268
|
narrow: ["1", "2", "3", "4"],
|
|
269
269
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
270
270
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
@@ -342,7 +342,7 @@ const Qt = {
|
|
|
342
342
|
evening: "evening",
|
|
343
343
|
night: "night"
|
|
344
344
|
}
|
|
345
|
-
},
|
|
345
|
+
}, Jt = {
|
|
346
346
|
narrow: {
|
|
347
347
|
am: "a",
|
|
348
348
|
pm: "p",
|
|
@@ -373,7 +373,7 @@ const Qt = {
|
|
|
373
373
|
evening: "in the evening",
|
|
374
374
|
night: "at night"
|
|
375
375
|
}
|
|
376
|
-
},
|
|
376
|
+
}, Kt = (e, t) => {
|
|
377
377
|
const n = Number(e), a = n % 100;
|
|
378
378
|
if (a > 20 || a < 10)
|
|
379
379
|
switch (a % 10) {
|
|
@@ -385,14 +385,14 @@ const Qt = {
|
|
|
385
385
|
return n + "rd";
|
|
386
386
|
}
|
|
387
387
|
return n + "th";
|
|
388
|
-
},
|
|
389
|
-
ordinalNumber:
|
|
388
|
+
}, Ut = {
|
|
389
|
+
ordinalNumber: Kt,
|
|
390
390
|
era: $({
|
|
391
|
-
values:
|
|
391
|
+
values: Xt,
|
|
392
392
|
defaultWidth: "wide"
|
|
393
393
|
}),
|
|
394
394
|
quarter: $({
|
|
395
|
-
values:
|
|
395
|
+
values: Qt,
|
|
396
396
|
defaultWidth: "wide",
|
|
397
397
|
argumentCallback: (e) => e - 1
|
|
398
398
|
}),
|
|
@@ -407,26 +407,26 @@ const Qt = {
|
|
|
407
407
|
dayPeriod: $({
|
|
408
408
|
values: $t,
|
|
409
409
|
defaultWidth: "wide",
|
|
410
|
-
formattingValues:
|
|
410
|
+
formattingValues: Jt,
|
|
411
411
|
defaultFormattingWidth: "wide"
|
|
412
412
|
})
|
|
413
413
|
};
|
|
414
|
-
function
|
|
414
|
+
function J(e) {
|
|
415
415
|
return (t, n = {}) => {
|
|
416
416
|
const a = n.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], o = t.match(r);
|
|
417
417
|
if (!o)
|
|
418
418
|
return null;
|
|
419
|
-
const i = o[0], s = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? Zt(s, (
|
|
419
|
+
const i = o[0], s = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? Zt(s, (h) => h.test(i)) : (
|
|
420
420
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
421
|
-
zt(s, (
|
|
421
|
+
zt(s, (h) => h.test(i))
|
|
422
422
|
);
|
|
423
|
-
let
|
|
424
|
-
|
|
423
|
+
let c;
|
|
424
|
+
c = e.valueCallback ? e.valueCallback(l) : l, c = n.valueCallback ? (
|
|
425
425
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
426
|
-
n.valueCallback(
|
|
427
|
-
) :
|
|
426
|
+
n.valueCallback(c)
|
|
427
|
+
) : c;
|
|
428
428
|
const u = t.slice(i.length);
|
|
429
|
-
return { value:
|
|
429
|
+
return { value: c, rest: u };
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
function zt(e, t) {
|
|
@@ -526,32 +526,32 @@ const tn = /^(\d+)(th|st|nd|rd)?/i, nn = /\d+/i, an = {
|
|
|
526
526
|
parsePattern: nn,
|
|
527
527
|
valueCallback: (e) => parseInt(e, 10)
|
|
528
528
|
}),
|
|
529
|
-
era:
|
|
529
|
+
era: J({
|
|
530
530
|
matchPatterns: an,
|
|
531
531
|
defaultMatchWidth: "wide",
|
|
532
532
|
parsePatterns: rn,
|
|
533
533
|
defaultParseWidth: "any"
|
|
534
534
|
}),
|
|
535
|
-
quarter:
|
|
535
|
+
quarter: J({
|
|
536
536
|
matchPatterns: on,
|
|
537
537
|
defaultMatchWidth: "wide",
|
|
538
538
|
parsePatterns: sn,
|
|
539
539
|
defaultParseWidth: "any",
|
|
540
540
|
valueCallback: (e) => e + 1
|
|
541
541
|
}),
|
|
542
|
-
month:
|
|
542
|
+
month: J({
|
|
543
543
|
matchPatterns: ln,
|
|
544
544
|
defaultMatchWidth: "wide",
|
|
545
545
|
parsePatterns: un,
|
|
546
546
|
defaultParseWidth: "any"
|
|
547
547
|
}),
|
|
548
|
-
day:
|
|
548
|
+
day: J({
|
|
549
549
|
matchPatterns: cn,
|
|
550
550
|
defaultMatchWidth: "wide",
|
|
551
551
|
parsePatterns: dn,
|
|
552
552
|
defaultParseWidth: "any"
|
|
553
553
|
}),
|
|
554
|
-
dayPeriod:
|
|
554
|
+
dayPeriod: J({
|
|
555
555
|
matchPatterns: fn,
|
|
556
556
|
defaultMatchWidth: "any",
|
|
557
557
|
parsePatterns: hn,
|
|
@@ -562,7 +562,7 @@ const tn = /^(\d+)(th|st|nd|rd)?/i, nn = /\d+/i, an = {
|
|
|
562
562
|
formatDistance: It,
|
|
563
563
|
formatLong: Ht,
|
|
564
564
|
formatRelative: qt,
|
|
565
|
-
localize:
|
|
565
|
+
localize: Ut,
|
|
566
566
|
match: mn,
|
|
567
567
|
options: {
|
|
568
568
|
weekStartsOn: 0,
|
|
@@ -573,25 +573,25 @@ function vn(e) {
|
|
|
573
573
|
const t = M(e);
|
|
574
574
|
return L(t, Ge(t)) + 1;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Je(e) {
|
|
577
577
|
const t = M(e), n = +A(t) - +St(t);
|
|
578
578
|
return Math.round(n / De) + 1;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
var u,
|
|
582
|
-
const n = M(e), a = n.getFullYear(), r = Z(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((
|
|
580
|
+
function Ke(e, t) {
|
|
581
|
+
var u, h, m, f;
|
|
582
|
+
const n = M(e), a = n.getFullYear(), r = Z(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = W(e, 0);
|
|
583
583
|
i.setFullYear(a + 1, 0, o), i.setHours(0, 0, 0, 0);
|
|
584
584
|
const s = I(i, t), l = W(e, 0);
|
|
585
585
|
l.setFullYear(a, 0, o), l.setHours(0, 0, 0, 0);
|
|
586
|
-
const
|
|
587
|
-
return n.getTime() >= s.getTime() ? a + 1 : n.getTime() >=
|
|
586
|
+
const c = I(l, t);
|
|
587
|
+
return n.getTime() >= s.getTime() ? a + 1 : n.getTime() >= c.getTime() ? a : a - 1;
|
|
588
588
|
}
|
|
589
589
|
function yn(e, t) {
|
|
590
|
-
var s, l,
|
|
591
|
-
const n = Z(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (
|
|
590
|
+
var s, l, c, u;
|
|
591
|
+
const n = Z(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, r = Ke(e, t), o = W(e, 0);
|
|
592
592
|
return o.setFullYear(r, 0, a), o.setHours(0, 0, 0, 0), I(o, t);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ue(e, t) {
|
|
595
595
|
const n = M(e), a = +I(n, t) - +yn(n, t);
|
|
596
596
|
return Math.round(a / De) + 1;
|
|
597
597
|
}
|
|
@@ -653,7 +653,7 @@ const B = {
|
|
|
653
653
|
);
|
|
654
654
|
return _(r, t.length);
|
|
655
655
|
}
|
|
656
|
-
},
|
|
656
|
+
}, Q = {
|
|
657
657
|
am: "am",
|
|
658
658
|
pm: "pm",
|
|
659
659
|
midnight: "midnight",
|
|
@@ -688,7 +688,7 @@ const B = {
|
|
|
688
688
|
},
|
|
689
689
|
// Local week-numbering year
|
|
690
690
|
Y: function(e, t, n, a) {
|
|
691
|
-
const r =
|
|
691
|
+
const r = Ke(e, a), o = r > 0 ? r : 1 - r;
|
|
692
692
|
if (t === "YY") {
|
|
693
693
|
const i = o % 100;
|
|
694
694
|
return _(i, 2);
|
|
@@ -697,7 +697,7 @@ const B = {
|
|
|
697
697
|
},
|
|
698
698
|
// ISO week-numbering year
|
|
699
699
|
R: function(e, t) {
|
|
700
|
-
const n =
|
|
700
|
+
const n = Qe(e);
|
|
701
701
|
return _(n, t.length);
|
|
702
702
|
},
|
|
703
703
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -820,12 +820,12 @@ const B = {
|
|
|
820
820
|
},
|
|
821
821
|
// Local week of year
|
|
822
822
|
w: function(e, t, n, a) {
|
|
823
|
-
const r =
|
|
823
|
+
const r = Ue(e, a);
|
|
824
824
|
return t === "wo" ? n.ordinalNumber(r, { unit: "week" }) : _(r, t.length);
|
|
825
825
|
},
|
|
826
826
|
// ISO week of year
|
|
827
827
|
I: function(e, t, n) {
|
|
828
|
-
const a =
|
|
828
|
+
const a = Je(e);
|
|
829
829
|
return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) : _(a, t.length);
|
|
830
830
|
},
|
|
831
831
|
// Day of the month
|
|
@@ -997,7 +997,7 @@ const B = {
|
|
|
997
997
|
b: function(e, t, n) {
|
|
998
998
|
const a = e.getHours();
|
|
999
999
|
let r;
|
|
1000
|
-
switch (a === 12 ? r =
|
|
1000
|
+
switch (a === 12 ? r = Q.noon : a === 0 ? r = Q.midnight : r = a / 12 >= 1 ? "pm" : "am", t) {
|
|
1001
1001
|
case "b":
|
|
1002
1002
|
case "bb":
|
|
1003
1003
|
return n.dayPeriod(r, {
|
|
@@ -1026,7 +1026,7 @@ const B = {
|
|
|
1026
1026
|
B: function(e, t, n) {
|
|
1027
1027
|
const a = e.getHours();
|
|
1028
1028
|
let r;
|
|
1029
|
-
switch (a >= 17 ? r =
|
|
1029
|
+
switch (a >= 17 ? r = Q.evening : a >= 12 ? r = Q.afternoon : a >= 4 ? r = Q.morning : r = Q.night, t) {
|
|
1030
1030
|
case "B":
|
|
1031
1031
|
case "BB":
|
|
1032
1032
|
case "BBB":
|
|
@@ -1227,44 +1227,44 @@ 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,
|
|
1231
|
-
const a = Z(), r = (n == null ? void 0 : n.locale) ?? a.locale ?? $e, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((
|
|
1230
|
+
var u, h, m, f, v, p, y, k;
|
|
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) ?? ((p = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : p.weekStartsOn) ?? a.weekStartsOn ?? ((k = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : k.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((D) => {
|
|
1235
|
+
const x = D[0];
|
|
1236
1236
|
if (x === "p" || x === "P") {
|
|
1237
1237
|
const j = gn[x];
|
|
1238
|
-
return j(
|
|
1238
|
+
return j(D, r.formatLong);
|
|
1239
1239
|
}
|
|
1240
|
-
return
|
|
1241
|
-
}).join("").match(xn).map((
|
|
1242
|
-
if (
|
|
1240
|
+
return D;
|
|
1241
|
+
}).join("").match(xn).map((D) => {
|
|
1242
|
+
if (D === "''")
|
|
1243
1243
|
return { isToken: !1, value: "'" };
|
|
1244
|
-
const x =
|
|
1244
|
+
const x = D[0];
|
|
1245
1245
|
if (x === "'")
|
|
1246
|
-
return { isToken: !1, value: Wn(
|
|
1246
|
+
return { isToken: !1, value: Wn(D) };
|
|
1247
1247
|
if (Ee[x])
|
|
1248
|
-
return { isToken: !0, value:
|
|
1248
|
+
return { isToken: !0, value: D };
|
|
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: D };
|
|
1254
1254
|
});
|
|
1255
1255
|
r.localize.preprocessor && (l = r.localize.preprocessor(s, l));
|
|
1256
|
-
const
|
|
1256
|
+
const c = {
|
|
1257
1257
|
firstWeekContainsDate: o,
|
|
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((D) => {
|
|
1262
|
+
if (!D.isToken)
|
|
1263
|
+
return D.value;
|
|
1264
|
+
const x = D.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
|
-
return j(s, x, r.localize,
|
|
1267
|
+
return j(s, x, r.localize, c);
|
|
1268
1268
|
}).join("");
|
|
1269
1269
|
}
|
|
1270
1270
|
function Wn(e) {
|
|
@@ -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 g = function() {
|
|
1322
|
+
return g = 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
|
+
}, g.apply(this, arguments);
|
|
1330
1330
|
};
|
|
1331
1331
|
function In(e, t) {
|
|
1332
1332
|
var n = {};
|
|
@@ -1410,28 +1410,28 @@ function An(e) {
|
|
|
1410
1410
|
function qn(e, t) {
|
|
1411
1411
|
return E(e, "cccccc", t);
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Xn(e, t) {
|
|
1414
1414
|
return E(e, "yyyy", t);
|
|
1415
1415
|
}
|
|
1416
|
-
var
|
|
1416
|
+
var Qn = /* @__PURE__ */ Object.freeze({
|
|
1417
1417
|
__proto__: null,
|
|
1418
1418
|
formatCaption: Bn,
|
|
1419
1419
|
formatDay: jn,
|
|
1420
1420
|
formatMonthCaption: Hn,
|
|
1421
1421
|
formatWeekNumber: An,
|
|
1422
1422
|
formatWeekdayName: qn,
|
|
1423
|
-
formatYearCaption:
|
|
1423
|
+
formatYearCaption: Xn
|
|
1424
1424
|
}), Gn = function(e, t, n) {
|
|
1425
1425
|
return E(e, "do MMMM (EEEE)", n);
|
|
1426
1426
|
}, Vn = function() {
|
|
1427
1427
|
return "Month: ";
|
|
1428
1428
|
}, $n = function() {
|
|
1429
1429
|
return "Go to next month";
|
|
1430
|
-
},
|
|
1430
|
+
}, Jn = function() {
|
|
1431
1431
|
return "Go to previous month";
|
|
1432
|
-
},
|
|
1432
|
+
}, Kn = function(e, t) {
|
|
1433
1433
|
return E(e, "cccc", t);
|
|
1434
|
-
},
|
|
1434
|
+
}, Un = function(e) {
|
|
1435
1435
|
return "Week n. ".concat(e);
|
|
1436
1436
|
}, zn = function() {
|
|
1437
1437
|
return "Year: ";
|
|
@@ -1440,9 +1440,9 @@ var Xn = /* @__PURE__ */ Object.freeze({
|
|
|
1440
1440
|
labelDay: Gn,
|
|
1441
1441
|
labelMonthDropdown: Vn,
|
|
1442
1442
|
labelNext: $n,
|
|
1443
|
-
labelPrevious:
|
|
1444
|
-
labelWeekNumber:
|
|
1445
|
-
labelWeekday:
|
|
1443
|
+
labelPrevious: Jn,
|
|
1444
|
+
labelWeekNumber: Un,
|
|
1445
|
+
labelWeekday: Kn,
|
|
1446
1446
|
labelYearDropdown: zn
|
|
1447
1447
|
});
|
|
1448
1448
|
function ea() {
|
|
@@ -1450,7 +1450,7 @@ function ea() {
|
|
|
1450
1450
|
return {
|
|
1451
1451
|
captionLayout: e,
|
|
1452
1452
|
classNames: t,
|
|
1453
|
-
formatters:
|
|
1453
|
+
formatters: Qn,
|
|
1454
1454
|
labels: Zn,
|
|
1455
1455
|
locale: n,
|
|
1456
1456
|
modifiersClassNames: a,
|
|
@@ -1474,77 +1474,77 @@ 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
|
|
1478
|
-
return
|
|
1477
|
+
var c = g(g(g({}, a), n), { captionLayout: s, classNames: g(g({}, a.classNames), n.classNames), components: g({}, n.components), formatters: g(g({}, a.formatters), n.formatters), fromDate: o, labels: g(g({}, a.labels), n.labels), mode: n.mode || a.mode, modifiers: g(g({}, a.modifiers), n.modifiers), modifiersClassNames: g(g({}, a.modifiersClassNames), n.modifiersClassNames), onSelect: l, styles: g(g({}, a.styles), n.styles), toDate: i });
|
|
1478
|
+
return d(tt.Provider, { value: c, children: e.children });
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
var e =
|
|
1480
|
+
function N() {
|
|
1481
|
+
var e = X(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 =
|
|
1488
|
-
return
|
|
1487
|
+
var t = N(), n = t.locale, a = t.classNames, r = t.styles, o = t.formatters.formatCaption;
|
|
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
|
|
1491
|
+
return d("svg", g({ 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,
|
|
1495
|
-
return O("div", { className: s, style: l, children: [
|
|
1494
|
+
var t, n, a = e.onChange, r = e.value, o = e.children, i = e.caption, s = e.className, l = e.style, c = N(), u = (n = (t = c.components) === null || t === void 0 ? void 0 : t.IconDropdown) !== null && n !== void 0 ? n : aa;
|
|
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 = N(), 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
|
-
return
|
|
1500
|
+
return d(T, {});
|
|
1501
1501
|
if (!r)
|
|
1502
|
-
return
|
|
1503
|
-
var
|
|
1502
|
+
return d(T, {});
|
|
1503
|
+
var h = [];
|
|
1504
1504
|
if (En(a, r))
|
|
1505
|
-
for (var
|
|
1506
|
-
|
|
1505
|
+
for (var m = S(a), f = a.getMonth(); f <= r.getMonth(); f++)
|
|
1506
|
+
h.push(me(m, f));
|
|
1507
1507
|
else
|
|
1508
|
-
for (var
|
|
1509
|
-
|
|
1510
|
-
var
|
|
1511
|
-
var
|
|
1512
|
-
e.onChange(
|
|
1513
|
-
},
|
|
1514
|
-
return
|
|
1515
|
-
return
|
|
1508
|
+
for (var m = S(/* @__PURE__ */ new Date()), f = 0; f <= 11; f++)
|
|
1509
|
+
h.push(me(m, f));
|
|
1510
|
+
var v = function(y) {
|
|
1511
|
+
var k = Number(y.target.value), D = me(S(e.displayMonth), k);
|
|
1512
|
+
e.onChange(D);
|
|
1513
|
+
}, p = (t = c == null ? void 0 : c.Dropdown) !== null && t !== void 0 ? t : at;
|
|
1514
|
+
return d(p, { name: "months", "aria-label": u(), className: l.dropdown_month, style: o.dropdown_month, onChange: v, value: e.displayMonth.getMonth(), caption: s(e.displayMonth, { locale: i }), children: h.map(function(y) {
|
|
1515
|
+
return d("option", { value: y.getMonth(), children: s(y, { locale: i }) }, y.getMonth());
|
|
1516
1516
|
}) });
|
|
1517
1517
|
}
|
|
1518
1518
|
function oa(e) {
|
|
1519
|
-
var t, n = e.displayMonth, a =
|
|
1519
|
+
var t, n = e.displayMonth, a = N(), 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
|
-
return
|
|
1521
|
+
return d(T, {});
|
|
1522
1522
|
if (!o)
|
|
1523
|
-
return
|
|
1524
|
-
for (var
|
|
1525
|
-
|
|
1526
|
-
var
|
|
1527
|
-
var x = je(S(n), Number(
|
|
1523
|
+
return d(T, {});
|
|
1524
|
+
for (var f = r.getFullYear(), v = o.getFullYear(), p = f; p <= v; p++)
|
|
1525
|
+
m.push(je(Ge(/* @__PURE__ */ new Date()), p));
|
|
1526
|
+
var y = function(D) {
|
|
1527
|
+
var x = je(S(n), Number(D.target.value));
|
|
1528
1528
|
e.onChange(x);
|
|
1529
|
-
},
|
|
1530
|
-
return
|
|
1531
|
-
return
|
|
1529
|
+
}, k = (t = c == null ? void 0 : c.Dropdown) !== null && t !== void 0 ? t : at;
|
|
1530
|
+
return d(k, { name: "years", "aria-label": h(), className: l.dropdown_year, style: s.dropdown_year, onChange: y, value: n.getFullYear(), caption: u(n, { locale: i }), children: m.map(function(D) {
|
|
1531
|
+
return d("option", { value: D.getFullYear(), children: u(D, { locale: i }) }, D.getFullYear());
|
|
1532
1532
|
}) });
|
|
1533
1533
|
}
|
|
1534
1534
|
function ia(e, t) {
|
|
1535
|
-
var n =
|
|
1535
|
+
var n = U(e), a = n[0], r = n[1], o = t === void 0 ? a : t;
|
|
1536
1536
|
return [o, r];
|
|
1537
1537
|
}
|
|
1538
1538
|
function sa(e) {
|
|
1539
1539
|
var t = e.month, n = e.defaultMonth, a = e.today, r = t || n || a || /* @__PURE__ */ new Date(), o = e.toDate, i = e.fromDate, s = e.numberOfMonths, l = s === void 0 ? 1 : s;
|
|
1540
1540
|
if (o && z(o, r) < 0) {
|
|
1541
|
-
var
|
|
1542
|
-
r = Y(o,
|
|
1541
|
+
var c = -1 * (l - 1);
|
|
1542
|
+
r = Y(o, c);
|
|
1543
1543
|
}
|
|
1544
1544
|
return i && z(r, i) < 0 && (r = i), S(r);
|
|
1545
1545
|
}
|
|
1546
1546
|
function la() {
|
|
1547
|
-
var e =
|
|
1547
|
+
var e = N(), 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);
|
|
@@ -1555,8 +1555,8 @@ function la() {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
function ua(e, t) {
|
|
1557
1557
|
for (var n = t.reverseMonths, a = t.numberOfMonths, r = S(e), o = S(Y(r, a)), i = z(o, r), s = [], l = 0; l < i; l++) {
|
|
1558
|
-
var
|
|
1559
|
-
s.push(
|
|
1558
|
+
var c = Y(r, l);
|
|
1559
|
+
s.push(c);
|
|
1560
1560
|
}
|
|
1561
1561
|
return n && (s = s.reverse()), s;
|
|
1562
1562
|
}
|
|
@@ -1582,77 +1582,77 @@ function da(e, t) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
var rt = q(void 0);
|
|
1584
1584
|
function fa(e) {
|
|
1585
|
-
var t =
|
|
1586
|
-
return o.some(function(
|
|
1587
|
-
return Ne(
|
|
1585
|
+
var t = N(), n = la(), a = n[0], r = n[1], o = ua(a, t), i = ca(a, t), s = da(a, t), l = function(h) {
|
|
1586
|
+
return o.some(function(m) {
|
|
1587
|
+
return Ne(h, m);
|
|
1588
1588
|
});
|
|
1589
|
-
},
|
|
1590
|
-
l(
|
|
1589
|
+
}, c = function(h, m) {
|
|
1590
|
+
l(h) || (m && Ze(h, m) ? r(Y(h, 1 + t.numberOfMonths * -1)) : r(h));
|
|
1591
1591
|
}, u = {
|
|
1592
1592
|
currentMonth: a,
|
|
1593
1593
|
displayMonths: o,
|
|
1594
1594
|
goToMonth: r,
|
|
1595
|
-
goToDate:
|
|
1595
|
+
goToDate: c,
|
|
1596
1596
|
previousMonth: s,
|
|
1597
1597
|
nextMonth: i,
|
|
1598
1598
|
isDateDisplayed: l
|
|
1599
1599
|
};
|
|
1600
|
-
return
|
|
1600
|
+
return d(rt.Provider, { value: u, children: e.children });
|
|
1601
1601
|
}
|
|
1602
1602
|
function ne() {
|
|
1603
|
-
var e =
|
|
1603
|
+
var e = X(rt);
|
|
1604
1604
|
if (!e)
|
|
1605
1605
|
throw new Error("useNavigation must be used within a NavigationProvider");
|
|
1606
1606
|
return e;
|
|
1607
1607
|
}
|
|
1608
1608
|
function He(e) {
|
|
1609
|
-
var t, n =
|
|
1609
|
+
var t, n = N(), 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
|
-
}, l = (t = o == null ? void 0 : o.CaptionLabel) !== null && t !== void 0 ? t : nt,
|
|
1612
|
-
return O("div", { className: a.caption_dropdowns, style: r.caption_dropdowns, children: [
|
|
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
|
+
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
|
|
1615
|
+
return d("svg", g({ 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
|
|
1618
|
+
return d("svg", g({ 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 = N(), 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),
|
|
1623
|
+
var i = o.join(" "), s = g(g({}, r.button_reset), r.button);
|
|
1624
|
+
return e.style && Object.assign(s, e.style), d("button", g({}, 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 = N(), 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
|
-
return
|
|
1630
|
-
var
|
|
1629
|
+
return d(T, {});
|
|
1630
|
+
var m = c(e.previousMonth, { locale: o }), f = [
|
|
1631
1631
|
i.nav_button,
|
|
1632
1632
|
i.nav_button_previous
|
|
1633
|
-
].join(" "),
|
|
1633
|
+
].join(" "), v = u(e.nextMonth, { locale: o }), p = [
|
|
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 &&
|
|
1636
|
+
].join(" "), y = (t = h == null ? void 0 : h.IconRight) !== null && t !== void 0 ? t : ma, k = (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(y, { className: i.nav_icon, style: s.nav_icon }) : d(k, { className: i.nav_icon, style: s.nav_icon }) }), !e.hideNext && d(oe, { name: "next-month", "aria-label": v, className: p, style: s.nav_button_next, disabled: !e.nextMonth, onClick: e.onNextClick, children: r === "rtl" ? d(k, { className: i.nav_icon, style: s.nav_icon }) : d(y, { className: i.nav_icon, style: s.nav_icon }) })] });
|
|
1638
1638
|
}
|
|
1639
1639
|
function Ae(e) {
|
|
1640
|
-
var t =
|
|
1641
|
-
return Ne(e.displayMonth,
|
|
1642
|
-
}), l = s === 0,
|
|
1640
|
+
var t = N().numberOfMonths, n = ne(), a = n.previousMonth, r = n.nextMonth, o = n.goToMonth, i = n.displayMonths, s = i.findIndex(function(v) {
|
|
1641
|
+
return Ne(e.displayMonth, v);
|
|
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() {
|
|
1645
1645
|
r && o(r);
|
|
1646
1646
|
};
|
|
1647
|
-
return
|
|
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 =
|
|
1651
|
-
return r ?
|
|
1650
|
+
var t, n = N(), 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
|
+
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 =
|
|
1655
|
-
return n ?
|
|
1654
|
+
var t = N(), n = t.footer, a = t.styles, r = t.classNames.tfoot;
|
|
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) {
|
|
1658
1658
|
for (var a = n ? A(/* @__PURE__ */ new Date()) : I(/* @__PURE__ */ new Date(), { locale: e, weekStartsOn: t }), r = [], o = 0; o < 7; o++) {
|
|
@@ -1662,18 +1662,18 @@ function ga(e, t, n) {
|
|
|
1662
1662
|
return r;
|
|
1663
1663
|
}
|
|
1664
1664
|
function wa() {
|
|
1665
|
-
var e =
|
|
1666
|
-
return O("tr", { style: n.head_row, className: t.head_row, children: [a &&
|
|
1667
|
-
return
|
|
1665
|
+
var e = N(), 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
|
+
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
|
+
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 =
|
|
1672
|
-
return
|
|
1671
|
+
var e, t = N(), n = t.classNames, a = t.styles, r = t.components, o = (e = r == null ? void 0 : r.HeadRow) !== null && e !== void 0 ? e : wa;
|
|
1672
|
+
return d("thead", { style: a.head, className: n.head, children: d(o, {}) });
|
|
1673
1673
|
}
|
|
1674
1674
|
function Da(e) {
|
|
1675
|
-
var t =
|
|
1676
|
-
return
|
|
1675
|
+
var t = N(), n = t.locale, a = t.formatters.formatDay;
|
|
1676
|
+
return d(T, { children: a(e.date, { locale: n }) });
|
|
1677
1677
|
}
|
|
1678
1678
|
var xe = q(void 0);
|
|
1679
1679
|
function Ma(e) {
|
|
@@ -1684,47 +1684,47 @@ function Ma(e) {
|
|
|
1684
1684
|
disabled: []
|
|
1685
1685
|
}
|
|
1686
1686
|
};
|
|
1687
|
-
return
|
|
1687
|
+
return d(xe.Provider, { value: t, children: e.children });
|
|
1688
1688
|
}
|
|
1689
|
-
return
|
|
1689
|
+
return d(_a, { initialProps: e.initialProps, children: e.children });
|
|
1690
1690
|
}
|
|
1691
1691
|
function _a(e) {
|
|
1692
|
-
var t = e.initialProps, n = e.children, a = t.selected, r = t.min, o = t.max, i = function(
|
|
1693
|
-
var
|
|
1694
|
-
(
|
|
1695
|
-
var
|
|
1696
|
-
if (!
|
|
1697
|
-
var
|
|
1698
|
-
if (!
|
|
1699
|
-
var
|
|
1692
|
+
var t = e.initialProps, n = e.children, a = t.selected, r = t.min, o = t.max, i = function(c, u, h) {
|
|
1693
|
+
var m, f;
|
|
1694
|
+
(m = t.onDayClick) === null || m === void 0 || m.call(t, c, u, h);
|
|
1695
|
+
var v = !!(u.selected && r && (a == null ? void 0 : a.length) === r);
|
|
1696
|
+
if (!v) {
|
|
1697
|
+
var p = !!(!u.selected && o && (a == null ? void 0 : a.length) === o);
|
|
1698
|
+
if (!p) {
|
|
1699
|
+
var y = a ? et([], a, !0) : [];
|
|
1700
1700
|
if (u.selected) {
|
|
1701
|
-
var
|
|
1702
|
-
return C(
|
|
1701
|
+
var k = y.findIndex(function(D) {
|
|
1702
|
+
return C(c, D);
|
|
1703
1703
|
});
|
|
1704
|
-
|
|
1704
|
+
y.splice(k, 1);
|
|
1705
1705
|
} else
|
|
1706
|
-
|
|
1707
|
-
(
|
|
1706
|
+
y.push(c);
|
|
1707
|
+
(f = t.onSelect) === null || f === void 0 || f.call(t, y, c, u, h);
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
}, s = {
|
|
1711
1711
|
disabled: []
|
|
1712
1712
|
};
|
|
1713
|
-
a && s.disabled.push(function(
|
|
1714
|
-
var u = o && a.length > o - 1,
|
|
1715
|
-
return C(
|
|
1713
|
+
a && s.disabled.push(function(c) {
|
|
1714
|
+
var u = o && a.length > o - 1, h = a.some(function(m) {
|
|
1715
|
+
return C(m, c);
|
|
1716
1716
|
});
|
|
1717
|
-
return !!(u && !
|
|
1717
|
+
return !!(u && !h);
|
|
1718
1718
|
});
|
|
1719
1719
|
var l = {
|
|
1720
1720
|
selected: a,
|
|
1721
1721
|
onDayClick: i,
|
|
1722
1722
|
modifiers: s
|
|
1723
1723
|
};
|
|
1724
|
-
return
|
|
1724
|
+
return d(xe.Provider, { value: l, children: n });
|
|
1725
1725
|
}
|
|
1726
1726
|
function Pe() {
|
|
1727
|
-
var e =
|
|
1727
|
+
var e = X(xe);
|
|
1728
1728
|
if (!e)
|
|
1729
1729
|
throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
|
|
1730
1730
|
return e;
|
|
@@ -1745,16 +1745,16 @@ function Na(e) {
|
|
|
1745
1745
|
disabled: []
|
|
1746
1746
|
}
|
|
1747
1747
|
};
|
|
1748
|
-
return
|
|
1748
|
+
return d(Oe.Provider, { value: t, children: e.children });
|
|
1749
1749
|
}
|
|
1750
|
-
return
|
|
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,
|
|
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, v, p) {
|
|
1754
|
+
var y, k;
|
|
1755
|
+
(y = t.onDayClick) === null || y === void 0 || y.call(t, f, v, p);
|
|
1756
|
+
var D = ka(f, a);
|
|
1757
|
+
(k = t.onSelect) === null || k === void 0 || k.call(t, D, f, v, p);
|
|
1758
1758
|
}, u = {
|
|
1759
1759
|
range_start: [],
|
|
1760
1760
|
range_end: [],
|
|
@@ -1781,11 +1781,11 @@ function xa(e) {
|
|
|
1781
1781
|
}), u.disabled.push({
|
|
1782
1782
|
after: P(o, l - 1)
|
|
1783
1783
|
})), o && i) {
|
|
1784
|
-
var
|
|
1784
|
+
var h = L(i, o) + 1, m = l - h;
|
|
1785
1785
|
u.disabled.push({
|
|
1786
|
-
before: he(o,
|
|
1786
|
+
before: he(o, m)
|
|
1787
1787
|
}), u.disabled.push({
|
|
1788
|
-
after: P(i,
|
|
1788
|
+
after: P(i, m)
|
|
1789
1789
|
});
|
|
1790
1790
|
}
|
|
1791
1791
|
!o && i && (u.disabled.push({
|
|
@@ -1794,10 +1794,10 @@ function xa(e) {
|
|
|
1794
1794
|
after: P(i, l - 1)
|
|
1795
1795
|
}));
|
|
1796
1796
|
}
|
|
1797
|
-
return
|
|
1797
|
+
return d(Oe.Provider, { value: { selected: a, onDayClick: c, modifiers: u }, children: n });
|
|
1798
1798
|
}
|
|
1799
1799
|
function Ce() {
|
|
1800
|
-
var e =
|
|
1800
|
+
var e = X(Oe);
|
|
1801
1801
|
if (!e)
|
|
1802
1802
|
throw new Error("useSelectRange must be used within a SelectRangeProvider");
|
|
1803
1803
|
return e;
|
|
@@ -1823,11 +1823,11 @@ function Ta(e, t, n) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
var ot = q(void 0);
|
|
1825
1825
|
function Ya(e) {
|
|
1826
|
-
var t =
|
|
1827
|
-
return
|
|
1826
|
+
var t = N(), n = Pe(), a = Ce(), r = Ta(t, n, a), o = Pa(t.modifiers), i = g(g({}, r), o);
|
|
1827
|
+
return d(ot.Provider, { value: i, children: e.children });
|
|
1828
1828
|
}
|
|
1829
1829
|
function it() {
|
|
1830
|
-
var e =
|
|
1830
|
+
var e = X(ot);
|
|
1831
1831
|
if (!e)
|
|
1832
1832
|
throw new Error("useModifiers must be used within a ModifiersProvider");
|
|
1833
1833
|
return e;
|
|
@@ -1904,90 +1904,90 @@ function qa(e, t) {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
return o || r;
|
|
1906
1906
|
}
|
|
1907
|
-
var
|
|
1907
|
+
var Xa = 365;
|
|
1908
1908
|
function st(e, t) {
|
|
1909
|
-
var n = t.moveBy, a = t.direction, r = t.context, o = t.modifiers, i = t.retry, s = i === void 0 ? { count: 0, lastFocused: e } : i, l = r.weekStartsOn,
|
|
1909
|
+
var n = t.moveBy, a = t.direction, r = t.context, o = t.modifiers, i = t.retry, s = i === void 0 ? { count: 0, lastFocused: e } : i, l = r.weekStartsOn, c = r.fromDate, u = r.toDate, h = r.locale, m = {
|
|
1910
1910
|
day: P,
|
|
1911
1911
|
week: we,
|
|
1912
1912
|
month: Y,
|
|
1913
1913
|
year: Wt,
|
|
1914
|
-
startOfWeek: function(
|
|
1915
|
-
return r.ISOWeek ? A(
|
|
1914
|
+
startOfWeek: function(y) {
|
|
1915
|
+
return r.ISOWeek ? A(y) : I(y, { locale: h, weekStartsOn: l });
|
|
1916
1916
|
},
|
|
1917
|
-
endOfWeek: function(
|
|
1918
|
-
return r.ISOWeek ? Ve(
|
|
1917
|
+
endOfWeek: function(y) {
|
|
1918
|
+
return r.ISOWeek ? Ve(y) : ke(y, { locale: h, weekStartsOn: l });
|
|
1919
1919
|
}
|
|
1920
|
-
},
|
|
1921
|
-
a === "before" &&
|
|
1922
|
-
var
|
|
1920
|
+
}, f = m[n](e, a === "after" ? 1 : -1);
|
|
1921
|
+
a === "before" && c ? f = Tt([c, f]) : a === "after" && u && (f = Yt([u, f]));
|
|
1922
|
+
var v = !0;
|
|
1923
1923
|
if (o) {
|
|
1924
|
-
var
|
|
1925
|
-
|
|
1924
|
+
var p = Se(f, o);
|
|
1925
|
+
v = !p.disabled && !p.hidden;
|
|
1926
1926
|
}
|
|
1927
|
-
return
|
|
1927
|
+
return v ? f : s.count > Xa ? s.lastFocused : st(f, {
|
|
1928
1928
|
moveBy: n,
|
|
1929
1929
|
direction: a,
|
|
1930
1930
|
context: r,
|
|
1931
1931
|
modifiers: o,
|
|
1932
|
-
retry:
|
|
1932
|
+
retry: g(g({}, s), { count: s.count + 1 })
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
var lt = q(void 0);
|
|
1936
|
-
function
|
|
1937
|
-
var t = ne(), n = it(), a =
|
|
1936
|
+
function Qa(e) {
|
|
1937
|
+
var t = ne(), n = it(), a = U(), r = a[0], o = a[1], i = U(), 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
|
-
},
|
|
1940
|
-
o(
|
|
1941
|
-
},
|
|
1939
|
+
}, m = function(y) {
|
|
1940
|
+
o(y);
|
|
1941
|
+
}, f = N(), v = function(y, k) {
|
|
1942
1942
|
if (r) {
|
|
1943
|
-
var
|
|
1944
|
-
moveBy:
|
|
1945
|
-
direction:
|
|
1946
|
-
context:
|
|
1943
|
+
var D = st(r, {
|
|
1944
|
+
moveBy: y,
|
|
1945
|
+
direction: k,
|
|
1946
|
+
context: f,
|
|
1947
1947
|
modifiers: n
|
|
1948
1948
|
});
|
|
1949
|
-
C(r,
|
|
1949
|
+
C(r, D) || (t.goToDate(D, r), m(D));
|
|
1950
1950
|
}
|
|
1951
|
-
},
|
|
1951
|
+
}, p = {
|
|
1952
1952
|
focusedDay: r,
|
|
1953
1953
|
focusTarget: u,
|
|
1954
|
-
blur:
|
|
1955
|
-
focus:
|
|
1954
|
+
blur: h,
|
|
1955
|
+
focus: m,
|
|
1956
1956
|
focusDayAfter: function() {
|
|
1957
|
-
return
|
|
1957
|
+
return v("day", "after");
|
|
1958
1958
|
},
|
|
1959
1959
|
focusDayBefore: function() {
|
|
1960
|
-
return
|
|
1960
|
+
return v("day", "before");
|
|
1961
1961
|
},
|
|
1962
1962
|
focusWeekAfter: function() {
|
|
1963
|
-
return
|
|
1963
|
+
return v("week", "after");
|
|
1964
1964
|
},
|
|
1965
1965
|
focusWeekBefore: function() {
|
|
1966
|
-
return
|
|
1966
|
+
return v("week", "before");
|
|
1967
1967
|
},
|
|
1968
1968
|
focusMonthBefore: function() {
|
|
1969
|
-
return
|
|
1969
|
+
return v("month", "before");
|
|
1970
1970
|
},
|
|
1971
1971
|
focusMonthAfter: function() {
|
|
1972
|
-
return
|
|
1972
|
+
return v("month", "after");
|
|
1973
1973
|
},
|
|
1974
1974
|
focusYearBefore: function() {
|
|
1975
|
-
return
|
|
1975
|
+
return v("year", "before");
|
|
1976
1976
|
},
|
|
1977
1977
|
focusYearAfter: function() {
|
|
1978
|
-
return
|
|
1978
|
+
return v("year", "after");
|
|
1979
1979
|
},
|
|
1980
1980
|
focusStartOfWeek: function() {
|
|
1981
|
-
return
|
|
1981
|
+
return v("startOfWeek", "before");
|
|
1982
1982
|
},
|
|
1983
1983
|
focusEndOfWeek: function() {
|
|
1984
|
-
return
|
|
1984
|
+
return v("endOfWeek", "after");
|
|
1985
1985
|
}
|
|
1986
1986
|
};
|
|
1987
|
-
return
|
|
1987
|
+
return d(lt.Provider, { value: p, children: e.children });
|
|
1988
1988
|
}
|
|
1989
1989
|
function We() {
|
|
1990
|
-
var e =
|
|
1990
|
+
var e = X(lt);
|
|
1991
1991
|
if (!e)
|
|
1992
1992
|
throw new Error("useFocusContext must be used within a FocusProvider");
|
|
1993
1993
|
return e;
|
|
@@ -2002,15 +2002,15 @@ function Va(e) {
|
|
|
2002
2002
|
var t = {
|
|
2003
2003
|
selected: void 0
|
|
2004
2004
|
};
|
|
2005
|
-
return
|
|
2005
|
+
return d(Te.Provider, { value: t, children: e.children });
|
|
2006
2006
|
}
|
|
2007
|
-
return
|
|
2007
|
+
return d($a, { initialProps: e.initialProps, children: e.children });
|
|
2008
2008
|
}
|
|
2009
2009
|
function $a(e) {
|
|
2010
2010
|
var t = e.initialProps, n = e.children, a = function(o, i, s) {
|
|
2011
|
-
var l,
|
|
2011
|
+
var l, c, u;
|
|
2012
2012
|
if ((l = t.onDayClick) === null || l === void 0 || l.call(t, o, i, s), i.selected && !t.required) {
|
|
2013
|
-
(
|
|
2013
|
+
(c = t.onSelect) === null || c === void 0 || c.call(t, void 0, o, i, s);
|
|
2014
2014
|
return;
|
|
2015
2015
|
}
|
|
2016
2016
|
(u = t.onSelect) === null || u === void 0 || u.call(t, o, o, i, s);
|
|
@@ -2018,80 +2018,80 @@ function $a(e) {
|
|
|
2018
2018
|
selected: t.selected,
|
|
2019
2019
|
onDayClick: a
|
|
2020
2020
|
};
|
|
2021
|
-
return
|
|
2021
|
+
return d(Te.Provider, { value: r, children: n });
|
|
2022
2022
|
}
|
|
2023
2023
|
function ut() {
|
|
2024
|
-
var e =
|
|
2024
|
+
var e = X(Te);
|
|
2025
2025
|
if (!e)
|
|
2026
2026
|
throw new Error("useSelectSingle must be used within a SelectSingleProvider");
|
|
2027
2027
|
return e;
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2030
|
-
var n =
|
|
2031
|
-
var
|
|
2032
|
-
se(n) ? (
|
|
2033
|
-
}, j = function(
|
|
2034
|
-
var
|
|
2035
|
-
|
|
2036
|
-
}, le = function(
|
|
2037
|
-
var
|
|
2038
|
-
|
|
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 (
|
|
2029
|
+
function Ja(e, t) {
|
|
2030
|
+
var n = N(), 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, v = i.focusMonthAfter, p = i.focusYearBefore, y = i.focusYearAfter, k = i.focusStartOfWeek, D = i.focusEndOfWeek, x = function(w) {
|
|
2031
|
+
var b, ue, ce, de;
|
|
2032
|
+
se(n) ? (b = a.onDayClick) === null || b === void 0 || b.call(a, e, t, w) : ee(n) ? (ue = r.onDayClick) === null || ue === void 0 || ue.call(r, e, t, w) : te(n) ? (ce = o.onDayClick) === null || ce === void 0 || ce.call(o, e, t, w) : (de = n.onDayClick) === null || de === void 0 || de.call(n, e, t, w);
|
|
2033
|
+
}, j = function(w) {
|
|
2034
|
+
var b;
|
|
2035
|
+
m(e), (b = n.onDayFocus) === null || b === void 0 || b.call(n, e, t, w);
|
|
2036
|
+
}, le = function(w) {
|
|
2037
|
+
var b;
|
|
2038
|
+
h(), (b = n.onDayBlur) === null || b === void 0 || b.call(n, e, t, w);
|
|
2039
|
+
}, V = function(w) {
|
|
2040
|
+
var b;
|
|
2041
|
+
(b = n.onDayMouseEnter) === null || b === void 0 || b.call(n, e, t, w);
|
|
2042
|
+
}, dt = function(w) {
|
|
2043
|
+
var b;
|
|
2044
|
+
(b = n.onDayMouseLeave) === null || b === void 0 || b.call(n, e, t, w);
|
|
2045
|
+
}, ft = function(w) {
|
|
2046
|
+
var b;
|
|
2047
|
+
(b = n.onDayPointerEnter) === null || b === void 0 || b.call(n, e, t, w);
|
|
2048
|
+
}, ht = function(w) {
|
|
2049
|
+
var b;
|
|
2050
|
+
(b = n.onDayPointerLeave) === null || b === void 0 || b.call(n, e, t, w);
|
|
2051
|
+
}, mt = function(w) {
|
|
2052
|
+
var b;
|
|
2053
|
+
(b = n.onDayTouchCancel) === null || b === void 0 || b.call(n, e, t, w);
|
|
2054
|
+
}, vt = function(w) {
|
|
2055
|
+
var b;
|
|
2056
|
+
(b = n.onDayTouchEnd) === null || b === void 0 || b.call(n, e, t, w);
|
|
2057
|
+
}, yt = function(w) {
|
|
2058
|
+
var b;
|
|
2059
|
+
(b = n.onDayTouchMove) === null || b === void 0 || b.call(n, e, t, w);
|
|
2060
|
+
}, bt = function(w) {
|
|
2061
|
+
var b;
|
|
2062
|
+
(b = n.onDayTouchStart) === null || b === void 0 || b.call(n, e, t, w);
|
|
2063
|
+
}, gt = function(w) {
|
|
2064
|
+
var b;
|
|
2065
|
+
(b = n.onDayKeyUp) === null || b === void 0 || b.call(n, e, t, w);
|
|
2066
|
+
}, wt = function(w) {
|
|
2067
|
+
var b;
|
|
2068
|
+
switch (w.key) {
|
|
2069
2069
|
case "ArrowLeft":
|
|
2070
|
-
|
|
2070
|
+
w.preventDefault(), w.stopPropagation(), n.dir === "rtl" ? s() : l();
|
|
2071
2071
|
break;
|
|
2072
2072
|
case "ArrowRight":
|
|
2073
|
-
|
|
2073
|
+
w.preventDefault(), w.stopPropagation(), n.dir === "rtl" ? l() : s();
|
|
2074
2074
|
break;
|
|
2075
2075
|
case "ArrowDown":
|
|
2076
|
-
|
|
2076
|
+
w.preventDefault(), w.stopPropagation(), c();
|
|
2077
2077
|
break;
|
|
2078
2078
|
case "ArrowUp":
|
|
2079
|
-
|
|
2079
|
+
w.preventDefault(), w.stopPropagation(), u();
|
|
2080
2080
|
break;
|
|
2081
2081
|
case "PageUp":
|
|
2082
|
-
|
|
2082
|
+
w.preventDefault(), w.stopPropagation(), w.shiftKey ? p() : f();
|
|
2083
2083
|
break;
|
|
2084
2084
|
case "PageDown":
|
|
2085
|
-
|
|
2085
|
+
w.preventDefault(), w.stopPropagation(), w.shiftKey ? y() : v();
|
|
2086
2086
|
break;
|
|
2087
2087
|
case "Home":
|
|
2088
|
-
|
|
2088
|
+
w.preventDefault(), w.stopPropagation(), k();
|
|
2089
2089
|
break;
|
|
2090
2090
|
case "End":
|
|
2091
|
-
|
|
2091
|
+
w.preventDefault(), w.stopPropagation(), D();
|
|
2092
2092
|
break;
|
|
2093
2093
|
}
|
|
2094
|
-
(
|
|
2094
|
+
(b = n.onDayKeyDown) === null || b === void 0 || b.call(n, e, t, w);
|
|
2095
2095
|
}, pt = {
|
|
2096
2096
|
onClick: x,
|
|
2097
2097
|
onFocus: j,
|
|
@@ -2109,11 +2109,11 @@ function Ua(e, t) {
|
|
|
2109
2109
|
};
|
|
2110
2110
|
return pt;
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2113
|
-
var e =
|
|
2112
|
+
function Ka() {
|
|
2113
|
+
var e = N(), 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
|
-
function
|
|
2116
|
+
function Ua(e) {
|
|
2117
2117
|
return Object.values(F).includes(e);
|
|
2118
2118
|
}
|
|
2119
2119
|
function za(e, t) {
|
|
@@ -2122,76 +2122,76 @@ function za(e, t) {
|
|
|
2122
2122
|
var r = e.modifiersClassNames[a];
|
|
2123
2123
|
if (r)
|
|
2124
2124
|
n.push(r);
|
|
2125
|
-
else if (
|
|
2125
|
+
else if (Ua(a)) {
|
|
2126
2126
|
var o = e.classNames["day_".concat(a)];
|
|
2127
2127
|
o && n.push(o);
|
|
2128
2128
|
}
|
|
2129
2129
|
}), n;
|
|
2130
2130
|
}
|
|
2131
2131
|
function Za(e, t) {
|
|
2132
|
-
var n =
|
|
2132
|
+
var n = g({}, e.styles.day);
|
|
2133
2133
|
return Object.keys(t).forEach(function(a) {
|
|
2134
2134
|
var r;
|
|
2135
|
-
n =
|
|
2135
|
+
n = g(g({}, 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 = N(), s = We(), l = Ga(e, t), c = Ja(e, l), u = Ka(), h = !!(i.onDayClick || i.mode !== "default");
|
|
2140
2140
|
ie(function() {
|
|
2141
2141
|
var V;
|
|
2142
|
-
l.outside || s.focusedDay &&
|
|
2142
|
+
l.outside || s.focusedDay && h && C(s.focusedDay, e) && ((V = n.current) === null || V === void 0 || V.focus());
|
|
2143
2143
|
}, [
|
|
2144
2144
|
s.focusedDay,
|
|
2145
2145
|
e,
|
|
2146
2146
|
n,
|
|
2147
|
-
|
|
2147
|
+
h,
|
|
2148
2148
|
l.outside
|
|
2149
2149
|
]);
|
|
2150
|
-
var
|
|
2151
|
-
style:
|
|
2152
|
-
className:
|
|
2153
|
-
children:
|
|
2150
|
+
var m = za(i, l).join(" "), f = Za(i, l), v = !!(l.outside && !i.showOutsideDays || l.hidden), p = (o = (r = i.components) === null || r === void 0 ? void 0 : r.DayContent) !== null && o !== void 0 ? o : Da, y = d(p, { date: e, displayMonth: t, activeModifiers: l }), k = {
|
|
2151
|
+
style: f,
|
|
2152
|
+
className: m,
|
|
2153
|
+
children: y,
|
|
2154
2154
|
role: "gridcell"
|
|
2155
|
-
},
|
|
2156
|
-
isButton:
|
|
2157
|
-
isHidden:
|
|
2155
|
+
}, D = s.focusTarget && C(s.focusTarget, e) && !l.outside, x = s.focusedDay && C(s.focusedDay, e), j = g(g(g({}, k), (a = { disabled: l.disabled, role: "gridcell" }, a["aria-selected"] = l.selected, a.tabIndex = x || D ? 0 : -1, a)), c), le = {
|
|
2156
|
+
isButton: h,
|
|
2157
|
+
isHidden: v,
|
|
2158
2158
|
activeModifiers: l,
|
|
2159
2159
|
selectedDays: u,
|
|
2160
2160
|
buttonProps: j,
|
|
2161
|
-
divProps:
|
|
2161
|
+
divProps: k
|
|
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 ?
|
|
2167
|
+
return n.isHidden ? d("div", { role: "gridcell" }) : n.isButton ? d(oe, g({ name: "day", ref: t }, n.buttonProps)) : d("div", g({}, 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 = N(), 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
|
-
return
|
|
2173
|
-
var
|
|
2174
|
-
r(t, n,
|
|
2172
|
+
return d("span", { className: i.weeknumber, style: o.weeknumber, children: u });
|
|
2173
|
+
var h = l(Number(t), { locale: s }), m = function(f) {
|
|
2174
|
+
r(t, n, f);
|
|
2175
2175
|
};
|
|
2176
|
-
return
|
|
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 =
|
|
2180
|
-
return i && (u =
|
|
2181
|
-
return
|
|
2179
|
+
var t, n, a = N(), 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
|
+
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
|
+
return d("td", { className: o.cell, style: r.cell, role: "presentation", children: d(l, { displayMonth: e.displayMonth, date: h }) }, Yn(h));
|
|
2182
2182
|
})] });
|
|
2183
2183
|
}
|
|
2184
2184
|
function qe(e, t, n) {
|
|
2185
2185
|
for (var a = n != null && n.ISOWeek ? Ve(t) : ke(t, n), r = n != null && n.ISOWeek ? A(e) : I(e, n), o = L(a, r), i = [], s = 0; s <= o; s++)
|
|
2186
2186
|
i.push(P(r, s));
|
|
2187
|
-
var l = i.reduce(function(
|
|
2188
|
-
var
|
|
2189
|
-
return
|
|
2187
|
+
var l = i.reduce(function(c, u) {
|
|
2188
|
+
var h = n != null && n.ISOWeek ? Je(u) : Ue(u, n), m = c.find(function(f) {
|
|
2189
|
+
return f.weekNumber === h;
|
|
2190
2190
|
});
|
|
2191
|
-
return
|
|
2192
|
-
weekNumber:
|
|
2191
|
+
return m ? (m.dates.push(u), c) : (c.push({
|
|
2192
|
+
weekNumber: h,
|
|
2193
2193
|
dates: [u]
|
|
2194
|
-
}),
|
|
2194
|
+
}), c);
|
|
2195
2195
|
}, []);
|
|
2196
2196
|
return l;
|
|
2197
2197
|
}
|
|
@@ -2207,46 +2207,46 @@ function rr(e, t) {
|
|
|
2207
2207
|
return n;
|
|
2208
2208
|
}
|
|
2209
2209
|
function or(e) {
|
|
2210
|
-
var t, n, a, r =
|
|
2211
|
-
useFixedWeeks: !!
|
|
2212
|
-
ISOWeek:
|
|
2210
|
+
var t, n, a, r = N(), 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, v = rr(e.displayMonth, {
|
|
2211
|
+
useFixedWeeks: !!c,
|
|
2212
|
+
ISOWeek: f,
|
|
2213
2213
|
locale: o,
|
|
2214
|
-
weekStartsOn:
|
|
2215
|
-
firstWeekContainsDate:
|
|
2216
|
-
}),
|
|
2217
|
-
return O("table", { id: e.id, className: i.table, style: s.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!l &&
|
|
2218
|
-
return
|
|
2219
|
-
}) }),
|
|
2214
|
+
weekStartsOn: h,
|
|
2215
|
+
firstWeekContainsDate: m
|
|
2216
|
+
}), p = (t = u == null ? void 0 : u.Head) !== null && t !== void 0 ? t : pa, y = (n = u == null ? void 0 : u.Row) !== null && n !== void 0 ? n : ar, k = (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(p, {}), d("tbody", { className: i.tbody, style: s.tbody, children: v.map(function(D) {
|
|
2218
|
+
return d(y, { displayMonth: e.displayMonth, dates: D.dates, weekNumber: D.weekNumber }, D.weekNumber);
|
|
2219
|
+
}) }), d(k, { displayMonth: e.displayMonth })] });
|
|
2220
2220
|
}
|
|
2221
2221
|
function ir() {
|
|
2222
2222
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2223
2223
|
}
|
|
2224
2224
|
var sr = ir() ? xt : ie, ge = !1, lr = 0;
|
|
2225
|
-
function
|
|
2225
|
+
function Xe() {
|
|
2226
2226
|
return "react-day-picker-".concat(++lr);
|
|
2227
2227
|
}
|
|
2228
2228
|
function ur(e) {
|
|
2229
|
-
var t, n = e ?? (ge ?
|
|
2229
|
+
var t, n = e ?? (ge ? Xe() : null), a = U(n), r = a[0], o = a[1];
|
|
2230
2230
|
return sr(function() {
|
|
2231
|
-
r === null && o(
|
|
2231
|
+
r === null && o(Xe());
|
|
2232
2232
|
}, []), ie(function() {
|
|
2233
2233
|
ge === !1 && (ge = !0);
|
|
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 = [
|
|
2239
|
-
var
|
|
2240
|
-
return O("div", { className:
|
|
2237
|
+
var t, n, a = N(), 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, v = e.displayIndex === l.length - 1, p = !f && !v;
|
|
2238
|
+
r === "rtl" && (t = [f, v], v = t[0], f = t[1]), f && (h.push(o.caption_start), m = g(g({}, m), i.caption_start)), v && (h.push(o.caption_end), m = g(g({}, m), i.caption_end)), p && (h.push(o.caption_between), m = g(g({}, m), i.caption_between));
|
|
2239
|
+
var y = (n = s == null ? void 0 : s.Caption) !== null && n !== void 0 ? n : ya;
|
|
2240
|
+
return O("div", { className: h.join(" "), style: m, children: [d(y, { 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 =
|
|
2244
|
-
return
|
|
2243
|
+
var t = N(), n = t.classNames, a = t.styles;
|
|
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 = N(), o = We(), i = ne(), s = U(!1), l = s[0], c = s[1];
|
|
2248
2248
|
ie(function() {
|
|
2249
|
-
r.initialFocus && o.focusTarget && (l || (o.focus(o.focusTarget),
|
|
2249
|
+
r.initialFocus && o.focusTarget && (l || (o.focus(o.focusTarget), c(!0)));
|
|
2250
2250
|
}, [
|
|
2251
2251
|
r.initialFocus,
|
|
2252
2252
|
l,
|
|
@@ -2256,22 +2256,22 @@ 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
|
|
2260
|
-
return
|
|
2261
|
-
}).reduce(function(
|
|
2262
|
-
var
|
|
2263
|
-
return
|
|
2264
|
-
}, {}),
|
|
2265
|
-
return
|
|
2266
|
-
return
|
|
2259
|
+
var h = g(g({}, r.styles.root), r.style), m = Object.keys(a).filter(function(v) {
|
|
2260
|
+
return v.startsWith("data-");
|
|
2261
|
+
}).reduce(function(v, p) {
|
|
2262
|
+
var y;
|
|
2263
|
+
return g(g({}, v), (y = {}, y[p] = a[p], y));
|
|
2264
|
+
}, {}), f = (n = (t = a.components) === null || t === void 0 ? void 0 : t.Months) !== null && n !== void 0 ? n : dr;
|
|
2265
|
+
return d("div", g({ 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(v, p) {
|
|
2266
|
+
return d(cr, { displayIndex: p, displayMonth: v }, p);
|
|
2267
2267
|
}) }) }));
|
|
2268
2268
|
}
|
|
2269
2269
|
function hr(e) {
|
|
2270
2270
|
var t = e.children, n = In(e, ["children"]);
|
|
2271
|
-
return
|
|
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(Qa, { children: t }) }) }) }) }) }) });
|
|
2272
2272
|
}
|
|
2273
2273
|
function mr(e) {
|
|
2274
|
-
return
|
|
2274
|
+
return d(hr, g({}, e, { children: d(fr, { initialProps: e }) }));
|
|
2275
2275
|
}
|
|
2276
2276
|
function ct({
|
|
2277
2277
|
className: e,
|
|
@@ -2281,13 +2281,13 @@ function ct({
|
|
|
2281
2281
|
showOutsideDays: r = !0,
|
|
2282
2282
|
...o
|
|
2283
2283
|
}) {
|
|
2284
|
-
return /* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ d(
|
|
2285
2285
|
mr,
|
|
2286
2286
|
{
|
|
2287
2287
|
fromDate: n,
|
|
2288
2288
|
toDate: a || void 0,
|
|
2289
2289
|
showOutsideDays: r,
|
|
2290
|
-
className:
|
|
2290
|
+
className: K("p-3", e),
|
|
2291
2291
|
classNames: {
|
|
2292
2292
|
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
2293
2293
|
month: "space-y-4",
|
|
@@ -2296,12 +2296,12 @@ function ct({
|
|
|
2296
2296
|
nav: "flex items-center",
|
|
2297
2297
|
head: "",
|
|
2298
2298
|
head_row: "flex w-full items-center justify-between",
|
|
2299
|
-
head_cell: "w-8 md:w-11 h-8 text-sm font-medium text-default",
|
|
2300
|
-
nav_button:
|
|
2299
|
+
head_cell: "w-8 md:w-11 h-8 text-sm font-medium text-default text-center",
|
|
2300
|
+
nav_button: K(Ye({ color: "minimal", variant: "icon" })),
|
|
2301
2301
|
table: "w-full border-collapse space-y-1",
|
|
2302
|
-
row: "flex w-full mt-
|
|
2303
|
-
cell: "
|
|
2304
|
-
day:
|
|
2302
|
+
row: "flex w-full mt-0.5 gap-0.5",
|
|
2303
|
+
cell: "w-8 h-8 md:h-11 md:w-11 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
2304
|
+
day: K(
|
|
2305
2305
|
Ye({ color: "minimal" }),
|
|
2306
2306
|
"w-8 h-8 md:h-11 md:w-11 p-0 text-sm font-medium aria-selected:opacity-100 inline-flex items-center justify-center"
|
|
2307
2307
|
),
|
|
@@ -2321,10 +2321,10 @@ function ct({
|
|
|
2321
2321
|
Fe(i.displayMonth).format("MMMM"),
|
|
2322
2322
|
" "
|
|
2323
2323
|
] }),
|
|
2324
|
-
/* @__PURE__ */
|
|
2324
|
+
/* @__PURE__ */ d("span", { className: "text-subtle font-medium leading-none", children: Fe(i.displayMonth).format("YYYY") })
|
|
2325
2325
|
] }),
|
|
2326
|
-
IconLeft: () => /* @__PURE__ */
|
|
2327
|
-
IconRight: () => /* @__PURE__ */
|
|
2326
|
+
IconLeft: () => /* @__PURE__ */ d(Le, { name: "chevron-left", className: "h-4 w-4 stroke-2" }),
|
|
2327
|
+
IconRight: () => /* @__PURE__ */ d(Le, { name: "chevron-right", className: "h-4 w-4 stroke-2" })
|
|
2328
2328
|
},
|
|
2329
2329
|
...o
|
|
2330
2330
|
}
|
|
@@ -2340,39 +2340,56 @@ function gr({
|
|
|
2340
2340
|
disabled: o,
|
|
2341
2341
|
withoutPopover: i,
|
|
2342
2342
|
"data-testid": s,
|
|
2343
|
-
strictlyBottom: l
|
|
2343
|
+
strictlyBottom: l,
|
|
2344
|
+
allowPastDates: c = !1
|
|
2344
2345
|
}) {
|
|
2345
|
-
function
|
|
2346
|
-
if (
|
|
2347
|
-
|
|
2346
|
+
function u(f) {
|
|
2347
|
+
if (c)
|
|
2348
|
+
if (t != null && t.endDate)
|
|
2349
|
+
r({ startDate: f, endDate: void 0 });
|
|
2350
|
+
else {
|
|
2351
|
+
const v = t.startDate ? f < t.startDate ? f : t.startDate : f, p = t.startDate ? f < t.startDate ? t.startDate : f : void 0;
|
|
2352
|
+
r({ startDate: v, endDate: p });
|
|
2353
|
+
}
|
|
2354
|
+
else if (!t.startDate || !t.endDate)
|
|
2355
|
+
r({ startDate: f, endDate: f });
|
|
2348
2356
|
else {
|
|
2349
|
-
const
|
|
2350
|
-
|
|
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
|
+
}
|
|
2351
2368
|
}
|
|
2352
2369
|
}
|
|
2353
|
-
const
|
|
2370
|
+
const m = /* @__PURE__ */ d(
|
|
2354
2371
|
ct,
|
|
2355
2372
|
{
|
|
2356
2373
|
initialFocus: !0,
|
|
2357
|
-
fromDate: n === null ? void 0 : n ?? /* @__PURE__ */ new Date(),
|
|
2374
|
+
fromDate: c && n === null ? void 0 : n ?? /* @__PURE__ */ new Date(),
|
|
2358
2375
|
toDate: a,
|
|
2359
2376
|
mode: "range",
|
|
2360
2377
|
defaultMonth: t == null ? void 0 : t.startDate,
|
|
2361
2378
|
selected: { from: t == null ? void 0 : t.startDate, to: t == null ? void 0 : t.endDate },
|
|
2362
|
-
onDayClick: (
|
|
2379
|
+
onDayClick: (f) => u(f),
|
|
2363
2380
|
numberOfMonths: 1,
|
|
2364
2381
|
disabled: o,
|
|
2365
2382
|
"data-testid": s
|
|
2366
2383
|
}
|
|
2367
2384
|
);
|
|
2368
|
-
return i ?
|
|
2369
|
-
/* @__PURE__ */
|
|
2385
|
+
return i ? m : /* @__PURE__ */ d("div", { className: K("grid gap-2", e), children: /* @__PURE__ */ O(Dt, { children: [
|
|
2386
|
+
/* @__PURE__ */ d(Mt, { asChild: !0, children: /* @__PURE__ */ d(
|
|
2370
2387
|
_t,
|
|
2371
2388
|
{
|
|
2372
2389
|
"data-testid": "date-range",
|
|
2373
2390
|
color: "secondary",
|
|
2374
2391
|
EndIcon: "calendar",
|
|
2375
|
-
className:
|
|
2392
|
+
className: K("justify-between text-left font-normal", !t && "text-subtle"),
|
|
2376
2393
|
children: t != null && t.startDate ? t != null && t.endDate ? /* @__PURE__ */ O(T, { children: [
|
|
2377
2394
|
E(t.startDate, "LLL dd, y"),
|
|
2378
2395
|
" - ",
|
|
@@ -2380,10 +2397,10 @@ function gr({
|
|
|
2380
2397
|
] }) : /* @__PURE__ */ O(T, { children: [
|
|
2381
2398
|
E(t.startDate, "LLL dd, y"),
|
|
2382
2399
|
" - End"
|
|
2383
|
-
] }) : /* @__PURE__ */
|
|
2400
|
+
] }) : /* @__PURE__ */ d("span", { children: "Pick a date" })
|
|
2384
2401
|
}
|
|
2385
2402
|
) }),
|
|
2386
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ d(
|
|
2387
2404
|
kt,
|
|
2388
2405
|
{
|
|
2389
2406
|
className: "bg-default text-emphasis z-50 w-auto rounded-md border p-0 outline-none",
|
|
@@ -2391,7 +2408,7 @@ function gr({
|
|
|
2391
2408
|
sideOffset: 4,
|
|
2392
2409
|
side: l ? "bottom" : void 0,
|
|
2393
2410
|
avoidCollisions: !l,
|
|
2394
|
-
children:
|
|
2411
|
+
children: m
|
|
2395
2412
|
}
|
|
2396
2413
|
)
|
|
2397
2414
|
] }) });
|