@calcom/atoms 1.7.1 → 1.8.0-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 (167) hide show
  1. package/dist/{AddressInput-DR3jIl7N.js → AddressInput-E1ARKDg7.js} +5 -5
  2. package/dist/{AlbyPriceComponent-2k8JXx0O.js → AlbyPriceComponent-jBcuDvZa.js} +24 -24
  3. package/dist/{PhoneInput-Nhiv23jS.js → PhoneInput-qXboae9k.js} +62 -62
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/index-GQl0OyJB.js +88695 -0
  6. package/dist/index-QBpbC_ZD.js +1957 -0
  7. package/dist/{index-QG3p1fzr.js → index-bGbS5CRI.js} +1 -1
  8. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  10. package/dist/packages/features/bookings/Booker/components/Header.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
  12. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +1 -1
  13. package/dist/packages/features/bookings/Booker/utils/event.d.ts +33 -33
  14. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +1 -1
  15. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -1
  16. package/dist/packages/features/bookings/lib/create-booking.d.ts +91 -91
  17. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +91 -91
  18. package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -9
  19. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +38 -38
  20. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts +41 -0
  21. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts.map +1 -0
  22. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts +2 -0
  23. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts.map +1 -0
  24. package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +2 -2
  25. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -33
  26. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +57 -57
  27. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +57 -57
  28. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +57 -57
  29. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +46 -46
  30. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +45 -45
  31. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +364 -364
  32. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  33. package/dist/packages/features/bookings/lib/handlePayment.d.ts +49 -0
  34. package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -0
  35. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +33 -33
  36. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  37. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +33 -33
  38. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +39 -39
  39. package/dist/packages/features/components/controlled-dialog/index.d.ts.map +1 -1
  40. package/dist/packages/features/components/phone-input/PhoneInput.d.ts.map +1 -1
  41. package/dist/packages/features/ee/billing/organizations/index.d.ts +1 -2
  42. package/dist/packages/features/ee/billing/organizations/index.d.ts.map +1 -1
  43. package/dist/packages/features/ee/billing/organizations/internal-organization-billing.d.ts +2 -2
  44. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +32 -4
  45. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts.map +1 -1
  46. package/dist/packages/features/ee/payments/server/stripe-service.d.ts +23 -0
  47. package/dist/packages/features/ee/payments/server/stripe-service.d.ts.map +1 -0
  48. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +125 -0
  49. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -0
  50. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts +2 -0
  51. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts.map +1 -0
  52. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +30 -30
  53. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  54. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  55. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  56. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  57. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +6 -6
  58. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts +7 -0
  59. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts.map +1 -0
  60. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +1 -1
  61. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
  62. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  63. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts +28 -0
  64. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts.map +1 -0
  65. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts +2 -0
  66. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts.map +1 -0
  67. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +33 -33
  68. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -12
  69. package/dist/packages/features/eventtypes/lib/types.d.ts +1 -1
  70. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  71. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts +2 -2
  72. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts.map +1 -1
  73. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts +15 -0
  74. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts.map +1 -0
  75. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +17 -17
  76. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  77. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts +3 -0
  78. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts.map +1 -0
  79. package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts.map +1 -1
  80. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +91 -91
  81. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +91 -91
  82. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +91 -91
  83. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -3
  84. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  85. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +33 -33
  86. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +3 -3
  87. package/dist/packages/platform/atoms/hooks/schedules/useAtomUpdateSchedule.d.ts +3 -3
  88. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  89. package/dist/packages/platform/atoms/index.d.ts +0 -36
  90. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  91. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts +2 -0
  92. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts.map +1 -0
  93. package/dist/packages/platform/libraries/event-types.d.ts +5 -5
  94. package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
  95. package/dist/packages/platform/libraries/index.d.ts +3 -3
  96. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  97. package/dist/packages/prisma/zod/impersonations.d.ts +2 -2
  98. package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
  99. package/dist/packages/prisma/zod/task.d.ts +2 -2
  100. package/dist/packages/prisma/zod/teamfeatures.d.ts +2 -2
  101. package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
  102. package/dist/packages/prisma/zod/webhookscheduledtriggers.d.ts +2 -2
  103. package/dist/packages/prisma/zod-utils.d.ts +1 -0
  104. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  105. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +2 -2
  106. package/dist/packages/trpc/react/shared.d.ts +1 -1
  107. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  108. package/dist/packages/trpc/react/trpc.d.ts.map +1 -1
  109. package/dist/style.css +1 -1
  110. package/package.json +1 -1
  111. package/dist/AppCard-bt7zv8gh.js +0 -281
  112. package/dist/AppListCardPlatformWrapper-VhYhJs_R.js +0 -9
  113. package/dist/AppListCardWebWrapper-NUv3j3xt.js +0 -74
  114. package/dist/AppSettingsInterface-buo7m9T8.js +0 -75
  115. package/dist/AppSettingsInterface-pSKkGg41.js +0 -23
  116. package/dist/AppSettingsInterface-zXTKl0m5.js +0 -29
  117. package/dist/DateRangePicker-bTMo0QHP.js +0 -74
  118. package/dist/EventTypeAppCardInterface-09iYOcZc.js +0 -39
  119. package/dist/EventTypeAppCardInterface-22oySUhU.js +0 -42
  120. package/dist/EventTypeAppCardInterface-4J2r0kDm.js +0 -34
  121. package/dist/EventTypeAppCardInterface-6ARDh1hB.js +0 -34
  122. package/dist/EventTypeAppCardInterface-6N-ocotc.js +0 -34
  123. package/dist/EventTypeAppCardInterface-ALjgH4W_.js +0 -34
  124. package/dist/EventTypeAppCardInterface-Ayfx5tRN.js +0 -39
  125. package/dist/EventTypeAppCardInterface-DcTMtSbr.js +0 -24
  126. package/dist/EventTypeAppCardInterface-DqaD8qmA.js +0 -34
  127. package/dist/EventTypeAppCardInterface-KjJnnhe2.js +0 -51
  128. package/dist/EventTypeAppCardInterface-SS33HaLT.js +0 -24
  129. package/dist/EventTypeAppCardInterface-TIEM8D8u.js +0 -41
  130. package/dist/EventTypeAppCardInterface-UIXAwi3z.js +0 -32
  131. package/dist/EventTypeAppCardInterface-UhZiYpC_.js +0 -858
  132. package/dist/EventTypeAppCardInterface-Uv0b0YwY.js +0 -34
  133. package/dist/EventTypeAppCardInterface-WvWtKyzR.js +0 -32
  134. package/dist/EventTypeAppCardInterface-ZTWUUx-j.js +0 -31
  135. package/dist/EventTypeAppCardInterface-Zce0NZR5.js +0 -33
  136. package/dist/EventTypeAppCardInterface-bj9lQhmN.js +0 -24
  137. package/dist/EventTypeAppCardInterface-cWLQDtAR.js +0 -86
  138. package/dist/EventTypeAppCardInterface-fwF9ZNE1.js +0 -42
  139. package/dist/EventTypeAppCardInterface-lLtnjlZW.js +0 -34
  140. package/dist/EventTypeAppCardInterface-oHgBXT0z.js +0 -24
  141. package/dist/EventTypeAppCardInterface-uSw2xD2a.js +0 -41
  142. package/dist/EventTypeAppCardInterface-uaT7p9un.js +0 -24
  143. package/dist/EventTypeAppCardInterface-vmdHhgZV.js +0 -51
  144. package/dist/EventTypeAppCardInterface-zkJKrgZb.js +0 -49
  145. package/dist/EventTypeAppSettingsInterface-108_BODL.js +0 -78
  146. package/dist/EventTypeAppSettingsInterface-Q0ZDtoUj.js +0 -25
  147. package/dist/EventTypeAppSettingsInterface-Qnr0HCO0.js +0 -43
  148. package/dist/EventTypeAppSettingsInterface-VeVCHNBB.js +0 -24
  149. package/dist/EventTypeAppSettingsInterface-_Yc814Cl.js +0 -221
  150. package/dist/EventTypeAppSettingsInterface-gg2Ef5DU.js +0 -48
  151. package/dist/EventTypeAppSettingsInterface-gkHBitj8.js +0 -106
  152. package/dist/EventTypeAppSettingsInterface-jJT8-1ML.js +0 -120
  153. package/dist/EventTypeAppSettingsInterface-lUvYXuGl.js +0 -72
  154. package/dist/EventTypeAppSettingsInterface-mfeygayG.js +0 -343
  155. package/dist/EventTypeAppSettingsInterface-siyUmyxC.js +0 -23
  156. package/dist/EventTypeAppSettingsInterface-u1frTGTk.js +0 -23
  157. package/dist/EventTypeAppSettingsInterface-ykuyZiXU.js +0 -42
  158. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  159. package/dist/InstallAppButton-UL42QGKr.js +0 -14
  160. package/dist/InstallAppButton-c2chNE6g.js +0 -14
  161. package/dist/InstallAppButton-rvYPqvGJ.js +0 -58
  162. package/dist/StripePaymentForm-1yTkAicU.js +0 -493
  163. package/dist/currencyOptions-kannG2hu.js +0 -61
  164. package/dist/index-6aqrxRA8.js +0 -166397
  165. package/dist/index-heZJ0K97.js +0 -28
  166. package/dist/index-miF5qVsp.js +0 -518
  167. package/dist/useIsAppEnabled-aAe8QNQ3.js +0 -18
@@ -1,28 +0,0 @@
1
- import { C as s, b as t, n as r, m as i, D as l, E as o, F as c, H as d, e as n, g as p, I as F, L as g, N as S, P as u, S as k, h as x, j as P, o as b, p as h, c as m, d as I, f as T, l as C, k as E, i as D } from "./index-6aqrxRA8.js";
2
- export {
3
- s as Checkbox,
4
- t as CheckboxField,
5
- r as ColorPicker,
6
- i as DatePicker,
7
- l as DateRangePicker,
8
- o as EmailField,
9
- c as Form,
10
- d as HintsOrErrors,
11
- n as Input,
12
- p as InputError,
13
- F as InputField,
14
- g as Label,
15
- S as NumberInput,
16
- u as PasswordField,
17
- k as Select,
18
- x as SelectField,
19
- P as SelectWithValidation,
20
- b as SettingsToggle,
21
- h as Switch,
22
- m as TextArea,
23
- I as TextAreaField,
24
- T as TextField,
25
- C as ToggleGroup,
26
- E as getReactSelectProps,
27
- D as inputStyles
28
- };
@@ -1,518 +0,0 @@
1
- import { jsxs as c, jsx as i, Fragment as g } from "react/jsx-runtime";
2
- import { at as C, au as L, av as S, ak as j, aw as T, ax as U, r as h, B as A, ay as I, w as R, az as k, aA as _, aB as $, K as V } from "./index-6aqrxRA8.js";
3
- import { memo as z, useState as Q } from "react";
4
- var M = Math.floor, E = Math.random;
5
- function Z(t, r) {
6
- return t + M(E() * (r - t + 1));
7
- }
8
- var q = Z, F = q;
9
- function G(t, r) {
10
- var o = -1, n = t.length, a = n - 1;
11
- for (r = r === void 0 ? n : r; ++o < r; ) {
12
- var e = F(o, a), s = t[e];
13
- t[e] = t[o], t[o] = s;
14
- }
15
- return t.length = r, t;
16
- }
17
- var y = G, O = C, W = y;
18
- function D(t) {
19
- return W(O(t));
20
- }
21
- var P = D, H = L;
22
- function K(t, r) {
23
- return H(r, function(o) {
24
- return t[o];
25
- });
26
- }
27
- var Y = K, J = Y, X = S;
28
- function B(t) {
29
- return t == null ? [] : J(t, X(t));
30
- }
31
- var ee = B, te = y, ie = ee;
32
- function se(t) {
33
- return te(ie(t));
34
- }
35
- var re = se, ae = P, le = re, oe = T;
36
- function de(t) {
37
- var r = oe(t) ? ae : le;
38
- return r(t);
39
- }
40
- var ne = de;
41
- const ce = /* @__PURE__ */ j(ne), b = I("", {
42
- // Variants won't have any style by default. Style will only be applied if the variants are combined.
43
- // So, style is defined in compoundVariants.
44
- variants: {
45
- variant: {
46
- basic: "",
47
- ProfileCard: "",
48
- SidebarCard: ""
49
- },
50
- structure: {
51
- image: "",
52
- card: "",
53
- title: "",
54
- description: ""
55
- }
56
- },
57
- compoundVariants: [
58
- // Style for Basic Variants types
59
- {
60
- variant: "basic",
61
- structure: "image",
62
- className: "w-10 h-auto"
63
- },
64
- {
65
- variant: "basic",
66
- structure: "card",
67
- className: "p-5"
68
- },
69
- {
70
- variant: "basic",
71
- structure: "title",
72
- className: "text-base mt-4"
73
- },
74
- {
75
- variant: "basic",
76
- structure: "description",
77
- className: "text-sm leading-[18px] text-subtle font-normal"
78
- },
79
- // Style for ProfileCard Variant Types
80
- {
81
- variant: "ProfileCard",
82
- structure: "image",
83
- className: "w-9 h-auto rounded-full mb-4s"
84
- },
85
- {
86
- variant: "ProfileCard",
87
- structure: "card",
88
- className: "w-80 p-4 hover:bg-subtle"
89
- },
90
- {
91
- variant: "ProfileCard",
92
- structure: "title",
93
- className: "text-base"
94
- },
95
- {
96
- variant: "ProfileCard",
97
- structure: "description",
98
- className: "text-sm leading-[18px] text-subtle font-normal"
99
- },
100
- // Style for SidebarCard Variant Types
101
- {
102
- variant: "SidebarCard",
103
- structure: "image",
104
- className: "w-9 h-auto rounded-full mb-4s"
105
- },
106
- {
107
- variant: "SidebarCard",
108
- structure: "card",
109
- className: "w-full p-3 border border-subtle"
110
- },
111
- {
112
- variant: "SidebarCard",
113
- structure: "title",
114
- className: "text-sm font-cal"
115
- },
116
- {
117
- variant: "SidebarCard",
118
- structure: "description",
119
- className: "text-xs text-default line-clamp-2"
120
- }
121
- ]
122
- });
123
- function me({
124
- image: t,
125
- title: r,
126
- icon: o,
127
- description: n,
128
- variant: a,
129
- actionButton: e,
130
- containerProps: s,
131
- imageProps: l,
132
- mediaLink: d,
133
- thumbnailUrl: u,
134
- learnMore: m
135
- }) {
136
- const p = m && m.href.startsWith("https") ? "a" : U;
137
- return /* @__PURE__ */ c(
138
- "div",
139
- {
140
- className: h(
141
- s == null ? void 0 : s.className,
142
- b({ variant: a, structure: "card" }),
143
- "bg-default border-subtle text-default flex flex-col justify-between rounded-md border"
144
- ),
145
- "data-testid": "card-container",
146
- ...s,
147
- children: [
148
- /* @__PURE__ */ c("div", { children: [
149
- o && o,
150
- t && /* @__PURE__ */ i(
151
- "img",
152
- {
153
- src: t,
154
- alt: l == null ? void 0 : l.alt,
155
- className: h(
156
- l == null ? void 0 : l.className,
157
- b({ variant: a, structure: "image" })
158
- ),
159
- ...l
160
- }
161
- ),
162
- /* @__PURE__ */ i(
163
- "h5",
164
- {
165
- title: r,
166
- className: h(
167
- b({ variant: a, structure: "title" }),
168
- "text-emphasis line-clamp-1 font-bold leading-5"
169
- ),
170
- children: r
171
- }
172
- ),
173
- n && /* @__PURE__ */ i(
174
- "p",
175
- {
176
- title: n.toString(),
177
- className: h(b({ variant: a, structure: "description" }), "pt-1"),
178
- children: n
179
- }
180
- )
181
- ] }),
182
- a === "SidebarCard" && /* @__PURE__ */ c(
183
- "a",
184
- {
185
- onClick: e == null ? void 0 : e.onClick,
186
- target: "_blank",
187
- rel: "noreferrer",
188
- href: d,
189
- "data-testid": e == null ? void 0 : e["data-testid"],
190
- className: "group relative my-3 flex aspect-video items-center overflow-hidden rounded",
191
- children: [
192
- /* @__PURE__ */ i("div", { className: "absolute inset-0 bg-black bg-opacity-50 transition group-hover:bg-opacity-40" }),
193
- /* @__PURE__ */ c(
194
- "svg",
195
- {
196
- className: "text-inverted absolute left-1/2 top-1/2 h-8 w-8 -translate-x-1/2 -translate-y-1/2 transform rounded-full shadow-lg transition-all hover:-mt-px",
197
- viewBox: "0 0 32 32",
198
- fill: "none",
199
- xmlns: "http://www.w3.org/2000/svg",
200
- children: [
201
- /* @__PURE__ */ i(
202
- "path",
203
- {
204
- d: "M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",
205
- fill: "white"
206
- }
207
- ),
208
- /* @__PURE__ */ i(
209
- "path",
210
- {
211
- d: "M12.1667 8.5L23.8334 16L12.1667 23.5V8.5Z",
212
- fill: "#111827",
213
- stroke: "#111827",
214
- strokeWidth: "1.5",
215
- strokeLinecap: "round",
216
- strokeLinejoin: "round"
217
- }
218
- )
219
- ]
220
- }
221
- ),
222
- /* @__PURE__ */ i("img", { alt: "play feature video", src: u })
223
- ]
224
- }
225
- ),
226
- a === "basic" && e && /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
227
- A,
228
- {
229
- color: "secondary",
230
- href: e == null ? void 0 : e.href,
231
- className: "mt-10",
232
- EndIcon: "arrow-right",
233
- "data-testid": e["data-testid"],
234
- children: e == null ? void 0 : e.child
235
- }
236
- ) }),
237
- a === "SidebarCard" && /* @__PURE__ */ c("div", { className: "mt-2 flex items-center justify-between", children: [
238
- m && /* @__PURE__ */ i(
239
- p,
240
- {
241
- href: m.href,
242
- onClick: e == null ? void 0 : e.onClick,
243
- target: "_blank",
244
- rel: "noreferrer",
245
- className: "text-default text-xs font-medium",
246
- children: m.text
247
- }
248
- ),
249
- (e == null ? void 0 : e.child) && /* @__PURE__ */ i(
250
- "button",
251
- {
252
- className: "text-default hover:text-emphasis p-0 text-xs font-normal",
253
- color: "minimal",
254
- "data-testid": e == null ? void 0 : e["data-testid"],
255
- onClick: e == null ? void 0 : e.onClick,
256
- children: e == null ? void 0 : e.child
257
- }
258
- )
259
- ] })
260
- ]
261
- }
262
- );
263
- }
264
- const he = [
265
- {
266
- id: 17,
267
- thumbnailUrl: "https://img.youtube.com/vi/fMHW6jYPIb8/0.jpg",
268
- mediaLink: "https://go.cal.com/embed-video",
269
- title: "Embed",
270
- description: "Embed your booking page on your website",
271
- href: "https://go.cal.com/embed-video"
272
- },
273
- {
274
- id: 16,
275
- thumbnailUrl: "https://img.youtube.com/vi/xopxmk2H4Ng/0.jpg",
276
- mediaLink: "https://go.cal.com/paid-booking",
277
- title: "Paid Bookings",
278
- description: "Charge for your time with Cal.com's paid bookings",
279
- href: "https://go.cal.com/paid-booking"
280
- },
281
- {
282
- id: 15,
283
- thumbnailUrl: "https://img.youtube.com/vi/ZjSD1yPgLLQ/0.jpg",
284
- mediaLink: "https://go.cal.com/instant-meetings-video",
285
- title: "Instant Meetings",
286
- description: "Book meetings instantly with a link",
287
- href: "https://go.cal.com/instant-meetings-video"
288
- },
289
- {
290
- id: 14,
291
- thumbnailUrl: "https://img.youtube.com/vi/IZ4-nUiIpvY/0.jpg",
292
- mediaLink: "https://go.cal.com/custom-attributes",
293
- title: "Custom Attributes",
294
- description: "Define roles and attributes for your teams",
295
- href: "https://go.cal.com/custom-attributes"
296
- },
297
- {
298
- id: 13,
299
- thumbnailUrl: "https://img.youtube.com/vi/TTAASLLPKk0/0.jpg",
300
- mediaLink: "https://go.cal.com/ooo-video",
301
- title: "ooo.new",
302
- description: "Easily go out-of-office",
303
- href: "https://go.cal.com/ooo-video"
304
- },
305
- {
306
- id: 12,
307
- thumbnailUrl: "https://cal.com/og-image-cal-ai.jpg",
308
- mediaLink: "https://go.cal.com/cal-ai",
309
- title: "Cal.ai",
310
- description: "Your personal AI scheduling assistant",
311
- href: "https://go.cal.com/cal-ai"
312
- },
313
- {
314
- id: 11,
315
- thumbnailUrl: "https://img.youtube.com/vi/KTg_qzA9NEc/0.jpg",
316
- mediaLink: "https://go.cal.com/insights",
317
- title: "Insights",
318
- description: "Get a better understanding of your business",
319
- href: "https://go.cal.com/insights"
320
- },
321
- {
322
- id: 10,
323
- thumbnailUrl: "https://img.youtube.com/vi/jvaBafzVUQc/0.jpg",
324
- mediaLink: "https://go.cal.com/video",
325
- title: "Cal Video",
326
- description: "Free video conferencing with recording",
327
- href: "https://go.cal.com/video"
328
- },
329
- {
330
- id: 9,
331
- thumbnailUrl: "https://img.youtube.com/vi/93iOmzHieCU/0.jpg",
332
- mediaLink: "https://go.cal.com/round-robin",
333
- title: "Round-Robin",
334
- description: "Create advanced group meetings with round-robin",
335
- href: "https://go.cal.com/round-robin"
336
- },
337
- {
338
- id: 8,
339
- thumbnailUrl: "https://img.youtube.com/vi/piKlAiibAFo/0.jpg",
340
- mediaLink: "https://go.cal.com/workflows",
341
- title: "Automate Workflows",
342
- description: "Make time work for you and automate tasks",
343
- href: "https://go.cal.com/workflows"
344
- },
345
- {
346
- id: 7,
347
- thumbnailUrl: "https://img.youtube.com/vi/UVXgo12cY4g/0.jpg",
348
- mediaLink: "https://go.cal.com/routing-forms",
349
- title: "Routing Forms",
350
- description: "Ask questions and route to the correct person",
351
- href: "https://go.cal.com/routing-forms"
352
- },
353
- {
354
- id: 6,
355
- thumbnailUrl: "https://img.youtube.com/vi/yGiZo1Ry5-8/0.jpg",
356
- mediaLink: "https://go.cal.com/recurring-video",
357
- title: "Recurring Bookings",
358
- description: "Learn how to create a recurring schedule",
359
- href: "https://go.cal.com/recurring-video"
360
- },
361
- {
362
- id: 5,
363
- thumbnailUrl: "https://img.youtube.com/vi/0v_nQtpxC_4/0.jpg",
364
- mediaLink: "https://go.cal.com/payments-video",
365
- title: "Accept Payments",
366
- description: "Charge for your time with Cal.com's Stripe App",
367
- href: "https://app.cal.com/apps/stripe"
368
- },
369
- {
370
- id: 4,
371
- thumbnailUrl: "https://img.youtube.com/vi/zGr_s-fG84k/0.jpg",
372
- mediaLink: "https://go.cal.com/confirmation-video",
373
- title: "Requires Confirmation",
374
- description: "Learn how to be in charge of your bookings",
375
- href: "https://cal.com/resources/feature/opt-in"
376
- },
377
- {
378
- id: 3,
379
- thumbnailUrl: "https://img.youtube.com/vi/-L8MCiT6uhQ/0.jpg",
380
- mediaLink: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl",
381
- title: "Routing Forms, Workflows",
382
- description: "Ask screening questions of potential bookers to connect them with the right person",
383
- href: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl"
384
- },
385
- {
386
- id: 2,
387
- thumbnailUrl: "https://img.youtube.com/vi/EAc46SPL6iA/0.jpg",
388
- mediaLink: "https://go.cal.com/teams-video",
389
- title: "How to set up Teams",
390
- description: "Learn how to use round-robin and collective events.",
391
- href: "https://cal.com/docs/enterprise-features/teams"
392
- },
393
- {
394
- id: 1,
395
- thumbnailUrl: "https://img.youtube.com/vi/VZ5PfQzzxBw/0.jpg",
396
- mediaLink: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a",
397
- title: "Dynamic booking links",
398
- description: "Booking link that allows people to quickly schedule meetings.",
399
- href: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a"
400
- }
401
- ], v = ce(he).slice(0).reverse();
402
- function ue() {
403
- const { t } = R(), [r, o] = Q(() => {
404
- if (typeof window > "u")
405
- return v;
406
- try {
407
- const e = k.getItem("removedTipsIds");
408
- if (e !== null) {
409
- const s = e.split(",").map((d) => parseInt(d, 10));
410
- return v.filter((d) => s.indexOf(d.id) === -1);
411
- } else
412
- return v;
413
- } catch {
414
- return v;
415
- }
416
- }), n = (e) => {
417
- o((s) => {
418
- const l = k.getItem("removedTipsIds") || "", d = s.findIndex((u) => u.id === e);
419
- return d === -1 ? [...s] : (k.setItem(
420
- "removedTipsIds",
421
- `${s[d].id.toString()}${l.length > 0 ? `,${l}` : ""}`
422
- ), s.splice(d, 1), [...s]);
423
- });
424
- }, a = r.slice(0).reverse();
425
- return /* @__PURE__ */ i(
426
- "div",
427
- {
428
- className: "hidden pb-4 pt-8 lg:grid",
429
- style: {
430
- gridTemplateColumns: "1fr"
431
- },
432
- children: r.map((e) => {
433
- const s = a.indexOf(e) === 0;
434
- return /* @__PURE__ */ i(
435
- "div",
436
- {
437
- className: "relative",
438
- style: {
439
- gridRowStart: 1,
440
- gridColumnStart: 1
441
- },
442
- children: /* @__PURE__ */ i(
443
- "div",
444
- {
445
- className: "relative",
446
- style: {
447
- transform: `scale(${1 - a.indexOf(e) / 20})`,
448
- top: -a.indexOf(e) * 10,
449
- opacity: `${1 - a.indexOf(e) / 7}`
450
- },
451
- children: /* @__PURE__ */ i(
452
- me,
453
- {
454
- variant: "SidebarCard",
455
- thumbnailUrl: e.thumbnailUrl,
456
- mediaLink: s ? e.mediaLink : void 0,
457
- title: e.title,
458
- description: e.description,
459
- learnMore: s ? { href: e.href, text: t("learn_more") } : void 0,
460
- actionButton: s ? { onClick: () => n(e.id), child: t("dismiss") } : void 0,
461
- containerProps: {
462
- tabIndex: s ? void 0 : -1,
463
- "aria-hidden": s ? void 0 : "true"
464
- }
465
- }
466
- )
467
- }
468
- )
469
- },
470
- e.id
471
- );
472
- })
473
- }
474
- );
475
- }
476
- const be = z(ue);
477
- function ve({
478
- title: t,
479
- description: r,
480
- background: o,
481
- features: n,
482
- buttons: a,
483
- isParentLoading: e,
484
- children: s,
485
- plan: l
486
- }) {
487
- const { resolvedTheme: d } = _(), { isPending: u, hasTeamPlan: m } = $(), { data: p } = V.viewer.teams.getUpgradeable.useQuery(), x = `${o}${d === "dark" ? "-dark" : ""}.jpg`, w = !1, N = !!(p != null && p[0]);
488
- return l === "team" && (m || N) ? /* @__PURE__ */ i(g, { children: s }) : l === "enterprise" && w ? /* @__PURE__ */ i(g, { children: s }) : u ? /* @__PURE__ */ i(g, { children: e }) : /* @__PURE__ */ c(g, { children: [
489
- /* @__PURE__ */ c("div", { className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10", children: [
490
- /* @__PURE__ */ c("picture", { className: "absolute min-h-[295px] w-full rounded-lg object-cover", children: [
491
- /* @__PURE__ */ i("source", { srcSet: x, media: "(prefers-color-scheme: dark)" }),
492
- /* @__PURE__ */ i(
493
- "img",
494
- {
495
- className: "absolute min-h-[295px] w-full select-none rounded-lg object-cover object-left md:object-center",
496
- src: x,
497
- loading: "lazy",
498
- alt: t
499
- }
500
- )
501
- ] }),
502
- /* @__PURE__ */ c("div", { className: "relative my-4 px-8 sm:px-14", children: [
503
- /* @__PURE__ */ i("h1", { className: h("font-cal mt-4 text-3xl"), children: t }),
504
- /* @__PURE__ */ i("p", { className: h("mb-8 mt-4 max-w-sm"), children: r }),
505
- a
506
- ] })
507
- ] }),
508
- /* @__PURE__ */ i("div", { className: "mt-4 grid-cols-3 md:grid md:gap-4", children: n.map((f) => /* @__PURE__ */ c("div", { className: "bg-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0", children: [
509
- f.icon,
510
- /* @__PURE__ */ i("h2", { className: "font-cal text-emphasis mt-4 text-lg", children: f.title }),
511
- /* @__PURE__ */ i("p", { className: "text-default", children: f.description })
512
- ] }, f.title)) })
513
- ] });
514
- }
515
- export {
516
- be as Tips,
517
- ve as UpgradeTip
518
- };
@@ -1,18 +0,0 @@
1
- import { useState as c } from "react";
2
- import { y as o } from "./index-6aqrxRA8.js";
3
- function f(e) {
4
- const { getAppData: a, setAppData: i } = o(), [l, s] = c(() => {
5
- const t = a("enabled");
6
- if (!e.credentialOwner)
7
- return t ?? !1;
8
- const n = a("credentialId");
9
- return (t && (e.userCredentialIds.some((d) => d === n) || e.credentialOwner.credentialId === n)) ?? !1;
10
- });
11
- return { enabled: l, updateEnabled: (t) => {
12
- var n, r, d;
13
- t || i("credentialId", void 0), t && ((n = e.userCredentialIds) != null && n.length || (r = e.credentialOwner) != null && r.credentialId) && i("credentialId", ((d = e.credentialOwner) == null ? void 0 : d.credentialId) || e.userCredentialIds[0]), s(t);
14
- } };
15
- }
16
- export {
17
- f as u
18
- };