@nylas/react 2.0.3 → 2.0.6

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 (148) hide show
  1. package/dist/{abstract-provider-bdb7d9b4-12a95387.cjs → abstract-provider-45ada3b4-31e3ed72.cjs} +1 -1
  2. package/dist/{abstract-provider-bdb7d9b4-22cf4a74.js → abstract-provider-45ada3b4-abd3105d.js} +1 -1
  3. package/dist/{add-circle-icon_2.entry-d56f519c.cjs → add-circle-icon_2.entry-48953f9c.cjs} +1 -1
  4. package/dist/{add-circle-icon_2.entry-0ff79148.js → add-circle-icon_2.entry-f6f8b5e5.js} +1 -1
  5. package/dist/{archive-icon.entry-aaff46ec.js → archive-icon.entry-b3a76711.js} +1 -1
  6. package/dist/{archive-icon.entry-6ab120ff.cjs → archive-icon.entry-e2880dc7.cjs} +1 -1
  7. package/dist/{arrow-icon.entry-d57cf44f.cjs → arrow-icon.entry-84d1e26c.cjs} +1 -1
  8. package/dist/{arrow-icon.entry-d8fcbc1f.js → arrow-icon.entry-9b3441aa.js} +1 -1
  9. package/dist/{bold-icon.entry-e48075a4.js → bold-icon.entry-0749a116.js} +1 -1
  10. package/dist/{bold-icon.entry-0f23543d.cjs → bold-icon.entry-e1d8ab5e.cjs} +1 -1
  11. package/dist/{button-component_2.entry-3d622397.cjs → button-component_2.entry-1a817230.cjs} +1 -1
  12. package/dist/{button-component_2.entry-5db80bec.js → button-component_2.entry-6eb55e97.js} +1 -1
  13. package/dist/calendar-agenda-fill-icon_37.entry-0ca8b9f4.cjs +6 -0
  14. package/dist/calendar-agenda-fill-icon_37.entry-4adf73a2.js +5231 -0
  15. package/dist/{calendar-cancel-icon.entry-8b43441c.js → calendar-cancel-icon.entry-2a29cb3f.js} +1 -1
  16. package/dist/{calendar-cancel-icon.entry-9546c7c3.cjs → calendar-cancel-icon.entry-e0dee585.cjs} +1 -1
  17. package/dist/{calendar-check-icon.entry-a03b249a.cjs → calendar-check-icon.entry-7f96d456.cjs} +1 -1
  18. package/dist/{calendar-check-icon.entry-4e6abda7.js → calendar-check-icon.entry-c12b63ea.js} +1 -1
  19. package/dist/{calendar-icon.entry-cd4b0ec4.cjs → calendar-icon.entry-a2d19ff2.cjs} +1 -1
  20. package/dist/{calendar-icon.entry-5b622c12.js → calendar-icon.entry-e82a5169.js} +1 -1
  21. package/dist/checkbox-component.entry-59612a67.js +52 -0
  22. package/dist/checkbox-component.entry-ddce70bc.cjs +1 -0
  23. package/dist/checkbox-group_4.entry-3311da64.cjs +28 -0
  24. package/dist/{checkbox-group_4.entry-b2a5b2b2.js → checkbox-group_4.entry-7df47ad4.js} +287 -246
  25. package/dist/{checkmark-circle-icon.entry-30582af4.js → checkmark-circle-icon.entry-677b0def.js} +1 -1
  26. package/dist/{checkmark-circle-icon.entry-9617301c.cjs → checkmark-circle-icon.entry-67df713b.cjs} +1 -1
  27. package/dist/checkmark-icon_15.entry-2121e1b7.cjs +5 -0
  28. package/dist/checkmark-icon_15.entry-9fd0ec58.js +1412 -0
  29. package/dist/chevron-icon_3.entry-1a42235c.cjs +1 -0
  30. package/dist/{chevron-icon_3.entry-517447a6.js → chevron-icon_3.entry-f0ad71d9.js} +19 -10
  31. package/dist/{clock-icon_4.entry-5351318c.cjs → clock-icon_4.entry-88822a84.cjs} +1 -1
  32. package/dist/{clock-icon_4.entry-7ea1274d.js → clock-icon_4.entry-e7472d5f.js} +1 -1
  33. package/dist/{customParseFormat-f0d21eb3-904f1e57.js → customParseFormat-eeec04f5-3ad26beb.js} +1 -1
  34. package/dist/{customParseFormat-f0d21eb3-769d6bf2.cjs → customParseFormat-eeec04f5-d5957784.cjs} +1 -1
  35. package/dist/{delete-icon.entry-64b61f5c.cjs → delete-icon.entry-3cb58910.cjs} +1 -1
  36. package/dist/{delete-icon.entry-02e44ba1.js → delete-icon.entry-813429d7.js} +1 -1
  37. package/dist/{document-refresh-icon.entry-2f599a22.cjs → document-refresh-icon.entry-ae361b0b.cjs} +1 -1
  38. package/dist/{document-refresh-icon.entry-fcaa84ad.js → document-refresh-icon.entry-c224c778.js} +1 -1
  39. package/dist/{feedbackSync-b9c9e719-b54b3268.js → feedbackSync-0ebd0eda-803c3ebe.js} +1 -1
  40. package/dist/{feedbackSync-b9c9e719-bee3fea1.cjs → feedbackSync-0ebd0eda-e12b00d5.cjs} +1 -1
  41. package/dist/{folder-icon.entry-55c123dc.cjs → folder-icon.entry-107841af.cjs} +1 -1
  42. package/dist/{folder-icon.entry-f4862c1b.js → folder-icon.entry-9c1f7c41.js} +1 -1
  43. package/dist/{forward-icon.entry-4a41e94f.js → forward-icon.entry-4ac22c16.js} +1 -1
  44. package/dist/{forward-icon.entry-82719382.cjs → forward-icon.entry-6cec1f94.cjs} +1 -1
  45. package/dist/globe-icon.entry-7798c93b.js +16 -0
  46. package/dist/globe-icon.entry-909c1382.cjs +1 -0
  47. package/dist/google-logo-icon_6.entry-1f4ad364.cjs +2 -0
  48. package/dist/{google-logo-icon_6.entry-b331ab60.js → google-logo-icon_6.entry-b198c90a.js} +332 -282
  49. package/dist/{google-meet-icon_5.entry-e3d44d56.cjs → google-meet-icon_5.entry-82d87e77.cjs} +1 -1
  50. package/dist/{google-meet-icon_5.entry-eb9f7d93.js → google-meet-icon_5.entry-fa6dc1dc.js} +1 -1
  51. package/dist/{inbox-icon.entry-a385095d.js → inbox-icon.entry-1b123e64.js} +1 -1
  52. package/dist/{inbox-icon.entry-fa9085cd.cjs → inbox-icon.entry-84f96d31.cjs} +1 -1
  53. package/dist/{index-ad781fbc.js → index-140eb219.js} +6753 -6439
  54. package/dist/index-d8a42c15.cjs +118 -0
  55. package/dist/{index.es-ccb2a286-dfa2bfbe.js → index.es-57d4a08f-184cbc01.js} +1 -1
  56. package/dist/{index.es-ccb2a286-9a2c0934.cjs → index.es-57d4a08f-b0a2ca19.cjs} +1 -1
  57. package/dist/info-icon_2.entry-f09e7dae.cjs +1 -0
  58. package/dist/info-icon_2.entry-f8b72d08.js +35 -0
  59. package/dist/input-component.entry-44607977.js +93 -0
  60. package/dist/input-component.entry-fd38953d.cjs +1 -0
  61. package/dist/input-dropdown_2.entry-4c2e5e1a.cjs +1 -0
  62. package/dist/{input-dropdown_2.entry-1b55ef0c.js → input-dropdown_2.entry-6898b420.js} +30 -9
  63. package/dist/{italic-icon.entry-4266a817.js → italic-icon.entry-16aa1ada.js} +1 -1
  64. package/dist/{italic-icon.entry-843feb2b.cjs → italic-icon.entry-beef2254.cjs} +1 -1
  65. package/dist/lib/elements/index.d.ts +1 -0
  66. package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +3 -2
  67. package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +2 -0
  68. package/dist/lib/notetaker/lib/store.d.ts +1 -2
  69. package/dist/multi-select-dropdown.entry-50133d29.js +130 -0
  70. package/dist/multi-select-dropdown.entry-c82cd6d4.cjs +1 -0
  71. package/dist/{nylas-booked-event-card_11.entry-ccf30d91.js → nylas-booked-event-card_11.entry-56768a09.js} +69 -69
  72. package/dist/nylas-booked-event-card_11.entry-eb4b3c5c.cjs +1 -0
  73. package/dist/nylas-date-component_2.entry-93f2f352.cjs +1 -0
  74. package/dist/nylas-date-component_2.entry-df957150.js +307 -0
  75. package/dist/nylas-form-card.entry-4d95a4ad.cjs +1 -0
  76. package/dist/nylas-form-card.entry-7724e61f.js +72 -0
  77. package/dist/nylas-notification_2.entry-448c2cb8.cjs +1 -0
  78. package/dist/nylas-notification_2.entry-af763b6c.js +85 -0
  79. package/dist/{nylas-scheduler-editor.entry-aa079dff.js → nylas-scheduler-editor.entry-0e4ba46d.js} +45 -34
  80. package/dist/{nylas-scheduler-editor.entry-9744694a.cjs → nylas-scheduler-editor.entry-e36cdd9d.cjs} +2 -2
  81. package/dist/{nylas-scheduling.entry-7441979c.js → nylas-scheduling.entry-1b207e91.js} +196 -185
  82. package/dist/nylas-scheduling.entry-904dd10e.cjs +1 -0
  83. package/dist/{person-icon.entry-acf4d22b.cjs → person-icon.entry-70d46ca6.cjs} +1 -1
  84. package/dist/{person-icon.entry-23a69633.js → person-icon.entry-f2979577.js} +1 -1
  85. package/dist/{play-icon.entry-aa088180.cjs → play-icon.entry-c2cf0b12.cjs} +1 -1
  86. package/dist/{play-icon.entry-4e7884d4.js → play-icon.entry-d387df5d.js} +1 -1
  87. package/dist/radio-button-group.entry-45dbd2df.js +56 -0
  88. package/dist/radio-button-group.entry-94e06176.cjs +1 -0
  89. package/dist/react.cjs +1 -1
  90. package/dist/react.js +41 -40
  91. package/dist/{refresh-icon.entry-96cb008f.cjs → refresh-icon.entry-5ab20f26.cjs} +1 -1
  92. package/dist/{refresh-icon.entry-d1603555.js → refresh-icon.entry-777cff27.js} +1 -1
  93. package/dist/{register-component-9d4ceee5-46f58baf.js → register-component-0aad9e3d-b395364a.js} +1 -1
  94. package/dist/{register-component-9d4ceee5-6fabc42c.cjs → register-component-0aad9e3d-d2f2e543.cjs} +1 -1
  95. package/dist/{reply-all-icon.entry-537f7718.cjs → reply-all-icon.entry-3c90510e.cjs} +1 -1
  96. package/dist/{reply-all-icon.entry-6fae7288.js → reply-all-icon.entry-e2dd6da9.js} +1 -1
  97. package/dist/{reply-icon.entry-ae114e35.js → reply-icon.entry-00a97d9f.js} +1 -1
  98. package/dist/{reply-icon.entry-72fa6e4c.cjs → reply-icon.entry-d96478be.cjs} +1 -1
  99. package/dist/{sent-icon.entry-30a6ac17.cjs → sent-icon.entry-2d16da4e.cjs} +1 -1
  100. package/dist/{sent-icon.entry-b10d5e26.js → sent-icon.entry-949cf214.js} +1 -1
  101. package/dist/{spam-icon.entry-bed45849.js → spam-icon.entry-3baf9e79.js} +1 -1
  102. package/dist/{spam-icon.entry-357aa525.cjs → spam-icon.entry-7ee61730.cjs} +1 -1
  103. package/dist/{star-icon.entry-010349a5.js → star-icon.entry-9fdb278b.js} +1 -1
  104. package/dist/{star-icon.entry-53c85ebb.cjs → star-icon.entry-dc702d73.cjs} +1 -1
  105. package/dist/{stop-icon.entry-20af3bf5.cjs → stop-icon.entry-b5ae7e55.cjs} +1 -1
  106. package/dist/{stop-icon.entry-18f650bf.js → stop-icon.entry-efa1ea66.js} +1 -1
  107. package/dist/textarea-component.entry-247aca42.cjs +1 -0
  108. package/dist/textarea-component.entry-7c6fc4d8.js +55 -0
  109. package/dist/toggle-switch.entry-a0295d17.js +49 -0
  110. package/dist/toggle-switch.entry-d52b0338.cjs +1 -0
  111. package/dist/{translate-icon.entry-2308a8e4.js → translate-icon.entry-219cab17.js} +1 -1
  112. package/dist/{translate-icon.entry-7cb7a479.cjs → translate-icon.entry-985b3b29.cjs} +1 -1
  113. package/dist/{trash-fill-icon.entry-7f410c82.js → trash-fill-icon.entry-03c90559.js} +1 -1
  114. package/dist/{trash-fill-icon.entry-c70b9326.cjs → trash-fill-icon.entry-4dfd7d24.cjs} +1 -1
  115. package/dist/{underline-icon.entry-58ef1a9f.js → underline-icon.entry-58fa18b5.js} +1 -1
  116. package/dist/{underline-icon.entry-23f478f3.cjs → underline-icon.entry-c60b77a6.cjs} +1 -1
  117. package/package.json +3 -3
  118. package/dist/calendar-agenda-fill-icon_36.entry-75d7cd5b.cjs +0 -6
  119. package/dist/calendar-agenda-fill-icon_36.entry-78fc2e0d.js +0 -4708
  120. package/dist/checkbox-component_2.entry-82f4b1f2.js +0 -115
  121. package/dist/checkbox-component_2.entry-c9c8a87d.cjs +0 -1
  122. package/dist/checkbox-group_4.entry-5a4f0ed2.cjs +0 -28
  123. package/dist/checkmark-icon_15.entry-01536ed2.js +0 -1339
  124. package/dist/checkmark-icon_15.entry-c5eaad9b.cjs +0 -5
  125. package/dist/chevron-icon_3.entry-26f14744.cjs +0 -1
  126. package/dist/globe-icon_2.entry-3f0e408e.cjs +0 -1
  127. package/dist/globe-icon_2.entry-8f5c79b2.js +0 -210
  128. package/dist/google-logo-icon_6.entry-9c91c3d4.cjs +0 -2
  129. package/dist/index-dc6efb5e.cjs +0 -118
  130. package/dist/info-icon_2.entry-9f32753b.cjs +0 -1
  131. package/dist/info-icon_2.entry-c18a111e.js +0 -35
  132. package/dist/input-component.entry-eae64f46.js +0 -84
  133. package/dist/input-component.entry-ff9e04c9.cjs +0 -1
  134. package/dist/input-dropdown_2.entry-67d6d292.cjs +0 -1
  135. package/dist/multi-select-dropdown.entry-854265ef.js +0 -121
  136. package/dist/multi-select-dropdown.entry-ca9acf75.cjs +0 -1
  137. package/dist/nylas-booked-event-card_11.entry-8d3e2019.cjs +0 -1
  138. package/dist/nylas-form-card.entry-481ede48.js +0 -58
  139. package/dist/nylas-form-card.entry-58162c72.cjs +0 -1
  140. package/dist/nylas-notification_2.entry-7d3ed3b0.js +0 -85
  141. package/dist/nylas-notification_2.entry-dffa3ff6.cjs +0 -1
  142. package/dist/nylas-scheduling.entry-b1fcb48f.cjs +0 -1
  143. package/dist/radio-button-group.entry-243d7988.js +0 -47
  144. package/dist/radio-button-group.entry-cea225c8.cjs +0 -1
  145. package/dist/textarea-component.entry-b19642f1.cjs +0 -1
  146. package/dist/textarea-component.entry-e6120440.js +0 -39
  147. package/dist/toggle-switch.entry-32b0e964.js +0 -34
  148. package/dist/toggle-switch.entry-becdda2c.cjs +0 -1
@@ -1,12 +1,12 @@
1
- import { r as te, h as n, a as _, b, i, q as _e, s as le, H as ce, g as pe, F as de, j as nt } from "./index-ad781fbc.js";
2
- import { R as be } from "./register-component-9d4ceee5-46f58baf.js";
3
- import { n as v } from "./index.es-ccb2a286-dfa2bfbe.js";
4
- import { C as z, D as $e, e as at, b as ot } from "./constants-f51538ef-e0a5f026.js";
5
- import { E as w, i as Je, a as Ve, c as Ze, b as We, f as qe } from "./feedbackSync-b9c9e719-b54b3268.js";
1
+ import { r as te, h as n, a as m, b, i, q as _e, s as le, H as ce, g as pe, F as de, j as at } from "./index-140eb219.js";
2
+ import { R as be } from "./register-component-0aad9e3d-b395364a.js";
3
+ import { n as _ } from "./index.es-57d4a08f-184cbc01.js";
4
+ import { C as I, D as $e, e as ot, b as st } from "./constants-f51538ef-e0a5f026.js";
5
+ import { E as v, i as Je, a as Ve, c as Ze, b as We, f as qe } from "./feedbackSync-0ebd0eda-803c3ebe.js";
6
6
  import "react";
7
7
  import "react/jsx-runtime";
8
8
  import "react-dom";
9
- const st = ".sc-google-logo-icon-h{display:flex}", rt = st, it = class {
9
+ const rt = ".sc-google-logo-icon-h{display:flex}", it = rt, lt = class {
10
10
  constructor(e) {
11
11
  te(this, e), this.width = "24", this.height = "24";
12
12
  }
@@ -14,8 +14,8 @@ const st = ".sc-google-logo-icon-h{display:flex}", rt = st, it = class {
14
14
  return n("svg", { key: "eb0615e5875a4d560edb09dd85fcf0b8bbeb5458", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "7d040d5b5bc8cf89eabff2ed2695f99bea692b4e", "clip-path": "url(#clip0_959_12452)" }, n("path", { key: "4ddc28c0799291a0c23538444f1c7f5a35959cac", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), n("path", { key: "d5b051bacfa0110b66c99273ba6fd591a68237d1", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), n("path", { key: "6fc0685305b1c96ce35fbf87ccab73f161d648c0", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), n("path", { key: "5946c791195dd03d48b4938d8698ba8e01a7a0b3", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), n("defs", { key: "9d33e98420dbd0f952496686fd02f41894ab49f4" }, n("clipPath", { key: "dd192b07d7651bbd74375c1a31e0f3027d9b9a10", id: "clip0_959_12452" }, n("rect", { key: "98c2344df7d506d2579cd793d89fb42feeace8fd", width: 24, height: 24, fill: "white" }))));
15
15
  }
16
16
  };
17
- it.style = rt;
18
- const lt = ".sc-microsoft-logo-icon-h{display:flex}", dt = lt, ct = class {
17
+ lt.style = it;
18
+ const dt = ".sc-microsoft-logo-icon-h{display:flex}", ct = dt, pt = class {
19
19
  constructor(e) {
20
20
  te(this, e), this.width = "22", this.height = "22";
21
21
  }
@@ -23,12 +23,12 @@ const lt = ".sc-microsoft-logo-icon-h{display:flex}", dt = lt, ct = class {
23
23
  return n("svg", { key: "a6a6af29ed81710f3f493d849c90871991e0be0f", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { key: "025c40cab8337a37897481fb47580f219b3ad528", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), n("path", { key: "d7e67a46de5217cfa54f8973616616a9fd4fb474", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), n("path", { key: "2f4162db32fb29afb4f88c3070e59e8dc574a732", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), n("path", { key: "4ec074b89f50e66765e199ae112d063ca21b541a", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
24
24
  }
25
25
  };
26
- ct.style = dt;
26
+ pt.style = ct;
27
27
  var u;
28
28
  (function(e) {
29
29
  e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
30
30
  })(u || (u = {}));
31
- function pt({ id: e, formState: t, activeTab: a }, s) {
31
+ function bt({ id: e, formState: t, activeTab: a }, s) {
32
32
  return n(
33
33
  de,
34
34
  null,
@@ -116,8 +116,8 @@ function pt({ id: e, formState: t, activeTab: a }, s) {
116
116
  )
117
117
  );
118
118
  }
119
- const bt = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.save-changes.sc-nylas-editor-tabs{min-width:140px}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', ut = bt;
120
- var ht = function(e, t, a, s) {
119
+ const ut = '.sc-nylas-editor-tabs-h{display:block;--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}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden;transition:opacity 0.05s ease-in;opacity:0}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.fadeIn.sc-nylas-editor-tabs{opacity:1}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.save-changes.sc-nylas-editor-tabs{min-width:140px}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', ht = ut;
120
+ var yt = function(e, t, a, s) {
121
121
  var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
122
122
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
123
123
  r = Reflect.decorate(e, t, a, s);
@@ -131,15 +131,15 @@ var ht = function(e, t, a, s) {
131
131
  };
132
132
  const Ke = class {
133
133
  constructor(e) {
134
- te(this, e), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = _(this, "schedulerConfigCreated", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = _(this, "schedulerEditorFormUpdated", 7), this.nylasSchedulerError = _(this, "nylasSchedulerError", 6), this.dismissNotification = _(this, "dismissNotification", 7), this.formSubmissionHandler = async (t) => {
135
- var ve, we, ke, Ce, xe, Ee, Se, Te, Le, Fe, Oe, Be, Pe, He, Ne, ze, Ie;
134
+ te(this, e), this.schedulerConfigChanged = m(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = m(this, "schedulerConfigCreated", 7), this.cancelButtonClick = m(this, "cancelButtonClick", 7), this.formSubmitted = m(this, "formSubmitted", 7), this.previewButtonClicked = m(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = m(this, "schedulerEditorFormUpdated", 7), this.nylasSchedulerError = m(this, "nylasSchedulerError", 6), this.dismissNotification = m(this, "dismissNotification", 7), this.formSubmissionHandler = async (t) => {
135
+ var ve, Ce, we, ke, xe, Ee, Se, Te, Le, Fe, Oe, Be, Pe, He, Ne, ze, Ie;
136
136
  t.preventDefault();
137
137
  const a = await this.formSubmitted.emit();
138
138
  if (b("[nylas-editor-tabs]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
139
139
  this.setError({
140
140
  message: this.formRef.validationMessage || i.t("fixFormErrors"),
141
- type: v.Error,
142
- category: w.Component,
141
+ type: _.Error,
142
+ category: v.Component,
143
143
  title: i.t("nylasEditorTabs.formErrorTitle")
144
144
  });
145
145
  return;
@@ -147,10 +147,10 @@ const Ke = class {
147
147
  this.isLoading = !0, this.hasUnsavedChanges = !1;
148
148
  const l = this.updateFormState();
149
149
  b("[nylas-editor-tabs]", "formState", l);
150
- const { title: r, description: o, duration: d, availability: c, bookingCalendar: p, location: h, bookingType: m, buffer: k, availableDaysInFuture: S, minCancellationNotice: F, minBookingNotice: I, cancellationPolicy: P, timeslotInterval: T, additionalGuestsHidden: H, hideCancellationOptions: G, hideReschedulingOptions: j, participants: L, participantOpenHours: x, additionalFields: M, participantCalendars: y, conferencing: U, participantBookingCalendars: C, reminders: $, emailTemplate: D, redirectUrl: J, availabilityMethod: N, slug: V, appearance: Z, name: Q, disableEmails: W, organizerLocale: X } = l, E = ((we = (ve = this.selectedConfiguration) == null ? void 0 : ve.participants) == null ? void 0 : we.find((f) => f.is_organizer)) || (L == null ? void 0 : L.find((f) => f.is_organizer)), A = y && (E != null && E.email) ? y[E == null ? void 0 : E.email] : [], K = ((ke = E == null ? void 0 : E.booking) == null ? void 0 : ke.calendar_id) || p, O = d ? parseInt(d) : 30, B = L && (L == null ? void 0 : L.length) > 0 ? L : [
150
+ const { title: r, description: o, duration: d, availability: c, bookingCalendar: p, location: h, bookingType: f, buffer: w, availableDaysInFuture: T, minCancellationNotice: O, minBookingNotice: U, cancellationPolicy: N, timeslotInterval: L, additionalGuestsHidden: z, hideCancellationOptions: D, hideReschedulingOptions: R, participants: F, participantOpenHours: E, participantSpecificDateOpenHours: B, additionalFields: C, participantCalendars: k, conferencing: A, participantBookingCalendars: S, reminders: $, emailTemplate: j, redirectUrl: G, availabilityMethod: J, slug: Z, appearance: Y, name: q, disableEmails: Q, organizerLocale: X } = l, x = ((Ce = (ve = this.selectedConfiguration) == null ? void 0 : ve.participants) == null ? void 0 : Ce.find((y) => y.is_organizer)) || (F == null ? void 0 : F.find((y) => y.is_organizer)), V = k && (x != null && x.email) ? k[x == null ? void 0 : x.email] : [], P = ((we = x == null ? void 0 : x.booking) == null ? void 0 : we.calendar_id) || p, H = d ? parseInt(d) : 30, M = F && (F == null ? void 0 : F.length) > 0 ? F : [
151
151
  {
152
- name: (E == null ? void 0 : E.name) ?? ((Ce = this.currentUser) == null ? void 0 : Ce.name) ?? "",
153
- email: (E == null ? void 0 : E.email) ?? ((xe = this.currentUser) == null ? void 0 : xe.email) ?? "",
152
+ name: (x == null ? void 0 : x.name) ?? ((ke = this.currentUser) == null ? void 0 : ke.name) ?? "",
153
+ email: (x == null ? void 0 : x.email) ?? ((xe = this.currentUser) == null ? void 0 : xe.email) ?? "",
154
154
  is_organizer: !0,
155
155
  timezone: (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
156
156
  availability: {
@@ -162,53 +162,55 @@ const Ke = class {
162
162
  }
163
163
  }
164
164
  ];
165
- let R = N || (((Te = (Se = (Ee = this.selectedConfiguration) == null ? void 0 : Ee.availability) == null ? void 0 : Se.availability_rules) == null ? void 0 : Te.availability_method) ?? "collective");
166
- this.selectedEventType && this.selectedEventType !== z.group && (R = this.selectedEventType === z.one_on_one ? z.collective : this.selectedEventType), console.log("availabilityMethodSelected", R);
167
- const Y = {
165
+ let K = J || (((Te = (Se = (Ee = this.selectedConfiguration) == null ? void 0 : Ee.availability) == null ? void 0 : Se.availability_rules) == null ? void 0 : Te.availability_method) ?? "collective");
166
+ this.selectedEventType && this.selectedEventType !== I.group && (K = this.selectedEventType === I.one_on_one ? I.collective : this.selectedEventType);
167
+ const ne = {
168
168
  ...((Le = this.selectedConfiguration) == null ? void 0 : Le.id) && { id: this.selectedConfiguration.id },
169
169
  version: ((Fe = this.selectedConfiguration) == null ? void 0 : Fe.version) ?? "1.0.0",
170
- slug: V,
171
- name: Q,
170
+ slug: Z,
171
+ name: q,
172
172
  availability: {
173
- duration_minutes: O,
174
- interval_minutes: (T == null ? void 0 : T.interval) ?? O,
175
- round_to: T == null ? void 0 : T.roundTo,
173
+ duration_minutes: H,
174
+ interval_minutes: (L == null ? void 0 : L.interval) ?? H,
175
+ round_to: L == null ? void 0 : L.roundTo,
176
176
  availability_rules: {
177
- availability_method: R,
178
- buffer: k || { before: 0, after: 0 },
177
+ availability_method: K,
178
+ buffer: w || { before: 0, after: 0 },
179
179
  default_open_hours: (c == null ? void 0 : c.openHours) ?? ((Pe = (Be = (Oe = this.selectedConfiguration) == null ? void 0 : Oe.availability) == null ? void 0 : Be.availability_rules) == null ? void 0 : Pe.default_open_hours) ?? $e,
180
180
  round_robin_group_id: ((ze = (Ne = (He = this.selectedConfiguration) == null ? void 0 : He.availability) == null ? void 0 : Ne.availability_rules) == null ? void 0 : ze.round_robin_group_id) ?? ""
181
181
  }
182
182
  },
183
183
  participants: [
184
- ...B ? B.map((f) => {
184
+ ...M ? M.map((y) => {
185
185
  var Ge, Ue, De, Re, je, Me;
186
186
  let ee = (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
187
- if ((Ge = x == null ? void 0 : x[f.email]) != null && Ge.length && (ee = (De = (Ue = x == null ? void 0 : x[f.email]) == null ? void 0 : Ue[0]) == null ? void 0 : De.timezone), f.is_organizer) {
188
- const Ae = C != null && C[f.email] ? C == null ? void 0 : C[f.email] : K || "primary", he = y != null && y[f.email] ? y == null ? void 0 : y[f.email] : A != null && A.length ? A : ["primary"], tt = he.length === 1 && he[0] === "primary";
187
+ if ((Ge = E == null ? void 0 : E[y.email]) != null && Ge.length && (ee = (De = (Ue = E == null ? void 0 : E[y.email]) == null ? void 0 : Ue[0]) == null ? void 0 : De.timezone), y.is_organizer) {
188
+ const Ae = S != null && S[y.email] ? S == null ? void 0 : S[y.email] : P || "primary", he = k != null && k[y.email] ? k == null ? void 0 : k[y.email] : V != null && V.length ? V : ["primary"], nt = he.length === 1 && he[0] === "primary";
189
189
  return {
190
- name: f.name ?? "",
191
- email: f.email,
190
+ name: y.name ?? "",
191
+ email: y.email,
192
192
  is_organizer: !0,
193
193
  timezone: ee,
194
194
  availability: {
195
- calendar_ids: tt ? [Ae] : he,
196
- open_hours: (x == null ? void 0 : x[f.email]) ?? ((Re = f.availability) == null ? void 0 : Re.open_hours) ?? []
195
+ calendar_ids: nt ? [Ae] : he,
196
+ open_hours: (E == null ? void 0 : E[y.email]) ?? ((Re = y.availability) == null ? void 0 : Re.open_hours) ?? []
197
197
  },
198
+ specific_date_open_hours: (B == null ? void 0 : B[y.email]) ?? y.specific_date_open_hours ?? [],
198
199
  booking: {
199
200
  calendar_id: Ae
200
201
  }
201
202
  };
202
203
  }
203
- const ne = C != null && C[f.email] ? { calendar_id: C == null ? void 0 : C[f.email] } : (f == null ? void 0 : f.booking) ?? void 0, ue = (y == null ? void 0 : y[f.email]) ?? ((je = f.availability) == null ? void 0 : je.calendar_ids) ?? ["primary"], et = ue.length === 1 && ue[0] === "primary";
204
+ const ae = S != null && S[y.email] ? { calendar_id: S == null ? void 0 : S[y.email] } : (y == null ? void 0 : y.booking) ?? void 0, ue = (k == null ? void 0 : k[y.email]) ?? ((je = y.availability) == null ? void 0 : je.calendar_ids) ?? ["primary"], tt = ue.length === 1 && ue[0] === "primary";
204
205
  return {
205
- ...f,
206
+ ...y,
206
207
  timezone: ee,
207
- availability: f.availability ? {
208
- calendar_ids: et && typeof ne < "u" ? [ne == null ? void 0 : ne.calendar_id] : ue,
209
- open_hours: (x == null ? void 0 : x[f.email]) ?? ((Me = f.availability) == null ? void 0 : Me.open_hours) ?? []
208
+ availability: y.availability ? {
209
+ calendar_ids: tt && typeof ae < "u" ? [ae == null ? void 0 : ae.calendar_id] : ue,
210
+ open_hours: (E == null ? void 0 : E[y.email]) ?? ((Me = y.availability) == null ? void 0 : Me.open_hours) ?? []
210
211
  } : void 0,
211
- booking: ne
212
+ booking: ae,
213
+ specific_date_open_hours: (B == null ? void 0 : B[y.email]) ?? y.specific_date_open_hours ?? []
212
214
  };
213
215
  }) : []
214
216
  ],
@@ -216,40 +218,40 @@ const Ke = class {
216
218
  title: (r == null ? void 0 : r.toString()) ?? "",
217
219
  description: (o == null ? void 0 : o.toString()) ?? "",
218
220
  location: (h == null ? void 0 : h.toString()) ?? "",
219
- booking_type: (m == null ? void 0 : m.toString()) ?? "booking",
221
+ booking_type: (f == null ? void 0 : f.toString()) ?? "booking",
220
222
  timezone: (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
221
- conferencing: U,
223
+ conferencing: A,
222
224
  reminders: $,
223
- disable_emails: typeof W == "boolean" ? W : !1
225
+ disable_emails: typeof Q == "boolean" ? Q : !1
224
226
  },
225
227
  scheduler: {
226
- cancellation_policy: P ?? "",
227
- available_days_in_future: S ?? 30,
228
- min_cancellation_notice: F ?? 0,
229
- min_booking_notice: I ?? 60,
230
- hide_additional_guests: H ?? !1,
231
- hide_cancellation_options: G ?? !1,
232
- hide_rescheduling_options: j ?? !1,
233
- additional_fields: M,
234
- email_template: D ? {
235
- ...D,
228
+ cancellation_policy: N ?? "",
229
+ available_days_in_future: T ?? 30,
230
+ min_cancellation_notice: O ?? 0,
231
+ min_booking_notice: U ?? 60,
232
+ hide_additional_guests: z ?? !1,
233
+ hide_cancellation_options: D ?? !1,
234
+ hide_rescheduling_options: R ?? !1,
235
+ additional_fields: C,
236
+ email_template: j ? {
237
+ ...j,
236
238
  organizer_locale: X || "en",
237
- logo: D.logo || ""
239
+ logo: j.logo || ""
238
240
  } : void 0,
239
- confirmation_redirect_url: J
241
+ confirmation_redirect_url: G
240
242
  },
241
- appearance: Z
242
- }, ae = _e(this.selectedConfiguration, Y || {}), q = this.action === "create" ? ae : Y;
243
- this.isConfigRoundRobin(q) && (q.participants = q.participants.map((f) => ({ ...f, is_organizer: void 0 })));
244
- const oe = (f) => {
243
+ appearance: Y
244
+ }, oe = _e(this.selectedConfiguration, ne || {}), W = this.action === "create" ? oe : ne;
245
+ this.isConfigRoundRobin(W) && (W.participants = W.participants.map((y) => ({ ...y, is_organizer: void 0 })));
246
+ const se = (y) => {
245
247
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
246
248
  this.changesSaved = !1;
247
249
  }, 5e3);
248
- }, se = this.checkForBookingFormErrors(q), re = ((Ie = this.configurations) == null ? void 0 : Ie.find((f) => {
250
+ }, re = this.checkForBookingFormErrors(W), ie = ((Ie = this.configurations) == null ? void 0 : Ie.find((y) => {
249
251
  var ee;
250
- return f.id === ((ee = this.selectedConfiguration) == null ? void 0 : ee.id);
251
- })) || {}, ie = this.checkForOrganizerConfirmationError(_e(q, re));
252
- se || ie || this.schedulerConfigChanged.emit({ config: q, resetLoadingState: oe, action: this.action, host: this.host });
252
+ return y.id === ((ee = this.selectedConfiguration) == null ? void 0 : ee.id);
253
+ })) || {}, et = this.checkForOrganizerConfirmationError(_e(W, ie));
254
+ re || et || this.schedulerConfigChanged.emit({ config: W, resetLoadingState: se, action: this.action, host: this.host });
253
255
  }, this.isConfigRoundRobin = (t) => {
254
256
  var a, s, l, r;
255
257
  return ((s = (a = t == null ? void 0 : t.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : s.availability_method) === "max-availability" || ((r = (l = t.availability) == null ? void 0 : l.availability_rules) == null ? void 0 : r.availability_method) === "max-fairness";
@@ -259,8 +261,8 @@ const Ke = class {
259
261
  const l = ((o = t.event_booking) == null ? void 0 : o.booking_type) === "organizer-confirmation", r = (d = t.scheduler) == null ? void 0 : d.organizer_confirmation_url;
260
262
  return l && !r && (s += "Organizer confirmation URL is required when using organizer confirmation booking type.", a = !0), a && (this.isLoading = !1, this.host.setError({
261
263
  message: s,
262
- type: v.Error,
263
- category: w.Component,
264
+ type: _.Error,
265
+ category: v.Component,
264
266
  title: "Error:"
265
267
  })), a;
266
268
  }, this.checkForBookingFormErrors = (t) => {
@@ -282,14 +284,14 @@ const Ke = class {
282
284
  }
283
285
  })), a && (this.isLoading = !1, this.host.setError({
284
286
  message: s,
285
- type: v.Error,
286
- category: w.Component,
287
+ type: _.Error,
288
+ category: v.Component,
287
289
  title: i.t("nylasEditorTabs.bookingFormError")
288
290
  })), a;
289
- }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = u.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = {
291
+ }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.themeConfig = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = u.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.loaded = !1, this.formState = {}, this.error = {
290
292
  message: "",
291
- type: v.Error,
292
- category: w.Component,
293
+ type: _.Error,
294
+ category: v.Component,
293
295
  title: ""
294
296
  };
295
297
  }
@@ -309,6 +311,14 @@ const Ke = class {
309
311
  message: i.t("fixFormErrors")
310
312
  }, this.showErrorNotification(this.error)));
311
313
  }
314
+ themeConfigChangedHandler(e, t) {
315
+ e !== t && this.applyThemeConfig(e);
316
+ }
317
+ applyThemeConfig(e) {
318
+ if (e)
319
+ for (const [t, a] of Object.entries(e))
320
+ this.host.style.setProperty(`${t}`, a);
321
+ }
312
322
  async schedulerConfigCreatedEventHandler(e) {
313
323
  return this.schedulerConfigCreated.emit(e);
314
324
  }
@@ -325,8 +335,8 @@ const Ke = class {
325
335
  var e, t;
326
336
  (e = this.error) != null && e.message && this.dismissNotification.emit({ id: (t = this.error) == null ? void 0 : t.message.split(" ").join("-"), host: this.host }), this.error = {
327
337
  message: "",
328
- type: v.Error,
329
- category: w.Component,
338
+ type: _.Error,
339
+ category: v.Component,
330
340
  title: ""
331
341
  };
332
342
  }
@@ -340,7 +350,7 @@ const Ke = class {
340
350
  var t, a;
341
351
  b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Je() && Ve({
342
352
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
343
- release: "2.0.2",
353
+ release: "2.0.6",
344
354
  integrations: (s) => [
345
355
  ...s.filter((l) => !1),
346
356
  qe({
@@ -352,7 +362,7 @@ const Ke = class {
352
362
  beforeSend: () => null
353
363
  }), (t = this.selectedConfiguration) != null && t.id && this.configChangedHandler(this.selectedConfiguration);
354
364
  const e = (a = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : a.name;
355
- e && (this.activeTab = e);
365
+ e && (this.activeTab = e), this.loaded = !0;
356
366
  }
357
367
  disconnectedCallback() {
358
368
  b("[nylas-editor-tabs]", "disconnectedCallback");
@@ -360,7 +370,7 @@ const Ke = class {
360
370
  handleValueChanged(e) {
361
371
  b("[nylas-editor-tabs]", "handleValueChanged", e);
362
372
  const { name: t, value: a } = e.detail;
363
- console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, this.resetError(), at.includes(t) && (this.hasUnsavedChanges = !0), this.schedulerEditorFormUpdated.emit({
373
+ console.debug("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, this.resetError(), ot.includes(t) && (this.hasUnsavedChanges = !0), this.schedulerEditorFormUpdated.emit({
364
374
  value: e.detail.value,
365
375
  name: e.detail.name
366
376
  });
@@ -384,7 +394,7 @@ const Ke = class {
384
394
  captureContext: {
385
395
  tags: {
386
396
  "nylas-web-element": "nylas-scheduler-editor",
387
- "nylas-web-element-version": "2.0.2",
397
+ "nylas-web-element-version": "2.0.6",
388
398
  "nylas-config-id": (r = this.selectedConfiguration) == null ? void 0 : r.id,
389
399
  "nylas-slug": (o = this.selectedConfiguration) == null ? void 0 : o.slug,
390
400
  "host-url": window.location.href
@@ -400,8 +410,8 @@ const Ke = class {
400
410
  e.message && this.nylasSchedulerError.emit({
401
411
  notification: {
402
412
  title: e.title,
403
- category: e.category || w.Component,
404
- type: e.type || v.Error,
413
+ category: e.category || v.Component,
414
+ type: e.type || _.Error,
405
415
  description: e.message,
406
416
  id: e.message.split(" ").join("-"),
407
417
  ttl: "none"
@@ -410,54 +420,54 @@ const Ke = class {
410
420
  });
411
421
  }
412
422
  getFormStateFromConfig(e) {
413
- var a, s, l, r, o, d, c, p, h, m, k, S, F, I, P, T, H, G, j, L, x, M, y, U, C, $, D, J, N, V, Z, Q, W, X, E, A, K;
414
- let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((O) => O.is_organizer);
415
- return !t && ((l = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : l.availability_method) !== "collective" && (t = (r = e == null ? void 0 : e.participants) == null ? void 0 : r.find((O) => {
416
- var B;
417
- return O.email === ((B = this.currentUser) == null ? void 0 : B.email);
423
+ var a, s, l, r, o, d, c, p, h, f, w, T, O, U, N, L, z, D, R, F, E, B, C, k, A, S, $, j, G, J, Z, Y, q, Q, X, x, V;
424
+ let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((P) => P.is_organizer);
425
+ return !t && ((l = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : l.availability_method) !== "collective" && (t = (r = e == null ? void 0 : e.participants) == null ? void 0 : r.find((P) => {
426
+ var H;
427
+ return P.email === ((H = this.currentUser) == null ? void 0 : H.email);
418
428
  }), t && (t.is_organizer = !0)), e != null && e.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
419
429
  title: ((o = e == null ? void 0 : e.event_booking) == null ? void 0 : o.title) ?? "",
420
430
  description: ((d = e == null ? void 0 : e.event_booking) == null ? void 0 : d.description) ?? "",
421
431
  duration: ((p = (c = e == null ? void 0 : e.availability) == null ? void 0 : c.duration_minutes) == null ? void 0 : p.toString()) ?? "30",
422
432
  availability: {
423
433
  timezone: ((h = e == null ? void 0 : e.event_booking) == null ? void 0 : h.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
424
- openHours: ((k = (m = e == null ? void 0 : e.availability) == null ? void 0 : m.availability_rules) == null ? void 0 : k.default_open_hours) ?? $e
434
+ openHours: ((w = (f = e == null ? void 0 : e.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : w.default_open_hours) ?? $e
425
435
  },
426
- additionalFields: ((S = e == null ? void 0 : e.scheduler) == null ? void 0 : S.additional_fields) ?? {},
427
- conferencing: ((F = e == null ? void 0 : e.event_booking) == null ? void 0 : F.conferencing) ?? {},
428
- calendarIds: ((I = t == null ? void 0 : t.availability) == null ? void 0 : I.calendar_ids) ?? [],
436
+ additionalFields: ((T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.additional_fields) ?? {},
437
+ conferencing: ((O = e == null ? void 0 : e.event_booking) == null ? void 0 : O.conferencing) ?? {},
438
+ calendarIds: ((U = t == null ? void 0 : t.availability) == null ? void 0 : U.calendar_ids) ?? [],
429
439
  participants: (e == null ? void 0 : e.participants) ?? [],
430
- bookingCalendar: ((P = t == null ? void 0 : t.booking) == null ? void 0 : P.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
431
- location: ((T = e == null ? void 0 : e.event_booking) == null ? void 0 : T.location) ?? "",
432
- bookingType: ((H = e == null ? void 0 : e.event_booking) == null ? void 0 : H.booking_type) ?? "booking",
433
- buffer: ((j = (G = e == null ? void 0 : e.availability) == null ? void 0 : G.availability_rules) == null ? void 0 : j.buffer) ?? { before: 0, after: 0 },
434
- cancellationPolicy: ((L = e == null ? void 0 : e.scheduler) == null ? void 0 : L.cancellation_policy) ?? "",
435
- availableDaysInFuture: ((x = e == null ? void 0 : e.scheduler) == null ? void 0 : x.available_days_in_future) ?? 30,
436
- minCancellationNotice: ((M = e == null ? void 0 : e.scheduler) == null ? void 0 : M.min_cancellation_notice) ?? 0,
437
- minBookingNotice: ((y = e == null ? void 0 : e.scheduler) == null ? void 0 : y.min_booking_notice) ?? 60,
440
+ bookingCalendar: ((N = t == null ? void 0 : t.booking) == null ? void 0 : N.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
441
+ location: ((L = e == null ? void 0 : e.event_booking) == null ? void 0 : L.location) ?? "",
442
+ bookingType: ((z = e == null ? void 0 : e.event_booking) == null ? void 0 : z.booking_type) ?? "booking",
443
+ buffer: ((R = (D = e == null ? void 0 : e.availability) == null ? void 0 : D.availability_rules) == null ? void 0 : R.buffer) ?? { before: 0, after: 0 },
444
+ cancellationPolicy: ((F = e == null ? void 0 : e.scheduler) == null ? void 0 : F.cancellation_policy) ?? "",
445
+ availableDaysInFuture: ((E = e == null ? void 0 : e.scheduler) == null ? void 0 : E.available_days_in_future) ?? 30,
446
+ minCancellationNotice: ((B = e == null ? void 0 : e.scheduler) == null ? void 0 : B.min_cancellation_notice) ?? 0,
447
+ minBookingNotice: ((C = e == null ? void 0 : e.scheduler) == null ? void 0 : C.min_booking_notice) ?? 60,
438
448
  timeslotInterval: {
439
- interval: ((U = e == null ? void 0 : e.availability) == null ? void 0 : U.interval_minutes) ?? ((C = e == null ? void 0 : e.availability) == null ? void 0 : C.duration_minutes),
440
- roundTo: ($ = e == null ? void 0 : e.availability) == null ? void 0 : $.round_to
449
+ interval: ((k = e == null ? void 0 : e.availability) == null ? void 0 : k.interval_minutes) ?? ((A = e == null ? void 0 : e.availability) == null ? void 0 : A.duration_minutes),
450
+ roundTo: (S = e == null ? void 0 : e.availability) == null ? void 0 : S.round_to
441
451
  },
442
- additionalGuestsHidden: ((D = e == null ? void 0 : e.scheduler) == null ? void 0 : D.hide_additional_guests) ?? !1,
443
- hideCancellationOptions: ((J = e == null ? void 0 : e.scheduler) == null ? void 0 : J.hide_cancellation_options) ?? !1,
444
- hideReschedulingOptions: ((N = e == null ? void 0 : e.scheduler) == null ? void 0 : N.hide_rescheduling_options) ?? !1,
445
- participantBookingCalendars: ((V = e == null ? void 0 : e.participants) == null ? void 0 : V.reduce((O, B) => {
446
- var R, Y;
447
- return (R = B.booking) != null && R.calendar_id && (O[B.email] = (Y = B.booking) == null ? void 0 : Y.calendar_id), O;
452
+ additionalGuestsHidden: (($ = e == null ? void 0 : e.scheduler) == null ? void 0 : $.hide_additional_guests) ?? !1,
453
+ hideCancellationOptions: ((j = e == null ? void 0 : e.scheduler) == null ? void 0 : j.hide_cancellation_options) ?? !1,
454
+ hideReschedulingOptions: ((G = e == null ? void 0 : e.scheduler) == null ? void 0 : G.hide_rescheduling_options) ?? !1,
455
+ participantBookingCalendars: ((J = e == null ? void 0 : e.participants) == null ? void 0 : J.reduce((P, H) => {
456
+ var M, K;
457
+ return (M = H.booking) != null && M.calendar_id && (P[H.email] = (K = H.booking) == null ? void 0 : K.calendar_id), P;
448
458
  })) ?? {},
449
- participantCalendars: ((Z = e == null ? void 0 : e.participants) == null ? void 0 : Z.reduce((O, B) => {
450
- var R;
451
- return O[B.email] = (R = B.availability) == null ? void 0 : R.calendar_ids, O;
459
+ participantCalendars: ((Z = e == null ? void 0 : e.participants) == null ? void 0 : Z.reduce((P, H) => {
460
+ var M;
461
+ return P[H.email] = (M = H.availability) == null ? void 0 : M.calendar_ids, P;
452
462
  }, {})) ?? {},
453
- reminders: (Q = e == null ? void 0 : e.event_booking) == null ? void 0 : Q.reminders,
454
- emailTemplate: (W = e == null ? void 0 : e.scheduler) == null ? void 0 : W.email_template,
455
- redirectUrl: (X = e == null ? void 0 : e.scheduler) == null ? void 0 : X.confirmation_redirect_url,
463
+ reminders: (Y = e == null ? void 0 : e.event_booking) == null ? void 0 : Y.reminders,
464
+ emailTemplate: (q = e == null ? void 0 : e.scheduler) == null ? void 0 : q.email_template,
465
+ redirectUrl: (Q = e == null ? void 0 : e.scheduler) == null ? void 0 : Q.confirmation_redirect_url,
456
466
  slug: e == null ? void 0 : e.slug,
457
467
  appearance: e == null ? void 0 : e.appearance,
458
468
  name: e == null ? void 0 : e.name,
459
- disableEmails: (E = e == null ? void 0 : e.event_booking) == null ? void 0 : E.disable_emails,
460
- organizerLocale: (K = (A = e == null ? void 0 : e.scheduler) == null ? void 0 : A.email_template) == null ? void 0 : K.organizer_locale
469
+ disableEmails: (X = e == null ? void 0 : e.event_booking) == null ? void 0 : X.disable_emails,
470
+ organizerLocale: (V = (x = e == null ? void 0 : e.scheduler) == null ? void 0 : x.email_template) == null ? void 0 : V.organizer_locale
461
471
  };
462
472
  }
463
473
  setFormState(e, t) {
@@ -520,6 +530,11 @@ const Ke = class {
520
530
  this.formState.participantOpenHours = a;
521
531
  break;
522
532
  }
533
+ case "participant-custom-availability-specific-date": {
534
+ const a = JSON.parse(e.toString());
535
+ this.formState.participantSpecificDateOpenHours = a;
536
+ break;
537
+ }
523
538
  case "additional-fields":
524
539
  this.formState.additionalFields = JSON.parse(e.toString());
525
540
  break;
@@ -544,7 +559,7 @@ const Ke = class {
544
559
  this.formState.availabilityMethod = e.toString();
545
560
  break;
546
561
  case "custom-event-slug":
547
- console.debug("custom-event-slug", e), this.formState.slug = JSON.parse(e.toString());
562
+ this.formState.slug = JSON.parse(e.toString());
548
563
  break;
549
564
  case "page-styling":
550
565
  this.formState.appearance = JSON.parse(e.toString());
@@ -575,16 +590,19 @@ const Ke = class {
575
590
  }
576
591
  render() {
577
592
  var e, t, a, s, l, r;
578
- return b("[nylas-editor-tabs]", "render", this.formState), n(ce, { key: "f0b2f93d4dfabf59fa928e870e7af76570ac6336" }, n("nylas-notification", { key: "7e37ff4917cafd361b25e07e856d7b0453929eb2" }), n("form", { key: "bd3ca664b062446e6093c7a197ddcdd398fbd58c", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (o) => this.formRef = o, noValidate: !0 }, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: u.EventInfo, class: { tab: !0, active: this.activeTab == u.EventInfo, hide: this.hideTab(u.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (o) => this.setActiveTab(o, u.EventInfo) }, n("calendar-info-icon", { width: "16", height: "16" }), i.t("eventInfoTab")), n("button", { name: u.Availability, class: { tab: !0, active: this.activeTab == u.Availability, hide: this.hideTab(u.Availability) }, part: "editortab__availability net__tab-availability", onClick: (o) => this.setActiveTab(o, u.Availability) }, n("calendar-patterns-icon", { width: "16", height: "16" }), i.t("availabilityTab")), n("button", { name: u.Participants, class: { tab: !0, active: this.activeTab == u.Participants, hide: this.hideTab(u.Participants) }, part: "editortab__participants net__tab-participants", onClick: (o) => this.setActiveTab(o, u.Participants) }, n("people-icon", { width: "16", height: "16" }), i.t("participantsTab")), n("button", { name: u.BookingOptions, class: { tab: !0, active: this.activeTab == u.BookingOptions, hide: this.hideTab(u.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (o) => this.setActiveTab(o, u.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), i.t("bookingOptionsTab")), n("button", { name: u.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(u.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (o) => this.setActiveTab(o, u.BookingForm) }, this.activeTab == u.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), i.t("bookingFormTab")), n("button", { name: u.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(u.Communications) }, onClick: (o) => this.setActiveTab(o, u.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == u.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), i.t("communicationsTab")), n("button", { name: u.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(u.PageStyles) }, onClick: (o) => this.setActiveTab(o, u.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == u.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), i.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(pt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: i }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "9e8d7e5aa02656528d7038968d0cf6032c8ed8c1", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "b4222c7530033584fdb945cd006f75b3dba1afa9", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (o) => this.onFeedbackClick(o) }, n("feedback-icon", null))), n("div", { key: "1c04acfb85e835a4335c3998422cb43d102ef2f0", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "303c5d952f4f8e96c54d133f20fffcc77cd2a2ef", class: {
593
+ return b("[nylas-editor-tabs]", "render", this.formState), n(ce, { key: "72e7c6a3ee3b8a45ca08be9b09bb6c4d3fe35448" }, n("nylas-notification", { key: "3001e1876764d1159fd0ce36158961d13729cb53" }), n("form", { key: "3efb8db4b99ec191dd38586162849374000301ef", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (o) => this.formRef = o, noValidate: !0 }, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: u.EventInfo, class: { tab: !0, active: this.activeTab == u.EventInfo, hide: this.hideTab(u.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (o) => this.setActiveTab(o, u.EventInfo) }, n("calendar-info-icon", { width: "16", height: "16" }), i.t("eventInfoTab")), n("button", { name: u.Availability, class: { tab: !0, active: this.activeTab == u.Availability, hide: this.hideTab(u.Availability) }, part: "editortab__availability net__tab-availability", onClick: (o) => this.setActiveTab(o, u.Availability) }, n("calendar-patterns-icon", { width: "16", height: "16" }), i.t("availabilityTab")), n("button", { name: u.Participants, class: { tab: !0, active: this.activeTab == u.Participants, hide: this.hideTab(u.Participants) }, part: "editortab__participants net__tab-participants", onClick: (o) => this.setActiveTab(o, u.Participants) }, n("people-icon", { width: "16", height: "16" }), i.t("participantsTab")), n("button", { name: u.BookingOptions, class: { tab: !0, active: this.activeTab == u.BookingOptions, hide: this.hideTab(u.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (o) => this.setActiveTab(o, u.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), i.t("bookingOptionsTab")), n("button", { name: u.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(u.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (o) => this.setActiveTab(o, u.BookingForm) }, this.activeTab == u.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), i.t("bookingFormTab")), n("button", { name: u.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(u.Communications) }, onClick: (o) => this.setActiveTab(o, u.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == u.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), i.t("communicationsTab")), n("button", { name: u.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(u.PageStyles) }, onClick: (o) => this.setActiveTab(o, u.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == u.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), i.t("pageStylesTab"))), n("div", { class: {
594
+ "tab-content": !0,
595
+ fadeIn: this.loaded
596
+ }, part: "editor__tab-content net__tab-content" }, n(bt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: i }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "d173c359a115d8ffedd09f7982b93ac8f56298ea", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "e7d8eac3b589fdde61697b6f950ac14ca40e958b", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (o) => this.onFeedbackClick(o) }, n("feedback-icon", null))), n("div", { key: "8ac0780973db9508e06823f6eec209d513adf70d", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "b99500cf3e2090bba348164e8ef694a31ba2292d", class: {
579
597
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
580
598
  "saved-changes": this.changesSaved,
581
599
  error: ((a = this.error) == null ? void 0 : a.message) !== "",
582
600
  "error-full-width": ((s = this.error) == null ? void 0 : s.message) !== "" && this.action === "create"
583
601
  } }, ((l = this.error) == null ? void 0 : l.message) == "" && this.hasUnsavedChanges && !this.changesSaved ? i.t("unsavedChangesLabel") : ((r = this.error) == null ? void 0 : r.message) == "" && this.changesSaved ? `${i.t("changesSavedLabel")}!` : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (o) => {
584
602
  o.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(le(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
585
- }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "ceabbc710e864739e6049334c99c8f9210824e27", type: "button", disabled: this.isLoading, clickHandler: (o) => {
603
+ }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "f3ce1536ba8ebb62758f8714056d528fd8258bfa", type: "button", disabled: this.isLoading, clickHandler: (o) => {
586
604
  o.preventDefault(), this.cancelButtonClick.emit(), this.host.resetError();
587
- }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("backButton")), n("button-component", { key: "890a200707328b747773e99b2f6bc07f7a1d5db9", class: { "save-changes": this.action === "edit" }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, i.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${i.t("createButtonText")}` : `${i.t("saveChangesButtonText")}`)))), this.showFeedbackModal && n("nylas-feedback-form", null));
605
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("cancelButton")), n("button-component", { key: "ceb6d081a90b0ff2a5d12cc4ec05d79fb726651e", class: { "save-changes": this.action === "edit" }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, i.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${i.t("createButtonText")}` : `${i.t("saveChangesButtonText")}`)))), this.showFeedbackModal && n("nylas-feedback-form", null));
588
606
  }
589
607
  get host() {
590
608
  return pe(this);
@@ -593,11 +611,12 @@ const Ke = class {
593
611
  return {
594
612
  selectedConfiguration: ["configChangedHandler"],
595
613
  currentUser: ["userChangedHandler"],
596
- selectedLanguage: ["selectedLanguageChangedHandler"]
614
+ selectedLanguage: ["selectedLanguageChangedHandler"],
615
+ themeConfig: ["themeConfigChangedHandler"]
597
616
  };
598
617
  }
599
618
  };
600
- ht([
619
+ yt([
601
620
  be({
602
621
  name: "nylas-editor-tabs",
603
622
  stateToProps: /* @__PURE__ */ new Map([
@@ -606,7 +625,8 @@ ht([
606
625
  ["schedulerConfig.currentUser", "currentUser"],
607
626
  ["schedulerConfig.configurations", "configurations"],
608
627
  ["schedulerConfig.selectedLanguage", "selectedLanguage"],
609
- ["schedulerConfig.selectedEventType", "selectedEventType"]
628
+ ["schedulerConfig.selectedEventType", "selectedEventType"],
629
+ ["schedulerConfig.themeConfig", "themeConfig"]
610
630
  ]),
611
631
  eventToProps: {
612
632
  schedulerConfigChanged: async (e, t) => {
@@ -614,8 +634,8 @@ ht([
614
634
  const [p, h] = d;
615
635
  !p && h ? s.setError({
616
636
  message: h.message || i.t("genericErrorTitle"),
617
- type: v.Error,
618
- category: w.Component,
637
+ type: _.Error,
638
+ category: v.Component,
619
639
  title: c
620
640
  }) : p && !h && l === "create" && (s.schedulerConfigCreatedEventHandler({ config: p, action: l, host: s }), t.schedulerConfigStore.set("selectedEventType", void 0)), a && a(e);
621
641
  };
@@ -654,12 +674,12 @@ ht([
654
674
  ye("design:paramtypes", []),
655
675
  ye("design:returntype", void 0)
656
676
  ], Ke.prototype, "render", null);
657
- Ke.style = ut;
677
+ Ke.style = ht;
658
678
  var g;
659
679
  (function(e) {
660
680
  e.BookingOptions = "bookingOptions", e.Communications = "communications", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles", e.CalendarView = "calendarView";
661
681
  })(g || (g = {}));
662
- function yt({ id: e, formState: t, activeTab: a }, s) {
682
+ function gt({ id: e, formState: t, activeTab: a }, s) {
663
683
  return n(
664
684
  de,
665
685
  null,
@@ -678,7 +698,7 @@ function yt({ id: e, formState: t, activeTab: a }, s) {
678
698
  n(
679
699
  "div",
680
700
  { slot: "inputs" },
681
- n("nylas-booking-confirmation-type", { name: "confirmation-type", exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
701
+ n("nylas-booking-confirmation-type", { name: "confirmation-type", showComponent: !1, exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
682
702
  n("nylas-booking-confirmation-redirect", { name: "confirmation-redirect", exportparts: "nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield" })
683
703
  )
684
704
  ),
@@ -720,8 +740,8 @@ function yt({ id: e, formState: t, activeTab: a }, s) {
720
740
  )
721
741
  );
722
742
  }
723
- const gt = '.sc-nylas-editor-tabs-group-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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}.scheduler-editor.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;height:inherit;position:relative}.scheduler-editor.sc-nylas-editor-tabs-group div.return-to-calendar-view.sc-nylas-editor-tabs-group{display:flex;border-bottom:1px solid var(--nylas-base-200)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:grid;grid-template-columns:minmax(224px, 25%) 1fr;height:auto;overflow-y:auto;min-height:calc(100% - 80px - 48px)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:table-column-group;height:auto;min-height:calc(100% - 80px - 196px - 48px)}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.active.sc-nylas-editor-tabs-group{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .calendar-view.sc-nylas-editor-tabs-group{position:absolute;top:0;left:0;height:calc(100% - 80px);width:-webkit-fill-available;background:var(--nylas-base-0)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group{width:inherit}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group h3.sc-nylas-editor-tabs-group{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs-group{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group{flex-direction:column;height:auto;z-index:2}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group button-component.page-settings-button.sc-nylas-editor-tabs-group{min-width:140px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{width:100%}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group button-component[title=Preview].sc-nylas-editor-tabs-group{width:48px}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{max-width:524px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.unsaved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.saved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error.sc-nylas-editor-tabs-group{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error-full-width.sc-nylas-editor-tabs-group{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.sc-nylas-editor-tabs-group{width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group span.sc-nylas-editor-tabs-group{display:flex;align-items:center;justify-content:center;gap:0.5rem}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.save-changes.sc-nylas-editor-tabs-group{min-width:140px}button-component#report-issue.sc-nylas-editor-tabs-group{width:auto}nylas-feedback-form.sc-nylas-editor-tabs-group{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', ft = gt;
724
- var mt = function(e, t, a, s) {
743
+ const ft = '.sc-nylas-editor-tabs-group-h{display:block;--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}.scheduler-editor.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;height:inherit;position:relative}.scheduler-editor.sc-nylas-editor-tabs-group div.return-to-calendar-view.sc-nylas-editor-tabs-group{display:flex;border-bottom:1px solid var(--nylas-base-200)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:grid;grid-template-columns:minmax(224px, 25%) 1fr;height:auto;overflow-y:auto;min-height:calc(100% - 80px - 48px)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:table-column-group;height:auto;min-height:calc(100% - 80px - 196px - 48px)}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.active.sc-nylas-editor-tabs-group{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .calendar-view.sc-nylas-editor-tabs-group{position:absolute;top:0;left:0;height:calc(100% - 80px);width:-webkit-fill-available;background:var(--nylas-base-0)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group{width:inherit}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group h3.sc-nylas-editor-tabs-group{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs-group{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group{flex-direction:column;height:auto;z-index:2}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group button-component.page-settings-button.sc-nylas-editor-tabs-group{min-width:140px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{width:100%}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group button-component[title=Preview].sc-nylas-editor-tabs-group{width:48px}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{max-width:524px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.unsaved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.saved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error.sc-nylas-editor-tabs-group{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error-full-width.sc-nylas-editor-tabs-group{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.sc-nylas-editor-tabs-group{width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group span.sc-nylas-editor-tabs-group{display:flex;align-items:center;justify-content:center;gap:0.5rem}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.save-changes.sc-nylas-editor-tabs-group{min-width:140px}button-component#report-issue.sc-nylas-editor-tabs-group{width:auto}nylas-feedback-form.sc-nylas-editor-tabs-group{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', mt = ft;
744
+ var _t = function(e, t, a, s) {
725
745
  var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
726
746
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
727
747
  r = Reflect.decorate(e, t, a, s);
@@ -735,15 +755,15 @@ var mt = function(e, t, a, s) {
735
755
  };
736
756
  const Ye = class {
737
757
  constructor(e) {
738
- te(this, e), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = _(this, "schedulerConfigCreated", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = _(this, "schedulerEditorFormUpdated", 7), this.groupEventCreateTriggered = _(this, "groupEventCreateTriggered", 7), this.groupEventUpdateTriggered = _(this, "groupEventUpdateTriggered", 7), this.groupEventDeleteTriggered = _(this, "groupEventDeleteTriggered", 7), this.groupEventImportTriggered = _(this, "groupEventImportTriggered", 7), this.saveGroupEventChangesError = _(this, "saveGroupEventChangesError", 7), this.nylasSchedulerError = _(this, "nylasSchedulerError", 6), this.dismissNotification = _(this, "dismissNotification", 6), this.formSubmissionHandler = async (t) => {
739
- var A, K, O, B, R, Y, ae, q, oe, se, re;
758
+ te(this, e), this.schedulerConfigChanged = m(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = m(this, "schedulerConfigCreated", 7), this.cancelButtonClick = m(this, "cancelButtonClick", 7), this.formSubmitted = m(this, "formSubmitted", 7), this.previewButtonClicked = m(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = m(this, "schedulerEditorFormUpdated", 7), this.groupEventCreateTriggered = m(this, "groupEventCreateTriggered", 7), this.groupEventUpdateTriggered = m(this, "groupEventUpdateTriggered", 7), this.groupEventDeleteTriggered = m(this, "groupEventDeleteTriggered", 7), this.groupEventImportTriggered = m(this, "groupEventImportTriggered", 7), this.saveGroupEventChangesError = m(this, "saveGroupEventChangesError", 7), this.nylasSchedulerError = m(this, "nylasSchedulerError", 6), this.dismissNotification = m(this, "dismissNotification", 6), this.formSubmissionHandler = async (t) => {
759
+ var x, V, P, H, M, K, ne, oe, W, se, re;
740
760
  t.preventDefault();
741
761
  const a = await this.formSubmitted.emit();
742
762
  if (b("[nylas-editor-tabs-group]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
743
763
  await this.host.setError({
744
764
  message: this.formRef.validationMessage || i.t("fixFormErrors"),
745
- type: v.Error,
746
- category: w.Component,
765
+ type: _.Error,
766
+ category: v.Component,
747
767
  title: i.t("nylasEditorTabs.formErrorTitle")
748
768
  });
749
769
  return;
@@ -751,64 +771,64 @@ const Ye = class {
751
771
  this.isLoading = !0, this.hasUnsavedChanges = !1;
752
772
  const l = this.updateFormState();
753
773
  b("[nylas-editor-tabs-group]", "formState", l);
754
- const { title: r, description: o, bookingCalendar: d, location: c, bookingType: p, minCancellationNotice: h, minBookingNotice: m, cancellationPolicy: k, hideCancellationOptions: S, hideReschedulingOptions: F, additionalFields: I, conferencing: P, reminders: T, emailTemplate: H, redirectUrl: G, slug: j, appearance: L, name: x, eventCapacity: M, eventTimeslot: y, participants: U, disableEmails: C, organizerLocale: $ } = l, D = {
755
- ...((A = this.selectedConfiguration) == null ? void 0 : A.id) && { id: this.selectedConfiguration.id },
756
- slug: j,
757
- name: x,
758
- type: this.selectedEventType === z.group ? z.group : void 0,
774
+ const { title: r, description: o, bookingCalendar: d, location: c, bookingType: p, minCancellationNotice: h, minBookingNotice: f, cancellationPolicy: w, hideCancellationOptions: T, hideReschedulingOptions: O, additionalFields: U, conferencing: N, reminders: L, emailTemplate: z, redirectUrl: D, slug: R, appearance: F, name: E, eventCapacity: B, eventTimeslot: C, participants: k, disableEmails: A, organizerLocale: S } = l, $ = {
775
+ ...((x = this.selectedConfiguration) == null ? void 0 : x.id) && { id: this.selectedConfiguration.id },
776
+ slug: R,
777
+ name: E,
778
+ type: this.selectedEventType === I.group ? I.group : void 0,
759
779
  scheduler: {
760
- cancellation_policy: k ?? "",
780
+ cancellation_policy: w ?? "",
761
781
  min_cancellation_notice: h ?? 0,
762
- min_booking_notice: m ?? 60,
763
- hide_cancellation_options: S ?? !1,
764
- hide_rescheduling_options: F ?? !1,
765
- additional_fields: I,
766
- email_template: H ? {
767
- ...H,
768
- organizer_locale: $ || "en",
769
- logo: H.logo || ""
782
+ min_booking_notice: f ?? 60,
783
+ hide_cancellation_options: T ?? !1,
784
+ hide_rescheduling_options: O ?? !1,
785
+ additional_fields: U,
786
+ email_template: z ? {
787
+ ...z,
788
+ organizer_locale: S || "en",
789
+ logo: z.logo || ""
770
790
  } : void 0,
771
- confirmation_redirect_url: G
791
+ confirmation_redirect_url: D
772
792
  },
773
- appearance: L,
793
+ appearance: F,
774
794
  group_booking: {
775
795
  booking_type: p || "booking",
776
- disable_emails: typeof C == "boolean" ? C : !1,
777
- reminders: T,
778
- conferencing: P,
796
+ disable_emails: typeof A == "boolean" ? A : !1,
797
+ reminders: L,
798
+ conferencing: N,
779
799
  calendar_id: d || "primary",
780
- default_capacity: M || 10
800
+ default_capacity: B || 10
781
801
  }
782
- }, J = _e(this.selectedConfiguration, D || {}), N = this.action === "create" ? J : D;
783
- delete N.availability, delete N.participants, delete N.event_booking;
784
- const V = (ie) => {
802
+ }, j = _e(this.selectedConfiguration, $ || {}), G = this.action === "create" ? j : $;
803
+ delete G.availability, delete G.participants, delete G.event_booking;
804
+ const J = (ie) => {
785
805
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
786
806
  this.changesSaved = !1;
787
807
  }, 3e3);
788
808
  };
789
- if (this.checkForBookingFormErrors(N))
809
+ if (this.checkForBookingFormErrors(G))
790
810
  return;
791
- const Q = {
792
- name: ((K = this.currentUser) == null ? void 0 : K.name) ?? ((O = this.currentUser) == null ? void 0 : O.email) ?? "",
793
- email: ((B = this.currentUser) == null ? void 0 : B.email) ?? ""
794
- }, W = ((R = this.calendars) == null ? void 0 : R.find((ie) => ie.is_primary)) ?? ((Y = this.calendars) == null ? void 0 : Y[0]), X = [{ ...Q, is_organizer: !0 }], E = (ae = this.selectedConfiguration) != null && ae.id ? void 0 : {
811
+ const Y = {
812
+ name: ((V = this.currentUser) == null ? void 0 : V.name) ?? ((P = this.currentUser) == null ? void 0 : P.email) ?? "",
813
+ email: ((H = this.currentUser) == null ? void 0 : H.email) ?? ""
814
+ }, q = ((M = this.calendars) == null ? void 0 : M.find((ie) => ie.is_primary)) ?? ((K = this.calendars) == null ? void 0 : K[0]), Q = [{ ...Y, is_organizer: !0 }], X = (ne = this.selectedConfiguration) != null && ne.id ? void 0 : {
795
815
  title: r,
796
816
  description: o,
797
- location: P ? void 0 : c,
798
- conferencing: c ? void 0 : P,
817
+ location: N ? void 0 : c,
818
+ conferencing: c ? void 0 : N,
799
819
  when: {
800
- start_time: ((q = y == null ? void 0 : y.when) == null ? void 0 : q.start_time) ?? 0,
801
- end_time: ((oe = y == null ? void 0 : y.when) == null ? void 0 : oe.end_time) ?? 0,
802
- start_timezone: ((se = y == null ? void 0 : y.when) == null ? void 0 : se.start_timezone) ?? "",
803
- end_timezone: ((re = y == null ? void 0 : y.when) == null ? void 0 : re.end_timezone) ?? ""
820
+ start_time: ((oe = C == null ? void 0 : C.when) == null ? void 0 : oe.start_time) ?? 0,
821
+ end_time: ((W = C == null ? void 0 : C.when) == null ? void 0 : W.end_time) ?? 0,
822
+ start_timezone: ((se = C == null ? void 0 : C.when) == null ? void 0 : se.start_timezone) ?? "",
823
+ end_timezone: ((re = C == null ? void 0 : C.when) == null ? void 0 : re.end_timezone) ?? ""
804
824
  },
805
- recurrence: (y == null ? void 0 : y.recurrence) ?? [],
806
- calendar_id: d || (W == null ? void 0 : W.id) || "primary",
807
- participants: U != null && U.length ? U : X,
808
- organizer: Q,
809
- capacity: M || 10
825
+ recurrence: (C == null ? void 0 : C.recurrence) ?? [],
826
+ calendar_id: d || (q == null ? void 0 : q.id) || "primary",
827
+ participants: k != null && k.length ? k : Q,
828
+ organizer: Y,
829
+ capacity: B || 10
810
830
  };
811
- this.schedulerConfigChanged.emit({ groupEvent: E || void 0, config: N, resetLoadingState: V, action: this.action, host: this.host });
831
+ this.schedulerConfigChanged.emit({ groupEvent: X || void 0, config: G, resetLoadingState: J, action: this.action, host: this.host });
812
832
  }, this.checkForBookingFormErrors = (t) => {
813
833
  var r;
814
834
  let a = !1, s = "";
@@ -828,14 +848,14 @@ const Ye = class {
828
848
  }
829
849
  })), a && (this.isLoading = !1, this.host.setError({
830
850
  message: s,
831
- type: v.Error,
832
- category: w.Component,
851
+ type: _.Error,
852
+ category: v.Component,
833
853
  title: i.t("nylasEditorTabs.bookingFormError")
834
854
  })), a;
835
- }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.selectedGroupEvent = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = g.CalendarView, this.isLoading = !1, this.componentLoaded = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = {
855
+ }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.selectedGroupEvent = void 0, this.themeConfig = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = g.CalendarView, this.isLoading = !1, this.componentLoaded = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = {
836
856
  message: "",
837
- type: v.Error,
838
- category: w.Component,
857
+ type: _.Error,
858
+ category: v.Component,
839
859
  title: ""
840
860
  };
841
861
  }
@@ -845,7 +865,7 @@ const Ye = class {
845
865
  }, e != null && e.id ? this.action = "edit" : this.action = "create";
846
866
  }
847
867
  selectedGroupEventChangedHandler(e) {
848
- var t, a, s, l, r, o, d, c, p, h, m, k, S, F, I, P, T, H, G, j, L, x, M, y, U, C, $, D, J, N, V;
868
+ var t, a, s, l, r, o, d, c, p, h, f, w, T, O, U, N, L, z, D, R, F, E, B, C, k, A, S, $, j, G, J;
849
869
  b("[nylas-editor-tabs-group]", "selectedGroupEventChangedHandler", e, this.selectedConfiguration), this.formState = {
850
870
  ...this.formState,
851
871
  title: (a = (t = this.selectedGroupEvent) == null ? void 0 : t.event) == null ? void 0 : a.title,
@@ -853,19 +873,19 @@ const Ye = class {
853
873
  location: (o = (r = this.selectedGroupEvent) == null ? void 0 : r.event) == null ? void 0 : o.location,
854
874
  conferencing: (c = (d = this.selectedGroupEvent) == null ? void 0 : d.event) == null ? void 0 : c.conferencing,
855
875
  eventCapacity: (h = (p = this.selectedGroupEvent) == null ? void 0 : p.group_event_info) == null ? void 0 : h.capacity,
856
- participants: (S = (k = (m = this.selectedGroupEvent) == null ? void 0 : m.group_event_info) == null ? void 0 : k.participants) == null ? void 0 : S.map((Z) => ({
876
+ participants: (T = (w = (f = this.selectedGroupEvent) == null ? void 0 : f.group_event_info) == null ? void 0 : w.participants) == null ? void 0 : T.map((Z) => ({
857
877
  name: Z.name,
858
878
  email: Z.email,
859
879
  is_organizer: !!Z.is_organizer
860
880
  })),
861
- eventTimeslot: (I = (F = this.selectedGroupEvent) == null ? void 0 : F.event) != null && I.when ? {
881
+ eventTimeslot: (U = (O = this.selectedGroupEvent) == null ? void 0 : O.event) != null && U.when ? {
862
882
  when: {
863
- start_time: (H = (T = (P = this.selectedGroupEvent) == null ? void 0 : P.event) == null ? void 0 : T.when) == null ? void 0 : H.start_time,
864
- end_time: (L = (j = (G = this.selectedGroupEvent) == null ? void 0 : G.event) == null ? void 0 : j.when) == null ? void 0 : L.end_time,
865
- start_timezone: (y = (M = (x = this.selectedGroupEvent) == null ? void 0 : x.event) == null ? void 0 : M.when) == null ? void 0 : y.start_timezone,
866
- end_timezone: ($ = (C = (U = this.selectedGroupEvent) == null ? void 0 : U.event) == null ? void 0 : C.when) == null ? void 0 : $.end_timezone
883
+ start_time: (z = (L = (N = this.selectedGroupEvent) == null ? void 0 : N.event) == null ? void 0 : L.when) == null ? void 0 : z.start_time,
884
+ end_time: (F = (R = (D = this.selectedGroupEvent) == null ? void 0 : D.event) == null ? void 0 : R.when) == null ? void 0 : F.end_time,
885
+ start_timezone: (C = (B = (E = this.selectedGroupEvent) == null ? void 0 : E.event) == null ? void 0 : B.when) == null ? void 0 : C.start_timezone,
886
+ end_timezone: (S = (A = (k = this.selectedGroupEvent) == null ? void 0 : k.event) == null ? void 0 : A.when) == null ? void 0 : S.end_timezone
867
887
  },
868
- recurrence: (J = (D = this.selectedGroupEvent) == null ? void 0 : D.group_event_info) != null && J.rrule ? (V = (N = this.selectedGroupEvent) == null ? void 0 : N.group_event_info) == null ? void 0 : V.rrule : []
888
+ recurrence: (j = ($ = this.selectedGroupEvent) == null ? void 0 : $.group_event_info) != null && j.rrule ? (J = (G = this.selectedGroupEvent) == null ? void 0 : G.group_event_info) == null ? void 0 : J.rrule : []
869
889
  } : void 0
870
890
  };
871
891
  }
@@ -880,6 +900,14 @@ const Ye = class {
880
900
  message: i.t("fixFormErrors")
881
901
  }, this.showErrorNotification(this.error)));
882
902
  }
903
+ themeConfigChangedHandler(e, t) {
904
+ e !== t && this.applyThemeConfig(e);
905
+ }
906
+ applyThemeConfig(e) {
907
+ if (e)
908
+ for (const [t, a] of Object.entries(e))
909
+ this.host.style.setProperty(`${t}`, a);
910
+ }
883
911
  async schedulerConfigCreatedEventHandler(e) {
884
912
  return this.schedulerConfigCreated.emit(e);
885
913
  }
@@ -896,8 +924,8 @@ const Ye = class {
896
924
  var e, t;
897
925
  (e = this.error) != null && e.message && this.dismissNotification.emit({ id: (t = this.error) == null ? void 0 : t.message.split(" ").join("-"), host: this.host }), this.error = {
898
926
  message: "",
899
- type: v.Error,
900
- category: w.Component,
927
+ type: _.Error,
928
+ category: v.Component,
901
929
  title: ""
902
930
  };
903
931
  }
@@ -911,7 +939,7 @@ const Ye = class {
911
939
  var t, a, s;
912
940
  b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !Je() && Ve({
913
941
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
914
- release: "2.0.2",
942
+ release: "2.0.6",
915
943
  integrations: (l) => [
916
944
  ...l.filter((r) => !1),
917
945
  qe({
@@ -931,7 +959,7 @@ const Ye = class {
931
959
  handleValueChanged(e) {
932
960
  b("[nylas-editor-tabs-group]", "handleValueChanged", e);
933
961
  const { name: t, value: a } = e.detail;
934
- console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, ot.includes(t) && (this.hasUnsavedChanges = !0), this.host.resetError(), this.schedulerEditorFormUpdated.emit({
962
+ console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, st.includes(t) && (this.hasUnsavedChanges = !0), this.host.resetError(), this.schedulerEditorFormUpdated.emit({
935
963
  value: e.detail.value,
936
964
  name: e.detail.name
937
965
  });
@@ -950,7 +978,7 @@ const Ye = class {
950
978
  captureContext: {
951
979
  tags: {
952
980
  "nylas-web-element": "nylas-scheduler-editor",
953
- "nylas-web-element-version": "2.0.2"
981
+ "nylas-web-element-version": "2.0.6"
954
982
  },
955
983
  extra: {
956
984
  configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
@@ -964,28 +992,28 @@ const Ye = class {
964
992
  this.groupEventImportTriggered.emit({ groupEvent: e.detail, configId: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "", host: this.host });
965
993
  }
966
994
  saveGroupEventChangesHandler(e) {
967
- var s, l, r, o, d, c, p, h, m;
995
+ var s, l, r, o, d, c, p, h, f;
968
996
  b("saveGroupEventChangesHandler", e.detail, this.selectedGroupEvent);
969
997
  const t = this.formRef.checkValidity(), a = this.getGroupEventDetailsFromFormState();
970
998
  if (this.resetError(), a.title || this.setError({
971
999
  message: i.t("nylasEditorTabsGroup.eventTitleRequired"),
972
- type: v.Error,
973
- category: w.Component,
1000
+ type: _.Error,
1001
+ category: v.Component,
974
1002
  title: i.t("nylasEditorTabs.formErrorTitle")
975
1003
  }), (!((s = a.when) != null && s.start_time) || !((l = a.when) != null && l.end_time)) && this.setError({
976
1004
  message: i.t("nylasEditorTabsGroup.eventTimeRequired"),
977
- type: v.Error,
978
- category: w.Component,
1005
+ type: _.Error,
1006
+ category: v.Component,
979
1007
  title: i.t("nylasEditorTabs.formErrorTitle")
980
1008
  }), (r = a.participants) != null && r.length || this.setError({
981
1009
  message: i.t("nylasEditorTabsGroup.participantsRequired"),
982
- type: v.Error,
983
- category: w.Component,
1010
+ type: _.Error,
1011
+ category: v.Component,
984
1012
  title: i.t("nylasEditorTabs.formErrorTitle")
985
- }), (o = a.participants) != null && o.length && ((d = a.participants) != null && d.some((k) => !k.email)) && this.setError({
1013
+ }), (o = a.participants) != null && o.length && ((d = a.participants) != null && d.some((w) => !w.email)) && this.setError({
986
1014
  message: i.t("nylasEditorTabsGroup.participantEmailRequired"),
987
- type: v.Error,
988
- category: w.Component,
1015
+ type: _.Error,
1016
+ category: v.Component,
989
1017
  title: i.t("nylasEditorTabs.formErrorTitle")
990
1018
  }), ((c = this.error) == null ? void 0 : c.message) !== "" || !t) {
991
1019
  this.saveGroupEventChangesError.emit({
@@ -998,7 +1026,7 @@ const Ye = class {
998
1026
  this.groupEventUpdateTriggered.emit({
999
1027
  groupEvent: a,
1000
1028
  chosenOption: e.detail.action,
1001
- configId: ((m = this.selectedConfiguration) == null ? void 0 : m.id) ?? "",
1029
+ configId: ((f = this.selectedConfiguration) == null ? void 0 : f.id) ?? "",
1002
1030
  host: this.host
1003
1031
  });
1004
1032
  }
@@ -1014,11 +1042,11 @@ const Ye = class {
1014
1042
  });
1015
1043
  }
1016
1044
  createGroupEventHandler(e) {
1017
- var o, d, c, p, h, m, k;
1045
+ var o, d, c, p, h, f, w;
1018
1046
  const t = e.detail, a = {
1019
1047
  name: ((o = this.currentUser) == null ? void 0 : o.name) ?? ((d = this.currentUser) == null ? void 0 : d.email) ?? "",
1020
1048
  email: ((c = this.currentUser) == null ? void 0 : c.email) ?? ""
1021
- }, s = ((p = this.calendars) == null ? void 0 : p.find((S) => S.is_primary)) ?? ((h = this.calendars) == null ? void 0 : h[0]), l = ((m = this.formState) == null ? void 0 : m.conferencing) || t.conferencing, r = {
1049
+ }, s = ((p = this.calendars) == null ? void 0 : p.find((T) => T.is_primary)) ?? ((h = this.calendars) == null ? void 0 : h[0]), l = ((f = this.formState) == null ? void 0 : f.conferencing) || t.conferencing, r = {
1022
1050
  title: t.title,
1023
1051
  description: t.description,
1024
1052
  location: l ? void 0 : t.location,
@@ -1030,14 +1058,14 @@ const Ye = class {
1030
1058
  calendar_id: (s == null ? void 0 : s.id) || "primary",
1031
1059
  capacity: t.eventCapacity
1032
1060
  };
1033
- this.groupEventCreateTriggered.emit({ groupEvent: r, configId: ((k = this.selectedConfiguration) == null ? void 0 : k.id) ?? "", host: this.host });
1061
+ this.groupEventCreateTriggered.emit({ groupEvent: r, configId: ((w = this.selectedConfiguration) == null ? void 0 : w.id) ?? "", host: this.host });
1034
1062
  }
1035
1063
  showErrorNotification(e) {
1036
1064
  this.nylasSchedulerError.emit({
1037
1065
  notification: {
1038
1066
  title: e.title,
1039
- category: e.category || w.Component,
1040
- type: e.type || v.Error,
1067
+ category: e.category || v.Component,
1068
+ type: e.type || _.Error,
1041
1069
  description: e.message,
1042
1070
  id: e.message.split(" ").join("-"),
1043
1071
  ttl: "none"
@@ -1046,10 +1074,10 @@ const Ye = class {
1046
1074
  });
1047
1075
  }
1048
1076
  getGroupEventDetailsFromFormState() {
1049
- var m, k, S, F, I, P, T, H, G;
1050
- const e = ((m = this.calendars) == null ? void 0 : m.find((j) => j.is_primary)) ?? ((k = this.calendars) == null ? void 0 : k[0]), t = {
1051
- name: ((S = this.currentUser) == null ? void 0 : S.name) ?? ((F = this.currentUser) == null ? void 0 : F.email) ?? "",
1052
- email: ((I = this.currentUser) == null ? void 0 : I.email) ?? ""
1077
+ var f, w, T, O, U, N, L, z, D;
1078
+ const e = ((f = this.calendars) == null ? void 0 : f.find((R) => R.is_primary)) ?? ((w = this.calendars) == null ? void 0 : w[0]), t = {
1079
+ name: ((T = this.currentUser) == null ? void 0 : T.name) ?? ((O = this.currentUser) == null ? void 0 : O.email) ?? "",
1080
+ email: ((U = this.currentUser) == null ? void 0 : U.email) ?? ""
1053
1081
  }, a = [{ ...t, is_organizer: !0 }], { title: s, description: l, bookingCalendar: r, location: o, conferencing: d, eventCapacity: c, eventTimeslot: p, participants: h } = this.formState;
1054
1082
  return {
1055
1083
  title: s,
@@ -1057,10 +1085,10 @@ const Ye = class {
1057
1085
  location: d ? void 0 : o,
1058
1086
  conferencing: o ? void 0 : d,
1059
1087
  when: {
1060
- start_time: ((P = p == null ? void 0 : p.when) == null ? void 0 : P.start_time) ?? 0,
1061
- end_time: ((T = p == null ? void 0 : p.when) == null ? void 0 : T.end_time) ?? 0,
1062
- start_timezone: ((H = p == null ? void 0 : p.when) == null ? void 0 : H.start_timezone) ?? "",
1063
- end_timezone: ((G = p == null ? void 0 : p.when) == null ? void 0 : G.end_timezone) ?? ""
1088
+ start_time: ((N = p == null ? void 0 : p.when) == null ? void 0 : N.start_time) ?? 0,
1089
+ end_time: ((L = p == null ? void 0 : p.when) == null ? void 0 : L.end_time) ?? 0,
1090
+ start_timezone: ((z = p == null ? void 0 : p.when) == null ? void 0 : z.start_timezone) ?? "",
1091
+ end_timezone: ((D = p == null ? void 0 : p.when) == null ? void 0 : D.end_timezone) ?? ""
1064
1092
  },
1065
1093
  recurrence: (p == null ? void 0 : p.recurrence) ?? [],
1066
1094
  calendar_id: r || (e == null ? void 0 : e.id) || "primary",
@@ -1070,7 +1098,7 @@ const Ye = class {
1070
1098
  };
1071
1099
  }
1072
1100
  getFormStateFromConfig(e) {
1073
- var t, a, s, l, r, o, d, c, p, h, m, k, S, F;
1101
+ var t, a, s, l, r, o, d, c, p, h, f, w, T, O;
1074
1102
  return e != null && e.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
1075
1103
  additionalFields: ((t = e == null ? void 0 : e.scheduler) == null ? void 0 : t.additional_fields) ?? {},
1076
1104
  bookingType: ((a = e == null ? void 0 : e.group_booking) == null ? void 0 : a.booking_type) ?? "booking",
@@ -1085,9 +1113,9 @@ const Ye = class {
1085
1113
  slug: e == null ? void 0 : e.slug,
1086
1114
  appearance: e == null ? void 0 : e.appearance,
1087
1115
  name: e == null ? void 0 : e.name,
1088
- bookingCalendar: (m = e == null ? void 0 : e.group_booking) == null ? void 0 : m.calendar_id,
1089
- disableEmails: (k = e == null ? void 0 : e.group_booking) == null ? void 0 : k.disable_emails,
1090
- organizerLocale: (F = (S = e == null ? void 0 : e.scheduler) == null ? void 0 : S.email_template) == null ? void 0 : F.organizer_locale
1116
+ bookingCalendar: (f = e == null ? void 0 : e.group_booking) == null ? void 0 : f.calendar_id,
1117
+ disableEmails: (w = e == null ? void 0 : e.group_booking) == null ? void 0 : w.disable_emails,
1118
+ organizerLocale: (O = (T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.email_template) == null ? void 0 : O.organizer_locale
1091
1119
  };
1092
1120
  }
1093
1121
  setFormState(e, t) {
@@ -1188,18 +1216,18 @@ const Ye = class {
1188
1216
  }
1189
1217
  render() {
1190
1218
  var e, t, a, s, l, r;
1191
- return b("[nylas-editor-tabs-group]", "render", this.formState), n(ce, { key: "f1f9489924f24e9e70b03f29ca492f952447857e" }, n("nylas-notification", { key: "55313223571d2279f7371dee53422b682484a8f0" }), n("form", { key: "127ab3460883730d9519df3995e12a29375cf3c5", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (o) => this.formRef = o, noValidate: !0 }, this.mode === "app" ? n("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, n("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (o) => {
1219
+ return b("[nylas-editor-tabs-group]", "render", this.formState), n(ce, { key: "76c493a97bfd6a0ba5a98233a2d4fecd29e73f4f" }, n("nylas-notification", { key: "28d9095c59ca8eb5a8bc2a10358263dd8b478657" }), n("form", { key: "70d81a11affc5eaa0d493f71a7da42588b7d2ea2", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (o) => this.formRef = o, noValidate: !0 }, this.mode === "app" ? n("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, n("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (o) => {
1192
1220
  this.setActiveTab(o, g.CalendarView);
1193
- } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, i.t("returnToCalendarView")))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: g.BookingOptions, class: { tab: !0, active: this.activeTab == g.BookingOptions, hide: this.hideTab(g.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (o) => this.setActiveTab(o, g.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), i.t("bookingOptionsTab")), n("button", { name: g.BookingForm, class: { tab: !0, active: this.activeTab == g.BookingForm, hide: this.hideTab(g.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (o) => this.setActiveTab(o, g.BookingForm) }, this.activeTab == g.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), i.t("bookingFormTab")), n("button", { name: g.Communications, class: { tab: !0, active: this.activeTab == g.Communications, hide: this.hideTab(g.Communications) }, onClick: (o) => this.setActiveTab(o, g.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == g.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), i.t("communicationsTab")), n("button", { name: g.PageStyles, class: { tab: !0, active: this.activeTab == g.PageStyles, hide: this.hideTab(g.PageStyles) }, onClick: (o) => this.setActiveTab(o, g.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == g.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), i.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(yt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: i }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "58a9ed32c7fde8663e25a05461e7dbbe8bc3d879", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "dddf1ddc9b444fc7f8f8f965d1a84a87678a9fa8", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (o) => this.onFeedbackClick(o) }, n("feedback-icon", null)), this.activeTab === g.CalendarView && n("button-component", { class: "page-settings-button", title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (o) => this.setActiveTab(o, g.BookingOptions) }, i.t("pageSettingsButton"))), n("div", { key: "be3ea7e9a341b7495d32c076505462b5845b1c66", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "42bf3aaae3eb30d443d4b45b1be81100eb95ac23", class: {
1221
+ } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, i.t("returnToCalendarView")))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: g.BookingOptions, class: { tab: !0, active: this.activeTab == g.BookingOptions, hide: this.hideTab(g.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (o) => this.setActiveTab(o, g.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), i.t("bookingOptionsTab")), n("button", { name: g.BookingForm, class: { tab: !0, active: this.activeTab == g.BookingForm, hide: this.hideTab(g.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (o) => this.setActiveTab(o, g.BookingForm) }, this.activeTab == g.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), i.t("bookingFormTab")), n("button", { name: g.Communications, class: { tab: !0, active: this.activeTab == g.Communications, hide: this.hideTab(g.Communications) }, onClick: (o) => this.setActiveTab(o, g.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == g.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), i.t("communicationsTab")), n("button", { name: g.PageStyles, class: { tab: !0, active: this.activeTab == g.PageStyles, hide: this.hideTab(g.PageStyles) }, onClick: (o) => this.setActiveTab(o, g.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == g.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), i.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(gt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: i }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "dd5ef485c1aa6955264379915867a5bda111a2b5", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "5431c3dd9e45ee66cbd22c038546f6e97b82aff1", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (o) => this.onFeedbackClick(o) }, n("feedback-icon", null)), this.activeTab === g.CalendarView && n("button-component", { class: "page-settings-button", title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (o) => this.setActiveTab(o, g.BookingOptions) }, i.t("pageSettingsButton"))), n("div", { key: "c2369b6564211918ab7aa31123e01cb4f98d943d", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "ffbd97cdaa59620c641c5a2adac0af76633ff043", class: {
1194
1222
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
1195
1223
  "saved-changes": this.changesSaved,
1196
1224
  error: ((a = this.error) == null ? void 0 : a.message) !== "",
1197
1225
  "error-full-width": ((s = this.error) == null ? void 0 : s.message) !== "" && this.action === "create"
1198
- } }, ((l = this.error) == null ? void 0 : l.message) == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== g.CalendarView ? i.t("unsavedChangesLabel") : ((r = this.error) == null ? void 0 : r.message) == "" && this.changesSaved ? `${i.t("changesSavedLabel")}!` : ""), n("div", { key: "6380b051bd4bc445092fd71be43e949c12629cd7", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (o) => {
1226
+ } }, ((l = this.error) == null ? void 0 : l.message) == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== g.CalendarView ? i.t("unsavedChangesLabel") : ((r = this.error) == null ? void 0 : r.message) == "" && this.changesSaved ? `${i.t("changesSavedLabel")}!` : ""), n("div", { key: "4edf752dbbf6dd86f97da5cf285afde1f56f900f", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (o) => {
1199
1227
  o.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(le(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
1200
- }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "b78b23bc721251da33f803a46e23b66cea112095", type: "button", disabled: this.isLoading, clickHandler: (o) => {
1228
+ }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "8fc79265e7819c0aeeba204f9f4e1ed6502ce5a1", type: "button", disabled: this.isLoading, clickHandler: (o) => {
1201
1229
  o.preventDefault(), this.cancelButtonClick.emit(), this.host.resetError();
1202
- }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("backButton")), n("button-component", { key: "aaefcecf3c7247c085813831066bf79298b17263", class: { "save-changes": this.action === "edit" }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.componentLoaded ? this.isLoading ? n("span", null, i.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${i.t("createButtonText")}` : `${i.t("saveChangesButtonText")}` : n("span", null, n("loading-icon", null), " ")))))), this.showFeedbackModal && n("nylas-feedback-form", null));
1230
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("cancelButton")), n("button-component", { key: "04509263358df45457a593c11f6b5625aedba833", class: { "save-changes": this.action === "edit" }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.componentLoaded ? this.isLoading ? n("span", null, i.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${i.t("createButtonText")}` : `${i.t("saveChangesButtonText")}` : n("span", null, n("loading-icon", null), " ")))))), this.showFeedbackModal && n("nylas-feedback-form", null));
1203
1231
  }
1204
1232
  get host() {
1205
1233
  return pe(this);
@@ -1209,11 +1237,12 @@ const Ye = class {
1209
1237
  selectedConfiguration: ["configChangedHandler"],
1210
1238
  selectedGroupEvent: ["selectedGroupEventChangedHandler"],
1211
1239
  currentUser: ["userChangedHandler"],
1212
- selectedLanguage: ["selectedLanguageChangedHandler"]
1240
+ selectedLanguage: ["selectedLanguageChangedHandler"],
1241
+ themeConfig: ["themeConfigChangedHandler"]
1213
1242
  };
1214
1243
  }
1215
1244
  };
1216
- mt([
1245
+ _t([
1217
1246
  be({
1218
1247
  name: "nylas-editor-tabs-group",
1219
1248
  stateToProps: /* @__PURE__ */ new Map([
@@ -1223,29 +1252,30 @@ mt([
1223
1252
  ["schedulerConfig.configurations", "configurations"],
1224
1253
  ["schedulerConfig.selectedLanguage", "selectedLanguage"],
1225
1254
  ["schedulerConfig.selectedEventType", "selectedEventType"],
1226
- ["schedulerConfig.selectedGroupEvent", "selectedGroupEvent"]
1255
+ ["schedulerConfig.selectedGroupEvent", "selectedGroupEvent"],
1256
+ ["schedulerConfig.themeConfig", "themeConfig"]
1227
1257
  ]),
1228
1258
  eventToProps: {
1229
1259
  schedulerConfigChanged: async (e, t) => {
1230
1260
  const { resetLoadingState: a, host: s, action: l, config: r, groupEvent: o } = e.detail, d = (c, p) => {
1231
- const [h, m] = c;
1232
- !h && m ? s.setError({
1233
- message: m.message || i.t("genericErrorTitle"),
1234
- type: v.Error,
1235
- category: w.Component,
1261
+ const [h, f] = c;
1262
+ !h && f ? s.setError({
1263
+ message: f.message || i.t("genericErrorTitle"),
1264
+ type: _.Error,
1265
+ category: v.Component,
1236
1266
  title: p
1237
- }) : h && !m && l === "create" && s.schedulerConfigCreatedEventHandler({ config: h, action: l, host: s });
1267
+ }) : h && !f && l === "create" && s.schedulerConfigCreatedEventHandler({ config: h, action: l, host: s });
1238
1268
  };
1239
1269
  if (l === "edit") {
1240
1270
  const c = await t.schedulerConfig.updateConfiguration(r);
1241
- d(c, i.t("nylasEditorTabs.updateConfigurationError")), a && a(e);
1271
+ d(c, i.t("nylasEditorTabs.updateConfigError")), a && a(e);
1242
1272
  } else {
1243
1273
  const c = await t.schedulerConfig.createConfiguration(r);
1244
- d(c, i.t("nylasEditorTabs.createConfigurationError"));
1245
- const [p, h] = c, m = p == null ? void 0 : p.id;
1246
- if (m && o) {
1247
- const k = await t.schedulerConfig.createGroupEvent(o, m);
1248
- d(k, i.t("nylasEditorTabsGroup.createGroupEventError"));
1274
+ d(c, i.t("nylasEditorTabs.createConfigError"));
1275
+ const [p, h] = c, f = p == null ? void 0 : p.id;
1276
+ if (f && o) {
1277
+ const w = await t.schedulerConfig.createGroupEvent(o, f);
1278
+ d(w, i.t("nylasEditorTabsGroup.createGroupEventError"));
1249
1279
  }
1250
1280
  a && a(e);
1251
1281
  }
@@ -1269,8 +1299,8 @@ mt([
1269
1299
  const { groupEvent: a, host: s, chosenOption: l, configId: r } = e.detail, o = await t.schedulerConfig.updateGroupEvent(a, l, r), [d, c] = o;
1270
1300
  !d && c && s.setError({
1271
1301
  message: c.message || i.t("genericErrorTitle"),
1272
- type: v.Error,
1273
- category: w.Component,
1302
+ type: _.Error,
1303
+ category: v.Component,
1274
1304
  title: i.t("nylasEditorTabsGroup.updateGroupEventError")
1275
1305
  });
1276
1306
  },
@@ -1278,8 +1308,8 @@ mt([
1278
1308
  const { groupEvent: a, chosenOption: s, configId: l, host: r } = e.detail, o = await t.schedulerConfig.deleteGroupEvent(a, s, l), [d, c] = o;
1279
1309
  !d && c && r.setError({
1280
1310
  message: c.message || i.t("genericErrorTitle"),
1281
- type: v.Error,
1282
- category: w.Component,
1311
+ type: _.Error,
1312
+ category: v.Component,
1283
1313
  title: i.t("nylasEditorTabsGroup.deleteGroupEventError")
1284
1314
  });
1285
1315
  },
@@ -1287,8 +1317,8 @@ mt([
1287
1317
  const { groupEvent: a, configId: s, host: l } = e.detail, r = await t.schedulerConfig.createGroupEvent(a, s), [o, d] = r;
1288
1318
  !o && d && l.setError({
1289
1319
  message: d.message || i.t("genericErrorTitle"),
1290
- type: v.Error,
1291
- category: w.Component,
1320
+ type: _.Error,
1321
+ category: v.Component,
1292
1322
  title: i.t("nylasEditorTabsGroup.createGroupEventError")
1293
1323
  });
1294
1324
  },
@@ -1296,16 +1326,16 @@ mt([
1296
1326
  const { groupEvent: a, configId: s, host: l } = e.detail, r = await t.schedulerConfig.importGroupEvent([a], s), [o, d] = r;
1297
1327
  if (!o && d && l.setError({
1298
1328
  message: d.message || i.t("genericErrorTitle"),
1299
- type: v.Error,
1300
- category: w.Component,
1329
+ type: _.Error,
1330
+ category: v.Component,
1301
1331
  title: i.t("nylasEditorTabsGroup.importGroupEventError")
1302
1332
  }), o && o.import_failed && o.import_failed.length > 0) {
1303
1333
  const c = o.import_failed.map((p) => p.reason).join(`
1304
1334
  `);
1305
1335
  l.setError({
1306
1336
  message: c,
1307
- type: v.Error,
1308
- category: w.Component,
1337
+ type: _.Error,
1338
+ category: v.Component,
1309
1339
  title: i.t("nylasEditorTabsGroup.importGroupEventError")
1310
1340
  }), setTimeout(() => {
1311
1341
  l.resetError();
@@ -1328,8 +1358,8 @@ mt([
1328
1358
  ge("design:paramtypes", []),
1329
1359
  ge("design:returntype", void 0)
1330
1360
  ], Ye.prototype, "render", null);
1331
- Ye.style = ft;
1332
- const _t = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:16px;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}@media screen and (max-width: 768px){.configurations .table-container{min-height:624px}}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem;text-align:right}.configurations .table-container table .actions button-component.edit-button{min-width:98px}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .actions select-dropdown.last::part(sd_dropdown-content){bottom:54px}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', vt = _t;
1361
+ Ye.style = mt;
1362
+ const vt = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--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}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:16px;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}@media screen and (max-width: 768px){.configurations .table-container{min-height:624px}}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem;text-align:right}.configurations .table-container table .actions button-component.edit-button{min-width:98px}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .actions select-dropdown.last::part(sd_dropdown-content){bottom:54px}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:var(--nylas-base-0);width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto;color:inherit}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', Ct = vt;
1333
1363
  var wt = function(e, t, a, s) {
1334
1364
  var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
1335
1365
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -1344,10 +1374,10 @@ var wt = function(e, t, a, s) {
1344
1374
  };
1345
1375
  const Qe = class {
1346
1376
  constructor(e) {
1347
- te(this, e), this.initListConfigurations = _(this, "initListConfigurations", 7), this.createButtonClick = _(this, "createButtonClick", 7), this.editButtonClick = _(this, "editButtonClick", 7), this.deleteButtonClick = _(this, "deleteButtonClick", 7), this.nylasSchedulerError = _(this, "nylasSchedulerError", 6), this.dismissNotification = _(this, "dismissNotification", 6), this.configurations = [], this.selectedLanguage = void 0, this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = {
1377
+ te(this, e), this.initListConfigurations = m(this, "initListConfigurations", 7), this.createButtonClick = m(this, "createButtonClick", 7), this.editButtonClick = m(this, "editButtonClick", 7), this.deleteButtonClick = m(this, "deleteButtonClick", 7), this.nylasSchedulerError = m(this, "nylasSchedulerError", 6), this.dismissNotification = m(this, "dismissNotification", 6), this.configurations = [], this.selectedLanguage = void 0, this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.themeConfig = void 0, this.state = "loading", this.error = {
1348
1378
  message: "",
1349
- type: v.Error,
1350
- category: w.Component,
1379
+ type: _.Error,
1380
+ category: v.Component,
1351
1381
  title: ""
1352
1382
  }, this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1, this.editButtonLoadingId = "";
1353
1383
  }
@@ -1361,6 +1391,9 @@ const Qe = class {
1361
1391
  selectedLanguageChangedHandler(e, t) {
1362
1392
  e !== t && i.changeLanguage(e);
1363
1393
  }
1394
+ themeConfigChangedHandler(e, t) {
1395
+ e !== t && this.applyThemeConfig(e);
1396
+ }
1364
1397
  connectedCallback() {
1365
1398
  b("[nylas-list-configurations]", "connectedCallback");
1366
1399
  }
@@ -1375,6 +1408,11 @@ const Qe = class {
1375
1408
  disconnectedCallback() {
1376
1409
  b("[nylas-list-configurations]", "disconnectedCallback");
1377
1410
  }
1411
+ applyThemeConfig(e) {
1412
+ if (e)
1413
+ for (const [t, a] of Object.entries(e))
1414
+ this.host.style.setProperty(`${t}`, a);
1415
+ }
1378
1416
  async handleNylasFormDropdownChanged(e) {
1379
1417
  var l;
1380
1418
  b("[nylas-list-configurations]", "handleNylasFormDropdownChanged", e.detail);
@@ -1421,9 +1459,9 @@ const Qe = class {
1421
1459
  this.nylasSchedulerError.emit({
1422
1460
  notification: {
1423
1461
  id: e.message.split(" ").join("-"),
1424
- type: e.type || v.Error,
1462
+ type: e.type || _.Error,
1425
1463
  title: e.title,
1426
- category: e.category || w.Component,
1464
+ category: e.category || v.Component,
1427
1465
  description: e.message,
1428
1466
  ttl: "none"
1429
1467
  },
@@ -1500,7 +1538,7 @@ const Qe = class {
1500
1538
  { value: `preview-${a}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
1501
1539
  { value: `copy-${a}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
1502
1540
  { value: `delete-${a}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
1503
- ], defaultSelectedOption: { value: "", label: "" }, dropdownButtonText: "...", withSearch: !1, withChevron: !1, exportparts: "sd_dropdown: actions__dropdown, sd_dropdown-button: actions__dropdown-button, sd_dropdown-content: actions__dropdown-content, actions-Copy, actions-Preview, actions-Delete" }))));
1541
+ ], defaultSelectedOption: { value: "", label: "" }, dropdownButtonText: "...", withSearch: !1, withChevron: !1, themeConfig: this.themeConfig, exportparts: "sd_dropdown: actions__dropdown, sd_dropdown-button: actions__dropdown-button, sd_dropdown-content: actions__dropdown-content, actions-Copy, actions-Preview, actions-Delete" }))));
1504
1542
  })))), n("div", { class: "pagination" }, n("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, n("chevron-icon", null)), n("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, n("chevron-icon", null)))), !!this.deleteConfigurationId && n("div", { class: "card-wrapper" }, n("div", { class: "card-modal" }, n("div", { class: "close-button" }, n("button-component", { tooltip: "Close", id: "close", variant: "invisible", onClick: (t) => this.closeModal(t), part: "nfbf__close-button" }, n("close-icon", null))), n("div", { class: "header" }, n("h2", { slot: "card-title", part: "nfbf__title" }, i.t("deleteSchedulingPageTitle"))), n("div", { class: "description title-desc" }, n("p", null, i.t("deleteSchedulingPageDescription"))), n("div", { class: {
1505
1543
  footer: !0
1506
1544
  } }, n("button-component", { variant: "basic", onClick: (t) => this.closeModal(t), part: "nfbf__button-outline nfbf__cancel-cta" }, `${i.t("deleteSchedulingPageCancelButton")}`), n("button-component", { variant: "destructive", onClick: (t) => this.handleConfirmDeleteButtonClicked(t), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${i.t("deleteSchedulingPageConfirmButton")}`)))));
@@ -1511,7 +1549,8 @@ const Qe = class {
1511
1549
  static get watchers() {
1512
1550
  return {
1513
1551
  listConfigurationsNextCursor: ["listConfigurationsNextCursorChangedHandler"],
1514
- selectedLanguage: ["selectedLanguageChangedHandler"]
1552
+ selectedLanguage: ["selectedLanguageChangedHandler"],
1553
+ themeConfig: ["themeConfigChangedHandler"]
1515
1554
  };
1516
1555
  }
1517
1556
  };
@@ -1521,7 +1560,8 @@ wt([
1521
1560
  stateToProps: /* @__PURE__ */ new Map([
1522
1561
  ["schedulerConfig.configurations", "configurations"],
1523
1562
  ["schedulerConfig.listConfigurationsNextCursor", "listConfigurationsNextCursor"],
1524
- ["schedulerConfig.selectedLanguage", "selectedLanguage"]
1563
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
1564
+ ["schedulerConfig.themeConfig", "themeConfig"]
1525
1565
  ]),
1526
1566
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
1527
1567
  eventToProps: {
@@ -1532,8 +1572,8 @@ wt([
1532
1572
  if (!l && r && r.message) {
1533
1573
  await a.setState("error"), await a.setError({
1534
1574
  message: r.message,
1535
- type: v.Error,
1536
- category: w.Component,
1575
+ type: _.Error,
1576
+ category: v.Component,
1537
1577
  title: i.t("nylasEditorTabs.getConfigsError")
1538
1578
  });
1539
1579
  return;
@@ -1543,21 +1583,21 @@ wt([
1543
1583
  createButtonClick: async (e, t) => {
1544
1584
  t.schedulerConfigStore.resetSelectedConfiguration();
1545
1585
  const a = Object.entries(t.schedulerConfigStore.state.enableEventTypes || {}).filter(([s, l]) => l);
1546
- a.length === 1 ? (t.schedulerConfigStore.state.action = "create", t.schedulerConfigStore.state.selectedEventType = z[a[0][0]]) : t.schedulerConfigStore.state.action = "create-select";
1586
+ a.length === 1 ? (t.schedulerConfigStore.state.action = "create", t.schedulerConfigStore.state.selectedEventType = I[a[0][0]]) : t.schedulerConfigStore.state.action = "create-select";
1547
1587
  },
1548
1588
  deleteButtonClick: async (e, t) => {
1549
1589
  const { host: a, configuration: s } = e.detail, [l, r] = await t.schedulerConfig.deleteConfiguration(s.id);
1550
1590
  !l && r && r.message && (await a.setState("error"), await a.setError({
1551
1591
  message: r.message,
1552
- type: v.Error,
1553
- category: w.Component,
1592
+ type: _.Error,
1593
+ category: v.Component,
1554
1594
  title: i.t("nylasEditorTabs.deleteConfigError")
1555
1595
  })), await a.hideDeleteConfirmation();
1556
1596
  },
1557
1597
  editButtonClick: async (e, t) => {
1558
1598
  const { host: a, configuration: s } = e.detail;
1559
1599
  if (s.type === "group") {
1560
- const { startTime: l, endTime: r } = nt((/* @__PURE__ */ new Date()).toISOString(), "week");
1600
+ const { startTime: l, endTime: r } = at((/* @__PURE__ */ new Date()).toISOString(), "week");
1561
1601
  t.schedulerConfigStore.state.calendarViewDateRange = {
1562
1602
  start_time: l.toString(),
1563
1603
  end_time: r.toString()
@@ -1566,8 +1606,8 @@ wt([
1566
1606
  if (!o && d && d.message) {
1567
1607
  await a.setError({
1568
1608
  message: d.message,
1569
- type: v.Error,
1570
- category: w.Component,
1609
+ type: _.Error,
1610
+ category: v.Component,
1571
1611
  title: i.t("nylasEditorTabsGroup.getGroupEventsError")
1572
1612
  }), a.hideEditButtonLoading();
1573
1613
  return;
@@ -1582,9 +1622,9 @@ wt([
1582
1622
  fe("design:paramtypes", []),
1583
1623
  fe("design:returntype", void 0)
1584
1624
  ], Qe.prototype, "render", null);
1585
- Qe.style = vt;
1586
- const kt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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;width:inherit}.nylas-select-event-type{height:inherit;overflow-y:auto}.nylas-select-event-type div.header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200)}.nylas-select-event-type div.header h2{font-size:18px;padding:0 24px;line-height:24px;margin:0;font-weight:600;color:var(--nylas-base-800)}.nylas-select-event-type div.header button-component button{background:transparent;border:none;cursor:pointer}.nylas-select-event-type div.header button-component button:hover,.nylas-select-event-type div.header button-component button:active{color:var(--nylas-primary);background-color:transparent}.nylas-select-event-type div.header button-component button:disabled{cursor:not-allowed}.nylas-select-event-type div.content{padding:40px}.nylas-select-event-type div.content h3{margin:0 0 32px 0;font-size:18px;line-height:24px;font-weight:600}.nylas-select-event-type div.content div.event-type{display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option{padding:16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-3x);width:inherit;cursor:pointer;display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option h4{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--nylas-base-900)}.nylas-select-event-type div.content div.event-type div.event-type-option p{margin:0;font-size:14px;line-height:21px;font-weight:400;color:var(--nylas-base-800)}', Ct = kt;
1587
- var xt = function(e, t, a, s) {
1625
+ Qe.style = Ct;
1626
+ const kt = ':host{display:block;--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;width:inherit}.nylas-select-event-type{height:inherit;overflow-y:auto}.nylas-select-event-type div.header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200)}.nylas-select-event-type div.header h2{font-size:18px;padding:0 24px;line-height:24px;margin:0;font-weight:600;color:var(--nylas-base-800)}.nylas-select-event-type div.header button-component button{background:transparent;border:none;cursor:pointer}.nylas-select-event-type div.header button-component button:hover,.nylas-select-event-type div.header button-component button:active{color:var(--nylas-primary);background-color:transparent}.nylas-select-event-type div.header button-component button:disabled{cursor:not-allowed}.nylas-select-event-type div.content{padding:40px}.nylas-select-event-type div.content h3{margin:0 0 32px 0;font-size:18px;line-height:24px;font-weight:600}.nylas-select-event-type div.content div.event-type{display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option{padding:16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-3x);width:inherit;cursor:pointer;display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option h4{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--nylas-base-900)}.nylas-select-event-type div.content div.event-type div.event-type-option p{margin:0;font-size:14px;line-height:21px;font-weight:400;color:var(--nylas-base-800)}', xt = kt;
1627
+ var Et = function(e, t, a, s) {
1588
1628
  var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
1589
1629
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1590
1630
  r = Reflect.decorate(e, t, a, s);
@@ -1598,13 +1638,13 @@ var xt = function(e, t, a, s) {
1598
1638
  };
1599
1639
  const Xe = class {
1600
1640
  constructor(e) {
1601
- te(this, e), this.returnToAllSchedulingPagesEvent = _(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = _(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0, this.enableEventTypes = {
1641
+ te(this, e), this.returnToAllSchedulingPagesEvent = m(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = m(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0, this.enableEventTypes = {
1602
1642
  one_on_one: !0,
1603
1643
  collective: !0,
1604
1644
  max_fairness: !0,
1605
1645
  max_availability: !0,
1606
1646
  group: !0
1607
- };
1647
+ }, this.themeConfig = void 0;
1608
1648
  }
1609
1649
  connectedCallback() {
1610
1650
  b("nylas-select-event-type", "connectedCallback");
@@ -1624,6 +1664,14 @@ const Xe = class {
1624
1664
  selectedLanguageChangedHandler(e, t) {
1625
1665
  e !== t && i.changeLanguage(e);
1626
1666
  }
1667
+ themeConfigChangedHandler(e, t) {
1668
+ e !== t && this.applyThemeConfig(e);
1669
+ }
1670
+ applyThemeConfig(e) {
1671
+ if (e)
1672
+ for (const [t, a] of Object.entries(e))
1673
+ this.host.style.setProperty(`${t}`, a);
1674
+ }
1627
1675
  render() {
1628
1676
  var r;
1629
1677
  const e = {
@@ -1635,30 +1683,30 @@ const Xe = class {
1635
1683
  }, t = [
1636
1684
  {
1637
1685
  label: i.t("nylasSelectEventType.eventTypeOptions.oneOnOne.label"),
1638
- value: z.one_on_one,
1686
+ value: I.one_on_one,
1639
1687
  description: i.t("nylasSelectEventType.eventTypeOptions.oneOnOne.desc")
1640
1688
  },
1641
1689
  {
1642
1690
  label: i.t("nylasSelectEventType.eventTypeOptions.collective.label"),
1643
- value: z.collective,
1691
+ value: I.collective,
1644
1692
  description: i.t("nylasSelectEventType.eventTypeOptions.collective.desc")
1645
1693
  },
1646
1694
  {
1647
1695
  label: i.t("nylasSelectEventType.eventTypeOptions.maxFairness.label"),
1648
- value: z.max_fairness,
1696
+ value: I.max_fairness,
1649
1697
  description: i.t("nylasSelectEventType.eventTypeOptions.maxFairness.desc")
1650
1698
  },
1651
1699
  {
1652
1700
  label: i.t("nylasSelectEventType.eventTypeOptions.maxAvailability.label"),
1653
- value: z.max_availability,
1701
+ value: I.max_availability,
1654
1702
  description: i.t("nylasSelectEventType.eventTypeOptions.maxAvailability.desc")
1655
1703
  },
1656
1704
  {
1657
1705
  label: i.t("nylasSelectEventType.eventTypeOptions.group.label"),
1658
- value: z.group,
1706
+ value: I.group,
1659
1707
  description: i.t("nylasSelectEventType.eventTypeOptions.group.desc")
1660
1708
  }
1661
- ], a = [z.collective, z.max_availability, z.max_fairness], s = this.participantOptions && ((r = this.participantOptions) == null ? void 0 : r.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, l = this.enableEventTypes ? t.filter((o) => {
1709
+ ], a = [I.collective, I.max_availability, I.max_fairness], s = this.participantOptions && ((r = this.participantOptions) == null ? void 0 : r.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, l = this.enableEventTypes ? t.filter((o) => {
1662
1710
  const d = o.value, c = e[d];
1663
1711
  return console.log("key", d, this.enableEventTypes ? this.enableEventTypes[c] : "no enableEventTypes"), a.includes(d) && !s ? !1 : this.enableEventTypes && this.enableEventTypes[c];
1664
1712
  }) : t;
@@ -1674,17 +1722,19 @@ const Xe = class {
1674
1722
  static get watchers() {
1675
1723
  return {
1676
1724
  name: ["elementNameChangedHandler"],
1677
- selectedLanguage: ["selectedLanguageChangedHandler"]
1725
+ selectedLanguage: ["selectedLanguageChangedHandler"],
1726
+ themeConfig: ["themeConfigChangedHandler"]
1678
1727
  };
1679
1728
  }
1680
1729
  };
1681
- xt([
1730
+ Et([
1682
1731
  be({
1683
1732
  name: "nylas-select-event-type",
1684
1733
  stateToProps: /* @__PURE__ */ new Map([
1685
1734
  ["schedulerConfig.selectedLanguage", "selectedLanguage"],
1686
1735
  ["schedulerConfig.additionalParticipants", "participantOptions"],
1687
- ["schedulerConfig.enableEventTypes", "enableEventTypes"]
1736
+ ["schedulerConfig.enableEventTypes", "enableEventTypes"],
1737
+ ["schedulerConfig.themeConfig", "themeConfig"]
1688
1738
  ]),
1689
1739
  eventToProps: {
1690
1740
  returnToAllSchedulingPagesEvent: async (e, t) => {
@@ -1701,10 +1751,10 @@ xt([
1701
1751
  me("design:paramtypes", []),
1702
1752
  me("design:returntype", void 0)
1703
1753
  ], Xe.prototype, "render", null);
1704
- Xe.style = Ct;
1754
+ Xe.style = xt;
1705
1755
  export {
1706
- it as google_logo_icon,
1707
- ct as microsoft_logo_icon,
1756
+ lt as google_logo_icon,
1757
+ pt as microsoft_logo_icon,
1708
1758
  Ke as nylas_editor_tabs,
1709
1759
  Ye as nylas_editor_tabs_group,
1710
1760
  Qe as nylas_list_configurations,