@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,34 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { t as l, f as m } from "./index-J6APIiEa.js";
3
- import { A as u } from "./AppCard-QiR8Srh9.js";
4
- import { u as h } from "./useIsAppEnabled-88ccKgkc.js";
5
- const D = function({ app: a, eventType: d }) {
6
- var s;
7
- const { getAppData: n, setAppData: r, disabled: p } = l(), i = n("SITE_ID"), { enabled: o, updateEnabled: c } = h(a);
8
- return /* @__PURE__ */ t(
9
- u,
10
- {
11
- app: a,
12
- switchOnClick: (e) => {
13
- c(e);
14
- },
15
- switchChecked: o,
16
- teamId: ((s = d.team) == null ? void 0 : s.id) || void 0,
17
- children: /* @__PURE__ */ t("fieldset", { className: "space-y-2", disabled: p, children: /* @__PURE__ */ t(
18
- m,
19
- {
20
- disabled: p,
21
- name: "Site ID",
22
- value: i,
23
- placeholder: "Enter your Site ID",
24
- onChange: (e) => {
25
- r("SITE_ID", e.target.value);
26
- }
27
- }
28
- ) })
29
- }
30
- );
31
- };
32
- export {
33
- D as default
34
- };
@@ -1,41 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { q as b, s as f, t as E, v, W as y } from "./index-J6APIiEa.js";
3
- import { useState as C } from "react";
4
- import { A as P } from "./AppCard-QiR8Srh9.js";
5
- import { u as g } from "./useIsAppEnabled-88ccKgkc.js";
6
- import w from "./EventTypeAppSettingsInterface-DMrIHmgd.js";
7
- const W = function({
8
- app: t,
9
- eventType: e,
10
- eventTypeFormMetadata: n
11
- }) {
12
- var o;
13
- const { t: i } = b(), r = f.usePathname(), { getAppData: a, setAppData: c, disabled: m } = E(), { enabled: d, updateEnabled: l } = g(t), u = v(n), [h] = C(a("enabled")), s = !h && u;
14
- return /* @__PURE__ */ p(
15
- P,
16
- {
17
- returnTo: `${y}${r}?tabName=apps`,
18
- app: t,
19
- switchChecked: d,
20
- switchOnClick: (A) => {
21
- l(A);
22
- },
23
- teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
24
- disableSwitch: s,
25
- switchTooltip: s ? i("other_payment_app_enabled") : void 0,
26
- children: /* @__PURE__ */ p(
27
- w,
28
- {
29
- eventType: e,
30
- slug: t.slug,
31
- disabled: m,
32
- getAppData: a,
33
- setAppData: c
34
- }
35
- )
36
- }
37
- );
38
- };
39
- export {
40
- W as default
41
- };
@@ -1,31 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { t as d } from "./index-J6APIiEa.js";
3
- import { A as c } from "./AppCard-QiR8Srh9.js";
4
- import { u as m } from "./useIsAppEnabled-88ccKgkc.js";
5
- import l from "./EventTypeAppSettingsInterface-YWfWvEU3.js";
6
- const b = function({ app: t, eventType: p }) {
7
- const { getAppData: r, setAppData: s, disabled: a } = d(), { enabled: n, updateEnabled: o } = m(t);
8
- return /* @__PURE__ */ e(
9
- c,
10
- {
11
- app: t,
12
- switchOnClick: (i) => {
13
- o(i);
14
- },
15
- switchChecked: n,
16
- children: /* @__PURE__ */ e(
17
- l,
18
- {
19
- slug: t.slug,
20
- eventType: p,
21
- disabled: a,
22
- getAppData: r,
23
- setAppData: s
24
- }
25
- )
26
- }
27
- );
28
- };
29
- export {
30
- b as default
31
- };
@@ -1,39 +0,0 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { t as m, N as o } from "./index-J6APIiEa.js";
3
- import { A as u } from "./AppCard-QiR8Srh9.js";
4
- import { u as h } from "./useIsAppEnabled-88ccKgkc.js";
5
- const E = function({ eventType: a, app: s }) {
6
- var n;
7
- const { getAppData: l, setAppData: i } = m(), p = l("isSunrise"), { enabled: c, updateEnabled: r } = h(s);
8
- return /* @__PURE__ */ t(
9
- u,
10
- {
11
- app: s,
12
- switchOnClick: (d) => {
13
- d ? (r(!0), i("isSunrise", !0)) : (r(!1), i("isSunrise", !1));
14
- },
15
- switchChecked: c,
16
- teamId: ((n = a.team) == null ? void 0 : n.id) || void 0,
17
- children: /* @__PURE__ */ e("div", { className: "mt-2 text-sm", children: [
18
- /* @__PURE__ */ e("div", { className: "flex", children: [
19
- /* @__PURE__ */ t("span", { className: "ltr:mr-2 rtl:ml-2", children: /* @__PURE__ */ t(o, { name: p ? "sunrise" : "sunset" }) }),
20
- "I am an AppCard for Event with Title: ",
21
- a.title
22
- ] }),
23
- " ",
24
- /* @__PURE__ */ e("div", { className: "mt-2", children: [
25
- "Edit ",
26
- /* @__PURE__ */ e("span", { className: "italic", children: [
27
- "packages/app-store/",
28
- s.slug,
29
- "/EventTypeAppCardInterface.tsx"
30
- ] }),
31
- " to play with me"
32
- ] })
33
- ] })
34
- }
35
- );
36
- };
37
- export {
38
- E as default
39
- };
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-J6APIiEa.js";
3
- import { A as m } from "./AppCard-QiR8Srh9.js";
4
- import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
- const l = function({ app: t, eventType: e }) {
6
- var a;
7
- const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
8
- return /* @__PURE__ */ s(
9
- m,
10
- {
11
- returnTo: `${i}${p}?tabName=apps`,
12
- app: t,
13
- teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
14
- switchOnClick: (o) => {
15
- r(o);
16
- },
17
- switchChecked: n,
18
- hideAppCardOptions: !0
19
- }
20
- );
21
- };
22
- export {
23
- l as default
24
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-J6APIiEa.js";
3
- import { A as c } from "./AppCard-QiR8Srh9.js";
4
- import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
- import l from "./EventTypeAppSettingsInterface--vQ93o16.js";
6
- const b = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
9
- return /* @__PURE__ */ a(
10
- c,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: (d) => {
15
- i(d);
16
- },
17
- switchChecked: o,
18
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
19
- children: /* @__PURE__ */ a(
20
- l,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: n,
25
- getAppData: r,
26
- setAppData: s
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- b as default
34
- };
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-J6APIiEa.js";
3
- import { A as m } from "./AppCard-QiR8Srh9.js";
4
- import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
- const l = function({ app: t, eventType: e }) {
6
- var a;
7
- const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
8
- return /* @__PURE__ */ s(
9
- m,
10
- {
11
- returnTo: `${i}${p}?tabName=apps`,
12
- app: t,
13
- teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
14
- switchOnClick: (o) => {
15
- r(o);
16
- },
17
- switchChecked: n,
18
- hideAppCardOptions: !0
19
- }
20
- );
21
- };
22
- export {
23
- l as default
24
- };
@@ -1,34 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { t as l, f as m } from "./index-J6APIiEa.js";
3
- import { A as u } from "./AppCard-QiR8Srh9.js";
4
- import { u as I } from "./useIsAppEnabled-88ccKgkc.js";
5
- const D = function({ app: t, eventType: n }) {
6
- var a;
7
- const { getAppData: o, setAppData: r, disabled: d } = l(), s = o("SITE_ID"), { enabled: i, updateEnabled: c } = I(t);
8
- return /* @__PURE__ */ p(
9
- u,
10
- {
11
- app: t,
12
- switchOnClick: (e) => {
13
- c(e);
14
- },
15
- switchChecked: i,
16
- teamId: ((a = n.team) == null ? void 0 : a.id) || void 0,
17
- children: /* @__PURE__ */ p(
18
- m,
19
- {
20
- disabled: d,
21
- name: "Site ID",
22
- value: s,
23
- placeholder: "Enter your Site ID",
24
- onChange: (e) => {
25
- r("SITE_ID", e.target.value);
26
- }
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- D as default
34
- };
@@ -1,86 +0,0 @@
1
- import { jsx as t, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
- import { s as v, q as F, t as T, w as a, W as _, x as L, f as V, S as x } from "./index-J6APIiEa.js";
3
- import { useMemo as W, useState as p } from "react";
4
- import { A as $ } from "./AppCard-QiR8Srh9.js";
5
- import { c as g, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
- const H = function({ app: S, eventType: A }) {
7
- var f, h;
8
- const i = v.useSearchParams(), d = v.usePathname(), P = W(
9
- () => `${d}${i ? `?${i.toString()}` : ""}`,
10
- [d, i]
11
- ), { t: n } = F(), { getAppData: r, setAppData: c } = T(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(g.find((e) => e.value === l)), [w, E] = p(
12
- j(l) ? C[l] : ""
13
- ), [b, q] = p(N), m = ((f = a) == null ? void 0 : f.find((e) => k === e.value)) || {
14
- label: a[0].label,
15
- value: a[0].value
16
- }, D = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
- return /* @__PURE__ */ t(
18
- $,
19
- {
20
- returnTo: _ + P,
21
- app: S,
22
- switchChecked: b,
23
- switchOnClick: (e) => {
24
- q(e);
25
- },
26
- description: /* @__PURE__ */ t(o, { children: "Add a mock payment to your events" }),
27
- children: /* @__PURE__ */ t(o, { children: D ? /* @__PURE__ */ t(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
28
- /* @__PURE__ */ t("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ t(
29
- V,
30
- {
31
- id: "test-mock-payment-app-price",
32
- label: "Price",
33
- labelSrOnly: !0,
34
- addOnLeading: w,
35
- addOnSuffix: l,
36
- step: "0.01",
37
- min: "0.5",
38
- type: "number",
39
- required: !0,
40
- className: "block w-full rounded-sm pl-2 text-sm",
41
- placeholder: "Price",
42
- onChange: (e) => {
43
- c("price", Number(e.target.value) * 100), s && c("currency", s.value);
44
- },
45
- value: y > 0 ? y / 100 : void 0
46
- }
47
- ) }),
48
- /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
49
- /* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
50
- /* @__PURE__ */ t(
51
- x,
52
- {
53
- id: "test-mock-payment-app-currency-id",
54
- variant: "default",
55
- options: g,
56
- value: s,
57
- className: "text-black",
58
- defaultValue: s,
59
- onChange: (e) => {
60
- e && (O(e), E(C[e.value]), c("currency", e.value));
61
- }
62
- }
63
- )
64
- ] }),
65
- /* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
66
- /* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
67
- /* @__PURE__ */ t(
68
- x,
69
- {
70
- defaultValue: m ? { ...m, label: n(m.label) } : { ...a[0], label: n(a[0].label) },
71
- options: a.map((e) => ({ ...e, label: n(e.label) || e.label })),
72
- onChange: (e) => {
73
- e && c("paymentOption", e.value);
74
- },
75
- className: "mb-1 h-[38px] w-full",
76
- isDisabled: !1
77
- }
78
- )
79
- ] })
80
- ] }) })
81
- }
82
- );
83
- };
84
- export {
85
- H as default
86
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-J6APIiEa.js";
3
- import { A as c } from "./AppCard-QiR8Srh9.js";
4
- import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
- import l from "./EventTypeAppSettingsInterface-c2021R4F.js";
6
- const b = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
9
- return /* @__PURE__ */ a(
10
- c,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: (d) => {
15
- i(d);
16
- },
17
- switchChecked: o,
18
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
19
- children: /* @__PURE__ */ a(
20
- l,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: n,
25
- getAppData: r,
26
- setAppData: s
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- b as default
34
- };
@@ -1,34 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { t as m, q as f } from "./index-J6APIiEa.js";
3
- import { A as l } from "./AppCard-QiR8Srh9.js";
4
- import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
- import A from "./EventTypeAppSettingsInterface-_RDwKkaA.js";
6
- const w = function({ app: t, eventType: e }) {
7
- var o;
8
- const { getAppData: s, setAppData: a, disabled: p } = m(), { enabled: n, updateEnabled: r } = u(t), { t: c } = f();
9
- return /* @__PURE__ */ i(
10
- l,
11
- {
12
- app: t,
13
- description: c("confirmation_page_gif"),
14
- switchOnClick: (d) => {
15
- r(d);
16
- },
17
- switchChecked: n,
18
- teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
19
- children: /* @__PURE__ */ i(
20
- A,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: p,
25
- getAppData: s,
26
- setAppData: a
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- w as default
34
- };
@@ -1,49 +0,0 @@
1
- import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
- import { t as h, f as n } from "./index-J6APIiEa.js";
3
- import { A as I } from "./AppCard-QiR8Srh9.js";
4
- import { u as C } from "./useIsAppEnabled-88ccKgkc.js";
5
- const R = function({ app: s, eventType: o }) {
6
- var i;
7
- const { getAppData: p, setAppData: r, disabled: t } = h(), c = p("SITE_ID"), d = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = C(s);
8
- return /* @__PURE__ */ a(
9
- I,
10
- {
11
- app: s,
12
- switchOnClick: (e) => {
13
- u(e);
14
- },
15
- switchChecked: l,
16
- teamId: ((i = o.team) == null ? void 0 : i.id) || void 0,
17
- children: /* @__PURE__ */ m("fieldset", { className: "space-y-2", disabled: t, children: [
18
- /* @__PURE__ */ a(
19
- n,
20
- {
21
- disabled: t,
22
- name: "Script URL",
23
- value: d,
24
- defaultValue: "https://us.umami.is/script.js",
25
- placeholder: "Enter the script source URL",
26
- onChange: (e) => {
27
- r("SCRIPT_URL", e.target.value);
28
- }
29
- }
30
- ),
31
- /* @__PURE__ */ a(
32
- n,
33
- {
34
- disabled: t,
35
- name: "Site ID",
36
- value: c,
37
- placeholder: "Enter your Site ID",
38
- onChange: (e) => {
39
- r("SITE_ID", e.target.value);
40
- }
41
- }
42
- )
43
- ] })
44
- }
45
- );
46
- };
47
- export {
48
- R as default
49
- };
@@ -1,42 +0,0 @@
1
- import { jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { s as i, q as g, t as f, v as b, W as v } from "./index-J6APIiEa.js";
3
- import { useMemo as S, useState as C } from "react";
4
- import { A as w } from "./AppCard-QiR8Srh9.js";
5
- import E from "./EventTypeAppSettingsInterface-tKBioveg.js";
6
- const W = function({
7
- app: a,
8
- eventType: p,
9
- eventTypeFormMetadata: c
10
- }) {
11
- const t = i.useSearchParams(), { t: m } = g(), s = i.usePathname(), h = S(
12
- () => `${s}${t ? `?${t.toString()}` : ""}`,
13
- [s, t]
14
- ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = b(c), r = !o && A;
15
- return /* @__PURE__ */ e(
16
- w,
17
- {
18
- returnTo: v + h,
19
- app: a,
20
- switchChecked: o,
21
- switchOnClick: (y) => {
22
- u(y);
23
- },
24
- description: /* @__PURE__ */ e(P, { children: "Add bitcoin lightning payments to your events" }),
25
- disableSwitch: r,
26
- switchTooltip: r ? m("other_payment_app_enabled") : void 0,
27
- children: /* @__PURE__ */ e(
28
- E,
29
- {
30
- eventType: p,
31
- slug: a.slug,
32
- disabled: l,
33
- getAppData: n,
34
- setAppData: d
35
- }
36
- )
37
- }
38
- );
39
- };
40
- export {
41
- W as default
42
- };
@@ -1,32 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { t as d } from "./index-J6APIiEa.js";
3
- import { A as m } from "./AppCard-QiR8Srh9.js";
4
- import { u as c } from "./useIsAppEnabled-88ccKgkc.js";
5
- import u from "./EventTypeAppSettingsInterface-R_ad05AV.js";
6
- const E = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = d(), { enabled: o, updateEnabled: i } = c(t);
9
- return /* @__PURE__ */ a(
10
- m,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: i,
15
- switchChecked: o,
16
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
17
- children: /* @__PURE__ */ a(
18
- u,
19
- {
20
- eventType: e,
21
- slug: t.slug,
22
- disabled: n,
23
- getAppData: r,
24
- setAppData: s
25
- }
26
- )
27
- }
28
- );
29
- };
30
- export {
31
- E as default
32
- };
@@ -1,33 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-J6APIiEa.js";
3
- import { A as c } from "./AppCard-QiR8Srh9.js";
4
- import { u as l } from "./useIsAppEnabled-88ccKgkc.js";
5
- import u from "./EventTypeAppSettingsInterface-9lNYGi2n.js";
6
- const g = function({ eventType: e, app: t }) {
7
- var p;
8
- const { enabled: r, updateEnabled: s } = l(t), { disabled: o, getAppData: n, setAppData: d } = m();
9
- return /* @__PURE__ */ a(
10
- c,
11
- {
12
- app: t,
13
- switchOnClick: (i) => {
14
- s(i);
15
- },
16
- switchChecked: r,
17
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
18
- children: /* @__PURE__ */ a(
19
- u,
20
- {
21
- eventType: e,
22
- slug: t.slug,
23
- disabled: o,
24
- getAppData: n,
25
- setAppData: d
26
- }
27
- )
28
- }
29
- );
30
- };
31
- export {
32
- g as default
33
- };
@@ -1,41 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { q as b, s as f, t as y, v as E, W as P } from "./index-J6APIiEa.js";
3
- import { useState as v } from "react";
4
- import { A as C } from "./AppCard-QiR8Srh9.js";
5
- import { u as g } from "./useIsAppEnabled-88ccKgkc.js";
6
- import w from "./EventTypeAppSettingsInterface-L1Xo8tyr.js";
7
- const W = function({
8
- app: t,
9
- eventType: e,
10
- eventTypeFormMetadata: p
11
- }) {
12
- var n;
13
- const { t: i } = b(), r = f.usePathname(), { getAppData: a, setAppData: m, disabled: c } = y(), { enabled: d, updateEnabled: l } = g(t), u = E(p), [h, T] = v(a("enabled")), s = !h && u;
14
- return /* @__PURE__ */ o(
15
- C,
16
- {
17
- returnTo: `${P}${r}?tabName=apps`,
18
- app: t,
19
- switchChecked: d,
20
- switchOnClick: (A) => {
21
- l(A);
22
- },
23
- teamId: ((n = e.team) == null ? void 0 : n.id) || void 0,
24
- disableSwitch: s,
25
- switchTooltip: s ? i("other_payment_app_enabled") : void 0,
26
- children: /* @__PURE__ */ o(
27
- w,
28
- {
29
- eventType: e,
30
- slug: t.slug,
31
- disabled: c,
32
- getAppData: a,
33
- setAppData: m
34
- }
35
- )
36
- }
37
- );
38
- };
39
- export {
40
- W as default
41
- };
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-J6APIiEa.js";
3
- import { A as m } from "./AppCard-QiR8Srh9.js";
4
- import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
- const l = function({ app: t, eventType: e }) {
6
- var a;
7
- const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
8
- return /* @__PURE__ */ s(
9
- m,
10
- {
11
- returnTo: `${i}${p}?tabName=apps`,
12
- app: t,
13
- teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
14
- switchOnClick: (o) => {
15
- r(o);
16
- },
17
- switchChecked: n,
18
- hideAppCardOptions: !0
19
- }
20
- );
21
- };
22
- export {
23
- l as default
24
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-J6APIiEa.js";
3
- import { A as c } from "./AppCard-QiR8Srh9.js";
4
- import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
- import l from "./EventTypeAppSettingsInterface-btPUVD8h.js";
6
- const b = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
9
- return /* @__PURE__ */ a(
10
- c,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: (d) => {
15
- i(d);
16
- },
17
- switchChecked: o,
18
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
19
- children: /* @__PURE__ */ a(
20
- l,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: n,
25
- getAppData: r,
26
- setAppData: s
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- b as default
34
- };