@calcom/atoms 1.0.99 → 1.0.101-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-WBfvWGkL.js → AddressInput-juYkbZV2.js} +3 -3
- package/dist/{AlbyPriceComponent-eW8bnLtO.js → AlbyPriceComponent-zPblWsmO.js} +28 -28
- package/dist/{PhoneInput-LeK3XZ0X.js → PhoneInput-lzIUvvEp.js} +1 -1
- package/dist/cal-atoms.js +3 -34
- package/dist/index-1iD3RAuF.js +83360 -0
- package/dist/index-4eiX6cBE.js +1957 -0
- package/dist/{index-mhIxRvCU.js → index-pxPagOVY.js} +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +6 -0
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +17 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/get-booking.d.ts +3 -0
- package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts +1 -0
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/data-table/DataTableProvider.d.ts +4 -2
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts +9 -0
- package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts.map +1 -0
- package/dist/packages/features/data-table/hooks/useSegments.d.ts +3 -0
- package/dist/packages/features/data-table/hooks/useSegments.d.ts.map +1 -0
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts +3 -0
- package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts.map +1 -0
- package/dist/packages/features/data-table/index.d.ts +1 -1
- package/dist/packages/features/data-table/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/dateRange.d.ts +7 -0
- package/dist/packages/features/data-table/lib/dateRange.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/dateRange.test.d.ts +2 -0
- package/dist/packages/features/data-table/lib/dateRange.test.d.ts.map +1 -0
- package/dist/packages/features/data-table/lib/types.d.ts +31 -6
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +1 -0
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts +3 -0
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts +3 -1
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -3
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts +11 -0
- package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts +4 -2
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +3 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.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/recurring/RecurringEventController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +17 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts +1 -0
- package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/apple/AppleConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/google/GcalConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/outlook/OutlookConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/stripe/StripeConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +12 -0
- 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/useTeamMembersWithSegment.d.ts +32 -0
- package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts.map +1 -0
- package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventPaymentsTabPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts +2 -2
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useTeamEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts.map +1 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts.map +1 -0
- package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts +3 -10
- package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts +2 -2
- package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +17 -0
- package/dist/packages/platform/atoms/hooks/usePublicEvent.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/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +2 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +2 -4
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +2 -0
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +2 -0
- 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/get-bookings.input.d.ts.map +1 -1
- package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts +5 -0
- package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts.map +1 -0
- package/dist/packages/platform/types/organizations/bookings/index.d.ts +2 -0
- package/dist/packages/platform/types/organizations/bookings/index.d.ts.map +1 -0
- package/dist/packages/platform/types/organizations/index.d.ts +1 -0
- package/dist/packages/platform/types/organizations/index.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts +6 -4
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +15 -3
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
- package/dist/packages/platform/types/teams/outputs/index.d.ts +1 -0
- package/dist/packages/platform/types/teams/outputs/index.d.ts.map +1 -1
- package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts +9 -0
- package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts.map +1 -0
- package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts +3 -0
- package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts.map +1 -1
- package/dist/packages/prisma/zod/calendarcache.d.ts +3 -0
- package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
- package/dist/packages/prisma/zod/filtersegment.d.ts +3 -0
- package/dist/packages/prisma/zod/filtersegment.d.ts.map +1 -1
- package/dist/packages/prisma/zod/task.d.ts +3 -0
- package/dist/packages/prisma/zod/task.d.ts.map +1 -1
- package/dist/packages/prisma/zod/user.d.ts +3 -0
- package/dist/packages/prisma/zod/user.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -0
- package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +126 -3
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +408 -5
- 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/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +6 -0
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/globals.min.css +2 -14
- package/package.json +2 -2
- package/dist/AppCard-a2VNbyLx.js +0 -162
- package/dist/AppListCardPlatformWrapper-C8hnPpP4.js +0 -9
- package/dist/AppListCardWebWrapper-DvvSERyw.js +0 -74
- package/dist/AppSettingsInterface-277vkITp.js +0 -75
- package/dist/AppSettingsInterface-cKTul9l1.js +0 -29
- package/dist/AppSettingsInterface-cRYupPyd.js +0 -23
- package/dist/DateRangePicker-vgjaMql7.js +0 -2418
- package/dist/EventTypeAppCardInterface-5SmitGNV.js +0 -24
- package/dist/EventTypeAppCardInterface-5oCKHCnt.js +0 -24
- package/dist/EventTypeAppCardInterface-DCGeU2Nt.js +0 -32
- package/dist/EventTypeAppCardInterface-E0Qss22P.js +0 -39
- package/dist/EventTypeAppCardInterface-EjBlklYZ.js +0 -32
- package/dist/EventTypeAppCardInterface-J-7B6Xjo.js +0 -34
- package/dist/EventTypeAppCardInterface-KduqlFNa.js +0 -34
- package/dist/EventTypeAppCardInterface-MS4ucwo6.js +0 -49
- package/dist/EventTypeAppCardInterface-PTb9KLMK.js +0 -31
- package/dist/EventTypeAppCardInterface-Sy_wEWq8.js +0 -493
- package/dist/EventTypeAppCardInterface-UnxmvFiF.js +0 -42
- package/dist/EventTypeAppCardInterface-Y4hW3FSd.js +0 -24
- package/dist/EventTypeAppCardInterface-ax3KRlWb.js +0 -41
- package/dist/EventTypeAppCardInterface-gWjvfWM8.js +0 -34
- package/dist/EventTypeAppCardInterface-hdSBbtYi.js +0 -34
- package/dist/EventTypeAppCardInterface-i0iSNHI5.js +0 -51
- package/dist/EventTypeAppCardInterface-iRFQuaNc.js +0 -24
- package/dist/EventTypeAppCardInterface-iye41eH9.js +0 -34
- package/dist/EventTypeAppCardInterface-jPx0Q4vg.js +0 -42
- package/dist/EventTypeAppCardInterface-jsVu8y8O.js +0 -24
- package/dist/EventTypeAppCardInterface-k6-pyXdz.js +0 -51
- package/dist/EventTypeAppCardInterface-rV9JaOnf.js +0 -86
- package/dist/EventTypeAppCardInterface-tRwK3uo8.js +0 -34
- package/dist/EventTypeAppCardInterface-u3dNHTwX.js +0 -33
- package/dist/EventTypeAppCardInterface-urvIbTUy.js +0 -41
- package/dist/EventTypeAppCardInterface-yEwxGABY.js +0 -34
- package/dist/EventTypeAppSettingsInterface-H0Y7R_6K.js +0 -48
- package/dist/EventTypeAppSettingsInterface-HjjrUG-6.js +0 -120
- package/dist/EventTypeAppSettingsInterface-IlX26-MP.js +0 -78
- package/dist/EventTypeAppSettingsInterface-UEd9lbfG.js +0 -23
- package/dist/EventTypeAppSettingsInterface-VctSrf5M.js +0 -43
- package/dist/EventTypeAppSettingsInterface-VdsSNh9p.js +0 -25
- package/dist/EventTypeAppSettingsInterface-XljkqZTl.js +0 -23
- package/dist/EventTypeAppSettingsInterface-YGCAMT_H.js +0 -72
- package/dist/EventTypeAppSettingsInterface-cZcfyfGn.js +0 -24
- package/dist/EventTypeAppSettingsInterface-mb6aW1Vk.js +0 -221
- package/dist/EventTypeAppSettingsInterface-t9OOHsGu.js +0 -42
- package/dist/EventTypeAppSettingsInterface-zpEk1DKo.js +0 -298
- package/dist/InstallAppButton-0rF_k2oO.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-LAgGkMR5.js +0 -14
- package/dist/InstallAppButton-mCwpgGMb.js +0 -58
- package/dist/StripePaymentForm-7wEfBhaI.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/framer-features-OfBOvlO4.js +0 -443
- package/dist/index-61yVVkPy.js +0 -28
- package/dist/index-E1a1GKmY.js +0 -155405
- package/dist/index-NLytQWtD.js +0 -511
- package/dist/packages/features/data-table/lib/resizing.d.ts +0 -9
- package/dist/packages/features/data-table/lib/resizing.d.ts.map +0 -1
- package/dist/packages/features/data-table/lib/segments.d.ts +0 -27
- package/dist/packages/features/data-table/lib/segments.d.ts.map +0 -1
- package/dist/useIsAppEnabled-bcfIdtzp.js +0 -18
|
@@ -1,493 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as l, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import { s as ue, t as he, N as d, q as ve, O as r, Q as O, R as V, W as me, S as v, p as s, I as m, r as _, U as G, V as be, x as ge } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { useState as b } from "react";
|
|
4
|
-
import { A as Ce } from "./AppCard-a2VNbyLx.js";
|
|
5
|
-
import { u as pe } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
6
|
-
const Ee = function({ app: R, eventType: W }) {
|
|
7
|
-
var K;
|
|
8
|
-
const H = ue.usePathname(), { getAppData: t, setAppData: o, disabled: ke } = he(), { enabled: X, updateEnabled: Y } = pe(R), B = t("roundRobinLeadSkip"), z = t("roundRobinSkipCheckRecordOn") ?? d.CONTACT, $ = t("ifFreeEmailDomainSkipOwnerCheck") ?? !1, q = t("skipContactCreation"), Q = t("createLeadIfAccountNull"), J = t("createNewContactUnderAccount"), D = t("createEventOn") ?? d.CONTACT, L = t("onBookingWriteToEventObject") ?? !1, C = t("onBookingWriteToEventObjectMap") ?? {}, Z = t("createEventOnLeadCheckForContact") ?? !1, y = t("onBookingChangeRecordOwner") ?? !1, ee = t("onBookingChangeRecordOwnerName") ?? [], j = t("sendNoShowAttendeeData") ?? !1, ne = t("sendNoShowAttendeeDataField") ?? "", x = t("onBookingWriteToRecord") ?? !1, c = t("onBookingWriteToRecordFields") ?? {}, ae = t("ignoreGuests") ?? !1, le = t("roundRobinSkipFallbackToLeadOwner") ?? !1, { t: a } = ve(), T = [
|
|
9
|
-
{ label: a("contact"), value: d.CONTACT },
|
|
10
|
-
{ label: a("salesforce_lead"), value: d.LEAD },
|
|
11
|
-
{ label: a("salesforce_contact_under_account"), value: d.ACCOUNT }
|
|
12
|
-
], [k, oe] = b(
|
|
13
|
-
T.find((e) => e.value === D) ?? T[0]
|
|
14
|
-
), N = [
|
|
15
|
-
{ label: a("text"), value: r.TEXT },
|
|
16
|
-
{ label: a("date"), value: r.DATE },
|
|
17
|
-
{ label: a("phone").charAt(0).toUpperCase() + a("phone").slice(1), value: r.PHONE },
|
|
18
|
-
{ label: a("checkbox"), value: r.CHECKBOX },
|
|
19
|
-
{ label: a("picklist"), value: r.PICKLIST },
|
|
20
|
-
{ label: a("custom"), value: r.CUSTOM }
|
|
21
|
-
], [p, te] = b(N[0]), f = [
|
|
22
|
-
{ label: a("on_every_booking"), value: O.EVERY_BOOKING },
|
|
23
|
-
{ label: a("only_if_field_is_empty"), value: O.FIELD_EMPTY }
|
|
24
|
-
], [ie, ce] = b(
|
|
25
|
-
f.find((e) => e.value === O.FIELD_EMPTY) ?? f[0]
|
|
26
|
-
), w = [
|
|
27
|
-
{ label: a("booking_start_date"), value: V.BOOKING_START_DATE },
|
|
28
|
-
{ label: a("booking_created_date"), value: V.BOOKING_CREATED_DATE }
|
|
29
|
-
], E = [
|
|
30
|
-
{ label: a("true"), value: !0 },
|
|
31
|
-
{ label: a("false"), value: !1 }
|
|
32
|
-
], [I, de] = b(w[0]), [P, re] = b(E[0]), [i, g] = b({
|
|
33
|
-
field: "",
|
|
34
|
-
fieldType: p.value,
|
|
35
|
-
value: "",
|
|
36
|
-
whenToWrite: O.FIELD_EMPTY
|
|
37
|
-
}), A = [
|
|
38
|
-
{ label: a("contact"), value: d.CONTACT },
|
|
39
|
-
{ label: a("salesforce_lead"), value: d.LEAD },
|
|
40
|
-
{ label: a("account"), value: d.ACCOUNT }
|
|
41
|
-
], [U, se] = b(
|
|
42
|
-
A.find((e) => e.value === z) ?? A[0]
|
|
43
|
-
), [h, S] = b({
|
|
44
|
-
field: "",
|
|
45
|
-
value: ""
|
|
46
|
-
}), M = () => /* @__PURE__ */ n(
|
|
47
|
-
s,
|
|
48
|
-
{
|
|
49
|
-
label: a("salesforce_create_new_contact_under_account"),
|
|
50
|
-
labelOnLeading: !0,
|
|
51
|
-
checked: J,
|
|
52
|
-
onCheckedChange: (e) => {
|
|
53
|
-
o("createNewContactUnderAccount", e);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
return /* @__PURE__ */ n(
|
|
58
|
-
Ce,
|
|
59
|
-
{
|
|
60
|
-
returnTo: `${me}${H}?tabName=apps`,
|
|
61
|
-
app: R,
|
|
62
|
-
teamId: ((K = W.team) == null ? void 0 : K.id) || void 0,
|
|
63
|
-
switchOnClick: (e) => {
|
|
64
|
-
Y(e);
|
|
65
|
-
},
|
|
66
|
-
switchChecked: X,
|
|
67
|
-
hideSettingsIcon: !0,
|
|
68
|
-
children: /* @__PURE__ */ l(F, { children: [
|
|
69
|
-
/* @__PURE__ */ l("div", { className: "mb-4 ml-2", children: [
|
|
70
|
-
/* @__PURE__ */ n("label", { className: "text-emphasis mb-2 align-text-top text-sm font-medium", children: a("salesforce_create_record_as") }),
|
|
71
|
-
/* @__PURE__ */ n(
|
|
72
|
-
v,
|
|
73
|
-
{
|
|
74
|
-
className: "mt-2 w-60",
|
|
75
|
-
options: T,
|
|
76
|
-
value: k,
|
|
77
|
-
onChange: (e) => {
|
|
78
|
-
e && (oe(e), o("createEventOn", e.value));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ n("div", { className: "mb-4", children: /* @__PURE__ */ n(
|
|
84
|
-
s,
|
|
85
|
-
{
|
|
86
|
-
label: a("salesforce_ignore_guests"),
|
|
87
|
-
labelOnLeading: !0,
|
|
88
|
-
checked: ae,
|
|
89
|
-
onCheckedChange: (e) => {
|
|
90
|
-
o("ignoreGuests", e);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
) }),
|
|
94
|
-
k.value === d.CONTACT ? /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
95
|
-
s,
|
|
96
|
-
{
|
|
97
|
-
label: a("skip_contact_creation", { appName: "Salesforce" }),
|
|
98
|
-
labelOnLeading: !0,
|
|
99
|
-
checked: q,
|
|
100
|
-
onCheckedChange: (e) => {
|
|
101
|
-
o("skipContactCreation", e);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
) }) : null,
|
|
105
|
-
k.value === d.LEAD ? /* @__PURE__ */ l("div", { children: [
|
|
106
|
-
/* @__PURE__ */ n(
|
|
107
|
-
s,
|
|
108
|
-
{
|
|
109
|
-
label: a("salesforce_create_event_on_contact"),
|
|
110
|
-
labelOnLeading: !0,
|
|
111
|
-
checked: Z,
|
|
112
|
-
onCheckedChange: (e) => {
|
|
113
|
-
o("createEventOnLeadCheckForContact", e);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
/* @__PURE__ */ n("div", { className: "mt-4", children: /* @__PURE__ */ n(M, {}) })
|
|
118
|
-
] }) : null,
|
|
119
|
-
k.value === d.ACCOUNT ? /* @__PURE__ */ l(F, { children: [
|
|
120
|
-
/* @__PURE__ */ n("div", { className: "mb-4", children: /* @__PURE__ */ n(M, {}) }),
|
|
121
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
122
|
-
s,
|
|
123
|
-
{
|
|
124
|
-
label: a("salesforce_if_account_does_not_exist"),
|
|
125
|
-
labelOnLeading: !0,
|
|
126
|
-
checked: Q,
|
|
127
|
-
onCheckedChange: (e) => {
|
|
128
|
-
o("createLeadIfAccountNull", e);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
) })
|
|
132
|
-
] }) : null,
|
|
133
|
-
/* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
134
|
-
/* @__PURE__ */ n(
|
|
135
|
-
s,
|
|
136
|
-
{
|
|
137
|
-
label: a("on_booking_write_to_event_object"),
|
|
138
|
-
labelOnLeading: !0,
|
|
139
|
-
checked: L,
|
|
140
|
-
onCheckedChange: (e) => {
|
|
141
|
-
o("onBookingWriteToEventObject", e);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
),
|
|
145
|
-
L ? /* @__PURE__ */ l("div", { className: "ml-2 mt-2", children: [
|
|
146
|
-
/* @__PURE__ */ l("div", { className: "grid grid-cols-3 gap-4", children: [
|
|
147
|
-
/* @__PURE__ */ n("div", { children: a("field_name") }),
|
|
148
|
-
/* @__PURE__ */ n("div", { children: a("value") })
|
|
149
|
-
] }),
|
|
150
|
-
/* @__PURE__ */ l("div", { children: [
|
|
151
|
-
Object.keys(C).map((e) => /* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-3 gap-4", children: [
|
|
152
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(m, { value: e, readOnly: !0 }) }),
|
|
153
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(m, { value: C[e], readOnly: !0 }) }),
|
|
154
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
155
|
-
_,
|
|
156
|
-
{
|
|
157
|
-
StartIcon: "trash",
|
|
158
|
-
variant: "icon",
|
|
159
|
-
color: "destructive",
|
|
160
|
-
onClick: () => {
|
|
161
|
-
const u = C;
|
|
162
|
-
delete C[e], o("onBookingWriteToEventObjectMap", u);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
) })
|
|
166
|
-
] }, e)),
|
|
167
|
-
/* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-3 gap-4", children: [
|
|
168
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
169
|
-
m,
|
|
170
|
-
{
|
|
171
|
-
value: h.field,
|
|
172
|
-
onChange: (e) => S({
|
|
173
|
-
...h,
|
|
174
|
-
field: e.target.value
|
|
175
|
-
})
|
|
176
|
-
}
|
|
177
|
-
) }),
|
|
178
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
179
|
-
m,
|
|
180
|
-
{
|
|
181
|
-
value: h.value,
|
|
182
|
-
onChange: (e) => S({
|
|
183
|
-
...h,
|
|
184
|
-
value: e.target.value
|
|
185
|
-
})
|
|
186
|
-
}
|
|
187
|
-
) })
|
|
188
|
-
] })
|
|
189
|
-
] }),
|
|
190
|
-
/* @__PURE__ */ n(
|
|
191
|
-
_,
|
|
192
|
-
{
|
|
193
|
-
className: "mt-2",
|
|
194
|
-
size: "sm",
|
|
195
|
-
disabled: !(h.field && h.value),
|
|
196
|
-
onClick: () => {
|
|
197
|
-
if (Object.keys(C).includes(
|
|
198
|
-
h.field.trim()
|
|
199
|
-
)) {
|
|
200
|
-
G("Field already exists", "error");
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
o("onBookingWriteToEventObjectMap", {
|
|
204
|
-
...C,
|
|
205
|
-
[h.field.trim()]: h.value.trim()
|
|
206
|
-
}), S({ field: "", value: "" });
|
|
207
|
-
},
|
|
208
|
-
children: a("add_new_field")
|
|
209
|
-
}
|
|
210
|
-
)
|
|
211
|
-
] }) : null
|
|
212
|
-
] }),
|
|
213
|
-
/* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
214
|
-
/* @__PURE__ */ n(
|
|
215
|
-
s,
|
|
216
|
-
{
|
|
217
|
-
label: a("salesforce_on_booking_write_to_record", { record: D }),
|
|
218
|
-
labelOnLeading: !0,
|
|
219
|
-
checked: x,
|
|
220
|
-
onCheckedChange: (e) => {
|
|
221
|
-
o("onBookingWriteToRecord", e);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
),
|
|
225
|
-
x ? /* @__PURE__ */ l("div", { className: "ml-2 mt-2", children: [
|
|
226
|
-
/* @__PURE__ */ l("div", { className: "grid grid-cols-5 gap-4", children: [
|
|
227
|
-
/* @__PURE__ */ n("div", { children: a("field_name") }),
|
|
228
|
-
/* @__PURE__ */ n("div", { children: a("field_type") }),
|
|
229
|
-
/* @__PURE__ */ n("div", { children: a("value") }),
|
|
230
|
-
/* @__PURE__ */ n("div", { children: a("when_to_write") })
|
|
231
|
-
] }),
|
|
232
|
-
/* @__PURE__ */ l("div", { children: [
|
|
233
|
-
Object.keys(c).map((e) => /* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-5 gap-4", children: [
|
|
234
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(m, { value: e, readOnly: !0 }) }),
|
|
235
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
236
|
-
v,
|
|
237
|
-
{
|
|
238
|
-
value: N.find(
|
|
239
|
-
(u) => u.value === c[e].fieldType
|
|
240
|
-
),
|
|
241
|
-
isDisabled: !0
|
|
242
|
-
}
|
|
243
|
-
) }),
|
|
244
|
-
/* @__PURE__ */ n("div", { children: c[e].fieldType === r.DATE ? /* @__PURE__ */ n(
|
|
245
|
-
v,
|
|
246
|
-
{
|
|
247
|
-
value: w.find(
|
|
248
|
-
(u) => u.value === c[e].value
|
|
249
|
-
),
|
|
250
|
-
isDisabled: !0
|
|
251
|
-
}
|
|
252
|
-
) : c[e].fieldType === r.CHECKBOX ? /* @__PURE__ */ n(
|
|
253
|
-
v,
|
|
254
|
-
{
|
|
255
|
-
value: E.find(
|
|
256
|
-
(u) => u.value === c[e].value
|
|
257
|
-
),
|
|
258
|
-
isDisabled: !0
|
|
259
|
-
}
|
|
260
|
-
) : /* @__PURE__ */ n(m, { value: c[e].value, readOnly: !0 }) }),
|
|
261
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
262
|
-
v,
|
|
263
|
-
{
|
|
264
|
-
value: f.find(
|
|
265
|
-
(u) => u.value === c[e].whenToWrite
|
|
266
|
-
),
|
|
267
|
-
isDisabled: !0
|
|
268
|
-
}
|
|
269
|
-
) }),
|
|
270
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
271
|
-
_,
|
|
272
|
-
{
|
|
273
|
-
StartIcon: "trash",
|
|
274
|
-
variant: "icon",
|
|
275
|
-
color: "destructive",
|
|
276
|
-
onClick: () => {
|
|
277
|
-
const u = c;
|
|
278
|
-
delete c[e], o("onBookingWriteToRecordFields", u);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
) })
|
|
282
|
-
] }, e)),
|
|
283
|
-
/* @__PURE__ */ l("div", { className: "mt-2 grid grid-cols-5 gap-4", children: [
|
|
284
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
285
|
-
m,
|
|
286
|
-
{
|
|
287
|
-
value: i.field,
|
|
288
|
-
onChange: (e) => g({
|
|
289
|
-
...i,
|
|
290
|
-
field: e.target.value
|
|
291
|
-
})
|
|
292
|
-
}
|
|
293
|
-
) }),
|
|
294
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
295
|
-
v,
|
|
296
|
-
{
|
|
297
|
-
options: N,
|
|
298
|
-
value: p,
|
|
299
|
-
onChange: (e) => {
|
|
300
|
-
e && (te(e), g({
|
|
301
|
-
...i,
|
|
302
|
-
fieldType: e.value,
|
|
303
|
-
...e.value === r.DATE && { value: I.value },
|
|
304
|
-
...e.value === r.CHECKBOX && {
|
|
305
|
-
value: P.value
|
|
306
|
-
}
|
|
307
|
-
}));
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
) }),
|
|
311
|
-
/* @__PURE__ */ n("div", { children: p.value === r.DATE ? /* @__PURE__ */ n(
|
|
312
|
-
v,
|
|
313
|
-
{
|
|
314
|
-
options: w,
|
|
315
|
-
value: I,
|
|
316
|
-
onChange: (e) => {
|
|
317
|
-
e && (de(e), g({
|
|
318
|
-
...i,
|
|
319
|
-
value: e.value
|
|
320
|
-
}));
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
) : p.value === r.CHECKBOX ? /* @__PURE__ */ n(
|
|
324
|
-
v,
|
|
325
|
-
{
|
|
326
|
-
options: E,
|
|
327
|
-
value: P,
|
|
328
|
-
onChange: (e) => {
|
|
329
|
-
e && (re(e), g({
|
|
330
|
-
...i,
|
|
331
|
-
value: e.value
|
|
332
|
-
}));
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
) : /* @__PURE__ */ n(
|
|
336
|
-
m,
|
|
337
|
-
{
|
|
338
|
-
value: i.value,
|
|
339
|
-
onChange: (e) => g({
|
|
340
|
-
...i,
|
|
341
|
-
value: e.target.value
|
|
342
|
-
})
|
|
343
|
-
}
|
|
344
|
-
) }),
|
|
345
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
346
|
-
v,
|
|
347
|
-
{
|
|
348
|
-
options: f,
|
|
349
|
-
value: ie,
|
|
350
|
-
onChange: (e) => {
|
|
351
|
-
e && (ce(e), g({
|
|
352
|
-
...i,
|
|
353
|
-
whenToWrite: e.value
|
|
354
|
-
}));
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
) })
|
|
358
|
-
] })
|
|
359
|
-
] }),
|
|
360
|
-
/* @__PURE__ */ n(
|
|
361
|
-
_,
|
|
362
|
-
{
|
|
363
|
-
className: "mt-2",
|
|
364
|
-
size: "sm",
|
|
365
|
-
disabled: !(i.field && i.fieldType && i.value !== "" && i.whenToWrite),
|
|
366
|
-
onClick: () => {
|
|
367
|
-
if (Object.keys(c).includes(
|
|
368
|
-
h.field.trim()
|
|
369
|
-
)) {
|
|
370
|
-
G("Field already exists", "error");
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
o("onBookingWriteToRecordFields", {
|
|
374
|
-
...c,
|
|
375
|
-
[i.field.trim()]: {
|
|
376
|
-
fieldType: i.fieldType,
|
|
377
|
-
value: i.value,
|
|
378
|
-
whenToWrite: i.whenToWrite
|
|
379
|
-
}
|
|
380
|
-
}), g({
|
|
381
|
-
field: "",
|
|
382
|
-
fieldType: p.value,
|
|
383
|
-
value: "",
|
|
384
|
-
whenToWrite: O.FIELD_EMPTY
|
|
385
|
-
});
|
|
386
|
-
},
|
|
387
|
-
children: a("add_new_field")
|
|
388
|
-
}
|
|
389
|
-
)
|
|
390
|
-
] }) : null
|
|
391
|
-
] }),
|
|
392
|
-
/* @__PURE__ */ n("div", { className: "mt-4", children: /* @__PURE__ */ n(
|
|
393
|
-
s,
|
|
394
|
-
{
|
|
395
|
-
label: "Change record owner on booking",
|
|
396
|
-
labelOnLeading: !0,
|
|
397
|
-
checked: y,
|
|
398
|
-
onCheckedChange: (e) => {
|
|
399
|
-
o("onBookingChangeRecordOwner", e);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
) }),
|
|
403
|
-
y ? /* @__PURE__ */ l("div", { className: "ml-2 mt-2", children: [
|
|
404
|
-
/* @__PURE__ */ n("p", { className: "mb-2", children: a("salesforce_owner_name_to_change") }),
|
|
405
|
-
/* @__PURE__ */ n(
|
|
406
|
-
m,
|
|
407
|
-
{
|
|
408
|
-
value: ee,
|
|
409
|
-
onChange: (e) => o("onBookingChangeRecordOwnerName", e.target.value)
|
|
410
|
-
}
|
|
411
|
-
)
|
|
412
|
-
] }) : null,
|
|
413
|
-
W.schedulingType === be.ROUND_ROBIN ? /* @__PURE__ */ l("div", { className: "mt-4", children: [
|
|
414
|
-
/* @__PURE__ */ n(
|
|
415
|
-
s,
|
|
416
|
-
{
|
|
417
|
-
label: a("salesforce_book_directly_with_attendee_owner"),
|
|
418
|
-
labelOnLeading: !0,
|
|
419
|
-
checked: B,
|
|
420
|
-
onCheckedChange: (e) => {
|
|
421
|
-
o("roundRobinLeadSkip", e), e && o("enabled", e);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
),
|
|
425
|
-
B ? /* @__PURE__ */ l(F, { children: [
|
|
426
|
-
/* @__PURE__ */ l("div", { className: "my-4 ml-2", children: [
|
|
427
|
-
/* @__PURE__ */ n("label", { className: "text-emphasis mb-2 align-text-top text-sm font-medium", children: a("salesforce_check_owner_of") }),
|
|
428
|
-
/* @__PURE__ */ n(
|
|
429
|
-
v,
|
|
430
|
-
{
|
|
431
|
-
className: "mt-2 w-60",
|
|
432
|
-
options: A,
|
|
433
|
-
value: U,
|
|
434
|
-
onChange: (e) => {
|
|
435
|
-
e && (se(e), o("roundRobinSkipCheckRecordOn", e.value));
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
)
|
|
439
|
-
] }),
|
|
440
|
-
U.value === d.CONTACT ? /* @__PURE__ */ n("div", { className: "my-4", children: /* @__PURE__ */ n(
|
|
441
|
-
s,
|
|
442
|
-
{
|
|
443
|
-
label: a("salesforce_round_robin_skip_fallback_to_lead_owner"),
|
|
444
|
-
labelOnLeading: !0,
|
|
445
|
-
checked: le,
|
|
446
|
-
onCheckedChange: (e) => {
|
|
447
|
-
o("roundRobinSkipFallbackToLeadOwner", e);
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
) }) : null,
|
|
451
|
-
/* @__PURE__ */ n("div", { className: "my-4", children: /* @__PURE__ */ n(
|
|
452
|
-
s,
|
|
453
|
-
{
|
|
454
|
-
label: a("salesforce_if_free_email_domain_skip_owner_check"),
|
|
455
|
-
labelOnLeading: !0,
|
|
456
|
-
checked: $,
|
|
457
|
-
onCheckedChange: (e) => {
|
|
458
|
-
o("ifFreeEmailDomainSkipOwnerCheck", e);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
) })
|
|
462
|
-
] }) : null,
|
|
463
|
-
/* @__PURE__ */ n(ge, { className: "mt-2", severity: "neutral", title: a("skip_rr_description") })
|
|
464
|
-
] }) : null,
|
|
465
|
-
/* @__PURE__ */ l("div", { className: "ml-2 mt-4", children: [
|
|
466
|
-
/* @__PURE__ */ n(
|
|
467
|
-
s,
|
|
468
|
-
{
|
|
469
|
-
label: "Send no show attendee data to event object",
|
|
470
|
-
checked: j,
|
|
471
|
-
onCheckedChange: (e) => {
|
|
472
|
-
o("sendNoShowAttendeeData", e);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
),
|
|
476
|
-
j ? /* @__PURE__ */ l("div", { className: "mt-2", children: [
|
|
477
|
-
/* @__PURE__ */ n("p", { className: "mb-2", children: "Field name to check (must be checkbox data type)" }),
|
|
478
|
-
/* @__PURE__ */ n(
|
|
479
|
-
m,
|
|
480
|
-
{
|
|
481
|
-
value: ne,
|
|
482
|
-
onChange: (e) => o("sendNoShowAttendeeDataField", e.target.value)
|
|
483
|
-
}
|
|
484
|
-
)
|
|
485
|
-
] }) : null
|
|
486
|
-
] })
|
|
487
|
-
] })
|
|
488
|
-
}
|
|
489
|
-
);
|
|
490
|
-
};
|
|
491
|
-
export {
|
|
492
|
-
Ee as default
|
|
493
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { s as i, t as f, v as g, q as v, W as S } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { useMemo as b, useState as C } from "react";
|
|
4
|
-
import { A as w } from "./AppCard-a2VNbyLx.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-IlX26-MP.js";
|
|
6
|
-
const W = function({
|
|
7
|
-
app: a,
|
|
8
|
-
eventType: c,
|
|
9
|
-
eventTypeFormMetadata: m
|
|
10
|
-
}) {
|
|
11
|
-
const t = i.useSearchParams(), s = i.usePathname(), h = b(
|
|
12
|
-
() => `${s}${t ? `?${t.toString()}` : ""}`,
|
|
13
|
-
[s, t]
|
|
14
|
-
), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = g(m), { t: y } = v(), r = !o && A;
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
16
|
-
w,
|
|
17
|
-
{
|
|
18
|
-
returnTo: S + 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 ? y("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
|
-
W as default
|
|
42
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { s as d, W as i } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { A as m } from "./AppCard-a2VNbyLx.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-bcfIdtzp.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,41 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { q as b, s as f, t as y, v as E, W as P } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { useState as v } from "react";
|
|
4
|
-
import { A as C } from "./AppCard-a2VNbyLx.js";
|
|
5
|
-
import { u as g } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
6
|
-
import w from "./EventTypeAppSettingsInterface-zpEk1DKo.js";
|
|
7
|
-
const W = function({
|
|
8
|
-
app: t,
|
|
9
|
-
eventType: e,
|
|
10
|
-
eventTypeFormMetadata: p
|
|
11
|
-
}) {
|
|
12
|
-
var n;
|
|
13
|
-
const { t: i } = b(), r = f.usePathname(), { getAppData: a, setAppData: m, disabled: c } = y(), { enabled: d, updateEnabled: l } = g(t), u = E(p), [h, T] = v(a("enabled")), s = !h && u;
|
|
14
|
-
return /* @__PURE__ */ o(
|
|
15
|
-
C,
|
|
16
|
-
{
|
|
17
|
-
returnTo: `${P}${r}?tabName=apps`,
|
|
18
|
-
app: t,
|
|
19
|
-
switchChecked: d,
|
|
20
|
-
switchOnClick: (A) => {
|
|
21
|
-
l(A);
|
|
22
|
-
},
|
|
23
|
-
teamId: ((n = e.team) == null ? void 0 : n.id) || void 0,
|
|
24
|
-
disableSwitch: s,
|
|
25
|
-
switchTooltip: s ? i("other_payment_app_enabled") : void 0,
|
|
26
|
-
children: /* @__PURE__ */ o(
|
|
27
|
-
w,
|
|
28
|
-
{
|
|
29
|
-
eventType: e,
|
|
30
|
-
slug: t.slug,
|
|
31
|
-
disabled: c,
|
|
32
|
-
getAppData: a,
|
|
33
|
-
setAppData: m
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
W as default
|
|
41
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { t as l, f as m } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { A as u } from "./AppCard-a2VNbyLx.js";
|
|
4
|
-
import { u as h } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
5
|
-
const D = function({ app: a, eventType: d }) {
|
|
6
|
-
var s;
|
|
7
|
-
const { getAppData: n, setAppData: r, disabled: p } = l(), i = n("SITE_ID"), { enabled: o, updateEnabled: c } = h(a);
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
9
|
-
u,
|
|
10
|
-
{
|
|
11
|
-
app: a,
|
|
12
|
-
switchOnClick: (e) => {
|
|
13
|
-
c(e);
|
|
14
|
-
},
|
|
15
|
-
switchChecked: o,
|
|
16
|
-
teamId: ((s = d.team) == null ? void 0 : s.id) || void 0,
|
|
17
|
-
children: /* @__PURE__ */ t("fieldset", { className: "space-y-2", disabled: p, children: /* @__PURE__ */ t(
|
|
18
|
-
m,
|
|
19
|
-
{
|
|
20
|
-
disabled: p,
|
|
21
|
-
name: "Site ID",
|
|
22
|
-
value: i,
|
|
23
|
-
placeholder: "Enter your Site ID",
|
|
24
|
-
onChange: (e) => {
|
|
25
|
-
r("SITE_ID", e.target.value);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
) })
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
D as default
|
|
34
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { t as m } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { A as c } from "./AppCard-a2VNbyLx.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
5
|
-
import l from "./EventTypeAppSettingsInterface-t9OOHsGu.js";
|
|
6
|
-
const b = function({ app: t, eventType: e }) {
|
|
7
|
-
var p;
|
|
8
|
-
const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
|
|
9
|
-
return /* @__PURE__ */ a(
|
|
10
|
-
c,
|
|
11
|
-
{
|
|
12
|
-
hideSettingsIcon: !0,
|
|
13
|
-
app: t,
|
|
14
|
-
switchOnClick: (d) => {
|
|
15
|
-
i(d);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: o,
|
|
18
|
-
teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
|
|
19
|
-
children: /* @__PURE__ */ a(
|
|
20
|
-
l,
|
|
21
|
-
{
|
|
22
|
-
eventType: e,
|
|
23
|
-
slug: t.slug,
|
|
24
|
-
disabled: n,
|
|
25
|
-
getAppData: r,
|
|
26
|
-
setAppData: s
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
b as default
|
|
34
|
-
};
|