@calcom/atoms 1.2.0 → 1.3.0-booker
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/dist/{AddressInput-UbZjE-tI.js → AddressInput-WXZaR4AM.js} +3 -3
- package/dist/{AlbyPriceComponent-FDWNfR07.js → AlbyPriceComponent-HWQCTeD1.js} +19 -19
- package/dist/{PhoneInput-thLHoHkm.js → PhoneInput-6J6htPeB.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-7pq3HQ5u.js +1957 -0
- package/dist/index-SbGDY58y.js +83444 -0
- package/dist/{index-VHCLgyWQ.js → index-aGnAhRxt.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 +2 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +3 -0
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +4 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getCalEventResponses.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +6 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +8 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +6 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.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 +3 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/round-robin.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/round-robin.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/pages/payment.d.ts +1 -0
- package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
- 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/components/WorkflowDetailsPage.d.ts +8 -0
- package/dist/packages/features/ee/workflows/components/WorkflowDetailsPage.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts +2 -0
- package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/constants.d.ts +1 -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/getOptions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/schema.d.ts +5 -4
- package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/pages/index.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/pages/workflow.d.ts +1 -5
- package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/AddMembersWithSwitch.d.ts +2 -1
- package/dist/packages/features/eventtypes/components/AddMembersWithSwitch.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts +5 -2
- package/dist/packages/features/eventtypes/components/CheckedTeamSelect.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/DuplicateDialog.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EventType.d.ts +1 -0
- package/dist/packages/features/eventtypes/components/EventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/HostEditDialogs.d.ts +2 -0
- package/dist/packages/features/eventtypes/components/HostEditDialogs.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +6 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +1 -0
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +9 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts +8 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
- package/dist/packages/features/shell/Shell.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +6 -0
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/types.d.ts +12 -1
- package/dist/packages/platform/atoms/availability/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
- package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts +1 -1
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts.map +1 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +4 -1
- package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/DestinationCalendar.d.ts +11 -0
- package/dist/packages/platform/atoms/destination-calendar/DestinationCalendar.d.ts.map +1 -1
- package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +3 -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 +6 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +1 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +6 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.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/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +4 -0
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useMe.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/useMe.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/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +26 -1
- package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/libraries/private-links.d.ts +3 -0
- package/dist/packages/platform/libraries/private-links.d.ts.map +1 -0
- package/dist/packages/platform/libraries/schedules.d.ts +1 -0
- package/dist/packages/platform/libraries/schedules.d.ts.map +1 -1
- package/dist/packages/platform/libraries/slots.d.ts +6 -0
- package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/index.d.ts +2 -0
- package/dist/packages/platform/types/event-types/index.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts +10 -0
- package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts.map +1 -0
- package/dist/packages/platform/types/event-types/outputs/private-link.output.d.ts +35 -0
- package/dist/packages/platform/types/event-types/outputs/private-link.output.d.ts.map +1 -0
- package/dist/packages/platform/types/index.d.ts +1 -0
- package/dist/packages/platform/types/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/agent.d.ts +44 -0
- package/dist/packages/prisma/zod/agent.d.ts.map +1 -0
- package/dist/packages/prisma/zod/calaiphonenumber.d.ts +66 -0
- package/dist/packages/prisma/zod/calaiphonenumber.d.ts.map +1 -0
- package/dist/packages/prisma/zod/custom/eventtype.d.ts +10 -0
- package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/eventtype.d.ts +10 -1
- package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/host.d.ts +9 -1
- package/dist/packages/prisma/zod/host.d.ts.map +1 -1
- package/dist/packages/prisma/zod/hostgroup.d.ts +32 -0
- package/dist/packages/prisma/zod/hostgroup.d.ts.map +1 -0
- package/dist/packages/prisma/zod/index.d.ts +3 -0
- package/dist/packages/prisma/zod/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/membership.d.ts +2 -1
- package/dist/packages/prisma/zod/membership.d.ts.map +1 -1
- package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
- package/dist/packages/prisma/zod/team.d.ts +3 -1
- package/dist/packages/prisma/zod/team.d.ts.map +1 -1
- package/dist/packages/prisma/zod/user.d.ts +3 -1
- package/dist/packages/prisma/zod/user.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -2
- package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowstep.d.ts +8 -3
- package/dist/packages/prisma/zod/workflowstep.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +24 -0
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +12634 -3343
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +155 -7
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +12 -2
- 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-wE044EKu.js +0 -281
- package/dist/AppListCardPlatformWrapper-S2MLpR9q.js +0 -9
- package/dist/AppListCardWebWrapper-Ekd6d78j.js +0 -74
- package/dist/AppSettingsInterface-9HiSjvfg.js +0 -23
- package/dist/AppSettingsInterface-LmBoyPF3.js +0 -75
- package/dist/AppSettingsInterface-Q3voYj2J.js +0 -29
- package/dist/DateRangePicker-IpphZRIX.js +0 -74
- package/dist/EventTypeAppCardInterface-0tvjBecr.js +0 -39
- package/dist/EventTypeAppCardInterface-2KJr-V7Z.js +0 -33
- package/dist/EventTypeAppCardInterface-3x27P7ps.js +0 -34
- package/dist/EventTypeAppCardInterface-6XEXNBzn.js +0 -34
- package/dist/EventTypeAppCardInterface-7NR3doEG.js +0 -31
- package/dist/EventTypeAppCardInterface-EPMIwLGd.js +0 -39
- package/dist/EventTypeAppCardInterface-F93MhSNn.js +0 -24
- package/dist/EventTypeAppCardInterface-KjL7y7bt.js +0 -51
- package/dist/EventTypeAppCardInterface-P_G5YRV_.js +0 -858
- package/dist/EventTypeAppCardInterface-PktZC6Qe.js +0 -32
- package/dist/EventTypeAppCardInterface-Q7g0PqbK.js +0 -51
- package/dist/EventTypeAppCardInterface-RcBmmIx9.js +0 -34
- package/dist/EventTypeAppCardInterface-Rw_76E5Z.js +0 -41
- package/dist/EventTypeAppCardInterface-S6U1w7fe.js +0 -86
- package/dist/EventTypeAppCardInterface-YAGz7OSs.js +0 -24
- package/dist/EventTypeAppCardInterface-_JOQuDhH.js +0 -24
- package/dist/EventTypeAppCardInterface-jdO2h65F.js +0 -32
- package/dist/EventTypeAppCardInterface-kEPAtIQk.js +0 -24
- package/dist/EventTypeAppCardInterface-n8P51zUO.js +0 -34
- package/dist/EventTypeAppCardInterface-n_WO_Y6m.js +0 -41
- package/dist/EventTypeAppCardInterface-s_ShyWJo.js +0 -24
- package/dist/EventTypeAppCardInterface-sh5yauFY.js +0 -34
- package/dist/EventTypeAppCardInterface-uYCixWBP.js +0 -42
- package/dist/EventTypeAppCardInterface-uojE8EEU.js +0 -34
- package/dist/EventTypeAppCardInterface-votpw9E3.js +0 -34
- package/dist/EventTypeAppCardInterface-yyUk_C2L.js +0 -42
- package/dist/EventTypeAppCardInterface-zrl4AOk6.js +0 -49
- package/dist/EventTypeAppSettingsInterface-33K40mC3.js +0 -24
- package/dist/EventTypeAppSettingsInterface-BUDKuf38.js +0 -43
- package/dist/EventTypeAppSettingsInterface-FLyAowkl.js +0 -120
- package/dist/EventTypeAppSettingsInterface-MsLfMf4b.js +0 -78
- package/dist/EventTypeAppSettingsInterface-Ry7PH-5o.js +0 -23
- package/dist/EventTypeAppSettingsInterface-UzAwMrFq.js +0 -72
- package/dist/EventTypeAppSettingsInterface-aKWy9X9P.js +0 -25
- package/dist/EventTypeAppSettingsInterface-ekHTxFa0.js +0 -298
- package/dist/EventTypeAppSettingsInterface-fZOlGEqt.js +0 -221
- package/dist/EventTypeAppSettingsInterface-g29q2wWG.js +0 -42
- package/dist/EventTypeAppSettingsInterface-i-u_40BM.js +0 -48
- package/dist/EventTypeAppSettingsInterface-qgNiXkW7.js +0 -23
- package/dist/EventTypeAppSettingsInterface-zsCeg754.js +0 -79
- package/dist/InstallAppButton-4JTgmaHV.js +0 -14
- package/dist/InstallAppButton-HNUH1HbW.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-XwVQ7QR9.js +0 -58
- package/dist/StripePaymentForm-9JaoVglP.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-08sEbTLI.js +0 -518
- package/dist/index-NNpE702d.js +0 -30
- package/dist/index-hbI4lcmF.js +0 -160852
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/seatedRoundRobin.test.d.ts +0 -2
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/seatedRoundRobin.test.d.ts.map +0 -1
- package/dist/useIsAppEnabled-d30ejzXt.js +0 -18
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { G as h, f as n } from "./index-hbI4lcmF.js";
|
|
3
|
-
import { A as I } from "./AppCard-wE044EKu.js";
|
|
4
|
-
import { u as C } from "./useIsAppEnabled-d30ejzXt.js";
|
|
5
|
-
const R = function({ app: s, eventType: o }) {
|
|
6
|
-
var i;
|
|
7
|
-
const { getAppData: p, setAppData: r, disabled: t } = h(), c = p("SITE_ID"), d = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = C(s);
|
|
8
|
-
return /* @__PURE__ */ a(
|
|
9
|
-
I,
|
|
10
|
-
{
|
|
11
|
-
app: s,
|
|
12
|
-
switchOnClick: (e) => {
|
|
13
|
-
u(e);
|
|
14
|
-
},
|
|
15
|
-
switchChecked: l,
|
|
16
|
-
teamId: ((i = o.team) == null ? void 0 : i.id) || void 0,
|
|
17
|
-
children: /* @__PURE__ */ m("fieldset", { className: "space-y-2", disabled: t, children: [
|
|
18
|
-
/* @__PURE__ */ a(
|
|
19
|
-
n,
|
|
20
|
-
{
|
|
21
|
-
disabled: t,
|
|
22
|
-
name: "Script URL",
|
|
23
|
-
value: d,
|
|
24
|
-
defaultValue: "https://us.umami.is/script.js",
|
|
25
|
-
placeholder: "Enter the script source URL",
|
|
26
|
-
onChange: (e) => {
|
|
27
|
-
r("SCRIPT_URL", e.target.value);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
/* @__PURE__ */ a(
|
|
32
|
-
n,
|
|
33
|
-
{
|
|
34
|
-
disabled: t,
|
|
35
|
-
name: "Site ID",
|
|
36
|
-
value: c,
|
|
37
|
-
placeholder: "Enter your Site ID",
|
|
38
|
-
onChange: (e) => {
|
|
39
|
-
r("SITE_ID", e.target.value);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
] })
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
R as default
|
|
49
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as g } from "./index-hbI4lcmF.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,43 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as u } from "react";
|
|
3
|
-
import { y as p, f as h, V as v, s as x } from "./index-hbI4lcmF.js";
|
|
4
|
-
const N = ({ eventType: n, disabled: d }) => {
|
|
5
|
-
const { t: i } = p(), [r, c] = u(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
|
|
6
|
-
function s({ size: a, data: f }) {
|
|
7
|
-
const l = `https://api.qrserver.com/v1/create-qr-code/?size=${a}&data=${f}`;
|
|
8
|
-
return /* @__PURE__ */ e(v, { content: t, children: /* @__PURE__ */ e("a", { download: !0, href: l, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e(
|
|
9
|
-
"img",
|
|
10
|
-
{
|
|
11
|
-
className: x(
|
|
12
|
-
"hover:bg-muted border-default border transition hover:shadow-sm",
|
|
13
|
-
a >= 256 && "min-h-32"
|
|
14
|
-
),
|
|
15
|
-
style: { padding: a / 16, borderRadius: a / 20 },
|
|
16
|
-
width: a,
|
|
17
|
-
src: l,
|
|
18
|
-
alt: t
|
|
19
|
-
}
|
|
20
|
-
) }) });
|
|
21
|
-
}
|
|
22
|
-
return /* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-5 text-sm", children: [
|
|
23
|
-
/* @__PURE__ */ e("div", { className: "flex w-full", children: /* @__PURE__ */ e(
|
|
24
|
-
h,
|
|
25
|
-
{
|
|
26
|
-
name: "hello",
|
|
27
|
-
disabled: d,
|
|
28
|
-
value: r,
|
|
29
|
-
onChange: (a) => c(a.target.value),
|
|
30
|
-
label: i("additional_url_parameters"),
|
|
31
|
-
containerClassName: "w-full"
|
|
32
|
-
}
|
|
33
|
-
) }),
|
|
34
|
-
/* @__PURE__ */ o("div", { className: "max-w-60 flex items-baseline gap-2", children: [
|
|
35
|
-
/* @__PURE__ */ e(s, { size: 256, data: t }),
|
|
36
|
-
/* @__PURE__ */ e(s, { size: 128, data: t }),
|
|
37
|
-
/* @__PURE__ */ e(s, { size: 64, data: t })
|
|
38
|
-
] })
|
|
39
|
-
] });
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
N as default
|
|
43
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as P, useEffect as k } from "react";
|
|
3
|
-
import { y as x, M as p, f as w, S as K } from "./index-hbI4lcmF.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
|
-
], M = ({
|
|
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] = P(
|
|
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 } = x(), 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
|
-
k(() => {
|
|
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
|
-
M as default
|
|
120
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as m, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { useState as o, useEffect as _ } from "react";
|
|
3
|
-
import { c as i, i as k, a as S } from "./currencyOptions-kannG2hu.js";
|
|
4
|
-
import { Q as r, y as E, M as x, f as F, R as T, U as q, S as O } from "./index-hbI4lcmF.js";
|
|
5
|
-
const H = ({
|
|
6
|
-
getAppData: n,
|
|
7
|
-
setAppData: t,
|
|
8
|
-
eventType: d
|
|
9
|
-
}) => {
|
|
10
|
-
var p, h;
|
|
11
|
-
const y = n("price"), a = n("currency") || i[0].value, [s, N] = o(i.find((e) => e.value === a)), [C, P] = o(
|
|
12
|
-
k(a) ? S[a] : ""
|
|
13
|
-
), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
|
|
14
|
-
label: r[0].label,
|
|
15
|
-
value: r[0].value
|
|
16
|
-
}, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), g = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
17
|
-
return _(() => {
|
|
18
|
-
v && (n("currency") || t("currency", i[0].value), n("paymentOption") || t("paymentOption", r[0].value));
|
|
19
|
-
}, []), g ? /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(w, { children: [
|
|
20
|
-
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
21
|
-
F,
|
|
22
|
-
{
|
|
23
|
-
label: "Price",
|
|
24
|
-
labelSrOnly: !0,
|
|
25
|
-
addOnLeading: C,
|
|
26
|
-
addOnSuffix: a,
|
|
27
|
-
step: "0.01",
|
|
28
|
-
min: "0.5",
|
|
29
|
-
type: "number",
|
|
30
|
-
required: !0,
|
|
31
|
-
className: "block w-full rounded-sm pl-2 text-sm",
|
|
32
|
-
placeholder: "Price",
|
|
33
|
-
"data-testid": "paypal-price-input",
|
|
34
|
-
onChange: (e) => {
|
|
35
|
-
t("price", T(Number(e.target.value), a)), s && t("currency", s.value);
|
|
36
|
-
},
|
|
37
|
-
value: y > 0 ? q(y, a) : void 0
|
|
38
|
-
}
|
|
39
|
-
) }),
|
|
40
|
-
/* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
|
|
41
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: c("currency") }),
|
|
42
|
-
/* @__PURE__ */ l(
|
|
43
|
-
O,
|
|
44
|
-
{
|
|
45
|
-
variant: "default",
|
|
46
|
-
"data-testid": "paypal-currency-select",
|
|
47
|
-
options: i,
|
|
48
|
-
value: s,
|
|
49
|
-
className: "text-black",
|
|
50
|
-
defaultValue: s,
|
|
51
|
-
onChange: (e) => {
|
|
52
|
-
e && (N(e), P(S[e.value]), t("currency", e.value));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ m("div", { className: "mt-4 w-60", children: [
|
|
58
|
-
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
59
|
-
/* @__PURE__ */ l(
|
|
60
|
-
O,
|
|
61
|
-
{
|
|
62
|
-
"data-testid": "paypal-payment-option-select",
|
|
63
|
-
defaultValue: u ? { ...u, label: c(u.label) } : { ...r[0], label: c(r[0].label) },
|
|
64
|
-
options: r.map((e) => ({ ...e, label: c(e.label) || e.label })),
|
|
65
|
-
onChange: (e) => {
|
|
66
|
-
e && t("paymentOption", e.value);
|
|
67
|
-
},
|
|
68
|
-
className: "mb-1 h-[38px] w-full",
|
|
69
|
-
isDisabled: b
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
] }),
|
|
73
|
-
b && f === "HOLD" && /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
|
|
74
|
-
] }) : null;
|
|
75
|
-
};
|
|
76
|
-
export {
|
|
77
|
-
H as default
|
|
78
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as o } from "./index-hbI4lcmF.js";
|
|
3
|
-
const p = ({
|
|
4
|
-
getAppData: t,
|
|
5
|
-
setAppData: e,
|
|
6
|
-
disabled: a
|
|
7
|
-
}) => {
|
|
8
|
-
const n = t("trackingId");
|
|
9
|
-
return /* @__PURE__ */ i(
|
|
10
|
-
o,
|
|
11
|
-
{
|
|
12
|
-
name: "Tracking ID",
|
|
13
|
-
value: n,
|
|
14
|
-
disabled: a,
|
|
15
|
-
onChange: (r) => {
|
|
16
|
-
e("trackingId", r.target.value);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
p as default
|
|
23
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as N, useEffect as w } from "react";
|
|
3
|
-
import { y as _, a1 as t, M as g, f as C, Y as P, S as p } from "./index-hbI4lcmF.js";
|
|
4
|
-
const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
5
|
-
eventType: f,
|
|
6
|
-
getAppData: s,
|
|
7
|
-
setAppData: a
|
|
8
|
-
}) => {
|
|
9
|
-
var v, h;
|
|
10
|
-
const { t: n } = _(), i = s("price"), c = s("currency"), [r, S] = N(
|
|
11
|
-
d.find((e) => e.value === c) || d[0]
|
|
12
|
-
), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
|
|
13
|
-
label: t[0].label,
|
|
14
|
-
value: t[0].value
|
|
15
|
-
}, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), O = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
16
|
-
return w(() => {
|
|
17
|
-
!c && m && a("currency", r.value);
|
|
18
|
-
}, [c, r, a, m]), /* @__PURE__ */ l(x, { children: O ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
|
|
19
|
-
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
20
|
-
C,
|
|
21
|
-
{
|
|
22
|
-
label: "Price",
|
|
23
|
-
labelSrOnly: !0,
|
|
24
|
-
addOnLeading: /* @__PURE__ */ l(P, { className: "h-4 w-4" }),
|
|
25
|
-
addOnSuffix: r.unit || r.value,
|
|
26
|
-
type: "number",
|
|
27
|
-
required: !0,
|
|
28
|
-
className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
|
|
29
|
-
placeholder: "Price",
|
|
30
|
-
onChange: (e) => {
|
|
31
|
-
a("price", Number(e.target.value)), c && a("currency", c);
|
|
32
|
-
},
|
|
33
|
-
value: i && i > 0 ? i : void 0
|
|
34
|
-
}
|
|
35
|
-
) }),
|
|
36
|
-
/* @__PURE__ */ o("div", { className: "mt-5 w-60", children: [
|
|
37
|
-
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
38
|
-
/* @__PURE__ */ l(
|
|
39
|
-
p,
|
|
40
|
-
{
|
|
41
|
-
variant: "default",
|
|
42
|
-
options: d,
|
|
43
|
-
value: r,
|
|
44
|
-
className: "text-black",
|
|
45
|
-
defaultValue: r,
|
|
46
|
-
onChange: (e) => {
|
|
47
|
-
e && (S(e), a("currency", e.value));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] }),
|
|
52
|
-
/* @__PURE__ */ o("div", { className: "mt-2 w-60", children: [
|
|
53
|
-
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
54
|
-
/* @__PURE__ */ l(
|
|
55
|
-
p,
|
|
56
|
-
{
|
|
57
|
-
defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
|
|
58
|
-
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
59
|
-
onChange: (e) => {
|
|
60
|
-
e && a("paymentOption", e.value);
|
|
61
|
-
},
|
|
62
|
-
className: "mb-1 h-[38px] w-full",
|
|
63
|
-
isDisabled: y
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
] }),
|
|
67
|
-
y && b === "HOLD" && /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
|
|
68
|
-
] }) });
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
T as default
|
|
72
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { f as c } from "./index-hbI4lcmF.js";
|
|
3
|
-
const s = ({
|
|
4
|
-
getAppData: t,
|
|
5
|
-
setAppData: e,
|
|
6
|
-
disabled: a,
|
|
7
|
-
slug: n
|
|
8
|
-
}) => {
|
|
9
|
-
const r = t("trackingId");
|
|
10
|
-
return /* @__PURE__ */ o(
|
|
11
|
-
c,
|
|
12
|
-
{
|
|
13
|
-
dataTestid: n,
|
|
14
|
-
name: "Tracking ID",
|
|
15
|
-
value: r,
|
|
16
|
-
disabled: a,
|
|
17
|
-
onChange: (i) => {
|
|
18
|
-
e("trackingId", i.target.value);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
s as default
|
|
25
|
-
};
|