@calcom/atoms 1.1.0-booker → 1.1.1-debug-dont-use

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/{AddressInput-6TIOefqU.js → AddressInput-CVMPei2D.js} +3 -3
  2. package/dist/{AlbyPriceComponent-zZlkVZTy.js → AlbyPriceComponent-E6ULoDL6.js} +29 -29
  3. package/dist/AppCard-cTGNOAHy.js +281 -0
  4. package/dist/AppListCardPlatformWrapper-NSThSuXk.js +9 -0
  5. package/dist/AppListCardWebWrapper-XwKnQn63.js +74 -0
  6. package/dist/AppSettingsInterface-YBMLeXt4.js +23 -0
  7. package/dist/AppSettingsInterface-ZH3XhiYG.js +75 -0
  8. package/dist/AppSettingsInterface-x5iDZUBe.js +29 -0
  9. package/dist/DateRangePicker-f_B5u4e9.js +2405 -0
  10. package/dist/EventTypeAppCardInterface--fNkLgYH.js +858 -0
  11. package/dist/EventTypeAppCardInterface-0cii-lHS.js +34 -0
  12. package/dist/EventTypeAppCardInterface-0gSJQJit.js +32 -0
  13. package/dist/EventTypeAppCardInterface-2TR5xhf8.js +33 -0
  14. package/dist/EventTypeAppCardInterface-9C3Wfgpy.js +24 -0
  15. package/dist/EventTypeAppCardInterface-C6ns7UmL.js +51 -0
  16. package/dist/EventTypeAppCardInterface-F5At064k.js +41 -0
  17. package/dist/EventTypeAppCardInterface-JCEQYUtS.js +31 -0
  18. package/dist/EventTypeAppCardInterface-L_OQx-GG.js +34 -0
  19. package/dist/EventTypeAppCardInterface-NMuTJqnR.js +32 -0
  20. package/dist/EventTypeAppCardInterface-Q8BoN8IR.js +24 -0
  21. package/dist/EventTypeAppCardInterface-TSa1z_cz.js +24 -0
  22. package/dist/EventTypeAppCardInterface-V2CVt-gp.js +39 -0
  23. package/dist/EventTypeAppCardInterface-VdYfOsab.js +51 -0
  24. package/dist/EventTypeAppCardInterface-VxD1hz61.js +34 -0
  25. package/dist/EventTypeAppCardInterface-Zei_gfk9.js +42 -0
  26. package/dist/EventTypeAppCardInterface-_2yZa06r.js +34 -0
  27. package/dist/EventTypeAppCardInterface-_mJKoptx.js +41 -0
  28. package/dist/EventTypeAppCardInterface-cZjp0yNN.js +34 -0
  29. package/dist/EventTypeAppCardInterface-ix9-eOy7.js +34 -0
  30. package/dist/EventTypeAppCardInterface-omHgFR_2.js +24 -0
  31. package/dist/EventTypeAppCardInterface-pS7YojCs.js +34 -0
  32. package/dist/EventTypeAppCardInterface-qaVZIE5N.js +49 -0
  33. package/dist/EventTypeAppCardInterface-ugSSelEX.js +42 -0
  34. package/dist/EventTypeAppCardInterface-wPiG1Uab.js +24 -0
  35. package/dist/EventTypeAppCardInterface-x8x6_qO2.js +86 -0
  36. package/dist/EventTypeAppSettingsInterface-A-zPsqPN.js +298 -0
  37. package/dist/EventTypeAppSettingsInterface-Mw0nUm2I.js +48 -0
  38. package/dist/EventTypeAppSettingsInterface-N-387tFo.js +120 -0
  39. package/dist/EventTypeAppSettingsInterface-SrOLSflD.js +43 -0
  40. package/dist/EventTypeAppSettingsInterface-TxRlEgaM.js +78 -0
  41. package/dist/EventTypeAppSettingsInterface-USUuP18O.js +24 -0
  42. package/dist/EventTypeAppSettingsInterface-_jGTLesb.js +72 -0
  43. package/dist/EventTypeAppSettingsInterface-aGQavYPZ.js +42 -0
  44. package/dist/EventTypeAppSettingsInterface-mf5L8PKf.js +25 -0
  45. package/dist/EventTypeAppSettingsInterface-uJw6TEuG.js +221 -0
  46. package/dist/EventTypeAppSettingsInterface-wRyNHA8Z.js +23 -0
  47. package/dist/EventTypeAppSettingsInterface-xfI4WyE9.js +23 -0
  48. package/dist/InstallAppButton-3pRRFAeS.js +14 -0
  49. package/dist/InstallAppButton-JXhBVaYJ.js +29 -0
  50. package/dist/InstallAppButton-sMIEaIrB.js +58 -0
  51. package/dist/InstallAppButton-xME8ESsW.js +14 -0
  52. package/dist/{PhoneInput-_EJl7Rqu.js → PhoneInput-_96ULuJw.js} +1 -1
  53. package/dist/StripePaymentForm-1ANfOJyB.js +493 -0
  54. package/dist/cal-atoms.js +36 -5
  55. package/dist/currencyOptions-kannG2hu.js +61 -0
  56. package/dist/index-VZRHTsae.js +28 -0
  57. package/dist/index-ZQlxzdt5.js +157233 -0
  58. package/dist/index-me6CfU0W.js +518 -0
  59. package/dist/{index-_P-UqUYu.js → index-qcnOr3S-.js} +1 -1
  60. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +4 -0
  61. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
  62. package/dist/packages/features/bookings/Booker/store.d.ts +3 -1
  63. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  64. package/dist/packages/features/bookings/Booker/types.d.ts +1 -0
  65. package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
  66. package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts +2 -1
  67. package/dist/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
  68. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +3 -0
  69. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts.map +1 -1
  70. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +5 -0
  71. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts.map +1 -1
  72. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +2 -0
  73. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
  74. package/dist/packages/features/bookings/lib/getUserBooking.d.ts +1 -0
  75. package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
  76. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +4 -0
  77. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  78. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  79. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  80. package/dist/packages/features/data-table/lib/__tests__/server.test.d.ts +2 -0
  81. package/dist/packages/features/data-table/lib/__tests__/server.test.d.ts.map +1 -0
  82. package/dist/packages/features/data-table/lib/server.d.ts +8 -0
  83. package/dist/packages/features/data-table/lib/server.d.ts.map +1 -1
  84. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts +3 -1
  85. package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts.map +1 -1
  86. package/dist/packages/features/ee/round-robin/assignmentReason/appAssignmentReasonHandler.d.ts +2 -1
  87. package/dist/packages/features/ee/round-robin/assignmentReason/appAssignmentReasonHandler.d.ts.map +1 -1
  88. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  89. package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
  90. package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.d.ts.map +1 -1
  91. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  92. package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
  93. package/dist/packages/features/eventtypes/components/Locations.d.ts.map +1 -1
  94. package/dist/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.d.ts.map +1 -1
  95. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +985 -1
  96. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  97. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +166 -0
  98. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -0
  99. package/dist/packages/features/eventtypes/lib/types.d.ts +1 -0
  100. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  101. package/dist/packages/features/schedules/components/Schedule.d.ts.map +1 -1
  102. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  103. package/dist/packages/platform/atoms/cal-provider/BaseCalProvider.d.ts.map +1 -1
  104. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +1 -0
  105. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  106. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +1 -0
  107. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  108. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  109. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +1 -0
  110. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts.map +1 -1
  111. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  112. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  113. package/dist/packages/platform/atoms/index.d.ts +34 -0
  114. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  115. package/dist/packages/platform/libraries/repositories.d.ts +1 -1
  116. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  117. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/booking-fields.input.d.ts.map +1 -1
  118. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts +6 -0
  119. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
  120. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +0 -4
  121. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
  122. package/dist/packages/prisma/zod/calendarcache.d.ts +3 -0
  123. package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
  124. package/dist/packages/prisma/zod/calvideosettings.d.ts +3 -0
  125. package/dist/packages/prisma/zod/calvideosettings.d.ts.map +1 -1
  126. package/dist/packages/prisma/zod/custom/booking.d.ts +9 -0
  127. package/dist/packages/prisma/zod/custom/booking.d.ts.map +1 -1
  128. package/dist/packages/prisma-client/index.d.ts +65 -0
  129. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +1 -1
  130. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  131. package/dist/packages/trpc/server/routers/viewer/slots/util.test.d.ts +2 -0
  132. package/dist/packages/trpc/server/routers/viewer/slots/util.test.d.ts.map +1 -0
  133. package/dist/style.css +1 -1
  134. package/dist/useIsAppEnabled-V8Jl9FX-.js +18 -0
  135. package/package.json +1 -1
  136. package/dist/index-4kA2xtz7.js +0 -1957
  137. package/dist/index-ESVL5ZDq.js +0 -82852
@@ -0,0 +1,34 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as m } from "./index-ZQlxzdt5.js";
3
+ import { A as c } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import l from "./EventTypeAppSettingsInterface-mf5L8PKf.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
+ };
@@ -0,0 +1,32 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useState as c } from "react";
3
+ import { t as m, f as l } from "./index-ZQlxzdt5.js";
4
+ import { A as f } from "./AppCard-cTGNOAHy.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
+ };
@@ -0,0 +1,33 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as m } from "./index-ZQlxzdt5.js";
3
+ import { A as c } from "./AppCard-cTGNOAHy.js";
4
+ import { u as l } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import u from "./EventTypeAppSettingsInterface-SrOLSflD.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
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { s as d, W as i } from "./index-ZQlxzdt5.js";
3
+ import { A as m } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.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
+ };
@@ -0,0 +1,51 @@
1
+ import { jsx as t, jsxs as h } from "react/jsx-runtime";
2
+ import { t as m, f as p } from "./index-ZQlxzdt5.js";
3
+ import { A } from "./AppCard-cTGNOAHy.js";
4
+ import { u as I } from "./useIsAppEnabled-V8Jl9FX-.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
+ };
@@ -0,0 +1,41 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { q as b, s as f, t as E, v, W as y } from "./index-ZQlxzdt5.js";
3
+ import { useState as C } from "react";
4
+ import { A as P } from "./AppCard-cTGNOAHy.js";
5
+ import { u as g } from "./useIsAppEnabled-V8Jl9FX-.js";
6
+ import w from "./EventTypeAppSettingsInterface-N-387tFo.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 } = E(), { enabled: d, updateEnabled: l } = g(t), u = v(n), [h] = C(a("enabled")), s = !h && u;
14
+ return /* @__PURE__ */ p(
15
+ P,
16
+ {
17
+ returnTo: `${y}${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
+ };
@@ -0,0 +1,31 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { t as d } from "./index-ZQlxzdt5.js";
3
+ import { A as c } from "./AppCard-cTGNOAHy.js";
4
+ import { u as m } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import l from "./EventTypeAppSettingsInterface-Mw0nUm2I.js";
6
+ const b = function({ app: t, eventType: p }) {
7
+ const { getAppData: r, setAppData: s, disabled: a } = d(), { enabled: n, updateEnabled: o } = m(t);
8
+ return /* @__PURE__ */ e(
9
+ c,
10
+ {
11
+ app: t,
12
+ switchOnClick: (i) => {
13
+ o(i);
14
+ },
15
+ switchChecked: n,
16
+ children: /* @__PURE__ */ e(
17
+ l,
18
+ {
19
+ slug: t.slug,
20
+ eventType: p,
21
+ disabled: a,
22
+ getAppData: r,
23
+ setAppData: s
24
+ }
25
+ )
26
+ }
27
+ );
28
+ };
29
+ export {
30
+ b as default
31
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as m } from "./index-ZQlxzdt5.js";
3
+ import { A as c } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import l from "./EventTypeAppSettingsInterface-wRyNHA8Z.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
+ };
@@ -0,0 +1,32 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as d } from "./index-ZQlxzdt5.js";
3
+ import { A as m } from "./AppCard-cTGNOAHy.js";
4
+ import { u as c } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import u from "./EventTypeAppSettingsInterface-xfI4WyE9.js";
6
+ const E = function({ app: t, eventType: e }) {
7
+ var p;
8
+ const { getAppData: r, setAppData: s, disabled: n } = d(), { enabled: o, updateEnabled: i } = c(t);
9
+ return /* @__PURE__ */ a(
10
+ m,
11
+ {
12
+ hideSettingsIcon: !0,
13
+ app: t,
14
+ switchOnClick: i,
15
+ switchChecked: o,
16
+ teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
17
+ children: /* @__PURE__ */ a(
18
+ u,
19
+ {
20
+ eventType: e,
21
+ slug: t.slug,
22
+ disabled: n,
23
+ getAppData: r,
24
+ setAppData: s
25
+ }
26
+ )
27
+ }
28
+ );
29
+ };
30
+ export {
31
+ E as default
32
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { s as d, W as i } from "./index-ZQlxzdt5.js";
3
+ import { A as m } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.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
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { s as d, W as i } from "./index-ZQlxzdt5.js";
3
+ import { A as m } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.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
+ };
@@ -0,0 +1,39 @@
1
+ import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
+ import { t as m, N as o } from "./index-ZQlxzdt5.js";
3
+ import { A as u } from "./AppCard-cTGNOAHy.js";
4
+ import { u as h } from "./useIsAppEnabled-V8Jl9FX-.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
+ };
@@ -0,0 +1,51 @@
1
+ import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
+ import { t as h, f as n } from "./index-ZQlxzdt5.js";
3
+ import { A } from "./AppCard-cTGNOAHy.js";
4
+ import { u as I } from "./useIsAppEnabled-V8Jl9FX-.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
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as m } from "./index-ZQlxzdt5.js";
3
+ import { A as c } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import l from "./EventTypeAppSettingsInterface-aGQavYPZ.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
+ };
@@ -0,0 +1,42 @@
1
+ import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
+ import { s as i, t as f, v as g, q as v, W as S } from "./index-ZQlxzdt5.js";
3
+ import { useMemo as b, useState as C } from "react";
4
+ import { A as w } from "./AppCard-cTGNOAHy.js";
5
+ import E from "./EventTypeAppSettingsInterface-TxRlEgaM.js";
6
+ const W = function({
7
+ app: a,
8
+ eventType: c,
9
+ eventTypeFormMetadata: m
10
+ }) {
11
+ const t = i.useSearchParams(), s = i.usePathname(), h = b(
12
+ () => `${s}${t ? `?${t.toString()}` : ""}`,
13
+ [s, t]
14
+ ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = g(m), { t: y } = v(), r = !o && A;
15
+ return /* @__PURE__ */ e(
16
+ w,
17
+ {
18
+ returnTo: S + 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 ? y("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
+ W as default
42
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { t as l, f as m } from "./index-ZQlxzdt5.js";
3
+ import { A as u } from "./AppCard-cTGNOAHy.js";
4
+ import { u as h } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ const D = function({ app: a, eventType: d }) {
6
+ var s;
7
+ const { getAppData: n, setAppData: r, disabled: p } = l(), i = n("SITE_ID"), { enabled: o, updateEnabled: c } = h(a);
8
+ return /* @__PURE__ */ t(
9
+ u,
10
+ {
11
+ app: a,
12
+ switchOnClick: (e) => {
13
+ c(e);
14
+ },
15
+ switchChecked: o,
16
+ teamId: ((s = d.team) == null ? void 0 : s.id) || void 0,
17
+ children: /* @__PURE__ */ t("fieldset", { className: "space-y-2", disabled: p, children: /* @__PURE__ */ t(
18
+ m,
19
+ {
20
+ disabled: p,
21
+ name: "Site ID",
22
+ value: i,
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
+ };
@@ -0,0 +1,41 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { q as b, s as f, t as y, v as E, W as P } from "./index-ZQlxzdt5.js";
3
+ import { useState as v } from "react";
4
+ import { A as C } from "./AppCard-cTGNOAHy.js";
5
+ import { u as g } from "./useIsAppEnabled-V8Jl9FX-.js";
6
+ import w from "./EventTypeAppSettingsInterface-A-zPsqPN.js";
7
+ const W = function({
8
+ app: t,
9
+ eventType: e,
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 } = g(t), u = E(p), [h, T] = v(a("enabled")), s = !h && u;
14
+ return /* @__PURE__ */ o(
15
+ C,
16
+ {
17
+ returnTo: `${P}${r}?tabName=apps`,
18
+ app: t,
19
+ switchChecked: d,
20
+ switchOnClick: (A) => {
21
+ l(A);
22
+ },
23
+ teamId: ((n = e.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: e,
30
+ slug: t.slug,
31
+ disabled: c,
32
+ getAppData: a,
33
+ setAppData: m
34
+ }
35
+ )
36
+ }
37
+ );
38
+ };
39
+ export {
40
+ W as default
41
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { t as m } from "./index-ZQlxzdt5.js";
3
+ import { A as c } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import l from "./EventTypeAppSettingsInterface-USUuP18O.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
+ };
@@ -0,0 +1,34 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { t as m, q as f } from "./index-ZQlxzdt5.js";
3
+ import { A as l } from "./AppCard-cTGNOAHy.js";
4
+ import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
5
+ import A from "./EventTypeAppSettingsInterface-uJw6TEuG.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
+ };