@calcom/atoms 1.0.114 → 1.1.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 +21 -0
- package/dist/{AddressInput-VF2BcYWB.js → AddressInput-6TIOefqU.js} +3 -3
- package/dist/{AlbyPriceComponent-I4VGjeFQ.js → AlbyPriceComponent-zZlkVZTy.js} +29 -29
- package/dist/{PhoneInput-fAGB7rRq.js → PhoneInput-_EJl7Rqu.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-4kA2xtz7.js +1957 -0
- package/dist/index-ESVL5ZDq.js +82852 -0
- package/dist/{index-oT1fC7Ad.js → index-_P-UqUYu.js} +1 -1
- package/dist/packages/dayjs/locales.d.ts +1 -0
- package/dist/packages/dayjs/locales.d.ts.map +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 -8
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +4 -0
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +9 -8
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts +2 -1
- package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +5 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +18 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +22 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +18 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +14 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +4 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts +5 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts +1 -1
- package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +4 -0
- 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/scheduleSMSReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +1 -2
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts +0 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/Locations.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts +9 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
- package/dist/packages/features/shell/navigation/NavigationItem.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +14 -13
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -2
- 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/event-types/hooks/useAtomEventTypeById.d.ts +4 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/usePlatformTabsNavigations.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +2 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +6 -0
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -32
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/repositories.d.ts +9 -0
- package/dist/packages/platform/libraries/repositories.d.ts.map +1 -0
- package/dist/packages/platform/libraries/slots.d.ts +2 -2
- package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +11 -2
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts +2 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts +2 -2
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts +4 -3
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +4 -0
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
- package/dist/packages/prisma/zod/deployment.d.ts +3 -0
- package/dist/packages/prisma/zod/deployment.d.ts.map +1 -1
- package/dist/packages/prisma/zod/destinationcalendar.d.ts +6 -0
- package/dist/packages/prisma/zod/destinationcalendar.d.ts.map +1 -1
- package/dist/packages/prisma/zod/role.d.ts +3 -0
- package/dist/packages/prisma/zod/role.d.ts.map +1 -1
- package/dist/packages/prisma/zod/selectedcalendar.d.ts +6 -0
- package/dist/packages/prisma/zod/selectedcalendar.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +316 -3
- 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/server/routers/viewer/slots/getSchedule.handler.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/reserveSlot.handler.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +50 -2027
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/globals.min.css +3 -16
- package/package.json +6 -3
- package/dist/AppCard-pDC8U-yB.js +0 -281
- package/dist/AppListCardPlatformWrapper-loLunYWd.js +0 -9
- package/dist/AppListCardWebWrapper-D4Jf6GP2.js +0 -74
- package/dist/AppSettingsInterface-IXKzuu1x.js +0 -23
- package/dist/AppSettingsInterface-lziyfc4I.js +0 -29
- package/dist/AppSettingsInterface-ojk6jWF7.js +0 -75
- package/dist/DateRangePicker-IYx0MUpg.js +0 -2405
- package/dist/EventTypeAppCardInterface--kWvVigG.js +0 -51
- package/dist/EventTypeAppCardInterface-1KTHO3G7.js +0 -33
- package/dist/EventTypeAppCardInterface-7lVRi0Xk.js +0 -34
- package/dist/EventTypeAppCardInterface-9XBZQdMQ.js +0 -24
- package/dist/EventTypeAppCardInterface-AZo1pqDp.js +0 -41
- package/dist/EventTypeAppCardInterface-DZ4D9D3W.js +0 -24
- package/dist/EventTypeAppCardInterface-EBFdClZD.js +0 -696
- package/dist/EventTypeAppCardInterface-FZryR-1y.js +0 -49
- package/dist/EventTypeAppCardInterface-KDF7jyPv.js +0 -51
- package/dist/EventTypeAppCardInterface-N3dSZHui.js +0 -24
- package/dist/EventTypeAppCardInterface-O9SdGwyA.js +0 -86
- package/dist/EventTypeAppCardInterface-Qw1evpmE.js +0 -32
- package/dist/EventTypeAppCardInterface-Z5nEUe-1.js +0 -24
- package/dist/EventTypeAppCardInterface-a64s2iWs.js +0 -34
- package/dist/EventTypeAppCardInterface-b8raVgeq.js +0 -31
- package/dist/EventTypeAppCardInterface-eaJodJji.js +0 -42
- package/dist/EventTypeAppCardInterface-k3Xp04ki.js +0 -34
- package/dist/EventTypeAppCardInterface-mfDCf5dr.js +0 -34
- package/dist/EventTypeAppCardInterface-pHUkN5bu.js +0 -41
- package/dist/EventTypeAppCardInterface-pOYWJtzY.js +0 -34
- package/dist/EventTypeAppCardInterface-rDg3IChY.js +0 -34
- package/dist/EventTypeAppCardInterface-rgWOAhB8.js +0 -24
- package/dist/EventTypeAppCardInterface-uzfRpOdc.js +0 -32
- package/dist/EventTypeAppCardInterface-v8qGKcOE.js +0 -34
- package/dist/EventTypeAppCardInterface-xHb-ACiF.js +0 -42
- package/dist/EventTypeAppCardInterface-zHnc4Mbg.js +0 -39
- package/dist/EventTypeAppSettingsInterface-3-SZIQ-K.js +0 -25
- package/dist/EventTypeAppSettingsInterface-969looOL.js +0 -23
- package/dist/EventTypeAppSettingsInterface-98MZ7He7.js +0 -120
- package/dist/EventTypeAppSettingsInterface-9GodkYYn.js +0 -42
- package/dist/EventTypeAppSettingsInterface-CWav7rpk.js +0 -43
- package/dist/EventTypeAppSettingsInterface-VEHCbWtC.js +0 -23
- package/dist/EventTypeAppSettingsInterface-bOoXGu5X.js +0 -221
- package/dist/EventTypeAppSettingsInterface-bUpznL_v.js +0 -48
- package/dist/EventTypeAppSettingsInterface-faJm9V_Q.js +0 -24
- package/dist/EventTypeAppSettingsInterface-g8GmoGC1.js +0 -78
- package/dist/EventTypeAppSettingsInterface-om-CMCRh.js +0 -72
- package/dist/EventTypeAppSettingsInterface-tcEkCwRz.js +0 -298
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-NUfFF7w2.js +0 -14
- package/dist/InstallAppButton-kqm9kHNr.js +0 -58
- package/dist/InstallAppButton-mOs3Tny1.js +0 -14
- package/dist/StripePaymentForm-zcleIq7N.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-3rF5prT9.js +0 -518
- package/dist/index-RiT9rcSU.js +0 -28
- package/dist/index-Swazt2OL.js +0 -156147
- package/dist/useIsAppEnabled-Hz7V9bEN.js +0 -18
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as m, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { useState as o, useEffect as _ } from "react";
|
|
3
|
-
import { c as i, i as k, a as x } from "./currencyOptions-kannG2hu.js";
|
|
4
|
-
import { z as r, q as E, x as S, f as F, G as q, J as T, S as O } from "./index-Swazt2OL.js";
|
|
5
|
-
const G = ({
|
|
6
|
-
getAppData: n,
|
|
7
|
-
setAppData: t,
|
|
8
|
-
eventType: d
|
|
9
|
-
}) => {
|
|
10
|
-
var p, h;
|
|
11
|
-
const y = n("price"), a = n("currency") || i[0].value, [s, N] = o(i.find((e) => e.value === a)), [C, P] = o(
|
|
12
|
-
k(a) ? x[a] : ""
|
|
13
|
-
), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
|
|
14
|
-
label: r[0].label,
|
|
15
|
-
value: r[0].value
|
|
16
|
-
}, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), g = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
17
|
-
return _(() => {
|
|
18
|
-
v && (n("currency") || t("currency", i[0].value), n("paymentOption") || t("paymentOption", r[0].value));
|
|
19
|
-
}, []), g ? /* @__PURE__ */ l(S, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(w, { children: [
|
|
20
|
-
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
21
|
-
F,
|
|
22
|
-
{
|
|
23
|
-
label: "Price",
|
|
24
|
-
labelSrOnly: !0,
|
|
25
|
-
addOnLeading: C,
|
|
26
|
-
addOnSuffix: a,
|
|
27
|
-
step: "0.01",
|
|
28
|
-
min: "0.5",
|
|
29
|
-
type: "number",
|
|
30
|
-
required: !0,
|
|
31
|
-
className: "block w-full rounded-sm pl-2 text-sm",
|
|
32
|
-
placeholder: "Price",
|
|
33
|
-
"data-testid": "paypal-price-input",
|
|
34
|
-
onChange: (e) => {
|
|
35
|
-
t("price", q(Number(e.target.value), a)), s && t("currency", s.value);
|
|
36
|
-
},
|
|
37
|
-
value: y > 0 ? T(y, a) : void 0
|
|
38
|
-
}
|
|
39
|
-
) }),
|
|
40
|
-
/* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
|
|
41
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: c("currency") }),
|
|
42
|
-
/* @__PURE__ */ l(
|
|
43
|
-
O,
|
|
44
|
-
{
|
|
45
|
-
variant: "default",
|
|
46
|
-
"data-testid": "paypal-currency-select",
|
|
47
|
-
options: i,
|
|
48
|
-
value: s,
|
|
49
|
-
className: "text-black",
|
|
50
|
-
defaultValue: s,
|
|
51
|
-
onChange: (e) => {
|
|
52
|
-
e && (N(e), P(x[e.value]), t("currency", e.value));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ m("div", { className: "mt-4 w-60", children: [
|
|
58
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
59
|
-
/* @__PURE__ */ l(
|
|
60
|
-
O,
|
|
61
|
-
{
|
|
62
|
-
"data-testid": "paypal-payment-option-select",
|
|
63
|
-
defaultValue: u ? { ...u, label: c(u.label) } : { ...r[0], label: c(r[0].label) },
|
|
64
|
-
options: r.map((e) => ({ ...e, label: c(e.label) || e.label })),
|
|
65
|
-
onChange: (e) => {
|
|
66
|
-
e && t("paymentOption", e.value);
|
|
67
|
-
},
|
|
68
|
-
className: "mb-1 h-[38px] w-full",
|
|
69
|
-
isDisabled: b
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
] }),
|
|
73
|
-
b && f === "HOLD" && /* @__PURE__ */ l(S, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
|
|
74
|
-
] }) : null;
|
|
75
|
-
};
|
|
76
|
-
export {
|
|
77
|
-
G as default
|
|
78
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as N, useEffect as w } from "react";
|
|
3
|
-
import { q as _, V as t, x as g, f as C, O as P, S as p } from "./index-Swazt2OL.js";
|
|
4
|
-
const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
5
|
-
eventType: f,
|
|
6
|
-
getAppData: s,
|
|
7
|
-
setAppData: a
|
|
8
|
-
}) => {
|
|
9
|
-
var v, h;
|
|
10
|
-
const { t: n } = _(), i = s("price"), c = s("currency"), [r, O] = N(
|
|
11
|
-
d.find((e) => e.value === c) || d[0]
|
|
12
|
-
), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
|
|
13
|
-
label: t[0].label,
|
|
14
|
-
value: t[0].value
|
|
15
|
-
}, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), S = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
16
|
-
return w(() => {
|
|
17
|
-
!c && m && a("currency", r.value);
|
|
18
|
-
}, [c, r, a, m]), /* @__PURE__ */ l(x, { children: S ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
|
|
19
|
-
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
20
|
-
C,
|
|
21
|
-
{
|
|
22
|
-
label: "Price",
|
|
23
|
-
labelSrOnly: !0,
|
|
24
|
-
addOnLeading: /* @__PURE__ */ l(P, { className: "h-4 w-4" }),
|
|
25
|
-
addOnSuffix: r.unit || r.value,
|
|
26
|
-
type: "number",
|
|
27
|
-
required: !0,
|
|
28
|
-
className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
|
|
29
|
-
placeholder: "Price",
|
|
30
|
-
onChange: (e) => {
|
|
31
|
-
a("price", Number(e.target.value)), c && a("currency", c);
|
|
32
|
-
},
|
|
33
|
-
value: i && i > 0 ? i : void 0
|
|
34
|
-
}
|
|
35
|
-
) }),
|
|
36
|
-
/* @__PURE__ */ o("div", { className: "mt-5 w-60", children: [
|
|
37
|
-
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
38
|
-
/* @__PURE__ */ l(
|
|
39
|
-
p,
|
|
40
|
-
{
|
|
41
|
-
variant: "default",
|
|
42
|
-
options: d,
|
|
43
|
-
value: r,
|
|
44
|
-
className: "text-black",
|
|
45
|
-
defaultValue: r,
|
|
46
|
-
onChange: (e) => {
|
|
47
|
-
e && (O(e), a("currency", e.value));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] }),
|
|
52
|
-
/* @__PURE__ */ o("div", { className: "mt-2 w-60", children: [
|
|
53
|
-
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
54
|
-
/* @__PURE__ */ l(
|
|
55
|
-
p,
|
|
56
|
-
{
|
|
57
|
-
defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
|
|
58
|
-
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
59
|
-
onChange: (e) => {
|
|
60
|
-
e && a("paymentOption", e.value);
|
|
61
|
-
},
|
|
62
|
-
className: "mb-1 h-[38px] w-full",
|
|
63
|
-
isDisabled: y
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
] }),
|
|
67
|
-
y && b === "HOLD" && /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
|
|
68
|
-
] }) });
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
T as default
|
|
72
|
-
};
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as f, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { a1 as d, q as L, a2 as i, x as P, f as w, G as T, J as O, S as y, a3 as E, a4 as x, M as B, a5 as F, a6 as G } from "./index-Swazt2OL.js";
|
|
3
|
-
import { useState as K, useEffect as z } from "react";
|
|
4
|
-
const s = [
|
|
5
|
-
{ label: "United States dollar (USD)", value: "usd" },
|
|
6
|
-
{ label: "United Arab Emirates dirham (AED)", value: "aed" },
|
|
7
|
-
{ label: "Afghan afghani (AFN)", value: "afn" },
|
|
8
|
-
{ label: "Albanian lek (ALL)", value: "all" },
|
|
9
|
-
{ label: "Armenian dram (AMD)", value: "amd" },
|
|
10
|
-
{ label: "Netherlands Antillean guilder (ANG)", value: "ang" },
|
|
11
|
-
{ label: "Angolan kwanza (AOA)", value: "aoa" },
|
|
12
|
-
{ label: "Argentine peso (ARS)", value: "ars" },
|
|
13
|
-
{ label: "Australian dollar (AUD)", value: "aud" },
|
|
14
|
-
{ label: "Aruban florin (AWG)", value: "awg" },
|
|
15
|
-
{ label: "Azerbaijani manat (AZN)", value: "azn" },
|
|
16
|
-
{ label: "Bosnia and Herzegovina convertible mark (BAM)", value: "bam" },
|
|
17
|
-
{ label: "Barbadian dollar (BBD)", value: "bbd" },
|
|
18
|
-
{ label: "Bangladeshi taka (BDT)", value: "bdt" },
|
|
19
|
-
{ label: "Bulgarian lev (BGN)", value: "bgn" },
|
|
20
|
-
{ label: "Burundian franc (BIF)", value: "bif" },
|
|
21
|
-
{ label: "Bermudian dollar (BMD)", value: "bmd" },
|
|
22
|
-
{ label: "Brunei dollar (BND)", value: "bnd" },
|
|
23
|
-
{ label: "Bolivian boliviano (BOB)", value: "bob" },
|
|
24
|
-
{ label: "Brazilian real (BRL)", value: "brl" },
|
|
25
|
-
{ label: "Bahamian dollar (BSD)", value: "bsd" },
|
|
26
|
-
{ label: "Botswana pula (BWP)", value: "bwp" },
|
|
27
|
-
{ label: "Belarusian ruble (BYN)", value: "byn" },
|
|
28
|
-
{ label: "Belize dollar (BZD)", value: "bzd" },
|
|
29
|
-
{ label: "Canadian dollar (CAD)", value: "cad" },
|
|
30
|
-
{ label: "Congolese franc (CDF)", value: "cdf" },
|
|
31
|
-
{ label: "Swiss franc (CHF)", value: "chf" },
|
|
32
|
-
{ label: "Chilean peso (CLP)", value: "clp" },
|
|
33
|
-
{ label: "Chinese yuan (CNY)", value: "cny" },
|
|
34
|
-
{ label: "Colombian peso (COP)", value: "cop" },
|
|
35
|
-
{ label: "Costa Rican colón (CRC)", value: "crc" },
|
|
36
|
-
{ label: "Cape Verdean escudo (CVE)", value: "cve" },
|
|
37
|
-
{ label: "Czech koruna (CZK)", value: "czk" },
|
|
38
|
-
{ label: "Djiboutian franc (DJF)", value: "djf" },
|
|
39
|
-
{ label: "Danish krone (DKK)", value: "dkk" },
|
|
40
|
-
{ label: "Dominican peso (DOP)", value: "dop" },
|
|
41
|
-
{ label: "Algerian dinar (DZD)", value: "dzd" },
|
|
42
|
-
{ label: "Egyptian pound (EGP)", value: "egp" },
|
|
43
|
-
{ label: "Ethiopian birr (ETB)", value: "etb" },
|
|
44
|
-
{ label: "Euro (EUR)", value: "eur" },
|
|
45
|
-
{ label: "Fijian dollar (FJD)", value: "fjd" },
|
|
46
|
-
{ label: "Falkland Islands pound (FKP)", value: "fkp" },
|
|
47
|
-
{ label: "British pound sterling (GBP)", value: "gbp" },
|
|
48
|
-
{ label: "Georgian lari (GEL)", value: "gel" },
|
|
49
|
-
{ label: "Gibraltar pound (GIP)", value: "gip" },
|
|
50
|
-
{ label: "Gambian dalasi (GMD)", value: "gmd" },
|
|
51
|
-
{ label: "Guinean franc (GNF)", value: "gnf" },
|
|
52
|
-
{ label: "Guatemalan quetzal (GTQ)", value: "gtq" },
|
|
53
|
-
{ label: "Guyanese dollar (GYD)", value: "gyd" },
|
|
54
|
-
{ label: "Hong Kong dollar (HKD)", value: "hkd" },
|
|
55
|
-
{ label: "Honduran lempira (HNL)", value: "hnl" },
|
|
56
|
-
{ label: "Haitian gourde (HTG)", value: "htg" },
|
|
57
|
-
{ label: "Hungarian forint (HUF)", value: "huf" },
|
|
58
|
-
{ label: "Indonesian rupiah (IDR)", value: "idr" },
|
|
59
|
-
{ label: "Israeli new shekel (ILS)", value: "ils" },
|
|
60
|
-
{ label: "Indian rupee (INR)", value: "inr" },
|
|
61
|
-
{ label: "Icelandic króna (ISK)", value: "isk" },
|
|
62
|
-
{ label: "Jamaican dollar (JMD)", value: "jmd" },
|
|
63
|
-
{ label: "Japanese yen (JPY)", value: "jpy" },
|
|
64
|
-
{ label: "Kenyan shilling (KES)", value: "kes" },
|
|
65
|
-
{ label: "Kyrgyzstani som (KGS)", value: "kgs" },
|
|
66
|
-
{ label: "Cambodian riel (KHR)", value: "khr" },
|
|
67
|
-
{ label: "Comorian franc (KMF)", value: "kmf" },
|
|
68
|
-
{ label: "South Korean won (KRW)", value: "krw" },
|
|
69
|
-
{ label: "Cayman Islands dollar (KYD)", value: "kyd" },
|
|
70
|
-
{ label: "Kazakhstani tenge (KZT)", value: "kzt" },
|
|
71
|
-
{ label: "Laotian kip (LAK)", value: "lak" },
|
|
72
|
-
{ label: "Lebanese pound (LBP)", value: "lbp" },
|
|
73
|
-
{ label: "Sri Lankan rupee (LKR)", value: "lkr" },
|
|
74
|
-
{ label: "Liberian dollar (LRD)", value: "lrd" },
|
|
75
|
-
{ label: "Lesotho loti (LSL)", value: "lsl" },
|
|
76
|
-
{ label: "Moroccan dirham (MAD)", value: "mad" },
|
|
77
|
-
{ label: "Moldovan leu (MDL)", value: "mdl" },
|
|
78
|
-
{ label: "Malagasy ariary (MGA)", value: "mga" },
|
|
79
|
-
{ label: "Macedonian denar (MKD)", value: "mkd" },
|
|
80
|
-
{ label: "Myanmar kyat (MMK)", value: "mmk" },
|
|
81
|
-
{ label: "Mongolian tögrög (MNT)", value: "mnt" },
|
|
82
|
-
{ label: "Macanese pataca (MOP)", value: "mop" },
|
|
83
|
-
{ label: "Mauritian rupee (MUR)", value: "mur" },
|
|
84
|
-
{ label: "Maldivian rufiyaa (MVR)", value: "mvr" },
|
|
85
|
-
{ label: "Malawian kwacha (MWK)", value: "mwk" },
|
|
86
|
-
{ label: "Mexican peso (MXN)", value: "mxn" },
|
|
87
|
-
{ label: "Malaysian ringgit (MYR)", value: "myr" },
|
|
88
|
-
{ label: "Mozambican metical (MZN)", value: "mzn" },
|
|
89
|
-
{ label: "Namibian dollar (NAD)", value: "nad" },
|
|
90
|
-
{ label: "Nigerian naira (NGN)", value: "ngn" },
|
|
91
|
-
{ label: "Nicaraguan córdoba (NIO)", value: "nio" },
|
|
92
|
-
{ label: "Norwegian krone (NOK)", value: "nok" },
|
|
93
|
-
{ label: "Nepalese rupee (NPR)", value: "npr" },
|
|
94
|
-
{ label: "New Zealand dollar (NZD)", value: "nzd" },
|
|
95
|
-
{ label: "Panamanian balboa (PAB)", value: "pab" },
|
|
96
|
-
{ label: "Peruvian sol (PEN)", value: "pen" },
|
|
97
|
-
{ label: "Papua New Guinean kina (PGK)", value: "pgk" },
|
|
98
|
-
{ label: "Philippine peso (PHP)", value: "php" },
|
|
99
|
-
{ label: "Pakistani rupee (PKR)", value: "pkr" },
|
|
100
|
-
{ label: "Polish złoty (PLN)", value: "pln" },
|
|
101
|
-
{ label: "Paraguayan guaraní (PYG)", value: "pyg" },
|
|
102
|
-
{ label: "Qatari riyal (QAR)", value: "qar" },
|
|
103
|
-
{ label: "Romanian leu (RON)", value: "ron" },
|
|
104
|
-
{ label: "Serbian dinar (RSD)", value: "rsd" },
|
|
105
|
-
{ label: "Russian ruble (RUB)", value: "rub" },
|
|
106
|
-
{ label: "Rwandan franc (RWF)", value: "rwf" },
|
|
107
|
-
{ label: "Saudi riyal (SAR)", value: "sar" },
|
|
108
|
-
{ label: "Solomon Islands dollar (SBD)", value: "sbd" },
|
|
109
|
-
{ label: "Seychellois rupee (SCR)", value: "scr" },
|
|
110
|
-
{ label: "Swedish krona (SEK)", value: "sek" },
|
|
111
|
-
{ label: "Singapore dollar (SGD)", value: "sgd" },
|
|
112
|
-
{ label: "Saint Helena pound (SHP)", value: "shp" },
|
|
113
|
-
{ label: "Sierra Leonean leone (SLE)", value: "sle" },
|
|
114
|
-
{ label: "Somali shilling (SOS)", value: "sos" },
|
|
115
|
-
{ label: "Surinamese dollar (SRD)", value: "srd" },
|
|
116
|
-
{ label: "São Tomé and Príncipe dobra (STD)", value: "std" },
|
|
117
|
-
{ label: "Swazi lilangeni (SZL)", value: "szl" },
|
|
118
|
-
{ label: "Thai baht (THB)", value: "thb" },
|
|
119
|
-
{ label: "Tajikistani somoni (TJS)", value: "tjs" },
|
|
120
|
-
{ label: "Tongan paʻanga (TOP)", value: "top" },
|
|
121
|
-
{ label: "Turkish lira (TRY)", value: "try" },
|
|
122
|
-
{ label: "Trinidad and Tobago dollar (TTD)", value: "ttd" },
|
|
123
|
-
{ label: "New Taiwan dollar (TWD)", value: "twd" },
|
|
124
|
-
{ label: "Tanzanian shilling (TZS)", value: "tzs" },
|
|
125
|
-
{ label: "Ukrainian hryvnia (UAH)", value: "uah" },
|
|
126
|
-
{ label: "Ugandan shilling (UGX)", value: "ugx" },
|
|
127
|
-
{ label: "Uruguayan peso (UYU)", value: "uyu" },
|
|
128
|
-
{ label: "Uzbekistan som (UZS)", value: "uzs" },
|
|
129
|
-
{ label: "Vietnamese đồng (VND)", value: "vnd" },
|
|
130
|
-
{ label: "Vanuatu vatu (VUV)", value: "vuv" },
|
|
131
|
-
{ label: "Samoan tala (WST)", value: "wst" },
|
|
132
|
-
{ label: "Central African CFA franc (XAF)", value: "xaf" },
|
|
133
|
-
{ label: "East Caribbean dollar (XCD)", value: "xcd" },
|
|
134
|
-
{ label: "West African CFA franc (XOF)", value: "xof" },
|
|
135
|
-
{ label: "CFP franc (XPF)", value: "xpf" },
|
|
136
|
-
{ label: "Yemeni rial (YER)", value: "yer" },
|
|
137
|
-
{ label: "South African rand (ZAR)", value: "zar" },
|
|
138
|
-
{ label: "Zambian kwacha (ZMW)", value: "zmw" }
|
|
139
|
-
], V = ({
|
|
140
|
-
getAppData: r,
|
|
141
|
-
setAppData: e,
|
|
142
|
-
disabled: b,
|
|
143
|
-
eventType: h
|
|
144
|
-
}) => {
|
|
145
|
-
var k;
|
|
146
|
-
const g = r("price"), o = r("currency") || s[0].value, [t, D] = K(
|
|
147
|
-
s.find((a) => a.value === o) || {
|
|
148
|
-
label: s[0].label,
|
|
149
|
-
value: s[0].value
|
|
150
|
-
}
|
|
151
|
-
), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, M = (a, R) => 0 .toLocaleString(a, {
|
|
152
|
-
style: "currency",
|
|
153
|
-
currency: R,
|
|
154
|
-
minimumFractionDigits: 0,
|
|
155
|
-
maximumFractionDigits: 0
|
|
156
|
-
}).replace(/\d/g, "").trim();
|
|
157
|
-
z(() => {
|
|
158
|
-
m && (r("currency") || e("currency", s[0].value), r("paymentOption") || e("paymentOption", d[0].value)), r("refundPolicy") || e("refundPolicy", i.NEVER);
|
|
159
|
-
}, [m, r, e]);
|
|
160
|
-
const C = [
|
|
161
|
-
{ value: 0, label: n("business_days") },
|
|
162
|
-
{ value: 1, label: n("calendar_days") }
|
|
163
|
-
];
|
|
164
|
-
return /* @__PURE__ */ u(f, { children: [
|
|
165
|
-
N && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }),
|
|
166
|
-
!N && m && /* @__PURE__ */ u(f, { children: [
|
|
167
|
-
/* @__PURE__ */ l("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ l(
|
|
168
|
-
w,
|
|
169
|
-
{
|
|
170
|
-
"data-testid": "stripe-price-input",
|
|
171
|
-
label: n("price"),
|
|
172
|
-
className: "h-[38px]",
|
|
173
|
-
addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? M("en", t.value) : "" }),
|
|
174
|
-
addOnSuffix: o.toUpperCase(),
|
|
175
|
-
addOnClassname: "h-[38px]",
|
|
176
|
-
step: "0.01",
|
|
177
|
-
min: "0.5",
|
|
178
|
-
type: "number",
|
|
179
|
-
required: !0,
|
|
180
|
-
placeholder: "Price",
|
|
181
|
-
disabled: b,
|
|
182
|
-
onChange: (a) => {
|
|
183
|
-
e("price", T(Number(a.target.value), o));
|
|
184
|
-
},
|
|
185
|
-
value: g > 0 ? O(g, o) : void 0
|
|
186
|
-
}
|
|
187
|
-
) }),
|
|
188
|
-
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
189
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
190
|
-
/* @__PURE__ */ l(
|
|
191
|
-
y,
|
|
192
|
-
{
|
|
193
|
-
"data-testid": "stripe-currency-select",
|
|
194
|
-
variant: "default",
|
|
195
|
-
options: s,
|
|
196
|
-
innerClassNames: {
|
|
197
|
-
input: "stripe-currency-input"
|
|
198
|
-
},
|
|
199
|
-
value: t,
|
|
200
|
-
className: "text-black",
|
|
201
|
-
defaultValue: t,
|
|
202
|
-
onChange: (a) => {
|
|
203
|
-
a && (D(a), e("currency", a.value));
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
] }),
|
|
208
|
-
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
209
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("payment_option") }),
|
|
210
|
-
/* @__PURE__ */ l(
|
|
211
|
-
y,
|
|
212
|
-
{
|
|
213
|
-
"data-testid": "stripe-payment-option-select",
|
|
214
|
-
defaultValue: c ? { ...c, label: n(c.label) } : { ...d[0], label: n(d[0].label) },
|
|
215
|
-
options: d.map((a) => ({ ...a, label: n(a.label) || a.label })),
|
|
216
|
-
onChange: (a) => {
|
|
217
|
-
a && (e("paymentOption", a.value), a.value === "HOLD" && (e("refundPolicy", i.NEVER), e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0)));
|
|
218
|
-
},
|
|
219
|
-
className: "mb-1 h-[38px] w-full",
|
|
220
|
-
isDisabled: S || b
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
] }),
|
|
224
|
-
S && v === "HOLD" && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") }),
|
|
225
|
-
v !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
|
|
226
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", children: n("refund_policy") }),
|
|
227
|
-
/* @__PURE__ */ u(
|
|
228
|
-
E,
|
|
229
|
-
{
|
|
230
|
-
disabled: b || v === "HOLD",
|
|
231
|
-
defaultValue: "never",
|
|
232
|
-
className: "flex flex-col space-y-2",
|
|
233
|
-
value: r("refundPolicy"),
|
|
234
|
-
onValueChange: (a) => {
|
|
235
|
-
e("refundPolicy", a), a !== i.DAYS && (e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0));
|
|
236
|
-
},
|
|
237
|
-
children: [
|
|
238
|
-
/* @__PURE__ */ l(x, { className: "w-fit", value: i.ALWAYS, label: n("always"), id: "always" }),
|
|
239
|
-
/* @__PURE__ */ l(x, { className: "w-fit", value: i.NEVER, label: n("never"), id: "never" }),
|
|
240
|
-
/* @__PURE__ */ u("div", { className: B("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
|
|
241
|
-
/* @__PURE__ */ l(
|
|
242
|
-
F,
|
|
243
|
-
{
|
|
244
|
-
className: "min-w-4 bg-default border-default flex h-4 w-4 cursor-pointer items-center rounded-full border focus:border-2 focus:outline-none ltr:mr-2 rtl:ml-2",
|
|
245
|
-
value: "days",
|
|
246
|
-
id: "days",
|
|
247
|
-
children: /* @__PURE__ */ l(G, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
|
|
248
|
-
}
|
|
249
|
-
),
|
|
250
|
-
/* @__PURE__ */ u("div", { className: "flex items-center", children: [
|
|
251
|
-
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
252
|
-
" ",
|
|
253
|
-
n("if_cancelled")
|
|
254
|
-
] }),
|
|
255
|
-
/* @__PURE__ */ l(
|
|
256
|
-
w,
|
|
257
|
-
{
|
|
258
|
-
labelSrOnly: !0,
|
|
259
|
-
type: "number",
|
|
260
|
-
className: B(
|
|
261
|
-
"border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
|
|
262
|
-
),
|
|
263
|
-
placeholder: "2",
|
|
264
|
-
disabled: b,
|
|
265
|
-
min: 0,
|
|
266
|
-
defaultValue: r("refundDaysCount"),
|
|
267
|
-
required: r("refundPolicy") === i.DAYS,
|
|
268
|
-
value: r("refundDaysCount") ?? "",
|
|
269
|
-
onChange: (a) => e("refundDaysCount", parseInt(a.currentTarget.value))
|
|
270
|
-
}
|
|
271
|
-
),
|
|
272
|
-
/* @__PURE__ */ l(
|
|
273
|
-
y,
|
|
274
|
-
{
|
|
275
|
-
options: C,
|
|
276
|
-
isSearchable: !1,
|
|
277
|
-
isDisabled: b,
|
|
278
|
-
onChange: (a) => e("refundCountCalendarDays", (a == null ? void 0 : a.value) === 1),
|
|
279
|
-
value: p(),
|
|
280
|
-
defaultValue: p()
|
|
281
|
-
}
|
|
282
|
-
),
|
|
283
|
-
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
284
|
-
" ",
|
|
285
|
-
n("before")
|
|
286
|
-
] })
|
|
287
|
-
] })
|
|
288
|
-
] })
|
|
289
|
-
]
|
|
290
|
-
}
|
|
291
|
-
)
|
|
292
|
-
] })
|
|
293
|
-
] })
|
|
294
|
-
] });
|
|
295
|
-
};
|
|
296
|
-
export {
|
|
297
|
-
V as default
|
|
298
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as i, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as s } from "react";
|
|
3
|
-
function f(n) {
|
|
4
|
-
const o = async () => {
|
|
5
|
-
const t = await fetch("/api/integrations/vital/token", {
|
|
6
|
-
method: "POST",
|
|
7
|
-
body: JSON.stringify({}),
|
|
8
|
-
headers: {
|
|
9
|
-
"Content-Type": "application/json"
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
if (!t.ok)
|
|
13
|
-
throw new Error("Failed to get link token");
|
|
14
|
-
return await t.json();
|
|
15
|
-
}, [r, e] = s(!1);
|
|
16
|
-
return /* @__PURE__ */ i(a, { children: n.render({
|
|
17
|
-
onClick() {
|
|
18
|
-
e(!0), o().then((t) => {
|
|
19
|
-
e(!1), window.open(`${t.url}&token=${t.token}`, "_self");
|
|
20
|
-
}).catch((t) => {
|
|
21
|
-
e(!1), console.error(t);
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
loading: r
|
|
25
|
-
}) });
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
f as default
|
|
29
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { u as o } from "./index-Swazt2OL.js";
|
|
3
|
-
function u(t) {
|
|
4
|
-
const n = o("exchange2016_calendar");
|
|
5
|
-
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
|
-
onClick() {
|
|
7
|
-
n.mutate("");
|
|
8
|
-
},
|
|
9
|
-
loading: n.isPending
|
|
10
|
-
}) });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
u as default
|
|
14
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, Fragment as l, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { useState as p } from "react";
|
|
3
|
-
import { u as d, af as E, W as g } from "./index-Swazt2OL.js";
|
|
4
|
-
var s = /* @__PURE__ */ ((n) => (n.ACCOUNTS_STEP = "accounts", n.EVENT_TYPES_STEP = "event-types", n.CONFIGURE_STEP = "configure", n))(s || {}), i = function(n) {
|
|
5
|
-
switch (typeof n) {
|
|
6
|
-
case "string":
|
|
7
|
-
return n;
|
|
8
|
-
case "boolean":
|
|
9
|
-
return n ? "true" : "false";
|
|
10
|
-
case "number":
|
|
11
|
-
return isFinite(n) ? n : "";
|
|
12
|
-
default:
|
|
13
|
-
return "";
|
|
14
|
-
}
|
|
15
|
-
}, y = function(n, t, e, o) {
|
|
16
|
-
return t = t || "&", e = e || "=", n === null && (n = void 0), typeof n == "object" ? Object.keys(n).map(function(r) {
|
|
17
|
-
var a = encodeURIComponent(i(r)) + e;
|
|
18
|
-
return Array.isArray(n[r]) ? n[r].map(function(c) {
|
|
19
|
-
return a + encodeURIComponent(i(c));
|
|
20
|
-
}).join(t) : a + encodeURIComponent(i(n[r]));
|
|
21
|
-
}).filter(Boolean).join(t) : o ? encodeURIComponent(i(o)) + e + encodeURIComponent(i(n)) : "";
|
|
22
|
-
}, u;
|
|
23
|
-
u = y;
|
|
24
|
-
const C = ({
|
|
25
|
-
slug: n,
|
|
26
|
-
step: t,
|
|
27
|
-
teamId: e
|
|
28
|
-
}) => {
|
|
29
|
-
const o = { slug: n };
|
|
30
|
-
e && (o.teamId = e);
|
|
31
|
-
const r = u(o);
|
|
32
|
-
return `/apps/installation/${t}?${r}`;
|
|
33
|
-
};
|
|
34
|
-
function I(n) {
|
|
35
|
-
const [t, e] = p(!1), o = d(null), r = () => {
|
|
36
|
-
o.mutate({
|
|
37
|
-
type: "office365_video",
|
|
38
|
-
variant: "conferencing",
|
|
39
|
-
slug: "msteams",
|
|
40
|
-
returnTo: g + C({
|
|
41
|
-
slug: "msteams",
|
|
42
|
-
step: s.EVENT_TYPES_STEP
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ f(l, { children: [
|
|
47
|
-
n.render({
|
|
48
|
-
onClick() {
|
|
49
|
-
e(!0);
|
|
50
|
-
},
|
|
51
|
-
disabled: t
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ m(E, { open: t, onOpenChange: e, handleSubmit: r })
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
I as default
|
|
58
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { u as o } from "./index-Swazt2OL.js";
|
|
3
|
-
function u(t) {
|
|
4
|
-
const n = o("exchange2013_calendar");
|
|
5
|
-
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
|
-
onClick() {
|
|
7
|
-
n.mutate("");
|
|
8
|
-
},
|
|
9
|
-
loading: n.isPending
|
|
10
|
-
}) });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
u as default
|
|
14
|
-
};
|