@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,32 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { J as d } from "./index-ykl8OQ78.js";
|
|
3
|
+
import { A as m } from "./AppCard-cTyZ7qdO.js";
|
|
4
|
+
import { u as c } from "./useIsAppEnabled-jQTpW-EN.js";
|
|
5
|
+
import u from "./EventTypeAppSettingsInterface-sOLaF1pR.js";
|
|
6
|
+
const E = function({ app: t, eventType: e }) {
|
|
7
|
+
var p;
|
|
8
|
+
const { getAppData: r, setAppData: s, disabled: n } = d(), { enabled: o, updateEnabled: i } = c(t);
|
|
9
|
+
return /* @__PURE__ */ a(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
hideSettingsIcon: !0,
|
|
13
|
+
app: t,
|
|
14
|
+
switchOnClick: i,
|
|
15
|
+
switchChecked: o,
|
|
16
|
+
teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
|
|
17
|
+
children: /* @__PURE__ */ a(
|
|
18
|
+
u,
|
|
19
|
+
{
|
|
20
|
+
eventType: e,
|
|
21
|
+
slug: t.slug,
|
|
22
|
+
disabled: n,
|
|
23
|
+
getAppData: r,
|
|
24
|
+
setAppData: s
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
E as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { jsx as n, jsxs as l, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { G as ce, J as de, _ as c, y as re, $ as v, a0 as _, a1 as U, W as se, S as m, w as d, I as h, z as f, a2 as M, a3 as he, N as ue } from "./index-ykl8OQ78.js";
|
|
3
|
+
import { useState as g } from "react";
|
|
4
|
+
import { A as ve } from "./AppCard-cTyZ7qdO.js";
|
|
5
|
+
import { u as me } from "./useIsAppEnabled-jQTpW-EN.js";
|
|
6
|
+
const ke = function({ app: W, eventType: R }) {
|
|
7
|
+
var P;
|
|
8
|
+
const G = ce.usePathname(), { getAppData: o, setAppData: t, disabled: pe } = de(), { enabled: K, updateEnabled: V } = me(W), D = o("roundRobinLeadSkip"), Y = o("roundRobinSkipCheckRecordOn") ?? c.CONTACT, z = o("ifFreeEmailDomainSkipOwnerCheck") ?? !1, $ = o("skipContactCreation"), H = o("createLeadIfAccountNull"), J = o("createNewContactUnderAccount"), F = o("createEventOn") ?? c.CONTACT, B = o("onBookingWriteToEventObject") ?? !1, p = o("onBookingWriteToEventObjectMap") ?? {}, X = o("createEventOnLeadCheckForContact") ?? !1, L = o("onBookingChangeRecordOwner") ?? !1, q = o("onBookingChangeRecordOwnerName") ?? [], y = o("sendNoShowAttendeeData") ?? !1, Q = o("sendNoShowAttendeeDataField") ?? "", j = o("onBookingWriteToRecord") ?? !1, r = o("onBookingWriteToRecordFields") ?? {}, Z = o("ignoreGuests") ?? !1, { t: a } = re(), k = [
|
|
9
|
+
{ label: a("contact"), value: c.CONTACT },
|
|
10
|
+
{ label: a("salesforce_lead"), value: c.LEAD },
|
|
11
|
+
{ label: a("salesforce_contact_under_account"), value: c.ACCOUNT }
|
|
12
|
+
], [b, ee] = g(
|
|
13
|
+
k.find((e) => e.value === F) ?? k[0]
|
|
14
|
+
), T = [
|
|
15
|
+
{ label: a("text"), value: v.TEXT },
|
|
16
|
+
{ label: a("date"), value: v.DATE },
|
|
17
|
+
{ label: a("phone").charAt(0).toUpperCase() + a("phone").slice(1), value: v.PHONE },
|
|
18
|
+
{ label: a("custom"), value: v.CUSTOM },
|
|
19
|
+
{ label: a("picklist"), value: v.PICKLIST }
|
|
20
|
+
], [O, ne] = g(T[0]), N = [
|
|
21
|
+
{ label: a("on_every_booking"), value: _.EVERY_BOOKING },
|
|
22
|
+
{ label: a("only_if_field_is_empty"), value: _.FIELD_EMPTY }
|
|
23
|
+
], [ae, le] = g(N[0]), w = [
|
|
24
|
+
{ label: a("booking_start_date"), value: U.BOOKING_START_DATE },
|
|
25
|
+
{ label: a("booking_created_date"), value: U.BOOKING_CREATED_DATE }
|
|
26
|
+
], [I, te] = g(w[0]), [i, C] = g({
|
|
27
|
+
field: "",
|
|
28
|
+
fieldType: O.value,
|
|
29
|
+
value: "",
|
|
30
|
+
whenToWrite: _.FIELD_EMPTY
|
|
31
|
+
}), E = [
|
|
32
|
+
{ label: a("contact"), value: c.CONTACT },
|
|
33
|
+
{ label: a("salesforce_lead"), value: c.LEAD },
|
|
34
|
+
{ label: a("account"), value: c.ACCOUNT }
|
|
35
|
+
], [oe, ie] = g(
|
|
36
|
+
E.find((e) => e.value === Y) ?? E[0]
|
|
37
|
+
), [s, A] = g({
|
|
38
|
+
field: "",
|
|
39
|
+
value: ""
|
|
40
|
+
}), x = () => /* @__PURE__ */ n(
|
|
41
|
+
d,
|
|
42
|
+
{
|
|
43
|
+
label: a("salesforce_create_new_contact_under_account"),
|
|
44
|
+
labelOnLeading: !0,
|
|
45
|
+
checked: J,
|
|
46
|
+
onCheckedChange: (e) => {
|
|
47
|
+
t("createNewContactUnderAccount", e);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
return /* @__PURE__ */ n(
|
|
52
|
+
ve,
|
|
53
|
+
{
|
|
54
|
+
returnTo: `${se}${G}?tabName=apps`,
|
|
55
|
+
app: W,
|
|
56
|
+
teamId: ((P = R.team) == null ? void 0 : P.id) || void 0,
|
|
57
|
+
switchOnClick: (e) => {
|
|
58
|
+
V(e);
|
|
59
|
+
},
|
|
60
|
+
switchChecked: K,
|
|
61
|
+
hideSettingsIcon: !0,
|
|
62
|
+
children: /* @__PURE__ */ l(S, { children: [
|
|
63
|
+
/* @__PURE__ */ l("div", { className: "mb-4 ml-2", children: [
|
|
64
|
+
/* @__PURE__ */ n("label", { className: "text-emphasis mb-2 align-text-top text-sm font-medium", children: a("salesforce_create_record_as") }),
|
|
65
|
+
/* @__PURE__ */ n(
|
|
66
|
+
m,
|
|
67
|
+
{
|
|
68
|
+
className: "mt-2 w-60",
|
|
69
|
+
options: k,
|
|
70
|
+
value: b,
|
|
71
|
+
onChange: (e) => {
|
|
72
|
+
e && (ee(e), t("createEventOn", e.value));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ n("div", { className: "mb-4", children: /* @__PURE__ */ n(
|
|
78
|
+
d,
|
|
79
|
+
{
|
|
80
|
+
label: a("salesforce_ignore_guests"),
|
|
81
|
+
labelOnLeading: !0,
|
|
82
|
+
checked: Z,
|
|
83
|
+
onCheckedChange: (e) => {
|
|
84
|
+
t("ignoreGuests", e);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
) }),
|
|
88
|
+
b.value === c.CONTACT ? /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
89
|
+
d,
|
|
90
|
+
{
|
|
91
|
+
label: a("skip_contact_creation", { appName: "Salesforce" }),
|
|
92
|
+
labelOnLeading: !0,
|
|
93
|
+
checked: $,
|
|
94
|
+
onCheckedChange: (e) => {
|
|
95
|
+
t("skipContactCreation", e);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
) }) : null,
|
|
99
|
+
b.value === c.LEAD ? /* @__PURE__ */ l("div", { children: [
|
|
100
|
+
/* @__PURE__ */ n(
|
|
101
|
+
d,
|
|
102
|
+
{
|
|
103
|
+
label: a("salesforce_create_event_on_contact"),
|
|
104
|
+
labelOnLeading: !0,
|
|
105
|
+
checked: X,
|
|
106
|
+
onCheckedChange: (e) => {
|
|
107
|
+
t("createEventOnLeadCheckForContact", e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ n("div", { className: "mt-4", children: /* @__PURE__ */ n(x, {}) })
|
|
112
|
+
] }) : null,
|
|
113
|
+
b.value === c.ACCOUNT ? /* @__PURE__ */ l(S, { children: [
|
|
114
|
+
/* @__PURE__ */ n("div", { className: "mb-4", children: /* @__PURE__ */ n(x, {}) }),
|
|
115
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
116
|
+
d,
|
|
117
|
+
{
|
|
118
|
+
label: a("salesforce_if_account_does_not_exist"),
|
|
119
|
+
labelOnLeading: !0,
|
|
120
|
+
checked: H,
|
|
121
|
+
onCheckedChange: (e) => {
|
|
122
|
+
t("createLeadIfAccountNull", e);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
) })
|
|
126
|
+
] }) : null,
|
|
127
|
+
/* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
128
|
+
/* @__PURE__ */ n(
|
|
129
|
+
d,
|
|
130
|
+
{
|
|
131
|
+
label: a("on_booking_write_to_event_object"),
|
|
132
|
+
labelOnLeading: !0,
|
|
133
|
+
checked: B,
|
|
134
|
+
onCheckedChange: (e) => {
|
|
135
|
+
t("onBookingWriteToEventObject", e);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
B ? /* @__PURE__ */ l("div", { className: "ml-2 mt-2", children: [
|
|
140
|
+
/* @__PURE__ */ l("div", { className: "grid grid-cols-3 gap-4", children: [
|
|
141
|
+
/* @__PURE__ */ n("div", { children: a("field_name") }),
|
|
142
|
+
/* @__PURE__ */ n("div", { children: a("value") })
|
|
143
|
+
] }),
|
|
144
|
+
/* @__PURE__ */ l("div", { children: [
|
|
145
|
+
Object.keys(p).map((e) => /* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-3 gap-4", children: [
|
|
146
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(h, { value: e, readOnly: !0 }) }),
|
|
147
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(h, { value: p[e], readOnly: !0 }) }),
|
|
148
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
149
|
+
f,
|
|
150
|
+
{
|
|
151
|
+
StartIcon: "trash",
|
|
152
|
+
variant: "icon",
|
|
153
|
+
color: "destructive",
|
|
154
|
+
onClick: () => {
|
|
155
|
+
const u = p;
|
|
156
|
+
delete p[e], t("onBookingWriteToEventObjectMap", u);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
) })
|
|
160
|
+
] }, e)),
|
|
161
|
+
/* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-3 gap-4", children: [
|
|
162
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
163
|
+
h,
|
|
164
|
+
{
|
|
165
|
+
value: s.field,
|
|
166
|
+
onChange: (e) => A({
|
|
167
|
+
...s,
|
|
168
|
+
field: e.target.value
|
|
169
|
+
})
|
|
170
|
+
}
|
|
171
|
+
) }),
|
|
172
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
173
|
+
h,
|
|
174
|
+
{
|
|
175
|
+
value: s.value,
|
|
176
|
+
onChange: (e) => A({
|
|
177
|
+
...s,
|
|
178
|
+
value: e.target.value
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
) })
|
|
182
|
+
] })
|
|
183
|
+
] }),
|
|
184
|
+
/* @__PURE__ */ n(
|
|
185
|
+
f,
|
|
186
|
+
{
|
|
187
|
+
className: "mt-2",
|
|
188
|
+
size: "sm",
|
|
189
|
+
disabled: !(s.field && s.value),
|
|
190
|
+
onClick: () => {
|
|
191
|
+
if (Object.keys(p).includes(
|
|
192
|
+
s.field.trim()
|
|
193
|
+
)) {
|
|
194
|
+
M("Field already exists", "error");
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
t("onBookingWriteToEventObjectMap", {
|
|
198
|
+
...p,
|
|
199
|
+
[s.field.trim()]: s.value.trim()
|
|
200
|
+
}), A({ field: "", value: "" });
|
|
201
|
+
},
|
|
202
|
+
children: a("add_new_field")
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
] }) : null
|
|
206
|
+
] }),
|
|
207
|
+
/* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
208
|
+
/* @__PURE__ */ n(
|
|
209
|
+
d,
|
|
210
|
+
{
|
|
211
|
+
label: a("salesforce_on_booking_write_to_record", { record: F }),
|
|
212
|
+
labelOnLeading: !0,
|
|
213
|
+
checked: j,
|
|
214
|
+
onCheckedChange: (e) => {
|
|
215
|
+
t("onBookingWriteToRecord", e);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
j ? /* @__PURE__ */ l("div", { className: "ml-2 mt-2", children: [
|
|
220
|
+
/* @__PURE__ */ l("div", { className: "grid grid-cols-5 gap-4", children: [
|
|
221
|
+
/* @__PURE__ */ n("div", { children: a("field_name") }),
|
|
222
|
+
/* @__PURE__ */ n("div", { children: a("field_type") }),
|
|
223
|
+
/* @__PURE__ */ n("div", { children: a("value") }),
|
|
224
|
+
/* @__PURE__ */ n("div", { children: a("when_to_write") })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ l("div", { children: [
|
|
227
|
+
Object.keys(r).map((e) => /* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-5 gap-4", children: [
|
|
228
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(h, { value: e, readOnly: !0 }) }),
|
|
229
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
230
|
+
m,
|
|
231
|
+
{
|
|
232
|
+
value: T.find(
|
|
233
|
+
(u) => u.value === r[e].fieldType
|
|
234
|
+
),
|
|
235
|
+
isDisabled: !0
|
|
236
|
+
}
|
|
237
|
+
) }),
|
|
238
|
+
/* @__PURE__ */ n("div", { children: r[e].fieldType === v.DATE ? /* @__PURE__ */ n(
|
|
239
|
+
m,
|
|
240
|
+
{
|
|
241
|
+
value: w.find(
|
|
242
|
+
(u) => u.value === r[e].value
|
|
243
|
+
),
|
|
244
|
+
isDisabled: !0
|
|
245
|
+
}
|
|
246
|
+
) : /* @__PURE__ */ n(h, { value: r[e].value, readOnly: !0 }) }),
|
|
247
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
248
|
+
m,
|
|
249
|
+
{
|
|
250
|
+
value: N.find(
|
|
251
|
+
(u) => u.value === r[e].whenToWrite
|
|
252
|
+
),
|
|
253
|
+
isDisabled: !0
|
|
254
|
+
}
|
|
255
|
+
) }),
|
|
256
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
257
|
+
f,
|
|
258
|
+
{
|
|
259
|
+
StartIcon: "trash",
|
|
260
|
+
variant: "icon",
|
|
261
|
+
color: "destructive",
|
|
262
|
+
onClick: () => {
|
|
263
|
+
const u = r;
|
|
264
|
+
delete r[e], t("onBookingWriteToRecordFields", u);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
) })
|
|
268
|
+
] }, e)),
|
|
269
|
+
/* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-5 gap-4", children: [
|
|
270
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
271
|
+
h,
|
|
272
|
+
{
|
|
273
|
+
value: i.field,
|
|
274
|
+
onChange: (e) => C({
|
|
275
|
+
...i,
|
|
276
|
+
field: e.target.value
|
|
277
|
+
})
|
|
278
|
+
}
|
|
279
|
+
) }),
|
|
280
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
281
|
+
m,
|
|
282
|
+
{
|
|
283
|
+
options: T,
|
|
284
|
+
value: O,
|
|
285
|
+
onChange: (e) => {
|
|
286
|
+
e && (ne(e), C({
|
|
287
|
+
...i,
|
|
288
|
+
fieldType: e.value,
|
|
289
|
+
...e.value === v.DATE && { value: I.value }
|
|
290
|
+
}));
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
) }),
|
|
294
|
+
/* @__PURE__ */ n("div", { children: O.value === v.DATE ? /* @__PURE__ */ n(
|
|
295
|
+
m,
|
|
296
|
+
{
|
|
297
|
+
options: w,
|
|
298
|
+
value: I,
|
|
299
|
+
onChange: (e) => {
|
|
300
|
+
e && (te(e), C({
|
|
301
|
+
...i,
|
|
302
|
+
value: e.value
|
|
303
|
+
}));
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
) : /* @__PURE__ */ n(
|
|
307
|
+
h,
|
|
308
|
+
{
|
|
309
|
+
value: i.value,
|
|
310
|
+
onChange: (e) => C({
|
|
311
|
+
...i,
|
|
312
|
+
value: e.target.value
|
|
313
|
+
})
|
|
314
|
+
}
|
|
315
|
+
) }),
|
|
316
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
317
|
+
m,
|
|
318
|
+
{
|
|
319
|
+
options: N,
|
|
320
|
+
value: ae,
|
|
321
|
+
onChange: (e) => {
|
|
322
|
+
e && (le(e), C({
|
|
323
|
+
...i,
|
|
324
|
+
whenToWrite: e.value
|
|
325
|
+
}));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
) })
|
|
329
|
+
] })
|
|
330
|
+
] }),
|
|
331
|
+
/* @__PURE__ */ n(
|
|
332
|
+
f,
|
|
333
|
+
{
|
|
334
|
+
className: "mt-2",
|
|
335
|
+
size: "sm",
|
|
336
|
+
disabled: !(i.field && i.fieldType && i.value && i.whenToWrite),
|
|
337
|
+
onClick: () => {
|
|
338
|
+
if (Object.keys(r).includes(
|
|
339
|
+
s.field.trim()
|
|
340
|
+
)) {
|
|
341
|
+
M("Field already exists", "error");
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
t("onBookingWriteToRecordFields", {
|
|
345
|
+
...r,
|
|
346
|
+
[i.field.trim()]: {
|
|
347
|
+
fieldType: i.fieldType,
|
|
348
|
+
value: i.value,
|
|
349
|
+
whenToWrite: i.whenToWrite
|
|
350
|
+
}
|
|
351
|
+
}), C({
|
|
352
|
+
field: "",
|
|
353
|
+
fieldType: O.value,
|
|
354
|
+
value: "",
|
|
355
|
+
whenToWrite: _.FIELD_EMPTY
|
|
356
|
+
});
|
|
357
|
+
},
|
|
358
|
+
children: a("add_new_field")
|
|
359
|
+
}
|
|
360
|
+
)
|
|
361
|
+
] }) : null
|
|
362
|
+
] }),
|
|
363
|
+
/* @__PURE__ */ n("div", { className: "mt-4", children: /* @__PURE__ */ n(
|
|
364
|
+
d,
|
|
365
|
+
{
|
|
366
|
+
label: "Change record owner on booking",
|
|
367
|
+
labelOnLeading: !0,
|
|
368
|
+
checked: L,
|
|
369
|
+
onCheckedChange: (e) => {
|
|
370
|
+
t("onBookingChangeRecordOwner", e);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
) }),
|
|
374
|
+
L ? /* @__PURE__ */ l("div", { className: "ml-2 mt-2", children: [
|
|
375
|
+
/* @__PURE__ */ n("p", { className: "mb-2", children: a("salesforce_owner_name_to_change") }),
|
|
376
|
+
/* @__PURE__ */ n(
|
|
377
|
+
h,
|
|
378
|
+
{
|
|
379
|
+
value: q,
|
|
380
|
+
onChange: (e) => t("onBookingChangeRecordOwnerName", e.target.value)
|
|
381
|
+
}
|
|
382
|
+
)
|
|
383
|
+
] }) : null,
|
|
384
|
+
R.schedulingType === he.ROUND_ROBIN ? /* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
385
|
+
/* @__PURE__ */ n(
|
|
386
|
+
d,
|
|
387
|
+
{
|
|
388
|
+
label: a("salesforce_book_directly_with_attendee_owner"),
|
|
389
|
+
labelOnLeading: !0,
|
|
390
|
+
checked: D,
|
|
391
|
+
onCheckedChange: (e) => {
|
|
392
|
+
t("roundRobinLeadSkip", e), e && t("enabled", e);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
),
|
|
396
|
+
D ? /* @__PURE__ */ l(S, { children: [
|
|
397
|
+
/* @__PURE__ */ l("div", { className: "my-4 ml-2", children: [
|
|
398
|
+
/* @__PURE__ */ n("label", { className: "text-emphasis mb-2 align-text-top text-sm font-medium", children: a("salesforce_check_owner_of") }),
|
|
399
|
+
/* @__PURE__ */ n(
|
|
400
|
+
m,
|
|
401
|
+
{
|
|
402
|
+
className: "mt-2 w-60",
|
|
403
|
+
options: E,
|
|
404
|
+
value: oe,
|
|
405
|
+
onChange: (e) => {
|
|
406
|
+
e && (ie(e), t("roundRobinSkipCheckRecordOn", e.value));
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
] }),
|
|
411
|
+
/* @__PURE__ */ n("div", { className: "my-4", children: /* @__PURE__ */ n(
|
|
412
|
+
d,
|
|
413
|
+
{
|
|
414
|
+
label: a("salesforce_if_free_email_domain_skip_owner_check"),
|
|
415
|
+
labelOnLeading: !0,
|
|
416
|
+
checked: z,
|
|
417
|
+
onCheckedChange: (e) => {
|
|
418
|
+
t("ifFreeEmailDomainSkipOwnerCheck", e);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
) })
|
|
422
|
+
] }) : null,
|
|
423
|
+
/* @__PURE__ */ n(ue, { className: "mt-2", severity: "neutral", title: a("skip_rr_description") })
|
|
424
|
+
] }) : null,
|
|
425
|
+
/* @__PURE__ */ l("div", { className: "ml-2 mt-4", children: [
|
|
426
|
+
/* @__PURE__ */ n(
|
|
427
|
+
d,
|
|
428
|
+
{
|
|
429
|
+
label: "Send no show attendee data to event object",
|
|
430
|
+
checked: y,
|
|
431
|
+
onCheckedChange: (e) => {
|
|
432
|
+
t("sendNoShowAttendeeData", e);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
y ? /* @__PURE__ */ l("div", { className: "mt-2", children: [
|
|
437
|
+
/* @__PURE__ */ n("p", { className: "mb-2", children: "Field name to check (must be checkbox data type)" }),
|
|
438
|
+
/* @__PURE__ */ n(
|
|
439
|
+
h,
|
|
440
|
+
{
|
|
441
|
+
value: Q,
|
|
442
|
+
onChange: (e) => t("sendNoShowAttendeeDataField", e.target.value)
|
|
443
|
+
}
|
|
444
|
+
)
|
|
445
|
+
] }) : null
|
|
446
|
+
] })
|
|
447
|
+
] })
|
|
448
|
+
}
|
|
449
|
+
);
|
|
450
|
+
};
|
|
451
|
+
export {
|
|
452
|
+
ke as default
|
|
453
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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-ykl8OQ78.js";
|
|
3
|
+
import { useState as P } from "react";
|
|
4
|
+
import { A as g } from "./AppCard-cTyZ7qdO.js";
|
|
5
|
+
import { u as v } from "./useIsAppEnabled-jQTpW-EN.js";
|
|
6
|
+
import w from "./EventTypeAppSettingsInterface-CwuQI4XA.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
|
+
};
|
package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-4dkcilsD.js}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { J as m, k as p } from "./index-ykl8OQ78.js";
|
|
3
|
+
import { A } from "./AppCard-cTyZ7qdO.js";
|
|
4
|
+
import { u as I } from "./useIsAppEnabled-jQTpW-EN.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(
|
|
8
9
|
A,
|
|
9
10
|
{
|
|
10
11
|
hideSettingsIcon: !0,
|
|
@@ -13,13 +14,13 @@ const T = function({ app: a, eventType: p }) {
|
|
|
13
14
|
u(e);
|
|
14
15
|
},
|
|
15
16
|
switchChecked: c,
|
|
16
|
-
teamId: ((
|
|
17
|
-
children: /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */ t
|
|
19
|
-
|
|
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,
|
|
20
21
|
{
|
|
21
22
|
required: !0,
|
|
22
|
-
disabled:
|
|
23
|
+
disabled: o,
|
|
23
24
|
name: "Tracking ID",
|
|
24
25
|
value: d,
|
|
25
26
|
placeholder: "Enter your Tracking ID",
|
|
@@ -28,11 +29,11 @@ const T = function({ app: a, eventType: p }) {
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
),
|
|
31
|
-
/* @__PURE__ */ t
|
|
32
|
-
|
|
32
|
+
/* @__PURE__ */ t(
|
|
33
|
+
p,
|
|
33
34
|
{
|
|
34
35
|
required: !0,
|
|
35
|
-
disabled:
|
|
36
|
+
disabled: o,
|
|
36
37
|
name: "Api host",
|
|
37
38
|
value: l,
|
|
38
39
|
placeholder: "Enter your Api host url",
|
|
@@ -46,5 +47,5 @@ const T = function({ app: a, eventType: p }) {
|
|
|
46
47
|
);
|
|
47
48
|
};
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
x as default
|
|
50
51
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { J as m } from "./index-ykl8OQ78.js";
|
|
3
|
+
import { A as c } from "./AppCard-cTyZ7qdO.js";
|
|
4
|
+
import { u } from "./useIsAppEnabled-jQTpW-EN.js";
|
|
5
|
+
import l from "./EventTypeAppSettingsInterface-ccBCyO4S.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
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { J as h, k as n } from "./index-ykl8OQ78.js";
|
|
3
|
+
import { A as I } from "./AppCard-cTyZ7qdO.js";
|
|
4
|
+
import { u as C } from "./useIsAppEnabled-jQTpW-EN.js";
|
|
5
|
+
const R = function({ app: s, eventType: o }) {
|
|
6
|
+
var i;
|
|
7
|
+
const { getAppData: p, setAppData: r, disabled: t } = h(), c = p("SITE_ID"), d = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = C(s);
|
|
8
|
+
return /* @__PURE__ */ a(
|
|
9
|
+
I,
|
|
10
|
+
{
|
|
11
|
+
app: s,
|
|
12
|
+
switchOnClick: (e) => {
|
|
13
|
+
u(e);
|
|
14
|
+
},
|
|
15
|
+
switchChecked: l,
|
|
16
|
+
teamId: ((i = o.team) == null ? void 0 : i.id) || void 0,
|
|
17
|
+
children: /* @__PURE__ */ m("fieldset", { className: "space-y-2", disabled: t, children: [
|
|
18
|
+
/* @__PURE__ */ a(
|
|
19
|
+
n,
|
|
20
|
+
{
|
|
21
|
+
disabled: t,
|
|
22
|
+
name: "Script URL",
|
|
23
|
+
value: d,
|
|
24
|
+
defaultValue: "https://us.umami.is/script.js",
|
|
25
|
+
placeholder: "Enter the script source URL",
|
|
26
|
+
onChange: (e) => {
|
|
27
|
+
r("SCRIPT_URL", e.target.value);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ a(
|
|
32
|
+
n,
|
|
33
|
+
{
|
|
34
|
+
disabled: t,
|
|
35
|
+
name: "Site ID",
|
|
36
|
+
value: c,
|
|
37
|
+
placeholder: "Enter your Site ID",
|
|
38
|
+
onChange: (e) => {
|
|
39
|
+
r("SITE_ID", e.target.value);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] })
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
R as default
|
|
49
|
+
};
|