@calcom/atoms 1.0.69 → 1.0.70
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.
- package/dist/{AddressInput-fp5qF4sP.js → AddressInput-XJAS2DNY.js} +1 -1
- package/dist/{AlbyPriceComponent-WNrzLlXW.js → AlbyPriceComponent-9T6LyZw3.js} +1 -1
- package/dist/{AppCard-i4bbunNu.js → AppCard-2thNjmI6.js} +1 -1
- package/dist/{AppSettingsInterface-MRKlt77b.js → AppSettingsInterface-HoRLpGhB.js} +1 -1
- package/dist/{AppSettingsInterface-TW9vJOoI.js → AppSettingsInterface-_qtXXihc.js} +1 -1
- package/dist/{AppSettingsInterface-N52rUkrM.js → AppSettingsInterface-ubSdyxWU.js} +1 -1
- package/dist/{Card-nU2Oxfou.js → Card-hmB3imiF.js} +1 -1
- package/dist/{DateRangePicker-zC5DKhrn.js → DateRangePicker-TyAM3Fj4.js} +1 -1
- package/dist/{EventTypeAppCardInterface-BP7Ex_ei.js → EventTypeAppCardInterface-0XEixOGa.js} +3 -3
- package/dist/{EventTypeAppCardInterface-cN6WeqoW.js → EventTypeAppCardInterface-4NAfRWWz.js} +4 -4
- package/dist/{EventTypeAppCardInterface-QhjVwBbL.js → EventTypeAppCardInterface-8o3Z5GmJ.js} +2 -2
- package/dist/{EventTypeAppCardInterface-fyocINFK.js → EventTypeAppCardInterface-AYuNm8Ly.js} +4 -4
- package/dist/{EventTypeAppCardInterface-IAezhqal.js → EventTypeAppCardInterface-DupT1Ncu.js} +4 -4
- package/dist/{EventTypeAppCardInterface-MAn6ziw5.js → EventTypeAppCardInterface-H6uT4Bf9.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Mx5nZATt.js → EventTypeAppCardInterface-MUGUQBtR.js} +3 -3
- package/dist/{EventTypeAppCardInterface-3WEbQqwX.js → EventTypeAppCardInterface-NhYc-GUj.js} +3 -3
- package/dist/{EventTypeAppCardInterface-BV-7vxVF.js → EventTypeAppCardInterface-O_qP9C75.js} +4 -4
- package/dist/{EventTypeAppCardInterface-uiOS4XaX.js → EventTypeAppCardInterface-TkLLfvjD.js} +3 -3
- package/dist/{EventTypeAppCardInterface--x1bbPB1.js → EventTypeAppCardInterface-YsNMOiPa.js} +3 -3
- package/dist/{EventTypeAppCardInterface-dItaOzoi.js → EventTypeAppCardInterface-aUDxdhR0.js} +4 -4
- package/dist/{EventTypeAppCardInterface-8tmNi_8_.js → EventTypeAppCardInterface-f0qwHQ-a.js} +3 -3
- package/dist/{EventTypeAppCardInterface-_m3lSLFr.js → EventTypeAppCardInterface-fkcvo7es.js} +2 -2
- package/dist/{EventTypeAppCardInterface-efL7j0sK.js → EventTypeAppCardInterface-hPkDq_ng.js} +3 -3
- package/dist/{EventTypeAppCardInterface-kAd2JbQx.js → EventTypeAppCardInterface-oaRLUYYZ.js} +3 -3
- package/dist/{EventTypeAppCardInterface-7RTrZn6I.js → EventTypeAppCardInterface-sQT7lRKl.js} +4 -4
- package/dist/EventTypeAppCardInterface-tFS8CBdX.js +23 -0
- package/dist/{EventTypeAppCardInterface-btNTU6vZ.js → EventTypeAppCardInterface-vEpjIjxN.js} +4 -4
- package/dist/{EventTypeAppCardInterface-DlObORsm.js → EventTypeAppCardInterface-veEZhe-h.js} +4 -4
- package/dist/{EventTypeAppCardInterface-q9yk5DT1.js → EventTypeAppCardInterface-vi4Skv-I.js} +3 -3
- package/dist/{EventTypeAppCardInterface-GKvnvUPT.js → EventTypeAppCardInterface-wtzSJHmW.js} +4 -4
- package/dist/{EventTypeAppCardInterface-bcXxch2-.js → EventTypeAppCardInterface-x-fSMfBz.js} +3 -3
- package/dist/{EventTypeAppCardInterface-m7ZJO_Gi.js → EventTypeAppCardInterface-zIFe0-hm.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-uRbVB2R5.js → EventTypeAppSettingsInterface-9-Lqd7Xb.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-TaCrvrDr.js → EventTypeAppSettingsInterface-DNtqZInk.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-nE6SJ25Q.js → EventTypeAppSettingsInterface-G_MI1RQZ.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-zunsXzpl.js → EventTypeAppSettingsInterface-IlXLAc46.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-uhHjJmtM.js → EventTypeAppSettingsInterface-KtuR6p19.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-XMynhO4N.js → EventTypeAppSettingsInterface-MN30Xzgs.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-YtGDQGv6.js → EventTypeAppSettingsInterface-ZTxPg24Z.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-p7_-Y_Ab.js → EventTypeAppSettingsInterface-aEXsfoTw.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-SXE4FAhe.js → EventTypeAppSettingsInterface-e5gwCJRA.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-K3v6ddWP.js → EventTypeAppSettingsInterface-jstUfjZY.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-WwyJDARg.js → EventTypeAppSettingsInterface-k8BA2Xqz.js} +1 -1
- package/dist/{InstallAppButton-rZ36q66L.js → InstallAppButton-bJYuR1aL.js} +1 -1
- package/dist/{InstallAppButton-O9pAEgyM.js → InstallAppButton-jJVQ_kF0.js} +1 -1
- package/dist/{InstallAppButton-oVO4d3PS.js → InstallAppButton-sDFOQUeE.js} +1 -1
- package/dist/{InstallAppButton-DEad89iX.js → InstallAppButton-teVZNR1L.js} +1 -1
- package/dist/{PhoneInput-drURqB5k.js → PhoneInput-AyEJUBpY.js} +1 -1
- package/dist/StripePaymentForm-OD3Z5HOV.js +484 -0
- package/dist/cal-atoms.js +4 -4
- package/dist/cal-atoms.umd.cjs +347 -311
- package/dist/{framer-features-4MVDXzUi.js → framer-features-k8W15jzM.js} +27 -27
- package/dist/{index-QBwBOYLQ.js → index-7rBx6ute.js} +1 -1
- package/dist/index-L39f9yBC.js +256 -0
- package/dist/{index-tjEJ5F1K.js → index-SQ0_AlAd.js} +1 -1
- package/dist/{index-_JT8rq0w.js → index-TfSEr6Ej.js} +86517 -61833
- package/dist/{index-_cSqrkOk.js → index-YR6r2vCt.js} +4 -4
- package/dist/{useIsAppEnabled-P8nFP-e-.js → useIsAppEnabled-1cXtacgA.js} +1 -1
- package/package.json +2 -4
- package/dist/EventTypeAppCardInterface-vL-xcpz3.js +0 -23
- package/dist/StripePaymentForm-vvGA0-jZ.js +0 -1148
- package/dist/index-taPshKtT.js +0 -399
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bl as L, bm as V, bn as D, bo as M, bp as Y, bq as j, br as _, bs as Q, bt as re, bu as ie, bv as oe, bw as ae } from "./index-TfSEr6Ej.js";
|
|
2
2
|
function y(t, e, n, s = { passive: !0 }) {
|
|
3
3
|
return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
|
|
4
4
|
}
|
|
@@ -24,15 +24,15 @@ function $(t) {
|
|
|
24
24
|
return e === null ? (e = t, n) : !1;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const q = $("dragHorizontal"), J = $("dragVertical");
|
|
28
28
|
function le(t) {
|
|
29
29
|
let e = !1;
|
|
30
30
|
if (t === "y")
|
|
31
31
|
e = J();
|
|
32
32
|
else if (t === "x")
|
|
33
|
-
e =
|
|
33
|
+
e = q();
|
|
34
34
|
else {
|
|
35
|
-
const n =
|
|
35
|
+
const n = q(), s = J();
|
|
36
36
|
n && s ? e = () => {
|
|
37
37
|
n(), s();
|
|
38
38
|
} : (n && n(), s && s());
|
|
@@ -152,17 +152,17 @@ class fe extends w {
|
|
|
152
152
|
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
const B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(),
|
|
155
|
+
const B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), pe = (t) => {
|
|
156
156
|
const e = B.get(t.target);
|
|
157
157
|
e && e(t);
|
|
158
|
-
},
|
|
159
|
-
t.forEach(
|
|
158
|
+
}, me = (t) => {
|
|
159
|
+
t.forEach(pe);
|
|
160
160
|
};
|
|
161
161
|
function ve({ root: t, ...e }) {
|
|
162
162
|
const n = t || document;
|
|
163
163
|
K.has(n) || K.set(n, {});
|
|
164
164
|
const s = K.get(n), o = JSON.stringify(e);
|
|
165
|
-
return s[o] || (s[o] = new IntersectionObserver(
|
|
165
|
+
return s[o] || (s[o] = new IntersectionObserver(me, { root: t, ...e })), s[o];
|
|
166
166
|
}
|
|
167
167
|
function Pe(t, e, n) {
|
|
168
168
|
const s = ve(e);
|
|
@@ -189,8 +189,8 @@ class be extends w {
|
|
|
189
189
|
if (this.isInView === r || (this.isInView = r, a && !r && this.hasEnteredView))
|
|
190
190
|
return;
|
|
191
191
|
r && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", r);
|
|
192
|
-
const { onViewportEnter: u, onViewportLeave:
|
|
193
|
-
|
|
192
|
+
const { onViewportEnter: u, onViewportLeave: p } = this.node.getProps(), m = r ? u : p;
|
|
193
|
+
m && m(i);
|
|
194
194
|
};
|
|
195
195
|
return Pe(this.node.current, l, c);
|
|
196
196
|
}
|
|
@@ -239,8 +239,8 @@ function G(t, e, n = {}) {
|
|
|
239
239
|
let { transition: o = t.getDefaultTransition() || {} } = s || {};
|
|
240
240
|
n.transitionOverride && (o = n.transitionOverride);
|
|
241
241
|
const a = s ? () => Promise.all(Y(t, s, n)) : () => Promise.resolve(), l = t.variantChildren && t.variantChildren.size ? (i = 0) => {
|
|
242
|
-
const { delayChildren: r = 0, staggerChildren: u, staggerDirection:
|
|
243
|
-
return we(t, e, r + i, u,
|
|
242
|
+
const { delayChildren: r = 0, staggerChildren: u, staggerDirection: p } = o;
|
|
243
|
+
return we(t, e, r + i, u, p, n);
|
|
244
244
|
} : () => Promise.resolve(), { when: c } = o;
|
|
245
245
|
if (c) {
|
|
246
246
|
const [i, r] = c === "beforeChildren" ? [a, l] : [l, a];
|
|
@@ -285,8 +285,8 @@ function Te(t) {
|
|
|
285
285
|
const o = (i, r) => {
|
|
286
286
|
const u = M(t, r);
|
|
287
287
|
if (u) {
|
|
288
|
-
const { transition:
|
|
289
|
-
i = { ...i, ...v, ...
|
|
288
|
+
const { transition: p, transitionEnd: m, ...v } = u;
|
|
289
|
+
i = { ...i, ...v, ...m };
|
|
290
290
|
}
|
|
291
291
|
return i;
|
|
292
292
|
};
|
|
@@ -294,16 +294,16 @@ function Te(t) {
|
|
|
294
294
|
e = i(t);
|
|
295
295
|
}
|
|
296
296
|
function l(i, r) {
|
|
297
|
-
const u = t.getProps(),
|
|
297
|
+
const u = t.getProps(), p = t.getVariantContext(!0) || {}, m = [], v = /* @__PURE__ */ new Set();
|
|
298
298
|
let g = {}, z = 1 / 0;
|
|
299
299
|
for (let b = 0; b < Le; b++) {
|
|
300
|
-
const f = Ve[b], h = n[f], P = u[f] !== void 0 ? u[f] :
|
|
300
|
+
const f = Ve[b], h = n[f], P = u[f] !== void 0 ? u[f] : p[f], O = re(P), x = f === r ? h.isActive : null;
|
|
301
301
|
x === !1 && (z = b);
|
|
302
|
-
let k = P ===
|
|
302
|
+
let k = P === p[f] && P !== u[f] && O;
|
|
303
303
|
if (k && s && t.manuallyAnimateOnMount && (k = !1), h.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
|
|
304
304
|
!h.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
|
|
305
305
|
!P && !h.prevProp || // Or if the prop doesn't define an animation
|
|
306
|
-
|
|
306
|
+
j(P) || typeof P == "boolean")
|
|
307
307
|
continue;
|
|
308
308
|
const N = Oe(h.prevProp, P);
|
|
309
309
|
let I = N || // If we're making this variant active, we want to always make it active
|
|
@@ -322,7 +322,7 @@ function Te(t) {
|
|
|
322
322
|
const C = S[d], E = W[d];
|
|
323
323
|
g.hasOwnProperty(d) || (C !== E ? _(C) && _(E) ? !ne(C, E) || N ? F(d) : h.protectedKeys[d] = !0 : C !== void 0 ? F(d) : v.add(d) : C !== void 0 && v.has(d) ? F(d) : h.protectedKeys[d] = !0);
|
|
324
324
|
}
|
|
325
|
-
h.prevProp = P, h.prevResolvedValues = S, h.isActive && (g = { ...g, ...S }), s && t.blockInitialAnimation && (I = !1), I && !k &&
|
|
325
|
+
h.prevProp = P, h.prevResolvedValues = S, h.isActive && (g = { ...g, ...S }), s && t.blockInitialAnimation && (I = !1), I && !k && m.push(...U.map((d) => ({
|
|
326
326
|
animation: d,
|
|
327
327
|
options: { type: f, ...i }
|
|
328
328
|
})));
|
|
@@ -332,23 +332,23 @@ function Te(t) {
|
|
|
332
332
|
v.forEach((f) => {
|
|
333
333
|
const h = t.getBaseTarget(f);
|
|
334
334
|
h !== void 0 && (b[f] = h);
|
|
335
|
-
}),
|
|
335
|
+
}), m.push({ animation: b });
|
|
336
336
|
}
|
|
337
|
-
let R = !!
|
|
338
|
-
return s && u.initial === !1 && !t.manuallyAnimateOnMount && (R = !1), s = !1, R ? e(
|
|
337
|
+
let R = !!m.length;
|
|
338
|
+
return s && u.initial === !1 && !t.manuallyAnimateOnMount && (R = !1), s = !1, R ? e(m) : Promise.resolve();
|
|
339
339
|
}
|
|
340
340
|
function c(i, r, u) {
|
|
341
|
-
var
|
|
341
|
+
var p;
|
|
342
342
|
if (n[i].isActive === r)
|
|
343
343
|
return Promise.resolve();
|
|
344
|
-
(
|
|
344
|
+
(p = t.variantChildren) === null || p === void 0 || p.forEach((v) => {
|
|
345
345
|
var g;
|
|
346
346
|
return (g = v.animationState) === null || g === void 0 ? void 0 : g.setActive(i, r);
|
|
347
347
|
}), n[i].isActive = r;
|
|
348
|
-
const
|
|
348
|
+
const m = l(u, i);
|
|
349
349
|
for (const v in n)
|
|
350
350
|
n[v].protectedKeys = {};
|
|
351
|
-
return
|
|
351
|
+
return m;
|
|
352
352
|
}
|
|
353
353
|
return {
|
|
354
354
|
animateChanges: l,
|
|
@@ -390,7 +390,7 @@ class Ie extends w {
|
|
|
390
390
|
}
|
|
391
391
|
updateAnimationControlsSubscription() {
|
|
392
392
|
const { animate: e } = this.node.getProps();
|
|
393
|
-
this.unmount(),
|
|
393
|
+
this.unmount(), j(e) && (this.unmount = e.subscribe(this.node));
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
396
|
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { bb as w, bc as L, bd as T, b9 as S, be as U, aL as v, bf as p, aK as t, bg as N, bh as _, aW as $, a_ as f } from "./index-TfSEr6Ej.js";
|
|
2
|
+
import { memo as A, useState as C } from "react";
|
|
3
|
+
import { C as R } from "./Card-hmB3imiF.js";
|
|
4
|
+
var F = Math.floor, I = Math.random;
|
|
5
|
+
function q(e, s) {
|
|
6
|
+
return e + F(I() * (s - e + 1));
|
|
7
|
+
}
|
|
8
|
+
var O = q, E = O;
|
|
9
|
+
function V(e, s) {
|
|
10
|
+
var r = -1, l = e.length, n = l - 1;
|
|
11
|
+
for (s = s === void 0 ? l : s; ++r < s; ) {
|
|
12
|
+
var i = E(r, n), o = e[i];
|
|
13
|
+
e[i] = e[r], e[r] = o;
|
|
14
|
+
}
|
|
15
|
+
return e.length = s, e;
|
|
16
|
+
}
|
|
17
|
+
var b = V, M = w(), P = b;
|
|
18
|
+
function G(e) {
|
|
19
|
+
return P(M(e));
|
|
20
|
+
}
|
|
21
|
+
var K = G, B = L();
|
|
22
|
+
function H(e, s) {
|
|
23
|
+
return B(s, function(r) {
|
|
24
|
+
return e[r];
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
var D = H, Q = D, W = T();
|
|
28
|
+
function Y(e) {
|
|
29
|
+
return e == null ? [] : Q(e, W(e));
|
|
30
|
+
}
|
|
31
|
+
var Z = Y, z = b, J = Z;
|
|
32
|
+
function X(e) {
|
|
33
|
+
return z(J(e));
|
|
34
|
+
}
|
|
35
|
+
var ee = X, te = K, ie = ee, se = U;
|
|
36
|
+
function oe(e) {
|
|
37
|
+
var s = se(e) ? te : ie;
|
|
38
|
+
return s(e);
|
|
39
|
+
}
|
|
40
|
+
var re = oe;
|
|
41
|
+
const ae = /* @__PURE__ */ S(re), ne = [
|
|
42
|
+
{
|
|
43
|
+
id: 13,
|
|
44
|
+
thumbnailUrl: "https://img.youtube.com/vi/ihE8OYTdklg/0.jpg",
|
|
45
|
+
mediaLink: "https://go.cal.com/ooo",
|
|
46
|
+
title: "ooo.new",
|
|
47
|
+
description: "Easily go out-of-office",
|
|
48
|
+
href: "https://ooo.new"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 12,
|
|
52
|
+
thumbnailUrl: "https://cal.com/og-image-cal-ai.jpg",
|
|
53
|
+
mediaLink: "https://go.cal.com/cal-ai",
|
|
54
|
+
title: "Cal.ai",
|
|
55
|
+
description: "Your personal AI scheduling assistant",
|
|
56
|
+
href: "https://go.cal.com/cal-ai"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 11,
|
|
60
|
+
thumbnailUrl: "https://img.youtube.com/vi/KTg_qzA9NEc/0.jpg",
|
|
61
|
+
mediaLink: "https://go.cal.com/insights",
|
|
62
|
+
title: "Insights",
|
|
63
|
+
description: "Get a better understanding of your business",
|
|
64
|
+
href: "https://go.cal.com/insights"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 10,
|
|
68
|
+
thumbnailUrl: "https://img.youtube.com/vi/jvaBafzVUQc/0.jpg",
|
|
69
|
+
mediaLink: "https://go.cal.com/video",
|
|
70
|
+
title: "Cal Video",
|
|
71
|
+
description: "Free video conferencing with recording",
|
|
72
|
+
href: "https://go.cal.com/video"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 9,
|
|
76
|
+
thumbnailUrl: "https://img.youtube.com/vi/93iOmzHieCU/0.jpg",
|
|
77
|
+
mediaLink: "https://go.cal.com/round-robin",
|
|
78
|
+
title: "Round-Robin",
|
|
79
|
+
description: "Create advanced group meetings with round-robin",
|
|
80
|
+
href: "https://go.cal.com/round-robin"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 8,
|
|
84
|
+
thumbnailUrl: "https://img.youtube.com/vi/piKlAiibAFo/0.jpg",
|
|
85
|
+
mediaLink: "https://go.cal.com/workflows",
|
|
86
|
+
title: "Automate Workflows",
|
|
87
|
+
description: "Make time work for you and automate tasks",
|
|
88
|
+
href: "https://go.cal.com/workflows"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: 7,
|
|
92
|
+
thumbnailUrl: "https://img.youtube.com/vi/UVXgo12cY4g/0.jpg",
|
|
93
|
+
mediaLink: "https://go.cal.com/routing-forms",
|
|
94
|
+
title: "Routing Forms",
|
|
95
|
+
description: "Ask questions and route to the correct person",
|
|
96
|
+
href: "https://go.cal.com/routing-forms"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 6,
|
|
100
|
+
thumbnailUrl: "https://img.youtube.com/vi/yGiZo1Ry5-8/0.jpg",
|
|
101
|
+
mediaLink: "https://go.cal.com/recurring-video",
|
|
102
|
+
title: "Recurring Bookings",
|
|
103
|
+
description: "Learn how to create a recurring schedule",
|
|
104
|
+
href: "https://go.cal.com/recurring-video"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 5,
|
|
108
|
+
thumbnailUrl: "https://img.youtube.com/vi/0v_nQtpxC_4/0.jpg",
|
|
109
|
+
mediaLink: "https://go.cal.com/payments-video",
|
|
110
|
+
title: "Accept Payments",
|
|
111
|
+
description: "Charge for your time with Cal.com's Stripe App",
|
|
112
|
+
href: "https://app.cal.com/apps/stripe"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: 4,
|
|
116
|
+
thumbnailUrl: "https://img.youtube.com/vi/zGr_s-fG84k/0.jpg",
|
|
117
|
+
mediaLink: "https://go.cal.com/confirmation-video",
|
|
118
|
+
title: "Requires Confirmation",
|
|
119
|
+
description: "Learn how to be in charge of your bookings",
|
|
120
|
+
href: "https://cal.com/resources/feature/opt-in"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 3,
|
|
124
|
+
thumbnailUrl: "https://img.youtube.com/vi/c7ZKFuLy1fg/0.jpg",
|
|
125
|
+
mediaLink: "https://go.cal.com/routing-video",
|
|
126
|
+
title: "Routing Forms, Workflows",
|
|
127
|
+
description: "Ask screening questions of potential bookers to connect them with the right person",
|
|
128
|
+
href: "https://cal.com/blog/cal-v-1-8"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: 2,
|
|
132
|
+
thumbnailUrl: "https://img.youtube.com/vi/EAc46SPL6iA/0.jpg",
|
|
133
|
+
mediaLink: "https://go.cal.com/teams-video",
|
|
134
|
+
title: "How to set up Teams",
|
|
135
|
+
description: "Learn how to use round-robin and collective events.",
|
|
136
|
+
href: "https://cal.com/docs/enterprise-features/teams"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 1,
|
|
140
|
+
thumbnailUrl: "https://img.youtube.com/vi/60HJt8DOVNo/0.jpg",
|
|
141
|
+
mediaLink: "https://go.cal.com/dynamic-video",
|
|
142
|
+
title: "Dynamic booking links",
|
|
143
|
+
description: "Booking link that allows people to quickly schedule meetings.",
|
|
144
|
+
href: "https://cal.com/blog/cal-v-1-9"
|
|
145
|
+
}
|
|
146
|
+
], u = ae(ne).slice(0).reverse();
|
|
147
|
+
function le() {
|
|
148
|
+
const { t: e } = v(), [s, r] = C(() => {
|
|
149
|
+
if (typeof window > "u")
|
|
150
|
+
return u;
|
|
151
|
+
try {
|
|
152
|
+
const i = p.getItem("removedTipsIds");
|
|
153
|
+
if (i !== null) {
|
|
154
|
+
const o = i.split(",").map((a) => parseInt(a, 10));
|
|
155
|
+
return u.filter((a) => o.indexOf(a.id) === -1);
|
|
156
|
+
} else
|
|
157
|
+
return u;
|
|
158
|
+
} catch {
|
|
159
|
+
return u;
|
|
160
|
+
}
|
|
161
|
+
}), l = (i) => {
|
|
162
|
+
r((o) => {
|
|
163
|
+
const c = p.getItem("removedTipsIds") || "", a = o.findIndex((m) => m.id === i);
|
|
164
|
+
return p.setItem(
|
|
165
|
+
"removedTipsIds",
|
|
166
|
+
`${o[a].id.toString()}${c.length > 0 ? `,${c.split(",")}` : ""}`
|
|
167
|
+
), o.splice(a, 1), [...o];
|
|
168
|
+
});
|
|
169
|
+
}, n = s.slice(0).reverse();
|
|
170
|
+
return /* @__PURE__ */ t.jsx(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
className: "hidden pb-4 pt-8 lg:grid",
|
|
174
|
+
style: {
|
|
175
|
+
gridTemplateColumns: "1fr"
|
|
176
|
+
},
|
|
177
|
+
children: s.map((i) => /* @__PURE__ */ t.jsx(
|
|
178
|
+
"div",
|
|
179
|
+
{
|
|
180
|
+
className: "relative",
|
|
181
|
+
style: {
|
|
182
|
+
gridRowStart: 1,
|
|
183
|
+
gridColumnStart: 1
|
|
184
|
+
},
|
|
185
|
+
children: /* @__PURE__ */ t.jsx(
|
|
186
|
+
"div",
|
|
187
|
+
{
|
|
188
|
+
className: "relative",
|
|
189
|
+
style: {
|
|
190
|
+
transform: `scale(${1 - n.indexOf(i) / 20})`,
|
|
191
|
+
top: -n.indexOf(i) * 10,
|
|
192
|
+
opacity: `${1 - n.indexOf(i) / 7}`
|
|
193
|
+
},
|
|
194
|
+
children: /* @__PURE__ */ t.jsx(
|
|
195
|
+
R,
|
|
196
|
+
{
|
|
197
|
+
variant: "SidebarCard",
|
|
198
|
+
thumbnailUrl: i.thumbnailUrl,
|
|
199
|
+
mediaLink: i.mediaLink,
|
|
200
|
+
title: i.title,
|
|
201
|
+
description: i.description,
|
|
202
|
+
learnMore: { href: i.href, text: e("learn_more") },
|
|
203
|
+
actionButton: { onClick: () => l(i.id), child: e("dismiss") }
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
}
|
|
207
|
+
)
|
|
208
|
+
},
|
|
209
|
+
i.id
|
|
210
|
+
))
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
const ue = A(le);
|
|
215
|
+
function he({
|
|
216
|
+
title: e,
|
|
217
|
+
description: s,
|
|
218
|
+
background: r,
|
|
219
|
+
features: l,
|
|
220
|
+
buttons: n,
|
|
221
|
+
isParentLoading: i,
|
|
222
|
+
children: o,
|
|
223
|
+
plan: c
|
|
224
|
+
}) {
|
|
225
|
+
const { resolvedTheme: a } = N(), { t: m } = v(), { isPending: x, hasTeamPlan: y } = _(), { data: h } = $.viewer.teams.getUpgradeable.useQuery(), g = `${r}${a === "dark" ? "-dark" : ""}.jpg`, j = !1, k = !!(h != null && h[0]);
|
|
226
|
+
return c === "team" && (y || k) ? /* @__PURE__ */ t.jsx(t.Fragment, { children: o }) : c === "enterprise" && j ? /* @__PURE__ */ t.jsx(t.Fragment, { children: o }) : x ? /* @__PURE__ */ t.jsx(t.Fragment, { children: i }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
227
|
+
/* @__PURE__ */ t.jsxs("div", { className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10", children: [
|
|
228
|
+
/* @__PURE__ */ t.jsxs("picture", { className: "absolute min-h-[295px] w-full rounded-lg object-cover", children: [
|
|
229
|
+
/* @__PURE__ */ t.jsx("source", { srcSet: g, media: "(prefers-color-scheme: dark)" }),
|
|
230
|
+
/* @__PURE__ */ t.jsx(
|
|
231
|
+
"img",
|
|
232
|
+
{
|
|
233
|
+
className: "absolute min-h-[295px] w-full select-none rounded-lg object-cover object-left md:object-center",
|
|
234
|
+
src: g,
|
|
235
|
+
loading: "lazy",
|
|
236
|
+
alt: e
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
] }),
|
|
240
|
+
/* @__PURE__ */ t.jsxs("div", { className: "relative my-4 px-8 sm:px-14", children: [
|
|
241
|
+
/* @__PURE__ */ t.jsx("h1", { className: f("font-cal text-3xl"), children: m(e) }),
|
|
242
|
+
/* @__PURE__ */ t.jsx("p", { className: f("mb-8 mt-4 max-w-sm"), children: m(s) }),
|
|
243
|
+
n
|
|
244
|
+
] })
|
|
245
|
+
] }),
|
|
246
|
+
/* @__PURE__ */ t.jsx("div", { className: "mt-4 grid-cols-3 md:grid md:gap-4", children: l.map((d) => /* @__PURE__ */ t.jsxs("div", { className: "bg-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0", children: [
|
|
247
|
+
d.icon,
|
|
248
|
+
/* @__PURE__ */ t.jsx("h2", { className: "font-cal text-emphasis mt-4 text-lg", children: d.title }),
|
|
249
|
+
/* @__PURE__ */ t.jsx("p", { className: "text-default", children: d.description })
|
|
250
|
+
] }, d.title)) })
|
|
251
|
+
] });
|
|
252
|
+
}
|
|
253
|
+
export {
|
|
254
|
+
ue as Tips,
|
|
255
|
+
he as UpgradeTip
|
|
256
|
+
};
|