@calcom/atoms 1.7.0 → 1.8.0
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-xFwoBxsZ.js → AddressInput-TPAoTrPC.js} +1 -1
- package/dist/{AlbyPriceComponent-NnD6qUfW.js → AlbyPriceComponent-OnR4fSwr.js} +1 -1
- package/dist/{AppCard--JDiTUMU.js → AppCard-UnBkV2QT.js} +4 -4
- package/dist/{AppListCardPlatformWrapper-ncgLQL4r.js → AppListCardPlatformWrapper-4eRy1NRK.js} +1 -1
- package/dist/{AppListCardWebWrapper-YnM7-ccd.js → AppListCardWebWrapper-0wdYjkAE.js} +1 -1
- package/dist/{AppSettingsInterface-_WywrNHs.js → AppSettingsInterface-BUXklHpI.js} +1 -1
- package/dist/{AppSettingsInterface-EvAriEj2.js → AppSettingsInterface-IN675-GK.js} +1 -1
- package/dist/{AppSettingsInterface-OGwTTVN7.js → AppSettingsInterface-ZJ3ZsCsg.js} +1 -1
- package/dist/{DateRangePicker-m_y_P8tk.js → DateRangePicker-SbXQ2kUs.js} +1 -1
- package/dist/{EventTypeAppCardInterface-EPHC3SF7.js → EventTypeAppCardInterface--4xE4p79.js} +3 -3
- package/dist/{EventTypeAppCardInterface--74geeRF.js → EventTypeAppCardInterface-9HzRYyCd.js} +3 -3
- package/dist/{EventTypeAppCardInterface-bNGYsiB0.js → EventTypeAppCardInterface-CtmOV4QG.js} +2 -2
- package/dist/{EventTypeAppCardInterface-sIqZFcBV.js → EventTypeAppCardInterface-DAoHQNia.js} +4 -4
- package/dist/{EventTypeAppCardInterface-2Q1qvV5K.js → EventTypeAppCardInterface-EY8MHHWr.js} +4 -4
- package/dist/{EventTypeAppCardInterface-JQgzokgl.js → EventTypeAppCardInterface-EqotF69G.js} +2 -2
- package/dist/{EventTypeAppCardInterface-R8-Y-hSu.js → EventTypeAppCardInterface-FseQRHaF.js} +3 -3
- package/dist/{EventTypeAppCardInterface-rV1vgpRv.js → EventTypeAppCardInterface-FzWJaItj.js} +3 -3
- package/dist/{EventTypeAppCardInterface-qO1PKt6x.js → EventTypeAppCardInterface-Hbrbd-An.js} +3 -3
- package/dist/{EventTypeAppCardInterface-_x7wFmBk.js → EventTypeAppCardInterface-LQ-94Fnd.js} +3 -3
- package/dist/{EventTypeAppCardInterface-G3OAa6sU.js → EventTypeAppCardInterface-LsiRGQxy.js} +4 -4
- package/dist/{EventTypeAppCardInterface-LvigpfyE.js → EventTypeAppCardInterface-MVTbWGAp.js} +3 -3
- package/dist/{EventTypeAppCardInterface-YlTC8St1.js → EventTypeAppCardInterface-M_zIE3R2.js} +3 -3
- package/dist/{EventTypeAppCardInterface-d-rOMdsH.js → EventTypeAppCardInterface-Nl4Tca0J.js} +4 -4
- package/dist/{EventTypeAppCardInterface-iHpJPDlc.js → EventTypeAppCardInterface-SBbEmado.js} +4 -4
- package/dist/{EventTypeAppCardInterface-2r4pxyRt.js → EventTypeAppCardInterface-V42P65Il.js} +4 -4
- package/dist/{EventTypeAppCardInterface-MIro_wur.js → EventTypeAppCardInterface-VC5GD6mP.js} +4 -4
- package/dist/{EventTypeAppCardInterface-li1GK953.js → EventTypeAppCardInterface-Yy5z6qq3.js} +3 -3
- package/dist/{EventTypeAppCardInterface--UDAdk0r.js → EventTypeAppCardInterface-bKY65jzr.js} +3 -3
- package/dist/{EventTypeAppCardInterface-jBTRuVkO.js → EventTypeAppCardInterface-c7y6h3cZ.js} +3 -3
- package/dist/{EventTypeAppCardInterface-3T7Bcarm.js → EventTypeAppCardInterface-cYsx04dT.js} +4 -4
- package/dist/{EventTypeAppCardInterface-O0yLol5y.js → EventTypeAppCardInterface-eD2zI5jR.js} +3 -3
- package/dist/{EventTypeAppCardInterface-KDalRazj.js → EventTypeAppCardInterface-gqJqYQI9.js} +3 -3
- package/dist/{EventTypeAppCardInterface-rKAjvg4x.js → EventTypeAppCardInterface-iHRMY1ck.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Na5tUt6e.js → EventTypeAppCardInterface-kyhbIMJn.js} +4 -4
- package/dist/EventTypeAppCardInterface-qX_8phKX.js +24 -0
- package/dist/{EventTypeAppCardInterface-lXddHFhd.js → EventTypeAppCardInterface-tvM_AuJk.js} +4 -4
- package/dist/{EventTypeAppSettingsInterface-J_c1VzIk.js → EventTypeAppSettingsInterface-3MhYVxkM.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-cbkdr04f.js → EventTypeAppSettingsInterface-3kl4RpMT.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-LIn3bMv4.js → EventTypeAppSettingsInterface-L2pesx9r.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CPvfqJkx.js → EventTypeAppSettingsInterface-L9xlb8NR.js} +11 -11
- package/dist/{EventTypeAppSettingsInterface-JBpWa3pz.js → EventTypeAppSettingsInterface-Ld18-sOn.js} +123 -78
- package/dist/{EventTypeAppSettingsInterface-EZZkJrLi.js → EventTypeAppSettingsInterface-UpTmiEej.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-mOdk6pDR.js → EventTypeAppSettingsInterface-XQsGNWJq.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-eejB8RJX.js → EventTypeAppSettingsInterface-jPvK2jsX.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-K4kVWoog.js → EventTypeAppSettingsInterface-pdQn6Kfx.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-7e1qbHi8.js → EventTypeAppSettingsInterface-phZiaYXT.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-xYWyd_Dz.js → EventTypeAppSettingsInterface-vBrvSwct.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CLwwrZv6.js → EventTypeAppSettingsInterface-x4ZemVo7.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-vNhCP6vQ.js → EventTypeAppSettingsInterface-yrvZgDxq.js} +1 -1
- package/dist/{InstallAppButton-J51NRgMF.js → InstallAppButton--2C7ML1T.js} +1 -1
- package/dist/{InstallAppButton-9sn2Jtoz.js → InstallAppButton-9ZNVw7xC.js} +1 -1
- package/dist/{InstallAppButton-6HzB5_Be.js → InstallAppButton-VKYchQNN.js} +1 -1
- package/dist/{PhoneInput-uymiSRfv.js → PhoneInput-eualhMpw.js} +1 -1
- package/dist/{StripePaymentForm-cXAJjJV3.js → StripePaymentForm-J3d6--In.js} +1 -1
- package/dist/cal-atoms.js +5 -5
- package/dist/{index-WXyiFeKd.js → index-QxAbeUbm.js} +1 -1
- package/dist/{index--iR_feQQ.js → index-ZTlhgZJm.js} +65069 -63763
- package/dist/{index-tEqQSBcP.js → index-ZiXm_Vsp.js} +1 -1
- package/dist/{index-XoFQv1cd.js → index-jrRDyJSN.js} +7 -7
- package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +39 -33
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +83 -0
- package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/create-booking.d.ts +91 -91
- package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +91 -91
- package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -9
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +40 -38
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts +41 -0
- package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts +16 -0
- package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleConfirmation.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +2 -2
- package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -33
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +57 -57
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +60 -57
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +57 -57
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +46 -46
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +45 -45
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +364 -364
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handlePayment.d.ts +49 -0
- package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +33 -33
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/handleSeats.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +33 -33
- package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +39 -39
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts +2 -1
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.updated.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts +5 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/organizations/index.d.ts +1 -2
- package/dist/packages/features/ee/billing/organizations/index.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/organizations/internal-organization-billing.d.ts +2 -2
- package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +32 -4
- package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/server/stripe-service.d.ts +23 -0
- package/dist/packages/features/ee/payments/server/stripe-service.d.ts.map +1 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +125 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts +2 -0
- package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts.map +1 -0
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +30 -30
- 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/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/constants.d.ts +3 -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/reminders/emailReminderManager.d.ts +0 -3
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +0 -3
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.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/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +6 -6
- package/dist/packages/features/ee/workflows/lib/schema.d.ts +7 -2
- package/dist/packages/features/ee/workflows/lib/schema.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts +7 -0
- package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/eventNaming.d.ts +28 -0
- package/dist/packages/features/eventtypes/lib/eventNaming.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts +2 -0
- package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +42 -33
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -12
- package/dist/packages/features/eventtypes/lib/types.d.ts +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts +2 -2
- package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts +15 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts.map +1 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +20 -17
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts +3 -0
- package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts.map +1 -0
- package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.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/bookings/useCreateBooking.d.ts +91 -91
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +91 -91
- package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +91 -91
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -3
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +39 -33
- 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 +3 -3
- package/dist/packages/platform/atoms/hooks/schedules/useAtomUpdateSchedule.d.ts +3 -3
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts +2 -0
- package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts.map +1 -0
- package/dist/packages/platform/libraries/event-types.d.ts +5 -5
- package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +4 -6
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/creditexpenselog.d.ts +6 -0
- package/dist/packages/prisma/zod/creditexpenselog.d.ts.map +1 -1
- package/dist/packages/prisma/zod/impersonations.d.ts +2 -2
- package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
- package/dist/packages/prisma/zod/task.d.ts +2 -2
- package/dist/packages/prisma/zod/teamfeatures.d.ts +2 -2
- package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
- package/dist/packages/prisma/zod/webhookscheduledtriggers.d.ts +2 -2
- package/dist/packages/prisma/zod/workflow.d.ts +7 -2
- package/dist/packages/prisma/zod/workflow.d.ts.map +1 -1
- package/dist/packages/prisma/zod-utils.d.ts +52 -0
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +86 -1
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +2 -2
- 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/react/trpc.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/{useIsAppEnabled-C_9eRB94.js → useIsAppEnabled-kSS-8pZp.js} +1 -1
- package/package.json +1 -1
- package/dist/EventTypeAppCardInterface-safQ0enm.js +0 -24
package/dist/{EventTypeAppSettingsInterface-JBpWa3pz.js → EventTypeAppSettingsInterface-Ld18-sOn.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as
|
|
2
|
-
import { a7 as
|
|
3
|
-
import { useState as
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as u, Fragment as g, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { a7 as b, w as K, a8 as s, a9 as N, J as M, f as C, O as z, Q as G, S as m, aa as U, ab as D, r as S, ac as V, ad as H, b as _ } from "./index-ZTlhgZJm.js";
|
|
3
|
+
import { useState as I, useEffect as Y } from "react";
|
|
4
|
+
const o = [
|
|
5
5
|
{ label: "United States dollar (USD)", value: "usd" },
|
|
6
6
|
{ label: "United Arab Emirates dirham (AED)", value: "aed" },
|
|
7
7
|
{ label: "Afghan afghani (AFN)", value: "afn" },
|
|
@@ -136,163 +136,208 @@ const s = [
|
|
|
136
136
|
{ label: "Yemeni rial (YER)", value: "yer" },
|
|
137
137
|
{ label: "South African rand (ZAR)", value: "zar" },
|
|
138
138
|
{ label: "Zambian kwacha (ZMW)", value: "zmw" }
|
|
139
|
-
],
|
|
139
|
+
], W = ({
|
|
140
140
|
getAppData: r,
|
|
141
|
-
setAppData:
|
|
142
|
-
disabled:
|
|
143
|
-
eventType:
|
|
141
|
+
setAppData: n,
|
|
142
|
+
disabled: i,
|
|
143
|
+
eventType: p
|
|
144
144
|
}) => {
|
|
145
|
-
var
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
label:
|
|
149
|
-
value:
|
|
145
|
+
var R;
|
|
146
|
+
const k = r("price"), c = r("currency") || o[0].value, [v, L] = I(
|
|
147
|
+
o.find((e) => e.value === c) || {
|
|
148
|
+
label: o[0].label,
|
|
149
|
+
value: o[0].value
|
|
150
150
|
}
|
|
151
|
-
),
|
|
151
|
+
), t = r("paymentOption"), f = b.find((e) => t === e.value), h = r("enabled"), w = () => B.find((e) => e.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), y = r("autoChargeNoShowFeeIfCancelled"), x = r("autoChargeNoShowFeeTimeUnit"), P = r("autoChargeNoShowFeeTimeValue"), { t: l } = K(), T = ((R = p.recurringEvent) == null ? void 0 : R.count) !== void 0, F = !!p.seatsPerTimeSlot, O = (e, E) => 0 .toLocaleString(e, {
|
|
152
152
|
style: "currency",
|
|
153
|
-
currency:
|
|
153
|
+
currency: E,
|
|
154
154
|
minimumFractionDigits: 0,
|
|
155
155
|
maximumFractionDigits: 0
|
|
156
156
|
}).replace(/\d/g, "").trim();
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}, [
|
|
160
|
-
const
|
|
161
|
-
{ value: 0, label:
|
|
162
|
-
{ value: 1, label:
|
|
157
|
+
Y(() => {
|
|
158
|
+
h && (r("currency") || n("currency", o[0].value), r("paymentOption") || n("paymentOption", b[0].value)), r("refundPolicy") || n("refundPolicy", s.NEVER);
|
|
159
|
+
}, [h, r, n]);
|
|
160
|
+
const B = [
|
|
161
|
+
{ value: 0, label: l("business_days") },
|
|
162
|
+
{ value: 1, label: l("calendar_days") }
|
|
163
|
+
], d = [
|
|
164
|
+
{ value: N.enum.minutes, label: l("minutes") },
|
|
165
|
+
{ value: N.enum.hours, label: l("hours") },
|
|
166
|
+
{ value: N.enum.days, label: l("days") }
|
|
163
167
|
];
|
|
164
|
-
return /* @__PURE__ */ u(
|
|
165
|
-
|
|
166
|
-
!
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
|
|
168
|
+
return /* @__PURE__ */ u(g, { children: [
|
|
169
|
+
T && /* @__PURE__ */ a(M, { className: "mt-2", severity: "warning", title: l("warning_recurring_event_payment") }),
|
|
170
|
+
!T && h && /* @__PURE__ */ u(g, { children: [
|
|
171
|
+
/* @__PURE__ */ a("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ a(
|
|
172
|
+
C,
|
|
169
173
|
{
|
|
170
174
|
"data-testid": "stripe-price-input",
|
|
171
|
-
label:
|
|
175
|
+
label: l("price"),
|
|
172
176
|
className: "h-[38px]",
|
|
173
|
-
addOnLeading: /* @__PURE__ */
|
|
174
|
-
addOnSuffix:
|
|
177
|
+
addOnLeading: /* @__PURE__ */ a(g, { children: v.value ? O("en", v.value) : "" }),
|
|
178
|
+
addOnSuffix: c.toUpperCase(),
|
|
175
179
|
addOnClassname: "h-[38px]",
|
|
176
180
|
step: "0.01",
|
|
177
181
|
min: "0.5",
|
|
178
182
|
type: "number",
|
|
179
183
|
required: !0,
|
|
180
184
|
placeholder: "Price",
|
|
181
|
-
disabled:
|
|
182
|
-
onChange: (
|
|
183
|
-
|
|
185
|
+
disabled: i,
|
|
186
|
+
onChange: (e) => {
|
|
187
|
+
n("price", z(Number(e.target.value), c));
|
|
184
188
|
},
|
|
185
|
-
value:
|
|
189
|
+
value: k > 0 ? G(k, c) : void 0
|
|
186
190
|
}
|
|
187
191
|
) }),
|
|
188
192
|
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
|
|
193
|
+
/* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: l("currency") }),
|
|
194
|
+
/* @__PURE__ */ a(
|
|
195
|
+
m,
|
|
192
196
|
{
|
|
193
197
|
"data-testid": "stripe-currency-select",
|
|
194
198
|
variant: "default",
|
|
195
|
-
options:
|
|
199
|
+
options: o,
|
|
196
200
|
innerClassNames: {
|
|
197
201
|
input: "stripe-currency-input"
|
|
198
202
|
},
|
|
199
|
-
value:
|
|
203
|
+
value: v,
|
|
200
204
|
className: "text-black",
|
|
201
|
-
defaultValue:
|
|
202
|
-
onChange: (
|
|
203
|
-
|
|
205
|
+
defaultValue: v,
|
|
206
|
+
onChange: (e) => {
|
|
207
|
+
e && (L(e), n("currency", e.value));
|
|
204
208
|
}
|
|
205
209
|
}
|
|
206
210
|
)
|
|
207
211
|
] }),
|
|
208
212
|
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
|
|
213
|
+
/* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: l("payment_option") }),
|
|
214
|
+
/* @__PURE__ */ a(
|
|
215
|
+
m,
|
|
212
216
|
{
|
|
213
217
|
"data-testid": "stripe-payment-option-select",
|
|
214
|
-
defaultValue:
|
|
215
|
-
options:
|
|
216
|
-
onChange: (
|
|
217
|
-
|
|
218
|
+
defaultValue: f ? { ...f, label: l(f.label) } : { ...b[0], label: l(b[0].label) },
|
|
219
|
+
options: b.map((e) => ({ ...e, label: l(e.label) || e.label })),
|
|
220
|
+
onChange: (e) => {
|
|
221
|
+
e && (n("paymentOption", e.value), e.value === "HOLD" && (n("refundPolicy", s.NEVER), n("refundDaysCount", void 0), n("refundCountCalendarDays", void 0)));
|
|
218
222
|
},
|
|
219
223
|
className: "mb-1 h-[38px] w-full",
|
|
220
|
-
isDisabled:
|
|
224
|
+
isDisabled: F || i
|
|
221
225
|
}
|
|
222
226
|
)
|
|
223
227
|
] }),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/* @__PURE__ */
|
|
228
|
+
F && t === "HOLD" && /* @__PURE__ */ a(M, { className: "mt-2", severity: "warning", title: l("seats_and_no_show_fee_error") }),
|
|
229
|
+
t !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
|
|
230
|
+
/* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", children: l("refund_policy") }),
|
|
227
231
|
/* @__PURE__ */ u(
|
|
228
|
-
|
|
232
|
+
U,
|
|
229
233
|
{
|
|
230
|
-
disabled:
|
|
234
|
+
disabled: i || t === "HOLD",
|
|
231
235
|
defaultValue: "never",
|
|
232
236
|
className: "flex flex-col space-y-2",
|
|
233
237
|
value: r("refundPolicy"),
|
|
234
|
-
onValueChange: (
|
|
235
|
-
|
|
238
|
+
onValueChange: (e) => {
|
|
239
|
+
n("refundPolicy", e), e !== s.DAYS && (n("refundDaysCount", void 0), n("refundCountCalendarDays", void 0));
|
|
236
240
|
},
|
|
237
241
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */ u("div", { className:
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
|
|
242
|
+
/* @__PURE__ */ a(D, { className: "w-fit", value: s.ALWAYS, label: l("always"), id: "always" }),
|
|
243
|
+
/* @__PURE__ */ a(D, { className: "w-fit", value: s.NEVER, label: l("never"), id: "never" }),
|
|
244
|
+
/* @__PURE__ */ u("div", { className: S("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
|
|
245
|
+
/* @__PURE__ */ a(
|
|
246
|
+
V,
|
|
243
247
|
{
|
|
244
248
|
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
249
|
value: "days",
|
|
246
250
|
id: "days",
|
|
247
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ a(H, { 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
252
|
}
|
|
249
253
|
),
|
|
250
254
|
/* @__PURE__ */ u("div", { className: "flex items-center", children: [
|
|
251
255
|
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
252
256
|
" ",
|
|
253
|
-
|
|
257
|
+
l("if_cancelled")
|
|
254
258
|
] }),
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
|
|
259
|
+
/* @__PURE__ */ a(
|
|
260
|
+
C,
|
|
257
261
|
{
|
|
258
262
|
labelSrOnly: !0,
|
|
259
263
|
type: "number",
|
|
260
|
-
className:
|
|
264
|
+
className: S(
|
|
261
265
|
"border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
|
|
262
266
|
),
|
|
263
267
|
placeholder: "2",
|
|
264
|
-
disabled:
|
|
268
|
+
disabled: i,
|
|
265
269
|
min: 0,
|
|
266
270
|
defaultValue: r("refundDaysCount"),
|
|
267
|
-
required: r("refundPolicy") ===
|
|
271
|
+
required: r("refundPolicy") === s.DAYS,
|
|
268
272
|
value: r("refundDaysCount") ?? "",
|
|
269
|
-
onChange: (
|
|
273
|
+
onChange: (e) => n("refundDaysCount", parseInt(e.currentTarget.value))
|
|
270
274
|
}
|
|
271
275
|
),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
|
|
276
|
+
/* @__PURE__ */ a(
|
|
277
|
+
m,
|
|
274
278
|
{
|
|
275
|
-
options:
|
|
279
|
+
options: B,
|
|
276
280
|
isSearchable: !1,
|
|
277
|
-
isDisabled:
|
|
278
|
-
onChange: (
|
|
279
|
-
value:
|
|
280
|
-
defaultValue:
|
|
281
|
+
isDisabled: i,
|
|
282
|
+
onChange: (e) => n("refundCountCalendarDays", (e == null ? void 0 : e.value) === 1),
|
|
283
|
+
value: w(),
|
|
284
|
+
defaultValue: w()
|
|
281
285
|
}
|
|
282
286
|
),
|
|
283
287
|
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
284
288
|
" ",
|
|
285
|
-
|
|
289
|
+
l("before")
|
|
286
290
|
] })
|
|
287
291
|
] })
|
|
288
292
|
] })
|
|
289
293
|
]
|
|
290
294
|
}
|
|
291
295
|
)
|
|
296
|
+
] }),
|
|
297
|
+
t === "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4", children: [
|
|
298
|
+
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
299
|
+
_,
|
|
300
|
+
{
|
|
301
|
+
checked: y,
|
|
302
|
+
onChange: (e) => n("autoChargeNoShowFeeIfCancelled", e.target.checked),
|
|
303
|
+
description: l("auto_charge_for_last_minute_cancellation")
|
|
304
|
+
}
|
|
305
|
+
) }),
|
|
306
|
+
y && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ u("div", { className: "mt-2 flex items-center", children: [
|
|
307
|
+
/* @__PURE__ */ a(
|
|
308
|
+
C,
|
|
309
|
+
{
|
|
310
|
+
labelSrOnly: !0,
|
|
311
|
+
type: "number",
|
|
312
|
+
className: S(
|
|
313
|
+
"border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
|
|
314
|
+
),
|
|
315
|
+
placeholder: "2",
|
|
316
|
+
disabled: i,
|
|
317
|
+
min: 0,
|
|
318
|
+
defaultValue: P,
|
|
319
|
+
required: y,
|
|
320
|
+
value: P ?? "",
|
|
321
|
+
onChange: (e) => n("autoChargeNoShowFeeTimeValue", parseInt(e.currentTarget.value))
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
/* @__PURE__ */ a(
|
|
325
|
+
m,
|
|
326
|
+
{
|
|
327
|
+
options: d,
|
|
328
|
+
isSearchable: !1,
|
|
329
|
+
isDisabled: i,
|
|
330
|
+
onChange: (e) => n("autoChargeNoShowFeeTimeUnit", e == null ? void 0 : e.value),
|
|
331
|
+
value: d.find((e) => e.value === x) || d[0],
|
|
332
|
+
defaultValue: d.find((e) => e.value === x) || d[0]
|
|
333
|
+
}
|
|
334
|
+
),
|
|
335
|
+
/* @__PURE__ */ a("span", { className: "me-2 ms-2", children: l("before_scheduled_start_time") })
|
|
336
|
+
] }) })
|
|
292
337
|
] })
|
|
293
338
|
] })
|
|
294
339
|
] });
|
|
295
340
|
};
|
|
296
341
|
export {
|
|
297
|
-
|
|
342
|
+
W as default
|
|
298
343
|
};
|
package/dist/{EventTypeAppSettingsInterface-EZZkJrLi.js → EventTypeAppSettingsInterface-UpTmiEej.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, Fragment as D, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useEffect as T } from "react";
|
|
3
|
-
import { w, a0 as t, J as P, f as R, S as y } from "./index
|
|
3
|
+
import { w, a0 as t, J as P, f as R, S as y } from "./index-ZTlhgZJm.js";
|
|
4
4
|
const i = [
|
|
5
5
|
{ label: "SATS", value: "BTC", unit: "SATS" },
|
|
6
6
|
{ label: "USD- US Dollar", value: "USD", unit: "USD" },
|
package/dist/{EventTypeAppSettingsInterface-mOdk6pDR.js → EventTypeAppSettingsInterface-XQsGNWJq.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, jsxs as m, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { useState as o, useEffect as _ } from "react";
|
|
3
3
|
import { c as i, i as k, a as S } from "./currencyOptions-kannG2hu.js";
|
|
4
|
-
import { M as r, w as E, J as x, f as F, O as T, Q as q, S as O } from "./index
|
|
4
|
+
import { M as r, w as E, J as x, f as F, O as T, Q as q, S as O } from "./index-ZTlhgZJm.js";
|
|
5
5
|
const I = ({
|
|
6
6
|
getAppData: n,
|
|
7
7
|
setAppData: t,
|
package/dist/{EventTypeAppSettingsInterface-eejB8RJX.js → EventTypeAppSettingsInterface-jPvK2jsX.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 { w as p, f as h, R as v, r as x } from "./index
|
|
3
|
+
import { w as p, f as h, R as v, r as x } from "./index-ZTlhgZJm.js";
|
|
4
4
|
const R = ({ 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-xYWyd_Dz.js → EventTypeAppSettingsInterface-vBrvSwct.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as P, useEffect as k } from "react";
|
|
3
|
-
import { w as x, J as p, f as w, S as K } from "./index
|
|
3
|
+
import { w as x, J as p, f as w, S as K } from "./index-ZTlhgZJm.js";
|
|
4
4
|
const f = [
|
|
5
5
|
"BIF",
|
|
6
6
|
"CLP",
|
package/dist/{EventTypeAppSettingsInterface-CLwwrZv6.js → EventTypeAppSettingsInterface-x4ZemVo7.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
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 { K as p, S as h } from "./index
|
|
3
|
+
import { K as p, S as h } from "./index-ZTlhgZJm.js";
|
|
4
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(
|
package/dist/{EventTypeAppSettingsInterface-vNhCP6vQ.js → EventTypeAppSettingsInterface-yrvZgDxq.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as N, useEffect as O } from "react";
|
|
3
|
-
import { w as _, _ as t, J as g, f as C, V as P, S as p } from "./index
|
|
3
|
+
import { w as _, _ as t, J as g, f as C, V as P, S as p } from "./index-ZTlhgZJm.js";
|
|
4
4
|
const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
5
5
|
eventType: f,
|
|
6
6
|
getAppData: s,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, Fragment as l, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p } from "react";
|
|
3
|
-
import { v as d,
|
|
3
|
+
import { v as d, am as E, W as g } from "./index-ZTlhgZJm.js";
|
|
4
4
|
var s = /* @__PURE__ */ ((n) => (n.ACCOUNTS_STEP = "accounts", n.EVENT_TYPES_STEP = "event-types", n.CONFIGURE_STEP = "configure", n))(s || {}), i = function(n) {
|
|
5
5
|
switch (typeof n) {
|
|
6
6
|
case "string":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as vt } from "react/jsx-runtime";
|
|
2
2
|
import $t, { useEffect as It, useState as Gt } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { ai as Vt, aj as Kt, ak as qt, al as Ut, r as Dt, K as Wt } from "./index-ZTlhgZJm.js";
|
|
4
4
|
function Ht() {
|
|
5
5
|
return Vt(Kt, arguments);
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as H, jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import f, { useState as R, useEffect as Z } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { as as S, w as ee, b as Ce, B as G, W as Oe } from "./index-ZTlhgZJm.js";
|
|
4
4
|
function Y(n, e) {
|
|
5
5
|
var t = Object.keys(n);
|
|
6
6
|
if (Object.getOwnPropertySymbols) {
|
package/dist/cal-atoms.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aE as s, aF as n, aS as t, aC as o, a_ as r, b0 as i, aR as u, b2 as C, aZ as l, a$ as d, aD as g, aQ as c, b3 as p, aT as v, aY as S, b1 as T, aV as b, aG as m, aN as y, aO as E, aM as k, aH as B, b4 as A, b5 as O, aU as P, aK as f, aL as D, aI as I, al as R, aP as x, b6 as z, b7 as F, aW as G, aJ as M, aX as U } from "./index-ZTlhgZJm.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AvailabilitySettings,
|
|
4
4
|
n as Booker,
|
|
@@ -16,10 +16,10 @@ export {
|
|
|
16
16
|
v as Router,
|
|
17
17
|
S as SelectedCalendarsSettings,
|
|
18
18
|
T as StripeConnect,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
b as useAddSelectedCalendar,
|
|
20
|
+
m as useAtomsContext,
|
|
21
|
+
y as useBooking,
|
|
22
|
+
E as useBookings,
|
|
23
23
|
k as useCancelBooking,
|
|
24
24
|
B as useConnectedCalendars,
|
|
25
25
|
A as useCreateEventType,
|