@calcom/atoms 1.0.97-beta-1 → 1.0.97-beta-3

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 (103) hide show
  1. package/dist/{AddressInput-MxFRI9cW.js → AddressInput-LPJtHhnk.js} +9 -8
  2. package/dist/{AlbyPriceComponent-B7reGN3c.js → AlbyPriceComponent-VO8iEUWb.js} +53 -52
  3. package/dist/AppCard-cTyZ7qdO.js +162 -0
  4. package/dist/AppListCardPlatformWrapper-ErlT9yQV.js +9 -0
  5. package/dist/{AppListCardWebWrapper-3ZmWWW_L.js → AppListCardWebWrapper-nLRKr-Qu.js} +10 -9
  6. package/dist/AppSettingsInterface-1iuEhZRw.js +23 -0
  7. package/dist/AppSettingsInterface-9nYzo3Ef.js +29 -0
  8. package/dist/AppSettingsInterface-Y7iloRRd.js +75 -0
  9. package/dist/{DateRangePicker-GTmIREkF.js → DateRangePicker-zh9gM3ld.js} +784 -783
  10. package/dist/EventTypeAppCardInterface-0tcE4MHz.js +32 -0
  11. package/dist/EventTypeAppCardInterface-2xzo_8rb.js +453 -0
  12. package/dist/EventTypeAppCardInterface-3xv7ZK_G.js +41 -0
  13. package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-4dkcilsD.js} +17 -16
  14. package/dist/EventTypeAppCardInterface-A7WN14Mn.js +34 -0
  15. package/dist/EventTypeAppCardInterface-BbJv67UJ.js +49 -0
  16. package/dist/EventTypeAppCardInterface-D42_2WwA.js +42 -0
  17. package/dist/EventTypeAppCardInterface-F9zy0_KX.js +24 -0
  18. package/dist/EventTypeAppCardInterface-LB9yguQb.js +39 -0
  19. package/dist/EventTypeAppCardInterface-PGX33FFN.js +42 -0
  20. package/dist/EventTypeAppCardInterface-PaCD78C8.js +33 -0
  21. package/dist/EventTypeAppCardInterface-QiaQ-GmU.js +51 -0
  22. package/dist/EventTypeAppCardInterface-S5bK4a_4.js +24 -0
  23. package/dist/EventTypeAppCardInterface-SXV5NhVT.js +24 -0
  24. package/dist/EventTypeAppCardInterface-SdCRwS0b.js +34 -0
  25. package/dist/EventTypeAppCardInterface-TV1GspR-.js +41 -0
  26. package/dist/EventTypeAppCardInterface-WrBEdjss.js +86 -0
  27. package/dist/EventTypeAppCardInterface-Xl60vAW7.js +34 -0
  28. package/dist/EventTypeAppCardInterface-bY6zHj23.js +34 -0
  29. package/dist/EventTypeAppCardInterface-bpyx9DoB.js +34 -0
  30. package/dist/EventTypeAppCardInterface-dSD0TA4p.js +34 -0
  31. package/dist/EventTypeAppCardInterface-hulmgxtc.js +24 -0
  32. package/dist/EventTypeAppCardInterface-n8fugRqn.js +32 -0
  33. package/dist/EventTypeAppCardInterface-qqnnC5vq.js +24 -0
  34. package/dist/EventTypeAppCardInterface-rVMclz_u.js +34 -0
  35. package/dist/EventTypeAppCardInterface-zXewU-bg.js +31 -0
  36. package/dist/EventTypeAppSettingsInterface-2oHFXxC0.js +221 -0
  37. package/dist/{EventTypeAppSettingsInterface-cXn8l171.js → EventTypeAppSettingsInterface-5hQr6WTa.js} +7 -6
  38. package/dist/{EventTypeAppSettingsInterface-9raltJka.js → EventTypeAppSettingsInterface-CwuQI4XA.js} +39 -38
  39. package/dist/EventTypeAppSettingsInterface-HGPywPcZ.js +43 -0
  40. package/dist/EventTypeAppSettingsInterface-MLox-zIr.js +78 -0
  41. package/dist/EventTypeAppSettingsInterface-azMpYm3v.js +48 -0
  42. package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-ccBCyO4S.js} +6 -5
  43. package/dist/EventTypeAppSettingsInterface-jCOnJXVq.js +42 -0
  44. package/dist/EventTypeAppSettingsInterface-rUp-tPsO.js +72 -0
  45. package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-sOLaF1pR.js} +6 -5
  46. package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-v8a7XnIr.js} +6 -5
  47. package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-xlYsU6Vi.js} +72 -71
  48. package/dist/InstallAppButton-34JAPxwK.js +14 -0
  49. package/dist/{InstallAppButton-Ho1cJkMm.js → InstallAppButton-JXhBVaYJ.js} +8 -8
  50. package/dist/InstallAppButton-ihX89_K4.js +58 -0
  51. package/dist/InstallAppButton-zjD9dbE7.js +14 -0
  52. package/dist/{PhoneInput-DNq9V1s5.js → PhoneInput-saKL4loW.js} +97 -96
  53. package/dist/{StripePaymentForm-lGjXjqLX.js → StripePaymentForm-dfxxUj2E.js} +100 -99
  54. package/dist/cal-atoms.js +6 -6
  55. package/dist/{framer-features--8Hvyv45.js → framer-features-K_TB52kd.js} +11 -11
  56. package/dist/{index-fsA0kHyy.js → index-81plgMPe.js} +1 -1
  57. package/dist/{index-cfay3a2W.js → index-IPz9Apiv.js} +1 -1
  58. package/dist/{index-Bj_kD41n.js → index-engsJK56.js} +108 -107
  59. package/dist/{index-OYPUcfnB.js → index-ite7gJ1a.js} +2 -2
  60. package/dist/{index-M6WUZF2M.js → index-ykl8OQ78.js} +66312 -66946
  61. package/dist/{isSupportedCountry-aizVo7Oo.js → isSupportedCountry-RPoEk3Bi.js} +1 -1
  62. package/dist/{useIsAppEnabled-OmKRsE8Z.js → useIsAppEnabled-jQTpW-EN.js} +1 -1
  63. package/globals.min.css +22 -2
  64. package/package.json +1 -1
  65. package/dist/AppCard-ImfOuDL_.js +0 -161
  66. package/dist/AppListCardPlatformWrapper-Kgk0fNGU.js +0 -8
  67. package/dist/AppSettingsInterface-4JMt22o1.js +0 -22
  68. package/dist/AppSettingsInterface-8TqZVnNL.js +0 -74
  69. package/dist/AppSettingsInterface-MQ_fkHJx.js +0 -28
  70. package/dist/EventTypeAppCardInterface-0O_KGHxp.js +0 -40
  71. package/dist/EventTypeAppCardInterface-0Z1NiGs_.js +0 -23
  72. package/dist/EventTypeAppCardInterface-0bkDiimc.js +0 -33
  73. package/dist/EventTypeAppCardInterface-4bmGNjTO.js +0 -452
  74. package/dist/EventTypeAppCardInterface-6Hs2WiRN.js +0 -23
  75. package/dist/EventTypeAppCardInterface-6QhUsfck.js +0 -38
  76. package/dist/EventTypeAppCardInterface-CSZJxMAi.js +0 -48
  77. package/dist/EventTypeAppCardInterface-D5NE1JH-.js +0 -33
  78. package/dist/EventTypeAppCardInterface-GpzdxrTy.js +0 -41
  79. package/dist/EventTypeAppCardInterface-HDqpiB_E.js +0 -33
  80. package/dist/EventTypeAppCardInterface-IsJt3HGB.js +0 -30
  81. package/dist/EventTypeAppCardInterface-K_hBnKz2.js +0 -23
  82. package/dist/EventTypeAppCardInterface-QuKynjTF.js +0 -23
  83. package/dist/EventTypeAppCardInterface-Uk-367hU.js +0 -33
  84. package/dist/EventTypeAppCardInterface-UrOLCYHp.js +0 -31
  85. package/dist/EventTypeAppCardInterface-WhX3MQGL.js +0 -33
  86. package/dist/EventTypeAppCardInterface-_a5TsCGC.js +0 -41
  87. package/dist/EventTypeAppCardInterface-_e0oMnpF.js +0 -33
  88. package/dist/EventTypeAppCardInterface-bfOpI-Cg.js +0 -23
  89. package/dist/EventTypeAppCardInterface-dQBcQRe5.js +0 -85
  90. package/dist/EventTypeAppCardInterface-jDIOSF5p.js +0 -31
  91. package/dist/EventTypeAppCardInterface-pgZqPYuy.js +0 -40
  92. package/dist/EventTypeAppCardInterface-rJaUyBaK.js +0 -32
  93. package/dist/EventTypeAppCardInterface-sAMfJ4Zp.js +0 -50
  94. package/dist/EventTypeAppCardInterface-xkCoWuR1.js +0 -33
  95. package/dist/EventTypeAppSettingsInterface-0MtsVqm9.js +0 -71
  96. package/dist/EventTypeAppSettingsInterface-4AylQiBj.js +0 -47
  97. package/dist/EventTypeAppSettingsInterface-Br_BvYU4.js +0 -77
  98. package/dist/EventTypeAppSettingsInterface-CkbhDi5X.js +0 -42
  99. package/dist/EventTypeAppSettingsInterface-nwSw369C.js +0 -220
  100. package/dist/EventTypeAppSettingsInterface-x-GvtrwY.js +0 -41
  101. package/dist/InstallAppButton-7AfVFA1y.js +0 -13
  102. package/dist/InstallAppButton-PfrQUF7k.js +0 -13
  103. package/dist/InstallAppButton-R3hBMMGj.js +0 -57
@@ -0,0 +1,42 @@
1
+ import { jsx as e, Fragment as P } from "react/jsx-runtime";
2
+ import { G as i, y as g, J as f, K as b, W as S } from "./index-ykl8OQ78.js";
3
+ import { useMemo as v, useState as C } from "react";
4
+ import { A as w } from "./AppCard-cTyZ7qdO.js";
5
+ import E from "./EventTypeAppSettingsInterface-rUp-tPsO.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
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { G as d, W as i } from "./index-ykl8OQ78.js";
3
+ import { A as m } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,39 @@
1
+ import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
+ import { J as m, a4 as o } from "./index-ykl8OQ78.js";
3
+ import { A as u } from "./AppCard-cTyZ7qdO.js";
4
+ import { u as h } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,42 @@
1
+ import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
+ import { G as i, J as f, K as g, y as S, W as b } from "./index-ykl8OQ78.js";
3
+ import { useMemo as v, useState as C } from "react";
4
+ import { A as w } from "./AppCard-cTyZ7qdO.js";
5
+ import E from "./EventTypeAppSettingsInterface-MLox-zIr.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
+ };
@@ -0,0 +1,33 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { J as m } from "./index-ykl8OQ78.js";
3
+ import { A as c } from "./AppCard-cTyZ7qdO.js";
4
+ import { u as l } from "./useIsAppEnabled-jQTpW-EN.js";
5
+ import u from "./EventTypeAppSettingsInterface-HGPywPcZ.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
+ };
@@ -0,0 +1,51 @@
1
+ import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
+ import { J as h, k as n } from "./index-ykl8OQ78.js";
3
+ import { A } from "./AppCard-cTyZ7qdO.js";
4
+ import { u as I } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { G as d, W as i } from "./index-ykl8OQ78.js";
3
+ import { A as m } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { G as d, W as i } from "./index-ykl8OQ78.js";
3
+ import { A as m } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { J as m } from "./index-ykl8OQ78.js";
3
+ import { A as c } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.js";
5
+ import l from "./EventTypeAppSettingsInterface-v8a7XnIr.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
+ };
@@ -0,0 +1,41 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { y as b, G as f, J as y, K as E, W as P } from "./index-ykl8OQ78.js";
3
+ import { useState as C } from "react";
4
+ import { A as g } from "./AppCard-cTyZ7qdO.js";
5
+ import { u as v } from "./useIsAppEnabled-jQTpW-EN.js";
6
+ import w from "./EventTypeAppSettingsInterface-xlYsU6Vi.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 } = v(e), u = E(p), [h, T] = C(a("enabled")), s = !h && u;
14
+ return /* @__PURE__ */ o(
15
+ g,
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
+ w,
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
+ };
@@ -0,0 +1,86 @@
1
+ import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
+ import { G as v, y as T, J as _, M as t, W as q, N as L, k as V, S as g } from "./index-ykl8OQ78.js";
3
+ import { useMemo as W, useState as p } from "react";
4
+ import { A as $ } from "./AppCard-cTyZ7qdO.js";
5
+ import { c as x, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
+ const z = function({ app: S, eventType: k }) {
7
+ var f, h;
8
+ const i = v.useSearchParams(), d = v.usePathname(), A = W(
9
+ () => `${d}${i ? `?${i.toString()}` : ""}`,
10
+ [d, i]
11
+ ), { t: n } = T(), { getAppData: r, setAppData: c } = _(), y = r("price"), l = r("currency"), N = r("paymentOption"), P = r("enabled"), [s, O] = p(x.find((e) => e.value === l)), [w, E] = p(
12
+ j(l) ? C[l] : ""
13
+ ), [b, D] = p(P), m = ((f = t) == null ? void 0 : f.find((e) => N === e.value)) || {
14
+ label: t[0].label,
15
+ value: t[0].value
16
+ }, F = ((h = k.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
+ return /* @__PURE__ */ a(
18
+ $,
19
+ {
20
+ returnTo: q + A,
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
+ z as default
86
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { J as l, k as m } from "./index-ykl8OQ78.js";
3
+ import { A as u } from "./AppCard-cTyZ7qdO.js";
4
+ import { u as I } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { J as m, y as f } from "./index-ykl8OQ78.js";
3
+ import { A as l } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.js";
5
+ import A from "./EventTypeAppSettingsInterface-2oHFXxC0.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
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { J as l, k as m } from "./index-ykl8OQ78.js";
3
+ import { A as u } from "./AppCard-cTyZ7qdO.js";
4
+ import { u as h } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { J as m } from "./index-ykl8OQ78.js";
3
+ import { A as c } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.js";
5
+ import l from "./EventTypeAppSettingsInterface-jCOnJXVq.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
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { G as d, W as i } from "./index-ykl8OQ78.js";
3
+ import { A as m } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.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
+ };
@@ -0,0 +1,32 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useState as c } from "react";
3
+ import { J as m, k as l } from "./index-ykl8OQ78.js";
4
+ import { A as f } from "./AppCard-cTyZ7qdO.js";
5
+ const C = 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
+ C as default
32
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { G as d, W as i } from "./index-ykl8OQ78.js";
3
+ import { A as m } from "./AppCard-cTyZ7qdO.js";
4
+ import { u } from "./useIsAppEnabled-jQTpW-EN.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
+ };