@calcom/atoms 1.1.2 → 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.
- package/dist/{AddressInput-cAznNQd3.js → AddressInput-_Diya_zo.js} +3 -3
- package/dist/{AlbyPriceComponent-oZ0IVf6c.js → AlbyPriceComponent-fIgFEUXN.js} +19 -19
- package/dist/{PhoneInput-eRYuhuju.js → PhoneInput-MNv3E3Ho.js} +1 -1
- package/dist/cal-atoms.js +5 -36
- package/dist/index-TYx-qK4G.js +83374 -0
- package/dist/{index-D-baW2SF.js → index-ghibukoV.js} +1 -1
- package/dist/index-mKRiKaF6.js +1957 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.integration-test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.integration-test.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/CreateEventTypeForm.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/setup/EventSetupTab.d.ts.map +1 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -36
- package/dist/packages/platform/atoms/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/fonts/26a46d62cd723877-s.woff2 +0 -0
- package/fonts/55c55f0601d81cf3-s.woff2 +0 -0
- package/fonts/581909926a08bbc8-s.woff2 +0 -0
- package/fonts/6d93bde91c0c2823-s.woff2 +0 -0
- package/fonts/90475aac776488b6-s.p.woff2 +0 -0
- package/fonts/97e0cb1ae144a2a9-s.woff2 +0 -0
- package/fonts/a34f9d1faa5f3315-s.p.woff2 +0 -0
- package/fonts/df0a9ae256c0569c-s.woff2 +0 -0
- package/globals.min.css +2 -2
- package/package.json +3 -2
- package/dist/AppCard-vSAp__lv.js +0 -281
- package/dist/AppListCardPlatformWrapper-gpEo1mhs.js +0 -9
- package/dist/AppListCardWebWrapper-2mtvbrZI.js +0 -74
- package/dist/AppSettingsInterface-76krfbgC.js +0 -29
- package/dist/AppSettingsInterface-U3J8XNfT.js +0 -23
- package/dist/AppSettingsInterface-qR8wrA8Z.js +0 -75
- package/dist/DateRangePicker-S8PasnBw.js +0 -74
- package/dist/EventTypeAppCardInterface--cvud7p5.js +0 -34
- package/dist/EventTypeAppCardInterface-3WyRAq4g.js +0 -858
- package/dist/EventTypeAppCardInterface-5GqOLlXa.js +0 -24
- package/dist/EventTypeAppCardInterface-7BjnHZSW.js +0 -42
- package/dist/EventTypeAppCardInterface-9RRfsmxD.js +0 -41
- package/dist/EventTypeAppCardInterface-AqVT1BoP.js +0 -34
- package/dist/EventTypeAppCardInterface-AzUqjRAw.js +0 -32
- package/dist/EventTypeAppCardInterface-CWeqREZU.js +0 -24
- package/dist/EventTypeAppCardInterface-FoNtZTXA.js +0 -39
- package/dist/EventTypeAppCardInterface-GC7AOQgo.js +0 -34
- package/dist/EventTypeAppCardInterface-HQMqzp7c.js +0 -49
- package/dist/EventTypeAppCardInterface-N7WcmdT4.js +0 -34
- package/dist/EventTypeAppCardInterface-R0X4nckV.js +0 -32
- package/dist/EventTypeAppCardInterface-Uu3O27xa.js +0 -34
- package/dist/EventTypeAppCardInterface-V8atUcK-.js +0 -34
- package/dist/EventTypeAppCardInterface-Y07gIvmX.js +0 -31
- package/dist/EventTypeAppCardInterface-Z-LBRQAn.js +0 -51
- package/dist/EventTypeAppCardInterface-aYTZV5EF.js +0 -41
- package/dist/EventTypeAppCardInterface-bEYxRxeM.js +0 -51
- package/dist/EventTypeAppCardInterface-dKaaMNor.js +0 -86
- package/dist/EventTypeAppCardInterface-lguZWNvV.js +0 -24
- package/dist/EventTypeAppCardInterface-p0blDTaQ.js +0 -24
- package/dist/EventTypeAppCardInterface-rppYuGVz.js +0 -33
- package/dist/EventTypeAppCardInterface-tkKsbhWo.js +0 -39
- package/dist/EventTypeAppCardInterface-utvbMc02.js +0 -42
- package/dist/EventTypeAppCardInterface-wXpCgFPS.js +0 -34
- package/dist/EventTypeAppCardInterface-zGyldaa9.js +0 -24
- package/dist/EventTypeAppSettingsInterface-7hS6GTO2.js +0 -48
- package/dist/EventTypeAppSettingsInterface-FQeyEBxu.js +0 -72
- package/dist/EventTypeAppSettingsInterface-HK0lsJ28.js +0 -42
- package/dist/EventTypeAppSettingsInterface-MG2xFbSG.js +0 -23
- package/dist/EventTypeAppSettingsInterface-Ra9cL5JB.js +0 -25
- package/dist/EventTypeAppSettingsInterface-XL4D2Dyv.js +0 -24
- package/dist/EventTypeAppSettingsInterface-ZIUpW8te.js +0 -78
- package/dist/EventTypeAppSettingsInterface-afhCdPkJ.js +0 -79
- package/dist/EventTypeAppSettingsInterface-bA-Dmxj2.js +0 -298
- package/dist/EventTypeAppSettingsInterface-g5jo9GKH.js +0 -43
- package/dist/EventTypeAppSettingsInterface-sazwK3zk.js +0 -120
- package/dist/EventTypeAppSettingsInterface-sbAmbLiK.js +0 -221
- package/dist/EventTypeAppSettingsInterface-ycOpDd2-.js +0 -23
- package/dist/InstallAppButton-0Gg9ocXb.js +0 -14
- package/dist/InstallAppButton-JHaJ7T7H.js +0 -58
- package/dist/InstallAppButton-JN6i4iBH.js +0 -14
- package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
- package/dist/StripePaymentForm-B1BkBzO9.js +0 -493
- package/dist/currencyOptions-kannG2hu.js +0 -61
- package/dist/index-GkJhe-oj.js +0 -160851
- package/dist/index-V8Hhry6U.js +0 -518
- package/dist/index-l2YMCxIx.js +0 -30
- package/dist/useIsAppEnabled-oIf6wORY.js +0 -18
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d } from "react";
|
|
3
|
-
import { y as I, af as P, ag as j, e as T, u as g, s as k, M as A, ah as E, ai as R, X as z } from "./index-GkJhe-oj.js";
|
|
4
|
-
const x = "search", C = "url", B = (s) => {
|
|
5
|
-
const { t: a } = I(), [i, l] = d(""), [p, m] = d(0), [c, v] = d(""), { isOpenDialog: D, setIsOpenDialog: O } = s, [u, b] = d(!1), [N, h] = d(""), [y, _] = d(x), w = async (n, f) => {
|
|
6
|
-
if (u)
|
|
7
|
-
return;
|
|
8
|
-
b(!0), h("");
|
|
9
|
-
const t = await fetch("/api/integrations/giphy/search", {
|
|
10
|
-
method: "POST",
|
|
11
|
-
headers: {
|
|
12
|
-
"Content-Type": "application/json"
|
|
13
|
-
},
|
|
14
|
-
body: JSON.stringify({
|
|
15
|
-
keyword: n,
|
|
16
|
-
offset: f
|
|
17
|
-
})
|
|
18
|
-
}), r = await t.json();
|
|
19
|
-
return t.ok ? (l(r.image || ""), m(r.nextOffset), r.image || h("No Result found")) : h((r == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
20
|
-
}, G = async (n) => {
|
|
21
|
-
var r;
|
|
22
|
-
if (u)
|
|
23
|
-
return;
|
|
24
|
-
b(!0), h("");
|
|
25
|
-
const f = await fetch("/api/integrations/giphy/get", {
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers: {
|
|
28
|
-
"Content-Type": "application/json"
|
|
29
|
-
},
|
|
30
|
-
body: JSON.stringify({
|
|
31
|
-
url: n
|
|
32
|
-
})
|
|
33
|
-
}), t = await f.json();
|
|
34
|
-
return f.ok ? (l(t.image || ""), t.image || h("No Result found")) : h((t == null ? void 0 : t.message) || ((r = t == null ? void 0 : t[0]) == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
35
|
-
}, S = (n, f, t) => /* @__PURE__ */ o(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
className: k(
|
|
39
|
-
"flex cursor-pointer items-center border-b-2 p-2 text-sm ",
|
|
40
|
-
y === t ? "text-default border-emphasis" : "text-subtle border-transparent"
|
|
41
|
-
),
|
|
42
|
-
onClick: () => {
|
|
43
|
-
v(""), l(""), _(t);
|
|
44
|
-
},
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ e(z, { name: n, className: "h-4 w-4 ltr:mr-2 rtl:ml-2" }),
|
|
47
|
-
f
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
), M = async (n) => {
|
|
51
|
-
n.stopPropagation(), n.preventDefault(), y === x ? w(c, 0) : y === C && G(c);
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ e(P, { open: D, onOpenChange: O, children: /* @__PURE__ */ o(j, { children: [
|
|
54
|
-
/* @__PURE__ */ e("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
|
|
55
|
-
/* @__PURE__ */ e("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
|
|
56
|
-
/* @__PURE__ */ o("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
|
|
57
|
-
S("search", a("search_giphy"), x),
|
|
58
|
-
S("link", a("add_link_from_giphy"), C)
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ o(
|
|
61
|
-
"form",
|
|
62
|
-
{
|
|
63
|
-
className: "flex w-full justify-center space-x-2 space-y-2 rtl:space-x-reverse",
|
|
64
|
-
onSubmit: M,
|
|
65
|
-
children: [
|
|
66
|
-
/* @__PURE__ */ e("div", { className: "relative block w-full pt-2", children: /* @__PURE__ */ e(
|
|
67
|
-
T,
|
|
68
|
-
{
|
|
69
|
-
type: "text",
|
|
70
|
-
placeholder: y === x ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
|
|
71
|
-
value: c,
|
|
72
|
-
onChange: (n) => {
|
|
73
|
-
v(n.target.value);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
) }),
|
|
77
|
-
/* @__PURE__ */ e(g, { type: "submit", tabIndex: -1, color: "secondary", loading: u, children: a("search") })
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
i && /* @__PURE__ */ e("div", { className: "flex flex-col items-center space-x-2 space-y-2 pt-3 rtl:space-x-reverse", children: /* @__PURE__ */ e("div", { className: "bg-subtle flex w-full items-center justify-center", children: u ? /* @__PURE__ */ e("div", { className: "flex h-[200px] w-full items-center justify-center bg-gray-400 pb-3 pt-3", children: /* @__PURE__ */ o(
|
|
82
|
-
"svg",
|
|
83
|
-
{
|
|
84
|
-
className: k("mx-4 h-5 w-5 animate-spin", "text-inverted dark:text-emphasis"),
|
|
85
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
-
fill: "none",
|
|
87
|
-
viewBox: "0 0 24 24",
|
|
88
|
-
children: [
|
|
89
|
-
/* @__PURE__ */ e(
|
|
90
|
-
"circle",
|
|
91
|
-
{
|
|
92
|
-
className: "opacity-25",
|
|
93
|
-
cx: "12",
|
|
94
|
-
cy: "12",
|
|
95
|
-
r: "10",
|
|
96
|
-
stroke: "currentColor",
|
|
97
|
-
strokeWidth: "4"
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
"path",
|
|
102
|
-
{
|
|
103
|
-
className: "opacity-75",
|
|
104
|
-
fill: "currentColor",
|
|
105
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
) }) : /* @__PURE__ */ e("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${c}` }) }) }),
|
|
111
|
-
N && /* @__PURE__ */ e(A, { severity: "error", title: N, className: "my-4" }),
|
|
112
|
-
i && y === x && /* @__PURE__ */ o("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
|
|
113
|
-
/* @__PURE__ */ e("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
g,
|
|
116
|
-
{
|
|
117
|
-
size: "sm",
|
|
118
|
-
color: "secondary",
|
|
119
|
-
type: "button",
|
|
120
|
-
loading: u,
|
|
121
|
-
onClick: () => w(c, p),
|
|
122
|
-
children: "Shuffle"
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] }),
|
|
126
|
-
/* @__PURE__ */ o(E, { noSticky: !0, children: [
|
|
127
|
-
/* @__PURE__ */ e(
|
|
128
|
-
R,
|
|
129
|
-
{
|
|
130
|
-
color: "minimal",
|
|
131
|
-
tabIndex: -1,
|
|
132
|
-
onClick: () => {
|
|
133
|
-
s.setIsOpenDialog(!1);
|
|
134
|
-
},
|
|
135
|
-
children: a("cancel")
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
-
g,
|
|
140
|
-
{
|
|
141
|
-
type: "button",
|
|
142
|
-
disabled: !i,
|
|
143
|
-
onClick: () => (s.setIsOpenDialog(!1), s.onSave(i), m(0), l(""), v(""), !1),
|
|
144
|
-
children: a("add_gif")
|
|
145
|
-
}
|
|
146
|
-
)
|
|
147
|
-
] })
|
|
148
|
-
] }) });
|
|
149
|
-
};
|
|
150
|
-
function F(s) {
|
|
151
|
-
const { t: a } = I(), [i, l] = d(s.defaultValue), [p, m] = d(!1);
|
|
152
|
-
return /* @__PURE__ */ o("div", { className: "flex flex-col items-start space-x-2 space-y-2 rtl:space-x-reverse", children: [
|
|
153
|
-
i && /* @__PURE__ */ e("div", { className: "min-h-[200px]", children: /* @__PURE__ */ e("img", { alt: "Selected Gif Image", src: i }) }),
|
|
154
|
-
/* @__PURE__ */ o("div", { className: "flex", children: [
|
|
155
|
-
i ? /* @__PURE__ */ e(
|
|
156
|
-
g,
|
|
157
|
-
{
|
|
158
|
-
color: "minimal",
|
|
159
|
-
type: "button",
|
|
160
|
-
StartIcon: "pencil",
|
|
161
|
-
onClick: () => m(!0),
|
|
162
|
-
disabled: s.disabled,
|
|
163
|
-
children: "Change"
|
|
164
|
-
}
|
|
165
|
-
) : /* @__PURE__ */ e(
|
|
166
|
-
g,
|
|
167
|
-
{
|
|
168
|
-
color: "minimal",
|
|
169
|
-
type: "button",
|
|
170
|
-
StartIcon: "plus",
|
|
171
|
-
onClick: () => m(!0),
|
|
172
|
-
disabled: s.disabled,
|
|
173
|
-
children: "Add from Giphy"
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
i && /* @__PURE__ */ e(
|
|
177
|
-
g,
|
|
178
|
-
{
|
|
179
|
-
color: "destructive",
|
|
180
|
-
type: "button",
|
|
181
|
-
StartIcon: "x",
|
|
182
|
-
onClick: () => {
|
|
183
|
-
l(""), s.onChange("");
|
|
184
|
-
},
|
|
185
|
-
disabled: s.disabled,
|
|
186
|
-
children: a("remove")
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
] }),
|
|
190
|
-
/* @__PURE__ */ e(
|
|
191
|
-
B,
|
|
192
|
-
{
|
|
193
|
-
isOpenDialog: p,
|
|
194
|
-
setIsOpenDialog: m,
|
|
195
|
-
onSave: (c) => {
|
|
196
|
-
l(c), s.onChange(c);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
] });
|
|
201
|
-
}
|
|
202
|
-
const J = ({
|
|
203
|
-
getAppData: s,
|
|
204
|
-
setAppData: a,
|
|
205
|
-
disabled: i
|
|
206
|
-
}) => {
|
|
207
|
-
const l = s("thankYouPage");
|
|
208
|
-
return /* @__PURE__ */ e(
|
|
209
|
-
F,
|
|
210
|
-
{
|
|
211
|
-
defaultValue: l,
|
|
212
|
-
disabled: i,
|
|
213
|
-
onChange: (p) => {
|
|
214
|
-
a("thankYouPage", p);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
export {
|
|
220
|
-
J as default
|
|
221
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { f as o } from "./index-GkJhe-oj.js";
|
|
3
|
-
const p = ({
|
|
4
|
-
getAppData: t,
|
|
5
|
-
setAppData: e,
|
|
6
|
-
disabled: a
|
|
7
|
-
}) => {
|
|
8
|
-
const n = t("trackingId");
|
|
9
|
-
return /* @__PURE__ */ i(
|
|
10
|
-
o,
|
|
11
|
-
{
|
|
12
|
-
name: "Tracking ID",
|
|
13
|
-
value: n,
|
|
14
|
-
disabled: a,
|
|
15
|
-
onChange: (r) => {
|
|
16
|
-
e("trackingId", r.target.value);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
p as default
|
|
23
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { x as o } from "./index-GkJhe-oj.js";
|
|
3
|
-
function d(t) {
|
|
4
|
-
const n = o("exchange2016_calendar");
|
|
5
|
-
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
|
-
onClick() {
|
|
7
|
-
n.mutate("");
|
|
8
|
-
},
|
|
9
|
-
loading: n.isPending
|
|
10
|
-
}) });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
d as default
|
|
14
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, Fragment as l, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { useState as p } from "react";
|
|
3
|
-
import { x as d, an as E, W as g } from "./index-GkJhe-oj.js";
|
|
4
|
-
var s = /* @__PURE__ */ ((n) => (n.ACCOUNTS_STEP = "accounts", n.EVENT_TYPES_STEP = "event-types", n.CONFIGURE_STEP = "configure", n))(s || {}), i = function(n) {
|
|
5
|
-
switch (typeof n) {
|
|
6
|
-
case "string":
|
|
7
|
-
return n;
|
|
8
|
-
case "boolean":
|
|
9
|
-
return n ? "true" : "false";
|
|
10
|
-
case "number":
|
|
11
|
-
return isFinite(n) ? n : "";
|
|
12
|
-
default:
|
|
13
|
-
return "";
|
|
14
|
-
}
|
|
15
|
-
}, y = function(n, t, e, o) {
|
|
16
|
-
return t = t || "&", e = e || "=", n === null && (n = void 0), typeof n == "object" ? Object.keys(n).map(function(r) {
|
|
17
|
-
var a = encodeURIComponent(i(r)) + e;
|
|
18
|
-
return Array.isArray(n[r]) ? n[r].map(function(c) {
|
|
19
|
-
return a + encodeURIComponent(i(c));
|
|
20
|
-
}).join(t) : a + encodeURIComponent(i(n[r]));
|
|
21
|
-
}).filter(Boolean).join(t) : o ? encodeURIComponent(i(o)) + e + encodeURIComponent(i(n)) : "";
|
|
22
|
-
}, u;
|
|
23
|
-
u = y;
|
|
24
|
-
const C = ({
|
|
25
|
-
slug: n,
|
|
26
|
-
step: t,
|
|
27
|
-
teamId: e
|
|
28
|
-
}) => {
|
|
29
|
-
const o = { slug: n };
|
|
30
|
-
e && (o.teamId = e);
|
|
31
|
-
const r = u(o);
|
|
32
|
-
return `/apps/installation/${t}?${r}`;
|
|
33
|
-
};
|
|
34
|
-
function I(n) {
|
|
35
|
-
const [t, e] = p(!1), o = d(null), r = () => {
|
|
36
|
-
o.mutate({
|
|
37
|
-
type: "office365_video",
|
|
38
|
-
variant: "conferencing",
|
|
39
|
-
slug: "msteams",
|
|
40
|
-
returnTo: g + C({
|
|
41
|
-
slug: "msteams",
|
|
42
|
-
step: s.EVENT_TYPES_STEP
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ f(l, { children: [
|
|
47
|
-
n.render({
|
|
48
|
-
onClick() {
|
|
49
|
-
e(!0);
|
|
50
|
-
},
|
|
51
|
-
disabled: t
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ m(E, { open: t, onOpenChange: e, handleSubmit: r })
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
I as default
|
|
58
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { x as o } from "./index-GkJhe-oj.js";
|
|
3
|
-
function d(t) {
|
|
4
|
-
const n = o("exchange2013_calendar");
|
|
5
|
-
return /* @__PURE__ */ e(a, { children: t.render({
|
|
6
|
-
onClick() {
|
|
7
|
-
n.mutate("");
|
|
8
|
-
},
|
|
9
|
-
loading: n.isPending
|
|
10
|
-
}) });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
d as default
|
|
14
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as i, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as s } from "react";
|
|
3
|
-
function f(n) {
|
|
4
|
-
const o = async () => {
|
|
5
|
-
const t = await fetch("/api/integrations/vital/token", {
|
|
6
|
-
method: "POST",
|
|
7
|
-
body: JSON.stringify({}),
|
|
8
|
-
headers: {
|
|
9
|
-
"Content-Type": "application/json"
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
if (!t.ok)
|
|
13
|
-
throw new Error("Failed to get link token");
|
|
14
|
-
return await t.json();
|
|
15
|
-
}, [r, e] = s(!1);
|
|
16
|
-
return /* @__PURE__ */ i(a, { children: n.render({
|
|
17
|
-
onClick() {
|
|
18
|
-
e(!0), o().then((t) => {
|
|
19
|
-
e(!1), window.open(`${t.url}&token=${t.token}`, "_self");
|
|
20
|
-
}).catch((t) => {
|
|
21
|
-
e(!1), console.error(t);
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
loading: r
|
|
25
|
-
}) });
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
f as default
|
|
29
|
-
};
|