@calcom/atoms 2.3.8 → 2.4.0

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.
Files changed (497) hide show
  1. package/dist/{AddressInput-BPeQ3Ue1.js → AddressInput-D1GVr1DO.js} +1 -1
  2. package/dist/{AlbyPriceComponent-CV8TQDZE.js → AlbyPriceComponent-B-wbESgj.js} +13 -13
  3. package/dist/{AppCard-CqXUqN41.js → AppCard-D-kSjEGA.js} +19 -19
  4. package/dist/{AppListCardPlatformWrapper-CGaZOSRY.js → AppListCardPlatformWrapper-CtfMFKLj.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-BHs3YXfm.js → AppListCardWebWrapper-BdxlDHBL.js} +8 -8
  6. package/dist/{AppSettingsInterface-Cha7YFTm.js → AppSettingsInterface-4eRi58Pn.js} +1 -1
  7. package/dist/{AppSettingsInterface-MWbscJy1.js → AppSettingsInterface-CFotsMaY.js} +5 -5
  8. package/dist/{AppSettingsInterface-lf-baNB3.js → AppSettingsInterface-CrW3wxR7.js} +4 -4
  9. package/dist/DateRangePicker-XmWLaFM0.js +1432 -0
  10. package/dist/{EventTypeAppCardInterface-CMo07yBK.js → EventTypeAppCardInterface-6DLZO5NW.js} +4 -4
  11. package/dist/{EventTypeAppCardInterface-BMtY95fk.js → EventTypeAppCardInterface-BVOAdMSE.js} +45 -45
  12. package/dist/{EventTypeAppCardInterface-CWE8yFFp.js → EventTypeAppCardInterface-B_j7r80d.js} +2 -2
  13. package/dist/{EventTypeAppCardInterface-CnzOthog.js → EventTypeAppCardInterface-BikTDyfY.js} +9 -9
  14. package/dist/{EventTypeAppCardInterface-Bnk0srxU.js → EventTypeAppCardInterface-BirSXlmM.js} +3 -3
  15. package/dist/{EventTypeAppCardInterface-xU1bPmb5.js → EventTypeAppCardInterface-Bk8a4fRO.js} +9 -9
  16. package/dist/{EventTypeAppCardInterface-DXmlZAVI.js → EventTypeAppCardInterface-C2IyGqvw.js} +4 -4
  17. package/dist/{EventTypeAppCardInterface-C7wDwt3C.js → EventTypeAppCardInterface-C6X2h6ER.js} +4 -4
  18. package/dist/{EventTypeAppCardInterface-C6mVMSim.js → EventTypeAppCardInterface-CaYgiGUZ.js} +7 -7
  19. package/dist/{EventTypeAppCardInterface-D1qnnj8T.js → EventTypeAppCardInterface-CktuX3wJ.js} +4 -4
  20. package/dist/{EventTypeAppCardInterface-DNjnSokT.js → EventTypeAppCardInterface-CyNHO4Sc.js} +6 -6
  21. package/dist/{EventTypeAppCardInterface-DFw7yYCI.js → EventTypeAppCardInterface-DGyf22GF.js} +7 -7
  22. package/dist/{EventTypeAppCardInterface-CXxcDc58.js → EventTypeAppCardInterface-DII9vKjZ.js} +8 -8
  23. package/dist/{EventTypeAppCardInterface-D6WDAt94.js → EventTypeAppCardInterface-DL7VnPRK.js} +15 -15
  24. package/dist/{EventTypeAppCardInterface-r6J9_Sdx.js → EventTypeAppCardInterface-DOrvvmIe.js} +428 -411
  25. package/dist/{EventTypeAppCardInterface-C-LObVME.js → EventTypeAppCardInterface-DUMRhvMt.js} +3 -3
  26. package/dist/{EventTypeAppCardInterface-B0hZje_Y.js → EventTypeAppCardInterface-DYlGDde7.js} +4 -4
  27. package/dist/{EventTypeAppCardInterface-BHgz-QCd.js → EventTypeAppCardInterface-DbIKdJjd.js} +4 -4
  28. package/dist/{EventTypeAppCardInterface-TqVcTMYU.js → EventTypeAppCardInterface-DcLEZBoW.js} +6 -6
  29. package/dist/{EventTypeAppCardInterface-B_ERDZ0x.js → EventTypeAppCardInterface-DdTrRRx1.js} +4 -4
  30. package/dist/{EventTypeAppCardInterface-CemTCk3s.js → EventTypeAppCardInterface-DhGMBirk.js} +7 -7
  31. package/dist/{EventTypeAppCardInterface-NimYDiFA.js → EventTypeAppCardInterface-Dl9fzQiI.js} +4 -4
  32. package/dist/{EventTypeAppCardInterface-CK_7K0En.js → EventTypeAppCardInterface-DpzQdnJy.js} +4 -4
  33. package/dist/{EventTypeAppCardInterface-DRHWUvqS.js → EventTypeAppCardInterface-DtGUGVYW.js} +7 -7
  34. package/dist/{EventTypeAppCardInterface-CpkvzHeS.js → EventTypeAppCardInterface-hPLiLzB5.js} +3 -3
  35. package/dist/{EventTypeAppCardInterface-CT5WsuB1.js → EventTypeAppCardInterface-nx5WBzB1.js} +7 -7
  36. package/dist/{EventTypeAppCardInterface-DMp1i1QJ.js → EventTypeAppCardInterface-xABGgTYw.js} +4 -4
  37. package/dist/{EventTypeAppCardInterface-CitfZGCV.js → EventTypeAppCardInterface-z3AKnmGs.js} +3 -3
  38. package/dist/{EventTypeAppSettingsInterface-DxtIgjhO.js → EventTypeAppSettingsInterface-BuDUgb5_.js} +8 -8
  39. package/dist/{EventTypeAppSettingsInterface-DrekrYIV.js → EventTypeAppSettingsInterface-C8nDmh7G.js} +6 -6
  40. package/dist/{EventTypeAppSettingsInterface-DXeR_QFo.js → EventTypeAppSettingsInterface-CAiOTU8i.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-Dk3PjrGd.js → EventTypeAppSettingsInterface-CFdYoo7h.js} +15 -15
  42. package/dist/{EventTypeAppSettingsInterface-qu0gmyAB.js → EventTypeAppSettingsInterface-CgQfF6hU.js} +9 -9
  43. package/dist/{EventTypeAppSettingsInterface-BGrAUNgH.js → EventTypeAppSettingsInterface-CpbklJMh.js} +8 -8
  44. package/dist/{EventTypeAppSettingsInterface-EE9hFWG3.js → EventTypeAppSettingsInterface-D5kISd9x.js} +19 -19
  45. package/dist/{EventTypeAppSettingsInterface-DDT62ENQ.js → EventTypeAppSettingsInterface-DBknBQyn.js} +10 -10
  46. package/dist/{EventTypeAppSettingsInterface-CCZaFGW5.js → EventTypeAppSettingsInterface-DDzHlg7x.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-DUWLo7Fs.js → EventTypeAppSettingsInterface-DK-paoMT.js} +1 -1
  48. package/dist/{EventTypeAppSettingsInterface-BRBAwjNI.js → EventTypeAppSettingsInterface-DckxGY96.js} +3 -3
  49. package/dist/{EventTypeAppSettingsInterface-dYMc2MyS.js → EventTypeAppSettingsInterface-VkvCySRT.js} +1 -1
  50. package/dist/{EventTypeAppSettingsInterface-DNtKOXic.js → EventTypeAppSettingsInterface-p-i-OZco.js} +1 -1
  51. package/dist/{EventTypeAppSettingsInterface-CA1wX8Z5.js → EventTypeAppSettingsInterface-xozZX49q.js} +1 -1
  52. package/dist/{InstallAppButton-BZpYEXAB.js → InstallAppButton-B9I6WP_P.js} +1 -1
  53. package/dist/{InstallAppButton-SdnlJHPH.js → InstallAppButton-BftZd2sh.js} +1 -1
  54. package/dist/{InstallAppButton-DrnFkbwv.js → InstallAppButton-DphdibIQ.js} +11 -11
  55. package/dist/{PhoneInput-B_1lwuMx.js → PhoneInput-CwJrDjpT.js} +322 -320
  56. package/dist/{StripePaymentForm-CpGI_VJE.js → StripePaymentForm-CqxHoAlR.js} +20 -20
  57. package/dist/cal-atoms.js +38 -37
  58. package/dist/{index-BeODvL94.js → index-BYBZ-zEd.js} +86577 -87510
  59. package/dist/index-BsEjsNhy.js +26 -0
  60. package/dist/packages/features/bookings/Booker/components/DryRunMessage.d.ts +4 -0
  61. package/dist/packages/features/bookings/Booker/components/DryRunMessage.d.ts.map +1 -0
  62. package/dist/packages/features/bookings/Booker/components/Unavailable.d.ts +3 -0
  63. package/dist/packages/features/bookings/Booker/components/Unavailable.d.ts.map +1 -0
  64. package/dist/packages/features/bookings/Booker/components/VerifyCodeDialog.d.ts +15 -0
  65. package/dist/packages/features/bookings/Booker/components/VerifyCodeDialog.d.ts.map +1 -0
  66. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  67. package/dist/packages/features/bookings/Booker/utils/getBookingDuration.d.ts +8 -0
  68. package/dist/packages/features/bookings/Booker/utils/getBookingDuration.d.ts.map +1 -0
  69. package/dist/packages/features/bookings/Booker/utils/getBookingDuration.test.d.ts +2 -0
  70. package/dist/packages/features/bookings/Booker/utils/getBookingDuration.test.d.ts.map +1 -0
  71. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts +14 -14
  72. package/dist/packages/features/bookings/lib/create-booking.d.ts +123 -0
  73. package/dist/packages/features/bookings/lib/create-booking.d.ts.map +1 -1
  74. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +123 -0
  75. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts.map +1 -1
  76. package/dist/packages/features/bookings/lib/get-booking.d.ts +3 -0
  77. package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
  78. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts +12 -5
  79. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts.map +1 -1
  80. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +6 -6
  81. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +12 -12
  82. package/dist/packages/features/bookings/lib/getBookingFields.d.ts +3 -3
  83. package/dist/packages/features/bookings/lib/getBookingResponses/get-booking-responses-prefill.test.d.ts +2 -0
  84. package/dist/packages/features/bookings/lib/getBookingResponses/get-booking-responses-prefill.test.d.ts.map +1 -0
  85. package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts +24 -0
  86. package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts.map +1 -1
  87. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +5 -2
  88. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  89. package/dist/packages/features/bookings/lib/getLuckyUser.d.ts +1 -1
  90. package/dist/packages/features/bookings/lib/getLuckyUser.d.ts.map +1 -1
  91. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  92. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts +2 -0
  93. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
  94. package/dist/packages/features/bookings/lib/handleNewBooking/checkActiveBookingsLimitForBooker.d.ts +3 -1
  95. package/dist/packages/features/bookings/lib/handleNewBooking/checkActiveBookingsLimitForBooker.d.ts.map +1 -1
  96. package/dist/packages/features/bookings/lib/handleNewBooking/checkIfBookerEmailIsBlocked.d.ts +3 -1
  97. package/dist/packages/features/bookings/lib/handleNewBooking/checkIfBookerEmailIsBlocked.d.ts.map +1 -1
  98. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +1 -0
  99. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
  100. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +17 -2
  101. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  102. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +12 -12
  103. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +136 -109
  104. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  105. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +16 -1
  106. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  107. package/dist/packages/features/bookings/lib/handleNewBooking/getLocationValuesForDb.d.ts.map +1 -1
  108. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +5 -0
  109. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  110. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +474 -60
  111. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
  112. package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
  113. package/dist/packages/features/bookings/lib/handleNewBooking/test/getNewBookingHandler.d.ts +123 -0
  114. package/dist/packages/features/bookings/lib/handleNewBooking/test/getNewBookingHandler.d.ts.map +1 -1
  115. package/dist/packages/features/bookings/lib/handleNewBooking/test/webhook-producer-booking-requested.test.d.ts.map +1 -1
  116. package/dist/packages/features/bookings/lib/handleNewBooking/test/webhook-producer-meeting-webhooks.test.d.ts +2 -0
  117. package/dist/packages/features/bookings/lib/handleNewBooking/test/webhook-producer-meeting-webhooks.test.d.ts.map +1 -0
  118. package/dist/packages/features/bookings/lib/handleNewBooking/validateBookingTimeIsNotOutOfBounds.d.ts +2 -2
  119. package/dist/packages/features/bookings/lib/handleNewBooking/validateBookingTimeIsNotOutOfBounds.d.ts.map +1 -1
  120. package/dist/packages/features/bookings/lib/handleNewBooking/validateEventLength.d.ts +2 -2
  121. package/dist/packages/features/bookings/lib/handleNewBooking/validateEventLength.d.ts.map +1 -1
  122. package/dist/packages/features/bookings/lib/handleNewBooking/validateRescheduleRestrictions.d.ts +9 -0
  123. package/dist/packages/features/bookings/lib/handleNewBooking/validateRescheduleRestrictions.d.ts.map +1 -0
  124. package/dist/packages/features/bookings/lib/handleNewBooking/validateRescheduleRestrictions.test.d.ts +2 -0
  125. package/dist/packages/features/bookings/lib/handleNewBooking/validateRescheduleRestrictions.test.d.ts.map +1 -0
  126. package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts +12 -14
  127. package/dist/packages/features/bookings/lib/handleSeats/cancel/cancelAttendeeSeat.d.ts.map +1 -1
  128. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +1 -0
  129. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  130. package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts +1 -1
  131. package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts.map +1 -1
  132. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts +1 -1
  133. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts.map +1 -1
  134. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts +1 -1
  135. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts.map +1 -1
  136. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +1 -0
  137. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts.map +1 -1
  138. package/dist/packages/features/bookings/lib/isActionDisabledByScope.d.ts +24 -0
  139. package/dist/packages/features/bookings/lib/isActionDisabledByScope.d.ts.map +1 -0
  140. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts +9 -2
  141. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts.map +1 -1
  142. package/dist/packages/features/bookings/lib/payment/getBooking.test.d.ts +2 -0
  143. package/dist/packages/features/bookings/lib/payment/getBooking.test.d.ts.map +1 -0
  144. package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts.map +1 -1
  145. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +1 -0
  146. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts.map +1 -1
  147. package/dist/packages/features/bookings/lib/reschedule/determineReschedulePreventionRedirect.d.ts +1 -0
  148. package/dist/packages/features/bookings/lib/reschedule/determineReschedulePreventionRedirect.d.ts.map +1 -1
  149. package/dist/packages/features/bookings/lib/sanitize-organizer-email-fields.d.ts +15 -0
  150. package/dist/packages/features/bookings/lib/sanitize-organizer-email-fields.d.ts.map +1 -0
  151. package/dist/packages/features/bookings/lib/sanitize-organizer-email-fields.test.d.ts +2 -0
  152. package/dist/packages/features/bookings/lib/sanitize-organizer-email-fields.test.d.ts.map +1 -0
  153. package/dist/packages/features/bookings/lib/service/InstantBookingCreateService.d.ts.map +1 -1
  154. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts +374 -11
  155. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts.map +1 -1
  156. package/dist/packages/features/bookings/lib/utils/BookingDataPreparationService.d.ts +31 -0
  157. package/dist/packages/features/bookings/lib/utils/BookingDataPreparationService.d.ts.map +1 -0
  158. package/dist/packages/features/bookings/lib/utils/BookingDataPreparationService.test.d.ts +2 -0
  159. package/dist/packages/features/bookings/lib/utils/BookingDataPreparationService.test.d.ts.map +1 -0
  160. package/dist/packages/features/bookings/lib/utils/BookingDataPreparationService.types.d.ts +118 -0
  161. package/dist/packages/features/bookings/lib/utils/BookingDataPreparationService.types.d.ts.map +1 -0
  162. package/dist/packages/features/ee/billing/constants.d.ts +0 -1
  163. package/dist/packages/features/ee/billing/constants.d.ts.map +1 -1
  164. package/dist/packages/features/ee/billing/di/modules/TeamBillingDataRepositoryFactory.d.ts.map +1 -1
  165. package/dist/packages/features/ee/billing/domain/billing-plans.d.ts +6 -0
  166. package/dist/packages/features/ee/billing/domain/billing-plans.d.ts.map +1 -1
  167. package/dist/packages/features/ee/billing/helpers/getUserAndTeamWithBillingPermission.d.ts +1 -1
  168. package/dist/packages/features/ee/billing/helpers/getUserAndTeamWithBillingPermission.d.ts.map +1 -1
  169. package/dist/packages/features/ee/billing/repository/adminBilling/AdminBillingRepository.d.ts +30 -7
  170. package/dist/packages/features/ee/billing/repository/adminBilling/AdminBillingRepository.d.ts.map +1 -1
  171. package/dist/packages/features/ee/billing/repository/dunning/IDunningRepository.d.ts +1 -0
  172. package/dist/packages/features/ee/billing/repository/dunning/IDunningRepository.d.ts.map +1 -1
  173. package/dist/packages/features/ee/billing/repository/dunning/OrgDunningRepository.d.ts.map +1 -1
  174. package/dist/packages/features/ee/billing/repository/dunning/TeamDunningRepository.d.ts.map +1 -1
  175. package/dist/packages/features/ee/billing/repository/teamBillingData/PrismaTeamBillingRepository.d.ts +5 -2
  176. package/dist/packages/features/ee/billing/repository/teamBillingData/PrismaTeamBillingRepository.d.ts.map +1 -1
  177. package/dist/packages/features/ee/billing/service/adminBillingMode/AdminBillingModeService.d.ts +20 -0
  178. package/dist/packages/features/ee/billing/service/adminBillingMode/AdminBillingModeService.d.ts.map +1 -0
  179. package/dist/packages/features/ee/billing/service/dunning/BaseDunningService.d.ts +1 -1
  180. package/dist/packages/features/ee/billing/service/dunning/BaseDunningService.d.ts.map +1 -1
  181. package/dist/packages/features/ee/billing/service/dunning/DunningMapper.d.ts +1 -0
  182. package/dist/packages/features/ee/billing/service/dunning/DunningMapper.d.ts.map +1 -1
  183. package/dist/packages/features/ee/billing/service/dunning/trigger/schema.d.ts +2 -2
  184. package/dist/packages/features/ee/billing/service/proration/MonthlyProrationService.d.ts.map +1 -1
  185. package/dist/packages/features/ee/billing/service/seatBillingStrategy/HighWaterMarkStrategy.d.ts +2 -0
  186. package/dist/packages/features/ee/billing/service/seatBillingStrategy/HighWaterMarkStrategy.d.ts.map +1 -1
  187. package/dist/packages/features/ee/billing/service/seatBillingStrategy/SeatBillingStrategyFactory.d.ts.map +1 -1
  188. package/dist/packages/features/ee/billing/ui/SeatBasedBilling.d.ts +23 -0
  189. package/dist/packages/features/ee/billing/ui/SeatBasedBilling.d.ts.map +1 -0
  190. package/dist/packages/features/ee/payments/api/handle-setup-success-integration.test.d.ts +2 -0
  191. package/dist/packages/features/ee/payments/api/handle-setup-success-integration.test.d.ts.map +1 -0
  192. package/dist/packages/features/ee/payments/api/handle-setup-success.test.d.ts +2 -0
  193. package/dist/packages/features/ee/payments/api/handle-setup-success.test.d.ts.map +1 -0
  194. package/dist/packages/features/ee/payments/api/webhook.d.ts +2 -1
  195. package/dist/packages/features/ee/payments/api/webhook.d.ts.map +1 -1
  196. package/dist/packages/features/ee/payments/pages/payment.d.ts +3 -0
  197. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  198. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +4 -2
  199. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  200. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +1 -0
  201. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  202. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  203. package/dist/packages/features/ee/workflows/lib/getAllWorkflows.d.ts +6 -0
  204. package/dist/packages/features/ee/workflows/lib/getAllWorkflows.d.ts.map +1 -1
  205. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +10 -0
  206. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  207. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -0
  208. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  209. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts +2 -0
  210. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts.map +1 -1
  211. package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -1
  212. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
  213. package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
  214. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts +1 -0
  215. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
  216. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.test.d.ts +2 -0
  217. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.test.d.ts.map +1 -0
  218. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
  219. package/dist/packages/features/ee/workflows/lib/scheduleBookingReminders.d.ts +1 -1
  220. package/dist/packages/features/ee/workflows/lib/scheduleBookingReminders.d.ts.map +1 -1
  221. package/dist/packages/features/ee/workflows/lib/scheduleWorkflowNotifications.d.ts +2 -1
  222. package/dist/packages/features/ee/workflows/lib/scheduleWorkflowNotifications.d.ts.map +1 -1
  223. package/dist/packages/features/ee/workflows/lib/service/{EmailWorkflowService.d.ts → email-workflow-service.d.ts} +17 -5
  224. package/dist/packages/features/ee/workflows/lib/service/email-workflow-service.d.ts.map +1 -0
  225. package/dist/packages/features/ee/workflows/lib/service/email-workflow-service.test.d.ts +2 -0
  226. package/dist/packages/features/ee/workflows/lib/service/email-workflow-service.test.d.ts.map +1 -0
  227. package/dist/packages/features/ee/workflows/lib/service/{WorkflowService.d.ts → workflow-service.d.ts} +6 -3
  228. package/dist/packages/features/ee/workflows/lib/service/workflow-service.d.ts.map +1 -0
  229. package/dist/packages/features/ee/workflows/lib/service/workflow-service.test.d.ts +2 -0
  230. package/dist/packages/features/ee/workflows/lib/service/workflow-service.test.d.ts.map +1 -0
  231. package/dist/packages/features/ee/workflows/lib/service/workflowOptOutService.d.ts.map +1 -1
  232. package/dist/packages/features/ee/workflows/lib/types.d.ts +7 -0
  233. package/dist/packages/features/ee/workflows/lib/types.d.ts.map +1 -1
  234. package/dist/packages/features/ee/workflows/repositories/{WorkflowReminderRepository.d.ts → workflow-reminder-repository.d.ts} +87 -11
  235. package/dist/packages/features/ee/workflows/repositories/workflow-reminder-repository.d.ts.map +1 -0
  236. package/dist/packages/features/ee/workflows/repositories/workflow-reminder-repository.test.d.ts +2 -0
  237. package/dist/packages/features/ee/workflows/repositories/workflow-reminder-repository.test.d.ts.map +1 -0
  238. package/dist/packages/features/ee/workflows/repositories/{WorkflowRepository.d.ts → workflow-repository.d.ts} +21 -1
  239. package/dist/packages/features/ee/workflows/repositories/workflow-repository.d.ts.map +1 -0
  240. package/dist/packages/features/ee/workflows/repositories/workflow-repository.test.d.ts +2 -0
  241. package/dist/packages/features/ee/workflows/repositories/workflow-repository.test.d.ts.map +1 -0
  242. package/dist/packages/features/eventtypes/components/AssignAllTeamMembers.d.ts +2 -5
  243. package/dist/packages/features/eventtypes/components/AssignAllTeamMembers.d.ts.map +1 -1
  244. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +44 -0
  245. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -0
  246. package/dist/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.d.ts +26 -0
  247. package/dist/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.d.ts.map +1 -0
  248. package/dist/packages/features/eventtypes/components/tabs/advanced/DisableReschedulingController.d.ts +18 -0
  249. package/dist/packages/features/eventtypes/components/tabs/advanced/DisableReschedulingController.d.ts.map +1 -0
  250. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +144 -0
  251. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -0
  252. package/dist/packages/features/eventtypes/components/tabs/advanced/FormBuilder.d.ts +46 -0
  253. package/dist/packages/features/eventtypes/components/tabs/advanced/FormBuilder.d.ts.map +1 -0
  254. package/dist/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.d.ts +27 -0
  255. package/dist/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.d.ts.map +1 -0
  256. package/dist/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.d.ts +0 -6
  257. package/dist/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.d.ts.map +1 -1
  258. package/dist/packages/features/eventtypes/di/EventTypeService.container.d.ts.map +1 -1
  259. package/dist/packages/features/eventtypes/di/EventTypeService.module.d.ts +2 -1
  260. package/dist/packages/features/eventtypes/di/EventTypeService.module.d.ts.map +1 -1
  261. package/dist/packages/features/eventtypes/eventtypes.repository.interface.d.ts +12 -5
  262. package/dist/packages/features/eventtypes/eventtypes.repository.interface.d.ts.map +1 -1
  263. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +359 -323
  264. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts.map +1 -1
  265. package/dist/packages/features/eventtypes/lib/eventTypeUpdateUtils.d.ts +45 -0
  266. package/dist/packages/features/eventtypes/lib/eventTypeUpdateUtils.d.ts.map +1 -0
  267. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +150 -149
  268. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts.map +1 -1
  269. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts +8 -0
  270. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts.map +1 -1
  271. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts +3 -0
  272. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts.map +1 -1
  273. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +363 -326
  274. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  275. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +2 -0
  276. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  277. package/dist/packages/features/eventtypes/lib/types.d.ts +88 -13
  278. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  279. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +238 -216
  280. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts.map +1 -1
  281. package/dist/packages/features/eventtypes/repositories/__tests__/EventTypeRepository.integration-test.d.ts +2 -0
  282. package/dist/packages/features/eventtypes/repositories/__tests__/EventTypeRepository.integration-test.d.ts.map +1 -0
  283. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts +951 -252
  284. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts.map +1 -1
  285. package/dist/packages/features/eventtypes/service/EventTypeService.d.ts +40 -8
  286. package/dist/packages/features/eventtypes/service/EventTypeService.d.ts.map +1 -1
  287. package/dist/packages/features/form-builder/schema.d.ts +2 -2
  288. package/dist/packages/features/form-builder/testUtils.d.ts +1 -1
  289. package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
  290. package/dist/packages/features/schedules/components/ScheduleComponent.d.ts.map +1 -1
  291. package/dist/packages/features/schedules/components/ScheduleComponent.test.d.ts +2 -0
  292. package/dist/packages/features/schedules/components/ScheduleComponent.test.d.ts.map +1 -0
  293. package/dist/packages/features/schedules/lib/slots.d.ts +2 -2
  294. package/dist/packages/features/schedules/lib/slots.d.ts.map +1 -1
  295. package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts +6 -0
  296. package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts.map +1 -1
  297. package/dist/packages/features/schedules/services/ScheduleService.d.ts +10 -10
  298. package/dist/packages/kysely/types.d.ts +180 -2
  299. package/dist/packages/kysely/types.d.ts.map +1 -1
  300. package/dist/packages/platform/atoms/connect/conferencing-apps/ConferencingAppsViewPlatformWrapper.d.ts.map +1 -1
  301. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +3 -0
  302. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
  303. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts +1 -59
  304. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts.map +1 -1
  305. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +144 -138
  306. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  307. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +3 -0
  308. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  309. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +3 -0
  310. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  311. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts +2 -1
  312. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  313. package/dist/packages/platform/atoms/event-types/hooks/useTabsNavigations.d.ts.map +1 -1
  314. package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts +2 -2
  315. package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts.map +1 -1
  316. package/dist/packages/platform/atoms/event-types/wrappers/EventAvailabilityTabPlatformWrapper.d.ts.map +1 -1
  317. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +3 -3
  318. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  319. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +123 -0
  320. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts.map +1 -1
  321. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +124 -1
  322. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
  323. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +123 -0
  324. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts.map +1 -1
  325. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -0
  326. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts.map +1 -1
  327. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +3 -0
  328. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
  329. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +3 -0
  330. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
  331. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +3 -0
  332. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
  333. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +238 -216
  334. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  335. package/dist/packages/platform/atoms/index.d.ts +2 -0
  336. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  337. package/dist/packages/platform/atoms/onboarding/continue-with-calcom.d.ts +3 -0
  338. package/dist/packages/platform/atoms/onboarding/continue-with-calcom.d.ts.map +1 -0
  339. package/dist/packages/platform/atoms/onboarding/export.d.ts +3 -0
  340. package/dist/packages/platform/atoms/onboarding/export.d.ts.map +1 -0
  341. package/dist/packages/platform/atoms/onboarding/onboarding-embed.d.ts +3 -0
  342. package/dist/packages/platform/atoms/onboarding/onboarding-embed.d.ts.map +1 -0
  343. package/dist/packages/platform/atoms/onboarding/types.d.ts +31 -0
  344. package/dist/packages/platform/atoms/onboarding/types.d.ts.map +1 -0
  345. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
  346. package/dist/packages/platform/atoms/src/components/ui/toast.d.ts +1 -1
  347. package/dist/packages/platform/libraries/app-store.d.ts +1 -0
  348. package/dist/packages/platform/libraries/app-store.d.ts.map +1 -1
  349. package/dist/packages/platform/libraries/bookings.d.ts +13 -0
  350. package/dist/packages/platform/libraries/bookings.d.ts.map +1 -1
  351. package/dist/packages/platform/libraries/calendars.d.ts +7 -0
  352. package/dist/packages/platform/libraries/calendars.d.ts.map +1 -1
  353. package/dist/packages/platform/libraries/conferencing.d.ts +1 -0
  354. package/dist/packages/platform/libraries/conferencing.d.ts.map +1 -1
  355. package/dist/packages/platform/libraries/emails.d.ts +4 -0
  356. package/dist/packages/platform/libraries/emails.d.ts.map +1 -1
  357. package/dist/packages/platform/libraries/errors.d.ts +1 -0
  358. package/dist/packages/platform/libraries/errors.d.ts.map +1 -1
  359. package/dist/packages/platform/libraries/event-types.d.ts +5 -0
  360. package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
  361. package/dist/packages/platform/libraries/index.d.ts +10 -50
  362. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  363. package/dist/packages/platform/libraries/oauth.d.ts +7 -0
  364. package/dist/packages/platform/libraries/oauth.d.ts.map +1 -0
  365. package/dist/packages/platform/libraries/organizations.d.ts +4 -0
  366. package/dist/packages/platform/libraries/organizations.d.ts.map +1 -1
  367. package/dist/packages/platform/libraries/repositories.d.ts +2 -1
  368. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  369. package/dist/packages/platform/libraries/slots.d.ts +1 -0
  370. package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
  371. package/dist/packages/platform/libraries/tasker.d.ts +1 -0
  372. package/dist/packages/platform/libraries/tasker.d.ts.map +1 -1
  373. package/dist/packages/platform/libraries/workflows.d.ts +1 -0
  374. package/dist/packages/platform/libraries/workflows.d.ts.map +1 -1
  375. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +2 -0
  376. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  377. package/dist/packages/platform/types/bookings/2024-08-13/inputs/index.d.ts +1 -0
  378. package/dist/packages/platform/types/bookings/2024-08-13/inputs/index.d.ts.map +1 -1
  379. package/dist/packages/platform/types/bookings/2024-08-13/inputs/request-reschedule.input.d.ts +4 -0
  380. package/dist/packages/platform/types/bookings/2024-08-13/inputs/request-reschedule.input.d.ts.map +1 -0
  381. package/dist/packages/platform/types/bookings/2024-08-13/inputs/reschedule-booking.input.d.ts.map +1 -1
  382. package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts +1 -0
  383. package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts.map +1 -1
  384. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/reserve-slot.input.d.ts.map +1 -1
  385. package/dist/packages/platform/types/slots/slots-2024-09-04/outputs/reserve-slot.output.d.ts.map +1 -1
  386. package/dist/packages/prisma/zod/inputTypeSchemas/AttendeeScalarFieldEnumSchema.d.ts +1 -1
  387. package/dist/packages/prisma/zod/inputTypeSchemas/AttendeeScalarFieldEnumSchema.d.ts.map +1 -1
  388. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActionSchema.d.ts +5 -0
  389. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActionSchema.d.ts.map +1 -0
  390. package/dist/packages/prisma/zod/inputTypeSchemas/AuditCategorySchema.d.ts +5 -0
  391. package/dist/packages/prisma/zod/inputTypeSchemas/AuditCategorySchema.d.ts.map +1 -0
  392. package/dist/packages/prisma/zod/inputTypeSchemas/AuditEventScalarFieldEnumSchema.d.ts +4 -0
  393. package/dist/packages/prisma/zod/inputTypeSchemas/AuditEventScalarFieldEnumSchema.d.ts.map +1 -0
  394. package/dist/packages/prisma/zod/inputTypeSchemas/AuditResultSchema.d.ts +5 -0
  395. package/dist/packages/prisma/zod/inputTypeSchemas/AuditResultSchema.d.ts.map +1 -0
  396. package/dist/packages/prisma/zod/inputTypeSchemas/AuditRetentionTierSchema.d.ts +5 -0
  397. package/dist/packages/prisma/zod/inputTypeSchemas/AuditRetentionTierSchema.d.ts.map +1 -0
  398. package/dist/packages/prisma/zod/inputTypeSchemas/AuditSensitivitySchema.d.ts +5 -0
  399. package/dist/packages/prisma/zod/inputTypeSchemas/AuditSensitivitySchema.d.ts.map +1 -0
  400. package/dist/packages/prisma/zod/inputTypeSchemas/AuditSourceSchema.d.ts +5 -0
  401. package/dist/packages/prisma/zod/inputTypeSchemas/AuditSourceSchema.d.ts.map +1 -0
  402. package/dist/packages/prisma/zod/inputTypeSchemas/AuditVisibilitySchema.d.ts +5 -0
  403. package/dist/packages/prisma/zod/inputTypeSchemas/AuditVisibilitySchema.d.ts.map +1 -0
  404. package/dist/packages/prisma/zod/inputTypeSchemas/CreditUsageTypeSchema.d.ts +1 -1
  405. package/dist/packages/prisma/zod/inputTypeSchemas/CreditUsageTypeSchema.d.ts.map +1 -1
  406. package/dist/packages/prisma/zod/inputTypeSchemas/CustomDomainScalarFieldEnumSchema.d.ts +4 -0
  407. package/dist/packages/prisma/zod/inputTypeSchemas/CustomDomainScalarFieldEnumSchema.d.ts.map +1 -0
  408. package/dist/packages/prisma/zod/inputTypeSchemas/DisableCancelRescheduleScopeSchema.d.ts +5 -0
  409. package/dist/packages/prisma/zod/inputTypeSchemas/DisableCancelRescheduleScopeSchema.d.ts.map +1 -0
  410. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts +1 -1
  411. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts.map +1 -1
  412. package/dist/packages/prisma/zod/inputTypeSchemas/ExperimentScalarFieldEnumSchema.d.ts +1 -1
  413. package/dist/packages/prisma/zod/inputTypeSchemas/ExperimentScalarFieldEnumSchema.d.ts.map +1 -1
  414. package/dist/packages/prisma/zod/inputTypeSchemas/ExperimentVariantScalarFieldEnumSchema.d.ts +1 -1
  415. package/dist/packages/prisma/zod/inputTypeSchemas/ExperimentVariantScalarFieldEnumSchema.d.ts.map +1 -1
  416. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationEventSchema.d.ts +5 -0
  417. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationEventSchema.d.ts.map +1 -0
  418. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationPlatformSchema.d.ts +5 -0
  419. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationPlatformSchema.d.ts.map +1 -0
  420. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationPreferenceScalarFieldEnumSchema.d.ts +4 -0
  421. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationPreferenceScalarFieldEnumSchema.d.ts.map +1 -0
  422. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationPreferenceTargetTypeSchema.d.ts +5 -0
  423. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationPreferenceTargetTypeSchema.d.ts.map +1 -0
  424. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationSubscriptionTypeSchema.d.ts +5 -0
  425. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationSubscriptionTypeSchema.d.ts.map +1 -0
  426. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationsSubscriptionsScalarFieldEnumSchema.d.ts +1 -1
  427. package/dist/packages/prisma/zod/inputTypeSchemas/NotificationsSubscriptionsScalarFieldEnumSchema.d.ts.map +1 -1
  428. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthAuthorizationScalarFieldEnumSchema.d.ts +4 -0
  429. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthAuthorizationScalarFieldEnumSchema.d.ts.map +1 -0
  430. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts +1 -1
  431. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts.map +1 -1
  432. package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationSettingsScalarFieldEnumSchema.d.ts +1 -1
  433. package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationSettingsScalarFieldEnumSchema.d.ts.map +1 -1
  434. package/dist/packages/prisma/zod/inputTypeSchemas/SelectedCalendarScalarFieldEnumSchema.d.ts +1 -1
  435. package/dist/packages/prisma/zod/inputTypeSchemas/SelectedCalendarScalarFieldEnumSchema.d.ts.map +1 -1
  436. package/dist/packages/prisma/zod/inputTypeSchemas/SmtpConfigurationScalarFieldEnumSchema.d.ts +4 -0
  437. package/dist/packages/prisma/zod/inputTypeSchemas/SmtpConfigurationScalarFieldEnumSchema.d.ts.map +1 -0
  438. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts +17 -0
  439. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts.map +1 -1
  440. package/dist/packages/prisma/zod/modelSchema/AttendeeSchema.d.ts +3 -0
  441. package/dist/packages/prisma/zod/modelSchema/AttendeeSchema.d.ts.map +1 -1
  442. package/dist/packages/prisma/zod/modelSchema/AuditEventSchema.d.ts +71 -0
  443. package/dist/packages/prisma/zod/modelSchema/AuditEventSchema.d.ts.map +1 -0
  444. package/dist/packages/prisma/zod/modelSchema/CalendarCacheEventSchema.d.ts +2 -2
  445. package/dist/packages/prisma/zod/modelSchema/CreditExpenseLogSchema.d.ts +3 -3
  446. package/dist/packages/prisma/zod/modelSchema/CustomDomainSchema.d.ts +29 -0
  447. package/dist/packages/prisma/zod/modelSchema/CustomDomainSchema.d.ts.map +1 -0
  448. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts +37 -4
  449. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts.map +1 -1
  450. package/dist/packages/prisma/zod/modelSchema/ExperimentSchema.d.ts +8 -2
  451. package/dist/packages/prisma/zod/modelSchema/ExperimentSchema.d.ts.map +1 -1
  452. package/dist/packages/prisma/zod/modelSchema/ExperimentVariantSchema.d.ts +3 -0
  453. package/dist/packages/prisma/zod/modelSchema/ExperimentVariantSchema.d.ts.map +1 -1
  454. package/dist/packages/prisma/zod/modelSchema/NotificationPreferenceSchema.d.ts +29 -0
  455. package/dist/packages/prisma/zod/modelSchema/NotificationPreferenceSchema.d.ts.map +1 -0
  456. package/dist/packages/prisma/zod/modelSchema/NotificationsSubscriptionsSchema.d.ts +21 -0
  457. package/dist/packages/prisma/zod/modelSchema/NotificationsSubscriptionsSchema.d.ts.map +1 -1
  458. package/dist/packages/prisma/zod/modelSchema/OAuthAuthorizationSchema.d.ts +26 -0
  459. package/dist/packages/prisma/zod/modelSchema/OAuthAuthorizationSchema.d.ts.map +1 -0
  460. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts +0 -6
  461. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts.map +1 -1
  462. package/dist/packages/prisma/zod/modelSchema/OrganizationSettingsSchema.d.ts +3 -0
  463. package/dist/packages/prisma/zod/modelSchema/OrganizationSettingsSchema.d.ts.map +1 -1
  464. package/dist/packages/prisma/zod/modelSchema/OutOfOfficeEntrySchema.d.ts +2 -2
  465. package/dist/packages/prisma/zod/modelSchema/SelectedCalendarSchema.d.ts +3 -0
  466. package/dist/packages/prisma/zod/modelSchema/SelectedCalendarSchema.d.ts.map +1 -1
  467. package/dist/packages/prisma/zod/modelSchema/SmtpConfigurationSchema.d.ts +41 -0
  468. package/dist/packages/prisma/zod/modelSchema/SmtpConfigurationSchema.d.ts.map +1 -0
  469. package/dist/packages/prisma/zod/modelSchema/index.d.ts +5 -0
  470. package/dist/packages/prisma/zod/modelSchema/index.d.ts.map +1 -1
  471. package/dist/packages/prisma/zod-utils.d.ts +62 -4
  472. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  473. package/dist/{server.browser-DCKu7Rpb.js → server.browser-CDJE0vl2.js} +1 -1
  474. package/dist/{useIsAppEnabled-BOS-Bwce.js → useIsAppEnabled-2m9tJsEA.js} +1 -1
  475. package/globals.min.css +3 -3
  476. package/package.json +2 -2
  477. package/dist/DateRangePicker-C9iMfRWm.js +0 -99
  478. package/dist/EventTypeDescription-C5kU4nj0.js +0 -79
  479. package/dist/index-LSEIYQIk.js +0 -28
  480. package/dist/packages/features/bookings/lib/handleNewBooking/addVideoCallDataToEvent.d.ts +0 -11
  481. package/dist/packages/features/bookings/lib/handleNewBooking/addVideoCallDataToEvent.d.ts.map +0 -1
  482. package/dist/packages/features/bookings/lib/handleNewBooking/addVideoCallDataToEvent.test.d.ts +0 -2
  483. package/dist/packages/features/bookings/lib/handleNewBooking/addVideoCallDataToEvent.test.d.ts.map +0 -1
  484. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +0 -92
  485. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts.map +0 -1
  486. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts.map +0 -1
  487. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.test.d.ts +0 -2
  488. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.test.d.ts.map +0 -1
  489. package/dist/packages/features/ee/workflows/lib/service/WorkflowService.d.ts.map +0 -1
  490. package/dist/packages/features/ee/workflows/lib/service/WorkflowService.test.d.ts +0 -2
  491. package/dist/packages/features/ee/workflows/lib/service/WorkflowService.test.d.ts.map +0 -1
  492. package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts.map +0 -1
  493. package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.test.d.ts +0 -2
  494. package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.test.d.ts.map +0 -1
  495. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts.map +0 -1
  496. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.test.d.ts +0 -2
  497. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.test.d.ts.map +0 -1
@@ -0,0 +1,1432 @@
1
+ import { jsx as c, jsxs as P, Fragment as S } from "react/jsx-runtime";
2
+ import { ar as He, as as W, at as Nn, au as Cn, av as kn, aw as xn, ax as Ke, ay as oe, az as Pn, aA as Ve, aB as Ue, aC as On, aD as $n, aE as Sn, aF as Fn, aG as In, aH as Ln, aI as Wn, aJ as N, aK as V, aL as ae, aM as X, aN as We, aO as En, aP as Rn, aQ as T, aR as Tn, aS as An, aT as Me, aU as Yn, aV as Bn, aW as L, aX as ze, aY as jn, aZ as Hn, a_ as Ee, y as Z, a$ as Re, B as Kn } from "./index-BYBZ-zEd.js";
3
+ import { forwardRef as A, createElement as C, Children as G, isValidElement as ie, cloneElement as Ze, Fragment as Vn, useRef as U, useState as B, useCallback as fe, useEffect as Q, useContext as j, createContext as H, useLayoutEffect as Un, useMemo as zn } from "react";
4
+ import Zn from "react-dom";
5
+ const Gn = /* @__PURE__ */ A((e, n) => {
6
+ var t;
7
+ const { container: o = globalThis == null || (t = globalThis.document) === null || t === void 0 ? void 0 : t.body, ...r } = e;
8
+ return o ? /* @__PURE__ */ Zn.createPortal(/* @__PURE__ */ C(He.div, W({}, r, {
9
+ ref: n
10
+ })), o) : null;
11
+ }), Ge = /* @__PURE__ */ A((e, n) => {
12
+ const { children: t, ...o } = e, r = G.toArray(t), a = r.find(qn);
13
+ if (a) {
14
+ const i = a.props.children, l = r.map((s) => s === a ? G.count(i) > 1 ? G.only(null) : /* @__PURE__ */ ie(i) ? i.props.children : null : s);
15
+ return /* @__PURE__ */ C(ge, W({}, o, {
16
+ ref: n
17
+ }), /* @__PURE__ */ ie(i) ? /* @__PURE__ */ Ze(i, void 0, l) : null);
18
+ }
19
+ return /* @__PURE__ */ C(ge, W({}, o, {
20
+ ref: n
21
+ }), t);
22
+ });
23
+ Ge.displayName = "Slot";
24
+ const ge = /* @__PURE__ */ A((e, n) => {
25
+ const { children: t, ...o } = e;
26
+ return /* @__PURE__ */ ie(t) ? /* @__PURE__ */ Ze(t, {
27
+ ...Jn(o, t.props),
28
+ ref: n ? Nn(n, t.ref) : t.ref
29
+ }) : G.count(t) > 1 ? G.only(null) : null;
30
+ });
31
+ ge.displayName = "SlotClone";
32
+ const Xn = ({ children: e }) => /* @__PURE__ */ C(Vn, null, e);
33
+ function qn(e) {
34
+ return /* @__PURE__ */ ie(e) && e.type === Xn;
35
+ }
36
+ function Jn(e, n) {
37
+ const t = {
38
+ ...n
39
+ };
40
+ for (const o in n) {
41
+ const r = e[o], a = n[o];
42
+ /^on[A-Z]/.test(o) ? r && a ? t[o] = (...l) => {
43
+ a(...l), r(...l);
44
+ } : r && (t[o] = r) : o === "style" ? t[o] = {
45
+ ...r,
46
+ ...a
47
+ } : o === "className" && (t[o] = [
48
+ r,
49
+ a
50
+ ].filter(Boolean).join(" "));
51
+ }
52
+ return {
53
+ ...e,
54
+ ...t
55
+ };
56
+ }
57
+ const Xe = "Popover", [qe] = Sn(Xe, [
58
+ Ue
59
+ ]), we = Ue(), [Qn, z] = qe(Xe), et = (e) => {
60
+ const { __scopePopover: n, children: t, open: o, defaultOpen: r, onOpenChange: a, modal: i = !1 } = e, l = we(n), s = U(null), [u, d] = B(!1), [f = !1, v] = Cn({
61
+ prop: o,
62
+ defaultProp: r,
63
+ onChange: a
64
+ });
65
+ return /* @__PURE__ */ C(kn, l, /* @__PURE__ */ C(Qn, {
66
+ scope: n,
67
+ contentId: xn(),
68
+ triggerRef: s,
69
+ open: f,
70
+ onOpenChange: v,
71
+ onOpenToggle: fe(
72
+ () => v(
73
+ (h) => !h
74
+ ),
75
+ [
76
+ v
77
+ ]
78
+ ),
79
+ hasCustomAnchor: u,
80
+ onCustomAnchorAdd: fe(
81
+ () => d(!0),
82
+ []
83
+ ),
84
+ onCustomAnchorRemove: fe(
85
+ () => d(!1),
86
+ []
87
+ ),
88
+ modal: i
89
+ }, t));
90
+ }, nt = "PopoverTrigger", tt = /* @__PURE__ */ A((e, n) => {
91
+ const { __scopePopover: t, ...o } = e, r = z(nt, t), a = we(t), i = Ke(n, r.triggerRef), l = /* @__PURE__ */ C(He.button, W({
92
+ type: "button",
93
+ "aria-haspopup": "dialog",
94
+ "aria-expanded": r.open,
95
+ "aria-controls": r.contentId,
96
+ "data-state": en(r.open)
97
+ }, o, {
98
+ ref: i,
99
+ onClick: oe(e.onClick, r.onOpenToggle)
100
+ }));
101
+ return r.hasCustomAnchor ? l : /* @__PURE__ */ C(Pn, W({
102
+ asChild: !0
103
+ }, a), l);
104
+ }), Je = "PopoverPortal", [ot, rt] = qe(Je, {
105
+ forceMount: void 0
106
+ }), at = (e) => {
107
+ const { __scopePopover: n, forceMount: t, children: o, container: r } = e, a = z(Je, n);
108
+ return /* @__PURE__ */ C(ot, {
109
+ scope: n,
110
+ forceMount: t
111
+ }, /* @__PURE__ */ C(Ve, {
112
+ present: t || a.open
113
+ }, /* @__PURE__ */ C(Gn, {
114
+ asChild: !0,
115
+ container: r
116
+ }, o)));
117
+ }, q = "PopoverContent", it = /* @__PURE__ */ A((e, n) => {
118
+ const t = rt(q, e.__scopePopover), { forceMount: o = t.forceMount, ...r } = e, a = z(q, e.__scopePopover);
119
+ return /* @__PURE__ */ C(Ve, {
120
+ present: o || a.open
121
+ }, a.modal ? /* @__PURE__ */ C(lt, W({}, r, {
122
+ ref: n
123
+ })) : /* @__PURE__ */ C(st, W({}, r, {
124
+ ref: n
125
+ })));
126
+ }), lt = /* @__PURE__ */ A((e, n) => {
127
+ const t = z(q, e.__scopePopover), o = U(null), r = Ke(n, o), a = U(!1);
128
+ return Q(() => {
129
+ const i = o.current;
130
+ if (i) return On(i);
131
+ }, []), /* @__PURE__ */ C($n, {
132
+ as: Ge,
133
+ allowPinchZoom: !0
134
+ }, /* @__PURE__ */ C(Qe, W({}, e, {
135
+ ref: r,
136
+ trapFocus: t.open,
137
+ disableOutsidePointerEvents: !0,
138
+ onCloseAutoFocus: oe(e.onCloseAutoFocus, (i) => {
139
+ var l;
140
+ i.preventDefault(), a.current || (l = t.triggerRef.current) === null || l === void 0 || l.focus();
141
+ }),
142
+ onPointerDownOutside: oe(e.onPointerDownOutside, (i) => {
143
+ const l = i.detail.originalEvent, s = l.button === 0 && l.ctrlKey === !0, u = l.button === 2 || s;
144
+ a.current = u;
145
+ }, {
146
+ checkForDefaultPrevented: !1
147
+ }),
148
+ onFocusOutside: oe(
149
+ e.onFocusOutside,
150
+ (i) => i.preventDefault(),
151
+ {
152
+ checkForDefaultPrevented: !1
153
+ }
154
+ )
155
+ })));
156
+ }), st = /* @__PURE__ */ A((e, n) => {
157
+ const t = z(q, e.__scopePopover), o = U(!1), r = U(!1);
158
+ return /* @__PURE__ */ C(Qe, W({}, e, {
159
+ ref: n,
160
+ trapFocus: !1,
161
+ disableOutsidePointerEvents: !1,
162
+ onCloseAutoFocus: (a) => {
163
+ var i;
164
+ if ((i = e.onCloseAutoFocus) === null || i === void 0 || i.call(e, a), !a.defaultPrevented) {
165
+ var l;
166
+ o.current || (l = t.triggerRef.current) === null || l === void 0 || l.focus(), a.preventDefault();
167
+ }
168
+ o.current = !1, r.current = !1;
169
+ },
170
+ onInteractOutside: (a) => {
171
+ var i, l;
172
+ (i = e.onInteractOutside) === null || i === void 0 || i.call(e, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (r.current = !0));
173
+ const s = a.target;
174
+ ((l = t.triggerRef.current) === null || l === void 0 ? void 0 : l.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
175
+ }
176
+ }));
177
+ }), Qe = /* @__PURE__ */ A((e, n) => {
178
+ const { __scopePopover: t, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEscapeKeyDown: l, onPointerDownOutside: s, onFocusOutside: u, onInteractOutside: d, ...f } = e, v = z(q, t), h = we(t);
179
+ return Fn(), /* @__PURE__ */ C(In, {
180
+ asChild: !0,
181
+ loop: !0,
182
+ trapped: o,
183
+ onMountAutoFocus: r,
184
+ onUnmountAutoFocus: a
185
+ }, /* @__PURE__ */ C(Ln, {
186
+ asChild: !0,
187
+ disableOutsidePointerEvents: i,
188
+ onInteractOutside: d,
189
+ onEscapeKeyDown: l,
190
+ onPointerDownOutside: s,
191
+ onFocusOutside: u,
192
+ onDismiss: () => v.onOpenChange(!1)
193
+ }, /* @__PURE__ */ C(Wn, W({
194
+ "data-state": en(v.open),
195
+ role: "dialog",
196
+ id: v.contentId
197
+ }, h, f, {
198
+ ref: n,
199
+ style: {
200
+ ...f.style,
201
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
202
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
203
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
204
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
205
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
206
+ }
207
+ }))));
208
+ });
209
+ function en(e) {
210
+ return e ? "open" : "closed";
211
+ }
212
+ const ct = et, dt = tt, ut = at, ft = it;
213
+ function k(e, n) {
214
+ const t = N(e);
215
+ return isNaN(n) ? V(e, NaN) : (n && t.setDate(t.getDate() + n), t);
216
+ }
217
+ function F(e, n) {
218
+ const t = N(e);
219
+ if (isNaN(n)) return V(e, NaN);
220
+ if (!n)
221
+ return t;
222
+ const o = t.getDate(), r = V(e, t.getTime());
223
+ r.setMonth(t.getMonth() + n + 1, 0);
224
+ const a = r.getDate();
225
+ return o >= a ? r : (t.setFullYear(
226
+ r.getFullYear(),
227
+ r.getMonth(),
228
+ o
229
+ ), t);
230
+ }
231
+ function _e(e, n) {
232
+ const t = n * 7;
233
+ return k(e, t);
234
+ }
235
+ function vt(e, n) {
236
+ return F(e, n * 12);
237
+ }
238
+ function ht(e) {
239
+ let n;
240
+ return e.forEach(function(t) {
241
+ const o = N(t);
242
+ (n === void 0 || n < o || isNaN(Number(o))) && (n = o);
243
+ }), n || /* @__PURE__ */ new Date(NaN);
244
+ }
245
+ function mt(e) {
246
+ let n;
247
+ return e.forEach((t) => {
248
+ const o = N(t);
249
+ (!n || n > o || isNaN(+o)) && (n = o);
250
+ }), n || /* @__PURE__ */ new Date(NaN);
251
+ }
252
+ function x(e, n) {
253
+ const t = ae(e), o = ae(n);
254
+ return +t == +o;
255
+ }
256
+ function J(e, n) {
257
+ const t = N(e), o = N(n), r = t.getFullYear() - o.getFullYear(), a = t.getMonth() - o.getMonth();
258
+ return r * 12 + a;
259
+ }
260
+ function pt(e, n, t) {
261
+ const o = X(e, t), r = X(n, t), a = +o - We(o), i = +r - We(r);
262
+ return Math.round((a - i) / En);
263
+ }
264
+ function Ne(e) {
265
+ const n = N(e), t = n.getMonth();
266
+ return n.setFullYear(n.getFullYear(), t + 1, 0), n.setHours(23, 59, 59, 999), n;
267
+ }
268
+ function O(e) {
269
+ const n = N(e);
270
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
271
+ }
272
+ function Ce(e, n) {
273
+ var l, s, u, d;
274
+ const t = Rn(), o = (n == null ? void 0 : n.weekStartsOn) ?? ((s = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : s.weekStartsOn) ?? t.weekStartsOn ?? ((d = (u = t.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = N(e), a = r.getDay(), i = (a < o ? -7 : 0) + 6 - (a - o);
275
+ return r.setDate(r.getDate() + i), r.setHours(23, 59, 59, 999), r;
276
+ }
277
+ function nn(e) {
278
+ return Ce(e, { weekStartsOn: 1 });
279
+ }
280
+ function bt(e) {
281
+ const n = N(e), t = n.getFullYear(), o = n.getMonth(), r = V(e, 0);
282
+ return r.setFullYear(t, o + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
283
+ }
284
+ function yt(e) {
285
+ return Math.trunc(+N(e) / 1e3);
286
+ }
287
+ function gt(e) {
288
+ const n = N(e), t = n.getMonth();
289
+ return n.setFullYear(n.getFullYear(), t + 1, 0), n.setHours(0, 0, 0, 0), n;
290
+ }
291
+ function _t(e, n) {
292
+ return pt(
293
+ gt(e),
294
+ O(e),
295
+ n
296
+ ) + 1;
297
+ }
298
+ function De(e, n) {
299
+ const t = N(e), o = N(n);
300
+ return t.getTime() > o.getTime();
301
+ }
302
+ function ke(e, n) {
303
+ const t = N(e), o = N(n);
304
+ return +t < +o;
305
+ }
306
+ function xe(e, n) {
307
+ const t = N(e), o = N(n);
308
+ return t.getFullYear() === o.getFullYear() && t.getMonth() === o.getMonth();
309
+ }
310
+ function Dt(e, n) {
311
+ const t = N(e), o = N(n);
312
+ return t.getFullYear() === o.getFullYear();
313
+ }
314
+ function ve(e, n) {
315
+ return k(e, -n);
316
+ }
317
+ function he(e, n) {
318
+ const t = N(e), o = t.getFullYear(), r = t.getDate(), a = V(e, 0);
319
+ a.setFullYear(o, n, 15), a.setHours(0, 0, 0, 0);
320
+ const i = bt(a);
321
+ return t.setMonth(n, Math.min(r, i)), t;
322
+ }
323
+ function Te(e, n) {
324
+ const t = N(e);
325
+ return isNaN(+t) ? V(e, NaN) : (t.setFullYear(n), t);
326
+ }
327
+ var p = function() {
328
+ return p = Object.assign || function(n) {
329
+ for (var t, o = 1, r = arguments.length; o < r; o++) {
330
+ t = arguments[o];
331
+ for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (n[a] = t[a]);
332
+ }
333
+ return n;
334
+ }, p.apply(this, arguments);
335
+ };
336
+ function Mt(e, n) {
337
+ var t = {};
338
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
339
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
340
+ for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
341
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
342
+ return t;
343
+ }
344
+ function tn(e, n, t) {
345
+ for (var o = 0, r = n.length, a; o < r; o++)
346
+ (a || !(o in n)) && (a || (a = Array.prototype.slice.call(n, 0, o)), a[o] = n[o]);
347
+ return e.concat(a || Array.prototype.slice.call(n));
348
+ }
349
+ function ee(e) {
350
+ return e.mode === "multiple";
351
+ }
352
+ function ne(e) {
353
+ return e.mode === "range";
354
+ }
355
+ function se(e) {
356
+ return e.mode === "single";
357
+ }
358
+ var wt = {
359
+ root: "rdp",
360
+ multiple_months: "rdp-multiple_months",
361
+ with_weeknumber: "rdp-with_weeknumber",
362
+ vhidden: "rdp-vhidden",
363
+ button_reset: "rdp-button_reset",
364
+ button: "rdp-button",
365
+ caption: "rdp-caption",
366
+ caption_start: "rdp-caption_start",
367
+ caption_end: "rdp-caption_end",
368
+ caption_between: "rdp-caption_between",
369
+ caption_label: "rdp-caption_label",
370
+ caption_dropdowns: "rdp-caption_dropdowns",
371
+ dropdown: "rdp-dropdown",
372
+ dropdown_month: "rdp-dropdown_month",
373
+ dropdown_year: "rdp-dropdown_year",
374
+ dropdown_icon: "rdp-dropdown_icon",
375
+ months: "rdp-months",
376
+ month: "rdp-month",
377
+ table: "rdp-table",
378
+ tbody: "rdp-tbody",
379
+ tfoot: "rdp-tfoot",
380
+ head: "rdp-head",
381
+ head_row: "rdp-head_row",
382
+ head_cell: "rdp-head_cell",
383
+ nav: "rdp-nav",
384
+ nav_button: "rdp-nav_button",
385
+ nav_button_previous: "rdp-nav_button_previous",
386
+ nav_button_next: "rdp-nav_button_next",
387
+ nav_icon: "rdp-nav_icon",
388
+ row: "rdp-row",
389
+ weeknumber: "rdp-weeknumber",
390
+ cell: "rdp-cell",
391
+ day: "rdp-day",
392
+ day_today: "rdp-day_today",
393
+ day_outside: "rdp-day_outside",
394
+ day_selected: "rdp-day_selected",
395
+ day_disabled: "rdp-day_disabled",
396
+ day_hidden: "rdp-day_hidden",
397
+ day_range_start: "rdp-day_range_start",
398
+ day_range_end: "rdp-day_range_end",
399
+ day_range_middle: "rdp-day_range_middle"
400
+ };
401
+ function Nt(e, n) {
402
+ return L(e, "LLLL y", n);
403
+ }
404
+ function Ct(e, n) {
405
+ return L(e, "d", n);
406
+ }
407
+ function kt(e, n) {
408
+ return L(e, "LLLL", n);
409
+ }
410
+ function xt(e) {
411
+ return "".concat(e);
412
+ }
413
+ function Pt(e, n) {
414
+ return L(e, "cccccc", n);
415
+ }
416
+ function Ot(e, n) {
417
+ return L(e, "yyyy", n);
418
+ }
419
+ var $t = /* @__PURE__ */ Object.freeze({
420
+ __proto__: null,
421
+ formatCaption: Nt,
422
+ formatDay: Ct,
423
+ formatMonthCaption: kt,
424
+ formatWeekNumber: xt,
425
+ formatWeekdayName: Pt,
426
+ formatYearCaption: Ot
427
+ }), St = function(e, n, t) {
428
+ return L(e, "do MMMM (EEEE)", t);
429
+ }, Ft = function() {
430
+ return "Month: ";
431
+ }, It = function() {
432
+ return "Go to next month";
433
+ }, Lt = function() {
434
+ return "Go to previous month";
435
+ }, Wt = function(e, n) {
436
+ return L(e, "cccc", n);
437
+ }, Et = function(e) {
438
+ return "Week n. ".concat(e);
439
+ }, Rt = function() {
440
+ return "Year: ";
441
+ }, Tt = /* @__PURE__ */ Object.freeze({
442
+ __proto__: null,
443
+ labelDay: St,
444
+ labelMonthDropdown: Ft,
445
+ labelNext: It,
446
+ labelPrevious: Lt,
447
+ labelWeekNumber: Et,
448
+ labelWeekday: Wt,
449
+ labelYearDropdown: Rt
450
+ });
451
+ function At() {
452
+ var e = "buttons", n = wt, t = Tn, o = {}, r = {}, a = 1, i = {}, l = /* @__PURE__ */ new Date();
453
+ return {
454
+ captionLayout: e,
455
+ classNames: n,
456
+ formatters: $t,
457
+ labels: Tt,
458
+ locale: t,
459
+ modifiersClassNames: o,
460
+ modifiers: r,
461
+ numberOfMonths: a,
462
+ styles: i,
463
+ today: l,
464
+ mode: "default"
465
+ };
466
+ }
467
+ function Yt(e) {
468
+ var n = e.fromYear, t = e.toYear, o = e.fromMonth, r = e.toMonth, a = e.fromDate, i = e.toDate;
469
+ return o ? a = O(o) : n && (a = new Date(n, 0, 1)), r ? i = Ne(r) : t && (i = new Date(t, 11, 31)), {
470
+ fromDate: a ? ae(a) : void 0,
471
+ toDate: i ? ae(i) : void 0
472
+ };
473
+ }
474
+ var on = H(void 0);
475
+ function Bt(e) {
476
+ var n, t = e.initialProps, o = At(), r = Yt(t), a = r.fromDate, i = r.toDate, l = (n = t.captionLayout) !== null && n !== void 0 ? n : o.captionLayout;
477
+ l !== "buttons" && (!a || !i) && (l = "buttons");
478
+ var s;
479
+ (se(t) || ee(t) || ne(t)) && (s = t.onSelect);
480
+ var u = p(p(p({}, o), t), { captionLayout: l, classNames: p(p({}, o.classNames), t.classNames), components: p({}, t.components), formatters: p(p({}, o.formatters), t.formatters), fromDate: a, labels: p(p({}, o.labels), t.labels), mode: t.mode || o.mode, modifiers: p(p({}, o.modifiers), t.modifiers), modifiersClassNames: p(p({}, o.modifiersClassNames), t.modifiersClassNames), onSelect: s, styles: p(p({}, o.styles), t.styles), toDate: i });
481
+ return c(on.Provider, { value: u, children: e.children });
482
+ }
483
+ function D() {
484
+ var e = j(on);
485
+ if (!e)
486
+ throw new Error("useDayPicker must be used within a DayPickerProvider.");
487
+ return e;
488
+ }
489
+ function rn(e) {
490
+ var n = D(), t = n.locale, o = n.classNames, r = n.styles, a = n.formatters.formatCaption;
491
+ return c("div", { className: o.caption_label, style: r.caption_label, "aria-live": "polite", role: "presentation", id: e.id, children: a(e.displayMonth, { locale: t }) });
492
+ }
493
+ function jt(e) {
494
+ return c("svg", p({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: c("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" }) }));
495
+ }
496
+ function an(e) {
497
+ var n, t, o = e.onChange, r = e.value, a = e.children, i = e.caption, l = e.className, s = e.style, u = D(), d = (t = (n = u.components) === null || n === void 0 ? void 0 : n.IconDropdown) !== null && t !== void 0 ? t : jt;
498
+ return P("div", { className: l, style: s, children: [c("span", { className: u.classNames.vhidden, children: e["aria-label"] }), c("select", { name: e.name, "aria-label": e["aria-label"], className: u.classNames.dropdown, style: u.styles.dropdown, value: r, onChange: o, children: a }), P("div", { className: u.classNames.caption_label, style: u.styles.caption_label, "aria-hidden": "true", children: [i, c(d, { className: u.classNames.dropdown_icon, style: u.styles.dropdown_icon })] })] });
499
+ }
500
+ function Ht(e) {
501
+ var n, t = D(), o = t.fromDate, r = t.toDate, a = t.styles, i = t.locale, l = t.formatters.formatMonthCaption, s = t.classNames, u = t.components, d = t.labels.labelMonthDropdown;
502
+ if (!o)
503
+ return c(S, {});
504
+ if (!r)
505
+ return c(S, {});
506
+ var f = [];
507
+ if (Dt(o, r))
508
+ for (var v = O(o), h = o.getMonth(); h <= r.getMonth(); h++)
509
+ f.push(he(v, h));
510
+ else
511
+ for (var v = O(/* @__PURE__ */ new Date()), h = 0; h <= 11; h++)
512
+ f.push(he(v, h));
513
+ var b = function(g) {
514
+ var w = Number(g.target.value), M = he(O(e.displayMonth), w);
515
+ e.onChange(M);
516
+ }, _ = (n = u == null ? void 0 : u.Dropdown) !== null && n !== void 0 ? n : an;
517
+ return c(_, { name: "months", "aria-label": d(), className: s.dropdown_month, style: a.dropdown_month, onChange: b, value: e.displayMonth.getMonth(), caption: l(e.displayMonth, { locale: i }), children: f.map(function(g) {
518
+ return c("option", { value: g.getMonth(), children: l(g, { locale: i }) }, g.getMonth());
519
+ }) });
520
+ }
521
+ function Kt(e) {
522
+ var n, t = e.displayMonth, o = D(), r = o.fromDate, a = o.toDate, i = o.locale, l = o.styles, s = o.classNames, u = o.components, d = o.formatters.formatYearCaption, f = o.labels.labelYearDropdown, v = [];
523
+ if (!r)
524
+ return c(S, {});
525
+ if (!a)
526
+ return c(S, {});
527
+ for (var h = r.getFullYear(), b = a.getFullYear(), _ = h; _ <= b; _++)
528
+ v.push(Te(An(/* @__PURE__ */ new Date()), _));
529
+ var g = function(M) {
530
+ var E = Te(O(t), Number(M.target.value));
531
+ e.onChange(E);
532
+ }, w = (n = u == null ? void 0 : u.Dropdown) !== null && n !== void 0 ? n : an;
533
+ return c(w, { name: "years", "aria-label": f(), className: s.dropdown_year, style: l.dropdown_year, onChange: g, value: t.getFullYear(), caption: d(t, { locale: i }), children: v.map(function(M) {
534
+ return c("option", { value: M.getFullYear(), children: d(M, { locale: i }) }, M.getFullYear());
535
+ }) });
536
+ }
537
+ function Vt(e, n) {
538
+ var t = B(e), o = t[0], r = t[1], a = n === void 0 ? o : n;
539
+ return [a, r];
540
+ }
541
+ function Ut(e) {
542
+ var n = e.month, t = e.defaultMonth, o = e.today, r = n || t || o || /* @__PURE__ */ new Date(), a = e.toDate, i = e.fromDate, l = e.numberOfMonths, s = l === void 0 ? 1 : l;
543
+ if (a && J(a, r) < 0) {
544
+ var u = -1 * (s - 1);
545
+ r = F(a, u);
546
+ }
547
+ return i && J(r, i) < 0 && (r = i), O(r);
548
+ }
549
+ function zt() {
550
+ var e = D(), n = Ut(e), t = Vt(n, e.month), o = t[0], r = t[1], a = function(i) {
551
+ var l;
552
+ if (!e.disableNavigation) {
553
+ var s = O(i);
554
+ r(s), (l = e.onMonthChange) === null || l === void 0 || l.call(e, s);
555
+ }
556
+ };
557
+ return [o, a];
558
+ }
559
+ function Zt(e, n) {
560
+ for (var t = n.reverseMonths, o = n.numberOfMonths, r = O(e), a = O(F(r, o)), i = J(a, r), l = [], s = 0; s < i; s++) {
561
+ var u = F(r, s);
562
+ l.push(u);
563
+ }
564
+ return t && (l = l.reverse()), l;
565
+ }
566
+ function Gt(e, n) {
567
+ if (!n.disableNavigation) {
568
+ var t = n.toDate, o = n.pagedNavigation, r = n.numberOfMonths, a = r === void 0 ? 1 : r, i = o ? a : 1, l = O(e);
569
+ if (!t)
570
+ return F(l, i);
571
+ var s = J(t, e);
572
+ if (!(s < a))
573
+ return F(l, i);
574
+ }
575
+ }
576
+ function Xt(e, n) {
577
+ if (!n.disableNavigation) {
578
+ var t = n.fromDate, o = n.pagedNavigation, r = n.numberOfMonths, a = r === void 0 ? 1 : r, i = o ? a : 1, l = O(e);
579
+ if (!t)
580
+ return F(l, -i);
581
+ var s = J(l, t);
582
+ if (!(s <= 0))
583
+ return F(l, -i);
584
+ }
585
+ }
586
+ var ln = H(void 0);
587
+ function qt(e) {
588
+ var n = D(), t = zt(), o = t[0], r = t[1], a = Zt(o, n), i = Gt(o, n), l = Xt(o, n), s = function(f) {
589
+ return a.some(function(v) {
590
+ return xe(f, v);
591
+ });
592
+ }, u = function(f, v) {
593
+ s(f) || (v && ke(f, v) ? r(F(f, 1 + n.numberOfMonths * -1)) : r(f));
594
+ }, d = {
595
+ currentMonth: o,
596
+ displayMonths: a,
597
+ goToMonth: r,
598
+ goToDate: u,
599
+ previousMonth: l,
600
+ nextMonth: i,
601
+ isDateDisplayed: s
602
+ };
603
+ return c(ln.Provider, { value: d, children: e.children });
604
+ }
605
+ function te() {
606
+ var e = j(ln);
607
+ if (!e)
608
+ throw new Error("useNavigation must be used within a NavigationProvider");
609
+ return e;
610
+ }
611
+ function Ae(e) {
612
+ var n, t = D(), o = t.classNames, r = t.styles, a = t.components, i = te().goToMonth, l = function(d) {
613
+ i(F(d, e.displayIndex ? -e.displayIndex : 0));
614
+ }, s = (n = a == null ? void 0 : a.CaptionLabel) !== null && n !== void 0 ? n : rn, u = c(s, { id: e.id, displayMonth: e.displayMonth });
615
+ return P("div", { className: o.caption_dropdowns, style: r.caption_dropdowns, children: [c("div", { className: o.vhidden, children: u }), c(Ht, { onChange: l, displayMonth: e.displayMonth }), c(Kt, { onChange: l, displayMonth: e.displayMonth })] });
616
+ }
617
+ function Jt(e) {
618
+ return c("svg", p({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: c("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" }) }));
619
+ }
620
+ function Qt(e) {
621
+ return c("svg", p({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: c("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" }) }));
622
+ }
623
+ var le = A(function(e, n) {
624
+ var t = D(), o = t.classNames, r = t.styles, a = [o.button_reset, o.button];
625
+ e.className && a.push(e.className);
626
+ var i = a.join(" "), l = p(p({}, r.button_reset), r.button);
627
+ return e.style && Object.assign(l, e.style), c("button", p({}, e, { ref: n, type: "button", className: i, style: l }));
628
+ });
629
+ function eo(e) {
630
+ var n, t, o = D(), r = o.dir, a = o.locale, i = o.classNames, l = o.styles, s = o.labels, u = s.labelPrevious, d = s.labelNext, f = o.components;
631
+ if (!e.nextMonth && !e.previousMonth)
632
+ return c(S, {});
633
+ var v = u(e.previousMonth, { locale: a }), h = [
634
+ i.nav_button,
635
+ i.nav_button_previous
636
+ ].join(" "), b = d(e.nextMonth, { locale: a }), _ = [
637
+ i.nav_button,
638
+ i.nav_button_next
639
+ ].join(" "), g = (n = f == null ? void 0 : f.IconRight) !== null && n !== void 0 ? n : Qt, w = (t = f == null ? void 0 : f.IconLeft) !== null && t !== void 0 ? t : Jt;
640
+ return P("div", { className: i.nav, style: l.nav, children: [!e.hidePrevious && c(le, { name: "previous-month", "aria-label": v, className: h, style: l.nav_button_previous, disabled: !e.previousMonth, onClick: e.onPreviousClick, children: r === "rtl" ? c(g, { className: i.nav_icon, style: l.nav_icon }) : c(w, { className: i.nav_icon, style: l.nav_icon }) }), !e.hideNext && c(le, { name: "next-month", "aria-label": b, className: _, style: l.nav_button_next, disabled: !e.nextMonth, onClick: e.onNextClick, children: r === "rtl" ? c(w, { className: i.nav_icon, style: l.nav_icon }) : c(g, { className: i.nav_icon, style: l.nav_icon }) })] });
641
+ }
642
+ function Ye(e) {
643
+ var n = D().numberOfMonths, t = te(), o = t.previousMonth, r = t.nextMonth, a = t.goToMonth, i = t.displayMonths, l = i.findIndex(function(b) {
644
+ return xe(e.displayMonth, b);
645
+ }), s = l === 0, u = l === i.length - 1, d = n > 1 && (s || !u), f = n > 1 && (u || !s), v = function() {
646
+ o && a(o);
647
+ }, h = function() {
648
+ r && a(r);
649
+ };
650
+ return c(eo, { displayMonth: e.displayMonth, hideNext: d, hidePrevious: f, nextMonth: r, previousMonth: o, onPreviousClick: v, onNextClick: h });
651
+ }
652
+ function no(e) {
653
+ var n, t = D(), o = t.classNames, r = t.disableNavigation, a = t.styles, i = t.captionLayout, l = t.components, s = (n = l == null ? void 0 : l.CaptionLabel) !== null && n !== void 0 ? n : rn, u;
654
+ return r ? u = c(s, { id: e.id, displayMonth: e.displayMonth }) : i === "dropdown" ? u = c(Ae, { displayMonth: e.displayMonth, id: e.id }) : i === "dropdown-buttons" ? u = P(S, { children: [c(Ae, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), c(Ye, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : u = P(S, { children: [c(s, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), c(Ye, { displayMonth: e.displayMonth, id: e.id })] }), c("div", { className: o.caption, style: a.caption, children: u });
655
+ }
656
+ function to(e) {
657
+ var n = D(), t = n.footer, o = n.styles, r = n.classNames.tfoot;
658
+ return t ? c("tfoot", { className: r, style: o.tfoot, children: c("tr", { children: c("td", { colSpan: 8, children: t }) }) }) : c(S, {});
659
+ }
660
+ function oo(e, n, t) {
661
+ for (var o = t ? Me(/* @__PURE__ */ new Date()) : X(/* @__PURE__ */ new Date(), { locale: e, weekStartsOn: n }), r = [], a = 0; a < 7; a++) {
662
+ var i = k(o, a);
663
+ r.push(i);
664
+ }
665
+ return r;
666
+ }
667
+ function ro() {
668
+ var e = D(), n = e.classNames, t = e.styles, o = e.showWeekNumber, r = e.locale, a = e.weekStartsOn, i = e.ISOWeek, l = e.formatters.formatWeekdayName, s = e.labels.labelWeekday, u = oo(r, a, i);
669
+ return P("tr", { style: t.head_row, className: n.head_row, children: [o && c("td", { style: t.head_cell, className: n.head_cell }), u.map(function(d, f) {
670
+ return c("th", { scope: "col", className: n.head_cell, style: t.head_cell, "aria-label": s(d, { locale: r }), children: l(d, { locale: r }) }, f);
671
+ })] });
672
+ }
673
+ function ao() {
674
+ var e, n = D(), t = n.classNames, o = n.styles, r = n.components, a = (e = r == null ? void 0 : r.HeadRow) !== null && e !== void 0 ? e : ro;
675
+ return c("thead", { style: o.head, className: t.head, children: c(a, {}) });
676
+ }
677
+ function io(e) {
678
+ var n = D(), t = n.locale, o = n.formatters.formatDay;
679
+ return c(S, { children: o(e.date, { locale: t }) });
680
+ }
681
+ var Pe = H(void 0);
682
+ function lo(e) {
683
+ if (!ee(e.initialProps)) {
684
+ var n = {
685
+ selected: void 0,
686
+ modifiers: {
687
+ disabled: []
688
+ }
689
+ };
690
+ return c(Pe.Provider, { value: n, children: e.children });
691
+ }
692
+ return c(so, { initialProps: e.initialProps, children: e.children });
693
+ }
694
+ function so(e) {
695
+ var n = e.initialProps, t = e.children, o = n.selected, r = n.min, a = n.max, i = function(u, d, f) {
696
+ var v, h;
697
+ (v = n.onDayClick) === null || v === void 0 || v.call(n, u, d, f);
698
+ var b = !!(d.selected && r && (o == null ? void 0 : o.length) === r);
699
+ if (!b) {
700
+ var _ = !!(!d.selected && a && (o == null ? void 0 : o.length) === a);
701
+ if (!_) {
702
+ var g = o ? tn([], o) : [];
703
+ if (d.selected) {
704
+ var w = g.findIndex(function(M) {
705
+ return x(u, M);
706
+ });
707
+ g.splice(w, 1);
708
+ } else
709
+ g.push(u);
710
+ (h = n.onSelect) === null || h === void 0 || h.call(n, g, u, d, f);
711
+ }
712
+ }
713
+ }, l = {
714
+ disabled: []
715
+ };
716
+ o && l.disabled.push(function(u) {
717
+ var d = a && o.length > a - 1, f = o.some(function(v) {
718
+ return x(v, u);
719
+ });
720
+ return !!(d && !f);
721
+ });
722
+ var s = {
723
+ selected: o,
724
+ onDayClick: i,
725
+ modifiers: l
726
+ };
727
+ return c(Pe.Provider, { value: s, children: t });
728
+ }
729
+ function Oe() {
730
+ var e = j(Pe);
731
+ if (!e)
732
+ throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
733
+ return e;
734
+ }
735
+ function co(e, n) {
736
+ var t = n || {}, o = t.from, r = t.to;
737
+ return o && r ? x(r, e) && x(o, e) ? void 0 : x(r, e) ? { from: r, to: void 0 } : x(o, e) ? void 0 : De(o, e) ? { from: e, to: r } : { from: o, to: e } : r ? De(e, r) ? { from: r, to: e } : { from: e, to: r } : o ? ke(e, o) ? { from: e, to: o } : { from: o, to: e } : { from: e, to: void 0 };
738
+ }
739
+ var $e = H(void 0);
740
+ function uo(e) {
741
+ if (!ne(e.initialProps)) {
742
+ var n = {
743
+ selected: void 0,
744
+ modifiers: {
745
+ range_start: [],
746
+ range_end: [],
747
+ range_middle: [],
748
+ disabled: []
749
+ }
750
+ };
751
+ return c($e.Provider, { value: n, children: e.children });
752
+ }
753
+ return c(fo, { initialProps: e.initialProps, children: e.children });
754
+ }
755
+ function fo(e) {
756
+ var n = e.initialProps, t = e.children, o = n.selected, r = o || {}, a = r.from, i = r.to, l = n.min, s = n.max, u = function(h, b, _) {
757
+ var g, w;
758
+ (g = n.onDayClick) === null || g === void 0 || g.call(n, h, b, _);
759
+ var M = co(h, o);
760
+ (w = n.onSelect) === null || w === void 0 || w.call(n, M, h, b, _);
761
+ }, d = {
762
+ range_start: [],
763
+ range_end: [],
764
+ range_middle: [],
765
+ disabled: []
766
+ };
767
+ if (a ? (d.range_start = [a], i ? (d.range_end = [i], x(a, i) || (d.range_middle = [
768
+ {
769
+ after: a,
770
+ before: i
771
+ }
772
+ ])) : d.range_end = [a]) : i && (d.range_start = [i], d.range_end = [i]), l && (a && !i && d.disabled.push({
773
+ after: ve(a, l - 1),
774
+ before: k(a, l - 1)
775
+ }), a && i && d.disabled.push({
776
+ after: a,
777
+ before: k(a, l - 1)
778
+ }), !a && i && d.disabled.push({
779
+ after: ve(i, l - 1),
780
+ before: k(i, l - 1)
781
+ })), s) {
782
+ if (a && !i && (d.disabled.push({
783
+ before: k(a, -s + 1)
784
+ }), d.disabled.push({
785
+ after: k(a, s - 1)
786
+ })), a && i) {
787
+ var f = T(i, a) + 1, v = s - f;
788
+ d.disabled.push({
789
+ before: ve(a, v)
790
+ }), d.disabled.push({
791
+ after: k(i, v)
792
+ });
793
+ }
794
+ !a && i && (d.disabled.push({
795
+ before: k(i, -s + 1)
796
+ }), d.disabled.push({
797
+ after: k(i, s - 1)
798
+ }));
799
+ }
800
+ return c($e.Provider, { value: { selected: o, onDayClick: u, modifiers: d }, children: t });
801
+ }
802
+ function Se() {
803
+ var e = j($e);
804
+ if (!e)
805
+ throw new Error("useSelectRange must be used within a SelectRangeProvider");
806
+ return e;
807
+ }
808
+ function re(e) {
809
+ return Array.isArray(e) ? tn([], e) : e !== void 0 ? [e] : [];
810
+ }
811
+ function vo(e) {
812
+ var n = {};
813
+ return Object.entries(e).forEach(function(t) {
814
+ var o = t[0], r = t[1];
815
+ n[o] = re(r);
816
+ }), n;
817
+ }
818
+ var I;
819
+ (function(e) {
820
+ e.Outside = "outside", e.Disabled = "disabled", e.Selected = "selected", e.Hidden = "hidden", e.Today = "today", e.RangeStart = "range_start", e.RangeEnd = "range_end", e.RangeMiddle = "range_middle";
821
+ })(I || (I = {}));
822
+ var ho = I.Selected, R = I.Disabled, mo = I.Hidden, po = I.Today, me = I.RangeEnd, pe = I.RangeMiddle, be = I.RangeStart, bo = I.Outside;
823
+ function yo(e, n, t) {
824
+ var o, r = (o = {}, o[ho] = re(e.selected), o[R] = re(e.disabled), o[mo] = re(e.hidden), o[po] = [e.today], o[me] = [], o[pe] = [], o[be] = [], o[bo] = [], o);
825
+ return e.fromDate && r[R].push({ before: e.fromDate }), e.toDate && r[R].push({ after: e.toDate }), ee(e) ? r[R] = r[R].concat(n.modifiers[R]) : ne(e) && (r[R] = r[R].concat(t.modifiers[R]), r[be] = t.modifiers[be], r[pe] = t.modifiers[pe], r[me] = t.modifiers[me]), r;
826
+ }
827
+ var sn = H(void 0);
828
+ function go(e) {
829
+ var n = D(), t = Oe(), o = Se(), r = yo(n, t, o), a = vo(n.modifiers), i = p(p({}, r), a);
830
+ return c(sn.Provider, { value: i, children: e.children });
831
+ }
832
+ function cn() {
833
+ var e = j(sn);
834
+ if (!e)
835
+ throw new Error("useModifiers must be used within a ModifiersProvider");
836
+ return e;
837
+ }
838
+ function _o(e) {
839
+ return !!(e && typeof e == "object" && "before" in e && "after" in e);
840
+ }
841
+ function Do(e) {
842
+ return !!(e && typeof e == "object" && "from" in e);
843
+ }
844
+ function Mo(e) {
845
+ return !!(e && typeof e == "object" && "after" in e);
846
+ }
847
+ function wo(e) {
848
+ return !!(e && typeof e == "object" && "before" in e);
849
+ }
850
+ function No(e) {
851
+ return !!(e && typeof e == "object" && "dayOfWeek" in e);
852
+ }
853
+ function Co(e, n) {
854
+ var t, o = n.from, r = n.to;
855
+ if (o && r) {
856
+ var a = T(r, o) < 0;
857
+ a && (t = [r, o], o = t[0], r = t[1]);
858
+ var i = T(e, o) >= 0 && T(r, e) >= 0;
859
+ return i;
860
+ }
861
+ return r ? x(r, e) : o ? x(o, e) : !1;
862
+ }
863
+ function ko(e) {
864
+ return ze(e);
865
+ }
866
+ function xo(e) {
867
+ return Array.isArray(e) && e.every(ze);
868
+ }
869
+ function Po(e, n) {
870
+ return n.some(function(t) {
871
+ if (typeof t == "boolean")
872
+ return t;
873
+ if (ko(t))
874
+ return x(e, t);
875
+ if (xo(t))
876
+ return t.includes(e);
877
+ if (Do(t))
878
+ return Co(e, t);
879
+ if (No(t))
880
+ return t.dayOfWeek.includes(e.getDay());
881
+ if (_o(t)) {
882
+ var o = T(t.before, e), r = T(t.after, e), a = o > 0, i = r < 0, l = De(t.before, t.after);
883
+ return l ? i && a : a || i;
884
+ }
885
+ return Mo(t) ? T(e, t.after) > 0 : wo(t) ? T(t.before, e) > 0 : typeof t == "function" ? t(e) : !1;
886
+ });
887
+ }
888
+ function Fe(e, n, t) {
889
+ var o = Object.keys(n).reduce(function(a, i) {
890
+ var l = n[i];
891
+ return Po(e, l) && a.push(i), a;
892
+ }, []), r = {};
893
+ return o.forEach(function(a) {
894
+ return r[a] = !0;
895
+ }), t && !xe(e, t) && (r.outside = !0), r;
896
+ }
897
+ function Oo(e, n) {
898
+ for (var t = O(e[0]), o = Ne(e[e.length - 1]), r, a, i = t; i <= o; ) {
899
+ var l = Fe(i, n), s = !l.disabled && !l.hidden;
900
+ if (!s) {
901
+ i = k(i, 1);
902
+ continue;
903
+ }
904
+ if (l.selected)
905
+ return i;
906
+ l.today && !a && (a = i), r || (r = i), i = k(i, 1);
907
+ }
908
+ return a || r;
909
+ }
910
+ var $o = 365;
911
+ function dn(e, n) {
912
+ var t = n.moveBy, o = n.direction, r = n.context, a = n.modifiers, i = n.retry, l = i === void 0 ? { count: 0, lastFocused: e } : i, s = r.weekStartsOn, u = r.fromDate, d = r.toDate, f = r.locale, v = {
913
+ day: k,
914
+ week: _e,
915
+ month: F,
916
+ year: vt,
917
+ startOfWeek: function(g) {
918
+ return r.ISOWeek ? Me(g) : X(g, { locale: f, weekStartsOn: s });
919
+ },
920
+ endOfWeek: function(g) {
921
+ return r.ISOWeek ? nn(g) : Ce(g, { locale: f, weekStartsOn: s });
922
+ }
923
+ }, h = v[t](e, o === "after" ? 1 : -1);
924
+ o === "before" && u ? h = ht([u, h]) : o === "after" && d && (h = mt([d, h]));
925
+ var b = !0;
926
+ if (a) {
927
+ var _ = Fe(h, a);
928
+ b = !_.disabled && !_.hidden;
929
+ }
930
+ return b ? h : l.count > $o ? l.lastFocused : dn(h, {
931
+ moveBy: t,
932
+ direction: o,
933
+ context: r,
934
+ modifiers: a,
935
+ retry: p(p({}, l), { count: l.count + 1 })
936
+ });
937
+ }
938
+ var un = H(void 0);
939
+ function So(e) {
940
+ var n = te(), t = cn(), o = B(), r = o[0], a = o[1], i = B(), l = i[0], s = i[1], u = Oo(n.displayMonths, t), d = r ?? (l && n.isDateDisplayed(l)) ? l : u, f = function() {
941
+ s(r), a(void 0);
942
+ }, v = function(g) {
943
+ a(g);
944
+ }, h = D(), b = function(g, w) {
945
+ if (r) {
946
+ var M = dn(r, {
947
+ moveBy: g,
948
+ direction: w,
949
+ context: h,
950
+ modifiers: t
951
+ });
952
+ x(r, M) || (n.goToDate(M, r), v(M));
953
+ }
954
+ }, _ = {
955
+ focusedDay: r,
956
+ focusTarget: d,
957
+ blur: f,
958
+ focus: v,
959
+ focusDayAfter: function() {
960
+ return b("day", "after");
961
+ },
962
+ focusDayBefore: function() {
963
+ return b("day", "before");
964
+ },
965
+ focusWeekAfter: function() {
966
+ return b("week", "after");
967
+ },
968
+ focusWeekBefore: function() {
969
+ return b("week", "before");
970
+ },
971
+ focusMonthBefore: function() {
972
+ return b("month", "before");
973
+ },
974
+ focusMonthAfter: function() {
975
+ return b("month", "after");
976
+ },
977
+ focusYearBefore: function() {
978
+ return b("year", "before");
979
+ },
980
+ focusYearAfter: function() {
981
+ return b("year", "after");
982
+ },
983
+ focusStartOfWeek: function() {
984
+ return b("startOfWeek", "before");
985
+ },
986
+ focusEndOfWeek: function() {
987
+ return b("endOfWeek", "after");
988
+ }
989
+ };
990
+ return c(un.Provider, { value: _, children: e.children });
991
+ }
992
+ function Ie() {
993
+ var e = j(un);
994
+ if (!e)
995
+ throw new Error("useFocusContext must be used within a FocusProvider");
996
+ return e;
997
+ }
998
+ function Fo(e, n) {
999
+ var t = cn(), o = Fe(e, t, n);
1000
+ return o;
1001
+ }
1002
+ var Le = H(void 0);
1003
+ function Io(e) {
1004
+ if (!se(e.initialProps)) {
1005
+ var n = {
1006
+ selected: void 0
1007
+ };
1008
+ return c(Le.Provider, { value: n, children: e.children });
1009
+ }
1010
+ return c(Lo, { initialProps: e.initialProps, children: e.children });
1011
+ }
1012
+ function Lo(e) {
1013
+ var n = e.initialProps, t = e.children, o = function(a, i, l) {
1014
+ var s, u, d;
1015
+ if ((s = n.onDayClick) === null || s === void 0 || s.call(n, a, i, l), i.selected && !n.required) {
1016
+ (u = n.onSelect) === null || u === void 0 || u.call(n, void 0, a, i, l);
1017
+ return;
1018
+ }
1019
+ (d = n.onSelect) === null || d === void 0 || d.call(n, a, a, i, l);
1020
+ }, r = {
1021
+ selected: n.selected,
1022
+ onDayClick: o
1023
+ };
1024
+ return c(Le.Provider, { value: r, children: t });
1025
+ }
1026
+ function fn() {
1027
+ var e = j(Le);
1028
+ if (!e)
1029
+ throw new Error("useSelectSingle must be used within a SelectSingleProvider");
1030
+ return e;
1031
+ }
1032
+ function Wo(e, n) {
1033
+ var t = D(), o = fn(), r = Oe(), a = Se(), i = Ie(), l = i.focusDayAfter, s = i.focusDayBefore, u = i.focusWeekAfter, d = i.focusWeekBefore, f = i.blur, v = i.focus, h = i.focusMonthBefore, b = i.focusMonthAfter, _ = i.focusYearBefore, g = i.focusYearAfter, w = i.focusStartOfWeek, M = i.focusEndOfWeek, E = function(y) {
1034
+ var m, ce, de, ue;
1035
+ se(t) ? (m = o.onDayClick) === null || m === void 0 || m.call(o, e, n, y) : ee(t) ? (ce = r.onDayClick) === null || ce === void 0 || ce.call(r, e, n, y) : ne(t) ? (de = a.onDayClick) === null || de === void 0 || de.call(a, e, n, y) : (ue = t.onDayClick) === null || ue === void 0 || ue.call(t, e, n, y);
1036
+ }, K = function(y) {
1037
+ var m;
1038
+ v(e), (m = t.onDayFocus) === null || m === void 0 || m.call(t, e, n, y);
1039
+ }, $ = function(y) {
1040
+ var m;
1041
+ f(), (m = t.onDayBlur) === null || m === void 0 || m.call(t, e, n, y);
1042
+ }, Y = function(y) {
1043
+ var m;
1044
+ (m = t.onDayMouseEnter) === null || m === void 0 || m.call(t, e, n, y);
1045
+ }, hn = function(y) {
1046
+ var m;
1047
+ (m = t.onDayMouseLeave) === null || m === void 0 || m.call(t, e, n, y);
1048
+ }, mn = function(y) {
1049
+ var m;
1050
+ (m = t.onDayPointerEnter) === null || m === void 0 || m.call(t, e, n, y);
1051
+ }, pn = function(y) {
1052
+ var m;
1053
+ (m = t.onDayPointerLeave) === null || m === void 0 || m.call(t, e, n, y);
1054
+ }, bn = function(y) {
1055
+ var m;
1056
+ (m = t.onDayTouchCancel) === null || m === void 0 || m.call(t, e, n, y);
1057
+ }, yn = function(y) {
1058
+ var m;
1059
+ (m = t.onDayTouchEnd) === null || m === void 0 || m.call(t, e, n, y);
1060
+ }, gn = function(y) {
1061
+ var m;
1062
+ (m = t.onDayTouchMove) === null || m === void 0 || m.call(t, e, n, y);
1063
+ }, _n = function(y) {
1064
+ var m;
1065
+ (m = t.onDayTouchStart) === null || m === void 0 || m.call(t, e, n, y);
1066
+ }, Dn = function(y) {
1067
+ var m;
1068
+ (m = t.onDayKeyUp) === null || m === void 0 || m.call(t, e, n, y);
1069
+ }, Mn = function(y) {
1070
+ var m;
1071
+ switch (y.key) {
1072
+ case "ArrowLeft":
1073
+ y.preventDefault(), y.stopPropagation(), t.dir === "rtl" ? l() : s();
1074
+ break;
1075
+ case "ArrowRight":
1076
+ y.preventDefault(), y.stopPropagation(), t.dir === "rtl" ? s() : l();
1077
+ break;
1078
+ case "ArrowDown":
1079
+ y.preventDefault(), y.stopPropagation(), u();
1080
+ break;
1081
+ case "ArrowUp":
1082
+ y.preventDefault(), y.stopPropagation(), d();
1083
+ break;
1084
+ case "PageUp":
1085
+ y.preventDefault(), y.stopPropagation(), y.shiftKey ? _() : h();
1086
+ break;
1087
+ case "PageDown":
1088
+ y.preventDefault(), y.stopPropagation(), y.shiftKey ? g() : b();
1089
+ break;
1090
+ case "Home":
1091
+ y.preventDefault(), y.stopPropagation(), w();
1092
+ break;
1093
+ case "End":
1094
+ y.preventDefault(), y.stopPropagation(), M();
1095
+ break;
1096
+ }
1097
+ (m = t.onDayKeyDown) === null || m === void 0 || m.call(t, e, n, y);
1098
+ }, wn = {
1099
+ onClick: E,
1100
+ onFocus: K,
1101
+ onBlur: $,
1102
+ onKeyDown: Mn,
1103
+ onKeyUp: Dn,
1104
+ onMouseEnter: Y,
1105
+ onMouseLeave: hn,
1106
+ onPointerEnter: mn,
1107
+ onPointerLeave: pn,
1108
+ onTouchCancel: bn,
1109
+ onTouchEnd: yn,
1110
+ onTouchMove: gn,
1111
+ onTouchStart: _n
1112
+ };
1113
+ return wn;
1114
+ }
1115
+ function Eo() {
1116
+ var e = D(), n = fn(), t = Oe(), o = Se(), r = se(e) ? n.selected : ee(e) ? t.selected : ne(e) ? o.selected : void 0;
1117
+ return r;
1118
+ }
1119
+ function Ro(e) {
1120
+ return Object.values(I).includes(e);
1121
+ }
1122
+ function To(e, n) {
1123
+ var t = [e.classNames.day];
1124
+ return Object.keys(n).forEach(function(o) {
1125
+ var r = e.modifiersClassNames[o];
1126
+ if (r)
1127
+ t.push(r);
1128
+ else if (Ro(o)) {
1129
+ var a = e.classNames["day_".concat(o)];
1130
+ a && t.push(a);
1131
+ }
1132
+ }), t;
1133
+ }
1134
+ function Ao(e, n) {
1135
+ var t = p({}, e.styles.day);
1136
+ return Object.keys(n).forEach(function(o) {
1137
+ var r;
1138
+ t = p(p({}, t), (r = e.modifiersStyles) === null || r === void 0 ? void 0 : r[o]);
1139
+ }), t;
1140
+ }
1141
+ function Yo(e, n, t) {
1142
+ var o, r, a, i = D(), l = Ie(), s = Fo(e, n), u = Wo(e, s), d = Eo(), f = !!(i.onDayClick || i.mode !== "default");
1143
+ Q(function() {
1144
+ var Y;
1145
+ s.outside || l.focusedDay && f && x(l.focusedDay, e) && ((Y = t.current) === null || Y === void 0 || Y.focus());
1146
+ }, [
1147
+ l.focusedDay,
1148
+ e,
1149
+ t,
1150
+ f,
1151
+ s.outside
1152
+ ]);
1153
+ var v = To(i, s).join(" "), h = Ao(i, s), b = !!(s.outside && !i.showOutsideDays || s.hidden), _ = (a = (r = i.components) === null || r === void 0 ? void 0 : r.DayContent) !== null && a !== void 0 ? a : io, g = c(_, { date: e, displayMonth: n, activeModifiers: s }), w = {
1154
+ style: h,
1155
+ className: v,
1156
+ children: g,
1157
+ role: "gridcell"
1158
+ }, M = l.focusTarget && x(l.focusTarget, e) && !s.outside, E = l.focusedDay && x(l.focusedDay, e), K = p(p(p({}, w), (o = { disabled: s.disabled, role: "gridcell" }, o["aria-selected"] = s.selected, o.tabIndex = E || M ? 0 : -1, o)), u), $ = {
1159
+ isButton: f,
1160
+ isHidden: b,
1161
+ activeModifiers: s,
1162
+ selectedDays: d,
1163
+ buttonProps: K,
1164
+ divProps: w
1165
+ };
1166
+ return $;
1167
+ }
1168
+ function Bo(e) {
1169
+ var n = U(null), t = Yo(e.date, e.displayMonth, n);
1170
+ return t.isHidden ? c("div", { role: "gridcell" }) : t.isButton ? c(le, p({ name: "day", ref: n }, t.buttonProps)) : c("div", p({}, t.divProps));
1171
+ }
1172
+ function jo(e) {
1173
+ var n = e.number, t = e.dates, o = D(), r = o.onWeekNumberClick, a = o.styles, i = o.classNames, l = o.locale, s = o.labels.labelWeekNumber, u = o.formatters.formatWeekNumber, d = u(Number(n), { locale: l });
1174
+ if (!r)
1175
+ return c("span", { className: i.weeknumber, style: a.weeknumber, children: d });
1176
+ var f = s(Number(n), { locale: l }), v = function(h) {
1177
+ r(n, t, h);
1178
+ };
1179
+ return c(le, { name: "week-number", "aria-label": f, className: i.weeknumber, style: a.weeknumber, onClick: v, children: d });
1180
+ }
1181
+ function Ho(e) {
1182
+ var n, t, o = D(), r = o.styles, a = o.classNames, i = o.showWeekNumber, l = o.components, s = (n = l == null ? void 0 : l.Day) !== null && n !== void 0 ? n : Bo, u = (t = l == null ? void 0 : l.WeekNumber) !== null && t !== void 0 ? t : jo, d;
1183
+ return i && (d = c("td", { className: a.cell, style: r.cell, children: c(u, { number: e.weekNumber, dates: e.dates }) })), P("tr", { className: a.row, style: r.row, children: [d, e.dates.map(function(f) {
1184
+ return c("td", { className: a.cell, style: r.cell, role: "presentation", children: c(s, { displayMonth: e.displayMonth, date: f }) }, yt(f));
1185
+ })] });
1186
+ }
1187
+ function Be(e, n, t) {
1188
+ for (var o = t != null && t.ISOWeek ? nn(n) : Ce(n, t), r = t != null && t.ISOWeek ? Me(e) : X(e, t), a = T(o, r), i = [], l = 0; l <= a; l++)
1189
+ i.push(k(r, l));
1190
+ var s = i.reduce(function(u, d) {
1191
+ var f = t != null && t.ISOWeek ? Yn(d) : Bn(d, t), v = u.find(function(h) {
1192
+ return h.weekNumber === f;
1193
+ });
1194
+ return v ? (v.dates.push(d), u) : (u.push({
1195
+ weekNumber: f,
1196
+ dates: [d]
1197
+ }), u);
1198
+ }, []);
1199
+ return s;
1200
+ }
1201
+ function Ko(e, n) {
1202
+ var t = Be(O(e), Ne(e), n);
1203
+ if (n != null && n.useFixedWeeks) {
1204
+ var o = _t(e, n);
1205
+ if (o < 6) {
1206
+ var r = t[t.length - 1], a = r.dates[r.dates.length - 1], i = _e(a, 6 - o), l = Be(_e(a, 1), i, n);
1207
+ t.push.apply(t, l);
1208
+ }
1209
+ }
1210
+ return t;
1211
+ }
1212
+ function Vo(e) {
1213
+ var n, t, o, r = D(), a = r.locale, i = r.classNames, l = r.styles, s = r.hideHead, u = r.fixedWeeks, d = r.components, f = r.weekStartsOn, v = r.firstWeekContainsDate, h = r.ISOWeek, b = Ko(e.displayMonth, {
1214
+ useFixedWeeks: !!u,
1215
+ ISOWeek: h,
1216
+ locale: a,
1217
+ weekStartsOn: f,
1218
+ firstWeekContainsDate: v
1219
+ }), _ = (n = d == null ? void 0 : d.Head) !== null && n !== void 0 ? n : ao, g = (t = d == null ? void 0 : d.Row) !== null && t !== void 0 ? t : Ho, w = (o = d == null ? void 0 : d.Footer) !== null && o !== void 0 ? o : to;
1220
+ return P("table", { id: e.id, className: i.table, style: l.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!s && c(_, {}), c("tbody", { className: i.tbody, style: l.tbody, children: b.map(function(M) {
1221
+ return c(g, { displayMonth: e.displayMonth, dates: M.dates, weekNumber: M.weekNumber }, M.weekNumber);
1222
+ }) }), c(w, { displayMonth: e.displayMonth })] });
1223
+ }
1224
+ function Uo() {
1225
+ return !!(typeof window < "u" && window.document && window.document.createElement);
1226
+ }
1227
+ var zo = Uo() ? Un : Q, ye = !1, Zo = 0;
1228
+ function je() {
1229
+ return "react-day-picker-".concat(++Zo);
1230
+ }
1231
+ function Go(e) {
1232
+ var n, t = e ?? (ye ? je() : null), o = B(t), r = o[0], a = o[1];
1233
+ return zo(function() {
1234
+ r === null && a(je());
1235
+ }, []), Q(function() {
1236
+ ye === !1 && (ye = !0);
1237
+ }, []), (n = e ?? r) !== null && n !== void 0 ? n : void 0;
1238
+ }
1239
+ function Xo(e) {
1240
+ var n, t, o = D(), r = o.dir, a = o.classNames, i = o.styles, l = o.components, s = te().displayMonths, u = Go(o.id ? "".concat(o.id, "-").concat(e.displayIndex) : void 0), d = o.id ? "".concat(o.id, "-grid-").concat(e.displayIndex) : void 0, f = [a.month], v = i.month, h = e.displayIndex === 0, b = e.displayIndex === s.length - 1, _ = !h && !b;
1241
+ r === "rtl" && (n = [h, b], b = n[0], h = n[1]), h && (f.push(a.caption_start), v = p(p({}, v), i.caption_start)), b && (f.push(a.caption_end), v = p(p({}, v), i.caption_end)), _ && (f.push(a.caption_between), v = p(p({}, v), i.caption_between));
1242
+ var g = (t = l == null ? void 0 : l.Caption) !== null && t !== void 0 ? t : no;
1243
+ return P("div", { className: f.join(" "), style: v, children: [c(g, { id: u, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), c(Vo, { id: d, "aria-labelledby": u, displayMonth: e.displayMonth })] }, e.displayIndex);
1244
+ }
1245
+ function qo(e) {
1246
+ var n = D(), t = n.classNames, o = n.styles;
1247
+ return c("div", { className: t.months, style: o.months, children: e.children });
1248
+ }
1249
+ function Jo(e) {
1250
+ var n, t, o = e.initialProps, r = D(), a = Ie(), i = te(), l = B(!1), s = l[0], u = l[1];
1251
+ Q(function() {
1252
+ r.initialFocus && a.focusTarget && (s || (a.focus(a.focusTarget), u(!0)));
1253
+ }, [
1254
+ r.initialFocus,
1255
+ s,
1256
+ a.focus,
1257
+ a.focusTarget,
1258
+ a
1259
+ ]);
1260
+ var d = [r.classNames.root, r.className];
1261
+ r.numberOfMonths > 1 && d.push(r.classNames.multiple_months), r.showWeekNumber && d.push(r.classNames.with_weeknumber);
1262
+ var f = p(p({}, r.styles.root), r.style), v = Object.keys(o).filter(function(b) {
1263
+ return b.startsWith("data-");
1264
+ }).reduce(function(b, _) {
1265
+ var g;
1266
+ return p(p({}, b), (g = {}, g[_] = o[_], g));
1267
+ }, {}), h = (t = (n = o.components) === null || n === void 0 ? void 0 : n.Months) !== null && t !== void 0 ? t : qo;
1268
+ return c("div", p({ className: d.join(" "), style: f, dir: r.dir, id: r.id, nonce: o.nonce, title: o.title, lang: o.lang }, v, { children: c(h, { children: i.displayMonths.map(function(b, _) {
1269
+ return c(Xo, { displayIndex: _, displayMonth: b }, _);
1270
+ }) }) }));
1271
+ }
1272
+ function Qo(e) {
1273
+ var n = e.children, t = Mt(e, ["children"]);
1274
+ return c(Bt, { initialProps: t, children: c(qt, { children: c(Io, { initialProps: t, children: c(lo, { initialProps: t, children: c(uo, { initialProps: t, children: c(go, { children: c(So, { children: n }) }) }) }) }) }) });
1275
+ }
1276
+ function er(e) {
1277
+ return c(Qo, p({}, e, { children: c(Jo, { initialProps: e }) }));
1278
+ }
1279
+ function vn({
1280
+ className: e,
1281
+ classNames: n,
1282
+ fromDate: t,
1283
+ toDate: o,
1284
+ showOutsideDays: r = !0,
1285
+ ...a
1286
+ }) {
1287
+ return /* @__PURE__ */ c(
1288
+ er,
1289
+ {
1290
+ fromDate: t,
1291
+ toDate: o || void 0,
1292
+ showOutsideDays: r,
1293
+ className: Z("p-3", e),
1294
+ classNames: {
1295
+ months: "flex flex-col sm:flex-row stack-y-4 sm:space-x-4 sm:stack-y-0",
1296
+ month: "stack-y-4",
1297
+ caption: "flex pt-1 relative items-center justify-between",
1298
+ caption_label: "text-sm font-medium",
1299
+ nav: "flex items-center",
1300
+ head: "",
1301
+ head_row: "flex w-full items-center justify-between",
1302
+ head_cell: "w-8 md:w-11 h-8 text-sm font-medium text-default text-center",
1303
+ nav_button: Z(Re({ color: "minimal", variant: "icon" })),
1304
+ table: "w-full border-collapse stack-y-1",
1305
+ row: "flex w-full mt-0.5 gap-0.5",
1306
+ cell: "w-8 h-8 md:h-11 md:w-11 text-center text-sm p-0 relative focus-within:relative focus-within:z-20",
1307
+ day: Z(
1308
+ Re({ color: "minimal" }),
1309
+ "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"
1310
+ ),
1311
+ day_range_end: "hover:bg-inverted! text-inverted!",
1312
+ day_range_start: "hover:bg-inverted! text-inverted!",
1313
+ day_selected: "bg-inverted text-inverted",
1314
+ day_today: "",
1315
+ day_outside: "",
1316
+ day_disabled: "text-muted opacity-50",
1317
+ day_range_middle: "aria-selected:bg-emphasis aria-selected:text-emphasis",
1318
+ day_hidden: "invisible",
1319
+ ...n
1320
+ },
1321
+ components: {
1322
+ CaptionLabel: (i) => /* @__PURE__ */ P("div", { className: "px-2", children: [
1323
+ /* @__PURE__ */ P("span", { className: "text-emphasis font-semibold leading-none", children: [
1324
+ Ee(i.displayMonth).format("MMMM"),
1325
+ " "
1326
+ ] }),
1327
+ /* @__PURE__ */ c("span", { className: "text-subtle font-medium leading-none", children: Ee(i.displayMonth).format("YYYY") })
1328
+ ] }),
1329
+ IconLeft: () => /* @__PURE__ */ c(Hn, { className: "h-4 w-4 stroke-2" }),
1330
+ IconRight: () => /* @__PURE__ */ c(jn, { className: "h-4 w-4 stroke-2" })
1331
+ },
1332
+ ...a
1333
+ }
1334
+ );
1335
+ }
1336
+ vn.displayName = "Calendar";
1337
+ function nr({
1338
+ startDate: e,
1339
+ endDate: n,
1340
+ clickedDate: t
1341
+ }) {
1342
+ return !e || n ? { startDate: t, endDate: void 0 } : t < e ? { startDate: t, endDate: e } : { startDate: e, endDate: t };
1343
+ }
1344
+ function ir({
1345
+ className: e,
1346
+ dates: n,
1347
+ minDate: t,
1348
+ maxDate: o,
1349
+ onDatesChange: r,
1350
+ disabled: a,
1351
+ withoutPopover: i,
1352
+ popoverModal: l = !0,
1353
+ popoverOpen: s,
1354
+ onPopoverOpenChange: u,
1355
+ "data-testid": d,
1356
+ strictlyBottom: f,
1357
+ allowPastDates: v = !1
1358
+ }) {
1359
+ const [h, b] = B(void 0);
1360
+ function _($) {
1361
+ const Y = nr({
1362
+ startDate: n.startDate,
1363
+ endDate: n.endDate,
1364
+ clickedDate: $
1365
+ });
1366
+ r(Y), b(void 0);
1367
+ }
1368
+ function g($) {
1369
+ n.startDate && !n.endDate && b($);
1370
+ }
1371
+ function w() {
1372
+ b(void 0);
1373
+ }
1374
+ const M = v && t === null ? void 0 : t ?? /* @__PURE__ */ new Date(), E = zn(() => {
1375
+ if (!(!n.startDate || n.endDate || !h) && !x(n.startDate, h))
1376
+ return ke(h, n.startDate) ? { from: h, to: n.startDate } : { from: n.startDate, to: h };
1377
+ }, [n.startDate, n.endDate, h]), K = /* @__PURE__ */ c(
1378
+ vn,
1379
+ {
1380
+ initialFocus: !0,
1381
+ fromDate: M,
1382
+ toDate: o,
1383
+ mode: "range",
1384
+ defaultMonth: n == null ? void 0 : n.startDate,
1385
+ selected: { from: n == null ? void 0 : n.startDate, to: n == null ? void 0 : n.endDate },
1386
+ onDayClick: ($) => _($),
1387
+ onDayMouseEnter: g,
1388
+ onDayMouseLeave: w,
1389
+ numberOfMonths: 1,
1390
+ disabled: a,
1391
+ "data-testid": d,
1392
+ modifiers: E ? { hoverRange: E } : void 0,
1393
+ modifiersClassNames: E ? { hoverRange: "bg-emphasis" } : void 0
1394
+ }
1395
+ );
1396
+ return i ? K : /* @__PURE__ */ c("div", { className: Z("grid gap-2", e), children: /* @__PURE__ */ P(ct, { modal: l, open: s, onOpenChange: u, children: [
1397
+ /* @__PURE__ */ c(dt, { asChild: !0, children: /* @__PURE__ */ c(
1398
+ Kn,
1399
+ {
1400
+ "data-testid": "date-range",
1401
+ color: "secondary",
1402
+ EndIcon: "calendar",
1403
+ className: Z("justify-between text-left font-normal", !n && "text-subtle"),
1404
+ children: n != null && n.startDate ? n != null && n.endDate ? /* @__PURE__ */ P(S, { children: [
1405
+ L(n.startDate, "LLL dd, y"),
1406
+ " - ",
1407
+ L(n.endDate, "LLL dd, y")
1408
+ ] }) : /* @__PURE__ */ P(S, { children: [
1409
+ L(n.startDate, "LLL dd, y"),
1410
+ " - End"
1411
+ ] }) : /* @__PURE__ */ c("span", { children: "Pick a date" })
1412
+ }
1413
+ ) }),
1414
+ /* @__PURE__ */ c(ut, { children: /* @__PURE__ */ c(
1415
+ ft,
1416
+ {
1417
+ className: "bg-default text-emphasis z-50 w-auto rounded-md border p-0 outline-none",
1418
+ align: "start",
1419
+ sideOffset: 4,
1420
+ side: f ? "bottom" : void 0,
1421
+ avoidCollisions: !f,
1422
+ onInteractOutside: ($) => {
1423
+ n != null && n.startDate && !(n != null && n.endDate) && $.preventDefault();
1424
+ },
1425
+ children: K
1426
+ }
1427
+ ) })
1428
+ ] }) });
1429
+ }
1430
+ export {
1431
+ ir as DatePickerWithRange
1432
+ };