@calcom/atoms 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/{AddressInput-BpSJca3r.js → AddressInput-YwzlZFoi.js} +1 -1
  2. package/dist/{AlbyPriceComponent-0EzHrAW1.js → AlbyPriceComponent-v2fPuAY6.js} +1 -1
  3. package/dist/{AppCard-8e-kpo72.js → AppCard-DPKKflIA.js} +1 -1
  4. package/dist/{AppListCardPlatformWrapper-ixynsgLl.js → AppListCardPlatformWrapper-EXme9z8o.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-fZ9Ne6_r.js → AppListCardWebWrapper-X8kbSc1m.js} +1 -1
  6. package/dist/{AppSettingsInterface-jrZ0xNex.js → AppSettingsInterface-BvLWVj0g.js} +1 -1
  7. package/dist/{AppSettingsInterface-vtpma4Ty.js → AppSettingsInterface-NSwmUaIP.js} +1 -1
  8. package/dist/{AppSettingsInterface-vmWnGjAP.js → AppSettingsInterface-xgEJBfcc.js} +1 -1
  9. package/dist/{DateRangePicker-YEvczWqa.js → DateRangePicker-vJzutOv9.js} +1 -1
  10. package/dist/{EventTypeAppCardInterface-J2GpH83m.js → EventTypeAppCardInterface-09hX4tar.js} +3 -3
  11. package/dist/{EventTypeAppCardInterface-lBKaAtVo.js → EventTypeAppCardInterface-0PfdVU5Y.js} +3 -3
  12. package/dist/{EventTypeAppCardInterface-i5sePaPw.js → EventTypeAppCardInterface-3jiOpP2y.js} +3 -3
  13. package/dist/{EventTypeAppCardInterface-tFi51kOu.js → EventTypeAppCardInterface-Bd1BtNDj.js} +3 -3
  14. package/dist/{EventTypeAppCardInterface-SThwQJqI.js → EventTypeAppCardInterface-GBBzPZX_.js} +3 -3
  15. package/dist/{EventTypeAppCardInterface-yg1X_xul.js → EventTypeAppCardInterface-GlbZ4hu8.js} +4 -4
  16. package/dist/{EventTypeAppCardInterface-YsABP7F5.js → EventTypeAppCardInterface-HshVnF7K.js} +3 -3
  17. package/dist/{EventTypeAppCardInterface-cJTTVbQp.js → EventTypeAppCardInterface-ICVMZGQi.js} +4 -4
  18. package/dist/{EventTypeAppCardInterface-zruB2FzC.js → EventTypeAppCardInterface-JhpQqnNX.js} +4 -4
  19. package/dist/{EventTypeAppCardInterface-i6nf7Wge.js → EventTypeAppCardInterface-LK7x4o4J.js} +3 -3
  20. package/dist/{EventTypeAppCardInterface-Ms-ryW85.js → EventTypeAppCardInterface-LZESQcfF.js} +4 -4
  21. package/dist/{EventTypeAppCardInterface-Wd5IxHUp.js → EventTypeAppCardInterface-MxLOh6jA.js} +3 -3
  22. package/dist/{EventTypeAppCardInterface-r9B6g_vb.js → EventTypeAppCardInterface-Orzxewv8.js} +4 -4
  23. package/dist/{EventTypeAppCardInterface-64u7JDmK.js → EventTypeAppCardInterface-TJoJRcZf.js} +3 -3
  24. package/dist/{EventTypeAppCardInterface-XYdXwsp1.js → EventTypeAppCardInterface-Ufuez4NS.js} +2 -2
  25. package/dist/{EventTypeAppCardInterface-rOrmbyNN.js → EventTypeAppCardInterface-WUYJXI9e.js} +4 -4
  26. package/dist/{EventTypeAppCardInterface-KfTLSDMB.js → EventTypeAppCardInterface-Wn6q_TLQ.js} +3 -3
  27. package/dist/{EventTypeAppCardInterface-RR8Pdcmk.js → EventTypeAppCardInterface-ZNO40AJ9.js} +2 -2
  28. package/dist/{EventTypeAppCardInterface-bmQeZj3C.js → EventTypeAppCardInterface-ZUCIbJ3F.js} +3 -3
  29. package/dist/{EventTypeAppCardInterface-T51D3u6j.js → EventTypeAppCardInterface-_QV0cMrn.js} +3 -3
  30. package/dist/{EventTypeAppCardInterface-aH_uqNUP.js → EventTypeAppCardInterface-_oQfYbc4.js} +4 -4
  31. package/dist/{EventTypeAppCardInterface-AxmjB7N4.js → EventTypeAppCardInterface-i0ARNB0w.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-x_wvzB0v.js → EventTypeAppCardInterface-koqzBHWv.js} +4 -4
  33. package/dist/{EventTypeAppCardInterface-xdH4tRYC.js → EventTypeAppCardInterface-m8EiZT8Y.js} +4 -4
  34. package/dist/{EventTypeAppCardInterface-ILCE1dyV.js → EventTypeAppCardInterface-ma8MREKX.js} +4 -4
  35. package/dist/{EventTypeAppCardInterface-MQTWgkIo.js → EventTypeAppCardInterface-mg7bvmY6.js} +4 -4
  36. package/dist/{EventTypeAppCardInterface-GgzM8H2q.js → EventTypeAppCardInterface-mwRrVwW6.js} +3 -3
  37. package/dist/{EventTypeAppCardInterface-XQAC7Sns.js → EventTypeAppCardInterface-whbg5vSK.js} +3 -3
  38. package/dist/{EventTypeAppSettingsInterface-A9lNB6of.js → EventTypeAppSettingsInterface-8AGnAK4X.js} +1 -1
  39. package/dist/{EventTypeAppSettingsInterface-NcU2fhCq.js → EventTypeAppSettingsInterface-9Y1irpa0.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-O49EtYq9.js → EventTypeAppSettingsInterface-LpytQF5N.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-wQb-fMuk.js → EventTypeAppSettingsInterface-MGTlOLPQ.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-jYxTenwf.js → EventTypeAppSettingsInterface-MxDUN49P.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-lUUXnR-g.js → EventTypeAppSettingsInterface-PmsPQGH3.js} +1 -1
  44. package/dist/{EventTypeAppSettingsInterface-_mhcQh98.js → EventTypeAppSettingsInterface-c22O6YzI.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-UM5TZ94u.js → EventTypeAppSettingsInterface-dLrUYMim.js} +1 -1
  46. package/dist/{EventTypeAppSettingsInterface-WtvV4-VQ.js → EventTypeAppSettingsInterface-fVBD2v9G.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-NwadKkE9.js → EventTypeAppSettingsInterface-juDOdLlP.js} +1 -1
  48. package/dist/{EventTypeAppSettingsInterface-je_rg4FH.js → EventTypeAppSettingsInterface-tM-NXTvl.js} +1 -1
  49. package/dist/{EventTypeAppSettingsInterface-JPQ1yyiJ.js → EventTypeAppSettingsInterface-tsBm_RHA.js} +1 -1
  50. package/dist/{EventTypeAppSettingsInterface-kSolFl0q.js → EventTypeAppSettingsInterface-wkUCA9Qv.js} +1 -1
  51. package/dist/{EventTypeAppSettingsInterface-gQwMLmra.js → EventTypeAppSettingsInterface-zAFiQfxX.js} +1 -1
  52. package/dist/{InstallAppButton-IvfhWvux.js → InstallAppButton-EOhBKL7m.js} +1 -1
  53. package/dist/{InstallAppButton-o3I02uwv.js → InstallAppButton-XveriT6e.js} +1 -1
  54. package/dist/{InstallAppButton-9HlFrOHB.js → InstallAppButton-m9kNZ05d.js} +1 -1
  55. package/dist/{PhoneInput-GWE7KXiz.js → PhoneInput-rVvdIejB.js} +7 -7
  56. package/dist/{StripePaymentForm-QbBVD2ns.js → StripePaymentForm-kEzDv9K9.js} +1 -1
  57. package/dist/cal-atoms.js +12 -12
  58. package/dist/cal-atoms.umd.cjs +169 -169
  59. package/dist/index-Hj2ocxM1.js +681 -0
  60. package/dist/{index-FKnC-Bdq.js → index-KPjOEROu.js} +1 -1
  61. package/dist/{index-c1AU6gV4.js → index-MEbSBQ6m.js} +54172 -53998
  62. package/dist/{index-n0I0RFcR.js → index-goVlMJuK.js} +1 -1
  63. package/dist/packages/features/bookings/Booker/components/AvailableTimeSlots.d.ts.map +1 -1
  64. package/dist/packages/features/bookings/Booker/components/OutOfOfficeInSlots.d.ts +2 -0
  65. package/dist/packages/features/bookings/Booker/components/OutOfOfficeInSlots.d.ts.map +1 -1
  66. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
  67. package/dist/packages/features/bookings/Booker/utils/event.d.ts +15 -3
  68. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  69. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts +12 -3
  70. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts.map +1 -1
  71. package/dist/packages/features/bookings/lib/client/decoyBookingStore.d.ts +4 -3
  72. package/dist/packages/features/bookings/lib/client/decoyBookingStore.d.ts.map +1 -1
  73. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts +71 -2
  74. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts.map +1 -1
  75. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +4 -1
  76. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts.map +1 -1
  77. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +6 -1
  78. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts.map +1 -1
  79. package/dist/packages/features/bookings/lib/getLuckyUser.d.ts.map +1 -1
  80. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +2 -0
  81. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  82. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +4 -0
  83. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  84. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +4 -0
  85. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  86. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +2 -0
  87. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  88. package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts +2 -1
  89. package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts.map +1 -1
  90. package/dist/packages/features/bookings/lib/host-filtering/findQualifiedHostsWithDelegationCredentials.d.ts +6 -2
  91. package/dist/packages/features/bookings/lib/host-filtering/findQualifiedHostsWithDelegationCredentials.d.ts.map +1 -1
  92. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts +1 -0
  93. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts.map +1 -1
  94. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts.map +1 -1
  95. package/dist/packages/features/data-table/components/filters/AddFilterButton.d.ts +1 -1
  96. package/dist/packages/features/data-table/components/filters/AddFilterButton.d.ts.map +1 -1
  97. package/dist/packages/features/data-table/components/filters/FilterBar.d.ts.map +1 -1
  98. package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
  99. package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts +5 -1
  100. package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
  101. package/dist/packages/features/data-table/hooks/index.d.ts +1 -0
  102. package/dist/packages/features/data-table/hooks/index.d.ts.map +1 -1
  103. package/dist/packages/features/data-table/hooks/useDisplayedFilterCount.d.ts +6 -0
  104. package/dist/packages/features/data-table/hooks/useDisplayedFilterCount.d.ts.map +1 -0
  105. package/dist/packages/features/ee/payments/pages/payment.d.ts +1 -0
  106. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  107. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts +2 -0
  108. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts.map +1 -1
  109. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts +4 -0
  110. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts.map +1 -1
  111. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +6 -0
  112. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts.map +1 -1
  113. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +1 -0
  114. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts.map +1 -1
  115. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts +2 -0
  116. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts.map +1 -1
  117. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts +1 -0
  118. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts.map +1 -1
  119. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +4 -0
  120. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  121. package/dist/packages/features/eventtypes/lib/types.d.ts +10 -0
  122. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  123. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +3 -0
  124. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts.map +1 -1
  125. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts +15 -3
  126. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts.map +1 -1
  127. package/dist/packages/features/schedules/lib/slots.d.ts.map +1 -1
  128. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts +11 -3
  129. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts.map +1 -1
  130. package/dist/packages/features/schedules/lib/use-schedule/useTimesForSchedule.d.ts +2 -2
  131. package/dist/packages/features/schedules/lib/use-schedule/useTimesForSchedule.d.ts.map +1 -1
  132. package/dist/packages/features/schedules/lib/use-schedule/useTimesForSchedule.timezone.test.d.ts +2 -0
  133. package/dist/packages/features/schedules/lib/use-schedule/useTimesForSchedule.timezone.test.d.ts.map +1 -0
  134. package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts +58 -5
  135. package/dist/packages/features/schedules/repositories/ScheduleRepository.d.ts.map +1 -1
  136. package/dist/packages/features/schedules/repositories/ScheduleRepository.test.d.ts +2 -0
  137. package/dist/packages/features/schedules/repositories/ScheduleRepository.test.d.ts.map +1 -0
  138. package/dist/packages/features/schedules/services/ScheduleService.d.ts.map +1 -1
  139. package/dist/packages/features/shell/DynamicModals.d.ts.map +1 -1
  140. package/dist/packages/features/shell/components/GatedFeaturesModal.d.ts +2 -0
  141. package/dist/packages/features/shell/components/GatedFeaturesModal.d.ts.map +1 -0
  142. package/dist/packages/features/shell/navigation/Navigation.d.ts.map +1 -1
  143. package/dist/packages/features/shell/navigation/NavigationItem.d.ts +0 -4
  144. package/dist/packages/features/shell/navigation/NavigationItem.d.ts.map +1 -1
  145. package/dist/packages/features/shell/stores/gatedFeaturesStore.d.ts +12 -0
  146. package/dist/packages/features/shell/stores/gatedFeaturesStore.d.ts.map +1 -0
  147. package/dist/packages/kysely/types.d.ts +2 -0
  148. package/dist/packages/kysely/types.d.ts.map +1 -1
  149. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  150. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  151. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  152. package/dist/packages/platform/atoms/calendar-view/EventTypeCalendarViewComponent.d.ts.map +1 -1
  153. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +1 -0
  154. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
  155. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +1 -0
  156. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  157. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +1 -0
  158. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  159. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +3 -0
  160. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  161. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +1 -0
  162. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
  163. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +2 -1
  164. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  165. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +1 -0
  166. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
  167. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +1 -0
  168. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
  169. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +1 -0
  170. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
  171. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +3 -0
  172. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  173. package/dist/packages/platform/atoms/hooks/useAvailableSlots.d.ts.map +1 -1
  174. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +1 -0
  175. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  176. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  177. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  178. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
  179. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  180. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
  181. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
  182. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts +1 -0
  183. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts.map +1 -1
  184. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +1 -0
  185. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
  186. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts +1 -1
  187. package/dist/packages/prisma/zod/inputTypeSchemas/EventTypeScalarFieldEnumSchema.d.ts.map +1 -1
  188. package/dist/packages/prisma/zod/inputTypeSchemas/OutOfOfficeEntryScalarFieldEnumSchema.d.ts +1 -1
  189. package/dist/packages/prisma/zod/inputTypeSchemas/OutOfOfficeEntryScalarFieldEnumSchema.d.ts.map +1 -1
  190. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts +11 -0
  191. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts.map +1 -1
  192. package/dist/packages/prisma/zod/modelSchema/OutOfOfficeEntrySchema.d.ts +3 -0
  193. package/dist/packages/prisma/zod/modelSchema/OutOfOfficeEntrySchema.d.ts.map +1 -1
  194. package/dist/packages/prisma/zod-utils.d.ts +18 -0
  195. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  196. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +1 -0
  197. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
  198. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +24 -3
  199. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
  200. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +1 -1
  201. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  202. package/dist/{useIsAppEnabled-LmZ5_dpZ.js → useIsAppEnabled-taEWsoZr.js} +1 -1
  203. package/package.json +1 -1
  204. package/dist/index-SoDSIlE9.js +0 -664
  205. package/dist/packages/features/bookings/Booker/components/hooks/usePrefetch.d.ts +0 -19
  206. package/dist/packages/features/bookings/Booker/components/hooks/usePrefetch.d.ts.map +0 -1
@@ -0,0 +1,681 @@
1
+ import { jsxs as h, jsx as n, Fragment as v } from "react/jsx-runtime";
2
+ import { aw as E, ax as S, ay as L, az as P, aA as R, aB as $, aC as F, au as G, aq as V, J as f, B as K, aD as q, q as z, aE as M, aF as j, ar as A, aG as Q, aH as D, aI as W, an as Z } from "./index-MEbSBQ6m.js";
3
+ import { memo as H, useState as J } from "react";
4
+ function Y(e, t) {
5
+ var r = -1, l = e.length;
6
+ for (t || (t = Array(l)); ++r < l; )
7
+ t[r] = e[r];
8
+ return t;
9
+ }
10
+ var X = Y, B = Math.floor, ee = Math.random;
11
+ function te(e, t) {
12
+ return e + B(ee() * (t - e + 1));
13
+ }
14
+ var re = te, ae = re;
15
+ function ie(e, t) {
16
+ var r = -1, l = e.length, o = l - 1;
17
+ for (t = t === void 0 ? l : t; ++r < t; ) {
18
+ var i = ae(r, o), u = e[i];
19
+ e[i] = e[r], e[r] = u;
20
+ }
21
+ return e.length = t, e;
22
+ }
23
+ var U = ie, se = X, oe = U;
24
+ function ne(e) {
25
+ return oe(se(e));
26
+ }
27
+ var le = ne, ce = E;
28
+ function de(e, t) {
29
+ return ce(t, function(r) {
30
+ return e[r];
31
+ });
32
+ }
33
+ var ue = de;
34
+ function me(e, t) {
35
+ for (var r = -1, l = Array(e); ++r < e; )
36
+ l[r] = t(r);
37
+ return l;
38
+ }
39
+ var pe = me, he = S, fe = L, be = "[object Arguments]";
40
+ function ge(e) {
41
+ return fe(e) && he(e) == be;
42
+ }
43
+ var ve = ge, C = ve, ye = L, I = Object.prototype, xe = I.hasOwnProperty, ke = I.propertyIsEnumerable, we = C(/* @__PURE__ */ function() {
44
+ return arguments;
45
+ }()) ? C : function(e) {
46
+ return ye(e) && xe.call(e, "callee") && !ke.call(e, "callee");
47
+ }, Te = we, x = { exports: {} };
48
+ function je() {
49
+ return !1;
50
+ }
51
+ var Ae = je;
52
+ x.exports;
53
+ (function(e, t) {
54
+ var r = P, l = Ae, o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, u = i && i.exports === o, d = u ? r.Buffer : void 0, a = d ? d.isBuffer : void 0, s = a || l;
55
+ e.exports = s;
56
+ })(x, x.exports);
57
+ var Le = x.exports, Ce = 9007199254740991, Ne = /^(?:0|[1-9]\d*)$/;
58
+ function _e(e, t) {
59
+ var r = typeof e;
60
+ return t = t ?? Ce, !!t && (r == "number" || r != "symbol" && Ne.test(e)) && e > -1 && e % 1 == 0 && e < t;
61
+ }
62
+ var Se = _e, $e = 9007199254740991;
63
+ function Ue(e) {
64
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $e;
65
+ }
66
+ var O = Ue, Ie = S, Oe = O, Ee = L, Pe = "[object Arguments]", Re = "[object Array]", Fe = "[object Boolean]", Ge = "[object Date]", Ve = "[object Error]", Ke = "[object Function]", qe = "[object Map]", ze = "[object Number]", Me = "[object Object]", Qe = "[object RegExp]", De = "[object Set]", We = "[object String]", Ze = "[object WeakMap]", He = "[object ArrayBuffer]", Je = "[object DataView]", Ye = "[object Float32Array]", Xe = "[object Float64Array]", Be = "[object Int8Array]", et = "[object Int16Array]", tt = "[object Int32Array]", rt = "[object Uint8Array]", at = "[object Uint8ClampedArray]", it = "[object Uint16Array]", st = "[object Uint32Array]", c = {};
67
+ c[Ye] = c[Xe] = c[Be] = c[et] = c[tt] = c[rt] = c[at] = c[it] = c[st] = !0;
68
+ c[Pe] = c[Re] = c[He] = c[Fe] = c[Je] = c[Ge] = c[Ve] = c[Ke] = c[qe] = c[ze] = c[Me] = c[Qe] = c[De] = c[We] = c[Ze] = !1;
69
+ function ot(e) {
70
+ return Ee(e) && Oe(e.length) && !!c[Ie(e)];
71
+ }
72
+ var nt = ot;
73
+ function lt(e) {
74
+ return function(t) {
75
+ return e(t);
76
+ };
77
+ }
78
+ var ct = lt, k = { exports: {} };
79
+ k.exports;
80
+ (function(e, t) {
81
+ var r = R, l = t && !t.nodeType && t, o = l && !0 && e && !e.nodeType && e, i = o && o.exports === l, u = i && r.process, d = function() {
82
+ try {
83
+ var a = o && o.require && o.require("util").types;
84
+ return a || u && u.binding && u.binding("util");
85
+ } catch {
86
+ }
87
+ }();
88
+ e.exports = d;
89
+ })(k, k.exports);
90
+ var dt = k.exports, ut = nt, mt = ct, N = dt, _ = N && N.isTypedArray, pt = _ ? mt(_) : ut, ht = pt, ft = pe, bt = Te, gt = $, vt = Le, yt = Se, xt = ht, kt = Object.prototype, wt = kt.hasOwnProperty;
91
+ function Tt(e, t) {
92
+ var r = gt(e), l = !r && bt(e), o = !r && !l && vt(e), i = !r && !l && !o && xt(e), u = r || l || o || i, d = u ? ft(e.length, String) : [], a = d.length;
93
+ for (var s in e)
94
+ (t || wt.call(e, s)) && !(u && // Safari 9 has enumerable `arguments.length` in strict mode.
95
+ (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
96
+ o && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
97
+ i && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
98
+ yt(s, a))) && d.push(s);
99
+ return d;
100
+ }
101
+ var jt = Tt, At = Object.prototype;
102
+ function Lt(e) {
103
+ var t = e && e.constructor, r = typeof t == "function" && t.prototype || At;
104
+ return e === r;
105
+ }
106
+ var Ct = Lt;
107
+ function Nt(e, t) {
108
+ return function(r) {
109
+ return e(t(r));
110
+ };
111
+ }
112
+ var _t = Nt, St = _t, $t = St(Object.keys, Object), Ut = $t, It = Ct, Ot = Ut, Et = Object.prototype, Pt = Et.hasOwnProperty;
113
+ function Rt(e) {
114
+ if (!It(e))
115
+ return Ot(e);
116
+ var t = [];
117
+ for (var r in Object(e))
118
+ Pt.call(e, r) && r != "constructor" && t.push(r);
119
+ return t;
120
+ }
121
+ var Ft = Rt, Gt = F, Vt = O;
122
+ function Kt(e) {
123
+ return e != null && Vt(e.length) && !Gt(e);
124
+ }
125
+ var qt = Kt, zt = jt, Mt = Ft, Qt = qt;
126
+ function Dt(e) {
127
+ return Qt(e) ? zt(e) : Mt(e);
128
+ }
129
+ var Wt = Dt, Zt = ue, Ht = Wt;
130
+ function Jt(e) {
131
+ return e == null ? [] : Zt(e, Ht(e));
132
+ }
133
+ var Yt = Jt, Xt = U, Bt = Yt;
134
+ function er(e) {
135
+ return Xt(Bt(e));
136
+ }
137
+ var tr = er, rr = le, ar = tr, ir = $;
138
+ function sr(e) {
139
+ var t = ir(e) ? rr : ar;
140
+ return t(e);
141
+ }
142
+ var or = sr;
143
+ const nr = /* @__PURE__ */ G(or), y = q("", {
144
+ // Variants won't have any style by default. Style will only be applied if the variants are combined.
145
+ // So, style is defined in compoundVariants.
146
+ variants: {
147
+ variant: {
148
+ basic: "",
149
+ ProfileCard: "",
150
+ SidebarCard: "",
151
+ NewLaunchSidebarCard: ""
152
+ },
153
+ structure: {
154
+ image: "",
155
+ card: "",
156
+ title: "",
157
+ description: ""
158
+ }
159
+ },
160
+ compoundVariants: [
161
+ // Style for Basic Variants types
162
+ {
163
+ variant: "basic",
164
+ structure: "image",
165
+ className: "w-10 h-auto"
166
+ },
167
+ {
168
+ variant: "basic",
169
+ structure: "card",
170
+ className: "p-5 bg-default"
171
+ },
172
+ {
173
+ variant: "basic",
174
+ structure: "title",
175
+ className: "text-base mt-4"
176
+ },
177
+ {
178
+ variant: "basic",
179
+ structure: "description",
180
+ className: "text-sm leading-[18px] text-subtle font-normal"
181
+ },
182
+ // Style for ProfileCard Variant Types
183
+ {
184
+ variant: "ProfileCard",
185
+ structure: "image",
186
+ className: "w-9 h-auto rounded-full mb-4s"
187
+ },
188
+ {
189
+ variant: "ProfileCard",
190
+ structure: "card",
191
+ className: "w-80 p-4 hover:bg-subtle bg-default"
192
+ },
193
+ {
194
+ variant: "ProfileCard",
195
+ structure: "title",
196
+ className: "text-base"
197
+ },
198
+ {
199
+ variant: "ProfileCard",
200
+ structure: "description",
201
+ className: "text-sm leading-[18px] text-subtle font-normal"
202
+ },
203
+ // Style for SidebarCard Variant Types
204
+ {
205
+ variant: "SidebarCard",
206
+ structure: "image",
207
+ className: "w-9 h-auto rounded-full mb-4s"
208
+ },
209
+ {
210
+ variant: "SidebarCard",
211
+ structure: "card",
212
+ className: "w-full p-3 border border-subtle bg-default"
213
+ },
214
+ {
215
+ variant: "SidebarCard",
216
+ structure: "title",
217
+ className: "text-sm font-cal"
218
+ },
219
+ {
220
+ variant: "SidebarCard",
221
+ structure: "description",
222
+ className: "text-xs text-default line-clamp-2"
223
+ },
224
+ // Style for NewLaunchSidebarCard Variant Types
225
+ {
226
+ variant: "NewLaunchSidebarCard",
227
+ structure: "image",
228
+ className: "w-9 h-auto rounded-full mb-4s"
229
+ },
230
+ {
231
+ variant: "NewLaunchSidebarCard",
232
+ structure: "card",
233
+ className: "w-full p-3 border border-subtle bg-launch-dark text-white"
234
+ },
235
+ {
236
+ variant: "NewLaunchSidebarCard",
237
+ structure: "title",
238
+ className: "text-sm font-cal text-white"
239
+ },
240
+ {
241
+ variant: "NewLaunchSidebarCard",
242
+ structure: "description",
243
+ className: "text-xs text-white"
244
+ }
245
+ ]
246
+ });
247
+ function lr({
248
+ image: e,
249
+ title: t,
250
+ icon: r,
251
+ description: l,
252
+ variant: o,
253
+ actionButton: i,
254
+ containerProps: u,
255
+ imageProps: d,
256
+ mediaLink: a,
257
+ thumbnailUrl: s,
258
+ learnMore: m,
259
+ coverPhoto: p,
260
+ buttonClassName: b,
261
+ mediaLinkOnClick: w
262
+ }) {
263
+ var g;
264
+ const T = (g = m == null ? void 0 : m.href) != null && g.startsWith("https") ? "a" : V;
265
+ return /* @__PURE__ */ h(
266
+ "div",
267
+ {
268
+ className: f(
269
+ u == null ? void 0 : u.className,
270
+ "border-subtle text-default bg-default flex flex-col justify-between rounded-md border",
271
+ y({ variant: o, structure: "card" })
272
+ ),
273
+ "data-testid": "card-container",
274
+ ...u,
275
+ children: [
276
+ /* @__PURE__ */ h("div", { children: [
277
+ r && r,
278
+ e && /* @__PURE__ */ n(
279
+ "img",
280
+ {
281
+ src: e,
282
+ alt: d == null ? void 0 : d.alt,
283
+ className: f(
284
+ d == null ? void 0 : d.className,
285
+ y({ variant: o, structure: "image" })
286
+ ),
287
+ ...d
288
+ }
289
+ ),
290
+ /* @__PURE__ */ n(
291
+ "h5",
292
+ {
293
+ title: t,
294
+ className: f(
295
+ "text-emphasis line-clamp-1 font-bold leading-5",
296
+ y({ variant: o, structure: "title" })
297
+ ),
298
+ children: t
299
+ }
300
+ ),
301
+ l && /* @__PURE__ */ n(
302
+ "p",
303
+ {
304
+ title: l.toString(),
305
+ className: f(y({ variant: o, structure: "description" }), "pt-1"),
306
+ children: l
307
+ }
308
+ )
309
+ ] }),
310
+ o === "SidebarCard" && a && /* @__PURE__ */ h(
311
+ "a",
312
+ {
313
+ onClick: w,
314
+ target: "_blank",
315
+ rel: "noreferrer noopener",
316
+ href: a,
317
+ "data-testid": i == null ? void 0 : i["data-testid"],
318
+ className: "group relative my-3 flex aspect-video items-center overflow-hidden rounded",
319
+ children: [
320
+ /* @__PURE__ */ n("div", { className: "absolute inset-0 bg-black/50 transition group-hover:bg-black/40" }),
321
+ /* @__PURE__ */ h(
322
+ "svg",
323
+ {
324
+ className: "text-inverted absolute left-1/2 top-1/2 h-8 w-8 -translate-x-1/2 -translate-y-1/2 transform rounded-full shadow-lg transition-all hover:-mt-px",
325
+ viewBox: "0 0 32 32",
326
+ fill: "none",
327
+ xmlns: "http://www.w3.org/2000/svg",
328
+ children: [
329
+ /* @__PURE__ */ n(
330
+ "path",
331
+ {
332
+ d: "M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",
333
+ fill: "white"
334
+ }
335
+ ),
336
+ /* @__PURE__ */ n(
337
+ "path",
338
+ {
339
+ d: "M12.1667 8.5L23.8334 16L12.1667 23.5V8.5Z",
340
+ fill: "#111827",
341
+ stroke: "#111827",
342
+ strokeWidth: "1.5",
343
+ strokeLinecap: "round",
344
+ strokeLinejoin: "round"
345
+ }
346
+ )
347
+ ]
348
+ }
349
+ ),
350
+ /* @__PURE__ */ n("img", { alt: "play feature video", src: s })
351
+ ]
352
+ }
353
+ ),
354
+ o === "NewLaunchSidebarCard" && p && /* @__PURE__ */ n("img", { alt: "cover", className: "mt-3 w-full", src: p }),
355
+ o === "basic" && i && /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
356
+ K,
357
+ {
358
+ color: "secondary",
359
+ href: i == null ? void 0 : i.href,
360
+ className: "mt-10",
361
+ EndIcon: "arrow-right",
362
+ "data-testid": i["data-testid"],
363
+ children: i == null ? void 0 : i.child
364
+ }
365
+ ) }),
366
+ (o === "SidebarCard" || o === "NewLaunchSidebarCard") && /* @__PURE__ */ h("div", { className: "mt-2 flex items-center justify-between", children: [
367
+ m && /* @__PURE__ */ n(v, { children: m.href ? /* @__PURE__ */ n(
368
+ T,
369
+ {
370
+ href: m.href,
371
+ target: "_blank",
372
+ rel: "noreferrer",
373
+ onClick: m.onClick,
374
+ className: f("text-default text-xs font-medium cursor-pointer", b),
375
+ children: m.text
376
+ }
377
+ ) : m.onClick ? /* @__PURE__ */ n(
378
+ "button",
379
+ {
380
+ type: "button",
381
+ color: "minimal",
382
+ onClick: m.onClick,
383
+ className: f("cursor-pointer text-default text-xs font-medium", b),
384
+ children: m.text
385
+ }
386
+ ) : void 0 }),
387
+ (i == null ? void 0 : i.child) && /* @__PURE__ */ n(
388
+ "button",
389
+ {
390
+ className: f(
391
+ "text-default hover:text-emphasis p-0 text-xs font-normal cursor-pointer",
392
+ b
393
+ ),
394
+ color: "minimal",
395
+ "data-testid": i == null ? void 0 : i["data-testid"],
396
+ onClick: i == null ? void 0 : i.onClick,
397
+ children: i == null ? void 0 : i.child
398
+ }
399
+ )
400
+ ] })
401
+ ]
402
+ }
403
+ );
404
+ }
405
+ function cr() {
406
+ const { t: e } = z(), t = M((a) => a.open), l = [...nr([
407
+ {
408
+ id: 18,
409
+ thumbnailUrl: "https://img.youtube.com/vi/J8HsK-8W39U/0.jpg",
410
+ mediaLink: "https://go.cal.com/rbac-video",
411
+ title: "Roles & Permissions",
412
+ description: "Manage team access with roles & permissions",
413
+ onClick: () => t(Q.RolesAndPermissions)
414
+ },
415
+ {
416
+ id: 17,
417
+ thumbnailUrl: "https://img.youtube.com/vi/fMHW6jYPIb8/0.jpg",
418
+ mediaLink: "https://go.cal.com/embed-video",
419
+ title: "Embed",
420
+ description: "Embed your booking page on your website",
421
+ href: "https://go.cal.com/embed-video"
422
+ },
423
+ {
424
+ id: 16,
425
+ thumbnailUrl: "https://img.youtube.com/vi/xopxmk2H4Ng/0.jpg",
426
+ mediaLink: "https://go.cal.com/paid-booking",
427
+ title: "Paid Bookings",
428
+ description: "Charge for your time with Cal.com's paid bookings",
429
+ href: "https://go.cal.com/paid-booking"
430
+ },
431
+ {
432
+ id: 15,
433
+ thumbnailUrl: "https://img.youtube.com/vi/ZjSD1yPgLLQ/0.jpg",
434
+ mediaLink: "https://go.cal.com/instant-meetings-video",
435
+ title: "Instant Meetings",
436
+ description: "Book meetings instantly with a link",
437
+ href: "https://go.cal.com/instant-meetings-video"
438
+ },
439
+ {
440
+ id: 14,
441
+ thumbnailUrl: "https://img.youtube.com/vi/IZ4-nUiIpvY/0.jpg",
442
+ mediaLink: "https://go.cal.com/custom-attributes",
443
+ title: "Custom Attributes",
444
+ description: "Define roles and attributes for your teams",
445
+ href: "https://go.cal.com/custom-attributes"
446
+ },
447
+ {
448
+ id: 13,
449
+ thumbnailUrl: "https://img.youtube.com/vi/TTAASLLPKk0/0.jpg",
450
+ mediaLink: "https://go.cal.com/ooo-video",
451
+ title: "ooo.new",
452
+ description: "Easily go out-of-office",
453
+ href: "https://go.cal.com/ooo-video"
454
+ },
455
+ {
456
+ id: 12,
457
+ thumbnailUrl: "https://cal.com/og-image-cal-ai.jpg",
458
+ mediaLink: "https://go.cal.com/cal-ai",
459
+ title: "Cal.ai",
460
+ description: "Your personal AI scheduling assistant",
461
+ href: "https://go.cal.com/cal-ai"
462
+ },
463
+ {
464
+ id: 11,
465
+ thumbnailUrl: "https://img.youtube.com/vi/KTg_qzA9NEc/0.jpg",
466
+ mediaLink: "https://go.cal.com/insights",
467
+ title: "Insights",
468
+ description: "Get a better understanding of your business",
469
+ href: "https://go.cal.com/insights"
470
+ },
471
+ {
472
+ id: 10,
473
+ thumbnailUrl: "https://img.youtube.com/vi/jvaBafzVUQc/0.jpg",
474
+ mediaLink: "https://go.cal.com/video",
475
+ title: "Cal Video",
476
+ description: "Free video conferencing with recording",
477
+ href: "https://go.cal.com/video"
478
+ },
479
+ {
480
+ id: 9,
481
+ thumbnailUrl: "https://img.youtube.com/vi/93iOmzHieCU/0.jpg",
482
+ mediaLink: "https://go.cal.com/round-robin",
483
+ title: "Round-Robin",
484
+ description: "Create advanced group meetings with round-robin",
485
+ href: "https://go.cal.com/round-robin"
486
+ },
487
+ {
488
+ id: 8,
489
+ thumbnailUrl: "https://img.youtube.com/vi/piKlAiibAFo/0.jpg",
490
+ mediaLink: "https://go.cal.com/workflows",
491
+ title: "Automate Workflows",
492
+ description: "Make time work for you and automate tasks",
493
+ href: "https://go.cal.com/workflows"
494
+ },
495
+ {
496
+ id: 7,
497
+ thumbnailUrl: "https://img.youtube.com/vi/UVXgo12cY4g/0.jpg",
498
+ mediaLink: "https://go.cal.com/routing-forms",
499
+ title: "Routing Forms",
500
+ description: "Ask questions and route to the correct person",
501
+ href: "https://go.cal.com/routing-forms"
502
+ },
503
+ {
504
+ id: 6,
505
+ thumbnailUrl: "https://img.youtube.com/vi/yGiZo1Ry5-8/0.jpg",
506
+ mediaLink: "https://go.cal.com/recurring-video",
507
+ title: "Recurring Bookings",
508
+ description: "Learn how to create a recurring schedule",
509
+ href: "https://go.cal.com/recurring-video"
510
+ },
511
+ {
512
+ id: 5,
513
+ thumbnailUrl: "https://img.youtube.com/vi/0v_nQtpxC_4/0.jpg",
514
+ mediaLink: "https://go.cal.com/payments-video",
515
+ title: "Accept Payments",
516
+ description: "Charge for your time with Cal.com's Stripe App",
517
+ href: "https://app.cal.com/apps/stripe"
518
+ },
519
+ {
520
+ id: 4,
521
+ thumbnailUrl: "https://img.youtube.com/vi/zGr_s-fG84k/0.jpg",
522
+ mediaLink: "https://go.cal.com/confirmation-video",
523
+ title: "Requires Confirmation",
524
+ description: "Learn how to be in charge of your bookings",
525
+ href: "https://cal.com/resources/feature/opt-in"
526
+ },
527
+ {
528
+ id: 3,
529
+ thumbnailUrl: "https://img.youtube.com/vi/-L8MCiT6uhQ/0.jpg",
530
+ mediaLink: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl",
531
+ title: "Routing Forms, Workflows",
532
+ description: "Ask screening questions of potential bookers to connect them with the right person",
533
+ href: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl"
534
+ },
535
+ {
536
+ id: 2,
537
+ thumbnailUrl: "https://img.youtube.com/vi/EAc46SPL6iA/0.jpg",
538
+ mediaLink: "https://go.cal.com/teams-video",
539
+ title: "How to set up Teams",
540
+ description: "Learn how to use round-robin and collective events.",
541
+ href: "https://cal.com/teams"
542
+ },
543
+ {
544
+ id: 1,
545
+ thumbnailUrl: "https://img.youtube.com/vi/VZ5PfQzzxBw/0.jpg",
546
+ mediaLink: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a",
547
+ title: "Dynamic booking links",
548
+ description: "Booking link that allows people to quickly schedule meetings.",
549
+ href: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a"
550
+ }
551
+ ]).slice(0).reverse()], [o, i] = J(() => {
552
+ if (typeof window > "u")
553
+ return l;
554
+ try {
555
+ const a = j.getItem("removedTipsIds");
556
+ if (a !== null) {
557
+ const s = a.split(",").map((p) => parseInt(p, 10));
558
+ return l.filter((p) => s.indexOf(p.id) === -1);
559
+ } else
560
+ return l;
561
+ } catch {
562
+ return l;
563
+ }
564
+ }), u = (a) => {
565
+ i((s) => {
566
+ const m = j.getItem("removedTipsIds") || "", p = s.findIndex((b) => b.id === a);
567
+ return p === -1 ? [...s] : (j.setItem(
568
+ "removedTipsIds",
569
+ `${s[p].id.toString()}${m.length > 0 ? `,${m}` : ""}`
570
+ ), s.splice(p, 1), [...s]);
571
+ });
572
+ }, d = o.slice(0).reverse();
573
+ return /* @__PURE__ */ n(v, { children: /* @__PURE__ */ n(
574
+ "div",
575
+ {
576
+ className: "hidden pb-4 pt-8 lg:grid",
577
+ style: {
578
+ gridTemplateColumns: "1fr"
579
+ },
580
+ children: o.map((a) => {
581
+ const s = d.indexOf(a) === 0;
582
+ return /* @__PURE__ */ n(
583
+ "div",
584
+ {
585
+ className: "relative",
586
+ style: {
587
+ gridRowStart: 1,
588
+ gridColumnStart: 1
589
+ },
590
+ children: /* @__PURE__ */ n(
591
+ "div",
592
+ {
593
+ className: "relative",
594
+ style: {
595
+ transform: `scale(${1 - d.indexOf(a) / 20})`,
596
+ top: -d.indexOf(a) * 10,
597
+ opacity: `${1 - d.indexOf(a) / 7}`
598
+ },
599
+ children: /* @__PURE__ */ n(
600
+ lr,
601
+ {
602
+ variant: a.variant ?? "SidebarCard",
603
+ thumbnailUrl: a.thumbnailUrl,
604
+ coverPhoto: a.coverPhoto,
605
+ mediaLink: s ? a.mediaLink : void 0,
606
+ mediaLinkOnClick: s ? () => {
607
+ A.capture("tip_video_clicked", a), a.onClick && a.onClick();
608
+ } : void 0,
609
+ title: e(a.title),
610
+ description: e(a.description),
611
+ learnMore: s ? {
612
+ href: a.href,
613
+ text: e("learn_more"),
614
+ onClick: () => {
615
+ A.capture("tip_learn_more_clicked", a), a.onClick && a.onClick();
616
+ }
617
+ } : void 0,
618
+ actionButton: s ? {
619
+ onClick: () => {
620
+ A.capture("tip_dismiss_clicked", a), u(a.id);
621
+ },
622
+ child: e("dismiss")
623
+ } : void 0,
624
+ containerProps: {
625
+ tabIndex: s ? void 0 : -1,
626
+ "aria-hidden": s ? void 0 : "true"
627
+ }
628
+ }
629
+ )
630
+ }
631
+ )
632
+ },
633
+ a.id
634
+ );
635
+ })
636
+ }
637
+ ) });
638
+ }
639
+ const pr = H(cr);
640
+ function hr({
641
+ title: e,
642
+ description: t,
643
+ background: r,
644
+ features: l,
645
+ buttons: o,
646
+ isParentLoading: i,
647
+ children: u,
648
+ plan: d
649
+ }) {
650
+ const { resolvedTheme: a } = D(), { isPending: s, hasTeamPlan: m } = W(), { data: p } = Z.viewer.teams.getUpgradeable.useQuery(), b = `${r}${a === "dark" ? "-dark" : ""}.jpg`, w = !1, T = !!(p != null && p[0]);
651
+ return d === "team" && (m || T) ? /* @__PURE__ */ n(v, { children: u }) : d === "enterprise" && w ? /* @__PURE__ */ n(v, { children: u }) : s ? /* @__PURE__ */ n(v, { children: i }) : /* @__PURE__ */ h(v, { children: [
652
+ /* @__PURE__ */ h("div", { className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10", children: [
653
+ /* @__PURE__ */ h("picture", { className: "absolute min-h-[295px] w-full rounded-lg object-cover", children: [
654
+ /* @__PURE__ */ n("source", { srcSet: b, media: "(prefers-color-scheme: dark)" }),
655
+ /* @__PURE__ */ n(
656
+ "img",
657
+ {
658
+ className: "absolute min-h-[295px] w-full select-none rounded-lg object-cover object-left md:object-center",
659
+ src: b,
660
+ loading: "lazy",
661
+ alt: e
662
+ }
663
+ )
664
+ ] }),
665
+ /* @__PURE__ */ h("div", { className: "relative my-4 px-8 pb-4 sm:px-14", children: [
666
+ /* @__PURE__ */ n("h1", { className: f("font-cal mt-4 text-3xl"), children: e }),
667
+ /* @__PURE__ */ n("p", { className: f("mb-8 mt-4 max-w-sm"), children: t }),
668
+ o
669
+ ] })
670
+ ] }),
671
+ /* @__PURE__ */ n("div", { className: "mt-4 grid-cols-3 md:grid md:gap-4", children: l.map((g) => /* @__PURE__ */ h("div", { className: "bg-cal-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0", children: [
672
+ g.icon,
673
+ /* @__PURE__ */ n("h2", { className: "font-cal text-emphasis mt-4 text-lg", children: g.title }),
674
+ /* @__PURE__ */ n("p", { className: "text-default", children: g.description })
675
+ ] }, g.title)) })
676
+ ] });
677
+ }
678
+ export {
679
+ pr as Tips,
680
+ hr as UpgradeTip
681
+ };
@@ -1,4 +1,4 @@
1
- import { C as s, b as t, n as r, m as i, D as l, E as o, F as c, H as d, e as n, g as p, I as F, L as g, N as S, P as u, S as k, h as x, j as P, o as b, p as h, c as m, d as I, f as T, l as C, k as E, i as D } from "./index-c1AU6gV4.js";
1
+ import { C as s, b as t, n as r, m as i, D as l, E as o, F as c, H as d, e as n, g as p, I as F, L as g, N as S, P as u, S as k, h as x, j as P, o as b, p as h, c as m, d as I, f as T, l as C, k as E, i as D } from "./index-MEbSBQ6m.js";
2
2
  export {
3
3
  s as Checkbox,
4
4
  t as CheckboxField,