@nylas/web-elements 1.1.0-canary.21 → 1.1.0-canary.22

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 (719) hide show
  1. package/dist/cjs/add-circle-icon.cjs.entry.js +1 -1
  2. package/dist/cjs/add-circle-icon_2.cjs.entry.js +2 -2
  3. package/dist/cjs/archive-icon.cjs.entry.js +1 -1
  4. package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
  5. package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
  6. package/dist/cjs/bold-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
  8. package/dist/cjs/button-component.cjs.entry.js +1 -1
  9. package/dist/cjs/calendar-agenda-fill-icon.cjs.entry.js +1 -1
  10. package/dist/cjs/calendar-agenda-fill-icon_40.cjs.entry.js +47 -47
  11. package/dist/cjs/calendar-agenda-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
  15. package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
  17. package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/checkbox-component.cjs.entry.js +1 -1
  19. package/dist/cjs/checkbox-component_2.cjs.entry.js +2 -2
  20. package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/checkmark-icon.cjs.entry.js +1 -1
  22. package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/chevron-icon_3.cjs.entry.js +3 -3
  24. package/dist/cjs/clock-icon.cjs.entry.js +1 -1
  25. package/dist/cjs/clock-icon_4.cjs.entry.js +4 -4
  26. package/dist/cjs/close-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/copy-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/copy-icon_3.cjs.entry.js +3 -3
  29. package/dist/cjs/delete-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/dragable-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/edit-icon.cjs.entry.js +1 -1
  33. package/dist/cjs/envelope-fill-icon.cjs.entry.js +1 -1
  34. package/dist/cjs/envelope-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/eye-icon.cjs.entry.js +1 -1
  36. package/dist/cjs/flow-icon.cjs.entry.js +1 -1
  37. package/dist/cjs/folder-icon.cjs.entry.js +1 -1
  38. package/dist/cjs/forward-icon.cjs.entry.js +1 -1
  39. package/dist/cjs/forward-icon_6.cjs.entry.js +7 -7
  40. package/dist/cjs/globe-icon.cjs.entry.js +1 -1
  41. package/dist/cjs/google-logo-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/google-logo-icon_4.cjs.entry.js +6 -6
  43. package/dist/cjs/google-meet-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/info-icon.cjs.entry.js +1 -1
  46. package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
  47. package/dist/cjs/input-component.cjs.entry.js +1 -1
  48. package/dist/cjs/input-dropdown.cjs.entry.js +1 -1
  49. package/dist/cjs/italic-icon.cjs.entry.js +1 -1
  50. package/dist/cjs/loading-icon.cjs.entry.js +1 -1
  51. package/dist/cjs/location-icon.cjs.entry.js +1 -1
  52. package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
  53. package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
  54. package/dist/cjs/microsoft-teams-icon.cjs.entry.js +1 -1
  55. package/dist/cjs/multi-select-dropdown.cjs.entry.js +1 -1
  56. package/dist/cjs/nylas-additional-participants.cjs.entry.js +2 -2
  57. package/dist/cjs/nylas-availability-picker.cjs.entry.js +1 -1
  58. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +19 -18
  59. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js.map +1 -1
  60. package/dist/cjs/nylas-booking-form-config.cjs.entry.js +1 -1
  61. package/dist/cjs/nylas-booking-form.cjs.entry.js +13 -12
  62. package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
  63. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +1 -1
  64. package/dist/cjs/nylas-cancellation-policy.cjs.entry.js +1 -1
  65. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +1 -1
  66. package/dist/cjs/nylas-composer.cjs.entry.js +1 -1
  67. package/dist/cjs/nylas-confirmation-email.cjs.entry.js +1 -1
  68. package/dist/cjs/nylas-connected-calendars.cjs.entry.js +1 -1
  69. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +1 -1
  70. package/dist/cjs/nylas-customize-booking-settings.cjs.entry.js +1 -1
  71. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +4 -4
  72. package/dist/cjs/nylas-event-description.cjs.entry.js +1 -1
  73. package/dist/cjs/nylas-event-duration.cjs.entry.js +1 -1
  74. package/dist/cjs/nylas-event-info.cjs.entry.js +1 -1
  75. package/dist/cjs/nylas-event-limits.cjs.entry.js +1 -1
  76. package/dist/cjs/nylas-event-location.cjs.entry.js +6 -6
  77. package/dist/cjs/nylas-event-title.cjs.entry.js +2 -2
  78. package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
  79. package/dist/cjs/nylas-if-state.cjs.entry.js +1 -1
  80. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +1 -1
  81. package/dist/cjs/nylas-list-folders.cjs.entry.js +1 -1
  82. package/dist/cjs/nylas-list-threads.cjs.entry.js +1 -1
  83. package/dist/cjs/nylas-login.cjs.entry.js +1 -1
  84. package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
  85. package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +1 -1
  86. package/dist/cjs/nylas-mailbox.cjs.entry.js +1 -1
  87. package/dist/cjs/nylas-min-booking-notice.cjs.entry.js +1 -1
  88. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +1 -1
  89. package/dist/cjs/nylas-notification.cjs.entry.js +1 -1
  90. package/dist/cjs/nylas-participant-booking-calendars.cjs.entry.js +1 -1
  91. package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js +1 -1
  92. package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
  93. package/dist/cjs/nylas-reminder-emails.cjs.entry.js +3 -3
  94. package/dist/cjs/nylas-reminder-time.cjs.entry.js +1 -1
  95. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  96. package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -2
  97. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  98. package/dist/cjs/nylas-selected-event-card.cjs.entry.js +2 -2
  99. package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +2 -2
  100. package/dist/cjs/nylas-threads-refresh.cjs.entry.js +2 -2
  101. package/dist/cjs/nylas-threads-search.cjs.entry.js +1 -1
  102. package/dist/cjs/nylas-time-window-picker.cjs.entry.js +1 -1
  103. package/dist/cjs/nylas-timeslot-interval.cjs.entry.js +2 -2
  104. package/dist/cjs/nylas-view-email.cjs.entry.js +1 -1
  105. package/dist/cjs/nylas-view-thread.cjs.entry.js +1 -1
  106. package/dist/cjs/people-icon.cjs.entry.js +1 -1
  107. package/dist/cjs/person-clipboard-icon.cjs.entry.js +1 -1
  108. package/dist/cjs/person-icon.cjs.entry.js +1 -1
  109. package/dist/cjs/play-icon.cjs.entry.js +1 -1
  110. package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
  111. package/dist/cjs/plus-icon.cjs.entry.js +1 -1
  112. package/dist/cjs/radio-button-group.cjs.entry.js +1 -1
  113. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  114. package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
  115. package/dist/cjs/reply-icon.cjs.entry.js +1 -1
  116. package/dist/cjs/search-icon.cjs.entry.js +1 -1
  117. package/dist/cjs/select-dropdown.cjs.entry.js +1 -1
  118. package/dist/cjs/sent-icon.cjs.entry.js +1 -1
  119. package/dist/cjs/spam-icon.cjs.entry.js +1 -1
  120. package/dist/cjs/star-icon.cjs.entry.js +1 -1
  121. package/dist/cjs/stop-icon.cjs.entry.js +1 -1
  122. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  123. package/dist/cjs/time-period-selector.cjs.entry.js +1 -1
  124. package/dist/cjs/toggle-switch.cjs.entry.js +1 -1
  125. package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
  126. package/dist/cjs/translate-icon.cjs.entry.js +1 -1
  127. package/dist/cjs/trash-fill-icon.cjs.entry.js +1 -1
  128. package/dist/cjs/trash-icon.cjs.entry.js +1 -1
  129. package/dist/cjs/underline-icon.cjs.entry.js +1 -1
  130. package/dist/cjs/warning-icon.cjs.entry.js +1 -1
  131. package/dist/cjs/zoom-icon.cjs.entry.js +1 -1
  132. package/dist/collection/common/icons/add-circle.js +1 -1
  133. package/dist/collection/common/icons/archive.js +1 -1
  134. package/dist/collection/common/icons/arrow.js +1 -1
  135. package/dist/collection/common/icons/bold.js +1 -1
  136. package/dist/collection/common/icons/calendar-agenda-fill.js +1 -1
  137. package/dist/collection/common/icons/calendar-agenda.js +1 -1
  138. package/dist/collection/common/icons/calendar-cancel.js +1 -1
  139. package/dist/collection/common/icons/calendar-check.js +1 -1
  140. package/dist/collection/common/icons/calendar-info.js +1 -1
  141. package/dist/collection/common/icons/calendar-patterns.js +1 -1
  142. package/dist/collection/common/icons/calendar.js +1 -1
  143. package/dist/collection/common/icons/checkmark-circle.js +1 -1
  144. package/dist/collection/common/icons/checkmark.js +1 -1
  145. package/dist/collection/common/icons/chevron.js +1 -1
  146. package/dist/collection/common/icons/clock.js +1 -1
  147. package/dist/collection/common/icons/close.js +1 -1
  148. package/dist/collection/common/icons/copy.js +1 -1
  149. package/dist/collection/common/icons/delete.js +1 -1
  150. package/dist/collection/common/icons/document-refresh.js +1 -1
  151. package/dist/collection/common/icons/dragable.js +1 -1
  152. package/dist/collection/common/icons/edit.js +1 -1
  153. package/dist/collection/common/icons/envelope-fill.js +1 -1
  154. package/dist/collection/common/icons/envelope.js +1 -1
  155. package/dist/collection/common/icons/eye.js +1 -1
  156. package/dist/collection/common/icons/flow.js +1 -1
  157. package/dist/collection/common/icons/folder.js +1 -1
  158. package/dist/collection/common/icons/forward.js +1 -1
  159. package/dist/collection/common/icons/globe.js +1 -1
  160. package/dist/collection/common/icons/google-logo.js +1 -1
  161. package/dist/collection/common/icons/google-meet.js +1 -1
  162. package/dist/collection/common/icons/inbox.js +1 -1
  163. package/dist/collection/common/icons/info.js +1 -1
  164. package/dist/collection/common/icons/italic.js +1 -1
  165. package/dist/collection/common/icons/loading.js +1 -1
  166. package/dist/collection/common/icons/location-off.js +1 -1
  167. package/dist/collection/common/icons/location.js +1 -1
  168. package/dist/collection/common/icons/microsof-teams.js +1 -1
  169. package/dist/collection/common/icons/microsoft-logo.js +1 -1
  170. package/dist/collection/common/icons/nylas-logo.js +1 -1
  171. package/dist/collection/common/icons/people.js +1 -1
  172. package/dist/collection/common/icons/person-clipboard.js +1 -1
  173. package/dist/collection/common/icons/person.js +1 -1
  174. package/dist/collection/common/icons/play.js +1 -1
  175. package/dist/collection/common/icons/plus.js +1 -1
  176. package/dist/collection/common/icons/refresh.js +1 -1
  177. package/dist/collection/common/icons/reply-all.js +1 -1
  178. package/dist/collection/common/icons/reply.js +1 -1
  179. package/dist/collection/common/icons/search.js +1 -1
  180. package/dist/collection/common/icons/sent.js +1 -1
  181. package/dist/collection/common/icons/spam.js +1 -1
  182. package/dist/collection/common/icons/star.js +1 -1
  183. package/dist/collection/common/icons/stop.js +1 -1
  184. package/dist/collection/common/icons/translate.js +1 -1
  185. package/dist/collection/common/icons/trash-fill.js +1 -1
  186. package/dist/collection/common/icons/trash.js +1 -1
  187. package/dist/collection/common/icons/underline.js +1 -1
  188. package/dist/collection/common/icons/warning.js +1 -1
  189. package/dist/collection/common/icons/zoom.js +1 -1
  190. package/dist/collection/components/design-system/button-component/button-component.js +1 -1
  191. package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -1
  192. package/dist/collection/components/design-system/input-component/input-component.js +1 -1
  193. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +1 -1
  194. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +1 -1
  195. package/dist/collection/components/design-system/radio-button-group/radio-button-group.js +1 -1
  196. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +1 -1
  197. package/dist/collection/components/design-system/textarea-component/textarea-component.js +1 -1
  198. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
  199. package/dist/collection/components/design-system/toggle-switch/toggle-switch.js +1 -1
  200. package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
  201. package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
  202. package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
  203. package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
  204. package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
  205. package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
  206. package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
  207. package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
  208. package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
  209. package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
  210. package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
  211. package/dist/collection/components/nylas-if-state/nylas-if-state.js +1 -1
  212. package/dist/collection/components/nylas-login/nylas-login.js +1 -1
  213. package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
  214. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +13 -12
  215. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
  216. package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js +97 -0
  217. package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js.map +1 -1
  218. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  219. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  220. package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
  221. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +1 -2
  222. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  223. package/dist/collection/components/scheduler/nylas-scheduling/test/nylas-scheduling.spec.js +0 -12
  224. package/dist/collection/components/scheduler/nylas-scheduling/test/nylas-scheduling.spec.js.map +1 -1
  225. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +2 -2
  226. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +2 -2
  227. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +1 -1
  228. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js +1 -1
  229. package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js +1 -1
  230. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js +1 -1
  231. package/dist/collection/components/scheduler-editor/nylas-connected-calendars/nylas-connected-calendars.js +1 -1
  232. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
  233. package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js +1 -1
  234. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +4 -4
  235. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +1 -1
  236. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +1 -1
  237. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  238. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  239. package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js +6 -6
  240. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +2 -2
  241. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  242. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +1 -1
  243. package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js +1 -1
  244. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +1 -1
  245. package/dist/collection/components/scheduler-editor/nylas-participant-booking-calendars/nylas-participant-booking-calendars.js +1 -1
  246. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +1 -1
  247. package/dist/collection/components/scheduler-editor/nylas-reminder-emails/nylas-reminder-emails.js +3 -3
  248. package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.js +1 -1
  249. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +1 -1
  250. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
  251. package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +2 -2
  252. package/dist/components/add-circle.js +1 -1
  253. package/dist/components/archive.js +1 -1
  254. package/dist/components/arrow.js +1 -1
  255. package/dist/components/bold.js +1 -1
  256. package/dist/components/button-component2.js +1 -1
  257. package/dist/components/calendar-agenda-fill.js +1 -1
  258. package/dist/components/calendar-agenda.js +1 -1
  259. package/dist/components/calendar-cancel.js +1 -1
  260. package/dist/components/calendar-check.js +1 -1
  261. package/dist/components/calendar-info.js +1 -1
  262. package/dist/components/calendar-patterns.js +1 -1
  263. package/dist/components/calendar.js +1 -1
  264. package/dist/components/checkbox-component2.js +1 -1
  265. package/dist/components/checkmark-circle.js +1 -1
  266. package/dist/components/checkmark-icon.js +1 -1
  267. package/dist/components/chevron.js +1 -1
  268. package/dist/components/clock.js +1 -1
  269. package/dist/components/close.js +1 -1
  270. package/dist/components/copy.js +1 -1
  271. package/dist/components/delete.js +1 -1
  272. package/dist/components/document-refresh-icon.js +1 -1
  273. package/dist/components/dragable.js +1 -1
  274. package/dist/components/edit.js +1 -1
  275. package/dist/components/envelope-fill.js +1 -1
  276. package/dist/components/envelope.js +1 -1
  277. package/dist/components/eye.js +1 -1
  278. package/dist/components/flow.js +1 -1
  279. package/dist/components/folder.js +1 -1
  280. package/dist/components/forward.js +1 -1
  281. package/dist/components/globe.js +1 -1
  282. package/dist/components/google-logo.js +1 -1
  283. package/dist/components/google-meet.js +1 -1
  284. package/dist/components/inbox.js +1 -1
  285. package/dist/components/info.js +1 -1
  286. package/dist/components/input-component2.js +1 -1
  287. package/dist/components/input-dropdown2.js +1 -1
  288. package/dist/components/italic.js +1 -1
  289. package/dist/components/loading.js +1 -1
  290. package/dist/components/location-off.js +1 -1
  291. package/dist/components/location.js +1 -1
  292. package/dist/components/microsof-teams.js +1 -1
  293. package/dist/components/microsoft-logo.js +1 -1
  294. package/dist/components/multi-select-dropdown2.js +1 -1
  295. package/dist/components/nylas-additional-participants2.js +2 -2
  296. package/dist/components/nylas-availability-picker2.js +1 -1
  297. package/dist/components/nylas-booking-form-config2.js +1 -1
  298. package/dist/components/nylas-booking-form2.js +13 -12
  299. package/dist/components/nylas-booking-form2.js.map +1 -1
  300. package/dist/components/nylas-cancel-booking-form2.js +1 -1
  301. package/dist/components/nylas-cancellation-policy2.js +1 -1
  302. package/dist/components/nylas-cancelled-event-card2.js +1 -1
  303. package/dist/components/nylas-composer2.js +1 -1
  304. package/dist/components/nylas-confirmation-email2.js +1 -1
  305. package/dist/components/nylas-connected-calendars2.js +1 -1
  306. package/dist/components/nylas-custom-booking-flow.js +1 -1
  307. package/dist/components/nylas-customize-booking-settings2.js +1 -1
  308. package/dist/components/nylas-editor-tabs2.js +4 -4
  309. package/dist/components/nylas-event-description2.js +1 -1
  310. package/dist/components/nylas-event-duration2.js +1 -1
  311. package/dist/components/nylas-event-info2.js +1 -1
  312. package/dist/components/nylas-event-limits2.js +1 -1
  313. package/dist/components/nylas-event-location2.js +6 -6
  314. package/dist/components/nylas-event-title2.js +2 -2
  315. package/dist/components/nylas-form-card2.js +1 -1
  316. package/dist/components/nylas-if-state.js +1 -1
  317. package/dist/components/nylas-limit-future-bookings2.js +1 -1
  318. package/dist/components/nylas-list-folders.js +1 -1
  319. package/dist/components/nylas-list-threads.js +1 -1
  320. package/dist/components/nylas-login.js +1 -1
  321. package/dist/components/nylas-logo2.js +1 -1
  322. package/dist/components/nylas-mailbox-toolbar-button.js +1 -1
  323. package/dist/components/nylas-mailbox.js +1 -1
  324. package/dist/components/nylas-min-booking-notice2.js +1 -1
  325. package/dist/components/nylas-min-cancellation-notice2.js +1 -1
  326. package/dist/components/nylas-notification2.js +1 -1
  327. package/dist/components/nylas-participant-booking-calendars2.js +1 -1
  328. package/dist/components/nylas-participants-custom-availability2.js +1 -1
  329. package/dist/components/nylas-provider.js +1 -1
  330. package/dist/components/nylas-reminder-emails2.js +3 -3
  331. package/dist/components/nylas-reminder-time2.js +1 -1
  332. package/dist/components/nylas-scheduler-editor.js +1 -1
  333. package/dist/components/nylas-scheduling.js +1 -2
  334. package/dist/components/nylas-scheduling.js.map +1 -1
  335. package/dist/components/nylas-selected-event-card2.js +2 -2
  336. package/dist/components/nylas-summarize-message-button2.js +2 -2
  337. package/dist/components/nylas-threads-refresh.js +2 -2
  338. package/dist/components/nylas-threads-search.js +1 -1
  339. package/dist/components/nylas-time-window-picker2.js +1 -1
  340. package/dist/components/nylas-timeslot-interval2.js +2 -2
  341. package/dist/components/nylas-view-email2.js +1 -1
  342. package/dist/components/nylas-view-thread.js +1 -1
  343. package/dist/components/people.js +1 -1
  344. package/dist/components/person-clipboard.js +1 -1
  345. package/dist/components/person.js +1 -1
  346. package/dist/components/play.js +1 -1
  347. package/dist/components/plus.js +1 -1
  348. package/dist/components/radio-button-group2.js +1 -1
  349. package/dist/components/refresh.js +1 -1
  350. package/dist/components/reply-all.js +1 -1
  351. package/dist/components/reply.js +1 -1
  352. package/dist/components/search.js +1 -1
  353. package/dist/components/select-dropdown2.js +1 -1
  354. package/dist/components/sent.js +1 -1
  355. package/dist/components/spam.js +1 -1
  356. package/dist/components/star.js +1 -1
  357. package/dist/components/stop.js +1 -1
  358. package/dist/components/textarea-component2.js +1 -1
  359. package/dist/components/time-period-selector2.js +1 -1
  360. package/dist/components/toggle-switch2.js +1 -1
  361. package/dist/components/toolitp-component.js +1 -1
  362. package/dist/components/translate.js +1 -1
  363. package/dist/components/trash-fill.js +1 -1
  364. package/dist/components/trash.js +1 -1
  365. package/dist/components/underline.js +1 -1
  366. package/dist/components/warning.js +1 -1
  367. package/dist/components/zoom.js +1 -1
  368. package/dist/esm/add-circle-icon.entry.js +1 -1
  369. package/dist/esm/add-circle-icon_2.entry.js +2 -2
  370. package/dist/esm/archive-icon.entry.js +1 -1
  371. package/dist/esm/archive-icon_7.entry.js +7 -7
  372. package/dist/esm/arrow-icon.entry.js +1 -1
  373. package/dist/esm/bold-icon.entry.js +1 -1
  374. package/dist/esm/bold-icon_3.entry.js +3 -3
  375. package/dist/esm/button-component.entry.js +1 -1
  376. package/dist/esm/calendar-agenda-fill-icon.entry.js +1 -1
  377. package/dist/esm/calendar-agenda-fill-icon_40.entry.js +47 -47
  378. package/dist/esm/calendar-agenda-icon.entry.js +1 -1
  379. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  380. package/dist/esm/calendar-check-icon.entry.js +1 -1
  381. package/dist/esm/calendar-check-icon_2.entry.js +2 -2
  382. package/dist/esm/calendar-icon.entry.js +1 -1
  383. package/dist/esm/calendar-info-icon.entry.js +1 -1
  384. package/dist/esm/calendar-patterns-icon.entry.js +1 -1
  385. package/dist/esm/checkbox-component.entry.js +1 -1
  386. package/dist/esm/checkbox-component_2.entry.js +2 -2
  387. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  388. package/dist/esm/checkmark-icon.entry.js +1 -1
  389. package/dist/esm/chevron-icon.entry.js +1 -1
  390. package/dist/esm/chevron-icon_3.entry.js +3 -3
  391. package/dist/esm/clock-icon.entry.js +1 -1
  392. package/dist/esm/clock-icon_4.entry.js +4 -4
  393. package/dist/esm/close-icon.entry.js +1 -1
  394. package/dist/esm/copy-icon.entry.js +1 -1
  395. package/dist/esm/copy-icon_3.entry.js +3 -3
  396. package/dist/esm/delete-icon.entry.js +1 -1
  397. package/dist/esm/document-refresh-icon.entry.js +1 -1
  398. package/dist/esm/dragable-icon.entry.js +1 -1
  399. package/dist/esm/edit-icon.entry.js +1 -1
  400. package/dist/esm/envelope-fill-icon.entry.js +1 -1
  401. package/dist/esm/envelope-icon.entry.js +1 -1
  402. package/dist/esm/eye-icon.entry.js +1 -1
  403. package/dist/esm/flow-icon.entry.js +1 -1
  404. package/dist/esm/folder-icon.entry.js +1 -1
  405. package/dist/esm/forward-icon.entry.js +1 -1
  406. package/dist/esm/forward-icon_6.entry.js +7 -7
  407. package/dist/esm/globe-icon.entry.js +1 -1
  408. package/dist/esm/google-logo-icon.entry.js +1 -1
  409. package/dist/esm/google-logo-icon_4.entry.js +6 -6
  410. package/dist/esm/google-meet-icon.entry.js +1 -1
  411. package/dist/esm/inbox-icon.entry.js +1 -1
  412. package/dist/esm/info-icon.entry.js +1 -1
  413. package/dist/esm/info-icon_2.entry.js +2 -2
  414. package/dist/esm/input-component.entry.js +1 -1
  415. package/dist/esm/input-dropdown.entry.js +1 -1
  416. package/dist/esm/italic-icon.entry.js +1 -1
  417. package/dist/esm/loading-icon.entry.js +1 -1
  418. package/dist/esm/location-icon.entry.js +1 -1
  419. package/dist/esm/location-off-icon.entry.js +1 -1
  420. package/dist/esm/microsoft-logo-icon.entry.js +1 -1
  421. package/dist/esm/microsoft-teams-icon.entry.js +1 -1
  422. package/dist/esm/multi-select-dropdown.entry.js +1 -1
  423. package/dist/esm/nylas-additional-participants.entry.js +2 -2
  424. package/dist/esm/nylas-availability-picker.entry.js +1 -1
  425. package/dist/esm/nylas-booked-event-card_10.entry.js +19 -18
  426. package/dist/esm/nylas-booked-event-card_10.entry.js.map +1 -1
  427. package/dist/esm/nylas-booking-form-config.entry.js +1 -1
  428. package/dist/esm/nylas-booking-form.entry.js +13 -12
  429. package/dist/esm/nylas-booking-form.entry.js.map +1 -1
  430. package/dist/esm/nylas-cancel-booking-form.entry.js +1 -1
  431. package/dist/esm/nylas-cancellation-policy.entry.js +1 -1
  432. package/dist/esm/nylas-cancelled-event-card.entry.js +1 -1
  433. package/dist/esm/nylas-composer.entry.js +1 -1
  434. package/dist/esm/nylas-confirmation-email.entry.js +1 -1
  435. package/dist/esm/nylas-connected-calendars.entry.js +1 -1
  436. package/dist/esm/nylas-custom-booking-flow.entry.js +1 -1
  437. package/dist/esm/nylas-customize-booking-settings.entry.js +1 -1
  438. package/dist/esm/nylas-editor-tabs.entry.js +4 -4
  439. package/dist/esm/nylas-event-description.entry.js +1 -1
  440. package/dist/esm/nylas-event-duration.entry.js +1 -1
  441. package/dist/esm/nylas-event-info.entry.js +1 -1
  442. package/dist/esm/nylas-event-limits.entry.js +1 -1
  443. package/dist/esm/nylas-event-location.entry.js +6 -6
  444. package/dist/esm/nylas-event-title.entry.js +2 -2
  445. package/dist/esm/nylas-form-card.entry.js +1 -1
  446. package/dist/esm/nylas-if-state.entry.js +1 -1
  447. package/dist/esm/nylas-limit-future-bookings.entry.js +1 -1
  448. package/dist/esm/nylas-list-folders.entry.js +1 -1
  449. package/dist/esm/nylas-list-threads.entry.js +1 -1
  450. package/dist/esm/nylas-login.entry.js +1 -1
  451. package/dist/esm/nylas-logo.entry.js +1 -1
  452. package/dist/esm/nylas-mailbox-toolbar-button.entry.js +1 -1
  453. package/dist/esm/nylas-mailbox.entry.js +1 -1
  454. package/dist/esm/nylas-min-booking-notice.entry.js +1 -1
  455. package/dist/esm/nylas-min-cancellation-notice.entry.js +1 -1
  456. package/dist/esm/nylas-notification.entry.js +1 -1
  457. package/dist/esm/nylas-participant-booking-calendars.entry.js +1 -1
  458. package/dist/esm/nylas-participants-custom-availability.entry.js +1 -1
  459. package/dist/esm/nylas-provider.entry.js +1 -1
  460. package/dist/esm/nylas-reminder-emails.entry.js +3 -3
  461. package/dist/esm/nylas-reminder-time.entry.js +1 -1
  462. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  463. package/dist/esm/nylas-scheduling.entry.js +1 -2
  464. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  465. package/dist/esm/nylas-selected-event-card.entry.js +2 -2
  466. package/dist/esm/nylas-summarize-message-button.entry.js +2 -2
  467. package/dist/esm/nylas-threads-refresh.entry.js +2 -2
  468. package/dist/esm/nylas-threads-search.entry.js +1 -1
  469. package/dist/esm/nylas-time-window-picker.entry.js +1 -1
  470. package/dist/esm/nylas-timeslot-interval.entry.js +2 -2
  471. package/dist/esm/nylas-view-email.entry.js +1 -1
  472. package/dist/esm/nylas-view-thread.entry.js +1 -1
  473. package/dist/esm/people-icon.entry.js +1 -1
  474. package/dist/esm/person-clipboard-icon.entry.js +1 -1
  475. package/dist/esm/person-icon.entry.js +1 -1
  476. package/dist/esm/play-icon.entry.js +1 -1
  477. package/dist/esm/play-icon_2.entry.js +2 -2
  478. package/dist/esm/plus-icon.entry.js +1 -1
  479. package/dist/esm/radio-button-group.entry.js +1 -1
  480. package/dist/esm/refresh-icon.entry.js +1 -1
  481. package/dist/esm/reply-all-icon.entry.js +1 -1
  482. package/dist/esm/reply-icon.entry.js +1 -1
  483. package/dist/esm/search-icon.entry.js +1 -1
  484. package/dist/esm/select-dropdown.entry.js +1 -1
  485. package/dist/esm/sent-icon.entry.js +1 -1
  486. package/dist/esm/spam-icon.entry.js +1 -1
  487. package/dist/esm/star-icon.entry.js +1 -1
  488. package/dist/esm/stop-icon.entry.js +1 -1
  489. package/dist/esm/textarea-component.entry.js +1 -1
  490. package/dist/esm/time-period-selector.entry.js +1 -1
  491. package/dist/esm/toggle-switch.entry.js +1 -1
  492. package/dist/esm/tooltip-component.entry.js +1 -1
  493. package/dist/esm/translate-icon.entry.js +1 -1
  494. package/dist/esm/trash-fill-icon.entry.js +1 -1
  495. package/dist/esm/trash-icon.entry.js +1 -1
  496. package/dist/esm/underline-icon.entry.js +1 -1
  497. package/dist/esm/warning-icon.entry.js +1 -1
  498. package/dist/esm/zoom-icon.entry.js +1 -1
  499. package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
  500. package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
  501. package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
  502. package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
  503. package/dist/nylas-web-elements/button-component.entry.js +1 -1
  504. package/dist/nylas-web-elements/calendar-agenda-fill-icon.entry.js +1 -1
  505. package/dist/nylas-web-elements/calendar-agenda-icon.entry.js +1 -1
  506. package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
  507. package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
  508. package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
  509. package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
  510. package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
  511. package/dist/nylas-web-elements/checkbox-component.entry.js +1 -1
  512. package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
  513. package/dist/nylas-web-elements/checkmark-icon.entry.js +1 -1
  514. package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
  515. package/dist/nylas-web-elements/clock-icon.entry.js +1 -1
  516. package/dist/nylas-web-elements/close-icon.entry.js +1 -1
  517. package/dist/nylas-web-elements/copy-icon.entry.js +1 -1
  518. package/dist/nylas-web-elements/delete-icon.entry.js +1 -1
  519. package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
  520. package/dist/nylas-web-elements/dragable-icon.entry.js +1 -1
  521. package/dist/nylas-web-elements/edit-icon.entry.js +1 -1
  522. package/dist/nylas-web-elements/envelope-fill-icon.entry.js +1 -1
  523. package/dist/nylas-web-elements/envelope-icon.entry.js +1 -1
  524. package/dist/nylas-web-elements/eye-icon.entry.js +1 -1
  525. package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
  526. package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
  527. package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
  528. package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
  529. package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
  530. package/dist/nylas-web-elements/google-meet-icon.entry.js +1 -1
  531. package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
  532. package/dist/nylas-web-elements/info-icon.entry.js +1 -1
  533. package/dist/nylas-web-elements/input-component.entry.js +1 -1
  534. package/dist/nylas-web-elements/input-dropdown.entry.js +1 -1
  535. package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
  536. package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
  537. package/dist/nylas-web-elements/location-icon.entry.js +1 -1
  538. package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
  539. package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
  540. package/dist/nylas-web-elements/microsoft-teams-icon.entry.js +1 -1
  541. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +1 -1
  542. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +2 -2
  543. package/dist/nylas-web-elements/nylas-availability-picker.entry.js +1 -1
  544. package/dist/nylas-web-elements/nylas-booking-form-config.entry.js +1 -1
  545. package/dist/nylas-web-elements/nylas-booking-form.entry.js +13 -12
  546. package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
  547. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +1 -1
  548. package/dist/nylas-web-elements/nylas-cancellation-policy.entry.js +1 -1
  549. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +1 -1
  550. package/dist/nylas-web-elements/nylas-composer.entry.js +1 -1
  551. package/dist/nylas-web-elements/nylas-confirmation-email.entry.js +1 -1
  552. package/dist/nylas-web-elements/nylas-connected-calendars.entry.js +1 -1
  553. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +1 -1
  554. package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js +1 -1
  555. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +4 -4
  556. package/dist/nylas-web-elements/nylas-event-description.entry.js +1 -1
  557. package/dist/nylas-web-elements/nylas-event-duration.entry.js +1 -1
  558. package/dist/nylas-web-elements/nylas-event-info.entry.js +1 -1
  559. package/dist/nylas-web-elements/nylas-event-limits.entry.js +1 -1
  560. package/dist/nylas-web-elements/nylas-event-location.entry.js +6 -6
  561. package/dist/nylas-web-elements/nylas-event-title.entry.js +2 -2
  562. package/dist/nylas-web-elements/nylas-form-card.entry.js +1 -1
  563. package/dist/nylas-web-elements/nylas-if-state.entry.js +1 -1
  564. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +1 -1
  565. package/dist/nylas-web-elements/nylas-list-folders.entry.js +1 -1
  566. package/dist/nylas-web-elements/nylas-list-threads.entry.js +1 -1
  567. package/dist/nylas-web-elements/nylas-login.entry.js +1 -1
  568. package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
  569. package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +1 -1
  570. package/dist/nylas-web-elements/nylas-mailbox.entry.js +1 -1
  571. package/dist/nylas-web-elements/nylas-min-booking-notice.entry.js +1 -1
  572. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +1 -1
  573. package/dist/nylas-web-elements/nylas-notification.entry.js +1 -1
  574. package/dist/nylas-web-elements/nylas-participant-booking-calendars.entry.js +1 -1
  575. package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js +1 -1
  576. package/dist/nylas-web-elements/nylas-provider.entry.js +1 -1
  577. package/dist/nylas-web-elements/nylas-reminder-emails.entry.js +3 -3
  578. package/dist/nylas-web-elements/nylas-reminder-time.entry.js +1 -1
  579. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +1 -1
  580. package/dist/nylas-web-elements/nylas-scheduling.entry.js +1 -2
  581. package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
  582. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +2 -2
  583. package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +2 -2
  584. package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +2 -2
  585. package/dist/nylas-web-elements/nylas-threads-search.entry.js +1 -1
  586. package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +1 -1
  587. package/dist/nylas-web-elements/nylas-timeslot-interval.entry.js +2 -2
  588. package/dist/nylas-web-elements/nylas-view-email.entry.js +1 -1
  589. package/dist/nylas-web-elements/nylas-view-thread.entry.js +1 -1
  590. package/dist/nylas-web-elements/p-05e39cc3.entry.js +2 -0
  591. package/dist/nylas-web-elements/p-05e39cc3.entry.js.map +1 -0
  592. package/dist/nylas-web-elements/{p-267298be.entry.js → p-1376856a.entry.js} +2 -2
  593. package/dist/nylas-web-elements/{p-3fcbf72c.entry.js → p-21b11e12.entry.js} +2 -2
  594. package/dist/nylas-web-elements/{p-65a72779.entry.js → p-21c22d6b.entry.js} +2 -2
  595. package/dist/nylas-web-elements/{p-6b436dc0.entry.js → p-25bfc579.entry.js} +2 -2
  596. package/dist/nylas-web-elements/{p-5a74c002.entry.js → p-3c20895b.entry.js} +2 -2
  597. package/dist/nylas-web-elements/{p-aad0a4e0.entry.js → p-3e440355.entry.js} +2 -2
  598. package/dist/nylas-web-elements/p-40afc7f8.entry.js +2 -0
  599. package/dist/nylas-web-elements/{p-3b8efec1.entry.js → p-41e8c881.entry.js} +2 -2
  600. package/dist/nylas-web-elements/{p-d3d9c339.entry.js → p-45f5ed7b.entry.js} +2 -2
  601. package/dist/nylas-web-elements/{p-22216c9c.entry.js → p-49116da4.entry.js} +2 -2
  602. package/dist/nylas-web-elements/{p-aeb1c91c.entry.js → p-4caadf7d.entry.js} +2 -2
  603. package/dist/nylas-web-elements/{p-5f2fd4c8.entry.js → p-4da8b3e6.entry.js} +2 -2
  604. package/dist/nylas-web-elements/{p-58b793cc.entry.js → p-52ca89b1.entry.js} +2 -2
  605. package/dist/nylas-web-elements/p-54440d49.entry.js +2 -0
  606. package/dist/nylas-web-elements/{p-db61ce3f.entry.js → p-573b8b1c.entry.js} +2 -2
  607. package/dist/nylas-web-elements/{p-d8d5ce83.entry.js → p-59ddd93e.entry.js} +2 -2
  608. package/dist/nylas-web-elements/p-6cdcb5c5.entry.js +2 -0
  609. package/dist/nylas-web-elements/{p-0b146757.entry.js → p-73cd5b64.entry.js} +2 -2
  610. package/dist/nylas-web-elements/{p-7b159320.entry.js → p-75e3d536.entry.js} +2 -2
  611. package/dist/nylas-web-elements/p-75e3d536.entry.js.map +1 -0
  612. package/dist/nylas-web-elements/{p-cffd8f8a.entry.js → p-7823abda.entry.js} +2 -2
  613. package/dist/nylas-web-elements/{p-0dccf179.entry.js → p-8b0d995a.entry.js} +2 -2
  614. package/dist/nylas-web-elements/p-8b3c038d.entry.js +2 -0
  615. package/dist/nylas-web-elements/{p-22589c52.entry.js.map → p-8b3c038d.entry.js.map} +1 -1
  616. package/dist/nylas-web-elements/{p-fc81327c.entry.js → p-8c6189fe.entry.js} +2 -2
  617. package/dist/nylas-web-elements/{p-73da3bba.entry.js → p-933a3100.entry.js} +2 -2
  618. package/dist/nylas-web-elements/p-96de6e60.entry.js +2 -0
  619. package/dist/nylas-web-elements/{p-3f26a5a9.entry.js → p-9be6a822.entry.js} +2 -2
  620. package/dist/nylas-web-elements/{p-71cac380.entry.js → p-9d448cd8.entry.js} +2 -2
  621. package/dist/nylas-web-elements/{p-166264ec.entry.js → p-a448a489.entry.js} +2 -2
  622. package/dist/nylas-web-elements/p-a623d19d.entry.js +2 -0
  623. package/dist/nylas-web-elements/{p-3b281401.entry.js → p-ace74b9d.entry.js} +2 -2
  624. package/dist/nylas-web-elements/{p-3f435fab.entry.js → p-b0290025.entry.js} +2 -2
  625. package/dist/nylas-web-elements/{p-48ea33c2.entry.js → p-b0eead31.entry.js} +2 -2
  626. package/dist/nylas-web-elements/{p-d4ac4479.entry.js → p-b3703373.entry.js} +3 -3
  627. package/dist/nylas-web-elements/{p-02dc4d26.entry.js → p-b60d1957.entry.js} +2 -2
  628. package/dist/nylas-web-elements/{p-43a90942.entry.js → p-ba22f183.entry.js} +2 -2
  629. package/dist/nylas-web-elements/{p-82176388.entry.js → p-bbfd0f84.entry.js} +2 -2
  630. package/dist/nylas-web-elements/p-c08d3e18.entry.js +2 -0
  631. package/dist/nylas-web-elements/{p-c9c0016c.entry.js → p-c6b5a68e.entry.js} +3 -3
  632. package/dist/nylas-web-elements/{p-3aac9127.entry.js → p-c76721e7.entry.js} +2 -2
  633. package/dist/nylas-web-elements/p-c8f29351.entry.js +2 -0
  634. package/dist/nylas-web-elements/{p-e66bdd53.entry.js → p-d876a7db.entry.js} +2 -2
  635. package/dist/nylas-web-elements/{p-3175cae0.entry.js → p-ea7d26ba.entry.js} +2 -2
  636. package/dist/nylas-web-elements/{p-c58f8acf.entry.js → p-f3002df2.entry.js} +2 -2
  637. package/dist/nylas-web-elements/{p-280fc86a.entry.js → p-f62ed669.entry.js} +2 -2
  638. package/dist/nylas-web-elements/{p-89c7feab.entry.js → p-fb20f8a1.entry.js} +2 -2
  639. package/dist/nylas-web-elements/people-icon.entry.js +1 -1
  640. package/dist/nylas-web-elements/person-clipboard-icon.entry.js +1 -1
  641. package/dist/nylas-web-elements/person-icon.entry.js +1 -1
  642. package/dist/nylas-web-elements/play-icon.entry.js +1 -1
  643. package/dist/nylas-web-elements/plus-icon.entry.js +1 -1
  644. package/dist/nylas-web-elements/radio-button-group.entry.js +1 -1
  645. package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
  646. package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
  647. package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
  648. package/dist/nylas-web-elements/search-icon.entry.js +1 -1
  649. package/dist/nylas-web-elements/select-dropdown.entry.js +1 -1
  650. package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
  651. package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
  652. package/dist/nylas-web-elements/star-icon.entry.js +1 -1
  653. package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
  654. package/dist/nylas-web-elements/textarea-component.entry.js +1 -1
  655. package/dist/nylas-web-elements/time-period-selector.entry.js +1 -1
  656. package/dist/nylas-web-elements/toggle-switch.entry.js +1 -1
  657. package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
  658. package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
  659. package/dist/nylas-web-elements/trash-fill-icon.entry.js +1 -1
  660. package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
  661. package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
  662. package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
  663. package/dist/nylas-web-elements/zoom-icon.entry.js +1 -1
  664. package/dist/types/components.d.ts +8 -0
  665. package/package.json +2 -2
  666. package/dist/nylas-web-elements/p-000e308f.entry.js +0 -2
  667. package/dist/nylas-web-elements/p-000e308f.entry.js.map +0 -1
  668. package/dist/nylas-web-elements/p-22589c52.entry.js +0 -2
  669. package/dist/nylas-web-elements/p-3d2df022.entry.js +0 -2
  670. package/dist/nylas-web-elements/p-5ce76be4.entry.js +0 -2
  671. package/dist/nylas-web-elements/p-7b159320.entry.js.map +0 -1
  672. package/dist/nylas-web-elements/p-8a9579b5.entry.js +0 -2
  673. package/dist/nylas-web-elements/p-9068fc82.entry.js +0 -2
  674. package/dist/nylas-web-elements/p-90817d1f.entry.js +0 -2
  675. package/dist/nylas-web-elements/p-fb5f1ec6.entry.js +0 -2
  676. package/dist/nylas-web-elements/p-fe270fee.entry.js +0 -2
  677. /package/dist/nylas-web-elements/{p-267298be.entry.js.map → p-1376856a.entry.js.map} +0 -0
  678. /package/dist/nylas-web-elements/{p-3fcbf72c.entry.js.map → p-21b11e12.entry.js.map} +0 -0
  679. /package/dist/nylas-web-elements/{p-65a72779.entry.js.map → p-21c22d6b.entry.js.map} +0 -0
  680. /package/dist/nylas-web-elements/{p-6b436dc0.entry.js.map → p-25bfc579.entry.js.map} +0 -0
  681. /package/dist/nylas-web-elements/{p-5a74c002.entry.js.map → p-3c20895b.entry.js.map} +0 -0
  682. /package/dist/nylas-web-elements/{p-aad0a4e0.entry.js.map → p-3e440355.entry.js.map} +0 -0
  683. /package/dist/nylas-web-elements/{p-5ce76be4.entry.js.map → p-40afc7f8.entry.js.map} +0 -0
  684. /package/dist/nylas-web-elements/{p-3b8efec1.entry.js.map → p-41e8c881.entry.js.map} +0 -0
  685. /package/dist/nylas-web-elements/{p-d3d9c339.entry.js.map → p-45f5ed7b.entry.js.map} +0 -0
  686. /package/dist/nylas-web-elements/{p-22216c9c.entry.js.map → p-49116da4.entry.js.map} +0 -0
  687. /package/dist/nylas-web-elements/{p-aeb1c91c.entry.js.map → p-4caadf7d.entry.js.map} +0 -0
  688. /package/dist/nylas-web-elements/{p-5f2fd4c8.entry.js.map → p-4da8b3e6.entry.js.map} +0 -0
  689. /package/dist/nylas-web-elements/{p-58b793cc.entry.js.map → p-52ca89b1.entry.js.map} +0 -0
  690. /package/dist/nylas-web-elements/{p-fe270fee.entry.js.map → p-54440d49.entry.js.map} +0 -0
  691. /package/dist/nylas-web-elements/{p-db61ce3f.entry.js.map → p-573b8b1c.entry.js.map} +0 -0
  692. /package/dist/nylas-web-elements/{p-d8d5ce83.entry.js.map → p-59ddd93e.entry.js.map} +0 -0
  693. /package/dist/nylas-web-elements/{p-90817d1f.entry.js.map → p-6cdcb5c5.entry.js.map} +0 -0
  694. /package/dist/nylas-web-elements/{p-0b146757.entry.js.map → p-73cd5b64.entry.js.map} +0 -0
  695. /package/dist/nylas-web-elements/{p-cffd8f8a.entry.js.map → p-7823abda.entry.js.map} +0 -0
  696. /package/dist/nylas-web-elements/{p-0dccf179.entry.js.map → p-8b0d995a.entry.js.map} +0 -0
  697. /package/dist/nylas-web-elements/{p-fc81327c.entry.js.map → p-8c6189fe.entry.js.map} +0 -0
  698. /package/dist/nylas-web-elements/{p-73da3bba.entry.js.map → p-933a3100.entry.js.map} +0 -0
  699. /package/dist/nylas-web-elements/{p-fb5f1ec6.entry.js.map → p-96de6e60.entry.js.map} +0 -0
  700. /package/dist/nylas-web-elements/{p-3f26a5a9.entry.js.map → p-9be6a822.entry.js.map} +0 -0
  701. /package/dist/nylas-web-elements/{p-71cac380.entry.js.map → p-9d448cd8.entry.js.map} +0 -0
  702. /package/dist/nylas-web-elements/{p-166264ec.entry.js.map → p-a448a489.entry.js.map} +0 -0
  703. /package/dist/nylas-web-elements/{p-8a9579b5.entry.js.map → p-a623d19d.entry.js.map} +0 -0
  704. /package/dist/nylas-web-elements/{p-3b281401.entry.js.map → p-ace74b9d.entry.js.map} +0 -0
  705. /package/dist/nylas-web-elements/{p-3f435fab.entry.js.map → p-b0290025.entry.js.map} +0 -0
  706. /package/dist/nylas-web-elements/{p-48ea33c2.entry.js.map → p-b0eead31.entry.js.map} +0 -0
  707. /package/dist/nylas-web-elements/{p-d4ac4479.entry.js.map → p-b3703373.entry.js.map} +0 -0
  708. /package/dist/nylas-web-elements/{p-02dc4d26.entry.js.map → p-b60d1957.entry.js.map} +0 -0
  709. /package/dist/nylas-web-elements/{p-43a90942.entry.js.map → p-ba22f183.entry.js.map} +0 -0
  710. /package/dist/nylas-web-elements/{p-82176388.entry.js.map → p-bbfd0f84.entry.js.map} +0 -0
  711. /package/dist/nylas-web-elements/{p-9068fc82.entry.js.map → p-c08d3e18.entry.js.map} +0 -0
  712. /package/dist/nylas-web-elements/{p-c9c0016c.entry.js.map → p-c6b5a68e.entry.js.map} +0 -0
  713. /package/dist/nylas-web-elements/{p-3aac9127.entry.js.map → p-c76721e7.entry.js.map} +0 -0
  714. /package/dist/nylas-web-elements/{p-3d2df022.entry.js.map → p-c8f29351.entry.js.map} +0 -0
  715. /package/dist/nylas-web-elements/{p-e66bdd53.entry.js.map → p-d876a7db.entry.js.map} +0 -0
  716. /package/dist/nylas-web-elements/{p-3175cae0.entry.js.map → p-ea7d26ba.entry.js.map} +0 -0
  717. /package/dist/nylas-web-elements/{p-c58f8acf.entry.js.map → p-f3002df2.entry.js.map} +0 -0
  718. /package/dist/nylas-web-elements/{p-280fc86a.entry.js.map → p-f62ed669.entry.js.map} +0 -0
  719. /package/dist/nylas-web-elements/{p-89c7feab.entry.js.map → p-fb20f8a1.entry.js.map} +0 -0
@@ -77,7 +77,7 @@ const NylasLogin = class {
77
77
  }
78
78
  render() {
79
79
  const splitProviders = this.providers?.split(',') || [];
80
- return (h(Host, { key: '8f6064b48e90881da02a256b22e343b2ab84a455' }, this.loginMethod === 'redirect' && (h("div", { class: "redirect-container" }, !this.isAuthenticated && (h("sp-button", { part: "button", onClick: this._handleLoginRedirect }, this.buttonText)))), this.loginMethod === 'emebded' && (h("main", { class: "login-container" }, h("section", { class: "login-box" }, h("header", null, h("img", { src: this.logoUrl, alt: `${this.companyName} logo`, width: '100%', style: {
80
+ return (h(Host, { key: '383730f54029f9932d0af4a4acfbf2e108726806' }, this.loginMethod === 'redirect' && (h("div", { class: "redirect-container" }, !this.isAuthenticated && (h("sp-button", { part: "button", onClick: this._handleLoginRedirect }, this.buttonText)))), this.loginMethod === 'emebded' && (h("main", { class: "login-container" }, h("section", { class: "login-box" }, h("header", null, h("img", { src: this.logoUrl, alt: `${this.companyName} logo`, width: '100%', style: {
81
81
  minWidth: this.logoWidth,
82
82
  } }), h("h1", null, "Welcome")), h("p", null, "Log in to your account to continue to ", this.companyName), h("div", { class: "login-methods" }, splitProviders.includes('google') && (h("button", { class: "login-google", onClick: this._onGoogleButtonClick }, h("svg", { xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "18", height: "18", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 256 262" }, h("path", { fill: "#4285F4", d: "M255.6 131.6c0-8.2-.8-16.2-2.2-23.9H130v45.3h70.3c-3 16.1-12.4 29.7-26.3 38.9v32.4h42.6c25-23 39.4-56.7 39.4-97.7z" }), h("path", { fill: "#34A853", d: "M130 262c35.3 0 64.9-11.7 86.5-31.7l-42.6-32.4c-11.7 7.9-26.7 12.6-43.9 12.6-33.7 0-62.3-22.7-72.5-53.4H14.5v33.3A130.3 130.3 0 00130 262z" }), h("path", { fill: "#FBBC05", d: "M57.5 158.1a72.7 72.7 0 010-54.2V70.6H14.5a130.4 130.4 0 000 120.8l43-33.3z" }), h("path", { fill: "#EA4335", d: "M130 51.6c19 0 36 6.5 49.4 19.2l37-36C195 13.1 165.2 0 130 0A130.3 130.3 0 0014.5 70.6l43 33.3c10.2-30.7 38.8-53.3 72.5-53.3z" })), "Continue with Google")), splitProviders.includes('microsoft') && (h("button", { class: "login-microsoft", onClick: this._onMicrosoftButtonClick }, h("svg", { xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "18", height: "18", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 448 512" }, h("path", { fill: "#F3F3F3", d: "M0 32v192h192V32H0zm256 0v192h192V32H256zm192 256v192h-192V288h192zM0 224v192h192V224H0z" })), "Continue with Microsoft"))), h("form", { class: "login-form", method: "POST", onSubmit: this._onFormSubmit }, h("label", { htmlFor: "email" }, "Email"), h("input", { type: "email", id: "email", name: "email", required: true, value: this.email }), h("button", { type: "submit" }, "Next")))))));
83
83
  }
@@ -9,7 +9,7 @@ const NylasLogo = class {
9
9
  this.height = '24';
10
10
  }
11
11
  render() {
12
- return (h("svg", { key: 'd94208aba4b4b420ac701a1604ed632e6732b579', width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '9949b845be600b88ced63927410620e3a7e8c451', "clip-path": "url(#clip0_455_3543)" }, h("path", { key: '005f15418d0615e1169778bdeb92909d2b730dcd', d: "M15.8092 3.03248C14.6497 1.86996 13.1076 1.23047 11.4646 1.23047C9.82156 1.23047 8.27753 1.86996 7.11999 3.03248L0.835347 9.33381C0.686846 9.4827 0.60498 9.68123 0.60498 9.89312C0.60498 10.105 0.686846 10.3035 0.835347 10.4524C0.983848 10.6013 1.18185 10.6834 1.39318 10.6834C1.60451 10.6834 1.80251 10.6013 1.95101 10.4524L8.23374 4.15111C10.0139 2.36627 12.9134 2.36627 14.6935 4.15111C16.4736 5.93785 16.4756 8.84322 14.6935 10.6281L8.4108 16.9275C8.10428 17.2348 8.10428 17.7368 8.4108 18.0461C8.5593 18.195 8.75731 18.2771 8.96863 18.2771C9.17996 18.2771 9.37796 18.195 9.52646 18.0461L15.8092 11.7467C16.9687 10.5841 17.6064 9.03793 17.6064 7.39053C17.6064 5.74314 16.9687 4.19501 15.8092 3.03439V3.03248Z", fill: "currentColor" }), h("path", { key: '70646aa8a47a9a5d38cf1e5e658e1c89ddbd31e4', d: "M14.9296 7.39038C14.9296 6.46074 14.5698 5.58837 13.9148 4.93361C12.5631 3.57828 10.3641 3.57828 9.01239 4.93361L0.663961 13.3023C0.51546 13.4512 0.433594 13.6497 0.433594 13.8616C0.433594 14.0735 0.51546 14.272 0.663961 14.4209C0.812462 14.5698 1.01046 14.6519 1.22179 14.6519C1.43312 14.6519 1.63112 14.5698 1.77962 14.4209L10.0367 6.1515L10.05 6.13623C10.0747 6.10759 10.1014 6.07705 10.128 6.05033C10.1585 6.01978 10.1928 5.99115 10.2251 5.96252L10.2442 5.94534C10.9886 5.31349 12.1119 5.3593 12.8011 6.05033C13.4903 6.74135 13.536 7.78171 12.9705 8.53192L12.9648 8.53955C12.9058 8.61591 12.8544 8.67699 12.8011 8.73044C12.7497 8.78198 12.6906 8.83352 12.6069 8.90033L4.45264 17.0991C4.30414 17.248 4.22227 17.4465 4.22227 17.6584C4.22227 17.8703 4.30414 18.0689 4.45264 18.2177C4.60114 18.3666 4.79914 18.4487 5.01047 18.4487C5.2218 18.4487 5.4198 18.3666 5.5683 18.2177L13.9167 9.84716C14.5698 9.1924 14.9315 8.31812 14.9315 7.39038H14.9296Z", fill: "currentColor" }), h("path", { key: '006521383f94e611566911192a2afa7a5c20f878', d: "M10.6821 9.11238C10.4727 9.01694 10.2861 8.88904 10.1281 8.7306C9.97008 8.57216 9.84252 8.38508 9.74733 8.1751L9.69021 8.05103L0.467916 17.2978C0.287049 17.4792 0.174721 17.7082 0.149971 17.9411C0.125221 18.1778 0.19376 18.3897 0.344165 18.5405C0.471724 18.6684 0.65259 18.739 0.850592 18.739C1.11142 18.739 1.37796 18.6207 1.58358 18.4145L10.8059 9.16774L10.6821 9.11047V9.11238Z", fill: "currentColor" }), h("path", { key: 'ad51835222b7ea130aa405e800a2b54a562d0c59', d: "M68.401 10.6185C68.2126 10.2692 67.9593 9.97334 67.6433 9.73854C67.3235 9.49993 66.956 9.31094 66.5486 9.17541C66.1316 9.03606 65.7033 8.91771 65.2749 8.81844C64.7951 8.70582 64.3039 8.57983 63.8165 8.44811C63.3196 8.31258 62.9065 8.14269 62.5905 7.94225C62.4743 7.88689 62.3391 7.76663 62.3391 7.50129C62.3391 7.39821 62.3639 7.29704 62.4153 7.19587L62.4248 7.18059C62.5352 7.02216 62.7142 6.8828 62.975 6.75109C63.234 6.62128 63.609 6.55829 64.1231 6.55829C64.5286 6.55829 64.877 6.61365 65.1569 6.72436C65.4348 6.83508 65.6652 6.96871 65.8442 7.12524C66.0212 7.27986 66.1659 7.45357 66.2782 7.63873C66.3563 7.76854 66.4267 7.89262 66.4858 8.00525L68.2754 6.84081C68.1669 6.59456 68.0146 6.33495 67.8204 6.0677C67.6033 5.768 67.3254 5.4893 66.9922 5.23732C66.659 4.98534 66.2516 4.77345 65.7813 4.60929C65.3111 4.44512 64.7532 4.36304 64.1231 4.36304C63.3844 4.36304 62.7599 4.46421 62.2706 4.66083C61.7813 4.85935 61.3815 5.09988 61.0845 5.37667C60.7875 5.65346 60.5628 5.95125 60.4143 6.2605C60.2639 6.57547 60.1611 6.85799 60.1078 7.10233C60.0945 7.18059 60.0812 7.27031 60.0678 7.36767C60.0545 7.4593 60.0469 7.5452 60.0469 7.62537C60.0469 8.13314 60.1745 8.56074 60.4239 8.89671C60.679 9.24222 61.0045 9.53429 61.391 9.76336C61.7813 9.99624 62.2116 10.1852 62.6704 10.3227C63.1388 10.462 63.5862 10.5823 64.0012 10.6796C64.4067 10.777 64.7932 10.8782 65.1531 10.9774C65.5224 11.0786 65.8289 11.2122 66.0631 11.3745C66.2801 11.5425 66.3887 11.7448 66.3887 11.9777C66.3887 12.2278 66.2916 12.4263 66.0993 12.5695C65.9279 12.6954 65.7261 12.7985 65.4958 12.8711C65.273 12.9436 65.0407 12.9913 64.8066 13.0142C64.58 13.0352 64.3915 13.0467 64.2468 13.0467C63.8032 13.0467 63.4224 13.0028 63.1197 12.915C62.8151 12.8272 62.5638 12.7241 62.3734 12.6057C62.1811 12.4874 62.0288 12.3614 61.9222 12.2316C61.8213 12.1094 61.747 12.0082 61.7014 11.9319L61.4957 11.6303L59.708 12.7928C59.8508 13.0161 60.0298 13.2643 60.2392 13.5296C60.4772 13.8293 60.7837 14.1138 61.153 14.3734C61.5224 14.633 61.966 14.8525 62.4724 15.0243C62.9788 15.1961 63.5748 15.282 64.2468 15.282C64.797 15.282 65.2901 15.2324 65.7166 15.137C66.1412 15.0396 66.5162 14.9117 66.8285 14.7552C67.1388 14.6005 67.4015 14.4192 67.6109 14.2149C67.8223 14.0107 67.9974 13.8026 68.1326 13.6003C68.4563 13.1135 68.6409 12.5504 68.6828 11.9262C68.6828 11.4069 68.5876 10.9641 68.401 10.6166V10.6185Z", fill: "currentColor" }), h("path", { key: '1e908974d30f1799651c288bd6c3833ed03de72e', d: "M26.3585 4.27905C23.7901 4.27905 21.6997 6.37504 21.6997 8.95017V15.0701H23.9291V8.95017C23.9291 7.6082 25.0181 6.5163 26.3565 6.5163C27.695 6.5163 28.784 7.6082 28.784 8.95017V15.0701H31.0134V8.95017C31.0134 6.37504 28.9229 4.27905 26.3546 4.27905H26.3585Z", fill: "currentColor" }), h("path", { key: '5e8bc1a09662dc361bc72da2fb8220f340b09354', d: "M53.4522 4.27905C50.4251 4.27905 47.9634 6.74728 47.9634 9.78245C47.9634 12.8176 50.427 15.2859 53.4522 15.2859C54.5545 15.2859 55.6188 14.9594 56.5288 14.3409L56.7116 14.2169V15.0682H58.941V9.78245C58.941 6.74728 56.4793 4.27905 53.4522 4.27905ZM53.4522 13.0505C51.655 13.0505 50.1928 11.5845 50.1928 9.78245C50.1928 7.98044 51.655 6.51439 53.4522 6.51439C55.2494 6.51439 56.7116 7.98044 56.7116 9.78245C56.7116 11.5845 55.2494 13.0505 53.4522 13.0505Z", fill: "currentColor" }), h("path", { key: '5053aafa53fb73f356492a871f2e880c877bb832', d: "M45.5795 10.6166V0.356201H43.3501V10.6166C43.3501 13.1517 45.3758 15.2228 47.8908 15.2858V13.0486C46.6057 12.9875 45.5795 11.9204 45.5795 10.6166Z", fill: "currentColor" }), h("path", { key: 'dbd9ac30c3dc491457f2219a30a5dd0975914b90', d: "M39.5428 4.4967V10.63C39.5428 11.6761 38.8669 12.621 37.9016 12.9284C37.1249 13.1746 36.3157 13.0486 35.6817 12.5829C35.0592 12.1247 34.6879 11.3917 34.6879 10.6186V4.4967H32.4585V10.5995C32.4585 12.7165 33.8388 14.57 35.8131 15.1084C37.0354 15.4424 38.2995 15.2973 39.3695 14.7037L39.5428 14.6063V14.9747C39.5428 16.2766 38.5166 17.3437 37.2315 17.4067V19.6439C39.7465 19.5809 41.7722 17.5117 41.7722 14.9747V4.4967H39.5428Z", fill: "currentColor" })), h("defs", { key: '48f1a43d1ae03bd6dabdc1245f439416a45a74bc' }, h("clipPath", { key: '79baeef53cf45d73f29b1757bf57f0b09fef2064', id: "clip0_455_3543" }, h("rect", { key: '6ed7056ab99c55ebad6e736b712d68b837706ad3', width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" })))));
12
+ return (h("svg", { key: '0fbf980c0b3e79d48eac121208ded45ff37cf755', width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '7fada887714f6771756e993a14cc85573cb03381', "clip-path": "url(#clip0_455_3543)" }, h("path", { key: 'f91c2de423caf86f05f3f583cf2948dbb2ad57ff', d: "M15.8092 3.03248C14.6497 1.86996 13.1076 1.23047 11.4646 1.23047C9.82156 1.23047 8.27753 1.86996 7.11999 3.03248L0.835347 9.33381C0.686846 9.4827 0.60498 9.68123 0.60498 9.89312C0.60498 10.105 0.686846 10.3035 0.835347 10.4524C0.983848 10.6013 1.18185 10.6834 1.39318 10.6834C1.60451 10.6834 1.80251 10.6013 1.95101 10.4524L8.23374 4.15111C10.0139 2.36627 12.9134 2.36627 14.6935 4.15111C16.4736 5.93785 16.4756 8.84322 14.6935 10.6281L8.4108 16.9275C8.10428 17.2348 8.10428 17.7368 8.4108 18.0461C8.5593 18.195 8.75731 18.2771 8.96863 18.2771C9.17996 18.2771 9.37796 18.195 9.52646 18.0461L15.8092 11.7467C16.9687 10.5841 17.6064 9.03793 17.6064 7.39053C17.6064 5.74314 16.9687 4.19501 15.8092 3.03439V3.03248Z", fill: "currentColor" }), h("path", { key: 'cde2692ce02ef84f5fb4dfd0d2586437cec14258', d: "M14.9296 7.39038C14.9296 6.46074 14.5698 5.58837 13.9148 4.93361C12.5631 3.57828 10.3641 3.57828 9.01239 4.93361L0.663961 13.3023C0.51546 13.4512 0.433594 13.6497 0.433594 13.8616C0.433594 14.0735 0.51546 14.272 0.663961 14.4209C0.812462 14.5698 1.01046 14.6519 1.22179 14.6519C1.43312 14.6519 1.63112 14.5698 1.77962 14.4209L10.0367 6.1515L10.05 6.13623C10.0747 6.10759 10.1014 6.07705 10.128 6.05033C10.1585 6.01978 10.1928 5.99115 10.2251 5.96252L10.2442 5.94534C10.9886 5.31349 12.1119 5.3593 12.8011 6.05033C13.4903 6.74135 13.536 7.78171 12.9705 8.53192L12.9648 8.53955C12.9058 8.61591 12.8544 8.67699 12.8011 8.73044C12.7497 8.78198 12.6906 8.83352 12.6069 8.90033L4.45264 17.0991C4.30414 17.248 4.22227 17.4465 4.22227 17.6584C4.22227 17.8703 4.30414 18.0689 4.45264 18.2177C4.60114 18.3666 4.79914 18.4487 5.01047 18.4487C5.2218 18.4487 5.4198 18.3666 5.5683 18.2177L13.9167 9.84716C14.5698 9.1924 14.9315 8.31812 14.9315 7.39038H14.9296Z", fill: "currentColor" }), h("path", { key: 'f2e8d9f1ad8ab8238f0c412e2ece3e82e0c59cbe', d: "M10.6821 9.11238C10.4727 9.01694 10.2861 8.88904 10.1281 8.7306C9.97008 8.57216 9.84252 8.38508 9.74733 8.1751L9.69021 8.05103L0.467916 17.2978C0.287049 17.4792 0.174721 17.7082 0.149971 17.9411C0.125221 18.1778 0.19376 18.3897 0.344165 18.5405C0.471724 18.6684 0.65259 18.739 0.850592 18.739C1.11142 18.739 1.37796 18.6207 1.58358 18.4145L10.8059 9.16774L10.6821 9.11047V9.11238Z", fill: "currentColor" }), h("path", { key: '8c6634a7b8b1358e5b18ddfd44ac820c2025e92f', d: "M68.401 10.6185C68.2126 10.2692 67.9593 9.97334 67.6433 9.73854C67.3235 9.49993 66.956 9.31094 66.5486 9.17541C66.1316 9.03606 65.7033 8.91771 65.2749 8.81844C64.7951 8.70582 64.3039 8.57983 63.8165 8.44811C63.3196 8.31258 62.9065 8.14269 62.5905 7.94225C62.4743 7.88689 62.3391 7.76663 62.3391 7.50129C62.3391 7.39821 62.3639 7.29704 62.4153 7.19587L62.4248 7.18059C62.5352 7.02216 62.7142 6.8828 62.975 6.75109C63.234 6.62128 63.609 6.55829 64.1231 6.55829C64.5286 6.55829 64.877 6.61365 65.1569 6.72436C65.4348 6.83508 65.6652 6.96871 65.8442 7.12524C66.0212 7.27986 66.1659 7.45357 66.2782 7.63873C66.3563 7.76854 66.4267 7.89262 66.4858 8.00525L68.2754 6.84081C68.1669 6.59456 68.0146 6.33495 67.8204 6.0677C67.6033 5.768 67.3254 5.4893 66.9922 5.23732C66.659 4.98534 66.2516 4.77345 65.7813 4.60929C65.3111 4.44512 64.7532 4.36304 64.1231 4.36304C63.3844 4.36304 62.7599 4.46421 62.2706 4.66083C61.7813 4.85935 61.3815 5.09988 61.0845 5.37667C60.7875 5.65346 60.5628 5.95125 60.4143 6.2605C60.2639 6.57547 60.1611 6.85799 60.1078 7.10233C60.0945 7.18059 60.0812 7.27031 60.0678 7.36767C60.0545 7.4593 60.0469 7.5452 60.0469 7.62537C60.0469 8.13314 60.1745 8.56074 60.4239 8.89671C60.679 9.24222 61.0045 9.53429 61.391 9.76336C61.7813 9.99624 62.2116 10.1852 62.6704 10.3227C63.1388 10.462 63.5862 10.5823 64.0012 10.6796C64.4067 10.777 64.7932 10.8782 65.1531 10.9774C65.5224 11.0786 65.8289 11.2122 66.0631 11.3745C66.2801 11.5425 66.3887 11.7448 66.3887 11.9777C66.3887 12.2278 66.2916 12.4263 66.0993 12.5695C65.9279 12.6954 65.7261 12.7985 65.4958 12.8711C65.273 12.9436 65.0407 12.9913 64.8066 13.0142C64.58 13.0352 64.3915 13.0467 64.2468 13.0467C63.8032 13.0467 63.4224 13.0028 63.1197 12.915C62.8151 12.8272 62.5638 12.7241 62.3734 12.6057C62.1811 12.4874 62.0288 12.3614 61.9222 12.2316C61.8213 12.1094 61.747 12.0082 61.7014 11.9319L61.4957 11.6303L59.708 12.7928C59.8508 13.0161 60.0298 13.2643 60.2392 13.5296C60.4772 13.8293 60.7837 14.1138 61.153 14.3734C61.5224 14.633 61.966 14.8525 62.4724 15.0243C62.9788 15.1961 63.5748 15.282 64.2468 15.282C64.797 15.282 65.2901 15.2324 65.7166 15.137C66.1412 15.0396 66.5162 14.9117 66.8285 14.7552C67.1388 14.6005 67.4015 14.4192 67.6109 14.2149C67.8223 14.0107 67.9974 13.8026 68.1326 13.6003C68.4563 13.1135 68.6409 12.5504 68.6828 11.9262C68.6828 11.4069 68.5876 10.9641 68.401 10.6166V10.6185Z", fill: "currentColor" }), h("path", { key: '100297c7cec7475275ddaaa14b77d55391627a23', d: "M26.3585 4.27905C23.7901 4.27905 21.6997 6.37504 21.6997 8.95017V15.0701H23.9291V8.95017C23.9291 7.6082 25.0181 6.5163 26.3565 6.5163C27.695 6.5163 28.784 7.6082 28.784 8.95017V15.0701H31.0134V8.95017C31.0134 6.37504 28.9229 4.27905 26.3546 4.27905H26.3585Z", fill: "currentColor" }), h("path", { key: '02d4f2d7ff9f1d622352cc6119e146f2369915f0', d: "M53.4522 4.27905C50.4251 4.27905 47.9634 6.74728 47.9634 9.78245C47.9634 12.8176 50.427 15.2859 53.4522 15.2859C54.5545 15.2859 55.6188 14.9594 56.5288 14.3409L56.7116 14.2169V15.0682H58.941V9.78245C58.941 6.74728 56.4793 4.27905 53.4522 4.27905ZM53.4522 13.0505C51.655 13.0505 50.1928 11.5845 50.1928 9.78245C50.1928 7.98044 51.655 6.51439 53.4522 6.51439C55.2494 6.51439 56.7116 7.98044 56.7116 9.78245C56.7116 11.5845 55.2494 13.0505 53.4522 13.0505Z", fill: "currentColor" }), h("path", { key: 'f8c9ab3a5f34b72b550ffeb9869d92b3184f527f', d: "M45.5795 10.6166V0.356201H43.3501V10.6166C43.3501 13.1517 45.3758 15.2228 47.8908 15.2858V13.0486C46.6057 12.9875 45.5795 11.9204 45.5795 10.6166Z", fill: "currentColor" }), h("path", { key: 'bd56ca92b932101416706164329e4eca5ab43437', d: "M39.5428 4.4967V10.63C39.5428 11.6761 38.8669 12.621 37.9016 12.9284C37.1249 13.1746 36.3157 13.0486 35.6817 12.5829C35.0592 12.1247 34.6879 11.3917 34.6879 10.6186V4.4967H32.4585V10.5995C32.4585 12.7165 33.8388 14.57 35.8131 15.1084C37.0354 15.4424 38.2995 15.2973 39.3695 14.7037L39.5428 14.6063V14.9747C39.5428 16.2766 38.5166 17.3437 37.2315 17.4067V19.6439C39.7465 19.5809 41.7722 17.5117 41.7722 14.9747V4.4967H39.5428Z", fill: "currentColor" })), h("defs", { key: '20ae2f861eb31c0dd81bcd94c652de0ec040c7b3' }, h("clipPath", { key: '34e8be3ddc24fe243728764b8b171b0e8bea15d2', id: "clip0_455_3543" }, h("rect", { key: 'da3c1e98ef4a481dd2645b630734905aa0c95a5b', width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" })))));
13
13
  }
14
14
  };
15
15
  NylasLogo.style = iconCss;
@@ -76,7 +76,7 @@ const NylasMailboxToolbarButton = class {
76
76
  state = this.dataState ? store.get(storeKey) === 'loading' : false;
77
77
  }
78
78
  const key = state ? `state-loading` : 'state-ready';
79
- return (h(Host, { key: '55dc30c835030d084a6b88042f38eef40b8bb9e2' }, h("sp-theme", { key: '64fae6a1f45665029b5507fe548d919abb263d69', scale: "medium", color: "dark" }, h("sp-button", { onClick: this.onClick, disabled: state, key: key, "icon-only": this.iconOnly, label: this.renderByState(state) }, this.hasSlot('icon') && (h("div", { slot: "icon", class: 'slot' }, h("slot", { name: "icon" }))), !this.iconOnly && this.renderByState(state)))));
79
+ return (h(Host, { key: 'afa75825fa20e1745c67fba86f266e1f79c4202d' }, h("sp-theme", { key: '74043d5da85d3a2bc8097811ebce7b338406f086', scale: "medium", color: "dark" }, h("sp-button", { onClick: this.onClick, disabled: state, key: key, "icon-only": this.iconOnly, label: this.renderByState(state) }, this.hasSlot('icon') && (h("div", { slot: "icon", class: 'slot' }, h("slot", { name: "icon" }))), !this.iconOnly && this.renderByState(state)))));
80
80
  }
81
81
  get host() { return getElement(this); }
82
82
  };
@@ -182,7 +182,7 @@ const NylasMailbox = class {
182
182
  return this.nylasMailboxConnector;
183
183
  }
184
184
  render() {
185
- return (h(Host, { key: '94e312cb1068801958ad1ecbd9afafd05e9b892b' }, h("slot", { key: 'f0373962f58b64497eec19ecfa7a456925281bd4' })));
185
+ return (h(Host, { key: 'ab8485bcd5fe06246f3ad1101c36a4f55be90950' }, h("slot", { key: '59e204ebd16455151bd189f2c91f30580fdb659b' })));
186
186
  }
187
187
  get host() { return getElement(this); }
188
188
  };
@@ -129,7 +129,7 @@ const NylasMinBookingNotice = class {
129
129
  this.selectedPeriod = period;
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: '47d97cf15413ac6d2a1983c31bf5285da9d22416' }, h("div", { key: 'a2c14ed28cdf180a791f779c8df40b55ee72799c', class: "nylas-min-booking-notice", part: "nmbn" }, h("label", { key: '0e3e640e89b16308d94402a28c650533d157cc37' }, "Minimum booking notice", h("span", { key: '70a1590c751002c54e03ee524bd9e1ffce424897', class: "label-icon" }, h("tooltip-component", { key: 'ebf5aa08d5750cb435d92712af6419f418289686' }, h("info-icon", { key: '96182bbb2aa2e4e75e85aef9032903fbdc7319ed', slot: "tooltip-icon" }), h("span", { key: '652f4ff744011f6974376c44c6a61f4e6488b2fd', slot: "tooltip-content" }, "The minimum amount of time in the future that a new booking can be made.")))), h("time-period-selector", { key: '28b99b166c06d72cb57a70fe11acb970d4f295ac', id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
132
+ return (h(Host, { key: 'b66e6d967866180d458597d6ff5c00f4aca0ec3b' }, h("div", { key: '98ad2ebaa4a3495f9ba65577d8b1af6016d377f9', class: "nylas-min-booking-notice", part: "nmbn" }, h("label", { key: '5c2e80d9691796b7cf55c1efa304d5c6b5b22a5a' }, "Minimum booking notice", h("span", { key: '1ff320e10d2b918da0b80885d2bda34f797e8e90', class: "label-icon" }, h("tooltip-component", { key: 'c7d22efc7c5d23a3a3fd3e6fe746ade7e2a9a00b' }, h("info-icon", { key: '8cea6168b3a274642250e1a217feed9660a4b87a', slot: "tooltip-icon" }), h("span", { key: '85502d33a2ef5842e247dab8a14fdc138cc25128', slot: "tooltip-content" }, "The minimum amount of time in the future that a new booking can be made.")))), h("time-period-selector", { key: '96064706fbe48c498569f005549d1030725c5c70', id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
133
133
  }
134
134
  static get formAssociated() { return true; }
135
135
  get host() { return getElement(this); }
@@ -129,7 +129,7 @@ const NylasMinCancellationNotice = class {
129
129
  this.selectedPeriod = period;
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: '1371e8247f4cfb764ba3d63982047c2964b9dca2' }, h("div", { key: 'a7487dc7385a1d39e176f208fb23238579223af9', class: "nylas-min-cancellation-notice", part: "nmcn" }, h("label", { key: '3bcd720132d8cdfe80c94a64b901da3470ad57e9' }, "Minimum cancellation notice", h("span", { key: '8764ad54ab4ca8bd0b014d88e5fad58a75a6a1ad', class: "label-icon" }, h("tooltip-component", { key: '34e80e1f906b16c4239bc21ea8e975f8b71c9e6a' }, h("info-icon", { key: '2beaf33348a329d461c32de462319d7be2c87381', slot: "tooltip-icon" }), h("span", { key: '8ccef7385c54c61a062d59650665f11b7314270b', slot: "tooltip-content" }, "The minimum amount of time required to cancel a booking.")))), h("time-period-selector", { key: 'be775a679e24b786a6c453db478b59cef0dd30f4', id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
132
+ return (h(Host, { key: 'ce2473b73de62b85e83d58aa3fc66c9ee5ae48e1' }, h("div", { key: '28e87715ad2356259660fb281e2e461ff50050d8', class: "nylas-min-cancellation-notice", part: "nmcn" }, h("label", { key: '6582f3ad397d65b0ace88f3168ec472f4b2dda87' }, "Minimum cancellation notice", h("span", { key: '99b09490eb2ac74fdcbc7d5bb30923b7b69534b3', class: "label-icon" }, h("tooltip-component", { key: '13b1130f0cfad5c6d88fa82b70431ee9470519bd' }, h("info-icon", { key: 'dc19df74544163eadb9223c35507240fe3bd684b', slot: "tooltip-icon" }), h("span", { key: 'ab03e84970093e4c62e26280ee305b03e45748ee', slot: "tooltip-content" }, "The minimum amount of time required to cancel a booking.")))), h("time-period-selector", { key: '0befed220376dd6d85990600ef9b5b9a897fe49f', id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
133
133
  }
134
134
  static get formAssociated() { return true; }
135
135
  get host() { return getElement(this); }
@@ -73,7 +73,7 @@ const NylasNotification = class {
73
73
  this.notifications = this.notifications.filter(notif => notif.id !== id);
74
74
  }
75
75
  render() {
76
- return (h(Host, { key: 'ee48c545da38b0e35683c6e10db257a32768ab40' }, h(Fragment, { key: '9be932f6b0cd05dcf8fd459221f5b422524e737c' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: '637bdccb78964fd1f60c7a6f0177cc62af5c9750' }))));
76
+ return (h(Host, { key: 'c507cfeee709a1742cfcfe448edb46148bb7645c' }, h(Fragment, { key: 'bef717616baa583c675852eb3eae03a4303276ee' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: '611326297709c03e357a3bb1597339d540b683b5' }))));
77
77
  }
78
78
  get host() { return getElement(this); }
79
79
  };
@@ -135,7 +135,7 @@ const NylasParticipantBookingCalendars = class {
135
135
  return selectedParticipants;
136
136
  }
137
137
  render() {
138
- return (h(Host, { key: '4d4bd8b9463489ff3a66f17fe16b250f514c66ab' }, h("div", { key: '91516dc19d10a8932d0f759b3968dbbdf5bc1fa9', class: "nylas-participant-booking-calendars", part: "npbc" }, h("div", { key: '4a3000822113018fe3bc905fc7a34051b0c21f4c', class: "header", part: "npbc__header" }, h("h3", { key: '74d4741419d6352f8c8401e9b9dbea18765d6fc3' }, "Calendar booking"), h("p", { key: '9ed21750d16566885c1626db4f03098a5acc32f0' }, "Select the calendar where you want to add event bookings.", h("tooltip-component", { key: '161b9699355b456539ccaaa902bfdf77e7cd2380' }, h("info-icon", { key: '1429445a348fa2744f65617de14147707c3fc877', slot: "tooltip-icon" }), h("span", { key: 'f080b36b751ac19b70703a27ecfbbb6c0635f2b2', slot: "tooltip-content" }, "The calendar will be used to create events.")))), h("div", { key: '032831a62f5066aef357bcd0d7315b67bb5488f2', class: "content", part: "npbc__content" }, h("form", { key: '1cd2a64097d143c76152ce80107ae7df40c458c7', ref: el => (this.bookingCalendarsFormRef = el) }, Object.keys(this.participantCalendars).map((key, index) => {
138
+ return (h(Host, { key: '6fa910c87f437c0d9f031a76a854b4977fe9696c' }, h("div", { key: 'fd8dac2baf15d1656bfd1856c683cb217cf68aad', class: "nylas-participant-booking-calendars", part: "npbc" }, h("div", { key: 'f8a817cfa4f1f1b12780ea7ab7354bd12eaff64d', class: "header", part: "npbc__header" }, h("h3", { key: '1978227a6007ee58270c70ab2578a2364229992d' }, "Calendar booking"), h("p", { key: '968674c7567f6a898052e9f1c6fa4a4d7106b4f2' }, "Select the calendar where you want to add event bookings.", h("tooltip-component", { key: '6daa4107d5d6145b72909b9fd3aa76b3393d46fc' }, h("info-icon", { key: '001e828549f0bf59d330d9099bb35edb97a37318', slot: "tooltip-icon" }), h("span", { key: '1172c70eed8ac2b84e6a7ec56b38f8096d5ca514', slot: "tooltip-content" }, "The calendar will be used to create events.")))), h("div", { key: 'ed4838cd97937c6a85a74b8e9541bde8cc6dda85', class: "content", part: "npbc__content" }, h("form", { key: '7b95644a8ae34c54db35bf7a1a24558c972d1318', ref: el => (this.bookingCalendarsFormRef = el) }, Object.keys(this.participantCalendars).map((key, index) => {
139
139
  const participant = this.selectedCalendars[key];
140
140
  const participantCalendars = this.participantCalendars[key];
141
141
  if (!participant || !participant.name)
@@ -111,7 +111,7 @@ const NylasParticipantsCustomAvailability = class {
111
111
  return selectedParticipants;
112
112
  }
113
113
  render() {
114
- return (h(Host, { key: '3e7cdcf9612c646be0b96633d387361a562f5894' }, h("div", { key: '42d1fa4e046a101f1ca5b80b640d3f3b619d9035', class: "nylas-participants-custom-availability", part: "npca" }, h("div", { key: 'ec6d1290c374f5ced61f8dabcbcacb102e0427bc', class: "header", part: "npca__header" }, h("h3", { key: '26577e0fd9572ed513907f0307fe207de951c2bd' }, "Availability for participants"), h("p", { key: '7a287a227c278b6f9ccc6c6ec8beeca34d521cd0' }, "If not set, the general availability on the Availability tab is used.")), h("div", { key: '42794be072915fd5f42ce4905fba3d9ba9551b84', class: "content", part: "npca__content" }, h("form", { key: '5368bcc8efc3393666271c2a2082d5caf0c739b6', ref: el => (this.participantFormRef = el) }, Object.keys(this.selectedParticipants).map((key, index) => {
114
+ return (h(Host, { key: 'c3139830070c38c56ef267890b11386a05064eab' }, h("div", { key: '034692665ece4285444af35f4f371202db863284', class: "nylas-participants-custom-availability", part: "npca" }, h("div", { key: 'b111ad5ceece2fb367b021254b3d317a13769ccb', class: "header", part: "npca__header" }, h("h3", { key: '793a8a3d305619e4b1dae28e07e80e82d7a769e2' }, "Availability for participants"), h("p", { key: '0b3959e113ff428445acee4dc9fb9fd745dd9f02' }, "If not set, the general availability on the Availability tab is used.")), h("div", { key: '17e7f1d1c49c10c78f5cc4ae37b7f4aeadff0de5', class: "content", part: "npca__content" }, h("form", { key: '1410f5b95eb5cdea2c1de1fcec9cbd6650ff756b', ref: el => (this.participantFormRef = el) }, Object.keys(this.selectedParticipants).map((key, index) => {
115
115
  const participant = this.selectedParticipants[key];
116
116
  if (!participant || !participant.name || !participant.availability)
117
117
  return;
@@ -183,7 +183,7 @@ const NylasProvider = class {
183
183
  return this.baseProvider?.getStore('schedulerConfig');
184
184
  }
185
185
  render() {
186
- return (h(Host, { key: 'fcd05b5afbb6c7ff63c6cd0908163e1a36bd010d' }, h("slot", { key: 'b8b47c2dba742a503530b9a0080efd5440bcc6b2' })));
186
+ return (h(Host, { key: '096202685aa8b59b7b580a4d63fc3cc2e532800d' }, h("slot", { key: '057859ad2e76096a76398108e0190c561dc83f8e' })));
187
187
  }
188
188
  get host() { return getElement(this); }
189
189
  };
@@ -115,7 +115,7 @@ const NylasReminderEmails = class {
115
115
  }
116
116
  render() {
117
117
  const organizerName = this.participants.find(p => p.is_organizer)?.name;
118
- return (h(Host, { key: '3cfc38ae430db98fc5dee57f870e897b1410d8be' }, h("div", { key: '596e3dfd44c26789b707f4cffec8d764c7de3270', class: "cards-container" }, this.reminders.map((reminder, index) => {
118
+ return (h(Host, { key: '637a94afb7442f23133efa8c3875bf3f9c2454a4' }, h("div", { key: '67cd255242bcd889d5f5b86d63420f13047fba5f', class: "cards-container" }, this.reminders.map((reminder, index) => {
119
119
  return (h("div", { class: "nylas-reminder-email", part: "nre" }, h("div", { class: "header", part: "nre__header" }, h("div", null, h("h3", null, "Upcoming meeting", organizerName ? ` with ${organizerName} ` : ''), h("p", null, "Reminder before event")), this.editingReminderIndex !== index ? (h("button-component", { variant: 'basic', key: `edit-${index} `, clickHandler: event => {
120
120
  event.preventDefault();
121
121
  this.editingReminderIndex = index;
@@ -123,10 +123,10 @@ const NylasReminderEmails = class {
123
123
  event.preventDefault();
124
124
  this.deleteReminder(index);
125
125
  } }, h("trash-icon", { width: "16", height: "16" })))), this.editingReminderIndex === index ? (h("div", { class: "nylas-reminder-email__body", part: "nre__body" }, h("div", { class: "nylas-reminder-email__section" }, h("div", { class: "nylas-reminder-email__row" }, h("label", null, "Send confirmation email when", h("span", { class: "label-icon" }, h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "You and your guests will receive a confirmation immediately after your booking is set up.")))), h("nylas-reminder-time", { name: `reminder-time-${index}`, eventReminderTimeMinutes: reminder.reminder_minutes, exportparts: "nrt, nrt__input_dropdown: nre__reminder-input_dropdown,\n nrt__input_dropdown-input: nre__reminder-input_dropdown-input,\n nrt__input_dropdown-content: nre__reminder-input_dropdown-content,\n " }))))) : (h("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, h("p", null, h("span", { class: "summary-icon" }, h("person-clipboard-icon", null)), "All host & guests"), h("p", null, h("span", { class: "summary-icon" }, h("clock-icon", null)), this.formatReminderTime(reminder.reminder_minutes), " before the event")))));
126
- })), h("button-component", { key: '3dcd4239f36ad43b16edb0e380876d20c5287d74', class: "create-reminder", variant: 'basic', clickHandler: event => {
126
+ })), h("button-component", { key: '22ff7c3ff9abfe8128f5bb6c4f518221b7a23819', class: "create-reminder", variant: 'basic', clickHandler: event => {
127
127
  event.preventDefault();
128
128
  this.addReminder();
129
- } }, h("plus-icon", { key: '1931918cc635f1360fb30cbeb77ef8edac3d6dce', width: "16", height: "16" }), "New reminder")));
129
+ } }, h("plus-icon", { key: 'cda8e18966c5be78391f3d0381e4086dcda17101', width: "16", height: "16" }), "New reminder")));
130
130
  }
131
131
  static get formAssociated() { return true; }
132
132
  get host() { return getElement(this); }
@@ -121,7 +121,7 @@ const NylasReminderTime = class {
121
121
  { value: 60, label: 'hour' },
122
122
  { value: 60 * 24, label: 'day' },
123
123
  ];
124
- return (h(Host, { key: '2ec181327a9701da34f0665da9cbb712e94e96fd' }, h("div", { key: '37df33a4e4954e8351c9057f820e7e0cd6e4209f', class: "nylas-reminder-time", part: "nrt" }, h("div", { key: '99ff7c8b35c89a5c026eb35677ecd8445db03e11', class: "nylas-reminder-time__wrapper" }, h("input-dropdown", { key: '1a8ce26723d9227cd46100127e3cbc7cb5ce11e0', name: 'reminder-time', options: this.reminderTimeMinutesOptions, inputValue: this.reminderTime.toString(), exportparts: "id_dropdown: nrt__input_dropdown, id_dropdown-input: nrt__input_dropdown-input, id_dropdown-content: nrt__input_dropdown-content", defaultInputOption: this.reminderTimeMinutesOptions.find(i => i.value == this.reminderTime) ?? reminderTimeOptions[0] }), h("select-dropdown", { key: 'd6b9b9093cff0939c6f12f3fa2d2b4b5c925a26e', name: 'reminder-time-unit', options: reminderTimeOptions, pluralizedLabel: this.reminderTime > 1 ? 's' : '', exportparts: "sd_dropdown: nrt__dropdown, sd_dropdown-button: nrt__dropdown-button, sd_dropdown-content: nrt__dropdown-content", defaultSelectedOption: reminderTimeOptions.find(i => i.value == this.reminderTimeincrement) ?? reminderTimeOptions[0], withSearch: false })))));
124
+ return (h(Host, { key: 'e0cbb4a650912106a457250692f5c52bd66fdf6c' }, h("div", { key: '68a874e43a5da27f22aa0ab0103c672eae247cc4', class: "nylas-reminder-time", part: "nrt" }, h("div", { key: '086b549b0dd7eea64a773591032e59072273dcd7', class: "nylas-reminder-time__wrapper" }, h("input-dropdown", { key: '8f3a6cc2c3e5ccb90f9c233f9bc60351588e2f9f', name: 'reminder-time', options: this.reminderTimeMinutesOptions, inputValue: this.reminderTime.toString(), exportparts: "id_dropdown: nrt__input_dropdown, id_dropdown-input: nrt__input_dropdown-input, id_dropdown-content: nrt__input_dropdown-content", defaultInputOption: this.reminderTimeMinutesOptions.find(i => i.value == this.reminderTime) ?? reminderTimeOptions[0] }), h("select-dropdown", { key: 'f32e2680baa962af904560d67984d14efc805878', name: 'reminder-time-unit', options: reminderTimeOptions, pluralizedLabel: this.reminderTime > 1 ? 's' : '', exportparts: "sd_dropdown: nrt__dropdown, sd_dropdown-button: nrt__dropdown-button, sd_dropdown-content: nrt__dropdown-content", defaultSelectedOption: reminderTimeOptions.find(i => i.value == this.reminderTimeincrement) ?? reminderTimeOptions[0], withSearch: false })))));
125
125
  }
126
126
  static get formAssociated() { return true; }
127
127
  get host() { return getElement(this); }
@@ -5537,7 +5537,7 @@ const NylasSchedulerEditor = class {
5537
5537
  }
5538
5538
  }
5539
5539
  render() {
5540
- return (h(Host, { key: '843aa39842caf2c85154b6b70120bf7f66d6e13b' }, h("div", { key: 'bb75d22d48ac322be916635dbbb6229b1077db36', class: "scheduler-editor-header", part: "nse__header" }, h("h1", { key: 'ae180ddc9c742c58e91cfeae59c76129f2b8d4b1', class: "scheduler-editor-title", part: "nse__title" }, h("calendar-icon", { key: '6f96e2158cccdddbad611fb64fa5d37795a60ee7', width: "18", height: "18" }), "Scheduler editor"), h("button", { key: 'f24abc88ac228e1b0c05689cbe9b33560d87a7a5', class: "scheduler-editor-close", title: "logout", onClick: e => this.handleSchedulerConfigCloseClicked(e), part: "nse__close-button" }, h("close-icon", { key: '916d5d1c0506995603598e6a56d16586690a509b', width: "18", height: "18" }))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === null && (h("div", { class: "list-configurations" }, h("nylas-list-configurations", null))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'create' && (h("nylas-editor-tabs", { mode: "composable" }, h(ExpressFlow, { currentUser: this.stores?.schedulerConfig?.state.currentUser, calendars: this.stores?.schedulerConfig?.state?.calendars, selectedConfiguration: this.stores?.schedulerConfig?.state?.selectedConfiguration }))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'edit' && (h("nylas-editor-tabs", { mode: this.mode }, this.mode === 'composable' && h("slot", null))), !this.stores?.schedulerConfig?.state.currentUser && (h("slot", { name: "login-required" }, h(LoginRequired, { authenticationUrl: this.authenticationUrl })))));
5540
+ return (h(Host, { key: '692969f53919c6e1ab55a9957431bc49484f0d12' }, h("div", { key: '44a305049e2d179f490e216492f2081b8abc04e6', class: "scheduler-editor-header", part: "nse__header" }, h("h1", { key: '5ade71c3584f02d488a9c9ea3af9ae0c94229bd9', class: "scheduler-editor-title", part: "nse__title" }, h("calendar-icon", { key: '43bc046f201541d828399ada01333510ff979059', width: "18", height: "18" }), "Scheduler editor"), h("button", { key: '372383bd359b161434b3e34cdff7dbec0893225a', class: "scheduler-editor-close", title: "logout", onClick: e => this.handleSchedulerConfigCloseClicked(e), part: "nse__close-button" }, h("close-icon", { key: '935bd1c849164bf6ba4646970942dffe0b6e3262', width: "18", height: "18" }))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === null && (h("div", { class: "list-configurations" }, h("nylas-list-configurations", null))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'create' && (h("nylas-editor-tabs", { mode: "composable" }, h(ExpressFlow, { currentUser: this.stores?.schedulerConfig?.state.currentUser, calendars: this.stores?.schedulerConfig?.state?.calendars, selectedConfiguration: this.stores?.schedulerConfig?.state?.selectedConfiguration }))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'edit' && (h("nylas-editor-tabs", { mode: this.mode }, this.mode === 'composable' && h("slot", null))), !this.stores?.schedulerConfig?.state.currentUser && (h("slot", { name: "login-required" }, h(LoginRequired, { authenticationUrl: this.authenticationUrl })))));
5541
5541
  }
5542
5542
  get host() { return getElement(this); }
5543
5543
  static get watchers() { return {
@@ -370,8 +370,7 @@ const NylasScheduling = class {
370
370
  return (h(Host, null, h(SchedulerView, { nylasBranding: nylasBranding, isLoading: this.isLoading, showNotification: this.showNotification }, rescheduleBookingId && h(MessageBanner, null, `${instance.t('rescheduleTitle')}`), h("div", { class: "select-date-page", part: "select-date-page" }, h("div", { class: "left-panel" }, h("nylas-date-picker", { exportparts: "ndp, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), h("nylas-locale-switch", null)), h("div", { class: "right-panel" }, h("h2", null, h("calendar-icon", null), h("span", { id: "selectedDate" }, this.selectedDateLabel)), h("nylas-timeslot-picker", { exportparts: "ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, timeslotPickerCTALabel && (h("span", { slot: "timeslot-picker-cta-label" }, h("slot", { name: "timeslot-picker-cta-label" })))))))));
371
371
  }
372
372
  if (showDefaultScheduler && !eventInfo && showBookingForm) {
373
- const customTemplateSlot = this.host.querySelector('[slot="custom-booking-form"]');
374
- return (h(Host, null, h(SchedulerView, { nylasBranding: nylasBranding, isLoading: this.isLoading, showNotification: this.showNotification }, rescheduleBookingId && h(MessageBanner, null, `${instance.t('rescheduleTitle')}`), h("div", { class: "additional-data-page", part: "additional-data-page" }, h("div", { class: "left-panel" }, h("div", { class: "wrapper" }, h("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time" }))), h("div", { class: "right-panel" }, h("nylas-booking-form", { exportparts: "nbf, nbf__input-label, nbf__input-textfield, nbf__button-ghost, nbf__button-primary, nbf__button-outline" }, customTemplateSlot && (h("div", { slot: "custom-booking-form" }, h("slot", { name: "custom-booking-form" })))))))));
373
+ return (h(Host, null, h(SchedulerView, { nylasBranding: nylasBranding, isLoading: this.isLoading, showNotification: this.showNotification }, rescheduleBookingId && h(MessageBanner, null, `${instance.t('rescheduleTitle')}`), h("div", { class: "additional-data-page", part: "additional-data-page" }, h("div", { class: "left-panel" }, h("div", { class: "wrapper" }, h("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time" }))), h("div", { class: "right-panel" }, h("nylas-booking-form", { exportparts: "nbf, nbf__input-label, nbf__input-textfield, nbf__button-ghost, nbf__button-primary, nbf__button-outline" }))))));
375
374
  }
376
375
  return (h(Host, null, h("slot", null)));
377
376
  }
@@ -1 +1 @@
1
- {"file":"nylas-scheduling.entry.esm.js","mappings":";;;;;;;;;MAca,uBAAuB;IAQlC,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,SAAS,EAAE,QAAQ,EAAkC;QACvG,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,IAAI,CAAC,mBAAmB,EAAE;YACxB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,IAAI,CAAC,SAAS,IAAI,CAAC,QAAQ,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,4FAA4F,CAAC,CAAC;SAC/G;QAID,IAAI,eAAe,KAAK,GAAG,EAAE;YAC3B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1C,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC;SAC9B;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,mBAAmB,GAAG,mB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0BAAoB,WAAW,EAAC,0GAA0G,IACvI,kBAAkB,KACjB,WAAK,IAAI,EAAC,qBAAqB,IAC7B,YAAM,IAAI,EAAC,qBAAqB,GAAQ,CACpC,CACP,CACkB,CACjB,CACF,CACQ,CACX,EACP;SACH;QAED,QACE,EAAC,IAAI,QACH,eAAQ,CACH,EACP;KACH;;;;;;;;;;;;","names":["i18next","NotificationType"],"sources":["src/connector/nylas-scheduler-connector/index.ts","src/components/scheduler/nylas-scheduling/scheduler-view.tsx","src/components/scheduler/nylas-scheduling/message-banner.tsx","src/components/scheduler/nylas-scheduling/nylas-scheduling.scss?tag=nylas-scheduling&encapsulation=shadow","src/components/scheduler/nylas-scheduling/nylas-scheduling.tsx"],"sourcesContent":["import { NylasSchedulerStoreType } from '@/stores/scheduler-store';\nimport { debug } from '@/utils/utils';\nimport { NylasSchedulerConnectorInterface } from '../connector-interface';\nimport { NylaSchedulerAPIConnector } from '../shared/api/scheduler';\n\ntype NylasSchedulerConnectorOptions = {\n schedulerAPIURL: string;\n nylasSchedulerStore: NylasSchedulerStoreType;\n sessionId?: string;\n configId?: string;\n};\n/**\n * Base class for the Nylas connector.\n */\nexport class NylasSchedulerConnector implements NylasSchedulerConnectorInterface {\n public schedulerAPIURL: string;\n public nylasSchedulerStore: NylasSchedulerStoreType;\n public sessionId: string | undefined;\n public configId: string | undefined;\n\n private _schedulerAPIConnector: NylaSchedulerAPIConnector | undefined;\n\n constructor({ schedulerAPIURL, nylasSchedulerStore, sessionId, configId }: NylasSchedulerConnectorOptions) {\n if (!schedulerAPIURL) {\n throw new Error('schedulerAPIURL is required');\n }\n\n if (!nylasSchedulerStore) {\n throw new Error('nylasSchedulerStore is required');\n }\n\n if (!sessionId && !configId) {\n throw new Error('sessionId is required for private configs, if not config id is required for public configs');\n }\n\n // If the url is only /, then we need to add the base url.\n // We assume that the base url is the same as the current url.\n if (schedulerAPIURL === '/') {\n const url = new URL(window.location.href);\n schedulerAPIURL = url.origin;\n }\n\n this.configId = configId;\n this.sessionId = sessionId;\n this.schedulerAPIURL = schedulerAPIURL;\n this.nylasSchedulerStore = nylasSchedulerStore;\n }\n\n public init() {\n debug('NylasConnector init');\n }\n\n public get schedulerStore() {\n return this.nylasSchedulerStore;\n }\n\n public get scheduler() {\n if (this._schedulerAPIConnector) {\n return this._schedulerAPIConnector;\n }\n this._schedulerAPIConnector = new NylaSchedulerAPIConnector({\n schedulerAPIURL: this.schedulerAPIURL,\n schedulerStore: this.schedulerStore,\n sessionId: this.sessionId,\n configId: this.configId,\n });\n return this._schedulerAPIConnector;\n }\n\n public resetStores() {\n this.nylasSchedulerStore.reset();\n }\n}\nexport type PublicMethods<T> = {\n [K in keyof T]: T[K] extends Function ? (string extends K ? never : K) : never;\n}[keyof T];\n\nexport type NylasSchedulerConnectorPublicMethods = PublicMethods<NylasSchedulerConnector>;\n","import { Fragment, FunctionalComponent, h } from '@stencil/core';\n\nexport type SchedulerViewProps = {\n isLoading?: boolean;\n showNotification?: boolean;\n nylasBranding?: boolean;\n};\n\n/**\n * The Scheduler view component.\n */\nexport const SchedulerView: FunctionalComponent<SchedulerViewProps> = (props: SchedulerViewProps, children) => {\n const isLoading = props.isLoading;\n const showNotification = props.showNotification;\n const nylasBranding = props.nylasBranding;\n\n return (\n <Fragment>\n {showNotification && <nylas-notification></nylas-notification>}\n\n {isLoading && (\n <div class={'loading'}>\n <div class={'left'}>\n <div class={'skeleton'} />\n </div>\n <div class={'right'}>\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n </div>\n </div>\n )}\n {!isLoading && children}\n <div class={'footer'}>\n {nylasBranding && (\n <Fragment>\n Powered by&nbsp;\n <nylas-logo />\n </Fragment>\n )}\n </div>\n </Fragment>\n );\n};\n","import { FunctionalComponent, h } from '@stencil/core';\n\nexport type HeaderBannerProps = {};\n\nexport const MessageBanner: FunctionalComponent<HeaderBannerProps> = (_props: HeaderBannerProps, children) => <div class=\"message-banner\">{children}</div>;\n","@import '../../../common/styles/variables.scss';\n\n:host {\n display: flex;\n flex-direction: column;\n overflow: visible;\n border-radius: var(--nylas-border-radius-2x);\n width: fit-content;\n\n @media #{$mobile} {\n width: auto;\n min-width: 325px;\n }\n\n background: var(--nylas-base-0);\n position: relative;\n box-shadow:\n 0px 4px 6px -2px rgba(0, 0, 0, 0.05),\n 0px 10px 15px -3px rgba(0, 0, 0, 0.1);\n @include default-css-variables;\n font-family: var(--nylas-font-family);\n font-optical-sizing: auto;\n font-style: normal;\n font-variation-settings: 'slnt' 0;\n}\n\n:root {\n font-family: inherit;\n}\n\n.error {\n padding: 8rem 12rem;\n color: var(--nylas-base-0);\n background-color: var(--nylas-error);\n margin: 1.5rem;\n border-radius: var(--nylas-border-radius-2x);\n}\n\n.message-banner {\n text-align: right;\n color: var(--nylas-base-800);\n padding: 1rem;\n border-bottom: 1px solid var(--nylas-color-primary-200);\n margin-top: 1rem;\n}\n\n.loading {\n margin: 1.5rem;\n display: flex;\n gap: 1rem;\n\n .skeleton {\n border-radius: var(--nylas-border-radius-2x);\n animation: pulsate 1.5s infinite;\n\n &:nth-child(2) {\n animation-delay: -100ms;\n }\n\n &:nth-child(3) {\n animation-delay: -200ms;\n }\n\n &:nth-child(4) {\n animation-delay: -300ms;\n }\n\n &:nth-child(5) {\n animation-delay: -400ms;\n }\n }\n\n .left .skeleton {\n height: 100%;\n width: 400px;\n }\n\n .right .skeleton {\n height: 5rem;\n width: 300px;\n margin-bottom: 1rem;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n}\n\n@keyframes pulsate {\n 0% {\n background-color: var(--nylas-base-50);\n }\n\n 50% {\n background-color: var(--nylas-base-100);\n }\n\n 100% {\n background-color: var(--nylas-base-50);\n }\n}\n\n.select-date-page,\n.additional-data-page,\n.booked-event-page,\n.cancelled-event-page,\n.cancel-flow-page {\n border-top-left-radius: var(--nylas-border-radius-2x);\n border-top-right-radius: var(--nylas-border-radius-2x);\n}\n\n.select-date-page,\n.additional-data-page {\n display: flex;\n\n @media #{$mobile} {\n flex-direction: column;\n }\n}\n\n.booked-event-page {\n background-color: var(--nylas-base-50);\n}\n\n.cancelled-event-page,\n.cancel-flow-page {\n padding: 1rem;\n height: 496px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.booked-event-page,\n.cancelled-event-page,\n.cancel-flow-page {\n min-width: 784px;\n\n @media #{$mobile} {\n min-width: 90%;\n }\n\n background: var(--nylas-base-50);\n}\n\n.left-panel {\n display: flex;\n flex-direction: column;\n min-width: 424px;\n border-top-left-radius: inherit;\n background: var(--nylas-base-0);\n position: relative;\n padding: 1rem 0 0 0;\n height: 624px;\n\n @media #{$mobile} {\n border-top-right-radius: inherit;\n min-width: unset;\n height: auto;\n }\n}\n\n.select-date-page .left-panel {\n @media #{$mobile} {\n padding: 0.5rem 4px 0;\n height: 624px;\n }\n}\n\n.border {\n margin-left: -20px; // Offset left padding\n margin-right: -20px; // Offset right padding\n border-top-width: 1px;\n height: 0.5px;\n background-color: var(--nylas-base-200);\n\n @media #{$mobile} {\n display: none;\n }\n}\n\n.right-panel {\n min-width: 360px;\n width: 360px;\n background-color: var(--nylas-base-50);\n height: 624px;\n padding-top: 16px;\n border-left: 1px solid var(--nylas-base-200);\n border-top-right-radius: inherit;\n\n @media #{$mobile} {\n border-top-right-radius: 0px;\n width: inherit;\n min-width: unset;\n height: auto;\n }\n\n h2 {\n display: flex;\n margin: 0;\n height: 48px;\n gap: 0.5rem;\n justify-content: center;\n align-items: center;\n width: auto;\n font-size: 1.125rem;\n line-height: 1.5rem;\n font-weight: 500;\n text-align: center;\n color: var(--nylas-base-800);\n }\n}\n\n.additional-data-page {\n .left-panel {\n background-color: var(--nylas-base-50);\n }\n\n .right-panel {\n background-color: var(--nylas-base-0);\n }\n}\n\nnylas-selected-event-card {\n height: calc(640px - 36px);\n padding: 0 1rem;\n\n @media #{$mobile} {\n height: 250px;\n }\n}\n\n.footer {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px;\n font-size: 14px;\n font-weight: 300;\n color: var(--nylas-base-500);\n border-top: 1px solid var(--nylas-base-200);\n min-height: 24px;\n\n svg {\n fill: var(--nylas-base-500);\n }\n}\n\n.footer svg {\n margin-top: 1px;\n}\n\nnylas-selected-event-card::part(nsec__timezone) {\n position: absolute;\n bottom: 0;\n}\n\nnylas-notification {\n margin: 1.5rem;\n width: -webkit-fill-available;\n width: -moz-available;\n position: absolute;\n}\n\nnylas-locale-switch {\n position: absolute;\n padding: 18px 20px;\n bottom: 0;\n width: -webkit-fill-available;\n width: -moz-available;\n border-top: 1px solid var(--nylas-base-200);\n\n @media #{$mobile} {\n height: auto;\n }\n}\n\nnylas-date-picker {\n padding: 0 20px;\n}\n","import { NylasBaseProvider } from '@/common/abstract-provider';\nimport { RegisteredComponent } from '@/common/register-component';\nimport type { SchedulerEventOverride } from '@/common/component-types';\nimport { NylasSchedulerConnector } from '@/connector/nylas-scheduler-connector';\nimport { CreateNylasSchedulerStore, NylasSchedulerStoreState, NylasSchedulerStoreType } from '@/stores/scheduler-store';\nimport { NylasSchedulerBookingData, ThemeConfig, Notification, NotificationType, NylasSchedulerErrorResponse, Timeslot } from '@nylas/core';\nimport { Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h } from '@stencil/core';\nimport { addDaysToCurrentDate, capitalizeFirstLetter, compactStringToUUIDs, debug } from '@/utils/utils';\nimport { SchedulerView } from './scheduler-view';\nimport { ErrorCategory } from '@/connector/nylas-scheduler-connector/errors';\nimport { MessageBanner } from './message-banner';\nimport i18next from '@/utils/i18n';\nimport { LANGUAGE_CODE_MAP } from '@/common/constants';\n\nconst genericError = { title: i18next.t('genericErrorTitle'), type: NotificationType.Error, category: ErrorCategory.Component };\n\n/**\n * The `nylas-scheduling` component is used to display the Nylas Scheduling UI.\n *\n * @slot custom-booking-form - This slot is used to pass a custom booking form to the Nylas Scheduling component.\n * @slot timeslot-picker-cta-label - This slot is used to pass a custom label to the timeslot picker CTA. The default label is \"Next\".\n *\n * @part ndp - [nylas-date-picker] The date picker host.\n * @part ndp__month-header - [nylas-date-picker] The month header.\n * @part ndp__month-button - [nylas-date-picker] The month button.\n * @part ndp__day - [nylas-date-picker] The day.\n * @part ndp__date - [nylas-date-picker] The date.\n * @part ndp__date--selected - [nylas-date-picker] The selected date.\n * @part ndp__date--current-day - [nylas-date-picker] The current day.\n * @part ndp__date--current-month - [nylas-date-picker] The dates in the current month.\n * @part ntp - [nylas-timeslot-picker] The timeslot picker component.\n * @part ntp__timeslot - [nylas-timeslot-picker] The timeslot button.\n * @part ntp__timeslot--selected - [nylas-timeslot-picker] The selected timeslot button.\n * @part ntp__button-primary - [nylas-timeslot-picker] The timeslot picker CTA.\n * @part nsec - [nylas-selected-event-card] The selected event card component.\n * @part nsec__card - [nylas-selected-event-card] The card component.\n * @part nsec__icon - [nylas-selected-event-card] The calendar icon.\n * @part nsec__date - [nylas-selected-event-card] The date selected.\n * @part nsec__time - [nylas-selected-event-card] The timeslot selected.\n * @part nbf - [nylas-booking-form] The booking form host.\n * @part nbf__input-label - [nylas-booking-form] The input label.\n * @part nbf__input-textfield - [nylas-booking-form] The input textfield.\n * @part nbf__button-ghost - [nylas-booking-form] The ghost button for adding guests.\n * @part nbf__button-primary - [nylas-booking-form] The primary button for booking.\n * @part nbf__button-outline - [nylas-booking-form] The outline button for canceling.\n * @part ncec - [nylas-cancelled-event-card] The cancelled event card host.\n * @part ncec__icon - [nylas-cancelled-event-card] The calendar icon.\n * @part ncec__title - [nylas-cancelled-event-card] The title of the cancelled event card.\n * @part ncec__description - [nylas-cancelled-event-card] The description of the cancelled event card.\n * @part ncec__button-outline - [nylas-cancelled-event-card] The close button CTA.\n * @part ncec__card - [nylas-cancelled-event-card] The cancelled event card.\n * @part nbec - [nylas-booked-event-card] The booked event card host.\n * @part nbec__card - [nylas-booked-event-card] The booked event card.\n * @part nbec__title - [nylas-booked-event-card] The title of the booked event card.\n * @part nbec__description - [nylas-booked-event-card] The description of the booked event card.\n * @part nbec__button-outline - [nylas-booked-event-card] The cancel & reschedule button CTA.\n * @part nbec__cancel-cta - [nylas-booked-event-card] The cancel button CTA.\n * @part nbec__reschedule-cta - [nylas-booked-event-card] The reschedule button CTA.\n */\n@Component({\n tag: 'nylas-scheduling',\n styleUrl: 'nylas-scheduling.scss',\n shadow: true,\n})\nexport class NylasScheduling {\n /**\n * Stores to be used by the provider.\n */\n private stores?: { scheduler: NylasSchedulerStoreType };\n\n /**\n * This is a base provide that defines the common methods and properties\n * that all providers should have.\n *\n * Because stencil does not support abstract classes, we have to use a\n * property to store the base provider instance.\n */\n private baseProvider?: NylasBaseProvider<Exclude<typeof this.stores, undefined>>;\n\n /**\n * The Nylas Scheduler Connector instance.\n * The branins of the provider. It manages data fetching and state synchronization.\n */\n private nylasSchedulerConnector?: NylasSchedulerConnector;\n\n /**\n * The host element.\n * Used to manage the host element of the provider.\n */\n @Element() private host!: HTMLNylasSchedulingElement;\n\n /**\n * This is used to set the mode for the Nylas Scheduler.\n * The mode can be either `app` or `composable`. The default mode is `app`.\n * - `app`: This mode is used to show the default Nylas Scheduler UI.\n * - `composable`: This mode is used to show the composable Nylas Scheduler UI\n * by passing the individual scheduler components as children.\n */\n @Prop() readonly mode: 'app' | 'composable' = 'app';\n\n /**\n * The default scheduler store state.\n * Used to set the initial state of the scheduler store.\n */\n @Prop({ attribute: 'default-scheduler-store-state' }) readonly defaultSchedulerState?: Partial<NylasSchedulerStoreState>;\n\n /**\n * The session ID for the Nylas Scheduler.\n * This is used to authenticate the user.\n */\n @Prop() readonly sessionId?: string;\n\n /**\n * The URL for the Nylas Scheduler API. (staging or production URL)\n */\n @Prop() readonly schedulerApiUrl: string = 'https://api.us.nylas.com';\n\n /**\n * This enables passing the bookingInfo object to the Scheduler UI for direct booking event creation.\n * When used with timeslotConfirmedHandler, it bypasses the additional data page and immediately\n * invokes the handler after booking.\n */\n @Prop() readonly bookingInfo?: NylasSchedulerBookingData;\n\n /**\n * Booking Ref required for rescheduling flow.\n */\n @Prop() readonly rescheduleBookingRef?: string;\n\n /**\n * Booking Ref required for cancelling flow.\n */\n @Prop() readonly cancelBookingRef?: string;\n\n /**\n * The config ID for the Nylas Scheduler. This should be passed in when using a public config,\n * in which case the sessionId is not required.\n */\n @Prop() readonly configurationId?: string;\n\n /**\n * This prop lets you hide the Nylas branding.\n * Default is true.\n */\n @Prop() readonly nylasBranding?: boolean = true;\n\n /**\n * This provides an easy way to override the default function of the event emitter.\n * An example of this is the `timeslotConfirmed` event. By default, this event will set the scheduler store state for `showBookingForm` to `true` which will\n * show the booking form. However, if you want to override this behavior, you can pass in the prop `eventOverride` like:\n * ```html\n * <nylas-scheduling eventOverride={{\"timeslotConfirmed\": (event, nylasConnector) => { console.log(\"Timeslot confirmed event fired!\"); } }} />\n * ```\n */\n @Prop({ attribute: 'event-overrides' }) readonly eventOverrides: SchedulerEventOverride = {};\n\n /**\n * The loading state. This is used to set the loading state for the Nylas Scheduler when fetching data.\n */\n @Prop() readonly isLoading?: boolean;\n\n /**\n * Theme config, used to automatically generate a theme with color palette and\n * CSS variables to customize the look and feel of the Nylas Scheduler.\n */\n @Prop() readonly themeConfig?: ThemeConfig;\n\n /*\n * Displays notifications for errors by default. When enabled (`true`), errors\n * automatically appear as notifications. Disabling this feature (`false`) allows\n * the parent application to capture and manage errors by listening to the\n * `nylasSchedulerError` event, providing flexibility in error handling.\n */\n @Prop() readonly showNotification?: boolean = true;\n\n /**\n * Automatically register components that have the `@RegisterComponent` decorator.\n * If this is set to false, you will need to manually register components using the\n * `registerComponent` method.\n * @default true\n */\n @State() automaticComponentRegistration: boolean = true;\n\n /**\n * The selected date label for the Nylas Scheduler.\n * This is used to set the initial date label for the Nylas Scheduler.\n */\n @State() selectedDateLabel: string = new Date().toLocaleDateString(undefined, { dateStyle: 'full' }) || `${i18next.t('noDateSelected')}`;\n\n /**\n * The config id extracted from the rescheduleBookingRef or cancelBookingRef.\n */\n @State() refConfigId?: string;\n\n /**\n * The selected language for the Nylas Scheduler.\n */\n @State() language: string = navigator.language;\n\n /**\n * This event is fired when the provider is initialized.\n * It can be used to set the initial state of the provider,\n * or to prevent the provider from firing some default behavior.\n */\n @Event({ cancelable: true }) init!: EventEmitter<HTMLNylasSchedulingElement>;\n\n /**\n * This event is fired when the scheduler component enters componentWillLoad lifecycle.\n */\n @Event() schedulerWillLoad!: EventEmitter<HTMLNylasSchedulingElement>;\n\n /**\n * This event is fired when the scheduler component enters componentDidLoad lifecycle.\n */\n @Event() schedulerDidLoad!: EventEmitter<HTMLNylasSchedulingElement>;\n\n @Event({\n eventName: 'nylasSchedulerError',\n })\n nylasSchedulerError!: EventEmitter<{ notification: Notification; host: HTMLElement }>;\n\n /**\n * This event is triggered if either the rescheduleBookingRef or cancelBookingRef prop\n * is supplied and the component has been attached to the DOM. It emits the configurationId\n * and bookingId derived from the rescheduleBookingRef or cancelBookingRef. Subscribe to this\n * event to obtain the extracted configurationId, which is necessary to generate the sessionID\n * for configurations that are not public.\n */\n @Event() bookingRefExtracted!: EventEmitter<{ configurationId: string; bookingId: string }>;\n\n /**\n * This function is called when the component is connected to the DOM.\n * At this point in the component lifecycle, the base provider has not yet\n * been initialized. So avoid using the base provider in this method or stores\n * in this method.\n */\n connectedCallback() {\n debug(`[nylas-scheduler] connectedCallback`);\n }\n\n async componentWillLoad() {\n debug(`[nylas-scheduler] Component will load`);\n\n // Emit the schedulerWillLoad event to allow the parent application to set the initial\n // state of the provider or to prevent the provider from firing some default behavior.\n const schedulerWillLoadEvent = this.schedulerWillLoad.emit(this.host);\n if (schedulerWillLoadEvent.defaultPrevented) {\n return;\n }\n\n this.stores = {\n scheduler: CreateNylasSchedulerStore({\n bookingInfo: this.bookingInfo,\n nylasBranding: this.nylasBranding,\n ...this.defaultSchedulerState,\n }),\n };\n\n this.baseProvider = new NylasBaseProvider(this.host, this.stores, this.automaticComponentRegistration, this.eventOverrides);\n\n // Set the configId to the reschedule configId if rescheduleBookingRef is provided or\n // Set the configId to the cancel configId if cancelBookingRef is provided\n this.refConfigId = this.configurationId;\n if (this.rescheduleBookingRef) {\n const [rescheduleConfigId, rescheduleBookingId] = compactStringToUUIDs(this.rescheduleBookingRef);\n this.refConfigId = rescheduleConfigId;\n this.stores.scheduler.set('rescheduleBookingId', rescheduleBookingId);\n this.bookingRefExtracted.emit({ configurationId: rescheduleConfigId, bookingId: rescheduleBookingId });\n } else if (this.cancelBookingRef) {\n const [cancelConfigId, cancelBookingId] = compactStringToUUIDs(this.cancelBookingRef);\n this.refConfigId = cancelConfigId;\n this.stores.scheduler.set('cancelBookingId', cancelBookingId);\n this.bookingRefExtracted.emit({ configurationId: cancelConfigId, bookingId: cancelBookingId });\n }\n\n if (!this.checkIfSessionIdOrConfigIdExists()) {\n return;\n }\n\n const nylasSchedulerStore = this.baseProvider?.getStore('scheduler');\n this.nylasSchedulerConnector = new NylasSchedulerConnector({\n schedulerAPIURL: this.schedulerApiUrl,\n sessionId: this.sessionId,\n configId: this.refConfigId,\n nylasSchedulerStore,\n });\n this.init.emit(this.host);\n\n this.baseProvider?.componentWillLoad(this.nylasSchedulerConnector);\n // Override theme\n if (this.themeConfig) {\n for (const [key, value] of Object.entries(this.themeConfig)) {\n this.host.style.setProperty(`${key}`, value);\n }\n }\n }\n\n async componentDidLoad() {\n this.baseProvider?.componentDidLoad();\n\n // If sessionId is not provided, do not fetch availability\n if (!this.checkIfSessionIdOrConfigIdExists()) {\n return;\n }\n\n const settings = await this.nylasSchedulerConnector?.scheduler.getUISettings();\n if (!settings || 'error' in settings) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(settings?.error) }, host: this.host });\n }\n\n const nylasSchedulerStore = this.baseProvider?.getStore('scheduler');\n const availableDaysInFuture = nylasSchedulerStore?.get('configSettings')?.scheduler?.available_days_in_future;\n const selectedTimeslot = nylasSchedulerStore?.get('selectedTimeslot');\n\n if (selectedTimeslot && selectedTimeslot?.start_time) {\n if (!this.isTimeslotValid(selectedTimeslot)) {\n return;\n }\n\n // If the selected timeslot is already set, do not fetch availability\n if (nylasSchedulerStore?.get('showBookingForm')) {\n nylasSchedulerStore?.set('selectedDate', selectedTimeslot.start_time);\n return;\n }\n }\n\n const selectedDate = nylasSchedulerStore?.get('selectedDate');\n const availability = nylasSchedulerStore?.get('availability');\n let result;\n\n if (availability && availability.length > 0) {\n return;\n }\n\n if (!selectedDate) {\n const today = new Date();\n const { startTime, endTime, endTimeForAvailableDaysInFuture } = this.validateAvailableDaysInFuture(today, availableDaysInFuture || 30);\n if (today.getTime() < endTimeForAvailableDaysInFuture * 1000) {\n result = await this.nylasSchedulerConnector?.scheduler.getAvailability(startTime, endTime);\n }\n } else {\n const { startTime, endTime, endTimeForAvailableDaysInFuture } = this.validateAvailableDaysInFuture(selectedDate, availableDaysInFuture || 30);\n if (selectedDate.getTime() < endTimeForAvailableDaysInFuture * 1000) {\n result = await this.nylasSchedulerConnector?.scheduler.getAvailability(startTime, endTime);\n }\n }\n\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n\n if (!selectedDate) {\n let _selectedDate = new Date();\n const firstAvailableDate = nylasSchedulerStore?.get('availability').find((timeslot: any) => new Date(timeslot.start_time) > new Date());\n if (firstAvailableDate) {\n _selectedDate = firstAvailableDate.start_time;\n }\n nylasSchedulerStore?.set('selectedDate', _selectedDate);\n }\n }\n\n componentDisconnected() {\n this.baseProvider?.componentDisconnected();\n }\n\n @Watch('bookingInfo')\n bookingInfoChanged(newVal?: NylasSchedulerBookingData) {\n this.stores?.scheduler.set('bookingInfo', newVal);\n }\n\n @Watch('rescheduleBookingRef')\n rescheduleBookingRefChanged(newVal?: string) {\n if (newVal) {\n const [configId, bookingId] = compactStringToUUIDs(newVal);\n this.stores?.scheduler.set('rescheduleBookingId', bookingId);\n this.refConfigId = configId;\n this.nylasSchedulerConnector?.scheduler.setConfigId(configId);\n }\n }\n\n @Watch('cancelBookingRef')\n cancelBookingRefChanged(newVal?: string) {\n if (newVal) {\n const [configId, bookingId] = compactStringToUUIDs(newVal);\n this.stores?.scheduler.set('cancelBookingId', bookingId);\n this.refConfigId = configId;\n this.nylasSchedulerConnector?.scheduler.setConfigId(configId);\n }\n }\n\n @Listen('languageChanged')\n languageChanged(event: CustomEvent<string>) {\n const newLanguage = event.detail;\n this.language = newLanguage;\n i18next.changeLanguage(newLanguage);\n }\n\n /**\n * This is a custom event handler that is used to register a component with the provider.\n * It is used by components that have the `@RegisterComponent` decorator.\n * @param event A custom event that contains the component to register\n * @returns Promise<void>\n */\n @Listen('registerComponent')\n async registerComponentHandler(event: CustomEvent<RegisteredComponent<any, any>>): Promise<void> {\n this.baseProvider?.registerComponent(event.detail);\n }\n\n /**\n * This is a custom event handler that is used to unregister a component with the provider.\n * It is used by components that have the `@RegisterComponent` decorator.\n * @param event A custom event that contains the component to unregister\n * @returns Promise<void>\n */\n @Listen('unregisterComponent')\n async unregisterComponentHandler(event: CustomEvent<RegisteredComponent<any, any>>): Promise<void> {\n this.baseProvider?.unregisterComponent(event.detail);\n }\n\n /**\n * This is a custom event handler that is used to refetch the availability when the month is changed.\n */\n @Listen('monthChanged')\n async monthChangedHandler(event: CustomEvent<Date>) {\n const date = event.detail;\n const availableDaysInFuture = this.nylasSchedulerConnector?.schedulerStore?.get('configSettings')?.scheduler?.available_days_in_future;\n const { startTime, endTime, endTimeForAvailableDaysInFuture } = this.validateAvailableDaysInFuture(date, availableDaysInFuture || 30);\n\n if (startTime < endTimeForAvailableDaysInFuture && date.getTime() < endTimeForAvailableDaysInFuture * 1000) {\n const result = await this.nylasSchedulerConnector?.scheduler.getAvailability(startTime, endTime);\n\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n const selectableDates = this.stores?.scheduler.get('selectableDates');\n if (selectableDates && selectableDates.length > 0) {\n this.stores?.scheduler.set('selectedDate', selectableDates[0]);\n }\n }\n }\n\n /**\n * This is a custom event handler to book an event.\n */\n @Listen('detailsConfirmed')\n async bookButtonClickedHandler(event: CustomEvent<NylasSchedulerBookingData>) {\n const storeRescheduleId = this.nylasSchedulerConnector?.schedulerStore?.get('rescheduleBookingId');\n const rescheduleBookingId = storeRescheduleId;\n if (rescheduleBookingId) {\n const result = await this.nylasSchedulerConnector?.scheduler.rescheduleBooking(rescheduleBookingId, event.detail);\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n return;\n }\n const result = await this.nylasSchedulerConnector?.scheduler.bookTimeslot(event.detail);\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n }\n\n /**\n * This is a custom event handler to update the selected date label.\n */\n @Listen('dateSelected')\n dateSelectedHandler(event: CustomEvent<Date>) {\n const date = event.detail;\n this.selectedDateLabel = date ? date.toLocaleDateString(undefined, { dateStyle: 'full' }) : `${i18next.t('noDateSelected')}`;\n }\n\n /**\n * This is an event handler to handle the error (if any) when the\n * cancel booking button is clicked on the cancel booking form.\n */\n @Listen('cancelBookedEventError')\n cancelBookedEventErrorHandler(event: CustomEvent<NylasSchedulerErrorResponse>) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(event.detail.error) }, host: this.host });\n }\n\n @Listen('cancelBookedEventValidationError')\n cancelBookedEventValidationErrorHandler(event: CustomEvent<NylasSchedulerErrorResponse>) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(event.detail.error) }, host: this.host });\n }\n\n /**\n * This is an event handler to handle the error (if any) when the\n * reschedule button is clicked on the booked event card.\n */\n @Listen('rescheduleBookedEventError')\n rescheduleBookedEventErrorHandler(event: CustomEvent<NylasSchedulerErrorResponse>) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(event.detail.error) }, host: this.host });\n }\n\n /**\n * This method is used to retrieve the NylasScheduler instance\n * @returns The NylasScheduler instance\n */\n @Method()\n async getNylasSchedulerStore(): Promise<NylasSchedulerStoreType | undefined> {\n return this.baseProvider?.getStore('scheduler');\n }\n\n /**\n * This method is used to retrieve the NylasConnector instance\n * @returns The NylasConnector instance\n */\n @Method()\n async getNylasSchedulerConnector() {\n return this.nylasSchedulerConnector;\n }\n\n @Method()\n async getRef() {\n return this.host;\n }\n\n private getErrorObject(error: NylasSchedulerErrorResponse['error']): Notification {\n return {\n title: error?.title || genericError.title,\n category: error?.category || genericError.category,\n type: NotificationType.Error,\n description: error?.message || '',\n id: new Date().getTime().toString(),\n ttl: 'none',\n };\n }\n\n private checkIfSessionIdOrConfigIdExists(): boolean {\n if (!this.sessionId && !this.refConfigId) {\n this.nylasSchedulerError.emit({\n notification: {\n title: i18next.t('noSessionIdErrorTitle'),\n category: ErrorCategory.Component,\n type: NotificationType.Error,\n description: i18next.t('noSessionIdErrorMessage'),\n id: new Date().getTime().toString(),\n ttl: 'none',\n },\n host: this.host,\n });\n return false;\n }\n return true;\n }\n\n private isTimeslotValid(timeslot: Timeslot): boolean {\n const selectedDate = new Date(timeslot.start_time);\n if (selectedDate < new Date()) {\n this.nylasSchedulerError.emit({\n notification: {\n title: i18next.t('invalidTimeslotErrorTitle'),\n category: ErrorCategory.Component,\n type: NotificationType.Error,\n description: i18next.t('invalidTimeslotErrorMessage'),\n id: new Date().getTime().toString(),\n ttl: 'none',\n },\n host: this.host,\n });\n return false;\n }\n return true;\n }\n\n private validateAvailableDaysInFuture(\n startDate: Date,\n availableDaysInFuture: number,\n ): {\n startTime: number;\n endTime: number;\n endTimeForAvailableDaysInFuture: number;\n } {\n const today = new Date();\n const startTime = new Date(startDate.getFullYear(), startDate.getMonth(), 1).getTime() / 1000;\n const endTimeForCurrentMonth = new Date(startDate.getFullYear(), startDate.getMonth() + 1, 1).getTime() / 1000;\n const endTimeForAvailableDaysInFuture = Math.floor(addDaysToCurrentDate(today, availableDaysInFuture).getTime() / 1000);\n const endTime = Math.min(endTimeForAvailableDaysInFuture, endTimeForCurrentMonth);\n const startTimeWithOffset = startTime < today.getTime() / 1000 ? Math.floor(today.getTime() / 1000) : startTime;\n return { startTime: startTimeWithOffset, endTime, endTimeForAvailableDaysInFuture };\n }\n\n render() {\n const showDefaultScheduler = this.mode === 'app';\n const nylasSchedulerStore = this.baseProvider?.getStore('scheduler');\n const eventInfo = nylasSchedulerStore?.get('eventInfo');\n const showBookingForm = nylasSchedulerStore?.get('showBookingForm');\n const cancelledEventInfo = nylasSchedulerStore?.get('cancelledEventInfo');\n const cancelBookingId = nylasSchedulerStore?.get('cancelBookingId');\n const selectedTimeslot = nylasSchedulerStore?.get('selectedTimeslot') as Timeslot;\n const rescheduleBookingId = nylasSchedulerStore?.get('rescheduleBookingId');\n const nylasBranding = nylasSchedulerStore?.get('nylasBranding') || this.nylasBranding;\n const selectedDate = nylasSchedulerStore?.get('selectedDate');\n this.selectedDateLabel =\n selectedDate && this.language\n ? capitalizeFirstLetter(selectedDate.toLocaleDateString(LANGUAGE_CODE_MAP[this.language], { dateStyle: 'full' }))\n : `${i18next.t('noDateSelected')}`;\n\n if (showDefaultScheduler && cancelBookingId && !cancelledEventInfo) {\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n <div class=\"cancel-flow-page\" part=\"cancel-flow-page\">\n <nylas-cancel-booking-form\n selectedTimeslot={selectedTimeslot}\n cancelBookingId={cancelBookingId}\n exportparts=\"ncbf, ncbf__input-textfield, ncbf__button-cta, ncbf__button-outline, ncbf__input-label\"\n />\n </div>\n </SchedulerView>\n </Host>\n );\n }\n\n // Cancelled event card is shown when the event is cancelled\n if (showDefaultScheduler && cancelledEventInfo) {\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n <div class=\"cancelled-event-page\" part=\"cancelled-event-page\">\n <nylas-cancelled-event-card\n cancelledEventInfo={cancelledEventInfo}\n exportparts=\"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card\"\n />\n </div>\n </SchedulerView>\n </Host>\n );\n }\n // Booked event card is shown when the event is booked\n if (showDefaultScheduler && eventInfo) {\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n <div class=\"booked-event-page\" part=\"booked-event-page\">\n <nylas-booked-event-card\n selectedTimeslot={selectedTimeslot}\n eventInfo={eventInfo}\n exportparts=\"nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta\"\n />\n </div>\n </SchedulerView>\n </Host>\n );\n }\n // Date and time picker is shown when the event is not booked and no additional data is shown\n if (showDefaultScheduler && (!eventInfo || !!rescheduleBookingId) && !showBookingForm) {\n const timeslotPickerCTALabel = this.host.querySelector('[slot=\"timeslot-picker-cta-label\"]');\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n {rescheduleBookingId && <MessageBanner>{`${i18next.t('rescheduleTitle')}`}</MessageBanner>}\n <div class=\"select-date-page\" part=\"select-date-page\">\n <div class=\"left-panel\">\n <nylas-date-picker exportparts=\"ndp, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--selected, ndp__date--current-day, ndp__date--current-month\"></nylas-date-picker>\n <nylas-locale-switch></nylas-locale-switch>\n </div>\n <div class=\"right-panel\">\n <h2>\n <calendar-icon></calendar-icon>\n <span id=\"selectedDate\">{this.selectedDateLabel}</span>\n </h2>\n <nylas-timeslot-picker exportparts=\"ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary\">\n {timeslotPickerCTALabel && (\n <span slot=\"timeslot-picker-cta-label\">\n <slot name=\"timeslot-picker-cta-label\"></slot>\n </span>\n )}\n </nylas-timeslot-picker>\n </div>\n </div>\n </SchedulerView>\n </Host>\n );\n }\n // Additional data is shown when the time is selected, event is not booked and additional data is shown\n if (showDefaultScheduler && !eventInfo && showBookingForm) {\n // Check if a \"custom-booking-form\" slot is provided\n const customTemplateSlot = this.host.querySelector('[slot=\"custom-booking-form\"]');\n\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n {rescheduleBookingId && <MessageBanner>{`${i18next.t('rescheduleTitle')}`}</MessageBanner>}\n <div class=\"additional-data-page\" part=\"additional-data-page\">\n <div class=\"left-panel\">\n <div class=\"wrapper\">\n <nylas-selected-event-card exportparts=\"nsec, nsec__card, nsec__icon, nsec__date, nsec__time\"></nylas-selected-event-card>\n </div>\n </div>\n <div class=\"right-panel\">\n <nylas-booking-form exportparts=\"nbf, nbf__input-label, nbf__input-textfield, nbf__button-ghost, nbf__button-primary, nbf__button-outline\">\n {customTemplateSlot && (\n <div slot=\"custom-booking-form\">\n <slot name=\"custom-booking-form\"></slot>\n </div>\n )}\n </nylas-booking-form>\n </div>\n </div>\n </SchedulerView>\n </Host>\n );\n }\n\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"nylas-scheduling.entry.esm.js","mappings":";;;;;;;;;MAca,uBAAuB;IAQlC,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,SAAS,EAAE,QAAQ,EAAkC;QACvG,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,IAAI,CAAC,mBAAmB,EAAE;YACxB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,IAAI,CAAC,SAAS,IAAI,CAAC,QAAQ,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,4FAA4F,CAAC,CAAC;SAC/G;QAID,IAAI,eAAe,KAAK,GAAG,EAAE;YAC3B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1C,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC;SAC9B;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAA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,KAAK,EAAC,aAAa,IACtB,0BAAoB,WAAW,EAAC,0GAA0G,GAAsB,CAC5J,CACF,CACQ,CACX,EACP;SACH;QAED,QACE,EAAC,IAAI,QACH,eAAQ,CACH,EACP;KACH;;;;;;;;;;;;","names":["i18next","NotificationType"],"sources":["src/connector/nylas-scheduler-connector/index.ts","src/components/scheduler/nylas-scheduling/scheduler-view.tsx","src/components/scheduler/nylas-scheduling/message-banner.tsx","src/components/scheduler/nylas-scheduling/nylas-scheduling.scss?tag=nylas-scheduling&encapsulation=shadow","src/components/scheduler/nylas-scheduling/nylas-scheduling.tsx"],"sourcesContent":["import { NylasSchedulerStoreType } from '@/stores/scheduler-store';\nimport { debug } from '@/utils/utils';\nimport { NylasSchedulerConnectorInterface } from '../connector-interface';\nimport { NylaSchedulerAPIConnector } from '../shared/api/scheduler';\n\ntype NylasSchedulerConnectorOptions = {\n schedulerAPIURL: string;\n nylasSchedulerStore: NylasSchedulerStoreType;\n sessionId?: string;\n configId?: string;\n};\n/**\n * Base class for the Nylas connector.\n */\nexport class NylasSchedulerConnector implements NylasSchedulerConnectorInterface {\n public schedulerAPIURL: string;\n public nylasSchedulerStore: NylasSchedulerStoreType;\n public sessionId: string | undefined;\n public configId: string | undefined;\n\n private _schedulerAPIConnector: NylaSchedulerAPIConnector | undefined;\n\n constructor({ schedulerAPIURL, nylasSchedulerStore, sessionId, configId }: NylasSchedulerConnectorOptions) {\n if (!schedulerAPIURL) {\n throw new Error('schedulerAPIURL is required');\n }\n\n if (!nylasSchedulerStore) {\n throw new Error('nylasSchedulerStore is required');\n }\n\n if (!sessionId && !configId) {\n throw new Error('sessionId is required for private configs, if not config id is required for public configs');\n }\n\n // If the url is only /, then we need to add the base url.\n // We assume that the base url is the same as the current url.\n if (schedulerAPIURL === '/') {\n const url = new URL(window.location.href);\n schedulerAPIURL = url.origin;\n }\n\n this.configId = configId;\n this.sessionId = sessionId;\n this.schedulerAPIURL = schedulerAPIURL;\n this.nylasSchedulerStore = nylasSchedulerStore;\n }\n\n public init() {\n debug('NylasConnector init');\n }\n\n public get schedulerStore() {\n return this.nylasSchedulerStore;\n }\n\n public get scheduler() {\n if (this._schedulerAPIConnector) {\n return this._schedulerAPIConnector;\n }\n this._schedulerAPIConnector = new NylaSchedulerAPIConnector({\n schedulerAPIURL: this.schedulerAPIURL,\n schedulerStore: this.schedulerStore,\n sessionId: this.sessionId,\n configId: this.configId,\n });\n return this._schedulerAPIConnector;\n }\n\n public resetStores() {\n this.nylasSchedulerStore.reset();\n }\n}\nexport type PublicMethods<T> = {\n [K in keyof T]: T[K] extends Function ? (string extends K ? never : K) : never;\n}[keyof T];\n\nexport type NylasSchedulerConnectorPublicMethods = PublicMethods<NylasSchedulerConnector>;\n","import { Fragment, FunctionalComponent, h } from '@stencil/core';\n\nexport type SchedulerViewProps = {\n isLoading?: boolean;\n showNotification?: boolean;\n nylasBranding?: boolean;\n};\n\n/**\n * The Scheduler view component.\n */\nexport const SchedulerView: FunctionalComponent<SchedulerViewProps> = (props: SchedulerViewProps, children) => {\n const isLoading = props.isLoading;\n const showNotification = props.showNotification;\n const nylasBranding = props.nylasBranding;\n\n return (\n <Fragment>\n {showNotification && <nylas-notification></nylas-notification>}\n\n {isLoading && (\n <div class={'loading'}>\n <div class={'left'}>\n <div class={'skeleton'} />\n </div>\n <div class={'right'}>\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n <div class={'skeleton'} />\n </div>\n </div>\n )}\n {!isLoading && children}\n <div class={'footer'}>\n {nylasBranding && (\n <Fragment>\n Powered by&nbsp;\n <nylas-logo />\n </Fragment>\n )}\n </div>\n </Fragment>\n );\n};\n","import { FunctionalComponent, h } from '@stencil/core';\n\nexport type HeaderBannerProps = {};\n\nexport const MessageBanner: FunctionalComponent<HeaderBannerProps> = (_props: HeaderBannerProps, children) => <div class=\"message-banner\">{children}</div>;\n","@import '../../../common/styles/variables.scss';\n\n:host {\n display: flex;\n flex-direction: column;\n overflow: visible;\n border-radius: var(--nylas-border-radius-2x);\n width: fit-content;\n\n @media #{$mobile} {\n width: auto;\n min-width: 325px;\n }\n\n background: var(--nylas-base-0);\n position: relative;\n box-shadow:\n 0px 4px 6px -2px rgba(0, 0, 0, 0.05),\n 0px 10px 15px -3px rgba(0, 0, 0, 0.1);\n @include default-css-variables;\n font-family: var(--nylas-font-family);\n font-optical-sizing: auto;\n font-style: normal;\n font-variation-settings: 'slnt' 0;\n}\n\n:root {\n font-family: inherit;\n}\n\n.error {\n padding: 8rem 12rem;\n color: var(--nylas-base-0);\n background-color: var(--nylas-error);\n margin: 1.5rem;\n border-radius: var(--nylas-border-radius-2x);\n}\n\n.message-banner {\n text-align: right;\n color: var(--nylas-base-800);\n padding: 1rem;\n border-bottom: 1px solid var(--nylas-color-primary-200);\n margin-top: 1rem;\n}\n\n.loading {\n margin: 1.5rem;\n display: flex;\n gap: 1rem;\n\n .skeleton {\n border-radius: var(--nylas-border-radius-2x);\n animation: pulsate 1.5s infinite;\n\n &:nth-child(2) {\n animation-delay: -100ms;\n }\n\n &:nth-child(3) {\n animation-delay: -200ms;\n }\n\n &:nth-child(4) {\n animation-delay: -300ms;\n }\n\n &:nth-child(5) {\n animation-delay: -400ms;\n }\n }\n\n .left .skeleton {\n height: 100%;\n width: 400px;\n }\n\n .right .skeleton {\n height: 5rem;\n width: 300px;\n margin-bottom: 1rem;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n}\n\n@keyframes pulsate {\n 0% {\n background-color: var(--nylas-base-50);\n }\n\n 50% {\n background-color: var(--nylas-base-100);\n }\n\n 100% {\n background-color: var(--nylas-base-50);\n }\n}\n\n.select-date-page,\n.additional-data-page,\n.booked-event-page,\n.cancelled-event-page,\n.cancel-flow-page {\n border-top-left-radius: var(--nylas-border-radius-2x);\n border-top-right-radius: var(--nylas-border-radius-2x);\n}\n\n.select-date-page,\n.additional-data-page {\n display: flex;\n\n @media #{$mobile} {\n flex-direction: column;\n }\n}\n\n.booked-event-page {\n background-color: var(--nylas-base-50);\n}\n\n.cancelled-event-page,\n.cancel-flow-page {\n padding: 1rem;\n height: 496px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.booked-event-page,\n.cancelled-event-page,\n.cancel-flow-page {\n min-width: 784px;\n\n @media #{$mobile} {\n min-width: 90%;\n }\n\n background: var(--nylas-base-50);\n}\n\n.left-panel {\n display: flex;\n flex-direction: column;\n min-width: 424px;\n border-top-left-radius: inherit;\n background: var(--nylas-base-0);\n position: relative;\n padding: 1rem 0 0 0;\n height: 624px;\n\n @media #{$mobile} {\n border-top-right-radius: inherit;\n min-width: unset;\n height: auto;\n }\n}\n\n.select-date-page .left-panel {\n @media #{$mobile} {\n padding: 0.5rem 4px 0;\n height: 624px;\n }\n}\n\n.border {\n margin-left: -20px; // Offset left padding\n margin-right: -20px; // Offset right padding\n border-top-width: 1px;\n height: 0.5px;\n background-color: var(--nylas-base-200);\n\n @media #{$mobile} {\n display: none;\n }\n}\n\n.right-panel {\n min-width: 360px;\n width: 360px;\n background-color: var(--nylas-base-50);\n height: 624px;\n padding-top: 16px;\n border-left: 1px solid var(--nylas-base-200);\n border-top-right-radius: inherit;\n\n @media #{$mobile} {\n border-top-right-radius: 0px;\n width: inherit;\n min-width: unset;\n height: auto;\n }\n\n h2 {\n display: flex;\n margin: 0;\n height: 48px;\n gap: 0.5rem;\n justify-content: center;\n align-items: center;\n width: auto;\n font-size: 1.125rem;\n line-height: 1.5rem;\n font-weight: 500;\n text-align: center;\n color: var(--nylas-base-800);\n }\n}\n\n.additional-data-page {\n .left-panel {\n background-color: var(--nylas-base-50);\n }\n\n .right-panel {\n background-color: var(--nylas-base-0);\n }\n}\n\nnylas-selected-event-card {\n height: calc(640px - 36px);\n padding: 0 1rem;\n\n @media #{$mobile} {\n height: 250px;\n }\n}\n\n.footer {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px;\n font-size: 14px;\n font-weight: 300;\n color: var(--nylas-base-500);\n border-top: 1px solid var(--nylas-base-200);\n min-height: 24px;\n\n svg {\n fill: var(--nylas-base-500);\n }\n}\n\n.footer svg {\n margin-top: 1px;\n}\n\nnylas-selected-event-card::part(nsec__timezone) {\n position: absolute;\n bottom: 0;\n}\n\nnylas-notification {\n margin: 1.5rem;\n width: -webkit-fill-available;\n width: -moz-available;\n position: absolute;\n}\n\nnylas-locale-switch {\n position: absolute;\n padding: 18px 20px;\n bottom: 0;\n width: -webkit-fill-available;\n width: -moz-available;\n border-top: 1px solid var(--nylas-base-200);\n\n @media #{$mobile} {\n height: auto;\n }\n}\n\nnylas-date-picker {\n padding: 0 20px;\n}\n","import { NylasBaseProvider } from '@/common/abstract-provider';\nimport { RegisteredComponent } from '@/common/register-component';\nimport type { SchedulerEventOverride } from '@/common/component-types';\nimport { NylasSchedulerConnector } from '@/connector/nylas-scheduler-connector';\nimport { CreateNylasSchedulerStore, NylasSchedulerStoreState, NylasSchedulerStoreType } from '@/stores/scheduler-store';\nimport { NylasSchedulerBookingData, ThemeConfig, Notification, NotificationType, NylasSchedulerErrorResponse, Timeslot } from '@nylas/core';\nimport { Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h } from '@stencil/core';\nimport { addDaysToCurrentDate, capitalizeFirstLetter, compactStringToUUIDs, debug } from '@/utils/utils';\nimport { SchedulerView } from './scheduler-view';\nimport { ErrorCategory } from '@/connector/nylas-scheduler-connector/errors';\nimport { MessageBanner } from './message-banner';\nimport i18next from '@/utils/i18n';\nimport { LANGUAGE_CODE_MAP } from '@/common/constants';\n\nconst genericError = { title: i18next.t('genericErrorTitle'), type: NotificationType.Error, category: ErrorCategory.Component };\n\n/**\n * The `nylas-scheduling` component is used to display the Nylas Scheduling UI.\n *\n * @slot @deprecated custom-booking-form - Deprecated in favor of using the additional fields defined in the config settings. This slot is used to pass a custom booking form to the Nylas Scheduling component.\n * @slot timeslot-picker-cta-label - This slot is used to pass a custom label to the timeslot picker CTA. The default label is \"Next\".\n *\n * @part ndp - [nylas-date-picker] The date picker host.\n * @part ndp__month-header - [nylas-date-picker] The month header.\n * @part ndp__month-button - [nylas-date-picker] The month button.\n * @part ndp__day - [nylas-date-picker] The day.\n * @part ndp__date - [nylas-date-picker] The date.\n * @part ndp__date--selected - [nylas-date-picker] The selected date.\n * @part ndp__date--current-day - [nylas-date-picker] The current day.\n * @part ndp__date--current-month - [nylas-date-picker] The dates in the current month.\n * @part ntp - [nylas-timeslot-picker] The timeslot picker component.\n * @part ntp__timeslot - [nylas-timeslot-picker] The timeslot button.\n * @part ntp__timeslot--selected - [nylas-timeslot-picker] The selected timeslot button.\n * @part ntp__button-primary - [nylas-timeslot-picker] The timeslot picker CTA.\n * @part nsec - [nylas-selected-event-card] The selected event card component.\n * @part nsec__card - [nylas-selected-event-card] The card component.\n * @part nsec__icon - [nylas-selected-event-card] The calendar icon.\n * @part nsec__date - [nylas-selected-event-card] The date selected.\n * @part nsec__time - [nylas-selected-event-card] The timeslot selected.\n * @part nbf - [nylas-booking-form] The booking form host.\n * @part nbf__input-label - [nylas-booking-form] The input label.\n * @part nbf__input-textfield - [nylas-booking-form] The input textfield.\n * @part nbf__button-ghost - [nylas-booking-form] The ghost button for adding guests.\n * @part nbf__button-primary - [nylas-booking-form] The primary button for booking.\n * @part nbf__button-outline - [nylas-booking-form] The outline button for canceling.\n * @part ncec - [nylas-cancelled-event-card] The cancelled event card host.\n * @part ncec__icon - [nylas-cancelled-event-card] The calendar icon.\n * @part ncec__title - [nylas-cancelled-event-card] The title of the cancelled event card.\n * @part ncec__description - [nylas-cancelled-event-card] The description of the cancelled event card.\n * @part ncec__button-outline - [nylas-cancelled-event-card] The close button CTA.\n * @part ncec__card - [nylas-cancelled-event-card] The cancelled event card.\n * @part nbec - [nylas-booked-event-card] The booked event card host.\n * @part nbec__card - [nylas-booked-event-card] The booked event card.\n * @part nbec__title - [nylas-booked-event-card] The title of the booked event card.\n * @part nbec__description - [nylas-booked-event-card] The description of the booked event card.\n * @part nbec__button-outline - [nylas-booked-event-card] The cancel & reschedule button CTA.\n * @part nbec__cancel-cta - [nylas-booked-event-card] The cancel button CTA.\n * @part nbec__reschedule-cta - [nylas-booked-event-card] The reschedule button CTA.\n */\n@Component({\n tag: 'nylas-scheduling',\n styleUrl: 'nylas-scheduling.scss',\n shadow: true,\n})\nexport class NylasScheduling {\n /**\n * Stores to be used by the provider.\n */\n private stores?: { scheduler: NylasSchedulerStoreType };\n\n /**\n * This is a base provide that defines the common methods and properties\n * that all providers should have.\n *\n * Because stencil does not support abstract classes, we have to use a\n * property to store the base provider instance.\n */\n private baseProvider?: NylasBaseProvider<Exclude<typeof this.stores, undefined>>;\n\n /**\n * The Nylas Scheduler Connector instance.\n * The branins of the provider. It manages data fetching and state synchronization.\n */\n private nylasSchedulerConnector?: NylasSchedulerConnector;\n\n /**\n * The host element.\n * Used to manage the host element of the provider.\n */\n @Element() private host!: HTMLNylasSchedulingElement;\n\n /**\n * This is used to set the mode for the Nylas Scheduler.\n * The mode can be either `app` or `composable`. The default mode is `app`.\n * - `app`: This mode is used to show the default Nylas Scheduler UI.\n * - `composable`: This mode is used to show the composable Nylas Scheduler UI\n * by passing the individual scheduler components as children.\n */\n @Prop() readonly mode: 'app' | 'composable' = 'app';\n\n /**\n * The default scheduler store state.\n * Used to set the initial state of the scheduler store.\n */\n @Prop({ attribute: 'default-scheduler-store-state' }) readonly defaultSchedulerState?: Partial<NylasSchedulerStoreState>;\n\n /**\n * The session ID for the Nylas Scheduler.\n * This is used to authenticate the user.\n */\n @Prop() readonly sessionId?: string;\n\n /**\n * The URL for the Nylas Scheduler API. (staging or production URL)\n */\n @Prop() readonly schedulerApiUrl: string = 'https://api.us.nylas.com';\n\n /**\n * This enables passing the bookingInfo object to the Scheduler UI for direct booking event creation.\n * When used with timeslotConfirmedHandler, it bypasses the additional data page and immediately\n * invokes the handler after booking.\n */\n @Prop() readonly bookingInfo?: NylasSchedulerBookingData;\n\n /**\n * Booking Ref required for rescheduling flow.\n */\n @Prop() readonly rescheduleBookingRef?: string;\n\n /**\n * Booking Ref required for cancelling flow.\n */\n @Prop() readonly cancelBookingRef?: string;\n\n /**\n * The config ID for the Nylas Scheduler. This should be passed in when using a public config,\n * in which case the sessionId is not required.\n */\n @Prop() readonly configurationId?: string;\n\n /**\n * This prop lets you hide the Nylas branding.\n * Default is true.\n */\n @Prop() readonly nylasBranding?: boolean = true;\n\n /**\n * This provides an easy way to override the default function of the event emitter.\n * An example of this is the `timeslotConfirmed` event. By default, this event will set the scheduler store state for `showBookingForm` to `true` which will\n * show the booking form. However, if you want to override this behavior, you can pass in the prop `eventOverride` like:\n * ```html\n * <nylas-scheduling eventOverride={{\"timeslotConfirmed\": (event, nylasConnector) => { console.log(\"Timeslot confirmed event fired!\"); } }} />\n * ```\n */\n @Prop({ attribute: 'event-overrides' }) readonly eventOverrides: SchedulerEventOverride = {};\n\n /**\n * The loading state. This is used to set the loading state for the Nylas Scheduler when fetching data.\n */\n @Prop() readonly isLoading?: boolean;\n\n /**\n * Theme config, used to automatically generate a theme with color palette and\n * CSS variables to customize the look and feel of the Nylas Scheduler.\n */\n @Prop() readonly themeConfig?: ThemeConfig;\n\n /*\n * Displays notifications for errors by default. When enabled (`true`), errors\n * automatically appear as notifications. Disabling this feature (`false`) allows\n * the parent application to capture and manage errors by listening to the\n * `nylasSchedulerError` event, providing flexibility in error handling.\n */\n @Prop() readonly showNotification?: boolean = true;\n\n /**\n * Automatically register components that have the `@RegisterComponent` decorator.\n * If this is set to false, you will need to manually register components using the\n * `registerComponent` method.\n * @default true\n */\n @State() automaticComponentRegistration: boolean = true;\n\n /**\n * The selected date label for the Nylas Scheduler.\n * This is used to set the initial date label for the Nylas Scheduler.\n */\n @State() selectedDateLabel: string = new Date().toLocaleDateString(undefined, { dateStyle: 'full' }) || `${i18next.t('noDateSelected')}`;\n\n /**\n * The config id extracted from the rescheduleBookingRef or cancelBookingRef.\n */\n @State() refConfigId?: string;\n\n /**\n * The selected language for the Nylas Scheduler.\n */\n @State() language: string = navigator.language;\n\n /**\n * This event is fired when the provider is initialized.\n * It can be used to set the initial state of the provider,\n * or to prevent the provider from firing some default behavior.\n */\n @Event({ cancelable: true }) init!: EventEmitter<HTMLNylasSchedulingElement>;\n\n /**\n * This event is fired when the scheduler component enters componentWillLoad lifecycle.\n */\n @Event() schedulerWillLoad!: EventEmitter<HTMLNylasSchedulingElement>;\n\n /**\n * This event is fired when the scheduler component enters componentDidLoad lifecycle.\n */\n @Event() schedulerDidLoad!: EventEmitter<HTMLNylasSchedulingElement>;\n\n @Event({\n eventName: 'nylasSchedulerError',\n })\n nylasSchedulerError!: EventEmitter<{ notification: Notification; host: HTMLElement }>;\n\n /**\n * This event is triggered if either the rescheduleBookingRef or cancelBookingRef prop\n * is supplied and the component has been attached to the DOM. It emits the configurationId\n * and bookingId derived from the rescheduleBookingRef or cancelBookingRef. Subscribe to this\n * event to obtain the extracted configurationId, which is necessary to generate the sessionID\n * for configurations that are not public.\n */\n @Event() bookingRefExtracted!: EventEmitter<{ configurationId: string; bookingId: string }>;\n\n /**\n * This function is called when the component is connected to the DOM.\n * At this point in the component lifecycle, the base provider has not yet\n * been initialized. So avoid using the base provider in this method or stores\n * in this method.\n */\n connectedCallback() {\n debug(`[nylas-scheduler] connectedCallback`);\n }\n\n async componentWillLoad() {\n debug(`[nylas-scheduler] Component will load`);\n\n // Emit the schedulerWillLoad event to allow the parent application to set the initial\n // state of the provider or to prevent the provider from firing some default behavior.\n const schedulerWillLoadEvent = this.schedulerWillLoad.emit(this.host);\n if (schedulerWillLoadEvent.defaultPrevented) {\n return;\n }\n\n this.stores = {\n scheduler: CreateNylasSchedulerStore({\n bookingInfo: this.bookingInfo,\n nylasBranding: this.nylasBranding,\n ...this.defaultSchedulerState,\n }),\n };\n\n this.baseProvider = new NylasBaseProvider(this.host, this.stores, this.automaticComponentRegistration, this.eventOverrides);\n\n // Set the configId to the reschedule configId if rescheduleBookingRef is provided or\n // Set the configId to the cancel configId if cancelBookingRef is provided\n this.refConfigId = this.configurationId;\n if (this.rescheduleBookingRef) {\n const [rescheduleConfigId, rescheduleBookingId] = compactStringToUUIDs(this.rescheduleBookingRef);\n this.refConfigId = rescheduleConfigId;\n this.stores.scheduler.set('rescheduleBookingId', rescheduleBookingId);\n this.bookingRefExtracted.emit({ configurationId: rescheduleConfigId, bookingId: rescheduleBookingId });\n } else if (this.cancelBookingRef) {\n const [cancelConfigId, cancelBookingId] = compactStringToUUIDs(this.cancelBookingRef);\n this.refConfigId = cancelConfigId;\n this.stores.scheduler.set('cancelBookingId', cancelBookingId);\n this.bookingRefExtracted.emit({ configurationId: cancelConfigId, bookingId: cancelBookingId });\n }\n\n if (!this.checkIfSessionIdOrConfigIdExists()) {\n return;\n }\n\n const nylasSchedulerStore = this.baseProvider?.getStore('scheduler');\n this.nylasSchedulerConnector = new NylasSchedulerConnector({\n schedulerAPIURL: this.schedulerApiUrl,\n sessionId: this.sessionId,\n configId: this.refConfigId,\n nylasSchedulerStore,\n });\n this.init.emit(this.host);\n\n this.baseProvider?.componentWillLoad(this.nylasSchedulerConnector);\n // Override theme\n if (this.themeConfig) {\n for (const [key, value] of Object.entries(this.themeConfig)) {\n this.host.style.setProperty(`${key}`, value);\n }\n }\n }\n\n async componentDidLoad() {\n this.baseProvider?.componentDidLoad();\n\n // If sessionId is not provided, do not fetch availability\n if (!this.checkIfSessionIdOrConfigIdExists()) {\n return;\n }\n\n const settings = await this.nylasSchedulerConnector?.scheduler.getUISettings();\n if (!settings || 'error' in settings) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(settings?.error) }, host: this.host });\n }\n\n const nylasSchedulerStore = this.baseProvider?.getStore('scheduler');\n const availableDaysInFuture = nylasSchedulerStore?.get('configSettings')?.scheduler?.available_days_in_future;\n const selectedTimeslot = nylasSchedulerStore?.get('selectedTimeslot');\n\n if (selectedTimeslot && selectedTimeslot?.start_time) {\n if (!this.isTimeslotValid(selectedTimeslot)) {\n return;\n }\n\n // If the selected timeslot is already set, do not fetch availability\n if (nylasSchedulerStore?.get('showBookingForm')) {\n nylasSchedulerStore?.set('selectedDate', selectedTimeslot.start_time);\n return;\n }\n }\n\n const selectedDate = nylasSchedulerStore?.get('selectedDate');\n const availability = nylasSchedulerStore?.get('availability');\n let result;\n\n if (availability && availability.length > 0) {\n return;\n }\n\n if (!selectedDate) {\n const today = new Date();\n const { startTime, endTime, endTimeForAvailableDaysInFuture } = this.validateAvailableDaysInFuture(today, availableDaysInFuture || 30);\n if (today.getTime() < endTimeForAvailableDaysInFuture * 1000) {\n result = await this.nylasSchedulerConnector?.scheduler.getAvailability(startTime, endTime);\n }\n } else {\n const { startTime, endTime, endTimeForAvailableDaysInFuture } = this.validateAvailableDaysInFuture(selectedDate, availableDaysInFuture || 30);\n if (selectedDate.getTime() < endTimeForAvailableDaysInFuture * 1000) {\n result = await this.nylasSchedulerConnector?.scheduler.getAvailability(startTime, endTime);\n }\n }\n\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n\n if (!selectedDate) {\n let _selectedDate = new Date();\n const firstAvailableDate = nylasSchedulerStore?.get('availability').find((timeslot: any) => new Date(timeslot.start_time) > new Date());\n if (firstAvailableDate) {\n _selectedDate = firstAvailableDate.start_time;\n }\n nylasSchedulerStore?.set('selectedDate', _selectedDate);\n }\n }\n\n componentDisconnected() {\n this.baseProvider?.componentDisconnected();\n }\n\n @Watch('bookingInfo')\n bookingInfoChanged(newVal?: NylasSchedulerBookingData) {\n this.stores?.scheduler.set('bookingInfo', newVal);\n }\n\n @Watch('rescheduleBookingRef')\n rescheduleBookingRefChanged(newVal?: string) {\n if (newVal) {\n const [configId, bookingId] = compactStringToUUIDs(newVal);\n this.stores?.scheduler.set('rescheduleBookingId', bookingId);\n this.refConfigId = configId;\n this.nylasSchedulerConnector?.scheduler.setConfigId(configId);\n }\n }\n\n @Watch('cancelBookingRef')\n cancelBookingRefChanged(newVal?: string) {\n if (newVal) {\n const [configId, bookingId] = compactStringToUUIDs(newVal);\n this.stores?.scheduler.set('cancelBookingId', bookingId);\n this.refConfigId = configId;\n this.nylasSchedulerConnector?.scheduler.setConfigId(configId);\n }\n }\n\n @Listen('languageChanged')\n languageChanged(event: CustomEvent<string>) {\n const newLanguage = event.detail;\n this.language = newLanguage;\n i18next.changeLanguage(newLanguage);\n }\n\n /**\n * This is a custom event handler that is used to register a component with the provider.\n * It is used by components that have the `@RegisterComponent` decorator.\n * @param event A custom event that contains the component to register\n * @returns Promise<void>\n */\n @Listen('registerComponent')\n async registerComponentHandler(event: CustomEvent<RegisteredComponent<any, any>>): Promise<void> {\n this.baseProvider?.registerComponent(event.detail);\n }\n\n /**\n * This is a custom event handler that is used to unregister a component with the provider.\n * It is used by components that have the `@RegisterComponent` decorator.\n * @param event A custom event that contains the component to unregister\n * @returns Promise<void>\n */\n @Listen('unregisterComponent')\n async unregisterComponentHandler(event: CustomEvent<RegisteredComponent<any, any>>): Promise<void> {\n this.baseProvider?.unregisterComponent(event.detail);\n }\n\n /**\n * This is a custom event handler that is used to refetch the availability when the month is changed.\n */\n @Listen('monthChanged')\n async monthChangedHandler(event: CustomEvent<Date>) {\n const date = event.detail;\n const availableDaysInFuture = this.nylasSchedulerConnector?.schedulerStore?.get('configSettings')?.scheduler?.available_days_in_future;\n const { startTime, endTime, endTimeForAvailableDaysInFuture } = this.validateAvailableDaysInFuture(date, availableDaysInFuture || 30);\n\n if (startTime < endTimeForAvailableDaysInFuture && date.getTime() < endTimeForAvailableDaysInFuture * 1000) {\n const result = await this.nylasSchedulerConnector?.scheduler.getAvailability(startTime, endTime);\n\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n const selectableDates = this.stores?.scheduler.get('selectableDates');\n if (selectableDates && selectableDates.length > 0) {\n this.stores?.scheduler.set('selectedDate', selectableDates[0]);\n }\n }\n }\n\n /**\n * This is a custom event handler to book an event.\n */\n @Listen('detailsConfirmed')\n async bookButtonClickedHandler(event: CustomEvent<NylasSchedulerBookingData>) {\n const storeRescheduleId = this.nylasSchedulerConnector?.schedulerStore?.get('rescheduleBookingId');\n const rescheduleBookingId = storeRescheduleId;\n if (rescheduleBookingId) {\n const result = await this.nylasSchedulerConnector?.scheduler.rescheduleBooking(rescheduleBookingId, event.detail);\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n return;\n }\n const result = await this.nylasSchedulerConnector?.scheduler.bookTimeslot(event.detail);\n if (!result || 'error' in result) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(result?.error) }, host: this.host });\n }\n }\n\n /**\n * This is a custom event handler to update the selected date label.\n */\n @Listen('dateSelected')\n dateSelectedHandler(event: CustomEvent<Date>) {\n const date = event.detail;\n this.selectedDateLabel = date ? date.toLocaleDateString(undefined, { dateStyle: 'full' }) : `${i18next.t('noDateSelected')}`;\n }\n\n /**\n * This is an event handler to handle the error (if any) when the\n * cancel booking button is clicked on the cancel booking form.\n */\n @Listen('cancelBookedEventError')\n cancelBookedEventErrorHandler(event: CustomEvent<NylasSchedulerErrorResponse>) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(event.detail.error) }, host: this.host });\n }\n\n @Listen('cancelBookedEventValidationError')\n cancelBookedEventValidationErrorHandler(event: CustomEvent<NylasSchedulerErrorResponse>) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(event.detail.error) }, host: this.host });\n }\n\n /**\n * This is an event handler to handle the error (if any) when the\n * reschedule button is clicked on the booked event card.\n */\n @Listen('rescheduleBookedEventError')\n rescheduleBookedEventErrorHandler(event: CustomEvent<NylasSchedulerErrorResponse>) {\n this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(event.detail.error) }, host: this.host });\n }\n\n /**\n * This method is used to retrieve the NylasScheduler instance\n * @returns The NylasScheduler instance\n */\n @Method()\n async getNylasSchedulerStore(): Promise<NylasSchedulerStoreType | undefined> {\n return this.baseProvider?.getStore('scheduler');\n }\n\n /**\n * This method is used to retrieve the NylasConnector instance\n * @returns The NylasConnector instance\n */\n @Method()\n async getNylasSchedulerConnector() {\n return this.nylasSchedulerConnector;\n }\n\n @Method()\n async getRef() {\n return this.host;\n }\n\n private getErrorObject(error: NylasSchedulerErrorResponse['error']): Notification {\n return {\n title: error?.title || genericError.title,\n category: error?.category || genericError.category,\n type: NotificationType.Error,\n description: error?.message || '',\n id: new Date().getTime().toString(),\n ttl: 'none',\n };\n }\n\n private checkIfSessionIdOrConfigIdExists(): boolean {\n if (!this.sessionId && !this.refConfigId) {\n this.nylasSchedulerError.emit({\n notification: {\n title: i18next.t('noSessionIdErrorTitle'),\n category: ErrorCategory.Component,\n type: NotificationType.Error,\n description: i18next.t('noSessionIdErrorMessage'),\n id: new Date().getTime().toString(),\n ttl: 'none',\n },\n host: this.host,\n });\n return false;\n }\n return true;\n }\n\n private isTimeslotValid(timeslot: Timeslot): boolean {\n const selectedDate = new Date(timeslot.start_time);\n if (selectedDate < new Date()) {\n this.nylasSchedulerError.emit({\n notification: {\n title: i18next.t('invalidTimeslotErrorTitle'),\n category: ErrorCategory.Component,\n type: NotificationType.Error,\n description: i18next.t('invalidTimeslotErrorMessage'),\n id: new Date().getTime().toString(),\n ttl: 'none',\n },\n host: this.host,\n });\n return false;\n }\n return true;\n }\n\n private validateAvailableDaysInFuture(\n startDate: Date,\n availableDaysInFuture: number,\n ): {\n startTime: number;\n endTime: number;\n endTimeForAvailableDaysInFuture: number;\n } {\n const today = new Date();\n const startTime = new Date(startDate.getFullYear(), startDate.getMonth(), 1).getTime() / 1000;\n const endTimeForCurrentMonth = new Date(startDate.getFullYear(), startDate.getMonth() + 1, 1).getTime() / 1000;\n const endTimeForAvailableDaysInFuture = Math.floor(addDaysToCurrentDate(today, availableDaysInFuture).getTime() / 1000);\n const endTime = Math.min(endTimeForAvailableDaysInFuture, endTimeForCurrentMonth);\n const startTimeWithOffset = startTime < today.getTime() / 1000 ? Math.floor(today.getTime() / 1000) : startTime;\n return { startTime: startTimeWithOffset, endTime, endTimeForAvailableDaysInFuture };\n }\n\n render() {\n const showDefaultScheduler = this.mode === 'app';\n const nylasSchedulerStore = this.baseProvider?.getStore('scheduler');\n const eventInfo = nylasSchedulerStore?.get('eventInfo');\n const showBookingForm = nylasSchedulerStore?.get('showBookingForm');\n const cancelledEventInfo = nylasSchedulerStore?.get('cancelledEventInfo');\n const cancelBookingId = nylasSchedulerStore?.get('cancelBookingId');\n const selectedTimeslot = nylasSchedulerStore?.get('selectedTimeslot') as Timeslot;\n const rescheduleBookingId = nylasSchedulerStore?.get('rescheduleBookingId');\n const nylasBranding = nylasSchedulerStore?.get('nylasBranding') || this.nylasBranding;\n const selectedDate = nylasSchedulerStore?.get('selectedDate');\n this.selectedDateLabel =\n selectedDate && this.language\n ? capitalizeFirstLetter(selectedDate.toLocaleDateString(LANGUAGE_CODE_MAP[this.language], { dateStyle: 'full' }))\n : `${i18next.t('noDateSelected')}`;\n\n if (showDefaultScheduler && cancelBookingId && !cancelledEventInfo) {\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n <div class=\"cancel-flow-page\" part=\"cancel-flow-page\">\n <nylas-cancel-booking-form\n selectedTimeslot={selectedTimeslot}\n cancelBookingId={cancelBookingId}\n exportparts=\"ncbf, ncbf__input-textfield, ncbf__button-cta, ncbf__button-outline, ncbf__input-label\"\n />\n </div>\n </SchedulerView>\n </Host>\n );\n }\n\n // Cancelled event card is shown when the event is cancelled\n if (showDefaultScheduler && cancelledEventInfo) {\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n <div class=\"cancelled-event-page\" part=\"cancelled-event-page\">\n <nylas-cancelled-event-card\n cancelledEventInfo={cancelledEventInfo}\n exportparts=\"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card\"\n />\n </div>\n </SchedulerView>\n </Host>\n );\n }\n // Booked event card is shown when the event is booked\n if (showDefaultScheduler && eventInfo) {\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n <div class=\"booked-event-page\" part=\"booked-event-page\">\n <nylas-booked-event-card\n selectedTimeslot={selectedTimeslot}\n eventInfo={eventInfo}\n exportparts=\"nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta\"\n />\n </div>\n </SchedulerView>\n </Host>\n );\n }\n // Date and time picker is shown when the event is not booked and no additional data is shown\n if (showDefaultScheduler && (!eventInfo || !!rescheduleBookingId) && !showBookingForm) {\n const timeslotPickerCTALabel = this.host.querySelector('[slot=\"timeslot-picker-cta-label\"]');\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n {rescheduleBookingId && <MessageBanner>{`${i18next.t('rescheduleTitle')}`}</MessageBanner>}\n <div class=\"select-date-page\" part=\"select-date-page\">\n <div class=\"left-panel\">\n <nylas-date-picker exportparts=\"ndp, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--selected, ndp__date--current-day, ndp__date--current-month\"></nylas-date-picker>\n <nylas-locale-switch></nylas-locale-switch>\n </div>\n <div class=\"right-panel\">\n <h2>\n <calendar-icon></calendar-icon>\n <span id=\"selectedDate\">{this.selectedDateLabel}</span>\n </h2>\n <nylas-timeslot-picker exportparts=\"ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary\">\n {timeslotPickerCTALabel && (\n <span slot=\"timeslot-picker-cta-label\">\n <slot name=\"timeslot-picker-cta-label\"></slot>\n </span>\n )}\n </nylas-timeslot-picker>\n </div>\n </div>\n </SchedulerView>\n </Host>\n );\n }\n // Additional data is shown when the time is selected, event is not booked and additional data is shown\n if (showDefaultScheduler && !eventInfo && showBookingForm) {\n return (\n <Host>\n <SchedulerView nylasBranding={nylasBranding} isLoading={this.isLoading} showNotification={this.showNotification}>\n {rescheduleBookingId && <MessageBanner>{`${i18next.t('rescheduleTitle')}`}</MessageBanner>}\n <div class=\"additional-data-page\" part=\"additional-data-page\">\n <div class=\"left-panel\">\n <div class=\"wrapper\">\n <nylas-selected-event-card exportparts=\"nsec, nsec__card, nsec__icon, nsec__date, nsec__time\"></nylas-selected-event-card>\n </div>\n </div>\n <div class=\"right-panel\">\n <nylas-booking-form exportparts=\"nbf, nbf__input-label, nbf__input-textfield, nbf__button-ghost, nbf__button-primary, nbf__button-outline\"></nylas-booking-form>\n </div>\n </div>\n </SchedulerView>\n </Host>\n );\n }\n\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -50,9 +50,9 @@ const NylasSelectedEventCard = class {
50
50
  this.endTime = new Date(selectedTimeslot?.end_time).toLocaleString(undefined, { timeStyle: 'short' });
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: '55ab9cebd5baeac59dba0ec7fe3509cd0ef40ce7', part: "nsec" }, h("sp-theme", { key: 'e15dcd0501f243dcad1541ede4d536081d92c3b1', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: '0a4350fd792aeee0b8d3b89c44dd609ef59ac122', class: "event-card", part: "nsec__card" }, h("div", { key: '612c20fe95645bc37a23b10b70709e17809add79', class: "calendar-icon", part: "nsec__icon" }, h("calendar-icon", { key: 'a10a8a934b5a7fd105a92dc28019901f2feca428' })), h("div", { key: '77c8c0bcedc344699301068bc84ae332f260a4ed', class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate
53
+ return (h(Host, { key: 'f794f4415321af6623c2c9d97925932dbb2047e4', part: "nsec" }, h("sp-theme", { key: '356fedb5c591554eb87d8cdf5cc711fe3524a7c7', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: '336de44bd19e2fd086c2826a6c8206608f6ca646', class: "event-card", part: "nsec__card" }, h("div", { key: '940dd832f8fb09e27efa3ff5b0728a5053ff629e', class: "calendar-icon", part: "nsec__icon" }, h("calendar-icon", { key: '523369c88eb905de96b7c8431b9109b4fb8706ec' })), h("div", { key: '385494cc3d1830f124cdca616413caba9fc1ce64', class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate
54
54
  ? capitalizeFirstLetter(this.selectedDate?.toLocaleDateString(LANGUAGE_CODE_MAP[this.selectedLanguage || navigator.language], { dateStyle: 'full' }))
55
- : '-'), h("div", { key: 'a2c12447ce3b6516dd88779a2817b0296b9f2834', class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), h("div", { key: 'ac22403e4e8ba6db1e434f49d5970abbcc774cf9', class: "event-timezone", part: "nsec__timezone" }, h("globe-icon", { key: '81651ea2aa387979eca6669e66cf550a2c91a20b' }), TIMEZONE_MAP[this.selectedTimezone]))));
55
+ : '-'), h("div", { key: '7e92630de5bf9811e3e05ee2ff1fd2f54797f222', class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), h("div", { key: 'da2b0cd62a7519040ba9b055991684e4db7ff9b9', class: "event-timezone", part: "nsec__timezone" }, h("globe-icon", { key: '045c62d629116f91d3558a236c66374769c3a903' }), TIMEZONE_MAP[this.selectedTimezone]))));
56
56
  }
57
57
  static get watchers() { return {
58
58
  "selectedTimeslot": ["handleSelectedTimeslotChange"]
@@ -153,12 +153,12 @@ const NylasSummarizeMessageButton = class {
153
153
  });
154
154
  }
155
155
  render() {
156
- return (h(Host, { key: '66c864d9b70e34daf876f49120810dbd9082256e' }, h("sp-theme", { key: 'f210e4a870993a8c620b64458f1fb7abfdac88dd', scale: "medium", color: "dark" }, h("sp-button", { key: '9244f97e26c3ecfc1edcedd5b4b6a6080ad9920f', label: "Summarize email", "icon-only": true, onClickCapture: this.onClick, class: {
156
+ return (h(Host, { key: 'f0daa9a48cfbea9092ac7324a2adc8f453fc35a6' }, h("sp-theme", { key: 'f03bd91f1567ebfccc2689ceaadeff139cb3245e', scale: "medium", color: "dark" }, h("sp-button", { key: '0e8d54e1410869dc40b0afbf7e2496e4ce5a5c10', label: "Summarize email", "icon-only": true, onClickCapture: this.onClick, class: {
157
157
  'summarize-button': true,
158
158
  'stopped': this.state === 'stopped',
159
159
  'loading': this.state === 'loading',
160
160
  'playing': this.state === 'playing',
161
- } }, this.state === 'stopped' && h("play-icon", null), this.state === 'loading' && h("loading-icon", null), this.state === 'playing' && h("stop-icon", null)), h("audio", { key: 'f748ef06f332f119dbe6b5bd527e9db5e585cb08', ref: r => (this.audioRef = r), autoPlay: true, onPlaying: () => (this.state = 'playing'), onPause: () => (this.state = 'stopped'), onEnded: () => {
161
+ } }, this.state === 'stopped' && h("play-icon", null), this.state === 'loading' && h("loading-icon", null), this.state === 'playing' && h("stop-icon", null)), h("audio", { key: '7345736699b007397634f66dd15a556977fdef72', ref: r => (this.audioRef = r), autoPlay: true, onPlaying: () => (this.state = 'playing'), onPause: () => (this.state = 'stopped'), onEnded: () => {
162
162
  this.state = 'stopped';
163
163
  debug(`[nylas-summarize-message-button] Audio ended`);
164
164
  } }))));
@@ -83,11 +83,11 @@ const NylasThreadsRefresh = class {
83
83
  this.state = state;
84
84
  }
85
85
  render() {
86
- return (h(Host, { key: '81ae0d8b4628bf87001b99241a1d037a02914de1' }, h("div", { key: 'b1459ff6f96d7f91b409bbb677bf9d70a900f8e5', class: "container", ref: r => (this.containerElement = r) }, h("button", { key: '6a114d596026a427518224311d44af229166082c', class: {
86
+ return (h(Host, { key: '208a3f1e64e9f7a1a2614fa3e772c5664e3d3109' }, h("div", { key: '36d2e44d491978301c549d62834606f7d46737b3', class: "container", ref: r => (this.containerElement = r) }, h("button", { key: '1f2cbf74de5be69de5eeca22b46e0ba51ac87720', class: {
87
87
  'pull-to-refresh': true,
88
88
  'pulling': this.pulling,
89
89
  'refreshing': this.state === 'loading',
90
- }, "aria-label": "Refreshing..." }, this.state === 'loading' && h("refresh-icon", { slot: "icon" }), this.state !== 'loading' && h("arrow-icon", { slot: "icon" })), h("div", { key: '44af3075217a91669d7d5ae386cde4b8e3c3349d', class: "content", ref: r => (this.contentElement = r) }, h("slot", { key: '79f6deb55632b74cc0c48ab164512ace49de04c7' })))));
90
+ }, "aria-label": "Refreshing..." }, this.state === 'loading' && h("refresh-icon", { slot: "icon" }), this.state !== 'loading' && h("arrow-icon", { slot: "icon" })), h("div", { key: '089d5985cbfb0be2d9db820b0039cb29fa7138a9', class: "content", ref: r => (this.contentElement = r) }, h("slot", { key: '8594cea7e7c308acf95aa59d7e8dabfeeb813fc4' })))));
91
91
  }
92
92
  };
93
93
  __decorate([