@calcom/atoms 2.3.7-fixup-1 → 2.3.8
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-ChrEOlMO.js → AddressInput-BPeQ3Ue1.js} +1 -1
- package/dist/{AlbyPriceComponent-D3ifyxvQ.js → AlbyPriceComponent-CV8TQDZE.js} +1 -1
- package/dist/{AppCard-Bnx8PyD-.js → AppCard-CqXUqN41.js} +1 -1
- package/dist/{AppListCardPlatformWrapper-D54gFhln.js → AppListCardPlatformWrapper-CGaZOSRY.js} +1 -1
- package/dist/{AppListCardWebWrapper-SJ5aYvnw.js → AppListCardWebWrapper-BHs3YXfm.js} +1 -1
- package/dist/{AppSettingsInterface-7Yodrpy1.js → AppSettingsInterface-Cha7YFTm.js} +1 -1
- package/dist/{AppSettingsInterface-BgKHkFIh.js → AppSettingsInterface-MWbscJy1.js} +1 -1
- package/dist/{AppSettingsInterface-C2wk8sg9.js → AppSettingsInterface-lf-baNB3.js} +1 -1
- package/dist/{DateRangePicker-D6d-fTwN.js → DateRangePicker-C9iMfRWm.js} +1 -1
- package/dist/{EventTypeAppCardInterface-x0m8Gx9B.js → EventTypeAppCardInterface-B0hZje_Y.js} +4 -4
- package/dist/{EventTypeAppCardInterface-BOH6GKDM.js → EventTypeAppCardInterface-BHgz-QCd.js} +4 -4
- package/dist/EventTypeAppCardInterface-BMtY95fk.js +616 -0
- package/dist/{EventTypeAppCardInterface-BJl9Wp7G.js → EventTypeAppCardInterface-B_ERDZ0x.js} +4 -4
- package/dist/{EventTypeAppCardInterface-DZSBS-zk.js → EventTypeAppCardInterface-Bnk0srxU.js} +3 -3
- package/dist/{EventTypeAppCardInterface-juXolJiA.js → EventTypeAppCardInterface-C-LObVME.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DA_6xDwJ.js → EventTypeAppCardInterface-C6mVMSim.js} +3 -3
- package/dist/{EventTypeAppCardInterface-B002JZB5.js → EventTypeAppCardInterface-C7wDwt3C.js} +4 -4
- package/dist/{EventTypeAppCardInterface-C1_WqOFN.js → EventTypeAppCardInterface-CK_7K0En.js} +4 -4
- package/dist/{EventTypeAppCardInterface-C7-53_r-.js → EventTypeAppCardInterface-CMo07yBK.js} +4 -4
- package/dist/{EventTypeAppCardInterface-H8rKSMMe.js → EventTypeAppCardInterface-CT5WsuB1.js} +3 -3
- package/dist/{EventTypeAppCardInterface-Cyw1HwrX.js → EventTypeAppCardInterface-CWE8yFFp.js} +2 -2
- package/dist/{EventTypeAppCardInterface-DaLnUNBX.js → EventTypeAppCardInterface-CXxcDc58.js} +3 -3
- package/dist/{EventTypeAppCardInterface-DQ0WwBqP.js → EventTypeAppCardInterface-CemTCk3s.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CypdnpwS.js → EventTypeAppCardInterface-CitfZGCV.js} +3 -3
- package/dist/{EventTypeAppCardInterface--q-rDVfk.js → EventTypeAppCardInterface-CnzOthog.js} +3 -3
- package/dist/{EventTypeAppCardInterface-hRMntRPM.js → EventTypeAppCardInterface-CpkvzHeS.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CkbJwtz4.js → EventTypeAppCardInterface-D1qnnj8T.js} +4 -4
- package/dist/{EventTypeAppCardInterface-BczCNooX.js → EventTypeAppCardInterface-D6WDAt94.js} +2 -2
- package/dist/{EventTypeAppCardInterface-rnYNaHvZ.js → EventTypeAppCardInterface-DFw7yYCI.js} +3 -3
- package/dist/{EventTypeAppCardInterface-D1sq2FyS.js → EventTypeAppCardInterface-DMp1i1QJ.js} +4 -4
- package/dist/{EventTypeAppCardInterface-yMfSgCM7.js → EventTypeAppCardInterface-DNjnSokT.js} +3 -3
- package/dist/{EventTypeAppCardInterface-ryEna_o8.js → EventTypeAppCardInterface-DRHWUvqS.js} +3 -3
- package/dist/{EventTypeAppCardInterface-D2ab7G17.js → EventTypeAppCardInterface-DXmlZAVI.js} +4 -4
- package/dist/{EventTypeAppCardInterface-DJNEs3De.js → EventTypeAppCardInterface-NimYDiFA.js} +4 -4
- package/dist/{EventTypeAppCardInterface-5VUq1O85.js → EventTypeAppCardInterface-TqVcTMYU.js} +3 -3
- package/dist/{EventTypeAppCardInterface-C6Zb_BOz.js → EventTypeAppCardInterface-r6J9_Sdx.js} +3 -3
- package/dist/{EventTypeAppCardInterface-CEaLeHwI.js → EventTypeAppCardInterface-xU1bPmb5.js} +4 -4
- package/dist/{EventTypeAppSettingsInterface-DLASXsiG.js → EventTypeAppSettingsInterface-BGrAUNgH.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BdgHXAst.js → EventTypeAppSettingsInterface-BRBAwjNI.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BIWiNPKv.js → EventTypeAppSettingsInterface-CA1wX8Z5.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CiI6Mf1b.js → EventTypeAppSettingsInterface-CCZaFGW5.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-vv4P2LrX.js → EventTypeAppSettingsInterface-DDT62ENQ.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CRhaZp0b.js → EventTypeAppSettingsInterface-DNtKOXic.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-DkKJjPl2.js → EventTypeAppSettingsInterface-DUWLo7Fs.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-CEMPEVB8.js → EventTypeAppSettingsInterface-DXeR_QFo.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-DHg3shLU.js → EventTypeAppSettingsInterface-Dk3PjrGd.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-LlAeeT5d.js → EventTypeAppSettingsInterface-DrekrYIV.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-B5vdtAWe.js → EventTypeAppSettingsInterface-DxtIgjhO.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BiMxrrL4.js → EventTypeAppSettingsInterface-EE9hFWG3.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-BylQ_OGm.js → EventTypeAppSettingsInterface-dYMc2MyS.js} +1 -1
- package/dist/{EventTypeAppSettingsInterface-D-2AGPtv.js → EventTypeAppSettingsInterface-qu0gmyAB.js} +1 -1
- package/dist/{EventTypeDescription-a25sdTgA.js → EventTypeDescription-C5kU4nj0.js} +1 -1
- package/dist/{InstallAppButton-ZLDX9vLj.js → InstallAppButton-BZpYEXAB.js} +1 -1
- package/dist/{InstallAppButton-DrF8md8g.js → InstallAppButton-DrnFkbwv.js} +1 -1
- package/dist/{InstallAppButton-BObuzZKd.js → InstallAppButton-SdnlJHPH.js} +1 -1
- package/dist/{PhoneInput-BabPRASG.js → PhoneInput-B_1lwuMx.js} +1 -1
- package/dist/{StripePaymentForm-Bha9OX4J.js → StripePaymentForm-CpGI_VJE.js} +1 -1
- package/dist/cal-atoms.js +1 -1
- package/dist/{index-eLgG4zd2.js → index-BeODvL94.js} +40064 -40056
- package/dist/{index-CwlVE06V.js → index-LSEIYQIk.js} +2 -2
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +6 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.phone.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.phone.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.team-creation.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.team-creation.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.deleted.team-plan.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.deleted.team-plan.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.deleted.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_customer.subscription.deleted.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.upcoming.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/domain/__tests__/BillingPeriodPricing.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/domain/__tests__/BillingPeriodPricing.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/domain/__tests__/billing-plans.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/domain/__tests__/billing-plans.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/helpers/getCheckoutSessionExpiresAt.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/helpers/getCheckoutSessionExpiresAt.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/helpers/getUserAndTeamWithBillingPermission.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/helpers/getUserAndTeamWithBillingPermission.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/helpers/handleInsufficientCredits.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/helpers/handleInsufficientCredits.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/lib/month-key.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/lib/month-key.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/lib/proration-utils.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/lib/proration-utils.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/lib/stripe-subscription-utils.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/lib/stripe-subscription-utils.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/lib/subscription-updates.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/lib/subscription-updates.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/organizations/internal-organization-billing.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/organizations/internal-organization-billing.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/advance-dunning-tiers.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/advance-dunning-tiers.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/advance-single-team-dunning.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/advance-single-team-dunning.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/blast-dunning-emails.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/blast-dunning-emails.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-cancellation-email.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-cancellation-email.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-email-for-status.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-email-for-status.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-pause-email.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-pause-email.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-soft-block-email.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-soft-block-email.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-warning-email.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/__tests__/send-dunning-warning-email.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/dunning/trigger/config.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/dunning/trigger/emailConfig.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/dunning/trigger/emailSchema.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/dunning/trigger/schema.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/__tests__/ProrationEmailService.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/proration/__tests__/ProrationEmailService.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/cancelProrationReminder.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/cancelProrationReminder.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/processMonthlyProrationBatch.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/processMonthlyProrationBatch.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/scheduleMonthlyProration.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/scheduleMonthlyProration.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/sendProrationInvoiceEmail.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/sendProrationInvoiceEmail.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/sendProrationReminderEmail.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/__tests__/sendProrationReminderEmail.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/config.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailConfig.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/emailSchemas.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/proration/tasker/trigger/schema.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/service/webhookEvent/__tests__/WebhookEventService.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/service/webhookEvent/__tests__/WebhookEventService.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts +2 -1
- package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/detectMatchedTemplate.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/detectMatchedTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +6 -3
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +18 -0
- package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +6 -0
- package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +18 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +12 -0
- package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +6 -0
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +12 -0
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/{server.browser-Dc9HKQ91.js → server.browser-DCKu7Rpb.js} +1 -1
- package/dist/{useIsAppEnabled-B-OOKpqX.js → useIsAppEnabled-BOS-Bwce.js} +1 -1
- package/package.json +1 -1
- package/dist/EventTypeAppCardInterface-CWsdiu1M.js +0 -595
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
import { jsxs as C, Fragment as Y, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { S as u, A as ne } from "./AppCard-CqXUqN41.js";
|
|
3
|
+
import { useMemo as M, useState as A } from "react";
|
|
4
|
+
import { az as S, aA as s, aB as x, o as Q, i as k, e as B, f as v, B as z, al as U, p as le, q as te, W as oe, a8 as ae, t as se } from "./index-BeODvL94.js";
|
|
5
|
+
import { u as ce } from "./useIsAppEnabled-BOS-Bwce.js";
|
|
6
|
+
var R = /* @__PURE__ */ ((c) => (c.ON_BOOKING = "on_booking", c.ON_CANCEL = "on_cancel", c))(R || {});
|
|
7
|
+
const I = s.DATE, L = s.CHECKBOX, re = {
|
|
8
|
+
[s.TEXT]: "text",
|
|
9
|
+
[s.STRING]: "text",
|
|
10
|
+
[s.DATE]: "date",
|
|
11
|
+
[s.DATETIME]: "datetime",
|
|
12
|
+
[s.PHONE]: "phone",
|
|
13
|
+
[s.CHECKBOX]: "checkbox",
|
|
14
|
+
[s.PICKLIST]: "picklist",
|
|
15
|
+
[s.CUSTOM]: "custom",
|
|
16
|
+
[s.TEXTAREA]: "textarea"
|
|
17
|
+
}, de = {
|
|
18
|
+
[S.BOOKING_CANCEL_DATE]: "booking_cancel_date",
|
|
19
|
+
[S.BOOKING_START_DATE]: "booking_start_date",
|
|
20
|
+
[S.BOOKING_CREATED_DATE]: "booking_created_date"
|
|
21
|
+
}, ue = (c) => ({
|
|
22
|
+
[x.EVERY_BOOKING]: c === R.ON_CANCEL ? "salesforce_on_every_cancellation" : "on_every_booking",
|
|
23
|
+
[x.FIELD_EMPTY]: "only_if_field_is_empty"
|
|
24
|
+
}), fe = (c, _) => c.map((p) => ({
|
|
25
|
+
label: _(re[p]),
|
|
26
|
+
value: p
|
|
27
|
+
})), me = (c, _, p) => {
|
|
28
|
+
const w = c === R.ON_CANCEL ? [S.BOOKING_CANCEL_DATE, S.BOOKING_START_DATE, S.BOOKING_CREATED_DATE] : [S.BOOKING_START_DATE, S.BOOKING_CREATED_DATE];
|
|
29
|
+
return (_ ?? w).map((f) => ({ label: p(de[f]), value: f }));
|
|
30
|
+
}, he = (c, _, p) => {
|
|
31
|
+
const w = ue(_);
|
|
32
|
+
return c.map((a) => ({ label: p(w[a]), value: a }));
|
|
33
|
+
}, pe = (c) => [
|
|
34
|
+
{ label: c("true"), value: !0 },
|
|
35
|
+
{ label: c("false"), value: !1 }
|
|
36
|
+
], J = ({
|
|
37
|
+
bookingAction: c,
|
|
38
|
+
optionLabel: _,
|
|
39
|
+
optionEnabled: p,
|
|
40
|
+
optionSwitchOnChange: w,
|
|
41
|
+
writeToObjectData: a,
|
|
42
|
+
updateWriteToObjectData: f,
|
|
43
|
+
supportedFieldTypes: h,
|
|
44
|
+
supportedDateFields: m,
|
|
45
|
+
supportedWriteTriggers: D = [x.EVERY_BOOKING, x.FIELD_EMPTY]
|
|
46
|
+
}) => {
|
|
47
|
+
const { t: d } = Q(), E = M(
|
|
48
|
+
() => fe(h, d),
|
|
49
|
+
[h, d]
|
|
50
|
+
), g = M(
|
|
51
|
+
() => me(c, m, d),
|
|
52
|
+
[m, c, d]
|
|
53
|
+
), O = M(
|
|
54
|
+
() => he(D, c, d),
|
|
55
|
+
[D, c, d]
|
|
56
|
+
), F = O.length > 1, b = M(() => pe(d), [d]), [G, K] = A(E[0]), [y, X] = A(g[0]), [H, P] = A(
|
|
57
|
+
b[0]
|
|
58
|
+
), [t, Z] = A(O[0]), [V, $] = A({}), [q, N] = A({}), [r, W] = A({
|
|
59
|
+
field: "",
|
|
60
|
+
fieldType: G.value,
|
|
61
|
+
value: "",
|
|
62
|
+
whenToWrite: t.value
|
|
63
|
+
}), ee = (i) => {
|
|
64
|
+
Object.keys(V).forEach((o) => {
|
|
65
|
+
V[o] && o !== i && j(o);
|
|
66
|
+
}), $((o) => ({ ...o, [i]: !0 })), N((o) => ({
|
|
67
|
+
...o,
|
|
68
|
+
[i]: {
|
|
69
|
+
field: i,
|
|
70
|
+
fieldType: a[i].fieldType,
|
|
71
|
+
value: a[i].value,
|
|
72
|
+
whenToWrite: a[i].whenToWrite
|
|
73
|
+
}
|
|
74
|
+
}));
|
|
75
|
+
}, j = (i) => {
|
|
76
|
+
$((o) => ({ ...o, [i]: !1 })), N((o) => {
|
|
77
|
+
const l = { ...o };
|
|
78
|
+
return delete l[i], l;
|
|
79
|
+
});
|
|
80
|
+
}, ie = (i) => {
|
|
81
|
+
const o = q[i];
|
|
82
|
+
if (!o) return;
|
|
83
|
+
if (!o.field.trim()) {
|
|
84
|
+
U(d("field_name_cannot_be_empty"), "error");
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (o.field !== i && Object.keys(a).includes(o.field.trim())) {
|
|
88
|
+
U(d("field_already_exists"), "error");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const l = { ...a };
|
|
92
|
+
o.field !== i && delete l[i], l[o.field.trim()] = {
|
|
93
|
+
fieldType: o.fieldType,
|
|
94
|
+
value: o.value,
|
|
95
|
+
whenToWrite: o.whenToWrite
|
|
96
|
+
}, f(l), j(i);
|
|
97
|
+
};
|
|
98
|
+
return /* @__PURE__ */ C(Y, { children: [
|
|
99
|
+
/* @__PURE__ */ e(u.SubSectionHeader, { icon: "star", labelFor: "write-to-object-settings", title: _, children: /* @__PURE__ */ e(
|
|
100
|
+
k,
|
|
101
|
+
{
|
|
102
|
+
checked: p,
|
|
103
|
+
onCheckedChange: w,
|
|
104
|
+
id: "write-to-object-settings",
|
|
105
|
+
size: "sm"
|
|
106
|
+
}
|
|
107
|
+
) }),
|
|
108
|
+
p ? /* @__PURE__ */ C(u.SubSectionContent, { children: [
|
|
109
|
+
/* @__PURE__ */ C("div", { className: "text-subtle flex gap-3 px-3 py-[6px] text-sm font-medium", children: [
|
|
110
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: d("field_name") }),
|
|
111
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: d("field_type") }),
|
|
112
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: d("value") }),
|
|
113
|
+
F && /* @__PURE__ */ e("div", { className: "flex-1", children: d("when_to_write") }),
|
|
114
|
+
/* @__PURE__ */ e("div", { className: "w-20" })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ C(u.SubSectionNested, { children: [
|
|
117
|
+
Object.keys(a).map((i) => {
|
|
118
|
+
const o = V[i], l = q[i];
|
|
119
|
+
return /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
120
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: o ? /* @__PURE__ */ e(
|
|
121
|
+
B,
|
|
122
|
+
{
|
|
123
|
+
value: (l == null ? void 0 : l.field) || i,
|
|
124
|
+
onChange: (n) => N((T) => ({
|
|
125
|
+
...T,
|
|
126
|
+
[i]: { ...l, field: n.target.value }
|
|
127
|
+
})),
|
|
128
|
+
size: "sm",
|
|
129
|
+
className: "w-full"
|
|
130
|
+
}
|
|
131
|
+
) : /* @__PURE__ */ e(B, { value: i, readOnly: !0, size: "sm", className: "w-full" }) }),
|
|
132
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: o ? /* @__PURE__ */ e(
|
|
133
|
+
v,
|
|
134
|
+
{
|
|
135
|
+
size: "sm",
|
|
136
|
+
className: "w-full",
|
|
137
|
+
options: E,
|
|
138
|
+
value: E.find((n) => n.value === (l == null ? void 0 : l.fieldType)),
|
|
139
|
+
onChange: (n) => {
|
|
140
|
+
n && N((T) => ({
|
|
141
|
+
...T,
|
|
142
|
+
[i]: {
|
|
143
|
+
...l,
|
|
144
|
+
fieldType: n.value,
|
|
145
|
+
...n.value === I && {
|
|
146
|
+
value: g[0].value
|
|
147
|
+
},
|
|
148
|
+
...n.value === L && {
|
|
149
|
+
value: b[0].value
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
) : /* @__PURE__ */ e(
|
|
156
|
+
v,
|
|
157
|
+
{
|
|
158
|
+
size: "sm",
|
|
159
|
+
className: "w-full",
|
|
160
|
+
value: E.find(
|
|
161
|
+
(n) => n.value === a[i].fieldType
|
|
162
|
+
),
|
|
163
|
+
isDisabled: !0
|
|
164
|
+
}
|
|
165
|
+
) }),
|
|
166
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: o ? (l == null ? void 0 : l.fieldType) === I ? /* @__PURE__ */ e(
|
|
167
|
+
v,
|
|
168
|
+
{
|
|
169
|
+
size: "sm",
|
|
170
|
+
className: "w-full",
|
|
171
|
+
options: g,
|
|
172
|
+
value: g.find((n) => n.value === l.value),
|
|
173
|
+
onChange: (n) => {
|
|
174
|
+
n && N((T) => ({
|
|
175
|
+
...T,
|
|
176
|
+
[i]: { ...l, value: n.value }
|
|
177
|
+
}));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
) : (l == null ? void 0 : l.fieldType) === L ? /* @__PURE__ */ e(
|
|
181
|
+
v,
|
|
182
|
+
{
|
|
183
|
+
size: "sm",
|
|
184
|
+
className: "w-full",
|
|
185
|
+
options: b,
|
|
186
|
+
value: b.find((n) => n.value === l.value),
|
|
187
|
+
onChange: (n) => {
|
|
188
|
+
n && N((T) => ({
|
|
189
|
+
...T,
|
|
190
|
+
[i]: { ...l, value: n.value }
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
) : /* @__PURE__ */ e(
|
|
195
|
+
B,
|
|
196
|
+
{
|
|
197
|
+
value: (l == null ? void 0 : l.value) || "",
|
|
198
|
+
onChange: (n) => N((T) => ({
|
|
199
|
+
...T,
|
|
200
|
+
[i]: { ...l, value: n.target.value }
|
|
201
|
+
})),
|
|
202
|
+
size: "sm",
|
|
203
|
+
className: "w-full"
|
|
204
|
+
}
|
|
205
|
+
) : a[i].fieldType === I ? /* @__PURE__ */ e(
|
|
206
|
+
v,
|
|
207
|
+
{
|
|
208
|
+
size: "sm",
|
|
209
|
+
className: "w-full",
|
|
210
|
+
value: g.find(
|
|
211
|
+
(n) => n.value === a[i].value
|
|
212
|
+
),
|
|
213
|
+
isDisabled: !0
|
|
214
|
+
}
|
|
215
|
+
) : a[i].fieldType === L ? /* @__PURE__ */ e(
|
|
216
|
+
v,
|
|
217
|
+
{
|
|
218
|
+
size: "sm",
|
|
219
|
+
className: "w-full",
|
|
220
|
+
value: b.find(
|
|
221
|
+
(n) => n.value === a[i].value
|
|
222
|
+
),
|
|
223
|
+
isDisabled: !0
|
|
224
|
+
}
|
|
225
|
+
) : /* @__PURE__ */ e(
|
|
226
|
+
B,
|
|
227
|
+
{
|
|
228
|
+
value: a[i].value,
|
|
229
|
+
readOnly: !0,
|
|
230
|
+
size: "sm",
|
|
231
|
+
className: "w-full"
|
|
232
|
+
}
|
|
233
|
+
) }),
|
|
234
|
+
F && /* @__PURE__ */ e("div", { className: "flex-1", children: o ? /* @__PURE__ */ e(
|
|
235
|
+
v,
|
|
236
|
+
{
|
|
237
|
+
size: "sm",
|
|
238
|
+
className: "w-full",
|
|
239
|
+
options: O,
|
|
240
|
+
value: O.find((n) => n.value === (l == null ? void 0 : l.whenToWrite)),
|
|
241
|
+
onChange: (n) => {
|
|
242
|
+
n && N((T) => ({
|
|
243
|
+
...T,
|
|
244
|
+
[i]: { ...l, whenToWrite: n.value }
|
|
245
|
+
}));
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
) : /* @__PURE__ */ e(
|
|
249
|
+
v,
|
|
250
|
+
{
|
|
251
|
+
size: "sm",
|
|
252
|
+
className: "w-full",
|
|
253
|
+
value: O.find(
|
|
254
|
+
(n) => n.value === a[i].whenToWrite
|
|
255
|
+
),
|
|
256
|
+
isDisabled: !0
|
|
257
|
+
}
|
|
258
|
+
) }),
|
|
259
|
+
/* @__PURE__ */ e("div", { className: "flex w-20 justify-center gap-1", children: o ? /* @__PURE__ */ C(Y, { children: [
|
|
260
|
+
/* @__PURE__ */ e(
|
|
261
|
+
z,
|
|
262
|
+
{
|
|
263
|
+
size: "sm",
|
|
264
|
+
StartIcon: "check",
|
|
265
|
+
variant: "icon",
|
|
266
|
+
color: "primary",
|
|
267
|
+
onClick: () => ie(i)
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
/* @__PURE__ */ e(
|
|
271
|
+
z,
|
|
272
|
+
{
|
|
273
|
+
size: "sm",
|
|
274
|
+
StartIcon: "x",
|
|
275
|
+
variant: "icon",
|
|
276
|
+
color: "secondary",
|
|
277
|
+
onClick: () => j(i)
|
|
278
|
+
}
|
|
279
|
+
)
|
|
280
|
+
] }) : /* @__PURE__ */ C(Y, { children: [
|
|
281
|
+
/* @__PURE__ */ e(
|
|
282
|
+
z,
|
|
283
|
+
{
|
|
284
|
+
size: "sm",
|
|
285
|
+
StartIcon: "pencil",
|
|
286
|
+
variant: "icon",
|
|
287
|
+
color: "minimal",
|
|
288
|
+
onClick: () => ee(i)
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
/* @__PURE__ */ e(
|
|
292
|
+
z,
|
|
293
|
+
{
|
|
294
|
+
size: "sm",
|
|
295
|
+
StartIcon: "x",
|
|
296
|
+
variant: "icon",
|
|
297
|
+
color: "minimal",
|
|
298
|
+
onClick: () => {
|
|
299
|
+
const n = { ...a };
|
|
300
|
+
delete n[i], f(n);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
] }) })
|
|
305
|
+
] }, i);
|
|
306
|
+
}),
|
|
307
|
+
/* @__PURE__ */ C("div", { className: "flex gap-2", children: [
|
|
308
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
309
|
+
B,
|
|
310
|
+
{
|
|
311
|
+
size: "sm",
|
|
312
|
+
className: "w-full",
|
|
313
|
+
value: r.field,
|
|
314
|
+
onChange: (i) => W({
|
|
315
|
+
...r,
|
|
316
|
+
field: i.target.value
|
|
317
|
+
})
|
|
318
|
+
}
|
|
319
|
+
) }),
|
|
320
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
321
|
+
v,
|
|
322
|
+
{
|
|
323
|
+
size: "sm",
|
|
324
|
+
className: "w-full",
|
|
325
|
+
options: E,
|
|
326
|
+
value: G,
|
|
327
|
+
onChange: (i) => {
|
|
328
|
+
i && (K(i), W({
|
|
329
|
+
...r,
|
|
330
|
+
fieldType: i.value,
|
|
331
|
+
...i.value === I && { value: y.value },
|
|
332
|
+
...i.value === L && {
|
|
333
|
+
value: H.value
|
|
334
|
+
}
|
|
335
|
+
}));
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
) }),
|
|
339
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: r.fieldType === I ? /* @__PURE__ */ e(
|
|
340
|
+
v,
|
|
341
|
+
{
|
|
342
|
+
size: "sm",
|
|
343
|
+
className: "w-full",
|
|
344
|
+
options: g,
|
|
345
|
+
value: y,
|
|
346
|
+
onChange: (i) => {
|
|
347
|
+
i && (X(i), W({
|
|
348
|
+
...r,
|
|
349
|
+
value: i.value
|
|
350
|
+
}));
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
) : r.fieldType === L ? /* @__PURE__ */ e(
|
|
354
|
+
v,
|
|
355
|
+
{
|
|
356
|
+
size: "sm",
|
|
357
|
+
className: "w-full",
|
|
358
|
+
options: b,
|
|
359
|
+
value: H,
|
|
360
|
+
onChange: (i) => {
|
|
361
|
+
i && (P(i), W({
|
|
362
|
+
...r,
|
|
363
|
+
value: i.value
|
|
364
|
+
}));
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
) : /* @__PURE__ */ e(
|
|
368
|
+
B,
|
|
369
|
+
{
|
|
370
|
+
size: "sm",
|
|
371
|
+
className: "w-full",
|
|
372
|
+
value: r.value,
|
|
373
|
+
onChange: (i) => W({
|
|
374
|
+
...r,
|
|
375
|
+
value: i.target.value
|
|
376
|
+
})
|
|
377
|
+
}
|
|
378
|
+
) }),
|
|
379
|
+
F && /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
380
|
+
v,
|
|
381
|
+
{
|
|
382
|
+
size: "sm",
|
|
383
|
+
className: "w-full",
|
|
384
|
+
options: O,
|
|
385
|
+
value: t,
|
|
386
|
+
onChange: (i) => {
|
|
387
|
+
i && (Z(i), W({
|
|
388
|
+
...r,
|
|
389
|
+
whenToWrite: i.value
|
|
390
|
+
}));
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
) }),
|
|
394
|
+
/* @__PURE__ */ e("div", { className: "w-20" })
|
|
395
|
+
] })
|
|
396
|
+
] }),
|
|
397
|
+
/* @__PURE__ */ e(
|
|
398
|
+
z,
|
|
399
|
+
{
|
|
400
|
+
className: "text-subtle mt-2 w-fit",
|
|
401
|
+
StartIcon: "plus",
|
|
402
|
+
color: "minimal",
|
|
403
|
+
size: "sm",
|
|
404
|
+
disabled: !(r.field && r.fieldType && r.value !== "" && r.whenToWrite),
|
|
405
|
+
onClick: () => {
|
|
406
|
+
if (Object.keys(a).includes(r.field.trim())) {
|
|
407
|
+
U(d("field_already_exists"), "error");
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
f({
|
|
411
|
+
...a,
|
|
412
|
+
[r.field.trim()]: {
|
|
413
|
+
fieldType: r.fieldType,
|
|
414
|
+
value: r.value,
|
|
415
|
+
whenToWrite: r.whenToWrite
|
|
416
|
+
}
|
|
417
|
+
}), W({
|
|
418
|
+
field: "",
|
|
419
|
+
fieldType: E[0].value,
|
|
420
|
+
value: "",
|
|
421
|
+
whenToWrite: O[0].value
|
|
422
|
+
});
|
|
423
|
+
},
|
|
424
|
+
children: d("add_new_field")
|
|
425
|
+
}
|
|
426
|
+
)
|
|
427
|
+
] }) : null
|
|
428
|
+
] });
|
|
429
|
+
}, Ee = function({
|
|
430
|
+
app: _,
|
|
431
|
+
eventType: p,
|
|
432
|
+
onAppInstallSuccess: w
|
|
433
|
+
}) {
|
|
434
|
+
var P;
|
|
435
|
+
const a = le.usePathname(), { t: f } = Q(), { getAppData: h, setAppData: m } = te(), { enabled: D, updateEnabled: d } = ce(_), E = h("ignoreGuests") ?? !1, g = h("skipContactCreation") ?? !1, O = h("setOrganizerAsOwner") ?? !1, F = h("overwriteContactOwner") ?? !1, b = h("onBookingWriteToEventObject") ?? !1, G = h("onBookingWriteToEventObjectFields") ?? {}, K = h("roundRobinLeadSkip") ?? !1, y = h("ifFreeEmailDomainSkipOwnerCheck") ?? !1, X = h("onBookingWriteToContactRecord") ?? !1, H = h("onBookingWriteToContactRecordFields") ?? {};
|
|
436
|
+
return /* @__PURE__ */ e(
|
|
437
|
+
ne,
|
|
438
|
+
{
|
|
439
|
+
onAppInstallSuccess: w,
|
|
440
|
+
returnTo: `${oe}${a}?tabName=apps`,
|
|
441
|
+
app: _,
|
|
442
|
+
teamId: ((P = p.team) == null ? void 0 : P.id) || void 0,
|
|
443
|
+
switchOnClick: (t) => {
|
|
444
|
+
d(t);
|
|
445
|
+
},
|
|
446
|
+
switchChecked: D,
|
|
447
|
+
hideSettingsIcon: !0,
|
|
448
|
+
children: /* @__PURE__ */ C(u.Content, { children: [
|
|
449
|
+
/* @__PURE__ */ e(u.SubSection, { children: /* @__PURE__ */ e(
|
|
450
|
+
u.SubSectionHeader,
|
|
451
|
+
{
|
|
452
|
+
icon: "user-plus",
|
|
453
|
+
title: f("hubspot_ignore_guests"),
|
|
454
|
+
labelFor: "ignore-guests",
|
|
455
|
+
children: /* @__PURE__ */ e(
|
|
456
|
+
k,
|
|
457
|
+
{
|
|
458
|
+
size: "sm",
|
|
459
|
+
labelOnLeading: !0,
|
|
460
|
+
checked: E,
|
|
461
|
+
onCheckedChange: (t) => {
|
|
462
|
+
m("ignoreGuests", t);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
}
|
|
467
|
+
) }),
|
|
468
|
+
/* @__PURE__ */ e(u.SubSection, { children: /* @__PURE__ */ e(
|
|
469
|
+
u.SubSectionHeader,
|
|
470
|
+
{
|
|
471
|
+
icon: "user-plus",
|
|
472
|
+
title: f("skip_contact_creation", { appName: "HubSpot" }),
|
|
473
|
+
labelFor: "skip-contact-creation",
|
|
474
|
+
children: /* @__PURE__ */ e(
|
|
475
|
+
k,
|
|
476
|
+
{
|
|
477
|
+
size: "sm",
|
|
478
|
+
labelOnLeading: !0,
|
|
479
|
+
checked: g,
|
|
480
|
+
onCheckedChange: (t) => {
|
|
481
|
+
m("skipContactCreation", t);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
)
|
|
485
|
+
}
|
|
486
|
+
) }),
|
|
487
|
+
/* @__PURE__ */ e(u.SubSection, { children: /* @__PURE__ */ e(
|
|
488
|
+
u.SubSectionHeader,
|
|
489
|
+
{
|
|
490
|
+
icon: "user-check",
|
|
491
|
+
title: f("set_organizer_as_contact_owner"),
|
|
492
|
+
labelFor: "set-organizer-as-owner",
|
|
493
|
+
children: /* @__PURE__ */ e(
|
|
494
|
+
k,
|
|
495
|
+
{
|
|
496
|
+
size: "sm",
|
|
497
|
+
labelOnLeading: !0,
|
|
498
|
+
checked: O,
|
|
499
|
+
onCheckedChange: (t) => {
|
|
500
|
+
m("setOrganizerAsOwner", t), t || m("overwriteContactOwner", !1);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
)
|
|
504
|
+
}
|
|
505
|
+
) }),
|
|
506
|
+
O && /* @__PURE__ */ e(u.SubSection, { children: /* @__PURE__ */ e(
|
|
507
|
+
u.SubSectionHeader,
|
|
508
|
+
{
|
|
509
|
+
icon: "refresh-cw",
|
|
510
|
+
title: f("overwrite_existing_contact_owner"),
|
|
511
|
+
labelFor: "overwrite-contact-owner",
|
|
512
|
+
children: /* @__PURE__ */ e(
|
|
513
|
+
k,
|
|
514
|
+
{
|
|
515
|
+
size: "sm",
|
|
516
|
+
labelOnLeading: !0,
|
|
517
|
+
checked: F,
|
|
518
|
+
onCheckedChange: (t) => {
|
|
519
|
+
m("overwriteContactOwner", t);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
)
|
|
523
|
+
}
|
|
524
|
+
) }),
|
|
525
|
+
/* @__PURE__ */ e(u.SubSection, { children: /* @__PURE__ */ e(
|
|
526
|
+
J,
|
|
527
|
+
{
|
|
528
|
+
bookingAction: R.ON_BOOKING,
|
|
529
|
+
optionLabel: f("on_booking_write_to_event_object"),
|
|
530
|
+
optionEnabled: b,
|
|
531
|
+
writeToObjectData: G,
|
|
532
|
+
optionSwitchOnChange: (t) => {
|
|
533
|
+
m("onBookingWriteToEventObject", t);
|
|
534
|
+
},
|
|
535
|
+
updateWriteToObjectData: (t) => m("onBookingWriteToEventObjectFields", t),
|
|
536
|
+
supportedFieldTypes: [
|
|
537
|
+
s.TEXT,
|
|
538
|
+
s.DATE,
|
|
539
|
+
s.PHONE,
|
|
540
|
+
s.CHECKBOX,
|
|
541
|
+
s.CUSTOM
|
|
542
|
+
],
|
|
543
|
+
supportedWriteTriggers: [x.EVERY_BOOKING]
|
|
544
|
+
}
|
|
545
|
+
) }),
|
|
546
|
+
/* @__PURE__ */ e(u.SubSection, { children: /* @__PURE__ */ e(
|
|
547
|
+
J,
|
|
548
|
+
{
|
|
549
|
+
bookingAction: R.ON_BOOKING,
|
|
550
|
+
optionLabel: f("on_booking_write_to_contact_record"),
|
|
551
|
+
optionEnabled: X,
|
|
552
|
+
writeToObjectData: H,
|
|
553
|
+
optionSwitchOnChange: (t) => {
|
|
554
|
+
m("onBookingWriteToContactRecord", t);
|
|
555
|
+
},
|
|
556
|
+
updateWriteToObjectData: (t) => m("onBookingWriteToContactRecordFields", t),
|
|
557
|
+
supportedFieldTypes: [
|
|
558
|
+
s.TEXT,
|
|
559
|
+
s.DATE,
|
|
560
|
+
s.PHONE,
|
|
561
|
+
s.CHECKBOX,
|
|
562
|
+
s.CUSTOM
|
|
563
|
+
],
|
|
564
|
+
supportedWriteTriggers: [x.EVERY_BOOKING, x.FIELD_EMPTY]
|
|
565
|
+
}
|
|
566
|
+
) }),
|
|
567
|
+
p.schedulingType === ae.ROUND_ROBIN ? /* @__PURE__ */ C(Y, { children: [
|
|
568
|
+
/* @__PURE__ */ e(u.SubSection, { children: /* @__PURE__ */ e(
|
|
569
|
+
u.SubSectionHeader,
|
|
570
|
+
{
|
|
571
|
+
icon: "users",
|
|
572
|
+
title: f("crm_book_directly_with_attendee_owner", { appName: _.name }),
|
|
573
|
+
labelFor: "book-directly-with-attendee-owner",
|
|
574
|
+
children: /* @__PURE__ */ e(
|
|
575
|
+
k,
|
|
576
|
+
{
|
|
577
|
+
size: "sm",
|
|
578
|
+
id: "book-directly-with-attendee-owner",
|
|
579
|
+
checked: K,
|
|
580
|
+
onCheckedChange: (t) => {
|
|
581
|
+
m("roundRobinLeadSkip", t), t && m("enabled", t);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
)
|
|
585
|
+
}
|
|
586
|
+
) }),
|
|
587
|
+
K && /* @__PURE__ */ C(u.SubSection, { children: [
|
|
588
|
+
/* @__PURE__ */ e(
|
|
589
|
+
u.SubSectionHeader,
|
|
590
|
+
{
|
|
591
|
+
icon: "users",
|
|
592
|
+
title: f("crm_if_free_email_domain_skip_owner_check"),
|
|
593
|
+
labelFor: "if-free-email-domain-skip-owner-check",
|
|
594
|
+
children: /* @__PURE__ */ e(
|
|
595
|
+
k,
|
|
596
|
+
{
|
|
597
|
+
size: "sm",
|
|
598
|
+
id: "if-free-email-domain-skip-owner-check",
|
|
599
|
+
checked: y,
|
|
600
|
+
onCheckedChange: (t) => {
|
|
601
|
+
m("ifFreeEmailDomainSkipOwnerCheck", t);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
)
|
|
605
|
+
}
|
|
606
|
+
),
|
|
607
|
+
/* @__PURE__ */ e(se, { severity: "info", title: f("skip_rr_description") })
|
|
608
|
+
] })
|
|
609
|
+
] }) : null
|
|
610
|
+
] })
|
|
611
|
+
}
|
|
612
|
+
);
|
|
613
|
+
};
|
|
614
|
+
export {
|
|
615
|
+
Ee as default
|
|
616
|
+
};
|
package/dist/{EventTypeAppCardInterface-BJl9Wp7G.js → EventTypeAppCardInterface-B_ERDZ0x.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { q as c } from "./index-
|
|
3
|
-
import { A as u } from "./AppCard-
|
|
4
|
-
import { u as l } from "./useIsAppEnabled-
|
|
5
|
-
import A from "./EventTypeAppSettingsInterface-
|
|
2
|
+
import { q as c } from "./index-BeODvL94.js";
|
|
3
|
+
import { A as u } from "./AppCard-CqXUqN41.js";
|
|
4
|
+
import { u as l } from "./useIsAppEnabled-BOS-Bwce.js";
|
|
5
|
+
import A from "./EventTypeAppSettingsInterface-DNtKOXic.js";
|
|
6
6
|
const I = function({
|
|
7
7
|
app: t,
|
|
8
8
|
eventType: e,
|
package/dist/{EventTypeAppCardInterface-DZSBS-zk.js → EventTypeAppCardInterface-Bnk0srxU.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import { p, o as f, q as b, r as S, W as v } from "./index-
|
|
2
|
+
import { p, o as f, q as b, r as S, W as v } from "./index-BeODvL94.js";
|
|
3
3
|
import { useMemo as C, useState as E } from "react";
|
|
4
|
-
import { A as w } from "./AppCard-
|
|
5
|
-
import T from "./EventTypeAppSettingsInterface-
|
|
4
|
+
import { A as w } from "./AppCard-CqXUqN41.js";
|
|
5
|
+
import T from "./EventTypeAppSettingsInterface-DDT62ENQ.js";
|
|
6
6
|
const $ = function({
|
|
7
7
|
app: a,
|
|
8
8
|
eventType: i,
|
package/dist/{EventTypeAppCardInterface-juXolJiA.js → EventTypeAppCardInterface-C-LObVME.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { q as m, k as u } from "./index-
|
|
3
|
-
import { A as I } from "./AppCard-
|
|
4
|
-
import { u as h } from "./useIsAppEnabled-
|
|
2
|
+
import { q as m, k as u } from "./index-BeODvL94.js";
|
|
3
|
+
import { A as I } from "./AppCard-CqXUqN41.js";
|
|
4
|
+
import { u as h } from "./useIsAppEnabled-BOS-Bwce.js";
|
|
5
5
|
const v = function({ app: t, eventType: n, onAppInstallSuccess: o }) {
|
|
6
6
|
var a;
|
|
7
7
|
const { getAppData: r, setAppData: d, disabled: s } = m(), i = r("SITE_ID"), { enabled: c, updateEnabled: l } = h(t);
|
package/dist/{EventTypeAppCardInterface-DA_6xDwJ.js → EventTypeAppCardInterface-C6mVMSim.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { p as i, W as m } from "./index-
|
|
3
|
-
import { A as u } from "./AppCard-
|
|
4
|
-
import { u as c } from "./useIsAppEnabled-
|
|
2
|
+
import { p as i, W as m } from "./index-BeODvL94.js";
|
|
3
|
+
import { A as u } from "./AppCard-CqXUqN41.js";
|
|
4
|
+
import { u as c } from "./useIsAppEnabled-BOS-Bwce.js";
|
|
5
5
|
const l = function({
|
|
6
6
|
app: t,
|
|
7
7
|
eventType: e,
|
package/dist/{EventTypeAppCardInterface-B002JZB5.js → EventTypeAppCardInterface-C7wDwt3C.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { o as f, p as E, q as y, r as P, W as C } from "./index-
|
|
2
|
+
import { o as f, p as E, q as y, r as P, W as C } from "./index-BeODvL94.js";
|
|
3
3
|
import { useState as g } from "react";
|
|
4
|
-
import { A as v } from "./AppCard-
|
|
5
|
-
import { u as w } from "./useIsAppEnabled-
|
|
6
|
-
import S from "./EventTypeAppSettingsInterface-
|
|
4
|
+
import { A as v } from "./AppCard-CqXUqN41.js";
|
|
5
|
+
import { u as w } from "./useIsAppEnabled-BOS-Bwce.js";
|
|
6
|
+
import S from "./EventTypeAppSettingsInterface-Dk3PjrGd.js";
|
|
7
7
|
const L = function({
|
|
8
8
|
app: t,
|
|
9
9
|
eventType: e,
|
package/dist/{EventTypeAppCardInterface-C1_WqOFN.js → EventTypeAppCardInterface-CK_7K0En.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { q as c } from "./index-
|
|
3
|
-
import { A as u } from "./AppCard-
|
|
4
|
-
import { u as l } from "./useIsAppEnabled-
|
|
5
|
-
import A from "./EventTypeAppSettingsInterface-
|
|
2
|
+
import { q as c } from "./index-BeODvL94.js";
|
|
3
|
+
import { A as u } from "./AppCard-CqXUqN41.js";
|
|
4
|
+
import { u as l } from "./useIsAppEnabled-BOS-Bwce.js";
|
|
5
|
+
import A from "./EventTypeAppSettingsInterface-CA1wX8Z5.js";
|
|
6
6
|
const I = function({ app: t, eventType: e, onAppInstallSuccess: r }) {
|
|
7
7
|
var p;
|
|
8
8
|
const { getAppData: s, setAppData: n, disabled: o } = c(), { enabled: i, updateEnabled: d } = l(t);
|