@calcom/atoms 1.0.97-beta-1 → 1.0.97-beta-2
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-MxFRI9cW.js → AddressInput-Vp5Ny4rZ.js} +9 -8
- package/dist/{AlbyPriceComponent-B7reGN3c.js → AlbyPriceComponent-i0xkINen.js} +53 -52
- package/dist/AppCard-9m9p6YSL.js +162 -0
- package/dist/AppListCardPlatformWrapper-6V24t85e.js +9 -0
- package/dist/{AppListCardWebWrapper-3ZmWWW_L.js → AppListCardWebWrapper-iB6tYray.js} +10 -9
- package/dist/AppSettingsInterface-9Bv_J1St.js +23 -0
- package/dist/AppSettingsInterface-HdXxgvUo.js +29 -0
- package/dist/AppSettingsInterface-Z5mD4vz9.js +75 -0
- package/dist/{DateRangePicker-GTmIREkF.js → DateRangePicker-ZPLEXLdF.js} +784 -783
- package/dist/EventTypeAppCardInterface-3A0BLKpG.js +34 -0
- package/dist/EventTypeAppCardInterface-5wb9HPk4.js +86 -0
- package/dist/EventTypeAppCardInterface-9_6R5KQl.js +24 -0
- package/dist/EventTypeAppCardInterface-E9mqlk3L.js +39 -0
- package/dist/EventTypeAppCardInterface-Ez8jijO4.js +42 -0
- package/dist/EventTypeAppCardInterface-HpWHgRBK.js +34 -0
- package/dist/EventTypeAppCardInterface-IN5BDME5.js +49 -0
- package/dist/EventTypeAppCardInterface-J-UrzGuv.js +51 -0
- package/dist/EventTypeAppCardInterface-KTeZawOA.js +34 -0
- package/dist/EventTypeAppCardInterface-NPXzuwrD.js +34 -0
- package/dist/EventTypeAppCardInterface-RWqrIPbF.js +34 -0
- package/dist/EventTypeAppCardInterface-SveyRKGJ.js +33 -0
- package/dist/EventTypeAppCardInterface-W9_JNxow.js +41 -0
- package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-WQmKWesQ.js} +17 -16
- package/dist/EventTypeAppCardInterface-XsjP04H8.js +32 -0
- package/dist/EventTypeAppCardInterface-ZoFvLu0T.js +41 -0
- package/dist/EventTypeAppCardInterface-_pC5hr_u.js +24 -0
- package/dist/EventTypeAppCardInterface-bScBMMgD.js +34 -0
- package/dist/EventTypeAppCardInterface-c4h7EQ2a.js +31 -0
- package/dist/EventTypeAppCardInterface-eXFFG8at.js +24 -0
- package/dist/EventTypeAppCardInterface-ec7t7O8E.js +42 -0
- package/dist/EventTypeAppCardInterface-fXPOexR7.js +24 -0
- package/dist/EventTypeAppCardInterface-o81innc9.js +34 -0
- package/dist/EventTypeAppCardInterface-rULr-Mfj.js +32 -0
- package/dist/EventTypeAppCardInterface-uHpKaOQS.js +453 -0
- package/dist/EventTypeAppCardInterface-wxpzyeqk.js +24 -0
- package/dist/EventTypeAppSettingsInterface-10UpznIO.js +78 -0
- package/dist/EventTypeAppSettingsInterface-3F_4vyUK.js +72 -0
- package/dist/{EventTypeAppSettingsInterface-9raltJka.js → EventTypeAppSettingsInterface-659frs2F.js} +39 -38
- package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-NnKlcbB9.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-P6VrsG5d.js +221 -0
- package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-SsbpYCOY.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-cXn8l171.js → EventTypeAppSettingsInterface-TYPdYPPl.js} +7 -6
- package/dist/EventTypeAppSettingsInterface-XXAdH79U.js +42 -0
- package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-ZKoyhNO9.js} +72 -71
- package/dist/EventTypeAppSettingsInterface-g9gv0z2h.js +48 -0
- package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-jq-VsbFe.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-ubeZQTeO.js +43 -0
- package/dist/InstallAppButton-6P2Fv_oM.js +58 -0
- package/dist/{InstallAppButton-Ho1cJkMm.js → InstallAppButton-JXhBVaYJ.js} +8 -8
- package/dist/InstallAppButton-Ym2oci2C.js +14 -0
- package/dist/InstallAppButton-_dz8RUxd.js +14 -0
- package/dist/{PhoneInput-DNq9V1s5.js → PhoneInput-Af_8DURS.js} +97 -96
- package/dist/{StripePaymentForm-lGjXjqLX.js → StripePaymentForm-B4nw6Pkd.js} +100 -99
- package/dist/cal-atoms.js +6 -6
- package/dist/{framer-features--8Hvyv45.js → framer-features-sahHu1Ou.js} +11 -11
- package/dist/{index-fsA0kHyy.js → index-DcCG9gCb.js} +1 -1
- package/dist/{index-cfay3a2W.js → index-GYjzMn-V.js} +1 -1
- package/dist/{index-Bj_kD41n.js → index-Xu6D4ii2.js} +108 -107
- package/dist/{index-M6WUZF2M.js → index-jTqJooNt.js} +67433 -68186
- package/dist/{index-OYPUcfnB.js → index-xyYlazhP.js} +2 -2
- package/dist/{isSupportedCountry-aizVo7Oo.js → isSupportedCountry-UcFlf7mS.js} +1 -1
- package/dist/{useIsAppEnabled-OmKRsE8Z.js → useIsAppEnabled-1m8rIQ8P.js} +1 -1
- package/package.json +1 -1
- package/dist/AppCard-ImfOuDL_.js +0 -161
- package/dist/AppListCardPlatformWrapper-Kgk0fNGU.js +0 -8
- package/dist/AppSettingsInterface-4JMt22o1.js +0 -22
- package/dist/AppSettingsInterface-8TqZVnNL.js +0 -74
- package/dist/AppSettingsInterface-MQ_fkHJx.js +0 -28
- package/dist/EventTypeAppCardInterface-0O_KGHxp.js +0 -40
- package/dist/EventTypeAppCardInterface-0Z1NiGs_.js +0 -23
- package/dist/EventTypeAppCardInterface-0bkDiimc.js +0 -33
- package/dist/EventTypeAppCardInterface-4bmGNjTO.js +0 -452
- package/dist/EventTypeAppCardInterface-6Hs2WiRN.js +0 -23
- package/dist/EventTypeAppCardInterface-6QhUsfck.js +0 -38
- package/dist/EventTypeAppCardInterface-CSZJxMAi.js +0 -48
- package/dist/EventTypeAppCardInterface-D5NE1JH-.js +0 -33
- package/dist/EventTypeAppCardInterface-GpzdxrTy.js +0 -41
- package/dist/EventTypeAppCardInterface-HDqpiB_E.js +0 -33
- package/dist/EventTypeAppCardInterface-IsJt3HGB.js +0 -30
- package/dist/EventTypeAppCardInterface-K_hBnKz2.js +0 -23
- package/dist/EventTypeAppCardInterface-QuKynjTF.js +0 -23
- package/dist/EventTypeAppCardInterface-Uk-367hU.js +0 -33
- package/dist/EventTypeAppCardInterface-UrOLCYHp.js +0 -31
- package/dist/EventTypeAppCardInterface-WhX3MQGL.js +0 -33
- package/dist/EventTypeAppCardInterface-_a5TsCGC.js +0 -41
- package/dist/EventTypeAppCardInterface-_e0oMnpF.js +0 -33
- package/dist/EventTypeAppCardInterface-bfOpI-Cg.js +0 -23
- package/dist/EventTypeAppCardInterface-dQBcQRe5.js +0 -85
- package/dist/EventTypeAppCardInterface-jDIOSF5p.js +0 -31
- package/dist/EventTypeAppCardInterface-pgZqPYuy.js +0 -40
- package/dist/EventTypeAppCardInterface-rJaUyBaK.js +0 -32
- package/dist/EventTypeAppCardInterface-sAMfJ4Zp.js +0 -50
- package/dist/EventTypeAppCardInterface-xkCoWuR1.js +0 -33
- package/dist/EventTypeAppSettingsInterface-0MtsVqm9.js +0 -71
- package/dist/EventTypeAppSettingsInterface-4AylQiBj.js +0 -47
- package/dist/EventTypeAppSettingsInterface-Br_BvYU4.js +0 -77
- package/dist/EventTypeAppSettingsInterface-CkbhDi5X.js +0 -42
- package/dist/EventTypeAppSettingsInterface-nwSw369C.js +0 -220
- package/dist/EventTypeAppSettingsInterface-x-GvtrwY.js +0 -41
- package/dist/InstallAppButton-7AfVFA1y.js +0 -13
- package/dist/InstallAppButton-PfrQUF7k.js +0 -13
- package/dist/InstallAppButton-R3hBMMGj.js +0 -57
package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-ZKoyhNO9.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { jsxs as u, Fragment as f, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { aa as d, y as L, ab as i, N as P, k as w, V as T, X as O, S as y, ac as E, ad as x, Z as B, ae as F, af as K } from "./index-jTqJooNt.js";
|
|
3
|
+
import { useState as z, useEffect as G } from "react";
|
|
4
|
+
const s = [
|
|
4
5
|
{ label: "United States dollar (USD)", value: "usd" },
|
|
5
6
|
{ label: "United Arab Emirates dirham (AED)", value: "aed" },
|
|
6
7
|
{ label: "Afghan afghani (AFN)", value: "afn" },
|
|
@@ -135,151 +136,151 @@ const i = [
|
|
|
135
136
|
{ label: "Yemeni rial (YER)", value: "yer" },
|
|
136
137
|
{ label: "South African rand (ZAR)", value: "zar" },
|
|
137
138
|
{ label: "Zambian kwacha (ZMW)", value: "zmw" }
|
|
138
|
-
],
|
|
139
|
+
], V = ({
|
|
139
140
|
getAppData: r,
|
|
140
141
|
setAppData: e,
|
|
141
|
-
disabled:
|
|
142
|
-
eventType:
|
|
142
|
+
disabled: b,
|
|
143
|
+
eventType: h
|
|
143
144
|
}) => {
|
|
144
|
-
var
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
label:
|
|
148
|
-
value:
|
|
145
|
+
var k;
|
|
146
|
+
const g = r("price"), o = r("currency") || s[0].value, [t, D] = z(
|
|
147
|
+
s.find((a) => a.value === o) || {
|
|
148
|
+
label: s[0].label,
|
|
149
|
+
value: s[0].value
|
|
149
150
|
}
|
|
150
|
-
),
|
|
151
|
+
), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, R = (a, M) => 0 .toLocaleString(a, {
|
|
151
152
|
style: "currency",
|
|
152
|
-
currency:
|
|
153
|
+
currency: M,
|
|
153
154
|
minimumFractionDigits: 0,
|
|
154
155
|
maximumFractionDigits: 0
|
|
155
156
|
}).replace(/\d/g, "").trim();
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}, [
|
|
159
|
-
const
|
|
157
|
+
G(() => {
|
|
158
|
+
m && (r("currency") || e("currency", s[0].value), r("paymentOption") || e("paymentOption", d[0].value)), r("refundPolicy") || e("refundPolicy", i.NEVER);
|
|
159
|
+
}, [m, r, e]);
|
|
160
|
+
const C = [
|
|
160
161
|
{ value: 0, label: n("business_days") },
|
|
161
162
|
{ value: 1, label: n("calendar_days") }
|
|
162
163
|
];
|
|
163
|
-
return /* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
!
|
|
166
|
-
/* @__PURE__ */ l
|
|
167
|
-
|
|
164
|
+
return /* @__PURE__ */ u(f, { children: [
|
|
165
|
+
N && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }),
|
|
166
|
+
!N && m && /* @__PURE__ */ u(f, { children: [
|
|
167
|
+
/* @__PURE__ */ l("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ l(
|
|
168
|
+
w,
|
|
168
169
|
{
|
|
169
170
|
"data-testid": "stripe-price-input",
|
|
170
171
|
label: n("price"),
|
|
171
172
|
className: "h-[38px]",
|
|
172
|
-
addOnLeading: /* @__PURE__ */ l
|
|
173
|
-
addOnSuffix:
|
|
173
|
+
addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? R("en", t.value) : "" }),
|
|
174
|
+
addOnSuffix: o.toUpperCase(),
|
|
174
175
|
addOnClassname: "h-[38px]",
|
|
175
176
|
step: "0.01",
|
|
176
177
|
min: "0.5",
|
|
177
178
|
type: "number",
|
|
178
179
|
required: !0,
|
|
179
180
|
placeholder: "Price",
|
|
180
|
-
disabled:
|
|
181
|
+
disabled: b,
|
|
181
182
|
onChange: (a) => {
|
|
182
|
-
e("price",
|
|
183
|
+
e("price", T(Number(a.target.value), o));
|
|
183
184
|
},
|
|
184
|
-
value:
|
|
185
|
+
value: g > 0 ? O(g, o) : void 0
|
|
185
186
|
}
|
|
186
187
|
) }),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */ l
|
|
189
|
-
/* @__PURE__ */ l
|
|
190
|
-
|
|
188
|
+
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
189
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
190
|
+
/* @__PURE__ */ l(
|
|
191
|
+
y,
|
|
191
192
|
{
|
|
192
193
|
"data-testid": "stripe-currency-select",
|
|
193
194
|
variant: "default",
|
|
194
|
-
options:
|
|
195
|
+
options: s,
|
|
195
196
|
innerClassNames: {
|
|
196
197
|
input: "stripe-currency-input"
|
|
197
198
|
},
|
|
198
|
-
value:
|
|
199
|
+
value: t,
|
|
199
200
|
className: "text-black",
|
|
200
|
-
defaultValue:
|
|
201
|
+
defaultValue: t,
|
|
201
202
|
onChange: (a) => {
|
|
202
|
-
a && (
|
|
203
|
+
a && (D(a), e("currency", a.value));
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
)
|
|
206
207
|
] }),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */ l
|
|
209
|
-
/* @__PURE__ */ l
|
|
210
|
-
|
|
208
|
+
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
209
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("payment_option") }),
|
|
210
|
+
/* @__PURE__ */ l(
|
|
211
|
+
y,
|
|
211
212
|
{
|
|
212
213
|
"data-testid": "stripe-payment-option-select",
|
|
213
|
-
defaultValue:
|
|
214
|
-
options:
|
|
214
|
+
defaultValue: c ? { ...c, label: n(c.label) } : { ...d[0], label: n(d[0].label) },
|
|
215
|
+
options: d.map((a) => ({ ...a, label: n(a.label) || a.label })),
|
|
215
216
|
onChange: (a) => {
|
|
216
|
-
a && (e("paymentOption", a.value), a.value === "HOLD" && (e("refundPolicy",
|
|
217
|
+
a && (e("paymentOption", a.value), a.value === "HOLD" && (e("refundPolicy", i.NEVER), e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0)));
|
|
217
218
|
},
|
|
218
219
|
className: "mb-1 h-[38px] w-full",
|
|
219
|
-
isDisabled:
|
|
220
|
+
isDisabled: S || b
|
|
220
221
|
}
|
|
221
222
|
)
|
|
222
223
|
] }),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
/* @__PURE__ */ l
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
|
|
224
|
+
S && v === "HOLD" && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") }),
|
|
225
|
+
v !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
|
|
226
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", children: n("refund_policy") }),
|
|
227
|
+
/* @__PURE__ */ u(
|
|
228
|
+
E,
|
|
228
229
|
{
|
|
229
|
-
disabled:
|
|
230
|
+
disabled: b || v === "HOLD",
|
|
230
231
|
defaultValue: "never",
|
|
231
232
|
className: "flex flex-col space-y-2",
|
|
232
233
|
value: r("refundPolicy"),
|
|
233
234
|
onValueChange: (a) => {
|
|
234
|
-
e("refundPolicy", a), a !==
|
|
235
|
+
e("refundPolicy", a), a !== i.DAYS && (e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0));
|
|
235
236
|
},
|
|
236
237
|
children: [
|
|
237
|
-
/* @__PURE__ */ l
|
|
238
|
-
/* @__PURE__ */ l
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */ l
|
|
241
|
-
|
|
238
|
+
/* @__PURE__ */ l(x, { className: "w-fit", value: i.ALWAYS, label: n("always"), id: "always" }),
|
|
239
|
+
/* @__PURE__ */ l(x, { className: "w-fit", value: i.NEVER, label: n("never"), id: "never" }),
|
|
240
|
+
/* @__PURE__ */ u("div", { className: B("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
|
|
241
|
+
/* @__PURE__ */ l(
|
|
242
|
+
F,
|
|
242
243
|
{
|
|
243
244
|
className: "min-w-4 bg-default border-default flex h-4 w-4 cursor-pointer items-center rounded-full border focus:border-2 focus:outline-none ltr:mr-2 rtl:ml-2",
|
|
244
245
|
value: "days",
|
|
245
246
|
id: "days",
|
|
246
|
-
children: /* @__PURE__ */ l
|
|
247
|
+
children: /* @__PURE__ */ l(K, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
|
|
247
248
|
}
|
|
248
249
|
),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ u("div", { className: "flex items-center", children: [
|
|
251
|
+
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
251
252
|
" ",
|
|
252
253
|
n("if_cancelled")
|
|
253
254
|
] }),
|
|
254
|
-
/* @__PURE__ */ l
|
|
255
|
-
|
|
255
|
+
/* @__PURE__ */ l(
|
|
256
|
+
w,
|
|
256
257
|
{
|
|
257
258
|
labelSrOnly: !0,
|
|
258
259
|
type: "number",
|
|
259
|
-
className:
|
|
260
|
+
className: B(
|
|
260
261
|
"border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
|
|
261
262
|
),
|
|
262
263
|
placeholder: "2",
|
|
263
|
-
disabled:
|
|
264
|
+
disabled: b,
|
|
264
265
|
min: 0,
|
|
265
266
|
defaultValue: r("refundDaysCount"),
|
|
266
|
-
required: r("refundPolicy") ===
|
|
267
|
+
required: r("refundPolicy") === i.DAYS,
|
|
267
268
|
value: r("refundDaysCount") ?? "",
|
|
268
269
|
onChange: (a) => e("refundDaysCount", parseInt(a.currentTarget.value))
|
|
269
270
|
}
|
|
270
271
|
),
|
|
271
|
-
/* @__PURE__ */ l
|
|
272
|
-
|
|
272
|
+
/* @__PURE__ */ l(
|
|
273
|
+
y,
|
|
273
274
|
{
|
|
274
|
-
options:
|
|
275
|
+
options: C,
|
|
275
276
|
isSearchable: !1,
|
|
276
|
-
isDisabled:
|
|
277
|
+
isDisabled: b,
|
|
277
278
|
onChange: (a) => e("refundCountCalendarDays", (a == null ? void 0 : a.value) === 1),
|
|
278
|
-
value:
|
|
279
|
-
defaultValue:
|
|
279
|
+
value: p(),
|
|
280
|
+
defaultValue: p()
|
|
280
281
|
}
|
|
281
282
|
),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
283
284
|
" ",
|
|
284
285
|
n("before")
|
|
285
286
|
] })
|
|
@@ -293,5 +294,5 @@ const i = [
|
|
|
293
294
|
] });
|
|
294
295
|
};
|
|
295
296
|
export {
|
|
296
|
-
|
|
297
|
+
V as default
|
|
297
298
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useEffect as v } from "react";
|
|
3
|
+
import { R as p, S as h } from "./index-jTqJooNt.js";
|
|
4
|
+
const S = ({}) => {
|
|
5
|
+
const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
|
|
6
|
+
return v(
|
|
7
|
+
function() {
|
|
8
|
+
var a, i, l;
|
|
9
|
+
r({
|
|
10
|
+
value: e == null ? void 0 : e.projects.currentProject,
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
label: (i = (a = e == null ? void 0 : e.projects) == null ? void 0 : a.find((s) => s.id === (e == null ? void 0 : e.currentProject))) == null ? void 0 : i.name
|
|
13
|
+
}), u(
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
(l = e == null ? void 0 : e.projects) == null ? void 0 : l.map((s) => ({
|
|
16
|
+
value: s.id,
|
|
17
|
+
label: s.name
|
|
18
|
+
}))
|
|
19
|
+
);
|
|
20
|
+
},
|
|
21
|
+
[e]
|
|
22
|
+
), /* @__PURE__ */ o("div", { className: "mt-2 text-sm", children: [
|
|
23
|
+
/* @__PURE__ */ o("div", { className: "flex gap-3", children: [
|
|
24
|
+
/* @__PURE__ */ c("div", { className: "items-center", children: /* @__PURE__ */ c("p", { className: "py-2", children: "Link a Basecamp project to this event:" }) }),
|
|
25
|
+
/* @__PURE__ */ c(
|
|
26
|
+
h,
|
|
27
|
+
{
|
|
28
|
+
placeholder: "Select project",
|
|
29
|
+
options: n,
|
|
30
|
+
isLoading: !n,
|
|
31
|
+
className: "md:min-w-[120px]",
|
|
32
|
+
onChange: (t) => {
|
|
33
|
+
t && (d.mutate({ projectId: t == null ? void 0 : t.value.toString() }), r(t));
|
|
34
|
+
},
|
|
35
|
+
value: f
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ o("div", { className: "mt-2", children: [
|
|
40
|
+
"Please note that as of now you can only link ",
|
|
41
|
+
/* @__PURE__ */ c("span", { className: "italic", children: "one" }),
|
|
42
|
+
" of your projects to cal.com"
|
|
43
|
+
] })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
S as default
|
|
48
|
+
};
|
package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-jq-VsbFe.js}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { k as o } from "./index-jTqJooNt.js";
|
|
3
|
+
const p = ({
|
|
3
4
|
getAppData: t,
|
|
4
5
|
setAppData: e,
|
|
5
6
|
disabled: a
|
|
6
7
|
}) => {
|
|
7
8
|
const n = t("trackingId");
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
o,
|
|
10
11
|
{
|
|
11
12
|
name: "Tracking ID",
|
|
12
13
|
value: n,
|
|
@@ -18,5 +19,5 @@ const g = ({
|
|
|
18
19
|
);
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
p as default
|
|
22
23
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f } from "react";
|
|
3
|
+
import { y as p, k as h, Y as v, Z as x } from "./index-jTqJooNt.js";
|
|
4
|
+
const N = ({ eventType: n, disabled: d }) => {
|
|
5
|
+
const { t: i } = p(), [r, c] = f(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
|
|
6
|
+
function s({ size: a, data: u }) {
|
|
7
|
+
const l = `https://api.qrserver.com/v1/create-qr-code/?size=${a}&data=${u}`;
|
|
8
|
+
return /* @__PURE__ */ e(v, { content: t, children: /* @__PURE__ */ e("a", { download: !0, href: l, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e(
|
|
9
|
+
"img",
|
|
10
|
+
{
|
|
11
|
+
className: x(
|
|
12
|
+
"hover:bg-muted border-default border transition hover:shadow-sm",
|
|
13
|
+
a >= 256 && "min-h-32"
|
|
14
|
+
),
|
|
15
|
+
style: { padding: a / 16, borderRadius: a / 20 },
|
|
16
|
+
width: a,
|
|
17
|
+
src: l,
|
|
18
|
+
alt: t
|
|
19
|
+
}
|
|
20
|
+
) }) });
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-5 text-sm", children: [
|
|
23
|
+
/* @__PURE__ */ e("div", { className: "flex w-full", children: /* @__PURE__ */ e(
|
|
24
|
+
h,
|
|
25
|
+
{
|
|
26
|
+
name: "hello",
|
|
27
|
+
disabled: d,
|
|
28
|
+
value: r,
|
|
29
|
+
onChange: (a) => c(a.target.value),
|
|
30
|
+
label: i("additional_url_parameters"),
|
|
31
|
+
containerClassName: "w-full"
|
|
32
|
+
}
|
|
33
|
+
) }),
|
|
34
|
+
/* @__PURE__ */ o("div", { className: "max-w-60 flex items-baseline gap-2", children: [
|
|
35
|
+
/* @__PURE__ */ e(s, { size: 256, data: t }),
|
|
36
|
+
/* @__PURE__ */ e(s, { size: 128, data: t }),
|
|
37
|
+
/* @__PURE__ */ e(s, { size: 64, data: t })
|
|
38
|
+
] })
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
N as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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, at as E, W as g } from "./index-jTqJooNt.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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as i, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as s } from "react";
|
|
3
|
-
function
|
|
4
|
-
const
|
|
3
|
+
function f(n) {
|
|
4
|
+
const o = async () => {
|
|
5
5
|
const t = await fetch("/api/integrations/vital/token", {
|
|
6
6
|
method: "POST",
|
|
7
7
|
body: JSON.stringify({}),
|
|
@@ -12,18 +12,18 @@ function c(o) {
|
|
|
12
12
|
if (!t.ok)
|
|
13
13
|
throw new Error("Failed to get link token");
|
|
14
14
|
return await t.json();
|
|
15
|
-
}, [
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
}, [r, e] = s(!1);
|
|
16
|
+
return /* @__PURE__ */ i(a, { children: n.render({
|
|
17
17
|
onClick() {
|
|
18
|
-
e(!0),
|
|
18
|
+
e(!0), o().then((t) => {
|
|
19
19
|
e(!1), window.open(`${t.url}&token=${t.token}`, "_self");
|
|
20
20
|
}).catch((t) => {
|
|
21
21
|
e(!1), console.error(t);
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
|
-
loading:
|
|
24
|
+
loading: r
|
|
25
25
|
}) });
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
f as default
|
|
29
29
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { x as o } from "./index-jTqJooNt.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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { x as o } from "./index-jTqJooNt.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
|
+
};
|