@calcom/atoms 1.0.113 → 1.1.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 (163) hide show
  1. package/README.md +22 -1
  2. package/dist/{AddressInput-KB6kz8jd.js → AddressInput-6TIOefqU.js} +3 -3
  3. package/dist/{AlbyPriceComponent-oomi1mi5.js → AlbyPriceComponent-zZlkVZTy.js} +29 -29
  4. package/dist/{PhoneInput-PW7Cwn_k.js → PhoneInput-_EJl7Rqu.js} +1 -1
  5. package/dist/cal-atoms.js +5 -36
  6. package/dist/index-4kA2xtz7.js +1957 -0
  7. package/dist/index-ESVL5ZDq.js +82852 -0
  8. package/dist/{index-zYn1uiuE.js → index-_P-UqUYu.js} +1 -1
  9. package/dist/packages/dayjs/locales.d.ts +1 -0
  10. package/dist/packages/dayjs/locales.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  12. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +2 -8
  13. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  14. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +2 -1
  15. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
  16. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +4 -0
  17. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
  18. package/dist/packages/features/bookings/Booker/types.d.ts +9 -8
  19. package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
  20. package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts +2 -1
  21. package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
  22. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +5 -0
  23. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  24. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  25. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +18 -0
  26. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  27. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +22 -0
  28. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  29. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +18 -0
  30. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  31. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +14 -0
  32. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  33. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +4 -0
  34. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
  35. package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts +2 -0
  36. package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts.map +1 -0
  37. package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts +5 -0
  38. package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts.map +1 -0
  39. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  40. package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
  41. package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
  42. package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts +1 -1
  43. package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts.map +1 -1
  44. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +4 -0
  45. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  46. package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
  47. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +1 -2
  48. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  49. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts +2 -0
  50. package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts.map +1 -1
  51. package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
  52. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts +0 -1
  53. package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
  54. package/dist/packages/features/eventtypes/components/Locations.d.ts.map +1 -1
  55. package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
  56. package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts +9 -1
  57. package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts.map +1 -1
  58. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +1 -1
  59. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  60. package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
  61. package/dist/packages/features/shell/navigation/NavigationItem.d.ts.map +1 -1
  62. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +14 -13
  63. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  64. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -2
  65. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  66. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  67. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +4 -0
  68. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  69. package/dist/packages/platform/atoms/event-types/hooks/usePlatformTabsNavigations.d.ts +1 -1
  70. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +2 -1
  71. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  72. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +1 -0
  73. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
  74. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +6 -0
  75. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  76. package/dist/packages/platform/atoms/index.d.ts +0 -32
  77. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  78. package/dist/packages/platform/libraries/repositories.d.ts +9 -0
  79. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -0
  80. package/dist/packages/platform/libraries/slots.d.ts +2 -2
  81. package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
  82. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +11 -2
  83. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  84. package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts +2 -1
  85. package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts.map +1 -1
  86. package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts +2 -2
  87. package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts.map +1 -1
  88. package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts +4 -3
  89. package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts.map +1 -1
  90. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +4 -0
  91. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
  92. package/dist/packages/prisma/zod/deployment.d.ts +3 -0
  93. package/dist/packages/prisma/zod/deployment.d.ts.map +1 -1
  94. package/dist/packages/prisma/zod/destinationcalendar.d.ts +6 -0
  95. package/dist/packages/prisma/zod/destinationcalendar.d.ts.map +1 -1
  96. package/dist/packages/prisma/zod/role.d.ts +3 -0
  97. package/dist/packages/prisma/zod/role.d.ts.map +1 -1
  98. package/dist/packages/prisma/zod/selectedcalendar.d.ts +6 -0
  99. package/dist/packages/prisma/zod/selectedcalendar.d.ts.map +1 -1
  100. package/dist/packages/prisma-client/index.d.ts +316 -3
  101. package/dist/packages/trpc/react/shared.d.ts +1 -1
  102. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  103. package/dist/packages/trpc/server/routers/viewer/slots/getSchedule.handler.d.ts.map +1 -1
  104. package/dist/packages/trpc/server/routers/viewer/slots/reserveSlot.handler.d.ts.map +1 -1
  105. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +50 -2027
  106. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  107. package/dist/style.css +1 -1
  108. package/package.json +6 -4
  109. package/dist/AppCard-QiR8Srh9.js +0 -281
  110. package/dist/AppListCardPlatformWrapper-h2jM2g95.js +0 -9
  111. package/dist/AppListCardWebWrapper-OFBgjlYM.js +0 -74
  112. package/dist/AppSettingsInterface-7COrVrq0.js +0 -29
  113. package/dist/AppSettingsInterface-dKlvoMv2.js +0 -75
  114. package/dist/AppSettingsInterface-pbYlc78L.js +0 -23
  115. package/dist/DateRangePicker-PzwyBx1B.js +0 -2405
  116. package/dist/EventTypeAppCardInterface-3x755JiU.js +0 -34
  117. package/dist/EventTypeAppCardInterface-507LHevd.js +0 -41
  118. package/dist/EventTypeAppCardInterface-5ThkZk8K.js +0 -31
  119. package/dist/EventTypeAppCardInterface-73IWOiiD.js +0 -39
  120. package/dist/EventTypeAppCardInterface-75U5VYai.js +0 -24
  121. package/dist/EventTypeAppCardInterface-8LbWeqrI.js +0 -34
  122. package/dist/EventTypeAppCardInterface-DAchEAmi.js +0 -24
  123. package/dist/EventTypeAppCardInterface-FqmTQynb.js +0 -34
  124. package/dist/EventTypeAppCardInterface-Hlu0jFWw.js +0 -86
  125. package/dist/EventTypeAppCardInterface-NTtL7BeB.js +0 -34
  126. package/dist/EventTypeAppCardInterface-RaliX3yn.js +0 -34
  127. package/dist/EventTypeAppCardInterface-UAnlpa_7.js +0 -49
  128. package/dist/EventTypeAppCardInterface-UTxxrcvC.js +0 -42
  129. package/dist/EventTypeAppCardInterface-YyYQcCLb.js +0 -32
  130. package/dist/EventTypeAppCardInterface-aiQ1O2Fx.js +0 -33
  131. package/dist/EventTypeAppCardInterface-bPaHnrrw.js +0 -41
  132. package/dist/EventTypeAppCardInterface-gNG7CLUC.js +0 -24
  133. package/dist/EventTypeAppCardInterface-kzZe7_nW.js +0 -34
  134. package/dist/EventTypeAppCardInterface-qnzgEVgx.js +0 -34
  135. package/dist/EventTypeAppCardInterface-qv1aKHZi.js +0 -42
  136. package/dist/EventTypeAppCardInterface-sM5oG-nM.js +0 -51
  137. package/dist/EventTypeAppCardInterface-sca6lBYk.js +0 -24
  138. package/dist/EventTypeAppCardInterface-tUKSDdlH.js +0 -51
  139. package/dist/EventTypeAppCardInterface-ti-rNnZb.js +0 -32
  140. package/dist/EventTypeAppCardInterface-wu_3YRX-.js +0 -696
  141. package/dist/EventTypeAppCardInterface-wzbXpbmI.js +0 -24
  142. package/dist/EventTypeAppSettingsInterface--vQ93o16.js +0 -24
  143. package/dist/EventTypeAppSettingsInterface-9lNYGi2n.js +0 -43
  144. package/dist/EventTypeAppSettingsInterface-DMrIHmgd.js +0 -120
  145. package/dist/EventTypeAppSettingsInterface-KHIuFGBN.js +0 -78
  146. package/dist/EventTypeAppSettingsInterface-L1Xo8tyr.js +0 -298
  147. package/dist/EventTypeAppSettingsInterface-Pu5B82S0.js +0 -25
  148. package/dist/EventTypeAppSettingsInterface-R_ad05AV.js +0 -23
  149. package/dist/EventTypeAppSettingsInterface-YWfWvEU3.js +0 -48
  150. package/dist/EventTypeAppSettingsInterface-_RDwKkaA.js +0 -221
  151. package/dist/EventTypeAppSettingsInterface-btPUVD8h.js +0 -23
  152. package/dist/EventTypeAppSettingsInterface-c2021R4F.js +0 -42
  153. package/dist/EventTypeAppSettingsInterface-tKBioveg.js +0 -72
  154. package/dist/InstallAppButton-Iv6u_RfE.js +0 -58
  155. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  156. package/dist/InstallAppButton-Y17r7ILt.js +0 -14
  157. package/dist/InstallAppButton-dSCw_yR0.js +0 -14
  158. package/dist/StripePaymentForm-g3sWk7Tq.js +0 -493
  159. package/dist/currencyOptions-kannG2hu.js +0 -61
  160. package/dist/index-Bsynpgsa.js +0 -28
  161. package/dist/index-J6APIiEa.js +0 -156564
  162. package/dist/index-qEFnZPmB.js +0 -518
  163. package/dist/useIsAppEnabled-88ccKgkc.js +0 -18
@@ -1,48 +0,0 @@
1
- import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
- import { useState as m, useEffect as v } from "react";
3
- import { y as p, S as h } from "./index-J6APIiEa.js";
4
- const P = ({}) => {
5
- const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
6
- return v(
7
- function() {
8
- var a, i, l;
9
- r({
10
- value: e == null ? void 0 : e.projects.currentProject,
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
- label: (i = (a = e == null ? void 0 : e.projects) == null ? void 0 : a.find((s) => s.id === (e == null ? void 0 : e.currentProject))) == null ? void 0 : i.name
13
- }), u(
14
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
- (l = e == null ? void 0 : e.projects) == null ? void 0 : l.map((s) => ({
16
- value: s.id,
17
- label: s.name
18
- }))
19
- );
20
- },
21
- [e]
22
- ), /* @__PURE__ */ o("div", { className: "mt-2 text-sm", children: [
23
- /* @__PURE__ */ o("div", { className: "flex gap-3", children: [
24
- /* @__PURE__ */ c("div", { className: "items-center", children: /* @__PURE__ */ c("p", { className: "py-2", children: "Link a Basecamp project to this event:" }) }),
25
- /* @__PURE__ */ c(
26
- h,
27
- {
28
- placeholder: "Select project",
29
- options: n,
30
- isLoading: !n,
31
- className: "md:min-w-[120px]",
32
- onChange: (t) => {
33
- t && (d.mutate({ projectId: t == null ? void 0 : t.value.toString() }), r(t));
34
- },
35
- value: f
36
- }
37
- )
38
- ] }),
39
- /* @__PURE__ */ o("div", { className: "mt-2", children: [
40
- "Please note that as of now you can only link ",
41
- /* @__PURE__ */ c("span", { className: "italic", children: "one" }),
42
- " of your projects to cal.com"
43
- ] })
44
- ] });
45
- };
46
- export {
47
- P as default
48
- };
@@ -1,221 +0,0 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { useState as d } from "react";
3
- import { q as I, a7 as P, a8 as j, e as T, r as g, M as C, x as A, a9 as E, aa as R, N as z } from "./index-J6APIiEa.js";
4
- const y = "search", k = "url", B = (s) => {
5
- const { t: a } = I(), [i, l] = d(""), [p, m] = d(0), [c, v] = d(""), { isOpenDialog: D, setIsOpenDialog: O } = s, [u, b] = d(!1), [N, h] = d(""), [x, _] = d(y), w = async (n, f) => {
6
- if (u)
7
- return;
8
- b(!0), h("");
9
- const t = await fetch("/api/integrations/giphy/search", {
10
- method: "POST",
11
- headers: {
12
- "Content-Type": "application/json"
13
- },
14
- body: JSON.stringify({
15
- keyword: n,
16
- offset: f
17
- })
18
- }), r = await t.json();
19
- return t.ok ? (l(r.image || ""), m(r.nextOffset), r.image || h("No Result found")) : h((r == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
20
- }, G = async (n) => {
21
- var r;
22
- if (u)
23
- return;
24
- b(!0), h("");
25
- const f = await fetch("/api/integrations/giphy/get", {
26
- method: "POST",
27
- headers: {
28
- "Content-Type": "application/json"
29
- },
30
- body: JSON.stringify({
31
- url: n
32
- })
33
- }), t = await f.json();
34
- return f.ok ? (l(t.image || ""), t.image || h("No Result found")) : h((t == null ? void 0 : t.message) || ((r = t == null ? void 0 : t[0]) == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
35
- }, S = (n, f, t) => /* @__PURE__ */ o(
36
- "div",
37
- {
38
- className: C(
39
- "flex cursor-pointer items-center border-b-2 p-2 text-sm ",
40
- x === t ? "text-default border-emphasis" : "text-subtle border-transparent"
41
- ),
42
- onClick: () => {
43
- v(""), l(""), _(t);
44
- },
45
- children: [
46
- /* @__PURE__ */ e(z, { name: n, className: "h-4 w-4 ltr:mr-2 rtl:ml-2" }),
47
- f
48
- ]
49
- }
50
- ), M = async (n) => {
51
- n.stopPropagation(), n.preventDefault(), x === y ? w(c, 0) : x === k && G(c);
52
- };
53
- return /* @__PURE__ */ e(P, { open: D, onOpenChange: O, children: /* @__PURE__ */ o(j, { children: [
54
- /* @__PURE__ */ e("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
55
- /* @__PURE__ */ e("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
56
- /* @__PURE__ */ o("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
57
- S("search", a("search_giphy"), y),
58
- S("link", a("add_link_from_giphy"), k)
59
- ] }),
60
- /* @__PURE__ */ o(
61
- "form",
62
- {
63
- className: "flex w-full justify-center space-x-2 space-y-2 rtl:space-x-reverse",
64
- onSubmit: M,
65
- children: [
66
- /* @__PURE__ */ e("div", { className: "relative block w-full pt-2", children: /* @__PURE__ */ e(
67
- T,
68
- {
69
- type: "text",
70
- placeholder: x === y ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
71
- value: c,
72
- onChange: (n) => {
73
- v(n.target.value);
74
- }
75
- }
76
- ) }),
77
- /* @__PURE__ */ e(g, { type: "submit", tabIndex: -1, color: "secondary", loading: u, children: a("search") })
78
- ]
79
- }
80
- ),
81
- i && /* @__PURE__ */ e("div", { className: "flex flex-col items-center space-x-2 space-y-2 pt-3 rtl:space-x-reverse", children: /* @__PURE__ */ e("div", { className: "bg-subtle flex w-full items-center justify-center", children: u ? /* @__PURE__ */ e("div", { className: "flex h-[200px] w-full items-center justify-center bg-gray-400 pb-3 pt-3", children: /* @__PURE__ */ o(
82
- "svg",
83
- {
84
- className: C("mx-4 h-5 w-5 animate-spin", "text-inverted dark:text-emphasis"),
85
- xmlns: "http://www.w3.org/2000/svg",
86
- fill: "none",
87
- viewBox: "0 0 24 24",
88
- children: [
89
- /* @__PURE__ */ e(
90
- "circle",
91
- {
92
- className: "opacity-25",
93
- cx: "12",
94
- cy: "12",
95
- r: "10",
96
- stroke: "currentColor",
97
- strokeWidth: "4"
98
- }
99
- ),
100
- /* @__PURE__ */ e(
101
- "path",
102
- {
103
- className: "opacity-75",
104
- fill: "currentColor",
105
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
106
- }
107
- )
108
- ]
109
- }
110
- ) }) : /* @__PURE__ */ e("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${c}` }) }) }),
111
- N && /* @__PURE__ */ e(A, { severity: "error", title: N, className: "my-4" }),
112
- i && x === y && /* @__PURE__ */ o("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
113
- /* @__PURE__ */ e("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
114
- /* @__PURE__ */ e(
115
- g,
116
- {
117
- size: "sm",
118
- color: "secondary",
119
- type: "button",
120
- loading: u,
121
- onClick: () => w(c, p),
122
- children: "Shuffle"
123
- }
124
- )
125
- ] }),
126
- /* @__PURE__ */ o(E, { children: [
127
- /* @__PURE__ */ e(
128
- R,
129
- {
130
- color: "minimal",
131
- tabIndex: -1,
132
- onClick: () => {
133
- s.setIsOpenDialog(!1);
134
- },
135
- children: a("cancel")
136
- }
137
- ),
138
- /* @__PURE__ */ e(
139
- g,
140
- {
141
- type: "button",
142
- disabled: !i,
143
- onClick: () => (s.setIsOpenDialog(!1), s.onSave(i), m(0), l(""), v(""), !1),
144
- children: a("add_gif")
145
- }
146
- )
147
- ] })
148
- ] }) });
149
- };
150
- function F(s) {
151
- const { t: a } = I(), [i, l] = d(s.defaultValue), [p, m] = d(!1);
152
- return /* @__PURE__ */ o("div", { className: "flex flex-col items-start space-x-2 space-y-2 rtl:space-x-reverse", children: [
153
- i && /* @__PURE__ */ e("div", { className: "min-h-[200px]", children: /* @__PURE__ */ e("img", { alt: "Selected Gif Image", src: i }) }),
154
- /* @__PURE__ */ o("div", { className: "flex", children: [
155
- i ? /* @__PURE__ */ e(
156
- g,
157
- {
158
- color: "minimal",
159
- type: "button",
160
- StartIcon: "pencil",
161
- onClick: () => m(!0),
162
- disabled: s.disabled,
163
- children: "Change"
164
- }
165
- ) : /* @__PURE__ */ e(
166
- g,
167
- {
168
- color: "minimal",
169
- type: "button",
170
- StartIcon: "plus",
171
- onClick: () => m(!0),
172
- disabled: s.disabled,
173
- children: "Add from Giphy"
174
- }
175
- ),
176
- i && /* @__PURE__ */ e(
177
- g,
178
- {
179
- color: "destructive",
180
- type: "button",
181
- StartIcon: "x",
182
- onClick: () => {
183
- l(""), s.onChange("");
184
- },
185
- disabled: s.disabled,
186
- children: a("remove")
187
- }
188
- )
189
- ] }),
190
- /* @__PURE__ */ e(
191
- B,
192
- {
193
- isOpenDialog: p,
194
- setIsOpenDialog: m,
195
- onSave: (c) => {
196
- l(c), s.onChange(c);
197
- }
198
- }
199
- )
200
- ] });
201
- }
202
- const J = ({
203
- getAppData: s,
204
- setAppData: a,
205
- disabled: i
206
- }) => {
207
- const l = s("thankYouPage");
208
- return /* @__PURE__ */ e(
209
- F,
210
- {
211
- defaultValue: l,
212
- disabled: i,
213
- onChange: (p) => {
214
- a("thankYouPage", p);
215
- }
216
- }
217
- );
218
- };
219
- export {
220
- J as default
221
- };
@@ -1,23 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { f as o } from "./index-J6APIiEa.js";
3
- const p = ({
4
- getAppData: t,
5
- setAppData: e,
6
- disabled: a
7
- }) => {
8
- const n = t("trackingId");
9
- return /* @__PURE__ */ i(
10
- o,
11
- {
12
- name: "Tracking ID",
13
- value: n,
14
- disabled: a,
15
- onChange: (r) => {
16
- e("trackingId", r.target.value);
17
- }
18
- }
19
- );
20
- };
21
- export {
22
- p as default
23
- };
@@ -1,42 +0,0 @@
1
- import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
- import { f as s } from "./index-J6APIiEa.js";
3
- const p = ({
4
- getAppData: a,
5
- setAppData: t,
6
- disabled: l,
7
- slug: r
8
- }) => {
9
- const n = a("PLAUSIBLE_URL"), o = a("trackingId");
10
- return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
11
- /* @__PURE__ */ i(
12
- s,
13
- {
14
- dataTestid: `${r}-url`,
15
- name: "Plausible URL",
16
- defaultValue: "https://plausible.io/js/script.js",
17
- placeholder: "https://plausible.io/js/script.js",
18
- value: n,
19
- disabled: l,
20
- onChange: (e) => {
21
- t("PLAUSIBLE_URL", e.target.value);
22
- }
23
- }
24
- ),
25
- /* @__PURE__ */ i(
26
- s,
27
- {
28
- dataTestid: `${r}-tracking-id`,
29
- disabled: l,
30
- name: "Tracked Domain",
31
- placeholder: "yourdomain.com",
32
- value: o,
33
- onChange: (e) => {
34
- t("trackingId", e.target.value);
35
- }
36
- }
37
- )
38
- ] });
39
- };
40
- export {
41
- p as default
42
- };
@@ -1,72 +0,0 @@
1
- import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
2
- import { useState as N, useEffect as w } from "react";
3
- import { q as _, V as t, x as g, f as C, O as P, S as p } from "./index-J6APIiEa.js";
4
- const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
5
- eventType: f,
6
- getAppData: s,
7
- setAppData: a
8
- }) => {
9
- var v, h;
10
- const { t: n } = _(), i = s("price"), c = s("currency"), [r, O] = N(
11
- d.find((e) => e.value === c) || d[0]
12
- ), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
13
- label: t[0].label,
14
- value: t[0].value
15
- }, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), S = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
16
- return w(() => {
17
- !c && m && a("currency", r.value);
18
- }, [c, r, a, m]), /* @__PURE__ */ l(x, { children: S ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
19
- /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
20
- C,
21
- {
22
- label: "Price",
23
- labelSrOnly: !0,
24
- addOnLeading: /* @__PURE__ */ l(P, { className: "h-4 w-4" }),
25
- addOnSuffix: r.unit || r.value,
26
- type: "number",
27
- required: !0,
28
- className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
29
- placeholder: "Price",
30
- onChange: (e) => {
31
- a("price", Number(e.target.value)), c && a("currency", c);
32
- },
33
- value: i && i > 0 ? i : void 0
34
- }
35
- ) }),
36
- /* @__PURE__ */ o("div", { className: "mt-5 w-60", children: [
37
- /* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
38
- /* @__PURE__ */ l(
39
- p,
40
- {
41
- variant: "default",
42
- options: d,
43
- value: r,
44
- className: "text-black",
45
- defaultValue: r,
46
- onChange: (e) => {
47
- e && (O(e), a("currency", e.value));
48
- }
49
- }
50
- )
51
- ] }),
52
- /* @__PURE__ */ o("div", { className: "mt-2 w-60", children: [
53
- /* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
54
- /* @__PURE__ */ l(
55
- p,
56
- {
57
- defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
58
- options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
59
- onChange: (e) => {
60
- e && a("paymentOption", e.value);
61
- },
62
- className: "mb-1 h-[38px] w-full",
63
- isDisabled: y
64
- }
65
- )
66
- ] }),
67
- y && b === "HOLD" && /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
68
- ] }) });
69
- };
70
- export {
71
- T as default
72
- };
@@ -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 { u as d, af as E, W as g } from "./index-J6APIiEa.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
- };
@@ -1,14 +0,0 @@
1
- import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { u as o } from "./index-J6APIiEa.js";
3
- function u(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
- u as default
14
- };
@@ -1,14 +0,0 @@
1
- import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { u as o } from "./index-J6APIiEa.js";
3
- function u(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
- u as default
14
- };