@calcom/atoms 1.0.5 → 1.0.6
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-Ci02wr5C.js → AddressInput-2Zzr_cXb.js} +11 -8
- package/dist/{AlbyPriceComponent-NqN1MEov.js → AlbyPriceComponent-05_2Gjso.js} +59 -60
- package/dist/{Card-6fRR5Hwj.js → Card-LbZlOt2O.js} +30 -27
- package/dist/DatePicker-Le7528E8.js +27 -0
- package/dist/{PhoneInput-ysQbrvjy.js → PhoneInput-Wo701fQd.js} +2 -2
- package/dist/{PoweredBy-AY0Afi6V.js → PoweredBy-IBR7IFv-.js} +3 -3
- package/dist/{UnpublishedEntity-epeaNFkK.js → UnpublishedEntity--p3zoyCs.js} +1 -1
- package/dist/availability/AvailabilitySettings.d.ts +3 -4
- package/dist/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts +1 -1
- package/dist/availability/wrappers/WebAvailabilitySettingsWrapper.d.ts.map +1 -1
- package/dist/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/cal-atoms.js +13 -7
- package/dist/cal-atoms.umd.cjs +458 -163
- package/dist/{framer-features-Zr_i_7k0.js → framer-features-Ury4Mtf7.js} +66 -66
- package/dist/hooks/event-types/useEventTypesPrivate.d.ts +3 -0
- package/dist/hooks/event-types/useEventTypesPrivate.d.ts.map +1 -0
- package/dist/hooks/event-types/useEventTypesPublic.d.ts +3 -0
- package/dist/hooks/event-types/useEventTypesPublic.d.ts.map +1 -0
- package/dist/hooks/event-types/useGetEventTypeById.d.ts +3 -0
- package/dist/hooks/event-types/useGetEventTypeById.d.ts.map +1 -0
- package/dist/hooks/useCancelBooking.d.ts +14 -0
- package/dist/hooks/useCancelBooking.d.ts.map +1 -0
- package/dist/hooks/useConnectedCalendars.d.ts +3 -1
- package/dist/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/hooks/useGetBooking.d.ts +46 -0
- package/dist/hooks/useGetBooking.d.ts.map +1 -0
- package/dist/hooks/useGetBookingForReschedule.d.ts +39 -0
- package/dist/hooks/useGetBookingForReschedule.d.ts.map +1 -0
- package/dist/hooks/useGetBookings.d.ts +4 -0
- package/dist/hooks/useGetBookings.d.ts.map +1 -0
- package/dist/hooks/useMe.d.ts +1 -1
- package/dist/hooks/usePublicEvent.d.ts +18 -0
- package/dist/hooks/usePublicEvent.d.ts.map +1 -1
- package/dist/hooks/useUpdateUserTimezone.d.ts +1 -1
- package/dist/{index-3sgDY24S.js → index-1gjmjEQz.js} +1 -1
- package/dist/{index-GttMIx74.js → index-Dp1Fw3yT.js} +24603 -22062
- package/dist/index-I9fhNw6k.js +4 -0
- package/dist/{index-uuiJumv6.js → index-cC2xjjWb.js} +16 -16
- package/dist/index-cwL4aUlp.js +13 -0
- package/dist/{index-RcPlEXh-.js → index-dFT1L4IP.js} +10 -10
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/isSupportedCountry-17w3UcDH.js +7 -0
- package/dist/monorepo.d.ts +1 -0
- package/dist/monorepo.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/DatePicker-9pbCidOU.js +0 -27
- package/dist/index--Pb54wx_.js +0 -4
- package/dist/index-rUbdQ7Zu.js +0 -1256
- package/dist/isSupportedCountry-WVb-DZDd.js +0 -487
- package/dist/src/components/ui/confirmation-dialog-content.d.ts +0 -4
- package/dist/src/components/ui/confirmation-dialog-content.d.ts.map +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { aK as c, aq as n, ap as e, m as i, aB as m } from "./index-Dp1Fw3yT.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.363.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const o = c("MapPin", [
|
|
9
|
+
["path", { d: "M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z", key: "2oe9fu" }],
|
|
7
10
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
8
11
|
]);
|
|
9
12
|
function r({
|
|
@@ -13,7 +16,7 @@ function r({
|
|
|
13
16
|
}) {
|
|
14
17
|
return /* @__PURE__ */ n("div", {
|
|
15
18
|
className: "relative flex items-center",
|
|
16
|
-
children: [/* @__PURE__ */ e(
|
|
19
|
+
children: [/* @__PURE__ */ e(o, {
|
|
17
20
|
className: "text-muted absolute left-0.5 ml-3 h-4 w-4 -translate-y-1/2",
|
|
18
21
|
style: {
|
|
19
22
|
top: "44%"
|
|
@@ -24,7 +27,7 @@ function r({
|
|
|
24
27
|
onChange: (l) => {
|
|
25
28
|
t(l.target.value);
|
|
26
29
|
},
|
|
27
|
-
className:
|
|
30
|
+
className: m("pl-10", a == null ? void 0 : a.className)
|
|
28
31
|
})]
|
|
29
32
|
});
|
|
30
33
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aM as ee, aN as P, aO as re, ap as K, a6 as ne, aq as te, aP as oe } from "./index-Dp1Fw3yT.js";
|
|
2
2
|
import J from "react";
|
|
3
|
-
|
|
4
|
-
const ae = {}, se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
const ie = {}, ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
4
|
__proto__: null,
|
|
6
|
-
default:
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8
|
-
var Q;
|
|
5
|
+
default: ie
|
|
6
|
+
}, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ ee(ae);
|
|
7
|
+
var ce = { exports: {} }, D = { exports: {} }, Q;
|
|
9
8
|
function Z() {
|
|
10
9
|
return Q || (Q = 1, function(o, v) {
|
|
11
10
|
(function(l, w) {
|
|
12
11
|
o.exports = w();
|
|
13
|
-
})(
|
|
12
|
+
})(P, function() {
|
|
14
13
|
var l = l || function(w, m) {
|
|
15
14
|
var b;
|
|
16
|
-
if (typeof window < "u" && window.crypto && (b = window.crypto), typeof self < "u" && self.crypto && (b = self.crypto), typeof globalThis < "u" && globalThis.crypto && (b = globalThis.crypto), !b && typeof window < "u" && window.msCrypto && (b = window.msCrypto), !b && typeof
|
|
15
|
+
if (typeof window < "u" && window.crypto && (b = window.crypto), typeof self < "u" && self.crypto && (b = self.crypto), typeof globalThis < "u" && globalThis.crypto && (b = globalThis.crypto), !b && typeof window < "u" && window.msCrypto && (b = window.msCrypto), !b && typeof P < "u" && P.crypto && (b = P.crypto), !b && typeof re == "function")
|
|
17
16
|
try {
|
|
18
|
-
b =
|
|
17
|
+
b = se;
|
|
19
18
|
} catch {
|
|
20
19
|
}
|
|
21
20
|
var N = function() {
|
|
@@ -39,7 +38,7 @@ function Z() {
|
|
|
39
38
|
var f;
|
|
40
39
|
return t.prototype = i, f = new t(), t.prototype = null, f;
|
|
41
40
|
};
|
|
42
|
-
}(),
|
|
41
|
+
}(), O = {}, H = O.lib = {}, U = H.Base = /* @__PURE__ */ function() {
|
|
43
42
|
return {
|
|
44
43
|
/**
|
|
45
44
|
* Creates a new object that inherits from this object.
|
|
@@ -154,7 +153,7 @@ function Z() {
|
|
|
154
153
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
155
154
|
*/
|
|
156
155
|
toString: function(t) {
|
|
157
|
-
return (t ||
|
|
156
|
+
return (t || C).stringify(this);
|
|
158
157
|
},
|
|
159
158
|
/**
|
|
160
159
|
* Concatenates a word array to this word array.
|
|
@@ -221,7 +220,7 @@ function Z() {
|
|
|
221
220
|
i.push(N());
|
|
222
221
|
return new B.init(i, t);
|
|
223
222
|
}
|
|
224
|
-
}), S =
|
|
223
|
+
}), S = O.enc = {}, C = S.Hex = {
|
|
225
224
|
/**
|
|
226
225
|
* Converts a word array to a hex string.
|
|
227
226
|
*
|
|
@@ -260,7 +259,7 @@ function Z() {
|
|
|
260
259
|
f[d >>> 3] |= parseInt(t.substr(d, 2), 16) << 24 - d % 8 * 4;
|
|
261
260
|
return new B.init(f, i / 2);
|
|
262
261
|
}
|
|
263
|
-
},
|
|
262
|
+
}, $ = S.Latin1 = {
|
|
264
263
|
/**
|
|
265
264
|
* Converts a word array to a Latin1 string.
|
|
266
265
|
*
|
|
@@ -315,7 +314,7 @@ function Z() {
|
|
|
315
314
|
*/
|
|
316
315
|
stringify: function(t) {
|
|
317
316
|
try {
|
|
318
|
-
return decodeURIComponent(escape(
|
|
317
|
+
return decodeURIComponent(escape($.stringify(t)));
|
|
319
318
|
} catch {
|
|
320
319
|
throw new Error("Malformed UTF-8 data");
|
|
321
320
|
}
|
|
@@ -334,7 +333,7 @@ function Z() {
|
|
|
334
333
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
335
334
|
*/
|
|
336
335
|
parse: function(t) {
|
|
337
|
-
return
|
|
336
|
+
return $.parse(unescape(encodeURIComponent(t)));
|
|
338
337
|
}
|
|
339
338
|
}, g = H.BufferedBlockAlgorithm = U.extend({
|
|
340
339
|
/**
|
|
@@ -377,11 +376,11 @@ function Z() {
|
|
|
377
376
|
_process: function(t) {
|
|
378
377
|
var i, f = this._data, d = f.words, E = f.sigBytes, p = this.blockSize, _ = p * 4, A = E / _;
|
|
379
378
|
t ? A = w.ceil(A) : A = w.max((A | 0) - this._minBufferSize, 0);
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
382
|
-
for (var r = 0; r <
|
|
379
|
+
var W = A * p, e = w.min(W * 4, E);
|
|
380
|
+
if (W) {
|
|
381
|
+
for (var r = 0; r < W; r += p)
|
|
383
382
|
this._doProcessBlock(d, r);
|
|
384
|
-
i = d.splice(0,
|
|
383
|
+
i = d.splice(0, W), f.sigBytes -= e;
|
|
385
384
|
}
|
|
386
385
|
return new B.init(i, e);
|
|
387
386
|
},
|
|
@@ -499,8 +498,8 @@ function Z() {
|
|
|
499
498
|
};
|
|
500
499
|
}
|
|
501
500
|
});
|
|
502
|
-
var k =
|
|
503
|
-
return
|
|
501
|
+
var k = O.algo = {};
|
|
502
|
+
return O;
|
|
504
503
|
}(Math);
|
|
505
504
|
return l;
|
|
506
505
|
});
|
|
@@ -509,41 +508,41 @@ function Z() {
|
|
|
509
508
|
(function(o, v) {
|
|
510
509
|
(function(l, w) {
|
|
511
510
|
o.exports = w(Z());
|
|
512
|
-
})(
|
|
511
|
+
})(P, function(l) {
|
|
513
512
|
return l.enc.Hex;
|
|
514
513
|
});
|
|
515
|
-
})(
|
|
514
|
+
})(ce);
|
|
516
515
|
var fe = { exports: {} };
|
|
517
516
|
(function(o, v) {
|
|
518
517
|
(function(l, w) {
|
|
519
518
|
o.exports = w(Z());
|
|
520
|
-
})(
|
|
519
|
+
})(P, function(l) {
|
|
521
520
|
return function(w) {
|
|
522
|
-
var m = l, b = m.lib, N = b.WordArray, I = b.Hasher,
|
|
521
|
+
var m = l, b = m.lib, N = b.WordArray, I = b.Hasher, O = m.algo, H = [], U = [];
|
|
523
522
|
(function() {
|
|
524
|
-
function
|
|
523
|
+
function C(k) {
|
|
525
524
|
for (var t = w.sqrt(k), i = 2; i <= t; i++)
|
|
526
525
|
if (!(k % i))
|
|
527
526
|
return !1;
|
|
528
527
|
return !0;
|
|
529
528
|
}
|
|
530
|
-
function
|
|
529
|
+
function $(k) {
|
|
531
530
|
return (k - (k | 0)) * 4294967296 | 0;
|
|
532
531
|
}
|
|
533
532
|
for (var h = 2, g = 0; g < 64; )
|
|
534
|
-
|
|
533
|
+
C(h) && (g < 8 && (H[g] = $(w.pow(h, 1 / 2))), U[g] = $(w.pow(h, 1 / 3)), g++), h++;
|
|
535
534
|
})();
|
|
536
|
-
var B = [], S =
|
|
535
|
+
var B = [], S = O.SHA256 = I.extend({
|
|
537
536
|
_doReset: function() {
|
|
538
537
|
this._hash = new N.init(H.slice(0));
|
|
539
538
|
},
|
|
540
|
-
_doProcessBlock: function(
|
|
539
|
+
_doProcessBlock: function(C, $) {
|
|
541
540
|
for (var h = this._hash.words, g = h[0], k = h[1], t = h[2], i = h[3], f = h[4], d = h[5], E = h[6], p = h[7], _ = 0; _ < 64; _++) {
|
|
542
541
|
if (_ < 16)
|
|
543
|
-
B[_] = $
|
|
542
|
+
B[_] = C[$ + _] | 0;
|
|
544
543
|
else {
|
|
545
|
-
var A = B[_ - 15],
|
|
546
|
-
B[_] =
|
|
544
|
+
var A = B[_ - 15], W = (A << 25 | A >>> 7) ^ (A << 14 | A >>> 18) ^ A >>> 3, e = B[_ - 2], r = (e << 15 | e >>> 17) ^ (e << 13 | e >>> 19) ^ e >>> 10;
|
|
545
|
+
B[_] = W + B[_ - 7] + r + B[_ - 16];
|
|
547
546
|
}
|
|
548
547
|
var n = f & d ^ ~f & E, c = g & k ^ g & t ^ k & t, a = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), s = (f << 26 | f >>> 6) ^ (f << 21 | f >>> 11) ^ (f << 7 | f >>> 25), u = p + s + n + U[_] + B[_], T = a + c;
|
|
549
548
|
p = E, E = d, d = f, f = i + u | 0, i = t, t = k, k = g, g = u + T | 0;
|
|
@@ -551,12 +550,12 @@ var fe = { exports: {} };
|
|
|
551
550
|
h[0] = h[0] + g | 0, h[1] = h[1] + k | 0, h[2] = h[2] + t | 0, h[3] = h[3] + i | 0, h[4] = h[4] + f | 0, h[5] = h[5] + d | 0, h[6] = h[6] + E | 0, h[7] = h[7] + p | 0;
|
|
552
551
|
},
|
|
553
552
|
_doFinalize: function() {
|
|
554
|
-
var
|
|
555
|
-
return
|
|
553
|
+
var C = this._data, $ = C.words, h = this._nDataBytes * 8, g = C.sigBytes * 8;
|
|
554
|
+
return $[g >>> 5] |= 128 << 24 - g % 32, $[(g + 64 >>> 9 << 4) + 14] = w.floor(h / 4294967296), $[(g + 64 >>> 9 << 4) + 15] = h, C.sigBytes = $.length * 4, this._process(), this._hash;
|
|
556
555
|
},
|
|
557
556
|
clone: function() {
|
|
558
|
-
var
|
|
559
|
-
return
|
|
557
|
+
var C = I.clone.call(this);
|
|
558
|
+
return C._hash = this._hash.clone(), C;
|
|
560
559
|
}
|
|
561
560
|
});
|
|
562
561
|
m.SHA256 = I._createHelper(S), m.HmacSHA256 = I._createHmacHelper(S);
|
|
@@ -672,8 +671,8 @@ var ue = {};
|
|
|
672
671
|
}); ; ) {
|
|
673
672
|
let u = 0, T = !0;
|
|
674
673
|
for (let x = c; x < s.length; x++) {
|
|
675
|
-
const
|
|
676
|
-
if (!Number.isSafeInteger(y) || r * u / r !== u || y -
|
|
674
|
+
const F = s[x], y = r * u + F;
|
|
675
|
+
if (!Number.isSafeInteger(y) || r * u / r !== u || y - F !== r * u)
|
|
677
676
|
throw new Error("convertRadix: carry overflow");
|
|
678
677
|
if (u = y % n, s[x] = Math.floor(y / n), !Number.isSafeInteger(s[x]) || s[x] * n + u !== y)
|
|
679
678
|
throw new Error("convertRadix: carry overflow");
|
|
@@ -689,7 +688,7 @@ var ue = {};
|
|
|
689
688
|
a.push(0);
|
|
690
689
|
return a.reverse();
|
|
691
690
|
}
|
|
692
|
-
const
|
|
691
|
+
const O = (e, r) => r ? O(r, e % r) : e, H = (e, r) => e + (r - O(e, r));
|
|
693
692
|
function U(e, r, n, c) {
|
|
694
693
|
if (!Array.isArray(e))
|
|
695
694
|
throw new Error("convertRadix2: data should be array");
|
|
@@ -748,7 +747,7 @@ var ue = {};
|
|
|
748
747
|
}
|
|
749
748
|
};
|
|
750
749
|
}
|
|
751
|
-
function
|
|
750
|
+
function C(e) {
|
|
752
751
|
if (typeof e != "function")
|
|
753
752
|
throw new Error("unsafeWrapper fn should be function");
|
|
754
753
|
return function(...r) {
|
|
@@ -758,7 +757,7 @@ var ue = {};
|
|
|
758
757
|
}
|
|
759
758
|
};
|
|
760
759
|
}
|
|
761
|
-
function
|
|
760
|
+
function $(e, r) {
|
|
762
761
|
if (v(e), typeof r != "function")
|
|
763
762
|
throw new Error("checksum fn should be function");
|
|
764
763
|
return {
|
|
@@ -779,7 +778,7 @@ var ue = {};
|
|
|
779
778
|
}
|
|
780
779
|
};
|
|
781
780
|
}
|
|
782
|
-
o.utils = { alphabet: w, chain: l, checksum:
|
|
781
|
+
o.utils = { alphabet: w, chain: l, checksum: $, radix: B, radix2: S, join: m, padding: b }, o.base16 = l(S(4), w("0123456789ABCDEF"), m("")), o.base32 = l(S(5), w("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), b(5), m("")), o.base32hex = l(S(5), w("0123456789ABCDEFGHIJKLMNOPQRSTUV"), b(5), m("")), o.base32crockford = l(S(5), w("0123456789ABCDEFGHJKMNPQRSTVWXYZ"), m(""), N((e) => e.toUpperCase().replace(/O/g, "0").replace(/[IL]/g, "1"))), o.base64 = l(S(6), w("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), b(6), m("")), o.base64url = l(S(6), w("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), b(6), m(""));
|
|
783
782
|
const h = (e) => l(B(58), w(e), m(""));
|
|
784
783
|
o.base58 = h("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"), o.base58flickr = h("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"), o.base58xrp = h("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");
|
|
785
784
|
const g = [0, 2, 3, 5, 6, 7, 9, 10, 11];
|
|
@@ -804,7 +803,7 @@ var ue = {};
|
|
|
804
803
|
return Uint8Array.from(r);
|
|
805
804
|
}
|
|
806
805
|
};
|
|
807
|
-
const k = (e) => l(
|
|
806
|
+
const k = (e) => l($(4, (r) => e(e(r))), o.base58);
|
|
808
807
|
o.base58check = k;
|
|
809
808
|
const t = l(w("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), m("")), i = [996825010, 642813549, 513874426, 1027748829, 705979059];
|
|
810
809
|
function f(e) {
|
|
@@ -833,15 +832,15 @@ var ue = {};
|
|
|
833
832
|
return a ^= n, t.encode(U([a % 2 ** 30], 30, 5, !1));
|
|
834
833
|
}
|
|
835
834
|
function E(e) {
|
|
836
|
-
const r = e === "bech32" ? 1 : 734539939, n = S(5), c = n.decode, a = n.encode, s =
|
|
835
|
+
const r = e === "bech32" ? 1 : 734539939, n = S(5), c = n.decode, a = n.encode, s = C(c);
|
|
837
836
|
function u(y, R, L = 90) {
|
|
838
837
|
if (typeof y != "string")
|
|
839
838
|
throw new Error(`bech32.encode prefix should be string, not ${typeof y}`);
|
|
840
839
|
if (!Array.isArray(R) || R.length && typeof R[0] != "number")
|
|
841
840
|
throw new Error(`bech32.encode words should be array of numbers, not ${typeof R}`);
|
|
842
|
-
const
|
|
843
|
-
if (L !== !1 &&
|
|
844
|
-
throw new TypeError(`Length ${
|
|
841
|
+
const j = y.length + 7 + R.length;
|
|
842
|
+
if (L !== !1 && j > L)
|
|
843
|
+
throw new TypeError(`Length ${j} exceeds limit ${L}`);
|
|
845
844
|
return y = y.toLowerCase(), `${y}1${t.encode(R)}${d(y, R, r)}`;
|
|
846
845
|
}
|
|
847
846
|
function T(y, R = 90) {
|
|
@@ -853,23 +852,23 @@ var ue = {};
|
|
|
853
852
|
if (y !== L && y !== y.toUpperCase())
|
|
854
853
|
throw new Error("String must be lowercase or uppercase");
|
|
855
854
|
y = L;
|
|
856
|
-
const
|
|
857
|
-
if (
|
|
855
|
+
const j = y.lastIndexOf("1");
|
|
856
|
+
if (j === 0 || j === -1)
|
|
858
857
|
throw new Error('Letter "1" must be present between prefix and data only');
|
|
859
|
-
const
|
|
858
|
+
const q = y.slice(0, j), z = y.slice(j + 1);
|
|
860
859
|
if (z.length < 6)
|
|
861
860
|
throw new Error("Data must be at least 6 characters long");
|
|
862
|
-
const
|
|
863
|
-
if (!z.endsWith(
|
|
864
|
-
throw new Error(`Invalid checksum in ${y}: expected "${
|
|
865
|
-
return { prefix:
|
|
861
|
+
const M = t.decode(z).slice(0, -6), G = d(q, M, r);
|
|
862
|
+
if (!z.endsWith(G))
|
|
863
|
+
throw new Error(`Invalid checksum in ${y}: expected "${G}"`);
|
|
864
|
+
return { prefix: q, words: M };
|
|
866
865
|
}
|
|
867
|
-
const x =
|
|
868
|
-
function
|
|
866
|
+
const x = C(T);
|
|
867
|
+
function F(y) {
|
|
869
868
|
const { prefix: R, words: L } = T(y, !1);
|
|
870
869
|
return { prefix: R, words: L, bytes: c(L) };
|
|
871
870
|
}
|
|
872
|
-
return { encode: u, decode: T, decodeToBytes:
|
|
871
|
+
return { encode: u, decode: T, decodeToBytes: F, decodeUnsafe: x, fromWords: c, fromWordsUnsafe: s, toWords: a };
|
|
873
872
|
}
|
|
874
873
|
o.bech32 = E("bech32"), o.bech32m = E("bech32m"), o.utf8 = {
|
|
875
874
|
encode: (e) => new TextDecoder().decode(e),
|
|
@@ -896,14 +895,14 @@ var ue = {};
|
|
|
896
895
|
return p[e].encode(r);
|
|
897
896
|
};
|
|
898
897
|
o.bytesToString = A, o.str = o.bytesToString;
|
|
899
|
-
const
|
|
898
|
+
const W = (e, r) => {
|
|
900
899
|
if (!p.hasOwnProperty(e))
|
|
901
900
|
throw new TypeError(_);
|
|
902
901
|
if (typeof r != "string")
|
|
903
902
|
throw new TypeError("stringToBytes() expects string");
|
|
904
903
|
return p[e].decode(r);
|
|
905
904
|
};
|
|
906
|
-
o.stringToBytes =
|
|
905
|
+
o.stringToBytes = W, o.bytes = o.stringToBytes;
|
|
907
906
|
})(ue);
|
|
908
907
|
BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
|
|
909
908
|
BigInt("2100000000000000000");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ar as N, aq as d, aB as m, ap as r, h as u, aC as p, aD as w } from "./index-Dp1Fw3yT.js";
|
|
2
2
|
const c = w("", {
|
|
3
3
|
// Variants won't have any style by default. Style will only be applied if the variants are combined.
|
|
4
4
|
// So, style is defined in compoundVariants.
|
|
@@ -85,19 +85,19 @@ function g({
|
|
|
85
85
|
image: f,
|
|
86
86
|
title: h,
|
|
87
87
|
icon: b,
|
|
88
|
-
description:
|
|
89
|
-
variant:
|
|
88
|
+
description: i,
|
|
89
|
+
variant: s,
|
|
90
90
|
actionButton: e,
|
|
91
91
|
containerProps: t,
|
|
92
|
-
imageProps:
|
|
93
|
-
mediaLink:
|
|
94
|
-
thumbnailUrl:
|
|
92
|
+
imageProps: a,
|
|
93
|
+
mediaLink: x,
|
|
94
|
+
thumbnailUrl: v,
|
|
95
95
|
learnMore: l
|
|
96
96
|
}) {
|
|
97
|
-
const
|
|
97
|
+
const C = l && l.href.startsWith("https") ? "a" : N;
|
|
98
98
|
return /* @__PURE__ */ d("div", {
|
|
99
|
-
className:
|
|
100
|
-
variant:
|
|
99
|
+
className: m(t == null ? void 0 : t.className, c({
|
|
100
|
+
variant: s,
|
|
101
101
|
structure: "card"
|
|
102
102
|
}), "bg-default border-subtle text-default flex flex-col justify-between rounded-md border"),
|
|
103
103
|
"data-testid": "card-container",
|
|
@@ -105,32 +105,33 @@ function g({
|
|
|
105
105
|
children: [/* @__PURE__ */ d("div", {
|
|
106
106
|
children: [b && b, f && /* @__PURE__ */ r("img", {
|
|
107
107
|
src: f,
|
|
108
|
-
alt:
|
|
109
|
-
className:
|
|
110
|
-
variant:
|
|
108
|
+
alt: a == null ? void 0 : a.alt,
|
|
109
|
+
className: m(a == null ? void 0 : a.className, c({
|
|
110
|
+
variant: s,
|
|
111
111
|
structure: "image"
|
|
112
112
|
})),
|
|
113
|
-
...
|
|
113
|
+
...a
|
|
114
114
|
}), /* @__PURE__ */ r("h5", {
|
|
115
115
|
title: h,
|
|
116
|
-
className:
|
|
117
|
-
variant:
|
|
116
|
+
className: m(c({
|
|
117
|
+
variant: s,
|
|
118
118
|
structure: "title"
|
|
119
119
|
}), "text-emphasis line-clamp-1 font-bold leading-5"),
|
|
120
120
|
children: h
|
|
121
|
-
}),
|
|
122
|
-
title:
|
|
123
|
-
className:
|
|
124
|
-
variant:
|
|
121
|
+
}), i && /* @__PURE__ */ r("p", {
|
|
122
|
+
title: i.toString(),
|
|
123
|
+
className: m(c({
|
|
124
|
+
variant: s,
|
|
125
125
|
structure: "description"
|
|
126
126
|
}), "pt-1"),
|
|
127
|
-
children:
|
|
127
|
+
children: i
|
|
128
128
|
})]
|
|
129
|
-
}),
|
|
129
|
+
}), s === "SidebarCard" && /* @__PURE__ */ d("a", {
|
|
130
130
|
onClick: e == null ? void 0 : e.onClick,
|
|
131
131
|
target: "_blank",
|
|
132
132
|
rel: "noreferrer",
|
|
133
|
-
href:
|
|
133
|
+
href: x,
|
|
134
|
+
"data-testId": e == null ? void 0 : e["data-testId"],
|
|
134
135
|
className: "group relative my-3 flex aspect-video items-center overflow-hidden rounded",
|
|
135
136
|
children: [/* @__PURE__ */ r("div", {
|
|
136
137
|
className: "absolute inset-0 bg-black bg-opacity-50 transition-opacity group-hover:bg-opacity-40"
|
|
@@ -152,19 +153,20 @@ function g({
|
|
|
152
153
|
})]
|
|
153
154
|
}), /* @__PURE__ */ r("img", {
|
|
154
155
|
alt: "play feature video",
|
|
155
|
-
src:
|
|
156
|
+
src: v
|
|
156
157
|
})]
|
|
157
|
-
}), /* @__PURE__ */ r("div", {
|
|
158
|
-
children:
|
|
158
|
+
}), s === "basic" && e && /* @__PURE__ */ r("div", {
|
|
159
|
+
children: /* @__PURE__ */ r(u, {
|
|
159
160
|
color: "secondary",
|
|
160
161
|
href: e == null ? void 0 : e.href,
|
|
161
162
|
className: "mt-10",
|
|
162
163
|
EndIcon: p,
|
|
164
|
+
"data-testId": e["data-testId"],
|
|
163
165
|
children: e == null ? void 0 : e.child
|
|
164
166
|
})
|
|
165
|
-
}),
|
|
167
|
+
}), s === "SidebarCard" && /* @__PURE__ */ d("div", {
|
|
166
168
|
className: "mt-2 flex items-center justify-between",
|
|
167
|
-
children: [l && /* @__PURE__ */ r(
|
|
169
|
+
children: [l && /* @__PURE__ */ r(C, {
|
|
168
170
|
href: l.href,
|
|
169
171
|
onClick: e == null ? void 0 : e.onClick,
|
|
170
172
|
target: "_blank",
|
|
@@ -174,6 +176,7 @@ function g({
|
|
|
174
176
|
}), (e == null ? void 0 : e.child) && /* @__PURE__ */ r("button", {
|
|
175
177
|
className: "text-default hover:text-emphasis p-0 text-xs font-normal",
|
|
176
178
|
color: "minimal",
|
|
179
|
+
"data-testId": e == null ? void 0 : e["data-testId"],
|
|
177
180
|
onClick: e == null ? void 0 : e.onClick,
|
|
178
181
|
children: e == null ? void 0 : e.child
|
|
179
182
|
})]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { am as g, av as c, aw as Y, ax as k, ap as S, ay as p, az as i, aA as w } from "./index-Dp1Fw3yT.js";
|
|
2
|
+
const C = ({
|
|
3
|
+
event: t,
|
|
4
|
+
schedule: e
|
|
5
|
+
}) => {
|
|
6
|
+
var n, r, D, l;
|
|
7
|
+
const {
|
|
8
|
+
i18n: m
|
|
9
|
+
} = g(), [o, d] = c((a) => [a.month, a.selectedDate], Y), [s, y, M] = c((a) => [a.setSelectedDate, a.setMonth, a.setDayCount], Y), u = k((n = e == null ? void 0 : e.data) == null ? void 0 : n.slots);
|
|
10
|
+
return /* @__PURE__ */ S(p, {
|
|
11
|
+
isPending: e.isPending,
|
|
12
|
+
onChange: (a) => {
|
|
13
|
+
s(a === null ? a : a.format("YYYY-MM-DD"));
|
|
14
|
+
},
|
|
15
|
+
onMonthChange: (a) => {
|
|
16
|
+
y(a.format("YYYY-MM")), s(a.format("YYYY-MM-DD")), M(null);
|
|
17
|
+
},
|
|
18
|
+
includedDates: u,
|
|
19
|
+
locale: m.language,
|
|
20
|
+
browsingDate: o ? i(o) : void 0,
|
|
21
|
+
selected: i(d),
|
|
22
|
+
weekStart: w((l = (D = (r = t == null ? void 0 : t.data) == null ? void 0 : r.users) == null ? void 0 : D[0]) == null ? void 0 : l.weekStart)
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
C as DatePicker
|
|
27
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Lt, { useState as Rt, useEffect as zt } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { i as Kt } from "./isSupportedCountry-
|
|
2
|
+
import { aL as Bt, ap as Gt, aB as $t, aJ as Vt } from "./index-Dp1Fw3yT.js";
|
|
3
|
+
import { i as Kt } from "./isSupportedCountry-17w3UcDH.js";
|
|
4
4
|
var Ut = function(Z) {
|
|
5
5
|
var Q = {};
|
|
6
6
|
function l(u) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { am as r, an as m, ao as d, ap as a, aq as e, ar as x, as as h, at as t, au as i } from "./index-Dp1Fw3yT.js";
|
|
2
2
|
const u = ({
|
|
3
3
|
logoOnly: l
|
|
4
4
|
}) => {
|
|
@@ -7,8 +7,8 @@ const u = ({
|
|
|
7
7
|
} = r(), s = m.useSession(), o = d(), c = s.data ? s.data.hasValidLicense : null;
|
|
8
8
|
return /* @__PURE__ */ a("div", {
|
|
9
9
|
className: `p-2 text-center text-xs sm:text-right${o ? " max-w-3xl" : ""}`,
|
|
10
|
-
children: /* @__PURE__ */ e(
|
|
11
|
-
href:
|
|
10
|
+
children: /* @__PURE__ */ e(x, {
|
|
11
|
+
href: h,
|
|
12
12
|
target: "_blank",
|
|
13
13
|
className: "text-subtle",
|
|
14
14
|
children: [!l && /* @__PURE__ */ e(t, {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { WorkingHours } from "@calcom/types/schedule";
|
|
3
|
-
import type { TimeRange } from "@calcom/types/schedule";
|
|
2
|
+
import type { TimeRange, WorkingHours } from "@calcom/types/schedule";
|
|
4
3
|
import type { AvailabilityFormValues } from "./types";
|
|
5
4
|
export type Schedule = {
|
|
6
5
|
id: number;
|
|
@@ -29,7 +28,7 @@ export type CustomClassNames = {
|
|
|
29
28
|
};
|
|
30
29
|
type AvailabilitySettingsProps = {
|
|
31
30
|
skeletonLabel?: string;
|
|
32
|
-
schedule
|
|
31
|
+
schedule: {
|
|
33
32
|
name: string;
|
|
34
33
|
id: number;
|
|
35
34
|
availability: TimeRange[][];
|
|
@@ -40,7 +39,7 @@ type AvailabilitySettingsProps = {
|
|
|
40
39
|
ranges: TimeRange[];
|
|
41
40
|
}[];
|
|
42
41
|
timeZone: string;
|
|
43
|
-
schedule: Schedule[]
|
|
42
|
+
schedule: Schedule[];
|
|
44
43
|
};
|
|
45
44
|
handleDelete: () => void;
|
|
46
45
|
isDeleting: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvailabilitySettings.d.ts","sourceRoot":"","sources":["../../availability/AvailabilitySettings.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AvailabilitySettings.d.ts","sourceRoot":"","sources":["../../availability/AvailabilitySettings.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAsBtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB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IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AA4HF,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,UAAkB,EAClB,gBAAgB,GACjB,EAAE,yBAAyB,eAgU3B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const WebAvailabilitySettingsWrapper: () => JSX.Element;
|
|
1
|
+
export declare const WebAvailabilitySettingsWrapper: () => JSX.Element | null;
|
|
2
2
|
//# sourceMappingURL=WebAvailabilitySettingsWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebAvailabilitySettingsWrapper.d.ts","sourceRoot":"","sources":["../../../availability/wrappers/WebAvailabilitySettingsWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WebAvailabilitySettingsWrapper.d.ts","sourceRoot":"","sources":["../../../availability/wrappers/WebAvailabilitySettingsWrapper.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,8BAA8B,0BAqF1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookerPlatformWrapper.d.ts","sourceRoot":"","sources":["../../booker/BookerPlatformWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"BookerPlatformWrapper.d.ts","sourceRoot":"","sources":["../../booker/BookerPlatformWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAWpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,6BAA6B,EAC9B,M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GED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b2 as a, b3 as o, b0 as b, b1 as t, b5 as n, b9 as i, b6 as u, b7 as l, ba as r, bb as C, b8 as c, b4 as B } from "./index-Dp1Fw3yT.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
a as AvailabilitySettings,
|
|
4
|
+
o as Booker,
|
|
5
|
+
b as CalProvider,
|
|
6
|
+
t as GcalConnect,
|
|
7
|
+
n as useAtomsContext,
|
|
8
|
+
i as useCancelBooking,
|
|
9
|
+
u as useConnectedCalendars,
|
|
10
|
+
l as useEventTypesPublic,
|
|
11
|
+
r as useGetBooking,
|
|
12
|
+
C as useGetBookings,
|
|
13
|
+
c as useGetEventTypeById,
|
|
14
|
+
B as useIsPlatform
|
|
9
15
|
};
|