@calcom/atoms 1.0.20 → 1.0.22

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.
@@ -1,9 +1,9 @@
1
- import { aM as L, aN as V, aO as D, aP as G, aQ as Y, aR as j, aS as X, aT as q, aU as re, aV as ie, aW as oe, aX as ae } from "./index-6PQ0n_zn.js";
1
+ import { aP as L, aQ as V, aR as D, aS as M, aT as Q, aU as Z, aV as _, aW as j, aX as re, aY as ie, aZ as oe, a_ as ae } from "./index-qesbduIG.js";
2
2
  function b(t, e, n, s = { passive: !0 }) {
3
3
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
4
4
  }
5
5
  const ce = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
6
- function Z(t, e = "page") {
6
+ function q(t, e = "page") {
7
7
  return {
8
8
  point: {
9
9
  x: t[e + "X"],
@@ -11,7 +11,7 @@ function Z(t, e = "page") {
11
11
  }
12
12
  };
13
13
  }
14
- const ue = (t) => (e) => ce(e) && t(e, Z(e));
14
+ const ue = (t) => (e) => ce(e) && t(e, q(e));
15
15
  function T(t, e, n, s) {
16
16
  return b(t, e, ue(n), s);
17
17
  }
@@ -24,15 +24,15 @@ function $(t) {
24
24
  return e === null ? (e = t, n) : !1;
25
25
  };
26
26
  }
27
- const _ = $("dragHorizontal"), J = $("dragVertical");
27
+ const X = $("dragHorizontal"), Y = $("dragVertical");
28
28
  function le(t) {
29
29
  let e = !1;
30
30
  if (t === "y")
31
- e = J();
31
+ e = Y();
32
32
  else if (t === "x")
33
- e = _();
33
+ e = X();
34
34
  else {
35
- const n = _(), s = J();
35
+ const n = X(), s = Y();
36
36
  n && s ? e = () => {
37
37
  n(), s();
38
38
  } : (n && n(), s && s());
@@ -50,7 +50,7 @@ class w {
50
50
  update() {
51
51
  }
52
52
  }
53
- function Q(t, e) {
53
+ function J(t, e) {
54
54
  const n = "pointer" + (e ? "enter" : "leave"), s = "onHover" + (e ? "Start" : "End"), o = (a, l) => {
55
55
  if (a.type === "touch" || ee())
56
56
  return;
@@ -63,7 +63,7 @@ function Q(t, e) {
63
63
  }
64
64
  class he extends w {
65
65
  mount() {
66
- this.unmount = L(Q(this.node, !0), Q(this.node, !1));
66
+ this.unmount = L(J(this.node, !0), J(this.node, !1));
67
67
  }
68
68
  unmount() {
69
69
  }
@@ -95,7 +95,7 @@ function H(t, e) {
95
95
  if (!e)
96
96
  return;
97
97
  const n = new PointerEvent("pointer" + t);
98
- e(n, Z(n));
98
+ e(n, q(n));
99
99
  }
100
100
  class fe extends w {
101
101
  constructor() {
@@ -152,8 +152,8 @@ class fe extends w {
152
152
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
153
153
  }
154
154
  }
155
- const M = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), pe = (t) => {
156
- const e = M.get(t.target);
155
+ const B = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), pe = (t) => {
156
+ const e = B.get(t.target);
157
157
  e && e(t);
158
158
  }, me = (t) => {
159
159
  t.forEach(pe);
@@ -166,8 +166,8 @@ function ve({ root: t, ...e }) {
166
166
  }
167
167
  function Pe(t, e, n) {
168
168
  const s = ve(e);
169
- return M.set(t, n), s.observe(t), () => {
170
- M.delete(t), s.unobserve(t);
169
+ return B.set(t, n), s.observe(t), () => {
170
+ B.delete(t), s.unobserve(t);
171
171
  };
172
172
  }
173
173
  const ge = {
@@ -234,11 +234,11 @@ function ne(t, e) {
234
234
  return !1;
235
235
  return !0;
236
236
  }
237
- function B(t, e, n = {}) {
238
- const s = G(t, e, n.custom);
237
+ function G(t, e, n = {}) {
238
+ const s = M(t, e, n.custom);
239
239
  let { transition: o = t.getDefaultTransition() || {} } = s || {};
240
240
  n.transitionOverride && (o = n.transitionOverride);
241
- const a = s ? () => Promise.all(Y(t, s, n)) : () => Promise.resolve(), l = t.variantChildren && t.variantChildren.size ? (i = 0) => {
241
+ const a = s ? () => Promise.all(Q(t, s, n)) : () => Promise.resolve(), l = t.variantChildren && t.variantChildren.size ? (i = 0) => {
242
242
  const { delayChildren: r = 0, staggerChildren: u, staggerDirection: p } = o;
243
243
  return we(t, e, r + i, u, p, n);
244
244
  } : () => Promise.resolve(), { when: c } = o;
@@ -251,7 +251,7 @@ function B(t, e, n = {}) {
251
251
  function we(t, e, n = 0, s = 0, o = 1, a) {
252
252
  const l = [], c = (t.variantChildren.size - 1) * s, i = o === 1 ? (r = 0) => r * s : (r = 0) => c - r * s;
253
253
  return Array.from(t.variantChildren).sort(Se).forEach((r, u) => {
254
- r.notify("AnimationStart", e), l.push(B(r, e, {
254
+ r.notify("AnimationStart", e), l.push(G(r, e, {
255
255
  ...a,
256
256
  delay: n + i(u)
257
257
  }).then(() => r.notify("AnimationComplete", e)));
@@ -264,17 +264,17 @@ function Ce(t, e, n = {}) {
264
264
  t.notify("AnimationStart", e);
265
265
  let s;
266
266
  if (Array.isArray(e)) {
267
- const o = e.map((a) => B(t, a, n));
267
+ const o = e.map((a) => G(t, a, n));
268
268
  s = Promise.all(o);
269
269
  } else if (typeof e == "string")
270
- s = B(t, e, n);
270
+ s = G(t, e, n);
271
271
  else {
272
- const o = typeof e == "function" ? G(t, e, n.custom) : e;
273
- s = Promise.all(Y(t, o, n));
272
+ const o = typeof e == "function" ? M(t, e, n.custom) : e;
273
+ s = Promise.all(Q(t, o, n));
274
274
  }
275
275
  return s.then(() => t.notify("AnimationComplete", e));
276
276
  }
277
- const Ve = [...q].reverse(), Le = q.length;
277
+ const Ve = [...j].reverse(), Le = j.length;
278
278
  function ke(t) {
279
279
  return (e) => Promise.all(e.map(({ animation: n, options: s }) => Ce(t, n, s)));
280
280
  }
@@ -283,7 +283,7 @@ function Te(t) {
283
283
  const n = xe();
284
284
  let s = !0;
285
285
  const o = (i, r) => {
286
- const u = G(t, r);
286
+ const u = M(t, r);
287
287
  if (u) {
288
288
  const { transition: p, transitionEnd: m, ...v } = u;
289
289
  i = { ...i, ...v, ...m };
@@ -303,7 +303,7 @@ function Te(t) {
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
- j(P) || typeof P == "boolean")
306
+ Z(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
@@ -320,7 +320,7 @@ function Te(t) {
320
320
  };
321
321
  for (const d in se) {
322
322
  const C = S[d], E = W[d];
323
- g.hasOwnProperty(d) || (C !== E ? X(C) && X(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);
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
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,
@@ -390,7 +390,7 @@ class Ie extends w {
390
390
  }
391
391
  updateAnimationControlsSubscription() {
392
392
  const { animate: e } = this.node.getProps();
393
- this.unmount(), j(e) && (this.unmount = e.subscribe(this.node));
393
+ this.unmount(), Z(e) && (this.unmount = e.subscribe(this.node));
394
394
  }
395
395
  /**
396
396
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -433,11 +433,11 @@ const De = {
433
433
  exit: {
434
434
  Feature: Ee
435
435
  }
436
- }, He = (t, e) => ie(t) ? new oe(e, { enableHardwareAcceleration: !1 }) : new ae(e, { enableHardwareAcceleration: !0 }), Me = {
436
+ }, He = (t, e) => ie(t) ? new oe(e, { enableHardwareAcceleration: !1 }) : new ae(e, { enableHardwareAcceleration: !0 }), Be = {
437
437
  renderer: He,
438
438
  ...De,
439
439
  ...be
440
440
  };
441
441
  export {
442
- Me as default
442
+ Be as default
443
443
  };
@@ -1,4 +1,4 @@
1
- import { T as m, b as n } from "./index-6PQ0n_zn.js";
1
+ import { T as m, b as n } from "./index-qesbduIG.js";
2
2
  export {
3
3
  m as TimezoneSelect,
4
4
  n as TimezoneSelectComponent
@@ -1,8 +1,7 @@
1
1
  import { memo as j, useState as T } from "react";
2
- import { an as k, aD as g, aE as U, aF as N, aG as C, az as b } from "./index-6PQ0n_zn.js";
3
- import { jsx as t, Fragment as v, jsxs as a } from "react/jsx-runtime";
4
- import { C as A } from "./Card-AX0eZjOC.js";
5
- const S = [{
2
+ import { an as k, aG as g, aq as t, aH as U, aI as N, aJ as C, au as b, ar as n, aC as v } from "./index-qesbduIG.js";
3
+ import { C as A } from "./Card-xM4v0QQU.js";
4
+ const I = [{
6
5
  id: 13,
7
6
  thumbnailUrl: "https://img.youtube.com/vi/ihE8OYTdklg/0.jpg",
8
7
  mediaLink: "https://go.cal.com/ooo",
@@ -93,8 +92,8 @@ const S = [{
93
92
  title: "Dynamic booking links",
94
93
  description: "Booking link that allows people to quickly schedule meetings.",
95
94
  href: "https://cal.com/blog/cal-v-1-9"
96
- }], d = S.slice(0).reverse();
97
- function I() {
95
+ }], d = I.slice(0).reverse();
96
+ function S() {
98
97
  const {
99
98
  t: r
100
99
  } = k(), [c, p] = T(() => {
@@ -115,7 +114,7 @@ function I() {
115
114
  const s = g.getItem("removedTipsIds") || "", o = i.findIndex((l) => l.id === e);
116
115
  return g.setItem("removedTipsIds", `${i[o].id.toString()}${s.length > 0 ? `,${s.split(",")}` : ""}`), i.splice(o, 1), [...i];
117
116
  });
118
- }, n = c.slice(0).reverse();
117
+ }, a = c.slice(0).reverse();
119
118
  return /* @__PURE__ */ t("div", {
120
119
  className: "hidden pb-4 pt-8 lg:grid",
121
120
  style: {
@@ -130,9 +129,9 @@ function I() {
130
129
  children: /* @__PURE__ */ t("div", {
131
130
  className: "relative",
132
131
  style: {
133
- transform: `scale(${1 - n.indexOf(e) / 20})`,
134
- top: -n.indexOf(e) * 10,
135
- opacity: `${1 - n.indexOf(e) / 7}`
132
+ transform: `scale(${1 - a.indexOf(e) / 20})`,
133
+ top: -a.indexOf(e) * 10,
134
+ opacity: `${1 - a.indexOf(e) / 7}`
136
135
  },
137
136
  children: /* @__PURE__ */ t(A, {
138
137
  variant: "SidebarCard",
@@ -153,13 +152,13 @@ function I() {
153
152
  }, e.id))
154
153
  });
155
154
  }
156
- const z = j(I);
157
- function E({
155
+ const q = j(S);
156
+ function F({
158
157
  title: r,
159
158
  description: c,
160
159
  background: p,
161
160
  features: h,
162
- buttons: n,
161
+ buttons: a,
163
162
  isParentLoading: e,
164
163
  children: i,
165
164
  plan: s
@@ -174,12 +173,12 @@ function E({
174
173
  } = N(), {
175
174
  data: u
176
175
  } = C.viewer.teams.getUpgradeable.useQuery(), f = `${p}${o === "dark" ? "-dark" : ""}.jpg`, x = !1, L = !!(u != null && u[0]);
177
- return s === "team" && (w || L) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(v, {
176
+ return s === "team" && (w || L) || s === "enterprise" && x ? i : y ? /* @__PURE__ */ t(b, {
178
177
  children: e
179
- }) : /* @__PURE__ */ a(v, {
180
- children: [/* @__PURE__ */ a("div", {
178
+ }) : /* @__PURE__ */ n(b, {
179
+ children: [/* @__PURE__ */ n("div", {
181
180
  className: "relative flex min-h-[295px] w-full items-center justify-between overflow-hidden rounded-lg pb-10",
182
- children: [/* @__PURE__ */ a("picture", {
181
+ children: [/* @__PURE__ */ n("picture", {
183
182
  className: "absolute min-h-[295px] w-full rounded-lg object-cover",
184
183
  children: [/* @__PURE__ */ t("source", {
185
184
  srcSet: f,
@@ -190,19 +189,19 @@ function E({
190
189
  loading: "lazy",
191
190
  alt: r
192
191
  })]
193
- }), /* @__PURE__ */ a("div", {
192
+ }), /* @__PURE__ */ n("div", {
194
193
  className: "relative my-4 px-8 sm:px-14",
195
194
  children: [/* @__PURE__ */ t("h1", {
196
- className: b("font-cal text-3xl"),
195
+ className: v("font-cal text-3xl"),
197
196
  children: l(r)
198
197
  }), /* @__PURE__ */ t("p", {
199
- className: b("mb-8 mt-4 max-w-sm"),
198
+ className: v("mb-8 mt-4 max-w-sm"),
200
199
  children: l(c)
201
- }), n]
200
+ }), a]
202
201
  })]
203
202
  }), /* @__PURE__ */ t("div", {
204
203
  className: "mt-4 grid-cols-3 md:grid md:gap-4",
205
- children: h.map((m) => /* @__PURE__ */ a("div", {
204
+ children: h.map((m) => /* @__PURE__ */ n("div", {
206
205
  className: "bg-muted mb-4 min-h-[180px] w-full rounded-md p-8 md:mb-0",
207
206
  children: [m.icon, /* @__PURE__ */ t("h2", {
208
207
  className: "font-cal text-emphasis mt-4 text-lg",
@@ -216,6 +215,6 @@ function E({
216
215
  });
217
216
  }
218
217
  export {
219
- z as Tips,
220
- E as UpgradeTip
218
+ q as Tips,
219
+ F as UpgradeTip
221
220
  };
@@ -0,0 +1,4 @@
1
+ import { U as i } from "./UnpublishedEntity-DUufhzoq.js";
2
+ export {
3
+ i as UnpublishedEntity
4
+ };
@@ -1,5 +1,5 @@
1
- import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-6PQ0n_zn.js";
2
- import { i } from "./isSupportedCountry-l4nZ7iA1.js";
1
+ import { D as a, P as o, f as s, g as t, g as m, i as C, p as n, a as p } from "./index-qesbduIG.js";
2
+ import { i } from "./isSupportedCountry-DoWE2ZJ9.js";
3
3
  export {
4
4
  a as DIGITS,
5
5
  o as ParseError,
@@ -1,6 +1,6 @@
1
- import { ag as o, W as s, A as t, c as r, B as n, h as i, j as l, K as d, C as p, k as u, ae as m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, ac as h, u as w, v as x, J as k, w as B, x as b, y as A, M as E, z as F, G as L, E as M, l as f, Z as G, R as v, F as U, aj as H, a1 as R, H as y, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-6PQ0n_zn.js";
2
- import { U as Sa } from "./UnpublishedEntity-YVejQGGf.js";
3
- import { C as wa } from "./Card-AX0eZjOC.js";
1
+ import { ag as o, W as s, A as t, c as r, B as n, h as i, j as l, K as d, C as p, k as u, ae as m, ad as g, X as c, a7 as C, a8 as D, a9 as T, aa as I, ab as S, ac as h, u as w, v as x, J as k, w as B, x as b, y as A, M as E, z as F, G as L, E as M, l as f, Z as G, R as v, F as U, aj as H, a1 as R, H as y, am as O, I as z, m as P, O as V, n as W, L as j, _ as q, $ as J, a0 as K, V as N, ah as Q, ai as X, ak as Y, S as Z, a5 as _, r as $, a2 as aa, a3 as ea, a4 as oa, N as sa, o as ta, q as ra, T as na, b as ia, s as la, a6 as da, Q as pa, e as ua, U as ma, d as ga, Y as ca, t as Ca, af as Da, al as Ta } from "./index-qesbduIG.js";
2
+ import { U as Sa } from "./UnpublishedEntity-DUufhzoq.js";
3
+ import { C as wa } from "./Card-xM4v0QQU.js";
4
4
  export {
5
5
  o as AddressInput,
6
6
  s as Alert,