@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
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { V as n, z as P, x as l, O as p, k as g, X as w, Y as _, S as h } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as m, useEffect as k } from "react";
|
|
3
|
-
import { c as i, i as E, a as S } from "./currencyOptions-kannG2hu.js";
|
|
4
|
-
const L = ({
|
|
5
|
-
getAppData: t,
|
|
6
|
-
setAppData: r,
|
|
7
|
-
eventType: o
|
|
8
|
-
}) => {
|
|
9
|
-
var v, x;
|
|
10
|
-
const d = t("price"), a = t("currency") || i[0].value, [c, O] = m(i.find((e) => e.value === a)), [j, N] = m(
|
|
11
|
-
E(a) ? S[a] : ""
|
|
12
|
-
), y = t("paymentOption"), u = ((v = n) == null ? void 0 : v.find((e) => y === e.value)) || {
|
|
13
|
-
label: n[0].label,
|
|
14
|
-
value: n[0].value
|
|
15
|
-
}, f = !!o.seatsPerTimeSlot, [b, F] = m(t("enabled")), { t: s } = P(), C = ((x = o.recurringEvent) == null ? void 0 : x.count) !== void 0;
|
|
16
|
-
return k(() => {
|
|
17
|
-
b && (t("currency") || r("currency", i[0].value), t("paymentOption") || r("paymentOption", n[0].value));
|
|
18
|
-
}, []), C ? /* @__PURE__ */ l.jsx(p, { className: "mt-2", severity: "warning", title: s("warning_recurring_event_payment") }) : b ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ l.jsx("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l.jsx(
|
|
20
|
-
g,
|
|
21
|
-
{
|
|
22
|
-
label: "Price",
|
|
23
|
-
labelSrOnly: !0,
|
|
24
|
-
addOnLeading: j,
|
|
25
|
-
addOnSuffix: a,
|
|
26
|
-
step: "0.01",
|
|
27
|
-
min: "0.5",
|
|
28
|
-
type: "number",
|
|
29
|
-
required: !0,
|
|
30
|
-
className: "block w-full rounded-sm pl-2 text-sm",
|
|
31
|
-
placeholder: "Price",
|
|
32
|
-
"data-testid": "paypal-price-input",
|
|
33
|
-
onChange: (e) => {
|
|
34
|
-
r("price", w(Number(e.target.value), a)), c && r("currency", c.value);
|
|
35
|
-
},
|
|
36
|
-
value: d > 0 ? _(d, a) : void 0
|
|
37
|
-
}
|
|
38
|
-
) }),
|
|
39
|
-
/* @__PURE__ */ l.jsxs("div", { className: "mt-5 w-60", children: [
|
|
40
|
-
/* @__PURE__ */ l.jsx("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: s("currency") }),
|
|
41
|
-
/* @__PURE__ */ l.jsx(
|
|
42
|
-
h,
|
|
43
|
-
{
|
|
44
|
-
variant: "default",
|
|
45
|
-
"data-testid": "paypal-currency-select",
|
|
46
|
-
options: i,
|
|
47
|
-
value: c,
|
|
48
|
-
className: "text-black",
|
|
49
|
-
defaultValue: c,
|
|
50
|
-
onChange: (e) => {
|
|
51
|
-
e && (O(e), N(S[e.value]), r("currency", e.value));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ l.jsxs("div", { className: "mt-4 w-60", children: [
|
|
57
|
-
/* @__PURE__ */ l.jsx("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
58
|
-
/* @__PURE__ */ l.jsx(
|
|
59
|
-
h,
|
|
60
|
-
{
|
|
61
|
-
"data-testid": "paypal-payment-option-select",
|
|
62
|
-
defaultValue: u ? { ...u, label: s(u.label) } : { ...n[0], label: s(n[0].label) },
|
|
63
|
-
options: n.map((e) => ({ ...e, label: s(e.label) || e.label })),
|
|
64
|
-
onChange: (e) => {
|
|
65
|
-
e && r("paymentOption", e.value);
|
|
66
|
-
},
|
|
67
|
-
className: "mb-1 h-[38px] w-full",
|
|
68
|
-
isDisabled: f
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
] }),
|
|
72
|
-
f && y === "HOLD" && /* @__PURE__ */ l.jsx(p, { className: "mt-2", severity: "warning", title: s("seats_and_no_show_fee_error") })
|
|
73
|
-
] }) : null;
|
|
74
|
-
};
|
|
75
|
-
export {
|
|
76
|
-
L as default
|
|
77
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { z as x, x as e, k as u, Z as f, _ as p } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as h } from "react";
|
|
3
|
-
const g = ({ eventType: n, disabled: o }) => {
|
|
4
|
-
const { t: d } = x(), [t, i] = h(""), c = t !== "" ? `?${t}` : "", s = n.URL + c;
|
|
5
|
-
function r({ size: a, data: m }) {
|
|
6
|
-
const l = `https://api.qrserver.com/v1/create-qr-code/?size=${a}&data=${m}`;
|
|
7
|
-
return /* @__PURE__ */ e.jsx(f, { content: s, children: /* @__PURE__ */ e.jsx("a", { download: !0, href: l, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e.jsx(
|
|
8
|
-
"img",
|
|
9
|
-
{
|
|
10
|
-
className: p(
|
|
11
|
-
"hover:bg-muted border-default border transition hover:shadow-sm",
|
|
12
|
-
a >= 256 && "min-h-32"
|
|
13
|
-
),
|
|
14
|
-
style: { padding: a / 16, borderRadius: a / 20 },
|
|
15
|
-
width: a,
|
|
16
|
-
src: l,
|
|
17
|
-
alt: s
|
|
18
|
-
}
|
|
19
|
-
) }) });
|
|
20
|
-
}
|
|
21
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-5 text-sm", children: [
|
|
22
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ e.jsx(
|
|
23
|
-
u,
|
|
24
|
-
{
|
|
25
|
-
name: "hello",
|
|
26
|
-
disabled: o,
|
|
27
|
-
value: t,
|
|
28
|
-
onChange: (a) => i(a.target.value),
|
|
29
|
-
label: d("additional_url_parameters"),
|
|
30
|
-
containerClassName: "w-full"
|
|
31
|
-
}
|
|
32
|
-
) }),
|
|
33
|
-
/* @__PURE__ */ e.jsxs("div", { className: "max-w-60 flex items-baseline gap-2", children: [
|
|
34
|
-
/* @__PURE__ */ e.jsx(r, { size: 256, data: s }),
|
|
35
|
-
/* @__PURE__ */ e.jsx(r, { size: 128, data: s }),
|
|
36
|
-
/* @__PURE__ */ e.jsx(r, { size: 64, data: s })
|
|
37
|
-
] })
|
|
38
|
-
] });
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
g as default
|
|
42
|
-
};
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { z as C, x as e, ap as G, aq as P, j as M, G as x, _ as w, O as E, ar as T, as as A, a5 as R } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as c } from "react";
|
|
3
|
-
const u = "search", S = "url", z = (t) => {
|
|
4
|
-
const { t: a } = C(), [i, l] = c(""), [f, d] = c(0), [o, j] = c(""), { isOpenDialog: k, setIsOpenDialog: I } = t, [g, y] = c(!1), [b, m] = c(""), [p, O] = c(u), v = async (n, h) => {
|
|
5
|
-
if (g)
|
|
6
|
-
return;
|
|
7
|
-
y(!0), m("");
|
|
8
|
-
const s = await fetch("/api/integrations/giphy/search", {
|
|
9
|
-
method: "POST",
|
|
10
|
-
headers: {
|
|
11
|
-
"Content-Type": "application/json"
|
|
12
|
-
},
|
|
13
|
-
body: JSON.stringify({
|
|
14
|
-
keyword: n,
|
|
15
|
-
offset: h
|
|
16
|
-
})
|
|
17
|
-
}), r = await s.json();
|
|
18
|
-
return s.ok ? (l(r.image || ""), d(r.nextOffset), r.image || m("No Result found")) : m((r == null ? void 0 : r.message) || "Something went wrong"), y(!1), null;
|
|
19
|
-
}, D = async (n) => {
|
|
20
|
-
var r;
|
|
21
|
-
if (g)
|
|
22
|
-
return;
|
|
23
|
-
y(!0), m("");
|
|
24
|
-
const h = await fetch("/api/integrations/giphy/get", {
|
|
25
|
-
method: "POST",
|
|
26
|
-
headers: {
|
|
27
|
-
"Content-Type": "application/json"
|
|
28
|
-
},
|
|
29
|
-
body: JSON.stringify({
|
|
30
|
-
url: n
|
|
31
|
-
})
|
|
32
|
-
}), s = await h.json();
|
|
33
|
-
return h.ok ? (l(s.image || ""), s.image || m("No Result found")) : m((s == null ? void 0 : s.message) || ((r = s == null ? void 0 : s[0]) == null ? void 0 : r.message) || "Something went wrong"), y(!1), null;
|
|
34
|
-
}, N = (n, h, s) => /* @__PURE__ */ e.jsxs(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
className: w(
|
|
38
|
-
"flex cursor-pointer items-center border-b-2 p-2 text-sm ",
|
|
39
|
-
p === s ? "text-default border-emphasis" : "text-subtle border-transparent"
|
|
40
|
-
),
|
|
41
|
-
onClick: () => {
|
|
42
|
-
j(""), l(""), O(s);
|
|
43
|
-
},
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ e.jsx(R, { name: n, className: "h-4 w-4 ltr:mr-2 rtl:ml-2" }),
|
|
46
|
-
h
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
), _ = async (n) => {
|
|
50
|
-
n.stopPropagation(), n.preventDefault(), p === u ? v(o, 0) : p === S && D(o);
|
|
51
|
-
};
|
|
52
|
-
return /* @__PURE__ */ e.jsx(G, { open: k, onOpenChange: I, children: /* @__PURE__ */ e.jsxs(P, { children: [
|
|
53
|
-
/* @__PURE__ */ e.jsx("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
|
|
54
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
|
|
55
|
-
/* @__PURE__ */ e.jsxs("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
|
|
56
|
-
N("search", a("search_giphy"), u),
|
|
57
|
-
N("link", a("add_link_from_giphy"), S)
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ e.jsxs(
|
|
60
|
-
"form",
|
|
61
|
-
{
|
|
62
|
-
className: "flex w-full justify-center space-x-2 space-y-2 rtl:space-x-reverse",
|
|
63
|
-
onSubmit: _,
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ e.jsx("div", { className: "relative block w-full pt-2", children: /* @__PURE__ */ e.jsx(
|
|
66
|
-
M,
|
|
67
|
-
{
|
|
68
|
-
type: "text",
|
|
69
|
-
placeholder: p === u ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
|
|
70
|
-
value: o,
|
|
71
|
-
onChange: (n) => {
|
|
72
|
-
j(n.target.value);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
) }),
|
|
76
|
-
/* @__PURE__ */ e.jsx(x, { type: "submit", tabIndex: -1, color: "secondary", loading: g, children: a("search") })
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
i && /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center space-x-2 space-y-2 pt-3 rtl:space-x-reverse", children: /* @__PURE__ */ e.jsx("div", { className: "bg-subtle flex w-full items-center justify-center", children: g ? /* @__PURE__ */ e.jsx("div", { className: "flex h-[200px] w-full items-center justify-center bg-gray-400 pb-3 pt-3", children: /* @__PURE__ */ e.jsxs(
|
|
81
|
-
"svg",
|
|
82
|
-
{
|
|
83
|
-
className: w("mx-4 h-5 w-5 animate-spin", "text-inverted dark:text-emphasis"),
|
|
84
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
-
fill: "none",
|
|
86
|
-
viewBox: "0 0 24 24",
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ e.jsx(
|
|
89
|
-
"circle",
|
|
90
|
-
{
|
|
91
|
-
className: "opacity-25",
|
|
92
|
-
cx: "12",
|
|
93
|
-
cy: "12",
|
|
94
|
-
r: "10",
|
|
95
|
-
stroke: "currentColor",
|
|
96
|
-
strokeWidth: "4"
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
/* @__PURE__ */ e.jsx(
|
|
100
|
-
"path",
|
|
101
|
-
{
|
|
102
|
-
className: "opacity-75",
|
|
103
|
-
fill: "currentColor",
|
|
104
|
-
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"
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
) }) : /* @__PURE__ */ e.jsx("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${o}` }) }) }),
|
|
110
|
-
b && /* @__PURE__ */ e.jsx(E, { severity: "error", title: b, className: "my-4" }),
|
|
111
|
-
i && p === u && /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
|
|
112
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
|
|
113
|
-
/* @__PURE__ */ e.jsx(
|
|
114
|
-
x,
|
|
115
|
-
{
|
|
116
|
-
size: "sm",
|
|
117
|
-
color: "secondary",
|
|
118
|
-
type: "button",
|
|
119
|
-
loading: g,
|
|
120
|
-
onClick: () => v(o, f),
|
|
121
|
-
children: "Shuffle"
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
] }),
|
|
125
|
-
/* @__PURE__ */ e.jsxs(T, { children: [
|
|
126
|
-
/* @__PURE__ */ e.jsx(
|
|
127
|
-
A,
|
|
128
|
-
{
|
|
129
|
-
color: "minimal",
|
|
130
|
-
tabIndex: -1,
|
|
131
|
-
onClick: () => {
|
|
132
|
-
t.setIsOpenDialog(!1);
|
|
133
|
-
},
|
|
134
|
-
children: a("cancel")
|
|
135
|
-
}
|
|
136
|
-
),
|
|
137
|
-
/* @__PURE__ */ e.jsx(
|
|
138
|
-
x,
|
|
139
|
-
{
|
|
140
|
-
type: "button",
|
|
141
|
-
disabled: !i,
|
|
142
|
-
onClick: () => (t.setIsOpenDialog(!1), t.onSave(i), d(0), l(""), j(""), !1),
|
|
143
|
-
children: a("add_gif")
|
|
144
|
-
}
|
|
145
|
-
)
|
|
146
|
-
] })
|
|
147
|
-
] }) });
|
|
148
|
-
};
|
|
149
|
-
function B(t) {
|
|
150
|
-
const { t: a } = C(), [i, l] = c(t.defaultValue), [f, d] = c(!1);
|
|
151
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-start space-x-2 space-y-2 rtl:space-x-reverse", children: [
|
|
152
|
-
i && /* @__PURE__ */ e.jsx("div", { className: "min-h-[200px]", children: /* @__PURE__ */ e.jsx("img", { alt: "Selected Gif Image", src: i }) }),
|
|
153
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
|
|
154
|
-
i ? /* @__PURE__ */ e.jsx(
|
|
155
|
-
x,
|
|
156
|
-
{
|
|
157
|
-
color: "minimal",
|
|
158
|
-
type: "button",
|
|
159
|
-
StartIcon: "pencil",
|
|
160
|
-
onClick: () => d(!0),
|
|
161
|
-
disabled: t.disabled,
|
|
162
|
-
children: "Change"
|
|
163
|
-
}
|
|
164
|
-
) : /* @__PURE__ */ e.jsx(
|
|
165
|
-
x,
|
|
166
|
-
{
|
|
167
|
-
color: "minimal",
|
|
168
|
-
type: "button",
|
|
169
|
-
StartIcon: "plus",
|
|
170
|
-
onClick: () => d(!0),
|
|
171
|
-
disabled: t.disabled,
|
|
172
|
-
children: "Add from Giphy"
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
i && /* @__PURE__ */ e.jsx(
|
|
176
|
-
x,
|
|
177
|
-
{
|
|
178
|
-
color: "destructive",
|
|
179
|
-
type: "button",
|
|
180
|
-
StartIcon: "x",
|
|
181
|
-
onClick: () => {
|
|
182
|
-
l(""), t.onChange("");
|
|
183
|
-
},
|
|
184
|
-
disabled: t.disabled,
|
|
185
|
-
children: a("remove")
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
] }),
|
|
189
|
-
/* @__PURE__ */ e.jsx(
|
|
190
|
-
z,
|
|
191
|
-
{
|
|
192
|
-
isOpenDialog: f,
|
|
193
|
-
setIsOpenDialog: d,
|
|
194
|
-
onSave: (o) => {
|
|
195
|
-
l(o), t.onChange(o);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
)
|
|
199
|
-
] });
|
|
200
|
-
}
|
|
201
|
-
const Y = ({
|
|
202
|
-
getAppData: t,
|
|
203
|
-
setAppData: a,
|
|
204
|
-
disabled: i
|
|
205
|
-
}) => {
|
|
206
|
-
const l = t("thankYouPage");
|
|
207
|
-
return /* @__PURE__ */ e.jsx(
|
|
208
|
-
B,
|
|
209
|
-
{
|
|
210
|
-
defaultValue: l,
|
|
211
|
-
disabled: i,
|
|
212
|
-
onChange: (f) => {
|
|
213
|
-
a("thankYouPage", f);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
);
|
|
217
|
-
};
|
|
218
|
-
export {
|
|
219
|
-
Y as default
|
|
220
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { x as a, k as r } from "./index-M6WUZF2M.js";
|
|
2
|
-
const d = ({
|
|
3
|
-
getAppData: t,
|
|
4
|
-
setAppData: s,
|
|
5
|
-
disabled: l,
|
|
6
|
-
slug: i
|
|
7
|
-
}) => {
|
|
8
|
-
const n = t("PLAUSIBLE_URL"), o = t("trackingId");
|
|
9
|
-
return /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
10
|
-
/* @__PURE__ */ a.jsx(
|
|
11
|
-
r,
|
|
12
|
-
{
|
|
13
|
-
dataTestid: `${i}-url`,
|
|
14
|
-
name: "Plausible URL",
|
|
15
|
-
defaultValue: "https://plausible.io/js/script.js",
|
|
16
|
-
placeholder: "https://plausible.io/js/script.js",
|
|
17
|
-
value: n,
|
|
18
|
-
disabled: l,
|
|
19
|
-
onChange: (e) => {
|
|
20
|
-
s("PLAUSIBLE_URL", e.target.value);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
),
|
|
24
|
-
/* @__PURE__ */ a.jsx(
|
|
25
|
-
r,
|
|
26
|
-
{
|
|
27
|
-
dataTestid: `${i}-tracking-id`,
|
|
28
|
-
disabled: l,
|
|
29
|
-
name: "Tracked Domain",
|
|
30
|
-
placeholder: "yourdomain.com",
|
|
31
|
-
value: o,
|
|
32
|
-
onChange: (e) => {
|
|
33
|
-
s("trackingId", e.target.value);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
] });
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
d as default
|
|
41
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { y as a, x as t } from "./index-M6WUZF2M.js";
|
|
2
|
-
function r(e) {
|
|
3
|
-
const n = a("exchange2013_calendar");
|
|
4
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e.render({
|
|
5
|
-
onClick() {
|
|
6
|
-
n.mutate("");
|
|
7
|
-
},
|
|
8
|
-
loading: n.isPending
|
|
9
|
-
}) });
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
r as default
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { y as a, x as t } from "./index-M6WUZF2M.js";
|
|
2
|
-
function r(e) {
|
|
3
|
-
const n = a("exchange2016_calendar");
|
|
4
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e.render({
|
|
5
|
-
onClick() {
|
|
6
|
-
n.mutate("");
|
|
7
|
-
},
|
|
8
|
-
loading: n.isPending
|
|
9
|
-
}) });
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
r as default
|
|
13
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { y as l, x as i, au as m, W as p } from "./index-M6WUZF2M.js";
|
|
2
|
-
import { useState as d } from "react";
|
|
3
|
-
var u = /* @__PURE__ */ ((n) => (n.ACCOUNTS_STEP = "accounts", n.EVENT_TYPES_STEP = "event-types", n.CONFIGURE_STEP = "configure", n))(u || {}), a = function(n) {
|
|
4
|
-
switch (typeof n) {
|
|
5
|
-
case "string":
|
|
6
|
-
return n;
|
|
7
|
-
case "boolean":
|
|
8
|
-
return n ? "true" : "false";
|
|
9
|
-
case "number":
|
|
10
|
-
return isFinite(n) ? n : "";
|
|
11
|
-
default:
|
|
12
|
-
return "";
|
|
13
|
-
}
|
|
14
|
-
}, E = function(n, t, e, o) {
|
|
15
|
-
return t = t || "&", e = e || "=", n === null && (n = void 0), typeof n == "object" ? Object.keys(n).map(function(r) {
|
|
16
|
-
var s = encodeURIComponent(a(r)) + e;
|
|
17
|
-
return Array.isArray(n[r]) ? n[r].map(function(f) {
|
|
18
|
-
return s + encodeURIComponent(a(f));
|
|
19
|
-
}).join(t) : s + encodeURIComponent(a(n[r]));
|
|
20
|
-
}).filter(Boolean).join(t) : o ? encodeURIComponent(a(o)) + e + encodeURIComponent(a(n)) : "";
|
|
21
|
-
}, c;
|
|
22
|
-
c = E;
|
|
23
|
-
const y = ({
|
|
24
|
-
slug: n,
|
|
25
|
-
step: t,
|
|
26
|
-
teamId: e
|
|
27
|
-
}) => {
|
|
28
|
-
const o = { slug: n };
|
|
29
|
-
e && (o.teamId = e);
|
|
30
|
-
const r = c(o);
|
|
31
|
-
return `/apps/installation/${t}?${r}`;
|
|
32
|
-
};
|
|
33
|
-
function T(n) {
|
|
34
|
-
const [t, e] = d(!1), o = l(null), r = () => {
|
|
35
|
-
o.mutate({
|
|
36
|
-
type: "office365_video",
|
|
37
|
-
variant: "conferencing",
|
|
38
|
-
slug: "msteams",
|
|
39
|
-
returnTo: p + y({
|
|
40
|
-
slug: "msteams",
|
|
41
|
-
step: u.EVENT_TYPES_STEP
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
46
|
-
n.render({
|
|
47
|
-
onClick() {
|
|
48
|
-
e(!0);
|
|
49
|
-
},
|
|
50
|
-
disabled: t
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ i.jsx(m, { open: t, onOpenChange: e, handleSubmit: r })
|
|
53
|
-
] });
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
T as default
|
|
57
|
-
};
|