@nylas/web-elements 1.1.0-canary.15 → 1.1.0-canary.16

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 (430) hide show
  1. package/dist/cjs/add-circle-icon_2.cjs.entry.js +10 -17
  2. package/dist/cjs/add-circle-icon_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{calendar-info-icon_25.cjs.entry.js → calendar-info-icon_27.cjs.entry.js} +161 -27
  4. package/dist/cjs/calendar-info-icon_27.cjs.entry.js.map +1 -0
  5. package/dist/cjs/google-logo-icon_4.cjs.entry.js +12 -7
  6. package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
  7. package/dist/cjs/index-7af03e3f.js +8 -16
  8. package/dist/cjs/index-c14ea8f5.js +12 -12
  9. package/dist/cjs/input-dropdown.cjs.entry.js +9 -2
  10. package/dist/cjs/input-dropdown.cjs.entry.js.map +1 -1
  11. package/dist/cjs/input-dropdown_2.cjs.entry.js +9 -2
  12. package/dist/cjs/input-dropdown_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/nylas-additional-participants.cjs.entry.js +34 -14
  15. package/dist/cjs/nylas-additional-participants.cjs.entry.js.map +1 -1
  16. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +2 -2
  17. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
  19. package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
  20. package/dist/cjs/nylas-cancellation-policy.cjs.entry.js +1 -1
  21. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +1 -1
  22. package/dist/cjs/nylas-customize-booking-settings.cjs.entry.js +4 -4
  23. package/dist/cjs/nylas-customize-booking-settings.cjs.entry.js.map +1 -1
  24. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +12 -7
  25. package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
  26. package/dist/cjs/nylas-event-info.cjs.entry.js +1 -1
  27. package/dist/cjs/nylas-event-limits.cjs.entry.js +1 -1
  28. package/dist/cjs/nylas-event-location.cjs.entry.js +3 -3
  29. package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
  30. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +1 -1
  31. package/dist/cjs/nylas-min-booking-notice.cjs.entry.js +1 -1
  32. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +1 -1
  33. package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
  34. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +4 -2
  35. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
  36. package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -1
  37. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  38. package/dist/cjs/nylas-time-window-picker.cjs.entry.js +1 -1
  39. package/dist/cjs/nylas-timeslot-interval.cjs.entry.js +2 -2
  40. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  41. package/dist/cjs/{scheduler-config-store-a5b7c08b.js → scheduler-config-store-0266631b.js} +2 -1
  42. package/dist/cjs/scheduler-config-store-0266631b.js.map +1 -0
  43. package/dist/cjs/{scheduler-config-store-918c20d5.js → scheduler-config-store-9f19c7a9.js} +2 -1
  44. package/dist/cjs/scheduler-config-store-9f19c7a9.js.map +1 -0
  45. package/dist/cjs/scheduler-store-0f7328f1.js.map +1 -1
  46. package/dist/cjs/scheduler-store-743ed238.js.map +1 -1
  47. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +10 -1
  48. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js.map +1 -1
  49. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +2 -2
  50. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
  51. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  52. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  53. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +1 -1
  54. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.css +1 -0
  55. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.css +20 -1
  56. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +62 -13
  57. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
  58. package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js +1 -1
  59. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
  60. package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js +5 -5
  61. package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js.map +1 -1
  62. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +9 -7
  63. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  64. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js +2 -0
  65. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
  66. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  67. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  68. package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js +3 -3
  69. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  70. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +1 -1
  71. package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js +1 -1
  72. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +1 -1
  73. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +25 -2
  74. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +1 -1
  75. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
  76. package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +2 -2
  77. package/dist/collection/stores/scheduler-config-store.js +1 -0
  78. package/dist/collection/stores/scheduler-config-store.js.map +1 -1
  79. package/dist/collection/stores/scheduler-store.js.map +1 -1
  80. package/dist/components/input-dropdown2.js +11 -3
  81. package/dist/components/input-dropdown2.js.map +1 -1
  82. package/dist/components/nylas-additional-participants.js +1 -127
  83. package/dist/components/nylas-additional-participants.js.map +1 -1
  84. package/dist/components/nylas-additional-participants2.js +164 -0
  85. package/dist/components/nylas-additional-participants2.js.map +1 -0
  86. package/dist/components/nylas-booking-form2.js +2 -2
  87. package/dist/components/nylas-booking-form2.js.map +1 -1
  88. package/dist/components/nylas-cancellation-policy2.js +1 -1
  89. package/dist/components/nylas-custom-booking-flow.js +1 -1
  90. package/dist/components/nylas-customize-booking-settings2.js +4 -4
  91. package/dist/components/nylas-customize-booking-settings2.js.map +1 -1
  92. package/dist/components/nylas-editor-tabs2.js +90 -73
  93. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  94. package/dist/components/nylas-event-info2.js +1 -1
  95. package/dist/components/nylas-event-limits2.js +1 -1
  96. package/dist/components/nylas-event-location2.js +3 -3
  97. package/dist/components/nylas-form-card2.js +1 -1
  98. package/dist/components/nylas-limit-future-bookings2.js +1 -1
  99. package/dist/components/nylas-min-booking-notice2.js +1 -1
  100. package/dist/components/nylas-min-cancellation-notice2.js +1 -1
  101. package/dist/components/nylas-scheduler-editor.js +92 -77
  102. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  103. package/dist/components/nylas-scheduling.js +1 -1
  104. package/dist/components/nylas-scheduling.js.map +1 -1
  105. package/dist/components/nylas-time-window-picker2.js +1 -1
  106. package/dist/components/nylas-timeslot-interval2.js +2 -2
  107. package/dist/components/people-icon.js +1 -32
  108. package/dist/components/people-icon.js.map +1 -1
  109. package/dist/components/people.js +36 -0
  110. package/dist/components/people.js.map +1 -0
  111. package/dist/components/scheduler-config-store.js +1 -0
  112. package/dist/components/scheduler-config-store.js.map +1 -1
  113. package/dist/components/scheduler-store.js.map +1 -1
  114. package/dist/esm/add-circle-icon.entry.js +1 -1
  115. package/dist/esm/add-circle-icon_2.entry.js +10 -17
  116. package/dist/esm/add-circle-icon_2.entry.js.map +1 -1
  117. package/dist/esm/archive-icon.entry.js +1 -1
  118. package/dist/esm/arrow-icon.entry.js +1 -1
  119. package/dist/esm/bold-icon.entry.js +1 -1
  120. package/dist/esm/button-component.entry.js +1 -1
  121. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  122. package/dist/esm/calendar-check-icon.entry.js +1 -1
  123. package/dist/esm/calendar-icon.entry.js +1 -1
  124. package/dist/esm/calendar-info-icon.entry.js +1 -1
  125. package/dist/esm/{calendar-info-icon_25.entry.js → calendar-info-icon_27.entry.js} +160 -28
  126. package/dist/esm/calendar-info-icon_27.entry.js.map +1 -0
  127. package/dist/esm/calendar-patterns-icon.entry.js +1 -1
  128. package/dist/esm/checkbox-component.entry.js +1 -1
  129. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  130. package/dist/esm/chevron-icon.entry.js +1 -1
  131. package/dist/esm/clock-icon.entry.js +1 -1
  132. package/dist/esm/close-icon.entry.js +1 -1
  133. package/dist/esm/document-refresh-icon.entry.js +1 -1
  134. package/dist/esm/flow-icon.entry.js +1 -1
  135. package/dist/esm/folder-icon.entry.js +1 -1
  136. package/dist/esm/forward-icon.entry.js +1 -1
  137. package/dist/esm/globe-icon.entry.js +1 -1
  138. package/dist/esm/google-logo-icon.entry.js +1 -1
  139. package/dist/esm/google-logo-icon_4.entry.js +12 -7
  140. package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
  141. package/dist/esm/inbox-icon.entry.js +1 -1
  142. package/dist/esm/{index-11d12497.js → index-2c7e4f4b.js} +2 -2
  143. package/dist/esm/{index-11d12497.js.map → index-2c7e4f4b.js.map} +1 -1
  144. package/dist/esm/{index-8362ce5c.js → index-582cfc93.js} +14 -14
  145. package/dist/esm/{index-8362ce5c.js.map → index-582cfc93.js.map} +1 -1
  146. package/dist/esm/index-7cb0dd3d.js +8 -16
  147. package/dist/esm/index.js +2 -2
  148. package/dist/esm/info-icon.entry.js +1 -1
  149. package/dist/esm/input-component.entry.js +1 -1
  150. package/dist/esm/input-dropdown.entry.js +10 -3
  151. package/dist/esm/input-dropdown.entry.js.map +1 -1
  152. package/dist/esm/input-dropdown_2.entry.js +9 -2
  153. package/dist/esm/input-dropdown_2.entry.js.map +1 -1
  154. package/dist/esm/italic-icon.entry.js +1 -1
  155. package/dist/esm/loader.js +3 -3
  156. package/dist/esm/loading-icon.entry.js +1 -1
  157. package/dist/esm/location-icon.entry.js +1 -1
  158. package/dist/esm/location-off-icon.entry.js +1 -1
  159. package/dist/esm/{mailbox-store-11fa8387.js → mailbox-store-c9b2a4fd.js} +2 -2
  160. package/dist/esm/{mailbox-store-11fa8387.js.map → mailbox-store-c9b2a4fd.js.map} +1 -1
  161. package/dist/esm/microsoft-logo-icon.entry.js +1 -1
  162. package/dist/esm/multi-select-dropdown.entry.js +1 -1
  163. package/dist/esm/nylas-additional-participants.entry.js +36 -16
  164. package/dist/esm/nylas-additional-participants.entry.js.map +1 -1
  165. package/dist/esm/nylas-availability-picker.entry.js +2 -2
  166. package/dist/esm/nylas-booked-event-card.entry.js +2 -2
  167. package/dist/esm/nylas-booked-event-card_10.entry.js +2 -2
  168. package/dist/esm/nylas-booked-event-card_10.entry.js.map +1 -1
  169. package/dist/esm/nylas-booking-calendar-picker.entry.js +2 -2
  170. package/dist/esm/nylas-booking-form.entry.js +4 -4
  171. package/dist/esm/nylas-booking-form.entry.js.map +1 -1
  172. package/dist/esm/nylas-buffer-time.entry.js +2 -2
  173. package/dist/esm/nylas-calendar-picker.entry.js +2 -2
  174. package/dist/esm/nylas-cancel-booking-form.entry.js +2 -2
  175. package/dist/esm/nylas-cancellation-policy.entry.js +3 -3
  176. package/dist/esm/nylas-cancelled-event-card.entry.js +2 -2
  177. package/dist/esm/nylas-composer.entry.js +1 -1
  178. package/dist/esm/nylas-custom-booking-flow.entry.js +3 -3
  179. package/dist/esm/nylas-customize-booking-settings.entry.js +6 -6
  180. package/dist/esm/nylas-customize-booking-settings.entry.js.map +1 -1
  181. package/dist/esm/nylas-date-picker.entry.js +2 -2
  182. package/dist/esm/nylas-editor-tabs.entry.js +14 -9
  183. package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
  184. package/dist/esm/nylas-event-description.entry.js +2 -2
  185. package/dist/esm/nylas-event-duration.entry.js +2 -2
  186. package/dist/esm/nylas-event-info.entry.js +3 -3
  187. package/dist/esm/nylas-event-limits.entry.js +3 -3
  188. package/dist/esm/nylas-event-location.entry.js +5 -5
  189. package/dist/esm/nylas-event-title.entry.js +2 -2
  190. package/dist/esm/nylas-form-card.entry.js +3 -3
  191. package/dist/esm/nylas-if-state.entry.js +2 -2
  192. package/dist/esm/nylas-limit-future-bookings.entry.js +3 -3
  193. package/dist/esm/nylas-list-configurations.entry.js +2 -2
  194. package/dist/esm/nylas-list-folders.entry.js +2 -2
  195. package/dist/esm/nylas-list-threads.entry.js +2 -2
  196. package/dist/esm/nylas-locale-switch.entry.js +2 -2
  197. package/dist/esm/nylas-login.entry.js +2 -2
  198. package/dist/esm/nylas-logo.entry.js +1 -1
  199. package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
  200. package/dist/esm/nylas-mailbox-toolbar-button.entry.js +2 -2
  201. package/dist/esm/nylas-mailbox.entry.js +3 -3
  202. package/dist/esm/nylas-min-booking-notice.entry.js +3 -3
  203. package/dist/esm/nylas-min-cancellation-notice.entry.js +3 -3
  204. package/dist/esm/nylas-notification.entry.js +1 -1
  205. package/dist/esm/nylas-provider.entry.js +5 -5
  206. package/dist/esm/nylas-scheduler-editor.entry.js +6 -4
  207. package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
  208. package/dist/esm/nylas-scheduling.entry.js +4 -4
  209. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  210. package/dist/esm/nylas-selected-event-card.entry.js +2 -2
  211. package/dist/esm/nylas-summarize-message-button.entry.js +2 -2
  212. package/dist/esm/nylas-threads-refresh.entry.js +2 -2
  213. package/dist/esm/nylas-threads-search.entry.js +2 -2
  214. package/dist/esm/nylas-time-window-picker.entry.js +2 -2
  215. package/dist/esm/nylas-timeslot-interval.entry.js +4 -4
  216. package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
  217. package/dist/esm/nylas-view-email.entry.js +1 -1
  218. package/dist/esm/nylas-view-thread.entry.js +2 -2
  219. package/dist/esm/nylas-web-elements.js +3 -3
  220. package/dist/esm/people-icon.entry.js +1 -1
  221. package/dist/esm/person-icon.entry.js +1 -1
  222. package/dist/esm/play-icon.entry.js +1 -1
  223. package/dist/esm/radio-button-group.entry.js +1 -1
  224. package/dist/esm/refresh-icon.entry.js +1 -1
  225. package/dist/esm/{register-component-8e4e394f.js → register-component-6ae95538.js} +2 -2
  226. package/dist/esm/{register-component-8e4e394f.js.map → register-component-6ae95538.js.map} +1 -1
  227. package/dist/esm/reply-all-icon.entry.js +1 -1
  228. package/dist/esm/reply-icon.entry.js +1 -1
  229. package/dist/esm/{scheduler-config-store-ec3b6190.js → scheduler-config-store-4a50a03d.js} +2 -1
  230. package/dist/esm/scheduler-config-store-4a50a03d.js.map +1 -0
  231. package/dist/{nylas-web-elements/scheduler-config-store-8ccc8dc7.js → esm/scheduler-config-store-f20845ad.js} +3 -2
  232. package/dist/esm/scheduler-config-store-f20845ad.js.map +1 -0
  233. package/dist/{nylas-web-elements/scheduler-store-c3af2560.js → esm/scheduler-store-17f7f1c8.js} +2 -2
  234. package/dist/esm/{scheduler-store-c3af2560.js.map → scheduler-store-17f7f1c8.js.map} +1 -1
  235. package/dist/esm/scheduler-store-f02ce045.js.map +1 -1
  236. package/dist/esm/search-icon.entry.js +1 -1
  237. package/dist/esm/select-dropdown.entry.js +1 -1
  238. package/dist/esm/sent-icon.entry.js +1 -1
  239. package/dist/esm/spam-icon.entry.js +1 -1
  240. package/dist/esm/star-icon.entry.js +1 -1
  241. package/dist/esm/stop-icon.entry.js +1 -1
  242. package/dist/esm/textarea-component.entry.js +1 -1
  243. package/dist/esm/time-period-selector.entry.js +1 -1
  244. package/dist/esm/toggle-switch.entry.js +1 -1
  245. package/dist/esm/tooltip-component.entry.js +1 -1
  246. package/dist/esm/translate-icon.entry.js +1 -1
  247. package/dist/esm/trash-icon.entry.js +1 -1
  248. package/dist/esm/underline-icon.entry.js +1 -1
  249. package/dist/esm/warning-icon.entry.js +1 -1
  250. package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
  251. package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
  252. package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
  253. package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
  254. package/dist/nylas-web-elements/button-component.entry.js +1 -1
  255. package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
  256. package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
  257. package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
  258. package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
  259. package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
  260. package/dist/nylas-web-elements/checkbox-component.entry.js +1 -1
  261. package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
  262. package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
  263. package/dist/nylas-web-elements/clock-icon.entry.js +1 -1
  264. package/dist/nylas-web-elements/close-icon.entry.js +1 -1
  265. package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
  266. package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
  267. package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
  268. package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
  269. package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
  270. package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
  271. package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
  272. package/dist/nylas-web-elements/{index-11d12497.js → index-2c7e4f4b.js} +2 -2
  273. package/dist/nylas-web-elements/{index-11d12497.js.map → index-2c7e4f4b.js.map} +1 -1
  274. package/dist/nylas-web-elements/{index-8362ce5c.js → index-582cfc93.js} +2 -2
  275. package/dist/nylas-web-elements/{index-8362ce5c.js.map → index-582cfc93.js.map} +1 -1
  276. package/dist/nylas-web-elements/index.esm.js +2 -2
  277. package/dist/nylas-web-elements/info-icon.entry.js +1 -1
  278. package/dist/nylas-web-elements/input-component.entry.js +1 -1
  279. package/dist/nylas-web-elements/input-dropdown.entry.js +10 -3
  280. package/dist/nylas-web-elements/input-dropdown.entry.js.map +1 -1
  281. package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
  282. package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
  283. package/dist/nylas-web-elements/location-icon.entry.js +1 -1
  284. package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
  285. package/dist/nylas-web-elements/{mailbox-store-11fa8387.js → mailbox-store-c9b2a4fd.js} +2 -2
  286. package/dist/nylas-web-elements/{mailbox-store-11fa8387.js.map → mailbox-store-c9b2a4fd.js.map} +1 -1
  287. package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
  288. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +1 -1
  289. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +36 -16
  290. package/dist/nylas-web-elements/nylas-additional-participants.entry.js.map +1 -1
  291. package/dist/nylas-web-elements/nylas-availability-picker.entry.js +2 -2
  292. package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +2 -2
  293. package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +2 -2
  294. package/dist/nylas-web-elements/nylas-booking-form.entry.js +4 -4
  295. package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
  296. package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
  297. package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +2 -2
  298. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +2 -2
  299. package/dist/nylas-web-elements/nylas-cancellation-policy.entry.js +3 -3
  300. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +2 -2
  301. package/dist/nylas-web-elements/nylas-composer.entry.js +1 -1
  302. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +3 -3
  303. package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js +6 -6
  304. package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js.map +1 -1
  305. package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
  306. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +14 -9
  307. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
  308. package/dist/nylas-web-elements/nylas-event-description.entry.js +2 -2
  309. package/dist/nylas-web-elements/nylas-event-duration.entry.js +2 -2
  310. package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
  311. package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
  312. package/dist/nylas-web-elements/nylas-event-location.entry.js +5 -5
  313. package/dist/nylas-web-elements/nylas-event-title.entry.js +2 -2
  314. package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
  315. package/dist/nylas-web-elements/nylas-if-state.entry.js +2 -2
  316. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +3 -3
  317. package/dist/nylas-web-elements/nylas-list-configurations.entry.js +2 -2
  318. package/dist/nylas-web-elements/nylas-list-folders.entry.js +2 -2
  319. package/dist/nylas-web-elements/nylas-list-threads.entry.js +2 -2
  320. package/dist/nylas-web-elements/nylas-locale-switch.entry.js +2 -2
  321. package/dist/nylas-web-elements/nylas-login.entry.js +2 -2
  322. package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
  323. package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
  324. package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +2 -2
  325. package/dist/nylas-web-elements/nylas-mailbox.entry.js +3 -3
  326. package/dist/nylas-web-elements/nylas-min-booking-notice.entry.js +3 -3
  327. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +3 -3
  328. package/dist/nylas-web-elements/nylas-notification.entry.js +1 -1
  329. package/dist/nylas-web-elements/nylas-provider.entry.js +5 -5
  330. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +6 -4
  331. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
  332. package/dist/nylas-web-elements/nylas-scheduling.entry.js +4 -4
  333. package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
  334. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +2 -2
  335. package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +2 -2
  336. package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +2 -2
  337. package/dist/nylas-web-elements/nylas-threads-search.entry.js +2 -2
  338. package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
  339. package/dist/nylas-web-elements/nylas-timeslot-interval.entry.js +4 -4
  340. package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
  341. package/dist/nylas-web-elements/nylas-view-email.entry.js +1 -1
  342. package/dist/nylas-web-elements/nylas-view-thread.entry.js +2 -2
  343. package/dist/nylas-web-elements/nylas-web-elements.esm.js +3 -3
  344. package/dist/nylas-web-elements/p-05833164.entry.js +2 -0
  345. package/dist/nylas-web-elements/p-05833164.entry.js.map +1 -0
  346. package/dist/nylas-web-elements/{p-a804616a.entry.js → p-09fec39c.entry.js} +2 -2
  347. package/dist/nylas-web-elements/{p-df2b34ee.entry.js → p-13b003b5.entry.js} +2 -2
  348. package/dist/nylas-web-elements/p-29938263.js +2 -0
  349. package/dist/nylas-web-elements/p-29938263.js.map +1 -0
  350. package/dist/nylas-web-elements/{p-afd34a25.entry.js → p-2f656fb3.entry.js} +3 -3
  351. package/dist/nylas-web-elements/p-2f656fb3.entry.js.map +1 -0
  352. package/dist/nylas-web-elements/p-427548f5.entry.js +2 -0
  353. package/dist/nylas-web-elements/p-427548f5.entry.js.map +1 -0
  354. package/dist/nylas-web-elements/p-470536e0.entry.js +2 -0
  355. package/dist/nylas-web-elements/p-470536e0.entry.js.map +1 -0
  356. package/dist/nylas-web-elements/p-4f548e66.entry.js +2 -0
  357. package/dist/nylas-web-elements/p-4f548e66.entry.js.map +1 -0
  358. package/dist/nylas-web-elements/p-823c8aa2.js.map +1 -1
  359. package/dist/nylas-web-elements/p-96418bc6.entry.js +2 -0
  360. package/dist/nylas-web-elements/p-96418bc6.entry.js.map +1 -0
  361. package/dist/nylas-web-elements/p-9acfea5f.entry.js +2 -0
  362. package/dist/nylas-web-elements/p-9acfea5f.entry.js.map +1 -0
  363. package/dist/nylas-web-elements/{p-84529d9b.entry.js → p-b27e34a9.entry.js} +2 -2
  364. package/dist/nylas-web-elements/p-efd5b80a.entry.js +2 -0
  365. package/dist/nylas-web-elements/p-efd5b80a.entry.js.map +1 -0
  366. package/dist/nylas-web-elements/people-icon.entry.js +1 -1
  367. package/dist/nylas-web-elements/person-icon.entry.js +1 -1
  368. package/dist/nylas-web-elements/play-icon.entry.js +1 -1
  369. package/dist/nylas-web-elements/radio-button-group.entry.js +1 -1
  370. package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
  371. package/dist/nylas-web-elements/{register-component-8e4e394f.js → register-component-6ae95538.js} +2 -2
  372. package/dist/nylas-web-elements/{register-component-8e4e394f.js.map → register-component-6ae95538.js.map} +1 -1
  373. package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
  374. package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
  375. package/dist/{esm/scheduler-config-store-8ccc8dc7.js → nylas-web-elements/scheduler-config-store-f20845ad.js} +3 -2
  376. package/dist/nylas-web-elements/scheduler-config-store-f20845ad.js.map +1 -0
  377. package/dist/{esm/scheduler-store-c3af2560.js → nylas-web-elements/scheduler-store-17f7f1c8.js} +2 -2
  378. package/dist/nylas-web-elements/{scheduler-store-c3af2560.js.map → scheduler-store-17f7f1c8.js.map} +1 -1
  379. package/dist/nylas-web-elements/search-icon.entry.js +1 -1
  380. package/dist/nylas-web-elements/select-dropdown.entry.js +1 -1
  381. package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
  382. package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
  383. package/dist/nylas-web-elements/star-icon.entry.js +1 -1
  384. package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
  385. package/dist/nylas-web-elements/textarea-component.entry.js +1 -1
  386. package/dist/nylas-web-elements/time-period-selector.entry.js +1 -1
  387. package/dist/nylas-web-elements/toggle-switch.entry.js +1 -1
  388. package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
  389. package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
  390. package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
  391. package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
  392. package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
  393. package/dist/types/components/design-system/input-dropdown/input-dropdown.d.ts +1 -0
  394. package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +11 -1
  395. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +2 -0
  396. package/dist/types/components.d.ts +12 -2
  397. package/dist/types/stores/scheduler-config-store.d.ts +2 -1
  398. package/dist/types/stores/scheduler-store.d.ts +1 -1
  399. package/package.json +2 -2
  400. package/dist/cjs/calendar-info-icon_25.cjs.entry.js.map +0 -1
  401. package/dist/cjs/scheduler-config-store-918c20d5.js.map +0 -1
  402. package/dist/cjs/scheduler-config-store-a5b7c08b.js.map +0 -1
  403. package/dist/esm/calendar-info-icon_25.entry.js.map +0 -1
  404. package/dist/esm/scheduler-config-store-8ccc8dc7.js.map +0 -1
  405. package/dist/esm/scheduler-config-store-ec3b6190.js.map +0 -1
  406. package/dist/nylas-web-elements/p-155942d0.entry.js +0 -2
  407. package/dist/nylas-web-elements/p-155942d0.entry.js.map +0 -1
  408. package/dist/nylas-web-elements/p-237d2b4e.entry.js +0 -2
  409. package/dist/nylas-web-elements/p-237d2b4e.entry.js.map +0 -1
  410. package/dist/nylas-web-elements/p-2e813dd0.entry.js +0 -2
  411. package/dist/nylas-web-elements/p-2e813dd0.entry.js.map +0 -1
  412. package/dist/nylas-web-elements/p-35b66ab6.entry.js +0 -2
  413. package/dist/nylas-web-elements/p-35b66ab6.entry.js.map +0 -1
  414. package/dist/nylas-web-elements/p-6239608c.entry.js +0 -2
  415. package/dist/nylas-web-elements/p-6239608c.entry.js.map +0 -1
  416. package/dist/nylas-web-elements/p-86895fc4.entry.js +0 -2
  417. package/dist/nylas-web-elements/p-86895fc4.entry.js.map +0 -1
  418. package/dist/nylas-web-elements/p-afd34a25.entry.js.map +0 -1
  419. package/dist/nylas-web-elements/p-b406bf70.entry.js +0 -2
  420. package/dist/nylas-web-elements/p-b406bf70.entry.js.map +0 -1
  421. package/dist/nylas-web-elements/p-ee91a2a0.js +0 -2
  422. package/dist/nylas-web-elements/p-ee91a2a0.js.map +0 -1
  423. package/dist/nylas-web-elements/p-f1bd124d.entry.js +0 -2
  424. package/dist/nylas-web-elements/p-f1bd124d.entry.js.map +0 -1
  425. package/dist/nylas-web-elements/p-fac4d89e.entry.js +0 -2
  426. package/dist/nylas-web-elements/p-fac4d89e.entry.js.map +0 -1
  427. package/dist/nylas-web-elements/scheduler-config-store-8ccc8dc7.js.map +0 -1
  428. /package/dist/nylas-web-elements/{p-a804616a.entry.js.map → p-09fec39c.entry.js.map} +0 -0
  429. /package/dist/nylas-web-elements/{p-df2b34ee.entry.js.map → p-13b003b5.entry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,QAAQ,CAAC,CAAC;iBAC1B;aACF;YACD,iBAAiB,EAAE,OAAO,CAAC,EAAE,6BAA6B;gBACxD,6BAA6B,CAAC,oBAAoB,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;aACxE;YACD,oBAAoB,EAAE,OAAO,CAAC,EAAE,6BAA6B;gBAC3DH,WAAK,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,6BAA6B,CAAC,CAAC;aACrF;YACD,aAAa,EAAE,OAAO,CAAC,EAAE,6BAA6B;gBACpDA,WAAK,CAAC,qBAAqB,EAAE,eAAe,EAAE,6BAA6B,CAAC,CAAC;aAC9E;SACF;QACD,gBAAgB,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAC,CAAC;QAC7E,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;6CA0FD;;;;;","names":["h","DEFAULT_OPEN_HOURS","mergeDeep","debug","Host","parsePreviewLink","RegisterComponent"],"sources":["src/components/scheduler-editor/nylas-editor-tabs/tab-contents.tsx","src/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.scss?tag=nylas-editor-tabs&encapsulation=scoped","src/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.tsx"],"sourcesContent":["import { h } from '@stencil/core';\n\nexport type TabContentsProps = {\n id: string;\n formState: any;\n activeTab: string;\n calendars?: any[];\n};\n\nexport default function TabContents({ id, formState, activeTab, calendars }: TabContentsProps) {\n switch (activeTab) {\n case 'eventInfo':\n const eventTitle = formState.title;\n const eventDescription = formState.description;\n const eventDuration = parseInt(formState.duration);\n const location = formState.location;\n // const eventParticipants = formState.participants;\n\n return (\n <div key={id}>\n <nylas-event-info>\n <div slot=\"inputs\">\n <nylas-event-title name=\"title\" eventTitle={eventTitle} exportparts=\"net, net__title, net__dropdown-content\" />\n <nylas-event-duration\n name=\"duration\"\n eventDurationMinutes={eventDuration}\n exportparts=\"ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content\"\n />\n <nylas-event-location name=\"location\" eventLocation={location} exportparts=\"nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content\" />\n <nylas-event-description name=\"description\" eventDescription={eventDescription} exportparts=\"nedesc, nedesc__textarea\" />\n </div>\n </nylas-event-info>\n {/* <nylas-additional-participants\n name=\"participants\"\n eventParticipants={eventParticipants}\n exportparts={'nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant, nap__add-participant'}\n /> */}\n </div>\n );\n case 'availability':\n const openHours = formState.availability.openHours;\n const timezone = formState.availability.timezone ? formState.availability.timezone : Intl.DateTimeFormat().resolvedOptions().timeZone;\n const organizer = formState.participants?.find(p => p.is_organizer);\n const organizerEmail = organizer?.email ?? 'primary';\n const selectedCalendars = formState.calendarIds.length > 0 ? formState.calendarIds : [organizerEmail];\n const bookingCalendar = formState.bookingCalendar == 'primary' ? organizerEmail : formState.bookingCalendar;\n return (\n <div key={id}>\n <nylas-booking-calendar-picker\n name=\"booking-calendar\"\n calendars={calendars ?? []}\n defaultBookingCalendar={bookingCalendar}\n exportparts={'nbcp, nbcp__header, nbcp__input-label, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content'}\n />\n <nylas-calendar-picker\n name=\"calendars\"\n calendars={calendars ?? []}\n defaultSelectedCalendars={selectedCalendars}\n exportparts={'ncp ncp__header, ncp__dropdown, ncp__dropdown-button, ncp__dropdown-content'}\n />\n <nylas-availability-picker\n name=\"availability\"\n openHours={openHours}\n defaultTimezone={timezone}\n exportparts={\n 'nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times'\n }\n />\n </div>\n );\n case 'bookingOptions':\n return (\n <div key={id}>\n <nylas-buffer-time\n name=\"buffer-time\"\n buffer={formState.buffer}\n exportparts={\n 'nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview'\n }\n />\n {/* <nylas-custom-booking-flow\n name=\"booking-type\"\n bookingType={formState.bookingType}\n exportparts={'ncbf, ncbf__header, ncbf__dropdown, ncbf__dropdown-button, ncbf__dropdown-content'}\n /> */}\n <nylas-event-limits>\n <div slot=\"inputs\">\n <nylas-min-booking-notice\n name=\"min-booking-notice\"\n minBookingNotice={formState.minBookingNotice}\n exportparts=\"nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content\"\n />\n <nylas-limit-future-bookings\n name=\"limit-future-bookings\"\n availableDaysInFuture={formState.availableDaysInFuture}\n exportparts=\"nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content\"\n />\n <nylas-min-cancellation-notice\n name=\"min-cancellation-notice\"\n minCancellationNotice={formState.minCancellationNotice}\n exportparts=\"nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content\"\n />\n <nylas-cancellation-policy name=\"cancellation-policy\" cancellationPolicy={formState.cancellationPolicy} exportparts=\"ncpolicy, ncpolicy__textarea\" />\n </div>\n </nylas-event-limits>\n <nylas-timeslot-interval\n name=\"timeslot-interval\"\n eventDurationMinutes={parseInt(formState.duration)}\n exportparts=\"nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content\"\n />\n <nylas-customize-booking-settings\n name=\"customize-booking-settings\"\n exportparts=\"ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options\"\n />\n </div>\n );\n }\n}\n","@import '../../../common/styles/variables.scss';\n@import '../../../common/mixins/buttons.scss';\n\n:host {\n display: block;\n @include default-css-variables;\n}\n\n.scheduler-editor {\n display: flex;\n flex-direction: column;\n .form-contents {\n height: 554px;\n display: grid;\n grid-template-columns: minmax(224px, 25%) 1fr;\n @media #{$mobile} {\n display: table-column-group;\n height: auto;\n }\n .tabs {\n display: flex;\n flex-direction: column;\n border-right: 1px solid var(--nylas-base-200);\n background-color: var(--nylas-base-25);\n .tab {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n color: var(--nylas-base-900);\n background: var(--nylas-base-0);\n border: none;\n height: 56px;\n font-family: var(--nylas-font-family);\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n cursor: pointer;\n &:not(:first-of-type) {\n margin-top: 0.25rem;\n }\n &.active {\n font-weight: 600;\n background: var(--nylas-base-0);\n color: var(--nylas-primary);\n border-left: 4px solid var(--nylas-primary);\n box-shadow: 0px 1px 2px 0px #0000000f;\n box-shadow: 0px 1px 3px 0px #0000001a;\n }\n }\n }\n .tab-content {\n max-width: 692px;\n overflow-y: auto;\n nylas-event-info,\n nylas-event-limits {\n width: inherit;\n div[slot='inputs'] {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n }\n }\n }\n}\n\n.footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 1rem;\n min-height: 80px;\n padding: 0 1rem;\n border-top: 1px solid var(--nylas-base-200);\n @media #{$mobile} {\n flex-direction: column;\n height: auto;\n }\n .preview {\n @media #{$mobile} {\n margin-top: 1rem;\n width: 100%;\n }\n }\n .buttons {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n justify-self: flex-end;\n gap: 1rem;\n @media #{$mobile} {\n flex-direction: column-reverse;\n width: 100%;\n }\n p {\n max-width: 524px;\n &.unsaved-changes {\n color: var(--nylas-base-600);\n }\n &.saved-changes {\n color: var(--nylas-success);\n }\n &.error {\n color: var(--nylas-error);\n }\n &.error-full-width {\n max-width: 660px;\n }\n }\n\n button-component {\n @media #{$mobile} {\n width: 100%;\n }\n }\n button {\n @include primary-button;\n width: 148px;\n span {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n }\n }\n }\n}\n","import { RegisterComponent } from '@/common/register-component';\nimport { NylasSchedulerConfigConnector } from '@/connector/nylas-scheduler-config-connector';\nimport { debug, mergeDeep, parsePreviewLink } from '@/utils/utils';\nimport { BookingType, Calendar, Configuration, OpenHours } from '@nylas/core';\nimport { Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h } from '@stencil/core';\nimport { NylasSchedulerEditor } from '../nylas-scheduler-editor/nylas-scheduler-editor';\nimport TabContents from './tab-contents';\nimport { User } from '@/common/nylas-api-request';\nimport { DEFAULT_OPEN_HOURS } from '@/common/constants';\nimport { DataResponseReturnType } from '@/common/types';\n\ntype SchedulerEventDetail = {\n config: Partial<Configuration>;\n action: 'create' | 'edit';\n resetLoadingState?: (e: CustomEvent) => void;\n setError?: (error: Error) => void;\n};\n\n/**\n * The `nylas-editor-tabs` component is a UI component that displays the editor tabs for the scheduler editor.\n * @part nap__title - [nylas-additional-participants] The title of the component.\n * @part nap__subtitle - [nylas-additional-participants] The subtitle of the component.\n * @part nap__content - [nylas-additional-participants] The content of the component.\n * @part nap__input - [nylas-additional-participants] The input of the component.\n * @part nap__remove-participant - [nylas-additional-participants] The remove participant button of the component.\n * @part nap__add-participant - [nylas-additional-participants] The add participant button of the component.\n * @part nap__header - [nylas-availability-picker] The header of the availability picker\n * @part nap__select-timezone - [nylas-availability-picker] The timezone selection container\n * @part nap__select-timezone-button -[nylas-availability-picker] The timezone selection button\n * @part nap__select-timezone-dropdown-content -[nylas-availability-picker] The timezone selection dropdown content\n * @part nap__availability - [nylas-availability-picker] The availability container\n * @part nap__day - [nylas-availability-picker] The day container\n * @part nap__time-ranges - [nylas-availability-picker] The time ranges container\n * @part nap__time-range - [nylas-availability-picker] The time range container\n * @part nap__add-time-range - [nylas-availability-picker] The add time range button\n * @part nap__time-picker-container -[nylas-availability-picker] The time picker container\n * @part nap__time-picker-input - [nylas-availability-picker] The time picker input\n * @part nap__time-picker-times - [nylas-availability-picker] The time picker times\n * @part nbcp - [nylas-booking-calendar-picker] The booking calendar picker container\n * @part nbcp__header - [nylas-booking-calendar-picker] The header of the booking calendar picker\n * @part nbcp__input-label - [nylas-booking-calendar-picker] The input label of the booking calendar picker\n * @part nbcp__dropdown - [nylas-booking-calendar-picker] The dropdown container\n * @part nbcp__dropdown-button - [nylas-booking-calendar-picker] The dropdown button\n * @part nbcp__dropdown-content - [nylas-booking-calendar-picker] The dropdown content\n * @part nbt - [nylas-buffer-time] The buffer time container\n * @part nbt__header - [nylas-buffer-time] The header of the buffer time\n * @part nbt__body - [nylas-buffer-time] The body of the buffer time\n * @part nbt__dropdown-before - [nylas-buffer-time] The before buffer dropdown container\n * @part nbt__dropdown-button-before - [nylas-buffer-time] The before buffer dropdown button\n * @part nbt__dropdown-content-before - [nylas-buffer-time] The before buffer dropdown content\n * @part nbt__dropdown-after - [nylas-buffer-time] The after buffer dropdown container\n * @part nbt__dropdown-button-after - [nylas-buffer-time] The after buffer dropdown button\n * @part nbt__dropdown-content-after - [nylas-buffer-time] The after buffer dropdown content\n * @part nbt__preview - [nylas-buffer-time] The buffer time preview\n * @part ncp - [nylas-calendar-picker] The calendar picker container\n * @part ncp__header - [nylas-calendar-picker] The header of the calendar picker\n * @part ncp__dropdown - [nylas-calendar-picker] The dropdown container\n * @part ncp__dropdown-button - [nylas-calendar-picker] The dropdown button\n * @part ncp__dropdown-content - [nylas-calendar-picker] The dropdown content\n * @part ncbf - [nylas-custom-booking-flow] The custom booking flow container\n * @part ncbf__header - [nylas-custom-booking-flow] The header of the custom booking flow\n * @part ncbf__dropdown - [nylas-custom-booking-flow] The dropdown container\n * @part ncbf__dropdown-button - [nylas-custom-booking-flow] The dropdown button\n * @part ncbf__dropdown-content - [nylas-custom-booking-flow] The dropdown content\n * @part nedesc - [nylas-event-description] The event description container\n * @part nedesc__textarea - [nylas-event-description] The event description textarea\n * @part ned - [nylas-event-duration] The event duration container\n * @part ned__dropdown - [nylas-event-duration] The dropdown container for the duration increment\n * @part ned__dropdown-button - [nylas-event-duration] The dropdown button for the duration increment\n * @part ned__dropdown-content - [nylas-event-duration] The dropdown content for the duration increment\n * @part ned__input_dropdown - [nylas-event-duration] The input dropdown container for the duration minutes\n * @part ned__input_dropdown-input - [nylas-event-duration] The input for the duration minutes\n * @part ned__input_dropdown-content - [nylas-event-duration] The dropdown content for the input duration minutes\n * @part net - [nylas-event-title] The event title container\n * @part net__title - [nylas-event-title] The event title input\n * @part net__dropdown-content - [nylas-event-title] The token options container\n * @part nlfb - [nylas-limit-future-bookings] The limit future bookings container\n * @part nlfb__number-dropdown - [nylas-limit-future-bookings] The number dropdown container\n * @part nlfb__number-dropdown-button - [nylas-limit-future-bookings] The number dropdown button\n * @part nlfb__number-dropdown-content - [nylas-limit-future-bookings] The number dropdown content\n * @part nlfb__period-dropdown - [nylas-limit-future-bookings] The period dropdown container\n * @part nlfb__period-dropdown-button - [nylas-limit-future-bookings] The period dropdown button\n * @part nlfb__period-dropdown-content - [nylas-limit-future-bookings] The period dropdown content\n * @part nel - [nylas-event-location] The event location container\n * @part nel__location - [nylas-event-location] The event location input\n * @part nel__dropdown - [nylas-event-location] The dropdown container\n * @part nel__dropdown-button - [nylas-event-location] The dropdown button\n * @part nel__dropdown-content - [nylas-event-location] The dropdown content\n * @part nmbn - [nylas-min-booking-notice] The minimum booking notice container\n * @part nmbn__number-dropdown - [nylas-min-booking-notice] The number dropdown container\n * @part nmbn__number-dropdown-button - [nylas-min-booking-notice] The number dropdown button\n * @part nmbn__number-dropdown-content -[nylas-min-booking-notice] The number dropdown content\n * @part nmbn__period-dropdown - [nylas-min-booking-notice] The period dropdown container\n * @part nmbn__period-dropdown-button - [nylas-min-booking-notice] The period dropdown button\n * @part nmbn__period-dropdown-content - [nylas-min-booking-notice] The period dropdown content\n * @part nmcn - [nylas-min-cancellation-notice] The minimum cancellation notice container\n * @part nmcn__number-dropdown - [nylas-min-cancellation-notice] The number dropdown container\n * @part nmcn__number-dropdown-button - [nylas-min-cancellation-notice] The number dropdown button\n * @part nmcn__number-dropdown-content - [nylas-min-cancellation-notice] The number dropdown content\n * @part nmcn__period-dropdown - [nylas-min-cancellation-notice] The period dropdown container\n * @part nmcn__period-dropdown-button - [nylas-min-cancellation-notice] The period dropdown button\n * @part nmcn__period-dropdown-content - [nylas-min-cancellation-notice] The period dropdown content\n * @part ncpolicy - [nylas-cancellation-policy] The cancellation policy container\n * @part ncpolicy__textarea - [nylas-cancellation-policy] The cancellation policy textarea\n * @part nti - [nylas-timeslot-interval] The timeslot interval container\n * @part nti__header - [nylas-timeslot-interval] The header of the timeslot interval picker\n * @part nti__input-label - [nylas-timeslot-interval] The input label of the timeslot interval picker\n * @part nti__dropdown - [nylas-timeslot-interval] The dropdown container\n * @part nti__dropdown-button - [nylas-timeslot-interval] The dropdown button\n * @part nti__dropdown-content - [nylas-timeslot-interval] The dropdown content\n * @part ncbs - [nylas-customize-booking-settings] The booking calendar picker container\n * @part ncbs__header - [nylas-customize-booking-settings] The header of the booking calendar picker\n * @part ncbs__settings - [nylas-customize-booking-settings] The settings container\n * @part ncbs__settings-div - [nylas-customize-booking-settings] The div inside the settings container that contains the checkbox and tooltip for each setting\n * @part ncbs__additional_guests - [nylas-customize-booking-settings] The additional guests setting\n * @part ncbs__cancellation_options - [nylas-customize-booking-settings] The cancellation options setting\n * @part ncbs__rescheduling_options - [nylas-customize-booking-settings] The rescheduling options setting\n */\n@Component({\n tag: 'nylas-editor-tabs',\n styleUrl: 'nylas-editor-tabs.scss',\n scoped: true,\n})\nexport class NylasEditorTabs {\n /**\n * The form reference to access the form data.\n */\n private formRef!: HTMLFormElement;\n /**\n * The host element.\n */\n @Element() host!: HTMLNylasEditorTabsElement;\n /**\n * The list of calendars to use in the editor when configuring availability.\n */\n @Prop() calendars?: Calendar[];\n /**\n * The selected configuration to use in the editor when editing an existing configuration or creating a new one.\n */\n @Prop() selectedConfiguration?: Configuration;\n\n /**\n * The current logged in user.\n */\n @Prop() currentUser?: User;\n /**\n * The scheduler preview link to use when the user clicks on the preview button.\n * You can use a placeholder `{config.id}` to replace the configuration id anywhere in the link.\n */\n @Prop({ attribute: 'scheduler-preview-link' }) schedulerPreviewLink: string = '';\n /**\n * The mode of the editor.\n * - `app`: The editor is used as a standalone app.\n * - `composable`: The editor is used as a composable component.\n */\n @Prop() mode?: 'app' | 'composable' = 'app';\n /**\n * The action to perform in the editor.\n * - `create`: Create a new configuration.\n * - `edit`: Edit an existing configuration.\n */\n @State() action: 'create' | 'edit' = 'create';\n /**\n * The active tab in the editor.\n */\n @State() activeTab: string = 'eventInfo';\n /**\n * The loading state of the editor.\n */\n @State() isLoading: boolean = false;\n /**\n * The unsaved changes state of the editor.\n */\n @State() hasUnsavedChanges: boolean = false;\n /**\n * The changes saved state of the editor.\n */\n @State() changesSaved: boolean = false;\n /**\n * The form state of the editor.\n */\n @State() formState: Partial<{\n title: string;\n description: string;\n duration: string;\n availability?: {\n timezone: string;\n openHours?: OpenHours[];\n };\n calendarIds: string[];\n participants?: any[];\n bookingCalendar?: string;\n location?: string;\n bookingType?: string;\n buffer?: { before: number; after: number };\n cancellationPolicy?: string;\n availableDaysInFuture?: number;\n minCancellationNotice?: number;\n minBookingNotice?: number;\n timeslotInterval?: {\n interval: number;\n roundTo?: number;\n };\n additionalGuestsHidden?: boolean;\n hideCancellationOptions?: boolean;\n hideReschedulingOptions?: boolean;\n }> = {};\n /**\n * The error state of the editor.\n */\n @State() error?: string = '';\n /**\n * Event emitted when the configuration is changed. This fires for both create and edit actions.\n */\n @Event() schedulerConfigChanged!: EventEmitter<SchedulerEventDetail>;\n /**\n * Event emitted when the user clicks the cancel button.\n */\n @Event() cancelButtonClick!: EventEmitter<void>;\n /**\n * Event emitted on form submission.\n */\n @Event() formSubmitted!: EventEmitter<void>;\n /**\n * Event emitted when the user clicks the preview button.\n */\n @Event() previewButtonClicked!: EventEmitter<HTMLNylasEditorTabsElement>;\n\n @Watch('selectedConfiguration')\n configChangedHandler(newConfig: Configuration) {\n debug('[nylas-editor-tabs]', 'configChangedHandler', newConfig, this.selectedConfiguration);\n this.formState = {\n ...this.getFormStateFromConfig(newConfig),\n };\n\n if (newConfig.id) {\n this.action = 'edit';\n } else {\n this.action = 'create';\n }\n }\n\n connectedCallback() {\n debug('[nylas-editor-tabs]', 'connectedCallback');\n }\n\n componentWillLoad() {\n debug('[nylas-editor-tabs]', 'componentWillLoad');\n this.formState = this.getFormStateFromConfig(this.selectedConfiguration);\n }\n\n componentDidLoad() {\n debug('[nylas-editor-tabs]', 'componentDidLoad');\n }\n\n disconnectedCallback() {\n debug('[nylas-editor-tabs]', 'disconnectedCallback');\n }\n\n @Listen('valueChanged')\n handleValueChanged(event: CustomEvent) {\n debug('[nylas-editor-tabs]', 'handleValueChanged', event);\n const { name, value } = event.detail;\n this.formState = { ...this.formState, [name]: value };\n this.hasUnsavedChanges = true;\n this.error = '';\n }\n\n getFormStateFromConfig(config?: Configuration) {\n const organizerParticipant = config?.participants?.find(p => p.is_organizer);\n return {\n title: config?.event_booking?.title ?? '',\n description: config?.event_booking?.description ?? '',\n duration: config?.availability?.duration_minutes?.toString() ?? '30',\n availability: {\n timezone: config?.event_booking?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone,\n openHours: organizerParticipant?.availability?.open_hours,\n },\n calendarIds: organizerParticipant?.availability?.calendar_ids ?? [],\n participants: config?.participants ?? [],\n bookingCalendar: organizerParticipant?.booking?.calendar_id ?? organizerParticipant?.email ?? '',\n location: config?.event_booking?.location ?? '',\n bookingType: config?.event_booking?.booking_type ?? 'booking',\n buffer: config?.availability?.availability_rules?.buffer ?? { before: 0, after: 0 },\n cancellationPolicy: config?.scheduler?.cancellation_policy ?? '',\n availableDaysInFuture: config?.scheduler?.available_days_in_future ?? 30,\n minCancellationNotice: config?.scheduler?.min_cancellation_notice ?? 0,\n minBookingNotice: config?.scheduler?.min_booking_notice ?? 60,\n timeslotInterval: {\n interval: config?.availability?.interval_minutes ?? config?.availability?.duration_minutes ?? 10,\n roundTo: config?.availability?.round_to,\n },\n additionalGuestsHidden: config?.scheduler?.additional_guests_hidden ?? false,\n hideCancellationOptions: config?.scheduler?.hide_cancellation_options ?? false,\n hideReschedulingOptions: config?.scheduler?.hide_rescheduling_options ?? false,\n };\n }\n\n updateFormState() {\n const formData = new FormData(this.formRef);\n formData.forEach((value, key) => {\n switch (key) {\n case 'title':\n this.formState.title = value.toString();\n break;\n case 'description':\n this.formState.description = value.toString();\n break;\n case 'duration':\n this.formState.duration = value.toString();\n break;\n case 'availability':\n this.formState.availability = JSON.parse(value.toString());\n break;\n case 'participants':\n this.formState.participants = JSON.parse(value.toString());\n break;\n case 'calendars':\n this.formState.calendarIds = value.toString().split(',');\n break;\n case 'booking-calendar':\n this.formState.bookingCalendar = value.toString();\n break;\n case 'location':\n this.formState.location = value.toString();\n break;\n case 'booking-type':\n this.formState.bookingType = value.toString();\n break;\n case 'buffer-time':\n this.formState.buffer = JSON.parse(value.toString());\n break;\n case 'limit-future-bookings':\n this.formState.availableDaysInFuture = parseInt(value.toString());\n break;\n case 'min-cancellation-notice':\n this.formState.minCancellationNotice = parseInt(value.toString());\n break;\n case 'min-booking-notice':\n this.formState.minBookingNotice = parseInt(value.toString());\n break;\n case 'cancellation-policy':\n this.formState.cancellationPolicy = value.toString();\n break;\n case 'timeslot-interval':\n this.formState.timeslotInterval = JSON.parse(value.toString());\n break;\n case 'customize-booking-settings':\n const settings = JSON.parse(value.toString());\n this.formState.additionalGuestsHidden = settings.additionalGuestsHidden;\n this.formState.hideCancellationOptions = settings.hideCancellationOptions;\n this.formState.hideReschedulingOptions = settings.hideReschedulingOptions;\n break;\n }\n });\n\n this.formState = { ...this.formState };\n return this.formState;\n }\n\n setActiveTab(e: Event, tabName: string) {\n e.preventDefault();\n this.updateFormState();\n this.activeTab = tabName;\n }\n\n setError = (error: Error) => {\n this.error = error.message;\n };\n\n formSubmissionHandler = async (event: Event) => {\n event.preventDefault();\n this.formSubmitted.emit();\n const valid = this.formRef.checkValidity();\n if (!valid) {\n return;\n }\n this.isLoading = true;\n this.hasUnsavedChanges = false;\n const formState = this.updateFormState();\n const {\n title,\n description,\n duration,\n availability,\n calendarIds,\n bookingCalendar,\n location,\n bookingType,\n buffer,\n availableDaysInFuture,\n minCancellationNotice,\n minBookingNotice,\n cancellationPolicy,\n timeslotInterval,\n additionalGuestsHidden,\n hideCancellationOptions,\n hideReschedulingOptions,\n } = formState;\n const organizer = this.selectedConfiguration?.participants?.find(p => p.is_organizer);\n const durationMinutes = duration ? parseInt(duration) : 30;\n const configObject: Partial<Configuration> = {\n ...(this.selectedConfiguration?.id && { id: this.selectedConfiguration.id }),\n version: this.selectedConfiguration?.version ?? '1.0.0',\n availability: {\n duration_minutes: durationMinutes,\n interval_minutes: timeslotInterval?.interval ?? durationMinutes,\n round_to: timeslotInterval?.roundTo,\n availability_rules: {\n availability_method: this.selectedConfiguration?.availability?.availability_rules?.availability_method ?? 'collective',\n buffer: buffer || { before: 0, after: 0 },\n default_open_hours: this.selectedConfiguration?.availability?.availability_rules?.default_open_hours ?? DEFAULT_OPEN_HOURS,\n round_robin_group_id: this.selectedConfiguration?.availability?.availability_rules?.round_robin_group_id ?? '',\n },\n },\n participants: [\n {\n name: organizer?.name ?? organizer?.email ?? this.currentUser?.name ?? this.currentUser?.email ?? '',\n email: organizer?.email ?? this.currentUser?.email ?? '',\n is_organizer: true,\n availability: {\n calendar_ids: calendarIds?.length ? calendarIds : ['primary'],\n open_hours: availability?.openHours ?? [],\n },\n booking: {\n calendar_id: bookingCalendar && bookingCalendar !== '' ? bookingCalendar : 'primary',\n },\n },\n ],\n event_booking: {\n title: title?.toString() ?? '',\n description: description?.toString() ?? '',\n location: location?.toString() ?? '',\n booking_type: (bookingType?.toString() as BookingType) ?? 'booking',\n timezone: availability?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone,\n },\n scheduler: {\n cancellation_policy: cancellationPolicy ?? '',\n available_days_in_future: availableDaysInFuture ?? 30,\n min_cancellation_notice: minCancellationNotice ?? 0,\n min_booking_notice: minBookingNotice ?? 60,\n additional_guests_hidden: additionalGuestsHidden ?? false,\n hide_cancellation_options: hideCancellationOptions ?? false,\n hide_rescheduling_options: hideReschedulingOptions ?? false,\n },\n };\n\n const configObjectWithDeveloperSettings = mergeDeep(configObject, this.selectedConfiguration);\n\n const finalConfig = this.action === 'create' ? configObjectWithDeveloperSettings : configObject;\n\n const resetLoadingState = (_e: CustomEvent) => {\n this.isLoading = false;\n this.changesSaved = true;\n setTimeout(() => {\n this.changesSaved = false;\n }, 5000);\n };\n this.schedulerConfigChanged.emit({ config: finalConfig, resetLoadingState, setError: this.setError, action: this.action });\n };\n\n @RegisterComponent<NylasEditorTabs, NylasSchedulerConfigConnector, Exclude<NylasSchedulerEditor['stores'], undefined>>({\n name: 'nylas-editor-tabs',\n stateToProps: new Map([\n ['schedulerConfig.calendars', 'calendars'],\n ['schedulerConfig.selectedConfiguration', 'selectedConfiguration'],\n ['schedulerConfig.currentUser', 'currentUser'],\n ]),\n eventToProps: {\n schedulerConfigChanged: async (event: CustomEvent<SchedulerEventDetail>, nylasSchedulerConfigConnector: NylasSchedulerConfigConnector) => {\n const { resetLoadingState, setError, action, config } = event.detail;\n const checkForErrors = (response: DataResponseReturnType) => {\n const [data, error] = response;\n if (!data && error && setError) {\n setError(error as Error);\n }\n if (resetLoadingState) {\n resetLoadingState(event);\n }\n };\n\n // If we have an ID, we are updating an existing configuration\n if (action === 'edit') {\n const response = await nylasSchedulerConfigConnector.schedulerConfig.updateConfiguration(config);\n checkForErrors(response);\n } else {\n const response = await nylasSchedulerConfigConnector.schedulerConfig.createConfiguration(config);\n checkForErrors(response);\n }\n },\n cancelButtonClick: async (_, nylasSchedulerConfigConnector) => {\n nylasSchedulerConfigConnector.schedulerConfigStore.state.action = null;\n },\n previewButtonClicked: async (_, nylasSchedulerConfigConnector) => {\n debug('[nylas-editor-tabs]', 'previewButtonClicked', nylasSchedulerConfigConnector);\n },\n formSubmitted: async (_, nylasSchedulerConfigConnector) => {\n debug('[nylas-editor-tabs]', 'formSubmitted', nylasSchedulerConfigConnector);\n },\n },\n localPropsToProp: new Map([['schedulerPreviewLink', 'schedulerPreviewLink']]),\n fireRegisterEvent: true,\n })\n render() {\n debug('[nylas-editor-tabs]', 'render', this.formState);\n return (\n <Host>\n <form onSubmit={this.formSubmissionHandler} class=\"scheduler-editor\" ref={el => (this.formRef = el as HTMLFormElement)} noValidate>\n {this.mode === 'app' ? (\n <div class=\"form-contents\">\n <div class=\"tabs\">\n <button class={{ tab: true, active: this.activeTab == 'eventInfo' }} onClick={e => this.setActiveTab(e, 'eventInfo')}>\n <calendar-info-icon width=\"16\" height=\"16\" />\n Event Info\n </button>\n <button class={{ tab: true, active: this.activeTab == 'availability' }} onClick={e => this.setActiveTab(e, 'availability')}>\n <calendar-patterns-icon width=\"16\" height=\"16\" />\n Availability\n </button>\n <button class={{ tab: true, active: this.activeTab == 'bookingOptions' }} onClick={e => this.setActiveTab(e, 'bookingOptions')}>\n <flow-icon width=\"16\" height=\"16\" />\n Booking Options\n </button>\n </div>\n <div class=\"tab-content\">\n <TabContents formState={this.formState} activeTab={this.activeTab} calendars={this.calendars} id={this.selectedConfiguration?.id ?? 'new'} />\n </div>\n </div>\n ) : (\n <slot></slot>\n )}\n\n <div class=\"footer\">\n <div class=\"preview\">\n {this.schedulerPreviewLink !== '' && this.action === 'edit' && (\n <button-component\n type=\"button\"\n disabled={this.isLoading}\n clickHandler={event => {\n event.preventDefault();\n const previewEvent = this.previewButtonClicked.emit(this.host);\n if (!previewEvent.defaultPrevented) {\n window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');\n }\n }}\n variant={'basic'}\n >\n Preview\n </button-component>\n )}\n </div>\n <div class=\"buttons\">\n <p\n class={{\n 'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,\n 'saved-changes': this.changesSaved,\n 'error': this.error !== '',\n 'error-full-width': this.error !== '' && this.action === 'create',\n }}\n >\n {this.error !== '' ? this.error : ''}\n {this.error == '' && this.hasUnsavedChanges && !this.changesSaved ? 'Unsaved changes' : this.error == '' && this.changesSaved ? 'Changes saved!' : ''}\n </p>\n <button-component\n type=\"button\"\n disabled={this.isLoading}\n clickHandler={event => {\n event.preventDefault();\n this.cancelButtonClick.emit();\n this.error = '';\n }}\n variant={'basic'}\n >\n Cancel\n </button-component>\n <button-component type=\"submit\" disabled={this.isLoading}>\n {this.isLoading ? (\n <span>\n Saving\n <loading-icon />{' '}\n </span>\n ) : this.action == 'create' ? (\n 'Create'\n ) : (\n 'Save changes'\n )}\n </button-component>\n </div>\n </div>\n </form>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"nylas-editor-tabs.entry.cjs.js","mappings":";;;;;;;;;;;SASwB,WAAW,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAoB;IAC3F,QAAQ,SAAS;QACf,KAAK,WAAW;YACd,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC;YACnC,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC;YAC/C,MAAM,aAAa,GAAG,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YACnD,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;YAEpC,QACEA,iBAAK,GAAG,EAAE,EAAE;gBACVA;oBACEA,iBAAK,IAAI,EAAC,QAAQ;wBAChBA,+BAAmB,IAAI,EAAC,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAC,wCAAwC,GAAG;wBAC/GA,kCACE,IAAI,EAAC,UAAU,EACf,oBAAoB,EAAE,aAAa,EACnC,WAAW,EAAC,8IAA8I,GAC1J;wBACFA,kCAAsB,IAAI,EAAC,UAAU,EAAC,aAAa,EAAE,QAAQ,EAAE,WA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AAE,sBAAsB,EAAE,6BAA6B,CAAC,CAAC;aACrF;YACD,aAAa,EAAE,OAAO,CAAC,EAAE,6BAA6B;gBACpDA,WAAK,CAAC,qBAAqB,EAAE,eAAe,EAAE,6BAA6B,CAAC,CAAC;aAC9E;SACF;QACD,gBAAgB,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAC,CAAC;QAC7E,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;6CAkGD;;;;;","names":["h","DEFAULT_OPEN_HOURS","mergeDeep","debug","Host","parsePreviewLink","RegisterComponent"],"sources":["src/components/scheduler-editor/nylas-editor-tabs/tab-contents.tsx","src/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.scss?tag=nylas-editor-tabs&encapsulation=scoped","src/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.tsx"],"sourcesContent":["import { h } from '@stencil/core';\n\nexport type TabContentsProps = {\n id: string;\n formState: any;\n activeTab: string;\n calendars?: any[];\n};\n\nexport default function TabContents({ id, formState, activeTab, calendars }: TabContentsProps) {\n switch (activeTab) {\n case 'eventInfo':\n const eventTitle = formState.title;\n const eventDescription = formState.description;\n const eventDuration = parseInt(formState.duration);\n const location = formState.location;\n\n return (\n <div key={id}>\n <nylas-event-info>\n <div slot=\"inputs\">\n <nylas-event-title name=\"title\" eventTitle={eventTitle} exportparts=\"net, net__title, net__dropdown-content\" />\n <nylas-event-duration\n name=\"duration\"\n eventDurationMinutes={eventDuration}\n exportparts=\"ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content\"\n />\n <nylas-event-location name=\"location\" eventLocation={location} exportparts=\"nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content\" />\n <nylas-event-description name=\"description\" eventDescription={eventDescription} exportparts=\"nedesc, nedesc__textarea\" />\n </div>\n </nylas-event-info>\n </div>\n );\n case 'availability':\n const openHours = formState.availability.openHours;\n const timezone = formState.availability.timezone ? formState.availability.timezone : Intl.DateTimeFormat().resolvedOptions().timeZone;\n const organizer = formState.participants?.find(p => p.is_organizer);\n const organizerEmail = organizer?.email ?? 'primary';\n const selectedCalendars = formState.calendarIds.length > 0 ? formState.calendarIds : [organizerEmail];\n const bookingCalendar = formState.bookingCalendar == 'primary' ? organizerEmail : formState.bookingCalendar;\n return (\n <div key={id}>\n <nylas-booking-calendar-picker\n name=\"booking-calendar\"\n calendars={calendars ?? []}\n defaultBookingCalendar={bookingCalendar}\n exportparts={'nbcp, nbcp__header, nbcp__input-label, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content'}\n />\n <nylas-calendar-picker\n name=\"calendars\"\n calendars={calendars ?? []}\n defaultSelectedCalendars={selectedCalendars}\n exportparts={'ncp ncp__header, ncp__dropdown, ncp__dropdown-button, ncp__dropdown-content'}\n />\n <nylas-availability-picker\n name=\"availability\"\n openHours={openHours}\n defaultTimezone={timezone}\n exportparts={\n 'nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times'\n }\n />\n </div>\n );\n case 'bookingOptions':\n return (\n <div key={id}>\n <nylas-buffer-time\n name=\"buffer-time\"\n buffer={formState.buffer}\n exportparts={\n 'nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview'\n }\n />\n {/* <nylas-custom-booking-flow\n name=\"booking-type\"\n bookingType={formState.bookingType}\n exportparts={'ncbf, ncbf__header, ncbf__dropdown, ncbf__dropdown-button, ncbf__dropdown-content'}\n /> */}\n <nylas-event-limits>\n <div slot=\"inputs\">\n <nylas-min-booking-notice\n name=\"min-booking-notice\"\n minBookingNotice={formState.minBookingNotice}\n exportparts=\"nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content\"\n />\n <nylas-limit-future-bookings\n name=\"limit-future-bookings\"\n availableDaysInFuture={formState.availableDaysInFuture}\n exportparts=\"nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content\"\n />\n <nylas-min-cancellation-notice\n name=\"min-cancellation-notice\"\n minCancellationNotice={formState.minCancellationNotice}\n exportparts=\"nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content\"\n />\n <nylas-cancellation-policy name=\"cancellation-policy\" cancellationPolicy={formState.cancellationPolicy} exportparts=\"ncpolicy, ncpolicy__textarea\" />\n </div>\n </nylas-event-limits>\n <nylas-timeslot-interval\n name=\"timeslot-interval\"\n eventDurationMinutes={parseInt(formState.duration)}\n exportparts=\"nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content\"\n />\n <nylas-customize-booking-settings\n name=\"customize-booking-settings\"\n exportparts=\"ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options\"\n />\n </div>\n );\n case 'participants':\n return (\n <div key={id}>\n <nylas-additional-participants\n name=\"participants\"\n eventParticipants={formState.participants}\n exportparts=\"nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant\"\n />\n </div>\n );\n }\n}\n","@import '../../../common/styles/variables.scss';\n@import '../../../common/mixins/buttons.scss';\n\n:host {\n display: block;\n @include default-css-variables;\n}\n\n.scheduler-editor {\n display: flex;\n flex-direction: column;\n .form-contents {\n height: 554px;\n display: grid;\n grid-template-columns: minmax(224px, 25%) 1fr;\n @media #{$mobile} {\n display: table-column-group;\n height: auto;\n }\n .tabs {\n display: flex;\n flex-direction: column;\n border-right: 1px solid var(--nylas-base-200);\n background-color: var(--nylas-base-25);\n .tab {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n color: var(--nylas-base-900);\n background: var(--nylas-base-0);\n border: none;\n height: 56px;\n font-family: var(--nylas-font-family);\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n cursor: pointer;\n &:not(:first-of-type) {\n margin-top: 0.25rem;\n }\n &.active {\n font-weight: 600;\n background: var(--nylas-base-0);\n color: var(--nylas-primary);\n border-left: 4px solid var(--nylas-primary);\n box-shadow: 0px 1px 2px 0px #0000000f;\n box-shadow: 0px 1px 3px 0px #0000001a;\n }\n }\n }\n .tab-content {\n max-width: 692px;\n overflow-y: auto;\n nylas-event-info,\n nylas-event-limits {\n width: inherit;\n div[slot='inputs'] {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n }\n }\n }\n}\n\n.footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 1rem;\n min-height: 80px;\n padding: 0 1rem;\n border-top: 1px solid var(--nylas-base-200);\n @media #{$mobile} {\n flex-direction: column;\n height: auto;\n }\n .preview {\n @media #{$mobile} {\n margin-top: 1rem;\n width: 100%;\n }\n }\n .buttons {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n justify-self: flex-end;\n gap: 1rem;\n @media #{$mobile} {\n flex-direction: column-reverse;\n width: 100%;\n }\n p {\n max-width: 524px;\n &.unsaved-changes {\n color: var(--nylas-base-600);\n }\n &.saved-changes {\n color: var(--nylas-success);\n }\n &.error {\n color: var(--nylas-error);\n }\n &.error-full-width {\n max-width: 660px;\n }\n }\n\n button-component {\n @media #{$mobile} {\n width: 100%;\n }\n }\n button {\n @include primary-button;\n width: 148px;\n span {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n }\n }\n }\n}\n","import { RegisterComponent } from '@/common/register-component';\nimport { NylasSchedulerConfigConnector } from '@/connector/nylas-scheduler-config-connector';\nimport { debug, mergeDeep, parsePreviewLink } from '@/utils/utils';\nimport { BookingType, Calendar, Configuration, OpenHours } from '@nylas/core';\nimport { Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h } from '@stencil/core';\nimport { NylasSchedulerEditor } from '../nylas-scheduler-editor/nylas-scheduler-editor';\nimport TabContents from './tab-contents';\nimport { User } from '@/common/nylas-api-request';\nimport { DEFAULT_OPEN_HOURS } from '@/common/constants';\nimport { DataResponseReturnType } from '@/common/types';\n\ntype SchedulerEventDetail = {\n config: Partial<Configuration>;\n action: 'create' | 'edit';\n resetLoadingState?: (e: CustomEvent) => void;\n setError?: (error: Error) => void;\n};\n\n/**\n * The `nylas-editor-tabs` component is a UI component that displays the editor tabs for the scheduler editor.\n * @part nap__title - [nylas-additional-participants] The title of the component.\n * @part nap__subtitle - [nylas-additional-participants] The subtitle of the component.\n * @part nap__content - [nylas-additional-participants] The content of the component.\n * @part nap__input - [nylas-additional-participants] The input of the component.\n * @part nap__remove-participant - [nylas-additional-participants] The remove participant button of the component.\n * @part nap__add-participant - [nylas-additional-participants] The add participant button of the component.\n * @part nap__header - [nylas-availability-picker] The header of the availability picker\n * @part nap__select-timezone - [nylas-availability-picker] The timezone selection container\n * @part nap__select-timezone-button -[nylas-availability-picker] The timezone selection button\n * @part nap__select-timezone-dropdown-content -[nylas-availability-picker] The timezone selection dropdown content\n * @part nap__availability - [nylas-availability-picker] The availability container\n * @part nap__day - [nylas-availability-picker] The day container\n * @part nap__time-ranges - [nylas-availability-picker] The time ranges container\n * @part nap__time-range - [nylas-availability-picker] The time range container\n * @part nap__add-time-range - [nylas-availability-picker] The add time range button\n * @part nap__time-picker-container -[nylas-availability-picker] The time picker container\n * @part nap__time-picker-input - [nylas-availability-picker] The time picker input\n * @part nap__time-picker-times - [nylas-availability-picker] The time picker times\n * @part nbcp - [nylas-booking-calendar-picker] The booking calendar picker container\n * @part nbcp__header - [nylas-booking-calendar-picker] The header of the booking calendar picker\n * @part nbcp__input-label - [nylas-booking-calendar-picker] The input label of the booking calendar picker\n * @part nbcp__dropdown - [nylas-booking-calendar-picker] The dropdown container\n * @part nbcp__dropdown-button - [nylas-booking-calendar-picker] The dropdown button\n * @part nbcp__dropdown-content - [nylas-booking-calendar-picker] The dropdown content\n * @part nbt - [nylas-buffer-time] The buffer time container\n * @part nbt__header - [nylas-buffer-time] The header of the buffer time\n * @part nbt__body - [nylas-buffer-time] The body of the buffer time\n * @part nbt__dropdown-before - [nylas-buffer-time] The before buffer dropdown container\n * @part nbt__dropdown-button-before - [nylas-buffer-time] The before buffer dropdown button\n * @part nbt__dropdown-content-before - [nylas-buffer-time] The before buffer dropdown content\n * @part nbt__dropdown-after - [nylas-buffer-time] The after buffer dropdown container\n * @part nbt__dropdown-button-after - [nylas-buffer-time] The after buffer dropdown button\n * @part nbt__dropdown-content-after - [nylas-buffer-time] The after buffer dropdown content\n * @part nbt__preview - [nylas-buffer-time] The buffer time preview\n * @part ncp - [nylas-calendar-picker] The calendar picker container\n * @part ncp__header - [nylas-calendar-picker] The header of the calendar picker\n * @part ncp__dropdown - [nylas-calendar-picker] The dropdown container\n * @part ncp__dropdown-button - [nylas-calendar-picker] The dropdown button\n * @part ncp__dropdown-content - [nylas-calendar-picker] The dropdown content\n * @part ncbf - [nylas-custom-booking-flow] The custom booking flow container\n * @part ncbf__header - [nylas-custom-booking-flow] The header of the custom booking flow\n * @part ncbf__dropdown - [nylas-custom-booking-flow] The dropdown container\n * @part ncbf__dropdown-button - [nylas-custom-booking-flow] The dropdown button\n * @part ncbf__dropdown-content - [nylas-custom-booking-flow] The dropdown content\n * @part nedesc - [nylas-event-description] The event description container\n * @part nedesc__textarea - [nylas-event-description] The event description textarea\n * @part ned - [nylas-event-duration] The event duration container\n * @part ned__dropdown - [nylas-event-duration] The dropdown container for the duration increment\n * @part ned__dropdown-button - [nylas-event-duration] The dropdown button for the duration increment\n * @part ned__dropdown-content - [nylas-event-duration] The dropdown content for the duration increment\n * @part ned__input_dropdown - [nylas-event-duration] The input dropdown container for the duration minutes\n * @part ned__input_dropdown-input - [nylas-event-duration] The input for the duration minutes\n * @part ned__input_dropdown-content - [nylas-event-duration] The dropdown content for the input duration minutes\n * @part net - [nylas-event-title] The event title container\n * @part net__title - [nylas-event-title] The event title input\n * @part net__dropdown-content - [nylas-event-title] The token options container\n * @part nlfb - [nylas-limit-future-bookings] The limit future bookings container\n * @part nlfb__number-dropdown - [nylas-limit-future-bookings] The number dropdown container\n * @part nlfb__number-dropdown-button - [nylas-limit-future-bookings] The number dropdown button\n * @part nlfb__number-dropdown-content - [nylas-limit-future-bookings] The number dropdown content\n * @part nlfb__period-dropdown - [nylas-limit-future-bookings] The period dropdown container\n * @part nlfb__period-dropdown-button - [nylas-limit-future-bookings] The period dropdown button\n * @part nlfb__period-dropdown-content - [nylas-limit-future-bookings] The period dropdown content\n * @part nel - [nylas-event-location] The event location container\n * @part nel__location - [nylas-event-location] The event location input\n * @part nel__dropdown - [nylas-event-location] The dropdown container\n * @part nel__dropdown-button - [nylas-event-location] The dropdown button\n * @part nel__dropdown-content - [nylas-event-location] The dropdown content\n * @part nmbn - [nylas-min-booking-notice] The minimum booking notice container\n * @part nmbn__number-dropdown - [nylas-min-booking-notice] The number dropdown container\n * @part nmbn__number-dropdown-button - [nylas-min-booking-notice] The number dropdown button\n * @part nmbn__number-dropdown-content -[nylas-min-booking-notice] The number dropdown content\n * @part nmbn__period-dropdown - [nylas-min-booking-notice] The period dropdown container\n * @part nmbn__period-dropdown-button - [nylas-min-booking-notice] The period dropdown button\n * @part nmbn__period-dropdown-content - [nylas-min-booking-notice] The period dropdown content\n * @part nmcn - [nylas-min-cancellation-notice] The minimum cancellation notice container\n * @part nmcn__number-dropdown - [nylas-min-cancellation-notice] The number dropdown container\n * @part nmcn__number-dropdown-button - [nylas-min-cancellation-notice] The number dropdown button\n * @part nmcn__number-dropdown-content - [nylas-min-cancellation-notice] The number dropdown content\n * @part nmcn__period-dropdown - [nylas-min-cancellation-notice] The period dropdown container\n * @part nmcn__period-dropdown-button - [nylas-min-cancellation-notice] The period dropdown button\n * @part nmcn__period-dropdown-content - [nylas-min-cancellation-notice] The period dropdown content\n * @part ncpolicy - [nylas-cancellation-policy] The cancellation policy container\n * @part ncpolicy__textarea - [nylas-cancellation-policy] The cancellation policy textarea\n * @part nti - [nylas-timeslot-interval] The timeslot interval container\n * @part nti__header - [nylas-timeslot-interval] The header of the timeslot interval picker\n * @part nti__input-label - [nylas-timeslot-interval] The input label of the timeslot interval picker\n * @part nti__dropdown - [nylas-timeslot-interval] The dropdown container\n * @part nti__dropdown-button - [nylas-timeslot-interval] The dropdown button\n * @part nti__dropdown-content - [nylas-timeslot-interval] The dropdown content\n * @part ncbs - [nylas-customize-booking-settings] The booking calendar picker container\n * @part ncbs__header - [nylas-customize-booking-settings] The header of the booking calendar picker\n * @part ncbs__settings - [nylas-customize-booking-settings] The settings container\n * @part ncbs__settings-div - [nylas-customize-booking-settings] The div inside the settings container that contains the checkbox and tooltip for each setting\n * @part ncbs__additional_guests - [nylas-customize-booking-settings] The additional guests setting\n * @part ncbs__cancellation_options - [nylas-customize-booking-settings] The cancellation options setting\n * @part ncbs__rescheduling_options - [nylas-customize-booking-settings] The rescheduling options setting\n */\n@Component({\n tag: 'nylas-editor-tabs',\n styleUrl: 'nylas-editor-tabs.scss',\n scoped: true,\n})\nexport class NylasEditorTabs {\n /**\n * The form reference to access the form data.\n */\n private formRef!: HTMLFormElement;\n /**\n * The host element.\n */\n @Element() host!: HTMLNylasEditorTabsElement;\n /**\n * The list of calendars to use in the editor when configuring availability.\n */\n @Prop() calendars?: Calendar[];\n /**\n * The selected configuration to use in the editor when editing an existing configuration or creating a new one.\n */\n @Prop() selectedConfiguration?: Configuration;\n\n /**\n * The current logged in user.\n */\n @Prop() currentUser?: User;\n /**\n * The scheduler preview link to use when the user clicks on the preview button.\n * You can use a placeholder `{config.id}` to replace the configuration id anywhere in the link.\n */\n @Prop({ attribute: 'scheduler-preview-link' }) schedulerPreviewLink: string = '';\n /**\n * The mode of the editor.\n * - `app`: The editor is used as a standalone app.\n * - `composable`: The editor is used as a composable component.\n */\n @Prop() mode?: 'app' | 'composable' = 'app';\n /**\n * The action to perform in the editor.\n * - `create`: Create a new configuration.\n * - `edit`: Edit an existing configuration.\n */\n @State() action: 'create' | 'edit' = 'create';\n /**\n * The active tab in the editor.\n */\n @State() activeTab: string = 'eventInfo';\n /**\n * The loading state of the editor.\n */\n @State() isLoading: boolean = false;\n /**\n * The unsaved changes state of the editor.\n */\n @State() hasUnsavedChanges: boolean = false;\n /**\n * The changes saved state of the editor.\n */\n @State() changesSaved: boolean = false;\n /**\n * The form state of the editor.\n */\n @State() formState: Partial<{\n title: string;\n description: string;\n duration: string;\n availability?: {\n timezone: string;\n openHours?: OpenHours[];\n };\n calendarIds: string[];\n participants?: any[];\n bookingCalendar?: string;\n location?: string;\n bookingType?: string;\n buffer?: { before: number; after: number };\n cancellationPolicy?: string;\n availableDaysInFuture?: number;\n minCancellationNotice?: number;\n minBookingNotice?: number;\n timeslotInterval?: {\n interval: number;\n roundTo?: number;\n };\n additionalGuestsHidden?: boolean;\n hideCancellationOptions?: boolean;\n hideReschedulingOptions?: boolean;\n }> = {};\n /**\n * The error state of the editor.\n */\n @State() error?: string = '';\n /**\n * Event emitted when the configuration is changed. This fires for both create and edit actions.\n */\n @Event() schedulerConfigChanged!: EventEmitter<SchedulerEventDetail>;\n /**\n * Event emitted when the user clicks the cancel button.\n */\n @Event() cancelButtonClick!: EventEmitter<void>;\n /**\n * Event emitted on form submission.\n */\n @Event() formSubmitted!: EventEmitter<void>;\n /**\n * Event emitted when the user clicks the preview button.\n */\n @Event() previewButtonClicked!: EventEmitter<HTMLNylasEditorTabsElement>;\n\n @Watch('selectedConfiguration')\n configChangedHandler(newConfig: Configuration) {\n debug('[nylas-editor-tabs]', 'configChangedHandler', newConfig, this.selectedConfiguration);\n this.formState = {\n ...this.getFormStateFromConfig(newConfig),\n };\n\n if (newConfig.id) {\n this.action = 'edit';\n } else {\n this.action = 'create';\n }\n }\n\n connectedCallback() {\n debug('[nylas-editor-tabs]', 'connectedCallback');\n }\n\n componentWillLoad() {\n debug('[nylas-editor-tabs]', 'componentWillLoad');\n this.formState = this.getFormStateFromConfig(this.selectedConfiguration);\n }\n\n componentDidLoad() {\n debug('[nylas-editor-tabs]', 'componentDidLoad');\n }\n\n disconnectedCallback() {\n debug('[nylas-editor-tabs]', 'disconnectedCallback');\n }\n\n @Listen('valueChanged')\n handleValueChanged(event: CustomEvent) {\n debug('[nylas-editor-tabs]', 'handleValueChanged', event);\n const { name, value } = event.detail;\n this.formState = { ...this.formState, [name]: value };\n this.hasUnsavedChanges = true;\n this.error = '';\n }\n\n getFormStateFromConfig(config?: Configuration) {\n const organizerParticipant = config?.participants?.find(p => p.is_organizer);\n return {\n title: config?.event_booking?.title ?? '',\n description: config?.event_booking?.description ?? '',\n duration: config?.availability?.duration_minutes?.toString() ?? '30',\n availability: {\n timezone: config?.event_booking?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone,\n openHours: organizerParticipant?.availability?.open_hours,\n },\n calendarIds: organizerParticipant?.availability?.calendar_ids ?? [],\n participants: config?.participants ?? [],\n bookingCalendar: organizerParticipant?.booking?.calendar_id ?? organizerParticipant?.email ?? '',\n location: config?.event_booking?.location ?? '',\n bookingType: config?.event_booking?.booking_type ?? 'booking',\n buffer: config?.availability?.availability_rules?.buffer ?? { before: 0, after: 0 },\n cancellationPolicy: config?.scheduler?.cancellation_policy ?? '',\n availableDaysInFuture: config?.scheduler?.available_days_in_future ?? 30,\n minCancellationNotice: config?.scheduler?.min_cancellation_notice ?? 0,\n minBookingNotice: config?.scheduler?.min_booking_notice ?? 60,\n timeslotInterval: {\n interval: config?.availability?.interval_minutes ?? config?.availability?.duration_minutes ?? 10,\n roundTo: config?.availability?.round_to,\n },\n additionalGuestsHidden: config?.scheduler?.hide_additional_guests ?? false,\n hideCancellationOptions: config?.scheduler?.hide_cancellation_options ?? false,\n hideReschedulingOptions: config?.scheduler?.hide_rescheduling_options ?? false,\n };\n }\n\n updateFormState() {\n const formData = new FormData(this.formRef);\n formData.forEach((value, key) => {\n switch (key) {\n case 'title':\n this.formState.title = value.toString();\n break;\n case 'description':\n this.formState.description = value.toString();\n break;\n case 'duration':\n this.formState.duration = value.toString();\n break;\n case 'availability':\n this.formState.availability = JSON.parse(value.toString());\n break;\n case 'participants':\n this.formState.participants = JSON.parse(value.toString());\n break;\n case 'calendars':\n this.formState.calendarIds = value.toString().split(',');\n break;\n case 'booking-calendar':\n this.formState.bookingCalendar = value.toString();\n break;\n case 'location':\n this.formState.location = value.toString();\n break;\n case 'booking-type':\n this.formState.bookingType = value.toString();\n break;\n case 'buffer-time':\n this.formState.buffer = JSON.parse(value.toString());\n break;\n case 'limit-future-bookings':\n this.formState.availableDaysInFuture = parseInt(value.toString());\n break;\n case 'min-cancellation-notice':\n this.formState.minCancellationNotice = parseInt(value.toString());\n break;\n case 'min-booking-notice':\n this.formState.minBookingNotice = parseInt(value.toString());\n break;\n case 'cancellation-policy':\n this.formState.cancellationPolicy = value.toString();\n break;\n case 'timeslot-interval':\n this.formState.timeslotInterval = JSON.parse(value.toString());\n break;\n case 'customize-booking-settings':\n const settings = JSON.parse(value.toString());\n this.formState.additionalGuestsHidden = settings.additionalGuestsHidden;\n this.formState.hideCancellationOptions = settings.hideCancellationOptions;\n this.formState.hideReschedulingOptions = settings.hideReschedulingOptions;\n break;\n }\n });\n\n this.formState = { ...this.formState };\n return this.formState;\n }\n\n setActiveTab(e: Event, tabName: string) {\n e.preventDefault();\n this.updateFormState();\n this.activeTab = tabName;\n }\n\n setError = (error: Error) => {\n this.error = error.message;\n };\n\n formSubmissionHandler = async (event: Event) => {\n event.preventDefault();\n this.formSubmitted.emit();\n const valid = this.formRef.checkValidity();\n if (!valid) {\n return;\n }\n this.isLoading = true;\n this.hasUnsavedChanges = false;\n const formState = this.updateFormState();\n const {\n title,\n description,\n duration,\n availability,\n calendarIds,\n bookingCalendar,\n location,\n bookingType,\n buffer,\n availableDaysInFuture,\n minCancellationNotice,\n minBookingNotice,\n cancellationPolicy,\n timeslotInterval,\n additionalGuestsHidden,\n hideCancellationOptions,\n hideReschedulingOptions,\n participants,\n } = formState;\n const organizer = this.selectedConfiguration?.participants?.find(p => p.is_organizer);\n const durationMinutes = duration ? parseInt(duration) : 30;\n const configObject: Partial<Configuration> = {\n ...(this.selectedConfiguration?.id && { id: this.selectedConfiguration.id }),\n version: this.selectedConfiguration?.version ?? '1.0.0',\n availability: {\n duration_minutes: durationMinutes,\n interval_minutes: timeslotInterval?.interval ?? durationMinutes,\n round_to: timeslotInterval?.roundTo,\n availability_rules: {\n availability_method: this.selectedConfiguration?.availability?.availability_rules?.availability_method ?? 'collective',\n buffer: buffer || { before: 0, after: 0 },\n default_open_hours: this.selectedConfiguration?.availability?.availability_rules?.default_open_hours ?? DEFAULT_OPEN_HOURS,\n round_robin_group_id: this.selectedConfiguration?.availability?.availability_rules?.round_robin_group_id ?? '',\n },\n },\n participants: [\n {\n name: organizer?.name ?? organizer?.email ?? this.currentUser?.name ?? this.currentUser?.email ?? '',\n email: organizer?.email ?? this.currentUser?.email ?? '',\n is_organizer: true,\n availability: {\n calendar_ids: calendarIds?.length ? calendarIds : ['primary'],\n open_hours: availability?.openHours ?? [],\n },\n booking: {\n calendar_id: bookingCalendar && bookingCalendar !== '' ? bookingCalendar : 'primary',\n },\n },\n ...(participants ?? []),\n ],\n event_booking: {\n title: title?.toString() ?? '',\n description: description?.toString() ?? '',\n location: location?.toString() ?? '',\n booking_type: (bookingType?.toString() as BookingType) ?? 'booking',\n timezone: availability?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone,\n },\n scheduler: {\n cancellation_policy: cancellationPolicy ?? '',\n available_days_in_future: availableDaysInFuture ?? 30,\n min_cancellation_notice: minCancellationNotice ?? 0,\n min_booking_notice: minBookingNotice ?? 60,\n hide_additional_guests: additionalGuestsHidden ?? false,\n hide_cancellation_options: hideCancellationOptions ?? false,\n hide_rescheduling_options: hideReschedulingOptions ?? false,\n },\n };\n\n const configObjectWithDeveloperSettings = mergeDeep(configObject, this.selectedConfiguration);\n\n const finalConfig = this.action === 'create' ? configObjectWithDeveloperSettings : configObject;\n\n const resetLoadingState = (_e: CustomEvent) => {\n this.isLoading = false;\n this.changesSaved = true;\n setTimeout(() => {\n this.changesSaved = false;\n }, 5000);\n };\n this.schedulerConfigChanged.emit({ config: finalConfig, resetLoadingState, setError: this.setError, action: this.action });\n };\n\n @RegisterComponent<NylasEditorTabs, NylasSchedulerConfigConnector, Exclude<NylasSchedulerEditor['stores'], undefined>>({\n name: 'nylas-editor-tabs',\n stateToProps: new Map([\n ['schedulerConfig.calendars', 'calendars'],\n ['schedulerConfig.selectedConfiguration', 'selectedConfiguration'],\n ['schedulerConfig.currentUser', 'currentUser'],\n ]),\n eventToProps: {\n schedulerConfigChanged: async (event: CustomEvent<SchedulerEventDetail>, nylasSchedulerConfigConnector: NylasSchedulerConfigConnector) => {\n const { resetLoadingState, setError, action, config } = event.detail;\n const checkForErrors = (response: DataResponseReturnType) => {\n const [data, error] = response;\n if (!data && error && setError) {\n setError(error as Error);\n }\n if (resetLoadingState) {\n resetLoadingState(event);\n }\n };\n\n // If we have an ID, we are updating an existing configuration\n if (action === 'edit') {\n const response = await nylasSchedulerConfigConnector.schedulerConfig.updateConfiguration(config);\n checkForErrors(response);\n } else {\n const response = await nylasSchedulerConfigConnector.schedulerConfig.createConfiguration(config);\n checkForErrors(response);\n }\n },\n cancelButtonClick: async (_, nylasSchedulerConfigConnector) => {\n nylasSchedulerConfigConnector.schedulerConfigStore.state.action = null;\n },\n previewButtonClicked: async (_, nylasSchedulerConfigConnector) => {\n debug('[nylas-editor-tabs]', 'previewButtonClicked', nylasSchedulerConfigConnector);\n },\n formSubmitted: async (_, nylasSchedulerConfigConnector) => {\n debug('[nylas-editor-tabs]', 'formSubmitted', nylasSchedulerConfigConnector);\n },\n },\n localPropsToProp: new Map([['schedulerPreviewLink', 'schedulerPreviewLink']]),\n fireRegisterEvent: true,\n })\n render() {\n debug('[nylas-editor-tabs]', 'render', this.formState);\n // TODO: Remove this check when the feature is ready to be released\n const showParticipantsTab = localStorage.getItem('nylas') === 'Nylas Developer';\n return (\n <Host>\n <form onSubmit={this.formSubmissionHandler} class=\"scheduler-editor\" ref={el => (this.formRef = el as HTMLFormElement)} noValidate>\n {this.mode === 'app' ? (\n <div class=\"form-contents\">\n <div class=\"tabs\">\n <button class={{ tab: true, active: this.activeTab == 'eventInfo' }} onClick={e => this.setActiveTab(e, 'eventInfo')}>\n <calendar-info-icon width=\"16\" height=\"16\" />\n Event Info\n </button>\n <button class={{ tab: true, active: this.activeTab == 'availability' }} onClick={e => this.setActiveTab(e, 'availability')}>\n <calendar-patterns-icon width=\"16\" height=\"16\" />\n Availability\n </button>\n <button class={{ tab: true, active: this.activeTab == 'bookingOptions' }} onClick={e => this.setActiveTab(e, 'bookingOptions')}>\n <flow-icon width=\"16\" height=\"16\" />\n Booking Options\n </button>\n {showParticipantsTab && (\n <button class={{ tab: true, active: this.activeTab == 'participants' }} onClick={e => this.setActiveTab(e, 'participants')}>\n <people-icon width=\"16\" height=\"16\" />\n Participants\n </button>\n )}\n </div>\n <div class=\"tab-content\">\n <TabContents formState={this.formState} activeTab={this.activeTab} calendars={this.calendars} id={this.selectedConfiguration?.id ?? 'new'} />\n </div>\n </div>\n ) : (\n <slot></slot>\n )}\n\n <div class=\"footer\">\n <div class=\"preview\">\n {this.schedulerPreviewLink !== '' && this.action === 'edit' && (\n <button-component\n type=\"button\"\n disabled={this.isLoading}\n clickHandler={event => {\n event.preventDefault();\n const previewEvent = this.previewButtonClicked.emit(this.host);\n if (!previewEvent.defaultPrevented) {\n window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');\n }\n }}\n variant={'basic'}\n >\n Preview\n </button-component>\n )}\n </div>\n <div class=\"buttons\">\n <p\n class={{\n 'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,\n 'saved-changes': this.changesSaved,\n 'error': this.error !== '',\n 'error-full-width': this.error !== '' && this.action === 'create',\n }}\n >\n {this.error !== '' ? this.error : ''}\n {this.error == '' && this.hasUnsavedChanges && !this.changesSaved ? 'Unsaved changes' : this.error == '' && this.changesSaved ? 'Changes saved!' : ''}\n </p>\n <button-component\n type=\"button\"\n disabled={this.isLoading}\n clickHandler={event => {\n event.preventDefault();\n this.cancelButtonClick.emit();\n this.error = '';\n }}\n variant={'basic'}\n >\n Cancel\n </button-component>\n <button-component type=\"submit\" disabled={this.isLoading}>\n {this.isLoading ? (\n <span>\n Saving\n <loading-icon />{' '}\n </span>\n ) : this.action == 'create' ? (\n 'Create'\n ) : (\n 'Save changes'\n )}\n </button-component>\n </div>\n </div>\n </form>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -49,7 +49,7 @@ const NylasEventInfo = class {
49
49
  utils.debug('nylas-event-info', 'disconnectedCallback');
50
50
  }
51
51
  render() {
52
- return (index.h(index.Host, { key: '311ce4cda7377b94f12a98ff6a3318697762f6f0' }, index.h("nylas-form-card", { key: '99e5490667e83818242ae24863e5cdd94b39b0fa' }, index.h("h1", { key: 'f8c0f0cc5c330fac2b2f17e46be32ea4f3cc0b4b', slot: "header-title", class: "nylas-event-info__title" }, "Event information"), index.h("h3", { key: '637d443ca5851d7038acf20425c7fc969543951d', slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), index.h("div", { key: 'aa0c51b31eeda0ba4b2c0090ed8367d139ea447b', slot: "content", class: "nylas-event-info__content" }, index.h("slot", { key: '95cf051184160aa802d89fc395bf914df09412e9', name: "inputs" })))));
52
+ return (index.h(index.Host, { key: '8d738b19e05b2b5621b228a7ddeec85db4ab8ee2' }, index.h("nylas-form-card", { key: 'f8c8431712b9471d4a019722ff7f1a395cb0785a' }, index.h("h1", { key: 'e1ee67f24a74ce77916150b8d1b4a2a554dc1e66', slot: "header-title", class: "nylas-event-info__title" }, "Event information"), index.h("h3", { key: '22e2adc4233412849f1899ae57a0f62d2a2f3843', slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), index.h("div", { key: 'b6bbad7b9337e89fff5be329e90aba3234b5f18d', slot: "content", class: "nylas-event-info__content" }, index.h("slot", { key: 'ccc2d0238bdfaef93a22e8d4efacf50dd463bb23', name: "inputs" })))));
53
53
  }
54
54
  static get formAssociated() { return true; }
55
55
  get el() { return index.getElement(this); }
@@ -49,7 +49,7 @@ const NylasEventLimits = class {
49
49
  utils.debug('nylas-event-limits', 'disconnectedCallback');
50
50
  }
51
51
  render() {
52
- return (index.h(index.Host, { key: '6bfa0e29afa1529eb445b68339a658e4d7c8a6be' }, index.h("nylas-form-card", { key: 'eda419f6f0f7bb8dfd2ebdb0a13c0a8c650190eb' }, index.h("h1", { key: 'ea2c9af0d66665f25dcbb9c4c152bf159ceb4169', slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), index.h("h3", { key: 'b600fd0b690bab256fde199b373913d9009be9bf', slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), index.h("div", { key: '72b24085107528833d406802b206eed3719bb358', slot: "content", class: "nylas-event-limits__content" }, index.h("slot", { key: '74a09fd8044065a2f52ef5abaeef0ba80f38f17b', name: "inputs" })))));
52
+ return (index.h(index.Host, { key: '4bd98acab9e8c89aa5870ccf5855f0a3fc15e6e6' }, index.h("nylas-form-card", { key: '612bb167b2eb99034f981202544838f058fe7e66' }, index.h("h1", { key: 'a0b798be4246b0d091cd41042042d67d9be74654', slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), index.h("h3", { key: 'e96a8b15d61f1113f0b247266de80177204a9594', slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), index.h("div", { key: 'e0b352b1aaeeeae9701452004c8d53272c02c8e9', slot: "content", class: "nylas-event-limits__content" }, index.h("slot", { key: '8ce14c800d4f8dd7301213705a019bc1004d93d4', name: "inputs" })))));
53
53
  }
54
54
  static get formAssociated() { return true; }
55
55
  get el() { return index.getElement(this); }
@@ -100,10 +100,10 @@ const NylasEventLocation = class {
100
100
  { value: 'custom', label: 'Custom location' },
101
101
  ];
102
102
  const icons = {
103
- none: index.h("location-off-icon", { key: 'f9a254f862acd3c1b8a24b7efe0069f232bd9f51' }),
104
- custom: index.h("location-icon", { key: '641cfced66068f659d7d6db3b88a11314d9cacf6' }),
103
+ none: index.h("location-off-icon", { key: 'e39a3de4016f364d16d16489e23c5929f1912aa2' }),
104
+ custom: index.h("location-icon", { key: 'ff871a8ca7974401f2801c45b3096882d6ab159b' }),
105
105
  };
106
- return (index.h(index.Host, { key: '9e86c85ff957ac4d8192350e61bc66dfb7d8f764' }, index.h("div", { key: 'a51752993c346200236187f906caa0629be50e88', class: "nylas-event-location", part: "nel" }, index.h("label", { key: '53cb18b0acd1a46b4be9a49f88a2786e7832d761', htmlFor: "location" }, "Location type", index.h("span", { key: '2b2debd710387758562de5833b5160f1d3a18481', class: "label-icon" }, index.h("tooltip-component", { key: '237da0e3bbfae495fd865d99e8f1e1ef68ae027e' }, index.h("info-icon", { key: '5f23b94c2bbe0f3ddd3870aeb69cee2f75b0bd28', slot: "tooltip-icon" }), index.h("span", { key: 'b1ed166875a24ce4bcfbc808c26d0042b74f73f3', slot: "tooltip-content" }, "Choose how you\u2019ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), index.h("div", { key: '316411158feced50b61ce97014ffa0ba7c4400e8', class: "location-input" }, index.h("select-dropdown", { key: 'cc6bdbca81e738f43dfb37b7dc66f06ac338dc40', withSearch: false, name: "location", options: locationOptions, defaultSelectedOption: locationOptions.find(i => i.value == this.selectedLocationOption), exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, index.h("span", { key: 'faacafdffda95071ee9304ac0e4c0125dc31c123', slot: "select-icon" }, icons[this.selectedLocationOption])), this.selectedLocationOption === 'custom' && (index.h("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: e => this.handleChange(e) }))))));
106
+ return (index.h(index.Host, { key: 'cb8d5db9330e0bc55a260e812200e8f5338f54b6' }, index.h("div", { key: '522d05fbf3800885e70f2f427abefb3f9e580fe6', class: "nylas-event-location", part: "nel" }, index.h("label", { key: '7ab6905de1a4df4453c783a4e3c155681695fc7b', htmlFor: "location" }, "Location type", index.h("span", { key: '4d581262624b17301c1cce6104bf3d73101f4a43', class: "label-icon" }, index.h("tooltip-component", { key: '5ff2dbd32e34de47a8727fd8e60442a12943f08c' }, index.h("info-icon", { key: '39dce89e093228b1a96e74ffb62dd22981a6bdcd', slot: "tooltip-icon" }), index.h("span", { key: '69d64a3f59a6c6ba655a1816398dfdb052b90da4', slot: "tooltip-content" }, "Choose how you\u2019ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), index.h("div", { key: 'f4baf4b56c8ed64527d281b9b4c5f4878773c549', class: "location-input" }, index.h("select-dropdown", { key: 'ee38d116156616c711b1d43f6ec835d513ea9bbd', withSearch: false, name: "location", options: locationOptions, defaultSelectedOption: locationOptions.find(i => i.value == this.selectedLocationOption), exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, index.h("span", { key: 'edaaf4764f2b15d18014537512db2492198723ac', slot: "select-icon" }, icons[this.selectedLocationOption])), this.selectedLocationOption === 'custom' && (index.h("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: e => this.handleChange(e) }))))));
107
107
  }
108
108
  static get formAssociated() { return true; }
109
109
  get host() { return index.getElement(this); }
@@ -50,7 +50,7 @@ const NylasFormCard = class {
50
50
  utils.checkForMissingSlots(slots, this.host);
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: '452748a2f5bbe760d62bc430c206e76e1d662cdc' }, index.h("div", { key: '5960063b44a6c0d70f85f2a4ca151b3f9cf12b21', class: "nylas-form-card" }, index.h("div", { key: '40a34de1891b375ee143ef27d71ab18a6ac8e1ae', class: "nylas-form-card__header" }, index.h("slot", { key: 'ad166ef70620dd2c9f29943220534920d643a615', name: "header-title" }), index.h("slot", { key: '567c259cb3d5db843bd4eea56d134060f0730e2b', name: "header-subtitle" })), index.h("div", { key: '092edbf7aec788c1b1feaa1328e56896c8bb25f9', class: "nylas-form-card__content" }, index.h("slot", { key: '598dc69a824032ae31ab03259bf61e38ef52b661', name: "content" })))));
53
+ return (index.h(index.Host, { key: '481f5b89040a4b88cd2524dec46e228a2f495672' }, index.h("div", { key: 'bec08ca1ce504d6a6c797ac5995ce682a020256c', class: "nylas-form-card" }, index.h("div", { key: 'aa6be7ede7ee3595d7b1eeb31fe53cb2d26ea724', class: "nylas-form-card__header" }, index.h("slot", { key: 'a5053d6f0fd8b16d0001c92afa6fc8313a0f7044', name: "header-title" }), index.h("slot", { key: '18b2f5b6868def67b2e66a722d617e820d430858', name: "header-subtitle" })), index.h("div", { key: '89e52a3ea00fa5505129d5986858d18867d9f4cd', class: "nylas-form-card__content" }, index.h("slot", { key: '6b5087f1de1b228bf4b4ed57ba93bf39c489bcca', name: "content" })))));
54
54
  }
55
55
  static get formAssociated() { return true; }
56
56
  get host() { return index.getElement(this); }
@@ -108,7 +108,7 @@ const NylasLimitFutureBookings = class {
108
108
  this.selectedPeriod = period;
109
109
  }
110
110
  render() {
111
- return (index.h(index.Host, { key: 'e1e24151575c5c687d51fdf177840aa7c05424d9' }, index.h("div", { key: 'ceb19c13b5ad7e132260de266b1883b3f8d53f3d', class: "nylas-limit-future-bookings", part: "nlfb" }, index.h("label", { key: '44c296c74b9a9cd7152d2c704d4dc6ef82cc39c7' }, "Limit future bookings", index.h("span", { key: '11e7622613f38d12ef4f1c564b0ca311ab679cb3', class: "label-icon" }, index.h("tooltip-component", { key: 'd9ab1be2efb6616a937d112017be0e2c8e965ab3' }, index.h("info-icon", { key: '9f207ec82aa2a122ebfd0ba047f650751c49e470', slot: "tooltip-icon" }), index.h("span", { key: '1d91cfa505846f5f9da0457b785d8c645044be55', slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), index.h("time-period-selector", { key: 'cc11ea1514b99b8b4ef1721a15d56fbda1c1693b', id: "limit-future-bookings", timePeriods: ['day', 'week', 'month'], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
111
+ return (index.h(index.Host, { key: '2c6b73be6a96ed0d4bdce35995608ba6edb0c699' }, index.h("div", { key: '0408bfa175effeba479a4653be178a4169557ad1', class: "nylas-limit-future-bookings", part: "nlfb" }, index.h("label", { key: 'a7fef8092b1c05b3ca9db8164ed9d2517f589f65' }, "Limit future bookings", index.h("span", { key: '328b8e96e4020622b346f273c2dea1b3ad91261b', class: "label-icon" }, index.h("tooltip-component", { key: 'a9446903691a6caf6416fa7b02ccf7ade89baeb0' }, index.h("info-icon", { key: '1fda9c577f7298f195de760892381a7d64e3b72c', slot: "tooltip-icon" }), index.h("span", { key: 'd6efca56eaeaf190d4d09a904a8e1f835dcec659', slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), index.h("time-period-selector", { key: '7348ab27b2aa85e3b41740e517b9b5b17e06f03c', id: "limit-future-bookings", timePeriods: ['day', 'week', 'month'], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
112
112
  }
113
113
  static get formAssociated() { return true; }
114
114
  get host() { return index.getElement(this); }
@@ -133,7 +133,7 @@ const NylasMinBookingNotice = class {
133
133
  this.selectedPeriod = period;
134
134
  }
135
135
  render() {
136
- return (index.h(index.Host, { key: '75bc177620fae5662328ba8f53f9f4a4e84733e5' }, index.h("div", { key: 'a76b27e58174ca827e389b361ce4837e6ae11ced', class: "nylas-min-booking-notice", part: "nmbn" }, index.h("label", { key: '1db3f2c7c54b05744b64ad40c951595122d317c5' }, "Minimum booking notice", index.h("span", { key: 'a4c7db6f534b570cbbf5af4c3d60d97843599a4b', class: "label-icon" }, index.h("tooltip-component", { key: 'f7d6ba6b294f85c9d573933b6916cd50ad830d2a' }, index.h("info-icon", { key: '16b11bfaa5affbe15748f6ae6129c1e5a6fcfe32', slot: "tooltip-icon" }), index.h("span", { key: '1fe829a53fa3dcef0a6d5954717889d9e92d0c68', slot: "tooltip-content" }, "The minimum amount of time in the future for planning the event.")))), index.h("time-period-selector", { key: 'e4a545fc471e67447cab675ccd11fa786337fc23', id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
136
+ return (index.h(index.Host, { key: 'aabf96ed8c0a4f124ab36c48788650cd58c287cb' }, index.h("div", { key: 'd5b39e2a0a0837997e8eed19708d24bc213c03a8', class: "nylas-min-booking-notice", part: "nmbn" }, index.h("label", { key: '326d8374eea2f2bcd8beb22be8bb0f74ed7b63ab' }, "Minimum booking notice", index.h("span", { key: '6722f861efdee44774331f62eca0260fb8e3e241', class: "label-icon" }, index.h("tooltip-component", { key: '54f26a271650e81c9e91c9b7fcef707bb7dea27e' }, index.h("info-icon", { key: '7f941710f9d8442c69cfa0b893fd73a3ba92acfd', slot: "tooltip-icon" }), index.h("span", { key: 'fbe57ec513dae8f7db343960e58a8f74328f39c2', slot: "tooltip-content" }, "The minimum amount of time in the future for planning the event.")))), index.h("time-period-selector", { key: '353894c36a20314eb6d75a93ae5b15b616317b98', id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
137
137
  }
138
138
  static get formAssociated() { return true; }
139
139
  get host() { return index.getElement(this); }
@@ -133,7 +133,7 @@ const NylasMinCancellationNotice = class {
133
133
  this.selectedPeriod = period;
134
134
  }
135
135
  render() {
136
- return (index.h(index.Host, { key: '8cccdce4a9960ecf6b860b638da26c50a68104c4' }, index.h("div", { key: '82854ad81861233231fe4a1e8006196155328141', class: "nylas-min-cancellation-notice", part: "nmcn" }, index.h("label", { key: 'db3eddec3a8fb28c0b035d4d4cd61986832dff0b' }, "Minimum cancellation notice", index.h("span", { key: '137472a58beef549599289b04be8fde01e7d81da', class: "label-icon" }, index.h("tooltip-component", { key: '2cfcceb4c7144553ac85d32da46fbd894955a9ee' }, index.h("info-icon", { key: '9e13ddb61e10e10a5fa426fb6a2b56159597ea88', slot: "tooltip-icon" }), index.h("span", { key: '9670035ec49fe0db37564d2d44d30f2197a7ec85', slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), index.h("time-period-selector", { key: '0e7b9f7b99d7e10c2c39c5affdfc014a403146ad', id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
136
+ return (index.h(index.Host, { key: '3ee0dbd86e7d53dcc7f95807eed480663673acee' }, index.h("div", { key: '83d71bcb1fe714766ab49f13643f2c4571e130da', class: "nylas-min-cancellation-notice", part: "nmcn" }, index.h("label", { key: '643a6e3a8be08f647cc3074c0e1473686f7f0ad5' }, "Minimum cancellation notice", index.h("span", { key: 'f66c36b03e7d51bf2f5dcf5cc5c22143290768e1', class: "label-icon" }, index.h("tooltip-component", { key: '96ec38cd3e126c16cc51b9831ac205645cbe841d' }, index.h("info-icon", { key: 'a44ddbb0876bbc99129b0ba2c3622789613cb724', slot: "tooltip-icon" }), index.h("span", { key: 'b982780e6797311f12343fa63c376f16e925347d', slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), index.h("time-period-selector", { key: 'fec77a977146df83263a257c1f09dd868782125b', id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
137
137
  }
138
138
  static get formAssociated() { return true; }
139
139
  get host() { return index.getElement(this); }
@@ -7,7 +7,7 @@ const index_es = require('./index.es-8b30b5d3.js');
7
7
  const utils = require('./utils-d5109f8c.js');
8
8
  const mailboxStore = require('./mailbox-store-ea49a575.js');
9
9
  const schedulerStore = require('./scheduler-store-743ed238.js');
10
- const schedulerConfigStore = require('./scheduler-config-store-a5b7c08b.js');
10
+ const schedulerConfigStore = require('./scheduler-config-store-0266631b.js');
11
11
  require('./buffer-es6-e5b4d313.js');
12
12
  require('./_commonjsHelpers-9463df90.js');
13
13
  require('./index-5ba61c57.js');
@@ -6,7 +6,7 @@ const index$1 = require('./index-c14ea8f5.js');
6
6
  const index_es = require('./index.es-8b30b5d3.js');
7
7
  const nylasApiRequest = require('./nylas-api-request-f3b7c218.js');
8
8
  const utils = require('./utils-d5109f8c.js');
9
- const schedulerConfigStore = require('./scheduler-config-store-a5b7c08b.js');
9
+ const schedulerConfigStore = require('./scheduler-config-store-0266631b.js');
10
10
  const bufferEs6 = require('./buffer-es6-e5b4d313.js');
11
11
  const index = require('./index-bb9d1979.js');
12
12
  const _commonjsHelpers = require('./_commonjsHelpers-9463df90.js');
@@ -5423,6 +5423,7 @@ const NylasSchedulerEditor = class {
5423
5423
  this.schedulerPreviewLink = '';
5424
5424
  this.defaultSchedulerConfigState = undefined;
5425
5425
  this.mode = 'app';
5426
+ this.additionalParticipants = undefined;
5426
5427
  this.automaticComponentRegistration = true;
5427
5428
  }
5428
5429
  connectedCallback() {
@@ -5433,6 +5434,7 @@ const NylasSchedulerEditor = class {
5433
5434
  this.stores = {
5434
5435
  schedulerConfig: schedulerConfigStore.CreateNylasSchedulerConfigStore({
5435
5436
  ...this.defaultSchedulerConfigState,
5437
+ additionalParticipants: this.additionalParticipants,
5436
5438
  }),
5437
5439
  };
5438
5440
  if (!this.nylasApiRequest && this.nylasSessionsConfig) {
@@ -5522,7 +5524,7 @@ const NylasSchedulerEditor = class {
5522
5524
  await this.nylasSchedulerConfigConnector.schedulerConfig?.getCalendars();
5523
5525
  }
5524
5526
  render() {
5525
- return (index$1.h(index$1.Host, { key: 'e002a44eed281858acbac383ed43cbecc33f8787' }, index$1.h("div", { key: '45b6210474e128efb8b9ed9652fb193ba4116483', class: "scheduler-editor-header", part: "nse__header" }, index$1.h("h1", { key: '4a32b5953b88d41abe3c461cc009b4810e307e29', class: "scheduler-editor-title", part: "nse__title" }, index$1.h("calendar-icon", { key: '14d24a40119d1f3aa37efe37a468c8abceae3903', width: "18", height: "18" }), "Scheduler editor"), index$1.h("button", { key: 'dcbf3accf800d65dbd268da096ddd8ec93854096', class: "scheduler-editor-close", title: "logout", onClick: e => this.handleSchedulerConfigCloseClicked(e), part: "nse__close-button" }, index$1.h("close-icon", { key: '1f2b11860228f8d83a30427f7f1fd8412b61047b', width: "18", height: "18" }))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === null && (index$1.h("div", { class: "list-configurations" }, index$1.h("nylas-list-configurations", null))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'create' && (index$1.h("nylas-editor-tabs", { mode: "composable" }, index$1.h(ExpressFlow, null))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'edit' && (index$1.h("nylas-editor-tabs", { mode: this.mode }, this.mode === 'composable' && index$1.h("slot", null))), !this.stores?.schedulerConfig?.state.currentUser && (index$1.h("slot", { name: "login-required" }, index$1.h(LoginRequired, { authenticationUrl: this.authenticationUrl })))));
5527
+ return (index$1.h(index$1.Host, { key: 'd5f019173d3ec4f80d802de6989182b0e8e4c2d0' }, index$1.h("div", { key: '7b1d14281fe950b0cd693349bb8cdd2cb428722f', class: "scheduler-editor-header", part: "nse__header" }, index$1.h("h1", { key: 'b24cf796d8db6a169757c552b9749568794b87fd', class: "scheduler-editor-title", part: "nse__title" }, index$1.h("calendar-icon", { key: 'd6721ba544b1c3c5f6e003034d491355de6b0cc7', width: "18", height: "18" }), "Scheduler editor"), index$1.h("button", { key: 'bb9ce5bfa2e6df362b55c7f8cd1a2f1e06056ce7', class: "scheduler-editor-close", title: "logout", onClick: e => this.handleSchedulerConfigCloseClicked(e), part: "nse__close-button" }, index$1.h("close-icon", { key: '22dced4538079f05c5d036c9eef4882d79739cf9', width: "18", height: "18" }))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === null && (index$1.h("div", { class: "list-configurations" }, index$1.h("nylas-list-configurations", null))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'create' && (index$1.h("nylas-editor-tabs", { mode: "composable" }, index$1.h(ExpressFlow, null))), this.stores?.schedulerConfig?.state.currentUser && this.stores.schedulerConfig.state.action === 'edit' && (index$1.h("nylas-editor-tabs", { mode: this.mode }, this.mode === 'composable' && index$1.h("slot", null))), !this.stores?.schedulerConfig?.state.currentUser && (index$1.h("slot", { name: "login-required" }, index$1.h(LoginRequired, { authenticationUrl: this.authenticationUrl })))));
5526
5528
  }
5527
5529
  get host() { return index$1.getElement(this); }
5528
5530
  static get watchers() { return {