@nylas/react 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/add-circle-icon_2.entry-611be49d.js +25 -0
  2. package/dist/add-circle-icon_2.entry-f1383568.cjs +1 -0
  3. package/dist/{archive-icon_7.entry-e3df60ed.cjs → archive-icon_7.entry-59cc6868.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-7411c224.js → archive-icon_7.entry-5e6ba9e7.js} +13 -13
  5. package/dist/arrow-icon.entry-9c19a803.js +15 -0
  6. package/dist/{arrow-icon.entry-280e18b0.cjs → arrow-icon.entry-a924df13.cjs} +1 -1
  7. package/dist/{bold-icon_3.entry-5963945c.js → bold-icon_3.entry-2935a3df.js} +6 -6
  8. package/dist/{bold-icon_3.entry-5dffbedd.cjs → bold-icon_3.entry-ffe02f93.cjs} +1 -1
  9. package/dist/{button-component_2.entry-237733b4.js → button-component_2.entry-93aa59a2.js} +5 -5
  10. package/dist/{button-component_2.entry-b29d2873.cjs → button-component_2.entry-b9d3f6a2.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_48.entry-9afba869.js → calendar-agenda-fill-icon_48.entry-476bc4ef.js} +1550 -1399
  12. package/dist/calendar-agenda-fill-icon_48.entry-c4ea84b3.cjs +7 -0
  13. package/dist/{calendar-cancel-icon.entry-77ccf227.cjs → calendar-cancel-icon.entry-11bb8656.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-780723a6.js → calendar-cancel-icon.entry-ee0acc54.js} +4 -4
  15. package/dist/{calendar-check-icon_2.entry-b37ac7f0.cjs → calendar-check-icon_2.entry-14548656.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-2c89c230.js → calendar-check-icon_2.entry-54a82e1e.js} +9 -9
  17. package/dist/{calendar-icon.entry-ffc93569.cjs → calendar-icon.entry-1a17f887.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-02dd3990.js → calendar-icon.entry-29f7003b.js} +5 -5
  19. package/dist/checkbox-component_2.entry-84a17232.cjs +1 -0
  20. package/dist/{checkbox-component_2.entry-ee9d0e6c.js → checkbox-component_2.entry-dfec10cb.js} +35 -12
  21. package/dist/chevron-icon_3.entry-5da08d02.cjs +1 -0
  22. package/dist/{chevron-icon_3.entry-f62e9ef1.js → chevron-icon_3.entry-826e81d4.js} +29 -15
  23. package/dist/{clock-icon_4.entry-766a1b23.js → clock-icon_4.entry-36d97f00.js} +13 -13
  24. package/dist/{clock-icon_4.entry-7dc2cc4a.cjs → clock-icon_4.entry-dafdd895.cjs} +1 -1
  25. package/dist/{constants-50c3e067-9f2a6372.cjs → constants-50c3e067-1fe54cf3.cjs} +1 -1
  26. package/dist/{constants-50c3e067-8a40a5fe.js → constants-50c3e067-fed7fb48.js} +1 -1
  27. package/dist/{copy-icon.entry-2a841508.js → copy-icon.entry-6d1a649d.js} +7 -7
  28. package/dist/{copy-icon.entry-e5251410.cjs → copy-icon.entry-eec265da.cjs} +1 -1
  29. package/dist/{delete-icon_2.entry-1a5c39dc.cjs → delete-icon_2.entry-160ba41e.cjs} +1 -1
  30. package/dist/{delete-icon_2.entry-64555a2f.js → delete-icon_2.entry-528a3879.js} +9 -9
  31. package/dist/{document-refresh-icon.entry-fdc7ddda.cjs → document-refresh-icon.entry-276704dc.cjs} +1 -1
  32. package/dist/document-refresh-icon.entry-6565f3b5.js +15 -0
  33. package/dist/elements/index.d.ts +1 -0
  34. package/dist/{elements-dc5b338e-2da1fe61.js → elements-dc5b338e-2d3857dc.js} +1 -1
  35. package/dist/{elements-dc5b338e-c8016c3d.cjs → elements-dc5b338e-b06b2857.cjs} +1 -1
  36. package/dist/{focus-visible-e8093c16-0a38a184.cjs → focus-visible-e8093c16-47e61336.cjs} +1 -1
  37. package/dist/{focus-visible-e8093c16-9d0c98c0.js → focus-visible-e8093c16-6f68eb89.js} +1 -1
  38. package/dist/{forward-icon_6.entry-390ef70a.js → forward-icon_6.entry-ed6ab66a.js} +9 -9
  39. package/dist/{forward-icon_6.entry-7238ef38.cjs → forward-icon_6.entry-fed8994d.cjs} +2 -2
  40. package/dist/{globe-icon.entry-8d106260.js → globe-icon.entry-154ccdb5.js} +5 -5
  41. package/dist/{globe-icon.entry-81f42f89.cjs → globe-icon.entry-95fc0408.cjs} +1 -1
  42. package/dist/{google-logo-icon_4.entry-aabd3886.js → google-logo-icon_4.entry-68cfa3fe.js} +245 -252
  43. package/dist/google-logo-icon_4.entry-afffb209.cjs +1 -0
  44. package/dist/index-1322d804.js +12842 -0
  45. package/dist/index-c4e817ef.cjs +82 -0
  46. package/dist/{index.es-c9454237-00ccd1e6.js → index.es-79f5b771-04cd3414.js} +1 -1
  47. package/dist/{index.es-c9454237-b64161d1.cjs → index.es-79f5b771-08cc349d.cjs} +1 -1
  48. package/dist/{info-icon_2.entry-b2e11336.cjs → info-icon_2.entry-2af880b8.cjs} +1 -1
  49. package/dist/{info-icon_2.entry-bb8ed71c.js → info-icon_2.entry-49261a0a.js} +5 -5
  50. package/dist/input-color-picker.entry-57adff77.cjs +1 -0
  51. package/dist/input-color-picker.entry-aefe0e26.js +48 -0
  52. package/dist/input-component.entry-09c3c9b6.cjs +1 -0
  53. package/dist/{input-component.entry-cb86170f.js → input-component.entry-d7c2724b.js} +19 -14
  54. package/dist/{input-dropdown.entry-a76c339e.js → input-dropdown.entry-e573ade0.js} +6 -6
  55. package/dist/input-dropdown.entry-e7d26273.cjs +1 -0
  56. package/dist/{mailbox-store-edc386fc-8bc7558b.js → mailbox-store-9c52a3fa-27f8f7e6.js} +2 -2
  57. package/dist/{mailbox-store-edc386fc-156b7236.cjs → mailbox-store-9c52a3fa-6b39645f.cjs} +1 -1
  58. package/dist/{multi-select-dropdown.entry-6b686695.js → multi-select-dropdown.entry-15cacb87.js} +11 -7
  59. package/dist/multi-select-dropdown.entry-46b2b1c9.cjs +1 -0
  60. package/dist/{nylas-booked-event-card_12.entry-e861bb16.js → nylas-booked-event-card_12.entry-3921071a.js} +233 -231
  61. package/dist/nylas-booked-event-card_12.entry-47c5381d.cjs +1 -0
  62. package/dist/{nylas-form-card.entry-b158d789.js → nylas-form-card.entry-ca835017.js} +15 -15
  63. package/dist/{nylas-form-card.entry-ca4a8746.cjs → nylas-form-card.entry-db3f0e3b.cjs} +1 -1
  64. package/dist/{nylas-if-state.entry-8e4d922c.js → nylas-if-state.entry-4159d41d.js} +8 -8
  65. package/dist/{nylas-if-state.entry-95fac42d.cjs → nylas-if-state.entry-5410607c.cjs} +1 -1
  66. package/dist/{nylas-list-folders.entry-8a22e0c8.cjs → nylas-list-folders.entry-0f143930.cjs} +1 -1
  67. package/dist/{nylas-list-folders.entry-83c39684.js → nylas-list-folders.entry-6b4a3d96.js} +3 -3
  68. package/dist/{nylas-list-threads.entry-7ea370e1.js → nylas-list-threads.entry-62108562.js} +3 -3
  69. package/dist/{nylas-list-threads.entry-54c582af.cjs → nylas-list-threads.entry-68b6f32b.cjs} +1 -1
  70. package/dist/{nylas-login.entry-9115fd81.js → nylas-login.entry-590e7fba.js} +7 -7
  71. package/dist/{nylas-login.entry-fb627e40.cjs → nylas-login.entry-f1d7bc7d.cjs} +1 -1
  72. package/dist/{nylas-mailbox-pagination.entry-04626d27.cjs → nylas-mailbox-pagination.entry-8377fdee.cjs} +1 -1
  73. package/dist/{nylas-mailbox-pagination.entry-3ff02cf9.js → nylas-mailbox-pagination.entry-ba1af8fb.js} +2 -2
  74. package/dist/{nylas-mailbox-toolbar-button.entry-f752e925.js → nylas-mailbox-toolbar-button.entry-4497acd0.js} +8 -8
  75. package/dist/{nylas-mailbox-toolbar-button.entry-8d00c789.cjs → nylas-mailbox-toolbar-button.entry-6a5d8387.cjs} +1 -1
  76. package/dist/{nylas-mailbox.entry-99c27b6c.js → nylas-mailbox.entry-917c22f5.js} +4 -4
  77. package/dist/{nylas-mailbox.entry-b3974f4e.cjs → nylas-mailbox.entry-a07652b4.cjs} +1 -1
  78. package/dist/{nylas-provider.entry-a3ad02a5.cjs → nylas-provider.entry-0e520ac3.cjs} +1 -1
  79. package/dist/{nylas-provider.entry-c206aa32.js → nylas-provider.entry-20c47b14.js} +8 -8
  80. package/dist/{nylas-reminder-emails.entry-414ce6fe.js → nylas-reminder-emails.entry-088ee120.js} +9 -9
  81. package/dist/{nylas-reminder-emails.entry-59c07bfe.cjs → nylas-reminder-emails.entry-69626e7f.cjs} +2 -2
  82. package/dist/{nylas-reminder-time_2.entry-197d83a0.js → nylas-reminder-time_2.entry-0357f280.js} +5 -5
  83. package/dist/{nylas-reminder-time_2.entry-d79dcd85.cjs → nylas-reminder-time_2.entry-b5c181db.cjs} +1 -1
  84. package/dist/{nylas-scheduler-editor.entry-7f389982.js → nylas-scheduler-editor.entry-6bb290ed.js} +66 -66
  85. package/dist/nylas-scheduler-editor.entry-d2c3bddc.cjs +2 -0
  86. package/dist/{nylas-scheduling.entry-4fa5381d.js → nylas-scheduling.entry-bc9c25c5.js} +126 -112
  87. package/dist/nylas-scheduling.entry-dc92d5e7.cjs +1 -0
  88. package/dist/{nylas-threads-refresh.entry-20602e7b.js → nylas-threads-refresh.entry-45d7d171.js} +4 -4
  89. package/dist/{nylas-threads-refresh.entry-56b53449.cjs → nylas-threads-refresh.entry-6636e7b1.cjs} +1 -1
  90. package/dist/{nylas-threads-search.entry-8872473c.js → nylas-threads-search.entry-4460aa9b.js} +16 -16
  91. package/dist/{nylas-threads-search.entry-8e0ec3ae.cjs → nylas-threads-search.entry-ae87695a.cjs} +1 -1
  92. package/dist/{nylas-time-window-picker.entry-ca47f721.cjs → nylas-time-window-picker.entry-1b449403.cjs} +1 -1
  93. package/dist/{nylas-time-window-picker.entry-9ac542b7.js → nylas-time-window-picker.entry-260f52a6.js} +18 -18
  94. package/dist/{nylas-view-thread.entry-dcd3d5be.js → nylas-view-thread.entry-5821630b.js} +9 -9
  95. package/dist/{nylas-view-thread.entry-1f758e43.cjs → nylas-view-thread.entry-5a9b353a.cjs} +1 -1
  96. package/dist/{person-icon.entry-63b28ace.cjs → person-icon.entry-b4ce06b7.cjs} +1 -1
  97. package/dist/{person-icon.entry-93130c05.js → person-icon.entry-ed6786db.js} +2 -2
  98. package/dist/{play-icon_2.entry-6a99c32d.js → play-icon_2.entry-261ea828.js} +8 -8
  99. package/dist/play-icon_2.entry-87fe39a9.cjs +1 -0
  100. package/dist/react.cjs +1 -1
  101. package/dist/react.js +100 -99
  102. package/dist/{refresh-icon.entry-b49792fc.cjs → refresh-icon.entry-21ac359d.cjs} +1 -1
  103. package/dist/{refresh-icon.entry-84783c91.js → refresh-icon.entry-87af05b0.js} +4 -4
  104. package/dist/{register-component-887199a9-b41dfa7a.js → register-component-ea95564d-843da1da.js} +1 -1
  105. package/dist/{register-component-887199a9-003f96c5.cjs → register-component-ea95564d-a64ee107.cjs} +1 -1
  106. package/dist/{scheduler-config-store-2a3b403d-73610089.js → scheduler-config-store-2a3b403d-8553b685.js} +1 -1
  107. package/dist/{scheduler-config-store-2a3b403d-a5e3433a.cjs → scheduler-config-store-2a3b403d-88840eb1.cjs} +1 -1
  108. package/dist/scheduler-store-9ff4914b-63dc472a.cjs +1 -0
  109. package/dist/{scheduler-store-fe281404-bddb1b6a.js → scheduler-store-9ff4914b-d1a624f8.js} +87 -82
  110. package/dist/textarea-component.entry-cbffb0b0.cjs +1 -0
  111. package/dist/{textarea-component.entry-40e959e5.js → textarea-component.entry-dad42f20.js} +10 -9
  112. package/dist/time-period-selector.entry-79c94da3.js +80 -0
  113. package/dist/time-period-selector.entry-e54d0989.cjs +1 -0
  114. package/dist/{translate-icon.entry-a2ed4f76.cjs → translate-icon.entry-8e9eeeba.cjs} +1 -1
  115. package/dist/{translate-icon.entry-92b83635.js → translate-icon.entry-ef6266c4.js} +4 -4
  116. package/dist/{warning-icon.entry-3ab9a59e.cjs → warning-icon.entry-34c85de2.cjs} +1 -1
  117. package/dist/{warning-icon.entry-19f721c3.js → warning-icon.entry-adf18211.js} +4 -4
  118. package/package.json +2 -2
  119. package/dist/add-circle-icon_2.entry-7165bd0e.js +0 -25
  120. package/dist/add-circle-icon_2.entry-f1ddca18.cjs +0 -1
  121. package/dist/arrow-icon.entry-38949317.js +0 -15
  122. package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +0 -7
  123. package/dist/checkbox-component_2.entry-00b6a1e9.cjs +0 -1
  124. package/dist/chevron-icon_3.entry-468abc26.cjs +0 -1
  125. package/dist/document-refresh-icon.entry-4bf6398b.js +0 -15
  126. package/dist/google-logo-icon_4.entry-fa2b8999.cjs +0 -1
  127. package/dist/index-53420959-5fc8ad2b.js +0 -5
  128. package/dist/index-53420959-fcf45780.cjs +0 -1
  129. package/dist/index-5ccfd9df.js +0 -7859
  130. package/dist/index-6d9eeb53-58c8980a.js +0 -4971
  131. package/dist/index-6d9eeb53-b2a6d09f.cjs +0 -41
  132. package/dist/index-eb33703c.cjs +0 -42
  133. package/dist/input-component.entry-378b1ccc.cjs +0 -1
  134. package/dist/input-dropdown.entry-98954c93.cjs +0 -1
  135. package/dist/multi-select-dropdown.entry-40b855e1.cjs +0 -1
  136. package/dist/nylas-booked-event-card_12.entry-9d693125.cjs +0 -1
  137. package/dist/nylas-scheduler-editor.entry-f1c6964a.cjs +0 -2
  138. package/dist/nylas-scheduling.entry-1a8bd6fc.cjs +0 -1
  139. package/dist/play-icon_2.entry-b67fb649.cjs +0 -1
  140. package/dist/scheduler-store-fe281404-c3e477f6.cjs +0 -1
  141. package/dist/textarea-component.entry-28c4bc05.cjs +0 -1
  142. package/dist/time-period-selector.entry-af71523a.cjs +0 -1
  143. package/dist/time-period-selector.entry-da5d8652.js +0 -93
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a3 as e, a4 as l, a5 as i, a6 as c, a7 as t, a8 as r, a9 as b, aa as y, ab as N, ac as I, ad as d, ae as C, af as m, ag as g, ah as p, ai as u, aj as k, ak as h, al as P, am as f, an as E, ao as T, ap as S, aq as v, ar as B, as as F, at as L, au as w, av as M, aw as R, ax as A, ay as D, az as x, aA as G, aB as z, aC as W, aD as O, aE as V, aF as q, aG as U, aH as Z, aI as $, aJ as j, aK as H, aL as J, aM as K, aN as Q, aO as X, aP as Y, aQ as _, aR as aa, aS as sa, aT as oa, aU as na, aV as ea, aW as la, aX as ia, aY as ca, aZ as ta, a_ as ra, a$ as ba, b0 as ya, b1 as Na, b2 as Ia, b3 as da, b4 as Ca, b5 as ma, b6 as ga, b7 as pa, b8 as ua, b9 as ka, ba as ha, bb as Pa, N as fa, bc as Ea, bd as Ta, be as Sa, bf as va, bg as Ba, bh as Fa, bi as La, bj as wa, bk as Ma, bl as Ra, bm as Aa, bn as Da, bo as xa, bp as Ga, bq as za, br as Wa, bs as Oa, bt as Va, bu as qa, bv as Ua, bw as Za, bx as $a, by as ja, bz as Ha, bA as Ja, bB as Ka, bC as Qa, bD as Xa, bE as Ya, bF as _a, bG as as, bH as ss, bI as os, bJ as ns, bK as es, bL as ls, bM as is, bN as cs, bO as ts, bP as rs, bQ as bs, bR as ys, bS as Ns, bT as Is, bU as ds, bV as Cs, bW as ms, bX as gs, bY as ps, bZ as us, b_ as ks, b$ as hs, c0 as Ps, c1 as fs, c2 as Es, c3 as Ts, c4 as Ss, c5 as vs, c6 as Bs, c7 as Fs, c8 as Ls, a0 as ws, a1 as Ms, a2 as Rs, $ as As } from "./index-5ccfd9df.js";
1
+ import { a6 as e, a7 as l, a8 as i, a9 as c, aa as t, ab as r, ac as b, ad as y, ae as I, af as N, ag as d, ah as C, ai as m, aj as g, ak as p, al as u, am as k, an as h, ao as P, ap as f, aq as E, ar as T, as as S, at as v, au as B, av as F, aw as L, ax as w, ay as M, az as R, aA as A, aB as D, aC as x, aD as G, aE as z, aF as W, aG as O, aH as U, aI as V, aJ as q, aK as Z, aL as j, aM as H, aN as J, aO as K, aP as Q, aQ as X, aR as Y, aS as _, aT as $, aU as aa, aV as sa, aW as oa, aX as na, aY as ea, aZ as la, a_ as ia, a$ as ca, b0 as ta, b1 as ra, b2 as ba, b3 as ya, b4 as Ia, b5 as Na, b6 as da, b7 as Ca, b8 as ma, b9 as ga, ba as pa, bb as ua, bc as ka, bd as ha, be as Pa, bf as fa, N as Ea, bg as Ta, bh as Sa, bi as va, bj as Ba, bk as Fa, bl as La, bm as wa, bn as Ma, bo as Ra, bp as Aa, bq as Da, br as xa, bs as Ga, bt as za, bu as Wa, bv as Oa, bw as Ua, bx as Va, by as qa, bz as Za, bA as ja, bB as Ha, bC as Ja, bD as Ka, bE as Qa, bF as Xa, bG as Ya, bH as _a, bI as $a, bJ as as, bK as ss, bL as os, bM as ns, bN as es, bO as ls, bP as is, bQ as cs, bR as ts, bS as rs, bT as bs, bU as ys, bV as Is, bW as Ns, bX as ds, bY as Cs, bZ as ms, b_ as gs, b$ as ps, c0 as us, c1 as ks, c2 as hs, c3 as Ps, c4 as fs, c5 as Es, c6 as Ts, c7 as Ss, c8 as vs, c9 as Bs, ca as Fs, cb as Ls, cc as ws, a3 as Ms, a4 as Rs, a5 as As, a2 as Ds } from "./index-1322d804.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -10,8 +10,8 @@ export {
10
10
  r as CalendarAgendaFillIcon,
11
11
  b as CalendarAgendaIcon,
12
12
  y as CalendarCancelIcon,
13
- N as CalendarCheckIcon,
14
- I as CalendarIcon,
13
+ I as CalendarCheckIcon,
14
+ N as CalendarIcon,
15
15
  d as CalendarInfoIcon,
16
16
  C as CalendarPatternsIcon,
17
17
  m as CheckboxComponent,
@@ -39,106 +39,107 @@ export {
39
39
  z as InputColorPicker,
40
40
  W as InputComponent,
41
41
  O as InputDropdown,
42
+ U as InputImageUrl,
42
43
  V as ItalicIcon,
43
44
  q as LoadingIcon,
44
- U as LocationIcon,
45
- Z as LocationOffIcon,
46
- $ as MicrosoftLogoIcon,
47
- j as MicrosoftTeamsIcon,
48
- H as MultiSelectDropdown,
49
- J as NylasAdditionalParticipants,
50
- K as NylasAvailabilityPicker,
51
- Q as NylasBookedEventCard,
52
- X as NylasBookingCalendarPicker,
53
- Y as NylasBookingConfirmationRedirect,
54
- _ as NylasBookingConfirmationType,
55
- aa as NylasBookingForm,
56
- sa as NylasBookingFormConfig,
57
- oa as NylasBufferTime,
58
- na as NylasCalendarPicker,
59
- ea as NylasCancelBookingForm,
60
- la as NylasCancellationPolicy,
61
- ia as NylasCancelledEventCard,
62
- ca as NylasComposer,
63
- ta as NylasConfirmationEmail,
64
- ra as NylasConfirmedEventCard,
65
- ba as NylasConnectedCalendars,
66
- ya as NylasCustomBookingFlow,
45
+ Z as LocationIcon,
46
+ j as LocationOffIcon,
47
+ H as MicrosoftLogoIcon,
48
+ J as MicrosoftTeamsIcon,
49
+ K as MultiSelectDropdown,
50
+ Q as NylasAdditionalParticipants,
51
+ X as NylasAvailabilityPicker,
52
+ Y as NylasBookedEventCard,
53
+ _ as NylasBookingCalendarPicker,
54
+ $ as NylasBookingConfirmationRedirect,
55
+ aa as NylasBookingConfirmationType,
56
+ sa as NylasBookingForm,
57
+ oa as NylasBookingFormConfig,
58
+ na as NylasBufferTime,
59
+ ea as NylasCalendarPicker,
60
+ la as NylasCancelBookingForm,
61
+ ia as NylasCancellationPolicy,
62
+ ca as NylasCancelledEventCard,
63
+ ta as NylasComposer,
64
+ ra as NylasConfirmationEmail,
65
+ ba as NylasConfirmedEventCard,
66
+ ya as NylasConnectedCalendars,
67
+ Ia as NylasCustomBookingFlow,
67
68
  Na as NylasCustomEventSlug,
68
- Ia as NylasCustomizeBookingSettings,
69
- da as NylasDatePicker,
70
- Ca as NylasEditorTabs,
71
- ma as NylasEventDescription,
72
- ga as NylasEventDuration,
73
- pa as NylasEventInfo,
74
- ua as NylasEventLimits,
75
- ka as NylasEventLocation,
76
- ha as NylasEventTitle,
77
- Pa as NylasFormCard,
78
- fa as NylasIdentityRequestWrapper,
79
- Ea as NylasIfState,
80
- Ta as NylasLimitFutureBookings,
81
- Sa as NylasListConfigurations,
82
- va as NylasListFolders,
83
- Ba as NylasListThreads,
84
- Fa as NylasLocaleSwitch,
85
- La as NylasLogin,
86
- wa as NylasLogo,
87
- Ma as NylasMailbox,
88
- Ra as NylasMailboxPagination,
89
- Aa as NylasMailboxToolbarButton,
90
- Da as NylasMinBookingNotice,
91
- xa as NylasMinCancellationNotice,
92
- Ga as NylasNotification,
93
- za as NylasOrganizerConfirmationCard,
94
- Wa as NylasPageName,
95
- Oa as NylasPageStyling,
69
+ da as NylasCustomizeBookingSettings,
70
+ Ca as NylasDatePicker,
71
+ ma as NylasEditorTabs,
72
+ ga as NylasEventDescription,
73
+ pa as NylasEventDuration,
74
+ ua as NylasEventInfo,
75
+ ka as NylasEventLimits,
76
+ ha as NylasEventLocation,
77
+ Pa as NylasEventTitle,
78
+ fa as NylasFormCard,
79
+ Ea as NylasIdentityRequestWrapper,
80
+ Ta as NylasIfState,
81
+ Sa as NylasLimitFutureBookings,
82
+ va as NylasListConfigurations,
83
+ Ba as NylasListFolders,
84
+ Fa as NylasListThreads,
85
+ La as NylasLocaleSwitch,
86
+ wa as NylasLogin,
87
+ Ma as NylasLogo,
88
+ Ra as NylasMailbox,
89
+ Aa as NylasMailboxPagination,
90
+ Da as NylasMailboxToolbarButton,
91
+ xa as NylasMinBookingNotice,
92
+ Ga as NylasMinCancellationNotice,
93
+ za as NylasNotification,
94
+ Wa as NylasOrganizerConfirmationCard,
95
+ Oa as NylasPageName,
96
+ Ua as NylasPageStyling,
96
97
  Va as NylasParticipantBookingCalendars,
97
98
  qa as NylasParticipantsCustomAvailability,
98
- Ua as NylasProvider,
99
- Za as NylasReminderEmails,
100
- $a as NylasReminderTime,
101
- ja as NylasSchedulerEditor,
102
- Ha as NylasScheduling,
103
- Ja as NylasSchedulingMethod,
104
- Ka as NylasSelectedEventCard,
105
- Qa as NylasSummarizeMessageButton,
106
- Xa as NylasThreadsRefresh,
107
- Ya as NylasThreadsSearch,
108
- _a as NylasTimeWindowPicker,
109
- as as NylasTimeslotInterval,
110
- ss as NylasTimeslotPicker,
111
- os as NylasViewEmail,
112
- ns as NylasViewThread,
113
- es as PaintbrushFillIcon,
114
- ls as PaintbrushIcon,
115
- is as PeopleIcon,
116
- cs as PersonClipboardIcon,
117
- ts as PersonIcon,
118
- rs as PlayIcon,
119
- bs as PlusIcon,
120
- ys as RadioButtonGroup,
99
+ Za as NylasProvider,
100
+ ja as NylasReminderEmails,
101
+ Ha as NylasReminderTime,
102
+ Ja as NylasSchedulerEditor,
103
+ Ka as NylasScheduling,
104
+ Qa as NylasSchedulingMethod,
105
+ Xa as NylasSelectedEventCard,
106
+ Ya as NylasSummarizeMessageButton,
107
+ _a as NylasThreadsRefresh,
108
+ $a as NylasThreadsSearch,
109
+ as as NylasTimeWindowPicker,
110
+ ss as NylasTimeslotInterval,
111
+ os as NylasTimeslotPicker,
112
+ ns as NylasViewEmail,
113
+ es as NylasViewThread,
114
+ ls as PaintbrushFillIcon,
115
+ is as PaintbrushIcon,
116
+ cs as PeopleIcon,
117
+ ts as PersonClipboardIcon,
118
+ rs as PersonIcon,
119
+ bs as PlayIcon,
120
+ ys as PlusIcon,
121
+ Is as RadioButtonGroup,
121
122
  Ns as RefreshIcon,
122
- Is as ReplyAllIcon,
123
- ds as ReplyIcon,
124
- Cs as SearchIcon,
125
- ms as SelectDropdown,
126
- gs as SentIcon,
127
- ps as SpamIcon,
128
- us as StarIcon,
129
- ks as StopIcon,
130
- hs as TextareaComponent,
131
- Ps as TimePeriodSelector,
132
- fs as ToggleSwitch,
133
- Es as TooltipComponent,
134
- Ts as TranslateIcon,
135
- Ss as TrashFillIcon,
136
- vs as TrashIcon,
137
- Bs as UnderlineIcon,
138
- Fs as WarningIcon,
139
- Ls as ZoomIcon,
140
- ws as applyPolyfills,
141
- Ms as defineCustomElements,
142
- Rs as setNonce,
143
- As as useNylasMailboxElement
123
+ ds as ReplyAllIcon,
124
+ Cs as ReplyIcon,
125
+ ms as SearchIcon,
126
+ gs as SelectDropdown,
127
+ ps as SentIcon,
128
+ us as SpamIcon,
129
+ ks as StarIcon,
130
+ hs as StopIcon,
131
+ Ps as TextareaComponent,
132
+ fs as TimePeriodSelector,
133
+ Es as ToggleSwitch,
134
+ Ts as TooltipComponent,
135
+ Ss as TranslateIcon,
136
+ vs as TrashFillIcon,
137
+ Bs as TrashIcon,
138
+ Fs as UnderlineIcon,
139
+ Ls as WarningIcon,
140
+ ws as ZoomIcon,
141
+ Ms as applyPolyfills,
142
+ Rs as defineCustomElements,
143
+ As as setNonce,
144
+ Ds as useNylasMailboxElement
144
145
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-eb33703c.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,e=class{constructor(s){c.registerInstance(this,s),this.width="15",this.height="15"}render(){return c.h("svg",{key:"6fc5035412c1f81e4d9dcfa18730d4c4d8b60d25",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c.h("path",{key:"b4c463bdc933001c9cab6caed8d0d14e92117d1e",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"}))}};e.style=i;exports.refresh_icon=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-c4e817ef.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,e=class{constructor(s){c.registerInstance(this,s),this.width="15",this.height="15"}render(){return c.h("svg",{key:"6b97426e4b19084109dd6615f5bdc654a0020fb9",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c.h("path",{key:"fc8867cd8e42697f0d4a3dac3dc0973cd0c29d65",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"}))}};e.style=i;exports.refresh_icon=e;
@@ -1,12 +1,12 @@
1
- import { r as e, h as c } from "./index-5ccfd9df.js";
1
+ import { r as t, h as c } from "./index-1322d804.js";
2
2
  import "react";
3
3
  import "react-dom";
4
- const t = ".sc-refresh-icon-h{display:flex}", l = t, h = class {
4
+ const e = ".sc-refresh-icon-h{display:flex}", l = e, h = class {
5
5
  constructor(s) {
6
- e(this, s), this.width = "15", this.height = "15";
6
+ t(this, s), this.width = "15", this.height = "15";
7
7
  }
8
8
  render() {
9
- return c("svg", { key: "6fc5035412c1f81e4d9dcfa18730d4c4d8b60d25", 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: "b4c463bdc933001c9cab6caed8d0d14e92117d1e", 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" }));
9
+ return c("svg", { key: "6b97426e4b19084109dd6615f5bdc654a0020fb9", 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: "fc8867cd8e42697f0d4a3dac3dc0973cd0c29d65", 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
10
  }
11
11
  };
12
12
  h.style = l;
@@ -1,4 +1,4 @@
1
- import { d, V as m, g as P } from "./index-5ccfd9df.js";
1
+ import { d, Y as m, g as P } from "./index-1322d804.js";
2
2
  function b(e, o, i = "registerComponent") {
3
3
  return new CustomEvent(i, {
4
4
  bubbles: !0,
@@ -1 +1 @@
1
- "use strict";const s=require("./index-eb33703c.cjs");function m(e,o,u="registerComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function P(e,o,u="unregisterComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,u)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${u}`);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()),i=n.filter(c=>t.includes(c));if(i.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${i.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),i={element:t,...e,eventToProps:d},c=m(o,i,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),i={element:t,...e,eventToProps:d},c=P(o,i,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
1
+ "use strict";const s=require("./index-c4e817ef.cjs");function m(e,o,u="registerComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function P(e,o,u="unregisterComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,u)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${u}`);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()),i=n.filter(c=>t.includes(c));if(i.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${i.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),i={element:t,...e,eventToProps:d},c=m(o,i,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),i={element:t,...e,eventToProps:d},c=P(o,i,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
@@ -1,4 +1,4 @@
1
- import { e as i } from "./index-5ccfd9df.js";
1
+ import { e as i } from "./index-1322d804.js";
2
2
  function s(n = {}) {
3
3
  const o = {
4
4
  selectedConfiguration: {},
@@ -1 +1 @@
1
- "use strict";const o=require("./index-eb33703c.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],hideEditorTabs:[],requiresSlug:!1,...n},e=o.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async i=>{i||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
1
+ "use strict";const o=require("./index-c4e817ef.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],hideEditorTabs:[],requiresSlug:!1,...n},e=o.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async i=>{i||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./index-c4e817ef.cjs");exports.ErrorCategory=void 0;(function(a){a.Component="component",a.Api="api",a.Auth="auth"})(exports.ErrorCategory||(exports.ErrorCategory={}));var B;(function(a){a.endtime_not_in_future="endtime_not_in_future",a.no_booking_info="no_booking_info",a.no_timeslot_selected="no_timeslot_selected",a.no_timezone_selected="no_timezone_selected",a.no_booking_id="no_booking_id",a.no_salt="no_salt",a.invalid_start_time="invalid_start_time",a.invalid_end_time="invalid_end_time",a.invalid_timezone="invalid_timezone"})(B||(B={}));var E;(function(a){a.invalid_session="invalid_session",a.general_error="general_error",a.internal_error="internal_error",a.invalid_request_error="invalid_request_error",a.timeslot_not_available="timeslot_not_available",a.provider_error="provider_error",a.not_found_error="not_found_error"})(E||(E={}));class C{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})}},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 M{constructor({schedulerAPIURL:e,schedulerStore:t,sessionId:s,configId:i,slug:n,clientId:r}){this.errors=new C,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);return n.pathname=e,await(await fetch(decodeURIComponent(n.toString()),{method:t,headers:{"Content-Type":"application/json",Origin:window.location.origin,...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),l.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.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 I;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(l.instance.t("createBookingErrorTitle")).no_booking_info()};const r=(e==null?void 0:e.timeslot)||t;if(!r)return{error:this.errors.component(l.instance.t("createBookingErrorTitle")).no_timeslot_selected()};const o=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:s;if(!o)return{error:this.errors.component(l.instance.t("createBookingErrorTitle")).no_timezone_selected()};const u=this.schedulerStore.get("availabilityOrderEmails");let m="";if(u.length>0){const S=r.emails;for(let h=0;h<u.length;h++)if(S.includes(u[h])){m=u[h];break}}const d=e?e==null?void 0:e.primaryParticipant:i==null?void 0:i.primaryParticipant,g=e?(e==null?void 0:e.guests)||[]:(i==null?void 0:i.guests)||[],f=e?e==null?void 0:e.additionalFields:i==null?void 0:i.additionalFields,_=this.getHeaders(),v=`/v3/scheduling/bookings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`,c=await this.makeAPIRequest(decodeURIComponent(v),"POST",JSON.stringify({participants:m?[{email:m}]:void 0,additional_fields:f,additional_guests:g,guest:{...d},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:o,email_language:this.getTwoLetterLanguageCode(n)}),_);if("error"in c){this.schedulerStore.set("isLoading",!1);const S=(I=c.error)==null?void 0:I.type;let h=c.error;if(S&&S in this.errors.api("Create Booking")){const T=this.getErrorMessage(h);h=this.errors.api("Create Booking")[S](T)}return{error:h}}return"data"in c&&this.schedulerStore.set("eventInfo",c==null?void 0:c.data),this.schedulerStore.set("isLoading",!1),c}async getUISettings(){var n;this.schedulerStore.set("isLoading",!0);const e=this.getHeaders(),s=`/v3/scheduling/ui-settings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`,i=await this.makeAPIRequest(s,"GET",void 0,e);if("error"in i){this.schedulerStore.set("isLoading",!1);const r=(n=i.error)==null?void 0:n.type;let o=i.error;return r&&r in this.errors.api(l.instance.t("getUISettingErrorTitle"))&&(o=this.errors.api(l.instance.t("getUISettingErrorTitle"))[r]((o==null?void 0:o.message)||(o==null?void 0:o.title)||"Something went wrong")),{error:o}}return"data"in i&&this.schedulerStore.set("configSettings",i.data),this.schedulerStore.set("isLoading",!1),i}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,o;const t=new Date,s=(o=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:o.available_days_in_future,i=Math.floor(l.addDaysToCurrentDate(t,s).getTime()/1e3);return Math.min(i,e)}async getAvailability(e=0,t=0){var f,_,p,v;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(l.instance.t("getAvailabilityErrorTitle")).endtime_not_in_future()};if(!e){const c=new Date(i.getFullYear(),i.getMonth(),1);e=Math.floor(c.getTime()/1e3)}if(!t){const c=new Date(i.getFullYear(),i.getMonth()+1,0);t=Math.floor(c.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 o=this.schedulerStore.get("rescheduleBookingId");o&&s.append("booking_id",encodeURIComponent(o));const u=s.toString(),m=`/v3/scheduling/availability${u?`?${u}`:""}`,d=this.getHeaders(),g=await this.makeAPIRequest(decodeURIComponent(m),"GET",void 0,d);if("error"in g){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const c=(f=g.error)==null?void 0:f.type;let I=g.error;if(c&&c in this.errors.api(l.instance.t("getAvailabilityErrorTitle"))){const S=this.getErrorMessage(I);I=this.errors.api(l.instance.t("getAvailabilityErrorTitle"))[c](S)}return{error:I}}if("data"in g){const I=(((p=(_=g.data)==null?void 0:_.time_slots)==null?void 0:p.map(h=>({...h,start_time:new Date(h.start_time*1e3),end_time:new Date(h.end_time*1e3)})))||[]).filter(h=>h.start_time.getTime()>n);this.schedulerStore.set("availability",I);const S=((v=g.data)==null?void 0:v.order)||[];this.schedulerStore.set("availabilityOrderEmails",S)}return this.schedulerStore.set("isLoading",!1),g}async cancelBooking(e,t){var o;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(l.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 u=(o=r.error)==null?void 0:o.type;let m=r.error;if(u&&u in this.errors.api(l.instance.t("cancelBookingErrorTitle"))){const d=this.getErrorMessage(m);m=this.errors.api(l.instance.t("cancelBookingErrorTitle"))[u](d)}return{error:m}}return this.schedulerStore.set("cancelledEventInfo",{booking_id:e}),this.schedulerStore.set("rescheduleBookingId",""),this.schedulerStore.set("isLoading",!1),r}async rescheduleBooking(e,t){var L;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(l.instance.t("rescheduleBookingErrorTitle")).no_booking_id()};const s=this.errors.api(l.instance.t("rescheduleBookingErrorTitle")),i=this.errors.component(l.instance.t("rescheduleBookingErrorTitle")),{bookingInfo:n,selectedTimeslot:r,selectedTimezone:o,selectedLanguage:u}=this.schedulerStore.state,{startTime:m,endTime:d,timezone:g}=t,f=m||(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 p=this.schedulerStore.get("availabilityOrderEmails");let v="";if(p.length>0){const b=(r==null?void 0:r.emails)||[];for(let k=0;k<p.length;k++)if(b.includes(p[k])){v=p[k];break}}const c=g||o;if(!c)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')};const I=t?t==null?void 0:t.primaryParticipant:n==null?void 0:n.primaryParticipant,S=t?(t==null?void 0:t.guests)||[]:(n==null?void 0:n.guests)||[],h=t?t==null?void 0:t.additionalFields:n==null?void 0:n.additionalFields,T=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",D=`/v3/scheduling/bookings/${e}${T}`,A=this.getHeaders(),y=await this.makeAPIRequest(decodeURIComponent(D),"PATCH",JSON.stringify({start_time:f.getTime()/1e3,end_time:_.getTime()/1e3,timezone:c,additional_fields:h,guest:{...I},additional_guests:S,participants:v?[{email:v}]:void 0,email_language:this.getTwoLetterLanguageCode(u)}),A);if("error"in y){this.schedulerStore.set("isLoading",!1);const b=(L=y.error)==null?void 0:L.type;let k=y.error;if(b&&b in s){const P=this.getErrorMessage(k);k=s[b](P)}return{error:k}}const w=this.schedulerStore.get("reschedulingEventInfo");if("data"in y)this.schedulerStore.set("eventInfo",y==null?void 0:y.data);else if(w)this.schedulerStore.set("eventInfo",w);else{const b={booking_id:e};this.schedulerStore.set("eventInfo",b)}return this.schedulerStore.set("isLoading",!1),y}async updateBooking(e){var g;this.schedulerStore.set("isLoading",!0);const{bookingId:t,status:s,reason:i}=e,n=this.schedulerStore.get("organizerConfirmationSalt"),r=s==="confirmed"?l.instance.t("confirmBookingErrorTitle"):l.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 o=!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/${t}${o}`,m=this.getHeaders(),d=await this.makeAPIRequest(decodeURIComponent(u),"PUT",JSON.stringify({status:s,cancellation_reason:i,salt:n}),m);if("error"in d){this.schedulerStore.set("isLoading",!1);const f=(g=d.error)==null?void 0:g.type;let _=d.error;if(f&&f in this.errors.api(r)){const p=this.getErrorMessage(_);_=this.errors.api(r)[f](p)}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}}function z(a={}){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,...a};l.debug("[defaultNylasStoreState]: ",e);const t=l.createStore(e);return t.onChange("availability",s=>{l.debug("[availability]: ",s);const i=s.map(o=>o.start_time);l.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);l.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=z;exports.NylaSchedulerAPIConnector=M;