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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/{AddressInput-BwaFtJdW.js → AddressInput-qOwBw82l.js} +3 -3
  2. package/dist/{AlbyPriceComponent-5_IY8XI4.js → AlbyPriceComponent-14WMMqki.js} +19 -19
  3. package/dist/{PhoneInput-EZYUI6dU.js → PhoneInput-KTVGO9ZB.js} +2 -2
  4. package/dist/cal-atoms.js +3 -34
  5. package/dist/cal-atoms.umd.cjs +311 -589
  6. package/dist/{framer-features-pqh7SjMd.js → framer-features-wa04YMAt.js} +21 -21
  7. package/dist/index-mBOxto7x.js +1258 -0
  8. package/dist/index-ufJK1qLx.js +79422 -0
  9. package/dist/index-uq2VH8T8.js +1957 -0
  10. package/dist/{index-_1xRkNP6.js → index-yezu2nAJ.js} +1 -1
  11. package/dist/isSupportedCountry-xN7Xshgi.js +487 -0
  12. package/dist/packages/lib/invertLogoOnDark.d.ts +1 -1
  13. package/dist/packages/platform/atoms/index.d.ts +0 -32
  14. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  15. package/dist/style.css +1 -1
  16. package/package.json +1 -1
  17. package/dist/AppCard-vvom7JzI.js +0 -162
  18. package/dist/AppListCardPlatformWrapper-BMbohX9G.js +0 -9
  19. package/dist/AppListCardWebWrapper-jgSaE2tc.js +0 -74
  20. package/dist/AppSettingsInterface-GvEAHqgC.js +0 -23
  21. package/dist/AppSettingsInterface-hahnFvsF.js +0 -29
  22. package/dist/AppSettingsInterface-rwvU2JZ1.js +0 -75
  23. package/dist/DateRangePicker-H2MDflCi.js +0 -2401
  24. package/dist/EventTypeAppCardInterface-12lncOdf.js +0 -34
  25. package/dist/EventTypeAppCardInterface-27TiN1LB.js +0 -34
  26. package/dist/EventTypeAppCardInterface-4REsm-ax.js +0 -24
  27. package/dist/EventTypeAppCardInterface-BIBLDaQW.js +0 -41
  28. package/dist/EventTypeAppCardInterface-Bxn2VRDe.js +0 -42
  29. package/dist/EventTypeAppCardInterface-Ia4uQvA6.js +0 -24
  30. package/dist/EventTypeAppCardInterface-IsxbWtC-.js +0 -86
  31. package/dist/EventTypeAppCardInterface-MYYfLsWy.js +0 -31
  32. package/dist/EventTypeAppCardInterface-TvEkNxDI.js +0 -34
  33. package/dist/EventTypeAppCardInterface-W-C-Vuq4.js +0 -32
  34. package/dist/EventTypeAppCardInterface-YC7gXugR.js +0 -41
  35. package/dist/EventTypeAppCardInterface-ZN2mBt9v.js +0 -34
  36. package/dist/EventTypeAppCardInterface-Ze5KpMAZ.js +0 -24
  37. package/dist/EventTypeAppCardInterface-ZshqKbPT.js +0 -34
  38. package/dist/EventTypeAppCardInterface-_8D8Qs9P.js +0 -51
  39. package/dist/EventTypeAppCardInterface-cXUeW2Wg.js +0 -24
  40. package/dist/EventTypeAppCardInterface-f4ubwOzR.js +0 -42
  41. package/dist/EventTypeAppCardInterface-g5WwbLf6.js +0 -39
  42. package/dist/EventTypeAppCardInterface-iMFMTR_Q.js +0 -24
  43. package/dist/EventTypeAppCardInterface-kh27UiaS.js +0 -34
  44. package/dist/EventTypeAppCardInterface-loGF0ZWc.js +0 -452
  45. package/dist/EventTypeAppCardInterface-mpaqmq1C.js +0 -32
  46. package/dist/EventTypeAppCardInterface-n2hGNKAo.js +0 -34
  47. package/dist/EventTypeAppCardInterface-nYtaHSPH.js +0 -49
  48. package/dist/EventTypeAppCardInterface-qIAbqcW-.js +0 -51
  49. package/dist/EventTypeAppCardInterface-zTg1f5hR.js +0 -33
  50. package/dist/EventTypeAppSettingsInterface-2iQLRc2L.js +0 -23
  51. package/dist/EventTypeAppSettingsInterface-4j95fNdX.js +0 -298
  52. package/dist/EventTypeAppSettingsInterface-7r6Eayog.js +0 -221
  53. package/dist/EventTypeAppSettingsInterface-8XJ_he7F.js +0 -25
  54. package/dist/EventTypeAppSettingsInterface-PHF7Vsmi.js +0 -43
  55. package/dist/EventTypeAppSettingsInterface-ThYijWt9.js +0 -42
  56. package/dist/EventTypeAppSettingsInterface-WrZ3-X7V.js +0 -48
  57. package/dist/EventTypeAppSettingsInterface-eJdqCSck.js +0 -120
  58. package/dist/EventTypeAppSettingsInterface-hI24Lgxv.js +0 -24
  59. package/dist/EventTypeAppSettingsInterface-rDoWsnFN.js +0 -23
  60. package/dist/EventTypeAppSettingsInterface-vOTw0emu.js +0 -72
  61. package/dist/EventTypeAppSettingsInterface-wRHYYE7a.js +0 -78
  62. package/dist/InstallAppButton-9T0Dl0KY.js +0 -14
  63. package/dist/InstallAppButton-J-143AmA.js +0 -14
  64. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  65. package/dist/InstallAppButton-qpMMTpVW.js +0 -58
  66. package/dist/StripePaymentForm-N2YTyBqm.js +0 -1157
  67. package/dist/currencyOptions-kannG2hu.js +0 -61
  68. package/dist/index-D4njVTQA.js +0 -13
  69. package/dist/index-KPOdbfnz.js +0 -28
  70. package/dist/index-_1f6rhg6.js +0 -130141
  71. package/dist/index-v9tzGygd.js +0 -626
  72. package/dist/isSupportedCountry--S1ZKbg0.js +0 -7
  73. package/dist/useIsAppEnabled-EWMW2qIQ.js +0 -18
@@ -1,626 +0,0 @@
1
- import { jsxs as m, jsx as l, Fragment as g } from "react/jsx-runtime";
2
- import { aG as A, aH as w, aI as F, aJ as P, aK as M, as as G, aL as V, Z as f, z as K, aM as z, y as _, aN as k, aO as Q, aP as q, R as Z } from "./index-_1f6rhg6.js";
3
- import { memo as D, useState as W } from "react";
4
- function H(e, r) {
5
- var a = -1, s = e.length;
6
- for (r || (r = Array(s)); ++a < s; )
7
- r[a] = e[a];
8
- return r;
9
- }
10
- var Y = H, J = Math.floor, X = Math.random;
11
- function B(e, r) {
12
- return e + J(X() * (r - e + 1));
13
- }
14
- var ee = B, re = ee;
15
- function te(e, r) {
16
- var a = -1, s = e.length, i = s - 1;
17
- for (r = r === void 0 ? s : r; ++a < r; ) {
18
- var t = re(a, i), o = e[t];
19
- e[t] = e[a], e[a] = o;
20
- }
21
- return e.length = r, e;
22
- }
23
- var I = te, ae = Y, ie = I;
24
- function se(e) {
25
- return ie(ae(e));
26
- }
27
- var oe = se;
28
- function ne(e, r) {
29
- for (var a = -1, s = e == null ? 0 : e.length, i = Array(s); ++a < s; )
30
- i[a] = r(e[a], a, e);
31
- return i;
32
- }
33
- var le = ne, ce = le;
34
- function de(e, r) {
35
- return ce(r, function(a) {
36
- return e[a];
37
- });
38
- }
39
- var ue = de;
40
- function me(e, r) {
41
- for (var a = -1, s = Array(e); ++a < e; )
42
- s[a] = r(a);
43
- return s;
44
- }
45
- var pe = me, fe = A, he = w, ge = "[object Arguments]";
46
- function be(e) {
47
- return he(e) && fe(e) == ge;
48
- }
49
- var ve = be, $ = ve, ye = w, S = Object.prototype, xe = S.hasOwnProperty, Te = S.propertyIsEnumerable, je = $(/* @__PURE__ */ function() {
50
- return arguments;
51
- }()) ? $ : function(e) {
52
- return ye(e) && xe.call(e, "callee") && !Te.call(e, "callee");
53
- }, ke = je, Ae = Array.isArray, U = Ae, y = { exports: {} };
54
- function we() {
55
- return !1;
56
- }
57
- var Le = we;
58
- y.exports;
59
- (function(e, r) {
60
- var a = F, s = Le, i = r && !r.nodeType && r, t = i && !0 && e && !e.nodeType && e, o = t && t.exports === i, c = o ? a.Buffer : void 0, u = c ? c.isBuffer : void 0, d = u || s;
61
- e.exports = d;
62
- })(y, y.exports);
63
- var $e = y.exports, Ne = 9007199254740991, Ce = /^(?:0|[1-9]\d*)$/;
64
- function _e(e, r) {
65
- var a = typeof e;
66
- return r = r ?? Ne, !!r && (a == "number" || a != "symbol" && Ce.test(e)) && e > -1 && e % 1 == 0 && e < r;
67
- }
68
- var Ie = _e, Se = 9007199254740991;
69
- function Ue(e) {
70
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Se;
71
- }
72
- var O = Ue, Oe = A, Ee = O, Re = w, Fe = "[object Arguments]", Pe = "[object Array]", Me = "[object Boolean]", Ge = "[object Date]", Ve = "[object Error]", Ke = "[object Function]", ze = "[object Map]", Qe = "[object Number]", qe = "[object Object]", Ze = "[object RegExp]", De = "[object Set]", We = "[object String]", He = "[object WeakMap]", Ye = "[object ArrayBuffer]", Je = "[object DataView]", Xe = "[object Float32Array]", Be = "[object Float64Array]", er = "[object Int8Array]", rr = "[object Int16Array]", tr = "[object Int32Array]", ar = "[object Uint8Array]", ir = "[object Uint8ClampedArray]", sr = "[object Uint16Array]", or = "[object Uint32Array]", n = {};
73
- n[Xe] = n[Be] = n[er] = n[rr] = n[tr] = n[ar] = n[ir] = n[sr] = n[or] = !0;
74
- n[Fe] = n[Pe] = n[Ye] = n[Me] = n[Je] = n[Ge] = n[Ve] = n[Ke] = n[ze] = n[Qe] = n[qe] = n[Ze] = n[De] = n[We] = n[He] = !1;
75
- function nr(e) {
76
- return Re(e) && Ee(e.length) && !!n[Oe(e)];
77
- }
78
- var lr = nr;
79
- function cr(e) {
80
- return function(r) {
81
- return e(r);
82
- };
83
- }
84
- var dr = cr, x = { exports: {} };
85
- x.exports;
86
- (function(e, r) {
87
- var a = P, s = r && !r.nodeType && r, i = s && !0 && e && !e.nodeType && e, t = i && i.exports === s, o = t && a.process, c = function() {
88
- try {
89
- var u = i && i.require && i.require("util").types;
90
- return u || o && o.binding && o.binding("util");
91
- } catch {
92
- }
93
- }();
94
- e.exports = c;
95
- })(x, x.exports);
96
- var ur = x.exports, mr = lr, pr = dr, N = ur, C = N && N.isTypedArray, fr = C ? pr(C) : mr, hr = fr, gr = pe, br = ke, vr = U, yr = $e, xr = Ie, Tr = hr, jr = Object.prototype, kr = jr.hasOwnProperty;
97
- function Ar(e, r) {
98
- var a = vr(e), s = !a && br(e), i = !a && !s && yr(e), t = !a && !s && !i && Tr(e), o = a || s || i || t, c = o ? gr(e.length, String) : [], u = c.length;
99
- for (var d in e)
100
- (r || kr.call(e, d)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
101
- (d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
102
- i && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
103
- t && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
104
- xr(d, u))) && c.push(d);
105
- return c;
106
- }
107
- var wr = Ar, Lr = Object.prototype;
108
- function $r(e) {
109
- var r = e && e.constructor, a = typeof r == "function" && r.prototype || Lr;
110
- return e === a;
111
- }
112
- var Nr = $r;
113
- function Cr(e, r) {
114
- return function(a) {
115
- return e(r(a));
116
- };
117
- }
118
- var _r = Cr, Ir = _r, Sr = Ir(Object.keys, Object), Ur = Sr, Or = Nr, Er = Ur, Rr = Object.prototype, Fr = Rr.hasOwnProperty;
119
- function Pr(e) {
120
- if (!Or(e))
121
- return Er(e);
122
- var r = [];
123
- for (var a in Object(e))
124
- Fr.call(e, a) && a != "constructor" && r.push(a);
125
- return r;
126
- }
127
- var Mr = Pr, Gr = A, Vr = M, Kr = "[object AsyncFunction]", zr = "[object Function]", Qr = "[object GeneratorFunction]", qr = "[object Proxy]";
128
- function Zr(e) {
129
- if (!Vr(e))
130
- return !1;
131
- var r = Gr(e);
132
- return r == zr || r == Qr || r == Kr || r == qr;
133
- }
134
- var Dr = Zr, Wr = Dr, Hr = O;
135
- function Yr(e) {
136
- return e != null && Hr(e.length) && !Wr(e);
137
- }
138
- var Jr = Yr, Xr = wr, Br = Mr, et = Jr;
139
- function rt(e) {
140
- return et(e) ? Xr(e) : Br(e);
141
- }
142
- var tt = rt, at = ue, it = tt;
143
- function st(e) {
144
- return e == null ? [] : at(e, it(e));
145
- }
146
- var ot = st, nt = I, lt = ot;
147
- function ct(e) {
148
- return nt(lt(e));
149
- }
150
- var dt = ct, ut = oe, mt = dt, pt = U;
151
- function ft(e) {
152
- var r = pt(e) ? ut : mt;
153
- return r(e);
154
- }
155
- var ht = ft;
156
- const gt = /* @__PURE__ */ G(ht), b = z("", {
157
- // Variants won't have any style by default. Style will only be applied if the variants are combined.
158
- // So, style is defined in compoundVariants.
159
- variants: {
160
- variant: {
161
- basic: "",
162
- ProfileCard: "",
163
- SidebarCard: ""
164
- },
165
- structure: {
166
- image: "",
167
- card: "",
168
- title: "",
169
- description: ""
170
- }
171
- },
172
- compoundVariants: [
173
- // Style for Basic Variants types
174
- {
175
- variant: "basic",
176
- structure: "image",
177
- className: "w-10 h-auto"
178
- },
179
- {
180
- variant: "basic",
181
- structure: "card",
182
- className: "p-5"
183
- },
184
- {
185
- variant: "basic",
186
- structure: "title",
187
- className: "text-base mt-4"
188
- },
189
- {
190
- variant: "basic",
191
- structure: "description",
192
- className: "text-sm leading-[18px] text-subtle font-normal"
193
- },
194
- // Style for ProfileCard Variant Types
195
- {
196
- variant: "ProfileCard",
197
- structure: "image",
198
- className: "w-9 h-auto rounded-full mb-4s"
199
- },
200
- {
201
- variant: "ProfileCard",
202
- structure: "card",
203
- className: "w-80 p-4 hover:bg-subtle"
204
- },
205
- {
206
- variant: "ProfileCard",
207
- structure: "title",
208
- className: "text-base"
209
- },
210
- {
211
- variant: "ProfileCard",
212
- structure: "description",
213
- className: "text-sm leading-[18px] text-subtle font-normal"
214
- },
215
- // Style for SidebarCard Variant Types
216
- {
217
- variant: "SidebarCard",
218
- structure: "image",
219
- className: "w-9 h-auto rounded-full mb-4s"
220
- },
221
- {
222
- variant: "SidebarCard",
223
- structure: "card",
224
- className: "w-full p-3 border border-subtle"
225
- },
226
- {
227
- variant: "SidebarCard",
228
- structure: "title",
229
- className: "text-sm font-cal"
230
- },
231
- {
232
- variant: "SidebarCard",
233
- structure: "description",
234
- className: "text-xs text-default line-clamp-2"
235
- }
236
- ]
237
- });
238
- function bt({
239
- image: e,
240
- title: r,
241
- icon: a,
242
- description: s,
243
- variant: i,
244
- actionButton: t,
245
- containerProps: o,
246
- imageProps: c,
247
- mediaLink: u,
248
- thumbnailUrl: d,
249
- learnMore: p
250
- }) {
251
- const T = p && p.href.startsWith("https") ? "a" : V;
252
- return /* @__PURE__ */ m(
253
- "div",
254
- {
255
- className: f(
256
- o == null ? void 0 : o.className,
257
- b({ variant: i, structure: "card" }),
258
- "bg-default border-subtle text-default flex flex-col justify-between rounded-md border"
259
- ),
260
- "data-testid": "card-container",
261
- ...o,
262
- children: [
263
- /* @__PURE__ */ m("div", { children: [
264
- a && a,
265
- e && /* @__PURE__ */ l(
266
- "img",
267
- {
268
- src: e,
269
- alt: c == null ? void 0 : c.alt,
270
- className: f(
271
- c == null ? void 0 : c.className,
272
- b({ variant: i, structure: "image" })
273
- ),
274
- ...c
275
- }
276
- ),
277
- /* @__PURE__ */ l(
278
- "h5",
279
- {
280
- title: r,
281
- className: f(
282
- b({ variant: i, structure: "title" }),
283
- "text-emphasis line-clamp-1 font-bold leading-5"
284
- ),
285
- children: r
286
- }
287
- ),
288
- s && /* @__PURE__ */ l(
289
- "p",
290
- {
291
- title: s.toString(),
292
- className: f(b({ variant: i, structure: "description" }), "pt-1"),
293
- children: s
294
- }
295
- )
296
- ] }),
297
- i === "SidebarCard" && /* @__PURE__ */ m(
298
- "a",
299
- {
300
- onClick: t == null ? void 0 : t.onClick,
301
- target: "_blank",
302
- rel: "noreferrer",
303
- href: u,
304
- "data-testid": t == null ? void 0 : t["data-testid"],
305
- className: "group relative my-3 flex aspect-video items-center overflow-hidden rounded",
306
- children: [
307
- /* @__PURE__ */ l("div", { className: "absolute inset-0 bg-black bg-opacity-50 transition group-hover:bg-opacity-40" }),
308
- /* @__PURE__ */ m(
309
- "svg",
310
- {
311
- 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",
312
- viewBox: "0 0 32 32",
313
- fill: "none",
314
- xmlns: "http://www.w3.org/2000/svg",
315
- children: [
316
- /* @__PURE__ */ l(
317
- "path",
318
- {
319
- 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",
320
- fill: "white"
321
- }
322
- ),
323
- /* @__PURE__ */ l(
324
- "path",
325
- {
326
- d: "M12.1667 8.5L23.8334 16L12.1667 23.5V8.5Z",
327
- fill: "#111827",
328
- stroke: "#111827",
329
- strokeWidth: "1.5",
330
- strokeLinecap: "round",
331
- strokeLinejoin: "round"
332
- }
333
- )
334
- ]
335
- }
336
- ),
337
- /* @__PURE__ */ l("img", { alt: "play feature video", src: d })
338
- ]
339
- }
340
- ),
341
- i === "basic" && t && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
342
- K,
343
- {
344
- color: "secondary",
345
- href: t == null ? void 0 : t.href,
346
- className: "mt-10",
347
- EndIcon: "arrow-right",
348
- "data-testid": t["data-testid"],
349
- children: t == null ? void 0 : t.child
350
- }
351
- ) }),
352
- i === "SidebarCard" && /* @__PURE__ */ m("div", { className: "mt-2 flex items-center justify-between", children: [
353
- p && /* @__PURE__ */ l(
354
- T,
355
- {
356
- href: p.href,
357
- onClick: t == null ? void 0 : t.onClick,
358
- target: "_blank",
359
- rel: "noreferrer",
360
- className: "text-default text-xs font-medium",
361
- children: p.text
362
- }
363
- ),
364
- (t == null ? void 0 : t.child) && /* @__PURE__ */ l(
365
- "button",
366
- {
367
- className: "text-default hover:text-emphasis p-0 text-xs font-normal",
368
- color: "minimal",
369
- "data-testid": t == null ? void 0 : t["data-testid"],
370
- onClick: t == null ? void 0 : t.onClick,
371
- children: t == null ? void 0 : t.child
372
- }
373
- )
374
- ] })
375
- ]
376
- }
377
- );
378
- }
379
- const vt = [
380
- {
381
- id: 17,
382
- thumbnailUrl: "https://img.youtube.com/vi/fMHW6jYPIb8/0.jpg",
383
- mediaLink: "https://go.cal.com/embed-video",
384
- title: "Embed",
385
- description: "Embed your booking page on your website",
386
- href: "https://go.cal.com/embed-video"
387
- },
388
- {
389
- id: 16,
390
- thumbnailUrl: "https://img.youtube.com/vi/xopxmk2H4Ng/0.jpg",
391
- mediaLink: "https://go.cal.com/paid-booking",
392
- title: "Paid Bookings",
393
- description: "Charge for your time with Cal.com's paid bookings",
394
- href: "https://go.cal.com/paid-booking"
395
- },
396
- {
397
- id: 15,
398
- thumbnailUrl: "https://img.youtube.com/vi/ZjSD1yPgLLQ/0.jpg",
399
- mediaLink: "https://go.cal.com/instant-meetings-video",
400
- title: "Instant Meetings",
401
- description: "Book meetings instantly with a link",
402
- href: "https://go.cal.com/instant-meetings-video"
403
- },
404
- {
405
- id: 14,
406
- thumbnailUrl: "https://img.youtube.com/vi/IZ4-nUiIpvY/0.jpg",
407
- mediaLink: "https://go.cal.com/custom-attributes",
408
- title: "Custom Attributes",
409
- description: "Define roles and attributes for your teams",
410
- href: "https://go.cal.com/custom-attributes"
411
- },
412
- {
413
- id: 13,
414
- thumbnailUrl: "https://img.youtube.com/vi/TTAASLLPKk0/0.jpg",
415
- mediaLink: "https://go.cal.com/ooo-video",
416
- title: "ooo.new",
417
- description: "Easily go out-of-office",
418
- href: "https://go.cal.com/ooo-video"
419
- },
420
- {
421
- id: 12,
422
- thumbnailUrl: "https://cal.com/og-image-cal-ai.jpg",
423
- mediaLink: "https://go.cal.com/cal-ai",
424
- title: "Cal.ai",
425
- description: "Your personal AI scheduling assistant",
426
- href: "https://go.cal.com/cal-ai"
427
- },
428
- {
429
- id: 11,
430
- thumbnailUrl: "https://img.youtube.com/vi/KTg_qzA9NEc/0.jpg",
431
- mediaLink: "https://go.cal.com/insights",
432
- title: "Insights",
433
- description: "Get a better understanding of your business",
434
- href: "https://go.cal.com/insights"
435
- },
436
- {
437
- id: 10,
438
- thumbnailUrl: "https://img.youtube.com/vi/jvaBafzVUQc/0.jpg",
439
- mediaLink: "https://go.cal.com/video",
440
- title: "Cal Video",
441
- description: "Free video conferencing with recording",
442
- href: "https://go.cal.com/video"
443
- },
444
- {
445
- id: 9,
446
- thumbnailUrl: "https://img.youtube.com/vi/93iOmzHieCU/0.jpg",
447
- mediaLink: "https://go.cal.com/round-robin",
448
- title: "Round-Robin",
449
- description: "Create advanced group meetings with round-robin",
450
- href: "https://go.cal.com/round-robin"
451
- },
452
- {
453
- id: 8,
454
- thumbnailUrl: "https://img.youtube.com/vi/piKlAiibAFo/0.jpg",
455
- mediaLink: "https://go.cal.com/workflows",
456
- title: "Automate Workflows",
457
- description: "Make time work for you and automate tasks",
458
- href: "https://go.cal.com/workflows"
459
- },
460
- {
461
- id: 7,
462
- thumbnailUrl: "https://img.youtube.com/vi/UVXgo12cY4g/0.jpg",
463
- mediaLink: "https://go.cal.com/routing-forms",
464
- title: "Routing Forms",
465
- description: "Ask questions and route to the correct person",
466
- href: "https://go.cal.com/routing-forms"
467
- },
468
- {
469
- id: 6,
470
- thumbnailUrl: "https://img.youtube.com/vi/yGiZo1Ry5-8/0.jpg",
471
- mediaLink: "https://go.cal.com/recurring-video",
472
- title: "Recurring Bookings",
473
- description: "Learn how to create a recurring schedule",
474
- href: "https://go.cal.com/recurring-video"
475
- },
476
- {
477
- id: 5,
478
- thumbnailUrl: "https://img.youtube.com/vi/0v_nQtpxC_4/0.jpg",
479
- mediaLink: "https://go.cal.com/payments-video",
480
- title: "Accept Payments",
481
- description: "Charge for your time with Cal.com's Stripe App",
482
- href: "https://app.cal.com/apps/stripe"
483
- },
484
- {
485
- id: 4,
486
- thumbnailUrl: "https://img.youtube.com/vi/zGr_s-fG84k/0.jpg",
487
- mediaLink: "https://go.cal.com/confirmation-video",
488
- title: "Requires Confirmation",
489
- description: "Learn how to be in charge of your bookings",
490
- href: "https://cal.com/resources/feature/opt-in"
491
- },
492
- {
493
- id: 3,
494
- thumbnailUrl: "https://img.youtube.com/vi/-L8MCiT6uhQ/0.jpg",
495
- mediaLink: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl",
496
- title: "Routing Forms, Workflows",
497
- description: "Ask screening questions of potential bookers to connect them with the right person",
498
- href: "https://youtu.be/-L8MCiT6uhQ?si=DRJzRNhN85hqAwBl"
499
- },
500
- {
501
- id: 2,
502
- thumbnailUrl: "https://img.youtube.com/vi/EAc46SPL6iA/0.jpg",
503
- mediaLink: "https://go.cal.com/teams-video",
504
- title: "How to set up Teams",
505
- description: "Learn how to use round-robin and collective events.",
506
- href: "https://cal.com/docs/enterprise-features/teams"
507
- },
508
- {
509
- id: 1,
510
- thumbnailUrl: "https://img.youtube.com/vi/VZ5PfQzzxBw/0.jpg",
511
- mediaLink: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a",
512
- title: "Dynamic booking links",
513
- description: "Booking link that allows people to quickly schedule meetings.",
514
- href: "https://youtu.be/VZ5PfQzzxBw?si=oB0LPSxG8dWIwg5a"
515
- }
516
- ], v = gt(vt).slice(0).reverse();
517
- function yt() {
518
- const { t: e } = _(), [r, a] = W(() => {
519
- if (typeof window > "u")
520
- return v;
521
- try {
522
- const t = k.getItem("removedTipsIds");
523
- if (t !== null) {
524
- const o = t.split(",").map((u) => parseInt(u, 10));
525
- return v.filter((u) => o.indexOf(u.id) === -1);
526
- } else
527
- return v;
528
- } catch {
529
- return v;
530
- }
531
- }), s = (t) => {
532
- a((o) => {
533
- const c = k.getItem("removedTipsIds") || "", u = o.findIndex((d) => d.id === t);
534
- return u === -1 ? [...o] : (k.setItem(
535
- "removedTipsIds",
536
- `${o[u].id.toString()}${c.length > 0 ? `,${c}` : ""}`
537
- ), o.splice(u, 1), [...o]);
538
- });
539
- }, i = r.slice(0).reverse();
540
- return /* @__PURE__ */ l(
541
- "div",
542
- {
543
- className: "hidden pb-4 pt-8 lg:grid",
544
- style: {
545
- gridTemplateColumns: "1fr"
546
- },
547
- children: r.map((t) => /* @__PURE__ */ l(
548
- "div",
549
- {
550
- className: "relative",
551
- style: {
552
- gridRowStart: 1,
553
- gridColumnStart: 1
554
- },
555
- children: /* @__PURE__ */ l(
556
- "div",
557
- {
558
- className: "relative",
559
- style: {
560
- transform: `scale(${1 - i.indexOf(t) / 20})`,
561
- top: -i.indexOf(t) * 10,
562
- opacity: `${1 - i.indexOf(t) / 7}`
563
- },
564
- children: /* @__PURE__ */ l(
565
- bt,
566
- {
567
- variant: "SidebarCard",
568
- thumbnailUrl: t.thumbnailUrl,
569
- mediaLink: t.mediaLink,
570
- title: t.title,
571
- description: t.description,
572
- learnMore: { href: t.href, text: e("learn_more") },
573
- actionButton: { onClick: () => s(t.id), child: e("dismiss") }
574
- }
575
- )
576
- }
577
- )
578
- },
579
- t.id
580
- ))
581
- }
582
- );
583
- }
584
- const kt = D(yt);
585
- function At({
586
- title: e,
587
- description: r,
588
- background: a,
589
- features: s,
590
- buttons: i,
591
- isParentLoading: t,
592
- children: o,
593
- plan: c
594
- }) {
595
- const { resolvedTheme: u } = Q(), { t: d } = _(), { isPending: p, hasTeamPlan: T } = q(), { data: j } = Z.viewer.teams.getUpgradeable.useQuery(), L = `${a}${u === "dark" ? "-dark" : ""}.jpg`, E = !1, R = !!(j != null && j[0]);
596
- return c === "team" && (T || R) ? /* @__PURE__ */ l(g, { children: o }) : c === "enterprise" && E ? /* @__PURE__ */ l(g, { children: o }) : p ? /* @__PURE__ */ l(g, { children: t }) : /* @__PURE__ */ m(g, { children: [
597
- /* @__PURE__ */ m("div", { className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10", children: [
598
- /* @__PURE__ */ m("picture", { className: "absolute min-h-[295px] w-full rounded-lg object-cover", children: [
599
- /* @__PURE__ */ l("source", { srcSet: L, media: "(prefers-color-scheme: dark)" }),
600
- /* @__PURE__ */ l(
601
- "img",
602
- {
603
- className: "absolute min-h-[295px] w-full select-none rounded-lg object-cover object-left md:object-center",
604
- src: L,
605
- loading: "lazy",
606
- alt: e
607
- }
608
- )
609
- ] }),
610
- /* @__PURE__ */ m("div", { className: "relative my-4 px-8 sm:px-14", children: [
611
- /* @__PURE__ */ l("h1", { className: f("font-cal mt-4 text-3xl"), children: d(e) }),
612
- /* @__PURE__ */ l("p", { className: f("mb-8 mt-4 max-w-sm"), children: d(r) }),
613
- i
614
- ] })
615
- ] }),
616
- /* @__PURE__ */ l("div", { className: "mt-4 grid-cols-3 md:grid md:gap-4", children: s.map((h) => /* @__PURE__ */ m("div", { className: "bg-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0", children: [
617
- h.icon,
618
- /* @__PURE__ */ l("h2", { className: "font-cal text-emphasis mt-4 text-lg", children: h.title }),
619
- /* @__PURE__ */ l("p", { className: "text-default", children: h.description })
620
- ] }, h.title)) })
621
- ] });
622
- }
623
- export {
624
- kt as Tips,
625
- At as UpgradeTip
626
- };
@@ -1,7 +0,0 @@
1
- import { O as t, Q as r } from "./index-_1f6rhg6.js";
2
- function u() {
3
- return t(r, arguments);
4
- }
5
- export {
6
- u as i
7
- };
@@ -1,18 +0,0 @@
1
- import { useState as c } from "react";
2
- import { J as o } from "./index-_1f6rhg6.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
- };