@calcom/atoms 1.0.85 → 1.0.86

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 (65) hide show
  1. package/dist/{AddressInput-njepg6oe.js → AddressInput-ObVAnOgh.js} +1 -1
  2. package/dist/{AlbyPriceComponent-gP2kMijg.js → AlbyPriceComponent-vscQNLXw.js} +13 -13
  3. package/dist/{AppCard-c7EQIQ1q.js → AppCard-VGCWi_0K.js} +1 -1
  4. package/dist/{AppSettingsInterface-hgIWJETo.js → AppSettingsInterface-7ttB7DNi.js} +1 -1
  5. package/dist/{AppSettingsInterface-xES088vO.js → AppSettingsInterface-EM4Cguyu.js} +1 -1
  6. package/dist/{AppSettingsInterface-tpHi18BB.js → AppSettingsInterface-ajZHamu4.js} +1 -1
  7. package/dist/{Card-sXp0EK1c.js → Card-CSMJT3WP.js} +1 -1
  8. package/dist/{DateRangePicker-On43nC6c.js → DateRangePicker-fYsEEVn1.js} +1 -1
  9. package/dist/{EventTypeAppCardInterface-Xhf_a4CU.js → EventTypeAppCardInterface-1mIxIf-1.js} +3 -3
  10. package/dist/{EventTypeAppCardInterface-C4vnZgMN.js → EventTypeAppCardInterface-39qHYKIe.js} +3 -3
  11. package/dist/{EventTypeAppCardInterface-OOqw9hPb.js → EventTypeAppCardInterface-6ICRmcf3.js} +3 -3
  12. package/dist/{EventTypeAppCardInterface-LJ2VjFgW.js → EventTypeAppCardInterface-6iDFjvkw.js} +4 -4
  13. package/dist/{EventTypeAppCardInterface-wcvc3uTC.js → EventTypeAppCardInterface-I0SvANav.js} +4 -4
  14. package/dist/{EventTypeAppCardInterface-qg8z5eMm.js → EventTypeAppCardInterface-I_LeHzQ5.js} +4 -4
  15. package/dist/{EventTypeAppCardInterface-iD8A4TZa.js → EventTypeAppCardInterface-KDb0lgQb.js} +4 -4
  16. package/dist/{EventTypeAppCardInterface-KFCiCkOo.js → EventTypeAppCardInterface-VdY9HzzX.js} +3 -3
  17. package/dist/{EventTypeAppCardInterface-6EMPLGjv.js → EventTypeAppCardInterface-Vvm8Dfdc.js} +4 -4
  18. package/dist/{EventTypeAppCardInterface-MSbzxPzZ.js → EventTypeAppCardInterface-aKMEfE5Y.js} +4 -4
  19. package/dist/{EventTypeAppCardInterface-n02iscLi.js → EventTypeAppCardInterface-eLWAJItT.js} +3 -3
  20. package/dist/{EventTypeAppCardInterface-MzYtL3Lq.js → EventTypeAppCardInterface-erJjQKV1.js} +3 -3
  21. package/dist/{EventTypeAppCardInterface-n2IiHdbZ.js → EventTypeAppCardInterface-fmiSxpFJ.js} +3 -3
  22. package/dist/{EventTypeAppCardInterface-Dbn58aH9.js → EventTypeAppCardInterface-g_bRXMRK.js} +3 -3
  23. package/dist/{EventTypeAppCardInterface-LU4HbuLA.js → EventTypeAppCardInterface-jNj6QWko.js} +2 -2
  24. package/dist/{EventTypeAppCardInterface-A8wdUpdj.js → EventTypeAppCardInterface-kgD-piYC.js} +3 -3
  25. package/dist/{EventTypeAppCardInterface-znm3HyBb.js → EventTypeAppCardInterface-kj4T7NbI.js} +3 -3
  26. package/dist/{EventTypeAppCardInterface-D12X6EMP.js → EventTypeAppCardInterface-lRQ_SMwM.js} +4 -4
  27. package/dist/{EventTypeAppCardInterface-U12vXBFg.js → EventTypeAppCardInterface-pTMu3PeF.js} +3 -3
  28. package/dist/{EventTypeAppCardInterface-O9SzNUHf.js → EventTypeAppCardInterface-qIs3V6Vk.js} +4 -4
  29. package/dist/{EventTypeAppCardInterface-dtqK9tNq.js → EventTypeAppCardInterface-qkIVyx3j.js} +2 -2
  30. package/dist/EventTypeAppCardInterface-rUX5ERBf.js +23 -0
  31. package/dist/{EventTypeAppCardInterface-nwW_6Q76.js → EventTypeAppCardInterface-s0JUGtVA.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-XSKvhPaX.js → EventTypeAppCardInterface-u5oZrS8h.js} +3 -3
  33. package/dist/{EventTypeAppCardInterface-llIN_ivQ.js → EventTypeAppCardInterface-v8u3rRdy.js} +4 -4
  34. package/dist/{EventTypeAppCardInterface-BXCRhBnM.js → EventTypeAppCardInterface-xWhVbT0s.js} +4 -4
  35. package/dist/{EventTypeAppSettingsInterface-mMyvXsua.js → EventTypeAppSettingsInterface-5ZmTVlCu.js} +1 -1
  36. package/dist/{EventTypeAppSettingsInterface-4dXhQR3n.js → EventTypeAppSettingsInterface-6mwK8lFZ.js} +1 -1
  37. package/dist/{EventTypeAppSettingsInterface-B_2bHRCP.js → EventTypeAppSettingsInterface-EIBAlFw6.js} +1 -1
  38. package/dist/{EventTypeAppSettingsInterface-Hp5SSVHn.js → EventTypeAppSettingsInterface-FzEfSlwc.js} +1 -1
  39. package/dist/{EventTypeAppSettingsInterface-OxuRuMW_.js → EventTypeAppSettingsInterface-QlZCJ-r6.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-UUWX8xAI.js → EventTypeAppSettingsInterface-TwzGLJw2.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-01uVBeaQ.js → EventTypeAppSettingsInterface-i2J9j9K2.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-XhdRL9I1.js → EventTypeAppSettingsInterface-lzMMYi0u.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-tqHq_Jgf.js → EventTypeAppSettingsInterface-mxVC1aLG.js} +1 -1
  44. package/dist/{EventTypeAppSettingsInterface-YafX0_rh.js → EventTypeAppSettingsInterface-t3rCkiyn.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-FKs6wgQ5.js → EventTypeAppSettingsInterface-vCnioBJO.js} +1 -1
  46. package/dist/{EventTypeAppSettingsInterface-Fa2xr6oD.js → EventTypeAppSettingsInterface-z4uJfMve.js} +1 -1
  47. package/dist/{InstallAppButton-1wkbR8da.js → InstallAppButton-54S545oc.js} +1 -1
  48. package/dist/{InstallAppButton-Bvp3Ca35.js → InstallAppButton-B2BAwIrx.js} +1 -1
  49. package/dist/{InstallAppButton-8O9MO0kR.js → InstallAppButton-Kbpf44JM.js} +1 -1
  50. package/dist/{InstallAppButton-XY-ugxTR.js → InstallAppButton-djJqQeNL.js} +1 -1
  51. package/dist/{PhoneInput-oe0-BRR_.js → PhoneInput-3Z8hS6q7.js} +1 -1
  52. package/dist/{StripePaymentForm-IYk9FIP4.js → StripePaymentForm-hy7LibNV.js} +6 -6
  53. package/dist/cal-atoms.js +7 -7
  54. package/dist/cal-atoms.umd.cjs +307 -308
  55. package/dist/{framer-features-XBZs5E8Y.js → framer-features-SKEe-Ti0.js} +7 -7
  56. package/dist/{index-602gqURP.js → index-CRLXfHQ7.js} +55536 -55873
  57. package/dist/{index-WT14mtcU.js → index-PUphLubV.js} +13 -13
  58. package/dist/{index--OD21pJf.js → index-QADNXgP3.js} +4 -4
  59. package/dist/{index--TRO9sVo.js → index-bnynJv3r.js} +1 -1
  60. package/dist/{index-IIAnsIIJ.js → index-labDiRrL.js} +1 -1
  61. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  62. package/dist/{useIsAppEnabled-l6P6fAmE.js → useIsAppEnabled-rjr2fUts.js} +1 -1
  63. package/package.json +2 -2
  64. package/dist/EventTypeAppCardInterface-sypdXJCY.js +0 -23
  65. package/dist/Turnstile-1zdK-Udt.js +0 -174
@@ -1,11 +1,11 @@
1
- import { br as w, bs as L, bt as T, bo as U, bu as S, aU as v, bv as p, aT as t, bw as N, bx as _, a_ as $, b2 as f } from "./index-602gqURP.js";
2
- import { memo as A, useState as C } from "react";
3
- import { C as R } from "./Card-sXp0EK1c.js";
4
- var F = Math.floor, I = Math.random;
5
- function O(e, s) {
6
- return e + F(I() * (s - e + 1));
1
+ import { bp as w, bq as L, br as T, bm as U, bs as S, aU as v, bt as p, aT as t, bu as N, bv as $, a_ as A, b2 as f } from "./index-CRLXfHQ7.js";
2
+ import { memo as C, useState as R } from "react";
3
+ import { C as _ } from "./Card-CSMJT3WP.js";
4
+ var I = Math.floor, F = Math.random;
5
+ function q(e, s) {
6
+ return e + I(F() * (s - e + 1));
7
7
  }
8
- var q = O, E = q;
8
+ var O = q, E = O;
9
9
  function V(e, s) {
10
10
  var r = -1, l = e.length, n = l - 1;
11
11
  for (s = s === void 0 ? l : s; ++r < s; ) {
@@ -14,7 +14,7 @@ function V(e, s) {
14
14
  }
15
15
  return e.length = s, e;
16
16
  }
17
- var b = V, M = w, P = b;
17
+ var b = V, M = w(), P = b;
18
18
  function G(e) {
19
19
  return P(M(e));
20
20
  }
@@ -32,7 +32,7 @@ var Z = W, z = b, J = Z;
32
32
  function X(e) {
33
33
  return z(J(e));
34
34
  }
35
- var ee = X, te = B, ie = ee, se = S;
35
+ var ee = X, te = B, ie = ee, se = S();
36
36
  function oe(e) {
37
37
  var s = se(e) ? te : ie;
38
38
  return s(e);
@@ -145,7 +145,7 @@ const ae = /* @__PURE__ */ U(re), ne = [
145
145
  }
146
146
  ], u = ae(ne).slice(0).reverse();
147
147
  function le() {
148
- const { t: e } = v(), [s, r] = C(() => {
148
+ const { t: e } = v(), [s, r] = R(() => {
149
149
  if (typeof window > "u")
150
150
  return u;
151
151
  try {
@@ -192,7 +192,7 @@ function le() {
192
192
  opacity: `${1 - n.indexOf(i) / 7}`
193
193
  },
194
194
  children: /* @__PURE__ */ t.jsx(
195
- R,
195
+ _,
196
196
  {
197
197
  variant: "SidebarCard",
198
198
  thumbnailUrl: i.thumbnailUrl,
@@ -211,7 +211,7 @@ function le() {
211
211
  }
212
212
  );
213
213
  }
214
- const ue = A(le);
214
+ const ue = C(le);
215
215
  function he({
216
216
  title: e,
217
217
  description: s,
@@ -222,7 +222,7 @@ function he({
222
222
  children: o,
223
223
  plan: c
224
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]);
225
+ const { resolvedTheme: a } = N(), { t: m } = v(), { isPending: x, hasTeamPlan: y } = $(), { data: h } = A.viewer.teams.getUpgradeable.useQuery(), g = `${r}${a === "dark" ? "-dark" : ""}.jpg`, j = !1, k = !!(h != null && h[0]);
226
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
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
228
  /* @__PURE__ */ t.jsxs("picture", { className: "absolute min-h-[295px] w-full rounded-lg object-cover", children: [
@@ -1,7 +1,7 @@
1
- import { ae as s, ar as o, V as t, an as r, A as n, c as i, B as l, v as d, w as p, e as u, j as g, aH as S, ap as m, C as c, k as C, G as T, am as h, al as D, W as I, x as w, af as b, ag as x, ah as F, ai as L, aj as A, ak as B, ao as k, aG as f, aI as E, aJ as G, aK as H, aL as M, aM as y, aN as z, aO as P, aP as R, E as v, ad as V, l as O, Y as N, Q as U, F as W, au as j, a2 as q, H as J, a9 as K, a8 as Q, aQ as X, aR as Y, I as Z, m as _, M as $, n as aa, L as ea, _ as sa, $ as oa, a0 as ta, a1 as ra, a7 as na, R as ia, o as la, as as da, at as pa, av as ua, S as ga, t as Sa, a6 as ma, u as ca, J as Ca, ax as Ta, ay as ha, az as Da, aA as Ia, aB as wa, aC as ba, aD as xa, aE as Fa, aF as La, a3 as Aa, a4 as Ba, a5 as ka, K as fa, q as Ea, r as Ga, s as Ha, T as Ma, b as ya, y as za, ac as Pa, O as Ra, Z as va, d as Va, U as Oa, X as Na, ab as Ua, aa as Wa, h as ja, z as qa, aq as Ja, aw as Ka, N as Qa } from "./index-602gqURP.js";
2
- import { default as Ya } from "./PhoneInput-oe0-BRR_.js";
3
- import { default as _a } from "./AddressInput-njepg6oe.js";
4
- import { C as ae } from "./Card-sXp0EK1c.js";
1
+ import { ae as s, ar as o, V as t, an as r, A as n, c as i, B as l, v as d, w as p, e as u, j as g, aH as S, ap as m, C as c, k as C, G as T, am as h, al as D, W as I, x as w, af as b, ag as x, ah as F, ai as L, aj as A, ak as B, ao as k, aG as f, aI as E, aJ as G, aK as H, aL as M, aM as y, aN as z, aO as P, aP as R, E as v, ad as V, l as O, Y as N, Q as U, F as W, au as j, a2 as q, H as J, a9 as K, a8 as Q, aQ as X, aR as Y, I as Z, m as _, M as $, n as aa, L as ea, _ as sa, $ as oa, a0 as ta, a1 as ra, a7 as na, R as ia, o as la, as as da, at as pa, av as ua, S as ga, t as Sa, a6 as ma, u as ca, J as Ca, ax as Ta, ay as ha, az as Da, aA as Ia, aB as wa, aC as ba, aD as xa, aE as Fa, aF as La, a3 as Aa, a4 as Ba, a5 as ka, K as fa, q as Ea, r as Ga, s as Ha, T as Ma, b as ya, y as za, ac as Pa, O as Ra, Z as va, d as Va, U as Oa, X as Na, ab as Ua, aa as Wa, h as ja, z as qa, aq as Ja, aw as Ka, N as Qa } from "./index-CRLXfHQ7.js";
2
+ import { default as Ya } from "./PhoneInput-3Z8hS6q7.js";
3
+ import { default as _a } from "./AddressInput-ObVAnOgh.js";
4
+ import { C as ae } from "./Card-CSMJT3WP.js";
5
5
  export {
6
6
  s as AddVariablesDropdown,
7
7
  o as AddressInput,
@@ -1,4 +1,4 @@
1
- import { T as m, b as n } from "./index-602gqURP.js";
1
+ import { T as m, b as n } from "./index-CRLXfHQ7.js";
2
2
  export {
3
3
  m as TimezoneSelect,
4
4
  n as TimezoneSelectComponent
@@ -1,4 +1,4 @@
1
- import { D as r, P as o, f as s, g as t, g as m, i as C, p as n, a as u } from "./index-602gqURP.js";
1
+ import { D as r, P as o, f as s, g as t, g as m, i as C, p as n, a as u } from "./index-CRLXfHQ7.js";
2
2
  export {
3
3
  r as DIGITS,
4
4
  o as ParseError,
@@ -1 +1 @@
1
- {"version":3,"file":"Booker.d.ts","sourceRoot":"","sources":["../../../../../../../features/bookings/Booker/Booker.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAqf/D,eAAO,MAAM,MAAM,UAAW,WAAW,GAAG,kBAAkB,gBAM7D,CAAC"}
1
+ {"version":3,"file":"Booker.d.ts","sourceRoot":"","sources":["../../../../../../../features/bookings/Booker/Booker.tsx"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAmf/D,eAAO,MAAM,MAAM,UAAW,WAAW,GAAG,kBAAkB,gBAM7D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { useState as c } from "react";
2
- import { aW as o } from "./index-602gqURP.js";
2
+ import { aW as o } from "./index-CRLXfHQ7.js";
3
3
  function f(e) {
4
4
  const { getAppData: a, setAppData: i } = o(), [l, s] = c(() => {
5
5
  const t = a("enabled");
package/package.json CHANGED
@@ -4,11 +4,11 @@
4
4
  "type": "module",
5
5
  "description": "Customizable UI components to integrate scheduling into your product.",
6
6
  "authors": "Cal.com, Inc.",
7
- "version": "1.0.85",
7
+ "version": "1.0.86",
8
8
  "scripts": {
9
9
  "dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch",
10
10
  "build": "yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify && mkdir ./dist/packages/prisma-client && cp -rf ../../../node_modules/.prisma/client/*.d.ts ./dist/packages/prisma-client",
11
- "publish": "rm -rf dist && yarn build && npm publish --access public --preid=rc",
11
+ "publish": "rm -rf dist && yarn build && npm publish --access public",
12
12
  "test": "jest"
13
13
  },
14
14
  "devDependencies": {
@@ -1,23 +0,0 @@
1
- import { aV as o, aT as d, aY as i } from "./index-602gqURP.js";
2
- import { A as m } from "./AppCard-c7EQIQ1q.js";
3
- import { u } from "./useIsAppEnabled-l6P6fAmE.js";
4
- const E = function({ app: a, eventType: e }) {
5
- var t;
6
- const p = o.usePathname(), { enabled: n, updateEnabled: s } = u(a);
7
- return /* @__PURE__ */ d.jsx(
8
- m,
9
- {
10
- returnTo: `${i}${p}?tabName=apps`,
11
- app: a,
12
- teamId: ((t = e.team) == null ? void 0 : t.id) || void 0,
13
- switchOnClick: (r) => {
14
- s(r);
15
- },
16
- switchChecked: n,
17
- hideAppCardOptions: !0
18
- }
19
- );
20
- };
21
- export {
22
- E as default
23
- };
@@ -1,174 +0,0 @@
1
- import { bh as s, bi as G, aT as K } from "./index-602gqURP.js";
2
- import Q from "react";
3
- var b = {}, V = s && s.__createBinding || (Object.create ? function(e, r, l, i) {
4
- i === void 0 && (i = l);
5
- var a = Object.getOwnPropertyDescriptor(r, l);
6
- (!a || ("get" in a ? !r.__esModule : a.writable || a.configurable)) && (a = { enumerable: !0, get: function() {
7
- return r[l];
8
- } }), Object.defineProperty(e, i, a);
9
- } : function(e, r, l, i) {
10
- i === void 0 && (i = l), e[i] = r[l];
11
- }), Y = s && s.__setModuleDefault || (Object.create ? function(e, r) {
12
- Object.defineProperty(e, "default", { enumerable: !0, value: r });
13
- } : function(e, r) {
14
- e.default = r;
15
- }), Z = s && s.__importStar || function(e) {
16
- if (e && e.__esModule)
17
- return e;
18
- var r = {};
19
- if (e != null)
20
- for (var l in e)
21
- l !== "default" && Object.prototype.hasOwnProperty.call(e, l) && V(r, e, l);
22
- return Y(r, e), r;
23
- };
24
- Object.defineProperty(b, "__esModule", { value: !0 });
25
- b.useTurnstile = void 0;
26
- const d = Z(Q), v = typeof globalThis < "u" ? globalThis : window;
27
- let c = typeof v.turnstile < "u" ? "ready" : "unloaded", W, L;
28
- const X = new Promise((e, r) => {
29
- L = { resolve: e, reject: r }, c === "ready" && e(void 0);
30
- });
31
- {
32
- const e = "cf__reactTurnstileOnLoad", r = "https://challenges.cloudflare.com/turnstile/v0/api.js";
33
- W = () => {
34
- if (c === "unloaded") {
35
- c = "loading", v[e] = () => {
36
- L.resolve(), c = "ready", delete v[e];
37
- };
38
- const l = `${r}?onload=${e}&render=explicit`, i = document.createElement("script");
39
- i.src = l, i.async = !0, i.addEventListener("error", () => {
40
- L.reject("Failed to load Turnstile."), delete v[e];
41
- }), document.head.appendChild(i);
42
- }
43
- return X;
44
- };
45
- }
46
- function k({ id: e, className: r, style: l, sitekey: i, action: a, cData: P, theme: R, language: N, tabIndex: C, responseField: D, responseFieldName: M, size: _, fixedSize: q, retry: U, retryInterval: B, refreshExpired: I, appearance: A, execution: $, userRef: T, onVerify: w, onLoad: E, onError: O, onExpire: m, onTimeout: j, onAfterInteractive: h, onBeforeInteractive: x, onUnsupported: y }) {
47
- const H = (0, d.useRef)(null), t = (0, d.useState)({
48
- onVerify: w,
49
- onLoad: E,
50
- onError: O,
51
- onExpire: m,
52
- onTimeout: j,
53
- onAfterInteractive: h,
54
- onBeforeInteractive: x,
55
- onUnsupported: y
56
- })[0], p = T ?? H;
57
- return (0, d.useEffect)(() => {
58
- if (!p.current)
59
- return;
60
- let F = !1, f = "";
61
- return (async () => {
62
- var S, g;
63
- if (c !== "ready")
64
- try {
65
- await W();
66
- } catch (n) {
67
- (S = t.onError) === null || S === void 0 || S.call(t, n);
68
- return;
69
- }
70
- if (F || !p.current)
71
- return;
72
- let o;
73
- const J = {
74
- sitekey: i,
75
- action: a,
76
- cData: P,
77
- theme: R,
78
- language: N,
79
- tabindex: C,
80
- "response-field": D,
81
- "response-field-name": M,
82
- size: _,
83
- retry: U,
84
- "retry-interval": B,
85
- "refresh-expired": I,
86
- appearance: A,
87
- execution: $,
88
- callback: (n) => {
89
- var u;
90
- return (u = t.onVerify) === null || u === void 0 ? void 0 : u.call(t, n, o);
91
- },
92
- "error-callback": (n) => {
93
- var u;
94
- return (u = t.onError) === null || u === void 0 ? void 0 : u.call(t, n, o);
95
- },
96
- "expired-callback": (n) => {
97
- var u;
98
- return (u = t.onExpire) === null || u === void 0 ? void 0 : u.call(t, n, o);
99
- },
100
- "timeout-callback": () => {
101
- var n;
102
- return (n = t.onTimeout) === null || n === void 0 ? void 0 : n.call(t, o);
103
- },
104
- "after-interactive-callback": () => {
105
- var n;
106
- return (n = t.onAfterInteractive) === null || n === void 0 ? void 0 : n.call(t, o);
107
- },
108
- "before-interactive-callback": () => {
109
- var n;
110
- return (n = t.onBeforeInteractive) === null || n === void 0 ? void 0 : n.call(t, o);
111
- },
112
- "unsupported-callback": () => {
113
- var n;
114
- return (n = t.onUnsupported) === null || n === void 0 ? void 0 : n.call(t, o);
115
- }
116
- };
117
- f = window.turnstile.render(p.current, J), o = ee(f), (g = t.onLoad) === null || g === void 0 || g.call(t, f, o);
118
- })(), () => {
119
- F = !0, f && window.turnstile.remove(f);
120
- };
121
- }, [
122
- i,
123
- a,
124
- P,
125
- R,
126
- N,
127
- C,
128
- D,
129
- M,
130
- _,
131
- U,
132
- B,
133
- I,
134
- A,
135
- $
136
- ]), (0, d.useEffect)(() => {
137
- t.onVerify = w, t.onLoad = E, t.onError = O, t.onExpire = m, t.onTimeout = j, t.onAfterInteractive = h, t.onBeforeInteractive = x, t.onUnsupported = y;
138
- }, [
139
- w,
140
- E,
141
- O,
142
- m,
143
- j,
144
- h,
145
- x,
146
- y
147
- ]), d.default.createElement("div", { ref: p, id: e, className: r, style: q ? {
148
- ...l ?? {},
149
- width: _ === "compact" ? "130px" : "300px",
150
- height: _ === "compact" ? "120px" : "65px"
151
- } : l });
152
- }
153
- var z = b.default = k;
154
- function ee(e) {
155
- return {
156
- execute: (r) => window.turnstile.execute(e, r),
157
- reset: () => window.turnstile.reset(e),
158
- getResponse: () => window.turnstile.getResponse(e),
159
- isExpired: () => window.turnstile.isExpired(e)
160
- };
161
- }
162
- function te() {
163
- const [e, r] = (0, d.useState)(c);
164
- return (0, d.useEffect)(() => {
165
- c !== "ready" && X.then(() => r(c));
166
- }, []), v.turnstile;
167
- }
168
- b.useTurnstile = te;
169
- function le(e) {
170
- return !G || process.env.NEXT_PUBLIC_IS_E2E ? null : /* @__PURE__ */ K.jsx(z, { ...e, sitekey: G, theme: "auto" });
171
- }
172
- export {
173
- le as default
174
- };