@calcom/atoms 2.3.3 → 2.3.4

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 (581) hide show
  1. package/dist/{AddressInput-D_qJhLzB.js → AddressInput-f4vKQ-ZH.js} +2 -2
  2. package/dist/{AlbyPriceComponent-DTr4dS2T.js → AlbyPriceComponent-CA9cczi2.js} +22 -22
  3. package/dist/{AppCard-D9BWbLoQ.js → AppCard-BJK_0kDR.js} +16 -16
  4. package/dist/{AppListCardPlatformWrapper-_EBRqeMS.js → AppListCardPlatformWrapper-mFSRYSqN.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-xuH4zmXc.js → AppListCardWebWrapper-DexGUFDR.js} +5 -5
  6. package/dist/{AppSettingsInterface-WBHsOfkQ.js → AppSettingsInterface-BdvqEr52.js} +6 -6
  7. package/dist/{AppSettingsInterface-DUBl5_Qa.js → AppSettingsInterface-Cya3jpVo.js} +1 -1
  8. package/dist/{AppSettingsInterface-CeGmkTJH.js → AppSettingsInterface-i7PYOQQH.js} +1 -1
  9. package/dist/{DateRangePicker-DUmLGrBy.js → DateRangePicker-xZvH_2z1.js} +37 -34
  10. package/dist/EventTypeAppCardInterface-1cNQoGFP.js +35 -0
  11. package/dist/{EventTypeAppCardInterface-Buzf2G85.js → EventTypeAppCardInterface-6geoLxir.js} +11 -11
  12. package/dist/{EventTypeAppCardInterface-BJAQezPj.js → EventTypeAppCardInterface-9qwd3aOJ.js} +6 -6
  13. package/dist/{EventTypeAppCardInterface-pbXXAWOK.js → EventTypeAppCardInterface-B07yJ1mF.js} +4 -4
  14. package/dist/{EventTypeAppCardInterface-vgO23u6L.js → EventTypeAppCardInterface-B6suxu2l.js} +8 -8
  15. package/dist/EventTypeAppCardInterface-B9hU46fc.js +1057 -0
  16. package/dist/{EventTypeAppCardInterface-BL3g5Np7.js → EventTypeAppCardInterface-BDXOIv18.js} +4 -4
  17. package/dist/{EventTypeAppCardInterface-DsjqV8kI.js → EventTypeAppCardInterface-BIOuvr-b.js} +8 -8
  18. package/dist/{EventTypeAppCardInterface-C68vmVHv.js → EventTypeAppCardInterface-BMrth1bt.js} +9 -9
  19. package/dist/{EventTypeAppCardInterface-pgeXlPI3.js → EventTypeAppCardInterface-BNlsjO5x.js} +2 -2
  20. package/dist/{EventTypeAppCardInterface-xRLCtgu-.js → EventTypeAppCardInterface-BTU-TRid.js} +8 -8
  21. package/dist/{EventTypeAppCardInterface-NjjjNfKW.js → EventTypeAppCardInterface-BVGDzJOq.js} +11 -11
  22. package/dist/{EventTypeAppCardInterface-CH2qCEPy.js → EventTypeAppCardInterface-BXxxuuJ7.js} +10 -10
  23. package/dist/{EventTypeAppCardInterface-BKEeGNl1.js → EventTypeAppCardInterface-BXzC3kC-.js} +11 -11
  24. package/dist/{EventTypeAppCardInterface-CJVu3xox.js → EventTypeAppCardInterface-Bs4namZI.js} +3 -3
  25. package/dist/{EventTypeAppCardInterface-Cl484XrN.js → EventTypeAppCardInterface-CAPrKZmL.js} +8 -8
  26. package/dist/{EventTypeAppCardInterface-CvqxuVoH.js → EventTypeAppCardInterface-CGX9b3dQ.js} +11 -11
  27. package/dist/{EventTypeAppCardInterface-DU9AFmCP.js → EventTypeAppCardInterface-CXLtF6WB.js} +10 -10
  28. package/dist/EventTypeAppCardInterface-CkVUhYGv.js +595 -0
  29. package/dist/{EventTypeAppCardInterface-B760l1_N.js → EventTypeAppCardInterface-CnkDo5qs.js} +3 -3
  30. package/dist/{EventTypeAppCardInterface-DCeEs1Xh.js → EventTypeAppCardInterface-D1TORolY.js} +11 -11
  31. package/dist/{EventTypeAppCardInterface-Cu1P7ygp.js → EventTypeAppCardInterface-D50Rq3yV.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-B23sJAMz.js → EventTypeAppCardInterface-DOEDZhro.js} +6 -6
  33. package/dist/{EventTypeAppCardInterface-EKXHRvho.js → EventTypeAppCardInterface-Du9uVrns.js} +11 -11
  34. package/dist/{EventTypeAppCardInterface-CQiBqsEG.js → EventTypeAppCardInterface-PgAvyoAD.js} +9 -9
  35. package/dist/{EventTypeAppCardInterface-2TdM9o8J.js → EventTypeAppCardInterface-mGHooErl.js} +3 -3
  36. package/dist/{EventTypeAppCardInterface-BKh8cGfG.js → EventTypeAppCardInterface-wJhvni5q.js} +3 -3
  37. package/dist/{EventTypeAppCardInterface-B7ZcnYKc.js → EventTypeAppCardInterface-zHfqLGJM.js} +3 -3
  38. package/dist/{EventTypeAppSettingsInterface-LbM_iIAR.js → EventTypeAppSettingsInterface-B9haaCfB.js} +2 -2
  39. package/dist/{EventTypeAppSettingsInterface-DgGOMDGJ.js → EventTypeAppSettingsInterface-BchIxELb.js} +5 -5
  40. package/dist/{EventTypeAppSettingsInterface-GIPEBkW3.js → EventTypeAppSettingsInterface-BgX-ogxt.js} +3 -3
  41. package/dist/{EventTypeAppSettingsInterface-CQ_bvTKH.js → EventTypeAppSettingsInterface-CI4hn91b.js} +3 -3
  42. package/dist/{EventTypeAppSettingsInterface-C9JadH2b.js → EventTypeAppSettingsInterface-CLW1NtaN.js} +8 -8
  43. package/dist/{EventTypeAppSettingsInterface-BRaHtL2K.js → EventTypeAppSettingsInterface-DGry6tH6.js} +7 -7
  44. package/dist/{EventTypeAppSettingsInterface-SYoB6JXp.js → EventTypeAppSettingsInterface-DP4wdyyj.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-By6EBo9E.js → EventTypeAppSettingsInterface-DPyV91Do.js} +18 -18
  46. package/dist/{EventTypeAppSettingsInterface-CKB_rBL9.js → EventTypeAppSettingsInterface-DeugzLHf.js} +3 -3
  47. package/dist/{EventTypeAppSettingsInterface-Cn-Whfe6.js → EventTypeAppSettingsInterface-JEjsuGmk.js} +14 -14
  48. package/dist/{EventTypeAppSettingsInterface-CpkD6C9g.js → EventTypeAppSettingsInterface-MsmSSDZl.js} +1 -1
  49. package/dist/{EventTypeAppSettingsInterface-BADk3O7K.js → EventTypeAppSettingsInterface-NB1ekair.js} +4 -4
  50. package/dist/{EventTypeAppSettingsInterface-B3avXMpC.js → EventTypeAppSettingsInterface-Rg2oX8f4.js} +1 -1
  51. package/dist/{EventTypeAppSettingsInterface-CxO1EY_c.js → EventTypeAppSettingsInterface-UxGRBfXd.js} +12 -12
  52. package/dist/{EventTypeDescription-tEiAJAgH.js → EventTypeDescription-CKlCgvPh.js} +3 -3
  53. package/dist/{InstallAppButton-CLOCHjEc.js → InstallAppButton-BTAdrty4.js} +5 -5
  54. package/dist/{InstallAppButton-DkdGTx_I.js → InstallAppButton-BvOyTPxP.js} +1 -1
  55. package/dist/{InstallAppButton-uz1sLv6L.js → InstallAppButton-BxlN-3rh.js} +1 -1
  56. package/dist/{PhoneInput-C4aNpAaj.js → PhoneInput-4hYjhM4r.js} +102 -102
  57. package/dist/{StripePaymentForm-71xbsx4D.js → StripePaymentForm-DyQCn9dg.js} +25 -25
  58. package/dist/{Tips-C9obntAr.js → Tips-V2FgN4J3.js} +23 -23
  59. package/dist/cal-atoms.js +32 -31
  60. package/dist/{index-D0_H5uQg.js → index-DJmppf57.js} +115215 -98548
  61. package/dist/index-DWXW1cmD.js +27 -0
  62. package/dist/packages/dayjs/__mocks__/index.d.ts.map +1 -1
  63. package/dist/packages/dayjs/index.d.ts.map +1 -1
  64. package/dist/packages/dayjs/plugins/business-days-plugin.d.ts.map +1 -1
  65. package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts +1 -1
  66. package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts.map +1 -1
  67. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/store.d.ts +1 -1
  68. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/store.d.ts.map +1 -1
  69. package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useAvailableTimeSlots.d.ts +2 -2
  70. package/dist/packages/features/bookings/Booker/hooks/useAvailableTimeSlots.d.ts.map +1 -0
  71. package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useBookerLayout.d.ts +4 -3
  72. package/dist/packages/features/bookings/Booker/hooks/useBookerLayout.d.ts.map +1 -0
  73. package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useBookerTime.d.ts +1 -1
  74. package/dist/packages/features/bookings/Booker/hooks/useBookerTime.d.ts.map +1 -0
  75. package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useBookingForm.d.ts +2 -2
  76. package/dist/packages/features/bookings/Booker/hooks/useBookingForm.d.ts.map +1 -0
  77. package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useInitialFormValues.d.ts +2 -2
  78. package/dist/packages/features/bookings/Booker/hooks/useInitialFormValues.d.ts.map +1 -0
  79. package/dist/packages/features/bookings/Booker/hooks/useInitialFormValues.test.d.ts.map +1 -0
  80. package/dist/packages/features/bookings/Booker/hooks/useLocalSet.d.ts.map +1 -0
  81. package/dist/packages/features/bookings/Booker/store.d.ts +6 -1
  82. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  83. package/dist/packages/features/bookings/Booker/types.d.ts +10 -50
  84. package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
  85. package/dist/packages/features/bookings/Booker/utils/event.d.ts +28 -8
  86. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  87. package/dist/packages/features/bookings/Booker/utils/isFeatureEnabledForVisitor.d.ts.map +1 -1
  88. package/dist/packages/features/bookings/Booker/utils/isTimeslotAvailable.d.ts +1 -1
  89. package/dist/packages/features/bookings/Booker/utils/isTimeslotAvailable.d.ts.map +1 -1
  90. package/dist/packages/features/bookings/lib/EventManager.d.ts +6 -1
  91. package/dist/packages/features/bookings/lib/EventManager.d.ts.map +1 -1
  92. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts +12 -12
  93. package/dist/packages/features/bookings/lib/bookingSuccessRedirect.d.ts +2 -1
  94. package/dist/packages/features/bookings/lib/bookingSuccessRedirect.d.ts.map +1 -1
  95. package/dist/packages/features/bookings/lib/create-booking.d.ts +17 -14
  96. package/dist/packages/features/bookings/lib/create-booking.d.ts.map +1 -1
  97. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +17 -14
  98. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts.map +1 -1
  99. package/dist/packages/features/bookings/lib/get-booking.d.ts +5 -5
  100. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts +23 -20
  101. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts.map +1 -1
  102. package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.d.ts +8 -0
  103. package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.d.ts.map +1 -0
  104. package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.test.d.ts +2 -0
  105. package/dist/packages/features/bookings/lib/getAssignmentReasonCategory.test.d.ts.map +1 -0
  106. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +4 -4
  107. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +8 -8
  108. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +14 -6
  109. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
  110. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +9 -9
  111. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  112. package/dist/packages/features/bookings/lib/getUserBooking.d.ts +7 -3
  113. package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
  114. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts +7 -3
  115. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  116. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +6 -5
  117. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
  118. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +36 -14
  119. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  120. package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts +2 -1
  121. package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts.map +1 -1
  122. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +8 -8
  123. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  124. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.test.d.ts +2 -0
  125. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.test.d.ts.map +1 -0
  126. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +55 -19
  127. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  128. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +36 -14
  129. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  130. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +19 -13
  131. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  132. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +8 -7
  133. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
  134. package/dist/packages/features/bookings/lib/handleNewBooking/test/getNewBookingHandler.d.ts +17 -14
  135. package/dist/packages/features/bookings/lib/handleNewBooking/test/getNewBookingHandler.d.ts.map +1 -1
  136. package/dist/packages/features/bookings/lib/handleNewBooking/test/per-host-locations.test.d.ts +2 -0
  137. package/dist/packages/features/bookings/lib/handleNewBooking/test/per-host-locations.test.d.ts.map +1 -0
  138. package/dist/packages/features/bookings/lib/handlePayment.d.ts +1 -1
  139. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +39 -5
  140. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  141. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.integration-test.d.ts +2 -0
  142. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.integration-test.d.ts.map +1 -0
  143. package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts +2 -1
  144. package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts.map +1 -1
  145. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts +2 -1
  146. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts.map +1 -1
  147. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts +2 -1
  148. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts.map +1 -1
  149. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +6 -5
  150. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts.map +1 -1
  151. package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts +3 -6
  152. package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts.map +1 -1
  153. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts +15 -7
  154. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts.map +1 -1
  155. package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts +1 -1
  156. package/dist/packages/features/bookings/lib/payment/handleNoShowFee.d.ts.map +1 -1
  157. package/dist/packages/features/bookings/lib/payment/handlePaymentRefund.d.ts +1 -1
  158. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +4 -6
  159. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts.map +1 -1
  160. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts +53 -42
  161. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts.map +1 -1
  162. package/dist/packages/features/bookings/types.d.ts +1 -1
  163. package/dist/packages/features/bookings/types.d.ts.map +1 -1
  164. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts +18 -3
  165. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts.map +1 -1
  166. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.test.d.ts +2 -0
  167. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.test.d.ts.map +1 -0
  168. package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.d.ts.map +1 -1
  169. package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.org.d.ts.map +1 -1
  170. package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.team.d.ts +6 -0
  171. package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.team.d.ts.map +1 -0
  172. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.d.ts +11 -0
  173. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.d.ts.map +1 -0
  174. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.test.d.ts +2 -0
  175. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_failed.test.d.ts.map +1 -0
  176. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.d.ts +11 -0
  177. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.d.ts.map +1 -0
  178. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.test.d.ts +2 -0
  179. package/dist/packages/features/ee/billing/api/webhook/_invoice.payment_succeeded.test.d.ts.map +1 -0
  180. package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.d.ts +20 -0
  181. package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.d.ts.map +1 -0
  182. package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.d.ts +23 -0
  183. package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.d.ts.map +1 -0
  184. package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.test.d.ts +2 -0
  185. package/dist/packages/features/ee/billing/api/webhook/hwm-webhook-utils.test.d.ts.map +1 -0
  186. package/dist/packages/features/ee/billing/api/webhook/index.d.ts.map +1 -1
  187. package/dist/packages/features/ee/billing/di/modules/HighWaterMarkRepository.d.ts +5 -0
  188. package/dist/packages/features/ee/billing/di/modules/HighWaterMarkRepository.d.ts.map +1 -0
  189. package/dist/packages/features/ee/billing/di/modules/HighWaterMarkService.d.ts +5 -0
  190. package/dist/packages/features/ee/billing/di/modules/HighWaterMarkService.d.ts.map +1 -0
  191. package/dist/packages/features/ee/billing/di/modules/MonthlyProrationService.d.ts.map +1 -1
  192. package/dist/packages/features/ee/billing/di/modules/MonthlyProrationTeamRepository.d.ts +5 -0
  193. package/dist/packages/features/ee/billing/di/modules/MonthlyProrationTeamRepository.d.ts.map +1 -0
  194. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailSyncTasker.module.d.ts +5 -0
  195. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailSyncTasker.module.d.ts.map +1 -0
  196. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.container.d.ts +3 -0
  197. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.container.d.ts.map +1 -0
  198. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.module.d.ts +5 -0
  199. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTasker.module.d.ts.map +1 -0
  200. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTriggerDevTasker.module.d.ts +5 -0
  201. package/dist/packages/features/ee/billing/di/tasker/ProrationEmailTriggerDevTasker.module.d.ts.map +1 -0
  202. package/dist/packages/features/ee/billing/di/tasker/tokens.d.ts +8 -0
  203. package/dist/packages/features/ee/billing/di/tasker/tokens.d.ts.map +1 -1
  204. package/dist/packages/features/ee/billing/di/tokens.d.ts +6 -0
  205. package/dist/packages/features/ee/billing/di/tokens.d.ts.map +1 -1
  206. package/dist/packages/features/ee/billing/lib/month-key.d.ts +1 -0
  207. package/dist/packages/features/ee/billing/lib/month-key.d.ts.map +1 -1
  208. package/dist/packages/features/ee/billing/lib/proration-utils.d.ts +12 -0
  209. package/dist/packages/features/ee/billing/lib/proration-utils.d.ts.map +1 -0
  210. package/dist/packages/features/ee/billing/lib/stripe-subscription-utils.d.ts +24 -2
  211. package/dist/packages/features/ee/billing/lib/stripe-subscription-utils.d.ts.map +1 -1
  212. package/dist/packages/features/ee/billing/lib/subscription-updates.d.ts +13 -0
  213. package/dist/packages/features/ee/billing/lib/subscription-updates.d.ts.map +1 -0
  214. package/dist/packages/features/ee/billing/repository/billing/IBillingRepository.d.ts +13 -0
  215. package/dist/packages/features/ee/billing/repository/billing/IBillingRepository.d.ts.map +1 -1
  216. package/dist/packages/features/ee/billing/repository/billing/PrismaOrganizationBillingRepository.d.ts +6 -1
  217. package/dist/packages/features/ee/billing/repository/billing/PrismaOrganizationBillingRepository.d.ts.map +1 -1
  218. package/dist/packages/features/ee/billing/repository/billing/PrismaTeamBillingRepository.d.ts +6 -1
  219. package/dist/packages/features/ee/billing/repository/billing/PrismaTeamBillingRepository.d.ts.map +1 -1
  220. package/dist/packages/features/ee/billing/repository/billing/StubBillingRepository.d.ts +6 -1
  221. package/dist/packages/features/ee/billing/repository/billing/StubBillingRepository.d.ts.map +1 -1
  222. package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts +54 -0
  223. package/dist/packages/features/ee/billing/repository/highWaterMark/HighWaterMarkRepository.d.ts.map +1 -0
  224. package/dist/packages/features/ee/billing/repository/highWaterMark/__tests__/HighWaterMarkRepository.test.d.ts +2 -0
  225. package/dist/packages/features/ee/billing/repository/highWaterMark/__tests__/HighWaterMarkRepository.test.d.ts.map +1 -0
  226. package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationRepository.d.ts +8 -0
  227. package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationRepository.d.ts.map +1 -1
  228. package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts +5 -0
  229. package/dist/packages/features/ee/billing/repository/proration/MonthlyProrationTeamRepository.d.ts.map +1 -1
  230. package/dist/packages/features/ee/billing/service/billingPeriod/BillingPeriodService.d.ts +10 -1
  231. package/dist/packages/features/ee/billing/service/billingPeriod/BillingPeriodService.d.ts.map +1 -1
  232. package/dist/packages/features/ee/billing/service/billingProvider/IBillingProviderService.d.ts +57 -1
  233. package/dist/packages/features/ee/billing/service/billingProvider/IBillingProviderService.d.ts.map +1 -1
  234. package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.d.ts +44 -1
  235. package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.d.ts.map +1 -1
  236. package/dist/packages/features/ee/billing/service/dueInvoice/DueInvoiceService.d.ts +46 -0
  237. package/dist/packages/features/ee/billing/service/dueInvoice/DueInvoiceService.d.ts.map +1 -0
  238. package/dist/packages/features/ee/billing/service/dueInvoice/cleanup-proration-test.d.ts +12 -0
  239. package/dist/packages/features/ee/billing/service/dueInvoice/cleanup-proration-test.d.ts.map +1 -0
  240. package/dist/packages/features/ee/billing/service/dueInvoice/seed-proration-test.d.ts +24 -0
  241. package/dist/packages/features/ee/billing/service/dueInvoice/seed-proration-test.d.ts.map +1 -0
  242. package/dist/packages/features/ee/billing/service/highWaterMark/HighWaterMarkService.d.ts +51 -0
  243. package/dist/packages/features/ee/billing/service/highWaterMark/HighWaterMarkService.d.ts.map +1 -0
  244. package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkService.test.d.ts +2 -0
  245. package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkService.test.d.ts.map +1 -0
  246. package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkStripe.integration-test.d.ts +2 -0
  247. package/dist/packages/features/ee/billing/service/highWaterMark/__tests__/HighWaterMarkStripe.integration-test.d.ts.map +1 -0
  248. package/dist/packages/features/ee/billing/service/highWaterMark/seed-hwm-test.d.ts +1 -0
  249. package/dist/packages/features/ee/billing/service/highWaterMark/seed-hwm-test.d.ts.map +1 -0
  250. package/dist/packages/features/ee/billing/service/proration/MonthlyProrationService.d.ts +7 -1
  251. package/dist/packages/features/ee/billing/service/proration/MonthlyProrationService.d.ts.map +1 -1
  252. package/dist/packages/features/ee/billing/service/proration/ProrationEmailService.d.ts +17 -0
  253. package/dist/packages/features/ee/billing/service/proration/ProrationEmailService.d.ts.map +1 -0
  254. package/dist/packages/features/ee/billing/service/proration/tasker/MonthlyProrationSyncTasker.d.ts.map +1 -1
  255. package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.d.ts +16 -0
  256. package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailSyncTasker.d.ts.map +1 -0
  257. package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTasker.d.ts +23 -0
  258. package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTasker.d.ts.map +1 -0
  259. package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTriggerDevTasker.d.ts +16 -0
  260. package/dist/packages/features/ee/billing/service/proration/tasker/ProrationEmailTriggerDevTasker.d.ts.map +1 -0
  261. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/cancelProrationReminder.d.ts +10 -0
  262. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/cancelProrationReminder.d.ts.map +1 -0
  263. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailConfig.d.ts +6 -0
  264. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailConfig.d.ts.map +1 -0
  265. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailSchemas.d.ts +35 -0
  266. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailSchemas.d.ts.map +1 -0
  267. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/processMonthlyProrationBatch.d.ts +33 -1
  268. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/processMonthlyProrationBatch.d.ts.map +1 -1
  269. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/scheduleMonthlyProration.d.ts +31 -0
  270. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/scheduleMonthlyProration.d.ts.map +1 -0
  271. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationInvoiceEmail.d.ts +16 -0
  272. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationInvoiceEmail.d.ts.map +1 -0
  273. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationReminderEmail.d.ts +13 -0
  274. package/dist/packages/features/ee/billing/service/proration/tasker/trigger/sendProrationReminderEmail.d.ts.map +1 -0
  275. package/dist/packages/features/ee/billing/service/proration/tasker/types.d.ts +23 -0
  276. package/dist/packages/features/ee/billing/service/proration/tasker/types.d.ts.map +1 -1
  277. package/dist/packages/features/ee/billing/service/seatTracking/SeatChangeTrackingService.d.ts +14 -3
  278. package/dist/packages/features/ee/billing/service/seatTracking/SeatChangeTrackingService.d.ts.map +1 -1
  279. package/dist/packages/features/ee/billing/service/teams/TeamBillingService.d.ts.map +1 -1
  280. package/dist/packages/features/ee/payments/pages/payment.d.ts +5 -2
  281. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  282. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +4 -0
  283. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  284. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +35 -0
  285. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -1
  286. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +12 -7
  287. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  288. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts +4 -1
  289. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  290. package/dist/packages/features/ee/round-robin/utils/bookingSelect.d.ts +2 -0
  291. package/dist/packages/features/ee/round-robin/utils/bookingSelect.d.ts.map +1 -1
  292. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  293. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +0 -8
  294. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  295. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +1 -2
  296. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  297. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts +0 -11
  298. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
  299. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +2 -2
  300. package/dist/packages/features/ee/workflows/lib/scheduleWorkflowNotifications.d.ts +2 -2
  301. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts +1 -2
  302. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts.map +1 -1
  303. package/dist/packages/features/ee/workflows/lib/test/urlScanner.test.d.ts +2 -0
  304. package/dist/packages/features/ee/workflows/lib/test/urlScanner.test.d.ts.map +1 -0
  305. package/dist/packages/features/ee/workflows/lib/types.d.ts +0 -3
  306. package/dist/packages/features/ee/workflows/lib/types.d.ts.map +1 -1
  307. package/dist/packages/features/ee/workflows/lib/urlScanner.d.ts +63 -0
  308. package/dist/packages/features/ee/workflows/lib/urlScanner.d.ts.map +1 -0
  309. package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts +0 -3
  310. package/dist/packages/features/ee/workflows/repositories/WorkflowReminderRepository.d.ts.map +1 -1
  311. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts +7 -12
  312. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts.map +1 -1
  313. package/dist/packages/features/eventtypes/components/AssignAllTeamMembers.d.ts +11 -0
  314. package/dist/packages/features/eventtypes/components/AssignAllTeamMembers.d.ts.map +1 -0
  315. package/dist/packages/features/eventtypes/components/BulkEditDefaultForEventsModal.d.ts +27 -0
  316. package/dist/packages/features/eventtypes/components/BulkEditDefaultForEventsModal.d.ts.map +1 -0
  317. package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts +40 -0
  318. package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts.map +1 -0
  319. package/dist/packages/features/eventtypes/components/ChildrenEventTypeSelect.d.ts +32 -0
  320. package/dist/packages/features/eventtypes/components/ChildrenEventTypeSelect.d.ts.map +1 -0
  321. package/dist/packages/features/eventtypes/components/CreateEventTypeForm.d.ts +16 -0
  322. package/dist/packages/features/eventtypes/components/CreateEventTypeForm.d.ts.map +1 -0
  323. package/dist/packages/features/eventtypes/components/LearnMoreLink.d.ts +9 -0
  324. package/dist/packages/features/eventtypes/components/LearnMoreLink.d.ts.map +1 -0
  325. package/dist/packages/features/eventtypes/components/WeightDescription.d.ts +5 -0
  326. package/dist/packages/features/eventtypes/components/WeightDescription.d.ts.map +1 -0
  327. package/dist/packages/features/eventtypes/components/dialogs/HostEditDialogs.d.ts +28 -0
  328. package/dist/packages/features/eventtypes/components/dialogs/HostEditDialogs.d.ts.map +1 -0
  329. package/dist/packages/features/eventtypes/components/dialogs/ManagedEventDialog.d.ts +13 -0
  330. package/dist/packages/features/eventtypes/components/dialogs/ManagedEventDialog.d.ts.map +1 -0
  331. package/dist/packages/features/eventtypes/components/locations/LocationInput.d.ts +12 -0
  332. package/dist/packages/features/eventtypes/components/locations/LocationInput.d.ts.map +1 -0
  333. package/dist/packages/features/eventtypes/components/locations/types.d.ts +23 -0
  334. package/dist/packages/features/eventtypes/components/locations/types.d.ts.map +1 -0
  335. package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts +58 -0
  336. package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -0
  337. package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts +10 -0
  338. package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts.map +1 -0
  339. package/dist/packages/features/eventtypes/components/tabs/recurring/EventRecurringTab.d.ts +4 -0
  340. package/dist/packages/features/eventtypes/components/tabs/recurring/EventRecurringTab.d.ts.map +1 -0
  341. package/dist/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.d.ts +22 -0
  342. package/dist/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.d.ts.map +1 -0
  343. package/dist/packages/features/eventtypes/eventtypes.repository.interface.d.ts +13 -0
  344. package/dist/packages/features/eventtypes/eventtypes.repository.interface.d.ts.map +1 -0
  345. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +57 -15
  346. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts.map +1 -1
  347. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +52 -10
  348. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts.map +1 -1
  349. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts +7 -1
  350. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts.map +1 -1
  351. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts +4 -1
  352. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts.map +1 -1
  353. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +49 -11
  354. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  355. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +2 -0
  356. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  357. package/dist/packages/features/eventtypes/lib/types.d.ts +13 -0
  358. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  359. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +30 -10
  360. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts.map +1 -1
  361. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts +116 -31
  362. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts.map +1 -1
  363. package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts +1 -1
  364. package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
  365. package/dist/packages/features/schedules/components/DateOverrideList.d.ts +7 -2
  366. package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
  367. package/dist/packages/features/schedules/components/{Schedule.d.ts → ScheduleComponent.d.ts} +1 -10
  368. package/dist/packages/features/schedules/components/ScheduleComponent.d.ts.map +1 -0
  369. package/dist/packages/features/schedules/components/ScheduleListItem.d.ts +18 -2
  370. package/dist/packages/features/schedules/components/ScheduleListItem.d.ts.map +1 -1
  371. package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts +0 -2
  372. package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts.map +1 -1
  373. package/dist/packages/kysely/types.d.ts +59 -4
  374. package/dist/packages/kysely/types.d.ts.map +1 -1
  375. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +1 -1
  376. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  377. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -1
  378. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  379. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  380. package/dist/packages/platform/atoms/booker/types.d.ts +3 -2
  381. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  382. package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts +3 -0
  383. package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts.map +1 -1
  384. package/dist/packages/platform/atoms/cal-provider/BaseCalProvider.d.ts +6 -2
  385. package/dist/packages/platform/atoms/cal-provider/BaseCalProvider.d.ts.map +1 -1
  386. package/dist/packages/platform/atoms/cal-provider/CalOAuthProvider.d.ts +19 -0
  387. package/dist/packages/platform/atoms/cal-provider/CalOAuthProvider.d.ts.map +1 -0
  388. package/dist/packages/platform/atoms/cal-provider/CalProvider.d.ts +7 -2
  389. package/dist/packages/platform/atoms/cal-provider/CalProvider.d.ts.map +1 -1
  390. package/dist/packages/platform/atoms/cal-provider/index.d.ts +1 -0
  391. package/dist/packages/platform/atoms/cal-provider/index.d.ts.map +1 -1
  392. package/dist/packages/platform/atoms/connect/conferencing-apps/ConferencingAppsViewPlatformWrapper.d.ts +17 -1
  393. package/dist/packages/platform/atoms/connect/conferencing-apps/ConferencingAppsViewPlatformWrapper.d.ts.map +1 -1
  394. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +2 -0
  395. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
  396. package/dist/packages/platform/atoms/destination-calendar/DestinationCalendarSelector.d.ts.map +1 -1
  397. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +31 -3
  398. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  399. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +5 -2
  400. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  401. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +14 -0
  402. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  403. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  404. package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts.map +1 -1
  405. package/dist/packages/platform/atoms/event-types/wrappers/EventLimitsTabPlatformWrapper.d.ts +1 -1
  406. package/dist/packages/platform/atoms/event-types/wrappers/EventLimitsTabPlatformWrapper.d.ts.map +1 -1
  407. package/dist/packages/platform/atoms/event-types/wrappers/EventRecurringTabPlatformWrapper.d.ts +1 -1
  408. package/dist/packages/platform/atoms/event-types/wrappers/EventRecurringTabPlatformWrapper.d.ts.map +1 -1
  409. package/dist/packages/platform/atoms/event-types/wrappers/EventTeamAssignmentTabPlatformWrapper.d.ts +1 -1
  410. package/dist/packages/platform/atoms/event-types/wrappers/EventTeamAssignmentTabPlatformWrapper.d.ts.map +1 -1
  411. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +17 -14
  412. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts.map +1 -1
  413. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +19 -16
  414. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
  415. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +17 -14
  416. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts.map +1 -1
  417. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -1
  418. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +1 -1
  419. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  420. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +2 -0
  421. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
  422. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventTypeForm.d.ts +8 -0
  423. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventTypeForm.d.ts.map +1 -0
  424. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +2 -0
  425. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
  426. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +2 -0
  427. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
  428. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +31 -11
  429. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  430. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +2 -320
  431. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  432. package/dist/packages/platform/atoms/hooks/useOAuthClient.d.ts +8 -6
  433. package/dist/packages/platform/atoms/hooks/useOAuthClient.d.ts.map +1 -1
  434. package/dist/packages/platform/atoms/hooks/useOAuthFlow.d.ts +4 -1
  435. package/dist/packages/platform/atoms/hooks/useOAuthFlow.d.ts.map +1 -1
  436. package/dist/packages/platform/atoms/index.d.ts +2 -1
  437. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  438. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
  439. package/dist/packages/platform/atoms/timezone/index.d.ts +2 -2
  440. package/dist/packages/platform/atoms/timezone/index.d.ts.map +1 -1
  441. package/dist/packages/platform/atoms/vite.config.d.ts.map +1 -1
  442. package/dist/packages/platform/constants/index.d.ts +1 -1
  443. package/dist/packages/platform/constants/index.d.ts.map +1 -1
  444. package/dist/packages/platform/libraries/index.d.ts +29 -25
  445. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  446. package/dist/packages/platform/libraries/organizations.d.ts +6 -0
  447. package/dist/packages/platform/libraries/organizations.d.ts.map +1 -1
  448. package/dist/packages/platform/libraries/tasker.d.ts +2 -0
  449. package/dist/packages/platform/libraries/tasker.d.ts.map +1 -0
  450. package/dist/packages/platform/types/bookings/2024-08-13/inputs/add-guests.input.d.ts.map +1 -1
  451. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking-input.pipe.d.ts.map +1 -1
  452. package/dist/packages/platform/types/bookings/2024-08-13/inputs/reschedule-booking.input.d.ts +1 -0
  453. package/dist/packages/platform/types/bookings/2024-08-13/inputs/reschedule-booking.input.d.ts.map +1 -1
  454. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
  455. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts +1 -1
  456. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts.map +1 -1
  457. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditSourceSchema.d.ts +1 -1
  458. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditSourceSchema.d.ts.map +1 -1
  459. package/dist/packages/prisma/zod/inputTypeSchemas/CredentialScalarFieldEnumSchema.d.ts +1 -1
  460. package/dist/packages/prisma/zod/inputTypeSchemas/CredentialScalarFieldEnumSchema.d.ts.map +1 -1
  461. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts +1 -1
  462. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts.map +1 -1
  463. package/dist/packages/prisma/zod/inputTypeSchemas/HostLocationScalarFieldEnumSchema.d.ts +4 -0
  464. package/dist/packages/prisma/zod/inputTypeSchemas/HostLocationScalarFieldEnumSchema.d.ts.map +1 -0
  465. package/dist/packages/prisma/zod/inputTypeSchemas/MonthlyProrationScalarFieldEnumSchema.d.ts +1 -1
  466. package/dist/packages/prisma/zod/inputTypeSchemas/MonthlyProrationScalarFieldEnumSchema.d.ts.map +1 -1
  467. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts +1 -1
  468. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts.map +1 -1
  469. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientStatusSchema.d.ts +5 -0
  470. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientStatusSchema.d.ts.map +1 -0
  471. package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationBillingScalarFieldEnumSchema.d.ts +1 -1
  472. package/dist/packages/prisma/zod/inputTypeSchemas/OrganizationBillingScalarFieldEnumSchema.d.ts.map +1 -1
  473. package/dist/packages/prisma/zod/inputTypeSchemas/PendingRoutingTraceScalarFieldEnumSchema.d.ts +4 -0
  474. package/dist/packages/prisma/zod/inputTypeSchemas/PendingRoutingTraceScalarFieldEnumSchema.d.ts.map +1 -0
  475. package/dist/packages/prisma/zod/inputTypeSchemas/RoutingTraceScalarFieldEnumSchema.d.ts +4 -0
  476. package/dist/packages/prisma/zod/inputTypeSchemas/RoutingTraceScalarFieldEnumSchema.d.ts.map +1 -0
  477. package/dist/packages/prisma/zod/inputTypeSchemas/SelectedCalendarScalarFieldEnumSchema.d.ts +1 -1
  478. package/dist/packages/prisma/zod/inputTypeSchemas/SelectedCalendarScalarFieldEnumSchema.d.ts.map +1 -1
  479. package/dist/packages/prisma/zod/inputTypeSchemas/TeamBillingScalarFieldEnumSchema.d.ts +1 -1
  480. package/dist/packages/prisma/zod/inputTypeSchemas/TeamBillingScalarFieldEnumSchema.d.ts.map +1 -1
  481. package/dist/packages/prisma/zod/inputTypeSchemas/UserScalarFieldEnumSchema.d.ts +1 -1
  482. package/dist/packages/prisma/zod/inputTypeSchemas/UserScalarFieldEnumSchema.d.ts.map +1 -1
  483. package/dist/packages/prisma/zod/inputTypeSchemas/WebhookTriggerEventsSchema.d.ts +1 -1
  484. package/dist/packages/prisma/zod/inputTypeSchemas/WebhookTriggerEventsSchema.d.ts.map +1 -1
  485. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts +4 -0
  486. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts.map +1 -1
  487. package/dist/packages/prisma/zod/modelSchema/AttendeeSchema.d.ts +2 -2
  488. package/dist/packages/prisma/zod/modelSchema/BookingAuditSchema.d.ts +6 -6
  489. package/dist/packages/prisma/zod/modelSchema/BookingReferenceSchema.d.ts +2 -2
  490. package/dist/packages/prisma/zod/modelSchema/BookingSchema.d.ts +4 -4
  491. package/dist/packages/prisma/zod/modelSchema/CalAiPhoneNumberSchema.d.ts +2 -2
  492. package/dist/packages/prisma/zod/modelSchema/CredentialSchema.d.ts +3 -0
  493. package/dist/packages/prisma/zod/modelSchema/CredentialSchema.d.ts.map +1 -1
  494. package/dist/packages/prisma/zod/modelSchema/CreditExpenseLogSchema.d.ts +2 -2
  495. package/dist/packages/prisma/zod/modelSchema/DelegationCredentialSchema.d.ts +2 -2
  496. package/dist/packages/prisma/zod/modelSchema/DestinationCalendarSchema.d.ts +2 -2
  497. package/dist/packages/prisma/zod/modelSchema/DomainWideDelegationSchema.d.ts +2 -2
  498. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts +35 -8
  499. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts.map +1 -1
  500. package/dist/packages/prisma/zod/modelSchema/HostLocationSchema.d.ts +38 -0
  501. package/dist/packages/prisma/zod/modelSchema/HostLocationSchema.d.ts.map +1 -0
  502. package/dist/packages/prisma/zod/modelSchema/IntegrationAttributeSyncSchema.d.ts +2 -2
  503. package/dist/packages/prisma/zod/modelSchema/MonthlyProrationSchema.d.ts +3 -0
  504. package/dist/packages/prisma/zod/modelSchema/MonthlyProrationSchema.d.ts.map +1 -1
  505. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts +18 -0
  506. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts.map +1 -1
  507. package/dist/packages/prisma/zod/modelSchema/OrganizationBillingSchema.d.ts +6 -0
  508. package/dist/packages/prisma/zod/modelSchema/OrganizationBillingSchema.d.ts.map +1 -1
  509. package/dist/packages/prisma/zod/modelSchema/OrganizationOnboardingSchema.d.ts +2 -2
  510. package/dist/packages/prisma/zod/modelSchema/PaymentSchema.d.ts +2 -2
  511. package/dist/packages/prisma/zod/modelSchema/PendingRoutingTraceSchema.d.ts +23 -0
  512. package/dist/packages/prisma/zod/modelSchema/PendingRoutingTraceSchema.d.ts.map +1 -0
  513. package/dist/packages/prisma/zod/modelSchema/RoutingTraceSchema.d.ts +29 -0
  514. package/dist/packages/prisma/zod/modelSchema/RoutingTraceSchema.d.ts.map +1 -0
  515. package/dist/packages/prisma/zod/modelSchema/SelectedCalendarSchema.d.ts +8 -2
  516. package/dist/packages/prisma/zod/modelSchema/SelectedCalendarSchema.d.ts.map +1 -1
  517. package/dist/packages/prisma/zod/modelSchema/TeamBillingSchema.d.ts +6 -0
  518. package/dist/packages/prisma/zod/modelSchema/TeamBillingSchema.d.ts.map +1 -1
  519. package/dist/packages/prisma/zod/modelSchema/UserSchema.d.ts +0 -6
  520. package/dist/packages/prisma/zod/modelSchema/UserSchema.d.ts.map +1 -1
  521. package/dist/packages/prisma/zod/modelSchema/VerifiedNumberSchema.d.ts +2 -2
  522. package/dist/packages/prisma/zod/modelSchema/WebhookSchema.d.ts +3 -3
  523. package/dist/packages/prisma/zod/modelSchema/WorkspacePlatformSchema.d.ts +2 -2
  524. package/dist/packages/prisma/zod/modelSchema/index.d.ts +3 -0
  525. package/dist/packages/prisma/zod/modelSchema/index.d.ts.map +1 -1
  526. package/dist/packages/prisma/zod-utils.d.ts +63 -18
  527. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  528. package/dist/{server.browser-BJMk0EAl.js → server.browser-CyeXzv12.js} +51 -51
  529. package/dist/{useIsAppEnabled-Bx1VHlWh.js → useIsAppEnabled-CyDpJ2dz.js} +4 -4
  530. package/package.json +2 -1
  531. package/dist/EventTypeAppCardInterface-C4r11pBP.js +0 -858
  532. package/dist/EventTypeAppCardInterface-CBkk_xfC.js +0 -514
  533. package/dist/EventTypeAppCardInterface-D9uSoM3s.js +0 -35
  534. package/dist/index-Bc5ILkDb.js +0 -5
  535. package/dist/index-CK8KWA8T.js +0 -27
  536. package/dist/packages/features/bookings/Booker/components/hooks/useAvailableTimeSlots.d.ts.map +0 -1
  537. package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts.map +0 -1
  538. package/dist/packages/features/bookings/Booker/components/hooks/useBookerTime.d.ts.map +0 -1
  539. package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts.map +0 -1
  540. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +0 -227
  541. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +0 -1
  542. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +0 -299
  543. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +0 -1
  544. package/dist/packages/features/bookings/Booker/components/hooks/useDecoyBooking.d.ts +0 -8
  545. package/dist/packages/features/bookings/Booker/components/hooks/useDecoyBooking.d.ts.map +0 -1
  546. package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.d.ts.map +0 -1
  547. package/dist/packages/features/bookings/Booker/components/hooks/useInitialFormValues.test.d.ts.map +0 -1
  548. package/dist/packages/features/bookings/Booker/components/hooks/useInitializeWeekStart.d.ts +0 -2
  549. package/dist/packages/features/bookings/Booker/components/hooks/useInitializeWeekStart.d.ts.map +0 -1
  550. package/dist/packages/features/bookings/Booker/components/hooks/useIsQuickAvailabilityCheckFeatureEnabled.d.ts +0 -2
  551. package/dist/packages/features/bookings/Booker/components/hooks/useIsQuickAvailabilityCheckFeatureEnabled.d.ts.map +0 -1
  552. package/dist/packages/features/bookings/Booker/components/hooks/useLocalSet.d.ts.map +0 -1
  553. package/dist/packages/features/bookings/Booker/components/hooks/useOverlayCalendar.d.ts +0 -11
  554. package/dist/packages/features/bookings/Booker/components/hooks/useOverlayCalendar.d.ts.map +0 -1
  555. package/dist/packages/features/bookings/Booker/components/hooks/useSkipConfirmStep.d.ts +0 -6
  556. package/dist/packages/features/bookings/Booker/components/hooks/useSkipConfirmStep.d.ts.map +0 -1
  557. package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts +0 -24
  558. package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts.map +0 -1
  559. package/dist/packages/features/bookings/Booker/components/hooks/useVerifyCode.d.ts +0 -18
  560. package/dist/packages/features/bookings/Booker/components/hooks/useVerifyCode.d.ts.map +0 -1
  561. package/dist/packages/features/bookings/Booker/components/hooks/useVerifyEmail.d.ts +0 -19
  562. package/dist/packages/features/bookings/Booker/components/hooks/useVerifyEmail.d.ts.map +0 -1
  563. package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts +0 -21
  564. package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts.map +0 -1
  565. package/dist/packages/features/components/timezone-select/index.d.ts +0 -3
  566. package/dist/packages/features/components/timezone-select/index.d.ts.map +0 -1
  567. package/dist/packages/features/components/timezone-select/timezone-select.test.d.ts +0 -2
  568. package/dist/packages/features/components/timezone-select/timezone-select.test.d.ts.map +0 -1
  569. package/dist/packages/features/ee/workflows/hooks/useAgentsData.d.ts +0 -23
  570. package/dist/packages/features/ee/workflows/hooks/useAgentsData.d.ts.map +0 -1
  571. package/dist/packages/features/ee/workflows/lib/test/replaceCloakedLinksInHtml.test.d.ts +0 -2
  572. package/dist/packages/features/ee/workflows/lib/test/replaceCloakedLinksInHtml.test.d.ts.map +0 -1
  573. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts +0 -137
  574. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts.map +0 -1
  575. package/dist/packages/features/schedules/components/NewScheduleButton.d.ts +0 -5
  576. package/dist/packages/features/schedules/components/NewScheduleButton.d.ts.map +0 -1
  577. package/dist/packages/features/schedules/components/Schedule.d.ts.map +0 -1
  578. package/dist/packages/features/schedules/components/date-override-list.test.d.ts +0 -2
  579. package/dist/packages/features/schedules/components/date-override-list.test.d.ts.map +0 -1
  580. /package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useInitialFormValues.test.d.ts +0 -0
  581. /package/dist/packages/features/bookings/Booker/{components/hooks → hooks}/useLocalSet.d.ts +0 -0
@@ -0,0 +1,1057 @@
1
+ import { jsxs as c, jsx as e, Fragment as F } from "react/jsx-runtime";
2
+ import { o as le, an as X, I as v, S as h, B as x, ao as C, ap as J, aq as Q, n as E, ar as P, p as re, q as de, as as T, W as ue, L as Z, $ as me, t as fe } from "./index-DJmppf57.js";
3
+ import { useState as w } from "react";
4
+ import { S as t, A as ve } from "./AppCard-BJK_0kDR.js";
5
+ import { u as he } from "./useIsAppEnabled-CyDpJ2dz.js";
6
+ const pe = ({
7
+ fieldRules: _,
8
+ updateFieldRules: L
9
+ }) => {
10
+ const { t: S } = le(), A = [
11
+ { label: S("salesforce_rr_skip_field_rule_ignore"), value: X.IGNORE },
12
+ { label: S("salesforce_rr_skip_field_rule_must_include"), value: X.MUST_INCLUDE }
13
+ ], [s, r] = w({
14
+ field: "",
15
+ value: "",
16
+ action: X.IGNORE
17
+ }), [i, R] = w(null), [u, N] = w(null), O = (m) => {
18
+ const k = _[m];
19
+ R(m), N({ field: k.field, value: k.value, action: k.action });
20
+ }, H = () => {
21
+ R(null), N(null);
22
+ }, j = () => {
23
+ if (i === null || !u || !u.field.trim() || !u.value.trim()) return;
24
+ const m = [..._];
25
+ m[i] = {
26
+ field: u.field.trim(),
27
+ value: u.value.trim(),
28
+ action: u.action
29
+ }, L(m), H();
30
+ };
31
+ return /* @__PURE__ */ c(t.SubSection, { children: [
32
+ /* @__PURE__ */ e(
33
+ t.SubSectionHeader,
34
+ {
35
+ icon: "filter",
36
+ title: S("salesforce_rr_skip_field_rules"),
37
+ labelFor: "rr-skip-field-rules",
38
+ children: /* @__PURE__ */ e(F, {})
39
+ }
40
+ ),
41
+ /* @__PURE__ */ c(t.SubSectionContent, { children: [
42
+ /* @__PURE__ */ c("div", { className: "text-subtle flex gap-3 px-3 py-[6px] text-sm font-medium", children: [
43
+ /* @__PURE__ */ e("div", { className: "flex-1", children: S("field_name") }),
44
+ /* @__PURE__ */ e("div", { className: "flex-1", children: S("value") }),
45
+ /* @__PURE__ */ e("div", { className: "w-32", children: S("action") }),
46
+ /* @__PURE__ */ e("div", { className: "w-20" })
47
+ ] }),
48
+ /* @__PURE__ */ c(t.SubSectionNested, { children: [
49
+ _.map((m, k) => {
50
+ const W = i === k;
51
+ return /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
52
+ /* @__PURE__ */ e("div", { className: "flex-1", children: W ? /* @__PURE__ */ e(
53
+ v,
54
+ {
55
+ value: (u == null ? void 0 : u.field) || "",
56
+ onChange: (p) => N((b) => b ? { ...b, field: p.target.value } : null),
57
+ size: "sm",
58
+ className: "w-full"
59
+ }
60
+ ) : /* @__PURE__ */ e(v, { value: m.field, readOnly: !0, size: "sm", className: "w-full" }) }),
61
+ /* @__PURE__ */ e("div", { className: "flex-1", children: W ? /* @__PURE__ */ e(
62
+ v,
63
+ {
64
+ value: (u == null ? void 0 : u.value) || "",
65
+ onChange: (p) => N((b) => b ? { ...b, value: p.target.value } : null),
66
+ size: "sm",
67
+ className: "w-full"
68
+ }
69
+ ) : /* @__PURE__ */ e(v, { value: m.value, readOnly: !0, size: "sm", className: "w-full" }) }),
70
+ /* @__PURE__ */ e("div", { className: "w-32", children: W ? /* @__PURE__ */ e(
71
+ h,
72
+ {
73
+ size: "sm",
74
+ className: "w-full",
75
+ options: A,
76
+ value: A.find((p) => p.value === (u == null ? void 0 : u.action)),
77
+ onChange: (p) => {
78
+ p && N((b) => b ? { ...b, action: p.value } : null);
79
+ }
80
+ }
81
+ ) : /* @__PURE__ */ e(
82
+ h,
83
+ {
84
+ size: "sm",
85
+ className: "w-full",
86
+ options: A,
87
+ value: A.find((p) => p.value === m.action),
88
+ isDisabled: !0
89
+ }
90
+ ) }),
91
+ /* @__PURE__ */ e("div", { className: "flex w-20 justify-center gap-1", children: W ? /* @__PURE__ */ c(F, { children: [
92
+ /* @__PURE__ */ e(
93
+ x,
94
+ {
95
+ size: "sm",
96
+ StartIcon: "check",
97
+ variant: "icon",
98
+ color: "primary",
99
+ onClick: () => j()
100
+ }
101
+ ),
102
+ /* @__PURE__ */ e(
103
+ x,
104
+ {
105
+ size: "sm",
106
+ StartIcon: "x",
107
+ variant: "icon",
108
+ color: "secondary",
109
+ onClick: () => H()
110
+ }
111
+ )
112
+ ] }) : /* @__PURE__ */ c(F, { children: [
113
+ /* @__PURE__ */ e(
114
+ x,
115
+ {
116
+ size: "sm",
117
+ StartIcon: "pencil",
118
+ variant: "icon",
119
+ color: "minimal",
120
+ onClick: () => O(k)
121
+ }
122
+ ),
123
+ /* @__PURE__ */ e(
124
+ x,
125
+ {
126
+ StartIcon: "x",
127
+ variant: "icon",
128
+ size: "sm",
129
+ color: "minimal",
130
+ onClick: () => {
131
+ L(_.filter((p, b) => b !== k));
132
+ }
133
+ }
134
+ )
135
+ ] }) })
136
+ ] }, `${m.field}-${k}`);
137
+ }),
138
+ /* @__PURE__ */ c("div", { className: "mt-2 flex gap-2", children: [
139
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
140
+ v,
141
+ {
142
+ size: "sm",
143
+ className: "w-full",
144
+ placeholder: S("salesforce_field_name_placeholder"),
145
+ value: s.field,
146
+ onChange: (m) => r({ ...s, field: m.target.value })
147
+ }
148
+ ) }),
149
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
150
+ v,
151
+ {
152
+ size: "sm",
153
+ className: "w-full",
154
+ placeholder: S("value"),
155
+ value: s.value,
156
+ onChange: (m) => r({ ...s, value: m.target.value })
157
+ }
158
+ ) }),
159
+ /* @__PURE__ */ e("div", { className: "w-32", children: /* @__PURE__ */ e(
160
+ h,
161
+ {
162
+ size: "sm",
163
+ className: "w-full",
164
+ options: A,
165
+ value: A.find((m) => m.value === s.action),
166
+ onChange: (m) => {
167
+ m && r({ ...s, action: m.value });
168
+ }
169
+ }
170
+ ) }),
171
+ /* @__PURE__ */ e("div", { className: "w-20" })
172
+ ] })
173
+ ] }),
174
+ /* @__PURE__ */ e(
175
+ x,
176
+ {
177
+ className: "text-subtle mt-2 w-fit",
178
+ StartIcon: "plus",
179
+ color: "minimal",
180
+ size: "sm",
181
+ disabled: !(s.field && s.value),
182
+ onClick: () => {
183
+ L([
184
+ ..._,
185
+ {
186
+ field: s.field.trim(),
187
+ value: s.value.trim(),
188
+ action: s.action
189
+ }
190
+ ]), r({ field: "", value: "", action: X.IGNORE });
191
+ },
192
+ children: S("add_new_rule")
193
+ }
194
+ )
195
+ ] })
196
+ ] });
197
+ };
198
+ var ee = /* @__PURE__ */ ((_) => (_.ON_BOOKING = "on_booking", _.ON_CANCEL = "on_cancel", _))(ee || {});
199
+ const te = ({
200
+ bookingAction: _,
201
+ optionLabel: L,
202
+ optionEnabled: S,
203
+ optionSwitchOnChange: A,
204
+ writeToObjectData: s,
205
+ updateWriteToObjectData: r
206
+ }) => {
207
+ const { t: i } = le(), R = [
208
+ { label: i("text"), value: C.TEXT },
209
+ { label: i("date"), value: C.DATE },
210
+ { label: i("phone").charAt(0).toUpperCase() + i("phone").slice(1), value: C.PHONE },
211
+ { label: i("checkbox"), value: C.CHECKBOX },
212
+ { label: i("picklist"), value: C.PICKLIST },
213
+ { label: i("custom"), value: C.CUSTOM }
214
+ ], u = [
215
+ { label: i("only_if_field_is_empty"), value: J.FIELD_EMPTY },
216
+ ..._ === "on_cancel" ? [{ label: i("salesforce_on_every_cancellation"), value: J.EVERY_BOOKING }] : [{ label: i("on_every_booking"), value: J.EVERY_BOOKING }]
217
+ ], N = [
218
+ { label: i("true"), value: !0 },
219
+ { label: i("false"), value: !1 }
220
+ ], O = [
221
+ ..._ === "on_cancel" ? [{ label: i("booking_cancel_date"), value: Q.BOOKING_CANCEL_DATE }] : [],
222
+ { label: i("booking_start_date"), value: Q.BOOKING_START_DATE },
223
+ { label: i("booking_created_date"), value: Q.BOOKING_CREATED_DATE }
224
+ ], [H, j] = w(R[0]), [m, k] = w(O[0]), [W, p] = w(
225
+ N[0]
226
+ ), [b, y] = w(u[0]), [D, G] = w({}), [K, z] = w(
227
+ {}
228
+ ), [f, B] = w({
229
+ field: "",
230
+ fieldType: H.value,
231
+ value: "",
232
+ whenToWrite: b.value
233
+ }), $ = (l) => {
234
+ Object.keys(D).forEach((d) => {
235
+ D[d] && d !== l && U(d);
236
+ }), G((d) => ({ ...d, [l]: !0 })), z((d) => ({
237
+ ...d,
238
+ [l]: {
239
+ field: l,
240
+ fieldType: s[l].fieldType,
241
+ value: s[l].value,
242
+ whenToWrite: s[l].whenToWrite
243
+ }
244
+ }));
245
+ }, U = (l) => {
246
+ G((d) => ({ ...d, [l]: !1 })), z((d) => {
247
+ const o = { ...d };
248
+ return delete o[l], o;
249
+ });
250
+ }, V = (l) => {
251
+ const d = K[l];
252
+ if (!d) return;
253
+ if (!d.field.trim()) {
254
+ P("Field name cannot be empty", "error");
255
+ return;
256
+ }
257
+ if (d.field !== l && Object.keys(s).includes(d.field.trim())) {
258
+ P("Field already exists", "error");
259
+ return;
260
+ }
261
+ const o = { ...s };
262
+ d.field !== l && delete o[l], o[d.field.trim()] = {
263
+ fieldType: d.fieldType,
264
+ value: d.value,
265
+ whenToWrite: d.whenToWrite
266
+ }, r(o), U(l);
267
+ };
268
+ return /* @__PURE__ */ c(F, { children: [
269
+ /* @__PURE__ */ e(t.SubSectionHeader, { icon: "star", labelFor: "write-to-object-settings", title: L, children: /* @__PURE__ */ e(
270
+ E,
271
+ {
272
+ checked: S,
273
+ onCheckedChange: A,
274
+ id: "write-to-object-settings",
275
+ size: "sm"
276
+ }
277
+ ) }),
278
+ S ? /* @__PURE__ */ c(t.SubSectionContent, { children: [
279
+ /* @__PURE__ */ c("div", { className: "text-subtle flex gap-3 px-3 py-[6px] text-sm font-medium", children: [
280
+ /* @__PURE__ */ e("div", { className: "flex-1", children: i("field_name") }),
281
+ /* @__PURE__ */ e("div", { className: "flex-1", children: i("field_type") }),
282
+ /* @__PURE__ */ e("div", { className: "flex-1", children: i("value") }),
283
+ /* @__PURE__ */ e("div", { className: "flex-1", children: i("when_to_write") }),
284
+ /* @__PURE__ */ e("div", { className: "w-20" })
285
+ ] }),
286
+ /* @__PURE__ */ c(t.SubSectionNested, { children: [
287
+ Object.keys(s).map((l) => {
288
+ const d = D[l], o = K[l];
289
+ return /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
290
+ /* @__PURE__ */ e("div", { className: "flex-1", children: d ? /* @__PURE__ */ e(
291
+ v,
292
+ {
293
+ value: (o == null ? void 0 : o.field) || l,
294
+ onChange: (n) => z((g) => ({
295
+ ...g,
296
+ [l]: { ...o, field: n.target.value }
297
+ })),
298
+ size: "sm",
299
+ className: "w-full"
300
+ }
301
+ ) : /* @__PURE__ */ e(v, { value: l, readOnly: !0, size: "sm", className: "w-full" }) }),
302
+ /* @__PURE__ */ e("div", { className: "flex-1", children: d ? /* @__PURE__ */ e(
303
+ h,
304
+ {
305
+ size: "sm",
306
+ className: "w-full",
307
+ options: R,
308
+ value: R.find((n) => n.value === (o == null ? void 0 : o.fieldType)),
309
+ onChange: (n) => {
310
+ n && z((g) => ({
311
+ ...g,
312
+ [l]: {
313
+ ...o,
314
+ fieldType: n.value,
315
+ ...n.value === C.DATE && {
316
+ value: O[0].value
317
+ },
318
+ ...n.value === C.CHECKBOX && {
319
+ value: N[0].value
320
+ }
321
+ }
322
+ }));
323
+ }
324
+ }
325
+ ) : /* @__PURE__ */ e(
326
+ h,
327
+ {
328
+ size: "sm",
329
+ className: "w-full",
330
+ value: R.find(
331
+ (n) => n.value === s[l].fieldType
332
+ ),
333
+ isDisabled: !0
334
+ }
335
+ ) }),
336
+ /* @__PURE__ */ e("div", { className: "flex-1", children: d ? (o == null ? void 0 : o.fieldType) === C.DATE ? /* @__PURE__ */ e(
337
+ h,
338
+ {
339
+ size: "sm",
340
+ className: "w-full",
341
+ options: O,
342
+ value: O.find((n) => n.value === o.value),
343
+ onChange: (n) => {
344
+ n && z((g) => ({
345
+ ...g,
346
+ [l]: { ...o, value: n.value }
347
+ }));
348
+ }
349
+ }
350
+ ) : (o == null ? void 0 : o.fieldType) === C.CHECKBOX ? /* @__PURE__ */ e(
351
+ h,
352
+ {
353
+ size: "sm",
354
+ className: "w-full",
355
+ options: N,
356
+ value: N.find((n) => n.value === o.value),
357
+ onChange: (n) => {
358
+ n && z((g) => ({
359
+ ...g,
360
+ [l]: { ...o, value: n.value }
361
+ }));
362
+ }
363
+ }
364
+ ) : /* @__PURE__ */ e(
365
+ v,
366
+ {
367
+ value: (o == null ? void 0 : o.value) || "",
368
+ onChange: (n) => z((g) => ({
369
+ ...g,
370
+ [l]: { ...o, value: n.target.value }
371
+ })),
372
+ size: "sm",
373
+ className: "w-full"
374
+ }
375
+ ) : s[l].fieldType === C.DATE ? /* @__PURE__ */ e(
376
+ h,
377
+ {
378
+ size: "sm",
379
+ className: "w-full",
380
+ value: O.find(
381
+ (n) => n.value === s[l].value
382
+ ),
383
+ isDisabled: !0
384
+ }
385
+ ) : s[l].fieldType === C.CHECKBOX ? /* @__PURE__ */ e(
386
+ h,
387
+ {
388
+ size: "sm",
389
+ className: "w-full",
390
+ value: N.find(
391
+ (n) => n.value === s[l].value
392
+ ),
393
+ isDisabled: !0
394
+ }
395
+ ) : /* @__PURE__ */ e(
396
+ v,
397
+ {
398
+ value: s[l].value,
399
+ readOnly: !0,
400
+ size: "sm",
401
+ className: "w-full"
402
+ }
403
+ ) }),
404
+ /* @__PURE__ */ e("div", { className: "flex-1", children: d ? /* @__PURE__ */ e(
405
+ h,
406
+ {
407
+ size: "sm",
408
+ className: "w-full",
409
+ options: u,
410
+ value: u.find(
411
+ (n) => n.value === (o == null ? void 0 : o.whenToWrite)
412
+ ),
413
+ onChange: (n) => {
414
+ n && z((g) => ({
415
+ ...g,
416
+ [l]: { ...o, whenToWrite: n.value }
417
+ }));
418
+ }
419
+ }
420
+ ) : /* @__PURE__ */ e(
421
+ h,
422
+ {
423
+ size: "sm",
424
+ className: "w-full",
425
+ value: u.find(
426
+ (n) => n.value === s[l].whenToWrite
427
+ ),
428
+ isDisabled: !0
429
+ }
430
+ ) }),
431
+ /* @__PURE__ */ e("div", { className: "flex w-20 justify-center gap-1", children: d ? /* @__PURE__ */ c(F, { children: [
432
+ /* @__PURE__ */ e(
433
+ x,
434
+ {
435
+ size: "sm",
436
+ StartIcon: "check",
437
+ variant: "icon",
438
+ color: "primary",
439
+ onClick: () => V(l)
440
+ }
441
+ ),
442
+ /* @__PURE__ */ e(
443
+ x,
444
+ {
445
+ size: "sm",
446
+ StartIcon: "x",
447
+ variant: "icon",
448
+ color: "secondary",
449
+ onClick: () => U(l)
450
+ }
451
+ )
452
+ ] }) : /* @__PURE__ */ c(F, { children: [
453
+ /* @__PURE__ */ e(
454
+ x,
455
+ {
456
+ size: "sm",
457
+ StartIcon: "pencil",
458
+ variant: "icon",
459
+ color: "minimal",
460
+ onClick: () => $(l)
461
+ }
462
+ ),
463
+ /* @__PURE__ */ e(
464
+ x,
465
+ {
466
+ size: "sm",
467
+ StartIcon: "x",
468
+ variant: "icon",
469
+ color: "minimal",
470
+ onClick: () => {
471
+ const n = { ...s };
472
+ delete n[l], r(n);
473
+ }
474
+ }
475
+ )
476
+ ] }) })
477
+ ] }, l);
478
+ }),
479
+ /* @__PURE__ */ c("div", { className: "flex gap-2", children: [
480
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
481
+ v,
482
+ {
483
+ size: "sm",
484
+ className: "w-full",
485
+ value: f.field,
486
+ onChange: (l) => B({
487
+ ...f,
488
+ field: l.target.value
489
+ })
490
+ }
491
+ ) }),
492
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
493
+ h,
494
+ {
495
+ size: "sm",
496
+ className: "w-full",
497
+ options: R,
498
+ value: H,
499
+ onChange: (l) => {
500
+ l && (j(l), B({
501
+ ...f,
502
+ fieldType: l.value,
503
+ ...l.value === C.DATE && { value: m.value },
504
+ ...l.value === C.CHECKBOX && {
505
+ value: W.value
506
+ }
507
+ }));
508
+ }
509
+ }
510
+ ) }),
511
+ /* @__PURE__ */ e("div", { className: "flex-1", children: f.fieldType === C.DATE ? /* @__PURE__ */ e(
512
+ h,
513
+ {
514
+ size: "sm",
515
+ className: "w-full",
516
+ options: O,
517
+ value: m,
518
+ onChange: (l) => {
519
+ l && (k(l), B({
520
+ ...f,
521
+ value: l.value
522
+ }));
523
+ }
524
+ }
525
+ ) : f.fieldType === C.CHECKBOX ? /* @__PURE__ */ e(
526
+ h,
527
+ {
528
+ size: "sm",
529
+ className: "w-full",
530
+ options: N,
531
+ value: W,
532
+ onChange: (l) => {
533
+ l && (p(l), B({
534
+ ...f,
535
+ value: l.value
536
+ }));
537
+ }
538
+ }
539
+ ) : /* @__PURE__ */ e(
540
+ v,
541
+ {
542
+ size: "sm",
543
+ className: "w-full",
544
+ value: f.value,
545
+ onChange: (l) => B({
546
+ ...f,
547
+ value: l.target.value
548
+ })
549
+ }
550
+ ) }),
551
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
552
+ h,
553
+ {
554
+ size: "sm",
555
+ className: "w-full",
556
+ options: u,
557
+ value: b,
558
+ onChange: (l) => {
559
+ l && (y(l), B({
560
+ ...f,
561
+ whenToWrite: l.value
562
+ }));
563
+ }
564
+ }
565
+ ) }),
566
+ /* @__PURE__ */ e("div", { className: "w-20" })
567
+ ] })
568
+ ] }),
569
+ /* @__PURE__ */ e(
570
+ x,
571
+ {
572
+ className: "text-subtle mt-2 w-fit",
573
+ StartIcon: "plus",
574
+ color: "minimal",
575
+ size: "sm",
576
+ disabled: !(f.field && f.fieldType && f.value !== "" && f.whenToWrite),
577
+ onClick: () => {
578
+ if (Object.keys(s).includes(f.field.trim())) {
579
+ P("Field already exists", "error");
580
+ return;
581
+ }
582
+ r({
583
+ ...s,
584
+ [f.field.trim()]: {
585
+ fieldType: f.fieldType,
586
+ value: f.value,
587
+ whenToWrite: f.whenToWrite
588
+ }
589
+ }), B({
590
+ field: "",
591
+ fieldType: R[0].value,
592
+ value: "",
593
+ whenToWrite: u[0].value
594
+ });
595
+ },
596
+ children: i("add_new_field")
597
+ }
598
+ )
599
+ ] }) : null
600
+ ] });
601
+ }, _e = function({ app: L, eventType: S, onAppInstallSuccess: A }) {
602
+ var ie;
603
+ const s = re.usePathname(), { getAppData: r, setAppData: i, disabled: R } = de(), { enabled: u, updateEnabled: N } = he(L), O = r("roundRobinLeadSkip"), H = r("roundRobinSkipCheckRecordOn") ?? T.CONTACT, j = r("ifFreeEmailDomainSkipOwnerCheck") ?? !1, m = r("skipContactCreation"), k = r("createLeadIfAccountNull"), W = r("createNewContactUnderAccount"), p = r("createEventOn") ?? T.CONTACT, b = r("onBookingWriteToEventObject") ?? !1, y = r("onBookingWriteToEventObjectMap") ?? {}, D = r("createEventOnLeadCheckForContact") ?? !1, G = r("onBookingChangeRecordOwner") ?? !1, K = r("onBookingChangeRecordOwnerName") ?? [], z = r("sendNoShowAttendeeData") ?? !1, f = r("sendNoShowAttendeeDataField") ?? "", B = r("onBookingWriteToRecord") ?? !1, $ = r("onBookingWriteToRecordFields") ?? {}, U = r("ignoreGuests") ?? !1, V = r("roundRobinSkipFallbackToLeadOwner") ?? !1, l = r("onCancelWriteToEventRecord") ?? !1, d = r("onCancelWriteToEventRecordFields") ?? {}, o = r("rrSkipFieldRules") ?? [], { t: n } = le(), g = [
604
+ { label: n("contact"), value: T.CONTACT },
605
+ { label: n("salesforce_lead"), value: T.LEAD },
606
+ { label: n("salesforce_contact_under_account"), value: T.ACCOUNT }
607
+ ], [M, oe] = w(
608
+ g.find((a) => a.value === p) ?? g[0]
609
+ ), Y = [
610
+ { label: n("contact"), value: T.CONTACT },
611
+ { label: n("salesforce_lead"), value: T.LEAD },
612
+ { label: n("account"), value: T.ACCOUNT }
613
+ ], [ne, ce] = w(
614
+ Y.find((a) => a.value === H) ?? Y[0]
615
+ ), [I, q] = w({
616
+ field: "",
617
+ value: ""
618
+ }), ae = () => /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
619
+ t.SubSectionHeader,
620
+ {
621
+ icon: "at-sign",
622
+ title: n("salesforce_create_new_contact_under_account"),
623
+ labelFor: "create-new-contact-under-account",
624
+ children: /* @__PURE__ */ e(
625
+ E,
626
+ {
627
+ size: "sm",
628
+ labelOnLeading: !0,
629
+ checked: W,
630
+ onCheckedChange: (a) => {
631
+ i("createNewContactUnderAccount", a);
632
+ }
633
+ }
634
+ )
635
+ }
636
+ ) });
637
+ return /* @__PURE__ */ e(
638
+ ve,
639
+ {
640
+ onAppInstallSuccess: A,
641
+ returnTo: `${ue}${s}?tabName=apps`,
642
+ app: L,
643
+ teamId: ((ie = S.team) == null ? void 0 : ie.id) || void 0,
644
+ switchOnClick: (a) => {
645
+ N(a);
646
+ },
647
+ switchChecked: u,
648
+ hideSettingsIcon: !0,
649
+ children: /* @__PURE__ */ c(t.Content, { children: [
650
+ /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
651
+ t.SubSectionHeader,
652
+ {
653
+ icon: "zap",
654
+ title: n("salesforce_add_attendees_as"),
655
+ justify: "start",
656
+ labelFor: "add-attendees-as",
657
+ children: /* @__PURE__ */ e(
658
+ h,
659
+ {
660
+ size: "sm",
661
+ id: "add-attendees-as",
662
+ className: "w-[200px]",
663
+ options: g,
664
+ value: M,
665
+ onChange: (a) => {
666
+ a && (oe(a), i("createEventOn", a.value));
667
+ }
668
+ }
669
+ )
670
+ }
671
+ ) }),
672
+ /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
673
+ t.SubSectionHeader,
674
+ {
675
+ icon: "user-plus",
676
+ title: n("salesforce_ignore_guests"),
677
+ labelFor: "ignore-guests",
678
+ children: /* @__PURE__ */ e(
679
+ E,
680
+ {
681
+ size: "sm",
682
+ labelOnLeading: !0,
683
+ checked: U,
684
+ onCheckedChange: (a) => {
685
+ i("ignoreGuests", a);
686
+ }
687
+ }
688
+ )
689
+ }
690
+ ) }),
691
+ M.value === T.CONTACT ? /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
692
+ t.SubSectionHeader,
693
+ {
694
+ icon: "user-plus",
695
+ title: n("skip_contact_creation", { appName: "Salesforce" }),
696
+ labelFor: "skip-contact-creation",
697
+ children: /* @__PURE__ */ e(
698
+ E,
699
+ {
700
+ size: "sm",
701
+ labelOnLeading: !0,
702
+ checked: m,
703
+ onCheckedChange: (a) => {
704
+ i("skipContactCreation", a);
705
+ }
706
+ }
707
+ )
708
+ }
709
+ ) }) : null,
710
+ M.value === T.LEAD ? /* @__PURE__ */ c(F, { children: [
711
+ /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
712
+ t.SubSectionHeader,
713
+ {
714
+ icon: "user-plus",
715
+ title: n("salesforce_create_event_on_contact"),
716
+ labelFor: "create-event-on-contact",
717
+ children: /* @__PURE__ */ e(
718
+ E,
719
+ {
720
+ size: "sm",
721
+ labelOnLeading: !0,
722
+ checked: D,
723
+ onCheckedChange: (a) => {
724
+ i("createEventOnLeadCheckForContact", a);
725
+ }
726
+ }
727
+ )
728
+ }
729
+ ) }),
730
+ /* @__PURE__ */ e(ae, {})
731
+ ] }) : null,
732
+ M.value === T.ACCOUNT ? /* @__PURE__ */ c(F, { children: [
733
+ /* @__PURE__ */ e(ae, {}),
734
+ /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
735
+ t.SubSectionHeader,
736
+ {
737
+ icon: "user-plus",
738
+ title: n("salesforce_if_account_does_not_exist"),
739
+ labelFor: "create-lead-if-account-null",
740
+ children: /* @__PURE__ */ e(
741
+ E,
742
+ {
743
+ size: "sm",
744
+ labelOnLeading: !0,
745
+ checked: k,
746
+ onCheckedChange: (a) => {
747
+ i("createLeadIfAccountNull", a);
748
+ }
749
+ }
750
+ )
751
+ }
752
+ ) })
753
+ ] }) : null,
754
+ /* @__PURE__ */ c(t.SubSection, { children: [
755
+ /* @__PURE__ */ e(t.SubSectionHeader, { icon: "badge-check", title: n("on_booking_write_to_event_object"), children: /* @__PURE__ */ e(
756
+ E,
757
+ {
758
+ size: "sm",
759
+ labelOnLeading: !0,
760
+ checked: b,
761
+ onCheckedChange: (a) => {
762
+ i("onBookingWriteToEventObject", a);
763
+ }
764
+ }
765
+ ) }),
766
+ b ? /* @__PURE__ */ c(t.SubSectionContent, { children: [
767
+ /* @__PURE__ */ c("div", { className: "text-subtle flex gap-3 px-3 py-[6px] text-sm font-medium", children: [
768
+ /* @__PURE__ */ e("div", { className: "flex-1", children: n("field_name") }),
769
+ /* @__PURE__ */ e("div", { className: "flex-1", children: n("value") }),
770
+ /* @__PURE__ */ e("div", { className: "w-10" })
771
+ ] }),
772
+ /* @__PURE__ */ c(t.SubSectionNested, { children: [
773
+ Object.keys(y).map((a) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
774
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(v, { value: a, readOnly: !0, size: "sm", className: "w-full" }) }),
775
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
776
+ v,
777
+ {
778
+ value: y[a],
779
+ readOnly: !0,
780
+ size: "sm",
781
+ className: "w-full"
782
+ }
783
+ ) }),
784
+ /* @__PURE__ */ e("div", { className: "flex w-10 justify-center", children: /* @__PURE__ */ e(
785
+ x,
786
+ {
787
+ StartIcon: "x",
788
+ variant: "icon",
789
+ size: "sm",
790
+ color: "minimal",
791
+ onClick: () => {
792
+ const se = y;
793
+ delete y[a], i("onBookingWriteToEventObjectMap", se);
794
+ }
795
+ }
796
+ ) })
797
+ ] }, a)),
798
+ /* @__PURE__ */ c("div", { className: "mt-2 flex gap-4", children: [
799
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
800
+ v,
801
+ {
802
+ size: "sm",
803
+ className: "w-full",
804
+ value: I.field,
805
+ onChange: (a) => q({
806
+ ...I,
807
+ field: a.target.value
808
+ })
809
+ }
810
+ ) }),
811
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
812
+ v,
813
+ {
814
+ size: "sm",
815
+ className: "w-full",
816
+ value: I.value,
817
+ onChange: (a) => q({
818
+ ...I,
819
+ value: a.target.value
820
+ })
821
+ }
822
+ ) }),
823
+ /* @__PURE__ */ e("div", { className: "w-10" })
824
+ ] })
825
+ ] }),
826
+ /* @__PURE__ */ e(
827
+ x,
828
+ {
829
+ className: "text-subtle mt-2 w-fit",
830
+ size: "sm",
831
+ color: "secondary",
832
+ disabled: !(I.field && I.value),
833
+ onClick: () => {
834
+ if (Object.keys(y).includes(
835
+ I.field.trim()
836
+ )) {
837
+ P("Field already exists", "error");
838
+ return;
839
+ }
840
+ i("onBookingWriteToEventObjectMap", {
841
+ ...y,
842
+ [I.field.trim()]: I.value.trim()
843
+ }), q({ field: "", value: "" });
844
+ },
845
+ children: n("add_new_field")
846
+ }
847
+ )
848
+ ] }) : null
849
+ ] }),
850
+ /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
851
+ te,
852
+ {
853
+ bookingAction: ee.ON_BOOKING,
854
+ optionLabel: n("salesforce_on_booking_write_to_record", { record: p }),
855
+ optionEnabled: B,
856
+ writeToObjectData: $,
857
+ optionSwitchOnChange: (a) => {
858
+ i("onBookingWriteToRecord", a);
859
+ },
860
+ updateWriteToObjectData: (a) => i("onBookingWriteToRecordFields", a)
861
+ }
862
+ ) }),
863
+ /* @__PURE__ */ c(t.SubSection, { children: [
864
+ /* @__PURE__ */ e(
865
+ t.SubSectionHeader,
866
+ {
867
+ icon: "user-plus",
868
+ title: n("salesforce_change_record_owner_on_booking"),
869
+ labelFor: "change-record-owner-on-booking",
870
+ children: /* @__PURE__ */ e(
871
+ E,
872
+ {
873
+ size: "sm",
874
+ labelOnLeading: !0,
875
+ checked: G,
876
+ onCheckedChange: (a) => {
877
+ i("onBookingChangeRecordOwner", a);
878
+ }
879
+ }
880
+ )
881
+ }
882
+ ),
883
+ G ? /* @__PURE__ */ e(t.SubSectionContent, { classNames: { container: "p-3" }, children: /* @__PURE__ */ c("div", { children: [
884
+ /* @__PURE__ */ e(
885
+ Z,
886
+ {
887
+ htmlFor: "on-booking-change-record-owner-name",
888
+ className: "text-subtle text-sm font-medium",
889
+ children: n("salesforce_owner_name_to_change")
890
+ }
891
+ ),
892
+ /* @__PURE__ */ e(
893
+ v,
894
+ {
895
+ id: "on-booking-change-record-owner-name",
896
+ size: "sm",
897
+ value: K,
898
+ onChange: (a) => i("onBookingChangeRecordOwnerName", a.target.value)
899
+ }
900
+ )
901
+ ] }) }) : null
902
+ ] }),
903
+ S.schedulingType === me.ROUND_ROBIN ? /* @__PURE__ */ c(F, { children: [
904
+ /* @__PURE__ */ c(t.SubSection, { children: [
905
+ /* @__PURE__ */ e(
906
+ t.SubSectionHeader,
907
+ {
908
+ icon: "users",
909
+ title: n("salesforce_book_directly_with_attendee_owner"),
910
+ labelFor: "book-directly-with-attendee-owner",
911
+ children: /* @__PURE__ */ e(
912
+ E,
913
+ {
914
+ size: "sm",
915
+ id: "book-directly-witha-attendee-owner",
916
+ checked: O,
917
+ onCheckedChange: (a) => {
918
+ i("roundRobinLeadSkip", a), a && i("enabled", a);
919
+ }
920
+ }
921
+ )
922
+ }
923
+ ),
924
+ O ? /* @__PURE__ */ e(t.SubSectionContent, { classNames: { container: "p-3" }, children: /* @__PURE__ */ c("div", { children: [
925
+ /* @__PURE__ */ e(
926
+ Z,
927
+ {
928
+ htmlFor: "round-robin-skip-check-record-on",
929
+ className: "text-subtle text-sm font-medium",
930
+ children: n("salesforce_check_owner_of")
931
+ }
932
+ ),
933
+ /* @__PURE__ */ e(
934
+ h,
935
+ {
936
+ size: "sm",
937
+ className: "w-60",
938
+ options: Y,
939
+ value: ne,
940
+ onChange: (a) => {
941
+ a && (ce(a), i("roundRobinSkipCheckRecordOn", a.value));
942
+ }
943
+ }
944
+ )
945
+ ] }) }) : null
946
+ ] }),
947
+ /* @__PURE__ */ e(F, { children: O ? /* @__PURE__ */ c(F, { children: [
948
+ ne.value === T.CONTACT ? /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
949
+ t.SubSectionHeader,
950
+ {
951
+ icon: "users",
952
+ title: n("salesforce_round_robin_skip_fallback_to_lead_owner"),
953
+ labelFor: "round-robin-skip-fallback-to-lead-owner",
954
+ children: /* @__PURE__ */ e(
955
+ E,
956
+ {
957
+ id: "round-robin-skip-fallback-to-lead-owner",
958
+ size: "sm",
959
+ checked: V,
960
+ onCheckedChange: (a) => {
961
+ i("roundRobinSkipFallbackToLeadOwner", a);
962
+ }
963
+ }
964
+ )
965
+ }
966
+ ) }) : null,
967
+ /* @__PURE__ */ c(t.SubSection, { children: [
968
+ /* @__PURE__ */ e(
969
+ t.SubSectionHeader,
970
+ {
971
+ icon: "users",
972
+ title: n("salesforce_if_free_email_domain_skip_owner_check"),
973
+ labelFor: "if-free-email-domain-skip-owner-check",
974
+ children: /* @__PURE__ */ e(
975
+ E,
976
+ {
977
+ id: "if-free-email-domain-skip-owner-check",
978
+ size: "sm",
979
+ checked: j,
980
+ onCheckedChange: (a) => {
981
+ i("ifFreeEmailDomainSkipOwnerCheck", a);
982
+ }
983
+ }
984
+ )
985
+ }
986
+ ),
987
+ /* @__PURE__ */ e(fe, { severity: "info", title: n("skip_rr_description") })
988
+ ] }),
989
+ /* @__PURE__ */ e(
990
+ pe,
991
+ {
992
+ fieldRules: o,
993
+ updateFieldRules: (a) => i("rrSkipFieldRules", a)
994
+ }
995
+ )
996
+ ] }) : null })
997
+ ] }) : null,
998
+ /* @__PURE__ */ e(t.SubSection, { children: /* @__PURE__ */ e(
999
+ te,
1000
+ {
1001
+ bookingAction: ee.ON_CANCEL,
1002
+ optionLabel: n("salesforce_on_cancel_write_to_event"),
1003
+ optionEnabled: l,
1004
+ writeToObjectData: d,
1005
+ optionSwitchOnChange: (a) => {
1006
+ i("onCancelWriteToEventRecord", a);
1007
+ },
1008
+ updateWriteToObjectData: (a) => i("onCancelWriteToEventRecordFields", a)
1009
+ }
1010
+ ) }),
1011
+ /* @__PURE__ */ c(t.SubSection, { children: [
1012
+ /* @__PURE__ */ e(
1013
+ t.SubSectionHeader,
1014
+ {
1015
+ icon: "calendar",
1016
+ title: "Send no show attendee data to event object",
1017
+ labelFor: "send-no-show-attendee-data",
1018
+ children: /* @__PURE__ */ e(
1019
+ E,
1020
+ {
1021
+ id: "send-no-show-attendee-data",
1022
+ size: "sm",
1023
+ checked: z,
1024
+ onCheckedChange: (a) => {
1025
+ i("sendNoShowAttendeeData", a);
1026
+ }
1027
+ }
1028
+ )
1029
+ }
1030
+ ),
1031
+ z ? /* @__PURE__ */ c(t.SubSectionContent, { classNames: { container: "p-3" }, children: [
1032
+ /* @__PURE__ */ e(
1033
+ Z,
1034
+ {
1035
+ htmlFor: "send-no-show-attendee-data-field-name",
1036
+ className: "text-subtle text-sm font-medium",
1037
+ children: "Field name to check (must be checkbox data type)"
1038
+ }
1039
+ ),
1040
+ /* @__PURE__ */ e(
1041
+ v,
1042
+ {
1043
+ id: "send-no-show-attendee-data-field-name",
1044
+ size: "sm",
1045
+ value: f,
1046
+ onChange: (a) => i("sendNoShowAttendeeDataField", a.target.value)
1047
+ }
1048
+ )
1049
+ ] }) : null
1050
+ ] })
1051
+ ] })
1052
+ }
1053
+ );
1054
+ };
1055
+ export {
1056
+ _e as default
1057
+ };