@calcom/atoms 1.2.0 → 1.3.0-booker
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/README.md +17 -1
- package/dist/{AddressInput-UbZjE-tI.js → AddressInput-WXZaR4AM.js} +3 -3
- package/dist/{AlbyPriceComponent-FDWNfR07.js → AlbyPriceComponent-HWQCTeD1.js} +19 -19
- package/dist/{PhoneInput-thLHoHkm.js → PhoneInput-6J6htPeB.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-7pq3HQ5u.js +1957 -0
- package/dist/index-SbGDY58y.js +83444 -0
- package/dist/{index-VHCLgyWQ.js → index-aGnAhRxt.js} +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +3 -0
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +4 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getCalEventResponses.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +6 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +8 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +6 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +3 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/round-robin.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/round-robin.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/pages/payment.d.ts +1 -0
- package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.d.ts +8 -0
- package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts +2 -0
- package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/constants.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/constants.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getOptions.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/getOptions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/schema.d.ts +5 -4
- package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/pages/index.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/pages/workflow.d.ts +1 -5
- package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/AddMembersWithSwitch.d.ts +2 -1
- package/dist/packages/features/eventtypes/components/AddMembersWithSwitch.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts +5 -2
- package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/DuplicateDialog.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EventType.d.ts +1 -0
- package/dist/packages/features/eventtypes/components/EventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/HostEditDialogs.d.ts +2 -0
- package/dist/packages/features/eventtypes/components/HostEditDialogs.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +6 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +1 -0
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +9 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts +8 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
- package/dist/packages/features/shell/Shell.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +6 -0
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/types.d.ts +12 -1
- package/dist/packages/platform/atoms/availability/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
- package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts +1 -1
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts.map +1 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +4 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/DestinationCalendar.d.ts +11 -0
- package/dist/packages/platform/atoms/destination-calendar/DestinationCalendar.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +3 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +6 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +1 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +6 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useMe.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/useMe.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -36
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +26 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/libraries/private-links.d.ts +3 -0
- package/dist/packages/platform/libraries/private-links.d.ts.map +1 -0
- package/dist/packages/platform/libraries/schedules.d.ts +1 -0
- package/dist/packages/platform/libraries/schedules.d.ts.map +1 -1
- package/dist/packages/platform/libraries/slots.d.ts +6 -0
- package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/index.d.ts +2 -0
- package/dist/packages/platform/types/event-types/index.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts +10 -0
- package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts.map +1 -0
- package/dist/packages/platform/types/event-types/outputs/private-link.output.d.ts +35 -0
- package/dist/packages/platform/types/event-types/outputs/private-link.output.d.ts.map +1 -0
- package/dist/packages/platform/types/index.d.ts +1 -0
- package/dist/packages/platform/types/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/agent.d.ts +44 -0
- package/dist/packages/prisma/zod/agent.d.ts.map +1 -0
- package/dist/packages/prisma/zod/calaiphonenumber.d.ts +66 -0
- package/dist/packages/prisma/zod/calaiphonenumber.d.ts.map +1 -0
- package/dist/packages/prisma/zod/custom/eventtype.d.ts +10 -0
- package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/eventtype.d.ts +10 -1
- package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/host.d.ts +9 -1
- package/dist/packages/prisma/zod/host.d.ts.map +1 -1
- package/dist/packages/prisma/zod/hostgroup.d.ts +32 -0
- package/dist/packages/prisma/zod/hostgroup.d.ts.map +1 -0
- package/dist/packages/prisma/zod/index.d.ts +3 -0
- package/dist/packages/prisma/zod/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/membership.d.ts +2 -1
- package/dist/packages/prisma/zod/membership.d.ts.map +1 -1
- package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
- package/dist/packages/prisma/zod/team.d.ts +3 -1
- package/dist/packages/prisma/zod/team.d.ts.map +1 -1
- package/dist/packages/prisma/zod/user.d.ts +3 -1
- package/dist/packages/prisma/zod/user.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -2
- package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowstep.d.ts +8 -3
- package/dist/packages/prisma/zod/workflowstep.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +24 -0
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +12634 -3343
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +155 -7
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +12 -2
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/AppCard-wE044EKu.js +0 -281
- package/dist/AppListCardPlatformWrapper-S2MLpR9q.js +0 -9
- package/dist/AppListCardWebWrapper-Ekd6d78j.js +0 -74
- package/dist/AppSettingsInterface-9HiSjvfg.js +0 -23
- package/dist/AppSettingsInterface-LmBoyPF3.js +0 -75
- package/dist/AppSettingsInterface-Q3voYj2J.js +0 -29
- package/dist/DateRangePicker-IpphZRIX.js +0 -74
- package/dist/EventTypeAppCardInterface-0tvjBecr.js +0 -39
- package/dist/EventTypeAppCardInterface-2KJr-V7Z.js +0 -33
- package/dist/EventTypeAppCardInterface-3x27P7ps.js +0 -34
- package/dist/EventTypeAppCardInterface-6XEXNBzn.js +0 -34
- package/dist/EventTypeAppCardInterface-7NR3doEG.js +0 -31
- package/dist/EventTypeAppCardInterface-EPMIwLGd.js +0 -39
- package/dist/EventTypeAppCardInterface-F93MhSNn.js +0 -24
- package/dist/EventTypeAppCardInterface-KjL7y7bt.js +0 -51
- package/dist/EventTypeAppCardInterface-P_G5YRV_.js +0 -858
- package/dist/EventTypeAppCardInterface-PktZC6Qe.js +0 -32
- package/dist/EventTypeAppCardInterface-Q7g0PqbK.js +0 -51
- package/dist/EventTypeAppCardInterface-RcBmmIx9.js +0 -34
- package/dist/EventTypeAppCardInterface-Rw_76E5Z.js +0 -41
- package/dist/EventTypeAppCardInterface-S6U1w7fe.js +0 -86
- package/dist/EventTypeAppCardInterface-YAGz7OSs.js +0 -24
- package/dist/EventTypeAppCardInterface-_JOQuDhH.js +0 -24
- package/dist/EventTypeAppCardInterface-jdO2h65F.js +0 -32
- package/dist/EventTypeAppCardInterface-kEPAtIQk.js +0 -24
- package/dist/EventTypeAppCardInterface-n8P51zUO.js +0 -34
- package/dist/EventTypeAppCardInterface-n_WO_Y6m.js +0 -41
- package/dist/EventTypeAppCardInterface-s_ShyWJo.js +0 -24
- package/dist/EventTypeAppCardInterface-sh5yauFY.js +0 -34
- package/dist/EventTypeAppCardInterface-uYCixWBP.js +0 -42
- package/dist/EventTypeAppCardInterface-uojE8EEU.js +0 -34
- package/dist/EventTypeAppCardInterface-votpw9E3.js +0 -34
- package/dist/EventTypeAppCardInterface-yyUk_C2L.js +0 -42
- package/dist/EventTypeAppCardInterface-zrl4AOk6.js +0 -49
- package/dist/EventTypeAppSettingsInterface-33K40mC3.js +0 -24
- package/dist/EventTypeAppSettingsInterface-BUDKuf38.js +0 -43
- package/dist/EventTypeAppSettingsInterface-FLyAowkl.js +0 -120
- package/dist/EventTypeAppSettingsInterface-MsLfMf4b.js +0 -78
- package/dist/EventTypeAppSettingsInterface-Ry7PH-5o.js +0 -23
- package/dist/EventTypeAppSettingsInterface-UzAwMrFq.js +0 -72
- package/dist/EventTypeAppSettingsInterface-aKWy9X9P.js +0 -25
- package/dist/EventTypeAppSettingsInterface-ekHTxFa0.js +0 -298
- package/dist/EventTypeAppSettingsInterface-fZOlGEqt.js +0 -221
- package/dist/EventTypeAppSettingsInterface-g29q2wWG.js +0 -42
- package/dist/EventTypeAppSettingsInterface-i-u_40BM.js +0 -48
- package/dist/EventTypeAppSettingsInterface-qgNiXkW7.js +0 -23
- package/dist/EventTypeAppSettingsInterface-zsCeg754.js +0 -79
- package/dist/InstallAppButton-4JTgmaHV.js +0 -14
- package/dist/InstallAppButton-HNUH1HbW.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-XwVQ7QR9.js +0 -58
- package/dist/StripePaymentForm-9JaoVglP.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-08sEbTLI.js +0 -518
- package/dist/index-NNpE702d.js +0 -30
- package/dist/index-hbI4lcmF.js +0 -160852
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/seatedRoundRobin.test.d.ts +0 -2
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/seatedRoundRobin.test.d.ts.map +0 -1
- package/dist/useIsAppEnabled-d30ejzXt.js +0 -18
package/README.md
CHANGED
|
@@ -36,4 +36,20 @@ changesets will publish atoms to npm only if the `"version"` in the atoms `packa
|
|
|
36
36
|
|
|
37
37
|
The following 2 articles teach how to write good change summaries for each PR when it deserves to end up in CHANGELOG.md
|
|
38
38
|
- https://keepachangelog.com/en/1.0.0/
|
|
39
|
-
- https://docs.gitlab.com/development/changelog/
|
|
39
|
+
- https://docs.gitlab.com/development/changelog/
|
|
40
|
+
|
|
41
|
+
### Testing
|
|
42
|
+
Atoms are tested in CI using e2e tests within the example platform app. To run them locally:
|
|
43
|
+
1. Go to "packages/platform/atoms" and run `yarn dev-on` and then `yarn build` - this will create local build of atoms.
|
|
44
|
+
2. Setup environment variables in "packages/platform/examples/base/.env" file. You will need your own platform oAuth client to populate NEXT_PUBLIC_X_CAL_ID (oAuth id), X_CAL_SECRET_KEY (oAuth secret), VITE_BOOKER_EMBED_OAUTH_CLIENT_ID (oAuth id) and ORGANIZATION_ID (organization id to which oAuth client belongs) - all of these are available in the platform settings dashboard after creating the oAuth client.
|
|
45
|
+
```
|
|
46
|
+
NEXT_PUBLIC_X_CAL_ID=""
|
|
47
|
+
X_CAL_SECRET_KEY=""
|
|
48
|
+
NEXT_PUBLIC_CALCOM_API_URL="https://api.cal.com/v2"
|
|
49
|
+
VITE_BOOKER_EMBED_OAUTH_CLIENT_ID=""
|
|
50
|
+
VITE_BOOKER_EMBED_API_URL="https://api.cal.com/v2"
|
|
51
|
+
ORGANIZATION_ID=""
|
|
52
|
+
```
|
|
53
|
+
3. Go to "packages/platform/examples/base" and run `yarn dev:e2e` - this will start the example platform app and run e2e tests by using locally built atoms. Because it is not running within CI it will open a browser and run tests.
|
|
54
|
+
|
|
55
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { I as n, b as c, c as o } from "./index-SbGDY58y.js";
|
|
3
3
|
function r({ value: s, onChange: t, ...a }) {
|
|
4
4
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
|
|
5
5
|
/* @__PURE__ */ e(
|
|
@@ -11,14 +11,14 @@ function r({ value: s, onChange: t, ...a }) {
|
|
|
11
11
|
}
|
|
12
12
|
),
|
|
13
13
|
/* @__PURE__ */ e(
|
|
14
|
-
|
|
14
|
+
c,
|
|
15
15
|
{
|
|
16
16
|
...a,
|
|
17
17
|
value: s,
|
|
18
18
|
onChange: (l) => {
|
|
19
19
|
t(l.target.value);
|
|
20
20
|
},
|
|
21
|
-
className:
|
|
21
|
+
className: o("pl-10", a == null ? void 0 : a.className)
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
] });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as z, jsxs as er } from "react/jsx-runtime";
|
|
2
2
|
import J from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { d as tr, S as nr } from "./index-SbGDY58y.js";
|
|
4
4
|
const K = function(s, r = !0) {
|
|
5
5
|
if (s.destroyed)
|
|
6
6
|
throw new Error("Hash instance has been destroyed");
|
|
@@ -67,8 +67,8 @@ class ir extends sr {
|
|
|
67
67
|
(function(b, y, E, x) {
|
|
68
68
|
if (typeof b.setBigUint64 == "function")
|
|
69
69
|
return b.setBigUint64(y, E, x);
|
|
70
|
-
const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k),
|
|
71
|
-
b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + j,
|
|
70
|
+
const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k), S = Number(E & k), j = x ? 0 : 4;
|
|
71
|
+
b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + j, S, x);
|
|
72
72
|
})(c, f - 8, BigInt(8 * this.length), u), this.process(c, 0);
|
|
73
73
|
const g = N(r), m = this.outputLen;
|
|
74
74
|
if (m % 4)
|
|
@@ -347,8 +347,8 @@ Q = function(s, r) {
|
|
|
347
347
|
}
|
|
348
348
|
return Uint8Array.from(t);
|
|
349
349
|
} }, r.base58check = (e) => c(B(4, (t) => e(e(t))), r.base58);
|
|
350
|
-
const
|
|
351
|
-
function
|
|
350
|
+
const S = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")), j = [996825010, 642813549, 513874426, 1027748829, 705979059];
|
|
351
|
+
function C(e) {
|
|
352
352
|
const t = e >> 25;
|
|
353
353
|
let n = (33554431 & e) << 5;
|
|
354
354
|
for (let o = 0; o < j.length; o++)
|
|
@@ -362,16 +362,16 @@ Q = function(s, r) {
|
|
|
362
362
|
const d = e.charCodeAt(h);
|
|
363
363
|
if (d < 33 || d > 126)
|
|
364
364
|
throw new Error(`Invalid prefix (${e})`);
|
|
365
|
-
a =
|
|
365
|
+
a = C(a) ^ d >> 5;
|
|
366
366
|
}
|
|
367
|
-
a =
|
|
367
|
+
a = C(a);
|
|
368
368
|
for (let h = 0; h < o; h++)
|
|
369
|
-
a =
|
|
369
|
+
a = C(a) ^ 31 & e.charCodeAt(h);
|
|
370
370
|
for (let h of t)
|
|
371
|
-
a =
|
|
371
|
+
a = C(a) ^ h;
|
|
372
372
|
for (let h = 0; h < 6; h++)
|
|
373
|
-
a =
|
|
374
|
-
return a ^= n,
|
|
373
|
+
a = C(a);
|
|
374
|
+
return a ^= n, S.encode(b([a % 2 ** 30], 30, 5, !1));
|
|
375
375
|
}
|
|
376
376
|
function O(e) {
|
|
377
377
|
const t = e === "bech32" ? 1 : 734539939, n = E(5), o = n.decode, a = n.encode, h = x(o);
|
|
@@ -389,7 +389,7 @@ Q = function(s, r) {
|
|
|
389
389
|
const G = w.slice(0, v), D = w.slice(v + 1);
|
|
390
390
|
if (D.length < 6)
|
|
391
391
|
throw new Error("Data must be at least 6 characters long");
|
|
392
|
-
const M =
|
|
392
|
+
const M = S.decode(D).slice(0, -6), P = H(G, M, t);
|
|
393
393
|
if (!D.endsWith(P))
|
|
394
394
|
throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
|
|
395
395
|
return { prefix: G, words: M };
|
|
@@ -402,7 +402,7 @@ Q = function(s, r) {
|
|
|
402
402
|
const v = w.length + 7 + p.length;
|
|
403
403
|
if ($ !== !1 && v > $)
|
|
404
404
|
throw new TypeError(`Length ${v} exceeds limit ${$}`);
|
|
405
|
-
return `${w = w.toLowerCase()}1${
|
|
405
|
+
return `${w = w.toLowerCase()}1${S.encode(p)}${H(w, p, t)}`;
|
|
406
406
|
}, decode: d, decodeToBytes: function(w) {
|
|
407
407
|
const { prefix: p, words: $ } = d(w, !1);
|
|
408
408
|
return { prefix: p, words: $, bytes: o($) };
|
|
@@ -431,20 +431,20 @@ Q = function(s, r) {
|
|
|
431
431
|
BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
|
|
432
432
|
BigInt("2100000000000000000");
|
|
433
433
|
BigInt(1e11);
|
|
434
|
-
const
|
|
435
|
-
for (let s = 0, r = Object.keys(
|
|
436
|
-
r[s],
|
|
434
|
+
const X = { payment_hash: 1, payment_secret: 16, description: 13, payee: 19, description_hash: 23, expiry: 6, min_final_cltv_expiry: 24, fallback_address: 9, route_hint: 3, feature_bits: 5, metadata: 27 };
|
|
435
|
+
for (let s = 0, r = Object.keys(X); s < r.length; s++)
|
|
436
|
+
r[s], X[r[s]].toString();
|
|
437
437
|
const V = async (s) => {
|
|
438
438
|
const r = "https://getalby.com/api/rates/" + s.toLowerCase() + ".json";
|
|
439
439
|
return (await (await fetch(r)).json()).rate_float / 1e8;
|
|
440
|
-
},
|
|
440
|
+
}, Y = async ({ satoshi: s, currency: r }) => {
|
|
441
441
|
const i = await V(r);
|
|
442
442
|
return Number(s) * i;
|
|
443
443
|
};
|
|
444
|
-
var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue:
|
|
444
|
+
var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue: Y, getSatoshiValue: async ({ amount: s, currency: r }) => {
|
|
445
445
|
const i = await V(r);
|
|
446
446
|
return Math.floor(Number(s) / i);
|
|
447
|
-
}, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await
|
|
447
|
+
}, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await Y({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
|
|
448
448
|
function wr({ displaySymbol: s, price: r, formattedPrice: i }) {
|
|
449
449
|
const [c, f] = J.useState("loading...");
|
|
450
450
|
return J.useEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as vt } from "react/jsx-runtime";
|
|
2
2
|
import Bt, { useState as $t, useEffect as Gt } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as Vt, i as qt, g as Kt, u as Ut, c as It, t as Wt } from "./index-SbGDY58y.js";
|
|
4
4
|
function Ht() {
|
|
5
5
|
return Vt(qt, arguments);
|
|
6
6
|
}
|
package/dist/cal-atoms.js
CHANGED
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { al as s, ak as e, am as r, u as t } from "./index-SbGDY58y.js";
|
|
2
2
|
export {
|
|
3
|
-
s as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
r as CalendarSettings,
|
|
8
|
-
i as ConferencingAppsSettings,
|
|
9
|
-
u as Connect,
|
|
10
|
-
C as CreateEventType,
|
|
11
|
-
l as DestinationCalendarSettings,
|
|
12
|
-
d as EventTypeSettings,
|
|
13
|
-
g as GcalConnect,
|
|
14
|
-
b as OutlookConnect,
|
|
15
|
-
c as PaymentForm,
|
|
16
|
-
m as Router,
|
|
17
|
-
p as SelectedCalendarsSettings,
|
|
18
|
-
v as StripeConnect,
|
|
19
|
-
S as useAddSelectedCalendar,
|
|
20
|
-
T as useAtomsContext,
|
|
21
|
-
y as useBooking,
|
|
22
|
-
E as useBookings,
|
|
23
|
-
k as useCancelBooking,
|
|
24
|
-
B as useConnectedCalendars,
|
|
25
|
-
A as useCreateEventType,
|
|
26
|
-
O as useCreateTeamEventType,
|
|
27
|
-
P as useDeleteCalendarCredentials,
|
|
28
|
-
f as useEvent,
|
|
29
|
-
I as useEventTypeById,
|
|
30
|
-
R as useEventTypes,
|
|
31
|
-
x as useIsPlatform,
|
|
32
|
-
z as useMe,
|
|
33
|
-
D as useOrganizationBookings,
|
|
34
|
-
F as useOrganizationUserBookings,
|
|
35
|
-
G as useRemoveSelectedCalendar,
|
|
36
|
-
M as useTeamEventTypes,
|
|
37
|
-
U as useTeams
|
|
3
|
+
s as Booker,
|
|
4
|
+
e as CalProvider,
|
|
5
|
+
r as useAtomsContext,
|
|
6
|
+
t as useIsPlatform
|
|
38
7
|
};
|