@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,443 +0,0 @@
1
- import { ax as L, ay as V, az as D, aA as z, aB as j, aC as q, aD as _, aE as Q, aF as re, aG as ie, aH as oe, aI as ae } from "./index-E1a1GKmY.js";
2
- function b(t, e, n, s = { passive: !0 }) {
3
- return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
4
- }
5
- const ce = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
6
- function Z(t, e = "page") {
7
- return {
8
- point: {
9
- x: t[e + "X"],
10
- y: t[e + "Y"]
11
- }
12
- };
13
- }
14
- const ue = (t) => (e) => ce(e) && t(e, Z(e));
15
- function T(t, e, n, s) {
16
- return b(t, e, ue(n), s);
17
- }
18
- function $(t) {
19
- let e = null;
20
- return () => {
21
- const n = () => {
22
- e = null;
23
- };
24
- return e === null ? (e = t, n) : !1;
25
- };
26
- }
27
- const J = $("dragHorizontal"), X = $("dragVertical");
28
- function le(t) {
29
- let e = !1;
30
- if (t === "y")
31
- e = X();
32
- else if (t === "x")
33
- e = J();
34
- else {
35
- const n = J(), s = X();
36
- n && s ? e = () => {
37
- n(), s();
38
- } : (n && n(), s && s());
39
- }
40
- return e;
41
- }
42
- function ee() {
43
- const t = le(!0);
44
- return t ? (t(), !1) : !0;
45
- }
46
- class w {
47
- constructor(e) {
48
- this.isMounted = !1, this.node = e;
49
- }
50
- update() {
51
- }
52
- }
53
- function Y(t, e) {
54
- const n = "pointer" + (e ? "enter" : "leave"), s = "onHover" + (e ? "Start" : "End"), o = (a, l) => {
55
- if (a.type === "touch" || ee())
56
- return;
57
- const c = t.getProps();
58
- t.animationState && c.whileHover && t.animationState.setActive("whileHover", e), c[s] && V.update(() => c[s](a, l));
59
- };
60
- return T(t.current, n, o, {
61
- passive: !t.getProps()[s]
62
- });
63
- }
64
- class he extends w {
65
- mount() {
66
- this.unmount = L(Y(this.node, !0), Y(this.node, !1));
67
- }
68
- unmount() {
69
- }
70
- }
71
- class de extends w {
72
- constructor() {
73
- super(...arguments), this.isActive = !1;
74
- }
75
- onFocus() {
76
- let e = !1;
77
- try {
78
- e = this.node.current.matches(":focus-visible");
79
- } catch {
80
- e = !0;
81
- }
82
- !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
83
- }
84
- onBlur() {
85
- !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
86
- }
87
- mount() {
88
- this.unmount = L(b(this.node.current, "focus", () => this.onFocus()), b(this.node.current, "blur", () => this.onBlur()));
89
- }
90
- unmount() {
91
- }
92
- }
93
- const te = (t, e) => e ? t === e ? !0 : te(t, e.parentElement) : !1;
94
- function H(t, e) {
95
- if (!e)
96
- return;
97
- const n = new PointerEvent("pointer" + t);
98
- e(n, Z(n));
99
- }
100
- class fe extends w {
101
- constructor() {
102
- super(...arguments), this.removeStartListeners = D, this.removeEndListeners = D, this.removeAccessibleListeners = D, this.startPointerPress = (e, n) => {
103
- if (this.removeEndListeners(), this.isPressing)
104
- return;
105
- const s = this.node.getProps(), a = T(window, "pointerup", (c, i) => {
106
- if (!this.checkPressEnd())
107
- return;
108
- const { onTap: r, onTapCancel: u } = this.node.getProps();
109
- V.update(() => {
110
- te(this.node.current, c.target) ? r && r(c, i) : u && u(c, i);
111
- });
112
- }, { passive: !(s.onTap || s.onPointerUp) }), l = T(window, "pointercancel", (c, i) => this.cancelPress(c, i), { passive: !(s.onTapCancel || s.onPointerCancel) });
113
- this.removeEndListeners = L(a, l), this.startPress(e, n);
114
- }, this.startAccessiblePress = () => {
115
- const e = (a) => {
116
- if (a.key !== "Enter" || this.isPressing)
117
- return;
118
- const l = (c) => {
119
- c.key !== "Enter" || !this.checkPressEnd() || H("up", (i, r) => {
120
- const { onTap: u } = this.node.getProps();
121
- u && V.update(() => u(i, r));
122
- });
123
- };
124
- this.removeEndListeners(), this.removeEndListeners = b(this.node.current, "keyup", l), H("down", (c, i) => {
125
- this.startPress(c, i);
126
- });
127
- }, n = b(this.node.current, "keydown", e), s = () => {
128
- this.isPressing && H("cancel", (a, l) => this.cancelPress(a, l));
129
- }, o = b(this.node.current, "blur", s);
130
- this.removeAccessibleListeners = L(n, o);
131
- };
132
- }
133
- startPress(e, n) {
134
- this.isPressing = !0;
135
- const { onTapStart: s, whileTap: o } = this.node.getProps();
136
- o && this.node.animationState && this.node.animationState.setActive("whileTap", !0), s && V.update(() => s(e, n));
137
- }
138
- checkPressEnd() {
139
- return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !ee();
140
- }
141
- cancelPress(e, n) {
142
- if (!this.checkPressEnd())
143
- return;
144
- const { onTapCancel: s } = this.node.getProps();
145
- s && V.update(() => s(e, n));
146
- }
147
- mount() {
148
- const e = this.node.getProps(), n = T(this.node.current, "pointerdown", this.startPointerPress, { passive: !(e.onTapStart || e.onPointerStart) }), s = b(this.node.current, "focus", this.startAccessiblePress);
149
- this.removeStartListeners = L(n, s);
150
- }
151
- unmount() {
152
- this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
153
- }
154
- }
155
- const B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), pe = (t) => {
156
- const e = B.get(t.target);
157
- e && e(t);
158
- }, me = (t) => {
159
- t.forEach(pe);
160
- };
161
- function ve({ root: t, ...e }) {
162
- const n = t || document;
163
- K.has(n) || K.set(n, {});
164
- const s = K.get(n), o = JSON.stringify(e);
165
- return s[o] || (s[o] = new IntersectionObserver(me, { root: t, ...e })), s[o];
166
- }
167
- function Pe(t, e, n) {
168
- const s = ve(e);
169
- return B.set(t, n), s.observe(t), () => {
170
- B.delete(t), s.unobserve(t);
171
- };
172
- }
173
- const ge = {
174
- some: 0,
175
- all: 1
176
- };
177
- class Ae extends w {
178
- constructor() {
179
- super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
180
- }
181
- startObserver() {
182
- this.unmount();
183
- const { viewport: e = {} } = this.node.getProps(), { root: n, margin: s, amount: o = "some", once: a } = e, l = {
184
- root: n ? n.current : void 0,
185
- rootMargin: s,
186
- threshold: typeof o == "number" ? o : ge[o]
187
- }, c = (i) => {
188
- const { isIntersecting: r } = i;
189
- if (this.isInView === r || (this.isInView = r, a && !r && this.hasEnteredView))
190
- return;
191
- r && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", r);
192
- const { onViewportEnter: u, onViewportLeave: p } = this.node.getProps(), m = r ? u : p;
193
- m && m(i);
194
- };
195
- return Pe(this.node.current, l, c);
196
- }
197
- mount() {
198
- this.startObserver();
199
- }
200
- update() {
201
- if (typeof IntersectionObserver > "u")
202
- return;
203
- const { props: e, prevProps: n } = this.node;
204
- ["amount", "margin", "root"].some(ye(e, n)) && this.startObserver();
205
- }
206
- unmount() {
207
- }
208
- }
209
- function ye({ viewport: t = {} }, { viewport: e = {} } = {}) {
210
- return (n) => t[n] !== e[n];
211
- }
212
- const be = {
213
- inView: {
214
- Feature: Ae
215
- },
216
- tap: {
217
- Feature: fe
218
- },
219
- focus: {
220
- Feature: de
221
- },
222
- hover: {
223
- Feature: he
224
- }
225
- };
226
- function ne(t, e) {
227
- if (!Array.isArray(e))
228
- return !1;
229
- const n = e.length;
230
- if (n !== t.length)
231
- return !1;
232
- for (let s = 0; s < n; s++)
233
- if (e[s] !== t[s])
234
- return !1;
235
- return !0;
236
- }
237
- function G(t, e, n = {}) {
238
- const s = z(t, e, n.custom);
239
- let { transition: o = t.getDefaultTransition() || {} } = s || {};
240
- n.transitionOverride && (o = n.transitionOverride);
241
- const a = s ? () => Promise.all(j(t, s, n)) : () => Promise.resolve(), l = t.variantChildren && t.variantChildren.size ? (i = 0) => {
242
- const { delayChildren: r = 0, staggerChildren: u, staggerDirection: p } = o;
243
- return we(t, e, r + i, u, p, n);
244
- } : () => Promise.resolve(), { when: c } = o;
245
- if (c) {
246
- const [i, r] = c === "beforeChildren" ? [a, l] : [l, a];
247
- return i().then(() => r());
248
- } else
249
- return Promise.all([a(), l(n.delay)]);
250
- }
251
- function we(t, e, n = 0, s = 0, o = 1, a) {
252
- const l = [], c = (t.variantChildren.size - 1) * s, i = o === 1 ? (r = 0) => r * s : (r = 0) => c - r * s;
253
- return Array.from(t.variantChildren).sort(Se).forEach((r, u) => {
254
- r.notify("AnimationStart", e), l.push(G(r, e, {
255
- ...a,
256
- delay: n + i(u)
257
- }).then(() => r.notify("AnimationComplete", e)));
258
- }), Promise.all(l);
259
- }
260
- function Se(t, e) {
261
- return t.sortNodePosition(e);
262
- }
263
- function Ce(t, e, n = {}) {
264
- t.notify("AnimationStart", e);
265
- let s;
266
- if (Array.isArray(e)) {
267
- const o = e.map((a) => G(t, a, n));
268
- s = Promise.all(o);
269
- } else if (typeof e == "string")
270
- s = G(t, e, n);
271
- else {
272
- const o = typeof e == "function" ? z(t, e, n.custom) : e;
273
- s = Promise.all(j(t, o, n));
274
- }
275
- return s.then(() => t.notify("AnimationComplete", e));
276
- }
277
- const Ve = [...Q].reverse(), Le = Q.length;
278
- function ke(t) {
279
- return (e) => Promise.all(e.map(({ animation: n, options: s }) => Ce(t, n, s)));
280
- }
281
- function Te(t) {
282
- let e = ke(t);
283
- const n = xe();
284
- let s = !0;
285
- const o = (i, r) => {
286
- const u = z(t, r);
287
- if (u) {
288
- const { transition: p, transitionEnd: m, ...v } = u;
289
- i = { ...i, ...v, ...m };
290
- }
291
- return i;
292
- };
293
- function a(i) {
294
- e = i(t);
295
- }
296
- function l(i, r) {
297
- const u = t.getProps(), p = t.getVariantContext(!0) || {}, m = [], v = /* @__PURE__ */ new Set();
298
- let g = {}, M = 1 / 0;
299
- for (let A = 0; A < Le; A++) {
300
- const f = Ve[A], h = n[f], P = u[f] !== void 0 ? u[f] : p[f], O = re(P), x = f === r ? h.isActive : null;
301
- x === !1 && (M = A);
302
- let k = P === p[f] && P !== u[f] && O;
303
- if (k && s && t.manuallyAnimateOnMount && (k = !1), h.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
304
- !h.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
305
- !P && !h.prevProp || // Or if the prop doesn't define an animation
306
- q(P) || typeof P == "boolean")
307
- continue;
308
- const N = Oe(h.prevProp, P);
309
- let I = N || // If we're making this variant active, we want to always make it active
310
- f === r && h.isActive && !k && O || // If we removed a higher-priority variant (i is in reverse order)
311
- A > M && O;
312
- const U = Array.isArray(P) ? P : [P];
313
- let S = U.reduce(o, {});
314
- x === !1 && (S = {});
315
- const { prevResolvedValues: W = {} } = h, se = {
316
- ...W,
317
- ...S
318
- }, F = (d) => {
319
- I = !0, v.delete(d), h.needsAnimating[d] = !0;
320
- };
321
- for (const d in se) {
322
- const C = S[d], E = W[d];
323
- g.hasOwnProperty(d) || (C !== E ? _(C) && _(E) ? !ne(C, E) || N ? F(d) : h.protectedKeys[d] = !0 : C !== void 0 ? F(d) : v.add(d) : C !== void 0 && v.has(d) ? F(d) : h.protectedKeys[d] = !0);
324
- }
325
- h.prevProp = P, h.prevResolvedValues = S, h.isActive && (g = { ...g, ...S }), s && t.blockInitialAnimation && (I = !1), I && !k && m.push(...U.map((d) => ({
326
- animation: d,
327
- options: { type: f, ...i }
328
- })));
329
- }
330
- if (v.size) {
331
- const A = {};
332
- v.forEach((f) => {
333
- const h = t.getBaseTarget(f);
334
- h !== void 0 && (A[f] = h);
335
- }), m.push({ animation: A });
336
- }
337
- let R = !!m.length;
338
- return s && u.initial === !1 && !t.manuallyAnimateOnMount && (R = !1), s = !1, R ? e(m) : Promise.resolve();
339
- }
340
- function c(i, r, u) {
341
- var p;
342
- if (n[i].isActive === r)
343
- return Promise.resolve();
344
- (p = t.variantChildren) === null || p === void 0 || p.forEach((v) => {
345
- var g;
346
- return (g = v.animationState) === null || g === void 0 ? void 0 : g.setActive(i, r);
347
- }), n[i].isActive = r;
348
- const m = l(u, i);
349
- for (const v in n)
350
- n[v].protectedKeys = {};
351
- return m;
352
- }
353
- return {
354
- animateChanges: l,
355
- setActive: c,
356
- setAnimateFunction: a,
357
- getState: () => n
358
- };
359
- }
360
- function Oe(t, e) {
361
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !ne(e, t) : !1;
362
- }
363
- function y(t = !1) {
364
- return {
365
- isActive: t,
366
- protectedKeys: {},
367
- needsAnimating: {},
368
- prevResolvedValues: {}
369
- };
370
- }
371
- function xe() {
372
- return {
373
- animate: y(!0),
374
- whileInView: y(),
375
- whileHover: y(),
376
- whileTap: y(),
377
- whileDrag: y(),
378
- whileFocus: y(),
379
- exit: y()
380
- };
381
- }
382
- class Ie extends w {
383
- /**
384
- * We dynamically generate the AnimationState manager as it contains a reference
385
- * to the underlying animation library. We only want to load that if we load this,
386
- * so people can optionally code split it out using the `m` component.
387
- */
388
- constructor(e) {
389
- super(e), e.animationState || (e.animationState = Te(e));
390
- }
391
- updateAnimationControlsSubscription() {
392
- const { animate: e } = this.node.getProps();
393
- this.unmount(), q(e) && (this.unmount = e.subscribe(this.node));
394
- }
395
- /**
396
- * Subscribe any provided AnimationControls to the component's VisualElement
397
- */
398
- mount() {
399
- this.updateAnimationControlsSubscription();
400
- }
401
- update() {
402
- const { animate: e } = this.node.getProps(), { animate: n } = this.node.prevProps || {};
403
- e !== n && this.updateAnimationControlsSubscription();
404
- }
405
- unmount() {
406
- }
407
- }
408
- let Fe = 0;
409
- class Ee extends w {
410
- constructor() {
411
- super(...arguments), this.id = Fe++;
412
- }
413
- update() {
414
- if (!this.node.presenceContext)
415
- return;
416
- const { isPresent: e, onExitComplete: n, custom: s } = this.node.presenceContext, { isPresent: o } = this.node.prevPresenceContext || {};
417
- if (!this.node.animationState || e === o)
418
- return;
419
- const a = this.node.animationState.setActive("exit", !e, { custom: s ?? this.node.getProps().custom });
420
- n && !e && a.then(() => n(this.id));
421
- }
422
- mount() {
423
- const { register: e } = this.node.presenceContext || {};
424
- e && (this.unmount = e(this.id));
425
- }
426
- unmount() {
427
- }
428
- }
429
- const De = {
430
- animation: {
431
- Feature: Ie
432
- },
433
- exit: {
434
- Feature: Ee
435
- }
436
- }, He = (t, e) => ie(t) ? new oe(e, { enableHardwareAcceleration: !1 }) : new ae(e, { enableHardwareAcceleration: !0 }), Be = {
437
- renderer: He,
438
- ...De,
439
- ...be
440
- };
441
- export {
442
- Be as default
443
- };
@@ -1,28 +0,0 @@
1
- import { B as s, l, C as o, b as t, n as r, D as i, E as g, F as c, H as d, e as n, g as p, I as F, L as S, P as u, S as T, h as x, j as h, o as k, p as P, c as b, d as m, f as C, m as E, k as I, i as B } from "./index-E1a1GKmY.js";
2
- export {
3
- s as BooleanToggleGroup,
4
- l as BooleanToggleGroupField,
5
- o as Checkbox,
6
- t as CheckboxField,
7
- r as ColorPicker,
8
- i as DateRangePicker,
9
- g as EmailField,
10
- c as Form,
11
- d as HintsOrErrors,
12
- n as Input,
13
- p as InputError,
14
- F as InputField,
15
- S as Label,
16
- u as PasswordField,
17
- T as Select,
18
- x as SelectField,
19
- h as SelectWithValidation,
20
- k as SettingsToggle,
21
- P as Switch,
22
- b as TextArea,
23
- m as TextAreaField,
24
- C as TextField,
25
- E as ToggleGroup,
26
- I as getReactSelectProps,
27
- B as inputStyles
28
- };