@calcom/atoms 1.0.97-beta-1 → 1.0.97-beta-2
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.
- package/dist/{AddressInput-MxFRI9cW.js → AddressInput-Vp5Ny4rZ.js} +9 -8
- package/dist/{AlbyPriceComponent-B7reGN3c.js → AlbyPriceComponent-i0xkINen.js} +53 -52
- package/dist/AppCard-9m9p6YSL.js +162 -0
- package/dist/AppListCardPlatformWrapper-6V24t85e.js +9 -0
- package/dist/{AppListCardWebWrapper-3ZmWWW_L.js → AppListCardWebWrapper-iB6tYray.js} +10 -9
- package/dist/AppSettingsInterface-9Bv_J1St.js +23 -0
- package/dist/AppSettingsInterface-HdXxgvUo.js +29 -0
- package/dist/AppSettingsInterface-Z5mD4vz9.js +75 -0
- package/dist/{DateRangePicker-GTmIREkF.js → DateRangePicker-ZPLEXLdF.js} +784 -783
- package/dist/EventTypeAppCardInterface-3A0BLKpG.js +34 -0
- package/dist/EventTypeAppCardInterface-5wb9HPk4.js +86 -0
- package/dist/EventTypeAppCardInterface-9_6R5KQl.js +24 -0
- package/dist/EventTypeAppCardInterface-E9mqlk3L.js +39 -0
- package/dist/EventTypeAppCardInterface-Ez8jijO4.js +42 -0
- package/dist/EventTypeAppCardInterface-HpWHgRBK.js +34 -0
- package/dist/EventTypeAppCardInterface-IN5BDME5.js +49 -0
- package/dist/EventTypeAppCardInterface-J-UrzGuv.js +51 -0
- package/dist/EventTypeAppCardInterface-KTeZawOA.js +34 -0
- package/dist/EventTypeAppCardInterface-NPXzuwrD.js +34 -0
- package/dist/EventTypeAppCardInterface-RWqrIPbF.js +34 -0
- package/dist/EventTypeAppCardInterface-SveyRKGJ.js +33 -0
- package/dist/EventTypeAppCardInterface-W9_JNxow.js +41 -0
- package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-WQmKWesQ.js} +17 -16
- package/dist/EventTypeAppCardInterface-XsjP04H8.js +32 -0
- package/dist/EventTypeAppCardInterface-ZoFvLu0T.js +41 -0
- package/dist/EventTypeAppCardInterface-_pC5hr_u.js +24 -0
- package/dist/EventTypeAppCardInterface-bScBMMgD.js +34 -0
- package/dist/EventTypeAppCardInterface-c4h7EQ2a.js +31 -0
- package/dist/EventTypeAppCardInterface-eXFFG8at.js +24 -0
- package/dist/EventTypeAppCardInterface-ec7t7O8E.js +42 -0
- package/dist/EventTypeAppCardInterface-fXPOexR7.js +24 -0
- package/dist/EventTypeAppCardInterface-o81innc9.js +34 -0
- package/dist/EventTypeAppCardInterface-rULr-Mfj.js +32 -0
- package/dist/EventTypeAppCardInterface-uHpKaOQS.js +453 -0
- package/dist/EventTypeAppCardInterface-wxpzyeqk.js +24 -0
- package/dist/EventTypeAppSettingsInterface-10UpznIO.js +78 -0
- package/dist/EventTypeAppSettingsInterface-3F_4vyUK.js +72 -0
- package/dist/{EventTypeAppSettingsInterface-9raltJka.js → EventTypeAppSettingsInterface-659frs2F.js} +39 -38
- package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-NnKlcbB9.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-P6VrsG5d.js +221 -0
- package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-SsbpYCOY.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-cXn8l171.js → EventTypeAppSettingsInterface-TYPdYPPl.js} +7 -6
- package/dist/EventTypeAppSettingsInterface-XXAdH79U.js +42 -0
- package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-ZKoyhNO9.js} +72 -71
- package/dist/EventTypeAppSettingsInterface-g9gv0z2h.js +48 -0
- package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-jq-VsbFe.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-ubeZQTeO.js +43 -0
- package/dist/InstallAppButton-6P2Fv_oM.js +58 -0
- package/dist/{InstallAppButton-Ho1cJkMm.js → InstallAppButton-JXhBVaYJ.js} +8 -8
- package/dist/InstallAppButton-Ym2oci2C.js +14 -0
- package/dist/InstallAppButton-_dz8RUxd.js +14 -0
- package/dist/{PhoneInput-DNq9V1s5.js → PhoneInput-Af_8DURS.js} +97 -96
- package/dist/{StripePaymentForm-lGjXjqLX.js → StripePaymentForm-B4nw6Pkd.js} +100 -99
- package/dist/cal-atoms.js +6 -6
- package/dist/{framer-features--8Hvyv45.js → framer-features-sahHu1Ou.js} +11 -11
- package/dist/{index-fsA0kHyy.js → index-DcCG9gCb.js} +1 -1
- package/dist/{index-cfay3a2W.js → index-GYjzMn-V.js} +1 -1
- package/dist/{index-Bj_kD41n.js → index-Xu6D4ii2.js} +108 -107
- package/dist/{index-M6WUZF2M.js → index-jTqJooNt.js} +67433 -68186
- package/dist/{index-OYPUcfnB.js → index-xyYlazhP.js} +2 -2
- package/dist/{isSupportedCountry-aizVo7Oo.js → isSupportedCountry-UcFlf7mS.js} +1 -1
- package/dist/{useIsAppEnabled-OmKRsE8Z.js → useIsAppEnabled-1m8rIQ8P.js} +1 -1
- package/package.json +1 -1
- package/dist/AppCard-ImfOuDL_.js +0 -161
- package/dist/AppListCardPlatformWrapper-Kgk0fNGU.js +0 -8
- package/dist/AppSettingsInterface-4JMt22o1.js +0 -22
- package/dist/AppSettingsInterface-8TqZVnNL.js +0 -74
- package/dist/AppSettingsInterface-MQ_fkHJx.js +0 -28
- package/dist/EventTypeAppCardInterface-0O_KGHxp.js +0 -40
- package/dist/EventTypeAppCardInterface-0Z1NiGs_.js +0 -23
- package/dist/EventTypeAppCardInterface-0bkDiimc.js +0 -33
- package/dist/EventTypeAppCardInterface-4bmGNjTO.js +0 -452
- package/dist/EventTypeAppCardInterface-6Hs2WiRN.js +0 -23
- package/dist/EventTypeAppCardInterface-6QhUsfck.js +0 -38
- package/dist/EventTypeAppCardInterface-CSZJxMAi.js +0 -48
- package/dist/EventTypeAppCardInterface-D5NE1JH-.js +0 -33
- package/dist/EventTypeAppCardInterface-GpzdxrTy.js +0 -41
- package/dist/EventTypeAppCardInterface-HDqpiB_E.js +0 -33
- package/dist/EventTypeAppCardInterface-IsJt3HGB.js +0 -30
- package/dist/EventTypeAppCardInterface-K_hBnKz2.js +0 -23
- package/dist/EventTypeAppCardInterface-QuKynjTF.js +0 -23
- package/dist/EventTypeAppCardInterface-Uk-367hU.js +0 -33
- package/dist/EventTypeAppCardInterface-UrOLCYHp.js +0 -31
- package/dist/EventTypeAppCardInterface-WhX3MQGL.js +0 -33
- package/dist/EventTypeAppCardInterface-_a5TsCGC.js +0 -41
- package/dist/EventTypeAppCardInterface-_e0oMnpF.js +0 -33
- package/dist/EventTypeAppCardInterface-bfOpI-Cg.js +0 -23
- package/dist/EventTypeAppCardInterface-dQBcQRe5.js +0 -85
- package/dist/EventTypeAppCardInterface-jDIOSF5p.js +0 -31
- package/dist/EventTypeAppCardInterface-pgZqPYuy.js +0 -40
- package/dist/EventTypeAppCardInterface-rJaUyBaK.js +0 -32
- package/dist/EventTypeAppCardInterface-sAMfJ4Zp.js +0 -50
- package/dist/EventTypeAppCardInterface-xkCoWuR1.js +0 -33
- package/dist/EventTypeAppSettingsInterface-0MtsVqm9.js +0 -71
- package/dist/EventTypeAppSettingsInterface-4AylQiBj.js +0 -47
- package/dist/EventTypeAppSettingsInterface-Br_BvYU4.js +0 -77
- package/dist/EventTypeAppSettingsInterface-CkbhDi5X.js +0 -42
- package/dist/EventTypeAppSettingsInterface-nwSw369C.js +0 -220
- package/dist/EventTypeAppSettingsInterface-x-GvtrwY.js +0 -41
- package/dist/InstallAppButton-7AfVFA1y.js +0 -13
- package/dist/InstallAppButton-PfrQUF7k.js +0 -13
- package/dist/InstallAppButton-R3hBMMGj.js +0 -57
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { K as d, x as e } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as c } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u as m } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
import u from "./EventTypeAppSettingsInterface-4AylQiBj.js";
|
|
5
|
-
const C = function({ app: t, eventType: p }) {
|
|
6
|
-
const { getAppData: s, setAppData: a, disabled: n } = d(), { enabled: r, updateEnabled: o } = m(t);
|
|
7
|
-
return /* @__PURE__ */ e.jsx(
|
|
8
|
-
c,
|
|
9
|
-
{
|
|
10
|
-
app: t,
|
|
11
|
-
switchOnClick: (i) => {
|
|
12
|
-
o(i);
|
|
13
|
-
},
|
|
14
|
-
switchChecked: r,
|
|
15
|
-
children: /* @__PURE__ */ e.jsx(
|
|
16
|
-
u,
|
|
17
|
-
{
|
|
18
|
-
slug: t.slug,
|
|
19
|
-
eventType: p,
|
|
20
|
-
disabled: n,
|
|
21
|
-
getAppData: s,
|
|
22
|
-
setAppData: a
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
C as default
|
|
30
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { J as o, x as d, W as i } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as m } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
const E = function({ app: t, eventType: e }) {
|
|
5
|
-
var a;
|
|
6
|
-
const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(t);
|
|
7
|
-
return /* @__PURE__ */ d.jsx(
|
|
8
|
-
m,
|
|
9
|
-
{
|
|
10
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
11
|
-
app: t,
|
|
12
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
13
|
-
switchOnClick: (r) => {
|
|
14
|
-
s(r);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: n,
|
|
17
|
-
hideAppCardOptions: !0
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
E as default
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { J as o, x as d, W as i } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as m } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
const E = function({ app: t, eventType: e }) {
|
|
5
|
-
var a;
|
|
6
|
-
const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(t);
|
|
7
|
-
return /* @__PURE__ */ d.jsx(
|
|
8
|
-
m,
|
|
9
|
-
{
|
|
10
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
11
|
-
app: t,
|
|
12
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
13
|
-
switchOnClick: (r) => {
|
|
14
|
-
s(r);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: n,
|
|
17
|
-
hideAppCardOptions: !0
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
E as default
|
|
23
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { K as c, x as p } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as m } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
import l from "./EventTypeAppSettingsInterface-x-GvtrwY.js";
|
|
5
|
-
const E = function({ app: t, eventType: e }) {
|
|
6
|
-
var s;
|
|
7
|
-
const { getAppData: a, setAppData: n, disabled: r } = c(), { enabled: i, updateEnabled: o } = u(t);
|
|
8
|
-
return /* @__PURE__ */ p.jsx(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
hideSettingsIcon: !0,
|
|
12
|
-
app: t,
|
|
13
|
-
switchOnClick: (d) => {
|
|
14
|
-
o(d);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: i,
|
|
17
|
-
teamId: ((s = e.team) == null ? void 0 : s.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ p.jsx(
|
|
19
|
-
l,
|
|
20
|
-
{
|
|
21
|
-
eventType: e,
|
|
22
|
-
slug: t.slug,
|
|
23
|
-
disabled: r,
|
|
24
|
-
getAppData: a,
|
|
25
|
-
setAppData: n
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
E as default
|
|
33
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { K as d, x as p } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as c } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u as m } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
import u from "./EventTypeAppSettingsInterface-2wY9yPcf.js";
|
|
5
|
-
const C = function({ app: t, eventType: e }) {
|
|
6
|
-
var s;
|
|
7
|
-
const { getAppData: a, setAppData: n, disabled: r } = d(), { enabled: i, updateEnabled: o } = m(t);
|
|
8
|
-
return /* @__PURE__ */ p.jsx(
|
|
9
|
-
c,
|
|
10
|
-
{
|
|
11
|
-
hideSettingsIcon: !0,
|
|
12
|
-
app: t,
|
|
13
|
-
switchOnClick: o,
|
|
14
|
-
switchChecked: i,
|
|
15
|
-
teamId: ((s = e.team) == null ? void 0 : s.id) || void 0,
|
|
16
|
-
children: /* @__PURE__ */ p.jsx(
|
|
17
|
-
u,
|
|
18
|
-
{
|
|
19
|
-
eventType: e,
|
|
20
|
-
slug: t.slug,
|
|
21
|
-
disabled: r,
|
|
22
|
-
getAppData: a,
|
|
23
|
-
setAppData: n
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
C as default
|
|
31
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { K as c, x as p } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as m } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
import l from "./EventTypeAppSettingsInterface-eKcoM9Xa.js";
|
|
5
|
-
const E = function({ app: t, eventType: e }) {
|
|
6
|
-
var s;
|
|
7
|
-
const { getAppData: a, setAppData: n, disabled: r } = c(), { enabled: i, updateEnabled: o } = u(t);
|
|
8
|
-
return /* @__PURE__ */ p.jsx(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
hideSettingsIcon: !0,
|
|
12
|
-
app: t,
|
|
13
|
-
switchOnClick: (d) => {
|
|
14
|
-
o(d);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: i,
|
|
17
|
-
teamId: ((s = e.team) == null ? void 0 : s.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ p.jsx(
|
|
19
|
-
l,
|
|
20
|
-
{
|
|
21
|
-
eventType: e,
|
|
22
|
-
slug: t.slug,
|
|
23
|
-
disabled: r,
|
|
24
|
-
getAppData: a,
|
|
25
|
-
setAppData: n
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
E as default
|
|
33
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { J as i, z as P, K as g, M as x, x as t, W as b } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useMemo as f, useState as S } from "react";
|
|
3
|
-
import { A as v } from "./AppCard-ImfOuDL_.js";
|
|
4
|
-
import C from "./EventTypeAppSettingsInterface-0MtsVqm9.js";
|
|
5
|
-
const k = function({
|
|
6
|
-
app: s,
|
|
7
|
-
eventType: p,
|
|
8
|
-
eventTypeFormMetadata: c
|
|
9
|
-
}) {
|
|
10
|
-
const e = i.useSearchParams(), { t: m } = P(), a = i.usePathname(), h = f(
|
|
11
|
-
() => `${a}${e ? `?${e.toString()}` : ""}`,
|
|
12
|
-
[a, e]
|
|
13
|
-
), { getAppData: n, setAppData: d, disabled: l } = g(), [o, u] = S(n("enabled")), A = x(c), r = !o && A;
|
|
14
|
-
return /* @__PURE__ */ t.jsx(
|
|
15
|
-
v,
|
|
16
|
-
{
|
|
17
|
-
returnTo: b + h,
|
|
18
|
-
app: s,
|
|
19
|
-
switchChecked: o,
|
|
20
|
-
switchOnClick: (y) => {
|
|
21
|
-
u(y);
|
|
22
|
-
},
|
|
23
|
-
description: /* @__PURE__ */ t.jsx(t.Fragment, { children: "Add bitcoin lightning payments to your events" }),
|
|
24
|
-
disableSwitch: r,
|
|
25
|
-
switchTooltip: r ? m("other_payment_app_enabled") : void 0,
|
|
26
|
-
children: /* @__PURE__ */ t.jsx(
|
|
27
|
-
C,
|
|
28
|
-
{
|
|
29
|
-
eventType: p,
|
|
30
|
-
slug: s.slug,
|
|
31
|
-
disabled: l,
|
|
32
|
-
getAppData: n,
|
|
33
|
-
setAppData: d
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
k as default
|
|
41
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { K as l, x as t, k as m } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as u } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u as h } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
const C = function({ app: a, eventType: n }) {
|
|
5
|
-
var p;
|
|
6
|
-
const { getAppData: d, setAppData: i, disabled: s } = l(), r = d("SITE_ID"), { enabled: o, updateEnabled: c } = h(a);
|
|
7
|
-
return /* @__PURE__ */ t.jsx(
|
|
8
|
-
u,
|
|
9
|
-
{
|
|
10
|
-
app: a,
|
|
11
|
-
switchOnClick: (e) => {
|
|
12
|
-
c(e);
|
|
13
|
-
},
|
|
14
|
-
switchChecked: o,
|
|
15
|
-
teamId: ((p = n.team) == null ? void 0 : p.id) || void 0,
|
|
16
|
-
children: /* @__PURE__ */ t.jsx("fieldset", { className: "space-y-2", disabled: s, children: /* @__PURE__ */ t.jsx(
|
|
17
|
-
m,
|
|
18
|
-
{
|
|
19
|
-
disabled: s,
|
|
20
|
-
name: "Site ID",
|
|
21
|
-
value: r,
|
|
22
|
-
placeholder: "Enter your Site ID",
|
|
23
|
-
onChange: (e) => {
|
|
24
|
-
i("SITE_ID", e.target.value);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
) })
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
C as default
|
|
33
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { J as o, x as d, W as i } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as m } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
const E = function({ app: t, eventType: e }) {
|
|
5
|
-
var a;
|
|
6
|
-
const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(t);
|
|
7
|
-
return /* @__PURE__ */ d.jsx(
|
|
8
|
-
m,
|
|
9
|
-
{
|
|
10
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
11
|
-
app: t,
|
|
12
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
13
|
-
switchOnClick: (r) => {
|
|
14
|
-
s(r);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: n,
|
|
17
|
-
hideAppCardOptions: !0
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
E as default
|
|
23
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { J as x, z as E, K as F, N as t, x as a, W as D, O as T, k as _, S as h } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useMemo as q, useState as o } from "react";
|
|
3
|
-
import { A as L } from "./AppCard-ImfOuDL_.js";
|
|
4
|
-
import { c as f, i as R, a as v } from "./currencyOptions-kannG2hu.js";
|
|
5
|
-
const J = function({ app: g, eventType: j }) {
|
|
6
|
-
var y, b;
|
|
7
|
-
const i = x.useSearchParams(), u = x.usePathname(), C = q(
|
|
8
|
-
() => `${u}${i ? `?${i.toString()}` : ""}`,
|
|
9
|
-
[u, i]
|
|
10
|
-
), { t: n } = E(), { getAppData: r, setAppData: s } = F(), p = r("price"), c = r("currency"), S = r("paymentOption"), k = r("enabled"), [l, A] = o(f.find((e) => e.value === c)), [N, O] = o(
|
|
11
|
-
R(c) ? v[c] : ""
|
|
12
|
-
), [d, P] = o(k), m = ((y = t) == null ? void 0 : y.find((e) => S === e.value)) || {
|
|
13
|
-
label: t[0].label,
|
|
14
|
-
value: t[0].value
|
|
15
|
-
}, w = ((b = j.recurringEvent) == null ? void 0 : b.count) !== void 0;
|
|
16
|
-
return /* @__PURE__ */ a.jsx(
|
|
17
|
-
L,
|
|
18
|
-
{
|
|
19
|
-
returnTo: D + C,
|
|
20
|
-
app: g,
|
|
21
|
-
switchChecked: d,
|
|
22
|
-
switchOnClick: (e) => {
|
|
23
|
-
P(e);
|
|
24
|
-
},
|
|
25
|
-
description: /* @__PURE__ */ a.jsx(a.Fragment, { children: "Add a mock payment to your events" }),
|
|
26
|
-
children: /* @__PURE__ */ a.jsx(a.Fragment, { children: w ? /* @__PURE__ */ a.jsx(T, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : d && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
27
|
-
/* @__PURE__ */ a.jsx("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ a.jsx(
|
|
28
|
-
_,
|
|
29
|
-
{
|
|
30
|
-
id: "test-mock-payment-app-price",
|
|
31
|
-
label: "Price",
|
|
32
|
-
labelSrOnly: !0,
|
|
33
|
-
addOnLeading: N,
|
|
34
|
-
addOnSuffix: c,
|
|
35
|
-
step: "0.01",
|
|
36
|
-
min: "0.5",
|
|
37
|
-
type: "number",
|
|
38
|
-
required: !0,
|
|
39
|
-
className: "block w-full rounded-sm pl-2 text-sm",
|
|
40
|
-
placeholder: "Price",
|
|
41
|
-
onChange: (e) => {
|
|
42
|
-
s("price", Number(e.target.value) * 100), l && s("currency", l.value);
|
|
43
|
-
},
|
|
44
|
-
value: p > 0 ? p / 100 : void 0
|
|
45
|
-
}
|
|
46
|
-
) }),
|
|
47
|
-
/* @__PURE__ */ a.jsxs("div", { className: "mt-5 w-60", children: [
|
|
48
|
-
/* @__PURE__ */ a.jsx("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
49
|
-
/* @__PURE__ */ a.jsx(
|
|
50
|
-
h,
|
|
51
|
-
{
|
|
52
|
-
id: "test-mock-payment-app-currency-id",
|
|
53
|
-
variant: "default",
|
|
54
|
-
options: f,
|
|
55
|
-
value: l,
|
|
56
|
-
className: "text-black",
|
|
57
|
-
defaultValue: l,
|
|
58
|
-
onChange: (e) => {
|
|
59
|
-
e && (A(e), O(v[e.value]), s("currency", e.value));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ a.jsxs("div", { className: "mt-4 w-60", children: [
|
|
65
|
-
/* @__PURE__ */ a.jsx("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
66
|
-
/* @__PURE__ */ a.jsx(
|
|
67
|
-
h,
|
|
68
|
-
{
|
|
69
|
-
defaultValue: m ? { ...m, label: n(m.label) } : { ...t[0], label: n(t[0].label) },
|
|
70
|
-
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
71
|
-
onChange: (e) => {
|
|
72
|
-
e && s("paymentOption", e.value);
|
|
73
|
-
},
|
|
74
|
-
className: "mb-1 h-[38px] w-full",
|
|
75
|
-
isDisabled: !1
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] })
|
|
79
|
-
] }) })
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
export {
|
|
84
|
-
J as default
|
|
85
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { K as c, x as s, k as l } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as m } from "react";
|
|
3
|
-
import { A as u } from "./AppCard-ImfOuDL_.js";
|
|
4
|
-
const k = function({ app: r, eventType: p }) {
|
|
5
|
-
var n;
|
|
6
|
-
const { getAppData: t, setAppData: i } = c(), d = t("trackingId"), [o, a] = m(t("enabled"));
|
|
7
|
-
return /* @__PURE__ */ s.jsx(
|
|
8
|
-
u,
|
|
9
|
-
{
|
|
10
|
-
app: r,
|
|
11
|
-
switchOnClick: (e) => {
|
|
12
|
-
a(!!e);
|
|
13
|
-
},
|
|
14
|
-
switchChecked: o,
|
|
15
|
-
teamId: ((n = p.team) == null ? void 0 : n.id) || void 0,
|
|
16
|
-
children: /* @__PURE__ */ s.jsx(
|
|
17
|
-
l,
|
|
18
|
-
{
|
|
19
|
-
name: "Tracking ID",
|
|
20
|
-
value: d,
|
|
21
|
-
onChange: (e) => {
|
|
22
|
-
i("trackingId", e.target.value);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
k as default
|
|
31
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { z as b, J as f, K as E, M as x, x as p, W as y } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as P } from "react";
|
|
3
|
-
import { A as C } from "./AppCard-ImfOuDL_.js";
|
|
4
|
-
import { u as g } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
5
|
-
import v from "./EventTypeAppSettingsInterface-Fn4VS9pl.js";
|
|
6
|
-
const I = function({
|
|
7
|
-
app: e,
|
|
8
|
-
eventType: t,
|
|
9
|
-
eventTypeFormMetadata: o
|
|
10
|
-
}) {
|
|
11
|
-
var n;
|
|
12
|
-
const { t: i } = b(), r = f.usePathname(), { getAppData: a, setAppData: c, disabled: m } = E(), { enabled: d, updateEnabled: l } = g(e), u = x(o), [h, S] = P(a("enabled")), s = !h && u;
|
|
13
|
-
return /* @__PURE__ */ p.jsx(
|
|
14
|
-
C,
|
|
15
|
-
{
|
|
16
|
-
returnTo: `${y}${r}?tabName=apps`,
|
|
17
|
-
app: e,
|
|
18
|
-
switchChecked: d,
|
|
19
|
-
switchOnClick: (A) => {
|
|
20
|
-
l(A);
|
|
21
|
-
},
|
|
22
|
-
teamId: ((n = t.team) == null ? void 0 : n.id) || void 0,
|
|
23
|
-
disableSwitch: s,
|
|
24
|
-
switchTooltip: s ? i("other_payment_app_enabled") : void 0,
|
|
25
|
-
children: /* @__PURE__ */ p.jsx(
|
|
26
|
-
v,
|
|
27
|
-
{
|
|
28
|
-
eventType: t,
|
|
29
|
-
slug: e.slug,
|
|
30
|
-
disabled: m,
|
|
31
|
-
getAppData: a,
|
|
32
|
-
setAppData: c
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
I as default
|
|
40
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { K as m, x as p } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as c } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
import l from "./EventTypeAppSettingsInterface-CkbhDi5X.js";
|
|
5
|
-
const E = function({ eventType: e, app: t }) {
|
|
6
|
-
var s;
|
|
7
|
-
const { enabled: a, updateEnabled: n } = u(t), { disabled: r, getAppData: o, setAppData: d } = m();
|
|
8
|
-
return /* @__PURE__ */ p.jsx(
|
|
9
|
-
c,
|
|
10
|
-
{
|
|
11
|
-
app: t,
|
|
12
|
-
switchOnClick: (i) => {
|
|
13
|
-
n(i);
|
|
14
|
-
},
|
|
15
|
-
switchChecked: a,
|
|
16
|
-
teamId: ((s = e.team) == null ? void 0 : s.id) || void 0,
|
|
17
|
-
children: /* @__PURE__ */ p.jsx(
|
|
18
|
-
l,
|
|
19
|
-
{
|
|
20
|
-
eventType: e,
|
|
21
|
-
slug: t.slug,
|
|
22
|
-
disabled: r,
|
|
23
|
-
getAppData: o,
|
|
24
|
-
setAppData: d
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
E as default
|
|
32
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { K as m, x as a, k as r } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as h } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u as x } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
const T = function({ app: t, eventType: i }) {
|
|
5
|
-
var d;
|
|
6
|
-
const { getAppData: s, setAppData: o, disabled: n } = m(), l = s("MATOMO_URL"), p = s("SITE_ID"), { enabled: c, updateEnabled: u } = x(t);
|
|
7
|
-
return /* @__PURE__ */ a.jsx(
|
|
8
|
-
h,
|
|
9
|
-
{
|
|
10
|
-
hideSettingsIcon: !0,
|
|
11
|
-
app: t,
|
|
12
|
-
switchOnClick: (e) => {
|
|
13
|
-
u(e);
|
|
14
|
-
},
|
|
15
|
-
switchChecked: c,
|
|
16
|
-
teamId: ((d = i.team) == null ? void 0 : d.id) || void 0,
|
|
17
|
-
children: /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
18
|
-
/* @__PURE__ */ a.jsx(
|
|
19
|
-
r,
|
|
20
|
-
{
|
|
21
|
-
dataTestid: `${t.slug}-url`,
|
|
22
|
-
name: "Matomo URL",
|
|
23
|
-
placeholder: "Enter your Matomo URL here",
|
|
24
|
-
value: l,
|
|
25
|
-
disabled: n,
|
|
26
|
-
onChange: (e) => {
|
|
27
|
-
o("MATOMO_URL", e.target.value);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
/* @__PURE__ */ a.jsx(
|
|
32
|
-
r,
|
|
33
|
-
{
|
|
34
|
-
dataTestid: `${t.slug}-site-id`,
|
|
35
|
-
disabled: n,
|
|
36
|
-
name: "Site ID",
|
|
37
|
-
placeholder: "Enter your Site ID",
|
|
38
|
-
value: p,
|
|
39
|
-
onChange: (e) => {
|
|
40
|
-
o("SITE_ID", e.target.value);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
] })
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
T as default
|
|
50
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { K as m, z as l, x as o } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { A as f } from "./AppCard-ImfOuDL_.js";
|
|
3
|
-
import { u } from "./useIsAppEnabled-OmKRsE8Z.js";
|
|
4
|
-
import A from "./EventTypeAppSettingsInterface-nwSw369C.js";
|
|
5
|
-
const S = function({ app: t, eventType: e }) {
|
|
6
|
-
var s;
|
|
7
|
-
const { getAppData: a, setAppData: i, disabled: n } = m(), { enabled: p, updateEnabled: r } = u(t), { t: c } = l();
|
|
8
|
-
return /* @__PURE__ */ o.jsx(
|
|
9
|
-
f,
|
|
10
|
-
{
|
|
11
|
-
app: t,
|
|
12
|
-
description: c("confirmation_page_gif"),
|
|
13
|
-
switchOnClick: (d) => {
|
|
14
|
-
r(d);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: p,
|
|
17
|
-
teamId: ((s = e.team) == null ? void 0 : s.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ o.jsx(
|
|
19
|
-
A,
|
|
20
|
-
{
|
|
21
|
-
eventType: e,
|
|
22
|
-
slug: t.slug,
|
|
23
|
-
disabled: n,
|
|
24
|
-
getAppData: a,
|
|
25
|
-
setAppData: i
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
S as default
|
|
33
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { z as p, aa as t, x as l, O as v, k as O, a6 as S, S as h } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as j, useEffect as w } from "react";
|
|
3
|
-
const o = [{ label: "BTC", value: "BTC", unit: "sats" }], P = ({
|
|
4
|
-
eventType: d,
|
|
5
|
-
getAppData: c,
|
|
6
|
-
setAppData: a
|
|
7
|
-
}) => {
|
|
8
|
-
var f, y;
|
|
9
|
-
const { t: n } = p(), i = c("price"), s = c("currency"), [r, g] = j(
|
|
10
|
-
o.find((e) => e.value === s) || o[0]
|
|
11
|
-
), b = c("paymentOption"), u = ((f = t) == null ? void 0 : f.find((e) => b === e.value)) || {
|
|
12
|
-
label: t[0].label,
|
|
13
|
-
value: t[0].value
|
|
14
|
-
}, x = !!d.seatsPerTimeSlot, [m] = j(c("enabled")), N = ((y = d.recurringEvent) == null ? void 0 : y.count) !== void 0;
|
|
15
|
-
return w(() => {
|
|
16
|
-
!s && m && a("currency", r.value);
|
|
17
|
-
}, [s, r, a, m]), /* @__PURE__ */ l.jsx(l.Fragment, { children: N ? /* @__PURE__ */ l.jsx(v, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
18
|
-
/* @__PURE__ */ l.jsx("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l.jsx(
|
|
19
|
-
O,
|
|
20
|
-
{
|
|
21
|
-
label: "Price",
|
|
22
|
-
labelSrOnly: !0,
|
|
23
|
-
addOnLeading: /* @__PURE__ */ l.jsx(S, { className: "h-4 w-4" }),
|
|
24
|
-
addOnSuffix: r.unit || r.value,
|
|
25
|
-
type: "number",
|
|
26
|
-
required: !0,
|
|
27
|
-
className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
|
|
28
|
-
placeholder: "Price",
|
|
29
|
-
onChange: (e) => {
|
|
30
|
-
a("price", Number(e.target.value)), s && a("currency", s);
|
|
31
|
-
},
|
|
32
|
-
value: i && i > 0 ? i : void 0
|
|
33
|
-
}
|
|
34
|
-
) }),
|
|
35
|
-
/* @__PURE__ */ l.jsxs("div", { className: "mt-5 w-60", children: [
|
|
36
|
-
/* @__PURE__ */ l.jsx("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
37
|
-
/* @__PURE__ */ l.jsx(
|
|
38
|
-
h,
|
|
39
|
-
{
|
|
40
|
-
variant: "default",
|
|
41
|
-
options: o,
|
|
42
|
-
value: r,
|
|
43
|
-
className: "text-black",
|
|
44
|
-
defaultValue: r,
|
|
45
|
-
onChange: (e) => {
|
|
46
|
-
e && (g(e), a("currency", e.value));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ l.jsxs("div", { className: "mt-2 w-60", children: [
|
|
52
|
-
/* @__PURE__ */ l.jsx("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
53
|
-
/* @__PURE__ */ l.jsx(
|
|
54
|
-
h,
|
|
55
|
-
{
|
|
56
|
-
defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
|
|
57
|
-
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
58
|
-
onChange: (e) => {
|
|
59
|
-
e && a("paymentOption", e.value);
|
|
60
|
-
},
|
|
61
|
-
className: "mb-1 h-[38px] w-full",
|
|
62
|
-
isDisabled: x
|
|
63
|
-
}
|
|
64
|
-
)
|
|
65
|
-
] }),
|
|
66
|
-
x && b === "HOLD" && /* @__PURE__ */ l.jsx(v, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
|
|
67
|
-
] }) });
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
P as default
|
|
71
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { U as l, x as s, S as f } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as m, useEffect as x } from "react";
|
|
3
|
-
const h = ({}) => {
|
|
4
|
-
const [n, p] = m(), [u, o] = m(), { data: e } = l.viewer.appBasecamp3.projects.useQuery(), j = l.viewer.appBasecamp3.projectMutation.useMutation();
|
|
5
|
-
return x(
|
|
6
|
-
function() {
|
|
7
|
-
var a, r, i;
|
|
8
|
-
o({
|
|
9
|
-
value: e == null ? void 0 : e.projects.currentProject,
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
-
label: (r = (a = e == null ? void 0 : e.projects) == null ? void 0 : a.find((c) => c.id === (e == null ? void 0 : e.currentProject))) == null ? void 0 : r.name
|
|
12
|
-
}), p(
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
-
(i = e == null ? void 0 : e.projects) == null ? void 0 : i.map((c) => ({
|
|
15
|
-
value: c.id,
|
|
16
|
-
label: c.name
|
|
17
|
-
}))
|
|
18
|
-
);
|
|
19
|
-
},
|
|
20
|
-
[e]
|
|
21
|
-
), /* @__PURE__ */ s.jsxs("div", { className: "mt-2 text-sm", children: [
|
|
22
|
-
/* @__PURE__ */ s.jsxs("div", { className: "flex gap-3", children: [
|
|
23
|
-
/* @__PURE__ */ s.jsx("div", { className: "items-center", children: /* @__PURE__ */ s.jsx("p", { className: "py-2", children: "Link a Basecamp project to this event:" }) }),
|
|
24
|
-
/* @__PURE__ */ s.jsx(
|
|
25
|
-
f,
|
|
26
|
-
{
|
|
27
|
-
placeholder: "Select project",
|
|
28
|
-
options: n,
|
|
29
|
-
isLoading: !n,
|
|
30
|
-
className: "md:min-w-[120px]",
|
|
31
|
-
onChange: (t) => {
|
|
32
|
-
t && (j.mutate({ projectId: t == null ? void 0 : t.value.toString() }), o(t));
|
|
33
|
-
},
|
|
34
|
-
value: u
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ s.jsxs("div", { className: "mt-2", children: [
|
|
39
|
-
"Please note that as of now you can only link ",
|
|
40
|
-
/* @__PURE__ */ s.jsx("span", { className: "italic", children: "one" }),
|
|
41
|
-
" of your projects to cal.com"
|
|
42
|
-
] })
|
|
43
|
-
] });
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
h as default
|
|
47
|
-
};
|