@calcom/atoms 1.0.109 → 1.0.111

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 (96) hide show
  1. package/README.md +1 -1
  2. package/dist/{AddressInput-X9MSTJxv.js → AddressInput-KB6kz8jd.js} +1 -1
  3. package/dist/{AlbyPriceComponent-rZIw9z8J.js → AlbyPriceComponent-oomi1mi5.js} +1 -1
  4. package/dist/AppCard-QiR8Srh9.js +281 -0
  5. package/dist/{AppListCardPlatformWrapper-JcOhZ6Bk.js → AppListCardPlatformWrapper-h2jM2g95.js} +1 -1
  6. package/dist/{AppListCardWebWrapper-vsYPbhfm.js → AppListCardWebWrapper-OFBgjlYM.js} +1 -1
  7. package/dist/{AppSettingsInterface-YIqQX8jV.js → AppSettingsInterface-7COrVrq0.js} +1 -1
  8. package/dist/{AppSettingsInterface-QYArTP6h.js → AppSettingsInterface-dKlvoMv2.js} +1 -1
  9. package/dist/{AppSettingsInterface-KswkJyWR.js → AppSettingsInterface-pbYlc78L.js} +1 -1
  10. package/dist/{DateRangePicker-ykDQBbcA.js → DateRangePicker-PzwyBx1B.js} +1 -1
  11. package/dist/{EventTypeAppCardInterface-LE84KQcU.js → EventTypeAppCardInterface-3x755JiU.js} +3 -3
  12. package/dist/{EventTypeAppCardInterface-DiiNsXM_.js → EventTypeAppCardInterface-507LHevd.js} +4 -4
  13. package/dist/{EventTypeAppCardInterface-qTFhmBRO.js → EventTypeAppCardInterface-5ThkZk8K.js} +4 -4
  14. package/dist/{EventTypeAppCardInterface-csGoqDvM.js → EventTypeAppCardInterface-73IWOiiD.js} +3 -3
  15. package/dist/{EventTypeAppCardInterface-2rEMakTG.js → EventTypeAppCardInterface-75U5VYai.js} +3 -3
  16. package/dist/{EventTypeAppCardInterface-2fjoOh9d.js → EventTypeAppCardInterface-8LbWeqrI.js} +4 -4
  17. package/dist/{EventTypeAppCardInterface-G0YgF5Oh.js → EventTypeAppCardInterface-DAchEAmi.js} +3 -3
  18. package/dist/{EventTypeAppCardInterface-mTIhlGsv.js → EventTypeAppCardInterface-FqmTQynb.js} +3 -3
  19. package/dist/{EventTypeAppCardInterface--0HJqgVU.js → EventTypeAppCardInterface-Hlu0jFWw.js} +2 -2
  20. package/dist/{EventTypeAppCardInterface-640cPPhN.js → EventTypeAppCardInterface-NTtL7BeB.js} +4 -4
  21. package/dist/{EventTypeAppCardInterface-bEBDCztz.js → EventTypeAppCardInterface-RaliX3yn.js} +4 -4
  22. package/dist/{EventTypeAppCardInterface-UIpN0aWY.js → EventTypeAppCardInterface-UAnlpa_7.js} +3 -3
  23. package/dist/{EventTypeAppCardInterface-LpHRzrMw.js → EventTypeAppCardInterface-UTxxrcvC.js} +3 -3
  24. package/dist/{EventTypeAppCardInterface-4SHGhcT1.js → EventTypeAppCardInterface-YyYQcCLb.js} +4 -4
  25. package/dist/{EventTypeAppCardInterface-MikSkfsR.js → EventTypeAppCardInterface-aiQ1O2Fx.js} +4 -4
  26. package/dist/{EventTypeAppCardInterface-RcvW-JSW.js → EventTypeAppCardInterface-bPaHnrrw.js} +4 -4
  27. package/dist/{EventTypeAppCardInterface-RNEHybaY.js → EventTypeAppCardInterface-gNG7CLUC.js} +3 -3
  28. package/dist/{EventTypeAppCardInterface-cYOctk-X.js → EventTypeAppCardInterface-kzZe7_nW.js} +4 -4
  29. package/dist/{EventTypeAppCardInterface-Uw5duFJG.js → EventTypeAppCardInterface-qnzgEVgx.js} +4 -4
  30. package/dist/{EventTypeAppCardInterface-jA6Tf_NN.js → EventTypeAppCardInterface-qv1aKHZi.js} +3 -3
  31. package/dist/{EventTypeAppCardInterface-GwN-0CuD.js → EventTypeAppCardInterface-sM5oG-nM.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-2arNb9K7.js → EventTypeAppCardInterface-sca6lBYk.js} +3 -3
  33. package/dist/{EventTypeAppCardInterface-uBtB-JtI.js → EventTypeAppCardInterface-tUKSDdlH.js} +3 -3
  34. package/dist/{EventTypeAppCardInterface-n9MKK8k-.js → EventTypeAppCardInterface-ti-rNnZb.js} +2 -2
  35. package/dist/{EventTypeAppCardInterface-YaVqliTi.js → EventTypeAppCardInterface-wu_3YRX-.js} +3 -3
  36. package/dist/EventTypeAppCardInterface-wzbXpbmI.js +24 -0
  37. package/dist/{EventTypeAppSettingsInterface-DvzwhpS4.js → EventTypeAppSettingsInterface--vQ93o16.js} +1 -1
  38. package/dist/{EventTypeAppSettingsInterface-pM9APOwD.js → EventTypeAppSettingsInterface-9lNYGi2n.js} +1 -1
  39. package/dist/{EventTypeAppSettingsInterface-I_M98dpB.js → EventTypeAppSettingsInterface-DMrIHmgd.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-WqMxnmtB.js → EventTypeAppSettingsInterface-KHIuFGBN.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-1z9RlP2q.js → EventTypeAppSettingsInterface-L1Xo8tyr.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-Dgxx4EOz.js → EventTypeAppSettingsInterface-Pu5B82S0.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-5rzPj6RJ.js → EventTypeAppSettingsInterface-R_ad05AV.js} +1 -1
  44. package/dist/{EventTypeAppSettingsInterface-JU2esK9u.js → EventTypeAppSettingsInterface-YWfWvEU3.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-k7ADZP2n.js → EventTypeAppSettingsInterface-_RDwKkaA.js} +1 -1
  46. package/dist/{EventTypeAppSettingsInterface-1OeQiS9s.js → EventTypeAppSettingsInterface-btPUVD8h.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-pEmxjcGA.js → EventTypeAppSettingsInterface-c2021R4F.js} +1 -1
  48. package/dist/{EventTypeAppSettingsInterface-_u5NeljM.js → EventTypeAppSettingsInterface-tKBioveg.js} +1 -1
  49. package/dist/{InstallAppButton-09p2CmtK.js → InstallAppButton-Iv6u_RfE.js} +1 -1
  50. package/dist/{InstallAppButton-hAjz0J1w.js → InstallAppButton-Y17r7ILt.js} +1 -1
  51. package/dist/{InstallAppButton-c2xekvnV.js → InstallAppButton-dSCw_yR0.js} +1 -1
  52. package/dist/{PhoneInput-xdp0Cs2w.js → PhoneInput-PW7Cwn_k.js} +1 -1
  53. package/dist/{StripePaymentForm-1jEIav1G.js → StripePaymentForm-g3sWk7Tq.js} +1 -1
  54. package/dist/cal-atoms.js +3 -3
  55. package/dist/{index-uCSCC7tc.js → index-Bsynpgsa.js} +1 -1
  56. package/dist/{index-GT1AyL0p.js → index-J6APIiEa.js} +47764 -47563
  57. package/dist/{index-PEm7lcCq.js → index-qEFnZPmB.js} +1 -1
  58. package/dist/{index-YGmVh6hq.js → index-zYn1uiuE.js} +1 -1
  59. package/dist/packages/features/bookings/Booker/utils/event.d.ts +1 -1
  60. package/dist/packages/features/bookings/lib/conflictChecker/checkForConflicts.d.ts.map +1 -1
  61. package/dist/packages/features/bookings/lib/create-booking.d.ts +6 -6
  62. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +6 -6
  63. package/dist/packages/features/bookings/lib/getBookingFields.d.ts.map +1 -1
  64. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +4 -4
  65. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +3 -3
  66. package/dist/packages/features/bookings/lib/getUserBooking.d.ts +2 -2
  67. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +2 -2
  68. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +3 -3
  69. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +6 -6
  70. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  71. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +2 -2
  72. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +2 -2
  73. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +2 -2
  74. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts +7 -3
  75. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts.map +1 -1
  76. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +2 -2
  77. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  78. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  79. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +1 -1
  80. package/dist/packages/features/ee/workflows/lib/schema.d.ts +4 -4
  81. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  82. package/dist/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.d.ts +1 -0
  83. package/dist/packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.d.ts.map +1 -1
  84. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +1 -1
  85. package/dist/packages/features/form-builder/FormBuilder.d.ts +2 -1
  86. package/dist/packages/features/form-builder/FormBuilder.d.ts.map +1 -1
  87. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +1 -1
  88. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +6 -6
  89. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +6 -6
  90. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +6 -6
  91. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +1 -1
  92. package/dist/packages/prisma/zod/workflowstep.d.ts +2 -2
  93. package/dist/{useIsAppEnabled-5SoPlXJJ.js → useIsAppEnabled-88ccKgkc.js} +1 -1
  94. package/package.json +3 -3
  95. package/dist/AppCard-5GSEjtmd.js +0 -302
  96. package/dist/EventTypeAppCardInterface-UzE3Vpmd.js +0 -24
package/README.md CHANGED
@@ -3,7 +3,7 @@ Customizable UI components to integrate scheduling into your services.
3
3
  ### Support
4
4
  Currently supports React 18, React 19, Next 14 and Next 15.
5
5
 
6
- ### Changelog
6
+ ### Changelog
7
7
  1. Changelog can be viewed [here](https://github.com/calcom/cal.com/blob/main/packages/platform/atoms/CHANGELOG.md).
8
8
  2. For upcoming changes in the next release click [here](https://github.com/calcom/cal.com/pulls?q=is%3Apr+is%3Aopen+%22chore%3A+version+packages%22+in%3Atitle) to see a pull request titled `chore: version packages` containing next release changes.
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { N as n, e as o, M as c } from "./index-GT1AyL0p.js";
2
+ import { N as n, e as o, M as c } from "./index-J6APIiEa.js";
3
3
  function r({ value: s, onChange: t, ...a }) {
4
4
  return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
5
5
  /* @__PURE__ */ e(
@@ -1,6 +1,6 @@
1
1
  import { jsx as K, jsxs as er } from "react/jsx-runtime";
2
2
  import z from "react";
3
- import { K as tr, O as nr } from "./index-GT1AyL0p.js";
3
+ import { K as tr, O as nr } from "./index-J6APIiEa.js";
4
4
  const J = function(s, r = !0) {
5
5
  if (s.destroyed)
6
6
  throw new Error("Hash instance has been destroyed");
@@ -0,0 +1,281 @@
1
+ import { jsx as l, Fragment as O, jsxs as a } from "react/jsx-runtime";
2
+ import { ag as V, ah as v, M as u, N as C, ai as W, y as A, q as H, u as T, aj as q, r as j, _ as N, ak as L, t as F, ae as M, al as g, p as U } from "./index-J6APIiEa.js";
3
+ import * as c from "react";
4
+ var y = c.forwardRef((e, r) => {
5
+ const { children: t, ...n } = e, s = c.Children.toArray(t), i = s.find(Z);
6
+ if (i) {
7
+ const o = i.props.children, f = s.map((d) => d === i ? c.Children.count(o) > 1 ? c.Children.only(null) : c.isValidElement(o) ? o.props.children : null : d);
8
+ return /* @__PURE__ */ l(x, { ...n, ref: r, children: c.isValidElement(o) ? c.cloneElement(o, void 0, f) : null });
9
+ }
10
+ return /* @__PURE__ */ l(x, { ...n, ref: r, children: t });
11
+ });
12
+ y.displayName = "Slot";
13
+ var x = c.forwardRef((e, r) => {
14
+ const { children: t, ...n } = e;
15
+ if (c.isValidElement(t)) {
16
+ const s = G(t);
17
+ return c.cloneElement(t, {
18
+ ...p(n, t.props),
19
+ // @ts-ignore
20
+ ref: r ? V(r, s) : s
21
+ });
22
+ }
23
+ return c.Children.count(t) > 1 ? c.Children.only(null) : null;
24
+ });
25
+ x.displayName = "SlotClone";
26
+ var Q = ({ children: e }) => /* @__PURE__ */ l(O, { children: e });
27
+ function Z(e) {
28
+ return c.isValidElement(e) && e.type === Q;
29
+ }
30
+ function p(e, r) {
31
+ const t = { ...r };
32
+ for (const n in r) {
33
+ const s = e[n], i = r[n];
34
+ /^on[A-Z]/.test(n) ? s && i ? t[n] = (...f) => {
35
+ i(...f), s(...f);
36
+ } : s && (t[n] = s) : n === "style" ? t[n] = { ...s, ...i } : n === "className" && (t[n] = [s, i].filter(Boolean).join(" "));
37
+ }
38
+ return { ...e, ...t };
39
+ }
40
+ function G(e) {
41
+ var n, s;
42
+ let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
43
+ return t ? e.ref : (r = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
44
+ }
45
+ const J = ({
46
+ children: e,
47
+ ref: r,
48
+ className: t
49
+ }) => {
50
+ const [n] = v();
51
+ return /* @__PURE__ */ l("div", { ref: n, className: u("bg-muted flex flex-col gap-4 rounded-2xl p-4", t), children: e });
52
+ }, R = ({
53
+ children: e,
54
+ ref: r,
55
+ as: t
56
+ }) => /* @__PURE__ */ l(t ? y : "h2", { ref: r, className: "text-emphasis text-base font-semibold leading-none", children: e }), _ = ({
57
+ children: e,
58
+ ref: r,
59
+ as: t
60
+ }) => /* @__PURE__ */ l(t ? y : "h3", { ref: r, className: "text-subtle line-clamp-1 text-sm", children: e }), b = ({
61
+ ref: e,
62
+ name: r,
63
+ size: t = "md",
64
+ iconSlot: n
65
+ }) => /* @__PURE__ */ l(
66
+ "div",
67
+ {
68
+ ref: e,
69
+ className: u(
70
+ "bg-default border-subtle border-subtle flex items-center justify-center border",
71
+ t === "sm" && "rounded-md p-1",
72
+ t === "md" && "rounded-[10px] p-1.5"
73
+ ),
74
+ children: n || /* @__PURE__ */ l(C, { name: r, className: u(t === "sm" && "h-4 w-4", t === "md" && "h-6 w-6") })
75
+ }
76
+ ), K = ({
77
+ children: e,
78
+ ref: r,
79
+ icon: t,
80
+ title: n,
81
+ description: s,
82
+ iconSlot: i,
83
+ rawHeading: o
84
+ }) => /* @__PURE__ */ a("div", { ref: r, className: "flex items-center justify-between gap-3", children: [
85
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
86
+ t && !i && /* @__PURE__ */ l(b, { name: t }),
87
+ i && /* @__PURE__ */ l(b, { iconSlot: i }),
88
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-0.5", children: [
89
+ n && /* @__PURE__ */ l(R, { children: n }),
90
+ s && /* @__PURE__ */ l(_, { children: s }),
91
+ o && o
92
+ ] })
93
+ ] }),
94
+ e
95
+ ] }), X = ({ children: e, ref: r }) => /* @__PURE__ */ l("div", { ref: r, className: "flex flex-col gap-4", children: e }), Y = ({ children: e, ref: r }) => {
96
+ const [t] = v();
97
+ return /* @__PURE__ */ l("div", { ref: t, className: "border-muted bg-default flex flex-col gap-4 rounded-xl border p-3", children: e });
98
+ }, z = ({
99
+ children: e,
100
+ ref: r,
101
+ icon: t,
102
+ title: n,
103
+ classNames: s,
104
+ justify: i = "between",
105
+ labelFor: o
106
+ }) => /* @__PURE__ */ a(
107
+ "div",
108
+ {
109
+ ref: r,
110
+ className: u(
111
+ "flex items-center gap-2",
112
+ i === "between" ? "justify-between" : "justify-start",
113
+ s == null ? void 0 : s.container
114
+ ),
115
+ children: [
116
+ /* @__PURE__ */ a("div", { className: u("flex items-center gap-2", s == null ? void 0 : s.title), children: [
117
+ t && /* @__PURE__ */ l(b, { name: t, size: "sm" }),
118
+ /* @__PURE__ */ l("div", { className: u("flex", s == null ? void 0 : s.title), children: /* @__PURE__ */ l("h4", { className: "text-default text-sm font-medium leading-none", id: o, children: n }) })
119
+ ] }),
120
+ e
121
+ ]
122
+ }
123
+ ), $ = ({
124
+ children: e,
125
+ ref: r,
126
+ invert: t,
127
+ classNames: n
128
+ }) => /* @__PURE__ */ l(
129
+ "div",
130
+ {
131
+ ref: r,
132
+ className: u(
133
+ "bg-muted flex flex-col rounded-lg px-[6px] py-1",
134
+ t && "bg-default border-subtle border",
135
+ n == null ? void 0 : n.container
136
+ ),
137
+ children: e
138
+ }
139
+ ), ee = ({
140
+ children: e,
141
+ ref: r
142
+ }) => /* @__PURE__ */ l("div", { ref: r, className: "bg-default border-subtle flex flex-col gap-2 rounded-xl border p-2", children: e }), h = Object.assign(J, {
143
+ Header: K,
144
+ Content: X,
145
+ Title: R,
146
+ Description: _,
147
+ SubSection: Y,
148
+ SubSectionHeader: z,
149
+ SubSectionContent: $,
150
+ SubSectionNested: ee
151
+ });
152
+ function te(e) {
153
+ const { status: r } = W.useSession();
154
+ return A.viewer.apps.appById.useQuery(
155
+ { appId: e },
156
+ {
157
+ enabled: r === "authenticated"
158
+ }
159
+ );
160
+ }
161
+ function ne({
162
+ appId: e,
163
+ className: r,
164
+ returnTo: t,
165
+ teamId: n
166
+ }) {
167
+ const { t: s } = H(), { data: i } = te(e), o = A.useUtils(), f = T(null, {
168
+ returnTo: t,
169
+ onSuccess: (d) => {
170
+ o.viewer.apps.appById.invalidate({ appId: e }), o.viewer.apps.integrations.invalidate({
171
+ extendsFeature: "EventType",
172
+ ...n && { teamId: n }
173
+ }), !(d != null && d.setupPending) && N(s("app_successfully_installed"), "success");
174
+ },
175
+ onError: (d) => {
176
+ d instanceof Error && N(d.message || s("app_could_not_be_installed"), "error");
177
+ }
178
+ });
179
+ return i ? /* @__PURE__ */ l(
180
+ q,
181
+ {
182
+ type: i.type,
183
+ teamsPlanRequired: i.teamsPlanRequired,
184
+ wrapperClassName: u("[@media(max-width:260px)]:w-full", r),
185
+ render: ({ useDefaultComponent: d, ...m }) => (d && (m = {
186
+ ...m,
187
+ onClick: () => {
188
+ f.mutate({
189
+ type: i.type,
190
+ variant: i.variant,
191
+ slug: i.slug,
192
+ ...n && { teamId: n }
193
+ });
194
+ }
195
+ }), /* @__PURE__ */ l(
196
+ j,
197
+ {
198
+ loading: f.isPending,
199
+ color: "secondary",
200
+ className: "[@media(max-width:260px)]:w-full [@media(max-width:260px)]:justify-center",
201
+ StartIcon: "plus",
202
+ ...m,
203
+ children: s("add")
204
+ }
205
+ ))
206
+ }
207
+ ) : null;
208
+ }
209
+ function se({
210
+ app: e,
211
+ description: r,
212
+ switchOnClick: t,
213
+ switchChecked: n,
214
+ children: s,
215
+ returnTo: i,
216
+ teamId: o,
217
+ disableSwitch: f,
218
+ switchTooltip: d,
219
+ hideSettingsIcon: m = !1,
220
+ hideAppCardOptions: E = !1
221
+ }) {
222
+ const { t: w } = L(), [I] = v(), { setAppData: P, LockedIcon: k, disabled: B } = F(), D = M();
223
+ return /* @__PURE__ */ a(h, { className: u(!(e != null && e.isInstalled) && "rounded-xl"), children: [
224
+ /* @__PURE__ */ l(
225
+ h.Header,
226
+ {
227
+ rawHeading: /* @__PURE__ */ a("div", { children: [
228
+ /* @__PURE__ */ a("div", { className: "flex w-full items-center gap-1", children: [
229
+ /* @__PURE__ */ l(h.Title, { children: e == null ? void 0 : e.name }),
230
+ !(e != null && e.isInstalled) && /* @__PURE__ */ l("span", { className: "bg-emphasis ml-1 rounded px-1 py-0.5 text-xs font-medium leading-3 tracking-[0.01em]", children: (e == null ? void 0 : e.categories[0].charAt(0).toUpperCase()) + (e == null ? void 0 : e.categories[0].slice(1)) })
231
+ ] }),
232
+ /* @__PURE__ */ l(h.Description, { children: e == null ? void 0 : e.description })
233
+ ] }),
234
+ iconSlot: /* @__PURE__ */ l(g, { href: `/apps/${e.slug}`, className: "flex h-8 w-8 items-center justify-center", children: /* @__PURE__ */ l(
235
+ "img",
236
+ {
237
+ className: u(
238
+ (e == null ? void 0 : e.logo.includes("-dark")) && "dark:invert",
239
+ "max-h-full max-w-full object-contain"
240
+ ),
241
+ src: e == null ? void 0 : e.logo,
242
+ alt: e == null ? void 0 : e.name
243
+ }
244
+ ) }),
245
+ children: /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("div", { children: e != null && e.isInstalled || e.credentialOwner ? /* @__PURE__ */ l("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ l(
246
+ U,
247
+ {
248
+ size: "sm",
249
+ disabled: !e.enabled || B || f,
250
+ onCheckedChange: (S) => {
251
+ t && t(S), P("enabled", S);
252
+ },
253
+ checked: n,
254
+ LockedIcon: k,
255
+ "data-testid": `${e.slug}-app-switch`,
256
+ tooltip: d
257
+ }
258
+ ) }) : /* @__PURE__ */ l(
259
+ ne,
260
+ {
261
+ className: "ml-auto flex items-center",
262
+ appId: e.slug,
263
+ returnTo: i,
264
+ teamId: o
265
+ }
266
+ ) }) })
267
+ }
268
+ ),
269
+ E ? null : (e == null ? void 0 : e.isInstalled) && n && /* @__PURE__ */ l("div", { ref: I, children: e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ a("div", { className: "relative text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
270
+ !m && !D && /* @__PURE__ */ l(g, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ l(C, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
271
+ s
272
+ ] }) : /* @__PURE__ */ a("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
273
+ /* @__PURE__ */ l("p", { children: w("this_app_is_not_setup_already") }),
274
+ /* @__PURE__ */ l(g, { href: `/apps/${e.slug}/setup`, children: /* @__PURE__ */ l(j, { StartIcon: "settings", children: w("setup") }) })
275
+ ] }) })
276
+ ] });
277
+ }
278
+ export {
279
+ se as A,
280
+ h as S
281
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { A as p } from "./index-GT1AyL0p.js";
2
+ import { A as p } from "./index-J6APIiEa.js";
3
3
  function s(o) {
4
4
  const t = `https://app.cal.com${o.logo}`;
5
5
  return /* @__PURE__ */ r(p, { ...o, logo: t });
@@ -1,5 +1,5 @@
1
1
  import { jsx as P } from "react/jsx-runtime";
2
- import { Q as i, s as y, R as A, U as R, A as Q } from "./index-GT1AyL0p.js";
2
+ import { Q as i, s as y, R as A, U as R, A as Q } from "./index-J6APIiEa.js";
3
3
  import { useMemo as $, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
4
4
  i.string().or(i.number()).or(i.array(i.number())).transform((r) => typeof r == "string" ? r.split(",").map((o) => Number(o)) : Array.isArray(r) ? r : [r]);
5
5
  i.preprocess((r) => i.string().parse(r).split(","), i.string().array()).or(i.string().array());
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as s } from "react";
3
- import { q as i, f as l, r as m } from "./index-GT1AyL0p.js";
3
+ import { q as i, f as l, r as m } from "./index-J6APIiEa.js";
4
4
  function h() {
5
5
  const { t: a } = i(), n = "metric", [e, r] = s("");
6
6
  return /* @__PURE__ */ o("div", { className: "space-y-4 text-sm", children: [
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as e, Fragment as r } from "react/jsx-runtime";
2
- import { r as i, q as o } from "./index-GT1AyL0p.js";
2
+ import { r as i, q as o } from "./index-J6APIiEa.js";
3
3
  function d({ template: t }) {
4
4
  return /* @__PURE__ */ a("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
5
5
  /* @__PURE__ */ a("div", { className: "flex items-start justify-start", children: [
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as p } from "react";
3
- import { q as r, f as u, r as i } from "./index-GT1AyL0p.js";
3
+ import { q as r, f as u, r as i } from "./index-J6APIiEa.js";
4
4
  function d() {
5
5
  const { t: e } = r(), [s, n] = p("");
6
6
  return /* @__PURE__ */ o("div", { className: "space-y-4 px-4 pb-4 pt-4 text-sm", children: [
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as O, Fragment as T } from "react/jsx-runtime";
2
- import { M as J, av as Ye, aw as Fe, N as Le, ax as Dt, ay as Mt, r as _t, az as kt } from "./index-GT1AyL0p.js";
2
+ import { M as J, aw as Ye, ax as Fe, N as Le, ay as Dt, az as Mt, r as _t, aA as kt } from "./index-J6APIiEa.js";
3
3
  import { createContext as q, forwardRef as Nt, useContext as Q, useState as K, useEffect as ie, useLayoutEffect as xt, useRef as Pt } from "react";
4
4
  function M(e) {
5
5
  const t = Object.prototype.toString.call(e);
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { t as l, f as m } from "./index-GT1AyL0p.js";
3
- import { A as u } from "./AppCard-5GSEjtmd.js";
4
- import { u as h } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { t as l, f as m } from "./index-J6APIiEa.js";
3
+ import { A as u } from "./AppCard-QiR8Srh9.js";
4
+ import { u as h } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const D = function({ app: a, eventType: d }) {
6
6
  var s;
7
7
  const { getAppData: n, setAppData: r, disabled: p } = l(), i = n("SITE_ID"), { enabled: o, updateEnabled: c } = h(a);
@@ -1,9 +1,9 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { q as b, s as f, t as E, v, W as y } from "./index-GT1AyL0p.js";
2
+ import { q as b, s as f, t as E, v, W as y } from "./index-J6APIiEa.js";
3
3
  import { useState as C } from "react";
4
- import { A as P } from "./AppCard-5GSEjtmd.js";
5
- import { u as g } from "./useIsAppEnabled-5SoPlXJJ.js";
6
- import w from "./EventTypeAppSettingsInterface-I_M98dpB.js";
4
+ import { A as P } from "./AppCard-QiR8Srh9.js";
5
+ import { u as g } from "./useIsAppEnabled-88ccKgkc.js";
6
+ import w from "./EventTypeAppSettingsInterface-DMrIHmgd.js";
7
7
  const W = function({
8
8
  app: t,
9
9
  eventType: e,
@@ -1,8 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { t as d } from "./index-GT1AyL0p.js";
3
- import { A as c } from "./AppCard-5GSEjtmd.js";
4
- import { u as m } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import l from "./EventTypeAppSettingsInterface-JU2esK9u.js";
2
+ import { t as d } from "./index-J6APIiEa.js";
3
+ import { A as c } from "./AppCard-QiR8Srh9.js";
4
+ import { u as m } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import l from "./EventTypeAppSettingsInterface-YWfWvEU3.js";
6
6
  const b = function({ app: t, eventType: p }) {
7
7
  const { getAppData: r, setAppData: s, disabled: a } = d(), { enabled: n, updateEnabled: o } = m(t);
8
8
  return /* @__PURE__ */ e(
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { t as m, N as o } from "./index-GT1AyL0p.js";
3
- import { A as u } from "./AppCard-5GSEjtmd.js";
4
- import { u as h } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { t as m, N as o } from "./index-J6APIiEa.js";
3
+ import { A as u } from "./AppCard-QiR8Srh9.js";
4
+ import { u as h } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const E = function({ eventType: a, app: s }) {
6
6
  var n;
7
7
  const { getAppData: l, setAppData: i } = m(), p = l("isSunrise"), { enabled: c, updateEnabled: r } = h(s);
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-GT1AyL0p.js";
3
- import { A as m } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { s as d, W as i } from "./index-J6APIiEa.js";
3
+ import { A as m } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const l = function({ app: t, eventType: e }) {
6
6
  var a;
7
7
  const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-GT1AyL0p.js";
3
- import { A as c } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import l from "./EventTypeAppSettingsInterface-Dgxx4EOz.js";
2
+ import { t as m } from "./index-J6APIiEa.js";
3
+ import { A as c } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import l from "./EventTypeAppSettingsInterface--vQ93o16.js";
6
6
  const b = function({ app: t, eventType: e }) {
7
7
  var p;
8
8
  const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-GT1AyL0p.js";
3
- import { A as m } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { s as d, W as i } from "./index-J6APIiEa.js";
3
+ import { A as m } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const l = function({ app: t, eventType: e }) {
6
6
  var a;
7
7
  const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
@@ -1,7 +1,7 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { t as l, f as m } from "./index-GT1AyL0p.js";
3
- import { A as u } from "./AppCard-5GSEjtmd.js";
4
- import { u as I } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { t as l, f as m } from "./index-J6APIiEa.js";
3
+ import { A as u } from "./AppCard-QiR8Srh9.js";
4
+ import { u as I } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const D = function({ app: t, eventType: n }) {
6
6
  var a;
7
7
  const { getAppData: o, setAppData: r, disabled: d } = l(), s = o("SITE_ID"), { enabled: i, updateEnabled: c } = I(t);
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
- import { s as v, q as F, t as T, w as a, W as _, x as L, f as V, S as x } from "./index-GT1AyL0p.js";
2
+ import { s as v, q as F, t as T, w as a, W as _, x as L, f as V, S as x } from "./index-J6APIiEa.js";
3
3
  import { useMemo as W, useState as p } from "react";
4
- import { A as $ } from "./AppCard-5GSEjtmd.js";
4
+ import { A as $ } from "./AppCard-QiR8Srh9.js";
5
5
  import { c as g, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
6
  const H = function({ app: S, eventType: A }) {
7
7
  var f, h;
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-GT1AyL0p.js";
3
- import { A as c } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import l from "./EventTypeAppSettingsInterface-DvzwhpS4.js";
2
+ import { t as m } from "./index-J6APIiEa.js";
3
+ import { A as c } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import l from "./EventTypeAppSettingsInterface-c2021R4F.js";
6
6
  const b = function({ app: t, eventType: e }) {
7
7
  var p;
8
8
  const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
@@ -1,8 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { t as m, q as f } from "./index-GT1AyL0p.js";
3
- import { A as l } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import A from "./EventTypeAppSettingsInterface-k7ADZP2n.js";
2
+ import { t as m, q as f } from "./index-J6APIiEa.js";
3
+ import { A as l } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import A from "./EventTypeAppSettingsInterface-_RDwKkaA.js";
6
6
  const w = function({ app: t, eventType: e }) {
7
7
  var o;
8
8
  const { getAppData: s, setAppData: a, disabled: p } = m(), { enabled: n, updateEnabled: r } = u(t), { t: c } = f();
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
- import { t as h, f as n } from "./index-GT1AyL0p.js";
3
- import { A as I } from "./AppCard-5GSEjtmd.js";
4
- import { u as C } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { t as h, f as n } from "./index-J6APIiEa.js";
3
+ import { A as I } from "./AppCard-QiR8Srh9.js";
4
+ import { u as C } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const R = function({ app: s, eventType: o }) {
6
6
  var i;
7
7
  const { getAppData: p, setAppData: r, disabled: t } = h(), c = p("SITE_ID"), d = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = C(s);
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { s as i, q as g, t as f, v as b, W as v } from "./index-GT1AyL0p.js";
2
+ import { s as i, q as g, t as f, v as b, W as v } from "./index-J6APIiEa.js";
3
3
  import { useMemo as S, useState as C } from "react";
4
- import { A as w } from "./AppCard-5GSEjtmd.js";
5
- import E from "./EventTypeAppSettingsInterface-_u5NeljM.js";
4
+ import { A as w } from "./AppCard-QiR8Srh9.js";
5
+ import E from "./EventTypeAppSettingsInterface-tKBioveg.js";
6
6
  const W = function({
7
7
  app: a,
8
8
  eventType: p,
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as d } from "./index-GT1AyL0p.js";
3
- import { A as m } from "./AppCard-5GSEjtmd.js";
4
- import { u as c } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import u from "./EventTypeAppSettingsInterface-5rzPj6RJ.js";
2
+ import { t as d } from "./index-J6APIiEa.js";
3
+ import { A as m } from "./AppCard-QiR8Srh9.js";
4
+ import { u as c } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import u from "./EventTypeAppSettingsInterface-R_ad05AV.js";
6
6
  const E = function({ app: t, eventType: e }) {
7
7
  var p;
8
8
  const { getAppData: r, setAppData: s, disabled: n } = d(), { enabled: o, updateEnabled: i } = c(t);
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-GT1AyL0p.js";
3
- import { A as c } from "./AppCard-5GSEjtmd.js";
4
- import { u as l } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import u from "./EventTypeAppSettingsInterface-pM9APOwD.js";
2
+ import { t as m } from "./index-J6APIiEa.js";
3
+ import { A as c } from "./AppCard-QiR8Srh9.js";
4
+ import { u as l } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import u from "./EventTypeAppSettingsInterface-9lNYGi2n.js";
6
6
  const g = function({ eventType: e, app: t }) {
7
7
  var p;
8
8
  const { enabled: r, updateEnabled: s } = l(t), { disabled: o, getAppData: n, setAppData: d } = m();
@@ -1,9 +1,9 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { q as b, s as f, t as y, v as E, W as P } from "./index-GT1AyL0p.js";
2
+ import { q as b, s as f, t as y, v as E, W as P } from "./index-J6APIiEa.js";
3
3
  import { useState as v } from "react";
4
- import { A as C } from "./AppCard-5GSEjtmd.js";
5
- import { u as g } from "./useIsAppEnabled-5SoPlXJJ.js";
6
- import w from "./EventTypeAppSettingsInterface-1z9RlP2q.js";
4
+ import { A as C } from "./AppCard-QiR8Srh9.js";
5
+ import { u as g } from "./useIsAppEnabled-88ccKgkc.js";
6
+ import w from "./EventTypeAppSettingsInterface-L1Xo8tyr.js";
7
7
  const W = function({
8
8
  app: t,
9
9
  eventType: e,
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-GT1AyL0p.js";
3
- import { A as m } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { s as d, W as i } from "./index-J6APIiEa.js";
3
+ import { A as m } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const l = function({ app: t, eventType: e }) {
6
6
  var a;
7
7
  const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-GT1AyL0p.js";
3
- import { A as c } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import l from "./EventTypeAppSettingsInterface-pEmxjcGA.js";
2
+ import { t as m } from "./index-J6APIiEa.js";
3
+ import { A as c } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import l from "./EventTypeAppSettingsInterface-btPUVD8h.js";
6
6
  const b = function({ app: t, eventType: e }) {
7
7
  var p;
8
8
  const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-GT1AyL0p.js";
3
- import { A as c } from "./AppCard-5GSEjtmd.js";
4
- import { u } from "./useIsAppEnabled-5SoPlXJJ.js";
5
- import l from "./EventTypeAppSettingsInterface-1OeQiS9s.js";
2
+ import { t as m } from "./index-J6APIiEa.js";
3
+ import { A as c } from "./AppCard-QiR8Srh9.js";
4
+ import { u } from "./useIsAppEnabled-88ccKgkc.js";
5
+ import l from "./EventTypeAppSettingsInterface-Pu5B82S0.js";
6
6
  const b = function({ app: t, eventType: e }) {
7
7
  var p;
8
8
  const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
- import { s as i, t as f, v as g, q as v, W as S } from "./index-GT1AyL0p.js";
2
+ import { s as i, t as f, v as g, q as v, W as S } from "./index-J6APIiEa.js";
3
3
  import { useMemo as b, useState as C } from "react";
4
- import { A as w } from "./AppCard-5GSEjtmd.js";
5
- import E from "./EventTypeAppSettingsInterface-WqMxnmtB.js";
4
+ import { A as w } from "./AppCard-QiR8Srh9.js";
5
+ import E from "./EventTypeAppSettingsInterface-KHIuFGBN.js";
6
6
  const W = function({
7
7
  app: a,
8
8
  eventType: c,
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { t as h, f as n } from "./index-GT1AyL0p.js";
3
- import { A } from "./AppCard-5GSEjtmd.js";
4
- import { u as I } from "./useIsAppEnabled-5SoPlXJJ.js";
2
+ import { t as h, f as n } from "./index-J6APIiEa.js";
3
+ import { A } from "./AppCard-QiR8Srh9.js";
4
+ import { u as I } from "./useIsAppEnabled-88ccKgkc.js";
5
5
  const E = function({ app: t, eventType: i }) {
6
6
  var d;
7
7
  const { getAppData: o, setAppData: s, disabled: r } = h(), l = o("MATOMO_URL"), p = o("SITE_ID"), { enabled: c, updateEnabled: m } = I(t);