@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,43 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as f } from "react";
|
|
3
|
-
import { y as p, k as h, Y as v, Z as x } from "./index-_1f6rhg6.js";
|
|
4
|
-
const N = ({ eventType: n, disabled: d }) => {
|
|
5
|
-
const { t: i } = p(), [r, c] = f(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
|
|
6
|
-
function s({ size: a, data: u }) {
|
|
7
|
-
const l = `https://api.qrserver.com/v1/create-qr-code/?size=${a}&data=${u}`;
|
|
8
|
-
return /* @__PURE__ */ e(v, { content: t, children: /* @__PURE__ */ e("a", { download: !0, href: l, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e(
|
|
9
|
-
"img",
|
|
10
|
-
{
|
|
11
|
-
className: x(
|
|
12
|
-
"hover:bg-muted border-default border transition hover:shadow-sm",
|
|
13
|
-
a >= 256 && "min-h-32"
|
|
14
|
-
),
|
|
15
|
-
style: { padding: a / 16, borderRadius: a / 20 },
|
|
16
|
-
width: a,
|
|
17
|
-
src: l,
|
|
18
|
-
alt: t
|
|
19
|
-
}
|
|
20
|
-
) }) });
|
|
21
|
-
}
|
|
22
|
-
return /* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-5 text-sm", children: [
|
|
23
|
-
/* @__PURE__ */ e("div", { className: "flex w-full", children: /* @__PURE__ */ e(
|
|
24
|
-
h,
|
|
25
|
-
{
|
|
26
|
-
name: "hello",
|
|
27
|
-
disabled: d,
|
|
28
|
-
value: r,
|
|
29
|
-
onChange: (a) => c(a.target.value),
|
|
30
|
-
label: i("additional_url_parameters"),
|
|
31
|
-
containerClassName: "w-full"
|
|
32
|
-
}
|
|
33
|
-
) }),
|
|
34
|
-
/* @__PURE__ */ o("div", { className: "max-w-60 flex items-baseline gap-2", children: [
|
|
35
|
-
/* @__PURE__ */ e(s, { size: 256, data: t }),
|
|
36
|
-
/* @__PURE__ */ e(s, { size: 128, data: t }),
|
|
37
|
-
/* @__PURE__ */ e(s, { size: 64, data: t })
|
|
38
|
-
] })
|
|
39
|
-
] });
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
N as default
|
|
43
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { k as s } from "./index-_1f6rhg6.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,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 { R as p, S as h } from "./index-_1f6rhg6.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,120 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as k, useEffect as P } from "react";
|
|
3
|
-
import { y as x, N as p, k as w, S as K } from "./index-_1f6rhg6.js";
|
|
4
|
-
const h = [
|
|
5
|
-
"BIF",
|
|
6
|
-
"CLP",
|
|
7
|
-
"DJF",
|
|
8
|
-
"GNF",
|
|
9
|
-
"JPY",
|
|
10
|
-
"KMF",
|
|
11
|
-
"KRW",
|
|
12
|
-
"MGA",
|
|
13
|
-
"PYG",
|
|
14
|
-
"RWF",
|
|
15
|
-
"UGX",
|
|
16
|
-
"VND",
|
|
17
|
-
"VUV",
|
|
18
|
-
"XAF",
|
|
19
|
-
"XOF",
|
|
20
|
-
"XPF"
|
|
21
|
-
], U = (e, a) => h.includes(a.toUpperCase()) ? e : Math.round(e * 100), _ = (e, a) => h.includes(a.toUpperCase()) ? e : e / 100, V = [
|
|
22
|
-
{
|
|
23
|
-
label: "on_booking_option",
|
|
24
|
-
value: "ON_BOOKING"
|
|
25
|
-
}
|
|
26
|
-
], r = [
|
|
27
|
-
{ label: "United States dollar (USD)", value: "usd" },
|
|
28
|
-
{ label: "Singapore dollar (SGD)", value: "sgd" },
|
|
29
|
-
{ label: "Malaysian ringgit (MYR)", value: "myr" },
|
|
30
|
-
{ label: "Indonesian rupiah (IDR)", value: "idr" },
|
|
31
|
-
{ label: "Japanese yen (JPY)", value: "jpy" },
|
|
32
|
-
{ label: "Hong Kong dollar (HKD)", value: "hkd" },
|
|
33
|
-
{ label: "Thai baht (THB)", value: "thb" },
|
|
34
|
-
{ label: "Australian dollar (AUD)", value: "aud" },
|
|
35
|
-
{ label: "New Zealand dollar (NZD)", value: "nzd" },
|
|
36
|
-
{ label: "British pound sterling (GBP)", value: "gbp" },
|
|
37
|
-
{ label: "Philippine peso (PHP)", value: "php" },
|
|
38
|
-
{ label: "Indian rupee (INR)", value: "inr" },
|
|
39
|
-
{ label: "Chinese yuan (CNY)", value: "cny" },
|
|
40
|
-
{ label: "Euro (EUR)", value: "eur" },
|
|
41
|
-
{ label: "Swiss franc (CHF)", value: "chf" },
|
|
42
|
-
{ label: "Danish krone (DKK)", value: "dkk" },
|
|
43
|
-
{ label: "Swedish krona (SEK)", value: "sek" },
|
|
44
|
-
{ label: "Norwegian krone (NOK)", value: "nok" },
|
|
45
|
-
{ label: "Vietnamese đồng (VND)", value: "vnd" },
|
|
46
|
-
{ label: "Canadian dollar (CAD)", value: "cad" },
|
|
47
|
-
{ label: "South Korean won (KRW)", value: "krw" }
|
|
48
|
-
], R = ({
|
|
49
|
-
getAppData: e,
|
|
50
|
-
setAppData: a,
|
|
51
|
-
disabled: f,
|
|
52
|
-
eventType: d
|
|
53
|
-
}) => {
|
|
54
|
-
var b;
|
|
55
|
-
const m = e("price"), t = e("currency") || r[0].value, [i, g] = k(
|
|
56
|
-
r.find((l) => l.value === t) || {
|
|
57
|
-
label: r[0].label,
|
|
58
|
-
value: r[0].value
|
|
59
|
-
}
|
|
60
|
-
), N = e("paymentOption"), c = e("enabled"), { t: s } = x(), v = ((b = d.recurringEvent) == null ? void 0 : b.count) !== void 0, S = !!d.seatsPerTimeSlot, C = (l, y) => 0 .toLocaleString(l, {
|
|
61
|
-
style: "currency",
|
|
62
|
-
currency: y,
|
|
63
|
-
minimumFractionDigits: 0,
|
|
64
|
-
maximumFractionDigits: 0
|
|
65
|
-
}).replace(/\d/g, "").trim();
|
|
66
|
-
P(() => {
|
|
67
|
-
c && (e("currency") || a("currency", r[0].value), e("paymentOption") || a("paymentOption", V[0].value));
|
|
68
|
-
}, [c, e, a]);
|
|
69
|
-
const F = (l) => {
|
|
70
|
-
const O = Math.floor(l).toString();
|
|
71
|
-
return parseInt(O);
|
|
72
|
-
};
|
|
73
|
-
return /* @__PURE__ */ u(o, { children: [
|
|
74
|
-
v && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("warning_recurring_event_payment") }),
|
|
75
|
-
!v && c && /* @__PURE__ */ u(o, { children: [
|
|
76
|
-
/* @__PURE__ */ n("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ n(
|
|
77
|
-
w,
|
|
78
|
-
{
|
|
79
|
-
"data-testid": "stripe-price-input",
|
|
80
|
-
label: s("price"),
|
|
81
|
-
className: "h-[38px]",
|
|
82
|
-
addOnLeading: /* @__PURE__ */ n(o, { children: i.value ? C("en", i.value) : "" }),
|
|
83
|
-
addOnSuffix: t.toUpperCase(),
|
|
84
|
-
addOnClassname: "h-[38px]",
|
|
85
|
-
step: "1",
|
|
86
|
-
min: "1",
|
|
87
|
-
type: "number",
|
|
88
|
-
required: !0,
|
|
89
|
-
placeholder: "Price",
|
|
90
|
-
disabled: f,
|
|
91
|
-
onChange: (l) => {
|
|
92
|
-
a("price", U(Number(l.target.value), t));
|
|
93
|
-
},
|
|
94
|
-
value: m > 0 ? F(_(m, t)) : void 0
|
|
95
|
-
}
|
|
96
|
-
) }),
|
|
97
|
-
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
98
|
-
/* @__PURE__ */ n("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: s("currency") }),
|
|
99
|
-
/* @__PURE__ */ n(
|
|
100
|
-
K,
|
|
101
|
-
{
|
|
102
|
-
"data-testid": "stripe-currency-select",
|
|
103
|
-
variant: "default",
|
|
104
|
-
options: r,
|
|
105
|
-
value: i,
|
|
106
|
-
className: "text-black",
|
|
107
|
-
defaultValue: i,
|
|
108
|
-
onChange: (l) => {
|
|
109
|
-
l && (g(l), a("currency", l.value));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
] }),
|
|
114
|
-
S && N === "HOLD" && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("seats_and_no_show_fee_error") })
|
|
115
|
-
] })
|
|
116
|
-
] });
|
|
117
|
-
};
|
|
118
|
-
export {
|
|
119
|
-
R as default
|
|
120
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { k as g } from "./index-_1f6rhg6.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,23 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { k as o } from "./index-_1f6rhg6.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: "Tracking 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,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 _, a9 as t, N as g, k as C, a5 as P, S as p } from "./index-_1f6rhg6.js";
|
|
4
|
-
const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
5
|
-
eventType: b,
|
|
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
|
-
), f = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => f === e.value)) || {
|
|
13
|
-
label: t[0].label,
|
|
14
|
-
value: t[0].value
|
|
15
|
-
}, y = !!b.seatsPerTimeSlot, [m] = N(s("enabled")), O = ((h = b.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 && f === "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,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 { U as r, y as E, N as x, k as F, V as T, X as V, S as N } from "./index-_1f6rhg6.js";
|
|
5
|
-
const I = ({
|
|
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, O] = 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, q] = 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 ? V(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
|
-
N,
|
|
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 && (O(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
|
-
N,
|
|
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
|
-
I as default
|
|
78
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { x as o } from "./index-_1f6rhg6.js";
|
|
3
|
-
function d(t) {
|
|
4
|
-
const n = o("exchange2013_calendar");
|
|
5
|
-
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
|
-
onClick() {
|
|
7
|
-
n.mutate("");
|
|
8
|
-
},
|
|
9
|
-
loading: n.isPending
|
|
10
|
-
}) });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
d as default
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { x as o } from "./index-_1f6rhg6.js";
|
|
3
|
-
function d(t) {
|
|
4
|
-
const n = o("exchange2016_calendar");
|
|
5
|
-
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
|
-
onClick() {
|
|
7
|
-
n.mutate("");
|
|
8
|
-
},
|
|
9
|
-
loading: n.isPending
|
|
10
|
-
}) });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
d as default
|
|
14
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as i, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as s } from "react";
|
|
3
|
-
function f(n) {
|
|
4
|
-
const o = async () => {
|
|
5
|
-
const t = await fetch("/api/integrations/vital/token", {
|
|
6
|
-
method: "POST",
|
|
7
|
-
body: JSON.stringify({}),
|
|
8
|
-
headers: {
|
|
9
|
-
"Content-Type": "application/json"
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
if (!t.ok)
|
|
13
|
-
throw new Error("Failed to get link token");
|
|
14
|
-
return await t.json();
|
|
15
|
-
}, [r, e] = s(!1);
|
|
16
|
-
return /* @__PURE__ */ i(a, { children: n.render({
|
|
17
|
-
onClick() {
|
|
18
|
-
e(!0), o().then((t) => {
|
|
19
|
-
e(!1), window.open(`${t.url}&token=${t.token}`, "_self");
|
|
20
|
-
}).catch((t) => {
|
|
21
|
-
e(!1), console.error(t);
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
loading: r
|
|
25
|
-
}) });
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
f as default
|
|
29
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, Fragment as l, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { useState as p } from "react";
|
|
3
|
-
import { x as d, at as E, W as g } from "./index-_1f6rhg6.js";
|
|
4
|
-
var s = /* @__PURE__ */ ((n) => (n.ACCOUNTS_STEP = "accounts", n.EVENT_TYPES_STEP = "event-types", n.CONFIGURE_STEP = "configure", n))(s || {}), i = function(n) {
|
|
5
|
-
switch (typeof n) {
|
|
6
|
-
case "string":
|
|
7
|
-
return n;
|
|
8
|
-
case "boolean":
|
|
9
|
-
return n ? "true" : "false";
|
|
10
|
-
case "number":
|
|
11
|
-
return isFinite(n) ? n : "";
|
|
12
|
-
default:
|
|
13
|
-
return "";
|
|
14
|
-
}
|
|
15
|
-
}, y = function(n, t, e, o) {
|
|
16
|
-
return t = t || "&", e = e || "=", n === null && (n = void 0), typeof n == "object" ? Object.keys(n).map(function(r) {
|
|
17
|
-
var a = encodeURIComponent(i(r)) + e;
|
|
18
|
-
return Array.isArray(n[r]) ? n[r].map(function(c) {
|
|
19
|
-
return a + encodeURIComponent(i(c));
|
|
20
|
-
}).join(t) : a + encodeURIComponent(i(n[r]));
|
|
21
|
-
}).filter(Boolean).join(t) : o ? encodeURIComponent(i(o)) + e + encodeURIComponent(i(n)) : "";
|
|
22
|
-
}, u;
|
|
23
|
-
u = y;
|
|
24
|
-
const C = ({
|
|
25
|
-
slug: n,
|
|
26
|
-
step: t,
|
|
27
|
-
teamId: e
|
|
28
|
-
}) => {
|
|
29
|
-
const o = { slug: n };
|
|
30
|
-
e && (o.teamId = e);
|
|
31
|
-
const r = u(o);
|
|
32
|
-
return `/apps/installation/${t}?${r}`;
|
|
33
|
-
};
|
|
34
|
-
function I(n) {
|
|
35
|
-
const [t, e] = p(!1), o = d(null), r = () => {
|
|
36
|
-
o.mutate({
|
|
37
|
-
type: "office365_video",
|
|
38
|
-
variant: "conferencing",
|
|
39
|
-
slug: "msteams",
|
|
40
|
-
returnTo: g + C({
|
|
41
|
-
slug: "msteams",
|
|
42
|
-
step: s.EVENT_TYPES_STEP
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ f(l, { children: [
|
|
47
|
-
n.render({
|
|
48
|
-
onClick() {
|
|
49
|
-
e(!0);
|
|
50
|
-
},
|
|
51
|
-
disabled: t
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ m(E, { open: t, onOpenChange: e, handleSubmit: r })
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
I as default
|
|
58
|
-
};
|