@calcom/atoms 1.7.0 → 1.8.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/dist/{AddressInput-xFwoBxsZ.js → AddressInput-E1ARKDg7.js} +5 -5
- package/dist/{AlbyPriceComponent-NnD6qUfW.js → AlbyPriceComponent-jBcuDvZa.js} +24 -24
- package/dist/{PhoneInput-uymiSRfv.js → PhoneInput-qXboae9k.js} +62 -62
- package/dist/cal-atoms.js +5 -36
- package/dist/index-GQl0OyJB.js +88695 -0
- package/dist/index-QBpbC_ZD.js +1957 -0
- package/dist/{index-WXyiFeKd.js → index-bGbS5CRI.js} +1 -1
- package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/Header.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +39 -33
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +83 -0
- package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/create-booking.d.ts +91 -91
- package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +91 -91
- package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -9
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +40 -38
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts +41 -0
- package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts +16 -0
- package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleConfirmation.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +2 -2
- package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -33
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +57 -57
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +60 -57
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +57 -57
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +46 -46
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +45 -45
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +364 -364
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handlePayment.d.ts +49 -0
- package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +33 -33
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/handleSeats.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +33 -33
- package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +39 -39
- package/dist/packages/features/components/controlled-dialog/index.d.ts.map +1 -1
- package/dist/packages/features/components/phone-input/PhoneInput.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts +2 -1
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts +5 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/organizations/index.d.ts +1 -2
- package/dist/packages/features/ee/billing/organizations/index.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/organizations/internal-organization-billing.d.ts +2 -2
- package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +32 -4
- package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/server/stripe-service.d.ts +23 -0
- package/dist/packages/features/ee/payments/server/stripe-service.d.ts.map +1 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +125 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts +2 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts.map +1 -0
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +30 -30
- 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/api/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/constants.d.ts +3 -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/reminders/emailReminderManager.d.ts +0 -3
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +0 -3
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +6 -6
- package/dist/packages/features/ee/workflows/lib/schema.d.ts +7 -2
- package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts +7 -0
- package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/eventNaming.d.ts +28 -0
- package/dist/packages/features/eventtypes/lib/eventNaming.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts +2 -0
- package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +42 -33
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -12
- package/dist/packages/features/eventtypes/lib/types.d.ts +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts +2 -2
- package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts +15 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts.map +1 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +20 -17
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.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/hooks/useGetVerifiedEmails.d.ts +3 -0
- package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts.map +1 -0
- package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.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/bookings/useCreateBooking.d.ts +91 -91
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +91 -91
- package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +91 -91
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -3
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +39 -33
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +3 -3
- package/dist/packages/platform/atoms/hooks/schedules/useAtomUpdateSchedule.d.ts +3 -3
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.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/lib/appendClientIdToEmail.d.ts +2 -0
- package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts.map +1 -0
- package/dist/packages/platform/libraries/event-types.d.ts +5 -5
- package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +4 -6
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/creditexpenselog.d.ts +6 -0
- package/dist/packages/prisma/zod/creditexpenselog.d.ts.map +1 -1
- package/dist/packages/prisma/zod/impersonations.d.ts +2 -2
- package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
- package/dist/packages/prisma/zod/task.d.ts +2 -2
- package/dist/packages/prisma/zod/teamfeatures.d.ts +2 -2
- package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
- package/dist/packages/prisma/zod/webhookscheduledtriggers.d.ts +2 -2
- package/dist/packages/prisma/zod/workflow.d.ts +7 -2
- package/dist/packages/prisma/zod/workflow.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +52 -0
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +86 -1
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +2 -2
- package/dist/packages/trpc/react/shared.d.ts +1 -1
- package/dist/packages/trpc/react/shared.d.ts.map +1 -1
- package/dist/packages/trpc/react/trpc.d.ts.map +1 -1
- 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--JDiTUMU.js +0 -281
- package/dist/AppListCardPlatformWrapper-ncgLQL4r.js +0 -9
- package/dist/AppListCardWebWrapper-YnM7-ccd.js +0 -74
- package/dist/AppSettingsInterface-EvAriEj2.js +0 -23
- package/dist/AppSettingsInterface-OGwTTVN7.js +0 -29
- package/dist/AppSettingsInterface-_WywrNHs.js +0 -75
- package/dist/DateRangePicker-m_y_P8tk.js +0 -74
- package/dist/EventTypeAppCardInterface--74geeRF.js +0 -39
- package/dist/EventTypeAppCardInterface--UDAdk0r.js +0 -24
- package/dist/EventTypeAppCardInterface-2Q1qvV5K.js +0 -32
- package/dist/EventTypeAppCardInterface-2r4pxyRt.js +0 -34
- package/dist/EventTypeAppCardInterface-3T7Bcarm.js +0 -31
- package/dist/EventTypeAppCardInterface-EPHC3SF7.js +0 -24
- package/dist/EventTypeAppCardInterface-G3OAa6sU.js +0 -41
- package/dist/EventTypeAppCardInterface-JQgzokgl.js +0 -32
- package/dist/EventTypeAppCardInterface-KDalRazj.js +0 -34
- package/dist/EventTypeAppCardInterface-LvigpfyE.js +0 -49
- package/dist/EventTypeAppCardInterface-MIro_wur.js +0 -33
- package/dist/EventTypeAppCardInterface-Na5tUt6e.js +0 -34
- package/dist/EventTypeAppCardInterface-O0yLol5y.js +0 -34
- package/dist/EventTypeAppCardInterface-R8-Y-hSu.js +0 -39
- package/dist/EventTypeAppCardInterface-YlTC8St1.js +0 -51
- package/dist/EventTypeAppCardInterface-_x7wFmBk.js +0 -24
- package/dist/EventTypeAppCardInterface-bNGYsiB0.js +0 -86
- package/dist/EventTypeAppCardInterface-d-rOMdsH.js +0 -34
- package/dist/EventTypeAppCardInterface-iHpJPDlc.js +0 -34
- package/dist/EventTypeAppCardInterface-jBTRuVkO.js +0 -51
- package/dist/EventTypeAppCardInterface-lXddHFhd.js +0 -41
- package/dist/EventTypeAppCardInterface-li1GK953.js +0 -858
- package/dist/EventTypeAppCardInterface-qO1PKt6x.js +0 -42
- package/dist/EventTypeAppCardInterface-rKAjvg4x.js +0 -24
- package/dist/EventTypeAppCardInterface-rV1vgpRv.js +0 -42
- package/dist/EventTypeAppCardInterface-sIqZFcBV.js +0 -34
- package/dist/EventTypeAppCardInterface-safQ0enm.js +0 -24
- package/dist/EventTypeAppSettingsInterface-7e1qbHi8.js +0 -24
- package/dist/EventTypeAppSettingsInterface-CLwwrZv6.js +0 -48
- package/dist/EventTypeAppSettingsInterface-CPvfqJkx.js +0 -221
- package/dist/EventTypeAppSettingsInterface-EZZkJrLi.js +0 -106
- package/dist/EventTypeAppSettingsInterface-JBpWa3pz.js +0 -298
- package/dist/EventTypeAppSettingsInterface-J_c1VzIk.js +0 -23
- package/dist/EventTypeAppSettingsInterface-K4kVWoog.js +0 -23
- package/dist/EventTypeAppSettingsInterface-LIn3bMv4.js +0 -25
- package/dist/EventTypeAppSettingsInterface-cbkdr04f.js +0 -42
- package/dist/EventTypeAppSettingsInterface-eejB8RJX.js +0 -43
- package/dist/EventTypeAppSettingsInterface-mOdk6pDR.js +0 -78
- package/dist/EventTypeAppSettingsInterface-vNhCP6vQ.js +0 -72
- package/dist/EventTypeAppSettingsInterface-xYWyd_Dz.js +0 -120
- package/dist/InstallAppButton-6HzB5_Be.js +0 -14
- package/dist/InstallAppButton-9sn2Jtoz.js +0 -14
- package/dist/InstallAppButton-J51NRgMF.js +0 -58
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/StripePaymentForm-cXAJjJV3.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index--iR_feQQ.js +0 -165254
- package/dist/index-XoFQv1cd.js +0 -518
- package/dist/index-tEqQSBcP.js +0 -28
- package/dist/useIsAppEnabled-C_9eRB94.js +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
2
|
+
import { I as n, b as c, c as o } from "./index-GQl0OyJB.js";
|
|
3
|
+
function r({ value: s, onChange: t, ...a }) {
|
|
4
4
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
|
|
5
5
|
/* @__PURE__ */ e(
|
|
6
6
|
n,
|
|
@@ -11,18 +11,18 @@ function i({ 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
|
] });
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
r as default
|
|
28
28
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
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-GQl0OyJB.js";
|
|
4
4
|
const K = function(s, r = !0) {
|
|
5
5
|
if (s.destroyed)
|
|
6
6
|
throw new Error("Hash instance has been destroyed");
|
|
7
7
|
if (r && s.finished)
|
|
8
8
|
throw new Error("Hash#digest() has already been called");
|
|
9
|
-
}, or = (s) => s instanceof Uint8Array,
|
|
9
|
+
}, or = (s) => s instanceof Uint8Array, N = (s) => new DataView(s.buffer, s.byteOffset, s.byteLength), L = (s, r) => s << 32 - r | s >>> r;
|
|
10
10
|
if (new Uint8Array(new Uint32Array([287454020]).buffer)[0] !== 68)
|
|
11
11
|
throw new Error("Non little-endian hardware is not supported");
|
|
12
12
|
Array.from({ length: 256 }, (s, r) => r.toString(16).padStart(2, "0"));
|
|
@@ -30,7 +30,7 @@ function q(s) {
|
|
|
30
30
|
}
|
|
31
31
|
class ir extends sr {
|
|
32
32
|
constructor(r, i, c, f) {
|
|
33
|
-
super(), this.blockLen = r, this.outputLen = i, this.padOffset = c, this.isLE = f, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(r), this.view =
|
|
33
|
+
super(), this.blockLen = r, this.outputLen = i, this.padOffset = c, this.isLE = f, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(r), this.view = N(this.buffer);
|
|
34
34
|
}
|
|
35
35
|
update(r) {
|
|
36
36
|
K(this);
|
|
@@ -40,7 +40,7 @@ class ir extends sr {
|
|
|
40
40
|
if (g !== f)
|
|
41
41
|
c.set(r.subarray(l, l + g), this.pos), this.pos += g, l += g, this.pos === f && (this.process(i, 0), this.pos = 0);
|
|
42
42
|
else {
|
|
43
|
-
const m =
|
|
43
|
+
const m = N(r);
|
|
44
44
|
for (; f <= u - l; l += f)
|
|
45
45
|
this.process(m, l);
|
|
46
46
|
}
|
|
@@ -67,10 +67,10 @@ 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 +
|
|
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
|
-
const g =
|
|
73
|
+
const g = N(r), m = this.outputLen;
|
|
74
74
|
if (m % 4)
|
|
75
75
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
76
76
|
const U = m / 4, A = this.get();
|
|
@@ -132,7 +132,7 @@ class hr extends rr {
|
|
|
132
132
|
}
|
|
133
133
|
q(() => new rr());
|
|
134
134
|
q(() => new hr());
|
|
135
|
-
var Q,
|
|
135
|
+
var Q, R;
|
|
136
136
|
Q = function(s, r) {
|
|
137
137
|
function i(e) {
|
|
138
138
|
if (!Number.isSafeInteger(e))
|
|
@@ -347,12 +347,12 @@ 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
|
-
for (let o = 0; o <
|
|
355
|
-
(t >> o & 1) == 1 && (n ^=
|
|
354
|
+
for (let o = 0; o < j.length; o++)
|
|
355
|
+
(t >> o & 1) == 1 && (n ^= j[o]);
|
|
356
356
|
return n;
|
|
357
357
|
}
|
|
358
358
|
function H(e, t, n = 1) {
|
|
@@ -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);
|
|
@@ -386,11 +386,11 @@ Q = function(s, r) {
|
|
|
386
386
|
const v = (w = $).lastIndexOf("1");
|
|
387
387
|
if (v === 0 || v === -1)
|
|
388
388
|
throw new Error('Letter "1" must be present between prefix and data only');
|
|
389
|
-
const G = w.slice(0, v),
|
|
390
|
-
if (
|
|
389
|
+
const G = w.slice(0, v), D = w.slice(v + 1);
|
|
390
|
+
if (D.length < 6)
|
|
391
391
|
throw new Error("Data must be at least 6 characters long");
|
|
392
|
-
const M =
|
|
393
|
-
if (!
|
|
392
|
+
const M = S.decode(D).slice(0, -6), P = H(G, M, t);
|
|
393
|
+
if (!D.endsWith(P))
|
|
394
394
|
throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
|
|
395
395
|
return { prefix: G, words: M };
|
|
396
396
|
}
|
|
@@ -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($) };
|
|
@@ -427,7 +427,7 @@ Q = function(s, r) {
|
|
|
427
427
|
throw new TypeError("stringToBytes() expects string");
|
|
428
428
|
return F[e].decode(t);
|
|
429
429
|
}, r.bytes = r.stringToBytes;
|
|
430
|
-
}, Q(
|
|
430
|
+
}, Q(R = { exports: {} }, R.exports), R.exports;
|
|
431
431
|
BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
|
|
432
432
|
BigInt("2100000000000000000");
|
|
433
433
|
BigInt(1e11);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as vt } from "react/jsx-runtime";
|
|
2
2
|
import $t, { useEffect as It, useState as Gt } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as Vt, i as qt, g as Kt, u as Ut, c as Dt, t as Wt } from "./index-GQl0OyJB.js";
|
|
4
4
|
function Ht() {
|
|
5
|
-
return Vt(
|
|
5
|
+
return Vt(qt, arguments);
|
|
6
6
|
}
|
|
7
7
|
var Jt = function(U) {
|
|
8
8
|
var Z = {};
|
|
@@ -106,11 +106,11 @@ var Jt = function(U) {
|
|
|
106
106
|
}(j)) === 1 / 0 || j === -1 / 0 ? 17976931348623157e292 * (j < 0 ? -1 : 1) : j == j ? j : 0 : j === 0 ? j : 0;
|
|
107
107
|
}
|
|
108
108
|
U.exports = function(j, b, H) {
|
|
109
|
-
var ce, $, le,
|
|
109
|
+
var ce, $, le, q;
|
|
110
110
|
return j = (ce = j) == null ? "" : g(ce), $ = function(Ce) {
|
|
111
111
|
var me = V(Ce), we = me % 1;
|
|
112
112
|
return me == me ? we ? me - we : me : 0;
|
|
113
|
-
}(H), le = 0,
|
|
113
|
+
}(H), le = 0, q = j.length, $ == $ && (q !== void 0 && ($ = $ <= q ? $ : q), le !== void 0 && ($ = $ >= le ? $ : le)), H = $, b = g(b), j.slice(H, H + b.length) == b;
|
|
114
114
|
};
|
|
115
115
|
}).call(this, s(3));
|
|
116
116
|
}, function(U, Z) {
|
|
@@ -181,7 +181,7 @@ var Jt = function(U) {
|
|
|
181
181
|
}(l));
|
|
182
182
|
var y;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function q(l, y) {
|
|
185
185
|
var C, k, fe = l.__data__;
|
|
186
186
|
return ((k = typeof (C = y)) == "string" || k == "number" || k == "symbol" || k == "boolean" ? C !== "__proto__" : C === null) ? fe[typeof y == "string" ? "string" : "hash"] : fe.map;
|
|
187
187
|
}
|
|
@@ -239,13 +239,13 @@ var Jt = function(U) {
|
|
|
239
239
|
}, ce.prototype.clear = function() {
|
|
240
240
|
this.__data__ = { hash: new b(), map: new (V || H)(), string: new b() };
|
|
241
241
|
}, ce.prototype.delete = function(l) {
|
|
242
|
-
return
|
|
242
|
+
return q(this, l).delete(l);
|
|
243
243
|
}, ce.prototype.get = function(l) {
|
|
244
|
-
return
|
|
244
|
+
return q(this, l).get(l);
|
|
245
245
|
}, ce.prototype.has = function(l) {
|
|
246
|
-
return
|
|
246
|
+
return q(this, l).has(l);
|
|
247
247
|
}, ce.prototype.set = function(l, y) {
|
|
248
|
-
return
|
|
248
|
+
return q(this, l).set(l, y), this;
|
|
249
249
|
}, me.Cache = ce, U.exports = me;
|
|
250
250
|
}).call(this, s(3));
|
|
251
251
|
}, function(U, Z, s) {
|
|
@@ -277,7 +277,7 @@ var Jt = function(U) {
|
|
|
277
277
|
return j || W.test(R) ? ne(R.slice(2), j ? 2 : 8) : D.test(R) ? NaN : +R;
|
|
278
278
|
}
|
|
279
279
|
U.exports = function(R, V, j) {
|
|
280
|
-
var b, H, ce, $, le,
|
|
280
|
+
var b, H, ce, $, le, q, Ce = 0, me = !1, we = !1, l = !0;
|
|
281
281
|
if (typeof R != "function")
|
|
282
282
|
throw new TypeError("Expected a function");
|
|
283
283
|
function y(c) {
|
|
@@ -288,15 +288,15 @@ var Jt = function(U) {
|
|
|
288
288
|
return Ce = c, le = setTimeout(fe, V), me ? y(c) : $;
|
|
289
289
|
}
|
|
290
290
|
function k(c) {
|
|
291
|
-
var N = c -
|
|
292
|
-
return
|
|
291
|
+
var N = c - q;
|
|
292
|
+
return q === void 0 || N >= V || N < 0 || we && c - Ce >= ce;
|
|
293
293
|
}
|
|
294
294
|
function fe() {
|
|
295
295
|
var c = _e();
|
|
296
296
|
if (k(c))
|
|
297
297
|
return Ae(c);
|
|
298
298
|
le = setTimeout(fe, function(N) {
|
|
299
|
-
var P = V - (N -
|
|
299
|
+
var P = V - (N - q);
|
|
300
300
|
return we ? ke(P, ce - (N - Ce)) : P;
|
|
301
301
|
}(c));
|
|
302
302
|
}
|
|
@@ -305,16 +305,16 @@ var Jt = function(U) {
|
|
|
305
305
|
}
|
|
306
306
|
function m() {
|
|
307
307
|
var c = _e(), N = k(c);
|
|
308
|
-
if (b = arguments, H = this,
|
|
308
|
+
if (b = arguments, H = this, q = c, N) {
|
|
309
309
|
if (le === void 0)
|
|
310
|
-
return C(
|
|
310
|
+
return C(q);
|
|
311
311
|
if (we)
|
|
312
|
-
return le = setTimeout(fe, V), y(
|
|
312
|
+
return le = setTimeout(fe, V), y(q);
|
|
313
313
|
}
|
|
314
314
|
return le === void 0 && (le = setTimeout(fe, V)), $;
|
|
315
315
|
}
|
|
316
316
|
return V = Ee(V) || 0, g(j) && (me = !!j.leading, ce = (we = "maxWait" in j) ? Oe(Ee(j.maxWait) || 0, V) : ce, l = "trailing" in j ? !!j.trailing : l), m.cancel = function() {
|
|
317
|
-
le !== void 0 && clearTimeout(le), Ce = 0, b =
|
|
317
|
+
le !== void 0 && clearTimeout(le), Ce = 0, b = q = H = le = void 0;
|
|
318
318
|
}, m.flush = function() {
|
|
319
319
|
return le === void 0 ? $ : Ae(_e());
|
|
320
320
|
}, m;
|
|
@@ -336,7 +336,7 @@ var Jt = function(U) {
|
|
|
336
336
|
a = r(a, e[_], _, e);
|
|
337
337
|
return a;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function q(e, r) {
|
|
340
340
|
for (var a = -1, i = e ? e.length : 0; ++a < i; )
|
|
341
341
|
if (r(e[a], a, e))
|
|
342
342
|
return !0;
|
|
@@ -370,7 +370,7 @@ var Jt = function(U) {
|
|
|
370
370
|
}
|
|
371
371
|
var y, C, k, fe = Array.prototype, Ae = Function.prototype, m = Object.prototype, c = V["__core-js_shared__"], N = (y = /[^.]+$/.exec(c && c.keys && c.keys.IE_PROTO || "")) ? "Symbol(src)_1." + y : "", P = Ae.toString, f = m.hasOwnProperty, t = m.toString, z = RegExp("^" + P.call(f).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), M = V.Symbol, L = V.Uint8Array, ae = m.propertyIsEnumerable, ee = fe.splice, oe = (C = Object.keys, k = Object, function(e) {
|
|
372
372
|
return C(k(e));
|
|
373
|
-
}), se = Ue(V, "DataView"), de = Ue(V, "Map"), ie = Ue(V, "Promise"), n = Ue(V, "Set"), o = Ue(V, "WeakMap"), d = Ue(Object, "create"), E = Ge(se), O = Ge(de), T = Ge(ie), A = Ge(n),
|
|
373
|
+
}), se = Ue(V, "DataView"), de = Ue(V, "Map"), ie = Ue(V, "Promise"), n = Ue(V, "Set"), o = Ue(V, "WeakMap"), d = Ue(Object, "create"), E = Ge(se), O = Ge(de), T = Ge(ie), A = Ge(n), K = Ge(o), p = M ? M.prototype : void 0, S = p ? p.valueOf : void 0, F = p ? p.toString : void 0;
|
|
374
374
|
function h(e) {
|
|
375
375
|
var r = -1, a = e ? e.length : 0;
|
|
376
376
|
for (this.clear(); ++r < a; ) {
|
|
@@ -478,7 +478,7 @@ var Jt = function(U) {
|
|
|
478
478
|
return a.set(e, r), this;
|
|
479
479
|
};
|
|
480
480
|
var $e, pe = ($e = function(e, r) {
|
|
481
|
-
return e &&
|
|
481
|
+
return e && Ke(e, r, at);
|
|
482
482
|
}, function(e, r) {
|
|
483
483
|
if (e == null)
|
|
484
484
|
return e;
|
|
@@ -487,7 +487,7 @@ var Jt = function(U) {
|
|
|
487
487
|
for (var a = e.length, i = -1, _ = Object(e); ++i < a && r(_[i], i, _) !== !1; )
|
|
488
488
|
;
|
|
489
489
|
return e;
|
|
490
|
-
}),
|
|
490
|
+
}), Ke = /* @__PURE__ */ function(e) {
|
|
491
491
|
return function(r, a, i) {
|
|
492
492
|
for (var _ = -1, w = Object(r), I = i(r), Q = I.length; Q--; ) {
|
|
493
493
|
var re = I[e ? Q : ++_];
|
|
@@ -511,14 +511,14 @@ var Jt = function(U) {
|
|
|
511
511
|
Ie || (ue = (ue = Me(w)) == D ? W : ue), De || (he = (he = Me(I)) == D ? W : he);
|
|
512
512
|
var xe = ue == W && !me(w), Ve = he == W && !me(I), Re = ue == he;
|
|
513
513
|
if (Re && !xe)
|
|
514
|
-
return B || (B = new ye()), Ie || Lt(w) ? _t(w, I, Q, re, G, B) : function(Y, J, bt,
|
|
514
|
+
return B || (B = new ye()), Ie || Lt(w) ? _t(w, I, Q, re, G, B) : function(Y, J, bt, qe, ot, Ne, Fe) {
|
|
515
515
|
switch (bt) {
|
|
516
516
|
case "[object DataView]":
|
|
517
517
|
if (Y.byteLength != J.byteLength || Y.byteOffset != J.byteOffset)
|
|
518
518
|
return !1;
|
|
519
519
|
Y = Y.buffer, J = J.buffer;
|
|
520
520
|
case "[object ArrayBuffer]":
|
|
521
|
-
return !(Y.byteLength != J.byteLength || !
|
|
521
|
+
return !(Y.byteLength != J.byteLength || !qe(new L(Y), new L(J)));
|
|
522
522
|
case "[object Boolean]":
|
|
523
523
|
case "[object Date]":
|
|
524
524
|
case "[object Number]":
|
|
@@ -538,7 +538,7 @@ var Jt = function(U) {
|
|
|
538
538
|
if (it)
|
|
539
539
|
return it == J;
|
|
540
540
|
Ne |= 1, Fe.set(Y, J);
|
|
541
|
-
var We = _t(ze(Y), ze(J),
|
|
541
|
+
var We = _t(ze(Y), ze(J), qe, ot, Ne, Fe);
|
|
542
542
|
return Fe.delete(Y), We;
|
|
543
543
|
case "[object Symbol]":
|
|
544
544
|
if (S)
|
|
@@ -553,7 +553,7 @@ var Jt = function(U) {
|
|
|
553
553
|
return B || (B = new ye()), Q(zt, Bt, re, G, B);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
return Re ? (B || (B = new ye()), function(Y, J, bt,
|
|
556
|
+
return Re ? (B || (B = new ye()), function(Y, J, bt, qe, ot, Ne) {
|
|
557
557
|
var Fe = 2 & ot, ze = at(Y), Ye = ze.length, it = at(J).length;
|
|
558
558
|
if (Ye != it && !Fe)
|
|
559
559
|
return !1;
|
|
@@ -570,9 +570,9 @@ var Jt = function(U) {
|
|
|
570
570
|
for (var gt = Fe; ++We < Ye; ) {
|
|
571
571
|
Be = ze[We];
|
|
572
572
|
var ct = Y[Be], st = J[Be];
|
|
573
|
-
if (
|
|
574
|
-
var Tt = Fe ?
|
|
575
|
-
if (!(Tt === void 0 ? ct === st || bt(ct, st,
|
|
573
|
+
if (qe)
|
|
574
|
+
var Tt = Fe ? qe(st, ct, Be, J, Y, Ne) : qe(ct, st, Be, Y, J, Ne);
|
|
575
|
+
if (!(Tt === void 0 ? ct === st || bt(ct, st, qe, ot, Ne) : Tt)) {
|
|
576
576
|
ut = !1;
|
|
577
577
|
break;
|
|
578
578
|
}
|
|
@@ -684,7 +684,7 @@ var Jt = function(U) {
|
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
686
|
if (De) {
|
|
687
|
-
if (!
|
|
687
|
+
if (!q(r, function(Ve, Re) {
|
|
688
688
|
if (!De.has(Re) && (ue === Ve || a(ue, Ve, i, _, w)))
|
|
689
689
|
return De.add(Re);
|
|
690
690
|
})) {
|
|
@@ -740,7 +740,7 @@ var Jt = function(U) {
|
|
|
740
740
|
return "[object Promise]";
|
|
741
741
|
case A:
|
|
742
742
|
return ne;
|
|
743
|
-
case
|
|
743
|
+
case K:
|
|
744
744
|
return "[object WeakMap]";
|
|
745
745
|
}
|
|
746
746
|
return r;
|
|
@@ -918,7 +918,7 @@ var Jt = function(U) {
|
|
|
918
918
|
})(m, c);
|
|
919
919
|
}
|
|
920
920
|
s.r(Z);
|
|
921
|
-
var _e = s(0), g = s.n(_e), Ee = s(5), R = s.n(Ee), V = s(4), j = s.n(V), b = s(6), H = s.n(b), ce = s(2), $ = s.n(ce), le = s(1),
|
|
921
|
+
var _e = s(0), g = s.n(_e), Ee = s(5), R = s.n(Ee), V = s(4), j = s.n(V), b = s(6), H = s.n(b), ce = s(2), $ = s.n(ce), le = s(1), q = s.n(le);
|
|
922
922
|
s(8);
|
|
923
923
|
function Ce(m, c) {
|
|
924
924
|
return X(m) || function(N, P) {
|
|
@@ -1051,8 +1051,8 @@ var Jt = function(U) {
|
|
|
1051
1051
|
return C(h, 1, p, !0), C(h, 3, S), C(h, 2, F), h;
|
|
1052
1052
|
}(L, ae, ee), o = k(JSON.parse(JSON.stringify(me)), n), d = k(JSON.parse(JSON.stringify(we)), n), E = Ce(y(o, c, se, de, ie), 2), O = E[0], T = E[1];
|
|
1053
1053
|
if (N) {
|
|
1054
|
-
var A = Ce(y(d, c, se, de, ie), 2),
|
|
1055
|
-
A[1], O = this.sortTerritories(
|
|
1054
|
+
var A = Ce(y(d, c, se, de, ie), 2), K = A[0];
|
|
1055
|
+
A[1], O = this.sortTerritories(K, O);
|
|
1056
1056
|
}
|
|
1057
1057
|
P && (O = this.filterRegions(P, O)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(f, O, M.includes("onlyCountries")), z), oe, M.includes("onlyCountries")), this.preferredCountries = t.length === 0 ? [] : this.localizeCountries(this.getFilteredCountryList(t, O, M.includes("preferredCountries")), oe, M.includes("preferredCountries")), this.hiddenAreaCodes = this.excludeCountries(this.getFilteredCountryList(f, T), z);
|
|
1058
1058
|
}, Ae = function(m) {
|
|
@@ -1066,21 +1066,21 @@ var Jt = function(U) {
|
|
|
1066
1066
|
}, ve(ve(t)))[0] : null;
|
|
1067
1067
|
}), t.guessSelectedCountry = j()(function(n, o, d, E) {
|
|
1068
1068
|
var O;
|
|
1069
|
-
if (t.props.enableAreaCodes === !1 && (E.some(function(
|
|
1070
|
-
if ($()(n,
|
|
1069
|
+
if (t.props.enableAreaCodes === !1 && (E.some(function(K) {
|
|
1070
|
+
if ($()(n, K.dialCode))
|
|
1071
1071
|
return d.some(function(p) {
|
|
1072
|
-
if (
|
|
1072
|
+
if (K.iso2 === p.iso2 && p.mainCode)
|
|
1073
1073
|
return O = p, !0;
|
|
1074
1074
|
}), !0;
|
|
1075
1075
|
}), O))
|
|
1076
1076
|
return O;
|
|
1077
|
-
var T = d.find(function(
|
|
1078
|
-
return
|
|
1077
|
+
var T = d.find(function(K) {
|
|
1078
|
+
return K.iso2 == o;
|
|
1079
1079
|
});
|
|
1080
1080
|
if (n.trim() === "")
|
|
1081
1081
|
return T;
|
|
1082
|
-
var A = d.reduce(function(
|
|
1083
|
-
return $()(n, p.dialCode) && (p.dialCode.length >
|
|
1082
|
+
var A = d.reduce(function(K, p) {
|
|
1083
|
+
return $()(n, p.dialCode) && (p.dialCode.length > K.dialCode.length || p.dialCode.length === K.dialCode.length && p.priority < K.priority) ? p : K;
|
|
1084
1084
|
}, { dialCode: "", priority: 10001 }, ve(ve(t)));
|
|
1085
1085
|
return A.name ? A : T;
|
|
1086
1086
|
}), t.updateCountry = function(n) {
|
|
@@ -1094,7 +1094,7 @@ var Jt = function(U) {
|
|
|
1094
1094
|
if (n) {
|
|
1095
1095
|
var d = t.dropdownRef;
|
|
1096
1096
|
if (d && document.body) {
|
|
1097
|
-
var E = d.offsetHeight, O = d.getBoundingClientRect().top + document.body.scrollTop, T = O + E, A = n,
|
|
1097
|
+
var E = d.offsetHeight, O = d.getBoundingClientRect().top + document.body.scrollTop, T = O + E, A = n, K = A.getBoundingClientRect(), p = A.offsetHeight, S = K.top + document.body.scrollTop, F = S + p, h = S - O + d.scrollTop, v = E / 2 - p / 2;
|
|
1098
1098
|
if (t.props.enableSearch ? S < O + 32 : S < O)
|
|
1099
1099
|
o && (h -= v), d.scrollTop = h;
|
|
1100
1100
|
else if (F > T) {
|
|
@@ -1110,7 +1110,7 @@ var Jt = function(U) {
|
|
|
1110
1110
|
}, t.formatNumber = function(n, o) {
|
|
1111
1111
|
if (!o)
|
|
1112
1112
|
return n;
|
|
1113
|
-
var d, E = o.format, O = t.props, T = O.disableCountryCode, A = O.enableAreaCodeStretch,
|
|
1113
|
+
var d, E = o.format, O = t.props, T = O.disableCountryCode, A = O.enableAreaCodeStretch, K = O.enableLongNumbers, p = O.autoFormat;
|
|
1114
1114
|
if (T ? ((d = E.split(" ")).shift(), d = d.join(" ")) : A && o.isAreaCode ? ((d = E.split(" "))[1] = d[1].replace(/\.+/, "".padEnd(o.areaCodeLength, ".")), d = d.join(" ")) : d = E, !n || n.length === 0)
|
|
1115
1115
|
return T ? "" : t.props.prefix;
|
|
1116
1116
|
if (n && n.length < 2 || !d || !p)
|
|
@@ -1123,7 +1123,7 @@ var Jt = function(U) {
|
|
|
1123
1123
|
var te, je = X(te = h.remainingText) || x(te) || W(), ye = je[0], Te = je.slice(1);
|
|
1124
1124
|
return { formattedText: h.formattedText + ye, remainingText: Te };
|
|
1125
1125
|
}, { formattedText: "", remainingText: n.split("") });
|
|
1126
|
-
return (S =
|
|
1126
|
+
return (S = K ? F.formattedText + F.remainingText.join("") : F.formattedText).includes("(") && !S.includes(")") && (S += ")"), S;
|
|
1127
1127
|
}, t.cursorToEnd = function() {
|
|
1128
1128
|
var n = t.numberInputRef;
|
|
1129
1129
|
if (document.activeElement === n) {
|
|
@@ -1145,7 +1145,7 @@ var Jt = function(U) {
|
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
}, t.handleInput = function(n) {
|
|
1148
|
-
var o = n.target.value, d = t.props, E = d.prefix, O = d.onChange, T = t.props.disableCountryCode ? "" : E, A = t.state.selectedCountry,
|
|
1148
|
+
var o = n.target.value, d = t.props, E = d.prefix, O = d.onChange, T = t.props.disableCountryCode ? "" : E, A = t.state.selectedCountry, K = t.state.freezeSelection;
|
|
1149
1149
|
if (!t.props.countryCodeEditable) {
|
|
1150
1150
|
var p = E + (A.hasAreaCodes ? t.state.onlyCountries.find(function(pe) {
|
|
1151
1151
|
return pe.iso2 === A.iso2 && pe.mainCode;
|
|
@@ -1160,10 +1160,10 @@ var Jt = function(U) {
|
|
|
1160
1160
|
var S = t.props.country, F = t.state, h = F.onlyCountries, v = F.selectedCountry, te = F.hiddenAreaCodes;
|
|
1161
1161
|
if (O && n.persist(), o.length > 0) {
|
|
1162
1162
|
var je = o.replace(/\D/g, "");
|
|
1163
|
-
(!t.state.freezeSelection || v && v.dialCode.length > je.length) && (A = t.props.disableCountryGuess ? v : t.guessSelectedCountry(je.substring(0, 6), S, h, te) || v,
|
|
1163
|
+
(!t.state.freezeSelection || v && v.dialCode.length > je.length) && (A = t.props.disableCountryGuess ? v : t.guessSelectedCountry(je.substring(0, 6), S, h, te) || v, K = !1), T = t.formatNumber(je, A), A = A.dialCode ? A : v;
|
|
1164
1164
|
}
|
|
1165
1165
|
var ye = n.target.selectionStart, Te = n.target.selectionStart, Pe = t.state.formattedNumber, $e = T.length - Pe.length;
|
|
1166
|
-
t.setState({ formattedNumber: T, freezeSelection:
|
|
1166
|
+
t.setState({ formattedNumber: T, freezeSelection: K, selectedCountry: A }, function() {
|
|
1167
1167
|
$e > 0 && (Te -= $e), T.charAt(T.length - 1) == ")" ? t.numberInputRef.setSelectionRange(T.length - 1, T.length - 1) : Te > 0 && Pe.length >= T.length ? t.numberInputRef.setSelectionRange(Te, Te) : ye < Pe.length && t.numberInputRef.setSelectionRange(ye, ye), O && O(T.replace(/[^0-9]+/g, ""), t.getCountryData(), n, T);
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
@@ -1173,8 +1173,8 @@ var Jt = function(U) {
|
|
|
1173
1173
|
var o = n.target.value.length;
|
|
1174
1174
|
n.target.setSelectionRange(0, o);
|
|
1175
1175
|
}, t.handleFlagItemClick = function(n, o) {
|
|
1176
|
-
var d = t.state.selectedCountry, E = t.state.onlyCountries.find(function(
|
|
1177
|
-
return
|
|
1176
|
+
var d = t.state.selectedCountry, E = t.state.onlyCountries.find(function(K) {
|
|
1177
|
+
return K == n;
|
|
1178
1178
|
});
|
|
1179
1179
|
if (E) {
|
|
1180
1180
|
var O = t.state.formattedNumber.replace(" ", "").replace("(", "").replace(")", "").replace("-", ""), T = O.length > 1 ? O.replace(d.dialCode, E.dialCode) : E.dialCode, A = t.formatNumber(T.replace(/\D/g, ""), E);
|
|
@@ -1241,8 +1241,8 @@ var Jt = function(U) {
|
|
|
1241
1241
|
var o = n.currentTarget.value, d = t.state, E = d.preferredCountries, O = d.selectedCountry, T = 0;
|
|
1242
1242
|
if (o === "" && O) {
|
|
1243
1243
|
var A = t.state.onlyCountries;
|
|
1244
|
-
T = t.concatPreferredCountries(E, A).findIndex(function(
|
|
1245
|
-
return
|
|
1244
|
+
T = t.concatPreferredCountries(E, A).findIndex(function(K) {
|
|
1245
|
+
return K == O;
|
|
1246
1246
|
}), setTimeout(function() {
|
|
1247
1247
|
return t.scrollTo(t.getElement(T));
|
|
1248
1248
|
}, 100);
|
|
@@ -1262,7 +1262,7 @@ var Jt = function(U) {
|
|
|
1262
1262
|
return h.toLowerCase().includes(A);
|
|
1263
1263
|
});
|
|
1264
1264
|
});
|
|
1265
|
-
var
|
|
1265
|
+
var K = T.filter(function(S) {
|
|
1266
1266
|
var F = S.iso2;
|
|
1267
1267
|
return ["".concat(F)].some(function(h) {
|
|
1268
1268
|
return h.toLowerCase().includes(A);
|
|
@@ -1273,23 +1273,23 @@ var Jt = function(U) {
|
|
|
1273
1273
|
return v.toLowerCase().includes(A);
|
|
1274
1274
|
});
|
|
1275
1275
|
});
|
|
1276
|
-
return t.scrollToTop(), D(new Set([].concat(
|
|
1276
|
+
return t.scrollToTop(), D(new Set([].concat(K, p)));
|
|
1277
1277
|
}
|
|
1278
1278
|
return T;
|
|
1279
1279
|
}, t.getCountryDropdownList = function() {
|
|
1280
|
-
var n = t.state, o = n.preferredCountries, d = n.highlightCountryIndex, E = n.showDropdown, O = n.searchValue, T = t.props, A = T.disableDropdown,
|
|
1281
|
-
var He = d ===
|
|
1280
|
+
var n = t.state, o = n.preferredCountries, d = n.highlightCountryIndex, E = n.showDropdown, O = n.searchValue, T = t.props, A = T.disableDropdown, K = T.prefix, p = t.props, S = p.enableSearch, F = p.searchNotFound, h = p.disableSearchIcon, v = p.searchClass, te = p.searchStyle, je = p.searchPlaceholder, ye = p.autocompleteSearch, Te = t.getSearchFilteredCountries().map(function(pe, Ke) {
|
|
1281
|
+
var He = d === Ke, dt = q()({ country: !0, preferred: pe.iso2 === "us" || pe.iso2 === "gb", active: pe.iso2 === "us", highlight: He }), Je = "flag ".concat(pe.iso2);
|
|
1282
1282
|
return g.a.createElement("li", Object.assign({ ref: function(Ze) {
|
|
1283
|
-
return t["flag_no_".concat(
|
|
1284
|
-
}, key: "flag_no_".concat(
|
|
1283
|
+
return t["flag_no_".concat(Ke)] = Ze;
|
|
1284
|
+
}, key: "flag_no_".concat(Ke), "data-flag-key": "flag_no_".concat(Ke), className: dt, "data-dial-code": "1", tabIndex: A ? "-1" : "0", "data-country-code": pe.iso2, onClick: function(Ze) {
|
|
1285
1285
|
return t.handleFlagItemClick(pe, Ze);
|
|
1286
|
-
}, role: "option" }, He ? { "aria-selected": !0 } : {}), g.a.createElement("div", { className: Je }), g.a.createElement("span", { className: "country-name" }, t.getDropdownCountryName(pe)), g.a.createElement("span", { className: "dial-code" }, pe.format ? t.formatNumber(pe.dialCode, pe) :
|
|
1286
|
+
}, role: "option" }, He ? { "aria-selected": !0 } : {}), g.a.createElement("div", { className: Je }), g.a.createElement("span", { className: "country-name" }, t.getDropdownCountryName(pe)), g.a.createElement("span", { className: "dial-code" }, pe.format ? t.formatNumber(pe.dialCode, pe) : K + pe.dialCode));
|
|
1287
1287
|
}), Pe = g.a.createElement("li", { key: "dashes", className: "divider" });
|
|
1288
1288
|
o.length > 0 && (!S || S && !O.trim()) && Te.splice(o.length, 0, Pe);
|
|
1289
|
-
var $e =
|
|
1289
|
+
var $e = q()(u({ "country-list": !0, hide: !E }, t.props.dropdownClass, !0));
|
|
1290
1290
|
return g.a.createElement("ul", { ref: function(pe) {
|
|
1291
1291
|
return !S && pe && pe.focus(), t.dropdownRef = pe;
|
|
1292
|
-
}, className: $e, style: t.props.dropdownStyle, role: "listbox", tabIndex: "0" }, S && g.a.createElement("li", { className:
|
|
1292
|
+
}, className: $e, style: t.props.dropdownStyle, role: "listbox", tabIndex: "0" }, S && g.a.createElement("li", { className: q()(u({ search: !0 }, v, v)) }, !h && g.a.createElement("span", { className: q()(u({ "search-emoji": !0 }, "".concat(v, "-emoji"), v)), role: "img", "aria-label": "Magnifying glass" }, "🔎"), g.a.createElement("input", { className: q()(u({ "search-box": !0 }, "".concat(v, "-box"), v)), style: te, type: "search", placeholder: je, autoFocus: !0, autoComplete: ye ? "on" : "off", value: O, onChange: t.handleSearchChange })), Te.length > 0 ? Te : g.a.createElement("li", { className: "no-entries-message" }, g.a.createElement("span", null, F)));
|
|
1293
1293
|
};
|
|
1294
1294
|
var z, M = new fe(f.enableAreaCodes, f.enableTerritories, f.regions, f.onlyCountries, f.preferredCountries, f.excludeCountries, f.preserveOrder, f.masks, f.priority, f.areaCodes, f.localization, f.prefix, f.defaultMask, f.alwaysDefaultMask), L = M.onlyCountries, ae = M.preferredCountries, ee = M.hiddenAreaCodes, oe = f.value ? f.value.replace(/\D/g, "") : "";
|
|
1295
1295
|
z = f.disableInitialCountryGuess ? 0 : oe.length > 1 ? t.guessSelectedCountry(oe.substring(0, 6), f.country, L, ee) || 0 : f.country && L.find(function(n) {
|
|
@@ -1334,17 +1334,17 @@ var Jt = function(U) {
|
|
|
1334
1334
|
var T = d(se.replace(/\D/g, ""), ee, ae, de);
|
|
1335
1335
|
typeof T == "boolean" ? (t = T) === !1 && (z = E) : (t = !1, z = T);
|
|
1336
1336
|
}
|
|
1337
|
-
var A =
|
|
1337
|
+
var A = q()((u(f = {}, this.props.containerClass, !0), u(f, "react-tel-input", !0), f)), K = q()({ arrow: !0, up: oe }), p = q()(u({ "form-control": !0, "invalid-number": !t, open: oe }, this.props.inputClass, !0)), S = q()({ "selected-flag": !0, open: oe }), F = q()(u({ "flag-dropdown": !0, "invalid-number": !t, open: oe }, this.props.buttonClass, !0)), h = "flag ".concat(ee && ee.iso2);
|
|
1338
1338
|
return g.a.createElement("div", { className: "".concat(A, " ").concat(this.props.className), style: this.props.style || this.props.containerStyle, onKeyDown: this.handleKeydown }, O && g.a.createElement("div", { className: "special-label" }, O), z && g.a.createElement("div", { className: "invalid-number-message" }, z), g.a.createElement("input", Object.assign({ className: p, style: this.props.inputStyle, onChange: this.handleInput, onClick: this.handleInputClick, onDoubleClick: this.handleDoubleClick, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onCopy: this.handleInputCopy, value: se, onKeyDown: this.handleInputKeyDown, placeholder: this.props.placeholder, disabled: this.props.disabled, type: "tel" }, this.props.inputProps, { ref: function(v) {
|
|
1339
1339
|
M.numberInputRef = v, typeof M.props.inputProps.ref == "function" ? M.props.inputProps.ref(v) : typeof M.props.inputProps.ref == "object" && (M.props.inputProps.ref.current = v);
|
|
1340
1340
|
} })), g.a.createElement("div", { className: F, style: this.props.buttonStyle, ref: function(v) {
|
|
1341
1341
|
return M.dropdownContainerRef = v;
|
|
1342
|
-
} }, o ? g.a.createElement("div", { className: S }, o) : g.a.createElement("div", { onClick: n ? void 0 : this.handleFlagDropdownClick, className: S, title: ee ? "".concat(ee.localName || ee.name, ": + ").concat(ee.dialCode) : "", tabIndex: n ? "-1" : "0", role: "button", "aria-haspopup": "listbox", "aria-expanded": !!oe || void 0 }, g.a.createElement("div", { className: h }, !n && g.a.createElement("div", { className:
|
|
1342
|
+
} }, o ? g.a.createElement("div", { className: S }, o) : g.a.createElement("div", { onClick: n ? void 0 : this.handleFlagDropdownClick, className: S, title: ee ? "".concat(ee.localName || ee.name, ": + ").concat(ee.dialCode) : "", tabIndex: n ? "-1" : "0", role: "button", "aria-haspopup": "listbox", "aria-expanded": !!oe || void 0 }, g.a.createElement("div", { className: h }, !n && g.a.createElement("div", { className: K }))), oe && this.getCountryDropdownList()));
|
|
1343
1343
|
} }]) && Se(N.prototype, P), c;
|
|
1344
1344
|
}(g.a.Component);
|
|
1345
1345
|
Ae.defaultProps = { country: "", value: "", onlyCountries: [], preferredCountries: [], excludeCountries: [], placeholder: "1 (702) 123-4567", searchPlaceholder: "search", searchNotFound: "No entries to show", flagsImagePath: "./flags.png", disabled: !1, containerStyle: {}, inputStyle: {}, buttonStyle: {}, dropdownStyle: {}, searchStyle: {}, containerClass: "", inputClass: "", buttonClass: "", dropdownClass: "", searchClass: "", className: "", autoFormat: !0, enableAreaCodes: !1, enableTerritories: !1, disableCountryCode: !1, disableDropdown: !1, enableLongNumbers: !1, countryCodeEditable: !0, enableSearch: !1, disableSearchIcon: !1, disableInitialCountryGuess: !1, disableCountryGuess: !1, regions: "", inputProps: {}, localization: {}, masks: null, priority: null, areaCodes: null, preserveOrder: [], defaultMask: "... ... ... ... ..", alwaysDefaultMask: !1, prefix: "+", copyNumbersOnly: !0, renderStringAsFlag: "", autocompleteSearch: !1, jumpCursorToEnd: !0, enableAreaCodeStretch: !1, enableClickOutside: !0, showDropdown: !1, isValid: !0, defaultErrorMessage: "", specialLabel: "Phone", onEnterKeyPress: null, keys: { UP: 38, DOWN: 40, RIGHT: 39, LEFT: 37, ENTER: 13, ESC: 27, PLUS: 43, A: 65, Z: 90, SPACE: 32, TAB: 9 } }, Z.default = Ae;
|
|
1346
1346
|
}]);
|
|
1347
|
-
const At = /* @__PURE__ */
|
|
1347
|
+
const At = /* @__PURE__ */ Kt(Jt);
|
|
1348
1348
|
function tr({
|
|
1349
1349
|
name: U,
|
|
1350
1350
|
className: Z = "",
|
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-GQl0OyJB.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
|
-
c as OutlookConnect,
|
|
15
|
-
p as PaymentForm,
|
|
16
|
-
v as Router,
|
|
17
|
-
S as SelectedCalendarsSettings,
|
|
18
|
-
T as StripeConnect,
|
|
19
|
-
m as useAddSelectedCalendar,
|
|
20
|
-
y as useAtomsContext,
|
|
21
|
-
E as useBooking,
|
|
22
|
-
b 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
|
-
D as useEventTypeById,
|
|
30
|
-
I as useEventTypes,
|
|
31
|
-
R as useIsPlatform,
|
|
32
|
-
x as useMe,
|
|
33
|
-
z 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
|
};
|