@calcom/atoms 1.0.114 → 1.1.0-booker
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/{AddressInput-VF2BcYWB.js → AddressInput-6TIOefqU.js} +3 -3
- package/dist/{AlbyPriceComponent-I4VGjeFQ.js → AlbyPriceComponent-zZlkVZTy.js} +29 -29
- package/dist/{PhoneInput-fAGB7rRq.js → PhoneInput-_EJl7Rqu.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-4kA2xtz7.js +1957 -0
- package/dist/index-ESVL5ZDq.js +82852 -0
- package/dist/{index-oT1fC7Ad.js → index-_P-UqUYu.js} +1 -1
- package/dist/packages/dayjs/locales.d.ts +1 -0
- package/dist/packages/dayjs/locales.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +2 -8
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +2 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +4 -0
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +9 -8
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts +2 -1
- package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +5 -0
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +18 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +22 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +18 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +14 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +4 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/round-robin-no-hosts.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts +5 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-reschedule-destination-calendar.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts +1 -1
- package/dist/packages/features/ee/billing/teams/team-billing.repository.interface.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +4 -0
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +1 -2
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts +0 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/Locations.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts +9 -1
- package/dist/packages/features/eventtypes/components/tabs/limits/MaxActiveBookingsPerBookerController.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
- package/dist/packages/features/shell/navigation/NavigationItem.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +14 -13
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -2
- package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +4 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/usePlatformTabsNavigations.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts +2 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +6 -0
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -32
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/repositories.d.ts +9 -0
- package/dist/packages/platform/libraries/repositories.d.ts.map +1 -0
- package/dist/packages/platform/libraries/slots.d.ts +2 -2
- package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +11 -2
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts +2 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/language.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts +2 -2
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/mark-absent.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts +4 -3
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/booking.output.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +4 -0
- package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
- package/dist/packages/prisma/zod/deployment.d.ts +3 -0
- package/dist/packages/prisma/zod/deployment.d.ts.map +1 -1
- package/dist/packages/prisma/zod/destinationcalendar.d.ts +6 -0
- package/dist/packages/prisma/zod/destinationcalendar.d.ts.map +1 -1
- package/dist/packages/prisma/zod/role.d.ts +3 -0
- package/dist/packages/prisma/zod/role.d.ts.map +1 -1
- package/dist/packages/prisma/zod/selectedcalendar.d.ts +6 -0
- package/dist/packages/prisma/zod/selectedcalendar.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +316 -3
- package/dist/packages/trpc/react/shared.d.ts +1 -1
- package/dist/packages/trpc/react/shared.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/getSchedule.handler.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/reserveSlot.handler.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +50 -2027
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/globals.min.css +3 -16
- package/package.json +6 -3
- package/dist/AppCard-pDC8U-yB.js +0 -281
- package/dist/AppListCardPlatformWrapper-loLunYWd.js +0 -9
- package/dist/AppListCardWebWrapper-D4Jf6GP2.js +0 -74
- package/dist/AppSettingsInterface-IXKzuu1x.js +0 -23
- package/dist/AppSettingsInterface-lziyfc4I.js +0 -29
- package/dist/AppSettingsInterface-ojk6jWF7.js +0 -75
- package/dist/DateRangePicker-IYx0MUpg.js +0 -2405
- package/dist/EventTypeAppCardInterface--kWvVigG.js +0 -51
- package/dist/EventTypeAppCardInterface-1KTHO3G7.js +0 -33
- package/dist/EventTypeAppCardInterface-7lVRi0Xk.js +0 -34
- package/dist/EventTypeAppCardInterface-9XBZQdMQ.js +0 -24
- package/dist/EventTypeAppCardInterface-AZo1pqDp.js +0 -41
- package/dist/EventTypeAppCardInterface-DZ4D9D3W.js +0 -24
- package/dist/EventTypeAppCardInterface-EBFdClZD.js +0 -696
- package/dist/EventTypeAppCardInterface-FZryR-1y.js +0 -49
- package/dist/EventTypeAppCardInterface-KDF7jyPv.js +0 -51
- package/dist/EventTypeAppCardInterface-N3dSZHui.js +0 -24
- package/dist/EventTypeAppCardInterface-O9SdGwyA.js +0 -86
- package/dist/EventTypeAppCardInterface-Qw1evpmE.js +0 -32
- package/dist/EventTypeAppCardInterface-Z5nEUe-1.js +0 -24
- package/dist/EventTypeAppCardInterface-a64s2iWs.js +0 -34
- package/dist/EventTypeAppCardInterface-b8raVgeq.js +0 -31
- package/dist/EventTypeAppCardInterface-eaJodJji.js +0 -42
- package/dist/EventTypeAppCardInterface-k3Xp04ki.js +0 -34
- package/dist/EventTypeAppCardInterface-mfDCf5dr.js +0 -34
- package/dist/EventTypeAppCardInterface-pHUkN5bu.js +0 -41
- package/dist/EventTypeAppCardInterface-pOYWJtzY.js +0 -34
- package/dist/EventTypeAppCardInterface-rDg3IChY.js +0 -34
- package/dist/EventTypeAppCardInterface-rgWOAhB8.js +0 -24
- package/dist/EventTypeAppCardInterface-uzfRpOdc.js +0 -32
- package/dist/EventTypeAppCardInterface-v8qGKcOE.js +0 -34
- package/dist/EventTypeAppCardInterface-xHb-ACiF.js +0 -42
- package/dist/EventTypeAppCardInterface-zHnc4Mbg.js +0 -39
- package/dist/EventTypeAppSettingsInterface-3-SZIQ-K.js +0 -25
- package/dist/EventTypeAppSettingsInterface-969looOL.js +0 -23
- package/dist/EventTypeAppSettingsInterface-98MZ7He7.js +0 -120
- package/dist/EventTypeAppSettingsInterface-9GodkYYn.js +0 -42
- package/dist/EventTypeAppSettingsInterface-CWav7rpk.js +0 -43
- package/dist/EventTypeAppSettingsInterface-VEHCbWtC.js +0 -23
- package/dist/EventTypeAppSettingsInterface-bOoXGu5X.js +0 -221
- package/dist/EventTypeAppSettingsInterface-bUpznL_v.js +0 -48
- package/dist/EventTypeAppSettingsInterface-faJm9V_Q.js +0 -24
- package/dist/EventTypeAppSettingsInterface-g8GmoGC1.js +0 -78
- package/dist/EventTypeAppSettingsInterface-om-CMCRh.js +0 -72
- package/dist/EventTypeAppSettingsInterface-tcEkCwRz.js +0 -298
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-NUfFF7w2.js +0 -14
- package/dist/InstallAppButton-kqm9kHNr.js +0 -58
- package/dist/InstallAppButton-mOs3Tny1.js +0 -14
- package/dist/StripePaymentForm-zcleIq7N.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-3rF5prT9.js +0 -518
- package/dist/index-RiT9rcSU.js +0 -28
- package/dist/index-Swazt2OL.js +0 -156147
- package/dist/useIsAppEnabled-Hz7V9bEN.js +0 -18
|
@@ -1,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-Swazt2OL.js";
|
|
3
|
-
import { useMemo as b, useState as C } from "react";
|
|
4
|
-
import { A as w } from "./AppCard-pDC8U-yB.js";
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-g8GmoGC1.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,39 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { t as m, N as o } from "./index-Swazt2OL.js";
|
|
3
|
-
import { A as u } from "./AppCard-pDC8U-yB.js";
|
|
4
|
-
import { u as h } from "./useIsAppEnabled-Hz7V9bEN.js";
|
|
5
|
-
const E = function({ eventType: a, app: s }) {
|
|
6
|
-
var n;
|
|
7
|
-
const { getAppData: l, setAppData: i } = m(), p = l("isSunrise"), { enabled: c, updateEnabled: r } = h(s);
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
9
|
-
u,
|
|
10
|
-
{
|
|
11
|
-
app: s,
|
|
12
|
-
switchOnClick: (d) => {
|
|
13
|
-
d ? (r(!0), i("isSunrise", !0)) : (r(!1), i("isSunrise", !1));
|
|
14
|
-
},
|
|
15
|
-
switchChecked: c,
|
|
16
|
-
teamId: ((n = a.team) == null ? void 0 : n.id) || void 0,
|
|
17
|
-
children: /* @__PURE__ */ e("div", { className: "mt-2 text-sm", children: [
|
|
18
|
-
/* @__PURE__ */ e("div", { className: "flex", children: [
|
|
19
|
-
/* @__PURE__ */ t("span", { className: "ltr:mr-2 rtl:ml-2", children: /* @__PURE__ */ t(o, { name: p ? "sunrise" : "sunset" }) }),
|
|
20
|
-
"I am an AppCard for Event with Title: ",
|
|
21
|
-
a.title
|
|
22
|
-
] }),
|
|
23
|
-
" ",
|
|
24
|
-
/* @__PURE__ */ e("div", { className: "mt-2", children: [
|
|
25
|
-
"Edit ",
|
|
26
|
-
/* @__PURE__ */ e("span", { className: "italic", children: [
|
|
27
|
-
"packages/app-store/",
|
|
28
|
-
s.slug,
|
|
29
|
-
"/EventTypeAppCardInterface.tsx"
|
|
30
|
-
] }),
|
|
31
|
-
" to play with me"
|
|
32
|
-
] })
|
|
33
|
-
] })
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
E as default
|
|
39
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { f as c } from "./index-Swazt2OL.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
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as o } from "./index-Swazt2OL.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: "Pixel 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,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-Swazt2OL.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
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as s } from "./index-Swazt2OL.js";
|
|
3
|
-
const p = ({
|
|
4
|
-
getAppData: a,
|
|
5
|
-
setAppData: t,
|
|
6
|
-
disabled: l,
|
|
7
|
-
slug: r
|
|
8
|
-
}) => {
|
|
9
|
-
const n = a("PLAUSIBLE_URL"), o = a("trackingId");
|
|
10
|
-
return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
11
|
-
/* @__PURE__ */ i(
|
|
12
|
-
s,
|
|
13
|
-
{
|
|
14
|
-
dataTestid: `${r}-url`,
|
|
15
|
-
name: "Plausible URL",
|
|
16
|
-
defaultValue: "https://plausible.io/js/script.js",
|
|
17
|
-
placeholder: "https://plausible.io/js/script.js",
|
|
18
|
-
value: n,
|
|
19
|
-
disabled: l,
|
|
20
|
-
onChange: (e) => {
|
|
21
|
-
t("PLAUSIBLE_URL", e.target.value);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
),
|
|
25
|
-
/* @__PURE__ */ i(
|
|
26
|
-
s,
|
|
27
|
-
{
|
|
28
|
-
dataTestid: `${r}-tracking-id`,
|
|
29
|
-
disabled: l,
|
|
30
|
-
name: "Tracked Domain",
|
|
31
|
-
placeholder: "yourdomain.com",
|
|
32
|
-
value: o,
|
|
33
|
-
onChange: (e) => {
|
|
34
|
-
t("trackingId", e.target.value);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
] });
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
p as default
|
|
42
|
-
};
|
|
@@ -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 { q as p, f as h, K as v, M as x } from "./index-Swazt2OL.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,23 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as o } from "./index-Swazt2OL.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,221 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d } from "react";
|
|
3
|
-
import { q as I, a7 as P, a8 as j, e as T, r as g, M as C, x as A, a9 as E, aa as R, N as z } from "./index-Swazt2OL.js";
|
|
4
|
-
const y = "search", k = "url", B = (s) => {
|
|
5
|
-
const { t: a } = I(), [i, l] = d(""), [p, m] = d(0), [c, v] = d(""), { isOpenDialog: D, setIsOpenDialog: O } = s, [u, b] = d(!1), [N, h] = d(""), [x, _] = d(y), w = async (n, f) => {
|
|
6
|
-
if (u)
|
|
7
|
-
return;
|
|
8
|
-
b(!0), h("");
|
|
9
|
-
const t = await fetch("/api/integrations/giphy/search", {
|
|
10
|
-
method: "POST",
|
|
11
|
-
headers: {
|
|
12
|
-
"Content-Type": "application/json"
|
|
13
|
-
},
|
|
14
|
-
body: JSON.stringify({
|
|
15
|
-
keyword: n,
|
|
16
|
-
offset: f
|
|
17
|
-
})
|
|
18
|
-
}), r = await t.json();
|
|
19
|
-
return t.ok ? (l(r.image || ""), m(r.nextOffset), r.image || h("No Result found")) : h((r == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
20
|
-
}, G = async (n) => {
|
|
21
|
-
var r;
|
|
22
|
-
if (u)
|
|
23
|
-
return;
|
|
24
|
-
b(!0), h("");
|
|
25
|
-
const f = await fetch("/api/integrations/giphy/get", {
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers: {
|
|
28
|
-
"Content-Type": "application/json"
|
|
29
|
-
},
|
|
30
|
-
body: JSON.stringify({
|
|
31
|
-
url: n
|
|
32
|
-
})
|
|
33
|
-
}), t = await f.json();
|
|
34
|
-
return f.ok ? (l(t.image || ""), t.image || h("No Result found")) : h((t == null ? void 0 : t.message) || ((r = t == null ? void 0 : t[0]) == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
35
|
-
}, S = (n, f, t) => /* @__PURE__ */ o(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
className: C(
|
|
39
|
-
"flex cursor-pointer items-center border-b-2 p-2 text-sm ",
|
|
40
|
-
x === t ? "text-default border-emphasis" : "text-subtle border-transparent"
|
|
41
|
-
),
|
|
42
|
-
onClick: () => {
|
|
43
|
-
v(""), l(""), _(t);
|
|
44
|
-
},
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ e(z, { name: n, className: "h-4 w-4 ltr:mr-2 rtl:ml-2" }),
|
|
47
|
-
f
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
), M = async (n) => {
|
|
51
|
-
n.stopPropagation(), n.preventDefault(), x === y ? w(c, 0) : x === k && G(c);
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ e(P, { open: D, onOpenChange: O, children: /* @__PURE__ */ o(j, { children: [
|
|
54
|
-
/* @__PURE__ */ e("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
|
|
55
|
-
/* @__PURE__ */ e("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
|
|
56
|
-
/* @__PURE__ */ o("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
|
|
57
|
-
S("search", a("search_giphy"), y),
|
|
58
|
-
S("link", a("add_link_from_giphy"), k)
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ o(
|
|
61
|
-
"form",
|
|
62
|
-
{
|
|
63
|
-
className: "flex w-full justify-center space-x-2 space-y-2 rtl:space-x-reverse",
|
|
64
|
-
onSubmit: M,
|
|
65
|
-
children: [
|
|
66
|
-
/* @__PURE__ */ e("div", { className: "relative block w-full pt-2", children: /* @__PURE__ */ e(
|
|
67
|
-
T,
|
|
68
|
-
{
|
|
69
|
-
type: "text",
|
|
70
|
-
placeholder: x === y ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
|
|
71
|
-
value: c,
|
|
72
|
-
onChange: (n) => {
|
|
73
|
-
v(n.target.value);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
) }),
|
|
77
|
-
/* @__PURE__ */ e(g, { type: "submit", tabIndex: -1, color: "secondary", loading: u, children: a("search") })
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
i && /* @__PURE__ */ e("div", { className: "flex flex-col items-center space-x-2 space-y-2 pt-3 rtl:space-x-reverse", children: /* @__PURE__ */ e("div", { className: "bg-subtle flex w-full items-center justify-center", children: u ? /* @__PURE__ */ e("div", { className: "flex h-[200px] w-full items-center justify-center bg-gray-400 pb-3 pt-3", children: /* @__PURE__ */ o(
|
|
82
|
-
"svg",
|
|
83
|
-
{
|
|
84
|
-
className: C("mx-4 h-5 w-5 animate-spin", "text-inverted dark:text-emphasis"),
|
|
85
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
-
fill: "none",
|
|
87
|
-
viewBox: "0 0 24 24",
|
|
88
|
-
children: [
|
|
89
|
-
/* @__PURE__ */ e(
|
|
90
|
-
"circle",
|
|
91
|
-
{
|
|
92
|
-
className: "opacity-25",
|
|
93
|
-
cx: "12",
|
|
94
|
-
cy: "12",
|
|
95
|
-
r: "10",
|
|
96
|
-
stroke: "currentColor",
|
|
97
|
-
strokeWidth: "4"
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
"path",
|
|
102
|
-
{
|
|
103
|
-
className: "opacity-75",
|
|
104
|
-
fill: "currentColor",
|
|
105
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
) }) : /* @__PURE__ */ e("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${c}` }) }) }),
|
|
111
|
-
N && /* @__PURE__ */ e(A, { severity: "error", title: N, className: "my-4" }),
|
|
112
|
-
i && x === y && /* @__PURE__ */ o("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
|
|
113
|
-
/* @__PURE__ */ e("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
g,
|
|
116
|
-
{
|
|
117
|
-
size: "sm",
|
|
118
|
-
color: "secondary",
|
|
119
|
-
type: "button",
|
|
120
|
-
loading: u,
|
|
121
|
-
onClick: () => w(c, p),
|
|
122
|
-
children: "Shuffle"
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] }),
|
|
126
|
-
/* @__PURE__ */ o(E, { children: [
|
|
127
|
-
/* @__PURE__ */ e(
|
|
128
|
-
R,
|
|
129
|
-
{
|
|
130
|
-
color: "minimal",
|
|
131
|
-
tabIndex: -1,
|
|
132
|
-
onClick: () => {
|
|
133
|
-
s.setIsOpenDialog(!1);
|
|
134
|
-
},
|
|
135
|
-
children: a("cancel")
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
-
g,
|
|
140
|
-
{
|
|
141
|
-
type: "button",
|
|
142
|
-
disabled: !i,
|
|
143
|
-
onClick: () => (s.setIsOpenDialog(!1), s.onSave(i), m(0), l(""), v(""), !1),
|
|
144
|
-
children: a("add_gif")
|
|
145
|
-
}
|
|
146
|
-
)
|
|
147
|
-
] })
|
|
148
|
-
] }) });
|
|
149
|
-
};
|
|
150
|
-
function F(s) {
|
|
151
|
-
const { t: a } = I(), [i, l] = d(s.defaultValue), [p, m] = d(!1);
|
|
152
|
-
return /* @__PURE__ */ o("div", { className: "flex flex-col items-start space-x-2 space-y-2 rtl:space-x-reverse", children: [
|
|
153
|
-
i && /* @__PURE__ */ e("div", { className: "min-h-[200px]", children: /* @__PURE__ */ e("img", { alt: "Selected Gif Image", src: i }) }),
|
|
154
|
-
/* @__PURE__ */ o("div", { className: "flex", children: [
|
|
155
|
-
i ? /* @__PURE__ */ e(
|
|
156
|
-
g,
|
|
157
|
-
{
|
|
158
|
-
color: "minimal",
|
|
159
|
-
type: "button",
|
|
160
|
-
StartIcon: "pencil",
|
|
161
|
-
onClick: () => m(!0),
|
|
162
|
-
disabled: s.disabled,
|
|
163
|
-
children: "Change"
|
|
164
|
-
}
|
|
165
|
-
) : /* @__PURE__ */ e(
|
|
166
|
-
g,
|
|
167
|
-
{
|
|
168
|
-
color: "minimal",
|
|
169
|
-
type: "button",
|
|
170
|
-
StartIcon: "plus",
|
|
171
|
-
onClick: () => m(!0),
|
|
172
|
-
disabled: s.disabled,
|
|
173
|
-
children: "Add from Giphy"
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
i && /* @__PURE__ */ e(
|
|
177
|
-
g,
|
|
178
|
-
{
|
|
179
|
-
color: "destructive",
|
|
180
|
-
type: "button",
|
|
181
|
-
StartIcon: "x",
|
|
182
|
-
onClick: () => {
|
|
183
|
-
l(""), s.onChange("");
|
|
184
|
-
},
|
|
185
|
-
disabled: s.disabled,
|
|
186
|
-
children: a("remove")
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
] }),
|
|
190
|
-
/* @__PURE__ */ e(
|
|
191
|
-
B,
|
|
192
|
-
{
|
|
193
|
-
isOpenDialog: p,
|
|
194
|
-
setIsOpenDialog: m,
|
|
195
|
-
onSave: (c) => {
|
|
196
|
-
l(c), s.onChange(c);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
] });
|
|
201
|
-
}
|
|
202
|
-
const J = ({
|
|
203
|
-
getAppData: s,
|
|
204
|
-
setAppData: a,
|
|
205
|
-
disabled: i
|
|
206
|
-
}) => {
|
|
207
|
-
const l = s("thankYouPage");
|
|
208
|
-
return /* @__PURE__ */ e(
|
|
209
|
-
F,
|
|
210
|
-
{
|
|
211
|
-
defaultValue: l,
|
|
212
|
-
disabled: i,
|
|
213
|
-
onChange: (p) => {
|
|
214
|
-
a("thankYouPage", p);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
export {
|
|
220
|
-
J as default
|
|
221
|
-
};
|
|
@@ -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-Swazt2OL.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,24 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as g } from "./index-Swazt2OL.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
|
-
};
|