@calcom/atoms 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/dist/{AddressInput-xFwoBxsZ.js → AddressInput-TPAoTrPC.js} +1 -1
  2. package/dist/{AlbyPriceComponent-NnD6qUfW.js → AlbyPriceComponent-OnR4fSwr.js} +1 -1
  3. package/dist/{AppCard--JDiTUMU.js → AppCard-UnBkV2QT.js} +4 -4
  4. package/dist/{AppListCardPlatformWrapper-ncgLQL4r.js → AppListCardPlatformWrapper-4eRy1NRK.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-YnM7-ccd.js → AppListCardWebWrapper-0wdYjkAE.js} +1 -1
  6. package/dist/{AppSettingsInterface-_WywrNHs.js → AppSettingsInterface-BUXklHpI.js} +1 -1
  7. package/dist/{AppSettingsInterface-EvAriEj2.js → AppSettingsInterface-IN675-GK.js} +1 -1
  8. package/dist/{AppSettingsInterface-OGwTTVN7.js → AppSettingsInterface-ZJ3ZsCsg.js} +1 -1
  9. package/dist/{DateRangePicker-m_y_P8tk.js → DateRangePicker-SbXQ2kUs.js} +1 -1
  10. package/dist/{EventTypeAppCardInterface-EPHC3SF7.js → EventTypeAppCardInterface--4xE4p79.js} +3 -3
  11. package/dist/{EventTypeAppCardInterface--74geeRF.js → EventTypeAppCardInterface-9HzRYyCd.js} +3 -3
  12. package/dist/{EventTypeAppCardInterface-bNGYsiB0.js → EventTypeAppCardInterface-CtmOV4QG.js} +2 -2
  13. package/dist/{EventTypeAppCardInterface-sIqZFcBV.js → EventTypeAppCardInterface-DAoHQNia.js} +4 -4
  14. package/dist/{EventTypeAppCardInterface-2Q1qvV5K.js → EventTypeAppCardInterface-EY8MHHWr.js} +4 -4
  15. package/dist/{EventTypeAppCardInterface-JQgzokgl.js → EventTypeAppCardInterface-EqotF69G.js} +2 -2
  16. package/dist/{EventTypeAppCardInterface-R8-Y-hSu.js → EventTypeAppCardInterface-FseQRHaF.js} +3 -3
  17. package/dist/{EventTypeAppCardInterface-rV1vgpRv.js → EventTypeAppCardInterface-FzWJaItj.js} +3 -3
  18. package/dist/{EventTypeAppCardInterface-qO1PKt6x.js → EventTypeAppCardInterface-Hbrbd-An.js} +3 -3
  19. package/dist/{EventTypeAppCardInterface-_x7wFmBk.js → EventTypeAppCardInterface-LQ-94Fnd.js} +3 -3
  20. package/dist/{EventTypeAppCardInterface-G3OAa6sU.js → EventTypeAppCardInterface-LsiRGQxy.js} +4 -4
  21. package/dist/{EventTypeAppCardInterface-LvigpfyE.js → EventTypeAppCardInterface-MVTbWGAp.js} +3 -3
  22. package/dist/{EventTypeAppCardInterface-YlTC8St1.js → EventTypeAppCardInterface-M_zIE3R2.js} +3 -3
  23. package/dist/{EventTypeAppCardInterface-d-rOMdsH.js → EventTypeAppCardInterface-Nl4Tca0J.js} +4 -4
  24. package/dist/{EventTypeAppCardInterface-iHpJPDlc.js → EventTypeAppCardInterface-SBbEmado.js} +4 -4
  25. package/dist/{EventTypeAppCardInterface-2r4pxyRt.js → EventTypeAppCardInterface-V42P65Il.js} +4 -4
  26. package/dist/{EventTypeAppCardInterface-MIro_wur.js → EventTypeAppCardInterface-VC5GD6mP.js} +4 -4
  27. package/dist/{EventTypeAppCardInterface-li1GK953.js → EventTypeAppCardInterface-Yy5z6qq3.js} +3 -3
  28. package/dist/{EventTypeAppCardInterface--UDAdk0r.js → EventTypeAppCardInterface-bKY65jzr.js} +3 -3
  29. package/dist/{EventTypeAppCardInterface-jBTRuVkO.js → EventTypeAppCardInterface-c7y6h3cZ.js} +3 -3
  30. package/dist/{EventTypeAppCardInterface-3T7Bcarm.js → EventTypeAppCardInterface-cYsx04dT.js} +4 -4
  31. package/dist/{EventTypeAppCardInterface-O0yLol5y.js → EventTypeAppCardInterface-eD2zI5jR.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-KDalRazj.js → EventTypeAppCardInterface-gqJqYQI9.js} +3 -3
  33. package/dist/{EventTypeAppCardInterface-rKAjvg4x.js → EventTypeAppCardInterface-iHRMY1ck.js} +3 -3
  34. package/dist/{EventTypeAppCardInterface-Na5tUt6e.js → EventTypeAppCardInterface-kyhbIMJn.js} +4 -4
  35. package/dist/EventTypeAppCardInterface-qX_8phKX.js +24 -0
  36. package/dist/{EventTypeAppCardInterface-lXddHFhd.js → EventTypeAppCardInterface-tvM_AuJk.js} +4 -4
  37. package/dist/{EventTypeAppSettingsInterface-J_c1VzIk.js → EventTypeAppSettingsInterface-3MhYVxkM.js} +1 -1
  38. package/dist/{EventTypeAppSettingsInterface-cbkdr04f.js → EventTypeAppSettingsInterface-3kl4RpMT.js} +1 -1
  39. package/dist/{EventTypeAppSettingsInterface-LIn3bMv4.js → EventTypeAppSettingsInterface-L2pesx9r.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-CPvfqJkx.js → EventTypeAppSettingsInterface-L9xlb8NR.js} +11 -11
  41. package/dist/{EventTypeAppSettingsInterface-JBpWa3pz.js → EventTypeAppSettingsInterface-Ld18-sOn.js} +123 -78
  42. package/dist/{EventTypeAppSettingsInterface-EZZkJrLi.js → EventTypeAppSettingsInterface-UpTmiEej.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-mOdk6pDR.js → EventTypeAppSettingsInterface-XQsGNWJq.js} +1 -1
  44. package/dist/{EventTypeAppSettingsInterface-eejB8RJX.js → EventTypeAppSettingsInterface-jPvK2jsX.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-K4kVWoog.js → EventTypeAppSettingsInterface-pdQn6Kfx.js} +1 -1
  46. package/dist/{EventTypeAppSettingsInterface-7e1qbHi8.js → EventTypeAppSettingsInterface-phZiaYXT.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-xYWyd_Dz.js → EventTypeAppSettingsInterface-vBrvSwct.js} +1 -1
  48. package/dist/{EventTypeAppSettingsInterface-CLwwrZv6.js → EventTypeAppSettingsInterface-x4ZemVo7.js} +1 -1
  49. package/dist/{EventTypeAppSettingsInterface-vNhCP6vQ.js → EventTypeAppSettingsInterface-yrvZgDxq.js} +1 -1
  50. package/dist/{InstallAppButton-J51NRgMF.js → InstallAppButton--2C7ML1T.js} +1 -1
  51. package/dist/{InstallAppButton-9sn2Jtoz.js → InstallAppButton-9ZNVw7xC.js} +1 -1
  52. package/dist/{InstallAppButton-6HzB5_Be.js → InstallAppButton-VKYchQNN.js} +1 -1
  53. package/dist/{PhoneInput-uymiSRfv.js → PhoneInput-eualhMpw.js} +1 -1
  54. package/dist/{StripePaymentForm-cXAJjJV3.js → StripePaymentForm-J3d6--In.js} +1 -1
  55. package/dist/cal-atoms.js +5 -5
  56. package/dist/{index-WXyiFeKd.js → index-QxAbeUbm.js} +1 -1
  57. package/dist/{index--iR_feQQ.js → index-ZTlhgZJm.js} +65069 -63763
  58. package/dist/{index-tEqQSBcP.js → index-ZiXm_Vsp.js} +1 -1
  59. package/dist/{index-XoFQv1cd.js → index-jrRDyJSN.js} +7 -7
  60. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  61. package/dist/packages/features/bookings/Booker/utils/event.d.ts +39 -33
  62. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  63. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +83 -0
  64. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -0
  65. package/dist/packages/features/bookings/lib/create-booking.d.ts +91 -91
  66. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +91 -91
  67. package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -9
  68. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +40 -38
  69. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  70. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts +41 -0
  71. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts.map +1 -0
  72. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts +2 -0
  73. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts.map +1 -0
  74. package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts +16 -0
  75. package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts.map +1 -1
  76. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  77. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts +1 -0
  78. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
  79. package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +2 -2
  80. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -33
  81. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +57 -57
  82. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +60 -57
  83. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  84. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +57 -57
  85. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +46 -46
  86. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +45 -45
  87. package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts +1 -0
  88. package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts.map +1 -1
  89. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +364 -364
  90. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  91. package/dist/packages/features/bookings/lib/handlePayment.d.ts +49 -0
  92. package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -0
  93. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +33 -33
  94. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  95. package/dist/packages/features/bookings/lib/handleSeats/handleSeats.d.ts.map +1 -1
  96. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +33 -33
  97. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +39 -39
  98. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts +2 -1
  99. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts.map +1 -1
  100. package/dist/packages/features/ee/billing/credit-service.d.ts +5 -1
  101. package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
  102. package/dist/packages/features/ee/billing/organizations/index.d.ts +1 -2
  103. package/dist/packages/features/ee/billing/organizations/index.d.ts.map +1 -1
  104. package/dist/packages/features/ee/billing/organizations/internal-organization-billing.d.ts +2 -2
  105. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +32 -4
  106. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts.map +1 -1
  107. package/dist/packages/features/ee/payments/server/stripe-service.d.ts +23 -0
  108. package/dist/packages/features/ee/payments/server/stripe-service.d.ts.map +1 -0
  109. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +125 -0
  110. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -0
  111. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts +2 -0
  112. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts.map +1 -0
  113. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +30 -30
  114. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  115. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  116. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  117. package/dist/packages/features/ee/workflows/lib/constants.d.ts +3 -1
  118. package/dist/packages/features/ee/workflows/lib/constants.d.ts.map +1 -1
  119. package/dist/packages/features/ee/workflows/lib/getOptions.d.ts +1 -1
  120. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +0 -3
  121. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  122. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +0 -3
  123. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
  124. package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
  125. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
  126. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
  127. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
  128. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +6 -6
  129. package/dist/packages/features/ee/workflows/lib/schema.d.ts +7 -2
  130. package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
  131. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts +7 -0
  132. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts.map +1 -0
  133. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +1 -1
  134. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
  135. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  136. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts +28 -0
  137. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts.map +1 -0
  138. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts +2 -0
  139. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts.map +1 -0
  140. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +42 -33
  141. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  142. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -12
  143. package/dist/packages/features/eventtypes/lib/types.d.ts +1 -1
  144. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  145. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts +2 -2
  146. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts.map +1 -1
  147. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts +15 -0
  148. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts.map +1 -0
  149. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +20 -17
  150. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  151. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  152. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts +3 -0
  153. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts.map +1 -0
  154. package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts.map +1 -1
  155. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  156. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +91 -91
  157. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +91 -91
  158. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +91 -91
  159. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -3
  160. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +39 -33
  161. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  162. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +3 -3
  163. package/dist/packages/platform/atoms/hooks/schedules/useAtomUpdateSchedule.d.ts +3 -3
  164. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  165. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts +2 -0
  166. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts.map +1 -0
  167. package/dist/packages/platform/libraries/event-types.d.ts +5 -5
  168. package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
  169. package/dist/packages/platform/libraries/index.d.ts +4 -6
  170. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  171. package/dist/packages/prisma/zod/creditexpenselog.d.ts +6 -0
  172. package/dist/packages/prisma/zod/creditexpenselog.d.ts.map +1 -1
  173. package/dist/packages/prisma/zod/impersonations.d.ts +2 -2
  174. package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
  175. package/dist/packages/prisma/zod/task.d.ts +2 -2
  176. package/dist/packages/prisma/zod/teamfeatures.d.ts +2 -2
  177. package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
  178. package/dist/packages/prisma/zod/webhookscheduledtriggers.d.ts +2 -2
  179. package/dist/packages/prisma/zod/workflow.d.ts +7 -2
  180. package/dist/packages/prisma/zod/workflow.d.ts.map +1 -1
  181. package/dist/packages/prisma/zod-utils.d.ts +52 -0
  182. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  183. package/dist/packages/prisma-client/index.d.ts +86 -1
  184. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +2 -2
  185. package/dist/packages/trpc/react/shared.d.ts +1 -1
  186. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  187. package/dist/packages/trpc/react/trpc.d.ts.map +1 -1
  188. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  189. package/dist/{useIsAppEnabled-C_9eRB94.js → useIsAppEnabled-kSS-8pZp.js} +1 -1
  190. package/package.json +1 -1
  191. package/dist/EventTypeAppCardInterface-safQ0enm.js +0 -24
@@ -1,7 +1,7 @@
1
- import { jsxs as u, Fragment as f, jsx as l } from "react/jsx-runtime";
2
- import { a7 as d, w as L, a8 as i, J as w, f as P, O as T, Q as O, S as y, a9 as E, aa as x, r as B, ab as F, ac as K } from "./index--iR_feQQ.js";
3
- import { useState as z, useEffect as G } from "react";
4
- const s = [
1
+ import { jsxs as u, Fragment as g, jsx as a } from "react/jsx-runtime";
2
+ import { a7 as b, w as K, a8 as s, a9 as N, J as M, f as C, O as z, Q as G, S as m, aa as U, ab as D, r as S, ac as V, ad as H, b as _ } from "./index-ZTlhgZJm.js";
3
+ import { useState as I, useEffect as Y } from "react";
4
+ const o = [
5
5
  { label: "United States dollar (USD)", value: "usd" },
6
6
  { label: "United Arab Emirates dirham (AED)", value: "aed" },
7
7
  { label: "Afghan afghani (AFN)", value: "afn" },
@@ -136,163 +136,208 @@ const s = [
136
136
  { label: "Yemeni rial (YER)", value: "yer" },
137
137
  { label: "South African rand (ZAR)", value: "zar" },
138
138
  { label: "Zambian kwacha (ZMW)", value: "zmw" }
139
- ], V = ({
139
+ ], W = ({
140
140
  getAppData: r,
141
- setAppData: e,
142
- disabled: b,
143
- eventType: h
141
+ setAppData: n,
142
+ disabled: i,
143
+ eventType: p
144
144
  }) => {
145
- var k;
146
- const g = r("price"), o = r("currency") || s[0].value, [t, D] = z(
147
- s.find((a) => a.value === o) || {
148
- label: s[0].label,
149
- value: s[0].value
145
+ var R;
146
+ const k = r("price"), c = r("currency") || o[0].value, [v, L] = I(
147
+ o.find((e) => e.value === c) || {
148
+ label: o[0].label,
149
+ value: o[0].value
150
150
  }
151
- ), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, R = (a, M) => 0 .toLocaleString(a, {
151
+ ), t = r("paymentOption"), f = b.find((e) => t === e.value), h = r("enabled"), w = () => B.find((e) => e.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), y = r("autoChargeNoShowFeeIfCancelled"), x = r("autoChargeNoShowFeeTimeUnit"), P = r("autoChargeNoShowFeeTimeValue"), { t: l } = K(), T = ((R = p.recurringEvent) == null ? void 0 : R.count) !== void 0, F = !!p.seatsPerTimeSlot, O = (e, E) => 0 .toLocaleString(e, {
152
152
  style: "currency",
153
- currency: M,
153
+ currency: E,
154
154
  minimumFractionDigits: 0,
155
155
  maximumFractionDigits: 0
156
156
  }).replace(/\d/g, "").trim();
157
- G(() => {
158
- m && (r("currency") || e("currency", s[0].value), r("paymentOption") || e("paymentOption", d[0].value)), r("refundPolicy") || e("refundPolicy", i.NEVER);
159
- }, [m, r, e]);
160
- const C = [
161
- { value: 0, label: n("business_days") },
162
- { value: 1, label: n("calendar_days") }
157
+ Y(() => {
158
+ h && (r("currency") || n("currency", o[0].value), r("paymentOption") || n("paymentOption", b[0].value)), r("refundPolicy") || n("refundPolicy", s.NEVER);
159
+ }, [h, r, n]);
160
+ const B = [
161
+ { value: 0, label: l("business_days") },
162
+ { value: 1, label: l("calendar_days") }
163
+ ], d = [
164
+ { value: N.enum.minutes, label: l("minutes") },
165
+ { value: N.enum.hours, label: l("hours") },
166
+ { value: N.enum.days, label: l("days") }
163
167
  ];
164
- return /* @__PURE__ */ u(f, { children: [
165
- N && /* @__PURE__ */ l(w, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }),
166
- !N && m && /* @__PURE__ */ u(f, { children: [
167
- /* @__PURE__ */ l("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ l(
168
- P,
168
+ return /* @__PURE__ */ u(g, { children: [
169
+ T && /* @__PURE__ */ a(M, { className: "mt-2", severity: "warning", title: l("warning_recurring_event_payment") }),
170
+ !T && h && /* @__PURE__ */ u(g, { children: [
171
+ /* @__PURE__ */ a("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ a(
172
+ C,
169
173
  {
170
174
  "data-testid": "stripe-price-input",
171
- label: n("price"),
175
+ label: l("price"),
172
176
  className: "h-[38px]",
173
- addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? R("en", t.value) : "" }),
174
- addOnSuffix: o.toUpperCase(),
177
+ addOnLeading: /* @__PURE__ */ a(g, { children: v.value ? O("en", v.value) : "" }),
178
+ addOnSuffix: c.toUpperCase(),
175
179
  addOnClassname: "h-[38px]",
176
180
  step: "0.01",
177
181
  min: "0.5",
178
182
  type: "number",
179
183
  required: !0,
180
184
  placeholder: "Price",
181
- disabled: b,
182
- onChange: (a) => {
183
- e("price", T(Number(a.target.value), o));
185
+ disabled: i,
186
+ onChange: (e) => {
187
+ n("price", z(Number(e.target.value), c));
184
188
  },
185
- value: g > 0 ? O(g, o) : void 0
189
+ value: k > 0 ? G(k, c) : void 0
186
190
  }
187
191
  ) }),
188
192
  /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
189
- /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
190
- /* @__PURE__ */ l(
191
- y,
193
+ /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: l("currency") }),
194
+ /* @__PURE__ */ a(
195
+ m,
192
196
  {
193
197
  "data-testid": "stripe-currency-select",
194
198
  variant: "default",
195
- options: s,
199
+ options: o,
196
200
  innerClassNames: {
197
201
  input: "stripe-currency-input"
198
202
  },
199
- value: t,
203
+ value: v,
200
204
  className: "text-black",
201
- defaultValue: t,
202
- onChange: (a) => {
203
- a && (D(a), e("currency", a.value));
205
+ defaultValue: v,
206
+ onChange: (e) => {
207
+ e && (L(e), n("currency", e.value));
204
208
  }
205
209
  }
206
210
  )
207
211
  ] }),
208
212
  /* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
209
- /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("payment_option") }),
210
- /* @__PURE__ */ l(
211
- y,
213
+ /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: l("payment_option") }),
214
+ /* @__PURE__ */ a(
215
+ m,
212
216
  {
213
217
  "data-testid": "stripe-payment-option-select",
214
- defaultValue: c ? { ...c, label: n(c.label) } : { ...d[0], label: n(d[0].label) },
215
- options: d.map((a) => ({ ...a, label: n(a.label) || a.label })),
216
- onChange: (a) => {
217
- a && (e("paymentOption", a.value), a.value === "HOLD" && (e("refundPolicy", i.NEVER), e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0)));
218
+ defaultValue: f ? { ...f, label: l(f.label) } : { ...b[0], label: l(b[0].label) },
219
+ options: b.map((e) => ({ ...e, label: l(e.label) || e.label })),
220
+ onChange: (e) => {
221
+ e && (n("paymentOption", e.value), e.value === "HOLD" && (n("refundPolicy", s.NEVER), n("refundDaysCount", void 0), n("refundCountCalendarDays", void 0)));
218
222
  },
219
223
  className: "mb-1 h-[38px] w-full",
220
- isDisabled: S || b
224
+ isDisabled: F || i
221
225
  }
222
226
  )
223
227
  ] }),
224
- S && v === "HOLD" && /* @__PURE__ */ l(w, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") }),
225
- v !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
226
- /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", children: n("refund_policy") }),
228
+ F && t === "HOLD" && /* @__PURE__ */ a(M, { className: "mt-2", severity: "warning", title: l("seats_and_no_show_fee_error") }),
229
+ t !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
230
+ /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", children: l("refund_policy") }),
227
231
  /* @__PURE__ */ u(
228
- E,
232
+ U,
229
233
  {
230
- disabled: b || v === "HOLD",
234
+ disabled: i || t === "HOLD",
231
235
  defaultValue: "never",
232
236
  className: "flex flex-col space-y-2",
233
237
  value: r("refundPolicy"),
234
- onValueChange: (a) => {
235
- e("refundPolicy", a), a !== i.DAYS && (e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0));
238
+ onValueChange: (e) => {
239
+ n("refundPolicy", e), e !== s.DAYS && (n("refundDaysCount", void 0), n("refundCountCalendarDays", void 0));
236
240
  },
237
241
  children: [
238
- /* @__PURE__ */ l(x, { className: "w-fit", value: i.ALWAYS, label: n("always"), id: "always" }),
239
- /* @__PURE__ */ l(x, { className: "w-fit", value: i.NEVER, label: n("never"), id: "never" }),
240
- /* @__PURE__ */ u("div", { className: B("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
241
- /* @__PURE__ */ l(
242
- F,
242
+ /* @__PURE__ */ a(D, { className: "w-fit", value: s.ALWAYS, label: l("always"), id: "always" }),
243
+ /* @__PURE__ */ a(D, { className: "w-fit", value: s.NEVER, label: l("never"), id: "never" }),
244
+ /* @__PURE__ */ u("div", { className: S("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
245
+ /* @__PURE__ */ a(
246
+ V,
243
247
  {
244
248
  className: "min-w-4 bg-default border-default flex h-4 w-4 cursor-pointer items-center rounded-full border focus:border-2 focus:outline-none ltr:mr-2 rtl:ml-2",
245
249
  value: "days",
246
250
  id: "days",
247
- children: /* @__PURE__ */ l(K, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
251
+ children: /* @__PURE__ */ a(H, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
248
252
  }
249
253
  ),
250
254
  /* @__PURE__ */ u("div", { className: "flex items-center", children: [
251
255
  /* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
252
256
  " ",
253
- n("if_cancelled")
257
+ l("if_cancelled")
254
258
  ] }),
255
- /* @__PURE__ */ l(
256
- P,
259
+ /* @__PURE__ */ a(
260
+ C,
257
261
  {
258
262
  labelSrOnly: !0,
259
263
  type: "number",
260
- className: B(
264
+ className: S(
261
265
  "border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
262
266
  ),
263
267
  placeholder: "2",
264
- disabled: b,
268
+ disabled: i,
265
269
  min: 0,
266
270
  defaultValue: r("refundDaysCount"),
267
- required: r("refundPolicy") === i.DAYS,
271
+ required: r("refundPolicy") === s.DAYS,
268
272
  value: r("refundDaysCount") ?? "",
269
- onChange: (a) => e("refundDaysCount", parseInt(a.currentTarget.value))
273
+ onChange: (e) => n("refundDaysCount", parseInt(e.currentTarget.value))
270
274
  }
271
275
  ),
272
- /* @__PURE__ */ l(
273
- y,
276
+ /* @__PURE__ */ a(
277
+ m,
274
278
  {
275
- options: C,
279
+ options: B,
276
280
  isSearchable: !1,
277
- isDisabled: b,
278
- onChange: (a) => e("refundCountCalendarDays", (a == null ? void 0 : a.value) === 1),
279
- value: p(),
280
- defaultValue: p()
281
+ isDisabled: i,
282
+ onChange: (e) => n("refundCountCalendarDays", (e == null ? void 0 : e.value) === 1),
283
+ value: w(),
284
+ defaultValue: w()
281
285
  }
282
286
  ),
283
287
  /* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
284
288
  " ",
285
- n("before")
289
+ l("before")
286
290
  ] })
287
291
  ] })
288
292
  ] })
289
293
  ]
290
294
  }
291
295
  )
296
+ ] }),
297
+ t === "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4", children: [
298
+ /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
299
+ _,
300
+ {
301
+ checked: y,
302
+ onChange: (e) => n("autoChargeNoShowFeeIfCancelled", e.target.checked),
303
+ description: l("auto_charge_for_last_minute_cancellation")
304
+ }
305
+ ) }),
306
+ y && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ u("div", { className: "mt-2 flex items-center", children: [
307
+ /* @__PURE__ */ a(
308
+ C,
309
+ {
310
+ labelSrOnly: !0,
311
+ type: "number",
312
+ className: S(
313
+ "border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
314
+ ),
315
+ placeholder: "2",
316
+ disabled: i,
317
+ min: 0,
318
+ defaultValue: P,
319
+ required: y,
320
+ value: P ?? "",
321
+ onChange: (e) => n("autoChargeNoShowFeeTimeValue", parseInt(e.currentTarget.value))
322
+ }
323
+ ),
324
+ /* @__PURE__ */ a(
325
+ m,
326
+ {
327
+ options: d,
328
+ isSearchable: !1,
329
+ isDisabled: i,
330
+ onChange: (e) => n("autoChargeNoShowFeeTimeUnit", e == null ? void 0 : e.value),
331
+ value: d.find((e) => e.value === x) || d[0],
332
+ defaultValue: d.find((e) => e.value === x) || d[0]
333
+ }
334
+ ),
335
+ /* @__PURE__ */ a("span", { className: "me-2 ms-2", children: l("before_scheduled_start_time") })
336
+ ] }) })
292
337
  ] })
293
338
  ] })
294
339
  ] });
295
340
  };
296
341
  export {
297
- V as default
342
+ W as default
298
343
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, Fragment as D, jsxs as c } from "react/jsx-runtime";
2
2
  import { useState as f, useEffect as T } from "react";
3
- import { w, a0 as t, J as P, f as R, S as y } from "./index--iR_feQQ.js";
3
+ import { w, a0 as t, J as P, f as R, S as y } from "./index-ZTlhgZJm.js";
4
4
  const i = [
5
5
  { label: "SATS", value: "BTC", unit: "SATS" },
6
6
  { label: "USD- US Dollar", value: "USD", unit: "USD" },
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, jsxs as m, Fragment as g } from "react/jsx-runtime";
2
2
  import { useState as o, useEffect as _ } from "react";
3
3
  import { c as i, i as k, a as S } from "./currencyOptions-kannG2hu.js";
4
- import { M as r, w as E, J as x, f as F, O as T, Q as q, S as O } from "./index--iR_feQQ.js";
4
+ import { M as r, w as E, J as x, f as F, O as T, Q as q, S as O } from "./index-ZTlhgZJm.js";
5
5
  const I = ({
6
6
  getAppData: n,
7
7
  setAppData: t,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as u } from "react";
3
- import { w as p, f as h, R as v, r as x } from "./index--iR_feQQ.js";
3
+ import { w as p, f as h, R as v, r as x } from "./index-ZTlhgZJm.js";
4
4
  const R = ({ eventType: n, disabled: d }) => {
5
5
  const { t: i } = p(), [r, c] = u(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
6
6
  function s({ size: a, data: f }) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { f as o } from "./index--iR_feQQ.js";
2
+ import { f as o } from "./index-ZTlhgZJm.js";
3
3
  const p = ({
4
4
  getAppData: t,
5
5
  setAppData: e,
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { f as g } from "./index--iR_feQQ.js";
2
+ import { f as g } from "./index-ZTlhgZJm.js";
3
3
  const o = ({
4
4
  getAppData: t,
5
5
  setAppData: a,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
2
2
  import { useState as P, useEffect as k } from "react";
3
- import { w as x, J as p, f as w, S as K } from "./index--iR_feQQ.js";
3
+ import { w as x, J as p, f as w, S as K } from "./index-ZTlhgZJm.js";
4
4
  const f = [
5
5
  "BIF",
6
6
  "CLP",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
2
  import { useState as m, useEffect as v } from "react";
3
- import { K as p, S as h } from "./index--iR_feQQ.js";
3
+ import { K as p, S as h } from "./index-ZTlhgZJm.js";
4
4
  const S = ({}) => {
5
5
  const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
6
6
  return v(
@@ -1,6 +1,6 @@
1
1
  import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
2
2
  import { useState as N, useEffect as O } from "react";
3
- import { w as _, _ as t, J as g, f as C, V as P, S as p } from "./index--iR_feQQ.js";
3
+ import { w as _, _ as t, J as g, f as C, V as P, S as p } from "./index-ZTlhgZJm.js";
4
4
  const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
5
5
  eventType: f,
6
6
  getAppData: s,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as f, Fragment as l, jsx as m } from "react/jsx-runtime";
2
2
  import { useState as p } from "react";
3
- import { v as d, al as E, W as g } from "./index--iR_feQQ.js";
3
+ import { v as d, am as E, W as g } from "./index-ZTlhgZJm.js";
4
4
  var s = /* @__PURE__ */ ((n) => (n.ACCOUNTS_STEP = "accounts", n.EVENT_TYPES_STEP = "event-types", n.CONFIGURE_STEP = "configure", n))(s || {}), i = function(n) {
5
5
  switch (typeof n) {
6
6
  case "string":
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { v as o } from "./index--iR_feQQ.js";
2
+ import { v as o } from "./index-ZTlhgZJm.js";
3
3
  function d(t) {
4
4
  const n = o("exchange2016_calendar");
5
5
  return /* @__PURE__ */ e(a, { children: t.render({
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { v as o } from "./index--iR_feQQ.js";
2
+ import { v as o } from "./index-ZTlhgZJm.js";
3
3
  function d(t) {
4
4
  const n = o("exchange2013_calendar");
5
5
  return /* @__PURE__ */ e(a, { children: t.render({
@@ -1,6 +1,6 @@
1
1
  import { jsx as vt } from "react/jsx-runtime";
2
2
  import $t, { useEffect as It, useState as Gt } from "react";
3
- import { ah as Vt, ai as Kt, aj as qt, ak as Ut, r as Dt, K as Wt } from "./index--iR_feQQ.js";
3
+ import { ai as Vt, aj as Kt, ak as qt, al as Ut, r as Dt, K as Wt } from "./index-ZTlhgZJm.js";
4
4
  function Ht() {
5
5
  return Vt(Kt, arguments);
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { jsxs as H, jsx as g } from "react/jsx-runtime";
2
2
  import f, { useState as R, useEffect as Z } from "react";
3
- import { ar as S, w as ee, b as Ce, B as G, W as Oe } from "./index--iR_feQQ.js";
3
+ import { as as S, w as ee, b as Ce, B as G, W as Oe } from "./index-ZTlhgZJm.js";
4
4
  function Y(n, e) {
5
5
  var t = Object.keys(n);
6
6
  if (Object.getOwnPropertySymbols) {
package/dist/cal-atoms.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aD as s, aE as n, aR as t, aB as o, aZ as r, a$ as i, aQ as u, b1 as C, aY as l, a_ as d, aC as g, aP as c, b2 as p, aS as v, aX as S, b0 as T, aU as m, aF as y, aM as E, aN as b, aL as k, aG as B, b3 as A, b4 as O, aT as P, aJ as f, aK as D, aH as I, ak as R, aO as x, b5 as z, b6 as F, aV as G, aI as M, aW as U } from "./index--iR_feQQ.js";
1
+ import { aE as s, aF as n, aS as t, aC as o, a_ as r, b0 as i, aR as u, b2 as C, aZ as l, a$ as d, aD as g, aQ as c, b3 as p, aT as v, aY as S, b1 as T, aV as b, aG as m, aN as y, aO as E, aM as k, aH as B, b4 as A, b5 as O, aU as P, aK as f, aL as D, aI as I, al as R, aP as x, b6 as z, b7 as F, aW as G, aJ as M, aX as U } from "./index-ZTlhgZJm.js";
2
2
  export {
3
3
  s as AvailabilitySettings,
4
4
  n as Booker,
@@ -16,10 +16,10 @@ export {
16
16
  v as Router,
17
17
  S as SelectedCalendarsSettings,
18
18
  T as StripeConnect,
19
- m as useAddSelectedCalendar,
20
- y as useAtomsContext,
21
- E as useBooking,
22
- b as useBookings,
19
+ b as useAddSelectedCalendar,
20
+ m as useAtomsContext,
21
+ y as useBooking,
22
+ E as useBookings,
23
23
  k as useCancelBooking,
24
24
  B as useConnectedCalendars,
25
25
  A as useCreateEventType,
@@ -1,4 +1,4 @@
1
- import { T as m, a as n } from "./index--iR_feQQ.js";
1
+ import { T as m, a as n } from "./index-ZTlhgZJm.js";
2
2
  export {
3
3
  m as TimezoneSelect,
4
4
  n as TimezoneSelectComponent