@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,51 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { t as h, f as n } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { A } from "./AppCard-a2VNbyLx.js";
|
|
4
|
-
import { u as I } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
5
|
-
const E = function({ app: t, eventType: i }) {
|
|
6
|
-
var d;
|
|
7
|
-
const { getAppData: o, setAppData: s, disabled: r } = h(), l = o("MATOMO_URL"), p = o("SITE_ID"), { enabled: c, updateEnabled: m } = I(t);
|
|
8
|
-
return /* @__PURE__ */ a(
|
|
9
|
-
A,
|
|
10
|
-
{
|
|
11
|
-
hideSettingsIcon: !0,
|
|
12
|
-
app: t,
|
|
13
|
-
switchOnClick: (e) => {
|
|
14
|
-
m(e);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: c,
|
|
17
|
-
teamId: ((d = i.team) == null ? void 0 : d.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-2", children: [
|
|
19
|
-
/* @__PURE__ */ a(
|
|
20
|
-
n,
|
|
21
|
-
{
|
|
22
|
-
dataTestid: `${t.slug}-url`,
|
|
23
|
-
name: "Matomo URL",
|
|
24
|
-
placeholder: "Enter your Matomo URL here",
|
|
25
|
-
value: l,
|
|
26
|
-
disabled: r,
|
|
27
|
-
onChange: (e) => {
|
|
28
|
-
s("MATOMO_URL", e.target.value);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ a(
|
|
33
|
-
n,
|
|
34
|
-
{
|
|
35
|
-
dataTestid: `${t.slug}-site-id`,
|
|
36
|
-
disabled: r,
|
|
37
|
-
name: "Site ID",
|
|
38
|
-
placeholder: "Enter your Site ID",
|
|
39
|
-
value: p,
|
|
40
|
-
onChange: (e) => {
|
|
41
|
-
s("SITE_ID", e.target.value);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] })
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
E as default
|
|
51
|
-
};
|
|
@@ -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,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-cZcfyfGn.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
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { s as i, q as g, t as f, v as b, W as v } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { useMemo as S, useState as C } from "react";
|
|
4
|
-
import { A as w } from "./AppCard-a2VNbyLx.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-YGCAMT_H.js";
|
|
6
|
-
const W = function({
|
|
7
|
-
app: a,
|
|
8
|
-
eventType: p,
|
|
9
|
-
eventTypeFormMetadata: c
|
|
10
|
-
}) {
|
|
11
|
-
const t = i.useSearchParams(), { t: m } = g(), s = i.usePathname(), h = S(
|
|
12
|
-
() => `${s}${t ? `?${t.toString()}` : ""}`,
|
|
13
|
-
[s, t]
|
|
14
|
-
), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = b(c), r = !o && A;
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
16
|
-
w,
|
|
17
|
-
{
|
|
18
|
-
returnTo: v + 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
|
-
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,51 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import { t as m, f as p } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { A } from "./AppCard-a2VNbyLx.js";
|
|
4
|
-
import { u as I } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
5
|
-
const x = function({ app: a, eventType: s }) {
|
|
6
|
-
var i;
|
|
7
|
-
const { getAppData: r, setAppData: n, disabled: o } = m(), d = r("TRACKING_ID"), l = r("API_HOST"), { enabled: c, updateEnabled: u } = I(a);
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
9
|
-
A,
|
|
10
|
-
{
|
|
11
|
-
hideSettingsIcon: !0,
|
|
12
|
-
app: a,
|
|
13
|
-
switchOnClick: (e) => {
|
|
14
|
-
u(e);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: c,
|
|
17
|
-
teamId: ((i = s.team) == null ? void 0 : i.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
19
|
-
/* @__PURE__ */ t(
|
|
20
|
-
p,
|
|
21
|
-
{
|
|
22
|
-
required: !0,
|
|
23
|
-
disabled: o,
|
|
24
|
-
name: "Tracking ID",
|
|
25
|
-
value: d,
|
|
26
|
-
placeholder: "Enter your Tracking ID",
|
|
27
|
-
onChange: (e) => {
|
|
28
|
-
n("TRACKING_ID", e.target.value);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ t(
|
|
33
|
-
p,
|
|
34
|
-
{
|
|
35
|
-
required: !0,
|
|
36
|
-
disabled: o,
|
|
37
|
-
name: "Api host",
|
|
38
|
-
value: l,
|
|
39
|
-
placeholder: "Enter your Api host url",
|
|
40
|
-
onChange: (e) => {
|
|
41
|
-
n("API_HOST", e.target.value);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] })
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
x as default
|
|
51
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { jsx as t, Fragment as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { s as v, q as F, t as T, w as a, W as _, x as L, f as V, S as x } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { useMemo as W, useState as p } from "react";
|
|
4
|
-
import { A as $ } from "./AppCard-a2VNbyLx.js";
|
|
5
|
-
import { c as g, i as j, a as C } from "./currencyOptions-kannG2hu.js";
|
|
6
|
-
const H = function({ app: S, eventType: A }) {
|
|
7
|
-
var f, h;
|
|
8
|
-
const i = v.useSearchParams(), d = v.usePathname(), P = W(
|
|
9
|
-
() => `${d}${i ? `?${i.toString()}` : ""}`,
|
|
10
|
-
[d, i]
|
|
11
|
-
), { t: n } = F(), { getAppData: r, setAppData: c } = T(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(g.find((e) => e.value === l)), [w, E] = p(
|
|
12
|
-
j(l) ? C[l] : ""
|
|
13
|
-
), [b, q] = p(N), m = ((f = a) == null ? void 0 : f.find((e) => k === e.value)) || {
|
|
14
|
-
label: a[0].label,
|
|
15
|
-
value: a[0].value
|
|
16
|
-
}, D = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
17
|
-
return /* @__PURE__ */ t(
|
|
18
|
-
$,
|
|
19
|
-
{
|
|
20
|
-
returnTo: _ + P,
|
|
21
|
-
app: S,
|
|
22
|
-
switchChecked: b,
|
|
23
|
-
switchOnClick: (e) => {
|
|
24
|
-
q(e);
|
|
25
|
-
},
|
|
26
|
-
description: /* @__PURE__ */ t(o, { children: "Add a mock payment to your events" }),
|
|
27
|
-
children: /* @__PURE__ */ t(o, { children: D ? /* @__PURE__ */ t(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
|
|
28
|
-
/* @__PURE__ */ t("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ t(
|
|
29
|
-
V,
|
|
30
|
-
{
|
|
31
|
-
id: "test-mock-payment-app-price",
|
|
32
|
-
label: "Price",
|
|
33
|
-
labelSrOnly: !0,
|
|
34
|
-
addOnLeading: w,
|
|
35
|
-
addOnSuffix: l,
|
|
36
|
-
step: "0.01",
|
|
37
|
-
min: "0.5",
|
|
38
|
-
type: "number",
|
|
39
|
-
required: !0,
|
|
40
|
-
className: "block w-full rounded-sm pl-2 text-sm",
|
|
41
|
-
placeholder: "Price",
|
|
42
|
-
onChange: (e) => {
|
|
43
|
-
c("price", Number(e.target.value) * 100), s && c("currency", s.value);
|
|
44
|
-
},
|
|
45
|
-
value: y > 0 ? y / 100 : void 0
|
|
46
|
-
}
|
|
47
|
-
) }),
|
|
48
|
-
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
49
|
-
/* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
50
|
-
/* @__PURE__ */ t(
|
|
51
|
-
x,
|
|
52
|
-
{
|
|
53
|
-
id: "test-mock-payment-app-currency-id",
|
|
54
|
-
variant: "default",
|
|
55
|
-
options: g,
|
|
56
|
-
value: s,
|
|
57
|
-
className: "text-black",
|
|
58
|
-
defaultValue: s,
|
|
59
|
-
onChange: (e) => {
|
|
60
|
-
e && (O(e), E(C[e.value]), c("currency", e.value));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
66
|
-
/* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
67
|
-
/* @__PURE__ */ t(
|
|
68
|
-
x,
|
|
69
|
-
{
|
|
70
|
-
defaultValue: m ? { ...m, label: n(m.label) } : { ...a[0], label: n(a[0].label) },
|
|
71
|
-
options: a.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
72
|
-
onChange: (e) => {
|
|
73
|
-
e && c("paymentOption", e.value);
|
|
74
|
-
},
|
|
75
|
-
className: "mb-1 h-[38px] w-full",
|
|
76
|
-
isDisabled: !1
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
] })
|
|
80
|
-
] }) })
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
H as default
|
|
86
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { t as m, q as f } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { A as l } from "./AppCard-a2VNbyLx.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
5
|
-
import A from "./EventTypeAppSettingsInterface-mb6aW1Vk.js";
|
|
6
|
-
const w = 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
|
-
w as default
|
|
34
|
-
};
|
|
@@ -1,33 +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 as l } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
5
|
-
import u from "./EventTypeAppSettingsInterface-VctSrf5M.js";
|
|
6
|
-
const g = function({ eventType: e, app: t }) {
|
|
7
|
-
var p;
|
|
8
|
-
const { enabled: r, updateEnabled: s } = l(t), { disabled: o, getAppData: n, setAppData: d } = m();
|
|
9
|
-
return /* @__PURE__ */ a(
|
|
10
|
-
c,
|
|
11
|
-
{
|
|
12
|
-
app: t,
|
|
13
|
-
switchOnClick: (i) => {
|
|
14
|
-
s(i);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: r,
|
|
17
|
-
teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ a(
|
|
19
|
-
u,
|
|
20
|
-
{
|
|
21
|
-
eventType: e,
|
|
22
|
-
slug: t.slug,
|
|
23
|
-
disabled: o,
|
|
24
|
-
getAppData: n,
|
|
25
|
-
setAppData: d
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
g as default
|
|
33
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { q as b, s as f, t as E, v, W as y } from "./index-E1a1GKmY.js";
|
|
3
|
-
import { useState as C } from "react";
|
|
4
|
-
import { A as P } from "./AppCard-a2VNbyLx.js";
|
|
5
|
-
import { u as g } from "./useIsAppEnabled-bcfIdtzp.js";
|
|
6
|
-
import w from "./EventTypeAppSettingsInterface-HjjrUG-6.js";
|
|
7
|
-
const W = function({
|
|
8
|
-
app: t,
|
|
9
|
-
eventType: e,
|
|
10
|
-
eventTypeFormMetadata: n
|
|
11
|
-
}) {
|
|
12
|
-
var o;
|
|
13
|
-
const { t: i } = b(), r = f.usePathname(), { getAppData: a, setAppData: c, disabled: m } = E(), { enabled: d, updateEnabled: l } = g(t), u = v(n), [h] = C(a("enabled")), s = !h && u;
|
|
14
|
-
return /* @__PURE__ */ p(
|
|
15
|
-
P,
|
|
16
|
-
{
|
|
17
|
-
returnTo: `${y}${r}?tabName=apps`,
|
|
18
|
-
app: t,
|
|
19
|
-
switchChecked: d,
|
|
20
|
-
switchOnClick: (A) => {
|
|
21
|
-
l(A);
|
|
22
|
-
},
|
|
23
|
-
teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
|
|
24
|
-
disableSwitch: s,
|
|
25
|
-
switchTooltip: s ? i("other_payment_app_enabled") : void 0,
|
|
26
|
-
children: /* @__PURE__ */ p(
|
|
27
|
-
w,
|
|
28
|
-
{
|
|
29
|
-
eventType: e,
|
|
30
|
-
slug: t.slug,
|
|
31
|
-
disabled: m,
|
|
32
|
-
getAppData: a,
|
|
33
|
-
setAppData: c
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
W as default
|
|
41
|
-
};
|
|
@@ -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-XljkqZTl.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
|
-
};
|
|
@@ -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 { y as p, S as h } from "./index-E1a1GKmY.js";
|
|
4
|
-
const P = ({}) => {
|
|
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
|
-
P as default
|
|
48
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as x, useEffect as P } from "react";
|
|
3
|
-
import { q as k, x as p, f as w, S as K } from "./index-E1a1GKmY.js";
|
|
4
|
-
const f = [
|
|
5
|
-
"BIF",
|
|
6
|
-
"CLP",
|
|
7
|
-
"DJF",
|
|
8
|
-
"GNF",
|
|
9
|
-
"JPY",
|
|
10
|
-
"KMF",
|
|
11
|
-
"KRW",
|
|
12
|
-
"MGA",
|
|
13
|
-
"PYG",
|
|
14
|
-
"RWF",
|
|
15
|
-
"UGX",
|
|
16
|
-
"VND",
|
|
17
|
-
"VUV",
|
|
18
|
-
"XAF",
|
|
19
|
-
"XOF",
|
|
20
|
-
"XPF"
|
|
21
|
-
], U = (e, a) => f.includes(a.toUpperCase()) ? e : Math.round(e * 100), _ = (e, a) => f.includes(a.toUpperCase()) ? e : e / 100, V = [
|
|
22
|
-
{
|
|
23
|
-
label: "on_booking_option",
|
|
24
|
-
value: "ON_BOOKING"
|
|
25
|
-
}
|
|
26
|
-
], r = [
|
|
27
|
-
{ label: "United States dollar (USD)", value: "usd" },
|
|
28
|
-
{ label: "Singapore dollar (SGD)", value: "sgd" },
|
|
29
|
-
{ label: "Malaysian ringgit (MYR)", value: "myr" },
|
|
30
|
-
{ label: "Indonesian rupiah (IDR)", value: "idr" },
|
|
31
|
-
{ label: "Japanese yen (JPY)", value: "jpy" },
|
|
32
|
-
{ label: "Hong Kong dollar (HKD)", value: "hkd" },
|
|
33
|
-
{ label: "Thai baht (THB)", value: "thb" },
|
|
34
|
-
{ label: "Australian dollar (AUD)", value: "aud" },
|
|
35
|
-
{ label: "New Zealand dollar (NZD)", value: "nzd" },
|
|
36
|
-
{ label: "British pound sterling (GBP)", value: "gbp" },
|
|
37
|
-
{ label: "Philippine peso (PHP)", value: "php" },
|
|
38
|
-
{ label: "Indian rupee (INR)", value: "inr" },
|
|
39
|
-
{ label: "Chinese yuan (CNY)", value: "cny" },
|
|
40
|
-
{ label: "Euro (EUR)", value: "eur" },
|
|
41
|
-
{ label: "Swiss franc (CHF)", value: "chf" },
|
|
42
|
-
{ label: "Danish krone (DKK)", value: "dkk" },
|
|
43
|
-
{ label: "Swedish krona (SEK)", value: "sek" },
|
|
44
|
-
{ label: "Norwegian krone (NOK)", value: "nok" },
|
|
45
|
-
{ label: "Vietnamese đồng (VND)", value: "vnd" },
|
|
46
|
-
{ label: "Canadian dollar (CAD)", value: "cad" },
|
|
47
|
-
{ label: "South Korean won (KRW)", value: "krw" }
|
|
48
|
-
], R = ({
|
|
49
|
-
getAppData: e,
|
|
50
|
-
setAppData: a,
|
|
51
|
-
disabled: h,
|
|
52
|
-
eventType: d
|
|
53
|
-
}) => {
|
|
54
|
-
var b;
|
|
55
|
-
const m = e("price"), t = e("currency") || r[0].value, [i, g] = x(
|
|
56
|
-
r.find((l) => l.value === t) || {
|
|
57
|
-
label: r[0].label,
|
|
58
|
-
value: r[0].value
|
|
59
|
-
}
|
|
60
|
-
), S = e("paymentOption"), c = e("enabled"), { t: s } = k(), v = ((b = d.recurringEvent) == null ? void 0 : b.count) !== void 0, N = !!d.seatsPerTimeSlot, C = (l, y) => 0 .toLocaleString(l, {
|
|
61
|
-
style: "currency",
|
|
62
|
-
currency: y,
|
|
63
|
-
minimumFractionDigits: 0,
|
|
64
|
-
maximumFractionDigits: 0
|
|
65
|
-
}).replace(/\d/g, "").trim();
|
|
66
|
-
P(() => {
|
|
67
|
-
c && (e("currency") || a("currency", r[0].value), e("paymentOption") || a("paymentOption", V[0].value));
|
|
68
|
-
}, [c, e, a]);
|
|
69
|
-
const F = (l) => {
|
|
70
|
-
const O = Math.floor(l).toString();
|
|
71
|
-
return parseInt(O);
|
|
72
|
-
};
|
|
73
|
-
return /* @__PURE__ */ u(o, { children: [
|
|
74
|
-
v && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("warning_recurring_event_payment") }),
|
|
75
|
-
!v && c && /* @__PURE__ */ u(o, { children: [
|
|
76
|
-
/* @__PURE__ */ n("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ n(
|
|
77
|
-
w,
|
|
78
|
-
{
|
|
79
|
-
"data-testid": "stripe-price-input",
|
|
80
|
-
label: s("price"),
|
|
81
|
-
className: "h-[38px]",
|
|
82
|
-
addOnLeading: /* @__PURE__ */ n(o, { children: i.value ? C("en", i.value) : "" }),
|
|
83
|
-
addOnSuffix: t.toUpperCase(),
|
|
84
|
-
addOnClassname: "h-[38px]",
|
|
85
|
-
step: "1",
|
|
86
|
-
min: "1",
|
|
87
|
-
type: "number",
|
|
88
|
-
required: !0,
|
|
89
|
-
placeholder: "Price",
|
|
90
|
-
disabled: h,
|
|
91
|
-
onChange: (l) => {
|
|
92
|
-
a("price", U(Number(l.target.value), t));
|
|
93
|
-
},
|
|
94
|
-
value: m > 0 ? F(_(m, t)) : void 0
|
|
95
|
-
}
|
|
96
|
-
) }),
|
|
97
|
-
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
98
|
-
/* @__PURE__ */ n("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: s("currency") }),
|
|
99
|
-
/* @__PURE__ */ n(
|
|
100
|
-
K,
|
|
101
|
-
{
|
|
102
|
-
"data-testid": "stripe-currency-select",
|
|
103
|
-
variant: "default",
|
|
104
|
-
options: r,
|
|
105
|
-
value: i,
|
|
106
|
-
className: "text-black",
|
|
107
|
-
defaultValue: i,
|
|
108
|
-
onChange: (l) => {
|
|
109
|
-
l && (g(l), a("currency", l.value));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
] }),
|
|
114
|
-
N && S === "HOLD" && /* @__PURE__ */ n(p, { className: "mt-2", severity: "warning", title: s("seats_and_no_show_fee_error") })
|
|
115
|
-
] })
|
|
116
|
-
] });
|
|
117
|
-
};
|
|
118
|
-
export {
|
|
119
|
-
R as default
|
|
120
|
-
};
|