@calcom/atoms 1.0.95 → 1.0.96-beta-1

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