@calcom/atoms 1.0.97-beta-3 → 1.0.97-booker-2

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 (72) hide show
  1. package/dist/{AddressInput-LPJtHhnk.js → AddressInput-W-XdY4qU.js} +3 -3
  2. package/dist/{AlbyPriceComponent-VO8iEUWb.js → AlbyPriceComponent-nBe_4ylu.js} +19 -19
  3. package/dist/{PhoneInput-saKL4loW.js → PhoneInput-iIT9lpZf.js} +2 -2
  4. package/dist/cal-atoms.js +3 -34
  5. package/dist/{framer-features-K_TB52kd.js → framer-features-swH-ehNh.js} +63 -63
  6. package/dist/{index-IPz9Apiv.js → index-0motN_6U.js} +1 -1
  7. package/dist/index-aZS0_Iu8.js +1957 -0
  8. package/dist/index-iVm4HGuW.js +79423 -0
  9. package/dist/index-mBOxto7x.js +1258 -0
  10. package/dist/isSupportedCountry-xN7Xshgi.js +487 -0
  11. package/dist/packages/platform/atoms/index.d.ts +0 -32
  12. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  13. package/dist/style.css +1 -1
  14. package/globals.min.css +2 -22
  15. package/package.json +1 -1
  16. package/dist/AppCard-cTyZ7qdO.js +0 -162
  17. package/dist/AppListCardPlatformWrapper-ErlT9yQV.js +0 -9
  18. package/dist/AppListCardWebWrapper-nLRKr-Qu.js +0 -74
  19. package/dist/AppSettingsInterface-1iuEhZRw.js +0 -23
  20. package/dist/AppSettingsInterface-9nYzo3Ef.js +0 -29
  21. package/dist/AppSettingsInterface-Y7iloRRd.js +0 -75
  22. package/dist/DateRangePicker-zh9gM3ld.js +0 -2401
  23. package/dist/EventTypeAppCardInterface-0tcE4MHz.js +0 -32
  24. package/dist/EventTypeAppCardInterface-2xzo_8rb.js +0 -453
  25. package/dist/EventTypeAppCardInterface-3xv7ZK_G.js +0 -41
  26. package/dist/EventTypeAppCardInterface-4dkcilsD.js +0 -51
  27. package/dist/EventTypeAppCardInterface-A7WN14Mn.js +0 -34
  28. package/dist/EventTypeAppCardInterface-BbJv67UJ.js +0 -49
  29. package/dist/EventTypeAppCardInterface-D42_2WwA.js +0 -42
  30. package/dist/EventTypeAppCardInterface-F9zy0_KX.js +0 -24
  31. package/dist/EventTypeAppCardInterface-LB9yguQb.js +0 -39
  32. package/dist/EventTypeAppCardInterface-PGX33FFN.js +0 -42
  33. package/dist/EventTypeAppCardInterface-PaCD78C8.js +0 -33
  34. package/dist/EventTypeAppCardInterface-QiaQ-GmU.js +0 -51
  35. package/dist/EventTypeAppCardInterface-S5bK4a_4.js +0 -24
  36. package/dist/EventTypeAppCardInterface-SXV5NhVT.js +0 -24
  37. package/dist/EventTypeAppCardInterface-SdCRwS0b.js +0 -34
  38. package/dist/EventTypeAppCardInterface-TV1GspR-.js +0 -41
  39. package/dist/EventTypeAppCardInterface-WrBEdjss.js +0 -86
  40. package/dist/EventTypeAppCardInterface-Xl60vAW7.js +0 -34
  41. package/dist/EventTypeAppCardInterface-bY6zHj23.js +0 -34
  42. package/dist/EventTypeAppCardInterface-bpyx9DoB.js +0 -34
  43. package/dist/EventTypeAppCardInterface-dSD0TA4p.js +0 -34
  44. package/dist/EventTypeAppCardInterface-hulmgxtc.js +0 -24
  45. package/dist/EventTypeAppCardInterface-n8fugRqn.js +0 -32
  46. package/dist/EventTypeAppCardInterface-qqnnC5vq.js +0 -24
  47. package/dist/EventTypeAppCardInterface-rVMclz_u.js +0 -34
  48. package/dist/EventTypeAppCardInterface-zXewU-bg.js +0 -31
  49. package/dist/EventTypeAppSettingsInterface-2oHFXxC0.js +0 -221
  50. package/dist/EventTypeAppSettingsInterface-5hQr6WTa.js +0 -25
  51. package/dist/EventTypeAppSettingsInterface-CwuQI4XA.js +0 -120
  52. package/dist/EventTypeAppSettingsInterface-HGPywPcZ.js +0 -43
  53. package/dist/EventTypeAppSettingsInterface-MLox-zIr.js +0 -78
  54. package/dist/EventTypeAppSettingsInterface-azMpYm3v.js +0 -48
  55. package/dist/EventTypeAppSettingsInterface-ccBCyO4S.js +0 -23
  56. package/dist/EventTypeAppSettingsInterface-jCOnJXVq.js +0 -42
  57. package/dist/EventTypeAppSettingsInterface-rUp-tPsO.js +0 -72
  58. package/dist/EventTypeAppSettingsInterface-sOLaF1pR.js +0 -23
  59. package/dist/EventTypeAppSettingsInterface-v8a7XnIr.js +0 -24
  60. package/dist/EventTypeAppSettingsInterface-xlYsU6Vi.js +0 -298
  61. package/dist/InstallAppButton-34JAPxwK.js +0 -14
  62. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  63. package/dist/InstallAppButton-ihX89_K4.js +0 -58
  64. package/dist/InstallAppButton-zjD9dbE7.js +0 -14
  65. package/dist/StripePaymentForm-dfxxUj2E.js +0 -493
  66. package/dist/currencyOptions-kannG2hu.js +0 -61
  67. package/dist/index-81plgMPe.js +0 -28
  68. package/dist/index-engsJK56.js +0 -511
  69. package/dist/index-ite7gJ1a.js +0 -13
  70. package/dist/index-ykl8OQ78.js +0 -154402
  71. package/dist/isSupportedCountry-RPoEk3Bi.js +0 -7
  72. package/dist/useIsAppEnabled-jQTpW-EN.js +0 -18
@@ -1,32 +0,0 @@
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
- };
@@ -1,453 +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 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
- };
@@ -1,41 +0,0 @@
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
- };
@@ -1,51 +0,0 @@
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(
9
- A,
10
- {
11
- hideSettingsIcon: !0,
12
- app: a,
13
- switchOnClick: (e) => {
14
- u(e);
15
- },
16
- switchChecked: c,
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,
21
- {
22
- required: !0,
23
- disabled: o,
24
- name: "Tracking ID",
25
- value: d,
26
- placeholder: "Enter your Tracking ID",
27
- onChange: (e) => {
28
- n("TRACKING_ID", e.target.value);
29
- }
30
- }
31
- ),
32
- /* @__PURE__ */ t(
33
- p,
34
- {
35
- required: !0,
36
- disabled: o,
37
- name: "Api host",
38
- value: l,
39
- placeholder: "Enter your Api host url",
40
- onChange: (e) => {
41
- n("API_HOST", e.target.value);
42
- }
43
- }
44
- )
45
- ] })
46
- }
47
- );
48
- };
49
- export {
50
- x as default
51
- };
@@ -1,34 +0,0 @@
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
- };
@@ -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-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
- };