@calcom/atoms 1.1.2 → 1.2.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.
- package/dist/{AddressInput-cAznNQd3.js → AddressInput-_Diya_zo.js} +3 -3
- package/dist/{AlbyPriceComponent-oZ0IVf6c.js → AlbyPriceComponent-fIgFEUXN.js} +19 -19
- package/dist/{PhoneInput-eRYuhuju.js → PhoneInput-MNv3E3Ho.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-TYx-qK4G.js +83374 -0
- package/dist/{index-D-baW2SF.js → index-ghibukoV.js} +1 -1
- package/dist/index-mKRiKaF6.js +1957 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.integration-test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.integration-test.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/CreateEventTypeForm.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -36
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/fonts/26a46d62cd723877-s.woff2 +0 -0
- package/fonts/55c55f0601d81cf3-s.woff2 +0 -0
- package/fonts/581909926a08bbc8-s.woff2 +0 -0
- package/fonts/6d93bde91c0c2823-s.woff2 +0 -0
- package/fonts/90475aac776488b6-s.p.woff2 +0 -0
- package/fonts/97e0cb1ae144a2a9-s.woff2 +0 -0
- package/fonts/a34f9d1faa5f3315-s.p.woff2 +0 -0
- package/fonts/df0a9ae256c0569c-s.woff2 +0 -0
- package/globals.min.css +2 -2
- package/package.json +3 -2
- package/dist/AppCard-vSAp__lv.js +0 -281
- package/dist/AppListCardPlatformWrapper-gpEo1mhs.js +0 -9
- package/dist/AppListCardWebWrapper-2mtvbrZI.js +0 -74
- package/dist/AppSettingsInterface-76krfbgC.js +0 -29
- package/dist/AppSettingsInterface-U3J8XNfT.js +0 -23
- package/dist/AppSettingsInterface-qR8wrA8Z.js +0 -75
- package/dist/DateRangePicker-S8PasnBw.js +0 -74
- package/dist/EventTypeAppCardInterface--cvud7p5.js +0 -34
- package/dist/EventTypeAppCardInterface-3WyRAq4g.js +0 -858
- package/dist/EventTypeAppCardInterface-5GqOLlXa.js +0 -24
- package/dist/EventTypeAppCardInterface-7BjnHZSW.js +0 -42
- package/dist/EventTypeAppCardInterface-9RRfsmxD.js +0 -41
- package/dist/EventTypeAppCardInterface-AqVT1BoP.js +0 -34
- package/dist/EventTypeAppCardInterface-AzUqjRAw.js +0 -32
- package/dist/EventTypeAppCardInterface-CWeqREZU.js +0 -24
- package/dist/EventTypeAppCardInterface-FoNtZTXA.js +0 -39
- package/dist/EventTypeAppCardInterface-GC7AOQgo.js +0 -34
- package/dist/EventTypeAppCardInterface-HQMqzp7c.js +0 -49
- package/dist/EventTypeAppCardInterface-N7WcmdT4.js +0 -34
- package/dist/EventTypeAppCardInterface-R0X4nckV.js +0 -32
- package/dist/EventTypeAppCardInterface-Uu3O27xa.js +0 -34
- package/dist/EventTypeAppCardInterface-V8atUcK-.js +0 -34
- package/dist/EventTypeAppCardInterface-Y07gIvmX.js +0 -31
- package/dist/EventTypeAppCardInterface-Z-LBRQAn.js +0 -51
- package/dist/EventTypeAppCardInterface-aYTZV5EF.js +0 -41
- package/dist/EventTypeAppCardInterface-bEYxRxeM.js +0 -51
- package/dist/EventTypeAppCardInterface-dKaaMNor.js +0 -86
- package/dist/EventTypeAppCardInterface-lguZWNvV.js +0 -24
- package/dist/EventTypeAppCardInterface-p0blDTaQ.js +0 -24
- package/dist/EventTypeAppCardInterface-rppYuGVz.js +0 -33
- package/dist/EventTypeAppCardInterface-tkKsbhWo.js +0 -39
- package/dist/EventTypeAppCardInterface-utvbMc02.js +0 -42
- package/dist/EventTypeAppCardInterface-wXpCgFPS.js +0 -34
- package/dist/EventTypeAppCardInterface-zGyldaa9.js +0 -24
- package/dist/EventTypeAppSettingsInterface-7hS6GTO2.js +0 -48
- package/dist/EventTypeAppSettingsInterface-FQeyEBxu.js +0 -72
- package/dist/EventTypeAppSettingsInterface-HK0lsJ28.js +0 -42
- package/dist/EventTypeAppSettingsInterface-MG2xFbSG.js +0 -23
- package/dist/EventTypeAppSettingsInterface-Ra9cL5JB.js +0 -25
- package/dist/EventTypeAppSettingsInterface-XL4D2Dyv.js +0 -24
- package/dist/EventTypeAppSettingsInterface-ZIUpW8te.js +0 -78
- package/dist/EventTypeAppSettingsInterface-afhCdPkJ.js +0 -79
- package/dist/EventTypeAppSettingsInterface-bA-Dmxj2.js +0 -298
- package/dist/EventTypeAppSettingsInterface-g5jo9GKH.js +0 -43
- package/dist/EventTypeAppSettingsInterface-sazwK3zk.js +0 -120
- package/dist/EventTypeAppSettingsInterface-sbAmbLiK.js +0 -221
- package/dist/EventTypeAppSettingsInterface-ycOpDd2-.js +0 -23
- package/dist/InstallAppButton-0Gg9ocXb.js +0 -14
- package/dist/InstallAppButton-JHaJ7T7H.js +0 -58
- package/dist/InstallAppButton-JN6i4iBH.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/StripePaymentForm-B1BkBzO9.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-GkJhe-oj.js +0 -160851
- package/dist/index-V8Hhry6U.js +0 -518
- package/dist/index-l2YMCxIx.js +0 -30
- package/dist/useIsAppEnabled-oIf6wORY.js +0 -18
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { z as v, y as T, G as _, K as t, W as q, M as L, f as V, S as g } from "./index-GkJhe-oj.js";
|
|
3
|
-
import { useMemo as W, useState as p } from "react";
|
|
4
|
-
import { A as $ } from "./AppCard-vSAp__lv.js";
|
|
5
|
-
import { c as x, i as j, a as C } from "./currencyOptions-kannG2hu.js";
|
|
6
|
-
const U = function({ app: S, eventType: A }) {
|
|
7
|
-
var f, h;
|
|
8
|
-
const i = v.useSearchParams(), d = v.usePathname(), P = W(
|
|
9
|
-
() => `${d}${i ? `?${i.toString()}` : ""}`,
|
|
10
|
-
[d, i]
|
|
11
|
-
), { t: n } = T(), { getAppData: r, setAppData: c } = _(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(x.find((e) => e.value === l)), [w, E] = p(
|
|
12
|
-
j(l) ? C[l] : ""
|
|
13
|
-
), [b, D] = p(N), m = ((f = t) == null ? void 0 : f.find((e) => k === e.value)) || {
|
|
14
|
-
label: t[0].label,
|
|
15
|
-
value: t[0].value
|
|
16
|
-
}, F = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
17
|
-
return /* @__PURE__ */ a(
|
|
18
|
-
$,
|
|
19
|
-
{
|
|
20
|
-
returnTo: q + P,
|
|
21
|
-
app: S,
|
|
22
|
-
switchChecked: b,
|
|
23
|
-
switchOnClick: (e) => {
|
|
24
|
-
D(e);
|
|
25
|
-
},
|
|
26
|
-
description: /* @__PURE__ */ a(o, { children: "Add a mock payment to your events" }),
|
|
27
|
-
children: /* @__PURE__ */ a(o, { children: F ? /* @__PURE__ */ a(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
|
|
28
|
-
/* @__PURE__ */ a("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ a(
|
|
29
|
-
V,
|
|
30
|
-
{
|
|
31
|
-
id: "test-mock-payment-app-price",
|
|
32
|
-
label: "Price",
|
|
33
|
-
labelSrOnly: !0,
|
|
34
|
-
addOnLeading: w,
|
|
35
|
-
addOnSuffix: l,
|
|
36
|
-
step: "0.01",
|
|
37
|
-
min: "0.5",
|
|
38
|
-
type: "number",
|
|
39
|
-
required: !0,
|
|
40
|
-
className: "block w-full rounded-sm pl-2 text-sm",
|
|
41
|
-
placeholder: "Price",
|
|
42
|
-
onChange: (e) => {
|
|
43
|
-
c("price", Number(e.target.value) * 100), s && c("currency", s.value);
|
|
44
|
-
},
|
|
45
|
-
value: y > 0 ? y / 100 : void 0
|
|
46
|
-
}
|
|
47
|
-
) }),
|
|
48
|
-
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
49
|
-
/* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
50
|
-
/* @__PURE__ */ a(
|
|
51
|
-
g,
|
|
52
|
-
{
|
|
53
|
-
id: "test-mock-payment-app-currency-id",
|
|
54
|
-
variant: "default",
|
|
55
|
-
options: x,
|
|
56
|
-
value: s,
|
|
57
|
-
className: "text-black",
|
|
58
|
-
defaultValue: s,
|
|
59
|
-
onChange: (e) => {
|
|
60
|
-
e && (O(e), E(C[e.value]), c("currency", e.value));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
66
|
-
/* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
67
|
-
/* @__PURE__ */ a(
|
|
68
|
-
g,
|
|
69
|
-
{
|
|
70
|
-
defaultValue: m ? { ...m, label: n(m.label) } : { ...t[0], label: n(t[0].label) },
|
|
71
|
-
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
72
|
-
onChange: (e) => {
|
|
73
|
-
e && c("paymentOption", e.value);
|
|
74
|
-
},
|
|
75
|
-
className: "mb-1 h-[38px] w-full",
|
|
76
|
-
isDisabled: !1
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
] })
|
|
80
|
-
] }) })
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
U as default
|
|
86
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { z as d, W as i } from "./index-GkJhe-oj.js";
|
|
3
|
-
import { A as m } from "./AppCard-vSAp__lv.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-oIf6wORY.js";
|
|
5
|
-
const l = function({ app: t, eventType: e }) {
|
|
6
|
-
var a;
|
|
7
|
-
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
|
8
|
-
return /* @__PURE__ */ s(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
12
|
-
app: t,
|
|
13
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
14
|
-
switchOnClick: (o) => {
|
|
15
|
-
r(o);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: n,
|
|
18
|
-
hideAppCardOptions: !0
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
l as default
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { z as d, W as i } from "./index-GkJhe-oj.js";
|
|
3
|
-
import { A as m } from "./AppCard-vSAp__lv.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-oIf6wORY.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,33 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { G as m } from "./index-GkJhe-oj.js";
|
|
3
|
-
import { A as c } from "./AppCard-vSAp__lv.js";
|
|
4
|
-
import { u as l } from "./useIsAppEnabled-oIf6wORY.js";
|
|
5
|
-
import u from "./EventTypeAppSettingsInterface-g5jo9GKH.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,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-GkJhe-oj.js";
|
|
3
|
-
import { useState as P } from "react";
|
|
4
|
-
import { A as v } from "./AppCard-vSAp__lv.js";
|
|
5
|
-
import C from "./EventTypeAppSettingsInterface-afhCdPkJ.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,42 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { z as i, G as f, J as g, y as S, W as b } from "./index-GkJhe-oj.js";
|
|
3
|
-
import { useMemo as v, useState as C } from "react";
|
|
4
|
-
import { A as w } from "./AppCard-vSAp__lv.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-ZIUpW8te.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,34 +0,0 @@
|
|
|
1
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { G as l, f as m } from "./index-GkJhe-oj.js";
|
|
3
|
-
import { A as u } from "./AppCard-vSAp__lv.js";
|
|
4
|
-
import { u as I } from "./useIsAppEnabled-oIf6wORY.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,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { z as d, W as i } from "./index-GkJhe-oj.js";
|
|
3
|
-
import { A as m } from "./AppCard-vSAp__lv.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-oIf6wORY.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,48 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { useState as m, useEffect as v } from "react";
|
|
3
|
-
import { O as p, S as h } from "./index-GkJhe-oj.js";
|
|
4
|
-
const S = ({}) => {
|
|
5
|
-
const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
|
|
6
|
-
return v(
|
|
7
|
-
function() {
|
|
8
|
-
var a, i, l;
|
|
9
|
-
r({
|
|
10
|
-
value: e == null ? void 0 : e.projects.currentProject,
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
-
label: (i = (a = e == null ? void 0 : e.projects) == null ? void 0 : a.find((s) => s.id === (e == null ? void 0 : e.currentProject))) == null ? void 0 : i.name
|
|
13
|
-
}), u(
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
(l = e == null ? void 0 : e.projects) == null ? void 0 : l.map((s) => ({
|
|
16
|
-
value: s.id,
|
|
17
|
-
label: s.name
|
|
18
|
-
}))
|
|
19
|
-
);
|
|
20
|
-
},
|
|
21
|
-
[e]
|
|
22
|
-
), /* @__PURE__ */ o("div", { className: "mt-2 text-sm", children: [
|
|
23
|
-
/* @__PURE__ */ o("div", { className: "flex gap-3", children: [
|
|
24
|
-
/* @__PURE__ */ c("div", { className: "items-center", children: /* @__PURE__ */ c("p", { className: "py-2", children: "Link a Basecamp project to this event:" }) }),
|
|
25
|
-
/* @__PURE__ */ c(
|
|
26
|
-
h,
|
|
27
|
-
{
|
|
28
|
-
placeholder: "Select project",
|
|
29
|
-
options: n,
|
|
30
|
-
isLoading: !n,
|
|
31
|
-
className: "md:min-w-[120px]",
|
|
32
|
-
onChange: (t) => {
|
|
33
|
-
t && (d.mutate({ projectId: t == null ? void 0 : t.value.toString() }), r(t));
|
|
34
|
-
},
|
|
35
|
-
value: f
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ o("div", { className: "mt-2", children: [
|
|
40
|
-
"Please note that as of now you can only link ",
|
|
41
|
-
/* @__PURE__ */ c("span", { className: "italic", children: "one" }),
|
|
42
|
-
" of your projects to cal.com"
|
|
43
|
-
] })
|
|
44
|
-
] });
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
S as default
|
|
48
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as N, useEffect as w } from "react";
|
|
3
|
-
import { y as _, a1 as t, M as g, f as C, Y as P, S as p } from "./index-GkJhe-oj.js";
|
|
4
|
-
const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
5
|
-
eventType: f,
|
|
6
|
-
getAppData: s,
|
|
7
|
-
setAppData: a
|
|
8
|
-
}) => {
|
|
9
|
-
var v, h;
|
|
10
|
-
const { t: n } = _(), i = s("price"), c = s("currency"), [r, S] = N(
|
|
11
|
-
d.find((e) => e.value === c) || d[0]
|
|
12
|
-
), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
|
|
13
|
-
label: t[0].label,
|
|
14
|
-
value: t[0].value
|
|
15
|
-
}, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), O = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
16
|
-
return w(() => {
|
|
17
|
-
!c && m && a("currency", r.value);
|
|
18
|
-
}, [c, r, a, m]), /* @__PURE__ */ l(x, { children: O ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
|
|
19
|
-
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
20
|
-
C,
|
|
21
|
-
{
|
|
22
|
-
label: "Price",
|
|
23
|
-
labelSrOnly: !0,
|
|
24
|
-
addOnLeading: /* @__PURE__ */ l(P, { className: "h-4 w-4" }),
|
|
25
|
-
addOnSuffix: r.unit || r.value,
|
|
26
|
-
type: "number",
|
|
27
|
-
required: !0,
|
|
28
|
-
className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
|
|
29
|
-
placeholder: "Price",
|
|
30
|
-
onChange: (e) => {
|
|
31
|
-
a("price", Number(e.target.value)), c && a("currency", c);
|
|
32
|
-
},
|
|
33
|
-
value: i && i > 0 ? i : void 0
|
|
34
|
-
}
|
|
35
|
-
) }),
|
|
36
|
-
/* @__PURE__ */ o("div", { className: "mt-5 w-60", children: [
|
|
37
|
-
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
38
|
-
/* @__PURE__ */ l(
|
|
39
|
-
p,
|
|
40
|
-
{
|
|
41
|
-
variant: "default",
|
|
42
|
-
options: d,
|
|
43
|
-
value: r,
|
|
44
|
-
className: "text-black",
|
|
45
|
-
defaultValue: r,
|
|
46
|
-
onChange: (e) => {
|
|
47
|
-
e && (S(e), a("currency", e.value));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] }),
|
|
52
|
-
/* @__PURE__ */ o("div", { className: "mt-2 w-60", children: [
|
|
53
|
-
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
54
|
-
/* @__PURE__ */ l(
|
|
55
|
-
p,
|
|
56
|
-
{
|
|
57
|
-
defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
|
|
58
|
-
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
59
|
-
onChange: (e) => {
|
|
60
|
-
e && a("paymentOption", e.value);
|
|
61
|
-
},
|
|
62
|
-
className: "mb-1 h-[38px] w-full",
|
|
63
|
-
isDisabled: y
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
] }),
|
|
67
|
-
y && b === "HOLD" && /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
|
|
68
|
-
] }) });
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
T as default
|
|
72
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as s } from "./index-GkJhe-oj.js";
|
|
3
|
-
const p = ({
|
|
4
|
-
getAppData: a,
|
|
5
|
-
setAppData: t,
|
|
6
|
-
disabled: l,
|
|
7
|
-
slug: r
|
|
8
|
-
}) => {
|
|
9
|
-
const n = a("PLAUSIBLE_URL"), o = a("trackingId");
|
|
10
|
-
return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
11
|
-
/* @__PURE__ */ i(
|
|
12
|
-
s,
|
|
13
|
-
{
|
|
14
|
-
dataTestid: `${r}-url`,
|
|
15
|
-
name: "Plausible URL",
|
|
16
|
-
defaultValue: "https://plausible.io/js/script.js",
|
|
17
|
-
placeholder: "https://plausible.io/js/script.js",
|
|
18
|
-
value: n,
|
|
19
|
-
disabled: l,
|
|
20
|
-
onChange: (e) => {
|
|
21
|
-
t("PLAUSIBLE_URL", e.target.value);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
),
|
|
25
|
-
/* @__PURE__ */ i(
|
|
26
|
-
s,
|
|
27
|
-
{
|
|
28
|
-
dataTestid: `${r}-tracking-id`,
|
|
29
|
-
disabled: l,
|
|
30
|
-
name: "Tracked Domain",
|
|
31
|
-
placeholder: "yourdomain.com",
|
|
32
|
-
value: o,
|
|
33
|
-
onChange: (e) => {
|
|
34
|
-
t("trackingId", e.target.value);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
] });
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
p as default
|
|
42
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as o } from "./index-GkJhe-oj.js";
|
|
3
|
-
const p = ({
|
|
4
|
-
getAppData: t,
|
|
5
|
-
setAppData: e,
|
|
6
|
-
disabled: a
|
|
7
|
-
}) => {
|
|
8
|
-
const n = t("trackingId");
|
|
9
|
-
return /* @__PURE__ */ i(
|
|
10
|
-
o,
|
|
11
|
-
{
|
|
12
|
-
name: "Pixel ID",
|
|
13
|
-
value: n,
|
|
14
|
-
disabled: a,
|
|
15
|
-
onChange: (r) => {
|
|
16
|
-
e("trackingId", r.target.value);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
p as default
|
|
23
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { f as c } from "./index-GkJhe-oj.js";
|
|
3
|
-
const s = ({
|
|
4
|
-
getAppData: t,
|
|
5
|
-
setAppData: e,
|
|
6
|
-
disabled: a,
|
|
7
|
-
slug: n
|
|
8
|
-
}) => {
|
|
9
|
-
const r = t("trackingId");
|
|
10
|
-
return /* @__PURE__ */ o(
|
|
11
|
-
c,
|
|
12
|
-
{
|
|
13
|
-
dataTestid: n,
|
|
14
|
-
name: "Tracking ID",
|
|
15
|
-
value: r,
|
|
16
|
-
disabled: a,
|
|
17
|
-
onChange: (i) => {
|
|
18
|
-
e("trackingId", i.target.value);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
s as default
|
|
25
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as g } from "./index-GkJhe-oj.js";
|
|
3
|
-
const o = ({
|
|
4
|
-
getAppData: t,
|
|
5
|
-
setAppData: a,
|
|
6
|
-
disabled: e
|
|
7
|
-
}) => {
|
|
8
|
-
const n = t("trackingId");
|
|
9
|
-
return /* @__PURE__ */ i(
|
|
10
|
-
g,
|
|
11
|
-
{
|
|
12
|
-
name: "Tracking ID",
|
|
13
|
-
"data-testid": "gtm-tracking-id-input",
|
|
14
|
-
value: n,
|
|
15
|
-
disabled: e,
|
|
16
|
-
onChange: (r) => {
|
|
17
|
-
a("trackingId", r.target.value);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
o as default
|
|
24
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as m, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { useState as o, useEffect as _ } from "react";
|
|
3
|
-
import { c as i, i as k, a as S } from "./currencyOptions-kannG2hu.js";
|
|
4
|
-
import { Q as r, y as E, M as x, f as F, R as T, U as q, S as O } from "./index-GkJhe-oj.js";
|
|
5
|
-
const H = ({
|
|
6
|
-
getAppData: n,
|
|
7
|
-
setAppData: t,
|
|
8
|
-
eventType: d
|
|
9
|
-
}) => {
|
|
10
|
-
var p, h;
|
|
11
|
-
const y = n("price"), a = n("currency") || i[0].value, [s, N] = o(i.find((e) => e.value === a)), [C, P] = o(
|
|
12
|
-
k(a) ? S[a] : ""
|
|
13
|
-
), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
|
|
14
|
-
label: r[0].label,
|
|
15
|
-
value: r[0].value
|
|
16
|
-
}, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), g = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
17
|
-
return _(() => {
|
|
18
|
-
v && (n("currency") || t("currency", i[0].value), n("paymentOption") || t("paymentOption", r[0].value));
|
|
19
|
-
}, []), g ? /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(w, { children: [
|
|
20
|
-
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
21
|
-
F,
|
|
22
|
-
{
|
|
23
|
-
label: "Price",
|
|
24
|
-
labelSrOnly: !0,
|
|
25
|
-
addOnLeading: C,
|
|
26
|
-
addOnSuffix: a,
|
|
27
|
-
step: "0.01",
|
|
28
|
-
min: "0.5",
|
|
29
|
-
type: "number",
|
|
30
|
-
required: !0,
|
|
31
|
-
className: "block w-full rounded-sm pl-2 text-sm",
|
|
32
|
-
placeholder: "Price",
|
|
33
|
-
"data-testid": "paypal-price-input",
|
|
34
|
-
onChange: (e) => {
|
|
35
|
-
t("price", T(Number(e.target.value), a)), s && t("currency", s.value);
|
|
36
|
-
},
|
|
37
|
-
value: y > 0 ? q(y, a) : void 0
|
|
38
|
-
}
|
|
39
|
-
) }),
|
|
40
|
-
/* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
|
|
41
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: c("currency") }),
|
|
42
|
-
/* @__PURE__ */ l(
|
|
43
|
-
O,
|
|
44
|
-
{
|
|
45
|
-
variant: "default",
|
|
46
|
-
"data-testid": "paypal-currency-select",
|
|
47
|
-
options: i,
|
|
48
|
-
value: s,
|
|
49
|
-
className: "text-black",
|
|
50
|
-
defaultValue: s,
|
|
51
|
-
onChange: (e) => {
|
|
52
|
-
e && (N(e), P(S[e.value]), t("currency", e.value));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ m("div", { className: "mt-4 w-60", children: [
|
|
58
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
59
|
-
/* @__PURE__ */ l(
|
|
60
|
-
O,
|
|
61
|
-
{
|
|
62
|
-
"data-testid": "paypal-payment-option-select",
|
|
63
|
-
defaultValue: u ? { ...u, label: c(u.label) } : { ...r[0], label: c(r[0].label) },
|
|
64
|
-
options: r.map((e) => ({ ...e, label: c(e.label) || e.label })),
|
|
65
|
-
onChange: (e) => {
|
|
66
|
-
e && t("paymentOption", e.value);
|
|
67
|
-
},
|
|
68
|
-
className: "mb-1 h-[38px] w-full",
|
|
69
|
-
isDisabled: b
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
] }),
|
|
73
|
-
b && f === "HOLD" && /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
|
|
74
|
-
] }) : null;
|
|
75
|
-
};
|
|
76
|
-
export {
|
|
77
|
-
H as default
|
|
78
|
-
};
|