@calcom/atoms 1.1.12-debug-dont-use → 1.2.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 (110) hide show
  1. package/dist/{AddressInput-HCjsIzUK.js → AddressInput-_Diya_zo.js} +3 -3
  2. package/dist/{AlbyPriceComponent-W5HsVgkl.js → AlbyPriceComponent-fIgFEUXN.js} +19 -19
  3. package/dist/{PhoneInput-AXj4II7F.js → PhoneInput-MNv3E3Ho.js} +1 -1
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/index-TYx-qK4G.js +83374 -0
  6. package/dist/{index-Jf2GAhqH.js → index-ghibukoV.js} +1 -1
  7. package/dist/index-mKRiKaF6.js +1957 -0
  8. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/store.d.ts +5 -1
  10. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts +10 -1
  12. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts.map +1 -1
  13. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  14. package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.integration-test.d.ts +2 -0
  15. package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.integration-test.d.ts.map +1 -0
  16. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  17. package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
  18. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  19. package/dist/packages/features/eventtypes/components/CreateEventTypeForm.d.ts.map +1 -1
  20. package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
  21. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  22. package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
  23. package/dist/packages/features/form-builder/fieldsThatSupportLabelAsSafeHtml.d.ts.map +1 -1
  24. package/dist/packages/features/instant-meeting/handleInstantMeeting.d.ts.map +1 -1
  25. package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts +2 -0
  26. package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts.map +1 -0
  27. package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
  28. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  29. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  30. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  31. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
  32. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
  33. package/dist/packages/platform/atoms/index.d.ts +0 -36
  34. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  35. package/dist/packages/platform/libraries/bookings.d.ts +3 -0
  36. package/dist/packages/platform/libraries/bookings.d.ts.map +1 -0
  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/libraries/repositories.d.ts +1 -0
  40. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  41. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +5 -1
  42. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  43. package/dist/style.css +1 -1
  44. package/fonts/26a46d62cd723877-s.woff2 +0 -0
  45. package/fonts/55c55f0601d81cf3-s.woff2 +0 -0
  46. package/fonts/581909926a08bbc8-s.woff2 +0 -0
  47. package/fonts/6d93bde91c0c2823-s.woff2 +0 -0
  48. package/fonts/90475aac776488b6-s.p.woff2 +0 -0
  49. package/fonts/97e0cb1ae144a2a9-s.woff2 +0 -0
  50. package/fonts/a34f9d1faa5f3315-s.p.woff2 +0 -0
  51. package/fonts/df0a9ae256c0569c-s.woff2 +0 -0
  52. package/globals.min.css +2 -2
  53. package/package.json +4 -3
  54. package/dist/AppCard-w9WigXZl.js +0 -281
  55. package/dist/AppListCardPlatformWrapper-GlHYO_vL.js +0 -9
  56. package/dist/AppListCardWebWrapper-pBX_TR8d.js +0 -74
  57. package/dist/AppSettingsInterface-I35iVKTR.js +0 -75
  58. package/dist/AppSettingsInterface-JeuREkvc.js +0 -29
  59. package/dist/AppSettingsInterface-oAXII9bZ.js +0 -23
  60. package/dist/DateRangePicker-CXZAze06.js +0 -74
  61. package/dist/EventTypeAppCardInterface-1kb1DAXF.js +0 -34
  62. package/dist/EventTypeAppCardInterface-6bLFf-mJ.js +0 -51
  63. package/dist/EventTypeAppCardInterface-9m0ipUcV.js +0 -32
  64. package/dist/EventTypeAppCardInterface-BRO9C63X.js +0 -858
  65. package/dist/EventTypeAppCardInterface-BwxW6cnG.js +0 -33
  66. package/dist/EventTypeAppCardInterface-CJ33bYe7.js +0 -24
  67. package/dist/EventTypeAppCardInterface-CfO5a7L0.js +0 -24
  68. package/dist/EventTypeAppCardInterface-F8SkmnAV.js +0 -24
  69. package/dist/EventTypeAppCardInterface-GsL1RQwm.js +0 -34
  70. package/dist/EventTypeAppCardInterface-KURGmUXt.js +0 -34
  71. package/dist/EventTypeAppCardInterface-Ktu6bZ3i.js +0 -51
  72. package/dist/EventTypeAppCardInterface-LXta9gcp.js +0 -24
  73. package/dist/EventTypeAppCardInterface-Ln9B2t8h.js +0 -41
  74. package/dist/EventTypeAppCardInterface-OP6dHmv1.js +0 -86
  75. package/dist/EventTypeAppCardInterface-OuxQbhJB.js +0 -41
  76. package/dist/EventTypeAppCardInterface-POroEYPz.js +0 -31
  77. package/dist/EventTypeAppCardInterface-UgRsp57-.js +0 -24
  78. package/dist/EventTypeAppCardInterface-VKpVuOwh.js +0 -32
  79. package/dist/EventTypeAppCardInterface-XumD3_xd.js +0 -34
  80. package/dist/EventTypeAppCardInterface-Y9jLf1-k.js +0 -34
  81. package/dist/EventTypeAppCardInterface-_feKFUHj.js +0 -39
  82. package/dist/EventTypeAppCardInterface-bPOmfcYy.js +0 -42
  83. package/dist/EventTypeAppCardInterface-bzG36hFi.js +0 -42
  84. package/dist/EventTypeAppCardInterface-dr-WH0By.js +0 -39
  85. package/dist/EventTypeAppCardInterface-mpGRRFxM.js +0 -34
  86. package/dist/EventTypeAppCardInterface-nJac5DFJ.js +0 -49
  87. package/dist/EventTypeAppCardInterface-szvi48V9.js +0 -34
  88. package/dist/EventTypeAppSettingsInterface-0MF998H2.js +0 -25
  89. package/dist/EventTypeAppSettingsInterface-BAihaVJh.js +0 -24
  90. package/dist/EventTypeAppSettingsInterface-ImRIWr2B.js +0 -298
  91. package/dist/EventTypeAppSettingsInterface-LRT7n_yL.js +0 -78
  92. package/dist/EventTypeAppSettingsInterface-S56c57pv.js +0 -23
  93. package/dist/EventTypeAppSettingsInterface-c_xJm5bW.js +0 -43
  94. package/dist/EventTypeAppSettingsInterface-eTApsNn0.js +0 -42
  95. package/dist/EventTypeAppSettingsInterface-ig05GsDo.js +0 -72
  96. package/dist/EventTypeAppSettingsInterface-mywPJB7s.js +0 -48
  97. package/dist/EventTypeAppSettingsInterface-o_5kPQhw.js +0 -120
  98. package/dist/EventTypeAppSettingsInterface-qDv421du.js +0 -79
  99. package/dist/EventTypeAppSettingsInterface-yS0zHBGd.js +0 -23
  100. package/dist/EventTypeAppSettingsInterface-zxD_C4fz.js +0 -221
  101. package/dist/InstallAppButton-5IiP8C1s.js +0 -58
  102. package/dist/InstallAppButton-A3IP79r5.js +0 -14
  103. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  104. package/dist/InstallAppButton-iRRxz6bW.js +0 -14
  105. package/dist/StripePaymentForm-B2pea_tS.js +0 -493
  106. package/dist/currencyOptions-kannG2hu.js +0 -61
  107. package/dist/index-7h1iB9JC.js +0 -518
  108. package/dist/index-KQrl08NN.js +0 -30
  109. package/dist/index-SWq3GK12.js +0 -160368
  110. package/dist/useIsAppEnabled-FQVY7rlm.js +0 -18
@@ -1,9 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { A as p } from "./index-SWq3GK12.js";
3
- function s(o) {
4
- const t = `https://app.cal.com${o.logo}`;
5
- return /* @__PURE__ */ r(p, { ...o, logo: t });
6
- }
7
- export {
8
- s as default
9
- };
@@ -1,74 +0,0 @@
1
- import { jsx as P } from "react/jsx-runtime";
2
- import { Z as i, z as y, _ as A, a0 as R, A as $ } from "./index-SWq3GK12.js";
3
- import { useMemo as Q, useEffect as d, useCallback as b, useState as L, useRef as w } from "react";
4
- i.string().or(i.number()).or(i.array(i.number())).transform((r) => typeof r == "string" ? r.split(",").map((o) => Number(o)) : Array.isArray(r) ? r : [r]);
5
- i.preprocess((r) => i.string().parse(r).split(","), i.string().array()).or(i.string().array());
6
- function x(r) {
7
- const o = y.useRouter(), c = A(), u = y.usePathname(), a = r.safeParse(c);
8
- let s = Q(() => ({}), []);
9
- d(() => {
10
- a.success && a.data && Object.entries(a.data).forEach(([e, t]) => {
11
- if (e in c || !t)
12
- return;
13
- const n = new URLSearchParams(s);
14
- n.set(String(e), String(t)), o.replace(`${u}?${n.toString()}`);
15
- });
16
- }, [a, r, o, u, c, s]), a.success ? s = a.data : a.success || console.error(a.error);
17
- const m = b(
18
- function(t, n) {
19
- const p = new URLSearchParams(s);
20
- p.set(String(t), String(n)), o.replace(`${u}?${p.toString()}`);
21
- },
22
- // eslint-disable-next-line react-hooks/exhaustive-deps
23
- [s, o]
24
- );
25
- function l(e) {
26
- const t = new URLSearchParams(s);
27
- t.delete(String(e)), o.replace(`${u}?${t.toString()}`);
28
- }
29
- function f(e, t) {
30
- const n = s[e];
31
- if (Array.isArray(n)) {
32
- if (n.includes(t))
33
- return;
34
- m(e, [...n, t]);
35
- } else
36
- m(e, [t]);
37
- }
38
- function h(e, t) {
39
- const n = s[e];
40
- if (Array.isArray(n) && n.length > 1) {
41
- const p = n.filter((S) => S !== t);
42
- m(e, p);
43
- } else
44
- l(e);
45
- }
46
- function g() {
47
- u !== null && o.replace(u);
48
- }
49
- return {
50
- data: s,
51
- setQuery: m,
52
- removeByKey: l,
53
- pushItemToKey: f,
54
- removeItemByKeyAndValue: h,
55
- removeAllQueryParams: g
56
- };
57
- }
58
- const C = i.object({ hl: i.string().optional() });
59
- function j(r) {
60
- const { slug: o, shouldHighlight: c } = r, {
61
- data: { hl: u }
62
- } = x(C), a = y.useRouter(), [s, m] = L(c && u === o), l = w(null), f = R(), h = y.usePathname();
63
- return d(() => (c && s && f !== null && h !== null && (l.current = setTimeout(() => {
64
- const g = new URLSearchParams(f.toString());
65
- g.delete("hl"), g.delete("category"), m(!1);
66
- const e = g.toString();
67
- a.replace(`${h}${e !== "" ? `?${e}` : ""}`);
68
- }, 3e3)), () => {
69
- l.current && (clearTimeout(l.current), l.current = null);
70
- }), [s, h, a, f, c]), /* @__PURE__ */ P($, { ...r });
71
- }
72
- export {
73
- j as default
74
- };
@@ -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-SWq3GK12.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-SWq3GK12.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-SWq3GK12.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-SWq3GK12.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-SWq3GK12.js";
3
- import { A as c } from "./AppCard-w9WigXZl.js";
4
- import { u } from "./useIsAppEnabled-FQVY7rlm.js";
5
- import l from "./EventTypeAppSettingsInterface-eTApsNn0.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 t, jsxs as h } from "react/jsx-runtime";
2
- import { G as m, f as p } from "./index-SWq3GK12.js";
3
- import { A } from "./AppCard-w9WigXZl.js";
4
- import { u as I } from "./useIsAppEnabled-FQVY7rlm.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,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-SWq3GK12.js";
4
- import { A as f } from "./AppCard-w9WigXZl.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
- };