@calcom/atoms 1.1.1 → 1.1.2

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 (246) hide show
  1. package/dist/{AddressInput-NzvfumUI.js → AddressInput-cAznNQd3.js} +1 -1
  2. package/dist/{AlbyPriceComponent-1-urrKvw.js → AlbyPriceComponent-oZ0IVf6c.js} +24 -24
  3. package/dist/{AppCard-hN4JJeXf.js → AppCard-vSAp__lv.js} +24 -24
  4. package/dist/{AppListCardPlatformWrapper-SELRmds-.js → AppListCardPlatformWrapper-gpEo1mhs.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-qtbixhdy.js → AppListCardWebWrapper-2mtvbrZI.js} +7 -7
  6. package/dist/{AppSettingsInterface-SAdoqRc6.js → AppSettingsInterface-76krfbgC.js} +4 -4
  7. package/dist/{AppSettingsInterface-OjtqSpP5.js → AppSettingsInterface-U3J8XNfT.js} +1 -1
  8. package/dist/{AppSettingsInterface-z-BTopkU.js → AppSettingsInterface-qR8wrA8Z.js} +1 -1
  9. package/dist/DateRangePicker-S8PasnBw.js +74 -0
  10. package/dist/{EventTypeAppCardInterface-9IGJ0PSa.js → EventTypeAppCardInterface--cvud7p5.js} +4 -4
  11. package/dist/EventTypeAppCardInterface-3WyRAq4g.js +858 -0
  12. package/dist/{EventTypeAppCardInterface-vFmAxtJ_.js → EventTypeAppCardInterface-5GqOLlXa.js} +3 -3
  13. package/dist/{EventTypeAppCardInterface-qtTTM8pf.js → EventTypeAppCardInterface-7BjnHZSW.js} +8 -8
  14. package/dist/{EventTypeAppCardInterface-GjUOq6hk.js → EventTypeAppCardInterface-9RRfsmxD.js} +15 -15
  15. package/dist/{EventTypeAppCardInterface-q5C_2X2L.js → EventTypeAppCardInterface-AqVT1BoP.js} +4 -4
  16. package/dist/{EventTypeAppCardInterface--mLJhYJz.js → EventTypeAppCardInterface-AzUqjRAw.js} +4 -4
  17. package/dist/{EventTypeAppCardInterface-Xoik_E4N.js → EventTypeAppCardInterface-CWeqREZU.js} +3 -3
  18. package/dist/{EventTypeAppCardInterface-nqLtZdvT.js → EventTypeAppCardInterface-FoNtZTXA.js} +3 -3
  19. package/dist/{EventTypeAppCardInterface-AmIuaGxY.js → EventTypeAppCardInterface-GC7AOQgo.js} +4 -4
  20. package/dist/{EventTypeAppCardInterface-bFnvA6B_.js → EventTypeAppCardInterface-HQMqzp7c.js} +3 -3
  21. package/dist/{EventTypeAppCardInterface-tAOaIu7e.js → EventTypeAppCardInterface-N7WcmdT4.js} +3 -3
  22. package/dist/{EventTypeAppCardInterface-51K1dlPD.js → EventTypeAppCardInterface-R0X4nckV.js} +2 -2
  23. package/dist/{EventTypeAppCardInterface-OYjSCuch.js → EventTypeAppCardInterface-Uu3O27xa.js} +4 -4
  24. package/dist/{EventTypeAppCardInterface-s9iRBeJU.js → EventTypeAppCardInterface-V8atUcK-.js} +4 -4
  25. package/dist/{EventTypeAppCardInterface-H4K3MAjp.js → EventTypeAppCardInterface-Y07gIvmX.js} +4 -4
  26. package/dist/{EventTypeAppCardInterface-K87MBo9I.js → EventTypeAppCardInterface-Z-LBRQAn.js} +3 -3
  27. package/dist/{EventTypeAppCardInterface-YDDBcspM.js → EventTypeAppCardInterface-aYTZV5EF.js} +8 -8
  28. package/dist/{EventTypeAppCardInterface-j0fTh3VO.js → EventTypeAppCardInterface-bEYxRxeM.js} +3 -3
  29. package/dist/{EventTypeAppCardInterface-U75u_cIJ.js → EventTypeAppCardInterface-dKaaMNor.js} +26 -26
  30. package/dist/{EventTypeAppCardInterface-2Cc6ahQQ.js → EventTypeAppCardInterface-lguZWNvV.js} +3 -3
  31. package/dist/{EventTypeAppCardInterface-QQqZv8fE.js → EventTypeAppCardInterface-p0blDTaQ.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-dqDNZgqG.js → EventTypeAppCardInterface-rppYuGVz.js} +4 -4
  33. package/dist/EventTypeAppCardInterface-tkKsbhWo.js +39 -0
  34. package/dist/{EventTypeAppCardInterface-IBHBvzdh.js → EventTypeAppCardInterface-utvbMc02.js} +10 -10
  35. package/dist/{EventTypeAppCardInterface-95cvERUq.js → EventTypeAppCardInterface-wXpCgFPS.js} +3 -3
  36. package/dist/EventTypeAppCardInterface-zGyldaa9.js +24 -0
  37. package/dist/{EventTypeAppSettingsInterface-iXuGB_YY.js → EventTypeAppSettingsInterface-7hS6GTO2.js} +3 -3
  38. package/dist/{EventTypeAppSettingsInterface-osAZr0qh.js → EventTypeAppSettingsInterface-FQeyEBxu.js} +5 -5
  39. package/dist/{EventTypeAppSettingsInterface-ININd3TP.js → EventTypeAppSettingsInterface-HK0lsJ28.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-z1Quk5hj.js → EventTypeAppSettingsInterface-MG2xFbSG.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-n2bRxRf2.js → EventTypeAppSettingsInterface-Ra9cL5JB.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-hcNF3TE1.js → EventTypeAppSettingsInterface-XL4D2Dyv.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-GlYSNMSh.js → EventTypeAppSettingsInterface-ZIUpW8te.js} +10 -10
  44. package/dist/EventTypeAppSettingsInterface-afhCdPkJ.js +79 -0
  45. package/dist/{EventTypeAppSettingsInterface-9IDAwqSZ.js → EventTypeAppSettingsInterface-bA-Dmxj2.js} +8 -8
  46. package/dist/{EventTypeAppSettingsInterface-MZ6AuQlx.js → EventTypeAppSettingsInterface-g5jo9GKH.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-bWUcZj4D.js → EventTypeAppSettingsInterface-sazwK3zk.js} +7 -7
  48. package/dist/{EventTypeAppSettingsInterface-CCyIJ5PA.js → EventTypeAppSettingsInterface-sbAmbLiK.js} +8 -8
  49. package/dist/{EventTypeAppSettingsInterface-lsxcvaFv.js → EventTypeAppSettingsInterface-ycOpDd2-.js} +1 -1
  50. package/dist/{InstallAppButton-3vFrgQZL.js → InstallAppButton-0Gg9ocXb.js} +3 -3
  51. package/dist/{InstallAppButton-lv0Q-gWg.js → InstallAppButton-JHaJ7T7H.js} +1 -1
  52. package/dist/{InstallAppButton-ZZMl6U2j.js → InstallAppButton-JN6i4iBH.js} +3 -3
  53. package/dist/{PhoneInput-95NAC5-_.js → PhoneInput-eRYuhuju.js} +1 -1
  54. package/dist/{StripePaymentForm-14dnyzc0.js → StripePaymentForm-B1BkBzO9.js} +6 -6
  55. package/dist/cal-atoms.js +17 -17
  56. package/dist/{index-H0BzYsH6.js → index-D-baW2SF.js} +1 -1
  57. package/dist/{index-WCahCkE1.js → index-GkJhe-oj.js} +70182 -66440
  58. package/dist/{index-_7uRh17g.js → index-V8Hhry6U.js} +18 -18
  59. package/dist/index-l2YMCxIx.js +30 -0
  60. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  61. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  62. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +1 -1
  63. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  64. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +4 -0
  65. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
  66. package/dist/packages/features/bookings/Booker/store.d.ts +8 -2
  67. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  68. package/dist/packages/features/bookings/Booker/types.d.ts +1 -0
  69. package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
  70. package/dist/packages/features/bookings/Booker/utils/event.d.ts +21 -1
  71. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  72. package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts +2 -1
  73. package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
  74. package/dist/packages/features/bookings/lib/create-booking.d.ts +46 -49
  75. package/dist/packages/features/bookings/lib/create-booking.d.ts.map +1 -1
  76. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +46 -49
  77. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts.map +1 -1
  78. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +3 -0
  79. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts.map +1 -1
  80. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +5 -0
  81. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts.map +1 -1
  82. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +2 -0
  83. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
  84. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +1 -1
  85. package/dist/packages/features/bookings/lib/getUserBooking.d.ts +1 -0
  86. package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
  87. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts +10 -1
  88. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts.map +1 -1
  89. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +0 -1
  90. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
  91. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +4 -0
  92. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  93. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +4 -0
  94. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  95. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +14 -0
  96. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  97. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +4 -0
  98. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  99. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  100. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +1 -2
  101. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
  102. package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts +2 -0
  103. package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts.map +1 -1
  104. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +46 -49
  105. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  106. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +0 -1
  107. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  108. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +0 -1
  109. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts.map +1 -1
  110. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +0 -1
  111. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts.map +1 -1
  112. package/dist/packages/features/bookings/types.d.ts +1 -1
  113. package/dist/packages/features/bookings/types.d.ts.map +1 -1
  114. package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts.map +1 -1
  115. package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
  116. package/dist/packages/features/data-table/lib/__tests__/server.test.d.ts +2 -0
  117. package/dist/packages/features/data-table/lib/__tests__/server.test.d.ts.map +1 -0
  118. package/dist/packages/features/data-table/lib/server.d.ts +8 -0
  119. package/dist/packages/features/data-table/lib/server.d.ts.map +1 -1
  120. package/dist/packages/features/ee/payments/components/PaymentPage.d.ts.map +1 -1
  121. package/dist/packages/features/ee/payments/pages/payment.d.ts +1 -0
  122. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  123. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts +3 -1
  124. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts.map +1 -1
  125. package/dist/packages/features/ee/round-robin/assignmentReason/appAssignmentReasonHandler.d.ts +2 -1
  126. package/dist/packages/features/ee/round-robin/assignmentReason/appAssignmentReasonHandler.d.ts.map +1 -1
  127. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +2 -0
  128. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  129. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  130. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  131. package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
  132. package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.d.ts.map +1 -1
  133. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +6 -0
  134. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  135. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  136. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
  137. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +1 -1
  138. package/dist/packages/features/ee/workflows/lib/schema.d.ts +4 -4
  139. package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
  140. package/dist/packages/features/eventtypes/components/EventType.d.ts +2 -1
  141. package/dist/packages/features/eventtypes/components/EventType.d.ts.map +1 -1
  142. package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts +2 -1
  143. package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
  144. package/dist/packages/features/eventtypes/components/Locations.d.ts.map +1 -1
  145. package/dist/packages/features/eventtypes/components/MultiplePrivateLinksController.d.ts +4 -1
  146. package/dist/packages/features/eventtypes/components/MultiplePrivateLinksController.d.ts.map +1 -1
  147. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
  148. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  149. package/dist/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.d.ts.map +1 -1
  150. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +1018 -2
  151. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  152. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +167 -0
  153. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -0
  154. package/dist/packages/features/eventtypes/lib/types.d.ts +17 -1
  155. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  156. package/dist/packages/features/form-builder/FormBuilder.d.ts.map +1 -1
  157. package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
  158. package/dist/packages/features/form-builder/fieldsThatSupportLabelAsSafeHtml.d.ts.map +1 -1
  159. package/dist/packages/features/instant-meeting/handleInstantMeeting.d.ts.map +1 -1
  160. package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts +2 -0
  161. package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts.map +1 -0
  162. package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
  163. package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
  164. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +3 -2
  165. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  166. package/dist/packages/platform/atoms/availability/types.d.ts +8 -0
  167. package/dist/packages/platform/atoms/availability/types.d.ts.map +1 -1
  168. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -1
  169. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  170. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  171. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  172. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  173. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +1 -0
  174. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
  175. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +25 -2
  176. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  177. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +1 -0
  178. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  179. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +10 -1
  180. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  181. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  182. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +2 -2
  183. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  184. package/dist/packages/platform/atoms/event-types/wrappers/types.d.ts +2 -0
  185. package/dist/packages/platform/atoms/event-types/wrappers/types.d.ts.map +1 -1
  186. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +46 -49
  187. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts.map +1 -1
  188. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +47 -49
  189. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
  190. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +46 -49
  191. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts.map +1 -1
  192. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  193. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
  194. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +1 -0
  195. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
  196. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +1 -0
  197. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
  198. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +1 -0
  199. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
  200. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +21 -1
  201. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  202. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
  203. package/dist/packages/platform/atoms/index.d.ts +2 -0
  204. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  205. package/dist/packages/platform/libraries/bookings.d.ts +3 -0
  206. package/dist/packages/platform/libraries/bookings.d.ts.map +1 -0
  207. package/dist/packages/platform/libraries/index.d.ts +1 -0
  208. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  209. package/dist/packages/platform/libraries/repositories.d.ts +3 -2
  210. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  211. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/booking-fields.input.d.ts.map +1 -1
  212. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  213. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  214. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts +6 -0
  215. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
  216. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +0 -4
  217. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
  218. package/dist/packages/prisma/zod/booking.d.ts +0 -3
  219. package/dist/packages/prisma/zod/booking.d.ts.map +1 -1
  220. package/dist/packages/prisma/zod/calendarcache.d.ts +3 -0
  221. package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
  222. package/dist/packages/prisma/zod/calvideosettings.d.ts +3 -0
  223. package/dist/packages/prisma/zod/calvideosettings.d.ts.map +1 -1
  224. package/dist/packages/prisma/zod/custom/booking.d.ts +9 -0
  225. package/dist/packages/prisma/zod/custom/booking.d.ts.map +1 -1
  226. package/dist/packages/prisma/zod/custom/eventtype.d.ts +41 -3
  227. package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
  228. package/dist/packages/prisma/zod/eventtype.d.ts +11 -0
  229. package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
  230. package/dist/packages/prisma/zod/hashedlink.d.ts +9 -0
  231. package/dist/packages/prisma/zod/hashedlink.d.ts.map +1 -1
  232. package/dist/packages/prisma/zod/workflowstep.d.ts +2 -2
  233. package/dist/packages/prisma/zod-utils.d.ts +154 -0
  234. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  235. package/dist/packages/prisma-client/index.d.ts +320 -106
  236. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +8 -4
  237. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  238. package/dist/packages/trpc/server/routers/viewer/slots/util.test.d.ts +2 -0
  239. package/dist/packages/trpc/server/routers/viewer/slots/util.test.d.ts.map +1 -0
  240. package/dist/{useIsAppEnabled-C8lVT7D4.js → useIsAppEnabled-oIf6wORY.js} +1 -1
  241. package/globals.min.css +16 -3
  242. package/package.json +3 -4
  243. package/dist/DateRangePicker-ZFK77aaF.js +0 -2405
  244. package/dist/EventTypeAppCardInterface-d-hNtzhT.js +0 -696
  245. package/dist/EventTypeAppCardInterface-y8QjZ8hH.js +0 -24
  246. package/dist/index-UNLJJou7.js +0 -28
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { N as n, e as o, M as c } from "./index-WCahCkE1.js";
2
+ import { X as n, e as o, s as c } from "./index-GkJhe-oj.js";
3
3
  function r({ value: s, onChange: t, ...a }) {
4
4
  return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
5
5
  /* @__PURE__ */ e(
@@ -1,7 +1,7 @@
1
- import { jsx as K, jsxs as er } from "react/jsx-runtime";
2
- import z from "react";
3
- import { K as tr, O as nr } from "./index-WCahCkE1.js";
4
- const J = function(s, r = !0) {
1
+ import { jsx as z, jsxs as er } from "react/jsx-runtime";
2
+ import J from "react";
3
+ import { V as tr, Y as nr } from "./index-GkJhe-oj.js";
4
+ const K = function(s, r = !0) {
5
5
  if (s.destroyed)
6
6
  throw new Error("Hash instance has been destroyed");
7
7
  if (r && s.finished)
@@ -33,7 +33,7 @@ class ir extends sr {
33
33
  super(), this.blockLen = r, this.outputLen = i, this.padOffset = c, this.isLE = f, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(r), this.view = N(this.buffer);
34
34
  }
35
35
  update(r) {
36
- J(this);
36
+ K(this);
37
37
  const { view: i, buffer: c, blockLen: f } = this, u = (r = Z(r)).length;
38
38
  for (let l = 0; l < u; ) {
39
39
  const g = Math.min(f - this.pos, u - l);
@@ -48,7 +48,7 @@ class ir extends sr {
48
48
  return this.length += r.length, this.roundClean(), this;
49
49
  }
50
50
  digestInto(r) {
51
- J(this), function(b, y) {
51
+ K(this), function(b, y) {
52
52
  (function(x, ...B) {
53
53
  if (!(x instanceof Uint8Array))
54
54
  throw new Error("Expected Uint8Array");
@@ -355,7 +355,7 @@ Q = function(s, r) {
355
355
  (t >> o & 1) == 1 && (n ^= j[o]);
356
356
  return n;
357
357
  }
358
- function V(e, t, n = 1) {
358
+ function H(e, t, n = 1) {
359
359
  const o = e.length;
360
360
  let a = 1;
361
361
  for (let h = 0; h < o; h++) {
@@ -373,7 +373,7 @@ Q = function(s, r) {
373
373
  a = S(a);
374
374
  return a ^= n, C.encode(b([a % 2 ** 30], 30, 5, !1));
375
375
  }
376
- function H(e) {
376
+ function O(e) {
377
377
  const t = e === "bech32" ? 1 : 734539939, n = E(5), o = n.decode, a = n.encode, h = x(o);
378
378
  function d(w, p = 90) {
379
379
  if (typeof w != "string")
@@ -389,7 +389,7 @@ Q = function(s, r) {
389
389
  const G = w.slice(0, v), D = w.slice(v + 1);
390
390
  if (D.length < 6)
391
391
  throw new Error("Data must be at least 6 characters long");
392
- const M = C.decode(D).slice(0, -6), P = V(G, M, t);
392
+ const M = C.decode(D).slice(0, -6), P = H(G, M, t);
393
393
  if (!D.endsWith(P))
394
394
  throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
395
395
  return { prefix: G, words: M };
@@ -402,13 +402,13 @@ Q = function(s, r) {
402
402
  const v = w.length + 7 + p.length;
403
403
  if ($ !== !1 && v > $)
404
404
  throw new TypeError(`Length ${v} exceeds limit ${$}`);
405
- return `${w = w.toLowerCase()}1${C.encode(p)}${V(w, p, t)}`;
405
+ return `${w = w.toLowerCase()}1${C.encode(p)}${H(w, p, t)}`;
406
406
  }, decode: d, decodeToBytes: function(w) {
407
407
  const { prefix: p, words: $ } = d(w, !1);
408
408
  return { prefix: p, words: $, bytes: o($) };
409
409
  }, decodeUnsafe: x(d), fromWords: o, fromWordsUnsafe: h, toWords: a };
410
410
  }
411
- r.bech32 = H("bech32"), r.bech32m = H("bech32m"), r.utf8 = { encode: (e) => new TextDecoder().decode(e), decode: (e) => new TextEncoder().encode(e) }, r.hex = c(E(4), f("0123456789abcdef"), u(""), g((e) => {
411
+ r.bech32 = O("bech32"), r.bech32m = O("bech32m"), r.utf8 = { encode: (e) => new TextDecoder().decode(e), decode: (e) => new TextEncoder().encode(e) }, r.hex = c(E(4), f("0123456789abcdef"), u(""), g((e) => {
412
412
  if (typeof e != "string" || e.length % 2)
413
413
  throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);
414
414
  return e.toLowerCase();
@@ -431,29 +431,29 @@ Q = function(s, r) {
431
431
  BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
432
432
  BigInt("2100000000000000000");
433
433
  BigInt(1e11);
434
- const X = { payment_hash: 1, payment_secret: 16, description: 13, payee: 19, description_hash: 23, expiry: 6, min_final_cltv_expiry: 24, fallback_address: 9, route_hint: 3, feature_bits: 5, metadata: 27 };
435
- for (let s = 0, r = Object.keys(X); s < r.length; s++)
436
- r[s], X[r[s]].toString();
437
- const O = async (s) => {
434
+ const Y = { payment_hash: 1, payment_secret: 16, description: 13, payee: 19, description_hash: 23, expiry: 6, min_final_cltv_expiry: 24, fallback_address: 9, route_hint: 3, feature_bits: 5, metadata: 27 };
435
+ for (let s = 0, r = Object.keys(Y); s < r.length; s++)
436
+ r[s], Y[r[s]].toString();
437
+ const V = async (s) => {
438
438
  const r = "https://getalby.com/api/rates/" + s.toLowerCase() + ".json";
439
439
  return (await (await fetch(r)).json()).rate_float / 1e8;
440
- }, Y = async ({ satoshi: s, currency: r }) => {
441
- const i = await O(r);
440
+ }, X = async ({ satoshi: s, currency: r }) => {
441
+ const i = await V(r);
442
442
  return Number(s) * i;
443
443
  };
444
- var fr = { __proto__: null, getFiatBtcRate: O, getFiatValue: Y, getSatoshiValue: async ({ amount: s, currency: r }) => {
445
- const i = await O(r);
444
+ var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue: X, getSatoshiValue: async ({ amount: s, currency: r }) => {
445
+ const i = await V(r);
446
446
  return Math.floor(Number(s) / i);
447
- }, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await Y({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
447
+ }, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await X({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
448
448
  function wr({ displaySymbol: s, price: r, formattedPrice: i }) {
449
- const [c, f] = z.useState("loading...");
450
- return z.useEffect(() => {
449
+ const [c, f] = J.useState("loading...");
450
+ return J.useEffect(() => {
451
451
  (async () => {
452
452
  const u = await fr.getFiatValue({ satoshi: r, currency: "USD" });
453
453
  f(`$${u.toFixed(2)}`);
454
454
  })();
455
- }, [r]), /* @__PURE__ */ K(tr, { content: c, children: /* @__PURE__ */ er("div", { className: "inline-flex items-center justify-center", children: [
456
- s && /* @__PURE__ */ K(nr, { className: "h-4 w-4" }),
455
+ }, [r]), /* @__PURE__ */ z(tr, { content: c, children: /* @__PURE__ */ er("div", { className: "inline-flex items-center justify-center", children: [
456
+ s && /* @__PURE__ */ z(nr, { className: "h-4 w-4" }),
457
457
  i
458
458
  ] }) });
459
459
  }
@@ -1,8 +1,8 @@
1
- import { jsx as l, Fragment as O, jsxs as a } from "react/jsx-runtime";
2
- import { ag as V, ah as v, M as u, N as C, ai as W, y as A, q as H, u as T, aj as q, r as j, _ as N, ak as L, t as F, ae as M, al as g, p as U } from "./index-WCahCkE1.js";
1
+ import { jsx as l, Fragment as D, jsxs as a } from "react/jsx-runtime";
2
+ import { ao as V, ap as v, s as u, X as N, aq as W, O as A, y as H, x as T, ar as q, u as j, a6 as C, as as L, G as F, am as U, at as g, q as G } from "./index-GkJhe-oj.js";
3
3
  import * as c from "react";
4
4
  var y = c.forwardRef((e, r) => {
5
- const { children: t, ...n } = e, s = c.Children.toArray(t), i = s.find(Z);
5
+ const { children: t, ...n } = e, s = c.Children.toArray(t), i = s.find(Q);
6
6
  if (i) {
7
7
  const o = i.props.children, f = s.map((d) => d === i ? c.Children.count(o) > 1 ? c.Children.only(null) : c.isValidElement(o) ? o.props.children : null : d);
8
8
  return /* @__PURE__ */ l(x, { ...n, ref: r, children: c.isValidElement(o) ? c.cloneElement(o, void 0, f) : null });
@@ -13,9 +13,9 @@ y.displayName = "Slot";
13
13
  var x = c.forwardRef((e, r) => {
14
14
  const { children: t, ...n } = e;
15
15
  if (c.isValidElement(t)) {
16
- const s = G(t);
16
+ const s = Z(t);
17
17
  return c.cloneElement(t, {
18
- ...p(n, t.props),
18
+ ...X(n, t.props),
19
19
  // @ts-ignore
20
20
  ref: r ? V(r, s) : s
21
21
  });
@@ -23,11 +23,11 @@ var x = c.forwardRef((e, r) => {
23
23
  return c.Children.count(t) > 1 ? c.Children.only(null) : null;
24
24
  });
25
25
  x.displayName = "SlotClone";
26
- var Q = ({ children: e }) => /* @__PURE__ */ l(O, { children: e });
27
- function Z(e) {
28
- return c.isValidElement(e) && e.type === Q;
26
+ var M = ({ children: e }) => /* @__PURE__ */ l(D, { children: e });
27
+ function Q(e) {
28
+ return c.isValidElement(e) && e.type === M;
29
29
  }
30
- function p(e, r) {
30
+ function X(e, r) {
31
31
  const t = { ...r };
32
32
  for (const n in r) {
33
33
  const s = e[n], i = r[n];
@@ -37,12 +37,12 @@ function p(e, r) {
37
37
  }
38
38
  return { ...e, ...t };
39
39
  }
40
- function G(e) {
40
+ function Z(e) {
41
41
  var n, s;
42
42
  let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
43
43
  return t ? e.ref : (r = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
44
44
  }
45
- const J = ({
45
+ const p = ({
46
46
  children: e,
47
47
  ref: r,
48
48
  className: t
@@ -71,9 +71,9 @@ const J = ({
71
71
  t === "sm" && "rounded-md p-1",
72
72
  t === "md" && "rounded-[10px] p-1.5"
73
73
  ),
74
- children: n || /* @__PURE__ */ l(C, { name: r, className: u(t === "sm" && "h-4 w-4", t === "md" && "h-6 w-6") })
74
+ children: n || /* @__PURE__ */ l(N, { name: r, className: u(t === "sm" && "h-4 w-4", t === "md" && "h-6 w-6") })
75
75
  }
76
- ), K = ({
76
+ ), J = ({
77
77
  children: e,
78
78
  ref: r,
79
79
  icon: t,
@@ -92,7 +92,7 @@ const J = ({
92
92
  ] })
93
93
  ] }),
94
94
  e
95
- ] }), X = ({ children: e, ref: r }) => /* @__PURE__ */ l("div", { ref: r, className: "flex flex-col gap-4", children: e }), Y = ({ children: e, ref: r }) => {
95
+ ] }), K = ({ children: e, ref: r }) => /* @__PURE__ */ l("div", { ref: r, className: "flex flex-col gap-4", children: e }), Y = ({ children: e, ref: r }) => {
96
96
  const [t] = v();
97
97
  return /* @__PURE__ */ l("div", { ref: t, className: "border-muted bg-default flex flex-col gap-4 rounded-xl border p-3", children: e });
98
98
  }, z = ({
@@ -139,9 +139,9 @@ const J = ({
139
139
  ), ee = ({
140
140
  children: e,
141
141
  ref: r
142
- }) => /* @__PURE__ */ l("div", { ref: r, className: "bg-default border-subtle flex flex-col gap-2 rounded-xl border p-2", children: e }), h = Object.assign(J, {
143
- Header: K,
144
- Content: X,
142
+ }) => /* @__PURE__ */ l("div", { ref: r, className: "bg-default border-subtle flex flex-col gap-2 rounded-xl border p-2", children: e }), h = Object.assign(p, {
143
+ Header: J,
144
+ Content: K,
145
145
  Title: R,
146
146
  Description: _,
147
147
  SubSection: Y,
@@ -170,10 +170,10 @@ function ne({
170
170
  o.viewer.apps.appById.invalidate({ appId: e }), o.viewer.apps.integrations.invalidate({
171
171
  extendsFeature: "EventType",
172
172
  ...n && { teamId: n }
173
- }), !(d != null && d.setupPending) && N(s("app_successfully_installed"), "success");
173
+ }), !(d != null && d.setupPending) && C(s("app_successfully_installed"), "success");
174
174
  },
175
175
  onError: (d) => {
176
- d instanceof Error && N(d.message || s("app_could_not_be_installed"), "error");
176
+ d instanceof Error && C(d.message || s("app_could_not_be_installed"), "error");
177
177
  }
178
178
  });
179
179
  return i ? /* @__PURE__ */ l(
@@ -219,7 +219,7 @@ function se({
219
219
  hideSettingsIcon: m = !1,
220
220
  hideAppCardOptions: E = !1
221
221
  }) {
222
- const { t: w } = L(), [I] = v(), { setAppData: P, LockedIcon: k, disabled: B } = F(), D = M();
222
+ const { t: w } = L(), [I] = v(), { setAppData: P, LockedIcon: O, disabled: k } = F(), B = U();
223
223
  return /* @__PURE__ */ a(h, { className: u(!(e != null && e.isInstalled) && "rounded-xl"), children: [
224
224
  /* @__PURE__ */ l(
225
225
  h.Header,
@@ -243,15 +243,15 @@ function se({
243
243
  }
244
244
  ) }),
245
245
  children: /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("div", { children: e != null && e.isInstalled || e.credentialOwner ? /* @__PURE__ */ l("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ l(
246
- U,
246
+ G,
247
247
  {
248
248
  size: "sm",
249
- disabled: !e.enabled || B || f,
249
+ disabled: !e.enabled || k || f,
250
250
  onCheckedChange: (S) => {
251
251
  t && t(S), P("enabled", S);
252
252
  },
253
253
  checked: n,
254
- LockedIcon: k,
254
+ LockedIcon: O,
255
255
  "data-testid": `${e.slug}-app-switch`,
256
256
  tooltip: d
257
257
  }
@@ -267,7 +267,7 @@ function se({
267
267
  }
268
268
  ),
269
269
  E ? null : (e == null ? void 0 : e.isInstalled) && n && /* @__PURE__ */ l("div", { ref: I, children: e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ a("div", { className: "relative text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
270
- !m && !D && /* @__PURE__ */ l(g, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ l(C, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
270
+ !m && !B && /* @__PURE__ */ l(g, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ l(N, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
271
271
  s
272
272
  ] }) : /* @__PURE__ */ a("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
273
273
  /* @__PURE__ */ l("p", { children: w("this_app_is_not_setup_already") }),
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { A as p } from "./index-WCahCkE1.js";
2
+ import { A as p } from "./index-GkJhe-oj.js";
3
3
  function s(o) {
4
4
  const t = `https://app.cal.com${o.logo}`;
5
5
  return /* @__PURE__ */ r(p, { ...o, logo: t });
@@ -1,11 +1,11 @@
1
1
  import { jsx as P } from "react/jsx-runtime";
2
- import { Q as i, s as y, R as A, U as R, A as Q } from "./index-WCahCkE1.js";
3
- import { useMemo as $, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
2
+ import { Z as i, z as y, _ as A, a0 as R, A as $ } from "./index-GkJhe-oj.js";
3
+ import { useMemo as Q, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
4
4
  i.string().or(i.number()).or(i.array(i.number())).transform((r) => typeof r == "string" ? r.split(",").map((o) => Number(o)) : Array.isArray(r) ? r : [r]);
5
5
  i.preprocess((r) => i.string().parse(r).split(","), i.string().array()).or(i.string().array());
6
- function U(r) {
6
+ function x(r) {
7
7
  const o = y.useRouter(), c = A(), u = y.usePathname(), a = r.safeParse(c);
8
- let s = $(() => ({}), []);
8
+ let s = Q(() => ({}), []);
9
9
  d(() => {
10
10
  a.success && a.data && Object.entries(a.data).forEach(([e, t]) => {
11
11
  if (e in c || !t)
@@ -55,11 +55,11 @@ function U(r) {
55
55
  removeAllQueryParams: g
56
56
  };
57
57
  }
58
- const x = i.object({ hl: i.string().optional() });
58
+ const C = i.object({ hl: i.string().optional() });
59
59
  function j(r) {
60
60
  const { slug: o, shouldHighlight: c } = r, {
61
61
  data: { hl: u }
62
- } = U(x), a = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = R(), h = y.usePathname();
62
+ } = x(C), a = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = R(), h = y.usePathname();
63
63
  return d(() => (c && s && f !== null && h !== null && (l.current = setTimeout(() => {
64
64
  const g = new URLSearchParams(f.toString());
65
65
  g.delete("hl"), g.delete("category"), m(!1);
@@ -67,7 +67,7 @@ function j(r) {
67
67
  a.replace(`${h}${e !== "" ? `?${e}` : ""}`);
68
68
  }, 3e3)), () => {
69
69
  l.current && (clearTimeout(l.current), l.current = null);
70
- }), [s, h, a, f, c]), /* @__PURE__ */ P(Q, { ...r });
70
+ }), [s, h, a, f, c]), /* @__PURE__ */ P($, { ...r });
71
71
  }
72
72
  export {
73
73
  j as default
@@ -1,8 +1,8 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as s } from "react";
3
- import { q as i, f as l, r as m } from "./index-WCahCkE1.js";
3
+ import { y as i, f as l, u as m } from "./index-GkJhe-oj.js";
4
4
  function h() {
5
- const { t: a } = i(), n = "metric", [e, r] = s("");
5
+ const { t: a } = i(), n = "metric", [e, c] = s("");
6
6
  return /* @__PURE__ */ o("div", { className: "space-y-4 text-sm", children: [
7
7
  /* @__PURE__ */ t(
8
8
  l,
@@ -10,8 +10,8 @@ function h() {
10
10
  placeholder: "San Francisco",
11
11
  value: e,
12
12
  name: "Enter City",
13
- onChange: async (c) => {
14
- r(c.target.value);
13
+ onChange: async (r) => {
14
+ c(r.target.value);
15
15
  }
16
16
  }
17
17
  ),
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as p } from "react";
3
- import { q as r, f as u, r as i } from "./index-WCahCkE1.js";
3
+ import { y as r, f as u, u as i } from "./index-GkJhe-oj.js";
4
4
  function d() {
5
5
  const { t: e } = r(), [s, n] = p("");
6
6
  return /* @__PURE__ */ o("div", { className: "space-y-4 px-4 pb-4 pt-4 text-sm", children: [
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as e, Fragment as r } from "react/jsx-runtime";
2
- import { r as i, q as o } from "./index-WCahCkE1.js";
2
+ import { u as i, y as o } from "./index-GkJhe-oj.js";
3
3
  function d({ template: t }) {
4
4
  return /* @__PURE__ */ a("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
5
5
  /* @__PURE__ */ a("div", { className: "flex items-start justify-start", children: [
@@ -0,0 +1,74 @@
1
+ import { jsx as i, jsxs as c, Fragment as f } from "react/jsx-runtime";
2
+ import { r as h, s as m, $ as y, t as d, u as g, v as n, w as k } from "./index-GkJhe-oj.js";
3
+ function w({
4
+ className: s,
5
+ dates: t,
6
+ minDate: a,
7
+ maxDate: u,
8
+ onDatesChange: e,
9
+ disabled: b,
10
+ withoutPopover: p,
11
+ "data-testid": v,
12
+ strictlyBottom: o,
13
+ allowPastDates: l = !1
14
+ }) {
15
+ function $(r) {
16
+ if (l)
17
+ if (t != null && t.endDate)
18
+ e({ startDate: r, endDate: void 0 });
19
+ else {
20
+ const x = t.startDate ? r < t.startDate ? r : t.startDate : r, L = t.startDate ? r < t.startDate ? t.startDate : r : void 0;
21
+ e({ startDate: x, endDate: L });
22
+ }
23
+ else
24
+ t.startDate ? t.endDate ? r.getTime() === t.startDate.getTime() || r.getTime() === t.endDate.getTime() ? e({ startDate: r, endDate: void 0 }) : r < t.startDate ? e({ startDate: r, endDate: void 0 }) : e({ startDate: t.startDate, endDate: r }) : r < t.startDate ? e({ startDate: r, endDate: t.startDate }) : e({ startDate: t.startDate, endDate: r }) : e({ startDate: r, endDate: void 0 });
25
+ }
26
+ const D = /* @__PURE__ */ i(
27
+ h,
28
+ {
29
+ initialFocus: !0,
30
+ fromDate: l && a === null ? void 0 : a ?? /* @__PURE__ */ new Date(),
31
+ toDate: u,
32
+ mode: "range",
33
+ defaultMonth: t == null ? void 0 : t.startDate,
34
+ selected: { from: t == null ? void 0 : t.startDate, to: t == null ? void 0 : t.endDate },
35
+ onDayClick: (r) => $(r),
36
+ numberOfMonths: 1,
37
+ disabled: b,
38
+ "data-testid": v
39
+ }
40
+ );
41
+ return p ? D : /* @__PURE__ */ i("div", { className: m("grid gap-2", s), children: /* @__PURE__ */ c(y, { children: [
42
+ /* @__PURE__ */ i(d, { asChild: !0, children: /* @__PURE__ */ i(
43
+ g,
44
+ {
45
+ "data-testid": "date-range",
46
+ color: "secondary",
47
+ EndIcon: "calendar",
48
+ className: m("justify-between text-left font-normal", !t && "text-subtle"),
49
+ children: t != null && t.startDate ? t != null && t.endDate ? /* @__PURE__ */ c(f, { children: [
50
+ n(t.startDate, "LLL dd, y"),
51
+ " - ",
52
+ n(t.endDate, "LLL dd, y")
53
+ ] }) : /* @__PURE__ */ c(f, { children: [
54
+ n(t.startDate, "LLL dd, y"),
55
+ " - End"
56
+ ] }) : /* @__PURE__ */ i("span", { children: "Pick a date" })
57
+ }
58
+ ) }),
59
+ /* @__PURE__ */ i(
60
+ k,
61
+ {
62
+ className: "bg-default text-emphasis z-50 w-auto rounded-md border p-0 outline-none",
63
+ align: "start",
64
+ sideOffset: 4,
65
+ side: o ? "bottom" : void 0,
66
+ avoidCollisions: !o,
67
+ children: D
68
+ }
69
+ )
70
+ ] }) });
71
+ }
72
+ export {
73
+ w as DatePickerWithRange
74
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-WCahCkE1.js";
3
- import { A as c } from "./AppCard-hN4JJeXf.js";
4
- import { u } from "./useIsAppEnabled-C8lVT7D4.js";
5
- import l from "./EventTypeAppSettingsInterface-lsxcvaFv.js";
2
+ import { G as m } from "./index-GkJhe-oj.js";
3
+ import { A as c } from "./AppCard-vSAp__lv.js";
4
+ import { u } from "./useIsAppEnabled-oIf6wORY.js";
5
+ import l from "./EventTypeAppSettingsInterface-ycOpDd2-.js";
6
6
  const b = function({ app: t, eventType: e }) {
7
7
  var p;
8
8
  const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);