@calcom/atoms 1.3.0 → 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.
Files changed (141) hide show
  1. package/dist/{AddressInput-sMG4Ayqp.js → AddressInput-2hL6xvaw.js} +3 -3
  2. package/dist/{AlbyPriceComponent-1rbVIc_T.js → AlbyPriceComponent-90fNQIrg.js} +19 -19
  3. package/dist/{PhoneInput-cqTlU9G5.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-SRsTKyeM.js → index-a3d1IjXE.js} +1 -1
  7. package/dist/index-ubX_XTnt.js +1957 -0
  8. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/BookerStoreProvider.d.ts +11 -0
  10. package/dist/packages/features/bookings/Booker/BookerStoreProvider.d.ts.map +1 -0
  11. package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts +10 -0
  12. package/dist/packages/features/bookings/Booker/__tests__/test-utils.d.ts.map +1 -0
  13. package/dist/packages/features/bookings/Booker/components/AvailableTimeSlots.d.ts +2 -1
  14. package/dist/packages/features/bookings/Booker/components/AvailableTimeSlots.d.ts.map +1 -1
  15. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts +2 -1
  16. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts.map +1 -1
  17. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  18. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +2 -1
  19. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  20. package/dist/packages/features/bookings/Booker/components/Header.d.ts.map +1 -1
  21. package/dist/packages/features/bookings/Booker/components/LargeCalendar.d.ts.map +1 -1
  22. package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts.map +1 -1
  23. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +39 -0
  24. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
  25. package/dist/packages/features/bookings/Booker/store.d.ts +6 -6
  26. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  27. package/dist/packages/features/bookings/Booker/utils/event.d.ts +7 -0
  28. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  29. package/dist/packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.d.ts.map +1 -1
  30. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  31. package/dist/packages/features/ee/round-robin/roundRobinDeleteEvents.test.d.ts +2 -0
  32. package/dist/packages/features/ee/round-robin/roundRobinDeleteEvents.test.d.ts.map +1 -0
  33. package/dist/packages/features/ee/workflows/pages/workflow.d.ts.map +1 -1
  34. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts +6 -0
  35. package/dist/packages/features/eventtypes/components/locations/CalVideoSettings.d.ts.map +1 -0
  36. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts +5 -0
  37. package/dist/packages/features/eventtypes/components/locations/LocationSettingsContainer.d.ts.map +1 -0
  38. package/dist/packages/features/eventtypes/components/{Locations.d.ts → locations/Locations.d.ts} +2 -2
  39. package/dist/packages/features/eventtypes/components/locations/Locations.d.ts.map +1 -0
  40. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts +1 -1
  41. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
  42. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +36 -0
  43. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  44. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +7 -0
  45. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  46. package/dist/packages/features/eventtypes/lib/types.d.ts +10 -9
  47. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  48. package/dist/packages/features/schedules/components/DateOverrideInputDialog.d.ts.map +1 -1
  49. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  50. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  51. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  52. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  53. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  54. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +7 -0
  55. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  56. package/dist/packages/platform/atoms/index.d.ts +0 -36
  57. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  58. package/dist/packages/platform/libraries/index.d.ts +1 -0
  59. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  60. package/dist/packages/platform/libraries/repositories.d.ts +1 -0
  61. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  62. package/dist/packages/platform/libraries/slots.d.ts +2 -0
  63. package/dist/packages/platform/libraries/slots.d.ts.map +1 -1
  64. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  65. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  66. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
  67. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
  68. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
  69. package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
  70. package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts +4 -0
  71. package/dist/packages/platform/types/event-types/inputs/private-link.input.d.ts.map +1 -1
  72. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts +1 -0
  73. package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts.map +1 -1
  74. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +1 -0
  75. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
  76. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts +19 -7
  77. package/dist/packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.d.ts.map +1 -1
  78. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +21 -0
  79. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
  80. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +2 -0
  81. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  82. package/dist/style.css +1 -1
  83. package/package.json +1 -1
  84. package/dist/AppCard-Zx_xfVt_.js +0 -281
  85. package/dist/AppListCardPlatformWrapper-qcAFCAXX.js +0 -9
  86. package/dist/AppListCardWebWrapper-3Pbmp6y8.js +0 -74
  87. package/dist/AppSettingsInterface-4XMEEbcJ.js +0 -75
  88. package/dist/AppSettingsInterface-YsrrXooV.js +0 -29
  89. package/dist/AppSettingsInterface-odT8kPt-.js +0 -23
  90. package/dist/DateRangePicker-DJBZW9da.js +0 -74
  91. package/dist/EventTypeAppCardInterface-0K5xbIex.js +0 -49
  92. package/dist/EventTypeAppCardInterface-0OvYJLmR.js +0 -24
  93. package/dist/EventTypeAppCardInterface-0kqrhpLm.js +0 -34
  94. package/dist/EventTypeAppCardInterface-31dw8z6g.js +0 -34
  95. package/dist/EventTypeAppCardInterface-3DQk93Oh.js +0 -34
  96. package/dist/EventTypeAppCardInterface-9awj9ikp.js +0 -32
  97. package/dist/EventTypeAppCardInterface-A4ukS96V.js +0 -51
  98. package/dist/EventTypeAppCardInterface-FHw_ihqn.js +0 -34
  99. package/dist/EventTypeAppCardInterface-G_vO0W-q.js +0 -51
  100. package/dist/EventTypeAppCardInterface-HLMEZBRF.js +0 -39
  101. package/dist/EventTypeAppCardInterface-OmcE4mB3.js +0 -42
  102. package/dist/EventTypeAppCardInterface-WkoM7u6A.js +0 -41
  103. package/dist/EventTypeAppCardInterface-h4Pze3Gg.js +0 -32
  104. package/dist/EventTypeAppCardInterface-iQlInguK.js +0 -34
  105. package/dist/EventTypeAppCardInterface-lYTrL5Bl.js +0 -42
  106. package/dist/EventTypeAppCardInterface-mK2_N-dB.js +0 -34
  107. package/dist/EventTypeAppCardInterface-obLysXQC.js +0 -24
  108. package/dist/EventTypeAppCardInterface-omWnfJYA.js +0 -33
  109. package/dist/EventTypeAppCardInterface-pSepgnI-.js +0 -34
  110. package/dist/EventTypeAppCardInterface-rvCvUanb.js +0 -24
  111. package/dist/EventTypeAppCardInterface-se55G0wm.js +0 -24
  112. package/dist/EventTypeAppCardInterface-t4XO8_QR.js +0 -41
  113. package/dist/EventTypeAppCardInterface-tDBXaZGm.js +0 -39
  114. package/dist/EventTypeAppCardInterface-utbpEdvv.js +0 -31
  115. package/dist/EventTypeAppCardInterface-wk4GzNE9.js +0 -86
  116. package/dist/EventTypeAppCardInterface-xWjmxDRE.js +0 -858
  117. package/dist/EventTypeAppCardInterface-z0_lwBiz.js +0 -24
  118. package/dist/EventTypeAppSettingsInterface-2x-2dNXv.js +0 -42
  119. package/dist/EventTypeAppSettingsInterface-7bn1HSLI.js +0 -43
  120. package/dist/EventTypeAppSettingsInterface-KY9K2A4a.js +0 -24
  121. package/dist/EventTypeAppSettingsInterface-N3GZOEOV.js +0 -23
  122. package/dist/EventTypeAppSettingsInterface-SyFwT8fy.js +0 -298
  123. package/dist/EventTypeAppSettingsInterface-VPwlxALu.js +0 -78
  124. package/dist/EventTypeAppSettingsInterface-W5ejZRBB.js +0 -120
  125. package/dist/EventTypeAppSettingsInterface-WxLx9nXX.js +0 -221
  126. package/dist/EventTypeAppSettingsInterface-eqtUnnNt.js +0 -48
  127. package/dist/EventTypeAppSettingsInterface-qI5dfOri.js +0 -23
  128. package/dist/EventTypeAppSettingsInterface-sgrrOkbn.js +0 -72
  129. package/dist/EventTypeAppSettingsInterface-uSZXgZw6.js +0 -25
  130. package/dist/EventTypeAppSettingsInterface-v7Pzk2Bm.js +0 -106
  131. package/dist/InstallAppButton-JS_mFJ2c.js +0 -14
  132. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  133. package/dist/InstallAppButton-Tmmia5nu.js +0 -14
  134. package/dist/InstallAppButton-bTw6dwGS.js +0 -58
  135. package/dist/StripePaymentForm-sHV_1oj6.js +0 -493
  136. package/dist/currencyOptions-kannG2hu.js +0 -61
  137. package/dist/index-MLgFWWYi.js +0 -161243
  138. package/dist/index-oB7xnM_T.js +0 -30
  139. package/dist/index-uQDDhsO6.js +0 -518
  140. package/dist/packages/features/eventtypes/components/Locations.d.ts.map +0 -1
  141. package/dist/useIsAppEnabled-GIoK8AkC.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-MLgFWWYi.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,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-MLgFWWYi.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,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-MLgFWWYi.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-MLgFWWYi.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,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-MLgFWWYi.js";
3
- import { A as I } from "./AppCard-Zx_xfVt_.js";
4
- import { u as C } from "./useIsAppEnabled-GIoK8AkC.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,24 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { z as d, W as i } from "./index-MLgFWWYi.js";
3
- import { A as m } from "./AppCard-Zx_xfVt_.js";
4
- import { u } from "./useIsAppEnabled-GIoK8AkC.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,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-MLgFWWYi.js";
3
- import { A as c } from "./AppCard-Zx_xfVt_.js";
4
- import { u } from "./useIsAppEnabled-GIoK8AkC.js";
5
- import l from "./EventTypeAppSettingsInterface-qI5dfOri.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,34 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { G as l, f as m } from "./index-MLgFWWYi.js";
3
- import { A as u } from "./AppCard-Zx_xfVt_.js";
4
- import { u as I } from "./useIsAppEnabled-GIoK8AkC.js";
5
- const D = function({ app: t, eventType: n }) {
6
- var a;
7
- const { getAppData: o, setAppData: r, disabled: d } = l(), s = o("SITE_ID"), { enabled: i, updateEnabled: c } = I(t);
8
- return /* @__PURE__ */ p(
9
- u,
10
- {
11
- app: t,
12
- switchOnClick: (e) => {
13
- c(e);
14
- },
15
- switchChecked: i,
16
- teamId: ((a = n.team) == null ? void 0 : a.id) || void 0,
17
- children: /* @__PURE__ */ p(
18
- m,
19
- {
20
- disabled: d,
21
- name: "Site ID",
22
- value: s,
23
- placeholder: "Enter your Site ID",
24
- onChange: (e) => {
25
- r("SITE_ID", e.target.value);
26
- }
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- D as default
34
- };
@@ -1,34 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { G as m, y as f } from "./index-MLgFWWYi.js";
3
- import { A as l } from "./AppCard-Zx_xfVt_.js";
4
- import { u } from "./useIsAppEnabled-GIoK8AkC.js";
5
- import A from "./EventTypeAppSettingsInterface-WxLx9nXX.js";
6
- const w = function({ app: t, eventType: e }) {
7
- var o;
8
- const { getAppData: s, setAppData: a, disabled: p } = m(), { enabled: n, updateEnabled: r } = u(t), { t: c } = f();
9
- return /* @__PURE__ */ i(
10
- l,
11
- {
12
- app: t,
13
- description: c("confirmation_page_gif"),
14
- switchOnClick: (d) => {
15
- r(d);
16
- },
17
- switchChecked: n,
18
- teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
19
- children: /* @__PURE__ */ i(
20
- A,
21
- {
22
- eventType: e,
23
- slug: t.slug,
24
- disabled: p,
25
- getAppData: s,
26
- setAppData: a
27
- }
28
- )
29
- }
30
- );
31
- };
32
- export {
33
- w as default
34
- };
@@ -1,32 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useState as c } from "react";
3
- import { G as m, f as l } from "./index-MLgFWWYi.js";
4
- import { A as f } from "./AppCard-Zx_xfVt_.js";
5
- const k = function({ app: p, eventType: i }) {
6
- var n;
7
- const { getAppData: t, setAppData: o } = m(), s = t("trackingId"), [d, a] = c(t("enabled"));
8
- return /* @__PURE__ */ r(
9
- f,
10
- {
11
- app: p,
12
- switchOnClick: (e) => {
13
- a(!!e);
14
- },
15
- switchChecked: d,
16
- teamId: ((n = i.team) == null ? void 0 : n.id) || void 0,
17
- children: /* @__PURE__ */ r(
18
- l,
19
- {
20
- name: "Tracking ID",
21
- value: s,
22
- onChange: (e) => {
23
- o("trackingId", e.target.value);
24
- }
25
- }
26
- )
27
- }
28
- );
29
- };
30
- export {
31
- k as default
32
- };
@@ -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-MLgFWWYi.js";
3
- import { A } from "./AppCard-Zx_xfVt_.js";
4
- import { u as I } from "./useIsAppEnabled-GIoK8AkC.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
- };
@@ -1,34 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { G as m } from "./index-MLgFWWYi.js";
3
- import { A as c } from "./AppCard-Zx_xfVt_.js";
4
- import { u } from "./useIsAppEnabled-GIoK8AkC.js";
5
- import l from "./EventTypeAppSettingsInterface-2x-2dNXv.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,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-MLgFWWYi.js";
3
- import { A } from "./AppCard-Zx_xfVt_.js";
4
- import { u as I } from "./useIsAppEnabled-GIoK8AkC.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,39 +0,0 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { G as m, X as o } from "./index-MLgFWWYi.js";
3
- import { A as u } from "./AppCard-Zx_xfVt_.js";
4
- import { u as h } from "./useIsAppEnabled-GIoK8AkC.js";
5
- const E = function({ eventType: a, app: s }) {
6
- var n;
7
- const { getAppData: l, setAppData: i } = m(), p = l("isSunrise"), { enabled: c, updateEnabled: r } = h(s);
8
- return /* @__PURE__ */ t(
9
- u,
10
- {
11
- app: s,
12
- switchOnClick: (d) => {
13
- d ? (r(!0), i("isSunrise", !0)) : (r(!1), i("isSunrise", !1));
14
- },
15
- switchChecked: c,
16
- teamId: ((n = a.team) == null ? void 0 : n.id) || void 0,
17
- children: /* @__PURE__ */ e("div", { className: "mt-2 text-sm", children: [
18
- /* @__PURE__ */ e("div", { className: "flex", children: [
19
- /* @__PURE__ */ t("span", { className: "ltr:mr-2 rtl:ml-2", children: /* @__PURE__ */ t(o, { name: p ? "sunrise" : "sunset" }) }),
20
- "I am an AppCard for Event with Title: ",
21
- a.title
22
- ] }),
23
- " ",
24
- /* @__PURE__ */ e("div", { className: "mt-2", children: [
25
- "Edit ",
26
- /* @__PURE__ */ e("span", { className: "italic", children: [
27
- "packages/app-store/",
28
- s.slug,
29
- "/EventTypeAppCardInterface.tsx"
30
- ] }),
31
- " to play with me"
32
- ] })
33
- ] })
34
- }
35
- );
36
- };
37
- export {
38
- E as default
39
- };
@@ -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-MLgFWWYi.js";
3
- import { useMemo as v, useState as C } from "react";
4
- import { A as w } from "./AppCard-Zx_xfVt_.js";
5
- import E from "./EventTypeAppSettingsInterface-VPwlxALu.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 p } from "react/jsx-runtime";
2
- import { y as b, z as f, G as y, J as E, W as C } from "./index-MLgFWWYi.js";
3
- import { useState as P } from "react";
4
- import { A as g } from "./AppCard-Zx_xfVt_.js";
5
- import { u as v } from "./useIsAppEnabled-GIoK8AkC.js";
6
- import w from "./EventTypeAppSettingsInterface-W5ejZRBB.js";
7
- const W = function({
8
- app: t,
9
- eventType: e,
10
- eventTypeFormMetadata: n
11
- }) {
12
- var o;
13
- const { t: i } = b(), r = f.usePathname(), { getAppData: a, setAppData: c, disabled: m } = y(), { enabled: d, updateEnabled: l } = v(t), u = E(n), [h] = P(a("enabled")), s = !h && u;
14
- return /* @__PURE__ */ p(
15
- g,
16
- {
17
- returnTo: `${C}${r}?tabName=apps`,
18
- app: t,
19
- switchChecked: d,
20
- switchOnClick: (A) => {
21
- l(A);
22
- },
23
- teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
24
- disableSwitch: s,
25
- switchTooltip: s ? i("other_payment_app_enabled") : void 0,
26
- children: /* @__PURE__ */ p(
27
- w,
28
- {
29
- eventType: e,
30
- slug: t.slug,
31
- disabled: m,
32
- getAppData: a,
33
- setAppData: c
34
- }
35
- )
36
- }
37
- );
38
- };
39
- export {
40
- W as default
41
- };