@calcom/atoms 1.0.63 → 1.0.64

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 (321) hide show
  1. package/dist/{AddressInput-1jIRuLN4.js → AddressInput-DGhGx6Iq.js} +1 -1
  2. package/dist/{AlbyPriceComponent-uSNDHWHO.js → AlbyPriceComponent-HR5zz5cH.js} +1 -1
  3. package/dist/{AppCard-2fkLVte1.js → AppCard-1cD7do0L.js} +28 -28
  4. package/dist/{AppSettingsInterface-yNkBiDR-.js → AppSettingsInterface-E1onzKHn.js} +1 -1
  5. package/dist/{AppSettingsInterface-ctlSOQMe.js → AppSettingsInterface-GF6go4z9.js} +1 -1
  6. package/dist/{AppSettingsInterface-rpA6kCaY.js → AppSettingsInterface-rrDVa5xt.js} +1 -1
  7. package/dist/{Card-hCxgrBrB.js → Card-BMojIAyq.js} +1 -1
  8. package/dist/{DateRangePicker-7O2Ihe60.js → DateRangePicker-deOIxpuL.js} +1 -1
  9. package/dist/{EventTypeAppCardInterface-479Ma1xQ.js → EventTypeAppCardInterface-0aArZG1K.js} +3 -3
  10. package/dist/{EventTypeAppCardInterface-oZO9HTlt.js → EventTypeAppCardInterface-0mT7VU3I.js} +3 -3
  11. package/dist/{EventTypeAppCardInterface-NDcmtQmM.js → EventTypeAppCardInterface-146DohpY.js} +3 -3
  12. package/dist/{EventTypeAppCardInterface-fAA7qcGY.js → EventTypeAppCardInterface-3Fl8fPRl.js} +4 -4
  13. package/dist/{EventTypeAppCardInterface-pF3u65dO.js → EventTypeAppCardInterface-4T6cLqOq.js} +4 -4
  14. package/dist/{EventTypeAppCardInterface-bFKKACFg.js → EventTypeAppCardInterface-AvG1OFim.js} +4 -4
  15. package/dist/EventTypeAppCardInterface-Bj8gsOTW.js +230 -0
  16. package/dist/{EventTypeAppCardInterface-fhuox7oc.js → EventTypeAppCardInterface-FbJ2ObDV.js} +3 -3
  17. package/dist/{EventTypeAppCardInterface-WCpkpfy0.js → EventTypeAppCardInterface-ITgf1LzY.js} +3 -3
  18. package/dist/{EventTypeAppCardInterface-UrRDGdfY.js → EventTypeAppCardInterface-RBgS_Th9.js} +3 -3
  19. package/dist/{EventTypeAppCardInterface-jp9v7Zot.js → EventTypeAppCardInterface-So1OtTQf.js} +3 -3
  20. package/dist/{EventTypeAppCardInterface-E_M7dBzD.js → EventTypeAppCardInterface-UZ15q0Pu.js} +3 -3
  21. package/dist/{EventTypeAppCardInterface-PmkGX2br.js → EventTypeAppCardInterface-VhOxBPjD.js} +4 -4
  22. package/dist/{EventTypeAppCardInterface-JMy60ZUm.js → EventTypeAppCardInterface-WqK46sFR.js} +4 -4
  23. package/dist/{EventTypeAppCardInterface-h88jix69.js → EventTypeAppCardInterface-_LNQn8LK.js} +3 -3
  24. package/dist/{EventTypeAppCardInterface-hX1HR1Ac.js → EventTypeAppCardInterface-dk37Z6ix.js} +4 -4
  25. package/dist/{EventTypeAppCardInterface-1SUMOAQu.js → EventTypeAppCardInterface-eEQSPxVZ.js} +2 -2
  26. package/dist/{EventTypeAppCardInterface-ejbMXw5n.js → EventTypeAppCardInterface-gmveh1Cr.js} +4 -4
  27. package/dist/EventTypeAppCardInterface-ikism7Iz.js +23 -0
  28. package/dist/{EventTypeAppCardInterface-kCzo9O0L.js → EventTypeAppCardInterface-l0rdAoP1.js} +7 -7
  29. package/dist/{EventTypeAppCardInterface-dmFLZ7bW.js → EventTypeAppCardInterface-q_QWiJ8X.js} +4 -4
  30. package/dist/{EventTypeAppCardInterface-5YO9W7_H.js → EventTypeAppCardInterface-rgBNsHRO.js} +3 -3
  31. package/dist/{EventTypeAppCardInterface-WDMuU54k.js → EventTypeAppCardInterface-uvE2d_BM.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-tJ5QEeOS.js → EventTypeAppCardInterface-yMXHzSJF.js} +4 -4
  33. package/dist/{EventTypeAppSettingsInterface-d8rt6haq.js → EventTypeAppSettingsInterface--4AaeXDT.js} +1 -1
  34. package/dist/{EventTypeAppSettingsInterface-rK81ro98.js → EventTypeAppSettingsInterface-6_B9HFLU.js} +16 -16
  35. package/dist/{EventTypeAppSettingsInterface-o4DsyOTz.js → EventTypeAppSettingsInterface-FPPl3pOD.js} +1 -1
  36. package/dist/{EventTypeAppSettingsInterface-U9PwTfMI.js → EventTypeAppSettingsInterface-KUv6Koaz.js} +1 -1
  37. package/dist/{EventTypeAppSettingsInterface-7gDZ_5dh.js → EventTypeAppSettingsInterface-ORy-4gd1.js} +1 -1
  38. package/dist/{EventTypeAppSettingsInterface-g66a39Bo.js → EventTypeAppSettingsInterface-TbXceGVi.js} +1 -1
  39. package/dist/{EventTypeAppSettingsInterface-8XoL_DJe.js → EventTypeAppSettingsInterface-Uu_Cuscw.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-pKwciHmZ.js → EventTypeAppSettingsInterface-W_7y-O19.js} +7 -7
  41. package/dist/{EventTypeAppSettingsInterface-eNHrq2O_.js → EventTypeAppSettingsInterface-ovEc9F54.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-lwVJYnYp.js → EventTypeAppSettingsInterface-qV6_xb3B.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-Hiu3EugC.js → EventTypeAppSettingsInterface-z-tW29Ig.js} +1 -1
  44. package/dist/{InstallAppButton-wc4PoVd5.js → InstallAppButton-7IlkhYiF.js} +2 -2
  45. package/dist/{InstallAppButton-R2KwQo8r.js → InstallAppButton-JWlu8BMT.js} +2 -2
  46. package/dist/{InstallAppButton-7fQkES1k.js → InstallAppButton-OUZwVKkK.js} +1 -1
  47. package/dist/{InstallAppButton-4PsMG2Z1.js → InstallAppButton-r0w9HIRJ.js} +10 -10
  48. package/dist/{PhoneInput-Fm79-ZHh.js → PhoneInput-ljQZu-uX.js} +2 -2
  49. package/dist/StripePaymentForm-koOI8Li7.js +1148 -0
  50. package/dist/cal-atoms.js +17 -16
  51. package/dist/cal-atoms.umd.cjs +285 -258
  52. package/dist/{framer-features-Sq4WNymL.js → framer-features-gU7HpuTf.js} +1 -1
  53. package/dist/{index-bDHRXhtF.js → index-THhC4TET.js} +33880 -33509
  54. package/dist/{index-h4UjHrS6.js → index-WfXnzJP9.js} +4 -4
  55. package/dist/{index-ovXwC7eX.js → index-dEHx88SB.js} +1 -1
  56. package/dist/{index-lBg0FPD4.js → index-qLhRVVGZ.js} +2 -2
  57. package/dist/{index-v0PRMwbx.js → index-wujBOMBA.js} +1 -1
  58. package/dist/packages/app-store/apps.metadata.generated.d.ts +25 -0
  59. package/dist/packages/app-store/apps.metadata.generated.d.ts.map +1 -1
  60. package/dist/packages/app-store/apps.schemas.generated.d.ts +15 -0
  61. package/dist/packages/app-store/apps.schemas.generated.d.ts.map +1 -1
  62. package/dist/packages/app-store/apps.server.generated.d.ts +1 -0
  63. package/dist/packages/app-store/apps.server.generated.d.ts.map +1 -1
  64. package/dist/packages/app-store/bookerApps.metadata.generated.d.ts +25 -0
  65. package/dist/packages/app-store/bookerApps.metadata.generated.d.ts.map +1 -1
  66. package/dist/packages/app-store/dialpad/api/add.d.ts +4 -0
  67. package/dist/packages/app-store/dialpad/api/add.d.ts.map +1 -0
  68. package/dist/packages/app-store/dialpad/api/index.d.ts +2 -0
  69. package/dist/packages/app-store/dialpad/api/index.d.ts.map +1 -0
  70. package/dist/packages/app-store/dialpad/config.json.d.ts +28 -0
  71. package/dist/packages/app-store/dialpad/index.d.ts +2 -0
  72. package/dist/packages/app-store/dialpad/index.d.ts.map +1 -0
  73. package/dist/packages/app-store/googlecalendar/api/callback.d.ts.map +1 -1
  74. package/dist/packages/app-store/googlecalendar/tests/testUtils.d.ts +1 -0
  75. package/dist/packages/app-store/googlecalendar/tests/testUtils.d.ts.map +1 -1
  76. package/dist/packages/app-store/huddle01video/lib/VideoApiAdapter.d.ts.map +1 -1
  77. package/dist/packages/app-store/huddle01video/utils/storage.d.ts +0 -3
  78. package/dist/packages/app-store/huddle01video/utils/storage.d.ts.map +1 -1
  79. package/dist/packages/app-store/routing-forms/jsonLogicToPrisma.d.ts +1 -33
  80. package/dist/packages/app-store/routing-forms/jsonLogicToPrisma.d.ts.map +1 -1
  81. package/dist/packages/app-store/routing-forms/pages/reporting/[...appPages].d.ts.map +1 -1
  82. package/dist/packages/app-store/routing-forms/playwright/tests/basic.e2e.d.ts.map +1 -1
  83. package/dist/packages/app-store/routing-forms/trpc/_router.d.ts +1 -1
  84. package/dist/packages/app-store/routing-forms/trpc/report.handler.d.ts +4 -2
  85. package/dist/packages/app-store/routing-forms/trpc/report.handler.d.ts.map +1 -1
  86. package/dist/packages/app-store/routing-forms/zod.d.ts +10 -0
  87. package/dist/packages/app-store/routing-forms/zod.d.ts.map +1 -1
  88. package/dist/packages/app-store/salesforce/components/EventTypeAppCardInterface.d.ts.map +1 -1
  89. package/dist/packages/app-store/salesforce/lib/CrmService.d.ts +4 -0
  90. package/dist/packages/app-store/salesforce/lib/CrmService.d.ts.map +1 -1
  91. package/dist/packages/app-store/salesforce/zod.d.ts +15 -0
  92. package/dist/packages/app-store/salesforce/zod.d.ts.map +1 -1
  93. package/dist/packages/features/bookings/Booker/utils/event.d.ts +10 -0
  94. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  95. package/dist/packages/features/bookings/lib/create-booking.d.ts +2 -0
  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 +2 -0
  98. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts.map +1 -1
  99. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +1 -0
  100. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
  101. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  102. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +7 -0
  103. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  104. package/dist/packages/features/bookings/lib/handleNewBooking/getOriginalRescheduledBooking.d.ts +1 -0
  105. package/dist/packages/features/bookings/lib/handleNewBooking/getOriginalRescheduledBooking.d.ts.map +1 -1
  106. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +2 -0
  107. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  108. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +1 -0
  109. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  110. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +1 -0
  111. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts.map +1 -1
  112. package/dist/packages/features/cityTimezones/cityTimezonesHandler.d.ts.map +1 -0
  113. package/dist/packages/features/ee/payments/components/Payment.d.ts +22 -2
  114. package/dist/packages/features/ee/payments/components/Payment.d.ts.map +1 -1
  115. package/dist/packages/features/ee/payments/pages/payment.d.ts +5 -0
  116. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  117. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +76 -0
  118. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -0
  119. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +5 -1
  120. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  121. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  122. package/dist/packages/features/ee/round-robin/utils/bookingSelect.d.ts +2 -0
  123. package/dist/packages/features/ee/round-robin/utils/bookingSelect.d.ts.map +1 -1
  124. package/dist/packages/features/ee/teams/components/MemberList.d.ts.map +1 -1
  125. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  126. package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
  127. package/dist/packages/features/ee/workflows/lib/constants.d.ts.map +1 -1
  128. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  129. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
  130. package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts +3 -0
  131. package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
  132. package/dist/packages/features/eventtypes/components/DuplicateDialog.d.ts.map +1 -1
  133. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +10 -0
  134. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  135. package/dist/packages/features/form/components/Select.d.ts.map +1 -1
  136. package/dist/packages/features/insights/components/AverageEventDurationChart.d.ts.map +1 -1
  137. package/dist/packages/features/insights/components/BookingStatusLineChart.d.ts.map +1 -1
  138. package/dist/packages/features/insights/filters/UsersListInTeam.d.ts.map +1 -1
  139. package/dist/packages/features/insights/server/events.d.ts +13 -1
  140. package/dist/packages/features/insights/server/events.d.ts.map +1 -1
  141. package/dist/packages/features/insights/server/trpc-router.d.ts.map +1 -1
  142. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts.map +1 -1
  143. package/dist/packages/features/tasker/internal-tasker.d.ts.map +1 -1
  144. package/dist/packages/features/tasker/repository.d.ts +1 -1
  145. package/dist/packages/features/tasker/repository.d.ts.map +1 -1
  146. package/dist/packages/lib/bookings/getAllUserBookings.d.ts +5 -0
  147. package/dist/packages/lib/bookings/getAllUserBookings.d.ts.map +1 -1
  148. package/dist/packages/lib/defaultEvents.d.ts +15 -0
  149. package/dist/packages/lib/defaultEvents.d.ts.map +1 -1
  150. package/dist/packages/lib/event-types/getEventTypeById.d.ts +5 -0
  151. package/dist/packages/lib/event-types/getEventTypeById.d.ts.map +1 -1
  152. package/dist/packages/lib/event-types/getEventTypesByViewer.d.ts +5 -0
  153. package/dist/packages/lib/event-types/getEventTypesByViewer.d.ts.map +1 -1
  154. package/dist/packages/lib/event-types/getEventTypesPublic.d.ts +5 -0
  155. package/dist/packages/lib/event-types/getEventTypesPublic.d.ts.map +1 -1
  156. package/dist/packages/lib/event-types/transformers/api-to-internal/locations.d.ts +3 -80
  157. package/dist/packages/lib/event-types/transformers/api-to-internal/locations.d.ts.map +1 -1
  158. package/dist/packages/lib/event-types/transformers/index.d.ts +1 -0
  159. package/dist/packages/lib/event-types/transformers/index.d.ts.map +1 -1
  160. package/dist/packages/lib/event-types/transformers/internal/locations.d.ts +271 -0
  161. package/dist/packages/lib/event-types/transformers/internal/locations.d.ts.map +1 -0
  162. package/dist/packages/lib/event-types/transformers/internal-to-api/booking-fields.d.ts +2062 -2
  163. package/dist/packages/lib/event-types/transformers/internal-to-api/booking-fields.d.ts.map +1 -1
  164. package/dist/packages/lib/event-types/transformers/internal-to-api/locations.d.ts +3 -3
  165. package/dist/packages/lib/event-types/transformers/internal-to-api/locations.d.ts.map +1 -1
  166. package/dist/packages/lib/hooks/useAppsData.d.ts +5 -0
  167. package/dist/packages/lib/hooks/useAppsData.d.ts.map +1 -1
  168. package/dist/packages/lib/hooks/useCreateEventType.d.ts +15 -0
  169. package/dist/packages/lib/hooks/useCreateEventType.d.ts.map +1 -1
  170. package/dist/packages/lib/hooks/useInViewObserver.d.ts +5 -0
  171. package/dist/packages/lib/hooks/useInViewObserver.d.ts.map +1 -0
  172. package/dist/packages/lib/payment/getBooking.d.ts +5 -0
  173. package/dist/packages/lib/payment/getBooking.d.ts.map +1 -1
  174. package/dist/packages/lib/payment/handlePayment.d.ts.map +1 -1
  175. package/dist/packages/lib/server/queries/teams/index.d.ts +5 -0
  176. package/dist/packages/lib/server/queries/teams/index.d.ts.map +1 -1
  177. package/dist/packages/lib/server/repository/booking.d.ts +2 -0
  178. package/dist/packages/lib/server/repository/booking.d.ts.map +1 -1
  179. package/dist/packages/lib/server/repository/event.d.ts +10 -0
  180. package/dist/packages/lib/server/repository/event.d.ts.map +1 -1
  181. package/dist/packages/lib/test/builder.d.ts.map +1 -1
  182. package/dist/packages/lib/timezone.d.ts +11 -5
  183. package/dist/packages/lib/timezone.d.ts.map +1 -1
  184. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  185. package/dist/packages/platform/atoms/connect/stripe/StripeConnect.d.ts +1 -0
  186. package/dist/packages/platform/atoms/connect/stripe/StripeConnect.d.ts.map +1 -1
  187. package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts +2 -2
  188. package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts.map +1 -1
  189. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeAppIntegration.d.ts +11 -2
  190. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeAppIntegration.d.ts.map +1 -1
  191. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +5 -0
  192. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  193. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +377 -0
  194. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -0
  195. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +5 -0
  196. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  197. package/dist/packages/platform/atoms/event-types/payments/PaymentForm.d.ts +9 -0
  198. package/dist/packages/platform/atoms/event-types/payments/PaymentForm.d.ts.map +1 -0
  199. package/dist/packages/platform/atoms/event-types/payments/StripePaymentForm.d.ts +9 -0
  200. package/dist/packages/platform/atoms/event-types/payments/StripePaymentForm.d.ts.map +1 -0
  201. package/dist/packages/platform/atoms/event-types/wrappers/EventPaymentsTabPlatformWrapper.d.ts.map +1 -1
  202. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +2 -0
  203. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts.map +1 -1
  204. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +2 -0
  205. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
  206. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +2 -0
  207. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts.map +1 -1
  208. package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts +7 -0
  209. package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts.map +1 -1
  210. package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts +2 -2
  211. package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts.map +1 -1
  212. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +10 -0
  213. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
  214. package/dist/packages/platform/atoms/index.d.ts +1 -0
  215. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  216. package/dist/packages/platform/libraries/index.d.ts +8 -4
  217. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  218. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +1 -8
  219. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  220. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +2 -2
  221. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  222. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.d.ts +11 -11
  223. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.d.ts.map +1 -1
  224. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +2 -2
  225. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  226. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/booking-fields.output.d.ts +13 -2
  227. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/booking-fields.output.d.ts.map +1 -1
  228. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +3 -2
  229. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
  230. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/index.d.ts +1 -0
  231. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/index.d.ts.map +1 -1
  232. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/locations.output.d.ts +33 -0
  233. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/locations.output.d.ts.map +1 -0
  234. package/dist/packages/platform/types/event-types/event-types_2024_06_14/transformed/event-type.tranformed.d.ts +2 -2
  235. package/dist/packages/platform/types/event-types/event-types_2024_06_14/transformed/event-type.tranformed.d.ts.map +1 -1
  236. package/dist/packages/prisma/selects/payment.d.ts +63 -0
  237. package/dist/packages/prisma/selects/payment.d.ts.map +1 -0
  238. package/dist/packages/prisma/zod/booking.d.ts +3 -0
  239. package/dist/packages/prisma/zod/booking.d.ts.map +1 -1
  240. package/dist/packages/prisma/zod/custom/eventtype.d.ts +55 -0
  241. package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
  242. package/dist/packages/prisma/zod/eventtype.d.ts +45 -0
  243. package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
  244. package/dist/packages/prisma/zod-utils.d.ts +60 -0
  245. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  246. package/dist/packages/prisma-client/index.d.ts +78 -0
  247. package/dist/packages/trpc/react/shared.d.ts +1 -1
  248. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  249. package/dist/packages/trpc/server/createNextApiHandler.d.ts.map +1 -1
  250. package/dist/packages/trpc/server/routers/_app.d.ts +291 -15
  251. package/dist/packages/trpc/server/routers/_app.d.ts.map +1 -1
  252. package/dist/packages/trpc/server/routers/publicViewer/_router.d.ts +10 -0
  253. package/dist/packages/trpc/server/routers/publicViewer/_router.d.ts.map +1 -1
  254. package/dist/packages/trpc/server/routers/publicViewer/event.handler.d.ts +10 -0
  255. package/dist/packages/trpc/server/routers/publicViewer/event.handler.d.ts.map +1 -1
  256. package/dist/packages/trpc/server/routers/publicViewer/procedures/event.d.ts +10 -0
  257. package/dist/packages/trpc/server/routers/publicViewer/procedures/event.d.ts.map +1 -1
  258. package/dist/packages/trpc/server/routers/publicViewer/timezones/_router.d.ts.map +1 -1
  259. package/dist/packages/trpc/server/routers/viewer/_router.d.ts +291 -15
  260. package/dist/packages/trpc/server/routers/viewer/_router.d.ts.map +1 -1
  261. package/dist/packages/trpc/server/routers/viewer/attributes/assignUserToAttribute.handler.d.ts.map +1 -1
  262. package/dist/packages/trpc/server/routers/viewer/bookings/_router.d.ts +5 -0
  263. package/dist/packages/trpc/server/routers/viewer/bookings/_router.d.ts.map +1 -1
  264. package/dist/packages/trpc/server/routers/viewer/bookings/get.handler.d.ts +10 -0
  265. package/dist/packages/trpc/server/routers/viewer/bookings/get.handler.d.ts.map +1 -1
  266. package/dist/packages/trpc/server/routers/viewer/bookings/util.d.ts +1 -0
  267. package/dist/packages/trpc/server/routers/viewer/bookings/util.d.ts.map +1 -1
  268. package/dist/packages/trpc/server/routers/viewer/eventTypes/_router.d.ts +26 -0
  269. package/dist/packages/trpc/server/routers/viewer/eventTypes/_router.d.ts.map +1 -1
  270. package/dist/packages/trpc/server/routers/viewer/eventTypes/create.schema.d.ts +55 -0
  271. package/dist/packages/trpc/server/routers/viewer/eventTypes/create.schema.d.ts.map +1 -1
  272. package/dist/packages/trpc/server/routers/viewer/eventTypes/get.handler.d.ts +5 -0
  273. package/dist/packages/trpc/server/routers/viewer/eventTypes/get.handler.d.ts.map +1 -1
  274. package/dist/packages/trpc/server/routers/viewer/eventTypes/getByViewer.handler.d.ts +5 -0
  275. package/dist/packages/trpc/server/routers/viewer/eventTypes/getByViewer.handler.d.ts.map +1 -1
  276. package/dist/packages/trpc/server/routers/viewer/eventTypes/getByViewer.schema.d.ts +3 -0
  277. package/dist/packages/trpc/server/routers/viewer/eventTypes/getByViewer.schema.d.ts.map +1 -1
  278. package/dist/packages/trpc/server/routers/viewer/eventTypes/getEventTypesFromGroup.handler.d.ts +5 -0
  279. package/dist/packages/trpc/server/routers/viewer/eventTypes/getEventTypesFromGroup.handler.d.ts.map +1 -1
  280. package/dist/packages/trpc/server/routers/viewer/eventTypes/procedures/get.d.ts +5 -0
  281. package/dist/packages/trpc/server/routers/viewer/eventTypes/procedures/get.d.ts.map +1 -1
  282. package/dist/packages/trpc/server/routers/viewer/eventTypes/types.d.ts +45 -0
  283. package/dist/packages/trpc/server/routers/viewer/eventTypes/types.d.ts.map +1 -1
  284. package/dist/packages/trpc/server/routers/viewer/eventTypes/update.schema.d.ts +45 -0
  285. package/dist/packages/trpc/server/routers/viewer/eventTypes/update.schema.d.ts.map +1 -1
  286. package/dist/packages/trpc/server/routers/viewer/eventTypes/util.d.ts +5 -0
  287. package/dist/packages/trpc/server/routers/viewer/eventTypes/util.d.ts.map +1 -1
  288. package/dist/packages/trpc/server/routers/viewer/highPerf/_router.d.ts +38 -0
  289. package/dist/packages/trpc/server/routers/viewer/highPerf/_router.d.ts.map +1 -0
  290. package/dist/packages/trpc/server/routers/viewer/highPerf/getTeamSchedule.handler.d.ts +16 -0
  291. package/dist/packages/trpc/server/routers/viewer/highPerf/getTeamSchedule.handler.d.ts.map +1 -0
  292. package/dist/packages/trpc/server/routers/viewer/highPerf/getTeamSchedule.schema.d.ts +116 -0
  293. package/dist/packages/trpc/server/routers/viewer/highPerf/getTeamSchedule.schema.d.ts.map +1 -0
  294. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +18 -1
  295. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  296. package/dist/packages/trpc/server/routers/viewer/teams/_router.d.ts +14 -4
  297. package/dist/packages/trpc/server/routers/viewer/teams/_router.d.ts.map +1 -1
  298. package/dist/packages/trpc/server/routers/viewer/teams/roundRobin/getRoundRobinHostsToReasign.handler.d.ts +9 -3
  299. package/dist/packages/trpc/server/routers/viewer/teams/roundRobin/getRoundRobinHostsToReasign.handler.d.ts.map +1 -1
  300. package/dist/packages/trpc/server/routers/viewer/teams/roundRobin/getRoundRobinHostsToReasign.schema.d.ts +14 -5
  301. package/dist/packages/trpc/server/routers/viewer/teams/roundRobin/getRoundRobinHostsToReasign.schema.d.ts.map +1 -1
  302. package/dist/packages/trpc/server/routers/viewer/teams/roundRobin/roundRobinManualReassign.handler.d.ts.map +1 -1
  303. package/dist/packages/trpc/server/routers/viewer/teams/roundRobin/roundRobinManualReassign.schema.d.ts +3 -0
  304. package/dist/packages/trpc/server/routers/viewer/teams/roundRobin/roundRobinManualReassign.schema.d.ts.map +1 -1
  305. package/dist/packages/trpc/server/routers/viewer/workflows/_router.d.ts +5 -0
  306. package/dist/packages/trpc/server/routers/viewer/workflows/_router.d.ts.map +1 -1
  307. package/dist/packages/trpc/server/routers/viewer/workflows/getAllActiveWorkflows.schema.d.ts +55 -0
  308. package/dist/packages/trpc/server/routers/viewer/workflows/getAllActiveWorkflows.schema.d.ts.map +1 -1
  309. package/dist/{useAddAppMutation-OQcEHgs_.js → useAddAppMutation-AVqslsQL.js} +1 -1
  310. package/dist/{useIsAppEnabled-cdhLbHPx.js → useIsAppEnabled-I_8ayZmb.js} +1 -1
  311. package/globals.min.css +1 -1
  312. package/package.json +1 -1
  313. package/dist/EventTypeAppCardInterface-Sti7xJd0.js +0 -115
  314. package/dist/EventTypeAppCardInterface-vk9Oz7tg.js +0 -23
  315. package/dist/packages/features/additionalTimezones/additionalTimezones.d.ts +0 -8
  316. package/dist/packages/features/additionalTimezones/additionalTimezones.d.ts.map +0 -1
  317. package/dist/packages/features/additionalTimezones/additionalTimezones.json.d.ts +0 -67
  318. package/dist/packages/features/users/components/UserTable/useFetchMoreOnBottomReached.d.ts +0 -2
  319. package/dist/packages/features/users/components/UserTable/useFetchMoreOnBottomReached.d.ts.map +0 -1
  320. package/dist/packages/lib/cityTimezonesHandler.d.ts.map +0 -1
  321. /package/dist/packages/{lib → features/cityTimezones}/cityTimezonesHandler.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { aJ as s, aH as m, m as n, aX as c } from "./index-bDHRXhtF.js";
1
+ import { aJ as s, aH as m, m as n, aX as c } from "./index-THhC4TET.js";
2
2
  function p({ value: e, onChange: t, ...a }) {
3
3
  return /* @__PURE__ */ s.jsxs("div", { className: "relative flex items-center", children: [
4
4
  /* @__PURE__ */ s.jsx(
@@ -1,4 +1,4 @@
1
- import { b8 as ee, b9 as F, ba as re, aJ as D, am as ne, a$ as te } from "./index-bDHRXhtF.js";
1
+ import { b8 as ee, b9 as F, ba as re, aJ as D, ac as ne, a$ as te } from "./index-THhC4TET.js";
2
2
  import J from "react";
3
3
  const oe = {}, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
@@ -1,7 +1,7 @@
1
- import { aT as x, aL as C, b2 as B, aO as g, aJ as s, b3 as j, b4 as R, aK as k, aX as u, e as v, aA as b, b5 as O, b6 as S, aM as E, b7 as L, aY as m, B as U, A as $, Z as q, aH as D } from "./index-bDHRXhtF.js";
2
- import { u as N } from "./useAddAppMutation-OQcEHgs_.js";
3
- import { useRef as F, useEffect as M } from "react";
4
- function V(e, l) {
1
+ import { aT as x, aL as C, b2 as B, aO as j, aJ as s, b3 as b, b4 as R, aK as k, aX as u, e as N, aq as v, b5 as O, b6 as S, aM as E, b7 as L, aY as m, B as q, A as U, K as $, aH as D } from "./index-THhC4TET.js";
2
+ import { u as w } from "./useAddAppMutation-AVqslsQL.js";
3
+ import { useRef as F, useEffect as K } from "react";
4
+ function M(e, l) {
5
5
  let n = l[e];
6
6
  if (n)
7
7
  return e;
@@ -14,8 +14,8 @@ function V(e, l) {
14
14
  const i = e.replace(/_/g, "");
15
15
  return n = l[i], n ? i : e;
16
16
  }
17
- const W = (e) => {
18
- const l = N(null, e.options), n = V(e.type, j), t = j[n];
17
+ const V = (e) => {
18
+ const l = w(null, e.options), n = M(e.type, b), t = b[n];
19
19
  return t ? /* @__PURE__ */ s.jsx(
20
20
  t,
21
21
  {
@@ -31,16 +31,16 @@ const W = (e) => {
31
31
  },
32
32
  loading: l.isPending
33
33
  }) });
34
- }, H = (e) => {
34
+ }, W = (e) => {
35
35
  const { isPending: l, data: n } = x.viewer.me.useQuery(), t = C.useRouter(), a = F(null), { isPending: i, hasTeamPlan: d } = B();
36
- return M(() => {
36
+ return K(() => {
37
37
  const c = a.current;
38
38
  c && c.addEventListener(
39
39
  "click",
40
40
  (r) => {
41
41
  if (!n) {
42
42
  t.push(
43
- `${g}/auth/login?callbackUrl=${g + location.pathname + location.search}`
43
+ `${j}/auth/login?callbackUrl=${j + location.pathname + location.search}`
44
44
  ), r.stopPropagation();
45
45
  return;
46
46
  }
@@ -51,9 +51,9 @@ const W = (e) => {
51
51
  },
52
52
  !0
53
53
  );
54
- }, [l, n, t, d, e.teamsPlanRequired]), l || i ? null : /* @__PURE__ */ s.jsx("div", { ref: a, className: e.wrapperClassName, children: /* @__PURE__ */ s.jsx(W, { ...e }) });
54
+ }, [l, n, t, d, e.teamsPlanRequired]), l || i ? null : /* @__PURE__ */ s.jsx("div", { ref: a, className: e.wrapperClassName, children: /* @__PURE__ */ s.jsx(V, { ...e }) });
55
55
  };
56
- function K(e) {
56
+ function H(e) {
57
57
  const { status: l } = R.useSession();
58
58
  return x.viewer.appById.useQuery(
59
59
  { appId: e },
@@ -68,20 +68,20 @@ function Q({
68
68
  returnTo: n,
69
69
  teamId: t
70
70
  }) {
71
- const { t: a } = k(), { data: i } = K(e), d = x.useUtils(), c = N(null, {
71
+ const { t: a } = k(), { data: i } = H(e), d = x.useUtils(), c = w(null, {
72
72
  returnTo: n,
73
73
  onSuccess: (r) => {
74
74
  d.viewer.appById.invalidate({ appId: e }), d.viewer.integrations.invalidate({
75
75
  extendsFeature: "EventType",
76
76
  ...t && { teamId: t }
77
- }), !(r != null && r.setupPending) && b(a("app_successfully_installed"), "success");
77
+ }), !(r != null && r.setupPending) && v(a("app_successfully_installed"), "success");
78
78
  },
79
79
  onError: (r) => {
80
- r instanceof Error && b(r.message || a("app_could_not_be_installed"), "error");
80
+ r instanceof Error && v(r.message || a("app_could_not_be_installed"), "error");
81
81
  }
82
82
  });
83
83
  return i ? /* @__PURE__ */ s.jsx(
84
- H,
84
+ W,
85
85
  {
86
86
  type: i.type,
87
87
  teamsPlanRequired: i.teamsPlanRequired,
@@ -97,7 +97,7 @@ function Q({
97
97
  });
98
98
  }
99
99
  }), /* @__PURE__ */ s.jsx(
100
- v,
100
+ N,
101
101
  {
102
102
  loading: c.isPending,
103
103
  color: "secondary",
@@ -121,9 +121,9 @@ function X({
121
121
  disableSwitch: c,
122
122
  switchTooltip: r,
123
123
  hideSettingsIcon: o = !1,
124
- hideAppCardOptions: w = !1
124
+ hideAppCardOptions: I = !1
125
125
  }) {
126
- const { t: f } = O(), [I] = S(), { setAppData: A, LockedIcon: P, disabled: y } = E(), _ = L();
126
+ const { t: f } = O(), [A] = S(), { setAppData: P, LockedIcon: y, disabled: _ } = E(), h = L();
127
127
  return /* @__PURE__ */ s.jsxs(
128
128
  "div",
129
129
  {
@@ -161,9 +161,9 @@ function X({
161
161
  /* @__PURE__ */ s.jsx("p", { title: e == null ? void 0 : e.description, className: "text-default line-clamp-1 pt-1 text-sm font-normal", children: l || (e == null ? void 0 : e.description) })
162
162
  ] }),
163
163
  /* @__PURE__ */ s.jsxs("div", { className: "ml-auto flex items-center space-x-2", children: [
164
- e.credentialOwner && /* @__PURE__ */ s.jsx("div", { className: "ml-auto", children: /* @__PURE__ */ s.jsx(U, { variant: "gray", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center", children: [
164
+ e.credentialOwner && !h && /* @__PURE__ */ s.jsx("div", { className: "ml-auto", children: /* @__PURE__ */ s.jsx(q, { variant: "gray", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center", children: [
165
165
  /* @__PURE__ */ s.jsx(
166
- $,
166
+ U,
167
167
  {
168
168
  className: "mr-2",
169
169
  alt: e.credentialOwner.name || "Credential Owner Name",
@@ -174,14 +174,14 @@ function X({
174
174
  e.credentialOwner.name
175
175
  ] }) }) }),
176
176
  e != null && e.isInstalled || e.credentialOwner ? /* @__PURE__ */ s.jsx("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ s.jsx(
177
- q,
177
+ $,
178
178
  {
179
- disabled: !e.enabled || y || c,
180
- onCheckedChange: (h) => {
181
- n && n(h), A("enabled", h);
179
+ disabled: !e.enabled || _ || c,
180
+ onCheckedChange: (g) => {
181
+ n && n(g), P("enabled", g);
182
182
  },
183
183
  checked: t,
184
- LockedIcon: P,
184
+ LockedIcon: y,
185
185
  "data-testid": `${e.slug}-app-switch`,
186
186
  tooltip: r
187
187
  }
@@ -196,14 +196,14 @@ function X({
196
196
  )
197
197
  ] })
198
198
  ] }) }),
199
- w ? null : /* @__PURE__ */ s.jsxs("div", { ref: I, children: [
199
+ I ? null : /* @__PURE__ */ s.jsxs("div", { ref: A, children: [
200
200
  (e == null ? void 0 : e.isInstalled) && t && /* @__PURE__ */ s.jsx("hr", { className: "border-subtle" }),
201
201
  e != null && e.isInstalled && t ? e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ s.jsxs("div", { className: "relative p-4 pt-5 text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
202
- !o && !_ && /* @__PURE__ */ s.jsx(m, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ s.jsx(D, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
202
+ !o && !h && /* @__PURE__ */ s.jsx(m, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ s.jsx(D, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
203
203
  a
204
204
  ] }) : /* @__PURE__ */ s.jsxs("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
205
205
  /* @__PURE__ */ s.jsx("p", { children: f("this_app_is_not_setup_already") }),
206
- /* @__PURE__ */ s.jsx(m, { href: `/apps/${e.slug}/setup`, children: /* @__PURE__ */ s.jsx(v, { StartIcon: "settings", children: f("setup") }) })
206
+ /* @__PURE__ */ s.jsx(m, { href: `/apps/${e.slug}/setup`, children: /* @__PURE__ */ s.jsx(N, { StartIcon: "settings", children: f("setup") }) })
207
207
  ] }) : null
208
208
  ] })
209
209
  ]
@@ -1,4 +1,4 @@
1
- import { aJ as e, e as t, aK as l } from "./index-bDHRXhtF.js";
1
+ import { aJ as e, e as t, aK as l } from "./index-THhC4TET.js";
2
2
  function r({ template: s }) {
3
3
  return /* @__PURE__ */ e.jsxs("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
4
4
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-start", children: [
@@ -1,4 +1,4 @@
1
- import { aK as p, aJ as t, s as o, e as u } from "./index-bDHRXhtF.js";
1
+ import { aK as p, aJ as t, s as o, e as u } from "./index-THhC4TET.js";
2
2
  import { useState as r } from "react";
3
3
  function l() {
4
4
  const { t: e } = p(), [s, a] = r("");
@@ -1,4 +1,4 @@
1
- import { aK as r, aJ as e, s as o, e as i } from "./index-bDHRXhtF.js";
1
+ import { aK as r, aJ as e, s as o, e as i } from "./index-THhC4TET.js";
2
2
  import { useState as l } from "react";
3
3
  function m() {
4
4
  const { t: a } = r(), s = "metric", [t, n] = l("");
@@ -1,4 +1,4 @@
1
- import { aY as u, aJ as s, aX as t, e as C, aZ as N } from "./index-bDHRXhtF.js";
1
+ import { aY as u, aJ as s, aX as t, e as C, aZ as N } from "./index-THhC4TET.js";
2
2
  const i = N("", {
3
3
  // Variants won't have any style by default. Style will only be applied if the variants are combined.
4
4
  // So, style is defined in compoundVariants.
@@ -1,4 +1,4 @@
1
- import { aJ as l, aX as J, h as Se, bp as We, aH as Ye, bq as wt, br as pt, e as xt, bs as Dt } from "./index-bDHRXhtF.js";
1
+ import { aJ as l, aX as J, h as Se, bp as We, aH as Ye, bq as wt, br as pt, e as xt, bs as Dt } from "./index-THhC4TET.js";
2
2
  import { createContext as H, forwardRef as Mt, useContext as A, useState as U, useEffect as ae, useLayoutEffect as _t, useRef as kt } from "react";
3
3
  function D(e) {
4
4
  const t = Object.prototype.toString.call(e);
@@ -1,6 +1,6 @@
1
- import { aM as m, aJ as a, s as r } from "./index-bDHRXhtF.js";
2
- import { A as h } from "./AppCard-2fkLVte1.js";
3
- import { u as x } from "./useIsAppEnabled-cdhLbHPx.js";
1
+ import { aM as m, aJ as a, s as r } from "./index-THhC4TET.js";
2
+ import { A as h } from "./AppCard-1cD7do0L.js";
3
+ import { u as x } from "./useIsAppEnabled-I_8ayZmb.js";
4
4
  const T = function({ app: t, eventType: i }) {
5
5
  var d;
6
6
  const { getAppData: s, setAppData: o, disabled: n } = m(), l = s("MATOMO_URL"), p = s("SITE_ID"), { enabled: c, updateEnabled: u } = x(t);
@@ -1,7 +1,7 @@
1
- import { aL as p, aM as P, aN as g, aK as x, aJ as e, aO as f } from "./index-bDHRXhtF.js";
1
+ import { aL as p, aM as P, aN as g, aK as x, aJ as e, aO as f } from "./index-THhC4TET.js";
2
2
  import { useMemo as S, useState as b } from "react";
3
- import { A as v } from "./AppCard-2fkLVte1.js";
4
- import C from "./EventTypeAppSettingsInterface-rK81ro98.js";
3
+ import { A as v } from "./AppCard-1cD7do0L.js";
4
+ import C from "./EventTypeAppSettingsInterface-6_B9HFLU.js";
5
5
  const k = function({
6
6
  app: a,
7
7
  eventType: i,
@@ -1,6 +1,6 @@
1
- import { aL as o, aJ as d, aO as i } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
1
+ import { aL as o, aJ as d, aO as i } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
4
  const E = function({ app: a, eventType: e }) {
5
5
  var t;
6
6
  const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(a);
@@ -1,7 +1,7 @@
1
- import { aM as c, aJ as a } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
4
- import l from "./EventTypeAppSettingsInterface-U9PwTfMI.js";
1
+ import { aM as c, aJ as a } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
+ import l from "./EventTypeAppSettingsInterface-FPPl3pOD.js";
5
5
  const E = function({ app: t, eventType: e }) {
6
6
  var s;
7
7
  const { getAppData: p, setAppData: n, disabled: r } = c(), { enabled: i, updateEnabled: o } = u(t);
@@ -1,7 +1,7 @@
1
- import { aM as c, aJ as a } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
4
- import l from "./EventTypeAppSettingsInterface-o4DsyOTz.js";
1
+ import { aM as c, aJ as a } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
+ import l from "./EventTypeAppSettingsInterface-z-tW29Ig.js";
5
5
  const E = function({ app: t, eventType: e }) {
6
6
  var s;
7
7
  const { getAppData: p, setAppData: n, disabled: r } = c(), { enabled: i, updateEnabled: o } = u(t);
@@ -1,7 +1,7 @@
1
- import { aM as c, aJ as a } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
4
- import l from "./EventTypeAppSettingsInterface-lwVJYnYp.js";
1
+ import { aM as c, aJ as a } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
+ import l from "./EventTypeAppSettingsInterface-KUv6Koaz.js";
5
5
  const E = function({ app: t, eventType: e }) {
6
6
  var s;
7
7
  const { getAppData: p, setAppData: n, disabled: r } = c(), { enabled: i, updateEnabled: o } = u(t);
@@ -0,0 +1,230 @@
1
+ import { aL as y, aM as U, aQ as o, aK as D, aJ as e, aO as M, S as x, K as s, n as r, e as k, aq as P, aR as K, V as $ } from "./index-THhC4TET.js";
2
+ import { useState as m } from "react";
3
+ import { A as q } from "./AppCard-1cD7do0L.js";
4
+ import { u as z } from "./useIsAppEnabled-I_8ayZmb.js";
5
+ const Y = function({ app: C, eventType: g }) {
6
+ var b;
7
+ const _ = y.usePathname(), { getAppData: c, setAppData: t, disabled: Q } = U(), { enabled: f, updateEnabled: N } = z(C), p = c("roundRobinLeadSkip"), w = c("roundRobinSkipCheckRecordOn") ?? o.CONTACT, E = c("skipContactCreation"), A = c("createLeadIfAccountNull"), T = c("createNewContactUnderAccount"), L = c("createEventOn") ?? o.CONTACT, O = c("onBookingWriteToEventObject") ?? !1, i = c("onBookingWriteToEventObjectMap") ?? {}, R = c("createEventOnLeadCheckForContact") ?? !1, j = c("onBookingChangeRecordOwner") ?? !1, S = c("onBookingChangeRecordOwnerName") ?? [], { t: a } = D(), u = [
8
+ { label: a("contact"), value: o.CONTACT },
9
+ { label: a("salesforce_lead"), value: o.LEAD },
10
+ { label: a("salesforce_contact_under_account"), value: o.ACCOUNT }
11
+ ], [d, B] = m(
12
+ u.find((n) => n.value === L) ?? u[0]
13
+ ), h = [
14
+ { label: a("contact"), value: o.CONTACT },
15
+ { label: a("salesforce_lead"), value: o.LEAD },
16
+ { label: a("account"), value: o.ACCOUNT }
17
+ ], [W, F] = m(
18
+ h.find((n) => n.value === w) ?? h[0]
19
+ ), [l, v] = m({
20
+ field: "",
21
+ value: ""
22
+ });
23
+ return /* @__PURE__ */ e.jsx(
24
+ q,
25
+ {
26
+ returnTo: `${M}${_}?tabName=apps`,
27
+ app: C,
28
+ teamId: ((b = g.team) == null ? void 0 : b.id) || void 0,
29
+ switchOnClick: (n) => {
30
+ N(n);
31
+ },
32
+ switchChecked: f,
33
+ hideSettingsIcon: !0,
34
+ children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
35
+ /* @__PURE__ */ e.jsxs("div", { className: "mb-4 ml-2", children: [
36
+ /* @__PURE__ */ e.jsx("label", { className: "text-emphasis mb-2 align-text-top text-sm font-medium", children: a("salesforce_create_record_as") }),
37
+ /* @__PURE__ */ e.jsx(
38
+ x,
39
+ {
40
+ className: "mt-2 w-60",
41
+ options: u,
42
+ value: d,
43
+ onChange: (n) => {
44
+ n && (B(n), t("createEventOn", n.value));
45
+ }
46
+ }
47
+ )
48
+ ] }),
49
+ d.value === o.CONTACT ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
50
+ s,
51
+ {
52
+ label: a("skip_contact_creation", { appName: "Salesforce" }),
53
+ labelOnLeading: !0,
54
+ checked: E,
55
+ onCheckedChange: (n) => {
56
+ t("skipContactCreation", n);
57
+ }
58
+ }
59
+ ) }) : null,
60
+ d.value === o.LEAD ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
61
+ s,
62
+ {
63
+ label: a("salesforce_create_event_on_contact"),
64
+ labelOnLeading: !0,
65
+ checked: R,
66
+ onCheckedChange: (n) => {
67
+ t("createEventOnLeadCheckForContact", n);
68
+ }
69
+ }
70
+ ) }) : null,
71
+ d.value === o.ACCOUNT ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
72
+ /* @__PURE__ */ e.jsx("div", { className: "mb-4", children: /* @__PURE__ */ e.jsx(
73
+ s,
74
+ {
75
+ label: a("salesforce_create_new_contact_under_account"),
76
+ labelOnLeading: !0,
77
+ checked: T,
78
+ onCheckedChange: (n) => {
79
+ t("createNewContactUnderAccount", n);
80
+ }
81
+ }
82
+ ) }),
83
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
84
+ s,
85
+ {
86
+ label: a("salesforce_if_account_does_not_exist"),
87
+ labelOnLeading: !0,
88
+ checked: A,
89
+ onCheckedChange: (n) => {
90
+ t("createLeadIfAccountNull", n);
91
+ }
92
+ }
93
+ ) })
94
+ ] }) : null,
95
+ /* @__PURE__ */ e.jsxs("div", { className: "mt-4", children: [
96
+ /* @__PURE__ */ e.jsx(
97
+ s,
98
+ {
99
+ label: a("on_booking_write_to_event_object"),
100
+ labelOnLeading: !0,
101
+ checked: O,
102
+ onCheckedChange: (n) => {
103
+ t("onBookingWriteToEventObject", n);
104
+ }
105
+ }
106
+ ),
107
+ O ? /* @__PURE__ */ e.jsxs("div", { className: "ml-2 mt-2", children: [
108
+ /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-3 gap-4", children: [
109
+ /* @__PURE__ */ e.jsx("div", { children: a("field_name") }),
110
+ /* @__PURE__ */ e.jsx("div", { children: a("value") })
111
+ ] }),
112
+ /* @__PURE__ */ e.jsxs("div", { children: [
113
+ ...Object.keys(i).map((n) => /* @__PURE__ */ e.jsxs("div", { className: "mt-2 grid grid-cols-3 gap-4", children: [
114
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(r, { value: n, readOnly: !0 }) }),
115
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(r, { value: i[n], readOnly: !0 }) }),
116
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
117
+ k,
118
+ {
119
+ StartIcon: "trash",
120
+ variant: "icon",
121
+ color: "destructive",
122
+ onClick: () => {
123
+ const I = i;
124
+ delete i[n], t("onBookingWriteToEventObjectMap", I);
125
+ }
126
+ }
127
+ ) })
128
+ ] }, n)),
129
+ /* @__PURE__ */ e.jsxs("div", { className: "mt-2 grid grid-cols-3 gap-4", children: [
130
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
131
+ r,
132
+ {
133
+ value: l.field,
134
+ onChange: (n) => v({
135
+ ...l,
136
+ field: n.target.value
137
+ })
138
+ }
139
+ ) }),
140
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
141
+ r,
142
+ {
143
+ value: l.value,
144
+ onChange: (n) => v({
145
+ ...l,
146
+ value: n.target.value
147
+ })
148
+ }
149
+ ) })
150
+ ] })
151
+ ] }),
152
+ /* @__PURE__ */ e.jsx(
153
+ k,
154
+ {
155
+ className: "mt-2",
156
+ size: "sm",
157
+ disabled: !(l.field && l.value),
158
+ onClick: () => {
159
+ if (Object.keys(i).includes(
160
+ l.field.trim()
161
+ )) {
162
+ P("Field already exists", "error");
163
+ return;
164
+ }
165
+ t("onBookingWriteToEventObjectMap", {
166
+ ...i,
167
+ [l.field.trim()]: l.value.trim()
168
+ }), v({ field: "", value: "" });
169
+ },
170
+ children: a("add_new_field")
171
+ }
172
+ )
173
+ ] }) : null
174
+ ] }),
175
+ /* @__PURE__ */ e.jsx("div", { className: "mt-4", children: /* @__PURE__ */ e.jsx(
176
+ s,
177
+ {
178
+ label: "Change record owner on booking",
179
+ labelOnLeading: !0,
180
+ checked: j,
181
+ onCheckedChange: (n) => {
182
+ t("onBookingChangeRecordOwner", n);
183
+ }
184
+ }
185
+ ) }),
186
+ j ? /* @__PURE__ */ e.jsxs("div", { className: "ml-2 mt-2", children: [
187
+ /* @__PURE__ */ e.jsx("p", { className: "mb-2", children: a("salesforce_owner_name_to_change") }),
188
+ /* @__PURE__ */ e.jsx(
189
+ r,
190
+ {
191
+ value: S,
192
+ onChange: (n) => t("onBookingChangeRecordOwnerName", n.target.value)
193
+ }
194
+ )
195
+ ] }) : null,
196
+ g.schedulingType === K.ROUND_ROBIN ? /* @__PURE__ */ e.jsxs("div", { className: "mt-4", children: [
197
+ /* @__PURE__ */ e.jsx(
198
+ s,
199
+ {
200
+ label: a("salesforce_book_directly_with_attendee_owner"),
201
+ labelOnLeading: !0,
202
+ checked: p,
203
+ onCheckedChange: (n) => {
204
+ t("roundRobinLeadSkip", n), n && t("enabled", n);
205
+ }
206
+ }
207
+ ),
208
+ p ? /* @__PURE__ */ e.jsxs("div", { className: "my-4 ml-2", children: [
209
+ /* @__PURE__ */ e.jsx("label", { className: "text-emphasis mb-2 align-text-top text-sm font-medium", children: a("salesforce_check_owner_of") }),
210
+ /* @__PURE__ */ e.jsx(
211
+ x,
212
+ {
213
+ className: "mt-2 w-60",
214
+ options: h,
215
+ value: W,
216
+ onChange: (n) => {
217
+ n && (F(n), t("roundRobinSkipCheckRecordOn", n.value));
218
+ }
219
+ }
220
+ )
221
+ ] }) : null,
222
+ /* @__PURE__ */ e.jsx($, { className: "mt-2", severity: "neutral", title: a("skip_rr_description") })
223
+ ] }) : null
224
+ ] })
225
+ }
226
+ );
227
+ };
228
+ export {
229
+ Y as default
230
+ };
@@ -1,6 +1,6 @@
1
- import { aL as o, aJ as d, aO as i } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
1
+ import { aL as o, aJ as d, aO as i } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
4
  const E = function({ app: a, eventType: e }) {
5
5
  var t;
6
6
  const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(a);
@@ -1,6 +1,6 @@
1
- import { aL as o, aJ as d, aO as i } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
1
+ import { aL as o, aJ as d, aO as i } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
4
  const E = function({ app: a, eventType: e }) {
5
5
  var t;
6
6
  const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(a);
@@ -1,6 +1,6 @@
1
- import { aM as d, aJ as s, aH as m } from "./index-bDHRXhtF.js";
2
- import { A as o } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
1
+ import { aM as d, aJ as s, aH as m } from "./index-THhC4TET.js";
2
+ import { A as o } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
4
  const j = function({ eventType: t, app: e }) {
5
5
  var n;
6
6
  const { getAppData: r, setAppData: a } = d(), l = r("isSunrise"), { enabled: p, updateEnabled: i } = u(e);
@@ -1,6 +1,6 @@
1
- import { aL as o, aJ as d, aO as i } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
1
+ import { aL as o, aJ as d, aO as i } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
4
  const E = function({ app: a, eventType: e }) {
5
5
  var t;
6
6
  const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(a);
@@ -1,7 +1,7 @@
1
- import { aL as i, aK as P, aM as g, aN as b, aJ as t, aO as f } from "./index-bDHRXhtF.js";
1
+ import { aL as i, aK as P, aM as g, aN as b, aJ as t, aO as f } from "./index-THhC4TET.js";
2
2
  import { useMemo as x, useState as S } from "react";
3
- import { A as v } from "./AppCard-2fkLVte1.js";
4
- import C from "./EventTypeAppSettingsInterface-d8rt6haq.js";
3
+ import { A as v } from "./AppCard-1cD7do0L.js";
4
+ import C from "./EventTypeAppSettingsInterface--4AaeXDT.js";
5
5
  const k = function({
6
6
  app: a,
7
7
  eventType: p,
@@ -1,7 +1,7 @@
1
- import { aM as m, aJ as s } from "./index-bDHRXhtF.js";
2
- import { A as c } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
4
- import l from "./EventTypeAppSettingsInterface-eNHrq2O_.js";
1
+ import { aM as m, aJ as s } from "./index-THhC4TET.js";
2
+ import { A as c } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
+ import l from "./EventTypeAppSettingsInterface-ovEc9F54.js";
5
5
  const E = function({ eventType: e, app: t }) {
6
6
  var a;
7
7
  const { enabled: p, updateEnabled: n } = u(t), { disabled: r, getAppData: o, setAppData: d } = m();
@@ -1,7 +1,7 @@
1
- import { aM as c, aJ as a } from "./index-bDHRXhtF.js";
2
- import { A as m } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
4
- import l from "./EventTypeAppSettingsInterface-Hiu3EugC.js";
1
+ import { aM as c, aJ as a } from "./index-THhC4TET.js";
2
+ import { A as m } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
+ import l from "./EventTypeAppSettingsInterface-qV6_xb3B.js";
5
5
  const E = function({ app: t, eventType: e }) {
6
6
  var s;
7
7
  const { getAppData: p, setAppData: n, disabled: r } = c(), { enabled: i, updateEnabled: o } = u(t);
@@ -1,6 +1,6 @@
1
- import { aM as m, aJ as t, s as i } from "./index-bDHRXhtF.js";
2
- import { A as h } from "./AppCard-2fkLVte1.js";
3
- import { u as I } from "./useIsAppEnabled-cdhLbHPx.js";
1
+ import { aM as m, aJ as t, s as i } from "./index-THhC4TET.js";
2
+ import { A as h } from "./AppCard-1cD7do0L.js";
3
+ import { u as I } from "./useIsAppEnabled-I_8ayZmb.js";
4
4
  const R = function({ app: s, eventType: c }) {
5
5
  var n;
6
6
  const { getAppData: p, setAppData: r, disabled: a } = m(), d = p("SITE_ID"), o = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = I(s);
@@ -1,7 +1,7 @@
1
- import { aM as d, aJ as a } from "./index-bDHRXhtF.js";
2
- import { A as c } from "./AppCard-2fkLVte1.js";
3
- import { u as m } from "./useIsAppEnabled-cdhLbHPx.js";
4
- import u from "./EventTypeAppSettingsInterface-7gDZ_5dh.js";
1
+ import { aM as d, aJ as a } from "./index-THhC4TET.js";
2
+ import { A as c } from "./AppCard-1cD7do0L.js";
3
+ import { u as m } from "./useIsAppEnabled-I_8ayZmb.js";
4
+ import u from "./EventTypeAppSettingsInterface-ORy-4gd1.js";
5
5
  const C = function({ app: t, eventType: e }) {
6
6
  var s;
7
7
  const { getAppData: p, setAppData: n, disabled: r } = d(), { enabled: i, updateEnabled: o } = m(t);
@@ -1,6 +1,6 @@
1
- import { aM as c, aJ as s, s as l } from "./index-bDHRXhtF.js";
1
+ import { aM as c, aJ as s, s as l } from "./index-THhC4TET.js";
2
2
  import { useState as m } from "react";
3
- import { A as u } from "./AppCard-2fkLVte1.js";
3
+ import { A as u } from "./AppCard-1cD7do0L.js";
4
4
  const A = function({ app: r, eventType: p }) {
5
5
  var n;
6
6
  const { getAppData: t, setAppData: i } = c(), d = t("trackingId"), [o, a] = m(t("enabled"));
@@ -1,7 +1,7 @@
1
- import { aM as m, aK as l, aJ as a } from "./index-bDHRXhtF.js";
2
- import { A as f } from "./AppCard-2fkLVte1.js";
3
- import { u } from "./useIsAppEnabled-cdhLbHPx.js";
4
- import A from "./EventTypeAppSettingsInterface-pKwciHmZ.js";
1
+ import { aM as m, aK as l, aJ as a } from "./index-THhC4TET.js";
2
+ import { A as f } from "./AppCard-1cD7do0L.js";
3
+ import { u } from "./useIsAppEnabled-I_8ayZmb.js";
4
+ import A from "./EventTypeAppSettingsInterface-W_7y-O19.js";
5
5
  const S = function({ app: t, eventType: e }) {
6
6
  var s;
7
7
  const { getAppData: o, setAppData: i, disabled: n } = m(), { enabled: p, updateEnabled: r } = u(t), { t: c } = l();