@nylas/web-elements 2.5.18 → 2.6.1

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 (749) hide show
  1. package/dist/cdn/input-color-picker/input-color-picker.es.js +3 -3
  2. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +129 -114
  3. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +2504 -2478
  4. package/dist/cjs/add-circle-icon_2.cjs.entry.js +2 -2
  5. package/dist/cjs/archive-icon.cjs.entry.js +1 -1
  6. package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/bold-icon.cjs.entry.js +1 -1
  8. package/dist/cjs/button-component_2.cjs.entry.js +2 -2
  9. package/dist/cjs/calendar-agenda-fill-icon_39.cjs.entry.js +47 -47
  10. package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
  11. package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/checkbox-component.cjs.entry.js +1 -1
  14. package/dist/cjs/checkbox-group_4.cjs.entry.js +5 -5
  15. package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/checkmark-icon_14.cjs.entry.js +16 -16
  17. package/dist/cjs/chevron-icon_3.cjs.entry.js +4 -4
  18. package/dist/cjs/clock-icon_2.cjs.entry.js +2 -2
  19. package/dist/cjs/delete-icon.cjs.entry.js +1 -1
  20. package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/folder-icon.cjs.entry.js +1 -1
  22. package/dist/cjs/forward-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/globe-icon_3.cjs.entry.js +5 -5
  24. package/dist/cjs/google-logo-icon_6.cjs.entry.js +13 -13
  25. package/dist/cjs/google-meet-icon_5.cjs.entry.js +5 -5
  26. package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/info-icon_2.cjs.entry.js +3 -3
  28. package/dist/cjs/input-component.cjs.entry.js +1 -1
  29. package/dist/cjs/input-dropdown_2.cjs.entry.js +2 -2
  30. package/dist/cjs/input-image-url_2.cjs.entry.js +2 -2
  31. package/dist/cjs/italic-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/multi-select-dropdown.cjs.entry.js +2 -2
  33. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +46 -18
  34. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js.map +1 -1
  35. package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
  36. package/dist/cjs/nylas-notification_2.cjs.entry.js +2 -2
  37. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +29 -4
  38. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
  39. package/dist/cjs/nylas-scheduler-editor.entry.cjs.js.map +1 -1
  40. package/dist/cjs/nylas-scheduling.cjs.entry.js +9 -6
  41. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  42. package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
  43. package/dist/cjs/person-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/play-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/plus-icon.cjs.entry.js +1 -1
  46. package/dist/cjs/radio-button-group.cjs.entry.js +1 -1
  47. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  48. package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/reply-icon.cjs.entry.js +1 -1
  50. package/dist/cjs/sent-icon.cjs.entry.js +1 -1
  51. package/dist/cjs/spam-icon.cjs.entry.js +1 -1
  52. package/dist/cjs/star-icon.cjs.entry.js +1 -1
  53. package/dist/cjs/stop-icon.cjs.entry.js +1 -1
  54. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  55. package/dist/cjs/toggle-switch.cjs.entry.js +1 -1
  56. package/dist/cjs/translate-icon.cjs.entry.js +1 -1
  57. package/dist/cjs/trash-fill-icon.cjs.entry.js +1 -1
  58. package/dist/cjs/underline-icon.cjs.entry.js +1 -1
  59. package/dist/cjs/{version-Xu0ORQw8.js → version-Ep_WAjs1.js} +3 -3
  60. package/dist/cjs/version-Ep_WAjs1.js.map +1 -0
  61. package/dist/collection/common/icons/add-circle.js +1 -1
  62. package/dist/collection/common/icons/archive.js +1 -1
  63. package/dist/collection/common/icons/arrow.js +1 -1
  64. package/dist/collection/common/icons/bold.js +1 -1
  65. package/dist/collection/common/icons/calendar-agenda-fill.js +1 -1
  66. package/dist/collection/common/icons/calendar-agenda.js +1 -1
  67. package/dist/collection/common/icons/calendar-cancel.js +1 -1
  68. package/dist/collection/common/icons/calendar-check.js +1 -1
  69. package/dist/collection/common/icons/calendar-info.js +1 -1
  70. package/dist/collection/common/icons/calendar-patterns.js +1 -1
  71. package/dist/collection/common/icons/calendar.js +1 -1
  72. package/dist/collection/common/icons/checkmark-circle.js +1 -1
  73. package/dist/collection/common/icons/checkmark.js +1 -1
  74. package/dist/collection/common/icons/chevron.js +1 -1
  75. package/dist/collection/common/icons/clock.js +1 -1
  76. package/dist/collection/common/icons/close.js +1 -1
  77. package/dist/collection/common/icons/copy.js +1 -1
  78. package/dist/collection/common/icons/delete.js +1 -1
  79. package/dist/collection/common/icons/document-refresh.js +1 -1
  80. package/dist/collection/common/icons/dragable.js +1 -1
  81. package/dist/collection/common/icons/edit.js +1 -1
  82. package/dist/collection/common/icons/envelope-fill.js +1 -1
  83. package/dist/collection/common/icons/envelope.js +1 -1
  84. package/dist/collection/common/icons/eye.js +1 -1
  85. package/dist/collection/common/icons/feedback-icon.js +1 -1
  86. package/dist/collection/common/icons/flow.js +1 -1
  87. package/dist/collection/common/icons/folder.js +1 -1
  88. package/dist/collection/common/icons/forward.js +1 -1
  89. package/dist/collection/common/icons/globe.js +1 -1
  90. package/dist/collection/common/icons/google-logo.js +1 -1
  91. package/dist/collection/common/icons/google-meet.js +1 -1
  92. package/dist/collection/common/icons/inbox.js +1 -1
  93. package/dist/collection/common/icons/info.js +1 -1
  94. package/dist/collection/common/icons/italic.js +1 -1
  95. package/dist/collection/common/icons/loading.js +1 -1
  96. package/dist/collection/common/icons/location-off.js +1 -1
  97. package/dist/collection/common/icons/location.js +1 -1
  98. package/dist/collection/common/icons/microsof-teams.js +1 -1
  99. package/dist/collection/common/icons/microsoft-logo.js +1 -1
  100. package/dist/collection/common/icons/nylas-logo.js +1 -1
  101. package/dist/collection/common/icons/paintbrush-fill.js +1 -1
  102. package/dist/collection/common/icons/paintbrush.js +1 -1
  103. package/dist/collection/common/icons/people.js +1 -1
  104. package/dist/collection/common/icons/person-clipboard.js +1 -1
  105. package/dist/collection/common/icons/person.js +1 -1
  106. package/dist/collection/common/icons/play.js +1 -1
  107. package/dist/collection/common/icons/plus.js +1 -1
  108. package/dist/collection/common/icons/refresh.js +1 -1
  109. package/dist/collection/common/icons/reply-all.js +1 -1
  110. package/dist/collection/common/icons/reply.js +1 -1
  111. package/dist/collection/common/icons/search.js +1 -1
  112. package/dist/collection/common/icons/sent.js +1 -1
  113. package/dist/collection/common/icons/spam.js +1 -1
  114. package/dist/collection/common/icons/star.js +1 -1
  115. package/dist/collection/common/icons/stop.js +1 -1
  116. package/dist/collection/common/icons/translate.js +1 -1
  117. package/dist/collection/common/icons/trash-fill.js +1 -1
  118. package/dist/collection/common/icons/trash.js +1 -1
  119. package/dist/collection/common/icons/underline.js +1 -1
  120. package/dist/collection/common/icons/warning.js +1 -1
  121. package/dist/collection/common/icons/zoom.js +1 -1
  122. package/dist/collection/common/types.js.map +1 -1
  123. package/dist/collection/components/design-system/button-component/button-component.js +1 -1
  124. package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -1
  125. package/dist/collection/components/design-system/checkbox-group/checkbox-group.js +1 -1
  126. package/dist/collection/components/design-system/input-color-picker/input-color-picker.js +2 -2
  127. package/dist/collection/components/design-system/input-component/input-component.js +1 -1
  128. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +1 -1
  129. package/dist/collection/components/design-system/input-image-url/input-image-url.js +1 -1
  130. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
  131. package/dist/collection/components/design-system/nylas-date-component/nylas-date-component.js +1 -1
  132. package/dist/collection/components/design-system/radio-button-group/radio-button-group.js +1 -1
  133. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
  134. package/dist/collection/components/design-system/textarea-component/textarea-component.js +1 -1
  135. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
  136. package/dist/collection/components/design-system/toggle-switch/toggle-switch.js +1 -1
  137. package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +2 -2
  138. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +40 -12
  139. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
  140. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  141. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  142. package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js +1 -1
  143. package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js +2 -2
  144. package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
  145. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js +2 -2
  146. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +1 -1
  147. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  148. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +2 -2
  149. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +1 -1
  150. package/dist/collection/components/scheduler-editor/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.js +1 -1
  151. package/dist/collection/components/scheduler-editor/nylas-booking-confirmation-type/nylas-booking-confirmation-type.js +1 -1
  152. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js +2 -2
  153. package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js +1 -1
  154. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js +2 -2
  155. package/dist/collection/components/scheduler-editor/nylas-connected-calendars/nylas-connected-calendars.js +1 -1
  156. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
  157. package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js +1 -1
  158. package/dist/collection/components/scheduler-editor/nylas-disable-emails/nylas-disable-emails.js +1 -1
  159. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +5 -5
  160. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +5 -5
  161. package/dist/collection/components/scheduler-editor/nylas-event-capacity/nylas-event-capacity.js +1 -1
  162. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +1 -1
  163. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +2 -2
  164. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  165. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  166. package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js +1 -1
  167. package/dist/collection/components/scheduler-editor/nylas-event-timeslot/nylas-event-timeslot.js +3 -3
  168. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +2 -2
  169. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  170. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +1 -1
  171. package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js +1 -1
  172. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +1 -1
  173. package/dist/collection/components/scheduler-editor/nylas-notetaker-config/nylas-notetaker-config.js +8 -8
  174. package/dist/collection/components/scheduler-editor/nylas-only-specific-time-availability/nylas-only-specific-time-availability.js +1 -1
  175. package/dist/collection/components/scheduler-editor/nylas-page-name/nylas-page-name.js +1 -1
  176. package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js +1 -1
  177. package/dist/collection/components/scheduler-editor/nylas-participant-booking-calendars/nylas-participant-booking-calendars.js +1 -1
  178. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +1 -1
  179. package/dist/collection/components/scheduler-editor/nylas-reminder-emails/nylas-reminder-emails.js +3 -3
  180. package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.js +1 -1
  181. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +3 -3
  182. package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.js +2 -2
  183. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +3 -3
  184. package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +1 -1
  185. package/dist/collection/connector/shared/api/scheduler.js +8 -5
  186. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  187. package/dist/collection/types/index.js.map +1 -1
  188. package/dist/collection/version.js +1 -1
  189. package/dist/collection/version.js.map +1 -1
  190. package/dist/components/add-circle-icon.js +1 -1
  191. package/dist/components/archive-icon.js +1 -1
  192. package/dist/components/arrow-icon.js +1 -1
  193. package/dist/components/bold-icon.js +1 -1
  194. package/dist/components/button-component.js +1 -1
  195. package/dist/components/calendar-agenda-fill-icon.js +1 -1
  196. package/dist/components/calendar-agenda-icon.js +1 -1
  197. package/dist/components/calendar-cancel-icon.js +1 -1
  198. package/dist/components/calendar-check-icon.js +1 -1
  199. package/dist/components/calendar-icon.js +1 -1
  200. package/dist/components/calendar-info-icon.js +1 -1
  201. package/dist/components/calendar-patterns-icon.js +1 -1
  202. package/dist/components/checkbox-component.js +1 -1
  203. package/dist/components/checkbox-group.js +1 -1
  204. package/dist/components/checkmark-circle-icon.js +1 -1
  205. package/dist/components/checkmark-icon.js +1 -1
  206. package/dist/components/chevron-icon.js +1 -1
  207. package/dist/components/clock-icon.js +1 -1
  208. package/dist/components/close-icon.js +1 -1
  209. package/dist/components/copy-icon.js +1 -1
  210. package/dist/components/delete-icon.js +1 -1
  211. package/dist/components/document-refresh-icon.js +1 -1
  212. package/dist/components/dragable-icon.js +1 -1
  213. package/dist/components/edit-icon.js +1 -1
  214. package/dist/components/envelope-fill-icon.js +1 -1
  215. package/dist/components/envelope-icon.js +1 -1
  216. package/dist/components/eye-icon.js +1 -1
  217. package/dist/components/feedback-icon.js +1 -1
  218. package/dist/components/flow-icon.js +1 -1
  219. package/dist/components/folder-icon.js +1 -1
  220. package/dist/components/forward-icon.js +1 -1
  221. package/dist/components/globe-icon.js +1 -1
  222. package/dist/components/google-logo-icon.js +1 -1
  223. package/dist/components/google-meet-icon.js +1 -1
  224. package/dist/components/inbox-icon.js +1 -1
  225. package/dist/components/info-icon.js +1 -1
  226. package/dist/components/input-color-picker.js +1 -1
  227. package/dist/components/input-component.js +1 -1
  228. package/dist/components/input-dropdown.js +1 -1
  229. package/dist/components/input-image-url.js +1 -1
  230. package/dist/components/italic-icon.js +1 -1
  231. package/dist/components/loading-icon.js +1 -1
  232. package/dist/components/location-icon.js +1 -1
  233. package/dist/components/location-off-icon.js +1 -1
  234. package/dist/components/microsoft-logo-icon.js +1 -1
  235. package/dist/components/microsoft-teams-icon.js +1 -1
  236. package/dist/components/multi-select-dropdown.js +1 -1
  237. package/dist/components/nylas-additional-participants.js +1 -1
  238. package/dist/components/nylas-availability-picker.js +1 -1
  239. package/dist/components/nylas-booked-event-card.js +1 -1
  240. package/dist/components/nylas-booking-calendar-picker.js +1 -1
  241. package/dist/components/nylas-booking-confirmation-redirect.js +1 -1
  242. package/dist/components/nylas-booking-confirmation-type.js +1 -1
  243. package/dist/components/nylas-booking-form-config.js +1 -1
  244. package/dist/components/nylas-booking-form.js +1 -1
  245. package/dist/components/nylas-buffer-time.js +1 -1
  246. package/dist/components/nylas-calendar-picker.js +1 -1
  247. package/dist/components/nylas-cancel-booking-form.js +1 -1
  248. package/dist/components/nylas-cancellation-policy.js +1 -1
  249. package/dist/components/nylas-cancelled-event-card.js +1 -1
  250. package/dist/components/nylas-confirmation-email.js +1 -1
  251. package/dist/components/nylas-confirmed-event-card.js +1 -1
  252. package/dist/components/nylas-connected-calendars.js +1 -1
  253. package/dist/components/nylas-custom-booking-flow.js +1 -1
  254. package/dist/components/nylas-custom-event-slug.js +1 -1
  255. package/dist/components/nylas-customize-booking-settings.js +1 -1
  256. package/dist/components/nylas-date-component.js +1 -1
  257. package/dist/components/nylas-date-picker.js +1 -1
  258. package/dist/components/nylas-disable-emails.js +1 -1
  259. package/dist/components/nylas-editor-tabs-group.js +1 -1
  260. package/dist/components/nylas-editor-tabs.js +1 -1
  261. package/dist/components/nylas-event-calendar.js +1 -1
  262. package/dist/components/nylas-event-capacity.js +1 -1
  263. package/dist/components/nylas-event-description.js +1 -1
  264. package/dist/components/nylas-event-duration.js +1 -1
  265. package/dist/components/nylas-event-info.js +1 -1
  266. package/dist/components/nylas-event-limits.js +1 -1
  267. package/dist/components/nylas-event-location.js +1 -1
  268. package/dist/components/nylas-event-timeslot.js +1 -1
  269. package/dist/components/nylas-event-title.js +1 -1
  270. package/dist/components/nylas-feedback-form.js +1 -1
  271. package/dist/components/nylas-form-card.js +1 -1
  272. package/dist/components/nylas-limit-future-bookings.js +1 -1
  273. package/dist/components/nylas-list-configurations.js +1 -1
  274. package/dist/components/nylas-locale-switch.js +1 -1
  275. package/dist/components/nylas-logo.js +1 -1
  276. package/dist/components/nylas-min-booking-notice.js +1 -1
  277. package/dist/components/nylas-min-cancellation-notice.js +1 -1
  278. package/dist/components/nylas-notetaker-config.js +1 -1
  279. package/dist/components/nylas-notification.js +1 -1
  280. package/dist/components/nylas-only-specific-time-availability.js +1 -1
  281. package/dist/components/nylas-organizer-confirmation-card.js +1 -1
  282. package/dist/components/nylas-page-name.js +1 -1
  283. package/dist/components/nylas-page-styling.js +1 -1
  284. package/dist/components/nylas-participant-booking-calendars.js +1 -1
  285. package/dist/components/nylas-participants-custom-availability.js +1 -1
  286. package/dist/components/nylas-reminder-emails.js +1 -1
  287. package/dist/components/nylas-reminder-time.js +1 -1
  288. package/dist/components/nylas-scheduler-editor.js +128 -103
  289. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  290. package/dist/components/nylas-scheduling-method.js +1 -1
  291. package/dist/components/nylas-scheduling.js +47 -44
  292. package/dist/components/nylas-scheduling.js.map +1 -1
  293. package/dist/components/nylas-select-event-type.js +1 -1
  294. package/dist/components/nylas-selected-event-card.js +1 -1
  295. package/dist/components/nylas-specific-time-availability-picker.js +1 -1
  296. package/dist/components/nylas-time-window-picker.js +1 -1
  297. package/dist/components/nylas-timeslot-interval.js +1 -1
  298. package/dist/components/nylas-timeslot-picker.js +1 -1
  299. package/dist/components/{p-DjJOgfxK.js → p-1jCDFlwx.js} +9 -9
  300. package/dist/components/{p-DjJOgfxK.js.map → p-1jCDFlwx.js.map} +1 -1
  301. package/dist/components/{p-q7g_LEwC.js → p-36H4hxVv.js} +3 -3
  302. package/dist/components/{p-q7g_LEwC.js.map → p-36H4hxVv.js.map} +1 -1
  303. package/dist/components/{p-B2LU95MT.js → p-3FIo8Hrp.js} +3 -3
  304. package/dist/components/{p-B2LU95MT.js.map → p-3FIo8Hrp.js.map} +1 -1
  305. package/dist/components/{p-g9YD1HRv.js → p-4McmpmAg.js} +4 -4
  306. package/dist/components/{p-g9YD1HRv.js.map → p-4McmpmAg.js.map} +1 -1
  307. package/dist/components/{p-BTwTmU9e.js → p-6Seqe489.js} +21 -21
  308. package/dist/components/{p-BTwTmU9e.js.map → p-6Seqe489.js.map} +1 -1
  309. package/dist/components/{p-CL8ugNmu.js → p-8-JIv49C.js} +4 -4
  310. package/dist/components/{p-CL8ugNmu.js.map → p-8-JIv49C.js.map} +1 -1
  311. package/dist/components/{p-C4RTQIyO.js → p-9KfwmETj.js} +3 -3
  312. package/dist/components/{p-C4RTQIyO.js.map → p-9KfwmETj.js.map} +1 -1
  313. package/dist/components/{p-DGDbXfHm.js → p-B3irHRxH.js} +14 -14
  314. package/dist/components/{p-DGDbXfHm.js.map → p-B3irHRxH.js.map} +1 -1
  315. package/dist/components/{p-DZwGCUUK.js → p-B57gyFFu.js} +9 -9
  316. package/dist/components/{p-DZwGCUUK.js.map → p-B57gyFFu.js.map} +1 -1
  317. package/dist/components/{p-RPocf_FZ.js → p-BAi0-0s9.js} +19 -19
  318. package/dist/components/{p-RPocf_FZ.js.map → p-BAi0-0s9.js.map} +1 -1
  319. package/dist/components/{p-DcjGlnBR.js → p-BBWnrSjc.js} +3 -3
  320. package/dist/components/{p-DcjGlnBR.js.map → p-BBWnrSjc.js.map} +1 -1
  321. package/dist/components/{p-DBHtQK2b.js → p-BEvwJe37.js} +3 -3
  322. package/dist/components/{p-DBHtQK2b.js.map → p-BEvwJe37.js.map} +1 -1
  323. package/dist/components/{p-BuJdnN6-.js → p-BG5y4pBL.js} +4 -4
  324. package/dist/components/{p-BuJdnN6-.js.map → p-BG5y4pBL.js.map} +1 -1
  325. package/dist/components/{p-CRIlyxX5.js → p-BGcFPLlm.js} +10 -10
  326. package/dist/components/{p-CRIlyxX5.js.map → p-BGcFPLlm.js.map} +1 -1
  327. package/dist/components/{p-BoUo2hc7.js → p-BJbmwaXD.js} +3 -3
  328. package/dist/components/{p-BoUo2hc7.js.map → p-BJbmwaXD.js.map} +1 -1
  329. package/dist/components/{p-BzLxndYA.js → p-BMLPTwTQ.js} +7 -7
  330. package/dist/components/{p-BzLxndYA.js.map → p-BMLPTwTQ.js.map} +1 -1
  331. package/dist/components/{p-BrOgWk7y.js → p-BMv8LXnI.js} +3 -3
  332. package/dist/components/{p-BrOgWk7y.js.map → p-BMv8LXnI.js.map} +1 -1
  333. package/dist/components/{p-BWbQSVNH.js → p-BOYZzt-4.js} +7 -7
  334. package/dist/components/{p-BWbQSVNH.js.map → p-BOYZzt-4.js.map} +1 -1
  335. package/dist/components/{p-CdPtFwy6.js → p-BQ5o0vvR.js} +5 -5
  336. package/dist/components/{p-CdPtFwy6.js.map → p-BQ5o0vvR.js.map} +1 -1
  337. package/dist/components/{p-DPwhlVlN.js → p-BTqJQKYU.js} +3 -3
  338. package/dist/components/{p-DPwhlVlN.js.map → p-BTqJQKYU.js.map} +1 -1
  339. package/dist/components/{p-DUVwWh7e.js → p-BU16FiC8.js} +13 -13
  340. package/dist/components/{p-DUVwWh7e.js.map → p-BU16FiC8.js.map} +1 -1
  341. package/dist/components/{p-CpGRDWt9.js → p-BVIbhcW2.js} +4 -4
  342. package/dist/components/{p-CpGRDWt9.js.map → p-BVIbhcW2.js.map} +1 -1
  343. package/dist/components/{p-B2cPNmM_.js → p-BVZnq2zV.js} +9 -9
  344. package/dist/components/{p-B2cPNmM_.js.map → p-BVZnq2zV.js.map} +1 -1
  345. package/dist/components/{p-WABPA0YV.js → p-BVq4mTYg.js} +56 -28
  346. package/dist/components/p-BVq4mTYg.js.map +1 -0
  347. package/dist/components/{p-CuaQW941.js → p-BaX-h68d.js} +6 -6
  348. package/dist/components/{p-CuaQW941.js.map → p-BaX-h68d.js.map} +1 -1
  349. package/dist/components/{p-hipsVOV5.js → p-Baw3jP2X.js} +3 -3
  350. package/dist/components/{p-hipsVOV5.js.map → p-Baw3jP2X.js.map} +1 -1
  351. package/dist/components/{p-BnEkgCIs.js → p-Bbt9980R.js} +3 -3
  352. package/dist/components/{p-BnEkgCIs.js.map → p-Bbt9980R.js.map} +1 -1
  353. package/dist/components/{p-BAKh5tMf.js → p-BcHelLHv.js} +3 -3
  354. package/dist/components/{p-BAKh5tMf.js.map → p-BcHelLHv.js.map} +1 -1
  355. package/dist/components/{p-ChXM0wCn.js → p-BgzT-67i.js} +3 -3
  356. package/dist/components/{p-ChXM0wCn.js.map → p-BgzT-67i.js.map} +1 -1
  357. package/dist/components/{p-BqD6DKLT.js → p-BnLt26W8.js} +7 -7
  358. package/dist/components/{p-BqD6DKLT.js.map → p-BnLt26W8.js.map} +1 -1
  359. package/dist/components/{p-xMlGGw2N.js → p-BuYNWtp6.js} +3 -3
  360. package/dist/components/{p-xMlGGw2N.js.map → p-BuYNWtp6.js.map} +1 -1
  361. package/dist/components/{p-CyzGRI94.js → p-BvqNXgYj.js} +3 -3
  362. package/dist/components/{p-CyzGRI94.js.map → p-BvqNXgYj.js.map} +1 -1
  363. package/dist/components/{p-DDd7Mjvz.js → p-ByoRiTiK.js} +7 -7
  364. package/dist/components/{p-DDd7Mjvz.js.map → p-ByoRiTiK.js.map} +1 -1
  365. package/dist/components/{p-Ch_HOS-9.js → p-BzjixeLc.js} +7 -7
  366. package/dist/components/{p-Ch_HOS-9.js.map → p-BzjixeLc.js.map} +1 -1
  367. package/dist/components/{p-DfxhC7Fd.js → p-C1JOYWhj.js} +12 -12
  368. package/dist/components/{p-DfxhC7Fd.js.map → p-C1JOYWhj.js.map} +1 -1
  369. package/dist/components/{p-CzSowwcD.js → p-C2bWg9rc.js} +7 -7
  370. package/dist/components/{p-CzSowwcD.js.map → p-C2bWg9rc.js.map} +1 -1
  371. package/dist/components/{p-C4BZ4XFc.js → p-C35dU4J2.js} +3 -3
  372. package/dist/components/{p-C4BZ4XFc.js.map → p-C35dU4J2.js.map} +1 -1
  373. package/dist/components/{p-CvLWbTI_.js → p-C4QSwxPr.js} +3 -3
  374. package/dist/components/{p-CvLWbTI_.js.map → p-C4QSwxPr.js.map} +1 -1
  375. package/dist/components/{p-DEbbVkgj.js → p-C6ARzQ6M.js} +3 -3
  376. package/dist/components/{p-DEbbVkgj.js.map → p-C6ARzQ6M.js.map} +1 -1
  377. package/dist/components/{p-BYzkNeMW.js → p-CBjtU882.js} +5 -5
  378. package/dist/components/{p-BYzkNeMW.js.map → p-CBjtU882.js.map} +1 -1
  379. package/dist/components/{p-oRjUujH5.js → p-CDME1l9h.js} +8 -8
  380. package/dist/components/{p-oRjUujH5.js.map → p-CDME1l9h.js.map} +1 -1
  381. package/dist/components/{p-Dl0Yur5r.js → p-CGkcVt8h.js} +3 -3
  382. package/dist/components/{p-Dl0Yur5r.js.map → p-CGkcVt8h.js.map} +1 -1
  383. package/dist/components/{p-D0137Jos.js → p-CI1nvbUl.js} +10 -10
  384. package/dist/components/{p-D0137Jos.js.map → p-CI1nvbUl.js.map} +1 -1
  385. package/dist/components/{p-CUe11ohy.js → p-CKiOTF7Z.js} +7 -7
  386. package/dist/components/{p-CUe11ohy.js.map → p-CKiOTF7Z.js.map} +1 -1
  387. package/dist/components/{p-fwU4mtR0.js → p-COaWG_Zh.js} +5 -5
  388. package/dist/components/{p-fwU4mtR0.js.map → p-COaWG_Zh.js.map} +1 -1
  389. package/dist/components/{p-D5Swz0J4.js → p-CQvNQk_r.js} +10 -10
  390. package/dist/components/{p-D5Swz0J4.js.map → p-CQvNQk_r.js.map} +1 -1
  391. package/dist/components/{p-BBxu-pwN.js → p-CRWfdwTk.js} +14 -14
  392. package/dist/components/{p-BBxu-pwN.js.map → p-CRWfdwTk.js.map} +1 -1
  393. package/dist/components/{p-CahZPm95.js → p-CWNABkMS.js} +4 -4
  394. package/dist/components/{p-CahZPm95.js.map → p-CWNABkMS.js.map} +1 -1
  395. package/dist/components/p-CWplx7sA.js.map +1 -1
  396. package/dist/components/{p-CyWE9dXK.js → p-C_MBjjfN.js} +3 -3
  397. package/dist/components/{p-CyWE9dXK.js.map → p-C_MBjjfN.js.map} +1 -1
  398. package/dist/components/{p-DxDoo-4C.js → p-C_a8Brku.js} +4 -4
  399. package/dist/components/{p-DxDoo-4C.js.map → p-C_a8Brku.js.map} +1 -1
  400. package/dist/components/{p-D_daFt1t.js → p-CbIFnpIT.js} +10 -10
  401. package/dist/components/{p-D_daFt1t.js.map → p-CbIFnpIT.js.map} +1 -1
  402. package/dist/components/{p-CJvmK-NM.js → p-Cf47JDzZ.js} +3 -3
  403. package/dist/components/{p-CJvmK-NM.js.map → p-Cf47JDzZ.js.map} +1 -1
  404. package/dist/components/{p-CeKOSPvz.js → p-ChvVcov-.js} +8 -8
  405. package/dist/components/{p-CeKOSPvz.js.map → p-ChvVcov-.js.map} +1 -1
  406. package/dist/components/{p-D7z2dNXN.js → p-CixxWdv6.js} +3 -3
  407. package/dist/components/{p-D7z2dNXN.js.map → p-CixxWdv6.js.map} +1 -1
  408. package/dist/components/{p-BF0muZ9G.js → p-CkIBsfNB.js} +3 -3
  409. package/dist/components/{p-BF0muZ9G.js.map → p-CkIBsfNB.js.map} +1 -1
  410. package/dist/components/{p-BGbMXlLy.js → p-CneutSrB.js} +6 -6
  411. package/dist/components/{p-BGbMXlLy.js.map → p-CneutSrB.js.map} +1 -1
  412. package/dist/components/{p-D9mHh12b.js → p-Coy-5_RU.js} +8 -8
  413. package/dist/components/{p-D9mHh12b.js.map → p-Coy-5_RU.js.map} +1 -1
  414. package/dist/components/{p-CDDw-hf8.js → p-Cr0OL9Ww.js} +3 -3
  415. package/dist/components/{p-CDDw-hf8.js.map → p-Cr0OL9Ww.js.map} +1 -1
  416. package/dist/components/{p-CXkCnHr5.js → p-CrAcXVaG.js} +5 -5
  417. package/dist/components/{p-CXkCnHr5.js.map → p-CrAcXVaG.js.map} +1 -1
  418. package/dist/components/{p-BNuHkEZZ.js → p-CsyulOVn.js} +3 -3
  419. package/dist/components/{p-BNuHkEZZ.js.map → p-CsyulOVn.js.map} +1 -1
  420. package/dist/components/{p-DMwaGWVu.js → p-D-DEVTDE.js} +6 -6
  421. package/dist/components/{p-DMwaGWVu.js.map → p-D-DEVTDE.js.map} +1 -1
  422. package/dist/components/{p-BVH0Klhu.js → p-D0NY8UNC.js} +4 -4
  423. package/dist/components/{p-BVH0Klhu.js.map → p-D0NY8UNC.js.map} +1 -1
  424. package/dist/components/{p-BD4aqMeC.js → p-D1XyN1j_.js} +3 -3
  425. package/dist/components/{p-BD4aqMeC.js.map → p-D1XyN1j_.js.map} +1 -1
  426. package/dist/components/{p-D0qMgeBc.js → p-D30JsuKI.js} +6 -6
  427. package/dist/components/{p-D0qMgeBc.js.map → p-D30JsuKI.js.map} +1 -1
  428. package/dist/components/{p-BT5kT23k.js → p-D5y9oXD0.js} +3 -3
  429. package/dist/components/{p-BT5kT23k.js.map → p-D5y9oXD0.js.map} +1 -1
  430. package/dist/components/{p-3FTb1-in.js → p-D9XKQ809.js} +33 -33
  431. package/dist/components/{p-3FTb1-in.js.map → p-D9XKQ809.js.map} +1 -1
  432. package/dist/components/{p-BSfQxQEN.js → p-DA5RYBjv.js} +3 -3
  433. package/dist/components/{p-BSfQxQEN.js.map → p-DA5RYBjv.js.map} +1 -1
  434. package/dist/components/{p-Cyk3GcD_.js → p-DEI76q16.js} +3 -3
  435. package/dist/components/{p-Cyk3GcD_.js.map → p-DEI76q16.js.map} +1 -1
  436. package/dist/components/{p-UTn_XnKO.js → p-DEJGXMSG.js} +8 -8
  437. package/dist/components/{p-UTn_XnKO.js.map → p-DEJGXMSG.js.map} +1 -1
  438. package/dist/components/{p-DcXycU5_.js → p-DEggxpVo.js} +6 -6
  439. package/dist/components/{p-DcXycU5_.js.map → p-DEggxpVo.js.map} +1 -1
  440. package/dist/components/{p-eV80kRKP.js → p-DGEm3ZTt.js} +3 -3
  441. package/dist/components/{p-eV80kRKP.js.map → p-DGEm3ZTt.js.map} +1 -1
  442. package/dist/components/{p-Ce8gcoEa.js → p-DHb99Cgm.js} +3 -3
  443. package/dist/components/{p-Ce8gcoEa.js.map → p-DHb99Cgm.js.map} +1 -1
  444. package/dist/components/{p-CzVZs3uZ.js → p-DK6-bZYK.js} +3 -3
  445. package/dist/components/{p-CzVZs3uZ.js.map → p-DK6-bZYK.js.map} +1 -1
  446. package/dist/components/{p-CT64yPEO.js → p-DP99QPpi.js} +3 -3
  447. package/dist/components/{p-CT64yPEO.js.map → p-DP99QPpi.js.map} +1 -1
  448. package/dist/components/{p-DRXHxMKj.js → p-DRo0peiI.js} +82 -82
  449. package/dist/components/{p-DRXHxMKj.js.map → p-DRo0peiI.js.map} +1 -1
  450. package/dist/components/{p-kbilJltW.js → p-DTtKd-E-.js} +3 -3
  451. package/dist/components/{p-kbilJltW.js.map → p-DTtKd-E-.js.map} +1 -1
  452. package/dist/components/{p-Cs_iJUbv.js → p-DVNLlxnG.js} +3 -3
  453. package/dist/components/{p-Cs_iJUbv.js.map → p-DVNLlxnG.js.map} +1 -1
  454. package/dist/components/{p-Bsd63RFi.js → p-DXQVWZkn.js} +3 -3
  455. package/dist/components/{p-Bsd63RFi.js.map → p-DXQVWZkn.js.map} +1 -1
  456. package/dist/components/{p-ao6VxuAL.js → p-DY3hmp0T.js} +3 -3
  457. package/dist/components/{p-ao6VxuAL.js.map → p-DY3hmp0T.js.map} +1 -1
  458. package/dist/components/{p-CFeDwD40.js → p-DZJQ_Wck.js} +3 -3
  459. package/dist/components/{p-CFeDwD40.js.map → p-DZJQ_Wck.js.map} +1 -1
  460. package/dist/components/{p-UNYO4Uen.js → p-DZLca44K.js} +3 -3
  461. package/dist/components/{p-UNYO4Uen.js.map → p-DZLca44K.js.map} +1 -1
  462. package/dist/components/{p-Ci-pKDnr.js → p-DdUGpBp4.js} +6 -6
  463. package/dist/components/{p-Ci-pKDnr.js.map → p-DdUGpBp4.js.map} +1 -1
  464. package/dist/components/{p-O9btdnkK.js → p-DgN2U3G8.js} +15 -15
  465. package/dist/components/{p-O9btdnkK.js.map → p-DgN2U3G8.js.map} +1 -1
  466. package/dist/components/{p-Bvnci8k8.js → p-DhC3_luJ.js} +8 -8
  467. package/dist/components/{p-Bvnci8k8.js.map → p-DhC3_luJ.js.map} +1 -1
  468. package/dist/components/{p-uxA_4Zq1.js → p-Di9JUVGX.js} +9 -9
  469. package/dist/components/{p-uxA_4Zq1.js.map → p-Di9JUVGX.js.map} +1 -1
  470. package/dist/components/{p-BkqJQBCp.js → p-DjZdyHmc.js} +3 -3
  471. package/dist/components/{p-BkqJQBCp.js.map → p-DjZdyHmc.js.map} +1 -1
  472. package/dist/components/{p-CBBEkysd.js → p-DjtrM_3t.js} +3 -3
  473. package/dist/components/{p-CBBEkysd.js.map → p-DjtrM_3t.js.map} +1 -1
  474. package/dist/components/{p-C9Mlv9rC.js → p-DoA5ft2W.js} +3 -3
  475. package/dist/components/{p-C9Mlv9rC.js.map → p-DoA5ft2W.js.map} +1 -1
  476. package/dist/components/{p-Begx19Z9.js → p-DpipCjQf.js} +5 -5
  477. package/dist/components/{p-Begx19Z9.js.map → p-DpipCjQf.js.map} +1 -1
  478. package/dist/components/{p-C7ZpwRD0.js → p-DprQSn90.js} +3 -3
  479. package/dist/components/{p-C7ZpwRD0.js.map → p-DprQSn90.js.map} +1 -1
  480. package/dist/components/{p-d3kelm3z.js → p-DsvNvqOg.js} +3 -3
  481. package/dist/components/{p-d3kelm3z.js.map → p-DsvNvqOg.js.map} +1 -1
  482. package/dist/components/{p-wphqTozF.js → p-DtEl3UXW.js} +6 -6
  483. package/dist/components/{p-wphqTozF.js.map → p-DtEl3UXW.js.map} +1 -1
  484. package/dist/components/{p-BJ5a9k3B.js → p-GiOcqWdY.js} +7 -7
  485. package/dist/components/{p-BJ5a9k3B.js.map → p-GiOcqWdY.js.map} +1 -1
  486. package/dist/components/{p-C7J83Us-.js → p-IJzc7eB1.js} +3 -3
  487. package/dist/components/{p-C7J83Us-.js.map → p-IJzc7eB1.js.map} +1 -1
  488. package/dist/components/{p-jBYg7WMS.js → p-LgZAWXty.js} +3 -3
  489. package/dist/components/{p-jBYg7WMS.js.map → p-LgZAWXty.js.map} +1 -1
  490. package/dist/components/{p-NA5f_7b7.js → p-LopVARiX.js} +5 -5
  491. package/dist/components/{p-NA5f_7b7.js.map → p-LopVARiX.js.map} +1 -1
  492. package/dist/components/{p-D42UGkjM.js → p-UIE8SSzy.js} +3 -3
  493. package/dist/components/{p-D42UGkjM.js.map → p-UIE8SSzy.js.map} +1 -1
  494. package/dist/components/{p-Dj1TLa3T.js → p-VZFbCMYS.js} +3 -3
  495. package/dist/components/{p-Dj1TLa3T.js.map → p-VZFbCMYS.js.map} +1 -1
  496. package/dist/components/{p-BMmtU0fv.js → p-ViLIEy7H.js} +6 -6
  497. package/dist/components/{p-BMmtU0fv.js.map → p-ViLIEy7H.js.map} +1 -1
  498. package/dist/components/{p-qo42Sy8T.js → p-Yo5k5FWd.js} +15 -15
  499. package/dist/components/{p-qo42Sy8T.js.map → p-Yo5k5FWd.js.map} +1 -1
  500. package/dist/components/{p-nhhVpJed.js → p-cJqQhTj-.js} +10 -10
  501. package/dist/components/{p-nhhVpJed.js.map → p-cJqQhTj-.js.map} +1 -1
  502. package/dist/components/{p-LOCJMijY.js → p-cf3Hv5c6.js} +6 -6
  503. package/dist/components/{p-LOCJMijY.js.map → p-cf3Hv5c6.js.map} +1 -1
  504. package/dist/components/{p-BGCZ4yg1.js → p-erV6iEKy.js} +96 -96
  505. package/dist/components/{p-BGCZ4yg1.js.map → p-erV6iEKy.js.map} +1 -1
  506. package/dist/components/{p-DPPqmJvY.js → p-h9VWezZP.js} +4 -4
  507. package/dist/components/{p-DPPqmJvY.js.map → p-h9VWezZP.js.map} +1 -1
  508. package/dist/components/{p-37a4h3J_.js → p-kIZ75-15.js} +10 -10
  509. package/dist/components/{p-37a4h3J_.js.map → p-kIZ75-15.js.map} +1 -1
  510. package/dist/components/{p-DPL6BIu2.js → p-lDYP9du3.js} +9 -9
  511. package/dist/components/{p-DPL6BIu2.js.map → p-lDYP9du3.js.map} +1 -1
  512. package/dist/components/{p-D4gKLnje.js → p-mIi7Upj2.js} +16 -16
  513. package/dist/components/{p-D4gKLnje.js.map → p-mIi7Upj2.js.map} +1 -1
  514. package/dist/components/{p-CdBb4zI5.js → p-mkkcd81V.js} +17 -17
  515. package/dist/components/{p-CdBb4zI5.js.map → p-mkkcd81V.js.map} +1 -1
  516. package/dist/components/{p-DOryfnIf.js → p-mw0JEKw8.js} +5 -5
  517. package/dist/components/{p-DOryfnIf.js.map → p-mw0JEKw8.js.map} +1 -1
  518. package/dist/components/{p-DS6Ijr4M.js → p-n1qnMrWE.js} +3 -3
  519. package/dist/components/{p-DS6Ijr4M.js.map → p-n1qnMrWE.js.map} +1 -1
  520. package/dist/components/{p-wJgbEd5m.js → p-n4JDuNbH.js} +9 -9
  521. package/dist/components/{p-wJgbEd5m.js.map → p-n4JDuNbH.js.map} +1 -1
  522. package/dist/components/{p-DQNm7dzQ.js → p-oiP2Tfx1.js} +3 -3
  523. package/dist/components/{p-DQNm7dzQ.js.map → p-oiP2Tfx1.js.map} +1 -1
  524. package/dist/components/{p-96zW11tR.js → p-r182lPIw.js} +6 -6
  525. package/dist/components/{p-96zW11tR.js.map → p-r182lPIw.js.map} +1 -1
  526. package/dist/components/{p-ByDfkWkX.js → p-xXZAaFtS.js} +3 -3
  527. package/dist/components/{p-ByDfkWkX.js.map → p-xXZAaFtS.js.map} +1 -1
  528. package/dist/components/{p-OhUC7F_g.js → p-zT4P9vUn.js} +3 -3
  529. package/dist/components/{p-OhUC7F_g.js.map → p-zT4P9vUn.js.map} +1 -1
  530. package/dist/components/paintbrush-fill-icon.js +1 -1
  531. package/dist/components/paintbrush-icon.js +1 -1
  532. package/dist/components/people-icon.js +1 -1
  533. package/dist/components/person-clipboard-icon.js +1 -1
  534. package/dist/components/person-icon.js +1 -1
  535. package/dist/components/play-icon.js +1 -1
  536. package/dist/components/plus-icon.js +1 -1
  537. package/dist/components/radio-button-group.js +1 -1
  538. package/dist/components/refresh-icon.js +1 -1
  539. package/dist/components/reply-all-icon.js +1 -1
  540. package/dist/components/reply-icon.js +1 -1
  541. package/dist/components/search-icon.js +1 -1
  542. package/dist/components/select-dropdown.js +1 -1
  543. package/dist/components/sent-icon.js +1 -1
  544. package/dist/components/spam-icon.js +1 -1
  545. package/dist/components/star-icon.js +1 -1
  546. package/dist/components/stop-icon.js +1 -1
  547. package/dist/components/textarea-component.js +1 -1
  548. package/dist/components/time-period-selector.js +1 -1
  549. package/dist/components/toggle-switch.js +1 -1
  550. package/dist/components/tooltip-component.js +1 -1
  551. package/dist/components/translate-icon.js +1 -1
  552. package/dist/components/trash-fill-icon.js +1 -1
  553. package/dist/components/trash-icon.js +1 -1
  554. package/dist/components/underline-icon.js +1 -1
  555. package/dist/components/warning-icon.js +1 -1
  556. package/dist/components/zoom-icon.js +1 -1
  557. package/dist/esm/add-circle-icon_2.entry.js +2 -2
  558. package/dist/esm/archive-icon.entry.js +1 -1
  559. package/dist/esm/arrow-icon.entry.js +1 -1
  560. package/dist/esm/bold-icon.entry.js +1 -1
  561. package/dist/esm/button-component_2.entry.js +2 -2
  562. package/dist/esm/calendar-agenda-fill-icon_39.entry.js +47 -47
  563. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  564. package/dist/esm/calendar-check-icon.entry.js +1 -1
  565. package/dist/esm/calendar-icon.entry.js +1 -1
  566. package/dist/esm/checkbox-component.entry.js +1 -1
  567. package/dist/esm/checkbox-group_4.entry.js +5 -5
  568. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  569. package/dist/esm/checkmark-icon_14.entry.js +16 -16
  570. package/dist/esm/chevron-icon_3.entry.js +4 -4
  571. package/dist/esm/clock-icon_2.entry.js +2 -2
  572. package/dist/esm/delete-icon.entry.js +1 -1
  573. package/dist/esm/document-refresh-icon.entry.js +1 -1
  574. package/dist/esm/folder-icon.entry.js +1 -1
  575. package/dist/esm/forward-icon.entry.js +1 -1
  576. package/dist/esm/globe-icon_3.entry.js +5 -5
  577. package/dist/esm/google-logo-icon_6.entry.js +13 -13
  578. package/dist/esm/google-meet-icon_5.entry.js +5 -5
  579. package/dist/esm/inbox-icon.entry.js +1 -1
  580. package/dist/esm/info-icon_2.entry.js +3 -3
  581. package/dist/esm/input-component.entry.js +1 -1
  582. package/dist/esm/input-dropdown_2.entry.js +2 -2
  583. package/dist/esm/input-image-url_2.entry.js +2 -2
  584. package/dist/esm/italic-icon.entry.js +1 -1
  585. package/dist/esm/multi-select-dropdown.entry.js +2 -2
  586. package/dist/esm/nylas-booked-event-card_11.entry.js +47 -19
  587. package/dist/esm/nylas-booked-event-card_11.entry.js.map +1 -1
  588. package/dist/esm/nylas-form-card.entry.js +1 -1
  589. package/dist/esm/nylas-notification_2.entry.js +2 -2
  590. package/dist/esm/nylas-scheduler-editor.entry.js +29 -4
  591. package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
  592. package/dist/esm/nylas-scheduling.entry.js +9 -6
  593. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  594. package/dist/esm/person-icon.entry.js +1 -1
  595. package/dist/esm/play-icon.entry.js +1 -1
  596. package/dist/esm/plus-icon.entry.js +1 -1
  597. package/dist/esm/radio-button-group.entry.js +1 -1
  598. package/dist/esm/refresh-icon.entry.js +1 -1
  599. package/dist/esm/reply-all-icon.entry.js +1 -1
  600. package/dist/esm/reply-icon.entry.js +1 -1
  601. package/dist/esm/sent-icon.entry.js +1 -1
  602. package/dist/esm/spam-icon.entry.js +1 -1
  603. package/dist/esm/star-icon.entry.js +1 -1
  604. package/dist/esm/stop-icon.entry.js +1 -1
  605. package/dist/esm/textarea-component.entry.js +1 -1
  606. package/dist/esm/toggle-switch.entry.js +1 -1
  607. package/dist/esm/translate-icon.entry.js +1 -1
  608. package/dist/esm/trash-fill-icon.entry.js +1 -1
  609. package/dist/esm/underline-icon.entry.js +1 -1
  610. package/dist/esm/{version-iQhY7wWk.js → version-JnnkbSna.js} +3 -3
  611. package/dist/esm/version-JnnkbSna.js.map +1 -0
  612. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.esm.js.map +1 -1
  613. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  614. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  615. package/dist/nylas-web-elements/{p-219fd6f9.entry.js → p-00183807.entry.js} +2 -2
  616. package/dist/nylas-web-elements/p-080096b9.entry.js +2 -0
  617. package/dist/nylas-web-elements/p-204ef0b9.entry.js +2 -0
  618. package/dist/nylas-web-elements/{p-37c5834c.entry.js → p-20b88057.entry.js} +2 -2
  619. package/dist/nylas-web-elements/{p-87f52db7.entry.js → p-22a55c18.entry.js} +2 -2
  620. package/dist/nylas-web-elements/{p-11f478bd.entry.js → p-38c87a6e.entry.js} +2 -2
  621. package/dist/nylas-web-elements/{p-991b94bd.entry.js → p-3b627f4c.entry.js} +2 -2
  622. package/dist/nylas-web-elements/p-48188b92.entry.js +2 -0
  623. package/dist/nylas-web-elements/p-48188b92.entry.js.map +1 -0
  624. package/dist/nylas-web-elements/{p-932456ba.entry.js → p-4d170fc4.entry.js} +2 -2
  625. package/dist/nylas-web-elements/p-4dac5ab9.entry.js +2 -0
  626. package/dist/nylas-web-elements/{p-7fe0b3bb.entry.js.map → p-4dac5ab9.entry.js.map} +1 -1
  627. package/dist/nylas-web-elements/p-4f601ebb.entry.js +2 -0
  628. package/dist/nylas-web-elements/{p-3d1fd865.entry.js → p-50ffbf25.entry.js} +2 -2
  629. package/dist/nylas-web-elements/{p-81af9950.entry.js → p-54437b43.entry.js} +2 -2
  630. package/dist/nylas-web-elements/{p-f4516330.entry.js → p-55ce6edc.entry.js} +2 -2
  631. package/dist/nylas-web-elements/p-59d181d5.entry.js +2 -0
  632. package/dist/nylas-web-elements/p-6e8fdf58.entry.js +2 -0
  633. package/dist/nylas-web-elements/p-722e1419.entry.js +2 -0
  634. package/dist/nylas-web-elements/p-72662447.entry.js +2 -0
  635. package/dist/nylas-web-elements/{p-7b8b7718.entry.js → p-731891a8.entry.js} +2 -2
  636. package/dist/nylas-web-elements/{p-f45da541.entry.js → p-75647771.entry.js} +2 -2
  637. package/dist/nylas-web-elements/{p-eb5b77ab.entry.js → p-759d71a9.entry.js} +2 -2
  638. package/dist/nylas-web-elements/p-7928b915.entry.js +2 -0
  639. package/dist/nylas-web-elements/{p-0745cbcc.entry.js → p-7a877959.entry.js} +2 -2
  640. package/dist/nylas-web-elements/p-7d28bcb7.entry.js +2 -0
  641. package/dist/nylas-web-elements/{p-af340293.entry.js → p-81eaa606.entry.js} +2 -2
  642. package/dist/nylas-web-elements/p-828469d5.entry.js +2 -0
  643. package/dist/nylas-web-elements/{p-c96b6f73.entry.js → p-829e73ef.entry.js} +2 -2
  644. package/dist/nylas-web-elements/p-86d19f93.entry.js +2 -0
  645. package/dist/nylas-web-elements/p-86d19f93.entry.js.map +1 -0
  646. package/dist/nylas-web-elements/{p-1401a68f.entry.js → p-8c77020a.entry.js} +3 -3
  647. package/dist/nylas-web-elements/p-8c77020a.entry.js.map +1 -0
  648. package/dist/nylas-web-elements/p-9676f7ac.entry.js +2 -0
  649. package/dist/nylas-web-elements/{p-95c4f538.entry.js → p-9c0129c6.entry.js} +2 -2
  650. package/dist/nylas-web-elements/p-9cbcc79c.entry.js +2 -0
  651. package/dist/nylas-web-elements/{p-iQhY7wWk.js → p-JnnkbSna.js} +2 -2
  652. package/dist/nylas-web-elements/p-JnnkbSna.js.map +1 -0
  653. package/dist/nylas-web-elements/{p-7930474b.entry.js → p-a03ea995.entry.js} +2 -2
  654. package/dist/nylas-web-elements/{p-84c3921f.entry.js → p-a6c1f77e.entry.js} +2 -2
  655. package/dist/nylas-web-elements/{p-974fce52.entry.js → p-af92dd91.entry.js} +2 -2
  656. package/dist/nylas-web-elements/{p-9dd10333.entry.js → p-b180424a.entry.js} +2 -2
  657. package/dist/nylas-web-elements/{p-1741705d.entry.js → p-bade8744.entry.js} +2 -2
  658. package/dist/nylas-web-elements/{p-fed4cb19.entry.js → p-bd7a8916.entry.js} +2 -2
  659. package/dist/nylas-web-elements/{p-02343d66.entry.js → p-be15cad1.entry.js} +2 -2
  660. package/dist/nylas-web-elements/{p-0c276fdb.entry.js → p-c107eaf2.entry.js} +2 -2
  661. package/dist/nylas-web-elements/{p-7876f3e5.entry.js → p-c273be7d.entry.js} +2 -2
  662. package/dist/nylas-web-elements/{p-a5bb5b9d.entry.js → p-c93b620f.entry.js} +2 -2
  663. package/dist/nylas-web-elements/{p-c0f88f23.entry.js → p-cd97fc2f.entry.js} +2 -2
  664. package/dist/nylas-web-elements/p-dca1f249.entry.js +2 -0
  665. package/dist/nylas-web-elements/{p-2491c840.entry.js → p-e4353ee3.entry.js} +2 -2
  666. package/dist/nylas-web-elements/{p-1618c8ac.entry.js → p-eac0a540.entry.js} +3 -3
  667. package/dist/nylas-web-elements/p-edb44a77.entry.js +2 -0
  668. package/dist/nylas-web-elements/{p-d48d8562.entry.js → p-f4449902.entry.js} +2 -2
  669. package/dist/nylas-web-elements/p-fdf56450.entry.js +2 -0
  670. package/dist/nylas-web-elements/p-ff27e57b.entry.js +2 -0
  671. package/dist/types/common/types.d.ts +2 -0
  672. package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +4 -0
  673. package/dist/types/components.d.ts +4 -4
  674. package/dist/types/connector/shared/api/scheduler.d.ts +1 -0
  675. package/dist/types/types/index.d.ts +2 -0
  676. package/dist/types/version.d.ts +1 -1
  677. package/package.json +3 -3
  678. package/dist/cjs/version-Xu0ORQw8.js.map +0 -1
  679. package/dist/components/p-WABPA0YV.js.map +0 -1
  680. package/dist/esm/version-iQhY7wWk.js.map +0 -1
  681. package/dist/nylas-web-elements/p-1401a68f.entry.js.map +0 -1
  682. package/dist/nylas-web-elements/p-16db18a3.entry.js +0 -2
  683. package/dist/nylas-web-elements/p-37eedc9d.entry.js +0 -2
  684. package/dist/nylas-web-elements/p-43c3f331.entry.js +0 -2
  685. package/dist/nylas-web-elements/p-4a2bcec0.entry.js +0 -2
  686. package/dist/nylas-web-elements/p-4d04cfe9.entry.js +0 -2
  687. package/dist/nylas-web-elements/p-4d04cfe9.entry.js.map +0 -1
  688. package/dist/nylas-web-elements/p-55b2df61.entry.js +0 -2
  689. package/dist/nylas-web-elements/p-68195a72.entry.js +0 -2
  690. package/dist/nylas-web-elements/p-7fe0b3bb.entry.js +0 -2
  691. package/dist/nylas-web-elements/p-88e89256.entry.js +0 -2
  692. package/dist/nylas-web-elements/p-a3baa9bf.entry.js +0 -2
  693. package/dist/nylas-web-elements/p-a94cbeb7.entry.js +0 -2
  694. package/dist/nylas-web-elements/p-bca85255.entry.js +0 -2
  695. package/dist/nylas-web-elements/p-cb33346f.entry.js +0 -2
  696. package/dist/nylas-web-elements/p-cb33346f.entry.js.map +0 -1
  697. package/dist/nylas-web-elements/p-de990849.entry.js +0 -2
  698. package/dist/nylas-web-elements/p-e2dd457a.entry.js +0 -2
  699. package/dist/nylas-web-elements/p-e734cde9.entry.js +0 -2
  700. package/dist/nylas-web-elements/p-ed89219a.entry.js +0 -2
  701. package/dist/nylas-web-elements/p-f0406089.entry.js +0 -2
  702. package/dist/nylas-web-elements/p-f7f2c232.entry.js +0 -2
  703. package/dist/nylas-web-elements/p-iQhY7wWk.js.map +0 -1
  704. /package/dist/nylas-web-elements/{p-219fd6f9.entry.js.map → p-00183807.entry.js.map} +0 -0
  705. /package/dist/nylas-web-elements/{p-68195a72.entry.js.map → p-080096b9.entry.js.map} +0 -0
  706. /package/dist/nylas-web-elements/{p-a3baa9bf.entry.js.map → p-204ef0b9.entry.js.map} +0 -0
  707. /package/dist/nylas-web-elements/{p-37c5834c.entry.js.map → p-20b88057.entry.js.map} +0 -0
  708. /package/dist/nylas-web-elements/{p-87f52db7.entry.js.map → p-22a55c18.entry.js.map} +0 -0
  709. /package/dist/nylas-web-elements/{p-11f478bd.entry.js.map → p-38c87a6e.entry.js.map} +0 -0
  710. /package/dist/nylas-web-elements/{p-991b94bd.entry.js.map → p-3b627f4c.entry.js.map} +0 -0
  711. /package/dist/nylas-web-elements/{p-932456ba.entry.js.map → p-4d170fc4.entry.js.map} +0 -0
  712. /package/dist/nylas-web-elements/{p-f7f2c232.entry.js.map → p-4f601ebb.entry.js.map} +0 -0
  713. /package/dist/nylas-web-elements/{p-3d1fd865.entry.js.map → p-50ffbf25.entry.js.map} +0 -0
  714. /package/dist/nylas-web-elements/{p-81af9950.entry.js.map → p-54437b43.entry.js.map} +0 -0
  715. /package/dist/nylas-web-elements/{p-f4516330.entry.js.map → p-55ce6edc.entry.js.map} +0 -0
  716. /package/dist/nylas-web-elements/{p-55b2df61.entry.js.map → p-59d181d5.entry.js.map} +0 -0
  717. /package/dist/nylas-web-elements/{p-37eedc9d.entry.js.map → p-6e8fdf58.entry.js.map} +0 -0
  718. /package/dist/nylas-web-elements/{p-88e89256.entry.js.map → p-722e1419.entry.js.map} +0 -0
  719. /package/dist/nylas-web-elements/{p-43c3f331.entry.js.map → p-72662447.entry.js.map} +0 -0
  720. /package/dist/nylas-web-elements/{p-7b8b7718.entry.js.map → p-731891a8.entry.js.map} +0 -0
  721. /package/dist/nylas-web-elements/{p-f45da541.entry.js.map → p-75647771.entry.js.map} +0 -0
  722. /package/dist/nylas-web-elements/{p-eb5b77ab.entry.js.map → p-759d71a9.entry.js.map} +0 -0
  723. /package/dist/nylas-web-elements/{p-de990849.entry.js.map → p-7928b915.entry.js.map} +0 -0
  724. /package/dist/nylas-web-elements/{p-0745cbcc.entry.js.map → p-7a877959.entry.js.map} +0 -0
  725. /package/dist/nylas-web-elements/{p-16db18a3.entry.js.map → p-7d28bcb7.entry.js.map} +0 -0
  726. /package/dist/nylas-web-elements/{p-af340293.entry.js.map → p-81eaa606.entry.js.map} +0 -0
  727. /package/dist/nylas-web-elements/{p-bca85255.entry.js.map → p-828469d5.entry.js.map} +0 -0
  728. /package/dist/nylas-web-elements/{p-c96b6f73.entry.js.map → p-829e73ef.entry.js.map} +0 -0
  729. /package/dist/nylas-web-elements/{p-e734cde9.entry.js.map → p-9676f7ac.entry.js.map} +0 -0
  730. /package/dist/nylas-web-elements/{p-95c4f538.entry.js.map → p-9c0129c6.entry.js.map} +0 -0
  731. /package/dist/nylas-web-elements/{p-f0406089.entry.js.map → p-9cbcc79c.entry.js.map} +0 -0
  732. /package/dist/nylas-web-elements/{p-7930474b.entry.js.map → p-a03ea995.entry.js.map} +0 -0
  733. /package/dist/nylas-web-elements/{p-84c3921f.entry.js.map → p-a6c1f77e.entry.js.map} +0 -0
  734. /package/dist/nylas-web-elements/{p-974fce52.entry.js.map → p-af92dd91.entry.js.map} +0 -0
  735. /package/dist/nylas-web-elements/{p-9dd10333.entry.js.map → p-b180424a.entry.js.map} +0 -0
  736. /package/dist/nylas-web-elements/{p-1741705d.entry.js.map → p-bade8744.entry.js.map} +0 -0
  737. /package/dist/nylas-web-elements/{p-fed4cb19.entry.js.map → p-bd7a8916.entry.js.map} +0 -0
  738. /package/dist/nylas-web-elements/{p-02343d66.entry.js.map → p-be15cad1.entry.js.map} +0 -0
  739. /package/dist/nylas-web-elements/{p-0c276fdb.entry.js.map → p-c107eaf2.entry.js.map} +0 -0
  740. /package/dist/nylas-web-elements/{p-7876f3e5.entry.js.map → p-c273be7d.entry.js.map} +0 -0
  741. /package/dist/nylas-web-elements/{p-a5bb5b9d.entry.js.map → p-c93b620f.entry.js.map} +0 -0
  742. /package/dist/nylas-web-elements/{p-c0f88f23.entry.js.map → p-cd97fc2f.entry.js.map} +0 -0
  743. /package/dist/nylas-web-elements/{p-4a2bcec0.entry.js.map → p-dca1f249.entry.js.map} +0 -0
  744. /package/dist/nylas-web-elements/{p-2491c840.entry.js.map → p-e4353ee3.entry.js.map} +0 -0
  745. /package/dist/nylas-web-elements/{p-1618c8ac.entry.js.map → p-eac0a540.entry.js.map} +0 -0
  746. /package/dist/nylas-web-elements/{p-ed89219a.entry.js.map → p-edb44a77.entry.js.map} +0 -0
  747. /package/dist/nylas-web-elements/{p-d48d8562.entry.js.map → p-f4449902.entry.js.map} +0 -0
  748. /package/dist/nylas-web-elements/{p-a94cbeb7.entry.js.map → p-fdf56450.entry.js.map} +0 -0
  749. /package/dist/nylas-web-elements/{p-e2dd457a.entry.js.map → p-ff27e57b.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, h, F as Fragment, i as Host } from './p-Bht9ktsW.js';
2
2
  import { a as debug } from './p-CMNiSC4o.js';
3
- import { d as defineCustomElement$2 } from './p-CzVZs3uZ.js';
4
- import { d as defineCustomElement$1 } from './p-OhUC7F_g.js';
3
+ import { d as defineCustomElement$2 } from './p-DK6-bZYK.js';
4
+ import { d as defineCustomElement$1 } from './p-zT4P9vUn.js';
5
5
 
6
6
  const nylasNotificationCss = ":host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.notif{display:flex;padding:17px;align-items:flex-start;justify-content:space-between;gap:16px;border-radius:var(--nylas-border-radius-2x);border:1.5px solid var(--nylas-error);background:var(--nylas-base-0)}@media screen and (max-width: 768px){.notif{width:auto}}.notif .content{display:flex;flex-direction:row;gap:8px}.notif .content .message{font-size:14px;font-weight:400;color:var(--nylas-base-800)}.notif .content .message .title{font-size:16px;font-weight:600;color:var(--nylas-base-950);display:block}.notif .content .message .description{font-size:14px;font-weight:400;color:var(--nylas-base-800);display:block;word-break:break-word}.notif .content .icon.error{color:var(--nylas-error)}.notif.error{border-color:var(--nylas-error);background:rgb(255, 248, 248)}.notif.warning{border-color:var(--nylas-warning)}.notif.info{border-color:var(--nylas-info)}.notif.success{border-color:var(--nylas-success)}.notif .dismiss-btn{background:none;border:none;color:var(--nylas-base-950);cursor:pointer}";
7
7
 
@@ -87,7 +87,7 @@ const NylasNotification = proxyCustomElement(class NylasNotification extends H {
87
87
  this.notifications = this.notifications.filter(notif => notif.id !== id);
88
88
  }
89
89
  render() {
90
- return (h(Host, { key: '54d50ed0063714575ec6815e59f972c98ce58533' }, h(Fragment, { key: 'ad526ed3f38f423fae88b18b442349380e5e7066' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: '08406e75bea26072bdc4526fcfbb19ad0760c80d' }))));
90
+ return (h(Host, { key: '6e24c03af2aa4735c845663397db560e86f7b052' }, h(Fragment, { key: '35b6ab8546ae016a0763a277cb514a52b17dc886' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: 'd8186d4761f15cc02e391b5ecfccb8175c9f2c38' }))));
91
91
  }
92
92
  get host() { return this; }
93
93
  static get style() { return nylasNotificationCss; }
@@ -121,6 +121,6 @@ function defineCustomElement() {
121
121
  }
122
122
 
123
123
  export { NylasNotification as N, defineCustomElement as d };
124
- //# sourceMappingURL=p-DOryfnIf.js.map
124
+ //# sourceMappingURL=p-mw0JEKw8.js.map
125
125
 
126
- //# sourceMappingURL=p-DOryfnIf.js.map
126
+ //# sourceMappingURL=p-mw0JEKw8.js.map
@@ -1 +1 @@
1
- {"file":"p-DOryfnIf.js","mappings":";;;;;AAAA,MAAM,oBAAoB,GAAG,qsGAAqsG;;MCartG,iBAAiB,GAAAA,kBAAA,CAAA,MAAA,iBAAA,SAAAC,CAAA,CAAA;AAL9B,IAAA,WAAA,GAAA;;;;AAWU,QAAA,IAAG,CAAA,GAAA,GAAoB,IA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I,KAAK,CAAC,IAAI,KAAK,SAAS,KAAK,CAAA,CAAA,cAAA,EAAA,IAAA,CAAgB,CAAQ,EACpH,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACnB,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,OAAO,IAAE,KAAK,CAAC,KAAK,CAAQ,EACvC,KAAK,CAAC,WAAW,IAAI,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,aAAa,EAAA,EAAE,KAAK,CAAC,WAAW,CAAQ,CACrE,CACH,EACN,CAAA,CAAA,QAAA,EAAA,EAAQ,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAA,EAC3E,CAAc,CAAA,YAAA,EAAA,IAAA,CAAA,CACP,CACL,CACP,CAAC,EACF,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACC,CACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/scheduler/nylas-notification/nylas-notification.scss?tag=nylas-notification&encapsulation=shadow","src/components/scheduler/nylas-notification/nylas-notification.tsx"],"sourcesContent":["@use '../../../common/styles/variables' as *;\n\n:host {\n display: block;\n margin-bottom: -12px; // offset for the rounded border\n width: 100%;\n z-index: 1;\n @include default-css-variables;\n}\n.notif {\n display: flex;\n padding: 17px;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px;\n border-radius: var(--nylas-border-radius-2x);\n border: 1.5px solid var(--nylas-error);\n background: var(--nylas-base-0);\n\n @media #{$mobile} {\n width: auto;\n }\n .content {\n display: flex;\n flex-direction: row;\n gap: 8px;\n .message {\n font-size: 14px;\n font-weight: 400;\n color: var(--nylas-base-800);\n .title {\n font-size: 16px;\n font-weight: 600;\n color: var(--nylas-base-950);\n display: block;\n }\n .description {\n font-size: 14px;\n font-weight: 400;\n color: var(--nylas-base-800);\n display: block;\n word-break: break-word;\n }\n }\n .icon {\n &.error {\n color: var(--nylas-error);\n }\n }\n }\n\n &.error {\n border-color: var(--nylas-error);\n background: rgba(255, 248, 248, 1);\n }\n &.warning {\n border-color: var(--nylas-warning);\n }\n &.info {\n border-color: var(--nylas-info);\n }\n &.success {\n border-color: var(--nylas-success);\n }\n\n .dismiss-btn {\n background: none;\n border: none;\n color: var(--nylas-base-950);\n cursor: pointer;\n }\n}\n","import { Notification } from '@nylas/core';\nimport { Component, Fragment, Host, Listen, Prop, State, h } from '@stencil/core';\nimport { debug } from '@/utils/utils';\nimport { Element } from '@stencil/core';\n\n/**\n * The `nylas-notification` component is a UI component that displays notifications.\n */\n@Component({\n tag: 'nylas-notification',\n styleUrl: 'nylas-notification.scss',\n shadow: true,\n})\nexport class NylasNotification {\n @Element() host!: HTMLElement;\n\n /**\n * The time-to-live for notifications in milliseconds. Set to 'none' to disable auto-dismissal.\n */\n @Prop() ttl: number | 'none' = 5000;\n @Prop() allowedCategories: string[] = ['component', 'api', 'validation', 'invalid_session', 'auth'];\n @State() notifications: Notification[] = [];\n\n @Listen('nylasSchedulerError', { target: 'body' })\n onError(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Error: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('nylasSchedulerWarning', { target: 'body' })\n onWarning(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Warning: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('nylasSchedulerInfo', { target: 'body' })\n onInfo(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Info: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('nylasSchedulerSuccess', { target: 'body' })\n onSuccess(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Success: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('dismissNotification', { target: 'body' })\n onDismissNotification(event: CustomEvent<{ id: string }>) {\n this.dismissNotification(event.detail.id);\n }\n\n @Listen('nylasSchedulerClearNotifications', { target: 'body' })\n onClearNotifications(event: CustomEvent<{ host: HTMLElement }>) {\n if (event.detail.host && this.isChildOf(event.detail.host)) {\n this.notifications = [];\n }\n }\n\n isChildOf(parentHost: HTMLElement): boolean {\n let parent = this.host.parentNode;\n\n while (parent) {\n if (parent === parentHost) {\n return true;\n }\n if (parent instanceof ShadowRoot) {\n parent = parent.host;\n } else {\n parent = parent.parentNode;\n }\n }\n\n return false;\n }\n\n private handleNotification(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n const parentHost = event.detail.host;\n if (event.defaultPrevented) {\n debug(`[nylas-notification] Event default prevented`);\n return;\n }\n if (parentHost && !this.isChildOf(parentHost)) {\n debug(`[nylas-notification] Host not a parent`);\n return;\n }\n if (this.ttl === 0) {\n debug(`[nylas-notification] TTL is 0`);\n return;\n }\n if (this.allowedCategories.length > 0 && !this.allowedCategories.includes(event.detail.notification.category)) {\n debug(`[nylas-notification] Category not allowed`);\n return;\n }\n if (this.notifications.find(notif => notif.id === event.detail.notification.id)) {\n debug(`[nylas-notification] Notification already exists`);\n return;\n }\n\n this.notifications = [...this.notifications, { ...event.detail.notification }];\n if (event.detail.notification.ttl !== 'none') {\n const ttl = event.detail.notification.ttl ? event.detail.notification.ttl : (this.ttl as number);\n window.setTimeout(() => {\n this.notifications = this.notifications.filter(notif => notif.id !== event.detail.notification.id);\n }, ttl);\n }\n }\n\n private dismissNotification(id: string) {\n this.notifications = this.notifications.filter(notif => notif.id !== id);\n }\n\n render() {\n return (\n <Host>\n <Fragment>\n {this.notifications.map(notif => (\n <div class={`notif ${notif.type}`} key={notif.id}>\n <div class=\"content\">\n <span class={`icon ${notif.type}`}>{(notif.type === 'error' || notif.type === 'warning') && <warning-icon />}</span>\n <span class=\"message\">\n <span class=\"title\">{notif.title}</span>\n {notif.description && <span class=\"description\">{notif.description}</span>}\n </span>\n </div>\n <button class=\"dismiss-btn\" onClick={() => this.dismissNotification(notif.id)}>\n <close-icon />\n </button>\n </div>\n ))}\n <slot />\n </Fragment>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-mw0JEKw8.js","mappings":";;;;;AAAA,MAAM,oBAAoB,GAAG,qsGAAqsG;;MCartG,iBAAiB,GAAAA,kBAAA,CAAA,MAAA,iBAAA,SAAAC,CAAA,CAAA;AAL9B,IAAA,WAAA,GAAA;;;;AAWU,QAAA,IAAG,CAAA,GAAA,GAAoB,IAAI;AAC3B,QAAA,IAAA,CAAA,iBAAiB,GAAa,CAAC,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,CAAC;AAC1F,QAAA,IAAa,CAAA,aAAA,GAAmB,EAAE;AAkH5C;AA/GC,IAAA,OAAO,CAAC,KAAqE,EAAA;QAC3E,KAAK,CAAC,CAA+B,4BAAA,EAAA,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAE,CAAA,CAAC;AACvE,QAAA,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;;AAIhC,IAAA,SAAS,CAAC,KAAqE,EAAA;QAC7E,KAAK,CAAC,CAAiC,8BAAA,EAAA,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAE,CAAA,CAAC;AACzE,QAAA,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;;AAIhC,IAAA,MAAM,CAAC,KAAqE,EAAA;QAC1E,KAAK,CAAC,CAA8B,2BAAA,EAAA,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAE,CAAA,CAAC;AACtE,QAAA,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;;AAIhC,IAAA,SAAS,CAAC,KAAqE,EAAA;QAC7E,KAAK,CAAC,CAAiC,8BAAA,EAAA,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,KA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aAAa,CAAC,GAAG,CAAC,KAAK,KAC3B,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,CAAA,MAAA,EAAS,KAAK,CAAC,IAAI,CAAE,CAAA,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,EAAA,EAC9C,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClB,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,CAAQ,KAAA,EAAA,KAAK,CAAC,IAAI,CAAA,CAAE,EAAG,EAAA,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,KAAK,CAAA,CAAA,cAAA,EAAA,IAAA,CAAgB,CAAQ,EACpH,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACnB,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,OAAO,IAAE,KAAK,CAAC,KAAK,CAAQ,EACvC,KAAK,CAAC,WAAW,IAAI,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,aAAa,EAAA,EAAE,KAAK,CAAC,WAAW,CAAQ,CACrE,CACH,EACN,CAAA,CAAA,QAAA,EAAA,EAAQ,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAA,EAC3E,CAAc,CAAA,YAAA,EAAA,IAAA,CAAA,CACP,CACL,CACP,CAAC,EACF,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACC,CACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/scheduler/nylas-notification/nylas-notification.scss?tag=nylas-notification&encapsulation=shadow","src/components/scheduler/nylas-notification/nylas-notification.tsx"],"sourcesContent":["@use '../../../common/styles/variables' as *;\n\n:host {\n display: block;\n margin-bottom: -12px; // offset for the rounded border\n width: 100%;\n z-index: 1;\n @include default-css-variables;\n}\n.notif {\n display: flex;\n padding: 17px;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px;\n border-radius: var(--nylas-border-radius-2x);\n border: 1.5px solid var(--nylas-error);\n background: var(--nylas-base-0);\n\n @media #{$mobile} {\n width: auto;\n }\n .content {\n display: flex;\n flex-direction: row;\n gap: 8px;\n .message {\n font-size: 14px;\n font-weight: 400;\n color: var(--nylas-base-800);\n .title {\n font-size: 16px;\n font-weight: 600;\n color: var(--nylas-base-950);\n display: block;\n }\n .description {\n font-size: 14px;\n font-weight: 400;\n color: var(--nylas-base-800);\n display: block;\n word-break: break-word;\n }\n }\n .icon {\n &.error {\n color: var(--nylas-error);\n }\n }\n }\n\n &.error {\n border-color: var(--nylas-error);\n background: rgba(255, 248, 248, 1);\n }\n &.warning {\n border-color: var(--nylas-warning);\n }\n &.info {\n border-color: var(--nylas-info);\n }\n &.success {\n border-color: var(--nylas-success);\n }\n\n .dismiss-btn {\n background: none;\n border: none;\n color: var(--nylas-base-950);\n cursor: pointer;\n }\n}\n","import { Notification } from '@nylas/core';\nimport { Component, Fragment, Host, Listen, Prop, State, h } from '@stencil/core';\nimport { debug } from '@/utils/utils';\nimport { Element } from '@stencil/core';\n\n/**\n * The `nylas-notification` component is a UI component that displays notifications.\n */\n@Component({\n tag: 'nylas-notification',\n styleUrl: 'nylas-notification.scss',\n shadow: true,\n})\nexport class NylasNotification {\n @Element() host!: HTMLElement;\n\n /**\n * The time-to-live for notifications in milliseconds. Set to 'none' to disable auto-dismissal.\n */\n @Prop() ttl: number | 'none' = 5000;\n @Prop() allowedCategories: string[] = ['component', 'api', 'validation', 'invalid_session', 'auth'];\n @State() notifications: Notification[] = [];\n\n @Listen('nylasSchedulerError', { target: 'body' })\n onError(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Error: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('nylasSchedulerWarning', { target: 'body' })\n onWarning(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Warning: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('nylasSchedulerInfo', { target: 'body' })\n onInfo(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Info: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('nylasSchedulerSuccess', { target: 'body' })\n onSuccess(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n debug(`[nylas-notification] Success: ${event.detail.notification.title}`);\n this.handleNotification(event);\n }\n\n @Listen('dismissNotification', { target: 'body' })\n onDismissNotification(event: CustomEvent<{ id: string }>) {\n this.dismissNotification(event.detail.id);\n }\n\n @Listen('nylasSchedulerClearNotifications', { target: 'body' })\n onClearNotifications(event: CustomEvent<{ host: HTMLElement }>) {\n if (event.detail.host && this.isChildOf(event.detail.host)) {\n this.notifications = [];\n }\n }\n\n isChildOf(parentHost: HTMLElement): boolean {\n let parent = this.host.parentNode;\n\n while (parent) {\n if (parent === parentHost) {\n return true;\n }\n if (parent instanceof ShadowRoot) {\n parent = parent.host;\n } else {\n parent = parent.parentNode;\n }\n }\n\n return false;\n }\n\n private handleNotification(event: CustomEvent<{ notification: Notification; host: HTMLElement }>) {\n const parentHost = event.detail.host;\n if (event.defaultPrevented) {\n debug(`[nylas-notification] Event default prevented`);\n return;\n }\n if (parentHost && !this.isChildOf(parentHost)) {\n debug(`[nylas-notification] Host not a parent`);\n return;\n }\n if (this.ttl === 0) {\n debug(`[nylas-notification] TTL is 0`);\n return;\n }\n if (this.allowedCategories.length > 0 && !this.allowedCategories.includes(event.detail.notification.category)) {\n debug(`[nylas-notification] Category not allowed`);\n return;\n }\n if (this.notifications.find(notif => notif.id === event.detail.notification.id)) {\n debug(`[nylas-notification] Notification already exists`);\n return;\n }\n\n this.notifications = [...this.notifications, { ...event.detail.notification }];\n if (event.detail.notification.ttl !== 'none') {\n const ttl = event.detail.notification.ttl ? event.detail.notification.ttl : (this.ttl as number);\n window.setTimeout(() => {\n this.notifications = this.notifications.filter(notif => notif.id !== event.detail.notification.id);\n }, ttl);\n }\n }\n\n private dismissNotification(id: string) {\n this.notifications = this.notifications.filter(notif => notif.id !== id);\n }\n\n render() {\n return (\n <Host>\n <Fragment>\n {this.notifications.map(notif => (\n <div class={`notif ${notif.type}`} key={notif.id}>\n <div class=\"content\">\n <span class={`icon ${notif.type}`}>{(notif.type === 'error' || notif.type === 'warning') && <warning-icon />}</span>\n <span class=\"message\">\n <span class=\"title\">{notif.title}</span>\n {notif.description && <span class=\"description\">{notif.description}</span>}\n </span>\n </div>\n <button class=\"dismiss-btn\" onClick={() => this.dismissNotification(notif.id)}>\n <close-icon />\n </button>\n </div>\n ))}\n <slot />\n </Fragment>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -10,7 +10,7 @@ const GlobeIcon = proxyCustomElement(class GlobeIcon extends H {
10
10
  this.height = '16';
11
11
  }
12
12
  render() {
13
- return (h("svg", { key: 'cb0e3380c9fec6c904edcec530eda0df7d82b5fe', xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, h("path", { key: 'ba93585bd0da85eecebc7c2a3a8c7f705571b219', d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" })));
13
+ return (h("svg", { key: 'ac541f46077499263b2ac02b2c0f775f7bb00c45', xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, h("path", { key: '32f692274b15d0c57c77903c453570d39a7fa119', d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" })));
14
14
  }
15
15
  static get style() { return iconCss; }
16
16
  }, [258, "globe-icon", {
@@ -32,6 +32,6 @@ function defineCustomElement() {
32
32
  }
33
33
 
34
34
  export { GlobeIcon as G, defineCustomElement as d };
35
- //# sourceMappingURL=p-DS6Ijr4M.js.map
35
+ //# sourceMappingURL=p-n1qnMrWE.js.map
36
36
 
37
- //# sourceMappingURL=p-DS6Ijr4M.js.map
37
+ //# sourceMappingURL=p-n1qnMrWE.js.map
@@ -1 +1 @@
1
- {"file":"p-DS6Ijr4M.js","mappings":";;AAAA,MAAM,OAAO,GAAG,gCAAgC;;MCOnC,SAAS,GAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;AALtB,IAAA,WAAA,GAAA;;;AAMU,QAAA,IAAK,CAAA,KAAA,GAAW,IAAI;AACpB,QAAA,IAAM,CAAA,MAAA,GAAW,IAAI;AAY9B;IAVC,MAAM,GAAA;QACJ,QACE,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA,EAC7G,CACE,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAC,EAAC,uiDAAuiD,EACziD,IAAI,EAAC,cAAc,EAAA,CACnB,CACE;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/common/icons/icon.css?tag=globe-icon&encapsulation=scoped","src/common/icons/globe.tsx"],"sourcesContent":[":host {\n display: flex;\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'globe-icon',\n styleUrl: 'icon.css',\n scoped: true,\n})\nexport class GlobeIcon {\n @Prop() width: string = '16';\n @Prop() height: string = '16';\n\n render() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={this.width} height={this.height} viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-n1qnMrWE.js","mappings":";;AAAA,MAAM,OAAO,GAAG,gCAAgC;;MCOnC,SAAS,GAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;AALtB,IAAA,WAAA,GAAA;;;AAMU,QAAA,IAAK,CAAA,KAAA,GAAW,IAAI;AACpB,QAAA,IAAM,CAAA,MAAA,GAAW,IAAI;AAY9B;IAVC,MAAM,GAAA;QACJ,QACE,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA,EAC7G,CACE,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAC,EAAC,uiDAAuiD,EACziD,IAAI,EAAC,cAAc,EAAA,CACnB,CACE;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/common/icons/icon.css?tag=globe-icon&encapsulation=scoped","src/common/icons/globe.tsx"],"sourcesContent":[":host {\n display: flex;\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'globe-icon',\n styleUrl: 'icon.css',\n scoped: true,\n})\nexport class GlobeIcon {\n @Prop() width: string = '16';\n @Prop() height: string = '16';\n\n render() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width={this.width} height={this.height} viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n }\n}\n"],"version":3}
@@ -2,12 +2,12 @@ import { p as proxyCustomElement, H, e as createEvent, h, i as Host } from './p-
2
2
  import { R as RegisterComponent } from './p-CUlV7ZGv.js';
3
3
  import { a as debug } from './p-CMNiSC4o.js';
4
4
  import { i as instance } from './p-BjxQTsOy.js';
5
- import { d as defineCustomElement$6 } from './p-BVH0Klhu.js';
6
- import { d as defineCustomElement$5 } from './p-DcjGlnBR.js';
7
- import { d as defineCustomElement$4 } from './p-d3kelm3z.js';
8
- import { d as defineCustomElement$3 } from './p-C7ZpwRD0.js';
9
- import { d as defineCustomElement$2 } from './p-CdPtFwy6.js';
10
- import { d as defineCustomElement$1 } from './p-DxDoo-4C.js';
5
+ import { d as defineCustomElement$6 } from './p-D0NY8UNC.js';
6
+ import { d as defineCustomElement$5 } from './p-BBWnrSjc.js';
7
+ import { d as defineCustomElement$4 } from './p-DsvNvqOg.js';
8
+ import { d as defineCustomElement$3 } from './p-DprQSn90.js';
9
+ import { d as defineCustomElement$2 } from './p-BQ5o0vvR.js';
10
+ import { d as defineCustomElement$1 } from './p-C_a8Brku.js';
11
11
 
12
12
  const nylasCancelBookingFormCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;display:block;width:400px;font-family:var(--nylas-font-family)}.nylas-cancel-booking-form{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}.nylas-cancel-booking-form form{width:100%}.nylas-cancel-booking-form__title{font-size:18px;font-weight:600;margin-bottom:0;color:var(--nylas-base-900)}.nylas-cancel-booking-form__description{font-size:16px;font-style:normal;font-weight:400;line-height:140%;color:var(--nylas-base-600);padding-bottom:1.25rem}.nylas-cancel-booking-form__calendar-icon{width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}.footer{display:grid;grid-template-columns:1fr 1fr;width:100%;padding-top:1.25rem;gap:1rem;border-top:1px solid var(--nylas-base-200);margin-top:1.25rem}";
13
13
 
@@ -123,7 +123,7 @@ const NylasCancelBookingForm = proxyCustomElement(class NylasCancelBookingForm e
123
123
  }
124
124
  }
125
125
  render() {
126
- return (h(Host, { key: 'd9de6ee266a0ee13b2429a03ac95f6f86c1c6e77', part: "ncbf" }, h("div", { key: '31dffeabdcae67c6f0d1bb87ec666313d16d0b2c', class: "nylas-cancel-booking-form", part: "ncbf__card" }, h("div", { key: '0eb77ce5b1e32e31df2162388c76ba62938f7593', class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, h("calendar-cancel-icon", { key: 'ae85ac634e8e049c4f6fae60157c48cac2e60ae2' })), h("h3", { key: 'ba3fe93bdd97cfe33be9d780989ed4e84db05d8b', class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, instance.t('cancelBookingTitle')), h("div", { key: '2f0b4e8606f432ff1ace88a75faaf68f33c4c867', class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, !this.configSettings?.scheduler?.cancellation_policy ? `${instance.t('cancelBookingMessage')}` : this.cancellationPolicy), h("form", { key: '3c592a2c154c37e8a7f2c79872cd1f2ad6c02817', onSubmit: this.handleSubmitCancelBooking }, h("textarea-component", { key: 'acae5f3ba2b9cb055548c85e518c5a7fd7cee690', id: "cancel-reason", name: "cancel-reason", ref: el => (this.textareaRef = el), required: true, label: instance.t('reasonForCancellation'), class: this.cancellationError ? 'error' : '', part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), h("div", { key: 'e01e49ddc37da1d91ca0d3974bde3226629c61ca', class: "footer" }, h("button-component", { key: 'b8d5da288acab34bf379f1040a680e4eccb36479', variant: 'destructive', class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, instance.t('cancelBookingButton')), !!this.eventInfo && (h("button-component", { key: '91ce1514d28961e5ae2d5abad2b478d329009588', variant: 'basic', class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, instance.t('goBackButton'))))))));
126
+ return (h(Host, { key: '90848041a7055c75b4eb06fb9155ef70e6963e5d', part: "ncbf" }, h("div", { key: '410d74fc4254e4f21e50be699fd44be5229936d9', class: "nylas-cancel-booking-form", part: "ncbf__card" }, h("div", { key: '289842288017fd87347053d7b40695ca49b58b76', class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, h("calendar-cancel-icon", { key: '39d1a1426dcac695f1325f625b1ac77ac1c937ae' })), h("h3", { key: 'eba48288eafe22119be0128fd2485a4174a8aad7', class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, instance.t('cancelBookingTitle')), h("div", { key: '02a83da632d016a1bf59e283333e39fde9528026', class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, !this.configSettings?.scheduler?.cancellation_policy ? `${instance.t('cancelBookingMessage')}` : this.cancellationPolicy), h("form", { key: 'a261b4e4901b3e8cd75c74623c87a47d4e0b69a7', onSubmit: this.handleSubmitCancelBooking }, h("textarea-component", { key: '71e612522cf52d4c9a85e658c9598b0712be7949', id: "cancel-reason", name: "cancel-reason", ref: el => (this.textareaRef = el), required: true, label: instance.t('reasonForCancellation'), class: this.cancellationError ? 'error' : '', part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), h("div", { key: '5e42938e27563a2340240c587b23943849c31d6e', class: "footer" }, h("button-component", { key: '47332306035a276726b11817ad318142013322af', variant: 'destructive', class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, instance.t('cancelBookingButton')), !!this.eventInfo && (h("button-component", { key: '621fb07f17356ca91bd90599e14f82923cbf4c15', variant: 'basic', class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, instance.t('goBackButton'))))))));
127
127
  }
128
128
  get host() { return this; }
129
129
  static get watchers() { return {
@@ -244,6 +244,6 @@ function defineCustomElement() {
244
244
  }
245
245
 
246
246
  export { NylasCancelBookingForm as N, defineCustomElement as d };
247
- //# sourceMappingURL=p-wJgbEd5m.js.map
247
+ //# sourceMappingURL=p-n4JDuNbH.js.map
248
248
 
249
- //# sourceMappingURL=p-wJgbEd5m.js.map
249
+ //# sourceMappingURL=p-n4JDuNbH.js.map
@@ -1 +1 @@
1
- {"file":"p-wJgbEd5m.js","mappings":";;;;;;;;;;;AAAA,MAAM,yBAAyB,GAAG,qxGAAqxG;;;;;;;;;;;;;;;;MC6B1yG,sBAAsB,GAAAA,kBAAA,CAAA,MAAA,sBAAA,SAAAC,CAAA,CAAA;AALnC,IAAA,WAAA,GAAA;;;;;;;;;AA0FW,QAAA,IAAkB,CAAA,kBAAA,GAAW,EAAE;AAE/B,QAAA,IAAiB,CAAA,iBAAA,GAAW,EAAE;AAE9B,QAAA,IAAkB,CAAA,kBAAA,GAAW,IAAI,CAAC,cAAc,EAAE,SAAS,EAAE,mBAAmB,IAAI,wDAAwD;AAsD7I,QAAA,IAAmB,CAAA,mBAAA,GAAG,MAAK;AACjC,YAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;AACjC,SAAC;AAEO,QAAA,IAAA,CAAA,yBAAyB,GAAG,CAAC,KAAY,KAAI;AACnD,YAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,cAAc,EAAE;AACtB,YAAA,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;gBAC5B,IAAI,CAAC,iBAAiB,GAAGC,QAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC;gBAC9D,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAEA,QAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC,EAAE,WAAW,EAAEA,QAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC,EAAE,CAAC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AK,CAAC,MAAM,IAAI,OAAO,IAAI,MAAM,CAAC,EAAE;wBAClD,YAAY,CAAC,MAAM,CAAC;;;aAGzB;AACD,YAAA,mBAAmB,EAAE,OAAO,KAAwB,EAAE,uBAAgD,KAAI;gBACxG,KAAK,CAAC,2BAA2B,EAAE,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC;AACvE,gBAAA,uBAAuB,CAAC,SAAS,CAAC,MAAM,EAAE;aAC3C;AACD,YAAA,sBAAsB,EAAE,OAAO,KAA+C,EAAE,wBAAiD,KAAI;gBACnI,KAAK,CAAC,2BAA2B,EAAE,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC;aAC3E;AACD,YAAA,sBAAsB,EAAE,OAAO,KAAyC,EAAE,wBAAiD,KAAI;gBAC7H,KAAK,CAAC,2BAA2B,EAAE,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC;aAC3E;AACF,SAAA;AACD,QAAA,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;CAuCD,EAAA,sBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement","i18next"],"sources":["src/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.scss?tag=nylas-cancel-booking-form&encapsulation=shadow","src/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.tsx"],"sourcesContent":["@use '../../../common/styles/variables' as *;\n\n:host {\n @include default-css-variables;\n display: block;\n width: 400px;\n font-family: var(--nylas-font-family);\n}\n\n.nylas-cancel-booking-form {\n form {\n width: 100%;\n }\n\n display: flex;\n align-items: center;\n flex-direction: column;\n background-color: var(--nylas-base-0);\n color: var(--nylas-base-800);\n border-radius: var(--nylas-border-radius-2x);\n padding: 1.5rem;\n position: relative;\n box-shadow:\n 0px 1px 4px rgba(0, 0, 0, 0.1),\n 0px 3px 6px rgba(0, 0, 0, 0.06);\n}\n\n.nylas-cancel-booking-form__title {\n font-size: 18px;\n font-weight: 600;\n margin-bottom: 0;\n color: var(--nylas-base-900);\n}\n\n.nylas-cancel-booking-form__description {\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 140%;\n color: var(--nylas-base-600);\n padding-bottom: 1.25rem;\n}\n\n.nylas-cancel-booking-form__calendar-icon {\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n position: absolute;\n top: -1.25rem;\n left: 50%;\n transform: translateX(-50%);\n background-color: var(--nylas-base-0);\n border: 1px solid var(--nylas-base-200);\n}\n\ncalendar-cancel-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n\n.footer {\n display: grid;\n grid-template-columns: 1fr 1fr;\n width: 100%;\n padding-top: 1.25rem;\n gap: 1rem;\n border-top: 1px solid var(--nylas-base-200);\n margin-top: 1.25rem;\n}\n","import { RegisterComponent } from '@/common/register-component';\nimport { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from '@stencil/core';\nimport { NylasSchedulerConnector } from '../../..';\nimport { NylasScheduling } from '../nylas-scheduling/nylas-scheduling';\nimport { debug } from '@/utils/utils';\nimport { Notification, NylasSchedulerErrorResponse, ThemeConfig, Timeslot } from '@nylas/core';\nimport { ConfigSettings } from '@/stores/scheduler-store';\nimport i18next from '@/utils/i18n';\nimport { NylasEvent } from '@/common/types';\nimport { LANGUAGE_CODE } from '@/common/constants';\n\n/**\n * The `nylas-cancel-booking-form` component is a UI component that allows users to cancel a booking (DELETE request).\n * This component is also used to reject a booking (PUT request) by the organizer, if the prop `rejectBookingId` is provided.\n *\n * @part ncbf - The cancel booking form container.\n * @part ncbf__icon - The calendar icon.\n * @part ncbf__title - The title of the cancel booking form.\n * @part ncbf__description - The description of the cancel booking form.\n * @part ncbf__reason-textarea - The reason textarea.\n * @part ncbf__button-cta - The cancel booking form CTA button.\n * @part ncbf__button-outline - The cancel booking form outline button.\n * @part ncbf__card - The cancel booking form card.\n */\n@Component({\n tag: 'nylas-cancel-booking-form',\n styleUrl: 'nylas-cancel-booking-form.scss',\n shadow: true,\n})\nexport class NylasCancelBookingForm {\n private textareaRef?: HTMLTextareaComponentElement;\n /**\n * The host element.\n * Used to manage the host element of the provider.\n */\n @Element() private host!: HTMLNylasCancelBookingFormElement;\n\n /**\n * The booking ID to cancel.\n */\n @Prop() readonly cancelBookingId?: string;\n\n /**\n * The booking ID to reject.\n */\n @Prop() readonly rejectBookingId?: string;\n\n /**\n * The selected timeslot.\n */\n @Prop() readonly selectedTimeslot!: Timeslot;\n\n /**\n * @standalone\n * The config settings.\n */\n @Prop() readonly configSettings?: ConfigSettings;\n\n /**\n * @standalone\n * The event info.\n */\n @Prop() readonly eventInfo?: NylasEvent;\n\n /**\n * @standalone\n * The loading state.\n */\n @Prop() readonly isLoading?: boolean;\n\n /**\n * @standalone\n * The theme configuration.\n */\n @Prop({ attribute: 'theme-config' }) readonly themeConfig?: any;\n\n /**\n * @standalone\n * The default language.\n */\n @Prop() readonly selectedLanguage?: LANGUAGE_CODE;\n\n /**\n * This event is fired when the Go back button is clicked on the cancel booking form.\n */\n @Event() readonly goBackButtonClicked!: EventEmitter<void>;\n\n /**\n * This event is fired when the cancel booking form is submitted.\n */\n @Event() readonly cancelBookingFormSubmitted!: EventEmitter<{\n bookingId: string;\n action: 'reject' | 'cancel';\n reason: string;\n errorHandler?: (error: NylasSchedulerErrorResponse) => void;\n }>;\n\n /**\n * This event is only for triggering the validation on the text area for cancellation reason. This is for internal purposes only.\n */\n @Event() readonly triggerValidation!: EventEmitter<{}>;\n /**\n * This event is fired when an error occurs while cancelling the booking.\n */\n @Event() readonly cancelBookedEventError!: EventEmitter<NylasSchedulerErrorResponse>;\n\n /**\n * This event is fired when an error occurs in the booking form.\n */\n @Event() cancelBookingFormError!: EventEmitter<Partial<Notification>>;\n\n /**\n * The reason for cancellation.\n */\n @State() cancellationReason: string = '';\n\n @State() cancellationError: string = '';\n\n @State() cancellationPolicy: string = this.configSettings?.scheduler?.cancellation_policy || 'Your current timeslot will become available to others.';\n\n @Watch('configSettings')\n configSettingsChangedHandler(newValue: ConfigSettings) {\n this.cancellationPolicy = newValue?.scheduler?.cancellation_policy || 'Your current timeslot will become available to others.';\n }\n\n @Watch('themeConfig')\n themeConfigChanged(newThemeConfig: ThemeConfig) {\n this.applyThemeConfig(newThemeConfig);\n }\n\n @Watch('selectedLanguage')\n selectedLanguageChangedHandler(newVal: LANGUAGE_CODE, oldVal: LANGUAGE_CODE) {\n if (newVal === oldVal) return;\n i18next.changeLanguage(newVal);\n }\n\n connectedCallback() {\n debug(`[nylas-cancel-booking-form] Component connected`);\n // Use queueMicrotask to defer theme application until after React has set props.\n // This fixes the timing issue where connectedCallback fires before React sets themeConfig.\n queueMicrotask(() => {\n if (this.themeConfig) {\n this.applyThemeConfig(this.themeConfig);\n this.host.setAttribute('data-themed', '');\n }\n });\n }\n\n async componentWillLoad() {\n debug(`[nylas-cancel-booking-form] Component will load`);\n }\n\n async componentDidLoad() {\n debug(`[nylas-cancel-booking-form] Component did load`);\n if (!this.cancelBookingId) {\n debug(`[nylas-cancel-booking-form] No booking ID provided, \"cancelBookingId\" prop is required.`);\n }\n }\n\n disconnectedCallback() {\n debug(`[nylas-cancel-booking-form] Component disconnected`);\n }\n\n applyThemeConfig(themeConfig?: ThemeConfig) {\n if (themeConfig) {\n for (const [key, value] of Object.entries(themeConfig)) {\n this.host.style.setProperty(`${key}`, value);\n this.textareaRef?.style.setProperty(`${key}`, value);\n }\n }\n }\n\n private handleGoBackClicked = () => {\n this.goBackButtonClicked.emit();\n };\n\n private handleSubmitCancelBooking = (event: Event) => {\n this.triggerValidation.emit({});\n event.preventDefault();\n if (!this.cancellationReason) {\n this.cancellationError = i18next.t('cancellationErrorMessage');\n this.cancelBookingFormError.emit({ title: i18next.t('cancelBokingFormError'), description: i18next.t('cancellationErrorMessage') });\n return;\n }\n\n const minCancellationNotice = this.configSettings?.scheduler?.min_cancellation_notice;\n if (this.selectedTimeslot && minCancellationNotice) {\n const startTime = new Date(this.selectedTimeslot?.start_time);\n const dateTillCancellation = startTime.getTime() - minCancellationNotice * 60 * 1000;\n\n if (dateTillCancellation < new Date().getTime()) {\n this.cancelBookedEventError.emit({\n error: {\n title: i18next.t('cancellationErrorTitle'),\n message: i18next.t('minimumCancellationNoticeErrorMessage', { minCancellationNotice }),\n },\n });\n return;\n }\n }\n\n debug(`[nylas-cancel-booking-form] Cancel booking form submitted with reason: ${this.cancellationReason}`);\n const errorHandler = (error: NylasSchedulerErrorResponse) => {\n this.cancelBookedEventError.emit(error);\n };\n if (this.cancelBookingId) {\n this.cancelBookingFormSubmitted.emit({ bookingId: this.cancelBookingId, action: 'cancel', reason: this.cancellationReason, errorHandler });\n } else if (this.rejectBookingId) {\n this.cancelBookingFormSubmitted.emit({ bookingId: this.rejectBookingId, action: 'reject', reason: this.cancellationReason, errorHandler });\n }\n };\n\n @Listen('nylasFormInputChanged')\n handleNylasFormInputChanged(event: CustomEvent<{ value: string; name: string; error: string; label: string; type: string }>) {\n this.triggerValidation.emit({});\n if (event.detail.name === 'cancel-reason') {\n this.cancellationReason = event.detail.value;\n this.cancellationError = event.detail.error;\n }\n }\n\n @RegisterComponent<NylasCancelBookingForm, NylasSchedulerConnector, Exclude<NylasScheduling['stores'], undefined>>({\n name: 'nylas-cancel-booking-form',\n stateToProps: new Map([\n ['scheduler.configSettings', 'configSettings'],\n ['scheduler.selectedTimeslot', 'selectedTimeslot'],\n ['scheduler.eventInfo', 'eventInfo'],\n ['scheduler.isLoading', 'isLoading'],\n ['scheduler.cancelBookingId', 'cancelBookingId'],\n ['scheduler.rejectBookingId', 'rejectBookingId'],\n ['scheduler.themeConfig', 'themeConfig'],\n ['scheduler.selectedLanguage', 'selectedLanguage'],\n ]),\n eventToProps: {\n cancelBookingFormSubmitted: async (\n event: CustomEvent<{ bookingId: string; action: 'reject' | 'cancel'; reason: string; errorHandler?: (error: NylasSchedulerErrorResponse) => void }>,\n nylasSchedulerConnector: NylasSchedulerConnector,\n ) => {\n const { action, errorHandler } = event.detail;\n if (action === 'cancel') {\n const result = await nylasSchedulerConnector.scheduler.cancelBooking(event.detail.bookingId, event.detail.reason);\n if (errorHandler && (!result || 'error' in result)) {\n errorHandler(result);\n }\n } else if (action === 'reject') {\n const result = await nylasSchedulerConnector.scheduler.updateBooking({\n bookingId: event.detail.bookingId,\n status: 'cancelled',\n reason: event.detail.reason,\n });\n if (errorHandler && (!result || 'error' in result)) {\n errorHandler(result);\n }\n }\n },\n goBackButtonClicked: async (event: CustomEvent<void>, nylasSchedulerConnector: NylasSchedulerConnector) => {\n debug('nylas-cancel-booking-form', 'goBackButtonClicked', event.detail);\n nylasSchedulerConnector.scheduler.goBack();\n },\n cancelBookedEventError: async (event: CustomEvent<NylasSchedulerErrorResponse>, _nylasSchedulerConnector: NylasSchedulerConnector) => {\n debug('nylas-cancel-booking-form', 'cancelBookedEventError', event.detail);\n },\n cancelBookingFormError: async (event: CustomEvent<Partial<Notification>>, _nylasSchedulerConnector: NylasSchedulerConnector) => {\n debug('nylas-cancel-booking-form', 'cancelBookingFormError', event.detail);\n },\n },\n fireRegisterEvent: true,\n })\n render() {\n return (\n <Host part=\"ncbf\">\n <div class=\"nylas-cancel-booking-form\" part=\"ncbf__card\">\n <div class=\"nylas-cancel-booking-form__calendar-icon\" part=\"ncbf__icon\">\n <calendar-cancel-icon />\n </div>\n <h3 class=\"nylas-cancel-booking-form__title\" part=\"ncbf__title\">\n {i18next.t('cancelBookingTitle')}\n </h3>\n <div class=\"nylas-cancel-booking-form__description\" part=\"ncbf__description\">\n {!this.configSettings?.scheduler?.cancellation_policy ? `${i18next.t('cancelBookingMessage')}` : this.cancellationPolicy}\n </div>\n <form onSubmit={this.handleSubmitCancelBooking}>\n <textarea-component\n id=\"cancel-reason\"\n name=\"cancel-reason\"\n ref={el => (this.textareaRef = el)}\n required={true}\n label={i18next.t('reasonForCancellation')}\n class={this.cancellationError ? 'error' : ''}\n part=\"ncbf__reason-textarea\"\n defaultValue={this.cancellationReason}\n ></textarea-component>\n <div class=\"footer\">\n <button-component variant={'destructive'} class=\"cancel\" type=\"submit\" part=\"ncbf__button-cta\" disabled={this.isLoading}>\n {i18next.t('cancelBookingButton')}\n </button-component>\n {!!this.eventInfo && (\n <button-component variant={'basic'} class=\"back\" part=\"ncbf__button-outline\" onClick={this.handleGoBackClicked}>\n {i18next.t('goBackButton')}\n </button-component>\n )}\n </div>\n </form>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-n4JDuNbH.js","mappings":";;;;;;;;;;;AAAA,MAAM,yBAAyB,GAAG,qxGAAqxG;;;;;;;;;;;;;;;;MC6B1yG,sBAAsB,GAAAA,kBAAA,CAAA,MAAA,sBAAA,SAAAC,CAAA,CAAA;AALnC,IAAA,WAAA,GAAA;;;;;;;;;AA0FW,QAAA,IAAkB,CAAA,kBAAA,GAAW,EAAE;AAE/B,QAAA,IAAiB,CAAA,iBAAA,GAAW,EAAE;AAE9B,QAAA,IAAkB,CAAA,kBAAA,GAAW,IAAI,CAAC,cAAc,EAAE,SAAS,EAAE,mBAAmB,IAAI,wDAAwD;AAsD7I,QAAA,IAAmB,CAAA,mBAAA,GAAG,MAAK;AACjC,YAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;AACjC,SAAC;AAEO,QAAA,IAAA,CAAA,yBAAyB,GAAG,CAAC,KAAY,KAAI;AACnD,YAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,cAAc,EAAE;AACtB,YAAA,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;gBAC5B,IAAI,CAAC,iBAAiB,GAAGC,QAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC;gBAC9D,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAEA,QAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC,EAAE,WAAW,EAAEA,QAAO,CAAC,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5B,qBAAA,CAAC;oBACF,IAAI,YAAY,KAAK,CAAC,MAAM,IAAI,OAAO,IAAI,MAAM,CAAC,EAAE;wBAClD,YAAY,CAAC,MAAM,CAAC;;;aAGzB;AACD,YAAA,mBAAmB,EAAE,OAAO,KAAwB,EAAE,uBAAgD,KAAI;gBACxG,KAAK,CAAC,2BAA2B,EAAE,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC;AACvE,gBAAA,uBAAuB,CAAC,SAAS,CAAC,MAAM,EAAE;aAC3C;AACD,YAAA,sBAAsB,EAAE,OAAO,KAA+C,EAAE,wBAAiD,KAAI;gBACnI,KAAK,CAAC,2BAA2B,EAAE,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC;aAC3E;AACD,YAAA,sBAAsB,EAAE,OAAO,KAAyC,EAAE,wBAAiD,KAAI;gBAC7H,KAAK,CAAC,2BAA2B,EAAE,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC;aAC3E;AACF,SAAA;AACD,QAAA,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;CAuCD,EAAA,sBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement","i18next"],"sources":["src/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.scss?tag=nylas-cancel-booking-form&encapsulation=shadow","src/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.tsx"],"sourcesContent":["@use '../../../common/styles/variables' as *;\n\n:host {\n @include default-css-variables;\n display: block;\n width: 400px;\n font-family: var(--nylas-font-family);\n}\n\n.nylas-cancel-booking-form {\n form {\n width: 100%;\n }\n\n display: flex;\n align-items: center;\n flex-direction: column;\n background-color: var(--nylas-base-0);\n color: var(--nylas-base-800);\n border-radius: var(--nylas-border-radius-2x);\n padding: 1.5rem;\n position: relative;\n box-shadow:\n 0px 1px 4px rgba(0, 0, 0, 0.1),\n 0px 3px 6px rgba(0, 0, 0, 0.06);\n}\n\n.nylas-cancel-booking-form__title {\n font-size: 18px;\n font-weight: 600;\n margin-bottom: 0;\n color: var(--nylas-base-900);\n}\n\n.nylas-cancel-booking-form__description {\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 140%;\n color: var(--nylas-base-600);\n padding-bottom: 1.25rem;\n}\n\n.nylas-cancel-booking-form__calendar-icon {\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n position: absolute;\n top: -1.25rem;\n left: 50%;\n transform: translateX(-50%);\n background-color: var(--nylas-base-0);\n border: 1px solid var(--nylas-base-200);\n}\n\ncalendar-cancel-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n\n.footer {\n display: grid;\n grid-template-columns: 1fr 1fr;\n width: 100%;\n padding-top: 1.25rem;\n gap: 1rem;\n border-top: 1px solid var(--nylas-base-200);\n margin-top: 1.25rem;\n}\n","import { RegisterComponent } from '@/common/register-component';\nimport { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from '@stencil/core';\nimport { NylasSchedulerConnector } from '../../..';\nimport { NylasScheduling } from '../nylas-scheduling/nylas-scheduling';\nimport { debug } from '@/utils/utils';\nimport { Notification, NylasSchedulerErrorResponse, ThemeConfig, Timeslot } from '@nylas/core';\nimport { ConfigSettings } from '@/stores/scheduler-store';\nimport i18next from '@/utils/i18n';\nimport { NylasEvent } from '@/common/types';\nimport { LANGUAGE_CODE } from '@/common/constants';\n\n/**\n * The `nylas-cancel-booking-form` component is a UI component that allows users to cancel a booking (DELETE request).\n * This component is also used to reject a booking (PUT request) by the organizer, if the prop `rejectBookingId` is provided.\n *\n * @part ncbf - The cancel booking form container.\n * @part ncbf__icon - The calendar icon.\n * @part ncbf__title - The title of the cancel booking form.\n * @part ncbf__description - The description of the cancel booking form.\n * @part ncbf__reason-textarea - The reason textarea.\n * @part ncbf__button-cta - The cancel booking form CTA button.\n * @part ncbf__button-outline - The cancel booking form outline button.\n * @part ncbf__card - The cancel booking form card.\n */\n@Component({\n tag: 'nylas-cancel-booking-form',\n styleUrl: 'nylas-cancel-booking-form.scss',\n shadow: true,\n})\nexport class NylasCancelBookingForm {\n private textareaRef?: HTMLTextareaComponentElement;\n /**\n * The host element.\n * Used to manage the host element of the provider.\n */\n @Element() private host!: HTMLNylasCancelBookingFormElement;\n\n /**\n * The booking ID to cancel.\n */\n @Prop() readonly cancelBookingId?: string;\n\n /**\n * The booking ID to reject.\n */\n @Prop() readonly rejectBookingId?: string;\n\n /**\n * The selected timeslot.\n */\n @Prop() readonly selectedTimeslot!: Timeslot;\n\n /**\n * @standalone\n * The config settings.\n */\n @Prop() readonly configSettings?: ConfigSettings;\n\n /**\n * @standalone\n * The event info.\n */\n @Prop() readonly eventInfo?: NylasEvent;\n\n /**\n * @standalone\n * The loading state.\n */\n @Prop() readonly isLoading?: boolean;\n\n /**\n * @standalone\n * The theme configuration.\n */\n @Prop({ attribute: 'theme-config' }) readonly themeConfig?: any;\n\n /**\n * @standalone\n * The default language.\n */\n @Prop() readonly selectedLanguage?: LANGUAGE_CODE;\n\n /**\n * This event is fired when the Go back button is clicked on the cancel booking form.\n */\n @Event() readonly goBackButtonClicked!: EventEmitter<void>;\n\n /**\n * This event is fired when the cancel booking form is submitted.\n */\n @Event() readonly cancelBookingFormSubmitted!: EventEmitter<{\n bookingId: string;\n action: 'reject' | 'cancel';\n reason: string;\n errorHandler?: (error: NylasSchedulerErrorResponse) => void;\n }>;\n\n /**\n * This event is only for triggering the validation on the text area for cancellation reason. This is for internal purposes only.\n */\n @Event() readonly triggerValidation!: EventEmitter<{}>;\n /**\n * This event is fired when an error occurs while cancelling the booking.\n */\n @Event() readonly cancelBookedEventError!: EventEmitter<NylasSchedulerErrorResponse>;\n\n /**\n * This event is fired when an error occurs in the booking form.\n */\n @Event() cancelBookingFormError!: EventEmitter<Partial<Notification>>;\n\n /**\n * The reason for cancellation.\n */\n @State() cancellationReason: string = '';\n\n @State() cancellationError: string = '';\n\n @State() cancellationPolicy: string = this.configSettings?.scheduler?.cancellation_policy || 'Your current timeslot will become available to others.';\n\n @Watch('configSettings')\n configSettingsChangedHandler(newValue: ConfigSettings) {\n this.cancellationPolicy = newValue?.scheduler?.cancellation_policy || 'Your current timeslot will become available to others.';\n }\n\n @Watch('themeConfig')\n themeConfigChanged(newThemeConfig: ThemeConfig) {\n this.applyThemeConfig(newThemeConfig);\n }\n\n @Watch('selectedLanguage')\n selectedLanguageChangedHandler(newVal: LANGUAGE_CODE, oldVal: LANGUAGE_CODE) {\n if (newVal === oldVal) return;\n i18next.changeLanguage(newVal);\n }\n\n connectedCallback() {\n debug(`[nylas-cancel-booking-form] Component connected`);\n // Use queueMicrotask to defer theme application until after React has set props.\n // This fixes the timing issue where connectedCallback fires before React sets themeConfig.\n queueMicrotask(() => {\n if (this.themeConfig) {\n this.applyThemeConfig(this.themeConfig);\n this.host.setAttribute('data-themed', '');\n }\n });\n }\n\n async componentWillLoad() {\n debug(`[nylas-cancel-booking-form] Component will load`);\n }\n\n async componentDidLoad() {\n debug(`[nylas-cancel-booking-form] Component did load`);\n if (!this.cancelBookingId) {\n debug(`[nylas-cancel-booking-form] No booking ID provided, \"cancelBookingId\" prop is required.`);\n }\n }\n\n disconnectedCallback() {\n debug(`[nylas-cancel-booking-form] Component disconnected`);\n }\n\n applyThemeConfig(themeConfig?: ThemeConfig) {\n if (themeConfig) {\n for (const [key, value] of Object.entries(themeConfig)) {\n this.host.style.setProperty(`${key}`, value);\n this.textareaRef?.style.setProperty(`${key}`, value);\n }\n }\n }\n\n private handleGoBackClicked = () => {\n this.goBackButtonClicked.emit();\n };\n\n private handleSubmitCancelBooking = (event: Event) => {\n this.triggerValidation.emit({});\n event.preventDefault();\n if (!this.cancellationReason) {\n this.cancellationError = i18next.t('cancellationErrorMessage');\n this.cancelBookingFormError.emit({ title: i18next.t('cancelBokingFormError'), description: i18next.t('cancellationErrorMessage') });\n return;\n }\n\n const minCancellationNotice = this.configSettings?.scheduler?.min_cancellation_notice;\n if (this.selectedTimeslot && minCancellationNotice) {\n const startTime = new Date(this.selectedTimeslot?.start_time);\n const dateTillCancellation = startTime.getTime() - minCancellationNotice * 60 * 1000;\n\n if (dateTillCancellation < new Date().getTime()) {\n this.cancelBookedEventError.emit({\n error: {\n title: i18next.t('cancellationErrorTitle'),\n message: i18next.t('minimumCancellationNoticeErrorMessage', { minCancellationNotice }),\n },\n });\n return;\n }\n }\n\n debug(`[nylas-cancel-booking-form] Cancel booking form submitted with reason: ${this.cancellationReason}`);\n const errorHandler = (error: NylasSchedulerErrorResponse) => {\n this.cancelBookedEventError.emit(error);\n };\n if (this.cancelBookingId) {\n this.cancelBookingFormSubmitted.emit({ bookingId: this.cancelBookingId, action: 'cancel', reason: this.cancellationReason, errorHandler });\n } else if (this.rejectBookingId) {\n this.cancelBookingFormSubmitted.emit({ bookingId: this.rejectBookingId, action: 'reject', reason: this.cancellationReason, errorHandler });\n }\n };\n\n @Listen('nylasFormInputChanged')\n handleNylasFormInputChanged(event: CustomEvent<{ value: string; name: string; error: string; label: string; type: string }>) {\n this.triggerValidation.emit({});\n if (event.detail.name === 'cancel-reason') {\n this.cancellationReason = event.detail.value;\n this.cancellationError = event.detail.error;\n }\n }\n\n @RegisterComponent<NylasCancelBookingForm, NylasSchedulerConnector, Exclude<NylasScheduling['stores'], undefined>>({\n name: 'nylas-cancel-booking-form',\n stateToProps: new Map([\n ['scheduler.configSettings', 'configSettings'],\n ['scheduler.selectedTimeslot', 'selectedTimeslot'],\n ['scheduler.eventInfo', 'eventInfo'],\n ['scheduler.isLoading', 'isLoading'],\n ['scheduler.cancelBookingId', 'cancelBookingId'],\n ['scheduler.rejectBookingId', 'rejectBookingId'],\n ['scheduler.themeConfig', 'themeConfig'],\n ['scheduler.selectedLanguage', 'selectedLanguage'],\n ]),\n eventToProps: {\n cancelBookingFormSubmitted: async (\n event: CustomEvent<{ bookingId: string; action: 'reject' | 'cancel'; reason: string; errorHandler?: (error: NylasSchedulerErrorResponse) => void }>,\n nylasSchedulerConnector: NylasSchedulerConnector,\n ) => {\n const { action, errorHandler } = event.detail;\n if (action === 'cancel') {\n const result = await nylasSchedulerConnector.scheduler.cancelBooking(event.detail.bookingId, event.detail.reason);\n if (errorHandler && (!result || 'error' in result)) {\n errorHandler(result);\n }\n } else if (action === 'reject') {\n const result = await nylasSchedulerConnector.scheduler.updateBooking({\n bookingId: event.detail.bookingId,\n status: 'cancelled',\n reason: event.detail.reason,\n });\n if (errorHandler && (!result || 'error' in result)) {\n errorHandler(result);\n }\n }\n },\n goBackButtonClicked: async (event: CustomEvent<void>, nylasSchedulerConnector: NylasSchedulerConnector) => {\n debug('nylas-cancel-booking-form', 'goBackButtonClicked', event.detail);\n nylasSchedulerConnector.scheduler.goBack();\n },\n cancelBookedEventError: async (event: CustomEvent<NylasSchedulerErrorResponse>, _nylasSchedulerConnector: NylasSchedulerConnector) => {\n debug('nylas-cancel-booking-form', 'cancelBookedEventError', event.detail);\n },\n cancelBookingFormError: async (event: CustomEvent<Partial<Notification>>, _nylasSchedulerConnector: NylasSchedulerConnector) => {\n debug('nylas-cancel-booking-form', 'cancelBookingFormError', event.detail);\n },\n },\n fireRegisterEvent: true,\n })\n render() {\n return (\n <Host part=\"ncbf\">\n <div class=\"nylas-cancel-booking-form\" part=\"ncbf__card\">\n <div class=\"nylas-cancel-booking-form__calendar-icon\" part=\"ncbf__icon\">\n <calendar-cancel-icon />\n </div>\n <h3 class=\"nylas-cancel-booking-form__title\" part=\"ncbf__title\">\n {i18next.t('cancelBookingTitle')}\n </h3>\n <div class=\"nylas-cancel-booking-form__description\" part=\"ncbf__description\">\n {!this.configSettings?.scheduler?.cancellation_policy ? `${i18next.t('cancelBookingMessage')}` : this.cancellationPolicy}\n </div>\n <form onSubmit={this.handleSubmitCancelBooking}>\n <textarea-component\n id=\"cancel-reason\"\n name=\"cancel-reason\"\n ref={el => (this.textareaRef = el)}\n required={true}\n label={i18next.t('reasonForCancellation')}\n class={this.cancellationError ? 'error' : ''}\n part=\"ncbf__reason-textarea\"\n defaultValue={this.cancellationReason}\n ></textarea-component>\n <div class=\"footer\">\n <button-component variant={'destructive'} class=\"cancel\" type=\"submit\" part=\"ncbf__button-cta\" disabled={this.isLoading}>\n {i18next.t('cancelBookingButton')}\n </button-component>\n {!!this.eventInfo && (\n <button-component variant={'basic'} class=\"back\" part=\"ncbf__button-outline\" onClick={this.handleGoBackClicked}>\n {i18next.t('goBackButton')}\n </button-component>\n )}\n </div>\n </form>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -11309,9 +11309,9 @@ const feedbackSyncIntegration = buildFeedbackIntegration({
11309
11309
  getScreenshotIntegration: () => feedbackScreenshotIntegration,
11310
11310
  });
11311
11311
 
11312
- const version = '2.5.18';
11312
+ const version = '2.6.1';
11313
11313
 
11314
11314
  export { init as a, captureFeedback as b, captureMessage as c, feedbackSyncIntegration as f, isInitialized as i, version as v };
11315
- //# sourceMappingURL=p-DQNm7dzQ.js.map
11315
+ //# sourceMappingURL=p-oiP2Tfx1.js.map
11316
11316
 
11317
- //# sourceMappingURL=p-DQNm7dzQ.js.map
11317
+ //# sourceMappingURL=p-oiP2Tfx1.js.map