@nylas/web-elements 1.1.0-canary.4 → 1.1.0-canary.7

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 (939) hide show
  1. package/dist/cjs/add-circle-icon.cjs.entry.js +1 -1
  2. package/dist/cjs/add-circle-icon_22.cjs.entry.js +224 -94
  3. package/dist/cjs/add-circle-icon_22.cjs.entry.js.map +1 -1
  4. package/dist/cjs/archive-icon.cjs.entry.js +1 -1
  5. package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
  6. package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/bold-icon.cjs.entry.js +1 -1
  8. package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
  9. package/dist/cjs/button-component.cjs.entry.js +2 -2
  10. package/dist/cjs/button-component.cjs.entry.js.map +1 -1
  11. package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
  14. package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
  15. package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
  17. package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/chevron-icon_3.cjs.entry.js +4 -4
  20. package/dist/cjs/close-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/{constants-6baf1f1d.js → constants-3e962931.js} +11 -1
  22. package/dist/cjs/{constants-6baf1f1d.js.map → constants-3e962931.js.map} +1 -1
  23. package/dist/cjs/{constants-0fba94a4.js → constants-d590922e.js} +11 -1
  24. package/dist/cjs/{constants-0fba94a4.js.map → constants-d590922e.js.map} +1 -1
  25. package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
  26. package/dist/cjs/flow-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/folder-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/forward-icon.cjs.entry.js +1 -1
  29. package/dist/cjs/forward-icon_6.cjs.entry.js +9 -9
  30. package/dist/cjs/globe-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/google-logo-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/google-logo-icon_4.cjs.entry.js +467 -0
  33. package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -0
  34. package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/index-7af03e3f.js +1 -158
  36. package/dist/cjs/index-c14ea8f5.js +1 -358
  37. package/dist/cjs/index.cjs.js +3 -1
  38. package/dist/cjs/index.cjs.js.map +1 -1
  39. package/dist/cjs/{index.es-68425511.js → index.es-0a0f2d87.js} +9 -4
  40. package/dist/cjs/index.es-0a0f2d87.js.map +1 -0
  41. package/dist/cjs/{index.es-447c5aca.js → index.es-b12b7df1.js} +9 -4
  42. package/dist/cjs/index.es-b12b7df1.js.map +1 -0
  43. package/dist/cjs/info-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
  45. package/dist/cjs/italic-icon.cjs.entry.js +1 -1
  46. package/dist/cjs/loader.cjs.js +1 -1
  47. package/dist/cjs/loading-icon.cjs.entry.js +1 -1
  48. package/dist/cjs/location-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
  50. package/dist/cjs/{mailbox-store-556bc7b6.js → mailbox-store-05fa3bec.js} +3 -3
  51. package/dist/cjs/{mailbox-store-556bc7b6.js.map → mailbox-store-05fa3bec.js.map} +1 -1
  52. package/dist/cjs/{mailbox-store-aacd75ff.js → mailbox-store-14531fd4.js} +3 -3
  53. package/dist/cjs/{mailbox-store-aacd75ff.js.map → mailbox-store-14531fd4.js.map} +1 -1
  54. package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
  55. package/dist/cjs/multi-select-dropdown.cjs.entry.js +3 -3
  56. package/dist/cjs/nylas-additional-participants.cjs.entry.js +3 -3
  57. package/dist/cjs/nylas-api-request-27c25287.js +60 -0
  58. package/dist/cjs/nylas-api-request-27c25287.js.map +1 -0
  59. package/dist/cjs/nylas-api-request-abdb8dd8.js +58 -0
  60. package/dist/cjs/nylas-api-request-abdb8dd8.js.map +1 -0
  61. package/dist/cjs/nylas-availability-picker.cjs.entry.js +33 -16
  62. package/dist/cjs/nylas-availability-picker.cjs.entry.js.map +1 -1
  63. package/dist/cjs/nylas-booked-event-card.cjs.entry.js +3 -3
  64. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +7 -7
  65. package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js +12 -6
  66. package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js.map +1 -1
  67. package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
  68. package/dist/cjs/nylas-buffer-time.cjs.entry.js +2 -2
  69. package/dist/cjs/nylas-calendar-picker.cjs.entry.js +13 -8
  70. package/dist/cjs/nylas-calendar-picker.cjs.entry.js.map +1 -1
  71. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +3 -3
  72. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +3 -3
  73. package/dist/cjs/nylas-composer.cjs.entry.js +2 -2
  74. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +21 -12
  75. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js.map +1 -1
  76. package/dist/cjs/nylas-date-picker.cjs.entry.js +2 -2
  77. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +85 -39
  78. package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
  79. package/dist/cjs/nylas-event-description.cjs.entry.js +15 -6
  80. package/dist/cjs/nylas-event-description.cjs.entry.js.map +1 -1
  81. package/dist/cjs/nylas-event-duration.cjs.entry.js +15 -10
  82. package/dist/cjs/nylas-event-duration.cjs.entry.js.map +1 -1
  83. package/dist/cjs/nylas-event-info.cjs.entry.js +3 -3
  84. package/dist/cjs/nylas-event-limits.cjs.entry.js +3 -3
  85. package/dist/cjs/nylas-event-title.cjs.entry.js +52 -12
  86. package/dist/cjs/nylas-event-title.cjs.entry.js.map +1 -1
  87. package/dist/cjs/nylas-form-card.cjs.entry.js +3 -3
  88. package/dist/cjs/nylas-if-state.cjs.entry.js +2 -2
  89. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +24 -11
  90. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js.map +1 -1
  91. package/dist/cjs/nylas-list-configurations.cjs.entry.js +129 -0
  92. package/dist/cjs/nylas-list-configurations.cjs.entry.js.map +1 -0
  93. package/dist/cjs/nylas-list-folders.cjs.entry.js +3 -3
  94. package/dist/cjs/nylas-list-threads.cjs.entry.js +3 -3
  95. package/dist/cjs/nylas-locale-switch.cjs.entry.js +3 -3
  96. package/dist/cjs/nylas-location-component.cjs.entry.js +17 -6
  97. package/dist/cjs/nylas-location-component.cjs.entry.js.map +1 -1
  98. package/dist/cjs/nylas-login.cjs.entry.js +3 -3
  99. package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
  100. package/dist/cjs/nylas-mailbox-pagination.cjs.entry.js +2 -2
  101. package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +3 -3
  102. package/dist/cjs/nylas-mailbox.cjs.entry.js +4 -4
  103. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +28 -13
  104. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js.map +1 -1
  105. package/dist/cjs/nylas-notification.cjs.entry.js +2 -2
  106. package/dist/cjs/nylas-provider.cjs.entry.js +6 -6
  107. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +201 -75
  108. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
  109. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
  110. package/dist/cjs/nylas-selected-event-card.cjs.entry.js +3 -3
  111. package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +4 -4
  112. package/dist/cjs/nylas-threads-refresh.cjs.entry.js +4 -4
  113. package/dist/cjs/nylas-threads-search.cjs.entry.js +3 -3
  114. package/dist/cjs/nylas-time-window-picker.cjs.entry.js +2 -2
  115. package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +2 -2
  116. package/dist/cjs/nylas-view-email.cjs.entry.js +2 -2
  117. package/dist/cjs/nylas-view-thread.cjs.entry.js +3 -3
  118. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  119. package/dist/cjs/people-icon.cjs.entry.js +1 -1
  120. package/dist/cjs/play-icon.cjs.entry.js +1 -1
  121. package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
  122. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  123. package/dist/cjs/{register-component-d729f3f7.js → register-component-09ebdf31.js} +8 -2
  124. package/dist/cjs/register-component-09ebdf31.js.map +1 -0
  125. package/dist/cjs/{register-component-f1ebc65d.js → register-component-c8b6e907.js} +8 -2
  126. package/dist/cjs/register-component-c8b6e907.js.map +1 -0
  127. package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
  128. package/dist/cjs/reply-icon.cjs.entry.js +1 -1
  129. package/dist/cjs/scheduler-config-store-37690bf0.js +32 -0
  130. package/dist/cjs/scheduler-config-store-37690bf0.js.map +1 -0
  131. package/dist/cjs/scheduler-config-store-529c8d7e.js +32 -0
  132. package/dist/cjs/scheduler-config-store-529c8d7e.js.map +1 -0
  133. package/dist/cjs/{scheduler-store-7320f5d0.js → scheduler-store-0081970d.js} +16 -3
  134. package/dist/cjs/scheduler-store-0081970d.js.map +1 -0
  135. package/dist/cjs/{scheduler-store-4cb46b3c.js → scheduler-store-67dc1986.js} +16 -3
  136. package/dist/cjs/scheduler-store-67dc1986.js.map +1 -0
  137. package/dist/cjs/search-icon.cjs.entry.js +1 -1
  138. package/dist/cjs/select-dropdown.cjs.entry.js +2 -2
  139. package/dist/cjs/sent-icon.cjs.entry.js +1 -1
  140. package/dist/cjs/spam-icon.cjs.entry.js +1 -1
  141. package/dist/cjs/star-icon.cjs.entry.js +1 -1
  142. package/dist/cjs/stop-icon.cjs.entry.js +1 -1
  143. package/dist/cjs/time-period-selector.cjs.entry.js +2 -2
  144. package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
  145. package/dist/cjs/translate-icon.cjs.entry.js +1 -1
  146. package/dist/cjs/trash-icon.cjs.entry.js +1 -1
  147. package/dist/cjs/underline-icon.cjs.entry.js +1 -1
  148. package/dist/cjs/{utils-53dd7574.js → utils-20663d54.js} +19 -1
  149. package/dist/cjs/utils-20663d54.js.map +1 -0
  150. package/dist/cjs/{utils-53298b01.js → utils-2c7f0895.js} +19 -1
  151. package/dist/cjs/{utils-53298b01.js.map → utils-2c7f0895.js.map} +1 -1
  152. package/dist/cjs/warning-icon.cjs.entry.js +1 -1
  153. package/dist/collection/collection-manifest.json +1 -0
  154. package/dist/collection/common/abstract-provider.js +7 -2
  155. package/dist/collection/common/abstract-provider.js.map +1 -1
  156. package/dist/collection/common/component-types.js.map +1 -1
  157. package/dist/collection/common/constants.js +9 -0
  158. package/dist/collection/common/constants.js.map +1 -1
  159. package/dist/collection/common/icons/add-circle.js +1 -1
  160. package/dist/collection/common/icons/archive.js +1 -1
  161. package/dist/collection/common/icons/arrow.js +1 -1
  162. package/dist/collection/common/icons/bold.js +1 -1
  163. package/dist/collection/common/icons/calendar-cancel.js +1 -1
  164. package/dist/collection/common/icons/calendar-check.js +1 -1
  165. package/dist/collection/common/icons/calendar-info.js +1 -1
  166. package/dist/collection/common/icons/calendar-patterns.js +1 -1
  167. package/dist/collection/common/icons/calendar.js +1 -1
  168. package/dist/collection/common/icons/checkmark-circle.js +1 -1
  169. package/dist/collection/common/icons/chevron.js +1 -1
  170. package/dist/collection/common/icons/close.js +1 -1
  171. package/dist/collection/common/icons/document-refresh.js +1 -1
  172. package/dist/collection/common/icons/flow.js +1 -1
  173. package/dist/collection/common/icons/folder.js +1 -1
  174. package/dist/collection/common/icons/forward.js +1 -1
  175. package/dist/collection/common/icons/globe.js +1 -1
  176. package/dist/collection/common/icons/google-logo.js +1 -1
  177. package/dist/collection/common/icons/inbox.js +1 -1
  178. package/dist/collection/common/icons/info.js +1 -1
  179. package/dist/collection/common/icons/italic.js +1 -1
  180. package/dist/collection/common/icons/loading.js +1 -1
  181. package/dist/collection/common/icons/location-off.js +1 -1
  182. package/dist/collection/common/icons/location.js +1 -1
  183. package/dist/collection/common/icons/microsoft-logo.js +1 -1
  184. package/dist/collection/common/icons/nylas-logo.js +1 -1
  185. package/dist/collection/common/icons/people.js +1 -1
  186. package/dist/collection/common/icons/play.js +1 -1
  187. package/dist/collection/common/icons/refresh.js +1 -1
  188. package/dist/collection/common/icons/reply-all.js +1 -1
  189. package/dist/collection/common/icons/reply.js +1 -1
  190. package/dist/collection/common/icons/search.js +1 -1
  191. package/dist/collection/common/icons/sent.js +1 -1
  192. package/dist/collection/common/icons/spam.js +1 -1
  193. package/dist/collection/common/icons/star.js +1 -1
  194. package/dist/collection/common/icons/stop.js +1 -1
  195. package/dist/collection/common/icons/translate.js +1 -1
  196. package/dist/collection/common/icons/trash.js +1 -1
  197. package/dist/collection/common/icons/underline.js +1 -1
  198. package/dist/collection/common/icons/warning.js +1 -1
  199. package/dist/collection/common/nylas-api-request.js +27 -7
  200. package/dist/collection/common/nylas-api-request.js.map +1 -1
  201. package/dist/collection/common/register-component.js +6 -0
  202. package/dist/collection/common/register-component.js.map +1 -1
  203. package/dist/collection/common/types.js.map +1 -1
  204. package/dist/collection/components/design-system/button-component/button-component.css +5 -0
  205. package/dist/collection/components/design-system/button-component/button-component.js +1 -1
  206. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
  207. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
  208. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
  209. package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
  210. package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
  211. package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
  212. package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
  213. package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
  214. package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
  215. package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
  216. package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
  217. package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
  218. package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
  219. package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
  220. package/dist/collection/components/nylas-login/nylas-login.js +1 -1
  221. package/dist/collection/components/nylas-provider/nylas-provider.js +2 -2
  222. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
  223. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  224. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  225. package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
  226. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +1 -1
  227. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +55 -15
  228. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js.map +1 -1
  229. package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js +32 -5
  230. package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js.map +1 -1
  231. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js +23 -14
  232. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js.map +1 -1
  233. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +41 -9
  234. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js.map +1 -1
  235. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.css +48 -9
  236. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +167 -36
  237. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  238. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js +4 -4
  239. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
  240. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.css +1 -1
  241. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +34 -2
  242. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
  243. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.css +1 -1
  244. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +35 -7
  245. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
  246. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  247. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  248. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.css +8 -1
  249. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +83 -9
  250. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
  251. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  252. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +45 -9
  253. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js.map +1 -1
  254. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.css +142 -0
  255. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js +330 -0
  256. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js.map +1 -0
  257. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.css +2 -2
  258. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js +37 -3
  259. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js.map +1 -1
  260. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +49 -11
  261. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js.map +1 -1
  262. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js +30 -0
  263. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js.map +1 -0
  264. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.css +23 -2
  265. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +108 -53
  266. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +1 -1
  267. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
  268. package/dist/collection/connector/nylas-scheduler-config-connector/index.js.map +1 -1
  269. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js +8 -0
  270. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js.map +1 -1
  271. package/dist/collection/connector/shared/api/scheduler-config.js +118 -30
  272. package/dist/collection/connector/shared/api/scheduler-config.js.map +1 -1
  273. package/dist/collection/connector/shared/api/scheduler.js +6 -1
  274. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  275. package/dist/collection/index.js +0 -1
  276. package/dist/collection/index.js.map +1 -1
  277. package/dist/collection/stores/scheduler-config-store.js +15 -2
  278. package/dist/collection/stores/scheduler-config-store.js.map +1 -1
  279. package/dist/collection/utils/utils.js +16 -0
  280. package/dist/collection/utils/utils.js.map +1 -1
  281. package/dist/collection/utils/utils.spec.js +8 -1
  282. package/dist/collection/utils/utils.spec.js.map +1 -1
  283. package/dist/components/add-circle.js +1 -2
  284. package/dist/components/add-circle.js.map +1 -1
  285. package/dist/components/archive.js +1 -2
  286. package/dist/components/archive.js.map +1 -1
  287. package/dist/components/arrow.js +1 -2
  288. package/dist/components/arrow.js.map +1 -1
  289. package/dist/components/bold.js +1 -2
  290. package/dist/components/bold.js.map +1 -1
  291. package/dist/components/button-component2.js +2 -3
  292. package/dist/components/button-component2.js.map +1 -1
  293. package/dist/components/calendar-cancel.js +1 -2
  294. package/dist/components/calendar-cancel.js.map +1 -1
  295. package/dist/components/calendar-check.js +1 -2
  296. package/dist/components/calendar-check.js.map +1 -1
  297. package/dist/components/calendar-info.js +1 -2
  298. package/dist/components/calendar-info.js.map +1 -1
  299. package/dist/components/calendar-patterns.js +1 -2
  300. package/dist/components/calendar-patterns.js.map +1 -1
  301. package/dist/components/calendar.js +1 -2
  302. package/dist/components/calendar.js.map +1 -1
  303. package/dist/components/checkmark-circle.js +1 -2
  304. package/dist/components/checkmark-circle.js.map +1 -1
  305. package/dist/components/chevron.js +1 -2
  306. package/dist/components/chevron.js.map +1 -1
  307. package/dist/components/close.js +1 -2
  308. package/dist/components/close.js.map +1 -1
  309. package/dist/components/constants.js +11 -2
  310. package/dist/components/constants.js.map +1 -1
  311. package/dist/components/document-refresh-icon.js +1 -2
  312. package/dist/components/document-refresh-icon.js.map +1 -1
  313. package/dist/components/flow.js +1 -2
  314. package/dist/components/flow.js.map +1 -1
  315. package/dist/components/focus-visible.js +1 -1
  316. package/dist/components/folder.js +1 -2
  317. package/dist/components/folder.js.map +1 -1
  318. package/dist/components/forward.js +1 -2
  319. package/dist/components/forward.js.map +1 -1
  320. package/dist/components/globe.js +1 -2
  321. package/dist/components/globe.js.map +1 -1
  322. package/dist/components/google-logo.js +1 -2
  323. package/dist/components/google-logo.js.map +1 -1
  324. package/dist/components/inbox.js +1 -2
  325. package/dist/components/inbox.js.map +1 -1
  326. package/dist/components/index.es.js +8 -3
  327. package/dist/components/index.es.js.map +1 -1
  328. package/dist/components/info.js +1 -2
  329. package/dist/components/info.js.map +1 -1
  330. package/dist/components/italic.js +1 -2
  331. package/dist/components/italic.js.map +1 -1
  332. package/dist/components/loading.js +1 -2
  333. package/dist/components/loading.js.map +1 -1
  334. package/dist/components/location-off.js +1 -2
  335. package/dist/components/location-off.js.map +1 -1
  336. package/dist/components/location.js +1 -2
  337. package/dist/components/location.js.map +1 -1
  338. package/dist/components/mailbox-store.js +1 -1
  339. package/dist/components/microsoft-logo.js +1 -2
  340. package/dist/components/microsoft-logo.js.map +1 -1
  341. package/dist/components/multi-select-dropdown2.js +3 -4
  342. package/dist/components/multi-select-dropdown2.js.map +1 -1
  343. package/dist/components/nylas-additional-participants.js +2 -3
  344. package/dist/components/nylas-additional-participants.js.map +1 -1
  345. package/dist/components/nylas-api-request.js +28 -7
  346. package/dist/components/nylas-api-request.js.map +1 -1
  347. package/dist/components/nylas-availability-picker2.js +33 -15
  348. package/dist/components/nylas-availability-picker2.js.map +1 -1
  349. package/dist/components/nylas-booked-event-card2.js +1 -2
  350. package/dist/components/nylas-booked-event-card2.js.map +1 -1
  351. package/dist/components/nylas-booking-calendar-picker2.js +12 -6
  352. package/dist/components/nylas-booking-calendar-picker2.js.map +1 -1
  353. package/dist/components/nylas-booking-form2.js +1 -2
  354. package/dist/components/nylas-booking-form2.js.map +1 -1
  355. package/dist/components/nylas-buffer-time2.js +1 -2
  356. package/dist/components/nylas-buffer-time2.js.map +1 -1
  357. package/dist/components/nylas-calendar-picker2.js +13 -9
  358. package/dist/components/nylas-calendar-picker2.js.map +1 -1
  359. package/dist/components/nylas-cancel-booking-form2.js +2 -3
  360. package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
  361. package/dist/components/nylas-cancelled-event-card2.js +2 -3
  362. package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
  363. package/dist/components/nylas-composer2.js +2 -3
  364. package/dist/components/nylas-composer2.js.map +1 -1
  365. package/dist/components/nylas-custom-booking-flow2.js +23 -13
  366. package/dist/components/nylas-custom-booking-flow2.js.map +1 -1
  367. package/dist/components/nylas-date-picker2.js +1 -2
  368. package/dist/components/nylas-date-picker2.js.map +1 -1
  369. package/dist/components/nylas-editor-tabs2.js +91 -43
  370. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  371. package/dist/components/nylas-event-description2.js +17 -7
  372. package/dist/components/nylas-event-description2.js.map +1 -1
  373. package/dist/components/nylas-event-duration2.js +16 -10
  374. package/dist/components/nylas-event-duration2.js.map +1 -1
  375. package/dist/components/nylas-event-info2.js +2 -3
  376. package/dist/components/nylas-event-info2.js.map +1 -1
  377. package/dist/components/nylas-event-limits2.js +2 -3
  378. package/dist/components/nylas-event-limits2.js.map +1 -1
  379. package/dist/components/nylas-event-title2.js +56 -14
  380. package/dist/components/nylas-event-title2.js.map +1 -1
  381. package/dist/components/nylas-form-card2.js +2 -3
  382. package/dist/components/nylas-form-card2.js.map +1 -1
  383. package/dist/components/nylas-if-state.js +1 -2
  384. package/dist/components/nylas-if-state.js.map +1 -1
  385. package/dist/components/nylas-limit-future-bookings2.js +25 -11
  386. package/dist/components/nylas-limit-future-bookings2.js.map +1 -1
  387. package/dist/components/nylas-list-configurations.d.ts +11 -0
  388. package/dist/components/nylas-list-configurations.js +8 -0
  389. package/dist/components/nylas-list-configurations.js.map +1 -0
  390. package/dist/components/nylas-list-configurations2.js +159 -0
  391. package/dist/components/nylas-list-configurations2.js.map +1 -0
  392. package/dist/components/nylas-list-folders.js +2 -3
  393. package/dist/components/nylas-list-folders.js.map +1 -1
  394. package/dist/components/nylas-list-threads.js +2 -3
  395. package/dist/components/nylas-list-threads.js.map +1 -1
  396. package/dist/components/nylas-locale-switch2.js +0 -1
  397. package/dist/components/nylas-locale-switch2.js.map +1 -1
  398. package/dist/components/nylas-location-component2.js +18 -6
  399. package/dist/components/nylas-location-component2.js.map +1 -1
  400. package/dist/components/nylas-login.js +1 -2
  401. package/dist/components/nylas-login.js.map +1 -1
  402. package/dist/components/nylas-logo2.js +1 -2
  403. package/dist/components/nylas-logo2.js.map +1 -1
  404. package/dist/components/nylas-mailbox-pagination.js +1 -2
  405. package/dist/components/nylas-mailbox-pagination.js.map +1 -1
  406. package/dist/components/nylas-mailbox-toolbar-button.js +2 -3
  407. package/dist/components/nylas-mailbox-toolbar-button.js.map +1 -1
  408. package/dist/components/nylas-mailbox.js +2 -3
  409. package/dist/components/nylas-mailbox.js.map +1 -1
  410. package/dist/components/nylas-min-cancellation-notice2.js +29 -13
  411. package/dist/components/nylas-min-cancellation-notice2.js.map +1 -1
  412. package/dist/components/nylas-notification2.js +2 -3
  413. package/dist/components/nylas-notification2.js.map +1 -1
  414. package/dist/components/nylas-provider.js +2 -3
  415. package/dist/components/nylas-provider.js.map +1 -1
  416. package/dist/components/nylas-scheduler-editor.js +270 -136
  417. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  418. package/dist/components/nylas-scheduling.js +1 -2
  419. package/dist/components/nylas-scheduling.js.map +1 -1
  420. package/dist/components/nylas-selected-event-card2.js +1 -2
  421. package/dist/components/nylas-selected-event-card2.js.map +1 -1
  422. package/dist/components/nylas-summarize-message-button2.js +3 -4
  423. package/dist/components/nylas-summarize-message-button2.js.map +1 -1
  424. package/dist/components/nylas-threads-refresh.js +3 -4
  425. package/dist/components/nylas-threads-refresh.js.map +1 -1
  426. package/dist/components/nylas-threads-search.js +2 -3
  427. package/dist/components/nylas-threads-search.js.map +1 -1
  428. package/dist/components/nylas-time-window-picker2.js +2 -4
  429. package/dist/components/nylas-time-window-picker2.js.map +1 -1
  430. package/dist/components/nylas-timeslot-picker2.js +1 -2
  431. package/dist/components/nylas-timeslot-picker2.js.map +1 -1
  432. package/dist/components/nylas-view-email2.js +2 -4
  433. package/dist/components/nylas-view-email2.js.map +1 -1
  434. package/dist/components/nylas-view-thread.js +2 -3
  435. package/dist/components/nylas-view-thread.js.map +1 -1
  436. package/dist/components/people-icon.js +1 -2
  437. package/dist/components/people-icon.js.map +1 -1
  438. package/dist/components/play.js +1 -2
  439. package/dist/components/play.js.map +1 -1
  440. package/dist/components/refresh.js +1 -2
  441. package/dist/components/refresh.js.map +1 -1
  442. package/dist/components/register-component.js +7 -1
  443. package/dist/components/register-component.js.map +1 -1
  444. package/dist/components/reply-all.js +1 -2
  445. package/dist/components/reply-all.js.map +1 -1
  446. package/dist/components/reply.js +1 -2
  447. package/dist/components/reply.js.map +1 -1
  448. package/dist/components/scheduler-config-store.js +15 -2
  449. package/dist/components/scheduler-config-store.js.map +1 -1
  450. package/dist/components/scheduler-store.js +15 -2
  451. package/dist/components/scheduler-store.js.map +1 -1
  452. package/dist/components/search.js +1 -2
  453. package/dist/components/search.js.map +1 -1
  454. package/dist/components/select-dropdown2.js +2 -3
  455. package/dist/components/select-dropdown2.js.map +1 -1
  456. package/dist/components/sent.js +1 -2
  457. package/dist/components/sent.js.map +1 -1
  458. package/dist/components/spam.js +1 -2
  459. package/dist/components/spam.js.map +1 -1
  460. package/dist/components/star.js +1 -2
  461. package/dist/components/star.js.map +1 -1
  462. package/dist/components/stop.js +1 -2
  463. package/dist/components/stop.js.map +1 -1
  464. package/dist/components/time-period-selector2.js +2 -3
  465. package/dist/components/time-period-selector2.js.map +1 -1
  466. package/dist/components/toolitp-component.js +1 -2
  467. package/dist/components/toolitp-component.js.map +1 -1
  468. package/dist/components/translate.js +1 -2
  469. package/dist/components/translate.js.map +1 -1
  470. package/dist/components/trash.js +1 -2
  471. package/dist/components/trash.js.map +1 -1
  472. package/dist/components/underline.js +1 -2
  473. package/dist/components/underline.js.map +1 -1
  474. package/dist/components/utils.js +49 -2
  475. package/dist/components/utils.js.map +1 -1
  476. package/dist/components/warning.js +1 -2
  477. package/dist/components/warning.js.map +1 -1
  478. package/dist/esm/add-circle-icon.entry.js +1 -1
  479. package/dist/esm/add-circle-icon_22.entry.js +224 -94
  480. package/dist/esm/add-circle-icon_22.entry.js.map +1 -1
  481. package/dist/esm/archive-icon.entry.js +1 -1
  482. package/dist/esm/archive-icon_7.entry.js +7 -7
  483. package/dist/esm/arrow-icon.entry.js +1 -1
  484. package/dist/esm/bold-icon.entry.js +1 -1
  485. package/dist/esm/bold-icon_3.entry.js +3 -3
  486. package/dist/esm/button-component.entry.js +2 -2
  487. package/dist/esm/button-component.entry.js.map +1 -1
  488. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  489. package/dist/esm/calendar-check-icon.entry.js +1 -1
  490. package/dist/esm/calendar-check-icon_2.entry.js +2 -2
  491. package/dist/esm/calendar-icon.entry.js +1 -1
  492. package/dist/esm/calendar-info-icon.entry.js +1 -1
  493. package/dist/esm/calendar-patterns-icon.entry.js +1 -1
  494. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  495. package/dist/esm/chevron-icon.entry.js +1 -1
  496. package/dist/esm/chevron-icon_3.entry.js +4 -4
  497. package/dist/esm/close-icon.entry.js +1 -1
  498. package/dist/esm/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
  499. package/dist/esm/{constants-335dffcf.js.map → constants-bf39e913.js.map} +1 -1
  500. package/dist/esm/{constants-6ee60d6d.js → constants-f34b9c6e.js} +11 -2
  501. package/dist/esm/{constants-6ee60d6d.js.map → constants-f34b9c6e.js.map} +1 -1
  502. package/dist/esm/document-refresh-icon.entry.js +1 -1
  503. package/dist/esm/flow-icon.entry.js +1 -1
  504. package/dist/esm/folder-icon.entry.js +1 -1
  505. package/dist/esm/forward-icon.entry.js +1 -1
  506. package/dist/esm/forward-icon_6.entry.js +9 -9
  507. package/dist/esm/globe-icon.entry.js +1 -1
  508. package/dist/esm/google-logo-icon.entry.js +1 -1
  509. package/dist/esm/google-logo-icon_4.entry.js +460 -0
  510. package/dist/esm/google-logo-icon_4.entry.js.map +1 -0
  511. package/dist/esm/inbox-icon.entry.js +1 -1
  512. package/dist/esm/index-7cb0dd3d.js +1 -158
  513. package/dist/esm/index-8362ce5c.js +1 -358
  514. package/dist/{nylas-web-elements/index.es-bd511719.js → esm/index.es-2842f8c8.js} +9 -4
  515. package/dist/esm/index.es-2842f8c8.js.map +1 -0
  516. package/dist/esm/{index.es-2578c6a5.js → index.es-f57e612a.js} +9 -4
  517. package/dist/esm/index.es-f57e612a.js.map +1 -0
  518. package/dist/esm/index.js +3 -1
  519. package/dist/esm/index.js.map +1 -1
  520. package/dist/esm/info-icon.entry.js +1 -1
  521. package/dist/esm/info-icon_2.entry.js +2 -2
  522. package/dist/esm/italic-icon.entry.js +1 -1
  523. package/dist/esm/loader.js +1 -1
  524. package/dist/esm/loading-icon.entry.js +1 -1
  525. package/dist/esm/location-icon.entry.js +1 -1
  526. package/dist/esm/location-off-icon.entry.js +1 -1
  527. package/dist/esm/{mailbox-store-bb21512c.js → mailbox-store-47fc8a1a.js} +3 -3
  528. package/dist/esm/{mailbox-store-150cc456.js.map → mailbox-store-47fc8a1a.js.map} +1 -1
  529. package/dist/esm/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
  530. package/dist/{nylas-web-elements/mailbox-store-150cc456.js.map → esm/mailbox-store-d48269de.js.map} +1 -1
  531. package/dist/esm/microsoft-logo-icon.entry.js +1 -1
  532. package/dist/esm/multi-select-dropdown.entry.js +3 -3
  533. package/dist/esm/nylas-additional-participants.entry.js +3 -3
  534. package/dist/esm/nylas-api-request-8932547a.js +56 -0
  535. package/dist/esm/nylas-api-request-8932547a.js.map +1 -0
  536. package/dist/esm/nylas-api-request-b085294d.js +58 -0
  537. package/dist/esm/nylas-api-request-b085294d.js.map +1 -0
  538. package/dist/esm/nylas-availability-picker.entry.js +33 -16
  539. package/dist/esm/nylas-availability-picker.entry.js.map +1 -1
  540. package/dist/esm/nylas-booked-event-card.entry.js +3 -3
  541. package/dist/esm/nylas-booked-event-card_10.entry.js +7 -7
  542. package/dist/esm/nylas-booking-calendar-picker.entry.js +12 -6
  543. package/dist/esm/nylas-booking-calendar-picker.entry.js.map +1 -1
  544. package/dist/esm/nylas-booking-form.entry.js +2 -2
  545. package/dist/esm/nylas-buffer-time.entry.js +2 -2
  546. package/dist/esm/nylas-calendar-picker.entry.js +13 -8
  547. package/dist/esm/nylas-calendar-picker.entry.js.map +1 -1
  548. package/dist/esm/nylas-cancel-booking-form.entry.js +3 -3
  549. package/dist/esm/nylas-cancelled-event-card.entry.js +3 -3
  550. package/dist/esm/nylas-composer.entry.js +2 -2
  551. package/dist/esm/nylas-custom-booking-flow.entry.js +21 -12
  552. package/dist/esm/nylas-custom-booking-flow.entry.js.map +1 -1
  553. package/dist/esm/nylas-date-picker.entry.js +2 -2
  554. package/dist/esm/nylas-editor-tabs.entry.js +86 -40
  555. package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
  556. package/dist/esm/nylas-event-description.entry.js +15 -6
  557. package/dist/esm/nylas-event-description.entry.js.map +1 -1
  558. package/dist/esm/nylas-event-duration.entry.js +15 -10
  559. package/dist/esm/nylas-event-duration.entry.js.map +1 -1
  560. package/dist/esm/nylas-event-info.entry.js +3 -3
  561. package/dist/esm/nylas-event-limits.entry.js +3 -3
  562. package/dist/esm/nylas-event-title.entry.js +52 -12
  563. package/dist/esm/nylas-event-title.entry.js.map +1 -1
  564. package/dist/esm/nylas-form-card.entry.js +3 -3
  565. package/dist/esm/nylas-if-state.entry.js +2 -2
  566. package/dist/esm/nylas-limit-future-bookings.entry.js +24 -11
  567. package/dist/esm/nylas-limit-future-bookings.entry.js.map +1 -1
  568. package/dist/esm/nylas-list-configurations.entry.js +125 -0
  569. package/dist/esm/nylas-list-configurations.entry.js.map +1 -0
  570. package/dist/esm/nylas-list-folders.entry.js +3 -3
  571. package/dist/esm/nylas-list-threads.entry.js +3 -3
  572. package/dist/esm/nylas-locale-switch.entry.js +3 -3
  573. package/dist/esm/nylas-location-component.entry.js +17 -6
  574. package/dist/esm/nylas-location-component.entry.js.map +1 -1
  575. package/dist/esm/nylas-login.entry.js +3 -3
  576. package/dist/esm/nylas-logo.entry.js +1 -1
  577. package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
  578. package/dist/esm/nylas-mailbox-toolbar-button.entry.js +3 -3
  579. package/dist/esm/nylas-mailbox.entry.js +4 -4
  580. package/dist/esm/nylas-min-cancellation-notice.entry.js +28 -13
  581. package/dist/esm/nylas-min-cancellation-notice.entry.js.map +1 -1
  582. package/dist/esm/nylas-notification.entry.js +2 -2
  583. package/dist/esm/nylas-provider.entry.js +6 -6
  584. package/dist/esm/nylas-scheduler-editor.entry.js +202 -76
  585. package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
  586. package/dist/esm/nylas-scheduling.entry.js +3 -3
  587. package/dist/esm/nylas-selected-event-card.entry.js +3 -3
  588. package/dist/esm/nylas-summarize-message-button.entry.js +4 -4
  589. package/dist/esm/nylas-threads-refresh.entry.js +4 -4
  590. package/dist/esm/nylas-threads-search.entry.js +3 -3
  591. package/dist/esm/nylas-time-window-picker.entry.js +2 -2
  592. package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
  593. package/dist/esm/nylas-view-email.entry.js +2 -2
  594. package/dist/esm/nylas-view-thread.entry.js +3 -3
  595. package/dist/esm/nylas-web-elements.js +1 -1
  596. package/dist/esm/people-icon.entry.js +1 -1
  597. package/dist/esm/play-icon.entry.js +1 -1
  598. package/dist/esm/play-icon_2.entry.js +2 -2
  599. package/dist/esm/refresh-icon.entry.js +1 -1
  600. package/dist/esm/{register-component-dc659dc3.js → register-component-cf5c8420.js} +8 -2
  601. package/dist/esm/register-component-cf5c8420.js.map +1 -0
  602. package/dist/{nylas-web-elements/register-component-0645dce0.js → esm/register-component-e5afe237.js} +8 -2
  603. package/dist/esm/register-component-e5afe237.js.map +1 -0
  604. package/dist/esm/reply-all-icon.entry.js +1 -1
  605. package/dist/esm/reply-icon.entry.js +1 -1
  606. package/dist/esm/scheduler-config-store-07d98279.js +30 -0
  607. package/dist/esm/scheduler-config-store-07d98279.js.map +1 -0
  608. package/dist/esm/scheduler-config-store-8f2e658e.js +30 -0
  609. package/dist/esm/scheduler-config-store-8f2e658e.js.map +1 -0
  610. package/dist/{nylas-web-elements/scheduler-store-4d0a4f8a.js → esm/scheduler-store-66c2168c.js} +16 -3
  611. package/dist/esm/scheduler-store-66c2168c.js.map +1 -0
  612. package/dist/esm/{scheduler-store-72116723.js → scheduler-store-a175fc3e.js} +16 -3
  613. package/dist/esm/scheduler-store-a175fc3e.js.map +1 -0
  614. package/dist/esm/search-icon.entry.js +1 -1
  615. package/dist/esm/select-dropdown.entry.js +2 -2
  616. package/dist/esm/sent-icon.entry.js +1 -1
  617. package/dist/esm/spam-icon.entry.js +1 -1
  618. package/dist/esm/star-icon.entry.js +1 -1
  619. package/dist/esm/stop-icon.entry.js +1 -1
  620. package/dist/esm/time-period-selector.entry.js +2 -2
  621. package/dist/esm/tooltip-component.entry.js +1 -1
  622. package/dist/esm/translate-icon.entry.js +1 -1
  623. package/dist/esm/trash-icon.entry.js +1 -1
  624. package/dist/esm/underline-icon.entry.js +1 -1
  625. package/dist/esm/{utils-3a8d433a.js → utils-73d8a928.js} +18 -2
  626. package/dist/{nylas-web-elements/utils-3a8d433a.js.map → esm/utils-73d8a928.js.map} +1 -1
  627. package/dist/esm/{utils-c00bdc3c.js → utils-d6204242.js} +18 -2
  628. package/dist/esm/utils-d6204242.js.map +1 -0
  629. package/dist/esm/warning-icon.entry.js +1 -1
  630. package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
  631. package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
  632. package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
  633. package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
  634. package/dist/nylas-web-elements/button-component.entry.js +2 -2
  635. package/dist/nylas-web-elements/button-component.entry.js.map +1 -1
  636. package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
  637. package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
  638. package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
  639. package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
  640. package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
  641. package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
  642. package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
  643. package/dist/nylas-web-elements/close-icon.entry.js +1 -1
  644. package/dist/nylas-web-elements/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
  645. package/dist/nylas-web-elements/{constants-335dffcf.js.map → constants-bf39e913.js.map} +1 -1
  646. package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
  647. package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
  648. package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
  649. package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
  650. package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
  651. package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
  652. package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
  653. package/dist/{esm/index.es-bd511719.js → nylas-web-elements/index.es-2842f8c8.js} +9 -4
  654. package/dist/nylas-web-elements/index.es-2842f8c8.js.map +1 -0
  655. package/dist/nylas-web-elements/index.esm.js +3 -1
  656. package/dist/nylas-web-elements/index.esm.js.map +1 -1
  657. package/dist/nylas-web-elements/info-icon.entry.js +1 -1
  658. package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
  659. package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
  660. package/dist/nylas-web-elements/location-icon.entry.js +1 -1
  661. package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
  662. package/dist/nylas-web-elements/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
  663. package/dist/{esm/mailbox-store-bb21512c.js.map → nylas-web-elements/mailbox-store-d48269de.js.map} +1 -1
  664. package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
  665. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +3 -3
  666. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +3 -3
  667. package/dist/nylas-web-elements/nylas-api-request-b085294d.js +58 -0
  668. package/dist/nylas-web-elements/nylas-api-request-b085294d.js.map +1 -0
  669. package/dist/nylas-web-elements/nylas-availability-picker.entry.js +33 -16
  670. package/dist/nylas-web-elements/nylas-availability-picker.entry.js.map +1 -1
  671. package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +3 -3
  672. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +12 -6
  673. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js.map +1 -1
  674. package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
  675. package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
  676. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +13 -8
  677. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js.map +1 -1
  678. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +3 -3
  679. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +3 -3
  680. package/dist/nylas-web-elements/nylas-composer.entry.js +2 -2
  681. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +21 -12
  682. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js.map +1 -1
  683. package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
  684. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +86 -40
  685. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
  686. package/dist/nylas-web-elements/nylas-event-description.entry.js +15 -6
  687. package/dist/nylas-web-elements/nylas-event-description.entry.js.map +1 -1
  688. package/dist/nylas-web-elements/nylas-event-duration.entry.js +15 -10
  689. package/dist/nylas-web-elements/nylas-event-duration.entry.js.map +1 -1
  690. package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
  691. package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
  692. package/dist/nylas-web-elements/nylas-event-title.entry.js +52 -12
  693. package/dist/nylas-web-elements/nylas-event-title.entry.js.map +1 -1
  694. package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
  695. package/dist/nylas-web-elements/nylas-if-state.entry.js +2 -2
  696. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +24 -11
  697. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js.map +1 -1
  698. package/dist/nylas-web-elements/nylas-list-configurations.entry.js +125 -0
  699. package/dist/nylas-web-elements/nylas-list-configurations.entry.js.map +1 -0
  700. package/dist/nylas-web-elements/nylas-list-folders.entry.js +3 -3
  701. package/dist/nylas-web-elements/nylas-list-threads.entry.js +3 -3
  702. package/dist/nylas-web-elements/nylas-locale-switch.entry.js +3 -3
  703. package/dist/nylas-web-elements/nylas-location-component.entry.js +17 -6
  704. package/dist/nylas-web-elements/nylas-location-component.entry.js.map +1 -1
  705. package/dist/nylas-web-elements/nylas-login.entry.js +3 -3
  706. package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
  707. package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
  708. package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +3 -3
  709. package/dist/nylas-web-elements/nylas-mailbox.entry.js +4 -4
  710. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +28 -13
  711. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js.map +1 -1
  712. package/dist/nylas-web-elements/nylas-notification.entry.js +2 -2
  713. package/dist/nylas-web-elements/nylas-provider.entry.js +6 -6
  714. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +202 -76
  715. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
  716. package/dist/nylas-web-elements/nylas-scheduling.entry.js +3 -3
  717. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +3 -3
  718. package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +4 -4
  719. package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +4 -4
  720. package/dist/nylas-web-elements/nylas-threads-search.entry.js +3 -3
  721. package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
  722. package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
  723. package/dist/nylas-web-elements/nylas-view-email.entry.js +2 -2
  724. package/dist/nylas-web-elements/nylas-view-thread.entry.js +3 -3
  725. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  726. package/dist/nylas-web-elements/p-00a9efc1.entry.js +2 -0
  727. package/dist/nylas-web-elements/p-1a91cce5.entry.js +2 -0
  728. package/dist/nylas-web-elements/p-1a91cce5.entry.js.map +1 -0
  729. package/dist/nylas-web-elements/{p-3631e6e5.entry.js → p-1d25ca06.entry.js} +2 -2
  730. package/dist/nylas-web-elements/p-1e445e86.entry.js +2 -0
  731. package/dist/nylas-web-elements/{p-395f49eb.entry.js → p-2081b475.entry.js} +2 -2
  732. package/dist/nylas-web-elements/p-22e5436c.js +2 -0
  733. package/dist/nylas-web-elements/p-22e5436c.js.map +1 -0
  734. package/dist/nylas-web-elements/p-2b636359.entry.js +2 -0
  735. package/dist/nylas-web-elements/p-2b636359.entry.js.map +1 -0
  736. package/dist/nylas-web-elements/{p-4ee6f11e.entry.js → p-30784693.entry.js} +2 -2
  737. package/dist/nylas-web-elements/{p-40ed7eab.entry.js → p-33b940fb.entry.js} +2 -2
  738. package/dist/nylas-web-elements/p-343a02e1.entry.js +2 -0
  739. package/dist/nylas-web-elements/{p-4d9fceeb.entry.js → p-343b8684.entry.js} +2 -2
  740. package/dist/nylas-web-elements/p-3909ec3f.entry.js +2 -0
  741. package/dist/nylas-web-elements/{p-d85eecf4.entry.js.map → p-3909ec3f.entry.js.map} +1 -1
  742. package/dist/nylas-web-elements/{p-409d4410.entry.js → p-3b281401.entry.js} +2 -2
  743. package/dist/nylas-web-elements/{p-901f9612.js → p-41dc0d93.js} +2 -2
  744. package/dist/nylas-web-elements/p-41dc0d93.js.map +1 -0
  745. package/dist/nylas-web-elements/{p-5a3809a7.entry.js → p-42791515.entry.js} +2 -2
  746. package/dist/nylas-web-elements/p-44a9ce77.entry.js +2 -0
  747. package/dist/nylas-web-elements/{p-1819b3d7.js → p-49f716ed.js} +4 -4
  748. package/dist/nylas-web-elements/p-49f716ed.js.map +1 -0
  749. package/dist/nylas-web-elements/{p-b2208193.entry.js → p-50b4a80f.entry.js} +2 -2
  750. package/dist/nylas-web-elements/{p-42a4c2fd.entry.js → p-571472d4.entry.js} +2 -2
  751. package/dist/nylas-web-elements/{p-2523c292.entry.js → p-607b547b.entry.js} +2 -2
  752. package/dist/nylas-web-elements/{p-006ab406.entry.js → p-6110351b.entry.js} +2 -2
  753. package/dist/nylas-web-elements/{p-65062d50.entry.js → p-665ef10b.entry.js} +4 -4
  754. package/dist/nylas-web-elements/p-665ef10b.entry.js.map +1 -0
  755. package/dist/nylas-web-elements/{p-deafc6bc.entry.js → p-694b511a.entry.js} +2 -2
  756. package/dist/nylas-web-elements/{p-64364434.entry.js → p-73c062f8.entry.js} +2 -2
  757. package/dist/nylas-web-elements/p-75a8d077.entry.js +2 -0
  758. package/dist/nylas-web-elements/{p-41c1654e.entry.js.map → p-75a8d077.entry.js.map} +1 -1
  759. package/dist/nylas-web-elements/p-7c55dfa0.entry.js +2 -0
  760. package/dist/nylas-web-elements/{p-ba3d383f.entry.js.map → p-7c55dfa0.entry.js.map} +1 -1
  761. package/dist/nylas-web-elements/{p-3da66838.entry.js → p-80d6175c.entry.js} +2 -2
  762. package/dist/nylas-web-elements/p-939db546.entry.js +2 -0
  763. package/dist/nylas-web-elements/{p-a1e27dc5.entry.js → p-95a3094a.entry.js} +2 -2
  764. package/dist/nylas-web-elements/p-9ea458c3.js +2 -0
  765. package/dist/nylas-web-elements/p-9ea458c3.js.map +1 -0
  766. package/dist/nylas-web-elements/p-a628eaeb.js +2 -0
  767. package/dist/nylas-web-elements/p-a628eaeb.js.map +1 -0
  768. package/dist/nylas-web-elements/p-ad64c2b8.entry.js +2 -0
  769. package/dist/nylas-web-elements/{p-baa620b4.entry.js → p-b25821e1.entry.js} +2 -2
  770. package/dist/nylas-web-elements/{p-374527e6.entry.js → p-b53062f7.entry.js} +2 -2
  771. package/dist/nylas-web-elements/p-bbf9aff2.entry.js +2 -0
  772. package/dist/nylas-web-elements/p-c20ab972.entry.js +2 -0
  773. package/dist/nylas-web-elements/{p-7b1bb792.entry.js → p-cc674b3b.entry.js} +3 -3
  774. package/dist/nylas-web-elements/p-d8f09631.entry.js +2 -0
  775. package/dist/nylas-web-elements/p-db15d382.js +2 -0
  776. package/dist/nylas-web-elements/p-db15d382.js.map +1 -0
  777. package/dist/nylas-web-elements/{p-9dac153b.entry.js → p-df6d54c7.entry.js} +2 -2
  778. package/dist/nylas-web-elements/{p-d224c7af.entry.js → p-e03b2592.entry.js} +2 -2
  779. package/dist/nylas-web-elements/{p-9f168ff0.js → p-e22aa0b0.js} +2 -2
  780. package/dist/nylas-web-elements/{p-408dda49.js → p-eaa9151b.js} +2 -2
  781. package/dist/nylas-web-elements/p-eaa9151b.js.map +1 -0
  782. package/dist/nylas-web-elements/{p-ad9c3cab.entry.js → p-f154a362.entry.js} +2 -2
  783. package/dist/nylas-web-elements/{p-ae01e1cb.entry.js → p-f1f8f745.entry.js} +2 -2
  784. package/dist/nylas-web-elements/people-icon.entry.js +1 -1
  785. package/dist/nylas-web-elements/play-icon.entry.js +1 -1
  786. package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
  787. package/dist/{esm/register-component-0645dce0.js → nylas-web-elements/register-component-e5afe237.js} +8 -2
  788. package/dist/nylas-web-elements/register-component-e5afe237.js.map +1 -0
  789. package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
  790. package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
  791. package/dist/nylas-web-elements/scheduler-config-store-8f2e658e.js +30 -0
  792. package/dist/nylas-web-elements/scheduler-config-store-8f2e658e.js.map +1 -0
  793. package/dist/{esm/scheduler-store-4d0a4f8a.js → nylas-web-elements/scheduler-store-66c2168c.js} +16 -3
  794. package/dist/nylas-web-elements/scheduler-store-66c2168c.js.map +1 -0
  795. package/dist/nylas-web-elements/search-icon.entry.js +1 -1
  796. package/dist/nylas-web-elements/select-dropdown.entry.js +2 -2
  797. package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
  798. package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
  799. package/dist/nylas-web-elements/star-icon.entry.js +1 -1
  800. package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
  801. package/dist/nylas-web-elements/time-period-selector.entry.js +2 -2
  802. package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
  803. package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
  804. package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
  805. package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
  806. package/dist/nylas-web-elements/{utils-3a8d433a.js → utils-73d8a928.js} +18 -2
  807. package/dist/{esm/utils-3a8d433a.js.map → nylas-web-elements/utils-73d8a928.js.map} +1 -1
  808. package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
  809. package/dist/types/common/component-types.d.ts +3 -1
  810. package/dist/types/common/constants.d.ts +2 -0
  811. package/dist/types/common/nylas-api-request.d.ts +6 -2
  812. package/dist/types/common/register-component.d.ts +1 -0
  813. package/dist/types/common/types.d.ts +3 -1
  814. package/dist/types/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.d.ts +10 -4
  815. package/dist/types/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.d.ts +2 -0
  816. package/dist/types/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.d.ts +3 -2
  817. package/dist/types/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.d.ts +4 -1
  818. package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +41 -7
  819. package/dist/types/components/scheduler-editor/nylas-event-description/nylas-event-description.d.ts +3 -0
  820. package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts +3 -0
  821. package/dist/types/components/scheduler-editor/nylas-event-title/nylas-event-title.d.ts +6 -1
  822. package/dist/types/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.d.ts +6 -6
  823. package/dist/types/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.d.ts +27 -0
  824. package/dist/types/components/scheduler-editor/nylas-location-component/nylas-location-component.d.ts +3 -0
  825. package/dist/types/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.d.ts +4 -1
  826. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.d.ts +4 -0
  827. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +9 -4
  828. package/dist/types/components.d.ts +229 -18
  829. package/dist/types/connector/nylas-connector/index.d.ts +1 -1
  830. package/dist/types/connector/nylas-scheduler-config-connector/index.d.ts +3 -3
  831. package/dist/types/connector/nylas-scheduler-connector/errors/index.d.ts +1 -0
  832. package/dist/types/connector/shared/api/scheduler-config.d.ts +45 -8
  833. package/dist/types/index.d.ts +1 -1
  834. package/dist/types/stores/scheduler-config-store.d.ts +8 -2
  835. package/dist/types/utils/utils.d.ts +4 -1
  836. package/package.json +4 -3
  837. package/dist/cjs/google-logo-icon_3.cjs.entry.js +0 -302
  838. package/dist/cjs/google-logo-icon_3.cjs.entry.js.map +0 -1
  839. package/dist/cjs/index.es-447c5aca.js.map +0 -1
  840. package/dist/cjs/index.es-68425511.js.map +0 -1
  841. package/dist/cjs/nylas-api-request-8ec3a89c.js +0 -39
  842. package/dist/cjs/nylas-api-request-8ec3a89c.js.map +0 -1
  843. package/dist/cjs/nylas-api-request-ab24150d.js +0 -37
  844. package/dist/cjs/nylas-api-request-ab24150d.js.map +0 -1
  845. package/dist/cjs/register-component-d729f3f7.js.map +0 -1
  846. package/dist/cjs/register-component-f1ebc65d.js.map +0 -1
  847. package/dist/cjs/scheduler-config-store-31b83ad3.js +0 -19
  848. package/dist/cjs/scheduler-config-store-31b83ad3.js.map +0 -1
  849. package/dist/cjs/scheduler-config-store-9c2cc421.js +0 -19
  850. package/dist/cjs/scheduler-config-store-9c2cc421.js.map +0 -1
  851. package/dist/cjs/scheduler-store-4cb46b3c.js.map +0 -1
  852. package/dist/cjs/scheduler-store-7320f5d0.js.map +0 -1
  853. package/dist/cjs/utils-53dd7574.js.map +0 -1
  854. package/dist/components/_commonjsHelpers.js +0 -36
  855. package/dist/components/_commonjsHelpers.js.map +0 -1
  856. package/dist/esm/google-logo-icon_3.entry.js +0 -296
  857. package/dist/esm/google-logo-icon_3.entry.js.map +0 -1
  858. package/dist/esm/index.es-2578c6a5.js.map +0 -1
  859. package/dist/esm/index.es-bd511719.js.map +0 -1
  860. package/dist/esm/nylas-api-request-55446aba.js +0 -37
  861. package/dist/esm/nylas-api-request-55446aba.js.map +0 -1
  862. package/dist/esm/nylas-api-request-c97a0153.js +0 -35
  863. package/dist/esm/nylas-api-request-c97a0153.js.map +0 -1
  864. package/dist/esm/register-component-0645dce0.js.map +0 -1
  865. package/dist/esm/register-component-dc659dc3.js.map +0 -1
  866. package/dist/esm/scheduler-config-store-51ee4f42.js +0 -17
  867. package/dist/esm/scheduler-config-store-51ee4f42.js.map +0 -1
  868. package/dist/esm/scheduler-config-store-bc59545b.js +0 -17
  869. package/dist/esm/scheduler-config-store-bc59545b.js.map +0 -1
  870. package/dist/esm/scheduler-store-4d0a4f8a.js.map +0 -1
  871. package/dist/esm/scheduler-store-72116723.js.map +0 -1
  872. package/dist/esm/utils-c00bdc3c.js.map +0 -1
  873. package/dist/nylas-web-elements/index.es-bd511719.js.map +0 -1
  874. package/dist/nylas-web-elements/nylas-api-request-55446aba.js +0 -37
  875. package/dist/nylas-web-elements/nylas-api-request-55446aba.js.map +0 -1
  876. package/dist/nylas-web-elements/p-01bf65c2.entry.js +0 -2
  877. package/dist/nylas-web-elements/p-1819b3d7.js.map +0 -1
  878. package/dist/nylas-web-elements/p-2c5d5953.entry.js +0 -2
  879. package/dist/nylas-web-elements/p-39b280e2.entry.js +0 -2
  880. package/dist/nylas-web-elements/p-39b280e2.entry.js.map +0 -1
  881. package/dist/nylas-web-elements/p-408dda49.js.map +0 -1
  882. package/dist/nylas-web-elements/p-41c1654e.entry.js +0 -2
  883. package/dist/nylas-web-elements/p-65062d50.entry.js.map +0 -1
  884. package/dist/nylas-web-elements/p-65fdfb60.js +0 -2
  885. package/dist/nylas-web-elements/p-65fdfb60.js.map +0 -1
  886. package/dist/nylas-web-elements/p-901f9612.js.map +0 -1
  887. package/dist/nylas-web-elements/p-a0c2ce03.entry.js +0 -2
  888. package/dist/nylas-web-elements/p-a3d5a1dd.entry.js +0 -2
  889. package/dist/nylas-web-elements/p-ba3d383f.entry.js +0 -2
  890. package/dist/nylas-web-elements/p-bfdc148c.entry.js +0 -2
  891. package/dist/nylas-web-elements/p-cadc9052.js +0 -2
  892. package/dist/nylas-web-elements/p-cadc9052.js.map +0 -1
  893. package/dist/nylas-web-elements/p-d67d1c72.js +0 -2
  894. package/dist/nylas-web-elements/p-d67d1c72.js.map +0 -1
  895. package/dist/nylas-web-elements/p-d85eecf4.entry.js +0 -2
  896. package/dist/nylas-web-elements/p-d92a0405.entry.js +0 -2
  897. package/dist/nylas-web-elements/p-de63bc35.entry.js +0 -2
  898. package/dist/nylas-web-elements/p-df5e9aaf.js +0 -2
  899. package/dist/nylas-web-elements/p-df5e9aaf.js.map +0 -1
  900. package/dist/nylas-web-elements/p-eb93a363.entry.js +0 -2
  901. package/dist/nylas-web-elements/p-eb93a363.entry.js.map +0 -1
  902. package/dist/nylas-web-elements/p-f48d0571.entry.js +0 -2
  903. package/dist/nylas-web-elements/p-fbbca7a6.entry.js +0 -2
  904. package/dist/nylas-web-elements/register-component-0645dce0.js.map +0 -1
  905. package/dist/nylas-web-elements/scheduler-config-store-bc59545b.js +0 -17
  906. package/dist/nylas-web-elements/scheduler-config-store-bc59545b.js.map +0 -1
  907. package/dist/nylas-web-elements/scheduler-store-4d0a4f8a.js.map +0 -1
  908. /package/dist/nylas-web-elements/{p-de63bc35.entry.js.map → p-00a9efc1.entry.js.map} +0 -0
  909. /package/dist/nylas-web-elements/{p-3631e6e5.entry.js.map → p-1d25ca06.entry.js.map} +0 -0
  910. /package/dist/nylas-web-elements/{p-bfdc148c.entry.js.map → p-1e445e86.entry.js.map} +0 -0
  911. /package/dist/nylas-web-elements/{p-395f49eb.entry.js.map → p-2081b475.entry.js.map} +0 -0
  912. /package/dist/nylas-web-elements/{p-4ee6f11e.entry.js.map → p-30784693.entry.js.map} +0 -0
  913. /package/dist/nylas-web-elements/{p-40ed7eab.entry.js.map → p-33b940fb.entry.js.map} +0 -0
  914. /package/dist/nylas-web-elements/{p-d92a0405.entry.js.map → p-343a02e1.entry.js.map} +0 -0
  915. /package/dist/nylas-web-elements/{p-4d9fceeb.entry.js.map → p-343b8684.entry.js.map} +0 -0
  916. /package/dist/nylas-web-elements/{p-409d4410.entry.js.map → p-3b281401.entry.js.map} +0 -0
  917. /package/dist/nylas-web-elements/{p-5a3809a7.entry.js.map → p-42791515.entry.js.map} +0 -0
  918. /package/dist/nylas-web-elements/{p-a0c2ce03.entry.js.map → p-44a9ce77.entry.js.map} +0 -0
  919. /package/dist/nylas-web-elements/{p-b2208193.entry.js.map → p-50b4a80f.entry.js.map} +0 -0
  920. /package/dist/nylas-web-elements/{p-42a4c2fd.entry.js.map → p-571472d4.entry.js.map} +0 -0
  921. /package/dist/nylas-web-elements/{p-2523c292.entry.js.map → p-607b547b.entry.js.map} +0 -0
  922. /package/dist/nylas-web-elements/{p-006ab406.entry.js.map → p-6110351b.entry.js.map} +0 -0
  923. /package/dist/nylas-web-elements/{p-deafc6bc.entry.js.map → p-694b511a.entry.js.map} +0 -0
  924. /package/dist/nylas-web-elements/{p-64364434.entry.js.map → p-73c062f8.entry.js.map} +0 -0
  925. /package/dist/nylas-web-elements/{p-3da66838.entry.js.map → p-80d6175c.entry.js.map} +0 -0
  926. /package/dist/nylas-web-elements/{p-01bf65c2.entry.js.map → p-939db546.entry.js.map} +0 -0
  927. /package/dist/nylas-web-elements/{p-a1e27dc5.entry.js.map → p-95a3094a.entry.js.map} +0 -0
  928. /package/dist/nylas-web-elements/{p-f48d0571.entry.js.map → p-ad64c2b8.entry.js.map} +0 -0
  929. /package/dist/nylas-web-elements/{p-baa620b4.entry.js.map → p-b25821e1.entry.js.map} +0 -0
  930. /package/dist/nylas-web-elements/{p-374527e6.entry.js.map → p-b53062f7.entry.js.map} +0 -0
  931. /package/dist/nylas-web-elements/{p-2c5d5953.entry.js.map → p-bbf9aff2.entry.js.map} +0 -0
  932. /package/dist/nylas-web-elements/{p-a3d5a1dd.entry.js.map → p-c20ab972.entry.js.map} +0 -0
  933. /package/dist/nylas-web-elements/{p-7b1bb792.entry.js.map → p-cc674b3b.entry.js.map} +0 -0
  934. /package/dist/nylas-web-elements/{p-fbbca7a6.entry.js.map → p-d8f09631.entry.js.map} +0 -0
  935. /package/dist/nylas-web-elements/{p-9dac153b.entry.js.map → p-df6d54c7.entry.js.map} +0 -0
  936. /package/dist/nylas-web-elements/{p-d224c7af.entry.js.map → p-e03b2592.entry.js.map} +0 -0
  937. /package/dist/nylas-web-elements/{p-9f168ff0.js.map → p-e22aa0b0.js.map} +0 -0
  938. /package/dist/nylas-web-elements/{p-ad9c3cab.entry.js.map → p-f154a362.entry.js.map} +0 -0
  939. /package/dist/nylas-web-elements/{p-ae01e1cb.entry.js.map → p-f1f8f745.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, c as createEvent, H as Host, a as getElement } from './index-7cb0dd3d.js';
2
- import { d as debug, q as timeToMinutes, r as convertTo12HourFormat, s as convertTo24HourFormat, v as minutesToTime, w as getBrowser, x as dayjs, y as autocompleteTimeFormat, z as validateTimeFormatInput, A as roundToNearest15Minutes, B as validateExactTimeFormat } from './utils-c00bdc3c.js';
3
- import { R as RegisterComponent } from './register-component-dc659dc3.js';
4
- import { T as TIMEZONE_MAP, E as EVENT_TITLE_TOKENS } from './constants-6ee60d6d.js';
2
+ import { a as debug, s as timeToMinutes, v as convertTo12HourFormat, w as convertTo24HourFormat, x as minutesToTime, y as getBrowser, z as dayjs, A as autocompleteTimeFormat, B as validateTimeFormatInput, C as roundToNearest15Minutes, D as validateExactTimeFormat } from './utils-d6204242.js';
3
+ import { R as RegisterComponent } from './register-component-cf5c8420.js';
4
+ import { T as TIMEZONE_MAP, E as EVENT_TITLE_TOKENS } from './constants-f34b9c6e.js';
5
5
  import { c as commonjsGlobal } from './_commonjsHelpers-57e89916.js';
6
6
 
7
7
  const iconCss$5 = ".sc-add-circle-icon-h{display:flex}";
@@ -14,12 +14,12 @@ const AddCircleIcon = class {
14
14
  this.height = '25';
15
15
  }
16
16
  render() {
17
- return (h("svg", { key: 'f3782ba9b526dffdc7335be8e63861fd3b99588f', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'f882c2d15fc67cc99d93f748e2917eb7a675655d', d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" })));
17
+ return (h("svg", { key: '58ce81214aeed7ddc1ce5f76d674aba576422d48', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2a47ed74601a5370f0300da06295a2b5969d7e5f', d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" })));
18
18
  }
19
19
  };
20
20
  AddCircleIcon.style = AddCircleIconStyle0;
21
21
 
22
- const buttonComponentCss = "button.sc-button-component{height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}";
22
+ const buttonComponentCss = "button.sc-button-component{height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}";
23
23
  const ButtonComponentStyle0 = buttonComponentCss;
24
24
 
25
25
  const ButtonComponent = class {
@@ -36,7 +36,7 @@ const ButtonComponent = class {
36
36
  }
37
37
  render() {
38
38
  const className = `button-${this.variant}` + (this.disabled ? ' disabled' : '');
39
- return (h("button", { key: 'cfd8e89f59f914245d2c8c8c78476a36d27da859', class: className, disabled: this.disabled, type: "type", onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, h("slot", { key: '4535ee0ad60500247597e0bc127634b04dbe560e' })));
39
+ return (h("button", { key: '3ac840e8b65854c2e4bdabe93b21b5bcda99e4db', class: className, disabled: this.disabled, type: "type", onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, h("slot", { key: '110df0711566be0df89f2e04aed008dcaf91e9f3' })));
40
40
  }
41
41
  };
42
42
  ButtonComponent.style = ButtonComponentStyle0;
@@ -51,7 +51,7 @@ const CalendarInfoIcon = class {
51
51
  this.height = '20';
52
52
  }
53
53
  render() {
54
- return (h("svg", { key: 'a81da147ac49427181db4dddb65aec3a24224ef7', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '95ead56b8fdb4b038cc1811615ffb5117f146920', d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" })));
54
+ return (h("svg", { key: '4c290eae1d55ec9df96cbe6d9ba85d5d8b7ee102', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'a2a76a5d0183952d59f1d2f448dc7c460694e410', d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" })));
55
55
  }
56
56
  };
57
57
  CalendarInfoIcon.style = CalendarInfoIconStyle0;
@@ -66,7 +66,7 @@ const CalendarPatternsIcon = class {
66
66
  this.height = '20';
67
67
  }
68
68
  render() {
69
- return (h("svg", { key: '240e5d737e5c6e987cae5c658dfbb6f60eec94c9', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '7247ab8bb25c0b25173b6acf384866da1a07b59b', d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" })));
69
+ return (h("svg", { key: 'cf8071f578ad04793f5bd5b446dccaa1f6d4c1a3', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '8e8a3c7d87bc41c6d6973a34863d05d996155c1d', d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" })));
70
70
  }
71
71
  };
72
72
  CalendarPatternsIcon.style = CalendarPatternsIconStyle0;
@@ -81,7 +81,7 @@ const FlowIcon = class {
81
81
  this.height = '12';
82
82
  }
83
83
  render() {
84
- return (h("svg", { key: '64cf30f0de8e94ba60072d0b1b36caa28b5123fa', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5af4e418bffe3e59f56d8a9831b3b80b8e45248f', d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" })));
84
+ return (h("svg", { key: 'e0f4da46b751754406e8b0551890a1bffb1100e4', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '21997cb261d91c8589c3e87a01036dc8f91a8d9b', d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" })));
85
85
  }
86
86
  };
87
87
  FlowIcon.style = FlowIconStyle0;
@@ -96,7 +96,7 @@ const LocationIcon = class {
96
96
  this.height = '18';
97
97
  }
98
98
  render() {
99
- return (h("svg", { key: '99aeec9d05c84b5b625d6dde77e639b66da0ba74', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '20ab637f3fb7ba64b1bf145f6a8308632d6ceaa4', d: "M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z", fill: "currentColor" })));
99
+ return (h("svg", { key: '4888ed340800392ac9bb38eb4b868fca595db537', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '20cfaacf5cb828569e0b4ec6d2e83fe3b5264b32', d: "M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z", fill: "currentColor" })));
100
100
  }
101
101
  };
102
102
  LocationIcon.style = LocationIconStyle0;
@@ -111,7 +111,7 @@ const LocationOffIcon = class {
111
111
  this.height = '18';
112
112
  }
113
113
  render() {
114
- return (h("svg", { key: '6ff327f807c0b46549b39b02a5f04e46bdfddfdc', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '4802054ea26248eaf04c81ed9eeaca8c7535c4bf', d: "M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z", fill: "currentColor" })));
114
+ return (h("svg", { key: 'b61c56b0a012359592a4c2575f130ece6fd412c6', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '6be791c9a59fa3634f65881dfbca7adc5e3355d3', d: "M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z", fill: "currentColor" })));
115
115
  }
116
116
  };
117
117
  LocationOffIcon.style = LocationOffIconStyle0;
@@ -239,9 +239,9 @@ const MultiSelectDropdown = class {
239
239
  }, class: { selected: !!option.selected } }, h("label", { htmlFor: option.value }, h("input", { "aria-hidden": "true", id: option.value, type: "checkbox", checked: option.selected }), h("span", null, option.label))));
240
240
  }
241
241
  render() {
242
- return (h(Host, { key: '1cd6593ab9c3fba5bd85b4c6c3b72b5c02d56a06' }, h("div", { key: '4824791de73b31be01c7801569564c8444e14d25', class: "dropdown", part: "msd_dropdown" }, h("label", { key: '9cfb0b87aa5f514d2030ddb0b7f3a53d49ed623a', class: "dropdown-label" }, this.label, h("slot", { key: 'e3e3db4816a4599b82ad9802b50540e4d5029ffe', name: "label-icon", "aria-hidden": "true" })), h("button", { key: 'b00feb7b276c455987f5e9d957eecb88ba3bc65e', part: "msd_dropdown-button", class: { dropbtn: true, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.name, onKeyDown: e => this.handleSelectButtonKeyDown(e) }, h("slot", { key: 'e0abc205d785aaada5884a21e0b94f02828ba09c', name: "select-icon", "aria-hidden": "true" }), h("span", { key: '9c69fcf904171f8cd7129dcf65d00e4ac2e72c4a', class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1
242
+ return (h(Host, { key: '4ef13670e3dfbf55e023ac7532d93c48d21f3004' }, h("div", { key: '8626f138f5be677421697067460ef76d0a7cc697', class: "dropdown", part: "msd_dropdown" }, h("label", { key: 'b723c488dac91c39f285aae1a3f7928844753bf1', class: "dropdown-label" }, this.label, h("slot", { key: '5bdec320647a41de57671c75523a453ccb07af2a', name: "label-icon", "aria-hidden": "true" })), h("button", { key: 'f7d7cf144ac2fec93171b5ac6cd42be4be6b5c93', part: "msd_dropdown-button", class: { dropbtn: true, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.name, onKeyDown: e => this.handleSelectButtonKeyDown(e) }, h("slot", { key: '021e59628b8da260b308819614297c177a666334', name: "select-icon", "aria-hidden": "true" }), h("span", { key: '4a8c921538a23abe4c7efbeb176fb806587092c9', class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1
243
243
  ? `Multiple ${this.name}s selected`
244
- : this.availableOptions.filter(o => o.selected)[0]?.label ?? this.availableOptions[0]?.label), h("span", { key: '71f33e2a554531bb2cb498f857157bdaa28facea', class: this.isOpen ? 'open' : 'closed', "aria-hidden": "true" }, h("chevron-icon", { key: '0f418f723c61306bfa1efb8a5934957d211f3fce', width: "16", height: "16" }))), this.isOpen ? null : (h("div", { class: 'selected-options' }, this.getSelectedOptions().map(option => (h("span", { class: "selected-option" }, option.label, h("button", { key: option.label, onClick: () => this.selectOption(option) }, h("close-icon", null))))))), this.isOpen ? (h("div", { class: "dropdown-content", part: "msd_dropdown-content" }, h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": true, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: e => this.handleListboxKeydown(e) }, this.availableOptions.map(option => this.renderOption(option))))) : null)));
244
+ : this.availableOptions.filter(o => o.selected)[0]?.label ?? this.availableOptions[0]?.label), h("span", { key: 'fc771549d102fb27e33d128504d09fa6151154e9', class: this.isOpen ? 'open' : 'closed', "aria-hidden": "true" }, h("chevron-icon", { key: 'bd8282695d11bcfb617da05a75d0a2335650f705', width: "16", height: "16" }))), this.isOpen ? null : (h("div", { class: 'selected-options' }, this.getSelectedOptions().map(option => (h("span", { class: "selected-option" }, option.label, h("button", { key: option.label, onClick: () => this.selectOption(option) }, h("close-icon", null))))))), this.isOpen ? (h("div", { class: "dropdown-content", part: "msd_dropdown-content" }, h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": true, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: e => this.handleListboxKeydown(e) }, this.availableOptions.map(option => this.renderOption(option))))) : null)));
245
245
  }
246
246
  get el() { return getElement(this); }
247
247
  };
@@ -275,6 +275,7 @@ const NylasAvailabilityPicker = class {
275
275
  this.internals = hostRef.$hostElement$.attachInternals();
276
276
  hostRef.$hostElement$["s-ei"] = this.internals;
277
277
  }
278
+ this.selectedConfiguration = undefined;
278
279
  this.openHours = undefined;
279
280
  this.name = 'availability';
280
281
  this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -294,10 +295,19 @@ const NylasAvailabilityPicker = class {
294
295
  debug('nylas-calendar-picker', 'elementNameChangedHandler', newValue);
295
296
  this.host.setAttribute('name', newValue);
296
297
  }
298
+ configChangedHandler(newConfig) {
299
+ const organizerParticipant = newConfig?.participants?.find(p => p.is_organizer);
300
+ if (organizerParticipant && organizerParticipant?.availability?.open_hours) {
301
+ this.openHoursToSchedule(organizerParticipant?.availability?.open_hours);
302
+ }
303
+ }
297
304
  scheduleChanged(newValue, oldValue) {
298
305
  if (newValue !== oldValue) {
299
306
  this.valueChanged.emit({
300
- value: this.scheduleToOpenHours(newValue, this.timezone),
307
+ value: {
308
+ openHours: this.scheduleToOpenHours(newValue),
309
+ timezone: this.timezone,
310
+ },
301
311
  name: this.name,
302
312
  });
303
313
  let overlapDays = {};
@@ -322,7 +332,10 @@ const NylasAvailabilityPicker = class {
322
332
  }
323
333
  else {
324
334
  this.internals.setValidity({ customError: false });
325
- this.internals.setFormValue(JSON.stringify(this.scheduleToOpenHours(newValue, this.timezone)));
335
+ this.internals.setFormValue(JSON.stringify({
336
+ openHours: this.scheduleToOpenHours(this.schedule),
337
+ timezone: this.timezone,
338
+ }));
326
339
  }
327
340
  }
328
341
  }
@@ -333,7 +346,10 @@ const NylasAvailabilityPicker = class {
333
346
  if (typeof this.internals.setFormValue !== 'function') {
334
347
  return;
335
348
  }
336
- this.internals.setFormValue(JSON.stringify(this.scheduleToOpenHours(this.schedule, this.timezone)));
349
+ this.internals.setFormValue(JSON.stringify({
350
+ openHours: this.scheduleToOpenHours(this.schedule),
351
+ timezone: this.timezone,
352
+ }));
337
353
  }
338
354
  }
339
355
  connectedCallback() {
@@ -349,12 +365,15 @@ const NylasAvailabilityPicker = class {
349
365
  componentDidLoad() {
350
366
  debug('nylas-availability-picker', 'componentDidLoad');
351
367
  if (this.openHours && this.openHours.length > 0) {
352
- this.updateSchedule(this.openHours);
368
+ this.openHoursToSchedule(this.openHours);
353
369
  }
354
370
  if (typeof this.internals.setFormValue !== 'function') {
355
371
  return;
356
372
  }
357
- this.internals.setFormValue(JSON.stringify(this.scheduleToOpenHours(this.schedule, this.timezone)));
373
+ this.internals.setFormValue(JSON.stringify({
374
+ openHours: this.scheduleToOpenHours(this.schedule),
375
+ timezone: this.timezone,
376
+ }));
358
377
  }
359
378
  getOverlaps(timeRanges) {
360
379
  let timeRangesInMinutes = timeRanges.map((range, index) => ({
@@ -447,7 +466,7 @@ const NylasAvailabilityPicker = class {
447
466
  this.internals.setValidity({ customError: true }, `Invalid ${timeType} time`, element);
448
467
  }
449
468
  }
450
- updateSchedule(openHours) {
469
+ openHoursToSchedule(openHours) {
451
470
  const newSchedule = {
452
471
  SUN: [],
453
472
  MON: [],
@@ -477,17 +496,14 @@ const NylasAvailabilityPicker = class {
477
496
  }
478
497
  });
479
498
  });
480
- if (openHours.length === 0) {
481
- this.timezone = openHours[0].timezone;
482
- }
483
- this.timezone = openHours[0].timezone;
499
+ this.timezone = this.defaultTimezone;
484
500
  this.schedule = newSchedule;
485
501
  }
486
502
  getDayKey(dayIndex) {
487
503
  const days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'];
488
504
  return days[dayIndex];
489
505
  }
490
- scheduleToOpenHours(schedule, timezone = 'UTC') {
506
+ scheduleToOpenHours(schedule) {
491
507
  const dayKeys = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'];
492
508
  let openHoursMap = new Map();
493
509
  dayKeys.forEach((dayKey, index) => {
@@ -515,7 +531,6 @@ const NylasAvailabilityPicker = class {
515
531
  days: value.days,
516
532
  start: value.start,
517
533
  end: value.end,
518
- timezone: timezone,
519
534
  });
520
535
  });
521
536
  return selectedOpenHours;
@@ -525,7 +540,7 @@ const NylasAvailabilityPicker = class {
525
540
  label: TIMEZONE_MAP[key],
526
541
  value: key,
527
542
  }));
528
- return (h(Host, { key: '440dc2f314a9c47eb8186f4ed965ed3052301ddf' }, h("div", { key: '2d31ef10ae53275fc065f4e9f68c32f42b60d829', class: "nylas-availability-picker" }, h("div", { key: 'aa6695b6054b81ece7ede5f5e089545a041800f6', class: "header", part: "nap__header" }, h("h3", { key: '86e0d18ca7b70d74159c5cead0d6f5a17a145fa7' }, "General availability"), h("p", { key: '05da67e03befbe936793af5ee98f801b512d28e7' }, "Set your availability for scheduling meetings.")), h("div", { key: '84c6bf714ccea4aff07d6e660d8ca3f96ce9a8cc', class: "content" }, h("div", { key: '16edf74e06bed5440df5f5ea73e90cfa83d08b29', class: "select-timezone", part: "nap__select-timezone" }, h("h4", { key: '1025677efcaf114cb86ce57324c299eeea79b37e', class: "sub-header" }, "Select timezone", h("span", { key: '6d65a6457da202c5a3d5c5cd4e185903a12cec7f', class: "icon" }, h("tooltip-component", { key: '61a40ea06c06f1d306a8b352d9ae883d09768249' }, h("info-icon", { key: '2d447cc2e6a619ee7b1cf1fd3e2b6424fcd6db5b', slot: "tooltip-icon" }), h("span", { key: '35742354ba0841bc1c17170094bab09d536208e6', slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), h("select-dropdown", { key: '3532c95b077fc701cdbf89cd13668acc675cf0e4', name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: timezoneOptions, defaultSelectedOption: timezoneOptions.find(i => i.value === this.defaultTimezone) }, h("span", { key: 'c1e870c593966e29d72c3f519f3309f84e4b9a9a', slot: "select-icon" }, h("globe-icon", { key: 'df23e31168778926b6118651cd636ab801f062f1', width: "20", height: "20" })))), h("div", { key: '5ad8cf7078dc104d1258f77e1c69bebf8c82d8dd', class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map(key => {
543
+ return (h(Host, { key: '396ba889df619966df24cb5eb33de1a77be3a2ba' }, h("div", { key: 'bb2a28befc3aa0481fe265a6af99049b528fca42', class: "nylas-availability-picker" }, h("div", { key: '729c24276d5e773dfbc67791fede7aa0c0bcc747', class: "header", part: "nap__header" }, h("h3", { key: 'ba7c73778a8b3dd197ca850cead346d2f00836b7' }, "General availability"), h("p", { key: '6f946e8e00921f0620b16a3412f290f176dd5b9b' }, "Set your availability for scheduling meetings.")), h("div", { key: '7753c38b6160be28c495cc9803015e0dc0003b2a', class: "content" }, h("div", { key: '8d79379263f772f29443b24f5996d017db12e764', class: "select-timezone", part: "nap__select-timezone" }, h("h4", { key: 'e6a3658ecf3d92c0dda352532a3a0c71fb59f96e', class: "sub-header" }, "Select timezone", h("span", { key: 'fdb95f85f111a1557897309ff0bd682a77499684', class: "icon" }, h("tooltip-component", { key: '37b47d8e5b24bd4620e6be932ea23c8553b4822f' }, h("info-icon", { key: 'f1192d767cc0e1c67f989b47af093e3539d7c55c', slot: "tooltip-icon" }), h("span", { key: '2b3b949fc18e0118199a3ed9668ec0ca19283c79', slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), h("select-dropdown", { key: '4729bd6e7b7c05a3fb47cf94010a00db51394c7e', name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: timezoneOptions, defaultSelectedOption: timezoneOptions.find(i => i.value === this.defaultTimezone) }, h("span", { key: '2157b7fb691541f42713a77dc1338dbb9f0e26c2', slot: "select-icon" }, h("globe-icon", { key: '17138c37b7df667e46873af1caa5278120fa4ce1', width: "20", height: "20" })))), h("div", { key: '9a49a84812b5fb544ebfd07d5dd1aba35679224e', class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map(key => {
529
544
  const day = key;
530
545
  const timeRanges = this.schedule[key];
531
546
  return (h("div", { class: "availability-day" }, h("div", { class: "day", part: "nap__day" }, h("input", { type: "checkbox", name: day, id: day, checked: timeRanges.length > 0, onClick: () => {
@@ -548,12 +563,14 @@ const NylasAvailabilityPicker = class {
548
563
  get host() { return getElement(this); }
549
564
  static get watchers() { return {
550
565
  "name": ["elementNameChangedHandler"],
566
+ "selectedConfiguration": ["configChangedHandler"],
551
567
  "schedule": ["scheduleChanged"]
552
568
  }; }
553
569
  };
554
570
  __decorate$c([
555
571
  RegisterComponent({
556
572
  name: 'nylas-availability-picker',
573
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
557
574
  fireRegisterEvent: true,
558
575
  }),
559
576
  __metadata$c("design:type", Function),
@@ -591,7 +608,8 @@ const NylasBookingCalendarPicker = class {
591
608
  hostRef.$hostElement$["s-ei"] = this.internals;
592
609
  }
593
610
  this.calendars = undefined;
594
- this.name = 'calendar';
611
+ this.currentUser = undefined;
612
+ this.name = 'booking-calendar';
595
613
  this.defaultBookingCalendar = '';
596
614
  this.selectedCalendar = '';
597
615
  }
@@ -607,10 +625,11 @@ const NylasBookingCalendarPicker = class {
607
625
  }
608
626
  componentDidLoad() {
609
627
  debug('nylas-booking-calendar-picker', 'componentDidLoad');
628
+ this.defaultBookingCalendar = this.defaultBookingCalendar || this.currentUser?.email || '';
610
629
  if (typeof this.internals.setFormValue === 'function') {
611
630
  this.internals.setFormValue(this.defaultBookingCalendar.toString(), 'booking-calendar');
612
631
  }
613
- this.selectedCalendar = this.defaultBookingCalendar;
632
+ this.selectedCalendar = this.defaultBookingCalendar || this.currentUser?.email || '';
614
633
  }
615
634
  componentWillUpdate() {
616
635
  debug('nylas-booking-calendar-picker', 'componentWillUpdate');
@@ -633,9 +652,9 @@ const NylasBookingCalendarPicker = class {
633
652
  const valueChanged = (event) => {
634
653
  const { value } = event.detail;
635
654
  this.selectedCalendar = value;
636
- this.internals.setFormValue(value.toString(), 'booking-calendar');
655
+ this.internals.setFormValue(value.toString(), this.name);
637
656
  };
638
- this.valueChanged.emit({ ...event.detail, valueChanged });
657
+ this.valueChanged.emit({ value: event.detail.value, name: this.name, valueChanged });
639
658
  }
640
659
  render() {
641
660
  const calendarOptions = this.calendars?.map(calendar => {
@@ -655,6 +674,10 @@ const NylasBookingCalendarPicker = class {
655
674
  __decorate$b([
656
675
  RegisterComponent({
657
676
  name: 'nylas-booking-calendar-picker',
677
+ stateToProps: new Map([
678
+ ['schedulerConfig.calendars', 'calendars'],
679
+ ['schedulerConfig.currentUser', 'currentUser'],
680
+ ]),
658
681
  eventToProps: {
659
682
  valueChanged: async (event, _nylasSchedulerConfigConnector) => {
660
683
  const { valueChanged } = event.detail;
@@ -873,11 +896,15 @@ const NylasCalendarPicker = class {
873
896
  hostRef.$hostElement$["s-ei"] = this.internals;
874
897
  }
875
898
  this.calendars = undefined;
876
- this.organizerEmail = undefined;
899
+ this.currentUser = undefined;
877
900
  this.name = 'calendar';
878
901
  this.defaultSelectedCalendars = [];
879
902
  this.selectedCalendars = [];
880
903
  }
904
+ elementNameChangedHandler(newValue) {
905
+ debug('nylas-calendar-picker', 'elementNameChangedHandler', newValue);
906
+ this.host.setAttribute('name', newValue);
907
+ }
881
908
  connectedCallback() {
882
909
  debug('nylas-calendar-picker', 'connectedCallback');
883
910
  }
@@ -906,10 +933,6 @@ const NylasCalendarPicker = class {
906
933
  componentDidRender() {
907
934
  debug('nylas-calendar-picker', 'componentDidRender');
908
935
  }
909
- elementNameChangedHandler(newValue) {
910
- debug('nylas-calendar-picker', 'elementNameChangedHandler', newValue);
911
- this.host.setAttribute('name', newValue);
912
- }
913
936
  selectedOptionsChangedHandler(event) {
914
937
  debug('nylas-calendar-picker', 'selectedOptionChangedHandler', event.detail);
915
938
  const valueChangedHandler = (event) => {
@@ -924,7 +947,8 @@ const NylasCalendarPicker = class {
924
947
  return {
925
948
  value: calendar.id,
926
949
  label: calendar.name,
927
- selected: this.defaultSelectedCalendars?.includes(calendar.id) || (this.defaultSelectedCalendars?.includes('primary') && calendar.id === this.organizerEmail),
950
+ selected: this.defaultSelectedCalendars?.includes(calendar.id) ||
951
+ (this.defaultSelectedCalendars?.includes('primary') || this.defaultSelectedCalendars?.length === 0 ? calendar.id === this.currentUser?.email : false),
928
952
  };
929
953
  }) ?? [];
930
954
  return (h(Host, null, h("div", { class: "nylas-calendar-picker", part: "ncp" }, h("div", { class: "header", part: "ncp__header" }, h("h3", null, "Calendar availability"), h("p", null, "Select calendars that you\u2019d like to use for checking your availability.")), calendarOptions.length > 0 ? (h("div", { class: "nylas-calendar-picker__dropdown" }, h("multi-select-dropdown", { name: 'calendar', label: "Select calendars that will be checked for availability", options: calendarOptions, exportparts: "msd__dropdown: ncp__dropdown, msd__dropdown-button: ncp__dropdown-button, msd__dropdown-content: ncp__dropdown-content" }, h("span", { slot: "label-icon" }, h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available. The default is your primary calendar if none are selected.")))))) : (h("div", { class: "nylas-calendar-picker__loading" }, h("span", { class: "label" }, "Select calendars that will be checked for availability ", h("info-icon", null)), h("div", { class: "loading-button" }, h("span", null, "Loading...")))))));
@@ -938,6 +962,10 @@ const NylasCalendarPicker = class {
938
962
  __decorate$9([
939
963
  RegisterComponent({
940
964
  name: 'nylas-calendar-picker',
965
+ stateToProps: new Map([
966
+ ['schedulerConfig.calendars', 'calendars'],
967
+ ['schedulerConfig.currentUser', 'currentUser'],
968
+ ]),
941
969
  eventToProps: {
942
970
  valueChanged: async (event, _nylasSchedulerConfigConnector) => {
943
971
  const { valueChangedHandler } = event.detail;
@@ -982,10 +1010,25 @@ const NylasCustomBookingFlow = class {
982
1010
  this.internals = hostRef.$hostElement$.attachInternals();
983
1011
  hostRef.$hostElement$["s-ei"] = this.internals;
984
1012
  }
1013
+ this.selectedConfiguration = undefined;
985
1014
  this.name = 'booking-type';
986
1015
  this.bookingType = '';
987
1016
  this.selectedBookingType = '';
988
1017
  }
1018
+ elementNameChangedHandler(newValue) {
1019
+ debug('nylas-custom-booking-flow', 'elementNameChangedHandler', newValue);
1020
+ this.host.setAttribute('name', newValue);
1021
+ }
1022
+ selectedConfigurationChangedHandler(newValue, oldValue) {
1023
+ debug('nylas-custom-booking-flow', 'selectedConfigurationChangedHandler', newValue, oldValue);
1024
+ if (newValue?.event_booking?.booking_type) {
1025
+ this.bookingType = newValue?.event_booking?.booking_type;
1026
+ }
1027
+ if (typeof this.internals.setFormValue === 'function') {
1028
+ this.internals.setFormValue(this.bookingType.toString(), 'booking-calendar');
1029
+ }
1030
+ this.selectedBookingType = this.bookingType;
1031
+ }
989
1032
  connectedCallback() {
990
1033
  debug('nylas-custom-booking-flow', 'connectedCallback');
991
1034
  }
@@ -998,10 +1041,6 @@ const NylasCustomBookingFlow = class {
998
1041
  }
999
1042
  componentDidLoad() {
1000
1043
  debug('nylas-custom-booking-flow', 'componentDidLoad');
1001
- if (typeof this.internals.setFormValue === 'function') {
1002
- this.internals.setFormValue(this.bookingType.toString(), 'booking-calendar');
1003
- }
1004
- this.selectedBookingType = this.bookingType;
1005
1044
  }
1006
1045
  componentWillUpdate() {
1007
1046
  debug('nylas-custom-booking-flow', 'componentWillUpdate');
@@ -1015,10 +1054,6 @@ const NylasCustomBookingFlow = class {
1015
1054
  componentDidRender() {
1016
1055
  debug('nylas-custom-booking-flow', 'componentDidRender');
1017
1056
  }
1018
- elementNameChangedHandler(newValue) {
1019
- debug('nylas-custom-booking-flow', 'elementNameChangedHandler', newValue);
1020
- this.host.setAttribute('name', newValue);
1021
- }
1022
1057
  selectedOptionChangedHandler(event) {
1023
1058
  debug('nylas-custom-booking-flow', 'selectedOptionChangedHandler', event.detail);
1024
1059
  const valueChanged = (event) => {
@@ -1039,17 +1074,19 @@ const NylasCustomBookingFlow = class {
1039
1074
  value: 'pre-booking',
1040
1075
  },
1041
1076
  ];
1042
- return (h(Host, { key: 'fe9e837aba8f846a0b77a21eee365080d41b4e57' }, h("div", { key: '2405db5290bcd44a602fd9f91bb91e13a9d7ffc7', class: "nylas-custom-booking-flow", part: "ncbf" }, h("div", { key: '2de829660fdba0da9e6cbcd6281c427b65414d90', class: "header", part: "ncbf__header" }, h("h3", { key: '13e3b9e450f54f04538c773ab2564513cdaf0fa5' }, "Customize booking flow"), h("p", { key: '9436439f81faf9aed4ff9029c5c0a08a268b5e59' }, "Customize how new bookings are handled when a booking is completed.")), bookingOptions.length > 0 ? (h("div", { class: "nylas-custom-booking-flow__dropdown" }, h("span", { class: "label" }, "After a booking is confirmed", h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "Choose how you\u2019d like to handle new bookings. If you choose to manually confirm/decline bookings, you will be able to review and accept or decline each booking request."))), h("select-dropdown", { name: "booking-type", options: bookingOptions, withSearch: false, exportparts: "sd_dropdown: ncbf__dropdown, sd_dropdown-button: ncbf__dropdown-button, sd_dropdown-content: ncbf__dropdown-content", defaultSelectedOption: bookingOptions.find(cal => cal.value == this.bookingType) ?? bookingOptions[0] }))) : (h("div", { class: "nylas-custom-booking-flow__loading" }, h("span", { class: "label" }, "Select a calendar to book meetings on ", h("info-icon", null)), h("div", { class: "loading-button" }, h("span", null, "Loading...")))))));
1077
+ return (h(Host, { key: '7f019073e242dce64522e27262298e480b0fb346' }, h("div", { key: '47bd77bcd4c4a1a9a845581bb6ad77b6dd7d65e7', class: "nylas-custom-booking-flow", part: "ncbf" }, h("div", { key: '17386ac59d7680789dda85e832c84061225b6b04', class: "header", part: "ncbf__header" }, h("h3", { key: '5368e8f321140f2bfaf60f6ca3f732f584824301' }, "Customize booking flow"), h("p", { key: '65a0d4d41804f41f7c01a682e4b8b97ebc2c4ef2' }, "Customize how new bookings are handled when a booking is completed.")), bookingOptions.length > 0 ? (h("div", { class: "nylas-custom-booking-flow__dropdown" }, h("span", { class: "label" }, "After a booking is confirmed", h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "Choose how you\u2019d like to handle new bookings. If you choose to manually confirm/decline bookings, you will be able to review and accept or decline each booking request."))), h("select-dropdown", { name: "booking-type", options: bookingOptions, withSearch: false, exportparts: "sd_dropdown: ncbf__dropdown, sd_dropdown-button: ncbf__dropdown-button, sd_dropdown-content: ncbf__dropdown-content", defaultSelectedOption: bookingOptions.find(cal => cal.value == this.bookingType) ?? bookingOptions[0] }))) : (h("div", { class: "nylas-custom-booking-flow__loading" }, h("span", { class: "label" }, "Select a calendar to book meetings on ", h("info-icon", null)), h("div", { class: "loading-button" }, h("span", null, "Loading...")))))));
1043
1078
  }
1044
1079
  static get formAssociated() { return true; }
1045
1080
  get host() { return getElement(this); }
1046
1081
  static get watchers() { return {
1047
- "name": ["elementNameChangedHandler"]
1082
+ "name": ["elementNameChangedHandler"],
1083
+ "selectedConfiguration": ["selectedConfigurationChangedHandler"]
1048
1084
  }; }
1049
1085
  };
1050
1086
  __decorate$8([
1051
1087
  RegisterComponent({
1052
1088
  name: 'nylas-custom-booking-flow',
1089
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
1053
1090
  eventToProps: {
1054
1091
  valueChanged: async (event, _nylasSchedulerConfigConnector) => {
1055
1092
  const { valueChanged } = event.detail;
@@ -1066,7 +1103,7 @@ __decorate$8([
1066
1103
  ], NylasCustomBookingFlow.prototype, "render", null);
1067
1104
  NylasCustomBookingFlow.style = NylasCustomBookingFlowStyle0;
1068
1105
 
1069
- const nylasEventDescriptionCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}";
1106
+ const nylasEventDescriptionCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}";
1070
1107
  const NylasEventDescriptionStyle0 = nylasEventDescriptionCss;
1071
1108
 
1072
1109
  var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -1094,14 +1131,21 @@ const NylasEventDescription = class {
1094
1131
  this.internals = hostRef.$hostElement$.attachInternals();
1095
1132
  hostRef.$hostElement$["s-ei"] = this.internals;
1096
1133
  }
1134
+ this.selectedConfiguration = undefined;
1097
1135
  this.eventDescription = undefined;
1098
- this.description = this.eventDescription ?? '';
1136
+ this.description = this.eventDescription || this.selectedConfiguration?.event_booking?.description || '';
1099
1137
  this.name = 'description';
1100
1138
  }
1101
1139
  elementNameChangedHandler(newValue) {
1102
1140
  debug('nylas-event-description', 'elementNameChangedHandler', newValue);
1103
1141
  this.host.setAttribute('name', newValue);
1104
1142
  }
1143
+ selectedConfigurationChangedHandler(newValue, oldValue) {
1144
+ debug('nylas-custom-booking-flow', 'selectedConfigurationChangedHandler', newValue, oldValue);
1145
+ if (newValue?.event_booking?.description) {
1146
+ this.description = newValue?.event_booking?.description;
1147
+ }
1148
+ }
1105
1149
  connectedCallback() {
1106
1150
  debug('nylas-event-description', 'connectedCallback');
1107
1151
  }
@@ -1121,17 +1165,19 @@ const NylasEventDescription = class {
1121
1165
  this.valueChanged.emit({ value: event.target.value, name: this.name });
1122
1166
  }
1123
1167
  render() {
1124
- return (h(Host, { key: '5519bbdfdc7e253bf5b83c18decd714e54f58714' }, h("div", { key: '36541738e7d447cb6f9b3bf0f931c851efb0d8fe', class: "nylas-event-description", part: "nedesc" }, h("label", { key: 'c0eb70c7e36360844559e0fd0a451243fb6f5860', htmlFor: "description" }, "Event description", h("span", { key: '98c176eaa09ccdac28fbba62f67ceeb8a6fed751', class: "label-icon" }, h("tooltip-component", { key: '553ca988451d6053a8863a52cbcdcb12dd041362' }, h("info-icon", { key: '015507616ffc54352cbecc9766e59d0db4a25367', slot: "tooltip-icon" }), h("span", { key: '86efa5b15ae112f6f974ba32e8c138e2c906184f', slot: "tooltip-content" }, "Provide any additional details for your event.")))), h("textarea", { key: '619f982afa3f2af2794d93cc0df930db618a3e5e', id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: e => this.handleChange(e) }))));
1168
+ return (h(Host, { key: '08b8a3b8865cc09c467b5b8abc36d2d0f7039fcd' }, h("div", { key: 'b906947588ca23a2edec4f31f04935cdc82bad96', class: "nylas-event-description", part: "nedesc" }, h("label", { key: '144ddfc7a8eb64434981122cc3df24dc89a00c63', htmlFor: "description" }, "Event description", h("span", { key: '6effc462e60a48b4eb55e325baf24f51f7c25854', class: "label-icon" }, h("tooltip-component", { key: 'ee1d7faad42bdae393e4a20b9ec499c217aa21fc' }, h("info-icon", { key: 'aecfd40dca5604d491e085be8fedb92e75276547', slot: "tooltip-icon" }), h("span", { key: 'ce7cfceffe163a4c231813ed85ff7ebc80c8515d', slot: "tooltip-content" }, "Provide any additional details for your event.")))), h("textarea", { key: '0445a874c8d219548447a56780e435b986e159bc', id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: e => this.handleChange(e) }))));
1125
1169
  }
1126
1170
  static get formAssociated() { return true; }
1127
1171
  get host() { return getElement(this); }
1128
1172
  static get watchers() { return {
1129
- "name": ["elementNameChangedHandler"]
1173
+ "name": ["elementNameChangedHandler"],
1174
+ "selectedConfiguration": ["selectedConfigurationChangedHandler"]
1130
1175
  }; }
1131
1176
  };
1132
1177
  __decorate$7([
1133
1178
  RegisterComponent({
1134
1179
  name: 'nylas-event-description',
1180
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
1135
1181
  eventToProps: {},
1136
1182
  fireRegisterEvent: true,
1137
1183
  }),
@@ -1141,7 +1187,7 @@ __decorate$7([
1141
1187
  ], NylasEventDescription.prototype, "render", null);
1142
1188
  NylasEventDescription.style = NylasEventDescriptionStyle0;
1143
1189
 
1144
- const nylasEventDurationCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button-selected-label){font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
1190
+ const nylasEventDurationCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button-selected-label){font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
1145
1191
  const NylasEventDurationStyle0 = nylasEventDurationCss;
1146
1192
 
1147
1193
  var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -1169,6 +1215,7 @@ const NylasEventDuration = class {
1169
1215
  this.internals = hostRef.$hostElement$.attachInternals();
1170
1216
  hostRef.$hostElement$["s-ei"] = this.internals;
1171
1217
  }
1218
+ this.selectedConfiguration = undefined;
1172
1219
  this.name = 'duration';
1173
1220
  this.eventDurationMinutes = undefined;
1174
1221
  this.duration = this.eventDurationMinutes ? (this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes) : 5;
@@ -1179,6 +1226,14 @@ const NylasEventDuration = class {
1179
1226
  debug('nylas-event-duration', 'elementNameChangedHandler', newValue);
1180
1227
  this.host.setAttribute('name', newValue);
1181
1228
  }
1229
+ selectedConfigurationChangedHandler(newVal) {
1230
+ const configDuration = newVal?.availability?.duration_minutes;
1231
+ if (configDuration) {
1232
+ this.duration = configDuration >= 60 ? configDuration / 60 : configDuration;
1233
+ this.durationMinutes = configDuration ?? 5;
1234
+ this.durationIncrement = configDuration >= 60 ? 60 : 1;
1235
+ }
1236
+ }
1182
1237
  durationMinutesChangedHandler(newValue, oldValue) {
1183
1238
  debug('nylas-event-duration', 'durationMinutesChangedHandler', newValue);
1184
1239
  if (newValue === oldValue) {
@@ -1215,12 +1270,6 @@ const NylasEventDuration = class {
1215
1270
  if (this.duration < 5 && this.durationIncrement === 1) {
1216
1271
  this.duration = 5;
1217
1272
  }
1218
- if (this.duration > 720 && this.durationIncrement === 1) {
1219
- this.duration = 720;
1220
- }
1221
- if (this.duration > 12 && this.durationIncrement === 60) {
1222
- this.duration = 12;
1223
- }
1224
1273
  this.durationMinutes = this.duration * this.durationIncrement;
1225
1274
  this.internals.setFormValue(this.durationMinutes.toString(), 'duration');
1226
1275
  }
@@ -1242,18 +1291,20 @@ const NylasEventDuration = class {
1242
1291
  { value: 1, label: 'minutes' },
1243
1292
  { value: 60, label: 'hours' },
1244
1293
  ];
1245
- return (h(Host, { key: 'b4c54d309345b6333578f1f8f49fbe9be7e50af7' }, h("div", { key: '401311ed8b0deb33eeb1013264f192ba87b0d118', class: "nylas-event-duration", part: "ned" }, h("label", { key: '5de11caa4aff28ca3fb11811e21adecfed22d32d', htmlFor: "duration" }, "Event duration", h("span", { key: '592731edca9c0c4ca63250e1fc3d964e4c7b271d', class: "required" }, "*"), h("span", { key: 'b9f6a70dc84222e68d2251f485bbd3545d05fcde', class: "label-icon" }, h("tooltip-component", { key: '8fa85c6907a3625c1f50750b962014e7d413ea34' }, h("info-icon", { key: '677374d62adb9c9e27307b64bd69a979a28f32eb', slot: "tooltip-icon" }), h("span", { key: 'd2ebc474b7876c3e23e31a296c826557b329be61', slot: "tooltip-content" }, "Set the duration of your event.")))), h("div", { key: '1240a158b86d06ed9e3859487e8688fc2cfea9e5', class: "nylas-event-duration__wrapper" }, h("input", { key: 'fffb610158d4b056761f41e9b2ffd0e0aa5b1bfd', type: "number", part: "ned_input", id: "duration", name: "duration", value: this.duration, onBlur: () => this.handleBlur(), onInput: e => this.handleChange(e), min: 5 }), h("select-dropdown", { key: '8cf3f16c86c0220f992f69e4cfa012c170145b9e', name: 'event-duration', options: durationOptions, exportparts: "sd__dropdown: ned__dropdown, sd__dropdown-button: ned__dropdown-button, sd__dropdown-content: ned__dropdown-content", defaultSelectedOption: durationOptions.find(i => i.value == this.durationIncrement) ?? durationOptions[0], withSearch: false })))));
1294
+ return (h(Host, { key: 'ff6384009f8323807da45260c85f9a833ca78605' }, h("div", { key: '9a495df4f19b186fb856b96b2165cf16f633c1d3', class: "nylas-event-duration", part: "ned" }, h("label", { key: 'ddd0d777d526ebe86fb0353c74fb59d0acc9bb0c', htmlFor: "duration" }, "Event duration", h("span", { key: '4d4a72dcd4d5eb94065b92f680143837bacdf064', class: "required" }, "*"), h("span", { key: '0b4bf5ea22e494b579deeb5eb94b33e19f7805d7', class: "label-icon" }, h("tooltip-component", { key: '7ba13f0936a66b5d5ce8abdddaa2719ee944a53c' }, h("info-icon", { key: 'c27304efca28e235f150d421b88ebb09b68705fd', slot: "tooltip-icon" }), h("span", { key: 'f86eaf51c1360414af98ce557128fafb3c02b6d4', slot: "tooltip-content" }, "Set the duration of your event.")))), h("div", { key: 'be06a61abc967a09375fb1cb4e634409f4b51909', class: "nylas-event-duration__wrapper" }, h("input", { key: 'f89c51721313e11ead928cfa70b7a2953b8daaa5', type: "number", part: "ned_input", id: "duration", name: "duration", value: this.duration, onBlur: () => this.handleBlur(), onInput: e => this.handleChange(e), min: 5 }), h("select-dropdown", { key: 'aed386f87a5b232f8b65a110d167e342f009a420', name: 'event-duration', options: durationOptions, exportparts: "sd__dropdown: ned__dropdown, sd__dropdown-button: ned__dropdown-button, sd__dropdown-content: ned__dropdown-content", defaultSelectedOption: durationOptions.find(i => i.value == this.durationIncrement) ?? durationOptions[0], withSearch: false })))));
1246
1295
  }
1247
1296
  static get formAssociated() { return true; }
1248
1297
  get host() { return getElement(this); }
1249
1298
  static get watchers() { return {
1250
1299
  "name": ["elementNameChangedHandler"],
1300
+ "selectedConfiguration": ["selectedConfigurationChangedHandler"],
1251
1301
  "durationMinutes": ["durationMinutesChangedHandler"]
1252
1302
  }; }
1253
1303
  };
1254
1304
  __decorate$6([
1255
1305
  RegisterComponent({
1256
1306
  name: 'nylas-event-duration',
1307
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
1257
1308
  eventToProps: {},
1258
1309
  fireRegisterEvent: true,
1259
1310
  }),
@@ -1304,7 +1355,7 @@ const NylasEventInfo = class {
1304
1355
  debug('nylas-event-info', 'disconnectedCallback');
1305
1356
  }
1306
1357
  render() {
1307
- return (h(Host, { key: '61e095027d4b933ff2d2cc17a5a9d8a6d1add51e' }, h("nylas-form-card", { key: '0aa8cfa9d92db31b33e30879f1baeda834a0b2f0' }, h("h1", { key: '1f8cb65c3b5b821d7f59b06a4ee338e2fd6bcc5b', slot: "header-title", class: "nylas-event-info__title" }, "Event information"), h("h3", { key: '40698f86b92127532457ece61c931eabced1ec25', slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), h("div", { key: '724866551790e31b39fa016f6b88629573639cd6', slot: "content", class: "nylas-event-info__content" }, h("slot", { key: 'ef0cd2dd50b7f160d2806d4e4b04f9fd39d1bf83', name: "inputs" })))));
1358
+ return (h(Host, { key: '73cf50f7f006fed6b41256b3f83c6a549f6919f8' }, h("nylas-form-card", { key: 'f34f24881a48a3af65e665693548388a9cbebb5f' }, h("h1", { key: '5e6ff9922a926b74bbaafe8502bae2724bd6ee3a', slot: "header-title", class: "nylas-event-info__title" }, "Event information"), h("h3", { key: '2a127a2206f7dec1b1cc93804588a8b96a893f83', slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), h("div", { key: 'b3dcd7ddb2bbb278327ca059e1d8fce793645a47', slot: "content", class: "nylas-event-info__content" }, h("slot", { key: '7868be55755715b91a591f92225f13aeb5dbf00d', name: "inputs" })))));
1308
1359
  }
1309
1360
  static get formAssociated() { return true; }
1310
1361
  };
@@ -1361,7 +1412,7 @@ const NylasEventLimits = class {
1361
1412
  debug('nylas-event-limits', 'disconnectedCallback');
1362
1413
  }
1363
1414
  render() {
1364
- return (h(Host, { key: '5a2ad0ec53b85623d821f78858c3cff8b5e1a251' }, h("nylas-form-card", { key: '047025e1b53e4b92d4c5add386bae10702a493a0' }, h("h1", { key: '6e4f9438417a7a7037dda67b1b3ebdd09306f748', slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), h("h3", { key: '6b2c72590cf35181cba99fdf7ce58a5d55eae153', slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), h("div", { key: 'ed1adf0a9eee51c73b86d78430d77b51db60d9a4', slot: "content", class: "nylas-event-limits__content" }, h("slot", { key: 'b9a4299a7edfc2673afaab690ff610d449f8cd57', name: "inputs" })))));
1415
+ return (h(Host, { key: '2cc9ace0192971cd75683313d64f3ef06d400136' }, h("nylas-form-card", { key: 'cbca7bb803781e3c93a85c73e56e762f9daa2f9d' }, h("h1", { key: '5a55b7edf422b59b251c2df6d9cf174d83c012eb', slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), h("h3", { key: '70415910cf84c503291373387bdab5c6da95e091', slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), h("div", { key: '0735659855b9ad599c70dc8045e2477b853571e6', slot: "content", class: "nylas-event-limits__content" }, h("slot", { key: 'a35e9bcc861998b14d5bbf630d6c1fcbd038fbdf', name: "inputs" })))));
1365
1416
  }
1366
1417
  static get formAssociated() { return true; }
1367
1418
  };
@@ -1377,7 +1428,7 @@ __decorate$4([
1377
1428
  ], NylasEventLimits.prototype, "render", null);
1378
1429
  NylasEventLimits.style = NylasEventLimitsStyle0;
1379
1430
 
1380
- const nylasEventTitleCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}";
1431
+ const nylasEventTitleCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}";
1381
1432
  const NylasEventTitleStyle0 = nylasEventTitleCss;
1382
1433
 
1383
1434
  var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -1405,7 +1456,8 @@ const NylasEventTitle = class {
1405
1456
  this.internals = hostRef.$hostElement$.attachInternals();
1406
1457
  hostRef.$hostElement$["s-ei"] = this.internals;
1407
1458
  }
1408
- this.eventTitle = undefined;
1459
+ this.selectedConfiguration = undefined;
1460
+ this.eventTitle = this.selectedConfiguration?.event_booking?.title;
1409
1461
  this.name = 'title';
1410
1462
  this.showTokens = false;
1411
1463
  this.availableTokens = EVENT_TITLE_TOKENS.map(token => ({
@@ -1416,6 +1468,7 @@ const NylasEventTitle = class {
1416
1468
  this.filteredTokens = this.availableTokens;
1417
1469
  this.ariaActivedescendant = '';
1418
1470
  this.currentWord = { $value: '', fullText: '', index: -1, focusOffset: -1 };
1471
+ this.validationError = '';
1419
1472
  }
1420
1473
  elementNameChangedHandler(newValue) {
1421
1474
  debug('nylas-event-title', 'elementNameChangedHandler', newValue);
@@ -1432,6 +1485,12 @@ const NylasEventTitle = class {
1432
1485
  options?.forEach(option => option.classList.remove('active'));
1433
1486
  }
1434
1487
  }
1488
+ configChangedHandler(newVal) {
1489
+ const title = newVal?.event_booking?.title;
1490
+ if (title) {
1491
+ this.updateEventTitleFromProp(title);
1492
+ }
1493
+ }
1435
1494
  connectedCallback() {
1436
1495
  debug('nylas-event-title', 'connectedCallback');
1437
1496
  }
@@ -1446,13 +1505,32 @@ const NylasEventTitle = class {
1446
1505
  disconnectedCallback() {
1447
1506
  debug('nylas-event-title', 'disconnectedCallback');
1448
1507
  }
1508
+ formSubmittedHandler(event) {
1509
+ debug('nylas-event-title', 'formSubmittedHandler', event);
1510
+ if (!this.internals?.validity?.valid) {
1511
+ this.validationError = 'Event title is required';
1512
+ }
1513
+ else {
1514
+ this.validationError = '';
1515
+ }
1516
+ }
1449
1517
  updateEventTitleFromProp(newValue) {
1450
1518
  debug('nylas-event-title', 'eventTitleChangedHandler', newValue);
1451
- this.titleRef.innerHTML = this.highlightTokens();
1452
- this.titleRef.focus();
1519
+ if (this.titleRef) {
1520
+ this.titleRef.innerHTML = this.highlightTokens(newValue);
1521
+ this.titleRef.focus();
1522
+ if (typeof this.internals.setValidity === 'function') {
1523
+ if (newValue === '') {
1524
+ this.internals?.setValidity({ customError: true }, `Event title is required`, this.titleRef);
1525
+ }
1526
+ else {
1527
+ this.internals?.setValidity({ customError: false });
1528
+ }
1529
+ }
1530
+ }
1453
1531
  }
1454
- highlightTokens() {
1455
- let outputHtml = this.eventTitle || '';
1532
+ highlightTokens(title) {
1533
+ let outputHtml = title;
1456
1534
  EVENT_TITLE_TOKENS.forEach(tokenObj => {
1457
1535
  const token = tokenObj.value;
1458
1536
  const regex = new RegExp(`(\\${token})(?!\\w)`, 'g');
@@ -1474,7 +1552,6 @@ const NylasEventTitle = class {
1474
1552
  };
1475
1553
  };
1476
1554
  const currentBrowser = getBrowser();
1477
- console.log('currentBrowser', currentBrowser);
1478
1555
  switch (currentBrowser) {
1479
1556
  case 'Chrome':
1480
1557
  const shadowRootSelection = this.host.shadowRoot?.getSelection();
@@ -1633,6 +1710,15 @@ const NylasEventTitle = class {
1633
1710
  }
1634
1711
  updateEventTitle(text) {
1635
1712
  const value = text.replace(/ +/g, ' ');
1713
+ if (value === '') {
1714
+ this.internals?.setValidity({ customError: true }, `Event title is required`, this.titleRef);
1715
+ this.validationError = 'Event title is required';
1716
+ }
1717
+ else {
1718
+ this.internals?.setValidity({ customError: false });
1719
+ this.validationError = '';
1720
+ }
1721
+ this.internals?.setFormValue(value, this.name);
1636
1722
  this.valueChanged.emit({ value: value, name: this.name });
1637
1723
  }
1638
1724
  resetDropdown() {
@@ -1643,18 +1729,23 @@ const NylasEventTitle = class {
1643
1729
  return (h("div", { class: "token-label" }, h("span", { class: "token" }, token.token), h("span", { class: "description" }, token.description)));
1644
1730
  }
1645
1731
  render() {
1646
- return (h(Host, { key: 'a58acf57120285f1c42b0df698b31e298b40407d' }, h("div", { key: 'ed5b5e3d7694fbce89647344b066326271786779', class: "nylas-event-title", part: "net" }, h("label", { key: '102d6d0df0164809afe2f215408cc321703c38bc', htmlFor: "title" }, "Event title", h("span", { key: 'e024b656ae41640181ba67aed42a52509774354c', class: "required" }, "*"), h("span", { key: '7116bafdab5470e86ba2acdafc2236610b79ea59', class: "label-icon" }, h("tooltip-component", { key: '71a50958f2f04cdfe0cc35c17f60c64f3b910e84' }, h("info-icon", { key: '92e96b68f699d4aff80e028538259e27ba803e18', slot: "tooltip-icon" }), h("span", { key: '5c29a9e8bde6f4cd8df38082b70ad15682e4b687', slot: "tooltip-content" }, "Enter a title for your event.")))), h("div", { key: '72f580436b050b2af9b78149e3b8831912847e7f', class: "title", part: "net__title", ref: el => (this.titleRef = el), contentEditable: "true", onInput: e => this.handleChange(e), onKeyDown: event => this.handleInputKeyDown(event) }), this.showTokens && this.filteredTokens?.length > 0 && (h("div", { class: "token-options", part: "net__dropdown-content" }, h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map(option => (h("li", { tabindex: "0", key: option.label, id: option.label, class: { active: this.ariaActivedescendant === option.label }, onClick: e => this.selectOption(e, option), role: "option" }, this.getLabelHTML(option.labelHTML))))))), h("span", { key: 'a75e5bea3c3841e1030ff676465c036006cf617f', class: "help-text" }, "Create a dynamic templated event title by typing $. Learn more"))));
1732
+ return (h(Host, { key: '9287b1b2cb59f9cd83d585807070b8aaa4821a6c' }, h("div", { key: '02ca37b1b68691faf69c6cdd062475f10a87653c', class: "nylas-event-title", part: "net" }, h("label", { key: 'ceeda06d9da67727cdb5fce90b182a28cc3408e1', htmlFor: "title" }, "Event title", h("span", { key: 'd0e6b3387661a7f23a4796611f4854cf64b3bd9f', class: "required" }, "*"), h("span", { key: '84d0dd45f6a21504849aabf195676af2dacc40b2', class: "label-icon" }, h("tooltip-component", { key: 'bc8d5fbbd455a5d983ebb037e3d93e6dc2619cbd' }, h("info-icon", { key: '5c16591baceb37a8739c70b6fa505de08813ff0f', slot: "tooltip-icon" }), h("span", { key: '8214ecaad02beb8da5e0595aa13ff7057a0e60cc', slot: "tooltip-content" }, "Enter a title for your event.")))), h("div", { key: '98e9885cb4acd028908d7fb1b2a028cffd0dc7d4', class: {
1733
+ title: true,
1734
+ error: this.validationError !== '',
1735
+ }, part: "net__title", ref: el => (this.titleRef = el), contentEditable: "true", onInput: e => this.handleChange(e), onKeyDown: event => this.handleInputKeyDown(event) }), this.showTokens && this.filteredTokens?.length > 0 && (h("div", { class: "token-options", part: "net__dropdown-content" }, h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map(option => (h("li", { tabindex: "0", key: option.label, id: option.label, class: { active: this.ariaActivedescendant === option.label }, onClick: e => this.selectOption(e, option), role: "option" }, this.getLabelHTML(option.labelHTML))))))), h("span", { key: 'a2a15145119acf95335728589c24138386032188', class: "help-text" }, "Create a dynamic templated event title by typing $. Learn more"), this.validationError != '' && h("span", { class: "error-message" }, this.validationError))));
1647
1736
  }
1648
1737
  static get formAssociated() { return true; }
1649
1738
  get host() { return getElement(this); }
1650
1739
  static get watchers() { return {
1651
1740
  "name": ["elementNameChangedHandler"],
1652
- "ariaActivedescendant": ["ariaActivedescendantChangedHandler"]
1741
+ "ariaActivedescendant": ["ariaActivedescendantChangedHandler"],
1742
+ "selectedConfiguration": ["configChangedHandler"]
1653
1743
  }; }
1654
1744
  };
1655
1745
  __decorate$3([
1656
1746
  RegisterComponent({
1657
1747
  name: 'nylas-event-title',
1748
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
1658
1749
  eventToProps: {},
1659
1750
  fireRegisterEvent: true,
1660
1751
  }),
@@ -1692,6 +1783,7 @@ const NylasLimitFutureBookings = class {
1692
1783
  this.internals = hostRef.$hostElement$.attachInternals();
1693
1784
  hostRef.$hostElement$["s-ei"] = this.internals;
1694
1785
  }
1786
+ this.selectedConfiguration = undefined;
1695
1787
  this.availableDaysInFuture = undefined;
1696
1788
  this.name = 'limit-future-bookings';
1697
1789
  this.selectedNumber = 1;
@@ -1701,10 +1793,14 @@ const NylasLimitFutureBookings = class {
1701
1793
  debug('nylas-limit-future-bookings', 'elementNameChangedHandler', newValue);
1702
1794
  this.host.setAttribute('name', newValue);
1703
1795
  }
1796
+ selectedConfigurationChangedHandler(newVal) {
1797
+ const daysInFuture = newVal?.scheduler?.available_days_in_future;
1798
+ if (daysInFuture) {
1799
+ this.updateNumberAndPeriodFromDays(daysInFuture);
1800
+ }
1801
+ }
1704
1802
  availableDaysInFutureChanged(newValue) {
1705
- const { number, period } = this.calculateNumberAndPeriodFromDays(newValue);
1706
- this.selectedNumber = number;
1707
- this.selectedPeriod = period;
1803
+ this.updateNumberAndPeriodFromDays(newValue);
1708
1804
  }
1709
1805
  connectedCallback() {
1710
1806
  debug('nylas-limit-future-bookings', 'connectedCallback');
@@ -1736,36 +1832,44 @@ const NylasLimitFutureBookings = class {
1736
1832
  else {
1737
1833
  availableDaysInFuture = number * 30;
1738
1834
  }
1739
- this.valueChanged.emit({ value: availableDaysInFuture, name: this.name });
1835
+ this.valueChanged.emit({ value: availableDaysInFuture, name: 'availableDaysInFuture' });
1740
1836
  if (typeof this.internals.setFormValue !== 'function') {
1741
1837
  return;
1742
1838
  }
1743
1839
  this.internals.setFormValue(availableDaysInFuture.toString(), this.name);
1744
1840
  }
1745
- calculateNumberAndPeriodFromDays(days) {
1841
+ updateNumberAndPeriodFromDays(days) {
1842
+ let number, period;
1746
1843
  if (days >= 30 && days % 30 === 0) {
1747
- return { number: days / 30, period: 'month' };
1844
+ number = days / 30;
1845
+ period = 'month';
1748
1846
  }
1749
1847
  else if (days >= 7 && days % 7 === 0) {
1750
- return { number: days / 7, period: 'week' };
1848
+ number = days / 7;
1849
+ period = 'week';
1751
1850
  }
1752
1851
  else {
1753
- return { number: days, period: 'day' };
1852
+ number = days;
1853
+ period = 'day';
1754
1854
  }
1855
+ this.selectedNumber = number;
1856
+ this.selectedPeriod = period;
1755
1857
  }
1756
1858
  render() {
1757
- return (h(Host, { key: '8057320077aad1ea65297b4cac79fe11f69ab161' }, h("div", { key: '991d810bee6817a1ec26482807fece9d884b7844', class: "nylas-limit-future-bookings", part: "nlfb" }, h("label", { key: 'caf0946d5a7cb202dc02cd596a7721e52278cb55' }, "Limit future bookings", h("span", { key: 'fff09830bc407f7ce1fecf7e6809f2a030ce9a3e', class: "label-icon" }, h("tooltip-component", { key: '8c9cd31ae211d1d3a7f017032d7c1abb3f1c7df6' }, h("info-icon", { key: '43f8b14a4b28effd21e9b5a87b20f63b6bf0061d', slot: "tooltip-icon" }), h("span", { key: 'bdfebd15750111829926da4dc0820f562c4fd9aa', slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), h("time-period-selector", { key: 'de949c9c3aa9234102159bdec61efc061ac49408', id: "limit-future-bookings", timePeriods: ['day', 'week', 'month'], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
1859
+ return (h(Host, { key: '1bb30d8045366579b327f32f954d64c3360efa11' }, h("div", { key: '2594946bd35a01a0ab64288c54fe886f4577d8b5', class: "nylas-limit-future-bookings", part: "nlfb" }, h("label", { key: 'cf955eb319e09617dd95037d66a387122238d17c' }, "Limit future bookings", h("span", { key: '4f5658353873122f083faec5504856902bdba106', class: "label-icon" }, h("tooltip-component", { key: 'ee20b3543178702592b83e70a5a85988d0c3cd29' }, h("info-icon", { key: 'dfe75e502418b3f00a29d3d0fb76338056089266', slot: "tooltip-icon" }), h("span", { key: 'c7226da2491e6c3beda2f9739afda6220c37c0e1', slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), h("time-period-selector", { key: '5ad178b3d7158738a2882cb5a6554727de34a23d', id: "limit-future-bookings", timePeriods: ['day', 'week', 'month'], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
1758
1860
  }
1759
1861
  static get formAssociated() { return true; }
1760
1862
  get host() { return getElement(this); }
1761
1863
  static get watchers() { return {
1762
1864
  "name": ["elementNameChangedHandler"],
1865
+ "selectedConfiguration": ["selectedConfigurationChangedHandler"],
1763
1866
  "availableDaysInFuture": ["availableDaysInFutureChanged"]
1764
1867
  }; }
1765
1868
  };
1766
1869
  __decorate$2([
1767
1870
  RegisterComponent({
1768
1871
  name: 'nylas-limit-future-bookings',
1872
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
1769
1873
  eventToProps: {},
1770
1874
  fireRegisterEvent: true,
1771
1875
  }),
@@ -1775,7 +1879,7 @@ __decorate$2([
1775
1879
  ], NylasLimitFutureBookings.prototype, "render", null);
1776
1880
  NylasLimitFutureBookings.style = NylasLimitFutureBookingsStyle0;
1777
1881
 
1778
- const nylasLocationComponentCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
1882
+ const nylasLocationComponentCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
1779
1883
  const NylasLocationComponentStyle0 = nylasLocationComponentCss;
1780
1884
 
1781
1885
  var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -1803,6 +1907,7 @@ const NylasLocationComponent = class {
1803
1907
  this.internals = hostRef.$hostElement$.attachInternals();
1804
1908
  hostRef.$hostElement$["s-ei"] = this.internals;
1805
1909
  }
1910
+ this.selectedConfiguration = undefined;
1806
1911
  this.eventLocation = undefined;
1807
1912
  this.location = this.eventLocation ?? '';
1808
1913
  this.selectedLocationOption = this.eventLocation ? 'custom' : 'none';
@@ -1812,6 +1917,14 @@ const NylasLocationComponent = class {
1812
1917
  debug('nylas-location-component', 'elementNameChangedHandler', newValue);
1813
1918
  this.host.setAttribute('name', newValue);
1814
1919
  }
1920
+ selectedConfigurationChangedHandler(newValue, oldValue) {
1921
+ debug('nylas-custom-booking-flow', 'selectedConfigurationChangedHandler', newValue, oldValue);
1922
+ const configLocation = newValue?.event_booking?.location;
1923
+ if (configLocation) {
1924
+ this.selectedLocationOption = configLocation ? 'custom' : 'none';
1925
+ this.location = configLocation;
1926
+ }
1927
+ }
1815
1928
  eventLocationChangedHandler(newValue, oldValue) {
1816
1929
  debug('nylas-location-component', 'eventLocationChangedHandler', newValue);
1817
1930
  if (newValue === oldValue) {
@@ -1856,21 +1969,23 @@ const NylasLocationComponent = class {
1856
1969
  { value: 'custom', label: 'Custom location' },
1857
1970
  ];
1858
1971
  const icons = {
1859
- none: h("location-off-icon", { key: 'b6ed0f7da911d13fe204658d1dbfbc29d569a99a' }),
1860
- custom: h("location-icon", { key: '08a5c193876813578037ee6003ab03fd947fb87d' }),
1972
+ none: h("location-off-icon", { key: '5344819790f0d245e78de8808b05005eaa610991' }),
1973
+ custom: h("location-icon", { key: '6d931006f7ea79e3290bde60cbdd3c1ca8e827f8' }),
1861
1974
  };
1862
- return (h(Host, { key: 'e512133eb2a9213bfacc2edad0581b7a6ad41bbc' }, h("div", { key: '1f0e59707c41f7836805ff26efbd5cc119dfef11', class: "nylas-event-location", part: "nel" }, h("label", { key: '60e264aa383ae29342678ecf23b12631fff1bc98', htmlFor: "location" }, "Location type", h("span", { key: '64c34dbeafa4b5c033be3d1facede6e737b915e1', class: "label-icon" }, h("tooltip-component", { key: '0c569694141c72418e997a85328127968d05eac1' }, h("info-icon", { key: '411fe82e0b6296b34aae95459c9da8bc07bd8131', slot: "tooltip-icon" }), h("span", { key: '67b4582af4fe7085c748e842b5fda1a46a454edf', slot: "tooltip-content" }, "Choose how you\u2019ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), h("div", { key: '3f7b59eaae37afcd7abc4af3c608c5e6dc3ebc30', class: "location-input" }, h("select-dropdown", { key: '424550ac2c3fd61e7c59d2e8c98cedfd156d5661', withSearch: false, name: "location", options: locationOptions, defaultSelectedOption: locationOptions.find(i => i.value == this.selectedLocationOption), exportparts: "sd__dropdown: nel__dropdown, sd__dropdown-button: nel__dropdown-button, sd__dropdown-content: nel__dropdown-content" }, h("span", { key: '300fd4134259f97fcf3ba09d3d296c15ca18eec7', slot: "select-icon" }, icons[this.selectedLocationOption])), this.selectedLocationOption === 'custom' && (h("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: e => this.handleChange(e) }))))));
1975
+ return (h(Host, { key: '2117e5636492cd1b3bc3b975fdc1398c030df9a4' }, h("div", { key: '093c3fdfaf0ad88955f8f785a5c589708d941e57', class: "nylas-event-location", part: "nel" }, h("label", { key: 'e2754216f675fc82cdc7813bacfe0e928e9ed50e', htmlFor: "location" }, "Location type", h("span", { key: 'e402fccc0065a4f6fd0cbd05af345b73b06c4464', class: "label-icon" }, h("tooltip-component", { key: 'c818dbca3cbbf29e34c56bbc9caea7fc3816d808' }, h("info-icon", { key: '5ea673e0d49efe7e0a4ac04c3ec64427a63b8843', slot: "tooltip-icon" }), h("span", { key: 'dac6ddf369aa6caf62a870ca349745f546ed3959', slot: "tooltip-content" }, "Choose how you\u2019ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), h("div", { key: 'bf334b9e8e03b660f661d264c9ca52444ee859b6', class: "location-input" }, h("select-dropdown", { key: 'f216e1589bb3b72a9ed6b9cfbec5683795e1b08e', withSearch: false, name: "location", options: locationOptions, defaultSelectedOption: locationOptions.find(i => i.value == this.selectedLocationOption), exportparts: "sd__dropdown: nel__dropdown, sd__dropdown-button: nel__dropdown-button, sd__dropdown-content: nel__dropdown-content" }, h("span", { key: '6ca96d9f95ac189195c1490e6872b2478cd0d270', slot: "select-icon" }, icons[this.selectedLocationOption])), this.selectedLocationOption === 'custom' && (h("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: e => this.handleChange(e) }))))));
1863
1976
  }
1864
1977
  static get formAssociated() { return true; }
1865
1978
  get host() { return getElement(this); }
1866
1979
  static get watchers() { return {
1867
1980
  "name": ["elementNameChangedHandler"],
1981
+ "selectedConfiguration": ["selectedConfigurationChangedHandler"],
1868
1982
  "eventLocation": ["eventLocationChangedHandler"]
1869
1983
  }; }
1870
1984
  };
1871
1985
  __decorate$1([
1872
1986
  RegisterComponent({
1873
1987
  name: 'nylas-location-component',
1988
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
1874
1989
  eventToProps: {},
1875
1990
  fireRegisterEvent: true,
1876
1991
  }),
@@ -1908,6 +2023,7 @@ const NylasMinCancellationNotice = class {
1908
2023
  this.internals = hostRef.$hostElement$.attachInternals();
1909
2024
  hostRef.$hostElement$["s-ei"] = this.internals;
1910
2025
  }
2026
+ this.selectedConfiguration = undefined;
1911
2027
  this.minCancellationNotice = undefined;
1912
2028
  this.name = 'min-cancellation-notice';
1913
2029
  this.selectedNumber = 1;
@@ -1917,10 +2033,14 @@ const NylasMinCancellationNotice = class {
1917
2033
  debug('nylas-min-cancellation-notice', 'elementNameChangedHandler', newValue);
1918
2034
  this.host.setAttribute('name', newValue);
1919
2035
  }
2036
+ selectedConfigurationChangedHandler(newVal) {
2037
+ const minCancellationNotice = newVal?.scheduler?.min_cancellation_notice;
2038
+ if (minCancellationNotice) {
2039
+ this.updateNumberAndPeriodFromMinutes(minCancellationNotice);
2040
+ }
2041
+ }
1920
2042
  availableDaysInFutureChanged(newValue) {
1921
- const { number, period } = this.calculateNumberAndPeriodFromMinutes(newValue);
1922
- this.selectedNumber = number;
1923
- this.selectedPeriod = period;
2043
+ this.updateNumberAndPeriodFromMinutes(newValue);
1924
2044
  }
1925
2045
  connectedCallback() {
1926
2046
  debug('nylas-min-cancellation-notice', 'connectedCallback');
@@ -1965,46 +2085,56 @@ const NylasMinCancellationNotice = class {
1965
2085
  else {
1966
2086
  totalMinutes = 0;
1967
2087
  }
1968
- this.valueChanged.emit({ value: totalMinutes, name: this.name });
2088
+ this.valueChanged.emit({ value: totalMinutes, name: 'minCancellationNotice' });
1969
2089
  if (typeof this.internals.setFormValue !== 'function') {
1970
2090
  return;
1971
2091
  }
1972
2092
  this.internals.setFormValue(totalMinutes.toString(), this.name);
1973
2093
  }
1974
- calculateNumberAndPeriodFromMinutes(minutes) {
2094
+ updateNumberAndPeriodFromMinutes(minutes) {
1975
2095
  const minutesInHour = 60;
1976
2096
  const minutesInDay = minutesInHour * 24;
1977
2097
  const minutesInWeek = minutesInDay * 7;
1978
2098
  const minutesInMonth = minutesInDay * 30;
2099
+ let number, period;
1979
2100
  if (minutes >= minutesInMonth) {
1980
- return { number: Math.floor(minutes / minutesInMonth), period: 'month' };
2101
+ number = Math.floor(minutes / minutesInMonth);
2102
+ period = 'month';
1981
2103
  }
1982
2104
  else if (minutes >= minutesInWeek) {
1983
- return { number: Math.floor(minutes / minutesInWeek), period: 'week' };
2105
+ number = Math.floor(minutes / minutesInWeek);
2106
+ period = 'week';
1984
2107
  }
1985
2108
  else if (minutes >= minutesInDay) {
1986
- return { number: Math.floor(minutes / minutesInDay), period: 'day' };
2109
+ number = Math.floor(minutes / minutesInDay);
2110
+ period = 'day';
1987
2111
  }
1988
2112
  else if (minutes >= minutesInHour) {
1989
- return { number: Math.floor(minutes / minutesInHour), period: 'hour' };
2113
+ number = Math.floor(minutes / minutesInHour);
2114
+ period = 'hour';
1990
2115
  }
1991
2116
  else {
1992
- return { number: minutes, period: 'minute' };
2117
+ number = minutes;
2118
+ period = 'minute';
1993
2119
  }
2120
+ this.selectedNumber = number;
2121
+ this.selectedPeriod = period;
1994
2122
  }
1995
2123
  render() {
1996
- return (h(Host, { key: '594c4e6ca9c565f486f5c09159de518fe586f7b8' }, h("div", { key: '712baa63d3ea867b5a7893a254954fcea49c80f0', class: "nylas-min-cancellation-notice", part: "nmcn" }, h("label", { key: '7256ab66b7908dc8b972b2987276e0d2d04dd0ee' }, "Minimum cancellation notice", h("span", { key: '515772bd9028f2718ad350acef7b293269e12279', class: "label-icon" }, h("tooltip-component", { key: '1fe93b6067d38d4d78fe0c16fbd21d67ea5db0fd' }, h("info-icon", { key: '2b1e4eb5c88b329441a98009d2e81fbe6c807ccd', slot: "tooltip-icon" }), h("span", { key: '44f83c20d9041f31bb4b58c190c5877cfcdd41b3', slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), h("time-period-selector", { key: '4b1725b8d90355b2481a37d8b894414ea5549cd8', 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 }))));
2124
+ return (h(Host, { key: 'd2eb0d080d1ce4645a642a4f5d55270ed170e882' }, h("div", { key: '2743c3c781ad47c9d0d53fdad2773f45d172e1f4', class: "nylas-min-cancellation-notice", part: "nmcn" }, h("label", { key: '457729b50558651645ecb10398586af1078cfd34' }, "Minimum cancellation notice", h("span", { key: '00b310035def5b8bbc183fa03d2bcb37d7c04b42', class: "label-icon" }, h("tooltip-component", { key: '27c7695f6302e2d043899656f15a70846c2858e2' }, h("info-icon", { key: '10f878cb410cc284e86890a0d6047c27bdc7f455', slot: "tooltip-icon" }), h("span", { key: 'e853afaa116b43371d01fcb3b801e622902e22cd', slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), h("time-period-selector", { key: '8bb3955f8cce7661e213fbf2c107f8326937b467', 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 }))));
1997
2125
  }
1998
2126
  static get formAssociated() { return true; }
1999
2127
  get host() { return getElement(this); }
2000
2128
  static get watchers() { return {
2001
2129
  "name": ["elementNameChangedHandler"],
2130
+ "selectedConfiguration": ["selectedConfigurationChangedHandler"],
2002
2131
  "availableDaysInFuture": ["availableDaysInFutureChanged"]
2003
2132
  }; }
2004
2133
  };
2005
2134
  __decorate([
2006
2135
  RegisterComponent({
2007
2136
  name: 'nylas-min-cancellation-notice',
2137
+ stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
2008
2138
  eventToProps: {},
2009
2139
  fireRegisterEvent: true,
2010
2140
  }),
@@ -2255,7 +2385,7 @@ const TimeInput = class {
2255
2385
  }
2256
2386
  }
2257
2387
  render() {
2258
- return (h(Host, { key: 'ce9cc8b8d7672d0e8389051d271e2369598f3e0f' }, h("div", { key: 'c12333b0675d581b6f84b5d332d05deeceabab32', class: "time-picker", part: "time-picker" }, h("input", { key: '65e951f23fce142c529933e8f0311a124b32c948', type: "text", name: this.name, id: this.name, part: "time-input", class: {
2388
+ return (h(Host, { key: 'fe86daaa8256c8fb59ffe2dfcbf50220f3a7b746' }, h("div", { key: '8cffe49df87c5bf2b73cef66236c806b47d623d4', class: "time-picker", part: "time-picker" }, h("input", { key: '6f735244c63287b0ec0668b688bbb18bb405346b', type: "text", name: this.name, id: this.name, part: "time-input", class: {
2259
2389
  'time-input': true,
2260
2390
  'error': !!this.err || this.hasError,
2261
2391
  }, ref: el => (this.timeInput = el), value: this.time, onClick: () => {