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