@calcom/atoms 1.1.1-debug-dont-use → 1.1.12-debug-dont-use
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-HCjsIzUK.js} +1 -1
- package/dist/{AlbyPriceComponent-E6ULoDL6.js → AlbyPriceComponent-W5HsVgkl.js} +24 -24
- package/dist/{AppCard-cTGNOAHy.js → AppCard-w9WigXZl.js} +24 -24
- package/dist/{AppListCardPlatformWrapper-NSThSuXk.js → AppListCardPlatformWrapper-GlHYO_vL.js} +1 -1
- package/dist/{AppListCardWebWrapper-XwKnQn63.js → AppListCardWebWrapper-pBX_TR8d.js} +7 -7
- package/dist/{AppSettingsInterface-ZH3XhiYG.js → AppSettingsInterface-I35iVKTR.js} +1 -1
- package/dist/{AppSettingsInterface-x5iDZUBe.js → AppSettingsInterface-JeuREkvc.js} +4 -4
- package/dist/{AppSettingsInterface-YBMLeXt4.js → AppSettingsInterface-oAXII9bZ.js} +1 -1
- package/dist/DateRangePicker-CXZAze06.js +74 -0
- package/dist/{EventTypeAppCardInterface-cZjp0yNN.js → EventTypeAppCardInterface-1kb1DAXF.js} +4 -4
- package/dist/{EventTypeAppCardInterface-C6ns7UmL.js → EventTypeAppCardInterface-6bLFf-mJ.js} +3 -3
- package/dist/{EventTypeAppCardInterface-0gSJQJit.js → EventTypeAppCardInterface-9m0ipUcV.js} +2 -2
- package/dist/{EventTypeAppCardInterface--fNkLgYH.js → EventTypeAppCardInterface-BRO9C63X.js} +40 -40
- package/dist/{EventTypeAppCardInterface-2TR5xhf8.js → EventTypeAppCardInterface-BwxW6cnG.js} +4 -4
- package/dist/{EventTypeAppCardInterface-TSa1z_cz.js → EventTypeAppCardInterface-CJ33bYe7.js} +3 -3
- package/dist/{EventTypeAppCardInterface-9C3Wfgpy.js → EventTypeAppCardInterface-CfO5a7L0.js} +3 -3
- package/dist/{EventTypeAppCardInterface-omHgFR_2.js → EventTypeAppCardInterface-F8SkmnAV.js} +3 -3
- package/dist/{EventTypeAppCardInterface-VxD1hz61.js → EventTypeAppCardInterface-GsL1RQwm.js} +4 -4
- package/dist/{EventTypeAppCardInterface-L_OQx-GG.js → EventTypeAppCardInterface-KURGmUXt.js} +4 -4
- package/dist/{EventTypeAppCardInterface-VdYfOsab.js → EventTypeAppCardInterface-Ktu6bZ3i.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Q8BoN8IR.js → EventTypeAppCardInterface-LXta9gcp.js} +3 -3
- package/dist/{EventTypeAppCardInterface-F5At064k.js → EventTypeAppCardInterface-Ln9B2t8h.js} +8 -8
- package/dist/{EventTypeAppCardInterface-x8x6_qO2.js → EventTypeAppCardInterface-OP6dHmv1.js} +26 -26
- package/dist/{EventTypeAppCardInterface-_mJKoptx.js → EventTypeAppCardInterface-OuxQbhJB.js} +15 -15
- package/dist/{EventTypeAppCardInterface-JCEQYUtS.js → EventTypeAppCardInterface-POroEYPz.js} +4 -4
- package/dist/EventTypeAppCardInterface-UgRsp57-.js +24 -0
- package/dist/{EventTypeAppCardInterface-NMuTJqnR.js → EventTypeAppCardInterface-VKpVuOwh.js} +4 -4
- package/dist/{EventTypeAppCardInterface-_2yZa06r.js → EventTypeAppCardInterface-XumD3_xd.js} +3 -3
- package/dist/{EventTypeAppCardInterface-ix9-eOy7.js → EventTypeAppCardInterface-Y9jLf1-k.js} +4 -4
- package/dist/{EventTypeAppCardInterface-V2CVt-gp.js → EventTypeAppCardInterface-_feKFUHj.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Zei_gfk9.js → EventTypeAppCardInterface-bPOmfcYy.js} +10 -10
- package/dist/{EventTypeAppCardInterface-ugSSelEX.js → EventTypeAppCardInterface-bzG36hFi.js} +8 -8
- package/dist/EventTypeAppCardInterface-dr-WH0By.js +39 -0
- package/dist/{EventTypeAppCardInterface-0cii-lHS.js → EventTypeAppCardInterface-mpGRRFxM.js} +4 -4
- package/dist/{EventTypeAppCardInterface-qaVZIE5N.js → EventTypeAppCardInterface-nJac5DFJ.js} +3 -3
- package/dist/{EventTypeAppCardInterface-pS7YojCs.js → EventTypeAppCardInterface-szvi48V9.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-mf5L8PKf.js → EventTypeAppSettingsInterface-0MF998H2.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-USUuP18O.js → EventTypeAppSettingsInterface-BAihaVJh.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-A-zPsqPN.js → EventTypeAppSettingsInterface-ImRIWr2B.js} +8 -8
- package/dist/{EventTypeAppSettingsInterface-TxRlEgaM.js → EventTypeAppSettingsInterface-LRT7n_yL.js} +10 -10
- package/dist/{EventTypeAppSettingsInterface-xfI4WyE9.js → EventTypeAppSettingsInterface-S56c57pv.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-SrOLSflD.js → EventTypeAppSettingsInterface-c_xJm5bW.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-aGQavYPZ.js → EventTypeAppSettingsInterface-eTApsNn0.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-_jGTLesb.js → EventTypeAppSettingsInterface-ig05GsDo.js} +5 -5
- package/dist/{EventTypeAppSettingsInterface-Mw0nUm2I.js → EventTypeAppSettingsInterface-mywPJB7s.js} +3 -3
- package/dist/{EventTypeAppSettingsInterface-N-387tFo.js → EventTypeAppSettingsInterface-o_5kPQhw.js} +7 -7
- package/dist/EventTypeAppSettingsInterface-qDv421du.js +79 -0
- package/dist/{EventTypeAppSettingsInterface-wRyNHA8Z.js → EventTypeAppSettingsInterface-yS0zHBGd.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-uJw6TEuG.js → EventTypeAppSettingsInterface-zxD_C4fz.js} +8 -8
- package/dist/{InstallAppButton-sMIEaIrB.js → InstallAppButton-5IiP8C1s.js} +1 -1
- package/dist/{InstallAppButton-xME8ESsW.js → InstallAppButton-A3IP79r5.js} +3 -3
- package/dist/{InstallAppButton-3pRRFAeS.js → InstallAppButton-iRRxz6bW.js} +3 -3
- package/dist/{PhoneInput-_96ULuJw.js → PhoneInput-AXj4II7F.js} +1 -1
- package/dist/{StripePaymentForm-1ANfOJyB.js → StripePaymentForm-B2pea_tS.js} +6 -6
- package/dist/cal-atoms.js +17 -17
- package/dist/{index-me6CfU0W.js → index-7h1iB9JC.js} +15 -15
- package/dist/{index-qcnOr3S-.js → index-Jf2GAhqH.js} +1 -1
- package/dist/index-KQrl08NN.js +30 -0
- package/dist/{index-ZQlxzdt5.js → index-SWq3GK12.js} +66956 -63821
- package/dist/packages/features/bookings/Booker/Booker.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/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/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/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/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/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/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/index.d.ts +2 -0
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/repositories.d.ts +1 -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 +2 -2
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/{useIsAppEnabled-V8Jl9FX-.js → useIsAppEnabled-FQVY7rlm.js} +1 -1
- package/globals.min.css +16 -3
- package/package.json +2 -3
- 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-Zei_gfk9.js → EventTypeAppCardInterface-bPOmfcYy.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-SWq3GK12.js";
|
|
3
|
+
import { useMemo as v, useState as C } from "react";
|
|
4
|
+
import { A as w } from "./AppCard-w9WigXZl.js";
|
|
5
|
+
import E from "./EventTypeAppSettingsInterface-LRT7n_yL.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-ugSSelEX.js → EventTypeAppCardInterface-bzG36hFi.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, y as g, G as f, J as b, W as S } from "./index-SWq3GK12.js";
|
|
3
|
+
import { useMemo as v, useState as C } from "react";
|
|
4
|
+
import { A as w } from "./AppCard-w9WigXZl.js";
|
|
5
|
+
import E from "./EventTypeAppSettingsInterface-ig05GsDo.js";
|
|
6
|
+
const $ = function({
|
|
7
7
|
app: a,
|
|
8
8
|
eventType: p,
|
|
9
9
|
eventTypeFormMetadata: c
|
|
10
10
|
}) {
|
|
11
|
-
const t = i.useSearchParams(), { t: m } = g(), s = i.usePathname(), h =
|
|
11
|
+
const t = i.useSearchParams(), { t: m } = g(), s = i.usePathname(), h = v(
|
|
12
12
|
() => `${s}${t ? `?${t.toString()}` : ""}`,
|
|
13
13
|
[s, t]
|
|
14
14
|
), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = b(c), r = !o && A;
|
|
15
15
|
return /* @__PURE__ */ e(
|
|
16
16
|
w,
|
|
17
17
|
{
|
|
18
|
-
returnTo:
|
|
18
|
+
returnTo: S + h,
|
|
19
19
|
app: a,
|
|
20
20
|
switchChecked: o,
|
|
21
21
|
switchOnClick: (y) => {
|
|
@@ -38,5 +38,5 @@ const W = function({
|
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
$ as default
|
|
42
42
|
};
|
|
@@ -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-SWq3GK12.js";
|
|
3
|
+
import { useState as P } from "react";
|
|
4
|
+
import { A as v } from "./AppCard-w9WigXZl.js";
|
|
5
|
+
import C from "./EventTypeAppSettingsInterface-qDv421du.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-0cii-lHS.js → EventTypeAppCardInterface-mpGRRFxM.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 } from "./useIsAppEnabled-
|
|
5
|
-
import l from "./EventTypeAppSettingsInterface-
|
|
2
|
+
import { G as m } from "./index-SWq3GK12.js";
|
|
3
|
+
import { A as c } from "./AppCard-w9WigXZl.js";
|
|
4
|
+
import { u } from "./useIsAppEnabled-FQVY7rlm.js";
|
|
5
|
+
import l from "./EventTypeAppSettingsInterface-0MF998H2.js";
|
|
6
6
|
const b = function({ app: t, eventType: e }) {
|
|
7
7
|
var p;
|
|
8
8
|
const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
|
package/dist/{EventTypeAppCardInterface-qaVZIE5N.js → EventTypeAppCardInterface-nJac5DFJ.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { A as I } from "./AppCard-
|
|
4
|
-
import { u as C } from "./useIsAppEnabled-
|
|
2
|
+
import { G as h, f as n } from "./index-SWq3GK12.js";
|
|
3
|
+
import { A as I } from "./AppCard-w9WigXZl.js";
|
|
4
|
+
import { u as C } from "./useIsAppEnabled-FQVY7rlm.js";
|
|
5
5
|
const R = function({ app: s, eventType: o }) {
|
|
6
6
|
var i;
|
|
7
7
|
const { getAppData: p, setAppData: r, disabled: t } = h(), c = p("SITE_ID"), d = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = C(s);
|
package/dist/{EventTypeAppCardInterface-pS7YojCs.js → EventTypeAppCardInterface-szvi48V9.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-SWq3GK12.js";
|
|
3
|
+
import { A as u } from "./AppCard-w9WigXZl.js";
|
|
4
|
+
import { u as I } from "./useIsAppEnabled-FQVY7rlm.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);
|
package/dist/{EventTypeAppSettingsInterface-A-zPsqPN.js → EventTypeAppSettingsInterface-ImRIWr2B.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-SWq3GK12.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-TxRlEgaM.js → EventTypeAppSettingsInterface-LRT7n_yL.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-SWq3GK12.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
|
};
|
package/dist/{EventTypeAppSettingsInterface-SrOLSflD.js → EventTypeAppSettingsInterface-c_xJm5bW.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-SWq3GK12.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-_jGTLesb.js → EventTypeAppSettingsInterface-ig05GsDo.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-SWq3GK12.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-Mw0nUm2I.js → EventTypeAppSettingsInterface-mywPJB7s.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-SWq3GK12.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-N-387tFo.js → EventTypeAppSettingsInterface-o_5kPQhw.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-SWq3GK12.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
|
};
|
|
@@ -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-SWq3GK12.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-uJw6TEuG.js → EventTypeAppSettingsInterface-zxD_C4fz.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
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(""), [
|
|
3
|
+
import { y as I, af as P, ag as j, e as T, u as g, s as k, M as A, ah as E, ai as R, X as z } from "./index-SWq3GK12.js";
|
|
4
|
+
const x = "search", C = "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(""), [y, _] = d(x), w = async (n, f) => {
|
|
6
6
|
if (u)
|
|
7
7
|
return;
|
|
8
8
|
b(!0), h("");
|
|
@@ -37,7 +37,7 @@ const y = "search", C = "url", B = (s) => {
|
|
|
37
37
|
{
|
|
38
38
|
className: k(
|
|
39
39
|
"flex cursor-pointer items-center border-b-2 p-2 text-sm ",
|
|
40
|
-
|
|
40
|
+
y === t ? "text-default border-emphasis" : "text-subtle border-transparent"
|
|
41
41
|
),
|
|
42
42
|
onClick: () => {
|
|
43
43
|
v(""), l(""), _(t);
|
|
@@ -48,13 +48,13 @@ const y = "search", C = "url", B = (s) => {
|
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
), M = async (n) => {
|
|
51
|
-
n.stopPropagation(), n.preventDefault(),
|
|
51
|
+
n.stopPropagation(), n.preventDefault(), y === x ? w(c, 0) : y === C && G(c);
|
|
52
52
|
};
|
|
53
53
|
return /* @__PURE__ */ e(P, { open: D, onOpenChange: O, children: /* @__PURE__ */ o(j, { children: [
|
|
54
54
|
/* @__PURE__ */ e("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
|
|
55
55
|
/* @__PURE__ */ e("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
|
|
56
56
|
/* @__PURE__ */ o("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
|
|
57
|
-
S("search", a("search_giphy"),
|
|
57
|
+
S("search", a("search_giphy"), x),
|
|
58
58
|
S("link", a("add_link_from_giphy"), C)
|
|
59
59
|
] }),
|
|
60
60
|
/* @__PURE__ */ o(
|
|
@@ -67,7 +67,7 @@ const y = "search", C = "url", B = (s) => {
|
|
|
67
67
|
T,
|
|
68
68
|
{
|
|
69
69
|
type: "text",
|
|
70
|
-
placeholder:
|
|
70
|
+
placeholder: y === x ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
|
|
71
71
|
value: c,
|
|
72
72
|
onChange: (n) => {
|
|
73
73
|
v(n.target.value);
|
|
@@ -109,7 +109,7 @@ const y = "search", C = "url", B = (s) => {
|
|
|
109
109
|
}
|
|
110
110
|
) }) : /* @__PURE__ */ e("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${c}` }) }) }),
|
|
111
111
|
N && /* @__PURE__ */ e(A, { severity: "error", title: N, className: "my-4" }),
|
|
112
|
-
i &&
|
|
112
|
+
i && y === x && /* @__PURE__ */ o("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
|
|
113
113
|
/* @__PURE__ */ e("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
|
|
114
114
|
/* @__PURE__ */ e(
|
|
115
115
|
g,
|
|
@@ -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 {
|
|
3
|
+
import { x as d, an as E, W as g } from "./index-SWq3GK12.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 e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
2
|
+
import { x as o } from "./index-SWq3GK12.js";
|
|
3
|
+
function d(t) {
|
|
4
4
|
const n = o("exchange2013_calendar");
|
|
5
5
|
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
6
|
onClick() {
|
|
@@ -10,5 +10,5 @@ function u(t) {
|
|
|
10
10
|
}) });
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
d as default
|
|
14
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
2
|
+
import { x as o } from "./index-SWq3GK12.js";
|
|
3
|
+
function d(t) {
|
|
4
4
|
const n = o("exchange2016_calendar");
|
|
5
5
|
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
6
|
onClick() {
|
|
@@ -10,5 +10,5 @@ function u(t) {
|
|
|
10
10
|
}) });
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
d as default
|
|
14
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as vt } from "react/jsx-runtime";
|
|
2
2
|
import Bt, { useState as $t, useEffect as Gt } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { aj as Vt, ak as qt, al as Kt, am as Ut, s as It, O as Wt } from "./index-SWq3GK12.js";
|
|
4
4
|
function Ht() {
|
|
5
5
|
return Vt(qt, arguments);
|
|
6
6
|
}
|