@calcom/atoms 1.0.97-beta-1 → 1.0.97-beta-3

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 (103) hide show
  1. package/dist/{AddressInput-MxFRI9cW.js → AddressInput-LPJtHhnk.js} +9 -8
  2. package/dist/{AlbyPriceComponent-B7reGN3c.js → AlbyPriceComponent-VO8iEUWb.js} +53 -52
  3. package/dist/AppCard-cTyZ7qdO.js +162 -0
  4. package/dist/AppListCardPlatformWrapper-ErlT9yQV.js +9 -0
  5. package/dist/{AppListCardWebWrapper-3ZmWWW_L.js → AppListCardWebWrapper-nLRKr-Qu.js} +10 -9
  6. package/dist/AppSettingsInterface-1iuEhZRw.js +23 -0
  7. package/dist/AppSettingsInterface-9nYzo3Ef.js +29 -0
  8. package/dist/AppSettingsInterface-Y7iloRRd.js +75 -0
  9. package/dist/{DateRangePicker-GTmIREkF.js → DateRangePicker-zh9gM3ld.js} +784 -783
  10. package/dist/EventTypeAppCardInterface-0tcE4MHz.js +32 -0
  11. package/dist/EventTypeAppCardInterface-2xzo_8rb.js +453 -0
  12. package/dist/EventTypeAppCardInterface-3xv7ZK_G.js +41 -0
  13. package/dist/{EventTypeAppCardInterface-h1_dvQG9.js → EventTypeAppCardInterface-4dkcilsD.js} +17 -16
  14. package/dist/EventTypeAppCardInterface-A7WN14Mn.js +34 -0
  15. package/dist/EventTypeAppCardInterface-BbJv67UJ.js +49 -0
  16. package/dist/EventTypeAppCardInterface-D42_2WwA.js +42 -0
  17. package/dist/EventTypeAppCardInterface-F9zy0_KX.js +24 -0
  18. package/dist/EventTypeAppCardInterface-LB9yguQb.js +39 -0
  19. package/dist/EventTypeAppCardInterface-PGX33FFN.js +42 -0
  20. package/dist/EventTypeAppCardInterface-PaCD78C8.js +33 -0
  21. package/dist/EventTypeAppCardInterface-QiaQ-GmU.js +51 -0
  22. package/dist/EventTypeAppCardInterface-S5bK4a_4.js +24 -0
  23. package/dist/EventTypeAppCardInterface-SXV5NhVT.js +24 -0
  24. package/dist/EventTypeAppCardInterface-SdCRwS0b.js +34 -0
  25. package/dist/EventTypeAppCardInterface-TV1GspR-.js +41 -0
  26. package/dist/EventTypeAppCardInterface-WrBEdjss.js +86 -0
  27. package/dist/EventTypeAppCardInterface-Xl60vAW7.js +34 -0
  28. package/dist/EventTypeAppCardInterface-bY6zHj23.js +34 -0
  29. package/dist/EventTypeAppCardInterface-bpyx9DoB.js +34 -0
  30. package/dist/EventTypeAppCardInterface-dSD0TA4p.js +34 -0
  31. package/dist/EventTypeAppCardInterface-hulmgxtc.js +24 -0
  32. package/dist/EventTypeAppCardInterface-n8fugRqn.js +32 -0
  33. package/dist/EventTypeAppCardInterface-qqnnC5vq.js +24 -0
  34. package/dist/EventTypeAppCardInterface-rVMclz_u.js +34 -0
  35. package/dist/EventTypeAppCardInterface-zXewU-bg.js +31 -0
  36. package/dist/EventTypeAppSettingsInterface-2oHFXxC0.js +221 -0
  37. package/dist/{EventTypeAppSettingsInterface-cXn8l171.js → EventTypeAppSettingsInterface-5hQr6WTa.js} +7 -6
  38. package/dist/{EventTypeAppSettingsInterface-9raltJka.js → EventTypeAppSettingsInterface-CwuQI4XA.js} +39 -38
  39. package/dist/EventTypeAppSettingsInterface-HGPywPcZ.js +43 -0
  40. package/dist/EventTypeAppSettingsInterface-MLox-zIr.js +78 -0
  41. package/dist/EventTypeAppSettingsInterface-azMpYm3v.js +48 -0
  42. package/dist/{EventTypeAppSettingsInterface-Hre_gkKY.js → EventTypeAppSettingsInterface-ccBCyO4S.js} +6 -5
  43. package/dist/EventTypeAppSettingsInterface-jCOnJXVq.js +42 -0
  44. package/dist/EventTypeAppSettingsInterface-rUp-tPsO.js +72 -0
  45. package/dist/{EventTypeAppSettingsInterface-2wY9yPcf.js → EventTypeAppSettingsInterface-sOLaF1pR.js} +6 -5
  46. package/dist/{EventTypeAppSettingsInterface-eKcoM9Xa.js → EventTypeAppSettingsInterface-v8a7XnIr.js} +6 -5
  47. package/dist/{EventTypeAppSettingsInterface-Fn4VS9pl.js → EventTypeAppSettingsInterface-xlYsU6Vi.js} +72 -71
  48. package/dist/InstallAppButton-34JAPxwK.js +14 -0
  49. package/dist/{InstallAppButton-Ho1cJkMm.js → InstallAppButton-JXhBVaYJ.js} +8 -8
  50. package/dist/InstallAppButton-ihX89_K4.js +58 -0
  51. package/dist/InstallAppButton-zjD9dbE7.js +14 -0
  52. package/dist/{PhoneInput-DNq9V1s5.js → PhoneInput-saKL4loW.js} +97 -96
  53. package/dist/{StripePaymentForm-lGjXjqLX.js → StripePaymentForm-dfxxUj2E.js} +100 -99
  54. package/dist/cal-atoms.js +6 -6
  55. package/dist/{framer-features--8Hvyv45.js → framer-features-K_TB52kd.js} +11 -11
  56. package/dist/{index-fsA0kHyy.js → index-81plgMPe.js} +1 -1
  57. package/dist/{index-cfay3a2W.js → index-IPz9Apiv.js} +1 -1
  58. package/dist/{index-Bj_kD41n.js → index-engsJK56.js} +108 -107
  59. package/dist/{index-OYPUcfnB.js → index-ite7gJ1a.js} +2 -2
  60. package/dist/{index-M6WUZF2M.js → index-ykl8OQ78.js} +66312 -66946
  61. package/dist/{isSupportedCountry-aizVo7Oo.js → isSupportedCountry-RPoEk3Bi.js} +1 -1
  62. package/dist/{useIsAppEnabled-OmKRsE8Z.js → useIsAppEnabled-jQTpW-EN.js} +1 -1
  63. package/globals.min.css +22 -2
  64. package/package.json +1 -1
  65. package/dist/AppCard-ImfOuDL_.js +0 -161
  66. package/dist/AppListCardPlatformWrapper-Kgk0fNGU.js +0 -8
  67. package/dist/AppSettingsInterface-4JMt22o1.js +0 -22
  68. package/dist/AppSettingsInterface-8TqZVnNL.js +0 -74
  69. package/dist/AppSettingsInterface-MQ_fkHJx.js +0 -28
  70. package/dist/EventTypeAppCardInterface-0O_KGHxp.js +0 -40
  71. package/dist/EventTypeAppCardInterface-0Z1NiGs_.js +0 -23
  72. package/dist/EventTypeAppCardInterface-0bkDiimc.js +0 -33
  73. package/dist/EventTypeAppCardInterface-4bmGNjTO.js +0 -452
  74. package/dist/EventTypeAppCardInterface-6Hs2WiRN.js +0 -23
  75. package/dist/EventTypeAppCardInterface-6QhUsfck.js +0 -38
  76. package/dist/EventTypeAppCardInterface-CSZJxMAi.js +0 -48
  77. package/dist/EventTypeAppCardInterface-D5NE1JH-.js +0 -33
  78. package/dist/EventTypeAppCardInterface-GpzdxrTy.js +0 -41
  79. package/dist/EventTypeAppCardInterface-HDqpiB_E.js +0 -33
  80. package/dist/EventTypeAppCardInterface-IsJt3HGB.js +0 -30
  81. package/dist/EventTypeAppCardInterface-K_hBnKz2.js +0 -23
  82. package/dist/EventTypeAppCardInterface-QuKynjTF.js +0 -23
  83. package/dist/EventTypeAppCardInterface-Uk-367hU.js +0 -33
  84. package/dist/EventTypeAppCardInterface-UrOLCYHp.js +0 -31
  85. package/dist/EventTypeAppCardInterface-WhX3MQGL.js +0 -33
  86. package/dist/EventTypeAppCardInterface-_a5TsCGC.js +0 -41
  87. package/dist/EventTypeAppCardInterface-_e0oMnpF.js +0 -33
  88. package/dist/EventTypeAppCardInterface-bfOpI-Cg.js +0 -23
  89. package/dist/EventTypeAppCardInterface-dQBcQRe5.js +0 -85
  90. package/dist/EventTypeAppCardInterface-jDIOSF5p.js +0 -31
  91. package/dist/EventTypeAppCardInterface-pgZqPYuy.js +0 -40
  92. package/dist/EventTypeAppCardInterface-rJaUyBaK.js +0 -32
  93. package/dist/EventTypeAppCardInterface-sAMfJ4Zp.js +0 -50
  94. package/dist/EventTypeAppCardInterface-xkCoWuR1.js +0 -33
  95. package/dist/EventTypeAppSettingsInterface-0MtsVqm9.js +0 -71
  96. package/dist/EventTypeAppSettingsInterface-4AylQiBj.js +0 -47
  97. package/dist/EventTypeAppSettingsInterface-Br_BvYU4.js +0 -77
  98. package/dist/EventTypeAppSettingsInterface-CkbhDi5X.js +0 -42
  99. package/dist/EventTypeAppSettingsInterface-nwSw369C.js +0 -220
  100. package/dist/EventTypeAppSettingsInterface-x-GvtrwY.js +0 -41
  101. package/dist/InstallAppButton-7AfVFA1y.js +0 -13
  102. package/dist/InstallAppButton-PfrQUF7k.js +0 -13
  103. package/dist/InstallAppButton-R3hBMMGj.js +0 -57
@@ -0,0 +1,42 @@
1
+ import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
+ import { k as s } from "./index-ykl8OQ78.js";
3
+ const p = ({
4
+ getAppData: a,
5
+ setAppData: t,
6
+ disabled: l,
7
+ slug: r
8
+ }) => {
9
+ const n = a("PLAUSIBLE_URL"), o = a("trackingId");
10
+ return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
11
+ /* @__PURE__ */ i(
12
+ s,
13
+ {
14
+ dataTestid: `${r}-url`,
15
+ name: "Plausible URL",
16
+ defaultValue: "https://plausible.io/js/script.js",
17
+ placeholder: "https://plausible.io/js/script.js",
18
+ value: n,
19
+ disabled: l,
20
+ onChange: (e) => {
21
+ t("PLAUSIBLE_URL", e.target.value);
22
+ }
23
+ }
24
+ ),
25
+ /* @__PURE__ */ i(
26
+ s,
27
+ {
28
+ dataTestid: `${r}-tracking-id`,
29
+ disabled: l,
30
+ name: "Tracked Domain",
31
+ placeholder: "yourdomain.com",
32
+ value: o,
33
+ onChange: (e) => {
34
+ t("trackingId", e.target.value);
35
+ }
36
+ }
37
+ )
38
+ ] });
39
+ };
40
+ export {
41
+ p as default
42
+ };
@@ -0,0 +1,72 @@
1
+ import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
2
+ import { useState as N, useEffect as w } from "react";
3
+ import { y as _, a9 as t, N as g, k as C, a5 as P, S as p } from "./index-ykl8OQ78.js";
4
+ const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
5
+ eventType: b,
6
+ getAppData: s,
7
+ setAppData: a
8
+ }) => {
9
+ var v, h;
10
+ const { t: n } = _(), i = s("price"), c = s("currency"), [r, S] = N(
11
+ d.find((e) => e.value === c) || d[0]
12
+ ), f = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => f === e.value)) || {
13
+ label: t[0].label,
14
+ value: t[0].value
15
+ }, y = !!b.seatsPerTimeSlot, [m] = N(s("enabled")), O = ((h = b.recurringEvent) == null ? void 0 : h.count) !== void 0;
16
+ return w(() => {
17
+ !c && m && a("currency", r.value);
18
+ }, [c, r, a, m]), /* @__PURE__ */ l(x, { children: O ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
19
+ /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
20
+ C,
21
+ {
22
+ label: "Price",
23
+ labelSrOnly: !0,
24
+ addOnLeading: /* @__PURE__ */ l(P, { className: "h-4 w-4" }),
25
+ addOnSuffix: r.unit || r.value,
26
+ type: "number",
27
+ required: !0,
28
+ className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
29
+ placeholder: "Price",
30
+ onChange: (e) => {
31
+ a("price", Number(e.target.value)), c && a("currency", c);
32
+ },
33
+ value: i && i > 0 ? i : void 0
34
+ }
35
+ ) }),
36
+ /* @__PURE__ */ o("div", { className: "mt-5 w-60", children: [
37
+ /* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
38
+ /* @__PURE__ */ l(
39
+ p,
40
+ {
41
+ variant: "default",
42
+ options: d,
43
+ value: r,
44
+ className: "text-black",
45
+ defaultValue: r,
46
+ onChange: (e) => {
47
+ e && (S(e), a("currency", e.value));
48
+ }
49
+ }
50
+ )
51
+ ] }),
52
+ /* @__PURE__ */ o("div", { className: "mt-2 w-60", children: [
53
+ /* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
54
+ /* @__PURE__ */ l(
55
+ p,
56
+ {
57
+ defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
58
+ options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
59
+ onChange: (e) => {
60
+ e && a("paymentOption", e.value);
61
+ },
62
+ className: "mb-1 h-[38px] w-full",
63
+ isDisabled: y
64
+ }
65
+ )
66
+ ] }),
67
+ y && f === "HOLD" && /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
68
+ ] }) });
69
+ };
70
+ export {
71
+ T as default
72
+ };
@@ -1,12 +1,13 @@
1
- import { x as s, k as i } from "./index-M6WUZF2M.js";
2
- const x = ({
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { k as o } from "./index-ykl8OQ78.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__ */ s.jsx(
9
- i,
9
+ return /* @__PURE__ */ i(
10
+ o,
10
11
  {
11
12
  name: "Pixel ID",
12
13
  value: n,
@@ -18,5 +19,5 @@ const x = ({
18
19
  );
19
20
  };
20
21
  export {
21
- x as default
22
+ p as default
22
23
  };
@@ -1,12 +1,13 @@
1
- import { x as i, k as s } from "./index-M6WUZF2M.js";
2
- const c = ({
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { k as g } from "./index-ykl8OQ78.js";
3
+ const o = ({
3
4
  getAppData: t,
4
5
  setAppData: a,
5
6
  disabled: e
6
7
  }) => {
7
8
  const n = t("trackingId");
8
- return /* @__PURE__ */ i.jsx(
9
- s,
9
+ return /* @__PURE__ */ i(
10
+ g,
10
11
  {
11
12
  name: "Tracking ID",
12
13
  "data-testid": "gtm-tracking-id-input",
@@ -19,5 +20,5 @@ const c = ({
19
20
  );
20
21
  };
21
22
  export {
22
- c as default
23
+ o as default
23
24
  };
@@ -1,6 +1,7 @@
1
- import { ab as b, z as D, ac as u, x as l, O as S, k as C, X as R, Y as M, S as m, ad as L, ae as k, _ as P, af as T, ag as F } from "./index-M6WUZF2M.js";
2
- import { useState as O, useEffect as E } from "react";
3
- const i = [
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-ykl8OQ78.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
- ], G = ({
139
+ ], V = ({
139
140
  getAppData: r,
140
141
  setAppData: e,
141
- disabled: s,
142
- eventType: f
142
+ disabled: b,
143
+ eventType: h
143
144
  }) => {
144
- var N;
145
- const y = r("price"), d = r("currency") || i[0].value, [o, w] = O(
146
- i.find((a) => a.value === d) || {
147
- label: i[0].label,
148
- value: i[0].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
- ), t = r("paymentOption"), v = b.find((a) => t === a.value), c = r("enabled"), g = () => p.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = D(), h = ((N = f.recurringEvent) == null ? void 0 : N.count) !== void 0, x = !!f.seatsPerTimeSlot, j = (a, B) => 0 .toLocaleString(a, {
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: B,
153
+ currency: M,
153
154
  minimumFractionDigits: 0,
154
155
  maximumFractionDigits: 0
155
156
  }).replace(/\d/g, "").trim();
156
- E(() => {
157
- c && (r("currency") || e("currency", i[0].value), r("paymentOption") || e("paymentOption", b[0].value)), r("refundPolicy") || e("refundPolicy", u.NEVER);
158
- }, [c, r, e]);
159
- const p = [
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__ */ l.jsxs(l.Fragment, { children: [
164
- h && /* @__PURE__ */ l.jsx(S, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }),
165
- !h && c && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
166
- /* @__PURE__ */ l.jsx("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ l.jsx(
167
- C,
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.jsx(l.Fragment, { children: o.value ? j("en", o.value) : "" }),
173
- addOnSuffix: d.toUpperCase(),
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: s,
181
+ disabled: b,
181
182
  onChange: (a) => {
182
- e("price", R(Number(a.target.value), d));
183
+ e("price", T(Number(a.target.value), o));
183
184
  },
184
- value: y > 0 ? M(y, d) : void 0
185
+ value: g > 0 ? O(g, o) : void 0
185
186
  }
186
187
  ) }),
187
- /* @__PURE__ */ l.jsxs("div", { className: "mt-5 w-60", children: [
188
- /* @__PURE__ */ l.jsx("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
189
- /* @__PURE__ */ l.jsx(
190
- m,
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: i,
195
+ options: s,
195
196
  innerClassNames: {
196
197
  input: "stripe-currency-input"
197
198
  },
198
- value: o,
199
+ value: t,
199
200
  className: "text-black",
200
- defaultValue: o,
201
+ defaultValue: t,
201
202
  onChange: (a) => {
202
- a && (w(a), e("currency", a.value));
203
+ a && (D(a), e("currency", a.value));
203
204
  }
204
205
  }
205
206
  )
206
207
  ] }),
207
- /* @__PURE__ */ l.jsxs("div", { className: "mt-4 w-60", children: [
208
- /* @__PURE__ */ l.jsx("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("payment_option") }),
209
- /* @__PURE__ */ l.jsx(
210
- m,
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: v ? { ...v, label: n(v.label) } : { ...b[0], label: n(b[0].label) },
214
- options: b.map((a) => ({ ...a, label: n(a.label) || a.label })),
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", u.NEVER), e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0)));
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: x || s
220
+ isDisabled: S || b
220
221
  }
221
222
  )
222
223
  ] }),
223
- x && t === "HOLD" && /* @__PURE__ */ l.jsx(S, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") }),
224
- t !== "HOLD" && /* @__PURE__ */ l.jsxs("div", { className: "mt-4 w-full", children: [
225
- /* @__PURE__ */ l.jsx("label", { className: "text-default mb-1 block text-sm font-medium", children: n("refund_policy") }),
226
- /* @__PURE__ */ l.jsxs(
227
- L,
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: s || t === "HOLD",
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 !== u.DAYS && (e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0));
235
+ e("refundPolicy", a), a !== i.DAYS && (e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0));
235
236
  },
236
237
  children: [
237
- /* @__PURE__ */ l.jsx(k, { className: "w-fit", value: u.ALWAYS, label: n("always"), id: "always" }),
238
- /* @__PURE__ */ l.jsx(k, { className: "w-fit", value: u.NEVER, label: n("never"), id: "never" }),
239
- /* @__PURE__ */ l.jsxs("div", { className: P("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
240
- /* @__PURE__ */ l.jsx(
241
- T,
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.jsx(F, { 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
+ 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__ */ l.jsxs("div", { className: "flex items-center", children: [
250
- /* @__PURE__ */ l.jsxs("span", { className: "me-2 ms-2", children: [
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.jsx(
255
- C,
255
+ /* @__PURE__ */ l(
256
+ w,
256
257
  {
257
258
  labelSrOnly: !0,
258
259
  type: "number",
259
- className: P(
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: s,
264
+ disabled: b,
264
265
  min: 0,
265
266
  defaultValue: r("refundDaysCount"),
266
- required: r("refundPolicy") === u.DAYS,
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.jsx(
272
- m,
272
+ /* @__PURE__ */ l(
273
+ y,
273
274
  {
274
- options: p,
275
+ options: C,
275
276
  isSearchable: !1,
276
- isDisabled: s,
277
+ isDisabled: b,
277
278
  onChange: (a) => e("refundCountCalendarDays", (a == null ? void 0 : a.value) === 1),
278
- value: g(),
279
- defaultValue: g()
279
+ value: p(),
280
+ defaultValue: p()
280
281
  }
281
282
  ),
282
- /* @__PURE__ */ l.jsxs("span", { className: "me-2 ms-2", children: [
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
- G as default
297
+ V as default
297
298
  };
@@ -0,0 +1,14 @@
1
+ import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
+ import { x as o } from "./index-ykl8OQ78.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,7 +1,7 @@
1
- import { x as n } from "./index-M6WUZF2M.js";
1
+ import { jsx as i, Fragment as a } from "react/jsx-runtime";
2
2
  import { useState as s } from "react";
3
- function c(o) {
4
- const r = async () => {
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
- }, [i, e] = s(!1);
16
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: o.render({
15
+ }, [r, e] = s(!1);
16
+ return /* @__PURE__ */ i(a, { children: n.render({
17
17
  onClick() {
18
- e(!0), r().then((t) => {
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: i
24
+ loading: r
25
25
  }) });
26
26
  }
27
27
  export {
28
- c as default
28
+ f as default
29
29
  };
@@ -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-ykl8OQ78.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
+ };
@@ -0,0 +1,14 @@
1
+ import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
+ import { x as o } from "./index-ykl8OQ78.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
+ };