@calcom/atoms 1.5.0 → 1.6.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 (112) hide show
  1. package/dist/{AddressInput-4kKVWWz5.js → AddressInput-Mc0HGd98.js} +3 -3
  2. package/dist/{AlbyPriceComponent-bn8U8cDo.js → AlbyPriceComponent-TC_lfpoL.js} +19 -19
  3. package/dist/{PhoneInput-gKigredr.js → PhoneInput-Hm9vZnlH.js} +1 -1
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/{index-XUQwctrQ.js → index-EaOAc3j5.js} +1 -1
  6. package/dist/index-R6IZqbPM.js +83713 -0
  7. package/dist/index-U5xTOLdv.js +1957 -0
  8. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/lib/getCalEventResponses.d.ts +2 -1
  10. package/dist/packages/features/bookings/lib/getCalEventResponses.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +2 -0
  12. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  13. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  14. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +3 -0
  15. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  16. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +2 -0
  17. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  18. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +2 -0
  19. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  20. package/dist/packages/features/data-table/DataTableProvider.d.ts +8 -7
  21. package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
  22. package/dist/packages/features/data-table/components/segment/DuplicateSegmentDialog.d.ts +2 -2
  23. package/dist/packages/features/data-table/components/segment/DuplicateSegmentDialog.d.ts.map +1 -1
  24. package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
  25. package/dist/packages/features/data-table/components/segment/RenameSegmentDialog.d.ts.map +1 -1
  26. package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
  27. package/dist/packages/features/data-table/hooks/useSegments.d.ts.map +1 -1
  28. package/dist/packages/features/data-table/lib/parsers.d.ts +3 -3
  29. package/dist/packages/features/data-table/lib/parsers.d.ts.map +1 -1
  30. package/dist/packages/features/data-table/lib/serializers.d.ts +2 -2
  31. package/dist/packages/features/data-table/lib/types.d.ts +36 -26
  32. package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
  33. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  34. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  35. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts.map +1 -1
  36. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  37. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  38. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  39. package/dist/packages/platform/atoms/hooks/useMe.d.ts.map +1 -1
  40. package/dist/packages/platform/atoms/hooks/useVerifyCode.d.ts +18 -0
  41. package/dist/packages/platform/atoms/hooks/useVerifyCode.d.ts.map +1 -0
  42. package/dist/packages/platform/atoms/hooks/useVerifyEmail.d.ts +19 -0
  43. package/dist/packages/platform/atoms/hooks/useVerifyEmail.d.ts.map +1 -0
  44. package/dist/packages/platform/atoms/index.d.ts +0 -36
  45. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  46. package/dist/packages/platform/libraries/index.d.ts +4 -0
  47. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  48. package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
  49. package/dist/packages/prisma/zod/userfiltersegmentpreference.d.ts +7 -4
  50. package/dist/packages/prisma/zod/userfiltersegmentpreference.d.ts.map +1 -1
  51. package/dist/packages/prisma-client/index.d.ts +88 -30
  52. package/dist/packages/trpc/react/shared.d.ts +1 -1
  53. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  54. package/dist/style.css +1 -1
  55. package/package.json +1 -1
  56. package/dist/AppCard-GCLu89Fy.js +0 -281
  57. package/dist/AppListCardPlatformWrapper-xoj67n-W.js +0 -9
  58. package/dist/AppListCardWebWrapper-WeWRq3jT.js +0 -74
  59. package/dist/AppSettingsInterface-7V1sdak-.js +0 -23
  60. package/dist/AppSettingsInterface-epep0Hef.js +0 -29
  61. package/dist/AppSettingsInterface-hwNy4smR.js +0 -75
  62. package/dist/DateRangePicker-rVOB5iyD.js +0 -74
  63. package/dist/EventTypeAppCardInterface--qDLESRC.js +0 -32
  64. package/dist/EventTypeAppCardInterface-0sd8Cdxd.js +0 -51
  65. package/dist/EventTypeAppCardInterface-2NeW9Ehx.js +0 -41
  66. package/dist/EventTypeAppCardInterface-51N6r2zk.js +0 -24
  67. package/dist/EventTypeAppCardInterface-7GN6j8AM.js +0 -24
  68. package/dist/EventTypeAppCardInterface-9J59kV6N.js +0 -34
  69. package/dist/EventTypeAppCardInterface-CMnMtLfY.js +0 -34
  70. package/dist/EventTypeAppCardInterface-Cae8xXmh.js +0 -41
  71. package/dist/EventTypeAppCardInterface-L0p2BvJk.js +0 -34
  72. package/dist/EventTypeAppCardInterface-M9baAJLq.js +0 -24
  73. package/dist/EventTypeAppCardInterface-MntY9hI-.js +0 -34
  74. package/dist/EventTypeAppCardInterface-U0hTHrS1.js +0 -49
  75. package/dist/EventTypeAppCardInterface-Uh2DIKQd.js +0 -34
  76. package/dist/EventTypeAppCardInterface-WVhSzlqC.js +0 -39
  77. package/dist/EventTypeAppCardInterface-XqWAEhR4.js +0 -858
  78. package/dist/EventTypeAppCardInterface-_NhDp6G9.js +0 -31
  79. package/dist/EventTypeAppCardInterface-dQVYLBqQ.js +0 -86
  80. package/dist/EventTypeAppCardInterface-eHwmJDeu.js +0 -34
  81. package/dist/EventTypeAppCardInterface-f4nVufr9.js +0 -39
  82. package/dist/EventTypeAppCardInterface-g05IOUKd.js +0 -34
  83. package/dist/EventTypeAppCardInterface-gOgNLdMu.js +0 -42
  84. package/dist/EventTypeAppCardInterface-kJanA4A-.js +0 -24
  85. package/dist/EventTypeAppCardInterface-o8PiUI-_.js +0 -24
  86. package/dist/EventTypeAppCardInterface-oP7Y-D71.js +0 -32
  87. package/dist/EventTypeAppCardInterface-qgHbgrYd.js +0 -51
  88. package/dist/EventTypeAppCardInterface-uXOacbvz.js +0 -33
  89. package/dist/EventTypeAppCardInterface-ymHPloyx.js +0 -42
  90. package/dist/EventTypeAppSettingsInterface-1v4hdk6g.js +0 -72
  91. package/dist/EventTypeAppSettingsInterface-3zs3t9bm.js +0 -106
  92. package/dist/EventTypeAppSettingsInterface-801GyYY1.js +0 -23
  93. package/dist/EventTypeAppSettingsInterface-HuZa50Y3.js +0 -48
  94. package/dist/EventTypeAppSettingsInterface-KMW86cEL.js +0 -23
  95. package/dist/EventTypeAppSettingsInterface-PxtTX1Kf.js +0 -24
  96. package/dist/EventTypeAppSettingsInterface-RRK1q-Lp.js +0 -120
  97. package/dist/EventTypeAppSettingsInterface-Sp6U8s_q.js +0 -42
  98. package/dist/EventTypeAppSettingsInterface-aSqOIhBb.js +0 -43
  99. package/dist/EventTypeAppSettingsInterface-gcEZSOHf.js +0 -221
  100. package/dist/EventTypeAppSettingsInterface-hLI4D19p.js +0 -78
  101. package/dist/EventTypeAppSettingsInterface-mj_uQ-3_.js +0 -298
  102. package/dist/EventTypeAppSettingsInterface-tm_-7KjA.js +0 -25
  103. package/dist/InstallAppButton-9yCGIfEB.js +0 -14
  104. package/dist/InstallAppButton-H_SgtFIs.js +0 -14
  105. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  106. package/dist/InstallAppButton-Y8LCstbB.js +0 -58
  107. package/dist/StripePaymentForm-1tATXYWd.js +0 -493
  108. package/dist/currencyOptions-kannG2hu.js +0 -61
  109. package/dist/index-Frbhba-v.js +0 -30
  110. package/dist/index-LqaUD-Q9.js +0 -518
  111. package/dist/index-YITA4g0Y.js +0 -161454
  112. package/dist/useIsAppEnabled-K8IoHoem.js +0 -18
@@ -1,31 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { G as d } from "./index-YITA4g0Y.js";
3
- import { A as c } from "./AppCard-GCLu89Fy.js";
4
- import { u as m } from "./useIsAppEnabled-K8IoHoem.js";
5
- import l from "./EventTypeAppSettingsInterface-HuZa50Y3.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,86 +0,0 @@
1
- import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
- import { z as v, y as T, G as _, K as t, W as q, M as L, f as V, S as g } from "./index-YITA4g0Y.js";
3
- import { useMemo as W, useState as p } from "react";
4
- import { A as $ } from "./AppCard-GCLu89Fy.js";
5
- import { c as x, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
- const U = 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(x.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
- g,
52
- {
53
- id: "test-mock-payment-app-currency-id",
54
- variant: "default",
55
- options: x,
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
- g,
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
- U as default
86
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-YITA4g0Y.js";
3
- import { A as c } from "./AppCard-GCLu89Fy.js";
4
- import { u } from "./useIsAppEnabled-K8IoHoem.js";
5
- import l from "./EventTypeAppSettingsInterface-tm_-7KjA.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,39 +0,0 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { G as m, X as o } from "./index-YITA4g0Y.js";
3
- import { A as u } from "./AppCard-GCLu89Fy.js";
4
- import { u as h } from "./useIsAppEnabled-K8IoHoem.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,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-YITA4g0Y.js";
3
- import { A as c } from "./AppCard-GCLu89Fy.js";
4
- import { u } from "./useIsAppEnabled-K8IoHoem.js";
5
- import l from "./EventTypeAppSettingsInterface-801GyYY1.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,42 +0,0 @@
1
- import { jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { z as i, y as g, G as f, J as b, W as S } from "./index-YITA4g0Y.js";
3
- import { useMemo as v, useState as C } from "react";
4
- import { A as w } from "./AppCard-GCLu89Fy.js";
5
- import E from "./EventTypeAppSettingsInterface-1v4hdk6g.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] = C(n("enabled")), A = b(c), r = !o && A;
15
- return /* @__PURE__ */ e(
16
- w,
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,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-YITA4g0Y.js";
3
- import { A as m } from "./AppCard-GCLu89Fy.js";
4
- import { u } from "./useIsAppEnabled-K8IoHoem.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,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-YITA4g0Y.js";
3
- import { A as m } from "./AppCard-GCLu89Fy.js";
4
- import { u } from "./useIsAppEnabled-K8IoHoem.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,32 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useState as c } from "react";
3
- import { G as m, f as l } from "./index-YITA4g0Y.js";
4
- import { A as f } from "./AppCard-GCLu89Fy.js";
5
- const k = function({ app: p, eventType: i }) {
6
- var n;
7
- const { getAppData: t, setAppData: o } = m(), s = t("trackingId"), [d, a] = c(t("enabled"));
8
- return /* @__PURE__ */ r(
9
- f,
10
- {
11
- app: p,
12
- switchOnClick: (e) => {
13
- a(!!e);
14
- },
15
- switchChecked: d,
16
- teamId: ((n = i.team) == null ? void 0 : n.id) || void 0,
17
- children: /* @__PURE__ */ r(
18
- l,
19
- {
20
- name: "Tracking ID",
21
- value: s,
22
- onChange: (e) => {
23
- o("trackingId", e.target.value);
24
- }
25
- }
26
- )
27
- }
28
- );
29
- };
30
- export {
31
- k as default
32
- };
@@ -1,51 +0,0 @@
1
- import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { G as h, f as n } from "./index-YITA4g0Y.js";
3
- import { A } from "./AppCard-GCLu89Fy.js";
4
- import { u as I } from "./useIsAppEnabled-K8IoHoem.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,33 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-YITA4g0Y.js";
3
- import { A as c } from "./AppCard-GCLu89Fy.js";
4
- import { u as l } from "./useIsAppEnabled-K8IoHoem.js";
5
- import u from "./EventTypeAppSettingsInterface-aSqOIhBb.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,42 +0,0 @@
1
- import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
- import { z as i, G as f, J as g, y as S, W as b } from "./index-YITA4g0Y.js";
3
- import { useMemo as v, useState as C } from "react";
4
- import { A as w } from "./AppCard-GCLu89Fy.js";
5
- import E from "./EventTypeAppSettingsInterface-hLI4D19p.js";
6
- const $ = function({
7
- app: a,
8
- eventType: c,
9
- eventTypeFormMetadata: m
10
- }) {
11
- const t = i.useSearchParams(), s = i.usePathname(), h = v(
12
- () => `${s}${t ? `?${t.toString()}` : ""}`,
13
- [s, t]
14
- ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), y = g(m), { t: A } = S(), r = !o && y;
15
- return /* @__PURE__ */ e(
16
- w,
17
- {
18
- returnTo: b + h,
19
- app: a,
20
- switchChecked: o,
21
- switchOnClick: (P) => {
22
- u(P);
23
- },
24
- description: /* @__PURE__ */ e(p, { children: "Add Paypal payment to your events" }),
25
- disableSwitch: r,
26
- switchTooltip: r ? A("other_payment_app_enabled") : void 0,
27
- children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
28
- E,
29
- {
30
- eventType: c,
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,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 { y as _, a1 as t, M as g, f as C, Y as P, S as p } from "./index-YITA4g0Y.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, S] = 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")), O = ((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: O ? /* @__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 && (S(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,106 +0,0 @@
1
- import { jsx as n, Fragment as D, jsxs as c } from "react/jsx-runtime";
2
- import { useState as f, useEffect as T } from "react";
3
- import { y as R, a2 as t, M as y, f as w, S as P } from "./index-YITA4g0Y.js";
4
- const i = [
5
- { label: "SATS", value: "BTC", unit: "SATS" },
6
- { label: "USD- US Dollar", value: "USD", unit: "USD" },
7
- { label: "EUR- Euro", value: "EUR", unit: "EUR" },
8
- { label: "JPY- Japanese Yen", value: "JPY", unit: "JPY" },
9
- { label: "CNY- Yuan Renminbi", value: "CNY", unit: "CNY" },
10
- { label: "GBP- Pounds Sterling", value: "GBP", unit: "GBP" },
11
- { label: "AED- UAE Dirham", value: "AED", unit: "AED" },
12
- { label: "ZAR- South African Rand", value: "ZAR", unit: "ZAR" },
13
- { label: "HKD- Hong Kong Dollar", value: "HKD", unit: "HKD" },
14
- { label: "BRL- Brazilian Real", value: "BRL", unit: "BRL" },
15
- { label: "AUD- Australian Dollar", value: "AUD", unit: "AUD" },
16
- { label: "CAD- Canadian Dollar", value: "CAD", unit: "CAD" },
17
- { label: "CZK- Czech Koruna", value: "CZK", unit: "CZK" },
18
- { label: "DKK- Danish Krone", value: "DKK", unit: "DKK" },
19
- { label: "NZD- New Zealand Dollar", value: "NZD", unit: "NZD" },
20
- { label: "MYR- Malaysian Ringgit", value: "MYR", unit: "MYR" },
21
- { label: "PHP- Philippine Peso", value: "PHP", unit: "PHP" },
22
- { label: "CHF- Swiss Franc", value: "CHF", unit: "CHF" },
23
- { label: "NOK- Norwegian Krone", value: "NOK", unit: "NOK" },
24
- { label: "THB- Thai Baht", value: "THB", unit: "THB" },
25
- { label: "SEK- Swedish Krona", value: "SEK", unit: "SEK" },
26
- { label: "SGD- Singapore Dollar", value: "SGD", unit: "SGD" },
27
- { label: "PLN- Polish Zloty", value: "PLN", unit: "PLN" },
28
- { label: "TWD- New Taiwan Dollar", value: "TWD", unit: "TWD" },
29
- { label: "MXN- Mexican Peso", value: "MXN", unit: "MXN" },
30
- { label: "ILS- New Isreali Shekel", value: "ILS", unit: "ILS" },
31
- { label: "NGN- Nigerian Naira", value: "NGN", unit: "NGN" }
32
- ], C = ["SATS", "BTC", "JPY"], E = (r, l) => C.includes(l.toUpperCase()) ? r : Math.round(r * 100), x = (r, l) => C.includes(l.toUpperCase()) ? r : r / 100, Y = ({
33
- eventType: r,
34
- getAppData: l,
35
- setAppData: u
36
- }) => {
37
- var h, S;
38
- const { t: a } = R(), s = l("price"), o = l("currency") || (i.length > 0 ? i[0].value : ""), [v, K] = f(
39
- i.find((e) => e.value === o) || (i.length > 0 ? {
40
- label: i[0].label,
41
- value: i[0].value
42
- } : null)
43
- ), d = l("paymentOption"), b = ((h = t) == null ? void 0 : h.find((e) => d === e.value)) || {
44
- label: t.length > 0 ? t[0].label : "",
45
- value: t.length > 0 ? t[0].value : ""
46
- }, N = !!r.seatsPerTimeSlot, [m, U] = f(l("enabled")), p = ((S = r.recurringEvent) == null ? void 0 : S.count) !== void 0;
47
- T(() => {
48
- m && !l("currency") && u("currency", i[0].value);
49
- }, [m, l, u]);
50
- const g = (e) => Math.floor(e);
51
- return /* @__PURE__ */ n(D, { children: p ? /* @__PURE__ */ n(y, { className: "mt-2", severity: "warning", title: a("warning_recurring_event_payment") }) : m && /* @__PURE__ */ c(D, { children: [
52
- /* @__PURE__ */ c("div", { className: "mt-4 inline-block", children: [
53
- /* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium mb-1", htmlFor: "price", children: a("price") }),
54
- /* @__PURE__ */ n(
55
- w,
56
- {
57
- label: a("price"),
58
- className: "text-black dark:text-white w-auto",
59
- addOnClassname: "h-[38px]",
60
- min: "1",
61
- type: "number",
62
- required: !0,
63
- placeholder: "Price",
64
- onChange: (e) => {
65
- u("price", E(Number(e.target.value), o));
66
- },
67
- value: s && s > 0 ? g(x(s, o)) : void 0
68
- }
69
- )
70
- ] }),
71
- /* @__PURE__ */ c("div", { className: "mt-5 w-60", children: [
72
- /* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: a("currency") }),
73
- /* @__PURE__ */ n(
74
- P,
75
- {
76
- variant: "default",
77
- options: i,
78
- value: v,
79
- defaultValue: v,
80
- onChange: (e) => {
81
- e && (K(e), u("currency", e.value));
82
- }
83
- }
84
- )
85
- ] }),
86
- /* @__PURE__ */ c("div", { className: "mt-2 w-60", children: [
87
- /* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "paymentOption", children: a("payment_option") }),
88
- /* @__PURE__ */ n(
89
- P,
90
- {
91
- defaultValue: b ? { ...b, label: a(b.label) } : t.length > 0 ? { ...t[0], label: a(t[0].label) } : void 0,
92
- options: t.map((e) => ({ ...e, label: a(e.label) || e.label })),
93
- onChange: (e) => {
94
- e && u("paymentOption", e.value);
95
- },
96
- className: "mb-1 h-[38px] w-full",
97
- isDisabled: N
98
- }
99
- )
100
- ] }),
101
- N && d === "HOLD" && /* @__PURE__ */ n(y, { className: "mt-2", severity: "warning", title: a("seats_and_no_show_fee_error") })
102
- ] }) });
103
- };
104
- export {
105
- Y as default
106
- };