@calcom/atoms 1.3.1 → 1.4.0-booker
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddressInput-PV7ej7Dh.js → AddressInput-2hL6xvaw.js} +3 -3
- package/dist/{AlbyPriceComponent-yWDmVyID.js → AlbyPriceComponent-90fNQIrg.js} +19 -19
- package/dist/{PhoneInput-3kNrcLmH.js → PhoneInput-FnKIa4kA.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-YQ_KdK6G.js +83604 -0
- package/dist/{index-i9Hko2MN.js → index-a3d1IjXE.js} +1 -1
- package/dist/index-ubX_XTnt.js +1957 -0
- 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/components/hooks/useBookings.d.ts +39 -0
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +7 -0
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinDeleteEvents.test.d.ts +2 -0
- package/dist/packages/features/ee/round-robin/roundRobinDeleteEvents.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts +6 -0
- package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts +5 -0
- package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/{Locations.d.ts → locations/Locations.d.ts} +2 -2
- package/dist/packages/features/eventtypes/components/locations/Locations.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts +1 -1
- package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +36 -0
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +7 -0
- package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +10 -9
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
- package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +7 -0
- package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -36
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +1 -0
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/libraries/repositories.d.ts +1 -0
- package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
- package/dist/packages/platform/libraries/slots.d.ts +2 -0
- package/dist/packages/platform/libraries/slots.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/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
- package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts +1 -0
- package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +1 -0
- package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts +19 -7
- package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +21 -0
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +2 -0
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/AppCard-4lsFofOP.js +0 -281
- package/dist/AppListCardPlatformWrapper-mavIjLoX.js +0 -9
- package/dist/AppListCardWebWrapper-E4rFeVUL.js +0 -74
- package/dist/AppSettingsInterface-1ECb-eGL.js +0 -29
- package/dist/AppSettingsInterface-SMx0rhrP.js +0 -75
- package/dist/AppSettingsInterface-vkAV3Jq-.js +0 -23
- package/dist/DateRangePicker-FF6QrWWv.js +0 -74
- package/dist/EventTypeAppCardInterface-2LX6RMKq.js +0 -24
- package/dist/EventTypeAppCardInterface-2bXQeyo2.js +0 -51
- package/dist/EventTypeAppCardInterface-3_OzEh4S.js +0 -33
- package/dist/EventTypeAppCardInterface-4WQGK5d3.js +0 -49
- package/dist/EventTypeAppCardInterface-D1OE6jGL.js +0 -858
- package/dist/EventTypeAppCardInterface-Dbx02Qtp.js +0 -39
- package/dist/EventTypeAppCardInterface-ECQy5_jF.js +0 -24
- package/dist/EventTypeAppCardInterface-EJ7vSpn7.js +0 -24
- package/dist/EventTypeAppCardInterface-Ej5y5wB2.js +0 -34
- package/dist/EventTypeAppCardInterface-HAuMr26j.js +0 -34
- package/dist/EventTypeAppCardInterface-HH9e5NM3.js +0 -34
- package/dist/EventTypeAppCardInterface-P6ANaRXE.js +0 -51
- package/dist/EventTypeAppCardInterface-SLLlwhTF.js +0 -41
- package/dist/EventTypeAppCardInterface-YsyyQucw.js +0 -24
- package/dist/EventTypeAppCardInterface-aNw-rctk.js +0 -86
- package/dist/EventTypeAppCardInterface-aof5TfU5.js +0 -39
- package/dist/EventTypeAppCardInterface-eWtAVevk.js +0 -34
- package/dist/EventTypeAppCardInterface-jA0StO-p.js +0 -31
- package/dist/EventTypeAppCardInterface-juIgeyaW.js +0 -34
- package/dist/EventTypeAppCardInterface-n5XUB5zh.js +0 -41
- package/dist/EventTypeAppCardInterface-nHnp-f_B.js +0 -24
- package/dist/EventTypeAppCardInterface-sCnBi-mW.js +0 -34
- package/dist/EventTypeAppCardInterface-tW0Vnzy2.js +0 -32
- package/dist/EventTypeAppCardInterface-uvXLgnEb.js +0 -34
- package/dist/EventTypeAppCardInterface-voyuklxT.js +0 -42
- package/dist/EventTypeAppCardInterface-xscYaAxr.js +0 -42
- package/dist/EventTypeAppCardInterface-y_jea2qd.js +0 -32
- package/dist/EventTypeAppSettingsInterface-2SBSbFCU.js +0 -48
- package/dist/EventTypeAppSettingsInterface-9LmBTR_4.js +0 -25
- package/dist/EventTypeAppSettingsInterface-B5891wx6.js +0 -43
- package/dist/EventTypeAppSettingsInterface-CN46bj0_.js +0 -78
- package/dist/EventTypeAppSettingsInterface-HvDJO9aW.js +0 -106
- package/dist/EventTypeAppSettingsInterface-LDtd3pKw.js +0 -24
- package/dist/EventTypeAppSettingsInterface-Lsx2he2j.js +0 -298
- package/dist/EventTypeAppSettingsInterface-M-phIaYV.js +0 -42
- package/dist/EventTypeAppSettingsInterface-Pryhal8P.js +0 -23
- package/dist/EventTypeAppSettingsInterface-YLFWXdQz.js +0 -72
- package/dist/EventTypeAppSettingsInterface-_REB8BRg.js +0 -221
- package/dist/EventTypeAppSettingsInterface-eMmPRmMH.js +0 -120
- package/dist/EventTypeAppSettingsInterface-pMt1ppeg.js +0 -23
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/InstallAppButton-NOXXlDQb.js +0 -58
- package/dist/InstallAppButton-f_95VpK3.js +0 -14
- package/dist/InstallAppButton-fwJeBDlx.js +0 -14
- package/dist/StripePaymentForm-LAfd5yhD.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-YoOZkYTB.js +0 -30
- package/dist/index-YthdNsV6.js +0 -518
- package/dist/index-dC9oWaTb.js +0 -161409
- package/dist/packages/features/eventtypes/components/Locations.d.ts.map +0 -1
- package/dist/useIsAppEnabled-qoop3Fxe.js +0 -18
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as s } from "react";
|
|
3
|
-
import { y as i, f as l, u as m } from "./index-dC9oWaTb.js";
|
|
4
|
-
function h() {
|
|
5
|
-
const { t: a } = i(), n = "metric", [e, c] = s("");
|
|
6
|
-
return /* @__PURE__ */ o("div", { className: "space-y-4 text-sm", children: [
|
|
7
|
-
/* @__PURE__ */ t(
|
|
8
|
-
l,
|
|
9
|
-
{
|
|
10
|
-
placeholder: "San Francisco",
|
|
11
|
-
value: e,
|
|
12
|
-
name: "Enter City",
|
|
13
|
-
onChange: async (r) => {
|
|
14
|
-
c(r.target.value);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
),
|
|
18
|
-
/* @__PURE__ */ t(
|
|
19
|
-
m,
|
|
20
|
-
{
|
|
21
|
-
href: `webcal://weather-in-calendar.com/cal/weather-cal.php?city=${e}&units=${n}&temperature=day`,
|
|
22
|
-
children: a("add_to_calendar")
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
] });
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
h as default
|
|
29
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as r } from "react/jsx-runtime";
|
|
2
|
-
import { u as i, y as o } from "./index-dC9oWaTb.js";
|
|
3
|
-
function d({ template: t }) {
|
|
4
|
-
return /* @__PURE__ */ a("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
|
|
5
|
-
/* @__PURE__ */ a("div", { className: "flex items-start justify-start", children: [
|
|
6
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "mr-4 flex h-12 w-12 items-center justify-center rounded-md p-1", children: /* @__PURE__ */ e("img", { className: "h-8", alt: t.app, src: `/api/app-store/zapier/${t.icon}` }) }) }),
|
|
7
|
-
/* @__PURE__ */ e("div", { className: "mr-4", children: /* @__PURE__ */ a("div", { children: [
|
|
8
|
-
/* @__PURE__ */ e("p", { className: "text-emphasis truncate text-sm font-medium leading-4", children: t.app }),
|
|
9
|
-
/* @__PURE__ */ e("p", { className: "text-subtle mt-[2px] text-sm", children: t.text })
|
|
10
|
-
] }) })
|
|
11
|
-
] }),
|
|
12
|
-
/* @__PURE__ */ e("div", { className: "hidden w-full sm:block", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: " w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) }),
|
|
13
|
-
/* @__PURE__ */ e("div", { className: "mt-2 block w-full sm:hidden", children: /* @__PURE__ */ e("div", { className: "float-right", children: /* @__PURE__ */ e(i, { color: "secondary", className: "w-[90px]", target: "_blank", href: t.link, children: "Use Zap" }) }) })
|
|
14
|
-
] });
|
|
15
|
-
}
|
|
16
|
-
const n = [
|
|
17
|
-
{
|
|
18
|
-
icon: "gmail.svg",
|
|
19
|
-
app: "Gmail",
|
|
20
|
-
text: "Send emails via Gmail for scheduled events",
|
|
21
|
-
link: "https://zapier.com/app/editor/template/1071345"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
icon: "googleSheets.svg",
|
|
25
|
-
app: "Google Sheets",
|
|
26
|
-
text: "Create Google Sheets rows for scheduled events",
|
|
27
|
-
link: "https://zapier.com/app/editor/template/1082047"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
icon: "salesforce.svg",
|
|
31
|
-
app: "Salesforce",
|
|
32
|
-
text: "Create Salesforce leads from new bookings",
|
|
33
|
-
link: "https://zapier.com/app/editor/template/1082050"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
icon: "todoist.svg",
|
|
37
|
-
app: "Todoist",
|
|
38
|
-
text: "Create Todoist tasks for scheduled events",
|
|
39
|
-
link: "https://zapier.com/app/editor/template/1082073"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
icon: "gmail.svg",
|
|
43
|
-
app: "Gmail",
|
|
44
|
-
text: "Send emails via Gmail for rescheduled events",
|
|
45
|
-
link: "https://zapier.com/app/editor/template/1083605"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
icon: "gmail.svg",
|
|
49
|
-
app: "Gmail",
|
|
50
|
-
text: "Send emails via Gmail for cancelled events",
|
|
51
|
-
link: "https://zapier.com/app/editor/template/1083609"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
icon: "gmail.svg",
|
|
55
|
-
app: "Gmail",
|
|
56
|
-
text: "Send emails via Gmail after scheduled meetings end",
|
|
57
|
-
link: "https://zapier.com/app/editor/template/1083613"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
icon: "googleCalendar.svg",
|
|
61
|
-
app: "Google Calendar",
|
|
62
|
-
text: "Add new bookings to Google Calendar",
|
|
63
|
-
link: "https://zapier.com/app/editor/template/1083651"
|
|
64
|
-
}
|
|
65
|
-
];
|
|
66
|
-
function m() {
|
|
67
|
-
const { t } = o();
|
|
68
|
-
return /* @__PURE__ */ a(r, { children: [
|
|
69
|
-
/* @__PURE__ */ e("div", { className: "text-sm font-semibold leading-4 ", children: t("get_started_zapier_templates") }),
|
|
70
|
-
/* @__PURE__ */ e("div", { className: "mt-4 grid gap-4 md:grid-cols-2", children: n.map((s, l) => /* @__PURE__ */ e(d, { template: s }, l)) })
|
|
71
|
-
] });
|
|
72
|
-
}
|
|
73
|
-
export {
|
|
74
|
-
m as default
|
|
75
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as p } from "react";
|
|
3
|
-
import { y as r, f as u, u as i } from "./index-dC9oWaTb.js";
|
|
4
|
-
function d() {
|
|
5
|
-
const { t: e } = r(), [s, n] = p("");
|
|
6
|
-
return /* @__PURE__ */ o("div", { className: "space-y-4 px-4 pb-4 pt-4 text-sm", children: [
|
|
7
|
-
/* @__PURE__ */ t(
|
|
8
|
-
u,
|
|
9
|
-
{
|
|
10
|
-
placeholder: "Some Input",
|
|
11
|
-
value: s,
|
|
12
|
-
name: "Enter Input",
|
|
13
|
-
onChange: async (a) => {
|
|
14
|
-
n(a.target.value);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
),
|
|
18
|
-
/* @__PURE__ */ t(i, { children: e("submit") })
|
|
19
|
-
] });
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
d as default
|
|
23
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as c, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { r as h, s as m, $ as y, t as d, u as g, v as n, w as k } from "./index-dC9oWaTb.js";
|
|
3
|
-
function w({
|
|
4
|
-
className: s,
|
|
5
|
-
dates: t,
|
|
6
|
-
minDate: a,
|
|
7
|
-
maxDate: u,
|
|
8
|
-
onDatesChange: e,
|
|
9
|
-
disabled: b,
|
|
10
|
-
withoutPopover: p,
|
|
11
|
-
"data-testid": v,
|
|
12
|
-
strictlyBottom: o,
|
|
13
|
-
allowPastDates: l = !1
|
|
14
|
-
}) {
|
|
15
|
-
function $(r) {
|
|
16
|
-
if (l)
|
|
17
|
-
if (t != null && t.endDate)
|
|
18
|
-
e({ startDate: r, endDate: void 0 });
|
|
19
|
-
else {
|
|
20
|
-
const x = t.startDate ? r < t.startDate ? r : t.startDate : r, L = t.startDate ? r < t.startDate ? t.startDate : r : void 0;
|
|
21
|
-
e({ startDate: x, endDate: L });
|
|
22
|
-
}
|
|
23
|
-
else
|
|
24
|
-
t.startDate ? t.endDate ? r.getTime() === t.startDate.getTime() || r.getTime() === t.endDate.getTime() ? e({ startDate: r, endDate: void 0 }) : r < t.startDate ? e({ startDate: r, endDate: void 0 }) : e({ startDate: t.startDate, endDate: r }) : r < t.startDate ? e({ startDate: r, endDate: t.startDate }) : e({ startDate: t.startDate, endDate: r }) : e({ startDate: r, endDate: void 0 });
|
|
25
|
-
}
|
|
26
|
-
const D = /* @__PURE__ */ i(
|
|
27
|
-
h,
|
|
28
|
-
{
|
|
29
|
-
initialFocus: !0,
|
|
30
|
-
fromDate: l && a === null ? void 0 : a ?? /* @__PURE__ */ new Date(),
|
|
31
|
-
toDate: u,
|
|
32
|
-
mode: "range",
|
|
33
|
-
defaultMonth: t == null ? void 0 : t.startDate,
|
|
34
|
-
selected: { from: t == null ? void 0 : t.startDate, to: t == null ? void 0 : t.endDate },
|
|
35
|
-
onDayClick: (r) => $(r),
|
|
36
|
-
numberOfMonths: 1,
|
|
37
|
-
disabled: b,
|
|
38
|
-
"data-testid": v
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
return p ? D : /* @__PURE__ */ i("div", { className: m("grid gap-2", s), children: /* @__PURE__ */ c(y, { children: [
|
|
42
|
-
/* @__PURE__ */ i(d, { asChild: !0, children: /* @__PURE__ */ i(
|
|
43
|
-
g,
|
|
44
|
-
{
|
|
45
|
-
"data-testid": "date-range",
|
|
46
|
-
color: "secondary",
|
|
47
|
-
EndIcon: "calendar",
|
|
48
|
-
className: m("justify-between text-left font-normal", !t && "text-subtle"),
|
|
49
|
-
children: t != null && t.startDate ? t != null && t.endDate ? /* @__PURE__ */ c(f, { children: [
|
|
50
|
-
n(t.startDate, "LLL dd, y"),
|
|
51
|
-
" - ",
|
|
52
|
-
n(t.endDate, "LLL dd, y")
|
|
53
|
-
] }) : /* @__PURE__ */ c(f, { children: [
|
|
54
|
-
n(t.startDate, "LLL dd, y"),
|
|
55
|
-
" - End"
|
|
56
|
-
] }) : /* @__PURE__ */ i("span", { children: "Pick a date" })
|
|
57
|
-
}
|
|
58
|
-
) }),
|
|
59
|
-
/* @__PURE__ */ i(
|
|
60
|
-
k,
|
|
61
|
-
{
|
|
62
|
-
className: "bg-default text-emphasis z-50 w-auto rounded-md border p-0 outline-none",
|
|
63
|
-
align: "start",
|
|
64
|
-
sideOffset: 4,
|
|
65
|
-
side: o ? "bottom" : void 0,
|
|
66
|
-
avoidCollisions: !o,
|
|
67
|
-
children: D
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
] }) });
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
w as DatePickerWithRange
|
|
74
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { z as d, W as i } from "./index-dC9oWaTb.js";
|
|
3
|
-
import { A as m } from "./AppCard-4lsFofOP.js";
|
|
4
|
-
import { u } from "./useIsAppEnabled-qoop3Fxe.js";
|
|
5
|
-
const l = function({ app: t, eventType: e }) {
|
|
6
|
-
var a;
|
|
7
|
-
const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
|
|
8
|
-
return /* @__PURE__ */ s(
|
|
9
|
-
m,
|
|
10
|
-
{
|
|
11
|
-
returnTo: `${i}${p}?tabName=apps`,
|
|
12
|
-
app: t,
|
|
13
|
-
teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
|
|
14
|
-
switchOnClick: (o) => {
|
|
15
|
-
r(o);
|
|
16
|
-
},
|
|
17
|
-
switchChecked: n,
|
|
18
|
-
hideAppCardOptions: !0
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
l as default
|
|
24
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { G as h, f as n } from "./index-dC9oWaTb.js";
|
|
3
|
-
import { A } from "./AppCard-4lsFofOP.js";
|
|
4
|
-
import { u as I } from "./useIsAppEnabled-qoop3Fxe.js";
|
|
5
|
-
const E = function({ app: t, eventType: i }) {
|
|
6
|
-
var d;
|
|
7
|
-
const { getAppData: o, setAppData: s, disabled: r } = h(), l = o("MATOMO_URL"), p = o("SITE_ID"), { enabled: c, updateEnabled: m } = I(t);
|
|
8
|
-
return /* @__PURE__ */ a(
|
|
9
|
-
A,
|
|
10
|
-
{
|
|
11
|
-
hideSettingsIcon: !0,
|
|
12
|
-
app: t,
|
|
13
|
-
switchOnClick: (e) => {
|
|
14
|
-
m(e);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: c,
|
|
17
|
-
teamId: ((d = i.team) == null ? void 0 : d.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-2", children: [
|
|
19
|
-
/* @__PURE__ */ a(
|
|
20
|
-
n,
|
|
21
|
-
{
|
|
22
|
-
dataTestid: `${t.slug}-url`,
|
|
23
|
-
name: "Matomo URL",
|
|
24
|
-
placeholder: "Enter your Matomo URL here",
|
|
25
|
-
value: l,
|
|
26
|
-
disabled: r,
|
|
27
|
-
onChange: (e) => {
|
|
28
|
-
s("MATOMO_URL", e.target.value);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ a(
|
|
33
|
-
n,
|
|
34
|
-
{
|
|
35
|
-
dataTestid: `${t.slug}-site-id`,
|
|
36
|
-
disabled: r,
|
|
37
|
-
name: "Site ID",
|
|
38
|
-
placeholder: "Enter your Site ID",
|
|
39
|
-
value: p,
|
|
40
|
-
onChange: (e) => {
|
|
41
|
-
s("SITE_ID", e.target.value);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] })
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
E as default
|
|
51
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { G as m } from "./index-dC9oWaTb.js";
|
|
3
|
-
import { A as c } from "./AppCard-4lsFofOP.js";
|
|
4
|
-
import { u as l } from "./useIsAppEnabled-qoop3Fxe.js";
|
|
5
|
-
import u from "./EventTypeAppSettingsInterface-B5891wx6.js";
|
|
6
|
-
const g = function({ eventType: e, app: t }) {
|
|
7
|
-
var p;
|
|
8
|
-
const { enabled: r, updateEnabled: s } = l(t), { disabled: o, getAppData: n, setAppData: d } = m();
|
|
9
|
-
return /* @__PURE__ */ a(
|
|
10
|
-
c,
|
|
11
|
-
{
|
|
12
|
-
app: t,
|
|
13
|
-
switchOnClick: (i) => {
|
|
14
|
-
s(i);
|
|
15
|
-
},
|
|
16
|
-
switchChecked: r,
|
|
17
|
-
teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
|
|
18
|
-
children: /* @__PURE__ */ a(
|
|
19
|
-
u,
|
|
20
|
-
{
|
|
21
|
-
eventType: e,
|
|
22
|
-
slug: t.slug,
|
|
23
|
-
disabled: o,
|
|
24
|
-
getAppData: n,
|
|
25
|
-
setAppData: d
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
g as default
|
|
33
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { G as h, f as n } from "./index-dC9oWaTb.js";
|
|
3
|
-
import { A as I } from "./AppCard-4lsFofOP.js";
|
|
4
|
-
import { u as C } from "./useIsAppEnabled-qoop3Fxe.js";
|
|
5
|
-
const R = function({ app: s, eventType: o }) {
|
|
6
|
-
var i;
|
|
7
|
-
const { getAppData: p, setAppData: r, disabled: t } = h(), c = p("SITE_ID"), d = p("SCRIPT_URL"), { enabled: l, updateEnabled: u } = C(s);
|
|
8
|
-
return /* @__PURE__ */ a(
|
|
9
|
-
I,
|
|
10
|
-
{
|
|
11
|
-
app: s,
|
|
12
|
-
switchOnClick: (e) => {
|
|
13
|
-
u(e);
|
|
14
|
-
},
|
|
15
|
-
switchChecked: l,
|
|
16
|
-
teamId: ((i = o.team) == null ? void 0 : i.id) || void 0,
|
|
17
|
-
children: /* @__PURE__ */ m("fieldset", { className: "space-y-2", disabled: t, children: [
|
|
18
|
-
/* @__PURE__ */ a(
|
|
19
|
-
n,
|
|
20
|
-
{
|
|
21
|
-
disabled: t,
|
|
22
|
-
name: "Script URL",
|
|
23
|
-
value: d,
|
|
24
|
-
defaultValue: "https://us.umami.is/script.js",
|
|
25
|
-
placeholder: "Enter the script source URL",
|
|
26
|
-
onChange: (e) => {
|
|
27
|
-
r("SCRIPT_URL", e.target.value);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
/* @__PURE__ */ a(
|
|
32
|
-
n,
|
|
33
|
-
{
|
|
34
|
-
disabled: t,
|
|
35
|
-
name: "Site ID",
|
|
36
|
-
value: c,
|
|
37
|
-
placeholder: "Enter your Site ID",
|
|
38
|
-
onChange: (e) => {
|
|
39
|
-
r("SITE_ID", e.target.value);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
] })
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
R as default
|
|
49
|
-
};
|