@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,42 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { x as i, y as f, z as g, w as S, W as b } from "./index--iR_feQQ.js";
|
|
3
|
-
import { useMemo as v, useState as w } from "react";
|
|
4
|
-
import { A as C } from "./AppCard--JDiTUMU.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-mOdk6pDR.js";
|
|
6
|
-
const $ = function({
|
|
7
|
-
app: a,
|
|
8
|
-
eventType: c,
|
|
9
|
-
eventTypeFormMetadata: m
|
|
10
|
-
}) {
|
|
11
|
-
const t = i.useSearchParams(), s = i.usePathname(), h = v(
|
|
12
|
-
() => `${s}${t ? `?${t.toString()}` : ""}`,
|
|
13
|
-
[s, t]
|
|
14
|
-
), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = w(n("enabled")), y = g(m), { t: A } = S(), r = !o && y;
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
16
|
-
C,
|
|
17
|
-
{
|
|
18
|
-
returnTo: b + h,
|
|
19
|
-
app: a,
|
|
20
|
-
switchChecked: o,
|
|
21
|
-
switchOnClick: (P) => {
|
|
22
|
-
u(P);
|
|
23
|
-
},
|
|
24
|
-
description: /* @__PURE__ */ e(p, { children: "Add Paypal payment to your events" }),
|
|
25
|
-
disableSwitch: r,
|
|
26
|
-
switchTooltip: r ? A("other_payment_app_enabled") : void 0,
|
|
27
|
-
children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
28
|
-
E,
|
|
29
|
-
{
|
|
30
|
-
eventType: c,
|
|
31
|
-
slug: a.slug,
|
|
32
|
-
disabled: l,
|
|
33
|
-
getAppData: n,
|
|
34
|
-
setAppData: d
|
|
35
|
-
}
|
|
36
|
-
) })
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
$ as default
|
|
42
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { x as d, W as i } from "./index--iR_feQQ.js";
|
|
3
|
-
import { A as m } from "./AppCard--JDiTUMU.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-C_9eRB94.js";
|
|
5
|
-
const l = function({ app: t, eventType: e }) {
|
|
6
|
-
var a;
|
|
7
|
-
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
|
8
|
-
return /* @__PURE__ */ s(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
12
|
-
app: t,
|
|
13
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
14
|
-
switchOnClick: (o) => {
|
|
15
|
-
r(o);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: n,
|
|
18
|
-
hideAppCardOptions: !0
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
l as default
|
|
24
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { x as i, w as g, y as f, z as b, W as S } from "./index--iR_feQQ.js";
|
|
3
|
-
import { useMemo as v, useState as w } from "react";
|
|
4
|
-
import { A as C } from "./AppCard--JDiTUMU.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-vNhCP6vQ.js";
|
|
6
|
-
const $ = function({
|
|
7
|
-
app: a,
|
|
8
|
-
eventType: p,
|
|
9
|
-
eventTypeFormMetadata: c
|
|
10
|
-
}) {
|
|
11
|
-
const t = i.useSearchParams(), { t: m } = g(), s = i.usePathname(), h = v(
|
|
12
|
-
() => `${s}${t ? `?${t.toString()}` : ""}`,
|
|
13
|
-
[s, t]
|
|
14
|
-
), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = w(n("enabled")), A = b(c), r = !o && A;
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
16
|
-
C,
|
|
17
|
-
{
|
|
18
|
-
returnTo: S + h,
|
|
19
|
-
app: a,
|
|
20
|
-
switchChecked: o,
|
|
21
|
-
switchOnClick: (y) => {
|
|
22
|
-
u(y);
|
|
23
|
-
},
|
|
24
|
-
description: /* @__PURE__ */ e(P, { children: "Add bitcoin lightning payments to your events" }),
|
|
25
|
-
disableSwitch: r,
|
|
26
|
-
switchTooltip: r ? m("other_payment_app_enabled") : void 0,
|
|
27
|
-
children: /* @__PURE__ */ e(
|
|
28
|
-
E,
|
|
29
|
-
{
|
|
30
|
-
eventType: p,
|
|
31
|
-
slug: a.slug,
|
|
32
|
-
disabled: l,
|
|
33
|
-
getAppData: n,
|
|
34
|
-
setAppData: d
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
$ as default
|
|
42
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { y as m, w as f } from "./index--iR_feQQ.js";
|
|
3
|
-
import { A as l } from "./AppCard--JDiTUMU.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-C_9eRB94.js";
|
|
5
|
-
import A from "./EventTypeAppSettingsInterface-CPvfqJkx.js";
|
|
6
|
-
const b = function({ app: t, eventType: e }) {
|
|
7
|
-
var o;
|
|
8
|
-
const { getAppData: s, setAppData: a, disabled: p } = m(), { enabled: n, updateEnabled: r } = u(t), { t: c } = f();
|
|
9
|
-
return /* @__PURE__ */ i(
|
|
10
|
-
l,
|
|
11
|
-
{
|
|
12
|
-
app: t,
|
|
13
|
-
description: c("confirmation_page_gif"),
|
|
14
|
-
switchOnClick: (d) => {
|
|
15
|
-
r(d);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: n,
|
|
18
|
-
teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
|
|
19
|
-
children: /* @__PURE__ */ i(
|
|
20
|
-
A,
|
|
21
|
-
{
|
|
22
|
-
eventType: e,
|
|
23
|
-
slug: t.slug,
|
|
24
|
-
disabled: p,
|
|
25
|
-
getAppData: s,
|
|
26
|
-
setAppData: a
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
b as default
|
|
34
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { x as d, W as i } from "./index--iR_feQQ.js";
|
|
3
|
-
import { A as m } from "./AppCard--JDiTUMU.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-C_9eRB94.js";
|
|
5
|
-
const l = function({ app: t, eventType: e }) {
|
|
6
|
-
var a;
|
|
7
|
-
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
|
8
|
-
return /* @__PURE__ */ s(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
12
|
-
app: t,
|
|
13
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
14
|
-
switchOnClick: (o) => {
|
|
15
|
-
r(o);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: n,
|
|
18
|
-
hideAppCardOptions: !0
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
l as default
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as g } from "./index--iR_feQQ.js";
|
|
3
|
-
const o = ({
|
|
4
|
-
getAppData: t,
|
|
5
|
-
setAppData: a,
|
|
6
|
-
disabled: e
|
|
7
|
-
}) => {
|
|
8
|
-
const n = t("trackingId");
|
|
9
|
-
return /* @__PURE__ */ i(
|
|
10
|
-
g,
|
|
11
|
-
{
|
|
12
|
-
name: "Tracking ID",
|
|
13
|
-
"data-testid": "gtm-tracking-id-input",
|
|
14
|
-
value: n,
|
|
15
|
-
disabled: e,
|
|
16
|
-
onChange: (r) => {
|
|
17
|
-
a("trackingId", r.target.value);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
o as default
|
|
24
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { useState as m, useEffect as v } from "react";
|
|
3
|
-
import { K as p, S as h } from "./index--iR_feQQ.js";
|
|
4
|
-
const S = ({}) => {
|
|
5
|
-
const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
|
|
6
|
-
return v(
|
|
7
|
-
function() {
|
|
8
|
-
var a, i, l;
|
|
9
|
-
r({
|
|
10
|
-
value: e == null ? void 0 : e.projects.currentProject,
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
-
label: (i = (a = e == null ? void 0 : e.projects) == null ? void 0 : a.find((s) => s.id === (e == null ? void 0 : e.currentProject))) == null ? void 0 : i.name
|
|
13
|
-
}), u(
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
(l = e == null ? void 0 : e.projects) == null ? void 0 : l.map((s) => ({
|
|
16
|
-
value: s.id,
|
|
17
|
-
label: s.name
|
|
18
|
-
}))
|
|
19
|
-
);
|
|
20
|
-
},
|
|
21
|
-
[e]
|
|
22
|
-
), /* @__PURE__ */ o("div", { className: "mt-2 text-sm", children: [
|
|
23
|
-
/* @__PURE__ */ o("div", { className: "flex gap-3", children: [
|
|
24
|
-
/* @__PURE__ */ c("div", { className: "items-center", children: /* @__PURE__ */ c("p", { className: "py-2", children: "Link a Basecamp project to this event:" }) }),
|
|
25
|
-
/* @__PURE__ */ c(
|
|
26
|
-
h,
|
|
27
|
-
{
|
|
28
|
-
placeholder: "Select project",
|
|
29
|
-
options: n,
|
|
30
|
-
isLoading: !n,
|
|
31
|
-
className: "md:min-w-[120px]",
|
|
32
|
-
onChange: (t) => {
|
|
33
|
-
t && (d.mutate({ projectId: t == null ? void 0 : t.value.toString() }), r(t));
|
|
34
|
-
},
|
|
35
|
-
value: f
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ o("div", { className: "mt-2", children: [
|
|
40
|
-
"Please note that as of now you can only link ",
|
|
41
|
-
/* @__PURE__ */ c("span", { className: "italic", children: "one" }),
|
|
42
|
-
" of your projects to cal.com"
|
|
43
|
-
] })
|
|
44
|
-
] });
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
S as default
|
|
48
|
-
};
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d } from "react";
|
|
3
|
-
import { w as I, ad as M, ae as j, e as T, B as g, r as k, J as A, af as E, ag as B, U as R } from "./index--iR_feQQ.js";
|
|
4
|
-
const y = "search", C = "url", z = (s) => {
|
|
5
|
-
const { t: a } = I(), [i, l] = d(""), [p, m] = d(0), [c, v] = d(""), { isOpenDialog: D, setIsOpenDialog: O } = s, [u, b] = d(!1), [N, f] = d(""), [x, _] = d(y), w = async (n, h) => {
|
|
6
|
-
if (u)
|
|
7
|
-
return;
|
|
8
|
-
b(!0), f("");
|
|
9
|
-
const t = await fetch("/api/integrations/giphy/search", {
|
|
10
|
-
method: "POST",
|
|
11
|
-
headers: {
|
|
12
|
-
"Content-Type": "application/json"
|
|
13
|
-
},
|
|
14
|
-
body: JSON.stringify({
|
|
15
|
-
keyword: n,
|
|
16
|
-
offset: h
|
|
17
|
-
})
|
|
18
|
-
}), r = await t.json();
|
|
19
|
-
return t.ok ? (l(r.image || ""), m(r.nextOffset), r.image || f("No Result found")) : f((r == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
20
|
-
}, G = async (n) => {
|
|
21
|
-
var r;
|
|
22
|
-
if (u)
|
|
23
|
-
return;
|
|
24
|
-
b(!0), f("");
|
|
25
|
-
const h = await fetch("/api/integrations/giphy/get", {
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers: {
|
|
28
|
-
"Content-Type": "application/json"
|
|
29
|
-
},
|
|
30
|
-
body: JSON.stringify({
|
|
31
|
-
url: n
|
|
32
|
-
})
|
|
33
|
-
}), t = await h.json();
|
|
34
|
-
return h.ok ? (l(t.image || ""), t.image || f("No Result found")) : f((t == null ? void 0 : t.message) || ((r = t == null ? void 0 : t[0]) == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
35
|
-
}, S = (n, h, t) => /* @__PURE__ */ o(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
className: k(
|
|
39
|
-
"flex cursor-pointer items-center border-b-2 p-2 text-sm ",
|
|
40
|
-
x === t ? "text-default border-emphasis" : "text-subtle border-transparent"
|
|
41
|
-
),
|
|
42
|
-
onClick: () => {
|
|
43
|
-
v(""), l(""), _(t);
|
|
44
|
-
},
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ e(R, { name: n, className: "h-4 w-4 ltr:mr-2 rtl:ml-2" }),
|
|
47
|
-
h
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
), P = async (n) => {
|
|
51
|
-
n.stopPropagation(), n.preventDefault(), x === y ? w(c, 0) : x === C && G(c);
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ e(M, { open: D, onOpenChange: O, children: /* @__PURE__ */ o(j, { children: [
|
|
54
|
-
/* @__PURE__ */ e("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
|
|
55
|
-
/* @__PURE__ */ e("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
|
|
56
|
-
/* @__PURE__ */ o("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
|
|
57
|
-
S("search", a("search_giphy"), y),
|
|
58
|
-
S("link", a("add_link_from_giphy"), C)
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ o(
|
|
61
|
-
"form",
|
|
62
|
-
{
|
|
63
|
-
className: "flex w-full justify-center space-x-2 space-y-2 rtl:space-x-reverse",
|
|
64
|
-
onSubmit: P,
|
|
65
|
-
children: [
|
|
66
|
-
/* @__PURE__ */ e("div", { className: "relative block w-full pt-2", children: /* @__PURE__ */ e(
|
|
67
|
-
T,
|
|
68
|
-
{
|
|
69
|
-
type: "text",
|
|
70
|
-
placeholder: x === y ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
|
|
71
|
-
value: c,
|
|
72
|
-
onChange: (n) => {
|
|
73
|
-
v(n.target.value);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
) }),
|
|
77
|
-
/* @__PURE__ */ e(g, { type: "submit", tabIndex: -1, color: "secondary", loading: u, children: a("search") })
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
i && /* @__PURE__ */ e("div", { className: "flex flex-col items-center space-x-2 space-y-2 pt-3 rtl:space-x-reverse", children: /* @__PURE__ */ e("div", { className: "bg-subtle flex w-full items-center justify-center", children: u ? /* @__PURE__ */ e("div", { className: "flex h-[200px] w-full items-center justify-center bg-gray-400 pb-3 pt-3", children: /* @__PURE__ */ o(
|
|
82
|
-
"svg",
|
|
83
|
-
{
|
|
84
|
-
className: k("mx-4 h-5 w-5 animate-spin", "text-inverted dark:text-emphasis"),
|
|
85
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
-
fill: "none",
|
|
87
|
-
viewBox: "0 0 24 24",
|
|
88
|
-
children: [
|
|
89
|
-
/* @__PURE__ */ e(
|
|
90
|
-
"circle",
|
|
91
|
-
{
|
|
92
|
-
className: "opacity-25",
|
|
93
|
-
cx: "12",
|
|
94
|
-
cy: "12",
|
|
95
|
-
r: "10",
|
|
96
|
-
stroke: "currentColor",
|
|
97
|
-
strokeWidth: "4"
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
"path",
|
|
102
|
-
{
|
|
103
|
-
className: "opacity-75",
|
|
104
|
-
fill: "currentColor",
|
|
105
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
) }) : /* @__PURE__ */ e("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${c}` }) }) }),
|
|
111
|
-
N && /* @__PURE__ */ e(A, { severity: "error", title: N, className: "my-4" }),
|
|
112
|
-
i && x === y && /* @__PURE__ */ o("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
|
|
113
|
-
/* @__PURE__ */ e("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
g,
|
|
116
|
-
{
|
|
117
|
-
size: "sm",
|
|
118
|
-
color: "secondary",
|
|
119
|
-
type: "button",
|
|
120
|
-
loading: u,
|
|
121
|
-
onClick: () => w(c, p),
|
|
122
|
-
children: "Shuffle"
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] }),
|
|
126
|
-
/* @__PURE__ */ o(E, { noSticky: !0, children: [
|
|
127
|
-
/* @__PURE__ */ e(
|
|
128
|
-
B,
|
|
129
|
-
{
|
|
130
|
-
color: "minimal",
|
|
131
|
-
tabIndex: -1,
|
|
132
|
-
onClick: () => {
|
|
133
|
-
s.setIsOpenDialog(!1);
|
|
134
|
-
},
|
|
135
|
-
children: a("cancel")
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
-
g,
|
|
140
|
-
{
|
|
141
|
-
type: "button",
|
|
142
|
-
disabled: !i,
|
|
143
|
-
onClick: () => (s.setIsOpenDialog(!1), s.onSave(i), m(0), l(""), v(""), !1),
|
|
144
|
-
children: a("add_gif")
|
|
145
|
-
}
|
|
146
|
-
)
|
|
147
|
-
] })
|
|
148
|
-
] }) });
|
|
149
|
-
};
|
|
150
|
-
function F(s) {
|
|
151
|
-
const { t: a } = I(), [i, l] = d(s.defaultValue), [p, m] = d(!1);
|
|
152
|
-
return /* @__PURE__ */ o("div", { className: "flex flex-col items-start space-x-2 space-y-2 rtl:space-x-reverse", children: [
|
|
153
|
-
i && /* @__PURE__ */ e("div", { className: "min-h-[200px]", children: /* @__PURE__ */ e("img", { alt: "Selected Gif Image", src: i }) }),
|
|
154
|
-
/* @__PURE__ */ o("div", { className: "flex", children: [
|
|
155
|
-
i ? /* @__PURE__ */ e(
|
|
156
|
-
g,
|
|
157
|
-
{
|
|
158
|
-
color: "minimal",
|
|
159
|
-
type: "button",
|
|
160
|
-
StartIcon: "pencil",
|
|
161
|
-
onClick: () => m(!0),
|
|
162
|
-
disabled: s.disabled,
|
|
163
|
-
children: "Change"
|
|
164
|
-
}
|
|
165
|
-
) : /* @__PURE__ */ e(
|
|
166
|
-
g,
|
|
167
|
-
{
|
|
168
|
-
color: "minimal",
|
|
169
|
-
type: "button",
|
|
170
|
-
StartIcon: "plus",
|
|
171
|
-
onClick: () => m(!0),
|
|
172
|
-
disabled: s.disabled,
|
|
173
|
-
children: "Add from Giphy"
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
i && /* @__PURE__ */ e(
|
|
177
|
-
g,
|
|
178
|
-
{
|
|
179
|
-
color: "destructive",
|
|
180
|
-
type: "button",
|
|
181
|
-
StartIcon: "x",
|
|
182
|
-
onClick: () => {
|
|
183
|
-
l(""), s.onChange("");
|
|
184
|
-
},
|
|
185
|
-
disabled: s.disabled,
|
|
186
|
-
children: a("remove")
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
] }),
|
|
190
|
-
/* @__PURE__ */ e(
|
|
191
|
-
z,
|
|
192
|
-
{
|
|
193
|
-
isOpenDialog: p,
|
|
194
|
-
setIsOpenDialog: m,
|
|
195
|
-
onSave: (c) => {
|
|
196
|
-
l(c), s.onChange(c);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
] });
|
|
201
|
-
}
|
|
202
|
-
const Y = ({
|
|
203
|
-
getAppData: s,
|
|
204
|
-
setAppData: a,
|
|
205
|
-
disabled: i
|
|
206
|
-
}) => {
|
|
207
|
-
const l = s("thankYouPage");
|
|
208
|
-
return /* @__PURE__ */ e(
|
|
209
|
-
F,
|
|
210
|
-
{
|
|
211
|
-
defaultValue: l,
|
|
212
|
-
disabled: i,
|
|
213
|
-
onChange: (p) => {
|
|
214
|
-
a("thankYouPage", p);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
export {
|
|
220
|
-
Y as default
|
|
221
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { jsx as n, Fragment as D, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { useState as f, useEffect as T } from "react";
|
|
3
|
-
import { w, a0 as t, J as P, f as R, S as y } from "./index--iR_feQQ.js";
|
|
4
|
-
const i = [
|
|
5
|
-
{ label: "SATS", value: "BTC", unit: "SATS" },
|
|
6
|
-
{ label: "USD- US Dollar", value: "USD", unit: "USD" },
|
|
7
|
-
{ label: "EUR- Euro", value: "EUR", unit: "EUR" },
|
|
8
|
-
{ label: "JPY- Japanese Yen", value: "JPY", unit: "JPY" },
|
|
9
|
-
{ label: "CNY- Yuan Renminbi", value: "CNY", unit: "CNY" },
|
|
10
|
-
{ label: "GBP- Pounds Sterling", value: "GBP", unit: "GBP" },
|
|
11
|
-
{ label: "AED- UAE Dirham", value: "AED", unit: "AED" },
|
|
12
|
-
{ label: "ZAR- South African Rand", value: "ZAR", unit: "ZAR" },
|
|
13
|
-
{ label: "HKD- Hong Kong Dollar", value: "HKD", unit: "HKD" },
|
|
14
|
-
{ label: "BRL- Brazilian Real", value: "BRL", unit: "BRL" },
|
|
15
|
-
{ label: "AUD- Australian Dollar", value: "AUD", unit: "AUD" },
|
|
16
|
-
{ label: "CAD- Canadian Dollar", value: "CAD", unit: "CAD" },
|
|
17
|
-
{ label: "CZK- Czech Koruna", value: "CZK", unit: "CZK" },
|
|
18
|
-
{ label: "DKK- Danish Krone", value: "DKK", unit: "DKK" },
|
|
19
|
-
{ label: "NZD- New Zealand Dollar", value: "NZD", unit: "NZD" },
|
|
20
|
-
{ label: "MYR- Malaysian Ringgit", value: "MYR", unit: "MYR" },
|
|
21
|
-
{ label: "PHP- Philippine Peso", value: "PHP", unit: "PHP" },
|
|
22
|
-
{ label: "CHF- Swiss Franc", value: "CHF", unit: "CHF" },
|
|
23
|
-
{ label: "NOK- Norwegian Krone", value: "NOK", unit: "NOK" },
|
|
24
|
-
{ label: "THB- Thai Baht", value: "THB", unit: "THB" },
|
|
25
|
-
{ label: "SEK- Swedish Krona", value: "SEK", unit: "SEK" },
|
|
26
|
-
{ label: "SGD- Singapore Dollar", value: "SGD", unit: "SGD" },
|
|
27
|
-
{ label: "PLN- Polish Zloty", value: "PLN", unit: "PLN" },
|
|
28
|
-
{ label: "TWD- New Taiwan Dollar", value: "TWD", unit: "TWD" },
|
|
29
|
-
{ label: "MXN- Mexican Peso", value: "MXN", unit: "MXN" },
|
|
30
|
-
{ label: "ILS- New Isreali Shekel", value: "ILS", unit: "ILS" },
|
|
31
|
-
{ label: "NGN- Nigerian Naira", value: "NGN", unit: "NGN" }
|
|
32
|
-
], C = ["SATS", "BTC", "JPY"], E = (r, l) => C.includes(l.toUpperCase()) ? r : Math.round(r * 100), x = (r, l) => C.includes(l.toUpperCase()) ? r : r / 100, Y = ({
|
|
33
|
-
eventType: r,
|
|
34
|
-
getAppData: l,
|
|
35
|
-
setAppData: u
|
|
36
|
-
}) => {
|
|
37
|
-
var h, S;
|
|
38
|
-
const { t: a } = w(), s = l("price"), o = l("currency") || (i.length > 0 ? i[0].value : ""), [v, K] = f(
|
|
39
|
-
i.find((e) => e.value === o) || (i.length > 0 ? {
|
|
40
|
-
label: i[0].label,
|
|
41
|
-
value: i[0].value
|
|
42
|
-
} : null)
|
|
43
|
-
), d = l("paymentOption"), b = ((h = t) == null ? void 0 : h.find((e) => d === e.value)) || {
|
|
44
|
-
label: t.length > 0 ? t[0].label : "",
|
|
45
|
-
value: t.length > 0 ? t[0].value : ""
|
|
46
|
-
}, N = !!r.seatsPerTimeSlot, [m, U] = f(l("enabled")), p = ((S = r.recurringEvent) == null ? void 0 : S.count) !== void 0;
|
|
47
|
-
T(() => {
|
|
48
|
-
m && !l("currency") && u("currency", i[0].value);
|
|
49
|
-
}, [m, l, u]);
|
|
50
|
-
const g = (e) => Math.floor(e);
|
|
51
|
-
return /* @__PURE__ */ n(D, { children: p ? /* @__PURE__ */ n(P, { className: "mt-2", severity: "warning", title: a("warning_recurring_event_payment") }) : m && /* @__PURE__ */ c(D, { children: [
|
|
52
|
-
/* @__PURE__ */ c("div", { className: "mt-4 inline-block", children: [
|
|
53
|
-
/* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium mb-1", htmlFor: "price", children: a("price") }),
|
|
54
|
-
/* @__PURE__ */ n(
|
|
55
|
-
R,
|
|
56
|
-
{
|
|
57
|
-
label: a("price"),
|
|
58
|
-
className: "text-black dark:text-white w-auto",
|
|
59
|
-
addOnClassname: "h-[38px]",
|
|
60
|
-
min: "1",
|
|
61
|
-
type: "number",
|
|
62
|
-
required: !0,
|
|
63
|
-
placeholder: "Price",
|
|
64
|
-
onChange: (e) => {
|
|
65
|
-
u("price", E(Number(e.target.value), o));
|
|
66
|
-
},
|
|
67
|
-
value: s && s > 0 ? g(x(s, o)) : void 0
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ c("div", { className: "mt-5 w-60", children: [
|
|
72
|
-
/* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: a("currency") }),
|
|
73
|
-
/* @__PURE__ */ n(
|
|
74
|
-
y,
|
|
75
|
-
{
|
|
76
|
-
variant: "default",
|
|
77
|
-
options: i,
|
|
78
|
-
value: v,
|
|
79
|
-
defaultValue: v,
|
|
80
|
-
onChange: (e) => {
|
|
81
|
-
e && (K(e), u("currency", e.value));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
] }),
|
|
86
|
-
/* @__PURE__ */ c("div", { className: "mt-2 w-60", children: [
|
|
87
|
-
/* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "paymentOption", children: a("payment_option") }),
|
|
88
|
-
/* @__PURE__ */ n(
|
|
89
|
-
y,
|
|
90
|
-
{
|
|
91
|
-
defaultValue: b ? { ...b, label: a(b.label) } : t.length > 0 ? { ...t[0], label: a(t[0].label) } : void 0,
|
|
92
|
-
options: t.map((e) => ({ ...e, label: a(e.label) || e.label })),
|
|
93
|
-
onChange: (e) => {
|
|
94
|
-
e && u("paymentOption", e.value);
|
|
95
|
-
},
|
|
96
|
-
className: "mb-1 h-[38px] w-full",
|
|
97
|
-
isDisabled: N
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
] }),
|
|
101
|
-
N && d === "HOLD" && /* @__PURE__ */ n(P, { className: "mt-2", severity: "warning", title: a("seats_and_no_show_fee_error") })
|
|
102
|
-
] }) });
|
|
103
|
-
};
|
|
104
|
-
export {
|
|
105
|
-
Y as default
|
|
106
|
-
};
|