@nylas/react 1.3.6 → 1.4.1
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/add-circle-icon_2.entry-04909861.cjs +1 -0
- package/dist/add-circle-icon_2.entry-0d9ba871.js +26 -0
- package/dist/archive-icon.entry-3d6d9d3f.js +16 -0
- package/dist/archive-icon.entry-88459432.cjs +1 -0
- package/dist/{arrow-icon.entry-9cfd86a1.js → arrow-icon.entry-789ee889.js} +3 -2
- package/dist/arrow-icon.entry-c35e1933.cjs +1 -0
- package/dist/bold-icon.entry-827e95bf.cjs +1 -0
- package/dist/{bold-icon.entry-eab3420d.js → bold-icon.entry-fbb382d2.js} +7 -6
- package/dist/{button-component_2.entry-7cd5f9c0.js → button-component_2.entry-6c012ee4.js} +10 -9
- package/dist/button-component_2.entry-acd13f45.cjs +1 -0
- package/dist/calendar-agenda-fill-icon_36.entry-1bb3b1a8.js +4689 -0
- package/dist/calendar-agenda-fill-icon_36.entry-fa8121df.cjs +6 -0
- package/dist/calendar-cancel-icon.entry-2e97f7d8.cjs +1 -0
- package/dist/{calendar-cancel-icon.entry-299d6fba.js → calendar-cancel-icon.entry-a4d040db.js} +6 -5
- package/dist/{calendar-check-icon_2.entry-08ef8d2f.js → calendar-check-icon_2.entry-a48a358d.js} +12 -11
- package/dist/calendar-check-icon_2.entry-bca4821d.cjs +1 -0
- package/dist/{calendar-icon.entry-53b54115.js → calendar-icon.entry-57727659.js} +6 -5
- package/dist/calendar-icon.entry-a289313a.cjs +1 -0
- package/dist/checkbox-component.entry-af3e7005.cjs +1 -0
- package/dist/checkbox-component.entry-f4f98226.js +43 -0
- package/dist/checkmark-icon_15.entry-dace1b62.cjs +5 -0
- package/dist/checkmark-icon_15.entry-f43549b3.js +1337 -0
- package/dist/chevron-icon_3.entry-219b42e6.cjs +1 -0
- package/dist/chevron-icon_3.entry-25533d13.js +148 -0
- package/dist/clock-icon_4.entry-3917c667.cjs +1 -0
- package/dist/{clock-icon_4.entry-0e809dcb.js → clock-icon_4.entry-76f29f7e.js} +9 -8
- package/dist/{constants-6da0ede7-49c32ba7.js → constants-3d8016e3-3c080f00.js} +110 -41
- package/dist/constants-3d8016e3-fd6c3848.cjs +1 -0
- package/dist/customParseFormat-6c652dbb-8a42d5b0.js +135 -0
- package/dist/customParseFormat-6c652dbb-ba81ab97.cjs +1 -0
- package/dist/{delete-icon.entry-802084f6.js → delete-icon.entry-3b61864e.js} +8 -7
- package/dist/delete-icon.entry-96420b21.cjs +1 -0
- package/dist/{document-refresh-icon.entry-d1604f53.js → document-refresh-icon.entry-7333b7c9.js} +6 -5
- package/dist/document-refresh-icon.entry-8b5c6b9b.cjs +1 -0
- package/dist/elements/index.d.ts +10 -0
- package/dist/{feedbackSync-c040f483-2b6476c4.js → feedbackSync-352aaf4a-b2b83cfa.js} +1 -1
- package/dist/{feedbackSync-c040f483-d6dd0560.cjs → feedbackSync-352aaf4a-ba1bf452.cjs} +1 -1
- package/dist/{folder-icon.entry-6c0c09ed.js → folder-icon.entry-bb5e2452.js} +5 -4
- package/dist/folder-icon.entry-d2e46d3a.cjs +1 -0
- package/dist/forward-icon.entry-1fcf5a6b.cjs +1 -0
- package/dist/forward-icon.entry-af8d2147.js +16 -0
- package/dist/globe-icon_2.entry-b4b55760.cjs +1 -0
- package/dist/globe-icon_2.entry-cc6d9d67.js +200 -0
- package/dist/google-logo-icon_6.entry-aa7b5b42.js +1484 -0
- package/dist/google-logo-icon_6.entry-eefdec63.cjs +2 -0
- package/dist/google-meet-icon_5.entry-9758e527.js +56 -0
- package/dist/google-meet-icon_5.entry-c545537a.cjs +1 -0
- package/dist/inbox-icon.entry-b9640d5a.cjs +1 -0
- package/dist/inbox-icon.entry-c005ebc5.js +16 -0
- package/dist/index-05630f15.cjs +57 -0
- package/dist/index-78390f2e.js +17607 -0
- package/dist/index.d.ts +1 -3
- package/dist/{index.es-2b014ec7-72557487.js → index.es-4a203e8e-cf485db5.js} +818 -804
- package/dist/{index.es-2b014ec7-0589e68a.cjs → index.es-4a203e8e-f668b8c2.cjs} +6 -6
- package/dist/info-icon_2.entry-b17298b6.js +35 -0
- package/dist/info-icon_2.entry-ecbc6605.cjs +1 -0
- package/dist/input-component.entry-24366ab8.cjs +1 -0
- package/dist/input-component.entry-9da5da6c.js +84 -0
- package/dist/input-dropdown_2.entry-0109b06c.cjs +1 -0
- package/dist/input-dropdown_2.entry-d65f7152.js +231 -0
- package/dist/italic-icon.entry-afa4332a.cjs +1 -0
- package/dist/{italic-icon.entry-d610e66f.js → italic-icon.entry-d0a536f2.js} +3 -2
- package/dist/multi-select-dropdown_2.entry-2c7a1a06.cjs +1 -0
- package/dist/multi-select-dropdown_2.entry-c56b5fd2.js +187 -0
- package/dist/notebook-store-b61693cd-0877e7a2.js +14 -0
- package/dist/notebook-store-b61693cd-a7b8ae37.cjs +5 -0
- package/dist/nylas-booked-event-card_12.entry-827c7fb4.cjs +1 -0
- package/dist/nylas-booked-event-card_12.entry-960fdfe2.js +1422 -0
- package/dist/nylas-call-summary.entry-1cce1446.js +16 -0
- package/dist/nylas-call-summary.entry-f10f3c54.cjs +1 -0
- package/dist/nylas-event-calendar_3.entry-8bb08ed3.js +9705 -0
- package/dist/nylas-event-calendar_3.entry-b656237b.cjs +6 -0
- package/dist/nylas-form-card.entry-62578338.cjs +1 -0
- package/dist/nylas-form-card.entry-7455b8f1.js +58 -0
- package/dist/nylas-if-state.entry-0897dc70.cjs +1 -0
- package/dist/{nylas-if-state.entry-ee7d92b0.js → nylas-if-state.entry-7fa6d392.js} +4 -3
- package/dist/nylas-key-points.entry-449e1be0.js +29 -0
- package/dist/nylas-key-points.entry-693f33a1.cjs +1 -0
- package/dist/nylas-login.entry-36544dc8.cjs +1 -0
- package/dist/{nylas-login.entry-265f9d0f.js → nylas-login.entry-d7082306.js} +4 -3
- package/dist/{nylas-provider.entry-5605a3e0.js → nylas-provider.entry-a0e7ce4d.js} +6 -5
- package/dist/nylas-provider.entry-b93d2a62.cjs +1 -0
- package/dist/nylas-scheduler-editor.entry-332d27e0.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-b3e085b3.js → nylas-scheduler-editor.entry-78fe5abf.js} +524 -266
- package/dist/nylas-scheduling.entry-1d80c349.cjs +1 -0
- package/dist/nylas-scheduling.entry-fa9ff55b.js +439 -0
- package/dist/nylas-transcript.entry-570d3abe.cjs +6 -0
- package/dist/nylas-transcript.entry-b129565c.js +128 -0
- package/dist/nylas-video-player.entry-9c7c9792.cjs +1 -0
- package/dist/nylas-video-player.entry-e208d443.js +39 -0
- package/dist/nylas-video-preview.entry-a3f542ad.js +16 -0
- package/dist/nylas-video-preview.entry-bd9bdda7.cjs +1 -0
- package/dist/{person-icon.entry-85660f98.js → person-icon.entry-82fbc43e.js} +8 -7
- package/dist/person-icon.entry-e4d11400.cjs +1 -0
- package/dist/play-icon.entry-68bc660a.js +16 -0
- package/dist/play-icon.entry-9cab598b.cjs +1 -0
- package/dist/radio-button-group.entry-6a2adf11.cjs +1 -0
- package/dist/radio-button-group.entry-f7679911.js +47 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +134 -125
- package/dist/refresh-icon.entry-0f1e5f20.cjs +1 -0
- package/dist/{refresh-icon.entry-d8644f5d.js → refresh-icon.entry-394b0814.js} +6 -5
- package/dist/{register-component-e9c10e19-80bbc4dd.cjs → register-component-1027b769-62812558.cjs} +1 -1
- package/dist/{register-component-e9c10e19-099fb50f.js → register-component-1027b769-dd21b16d.js} +1 -1
- package/dist/{reply-all-icon.entry-f209daeb.js → reply-all-icon.entry-0fad8f2f.js} +5 -4
- package/dist/reply-all-icon.entry-1680f1e5.cjs +1 -0
- package/dist/{reply-icon.entry-d37a129b.js → reply-icon.entry-5f4b7837.js} +5 -4
- package/dist/reply-icon.entry-77342442.cjs +1 -0
- package/dist/scheduler-config-store-d6729d8d-06a3a314.cjs +1 -0
- package/dist/{scheduler-config-store-ed4a8dfd-35ec90c6.js → scheduler-config-store-d6729d8d-854b5da8.js} +4 -1
- package/dist/scheduler-store-f3e2a26f-7cee436f.cjs +1 -0
- package/dist/scheduler-store-f3e2a26f-85df53f7.js +533 -0
- package/dist/sent-icon.entry-20a8945d.cjs +1 -0
- package/dist/sent-icon.entry-2d122865.js +16 -0
- package/dist/spam-icon.entry-86178cc5.cjs +1 -0
- package/dist/spam-icon.entry-9e374d44.js +16 -0
- package/dist/star-icon.entry-1b94c861.cjs +1 -0
- package/dist/{star-icon.entry-9b22bb32.js → star-icon.entry-bb1b517d.js} +7 -6
- package/dist/stop-icon.entry-7b21833b.cjs +1 -0
- package/dist/{stop-icon.entry-1f7918b2.js → stop-icon.entry-e4d3526d.js} +3 -2
- package/dist/textarea-component.entry-ba3c9311.js +39 -0
- package/dist/textarea-component.entry-fdba933d.cjs +1 -0
- package/dist/toggle-switch.entry-4a980d1d.js +34 -0
- package/dist/toggle-switch.entry-9142a3d3.cjs +1 -0
- package/dist/{translate-icon.entry-8cffa646.js → translate-icon.entry-1657aa04.js} +5 -4
- package/dist/translate-icon.entry-b4908cf3.cjs +1 -0
- package/dist/trash-fill-icon.entry-a6791185.cjs +1 -0
- package/dist/trash-fill-icon.entry-c9e1769e.js +16 -0
- package/dist/{underline-icon.entry-afd9c78b.js → underline-icon.entry-1ba4d923.js} +5 -4
- package/dist/underline-icon.entry-d1f91e63.cjs +1 -0
- package/dist/warning-icon.entry-b1480f57.cjs +1 -0
- package/dist/{warning-icon.entry-53441175.js → warning-icon.entry-fe155c15.js} +5 -4
- package/package.json +12 -4
- package/dist/add-circle-icon.entry-25aecb13.js +0 -15
- package/dist/add-circle-icon.entry-5c49ba96.cjs +0 -1
- package/dist/archive-icon.entry-0a9e8ec3.cjs +0 -1
- package/dist/archive-icon.entry-89e31121.js +0 -15
- package/dist/arrow-icon.entry-19e5237c.cjs +0 -1
- package/dist/bold-icon.entry-d591e701.cjs +0 -1
- package/dist/button-component_2.entry-ce4314bf.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_54.entry-7099138a.js +0 -5865
- package/dist/calendar-agenda-fill-icon_54.entry-9228dbe7.cjs +0 -8
- package/dist/calendar-cancel-icon.entry-6e3d20f1.cjs +0 -1
- package/dist/calendar-check-icon_2.entry-087dd913.cjs +0 -1
- package/dist/calendar-icon.entry-73f9d05b.cjs +0 -1
- package/dist/checkbox-component_3.entry-bc9768dd.cjs +0 -1
- package/dist/checkbox-component_3.entry-d828eb1d.js +0 -149
- package/dist/chevron-icon_3.entry-783588a9.js +0 -147
- package/dist/chevron-icon_3.entry-e956d78c.cjs +0 -1
- package/dist/clock-icon_4.entry-60d41dfd.cjs +0 -1
- package/dist/close-icon.entry-1b5d25c5.cjs +0 -1
- package/dist/close-icon.entry-fef4f624.js +0 -15
- package/dist/constants-6da0ede7-151395ad.cjs +0 -1
- package/dist/copy-icon.entry-25699ab8.js +0 -15
- package/dist/copy-icon.entry-ab6530e0.cjs +0 -1
- package/dist/core-js-38e53e34.cjs +0 -4
- package/dist/core-js-a9d3b6e1.js +0 -3297
- package/dist/delete-icon.entry-e99e1f82.cjs +0 -1
- package/dist/document-refresh-icon.entry-065a59f5.cjs +0 -1
- package/dist/dom-68f08be9.cjs +0 -15
- package/dist/dom-86e17616.js +0 -664
- package/dist/folder-icon.entry-351e61fc.cjs +0 -1
- package/dist/forward-icon.entry-0ccfb600.js +0 -15
- package/dist/forward-icon.entry-6b7af9cd.cjs +0 -1
- package/dist/globe-icon.entry-2b75b66b.cjs +0 -1
- package/dist/globe-icon.entry-5ddcd2cb.js +0 -15
- package/dist/google-logo-icon_4.entry-04174684.js +0 -790
- package/dist/google-logo-icon_4.entry-a685ff91.cjs +0 -1
- package/dist/inbox-icon.entry-0ad18b3f.js +0 -15
- package/dist/inbox-icon.entry-425d1ded.cjs +0 -1
- package/dist/index-7e7c24f1.js +0 -16837
- package/dist/index-81719cc6.cjs +0 -81
- package/dist/info-icon_2.entry-7ec02802.cjs +0 -1
- package/dist/info-icon_2.entry-a6d0e842.js +0 -34
- package/dist/input-color-picker.entry-d98d06ca.js +0 -48
- package/dist/input-color-picker.entry-ed9a1c07.cjs +0 -1
- package/dist/input-component.entry-2e57b00e.cjs +0 -1
- package/dist/input-component.entry-f3aa3419.js +0 -70
- package/dist/input-dropdown_2.entry-0d9c8475.js +0 -228
- package/dist/input-dropdown_2.entry-6fc7df16.cjs +0 -1
- package/dist/italic-icon.entry-7a8712f2.cjs +0 -1
- package/dist/multi-select-dropdown.entry-b31d9f11.js +0 -116
- package/dist/multi-select-dropdown.entry-eaa268b4.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-45514813.js +0 -1378
- package/dist/nylas-booked-event-card_12.entry-498de30a.cjs +0 -1
- package/dist/nylas-form-card.entry-67aec298.js +0 -57
- package/dist/nylas-form-card.entry-fdb3c114.cjs +0 -1
- package/dist/nylas-if-state.entry-76b38c9c.cjs +0 -1
- package/dist/nylas-login.entry-589e45d0.cjs +0 -1
- package/dist/nylas-provider.entry-cfb9627c.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-6fdfb9b5.cjs +0 -2
- package/dist/nylas-scheduling.entry-8cc5c353.cjs +0 -1
- package/dist/nylas-scheduling.entry-bc00beba.js +0 -424
- package/dist/nylas-time-window-picker.entry-a77c1d67.cjs +0 -1
- package/dist/nylas-time-window-picker.entry-c421303e.js +0 -316
- package/dist/person-icon.entry-36b21e95.cjs +0 -1
- package/dist/play-icon.entry-953b1bc8.js +0 -15
- package/dist/play-icon.entry-c35ade8a.cjs +0 -1
- package/dist/refresh-icon.entry-038501ca.cjs +0 -1
- package/dist/reply-all-icon.entry-ead9d0ba.cjs +0 -1
- package/dist/reply-icon.entry-b7f35ecd.cjs +0 -1
- package/dist/scheduler-config-store-ed4a8dfd-0d4408cf.cjs +0 -1
- package/dist/scheduler-store-dc3a7958-7c73f5e2.js +0 -487
- package/dist/scheduler-store-dc3a7958-99c6bdf6.cjs +0 -1
- package/dist/sent-icon.entry-b662ef5b.cjs +0 -1
- package/dist/sent-icon.entry-ec433cec.js +0 -15
- package/dist/spam-icon.entry-3a553ae4.js +0 -15
- package/dist/spam-icon.entry-a79819fd.cjs +0 -1
- package/dist/star-icon.entry-47ea44e7.cjs +0 -1
- package/dist/stop-icon.entry-26e2e633.cjs +0 -1
- package/dist/textarea-component.entry-6939d0fc.js +0 -38
- package/dist/textarea-component.entry-da0a861e.cjs +0 -1
- package/dist/toggle-switch.entry-5ae5ba46.js +0 -33
- package/dist/toggle-switch.entry-c5fd3e33.cjs +0 -1
- package/dist/translate-icon.entry-72e0369e.cjs +0 -1
- package/dist/trash-fill-icon.entry-815859c6.js +0 -15
- package/dist/trash-fill-icon.entry-8620c28f.cjs +0 -1
- package/dist/underline-icon.entry-ba1a9e87.cjs +0 -1
- package/dist/warning-icon.entry-7cbede6b.cjs +0 -1
package/dist/react.js
CHANGED
|
@@ -1,138 +1,147 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a0 as l, a1 as i, a2 as c, a3 as t, a4 as r, a5 as y, a6 as b, a7 as I, a8 as N, a9 as d, aa as C, ab as m, ac as p, ad as g, ae as u, af as k, ag as E, ah as P, ai as v, aj as f, ak as S, al as T, am as h, an as B, ao as F, ap as L, aq as w, ar as D, as as A, at as R, au as M, av as G, aw as x, ax as W, ay as z, az as O, aA as U, aB as V, aC as q, aD as K, aE as Z, aF as _, aG as $, aH as j, aI as H, aJ as J, aK as Q, aL as X, aM as Y, aN as aa, aO as sa, aP as oa, aQ as na, aR as ea, aS as la, aT as ia, aU as ca, aV as ta, aW as ra, aX as ya, aY as ba, aZ as Ia, a_ as Na, a$ as da, b0 as Ca, b1 as ma, b2 as pa, b3 as ga, b4 as ua, b5 as ka, b6 as Ea, b7 as Pa, b8 as va, b9 as fa, ba as Sa, bb as Ta, bc as ha, bd as Ba, be as Fa, bf as La, bg as wa, bh as Da, N as Aa, bi as Ra, bj as Ma, bk as Ga, bl as xa, bm as Wa, bn as za, bo as Oa, bp as Ua, bq as Va, br as qa, bs as Ka, bt as Za, bu as _a, bv as $a, bw as ja, bx as Ha, by as Ja, bz as Qa, bA as Xa, bB as Ya, bC as as, bD as ss, bE as os, bF as ns, bG as es, bH as ls, bI as is, bJ as cs, bK as ts, bL as rs, bM as ys, bN as bs, bO as Is, bP as Ns, bQ as ds, bR as Cs, bS as ms, bT as ps, bU as gs, bV as us, bW as ks, bX as Es, bY as Ps, bZ as vs, b_ as fs, b$ as Ss, c0 as Ts, c1 as hs, c2 as Bs, c3 as Fs, c4 as Ls, c5 as ws, c6 as Ds, c7 as As, c8 as Rs, c9 as Ms, _ as Gs, $ as xs } from "./index-78390f2e.js";
|
|
2
2
|
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
3
4
|
import "react-dom";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
l as AddCircleIcon,
|
|
7
|
+
i as ArchiveIcon,
|
|
8
|
+
c as ArrowIcon,
|
|
9
|
+
t as BoldIcon,
|
|
10
|
+
r as ButtonComponent,
|
|
11
|
+
y as CalendarAgendaFillIcon,
|
|
11
12
|
b as CalendarAgendaIcon,
|
|
12
13
|
I as CalendarCancelIcon,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
N as CalendarCheckIcon,
|
|
15
|
+
d as CalendarIcon,
|
|
16
|
+
C as CalendarInfoIcon,
|
|
17
|
+
m as CalendarPatternsIcon,
|
|
18
|
+
p as CheckboxComponent,
|
|
19
|
+
g as CheckmarkCircleIcon,
|
|
20
|
+
u as CheckmarkIcon,
|
|
20
21
|
k as ChevronIcon,
|
|
21
|
-
|
|
22
|
+
E as ClockIcon,
|
|
22
23
|
P as CloseIcon,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
v as CopyIcon,
|
|
25
|
+
f as DeleteIcon,
|
|
26
|
+
S as DocumentRefreshIcon,
|
|
27
|
+
T as DragableIcon,
|
|
28
|
+
h as EditIcon,
|
|
28
29
|
B as EnvelopeFillIcon,
|
|
29
30
|
F as EnvelopeIcon,
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
L as EyeIcon,
|
|
32
|
+
w as FeedbackIcon,
|
|
32
33
|
D as FlowIcon,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
A as FolderIcon,
|
|
35
|
+
R as ForwardIcon,
|
|
36
|
+
M as GlobeIcon,
|
|
37
|
+
G as GoogleLogoIcon,
|
|
37
38
|
x as GoogleMeetIcon,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
W as InboxIcon,
|
|
40
|
+
z as InfoIcon,
|
|
41
|
+
O as InputColorPicker,
|
|
42
|
+
U as InputComponent,
|
|
43
|
+
V as InputDropdown,
|
|
44
|
+
q as InputImageUrl,
|
|
45
|
+
K as ItalicIcon,
|
|
46
|
+
Z as LoadingIcon,
|
|
47
|
+
_ as LocationIcon,
|
|
48
|
+
$ as LocationOffIcon,
|
|
49
|
+
j as MicrosoftLogoIcon,
|
|
50
|
+
H as MicrosoftTeamsIcon,
|
|
51
|
+
J as MultiSelectDropdown,
|
|
51
52
|
Q as NylasAdditionalParticipants,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
ba as
|
|
66
|
-
Ia as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
ka as
|
|
75
|
-
|
|
76
|
-
Pa as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Ba as
|
|
83
|
-
Fa as
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
Da as
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
xa as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Qa as
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
bs as
|
|
120
|
-
Is as
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
ks as
|
|
129
|
-
|
|
130
|
-
Ps as
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Bs as
|
|
137
|
-
Fs as
|
|
53
|
+
X as NylasAvailabilityPicker,
|
|
54
|
+
Y as NylasBookedEventCard,
|
|
55
|
+
aa as NylasBookingCalendarPicker,
|
|
56
|
+
sa as NylasBookingConfirmationRedirect,
|
|
57
|
+
oa as NylasBookingConfirmationType,
|
|
58
|
+
na as NylasBookingForm,
|
|
59
|
+
ea as NylasBookingFormConfig,
|
|
60
|
+
la as NylasBufferTime,
|
|
61
|
+
ia as NylasCalendarPicker,
|
|
62
|
+
ca as NylasCallSummary,
|
|
63
|
+
ta as NylasCancelBookingForm,
|
|
64
|
+
ra as NylasCancellationPolicy,
|
|
65
|
+
ya as NylasCancelledEventCard,
|
|
66
|
+
ba as NylasConfirmationEmail,
|
|
67
|
+
Ia as NylasConfirmedEventCard,
|
|
68
|
+
Na as NylasConnectedCalendars,
|
|
69
|
+
da as NylasCustomBookingFlow,
|
|
70
|
+
Ca as NylasCustomEventSlug,
|
|
71
|
+
ma as NylasCustomizeBookingSettings,
|
|
72
|
+
pa as NylasDateComponent,
|
|
73
|
+
ga as NylasDatePicker,
|
|
74
|
+
ua as NylasDisableEmails,
|
|
75
|
+
ka as NylasEditorTabs,
|
|
76
|
+
Ea as NylasEditorTabsGroup,
|
|
77
|
+
Pa as NylasEventCalendar,
|
|
78
|
+
va as NylasEventCapacity,
|
|
79
|
+
fa as NylasEventDescription,
|
|
80
|
+
Sa as NylasEventDuration,
|
|
81
|
+
Ta as NylasEventInfo,
|
|
82
|
+
ha as NylasEventLimits,
|
|
83
|
+
Ba as NylasEventLocation,
|
|
84
|
+
Fa as NylasEventTimeslot,
|
|
85
|
+
La as NylasEventTitle,
|
|
86
|
+
wa as NylasFeedbackForm,
|
|
87
|
+
Da as NylasFormCard,
|
|
88
|
+
Aa as NylasIdentityRequestWrapper,
|
|
89
|
+
Ra as NylasIfState,
|
|
90
|
+
Ma as NylasKeyPoints,
|
|
91
|
+
Ga as NylasLimitFutureBookings,
|
|
92
|
+
xa as NylasListConfigurations,
|
|
93
|
+
Wa as NylasLocaleSwitch,
|
|
94
|
+
za as NylasLogin,
|
|
95
|
+
Oa as NylasLogo,
|
|
96
|
+
Ua as NylasMinBookingNotice,
|
|
97
|
+
Va as NylasMinCancellationNotice,
|
|
98
|
+
qa as NylasNotification,
|
|
99
|
+
Ka as NylasOrganizerConfirmationCard,
|
|
100
|
+
Za as NylasPageName,
|
|
101
|
+
_a as NylasPageStyling,
|
|
102
|
+
$a as NylasParticipantBookingCalendars,
|
|
103
|
+
ja as NylasParticipantsCustomAvailability,
|
|
104
|
+
Ha as NylasProvider,
|
|
105
|
+
Ja as NylasReminderEmails,
|
|
106
|
+
Qa as NylasReminderTime,
|
|
107
|
+
Xa as NylasSchedulerEditor,
|
|
108
|
+
Ya as NylasScheduling,
|
|
109
|
+
as as NylasSchedulingMethod,
|
|
110
|
+
ss as NylasSelectEventType,
|
|
111
|
+
os as NylasSelectedEventCard,
|
|
112
|
+
ns as NylasTimeWindowPicker,
|
|
113
|
+
es as NylasTimeslotInterval,
|
|
114
|
+
ls as NylasTimeslotPicker,
|
|
115
|
+
is as NylasTranscript,
|
|
116
|
+
cs as NylasVideoPlayer,
|
|
117
|
+
ts as NylasVideoPreview,
|
|
118
|
+
rs as PaintbrushFillIcon,
|
|
119
|
+
ys as PaintbrushIcon,
|
|
120
|
+
bs as PeopleIcon,
|
|
121
|
+
Is as PersonClipboardIcon,
|
|
122
|
+
Ns as PersonIcon,
|
|
123
|
+
ds as PlayIcon,
|
|
124
|
+
Cs as PlusIcon,
|
|
125
|
+
ms as RadioButtonGroup,
|
|
126
|
+
ps as RefreshIcon,
|
|
127
|
+
gs as ReplyAllIcon,
|
|
128
|
+
us as ReplyIcon,
|
|
129
|
+
ks as SearchIcon,
|
|
130
|
+
Es as SelectDropdown,
|
|
131
|
+
Ps as SentIcon,
|
|
132
|
+
vs as SpamIcon,
|
|
133
|
+
fs as StarIcon,
|
|
134
|
+
Ss as StopIcon,
|
|
135
|
+
Ts as TextareaComponent,
|
|
136
|
+
hs as TimePeriodSelector,
|
|
137
|
+
Bs as ToggleSwitch,
|
|
138
|
+
Fs as TooltipComponent,
|
|
139
|
+
Ls as TranslateIcon,
|
|
140
|
+
ws as TrashFillIcon,
|
|
141
|
+
Ds as TrashIcon,
|
|
142
|
+
As as UnderlineIcon,
|
|
143
|
+
Rs as WarningIcon,
|
|
144
|
+
Ms as ZoomIcon,
|
|
145
|
+
Gs as defineCustomElements,
|
|
146
|
+
xs as setNonce
|
|
138
147
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-05630f15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",r=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"2289577084610eff3296acf680de688f00dd71d4",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"40d0221f5c1072988cac3fdba2f740b0b9e5cf45",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=r;exports.refresh_icon=c;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { r as t, h as c } from "./index-
|
|
1
|
+
import { r as t, h as c } from "./index-78390f2e.js";
|
|
2
2
|
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
3
4
|
import "react-dom";
|
|
4
|
-
const e = ".sc-refresh-icon-h{display:flex}",
|
|
5
|
+
const e = ".sc-refresh-icon-h{display:flex}", i = e, l = class {
|
|
5
6
|
constructor(s) {
|
|
6
7
|
t(this, s), this.width = "15", this.height = "15";
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
9
|
-
return c("svg", { key: "
|
|
10
|
+
return c("svg", { key: "2289577084610eff3296acf680de688f00dd71d4", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 32 32", version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "40d0221f5c1072988cac3fdba2f740b0b9e5cf45", d: "M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z" }));
|
|
10
11
|
}
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
+
l.style = i;
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
l as refresh_icon
|
|
15
16
|
};
|
package/dist/{register-component-e9c10e19-80bbc4dd.cjs → register-component-1027b769-62812558.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-05630f15.cjs");function m(e,o,i="registerComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function P(e,o,i="unregisterComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,i)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${i}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),u=n.filter(c=>t.includes(c));if(u.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${u.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=s.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0}),Object.defineProperty(t,"localPropsToProp",{get(){return e.localPropsToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=m(o,u,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=P(o,u,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { r as l, h as t } from "./index-
|
|
1
|
+
import { r as l, h as t } from "./index-78390f2e.js";
|
|
2
2
|
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
3
4
|
import "react-dom";
|
|
4
|
-
const
|
|
5
|
+
const i = ".sc-reply-all-icon-h{display:flex}", s = i, h = class {
|
|
5
6
|
constructor(e) {
|
|
6
7
|
l(this, e), this.width = "15", this.height = "15";
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
10
|
+
return t("svg", { key: "40a78afb16849a17598619b19a8455101bb2fc8b", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "0e6dd58c4014df3e8612417973b5180faf485486", d: "m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z", "fill-rule": "evenodd" }));
|
|
10
11
|
}
|
|
11
12
|
};
|
|
12
|
-
h.style =
|
|
13
|
+
h.style = s;
|
|
13
14
|
export {
|
|
14
15
|
h as reply_all_icon
|
|
15
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-05630f15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const l=".sc-reply-all-icon-h{display:flex}",r=l,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"40a78afb16849a17598619b19a8455101bb2fc8b",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"0e6dd58c4014df3e8612417973b5180faf485486",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};t.style=r;exports.reply_all_icon=t;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as i, h as t } from "./index-78390f2e.js";
|
|
2
2
|
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
3
4
|
import "react-dom";
|
|
4
|
-
const
|
|
5
|
+
const s = ".sc-reply-icon-h{display:flex}", c = s, h = class {
|
|
5
6
|
constructor(e) {
|
|
6
|
-
|
|
7
|
+
i(this, e), this.width = "15", this.height = "15";
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
10
|
+
return t("svg", { key: "35e972347dc8f3b120808762889d2b3903f4d09e", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "6b739327fc2730ea4f2ac32cba81467f26d5cd0f", d: "M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816", "fill-rule": "evenodd" }));
|
|
10
11
|
}
|
|
11
12
|
};
|
|
12
13
|
h.style = c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-05630f15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=".sc-reply-icon-h{display:flex}",s=r,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"35e972347dc8f3b120808762889d2b3903f4d09e",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6b739327fc2730ea4f2ac32cba81467f26d5cd0f",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};t.style=s;exports.reply_icon=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./index-05630f15.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],groupEvents:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],requiresSlug:!1,masterGroupEvents:{},isLoading:!1,...n},e=i.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async o=>{o||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { a as i } from "./index-
|
|
1
|
+
import { a as i } from "./index-78390f2e.js";
|
|
2
2
|
function s(n = {}) {
|
|
3
3
|
const o = {
|
|
4
4
|
selectedConfiguration: {},
|
|
5
5
|
configurations: [],
|
|
6
|
+
groupEvents: [],
|
|
6
7
|
listConfigurationsNextCursor: null,
|
|
7
8
|
calendars: [],
|
|
8
9
|
currentUser: null,
|
|
9
10
|
action: null,
|
|
10
11
|
additionalParticipants: [],
|
|
11
12
|
requiresSlug: !1,
|
|
13
|
+
masterGroupEvents: {},
|
|
14
|
+
isLoading: !1,
|
|
12
15
|
...n
|
|
13
16
|
}, e = i(o);
|
|
14
17
|
function t() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./index-05630f15.cjs");var P;(function(c){c.Error="error",c.Warning="warning",c.Info="info",c.Success="success"})(P||(P={}));exports.ErrorCategory=void 0;(function(c){c.Component="component",c.Api="api",c.Auth="auth"})(exports.ErrorCategory||(exports.ErrorCategory={}));var D;(function(c){c.endtime_not_in_future="endtime_not_in_future",c.no_booking_info="no_booking_info",c.no_timeslot_selected="no_timeslot_selected",c.no_timezone_selected="no_timezone_selected",c.no_booking_id="no_booking_id",c.no_salt="no_salt",c.invalid_start_time="invalid_start_time",c.invalid_end_time="invalid_end_time",c.invalid_timezone="invalid_timezone",c.no_config_id="no_config_id"})(D||(D={}));class ${constructor(){this.component=e=>{const t=exports.ErrorCategory.Component,s=`${e} Error`;return{endtime_not_in_future:(i='"endtime" can not be in the future')=>({title:s,message:i,category:t}),no_booking_info:(i="No booking info provided")=>({title:s,message:i,category:t}),no_timeslot_selected:(i="No timeslot selected")=>({title:s,message:i,category:t}),no_timezone_selected:(i="No timezone selected")=>({title:s,message:i,category:t}),no_booking_id:(i="No booking id provided")=>({title:s,message:i,category:t}),no_salt:(i="No salt provided")=>({title:s,message:i,category:t}),invalid_start_time:(i="Invalid start time")=>({title:s,message:i,category:t}),invalid_end_time:(i="Invalid end time")=>({title:s,message:i,category:t}),invalid_timezone:(i="Invalid timezone")=>({title:s,message:i,category:t}),no_config_id:(i="No configuration id provided")=>({title:s,message:i,category:t})}},this.api=e=>{const t=exports.ErrorCategory.Api,s=`${e} Error`;return{invalid_session:i=>({title:s,message:i,category:t}),general_error:i=>({title:s,message:i,category:t}),internal_error:i=>({title:s,message:i,category:t}),invalid_request_error:i=>({title:s,message:i,category:t}),timeslot_not_available:i=>({title:s,message:i,category:t}),provider_error:i=>({title:s,message:i,category:t}),not_found_error:i=>({title:s,message:i,category:t})}}}}class C{constructor({schedulerAPIURL:e,schedulerStore:t,sessionId:s,configId:i,slug:n,clientId:r}){this.errors=new $,this.schedulerStore=t,this.schedulerAPIURL=e,this.sessionId=s,this.configId=i,this.slug=n,this.clientId=r}getHeaders(){return this.sessionId?{Authorization:`Bearer ${this.sessionId}`}:{}}async makeAPIRequest(e,t,s,i={}){try{const n=new URL(this.schedulerAPIURL),r="1.4.1";return n.pathname=e,await(await fetch(decodeURIComponent(n.toString()),{method:t,headers:{"Content-Type":"application/json",Origin:window.location.origin,"X-Source":"nylas-scheduling","X-Nylas-Web-Elements-Version":r,...i},body:s})).json()}catch(n){return{error:{message:n.message,title:"API request failed",type:"api"}}}}getErrorMessage(e){var s,i,n,r;let t=(e==null?void 0:e.message)||(e==null?void 0:e.title)||"Something went wrong";return(e==null?void 0:e.type)==="provider_error"&&(t=((i=(s=e==null?void 0:e.provider_error)==null?void 0:s.error)==null?void 0:i.message)||((r=(n=e==null?void 0:e.provider_error)==null?void 0:n.error)==null?void 0:r.title)||"Something went wrong"),t}setConfigId(e){this.configId=e}selectDate(e){this.schedulerStore.set("selectedDate",e),this.schedulerStore.set("selectedTimeslot",null)}selectTime(e){this.schedulerStore.set("selectedTimeslot",e)}selectTimezone(e){this.schedulerStore.set("selectedTimezone",e)}selectLanguage(e){this.schedulerStore.set("selectedLanguage",e),o.instance.changeLanguage(e)}async toggleAdditionalData(e){e||await this.refetchAvailability(),this.schedulerStore.set("showBookingForm",e)}setParticipantName(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,name:e}})}setParticipantEmail(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,email:e}})}async refetchAvailability(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1).getTime()/1e3,s=t<e.getTime()/1e3?Math.floor(e.getTime()/1e3):t,i=new Date(e.getFullYear(),e.getMonth()+1,1).getTime()/1e3;return await this.getAvailability(s,i)}async resetStoreStateAndFetchAvailability(){const e=new Date,t=await this.refetchAvailability(),s=this.schedulerStore.get("availability").find(n=>new Date(n.start_time)>new Date);let i=e;return s&&(i=s.start_time),this.schedulerStore.set("selectedDate",i),this.schedulerStore.set("eventInfo",null),this.schedulerStore.set("showBookingForm",!1),this.schedulerStore.set("selectedTimeslot",null),t}async setReschedule(e){this.schedulerStore.set("isLoading",!0);const t=this.schedulerStore.state.eventInfo;return t&&this.schedulerStore.set("reschedulingEventInfo",t),this.schedulerStore.set("rescheduleBookingId",e),await this.getUISettings(),await this.resetStoreStateAndFetchAvailability().finally(()=>{this.schedulerStore.set("isLoading",!1)})}async setCancel(e){this.schedulerStore.set("cancelBookingId",e)}async setReject(e){this.schedulerStore.set("rejectBookingId",e)}async resetCancel(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("cancelBookingId",""),this.schedulerStore.set("rejectBookingId",""),this.schedulerStore.set("cancelledEventInfo",null),e}async goBack(){this.schedulerStore.set("cancelBookingId","")}async resetConfirm(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("confirmedEventInfo",void 0),e}async bookTimeslot(e){var w,p,L;this.schedulerStore.set("isLoading",!0);const{selectedTimeslot:t,selectedTimezone:s,bookingInfo:i,selectedLanguage:n}=this.schedulerStore.state;if(!e&&!i)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_booking_info()};const r=(e==null?void 0:e.timeslot)||t;if(!r)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timeslot_selected()};const l=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:s,a=n||"en-US";if(!l)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timezone_selected()};const h=[...this.schedulerStore.get("availabilityOrderEmails")];let d="";const m=(r==null?void 0:r.emails)||[],f={};Object.entries((i==null?void 0:i.additionalFields)||{}).forEach(([u,E])=>{f[u]=E.value});const _=e?e==null?void 0:e.primaryParticipant:i==null?void 0:i.primaryParticipant,S=e?(e==null?void 0:e.guests)||[]:(i==null?void 0:i.guests)||[],y=e?e==null?void 0:e.additionalFields:f,g=this.getHeaders(),k=`/v3/scheduling/bookings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`;if(h.length===0){const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,event_id:(r==null?void 0:r.event_id)||void 0,master_id:(r==null?void 0:r.master_id)||void 0,calendar_id:(r==null?void 0:r.calendar_id)||void 0,email_language:this.getTwoLetterLanguageCode(a)}),g);return this.schedulerStore.set("isLoading",!1),"data"in u?(this.schedulerStore.set("eventInfo",u.data),u):{error:u.error}}for(;h.length>0;){if(d=h.shift(),!m.includes(d))continue;const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({participants:d?[{email:d}]:void 0,additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,email_language:this.getTwoLetterLanguageCode(a)}),g);if("data"in u)return this.schedulerStore.set("isLoading",!1),this.schedulerStore.set("eventInfo",u==null?void 0:u.data),u;if((p=(w=u.error)==null?void 0:w.message)!=null&&p.startsWith("The selected timeslot is unavailable"))continue;{this.schedulerStore.set("isLoading",!1);const E=(L=u.error)==null?void 0:L.type;let I=u.error;if(E&&E in this.errors.api(o.instance.t("createBookingErrorTitle"))){const A=this.getErrorMessage(I);I=this.errors.api(o.instance.t("createBookingErrorTitle"))[E](A)}return{error:I}}}return this.schedulerStore.set("isLoading",!1),{error:this.errors.api(o.instance.t("createBookingErrorTitle")).timeslot_not_available("The selected timeslot is unavailable")}}async getUISettings(){var r;this.schedulerStore.set("isLoading",!0);const e=this.schedulerStore.get("rescheduleBookingId"),t=this.getHeaders();let s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"";e&&s?s+=`&booking_id=${e}`:e&&(s+=`?booking_id=${e}`);const i=`/v3/scheduling/ui-settings${s}`,n=await this.makeAPIRequest(i,"GET",void 0,t);if("error"in n){this.schedulerStore.set("isLoading",!1);const l=(r=n.error)==null?void 0:r.type;let a=n.error;return l&&l in this.errors.api(o.instance.t("getUISettingErrorTitle"))&&(a=this.errors.api(o.instance.t("getUISettingErrorTitle"))[l]((a==null?void 0:a.message)||(a==null?void 0:a.title)||"Something went wrong")),{error:a}}return"data"in n&&this.schedulerStore.set("configSettings",n.data),this.schedulerStore.set("isLoading",!1),n}getTwoLetterLanguageCode(e){return e.split("-")[0]}getStartTimeWithMinBookingNotice(e){var n;const t=(n=this.schedulerStore.get("configSettings"))==null?void 0:n.scheduler,s=t==null?void 0:t.min_booking_notice;if(!s)return e;const i=new Date().getTime();return e<(i+s*60*1e3)/1e3?Math.floor((i+s*60*1e3)/1e3):e}getEndTimeForAvailableDaysInFuture(e){var r,l;const t=new Date,s=(l=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:l.available_days_in_future,i=Math.floor(o.addDaysToCurrentDate(t,s).getTime()/1e3);return Math.min(i,e)}async getAvailability(e=0,t=0){var f,_,S,y;this.schedulerStore.set("isLoading",!0);const s=new URLSearchParams,i=new Date,n=i.getTime();if(t&&t<n/1e3)return this.schedulerStore.set("isLoading",!1),{error:this.errors.component(o.instance.t("getAvailabilityErrorTitle")).endtime_not_in_future()};if(!e){const g=new Date(i.getFullYear(),i.getMonth(),1);e=Math.floor(g.getTime()/1e3)}if(!t){const g=new Date(i.getFullYear(),i.getMonth()+1,0);t=Math.floor(g.getTime()/1e3)}t=this.getEndTimeForAvailableDaysInFuture(t);const r=this.getStartTimeWithMinBookingNotice(e);e=r,t=r>t?r+1:t,s.append("start_time",encodeURIComponent(e.toString())),s.append("end_time",encodeURIComponent(t.toString())),this.configId&&!this.sessionId?s.append("configuration_id",encodeURIComponent(this.configId)):this.slug&&this.clientId&&!this.sessionId&&(s.append("slug",encodeURIComponent(this.slug)),s.append("client_id",encodeURIComponent(this.clientId)));const l=this.schedulerStore.get("rescheduleBookingId");l&&s.append("booking_id",encodeURIComponent(l));const a=s.toString(),h=`/v3/scheduling/availability${a?`?${a}`:""}`,d=this.getHeaders(),m=await this.makeAPIRequest(decodeURIComponent(h),"GET",void 0,d);if("error"in m){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const g=(f=m.error)==null?void 0:f.type;let b=m.error;if(g&&g in this.errors.api(o.instance.t("getAvailabilityErrorTitle"))){const k=this.getErrorMessage(b);b=this.errors.api(o.instance.t("getAvailabilityErrorTitle"))[g](k)}return{error:b}}if("data"in m){const k=(((S=(_=m.data)==null?void 0:_.time_slots)==null?void 0:S.map(p=>({...p,start_time:new Date(p.start_time*1e3),end_time:new Date(p.end_time*1e3)})))||[]).filter(p=>p.start_time.getTime()>n).sort((p,L)=>p.start_time.getTime()-L.start_time.getTime());this.schedulerStore.set("availability",k);const w=((y=m.data)==null?void 0:y.order)||[];this.schedulerStore.set("availabilityOrderEmails",w)}return this.schedulerStore.set("isLoading",!1),m}async cancelBooking(e,t){var l;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("cancelBookingErrorTitle")).no_booking_id()};const s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",i=`/v3/scheduling/bookings/${e}${s}`,n=this.getHeaders(),r=await this.makeAPIRequest(decodeURIComponent(i),"DELETE",JSON.stringify({action:"cancel",cancellation_reason:t}),n);if("error"in r){this.schedulerStore.set("isLoading",!1);const a=(l=r.error)==null?void 0:l.type;let h=r.error;if(a&&a in this.errors.api(o.instance.t("cancelBookingErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("cancelBookingErrorTitle"))[a](d)}return{error:h}}return this.schedulerStore.set("cancelledEventInfo",{booking_id:e}),this.schedulerStore.set("rescheduleBookingId",""),this.schedulerStore.set("isLoading",!1),r}async rescheduleBooking(e,t){var B;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("rescheduleBookingErrorTitle")).no_booking_id()};const s=this.errors.api(o.instance.t("rescheduleBookingErrorTitle")),i=this.errors.component(o.instance.t("rescheduleBookingErrorTitle")),{bookingInfo:n,selectedTimeslot:r,selectedTimezone:l,selectedLanguage:a}=this.schedulerStore.state,{startTime:h,endTime:d,timezone:m}=t,f=h||(r==null?void 0:r.start_time);if(!f)return{error:i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const _=d||(r==null?void 0:r.end_time);if(!_)return{error:i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const S=this.schedulerStore.get("availabilityOrderEmails");let y="";if(S.length>0){const T=(r==null?void 0:r.emails)||[];for(let v=0;v<S.length;v++)if(T.includes(S[v])){y=S[v];break}}const g=m||l;if(!g)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')};const b={};Object.entries((n==null?void 0:n.additionalFields)||{}).forEach(([T,v])=>{b[T]=v.value});const k=t?t==null?void 0:t.primaryParticipant:n==null?void 0:n.primaryParticipant,w=t?(t==null?void 0:t.guests)||[]:(n==null?void 0:n.guests)||[],p=t?t==null?void 0:t.additionalFields:b,L=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",u=`/v3/scheduling/bookings/${e}${L}`,E=this.getHeaders(),I=await this.makeAPIRequest(decodeURIComponent(u),"PATCH",JSON.stringify({start_time:f.getTime()/1e3,end_time:_.getTime()/1e3,timezone:g,additional_fields:p,guest:{...k},additional_guests:w,participants:y?[{email:y}]:void 0,email_language:this.getTwoLetterLanguageCode(a)}),E);if("error"in I){this.schedulerStore.set("isLoading",!1);const T=(B=I.error)==null?void 0:B.type;let v=I.error;if(T&&T in s){const M=this.getErrorMessage(v);v=s[T](M)}return{error:v}}const A=this.schedulerStore.get("reschedulingEventInfo");if("data"in I)this.schedulerStore.set("eventInfo",I==null?void 0:I.data);else if(A)this.schedulerStore.set("eventInfo",A);else{const T={booking_id:e};this.schedulerStore.set("eventInfo",T)}return this.schedulerStore.set("isLoading",!1),I}async updateBooking(e){var m;this.schedulerStore.set("isLoading",!0);const{bookingId:t,status:s,reason:i}=e,n=this.schedulerStore.get("organizerConfirmationSalt"),r=s==="confirmed"?o.instance.t("confirmBookingErrorTitle"):o.instance.t("rejectBookingErrorTitle");if(!t)return{error:this.errors.component(r).no_booking_id()};if(!n)return{error:this.errors.component(r).no_salt()};const l=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",a=`/v3/scheduling/bookings/${t}${l}`,h=this.getHeaders(),d=await this.makeAPIRequest(decodeURIComponent(a),"PUT",JSON.stringify({status:s,cancellation_reason:i,salt:n}),h);if("error"in d){this.schedulerStore.set("isLoading",!1);const f=(m=d.error)==null?void 0:m.type;let _=d.error;if(f&&f in this.errors.api(r)){const S=this.getErrorMessage(_);_=this.errors.api(r)[f](S)}return{error:_}}return"data"in d&&s==="confirmed"?this.schedulerStore.set("confirmedEventInfo",d==null?void 0:d.data):"request_id"in d&&s==="cancelled"&&this.schedulerStore.set("cancelledEventInfo",{booking_id:t}),this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("isLoading",!1),d}async validateGroupEventTimeslot(e){var r,l;this.schedulerStore.set("isLoading",!0);const t=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.configuration_id;if(!t)return{error:this.errors.component(o.instance.t("validateTimeslotErrorTitle")).no_config_id()};const s=this.getHeaders(),i=`/v3/scheduling/configurations/${t}/group-events/validate-timeslot`,n=await this.makeAPIRequest(decodeURIComponent(i),"POST",JSON.stringify({...e,start_time:e.start_time.getTime()/1e3,end_time:e.end_time.getTime()/1e3}),s);if("error"in n){this.schedulerStore.set("isLoading",!1);const a=(l=n.error)==null?void 0:l.type;let h=n.error;if(a&&a in this.errors.api(o.instance.t("validateTimeslotErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("validateTimeslotErrorTitle"))[a](d)}return this.refetchAvailability(),{error:h}}return this.schedulerStore.set("selectedTimeslot",e),this.schedulerStore.set("showBookingForm",!0),this.schedulerStore.set("isLoading",!1),n}}function R(c={}){const e={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:!1,availabilityOrderEmails:[],selectableDates:null,availability:[],eventDuration:0,state:"ready",eventInfo:null,cancelledEventInfo:null,isLoading:!1,nylasBranding:!0,...c};o.debug("[defaultNylasStoreState]: ",e);const t=o.createStore(e);return t.onChange("availability",s=>{o.debug("[availability]: ",s);const i=s.map(l=>l.start_time);o.debug("[selectableDates]: ",i),t.set("selectableDates",i);const n=s[0];if(!n)return;const r=Math.floor((n.end_time.getTime()-n.start_time.getTime())/6e4);o.debug("[durationMinutes]: ",r),t.set("eventDuration",r)}),t.reset=()=>{for(const s in e){const i=e[s];t.set(s,i)}},t}exports.CreateNylasSchedulerStore=R;exports.NylaSchedulerAPIConnector=C;
|