@nylas/react 1.3.5 → 1.4.0
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-6e8e4e1e.cjs +1 -0
- package/dist/add-circle-icon_2.entry-dbad9a3b.js +26 -0
- package/dist/archive-icon.entry-21f532af.cjs +1 -0
- package/dist/archive-icon.entry-802f7877.js +16 -0
- package/dist/{arrow-icon.entry-fa9584cf.js → arrow-icon.entry-e3dec626.js} +3 -2
- package/dist/arrow-icon.entry-e9af732a.cjs +1 -0
- package/dist/{bold-icon.entry-ac6a4956.js → bold-icon.entry-0492ff02.js} +3 -2
- package/dist/bold-icon.entry-1a2be28a.cjs +1 -0
- package/dist/button-component_2.entry-f0c7f894.cjs +1 -0
- package/dist/{button-component_2.entry-caf33abf.js → button-component_2.entry-fea9bd3d.js} +10 -9
- package/dist/calendar-agenda-fill-icon_36.entry-70681da2.cjs +6 -0
- package/dist/calendar-agenda-fill-icon_36.entry-c85d6a79.js +4642 -0
- package/dist/calendar-cancel-icon.entry-237b8c9e.cjs +1 -0
- package/dist/{calendar-cancel-icon.entry-02015d74.js → calendar-cancel-icon.entry-e7dd5b8f.js} +6 -5
- package/dist/calendar-check-icon_2.entry-a868e0bc.cjs +1 -0
- package/dist/{calendar-check-icon_2.entry-2f7dc236.js → calendar-check-icon_2.entry-c7f47fc8.js} +10 -9
- package/dist/calendar-icon.entry-071eb30d.cjs +1 -0
- package/dist/{calendar-icon.entry-70ac9bd6.js → calendar-icon.entry-324de624.js} +6 -5
- package/dist/checkbox-component.entry-0f9970cc.js +43 -0
- package/dist/checkbox-component.entry-5bcf4b08.cjs +1 -0
- package/dist/checkmark-icon_15.entry-7776e533.cjs +5 -0
- package/dist/checkmark-icon_15.entry-98377585.js +1337 -0
- package/dist/chevron-icon_3.entry-526b4b85.cjs +1 -0
- package/dist/chevron-icon_3.entry-ec66260c.js +148 -0
- package/dist/{clock-icon_4.entry-af5301d7.js → clock-icon_4.entry-4fa47996.js} +19 -18
- package/dist/clock-icon_4.entry-66d15f7c.cjs +1 -0
- package/dist/{constants-f6e79ab7-24392f9e.js → constants-f5ba52b9-40ab2ded.js} +121 -30
- package/dist/constants-f5ba52b9-a0866d2f.cjs +1 -0
- package/dist/customParseFormat-39eacb44-45ade322.cjs +1 -0
- package/dist/customParseFormat-39eacb44-eeffe2bb.js +135 -0
- package/dist/delete-icon.entry-540aa2bb.cjs +1 -0
- package/dist/{delete-icon.entry-00cb3ee8.js → delete-icon.entry-95d01eb8.js} +7 -6
- package/dist/document-refresh-icon.entry-b82d5da8.js +16 -0
- package/dist/document-refresh-icon.entry-c467f082.cjs +1 -0
- package/dist/elements/index.d.ts +11 -0
- package/dist/{feedbackSync-547e51ee-bcaf691c.js → feedbackSync-47d13bb0-5608d680.js} +1 -1
- package/dist/{feedbackSync-547e51ee-9b572309.cjs → feedbackSync-47d13bb0-9f249f33.cjs} +1 -1
- package/dist/folder-icon.entry-4d48c2ee.cjs +1 -0
- package/dist/{folder-icon.entry-60b3eda5.js → folder-icon.entry-cb0dc63d.js} +5 -4
- package/dist/forward-icon.entry-5aa01f53.js +16 -0
- package/dist/forward-icon.entry-d04aaf6d.cjs +1 -0
- package/dist/globe-icon_2.entry-87e29cdf.cjs +1 -0
- package/dist/globe-icon_2.entry-c7ae78cc.js +200 -0
- package/dist/google-logo-icon_6.entry-80a6bfa3.js +1457 -0
- package/dist/google-logo-icon_6.entry-a8b6efc0.cjs +2 -0
- package/dist/google-meet-icon_5.entry-26d667b6.cjs +1 -0
- package/dist/google-meet-icon_5.entry-4e71c83b.js +56 -0
- package/dist/inbox-icon.entry-60a82bfc.cjs +1 -0
- package/dist/inbox-icon.entry-77e4e17b.js +16 -0
- package/dist/index-04630615.js +17580 -0
- package/dist/index-3d1f13d6.cjs +57 -0
- package/dist/index.d.ts +1 -3
- package/dist/{index.es-2d849a15-2d84f7a5.cjs → index.es-1fdb1e36-830a422f.cjs} +6 -6
- package/dist/{index.es-2d849a15-4eb8e180.js → index.es-1fdb1e36-fbdb04fa.js} +818 -804
- package/dist/info-icon_2.entry-34800b66.cjs +1 -0
- package/dist/info-icon_2.entry-3c483f61.js +35 -0
- package/dist/input-component.entry-ea4016fe.js +84 -0
- package/dist/input-component.entry-f7ccf3d6.cjs +1 -0
- package/dist/input-dropdown_2.entry-c7730cf8.js +231 -0
- package/dist/input-dropdown_2.entry-d4024d2f.cjs +1 -0
- package/dist/italic-icon.entry-6e0805ab.js +16 -0
- package/dist/italic-icon.entry-8127c2ee.cjs +1 -0
- package/dist/multi-select-dropdown_2.entry-49d6f0e7.cjs +1 -0
- package/dist/multi-select-dropdown_2.entry-d749999d.js +187 -0
- package/dist/notebook-store-b61693cd-7a5576e7.js +14 -0
- package/dist/notebook-store-b61693cd-84de36d2.cjs +5 -0
- package/dist/nylas-booked-event-card_12.entry-29337b10.cjs +1 -0
- package/dist/nylas-booked-event-card_12.entry-3fcfd6f9.js +1418 -0
- package/dist/nylas-call-summary.entry-38aed89a.js +16 -0
- package/dist/nylas-call-summary.entry-e9adcb93.cjs +1 -0
- package/dist/nylas-event-calendar_3.entry-48f656e5.cjs +6 -0
- package/dist/nylas-event-calendar_3.entry-62d1f1f5.js +9693 -0
- package/dist/nylas-form-card.entry-3828ccb1.js +58 -0
- package/dist/nylas-form-card.entry-b900b46e.cjs +1 -0
- package/dist/{nylas-if-state.entry-beef8af6.js → nylas-if-state.entry-2810dcf5.js} +4 -3
- package/dist/nylas-if-state.entry-92af0a51.cjs +1 -0
- package/dist/nylas-key-points.entry-977a6fae.js +29 -0
- package/dist/nylas-key-points.entry-de658637.cjs +1 -0
- package/dist/nylas-login.entry-4a6c11e6.cjs +1 -0
- package/dist/{nylas-login.entry-1661cbd4.js → nylas-login.entry-8101d3d0.js} +4 -3
- package/dist/nylas-provider.entry-b7ac25f5.cjs +1 -0
- package/dist/{nylas-provider.entry-1f140378.js → nylas-provider.entry-c054d68a.js} +6 -5
- package/dist/nylas-scheduler-editor.entry-1538950d.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-f184f72e.js → nylas-scheduler-editor.entry-e35fad5c.js} +530 -272
- package/dist/nylas-scheduling.entry-360b978c.js +439 -0
- package/dist/nylas-scheduling.entry-92351cd2.cjs +1 -0
- package/dist/nylas-transcript.entry-4d973027.cjs +6 -0
- package/dist/nylas-transcript.entry-81e2c821.js +128 -0
- package/dist/nylas-video-player.entry-60268c07.js +39 -0
- package/dist/nylas-video-player.entry-f3c2b073.cjs +1 -0
- package/dist/nylas-video-preview.entry-12e05e4d.cjs +1 -0
- package/dist/nylas-video-preview.entry-320421b6.js +16 -0
- package/dist/{person-icon.entry-f9ca9147.js → person-icon.entry-8533209c.js} +8 -7
- package/dist/person-icon.entry-967ad730.cjs +1 -0
- package/dist/play-icon.entry-15ee8568.js +16 -0
- package/dist/play-icon.entry-7b1fd79d.cjs +1 -0
- package/dist/radio-button-group.entry-24cb342f.cjs +1 -0
- package/dist/radio-button-group.entry-53dcf16c.js +47 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +133 -123
- package/dist/refresh-icon.entry-0486ae54.cjs +1 -0
- package/dist/{refresh-icon.entry-7886041f.js → refresh-icon.entry-f3320971.js} +7 -6
- package/dist/{register-component-677d8d2b-0113766e.js → register-component-504a1cbb-5f986d7f.js} +1 -1
- package/dist/{register-component-677d8d2b-4738af1d.cjs → register-component-504a1cbb-89124fd8.cjs} +1 -1
- package/dist/{reply-all-icon.entry-fdd0058e.js → reply-all-icon.entry-006fd1fb.js} +6 -5
- package/dist/reply-all-icon.entry-2cea1a40.cjs +1 -0
- package/dist/reply-icon.entry-bd252aed.cjs +1 -0
- package/dist/reply-icon.entry-d27166a1.js +16 -0
- package/dist/scheduler-config-store-d6729d8d-4a2defea.cjs +1 -0
- package/dist/{scheduler-config-store-ed4a8dfd-012dcf85.js → scheduler-config-store-d6729d8d-63e34849.js} +4 -1
- package/dist/scheduler-store-baf100ed-5c5d3aa5.cjs +1 -0
- package/dist/scheduler-store-baf100ed-81b183dc.js +533 -0
- package/dist/sent-icon.entry-bf101068.js +16 -0
- package/dist/sent-icon.entry-ee434395.cjs +1 -0
- package/dist/spam-icon.entry-11016b63.cjs +1 -0
- package/dist/spam-icon.entry-5193f9c6.js +16 -0
- package/dist/star-icon.entry-0e269252.cjs +1 -0
- package/dist/{star-icon.entry-501083c1.js → star-icon.entry-9c7449f3.js} +6 -5
- package/dist/stop-icon.entry-2ac11166.js +16 -0
- package/dist/stop-icon.entry-86412c9f.cjs +1 -0
- package/dist/textarea-component.entry-27717409.cjs +1 -0
- package/dist/textarea-component.entry-9df3fa96.js +39 -0
- package/dist/toggle-switch.entry-9623e2b2.cjs +1 -0
- package/dist/toggle-switch.entry-a5ddfad9.js +34 -0
- package/dist/translate-icon.entry-e0617680.cjs +1 -0
- package/dist/{translate-icon.entry-676a4150.js → translate-icon.entry-f22293e6.js} +5 -4
- package/dist/trash-fill-icon.entry-0275f657.cjs +1 -0
- package/dist/trash-fill-icon.entry-2616c5df.js +16 -0
- package/dist/{underline-icon.entry-3513c5ef.js → underline-icon.entry-1110dcb1.js} +5 -4
- package/dist/underline-icon.entry-d54b06ab.cjs +1 -0
- package/dist/warning-icon.entry-6d390ab7.cjs +1 -0
- package/dist/{warning-icon.entry-6e723597.js → warning-icon.entry-9a6e7913.js} +8 -7
- package/package.json +11 -3
- package/dist/add-circle-icon.entry-00c87903.js +0 -15
- package/dist/add-circle-icon.entry-640d2b46.cjs +0 -1
- package/dist/archive-icon.entry-5b209336.cjs +0 -1
- package/dist/archive-icon.entry-e8a39eda.js +0 -15
- package/dist/arrow-icon.entry-a25b7b7e.cjs +0 -1
- package/dist/bold-icon.entry-d837c73d.cjs +0 -1
- package/dist/button-component_2.entry-1471422a.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_53.entry-094bd4b9.cjs +0 -6
- package/dist/calendar-agenda-fill-icon_53.entry-6d7f9c79.js +0 -5757
- package/dist/calendar-cancel-icon.entry-42d3d226.cjs +0 -1
- package/dist/calendar-check-icon_2.entry-45aacd91.cjs +0 -1
- package/dist/calendar-icon.entry-90d67b03.cjs +0 -1
- package/dist/checkbox-component_3.entry-231b2254.cjs +0 -1
- package/dist/checkbox-component_3.entry-7270533c.js +0 -153
- package/dist/chevron-icon_3.entry-3c95cc88.js +0 -147
- package/dist/chevron-icon_3.entry-ead3d4c8.cjs +0 -1
- package/dist/clock-icon_4.entry-b50cce70.cjs +0 -1
- package/dist/close-icon.entry-04008446.cjs +0 -1
- package/dist/close-icon.entry-0a4105c9.js +0 -15
- package/dist/constants-f6e79ab7-23d7236b.cjs +0 -1
- package/dist/copy-icon.entry-312ff230.js +0 -15
- package/dist/copy-icon.entry-74f8ebcd.cjs +0 -1
- package/dist/core-js-38e53e34.cjs +0 -4
- package/dist/core-js-a9d3b6e1.js +0 -3297
- package/dist/delete-icon.entry-b61a6706.cjs +0 -1
- package/dist/document-refresh-icon.entry-1c985b1e.js +0 -15
- package/dist/document-refresh-icon.entry-27ff5cb2.cjs +0 -1
- package/dist/dom-68f08be9.cjs +0 -15
- package/dist/dom-86e17616.js +0 -664
- package/dist/folder-icon.entry-c32a6e15.cjs +0 -1
- package/dist/forward-icon.entry-5f9a7639.js +0 -15
- package/dist/forward-icon.entry-8cd805dc.cjs +0 -1
- package/dist/globe-icon.entry-21a80591.cjs +0 -1
- package/dist/globe-icon.entry-397727e1.js +0 -15
- package/dist/google-logo-icon_4.entry-42e87368.cjs +0 -1
- package/dist/google-logo-icon_4.entry-6ccf8379.js +0 -778
- package/dist/inbox-icon.entry-1e448b4b.js +0 -15
- package/dist/inbox-icon.entry-50605b1d.cjs +0 -1
- package/dist/index-594c8e7b.js +0 -16763
- package/dist/index-cfb93df6.cjs +0 -81
- package/dist/info-icon_2.entry-65e0023f.js +0 -34
- package/dist/info-icon_2.entry-e7b86847.cjs +0 -1
- package/dist/input-color-picker.entry-37d2fb66.js +0 -48
- package/dist/input-color-picker.entry-aabfe638.cjs +0 -1
- package/dist/input-component.entry-51f6da14.cjs +0 -1
- package/dist/input-component.entry-c07d92b1.js +0 -70
- package/dist/input-dropdown_2.entry-20fb0552.cjs +0 -1
- package/dist/input-dropdown_2.entry-90c08f10.js +0 -228
- package/dist/italic-icon.entry-8e5599ff.js +0 -15
- package/dist/italic-icon.entry-ee10a040.cjs +0 -1
- package/dist/multi-select-dropdown.entry-656d2791.cjs +0 -1
- package/dist/multi-select-dropdown.entry-c143becc.js +0 -116
- package/dist/nylas-booked-event-card_12.entry-4974ffe6.js +0 -1332
- package/dist/nylas-booked-event-card_12.entry-669bb872.cjs +0 -1
- package/dist/nylas-form-card.entry-42e718e2.js +0 -57
- package/dist/nylas-form-card.entry-55d3909c.cjs +0 -1
- package/dist/nylas-if-state.entry-4de782b7.cjs +0 -1
- package/dist/nylas-login.entry-d6b80abe.cjs +0 -1
- package/dist/nylas-provider.entry-d5495e1a.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-bebe4e7d.cjs +0 -2
- package/dist/nylas-scheduling.entry-21c04831.cjs +0 -1
- package/dist/nylas-scheduling.entry-c335ad21.js +0 -415
- package/dist/nylas-time-window-picker_2.entry-9e0dd470.js +0 -336
- package/dist/nylas-time-window-picker_2.entry-a2651ee7.cjs +0 -1
- package/dist/person-icon.entry-21946944.cjs +0 -1
- package/dist/play-icon.entry-b27fcb18.cjs +0 -1
- package/dist/play-icon.entry-dbfed5e8.js +0 -15
- package/dist/refresh-icon.entry-9d94a60b.cjs +0 -1
- package/dist/reply-all-icon.entry-f0e0a5c4.cjs +0 -1
- package/dist/reply-icon.entry-0a42fb2c.cjs +0 -1
- package/dist/reply-icon.entry-a8d2b0f8.js +0 -15
- package/dist/scheduler-config-store-ed4a8dfd-a16d5c62.cjs +0 -1
- package/dist/scheduler-store-92eb8804-bc68a43a.js +0 -487
- package/dist/scheduler-store-92eb8804-c3deee73.cjs +0 -1
- package/dist/sent-icon.entry-c3f84a59.cjs +0 -1
- package/dist/sent-icon.entry-e047f087.js +0 -15
- package/dist/spam-icon.entry-55d01416.js +0 -15
- package/dist/spam-icon.entry-671eb165.cjs +0 -1
- package/dist/star-icon.entry-4dcae472.cjs +0 -1
- package/dist/stop-icon.entry-130a28b2.js +0 -15
- package/dist/stop-icon.entry-ed949255.cjs +0 -1
- package/dist/textarea-component.entry-65dd740a.cjs +0 -1
- package/dist/textarea-component.entry-efae9031.js +0 -37
- package/dist/translate-icon.entry-2591baf8.cjs +0 -1
- package/dist/trash-fill-icon.entry-5b373be7.js +0 -15
- package/dist/trash-fill-icon.entry-c411d0e0.cjs +0 -1
- package/dist/underline-icon.entry-6bf14476.cjs +0 -1
- package/dist/warning-icon.entry-719a094d.cjs +0 -1
package/dist/react.js
CHANGED
|
@@ -1,137 +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-04630615.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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
L as EyeIcon,
|
|
32
|
+
w as FeedbackIcon,
|
|
33
|
+
D as FlowIcon,
|
|
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
|
-
|
|
39
|
+
W as InboxIcon,
|
|
40
|
+
z as InfoIcon,
|
|
41
|
+
O as InputColorPicker,
|
|
42
|
+
U as InputComponent,
|
|
43
|
+
V as InputDropdown,
|
|
43
44
|
q as InputImageUrl,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
xa as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
qa as
|
|
98
|
-
|
|
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,
|
|
99
107
|
Xa as NylasSchedulerEditor,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
|
137
147
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.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
|
|
1
|
+
import { r as t, h as c } from "./index-04630615.js";
|
|
2
2
|
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
3
4
|
import "react-dom";
|
|
4
|
-
const
|
|
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-677d8d2b-4738af1d.cjs → register-component-504a1cbb-89124fd8.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-3d1f13d6.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-04630615.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
|
-
|
|
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-3d1f13d6.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.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,16 @@
|
|
|
1
|
+
import { r as i, h as t } from "./index-04630615.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const s = ".sc-reply-icon-h{display:flex}", c = s, h = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
i(this, e), this.width = "15", this.height = "15";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
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" }));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
h.style = c;
|
|
14
|
+
export {
|
|
15
|
+
h as reply_icon
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./index-3d1f13d6.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-04630615.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-3d1f13d6.cjs");exports.ErrorCategory=void 0;(function(l){l.Component="component",l.Api="api",l.Auth="auth"})(exports.ErrorCategory||(exports.ErrorCategory={}));var D;(function(l){l.endtime_not_in_future="endtime_not_in_future",l.no_booking_info="no_booking_info",l.no_timeslot_selected="no_timeslot_selected",l.no_timezone_selected="no_timezone_selected",l.no_booking_id="no_booking_id",l.no_salt="no_salt",l.invalid_start_time="invalid_start_time",l.invalid_end_time="invalid_end_time",l.invalid_timezone="invalid_timezone",l.no_config_id="no_config_id"})(D||(D={}));var P;(function(l){l.invalid_session="invalid_session",l.general_error="general_error",l.internal_error="internal_error",l.invalid_request_error="invalid_request_error",l.timeslot_not_available="timeslot_not_available",l.provider_error="provider_error",l.not_found_error="not_found_error"})(P||(P={}));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.0";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 E,v,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 c=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:s,a=n||"en-US";if(!c)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,w])=>{f[u]=w.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:c,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:c,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((v=(E=u.error)==null?void 0:E.message)!=null&&v.startsWith("The selected timeslot is unavailable"))continue;{this.schedulerStore.set("isLoading",!1);const w=(L=u.error)==null?void 0:L.type;let p=u.error;if(w&&w in this.errors.api(o.instance.t("createBookingErrorTitle"))){const B=this.getErrorMessage(p);p=this.errors.api(o.instance.t("createBookingErrorTitle"))[w](B)}return{error:p}}}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 c=(r=n.error)==null?void 0:r.type;let a=n.error;return c&&c in this.errors.api(o.instance.t("getUISettingErrorTitle"))&&(a=this.errors.api(o.instance.t("getUISettingErrorTitle"))[c]((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,c;const t=new Date,s=(c=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:c.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 c=this.schedulerStore.get("rescheduleBookingId");c&&s.append("booking_id",encodeURIComponent(c));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(v=>({...v,start_time:new Date(v.start_time*1e3),end_time:new Date(v.end_time*1e3)})))||[]).filter(v=>v.start_time.getTime()>n).sort((v,L)=>v.start_time.getTime()-L.start_time.getTime());this.schedulerStore.set("availability",k);const E=((y=m.data)==null?void 0:y.order)||[];this.schedulerStore.set("availabilityOrderEmails",E)}return this.schedulerStore.set("isLoading",!1),m}async cancelBooking(e,t){var c;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=(c=r.error)==null?void 0:c.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 A;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:c,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 I=0;I<S.length;I++)if(T.includes(S[I])){y=S[I];break}}const g=m||c;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,I])=>{b[T]=I.value});const k=t?t==null?void 0:t.primaryParticipant:n==null?void 0:n.primaryParticipant,E=t?(t==null?void 0:t.guests)||[]:(n==null?void 0:n.guests)||[],v=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}`,w=this.getHeaders(),p=await this.makeAPIRequest(decodeURIComponent(u),"PATCH",JSON.stringify({start_time:f.getTime()/1e3,end_time:_.getTime()/1e3,timezone:g,additional_fields:v,guest:{...k},additional_guests:E,participants:y?[{email:y}]:void 0,email_language:this.getTwoLetterLanguageCode(a)}),w);if("error"in p){this.schedulerStore.set("isLoading",!1);const T=(A=p.error)==null?void 0:A.type;let I=p.error;if(T&&T in s){const M=this.getErrorMessage(I);I=s[T](M)}return{error:I}}const B=this.schedulerStore.get("reschedulingEventInfo");if("data"in p)this.schedulerStore.set("eventInfo",p==null?void 0:p.data);else if(B)this.schedulerStore.set("eventInfo",B);else{const T={booking_id:e};this.schedulerStore.set("eventInfo",T)}return this.schedulerStore.set("isLoading",!1),p}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 c=!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}${c}`,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,c;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=(c=n.error)==null?void 0:c.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(l={}){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,...l};o.debug("[defaultNylasStoreState]: ",e);const t=o.createStore(e);return t.onChange("availability",s=>{o.debug("[availability]: ",s);const i=s.map(c=>c.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;
|