@nylas/react 2.0.4 → 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 (132) hide show
  1. package/dist/{abstract-provider-97cdbfea-5837e17f.cjs → abstract-provider-45ada3b4-31e3ed72.cjs} +1 -1
  2. package/dist/{abstract-provider-97cdbfea-6b0e3547.js → abstract-provider-45ada3b4-abd3105d.js} +1 -1
  3. package/dist/{add-circle-icon_2.entry-96ef4ded.cjs → add-circle-icon_2.entry-48953f9c.cjs} +1 -1
  4. package/dist/{add-circle-icon_2.entry-e59a5b4d.js → add-circle-icon_2.entry-f6f8b5e5.js} +1 -1
  5. package/dist/{archive-icon.entry-ea5667df.js → archive-icon.entry-b3a76711.js} +1 -1
  6. package/dist/{archive-icon.entry-49b4e0fd.cjs → archive-icon.entry-e2880dc7.cjs} +1 -1
  7. package/dist/{arrow-icon.entry-5aefd7de.cjs → arrow-icon.entry-84d1e26c.cjs} +1 -1
  8. package/dist/{arrow-icon.entry-1f766862.js → arrow-icon.entry-9b3441aa.js} +1 -1
  9. package/dist/{bold-icon.entry-240950a6.js → bold-icon.entry-0749a116.js} +1 -1
  10. package/dist/{bold-icon.entry-1a4955df.cjs → bold-icon.entry-e1d8ab5e.cjs} +1 -1
  11. package/dist/{button-component_2.entry-357fa02a.cjs → button-component_2.entry-1a817230.cjs} +1 -1
  12. package/dist/{button-component_2.entry-96785a34.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-e732ee2e.js → calendar-agenda-fill-icon_37.entry-4adf73a2.js} +1434 -1169
  15. package/dist/{calendar-cancel-icon.entry-7543c684.js → calendar-cancel-icon.entry-2a29cb3f.js} +1 -1
  16. package/dist/{calendar-cancel-icon.entry-55d746cf.cjs → calendar-cancel-icon.entry-e0dee585.cjs} +1 -1
  17. package/dist/{calendar-check-icon.entry-63d33f23.cjs → calendar-check-icon.entry-7f96d456.cjs} +1 -1
  18. package/dist/{calendar-check-icon.entry-aba54652.js → calendar-check-icon.entry-c12b63ea.js} +1 -1
  19. package/dist/{calendar-icon.entry-e13add9b.cjs → calendar-icon.entry-a2d19ff2.cjs} +1 -1
  20. package/dist/{calendar-icon.entry-2cb3b7d1.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-04561314.js → checkbox-group_4.entry-7df47ad4.js} +286 -245
  25. package/dist/{checkmark-circle-icon.entry-1f788efc.js → checkmark-circle-icon.entry-677b0def.js} +1 -1
  26. package/dist/{checkmark-circle-icon.entry-e637e20e.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-146c1cb0.js → checkmark-icon_15.entry-9fd0ec58.js} +403 -330
  29. package/dist/chevron-icon_3.entry-1a42235c.cjs +1 -0
  30. package/dist/{chevron-icon_3.entry-637338b5.js → chevron-icon_3.entry-f0ad71d9.js} +19 -10
  31. package/dist/{clock-icon_4.entry-aa4117dc.cjs → clock-icon_4.entry-88822a84.cjs} +1 -1
  32. package/dist/{clock-icon_4.entry-e69395a2.js → clock-icon_4.entry-e7472d5f.js} +1 -1
  33. package/dist/{customParseFormat-8be9be1b-2464f2ba.js → customParseFormat-eeec04f5-3ad26beb.js} +1 -1
  34. package/dist/{customParseFormat-8be9be1b-7ad95d87.cjs → customParseFormat-eeec04f5-d5957784.cjs} +1 -1
  35. package/dist/{delete-icon.entry-af0cc45b.cjs → delete-icon.entry-3cb58910.cjs} +1 -1
  36. package/dist/{delete-icon.entry-8a956edd.js → delete-icon.entry-813429d7.js} +1 -1
  37. package/dist/{document-refresh-icon.entry-45931416.cjs → document-refresh-icon.entry-ae361b0b.cjs} +1 -1
  38. package/dist/{document-refresh-icon.entry-5f58f367.js → document-refresh-icon.entry-c224c778.js} +1 -1
  39. package/dist/{feedbackSync-3db3713c-aadf336b.js → feedbackSync-0ebd0eda-803c3ebe.js} +1 -1
  40. package/dist/{feedbackSync-3db3713c-701d2eb9.cjs → feedbackSync-0ebd0eda-e12b00d5.cjs} +1 -1
  41. package/dist/{folder-icon.entry-cb80c172.cjs → folder-icon.entry-107841af.cjs} +1 -1
  42. package/dist/{folder-icon.entry-e5d7a651.js → folder-icon.entry-9c1f7c41.js} +1 -1
  43. package/dist/{forward-icon.entry-59be8165.js → forward-icon.entry-4ac22c16.js} +1 -1
  44. package/dist/{forward-icon.entry-c792734b.cjs → forward-icon.entry-6cec1f94.cjs} +1 -1
  45. package/dist/{globe-icon.entry-0fe4a4bb.js → globe-icon.entry-7798c93b.js} +1 -1
  46. package/dist/{globe-icon.entry-9ecf0255.cjs → globe-icon.entry-909c1382.cjs} +1 -1
  47. package/dist/google-logo-icon_6.entry-1f4ad364.cjs +2 -0
  48. package/dist/{google-logo-icon_6.entry-799511df.js → google-logo-icon_6.entry-b198c90a.js} +132 -89
  49. package/dist/{google-meet-icon_5.entry-3841313d.cjs → google-meet-icon_5.entry-82d87e77.cjs} +1 -1
  50. package/dist/{google-meet-icon_5.entry-e753ba28.js → google-meet-icon_5.entry-fa6dc1dc.js} +1 -1
  51. package/dist/{inbox-icon.entry-61132337.js → inbox-icon.entry-1b123e64.js} +1 -1
  52. package/dist/{inbox-icon.entry-2b450378.cjs → inbox-icon.entry-84f96d31.cjs} +1 -1
  53. package/dist/{index-2084ffd9.js → index-140eb219.js} +6439 -6370
  54. package/dist/index-d8a42c15.cjs +118 -0
  55. package/dist/{index.es-9e756df7-42d8a4cf.js → index.es-57d4a08f-184cbc01.js} +1 -1
  56. package/dist/{index.es-9e756df7-fa75b01e.cjs → index.es-57d4a08f-b0a2ca19.cjs} +1 -1
  57. package/dist/{info-icon_2.entry-c547775c.cjs → info-icon_2.entry-f09e7dae.cjs} +1 -1
  58. package/dist/{info-icon_2.entry-8d2750ce.js → info-icon_2.entry-f8b72d08.js} +1 -1
  59. package/dist/{input-component.entry-2e134e2a.js → input-component.entry-44607977.js} +26 -17
  60. package/dist/{input-component.entry-b1086460.cjs → input-component.entry-fd38953d.cjs} +1 -1
  61. package/dist/input-dropdown_2.entry-4c2e5e1a.cjs +1 -0
  62. package/dist/{input-dropdown_2.entry-1a02e672.js → input-dropdown_2.entry-6898b420.js} +30 -9
  63. package/dist/{italic-icon.entry-0ec2793b.js → italic-icon.entry-16aa1ada.js} +1 -1
  64. package/dist/{italic-icon.entry-6a3a5464.cjs → italic-icon.entry-beef2254.cjs} +1 -1
  65. package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +3 -2
  66. package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +2 -0
  67. package/dist/{multi-select-dropdown.entry-15e887be.js → multi-select-dropdown.entry-50133d29.js} +39 -30
  68. package/dist/multi-select-dropdown.entry-c82cd6d4.cjs +1 -0
  69. package/dist/{nylas-booked-event-card_11.entry-98bcc904.js → nylas-booked-event-card_11.entry-56768a09.js} +60 -60
  70. package/dist/nylas-booked-event-card_11.entry-eb4b3c5c.cjs +1 -0
  71. package/dist/nylas-date-component_2.entry-93f2f352.cjs +1 -0
  72. package/dist/{nylas-date-component_2.entry-6a98a5bf.js → nylas-date-component_2.entry-df957150.js} +85 -67
  73. package/dist/nylas-form-card.entry-4d95a4ad.cjs +1 -0
  74. package/dist/nylas-form-card.entry-7724e61f.js +72 -0
  75. package/dist/{nylas-notification_2.entry-4638126b.cjs → nylas-notification_2.entry-448c2cb8.cjs} +1 -1
  76. package/dist/{nylas-notification_2.entry-320a5a65.js → nylas-notification_2.entry-af763b6c.js} +1 -1
  77. package/dist/{nylas-scheduler-editor.entry-aa62c689.js → nylas-scheduler-editor.entry-0e4ba46d.js} +45 -34
  78. package/dist/{nylas-scheduler-editor.entry-82e0f79e.cjs → nylas-scheduler-editor.entry-e36cdd9d.cjs} +2 -2
  79. package/dist/{nylas-scheduling.entry-aec79de5.js → nylas-scheduling.entry-1b207e91.js} +194 -184
  80. package/dist/nylas-scheduling.entry-904dd10e.cjs +1 -0
  81. package/dist/{person-icon.entry-01a6a976.cjs → person-icon.entry-70d46ca6.cjs} +1 -1
  82. package/dist/{person-icon.entry-23cbe5dd.js → person-icon.entry-f2979577.js} +1 -1
  83. package/dist/{play-icon.entry-33443687.cjs → play-icon.entry-c2cf0b12.cjs} +1 -1
  84. package/dist/{play-icon.entry-4a529bd2.js → play-icon.entry-d387df5d.js} +1 -1
  85. package/dist/{radio-button-group.entry-04b7ff59.js → radio-button-group.entry-45dbd2df.js} +19 -10
  86. package/dist/{radio-button-group.entry-65155787.cjs → radio-button-group.entry-94e06176.cjs} +1 -1
  87. package/dist/react.cjs +1 -1
  88. package/dist/react.js +1 -1
  89. package/dist/{refresh-icon.entry-e4ea4811.cjs → refresh-icon.entry-5ab20f26.cjs} +1 -1
  90. package/dist/{refresh-icon.entry-61ced881.js → refresh-icon.entry-777cff27.js} +1 -1
  91. package/dist/{register-component-8bbd6492-0d8737fd.js → register-component-0aad9e3d-b395364a.js} +1 -1
  92. package/dist/{register-component-8bbd6492-d9a23f3c.cjs → register-component-0aad9e3d-d2f2e543.cjs} +1 -1
  93. package/dist/{reply-all-icon.entry-c64d923b.cjs → reply-all-icon.entry-3c90510e.cjs} +1 -1
  94. package/dist/{reply-all-icon.entry-83509aaf.js → reply-all-icon.entry-e2dd6da9.js} +1 -1
  95. package/dist/{reply-icon.entry-131ade31.js → reply-icon.entry-00a97d9f.js} +1 -1
  96. package/dist/{reply-icon.entry-4edfbb70.cjs → reply-icon.entry-d96478be.cjs} +1 -1
  97. package/dist/{sent-icon.entry-e4f6a3ef.cjs → sent-icon.entry-2d16da4e.cjs} +1 -1
  98. package/dist/{sent-icon.entry-72fd8f16.js → sent-icon.entry-949cf214.js} +1 -1
  99. package/dist/{spam-icon.entry-7594c792.js → spam-icon.entry-3baf9e79.js} +1 -1
  100. package/dist/{spam-icon.entry-c531c188.cjs → spam-icon.entry-7ee61730.cjs} +1 -1
  101. package/dist/{star-icon.entry-adbe1bb3.js → star-icon.entry-9fdb278b.js} +1 -1
  102. package/dist/{star-icon.entry-a75255ff.cjs → star-icon.entry-dc702d73.cjs} +1 -1
  103. package/dist/{stop-icon.entry-079b28c6.cjs → stop-icon.entry-b5ae7e55.cjs} +1 -1
  104. package/dist/{stop-icon.entry-e95993f2.js → stop-icon.entry-efa1ea66.js} +1 -1
  105. package/dist/{textarea-component.entry-920a81ac.cjs → textarea-component.entry-247aca42.cjs} +1 -1
  106. package/dist/{textarea-component.entry-f5d74fb8.js → textarea-component.entry-7c6fc4d8.js} +26 -10
  107. package/dist/toggle-switch.entry-a0295d17.js +49 -0
  108. package/dist/toggle-switch.entry-d52b0338.cjs +1 -0
  109. package/dist/{translate-icon.entry-01cbe664.js → translate-icon.entry-219cab17.js} +1 -1
  110. package/dist/{translate-icon.entry-f33632d6.cjs → translate-icon.entry-985b3b29.cjs} +1 -1
  111. package/dist/{trash-fill-icon.entry-b39ff771.js → trash-fill-icon.entry-03c90559.js} +1 -1
  112. package/dist/{trash-fill-icon.entry-298eece8.cjs → trash-fill-icon.entry-4dfd7d24.cjs} +1 -1
  113. package/dist/{underline-icon.entry-39179a2e.js → underline-icon.entry-58fa18b5.js} +1 -1
  114. package/dist/{underline-icon.entry-3704187c.cjs → underline-icon.entry-c60b77a6.cjs} +1 -1
  115. package/package.json +3 -3
  116. package/dist/calendar-agenda-fill-icon_37.entry-5e405c00.cjs +0 -6
  117. package/dist/checkbox-component.entry-8341a8d6.cjs +0 -1
  118. package/dist/checkbox-component.entry-da122544.js +0 -43
  119. package/dist/checkbox-group_4.entry-8854d522.cjs +0 -28
  120. package/dist/checkmark-icon_15.entry-a265f687.cjs +0 -5
  121. package/dist/chevron-icon_3.entry-6c38b5e5.cjs +0 -1
  122. package/dist/google-logo-icon_6.entry-60924f34.cjs +0 -2
  123. package/dist/index-e9dc7971.cjs +0 -118
  124. package/dist/input-dropdown_2.entry-cb163dc3.cjs +0 -1
  125. package/dist/multi-select-dropdown.entry-daccefd5.cjs +0 -1
  126. package/dist/nylas-booked-event-card_11.entry-3cdf8015.cjs +0 -1
  127. package/dist/nylas-date-component_2.entry-5d4f54fa.cjs +0 -1
  128. package/dist/nylas-form-card.entry-22851b77.cjs +0 -1
  129. package/dist/nylas-form-card.entry-a997084f.js +0 -58
  130. package/dist/nylas-scheduling.entry-9cef581a.cjs +0 -1
  131. package/dist/toggle-switch.entry-33273409.js +0 -34
  132. package/dist/toggle-switch.entry-ba6b4f33.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { r as b, h as s, a as m, g as x, b as d, S as q, H as w, i as c, y as S, T as H, P as V, U as M } from "./index-2084ffd9.js";
2
- import { R as C } from "./register-component-8bbd6492-0d8737fd.js";
1
+ import { r as b, h as l, a as m, g as x, b as d, S as q, H as C, i as c, y as R, T as S, P as V, U as M } from "./index-140eb219.js";
2
+ import { R as w } from "./register-component-0aad9e3d-b395364a.js";
3
3
  import { E as k, P as E, f as J } from "./constants-f51538ef-e0a5f026.js";
4
4
  import "react";
5
5
  import "react/jsx-runtime";
@@ -9,7 +9,7 @@ const G = ".sc-checkmark-icon-h{display:flex}", X = G, Q = class {
9
9
  b(this, e), this.width = "18", this.height = "14";
10
10
  }
11
11
  render() {
12
- return s("svg", { key: "a739b30f83d6510e6644045ba736860eb524c838", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "9621004de9b8789eab6f4d0616ae0ff25124fd44", d: "M1.53033 7.46967C1.23744 7.17678 0.762563 7.17678 0.46967 7.46967C0.176777 7.76256 0.176777 8.23744 0.46967 8.53033L4.96967 13.0303C5.26256 13.3232 5.73744 13.3232 6.03033 13.0303L17.0303 2.03033C17.3232 1.73744 17.3232 1.26256 17.0303 0.96967C16.7374 0.676777 16.2626 0.676777 15.9697 0.96967L5.5 11.4393L1.53033 7.46967Z", fill: "#293056" }));
12
+ return l("svg", { key: "a739b30f83d6510e6644045ba736860eb524c838", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("path", { key: "9621004de9b8789eab6f4d0616ae0ff25124fd44", d: "M1.53033 7.46967C1.23744 7.17678 0.762563 7.17678 0.46967 7.46967C0.176777 7.76256 0.176777 8.23744 0.46967 8.53033L4.96967 13.0303C5.26256 13.3232 5.73744 13.3232 6.03033 13.0303L17.0303 2.03033C17.3232 1.73744 17.3232 1.26256 17.0303 0.96967C16.7374 0.676777 16.2626 0.676777 15.9697 0.96967L5.5 11.4393L1.53033 7.46967Z", fill: "#293056" }));
13
13
  }
14
14
  };
15
15
  Q.style = X;
@@ -18,7 +18,7 @@ const Y = ".sc-copy-icon-h{display:flex}", ee = Y, te = class {
18
18
  b(this, e), this.width = "16", this.height = "16";
19
19
  }
20
20
  render() {
21
- return s("svg", { key: "af5249494e43163c59f43f0e21ff4a9063566023", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "d1b78a39d0dd7ce2a3823d54e2e0dbd5f260c188", d: "M4 0.75C2.89543 0.75 2 1.64543 2 2.75V12.75C2 13.8546 2.89543 14.75 4 14.75H10C11.1046 14.75 12 13.8546 12 12.75V2.75C12 1.64543 11.1046 0.75 10 0.75H4ZM3 2.75C3 2.19772 3.44772 1.75 4 1.75H10C10.5523 1.75 11 2.19772 11 2.75V12.75C11 13.3023 10.5523 13.75 10 13.75H4C3.44772 13.75 3 13.3023 3 12.75V2.75ZM0 4.75001C0 4.00973 0.402199 3.36339 1 3.01758V13.25C1 14.6307 2.11929 15.75 3.5 15.75H9.73244C9.38663 16.3478 8.74028 16.75 8 16.75H3.5C1.567 16.75 0 15.183 0 13.25V4.75001Z", fill: "currentColor" }));
21
+ return l("svg", { key: "af5249494e43163c59f43f0e21ff4a9063566023", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("path", { key: "d1b78a39d0dd7ce2a3823d54e2e0dbd5f260c188", d: "M4 0.75C2.89543 0.75 2 1.64543 2 2.75V12.75C2 13.8546 2.89543 14.75 4 14.75H10C11.1046 14.75 12 13.8546 12 12.75V2.75C12 1.64543 11.1046 0.75 10 0.75H4ZM3 2.75C3 2.19772 3.44772 1.75 4 1.75H10C10.5523 1.75 11 2.19772 11 2.75V12.75C11 13.3023 10.5523 13.75 10 13.75H4C3.44772 13.75 3 13.3023 3 12.75V2.75ZM0 4.75001C0 4.00973 0.402199 3.36339 1 3.01758V13.25C1 14.6307 2.11929 15.75 3.5 15.75H9.73244C9.38663 16.3478 8.74028 16.75 8 16.75H3.5C1.567 16.75 0 15.183 0 13.25V4.75001Z", fill: "currentColor" }));
22
22
  }
23
23
  };
24
24
  te.style = ee;
@@ -27,25 +27,25 @@ const ne = ".sc-dragable-icon-h{display:flex}", ae = ne, oe = class {
27
27
  b(this, e), this.width = "20", this.height = "20";
28
28
  }
29
29
  render() {
30
- return s("svg", { key: "e4d3ba685832139b22eb5b024479e22f2ddfc811", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "68f15598ca1251c3926a3b88adb0947f1a5b6b4a", d: "M15.5 18C16.3284 18 17 18.6716 17 19.5C17 20.3284 16.3284 21 15.5 21C14.6716 21 14 20.3284 14 19.5C14 18.6716 14.6716 18 15.5 18ZM8.5 18C9.32843 18 10 18.6716 10 19.5C10 20.3284 9.32843 21 8.5 21C7.67157 21 7 20.3284 7 19.5C7 18.6716 7.67157 18 8.5 18ZM15.5 11C16.3284 11 17 11.6716 17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11ZM8.5 11C9.32843 11 10 11.6716 10 12.5C10 13.3284 9.32843 14 8.5 14C7.67157 14 7 13.3284 7 12.5C7 11.6716 7.67157 11 8.5 11ZM15.5 4C16.3284 4 17 4.67157 17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4ZM8.5 4C9.32843 4 10 4.67157 10 5.5C10 6.32843 9.32843 7 8.5 7C7.67157 7 7 6.32843 7 5.5C7 4.67157 7.67157 4 8.5 4Z", fill: "currentColor" }));
30
+ return l("svg", { key: "e4d3ba685832139b22eb5b024479e22f2ddfc811", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("path", { key: "68f15598ca1251c3926a3b88adb0947f1a5b6b4a", d: "M15.5 18C16.3284 18 17 18.6716 17 19.5C17 20.3284 16.3284 21 15.5 21C14.6716 21 14 20.3284 14 19.5C14 18.6716 14.6716 18 15.5 18ZM8.5 18C9.32843 18 10 18.6716 10 19.5C10 20.3284 9.32843 21 8.5 21C7.67157 21 7 20.3284 7 19.5C7 18.6716 7.67157 18 8.5 18ZM15.5 11C16.3284 11 17 11.6716 17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11ZM8.5 11C9.32843 11 10 11.6716 10 12.5C10 13.3284 9.32843 14 8.5 14C7.67157 14 7 13.3284 7 12.5C7 11.6716 7.67157 11 8.5 11ZM15.5 4C16.3284 4 17 4.67157 17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4ZM8.5 4C9.32843 4 10 4.67157 10 5.5C10 6.32843 9.32843 7 8.5 7C7.67157 7 7 6.32843 7 5.5C7 4.67157 7.67157 4 8.5 4Z", fill: "currentColor" }));
31
31
  }
32
32
  };
33
33
  oe.style = ae;
34
- const le = ".sc-eye-icon-h{display:flex}", se = le, ie = class {
34
+ const se = ".sc-eye-icon-h{display:flex}", le = se, ie = class {
35
35
  constructor(e) {
36
36
  b(this, e), this.width = "17", this.height = "10";
37
37
  }
38
38
  render() {
39
- return s("svg", { key: "2b2a63f9602d85c9661986eb2dd8e220a02e5570", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "8609bab91f97b282d80282736ce38f895e7b6fc1", d: "M1.75909 6.60214C2.44254 3.32689 5.29437 1 8.50002 1C11.7057 1 14.5574 3.32688 15.2409 6.60215C15.2974 6.87246 15.5622 7.04587 15.8325 6.98946C16.1029 6.93304 16.2763 6.66817 16.2199 6.39785C15.4425 2.67312 12.1934 0 8.50002 0C4.8066 0 1.55742 2.67311 0.780175 6.39786C0.723767 6.66818 0.897177 6.93305 1.1675 6.98946C1.43782 7.04587 1.70268 6.87246 1.75909 6.60214ZM8.5 3C6.567 3 5 4.567 5 6.5C5 8.433 6.567 10 8.5 10C10.433 10 12 8.433 12 6.5C12 4.567 10.433 3 8.5 3ZM6 6.5C6 5.11929 7.11929 4 8.5 4C9.88071 4 11 5.11929 11 6.5C11 7.88071 9.88071 9 8.5 9C7.11929 9 6 7.88071 6 6.5Z", fill: "currentColor" }));
39
+ return l("svg", { key: "2b2a63f9602d85c9661986eb2dd8e220a02e5570", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("path", { key: "8609bab91f97b282d80282736ce38f895e7b6fc1", d: "M1.75909 6.60214C2.44254 3.32689 5.29437 1 8.50002 1C11.7057 1 14.5574 3.32688 15.2409 6.60215C15.2974 6.87246 15.5622 7.04587 15.8325 6.98946C16.1029 6.93304 16.2763 6.66817 16.2199 6.39785C15.4425 2.67312 12.1934 0 8.50002 0C4.8066 0 1.55742 2.67311 0.780175 6.39786C0.723767 6.66818 0.897177 6.93305 1.1675 6.98946C1.43782 7.04587 1.70268 6.87246 1.75909 6.60214ZM8.5 3C6.567 3 5 4.567 5 6.5C5 8.433 6.567 10 8.5 10C10.433 10 12 8.433 12 6.5C12 4.567 10.433 3 8.5 3ZM6 6.5C6 5.11929 7.11929 4 8.5 4C9.88071 4 11 5.11929 11 6.5C11 7.88071 9.88071 9 8.5 9C7.11929 9 6 7.88071 6 6.5Z", fill: "currentColor" }));
40
40
  }
41
41
  };
42
- ie.style = se;
42
+ ie.style = le;
43
43
  const re = ".sc-feedback-icon-h{display:flex}", ce = re, de = class {
44
44
  constructor(e) {
45
45
  b(this, e), this.width = "11", this.height = "14";
46
46
  }
47
47
  render() {
48
- return s("svg", { key: "0cef0443a3b22ffa2bd9be587f55175bef8557cf", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "20631452d3f3bc031b79d3337eda08143db490e4", d: "M0.5 8.875C0.5 8.875 1.125 8.25 3 8.25C4.875 8.25 6.125 9.5 8 9.5C9.875 9.5 10.5 8.875 10.5 8.875V1.375C10.5 1.375 9.875 2 8 2C6.125 2 4.875 0.75 3 0.75C1.125 0.75 0.5 1.375 0.5 1.375V8.875ZM0.5 8.875V13.25", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }));
48
+ return l("svg", { key: "0cef0443a3b22ffa2bd9be587f55175bef8557cf", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("path", { key: "20631452d3f3bc031b79d3337eda08143db490e4", d: "M0.5 8.875C0.5 8.875 1.125 8.25 3 8.25C4.875 8.25 6.125 9.5 8 9.5C9.875 9.5 10.5 8.875 10.5 8.875V1.375C10.5 1.375 9.875 2 8 2C6.125 2 4.875 0.75 3 0.75C1.125 0.75 0.5 1.375 0.5 1.375V8.875ZM0.5 8.875V13.25", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }));
49
49
  }
50
50
  };
51
51
  de.style = ce;
@@ -80,11 +80,11 @@ const fe = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
80
80
  !e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
81
81
  }
82
82
  render() {
83
- return s("div", { key: "354f7c502fadd2c6a30619365b9939523d9cd770", class: "color-picker-container", part: "icp_color-picker", tabindex: "0", onKeyDown: (e) => this.handleKeyDown(e) }, s("input", { key: "cc5803d2e90064b15137717043581f24cf80fda3", type: "color", ref: (e) => this.inputRef = e, id: this.name, name: this.name, value: this.selectedColor, tabindex: "-1", onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), onInput: (e) => this.handleInput(e), onChange: (e) => this.handleChange(e), onKeyDown: (e) => this.handleKeyDown(e) }), s("label", { key: "75e26e605a36d5a3505f41dbdad576484b14ac43", part: "icp_color-picker-button", htmlFor: this.name, class: { labelBtn: !0, open: this.isOpen, error: !!this.errorMessage }, "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name }, s("span", { key: "9a321653073ef9aa8a9372e291bd04244b6dfe46", class: "selected-option", part: "icp_color-picker-button-selected-label" }, this.selectedColor || "Select a color"), s("span", { key: "62ed4fb1337b47735c823b8e164bb8bb57325ffd", class: {
83
+ return l("div", { key: "354f7c502fadd2c6a30619365b9939523d9cd770", class: "color-picker-container", part: "icp_color-picker", tabindex: "0", onKeyDown: (e) => this.handleKeyDown(e) }, l("input", { key: "cc5803d2e90064b15137717043581f24cf80fda3", type: "color", ref: (e) => this.inputRef = e, id: this.name, name: this.name, value: this.selectedColor, tabindex: "-1", onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), onInput: (e) => this.handleInput(e), onChange: (e) => this.handleChange(e), onKeyDown: (e) => this.handleKeyDown(e) }), l("label", { key: "75e26e605a36d5a3505f41dbdad576484b14ac43", part: "icp_color-picker-button", htmlFor: this.name, class: { labelBtn: !0, open: this.isOpen, error: !!this.errorMessage }, "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name }, l("span", { key: "9a321653073ef9aa8a9372e291bd04244b6dfe46", class: "selected-option", part: "icp_color-picker-button-selected-label" }, this.selectedColor || "Select a color"), l("span", { key: "62ed4fb1337b47735c823b8e164bb8bb57325ffd", class: {
84
84
  open: this.isOpen,
85
85
  closed: !this.isOpen,
86
86
  chevron: !0
87
- }, "aria-hidden": "true" }, s("chevron-icon", { key: "5c304ff53cfc6d3632f4fbbd8415c318301b4e38", width: "16", height: "16" })), this.errorMessage && s("span", { class: "error help-text" }, this.errorMessage)));
87
+ }, "aria-hidden": "true" }, l("chevron-icon", { key: "5c304ff53cfc6d3632f4fbbd8415c318301b4e38", width: "16", height: "16" })), this.errorMessage && l("span", { class: "error help-text" }, this.errorMessage)));
88
88
  }
89
89
  get el() {
90
90
  return x(this);
@@ -92,21 +92,21 @@ const fe = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
92
92
  };
93
93
  ye.style = pe;
94
94
  const he = ':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}.logo-container{display:flex;flex-direction:row;gap:2rem}.logo-container .input-container{flex:1}.logo-container .input-container span.error-message{color:var(--nylas-error)}.logo-container .logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.logo-container .logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}', ue = he;
95
- var be = function(e, t, a, o) {
96
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
95
+ var be = function(e, t, n, o) {
96
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
97
97
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
98
- l = Reflect.decorate(e, t, a, o);
98
+ s = Reflect.decorate(e, t, n, o);
99
99
  else
100
100
  for (var i = e.length - 1; i >= 0; i--)
101
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
102
- return r > 3 && l && Object.defineProperty(t, a, l), l;
101
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
102
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
103
103
  }, O = function(e, t) {
104
104
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
105
105
  return Reflect.metadata(e, t);
106
106
  };
107
107
  const N = class {
108
108
  constructor(e) {
109
- b(this, e), this.nylasFormInputImageUrlInvalid = m(this, "nylasFormInputImageUrlInvalid", 7), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl, this.error = "";
109
+ b(this, e), this.nylasFormInputImageUrlInvalid = m(this, "nylasFormInputImageUrlInvalid", 7), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.componentType = "image-url", this.imageUrl = "", this.themeConfig = void 0, this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl, this.error = "";
110
110
  }
111
111
  connectedCallback() {
112
112
  d("nylas-image-input", "connectedCallback");
@@ -118,7 +118,7 @@ const N = class {
118
118
  d("nylas-image-input", "componentWillLoad"), this.host.setAttribute("name", this.name), this.host.setAttribute("component-type", this.componentType);
119
119
  }
120
120
  componentDidLoad() {
121
- d("nylas-image-input", "componentDidLoad"), this.currentImageUrl = this.imageUrl, this.setImage(this.imageUrl, !1);
121
+ d("nylas-image-input", "componentDidLoad"), this.currentImageUrl = this.imageUrl, this.setImage(this.imageUrl, !1), this.applyThemeConfig(this.themeConfig);
122
122
  }
123
123
  componentWillUpdate() {
124
124
  d("nylas-image-input", "componentWillUpdate");
@@ -138,13 +138,21 @@ const N = class {
138
138
  errorMessageChangedHandler(e) {
139
139
  d("nylas-image-input", "errorMessageChangedHandler", e), this.error && (this.error = e);
140
140
  }
141
+ themeConfigChangedHandler(e, t) {
142
+ e !== t && this.applyThemeConfig(e);
143
+ }
144
+ applyThemeConfig(e) {
145
+ if (e)
146
+ for (const [t, n] of Object.entries(e))
147
+ this.host.style.setProperty(`${t}`, n);
148
+ }
141
149
  async nylasFormInputChangedHandler(e) {
142
- const { name: t, value: a } = e.detail;
143
- t === this.name && this.setImage(a);
150
+ const { name: t, value: n } = e.detail;
151
+ t === this.name && this.setImage(n);
144
152
  }
145
153
  async nylasFormInputBlurHandler(e) {
146
- const { name: t, value: a } = e.detail;
147
- t === this.name && this.setImage(a);
154
+ const { name: t, value: n } = e.detail;
155
+ t === this.name && this.setImage(n);
148
156
  }
149
157
  setImage(e, t = !0) {
150
158
  this.error = "", q(e).then(() => {
@@ -154,7 +162,7 @@ const N = class {
154
162
  });
155
163
  }
156
164
  render() {
157
- return s(w, { key: "8714725206ddd2b1e5cda73632dd61f08b0b9683" }, s("div", { key: "c85385627929d92520132f4ff8a53060df5d1434", class: "logo-container" }, s("div", { key: "83391a115c511188b7f1a1128e7c3860a46406ad", class: "input-container" }, s("input-component", { key: "204b9d5bb3aff58f9053cc1bfa0d52de449aaa2e", name: this.name, id: this.name, type: "text", required: !1, exportparts: "ic_input: iiu__logo-input-textfield", defaultValue: this.imageUrl ?? "" }), this.error && s("span", { class: "error-message" }, this.error)), this.currentImageUrl && !this.error && s("div", { class: "logo" }, s("img", { src: this.currentImageUrl, alt: "Logo" }))));
165
+ return l(C, { key: "3ba309394a934b49e5fe958b2b35689db17ed25a" }, l("div", { key: "35364f7a937b885e295814931619162caf41b849", class: "logo-container" }, l("div", { key: "7b4714a223160fb8700f9ea240c96a86370360dd", class: "input-container" }, l("input-component", { key: "443b31dfa78de24cf3720bc985a0d8a723ea0f85", name: this.name, id: this.name, type: "text", required: !1, themeConfig: this.themeConfig, exportparts: "ic_input: iiu__logo-input-textfield", defaultValue: this.imageUrl ?? "" }), this.error && l("span", { class: "error-message" }, this.error)), this.currentImageUrl && !this.error && l("div", { class: "logo" }, l("img", { src: this.currentImageUrl, alt: "Logo" }))));
158
166
  }
159
167
  static get formAssociated() {
160
168
  return !0;
@@ -165,17 +173,18 @@ const N = class {
165
173
  static get watchers() {
166
174
  return {
167
175
  name: ["elementNameChangedHandler"],
168
- errorMessage: ["errorMessageChangedHandler"]
176
+ errorMessage: ["errorMessageChangedHandler"],
177
+ themeConfig: ["themeConfigChangedHandler"]
169
178
  };
170
179
  }
171
180
  };
172
181
  be([
173
- C({
182
+ w({
174
183
  name: "nylas-image-input",
175
184
  eventToProps: {
176
185
  valueChanged: async (e, t) => {
177
- const { valueChanged: a } = e.detail;
178
- a && a(e);
186
+ const { valueChanged: n } = e.detail;
187
+ n && n(e);
179
188
  }
180
189
  }
181
190
  }),
@@ -184,32 +193,35 @@ be([
184
193
  O("design:returntype", void 0)
185
194
  ], N.prototype, "render", null);
186
195
  N.style = ue;
187
- const ge = ':host{display:block;margin:1rem;--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}.nylas-additional-participants__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__input_group label span.org-as-participant{width:max-content}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}', me = ge;
188
- var ve = function(e, t, a, o) {
189
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
196
+ const ge = ':host{display:block;margin:1rem;--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}.nylas-additional-participants__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem;background-color:var(--nylas-base-25)}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__input_group label span.org-as-participant{width:max-content}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer;color:var(--nylas-base-800)}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer;color:var(--nylas-base-800)}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}', me = ge;
197
+ var ve = function(e, t, n, o) {
198
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
190
199
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
191
- l = Reflect.decorate(e, t, a, o);
200
+ s = Reflect.decorate(e, t, n, o);
192
201
  else
193
202
  for (var i = e.length - 1; i >= 0; i--)
194
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
195
- return r > 3 && l && Object.defineProperty(t, a, l), l;
203
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
204
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
196
205
  }, I = function(e, t) {
197
206
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
198
207
  return Reflect.metadata(e, t);
199
208
  };
200
209
  const z = class {
201
210
  constructor(e) {
202
- b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "participants", this.selectedConfiguration = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.participantOptions = void 0, this.eventParticipants = void 0, this.roundRobinConfig = void 0, this.selectedLanguage = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = !1, this.error = "", this.requiredError = "", this.patternError = "";
211
+ b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "participants", this.selectedConfiguration = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.participantOptions = void 0, this.eventParticipants = void 0, this.roundRobinConfig = void 0, this.selectedLanguage = void 0, this.themeConfig = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = !1, this.error = "", this.requiredError = "", this.patternError = "";
203
212
  }
204
213
  elementNameChangedHandler(e) {
205
214
  d("nylas-additional-participants", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
206
215
  }
207
- selectedConfigurationAndCurrentUserChangedHandler(e, t, a) {
208
- d("nylas-additional-participants", "selectedConfigurationAndCurrentUserChangedHandler", e, this.currentUser), a === "selectedConfiguration" ? this.updateState(e, this.currentUser, !1) : a === "currentUser" && this.updateState(this.selectedConfiguration, e, !1);
216
+ selectedConfigurationAndCurrentUserChangedHandler(e, t, n) {
217
+ d("nylas-additional-participants", "selectedConfigurationAndCurrentUserChangedHandler", e, this.currentUser), n === "selectedConfiguration" ? this.updateState(e, this.currentUser, !1) : n === "currentUser" && this.updateState(this.selectedConfiguration, e, !1);
209
218
  }
210
219
  selectedLanguageChangedHandler(e, t) {
211
220
  e !== t && (c.changeLanguage(e), this.requiredError = c.t("fieldRequired", { field: c.t("email") }), this.patternError = c.t("invalidInputFormat", { field: c.t("email") }), this.error && (this.error = c.t("nylasAdditionalParticipants.error")));
212
221
  }
222
+ themeConfigChangedHandler(e, t) {
223
+ e !== t && this.applyThemeConfig(e);
224
+ }
213
225
  connectedCallback() {
214
226
  d("nylas-additional-participants", "connectedCallback");
215
227
  }
@@ -222,37 +234,37 @@ const z = class {
222
234
  disconnectedCallback() {
223
235
  d("nylas-additional-participants", "disconnectedCallback");
224
236
  }
225
- updateState(e, t, a = !0) {
226
- var o, r, l, n;
227
- this.isRoundRobinConfig = (r = (o = e == null ? void 0 : e.availability) == null ? void 0 : o.availability_rules) != null && r.availability_method ? ((n = (l = e == null ? void 0 : e.availability) == null ? void 0 : l.availability_rules) == null ? void 0 : n.availability_method) !== "collective" : !1, this.participants = (e == null ? void 0 : e.participants) || this.eventParticipants || [], this.includeOrganizerAsParticipant = !!(this.isRoundRobinConfig && this.participants.find((i) => i.email === (t == null ? void 0 : t.email))), this.updateOrganizerAsParticipant(a);
237
+ updateState(e, t, n = !0) {
238
+ var o, r, s, a;
239
+ this.isRoundRobinConfig = (r = (o = e == null ? void 0 : e.availability) == null ? void 0 : o.availability_rules) != null && r.availability_method ? ((a = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : a.availability_method) !== "collective" : !1, this.participants = (e == null ? void 0 : e.participants) || this.eventParticipants || [], this.includeOrganizerAsParticipant = !!(this.isRoundRobinConfig && this.participants.find((i) => i.email === (t == null ? void 0 : t.email))), this.updateOrganizerAsParticipant(n);
228
240
  }
229
241
  get isInternalsAvailable() {
230
242
  return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
231
243
  }
232
244
  onInputOptionChanged(e) {
233
- var l, n, i, f;
245
+ var s, a, i, f;
234
246
  d("nylas-additional-participants", "onInputOptionChanged");
235
- const t = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, a = e.detail.name, o = (l = this.participantOptions) == null ? void 0 : l.find((p) => p.email === e.detail.value);
247
+ const t = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, n = e.detail.name, o = (s = this.participantOptions) == null ? void 0 : s.find((p) => p.email === e.detail.value);
236
248
  if (!o && this.isRoundRobinConfig) {
237
- this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, "For round robin configuration, participant should be selected from the dropdown."), this.participantErrors[a] = "For round robin page, participant should be selected from the dropdown.", this.participants[a].is_valid = !1, this.participants = [...this.participants];
249
+ this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, "For round robin configuration, participant should be selected from the dropdown."), this.participantErrors[n] = "For round robin page, participant should be selected from the dropdown.", this.participants[n].is_valid = !1, this.participants = [...this.participants];
238
250
  return;
239
251
  } else if (!o && !t.test(e.detail.value)) {
240
- this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, c.t("nylasAdditionalParticipants.error_email")), this.participantErrors[a] = c.t("nylasAdditionalParticipants.error_email"), this.participants[a].is_valid = !1, this.participants = [...this.participants];
252
+ this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, c.t("nylasAdditionalParticipants.error_email")), this.participantErrors[n] = c.t("nylasAdditionalParticipants.error_email"), this.participants[n].is_valid = !1, this.participants = [...this.participants];
241
253
  return;
242
254
  } else
243
- this.participantErrors[a] = "", this.participants[a].is_valid = !0, this.isInternalsAvailable && this.internals.setValidity({});
244
- this.participants[a].email = e.detail.value;
245
- const r = (n = o == null ? void 0 : o.calendars) == null ? void 0 : n.find((p) => p.is_primary);
246
- this.participants[a].availability = o && (r != null && r.id) ? { calendar_ids: [r.id] } : (i = o == null ? void 0 : o.calendars[0]) != null && i.id ? { calendar_ids: [o.calendars[0].id] } : void 0, this.participants[a].booking = o && this.isRoundRobinConfig && (r != null && r.id) ? { calendar_id: r.id } : this.isRoundRobinConfig && ((f = o == null ? void 0 : o.calendars[0]) != null && f.id) ? { calendar_id: o.calendars[0].id } : void 0, this.participants[a].name = (o == null ? void 0 : o.name) || e.detail.value, this.participants = [...this.participants], this.updateFormValue();
255
+ this.participantErrors[n] = "", this.participants[n].is_valid = !0, this.isInternalsAvailable && this.internals.setValidity({});
256
+ this.participants[n].email = e.detail.value;
257
+ const r = (a = o == null ? void 0 : o.calendars) == null ? void 0 : a.find((p) => p.is_primary);
258
+ this.participants[n].availability = o && (r != null && r.id) ? { calendar_ids: [r.id] } : (i = o == null ? void 0 : o.calendars[0]) != null && i.id ? { calendar_ids: [o.calendars[0].id] } : void 0, this.participants[n].booking = o && this.isRoundRobinConfig && (r != null && r.id) ? { calendar_id: r.id } : this.isRoundRobinConfig && ((f = o == null ? void 0 : o.calendars[0]) != null && f.id) ? { calendar_id: o.calendars[0].id } : void 0, this.participants[n].name = (o == null ? void 0 : o.name) || e.detail.value, this.participants = [...this.participants], this.updateFormValue();
247
259
  }
248
260
  updateOrganizerAsParticipant(e = !0) {
249
- var a, o, r, l, n, i, f;
261
+ var n, o, r, s, a, i, f;
250
262
  const t = this.participants.find((p) => {
251
263
  var h;
252
264
  return p.email === ((h = this.currentUser) == null ? void 0 : h.email);
253
265
  });
254
- if (this.isRoundRobinConfig && !t && ((a = this.currentUser) != null && a.email)) {
255
- const p = ((r = (o = this.currentUserCalendars) == null ? void 0 : o.find((h) => h.is_primary)) == null ? void 0 : r.id) || ((n = (l = this.currentUserCalendars) == null ? void 0 : l[0]) == null ? void 0 : n.id) || "primary";
266
+ if (this.isRoundRobinConfig && !t && ((n = this.currentUser) != null && n.email)) {
267
+ const p = ((r = (o = this.currentUserCalendars) == null ? void 0 : o.find((h) => h.is_primary)) == null ? void 0 : r.id) || ((a = (s = this.currentUserCalendars) == null ? void 0 : s[0]) == null ? void 0 : a.id) || "primary";
256
268
  this.participants = [
257
269
  {
258
270
  name: (i = this.currentUser) == null ? void 0 : i.name,
@@ -274,25 +286,30 @@ const z = class {
274
286
  d("nylas-additional-participants", "addParticipant"), this.participants = [...this.participants, { name: "", email: "", is_organizer: !1 }], this.updateFormValue();
275
287
  }
276
288
  removeParticipant(e) {
277
- d("nylas-additional-participants", "removeParticipant"), this.participants = this.participants.filter((t, a) => a !== e), this.updateFormValue();
289
+ d("nylas-additional-participants", "removeParticipant"), this.participants = this.participants.filter((t, n) => n !== e), this.updateFormValue();
278
290
  }
279
291
  updateFormValue(e = !0) {
280
292
  d("nylas-additional-participants", "updateFormValue");
281
- const t = this.isRoundRobinConfig ? this.includeOrganizerAsParticipant ? this.participants : this.participants.filter((a) => !a.is_organizer) : this.participants;
293
+ const t = this.isRoundRobinConfig ? this.includeOrganizerAsParticipant ? this.participants : this.participants.filter((n) => !n.is_organizer) : this.participants;
282
294
  t.length === 0 ? (this.error = c.t("nylasAdditionalParticipants.error"), this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, this.error)) : (this.isInternalsAvailable && this.internals.setValidity({}), this.error = "", this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(t), this.name), e && this.valueChanged.emit({ value: JSON.stringify(t), name: this.name }));
283
295
  }
284
296
  getArrayDifference(e, t) {
285
297
  return e.filter((o) => !t.some((r) => o.email === r.email)).map((o) => ({ value: o.email, label: o.email }));
286
298
  }
299
+ applyThemeConfig(e) {
300
+ if (e)
301
+ for (const [t, n] of Object.entries(e))
302
+ this.host.style.setProperty(`${t}`, n);
303
+ }
287
304
  render() {
288
- return s(w, { key: "4d547fe2488b5019af5d63d9691a740e8efb5f43", part: "nadtnlpart" }, s("nylas-form-card", { key: "627e61e9080b989b5871d798339e718e68bb639d", exportparts: "nfc, nfc__header" }, s("h3", { key: "447dc3fee1b9e4014a7aa6e54a01dbf84d4893ac", slot: "header-title", class: "nylas-additional-participants__title", part: "nadtnlpart__title" }, c.t("nylasAdditionalParticipants.headerTitle")), s("p", { key: "f116167709f9464422d4dedba69a1db6c3b55b0e", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nadtnlpart__subtitle" }, c.t("nylasAdditionalParticipants.headerSubTitle")), s("div", { key: "f231168dcab771100276cbd76710ec0446cdfa8c", slot: "content", class: "nylas-additional-participants__content", part: "nadtnlpart__content" }, s("div", { key: "47f0cf5882fa4f88a09ba74b70136e7911cae75f" }, this.participants.map((e, t) => s("div", { class: "nylas-additional-participants__input_group", part: "nadtnlpart__input_group" }, !e.is_organizer && s("label", null, `${c.t("nylasAdditionalParticipants.participant")} ${t}`), s("div", { part: "nadtnlpart__input_wrapper", class: {
305
+ return l(C, { key: "8f567ae6775e709c0d2046cb0e072039e6aa22f6", part: "nadtnlpart" }, l("nylas-form-card", { key: "9797400fad8fc093f6a909270ddfa7baf192ac8d", exportparts: "nfc, nfc__header", themeConfig: this.themeConfig }, l("h3", { key: "e4a4a618db2fb686a0f307727eafb15fc67e464f", slot: "header-title", class: "nylas-additional-participants__title", part: "nadtnlpart__title" }, c.t("nylasAdditionalParticipants.headerTitle")), l("p", { key: "30fe99e55ec458a1772492d39652072b4df893c6", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nadtnlpart__subtitle" }, c.t("nylasAdditionalParticipants.headerSubTitle")), l("div", { key: "f5fcde3ccb7493850b02ef17cbfc73e54560c045", slot: "content", class: "nylas-additional-participants__content", part: "nadtnlpart__content" }, l("div", { key: "25f5adaf1b9e1f4c2d4cc3a98e4becba334a34b0" }, this.participants.map((e, t) => l("div", { class: "nylas-additional-participants__input_group", part: "nadtnlpart__input_group" }, !e.is_organizer && l("label", null, `${c.t("nylasAdditionalParticipants.participant")} ${t}`), l("div", { part: "nadtnlpart__input_wrapper", class: {
289
306
  "nylas-additional-participants__input_wrapper": !0,
290
307
  "nylas-additional-participants__input_wrapper_organizer": (e == null ? void 0 : e.is_organizer) === !0,
291
308
  "nylas-additional-participants__input_wrapper_invalid": e.is_valid === !1,
292
309
  error: e.is_valid === !1
293
- } }, s("div", { class: { "nylas-additional-participants__input": !0, organizer: (e == null ? void 0 : e.is_organizer) === !0 }, part: "nadtnlpart__input" }, e.is_organizer ? s("input-component", { class: "label-input", name: `${t}`, key: t, label: c.t("nylasAdditionalParticipants.organizer"), required: !1, requiredError: this.requiredError, patternError: this.patternError, readOnly: e.is_organizer, defaultValue: e.email }, this.isRoundRobinConfig && s("div", { class: "required-input", slot: "additional-input" }, s("input", { type: "checkbox", name: "organizer_participant", id: "organizer_participant", onClick: () => {
310
+ } }, l("div", { class: { "nylas-additional-participants__input": !0, organizer: (e == null ? void 0 : e.is_organizer) === !0 }, part: "nadtnlpart__input" }, e.is_organizer ? l("input-component", { class: "label-input", name: `${t}`, key: t, label: c.t("nylasAdditionalParticipants.organizer"), required: !1, requiredError: this.requiredError, patternError: this.patternError, readOnly: e.is_organizer, defaultValue: e.email, themeConfig: this.themeConfig }, this.isRoundRobinConfig && l("div", { class: "required-input", slot: "additional-input" }, l("input", { type: "checkbox", name: "organizer_participant", id: "organizer_participant", onClick: () => {
294
311
  this.includeOrganizerAsParticipant = !this.includeOrganizerAsParticipant, this.updateFormValue();
295
- }, checked: this.includeOrganizerAsParticipant }), s("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, s("span", { class: "org-as-participant", part: "nadtnlpart__org-as-participant" }, c.t("nylasAdditionalParticipants.organizerAsParticipant")), s("tooltip-component", { id: "organizer_participant_tooltip" }, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, s("strong", null, c.t("nylasAdditionalParticipants.tooltip.includeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.includeOrganizerDesc"), " ", s("br", null), s("strong", null, c.t("nylasAdditionalParticipants.tooltip.excludeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.excludeOrganizerDesc")))))) : s("input-dropdown", { id: `${t}`, name: `${t}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !e.is_organizer && s("button", { onClick: () => this.removeParticipant(t), part: "nadtnlpart__remove-participant" }, s("close-icon", null)))), !e.is_valid && s("p", { class: "nylas-additional-participants__error", part: "nadtnlpart__error" }, this.participantErrors[t]))), s("p", { key: "d2b56b8aedb241aa6f30d7a1cd6bbb65c3b3df83", class: "nylas-additional-participants__error", part: "nadtnlpart__error" }, this.error)), s("button", { key: "e9ae0842ddbfa5e99216104204e944931c234d2a", class: "nylas-additional-participants__add", part: "nadtnlpart__add-participant", onClick: () => this.addParticipant() }, s("add-circle-icon", { key: "72c4f18b78923e41c5bf85203dfddce1faf69c66" }), " ", s("span", { key: "aa8f679690c7a591d120bafb6d3df96e74db4b5e" }, this.participants.length > 1 ? c.t("nylasAdditionalParticipants.addParticipant", { context: "next" }) : c.t("nylasAdditionalParticipants.addParticipant", { context: "first" }))))));
312
+ }, checked: this.includeOrganizerAsParticipant }), l("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, l("span", { class: "org-as-participant", part: "nadtnlpart__org-as-participant" }, c.t("nylasAdditionalParticipants.organizerAsParticipant")), l("tooltip-component", { id: "organizer_participant_tooltip" }, l("info-icon", { slot: "tooltip-icon" }), l("span", { slot: "tooltip-content" }, l("strong", null, c.t("nylasAdditionalParticipants.tooltip.includeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.includeOrganizerDesc"), " ", l("br", null), l("strong", null, c.t("nylasAdditionalParticipants.tooltip.excludeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.excludeOrganizerDesc")))))) : l("input-dropdown", { id: `${t}`, name: `${t}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants), themeConfig: this.themeConfig }), !e.is_organizer && l("button", { onClick: () => this.removeParticipant(t), part: "nadtnlpart__remove-participant" }, l("close-icon", null)))), !e.is_valid && l("p", { class: "nylas-additional-participants__error", part: "nadtnlpart__error" }, this.participantErrors[t]))), l("p", { key: "8878a1424302cbf36cf0a3a3a945c9a2ab63f1cd", class: "nylas-additional-participants__error", part: "nadtnlpart__error" }, this.error)), l("button", { key: "ffc743095240b2b14cedab52178fcec10a5f9d40", class: "nylas-additional-participants__add", part: "nadtnlpart__add-participant", onClick: () => this.addParticipant() }, l("add-circle-icon", { key: "b7c9581fd3aa18b846ae908ca49bbfaebf3f86e0" }), " ", l("span", { key: "9ae4f72925cd53c2fef4600dd6ec806ff513e211" }, this.participants.length > 1 ? c.t("nylasAdditionalParticipants.addParticipant", { context: "next" }) : c.t("nylasAdditionalParticipants.addParticipant", { context: "first" }))))));
296
313
  }
297
314
  static get formAssociated() {
298
315
  return !0;
@@ -305,19 +322,21 @@ const z = class {
305
322
  name: ["elementNameChangedHandler"],
306
323
  currentUser: ["selectedConfigurationAndCurrentUserChangedHandler"],
307
324
  selectedConfiguration: ["selectedConfigurationAndCurrentUserChangedHandler"],
308
- selectedLanguage: ["selectedLanguageChangedHandler"]
325
+ selectedLanguage: ["selectedLanguageChangedHandler"],
326
+ themeConfig: ["themeConfigChangedHandler"]
309
327
  };
310
328
  }
311
329
  };
312
330
  ve([
313
- C({
331
+ w({
314
332
  name: "nylas-additional-participants",
315
333
  stateToProps: /* @__PURE__ */ new Map([
316
334
  ["schedulerConfig.additionalParticipants", "participantOptions"],
317
335
  ["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
318
336
  ["schedulerConfig.currentUser", "currentUser"],
319
337
  ["schedulerConfig.calendars", "currentUserCalendars"],
320
- ["schedulerConfig.selectedLanguage", "selectedLanguage"]
338
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
339
+ ["schedulerConfig.themeConfig", "themeConfig"]
321
340
  ]),
322
341
  eventToProps: {},
323
342
  fireRegisterEvent: !0
@@ -327,38 +346,38 @@ ve([
327
346
  I("design:returntype", void 0)
328
347
  ], z.prototype, "render", null);
329
348
  z.style = me;
330
- const xe = ':host{--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}.nylas-event-description{display:flex;flex-direction:column;gap:4px;position:relative}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}.nylas-event-description div.event-description{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);white-space:nowrap;scrollbar-width:thin;min-height:50px;overflow-y:auto;white-space:pre-wrap;line-height:1.5;}.nylas-event-description div.event-description::-webkit-scrollbar{width:6px;height:6px}.nylas-event-description div.event-description.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-description span.add-additional-fields{display:flex;align-items:center;gap:8px}.nylas-event-description span.add-additional-fields button-component button{height:35px}.nylas-event-description span.help-text{display:inline-block;gap:4px;align-items:center;color:var(--nylas-base-500);font-size:14px;font-style:normal;font-weight:400;line-height:21px;position:relative}.nylas-event-description span.help-text span.label-icon{display:inline-block}.nylas-event-description span.help-text span.label-icon tooltip-component::part(tc__container){position:unset}.nylas-event-description span.help-text span.label-icon tooltip-component::part(tc__content){position:absolute;top:4px;left:50%;transform:translateX(-50%)}.nylas-event-description .highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:2px 5px;margin-left:4px;margin-bottom:4px;display:inline-block;vertical-align:baseline}.nylas-event-description .token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;margin-top:28px;overflow:auto;z-index:1;border-radius:4px;position:absolute;bottom:108px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.nylas-event-description .token-options{right:0;width:325px;max-width:unset}}.nylas-event-description .token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.nylas-event-description .token-options ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.nylas-event-description .token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.nylas-event-description .token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.nylas-event-description .token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.nylas-event-description .token-options ul li:hover,.nylas-event-description .token-options ul li:focus,.nylas-event-description .token-options ul li:active,.nylas-event-description .token-options ul li.active{background-color:var(--nylas-base-100)}.nylas-event-description .token-options ul li:hover .token-label .token,.nylas-event-description .token-options ul li:focus .token-label .token,.nylas-event-description .token-options ul li:active .token-label .token,.nylas-event-description .token-options ul li.active .token-label .token{color:var(--nylas-primary)}.nylas-event-description .token-options .selected{background-color:var(--nylas-base-100)}', ke = xe;
331
- var we = function(e, t, a, o) {
332
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
349
+ const xe = ':host{--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}.nylas-event-description{display:flex;flex-direction:column;gap:4px;position:relative}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}.nylas-event-description div.event-description{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);white-space:nowrap;scrollbar-width:thin;min-height:50px;overflow-y:auto;white-space:pre-wrap;line-height:1.5;background-color:var(--nylas-base-0);}.nylas-event-description div.event-description::-webkit-scrollbar{width:6px;height:6px}.nylas-event-description div.event-description.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-description span.add-additional-fields{display:flex;align-items:center;gap:8px}.nylas-event-description span.add-additional-fields button-component button{height:35px;background-color:var(--nylas-base-0)}.nylas-event-description span.help-text{display:inline-block;gap:4px;align-items:center;color:var(--nylas-base-500);font-size:14px;font-style:normal;font-weight:400;line-height:21px;position:relative}.nylas-event-description span.help-text span.label-icon{display:inline-block}.nylas-event-description span.help-text span.label-icon tooltip-component::part(tc__container){position:unset}.nylas-event-description span.help-text span.label-icon tooltip-component::part(tc__content){position:absolute;top:4px;left:50%;transform:translateX(-50%)}.nylas-event-description .highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:2px 5px;margin-left:4px;margin-bottom:4px;display:inline-block;vertical-align:baseline}.nylas-event-description .token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;margin-top:28px;overflow:auto;z-index:1;border-radius:4px;position:absolute;bottom:108px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.nylas-event-description .token-options{right:0;width:325px;max-width:unset}}.nylas-event-description .token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.nylas-event-description .token-options ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.nylas-event-description .token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.nylas-event-description .token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.nylas-event-description .token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.nylas-event-description .token-options ul li:hover,.nylas-event-description .token-options ul li:focus,.nylas-event-description .token-options ul li:active,.nylas-event-description .token-options ul li.active{background-color:var(--nylas-base-100)}.nylas-event-description .token-options ul li:hover .token-label .token,.nylas-event-description .token-options ul li:focus .token-label .token,.nylas-event-description .token-options ul li:active .token-label .token,.nylas-event-description .token-options ul li.active .token-label .token{color:var(--nylas-primary)}.nylas-event-description .token-options .selected{background-color:var(--nylas-base-100)}', ke = xe;
350
+ var Ce = function(e, t, n, o) {
351
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
333
352
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
334
- l = Reflect.decorate(e, t, a, o);
353
+ s = Reflect.decorate(e, t, n, o);
335
354
  else
336
355
  for (var i = e.length - 1; i >= 0; i--)
337
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
338
- return r > 3 && l && Object.defineProperty(t, a, l), l;
339
- }, A = function(e, t) {
356
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
357
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
358
+ }, P = function(e, t) {
340
359
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
341
360
  return Reflect.metadata(e, t);
342
361
  };
343
362
  const B = class {
344
363
  constructor(e) {
345
- var t, a, o, r;
346
- b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = (a = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : a.description, this.name = "description", this.selectedLanguage = void 0, this.hideAutoPopulateButton = !1, this.noTemplates = !1, this.description = this.eventDescription || ((r = (o = this.selectedConfiguration) == null ? void 0 : o.event_booking) == null ? void 0 : r.description) || "", this.showTokens = !1, this.availableTokens = k.map((l) => ({
347
- label: l.token,
348
- value: l.value,
349
- labelHTML: l
364
+ var t, n, o, r;
365
+ b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.description, this.name = "description", this.selectedLanguage = void 0, this.hideAutoPopulateButton = !1, this.noTemplates = !1, this.themeConfig = void 0, this.description = this.eventDescription || ((r = (o = this.selectedConfiguration) == null ? void 0 : o.event_booking) == null ? void 0 : r.description) || "", this.showTokens = !1, this.availableTokens = k.map((s) => ({
366
+ label: s.token,
367
+ value: s.value,
368
+ labelHTML: s
350
369
  })), this.filteredTokens = this.availableTokens, this.ariaActivedescendant = "", this.currentWord = { $value: "", fullText: "", index: -1, focusOffset: -1 }, this.validationError = "", this.additionalFieldTokens = [];
351
370
  }
352
371
  elementNameChangedHandler(e) {
353
372
  d("nylas-event-description", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
354
373
  }
355
374
  selectedConfigurationChangedHandler(e) {
356
- var l, n;
375
+ var s, a;
357
376
  d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e);
358
- const t = ((l = e == null ? void 0 : e.event_booking) == null ? void 0 : l.description) || this.eventDescription || "", a = ((n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.additional_fields) || {}, r = (Object.keys(a) || []).map((i) => ({
377
+ const t = ((s = e == null ? void 0 : e.event_booking) == null ? void 0 : s.description) || this.eventDescription || "", n = ((a = e == null ? void 0 : e.scheduler) == null ? void 0 : a.additional_fields) || {}, r = (Object.keys(n) || []).map((i) => ({
359
378
  token: `$${i}`,
360
379
  value: `\${${i}}`,
361
- description: a[i].label || ""
380
+ description: n[i].label || ""
362
381
  }));
363
382
  this.additionalFieldTokens = [...r], this.availableTokens = [...k, ...r].map((i) => ({
364
383
  label: i.token,
@@ -370,12 +389,20 @@ const B = class {
370
389
  if (e === t)
371
390
  return;
372
391
  c.changeLanguage(e);
373
- const a = {
392
+ const n = {
374
393
  $invitee: "invitee",
375
394
  $invitee_email: "inviteeEmail",
376
395
  $duration: "duration"
377
396
  };
378
- this.availableTokens = this.availableTokens.map((o) => (a[o.label] && (o.labelHTML.description = c.t(`nylasEventTitle.eventTitleTokenDescription.${a[o.label]}`)), o)), this.filteredTokens = [...this.availableTokens];
397
+ this.availableTokens = this.availableTokens.map((o) => (n[o.label] && (o.labelHTML.description = c.t(`nylasEventTitle.eventTitleTokenDescription.${n[o.label]}`)), o)), this.filteredTokens = [...this.availableTokens];
398
+ }
399
+ themeConfigChangedHandler(e, t) {
400
+ e !== t && this.applyThemeConfig(e);
401
+ }
402
+ applyThemeConfig(e) {
403
+ if (e)
404
+ for (const [t, n] of Object.entries(e))
405
+ this.host.style.setProperty(`${t}`, n);
379
406
  }
380
407
  connectedCallback() {
381
408
  d("nylas-event-description", "connectedCallback");
@@ -390,17 +417,17 @@ const B = class {
390
417
  d("nylas-event-description", "disconnectedCallback");
391
418
  }
392
419
  valueChangedHandler(e) {
393
- const { name: t, value: a } = e.detail;
420
+ const { name: t, value: n } = e.detail;
394
421
  if (t === "additional-fields") {
395
- const o = JSON.parse(a.toString()), l = (Object.keys(o) || []).map((n) => ({
396
- token: `$${n}`,
397
- value: `\${${n}}`,
398
- description: o[n].label || ""
422
+ const o = JSON.parse(n.toString()), s = (Object.keys(o) || []).map((a) => ({
423
+ token: `$${a}`,
424
+ value: `\${${a}}`,
425
+ description: o[a].label || ""
399
426
  }));
400
- this.additionalFieldTokens = [...l], this.availableTokens = [...k, ...l].map((n) => ({
401
- label: n.token,
402
- value: n.value,
403
- labelHTML: n
427
+ this.additionalFieldTokens = [...s], this.availableTokens = [...k, ...s].map((a) => ({
428
+ label: a.token,
429
+ value: a.value,
430
+ labelHTML: a
404
431
  })), this.filteredTokens = [...this.availableTokens];
405
432
  }
406
433
  }
@@ -411,15 +438,15 @@ const B = class {
411
438
  }
412
439
  highlightTokens(e) {
413
440
  let t = e;
414
- return [...k, ...this.additionalFieldTokens].forEach((a) => {
415
- const o = a.value, r = new RegExp(`(\\${o})(?!\\w)`, "g");
441
+ return [...k, ...this.additionalFieldTokens].forEach((n) => {
442
+ const o = n.value, r = new RegExp(`(\\${o})(?!\\w)`, "g");
416
443
  t = (t == null ? void 0 : t.replace(r, '<span class="highlighted-tag">$1</span>')) || "";
417
444
  }), t;
418
445
  }
419
446
  getCurrentSelectionForBrowser() {
420
- var o, r, l;
421
- const e = (n, i, f, p) => {
422
- const h = n.replace(/[\u200B-\u200D\uFEFF]/g, ""), y = h.lastIndexOf("$"), u = h.substring(y).split(" ")[0];
447
+ var o, r, s;
448
+ const e = (a, i, f, p) => {
449
+ const h = a.replace(/[\u200B-\u200D\uFEFF]/g, ""), y = h.lastIndexOf("$"), u = h.substring(y).split(" ")[0];
423
450
  return {
424
451
  focusOffset: i,
425
452
  dollarIndex: y,
@@ -428,21 +455,21 @@ const B = class {
428
455
  node: f,
429
456
  allSelected: p
430
457
  };
431
- }, t = (n) => {
458
+ }, t = (a) => {
432
459
  var i, f;
433
- return n.anchorOffset === 0 && n.focusOffset === ((f = (i = n.focusNode) == null ? void 0 : i.nodeValue) == null ? void 0 : f.length);
460
+ return a.anchorOffset === 0 && a.focusOffset === ((f = (i = a.focusNode) == null ? void 0 : i.nodeValue) == null ? void 0 : f.length);
434
461
  };
435
462
  switch (M()) {
436
463
  case "Chrome": {
437
- const n = (o = this.host.shadowRoot) == null ? void 0 : o.getSelection(), i = n == null ? void 0 : n.focusNode, f = (i == null ? void 0 : i.nodeValue) || "", p = n && t(n);
438
- return e(f, (n == null ? void 0 : n.focusOffset) || -1, i, p);
464
+ const a = (o = this.host.shadowRoot) == null ? void 0 : o.getSelection(), i = a == null ? void 0 : a.focusNode, f = (i == null ? void 0 : i.nodeValue) || "", p = a && t(a);
465
+ return e(f, (a == null ? void 0 : a.focusOffset) || -1, i, p);
439
466
  }
440
467
  case "Firefox": {
441
- const n = document.getSelection(), i = ((r = n == null ? void 0 : n.anchorNode) == null ? void 0 : r.nodeValue) || "", f = n && t(n);
442
- return e(i, (n == null ? void 0 : n.focusOffset) || -1, n == null ? void 0 : n.anchorNode, f);
468
+ const a = document.getSelection(), i = ((r = a == null ? void 0 : a.anchorNode) == null ? void 0 : r.nodeValue) || "", f = a && t(a);
469
+ return e(i, (a == null ? void 0 : a.focusOffset) || -1, a == null ? void 0 : a.anchorNode, f);
443
470
  }
444
471
  case "Safari": {
445
- const n = window.getSelection(), i = n == null ? void 0 : n.getComposedRanges(this.host.shadowRoot)[0], f = ((l = i == null ? void 0 : i.startContainer) == null ? void 0 : l.nodeValue) || "", p = n && t(n);
472
+ const a = window.getSelection(), i = a == null ? void 0 : a.getComposedRanges(this.host.shadowRoot)[0], f = ((s = i == null ? void 0 : i.startContainer) == null ? void 0 : s.nodeValue) || "", p = a && t(a);
446
473
  return e(f, (i == null ? void 0 : i.endOffset) || -1, i == null ? void 0 : i.startContainer, p);
447
474
  }
448
475
  default:
@@ -451,32 +478,32 @@ const B = class {
451
478
  }
452
479
  handleChange(e) {
453
480
  let t = e.target.textContent || "";
454
- t = S(t);
455
- const a = this.getCurrentSelectionForBrowser();
456
- if (!a) {
481
+ t = R(t);
482
+ const n = this.getCurrentSelectionForBrowser();
483
+ if (!n) {
457
484
  this.updateEventDescription(t), this.resetDropdown();
458
485
  return;
459
486
  }
460
- const { focusOffset: o, dollarIndex: r, lastWord: l, currentText: n } = a;
487
+ const { focusOffset: o, dollarIndex: r, lastWord: s, currentText: a } = n;
461
488
  if (r === -1 || o < r) {
462
489
  this.updateEventDescription(t), this.resetDropdown();
463
490
  return;
464
491
  }
465
- l.startsWith("$") ? (this.showTokens = !0, this.currentWord = {
466
- $value: l,
467
- fullText: n,
492
+ s.startsWith("$") ? (this.showTokens = !0, this.currentWord = {
493
+ $value: s,
494
+ fullText: a,
468
495
  index: r,
469
496
  focusOffset: o
470
- }, this.populateSuggestionsDropdown(l)) : this.resetDropdown(), this.updateEventDescription(t);
497
+ }, this.populateSuggestionsDropdown(s)) : this.resetDropdown(), this.updateEventDescription(t);
471
498
  }
472
499
  handleInputKeyDown(e) {
473
- var a, o, r, l;
500
+ var n, o, r, s;
474
501
  const t = this.getCurrentSelectionForBrowser();
475
- if (t != null && t.allSelected && !H(e) && (this.descriptionRef.innerHTML = ""), e.key === "Enter") {
502
+ if (t != null && t.allSelected && !S(e) && (this.descriptionRef.innerHTML = ""), e.key === "Enter") {
476
503
  e.preventDefault();
477
- const n = (a = this.host.shadowRoot) == null ? void 0 : a.getElementById(this.ariaActivedescendant);
478
- if (n)
479
- n.click(), this.ariaActivedescendant = "";
504
+ const a = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(this.ariaActivedescendant);
505
+ if (a)
506
+ a.click(), this.ariaActivedescendant = "";
480
507
  else {
481
508
  const i = t == null ? void 0 : t.node, f = (t == null ? void 0 : t.focusOffset) || 0;
482
509
  if (!i || f === -1 || this.descriptionRef.childNodes.length === 0) {
@@ -500,52 +527,52 @@ const B = class {
500
527
  }
501
528
  } else if (e.key === "ArrowDown") {
502
529
  this.showTokens && e.preventDefault();
503
- const n = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById(this.ariaActivedescendant);
504
- if (n) {
505
- const i = n.nextElementSibling;
530
+ const a = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById(this.ariaActivedescendant);
531
+ if (a) {
532
+ const i = a.nextElementSibling;
506
533
  i ? this.ariaActivedescendant = i.id : this.ariaActivedescendant = this.filteredTokens[0].label;
507
534
  } else
508
535
  this.ariaActivedescendant = this.filteredTokens[0].label;
509
536
  } else if (e.key === "ArrowUp") {
510
537
  this.showTokens && e.preventDefault();
511
- const n = (r = this.host.shadowRoot) == null ? void 0 : r.getElementById(this.ariaActivedescendant);
512
- if (n) {
513
- const i = n.previousElementSibling;
538
+ const a = (r = this.host.shadowRoot) == null ? void 0 : r.getElementById(this.ariaActivedescendant);
539
+ if (a) {
540
+ const i = a.previousElementSibling;
514
541
  i ? this.ariaActivedescendant = i.id : this.ariaActivedescendant = this.filteredTokens[this.filteredTokens.length - 1].label;
515
542
  } else
516
543
  this.ariaActivedescendant = this.filteredTokens[this.filteredTokens.length - 1].label;
517
544
  } else if (e.key === "Escape")
518
545
  e.preventDefault(), this.resetDropdown();
519
546
  else if (e.key === "Backspace" || e.key === "Delete") {
520
- const n = (l = t == null ? void 0 : t.node) == null ? void 0 : l.parentNode;
521
- t != null && t.currentText.startsWith("${") && n && n.nodeName === "SPAN" && (e.preventDefault(), n.removeChild(t.node), n.remove(), this.resetDropdown()), (this.descriptionRef.textContent === "" || t != null && t.allSelected) && (this.descriptionRef.innerHTML = "", this.updateEventDescription(""));
547
+ const a = (s = t == null ? void 0 : t.node) == null ? void 0 : s.parentNode;
548
+ t != null && t.currentText.startsWith("${") && a && a.nodeName === "SPAN" && (e.preventDefault(), a.removeChild(t.node), a.remove(), this.resetDropdown()), (this.descriptionRef.textContent === "" || t != null && t.allSelected) && (this.descriptionRef.innerHTML = "", this.updateEventDescription(""));
522
549
  }
523
550
  }
524
551
  selectOption(e, t) {
525
552
  var T;
526
553
  e.preventDefault();
527
- const a = this.currentWord.fullText, o = this.currentWord.$value;
528
- let r = this.descriptionRef.firstChild, l = null;
554
+ const n = this.currentWord.fullText, o = this.currentWord.$value;
555
+ let r = this.descriptionRef.firstChild, s = null;
529
556
  for (; r; ) {
530
557
  if (r.nodeType === 3) {
531
- const v = ((T = r.textContent) == null ? void 0 : T.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", L = a.replace(/[\u200B-\u200D\uFEFF]/g, "");
558
+ const v = ((T = r.textContent) == null ? void 0 : T.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", L = n.replace(/[\u200B-\u200D\uFEFF]/g, "");
532
559
  if (v.includes(L)) {
533
- l = r;
560
+ s = r;
534
561
  break;
535
562
  }
536
563
  }
537
564
  r = r.nextSibling;
538
565
  }
539
- if (!l)
566
+ if (!s)
540
567
  return;
541
- const n = l.textContent || "", i = n.indexOf(o), f = n.substring(0, i), p = n.substring(i + o.length), h = document.createTextNode(f), y = document.createRange(), u = document.createElement("span");
568
+ const a = s.textContent || "", i = a.indexOf(o), f = a.substring(0, i), p = a.substring(i + o.length), h = document.createTextNode(f), y = document.createRange(), u = document.createElement("span");
542
569
  u.classList.add("highlighted-tag"), u.textContent = `${t.value}`;
543
570
  const _ = document.createTextNode(p);
544
571
  if (p !== "")
545
- l.replaceWith(h, u, _), y.setStart(_, 1);
572
+ s.replaceWith(h, u, _), y.setStart(_, 1);
546
573
  else {
547
574
  const v = document.createTextNode("​");
548
- l.replaceWith(h, u, v), y.setStart(v, 1);
575
+ s.replaceWith(h, u, v), y.setStart(v, 1);
549
576
  }
550
577
  this.resetDropdown(), this.descriptionRef.focus();
551
578
  const g = window.getSelection();
@@ -558,32 +585,32 @@ const B = class {
558
585
  return typeof this.internals < "u" && typeof this.internals.setValidity == "function" && typeof this.internals.setFormValue == "function";
559
586
  }
560
587
  updateEventDescription(e) {
561
- var a;
588
+ var n;
562
589
  const t = e.replace(/ +/g, " ");
563
- this.isInternalsAvailable && ((a = this.internals) == null || a.setFormValue(t, this.name)), this.valueChanged.emit({ value: t, name: this.name });
590
+ this.isInternalsAvailable && ((n = this.internals) == null || n.setFormValue(t, this.name)), this.valueChanged.emit({ value: t, name: this.name });
564
591
  }
565
592
  resetDropdown() {
566
593
  this.showTokens = !1, this.ariaActivedescendant = "";
567
594
  }
568
595
  getLabelHTML(e) {
569
- return s("div", { class: "token-label" }, s("span", { class: "token" }, e.token), s("span", { class: "description" }, e.description));
596
+ return l("div", { class: "token-label" }, l("span", { class: "token" }, e.token), l("span", { class: "description" }, e.description));
570
597
  }
571
598
  handleAddAdditionalFields() {
572
599
  if (this.additionalFieldTokens.length === 0)
573
600
  return;
574
- const e = this.descriptionRef.innerHTML, t = "--- Additional Fields ---", a = "--- End Additional Fields ---", o = e.indexOf(t), r = e.indexOf(a);
575
- let l = t + `
601
+ const e = this.descriptionRef.innerHTML, t = "--- Additional Fields ---", n = "--- End Additional Fields ---", o = e.indexOf(t), r = e.indexOf(n);
602
+ let s = t + `
576
603
  `;
577
604
  this.additionalFieldTokens.forEach((i) => {
578
- l += `${i.description}: ${i.value}
605
+ s += `${i.description}: ${i.value}
579
606
  `;
580
- }), l += a;
581
- let n;
582
- o !== -1 && r !== -1 ? n = e.substring(0, o) + l + e.substring(r + a.length) : n = e + l, this.updateEventDescriptionFromProp(n), this.updateEventDescription(n);
607
+ }), s += n;
608
+ let a;
609
+ o !== -1 && r !== -1 ? a = e.substring(0, o) + s + e.substring(r + n.length) : a = e + s, this.updateEventDescriptionFromProp(a), this.updateEventDescription(a);
583
610
  }
584
611
  render() {
585
612
  var e;
586
- return s(w, { key: "22675b5fed7bbca517109629eae72cbcc92b21a9" }, s("div", { key: "16c888f9635a3d6a40e1caaa98a032044a29abe1", class: "nylas-event-description", part: "nedesc" }, s("label", { key: "05f549d01ea2477c208c4e27f41ae7c5d3487ce9", htmlFor: "description" }, c.t("nylasEventDescription.headerTitle"), s("span", { key: "5355ed1517f58fc6c07ce121be35998154a166cc", class: "label-icon" }, s("tooltip-component", { key: "2efa954b0f0ee944b5b88039d97d72fa0d3ec46e" }, s("info-icon", { key: "e6c02583a6668f0c25771183a7a11d4c0de87887", slot: "tooltip-icon" }), s("span", { key: "ff003ecf4ba64e385fc50edff5c4a621a3600e5e", slot: "tooltip-content" }, c.t("nylasEventDescription.tooltip.desc"))))), s("div", { key: "296a0a0321ab1b1be9f3b6e89bcf9f58da8b6969", id: "event-description", class: { "event-description": !0 }, part: "nedesc__textarea", contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t), ref: (t) => this.descriptionRef = t }), !this.noTemplates && this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && s("div", { class: "token-options", part: "nedesc__dropdown-content" }, s("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => s("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (a) => this.selectOption(a, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), !this.noTemplates && s("span", { class: "help-text" }, c.t("nylasEventTitle.helpText", { context: "start", field: c.t("nylasEventTitle.description") }), " ", s("code", null, "$"), " ", c.t("nylasEventTitle.helpText", { context: "end" }), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon", width: "13", height: "13" }), s("span", { slot: "tooltip-content" }, c.t("nylasEventTitle.tooltip.desc"), " ", s("code", null, "${invitee}"))))), !this.noTemplates && !this.hideAutoPopulateButton && s("span", { class: "add-additional-fields" }, s("button-component", { variant: "basic", onClick: () => this.handleAddAdditionalFields() }, c.t("nylasEventDescription.addAdditionalFields.buttonText")), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasEventDescription.addAdditionalFields.tooltip.desc"), " ", s("code", null, "${invitee}")))))));
613
+ return l(C, { key: "9ccddd8582abc61f2dddd757a4c0b421ca75718b" }, l("div", { key: "06234e9529c43410161c40ac752fa6f0413daa6b", class: "nylas-event-description", part: "nedesc" }, l("label", { key: "c908c2dbd967208f92e72fab292b32527d645d0f", htmlFor: "description" }, c.t("nylasEventDescription.headerTitle"), l("span", { key: "90f417361636dc3d35d36be47e96b9cb2075294c", class: "label-icon" }, l("tooltip-component", { key: "d1bd3235457855d341c07be94a1d865995b21dac" }, l("info-icon", { key: "0ddd3a4af6dad47dec07fb5d6e490de8b174c4c3", slot: "tooltip-icon" }), l("span", { key: "b80a0cf4324dd728e32afc689327b5fb29a59fe8", slot: "tooltip-content" }, c.t("nylasEventDescription.tooltip.desc"))))), l("div", { key: "cf413dda764a5c41faafb1d95aecd1725e40eea3", id: "event-description", class: { "event-description": !0 }, part: "nedesc__textarea", contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t), ref: (t) => this.descriptionRef = t }), !this.noTemplates && this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && l("div", { class: "token-options", part: "nedesc__dropdown-content" }, l("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => l("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (n) => this.selectOption(n, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), !this.noTemplates && l("span", { class: "help-text" }, c.t("nylasEventTitle.helpText", { context: "start", field: c.t("nylasEventTitle.description") }), " ", l("code", null, "$"), " ", c.t("nylasEventTitle.helpText", { context: "end" }), l("span", { class: "label-icon" }, l("tooltip-component", null, l("info-icon", { slot: "tooltip-icon", width: "13", height: "13" }), l("span", { slot: "tooltip-content" }, c.t("nylasEventTitle.tooltip.desc"), " ", l("code", null, "${invitee}"))))), !this.noTemplates && !this.hideAutoPopulateButton && l("span", { class: "add-additional-fields" }, l("button-component", { variant: "basic", onClick: () => this.handleAddAdditionalFields() }, c.t("nylasEventDescription.addAdditionalFields.buttonText")), l("span", { class: "label-icon" }, l("tooltip-component", null, l("info-icon", { slot: "tooltip-icon" }), l("span", { slot: "tooltip-content" }, c.t("nylasEventDescription.addAdditionalFields.tooltip.desc"), " ", l("code", null, "${invitee}")))))));
587
614
  }
588
615
  static get formAssociated() {
589
616
  return !0;
@@ -595,45 +622,55 @@ const B = class {
595
622
  return {
596
623
  name: ["elementNameChangedHandler"],
597
624
  selectedConfiguration: ["selectedConfigurationChangedHandler"],
598
- selectedLanguage: ["selectedLanguageChangedHandler"]
625
+ selectedLanguage: ["selectedLanguageChangedHandler"],
626
+ themeConfig: ["themeConfigChangedHandler"]
599
627
  };
600
628
  }
601
629
  };
602
- we([
603
- C({
630
+ Ce([
631
+ w({
604
632
  name: "nylas-event-description",
605
633
  stateToProps: /* @__PURE__ */ new Map([
606
634
  ["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
607
- ["schedulerConfig.selectedLanguage", "selectedLanguage"]
635
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
636
+ ["schedulerConfig.themeConfig", "themeConfig"]
608
637
  ]),
609
638
  eventToProps: {},
610
639
  fireRegisterEvent: !0
611
640
  }),
612
- A("design:type", Function),
613
- A("design:paramtypes", []),
614
- A("design:returntype", void 0)
641
+ P("design:type", Function),
642
+ P("design:paramtypes", []),
643
+ P("design:returntype", void 0)
615
644
  ], B.prototype, "render", null);
616
645
  B.style = ke;
617
- const Ce = ':host{display:block;margin:1rem;--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}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', _e = Ce;
618
- var Te = function(e, t, a, o) {
619
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
646
+ const we = ':host{display:block;margin:1rem;--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}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem;background-color:var(--nylas-base-25)}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', _e = we;
647
+ var Te = function(e, t, n, o) {
648
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
620
649
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
621
- l = Reflect.decorate(e, t, a, o);
650
+ s = Reflect.decorate(e, t, n, o);
622
651
  else
623
652
  for (var i = e.length - 1; i >= 0; i--)
624
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
625
- return r > 3 && l && Object.defineProperty(t, a, l), l;
626
- }, D = function(e, t) {
653
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
654
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
655
+ }, A = function(e, t) {
627
656
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
628
657
  return Reflect.metadata(e, t);
629
658
  };
630
- const U = class {
659
+ const j = class {
631
660
  constructor(e) {
632
- b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedLanguage = void 0;
661
+ b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedLanguage = void 0, this.themeConfig = void 0;
633
662
  }
634
663
  selectedLanguageChangedHandler(e, t) {
635
664
  e !== t && c.changeLanguage(e);
636
665
  }
666
+ themeConfigChangedHandler(e, t) {
667
+ e !== t && this.applyThemeConfig(e);
668
+ }
669
+ applyThemeConfig(e) {
670
+ if (e)
671
+ for (const [t, n] of Object.entries(e))
672
+ this.el.style.setProperty(`${t}`, n);
673
+ }
637
674
  connectedCallback() {
638
675
  d("nylas-event-info", "connectedCallback");
639
676
  }
@@ -647,7 +684,7 @@ const U = class {
647
684
  d("nylas-event-info", "disconnectedCallback");
648
685
  }
649
686
  render() {
650
- return s(w, { key: "cfa64573a181b73e281bdba4701609cb868252c8" }, s("nylas-form-card", { key: "78088bb50a3234e17c199abc6b4e1a2fffd94707", exportparts: "nfc__header: nei__header" }, s("h1", { key: "ab1659b45f24e04683d73661fdc76a8b787398f2", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, c.t("nylasEventInfo.headerTitle")), s("div", { key: "eda2bc7c2ce9cb16b92d48aa15dabf965d71b926", slot: "content", class: "nylas-event-info__content" }, s("slot", { key: "8c12079eb30485a8fb8c1821223b54551268b4b1", name: "inputs" }))));
687
+ return l(C, { key: "a62edaabd2210706d4ef9f671973a40fcbcb8d52" }, l("nylas-form-card", { key: "6bfbb55c126393559f7f00587fd7b009c0c42422", exportparts: "nfc__header: nei__header" }, l("h1", { key: "b05d0fa0528248fee82584e1ac594c68d17b1b8f", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, c.t("nylasEventInfo.headerTitle")), l("div", { key: "5a589ed5c86d6fb4327110618af4fe320840a062", slot: "content", class: "nylas-event-info__content" }, l("slot", { key: "74c8f5de152d7efce914f8968342b84b3b4d5d35", name: "inputs" }))));
651
688
  }
652
689
  static get formAssociated() {
653
690
  return !0;
@@ -657,39 +694,43 @@ const U = class {
657
694
  }
658
695
  static get watchers() {
659
696
  return {
660
- selectedLanguage: ["selectedLanguageChangedHandler"]
697
+ selectedLanguage: ["selectedLanguageChangedHandler"],
698
+ themeConfig: ["themeConfigChangedHandler"]
661
699
  };
662
700
  }
663
701
  };
664
702
  Te([
665
- C({
703
+ w({
666
704
  name: "nylas-event-info",
667
- stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
705
+ stateToProps: /* @__PURE__ */ new Map([
706
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
707
+ ["schedulerConfig.themeConfig", "themeConfig"]
708
+ ]),
668
709
  eventToProps: {},
669
710
  fireRegisterEvent: !0
670
711
  }),
671
- D("design:type", Function),
672
- D("design:paramtypes", []),
673
- D("design:returntype", void 0)
674
- ], U.prototype, "render", null);
675
- U.style = _e;
676
- const Ee = ':host{--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}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Le = Ee;
677
- var Oe = function(e, t, a, o) {
678
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
712
+ A("design:type", Function),
713
+ A("design:paramtypes", []),
714
+ A("design:returntype", void 0)
715
+ ], j.prototype, "render", null);
716
+ j.style = _e;
717
+ const Ee = ':host{--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}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;background-color:var(--nylas-base-0);color:var(--nylas-base-900)}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Le = Ee;
718
+ var Oe = function(e, t, n, o) {
719
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
679
720
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
680
- l = Reflect.decorate(e, t, a, o);
721
+ s = Reflect.decorate(e, t, n, o);
681
722
  else
682
723
  for (var i = e.length - 1; i >= 0; i--)
683
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
684
- return r > 3 && l && Object.defineProperty(t, a, l), l;
685
- }, P = function(e, t) {
724
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
725
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
726
+ }, $ = function(e, t) {
686
727
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
687
728
  return Reflect.metadata(e, t);
688
729
  };
689
- const W = class {
730
+ const U = class {
690
731
  constructor(e) {
691
732
  var t;
692
- b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "location", this.currentUser = void 0, this.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.selectedLanguage = void 0, this.location = this.eventLocation ?? "", this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : "", this.selectedLocationOption = void 0, this.userProviderState = this.userProvider ?? ((t = this.currentUser) == null ? void 0 : t.provider) ?? "", this.locationOptions = [
733
+ b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "location", this.currentUser = void 0, this.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.selectedLanguage = void 0, this.themeConfig = void 0, this.location = this.eventLocation ?? "", this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : "", this.selectedLocationOption = void 0, this.userProviderState = this.userProvider ?? ((t = this.currentUser) == null ? void 0 : t.provider) ?? "", this.locationOptions = [
693
734
  { value: "none", label: c.t("nylasEventLocation.conferenceOptions.none"), labelHTML: this.getLabelHTML("none") },
694
735
  { value: "custom", label: c.t("nylasEventLocation.conferenceOptions.custom"), labelHTML: this.getLabelHTML("custom") }
695
736
  ];
@@ -700,8 +741,8 @@ const W = class {
700
741
  selectedConfigurationChangedHandler(e) {
701
742
  var o, r;
702
743
  d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e);
703
- const t = ((o = e == null ? void 0 : e.event_booking) == null ? void 0 : o.location) || this.eventLocation, a = ((r = e == null ? void 0 : e.event_booking) == null ? void 0 : r.conferencing) || this.eventConferencing;
704
- a != null && a.provider ? (this.selectedLocationOption = this.setDefaultLocationOption(a, t ?? ""), this.grantId = this.setDefaultGrantID(a), this.location = t || "") : t ? (this.selectedLocationOption = t ? "custom" : "none", this.location = t) : (this.selectedLocationOption = "none", this.location = "");
744
+ const t = ((o = e == null ? void 0 : e.event_booking) == null ? void 0 : o.location) || this.eventLocation, n = ((r = e == null ? void 0 : e.event_booking) == null ? void 0 : r.conferencing) || this.eventConferencing;
745
+ n != null && n.provider ? (this.selectedLocationOption = this.setDefaultLocationOption(n, t ?? ""), this.grantId = this.setDefaultGrantID(n), this.location = t || "") : t ? (this.selectedLocationOption = t ? "custom" : "none", this.location = t) : (this.selectedLocationOption = "none", this.location = "");
705
746
  }
706
747
  currentUserChangedHandler(e) {
707
748
  d("nylas-custom-booking-flow", "currentUserChangedHandler", e), e != null && e.provider && (this.userProviderState = e == null ? void 0 : e.provider, this.setLocationOptionsForProvider(this.userProviderState));
@@ -713,10 +754,18 @@ const W = class {
713
754
  if (e === t)
714
755
  return;
715
756
  c.changeLanguage(e), this.locationOptions.map((o) => o.value).forEach((o) => {
716
- const r = this.locationOptions.findIndex((l) => l.value === o);
757
+ const r = this.locationOptions.findIndex((s) => s.value === o);
717
758
  this.locationOptions[r].label = c.t(`nylasEventLocation.conferenceOptions.${o}`), this.locationOptions[r].labelHTML = this.getLabelHTML(o);
718
759
  }), this.locationOptions = [...this.locationOptions];
719
760
  }
761
+ themeConfigChangedHandler(e, t) {
762
+ e !== t && this.applyThemeConfig(e);
763
+ }
764
+ applyThemeConfig(e) {
765
+ if (e)
766
+ for (const [t, n] of Object.entries(e))
767
+ this.host.style.setProperty(`${t}`, n);
768
+ }
720
769
  connectedCallback() {
721
770
  d("nylas-event-location", "connectedCallback");
722
771
  }
@@ -724,23 +773,23 @@ const W = class {
724
773
  d("nylas-event-location", "componentWillLoad"), this.host.setAttribute("name", this.name);
725
774
  }
726
775
  componentDidLoad() {
727
- var t, a, o, r;
728
- d("nylas-event-location", "componentDidLoad"), (t = this.selectedConfiguration) != null && t.event_booking ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.selectedLocationOption = this.setDefaultLocationOption(this.eventConferencing || null, this.eventLocation ?? ""), this.location = this.eventLocation ?? ""), this.userProviderState = this.userProvider ?? ((a = this.currentUser) == null ? void 0 : a.provider) ?? "", this.setLocationOptionsForProvider(this.userProviderState);
776
+ var t, n, o, r;
777
+ d("nylas-event-location", "componentDidLoad"), (t = this.selectedConfiguration) != null && t.event_booking ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.selectedLocationOption = this.setDefaultLocationOption(this.eventConferencing || null, this.eventLocation ?? ""), this.location = this.eventLocation ?? ""), this.userProviderState = this.userProvider ?? ((n = this.currentUser) == null ? void 0 : n.provider) ?? "", this.setLocationOptionsForProvider(this.userProviderState);
729
778
  const e = (o = this.internals) == null ? void 0 : o.form;
730
779
  if (e) {
731
- const l = new FormData(e);
732
- l.set("conference", this.getConferencePayload()), l.set(this.name, this.location);
780
+ const s = new FormData(e);
781
+ s.set("conference", this.getConferencePayload()), s.set(this.name, this.location);
733
782
  }
734
- (r = this.conferenceProviders) != null && r.zoom && !this.locationOptions.some((l) => l.value === "zoom") && this.locationOptions.push({ value: "zoom", label: c.t("nylasEventLocation.conferenceOptions.zoom"), labelHTML: this.getLabelHTML("zoom") });
783
+ (r = this.conferenceProviders) != null && r.zoom && !this.locationOptions.some((s) => s.value === "zoom") && this.locationOptions.push({ value: "zoom", label: c.t("nylasEventLocation.conferenceOptions.zoom"), labelHTML: this.getLabelHTML("zoom") });
735
784
  }
736
785
  disconnectedCallback() {
737
786
  d("nylas-event-location", "disconnectedCallback");
738
787
  }
739
788
  getConferencePayload() {
740
- var a;
789
+ var n;
741
790
  if (this.selectedLocationOption === "custom" || this.selectedLocationOption === "none")
742
791
  return JSON.stringify(null);
743
- const e = (a = this.conferenceProviders) == null ? void 0 : a[this.selectedLocationOption], t = {
792
+ const e = (n = this.conferenceProviders) == null ? void 0 : n[this.selectedLocationOption], t = {
744
793
  provider: E[this.selectedLocationOption],
745
794
  autocreate: e ? {
746
795
  conf_grant_id: e
@@ -749,7 +798,7 @@ const W = class {
749
798
  return JSON.stringify(t);
750
799
  }
751
800
  nylasFormDropdownChangedHandler(e) {
752
- var a, o, r;
801
+ var n, o, r;
753
802
  this.selectedLocationOption = e.detail.value;
754
803
  let t;
755
804
  switch (this.selectedLocationOption) {
@@ -763,33 +812,33 @@ const W = class {
763
812
  }
764
813
  case "google": {
765
814
  this.location = "", this.setFormValue("", this.name);
766
- const l = (a = this.conferenceProviders) == null ? void 0 : a.google;
815
+ const s = (n = this.conferenceProviders) == null ? void 0 : n.google;
767
816
  t = {
768
817
  provider: E.google,
769
- autocreate: l ? {
770
- conf_grant_id: l
818
+ autocreate: s ? {
819
+ conf_grant_id: s
771
820
  } : {}
772
821
  }, this.valueChanged.emit({ value: JSON.stringify(t), name: "conference" }), this.valueChanged.emit({ value: "", name: this.name });
773
822
  break;
774
823
  }
775
824
  case "microsoft": {
776
825
  this.location = "", this.setFormValue("", this.name);
777
- const l = (o = this.conferenceProviders) == null ? void 0 : o.microsoft;
826
+ const s = (o = this.conferenceProviders) == null ? void 0 : o.microsoft;
778
827
  t = {
779
828
  provider: E.microsoft,
780
- autocreate: l ? {
781
- conf_grant_id: l
829
+ autocreate: s ? {
830
+ conf_grant_id: s
782
831
  } : {}
783
832
  }, this.valueChanged.emit({ value: JSON.stringify(t), name: "conference" }), this.valueChanged.emit({ value: "", name: this.name });
784
833
  break;
785
834
  }
786
835
  case "zoom": {
787
836
  this.location = "", this.setFormValue("", this.name);
788
- const l = (r = this.conferenceProviders) == null ? void 0 : r.zoom;
837
+ const s = (r = this.conferenceProviders) == null ? void 0 : r.zoom;
789
838
  t = {
790
839
  provider: E.zoom,
791
- autocreate: l ? {
792
- conf_grant_id: l
840
+ autocreate: s ? {
841
+ conf_grant_id: s
793
842
  } : {}
794
843
  }, this.valueChanged.emit({ value: JSON.stringify(t), name: "conference" }), this.valueChanged.emit({ value: "", name: this.name });
795
844
  break;
@@ -817,37 +866,37 @@ const W = class {
817
866
  typeof this.internals.setFormValue == "function" && this.internals.setFormValue(e, t);
818
867
  }
819
868
  handleChange(e) {
820
- const t = S(e.target.value);
869
+ const t = R(e.target.value);
821
870
  this.location = t, this.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
822
871
  }
823
872
  getIcon(e) {
824
873
  switch (e) {
825
874
  case "none":
826
- return s("location-off-icon", null);
875
+ return l("location-off-icon", null);
827
876
  case "custom":
828
- return s("location-icon", null);
877
+ return l("location-icon", null);
829
878
  case "google":
830
- return s("google-meet-icon", null);
879
+ return l("google-meet-icon", null);
831
880
  case "microsoft":
832
- return s("microsoft-teams-icon", null);
881
+ return l("microsoft-teams-icon", null);
833
882
  case "zoom":
834
- return s("zoom-icon", null);
883
+ return l("zoom-icon", null);
835
884
  }
836
885
  }
837
886
  getLabelHTML(e) {
838
- return s("span", { class: "location-label", style: {
887
+ return l("span", { class: "location-label", style: {
839
888
  display: "flex",
840
889
  alignItems: "center",
841
890
  gap: "16px",
842
891
  width: "-webkit-fill-available"
843
- } }, this.getIcon(e), s("span", { class: "location-text", style: {
892
+ } }, this.getIcon(e), l("span", { class: "location-text", style: {
844
893
  fontSize: "14px",
845
894
  fontWeight: "400"
846
895
  } }, c.t(`nylasEventLocation.conferenceOptions.${e}`)));
847
896
  }
848
897
  render() {
849
898
  const e = typeof this.selectedLocationOption < "u" ? this.locationOptions.find((t) => t.value == this.selectedLocationOption) : null;
850
- return s(w, { key: "bf87c5a654fdee86010c2668fac1f83a73ff10e0" }, s("div", { key: "02aff0e3cec5648119ad49765cc9dd286590a394", class: "nylas-event-location", part: "nel" }, s("label", { key: "3020aa8125f0c83d64354165ec2d86d686074b03", htmlFor: "location" }, c.t("nylasEventLocation.headerTitle"), s("span", { key: "3548617f680e2c9c32d9923b363b5102bf18e038", class: "label-icon" }, s("tooltip-component", { key: "b3a39251ae1765b57495b114bd7bacac5ccebff0" }, s("info-icon", { key: "6d9ce12b83c54a9d50f117f6489dde230793dcbd", slot: "tooltip-icon" }), s("span", { key: "43a481ff7264a34c40a2c14a3de27c25c70fc6d2", slot: "tooltip-content" }, c.t("nylasEventLocation.tooltip.desc"))))), s("div", { key: "89f50d652845a1e8f2ceae3fa1801e08cf9a7f1c", class: "location-input" }, s("select-dropdown", { key: "a686995fc1dafea5e551ba7dd120faff715ba781", withSearch: !1, name: "location", options: this.locationOptions, defaultSelectedOption: e, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, s("span", { key: "f76bd15d42f02f9492a3164da072acf2e4199955", slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && s("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (t) => this.handleChange(t) }))));
899
+ return l(C, { key: "40dea8ec89029dc596695a8725987a8630087938" }, l("div", { key: "dad47c8d7121d1944db1b4aaecfc3f49acb8b55d", class: "nylas-event-location", part: "nel" }, l("label", { key: "ccae6484ae7b506fab9f302463a10a3bfc85b28b", htmlFor: "location" }, c.t("nylasEventLocation.headerTitle"), l("span", { key: "15e158e30f2d7e4734b651ebc1a0499447c3cc5e", class: "label-icon" }, l("tooltip-component", { key: "2a27de9e4ce28a3de891cfa83b3fd41e3d7aa604" }, l("info-icon", { key: "9c6b96cb3923a779453e9f272221b8bed6d2a29e", slot: "tooltip-icon" }), l("span", { key: "a5447aca3cc65264f59601d6617d45ceb57aebb1", slot: "tooltip-content" }, c.t("nylasEventLocation.tooltip.desc"))))), l("div", { key: "b35c29edd2bdf321c01ffb9c34216d2200ab3b13", class: "location-input" }, l("select-dropdown", { key: "0c303b54cf2ff2f3df72b540a640fcaa5cf33784", withSearch: !1, name: "location", options: this.locationOptions, defaultSelectedOption: e, themeConfig: this.themeConfig, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, l("span", { key: "1174247972b83c97d09a6c9621bd049294a0aaaf", slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && l("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (t) => this.handleChange(t) }))));
851
900
  }
852
901
  static get formAssociated() {
853
902
  return !0;
@@ -861,44 +910,46 @@ const W = class {
861
910
  selectedConfiguration: ["selectedConfigurationChangedHandler"],
862
911
  currentUser: ["currentUserChangedHandler"],
863
912
  conferenceProviders: ["conferenceProvidersChanged"],
864
- selectedLanguage: ["selectedLanguageChangedHandler"]
913
+ selectedLanguage: ["selectedLanguageChangedHandler"],
914
+ themeConfig: ["themeConfigChangedHandler"]
865
915
  };
866
916
  }
867
917
  };
868
918
  Oe([
869
- C({
919
+ w({
870
920
  name: "nylas-event-location",
871
921
  stateToProps: /* @__PURE__ */ new Map([
872
922
  ["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
873
923
  ["schedulerConfig.conferenceProviders", "conferenceProviders"],
874
924
  ["schedulerConfig.currentUser", "currentUser"],
875
- ["schedulerConfig.selectedLanguage", "selectedLanguage"]
925
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
926
+ ["schedulerConfig.themeConfig", "themeConfig"]
876
927
  ]),
877
928
  eventToProps: {},
878
929
  fireRegisterEvent: !0
879
930
  }),
880
- P("design:type", Function),
881
- P("design:paramtypes", []),
882
- P("design:returntype", void 0)
883
- ], W.prototype, "render", null);
884
- W.style = Le;
885
- const Ie = ':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}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:auto;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:inline-block;gap:4px;align-items:center;color:var(--nylas-base-500);font-size:14px;font-style:normal;font-weight:400;line-height:21px;position:relative}.nylas-event-title span.help-text span.label-icon{display:inline-block}.nylas-event-title span.help-text span.label-icon tooltip-component::part(tc__container){position:unset}.nylas-event-title span.help-text span.label-icon tooltip-component::part(tc__content){position:absolute;top:4px;left:50%;transform:translateX(-50%)}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', Ae = Ie;
886
- var De = function(e, t, a, o) {
887
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
931
+ $("design:type", Function),
932
+ $("design:paramtypes", []),
933
+ $("design:returntype", void 0)
934
+ ], U.prototype, "render", null);
935
+ U.style = Le;
936
+ const Ie = ':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}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left;color:var(--nylas-base-900)}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:auto;white-space:nowrap;scrollbar-width:thin;background-color:var(--nylas-base-0)}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:inline-block;gap:4px;align-items:center;color:var(--nylas-base-500);font-size:14px;font-style:normal;font-weight:400;line-height:21px;position:relative}.nylas-event-title span.help-text span.label-icon{display:inline-block}.nylas-event-title span.help-text span.label-icon tooltip-component::part(tc__container){position:unset}.nylas-event-title span.help-text span.label-icon tooltip-component::part(tc__content){position:absolute;top:4px;left:50%;transform:translateX(-50%)}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', Pe = Ie;
937
+ var Ae = function(e, t, n, o) {
938
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
888
939
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
889
- l = Reflect.decorate(e, t, a, o);
940
+ s = Reflect.decorate(e, t, n, o);
890
941
  else
891
942
  for (var i = e.length - 1; i >= 0; i--)
892
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
893
- return r > 3 && l && Object.defineProperty(t, a, l), l;
894
- }, F = function(e, t) {
943
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
944
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
945
+ }, D = function(e, t) {
895
946
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
896
947
  return Reflect.metadata(e, t);
897
948
  };
898
- const j = class {
949
+ const W = class {
899
950
  constructor(e) {
900
- var t, a;
901
- b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (a = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : a.title, this.name = "title", this.selectedLanguage = void 0, this.noTemplates = !1, this.showTokens = !1, this.availableTokens = k.map((o) => ({
951
+ var t, n;
952
+ b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.title, this.name = "title", this.selectedLanguage = void 0, this.noTemplates = !1, this.themeConfig = void 0, this.showTokens = !1, this.availableTokens = k.map((o) => ({
902
953
  label: o.token,
903
954
  value: o.value,
904
955
  labelHTML: o
@@ -908,21 +959,21 @@ const j = class {
908
959
  d("[nylas-event-title]", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
909
960
  }
910
961
  ariaActivedescendantChangedHandler(e) {
911
- var t, a;
962
+ var t, n;
912
963
  if (d("[nylas-event-title]", "ariaActivedescendantChangedHandler", e), e !== "") {
913
964
  const o = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(e);
914
965
  o == null || o.classList.add("active");
915
966
  } else {
916
- const o = (a = this.host.shadowRoot) == null ? void 0 : a.querySelectorAll(".token-options li.active");
967
+ const o = (n = this.host.shadowRoot) == null ? void 0 : n.querySelectorAll(".token-options li.active");
917
968
  o == null || o.forEach((r) => r.classList.remove("active"));
918
969
  }
919
970
  }
920
971
  configChangedHandler(e) {
921
- var l, n;
922
- const t = (l = e == null ? void 0 : e.event_booking) == null ? void 0 : l.title, a = ((n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.additional_fields) || {}, r = (Object.keys(a) || []).map((i) => ({
972
+ var s, a;
973
+ const t = (s = e == null ? void 0 : e.event_booking) == null ? void 0 : s.title, n = ((a = e == null ? void 0 : e.scheduler) == null ? void 0 : a.additional_fields) || {}, r = (Object.keys(n) || []).map((i) => ({
923
974
  token: `$${i}`,
924
975
  value: `\${${i}}`,
925
- description: a[i].label || ""
976
+ description: n[i].label || ""
926
977
  }));
927
978
  this.additionalFieldTokens = [...r], this.availableTokens = [...k, ...r].map((i) => ({
928
979
  label: i.token,
@@ -934,12 +985,20 @@ const j = class {
934
985
  if (e === t)
935
986
  return;
936
987
  c.changeLanguage(e);
937
- const a = {
988
+ const n = {
938
989
  $invitee: "invitee",
939
990
  $invitee_email: "inviteeEmail",
940
991
  $duration: "duration"
941
992
  };
942
- this.availableTokens = this.availableTokens.map((o) => (a[o.label] && (o.labelHTML.description = c.t(`nylasEventTitle.eventTitleTokenDescription.${a[o.label]}`)), o)), this.filteredTokens = [...this.availableTokens];
993
+ this.availableTokens = this.availableTokens.map((o) => (n[o.label] && (o.labelHTML.description = c.t(`nylasEventTitle.eventTitleTokenDescription.${n[o.label]}`)), o)), this.filteredTokens = [...this.availableTokens];
994
+ }
995
+ themeConfigChangedHandler(e, t) {
996
+ e !== t && this.applyThemeConfig(e);
997
+ }
998
+ applyThemeConfig(e) {
999
+ if (e)
1000
+ for (const [t, n] of Object.entries(e))
1001
+ this.host.style.setProperty(`${t}`, n);
943
1002
  }
944
1003
  connectedCallback() {
945
1004
  d("[nylas-event-title]", "connectedCallback");
@@ -948,50 +1007,50 @@ const j = class {
948
1007
  d("[nylas-event-title]", "componentWillLoad"), this.host.setAttribute("name", this.name);
949
1008
  }
950
1009
  componentDidLoad() {
951
- var t, a, o, r;
1010
+ var t, n, o, r;
952
1011
  d("[nylas-event-title]", "componentDidLoad");
953
1012
  let e = this.eventTitle || this.configEventTitle;
954
- (a = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) != null && a.title && (e = (r = (o = this.selectedConfiguration) == null ? void 0 : o.event_booking) == null ? void 0 : r.title), e && (this.updateEventTitleFromProp(e), this.updateEventTitle(e, !0));
1013
+ (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) != null && n.title && (e = (r = (o = this.selectedConfiguration) == null ? void 0 : o.event_booking) == null ? void 0 : r.title), e && (this.updateEventTitleFromProp(e), this.updateEventTitle(e, !0));
955
1014
  }
956
1015
  disconnectedCallback() {
957
1016
  d("[nylas-event-title]", "disconnectedCallback");
958
1017
  }
959
1018
  formSubmittedHandler(e) {
960
- var t, a;
961
- d("[nylas-event-title]", "formSubmittedHandler", e), (a = (t = this.internals) == null ? void 0 : t.validity) != null && a.valid ? this.validationError = "" : this.validationError = "eventTitleRequired";
1019
+ var t, n;
1020
+ d("[nylas-event-title]", "formSubmittedHandler", e), (n = (t = this.internals) == null ? void 0 : t.validity) != null && n.valid ? this.validationError = "" : this.validationError = "eventTitleRequired";
962
1021
  }
963
1022
  valueChangedHandler(e) {
964
- const { name: t, value: a } = e.detail;
1023
+ const { name: t, value: n } = e.detail;
965
1024
  if (t === "additional-fields") {
966
- const o = JSON.parse(a.toString()), l = (Object.keys(o) || []).map((n) => ({
967
- token: `$${n}`,
968
- value: `\${${n}}`,
969
- description: o[n].label || ""
1025
+ const o = JSON.parse(n.toString()), s = (Object.keys(o) || []).map((a) => ({
1026
+ token: `$${a}`,
1027
+ value: `\${${a}}`,
1028
+ description: o[a].label || ""
970
1029
  }));
971
- this.additionalFieldTokens = [...l], this.availableTokens = [...k, ...l].map((n) => ({
972
- label: n.token,
973
- value: n.value,
974
- labelHTML: n
1030
+ this.additionalFieldTokens = [...s], this.availableTokens = [...k, ...s].map((a) => ({
1031
+ label: a.token,
1032
+ value: a.value,
1033
+ labelHTML: a
975
1034
  })), this.filteredTokens = [...this.availableTokens];
976
1035
  }
977
1036
  }
978
1037
  updateEventTitleFromProp(e) {
979
- var a, o, r;
1038
+ var n, o, r;
980
1039
  d("[nylas-event-title]", "eventTitleChangedHandler", e);
981
1040
  const t = e || this.configEventTitle;
982
- this.titleRef && (this.titleRef.innerHTML = this.highlightTokens(t), typeof this.internals.setValidity == "function" && (!t || t === "" ? (this.titleRef.focus(), (a = this.internals) == null || a.setValidity({ customError: !0 }, "Event title is required", this.titleRef)) : ((o = this.internals) == null || o.setValidity({ customError: !1 }), this.isInternalsAvailable && ((r = this.internals) == null || r.setFormValue(t, this.name)))));
1041
+ this.titleRef && (this.titleRef.innerHTML = this.highlightTokens(t), typeof this.internals.setValidity == "function" && (!t || t === "" ? (this.titleRef.focus(), (n = this.internals) == null || n.setValidity({ customError: !0 }, "Event title is required", this.titleRef)) : ((o = this.internals) == null || o.setValidity({ customError: !1 }), this.isInternalsAvailable && ((r = this.internals) == null || r.setFormValue(t, this.name)))));
983
1042
  }
984
1043
  highlightTokens(e) {
985
1044
  let t = e;
986
- return [...k, ...this.additionalFieldTokens].forEach((a) => {
987
- const o = a.value, r = new RegExp(`(\\${o})(?!\\w)`, "g");
1045
+ return [...k, ...this.additionalFieldTokens].forEach((n) => {
1046
+ const o = n.value, r = new RegExp(`(\\${o})(?!\\w)`, "g");
988
1047
  t = (t == null ? void 0 : t.replace(r, '<span class="highlighted-tag">$1</span>')) || "";
989
1048
  }), t;
990
1049
  }
991
1050
  getCurrentSelectionForBrowser() {
992
- var o, r, l;
993
- const e = (n, i, f, p) => {
994
- const h = n.replace(/[\u200B-\u200D\uFEFF]/g, ""), y = h.lastIndexOf("$"), u = h.substring(y).split(" ")[0];
1051
+ var o, r, s;
1052
+ const e = (a, i, f, p) => {
1053
+ const h = a.replace(/[\u200B-\u200D\uFEFF]/g, ""), y = h.lastIndexOf("$"), u = h.substring(y).split(" ")[0];
995
1054
  return {
996
1055
  focusOffset: i,
997
1056
  dollarIndex: y,
@@ -1000,21 +1059,21 @@ const j = class {
1000
1059
  node: f,
1001
1060
  allSelected: p
1002
1061
  };
1003
- }, t = (n) => {
1062
+ }, t = (a) => {
1004
1063
  var i, f;
1005
- return n.anchorOffset === 0 && n.focusOffset === ((f = (i = n.focusNode) == null ? void 0 : i.nodeValue) == null ? void 0 : f.length);
1064
+ return a.anchorOffset === 0 && a.focusOffset === ((f = (i = a.focusNode) == null ? void 0 : i.nodeValue) == null ? void 0 : f.length);
1006
1065
  };
1007
1066
  switch (M()) {
1008
1067
  case "Chrome": {
1009
- const n = (o = this.host.shadowRoot) == null ? void 0 : o.getSelection(), i = n == null ? void 0 : n.focusNode, f = (i == null ? void 0 : i.nodeValue) || "", p = n && t(n);
1010
- return e(f, (n == null ? void 0 : n.focusOffset) || -1, i, p);
1068
+ const a = (o = this.host.shadowRoot) == null ? void 0 : o.getSelection(), i = a == null ? void 0 : a.focusNode, f = (i == null ? void 0 : i.nodeValue) || "", p = a && t(a);
1069
+ return e(f, (a == null ? void 0 : a.focusOffset) || -1, i, p);
1011
1070
  }
1012
1071
  case "Firefox": {
1013
- const n = document.getSelection(), i = ((r = n == null ? void 0 : n.anchorNode) == null ? void 0 : r.nodeValue) || "", f = n && t(n);
1014
- return e(i, (n == null ? void 0 : n.focusOffset) || -1, n == null ? void 0 : n.anchorNode, f);
1072
+ const a = document.getSelection(), i = ((r = a == null ? void 0 : a.anchorNode) == null ? void 0 : r.nodeValue) || "", f = a && t(a);
1073
+ return e(i, (a == null ? void 0 : a.focusOffset) || -1, a == null ? void 0 : a.anchorNode, f);
1015
1074
  }
1016
1075
  case "Safari": {
1017
- const n = window.getSelection(), i = n == null ? void 0 : n.getComposedRanges(this.host.shadowRoot)[0], f = ((l = i == null ? void 0 : i.startContainer) == null ? void 0 : l.nodeValue) || "", p = n && t(n);
1076
+ const a = window.getSelection(), i = a == null ? void 0 : a.getComposedRanges(this.host.shadowRoot)[0], f = ((s = i == null ? void 0 : i.startContainer) == null ? void 0 : s.nodeValue) || "", p = a && t(a);
1018
1077
  return e(f, (i == null ? void 0 : i.endOffset) || -1, i == null ? void 0 : i.startContainer, p);
1019
1078
  }
1020
1079
  default:
@@ -1023,30 +1082,30 @@ const j = class {
1023
1082
  }
1024
1083
  handleChange(e) {
1025
1084
  let t = e.target.textContent || "";
1026
- t = S(t);
1027
- const a = this.getCurrentSelectionForBrowser();
1028
- if (!a) {
1085
+ t = R(t);
1086
+ const n = this.getCurrentSelectionForBrowser();
1087
+ if (!n) {
1029
1088
  this.updateEventTitle(t), this.resetDropdown();
1030
1089
  return;
1031
1090
  }
1032
- const { focusOffset: o, dollarIndex: r, lastWord: l, currentText: n } = a;
1091
+ const { focusOffset: o, dollarIndex: r, lastWord: s, currentText: a } = n;
1033
1092
  if (r === -1 || o < r) {
1034
1093
  this.updateEventTitle(t), this.resetDropdown();
1035
1094
  return;
1036
1095
  }
1037
- l.startsWith("$") ? (this.showTokens = !0, this.currentWord = {
1038
- $value: l,
1039
- fullText: n,
1096
+ s.startsWith("$") ? (this.showTokens = !0, this.currentWord = {
1097
+ $value: s,
1098
+ fullText: a,
1040
1099
  index: r,
1041
1100
  focusOffset: o
1042
- }, this.populateSuggestionsDropdown(l)) : this.resetDropdown(), this.updateEventTitle(t);
1101
+ }, this.populateSuggestionsDropdown(s)) : this.resetDropdown(), this.updateEventTitle(t);
1043
1102
  }
1044
1103
  handleInputKeyDown(e) {
1045
- var a, o, r, l, n;
1104
+ var n, o, r, s, a;
1046
1105
  const t = this.getCurrentSelectionForBrowser();
1047
- if (t != null && t.allSelected && !H(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
1106
+ if (t != null && t.allSelected && !S(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
1048
1107
  e.preventDefault();
1049
- const i = (a = this.host.shadowRoot) == null ? void 0 : a.getElementById(this.ariaActivedescendant);
1108
+ const i = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(this.ariaActivedescendant);
1050
1109
  i && (i.click(), this.ariaActivedescendant = "");
1051
1110
  } else if (e.key === "ArrowDown") {
1052
1111
  e.preventDefault();
@@ -1067,35 +1126,35 @@ const j = class {
1067
1126
  } else if (e.key === "Escape")
1068
1127
  e.preventDefault(), this.resetDropdown();
1069
1128
  else if (e.key === "Backspace" || e.key === "Delete") {
1070
- const i = (l = t == null ? void 0 : t.node) == null ? void 0 : l.parentNode;
1071
- t != null && t.currentText.startsWith("${") && i && i.nodeName === "SPAN" && (e.preventDefault(), i.removeChild(t.node), i.remove(), this.resetDropdown(), this.updateEventTitle(((n = this.titleRef) == null ? void 0 : n.textContent) || "")), (this.titleRef.textContent === "" || t != null && t.allSelected) && (this.titleRef.innerHTML = "", this.updateEventTitle(""));
1129
+ const i = (s = t == null ? void 0 : t.node) == null ? void 0 : s.parentNode;
1130
+ t != null && t.currentText.startsWith("${") && i && i.nodeName === "SPAN" && (e.preventDefault(), i.removeChild(t.node), i.remove(), this.resetDropdown(), this.updateEventTitle(((a = this.titleRef) == null ? void 0 : a.textContent) || "")), (this.titleRef.textContent === "" || t != null && t.allSelected) && (this.titleRef.innerHTML = "", this.updateEventTitle(""));
1072
1131
  }
1073
1132
  }
1074
1133
  selectOption(e, t) {
1075
1134
  var T;
1076
1135
  e.preventDefault();
1077
- const a = this.currentWord.fullText, o = this.currentWord.$value;
1078
- let r = this.titleRef.firstChild, l = null;
1136
+ const n = this.currentWord.fullText, o = this.currentWord.$value;
1137
+ let r = this.titleRef.firstChild, s = null;
1079
1138
  for (; r; ) {
1080
1139
  if (r.nodeType === 3) {
1081
- const v = ((T = r.textContent) == null ? void 0 : T.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", L = a.replace(/[\u200B-\u200D\uFEFF]/g, "");
1140
+ const v = ((T = r.textContent) == null ? void 0 : T.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", L = n.replace(/[\u200B-\u200D\uFEFF]/g, "");
1082
1141
  if (v.includes(L)) {
1083
- l = r;
1142
+ s = r;
1084
1143
  break;
1085
1144
  }
1086
1145
  }
1087
1146
  r = r.nextSibling;
1088
1147
  }
1089
- if (!l)
1148
+ if (!s)
1090
1149
  return;
1091
- const n = l.textContent || "", i = n.indexOf(o), f = n.substring(0, i), p = n.substring(i + o.length), h = document.createTextNode(f), y = document.createRange(), u = document.createElement("span");
1150
+ const a = s.textContent || "", i = a.indexOf(o), f = a.substring(0, i), p = a.substring(i + o.length), h = document.createTextNode(f), y = document.createRange(), u = document.createElement("span");
1092
1151
  u.classList.add("highlighted-tag"), u.textContent = `${t.value}`;
1093
1152
  const _ = document.createTextNode(p);
1094
1153
  if (p !== "")
1095
- l.replaceWith(h, u, _), y.setStart(_, 1);
1154
+ s.replaceWith(h, u, _), y.setStart(_, 1);
1096
1155
  else {
1097
1156
  const v = document.createTextNode("​");
1098
- l.replaceWith(h, u, v), y.setStart(v, 1);
1157
+ s.replaceWith(h, u, v), y.setStart(v, 1);
1099
1158
  }
1100
1159
  this.resetDropdown(), this.titleRef.focus();
1101
1160
  const g = window.getSelection();
@@ -1108,22 +1167,22 @@ const j = class {
1108
1167
  return typeof this.internals < "u" && typeof this.internals.setValidity == "function" && typeof this.internals.setFormValue == "function";
1109
1168
  }
1110
1169
  updateEventTitle(e, t = !1) {
1111
- var o, r, l;
1112
- const a = e.replace(/ +/g, " ");
1113
- a === "" || /^[\s]*$/.test(a) ? (this.validationError = "eventTitleRequired", this.isInternalsAvailable && ((o = this.internals) == null || o.setValidity({ customError: !0 }, "Event title is required", this.titleRef))) : (this.validationError = "", this.isInternalsAvailable && ((r = this.internals) == null || r.setValidity({ customError: !1 }))), this.isInternalsAvailable && ((l = this.internals) == null || l.setFormValue(a, this.name)), t || this.valueChanged.emit({ value: a, name: this.name });
1170
+ var o, r, s;
1171
+ const n = e.replace(/ +/g, " ");
1172
+ n === "" || /^[\s]*$/.test(n) ? (this.validationError = "eventTitleRequired", this.isInternalsAvailable && ((o = this.internals) == null || o.setValidity({ customError: !0 }, "Event title is required", this.titleRef))) : (this.validationError = "", this.isInternalsAvailable && ((r = this.internals) == null || r.setValidity({ customError: !1 }))), this.isInternalsAvailable && ((s = this.internals) == null || s.setFormValue(n, this.name)), t || this.valueChanged.emit({ value: n, name: this.name });
1114
1173
  }
1115
1174
  resetDropdown() {
1116
1175
  this.showTokens = !1, this.ariaActivedescendant = "";
1117
1176
  }
1118
1177
  getLabelHTML(e) {
1119
- return s("div", { class: "token-label" }, s("span", { class: "token" }, e.token), s("span", { class: "description" }, e.description));
1178
+ return l("div", { class: "token-label" }, l("span", { class: "token" }, e.token), l("span", { class: "description" }, e.description));
1120
1179
  }
1121
1180
  render() {
1122
1181
  var e;
1123
- return s(w, { key: "82d877ce83823d86e6794caa07c9b4761523bb93" }, s("div", { key: "b97274fd9221bd8e21390b951074b60dff6eddcf", class: "nylas-event-title", part: "net" }, s("label", { key: "6313ef273c9468915f313c2a9d15f4428e74d3ed", htmlFor: "title" }, c.t("nylasEventTitle.headerTitle"), s("span", { key: "41b89ee75850a7597b75013de036d398d6b8e4a9", class: "required" }, "*")), s("div", { key: "94d600363804e2d88260475a3ebb0159537fa7c2", class: {
1182
+ return l(C, { key: "c6da12f405f1743fad3fcdebc253943e82849e1a" }, l("div", { key: "d66fa4c93ba12409991bc981ec6e7171113872f4", class: "nylas-event-title", part: "net" }, l("label", { key: "3c77424914867eaae8e71e5d3c13f459074b8256", htmlFor: "title" }, c.t("nylasEventTitle.headerTitle"), l("span", { key: "09f56d087b243ee8832331d9bc3c83073e1d9adb", class: "required" }, "*")), l("div", { key: "ec015f8e45422cb8f6593d7bab2db7e34caf69da", class: {
1124
1183
  title: !0,
1125
1184
  error: this.validationError !== ""
1126
- }, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), !this.noTemplates && this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && s("div", { class: "token-options", part: "net__dropdown-content" }, s("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => s("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (a) => this.selectOption(a, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), !this.noTemplates && s("span", { class: "help-text" }, c.t("nylasEventTitle.helpText", { context: "start", field: c.t("nylasEventTitle.title") }), " ", s("code", null, "$"), " ", c.t("nylasEventTitle.helpText", { context: "end" }), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasEventTitle.tooltip.desc"), " ", s("code", null, "${invitee}"))))), this.validationError != "" && s("span", { class: "error-message" }, c.t(`nylasEventTitle.${this.validationError}`))));
1185
+ }, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), !this.noTemplates && this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && l("div", { class: "token-options", part: "net__dropdown-content" }, l("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => l("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (n) => this.selectOption(n, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), !this.noTemplates && l("span", { class: "help-text" }, c.t("nylasEventTitle.helpText", { context: "start", field: c.t("nylasEventTitle.title") }), " ", l("code", null, "$"), " ", c.t("nylasEventTitle.helpText", { context: "end" }), l("span", { class: "label-icon" }, l("tooltip-component", null, l("info-icon", { slot: "tooltip-icon" }), l("span", { slot: "tooltip-content" }, c.t("nylasEventTitle.tooltip.desc"), " ", l("code", null, "${invitee}"))))), this.validationError != "" && l("span", { class: "error-message" }, c.t(`nylasEventTitle.${this.validationError}`))));
1127
1186
  }
1128
1187
  static get formAssociated() {
1129
1188
  return !0;
@@ -1136,35 +1195,37 @@ const j = class {
1136
1195
  name: ["elementNameChangedHandler"],
1137
1196
  ariaActivedescendant: ["ariaActivedescendantChangedHandler"],
1138
1197
  selectedConfiguration: ["configChangedHandler"],
1139
- selectedLanguage: ["selectedLanguageChangedHandler"]
1198
+ selectedLanguage: ["selectedLanguageChangedHandler"],
1199
+ themeConfig: ["themeConfigChangedHandler"]
1140
1200
  };
1141
1201
  }
1142
1202
  };
1143
- De([
1144
- C({
1203
+ Ae([
1204
+ w({
1145
1205
  name: "nylas-event-title",
1146
1206
  stateToProps: /* @__PURE__ */ new Map([
1147
1207
  ["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
1148
- ["schedulerConfig.selectedLanguage", "selectedLanguage"]
1208
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
1209
+ ["schedulerConfig.themeConfig", "themeConfig"]
1149
1210
  ]),
1150
1211
  eventToProps: {},
1151
1212
  fireRegisterEvent: !0
1152
1213
  }),
1153
- F("design:type", Function),
1154
- F("design:paramtypes", []),
1155
- F("design:returntype", void 0)
1156
- ], j.prototype, "render", null);
1157
- j.style = Ae;
1158
- const Pe = ':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}.card-wrapper{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);position:relative;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-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:16px;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.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)}', Fe = Pe;
1159
- var $e = function(e, t, a, o) {
1160
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
1214
+ D("design:type", Function),
1215
+ D("design:paramtypes", []),
1216
+ D("design:returntype", void 0)
1217
+ ], W.prototype, "render", null);
1218
+ W.style = Pe;
1219
+ const $e = ':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}.card-wrapper{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);position:relative;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-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:16px;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.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)}', De = $e;
1220
+ var Fe = function(e, t, n, o) {
1221
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
1161
1222
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1162
- l = Reflect.decorate(e, t, a, o);
1223
+ s = Reflect.decorate(e, t, n, o);
1163
1224
  else
1164
1225
  for (var i = e.length - 1; i >= 0; i--)
1165
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
1166
- return r > 3 && l && Object.defineProperty(t, a, l), l;
1167
- }, $ = function(e, t) {
1226
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
1227
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
1228
+ }, F = function(e, t) {
1168
1229
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1169
1230
  return Reflect.metadata(e, t);
1170
1231
  };
@@ -1186,8 +1247,8 @@ const Z = class {
1186
1247
  }
1187
1248
  applyThemeConfig(e) {
1188
1249
  if (e)
1189
- for (const [t, a] of Object.entries(e))
1190
- this.host.style.setProperty(`${t}`, a);
1250
+ for (const [t, n] of Object.entries(e))
1251
+ this.host.style.setProperty(`${t}`, n);
1191
1252
  }
1192
1253
  handleFormInputChanged(e) {
1193
1254
  d("[nylas-feedback-form] Form input changed"), e.detail.value && (this.triggerValidation.emit(), e.detail.name === "feedback" && (this.feedbackMessage = e.detail.value));
@@ -1196,16 +1257,16 @@ const Z = class {
1196
1257
  e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
1197
1258
  }
1198
1259
  render() {
1199
- return s(w, { key: "3dfba1b006f09a9ac9ccdd03a659784b86df25d4", part: "nfbf" }, s("div", { key: "f548f82b9689115b254815c0a6b940d1450ada04", class: "card-wrapper", part: "nfbfc__card" }, s("div", { key: "3e1be6b2ff7d6818b677f09772cde78edb4c7ef1", class: "close-button" }, s("button-component", { key: "dd98523ad84cc745f24daa400bb41753d103c3c6", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, s("close-icon", { key: "0b919c2be114e231ff8eb7121536b6c24dfb7158" }))), s("div", { key: "2c62e429a6871d1dc6a34df4fc37440e61e9e041", class: "header" }, s("h2", { key: "8c1009dc5a853bb0cbc21b64958353c95a0ca140", slot: "card-title", part: "nfbf__title" }, c.t("feedbackFormTitle"))), s("div", { key: "b16e5a7c0e3b299d6ee9a74d154aa3628e9d4d25", class: "description title-desc" }, s("p", { key: "00675ebd52e88ed101df5710b3bded1f6424c274" }, c.t("feedbackFormDescription"))), s("textarea-component", { key: "7b021701b44eb5b3ba02ee3191d3866489f4ec8a", label: c.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: c.t("feedbackMessagePlaceholder") }), s("div", { key: "def91af529f167b1fac0cc078f79cec67b961a1a", class: "description footer-desc" }, s("p", { key: "ad346ef93ae4a25fd5478284ff5415eb62b54f26" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", s("a", { key: "cd6a79cf548346d92d04264c4ff7244a032c3977", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), s("div", { key: "5dfee1045b6711f5cf7d15009c86c0fd9b76b137", class: {
1260
+ return l(C, { key: "3dfba1b006f09a9ac9ccdd03a659784b86df25d4", part: "nfbf" }, l("div", { key: "f548f82b9689115b254815c0a6b940d1450ada04", class: "card-wrapper", part: "nfbfc__card" }, l("div", { key: "3e1be6b2ff7d6818b677f09772cde78edb4c7ef1", class: "close-button" }, l("button-component", { key: "dd98523ad84cc745f24daa400bb41753d103c3c6", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, l("close-icon", { key: "0b919c2be114e231ff8eb7121536b6c24dfb7158" }))), l("div", { key: "2c62e429a6871d1dc6a34df4fc37440e61e9e041", class: "header" }, l("h2", { key: "8c1009dc5a853bb0cbc21b64958353c95a0ca140", slot: "card-title", part: "nfbf__title" }, c.t("feedbackFormTitle"))), l("div", { key: "b16e5a7c0e3b299d6ee9a74d154aa3628e9d4d25", class: "description title-desc" }, l("p", { key: "00675ebd52e88ed101df5710b3bded1f6424c274" }, c.t("feedbackFormDescription"))), l("textarea-component", { key: "7b021701b44eb5b3ba02ee3191d3866489f4ec8a", label: c.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: c.t("feedbackMessagePlaceholder") }), l("div", { key: "def91af529f167b1fac0cc078f79cec67b961a1a", class: "description footer-desc" }, l("p", { key: "ad346ef93ae4a25fd5478284ff5415eb62b54f26" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", l("a", { key: "cd6a79cf548346d92d04264c4ff7244a032c3977", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), l("div", { key: "5dfee1045b6711f5cf7d15009c86c0fd9b76b137", class: {
1200
1261
  footer: !0
1201
- } }, s("button-component", { key: "45894bd04b89365c83d7e2a07e8a62ee7c94b6c0", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${c.t("feedbackModalCloseButton")}`), s("button-component", { key: "ac586974014c3e3b6b454a8b830585b76bc1f290", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${c.t("feedbackModalSubmitButton")}`))));
1262
+ } }, l("button-component", { key: "45894bd04b89365c83d7e2a07e8a62ee7c94b6c0", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${c.t("feedbackModalCloseButton")}`), l("button-component", { key: "ac586974014c3e3b6b454a8b830585b76bc1f290", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${c.t("feedbackModalSubmitButton")}`))));
1202
1263
  }
1203
1264
  get host() {
1204
1265
  return x(this);
1205
1266
  }
1206
1267
  };
1207
- $e([
1208
- C({
1268
+ Fe([
1269
+ w({
1209
1270
  name: "nylas-feedback-form",
1210
1271
  stateToProps: /* @__PURE__ */ new Map([]),
1211
1272
  eventToProps: {
@@ -1215,27 +1276,27 @@ $e([
1215
1276
  localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
1216
1277
  fireRegisterEvent: !0
1217
1278
  }),
1218
- $("design:type", Function),
1219
- $("design:paramtypes", []),
1220
- $("design:returntype", void 0)
1279
+ F("design:type", Function),
1280
+ F("design:paramtypes", []),
1281
+ F("design:returntype", void 0)
1221
1282
  ], Z.prototype, "render", null);
1222
- Z.style = Fe;
1223
- const Re = ':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}.nylas-reminder-time{display:flex;flex-direction:column;gap:4px}.nylas-reminder-time label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-reminder-time label span.required{color:var(--nylas-error, #cc4841)}.nylas-reminder-time label span.label-icon{margin-left:4px}.nylas-reminder-time label span.label-icon tooltip-component{display:flex}.nylas-reminder-time__wrapper{display:flex;align-items:center;justify-content:flex-end;gap:0.5rem}.nylas-reminder-time__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-reminder-time__wrapper input-dropdown{width:80px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:160px}.nylas-reminder-time__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-reminder-time__wrapper select-dropdown{width:100%}}.nylas-reminder-time__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Se = Re;
1224
- var He = function(e, t, a, o) {
1225
- var r = arguments.length, l = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, n;
1283
+ Z.style = De;
1284
+ const He = ':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}.nylas-reminder-time{display:flex;flex-direction:column;gap:4px}.nylas-reminder-time label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-reminder-time label span.required{color:var(--nylas-error, #cc4841)}.nylas-reminder-time label span.label-icon{margin-left:4px}.nylas-reminder-time label span.label-icon tooltip-component{display:flex}.nylas-reminder-time__wrapper{display:flex;align-items:center;justify-content:flex-end;gap:0.5rem}.nylas-reminder-time__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-reminder-time__wrapper input-dropdown{width:80px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:160px}.nylas-reminder-time__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-reminder-time__wrapper select-dropdown{width:100%}}.nylas-reminder-time__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Re = He;
1285
+ var Se = function(e, t, n, o) {
1286
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, n) : o, a;
1226
1287
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1227
- l = Reflect.decorate(e, t, a, o);
1288
+ s = Reflect.decorate(e, t, n, o);
1228
1289
  else
1229
1290
  for (var i = e.length - 1; i >= 0; i--)
1230
- (n = e[i]) && (l = (r < 3 ? n(l) : r > 3 ? n(t, a, l) : n(t, a)) || l);
1231
- return r > 3 && l && Object.defineProperty(t, a, l), l;
1232
- }, R = function(e, t) {
1291
+ (a = e[i]) && (s = (r < 3 ? a(s) : r > 3 ? a(t, n, s) : a(t, n)) || s);
1292
+ return r > 3 && s && Object.defineProperty(t, n, s), s;
1293
+ }, H = function(e, t) {
1233
1294
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1234
1295
  return Reflect.metadata(e, t);
1235
1296
  };
1236
1297
  const K = class {
1237
1298
  constructor(e) {
1238
- b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "reminder-time", this.eventReminderTimeMinutes = void 0, this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0, this.errorState = !1;
1299
+ b(this, e), this.valueChanged = m(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "reminder-time", this.eventReminderTimeMinutes = void 0, this.selectedLanguage = void 0, this.themeConfig = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0, this.errorState = !1;
1239
1300
  }
1240
1301
  elementNameChangedHandler(e) {
1241
1302
  d("nylas-reminder-time", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -1246,6 +1307,9 @@ const K = class {
1246
1307
  selectedLanguageChangedHandler(e, t) {
1247
1308
  e !== t && c.changeLanguage(e);
1248
1309
  }
1310
+ themeConfigChangedHandler(e, t) {
1311
+ e !== t && this.applyThemeConfig(e);
1312
+ }
1249
1313
  connectedCallback() {
1250
1314
  d("nylas-reminder-time", "connectedCallback");
1251
1315
  }
@@ -1258,6 +1322,11 @@ const K = class {
1258
1322
  disconnectedCallback() {
1259
1323
  d("nylas-reminder-time", "disconnectedCallback");
1260
1324
  }
1325
+ applyThemeConfig(e) {
1326
+ if (e)
1327
+ for (const [t, n] of Object.entries(e))
1328
+ this.host.style.setProperty(`${t}`, n);
1329
+ }
1261
1330
  nylasSuggestReminderMinutesHandler(e) {
1262
1331
  const { minutes: t } = e.detail;
1263
1332
  this.errorState = !1, this.valueChanged.emit({ value: t.toString(), name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(t.toString(), this.name), this.updateNumberAndPeriodFromMinutes(t + 7), setTimeout(() => {
@@ -1265,25 +1334,25 @@ const K = class {
1265
1334
  }, 10);
1266
1335
  }
1267
1336
  timePeriodChangedHandler(e) {
1268
- const { number: t, period: a } = e.detail;
1337
+ const { number: t, period: n } = e.detail;
1269
1338
  let o;
1270
- const r = 60, l = r * 24, n = l * 7, i = l * 30;
1271
- a === "minute" ? o = t : a === "hour" ? o = t * r : a === "day" ? o = t * l : a === "week" ? o = t * n : a === "month" ? o = t * i : o = 0, this.errorState = o % 5 !== 0, this.valueChanged.emit({ value: o, name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(o.toString(), this.name);
1339
+ const r = 60, s = r * 24, a = s * 7, i = s * 30;
1340
+ n === "minute" ? o = t : n === "hour" ? o = t * r : n === "day" ? o = t * s : n === "week" ? o = t * a : n === "month" ? o = t * i : o = 0, this.errorState = o % 5 !== 0, this.valueChanged.emit({ value: o, name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(o.toString(), this.name);
1272
1341
  }
1273
1342
  updateNumberAndPeriodFromMinutes(e) {
1274
- let l, n;
1275
- e === 0 ? (l = 0, n = "minute") : e >= 43200 && e % 43200 === 0 ? (l = Math.floor(e / 43200), n = "month") : e >= 10080 && e % 10080 === 0 ? (l = Math.floor(e / 10080), n = "week") : e >= 1440 && e % 1440 === 0 ? (l = Math.floor(e / 1440), n = "day") : e >= 60 && e % 60 === 0 ? (l = Math.floor(e / 60), n = "hour") : (l = e, n = "minute"), this.selectedNumber = l, this.selectedPeriod = n;
1343
+ let s, a;
1344
+ e === 0 ? (s = 0, a = "minute") : e >= 43200 && e % 43200 === 0 ? (s = Math.floor(e / 43200), a = "month") : e >= 10080 && e % 10080 === 0 ? (s = Math.floor(e / 10080), a = "week") : e >= 1440 && e % 1440 === 0 ? (s = Math.floor(e / 1440), a = "day") : e >= 60 && e % 60 === 0 ? (s = Math.floor(e / 60), a = "hour") : (s = e, a = "minute"), this.selectedNumber = s, this.selectedPeriod = a;
1276
1345
  }
1277
1346
  get isInternalsAvailable() {
1278
1347
  return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
1279
1348
  }
1280
1349
  render() {
1281
1350
  const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
1282
- return s(w, { key: "e19066f3a7ccfaeba4b2ae9b4e370a35d479b0f6" }, s("div", { key: "f8a6527dfa9541a953de5c17ea07b924ca9810c2", class: "nylas-reminder-time", part: "nrt" }, s("div", { key: "ff839bfde9b694f1370a4a459f3e698b93aca9c7", class: "nylas-reminder-time__wrapper" }, e && s("time-period-selector", { id: "limit-future-bookings", part: "nrt__time-period-selector", hasError: this.errorState, timePeriods: [
1351
+ return l(C, { key: "8496d67f55d981e506f577ad20197af8438bd408" }, l("div", { key: "d92c02476f1db6fe56d3045884dd381ed899af8c", class: "nylas-reminder-time", part: "nrt" }, l("div", { key: "79b615876498bcf00f51eaf22779fb54b4c398dc", class: "nylas-reminder-time__wrapper" }, e && l("time-period-selector", { id: "limit-future-bookings", part: "nrt__time-period-selector", hasError: this.errorState, timePeriods: [
1283
1352
  { value: "minute", label: c.t("timeDuration", { context: "minute" }) },
1284
1353
  { value: "hour", label: c.t("timeDuration", { context: "hour" }) },
1285
1354
  { value: "day", label: c.t("timePeriod", { context: "day" }) }
1286
- ], exportparts: "tps__number-dropdown: nrt__number-dropdown, tps__number-dropdown-button: nrt__number-dropdown-button, tps__number-dropdown-content: nrt__number-dropdown-content, tps__period-dropdown: nrt__period-dropdown, tps__period-dropdown-button: nrt__period-dropdown-button, tps__period-dropdown-content: nrt__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
1355
+ ], exportparts: "tps__number-dropdown: nrt__number-dropdown, tps__number-dropdown-button: nrt__number-dropdown-button, tps__number-dropdown-content: nrt__number-dropdown-content, tps__period-dropdown: nrt__period-dropdown, tps__period-dropdown-button: nrt__period-dropdown-button, tps__period-dropdown-content: nrt__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod, themeConfig: this.themeConfig }))));
1287
1356
  }
1288
1357
  static get formAssociated() {
1289
1358
  return !0;
@@ -1295,28 +1364,32 @@ const K = class {
1295
1364
  return {
1296
1365
  name: ["elementNameChangedHandler"],
1297
1366
  eventReminderTimeMinutes: ["eventReminderTimeMinutesChangedHandler"],
1298
- selectedLanguage: ["selectedLanguageChangedHandler"]
1367
+ selectedLanguage: ["selectedLanguageChangedHandler"],
1368
+ themeConfig: ["themeConfigChangedHandler"]
1299
1369
  };
1300
1370
  }
1301
1371
  };
1302
- He([
1303
- C({
1372
+ Se([
1373
+ w({
1304
1374
  name: "nylas-reminder-time",
1305
- stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
1375
+ stateToProps: /* @__PURE__ */ new Map([
1376
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
1377
+ ["schedulerConfig.themeConfig", "themeConfig"]
1378
+ ]),
1306
1379
  eventToProps: {},
1307
1380
  fireRegisterEvent: !0
1308
1381
  }),
1309
- R("design:type", Function),
1310
- R("design:paramtypes", []),
1311
- R("design:returntype", void 0)
1382
+ H("design:type", Function),
1383
+ H("design:paramtypes", []),
1384
+ H("design:returntype", void 0)
1312
1385
  ], K.prototype, "render", null);
1313
- K.style = Se;
1386
+ K.style = Re;
1314
1387
  const Me = ".sc-trash-icon-h{display:flex}", Ne = Me, ze = class {
1315
1388
  constructor(e) {
1316
1389
  b(this, e), this.width = "20", this.height = "21";
1317
1390
  }
1318
1391
  render() {
1319
- return s("svg", { key: "cd43bcf8a91abf12501571439a02652afeff0b0f", width: this.width, height: this.height, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "2870e48a14d2a84175298a75d47e3224a10385a4", d: "M10 0.25C11.733 0.25 13.1492 1.60645 13.2449 3.31558L13.25 3.5H18.5C18.9142 3.5 19.25 3.83579 19.25 4.25C19.25 4.6297 18.9678 4.94349 18.6018 4.99315L18.5 5H17.704L16.4239 18.0192C16.2912 19.3683 15.1984 20.41 13.8626 20.4945L13.6871 20.5H6.31293C4.95734 20.5 3.81365 19.5145 3.59883 18.1934L3.57614 18.0192L2.295 5H1.5C1.1203 5 0.806509 4.71785 0.756847 4.35177L0.75 4.25C0.75 3.8703 1.03215 3.55651 1.39823 3.50685L1.5 3.5H6.75C6.75 1.70507 8.20507 0.25 10 0.25ZM16.197 5H3.802L5.06893 17.8724C5.12768 18.4696 5.60033 18.9343 6.18585 18.9936L6.31293 19H13.6871C14.2872 19 14.7959 18.5751 14.9123 17.9982L14.9311 17.8724L16.197 5ZM11.75 7.75C12.1297 7.75 12.4435 8.03215 12.4932 8.39823L12.5 8.5V15.5C12.5 15.9142 12.1642 16.25 11.75 16.25C11.3703 16.25 11.0565 15.9678 11.0068 15.6018L11 15.5V8.5C11 8.08579 11.3358 7.75 11.75 7.75ZM8.25 7.75C8.6297 7.75 8.94349 8.03215 8.99315 8.39823L9 8.5V15.5C9 15.9142 8.66421 16.25 8.25 16.25C7.8703 16.25 7.55651 15.9678 7.50685 15.6018L7.5 15.5V8.5C7.5 8.08579 7.83579 7.75 8.25 7.75ZM10 1.75C9.08183 1.75 8.32881 2.45711 8.2558 3.35647L8.25 3.5H11.75C11.75 2.5335 10.9665 1.75 10 1.75Z", fill: "currentColor" }));
1392
+ return l("svg", { key: "cd43bcf8a91abf12501571439a02652afeff0b0f", width: this.width, height: this.height, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("path", { key: "2870e48a14d2a84175298a75d47e3224a10385a4", d: "M10 0.25C11.733 0.25 13.1492 1.60645 13.2449 3.31558L13.25 3.5H18.5C18.9142 3.5 19.25 3.83579 19.25 4.25C19.25 4.6297 18.9678 4.94349 18.6018 4.99315L18.5 5H17.704L16.4239 18.0192C16.2912 19.3683 15.1984 20.41 13.8626 20.4945L13.6871 20.5H6.31293C4.95734 20.5 3.81365 19.5145 3.59883 18.1934L3.57614 18.0192L2.295 5H1.5C1.1203 5 0.806509 4.71785 0.756847 4.35177L0.75 4.25C0.75 3.8703 1.03215 3.55651 1.39823 3.50685L1.5 3.5H6.75C6.75 1.70507 8.20507 0.25 10 0.25ZM16.197 5H3.802L5.06893 17.8724C5.12768 18.4696 5.60033 18.9343 6.18585 18.9936L6.31293 19H13.6871C14.2872 19 14.7959 18.5751 14.9123 17.9982L14.9311 17.8724L16.197 5ZM11.75 7.75C12.1297 7.75 12.4435 8.03215 12.4932 8.39823L12.5 8.5V15.5C12.5 15.9142 12.1642 16.25 11.75 16.25C11.3703 16.25 11.0565 15.9678 11.0068 15.6018L11 15.5V8.5C11 8.08579 11.3358 7.75 11.75 7.75ZM8.25 7.75C8.6297 7.75 8.94349 8.03215 8.99315 8.39823L9 8.5V15.5C9 15.9142 8.66421 16.25 8.25 16.25C7.8703 16.25 7.55651 15.9678 7.50685 15.6018L7.5 15.5V8.5C7.5 8.08579 7.83579 7.75 8.25 7.75ZM10 1.75C9.08183 1.75 8.32881 2.45711 8.2558 3.35647L8.25 3.5H11.75C11.75 2.5335 10.9665 1.75 10 1.75Z", fill: "currentColor" }));
1320
1393
  }
1321
1394
  };
1322
1395
  ze.style = Ne;
@@ -1330,9 +1403,9 @@ export {
1330
1403
  N as input_image_url,
1331
1404
  z as nylas_additional_participants,
1332
1405
  B as nylas_event_description,
1333
- U as nylas_event_info,
1334
- W as nylas_event_location,
1335
- j as nylas_event_title,
1406
+ j as nylas_event_info,
1407
+ U as nylas_event_location,
1408
+ W as nylas_event_title,
1336
1409
  Z as nylas_feedback_form,
1337
1410
  K as nylas_reminder_time,
1338
1411
  ze as trash_icon