@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.
- package/dist/{AddressInput-MxFRI9cW.js → AddressInput-LPJtHhnk.js} +9 -8
- package/dist/{AlbyPriceComponent-B7reGN3c.js → AlbyPriceComponent-VO8iEUWb.js} +53 -52
- package/dist/AppCard-cTyZ7qdO.js +162 -0
- package/dist/AppListCardPlatformWrapper-ErlT9yQV.js +9 -0
- package/dist/{AppListCardWebWrapper-3ZmWWW_L.js → AppListCardWebWrapper-nLRKr-Qu.js} +10 -9
- package/dist/AppSettingsInterface-1iuEhZRw.js +23 -0
- package/dist/AppSettingsInterface-9nYzo3Ef.js +29 -0
- package/dist/AppSettingsInterface-Y7iloRRd.js +75 -0
- package/dist/{DateRangePicker-GTmIREkF.js → DateRangePicker-zh9gM3ld.js} +784 -783
- package/dist/EventTypeAppCardInterface-0tcE4MHz.js +32 -0
- package/dist/EventTypeAppCardInterface-2xzo_8rb.js +453 -0
- package/dist/EventTypeAppCardInterface-3xv7ZK_G.js +41 -0
- package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-4dkcilsD.js} +17 -16
- package/dist/EventTypeAppCardInterface-A7WN14Mn.js +34 -0
- package/dist/EventTypeAppCardInterface-BbJv67UJ.js +49 -0
- package/dist/EventTypeAppCardInterface-D42_2WwA.js +42 -0
- package/dist/EventTypeAppCardInterface-F9zy0_KX.js +24 -0
- package/dist/EventTypeAppCardInterface-LB9yguQb.js +39 -0
- package/dist/EventTypeAppCardInterface-PGX33FFN.js +42 -0
- package/dist/EventTypeAppCardInterface-PaCD78C8.js +33 -0
- package/dist/EventTypeAppCardInterface-QiaQ-GmU.js +51 -0
- package/dist/EventTypeAppCardInterface-S5bK4a_4.js +24 -0
- package/dist/EventTypeAppCardInterface-SXV5NhVT.js +24 -0
- package/dist/EventTypeAppCardInterface-SdCRwS0b.js +34 -0
- package/dist/EventTypeAppCardInterface-TV1GspR-.js +41 -0
- package/dist/EventTypeAppCardInterface-WrBEdjss.js +86 -0
- package/dist/EventTypeAppCardInterface-Xl60vAW7.js +34 -0
- package/dist/EventTypeAppCardInterface-bY6zHj23.js +34 -0
- package/dist/EventTypeAppCardInterface-bpyx9DoB.js +34 -0
- package/dist/EventTypeAppCardInterface-dSD0TA4p.js +34 -0
- package/dist/EventTypeAppCardInterface-hulmgxtc.js +24 -0
- package/dist/EventTypeAppCardInterface-n8fugRqn.js +32 -0
- package/dist/EventTypeAppCardInterface-qqnnC5vq.js +24 -0
- package/dist/EventTypeAppCardInterface-rVMclz_u.js +34 -0
- package/dist/EventTypeAppCardInterface-zXewU-bg.js +31 -0
- package/dist/EventTypeAppSettingsInterface-2oHFXxC0.js +221 -0
- package/dist/{EventTypeAppSettingsInterface-cXn8l171.js → EventTypeAppSettingsInterface-5hQr6WTa.js} +7 -6
- package/dist/{EventTypeAppSettingsInterface-9raltJka.js → EventTypeAppSettingsInterface-CwuQI4XA.js} +39 -38
- package/dist/EventTypeAppSettingsInterface-HGPywPcZ.js +43 -0
- package/dist/EventTypeAppSettingsInterface-MLox-zIr.js +78 -0
- package/dist/EventTypeAppSettingsInterface-azMpYm3v.js +48 -0
- package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-ccBCyO4S.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-jCOnJXVq.js +42 -0
- package/dist/EventTypeAppSettingsInterface-rUp-tPsO.js +72 -0
- package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-sOLaF1pR.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-v8a7XnIr.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-xlYsU6Vi.js} +72 -71
- package/dist/InstallAppButton-34JAPxwK.js +14 -0
- package/dist/{InstallAppButton-Ho1cJkMm.js → InstallAppButton-JXhBVaYJ.js} +8 -8
- package/dist/InstallAppButton-ihX89_K4.js +58 -0
- package/dist/InstallAppButton-zjD9dbE7.js +14 -0
- package/dist/{PhoneInput-DNq9V1s5.js → PhoneInput-saKL4loW.js} +97 -96
- package/dist/{StripePaymentForm-lGjXjqLX.js → StripePaymentForm-dfxxUj2E.js} +100 -99
- package/dist/cal-atoms.js +6 -6
- package/dist/{framer-features--8Hvyv45.js → framer-features-K_TB52kd.js} +11 -11
- package/dist/{index-fsA0kHyy.js → index-81plgMPe.js} +1 -1
- package/dist/{index-cfay3a2W.js → index-IPz9Apiv.js} +1 -1
- package/dist/{index-Bj_kD41n.js → index-engsJK56.js} +108 -107
- package/dist/{index-OYPUcfnB.js → index-ite7gJ1a.js} +2 -2
- package/dist/{index-M6WUZF2M.js → index-ykl8OQ78.js} +66312 -66946
- package/dist/{isSupportedCountry-aizVo7Oo.js → isSupportedCountry-RPoEk3Bi.js} +1 -1
- package/dist/{useIsAppEnabled-OmKRsE8Z.js → useIsAppEnabled-jQTpW-EN.js} +1 -1
- package/globals.min.css +22 -2
- package/package.json +1 -1
- package/dist/AppCard-ImfOuDL_.js +0 -161
- package/dist/AppListCardPlatformWrapper-Kgk0fNGU.js +0 -8
- package/dist/AppSettingsInterface-4JMt22o1.js +0 -22
- package/dist/AppSettingsInterface-8TqZVnNL.js +0 -74
- package/dist/AppSettingsInterface-MQ_fkHJx.js +0 -28
- package/dist/EventTypeAppCardInterface-0O_KGHxp.js +0 -40
- package/dist/EventTypeAppCardInterface-0Z1NiGs_.js +0 -23
- package/dist/EventTypeAppCardInterface-0bkDiimc.js +0 -33
- package/dist/EventTypeAppCardInterface-4bmGNjTO.js +0 -452
- package/dist/EventTypeAppCardInterface-6Hs2WiRN.js +0 -23
- package/dist/EventTypeAppCardInterface-6QhUsfck.js +0 -38
- package/dist/EventTypeAppCardInterface-CSZJxMAi.js +0 -48
- package/dist/EventTypeAppCardInterface-D5NE1JH-.js +0 -33
- package/dist/EventTypeAppCardInterface-GpzdxrTy.js +0 -41
- package/dist/EventTypeAppCardInterface-HDqpiB_E.js +0 -33
- package/dist/EventTypeAppCardInterface-IsJt3HGB.js +0 -30
- package/dist/EventTypeAppCardInterface-K_hBnKz2.js +0 -23
- package/dist/EventTypeAppCardInterface-QuKynjTF.js +0 -23
- package/dist/EventTypeAppCardInterface-Uk-367hU.js +0 -33
- package/dist/EventTypeAppCardInterface-UrOLCYHp.js +0 -31
- package/dist/EventTypeAppCardInterface-WhX3MQGL.js +0 -33
- package/dist/EventTypeAppCardInterface-_a5TsCGC.js +0 -41
- package/dist/EventTypeAppCardInterface-_e0oMnpF.js +0 -33
- package/dist/EventTypeAppCardInterface-bfOpI-Cg.js +0 -23
- package/dist/EventTypeAppCardInterface-dQBcQRe5.js +0 -85
- package/dist/EventTypeAppCardInterface-jDIOSF5p.js +0 -31
- package/dist/EventTypeAppCardInterface-pgZqPYuy.js +0 -40
- package/dist/EventTypeAppCardInterface-rJaUyBaK.js +0 -32
- package/dist/EventTypeAppCardInterface-sAMfJ4Zp.js +0 -50
- package/dist/EventTypeAppCardInterface-xkCoWuR1.js +0 -33
- package/dist/EventTypeAppSettingsInterface-0MtsVqm9.js +0 -71
- package/dist/EventTypeAppSettingsInterface-4AylQiBj.js +0 -47
- package/dist/EventTypeAppSettingsInterface-Br_BvYU4.js +0 -77
- package/dist/EventTypeAppSettingsInterface-CkbhDi5X.js +0 -42
- package/dist/EventTypeAppSettingsInterface-nwSw369C.js +0 -220
- package/dist/EventTypeAppSettingsInterface-x-GvtrwY.js +0 -41
- package/dist/InstallAppButton-7AfVFA1y.js +0 -13
- package/dist/InstallAppButton-PfrQUF7k.js +0 -13
- package/dist/InstallAppButton-R3hBMMGj.js +0 -57
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
|
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 ?
|
|
17
|
-
|
|
18
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) :
|
|
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
|
|
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
|
|
41
|
-
return
|
|
41
|
+
function Pe(n, e) {
|
|
42
|
+
return we(n) || je(n, e) || xe(n, e) || Ae();
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function we(n) {
|
|
44
45
|
if (Array.isArray(n))
|
|
45
46
|
return n;
|
|
46
47
|
}
|
|
47
|
-
function
|
|
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
|
|
68
|
+
function xe(n, e) {
|
|
68
69
|
if (n) {
|
|
69
70
|
if (typeof n == "string")
|
|
70
|
-
return
|
|
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
|
|
76
|
+
return V(n, e);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
|
-
function
|
|
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
|
|
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
|
-
},
|
|
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) ===
|
|
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
|
-
},
|
|
125
|
+
}, ne = function(e, t, r) {
|
|
125
126
|
return P(e) ? Object.keys(e).reduce(function(i, a) {
|
|
126
|
-
var d = !P(t) || !
|
|
127
|
-
return r.includes(a) ? (d && console.warn("Unsupported prop change: options.".concat(a, " is not a mutable property.")), i) : d ?
|
|
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
|
-
},
|
|
130
|
-
if (e === null ||
|
|
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(
|
|
133
|
-
},
|
|
134
|
-
if (
|
|
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(
|
|
138
|
+
stripePromise: Promise.resolve(e).then(J)
|
|
138
139
|
};
|
|
139
|
-
var t =
|
|
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
|
|
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
|
-
},
|
|
153
|
+
}, re = function(e) {
|
|
153
154
|
var t = e.stripe, r = e.options, i = e.children, a = f.useMemo(function() {
|
|
154
|
-
return
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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
|
|
207
|
-
},
|
|
207
|
+
return Te(t, e);
|
|
208
|
+
}, $e = function() {
|
|
208
209
|
var e = I("calls useElements()"), t = e.elements;
|
|
209
210
|
return t;
|
|
210
|
-
},
|
|
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
|
-
},
|
|
224
|
+
}, Ue = function(e) {
|
|
224
225
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
225
226
|
}, p = function(e, t) {
|
|
226
|
-
var r = "".concat(
|
|
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,
|
|
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
|
|
231
|
-
O.current =
|
|
232
|
-
return
|
|
233
|
-
}),
|
|
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
|
|
240
|
-
|
|
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
|
|
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
|
|
299
|
-
for (var e = document.querySelectorAll('script[src^="'.concat(
|
|
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 (
|
|
302
|
+
if (Fe.test(r.src))
|
|
302
303
|
return r;
|
|
303
304
|
}
|
|
304
305
|
return null;
|
|
305
|
-
},
|
|
306
|
+
}, qe = function(e) {
|
|
306
307
|
var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", r = document.createElement("script");
|
|
307
|
-
r.src = "".concat(
|
|
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
|
-
},
|
|
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,
|
|
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(
|
|
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 =
|
|
330
|
-
i && e ? console.warn(
|
|
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
|
-
},
|
|
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
|
|
345
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
363
|
+
ie = !0;
|
|
363
364
|
var i = Date.now();
|
|
364
|
-
return
|
|
365
|
-
return
|
|
365
|
+
return Ke(oe).then(function(a) {
|
|
366
|
+
return He(a, t, i);
|
|
366
367
|
});
|
|
367
368
|
};
|
|
368
|
-
|
|
369
|
-
if (
|
|
369
|
+
se.setLoadParameters = function(n) {
|
|
370
|
+
if (ie)
|
|
370
371
|
throw new Error("You cannot change load parameters after calling loadStripe");
|
|
371
|
-
|
|
372
|
+
oe = Ge(n);
|
|
372
373
|
};
|
|
373
|
-
B.loadStripe =
|
|
374
|
-
var
|
|
375
|
-
const
|
|
374
|
+
B.loadStripe = se;
|
|
375
|
+
var Ye = B;
|
|
376
|
+
const ze = process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY || "";
|
|
376
377
|
let N;
|
|
377
|
-
const
|
|
378
|
-
n ||
|
|
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),
|
|
383
|
-
const { t: e, i18n: t } =
|
|
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__ */
|
|
389
|
-
/* @__PURE__ */
|
|
390
|
-
r === "HOLD" && /* @__PURE__ */
|
|
391
|
-
|
|
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__ */
|
|
402
|
-
/* @__PURE__ */
|
|
403
|
-
|
|
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__ */
|
|
414
|
+
children: /* @__PURE__ */ g("span", { id: "button-text", children: e("cancel") })
|
|
414
415
|
}
|
|
415
416
|
),
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
|
|
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__ */
|
|
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__ */
|
|
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
|
-
},
|
|
431
|
-
const { t: e } =
|
|
432
|
-
return /* @__PURE__ */
|
|
433
|
-
|
|
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: `${
|
|
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
|
-
},
|
|
473
|
-
const e =
|
|
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__ */
|
|
477
|
-
|
|
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__ */
|
|
487
|
+
children: /* @__PURE__ */ g(Qe, { ...n })
|
|
487
488
|
}
|
|
488
489
|
);
|
|
489
490
|
};
|
|
490
491
|
export {
|
|
491
|
-
|
|
492
|
+
nt as default
|
|
492
493
|
};
|
package/dist/cal-atoms.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
7
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 {
|
|
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"),
|
|
27
|
+
const _ = $("dragHorizontal"), X = $("dragVertical");
|
|
28
28
|
function le(t) {
|
|
29
29
|
let e = !1;
|
|
30
30
|
if (t === "y")
|
|
31
|
-
e =
|
|
31
|
+
e = X();
|
|
32
32
|
else if (t === "x")
|
|
33
33
|
e = _();
|
|
34
34
|
else {
|
|
35
|
-
const n = _(), s =
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
273
|
+
s = Promise.all(j(t, o, n));
|
|
274
274
|
}
|
|
275
275
|
return s.then(() => t.notify("AnimationComplete", e));
|
|
276
276
|
}
|
|
277
|
-
const Ve = [...
|
|
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
|
-
|
|
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(),
|
|
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-
|
|
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,
|