@calcom/atoms 1.1.1-debug-dont-use → 1.1.2
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-CVMPei2D.js → AddressInput-cAznNQd3.js} +1 -1
- package/dist/{AlbyPriceComponent-E6ULoDL6.js → AlbyPriceComponent-oZ0IVf6c.js} +24 -24
- package/dist/{AppCard-cTGNOAHy.js → AppCard-vSAp__lv.js} +24 -24
- package/dist/{AppListCardPlatformWrapper-NSThSuXk.js → AppListCardPlatformWrapper-gpEo1mhs.js} +1 -1
- package/dist/{AppListCardWebWrapper-XwKnQn63.js → AppListCardWebWrapper-2mtvbrZI.js} +7 -7
- package/dist/{AppSettingsInterface-x5iDZUBe.js → AppSettingsInterface-76krfbgC.js} +4 -4
- package/dist/{AppSettingsInterface-YBMLeXt4.js → AppSettingsInterface-U3J8XNfT.js} +1 -1
- package/dist/{AppSettingsInterface-ZH3XhiYG.js → AppSettingsInterface-qR8wrA8Z.js} +1 -1
- package/dist/DateRangePicker-S8PasnBw.js +74 -0
- package/dist/{EventTypeAppCardInterface-cZjp0yNN.js → EventTypeAppCardInterface--cvud7p5.js} +4 -4
- package/dist/{EventTypeAppCardInterface--fNkLgYH.js → EventTypeAppCardInterface-3WyRAq4g.js} +40 -40
- package/dist/{EventTypeAppCardInterface-TSa1z_cz.js → EventTypeAppCardInterface-5GqOLlXa.js} +3 -3
- package/dist/{EventTypeAppCardInterface-ugSSelEX.js → EventTypeAppCardInterface-7BjnHZSW.js} +8 -8
- package/dist/{EventTypeAppCardInterface-_mJKoptx.js → EventTypeAppCardInterface-9RRfsmxD.js} +15 -15
- package/dist/{EventTypeAppCardInterface-ix9-eOy7.js → EventTypeAppCardInterface-AqVT1BoP.js} +4 -4
- package/dist/{EventTypeAppCardInterface-NMuTJqnR.js → EventTypeAppCardInterface-AzUqjRAw.js} +4 -4
- package/dist/{EventTypeAppCardInterface-9C3Wfgpy.js → EventTypeAppCardInterface-CWeqREZU.js} +3 -3
- package/dist/{EventTypeAppCardInterface-V2CVt-gp.js → EventTypeAppCardInterface-FoNtZTXA.js} +3 -3
- package/dist/{EventTypeAppCardInterface-VxD1hz61.js → EventTypeAppCardInterface-GC7AOQgo.js} +4 -4
- package/dist/{EventTypeAppCardInterface-qaVZIE5N.js → EventTypeAppCardInterface-HQMqzp7c.js} +3 -3
- package/dist/{EventTypeAppCardInterface-_2yZa06r.js → EventTypeAppCardInterface-N7WcmdT4.js} +3 -3
- package/dist/{EventTypeAppCardInterface-0gSJQJit.js → EventTypeAppCardInterface-R0X4nckV.js} +2 -2
- package/dist/{EventTypeAppCardInterface-L_OQx-GG.js → EventTypeAppCardInterface-Uu3O27xa.js} +4 -4
- package/dist/{EventTypeAppCardInterface-0cii-lHS.js → EventTypeAppCardInterface-V8atUcK-.js} +4 -4
- package/dist/{EventTypeAppCardInterface-JCEQYUtS.js → EventTypeAppCardInterface-Y07gIvmX.js} +4 -4
- package/dist/{EventTypeAppCardInterface-VdYfOsab.js → EventTypeAppCardInterface-Z-LBRQAn.js} +3 -3
- package/dist/{EventTypeAppCardInterface-F5At064k.js → EventTypeAppCardInterface-aYTZV5EF.js} +8 -8
- package/dist/{EventTypeAppCardInterface-C6ns7UmL.js → EventTypeAppCardInterface-bEYxRxeM.js} +3 -3
- package/dist/{EventTypeAppCardInterface-x8x6_qO2.js → EventTypeAppCardInterface-dKaaMNor.js} +26 -26
- package/dist/{EventTypeAppCardInterface-omHgFR_2.js → EventTypeAppCardInterface-lguZWNvV.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Q8BoN8IR.js → EventTypeAppCardInterface-p0blDTaQ.js} +3 -3
- package/dist/{EventTypeAppCardInterface-2TR5xhf8.js → EventTypeAppCardInterface-rppYuGVz.js} +4 -4
- package/dist/EventTypeAppCardInterface-tkKsbhWo.js +39 -0
- package/dist/{EventTypeAppCardInterface-Zei_gfk9.js → EventTypeAppCardInterface-utvbMc02.js} +10 -10
- package/dist/{EventTypeAppCardInterface-pS7YojCs.js → EventTypeAppCardInterface-wXpCgFPS.js} +3 -3
- package/dist/EventTypeAppCardInterface-zGyldaa9.js +24 -0
- package/dist/{EventTypeAppSettingsInterface-Mw0nUm2I.js → EventTypeAppSettingsInterface-7hS6GTO2.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-_jGTLesb.js → EventTypeAppSettingsInterface-FQeyEBxu.js} +5 -5
- package/dist/{EventTypeAppSettingsInterface-aGQavYPZ.js → EventTypeAppSettingsInterface-HK0lsJ28.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-xfI4WyE9.js → EventTypeAppSettingsInterface-MG2xFbSG.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-mf5L8PKf.js → EventTypeAppSettingsInterface-Ra9cL5JB.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-USUuP18O.js → EventTypeAppSettingsInterface-XL4D2Dyv.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-TxRlEgaM.js → EventTypeAppSettingsInterface-ZIUpW8te.js} +10 -10
- package/dist/EventTypeAppSettingsInterface-afhCdPkJ.js +79 -0
- package/dist/{EventTypeAppSettingsInterface-A-zPsqPN.js → EventTypeAppSettingsInterface-bA-Dmxj2.js} +8 -8
- package/dist/{EventTypeAppSettingsInterface-SrOLSflD.js → EventTypeAppSettingsInterface-g5jo9GKH.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-N-387tFo.js → EventTypeAppSettingsInterface-sazwK3zk.js} +7 -7
- package/dist/{EventTypeAppSettingsInterface-uJw6TEuG.js → EventTypeAppSettingsInterface-sbAmbLiK.js} +8 -8
- package/dist/{EventTypeAppSettingsInterface-wRyNHA8Z.js → EventTypeAppSettingsInterface-ycOpDd2-.js} +1 -1
- package/dist/{InstallAppButton-3pRRFAeS.js → InstallAppButton-0Gg9ocXb.js} +3 -3
- package/dist/{InstallAppButton-sMIEaIrB.js → InstallAppButton-JHaJ7T7H.js} +1 -1
- package/dist/{InstallAppButton-xME8ESsW.js → InstallAppButton-JN6i4iBH.js} +3 -3
- package/dist/{PhoneInput-_96ULuJw.js → PhoneInput-eRYuhuju.js} +1 -1
- package/dist/{StripePaymentForm-1ANfOJyB.js → StripePaymentForm-B1BkBzO9.js} +6 -6
- package/dist/cal-atoms.js +17 -17
- package/dist/{index-qcnOr3S-.js → index-D-baW2SF.js} +1 -1
- package/dist/{index-ZQlxzdt5.js → index-GkJhe-oj.js} +68967 -65349
- package/dist/{index-me6CfU0W.js → index-V8Hhry6U.js} +18 -18
- package/dist/index-l2YMCxIx.js +30 -0
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/store.d.ts +5 -1
- package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +21 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts +10 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +4 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +14 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +4 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.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 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts +2 -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/types.d.ts +1 -1
- package/dist/packages/features/bookings/types.d.ts.map +1 -1
- package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/components/PaymentPage.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/handleRescheduleEventManager.d.ts +2 -0
- package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.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 +6 -0
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.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/reminders/utils.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +1 -1
- package/dist/packages/features/ee/workflows/lib/schema.d.ts +4 -4
- package/dist/packages/features/eventtypes/components/EventType.d.ts +2 -1
- package/dist/packages/features/eventtypes/components/EventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts +2 -1
- package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/MultiplePrivateLinksController.d.ts +4 -1
- package/dist/packages/features/eventtypes/components/MultiplePrivateLinksController.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/lib/getPublicEvent.d.ts +33 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +2 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +16 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/form-builder/FormBuilder.d.ts.map +1 -1
- package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
- package/dist/packages/features/form-builder/fieldsThatSupportLabelAsSafeHtml.d.ts.map +1 -1
- package/dist/packages/features/instant-meeting/handleInstantMeeting.d.ts.map +1 -1
- package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts +2 -0
- package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts.map +1 -0
- package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +3 -2
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/types.d.ts +8 -0
- 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/cal-provider/BaseCalProvider.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +1 -0
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +24 -2
- 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 +9 -1
- 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 +2 -2
- package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/wrappers/types.d.ts +2 -0
- package/dist/packages/platform/atoms/event-types/wrappers/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +1 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +21 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +2 -0
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/bookings.d.ts +3 -0
- package/dist/packages/platform/libraries/bookings.d.ts.map +1 -0
- package/dist/packages/platform/libraries/index.d.ts +1 -0
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/repositories.d.ts +2 -1
- package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
- package/dist/packages/prisma/zod/custom/eventtype.d.ts +41 -3
- package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/eventtype.d.ts +11 -0
- package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/hashedlink.d.ts +9 -0
- package/dist/packages/prisma/zod/hashedlink.d.ts.map +1 -1
- package/dist/packages/prisma/zod/workflowstep.d.ts +2 -2
- package/dist/packages/prisma/zod-utils.d.ts +154 -0
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +248 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +7 -3
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/{useIsAppEnabled-V8Jl9FX-.js → useIsAppEnabled-oIf6wORY.js} +1 -1
- package/globals.min.css +16 -3
- package/package.json +3 -4
- package/dist/DateRangePicker-f_B5u4e9.js +0 -2405
- package/dist/EventTypeAppCardInterface-wPiG1Uab.js +0 -24
- package/dist/index-VZRHTsae.js +0 -28
package/dist/{EventTypeAppCardInterface-x8x6_qO2.js → EventTypeAppCardInterface-dKaaMNor.js}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { z as v, y as T, G as _, K as t, W as q, M as L, f as V, S as g } from "./index-GkJhe-oj.js";
|
|
3
3
|
import { useMemo as W, useState as p } from "react";
|
|
4
|
-
import { A as $ } from "./AppCard-
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
4
|
+
import { A as $ } from "./AppCard-vSAp__lv.js";
|
|
5
|
+
import { c as x, i as j, a as C } from "./currencyOptions-kannG2hu.js";
|
|
6
|
+
const U = function({ app: S, eventType: A }) {
|
|
7
7
|
var f, h;
|
|
8
8
|
const i = v.useSearchParams(), d = v.usePathname(), P = W(
|
|
9
9
|
() => `${d}${i ? `?${i.toString()}` : ""}`,
|
|
10
10
|
[d, i]
|
|
11
|
-
), { t: n } =
|
|
11
|
+
), { t: n } = T(), { getAppData: r, setAppData: c } = _(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(x.find((e) => e.value === l)), [w, E] = p(
|
|
12
12
|
j(l) ? C[l] : ""
|
|
13
|
-
), [b,
|
|
14
|
-
label:
|
|
15
|
-
value:
|
|
16
|
-
},
|
|
17
|
-
return /* @__PURE__ */
|
|
13
|
+
), [b, D] = p(N), m = ((f = t) == null ? void 0 : f.find((e) => k === e.value)) || {
|
|
14
|
+
label: t[0].label,
|
|
15
|
+
value: t[0].value
|
|
16
|
+
}, F = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
17
|
+
return /* @__PURE__ */ a(
|
|
18
18
|
$,
|
|
19
19
|
{
|
|
20
|
-
returnTo:
|
|
20
|
+
returnTo: q + P,
|
|
21
21
|
app: S,
|
|
22
22
|
switchChecked: b,
|
|
23
23
|
switchOnClick: (e) => {
|
|
24
|
-
|
|
24
|
+
D(e);
|
|
25
25
|
},
|
|
26
|
-
description: /* @__PURE__ */
|
|
27
|
-
children: /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
26
|
+
description: /* @__PURE__ */ a(o, { children: "Add a mock payment to your events" }),
|
|
27
|
+
children: /* @__PURE__ */ a(o, { children: F ? /* @__PURE__ */ a(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
|
|
28
|
+
/* @__PURE__ */ a("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ a(
|
|
29
29
|
V,
|
|
30
30
|
{
|
|
31
31
|
id: "test-mock-payment-app-price",
|
|
@@ -46,13 +46,13 @@ const H = function({ app: S, eventType: A }) {
|
|
|
46
46
|
}
|
|
47
47
|
) }),
|
|
48
48
|
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
49
|
+
/* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
50
|
+
/* @__PURE__ */ a(
|
|
51
|
+
g,
|
|
52
52
|
{
|
|
53
53
|
id: "test-mock-payment-app-currency-id",
|
|
54
54
|
variant: "default",
|
|
55
|
-
options:
|
|
55
|
+
options: x,
|
|
56
56
|
value: s,
|
|
57
57
|
className: "text-black",
|
|
58
58
|
defaultValue: s,
|
|
@@ -63,12 +63,12 @@ const H = function({ app: S, eventType: A }) {
|
|
|
63
63
|
)
|
|
64
64
|
] }),
|
|
65
65
|
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
66
|
+
/* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
67
|
+
/* @__PURE__ */ a(
|
|
68
|
+
g,
|
|
69
69
|
{
|
|
70
|
-
defaultValue: m ? { ...m, label: n(m.label) } : { ...
|
|
71
|
-
options:
|
|
70
|
+
defaultValue: m ? { ...m, label: n(m.label) } : { ...t[0], label: n(t[0].label) },
|
|
71
|
+
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
72
72
|
onChange: (e) => {
|
|
73
73
|
e && c("paymentOption", e.value);
|
|
74
74
|
},
|
|
@@ -82,5 +82,5 @@ const H = function({ app: S, eventType: A }) {
|
|
|
82
82
|
);
|
|
83
83
|
};
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
U as default
|
|
86
86
|
};
|
package/dist/{EventTypeAppCardInterface-omHgFR_2.js → EventTypeAppCardInterface-lguZWNvV.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { A as m } from "./AppCard-
|
|
4
|
-
import { u } from "./useIsAppEnabled-
|
|
2
|
+
import { z as d, W as i } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { A as m } from "./AppCard-vSAp__lv.js";
|
|
4
|
+
import { u } from "./useIsAppEnabled-oIf6wORY.js";
|
|
5
5
|
const l = function({ app: t, eventType: e }) {
|
|
6
6
|
var a;
|
|
7
7
|
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
package/dist/{EventTypeAppCardInterface-Q8BoN8IR.js → EventTypeAppCardInterface-p0blDTaQ.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { A as m } from "./AppCard-
|
|
4
|
-
import { u } from "./useIsAppEnabled-
|
|
2
|
+
import { z as d, W as i } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { A as m } from "./AppCard-vSAp__lv.js";
|
|
4
|
+
import { u } from "./useIsAppEnabled-oIf6wORY.js";
|
|
5
5
|
const l = function({ app: t, eventType: e }) {
|
|
6
6
|
var a;
|
|
7
7
|
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
package/dist/{EventTypeAppCardInterface-2TR5xhf8.js → EventTypeAppCardInterface-rppYuGVz.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { A as c } from "./AppCard-
|
|
4
|
-
import { u as l } from "./useIsAppEnabled-
|
|
5
|
-
import u from "./EventTypeAppSettingsInterface-
|
|
2
|
+
import { G as m } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { A as c } from "./AppCard-vSAp__lv.js";
|
|
4
|
+
import { u as l } from "./useIsAppEnabled-oIf6wORY.js";
|
|
5
|
+
import u from "./EventTypeAppSettingsInterface-g5jo9GKH.js";
|
|
6
6
|
const g = function({ eventType: e, app: t }) {
|
|
7
7
|
var p;
|
|
8
8
|
const { enabled: r, updateEnabled: s } = l(t), { disabled: o, getAppData: n, setAppData: d } = m();
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as t, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { y as A, z as y, G as g, J as b, W as f } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { useState as P } from "react";
|
|
4
|
+
import { A as v } from "./AppCard-vSAp__lv.js";
|
|
5
|
+
import C from "./EventTypeAppSettingsInterface-afhCdPkJ.js";
|
|
6
|
+
const x = function({
|
|
7
|
+
eventType: o,
|
|
8
|
+
app: e,
|
|
9
|
+
eventTypeFormMetadata: p
|
|
10
|
+
}) {
|
|
11
|
+
const { t: i } = A(), r = y.usePathname(), { getAppData: a, setAppData: c, disabled: m } = g(), [n, d] = P(a("enabled")), l = b(p), s = !n && l;
|
|
12
|
+
return /* @__PURE__ */ t(
|
|
13
|
+
v,
|
|
14
|
+
{
|
|
15
|
+
returnTo: `${f}${r}?tabName=apps`,
|
|
16
|
+
app: e,
|
|
17
|
+
switchChecked: n,
|
|
18
|
+
switchOnClick: (h) => {
|
|
19
|
+
d(h);
|
|
20
|
+
},
|
|
21
|
+
description: /* @__PURE__ */ t(u, { children: "Add lightning payments to your events and booking" }),
|
|
22
|
+
disableSwitch: s,
|
|
23
|
+
switchTooltip: s ? i("other_payment_app_enabled") : void 0,
|
|
24
|
+
children: /* @__PURE__ */ t(
|
|
25
|
+
C,
|
|
26
|
+
{
|
|
27
|
+
eventType: o,
|
|
28
|
+
slug: e.slug,
|
|
29
|
+
disabled: m,
|
|
30
|
+
getAppData: a,
|
|
31
|
+
setAppData: c
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
x as default
|
|
39
|
+
};
|
package/dist/{EventTypeAppCardInterface-Zei_gfk9.js → EventTypeAppCardInterface-utvbMc02.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { A as w } from "./AppCard-
|
|
5
|
-
import E from "./EventTypeAppSettingsInterface-
|
|
6
|
-
const
|
|
2
|
+
import { z as i, G as f, J as g, y as S, W as b } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { useMemo as v, useState as C } from "react";
|
|
4
|
+
import { A as w } from "./AppCard-vSAp__lv.js";
|
|
5
|
+
import E from "./EventTypeAppSettingsInterface-ZIUpW8te.js";
|
|
6
|
+
const $ = function({
|
|
7
7
|
app: a,
|
|
8
8
|
eventType: c,
|
|
9
9
|
eventTypeFormMetadata: m
|
|
10
10
|
}) {
|
|
11
|
-
const t = i.useSearchParams(), s = i.usePathname(), h =
|
|
11
|
+
const t = i.useSearchParams(), s = i.usePathname(), h = v(
|
|
12
12
|
() => `${s}${t ? `?${t.toString()}` : ""}`,
|
|
13
13
|
[s, t]
|
|
14
|
-
), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")),
|
|
14
|
+
), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), y = g(m), { t: A } = S(), r = !o && y;
|
|
15
15
|
return /* @__PURE__ */ e(
|
|
16
16
|
w,
|
|
17
17
|
{
|
|
18
|
-
returnTo:
|
|
18
|
+
returnTo: b + h,
|
|
19
19
|
app: a,
|
|
20
20
|
switchChecked: o,
|
|
21
21
|
switchOnClick: (P) => {
|
|
@@ -23,7 +23,7 @@ const W = function({
|
|
|
23
23
|
},
|
|
24
24
|
description: /* @__PURE__ */ e(p, { children: "Add Paypal payment to your events" }),
|
|
25
25
|
disableSwitch: r,
|
|
26
|
-
switchTooltip: r ?
|
|
26
|
+
switchTooltip: r ? A("other_payment_app_enabled") : void 0,
|
|
27
27
|
children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
28
28
|
E,
|
|
29
29
|
{
|
|
@@ -38,5 +38,5 @@ const W = function({
|
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
$ as default
|
|
42
42
|
};
|
package/dist/{EventTypeAppCardInterface-pS7YojCs.js → EventTypeAppCardInterface-wXpCgFPS.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { A as u } from "./AppCard-
|
|
4
|
-
import { u as I } from "./useIsAppEnabled-
|
|
2
|
+
import { G as l, f as m } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { A as u } from "./AppCard-vSAp__lv.js";
|
|
4
|
+
import { u as I } from "./useIsAppEnabled-oIf6wORY.js";
|
|
5
5
|
const D = function({ app: t, eventType: n }) {
|
|
6
6
|
var a;
|
|
7
7
|
const { getAppData: o, setAppData: r, disabled: d } = l(), s = o("SITE_ID"), { enabled: i, updateEnabled: c } = I(t);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { z as d, W as i } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { A as m } from "./AppCard-vSAp__lv.js";
|
|
4
|
+
import { u } from "./useIsAppEnabled-oIf6wORY.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
|
+
};
|
package/dist/{EventTypeAppSettingsInterface-Mw0nUm2I.js → EventTypeAppSettingsInterface-7hS6GTO2.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useEffect as v } from "react";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
3
|
+
import { O as p, S as h } from "./index-GkJhe-oj.js";
|
|
4
|
+
const S = ({}) => {
|
|
5
5
|
const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
|
|
6
6
|
return v(
|
|
7
7
|
function() {
|
|
@@ -44,5 +44,5 @@ const P = ({}) => {
|
|
|
44
44
|
] });
|
|
45
45
|
};
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
S as default
|
|
48
48
|
};
|
package/dist/{EventTypeAppSettingsInterface-_jGTLesb.js → EventTypeAppSettingsInterface-FQeyEBxu.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as N, useEffect as w } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { y as _, a1 as t, M as g, f as C, Y as P, S as p } from "./index-GkJhe-oj.js";
|
|
4
4
|
const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
5
5
|
eventType: f,
|
|
6
6
|
getAppData: s,
|
|
7
7
|
setAppData: a
|
|
8
8
|
}) => {
|
|
9
9
|
var v, h;
|
|
10
|
-
const { t: n } = _(), i = s("price"), c = s("currency"), [r,
|
|
10
|
+
const { t: n } = _(), i = s("price"), c = s("currency"), [r, S] = N(
|
|
11
11
|
d.find((e) => e.value === c) || d[0]
|
|
12
12
|
), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
|
|
13
13
|
label: t[0].label,
|
|
14
14
|
value: t[0].value
|
|
15
|
-
}, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")),
|
|
15
|
+
}, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), O = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
16
16
|
return w(() => {
|
|
17
17
|
!c && m && a("currency", r.value);
|
|
18
|
-
}, [c, r, a, m]), /* @__PURE__ */ l(x, { children:
|
|
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
19
|
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
20
20
|
C,
|
|
21
21
|
{
|
|
@@ -44,7 +44,7 @@ const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
|
44
44
|
className: "text-black",
|
|
45
45
|
defaultValue: r,
|
|
46
46
|
onChange: (e) => {
|
|
47
|
-
e && (
|
|
47
|
+
e && (S(e), a("currency", e.value));
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
)
|
package/dist/{EventTypeAppSettingsInterface-TxRlEgaM.js → EventTypeAppSettingsInterface-ZIUpW8te.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as l, jsxs as m, Fragment as w } from "react/jsx-runtime";
|
|
2
2
|
import { useState as o, useEffect as _ } from "react";
|
|
3
|
-
import { c as i, i as k, a as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
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-GkJhe-oj.js";
|
|
5
|
+
const H = ({
|
|
6
6
|
getAppData: n,
|
|
7
7
|
setAppData: t,
|
|
8
8
|
eventType: d
|
|
9
9
|
}) => {
|
|
10
10
|
var p, h;
|
|
11
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) ?
|
|
12
|
+
k(a) ? S[a] : ""
|
|
13
13
|
), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
|
|
14
14
|
label: r[0].label,
|
|
15
15
|
value: r[0].value
|
|
16
16
|
}, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), g = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
17
17
|
return _(() => {
|
|
18
18
|
v && (n("currency") || t("currency", i[0].value), n("paymentOption") || t("paymentOption", r[0].value));
|
|
19
|
-
}, []), g ? /* @__PURE__ */ l(
|
|
19
|
+
}, []), g ? /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(w, { children: [
|
|
20
20
|
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
21
21
|
F,
|
|
22
22
|
{
|
|
@@ -32,9 +32,9 @@ const G = ({
|
|
|
32
32
|
placeholder: "Price",
|
|
33
33
|
"data-testid": "paypal-price-input",
|
|
34
34
|
onChange: (e) => {
|
|
35
|
-
t("price",
|
|
35
|
+
t("price", T(Number(e.target.value), a)), s && t("currency", s.value);
|
|
36
36
|
},
|
|
37
|
-
value: y > 0 ?
|
|
37
|
+
value: y > 0 ? q(y, a) : void 0
|
|
38
38
|
}
|
|
39
39
|
) }),
|
|
40
40
|
/* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
|
|
@@ -49,7 +49,7 @@ const G = ({
|
|
|
49
49
|
className: "text-black",
|
|
50
50
|
defaultValue: s,
|
|
51
51
|
onChange: (e) => {
|
|
52
|
-
e && (N(e), P(
|
|
52
|
+
e && (N(e), P(S[e.value]), t("currency", e.value));
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
)
|
|
@@ -70,9 +70,9 @@ const G = ({
|
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] }),
|
|
73
|
-
b && f === "HOLD" && /* @__PURE__ */ l(
|
|
73
|
+
b && f === "HOLD" && /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
|
|
74
74
|
] }) : null;
|
|
75
75
|
};
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
H as default
|
|
78
78
|
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as n, Fragment as S, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as _ } from "react";
|
|
3
|
+
import { y as P, a2 as t, M as x, f as w, S as C } from "./index-GkJhe-oj.js";
|
|
4
|
+
const c = [
|
|
5
|
+
{ label: "SATS", value: "BTC", unit: "SATS" },
|
|
6
|
+
{ label: "USD", value: "USD", unit: "USD" }
|
|
7
|
+
], g = ["SATS", "BTC"], U = (r, l) => g.includes(l.toUpperCase()) ? r : Math.round(r * 100), k = (r, l) => g.includes(l.toUpperCase()) ? r : r / 100, B = ({
|
|
8
|
+
eventType: r,
|
|
9
|
+
getAppData: l,
|
|
10
|
+
setAppData: s
|
|
11
|
+
}) => {
|
|
12
|
+
var y, h;
|
|
13
|
+
const { t: a } = P(), i = l("price"), u = l("currency") || (c.length > 0 ? c[0].value : ""), [b, N] = p(
|
|
14
|
+
c.find((e) => e.value === u) || (c.length > 0 ? {
|
|
15
|
+
label: c[0].label,
|
|
16
|
+
value: c[0].value
|
|
17
|
+
} : null)
|
|
18
|
+
), v = l("paymentOption"), o = ((y = t) == null ? void 0 : y.find((e) => v === e.value)) || {
|
|
19
|
+
label: t.length > 0 ? t[0].label : "",
|
|
20
|
+
value: t.length > 0 ? t[0].value : ""
|
|
21
|
+
}, f = !!r.seatsPerTimeSlot, [m, E] = p(l("enabled")), T = ((h = r.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
22
|
+
_(() => {
|
|
23
|
+
m && !l("currency") && s("currency", c[0].value);
|
|
24
|
+
}, [m, l, s]);
|
|
25
|
+
const O = (e) => Math.floor(e);
|
|
26
|
+
return /* @__PURE__ */ n(S, { children: T ? /* @__PURE__ */ n(x, { className: "mt-2", severity: "warning", title: a("warning_recurring_event_payment") }) : m && /* @__PURE__ */ d(S, { children: [
|
|
27
|
+
/* @__PURE__ */ n("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ n(
|
|
28
|
+
w,
|
|
29
|
+
{
|
|
30
|
+
label: a("price"),
|
|
31
|
+
className: "text-black",
|
|
32
|
+
addOnClassname: "h-[38px]",
|
|
33
|
+
min: "1",
|
|
34
|
+
type: "number",
|
|
35
|
+
required: !0,
|
|
36
|
+
placeholder: "Price",
|
|
37
|
+
onChange: (e) => {
|
|
38
|
+
s("price", U(Number(e.target.value), u));
|
|
39
|
+
},
|
|
40
|
+
value: i && i > 0 ? O(k(i, u)) : void 0
|
|
41
|
+
}
|
|
42
|
+
) }),
|
|
43
|
+
/* @__PURE__ */ d("div", { className: "mt-5 w-60", children: [
|
|
44
|
+
/* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: a("currency") }),
|
|
45
|
+
/* @__PURE__ */ n(
|
|
46
|
+
C,
|
|
47
|
+
{
|
|
48
|
+
variant: "default",
|
|
49
|
+
options: c,
|
|
50
|
+
value: b,
|
|
51
|
+
className: "text-black",
|
|
52
|
+
defaultValue: b,
|
|
53
|
+
onChange: (e) => {
|
|
54
|
+
e && (N(e), s("currency", e.value));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ d("div", { className: "mt-2 w-60", children: [
|
|
60
|
+
/* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "paymentOption", children: a("payment_option") }),
|
|
61
|
+
/* @__PURE__ */ n(
|
|
62
|
+
C,
|
|
63
|
+
{
|
|
64
|
+
defaultValue: o ? { ...o, label: a(o.label) } : t.length > 0 ? { ...t[0], label: a(t[0].label) } : void 0,
|
|
65
|
+
options: t.map((e) => ({ ...e, label: a(e.label) || e.label })),
|
|
66
|
+
onChange: (e) => {
|
|
67
|
+
e && s("paymentOption", e.value);
|
|
68
|
+
},
|
|
69
|
+
className: "mb-1 h-[38px] w-full",
|
|
70
|
+
isDisabled: f
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] }),
|
|
74
|
+
f && v === "HOLD" && /* @__PURE__ */ n(x, { className: "mt-2", severity: "warning", title: a("seats_and_no_show_fee_error") })
|
|
75
|
+
] }) });
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
B as default
|
|
79
|
+
};
|
package/dist/{EventTypeAppSettingsInterface-A-zPsqPN.js → EventTypeAppSettingsInterface-bA-Dmxj2.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as f, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
2
|
+
import { a9 as d, y as L, aa as i, M as P, f as w, R as T, U as O, S as y, ab as E, ac as x, s as B, ad as F, ae as K } from "./index-GkJhe-oj.js";
|
|
3
|
+
import { useState as z, useEffect as G } from "react";
|
|
4
4
|
const s = [
|
|
5
5
|
{ label: "United States dollar (USD)", value: "usd" },
|
|
6
6
|
{ label: "United Arab Emirates dirham (AED)", value: "aed" },
|
|
@@ -143,18 +143,18 @@ const s = [
|
|
|
143
143
|
eventType: h
|
|
144
144
|
}) => {
|
|
145
145
|
var k;
|
|
146
|
-
const g = r("price"), o = r("currency") || s[0].value, [t, D] =
|
|
146
|
+
const g = r("price"), o = r("currency") || s[0].value, [t, D] = z(
|
|
147
147
|
s.find((a) => a.value === o) || {
|
|
148
148
|
label: s[0].label,
|
|
149
149
|
value: s[0].value
|
|
150
150
|
}
|
|
151
|
-
), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot,
|
|
151
|
+
), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, R = (a, M) => 0 .toLocaleString(a, {
|
|
152
152
|
style: "currency",
|
|
153
|
-
currency:
|
|
153
|
+
currency: M,
|
|
154
154
|
minimumFractionDigits: 0,
|
|
155
155
|
maximumFractionDigits: 0
|
|
156
156
|
}).replace(/\d/g, "").trim();
|
|
157
|
-
|
|
157
|
+
G(() => {
|
|
158
158
|
m && (r("currency") || e("currency", s[0].value), r("paymentOption") || e("paymentOption", d[0].value)), r("refundPolicy") || e("refundPolicy", i.NEVER);
|
|
159
159
|
}, [m, r, e]);
|
|
160
160
|
const C = [
|
|
@@ -170,7 +170,7 @@ const s = [
|
|
|
170
170
|
"data-testid": "stripe-price-input",
|
|
171
171
|
label: n("price"),
|
|
172
172
|
className: "h-[38px]",
|
|
173
|
-
addOnLeading: /* @__PURE__ */ l(f, { children: t.value ?
|
|
173
|
+
addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? R("en", t.value) : "" }),
|
|
174
174
|
addOnSuffix: o.toUpperCase(),
|
|
175
175
|
addOnClassname: "h-[38px]",
|
|
176
176
|
step: "0.01",
|
|
@@ -244,7 +244,7 @@ const s = [
|
|
|
244
244
|
className: "min-w-4 bg-default border-default flex h-4 w-4 cursor-pointer items-center rounded-full border focus:border-2 focus:outline-none ltr:mr-2 rtl:ml-2",
|
|
245
245
|
value: "days",
|
|
246
246
|
id: "days",
|
|
247
|
-
children: /* @__PURE__ */ l(
|
|
247
|
+
children: /* @__PURE__ */ l(K, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
|
|
248
248
|
}
|
|
249
249
|
),
|
|
250
250
|
/* @__PURE__ */ u("div", { className: "flex items-center", children: [
|
package/dist/{EventTypeAppSettingsInterface-SrOLSflD.js → EventTypeAppSettingsInterface-g5jo9GKH.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { y as p, f as h, V as v, s as x } from "./index-GkJhe-oj.js";
|
|
4
4
|
const N = ({ eventType: n, disabled: d }) => {
|
|
5
5
|
const { t: i } = p(), [r, c] = u(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
|
|
6
6
|
function s({ size: a, data: f }) {
|
package/dist/{EventTypeAppSettingsInterface-N-387tFo.js → EventTypeAppSettingsInterface-sazwK3zk.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
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-GkJhe-oj.js";
|
|
4
4
|
const f = [
|
|
5
5
|
"BIF",
|
|
6
6
|
"CLP",
|
|
@@ -45,25 +45,25 @@ const f = [
|
|
|
45
45
|
{ label: "Vietnamese đồng (VND)", value: "vnd" },
|
|
46
46
|
{ label: "Canadian dollar (CAD)", value: "cad" },
|
|
47
47
|
{ label: "South Korean won (KRW)", value: "krw" }
|
|
48
|
-
],
|
|
48
|
+
], M = ({
|
|
49
49
|
getAppData: e,
|
|
50
50
|
setAppData: a,
|
|
51
51
|
disabled: h,
|
|
52
52
|
eventType: d
|
|
53
53
|
}) => {
|
|
54
54
|
var b;
|
|
55
|
-
const m = e("price"), t = e("currency") || r[0].value, [i, g] =
|
|
55
|
+
const m = e("price"), t = e("currency") || r[0].value, [i, g] = P(
|
|
56
56
|
r.find((l) => l.value === t) || {
|
|
57
57
|
label: r[0].label,
|
|
58
58
|
value: r[0].value
|
|
59
59
|
}
|
|
60
|
-
), S = e("paymentOption"), c = e("enabled"), { t: s } =
|
|
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
61
|
style: "currency",
|
|
62
62
|
currency: y,
|
|
63
63
|
minimumFractionDigits: 0,
|
|
64
64
|
maximumFractionDigits: 0
|
|
65
65
|
}).replace(/\d/g, "").trim();
|
|
66
|
-
|
|
66
|
+
k(() => {
|
|
67
67
|
c && (e("currency") || a("currency", r[0].value), e("paymentOption") || a("paymentOption", V[0].value));
|
|
68
68
|
}, [c, e, a]);
|
|
69
69
|
const F = (l) => {
|
|
@@ -116,5 +116,5 @@ const f = [
|
|
|
116
116
|
] });
|
|
117
117
|
};
|
|
118
118
|
export {
|
|
119
|
-
|
|
119
|
+
M as default
|
|
120
120
|
};
|