@nylas/web-elements 1.1.0-canary.5 → 1.1.0-canary.8

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 (807) 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 +242 -101
  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 +95 -51
  33. package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
  34. package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/index.cjs.js +2 -2
  36. package/dist/cjs/{index.es-b12b7df1.js → index.es-4a7d8d3f.js} +2 -2
  37. package/dist/cjs/{index.es-b12b7df1.js.map → index.es-4a7d8d3f.js.map} +1 -1
  38. package/dist/cjs/{index.es-0a0f2d87.js → index.es-b2cce060.js} +2 -2
  39. package/dist/cjs/{index.es-0a0f2d87.js.map → index.es-b2cce060.js.map} +1 -1
  40. package/dist/cjs/info-icon.cjs.entry.js +1 -1
  41. package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
  42. package/dist/cjs/italic-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/cjs/loading-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/location-icon.cjs.entry.js +1 -1
  46. package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
  47. package/dist/cjs/{mailbox-store-05fa3bec.js → mailbox-store-a2f858b7.js} +3 -3
  48. package/dist/cjs/{mailbox-store-05fa3bec.js.map → mailbox-store-a2f858b7.js.map} +1 -1
  49. package/dist/cjs/{mailbox-store-14531fd4.js → mailbox-store-ecceb918.js} +3 -3
  50. package/dist/cjs/{mailbox-store-14531fd4.js.map → mailbox-store-ecceb918.js.map} +1 -1
  51. package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
  52. package/dist/cjs/multi-select-dropdown.cjs.entry.js +3 -3
  53. package/dist/cjs/nylas-additional-participants.cjs.entry.js +3 -3
  54. package/dist/cjs/{nylas-api-request-2a0e7022.js → nylas-api-request-28b4576a.js} +14 -3
  55. package/dist/cjs/nylas-api-request-28b4576a.js.map +1 -0
  56. package/dist/cjs/{nylas-api-request-55923233.js → nylas-api-request-c9e0e347.js} +14 -3
  57. package/dist/cjs/nylas-api-request-c9e0e347.js.map +1 -0
  58. package/dist/cjs/nylas-availability-picker.cjs.entry.js +33 -16
  59. package/dist/cjs/nylas-availability-picker.cjs.entry.js.map +1 -1
  60. package/dist/cjs/nylas-booked-event-card.cjs.entry.js +3 -3
  61. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +7 -7
  62. package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js +12 -6
  63. package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js.map +1 -1
  64. package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
  65. package/dist/cjs/nylas-buffer-time.cjs.entry.js +2 -2
  66. package/dist/cjs/nylas-calendar-picker.cjs.entry.js +13 -8
  67. package/dist/cjs/nylas-calendar-picker.cjs.entry.js.map +1 -1
  68. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +3 -3
  69. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +3 -3
  70. package/dist/cjs/nylas-composer.cjs.entry.js +2 -2
  71. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +21 -12
  72. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js.map +1 -1
  73. package/dist/cjs/nylas-date-picker.cjs.entry.js +2 -2
  74. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +69 -40
  75. package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
  76. package/dist/cjs/nylas-event-description.cjs.entry.js +15 -6
  77. package/dist/cjs/nylas-event-description.cjs.entry.js.map +1 -1
  78. package/dist/cjs/nylas-event-duration.cjs.entry.js +15 -10
  79. package/dist/cjs/nylas-event-duration.cjs.entry.js.map +1 -1
  80. package/dist/cjs/nylas-event-info.cjs.entry.js +3 -3
  81. package/dist/cjs/nylas-event-limits.cjs.entry.js +3 -3
  82. package/dist/cjs/nylas-event-title.cjs.entry.js +70 -19
  83. package/dist/cjs/nylas-event-title.cjs.entry.js.map +1 -1
  84. package/dist/cjs/nylas-form-card.cjs.entry.js +3 -3
  85. package/dist/cjs/nylas-if-state.cjs.entry.js +2 -2
  86. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +24 -11
  87. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js.map +1 -1
  88. package/dist/cjs/nylas-list-configurations.cjs.entry.js +26 -11
  89. package/dist/cjs/nylas-list-configurations.cjs.entry.js.map +1 -1
  90. package/dist/cjs/nylas-list-folders.cjs.entry.js +3 -3
  91. package/dist/cjs/nylas-list-threads.cjs.entry.js +3 -3
  92. package/dist/cjs/nylas-locale-switch.cjs.entry.js +3 -3
  93. package/dist/cjs/nylas-location-component.cjs.entry.js +17 -6
  94. package/dist/cjs/nylas-location-component.cjs.entry.js.map +1 -1
  95. package/dist/cjs/nylas-login.cjs.entry.js +3 -3
  96. package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
  97. package/dist/cjs/nylas-mailbox-pagination.cjs.entry.js +2 -2
  98. package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +3 -3
  99. package/dist/cjs/nylas-mailbox.cjs.entry.js +4 -4
  100. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +28 -13
  101. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js.map +1 -1
  102. package/dist/cjs/nylas-notification.cjs.entry.js +2 -2
  103. package/dist/cjs/nylas-provider.cjs.entry.js +6 -6
  104. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +18 -18
  105. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
  106. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
  107. package/dist/cjs/nylas-selected-event-card.cjs.entry.js +3 -3
  108. package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +4 -4
  109. package/dist/cjs/nylas-threads-refresh.cjs.entry.js +4 -4
  110. package/dist/cjs/nylas-threads-search.cjs.entry.js +3 -3
  111. package/dist/cjs/nylas-time-window-picker.cjs.entry.js +2 -2
  112. package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +2 -2
  113. package/dist/cjs/nylas-view-email.cjs.entry.js +2 -2
  114. package/dist/cjs/nylas-view-thread.cjs.entry.js +3 -3
  115. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  116. package/dist/cjs/people-icon.cjs.entry.js +1 -1
  117. package/dist/cjs/play-icon.cjs.entry.js +1 -1
  118. package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
  119. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  120. package/dist/cjs/{register-component-c8b6e907.js → register-component-7ecacf90.js} +2 -2
  121. package/dist/cjs/{register-component-09ebdf31.js.map → register-component-7ecacf90.js.map} +1 -1
  122. package/dist/cjs/{register-component-09ebdf31.js → register-component-98ab6f54.js} +2 -2
  123. package/dist/cjs/{register-component-c8b6e907.js.map → register-component-98ab6f54.js.map} +1 -1
  124. package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
  125. package/dist/cjs/reply-icon.cjs.entry.js +1 -1
  126. package/dist/cjs/{scheduler-config-store-4d93a9b7.js → scheduler-config-store-37690bf0.js} +10 -4
  127. package/dist/cjs/scheduler-config-store-37690bf0.js.map +1 -0
  128. package/dist/cjs/{scheduler-config-store-a0e08cab.js → scheduler-config-store-529c8d7e.js} +10 -4
  129. package/dist/cjs/scheduler-config-store-529c8d7e.js.map +1 -0
  130. package/dist/cjs/{scheduler-store-e148a4cc.js → scheduler-store-22103c86.js} +16 -3
  131. package/dist/cjs/scheduler-store-22103c86.js.map +1 -0
  132. package/dist/cjs/{scheduler-store-a492526c.js → scheduler-store-fad9ed7a.js} +16 -3
  133. package/dist/cjs/scheduler-store-fad9ed7a.js.map +1 -0
  134. package/dist/cjs/search-icon.cjs.entry.js +1 -1
  135. package/dist/cjs/select-dropdown.cjs.entry.js +2 -2
  136. package/dist/cjs/sent-icon.cjs.entry.js +1 -1
  137. package/dist/cjs/spam-icon.cjs.entry.js +1 -1
  138. package/dist/cjs/star-icon.cjs.entry.js +1 -1
  139. package/dist/cjs/stop-icon.cjs.entry.js +1 -1
  140. package/dist/cjs/time-period-selector.cjs.entry.js +2 -2
  141. package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
  142. package/dist/cjs/translate-icon.cjs.entry.js +1 -1
  143. package/dist/cjs/trash-icon.cjs.entry.js +1 -1
  144. package/dist/cjs/underline-icon.cjs.entry.js +1 -1
  145. package/dist/cjs/{utils-20663d54.js → utils-9fc33c77.js} +46 -1
  146. package/dist/cjs/utils-9fc33c77.js.map +1 -0
  147. package/dist/cjs/{utils-2c7f0895.js → utils-d8cfc3be.js} +46 -1
  148. package/dist/cjs/{utils-2c7f0895.js.map → utils-d8cfc3be.js.map} +1 -1
  149. package/dist/cjs/warning-icon.cjs.entry.js +1 -1
  150. package/dist/collection/common/constants.js +9 -0
  151. package/dist/collection/common/constants.js.map +1 -1
  152. package/dist/collection/common/icons/add-circle.js +1 -1
  153. package/dist/collection/common/icons/archive.js +1 -1
  154. package/dist/collection/common/icons/arrow.js +1 -1
  155. package/dist/collection/common/icons/bold.js +1 -1
  156. package/dist/collection/common/icons/calendar-cancel.js +1 -1
  157. package/dist/collection/common/icons/calendar-check.js +1 -1
  158. package/dist/collection/common/icons/calendar-info.js +1 -1
  159. package/dist/collection/common/icons/calendar-patterns.js +1 -1
  160. package/dist/collection/common/icons/calendar.js +1 -1
  161. package/dist/collection/common/icons/checkmark-circle.js +1 -1
  162. package/dist/collection/common/icons/chevron.js +1 -1
  163. package/dist/collection/common/icons/close.js +1 -1
  164. package/dist/collection/common/icons/document-refresh.js +1 -1
  165. package/dist/collection/common/icons/flow.js +1 -1
  166. package/dist/collection/common/icons/folder.js +1 -1
  167. package/dist/collection/common/icons/forward.js +1 -1
  168. package/dist/collection/common/icons/globe.js +1 -1
  169. package/dist/collection/common/icons/google-logo.js +1 -1
  170. package/dist/collection/common/icons/inbox.js +1 -1
  171. package/dist/collection/common/icons/info.js +1 -1
  172. package/dist/collection/common/icons/italic.js +1 -1
  173. package/dist/collection/common/icons/loading.js +1 -1
  174. package/dist/collection/common/icons/location-off.js +1 -1
  175. package/dist/collection/common/icons/location.js +1 -1
  176. package/dist/collection/common/icons/microsoft-logo.js +1 -1
  177. package/dist/collection/common/icons/nylas-logo.js +1 -1
  178. package/dist/collection/common/icons/people.js +1 -1
  179. package/dist/collection/common/icons/play.js +1 -1
  180. package/dist/collection/common/icons/refresh.js +1 -1
  181. package/dist/collection/common/icons/reply-all.js +1 -1
  182. package/dist/collection/common/icons/reply.js +1 -1
  183. package/dist/collection/common/icons/search.js +1 -1
  184. package/dist/collection/common/icons/sent.js +1 -1
  185. package/dist/collection/common/icons/spam.js +1 -1
  186. package/dist/collection/common/icons/star.js +1 -1
  187. package/dist/collection/common/icons/stop.js +1 -1
  188. package/dist/collection/common/icons/translate.js +1 -1
  189. package/dist/collection/common/icons/trash.js +1 -1
  190. package/dist/collection/common/icons/underline.js +1 -1
  191. package/dist/collection/common/icons/warning.js +1 -1
  192. package/dist/collection/common/nylas-api-request.js +12 -1
  193. package/dist/collection/common/nylas-api-request.js.map +1 -1
  194. package/dist/collection/components/design-system/button-component/button-component.css +5 -0
  195. package/dist/collection/components/design-system/button-component/button-component.js +1 -1
  196. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
  197. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
  198. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
  199. package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
  200. package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
  201. package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
  202. package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
  203. package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
  204. package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
  205. package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
  206. package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
  207. package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
  208. package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
  209. package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
  210. package/dist/collection/components/nylas-login/nylas-login.js +1 -1
  211. package/dist/collection/components/nylas-provider/nylas-provider.js +2 -2
  212. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
  213. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  214. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  215. package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
  216. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +1 -1
  217. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +55 -15
  218. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js.map +1 -1
  219. package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js +32 -5
  220. package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js.map +1 -1
  221. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js +23 -14
  222. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js.map +1 -1
  223. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +41 -9
  224. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js.map +1 -1
  225. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.css +35 -3
  226. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +99 -36
  227. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  228. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js +4 -4
  229. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
  230. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.css +1 -1
  231. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +34 -2
  232. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
  233. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.css +1 -1
  234. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +35 -7
  235. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
  236. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  237. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  238. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.css +8 -1
  239. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +102 -17
  240. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
  241. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  242. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +45 -9
  243. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js.map +1 -1
  244. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.css +39 -2
  245. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js +46 -9
  246. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js.map +1 -1
  247. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.css +2 -2
  248. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js +37 -3
  249. package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js.map +1 -1
  250. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +49 -11
  251. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js.map +1 -1
  252. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.css +6 -0
  253. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +36 -16
  254. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +1 -1
  255. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
  256. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js +8 -0
  257. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js.map +1 -1
  258. package/dist/collection/connector/shared/api/scheduler-config.js +6 -6
  259. package/dist/collection/connector/shared/api/scheduler-config.js.map +1 -1
  260. package/dist/collection/connector/shared/api/scheduler.js +6 -1
  261. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  262. package/dist/collection/index.js +0 -1
  263. package/dist/collection/index.js.map +1 -1
  264. package/dist/collection/stores/scheduler-config-store.js +9 -3
  265. package/dist/collection/stores/scheduler-config-store.js.map +1 -1
  266. package/dist/collection/utils/utils.js +44 -0
  267. package/dist/collection/utils/utils.js.map +1 -1
  268. package/dist/components/add-circle.js +1 -1
  269. package/dist/components/archive.js +1 -1
  270. package/dist/components/arrow.js +1 -1
  271. package/dist/components/bold.js +1 -1
  272. package/dist/components/button-component2.js +2 -2
  273. package/dist/components/button-component2.js.map +1 -1
  274. package/dist/components/calendar-cancel.js +1 -1
  275. package/dist/components/calendar-check.js +1 -1
  276. package/dist/components/calendar-info.js +1 -1
  277. package/dist/components/calendar-patterns.js +1 -1
  278. package/dist/components/calendar.js +1 -1
  279. package/dist/components/checkmark-circle.js +1 -1
  280. package/dist/components/chevron.js +1 -1
  281. package/dist/components/close.js +1 -1
  282. package/dist/components/constants.js +11 -2
  283. package/dist/components/constants.js.map +1 -1
  284. package/dist/components/document-refresh-icon.js +1 -1
  285. package/dist/components/flow.js +1 -1
  286. package/dist/components/focus-visible.js +1 -1
  287. package/dist/components/folder.js +1 -1
  288. package/dist/components/forward.js +1 -1
  289. package/dist/components/globe.js +1 -1
  290. package/dist/components/google-logo.js +1 -1
  291. package/dist/components/inbox.js +1 -1
  292. package/dist/components/index.d.ts +0 -179
  293. package/dist/components/index.es.js +2 -194
  294. package/dist/components/index.es.js.map +1 -1
  295. package/dist/components/index.js +2 -89
  296. package/dist/components/index.js.map +1 -1
  297. package/dist/components/index2.js +196 -0
  298. package/dist/components/index2.js.map +1 -0
  299. package/dist/components/info.js +1 -1
  300. package/dist/components/italic.js +1 -1
  301. package/dist/components/loading.js +1 -1
  302. package/dist/components/location-off.js +1 -1
  303. package/dist/components/location.js +1 -1
  304. package/dist/components/mailbox-store.js +3 -2
  305. package/dist/components/mailbox-store.js.map +1 -1
  306. package/dist/components/microsoft-logo.js +1 -1
  307. package/dist/components/multi-select-dropdown2.js +3 -3
  308. package/dist/components/nylas-additional-participants.js +2 -2
  309. package/dist/{nylas-web-elements/nylas-api-request-4f3dbb72.js → components/nylas-api-request.js} +14 -3
  310. package/dist/components/nylas-api-request.js.map +1 -0
  311. package/dist/components/nylas-availability-picker2.js +33 -14
  312. package/dist/components/nylas-availability-picker2.js.map +1 -1
  313. package/dist/components/nylas-booked-event-card2.js +1 -1
  314. package/dist/components/nylas-booking-calendar-picker2.js +12 -5
  315. package/dist/components/nylas-booking-calendar-picker2.js.map +1 -1
  316. package/dist/components/nylas-booking-form2.js +1 -1
  317. package/dist/components/nylas-buffer-time2.js +1 -1
  318. package/dist/components/nylas-calendar-picker2.js +13 -8
  319. package/dist/components/nylas-calendar-picker2.js.map +1 -1
  320. package/dist/components/nylas-cancel-booking-form2.js +2 -2
  321. package/dist/components/nylas-cancelled-event-card2.js +2 -2
  322. package/dist/components/nylas-composer2.js +2 -2
  323. package/dist/components/nylas-custom-booking-flow2.js +23 -12
  324. package/dist/components/nylas-custom-booking-flow2.js.map +1 -1
  325. package/dist/components/nylas-date-picker2.js +1 -1
  326. package/dist/components/nylas-editor-tabs2.js +74 -43
  327. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  328. package/dist/components/nylas-event-description2.js +17 -6
  329. package/dist/components/nylas-event-description2.js.map +1 -1
  330. package/dist/components/nylas-event-duration2.js +16 -9
  331. package/dist/components/nylas-event-duration2.js.map +1 -1
  332. package/dist/components/nylas-event-info2.js +2 -2
  333. package/dist/components/nylas-event-limits2.js +2 -2
  334. package/dist/components/nylas-event-title2.js +74 -20
  335. package/dist/components/nylas-event-title2.js.map +1 -1
  336. package/dist/components/nylas-form-card2.js +2 -2
  337. package/dist/components/nylas-if-state.js +1 -1
  338. package/dist/components/nylas-limit-future-bookings2.js +25 -10
  339. package/dist/components/nylas-limit-future-bookings2.js.map +1 -1
  340. package/dist/components/nylas-list-configurations2.js +28 -11
  341. package/dist/components/nylas-list-configurations2.js.map +1 -1
  342. package/dist/components/nylas-list-folders.js +2 -2
  343. package/dist/components/nylas-list-threads.js +2 -2
  344. package/dist/components/nylas-location-component2.js +18 -5
  345. package/dist/components/nylas-location-component2.js.map +1 -1
  346. package/dist/components/nylas-login.js +1 -1
  347. package/dist/components/nylas-logo2.js +1 -1
  348. package/dist/components/nylas-mailbox-pagination.js +1 -1
  349. package/dist/components/nylas-mailbox-toolbar-button.js +2 -2
  350. package/dist/components/nylas-mailbox.js +2 -2
  351. package/dist/components/nylas-min-cancellation-notice2.js +29 -12
  352. package/dist/components/nylas-min-cancellation-notice2.js.map +1 -1
  353. package/dist/components/nylas-notification2.js +2 -2
  354. package/dist/components/nylas-provider.js +2 -2
  355. package/dist/components/nylas-scheduler-editor.js +18 -58
  356. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  357. package/dist/components/nylas-scheduling.js +1 -1
  358. package/dist/components/nylas-selected-event-card2.js +1 -1
  359. package/dist/components/nylas-summarize-message-button2.js +3 -3
  360. package/dist/components/nylas-threads-refresh.js +3 -3
  361. package/dist/components/nylas-threads-search.js +2 -2
  362. package/dist/components/nylas-time-window-picker2.js +2 -2
  363. package/dist/components/nylas-timeslot-picker2.js +1 -1
  364. package/dist/components/nylas-view-email2.js +2 -2
  365. package/dist/components/nylas-view-thread.js +2 -2
  366. package/dist/components/people-icon.js +1 -1
  367. package/dist/components/play.js +1 -1
  368. package/dist/components/refresh.js +1 -1
  369. package/dist/components/register-component.js +1 -1
  370. package/dist/components/reply-all.js +1 -1
  371. package/dist/components/reply.js +1 -1
  372. package/dist/components/scheduler-config-store.js +10 -4
  373. package/dist/components/scheduler-config-store.js.map +1 -1
  374. package/dist/components/scheduler-store.js +16 -3
  375. package/dist/components/scheduler-store.js.map +1 -1
  376. package/dist/components/search.js +1 -1
  377. package/dist/components/select-dropdown2.js +2 -2
  378. package/dist/components/sent.js +1 -1
  379. package/dist/components/spam.js +1 -1
  380. package/dist/components/star.js +1 -1
  381. package/dist/components/stop.js +1 -1
  382. package/dist/components/time-period-selector2.js +2 -2
  383. package/dist/components/toolitp-component.js +1 -1
  384. package/dist/components/translate.js +1 -1
  385. package/dist/components/trash.js +1 -1
  386. package/dist/components/underline.js +1 -1
  387. package/dist/components/utils.js +45 -1
  388. package/dist/components/utils.js.map +1 -1
  389. package/dist/components/warning.js +1 -1
  390. package/dist/esm/add-circle-icon.entry.js +1 -1
  391. package/dist/esm/add-circle-icon_22.entry.js +242 -101
  392. package/dist/esm/add-circle-icon_22.entry.js.map +1 -1
  393. package/dist/esm/archive-icon.entry.js +1 -1
  394. package/dist/esm/archive-icon_7.entry.js +7 -7
  395. package/dist/esm/arrow-icon.entry.js +1 -1
  396. package/dist/esm/bold-icon.entry.js +1 -1
  397. package/dist/esm/bold-icon_3.entry.js +3 -3
  398. package/dist/esm/button-component.entry.js +2 -2
  399. package/dist/esm/button-component.entry.js.map +1 -1
  400. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  401. package/dist/esm/calendar-check-icon.entry.js +1 -1
  402. package/dist/esm/calendar-check-icon_2.entry.js +2 -2
  403. package/dist/esm/calendar-icon.entry.js +1 -1
  404. package/dist/esm/calendar-info-icon.entry.js +1 -1
  405. package/dist/esm/calendar-patterns-icon.entry.js +1 -1
  406. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  407. package/dist/esm/chevron-icon.entry.js +1 -1
  408. package/dist/esm/chevron-icon_3.entry.js +4 -4
  409. package/dist/esm/close-icon.entry.js +1 -1
  410. package/dist/esm/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
  411. package/dist/{nylas-web-elements/constants-335dffcf.js.map → esm/constants-bf39e913.js.map} +1 -1
  412. package/dist/esm/{constants-6ee60d6d.js → constants-f34b9c6e.js} +11 -2
  413. package/dist/esm/{constants-6ee60d6d.js.map → constants-f34b9c6e.js.map} +1 -1
  414. package/dist/esm/document-refresh-icon.entry.js +1 -1
  415. package/dist/esm/flow-icon.entry.js +1 -1
  416. package/dist/esm/folder-icon.entry.js +1 -1
  417. package/dist/esm/forward-icon.entry.js +1 -1
  418. package/dist/esm/forward-icon_6.entry.js +9 -9
  419. package/dist/esm/globe-icon.entry.js +1 -1
  420. package/dist/esm/google-logo-icon.entry.js +1 -1
  421. package/dist/esm/google-logo-icon_4.entry.js +95 -51
  422. package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
  423. package/dist/esm/inbox-icon.entry.js +1 -1
  424. package/dist/esm/{index.es-f57e612a.js → index.es-df564f87.js} +2 -2
  425. package/dist/esm/{index.es-f57e612a.js.map → index.es-df564f87.js.map} +1 -1
  426. package/dist/{nylas-web-elements/index.es-2842f8c8.js → esm/index.es-e4f027a2.js} +2 -2
  427. package/dist/esm/{index.es-2842f8c8.js.map → index.es-e4f027a2.js.map} +1 -1
  428. package/dist/esm/index.js +2 -2
  429. package/dist/esm/info-icon.entry.js +1 -1
  430. package/dist/esm/info-icon_2.entry.js +2 -2
  431. package/dist/esm/italic-icon.entry.js +1 -1
  432. package/dist/esm/loader.js +1 -1
  433. package/dist/esm/loading-icon.entry.js +1 -1
  434. package/dist/esm/location-icon.entry.js +1 -1
  435. package/dist/esm/location-off-icon.entry.js +1 -1
  436. package/dist/{nylas-web-elements/mailbox-store-d48269de.js → esm/mailbox-store-5075f820.js} +3 -3
  437. package/dist/{nylas-web-elements/mailbox-store-d48269de.js.map → esm/mailbox-store-5075f820.js.map} +1 -1
  438. package/dist/esm/{mailbox-store-47fc8a1a.js → mailbox-store-69c5c5f6.js} +3 -3
  439. package/dist/esm/{mailbox-store-47fc8a1a.js.map → mailbox-store-69c5c5f6.js.map} +1 -1
  440. package/dist/esm/microsoft-logo-icon.entry.js +1 -1
  441. package/dist/esm/multi-select-dropdown.entry.js +3 -3
  442. package/dist/esm/nylas-additional-participants.entry.js +3 -3
  443. package/dist/esm/{nylas-api-request-4f3dbb72.js → nylas-api-request-6a19db25.js} +14 -3
  444. package/dist/esm/nylas-api-request-6a19db25.js.map +1 -0
  445. package/dist/esm/{nylas-api-request-3120d9ac.js → nylas-api-request-b49b1da6.js} +14 -3
  446. package/dist/esm/nylas-api-request-b49b1da6.js.map +1 -0
  447. package/dist/esm/nylas-availability-picker.entry.js +33 -16
  448. package/dist/esm/nylas-availability-picker.entry.js.map +1 -1
  449. package/dist/esm/nylas-booked-event-card.entry.js +3 -3
  450. package/dist/esm/nylas-booked-event-card_10.entry.js +7 -7
  451. package/dist/esm/nylas-booking-calendar-picker.entry.js +12 -6
  452. package/dist/esm/nylas-booking-calendar-picker.entry.js.map +1 -1
  453. package/dist/esm/nylas-booking-form.entry.js +2 -2
  454. package/dist/esm/nylas-buffer-time.entry.js +2 -2
  455. package/dist/esm/nylas-calendar-picker.entry.js +13 -8
  456. package/dist/esm/nylas-calendar-picker.entry.js.map +1 -1
  457. package/dist/esm/nylas-cancel-booking-form.entry.js +3 -3
  458. package/dist/esm/nylas-cancelled-event-card.entry.js +3 -3
  459. package/dist/esm/nylas-composer.entry.js +2 -2
  460. package/dist/esm/nylas-custom-booking-flow.entry.js +21 -12
  461. package/dist/esm/nylas-custom-booking-flow.entry.js.map +1 -1
  462. package/dist/esm/nylas-date-picker.entry.js +2 -2
  463. package/dist/esm/nylas-editor-tabs.entry.js +69 -40
  464. package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
  465. package/dist/esm/nylas-event-description.entry.js +15 -6
  466. package/dist/esm/nylas-event-description.entry.js.map +1 -1
  467. package/dist/esm/nylas-event-duration.entry.js +15 -10
  468. package/dist/esm/nylas-event-duration.entry.js.map +1 -1
  469. package/dist/esm/nylas-event-info.entry.js +3 -3
  470. package/dist/esm/nylas-event-limits.entry.js +3 -3
  471. package/dist/esm/nylas-event-title.entry.js +70 -19
  472. package/dist/esm/nylas-event-title.entry.js.map +1 -1
  473. package/dist/esm/nylas-form-card.entry.js +3 -3
  474. package/dist/esm/nylas-if-state.entry.js +2 -2
  475. package/dist/esm/nylas-limit-future-bookings.entry.js +24 -11
  476. package/dist/esm/nylas-limit-future-bookings.entry.js.map +1 -1
  477. package/dist/esm/nylas-list-configurations.entry.js +26 -11
  478. package/dist/esm/nylas-list-configurations.entry.js.map +1 -1
  479. package/dist/esm/nylas-list-folders.entry.js +3 -3
  480. package/dist/esm/nylas-list-threads.entry.js +3 -3
  481. package/dist/esm/nylas-locale-switch.entry.js +3 -3
  482. package/dist/esm/nylas-location-component.entry.js +17 -6
  483. package/dist/esm/nylas-location-component.entry.js.map +1 -1
  484. package/dist/esm/nylas-login.entry.js +3 -3
  485. package/dist/esm/nylas-logo.entry.js +1 -1
  486. package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
  487. package/dist/esm/nylas-mailbox-toolbar-button.entry.js +3 -3
  488. package/dist/esm/nylas-mailbox.entry.js +4 -4
  489. package/dist/esm/nylas-min-cancellation-notice.entry.js +28 -13
  490. package/dist/esm/nylas-min-cancellation-notice.entry.js.map +1 -1
  491. package/dist/esm/nylas-notification.entry.js +2 -2
  492. package/dist/esm/nylas-provider.entry.js +6 -6
  493. package/dist/esm/nylas-scheduler-editor.entry.js +18 -18
  494. package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
  495. package/dist/esm/nylas-scheduling.entry.js +3 -3
  496. package/dist/esm/nylas-selected-event-card.entry.js +3 -3
  497. package/dist/esm/nylas-summarize-message-button.entry.js +4 -4
  498. package/dist/esm/nylas-threads-refresh.entry.js +4 -4
  499. package/dist/esm/nylas-threads-search.entry.js +3 -3
  500. package/dist/esm/nylas-time-window-picker.entry.js +2 -2
  501. package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
  502. package/dist/esm/nylas-view-email.entry.js +2 -2
  503. package/dist/esm/nylas-view-thread.entry.js +3 -3
  504. package/dist/esm/nylas-web-elements.js +1 -1
  505. package/dist/esm/people-icon.entry.js +1 -1
  506. package/dist/esm/play-icon.entry.js +1 -1
  507. package/dist/esm/play-icon_2.entry.js +2 -2
  508. package/dist/esm/refresh-icon.entry.js +1 -1
  509. package/dist/esm/{register-component-cf5c8420.js → register-component-b9cfcbaf.js} +2 -2
  510. package/dist/esm/{register-component-cf5c8420.js.map → register-component-b9cfcbaf.js.map} +1 -1
  511. package/dist/esm/{register-component-e5afe237.js → register-component-ff6f5df4.js} +2 -2
  512. package/dist/esm/{register-component-e5afe237.js.map → register-component-ff6f5df4.js.map} +1 -1
  513. package/dist/esm/reply-all-icon.entry.js +1 -1
  514. package/dist/esm/reply-icon.entry.js +1 -1
  515. package/dist/esm/{scheduler-config-store-6222c0ed.js → scheduler-config-store-07d98279.js} +10 -4
  516. package/dist/esm/scheduler-config-store-07d98279.js.map +1 -0
  517. package/dist/esm/{scheduler-config-store-0efc3519.js → scheduler-config-store-8f2e658e.js} +10 -4
  518. package/dist/esm/scheduler-config-store-8f2e658e.js.map +1 -0
  519. package/dist/esm/{scheduler-store-39d37291.js → scheduler-store-24fd0e91.js} +16 -3
  520. package/dist/esm/scheduler-store-24fd0e91.js.map +1 -0
  521. package/dist/esm/{scheduler-store-8ddcc496.js → scheduler-store-e62b2146.js} +16 -3
  522. package/dist/esm/scheduler-store-e62b2146.js.map +1 -0
  523. package/dist/esm/search-icon.entry.js +1 -1
  524. package/dist/esm/select-dropdown.entry.js +2 -2
  525. package/dist/esm/sent-icon.entry.js +1 -1
  526. package/dist/esm/spam-icon.entry.js +1 -1
  527. package/dist/esm/star-icon.entry.js +1 -1
  528. package/dist/esm/stop-icon.entry.js +1 -1
  529. package/dist/esm/time-period-selector.entry.js +2 -2
  530. package/dist/esm/tooltip-component.entry.js +1 -1
  531. package/dist/esm/translate-icon.entry.js +1 -1
  532. package/dist/esm/trash-icon.entry.js +1 -1
  533. package/dist/esm/underline-icon.entry.js +1 -1
  534. package/dist/{nylas-web-elements/utils-73d8a928.js → esm/utils-3e18e0b2.js} +46 -2
  535. package/dist/esm/{utils-73d8a928.js.map → utils-3e18e0b2.js.map} +1 -1
  536. package/dist/esm/{utils-d6204242.js → utils-db11d29c.js} +46 -2
  537. package/dist/esm/utils-db11d29c.js.map +1 -0
  538. package/dist/esm/warning-icon.entry.js +1 -1
  539. package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
  540. package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
  541. package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
  542. package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
  543. package/dist/nylas-web-elements/button-component.entry.js +2 -2
  544. package/dist/nylas-web-elements/button-component.entry.js.map +1 -1
  545. package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
  546. package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
  547. package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
  548. package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
  549. package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
  550. package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
  551. package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
  552. package/dist/nylas-web-elements/close-icon.entry.js +1 -1
  553. package/dist/nylas-web-elements/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
  554. package/dist/{esm/constants-335dffcf.js.map → nylas-web-elements/constants-bf39e913.js.map} +1 -1
  555. package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
  556. package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
  557. package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
  558. package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
  559. package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
  560. package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
  561. package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
  562. package/dist/{esm/index.es-2842f8c8.js → nylas-web-elements/index.es-e4f027a2.js} +2 -2
  563. package/dist/nylas-web-elements/{index.es-2842f8c8.js.map → index.es-e4f027a2.js.map} +1 -1
  564. package/dist/nylas-web-elements/index.esm.js +2 -2
  565. package/dist/nylas-web-elements/info-icon.entry.js +1 -1
  566. package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
  567. package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
  568. package/dist/nylas-web-elements/location-icon.entry.js +1 -1
  569. package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
  570. package/dist/{esm/mailbox-store-d48269de.js → nylas-web-elements/mailbox-store-5075f820.js} +3 -3
  571. package/dist/{esm/mailbox-store-d48269de.js.map → nylas-web-elements/mailbox-store-5075f820.js.map} +1 -1
  572. package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
  573. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +3 -3
  574. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +3 -3
  575. package/dist/nylas-web-elements/nylas-api-request-6a19db25.js +58 -0
  576. package/dist/nylas-web-elements/nylas-api-request-6a19db25.js.map +1 -0
  577. package/dist/nylas-web-elements/nylas-availability-picker.entry.js +33 -16
  578. package/dist/nylas-web-elements/nylas-availability-picker.entry.js.map +1 -1
  579. package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +3 -3
  580. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +12 -6
  581. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js.map +1 -1
  582. package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
  583. package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
  584. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +13 -8
  585. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js.map +1 -1
  586. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +3 -3
  587. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +3 -3
  588. package/dist/nylas-web-elements/nylas-composer.entry.js +2 -2
  589. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +21 -12
  590. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js.map +1 -1
  591. package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
  592. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +69 -40
  593. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
  594. package/dist/nylas-web-elements/nylas-event-description.entry.js +15 -6
  595. package/dist/nylas-web-elements/nylas-event-description.entry.js.map +1 -1
  596. package/dist/nylas-web-elements/nylas-event-duration.entry.js +15 -10
  597. package/dist/nylas-web-elements/nylas-event-duration.entry.js.map +1 -1
  598. package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
  599. package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
  600. package/dist/nylas-web-elements/nylas-event-title.entry.js +70 -19
  601. package/dist/nylas-web-elements/nylas-event-title.entry.js.map +1 -1
  602. package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
  603. package/dist/nylas-web-elements/nylas-if-state.entry.js +2 -2
  604. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +24 -11
  605. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js.map +1 -1
  606. package/dist/nylas-web-elements/nylas-list-configurations.entry.js +26 -11
  607. package/dist/nylas-web-elements/nylas-list-configurations.entry.js.map +1 -1
  608. package/dist/nylas-web-elements/nylas-list-folders.entry.js +3 -3
  609. package/dist/nylas-web-elements/nylas-list-threads.entry.js +3 -3
  610. package/dist/nylas-web-elements/nylas-locale-switch.entry.js +3 -3
  611. package/dist/nylas-web-elements/nylas-location-component.entry.js +17 -6
  612. package/dist/nylas-web-elements/nylas-location-component.entry.js.map +1 -1
  613. package/dist/nylas-web-elements/nylas-login.entry.js +3 -3
  614. package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
  615. package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
  616. package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +3 -3
  617. package/dist/nylas-web-elements/nylas-mailbox.entry.js +4 -4
  618. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +28 -13
  619. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js.map +1 -1
  620. package/dist/nylas-web-elements/nylas-notification.entry.js +2 -2
  621. package/dist/nylas-web-elements/nylas-provider.entry.js +6 -6
  622. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +18 -18
  623. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
  624. package/dist/nylas-web-elements/nylas-scheduling.entry.js +3 -3
  625. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +3 -3
  626. package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +4 -4
  627. package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +4 -4
  628. package/dist/nylas-web-elements/nylas-threads-search.entry.js +3 -3
  629. package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
  630. package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
  631. package/dist/nylas-web-elements/nylas-view-email.entry.js +2 -2
  632. package/dist/nylas-web-elements/nylas-view-thread.entry.js +3 -3
  633. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  634. package/dist/nylas-web-elements/p-00a9efc1.entry.js +2 -0
  635. package/dist/nylas-web-elements/{p-618b94cd.entry.js → p-074919b0.entry.js} +2 -2
  636. package/dist/nylas-web-elements/p-1e445e86.entry.js +2 -0
  637. package/dist/nylas-web-elements/{p-7692056f.entry.js → p-2081b475.entry.js} +2 -2
  638. package/dist/nylas-web-elements/{p-370cdcca.entry.js → p-21c3dcad.entry.js} +2 -2
  639. package/dist/nylas-web-elements/{p-55368bc0.entry.js → p-22531c3d.entry.js} +2 -2
  640. package/dist/nylas-web-elements/{p-7c55dfa0.entry.js → p-2d151de9.entry.js} +2 -2
  641. package/dist/nylas-web-elements/p-343a02e1.entry.js +2 -0
  642. package/dist/nylas-web-elements/{p-1c94940d.entry.js → p-349f07e3.entry.js} +2 -2
  643. package/dist/nylas-web-elements/{p-9c399019.entry.js → p-3b281401.entry.js} +2 -2
  644. package/dist/nylas-web-elements/{p-e03b2592.entry.js → p-4154e97e.entry.js} +2 -2
  645. package/dist/nylas-web-elements/{p-3f6155de.entry.js → p-434fcde2.entry.js} +2 -2
  646. package/dist/nylas-web-elements/p-44a9ce77.entry.js +2 -0
  647. package/dist/nylas-web-elements/{p-e22aa0b0.js → p-47b99cf5.js} +2 -2
  648. package/dist/nylas-web-elements/{p-1819b3d7.js → p-49f716ed.js} +4 -4
  649. package/dist/nylas-web-elements/p-49f716ed.js.map +1 -0
  650. package/dist/nylas-web-elements/p-4c12e1e9.js +2 -0
  651. package/dist/nylas-web-elements/p-4c12e1e9.js.map +1 -0
  652. package/dist/nylas-web-elements/{p-1ab25f04.entry.js → p-50b4a80f.entry.js} +2 -2
  653. package/dist/nylas-web-elements/{p-266f9995.entry.js → p-571472d4.entry.js} +2 -2
  654. package/dist/nylas-web-elements/{p-c199d203.entry.js → p-5caa0f36.entry.js} +2 -2
  655. package/dist/nylas-web-elements/{p-57b753c6.entry.js → p-607b547b.entry.js} +2 -2
  656. package/dist/nylas-web-elements/{p-945caf14.entry.js → p-694b511a.entry.js} +2 -2
  657. package/dist/nylas-web-elements/{p-18a936a3.entry.js → p-73c062f8.entry.js} +2 -2
  658. package/dist/nylas-web-elements/{p-81ea7310.entry.js → p-7614e31e.entry.js} +2 -2
  659. package/dist/nylas-web-elements/{p-fe3b8e66.entry.js → p-7687925d.entry.js} +2 -2
  660. package/dist/nylas-web-elements/{p-c451c9e1.entry.js → p-828165d3.entry.js} +2 -2
  661. package/dist/nylas-web-elements/p-939db546.entry.js +2 -0
  662. package/dist/nylas-web-elements/{p-858f0aad.entry.js → p-95a3094a.entry.js} +2 -2
  663. package/dist/nylas-web-elements/{p-ae893050.entry.js → p-980c32d9.entry.js} +3 -3
  664. package/dist/nylas-web-elements/{p-04e3a98e.entry.js → p-a17f542c.entry.js} +2 -2
  665. package/dist/nylas-web-elements/p-a3b1a98c.js +2 -0
  666. package/dist/nylas-web-elements/p-a3b1a98c.js.map +1 -0
  667. package/dist/nylas-web-elements/{p-41dc0d93.js → p-ad7cf473.js} +2 -2
  668. package/dist/nylas-web-elements/p-ad7cf473.js.map +1 -0
  669. package/dist/nylas-web-elements/{p-8b1a6e27.entry.js → p-b25821e1.entry.js} +2 -2
  670. package/dist/nylas-web-elements/{p-572bf8c2.entry.js → p-b53062f7.entry.js} +2 -2
  671. package/dist/nylas-web-elements/{p-674b6d5d.entry.js → p-bb89e973.entry.js} +2 -2
  672. package/dist/nylas-web-elements/p-c20ab972.entry.js +2 -0
  673. package/dist/nylas-web-elements/p-c529dced.entry.js +2 -0
  674. package/dist/nylas-web-elements/p-c529dced.entry.js.map +1 -0
  675. package/dist/nylas-web-elements/{p-1260ac06.entry.js → p-d5375409.entry.js} +2 -2
  676. package/dist/nylas-web-elements/{p-9d4bffbb.entry.js → p-d8f09631.entry.js} +2 -2
  677. package/dist/nylas-web-elements/p-da74ec1c.entry.js +2 -0
  678. package/dist/nylas-web-elements/p-da74ec1c.entry.js.map +1 -0
  679. package/dist/nylas-web-elements/p-db15d382.js +2 -0
  680. package/dist/nylas-web-elements/p-db15d382.js.map +1 -0
  681. package/dist/nylas-web-elements/{p-9ea458c3.js → p-f0250b7d.js} +2 -2
  682. package/dist/nylas-web-elements/{p-eaa9151b.js → p-f0f3f350.js} +2 -2
  683. package/dist/nylas-web-elements/{p-424f4d9a.entry.js → p-f3974e14.entry.js} +2 -2
  684. package/dist/nylas-web-elements/{p-9b195811.entry.js → p-f47163ac.entry.js} +2 -2
  685. package/dist/nylas-web-elements/{p-1655dec3.entry.js → p-f5d17746.entry.js} +4 -4
  686. package/dist/nylas-web-elements/p-f5d17746.entry.js.map +1 -0
  687. package/dist/nylas-web-elements/people-icon.entry.js +1 -1
  688. package/dist/nylas-web-elements/play-icon.entry.js +1 -1
  689. package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
  690. package/dist/nylas-web-elements/{register-component-e5afe237.js → register-component-ff6f5df4.js} +2 -2
  691. package/dist/nylas-web-elements/{register-component-e5afe237.js.map → register-component-ff6f5df4.js.map} +1 -1
  692. package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
  693. package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
  694. package/dist/nylas-web-elements/{scheduler-config-store-0efc3519.js → scheduler-config-store-8f2e658e.js} +10 -4
  695. package/dist/nylas-web-elements/scheduler-config-store-8f2e658e.js.map +1 -0
  696. package/dist/nylas-web-elements/{scheduler-store-8ddcc496.js → scheduler-store-e62b2146.js} +16 -3
  697. package/dist/nylas-web-elements/scheduler-store-e62b2146.js.map +1 -0
  698. package/dist/nylas-web-elements/search-icon.entry.js +1 -1
  699. package/dist/nylas-web-elements/select-dropdown.entry.js +2 -2
  700. package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
  701. package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
  702. package/dist/nylas-web-elements/star-icon.entry.js +1 -1
  703. package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
  704. package/dist/nylas-web-elements/time-period-selector.entry.js +2 -2
  705. package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
  706. package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
  707. package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
  708. package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
  709. package/dist/{esm/utils-73d8a928.js → nylas-web-elements/utils-3e18e0b2.js} +46 -2
  710. package/dist/nylas-web-elements/{utils-73d8a928.js.map → utils-3e18e0b2.js.map} +1 -1
  711. package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
  712. package/dist/types/common/constants.d.ts +2 -0
  713. package/dist/types/common/nylas-api-request.d.ts +3 -0
  714. package/dist/types/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.d.ts +10 -4
  715. package/dist/types/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.d.ts +2 -0
  716. package/dist/types/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.d.ts +3 -2
  717. package/dist/types/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.d.ts +4 -1
  718. package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +35 -5
  719. package/dist/types/components/scheduler-editor/nylas-event-description/nylas-event-description.d.ts +3 -0
  720. package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts +3 -0
  721. package/dist/types/components/scheduler-editor/nylas-event-title/nylas-event-title.d.ts +7 -1
  722. package/dist/types/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.d.ts +6 -6
  723. package/dist/types/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.d.ts +2 -0
  724. package/dist/types/components/scheduler-editor/nylas-location-component/nylas-location-component.d.ts +3 -0
  725. package/dist/types/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.d.ts +4 -1
  726. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +3 -2
  727. package/dist/types/components.d.ts +110 -22
  728. package/dist/types/connector/nylas-connector/index.d.ts +1 -1
  729. package/dist/types/connector/nylas-scheduler-config-connector/index.d.ts +1 -1
  730. package/dist/types/connector/nylas-scheduler-connector/errors/index.d.ts +1 -0
  731. package/dist/types/index.d.ts +1 -1
  732. package/dist/types/stores/scheduler-config-store.d.ts +6 -2
  733. package/dist/types/utils/utils.d.ts +1 -0
  734. package/package.json +4 -2
  735. package/dist/cjs/nylas-api-request-2a0e7022.js.map +0 -1
  736. package/dist/cjs/nylas-api-request-55923233.js.map +0 -1
  737. package/dist/cjs/scheduler-config-store-4d93a9b7.js.map +0 -1
  738. package/dist/cjs/scheduler-config-store-a0e08cab.js.map +0 -1
  739. package/dist/cjs/scheduler-store-a492526c.js.map +0 -1
  740. package/dist/cjs/scheduler-store-e148a4cc.js.map +0 -1
  741. package/dist/cjs/utils-20663d54.js.map +0 -1
  742. package/dist/esm/nylas-api-request-3120d9ac.js.map +0 -1
  743. package/dist/esm/nylas-api-request-4f3dbb72.js.map +0 -1
  744. package/dist/esm/scheduler-config-store-0efc3519.js.map +0 -1
  745. package/dist/esm/scheduler-config-store-6222c0ed.js.map +0 -1
  746. package/dist/esm/scheduler-store-39d37291.js.map +0 -1
  747. package/dist/esm/scheduler-store-8ddcc496.js.map +0 -1
  748. package/dist/esm/utils-d6204242.js.map +0 -1
  749. package/dist/nylas-web-elements/nylas-api-request-4f3dbb72.js.map +0 -1
  750. package/dist/nylas-web-elements/p-0edb3b69.entry.js +0 -2
  751. package/dist/nylas-web-elements/p-1655dec3.entry.js.map +0 -1
  752. package/dist/nylas-web-elements/p-1819b3d7.js.map +0 -1
  753. package/dist/nylas-web-elements/p-1aa7b357.js +0 -2
  754. package/dist/nylas-web-elements/p-1aa7b357.js.map +0 -1
  755. package/dist/nylas-web-elements/p-1f843391.js +0 -2
  756. package/dist/nylas-web-elements/p-1f843391.js.map +0 -1
  757. package/dist/nylas-web-elements/p-3116f5cc.js +0 -2
  758. package/dist/nylas-web-elements/p-3116f5cc.js.map +0 -1
  759. package/dist/nylas-web-elements/p-41dc0d93.js.map +0 -1
  760. package/dist/nylas-web-elements/p-47180df9.entry.js +0 -2
  761. package/dist/nylas-web-elements/p-605142a9.entry.js +0 -2
  762. package/dist/nylas-web-elements/p-6dcc9411.entry.js +0 -2
  763. package/dist/nylas-web-elements/p-6dcc9411.entry.js.map +0 -1
  764. package/dist/nylas-web-elements/p-9d0c0340.entry.js +0 -2
  765. package/dist/nylas-web-elements/p-9d75bcb2.entry.js +0 -2
  766. package/dist/nylas-web-elements/p-9d75bcb2.entry.js.map +0 -1
  767. package/dist/nylas-web-elements/p-be7124f0.entry.js +0 -2
  768. package/dist/nylas-web-elements/p-c45ac7c6.entry.js +0 -2
  769. package/dist/nylas-web-elements/scheduler-config-store-0efc3519.js.map +0 -1
  770. package/dist/nylas-web-elements/scheduler-store-8ddcc496.js.map +0 -1
  771. /package/dist/nylas-web-elements/{p-c45ac7c6.entry.js.map → p-00a9efc1.entry.js.map} +0 -0
  772. /package/dist/nylas-web-elements/{p-618b94cd.entry.js.map → p-074919b0.entry.js.map} +0 -0
  773. /package/dist/nylas-web-elements/{p-47180df9.entry.js.map → p-1e445e86.entry.js.map} +0 -0
  774. /package/dist/nylas-web-elements/{p-7692056f.entry.js.map → p-2081b475.entry.js.map} +0 -0
  775. /package/dist/nylas-web-elements/{p-370cdcca.entry.js.map → p-21c3dcad.entry.js.map} +0 -0
  776. /package/dist/nylas-web-elements/{p-55368bc0.entry.js.map → p-22531c3d.entry.js.map} +0 -0
  777. /package/dist/nylas-web-elements/{p-7c55dfa0.entry.js.map → p-2d151de9.entry.js.map} +0 -0
  778. /package/dist/nylas-web-elements/{p-be7124f0.entry.js.map → p-343a02e1.entry.js.map} +0 -0
  779. /package/dist/nylas-web-elements/{p-1c94940d.entry.js.map → p-349f07e3.entry.js.map} +0 -0
  780. /package/dist/nylas-web-elements/{p-9c399019.entry.js.map → p-3b281401.entry.js.map} +0 -0
  781. /package/dist/nylas-web-elements/{p-e03b2592.entry.js.map → p-4154e97e.entry.js.map} +0 -0
  782. /package/dist/nylas-web-elements/{p-3f6155de.entry.js.map → p-434fcde2.entry.js.map} +0 -0
  783. /package/dist/nylas-web-elements/{p-605142a9.entry.js.map → p-44a9ce77.entry.js.map} +0 -0
  784. /package/dist/nylas-web-elements/{p-e22aa0b0.js.map → p-47b99cf5.js.map} +0 -0
  785. /package/dist/nylas-web-elements/{p-1ab25f04.entry.js.map → p-50b4a80f.entry.js.map} +0 -0
  786. /package/dist/nylas-web-elements/{p-266f9995.entry.js.map → p-571472d4.entry.js.map} +0 -0
  787. /package/dist/nylas-web-elements/{p-c199d203.entry.js.map → p-5caa0f36.entry.js.map} +0 -0
  788. /package/dist/nylas-web-elements/{p-57b753c6.entry.js.map → p-607b547b.entry.js.map} +0 -0
  789. /package/dist/nylas-web-elements/{p-945caf14.entry.js.map → p-694b511a.entry.js.map} +0 -0
  790. /package/dist/nylas-web-elements/{p-18a936a3.entry.js.map → p-73c062f8.entry.js.map} +0 -0
  791. /package/dist/nylas-web-elements/{p-81ea7310.entry.js.map → p-7614e31e.entry.js.map} +0 -0
  792. /package/dist/nylas-web-elements/{p-fe3b8e66.entry.js.map → p-7687925d.entry.js.map} +0 -0
  793. /package/dist/nylas-web-elements/{p-c451c9e1.entry.js.map → p-828165d3.entry.js.map} +0 -0
  794. /package/dist/nylas-web-elements/{p-9d0c0340.entry.js.map → p-939db546.entry.js.map} +0 -0
  795. /package/dist/nylas-web-elements/{p-858f0aad.entry.js.map → p-95a3094a.entry.js.map} +0 -0
  796. /package/dist/nylas-web-elements/{p-ae893050.entry.js.map → p-980c32d9.entry.js.map} +0 -0
  797. /package/dist/nylas-web-elements/{p-04e3a98e.entry.js.map → p-a17f542c.entry.js.map} +0 -0
  798. /package/dist/nylas-web-elements/{p-8b1a6e27.entry.js.map → p-b25821e1.entry.js.map} +0 -0
  799. /package/dist/nylas-web-elements/{p-572bf8c2.entry.js.map → p-b53062f7.entry.js.map} +0 -0
  800. /package/dist/nylas-web-elements/{p-674b6d5d.entry.js.map → p-bb89e973.entry.js.map} +0 -0
  801. /package/dist/nylas-web-elements/{p-0edb3b69.entry.js.map → p-c20ab972.entry.js.map} +0 -0
  802. /package/dist/nylas-web-elements/{p-1260ac06.entry.js.map → p-d5375409.entry.js.map} +0 -0
  803. /package/dist/nylas-web-elements/{p-9d4bffbb.entry.js.map → p-d8f09631.entry.js.map} +0 -0
  804. /package/dist/nylas-web-elements/{p-9ea458c3.js.map → p-f0250b7d.js.map} +0 -0
  805. /package/dist/nylas-web-elements/{p-eaa9151b.js.map → p-f0f3f350.js.map} +0 -0
  806. /package/dist/nylas-web-elements/{p-424f4d9a.entry.js.map → p-f3974e14.entry.js.map} +0 -0
  807. /package/dist/nylas-web-elements/{p-9b195811.entry.js.map → p-f47163ac.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./p-ad7cf473.js";import{c as t}from"./p-cabb2e68.js";var i;(function(e){e["Component"]="component";e["Api"]="api";e["Auth"]="auth"})(i||(i={}));var n;(function(e){e["endtime_not_in_future"]="endtime_not_in_future";e["no_booking_info"]="no_booking_info";e["no_timeslot_selected"]="no_timeslot_selected";e["no_timezone_selected"]="no_timezone_selected";e["no_booking_id"]="no_booking_id";e["invalid_start_time"]="invalid_start_time";e["invalid_end_time"]="invalid_end_time";e["invalid_timezone"]="invalid_timezone"})(n||(n={}));var s;(function(e){e["invalid_session"]="invalid_session";e["general_error"]="general_error";e["internal_error"]="internal_error";e["invalid_request_error"]="invalid_request_error";e["timeslot_not_available"]="timeslot_not_available"})(s||(s={}));class o{constructor(){this.component=e=>{const t=i.Component;const n=`${e} error`;return{endtime_not_in_future:(e='"endtime" can not be in the future')=>({title:n,message:e,category:t}),no_booking_info:(e="No booking info provided")=>({title:n,message:e,category:t}),no_timeslot_selected:(e="No timeslot selected")=>({title:n,message:e,category:t}),no_timezone_selected:(e="No timezone selected")=>({title:n,message:e,category:t}),no_booking_id:(e="No booking id provided")=>({title:n,message:e,category:t}),invalid_start_time:(e="Invalid start time")=>({title:n,message:e,category:t}),invalid_end_time:(e="Invalid end time")=>({title:n,message:e,category:t}),invalid_timezone:(e="Invalid timezone")=>({title:n,message:e,category:t})}};this.api=e=>{const t=i.Api;const n=`${e} error`;return{invalid_session:e=>({title:n,message:e,category:t}),general_error:e=>({title:n,message:e,category:t}),internal_error:e=>({title:n,message:e,category:t}),invalid_request_error:e=>({title:n,message:e,category:t}),timeslot_not_available:e=>({title:n,message:e,category:t})}}}}class a{constructor({schedulerAPIURL:e,schedulerStore:t,sessionId:i,configId:n}){this.errors=new o;this.schedulerStore=t;this.schedulerAPIURL=e;this.sessionId=i;this.configId=n}getHeaders(){return!this.configId?{Authorization:`Bearer ${this.sessionId}`}:{}}async makeAPIRequest(e,t,i,n={}){try{const s=new URL(this.schedulerAPIURL);s.pathname=e;const o=await fetch(decodeURIComponent(s.toString()),{method:t,headers:{"Content-Type":"application/json",...n},body:i});const a=await o.json();return a}catch(e){return{error:{message:e.message,title:"API request failed",type:"api"}}}}selectDate(e){this.schedulerStore.set("selectedDate",e);this.schedulerStore.set("selectedTimeslot",null)}selectTime(e){this.schedulerStore.set("selectedTimeslot",e)}selectTimezone(e){this.schedulerStore.set("selectedTimezone",e)}toggleAdditionalData(e){this.schedulerStore.set("showBookingForm",e)}setParticipantName(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t?.primaryParticipant,name:e}})}setParticipantEmail(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t?.primaryParticipant,email:e}})}async setReschedule(e){const t=new Date;this.schedulerStore.set("rescheduleBookingId",e);this.schedulerStore.set("selectedTimeslot",null);this.schedulerStore.set("eventInfo",null);this.schedulerStore.set("showBookingForm",false);const i=new Date(t.getFullYear(),t.getMonth(),1).getTime()/1e3;const n=new Date(t.getFullYear(),t.getMonth()+1,1).getTime()/1e3;const s=await this.getAvailability(i,n);const o=this.schedulerStore.get("availability").find((e=>new Date(e.start_time)>new Date));let a=t;if(o){a=o.start_time}this.schedulerStore.set("selectedDate",a);return s}async setCancel(e){this.schedulerStore.set("cancelBookingId",e)}async bookTimeslot(e){this.schedulerStore.set("isLoading",true);const{selectedTimeslot:t,selectedTimezone:i,bookingInfo:n}=this.schedulerStore.state;if(!e&&!n){return{error:this.errors.component("Booking").no_booking_info()}}const s=e?.timeslot||t;if(!s){return{error:this.errors.component("Create Booking").no_timeslot_selected()}}const o=e&&e?.timezone?e?.timezone:i;if(!o){return{error:this.errors.component("Create Booking").no_timezone_selected()}}const a=e?e?.primaryParticipant:n?.primaryParticipant;const r=e?e?.guests||[]:n?.guests||[];const l=e?{...e?.additionalFields,guests:r}:{...n?.additionalFields,guests:r};const c=this.getHeaders();const d=this.configId?`?configuration_id=${this.configId}`:"";const h=`/v3/scheduling/bookings${d}`;const g=await this.makeAPIRequest(decodeURIComponent(h),"POST",JSON.stringify({additional_fields:l,guest:{...a},start_time:s.start_time.getTime()/1e3,end_time:s.end_time.getTime()/1e3,timezone:o}),c);if("error"in g){this.schedulerStore.set("isLoading",false);const e=g.error?.type;let t=g.error;if(e&&e in this.errors.api("Create Booking")){t=this.errors.api("Create Booking")[e](t?.message||t?.title||"Something went wrong")}return{error:t}}if("data"in g){this.schedulerStore.set("eventInfo",g?.data)}this.schedulerStore.set("isLoading",false);return g}async getAvailability(e=0,t=0){this.schedulerStore.set("isLoading",true);const i=new URLSearchParams;const n=new Date;const s=n.getTime();if(t&&t<s/1e3){this.schedulerStore.set("isLoading",false);const e=this.errors.component("Get Availability").endtime_not_in_future();return{error:e}}if(!e){const t=new Date(n.getFullYear(),n.getMonth(),1);e=Math.floor(t.getTime()/1e3)}if(!t){const e=new Date(n.getFullYear(),n.getMonth()+1,0);t=Math.floor(e.getTime()/1e3)}i.append("start_time",encodeURIComponent(e.toString()));i.append("end_time",encodeURIComponent(t.toString()));if(this.configId){i.append("configuration_id",encodeURIComponent(this.configId))}const o=i.toString();const a=`/v3/scheduling/availability${o?`?${o}`:""}`;const r=this.getHeaders();const l=await this.makeAPIRequest(decodeURIComponent(a),"GET",undefined,r);if("error"in l){this.schedulerStore.set("availability",[]);this.schedulerStore.set("isLoading",false);const e=l.error?.type;let t=l.error;if(e&&e in this.errors.api("Get Availability")){t=this.errors.api("Get Availability")[e](t?.message||t?.title||"Something went wrong")}return{error:t}}if("data"in l){const e=l.data?.time_slots?.map((e=>({...e,start_time:new Date(e.start_time*1e3),end_time:new Date(e.end_time*1e3)})))||[];const t=e.filter((e=>e.start_time.getTime()>s));this.schedulerStore.set("availability",t)}this.schedulerStore.set("isLoading",false);return l}async cancelBooking(e){this.schedulerStore.set("isLoading",true);if(!e){return{error:this.errors.component("Cancel Booking").no_booking_id()}}const t=this.configId?`?configuration_id=${this.configId}`:"";const i=`/v3/scheduling/bookings/${e}${t}`;const n=this.getHeaders();const s=await this.makeAPIRequest(decodeURIComponent(i),"DELETE",JSON.stringify({action:"cancel"}),n);if("error"in s){this.schedulerStore.set("isLoading",false);const e=s.error?.type;let t=s.error;if(e&&e in this.errors.api("Cancel Booking")){t=this.errors.api("Cancel Booking")[e](t?.message||t?.title||"Something went wrong")}return{error:t}}this.schedulerStore.set("cancelledEventInfo",{booking_id:e});this.schedulerStore.set("isLoading",false);return s}async rescheduleBooking(e,t){this.schedulerStore.set("isLoading",true);if(!e){return{error:this.errors.component("Reschedule Booking").no_booking_id()}}const i=this.errors.api("Reschedule Booking");const n=this.errors.component("Reschedule Booking");const{bookingInfo:s,selectedTimeslot:o,selectedTimezone:a}=this.schedulerStore.state;const{startTime:r,endTime:l,timezone:c}=t;const d=r||o?.start_time;if(!d){return{error:n.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')}}const h=l||o?.end_time;if(!h){return{error:n.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')}}const g=c||a;if(!g){return{error:n.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')}}const m=t?t?.primaryParticipant:s?.primaryParticipant;const u=t?t?.guests||[]:s?.guests||[];const f=t?{...t?.additionalFields,guests:u}:{...s?.additionalFields,guests:u};const _=this.configId?`?configuration_id=${this.configId}`:"";const v=`/v3/scheduling/bookings/${e}${_}`;const y=this.getHeaders();const b=await this.makeAPIRequest(decodeURIComponent(v),"PATCH",JSON.stringify({start_time:d.getTime()/1e3,end_time:h.getTime()/1e3,time_zone:g,additional_fields:f,guest:{...m}}),y);if("error"in b){this.schedulerStore.set("isLoading",false);const e=b.error?.type;let t=b.error;if(e&&e in i){t=i[e](t?.message||t?.title||"Something went wrong")}}if("data"in b)this.schedulerStore.set("eventInfo",b?.data);this.schedulerStore.set("isLoading",false);return b}}function r(i={}){const n={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:false,selectableDates:null,availability:[],state:"ready",eventInfo:null,cancelledEventInfo:null,isLoading:false,nylasBranding:true,...i};e(`[defaultNylasStoreState]: `,n);const s=t(n);s.onChange("availability",(t=>{e(`[availability]: `,t);const i=t.map((e=>e.start_time));e(`[selectableDates]: `,i);s.set("selectableDates",i)}));s.reset=()=>{for(const e in n){const t=n[e];s.set(e,t)}};return s}export{r as C,i as E,a as N};
2
+ //# sourceMappingURL=p-4c12e1e9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ErrorCategory","ComponentErrorType","APIErrorType","Errors","constructor","this","component","_title","category","Component","title","endtime_not_in_future","message","no_booking_info","no_timeslot_selected","no_timezone_selected","no_booking_id","invalid_start_time","invalid_end_time","invalid_timezone","api","Api","invalid_session","general_error","internal_error","invalid_request_error","timeslot_not_available","NylaSchedulerAPIConnector","schedulerAPIURL","schedulerStore","sessionId","configId","errors","getHeaders","Authorization","makeAPIRequest","path","method","body","headers","schedulerURL","URL","pathname","response","fetch","decodeURIComponent","toString","data","json","error","type","selectDate","date","set","selectTime","time","selectTimezone","timezone","toggleAdditionalData","value","setParticipantName","name","bookingInfo","state","primaryParticipant","setParticipantEmail","email","setReschedule","bookingID","today","Date","startTime","getFullYear","getMonth","getTime","endTime","result","getAvailability","firstAvailableDate","get","find","timeslot","start_time","_selectedDate","setCancel","bookTimeslot","selectedTimeslot","selectedTimezone","guests","additional_fields","additionalFields","configIdParam","url","JSON","stringify","guest","end_time","errorType","params","URLSearchParams","now","nowTime","startOfMonth","Math","floor","endOfMonth","append","encodeURIComponent","queryString","undefined","availability","time_slots","map","availabilityTimeslotsFiltered","filter","cancelBooking","bookingId","action","booking_id","rescheduleBooking","apiErrors","componentErrors","time_zone","CreateNylasSchedulerStore","defaultState","defaultNylasStoreState","selectedDate","selectedLanguage","navigator","language","Intl","DateTimeFormat","resolvedOptions","timeZone","showBookingForm","selectableDates","eventInfo","cancelledEventInfo","isLoading","nylasBranding","debug","store","createStore","onChange","reset","key"],"sources":["src/connector/nylas-scheduler-connector/errors/index.ts","src/connector/shared/api/scheduler.ts","src/stores/scheduler-store.ts"],"sourcesContent":["export enum ErrorCategory {\n Component = 'component',\n Api = 'api',\n Auth = 'auth',\n}\n\nexport interface ErrorDetails {\n title: string;\n message: string;\n category: ErrorCategory;\n}\n\nexport enum ComponentErrorType {\n endtime_not_in_future = 'endtime_not_in_future',\n no_booking_info = 'no_booking_info',\n no_timeslot_selected = 'no_timeslot_selected',\n no_timezone_selected = 'no_timezone_selected',\n no_booking_id = 'no_booking_id',\n invalid_start_time = 'invalid_start_time',\n invalid_end_time = 'invalid_end_time',\n invalid_timezone = 'invalid_timezone',\n}\n\nexport enum APIErrorType {\n invalid_session = 'invalid_session',\n general_error = 'general_error',\n internal_error = 'internal_error',\n invalid_request_error = 'invalid_request_error',\n timeslot_not_available = 'timeslot_not_available',\n}\n\nexport class Errors {\n component = (_title: string): Record<ComponentErrorType, (message?: string) => ErrorDetails> => {\n const category = ErrorCategory.Component;\n const title = `${_title} error`;\n return {\n endtime_not_in_future: (message: string = '\"endtime\" can not be in the future') => {\n return {\n title,\n message,\n category,\n };\n },\n no_booking_info: (message: string = 'No booking info provided') => {\n return {\n title,\n message,\n category,\n };\n },\n no_timeslot_selected: (message: string = 'No timeslot selected') => {\n return {\n title,\n message,\n category,\n };\n },\n no_timezone_selected: (message: string = 'No timezone selected') => {\n return {\n title,\n message,\n category,\n };\n },\n no_booking_id: (message: string = 'No booking id provided') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_start_time: (message: string = 'Invalid start time') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_end_time: (message: string = 'Invalid end time') => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_timezone: (message: string = 'Invalid timezone') => {\n return {\n title,\n message,\n category,\n };\n },\n };\n };\n\n api = (_title: string): Record<APIErrorType, (message: string) => ErrorDetails> => {\n const category = ErrorCategory.Api;\n const title = `${_title} error`;\n\n return {\n invalid_session: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n general_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n internal_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n invalid_request_error: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n timeslot_not_available: (message: string) => {\n return {\n title,\n message,\n category,\n };\n },\n };\n };\n}\n","import { AvailabilityResponse, NylasEvent } from '@/common/types';\nimport { NylasSchedulerStoreType } from '../../../components';\nimport type { NylasErrorResponse, NylasResponse, NylasSchedulerBookingData, NylasSchedulerResponse, Timeslot } from '@nylas/core';\nimport { APIErrorType, Errors } from '@/connector/nylas-scheduler-connector/errors';\n\ntype NylasSchedulerAPIConnectorOptions = {\n schedulerAPIURL: string;\n schedulerStore: NylasSchedulerStoreType;\n sessionId?: string;\n configId?: string;\n};\n\n/**\n * NylaSchedulerConnector\n * This class is used to make API requests to the scheduler.\n */\nexport class NylaSchedulerAPIConnector {\n private schedulerStore: NylasSchedulerStoreType;\n private schedulerAPIURL: string;\n private sessionId: string | undefined;\n private configId: string | undefined;\n private errors = new Errors();\n\n constructor({ schedulerAPIURL, schedulerStore, sessionId, configId }: NylasSchedulerAPIConnectorOptions) {\n this.schedulerStore = schedulerStore;\n this.schedulerAPIURL = schedulerAPIURL;\n this.sessionId = sessionId;\n this.configId = configId;\n }\n\n private getHeaders() {\n return !this.configId\n ? {\n Authorization: `Bearer ${this.sessionId}`,\n }\n : {};\n }\n\n /**\n * Makes an API request to the scheduler.\n * @param path The path to the API endpoint.\n * @param method The HTTP method.\n * @param body The request body (if any).\n * @returns {Promise<T>}\n */\n public async makeAPIRequest<T>(path: string, method: string, body: string | undefined, headers = {}): Promise<NylasResponse<T>> {\n try {\n const schedulerURL = new URL(this.schedulerAPIURL);\n schedulerURL.pathname = path;\n const response = await fetch(decodeURIComponent(schedulerURL.toString()), {\n method,\n headers: {\n 'Content-Type': 'application/json',\n ...headers,\n },\n body,\n });\n // The server returns a json object for errors: eg.\n // {\n // \"request_id\": \"<request_id>\",\n // \"error\": {\n // \"type\": \"not_found_error\",\n // \"message\": \"Session not found\"\n // }\n // }\n const data = await response.json();\n return data as NylasResponse<T>;\n } catch (error: any) {\n // NOTE: current server implementation doesn't return a JSON object for errors on some endpoints\n // handle this case by returning the error response as a string to be handled downstream\n return {\n error: {\n message: error.message,\n title: 'API request failed',\n type: 'api',\n },\n } as NylasErrorResponse;\n }\n }\n\n /**\n * Selects a date in the scheduler.\n */\n public selectDate(date: Date) {\n this.schedulerStore.set('selectedDate', date);\n this.schedulerStore.set('selectedTimeslot', null);\n }\n\n /**\n * Selects a time in the scheduler.\n */\n public selectTime(time: Timeslot) {\n this.schedulerStore.set('selectedTimeslot', time);\n }\n\n /**\n * Sets the timezone in the scheduler.\n */\n public selectTimezone(timezone: string) {\n this.schedulerStore.set('selectedTimezone', timezone);\n }\n\n /**\n * Toggles showBookingForm\n * @param value boolean\n */\n public toggleAdditionalData(value: boolean) {\n this.schedulerStore.set('showBookingForm', value);\n }\n\n /**\n * Set/update the name of the participant booking the event.\n */\n public setParticipantName(name: string) {\n const { bookingInfo } = this.schedulerStore.state;\n this.schedulerStore.set('bookingInfo', {\n ...bookingInfo,\n primaryParticipant: {\n ...(bookingInfo?.primaryParticipant as NylasSchedulerBookingData['primaryParticipant']),\n name,\n },\n });\n }\n\n /**\n * Set/update the email of the participant booking the event.\n */\n public setParticipantEmail(email: string) {\n const { bookingInfo } = this.schedulerStore.state;\n this.schedulerStore.set('bookingInfo', {\n ...bookingInfo,\n primaryParticipant: {\n ...(bookingInfo?.primaryParticipant as NylasSchedulerBookingData['primaryParticipant']),\n email,\n },\n });\n }\n\n /**\n * Set reschedule booking id\n */\n public async setReschedule(bookingID: string) {\n const today = new Date();\n // Set reschedule booking id\n this.schedulerStore.set('rescheduleBookingId', bookingID);\n // Reset store state\n this.schedulerStore.set('selectedTimeslot', null);\n this.schedulerStore.set('eventInfo', null);\n this.schedulerStore.set('showBookingForm', false);\n // Refetch availability\n const startTime = new Date(today.getFullYear(), today.getMonth(), 1).getTime() / 1000;\n const endTime = new Date(today.getFullYear(), today.getMonth() + 1, 1).getTime() / 1000;\n const result = await this.getAvailability(startTime, endTime);\n // Set selected date to first available date\n const firstAvailableDate = this.schedulerStore.get('availability').find((timeslot: any) => new Date(timeslot.start_time) > new Date());\n let _selectedDate = today;\n if (firstAvailableDate) {\n _selectedDate = firstAvailableDate.start_time;\n }\n this.schedulerStore.set('selectedDate', _selectedDate);\n return result;\n }\n\n /**\n * Set cancel booking id\n */\n public async setCancel(bookingID: string) {\n this.schedulerStore.set('cancelBookingId', bookingID);\n }\n\n /**\n * Book the selected timeslot.\n * @param data The booking info.\n * @returns {Promise<NylasResponse<NylasEvent>>}\n */\n public async bookTimeslot(data?: NylasSchedulerBookingData & { timeslot?: Timeslot }): Promise<NylasSchedulerResponse<NylasEvent>> {\n this.schedulerStore.set('isLoading', true);\n const { selectedTimeslot, selectedTimezone, bookingInfo } = this.schedulerStore.state;\n if (!data && !bookingInfo) {\n return { error: this.errors.component('Booking').no_booking_info() };\n }\n\n const timeslot = data?.timeslot || selectedTimeslot;\n if (!timeslot) {\n return { error: this.errors.component('Create Booking').no_timeslot_selected() };\n }\n\n const timezone = data && data?.timezone ? data?.timezone : selectedTimezone;\n\n if (!timezone) {\n return { error: this.errors.component('Create Booking').no_timezone_selected() };\n }\n\n const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;\n const guests = data ? data?.guests || [] : bookingInfo?.guests || [];\n const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };\n\n const headers = this.getHeaders();\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings${configIdParam}`;\n\n const response = await this.makeAPIRequest<NylasEvent>(\n decodeURIComponent(url),\n 'POST',\n JSON.stringify({\n additional_fields,\n guest: { ...primaryParticipant },\n start_time: timeslot.start_time.getTime() / 1000,\n end_time: timeslot.end_time.getTime() / 1000,\n timezone: timezone,\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Create Booking')) {\n error = this.errors.api('Create Booking')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n if ('data' in response) {\n this.schedulerStore.set('eventInfo', response?.data);\n }\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Gets the availability for a page.\n * @param startTime The start time.\n * @param endTime The end time.\n * @returns {Promise<AvailabilityResponse>}\n */\n public async getAvailability(startTime: number = 0, endTime: number = 0): Promise<NylasSchedulerResponse<AvailabilityResponse>> {\n this.schedulerStore.set('isLoading', true);\n const params = new URLSearchParams();\n const now = new Date();\n const nowTime = now.getTime();\n\n if (endTime && endTime < nowTime / 1000) {\n this.schedulerStore.set('isLoading', false);\n const error = this.errors.component('Get Availability').endtime_not_in_future();\n return { error };\n }\n\n // Calculate the start of the current month if startTime is not provided\n if (!startTime) {\n const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n startTime = Math.floor(startOfMonth.getTime() / 1000); // Convert to UNIX timestamp in seconds\n }\n\n // Calculate the end of the current month if endTime is not provided\n if (!endTime) {\n const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0); // Setting day to 0 gets the last day of the previous month, so in this case, the last day of the current month\n endTime = Math.floor(endOfMonth.getTime() / 1000); // Convert to UNIX timestamp in seconds\n }\n\n params.append('start_time', encodeURIComponent(startTime.toString()));\n params.append('end_time', encodeURIComponent(endTime.toString()));\n if (this.configId) {\n params.append('configuration_id', encodeURIComponent(this.configId));\n }\n const queryString = params.toString();\n const url = `/v3/scheduling/availability${queryString ? `?${queryString}` : ''}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<AvailabilityResponse>(decodeURIComponent(url), 'GET', undefined, headers);\n\n if ('error' in response) {\n this.schedulerStore.set('availability', []);\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Get Availability')) {\n error = this.errors.api('Get Availability')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n if ('data' in response) {\n const availability =\n response.data?.time_slots?.map(timeslot => {\n return {\n ...timeslot,\n start_time: new Date(timeslot.start_time * 1000),\n end_time: new Date(timeslot.end_time * 1000),\n };\n }) || [];\n\n // Filter out timeslots that are in the past\n const availabilityTimeslotsFiltered = availability.filter(timeslot => timeslot.start_time.getTime() > nowTime);\n this.schedulerStore.set('availability', availabilityTimeslotsFiltered);\n }\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Cancels a booking.\n * @param bookingId The booking ID.\n */\n public async cancelBooking(bookingId: string): Promise<NylasSchedulerResponse<Partial<NylasEvent>>> {\n this.schedulerStore.set('isLoading', true);\n if (!bookingId) {\n return { error: this.errors.component('Cancel Booking').no_booking_id() };\n }\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings/${bookingId}${configIdParam}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<Partial<NylasEvent>>(\n decodeURIComponent(url),\n 'DELETE',\n JSON.stringify({\n action: 'cancel',\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in this.errors.api('Cancel Booking')) {\n error = this.errors.api('Cancel Booking')[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n return { error };\n }\n\n this.schedulerStore.set('cancelledEventInfo', {\n booking_id: bookingId,\n });\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n\n /**\n * Reschedules a booking.\n * @param bookingId The booking ID.\n * @param data The booking info.\n * @returns {Promise<NylasResponse<NylasEvent>>}\n */\n public async rescheduleBooking(bookingId: string, data: NylasSchedulerBookingData): Promise<NylasSchedulerResponse<NylasEvent>> {\n this.schedulerStore.set('isLoading', true);\n if (!bookingId) {\n return { error: this.errors.component('Reschedule Booking').no_booking_id() };\n }\n const apiErrors = this.errors.api('Reschedule Booking');\n const componentErrors = this.errors.component('Reschedule Booking');\n const { bookingInfo, selectedTimeslot, selectedTimezone } = this.schedulerStore.state;\n // Validate data\n const { startTime, endTime, timezone } = data;\n const start_time = startTime || selectedTimeslot?.start_time;\n\n if (!start_time) {\n return { error: componentErrors.invalid_start_time('Please pass \"startTime\" in data or set \"selectedTimeslot\" in the defaultSchedulerState.') };\n }\n const end_time = endTime || selectedTimeslot?.end_time;\n if (!end_time) {\n return { error: componentErrors.invalid_end_time('Please pass \"endTime\" in data or set \"selectedTimeslot\" in the defaultSchedulerState.') };\n }\n const time_zone = timezone || selectedTimezone;\n if (!time_zone) {\n return { error: componentErrors.invalid_timezone('Please pass \"timezone\" in data or set \"selectedTimezone\" in the defaultSchedulerState.') };\n }\n\n const primaryParticipant = data ? data?.primaryParticipant : bookingInfo?.primaryParticipant;\n const guests = data ? data?.guests || [] : bookingInfo?.guests || [];\n const additional_fields = data ? { ...data?.additionalFields, guests } : { ...bookingInfo?.additionalFields, guests };\n\n const configIdParam = this.configId ? `?configuration_id=${this.configId}` : '';\n const url = `/v3/scheduling/bookings/${bookingId}${configIdParam}`;\n const headers = this.getHeaders();\n const response = await this.makeAPIRequest<NylasEvent>(\n decodeURIComponent(url),\n 'PATCH',\n JSON.stringify({\n start_time: start_time.getTime() / 1000,\n end_time: end_time.getTime() / 1000,\n time_zone,\n additional_fields,\n guest: { ...primaryParticipant },\n }),\n headers,\n );\n\n if ('error' in response) {\n this.schedulerStore.set('isLoading', false);\n const errorType = response.error?.type;\n let error = response.error;\n if (errorType && errorType in apiErrors) {\n error = apiErrors[errorType as APIErrorType](error?.message || error?.title || 'Something went wrong');\n }\n }\n\n if ('data' in response) this.schedulerStore.set('eventInfo', response?.data);\n\n this.schedulerStore.set('isLoading', false);\n return response;\n }\n}\n","import { DataState, NylasEvent } from '@/common/types';\nimport { debug } from '@/utils/utils';\nimport { NylasSchedulerBookingData, Timeslot } from '@nylas/core';\nimport { createStore } from '@stencil/store';\n\nexport type AvailabilityTimeslot = {\n emails: string[];\n start_time: Date;\n end_time: Date;\n};\n\nexport type LoadingState = {\n api: 'availability' | 'createBooking' | 'cancelBooking' | 'rescheduleBooking';\n};\n\nexport interface NylasSchedulerStoreState {\n selectedDate: Date | null;\n selectedLanguage: string;\n selectedTimezone: string;\n selectedTimeslot: Timeslot | null;\n showBookingForm: boolean;\n selectableDates: Date[] | null;\n availability: AvailabilityTimeslot[];\n state: DataState;\n eventInfo: NylasEvent | null;\n cancelledEventInfo: Partial<NylasEvent> | null;\n bookingInfo?: NylasSchedulerBookingData;\n rescheduleBookingId?: string;\n cancelBookingId?: string;\n isLoading: boolean;\n nylasBranding?: boolean;\n}\n\nexport type NylasSchedulerStoreType = ReturnType<typeof CreateNylasSchedulerStore>;\n\nexport function CreateNylasSchedulerStore(defaultState: Partial<NylasSchedulerStoreState> = {}) {\n const defaultNylasStoreState: NylasSchedulerStoreState = {\n selectedDate: null,\n selectedLanguage: navigator.language,\n selectedTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n selectedTimeslot: null,\n showBookingForm: false,\n selectableDates: null,\n availability: [],\n state: 'ready',\n eventInfo: null,\n cancelledEventInfo: null,\n isLoading: false,\n nylasBranding: true,\n ...defaultState,\n };\n debug(`[defaultNylasStoreState]: `, defaultNylasStoreState);\n const store = createStore<NylasSchedulerStoreState>(defaultNylasStoreState);\n\n store.onChange('availability', availability => {\n debug(`[availability]: `, availability);\n const selectableDates = availability.map(timeslot => timeslot.start_time);\n debug(`[selectableDates]: `, selectableDates);\n store.set('selectableDates', selectableDates);\n });\n\n /**\n * Reset the Nylas store to its default state.\n * There is something wrong with the stencil/store reset method,\n * so we have to do it via this hack.\n */\n store.reset = () => {\n for (const key in defaultNylasStoreState) {\n const value = defaultNylasStoreState[key as keyof typeof defaultNylasStoreState];\n store.set(key as any, value);\n }\n };\n\n return store;\n}\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import{r as c,h as a}from"./p-68c2fadf.js";const e=".sc-calendar-cancel-icon-h{display:flex}";const s=e;const t=class{constructor(a){c(this,a);this.width="20";this.height="20"}render(){return a("svg",{key:"db6701b8f80c91b9f6a113fcc0960177f599d7b9",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{key:"1047c1e125b9e145ce8cddee8cbd416fe10dc5f2",d:"M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z",fill:"currentColor"}))}};t.style=s;export{t as calendar_cancel_icon};
2
- //# sourceMappingURL=p-1ab25f04.entry.js.map
1
+ import{r as a,h as c}from"./p-68c2fadf.js";const e=".sc-calendar-cancel-icon-h{display:flex}";const s=e;const t=class{constructor(c){a(this,c);this.width="20";this.height="20"}render(){return c("svg",{key:"09bdd81a98611d49143ed327802cee77c1e851ae",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{key:"9692e20de89c490c05ccf9800faea78c5860260d",d:"M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z",fill:"currentColor"}))}};t.style=s;export{t as calendar_cancel_icon};
2
+ //# sourceMappingURL=p-50b4a80f.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as c,h as e}from"./p-68c2fadf.js";const s=".sc-calendar-check-icon-h{display:flex}";const t=s;const r=class{constructor(e){c(this,e);this.width="20";this.height="20"}render(){return e("svg",{key:"38443394b07088e29b246c590994774d60bb192e",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"7ab6ea9098ce5585c193f1bf4e668e04a442991a",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};r.style=t;const a=".sc-checkmark-circle-icon-h{display:flex}";const i=a;const h=class{constructor(e){c(this,e);this.width="20";this.height="20"}render(){return e("svg",{key:"fe15f01206b6a97170014eccd61a87db4e73e324",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e("path",{key:"1742bbcd93b66151ec4394083b2e6e0441f5c808",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};h.style=i;export{r as calendar_check_icon,h as checkmark_circle_icon};
2
- //# sourceMappingURL=p-266f9995.entry.js.map
1
+ import{r as c,h as s}from"./p-68c2fadf.js";const t=".sc-calendar-check-icon-h{display:flex}";const a=t;const e=class{constructor(s){c(this,s);this.width="20";this.height="20"}render(){return s("svg",{key:"128211c766d7f563df0549f5a3d15ed24c92824c",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{key:"063233f8a8a8b823df7949caff2643c0fa5ea021",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};e.style=a;const r=".sc-checkmark-circle-icon-h{display:flex}";const i=r;const h=class{constructor(s){c(this,s);this.width="20";this.height="20"}render(){return s("svg",{key:"391cc64dd53e54e877a74042d20890c59b1a25a1",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},s("path",{key:"9fa7b6dd7971961e6129720a4ec73af505d5c188",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};h.style=i;export{e as calendar_check_icon,h as checkmark_circle_icon};
2
+ //# sourceMappingURL=p-571472d4.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as r,a as d}from"./p-68c2fadf.js";import{a as o}from"./p-41dc0d93.js";import"./p-cb65c223.js";const s=".time-period-selector.sc-time-period-selector{display:flex;gap:0.5rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector select-dropdown#time-period.sc-time-period-selector::part(sd_dropdown-button){min-width:108px}.time-period-selector.sc-time-period-selector select-dropdown#time-number.sc-time-period-selector::part(sd_dropdown-button){min-width:84px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}";const i=s;const n=class{constructor(r){e(this,r);this.timePeriodChanged=t(this,"timePeriodChanged",7);this.timePeriods=["hour","day","week","month"];this.defaultSelectedPeriod="hour";this.defaultSelectedNumber=1;this.selectedPeriod=this.defaultSelectedPeriod;this.selectedNumber=this.defaultSelectedNumber;this.numberOptions=this.calculateOptions("hour").map((e=>({label:e.toString(),value:e.toString()})));this.timePeriodOptions=this.timePeriods.map((e=>({label:e,value:e})))}defaultSelectedPeriodChangedHandler(e){this.selectedPeriod=e;this.updateNumberOptionsAndSelectedNumber(e)}defaultSelectedNumberChangedHandler(e){this.selectedNumber=e}timePeriodsChangedHandler(e){this.timePeriodOptions=e.map((e=>({label:e,value:e})))}calculateOptions(e){switch(e){case"hour":return Array.from({length:23},((e,t)=>t+1));case"minute":return Array.from({length:60},((e,t)=>t));case"day":return Array.from({length:30},((e,t)=>t+1));case"week":return Array.from({length:4},((e,t)=>t+1));case"month":return Array.from({length:12},((e,t)=>t+1));default:return[]}}selectedOptionChangedHandler(e){o("time-period-selector","selectedOptionChangedHandler",e.detail);const{value:t,name:r}=e.detail;if(r==="time-period"){this.selectedPeriod=t;this.updateNumberOptionsAndSelectedNumber(t)}else if(r==="time-number"){this.selectedNumber=parseInt(t)}const d={number:this.selectedNumber,period:this.selectedPeriod};this.timePeriodChanged.emit(d)}updateNumberOptionsAndSelectedNumber(e){const t=this.calculateOptions(e);this.numberOptions=t.map((e=>({label:e.toString(),value:e.toString()})));this.selectedNumber=parseInt(this.numberOptions[0].value)}render(){return r("div",{key:"3d9b443ca4ec5f6e7493379aaf8e76666bce7374",class:"time-period-selector"},r("select-dropdown",{key:"348bca6c6c9aaa917cb828779b22fcfee26ce45c",id:"time-number",name:"time-number",exportparts:"sd__dropdown: tps__number-dropdown, sd__dropdown-button: tps__number-dropdown-button, sd__dropdown-content: tps__number-dropdown-content",options:this.numberOptions,defaultSelectedOption:this.numberOptions.find((e=>e.value==this.selectedNumber.toString()))??this.numberOptions[0],withSearch:false}),r("select-dropdown",{key:"ae3c74a279fe95ac88e47c953fa42d1265935192",id:"time-period",name:"time-period",options:this.timePeriodOptions,exportparts:"sd__dropdown: tps__period-dropdown, sd__dropdown-button: tps__period-dropdown-button, sd__dropdown-content: tps__period-dropdown-content",pluralizedLabel:this.selectedNumber>1?"s":"",defaultSelectedOption:this.timePeriodOptions.find((e=>e.value==this.selectedPeriod))??this.timePeriodOptions[0],withSearch:false}))}get host(){return d(this)}static get watchers(){return{defaultSelectedPeriod:["defaultSelectedPeriodChangedHandler"],defaultSelectedNumber:["defaultSelectedNumberChangedHandler"],timePeriods:["timePeriodsChangedHandler"]}}};n.style=i;export{n as time_period_selector};
2
- //# sourceMappingURL=p-c199d203.entry.js.map
1
+ import{r as e,c as t,h as r,a as d}from"./p-68c2fadf.js";import{a as o}from"./p-ad7cf473.js";import"./p-cb65c223.js";const s=".time-period-selector.sc-time-period-selector{display:flex;gap:0.5rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector select-dropdown#time-period.sc-time-period-selector::part(sd_dropdown-button){min-width:108px}.time-period-selector.sc-time-period-selector select-dropdown#time-number.sc-time-period-selector::part(sd_dropdown-button){min-width:84px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}";const i=s;const n=class{constructor(r){e(this,r);this.timePeriodChanged=t(this,"timePeriodChanged",7);this.timePeriods=["hour","day","week","month"];this.defaultSelectedPeriod="hour";this.defaultSelectedNumber=1;this.selectedPeriod=this.defaultSelectedPeriod;this.selectedNumber=this.defaultSelectedNumber;this.numberOptions=this.calculateOptions("hour").map((e=>({label:e.toString(),value:e.toString()})));this.timePeriodOptions=this.timePeriods.map((e=>({label:e,value:e})))}defaultSelectedPeriodChangedHandler(e){this.selectedPeriod=e;this.updateNumberOptionsAndSelectedNumber(e)}defaultSelectedNumberChangedHandler(e){this.selectedNumber=e}timePeriodsChangedHandler(e){this.timePeriodOptions=e.map((e=>({label:e,value:e})))}calculateOptions(e){switch(e){case"hour":return Array.from({length:23},((e,t)=>t+1));case"minute":return Array.from({length:60},((e,t)=>t));case"day":return Array.from({length:30},((e,t)=>t+1));case"week":return Array.from({length:4},((e,t)=>t+1));case"month":return Array.from({length:12},((e,t)=>t+1));default:return[]}}selectedOptionChangedHandler(e){o("time-period-selector","selectedOptionChangedHandler",e.detail);const{value:t,name:r}=e.detail;if(r==="time-period"){this.selectedPeriod=t;this.updateNumberOptionsAndSelectedNumber(t)}else if(r==="time-number"){this.selectedNumber=parseInt(t)}const d={number:this.selectedNumber,period:this.selectedPeriod};this.timePeriodChanged.emit(d)}updateNumberOptionsAndSelectedNumber(e){const t=this.calculateOptions(e);this.numberOptions=t.map((e=>({label:e.toString(),value:e.toString()})));this.selectedNumber=parseInt(this.numberOptions[0].value)}render(){return r("div",{key:"eaec00db41b0c2410fc4a9ccc341fc4ec4012e10",class:"time-period-selector"},r("select-dropdown",{key:"0d53efe90429a05d4f52a8f1b92bf46b14b1e6ad",id:"time-number",name:"time-number",exportparts:"sd__dropdown: tps__number-dropdown, sd__dropdown-button: tps__number-dropdown-button, sd__dropdown-content: tps__number-dropdown-content",options:this.numberOptions,defaultSelectedOption:this.numberOptions.find((e=>e.value==this.selectedNumber.toString()))??this.numberOptions[0],withSearch:false}),r("select-dropdown",{key:"bce764e3e959eb4fad73d1e410173d584f243ee5",id:"time-period",name:"time-period",options:this.timePeriodOptions,exportparts:"sd__dropdown: tps__period-dropdown, sd__dropdown-button: tps__period-dropdown-button, sd__dropdown-content: tps__period-dropdown-content",pluralizedLabel:this.selectedNumber>1?"s":"",defaultSelectedOption:this.timePeriodOptions.find((e=>e.value==this.selectedPeriod))??this.timePeriodOptions[0],withSearch:false}))}get host(){return d(this)}static get watchers(){return{defaultSelectedPeriod:["defaultSelectedPeriodChangedHandler"],defaultSelectedNumber:["defaultSelectedNumberChangedHandler"],timePeriods:["timePeriodsChangedHandler"]}}};n.style=i;export{n as time_period_selector};
2
+ //# sourceMappingURL=p-5caa0f36.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as o,a as e}from"./p-68c2fadf.js";const a=".sc-info-icon-h{display:flex}";const n=a;const s=class{constructor(o){t(this,o);this.width="14";this.height="14"}render(){return o("svg",{key:"01b5b6fd25d23a3c771a42806c17f11a26e46689",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"0e485b60113c145ee933e81f2cae6019f8503a8b",fill:"currentColor",d:"M6.5 5.5C6.77614 5.5 7 5.72386 7 6V9C7 9.27614 6.77614 9.5 6.5 9.5C6.22386 9.5 6 9.27614 6 9V6C6 5.72386 6.22386 5.5 6.5 5.5ZM6.50001 4.74907C6.91369 4.74907 7.24905 4.41371 7.24905 4.00003C7.24905 3.58635 6.91369 3.251 6.50001 3.251C6.08633 3.251 5.75098 3.58635 5.75098 4.00003C5.75098 4.41371 6.08633 4.74907 6.50001 4.74907ZM0.5 6.5C0.5 3.18629 3.18629 0.5 6.5 0.5C9.81371 0.5 12.5 3.18629 12.5 6.5C12.5 9.81371 9.81371 12.5 6.5 12.5C3.18629 12.5 0.5 9.81371 0.5 6.5ZM6.5 1.5C3.73858 1.5 1.5 3.73858 1.5 6.5C1.5 9.26142 3.73858 11.5 6.5 11.5C9.26142 11.5 11.5 9.26142 11.5 6.5C11.5 3.73858 9.26142 1.5 6.5 1.5Z"}))}};s.style=n;const r='.tooltip-container{position:relative;display:flex;--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}.tooltip-content{visibility:hidden;background-color:var(--nylas-base-800);color:var(--nylas-base-0);text-align:left;border-radius:6px;padding:5px 0;position:absolute;z-index:1;opacity:0;transition:opacity 0.3s;padding:0.5rem 1rem;max-width:200px;width:max-content}.tooltip-content.top{bottom:0;left:0;margin-bottom:1.25rem;transform:translateX(-50%)}.tooltip-content.right{top:50%;left:0%;margin-left:1.25rem;transform:translateY(-50%)}.tooltip-content.bottom{top:0;left:0;margin-top:1.25rem;transform:translateX(-50%)}.tooltip-content.left{top:50%;right:0%;margin-right:1.25rem;transform:translateY(-50%)}.tooltip-container:hover .tooltip-content,.tooltip-container:focus-within .tooltip-content{visibility:visible;opacity:1}.tooltip-content::after{content:"";position:absolute;top:-0.75rem;left:50%;transform:rotate(180deg);border-width:6px;border-style:solid;border-color:black transparent transparent transparent}.tooltip-content.top::after{top:100%;left:50%;transform:rotate(0deg)}.tooltip-content.bottom::after{top:-0.75rem;left:50%;transform:rotate(180deg)}.tooltip-content.left::after{top:47.5%;left:100%;transform:rotate(270deg)}.tooltip-content.right::after{top:47.5%;left:-0.75rem;transform:rotate(90deg)}';const i=r;const l=class{constructor(o){t(this,o);this.position="bottom"}showTooltip(t){t.target.nextElementSibling.style.visibility="visible";t.target.nextElementSibling.style.opacity="1"}hideTooltip(t){t.target.nextElementSibling.style.visibility="hidden";t.target.nextElementSibling.style.opacity="0"}render(){return o("div",{key:"f3fc42f332b3973d165a06d45ac15908ad865860",class:"tooltip-container"},o("span",{key:"28ec7f7c518fe5a7d28c9474c6453d7b323551f8",class:"info-icon",tabindex:"0",onFocus:this.showTooltip.bind(this),onBlur:this.hideTooltip.bind(this)},o("slot",{key:"030485ee73bc97a58cf68e44152d1818985c7d6e",name:"tooltip-icon"},"i")),o("span",{key:"11b4169439185216a72315396f1188c7f31fbd75",class:`tooltip-content ${this.position}`},o("slot",{key:"a97d1427bac53a2692071bc8eb64a000d1ee099f",name:"tooltip-content"},"This is a help text.")))}get el(){return e(this)}};l.style=i;export{s as info_icon,l as tooltip_component};
2
- //# sourceMappingURL=p-57b753c6.entry.js.map
1
+ import{r as t,h as o,a as e}from"./p-68c2fadf.js";const a=".sc-info-icon-h{display:flex}";const n=a;const s=class{constructor(o){t(this,o);this.width="14";this.height="14"}render(){return o("svg",{key:"6f050e856e1f4cbade2935875bd35a8df6fd5c1c",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"f96fc4aa622802adc7ba1dc0fe014bd67405f75a",fill:"currentColor",d:"M6.5 5.5C6.77614 5.5 7 5.72386 7 6V9C7 9.27614 6.77614 9.5 6.5 9.5C6.22386 9.5 6 9.27614 6 9V6C6 5.72386 6.22386 5.5 6.5 5.5ZM6.50001 4.74907C6.91369 4.74907 7.24905 4.41371 7.24905 4.00003C7.24905 3.58635 6.91369 3.251 6.50001 3.251C6.08633 3.251 5.75098 3.58635 5.75098 4.00003C5.75098 4.41371 6.08633 4.74907 6.50001 4.74907ZM0.5 6.5C0.5 3.18629 3.18629 0.5 6.5 0.5C9.81371 0.5 12.5 3.18629 12.5 6.5C12.5 9.81371 9.81371 12.5 6.5 12.5C3.18629 12.5 0.5 9.81371 0.5 6.5ZM6.5 1.5C3.73858 1.5 1.5 3.73858 1.5 6.5C1.5 9.26142 3.73858 11.5 6.5 11.5C9.26142 11.5 11.5 9.26142 11.5 6.5C11.5 3.73858 9.26142 1.5 6.5 1.5Z"}))}};s.style=n;const r='.tooltip-container{position:relative;display:flex;--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}.tooltip-content{visibility:hidden;background-color:var(--nylas-base-800);color:var(--nylas-base-0);text-align:left;border-radius:6px;padding:5px 0;position:absolute;z-index:1;opacity:0;transition:opacity 0.3s;padding:0.5rem 1rem;max-width:200px;width:max-content}.tooltip-content.top{bottom:0;left:0;margin-bottom:1.25rem;transform:translateX(-50%)}.tooltip-content.right{top:50%;left:0%;margin-left:1.25rem;transform:translateY(-50%)}.tooltip-content.bottom{top:0;left:0;margin-top:1.25rem;transform:translateX(-50%)}.tooltip-content.left{top:50%;right:0%;margin-right:1.25rem;transform:translateY(-50%)}.tooltip-container:hover .tooltip-content,.tooltip-container:focus-within .tooltip-content{visibility:visible;opacity:1}.tooltip-content::after{content:"";position:absolute;top:-0.75rem;left:50%;transform:rotate(180deg);border-width:6px;border-style:solid;border-color:black transparent transparent transparent}.tooltip-content.top::after{top:100%;left:50%;transform:rotate(0deg)}.tooltip-content.bottom::after{top:-0.75rem;left:50%;transform:rotate(180deg)}.tooltip-content.left::after{top:47.5%;left:100%;transform:rotate(270deg)}.tooltip-content.right::after{top:47.5%;left:-0.75rem;transform:rotate(90deg)}';const i=r;const l=class{constructor(o){t(this,o);this.position="bottom"}showTooltip(t){t.target.nextElementSibling.style.visibility="visible";t.target.nextElementSibling.style.opacity="1"}hideTooltip(t){t.target.nextElementSibling.style.visibility="hidden";t.target.nextElementSibling.style.opacity="0"}render(){return o("div",{key:"e5f137458d3664942d02b31f221b3b5ae2bd9658",class:"tooltip-container"},o("span",{key:"4838a8e46e43d2f490c81381c3759142868ce45c",class:"info-icon",tabindex:"0",onFocus:this.showTooltip.bind(this),onBlur:this.hideTooltip.bind(this)},o("slot",{key:"a4864cffceabaf3bf353647733add76685ac1581",name:"tooltip-icon"},"i")),o("span",{key:"15cbc68f4e0e07bddff0e7adbb76fd6ffce4b9a4",class:`tooltip-content ${this.position}`},o("slot",{key:"836a48731f8a24bc4ecbbb097a514ca263dfc887",name:"tooltip-content"},"This is a help text.")))}get el(){return e(this)}};l.style=i;export{s as info_icon,l as tooltip_component};
2
+ //# sourceMappingURL=p-607b547b.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as c,h as s}from"./p-68c2fadf.js";const l=".sc-refresh-icon-h{display:flex}";const e=l;const t=class{constructor(s){c(this,s);this.width="15";this.height="15"}render(){return s("svg",{key:"2e1bbfd5d599ebbee70358469b058757560a5108",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("path",{key:"b7d45ada6ad9320640c43ab98c3f291d4578e43d",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};t.style=e;export{t as refresh_icon};
2
- //# sourceMappingURL=p-945caf14.entry.js.map
1
+ import{r as c,h as s}from"./p-68c2fadf.js";const l=".sc-refresh-icon-h{display:flex}";const e=l;const t=class{constructor(s){c(this,s);this.width="15";this.height="15"}render(){return s("svg",{key:"aee09fcff1a6eff44a8ab2dd03b53d016bd807f7",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("path",{key:"ead150b54eb753b97fd36ef63a3d96545a92245a",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};t.style=e;export{t as refresh_icon};
2
+ //# sourceMappingURL=p-694b511a.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as C,h as e}from"./p-68c2fadf.js";const s=".sc-globe-icon-h{display:flex}";const t=s;const o=class{constructor(e){C(this,e);this.width="16";this.height="16"}render(){return e("svg",{key:"f8a5a34bee5e081a6232b4eb17c11d4761881966",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},e("path",{key:"eedaeb8db7ba0f784c5c1837fbea8b3b951926f1",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};o.style=t;export{o as globe_icon};
2
- //# sourceMappingURL=p-18a936a3.entry.js.map
1
+ import{r as C,h as s}from"./p-68c2fadf.js";const t=".sc-globe-icon-h{display:flex}";const o=t;const e=class{constructor(s){C(this,s);this.width="16";this.height="16"}render(){return s("svg",{key:"f5143e3cb40a90ae9f1d944bfc452b7074d67582",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},s("path",{key:"f43a8401af32f5ddaa3e325a32371c858716145b",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};e.style=o;export{e as globe_icon};
2
+ //# sourceMappingURL=p-73c062f8.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as r,h as t,F as s,H as n}from"./p-68c2fadf.js";import{R as o}from"./p-eaa9151b.js";import{a as l,f as i,t as a}from"./p-41dc0d93.js";import"./p-cb65c223.js";const d=":host{display:block}.folders{display:flex;flex-direction:column;align-items:self-start}.folders .folder{border:1px solid var(--nylas-color-primary-100);padding:0.5rem 0.75rem;margin-bottom:0.5rem;justify-content:left;width:100%;min-width:200px;border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-50)}.folders .folder:last-child{margin-bottom:0}.folders .folder.selected{background-color:var(--nylas-color-primary-100)}.folders .folder .icon{margin-right:0.5rem;stroke:var(--nylas-color-primary-900);fill:none}hr{width:100%;margin:1rem 0;border:0;border-top:1px solid var(--nylas-color-primary-100)}";const c=d;var f=undefined&&undefined.__decorate||function(e,r,t,s){var n=arguments.length,o=n<3?r:s===null?s=Object.getOwnPropertyDescriptor(r,t):s,l;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,r,t,s);else for(var i=e.length-1;i>=0;i--)if(l=e[i])o=(n<3?l(o):n>3?l(r,t,o):l(r,t))||o;return n>3&&o&&Object.defineProperty(r,t,o),o};var u=undefined&&undefined.__metadata||function(e,r){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,r)};const p=class{constructor(t){e(this,t);this.folderSelected=r(this,"folderSelected",7);this.folderSelectedHandler=e=>{this.folderSelected?.emit(e)};this.folders=undefined;this.selectedFolder=undefined;this.defaultFolders=undefined;this.otherFolders=undefined}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){l(`[nylas-list-folders] Component will load`)}async componentDidLoad(){l(`[nylas-list-folders] Component did load`)}watchFolders(e){l(`[nylas-list-folders] watchFolders`,{newFolders:e});const r=["inbox","drafts","sent","starred","spam","archive","trash"];this.defaultFolders=r.filter((r=>e.find((e=>e.name?.toLowerCase()===r.toLowerCase())))).map((r=>e.find((e=>e.name?.toLowerCase()===r.toLowerCase())))).filter((e=>typeof e!=="undefined")).sort(((e,t)=>r.indexOf(e?.name??"")-r.indexOf(t?.name??"")));this.otherFolders=e.filter((e=>!r.find((r=>e.name?.toLowerCase()===r.toLowerCase())))).sort(((e,r)=>(e.name??"").localeCompare(r.name??"")))}formatFolderName(e){return a(e.name?.replace("CATEGORY_","")??"Unknown")}getFolderIcon(e){switch(e.name?.toLowerCase()){case"inbox":return t("inbox-icon",null);case"drafts":return t("drafts-icon",null);case"sent":return t("sent-icon",null);case"starred":return t("star-icon",null);case"spam":return t("spam-icon",null);case"archive":return t("archive-icon",null);case"trash":return t("trash-icon",null);default:return t("folder-icon",null)}}render(){return t(n,{key:"f7658523537781559e3fa8dcef8930beb8ae786f"},t("div",{key:"e08916ae6b756aded1ab5efa01f3e897ee3d97e3",class:"folders"},this.defaultFolders?.map((e=>t("sp-button",{onClick:()=>this.folderSelectedHandler(e),class:{folder:true,selected:i(e.name??"inbox").toLowerCase()===this.selectedFolder?.toLowerCase()}},t("div",{slot:"icon",class:"icon"},this.getFolderIcon(e)),this.formatFolderName(e))))),this.otherFolders&&t(s,null,t("hr",null),t("div",{class:"folders"},this.otherFolders?.map((e=>t("sp-button",{onClick:()=>this.folderSelectedHandler(e),class:{folder:true,selected:i(e.name??"inbox").toLowerCase()===this.selectedFolder?.toLowerCase()}},t("div",{slot:"icon",class:"icon"},this.getFolderIcon(e)),this.formatFolderName(e)))))))}static get watchers(){return{folders:["watchFolders"]}}};f([o({name:"nylas-pagination",stateToProps:new Map([["mailbox.folders","folders"],["mailbox.selectedFolder","selectedFolder"]]),eventToProps:{folderSelected:async(e,r)=>{l(`[nylas-list-folders] folderSelected event`,{_event:e});await r.threads.getThreads({page_token:undefined,in:i(e.detail.id??"inbox")})}},fireRegisterEvent:true}),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],p.prototype,"render",null);p.style=c;export{p as nylas_list_folders};
2
- //# sourceMappingURL=p-81ea7310.entry.js.map
1
+ import{r as e,c as r,h as t,F as s,H as n}from"./p-68c2fadf.js";import{R as o}from"./p-f0f3f350.js";import{a as l,f as i,t as a}from"./p-ad7cf473.js";import"./p-cb65c223.js";const d=":host{display:block}.folders{display:flex;flex-direction:column;align-items:self-start}.folders .folder{border:1px solid var(--nylas-color-primary-100);padding:0.5rem 0.75rem;margin-bottom:0.5rem;justify-content:left;width:100%;min-width:200px;border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-50)}.folders .folder:last-child{margin-bottom:0}.folders .folder.selected{background-color:var(--nylas-color-primary-100)}.folders .folder .icon{margin-right:0.5rem;stroke:var(--nylas-color-primary-900);fill:none}hr{width:100%;margin:1rem 0;border:0;border-top:1px solid var(--nylas-color-primary-100)}";const c=d;var f=undefined&&undefined.__decorate||function(e,r,t,s){var n=arguments.length,o=n<3?r:s===null?s=Object.getOwnPropertyDescriptor(r,t):s,l;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,r,t,s);else for(var i=e.length-1;i>=0;i--)if(l=e[i])o=(n<3?l(o):n>3?l(r,t,o):l(r,t))||o;return n>3&&o&&Object.defineProperty(r,t,o),o};var u=undefined&&undefined.__metadata||function(e,r){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,r)};const p=class{constructor(t){e(this,t);this.folderSelected=r(this,"folderSelected",7);this.folderSelectedHandler=e=>{this.folderSelected?.emit(e)};this.folders=undefined;this.selectedFolder=undefined;this.defaultFolders=undefined;this.otherFolders=undefined}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){l(`[nylas-list-folders] Component will load`)}async componentDidLoad(){l(`[nylas-list-folders] Component did load`)}watchFolders(e){l(`[nylas-list-folders] watchFolders`,{newFolders:e});const r=["inbox","drafts","sent","starred","spam","archive","trash"];this.defaultFolders=r.filter((r=>e.find((e=>e.name?.toLowerCase()===r.toLowerCase())))).map((r=>e.find((e=>e.name?.toLowerCase()===r.toLowerCase())))).filter((e=>typeof e!=="undefined")).sort(((e,t)=>r.indexOf(e?.name??"")-r.indexOf(t?.name??"")));this.otherFolders=e.filter((e=>!r.find((r=>e.name?.toLowerCase()===r.toLowerCase())))).sort(((e,r)=>(e.name??"").localeCompare(r.name??"")))}formatFolderName(e){return a(e.name?.replace("CATEGORY_","")??"Unknown")}getFolderIcon(e){switch(e.name?.toLowerCase()){case"inbox":return t("inbox-icon",null);case"drafts":return t("drafts-icon",null);case"sent":return t("sent-icon",null);case"starred":return t("star-icon",null);case"spam":return t("spam-icon",null);case"archive":return t("archive-icon",null);case"trash":return t("trash-icon",null);default:return t("folder-icon",null)}}render(){return t(n,{key:"222ae81308d17cbdc7c3a44f0902fc683c88da1d"},t("div",{key:"5ac1653c3b9ea1e3712e7597becc4d38435f3fa1",class:"folders"},this.defaultFolders?.map((e=>t("sp-button",{onClick:()=>this.folderSelectedHandler(e),class:{folder:true,selected:i(e.name??"inbox").toLowerCase()===this.selectedFolder?.toLowerCase()}},t("div",{slot:"icon",class:"icon"},this.getFolderIcon(e)),this.formatFolderName(e))))),this.otherFolders&&t(s,null,t("hr",null),t("div",{class:"folders"},this.otherFolders?.map((e=>t("sp-button",{onClick:()=>this.folderSelectedHandler(e),class:{folder:true,selected:i(e.name??"inbox").toLowerCase()===this.selectedFolder?.toLowerCase()}},t("div",{slot:"icon",class:"icon"},this.getFolderIcon(e)),this.formatFolderName(e)))))))}static get watchers(){return{folders:["watchFolders"]}}};f([o({name:"nylas-pagination",stateToProps:new Map([["mailbox.folders","folders"],["mailbox.selectedFolder","selectedFolder"]]),eventToProps:{folderSelected:async(e,r)=>{l(`[nylas-list-folders] folderSelected event`,{_event:e});await r.threads.getThreads({page_token:undefined,in:i(e.detail.id??"inbox")})}},fireRegisterEvent:true}),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],p.prototype,"render",null);p.style=c;export{p as nylas_list_folders};
2
+ //# sourceMappingURL=p-7614e31e.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as o,c as t,h as i,H as n}from"./p-68c2fadf.js";import{R as r}from"./p-eaa9151b.js";import"./p-41dc0d93.js";import"./p-cb65c223.js";const e=":host{font-family:'Arial', sans-serif;background:var(--nylas-color-primary-50);color:var(--nylas-color-primary-800);margin:0;display:contents}input{box-sizing:border-box}.login-container{display:flex;justify-content:center;align-items:center;height:100%}.login-box{width:300px;padding:20px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.1);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-color-primary-50);text-align:center}.login-box h1{margin-top:0;margin-bottom:0.5em}.login-box p{margin-bottom:1em}.login-methods button{display:block;width:100%;padding:10px 10px 10px 50px;margin-bottom:10px;border:none;border-radius:var(--nylas-border-radius);border:1px solid var(--nylas-color-primary-300);background:var(--nylas-color-primary-100);color:var(--nylas-color-primary-600);cursor:pointer;transition:background 0.3s ease;position:relative;text-align:left}.login-methods button svg{position:absolute;left:16px;top:50%;transform:translateY(-50%)}.login-methods button:hover{background:var(--nylas-color-primary-200);}.login-form label{display:block;margin-bottom:5px;text-align:left}.login-form input{width:100%;padding:10px;margin-bottom:10px;border:1px solid var(--nylas-color-primary-200);border-radius:var(--nylas-border-radius);background:var(--nylas-color-primary-100);color:var(--nylas-color-primary-800);}.login-form button{width:100%;padding:10px;border:none;border-radius:var(--nylas-border-radius);background:var(--nylas-color-primary-500);color:var(--nylas-color-primary-50);cursor:pointer;transition:background 0.3s ease}.login-form button:hover{background:var(--nylas-color-primary-600);}";const a=e;var s=undefined&&undefined.__decorate||function(o,t,i,n){var r=arguments.length,e=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")e=Reflect.decorate(o,t,i,n);else for(var s=o.length-1;s>=0;s--)if(a=o[s])e=(r<3?a(e):r>3?a(t,i,e):a(t,i))||e;return r>3&&e&&Object.defineProperty(t,i,e),e};var l=undefined&&undefined.__metadata||function(o,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(o,t)};const c=class{constructor(i){o(this,i);this.buttonClick=t(this,"buttonClick",7);this._handleLoginRedirect=async()=>{const o=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes));const t=this.buttonClick.emit({url:o});if(t.defaultPrevented){return}if(o){window.location.href=o}};this._onGoogleButtonClick=async o=>{o.preventDefault();const t=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes,undefined,"google"));if(t){window.location.href=t}};this._onMicrosoftButtonClick=async o=>{o.preventDefault();const t=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes,undefined,"microsoft"));if(t){window.location.href=t}};this._onFormSubmit=async o=>{o.preventDefault();const t=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes,this.email));if(t){window.location.href=t}};this.isAuthenticated=false;this.nylasConnector=undefined;this.scopes=undefined;this.loginMethod="redirect";this.companyName="Nylas";this.logoUrl="https://www.nylas.com/wp-content/uploads/main-logo.svg";this.logoWidth="min-content";this.providers="google,microsoft";this.buttonText="Login";this.email=""}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){}async componentDidLoad(){const o=await(this.nylasConnector?.auth.manageHostedAuthCodeExchange(window.location.href));if(o){window.history.replaceState({},document.title,window.location.pathname)}}render(){const o=this.providers?.split(",")||[];return i(n,{key:"00ff0a2496564f9e340f778b5310ca3d0359e726"},this.loginMethod==="redirect"&&i("div",{class:"redirect-container"},!this.isAuthenticated&&i("sp-button",{part:"button",onClick:this._handleLoginRedirect},this.buttonText)),this.loginMethod==="emebded"&&i("main",{class:"login-container"},i("section",{class:"login-box"},i("header",null,i("img",{src:this.logoUrl,alt:`${this.companyName} logo`,width:"100%",style:{minWidth:this.logoWidth}}),i("h1",null,"Welcome")),i("p",null,"Log in to your account to continue to ",this.companyName),i("div",{class:"login-methods"},o.includes("google")&&i("button",{class:"login-google",onClick:this._onGoogleButtonClick},i("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"18",height:"18",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 256 262"},i("path",{fill:"#4285F4",d:"M255.6 131.6c0-8.2-.8-16.2-2.2-23.9H130v45.3h70.3c-3 16.1-12.4 29.7-26.3 38.9v32.4h42.6c25-23 39.4-56.7 39.4-97.7z"}),i("path",{fill:"#34A853",d:"M130 262c35.3 0 64.9-11.7 86.5-31.7l-42.6-32.4c-11.7 7.9-26.7 12.6-43.9 12.6-33.7 0-62.3-22.7-72.5-53.4H14.5v33.3A130.3 130.3 0 00130 262z"}),i("path",{fill:"#FBBC05",d:"M57.5 158.1a72.7 72.7 0 010-54.2V70.6H14.5a130.4 130.4 0 000 120.8l43-33.3z"}),i("path",{fill:"#EA4335",d:"M130 51.6c19 0 36 6.5 49.4 19.2l37-36C195 13.1 165.2 0 130 0A130.3 130.3 0 0014.5 70.6l43 33.3c10.2-30.7 38.8-53.3 72.5-53.3z"})),"Continue with Google"),o.includes("microsoft")&&i("button",{class:"login-microsoft",onClick:this._onMicrosoftButtonClick},i("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"18",height:"18",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 448 512"},i("path",{fill:"#F3F3F3",d:"M0 32v192h192V32H0zm256 0v192h192V32H256zm192 256v192h-192V288h192zM0 224v192h192V224H0z"})),"Continue with Microsoft")),i("form",{class:"login-form",method:"POST",onSubmit:this._onFormSubmit},i("label",{htmlFor:"email"},"Email"),i("input",{type:"email",id:"email",name:"email",required:true,value:this.email}),i("button",{type:"submit"},"Next")))))}};s([r({name:"nylas-login",connectorToProp:"nylasConnector",stateToProps:new Map([["auth.isAuthenticated","isAuthenticated"]]),fireRegisterEvent:true}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],c.prototype,"render",null);c.style=a;export{c as nylas_login};
2
- //# sourceMappingURL=p-fe3b8e66.entry.js.map
1
+ import{r as o,c as t,h as i,H as n}from"./p-68c2fadf.js";import{R as r}from"./p-f0f3f350.js";import"./p-ad7cf473.js";import"./p-cb65c223.js";const e=":host{font-family:'Arial', sans-serif;background:var(--nylas-color-primary-50);color:var(--nylas-color-primary-800);margin:0;display:contents}input{box-sizing:border-box}.login-container{display:flex;justify-content:center;align-items:center;height:100%}.login-box{width:300px;padding:20px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.1);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-color-primary-50);text-align:center}.login-box h1{margin-top:0;margin-bottom:0.5em}.login-box p{margin-bottom:1em}.login-methods button{display:block;width:100%;padding:10px 10px 10px 50px;margin-bottom:10px;border:none;border-radius:var(--nylas-border-radius);border:1px solid var(--nylas-color-primary-300);background:var(--nylas-color-primary-100);color:var(--nylas-color-primary-600);cursor:pointer;transition:background 0.3s ease;position:relative;text-align:left}.login-methods button svg{position:absolute;left:16px;top:50%;transform:translateY(-50%)}.login-methods button:hover{background:var(--nylas-color-primary-200);}.login-form label{display:block;margin-bottom:5px;text-align:left}.login-form input{width:100%;padding:10px;margin-bottom:10px;border:1px solid var(--nylas-color-primary-200);border-radius:var(--nylas-border-radius);background:var(--nylas-color-primary-100);color:var(--nylas-color-primary-800);}.login-form button{width:100%;padding:10px;border:none;border-radius:var(--nylas-border-radius);background:var(--nylas-color-primary-500);color:var(--nylas-color-primary-50);cursor:pointer;transition:background 0.3s ease}.login-form button:hover{background:var(--nylas-color-primary-600);}";const a=e;var s=undefined&&undefined.__decorate||function(o,t,i,n){var r=arguments.length,e=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")e=Reflect.decorate(o,t,i,n);else for(var s=o.length-1;s>=0;s--)if(a=o[s])e=(r<3?a(e):r>3?a(t,i,e):a(t,i))||e;return r>3&&e&&Object.defineProperty(t,i,e),e};var l=undefined&&undefined.__metadata||function(o,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(o,t)};const c=class{constructor(i){o(this,i);this.buttonClick=t(this,"buttonClick",7);this._handleLoginRedirect=async()=>{const o=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes));const t=this.buttonClick.emit({url:o});if(t.defaultPrevented){return}if(o){window.location.href=o}};this._onGoogleButtonClick=async o=>{o.preventDefault();const t=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes,undefined,"google"));if(t){window.location.href=t}};this._onMicrosoftButtonClick=async o=>{o.preventDefault();const t=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes,undefined,"microsoft"));if(t){window.location.href=t}};this._onFormSubmit=async o=>{o.preventDefault();const t=await(this.nylasConnector?.auth.getHostedAuthRedirectURL(this.scopes,this.email));if(t){window.location.href=t}};this.isAuthenticated=false;this.nylasConnector=undefined;this.scopes=undefined;this.loginMethod="redirect";this.companyName="Nylas";this.logoUrl="https://www.nylas.com/wp-content/uploads/main-logo.svg";this.logoWidth="min-content";this.providers="google,microsoft";this.buttonText="Login";this.email=""}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){}async componentDidLoad(){const o=await(this.nylasConnector?.auth.manageHostedAuthCodeExchange(window.location.href));if(o){window.history.replaceState({},document.title,window.location.pathname)}}render(){const o=this.providers?.split(",")||[];return i(n,{key:"124b2f41ebcd01e13b0c031a1240120835610fbb"},this.loginMethod==="redirect"&&i("div",{class:"redirect-container"},!this.isAuthenticated&&i("sp-button",{part:"button",onClick:this._handleLoginRedirect},this.buttonText)),this.loginMethod==="emebded"&&i("main",{class:"login-container"},i("section",{class:"login-box"},i("header",null,i("img",{src:this.logoUrl,alt:`${this.companyName} logo`,width:"100%",style:{minWidth:this.logoWidth}}),i("h1",null,"Welcome")),i("p",null,"Log in to your account to continue to ",this.companyName),i("div",{class:"login-methods"},o.includes("google")&&i("button",{class:"login-google",onClick:this._onGoogleButtonClick},i("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"18",height:"18",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 256 262"},i("path",{fill:"#4285F4",d:"M255.6 131.6c0-8.2-.8-16.2-2.2-23.9H130v45.3h70.3c-3 16.1-12.4 29.7-26.3 38.9v32.4h42.6c25-23 39.4-56.7 39.4-97.7z"}),i("path",{fill:"#34A853",d:"M130 262c35.3 0 64.9-11.7 86.5-31.7l-42.6-32.4c-11.7 7.9-26.7 12.6-43.9 12.6-33.7 0-62.3-22.7-72.5-53.4H14.5v33.3A130.3 130.3 0 00130 262z"}),i("path",{fill:"#FBBC05",d:"M57.5 158.1a72.7 72.7 0 010-54.2V70.6H14.5a130.4 130.4 0 000 120.8l43-33.3z"}),i("path",{fill:"#EA4335",d:"M130 51.6c19 0 36 6.5 49.4 19.2l37-36C195 13.1 165.2 0 130 0A130.3 130.3 0 0014.5 70.6l43 33.3c10.2-30.7 38.8-53.3 72.5-53.3z"})),"Continue with Google"),o.includes("microsoft")&&i("button",{class:"login-microsoft",onClick:this._onMicrosoftButtonClick},i("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"18",height:"18",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 448 512"},i("path",{fill:"#F3F3F3",d:"M0 32v192h192V32H0zm256 0v192h192V32H256zm192 256v192h-192V288h192zM0 224v192h192V224H0z"})),"Continue with Microsoft")),i("form",{class:"login-form",method:"POST",onSubmit:this._onFormSubmit},i("label",{htmlFor:"email"},"Email"),i("input",{type:"email",id:"email",name:"email",required:true,value:this.email}),i("button",{type:"submit"},"Next")))))}};s([r({name:"nylas-login",connectorToProp:"nylasConnector",stateToProps:new Map([["auth.isAuthenticated","isAuthenticated"]]),fireRegisterEvent:true}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],c.prototype,"render",null);c.style=a;export{c as nylas_login};
2
+ //# sourceMappingURL=p-7687925d.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as s,H as i}from"./p-68c2fadf.js";import{R as r}from"./p-eaa9151b.js";import{a}from"./p-41dc0d93.js";import"./p-cb65c223.js";const n=":host{display:contents}.container{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.pull-to-refresh{display:none;border:0;background-color:transparent;text-align:center;width:100%;justify-content:center}.pulling{position:relative;display:flex;margin:0 auto;padding:1rem}.pulling svg{width:24px;height:24px;color:var(--nylas-color-primary-500);transform:rotate(90deg)}.refreshing{position:relative;display:flex;margin:0 auto;padding:1rem}.refreshing svg{width:24px;height:24px;fill:var(--nylas-color-primary-500);animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const o=n;var h=undefined&&undefined.__decorate||function(e,t,s,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)if(n=e[o])a=(r<3?n(a):r>3?n(t,s,a):n(t,s))||a;return r>3&&a&&Object.defineProperty(t,s,a),a};var d=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};const f=class{constructor(s){e(this,s);this.refresh=t(this,"refresh",7);this.threshold=100;this.onTouchStart=e=>{a(`[nylas-threads-refresh] Touch start`,e.touches[0].pageY,this.containerElement?.scrollTop,this.containerElement?.offsetHeight,this.contentElement?.scrollTop);if(this.containerElement?.scrollTop===0){this.start=e.touches[0].pageY}else{this.start=0}};this.onTouchMove=e=>{if(this.start){const t=e.touches[0].pageY-this.start;if(t>this.threshold){this.pulling=true}else{this.pulling=false}}};this.onTouchEnd=e=>{if(this.start){const t=e.changedTouches[0].pageY-this.start;if(t>this.threshold){this.pulling=false;this.refresh.emit({updateState:this.updateState})}this.start=0}};this.start=0;this.state="ready";this.pulling=false;a(`[nylas-threads-refresh] Constructor`);this.updateState=this.updateState.bind(this)}connectedCallback(){}async componentWillLoad(){a(`[nylas-threads-refresh] Component will load`)}componentDidLoad(){a(`[nylas-threads-refresh] Component did load`);this.containerElement?.addEventListener("touchstart",this.onTouchStart);this.containerElement?.addEventListener("touchmove",this.onTouchMove);this.containerElement?.addEventListener("touchend",this.onTouchEnd)}disconnectedCallback(){a(`[nylas-threads-refresh] Component disconnected`);this.containerElement?.removeEventListener("touchstart",this.onTouchStart);this.containerElement?.removeEventListener("touchmove",this.onTouchMove);this.containerElement?.removeEventListener("touchend",this.onTouchEnd)}async updateState(e){this.state=e}render(){return s(i,{key:"cf0eeb18d6e54c1d36fc98b013f981578fee07cb"},s("div",{key:"7b458de5822b3af0d67c40c162d824d9075af40f",class:"container",ref:e=>this.containerElement=e},s("button",{key:"f288a8ea8defae8cc043caa9a0ffac98783d1fd5",class:{"pull-to-refresh":true,pulling:this.pulling,refreshing:this.state==="loading"},"aria-label":"Refreshing..."},this.state==="loading"&&s("refresh-icon",{slot:"icon"}),this.state!=="loading"&&s("arrow-icon",{slot:"icon"})),s("div",{key:"1e72528fea83bb6ea40d4c9819ede03fd91ea07a",class:"content",ref:e=>this.contentElement=e},s("slot",{key:"17ba83dc61cf0bdbefb3f503d79582ab760ada50"}))))}};h([r({name:"nylas-threads-refresh",eventToProps:{refresh:async(e,t)=>{a(`[nylas-threads-refresh] Refreshing threads`);const{updateState:s}=e.detail;await s("loading");await t.threads.getThreads(undefined,"overwrite",false);await s("ready")}},fireRegisterEvent:true}),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],f.prototype,"render",null);f.style=o;export{f as nylas_threads_refresh};
2
- //# sourceMappingURL=p-c451c9e1.entry.js.map
1
+ import{r as e,c as t,h as s,H as i}from"./p-68c2fadf.js";import{R as r}from"./p-f0f3f350.js";import{a}from"./p-ad7cf473.js";import"./p-cb65c223.js";const n=":host{display:contents}.container{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.pull-to-refresh{display:none;border:0;background-color:transparent;text-align:center;width:100%;justify-content:center}.pulling{position:relative;display:flex;margin:0 auto;padding:1rem}.pulling svg{width:24px;height:24px;color:var(--nylas-color-primary-500);transform:rotate(90deg)}.refreshing{position:relative;display:flex;margin:0 auto;padding:1rem}.refreshing svg{width:24px;height:24px;fill:var(--nylas-color-primary-500);animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const o=n;var h=undefined&&undefined.__decorate||function(e,t,s,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)if(n=e[o])a=(r<3?n(a):r>3?n(t,s,a):n(t,s))||a;return r>3&&a&&Object.defineProperty(t,s,a),a};var f=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};const c=class{constructor(s){e(this,s);this.refresh=t(this,"refresh",7);this.threshold=100;this.onTouchStart=e=>{a(`[nylas-threads-refresh] Touch start`,e.touches[0].pageY,this.containerElement?.scrollTop,this.containerElement?.offsetHeight,this.contentElement?.scrollTop);if(this.containerElement?.scrollTop===0){this.start=e.touches[0].pageY}else{this.start=0}};this.onTouchMove=e=>{if(this.start){const t=e.touches[0].pageY-this.start;if(t>this.threshold){this.pulling=true}else{this.pulling=false}}};this.onTouchEnd=e=>{if(this.start){const t=e.changedTouches[0].pageY-this.start;if(t>this.threshold){this.pulling=false;this.refresh.emit({updateState:this.updateState})}this.start=0}};this.start=0;this.state="ready";this.pulling=false;a(`[nylas-threads-refresh] Constructor`);this.updateState=this.updateState.bind(this)}connectedCallback(){}async componentWillLoad(){a(`[nylas-threads-refresh] Component will load`)}componentDidLoad(){a(`[nylas-threads-refresh] Component did load`);this.containerElement?.addEventListener("touchstart",this.onTouchStart);this.containerElement?.addEventListener("touchmove",this.onTouchMove);this.containerElement?.addEventListener("touchend",this.onTouchEnd)}disconnectedCallback(){a(`[nylas-threads-refresh] Component disconnected`);this.containerElement?.removeEventListener("touchstart",this.onTouchStart);this.containerElement?.removeEventListener("touchmove",this.onTouchMove);this.containerElement?.removeEventListener("touchend",this.onTouchEnd)}async updateState(e){this.state=e}render(){return s(i,{key:"9027360ae546f7cb1cf5c1e8f977d2e8f85eb3fd"},s("div",{key:"7bf8bf464971f8669d6cb1fc31c478ed29fbda63",class:"container",ref:e=>this.containerElement=e},s("button",{key:"af4dc6f3ec1e45554f13f0dbee2945a7b60acc6c",class:{"pull-to-refresh":true,pulling:this.pulling,refreshing:this.state==="loading"},"aria-label":"Refreshing..."},this.state==="loading"&&s("refresh-icon",{slot:"icon"}),this.state!=="loading"&&s("arrow-icon",{slot:"icon"})),s("div",{key:"d2bceb3b11369e03a9eefa80f983f341bae71239",class:"content",ref:e=>this.contentElement=e},s("slot",{key:"c88b393187aa10285fd940d11bf7b792ac4dbf14"}))))}};h([r({name:"nylas-threads-refresh",eventToProps:{refresh:async(e,t)=>{a(`[nylas-threads-refresh] Refreshing threads`);const{updateState:s}=e.detail;await s("loading");await t.threads.getThreads(undefined,"overwrite",false);await s("ready")}},fireRegisterEvent:true}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],c.prototype,"render",null);c.style=o;export{c as nylas_threads_refresh};
2
+ //# sourceMappingURL=p-828165d3.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as a,h as e}from"./p-68c2fadf.js";const f=".sc-close-icon-h{display:flex}";const c=f;const t=class{constructor(e){a(this,e);this.width="16";this.height="16"}render(){return e("svg",{key:"e58d42880affc512eb7ae18a34099340a50dc6be",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"122df83308958e375531cdaa9d057b78d36b08e3","clip-path":"url(#a)"},e("path",{key:"9b712ee4fa93a86f9a5609bea9233f17160bc23e",d:"M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z",fill:"currentColor"})),e("defs",{key:"761a14ba84069f692cad52f6eafa8cafc4a36489"},e("clipPath",{key:"6805481c67c08d9253c6a5bd7ece2688f6fe0e55",id:"a"},e("path",{key:"af3d03843001cd7418021a9dd216f2e2f126fc7f",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};t.style=c;export{t as close_icon};
2
+ //# sourceMappingURL=p-939db546.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as a,h as c}from"./p-68c2fadf.js";const s=".sc-people-icon-h{display:flex}";const t=s;const f=class{constructor(c){a(this,c);this.width="20";this.height="20"}render(){return c("svg",{key:"71268d67f58cdb39336d681273a014d7f8f4515b",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},c("path",{key:"9053922b8ccf20104a29fc6640f6f2a6c7fffbf6",fill:"currentColor",d:"M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}};f.style=t;export{f as people_icon};
2
- //# sourceMappingURL=p-858f0aad.entry.js.map
1
+ import{r as a,h as c}from"./p-68c2fadf.js";const e=".sc-people-icon-h{display:flex}";const s=e;const t=class{constructor(c){a(this,c);this.width="20";this.height="20"}render(){return c("svg",{key:"8f73408ea9a46988a9f1a9f804fab7ddc87c64d1",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},c("path",{key:"d0a57fb5c109d50e01a113dd137edf66efccbb02",fill:"currentColor",d:"M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}};t.style=s;export{t as people_icon};
2
+ //# sourceMappingURL=p-95a3094a.entry.js.map