@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
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-E1a1GKmY.js";
3
- import { A as m } from "./AppCard-a2VNbyLx.js";
4
- import { u } from "./useIsAppEnabled-bcfIdtzp.js";
5
- const l = function({ app: t, eventType: e }) {
6
- var a;
7
- const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
8
- return /* @__PURE__ */ s(
9
- m,
10
- {
11
- returnTo: `${i}${p}?tabName=apps`,
12
- app: t,
13
- teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
14
- switchOnClick: (o) => {
15
- r(o);
16
- },
17
- switchChecked: n,
18
- hideAppCardOptions: !0
19
- }
20
- );
21
- };
22
- export {
23
- l as default
24
- };
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-E1a1GKmY.js";
3
- import { A as m } from "./AppCard-a2VNbyLx.js";
4
- import { u } from "./useIsAppEnabled-bcfIdtzp.js";
5
- const l = function({ app: t, eventType: e }) {
6
- var a;
7
- const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
8
- return /* @__PURE__ */ s(
9
- m,
10
- {
11
- returnTo: `${i}${p}?tabName=apps`,
12
- app: t,
13
- teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
14
- switchOnClick: (o) => {
15
- r(o);
16
- },
17
- switchChecked: n,
18
- hideAppCardOptions: !0
19
- }
20
- );
21
- };
22
- export {
23
- l as default
24
- };
@@ -1,32 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useState as c } from "react";
3
- import { t as m, f as l } from "./index-E1a1GKmY.js";
4
- import { A as f } from "./AppCard-a2VNbyLx.js";
5
- const k = function({ app: p, eventType: i }) {
6
- var n;
7
- const { getAppData: t, setAppData: o } = m(), s = t("trackingId"), [d, a] = c(t("enabled"));
8
- return /* @__PURE__ */ r(
9
- f,
10
- {
11
- app: p,
12
- switchOnClick: (e) => {
13
- a(!!e);
14
- },
15
- switchChecked: d,
16
- teamId: ((n = i.team) == null ? void 0 : n.id) || void 0,
17
- children: /* @__PURE__ */ r(
18
- l,
19
- {
20
- name: "Tracking ID",
21
- value: s,
22
- onChange: (e) => {
23
- o("trackingId", e.target.value);
24
- }
25
- }
26
- )
27
- }
28
- );
29
- };
30
- export {
31
- k as default
32
- };
@@ -1,39 +0,0 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { t as m, X as o } from "./index-E1a1GKmY.js";
3
- import { A as u } from "./AppCard-a2VNbyLx.js";
4
- import { u as h } from "./useIsAppEnabled-bcfIdtzp.js";
5
- const E = function({ eventType: a, app: s }) {
6
- var n;
7
- const { getAppData: l, setAppData: i } = m(), p = l("isSunrise"), { enabled: c, updateEnabled: r } = h(s);
8
- return /* @__PURE__ */ t(
9
- u,
10
- {
11
- app: s,
12
- switchOnClick: (d) => {
13
- d ? (r(!0), i("isSunrise", !0)) : (r(!1), i("isSunrise", !1));
14
- },
15
- switchChecked: c,
16
- teamId: ((n = a.team) == null ? void 0 : n.id) || void 0,
17
- children: /* @__PURE__ */ e("div", { className: "mt-2 text-sm", children: [
18
- /* @__PURE__ */ e("div", { className: "flex", children: [
19
- /* @__PURE__ */ t("span", { className: "ltr:mr-2 rtl:ml-2", children: /* @__PURE__ */ t(o, { name: p ? "sunrise" : "sunset" }) }),
20
- "I am an AppCard for Event with Title: ",
21
- a.title
22
- ] }),
23
- " ",
24
- /* @__PURE__ */ e("div", { className: "mt-2", children: [
25
- "Edit ",
26
- /* @__PURE__ */ e("span", { className: "italic", children: [
27
- "packages/app-store/",
28
- s.slug,
29
- "/EventTypeAppCardInterface.tsx"
30
- ] }),
31
- " to play with me"
32
- ] })
33
- ] })
34
- }
35
- );
36
- };
37
- export {
38
- E as default
39
- };
@@ -1,32 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { t as d } from "./index-E1a1GKmY.js";
3
- import { A as m } from "./AppCard-a2VNbyLx.js";
4
- import { u as c } from "./useIsAppEnabled-bcfIdtzp.js";
5
- import u from "./EventTypeAppSettingsInterface-UEd9lbfG.js";
6
- const E = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = d(), { enabled: o, updateEnabled: i } = c(t);
9
- return /* @__PURE__ */ a(
10
- m,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: i,
15
- switchChecked: o,
16
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
17
- children: /* @__PURE__ */ a(
18
- u,
19
- {
20
- eventType: e,
21
- slug: t.slug,
22
- disabled: n,
23
- getAppData: r,
24
- setAppData: s
25
- }
26
- )
27
- }
28
- );
29
- };
30
- export {
31
- E as default
32
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-E1a1GKmY.js";
3
- import { A as c } from "./AppCard-a2VNbyLx.js";
4
- import { u } from "./useIsAppEnabled-bcfIdtzp.js";
5
- import l from "./EventTypeAppSettingsInterface-VdsSNh9p.js";
6
- const b = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
9
- return /* @__PURE__ */ a(
10
- c,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: (d) => {
15
- i(d);
16
- },
17
- switchChecked: o,
18
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
19
- children: /* @__PURE__ */ a(
20
- l,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: n,
25
- getAppData: r,
26
- setAppData: s
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- b as default
34
- };
@@ -1,34 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { t as l, f as m } from "./index-E1a1GKmY.js";
3
- import { A as u } from "./AppCard-a2VNbyLx.js";
4
- import { u as I } from "./useIsAppEnabled-bcfIdtzp.js";
5
- const D = function({ app: t, eventType: n }) {
6
- var a;
7
- const { getAppData: o, setAppData: r, disabled: d } = l(), s = o("SITE_ID"), { enabled: i, updateEnabled: c } = I(t);
8
- return /* @__PURE__ */ p(
9
- u,
10
- {
11
- app: t,
12
- switchOnClick: (e) => {
13
- c(e);
14
- },
15
- switchChecked: i,
16
- teamId: ((a = n.team) == null ? void 0 : a.id) || void 0,
17
- children: /* @__PURE__ */ p(
18
- m,
19
- {
20
- disabled: d,
21
- name: "Site ID",
22
- value: s,
23
- placeholder: "Enter your Site ID",
24
- onChange: (e) => {
25
- r("SITE_ID", e.target.value);
26
- }
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- D as default
34
- };
@@ -1,49 +0,0 @@
1
- import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
- import { t as h, f as n } from "./index-E1a1GKmY.js";
3
- import { A as I } from "./AppCard-a2VNbyLx.js";
4
- import { u as C } from "./useIsAppEnabled-bcfIdtzp.js";
5
- const R = function({ app: s, eventType: o }) {
6
- var i;
7
- const { getAppData: p, setAppData: r, disabled: t } = h(), c = p("SITE_ID"), d = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = C(s);
8
- return /* @__PURE__ */ a(
9
- I,
10
- {
11
- app: s,
12
- switchOnClick: (e) => {
13
- u(e);
14
- },
15
- switchChecked: l,
16
- teamId: ((i = o.team) == null ? void 0 : i.id) || void 0,
17
- children: /* @__PURE__ */ m("fieldset", { className: "space-y-2", disabled: t, children: [
18
- /* @__PURE__ */ a(
19
- n,
20
- {
21
- disabled: t,
22
- name: "Script URL",
23
- value: d,
24
- defaultValue: "https://us.umami.is/script.js",
25
- placeholder: "Enter the script source URL",
26
- onChange: (e) => {
27
- r("SCRIPT_URL", e.target.value);
28
- }
29
- }
30
- ),
31
- /* @__PURE__ */ a(
32
- n,
33
- {
34
- disabled: t,
35
- name: "Site ID",
36
- value: c,
37
- placeholder: "Enter your Site ID",
38
- onChange: (e) => {
39
- r("SITE_ID", e.target.value);
40
- }
41
- }
42
- )
43
- ] })
44
- }
45
- );
46
- };
47
- export {
48
- R as default
49
- };
@@ -1,31 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { t as d } from "./index-E1a1GKmY.js";
3
- import { A as c } from "./AppCard-a2VNbyLx.js";
4
- import { u as m } from "./useIsAppEnabled-bcfIdtzp.js";
5
- import l from "./EventTypeAppSettingsInterface-H0Y7R_6K.js";
6
- const b = function({ app: t, eventType: p }) {
7
- const { getAppData: r, setAppData: s, disabled: a } = d(), { enabled: n, updateEnabled: o } = m(t);
8
- return /* @__PURE__ */ e(
9
- c,
10
- {
11
- app: t,
12
- switchOnClick: (i) => {
13
- o(i);
14
- },
15
- switchChecked: n,
16
- children: /* @__PURE__ */ e(
17
- l,
18
- {
19
- slug: t.slug,
20
- eventType: p,
21
- disabled: a,
22
- getAppData: r,
23
- setAppData: s
24
- }
25
- )
26
- }
27
- );
28
- };
29
- export {
30
- b as default
31
- };