@calcom/atoms 1.7.0 → 1.8.0-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 (205) hide show
  1. package/dist/{AddressInput-xFwoBxsZ.js → AddressInput-E1ARKDg7.js} +5 -5
  2. package/dist/{AlbyPriceComponent-NnD6qUfW.js → AlbyPriceComponent-jBcuDvZa.js} +24 -24
  3. package/dist/{PhoneInput-uymiSRfv.js → PhoneInput-qXboae9k.js} +62 -62
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/index-GQl0OyJB.js +88695 -0
  6. package/dist/index-QBpbC_ZD.js +1957 -0
  7. package/dist/{index-WXyiFeKd.js → index-bGbS5CRI.js} +1 -1
  8. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  10. package/dist/packages/features/bookings/Booker/components/Header.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
  12. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +1 -1
  13. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  14. package/dist/packages/features/bookings/Booker/utils/event.d.ts +39 -33
  15. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  16. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +83 -0
  17. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -0
  18. package/dist/packages/features/bookings/lib/create-booking.d.ts +91 -91
  19. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +91 -91
  20. package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -9
  21. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +40 -38
  22. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  23. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts +41 -0
  24. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts.map +1 -0
  25. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts +2 -0
  26. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts.map +1 -0
  27. package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts +16 -0
  28. package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts.map +1 -1
  29. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  30. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts +1 -0
  31. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
  32. package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +2 -2
  33. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -33
  34. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +57 -57
  35. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +60 -57
  36. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  37. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +57 -57
  38. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +46 -46
  39. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +45 -45
  40. package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts +1 -0
  41. package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts.map +1 -1
  42. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +364 -364
  43. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  44. package/dist/packages/features/bookings/lib/handlePayment.d.ts +49 -0
  45. package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -0
  46. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +33 -33
  47. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  48. package/dist/packages/features/bookings/lib/handleSeats/handleSeats.d.ts.map +1 -1
  49. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +33 -33
  50. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +39 -39
  51. package/dist/packages/features/components/controlled-dialog/index.d.ts.map +1 -1
  52. package/dist/packages/features/components/phone-input/PhoneInput.d.ts.map +1 -1
  53. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts +2 -1
  54. package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts.map +1 -1
  55. package/dist/packages/features/ee/billing/credit-service.d.ts +5 -1
  56. package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
  57. package/dist/packages/features/ee/billing/organizations/index.d.ts +1 -2
  58. package/dist/packages/features/ee/billing/organizations/index.d.ts.map +1 -1
  59. package/dist/packages/features/ee/billing/organizations/internal-organization-billing.d.ts +2 -2
  60. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +32 -4
  61. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts.map +1 -1
  62. package/dist/packages/features/ee/payments/server/stripe-service.d.ts +23 -0
  63. package/dist/packages/features/ee/payments/server/stripe-service.d.ts.map +1 -0
  64. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +125 -0
  65. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -0
  66. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts +2 -0
  67. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts.map +1 -0
  68. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +30 -30
  69. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  70. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  71. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  72. package/dist/packages/features/ee/workflows/lib/constants.d.ts +3 -1
  73. package/dist/packages/features/ee/workflows/lib/constants.d.ts.map +1 -1
  74. package/dist/packages/features/ee/workflows/lib/getOptions.d.ts +1 -1
  75. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +0 -3
  76. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  77. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +0 -3
  78. package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
  79. package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
  80. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
  81. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
  82. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
  83. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +6 -6
  84. package/dist/packages/features/ee/workflows/lib/schema.d.ts +7 -2
  85. package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
  86. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts +7 -0
  87. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts.map +1 -0
  88. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +1 -1
  89. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
  90. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  91. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts +28 -0
  92. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts.map +1 -0
  93. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts +2 -0
  94. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts.map +1 -0
  95. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +42 -33
  96. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  97. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -12
  98. package/dist/packages/features/eventtypes/lib/types.d.ts +1 -1
  99. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  100. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts +2 -2
  101. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts.map +1 -1
  102. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts +15 -0
  103. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts.map +1 -0
  104. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +20 -17
  105. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  106. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  107. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts +3 -0
  108. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts.map +1 -0
  109. package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts.map +1 -1
  110. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  111. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +91 -91
  112. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +91 -91
  113. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +91 -91
  114. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -3
  115. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  116. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +39 -33
  117. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  118. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +3 -3
  119. package/dist/packages/platform/atoms/hooks/schedules/useAtomUpdateSchedule.d.ts +3 -3
  120. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  121. package/dist/packages/platform/atoms/index.d.ts +0 -36
  122. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  123. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts +2 -0
  124. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts.map +1 -0
  125. package/dist/packages/platform/libraries/event-types.d.ts +5 -5
  126. package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
  127. package/dist/packages/platform/libraries/index.d.ts +4 -6
  128. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  129. package/dist/packages/prisma/zod/creditexpenselog.d.ts +6 -0
  130. package/dist/packages/prisma/zod/creditexpenselog.d.ts.map +1 -1
  131. package/dist/packages/prisma/zod/impersonations.d.ts +2 -2
  132. package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
  133. package/dist/packages/prisma/zod/task.d.ts +2 -2
  134. package/dist/packages/prisma/zod/teamfeatures.d.ts +2 -2
  135. package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
  136. package/dist/packages/prisma/zod/webhookscheduledtriggers.d.ts +2 -2
  137. package/dist/packages/prisma/zod/workflow.d.ts +7 -2
  138. package/dist/packages/prisma/zod/workflow.d.ts.map +1 -1
  139. package/dist/packages/prisma/zod-utils.d.ts +52 -0
  140. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  141. package/dist/packages/prisma-client/index.d.ts +86 -1
  142. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +2 -2
  143. package/dist/packages/trpc/react/shared.d.ts +1 -1
  144. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  145. package/dist/packages/trpc/react/trpc.d.ts.map +1 -1
  146. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  147. package/dist/style.css +1 -1
  148. package/package.json +1 -1
  149. package/dist/AppCard--JDiTUMU.js +0 -281
  150. package/dist/AppListCardPlatformWrapper-ncgLQL4r.js +0 -9
  151. package/dist/AppListCardWebWrapper-YnM7-ccd.js +0 -74
  152. package/dist/AppSettingsInterface-EvAriEj2.js +0 -23
  153. package/dist/AppSettingsInterface-OGwTTVN7.js +0 -29
  154. package/dist/AppSettingsInterface-_WywrNHs.js +0 -75
  155. package/dist/DateRangePicker-m_y_P8tk.js +0 -74
  156. package/dist/EventTypeAppCardInterface--74geeRF.js +0 -39
  157. package/dist/EventTypeAppCardInterface--UDAdk0r.js +0 -24
  158. package/dist/EventTypeAppCardInterface-2Q1qvV5K.js +0 -32
  159. package/dist/EventTypeAppCardInterface-2r4pxyRt.js +0 -34
  160. package/dist/EventTypeAppCardInterface-3T7Bcarm.js +0 -31
  161. package/dist/EventTypeAppCardInterface-EPHC3SF7.js +0 -24
  162. package/dist/EventTypeAppCardInterface-G3OAa6sU.js +0 -41
  163. package/dist/EventTypeAppCardInterface-JQgzokgl.js +0 -32
  164. package/dist/EventTypeAppCardInterface-KDalRazj.js +0 -34
  165. package/dist/EventTypeAppCardInterface-LvigpfyE.js +0 -49
  166. package/dist/EventTypeAppCardInterface-MIro_wur.js +0 -33
  167. package/dist/EventTypeAppCardInterface-Na5tUt6e.js +0 -34
  168. package/dist/EventTypeAppCardInterface-O0yLol5y.js +0 -34
  169. package/dist/EventTypeAppCardInterface-R8-Y-hSu.js +0 -39
  170. package/dist/EventTypeAppCardInterface-YlTC8St1.js +0 -51
  171. package/dist/EventTypeAppCardInterface-_x7wFmBk.js +0 -24
  172. package/dist/EventTypeAppCardInterface-bNGYsiB0.js +0 -86
  173. package/dist/EventTypeAppCardInterface-d-rOMdsH.js +0 -34
  174. package/dist/EventTypeAppCardInterface-iHpJPDlc.js +0 -34
  175. package/dist/EventTypeAppCardInterface-jBTRuVkO.js +0 -51
  176. package/dist/EventTypeAppCardInterface-lXddHFhd.js +0 -41
  177. package/dist/EventTypeAppCardInterface-li1GK953.js +0 -858
  178. package/dist/EventTypeAppCardInterface-qO1PKt6x.js +0 -42
  179. package/dist/EventTypeAppCardInterface-rKAjvg4x.js +0 -24
  180. package/dist/EventTypeAppCardInterface-rV1vgpRv.js +0 -42
  181. package/dist/EventTypeAppCardInterface-sIqZFcBV.js +0 -34
  182. package/dist/EventTypeAppCardInterface-safQ0enm.js +0 -24
  183. package/dist/EventTypeAppSettingsInterface-7e1qbHi8.js +0 -24
  184. package/dist/EventTypeAppSettingsInterface-CLwwrZv6.js +0 -48
  185. package/dist/EventTypeAppSettingsInterface-CPvfqJkx.js +0 -221
  186. package/dist/EventTypeAppSettingsInterface-EZZkJrLi.js +0 -106
  187. package/dist/EventTypeAppSettingsInterface-JBpWa3pz.js +0 -298
  188. package/dist/EventTypeAppSettingsInterface-J_c1VzIk.js +0 -23
  189. package/dist/EventTypeAppSettingsInterface-K4kVWoog.js +0 -23
  190. package/dist/EventTypeAppSettingsInterface-LIn3bMv4.js +0 -25
  191. package/dist/EventTypeAppSettingsInterface-cbkdr04f.js +0 -42
  192. package/dist/EventTypeAppSettingsInterface-eejB8RJX.js +0 -43
  193. package/dist/EventTypeAppSettingsInterface-mOdk6pDR.js +0 -78
  194. package/dist/EventTypeAppSettingsInterface-vNhCP6vQ.js +0 -72
  195. package/dist/EventTypeAppSettingsInterface-xYWyd_Dz.js +0 -120
  196. package/dist/InstallAppButton-6HzB5_Be.js +0 -14
  197. package/dist/InstallAppButton-9sn2Jtoz.js +0 -14
  198. package/dist/InstallAppButton-J51NRgMF.js +0 -58
  199. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  200. package/dist/StripePaymentForm-cXAJjJV3.js +0 -493
  201. package/dist/currencyOptions-kannG2hu.js +0 -61
  202. package/dist/index--iR_feQQ.js +0 -165254
  203. package/dist/index-XoFQv1cd.js +0 -518
  204. package/dist/index-tEqQSBcP.js +0 -28
  205. package/dist/useIsAppEnabled-C_9eRB94.js +0 -18
@@ -1,120 +0,0 @@
1
- import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
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";
4
- const f = [
5
- "BIF",
6
- "CLP",
7
- "DJF",
8
- "GNF",
9
- "JPY",
10
- "KMF",
11
- "KRW",
12
- "MGA",
13
- "PYG",
14
- "RWF",
15
- "UGX",
16
- "VND",
17
- "VUV",
18
- "XAF",
19
- "XOF",
20
- "XPF"
21
- ], U = (e, a) => f.includes(a.toUpperCase()) ? e : Math.round(e * 100), _ = (e, a) => f.includes(a.toUpperCase()) ? e : e / 100, V = [
22
- {
23
- label: "on_booking_option",
24
- value: "ON_BOOKING"
25
- }
26
- ], r = [
27
- { label: "United States dollar (USD)", value: "usd" },
28
- { label: "Singapore dollar (SGD)", value: "sgd" },
29
- { label: "Malaysian ringgit (MYR)", value: "myr" },
30
- { label: "Indonesian rupiah (IDR)", value: "idr" },
31
- { label: "Japanese yen (JPY)", value: "jpy" },
32
- { label: "Hong Kong dollar (HKD)", value: "hkd" },
33
- { label: "Thai baht (THB)", value: "thb" },
34
- { label: "Australian dollar (AUD)", value: "aud" },
35
- { label: "New Zealand dollar (NZD)", value: "nzd" },
36
- { label: "British pound sterling (GBP)", value: "gbp" },
37
- { label: "Philippine peso (PHP)", value: "php" },
38
- { label: "Indian rupee (INR)", value: "inr" },
39
- { label: "Chinese yuan (CNY)", value: "cny" },
40
- { label: "Euro (EUR)", value: "eur" },
41
- { label: "Swiss franc (CHF)", value: "chf" },
42
- { label: "Danish krone (DKK)", value: "dkk" },
43
- { label: "Swedish krona (SEK)", value: "sek" },
44
- { label: "Norwegian krone (NOK)", value: "nok" },
45
- { label: "Vietnamese đồng (VND)", value: "vnd" },
46
- { label: "Canadian dollar (CAD)", value: "cad" },
47
- { label: "South Korean won (KRW)", value: "krw" }
48
- ], R = ({
49
- getAppData: e,
50
- setAppData: a,
51
- disabled: h,
52
- eventType: d
53
- }) => {
54
- var b;
55
- const m = e("price"), t = e("currency") || r[0].value, [i, g] = P(
56
- r.find((l) => l.value === t) || {
57
- label: r[0].label,
58
- value: r[0].value
59
- }
60
- ), S = e("paymentOption"), c = e("enabled"), { t: s } = x(), v = ((b = d.recurringEvent) == null ? void 0 : b.count) !== void 0, N = !!d.seatsPerTimeSlot, C = (l, y) => 0 .toLocaleString(l, {
61
- style: "currency",
62
- currency: y,
63
- minimumFractionDigits: 0,
64
- maximumFractionDigits: 0
65
- }).replace(/\d/g, "").trim();
66
- k(() => {
67
- c && (e("currency") || a("currency", r[0].value), e("paymentOption") || a("paymentOption", V[0].value));
68
- }, [c, e, a]);
69
- const F = (l) => {
70
- const O = Math.floor(l).toString();
71
- return parseInt(O);
72
- };
73
- return /* @__PURE__ */ u(o, { children: [
74
- v && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("warning_recurring_event_payment") }),
75
- !v && c && /* @__PURE__ */ u(o, { children: [
76
- /* @__PURE__ */ n("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ n(
77
- w,
78
- {
79
- "data-testid": "stripe-price-input",
80
- label: s("price"),
81
- className: "h-[38px]",
82
- addOnLeading: /* @__PURE__ */ n(o, { children: i.value ? C("en", i.value) : "" }),
83
- addOnSuffix: t.toUpperCase(),
84
- addOnClassname: "h-[38px]",
85
- step: "1",
86
- min: "1",
87
- type: "number",
88
- required: !0,
89
- placeholder: "Price",
90
- disabled: h,
91
- onChange: (l) => {
92
- a("price", U(Number(l.target.value), t));
93
- },
94
- value: m > 0 ? F(_(m, t)) : void 0
95
- }
96
- ) }),
97
- /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
98
- /* @__PURE__ */ n("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: s("currency") }),
99
- /* @__PURE__ */ n(
100
- K,
101
- {
102
- "data-testid": "stripe-currency-select",
103
- variant: "default",
104
- options: r,
105
- value: i,
106
- className: "text-black",
107
- defaultValue: i,
108
- onChange: (l) => {
109
- l && (g(l), a("currency", l.value));
110
- }
111
- }
112
- )
113
- ] }),
114
- N && S === "HOLD" && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("seats_and_no_show_fee_error") })
115
- ] })
116
- ] });
117
- };
118
- export {
119
- R as default
120
- };
@@ -1,14 +0,0 @@
1
- import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { v as o } from "./index--iR_feQQ.js";
3
- function d(t) {
4
- const n = o("exchange2013_calendar");
5
- return /* @__PURE__ */ e(a, { children: t.render({
6
- onClick() {
7
- n.mutate("");
8
- },
9
- loading: n.isPending
10
- }) });
11
- }
12
- export {
13
- d as default
14
- };
@@ -1,14 +0,0 @@
1
- import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { v as o } from "./index--iR_feQQ.js";
3
- function d(t) {
4
- const n = o("exchange2016_calendar");
5
- return /* @__PURE__ */ e(a, { children: t.render({
6
- onClick() {
7
- n.mutate("");
8
- },
9
- loading: n.isPending
10
- }) });
11
- }
12
- export {
13
- d as default
14
- };
@@ -1,58 +0,0 @@
1
- import { jsxs as f, Fragment as l, jsx as m } from "react/jsx-runtime";
2
- import { useState as p } from "react";
3
- import { v as d, al as E, W as g } from "./index--iR_feQQ.js";
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
- switch (typeof n) {
6
- case "string":
7
- return n;
8
- case "boolean":
9
- return n ? "true" : "false";
10
- case "number":
11
- return isFinite(n) ? n : "";
12
- default:
13
- return "";
14
- }
15
- }, y = function(n, t, e, o) {
16
- return t = t || "&", e = e || "=", n === null && (n = void 0), typeof n == "object" ? Object.keys(n).map(function(r) {
17
- var a = encodeURIComponent(i(r)) + e;
18
- return Array.isArray(n[r]) ? n[r].map(function(c) {
19
- return a + encodeURIComponent(i(c));
20
- }).join(t) : a + encodeURIComponent(i(n[r]));
21
- }).filter(Boolean).join(t) : o ? encodeURIComponent(i(o)) + e + encodeURIComponent(i(n)) : "";
22
- }, u;
23
- u = y;
24
- const C = ({
25
- slug: n,
26
- step: t,
27
- teamId: e
28
- }) => {
29
- const o = { slug: n };
30
- e && (o.teamId = e);
31
- const r = u(o);
32
- return `/apps/installation/${t}?${r}`;
33
- };
34
- function I(n) {
35
- const [t, e] = p(!1), o = d(null), r = () => {
36
- o.mutate({
37
- type: "office365_video",
38
- variant: "conferencing",
39
- slug: "msteams",
40
- returnTo: g + C({
41
- slug: "msteams",
42
- step: s.EVENT_TYPES_STEP
43
- })
44
- });
45
- };
46
- return /* @__PURE__ */ f(l, { children: [
47
- n.render({
48
- onClick() {
49
- e(!0);
50
- },
51
- disabled: t
52
- }),
53
- /* @__PURE__ */ m(E, { open: t, onOpenChange: e, handleSubmit: r })
54
- ] });
55
- }
56
- export {
57
- I as default
58
- };
@@ -1,29 +0,0 @@
1
- import { jsx as i, Fragment as a } from "react/jsx-runtime";
2
- import { useState as s } from "react";
3
- function f(n) {
4
- const o = async () => {
5
- const t = await fetch("/api/integrations/vital/token", {
6
- method: "POST",
7
- body: JSON.stringify({}),
8
- headers: {
9
- "Content-Type": "application/json"
10
- }
11
- });
12
- if (!t.ok)
13
- throw new Error("Failed to get link token");
14
- return await t.json();
15
- }, [r, e] = s(!1);
16
- return /* @__PURE__ */ i(a, { children: n.render({
17
- onClick() {
18
- e(!0), o().then((t) => {
19
- e(!1), window.open(`${t.url}&token=${t.token}`, "_self");
20
- }).catch((t) => {
21
- e(!1), console.error(t);
22
- });
23
- },
24
- loading: r
25
- }) });
26
- }
27
- export {
28
- f as default
29
- };