@calcom/atoms 1.0.97-beta-1 → 1.0.97-beta-3

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 (103) hide show
  1. package/dist/{AddressInput-MxFRI9cW.js → AddressInput-LPJtHhnk.js} +9 -8
  2. package/dist/{AlbyPriceComponent-B7reGN3c.js → AlbyPriceComponent-VO8iEUWb.js} +53 -52
  3. package/dist/AppCard-cTyZ7qdO.js +162 -0
  4. package/dist/AppListCardPlatformWrapper-ErlT9yQV.js +9 -0
  5. package/dist/{AppListCardWebWrapper-3ZmWWW_L.js → AppListCardWebWrapper-nLRKr-Qu.js} +10 -9
  6. package/dist/AppSettingsInterface-1iuEhZRw.js +23 -0
  7. package/dist/AppSettingsInterface-9nYzo3Ef.js +29 -0
  8. package/dist/AppSettingsInterface-Y7iloRRd.js +75 -0
  9. package/dist/{DateRangePicker-GTmIREkF.js → DateRangePicker-zh9gM3ld.js} +784 -783
  10. package/dist/EventTypeAppCardInterface-0tcE4MHz.js +32 -0
  11. package/dist/EventTypeAppCardInterface-2xzo_8rb.js +453 -0
  12. package/dist/EventTypeAppCardInterface-3xv7ZK_G.js +41 -0
  13. package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-4dkcilsD.js} +17 -16
  14. package/dist/EventTypeAppCardInterface-A7WN14Mn.js +34 -0
  15. package/dist/EventTypeAppCardInterface-BbJv67UJ.js +49 -0
  16. package/dist/EventTypeAppCardInterface-D42_2WwA.js +42 -0
  17. package/dist/EventTypeAppCardInterface-F9zy0_KX.js +24 -0
  18. package/dist/EventTypeAppCardInterface-LB9yguQb.js +39 -0
  19. package/dist/EventTypeAppCardInterface-PGX33FFN.js +42 -0
  20. package/dist/EventTypeAppCardInterface-PaCD78C8.js +33 -0
  21. package/dist/EventTypeAppCardInterface-QiaQ-GmU.js +51 -0
  22. package/dist/EventTypeAppCardInterface-S5bK4a_4.js +24 -0
  23. package/dist/EventTypeAppCardInterface-SXV5NhVT.js +24 -0
  24. package/dist/EventTypeAppCardInterface-SdCRwS0b.js +34 -0
  25. package/dist/EventTypeAppCardInterface-TV1GspR-.js +41 -0
  26. package/dist/EventTypeAppCardInterface-WrBEdjss.js +86 -0
  27. package/dist/EventTypeAppCardInterface-Xl60vAW7.js +34 -0
  28. package/dist/EventTypeAppCardInterface-bY6zHj23.js +34 -0
  29. package/dist/EventTypeAppCardInterface-bpyx9DoB.js +34 -0
  30. package/dist/EventTypeAppCardInterface-dSD0TA4p.js +34 -0
  31. package/dist/EventTypeAppCardInterface-hulmgxtc.js +24 -0
  32. package/dist/EventTypeAppCardInterface-n8fugRqn.js +32 -0
  33. package/dist/EventTypeAppCardInterface-qqnnC5vq.js +24 -0
  34. package/dist/EventTypeAppCardInterface-rVMclz_u.js +34 -0
  35. package/dist/EventTypeAppCardInterface-zXewU-bg.js +31 -0
  36. package/dist/EventTypeAppSettingsInterface-2oHFXxC0.js +221 -0
  37. package/dist/{EventTypeAppSettingsInterface-cXn8l171.js → EventTypeAppSettingsInterface-5hQr6WTa.js} +7 -6
  38. package/dist/{EventTypeAppSettingsInterface-9raltJka.js → EventTypeAppSettingsInterface-CwuQI4XA.js} +39 -38
  39. package/dist/EventTypeAppSettingsInterface-HGPywPcZ.js +43 -0
  40. package/dist/EventTypeAppSettingsInterface-MLox-zIr.js +78 -0
  41. package/dist/EventTypeAppSettingsInterface-azMpYm3v.js +48 -0
  42. package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-ccBCyO4S.js} +6 -5
  43. package/dist/EventTypeAppSettingsInterface-jCOnJXVq.js +42 -0
  44. package/dist/EventTypeAppSettingsInterface-rUp-tPsO.js +72 -0
  45. package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-sOLaF1pR.js} +6 -5
  46. package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-v8a7XnIr.js} +6 -5
  47. package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-xlYsU6Vi.js} +72 -71
  48. package/dist/InstallAppButton-34JAPxwK.js +14 -0
  49. package/dist/{InstallAppButton-Ho1cJkMm.js → InstallAppButton-JXhBVaYJ.js} +8 -8
  50. package/dist/InstallAppButton-ihX89_K4.js +58 -0
  51. package/dist/InstallAppButton-zjD9dbE7.js +14 -0
  52. package/dist/{PhoneInput-DNq9V1s5.js → PhoneInput-saKL4loW.js} +97 -96
  53. package/dist/{StripePaymentForm-lGjXjqLX.js → StripePaymentForm-dfxxUj2E.js} +100 -99
  54. package/dist/cal-atoms.js +6 -6
  55. package/dist/{framer-features--8Hvyv45.js → framer-features-K_TB52kd.js} +11 -11
  56. package/dist/{index-fsA0kHyy.js → index-81plgMPe.js} +1 -1
  57. package/dist/{index-cfay3a2W.js → index-IPz9Apiv.js} +1 -1
  58. package/dist/{index-Bj_kD41n.js → index-engsJK56.js} +108 -107
  59. package/dist/{index-OYPUcfnB.js → index-ite7gJ1a.js} +2 -2
  60. package/dist/{index-M6WUZF2M.js → index-ykl8OQ78.js} +66312 -66946
  61. package/dist/{isSupportedCountry-aizVo7Oo.js → isSupportedCountry-RPoEk3Bi.js} +1 -1
  62. package/dist/{useIsAppEnabled-OmKRsE8Z.js → useIsAppEnabled-jQTpW-EN.js} +1 -1
  63. package/globals.min.css +22 -2
  64. package/package.json +1 -1
  65. package/dist/AppCard-ImfOuDL_.js +0 -161
  66. package/dist/AppListCardPlatformWrapper-Kgk0fNGU.js +0 -8
  67. package/dist/AppSettingsInterface-4JMt22o1.js +0 -22
  68. package/dist/AppSettingsInterface-8TqZVnNL.js +0 -74
  69. package/dist/AppSettingsInterface-MQ_fkHJx.js +0 -28
  70. package/dist/EventTypeAppCardInterface-0O_KGHxp.js +0 -40
  71. package/dist/EventTypeAppCardInterface-0Z1NiGs_.js +0 -23
  72. package/dist/EventTypeAppCardInterface-0bkDiimc.js +0 -33
  73. package/dist/EventTypeAppCardInterface-4bmGNjTO.js +0 -452
  74. package/dist/EventTypeAppCardInterface-6Hs2WiRN.js +0 -23
  75. package/dist/EventTypeAppCardInterface-6QhUsfck.js +0 -38
  76. package/dist/EventTypeAppCardInterface-CSZJxMAi.js +0 -48
  77. package/dist/EventTypeAppCardInterface-D5NE1JH-.js +0 -33
  78. package/dist/EventTypeAppCardInterface-GpzdxrTy.js +0 -41
  79. package/dist/EventTypeAppCardInterface-HDqpiB_E.js +0 -33
  80. package/dist/EventTypeAppCardInterface-IsJt3HGB.js +0 -30
  81. package/dist/EventTypeAppCardInterface-K_hBnKz2.js +0 -23
  82. package/dist/EventTypeAppCardInterface-QuKynjTF.js +0 -23
  83. package/dist/EventTypeAppCardInterface-Uk-367hU.js +0 -33
  84. package/dist/EventTypeAppCardInterface-UrOLCYHp.js +0 -31
  85. package/dist/EventTypeAppCardInterface-WhX3MQGL.js +0 -33
  86. package/dist/EventTypeAppCardInterface-_a5TsCGC.js +0 -41
  87. package/dist/EventTypeAppCardInterface-_e0oMnpF.js +0 -33
  88. package/dist/EventTypeAppCardInterface-bfOpI-Cg.js +0 -23
  89. package/dist/EventTypeAppCardInterface-dQBcQRe5.js +0 -85
  90. package/dist/EventTypeAppCardInterface-jDIOSF5p.js +0 -31
  91. package/dist/EventTypeAppCardInterface-pgZqPYuy.js +0 -40
  92. package/dist/EventTypeAppCardInterface-rJaUyBaK.js +0 -32
  93. package/dist/EventTypeAppCardInterface-sAMfJ4Zp.js +0 -50
  94. package/dist/EventTypeAppCardInterface-xkCoWuR1.js +0 -33
  95. package/dist/EventTypeAppSettingsInterface-0MtsVqm9.js +0 -71
  96. package/dist/EventTypeAppSettingsInterface-4AylQiBj.js +0 -47
  97. package/dist/EventTypeAppSettingsInterface-Br_BvYU4.js +0 -77
  98. package/dist/EventTypeAppSettingsInterface-CkbhDi5X.js +0 -42
  99. package/dist/EventTypeAppSettingsInterface-nwSw369C.js +0 -220
  100. package/dist/EventTypeAppSettingsInterface-x-GvtrwY.js +0 -41
  101. package/dist/InstallAppButton-7AfVFA1y.js +0 -13
  102. package/dist/InstallAppButton-PfrQUF7k.js +0 -13
  103. package/dist/InstallAppButton-R3hBMMGj.js +0 -57
@@ -1,6 +1,7 @@
1
- import { av as S, z as Q, x as v, c as _e, G as H, W as Ce } from "./index-M6WUZF2M.js";
1
+ import { jsxs as H, jsx as g } from "react/jsx-runtime";
2
2
  import f, { useState as R, useEffect as Z } from "react";
3
- function G(n, e) {
3
+ import { au as S, y as ee, c as Ce, z as G, W as Oe } from "./index-ykl8OQ78.js";
4
+ function Y(n, e) {
4
5
  var t = Object.keys(n);
5
6
  if (Object.getOwnPropertySymbols) {
6
7
  var r = Object.getOwnPropertySymbols(n);
@@ -10,12 +11,12 @@ function G(n, e) {
10
11
  }
11
12
  return t;
12
13
  }
13
- function Y(n) {
14
+ function z(n) {
14
15
  for (var e = 1; e < arguments.length; e++) {
15
16
  var t = arguments[e] != null ? arguments[e] : {};
16
- e % 2 ? G(Object(t), !0).forEach(function(r) {
17
- ee(n, r, t[r]);
18
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : G(Object(t)).forEach(function(r) {
17
+ e % 2 ? Y(Object(t), !0).forEach(function(r) {
18
+ te(n, r, t[r]);
19
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Y(Object(t)).forEach(function(r) {
19
20
  Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
20
21
  });
21
22
  }
@@ -29,7 +30,7 @@ function A(n) {
29
30
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
30
31
  }, A(n);
31
32
  }
32
- function ee(n, e, t) {
33
+ function te(n, e, t) {
33
34
  return e in n ? Object.defineProperty(n, e, {
34
35
  value: t,
35
36
  enumerable: !0,
@@ -37,14 +38,14 @@ function ee(n, e, t) {
37
38
  writable: !0
38
39
  }) : n[e] = t, n;
39
40
  }
40
- function Oe(n, e) {
41
- return Pe(n) || we(n, e) || je(n, e) || xe();
41
+ function Pe(n, e) {
42
+ return we(n) || je(n, e) || xe(n, e) || Ae();
42
43
  }
43
- function Pe(n) {
44
+ function we(n) {
44
45
  if (Array.isArray(n))
45
46
  return n;
46
47
  }
47
- function we(n, e) {
48
+ function je(n, e) {
48
49
  var t = n && (typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"]);
49
50
  if (t != null) {
50
51
  var r = [], i = !0, a = !1, d, l;
@@ -64,24 +65,24 @@ function we(n, e) {
64
65
  return r;
65
66
  }
66
67
  }
67
- function je(n, e) {
68
+ function xe(n, e) {
68
69
  if (n) {
69
70
  if (typeof n == "string")
70
- return z(n, e);
71
+ return V(n, e);
71
72
  var t = Object.prototype.toString.call(n).slice(8, -1);
72
73
  if (t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set")
73
74
  return Array.from(n);
74
75
  if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
75
- return z(n, e);
76
+ return V(n, e);
76
77
  }
77
78
  }
78
- function z(n, e) {
79
+ function V(n, e) {
79
80
  (e == null || e > n.length) && (e = n.length);
80
81
  for (var t = 0, r = new Array(e); t < e; t++)
81
82
  r[t] = n[t];
82
83
  return r;
83
84
  }
84
- function xe() {
85
+ function Ae() {
85
86
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
87
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
87
88
  }
@@ -92,17 +93,17 @@ var T = function(e) {
92
93
  }, [e]), t.current;
93
94
  }, P = function(e) {
94
95
  return e !== null && A(e) === "object";
95
- }, Ae = function(e) {
96
- return P(e) && typeof e.then == "function";
97
96
  }, Le = function(e) {
97
+ return P(e) && typeof e.then == "function";
98
+ }, Re = function(e) {
98
99
  return P(e) && typeof e.elements == "function" && typeof e.createToken == "function" && typeof e.createPaymentMethod == "function" && typeof e.confirmCardPayment == "function";
99
- }, V = "[object Object]", Re = function n(e, t) {
100
+ }, X = "[object Object]", Ie = function n(e, t) {
100
101
  if (!P(e) || !P(t))
101
102
  return e === t;
102
103
  var r = Array.isArray(e), i = Array.isArray(t);
103
104
  if (r !== i)
104
105
  return !1;
105
- var a = Object.prototype.toString.call(e) === V, d = Object.prototype.toString.call(t) === V;
106
+ var a = Object.prototype.toString.call(e) === X, d = Object.prototype.toString.call(t) === X;
106
107
  if (a !== d)
107
108
  return !1;
108
109
  if (!a && !r)
@@ -121,22 +122,22 @@ var T = function(e) {
121
122
  return n(b[j], _[j]);
122
123
  };
123
124
  return u.every(C);
124
- }, te = function(e, t, r) {
125
+ }, ne = function(e, t, r) {
125
126
  return P(e) ? Object.keys(e).reduce(function(i, a) {
126
- var d = !P(t) || !Re(e[a], t[a]);
127
- return r.includes(a) ? (d && console.warn("Unsupported prop change: options.".concat(a, " is not a mutable property.")), i) : d ? Y(Y({}, i || {}), {}, ee({}, a, e[a])) : i;
127
+ var d = !P(t) || !Ie(e[a], t[a]);
128
+ return r.includes(a) ? (d && console.warn("Unsupported prop change: options.".concat(a, " is not a mutable property.")), i) : d ? z(z({}, i || {}), {}, te({}, a, e[a])) : i;
128
129
  }, null) : null;
129
- }, Ie = "Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.", X = function(e) {
130
- if (e === null || Le(e))
130
+ }, ke = "Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.", J = function(e) {
131
+ if (e === null || Re(e))
131
132
  return e;
132
- throw new Error(Ie);
133
- }, ke = function(e) {
134
- if (Ae(e))
133
+ throw new Error(ke);
134
+ }, Ne = function(e) {
135
+ if (Le(e))
135
136
  return {
136
137
  tag: "async",
137
- stripePromise: Promise.resolve(e).then(X)
138
+ stripePromise: Promise.resolve(e).then(J)
138
139
  };
139
- var t = X(e);
140
+ var t = J(e);
140
141
  return t === null ? {
141
142
  tag: "empty"
142
143
  } : {
@@ -145,19 +146,19 @@ var T = function(e) {
145
146
  };
146
147
  }, $ = /* @__PURE__ */ f.createContext(null);
147
148
  $.displayName = "ElementsContext";
148
- var Ne = function(e, t) {
149
+ var Te = function(e, t) {
149
150
  if (!e)
150
151
  throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t, " in an <Elements> provider."));
151
152
  return e;
152
- }, ne = function(e) {
153
+ }, re = function(e) {
153
154
  var t = e.stripe, r = e.options, i = e.children, a = f.useMemo(function() {
154
- return ke(t);
155
+ return Ne(t);
155
156
  }, [t]), d = f.useState(function() {
156
157
  return {
157
158
  stripe: a.tag === "sync" ? a.stripe : null,
158
159
  elements: a.tag === "sync" ? a.stripe.elements(r) : null
159
160
  };
160
- }), l = Oe(d, 2), o = l[0], s = l[1];
161
+ }), l = Pe(d, 2), o = l[0], s = l[1];
161
162
  f.useEffect(function() {
162
163
  var u = !0, b = function(C) {
163
164
  s(function(w) {
@@ -180,7 +181,7 @@ var Ne = function(e, t) {
180
181
  var y = T(r);
181
182
  return f.useEffect(function() {
182
183
  if (o.elements) {
183
- var u = te(r, y, ["clientSecret", "fonts"]);
184
+ var u = ne(r, y, ["clientSecret", "fonts"]);
184
185
  u && o.elements.update(u);
185
186
  }
186
187
  }, [r, y, o.elements]), f.useEffect(function() {
@@ -197,17 +198,17 @@ var Ne = function(e, t) {
197
198
  value: o
198
199
  }, i);
199
200
  };
200
- ne.propTypes = {
201
+ re.propTypes = {
201
202
  stripe: S.any,
202
203
  options: S.object
203
204
  };
204
205
  var I = function(e) {
205
206
  var t = f.useContext($);
206
- return Ne(t, e);
207
- }, Te = function() {
207
+ return Te(t, e);
208
+ }, $e = function() {
208
209
  var e = I("calls useElements()"), t = e.elements;
209
210
  return t;
210
- }, $e = function() {
211
+ }, Be = function() {
211
212
  var e = I("calls useStripe()"), t = e.stripe;
212
213
  return t;
213
214
  };
@@ -220,24 +221,24 @@ var h = function(e) {
220
221
  t.current && t.current.apply(t, arguments);
221
222
  };
222
223
  }, E = function() {
223
- }, Be = function(e) {
224
+ }, Ue = function(e) {
224
225
  return e.charAt(0).toUpperCase() + e.slice(1);
225
226
  }, p = function(e, t) {
226
- var r = "".concat(Be(e), "Element"), i = function(o) {
227
- var s = o.id, c = o.className, y = o.options, u = y === void 0 ? {} : y, b = o.onBlur, _ = b === void 0 ? E : b, C = o.onFocus, w = C === void 0 ? E : C, j = o.onReady, se = j === void 0 ? E : j, U = o.onChange, ce = U === void 0 ? E : U, W = o.onEscape, ue = W === void 0 ? E : W, F = o.onClick, le = F === void 0 ? E : F, D = o.onLoadError, fe = D === void 0 ? E : D, q = o.onLoaderStart, de = q === void 0 ? E : q, pe = I("mounts <".concat(r, ">")), M = pe.elements, O = f.useRef(null), k = f.useRef(null), me = h(se), ye = h(_), ve = h(w), ge = h(le), Se = h(ce), be = h(ue), he = h(fe), Ee = h(de);
227
+ var r = "".concat(Ue(e), "Element"), i = function(o) {
228
+ var s = o.id, c = o.className, y = o.options, u = y === void 0 ? {} : y, b = o.onBlur, _ = b === void 0 ? E : b, C = o.onFocus, w = C === void 0 ? E : C, j = o.onReady, ce = j === void 0 ? E : j, U = o.onChange, ue = U === void 0 ? E : U, W = o.onEscape, le = W === void 0 ? E : W, F = o.onClick, fe = F === void 0 ? E : F, D = o.onLoadError, de = D === void 0 ? E : D, q = o.onLoaderStart, pe = q === void 0 ? E : q, me = I("mounts <".concat(r, ">")), M = me.elements, O = f.useRef(null), k = f.useRef(null), ye = h(ce), ve = h(_), ge = h(w), Se = h(fe), be = h(ue), he = h(le), Ee = h(de), _e = h(pe);
228
229
  f.useLayoutEffect(function() {
229
230
  if (O.current == null && M && k.current != null) {
230
- var g = M.create(e, u);
231
- O.current = g, g.mount(k.current), g.on("ready", function() {
232
- return me(g);
233
- }), g.on("change", Se), g.on("blur", ye), g.on("focus", ve), g.on("escape", be), g.on("loaderror", he), g.on("loaderstart", Ee), g.on("click", ge);
231
+ var v = M.create(e, u);
232
+ O.current = v, v.mount(k.current), v.on("ready", function() {
233
+ return ye(v);
234
+ }), v.on("change", be), v.on("blur", ve), v.on("focus", ge), v.on("escape", he), v.on("loaderror", Ee), v.on("loaderstart", _e), v.on("click", Se);
234
235
  }
235
236
  });
236
237
  var K = T(u);
237
238
  return f.useEffect(function() {
238
239
  if (O.current) {
239
- var g = te(u, K, ["paymentRequest"]);
240
- g && O.current.update(g);
240
+ var v = ne(u, K, ["paymentRequest"]);
241
+ v && O.current.update(v);
241
242
  }
242
243
  }, [u, K]), f.useLayoutEffect(function() {
243
244
  return function() {
@@ -279,7 +280,7 @@ p("iban", m);
279
280
  p("idealBank", m);
280
281
  p("p24Bank", m);
281
282
  p("epsBank", m);
282
- var Ue = p("payment", m);
283
+ var We = p("payment", m);
283
284
  p("paymentRequestButton", m);
284
285
  p("linkAuthentication", m);
285
286
  p("shippingAddress", m);
@@ -295,39 +296,39 @@ function L(n) {
295
296
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
296
297
  }, L(n);
297
298
  }
298
- var re = "https://js.stripe.com/v3", We = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, J = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Fe = function() {
299
- for (var e = document.querySelectorAll('script[src^="'.concat(re, '"]')), t = 0; t < e.length; t++) {
299
+ var ae = "https://js.stripe.com/v3", Fe = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Q = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", De = function() {
300
+ for (var e = document.querySelectorAll('script[src^="'.concat(ae, '"]')), t = 0; t < e.length; t++) {
300
301
  var r = e[t];
301
- if (We.test(r.src))
302
+ if (Fe.test(r.src))
302
303
  return r;
303
304
  }
304
305
  return null;
305
- }, De = function(e) {
306
+ }, qe = function(e) {
306
307
  var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", r = document.createElement("script");
307
- r.src = "".concat(re).concat(t);
308
+ r.src = "".concat(ae).concat(t);
308
309
  var i = document.head || document.body;
309
310
  if (!i)
310
311
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
311
312
  return i.appendChild(r), r;
312
- }, qe = function(e, t) {
313
+ }, Me = function(e, t) {
313
314
  !e || !e._registerWrapper || e._registerWrapper({
314
315
  name: "stripe-js",
315
316
  version: "1.35.0",
316
317
  startTime: t
317
318
  });
318
- }, x = null, Me = function(e) {
319
+ }, x = null, Ke = function(e) {
319
320
  return x !== null || (x = new Promise(function(t, r) {
320
321
  if (typeof window > "u") {
321
322
  t(null);
322
323
  return;
323
324
  }
324
- if (window.Stripe && e && console.warn(J), window.Stripe) {
325
+ if (window.Stripe && e && console.warn(Q), window.Stripe) {
325
326
  t(window.Stripe);
326
327
  return;
327
328
  }
328
329
  try {
329
- var i = Fe();
330
- i && e ? console.warn(J) : i || (i = De(e)), i.addEventListener("load", function() {
330
+ var i = De();
331
+ i && e ? console.warn(Q) : i || (i = qe(e)), i.addEventListener("load", function() {
331
332
  window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
332
333
  }), i.addEventListener("error", function() {
333
334
  r(new Error("Failed to load Stripe.js"));
@@ -337,12 +338,12 @@ var re = "https://js.stripe.com/v3", We = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
337
338
  return;
338
339
  }
339
340
  })), x;
340
- }, Ke = function(e, t, r) {
341
+ }, He = function(e, t, r) {
341
342
  if (e === null)
342
343
  return null;
343
344
  var i = e.apply(void 0, t);
344
- return qe(i, r), i;
345
- }, He = function(e) {
345
+ return Me(i, r), i;
346
+ }, Ge = function(e) {
346
347
  var t = `invalid load parameters; expected object of shape
347
348
 
348
349
  {advancedFraudSignals: boolean}
@@ -356,39 +357,39 @@ but received
356
357
  if (Object.keys(e).length === 1 && typeof e.advancedFraudSignals == "boolean")
357
358
  return e;
358
359
  throw new Error(t);
359
- }, ae, oe = !1, ie = function() {
360
+ }, oe, ie = !1, se = function() {
360
361
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
361
362
  t[r] = arguments[r];
362
- oe = !0;
363
+ ie = !0;
363
364
  var i = Date.now();
364
- return Me(ae).then(function(a) {
365
- return Ke(a, t, i);
365
+ return Ke(oe).then(function(a) {
366
+ return He(a, t, i);
366
367
  });
367
368
  };
368
- ie.setLoadParameters = function(n) {
369
- if (oe)
369
+ se.setLoadParameters = function(n) {
370
+ if (ie)
370
371
  throw new Error("You cannot change load parameters after calling loadStripe");
371
- ae = He(n);
372
+ oe = Ge(n);
372
373
  };
373
- B.loadStripe = ie;
374
- var Ge = B;
375
- const Ye = process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY || "";
374
+ B.loadStripe = se;
375
+ var Ye = B;
376
+ const ze = process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY || "";
376
377
  let N;
377
- const ze = (n) => (N || (N = Ge.loadStripe(
378
- n || Ye
378
+ const Ve = (n) => (N || (N = Ye.loadStripe(
379
+ n || ze
379
380
  /* , {
380
381
  locale: "es-419" TODO: Handle multiple locales,
381
382
  } */
382
- )), N), Ve = ze, Xe = (n) => {
383
- const { t: e, i18n: t } = Q(), { paymentOption: r, elements: i, state: a, onPaymentElementChange: d } = n, [l, o] = R(!1), [s, c] = R(r !== "HOLD"), y = l || !s || ["processing", "error"].includes(a.status), u = {
383
+ )), N), Xe = Ve, Je = (n) => {
384
+ const { t: e, i18n: t } = ee(), { paymentOption: r, elements: i, state: a, onPaymentElementChange: d } = n, [l, o] = R(!1), [s, c] = R(r !== "HOLD"), y = l || !s || ["processing", "error"].includes(a.status), u = {
384
385
  layout: "accordion"
385
386
  };
386
387
  return Z(() => {
387
388
  i == null || i.update({ locale: t.language });
388
- }, [i, t.language]), /* @__PURE__ */ v.jsxs("form", { id: "payment-form", className: "bg-subtle mt-4 rounded-md p-6", onSubmit: n.onSubmit, children: [
389
- /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsx(Ue, { options: u, onChange: (b) => d() }) }),
390
- r === "HOLD" && /* @__PURE__ */ v.jsx("div", { className: "bg-info mb-5 mt-2 rounded-md p-3", children: /* @__PURE__ */ v.jsx(
391
- _e,
389
+ }, [i, t.language]), /* @__PURE__ */ H("form", { id: "payment-form", className: "bg-subtle mt-4 rounded-md p-6", onSubmit: n.onSubmit, children: [
390
+ /* @__PURE__ */ g("div", { children: /* @__PURE__ */ g(We, { options: u, onChange: (b) => d() }) }),
391
+ r === "HOLD" && /* @__PURE__ */ g("div", { className: "bg-info mb-5 mt-2 rounded-md p-3", children: /* @__PURE__ */ g(
392
+ Ce,
392
393
  {
393
394
  description: e("acknowledge_booking_no_show_fee", {
394
395
  amount: n.payment.amount / 100,
@@ -398,9 +399,9 @@ const ze = (n) => (N || (N = Ge.loadStripe(
398
399
  descriptionClassName: "text-info font-semibold"
399
400
  }
400
401
  ) }),
401
- /* @__PURE__ */ v.jsxs("div", { className: "mt-2 flex justify-end space-x-2", children: [
402
- /* @__PURE__ */ v.jsx(
403
- H,
402
+ /* @__PURE__ */ H("div", { className: "mt-2 flex justify-end space-x-2", children: [
403
+ /* @__PURE__ */ g(
404
+ G,
404
405
  {
405
406
  color: "minimal",
406
407
  disabled: y,
@@ -410,27 +411,27 @@ const ze = (n) => (N || (N = Ge.loadStripe(
410
411
  onClick: () => {
411
412
  o(!0), n.onCancel();
412
413
  },
413
- children: /* @__PURE__ */ v.jsx("span", { id: "button-text", children: e("cancel") })
414
+ children: /* @__PURE__ */ g("span", { id: "button-text", children: e("cancel") })
414
415
  }
415
416
  ),
416
- /* @__PURE__ */ v.jsx(
417
- H,
417
+ /* @__PURE__ */ g(
418
+ G,
418
419
  {
419
420
  type: "submit",
420
421
  disabled: y,
421
422
  loading: a.status === "processing",
422
423
  id: "submit",
423
424
  color: "secondary",
424
- children: /* @__PURE__ */ v.jsx("span", { id: "button-text", children: a.status === "processing" ? /* @__PURE__ */ v.jsx("div", { className: "spinner", id: "spinner" }) : e(r === "HOLD" ? "submit_card" : "pay_now") })
425
+ children: /* @__PURE__ */ g("span", { id: "button-text", children: a.status === "processing" ? /* @__PURE__ */ g("div", { className: "spinner", id: "spinner" }) : e(r === "HOLD" ? "submit_card" : "pay_now") })
425
426
  }
426
427
  )
427
428
  ] }),
428
- a.status === "error" && /* @__PURE__ */ v.jsx("div", { className: "mt-4 text-center text-red-900 dark:text-gray-300", role: "alert", children: a.error.message })
429
+ a.status === "error" && /* @__PURE__ */ g("div", { className: "mt-4 text-center text-red-900 dark:text-gray-300", role: "alert", children: a.error.message })
429
430
  ] });
430
- }, Je = (n) => {
431
- const { t: e } = Q(), t = Te(), r = n.payment.paymentOption, i = n.booking.attendees[0].email, a = $e(), [d, l] = R({ status: "idle" });
432
- return /* @__PURE__ */ v.jsx(
433
- Xe,
431
+ }, Qe = (n) => {
432
+ const { t: e } = ee(), t = $e(), r = n.payment.paymentOption, i = n.booking.attendees[0].email, a = Be(), [d, l] = R({ status: "idle" });
433
+ return /* @__PURE__ */ g(
434
+ Je,
434
435
  {
435
436
  ...n,
436
437
  elements: t,
@@ -453,7 +454,7 @@ const ze = (n) => (N || (N = Ge.loadStripe(
453
454
  elements: t,
454
455
  redirect: "if_required",
455
456
  confirmParams: {
456
- return_url: `${Ce}/booking/${c.uid}`
457
+ return_url: `${Oe}/booking/${c.uid}`
457
458
  }
458
459
  }), s.paymentIntent && (c.payment_intent = s.paymentIntent.id, c.payment_intent_client_secret = s.paymentIntent.client_secret || void 0, c.redirect_status = s.paymentIntent.status)), s != null && s.error ? l({
459
460
  status: "error",
@@ -469,12 +470,12 @@ const ze = (n) => (N || (N = Ge.loadStripe(
469
470
  }
470
471
  }
471
472
  );
472
- }, et = (n) => {
473
- const e = Ve(n.payment.data.stripe_publishable_key), [t, r] = R("stripe");
473
+ }, nt = (n) => {
474
+ const e = Xe(n.payment.data.stripe_publishable_key), [t, r] = R("stripe");
474
475
  return Z(() => {
475
476
  document.documentElement.classList.contains("dark") && r("night");
476
- }, []), /* @__PURE__ */ v.jsx(
477
- ne,
477
+ }, []), /* @__PURE__ */ g(
478
+ re,
478
479
  {
479
480
  stripe: e,
480
481
  options: {
@@ -483,10 +484,10 @@ const ze = (n) => (N || (N = Ge.loadStripe(
483
484
  theme: t
484
485
  }
485
486
  },
486
- children: /* @__PURE__ */ v.jsx(Je, { ...n })
487
+ children: /* @__PURE__ */ g(Qe, { ...n })
487
488
  }
488
489
  );
489
490
  };
490
491
  export {
491
- et as default
492
+ nt as default
492
493
  };
package/dist/cal-atoms.js CHANGED
@@ -1,10 +1,10 @@
1
- import { aY as s, aZ as t, ba as n, aW as b, bi as o, bk as r, b9 as l, bm as C, bh as i, bj as u, aX as d, b8 as c, bn as p, bb as g, bg as m, bl as v, bd as y, a_ as S, b5 as T, b6 as E, b4 as k, a$ as B, bo as f, bp as A, bc as P, b2 as x, b3 as D, b0 as I, al as R, b7 as h, be as j, b1 as F, bf as G } from "./index-M6WUZF2M.js";
1
+ import { aX as s, aY as t, b9 as n, aV as o, bh as b, bj as r, b8 as l, bl as C, bg as i, bi as u, aW as d, b7 as c, bm as g, ba as m, bf as p, bk as v, bc as y, aZ as S, b4 as T, b5 as E, b3 as k, a_ as B, bn as f, bo as A, bb as P, b1 as x, b2 as D, a$ as I, ak as R, b6 as h, bd as j, b0 as F, be as G } from "./index-ykl8OQ78.js";
2
2
  export {
3
3
  s as AvailabilitySettings,
4
4
  t as Booker,
5
5
  n as BookerEmbed,
6
- b as CalProvider,
7
- o as CalendarSettings,
6
+ o as CalProvider,
7
+ b as CalendarSettings,
8
8
  r as ConferencingAppsSettings,
9
9
  l as Connect,
10
10
  C as CreateEventType,
@@ -12,9 +12,9 @@ export {
12
12
  u as EventTypeSettings,
13
13
  d as GcalConnect,
14
14
  c as OutlookConnect,
15
- p as PaymentForm,
16
- g as Router,
17
- m as SelectedCalendarsSettings,
15
+ g as PaymentForm,
16
+ m as Router,
17
+ p as SelectedCalendarsSettings,
18
18
  v as StripeConnect,
19
19
  y as useAddSelectedCalendar,
20
20
  S as useAtomsContext,
@@ -1,4 +1,4 @@
1
- import { aF as L, aG as V, aH as H, aI as B, aJ as Y, aK as j, aL as W, aM as q, aN as re, aO as ie, aP as oe, aQ as ae } from "./index-M6WUZF2M.js";
1
+ import { aE as L, aF as V, aG as H, aH as B, aI as j, aJ as q, aK as W, aL as Q, aM as re, aN as ie, aO as oe, aP as ae } from "./index-ykl8OQ78.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
  }
@@ -24,15 +24,15 @@ function $(t) {
24
24
  return e === null ? (e = t, n) : !1;
25
25
  };
26
26
  }
27
- const _ = $("dragHorizontal"), Q = $("dragVertical");
27
+ const _ = $("dragHorizontal"), X = $("dragVertical");
28
28
  function le(t) {
29
29
  let e = !1;
30
30
  if (t === "y")
31
- e = Q();
31
+ e = X();
32
32
  else if (t === "x")
33
33
  e = _();
34
34
  else {
35
- const n = _(), s = Q();
35
+ const n = _(), s = X();
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 X(t, e) {
53
+ function Y(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 X(t, e) {
63
63
  }
64
64
  class he extends w {
65
65
  mount() {
66
- this.unmount = L(X(this.node, !0), X(this.node, !1));
66
+ this.unmount = L(Y(this.node, !0), Y(this.node, !1));
67
67
  }
68
68
  unmount() {
69
69
  }
@@ -238,7 +238,7 @@ function M(t, e, n = {}) {
238
238
  const s = B(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(j(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;
@@ -270,11 +270,11 @@ function Ce(t, e, n = {}) {
270
270
  s = M(t, e, n);
271
271
  else {
272
272
  const o = typeof e == "function" ? B(t, e, n.custom) : e;
273
- s = Promise.all(Y(t, o, n));
273
+ s = Promise.all(j(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 = [...Q].reverse(), Le = Q.length;
278
278
  function ke(t) {
279
279
  return (e) => Promise.all(e.map(({ animation: n, options: s }) => Ce(t, n, s)));
280
280
  }
@@ -303,7 +303,7 @@ function Oe(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 && I === 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
+ q(P) || typeof P == "boolean")
307
307
  continue;
308
308
  const R = Te(h.prevProp, P);
309
309
  let x = R || // If we're making this variant active, we want to always make it active
@@ -390,7 +390,7 @@ class xe 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(), q(e) && (this.unmount = e.subscribe(this.node));
394
394
  }
395
395
  /**
396
396
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -1,4 +1,4 @@
1
- import { B as s, s as l, C as o, c as t, u as r, r as i, E as c, F as d, H as g, j as n, m as F, I as p, L as u, d as S, S as T, n as x, o as h, v as k, w as m, e as C, h as E, k as I, t as P, q as b, l as w } from "./index-M6WUZF2M.js";
1
+ import { B as s, s as l, C as o, c as t, u as r, r as i, E as c, F as d, H as g, j as n, m as F, I as p, L as u, d as S, S as T, n as x, o as h, v as k, w as m, e as C, h as E, k as I, t as P, q as b, l as w } from "./index-ykl8OQ78.js";
2
2
  export {
3
3
  s as BooleanToggleGroup,
4
4
  l as BooleanToggleGroupField,
@@ -1,4 +1,4 @@
1
- import { T as m, b as n } from "./index-M6WUZF2M.js";
1
+ import { T as m, b as n } from "./index-ykl8OQ78.js";
2
2
  export {
3
3
  m as TimezoneSelect,
4
4
  n as TimezoneSelectComponent