@calcom/atoms 1.7.1 → 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 (167) hide show
  1. package/dist/{AddressInput-DR3jIl7N.js → AddressInput-E1ARKDg7.js} +5 -5
  2. package/dist/{AlbyPriceComponent-2k8JXx0O.js → AlbyPriceComponent-jBcuDvZa.js} +24 -24
  3. package/dist/{PhoneInput-Nhiv23jS.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-QG3p1fzr.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/utils/event.d.ts +33 -33
  14. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +1 -1
  15. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -1
  16. package/dist/packages/features/bookings/lib/create-booking.d.ts +91 -91
  17. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +91 -91
  18. package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -9
  19. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +38 -38
  20. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts +41 -0
  21. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts.map +1 -0
  22. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts +2 -0
  23. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts.map +1 -0
  24. package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +2 -2
  25. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -33
  26. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +57 -57
  27. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +57 -57
  28. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +57 -57
  29. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +46 -46
  30. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +45 -45
  31. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +364 -364
  32. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  33. package/dist/packages/features/bookings/lib/handlePayment.d.ts +49 -0
  34. package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -0
  35. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +33 -33
  36. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  37. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +33 -33
  38. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +39 -39
  39. package/dist/packages/features/components/controlled-dialog/index.d.ts.map +1 -1
  40. package/dist/packages/features/components/phone-input/PhoneInput.d.ts.map +1 -1
  41. package/dist/packages/features/ee/billing/organizations/index.d.ts +1 -2
  42. package/dist/packages/features/ee/billing/organizations/index.d.ts.map +1 -1
  43. package/dist/packages/features/ee/billing/organizations/internal-organization-billing.d.ts +2 -2
  44. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +32 -4
  45. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts.map +1 -1
  46. package/dist/packages/features/ee/payments/server/stripe-service.d.ts +23 -0
  47. package/dist/packages/features/ee/payments/server/stripe-service.d.ts.map +1 -0
  48. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +125 -0
  49. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -0
  50. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts +2 -0
  51. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts.map +1 -0
  52. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +30 -30
  53. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  54. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  55. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  56. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  57. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +6 -6
  58. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts +7 -0
  59. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts.map +1 -0
  60. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +1 -1
  61. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
  62. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  63. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts +28 -0
  64. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts.map +1 -0
  65. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts +2 -0
  66. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts.map +1 -0
  67. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +33 -33
  68. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -12
  69. package/dist/packages/features/eventtypes/lib/types.d.ts +1 -1
  70. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  71. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts +2 -2
  72. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts.map +1 -1
  73. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts +15 -0
  74. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts.map +1 -0
  75. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +17 -17
  76. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  77. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts +3 -0
  78. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts.map +1 -0
  79. package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts.map +1 -1
  80. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +91 -91
  81. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +91 -91
  82. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +91 -91
  83. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -3
  84. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  85. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +33 -33
  86. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +3 -3
  87. package/dist/packages/platform/atoms/hooks/schedules/useAtomUpdateSchedule.d.ts +3 -3
  88. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  89. package/dist/packages/platform/atoms/index.d.ts +0 -36
  90. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  91. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts +2 -0
  92. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts.map +1 -0
  93. package/dist/packages/platform/libraries/event-types.d.ts +5 -5
  94. package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
  95. package/dist/packages/platform/libraries/index.d.ts +3 -3
  96. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  97. package/dist/packages/prisma/zod/impersonations.d.ts +2 -2
  98. package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
  99. package/dist/packages/prisma/zod/task.d.ts +2 -2
  100. package/dist/packages/prisma/zod/teamfeatures.d.ts +2 -2
  101. package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
  102. package/dist/packages/prisma/zod/webhookscheduledtriggers.d.ts +2 -2
  103. package/dist/packages/prisma/zod-utils.d.ts +1 -0
  104. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  105. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +2 -2
  106. package/dist/packages/trpc/react/shared.d.ts +1 -1
  107. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  108. package/dist/packages/trpc/react/trpc.d.ts.map +1 -1
  109. package/dist/style.css +1 -1
  110. package/package.json +1 -1
  111. package/dist/AppCard-bt7zv8gh.js +0 -281
  112. package/dist/AppListCardPlatformWrapper-VhYhJs_R.js +0 -9
  113. package/dist/AppListCardWebWrapper-NUv3j3xt.js +0 -74
  114. package/dist/AppSettingsInterface-buo7m9T8.js +0 -75
  115. package/dist/AppSettingsInterface-pSKkGg41.js +0 -23
  116. package/dist/AppSettingsInterface-zXTKl0m5.js +0 -29
  117. package/dist/DateRangePicker-bTMo0QHP.js +0 -74
  118. package/dist/EventTypeAppCardInterface-09iYOcZc.js +0 -39
  119. package/dist/EventTypeAppCardInterface-22oySUhU.js +0 -42
  120. package/dist/EventTypeAppCardInterface-4J2r0kDm.js +0 -34
  121. package/dist/EventTypeAppCardInterface-6ARDh1hB.js +0 -34
  122. package/dist/EventTypeAppCardInterface-6N-ocotc.js +0 -34
  123. package/dist/EventTypeAppCardInterface-ALjgH4W_.js +0 -34
  124. package/dist/EventTypeAppCardInterface-Ayfx5tRN.js +0 -39
  125. package/dist/EventTypeAppCardInterface-DcTMtSbr.js +0 -24
  126. package/dist/EventTypeAppCardInterface-DqaD8qmA.js +0 -34
  127. package/dist/EventTypeAppCardInterface-KjJnnhe2.js +0 -51
  128. package/dist/EventTypeAppCardInterface-SS33HaLT.js +0 -24
  129. package/dist/EventTypeAppCardInterface-TIEM8D8u.js +0 -41
  130. package/dist/EventTypeAppCardInterface-UIXAwi3z.js +0 -32
  131. package/dist/EventTypeAppCardInterface-UhZiYpC_.js +0 -858
  132. package/dist/EventTypeAppCardInterface-Uv0b0YwY.js +0 -34
  133. package/dist/EventTypeAppCardInterface-WvWtKyzR.js +0 -32
  134. package/dist/EventTypeAppCardInterface-ZTWUUx-j.js +0 -31
  135. package/dist/EventTypeAppCardInterface-Zce0NZR5.js +0 -33
  136. package/dist/EventTypeAppCardInterface-bj9lQhmN.js +0 -24
  137. package/dist/EventTypeAppCardInterface-cWLQDtAR.js +0 -86
  138. package/dist/EventTypeAppCardInterface-fwF9ZNE1.js +0 -42
  139. package/dist/EventTypeAppCardInterface-lLtnjlZW.js +0 -34
  140. package/dist/EventTypeAppCardInterface-oHgBXT0z.js +0 -24
  141. package/dist/EventTypeAppCardInterface-uSw2xD2a.js +0 -41
  142. package/dist/EventTypeAppCardInterface-uaT7p9un.js +0 -24
  143. package/dist/EventTypeAppCardInterface-vmdHhgZV.js +0 -51
  144. package/dist/EventTypeAppCardInterface-zkJKrgZb.js +0 -49
  145. package/dist/EventTypeAppSettingsInterface-108_BODL.js +0 -78
  146. package/dist/EventTypeAppSettingsInterface-Q0ZDtoUj.js +0 -25
  147. package/dist/EventTypeAppSettingsInterface-Qnr0HCO0.js +0 -43
  148. package/dist/EventTypeAppSettingsInterface-VeVCHNBB.js +0 -24
  149. package/dist/EventTypeAppSettingsInterface-_Yc814Cl.js +0 -221
  150. package/dist/EventTypeAppSettingsInterface-gg2Ef5DU.js +0 -48
  151. package/dist/EventTypeAppSettingsInterface-gkHBitj8.js +0 -106
  152. package/dist/EventTypeAppSettingsInterface-jJT8-1ML.js +0 -120
  153. package/dist/EventTypeAppSettingsInterface-lUvYXuGl.js +0 -72
  154. package/dist/EventTypeAppSettingsInterface-mfeygayG.js +0 -343
  155. package/dist/EventTypeAppSettingsInterface-siyUmyxC.js +0 -23
  156. package/dist/EventTypeAppSettingsInterface-u1frTGTk.js +0 -23
  157. package/dist/EventTypeAppSettingsInterface-ykuyZiXU.js +0 -42
  158. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  159. package/dist/InstallAppButton-UL42QGKr.js +0 -14
  160. package/dist/InstallAppButton-c2chNE6g.js +0 -14
  161. package/dist/InstallAppButton-rvYPqvGJ.js +0 -58
  162. package/dist/StripePaymentForm-1yTkAicU.js +0 -493
  163. package/dist/currencyOptions-kannG2hu.js +0 -61
  164. package/dist/index-6aqrxRA8.js +0 -166397
  165. package/dist/index-heZJ0K97.js +0 -28
  166. package/dist/index-miF5qVsp.js +0 -518
  167. package/dist/useIsAppEnabled-aAe8QNQ3.js +0 -18
@@ -1,34 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { y as l, f as m } from "./index-6aqrxRA8.js";
3
- import { A as u } from "./AppCard-bt7zv8gh.js";
4
- import { u as I } from "./useIsAppEnabled-aAe8QNQ3.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,32 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { y as d } from "./index-6aqrxRA8.js";
3
- import { A as m } from "./AppCard-bt7zv8gh.js";
4
- import { u as c } from "./useIsAppEnabled-aAe8QNQ3.js";
5
- import u from "./EventTypeAppSettingsInterface-u1frTGTk.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,31 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { y as d } from "./index-6aqrxRA8.js";
3
- import { A as c } from "./AppCard-bt7zv8gh.js";
4
- import { u as m } from "./useIsAppEnabled-aAe8QNQ3.js";
5
- import l from "./EventTypeAppSettingsInterface-gg2Ef5DU.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,33 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { y as m } from "./index-6aqrxRA8.js";
3
- import { A as c } from "./AppCard-bt7zv8gh.js";
4
- import { u as l } from "./useIsAppEnabled-aAe8QNQ3.js";
5
- import u from "./EventTypeAppSettingsInterface-Qnr0HCO0.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,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { x as d, W as i } from "./index-6aqrxRA8.js";
3
- import { A as m } from "./AppCard-bt7zv8gh.js";
4
- import { u } from "./useIsAppEnabled-aAe8QNQ3.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,86 +0,0 @@
1
- import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
- import { x as v, w as T, y as _, G as t, W as q, J as L, f as V, S as x } from "./index-6aqrxRA8.js";
3
- import { useMemo as W, useState as p } from "react";
4
- import { A as $ } from "./AppCard-bt7zv8gh.js";
5
- import { c as g, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
- const z = 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 } = T(), { getAppData: r, setAppData: c } = _(), 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, D] = p(N), m = ((f = t) == null ? void 0 : f.find((e) => k === e.value)) || {
14
- label: t[0].label,
15
- value: t[0].value
16
- }, F = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
- return /* @__PURE__ */ a(
18
- $,
19
- {
20
- returnTo: q + P,
21
- app: S,
22
- switchChecked: b,
23
- switchOnClick: (e) => {
24
- D(e);
25
- },
26
- description: /* @__PURE__ */ a(o, { children: "Add a mock payment to your events" }),
27
- children: /* @__PURE__ */ a(o, { children: F ? /* @__PURE__ */ a(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
28
- /* @__PURE__ */ a("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ a(
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__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
50
- /* @__PURE__ */ a(
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__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
67
- /* @__PURE__ */ a(
68
- x,
69
- {
70
- defaultValue: m ? { ...m, label: n(m.label) } : { ...t[0], label: n(t[0].label) },
71
- options: t.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
- z as default
86
- };
@@ -1,42 +0,0 @@
1
- import { jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { x as i, w as g, y as f, z as b, W as S } from "./index-6aqrxRA8.js";
3
- import { useMemo as v, useState as w } from "react";
4
- import { A as C } from "./AppCard-bt7zv8gh.js";
5
- import E from "./EventTypeAppSettingsInterface-lUvYXuGl.js";
6
- const $ = function({
7
- app: a,
8
- eventType: p,
9
- eventTypeFormMetadata: c
10
- }) {
11
- const t = i.useSearchParams(), { t: m } = g(), s = i.usePathname(), h = v(
12
- () => `${s}${t ? `?${t.toString()}` : ""}`,
13
- [s, t]
14
- ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = w(n("enabled")), A = b(c), r = !o && A;
15
- return /* @__PURE__ */ e(
16
- C,
17
- {
18
- returnTo: S + 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
- $ as default
42
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { y as m } from "./index-6aqrxRA8.js";
3
- import { A as c } from "./AppCard-bt7zv8gh.js";
4
- import { u } from "./useIsAppEnabled-aAe8QNQ3.js";
5
- import l from "./EventTypeAppSettingsInterface-ykuyZiXU.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 { x as d, W as i } from "./index-6aqrxRA8.js";
3
- import { A as m } from "./AppCard-bt7zv8gh.js";
4
- import { u } from "./useIsAppEnabled-aAe8QNQ3.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,41 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { w as b, x as f, y, z as E, W as P } from "./index-6aqrxRA8.js";
3
- import { useState as w } from "react";
4
- import { A as C } from "./AppCard-bt7zv8gh.js";
5
- import { u as g } from "./useIsAppEnabled-aAe8QNQ3.js";
6
- import v from "./EventTypeAppSettingsInterface-mfeygayG.js";
7
- const q = function({
8
- app: e,
9
- eventType: t,
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(e), u = E(p), [h, x] = w(a("enabled")), s = !h && u;
14
- return /* @__PURE__ */ o(
15
- C,
16
- {
17
- returnTo: `${P}${r}?tabName=apps`,
18
- app: e,
19
- switchChecked: d,
20
- switchOnClick: (A) => {
21
- l(A);
22
- },
23
- teamId: ((n = t.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
- v,
28
- {
29
- eventType: t,
30
- slug: e.slug,
31
- disabled: c,
32
- getAppData: a,
33
- setAppData: m
34
- }
35
- )
36
- }
37
- );
38
- };
39
- export {
40
- q as default
41
- };
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { x as d, W as i } from "./index-6aqrxRA8.js";
3
- import { A as m } from "./AppCard-bt7zv8gh.js";
4
- import { u } from "./useIsAppEnabled-aAe8QNQ3.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,51 +0,0 @@
1
- import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { y as h, f as n } from "./index-6aqrxRA8.js";
3
- import { A } from "./AppCard-bt7zv8gh.js";
4
- import { u as I } from "./useIsAppEnabled-aAe8QNQ3.js";
5
- const E = function({ app: t, eventType: i }) {
6
- var d;
7
- const { getAppData: o, setAppData: s, disabled: r } = h(), l = o("MATOMO_URL"), p = o("SITE_ID"), { enabled: c, updateEnabled: m } = I(t);
8
- return /* @__PURE__ */ a(
9
- A,
10
- {
11
- hideSettingsIcon: !0,
12
- app: t,
13
- switchOnClick: (e) => {
14
- m(e);
15
- },
16
- switchChecked: c,
17
- teamId: ((d = i.team) == null ? void 0 : d.id) || void 0,
18
- children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-2", children: [
19
- /* @__PURE__ */ a(
20
- n,
21
- {
22
- dataTestid: `${t.slug}-url`,
23
- name: "Matomo URL",
24
- placeholder: "Enter your Matomo URL here",
25
- value: l,
26
- disabled: r,
27
- onChange: (e) => {
28
- s("MATOMO_URL", e.target.value);
29
- }
30
- }
31
- ),
32
- /* @__PURE__ */ a(
33
- n,
34
- {
35
- dataTestid: `${t.slug}-site-id`,
36
- disabled: r,
37
- name: "Site ID",
38
- placeholder: "Enter your Site ID",
39
- value: p,
40
- onChange: (e) => {
41
- s("SITE_ID", e.target.value);
42
- }
43
- }
44
- )
45
- ] })
46
- }
47
- );
48
- };
49
- export {
50
- E as default
51
- };
@@ -1,49 +0,0 @@
1
- import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
- import { y as h, f as n } from "./index-6aqrxRA8.js";
3
- import { A as I } from "./AppCard-bt7zv8gh.js";
4
- import { u as C } from "./useIsAppEnabled-aAe8QNQ3.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,78 +0,0 @@
1
- import { jsx as l, jsxs as m, Fragment as g } from "react/jsx-runtime";
2
- import { useState as o, useEffect as _ } from "react";
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-6aqrxRA8.js";
5
- const I = ({
6
- getAppData: n,
7
- setAppData: t,
8
- eventType: d
9
- }) => {
10
- var p, h;
11
- const y = n("price"), a = n("currency") || i[0].value, [s, N] = o(i.find((e) => e.value === a)), [C, w] = o(
12
- k(a) ? S[a] : ""
13
- ), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
14
- label: r[0].label,
15
- value: r[0].value
16
- }, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), P = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
- return _(() => {
18
- v && (n("currency") || t("currency", i[0].value), n("paymentOption") || t("paymentOption", r[0].value));
19
- }, []), P ? /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(g, { children: [
20
- /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
21
- F,
22
- {
23
- label: "Price",
24
- labelSrOnly: !0,
25
- addOnLeading: C,
26
- addOnSuffix: a,
27
- step: "0.01",
28
- min: "0.5",
29
- type: "number",
30
- required: !0,
31
- className: "block w-full rounded-sm pl-2 text-sm",
32
- placeholder: "Price",
33
- "data-testid": "paypal-price-input",
34
- onChange: (e) => {
35
- t("price", T(Number(e.target.value), a)), s && t("currency", s.value);
36
- },
37
- value: y > 0 ? q(y, a) : void 0
38
- }
39
- ) }),
40
- /* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
41
- /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: c("currency") }),
42
- /* @__PURE__ */ l(
43
- O,
44
- {
45
- variant: "default",
46
- "data-testid": "paypal-currency-select",
47
- options: i,
48
- value: s,
49
- className: "text-black",
50
- defaultValue: s,
51
- onChange: (e) => {
52
- e && (N(e), w(S[e.value]), t("currency", e.value));
53
- }
54
- }
55
- )
56
- ] }),
57
- /* @__PURE__ */ m("div", { className: "mt-4 w-60", children: [
58
- /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
59
- /* @__PURE__ */ l(
60
- O,
61
- {
62
- "data-testid": "paypal-payment-option-select",
63
- defaultValue: u ? { ...u, label: c(u.label) } : { ...r[0], label: c(r[0].label) },
64
- options: r.map((e) => ({ ...e, label: c(e.label) || e.label })),
65
- onChange: (e) => {
66
- e && t("paymentOption", e.value);
67
- },
68
- className: "mb-1 h-[38px] w-full",
69
- isDisabled: b
70
- }
71
- )
72
- ] }),
73
- b && f === "HOLD" && /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
74
- ] }) : null;
75
- };
76
- export {
77
- I as default
78
- };
@@ -1,25 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { f as c } from "./index-6aqrxRA8.js";
3
- const s = ({
4
- getAppData: t,
5
- setAppData: e,
6
- disabled: a,
7
- slug: n
8
- }) => {
9
- const r = t("trackingId");
10
- return /* @__PURE__ */ o(
11
- c,
12
- {
13
- dataTestid: n,
14
- name: "Tracking ID",
15
- value: r,
16
- disabled: a,
17
- onChange: (i) => {
18
- e("trackingId", i.target.value);
19
- }
20
- }
21
- );
22
- };
23
- export {
24
- s as default
25
- };
@@ -1,43 +0,0 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { useState as u } from "react";
3
- import { w as p, f as h, R as v, r as x } from "./index-6aqrxRA8.js";
4
- const R = ({ eventType: n, disabled: d }) => {
5
- const { t: i } = p(), [r, c] = u(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
6
- function s({ size: a, data: f }) {
7
- const l = `https://api.qrserver.com/v1/create-qr-code/?size=${a}&data=${f}`;
8
- return /* @__PURE__ */ e(v, { content: t, children: /* @__PURE__ */ e("a", { download: !0, href: l, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e(
9
- "img",
10
- {
11
- className: x(
12
- "hover:bg-muted border-default border transition hover:shadow-sm",
13
- a >= 256 && "min-h-32"
14
- ),
15
- style: { padding: a / 16, borderRadius: a / 20 },
16
- width: a,
17
- src: l,
18
- alt: t
19
- }
20
- ) }) });
21
- }
22
- return /* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-5 text-sm", children: [
23
- /* @__PURE__ */ e("div", { className: "flex w-full", children: /* @__PURE__ */ e(
24
- h,
25
- {
26
- name: "hello",
27
- disabled: d,
28
- value: r,
29
- onChange: (a) => c(a.target.value),
30
- label: i("additional_url_parameters"),
31
- containerClassName: "w-full"
32
- }
33
- ) }),
34
- /* @__PURE__ */ o("div", { className: "max-w-60 flex items-baseline gap-2", children: [
35
- /* @__PURE__ */ e(s, { size: 256, data: t }),
36
- /* @__PURE__ */ e(s, { size: 128, data: t }),
37
- /* @__PURE__ */ e(s, { size: 64, data: t })
38
- ] })
39
- ] });
40
- };
41
- export {
42
- R as default
43
- };