@calcom/atoms 1.4.0 → 1.5.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.
Files changed (104) hide show
  1. package/dist/{AddressInput-oBqEc36p.js → AddressInput-2hL6xvaw.js} +3 -3
  2. package/dist/{AlbyPriceComponent-mtspbv1Z.js → AlbyPriceComponent-90fNQIrg.js} +19 -19
  3. package/dist/{PhoneInput-uwxWFpdD.js → PhoneInput-FnKIa4kA.js} +1 -1
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/index-YQ_KdK6G.js +83604 -0
  6. package/dist/{index-ju7GeYL2.js → index-a3d1IjXE.js} +1 -1
  7. package/dist/index-ubX_XTnt.js +1957 -0
  8. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +1 -1
  9. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  10. package/dist/packages/features/bookings/Booker/utils/event.d.ts +7 -0
  11. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  12. package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
  13. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  14. package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
  15. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts +6 -0
  16. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts.map +1 -0
  17. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts +5 -0
  18. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts.map +1 -0
  19. package/dist/packages/features/eventtypes/components/{Locations.d.ts → locations/Locations.d.ts} +2 -2
  20. package/dist/packages/features/eventtypes/components/locations/Locations.d.ts.map +1 -0
  21. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts +1 -1
  22. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
  23. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +36 -0
  24. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  25. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +7 -0
  26. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  27. package/dist/packages/features/eventtypes/lib/types.d.ts +10 -9
  28. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  29. package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
  30. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +4 -0
  31. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  32. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  33. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +7 -0
  34. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  35. package/dist/packages/platform/atoms/index.d.ts +0 -36
  36. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  37. package/dist/packages/platform/libraries/index.d.ts +1 -0
  38. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  39. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  40. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  41. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
  42. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  43. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
  44. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
  45. package/dist/style.css +1 -1
  46. package/package.json +1 -1
  47. package/dist/AppCard-HKcGH7KI.js +0 -281
  48. package/dist/AppListCardPlatformWrapper-r8Hitr0l.js +0 -9
  49. package/dist/AppListCardWebWrapper-vejVG2AV.js +0 -74
  50. package/dist/AppSettingsInterface-nEGM5s84.js +0 -75
  51. package/dist/AppSettingsInterface-qxGtpTiN.js +0 -23
  52. package/dist/AppSettingsInterface-sZRl3Mr6.js +0 -29
  53. package/dist/DateRangePicker-35rSj6si.js +0 -74
  54. package/dist/EventTypeAppCardInterface-3FT5nxjW.js +0 -34
  55. package/dist/EventTypeAppCardInterface-3G3-8wgP.js +0 -24
  56. package/dist/EventTypeAppCardInterface-4BC7MtM9.js +0 -86
  57. package/dist/EventTypeAppCardInterface-5dgM-Uqy.js +0 -42
  58. package/dist/EventTypeAppCardInterface-6nH3STHb.js +0 -41
  59. package/dist/EventTypeAppCardInterface-7Fa6yG1D.js +0 -49
  60. package/dist/EventTypeAppCardInterface-7RirPSFI.js +0 -42
  61. package/dist/EventTypeAppCardInterface-AGvK3dWC.js +0 -34
  62. package/dist/EventTypeAppCardInterface-B0TNZbec.js +0 -24
  63. package/dist/EventTypeAppCardInterface-BsVjKokG.js +0 -24
  64. package/dist/EventTypeAppCardInterface-HCOkEHH_.js +0 -51
  65. package/dist/EventTypeAppCardInterface-NPVbq3L2.js +0 -858
  66. package/dist/EventTypeAppCardInterface-OuKoklDG.js +0 -31
  67. package/dist/EventTypeAppCardInterface-W0eXvwJ6.js +0 -34
  68. package/dist/EventTypeAppCardInterface-YCW2vw93.js +0 -24
  69. package/dist/EventTypeAppCardInterface-asX2AyDB.js +0 -34
  70. package/dist/EventTypeAppCardInterface-d4eBiO7E.js +0 -34
  71. package/dist/EventTypeAppCardInterface-fXkSopxu.js +0 -51
  72. package/dist/EventTypeAppCardInterface-g7tp7Yhd.js +0 -24
  73. package/dist/EventTypeAppCardInterface-gHA1xrj1.js +0 -32
  74. package/dist/EventTypeAppCardInterface-gPp6kDAS.js +0 -39
  75. package/dist/EventTypeAppCardInterface-gjVYt_ZD.js +0 -33
  76. package/dist/EventTypeAppCardInterface-kmftUrCV.js +0 -32
  77. package/dist/EventTypeAppCardInterface-sG1mFyzN.js +0 -39
  78. package/dist/EventTypeAppCardInterface-sRqedemb.js +0 -41
  79. package/dist/EventTypeAppCardInterface-sZ8b3QC1.js +0 -34
  80. package/dist/EventTypeAppCardInterface-t_YQeAVV.js +0 -34
  81. package/dist/EventTypeAppSettingsInterface-4yNMo4Q9.js +0 -298
  82. package/dist/EventTypeAppSettingsInterface-BfRfPQNh.js +0 -120
  83. package/dist/EventTypeAppSettingsInterface-D72l4G-t.js +0 -48
  84. package/dist/EventTypeAppSettingsInterface-J1v2pIJ6.js +0 -78
  85. package/dist/EventTypeAppSettingsInterface-TNrelj_x.js +0 -25
  86. package/dist/EventTypeAppSettingsInterface-hfofyLH8.js +0 -221
  87. package/dist/EventTypeAppSettingsInterface-iPaHKtIn.js +0 -23
  88. package/dist/EventTypeAppSettingsInterface-iscD_8j0.js +0 -106
  89. package/dist/EventTypeAppSettingsInterface-lCQQSWge.js +0 -43
  90. package/dist/EventTypeAppSettingsInterface-pqAHbpj-.js +0 -72
  91. package/dist/EventTypeAppSettingsInterface-r12RWRqC.js +0 -42
  92. package/dist/EventTypeAppSettingsInterface-rUiI0j3i.js +0 -23
  93. package/dist/EventTypeAppSettingsInterface-xrBzd-pp.js +0 -24
  94. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  95. package/dist/InstallAppButton-N6EWQ7cN.js +0 -58
  96. package/dist/InstallAppButton-bRxGl3Ky.js +0 -14
  97. package/dist/InstallAppButton-fNl0KaRA.js +0 -14
  98. package/dist/StripePaymentForm-Iym6ImTI.js +0 -493
  99. package/dist/currencyOptions-kannG2hu.js +0 -61
  100. package/dist/index-0N1b0J1c.js +0 -30
  101. package/dist/index-7HDflSvQ.js +0 -518
  102. package/dist/index-ZlYpjCCS.js +0 -161411
  103. package/dist/packages/features/eventtypes/components/Locations.d.ts.map +0 -1
  104. package/dist/useIsAppEnabled-BJ4EJ4jB.js +0 -18
@@ -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-ZlYpjCCS.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-ZlYpjCCS.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,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-ZlYpjCCS.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,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-ZlYpjCCS.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,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-ZlYpjCCS.js";
3
- import { A as c } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import l from "./EventTypeAppSettingsInterface-r12RWRqC.js";
6
- const b = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
9
- return /* @__PURE__ */ a(
10
- c,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: (d) => {
15
- i(d);
16
- },
17
- switchChecked: o,
18
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
19
- children: /* @__PURE__ */ a(
20
- l,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: n,
25
- getAppData: r,
26
- setAppData: s
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- b as default
34
- };
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-ZlYpjCCS.js";
3
- import { A as m } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.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,86 +0,0 @@
1
- import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
- import { z as v, y as T, G as _, K as t, W as q, M as L, f as V, S as g } from "./index-ZlYpjCCS.js";
3
- import { useMemo as W, useState as p } from "react";
4
- import { A as $ } from "./AppCard-HKcGH7KI.js";
5
- import { c as x, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
- const U = function({ app: S, eventType: A }) {
7
- var f, h;
8
- const i = v.useSearchParams(), d = v.usePathname(), P = W(
9
- () => `${d}${i ? `?${i.toString()}` : ""}`,
10
- [d, i]
11
- ), { t: n } = T(), { getAppData: r, setAppData: c } = _(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(x.find((e) => e.value === l)), [w, E] = p(
12
- j(l) ? C[l] : ""
13
- ), [b, D] = p(N), m = ((f = t) == null ? void 0 : f.find((e) => k === e.value)) || {
14
- label: t[0].label,
15
- value: t[0].value
16
- }, F = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
- return /* @__PURE__ */ a(
18
- $,
19
- {
20
- returnTo: q + P,
21
- app: S,
22
- switchChecked: b,
23
- switchOnClick: (e) => {
24
- D(e);
25
- },
26
- description: /* @__PURE__ */ a(o, { children: "Add a mock payment to your events" }),
27
- children: /* @__PURE__ */ a(o, { children: F ? /* @__PURE__ */ a(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
28
- /* @__PURE__ */ a("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ a(
29
- V,
30
- {
31
- id: "test-mock-payment-app-price",
32
- label: "Price",
33
- labelSrOnly: !0,
34
- addOnLeading: w,
35
- addOnSuffix: l,
36
- step: "0.01",
37
- min: "0.5",
38
- type: "number",
39
- required: !0,
40
- className: "block w-full rounded-sm pl-2 text-sm",
41
- placeholder: "Price",
42
- onChange: (e) => {
43
- c("price", Number(e.target.value) * 100), s && c("currency", s.value);
44
- },
45
- value: y > 0 ? y / 100 : void 0
46
- }
47
- ) }),
48
- /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
49
- /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
50
- /* @__PURE__ */ a(
51
- g,
52
- {
53
- id: "test-mock-payment-app-currency-id",
54
- variant: "default",
55
- options: x,
56
- value: s,
57
- className: "text-black",
58
- defaultValue: s,
59
- onChange: (e) => {
60
- e && (O(e), E(C[e.value]), c("currency", e.value));
61
- }
62
- }
63
- )
64
- ] }),
65
- /* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
66
- /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
67
- /* @__PURE__ */ a(
68
- g,
69
- {
70
- defaultValue: m ? { ...m, label: n(m.label) } : { ...t[0], label: n(t[0].label) },
71
- options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
72
- onChange: (e) => {
73
- e && c("paymentOption", e.value);
74
- },
75
- className: "mb-1 h-[38px] w-full",
76
- isDisabled: !1
77
- }
78
- )
79
- ] })
80
- ] }) })
81
- }
82
- );
83
- };
84
- export {
85
- U as default
86
- };
@@ -1,42 +0,0 @@
1
- import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
- import { z as i, G as f, J as g, y as S, W as b } from "./index-ZlYpjCCS.js";
3
- import { useMemo as v, useState as C } from "react";
4
- import { A as w } from "./AppCard-HKcGH7KI.js";
5
- import E from "./EventTypeAppSettingsInterface-J1v2pIJ6.js";
6
- const $ = function({
7
- app: a,
8
- eventType: c,
9
- eventTypeFormMetadata: m
10
- }) {
11
- const t = i.useSearchParams(), s = i.usePathname(), h = v(
12
- () => `${s}${t ? `?${t.toString()}` : ""}`,
13
- [s, t]
14
- ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), y = g(m), { t: A } = S(), r = !o && y;
15
- return /* @__PURE__ */ e(
16
- w,
17
- {
18
- returnTo: b + h,
19
- app: a,
20
- switchChecked: o,
21
- switchOnClick: (P) => {
22
- u(P);
23
- },
24
- description: /* @__PURE__ */ e(p, { children: "Add Paypal payment to your events" }),
25
- disableSwitch: r,
26
- switchTooltip: r ? A("other_payment_app_enabled") : void 0,
27
- children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
28
- E,
29
- {
30
- eventType: c,
31
- slug: a.slug,
32
- disabled: l,
33
- getAppData: n,
34
- setAppData: d
35
- }
36
- ) })
37
- }
38
- );
39
- };
40
- export {
41
- $ as default
42
- };
@@ -1,41 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { y as b, z as f, G as y, J as E, W as P } from "./index-ZlYpjCCS.js";
3
- import { useState as C } from "react";
4
- import { A as g } from "./AppCard-HKcGH7KI.js";
5
- import { u as v } from "./useIsAppEnabled-BJ4EJ4jB.js";
6
- import w from "./EventTypeAppSettingsInterface-4yNMo4Q9.js";
7
- const q = function({
8
- app: e,
9
- eventType: t,
10
- eventTypeFormMetadata: p
11
- }) {
12
- var n;
13
- const { t: i } = b(), r = f.usePathname(), { getAppData: a, setAppData: m, disabled: c } = y(), { enabled: d, updateEnabled: l } = v(e), u = E(p), [h, T] = C(a("enabled")), s = !h && u;
14
- return /* @__PURE__ */ o(
15
- g,
16
- {
17
- returnTo: `${P}${r}?tabName=apps`,
18
- app: e,
19
- switchChecked: d,
20
- switchOnClick: (A) => {
21
- l(A);
22
- },
23
- teamId: ((n = t.team) == null ? void 0 : n.id) || void 0,
24
- disableSwitch: s,
25
- switchTooltip: s ? i("other_payment_app_enabled") : void 0,
26
- children: /* @__PURE__ */ o(
27
- w,
28
- {
29
- eventType: t,
30
- slug: e.slug,
31
- disabled: c,
32
- getAppData: a,
33
- setAppData: m
34
- }
35
- )
36
- }
37
- );
38
- };
39
- export {
40
- q as default
41
- };
@@ -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-ZlYpjCCS.js";
3
- import { A as I } from "./AppCard-HKcGH7KI.js";
4
- import { u as C } from "./useIsAppEnabled-BJ4EJ4jB.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
- };
@@ -1,42 +0,0 @@
1
- import { jsx as e, Fragment as P } from "react/jsx-runtime";
2
- import { z as i, y as g, G as f, J as b, W as S } from "./index-ZlYpjCCS.js";
3
- import { useMemo as v, useState as C } from "react";
4
- import { A as w } from "./AppCard-HKcGH7KI.js";
5
- import E from "./EventTypeAppSettingsInterface-pqAHbpj-.js";
6
- const $ = function({
7
- app: a,
8
- eventType: p,
9
- eventTypeFormMetadata: c
10
- }) {
11
- const t = i.useSearchParams(), { t: m } = g(), s = i.usePathname(), h = v(
12
- () => `${s}${t ? `?${t.toString()}` : ""}`,
13
- [s, t]
14
- ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = b(c), r = !o && A;
15
- return /* @__PURE__ */ e(
16
- w,
17
- {
18
- returnTo: S + h,
19
- app: a,
20
- switchChecked: o,
21
- switchOnClick: (y) => {
22
- u(y);
23
- },
24
- description: /* @__PURE__ */ e(P, { children: "Add bitcoin lightning payments to your events" }),
25
- disableSwitch: r,
26
- switchTooltip: r ? m("other_payment_app_enabled") : void 0,
27
- children: /* @__PURE__ */ e(
28
- E,
29
- {
30
- eventType: p,
31
- slug: a.slug,
32
- disabled: l,
33
- getAppData: n,
34
- setAppData: d
35
- }
36
- )
37
- }
38
- );
39
- };
40
- export {
41
- $ as default
42
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-ZlYpjCCS.js";
3
- import { A as c } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- import l from "./EventTypeAppSettingsInterface-xrBzd-pp.js";
6
- const b = function({ app: t, eventType: e }) {
7
- var p;
8
- const { getAppData: r, setAppData: s, disabled: n } = m(), { enabled: o, updateEnabled: i } = u(t);
9
- return /* @__PURE__ */ a(
10
- c,
11
- {
12
- hideSettingsIcon: !0,
13
- app: t,
14
- switchOnClick: (d) => {
15
- i(d);
16
- },
17
- switchChecked: o,
18
- teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
19
- children: /* @__PURE__ */ a(
20
- l,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: n,
25
- getAppData: r,
26
- setAppData: s
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- b as default
34
- };
@@ -1,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-ZlYpjCCS.js";
3
- import { A as m } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.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,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-ZlYpjCCS.js";
3
- import { A as m } from "./AppCard-HKcGH7KI.js";
4
- import { u } from "./useIsAppEnabled-BJ4EJ4jB.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 t, jsxs as h } from "react/jsx-runtime";
2
- import { G as m, f as p } from "./index-ZlYpjCCS.js";
3
- import { A } from "./AppCard-HKcGH7KI.js";
4
- import { u as I } from "./useIsAppEnabled-BJ4EJ4jB.js";
5
- const x = function({ app: a, eventType: s }) {
6
- var i;
7
- const { getAppData: r, setAppData: n, disabled: o } = m(), d = r("TRACKING_ID"), l = r("API_HOST"), { enabled: c, updateEnabled: u } = I(a);
8
- return /* @__PURE__ */ t(
9
- A,
10
- {
11
- hideSettingsIcon: !0,
12
- app: a,
13
- switchOnClick: (e) => {
14
- u(e);
15
- },
16
- switchChecked: c,
17
- teamId: ((i = s.team) == null ? void 0 : i.id) || void 0,
18
- children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
19
- /* @__PURE__ */ t(
20
- p,
21
- {
22
- required: !0,
23
- disabled: o,
24
- name: "Tracking ID",
25
- value: d,
26
- placeholder: "Enter your Tracking ID",
27
- onChange: (e) => {
28
- n("TRACKING_ID", e.target.value);
29
- }
30
- }
31
- ),
32
- /* @__PURE__ */ t(
33
- p,
34
- {
35
- required: !0,
36
- disabled: o,
37
- name: "Api host",
38
- value: l,
39
- placeholder: "Enter your Api host url",
40
- onChange: (e) => {
41
- n("API_HOST", e.target.value);
42
- }
43
- }
44
- )
45
- ] })
46
- }
47
- );
48
- };
49
- export {
50
- x as default
51
- };