@calcom/atoms 1.0.96-beta-2 → 1.0.97-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.
- package/dist/{AddressInput-BwaFtJdW.js → AddressInput-qOwBw82l.js} +3 -3
- package/dist/{AlbyPriceComponent-5_IY8XI4.js → AlbyPriceComponent-14WMMqki.js} +19 -19
- package/dist/{PhoneInput-EZYUI6dU.js → PhoneInput-KTVGO9ZB.js} +2 -2
- package/dist/cal-atoms.js +3 -34
- package/dist/cal-atoms.umd.cjs +311 -589
- package/dist/{framer-features-pqh7SjMd.js → framer-features-wa04YMAt.js} +21 -21
- package/dist/index-mBOxto7x.js +1258 -0
- package/dist/index-ufJK1qLx.js +79422 -0
- package/dist/index-uq2VH8T8.js +1957 -0
- package/dist/{index-_1xRkNP6.js → index-yezu2nAJ.js} +1 -1
- package/dist/isSupportedCountry-xN7Xshgi.js +487 -0
- package/dist/packages/lib/invertLogoOnDark.d.ts +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -32
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/AppCard-vvom7JzI.js +0 -162
- package/dist/AppListCardPlatformWrapper-BMbohX9G.js +0 -9
- package/dist/AppListCardWebWrapper-jgSaE2tc.js +0 -74
- package/dist/AppSettingsInterface-GvEAHqgC.js +0 -23
- package/dist/AppSettingsInterface-hahnFvsF.js +0 -29
- package/dist/AppSettingsInterface-rwvU2JZ1.js +0 -75
- package/dist/DateRangePicker-H2MDflCi.js +0 -2401
- package/dist/EventTypeAppCardInterface-12lncOdf.js +0 -34
- package/dist/EventTypeAppCardInterface-27TiN1LB.js +0 -34
- package/dist/EventTypeAppCardInterface-4REsm-ax.js +0 -24
- package/dist/EventTypeAppCardInterface-BIBLDaQW.js +0 -41
- package/dist/EventTypeAppCardInterface-Bxn2VRDe.js +0 -42
- package/dist/EventTypeAppCardInterface-Ia4uQvA6.js +0 -24
- package/dist/EventTypeAppCardInterface-IsxbWtC-.js +0 -86
- package/dist/EventTypeAppCardInterface-MYYfLsWy.js +0 -31
- package/dist/EventTypeAppCardInterface-TvEkNxDI.js +0 -34
- package/dist/EventTypeAppCardInterface-W-C-Vuq4.js +0 -32
- package/dist/EventTypeAppCardInterface-YC7gXugR.js +0 -41
- package/dist/EventTypeAppCardInterface-ZN2mBt9v.js +0 -34
- package/dist/EventTypeAppCardInterface-Ze5KpMAZ.js +0 -24
- package/dist/EventTypeAppCardInterface-ZshqKbPT.js +0 -34
- package/dist/EventTypeAppCardInterface-_8D8Qs9P.js +0 -51
- package/dist/EventTypeAppCardInterface-cXUeW2Wg.js +0 -24
- package/dist/EventTypeAppCardInterface-f4ubwOzR.js +0 -42
- package/dist/EventTypeAppCardInterface-g5WwbLf6.js +0 -39
- package/dist/EventTypeAppCardInterface-iMFMTR_Q.js +0 -24
- package/dist/EventTypeAppCardInterface-kh27UiaS.js +0 -34
- package/dist/EventTypeAppCardInterface-loGF0ZWc.js +0 -452
- package/dist/EventTypeAppCardInterface-mpaqmq1C.js +0 -32
- package/dist/EventTypeAppCardInterface-n2hGNKAo.js +0 -34
- package/dist/EventTypeAppCardInterface-nYtaHSPH.js +0 -49
- package/dist/EventTypeAppCardInterface-qIAbqcW-.js +0 -51
- package/dist/EventTypeAppCardInterface-zTg1f5hR.js +0 -33
- package/dist/EventTypeAppSettingsInterface-2iQLRc2L.js +0 -23
- package/dist/EventTypeAppSettingsInterface-4j95fNdX.js +0 -298
- package/dist/EventTypeAppSettingsInterface-7r6Eayog.js +0 -221
- package/dist/EventTypeAppSettingsInterface-8XJ_he7F.js +0 -25
- package/dist/EventTypeAppSettingsInterface-PHF7Vsmi.js +0 -43
- package/dist/EventTypeAppSettingsInterface-ThYijWt9.js +0 -42
- package/dist/EventTypeAppSettingsInterface-WrZ3-X7V.js +0 -48
- package/dist/EventTypeAppSettingsInterface-eJdqCSck.js +0 -120
- package/dist/EventTypeAppSettingsInterface-hI24Lgxv.js +0 -24
- package/dist/EventTypeAppSettingsInterface-rDoWsnFN.js +0 -23
- package/dist/EventTypeAppSettingsInterface-vOTw0emu.js +0 -72
- package/dist/EventTypeAppSettingsInterface-wRHYYE7a.js +0 -78
- package/dist/InstallAppButton-9T0Dl0KY.js +0 -14
- package/dist/InstallAppButton-J-143AmA.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-qpMMTpVW.js +0 -58
- package/dist/StripePaymentForm-N2YTyBqm.js +0 -1157
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-D4njVTQA.js +0 -13
- package/dist/index-KPOdbfnz.js +0 -28
- package/dist/index-_1f6rhg6.js +0 -130141
- package/dist/index-v9tzGygd.js +0 -626
- package/dist/isSupportedCountry--S1ZKbg0.js +0 -7
- package/dist/useIsAppEnabled-EWMW2qIQ.js +0 -18
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { J as l, k as m } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as u } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u as I } from "./useIsAppEnabled-EWMW2qIQ.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 { J as m } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as c } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
5
|
-
import l from "./EventTypeAppSettingsInterface-rDoWsnFN.js";
|
|
6
|
-
const b = function({ app: t, eventType: e }) {
|
|
7
|
-
var p;
|
|
8
|
-
const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
|
|
9
|
-
return /* @__PURE__ */ a(
|
|
10
|
-
c,
|
|
11
|
-
{
|
|
12
|
-
hideSettingsIcon: !0,
|
|
13
|
-
app: t,
|
|
14
|
-
switchOnClick: (d) => {
|
|
15
|
-
i(d);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: o,
|
|
18
|
-
teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
|
|
19
|
-
children: /* @__PURE__ */ a(
|
|
20
|
-
l,
|
|
21
|
-
{
|
|
22
|
-
eventType: e,
|
|
23
|
-
slug: t.slug,
|
|
24
|
-
disabled: n,
|
|
25
|
-
getAppData: r,
|
|
26
|
-
setAppData: s
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
b as default
|
|
34
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { G as d, W as i } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as m } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
5
|
-
const l = function({ app: t, eventType: e }) {
|
|
6
|
-
var a;
|
|
7
|
-
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
|
8
|
-
return /* @__PURE__ */ s(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
12
|
-
app: t,
|
|
13
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
14
|
-
switchOnClick: (o) => {
|
|
15
|
-
r(o);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: n,
|
|
18
|
-
hideAppCardOptions: !0
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
l as default
|
|
24
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { y as b, G as f, J as y, K as E, W as P } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { useState as C } from "react";
|
|
4
|
-
import { A as g } from "./AppCard-vvom7JzI.js";
|
|
5
|
-
import { u as v } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
6
|
-
import w from "./EventTypeAppSettingsInterface-4j95fNdX.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
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
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-_1f6rhg6.js";
|
|
3
|
-
import { useMemo as v, useState as C } from "react";
|
|
4
|
-
import { A as w } from "./AppCard-vvom7JzI.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-wRHYYE7a.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,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { G as d, W as i } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as m } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
5
|
-
const l = function({ app: t, eventType: e }) {
|
|
6
|
-
var a;
|
|
7
|
-
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
|
8
|
-
return /* @__PURE__ */ s(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
12
|
-
app: t,
|
|
13
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
14
|
-
switchOnClick: (o) => {
|
|
15
|
-
r(o);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: n,
|
|
18
|
-
hideAppCardOptions: !0
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
l as default
|
|
24
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { 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-_1f6rhg6.js";
|
|
3
|
-
import { useMemo as W, useState as p } from "react";
|
|
4
|
-
import { A as $ } from "./AppCard-vvom7JzI.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
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { J as d } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as c } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u as m } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
5
|
-
import l from "./EventTypeAppSettingsInterface-WrZ3-X7V.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 a } from "react/jsx-runtime";
|
|
2
|
-
import { J as m } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as c } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
5
|
-
import l from "./EventTypeAppSettingsInterface-hI24Lgxv.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,32 +0,0 @@
|
|
|
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-_1f6rhg6.js";
|
|
4
|
-
import { A as f } from "./AppCard-vvom7JzI.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
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { y as b, G as f, J as y, K as E, W as C } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { useState as P } from "react";
|
|
4
|
-
import { A as g } from "./AppCard-vvom7JzI.js";
|
|
5
|
-
import { u as v } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
6
|
-
import w from "./EventTypeAppSettingsInterface-eJdqCSck.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 t } from "react/jsx-runtime";
|
|
2
|
-
import { J as l, k as m } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as u } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u as h } from "./useIsAppEnabled-EWMW2qIQ.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,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { G as d, W as i } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as m } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-EWMW2qIQ.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 { J as m } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as c } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
5
|
-
import l from "./EventTypeAppSettingsInterface-ThYijWt9.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,51 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import { J as m, k as p } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u as I } from "./useIsAppEnabled-EWMW2qIQ.js";
|
|
5
|
-
const x = function({ app: a, eventType: s }) {
|
|
6
|
-
var i;
|
|
7
|
-
const { getAppData: r, setAppData: n, disabled: o } = m(), d = r("TRACKING_ID"), l = r("API_HOST"), { enabled: c, updateEnabled: u } = I(a);
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
9
|
-
A,
|
|
10
|
-
{
|
|
11
|
-
hideSettingsIcon: !0,
|
|
12
|
-
app: a,
|
|
13
|
-
switchOnClick: (e) => {
|
|
14
|
-
u(e);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: c,
|
|
17
|
-
teamId: ((i = s.team) == null ? void 0 : i.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
19
|
-
/* @__PURE__ */ t(
|
|
20
|
-
p,
|
|
21
|
-
{
|
|
22
|
-
required: !0,
|
|
23
|
-
disabled: o,
|
|
24
|
-
name: "Tracking ID",
|
|
25
|
-
value: d,
|
|
26
|
-
placeholder: "Enter your Tracking ID",
|
|
27
|
-
onChange: (e) => {
|
|
28
|
-
n("TRACKING_ID", e.target.value);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ t(
|
|
33
|
-
p,
|
|
34
|
-
{
|
|
35
|
-
required: !0,
|
|
36
|
-
disabled: o,
|
|
37
|
-
name: "Api host",
|
|
38
|
-
value: l,
|
|
39
|
-
placeholder: "Enter your Api host url",
|
|
40
|
-
onChange: (e) => {
|
|
41
|
-
n("API_HOST", e.target.value);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] })
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
x as default
|
|
51
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { G as d, W as i } from "./index-_1f6rhg6.js";
|
|
3
|
-
import { A as m } from "./AppCard-vvom7JzI.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-EWMW2qIQ.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,42 +0,0 @@
|
|
|
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-_1f6rhg6.js";
|
|
3
|
-
import { useMemo as v, useState as C } from "react";
|
|
4
|
-
import { A as w } from "./AppCard-vvom7JzI.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-vOTw0emu.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
|
-
};
|