@calcom/atoms 1.4.0 → 1.5.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 (104) hide show
  1. package/dist/{AddressInput-oBqEc36p.js → AddressInput-2hL6xvaw.js} +3 -3
  2. package/dist/{AlbyPriceComponent-mtspbv1Z.js → AlbyPriceComponent-90fNQIrg.js} +19 -19
  3. package/dist/{PhoneInput-uwxWFpdD.js → PhoneInput-FnKIa4kA.js} +1 -1
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/index-YQ_KdK6G.js +83604 -0
  6. package/dist/{index-ju7GeYL2.js → index-a3d1IjXE.js} +1 -1
  7. package/dist/index-ubX_XTnt.js +1957 -0
  8. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +1 -1
  9. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  10. package/dist/packages/features/bookings/Booker/utils/event.d.ts +7 -0
  11. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  12. package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
  13. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  14. package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
  15. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts +6 -0
  16. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts.map +1 -0
  17. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts +5 -0
  18. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts.map +1 -0
  19. package/dist/packages/features/eventtypes/components/{Locations.d.ts → locations/Locations.d.ts} +2 -2
  20. package/dist/packages/features/eventtypes/components/locations/Locations.d.ts.map +1 -0
  21. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts +1 -1
  22. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
  23. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +36 -0
  24. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  25. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +7 -0
  26. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  27. package/dist/packages/features/eventtypes/lib/types.d.ts +10 -9
  28. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  29. package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
  30. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +4 -0
  31. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  32. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  33. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +7 -0
  34. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  35. package/dist/packages/platform/atoms/index.d.ts +0 -36
  36. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  37. package/dist/packages/platform/libraries/index.d.ts +1 -0
  38. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  39. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  40. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  41. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
  42. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  43. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
  44. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
  45. package/dist/style.css +1 -1
  46. package/package.json +1 -1
  47. package/dist/AppCard-HKcGH7KI.js +0 -281
  48. package/dist/AppListCardPlatformWrapper-r8Hitr0l.js +0 -9
  49. package/dist/AppListCardWebWrapper-vejVG2AV.js +0 -74
  50. package/dist/AppSettingsInterface-nEGM5s84.js +0 -75
  51. package/dist/AppSettingsInterface-qxGtpTiN.js +0 -23
  52. package/dist/AppSettingsInterface-sZRl3Mr6.js +0 -29
  53. package/dist/DateRangePicker-35rSj6si.js +0 -74
  54. package/dist/EventTypeAppCardInterface-3FT5nxjW.js +0 -34
  55. package/dist/EventTypeAppCardInterface-3G3-8wgP.js +0 -24
  56. package/dist/EventTypeAppCardInterface-4BC7MtM9.js +0 -86
  57. package/dist/EventTypeAppCardInterface-5dgM-Uqy.js +0 -42
  58. package/dist/EventTypeAppCardInterface-6nH3STHb.js +0 -41
  59. package/dist/EventTypeAppCardInterface-7Fa6yG1D.js +0 -49
  60. package/dist/EventTypeAppCardInterface-7RirPSFI.js +0 -42
  61. package/dist/EventTypeAppCardInterface-AGvK3dWC.js +0 -34
  62. package/dist/EventTypeAppCardInterface-B0TNZbec.js +0 -24
  63. package/dist/EventTypeAppCardInterface-BsVjKokG.js +0 -24
  64. package/dist/EventTypeAppCardInterface-HCOkEHH_.js +0 -51
  65. package/dist/EventTypeAppCardInterface-NPVbq3L2.js +0 -858
  66. package/dist/EventTypeAppCardInterface-OuKoklDG.js +0 -31
  67. package/dist/EventTypeAppCardInterface-W0eXvwJ6.js +0 -34
  68. package/dist/EventTypeAppCardInterface-YCW2vw93.js +0 -24
  69. package/dist/EventTypeAppCardInterface-asX2AyDB.js +0 -34
  70. package/dist/EventTypeAppCardInterface-d4eBiO7E.js +0 -34
  71. package/dist/EventTypeAppCardInterface-fXkSopxu.js +0 -51
  72. package/dist/EventTypeAppCardInterface-g7tp7Yhd.js +0 -24
  73. package/dist/EventTypeAppCardInterface-gHA1xrj1.js +0 -32
  74. package/dist/EventTypeAppCardInterface-gPp6kDAS.js +0 -39
  75. package/dist/EventTypeAppCardInterface-gjVYt_ZD.js +0 -33
  76. package/dist/EventTypeAppCardInterface-kmftUrCV.js +0 -32
  77. package/dist/EventTypeAppCardInterface-sG1mFyzN.js +0 -39
  78. package/dist/EventTypeAppCardInterface-sRqedemb.js +0 -41
  79. package/dist/EventTypeAppCardInterface-sZ8b3QC1.js +0 -34
  80. package/dist/EventTypeAppCardInterface-t_YQeAVV.js +0 -34
  81. package/dist/EventTypeAppSettingsInterface-4yNMo4Q9.js +0 -298
  82. package/dist/EventTypeAppSettingsInterface-BfRfPQNh.js +0 -120
  83. package/dist/EventTypeAppSettingsInterface-D72l4G-t.js +0 -48
  84. package/dist/EventTypeAppSettingsInterface-J1v2pIJ6.js +0 -78
  85. package/dist/EventTypeAppSettingsInterface-TNrelj_x.js +0 -25
  86. package/dist/EventTypeAppSettingsInterface-hfofyLH8.js +0 -221
  87. package/dist/EventTypeAppSettingsInterface-iPaHKtIn.js +0 -23
  88. package/dist/EventTypeAppSettingsInterface-iscD_8j0.js +0 -106
  89. package/dist/EventTypeAppSettingsInterface-lCQQSWge.js +0 -43
  90. package/dist/EventTypeAppSettingsInterface-pqAHbpj-.js +0 -72
  91. package/dist/EventTypeAppSettingsInterface-r12RWRqC.js +0 -42
  92. package/dist/EventTypeAppSettingsInterface-rUiI0j3i.js +0 -23
  93. package/dist/EventTypeAppSettingsInterface-xrBzd-pp.js +0 -24
  94. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  95. package/dist/InstallAppButton-N6EWQ7cN.js +0 -58
  96. package/dist/InstallAppButton-bRxGl3Ky.js +0 -14
  97. package/dist/InstallAppButton-fNl0KaRA.js +0 -14
  98. package/dist/StripePaymentForm-Iym6ImTI.js +0 -493
  99. package/dist/currencyOptions-kannG2hu.js +0 -61
  100. package/dist/index-0N1b0J1c.js +0 -30
  101. package/dist/index-7HDflSvQ.js +0 -518
  102. package/dist/index-ZlYpjCCS.js +0 -161411
  103. package/dist/packages/features/eventtypes/components/Locations.d.ts.map +0 -1
  104. package/dist/useIsAppEnabled-BJ4EJ4jB.js +0 -18
@@ -1,31 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { G as d } from "./index-ZlYpjCCS.js";
3
- import { A as c } from "./AppCard-HKcGH7KI.js";
4
- import { u as m } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import l from "./EventTypeAppSettingsInterface-D72l4G-t.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,34 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { G as m, y as f } from "./index-ZlYpjCCS.js";
3
- import { A as l } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import A from "./EventTypeAppSettingsInterface-hfofyLH8.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,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-ZlYpjCCS.js";
3
- import { A as m } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.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 { G as m } from "./index-ZlYpjCCS.js";
3
- import { A as c } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import l from "./EventTypeAppSettingsInterface-TNrelj_x.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 t } from "react/jsx-runtime";
2
- import { G as l, f as m } from "./index-ZlYpjCCS.js";
3
- import { A as u } from "./AppCard-HKcGH7KI.js";
4
- import { u as h } from "./useIsAppEnabled-BJ4EJ4jB.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,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-ZlYpjCCS.js";
3
- import { A } from "./AppCard-HKcGH7KI.js";
4
- import { u as I } from "./useIsAppEnabled-BJ4EJ4jB.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,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-ZlYpjCCS.js";
3
- import { A as m } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.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 a } from "react/jsx-runtime";
2
- import { G as d } from "./index-ZlYpjCCS.js";
3
- import { A as m } from "./AppCard-HKcGH7KI.js";
4
- import { u as c } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import u from "./EventTypeAppSettingsInterface-iPaHKtIn.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,39 +0,0 @@
1
- import { jsx as t, Fragment as u } from "react/jsx-runtime";
2
- import { y as A, z as y, G as g, J as b, W as f } from "./index-ZlYpjCCS.js";
3
- import { useState as P } from "react";
4
- import { A as v } from "./AppCard-HKcGH7KI.js";
5
- import C from "./EventTypeAppSettingsInterface-iscD_8j0.js";
6
- const x = function({
7
- eventType: o,
8
- app: e,
9
- eventTypeFormMetadata: p
10
- }) {
11
- const { t: i } = A(), r = y.usePathname(), { getAppData: a, setAppData: c, disabled: m } = g(), [n, d] = P(a("enabled")), l = b(p), s = !n && l;
12
- return /* @__PURE__ */ t(
13
- v,
14
- {
15
- returnTo: `${f}${r}?tabName=apps`,
16
- app: e,
17
- switchChecked: n,
18
- switchOnClick: (h) => {
19
- d(h);
20
- },
21
- description: /* @__PURE__ */ t(u, { children: "Add lightning payments to your events and booking" }),
22
- disableSwitch: s,
23
- switchTooltip: s ? i("other_payment_app_enabled") : void 0,
24
- children: /* @__PURE__ */ t(
25
- C,
26
- {
27
- eventType: o,
28
- slug: e.slug,
29
- disabled: m,
30
- getAppData: a,
31
- setAppData: c
32
- }
33
- )
34
- }
35
- );
36
- };
37
- export {
38
- x as default
39
- };
@@ -1,33 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-ZlYpjCCS.js";
3
- import { A as c } from "./AppCard-HKcGH7KI.js";
4
- import { u as l } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import u from "./EventTypeAppSettingsInterface-lCQQSWge.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,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-ZlYpjCCS.js";
4
- import { A as f } from "./AppCard-HKcGH7KI.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,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-ZlYpjCCS.js";
3
- import { A as u } from "./AppCard-HKcGH7KI.js";
4
- import { u as h } from "./useIsAppEnabled-BJ4EJ4jB.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,41 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { y as b, z as f, G as y, J as E, W as C } from "./index-ZlYpjCCS.js";
3
- import { useState as P } from "react";
4
- import { A as g } from "./AppCard-HKcGH7KI.js";
5
- import { u as v } from "./useIsAppEnabled-BJ4EJ4jB.js";
6
- import w from "./EventTypeAppSettingsInterface-BfRfPQNh.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 } = y(), { enabled: d, updateEnabled: l } = v(t), u = E(n), [h] = P(a("enabled")), s = !h && u;
14
- return /* @__PURE__ */ p(
15
- g,
16
- {
17
- returnTo: `${C}${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,34 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { G as l, f as m } from "./index-ZlYpjCCS.js";
3
- import { A as u } from "./AppCard-HKcGH7KI.js";
4
- import { u as I } from "./useIsAppEnabled-BJ4EJ4jB.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,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-ZlYpjCCS.js";
3
- import { A as c } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import l from "./EventTypeAppSettingsInterface-rUiI0j3i.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
- };