@nylas/react 2.0.4 → 2.1.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.
Files changed (181) hide show
  1. package/dist/add-circle-icon_2.entry-8c3bb0bb.cjs +1 -0
  2. package/dist/{add-circle-icon_2.entry-e59a5b4d.js → add-circle-icon_2.entry-a3daf6c4.js} +6 -4
  3. package/dist/archive-icon.entry-46ad0ff3.cjs +1 -0
  4. package/dist/{archive-icon.entry-ea5667df.js → archive-icon.entry-d5141486.js} +6 -4
  5. package/dist/{arrow-icon.entry-1f766862.js → arrow-icon.entry-1b89ce78.js} +6 -4
  6. package/dist/arrow-icon.entry-f696de4f.cjs +1 -0
  7. package/dist/bold-icon.entry-7827cd4e.cjs +1 -0
  8. package/dist/{bold-icon.entry-240950a6.js → bold-icon.entry-c117b4cf.js} +6 -4
  9. package/dist/button-component_2.entry-8cd4c5f3.cjs +1 -0
  10. package/dist/{button-component_2.entry-96785a34.js → button-component_2.entry-e68caa9b.js} +5 -3
  11. package/dist/{calendar-agenda-fill-icon_37.entry-e732ee2e.js → calendar-agenda-fill-icon_37.entry-52bdc8b3.js} +1478 -1210
  12. package/dist/calendar-agenda-fill-icon_37.entry-8c592cfa.cjs +6 -0
  13. package/dist/calendar-cancel-icon.entry-7facfa05.cjs +1 -0
  14. package/dist/{calendar-cancel-icon.entry-7543c684.js → calendar-cancel-icon.entry-f5f1d499.js} +8 -6
  15. package/dist/{calendar-check-icon.entry-aba54652.js → calendar-check-icon.entry-55320137.js} +6 -4
  16. package/dist/calendar-check-icon.entry-72108702.cjs +1 -0
  17. package/dist/{calendar-icon.entry-2cb3b7d1.js → calendar-icon.entry-afea361e.js} +9 -7
  18. package/dist/calendar-icon.entry-f5c6730f.cjs +1 -0
  19. package/dist/checkbox-component.entry-5722d263.cjs +1 -0
  20. package/dist/checkbox-component.entry-89fa6edd.js +54 -0
  21. package/dist/checkbox-group_4.entry-30e8af17.cjs +28 -0
  22. package/dist/{checkbox-group_4.entry-04561314.js → checkbox-group_4.entry-51f03009.js} +289 -245
  23. package/dist/checkmark-circle-icon.entry-ae11049d.cjs +1 -0
  24. package/dist/{checkmark-circle-icon.entry-1f788efc.js → checkmark-circle-icon.entry-dfe67e22.js} +8 -6
  25. package/dist/{checkmark-icon_15.entry-146c1cb0.js → checkmark-icon_15.entry-4c3979db.js} +408 -332
  26. package/dist/checkmark-icon_15.entry-e59c0f53.cjs +5 -0
  27. package/dist/{chevron-icon_3.entry-637338b5.js → chevron-icon_3.entry-1f3c3ca6.js} +21 -10
  28. package/dist/chevron-icon_3.entry-ea791750.cjs +1 -0
  29. package/dist/clock-icon_4.entry-172fed74.cjs +1 -0
  30. package/dist/{clock-icon_4.entry-e69395a2.js → clock-icon_4.entry-78878cb8.js} +3 -1
  31. package/dist/customParseFormat-b5d95b34-a6b6fcba.cjs +1 -0
  32. package/dist/{customParseFormat-8be9be1b-2464f2ba.js → customParseFormat-b5d95b34-ce80820c.js} +1 -1
  33. package/dist/delete-icon.entry-a8c0bf03.cjs +1 -0
  34. package/dist/{delete-icon.entry-8a956edd.js → delete-icon.entry-cebdc90f.js} +7 -5
  35. package/dist/document-refresh-icon.entry-2d9a529d.cjs +1 -0
  36. package/dist/{document-refresh-icon.entry-5f58f367.js → document-refresh-icon.entry-8780a2b8.js} +3 -1
  37. package/dist/{feedbackSync-3db3713c-701d2eb9.cjs → feedbackSync-92220b42-fbebe1f9.cjs} +1 -1
  38. package/dist/{feedbackSync-3db3713c-aadf336b.js → feedbackSync-92220b42-fd5f5610.js} +1 -1
  39. package/dist/folder-icon.entry-3e61ccca.cjs +1 -0
  40. package/dist/{folder-icon.entry-e5d7a651.js → folder-icon.entry-6ffd5191.js} +6 -4
  41. package/dist/forward-icon.entry-c7d88db8.cjs +1 -0
  42. package/dist/{forward-icon.entry-59be8165.js → forward-icon.entry-c9c4bf5b.js} +5 -3
  43. package/dist/globe-icon.entry-0b93cab8.cjs +1 -0
  44. package/dist/{globe-icon.entry-0fe4a4bb.js → globe-icon.entry-7c0dca7b.js} +5 -3
  45. package/dist/{google-logo-icon_6.entry-799511df.js → google-logo-icon_6.entry-deef91ee.js} +283 -237
  46. package/dist/google-logo-icon_6.entry-e25ce3e7.cjs +2 -0
  47. package/dist/google-meet-icon_5.entry-214347f0.cjs +1 -0
  48. package/dist/{google-meet-icon_5.entry-e753ba28.js → google-meet-icon_5.entry-f8b5a92a.js} +3 -1
  49. package/dist/{inbox-icon.entry-61132337.js → inbox-icon.entry-873062c3.js} +7 -5
  50. package/dist/inbox-icon.entry-f08f2fd5.cjs +1 -0
  51. package/dist/index-025be398.js +7187 -0
  52. package/dist/index-c510313d-1318f67a.js +289 -0
  53. package/dist/index-c510313d-b0508eee.cjs +1 -0
  54. package/dist/index-f42fe591.cjs +65 -0
  55. package/dist/{index.es-9e756df7-fa75b01e.cjs → index.es-488bc919-d02dd50a.cjs} +1 -1
  56. package/dist/{index.es-9e756df7-42d8a4cf.js → index.es-488bc919-ea63a7e9.js} +1 -1
  57. package/dist/info-icon_2.entry-442b9097.cjs +1 -0
  58. package/dist/{info-icon_2.entry-8d2750ce.js → info-icon_2.entry-60fb8648.js} +3 -1
  59. package/dist/{input-component.entry-2e134e2a.js → input-component.entry-5898a52e.js} +22 -10
  60. package/dist/input-component.entry-7274fd28.cjs +1 -0
  61. package/dist/{input-dropdown_2.entry-1a02e672.js → input-dropdown_2.entry-4534436c.js} +33 -9
  62. package/dist/input-dropdown_2.entry-9b72f637.cjs +1 -0
  63. package/dist/{italic-icon.entry-0ec2793b.js → italic-icon.entry-62052cd8.js} +6 -4
  64. package/dist/italic-icon.entry-9bdbbd37.cjs +1 -0
  65. package/dist/lib/connect/index.d.ts +6 -0
  66. package/dist/lib/connect/types.d.ts +2 -0
  67. package/dist/lib/connect/useNylasConnect.d.ts +28 -0
  68. package/dist/lib/connect/useNylasConnect.test.d.ts +1 -0
  69. package/dist/lib/elements/index.d.ts +1 -1
  70. package/dist/lib/index.d.ts +1 -0
  71. package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +3 -2
  72. package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +2 -0
  73. package/dist/multi-select-dropdown.entry-77752d46.cjs +1 -0
  74. package/dist/{multi-select-dropdown.entry-15e887be.js → multi-select-dropdown.entry-9c9d05c1.js} +42 -30
  75. package/dist/{nylas-booked-event-card_11.entry-98bcc904.js → nylas-booked-event-card_11.entry-32b2e9f1.js} +188 -185
  76. package/dist/nylas-booked-event-card_11.entry-4aba5146.cjs +1 -0
  77. package/dist/nylas-date-component_2.entry-6b058796.cjs +1 -0
  78. package/dist/{nylas-date-component_2.entry-6a98a5bf.js → nylas-date-component_2.entry-a869519f.js} +91 -70
  79. package/dist/nylas-form-card.entry-5390459f.js +75 -0
  80. package/dist/nylas-form-card.entry-c2f34d73.cjs +1 -0
  81. package/dist/nylas-notification_2.entry-054392cf.cjs +1 -0
  82. package/dist/{nylas-notification_2.entry-320a5a65.js → nylas-notification_2.entry-f46e88e5.js} +4 -1
  83. package/dist/{nylas-scheduler-editor.entry-aa62c689.js → nylas-scheduler-editor.entry-40a48f47.js} +129 -60
  84. package/dist/nylas-scheduler-editor.entry-e29fdf07.cjs +2 -0
  85. package/dist/{nylas-scheduling.entry-aec79de5.js → nylas-scheduling.entry-115b1752.js} +203 -190
  86. package/dist/nylas-scheduling.entry-79cb1d9c.cjs +1 -0
  87. package/dist/person-icon.entry-2cae306c.cjs +1 -0
  88. package/dist/{person-icon.entry-23cbe5dd.js → person-icon.entry-fd668b89.js} +6 -4
  89. package/dist/{play-icon.entry-4a529bd2.js → play-icon.entry-7fc3c0fd.js} +5 -3
  90. package/dist/play-icon.entry-9989a520.cjs +1 -0
  91. package/dist/radio-button-group.entry-03385b5f.cjs +1 -0
  92. package/dist/{radio-button-group.entry-04b7ff59.js → radio-button-group.entry-9df82cd0.js} +21 -10
  93. package/dist/react.cjs +1 -1
  94. package/dist/react.js +142 -127
  95. package/dist/refresh-icon.entry-310954ba.cjs +1 -0
  96. package/dist/{refresh-icon.entry-61ced881.js → refresh-icon.entry-c56e5623.js} +8 -6
  97. package/dist/register-component-3acd57e7-5a79a90a.cjs +1 -0
  98. package/dist/{register-component-8bbd6492-0d8737fd.js → register-component-3acd57e7-cb09c05e.js} +15 -14
  99. package/dist/{reply-all-icon.entry-83509aaf.js → reply-all-icon.entry-32e0e000.js} +7 -5
  100. package/dist/reply-all-icon.entry-68388f97.cjs +1 -0
  101. package/dist/{reply-icon.entry-131ade31.js → reply-icon.entry-3ac2e736.js} +6 -4
  102. package/dist/reply-icon.entry-e616a9a4.cjs +1 -0
  103. package/dist/{sent-icon.entry-72fd8f16.js → sent-icon.entry-0622ed04.js} +6 -4
  104. package/dist/sent-icon.entry-543eb3c4.cjs +1 -0
  105. package/dist/{spam-icon.entry-7594c792.js → spam-icon.entry-74bcfd4f.js} +3 -1
  106. package/dist/spam-icon.entry-e341ee3e.cjs +1 -0
  107. package/dist/{star-icon.entry-adbe1bb3.js → star-icon.entry-864d2bf9.js} +5 -3
  108. package/dist/star-icon.entry-c90d40f6.cjs +1 -0
  109. package/dist/{stop-icon.entry-e95993f2.js → stop-icon.entry-835908c5.js} +3 -1
  110. package/dist/stop-icon.entry-ffc46b42.cjs +1 -0
  111. package/dist/{textarea-component.entry-f5d74fb8.js → textarea-component.entry-6adcf6a6.js} +29 -10
  112. package/dist/textarea-component.entry-dae8eb5c.cjs +1 -0
  113. package/dist/toggle-switch.entry-5ee29867.cjs +1 -0
  114. package/dist/toggle-switch.entry-ff2ccb75.js +51 -0
  115. package/dist/{translate-icon.entry-01cbe664.js → translate-icon.entry-372dd808.js} +3 -1
  116. package/dist/translate-icon.entry-5606067d.cjs +1 -0
  117. package/dist/{trash-fill-icon.entry-b39ff771.js → trash-fill-icon.entry-01b4379e.js} +3 -1
  118. package/dist/trash-fill-icon.entry-daed6c0a.cjs +1 -0
  119. package/dist/underline-icon.entry-2020ee64.cjs +1 -0
  120. package/dist/{underline-icon.entry-39179a2e.js → underline-icon.entry-464b900d.js} +5 -3
  121. package/dist/utils-31933f5d-15041585.js +17878 -0
  122. package/dist/utils-31933f5d-1d4c81ab.cjs +54 -0
  123. package/package.json +4 -3
  124. package/dist/abstract-provider-97cdbfea-5837e17f.cjs +0 -1
  125. package/dist/abstract-provider-97cdbfea-6b0e3547.js +0 -187
  126. package/dist/add-circle-icon_2.entry-96ef4ded.cjs +0 -1
  127. package/dist/archive-icon.entry-49b4e0fd.cjs +0 -1
  128. package/dist/arrow-icon.entry-5aefd7de.cjs +0 -1
  129. package/dist/bold-icon.entry-1a4955df.cjs +0 -1
  130. package/dist/button-component_2.entry-357fa02a.cjs +0 -1
  131. package/dist/calendar-agenda-fill-icon_37.entry-5e405c00.cjs +0 -6
  132. package/dist/calendar-cancel-icon.entry-55d746cf.cjs +0 -1
  133. package/dist/calendar-check-icon.entry-63d33f23.cjs +0 -1
  134. package/dist/calendar-icon.entry-e13add9b.cjs +0 -1
  135. package/dist/checkbox-component.entry-8341a8d6.cjs +0 -1
  136. package/dist/checkbox-component.entry-da122544.js +0 -43
  137. package/dist/checkbox-group_4.entry-8854d522.cjs +0 -28
  138. package/dist/checkmark-circle-icon.entry-e637e20e.cjs +0 -1
  139. package/dist/checkmark-icon_15.entry-a265f687.cjs +0 -5
  140. package/dist/chevron-icon_3.entry-6c38b5e5.cjs +0 -1
  141. package/dist/clock-icon_4.entry-aa4117dc.cjs +0 -1
  142. package/dist/customParseFormat-8be9be1b-7ad95d87.cjs +0 -1
  143. package/dist/delete-icon.entry-af0cc45b.cjs +0 -1
  144. package/dist/document-refresh-icon.entry-45931416.cjs +0 -1
  145. package/dist/folder-icon.entry-cb80c172.cjs +0 -1
  146. package/dist/forward-icon.entry-c792734b.cjs +0 -1
  147. package/dist/globe-icon.entry-9ecf0255.cjs +0 -1
  148. package/dist/google-logo-icon_6.entry-60924f34.cjs +0 -2
  149. package/dist/google-meet-icon_5.entry-3841313d.cjs +0 -1
  150. package/dist/inbox-icon.entry-2b450378.cjs +0 -1
  151. package/dist/index-2084ffd9.js +0 -24884
  152. package/dist/index-e9dc7971.cjs +0 -118
  153. package/dist/info-icon_2.entry-c547775c.cjs +0 -1
  154. package/dist/input-component.entry-b1086460.cjs +0 -1
  155. package/dist/input-dropdown_2.entry-cb163dc3.cjs +0 -1
  156. package/dist/italic-icon.entry-6a3a5464.cjs +0 -1
  157. package/dist/multi-select-dropdown.entry-daccefd5.cjs +0 -1
  158. package/dist/nylas-booked-event-card_11.entry-3cdf8015.cjs +0 -1
  159. package/dist/nylas-date-component_2.entry-5d4f54fa.cjs +0 -1
  160. package/dist/nylas-form-card.entry-22851b77.cjs +0 -1
  161. package/dist/nylas-form-card.entry-a997084f.js +0 -58
  162. package/dist/nylas-notification_2.entry-4638126b.cjs +0 -1
  163. package/dist/nylas-scheduler-editor.entry-82e0f79e.cjs +0 -2
  164. package/dist/nylas-scheduling.entry-9cef581a.cjs +0 -1
  165. package/dist/person-icon.entry-01a6a976.cjs +0 -1
  166. package/dist/play-icon.entry-33443687.cjs +0 -1
  167. package/dist/radio-button-group.entry-65155787.cjs +0 -1
  168. package/dist/refresh-icon.entry-e4ea4811.cjs +0 -1
  169. package/dist/register-component-8bbd6492-d9a23f3c.cjs +0 -1
  170. package/dist/reply-all-icon.entry-c64d923b.cjs +0 -1
  171. package/dist/reply-icon.entry-4edfbb70.cjs +0 -1
  172. package/dist/sent-icon.entry-e4f6a3ef.cjs +0 -1
  173. package/dist/spam-icon.entry-c531c188.cjs +0 -1
  174. package/dist/star-icon.entry-a75255ff.cjs +0 -1
  175. package/dist/stop-icon.entry-079b28c6.cjs +0 -1
  176. package/dist/textarea-component.entry-920a81ac.cjs +0 -1
  177. package/dist/toggle-switch.entry-33273409.js +0 -34
  178. package/dist/toggle-switch.entry-ba6b4f33.cjs +0 -1
  179. package/dist/translate-icon.entry-f33632d6.cjs +0 -1
  180. package/dist/trash-fill-icon.entry-298eece8.cjs +0 -1
  181. package/dist/underline-icon.entry-3704187c.cjs +0 -1
@@ -1,13 +1,71 @@
1
1
  var le = Object.defineProperty;
2
2
  var ce = (r, t, n) => t in r ? le(r, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[t] = n;
3
- var N = (r, t, n) => (ce(r, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { d as dayjs, u as utc, t as timezone, p as process, c as commonjsGlobal, r as registerInstance, a as createEvent, b as debug, N as NylasIdentityRequestWrapper, i as instance, h, H as Host, g as getElement, e as createStore, B as Buffer, F as Fragment, f as dataResponse, j as getCalendarRange } from "./index-2084ffd9.js";
5
- import { N as NylasBaseProvider } from "./abstract-provider-97cdbfea-6b0e3547.js";
6
- import { X as Xr } from "./index.es-9e756df7-42d8a4cf.js";
3
+ var P = (r, t, n) => (ce(r, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, F as Fragment } from "./index-025be398.js";
5
+ import { N as NylasBaseProvider, c as createStore } from "./index-c510313d-1318f67a.js";
6
+ import { d as dataResponse, a as dayjs, u as utc, t as timezone, p as process, c as commonjsGlobal, b as debug, i as instance, B as Buffer, g as getCalendarRange } from "./utils-31933f5d-15041585.js";
7
+ import { X as Xr } from "./index.es-488bc919-ea63a7e9.js";
7
8
  import { L as LANGUAGE_CODE, a as LANGUAGE_MAP, C as CONFIGURATION_EVENT_TYPE } from "./constants-f51538ef-e0a5f026.js";
9
+ import "@nylas/web-elements";
8
10
  import "react";
11
+ import "@nylas/connect";
9
12
  import "react/jsx-runtime";
10
13
  import "react-dom";
14
+ class NylasIdentityRequestWrapper {
15
+ constructor(t) {
16
+ this.defaultAuthArgs = [], this.session = t;
17
+ }
18
+ setActiveGrantId(t) {
19
+ this.activeGrantId = t;
20
+ }
21
+ async request({ method: t, path: n, body: s, headers: a }) {
22
+ try {
23
+ const l = await this.session.fetch(`grants/me/${n}`, {
24
+ method: t,
25
+ headers: a ? new Headers(a) : void 0,
26
+ body: s,
27
+ ...this.session.isMultiAccount() && this.activeGrantId ? { grant_id: this.activeGrantId } : {}
28
+ });
29
+ if (typeof l > "u")
30
+ throw new Error("Response is undefined");
31
+ return dataResponse(l);
32
+ } catch (l) {
33
+ let d = String(l);
34
+ return String(l).includes("Access token not found") && (d = "Session expired, please log in again. Redirecting...", setTimeout(() => {
35
+ localStorage.removeItem("grant"), localStorage.removeItem("user"), window.location.reload();
36
+ }, 1e3)), dataResponse(null, {
37
+ message: d
38
+ });
39
+ }
40
+ }
41
+ async currentUser() {
42
+ const t = this.session.isMultiAccount() ? this.activeGrantId : void 0, n = await this.session.getProfile(t);
43
+ if (await this.session.isLoggedIn()) {
44
+ const a = (await this.session.fetch("grants/me", {
45
+ method: "GET",
46
+ ...this.session.isMultiAccount() && this.activeGrantId ? { grant_id: this.activeGrantId } : {}
47
+ })).data;
48
+ if (!n || !a)
49
+ return null;
50
+ const l = a.email;
51
+ return {
52
+ id: n.sub,
53
+ email: l,
54
+ name: n.name,
55
+ provider: n.provider
56
+ };
57
+ }
58
+ return null;
59
+ }
60
+ async authenticationUrl(t) {
61
+ const n = (t == null ? void 0 : t.provider) || "google";
62
+ let a = this.defaultAuthArgs.find((l) => l.provider === n) || {};
63
+ return t && (a = { ...a, ...t }), this.session.auth(a);
64
+ }
65
+ setDefaultAuthArgs(t) {
66
+ this.defaultAuthArgs = t;
67
+ }
68
+ }
11
69
  dayjs.extend(utc);
12
70
  dayjs.extend(timezone);
13
71
  class NylasSchedulerConfigAPIConnector {
@@ -235,9 +293,9 @@ class NylasSchedulerConfigAPIConnector {
235
293
  })) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = a.data, await this.getGroupEvents(n, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, dataResponse(a.data));
236
294
  }
237
295
  async updateGroupEvent(t, n, s) {
238
- var p, m, y, w, _, x, R, A, k, U, P, O, I, T;
296
+ var p, m, y, w, v, x, R, A, I, U, N, O, k, T;
239
297
  this.nylasSchedulerConfigStore.state.isLoading = !0;
240
- const a = this.nylasSchedulerConfigStore.state.selectedGroupEvent, l = (p = a == null ? void 0 : a.event) == null ? void 0 : p.master_event_id, d = (m = a == null ? void 0 : a.event) == null ? void 0 : m.id, c = (w = (y = a == null ? void 0 : a.event) == null ? void 0 : y.when) == null ? void 0 : w.start_time, u = (x = (_ = a == null ? void 0 : a.group_event_info) == null ? void 0 : _.rrule) == null ? void 0 : x[0], f = u ? u.split(";").filter((S) => !S.startsWith("UNTIL")).join(";") : "", g = c ? dayjs(c * 1e3).subtract(1, "minute").format("YYYYMMDDTHHmmss[Z]") : "";
298
+ const a = this.nylasSchedulerConfigStore.state.selectedGroupEvent, l = (p = a == null ? void 0 : a.event) == null ? void 0 : p.master_event_id, d = (m = a == null ? void 0 : a.event) == null ? void 0 : m.id, c = (w = (y = a == null ? void 0 : a.event) == null ? void 0 : y.when) == null ? void 0 : w.start_time, u = (x = (v = a == null ? void 0 : a.group_event_info) == null ? void 0 : v.rrule) == null ? void 0 : x[0], f = u ? u.split(";").filter((S) => !S.startsWith("UNTIL")).join(";") : "", g = c ? dayjs(c * 1e3).subtract(1, "minute").format("YYYYMMDDTHHmmss[Z]") : "";
241
299
  if (n === "this")
242
300
  return this.updateGroupEventById({
243
301
  ...t,
@@ -245,32 +303,32 @@ class NylasSchedulerConfigAPIConnector {
245
303
  recurrence: l ? void 0 : t.recurrence
246
304
  }, s);
247
305
  if (n === "future" && l) {
248
- const S = await this.createGroupEvent(t, s), v = {
306
+ const S = await this.createGroupEvent(t, s), _ = {
249
307
  location: (R = a == null ? void 0 : a.event) == null ? void 0 : R.location,
250
308
  conferencing: (A = a == null ? void 0 : a.event) == null ? void 0 : A.conferencing,
251
- title: (k = a == null ? void 0 : a.event) == null ? void 0 : k.title,
309
+ title: (I = a == null ? void 0 : a.event) == null ? void 0 : I.title,
252
310
  description: (U = a == null ? void 0 : a.event) == null ? void 0 : U.description,
253
- capacity: (P = a == null ? void 0 : a.group_event_info) == null ? void 0 : P.capacity,
311
+ capacity: (N = a == null ? void 0 : a.group_event_info) == null ? void 0 : N.capacity,
254
312
  calendar_id: (O = a == null ? void 0 : a.event) == null ? void 0 : O.calendar_id,
255
313
  recurrence: f ? [f + ";UNTIL=" + g] : [`RRULE:FREQ=DAILY;UNTIL=${g}`]
256
314
  };
257
315
  return await this.updateGroupEventById({
258
- ...v,
316
+ ..._,
259
317
  id: l
260
- }, s), [v, S];
318
+ }, s), [_, S];
261
319
  } else if (n === "all") {
262
- const S = t == null ? void 0 : t.when, v = (I = a == null ? void 0 : a.event) == null ? void 0 : I.when, L = (T = this.nylasSchedulerConfigStore.state.masterGroupEvents) == null ? void 0 : T[l];
320
+ const S = t == null ? void 0 : t.when, _ = (k = a == null ? void 0 : a.event) == null ? void 0 : k.when, L = (T = this.nylasSchedulerConfigStore.state.masterGroupEvents) == null ? void 0 : T[l];
263
321
  let b = L == null ? void 0 : L.when;
264
- return (S == null ? void 0 : S.start_time) !== (v == null ? void 0 : v.start_time) && (b = {
322
+ return (S == null ? void 0 : S.start_time) !== (_ == null ? void 0 : _.start_time) && (b = {
265
323
  ...b,
266
324
  start_time: (S == null ? void 0 : S.start_time) || (b == null ? void 0 : b.start_time)
267
- }), (S == null ? void 0 : S.end_time) !== (v == null ? void 0 : v.end_time) && (b = {
325
+ }), (S == null ? void 0 : S.end_time) !== (_ == null ? void 0 : _.end_time) && (b = {
268
326
  ...b,
269
327
  end_time: (S == null ? void 0 : S.end_time) || (b == null ? void 0 : b.end_time)
270
- }), (S == null ? void 0 : S.start_timezone) !== (v == null ? void 0 : v.start_timezone) && (b = {
328
+ }), (S == null ? void 0 : S.start_timezone) !== (_ == null ? void 0 : _.start_timezone) && (b = {
271
329
  ...b,
272
330
  start_timezone: (S == null ? void 0 : S.start_timezone) || (b == null ? void 0 : b.start_timezone)
273
- }), (S == null ? void 0 : S.end_timezone) !== (v == null ? void 0 : v.end_timezone) && (b = {
331
+ }), (S == null ? void 0 : S.end_timezone) !== (_ == null ? void 0 : _.end_timezone) && (b = {
274
332
  ...b,
275
333
  end_timezone: (S == null ? void 0 : S.end_timezone) || (b == null ? void 0 : b.end_timezone)
276
334
  }), this.updateGroupEventById({
@@ -282,15 +340,15 @@ class NylasSchedulerConfigAPIConnector {
282
340
  throw this.nylasSchedulerConfigStore.state.isLoading = !1, new Error("Invalid option");
283
341
  }
284
342
  async deleteGroupEvent(t, n, s) {
285
- var m, y, w, _, x, R, A, k, U, P, O, I;
343
+ var m, y, w, v, x, R, A, I, U, N, O, k;
286
344
  this.nylasSchedulerConfigStore.state.isLoading = !0;
287
- const a = this.nylasSchedulerConfigStore.state.selectedGroupEvent, l = (m = a == null ? void 0 : a.event) == null ? void 0 : m.master_event_id, d = (y = a == null ? void 0 : a.event) == null ? void 0 : y.id, c = (_ = (w = a == null ? void 0 : a.event) == null ? void 0 : w.when) == null ? void 0 : _.start_time, u = (R = (x = a == null ? void 0 : a.group_event_info) == null ? void 0 : x.rrule) == null ? void 0 : R[0], f = u ? u.split(";").filter((T) => !T.startsWith("UNTIL")).join(";") : "", g = c ? dayjs(c * 1e3).format("YYYYMMDDTHHmmss[Z]") : "", p = {
345
+ const a = this.nylasSchedulerConfigStore.state.selectedGroupEvent, l = (m = a == null ? void 0 : a.event) == null ? void 0 : m.master_event_id, d = (y = a == null ? void 0 : a.event) == null ? void 0 : y.id, c = (v = (w = a == null ? void 0 : a.event) == null ? void 0 : w.when) == null ? void 0 : v.start_time, u = (R = (x = a == null ? void 0 : a.group_event_info) == null ? void 0 : x.rrule) == null ? void 0 : R[0], f = u ? u.split(";").filter((T) => !T.startsWith("UNTIL")).join(";") : "", g = c ? dayjs(c * 1e3).format("YYYYMMDDTHHmmss[Z]") : "", p = {
288
346
  location: (A = a == null ? void 0 : a.event) == null ? void 0 : A.location,
289
- conferencing: (k = a == null ? void 0 : a.event) == null ? void 0 : k.conferencing,
347
+ conferencing: (I = a == null ? void 0 : a.event) == null ? void 0 : I.conferencing,
290
348
  title: (U = a == null ? void 0 : a.event) == null ? void 0 : U.title,
291
- description: (P = a == null ? void 0 : a.event) == null ? void 0 : P.description,
349
+ description: (N = a == null ? void 0 : a.event) == null ? void 0 : N.description,
292
350
  capacity: (O = a == null ? void 0 : a.group_event_info) == null ? void 0 : O.capacity,
293
- calendar_id: (I = a == null ? void 0 : a.event) == null ? void 0 : I.calendar_id,
351
+ calendar_id: (k = a == null ? void 0 : a.event) == null ? void 0 : k.calendar_id,
294
352
  recurrence: f ? [f + ";UNTIL=" + g] : [`RRULE:UNTIL=${g}`]
295
353
  };
296
354
  if (n === "this" && d)
@@ -411,7 +469,7 @@ class LocalStorage {
411
469
  const PKCE_KEY = "pkce", GRANT_KEY = "grant", USER_KEY = "user";
412
470
  class Storage {
413
471
  constructor(t) {
414
- N(this, "Storage", new LocalStorage());
472
+ P(this, "Storage", new LocalStorage());
415
473
  if (t) {
416
474
  this.Storage = t;
417
475
  return;
@@ -487,8 +545,8 @@ class Storage {
487
545
  }
488
546
  class IndexedDBStorage {
489
547
  constructor() {
490
- N(this, "databaseName", "identity-db");
491
- N(this, "storeName", "identity");
548
+ P(this, "databaseName", "identity-db");
549
+ P(this, "storeName", "identity");
492
550
  }
493
551
  get(t) {
494
552
  const n = this;
@@ -714,11 +772,11 @@ var sha256 = { exports: {} };
714
772
  r[16] = this.block, r[t >> 2] |= EXTRA[t & 3], this.block = r[16], t >= 56 && (this.hashed || this.hash(), r[0] = this.block, r[16] = r[1] = r[2] = r[3] = r[4] = r[5] = r[6] = r[7] = r[8] = r[9] = r[10] = r[11] = r[12] = r[13] = r[14] = r[15] = 0), r[14] = this.hBytes << 3 | this.bytes >>> 29, r[15] = this.bytes << 3, this.hash();
715
773
  }
716
774
  }, Sha256.prototype.hash = function() {
717
- var r = this.h0, t = this.h1, n = this.h2, s = this.h3, a = this.h4, l = this.h5, d = this.h6, c = this.h7, u = this.blocks, f, g, p, m, y, w, _, x, R, A, k;
775
+ var r = this.h0, t = this.h1, n = this.h2, s = this.h3, a = this.h4, l = this.h5, d = this.h6, c = this.h7, u = this.blocks, f, g, p, m, y, w, v, x, R, A, I;
718
776
  for (f = 16; f < 64; ++f)
719
777
  y = u[f - 15], g = (y >>> 7 | y << 25) ^ (y >>> 18 | y << 14) ^ y >>> 3, y = u[f - 2], p = (y >>> 17 | y << 15) ^ (y >>> 19 | y << 13) ^ y >>> 10, u[f] = u[f - 16] + g + u[f - 7] + p << 0;
720
- for (k = t & n, f = 0; f < 64; f += 4)
721
- this.first ? (this.is224 ? (x = 300032, y = u[0] - 1413257819, c = y - 150054599 << 0, s = y + 24177077 << 0) : (x = 704751109, y = u[0] - 210244248, c = y - 1521486534 << 0, s = y + 143694565 << 0), this.first = !1) : (g = (r >>> 2 | r << 30) ^ (r >>> 13 | r << 19) ^ (r >>> 22 | r << 10), p = (a >>> 6 | a << 26) ^ (a >>> 11 | a << 21) ^ (a >>> 25 | a << 7), x = r & t, m = x ^ r & n ^ k, _ = a & l ^ ~a & d, y = c + p + _ + K[f] + u[f], w = g + m, c = s + y << 0, s = y + w << 0), g = (s >>> 2 | s << 30) ^ (s >>> 13 | s << 19) ^ (s >>> 22 | s << 10), p = (c >>> 6 | c << 26) ^ (c >>> 11 | c << 21) ^ (c >>> 25 | c << 7), R = s & r, m = R ^ s & t ^ x, _ = c & a ^ ~c & l, y = d + p + _ + K[f + 1] + u[f + 1], w = g + m, d = n + y << 0, n = y + w << 0, g = (n >>> 2 | n << 30) ^ (n >>> 13 | n << 19) ^ (n >>> 22 | n << 10), p = (d >>> 6 | d << 26) ^ (d >>> 11 | d << 21) ^ (d >>> 25 | d << 7), A = n & s, m = A ^ n & r ^ R, _ = d & c ^ ~d & a, y = l + p + _ + K[f + 2] + u[f + 2], w = g + m, l = t + y << 0, t = y + w << 0, g = (t >>> 2 | t << 30) ^ (t >>> 13 | t << 19) ^ (t >>> 22 | t << 10), p = (l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7), k = t & n, m = k ^ t & s ^ A, _ = l & d ^ ~l & c, y = a + p + _ + K[f + 3] + u[f + 3], w = g + m, a = r + y << 0, r = y + w << 0;
778
+ for (I = t & n, f = 0; f < 64; f += 4)
779
+ this.first ? (this.is224 ? (x = 300032, y = u[0] - 1413257819, c = y - 150054599 << 0, s = y + 24177077 << 0) : (x = 704751109, y = u[0] - 210244248, c = y - 1521486534 << 0, s = y + 143694565 << 0), this.first = !1) : (g = (r >>> 2 | r << 30) ^ (r >>> 13 | r << 19) ^ (r >>> 22 | r << 10), p = (a >>> 6 | a << 26) ^ (a >>> 11 | a << 21) ^ (a >>> 25 | a << 7), x = r & t, m = x ^ r & n ^ I, v = a & l ^ ~a & d, y = c + p + v + K[f] + u[f], w = g + m, c = s + y << 0, s = y + w << 0), g = (s >>> 2 | s << 30) ^ (s >>> 13 | s << 19) ^ (s >>> 22 | s << 10), p = (c >>> 6 | c << 26) ^ (c >>> 11 | c << 21) ^ (c >>> 25 | c << 7), R = s & r, m = R ^ s & t ^ x, v = c & a ^ ~c & l, y = d + p + v + K[f + 1] + u[f + 1], w = g + m, d = n + y << 0, n = y + w << 0, g = (n >>> 2 | n << 30) ^ (n >>> 13 | n << 19) ^ (n >>> 22 | n << 10), p = (d >>> 6 | d << 26) ^ (d >>> 11 | d << 21) ^ (d >>> 25 | d << 7), A = n & s, m = A ^ n & r ^ R, v = d & c ^ ~d & a, y = l + p + v + K[f + 2] + u[f + 2], w = g + m, l = t + y << 0, t = y + w << 0, g = (t >>> 2 | t << 30) ^ (t >>> 13 | t << 19) ^ (t >>> 22 | t << 10), p = (l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7), I = t & n, m = I ^ t & s ^ A, v = l & d ^ ~l & c, y = a + p + v + K[f + 3] + u[f + 3], w = g + m, a = r + y << 0, r = y + w << 0;
722
780
  this.h0 = this.h0 + r << 0, this.h1 = this.h1 + t << 0, this.h2 = this.h2 + n << 0, this.h3 = this.h3 + s << 0, this.h4 = this.h4 + a << 0, this.h5 = this.h5 + l << 0, this.h6 = this.h6 + d << 0, this.h7 = this.h7 + c << 0;
723
781
  }, Sha256.prototype.hex = function() {
724
782
  this.finalize();
@@ -915,39 +973,39 @@ function fetchEventSource(r, t) {
915
973
  const y = Object.assign({}, s);
916
974
  y.accept || (y.accept = EventStreamContentType);
917
975
  let w;
918
- function _() {
919
- w.abort(), document.hidden || P();
976
+ function v() {
977
+ w.abort(), document.hidden || N();
920
978
  }
921
- u || document.addEventListener("visibilitychange", _);
979
+ u || document.addEventListener("visibilitychange", v);
922
980
  let x = DefaultRetryInterval, R = 0;
923
981
  function A() {
924
- document.removeEventListener("visibilitychange", _), window.clearTimeout(R), w.abort();
982
+ document.removeEventListener("visibilitychange", v), window.clearTimeout(R), w.abort();
925
983
  }
926
984
  n == null || n.addEventListener("abort", () => {
927
985
  A(), p();
928
986
  });
929
- const k = f ?? window.fetch, U = a ?? defaultOnOpen;
930
- async function P() {
987
+ const I = f ?? window.fetch, U = a ?? defaultOnOpen;
988
+ async function N() {
931
989
  var O;
932
990
  w = new AbortController();
933
991
  try {
934
- const I = await k(r, Object.assign(Object.assign({}, g), { headers: y, signal: w.signal }));
935
- await U(I), await getBytes(I.body, getLines(getMessages((T) => {
992
+ const k = await I(r, Object.assign(Object.assign({}, g), { headers: y, signal: w.signal }));
993
+ await U(k), await getBytes(k.body, getLines(getMessages((T) => {
936
994
  T ? y[LastEventId] = T : delete y[LastEventId];
937
995
  }, (T) => {
938
996
  x = T;
939
997
  }, l))), d == null || d(), A(), p();
940
- } catch (I) {
998
+ } catch (k) {
941
999
  if (!w.signal.aborted)
942
1000
  try {
943
- const T = (O = c == null ? void 0 : c(I)) !== null && O !== void 0 ? O : x;
944
- window.clearTimeout(R), R = window.setTimeout(P, T);
1001
+ const T = (O = c == null ? void 0 : c(k)) !== null && O !== void 0 ? O : x;
1002
+ window.clearTimeout(R), R = window.setTimeout(N, T);
945
1003
  } catch (T) {
946
1004
  A(), m(T);
947
1005
  }
948
1006
  }
949
1007
  }
950
- P();
1008
+ N();
951
1009
  });
952
1010
  }
953
1011
  function defaultOnOpen(r) {
@@ -1014,15 +1072,15 @@ function o(r, t) {
1014
1072
  n$1.prototype = new Error(), n$1.prototype.name = "InvalidTokenError";
1015
1073
  class NylasSessions {
1016
1074
  constructor(t) {
1017
- N(this, "clientId");
1018
- N(this, "redirectUri");
1019
- N(this, "accessType", "online");
1020
- N(this, "domain", "http://api.nylas.com");
1021
- N(this, "versioned", !1);
1022
- N(this, "Storage");
1023
- N(this, "hosted", !1);
1024
- N(this, "multiAccount", !1);
1025
- N(this, "loginId", "");
1075
+ P(this, "clientId");
1076
+ P(this, "redirectUri");
1077
+ P(this, "accessType", "online");
1078
+ P(this, "domain", "http://api.nylas.com");
1079
+ P(this, "versioned", !1);
1080
+ P(this, "Storage");
1081
+ P(this, "hosted", !1);
1082
+ P(this, "multiAccount", !1);
1083
+ P(this, "loginId", "");
1026
1084
  if (this.clientId = t.clientId, this.redirectUri = t.redirectUri, t.domain && (this.domain = t.domain, this.domain.substring(this.domain.length - 3).includes("/v") && (this.versioned = !0)), t.multiAccount && (this.multiAccount = t.multiAccount), t.sw) {
1027
1085
  const n = new IndexedDBStorage();
1028
1086
  this.Storage = new Storage(n);
@@ -1618,7 +1676,7 @@ function ExpressFlow({ currentUser: r, calendars: t, selectedEventType: n }) {
1618
1676
  );
1619
1677
  }
1620
1678
  }
1621
- const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 0px 6px -2px rgba(0, 0, 0, 0.05), 0px 5px 15px -3px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}@media screen and (max-width: 768px){:host{width:-moz-available;width:-webkit-fill-available;width:fill-available;min-width:325px}}:host nylas-notification{position:absolute;top:0;right:0}div.scheduler-editor-content{height:800px}@media screen and (max-width: 768px){div.scheduler-editor-content{height:auto}}div.scheduler-editor-content--group{height:800px}@media screen and (max-width: 768px){div.scheduler-editor-content--group{height:auto}}div.scheduler-editor-header{display:grid;grid-template-columns:1fr auto auto;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid var(--nylas-base-200);color:var(--nylas-base-900);min-width:924px}@media screen and (max-width: 768px){div.scheduler-editor-header{width:auto;min-width:calc(325px - 1rem)}}div.scheduler-editor-header h1.scheduler-editor-title{display:flex;align-items:center;gap:0.5rem;margin:0;font-size:18px;line-height:24px;font-weight:600}div.scheduler-editor-header button{background:transparent;border:none;cursor:pointer}div.scheduler-editor-header button:hover,div.scheduler-editor-header button:active{color:var(--nylas-primary);background-color:transparent}div.scheduler-editor-header button:disabled{cursor:not-allowed}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button){border:none;padding:4px;margin-right:8px}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button):hover{outline:none;color:var(--nylas-primary)}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){min-width:132px}@media screen and (max-width: 768px){div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){width:-webkit-fill-available;width:fill-available;width:-moz-available}}nylas-select-event-type{height:inherit;width:calc(924px + 2rem)}@media screen and (max-width: 768px){nylas-select-event-type{width:auto}}nylas-editor-tabs,nylas-editor-tabs-group{width:auto;height:inherit}nylas-editor-tabs .row,nylas-editor-tabs-group .row{display:flex;gap:1rem}nylas-editor-tabs .composable,nylas-editor-tabs-group .composable{height:inherit;overflow:auto}nylas-editor-tabs nylas-event-info div[slot=inputs],nylas-editor-tabs nylas-event-limits div[slot=inputs],nylas-editor-tabs-group nylas-event-info div[slot=inputs],nylas-editor-tabs-group nylas-event-limits div[slot=inputs]{display:flex;flex-direction:column;gap:1rem}.card{display:flex;flex-direction:column;padding:2rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;max-width:fit-content;align-self:center}.login-required{height:inherit;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;padding:2rem 1rem;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.login-required{height:auto}}.login-required p{margin:0 0 1rem}.login-required .microsoft-button,.login-required .google-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;margin-bottom:1rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;justify-content:center;gap:0.5rem;align-items:center}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;border:0;background-color:var(--nylas-base-0);height:48px;margin-bottom:1rem;font-size:0.95rem;justify-content:center;gap:0.25rem;align-items:center}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button svg{transform:rotate(180deg)}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .disclaimer-text{font-size:0.75rem;color:var(--nylas-base-600);align-self:center}.list-configurations{padding:2rem;height:inherit;background:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.list-configurations{height:auto;padding:2rem 1rem}}.list-configurations nylas-list-configurations{height:inherit;display:flex;flex-direction:column}', NylasSchedulerEditorStyle0 = nylasSchedulerEditorCss, NylasSchedulerEditor = class {
1679
+ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 0px 6px -2px rgba(0, 0, 0, 0.05), 0px 5px 15px -3px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}@media screen and (max-width: 768px){:host{width:-moz-available;width:-webkit-fill-available;width:fill-available;min-width:325px}}:host nylas-notification{position:absolute;top:0;right:0}div.scheduler-editor-content{height:800px}@media screen and (max-width: 768px){div.scheduler-editor-content{height:auto}}div.scheduler-editor-content slot[name=login-required]{height:inherit}div.scheduler-editor-content--group{height:800px}@media screen and (max-width: 768px){div.scheduler-editor-content--group{height:auto}}div.scheduler-editor-header{display:grid;grid-template-columns:1fr auto auto;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid var(--nylas-base-200);color:var(--nylas-base-900);min-width:924px}@media screen and (max-width: 768px){div.scheduler-editor-header{width:auto;min-width:calc(325px - 1rem)}}div.scheduler-editor-header h1.scheduler-editor-title{display:flex;align-items:center;gap:0.5rem;margin:0;font-size:18px;line-height:24px;font-weight:600}div.scheduler-editor-header button{background:transparent;border:none;cursor:pointer;color:var(--nylas-base-900)}div.scheduler-editor-header button:hover,div.scheduler-editor-header button:active{color:var(--nylas-primary);background-color:transparent}div.scheduler-editor-header button:disabled{cursor:not-allowed}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button){border:none;padding:4px;margin-right:8px}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button):hover{outline:none;color:var(--nylas-primary)}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){min-width:132px}@media screen and (max-width: 768px){div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){width:-webkit-fill-available;width:fill-available;width:-moz-available}}nylas-select-event-type{height:inherit;width:calc(924px + 2rem)}@media screen and (max-width: 768px){nylas-select-event-type{width:auto}}nylas-editor-tabs,nylas-editor-tabs-group{width:auto;height:inherit}nylas-editor-tabs .row,nylas-editor-tabs-group .row{display:flex;gap:1rem}nylas-editor-tabs .composable,nylas-editor-tabs-group .composable{height:inherit;overflow:auto}nylas-editor-tabs nylas-event-info div[slot=inputs],nylas-editor-tabs nylas-event-limits div[slot=inputs],nylas-editor-tabs-group nylas-event-info div[slot=inputs],nylas-editor-tabs-group nylas-event-limits div[slot=inputs]{display:flex;flex-direction:column;gap:1rem}.card{display:flex;flex-direction:column;padding:2rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;color:var(--nylas-base-900);max-width:fit-content;align-self:center}.login-required{height:inherit;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;padding:2rem 1rem;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.login-required{height:auto}}.login-required p{margin:0 0 1rem}.login-required .microsoft-button,.login-required .google-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;margin-bottom:1rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;justify-content:center;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;border:0;background-color:var(--nylas-base-0);height:48px;margin-bottom:1rem;font-size:0.95rem;justify-content:center;gap:0.25rem;align-items:center;color:var(--nylas-base-900)}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button svg{transform:rotate(180deg)}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .disclaimer-text{font-size:0.75rem;color:var(--nylas-base-600);align-self:center}.list-configurations{padding:2rem;height:inherit;background:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.list-configurations{height:auto;padding:2rem 1rem}}.list-configurations nylas-list-configurations{height:inherit;display:flex;flex-direction:column}', NylasSchedulerEditorStyle0 = nylasSchedulerEditorCss, NylasSchedulerEditor = class {
1622
1680
  constructor(r) {
1623
1681
  registerInstance(this, r), this.init = createEvent(this, "init", 7), this.loggedIn = createEvent(this, "loggedIn", 7), this.loggedOut = createEvent(this, "loggedOut", 7), this.schedulerConfigCloseClicked = createEvent(this, "schedulerConfigCloseClicked", 7), this.handleSchedulerConfigCloseClicked = (t) => {
1624
1682
  const n = this.schedulerConfigCloseClicked.emit(this.host);
@@ -1629,7 +1687,7 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
1629
1687
  max_fairness: !0,
1630
1688
  max_availability: !0,
1631
1689
  group: !0
1632
- }, this.automaticComponentRegistration = !0, this.selectedLanguage = this.defaultLanguage || LANGUAGE_CODE.en, this.langVersion = 0, this.version = "2.0.4";
1690
+ }, this.themeConfig = void 0, this.automaticComponentRegistration = !0, this.selectedLanguage = this.defaultLanguage || LANGUAGE_CODE.en, this.langVersion = 0, this.version = "2.1.0";
1633
1691
  }
1634
1692
  connectedCallback() {
1635
1693
  debug("[nylas-scheduler-editor] connectedCallback");
@@ -1656,7 +1714,8 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
1656
1714
  selectedLanguage: this.defaultLanguage || LANGUAGE_CODE.en,
1657
1715
  nylasBranding: this.nylasBranding,
1658
1716
  experimentalFeatures: this.experimentalFeatures,
1659
- enableEventTypes: this.enableEventTypes
1717
+ enableEventTypes: this.enableEventTypes,
1718
+ themeConfig: this.themeConfig
1660
1719
  })
1661
1720
  }, !this.nylasApiRequest && this.nylasSessionsConfig) {
1662
1721
  const p = new NylasSessions(this.nylasSessionsConfig);
@@ -1664,8 +1723,8 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
1664
1723
  var y, w;
1665
1724
  const m = await ((w = (y = this.nylasSchedulerConfigConnector) == null ? void 0 : y.schedulerConfig) == null ? void 0 : w.currentUser());
1666
1725
  if (m) {
1667
- const _ = this.loggedIn.emit(this.host);
1668
- "loggedIn" in this.eventOverrides && await this.eventOverrides.loggedIn(_, this.nylasSchedulerConfigConnector), _.defaultPrevented || await this.loggedInHandler(m);
1726
+ const v = this.loggedIn.emit(this.host);
1727
+ "loggedIn" in this.eventOverrides && await this.eventOverrides.loggedIn(v, this.nylasSchedulerConfigConnector), v.defaultPrevented || await this.loggedInHandler(m);
1669
1728
  }
1670
1729
  }), p.onLoginFail(async () => {
1671
1730
  var y, w;
@@ -1695,11 +1754,11 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
1695
1754
  }
1696
1755
  (f = (u = this.stores) == null ? void 0 : u.schedulerConfig) == null || f.onChange("selectedConfiguration", async (p) => {
1697
1756
  p && p.id && (this.configurationId = p.id);
1698
- }), (g = this.baseProvider) == null || g.componentWillLoad(this.nylasSchedulerConfigConnector);
1757
+ }), (g = this.baseProvider) == null || g.componentWillLoad(this.nylasSchedulerConfigConnector), this.applyThemeConfig(this.themeConfig);
1699
1758
  }
1700
1759
  async componentDidLoad() {
1701
1760
  var r;
1702
- debug("[nylas-scheduler-editor] componentDidLoad"), await ((r = this.baseProvider) == null ? void 0 : r.componentDidLoad()), this.updateLocalization(this.localization), this.version = "2.0.4";
1761
+ debug("[nylas-scheduler-editor] componentDidLoad"), await ((r = this.baseProvider) == null ? void 0 : r.componentDidLoad()), this.updateLocalization(this.localization), this.version = "2.1.0";
1703
1762
  }
1704
1763
  async componentDisconnected() {
1705
1764
  var r;
@@ -1726,6 +1785,15 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
1726
1785
  var t, n;
1727
1786
  (n = (t = this.stores) == null ? void 0 : t.schedulerConfig) == null || n.set("enableEventTypes", r);
1728
1787
  }
1788
+ themeConfigChanged(r) {
1789
+ var t, n;
1790
+ (n = (t = this.baseProvider) == null ? void 0 : t.getStore("schedulerConfig")) == null || n.set("themeConfig", r), this.applyThemeConfig(r);
1791
+ }
1792
+ applyThemeConfig(r) {
1793
+ if (r)
1794
+ for (const [t, n] of Object.entries(r))
1795
+ this.host.style.setProperty(`${t}`, n);
1796
+ }
1729
1797
  async store() {
1730
1798
  var r;
1731
1799
  return (r = this.stores) == null ? void 0 : r.schedulerConfig;
@@ -1754,17 +1822,17 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
1754
1822
  }
1755
1823
  }
1756
1824
  render() {
1757
- var a, l, d, c, u, f, g, p, m, y, w, _, x, R, A, k, U, P, O, I, T, S, v, L, b, $, X, j, z, Y, M, V, J, W, Z, Q, ee, te, ne, se, re, oe, ie, ae;
1825
+ var a, l, d, c, u, f, g, p, m, y, w, v, x, R, A, I, U, N, O, k, T, S, _, L, b, $, X, j, z, Y, M, V, J, W, Z, Q, ee, te, ne, se, re, ie, oe, ae;
1758
1826
  const r = this.host.querySelector('[slot="custom-page-style-inputs"]'), t = (d = (l = (a = this.stores) == null ? void 0 : a.schedulerConfig) == null ? void 0 : l.state.selectedConfiguration) == null ? void 0 : d.id, n = Object.keys(LANGUAGE_MAP).map((q) => ({
1759
1827
  label: LANGUAGE_MAP[q],
1760
1828
  value: q
1761
1829
  })), s = ((u = (c = this.stores) == null ? void 0 : c.schedulerConfig) == null ? void 0 : u.state.selectedEventType) === CONFIGURATION_EVENT_TYPE.group || ((p = (g = (f = this.stores) == null ? void 0 : f.schedulerConfig) == null ? void 0 : g.state.selectedConfiguration) == null ? void 0 : p.type) === CONFIGURATION_EVENT_TYPE.group;
1762
- return h(Host, { key: "f2ff98b69f59cf94f68e0a72750db304d5f5781c" }, h("div", { key: "382bac7a0ba7735ce0c6704f825d8a18a3faf412", class: "scheduler-editor-header", part: "nse__header" }, h("h1", { key: "eb011947ed70b8f7b2bd73a1d57c8de743782acd", class: "scheduler-editor-title", part: "nse__title" }, h("calendar-icon", { key: "d6a3bdf5d3c7501e865c363a58cbfd78b9ee10b1", width: "18", height: "18" }), instance.t("schedulerEditorTitle"), h("tooltip-component", { key: "d2cde09b0b5ac91a306d81dba57838ce373cda92" }, h("info-icon", { key: "af00e8fa6ca5ef8baaaf5a9abdf14a7138b030fd", slot: "tooltip-icon" }), h("span", { key: "24a185bac54f44abf7ffe9bf3cd2723dc363a12f", slot: "tooltip-content" }, this.version))), h("div", { key: "6fdf10c991b049d0a96a09faddf056de7b80a1de", class: {
1830
+ return h(Host, { key: "8125ba9d8bbd8c1604ec4e57d769882137c7a6c5" }, h("div", { key: "51222baddda6bd200080440ac46c390b5c754734", class: "scheduler-editor-header", part: "nse__header" }, h("h1", { key: "91e8379a5068634421d8f272a5251ab578496e05", class: "scheduler-editor-title", part: "nse__title" }, h("calendar-icon", { key: "1c040d10dff4fc86d257e446c8228033b9a02032", width: "18", height: "18" }), instance.t("schedulerEditorTitle"), h("tooltip-component", { key: "1e6c30c0958fbc8dde357d03c597eb70ce35271f" }, h("info-icon", { key: "4ebd6aea27a62c33849659066860c5de75c0b7c7", slot: "tooltip-icon" }), h("span", { key: "4ddc14ba968a1d0053f5a5fb07473333186a8476", slot: "tooltip-content" }, this.version))), h("div", { key: "679bbc03e8d3e155f843ae86af0ec037ee8c2d05", class: {
1763
1831
  language: !0
1764
- }, part: "nse__language" }, h("select-dropdown", { key: "d733d65ad4fd639f94b5fde41ae32725949fe429", name: "language", searchPlaceholder: instance.t("search"), options: n, withChevron: !1, defaultSelectedOption: n.find((q) => q.value == this.selectedLanguage), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, h("span", { key: "9ae3abafd8aa09ec54f70c9d950eb1569eff6870", slot: "select-icon" }, h("translate-icon", { key: "e435ec08d11c784caca91cf97887e261409b559b", width: "20", height: "20" })))), h("button", { key: "2bd03fa6333f11f3da17f8ce1db6516a4f936a6f", class: "scheduler-editor-close", title: "logout", onClick: (q) => this.handleSchedulerConfigCloseClicked(q), part: "nse__close-button" }, h("close-icon", { key: "b7e1ab191b7bfd4c892e101c5662ebeb42ad67a2", width: "18", height: "18" }))), h("div", { key: "3a19a2dde27979aa7428a388e68b9eb8c8d266a2", class: {
1832
+ }, part: "nse__language" }, h("select-dropdown", { key: "9f788d9d39f2a190ef388cacca206374e19da11c", name: "language", searchPlaceholder: instance.t("search"), options: n, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: n.find((q) => q.value == this.selectedLanguage), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, h("span", { key: "76aa9b5b9adea974e1e8a7ac1f47faee3fc8a320", slot: "select-icon" }, h("translate-icon", { key: "9dd3b210004d04b42c3d0209db60414c6c86c54c", width: "20", height: "20" })))), h("button", { key: "fa401a8ffb5f77caae60852e7a7be15f21868002", class: "scheduler-editor-close", title: "logout", onClick: (q) => this.handleSchedulerConfigCloseClicked(q), part: "nse__close-button" }, h("close-icon", { key: "96135ba113ecdad2d3223cc8df293d46b62565e5", width: "18", height: "18" }))), h("div", { key: "48970044629cfeafd07b4ccdb34e8d3ab67e0076", class: {
1765
1833
  "scheduler-editor-content": !0,
1766
1834
  "scheduler-editor-content--group": s
1767
- }, part: "nse__content" }, ((y = (m = this.stores) == null ? void 0 : m.schedulerConfig) == null ? void 0 : y.state.currentUser) && this.stores.schedulerConfig.state.action === null && h("div", { class: "list-configurations", part: "nse__list-configurations" }, h("nylas-list-configurations", { exportparts: "nlc__create-new-cta, actions__dropdown, actions__dropdown-button, actions__dropdown-content, actions-Copy, actions-Preview, actions-Delete" })), ((_ = (w = this.stores) == null ? void 0 : w.schedulerConfig) == null ? void 0 : _.state.currentUser) && this.stores.schedulerConfig.state.action === "create-select" && h("nylas-select-event-type", null), ((R = (x = this.stores) == null ? void 0 : x.schedulerConfig) == null ? void 0 : R.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && s && h("nylas-editor-tabs-group", { mode: "composable" }, h(ExpressFlow, { selectedEventType: ((U = (k = (A = this.stores) == null ? void 0 : A.schedulerConfig) == null ? void 0 : k.state) == null ? void 0 : U.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (O = (P = this.stores) == null ? void 0 : P.schedulerConfig) == null ? void 0 : O.state.currentUser, calendars: (S = (T = (I = this.stores) == null ? void 0 : I.schedulerConfig) == null ? void 0 : T.state) == null ? void 0 : S.calendars, selectedConfiguration: (b = (L = (v = this.stores) == null ? void 0 : v.schedulerConfig) == null ? void 0 : L.state) == null ? void 0 : b.selectedConfiguration })), ((X = ($ = this.stores) == null ? void 0 : $.schedulerConfig) == null ? void 0 : X.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && !s && h("nylas-editor-tabs", { mode: "composable" }, h(ExpressFlow, { selectedEventType: ((Y = (z = (j = this.stores) == null ? void 0 : j.schedulerConfig) == null ? void 0 : z.state) == null ? void 0 : Y.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (V = (M = this.stores) == null ? void 0 : M.schedulerConfig) == null ? void 0 : V.state.currentUser, calendars: (Z = (W = (J = this.stores) == null ? void 0 : J.schedulerConfig) == null ? void 0 : W.state) == null ? void 0 : Z.calendars, selectedConfiguration: (te = (ee = (Q = this.stores) == null ? void 0 : Q.schedulerConfig) == null ? void 0 : ee.state) == null ? void 0 : te.selectedConfiguration })), ((se = (ne = this.stores) == null ? void 0 : ne.schedulerConfig) == null ? void 0 : se.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && s && h("nylas-editor-tabs-group", { key: t, mode: this.mode }, this.mode === "composable" && h("slot", null), this.mode === "app" && r && h("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: t }, h("slot", { name: "custom-page-style-inputs" }))), ((oe = (re = this.stores) == null ? void 0 : re.schedulerConfig) == null ? void 0 : oe.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && !s && h("nylas-editor-tabs", { key: t, mode: this.mode }, this.mode === "composable" && h("slot", null), this.mode === "app" && r && h("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: t }, h("slot", { name: "custom-page-style-inputs" }))), !((ae = (ie = this.stores) == null ? void 0 : ie.schedulerConfig) != null && ae.state.currentUser) && h("slot", { name: "login-required" }, h(LoginRequired, { authenticationUrl: this.authenticationUrl }))));
1835
+ }, part: "nse__content" }, ((y = (m = this.stores) == null ? void 0 : m.schedulerConfig) == null ? void 0 : y.state.currentUser) && this.stores.schedulerConfig.state.action === null && h("div", { class: "list-configurations", part: "nse__list-configurations" }, h("nylas-list-configurations", { exportparts: "nlc__create-new-cta, actions__dropdown, actions__dropdown-button, actions__dropdown-content, actions-Copy, actions-Preview, actions-Delete" })), ((v = (w = this.stores) == null ? void 0 : w.schedulerConfig) == null ? void 0 : v.state.currentUser) && this.stores.schedulerConfig.state.action === "create-select" && h("nylas-select-event-type", null), ((R = (x = this.stores) == null ? void 0 : x.schedulerConfig) == null ? void 0 : R.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && s && h("nylas-editor-tabs-group", { mode: "composable" }, h(ExpressFlow, { selectedEventType: ((U = (I = (A = this.stores) == null ? void 0 : A.schedulerConfig) == null ? void 0 : I.state) == null ? void 0 : U.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (O = (N = this.stores) == null ? void 0 : N.schedulerConfig) == null ? void 0 : O.state.currentUser, calendars: (S = (T = (k = this.stores) == null ? void 0 : k.schedulerConfig) == null ? void 0 : T.state) == null ? void 0 : S.calendars, selectedConfiguration: (b = (L = (_ = this.stores) == null ? void 0 : _.schedulerConfig) == null ? void 0 : L.state) == null ? void 0 : b.selectedConfiguration })), ((X = ($ = this.stores) == null ? void 0 : $.schedulerConfig) == null ? void 0 : X.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && !s && h("nylas-editor-tabs", { mode: "composable" }, h(ExpressFlow, { selectedEventType: ((Y = (z = (j = this.stores) == null ? void 0 : j.schedulerConfig) == null ? void 0 : z.state) == null ? void 0 : Y.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (V = (M = this.stores) == null ? void 0 : M.schedulerConfig) == null ? void 0 : V.state.currentUser, calendars: (Z = (W = (J = this.stores) == null ? void 0 : J.schedulerConfig) == null ? void 0 : W.state) == null ? void 0 : Z.calendars, selectedConfiguration: (te = (ee = (Q = this.stores) == null ? void 0 : Q.schedulerConfig) == null ? void 0 : ee.state) == null ? void 0 : te.selectedConfiguration })), ((se = (ne = this.stores) == null ? void 0 : ne.schedulerConfig) == null ? void 0 : se.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && s && h("nylas-editor-tabs-group", { key: t, mode: this.mode }, this.mode === "composable" && h("slot", null), this.mode === "app" && r && h("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: t }, h("slot", { name: "custom-page-style-inputs" }))), ((ie = (re = this.stores) == null ? void 0 : re.schedulerConfig) == null ? void 0 : ie.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && !s && h("nylas-editor-tabs", { key: t, mode: this.mode }, this.mode === "composable" && h("slot", null), this.mode === "app" && r && h("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: t }, h("slot", { name: "custom-page-style-inputs" }))), !((ae = (oe = this.stores) == null ? void 0 : oe.schedulerConfig) != null && ae.state.currentUser) && h("slot", { name: "login-required" }, h(LoginRequired, { authenticationUrl: this.authenticationUrl }))));
1768
1836
  }
1769
1837
  get host() {
1770
1838
  return getElement(this);
@@ -1775,7 +1843,8 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
1775
1843
  localization: ["updateLocalization"],
1776
1844
  nylasBranding: ["updateNylasBranding"],
1777
1845
  experimentalFeatures: ["updateExperimentalFeatures"],
1778
- enableEventTypes: ["updateEnableEventTypes"]
1846
+ enableEventTypes: ["updateEnableEventTypes"],
1847
+ themeConfig: ["themeConfigChanged"]
1779
1848
  };
1780
1849
  }
1781
1850
  };