@calcom/atoms 1.0.101-booker → 1.0.102-framer

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 (421) hide show
  1. package/dist/{AddressInput-juYkbZV2.js → AddressInput-HHWre7wa.js} +3 -3
  2. package/dist/{AlbyPriceComponent-zPblWsmO.js → AlbyPriceComponent-PiAQRyyF.js} +29 -29
  3. package/dist/AppCard-sZ0O4rSq.js +269 -0
  4. package/dist/AppListCardPlatformWrapper-3MnkMx3x.js +9 -0
  5. package/dist/AppListCardWebWrapper-k80VJ3AR.js +74 -0
  6. package/dist/AppSettingsInterface--tKm6fGn.js +75 -0
  7. package/dist/AppSettingsInterface-WX_BLXDA.js +23 -0
  8. package/dist/AppSettingsInterface-XM13ce3E.js +29 -0
  9. package/dist/DateRangePicker-Fh_dsIdj.js +2418 -0
  10. package/dist/EventTypeAppCardInterface-0Jaxf6Yz.js +686 -0
  11. package/dist/EventTypeAppCardInterface-17vlTbvX.js +24 -0
  12. package/dist/EventTypeAppCardInterface-1wRC7oyo.js +24 -0
  13. package/dist/EventTypeAppCardInterface-2BSSOgqQ.js +34 -0
  14. package/dist/EventTypeAppCardInterface-3Z4hJuXU.js +24 -0
  15. package/dist/EventTypeAppCardInterface-6yy2mWL4.js +49 -0
  16. package/dist/EventTypeAppCardInterface-77QzFk7h.js +41 -0
  17. package/dist/EventTypeAppCardInterface-9knMJyHl.js +34 -0
  18. package/dist/EventTypeAppCardInterface-B0o2UQlj.js +34 -0
  19. package/dist/EventTypeAppCardInterface-Cz53nZwO.js +42 -0
  20. package/dist/EventTypeAppCardInterface-JUes7Gej.js +32 -0
  21. package/dist/EventTypeAppCardInterface-KHTT8wJl.js +24 -0
  22. package/dist/EventTypeAppCardInterface-Serbjt3a.js +41 -0
  23. package/dist/EventTypeAppCardInterface-VM43qaV4.js +51 -0
  24. package/dist/EventTypeAppCardInterface-WAgtkJTr.js +24 -0
  25. package/dist/EventTypeAppCardInterface-bE8PXNkn.js +51 -0
  26. package/dist/EventTypeAppCardInterface-eRfD8up8.js +31 -0
  27. package/dist/EventTypeAppCardInterface-fb10ijkP.js +34 -0
  28. package/dist/EventTypeAppCardInterface-mdMn_7JM.js +39 -0
  29. package/dist/EventTypeAppCardInterface-n9yqPo1B.js +33 -0
  30. package/dist/EventTypeAppCardInterface-oVYKJdV6.js +42 -0
  31. package/dist/EventTypeAppCardInterface-of1RhX-E.js +34 -0
  32. package/dist/EventTypeAppCardInterface-pTMF-k4A.js +32 -0
  33. package/dist/EventTypeAppCardInterface-qmB5vAlZ.js +86 -0
  34. package/dist/EventTypeAppCardInterface-rmXPvya0.js +34 -0
  35. package/dist/EventTypeAppCardInterface-vwIFMiKz.js +34 -0
  36. package/dist/EventTypeAppSettingsInterface-1Vh5bTl5.js +43 -0
  37. package/dist/EventTypeAppSettingsInterface-2Qwj1n4F.js +23 -0
  38. package/dist/EventTypeAppSettingsInterface-4Xqm5uVF.js +78 -0
  39. package/dist/EventTypeAppSettingsInterface-FV_o-vj_.js +120 -0
  40. package/dist/EventTypeAppSettingsInterface-HU1G4DbI.js +23 -0
  41. package/dist/EventTypeAppSettingsInterface-N3HkZEfB.js +25 -0
  42. package/dist/EventTypeAppSettingsInterface-coxZW4Hf.js +48 -0
  43. package/dist/EventTypeAppSettingsInterface-d-r4ksUA.js +298 -0
  44. package/dist/EventTypeAppSettingsInterface-hTxsbtaU.js +42 -0
  45. package/dist/EventTypeAppSettingsInterface-nE6EDu1s.js +24 -0
  46. package/dist/EventTypeAppSettingsInterface-nyRy26Mb.js +221 -0
  47. package/dist/EventTypeAppSettingsInterface-yVNFEGsi.js +72 -0
  48. package/dist/InstallAppButton-3IKq2MmS.js +14 -0
  49. package/dist/InstallAppButton-5g7VZ1ro.js +14 -0
  50. package/dist/InstallAppButton-JXhBVaYJ.js +29 -0
  51. package/dist/InstallAppButton-TcCIETs3.js +58 -0
  52. package/dist/{PhoneInput-lzIUvvEp.js → PhoneInput-sIw_kpf_.js} +1 -1
  53. package/dist/StripePaymentForm-RyrxioJN.js +493 -0
  54. package/dist/cal-atoms.js +37 -3
  55. package/dist/currencyOptions-kannG2hu.js +61 -0
  56. package/dist/index-AZ6i1wpi.js +518 -0
  57. package/dist/index-K90Yu3PC.js +28 -0
  58. package/dist/index-LRugxdBo.js +158496 -0
  59. package/dist/{index-pxPagOVY.js → index-fMTiPIwd.js} +1 -1
  60. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  61. package/dist/packages/features/bookings/Booker/components/AvailableTimeSlots.d.ts.map +1 -1
  62. package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts +1 -1
  63. package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts +9 -9
  64. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +9 -9
  65. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +86 -8
  66. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
  67. package/dist/packages/features/bookings/Booker/types.d.ts +1 -0
  68. package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
  69. package/dist/packages/features/bookings/Booker/utils/event.d.ts +151 -133
  70. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  71. package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.d.ts +1 -1
  72. package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.d.ts.map +1 -1
  73. package/dist/packages/features/bookings/lib/create-booking.d.ts +75 -75
  74. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +75 -75
  75. package/dist/packages/features/bookings/lib/get-booking.d.ts +40 -40
  76. package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
  77. package/dist/packages/features/bookings/lib/getAllCredentialsForUsersOnEvent/refreshCredentials.d.ts +1 -6
  78. package/dist/packages/features/bookings/lib/getAllCredentialsForUsersOnEvent/refreshCredentials.d.ts.map +1 -1
  79. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +56 -56
  80. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +129 -129
  81. package/dist/packages/features/bookings/lib/getBookingFields.d.ts +20 -20
  82. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +68 -52
  83. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
  84. package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts +6 -6
  85. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +95 -92
  86. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  87. package/dist/packages/features/bookings/lib/getUserBooking.d.ts +34 -26
  88. package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
  89. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  90. package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +1 -1
  91. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts +1 -1
  92. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts.map +1 -1
  93. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -34
  94. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
  95. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +610 -3
  96. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  97. package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts +14 -14
  98. package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts.map +1 -1
  99. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +209 -32
  100. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  101. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +1189 -0
  102. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -0
  103. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +162 -154
  104. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  105. package/dist/packages/features/bookings/lib/handleNewBooking/getLocationValuesForDb.d.ts +1 -1
  106. package/dist/packages/features/bookings/lib/handleNewBooking/getLocationValuesForDb.d.ts.map +1 -1
  107. package/dist/packages/features/bookings/lib/handleNewBooking/getRequiresConfirmationFlags.d.ts +1 -0
  108. package/dist/packages/features/bookings/lib/handleNewBooking/getRequiresConfirmationFlags.d.ts.map +1 -1
  109. package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts +2 -2
  110. package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts.map +1 -1
  111. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +76 -74
  112. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  113. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +59 -59
  114. package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts.map +1 -1
  115. package/dist/packages/features/bookings/lib/handleNewBooking/test/buildDryRunBooking.test.d.ts +2 -0
  116. package/dist/packages/features/bookings/lib/handleNewBooking/test/buildDryRunBooking.test.d.ts.map +1 -0
  117. package/dist/packages/features/bookings/lib/handleNewBooking/validateBookingTimeIsNotOutOfBounds.d.ts.map +1 -1
  118. package/dist/packages/features/bookings/lib/handleNewBooking/validateEventLength.d.ts +1 -1
  119. package/dist/packages/features/bookings/lib/handleNewBooking/validateEventLength.d.ts.map +1 -1
  120. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +155 -75
  121. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  122. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +31 -31
  123. package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts +14 -14
  124. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts +14 -14
  125. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts +14 -14
  126. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +31 -31
  127. package/dist/packages/features/bookings/lib/handleWebhookTrigger.d.ts +2 -2
  128. package/dist/packages/features/bookings/lib/handleWebhookTrigger.d.ts.map +1 -1
  129. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +122 -0
  130. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts.map +1 -0
  131. package/dist/packages/features/bookings/lib/useFilterQuery.d.ts +4 -4
  132. package/dist/packages/features/data-table/DataTableProvider.d.ts +1 -0
  133. package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
  134. package/dist/packages/features/data-table/components/DataTable.d.ts +2 -1
  135. package/dist/packages/features/data-table/components/DataTable.d.ts.map +1 -1
  136. package/dist/packages/features/data-table/components/DataTableWrapper.d.ts +3 -1
  137. package/dist/packages/features/data-table/components/DataTableWrapper.d.ts.map +1 -1
  138. package/dist/packages/features/data-table/components/filters/ActiveFilters.d.ts.map +1 -1
  139. package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts +2 -1
  140. package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
  141. package/dist/packages/features/data-table/components/filters/FilterPopover.d.ts.map +1 -1
  142. package/dist/packages/features/data-table/components/filters/useFilterPopoverOpen.d.ts +5 -0
  143. package/dist/packages/features/data-table/components/filters/useFilterPopoverOpen.d.ts.map +1 -0
  144. package/dist/packages/features/data-table/components/segment/DeleteSegmentDialog.d.ts.map +1 -1
  145. package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
  146. package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
  147. package/dist/packages/features/data-table/index.d.ts +1 -0
  148. package/dist/packages/features/data-table/index.d.ts.map +1 -1
  149. package/dist/packages/features/data-table/lib/parsers.d.ts +127 -0
  150. package/dist/packages/features/data-table/lib/parsers.d.ts.map +1 -0
  151. package/dist/packages/features/data-table/lib/serializers.d.ts +90 -0
  152. package/dist/packages/features/data-table/lib/serializers.d.ts.map +1 -0
  153. package/dist/packages/features/data-table/lib/server.d.ts +12 -1
  154. package/dist/packages/features/data-table/lib/server.d.ts.map +1 -1
  155. package/dist/packages/features/data-table/lib/types.d.ts +158 -157
  156. package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
  157. package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.d.ts +6 -0
  158. package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.d.ts.map +1 -0
  159. package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.org.d.ts +2 -2
  160. package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.org.d.ts.map +1 -1
  161. package/dist/packages/features/ee/billing/api/webhook/index.d.ts.map +1 -1
  162. package/dist/packages/features/ee/billing/billing-service.d.ts +1 -0
  163. package/dist/packages/features/ee/billing/billing-service.d.ts.map +1 -1
  164. package/dist/packages/features/ee/billing/credit-service.d.ts +45 -0
  165. package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -0
  166. package/dist/packages/features/ee/billing/credit-service.test.d.ts +2 -0
  167. package/dist/packages/features/ee/billing/credit-service.test.d.ts.map +1 -0
  168. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +1 -1
  169. package/dist/packages/features/ee/billing/stripe-billling-service.d.ts +11 -0
  170. package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
  171. package/dist/packages/features/ee/billing/teams/internal-team-billing.d.ts +5 -0
  172. package/dist/packages/features/ee/billing/teams/internal-team-billing.d.ts.map +1 -1
  173. package/dist/packages/features/ee/payments/pages/payment.d.ts +49 -46
  174. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  175. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts +27 -3
  176. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts.map +1 -1
  177. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +2 -0
  178. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  179. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +33 -33
  180. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  181. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  182. package/dist/packages/features/ee/workflows/api/handleSMSResponse.d.ts +7 -0
  183. package/dist/packages/features/ee/workflows/api/handleSMSResponse.d.ts.map +1 -0
  184. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  185. package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
  186. package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.d.ts.map +1 -1
  187. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +4 -1
  188. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  189. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -0
  190. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  191. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts +42 -0
  192. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts.map +1 -0
  193. package/dist/packages/features/ee/workflows/lib/reminders/providers/twilioProvider.d.ts +35 -2
  194. package/dist/packages/features/ee/workflows/lib/reminders/providers/twilioProvider.d.ts.map +1 -1
  195. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +2 -1
  196. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
  197. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.test.d.ts +2 -0
  198. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.test.d.ts.map +1 -0
  199. package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts +2 -2
  200. package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
  201. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts +2 -0
  202. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
  203. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
  204. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
  205. package/dist/packages/features/ee/workflows/lib/repository/workflowOptOutContact.d.ts +6 -0
  206. package/dist/packages/features/ee/workflows/lib/repository/workflowOptOutContact.d.ts.map +1 -0
  207. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +18 -0
  208. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts.map +1 -0
  209. package/dist/packages/features/ee/workflows/lib/schema.d.ts +8 -8
  210. package/dist/packages/features/ee/workflows/lib/service/workflowOptOutService.d.ts +5 -0
  211. package/dist/packages/features/ee/workflows/lib/service/workflowOptOutService.d.ts.map +1 -0
  212. package/dist/packages/features/eventtypes/components/SkeletonLoader.d.ts +0 -1
  213. package/dist/packages/features/eventtypes/components/SkeletonLoader.d.ts.map +1 -1
  214. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +4 -1
  215. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  216. package/dist/packages/features/eventtypes/components/tabs/apps/EventAppsTab.d.ts.map +1 -1
  217. package/dist/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.d.ts.map +1 -1
  218. package/dist/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.d.ts.map +1 -1
  219. package/dist/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.d.ts.map +1 -1
  220. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +147 -130
  221. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  222. package/dist/packages/features/eventtypes/lib/types.d.ts +1 -0
  223. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  224. package/dist/packages/features/form-builder/Components.d.ts.map +1 -1
  225. package/dist/packages/features/form-builder/schema.d.ts +162 -162
  226. package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
  227. package/dist/packages/features/form-builder/testUtils.d.ts +10 -10
  228. package/dist/packages/features/form-builder/utils/variantsConfig.d.ts +6 -6
  229. package/dist/packages/features/schedules/components/ScheduleListItem.d.ts.map +1 -1
  230. package/dist/packages/features/schedules/lib/use-schedule/useApiV2AvailableSlots.d.ts +6 -0
  231. package/dist/packages/features/schedules/lib/use-schedule/useApiV2AvailableSlots.d.ts.map +1 -0
  232. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts +218 -70
  233. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts.map +1 -1
  234. package/dist/packages/features/shell/useBottomNavItems.d.ts.map +1 -1
  235. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  236. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  237. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  238. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  239. package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts +1 -0
  240. package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts.map +1 -1
  241. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +3 -0
  242. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
  243. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useConnect.d.ts +1 -1
  244. package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts +146 -130
  245. package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts.map +1 -1
  246. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +99 -91
  247. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  248. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +47 -44
  249. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  250. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +79 -70
  251. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  252. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  253. package/dist/packages/platform/atoms/event-types/hooks/usePlatformTabsNavigations.d.ts +1 -1
  254. package/dist/packages/platform/atoms/hooks/bookings/useCancelBooking.d.ts +2 -2
  255. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +75 -75
  256. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +78 -78
  257. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +75 -75
  258. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +12 -12
  259. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts +2 -4
  260. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
  261. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +3 -0
  262. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
  263. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +3 -0
  264. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
  265. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +3 -0
  266. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
  267. package/dist/packages/platform/atoms/hooks/schedules/useDeleteSchedule.d.ts +1 -1
  268. package/dist/packages/platform/atoms/hooks/useAvailableSlots.d.ts +0 -2
  269. package/dist/packages/platform/atoms/hooks/useAvailableSlots.d.ts.map +1 -1
  270. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +87 -9
  271. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  272. package/dist/packages/platform/atoms/hooks/useDeleteSelectedSlot.d.ts +1 -1
  273. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +147 -130
  274. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
  275. package/dist/packages/platform/atoms/hooks/useSlots.d.ts +2 -1
  276. package/dist/packages/platform/atoms/hooks/useSlots.d.ts.map +1 -1
  277. package/dist/packages/platform/atoms/router/Router.d.ts +1 -1
  278. package/dist/packages/platform/atoms/router/Router.d.ts.map +1 -1
  279. package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +4 -4
  280. package/dist/packages/platform/atoms/src/components/ui/switch.d.ts +1 -1
  281. package/dist/packages/platform/atoms/src/components/ui/toast.d.ts +5 -5
  282. package/dist/packages/platform/libraries/emails.d.ts +6 -0
  283. package/dist/packages/platform/libraries/emails.d.ts.map +1 -1
  284. package/dist/packages/platform/libraries/index.d.ts +4 -0
  285. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  286. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +3 -3
  287. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  288. package/dist/packages/platform/types/bookings/2024-08-13/inputs/location.input.d.ts +1 -1
  289. package/dist/packages/platform/types/bookings/2024-08-13/inputs/location.input.d.ts.map +1 -1
  290. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-bookings.output.d.ts +10 -0
  291. package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-bookings.output.d.ts.map +1 -1
  292. package/dist/packages/platform/types/calendars/index.d.ts +2 -0
  293. package/dist/packages/platform/types/calendars/index.d.ts.map +1 -0
  294. package/dist/packages/platform/types/{calendars.d.ts → calendars/inputs/busy-times.input.d.ts} +1 -1
  295. package/dist/packages/platform/types/calendars/inputs/busy-times.input.d.ts.map +1 -0
  296. package/dist/packages/platform/types/calendars/inputs/create-calendar-credentials.input.d.ts +5 -0
  297. package/dist/packages/platform/types/calendars/inputs/create-calendar-credentials.input.d.ts.map +1 -0
  298. package/dist/packages/platform/types/calendars/inputs/index.d.ts +3 -0
  299. package/dist/packages/platform/types/calendars/inputs/index.d.ts.map +1 -0
  300. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/booker-layouts.input.d.ts +5 -1
  301. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/booker-layouts.input.d.ts.map +1 -1
  302. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  303. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  304. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
  305. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  306. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
  307. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
  308. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/locations.output.d.ts +1 -1
  309. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/locations.output.d.ts.map +1 -1
  310. package/dist/packages/platform/types/routing-forms/responses/routing-form-response.output.d.ts +1 -1
  311. package/dist/packages/platform/types/schedules/schedules-2024-04-15/schedules.d.ts +9 -9
  312. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts +7 -0
  313. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts.map +1 -1
  314. package/dist/packages/prisma/zod/accesscode.d.ts +2 -2
  315. package/dist/packages/prisma/zod/accesstoken.d.ts +2 -2
  316. package/dist/packages/prisma/zod/account.d.ts +2 -2
  317. package/dist/packages/prisma/zod/aiphonecallconfiguration.d.ts +2 -2
  318. package/dist/packages/prisma/zod/app.d.ts +4 -4
  319. package/dist/packages/prisma/zod/app_routingforms_form.d.ts +14 -14
  320. package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts +4 -4
  321. package/dist/packages/prisma/zod/app_routingforms_incompletebookingactions.d.ts +2 -2
  322. package/dist/packages/prisma/zod/assignmentreason.d.ts +2 -2
  323. package/dist/packages/prisma/zod/attendee.d.ts +2 -2
  324. package/dist/packages/prisma/zod/attribute.d.ts +6 -6
  325. package/dist/packages/prisma/zod/attributeoption.d.ts +2 -2
  326. package/dist/packages/prisma/zod/availability.d.ts +2 -2
  327. package/dist/packages/prisma/zod/avatar.d.ts +2 -2
  328. package/dist/packages/prisma/zod/booking.d.ts +16 -15
  329. package/dist/packages/prisma/zod/booking.d.ts.map +1 -1
  330. package/dist/packages/prisma/zod/bookingdenormalized.d.ts +84 -0
  331. package/dist/packages/prisma/zod/bookingdenormalized.d.ts.map +1 -0
  332. package/dist/packages/prisma/zod/bookinginternalnote.d.ts +2 -2
  333. package/dist/packages/prisma/zod/bookingseat.d.ts +8 -8
  334. package/dist/packages/prisma/zod/bookingtimestatusdenormalized.d.ts +87 -0
  335. package/dist/packages/prisma/zod/bookingtimestatusdenormalized.d.ts.map +1 -0
  336. package/dist/packages/prisma/zod/calendarcache.d.ts +5 -2
  337. package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
  338. package/dist/packages/prisma/zod/credential.d.ts +7 -3
  339. package/dist/packages/prisma/zod/credential.d.ts.map +1 -1
  340. package/dist/packages/prisma/zod/creditbalance.d.ts +36 -0
  341. package/dist/packages/prisma/zod/creditbalance.d.ts.map +1 -0
  342. package/dist/packages/prisma/zod/creditexpenselog.d.ts +41 -0
  343. package/dist/packages/prisma/zod/creditexpenselog.d.ts.map +1 -0
  344. package/dist/packages/prisma/zod/custom/booking.d.ts +100 -100
  345. package/dist/packages/prisma/zod/custom/eventtype.d.ts +265 -235
  346. package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
  347. package/dist/packages/prisma/zod/delegationcredential.d.ts +2 -1
  348. package/dist/packages/prisma/zod/delegationcredential.d.ts.map +1 -1
  349. package/dist/packages/prisma/zod/eventtype.d.ts +292 -259
  350. package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
  351. package/dist/packages/prisma/zod/eventtypecustominput.d.ts +10 -10
  352. package/dist/packages/prisma/zod/eventtypetranslation.d.ts +4 -4
  353. package/dist/packages/prisma/zod/feedback.d.ts +4 -4
  354. package/dist/packages/prisma/zod/filtersegment.d.ts +2 -2
  355. package/dist/packages/prisma/zod/hashedlink.d.ts +2 -2
  356. package/dist/packages/prisma/zod/index.d.ts +5 -0
  357. package/dist/packages/prisma/zod/index.d.ts.map +1 -1
  358. package/dist/packages/prisma/zod/instantmeetingtoken.d.ts +4 -4
  359. package/dist/packages/prisma/zod/internalnotepreset.d.ts +4 -4
  360. package/dist/packages/prisma/zod/membership.d.ts +8 -2
  361. package/dist/packages/prisma/zod/membership.d.ts.map +1 -1
  362. package/dist/packages/prisma/zod/oauthclient.d.ts +2 -2
  363. package/dist/packages/prisma/zod/organizationonboarding.d.ts +8 -8
  364. package/dist/packages/prisma/zod/organizationsettings.d.ts +11 -8
  365. package/dist/packages/prisma/zod/organizationsettings.d.ts.map +1 -1
  366. package/dist/packages/prisma/zod/outofofficeentry.d.ts +4 -4
  367. package/dist/packages/prisma/zod/payment.d.ts +6 -6
  368. package/dist/packages/prisma/zod/platformbilling.d.ts +3 -0
  369. package/dist/packages/prisma/zod/platformbilling.d.ts.map +1 -1
  370. package/dist/packages/prisma/zod/platformoauthclient.d.ts +2 -2
  371. package/dist/packages/prisma/zod/profile.d.ts +2 -2
  372. package/dist/packages/prisma/zod/ratelimit.d.ts +4 -4
  373. package/dist/packages/prisma/zod/refreshtoken.d.ts +2 -2
  374. package/dist/packages/prisma/zod/routingformresponse.d.ts +4 -4
  375. package/dist/packages/prisma/zod/schedule.d.ts +2 -2
  376. package/dist/packages/prisma/zod/secondaryemail.d.ts +2 -2
  377. package/dist/packages/prisma/zod/selectedslots.d.ts +2 -2
  378. package/dist/packages/prisma/zod/session.d.ts +2 -2
  379. package/dist/packages/prisma/zod/team.d.ts +11 -10
  380. package/dist/packages/prisma/zod/team.d.ts.map +1 -1
  381. package/dist/packages/prisma/zod/teamfeatures.d.ts +4 -4
  382. package/dist/packages/prisma/zod/temporgredirect.d.ts +4 -4
  383. package/dist/packages/prisma/zod/user.d.ts +16 -15
  384. package/dist/packages/prisma/zod/user.d.ts.map +1 -1
  385. package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
  386. package/dist/packages/prisma/zod/verificationtoken.d.ts +2 -2
  387. package/dist/packages/prisma/zod/workflow.d.ts +2 -2
  388. package/dist/packages/prisma/zod/workflowoptoutcontact.d.ts +27 -0
  389. package/dist/packages/prisma/zod/workflowoptoutcontact.d.ts.map +1 -0
  390. package/dist/packages/prisma/zod/workflowreminder.d.ts +2 -2
  391. package/dist/packages/prisma/zod/workflowstep.d.ts +4 -4
  392. package/dist/packages/prisma/zod/workspaceplatform.d.ts +2 -2
  393. package/dist/packages/prisma/zod-utils.d.ts +637 -565
  394. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  395. package/dist/packages/prisma-client/index.d.ts +41048 -30825
  396. package/dist/packages/trpc/react/hooks/useEmailVerifyCheck.d.ts +10 -1
  397. package/dist/packages/trpc/react/hooks/useEmailVerifyCheck.d.ts.map +1 -1
  398. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +30 -21
  399. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts.map +1 -1
  400. package/dist/packages/trpc/react/shared.d.ts +1 -1
  401. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  402. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +10 -1
  403. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
  404. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +2 -2
  405. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
  406. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +606 -321
  407. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  408. package/dist/style.css +1 -1
  409. package/dist/useIsAppEnabled-hrstotzg.js +18 -0
  410. package/package.json +1 -1
  411. package/dist/index-1iD3RAuF.js +0 -83360
  412. package/dist/index-4eiX6cBE.js +0 -1957
  413. package/dist/packages/features/schedules/components/index.d.ts +0 -7
  414. package/dist/packages/features/schedules/components/index.d.ts.map +0 -1
  415. package/dist/packages/features/schedules/index.d.ts +0 -4
  416. package/dist/packages/features/schedules/index.d.ts.map +0 -1
  417. package/dist/packages/features/schedules/lib/use-schedule/index.d.ts +0 -5
  418. package/dist/packages/features/schedules/lib/use-schedule/index.d.ts.map +0 -1
  419. package/dist/packages/platform/atoms/index.d.ts +0 -3
  420. package/dist/packages/platform/atoms/index.d.ts.map +0 -1
  421. package/dist/packages/platform/types/calendars.d.ts.map +0 -1
@@ -0,0 +1,42 @@
1
+ import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
+ import { s as i, t as f, v as g, q as v, W as S } from "./index-LRugxdBo.js";
3
+ import { useMemo as b, useState as C } from "react";
4
+ import { A as w } from "./AppCard-sZ0O4rSq.js";
5
+ import E from "./EventTypeAppSettingsInterface-4Xqm5uVF.js";
6
+ const W = function({
7
+ app: a,
8
+ eventType: c,
9
+ eventTypeFormMetadata: m
10
+ }) {
11
+ const t = i.useSearchParams(), s = i.usePathname(), h = b(
12
+ () => `${s}${t ? `?${t.toString()}` : ""}`,
13
+ [s, t]
14
+ ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = g(m), { t: y } = v(), r = !o && A;
15
+ return /* @__PURE__ */ e(
16
+ w,
17
+ {
18
+ returnTo: S + h,
19
+ app: a,
20
+ switchChecked: o,
21
+ switchOnClick: (P) => {
22
+ u(P);
23
+ },
24
+ description: /* @__PURE__ */ e(p, { children: "Add Paypal payment to your events" }),
25
+ disableSwitch: r,
26
+ switchTooltip: r ? y("other_payment_app_enabled") : void 0,
27
+ children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
28
+ E,
29
+ {
30
+ eventType: c,
31
+ slug: a.slug,
32
+ disabled: l,
33
+ getAppData: n,
34
+ setAppData: d
35
+ }
36
+ ) })
37
+ }
38
+ );
39
+ };
40
+ export {
41
+ W as default
42
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { t as m, q as f } from "./index-LRugxdBo.js";
3
+ import { A as l } from "./AppCard-sZ0O4rSq.js";
4
+ import { u } from "./useIsAppEnabled-hrstotzg.js";
5
+ import A from "./EventTypeAppSettingsInterface-nyRy26Mb.js";
6
+ const w = function({ app: t, eventType: e }) {
7
+ var o;
8
+ const { getAppData: s, setAppData: a, disabled: p } = m(), { enabled: n, updateEnabled: r } = u(t), { t: c } = f();
9
+ return /* @__PURE__ */ i(
10
+ l,
11
+ {
12
+ app: t,
13
+ description: c("confirmation_page_gif"),
14
+ switchOnClick: (d) => {
15
+ r(d);
16
+ },
17
+ switchChecked: n,
18
+ teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
19
+ children: /* @__PURE__ */ i(
20
+ A,
21
+ {
22
+ eventType: e,
23
+ slug: t.slug,
24
+ disabled: p,
25
+ getAppData: s,
26
+ setAppData: a
27
+ }
28
+ )
29
+ }
30
+ );
31
+ };
32
+ export {
33
+ w as default
34
+ };
@@ -0,0 +1,32 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as d } from "./index-LRugxdBo.js";
3
+ import { A as m } from "./AppCard-sZ0O4rSq.js";
4
+ import { u as c } from "./useIsAppEnabled-hrstotzg.js";
5
+ import u from "./EventTypeAppSettingsInterface-HU1G4DbI.js";
6
+ const E = function({ app: t, eventType: e }) {
7
+ var p;
8
+ const { getAppData: r, setAppData: s, disabled: n } = d(), { enabled: o, updateEnabled: i } = c(t);
9
+ return /* @__PURE__ */ a(
10
+ m,
11
+ {
12
+ hideSettingsIcon: !0,
13
+ app: t,
14
+ switchOnClick: i,
15
+ switchChecked: o,
16
+ teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
17
+ children: /* @__PURE__ */ a(
18
+ u,
19
+ {
20
+ eventType: e,
21
+ slug: t.slug,
22
+ disabled: n,
23
+ getAppData: r,
24
+ setAppData: s
25
+ }
26
+ )
27
+ }
28
+ );
29
+ };
30
+ export {
31
+ E as default
32
+ };
@@ -0,0 +1,86 @@
1
+ import { jsx as t, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
+ import { s as v, q as F, t as T, w as a, W as _, x as L, f as V, S as x } from "./index-LRugxdBo.js";
3
+ import { useMemo as W, useState as p } from "react";
4
+ import { A as $ } from "./AppCard-sZ0O4rSq.js";
5
+ import { c as g, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
+ const H = function({ app: S, eventType: A }) {
7
+ var f, h;
8
+ const i = v.useSearchParams(), d = v.usePathname(), P = W(
9
+ () => `${d}${i ? `?${i.toString()}` : ""}`,
10
+ [d, i]
11
+ ), { t: n } = F(), { getAppData: r, setAppData: c } = T(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(g.find((e) => e.value === l)), [w, E] = p(
12
+ j(l) ? C[l] : ""
13
+ ), [b, q] = p(N), m = ((f = a) == null ? void 0 : f.find((e) => k === e.value)) || {
14
+ label: a[0].label,
15
+ value: a[0].value
16
+ }, D = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
+ return /* @__PURE__ */ t(
18
+ $,
19
+ {
20
+ returnTo: _ + P,
21
+ app: S,
22
+ switchChecked: b,
23
+ switchOnClick: (e) => {
24
+ q(e);
25
+ },
26
+ description: /* @__PURE__ */ t(o, { children: "Add a mock payment to your events" }),
27
+ children: /* @__PURE__ */ t(o, { children: D ? /* @__PURE__ */ t(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
28
+ /* @__PURE__ */ t("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ t(
29
+ V,
30
+ {
31
+ id: "test-mock-payment-app-price",
32
+ label: "Price",
33
+ labelSrOnly: !0,
34
+ addOnLeading: w,
35
+ addOnSuffix: l,
36
+ step: "0.01",
37
+ min: "0.5",
38
+ type: "number",
39
+ required: !0,
40
+ className: "block w-full rounded-sm pl-2 text-sm",
41
+ placeholder: "Price",
42
+ onChange: (e) => {
43
+ c("price", Number(e.target.value) * 100), s && c("currency", s.value);
44
+ },
45
+ value: y > 0 ? y / 100 : void 0
46
+ }
47
+ ) }),
48
+ /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
49
+ /* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
50
+ /* @__PURE__ */ t(
51
+ x,
52
+ {
53
+ id: "test-mock-payment-app-currency-id",
54
+ variant: "default",
55
+ options: g,
56
+ value: s,
57
+ className: "text-black",
58
+ defaultValue: s,
59
+ onChange: (e) => {
60
+ e && (O(e), E(C[e.value]), c("currency", e.value));
61
+ }
62
+ }
63
+ )
64
+ ] }),
65
+ /* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
66
+ /* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
67
+ /* @__PURE__ */ t(
68
+ x,
69
+ {
70
+ defaultValue: m ? { ...m, label: n(m.label) } : { ...a[0], label: n(a[0].label) },
71
+ options: a.map((e) => ({ ...e, label: n(e.label) || e.label })),
72
+ onChange: (e) => {
73
+ e && c("paymentOption", e.value);
74
+ },
75
+ className: "mb-1 h-[38px] w-full",
76
+ isDisabled: !1
77
+ }
78
+ )
79
+ ] })
80
+ ] }) })
81
+ }
82
+ );
83
+ };
84
+ export {
85
+ H as default
86
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as m } from "./index-LRugxdBo.js";
3
+ import { A as c } from "./AppCard-sZ0O4rSq.js";
4
+ import { u } from "./useIsAppEnabled-hrstotzg.js";
5
+ import l from "./EventTypeAppSettingsInterface-N3HkZEfB.js";
6
+ const b = function({ app: t, eventType: e }) {
7
+ var p;
8
+ const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
9
+ return /* @__PURE__ */ a(
10
+ c,
11
+ {
12
+ hideSettingsIcon: !0,
13
+ app: t,
14
+ switchOnClick: (d) => {
15
+ i(d);
16
+ },
17
+ switchChecked: o,
18
+ teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
19
+ children: /* @__PURE__ */ a(
20
+ l,
21
+ {
22
+ eventType: e,
23
+ slug: t.slug,
24
+ disabled: n,
25
+ getAppData: r,
26
+ setAppData: s
27
+ }
28
+ )
29
+ }
30
+ );
31
+ };
32
+ export {
33
+ b as default
34
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { t as l, f as m } from "./index-LRugxdBo.js";
3
+ import { A as u } from "./AppCard-sZ0O4rSq.js";
4
+ import { u as I } from "./useIsAppEnabled-hrstotzg.js";
5
+ const D = function({ app: t, eventType: n }) {
6
+ var a;
7
+ const { getAppData: o, setAppData: r, disabled: d } = l(), s = o("SITE_ID"), { enabled: i, updateEnabled: c } = I(t);
8
+ return /* @__PURE__ */ p(
9
+ u,
10
+ {
11
+ app: t,
12
+ switchOnClick: (e) => {
13
+ c(e);
14
+ },
15
+ switchChecked: i,
16
+ teamId: ((a = n.team) == null ? void 0 : a.id) || void 0,
17
+ children: /* @__PURE__ */ p(
18
+ m,
19
+ {
20
+ disabled: d,
21
+ name: "Site ID",
22
+ value: s,
23
+ placeholder: "Enter your Site ID",
24
+ onChange: (e) => {
25
+ r("SITE_ID", e.target.value);
26
+ }
27
+ }
28
+ )
29
+ }
30
+ );
31
+ };
32
+ export {
33
+ D as default
34
+ };
@@ -0,0 +1,43 @@
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { useState as u } from "react";
3
+ import { q as p, f as h, K as v, M as x } from "./index-LRugxdBo.js";
4
+ const N = ({ eventType: n, disabled: d }) => {
5
+ const { t: i } = p(), [r, c] = u(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
6
+ function s({ size: a, data: f }) {
7
+ const l = `https://api.qrserver.com/v1/create-qr-code/?size=${a}&data=${f}`;
8
+ return /* @__PURE__ */ e(v, { content: t, children: /* @__PURE__ */ e("a", { download: !0, href: l, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e(
9
+ "img",
10
+ {
11
+ className: x(
12
+ "hover:bg-muted border-default border transition hover:shadow-sm",
13
+ a >= 256 && "min-h-32"
14
+ ),
15
+ style: { padding: a / 16, borderRadius: a / 20 },
16
+ width: a,
17
+ src: l,
18
+ alt: t
19
+ }
20
+ ) }) });
21
+ }
22
+ return /* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-5 text-sm", children: [
23
+ /* @__PURE__ */ e("div", { className: "flex w-full", children: /* @__PURE__ */ e(
24
+ h,
25
+ {
26
+ name: "hello",
27
+ disabled: d,
28
+ value: r,
29
+ onChange: (a) => c(a.target.value),
30
+ label: i("additional_url_parameters"),
31
+ containerClassName: "w-full"
32
+ }
33
+ ) }),
34
+ /* @__PURE__ */ o("div", { className: "max-w-60 flex items-baseline gap-2", children: [
35
+ /* @__PURE__ */ e(s, { size: 256, data: t }),
36
+ /* @__PURE__ */ e(s, { size: 128, data: t }),
37
+ /* @__PURE__ */ e(s, { size: 64, data: t })
38
+ ] })
39
+ ] });
40
+ };
41
+ export {
42
+ N as default
43
+ };
@@ -0,0 +1,23 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { f as o } from "./index-LRugxdBo.js";
3
+ const p = ({
4
+ getAppData: t,
5
+ setAppData: e,
6
+ disabled: a
7
+ }) => {
8
+ const n = t("trackingId");
9
+ return /* @__PURE__ */ i(
10
+ o,
11
+ {
12
+ name: "Tracking ID",
13
+ value: n,
14
+ disabled: a,
15
+ onChange: (r) => {
16
+ e("trackingId", r.target.value);
17
+ }
18
+ }
19
+ );
20
+ };
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,78 @@
1
+ import { jsx as l, jsxs as m, Fragment as w } from "react/jsx-runtime";
2
+ import { useState as o, useEffect as _ } from "react";
3
+ import { c as i, i as k, a as x } from "./currencyOptions-kannG2hu.js";
4
+ import { z as r, q as E, x as S, f as F, G as q, J as T, S as O } from "./index-LRugxdBo.js";
5
+ const G = ({
6
+ getAppData: n,
7
+ setAppData: t,
8
+ eventType: d
9
+ }) => {
10
+ var p, h;
11
+ const y = n("price"), a = n("currency") || i[0].value, [s, N] = o(i.find((e) => e.value === a)), [C, P] = o(
12
+ k(a) ? x[a] : ""
13
+ ), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
14
+ label: r[0].label,
15
+ value: r[0].value
16
+ }, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), g = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
+ return _(() => {
18
+ v && (n("currency") || t("currency", i[0].value), n("paymentOption") || t("paymentOption", r[0].value));
19
+ }, []), g ? /* @__PURE__ */ l(S, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(w, { children: [
20
+ /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
21
+ F,
22
+ {
23
+ label: "Price",
24
+ labelSrOnly: !0,
25
+ addOnLeading: C,
26
+ addOnSuffix: a,
27
+ step: "0.01",
28
+ min: "0.5",
29
+ type: "number",
30
+ required: !0,
31
+ className: "block w-full rounded-sm pl-2 text-sm",
32
+ placeholder: "Price",
33
+ "data-testid": "paypal-price-input",
34
+ onChange: (e) => {
35
+ t("price", q(Number(e.target.value), a)), s && t("currency", s.value);
36
+ },
37
+ value: y > 0 ? T(y, a) : void 0
38
+ }
39
+ ) }),
40
+ /* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
41
+ /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: c("currency") }),
42
+ /* @__PURE__ */ l(
43
+ O,
44
+ {
45
+ variant: "default",
46
+ "data-testid": "paypal-currency-select",
47
+ options: i,
48
+ value: s,
49
+ className: "text-black",
50
+ defaultValue: s,
51
+ onChange: (e) => {
52
+ e && (N(e), P(x[e.value]), t("currency", e.value));
53
+ }
54
+ }
55
+ )
56
+ ] }),
57
+ /* @__PURE__ */ m("div", { className: "mt-4 w-60", children: [
58
+ /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
59
+ /* @__PURE__ */ l(
60
+ O,
61
+ {
62
+ "data-testid": "paypal-payment-option-select",
63
+ defaultValue: u ? { ...u, label: c(u.label) } : { ...r[0], label: c(r[0].label) },
64
+ options: r.map((e) => ({ ...e, label: c(e.label) || e.label })),
65
+ onChange: (e) => {
66
+ e && t("paymentOption", e.value);
67
+ },
68
+ className: "mb-1 h-[38px] w-full",
69
+ isDisabled: b
70
+ }
71
+ )
72
+ ] }),
73
+ b && f === "HOLD" && /* @__PURE__ */ l(S, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
74
+ ] }) : null;
75
+ };
76
+ export {
77
+ G as default
78
+ };
@@ -0,0 +1,120 @@
1
+ import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
2
+ import { useState as x, useEffect as P } from "react";
3
+ import { q as k, x as p, f as w, S as K } from "./index-LRugxdBo.js";
4
+ const f = [
5
+ "BIF",
6
+ "CLP",
7
+ "DJF",
8
+ "GNF",
9
+ "JPY",
10
+ "KMF",
11
+ "KRW",
12
+ "MGA",
13
+ "PYG",
14
+ "RWF",
15
+ "UGX",
16
+ "VND",
17
+ "VUV",
18
+ "XAF",
19
+ "XOF",
20
+ "XPF"
21
+ ], U = (e, a) => f.includes(a.toUpperCase()) ? e : Math.round(e * 100), _ = (e, a) => f.includes(a.toUpperCase()) ? e : e / 100, V = [
22
+ {
23
+ label: "on_booking_option",
24
+ value: "ON_BOOKING"
25
+ }
26
+ ], r = [
27
+ { label: "United States dollar (USD)", value: "usd" },
28
+ { label: "Singapore dollar (SGD)", value: "sgd" },
29
+ { label: "Malaysian ringgit (MYR)", value: "myr" },
30
+ { label: "Indonesian rupiah (IDR)", value: "idr" },
31
+ { label: "Japanese yen (JPY)", value: "jpy" },
32
+ { label: "Hong Kong dollar (HKD)", value: "hkd" },
33
+ { label: "Thai baht (THB)", value: "thb" },
34
+ { label: "Australian dollar (AUD)", value: "aud" },
35
+ { label: "New Zealand dollar (NZD)", value: "nzd" },
36
+ { label: "British pound sterling (GBP)", value: "gbp" },
37
+ { label: "Philippine peso (PHP)", value: "php" },
38
+ { label: "Indian rupee (INR)", value: "inr" },
39
+ { label: "Chinese yuan (CNY)", value: "cny" },
40
+ { label: "Euro (EUR)", value: "eur" },
41
+ { label: "Swiss franc (CHF)", value: "chf" },
42
+ { label: "Danish krone (DKK)", value: "dkk" },
43
+ { label: "Swedish krona (SEK)", value: "sek" },
44
+ { label: "Norwegian krone (NOK)", value: "nok" },
45
+ { label: "Vietnamese đồng (VND)", value: "vnd" },
46
+ { label: "Canadian dollar (CAD)", value: "cad" },
47
+ { label: "South Korean won (KRW)", value: "krw" }
48
+ ], R = ({
49
+ getAppData: e,
50
+ setAppData: a,
51
+ disabled: h,
52
+ eventType: d
53
+ }) => {
54
+ var b;
55
+ const m = e("price"), t = e("currency") || r[0].value, [i, g] = x(
56
+ r.find((l) => l.value === t) || {
57
+ label: r[0].label,
58
+ value: r[0].value
59
+ }
60
+ ), S = e("paymentOption"), c = e("enabled"), { t: s } = k(), v = ((b = d.recurringEvent) == null ? void 0 : b.count) !== void 0, N = !!d.seatsPerTimeSlot, C = (l, y) => 0 .toLocaleString(l, {
61
+ style: "currency",
62
+ currency: y,
63
+ minimumFractionDigits: 0,
64
+ maximumFractionDigits: 0
65
+ }).replace(/\d/g, "").trim();
66
+ P(() => {
67
+ c && (e("currency") || a("currency", r[0].value), e("paymentOption") || a("paymentOption", V[0].value));
68
+ }, [c, e, a]);
69
+ const F = (l) => {
70
+ const O = Math.floor(l).toString();
71
+ return parseInt(O);
72
+ };
73
+ return /* @__PURE__ */ u(o, { children: [
74
+ v && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("warning_recurring_event_payment") }),
75
+ !v && c && /* @__PURE__ */ u(o, { children: [
76
+ /* @__PURE__ */ n("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ n(
77
+ w,
78
+ {
79
+ "data-testid": "stripe-price-input",
80
+ label: s("price"),
81
+ className: "h-[38px]",
82
+ addOnLeading: /* @__PURE__ */ n(o, { children: i.value ? C("en", i.value) : "" }),
83
+ addOnSuffix: t.toUpperCase(),
84
+ addOnClassname: "h-[38px]",
85
+ step: "1",
86
+ min: "1",
87
+ type: "number",
88
+ required: !0,
89
+ placeholder: "Price",
90
+ disabled: h,
91
+ onChange: (l) => {
92
+ a("price", U(Number(l.target.value), t));
93
+ },
94
+ value: m > 0 ? F(_(m, t)) : void 0
95
+ }
96
+ ) }),
97
+ /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
98
+ /* @__PURE__ */ n("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: s("currency") }),
99
+ /* @__PURE__ */ n(
100
+ K,
101
+ {
102
+ "data-testid": "stripe-currency-select",
103
+ variant: "default",
104
+ options: r,
105
+ value: i,
106
+ className: "text-black",
107
+ defaultValue: i,
108
+ onChange: (l) => {
109
+ l && (g(l), a("currency", l.value));
110
+ }
111
+ }
112
+ )
113
+ ] }),
114
+ N && S === "HOLD" && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("seats_and_no_show_fee_error") })
115
+ ] })
116
+ ] });
117
+ };
118
+ export {
119
+ R as default
120
+ };
@@ -0,0 +1,23 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { f as o } from "./index-LRugxdBo.js";
3
+ const p = ({
4
+ getAppData: t,
5
+ setAppData: e,
6
+ disabled: a
7
+ }) => {
8
+ const n = t("trackingId");
9
+ return /* @__PURE__ */ i(
10
+ o,
11
+ {
12
+ name: "Pixel ID",
13
+ value: n,
14
+ disabled: a,
15
+ onChange: (r) => {
16
+ e("trackingId", r.target.value);
17
+ }
18
+ }
19
+ );
20
+ };
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,25 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { f as c } from "./index-LRugxdBo.js";
3
+ const s = ({
4
+ getAppData: t,
5
+ setAppData: e,
6
+ disabled: a,
7
+ slug: n
8
+ }) => {
9
+ const r = t("trackingId");
10
+ return /* @__PURE__ */ o(
11
+ c,
12
+ {
13
+ dataTestid: n,
14
+ name: "Tracking ID",
15
+ value: r,
16
+ disabled: a,
17
+ onChange: (i) => {
18
+ e("trackingId", i.target.value);
19
+ }
20
+ }
21
+ );
22
+ };
23
+ export {
24
+ s as default
25
+ };
@@ -0,0 +1,48 @@
1
+ import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
+ import { useState as m, useEffect as v } from "react";
3
+ import { y as p, S as h } from "./index-LRugxdBo.js";
4
+ const P = ({}) => {
5
+ const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
6
+ return v(
7
+ function() {
8
+ var a, i, l;
9
+ r({
10
+ value: e == null ? void 0 : e.projects.currentProject,
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ label: (i = (a = e == null ? void 0 : e.projects) == null ? void 0 : a.find((s) => s.id === (e == null ? void 0 : e.currentProject))) == null ? void 0 : i.name
13
+ }), u(
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
+ (l = e == null ? void 0 : e.projects) == null ? void 0 : l.map((s) => ({
16
+ value: s.id,
17
+ label: s.name
18
+ }))
19
+ );
20
+ },
21
+ [e]
22
+ ), /* @__PURE__ */ o("div", { className: "mt-2 text-sm", children: [
23
+ /* @__PURE__ */ o("div", { className: "flex gap-3", children: [
24
+ /* @__PURE__ */ c("div", { className: "items-center", children: /* @__PURE__ */ c("p", { className: "py-2", children: "Link a Basecamp project to this event:" }) }),
25
+ /* @__PURE__ */ c(
26
+ h,
27
+ {
28
+ placeholder: "Select project",
29
+ options: n,
30
+ isLoading: !n,
31
+ className: "md:min-w-[120px]",
32
+ onChange: (t) => {
33
+ t && (d.mutate({ projectId: t == null ? void 0 : t.value.toString() }), r(t));
34
+ },
35
+ value: f
36
+ }
37
+ )
38
+ ] }),
39
+ /* @__PURE__ */ o("div", { className: "mt-2", children: [
40
+ "Please note that as of now you can only link ",
41
+ /* @__PURE__ */ c("span", { className: "italic", children: "one" }),
42
+ " of your projects to cal.com"
43
+ ] })
44
+ ] });
45
+ };
46
+ export {
47
+ P as default
48
+ };