@calcom/atoms 1.0.99 → 1.0.101-booker

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 (220) hide show
  1. package/dist/{AddressInput-WBfvWGkL.js → AddressInput-juYkbZV2.js} +3 -3
  2. package/dist/{AlbyPriceComponent-eW8bnLtO.js → AlbyPriceComponent-zPblWsmO.js} +28 -28
  3. package/dist/{PhoneInput-LeK3XZ0X.js → PhoneInput-lzIUvvEp.js} +1 -1
  4. package/dist/cal-atoms.js +3 -34
  5. package/dist/index-1iD3RAuF.js +83360 -0
  6. package/dist/index-4eiX6cBE.js +1957 -0
  7. package/dist/{index-mhIxRvCU.js → index-pxPagOVY.js} +1 -1
  8. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +6 -0
  10. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts +1 -1
  12. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
  13. package/dist/packages/features/bookings/Booker/utils/event.d.ts +17 -0
  14. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  15. package/dist/packages/features/bookings/lib/get-booking.d.ts +3 -0
  16. package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
  17. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +2 -0
  18. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
  19. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +2 -0
  20. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  21. package/dist/packages/features/bookings/lib/getUserBooking.d.ts +1 -0
  22. package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
  23. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  24. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  25. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +1 -0
  26. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
  27. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  28. package/dist/packages/features/data-table/DataTableProvider.d.ts +4 -2
  29. package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
  30. package/dist/packages/features/data-table/components/DataTableToolbar.d.ts.map +1 -1
  31. package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
  32. package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
  33. package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
  34. package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts +9 -0
  35. package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts.map +1 -0
  36. package/dist/packages/features/data-table/hooks/useSegments.d.ts +3 -0
  37. package/dist/packages/features/data-table/hooks/useSegments.d.ts.map +1 -0
  38. package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts +3 -0
  39. package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts.map +1 -0
  40. package/dist/packages/features/data-table/index.d.ts +1 -1
  41. package/dist/packages/features/data-table/index.d.ts.map +1 -1
  42. package/dist/packages/features/data-table/lib/dateRange.d.ts +7 -0
  43. package/dist/packages/features/data-table/lib/dateRange.d.ts.map +1 -1
  44. package/dist/packages/features/data-table/lib/dateRange.test.d.ts +2 -0
  45. package/dist/packages/features/data-table/lib/dateRange.test.d.ts.map +1 -0
  46. package/dist/packages/features/data-table/lib/types.d.ts +31 -6
  47. package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
  48. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +1 -0
  49. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  50. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts +3 -0
  51. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  52. package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
  53. package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts +3 -1
  54. package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
  55. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -3
  56. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  57. package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts +11 -0
  58. package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -0
  59. package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts +1 -1
  60. package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts.map +1 -1
  61. package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
  62. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts +4 -2
  63. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts.map +1 -1
  64. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +3 -1
  65. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
  66. package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
  67. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
  68. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  69. package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
  70. package/dist/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.d.ts.map +1 -1
  71. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +17 -0
  72. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  73. package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
  74. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +2 -1
  75. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  76. package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +2 -1
  77. package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
  78. package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts +1 -0
  79. package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts.map +1 -1
  80. package/dist/packages/platform/atoms/connect/apple/AppleConnect.d.ts.map +1 -1
  81. package/dist/packages/platform/atoms/connect/google/GcalConnect.d.ts.map +1 -1
  82. package/dist/packages/platform/atoms/connect/outlook/OutlookConnect.d.ts.map +1 -1
  83. package/dist/packages/platform/atoms/connect/stripe/StripeConnect.d.ts.map +1 -1
  84. package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +2 -1
  85. package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts.map +1 -1
  86. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +12 -0
  87. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  88. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  89. package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts +32 -0
  90. package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts.map +1 -0
  91. package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts +2 -1
  92. package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts.map +1 -1
  93. package/dist/packages/platform/atoms/event-types/wrappers/EventPaymentsTabPlatformWrapper.d.ts.map +1 -1
  94. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +2 -1
  95. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  96. package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts +1 -0
  97. package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts.map +1 -1
  98. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -0
  99. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts.map +1 -1
  100. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts +2 -2
  101. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
  102. package/dist/packages/platform/atoms/hooks/event-types/public/useTeamEventType.d.ts.map +1 -1
  103. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts +4 -0
  104. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts.map +1 -0
  105. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts +4 -0
  106. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts.map +1 -0
  107. package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts +3 -10
  108. package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts.map +1 -1
  109. package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts +2 -2
  110. package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts.map +1 -1
  111. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +17 -0
  112. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
  113. package/dist/packages/platform/atoms/index.d.ts +0 -32
  114. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  115. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +2 -1
  116. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
  117. package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +2 -4
  118. package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts.map +1 -1
  119. package/dist/packages/platform/libraries/index.d.ts +2 -0
  120. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  121. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +2 -0
  122. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  123. package/dist/packages/platform/types/bookings/2024-08-13/inputs/get-bookings.input.d.ts.map +1 -1
  124. package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts +5 -0
  125. package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts.map +1 -0
  126. package/dist/packages/platform/types/organizations/bookings/index.d.ts +2 -0
  127. package/dist/packages/platform/types/organizations/bookings/index.d.ts.map +1 -0
  128. package/dist/packages/platform/types/organizations/index.d.ts +1 -0
  129. package/dist/packages/platform/types/organizations/index.d.ts.map +1 -1
  130. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts +6 -4
  131. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
  132. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +15 -3
  133. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
  134. package/dist/packages/platform/types/teams/outputs/index.d.ts +1 -0
  135. package/dist/packages/platform/types/teams/outputs/index.d.ts.map +1 -1
  136. package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts +9 -0
  137. package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts.map +1 -0
  138. package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts +3 -0
  139. package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts.map +1 -1
  140. package/dist/packages/prisma/zod/calendarcache.d.ts +3 -0
  141. package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
  142. package/dist/packages/prisma/zod/filtersegment.d.ts +3 -0
  143. package/dist/packages/prisma/zod/filtersegment.d.ts.map +1 -1
  144. package/dist/packages/prisma/zod/task.d.ts +3 -0
  145. package/dist/packages/prisma/zod/task.d.ts.map +1 -1
  146. package/dist/packages/prisma/zod/user.d.ts +3 -0
  147. package/dist/packages/prisma/zod/user.d.ts.map +1 -1
  148. package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -0
  149. package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
  150. package/dist/packages/prisma/zod-utils.d.ts +126 -3
  151. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  152. package/dist/packages/prisma-client/index.d.ts +408 -5
  153. package/dist/packages/trpc/react/shared.d.ts +1 -1
  154. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  155. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
  156. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +6 -0
  157. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  158. package/dist/style.css +1 -1
  159. package/globals.min.css +2 -14
  160. package/package.json +2 -2
  161. package/dist/AppCard-a2VNbyLx.js +0 -162
  162. package/dist/AppListCardPlatformWrapper-C8hnPpP4.js +0 -9
  163. package/dist/AppListCardWebWrapper-DvvSERyw.js +0 -74
  164. package/dist/AppSettingsInterface-277vkITp.js +0 -75
  165. package/dist/AppSettingsInterface-cKTul9l1.js +0 -29
  166. package/dist/AppSettingsInterface-cRYupPyd.js +0 -23
  167. package/dist/DateRangePicker-vgjaMql7.js +0 -2418
  168. package/dist/EventTypeAppCardInterface-5SmitGNV.js +0 -24
  169. package/dist/EventTypeAppCardInterface-5oCKHCnt.js +0 -24
  170. package/dist/EventTypeAppCardInterface-DCGeU2Nt.js +0 -32
  171. package/dist/EventTypeAppCardInterface-E0Qss22P.js +0 -39
  172. package/dist/EventTypeAppCardInterface-EjBlklYZ.js +0 -32
  173. package/dist/EventTypeAppCardInterface-J-7B6Xjo.js +0 -34
  174. package/dist/EventTypeAppCardInterface-KduqlFNa.js +0 -34
  175. package/dist/EventTypeAppCardInterface-MS4ucwo6.js +0 -49
  176. package/dist/EventTypeAppCardInterface-PTb9KLMK.js +0 -31
  177. package/dist/EventTypeAppCardInterface-Sy_wEWq8.js +0 -493
  178. package/dist/EventTypeAppCardInterface-UnxmvFiF.js +0 -42
  179. package/dist/EventTypeAppCardInterface-Y4hW3FSd.js +0 -24
  180. package/dist/EventTypeAppCardInterface-ax3KRlWb.js +0 -41
  181. package/dist/EventTypeAppCardInterface-gWjvfWM8.js +0 -34
  182. package/dist/EventTypeAppCardInterface-hdSBbtYi.js +0 -34
  183. package/dist/EventTypeAppCardInterface-i0iSNHI5.js +0 -51
  184. package/dist/EventTypeAppCardInterface-iRFQuaNc.js +0 -24
  185. package/dist/EventTypeAppCardInterface-iye41eH9.js +0 -34
  186. package/dist/EventTypeAppCardInterface-jPx0Q4vg.js +0 -42
  187. package/dist/EventTypeAppCardInterface-jsVu8y8O.js +0 -24
  188. package/dist/EventTypeAppCardInterface-k6-pyXdz.js +0 -51
  189. package/dist/EventTypeAppCardInterface-rV9JaOnf.js +0 -86
  190. package/dist/EventTypeAppCardInterface-tRwK3uo8.js +0 -34
  191. package/dist/EventTypeAppCardInterface-u3dNHTwX.js +0 -33
  192. package/dist/EventTypeAppCardInterface-urvIbTUy.js +0 -41
  193. package/dist/EventTypeAppCardInterface-yEwxGABY.js +0 -34
  194. package/dist/EventTypeAppSettingsInterface-H0Y7R_6K.js +0 -48
  195. package/dist/EventTypeAppSettingsInterface-HjjrUG-6.js +0 -120
  196. package/dist/EventTypeAppSettingsInterface-IlX26-MP.js +0 -78
  197. package/dist/EventTypeAppSettingsInterface-UEd9lbfG.js +0 -23
  198. package/dist/EventTypeAppSettingsInterface-VctSrf5M.js +0 -43
  199. package/dist/EventTypeAppSettingsInterface-VdsSNh9p.js +0 -25
  200. package/dist/EventTypeAppSettingsInterface-XljkqZTl.js +0 -23
  201. package/dist/EventTypeAppSettingsInterface-YGCAMT_H.js +0 -72
  202. package/dist/EventTypeAppSettingsInterface-cZcfyfGn.js +0 -24
  203. package/dist/EventTypeAppSettingsInterface-mb6aW1Vk.js +0 -221
  204. package/dist/EventTypeAppSettingsInterface-t9OOHsGu.js +0 -42
  205. package/dist/EventTypeAppSettingsInterface-zpEk1DKo.js +0 -298
  206. package/dist/InstallAppButton-0rF_k2oO.js +0 -14
  207. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  208. package/dist/InstallAppButton-LAgGkMR5.js +0 -14
  209. package/dist/InstallAppButton-mCwpgGMb.js +0 -58
  210. package/dist/StripePaymentForm-7wEfBhaI.js +0 -493
  211. package/dist/currencyOptions-kannG2hu.js +0 -61
  212. package/dist/framer-features-OfBOvlO4.js +0 -443
  213. package/dist/index-61yVVkPy.js +0 -28
  214. package/dist/index-E1a1GKmY.js +0 -155405
  215. package/dist/index-NLytQWtD.js +0 -511
  216. package/dist/packages/features/data-table/lib/resizing.d.ts +0 -9
  217. package/dist/packages/features/data-table/lib/resizing.d.ts.map +0 -1
  218. package/dist/packages/features/data-table/lib/segments.d.ts +0 -27
  219. package/dist/packages/features/data-table/lib/segments.d.ts.map +0 -1
  220. package/dist/useIsAppEnabled-bcfIdtzp.js +0 -18
package/package.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "type": "module",
5
5
  "description": "Customizable UI components to integrate scheduling into your product.",
6
6
  "authors": "Cal.com, Inc.",
7
- "version": "1.0.99",
7
+ "version": "1.0.101-booker",
8
8
  "scripts": {
9
- "dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch",
9
+ "dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --watch",
10
10
  "build": "NODE_OPTIONS='--max_old_space_size=16384' yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify && mkdir ./dist/packages/prisma-client && cp -rf ../../../node_modules/.prisma/client/*.d.ts ./dist/packages/prisma-client",
11
11
  "publish": "rm -rf dist && yarn build && npm publish --access public",
12
12
  "test": "jest"
@@ -1,162 +0,0 @@
1
- import { jsx as s, jsxs as l } from "react/jsx-runtime";
2
- import { a7 as S, y as N, q as B, u as O, a8 as P, M as r, r as w, U as v, a9 as k, aa as C, t as j, ab as $, ac as f, ad as q, ae as E, p as L, X as R } from "./index-E1a1GKmY.js";
3
- function T(e) {
4
- const { status: a } = S.useSession();
5
- return N.viewer.apps.appById.useQuery(
6
- { appId: e },
7
- {
8
- enabled: a === "authenticated"
9
- }
10
- );
11
- }
12
- function U({
13
- appId: e,
14
- className: a,
15
- returnTo: m,
16
- teamId: n
17
- }) {
18
- const { t: d } = B(), { data: i } = T(e), o = N.useUtils(), u = O(null, {
19
- returnTo: m,
20
- onSuccess: (t) => {
21
- o.viewer.apps.appById.invalidate({ appId: e }), o.viewer.apps.integrations.invalidate({
22
- extendsFeature: "EventType",
23
- ...n && { teamId: n }
24
- }), !(t != null && t.setupPending) && v(d("app_successfully_installed"), "success");
25
- },
26
- onError: (t) => {
27
- t instanceof Error && v(t.message || d("app_could_not_be_installed"), "error");
28
- }
29
- });
30
- return i ? /* @__PURE__ */ s(
31
- P,
32
- {
33
- type: i.type,
34
- teamsPlanRequired: i.teamsPlanRequired,
35
- wrapperClassName: r("[@media(max-width:260px)]:w-full", a),
36
- render: ({ useDefaultComponent: t, ...c }) => (t && (c = {
37
- ...c,
38
- onClick: () => {
39
- u.mutate({
40
- type: i.type,
41
- variant: i.variant,
42
- slug: i.slug,
43
- ...n && { teamId: n }
44
- });
45
- }
46
- }), /* @__PURE__ */ s(
47
- w,
48
- {
49
- loading: u.isPending,
50
- color: "secondary",
51
- className: "[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center",
52
- StartIcon: "plus",
53
- ...c,
54
- children: d("add")
55
- }
56
- ))
57
- }
58
- ) : null;
59
- }
60
- function z({
61
- app: e,
62
- description: a,
63
- switchOnClick: m,
64
- switchChecked: n,
65
- children: d,
66
- returnTo: i,
67
- teamId: o,
68
- disableSwitch: u,
69
- switchTooltip: t,
70
- hideSettingsIcon: c = !1,
71
- hideAppCardOptions: y = !1
72
- }) {
73
- const { t: h } = k(), [b] = C(), { setAppData: A, LockedIcon: I, disabled: _ } = j(), x = $();
74
- return /* @__PURE__ */ l(
75
- "div",
76
- {
77
- className: r(
78
- "border-subtle",
79
- (e == null ? void 0 : e.isInstalled) && "mb-4 rounded-md border",
80
- !e.enabled && "grayscale"
81
- ),
82
- children: [
83
- /* @__PURE__ */ s("div", { className: r(e.isInstalled ? "p-4 text-sm sm:p-4" : "px-5 py-4 text-sm sm:px-5"), children: /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-2 sm:flex-row sm:gap-0", children: [
84
- /* @__PURE__ */ s(
85
- f,
86
- {
87
- href: `/apps/${e.slug}`,
88
- className: r(e != null && e.isInstalled ? "mr-[11px]" : "mr-3", "h-auto w-10 rounded-sm"),
89
- children: /* @__PURE__ */ s(
90
- "img",
91
- {
92
- className: r(
93
- (e == null ? void 0 : e.logo.includes("-dark")) && "dark:invert",
94
- e != null && e.isInstalled ? "min-w-[42px]" : "min-w-[40px]",
95
- "w-full"
96
- ),
97
- src: e == null ? void 0 : e.logo,
98
- alt: e == null ? void 0 : e.name
99
- }
100
- )
101
- }
102
- ),
103
- /* @__PURE__ */ l("div", { className: "flex flex-col pe-3", children: [
104
- /* @__PURE__ */ l("div", { className: "text-emphasis", children: [
105
- /* @__PURE__ */ s("span", { className: r((e == null ? void 0 : e.isInstalled) && "text-base", "font-semibold leading-4"), children: e == null ? void 0 : e.name }),
106
- !(e != null && e.isInstalled) && /* @__PURE__ */ s("span", { className: "bg-emphasis ml-1 rounded px-1 py-0.5 text-xs font-medium leading-3 tracking-[0.01em]", children: (e == null ? void 0 : e.categories[0].charAt(0).toUpperCase()) + (e == null ? void 0 : e.categories[0].slice(1)) })
107
- ] }),
108
- /* @__PURE__ */ s("p", { title: e == null ? void 0 : e.description, className: "text-default line-clamp-1 pt-1 text-sm font-normal", children: a || (e == null ? void 0 : e.description) })
109
- ] }),
110
- /* @__PURE__ */ l("div", { className: "ml-auto flex items-center space-x-2", children: [
111
- e.credentialOwner && !x && /* @__PURE__ */ s("div", { className: "ml-auto", children: /* @__PURE__ */ s(q, { variant: "gray", children: /* @__PURE__ */ l("div", { className: "flex items-center", children: [
112
- /* @__PURE__ */ s(
113
- E,
114
- {
115
- className: "mr-2",
116
- alt: e.credentialOwner.name || "Credential Owner Name",
117
- size: "sm",
118
- imageSrc: e.credentialOwner.avatar
119
- }
120
- ),
121
- e.credentialOwner.name
122
- ] }) }) }),
123
- e != null && e.isInstalled || e.credentialOwner ? /* @__PURE__ */ s("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ s(
124
- L,
125
- {
126
- disabled: !e.enabled || _ || u,
127
- onCheckedChange: (g) => {
128
- m && m(g), A("enabled", g);
129
- },
130
- checked: n,
131
- LockedIcon: I,
132
- "data-testid": `${e.slug}-app-switch`,
133
- tooltip: t
134
- }
135
- ) }) : /* @__PURE__ */ s(
136
- U,
137
- {
138
- className: "ml-auto flex items-center",
139
- appId: e.slug,
140
- returnTo: i,
141
- teamId: o
142
- }
143
- )
144
- ] })
145
- ] }) }),
146
- y ? null : /* @__PURE__ */ l("div", { ref: b, children: [
147
- (e == null ? void 0 : e.isInstalled) && n && /* @__PURE__ */ s("hr", { className: "border-subtle" }),
148
- e != null && e.isInstalled && n ? e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ l("div", { className: "relative p-4 pt-5 text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
149
- !c && !x && /* @__PURE__ */ s(f, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ s(R, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
150
- d
151
- ] }) : /* @__PURE__ */ l("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
152
- /* @__PURE__ */ s("p", { children: h("this_app_is_not_setup_already") }),
153
- /* @__PURE__ */ s(f, { href: `/apps/${e.slug}/setup`, children: /* @__PURE__ */ s(w, { StartIcon: "settings", children: h("setup") }) })
154
- ] }) : null
155
- ] })
156
- ]
157
- }
158
- );
159
- }
160
- export {
161
- z as A
162
- };
@@ -1,9 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { A as p } from "./index-E1a1GKmY.js";
3
- function s(o) {
4
- const t = `https://app.cal.com${o.logo}`;
5
- return /* @__PURE__ */ r(p, { ...o, logo: t });
6
- }
7
- export {
8
- s as default
9
- };
@@ -1,74 +0,0 @@
1
- import { jsx as P } from "react/jsx-runtime";
2
- import { Z as i, s as y, _ as A, $, A as R } from "./index-E1a1GKmY.js";
3
- import { useMemo as Q, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
4
- i.string().or(i.number()).or(i.array(i.number())).transform((r) => typeof r == "string" ? r.split(",").map((o) => Number(o)) : Array.isArray(r) ? r : [r]);
5
- i.preprocess((r) => i.string().parse(r).split(","), i.string().array()).or(i.string().array());
6
- function x(r) {
7
- const o = y.useRouter(), c = A(), u = y.usePathname(), a = r.safeParse(c);
8
- let s = Q(() => ({}), []);
9
- d(() => {
10
- a.success && a.data && Object.entries(a.data).forEach(([e, t]) => {
11
- if (e in c || !t)
12
- return;
13
- const n = new URLSearchParams(s);
14
- n.set(String(e), String(t)), o.replace(`${u}?${n.toString()}`);
15
- });
16
- }, [a, r, o, u, c, s]), a.success ? s = a.data : a.success || console.error(a.error);
17
- const m = b(
18
- function(t, n) {
19
- const p = new URLSearchParams(s);
20
- p.set(String(t), String(n)), o.replace(`${u}?${p.toString()}`);
21
- },
22
- // eslint-disable-next-line react-hooks/exhaustive-deps
23
- [s, o]
24
- );
25
- function l(e) {
26
- const t = new URLSearchParams(s);
27
- t.delete(String(e)), o.replace(`${u}?${t.toString()}`);
28
- }
29
- function f(e, t) {
30
- const n = s[e];
31
- if (Array.isArray(n)) {
32
- if (n.includes(t))
33
- return;
34
- m(e, [...n, t]);
35
- } else
36
- m(e, [t]);
37
- }
38
- function h(e, t) {
39
- const n = s[e];
40
- if (Array.isArray(n) && n.length > 1) {
41
- const p = n.filter((S) => S !== t);
42
- m(e, p);
43
- } else
44
- l(e);
45
- }
46
- function g() {
47
- u !== null && o.replace(u);
48
- }
49
- return {
50
- data: s,
51
- setQuery: m,
52
- removeByKey: l,
53
- pushItemToKey: f,
54
- removeItemByKeyAndValue: h,
55
- removeAllQueryParams: g
56
- };
57
- }
58
- const C = i.object({ hl: i.string().optional() });
59
- function j(r) {
60
- const { slug: o, shouldHighlight: c } = r, {
61
- data: { hl: u }
62
- } = x(C), a = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = $(), h = y.usePathname();
63
- return d(() => (c && s && f !== null && h !== null && (l.current = setTimeout(() => {
64
- const g = new URLSearchParams(f.toString());
65
- g.delete("hl"), g.delete("category"), m(!1);
66
- const e = g.toString();
67
- a.replace(`${h}${e !== "" ? `?${e}` : ""}`);
68
- }, 3e3)), () => {
69
- l.current && (clearTimeout(l.current), l.current = null);
70
- }), [s, h, a, f, c]), /* @__PURE__ */ P(R, { ...r });
71
- }
72
- export {
73
- j as default
74
- };
@@ -1,75 +0,0 @@
1
- import { jsxs as a, jsx as e, Fragment as r } from "react/jsx-runtime";
2
- import { r as i, q as o } from "./index-E1a1GKmY.js";
3
- function d({ template: t }) {
4
- return /* @__PURE__ */ a("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
5
- /* @__PURE__ */ a("div", { className: "flex items-start justify-start", children: [
6
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "mr-4 flex h-12 w-12 items-center justify-center rounded-md p-1", children: /* @__PURE__ */ e("img", { className: "h-8", alt: t.app, src: `/api/app-store/zapier/${t.icon}` }) }) }),
7
- /* @__PURE__ */ e("div", { className: "mr-4", children: /* @__PURE__ */ a("div", { children: [
8
- /* @__PURE__ */ e("p", { className: "text-emphasis truncate text-sm font-medium leading-4", children: t.app }),
9
- /* @__PURE__ */ e("p", { className: "text-subtle mt-[2px] text-sm", children: t.text })
10
- ] }) })
11
- ] }),
12
- /* @__PURE__ */ e("div", { className: "hidden w-full sm:block", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: " w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) }),
13
- /* @__PURE__ */ e("div", { className: "mt-2 block w-full sm:hidden", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: "w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) })
14
- ] });
15
- }
16
- const n = [
17
- {
18
- icon: "gmail.svg",
19
- app: "Gmail",
20
- text: "Send emails via Gmail for scheduled events",
21
- link: "https://zapier.com/app/editor/template/1071345"
22
- },
23
- {
24
- icon: "googleSheets.svg",
25
- app: "Google Sheets",
26
- text: "Create Google Sheets rows for scheduled events",
27
- link: "https://zapier.com/app/editor/template/1082047"
28
- },
29
- {
30
- icon: "salesforce.svg",
31
- app: "Salesforce",
32
- text: "Create Salesforce leads from new bookings",
33
- link: "https://zapier.com/app/editor/template/1082050"
34
- },
35
- {
36
- icon: "todoist.svg",
37
- app: "Todoist",
38
- text: "Create Todoist tasks for scheduled events",
39
- link: "https://zapier.com/app/editor/template/1082073"
40
- },
41
- {
42
- icon: "gmail.svg",
43
- app: "Gmail",
44
- text: "Send emails via Gmail for rescheduled events",
45
- link: "https://zapier.com/app/editor/template/1083605"
46
- },
47
- {
48
- icon: "gmail.svg",
49
- app: "Gmail",
50
- text: "Send emails via Gmail for cancelled events",
51
- link: "https://zapier.com/app/editor/template/1083609"
52
- },
53
- {
54
- icon: "gmail.svg",
55
- app: "Gmail",
56
- text: "Send emails via Gmail after scheduled meetings end",
57
- link: "https://zapier.com/app/editor/template/1083613"
58
- },
59
- {
60
- icon: "googleCalendar.svg",
61
- app: "Google Calendar",
62
- text: "Add new bookings to Google Calendar",
63
- link: "https://zapier.com/app/editor/template/1083651"
64
- }
65
- ];
66
- function m() {
67
- const { t } = o();
68
- return /* @__PURE__ */ a(r, { children: [
69
- /* @__PURE__ */ e("div", { className: "text-sm font-semibold leading-4 ", children: t("get_started_zapier_templates") }),
70
- /* @__PURE__ */ e("div", { className: "mt-4 grid gap-4 md:grid-cols-2", children: n.map((s, l) => /* @__PURE__ */ e(d, { template: s }, l)) })
71
- ] });
72
- }
73
- export {
74
- m as default
75
- };
@@ -1,29 +0,0 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { useState as s } from "react";
3
- import { q as i, f as l, r as m } from "./index-E1a1GKmY.js";
4
- function h() {
5
- const { t: a } = i(), n = "metric", [e, r] = s("");
6
- return /* @__PURE__ */ o("div", { className: "space-y-4 text-sm", children: [
7
- /* @__PURE__ */ t(
8
- l,
9
- {
10
- placeholder: "San Francisco",
11
- value: e,
12
- name: "Enter City",
13
- onChange: async (c) => {
14
- r(c.target.value);
15
- }
16
- }
17
- ),
18
- /* @__PURE__ */ t(
19
- m,
20
- {
21
- href: `webcal://weather-in-calendar.com/cal/weather-cal.php?city=${e}&units=${n}&temperature=day`,
22
- children: a("add_to_calendar")
23
- }
24
- )
25
- ] });
26
- }
27
- export {
28
- h as default
29
- };
@@ -1,23 +0,0 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { useState as p } from "react";
3
- import { q as r, f as u, r as i } from "./index-E1a1GKmY.js";
4
- function d() {
5
- const { t: e } = r(), [s, n] = p("");
6
- return /* @__PURE__ */ o("div", { className: "space-y-4 px-4 pb-4 pt-4 text-sm", children: [
7
- /* @__PURE__ */ t(
8
- u,
9
- {
10
- placeholder: "Some Input",
11
- value: s,
12
- name: "Enter Input",
13
- onChange: async (a) => {
14
- n(a.target.value);
15
- }
16
- }
17
- ),
18
- /* @__PURE__ */ t(i, { children: e("submit") })
19
- ] });
20
- }
21
- export {
22
- d as default
23
- };