@calcom/atoms 1.0.97-beta-1 → 1.0.97-beta-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddressInput-MxFRI9cW.js → AddressInput-LPJtHhnk.js} +9 -8
- package/dist/{AlbyPriceComponent-B7reGN3c.js → AlbyPriceComponent-VO8iEUWb.js} +53 -52
- package/dist/AppCard-cTyZ7qdO.js +162 -0
- package/dist/AppListCardPlatformWrapper-ErlT9yQV.js +9 -0
- package/dist/{AppListCardWebWrapper-3ZmWWW_L.js → AppListCardWebWrapper-nLRKr-Qu.js} +10 -9
- package/dist/AppSettingsInterface-1iuEhZRw.js +23 -0
- package/dist/AppSettingsInterface-9nYzo3Ef.js +29 -0
- package/dist/AppSettingsInterface-Y7iloRRd.js +75 -0
- package/dist/{DateRangePicker-GTmIREkF.js → DateRangePicker-zh9gM3ld.js} +784 -783
- package/dist/EventTypeAppCardInterface-0tcE4MHz.js +32 -0
- package/dist/EventTypeAppCardInterface-2xzo_8rb.js +453 -0
- package/dist/EventTypeAppCardInterface-3xv7ZK_G.js +41 -0
- package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-4dkcilsD.js} +17 -16
- package/dist/EventTypeAppCardInterface-A7WN14Mn.js +34 -0
- package/dist/EventTypeAppCardInterface-BbJv67UJ.js +49 -0
- package/dist/EventTypeAppCardInterface-D42_2WwA.js +42 -0
- package/dist/EventTypeAppCardInterface-F9zy0_KX.js +24 -0
- package/dist/EventTypeAppCardInterface-LB9yguQb.js +39 -0
- package/dist/EventTypeAppCardInterface-PGX33FFN.js +42 -0
- package/dist/EventTypeAppCardInterface-PaCD78C8.js +33 -0
- package/dist/EventTypeAppCardInterface-QiaQ-GmU.js +51 -0
- package/dist/EventTypeAppCardInterface-S5bK4a_4.js +24 -0
- package/dist/EventTypeAppCardInterface-SXV5NhVT.js +24 -0
- package/dist/EventTypeAppCardInterface-SdCRwS0b.js +34 -0
- package/dist/EventTypeAppCardInterface-TV1GspR-.js +41 -0
- package/dist/EventTypeAppCardInterface-WrBEdjss.js +86 -0
- package/dist/EventTypeAppCardInterface-Xl60vAW7.js +34 -0
- package/dist/EventTypeAppCardInterface-bY6zHj23.js +34 -0
- package/dist/EventTypeAppCardInterface-bpyx9DoB.js +34 -0
- package/dist/EventTypeAppCardInterface-dSD0TA4p.js +34 -0
- package/dist/EventTypeAppCardInterface-hulmgxtc.js +24 -0
- package/dist/EventTypeAppCardInterface-n8fugRqn.js +32 -0
- package/dist/EventTypeAppCardInterface-qqnnC5vq.js +24 -0
- package/dist/EventTypeAppCardInterface-rVMclz_u.js +34 -0
- package/dist/EventTypeAppCardInterface-zXewU-bg.js +31 -0
- package/dist/EventTypeAppSettingsInterface-2oHFXxC0.js +221 -0
- package/dist/{EventTypeAppSettingsInterface-cXn8l171.js → EventTypeAppSettingsInterface-5hQr6WTa.js} +7 -6
- package/dist/{EventTypeAppSettingsInterface-9raltJka.js → EventTypeAppSettingsInterface-CwuQI4XA.js} +39 -38
- package/dist/EventTypeAppSettingsInterface-HGPywPcZ.js +43 -0
- package/dist/EventTypeAppSettingsInterface-MLox-zIr.js +78 -0
- package/dist/EventTypeAppSettingsInterface-azMpYm3v.js +48 -0
- package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-ccBCyO4S.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-jCOnJXVq.js +42 -0
- package/dist/EventTypeAppSettingsInterface-rUp-tPsO.js +72 -0
- package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-sOLaF1pR.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-v8a7XnIr.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-xlYsU6Vi.js} +72 -71
- package/dist/InstallAppButton-34JAPxwK.js +14 -0
- package/dist/{InstallAppButton-Ho1cJkMm.js → InstallAppButton-JXhBVaYJ.js} +8 -8
- package/dist/InstallAppButton-ihX89_K4.js +58 -0
- package/dist/InstallAppButton-zjD9dbE7.js +14 -0
- package/dist/{PhoneInput-DNq9V1s5.js → PhoneInput-saKL4loW.js} +97 -96
- package/dist/{StripePaymentForm-lGjXjqLX.js → StripePaymentForm-dfxxUj2E.js} +100 -99
- package/dist/cal-atoms.js +6 -6
- package/dist/{framer-features--8Hvyv45.js → framer-features-K_TB52kd.js} +11 -11
- package/dist/{index-fsA0kHyy.js → index-81plgMPe.js} +1 -1
- package/dist/{index-cfay3a2W.js → index-IPz9Apiv.js} +1 -1
- package/dist/{index-Bj_kD41n.js → index-engsJK56.js} +108 -107
- package/dist/{index-OYPUcfnB.js → index-ite7gJ1a.js} +2 -2
- package/dist/{index-M6WUZF2M.js → index-ykl8OQ78.js} +66312 -66946
- package/dist/{isSupportedCountry-aizVo7Oo.js → isSupportedCountry-RPoEk3Bi.js} +1 -1
- package/dist/{useIsAppEnabled-OmKRsE8Z.js → useIsAppEnabled-jQTpW-EN.js} +1 -1
- package/globals.min.css +22 -2
- 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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { k as s } from "./index-ykl8OQ78.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
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
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-ykl8OQ78.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
|
+
};
|
package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-sOLaF1pR.js}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { k as o } from "./index-ykl8OQ78.js";
|
|
3
|
+
const p = ({
|
|
3
4
|
getAppData: t,
|
|
4
5
|
setAppData: e,
|
|
5
6
|
disabled: a
|
|
6
7
|
}) => {
|
|
7
8
|
const n = t("trackingId");
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
o,
|
|
10
11
|
{
|
|
11
12
|
name: "Pixel ID",
|
|
12
13
|
value: n,
|
|
@@ -18,5 +19,5 @@ const x = ({
|
|
|
18
19
|
);
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
p as default
|
|
22
23
|
};
|
package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-v8a7XnIr.js}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { k as g } from "./index-ykl8OQ78.js";
|
|
3
|
+
const o = ({
|
|
3
4
|
getAppData: t,
|
|
4
5
|
setAppData: a,
|
|
5
6
|
disabled: e
|
|
6
7
|
}) => {
|
|
7
8
|
const n = t("trackingId");
|
|
8
|
-
return /* @__PURE__ */ i
|
|
9
|
-
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
g,
|
|
10
11
|
{
|
|
11
12
|
name: "Tracking ID",
|
|
12
13
|
"data-testid": "gtm-tracking-id-input",
|
|
@@ -19,5 +20,5 @@ const c = ({
|
|
|
19
20
|
);
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
o as default
|
|
23
24
|
};
|
package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-xlYsU6Vi.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { jsxs as u, Fragment as f, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { aa as d, y as L, ab as i, N as P, k as w, V as T, X as O, S as y, ac as E, ad as x, Z as B, ae as F, af as K } from "./index-ykl8OQ78.js";
|
|
3
|
+
import { useState as z, useEffect as G } from "react";
|
|
4
|
+
const s = [
|
|
4
5
|
{ label: "United States dollar (USD)", value: "usd" },
|
|
5
6
|
{ label: "United Arab Emirates dirham (AED)", value: "aed" },
|
|
6
7
|
{ label: "Afghan afghani (AFN)", value: "afn" },
|
|
@@ -135,151 +136,151 @@ const i = [
|
|
|
135
136
|
{ label: "Yemeni rial (YER)", value: "yer" },
|
|
136
137
|
{ label: "South African rand (ZAR)", value: "zar" },
|
|
137
138
|
{ label: "Zambian kwacha (ZMW)", value: "zmw" }
|
|
138
|
-
],
|
|
139
|
+
], V = ({
|
|
139
140
|
getAppData: r,
|
|
140
141
|
setAppData: e,
|
|
141
|
-
disabled:
|
|
142
|
-
eventType:
|
|
142
|
+
disabled: b,
|
|
143
|
+
eventType: h
|
|
143
144
|
}) => {
|
|
144
|
-
var
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
label:
|
|
148
|
-
value:
|
|
145
|
+
var k;
|
|
146
|
+
const g = r("price"), o = r("currency") || s[0].value, [t, D] = z(
|
|
147
|
+
s.find((a) => a.value === o) || {
|
|
148
|
+
label: s[0].label,
|
|
149
|
+
value: s[0].value
|
|
149
150
|
}
|
|
150
|
-
),
|
|
151
|
+
), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, R = (a, M) => 0 .toLocaleString(a, {
|
|
151
152
|
style: "currency",
|
|
152
|
-
currency:
|
|
153
|
+
currency: M,
|
|
153
154
|
minimumFractionDigits: 0,
|
|
154
155
|
maximumFractionDigits: 0
|
|
155
156
|
}).replace(/\d/g, "").trim();
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}, [
|
|
159
|
-
const
|
|
157
|
+
G(() => {
|
|
158
|
+
m && (r("currency") || e("currency", s[0].value), r("paymentOption") || e("paymentOption", d[0].value)), r("refundPolicy") || e("refundPolicy", i.NEVER);
|
|
159
|
+
}, [m, r, e]);
|
|
160
|
+
const C = [
|
|
160
161
|
{ value: 0, label: n("business_days") },
|
|
161
162
|
{ value: 1, label: n("calendar_days") }
|
|
162
163
|
];
|
|
163
|
-
return /* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
!
|
|
166
|
-
/* @__PURE__ */ l
|
|
167
|
-
|
|
164
|
+
return /* @__PURE__ */ u(f, { children: [
|
|
165
|
+
N && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }),
|
|
166
|
+
!N && m && /* @__PURE__ */ u(f, { children: [
|
|
167
|
+
/* @__PURE__ */ l("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ l(
|
|
168
|
+
w,
|
|
168
169
|
{
|
|
169
170
|
"data-testid": "stripe-price-input",
|
|
170
171
|
label: n("price"),
|
|
171
172
|
className: "h-[38px]",
|
|
172
|
-
addOnLeading: /* @__PURE__ */ l
|
|
173
|
-
addOnSuffix:
|
|
173
|
+
addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? R("en", t.value) : "" }),
|
|
174
|
+
addOnSuffix: o.toUpperCase(),
|
|
174
175
|
addOnClassname: "h-[38px]",
|
|
175
176
|
step: "0.01",
|
|
176
177
|
min: "0.5",
|
|
177
178
|
type: "number",
|
|
178
179
|
required: !0,
|
|
179
180
|
placeholder: "Price",
|
|
180
|
-
disabled:
|
|
181
|
+
disabled: b,
|
|
181
182
|
onChange: (a) => {
|
|
182
|
-
e("price",
|
|
183
|
+
e("price", T(Number(a.target.value), o));
|
|
183
184
|
},
|
|
184
|
-
value:
|
|
185
|
+
value: g > 0 ? O(g, o) : void 0
|
|
185
186
|
}
|
|
186
187
|
) }),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */ l
|
|
189
|
-
/* @__PURE__ */ l
|
|
190
|
-
|
|
188
|
+
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
189
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
190
|
+
/* @__PURE__ */ l(
|
|
191
|
+
y,
|
|
191
192
|
{
|
|
192
193
|
"data-testid": "stripe-currency-select",
|
|
193
194
|
variant: "default",
|
|
194
|
-
options:
|
|
195
|
+
options: s,
|
|
195
196
|
innerClassNames: {
|
|
196
197
|
input: "stripe-currency-input"
|
|
197
198
|
},
|
|
198
|
-
value:
|
|
199
|
+
value: t,
|
|
199
200
|
className: "text-black",
|
|
200
|
-
defaultValue:
|
|
201
|
+
defaultValue: t,
|
|
201
202
|
onChange: (a) => {
|
|
202
|
-
a && (
|
|
203
|
+
a && (D(a), e("currency", a.value));
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
)
|
|
206
207
|
] }),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */ l
|
|
209
|
-
/* @__PURE__ */ l
|
|
210
|
-
|
|
208
|
+
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
209
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("payment_option") }),
|
|
210
|
+
/* @__PURE__ */ l(
|
|
211
|
+
y,
|
|
211
212
|
{
|
|
212
213
|
"data-testid": "stripe-payment-option-select",
|
|
213
|
-
defaultValue:
|
|
214
|
-
options:
|
|
214
|
+
defaultValue: c ? { ...c, label: n(c.label) } : { ...d[0], label: n(d[0].label) },
|
|
215
|
+
options: d.map((a) => ({ ...a, label: n(a.label) || a.label })),
|
|
215
216
|
onChange: (a) => {
|
|
216
|
-
a && (e("paymentOption", a.value), a.value === "HOLD" && (e("refundPolicy",
|
|
217
|
+
a && (e("paymentOption", a.value), a.value === "HOLD" && (e("refundPolicy", i.NEVER), e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0)));
|
|
217
218
|
},
|
|
218
219
|
className: "mb-1 h-[38px] w-full",
|
|
219
|
-
isDisabled:
|
|
220
|
+
isDisabled: S || b
|
|
220
221
|
}
|
|
221
222
|
)
|
|
222
223
|
] }),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
/* @__PURE__ */ l
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
|
|
224
|
+
S && v === "HOLD" && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") }),
|
|
225
|
+
v !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
|
|
226
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", children: n("refund_policy") }),
|
|
227
|
+
/* @__PURE__ */ u(
|
|
228
|
+
E,
|
|
228
229
|
{
|
|
229
|
-
disabled:
|
|
230
|
+
disabled: b || v === "HOLD",
|
|
230
231
|
defaultValue: "never",
|
|
231
232
|
className: "flex flex-col space-y-2",
|
|
232
233
|
value: r("refundPolicy"),
|
|
233
234
|
onValueChange: (a) => {
|
|
234
|
-
e("refundPolicy", a), a !==
|
|
235
|
+
e("refundPolicy", a), a !== i.DAYS && (e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0));
|
|
235
236
|
},
|
|
236
237
|
children: [
|
|
237
|
-
/* @__PURE__ */ l
|
|
238
|
-
/* @__PURE__ */ l
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */ l
|
|
241
|
-
|
|
238
|
+
/* @__PURE__ */ l(x, { className: "w-fit", value: i.ALWAYS, label: n("always"), id: "always" }),
|
|
239
|
+
/* @__PURE__ */ l(x, { className: "w-fit", value: i.NEVER, label: n("never"), id: "never" }),
|
|
240
|
+
/* @__PURE__ */ u("div", { className: B("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
|
|
241
|
+
/* @__PURE__ */ l(
|
|
242
|
+
F,
|
|
242
243
|
{
|
|
243
244
|
className: "min-w-4 bg-default border-default flex h-4 w-4 cursor-pointer items-center rounded-full border focus:border-2 focus:outline-none ltr:mr-2 rtl:ml-2",
|
|
244
245
|
value: "days",
|
|
245
246
|
id: "days",
|
|
246
|
-
children: /* @__PURE__ */ l
|
|
247
|
+
children: /* @__PURE__ */ l(K, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
|
|
247
248
|
}
|
|
248
249
|
),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ u("div", { className: "flex items-center", children: [
|
|
251
|
+
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
251
252
|
" ",
|
|
252
253
|
n("if_cancelled")
|
|
253
254
|
] }),
|
|
254
|
-
/* @__PURE__ */ l
|
|
255
|
-
|
|
255
|
+
/* @__PURE__ */ l(
|
|
256
|
+
w,
|
|
256
257
|
{
|
|
257
258
|
labelSrOnly: !0,
|
|
258
259
|
type: "number",
|
|
259
|
-
className:
|
|
260
|
+
className: B(
|
|
260
261
|
"border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
|
|
261
262
|
),
|
|
262
263
|
placeholder: "2",
|
|
263
|
-
disabled:
|
|
264
|
+
disabled: b,
|
|
264
265
|
min: 0,
|
|
265
266
|
defaultValue: r("refundDaysCount"),
|
|
266
|
-
required: r("refundPolicy") ===
|
|
267
|
+
required: r("refundPolicy") === i.DAYS,
|
|
267
268
|
value: r("refundDaysCount") ?? "",
|
|
268
269
|
onChange: (a) => e("refundDaysCount", parseInt(a.currentTarget.value))
|
|
269
270
|
}
|
|
270
271
|
),
|
|
271
|
-
/* @__PURE__ */ l
|
|
272
|
-
|
|
272
|
+
/* @__PURE__ */ l(
|
|
273
|
+
y,
|
|
273
274
|
{
|
|
274
|
-
options:
|
|
275
|
+
options: C,
|
|
275
276
|
isSearchable: !1,
|
|
276
|
-
isDisabled:
|
|
277
|
+
isDisabled: b,
|
|
277
278
|
onChange: (a) => e("refundCountCalendarDays", (a == null ? void 0 : a.value) === 1),
|
|
278
|
-
value:
|
|
279
|
-
defaultValue:
|
|
279
|
+
value: p(),
|
|
280
|
+
defaultValue: p()
|
|
280
281
|
}
|
|
281
282
|
),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
283
284
|
" ",
|
|
284
285
|
n("before")
|
|
285
286
|
] })
|
|
@@ -293,5 +294,5 @@ const i = [
|
|
|
293
294
|
] });
|
|
294
295
|
};
|
|
295
296
|
export {
|
|
296
|
-
|
|
297
|
+
V as default
|
|
297
298
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { x as o } from "./index-ykl8OQ78.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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as i, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as s } from "react";
|
|
3
|
-
function
|
|
4
|
-
const
|
|
3
|
+
function f(n) {
|
|
4
|
+
const o = async () => {
|
|
5
5
|
const t = await fetch("/api/integrations/vital/token", {
|
|
6
6
|
method: "POST",
|
|
7
7
|
body: JSON.stringify({}),
|
|
@@ -12,18 +12,18 @@ function c(o) {
|
|
|
12
12
|
if (!t.ok)
|
|
13
13
|
throw new Error("Failed to get link token");
|
|
14
14
|
return await t.json();
|
|
15
|
-
}, [
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
}, [r, e] = s(!1);
|
|
16
|
+
return /* @__PURE__ */ i(a, { children: n.render({
|
|
17
17
|
onClick() {
|
|
18
|
-
e(!0),
|
|
18
|
+
e(!0), o().then((t) => {
|
|
19
19
|
e(!1), window.open(`${t.url}&token=${t.token}`, "_self");
|
|
20
20
|
}).catch((t) => {
|
|
21
21
|
e(!1), console.error(t);
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
|
-
loading:
|
|
24
|
+
loading: r
|
|
25
25
|
}) });
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
f as default
|
|
29
29
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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-ykl8OQ78.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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { x as o } from "./index-ykl8OQ78.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
|
+
};
|