@nylas/web-elements 1.1.0-canary.4 → 1.1.0-canary.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/add-circle-icon.cjs.entry.js +1 -1
- package/dist/cjs/add-circle-icon_22.cjs.entry.js +224 -94
- package/dist/cjs/add-circle-icon_22.cjs.entry.js.map +1 -1
- package/dist/cjs/archive-icon.cjs.entry.js +1 -1
- package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
- package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
- package/dist/cjs/bold-icon.cjs.entry.js +1 -1
- package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
- package/dist/cjs/button-component.cjs.entry.js +2 -2
- package/dist/cjs/button-component.cjs.entry.js.map +1 -1
- package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
- package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js +4 -4
- package/dist/cjs/close-icon.cjs.entry.js +1 -1
- package/dist/cjs/{constants-6baf1f1d.js → constants-3e962931.js} +11 -1
- package/dist/cjs/{constants-6baf1f1d.js.map → constants-3e962931.js.map} +1 -1
- package/dist/cjs/{constants-0fba94a4.js → constants-d590922e.js} +11 -1
- package/dist/cjs/{constants-0fba94a4.js.map → constants-d590922e.js.map} +1 -1
- package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
- package/dist/cjs/flow-icon.cjs.entry.js +1 -1
- package/dist/cjs/folder-icon.cjs.entry.js +1 -1
- package/dist/cjs/forward-icon.cjs.entry.js +1 -1
- package/dist/cjs/forward-icon_6.cjs.entry.js +9 -9
- package/dist/cjs/globe-icon.cjs.entry.js +1 -1
- package/dist/cjs/google-logo-icon.cjs.entry.js +1 -1
- package/dist/cjs/google-logo-icon_4.cjs.entry.js +467 -0
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -0
- package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
- package/dist/cjs/index-7af03e3f.js +1 -158
- package/dist/cjs/index-c14ea8f5.js +1 -358
- package/dist/cjs/index.cjs.js +3 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{index.es-68425511.js → index.es-0a0f2d87.js} +9 -4
- package/dist/cjs/index.es-0a0f2d87.js.map +1 -0
- package/dist/cjs/{index.es-447c5aca.js → index.es-b12b7df1.js} +9 -4
- package/dist/cjs/index.es-b12b7df1.js.map +1 -0
- package/dist/cjs/info-icon.cjs.entry.js +1 -1
- package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/italic-icon.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-icon.cjs.entry.js +1 -1
- package/dist/cjs/location-icon.cjs.entry.js +1 -1
- package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
- package/dist/cjs/{mailbox-store-556bc7b6.js → mailbox-store-05fa3bec.js} +3 -3
- package/dist/cjs/{mailbox-store-556bc7b6.js.map → mailbox-store-05fa3bec.js.map} +1 -1
- package/dist/cjs/{mailbox-store-aacd75ff.js → mailbox-store-14531fd4.js} +3 -3
- package/dist/cjs/{mailbox-store-aacd75ff.js.map → mailbox-store-14531fd4.js.map} +1 -1
- package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
- package/dist/cjs/multi-select-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/nylas-additional-participants.cjs.entry.js +3 -3
- package/dist/cjs/nylas-api-request-27c25287.js +60 -0
- package/dist/cjs/nylas-api-request-27c25287.js.map +1 -0
- package/dist/cjs/nylas-api-request-abdb8dd8.js +58 -0
- package/dist/cjs/nylas-api-request-abdb8dd8.js.map +1 -0
- package/dist/cjs/nylas-availability-picker.cjs.entry.js +33 -16
- package/dist/cjs/nylas-availability-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booked-event-card.cjs.entry.js +3 -3
- package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +7 -7
- package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js +12 -6
- package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
- package/dist/cjs/nylas-buffer-time.cjs.entry.js +2 -2
- package/dist/cjs/nylas-calendar-picker.cjs.entry.js +13 -8
- package/dist/cjs/nylas-calendar-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +3 -3
- package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +3 -3
- package/dist/cjs/nylas-composer.cjs.entry.js +2 -2
- package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +21 -12
- package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js +85 -39
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-event-description.cjs.entry.js +15 -6
- package/dist/cjs/nylas-event-description.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-event-duration.cjs.entry.js +15 -10
- package/dist/cjs/nylas-event-duration.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-event-info.cjs.entry.js +3 -3
- package/dist/cjs/nylas-event-limits.cjs.entry.js +3 -3
- package/dist/cjs/nylas-event-title.cjs.entry.js +52 -12
- package/dist/cjs/nylas-event-title.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-form-card.cjs.entry.js +3 -3
- package/dist/cjs/nylas-if-state.cjs.entry.js +2 -2
- package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +24 -11
- package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-list-configurations.cjs.entry.js +129 -0
- package/dist/cjs/nylas-list-configurations.cjs.entry.js.map +1 -0
- package/dist/cjs/nylas-list-folders.cjs.entry.js +3 -3
- package/dist/cjs/nylas-list-threads.cjs.entry.js +3 -3
- package/dist/cjs/nylas-locale-switch.cjs.entry.js +3 -3
- package/dist/cjs/nylas-location-component.cjs.entry.js +17 -6
- package/dist/cjs/nylas-location-component.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-login.cjs.entry.js +3 -3
- package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
- package/dist/cjs/nylas-mailbox-pagination.cjs.entry.js +2 -2
- package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +3 -3
- package/dist/cjs/nylas-mailbox.cjs.entry.js +4 -4
- package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +28 -13
- package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-notification.cjs.entry.js +2 -2
- package/dist/cjs/nylas-provider.cjs.entry.js +6 -6
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +201 -75
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
- package/dist/cjs/nylas-selected-event-card.cjs.entry.js +3 -3
- package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +4 -4
- package/dist/cjs/nylas-threads-refresh.cjs.entry.js +4 -4
- package/dist/cjs/nylas-threads-search.cjs.entry.js +3 -3
- package/dist/cjs/nylas-time-window-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-view-email.cjs.entry.js +2 -2
- package/dist/cjs/nylas-view-thread.cjs.entry.js +3 -3
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/people-icon.cjs.entry.js +1 -1
- package/dist/cjs/play-icon.cjs.entry.js +1 -1
- package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
- package/dist/cjs/{register-component-d729f3f7.js → register-component-09ebdf31.js} +8 -2
- package/dist/cjs/register-component-09ebdf31.js.map +1 -0
- package/dist/cjs/{register-component-f1ebc65d.js → register-component-c8b6e907.js} +8 -2
- package/dist/cjs/register-component-c8b6e907.js.map +1 -0
- package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
- package/dist/cjs/reply-icon.cjs.entry.js +1 -1
- package/dist/cjs/scheduler-config-store-37690bf0.js +32 -0
- package/dist/cjs/scheduler-config-store-37690bf0.js.map +1 -0
- package/dist/cjs/scheduler-config-store-529c8d7e.js +32 -0
- package/dist/cjs/scheduler-config-store-529c8d7e.js.map +1 -0
- package/dist/cjs/{scheduler-store-7320f5d0.js → scheduler-store-0081970d.js} +16 -3
- package/dist/cjs/scheduler-store-0081970d.js.map +1 -0
- package/dist/cjs/{scheduler-store-4cb46b3c.js → scheduler-store-67dc1986.js} +16 -3
- package/dist/cjs/scheduler-store-67dc1986.js.map +1 -0
- package/dist/cjs/search-icon.cjs.entry.js +1 -1
- package/dist/cjs/select-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/sent-icon.cjs.entry.js +1 -1
- package/dist/cjs/spam-icon.cjs.entry.js +1 -1
- package/dist/cjs/star-icon.cjs.entry.js +1 -1
- package/dist/cjs/stop-icon.cjs.entry.js +1 -1
- package/dist/cjs/time-period-selector.cjs.entry.js +2 -2
- package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
- package/dist/cjs/translate-icon.cjs.entry.js +1 -1
- package/dist/cjs/trash-icon.cjs.entry.js +1 -1
- package/dist/cjs/underline-icon.cjs.entry.js +1 -1
- package/dist/cjs/{utils-53dd7574.js → utils-20663d54.js} +19 -1
- package/dist/cjs/utils-20663d54.js.map +1 -0
- package/dist/cjs/{utils-53298b01.js → utils-2c7f0895.js} +19 -1
- package/dist/cjs/{utils-53298b01.js.map → utils-2c7f0895.js.map} +1 -1
- package/dist/cjs/warning-icon.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/common/abstract-provider.js +7 -2
- package/dist/collection/common/abstract-provider.js.map +1 -1
- package/dist/collection/common/component-types.js.map +1 -1
- package/dist/collection/common/constants.js +9 -0
- package/dist/collection/common/constants.js.map +1 -1
- package/dist/collection/common/icons/add-circle.js +1 -1
- package/dist/collection/common/icons/archive.js +1 -1
- package/dist/collection/common/icons/arrow.js +1 -1
- package/dist/collection/common/icons/bold.js +1 -1
- package/dist/collection/common/icons/calendar-cancel.js +1 -1
- package/dist/collection/common/icons/calendar-check.js +1 -1
- package/dist/collection/common/icons/calendar-info.js +1 -1
- package/dist/collection/common/icons/calendar-patterns.js +1 -1
- package/dist/collection/common/icons/calendar.js +1 -1
- package/dist/collection/common/icons/checkmark-circle.js +1 -1
- package/dist/collection/common/icons/chevron.js +1 -1
- package/dist/collection/common/icons/close.js +1 -1
- package/dist/collection/common/icons/document-refresh.js +1 -1
- package/dist/collection/common/icons/flow.js +1 -1
- package/dist/collection/common/icons/folder.js +1 -1
- package/dist/collection/common/icons/forward.js +1 -1
- package/dist/collection/common/icons/globe.js +1 -1
- package/dist/collection/common/icons/google-logo.js +1 -1
- package/dist/collection/common/icons/inbox.js +1 -1
- package/dist/collection/common/icons/info.js +1 -1
- package/dist/collection/common/icons/italic.js +1 -1
- package/dist/collection/common/icons/loading.js +1 -1
- package/dist/collection/common/icons/location-off.js +1 -1
- package/dist/collection/common/icons/location.js +1 -1
- package/dist/collection/common/icons/microsoft-logo.js +1 -1
- package/dist/collection/common/icons/nylas-logo.js +1 -1
- package/dist/collection/common/icons/people.js +1 -1
- package/dist/collection/common/icons/play.js +1 -1
- package/dist/collection/common/icons/refresh.js +1 -1
- package/dist/collection/common/icons/reply-all.js +1 -1
- package/dist/collection/common/icons/reply.js +1 -1
- package/dist/collection/common/icons/search.js +1 -1
- package/dist/collection/common/icons/sent.js +1 -1
- package/dist/collection/common/icons/spam.js +1 -1
- package/dist/collection/common/icons/star.js +1 -1
- package/dist/collection/common/icons/stop.js +1 -1
- package/dist/collection/common/icons/translate.js +1 -1
- package/dist/collection/common/icons/trash.js +1 -1
- package/dist/collection/common/icons/underline.js +1 -1
- package/dist/collection/common/icons/warning.js +1 -1
- package/dist/collection/common/nylas-api-request.js +27 -7
- package/dist/collection/common/nylas-api-request.js.map +1 -1
- package/dist/collection/common/register-component.js +6 -0
- package/dist/collection/common/register-component.js.map +1 -1
- package/dist/collection/common/types.js.map +1 -1
- package/dist/collection/components/design-system/button-component/button-component.css +5 -0
- package/dist/collection/components/design-system/button-component/button-component.js +1 -1
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
- package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
- package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
- package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
- package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
- package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
- package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
- package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
- package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
- package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
- package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
- package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
- package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
- package/dist/collection/components/nylas-login/nylas-login.js +1 -1
- package/dist/collection/components/nylas-provider/nylas-provider.js +2 -2
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
- package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +55 -15
- package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js +32 -5
- package/dist/collection/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js +23 -14
- package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +41 -9
- package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.css +48 -9
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +167 -36
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js +4 -4
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.css +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +34 -2
- package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.css +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +35 -7
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.css +8 -1
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +83 -9
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +45 -9
- package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.css +142 -0
- package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js +330 -0
- package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.css +2 -2
- package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js +37 -3
- package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +49 -11
- package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js +30 -0
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.css +23 -2
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +108 -53
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
- package/dist/collection/connector/nylas-scheduler-config-connector/index.js.map +1 -1
- package/dist/collection/connector/nylas-scheduler-connector/errors/index.js +8 -0
- package/dist/collection/connector/nylas-scheduler-connector/errors/index.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler-config.js +118 -30
- package/dist/collection/connector/shared/api/scheduler-config.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler.js +6 -1
- package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/stores/scheduler-config-store.js +15 -2
- package/dist/collection/stores/scheduler-config-store.js.map +1 -1
- package/dist/collection/utils/utils.js +16 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/collection/utils/utils.spec.js +8 -1
- package/dist/collection/utils/utils.spec.js.map +1 -1
- package/dist/components/add-circle.js +1 -2
- package/dist/components/add-circle.js.map +1 -1
- package/dist/components/archive.js +1 -2
- package/dist/components/archive.js.map +1 -1
- package/dist/components/arrow.js +1 -2
- package/dist/components/arrow.js.map +1 -1
- package/dist/components/bold.js +1 -2
- package/dist/components/bold.js.map +1 -1
- package/dist/components/button-component2.js +2 -3
- package/dist/components/button-component2.js.map +1 -1
- package/dist/components/calendar-cancel.js +1 -2
- package/dist/components/calendar-cancel.js.map +1 -1
- package/dist/components/calendar-check.js +1 -2
- package/dist/components/calendar-check.js.map +1 -1
- package/dist/components/calendar-info.js +1 -2
- package/dist/components/calendar-info.js.map +1 -1
- package/dist/components/calendar-patterns.js +1 -2
- package/dist/components/calendar-patterns.js.map +1 -1
- package/dist/components/calendar.js +1 -2
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/checkmark-circle.js +1 -2
- package/dist/components/checkmark-circle.js.map +1 -1
- package/dist/components/chevron.js +1 -2
- package/dist/components/chevron.js.map +1 -1
- package/dist/components/close.js +1 -2
- package/dist/components/close.js.map +1 -1
- package/dist/components/constants.js +11 -2
- package/dist/components/constants.js.map +1 -1
- package/dist/components/document-refresh-icon.js +1 -2
- package/dist/components/document-refresh-icon.js.map +1 -1
- package/dist/components/flow.js +1 -2
- package/dist/components/flow.js.map +1 -1
- package/dist/components/focus-visible.js +1 -1
- package/dist/components/folder.js +1 -2
- package/dist/components/folder.js.map +1 -1
- package/dist/components/forward.js +1 -2
- package/dist/components/forward.js.map +1 -1
- package/dist/components/globe.js +1 -2
- package/dist/components/globe.js.map +1 -1
- package/dist/components/google-logo.js +1 -2
- package/dist/components/google-logo.js.map +1 -1
- package/dist/components/inbox.js +1 -2
- package/dist/components/inbox.js.map +1 -1
- package/dist/components/index.es.js +8 -3
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/info.js +1 -2
- package/dist/components/info.js.map +1 -1
- package/dist/components/italic.js +1 -2
- package/dist/components/italic.js.map +1 -1
- package/dist/components/loading.js +1 -2
- package/dist/components/loading.js.map +1 -1
- package/dist/components/location-off.js +1 -2
- package/dist/components/location-off.js.map +1 -1
- package/dist/components/location.js +1 -2
- package/dist/components/location.js.map +1 -1
- package/dist/components/mailbox-store.js +1 -1
- package/dist/components/microsoft-logo.js +1 -2
- package/dist/components/microsoft-logo.js.map +1 -1
- package/dist/components/multi-select-dropdown2.js +3 -4
- package/dist/components/multi-select-dropdown2.js.map +1 -1
- package/dist/components/nylas-additional-participants.js +2 -3
- package/dist/components/nylas-additional-participants.js.map +1 -1
- package/dist/components/nylas-api-request.js +28 -7
- package/dist/components/nylas-api-request.js.map +1 -1
- package/dist/components/nylas-availability-picker2.js +33 -15
- package/dist/components/nylas-availability-picker2.js.map +1 -1
- package/dist/components/nylas-booked-event-card2.js +1 -2
- package/dist/components/nylas-booked-event-card2.js.map +1 -1
- package/dist/components/nylas-booking-calendar-picker2.js +12 -6
- package/dist/components/nylas-booking-calendar-picker2.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +1 -2
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-buffer-time2.js +1 -2
- package/dist/components/nylas-buffer-time2.js.map +1 -1
- package/dist/components/nylas-calendar-picker2.js +13 -9
- package/dist/components/nylas-calendar-picker2.js.map +1 -1
- package/dist/components/nylas-cancel-booking-form2.js +2 -3
- package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancelled-event-card2.js +2 -3
- package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
- package/dist/components/nylas-composer2.js +2 -3
- package/dist/components/nylas-composer2.js.map +1 -1
- package/dist/components/nylas-custom-booking-flow2.js +23 -13
- package/dist/components/nylas-custom-booking-flow2.js.map +1 -1
- package/dist/components/nylas-date-picker2.js +1 -2
- package/dist/components/nylas-date-picker2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +91 -43
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-event-description2.js +17 -7
- package/dist/components/nylas-event-description2.js.map +1 -1
- package/dist/components/nylas-event-duration2.js +16 -10
- package/dist/components/nylas-event-duration2.js.map +1 -1
- package/dist/components/nylas-event-info2.js +2 -3
- package/dist/components/nylas-event-info2.js.map +1 -1
- package/dist/components/nylas-event-limits2.js +2 -3
- package/dist/components/nylas-event-limits2.js.map +1 -1
- package/dist/components/nylas-event-title2.js +56 -14
- package/dist/components/nylas-event-title2.js.map +1 -1
- package/dist/components/nylas-form-card2.js +2 -3
- package/dist/components/nylas-form-card2.js.map +1 -1
- package/dist/components/nylas-if-state.js +1 -2
- package/dist/components/nylas-if-state.js.map +1 -1
- package/dist/components/nylas-limit-future-bookings2.js +25 -11
- package/dist/components/nylas-limit-future-bookings2.js.map +1 -1
- package/dist/components/nylas-list-configurations.d.ts +11 -0
- package/dist/components/nylas-list-configurations.js +8 -0
- package/dist/components/nylas-list-configurations.js.map +1 -0
- package/dist/components/nylas-list-configurations2.js +159 -0
- package/dist/components/nylas-list-configurations2.js.map +1 -0
- package/dist/components/nylas-list-folders.js +2 -3
- package/dist/components/nylas-list-folders.js.map +1 -1
- package/dist/components/nylas-list-threads.js +2 -3
- package/dist/components/nylas-list-threads.js.map +1 -1
- package/dist/components/nylas-locale-switch2.js +0 -1
- package/dist/components/nylas-locale-switch2.js.map +1 -1
- package/dist/components/nylas-location-component2.js +18 -6
- package/dist/components/nylas-location-component2.js.map +1 -1
- package/dist/components/nylas-login.js +1 -2
- package/dist/components/nylas-login.js.map +1 -1
- package/dist/components/nylas-logo2.js +1 -2
- package/dist/components/nylas-logo2.js.map +1 -1
- package/dist/components/nylas-mailbox-pagination.js +1 -2
- package/dist/components/nylas-mailbox-pagination.js.map +1 -1
- package/dist/components/nylas-mailbox-toolbar-button.js +2 -3
- package/dist/components/nylas-mailbox-toolbar-button.js.map +1 -1
- package/dist/components/nylas-mailbox.js +2 -3
- package/dist/components/nylas-mailbox.js.map +1 -1
- package/dist/components/nylas-min-cancellation-notice2.js +29 -13
- package/dist/components/nylas-min-cancellation-notice2.js.map +1 -1
- package/dist/components/nylas-notification2.js +2 -3
- package/dist/components/nylas-notification2.js.map +1 -1
- package/dist/components/nylas-provider.js +2 -3
- package/dist/components/nylas-provider.js.map +1 -1
- package/dist/components/nylas-scheduler-editor.js +270 -136
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling.js +1 -2
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/nylas-selected-event-card2.js +1 -2
- package/dist/components/nylas-selected-event-card2.js.map +1 -1
- package/dist/components/nylas-summarize-message-button2.js +3 -4
- package/dist/components/nylas-summarize-message-button2.js.map +1 -1
- package/dist/components/nylas-threads-refresh.js +3 -4
- package/dist/components/nylas-threads-refresh.js.map +1 -1
- package/dist/components/nylas-threads-search.js +2 -3
- package/dist/components/nylas-threads-search.js.map +1 -1
- package/dist/components/nylas-time-window-picker2.js +2 -4
- package/dist/components/nylas-time-window-picker2.js.map +1 -1
- package/dist/components/nylas-timeslot-picker2.js +1 -2
- package/dist/components/nylas-timeslot-picker2.js.map +1 -1
- package/dist/components/nylas-view-email2.js +2 -4
- package/dist/components/nylas-view-email2.js.map +1 -1
- package/dist/components/nylas-view-thread.js +2 -3
- package/dist/components/nylas-view-thread.js.map +1 -1
- package/dist/components/people-icon.js +1 -2
- package/dist/components/people-icon.js.map +1 -1
- package/dist/components/play.js +1 -2
- package/dist/components/play.js.map +1 -1
- package/dist/components/refresh.js +1 -2
- package/dist/components/refresh.js.map +1 -1
- package/dist/components/register-component.js +7 -1
- package/dist/components/register-component.js.map +1 -1
- package/dist/components/reply-all.js +1 -2
- package/dist/components/reply-all.js.map +1 -1
- package/dist/components/reply.js +1 -2
- package/dist/components/reply.js.map +1 -1
- package/dist/components/scheduler-config-store.js +15 -2
- package/dist/components/scheduler-config-store.js.map +1 -1
- package/dist/components/scheduler-store.js +15 -2
- package/dist/components/scheduler-store.js.map +1 -1
- package/dist/components/search.js +1 -2
- package/dist/components/search.js.map +1 -1
- package/dist/components/select-dropdown2.js +2 -3
- package/dist/components/select-dropdown2.js.map +1 -1
- package/dist/components/sent.js +1 -2
- package/dist/components/sent.js.map +1 -1
- package/dist/components/spam.js +1 -2
- package/dist/components/spam.js.map +1 -1
- package/dist/components/star.js +1 -2
- package/dist/components/star.js.map +1 -1
- package/dist/components/stop.js +1 -2
- package/dist/components/stop.js.map +1 -1
- package/dist/components/time-period-selector2.js +2 -3
- package/dist/components/time-period-selector2.js.map +1 -1
- package/dist/components/toolitp-component.js +1 -2
- package/dist/components/toolitp-component.js.map +1 -1
- package/dist/components/translate.js +1 -2
- package/dist/components/translate.js.map +1 -1
- package/dist/components/trash.js +1 -2
- package/dist/components/trash.js.map +1 -1
- package/dist/components/underline.js +1 -2
- package/dist/components/underline.js.map +1 -1
- package/dist/components/utils.js +49 -2
- package/dist/components/utils.js.map +1 -1
- package/dist/components/warning.js +1 -2
- package/dist/components/warning.js.map +1 -1
- package/dist/esm/add-circle-icon.entry.js +1 -1
- package/dist/esm/add-circle-icon_22.entry.js +224 -94
- package/dist/esm/add-circle-icon_22.entry.js.map +1 -1
- package/dist/esm/archive-icon.entry.js +1 -1
- package/dist/esm/archive-icon_7.entry.js +7 -7
- package/dist/esm/arrow-icon.entry.js +1 -1
- package/dist/esm/bold-icon.entry.js +1 -1
- package/dist/esm/bold-icon_3.entry.js +3 -3
- package/dist/esm/button-component.entry.js +2 -2
- package/dist/esm/button-component.entry.js.map +1 -1
- package/dist/esm/calendar-cancel-icon.entry.js +1 -1
- package/dist/esm/calendar-check-icon.entry.js +1 -1
- package/dist/esm/calendar-check-icon_2.entry.js +2 -2
- package/dist/esm/calendar-icon.entry.js +1 -1
- package/dist/esm/calendar-info-icon.entry.js +1 -1
- package/dist/esm/calendar-patterns-icon.entry.js +1 -1
- package/dist/esm/checkmark-circle-icon.entry.js +1 -1
- package/dist/esm/chevron-icon.entry.js +1 -1
- package/dist/esm/chevron-icon_3.entry.js +4 -4
- package/dist/esm/close-icon.entry.js +1 -1
- package/dist/esm/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
- package/dist/esm/{constants-335dffcf.js.map → constants-bf39e913.js.map} +1 -1
- package/dist/esm/{constants-6ee60d6d.js → constants-f34b9c6e.js} +11 -2
- package/dist/esm/{constants-6ee60d6d.js.map → constants-f34b9c6e.js.map} +1 -1
- package/dist/esm/document-refresh-icon.entry.js +1 -1
- package/dist/esm/flow-icon.entry.js +1 -1
- package/dist/esm/folder-icon.entry.js +1 -1
- package/dist/esm/forward-icon.entry.js +1 -1
- package/dist/esm/forward-icon_6.entry.js +9 -9
- package/dist/esm/globe-icon.entry.js +1 -1
- package/dist/esm/google-logo-icon.entry.js +1 -1
- package/dist/esm/google-logo-icon_4.entry.js +460 -0
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -0
- package/dist/esm/inbox-icon.entry.js +1 -1
- package/dist/esm/index-7cb0dd3d.js +1 -158
- package/dist/esm/index-8362ce5c.js +1 -358
- package/dist/{nylas-web-elements/index.es-bd511719.js → esm/index.es-2842f8c8.js} +9 -4
- package/dist/esm/index.es-2842f8c8.js.map +1 -0
- package/dist/esm/{index.es-2578c6a5.js → index.es-f57e612a.js} +9 -4
- package/dist/esm/index.es-f57e612a.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/info-icon.entry.js +1 -1
- package/dist/esm/info-icon_2.entry.js +2 -2
- package/dist/esm/italic-icon.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-icon.entry.js +1 -1
- package/dist/esm/location-icon.entry.js +1 -1
- package/dist/esm/location-off-icon.entry.js +1 -1
- package/dist/esm/{mailbox-store-bb21512c.js → mailbox-store-47fc8a1a.js} +3 -3
- package/dist/esm/{mailbox-store-150cc456.js.map → mailbox-store-47fc8a1a.js.map} +1 -1
- package/dist/esm/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
- package/dist/{nylas-web-elements/mailbox-store-150cc456.js.map → esm/mailbox-store-d48269de.js.map} +1 -1
- package/dist/esm/microsoft-logo-icon.entry.js +1 -1
- package/dist/esm/multi-select-dropdown.entry.js +3 -3
- package/dist/esm/nylas-additional-participants.entry.js +3 -3
- package/dist/esm/nylas-api-request-8932547a.js +56 -0
- package/dist/esm/nylas-api-request-8932547a.js.map +1 -0
- package/dist/esm/nylas-api-request-b085294d.js +58 -0
- package/dist/esm/nylas-api-request-b085294d.js.map +1 -0
- package/dist/esm/nylas-availability-picker.entry.js +33 -16
- package/dist/esm/nylas-availability-picker.entry.js.map +1 -1
- package/dist/esm/nylas-booked-event-card.entry.js +3 -3
- package/dist/esm/nylas-booked-event-card_10.entry.js +7 -7
- package/dist/esm/nylas-booking-calendar-picker.entry.js +12 -6
- package/dist/esm/nylas-booking-calendar-picker.entry.js.map +1 -1
- package/dist/esm/nylas-booking-form.entry.js +2 -2
- package/dist/esm/nylas-buffer-time.entry.js +2 -2
- package/dist/esm/nylas-calendar-picker.entry.js +13 -8
- package/dist/esm/nylas-calendar-picker.entry.js.map +1 -1
- package/dist/esm/nylas-cancel-booking-form.entry.js +3 -3
- package/dist/esm/nylas-cancelled-event-card.entry.js +3 -3
- package/dist/esm/nylas-composer.entry.js +2 -2
- package/dist/esm/nylas-custom-booking-flow.entry.js +21 -12
- package/dist/esm/nylas-custom-booking-flow.entry.js.map +1 -1
- package/dist/esm/nylas-date-picker.entry.js +2 -2
- package/dist/esm/nylas-editor-tabs.entry.js +86 -40
- package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/esm/nylas-event-description.entry.js +15 -6
- package/dist/esm/nylas-event-description.entry.js.map +1 -1
- package/dist/esm/nylas-event-duration.entry.js +15 -10
- package/dist/esm/nylas-event-duration.entry.js.map +1 -1
- package/dist/esm/nylas-event-info.entry.js +3 -3
- package/dist/esm/nylas-event-limits.entry.js +3 -3
- package/dist/esm/nylas-event-title.entry.js +52 -12
- package/dist/esm/nylas-event-title.entry.js.map +1 -1
- package/dist/esm/nylas-form-card.entry.js +3 -3
- package/dist/esm/nylas-if-state.entry.js +2 -2
- package/dist/esm/nylas-limit-future-bookings.entry.js +24 -11
- package/dist/esm/nylas-limit-future-bookings.entry.js.map +1 -1
- package/dist/esm/nylas-list-configurations.entry.js +125 -0
- package/dist/esm/nylas-list-configurations.entry.js.map +1 -0
- package/dist/esm/nylas-list-folders.entry.js +3 -3
- package/dist/esm/nylas-list-threads.entry.js +3 -3
- package/dist/esm/nylas-locale-switch.entry.js +3 -3
- package/dist/esm/nylas-location-component.entry.js +17 -6
- package/dist/esm/nylas-location-component.entry.js.map +1 -1
- package/dist/esm/nylas-login.entry.js +3 -3
- package/dist/esm/nylas-logo.entry.js +1 -1
- package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
- package/dist/esm/nylas-mailbox-toolbar-button.entry.js +3 -3
- package/dist/esm/nylas-mailbox.entry.js +4 -4
- package/dist/esm/nylas-min-cancellation-notice.entry.js +28 -13
- package/dist/esm/nylas-min-cancellation-notice.entry.js.map +1 -1
- package/dist/esm/nylas-notification.entry.js +2 -2
- package/dist/esm/nylas-provider.entry.js +6 -6
- package/dist/esm/nylas-scheduler-editor.entry.js +202 -76
- package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +3 -3
- package/dist/esm/nylas-selected-event-card.entry.js +3 -3
- package/dist/esm/nylas-summarize-message-button.entry.js +4 -4
- package/dist/esm/nylas-threads-refresh.entry.js +4 -4
- package/dist/esm/nylas-threads-search.entry.js +3 -3
- package/dist/esm/nylas-time-window-picker.entry.js +2 -2
- package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
- package/dist/esm/nylas-view-email.entry.js +2 -2
- package/dist/esm/nylas-view-thread.entry.js +3 -3
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/people-icon.entry.js +1 -1
- package/dist/esm/play-icon.entry.js +1 -1
- package/dist/esm/play-icon_2.entry.js +2 -2
- package/dist/esm/refresh-icon.entry.js +1 -1
- package/dist/esm/{register-component-dc659dc3.js → register-component-cf5c8420.js} +8 -2
- package/dist/esm/register-component-cf5c8420.js.map +1 -0
- package/dist/{nylas-web-elements/register-component-0645dce0.js → esm/register-component-e5afe237.js} +8 -2
- package/dist/esm/register-component-e5afe237.js.map +1 -0
- package/dist/esm/reply-all-icon.entry.js +1 -1
- package/dist/esm/reply-icon.entry.js +1 -1
- package/dist/esm/scheduler-config-store-07d98279.js +30 -0
- package/dist/esm/scheduler-config-store-07d98279.js.map +1 -0
- package/dist/esm/scheduler-config-store-8f2e658e.js +30 -0
- package/dist/esm/scheduler-config-store-8f2e658e.js.map +1 -0
- package/dist/{nylas-web-elements/scheduler-store-4d0a4f8a.js → esm/scheduler-store-66c2168c.js} +16 -3
- package/dist/esm/scheduler-store-66c2168c.js.map +1 -0
- package/dist/esm/{scheduler-store-72116723.js → scheduler-store-a175fc3e.js} +16 -3
- package/dist/esm/scheduler-store-a175fc3e.js.map +1 -0
- package/dist/esm/search-icon.entry.js +1 -1
- package/dist/esm/select-dropdown.entry.js +2 -2
- package/dist/esm/sent-icon.entry.js +1 -1
- package/dist/esm/spam-icon.entry.js +1 -1
- package/dist/esm/star-icon.entry.js +1 -1
- package/dist/esm/stop-icon.entry.js +1 -1
- package/dist/esm/time-period-selector.entry.js +2 -2
- package/dist/esm/tooltip-component.entry.js +1 -1
- package/dist/esm/translate-icon.entry.js +1 -1
- package/dist/esm/trash-icon.entry.js +1 -1
- package/dist/esm/underline-icon.entry.js +1 -1
- package/dist/esm/{utils-3a8d433a.js → utils-73d8a928.js} +18 -2
- package/dist/{nylas-web-elements/utils-3a8d433a.js.map → esm/utils-73d8a928.js.map} +1 -1
- package/dist/esm/{utils-c00bdc3c.js → utils-d6204242.js} +18 -2
- package/dist/esm/utils-d6204242.js.map +1 -0
- package/dist/esm/warning-icon.entry.js +1 -1
- package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
- package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
- package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
- package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
- package/dist/nylas-web-elements/button-component.entry.js +2 -2
- package/dist/nylas-web-elements/button-component.entry.js.map +1 -1
- package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
- package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
- package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
- package/dist/nylas-web-elements/close-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{constants-335dffcf.js → constants-bf39e913.js} +11 -2
- package/dist/nylas-web-elements/{constants-335dffcf.js.map → constants-bf39e913.js.map} +1 -1
- package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
- package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
- package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
- package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
- package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
- package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
- package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
- package/dist/{esm/index.es-bd511719.js → nylas-web-elements/index.es-2842f8c8.js} +9 -4
- package/dist/nylas-web-elements/index.es-2842f8c8.js.map +1 -0
- package/dist/nylas-web-elements/index.esm.js +3 -1
- package/dist/nylas-web-elements/index.esm.js.map +1 -1
- package/dist/nylas-web-elements/info-icon.entry.js +1 -1
- package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
- package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
- package/dist/nylas-web-elements/location-icon.entry.js +1 -1
- package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
- package/dist/{esm/mailbox-store-bb21512c.js.map → nylas-web-elements/mailbox-store-d48269de.js.map} +1 -1
- package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
- package/dist/nylas-web-elements/multi-select-dropdown.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-additional-participants.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-api-request-b085294d.js +58 -0
- package/dist/nylas-web-elements/nylas-api-request-b085294d.js.map +1 -0
- package/dist/nylas-web-elements/nylas-availability-picker.entry.js +33 -16
- package/dist/nylas-web-elements/nylas-availability-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +12 -6
- package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +13 -8
- package/dist/nylas-web-elements/nylas-calendar-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-composer.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +21 -12
- package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +86 -40
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-event-description.entry.js +15 -6
- package/dist/nylas-web-elements/nylas-event-description.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-event-duration.entry.js +15 -10
- package/dist/nylas-web-elements/nylas-event-duration.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-event-title.entry.js +52 -12
- package/dist/nylas-web-elements/nylas-event-title.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-if-state.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +24 -11
- package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-list-configurations.entry.js +125 -0
- package/dist/nylas-web-elements/nylas-list-configurations.entry.js.map +1 -0
- package/dist/nylas-web-elements/nylas-list-folders.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-list-threads.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-location-component.entry.js +17 -6
- package/dist/nylas-web-elements/nylas-location-component.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-login.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
- package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-mailbox.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +28 -13
- package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-notification.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-provider.entry.js +6 -6
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +202 -76
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-threads-search.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-view-email.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-view-thread.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/p-00a9efc1.entry.js +2 -0
- package/dist/nylas-web-elements/p-1a91cce5.entry.js +2 -0
- package/dist/nylas-web-elements/p-1a91cce5.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-3631e6e5.entry.js → p-1d25ca06.entry.js} +2 -2
- package/dist/nylas-web-elements/p-1e445e86.entry.js +2 -0
- package/dist/nylas-web-elements/{p-395f49eb.entry.js → p-2081b475.entry.js} +2 -2
- package/dist/nylas-web-elements/p-22e5436c.js +2 -0
- package/dist/nylas-web-elements/p-22e5436c.js.map +1 -0
- package/dist/nylas-web-elements/p-2b636359.entry.js +2 -0
- package/dist/nylas-web-elements/p-2b636359.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-4ee6f11e.entry.js → p-30784693.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-40ed7eab.entry.js → p-33b940fb.entry.js} +2 -2
- package/dist/nylas-web-elements/p-343a02e1.entry.js +2 -0
- package/dist/nylas-web-elements/{p-4d9fceeb.entry.js → p-343b8684.entry.js} +2 -2
- package/dist/nylas-web-elements/p-3909ec3f.entry.js +2 -0
- package/dist/nylas-web-elements/{p-d85eecf4.entry.js.map → p-3909ec3f.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-409d4410.entry.js → p-3b281401.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-901f9612.js → p-41dc0d93.js} +2 -2
- package/dist/nylas-web-elements/p-41dc0d93.js.map +1 -0
- package/dist/nylas-web-elements/{p-5a3809a7.entry.js → p-42791515.entry.js} +2 -2
- package/dist/nylas-web-elements/p-44a9ce77.entry.js +2 -0
- package/dist/nylas-web-elements/{p-1819b3d7.js → p-49f716ed.js} +4 -4
- package/dist/nylas-web-elements/p-49f716ed.js.map +1 -0
- package/dist/nylas-web-elements/{p-b2208193.entry.js → p-50b4a80f.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-42a4c2fd.entry.js → p-571472d4.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-2523c292.entry.js → p-607b547b.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-006ab406.entry.js → p-6110351b.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-65062d50.entry.js → p-665ef10b.entry.js} +4 -4
- package/dist/nylas-web-elements/p-665ef10b.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-deafc6bc.entry.js → p-694b511a.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-64364434.entry.js → p-73c062f8.entry.js} +2 -2
- package/dist/nylas-web-elements/p-75a8d077.entry.js +2 -0
- package/dist/nylas-web-elements/{p-41c1654e.entry.js.map → p-75a8d077.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-7c55dfa0.entry.js +2 -0
- package/dist/nylas-web-elements/{p-ba3d383f.entry.js.map → p-7c55dfa0.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-3da66838.entry.js → p-80d6175c.entry.js} +2 -2
- package/dist/nylas-web-elements/p-939db546.entry.js +2 -0
- package/dist/nylas-web-elements/{p-a1e27dc5.entry.js → p-95a3094a.entry.js} +2 -2
- package/dist/nylas-web-elements/p-9ea458c3.js +2 -0
- package/dist/nylas-web-elements/p-9ea458c3.js.map +1 -0
- package/dist/nylas-web-elements/p-a628eaeb.js +2 -0
- package/dist/nylas-web-elements/p-a628eaeb.js.map +1 -0
- package/dist/nylas-web-elements/p-ad64c2b8.entry.js +2 -0
- package/dist/nylas-web-elements/{p-baa620b4.entry.js → p-b25821e1.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-374527e6.entry.js → p-b53062f7.entry.js} +2 -2
- package/dist/nylas-web-elements/p-bbf9aff2.entry.js +2 -0
- package/dist/nylas-web-elements/p-c20ab972.entry.js +2 -0
- package/dist/nylas-web-elements/{p-7b1bb792.entry.js → p-cc674b3b.entry.js} +3 -3
- package/dist/nylas-web-elements/p-d8f09631.entry.js +2 -0
- package/dist/nylas-web-elements/p-db15d382.js +2 -0
- package/dist/nylas-web-elements/p-db15d382.js.map +1 -0
- package/dist/nylas-web-elements/{p-9dac153b.entry.js → p-df6d54c7.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-d224c7af.entry.js → p-e03b2592.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-9f168ff0.js → p-e22aa0b0.js} +2 -2
- package/dist/nylas-web-elements/{p-408dda49.js → p-eaa9151b.js} +2 -2
- package/dist/nylas-web-elements/p-eaa9151b.js.map +1 -0
- package/dist/nylas-web-elements/{p-ad9c3cab.entry.js → p-f154a362.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-ae01e1cb.entry.js → p-f1f8f745.entry.js} +2 -2
- package/dist/nylas-web-elements/people-icon.entry.js +1 -1
- package/dist/nylas-web-elements/play-icon.entry.js +1 -1
- package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
- package/dist/{esm/register-component-0645dce0.js → nylas-web-elements/register-component-e5afe237.js} +8 -2
- package/dist/nylas-web-elements/register-component-e5afe237.js.map +1 -0
- package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
- package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
- package/dist/nylas-web-elements/scheduler-config-store-8f2e658e.js +30 -0
- package/dist/nylas-web-elements/scheduler-config-store-8f2e658e.js.map +1 -0
- package/dist/{esm/scheduler-store-4d0a4f8a.js → nylas-web-elements/scheduler-store-66c2168c.js} +16 -3
- package/dist/nylas-web-elements/scheduler-store-66c2168c.js.map +1 -0
- package/dist/nylas-web-elements/search-icon.entry.js +1 -1
- package/dist/nylas-web-elements/select-dropdown.entry.js +2 -2
- package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
- package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
- package/dist/nylas-web-elements/star-icon.entry.js +1 -1
- package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
- package/dist/nylas-web-elements/time-period-selector.entry.js +2 -2
- package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
- package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
- package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
- package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{utils-3a8d433a.js → utils-73d8a928.js} +18 -2
- package/dist/{esm/utils-3a8d433a.js.map → nylas-web-elements/utils-73d8a928.js.map} +1 -1
- package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
- package/dist/types/common/component-types.d.ts +3 -1
- package/dist/types/common/constants.d.ts +2 -0
- package/dist/types/common/nylas-api-request.d.ts +6 -2
- package/dist/types/common/register-component.d.ts +1 -0
- package/dist/types/common/types.d.ts +3 -1
- package/dist/types/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.d.ts +10 -4
- package/dist/types/components/scheduler-editor/nylas-booking-calendar-picker/nylas-booking-calendar-picker.d.ts +2 -0
- package/dist/types/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.d.ts +3 -2
- package/dist/types/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.d.ts +4 -1
- package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +41 -7
- package/dist/types/components/scheduler-editor/nylas-event-description/nylas-event-description.d.ts +3 -0
- package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts +3 -0
- package/dist/types/components/scheduler-editor/nylas-event-title/nylas-event-title.d.ts +6 -1
- package/dist/types/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.d.ts +6 -6
- package/dist/types/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.d.ts +27 -0
- package/dist/types/components/scheduler-editor/nylas-location-component/nylas-location-component.d.ts +3 -0
- package/dist/types/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.d.ts +4 -1
- package/dist/types/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.d.ts +4 -0
- package/dist/types/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +9 -4
- package/dist/types/components.d.ts +229 -18
- package/dist/types/connector/nylas-connector/index.d.ts +1 -1
- package/dist/types/connector/nylas-scheduler-config-connector/index.d.ts +3 -3
- package/dist/types/connector/nylas-scheduler-connector/errors/index.d.ts +1 -0
- package/dist/types/connector/shared/api/scheduler-config.d.ts +45 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/types/stores/scheduler-config-store.d.ts +8 -2
- package/dist/types/utils/utils.d.ts +4 -1
- package/package.json +4 -3
- package/dist/cjs/google-logo-icon_3.cjs.entry.js +0 -302
- package/dist/cjs/google-logo-icon_3.cjs.entry.js.map +0 -1
- package/dist/cjs/index.es-447c5aca.js.map +0 -1
- package/dist/cjs/index.es-68425511.js.map +0 -1
- package/dist/cjs/nylas-api-request-8ec3a89c.js +0 -39
- package/dist/cjs/nylas-api-request-8ec3a89c.js.map +0 -1
- package/dist/cjs/nylas-api-request-ab24150d.js +0 -37
- package/dist/cjs/nylas-api-request-ab24150d.js.map +0 -1
- package/dist/cjs/register-component-d729f3f7.js.map +0 -1
- package/dist/cjs/register-component-f1ebc65d.js.map +0 -1
- package/dist/cjs/scheduler-config-store-31b83ad3.js +0 -19
- package/dist/cjs/scheduler-config-store-31b83ad3.js.map +0 -1
- package/dist/cjs/scheduler-config-store-9c2cc421.js +0 -19
- package/dist/cjs/scheduler-config-store-9c2cc421.js.map +0 -1
- package/dist/cjs/scheduler-store-4cb46b3c.js.map +0 -1
- package/dist/cjs/scheduler-store-7320f5d0.js.map +0 -1
- package/dist/cjs/utils-53dd7574.js.map +0 -1
- package/dist/components/_commonjsHelpers.js +0 -36
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/esm/google-logo-icon_3.entry.js +0 -296
- package/dist/esm/google-logo-icon_3.entry.js.map +0 -1
- package/dist/esm/index.es-2578c6a5.js.map +0 -1
- package/dist/esm/index.es-bd511719.js.map +0 -1
- package/dist/esm/nylas-api-request-55446aba.js +0 -37
- package/dist/esm/nylas-api-request-55446aba.js.map +0 -1
- package/dist/esm/nylas-api-request-c97a0153.js +0 -35
- package/dist/esm/nylas-api-request-c97a0153.js.map +0 -1
- package/dist/esm/register-component-0645dce0.js.map +0 -1
- package/dist/esm/register-component-dc659dc3.js.map +0 -1
- package/dist/esm/scheduler-config-store-51ee4f42.js +0 -17
- package/dist/esm/scheduler-config-store-51ee4f42.js.map +0 -1
- package/dist/esm/scheduler-config-store-bc59545b.js +0 -17
- package/dist/esm/scheduler-config-store-bc59545b.js.map +0 -1
- package/dist/esm/scheduler-store-4d0a4f8a.js.map +0 -1
- package/dist/esm/scheduler-store-72116723.js.map +0 -1
- package/dist/esm/utils-c00bdc3c.js.map +0 -1
- package/dist/nylas-web-elements/index.es-bd511719.js.map +0 -1
- package/dist/nylas-web-elements/nylas-api-request-55446aba.js +0 -37
- package/dist/nylas-web-elements/nylas-api-request-55446aba.js.map +0 -1
- package/dist/nylas-web-elements/p-01bf65c2.entry.js +0 -2
- package/dist/nylas-web-elements/p-1819b3d7.js.map +0 -1
- package/dist/nylas-web-elements/p-2c5d5953.entry.js +0 -2
- package/dist/nylas-web-elements/p-39b280e2.entry.js +0 -2
- package/dist/nylas-web-elements/p-39b280e2.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-408dda49.js.map +0 -1
- package/dist/nylas-web-elements/p-41c1654e.entry.js +0 -2
- package/dist/nylas-web-elements/p-65062d50.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-65fdfb60.js +0 -2
- package/dist/nylas-web-elements/p-65fdfb60.js.map +0 -1
- package/dist/nylas-web-elements/p-901f9612.js.map +0 -1
- package/dist/nylas-web-elements/p-a0c2ce03.entry.js +0 -2
- package/dist/nylas-web-elements/p-a3d5a1dd.entry.js +0 -2
- package/dist/nylas-web-elements/p-ba3d383f.entry.js +0 -2
- package/dist/nylas-web-elements/p-bfdc148c.entry.js +0 -2
- package/dist/nylas-web-elements/p-cadc9052.js +0 -2
- package/dist/nylas-web-elements/p-cadc9052.js.map +0 -1
- package/dist/nylas-web-elements/p-d67d1c72.js +0 -2
- package/dist/nylas-web-elements/p-d67d1c72.js.map +0 -1
- package/dist/nylas-web-elements/p-d85eecf4.entry.js +0 -2
- package/dist/nylas-web-elements/p-d92a0405.entry.js +0 -2
- package/dist/nylas-web-elements/p-de63bc35.entry.js +0 -2
- package/dist/nylas-web-elements/p-df5e9aaf.js +0 -2
- package/dist/nylas-web-elements/p-df5e9aaf.js.map +0 -1
- package/dist/nylas-web-elements/p-eb93a363.entry.js +0 -2
- package/dist/nylas-web-elements/p-eb93a363.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-f48d0571.entry.js +0 -2
- package/dist/nylas-web-elements/p-fbbca7a6.entry.js +0 -2
- package/dist/nylas-web-elements/register-component-0645dce0.js.map +0 -1
- package/dist/nylas-web-elements/scheduler-config-store-bc59545b.js +0 -17
- package/dist/nylas-web-elements/scheduler-config-store-bc59545b.js.map +0 -1
- package/dist/nylas-web-elements/scheduler-store-4d0a4f8a.js.map +0 -1
- /package/dist/nylas-web-elements/{p-de63bc35.entry.js.map → p-00a9efc1.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-3631e6e5.entry.js.map → p-1d25ca06.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-bfdc148c.entry.js.map → p-1e445e86.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-395f49eb.entry.js.map → p-2081b475.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-4ee6f11e.entry.js.map → p-30784693.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-40ed7eab.entry.js.map → p-33b940fb.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d92a0405.entry.js.map → p-343a02e1.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-4d9fceeb.entry.js.map → p-343b8684.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-409d4410.entry.js.map → p-3b281401.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-5a3809a7.entry.js.map → p-42791515.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a0c2ce03.entry.js.map → p-44a9ce77.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-b2208193.entry.js.map → p-50b4a80f.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-42a4c2fd.entry.js.map → p-571472d4.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-2523c292.entry.js.map → p-607b547b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-006ab406.entry.js.map → p-6110351b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-deafc6bc.entry.js.map → p-694b511a.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-64364434.entry.js.map → p-73c062f8.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-3da66838.entry.js.map → p-80d6175c.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-01bf65c2.entry.js.map → p-939db546.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a1e27dc5.entry.js.map → p-95a3094a.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-f48d0571.entry.js.map → p-ad64c2b8.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-baa620b4.entry.js.map → p-b25821e1.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-374527e6.entry.js.map → p-b53062f7.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-2c5d5953.entry.js.map → p-bbf9aff2.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a3d5a1dd.entry.js.map → p-c20ab972.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-7b1bb792.entry.js.map → p-cc674b3b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-fbbca7a6.entry.js.map → p-d8f09631.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-9dac153b.entry.js.map → p-df6d54c7.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d224c7af.entry.js.map → p-e03b2592.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-9f168ff0.js.map → p-e22aa0b0.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-ad9c3cab.entry.js.map → p-f154a362.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-ae01e1cb.entry.js.map → p-f1f8f745.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as t}from"./p-41dc0d93.js";class e{constructor(t){this.defaultAuthArgs={};this.session=t}setActiveGrantId(t){this.activeGrantId=t}async request({method:e,path:s,body:n,headers:r}){try{const i=await this.session.fetch(`grants/me/${s}`,{method:e,headers:r?new Headers(r):undefined,body:n,...this.session.isMultiAccount()&&this.activeGrantId?{grant_id:this.activeGrantId}:{}});if(typeof i==="undefined"){throw new Error("Response is undefined")}return t(i)}catch(e){return t(null,{message:String(e)})}}async currentUser(){const t=this.session.isMultiAccount()?this.activeGrantId:undefined;const e=await this.session.getProfile(t);if(!e){return null}return{id:e.sub,email:e.email,name:e.name}}async authenticationUrl(t){let e=this.defaultAuthArgs||{};if(t){e={...e,...t}}return this.session.auth(e)}setDefaultAuthArgs(t){this.defaultAuthArgs=t}}export{e as N};
|
|
2
|
+
//# sourceMappingURL=p-a628eaeb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NylasIdentityRequestWrapper","constructor","session","this","defaultAuthArgs","setActiveGrantId","grantId","activeGrantId","request","method","path","body","headers","response","fetch","Headers","undefined","isMultiAccount","grant_id","Error","dataResponse","error","message","String","currentUser","idToken","getProfile","id","sub","email","name","authenticationUrl","authArgs","args","auth","setDefaultAuthArgs"],"sources":["src/common/nylas-api-request.ts"],"sourcesContent":["import { dataResponse } from '@/utils/utils';\nimport type { NylasSessions } from '@nylas/identity';\nimport { DataResponseReturnType } from './types';\n\n/**\n * Arguments for making a request to the Nylas API.\n */\nexport type NylasRequestArgs = {\n method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';\n path: string;\n body?: any;\n headers?: Record<string, string>;\n};\n\n/**\n * A model representing a user in the Nylas Identity system.\n */\nexport type User = {\n id: string;\n email: string;\n name?: string;\n};\n\n/**\n * Arguments for authenticating a user with the Nylas Identity system.\n */\nexport type AuthArgs = {\n provider?: string;\n scope?: Array<string>;\n loginHint?: string;\n includeGrantScopes?: boolean;\n prompt?: string;\n metadata?: string;\n state?: string;\n};\n\n/**\n * Interface for making requests to the Nylas API.\n *\n * This is an abstract class that is meant to be implemented by customers to provide their own\n * implementation of making requests to the Nylas API. This allows customers to use their own\n * authentication mechanism, or to use a different HTTP client library.\n */\nexport abstract class NylasApiRequest {\n /**\n * This method should make an authenticated request to the Nylas API.\n * Note: It should not throw an error if the request fails, but should return an object with the error\n * information as part of the tuple returned.\n * @param args NylasRequestArgs\n */\n abstract request<T = any>(args: NylasRequestArgs): Promise<DataResponseReturnType<T>>;\n\n /**\n * This method should return the current user's information.\n */\n\n abstract currentUser(): Promise<User | null>;\n\n /**\n * This method should set the default authentication arguments to use when authenticating the user.\n */\n abstract setDefaultAuthArgs(authArgs: AuthArgs): void;\n\n /**\n * This method should return the URL to redirect the user to for authentication.\n */\n abstract authenticationUrl(authArgs?: AuthArgs): Promise<string | undefined>;\n}\n\n/**\n * A wrapper around the Nylas Identity session that implements the NylasApiRequest interface.\n * This class is used by the Nylas Web Elements to make requests to the Nylas API if no custom\n * implementation of NylasApiRequest is provided.\n */\nexport class NylasIdentityRequestWrapper implements NylasApiRequest {\n /**\n * The Nylas Identity session instance.\n */\n private session: NylasSessions;\n\n /**\n * The grant_id to use for requests, if there is multi-account support\n * enabled in the Nylas Identity settings.\n */\n private activeGrantId?: string;\n\n /**\n * The default authentication arguments to use when authenticating the user.\n */\n private defaultAuthArgs: AuthArgs = {};\n\n /**\n * Constructor for the NylasIdentityRequestWrapper class.\n * @param session The Nylas Identity session instance.\n */\n constructor(session: NylasSessions) {\n this.session = session;\n }\n\n /**\n * This method sets the grant_id to use for requests.\n * This is used when there is multi-account support enabled in the Nylas Identity settings.\n *\n * @param grantId\n */\n setActiveGrantId(grantId: string) {\n this.activeGrantId = grantId;\n }\n\n /**\n * This method makes a request to the Nylas API, using the Nylas Identity's fetch method.\n *\n * The `grants/me/` prefix is added because all requests made from the browser to the Nylas API\n * must be made on behalf of the currently logged in user with a valid access token.\n *\n * @param NylasRequestArgs\n * @returns Promise<[T | null, NylasErrorResponse['error'] | null]>\n */\n async request<T>({ method, path, body, headers }: NylasRequestArgs): Promise<DataResponseReturnType<T>> {\n try {\n const response = await this.session.fetch(`grants/me/${path}`, {\n method,\n headers: headers ? new Headers(headers) : undefined,\n body,\n ...(this.session.isMultiAccount() && this.activeGrantId ? { grant_id: this.activeGrantId } : {}),\n });\n\n // Sometimes the Nylas identity session fetch method returns undefined.\n // Possibly due to CORS issues. In this case, we throw an error.\n if (typeof response === 'undefined') {\n throw new Error('Response is undefined');\n }\n\n return dataResponse(response as T);\n } catch (error) {\n return dataResponse(null as T, {\n message: String(error),\n });\n }\n }\n\n /**\n * This method returns the current (logged in) user's information.\n * If the user is not logged in, it returns null.\n * @returns Promise<User | null>\n */\n async currentUser(): Promise<User | null> {\n const grantId = this.session.isMultiAccount() ? this.activeGrantId : undefined;\n const idToken = await this.session.getProfile(grantId);\n if (!idToken) {\n return null;\n }\n\n return {\n id: idToken.sub,\n email: idToken.email,\n name: idToken.name,\n };\n }\n\n /**\n * This method returns the URL to redirect the user to for authentication.\n * @param authConfig authArgs\n * @returns Promise<string | undefined>\n */\n async authenticationUrl(authArgs?: AuthArgs): Promise<string | undefined> {\n let args = this.defaultAuthArgs || {};\n if (authArgs) {\n args = { ...args, ...authArgs };\n }\n return this.session.auth(args);\n }\n\n /**\n * This method sets the default authentication arguments to use when authenticating the user.\n * @param authArgs authArgs\n */\n setDefaultAuthArgs(authArgs: AuthArgs) {\n this.defaultAuthArgs = authArgs;\n }\n}\n"],"mappings":"0CA0EaA,EAqBX,WAAAC,CAAYC,GANJC,KAAAC,gBAA4B,GAOlCD,KAAKD,QAAUA,C,CASjB,gBAAAG,CAAiBC,GACfH,KAAKI,cAAgBD,C,CAYvB,aAAME,EAAWC,OAAEA,EAAMC,KAAEA,EAAIC,KAAEA,EAAIC,QAAEA,IACrC,IACE,MAAMC,QAAiBV,KAAKD,QAAQY,MAAM,aAAaJ,IAAQ,CAC7DD,SACAG,QAASA,EAAU,IAAIG,QAAQH,GAAWI,UAC1CL,UACIR,KAAKD,QAAQe,kBAAoBd,KAAKI,cAAgB,CAAEW,SAAUf,KAAKI,eAAkB,KAK/F,UAAWM,IAAa,YAAa,CACnC,MAAM,IAAIM,MAAM,wB,CAGlB,OAAOC,EAAaP,E,CACpB,MAAOQ,GACP,OAAOD,EAAa,KAAW,CAC7BE,QAASC,OAAOF,I,EAUtB,iBAAMG,GACJ,MAAMlB,EAAUH,KAAKD,QAAQe,iBAAmBd,KAAKI,cAAgBS,UACrE,MAAMS,QAAgBtB,KAAKD,QAAQwB,WAAWpB,GAC9C,IAAKmB,EAAS,CACZ,OAAO,I,CAGT,MAAO,CACLE,GAAIF,EAAQG,IACZC,MAAOJ,EAAQI,MACfC,KAAML,EAAQK,K,CASlB,uBAAMC,CAAkBC,GACtB,IAAIC,EAAO9B,KAAKC,iBAAmB,GACnC,GAAI4B,EAAU,CACZC,EAAO,IAAKA,KAASD,E,CAEvB,OAAO7B,KAAKD,QAAQgC,KAAKD,E,CAO3B,kBAAAE,CAAmBH,GACjB7B,KAAKC,gBAAkB4B,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,h as n,H as a}from"./p-68c2fadf.js";import{R as s}from"./p-eaa9151b.js";import{a as r}from"./p-41dc0d93.js";import"./p-cb65c223.js";const c=":host{display:block}sp-search{width:100%;border:0}";const o=c;var i=undefined&&undefined.__decorate||function(e,t,n,a){var s=arguments.length,r=s<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,c;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)if(c=e[o])r=(s<3?c(r):s>3?c(t,n,r):c(t,n))||r;return s>3&&r&&Object.defineProperty(t,n,r),r};var d=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};const f=class{constructor(n){e(this,n);this.search=t(this,"search",7);this.onSearch=async e=>{e.preventDefault();e.stopPropagation();const t=e.target;const n=t.value;if(n===this.internalQuery){return}this.internalQuery=n;this.search.emit(this.internalQuery)};this.query="";this.internalQuery=""}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){r(`[nylas-threads-search] Component will load`)}async componentDidLoad(){r(`[nylas-threads-search] Component did load`)}onQueryChange(){this.internalQuery=this.query}render(){return n(a,{key:"9e91a330bea4dc84fa96070591e95926f52ee0bb"},n("sp-theme",{key:"6d1df81ced09a5b721d8f161e40450633ae2cd98",scale:"medium",color:"dark"},n("sp-search",{key:"cb81bba4b4f1d279f1fd48bda9a2fb003cb65fcd",quiet:true,onSubmit:this.onSearch,onBlur:this.onSearch,value:this.internalQuery})))}static get watchers(){return{query:["onQueryChange"]}}};i([s({name:"nylas-pagination",stateToProps:new Map([["mailbox.searchQuery","query"]]),eventToProps:{search:async(e,t)=>{await t.threads.getThreads({search_query_native:e.detail||undefined,page_token:undefined})}},fireRegisterEvent:true}),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],f.prototype,"render",null);f.style=o;export{f as nylas_threads_search};
|
|
2
|
+
//# sourceMappingURL=p-ad64c2b8.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as C,h as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as C,h as c}from"./p-68c2fadf.js";const s=".sc-calendar-icon-h{display:flex}";const t=s;const r=class{constructor(c){C(this,c);this.width="15";this.height="15"}render(){return c("svg",{key:"3511648425d3fb5cb3df268c9647cf2590d28ab0",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},c("path",{key:"32465f5a3184be89f1acdcc53a98158e757c22bb",fill:"currentColor",d:"M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z"}))}};r.style=t;export{r as calendar_icon};
|
|
2
|
+
//# sourceMappingURL=p-b25821e1.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as t,c as s,a as i}from"./p-68c2fadf.js";const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as t,c as s,a as i}from"./p-68c2fadf.js";const a=".sc-chevron-icon-h{display:flex}";const n=a;const o=class{constructor(t){e(this,t);this.width="24";this.height="24"}render(){return t("svg",{key:"4237d5be45ec5b20c76f6132347abbbff3db30d3",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},t("path",{key:"3d68979af03e88ecb6725fefbd1a4d9af22aa727",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};o.style=n;const r=".sc-search-icon-h{display:flex}";const d=r;const l=class{constructor(t){e(this,t);this.width="15";this.height="15"}render(){return t("svg",{key:"b76a09acee253e0c56da191a277aeb941b7660ae",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"d93a8a5b63a57e7a62909e5039654d399424bb0c",fill:"currentColor",d:"M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z"}))}};l.style=d;const h=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}@media screen and (max-width: 768px){:host{position:unset}}.dropdown{display:inline-block}.dropbtn{color:var(--nylas-base-800);padding:10px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;gap:0.5rem;background:transparent;border:none;border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);max-width:306px;width:max-content;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}';const c=h;const p=class{constructor(t){e(this,t);this.selectedOptionChanged=s(this,"selectedOptionChanged",7);this.name=undefined;this.options=[];this.defaultSelectedOption=undefined;this.withSearch=true;this.pluralizedLabel="";this.selectedOption=this.defaultSelectedOption||null;this.isOpen=false;this.searchValue="";this.filteredOptions=[...this.options];this.ariaActivedescendant=""}optionsChangedHandler(e,t){if(e===t){return}this.filteredOptions=e}defaultSelectedOptionChangedHandler(e,t){if(e.label===t.label){return}this.selectedOption=e}componentWillLoad(){this.filteredOptions=this.options;if(!this.selectedOption&&!!this.defaultSelectedOption){this.selectedOption=this.defaultSelectedOption}if(!this.selectedOption&&this.options.length>0){this.selectedOption=this.options[0]}}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const t=e.target.value;this.searchValue=t;this.filteredOptions=this.options.filter((e=>e.label.toLowerCase().includes(t.toLowerCase())))}selectOption(e){this.selectedOption=e;this.toggleDropdown();this.selectedOptionChanged.emit({value:e.value,name:this.name})}handleSelectButtonKeyDown(e){switch(e.key){case"ArrowDown":case"Enter":e.preventDefault();if(!this.isOpen){this.toggleDropdown()}this.inputRef?.focus();break;case"Escape":this.isOpen=false;break}}handleListboxKeydown(e){const t=this.filteredOptions;const s=t.findIndex((e=>e.value===this.ariaActivedescendant));if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){e.preventDefault();if(s===t.length-1){this.ariaActivedescendant="";this.inputRef?.focus();return}const i=s+1<t.length?s+1:0;this.ariaActivedescendant=t[i].value;this.focusOption(i)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){e.preventDefault();if(s===0){this.ariaActivedescendant="";this.inputRef?.focus();return}const i=s-1>=0?s-1:t.length-1;this.ariaActivedescendant=t[i].value;this.focusOption(i)}else if(e.key==="Enter"){e.preventDefault();if(this.ariaActivedescendant){this.selectOption(t[s])}}else if(e.key==="Escape"){this.isOpen=false}}focusOption(e){const t=this.filteredOptions[e];if(!t)return;const s=t.value;const i=this.el.shadowRoot?.getElementById(s);if(i){i.focus();i.scrollIntoView({behavior:"smooth",block:"nearest"})}}handleComboboxKeyDown(e){if(e.key==="ArrowDown"||e.key=="Tab"&&!e.shiftKey){e.preventDefault();this.ariaActivedescendant=this.filteredOptions[0].value;this.focusOption(0)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){e.preventDefault();this.ariaActivedescendant=this.filteredOptions[this.filteredOptions.length-1].value;this.focusOption(this.filteredOptions.length-1)}else if(e.key==="Escape"){this.isOpen=false}}handleOutsideClick(e){const t=e.composedPath();const s=t.includes(this.el);if(!s&&this.isOpen){this.isOpen=false}}render(){return t("div",{key:"4b92f2c224e4cb1ec751c8dd46ff5bd16883110a",class:"dropdown",part:"sd_dropdown"},t("button",{key:"de1f96fe628dc11b3b7991f65065ec1ae55372fa",part:"sd_dropdown-button",class:{dropbtn:true,open:this.isOpen},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:e=>this.handleSelectButtonKeyDown(e)},t("slot",{key:"05166ff83a6f0cbf3a63d79e257570c996c2972d",name:"select-icon","aria-hidden":"true"}),t("span",{key:"99d79f6d8969fa6e88092af65ed7438d06c70693",class:"selected-option",part:"sd_dropdown-button-selected-label"},this.selectedOption?.label?`${this.selectedOption?.label+this.pluralizedLabel}`:""),t("span",{key:"220bed22a19b8e73a0b5f420a95169b5593138a3",class:{open:this.isOpen,closed:!this.isOpen,chevron:true},"aria-hidden":"true"},t("chevron-icon",{key:"6ed5947377584f0adaa466c5f2c189e4795e72e2",width:"16",height:"16"}))),this.isOpen?t("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&t("div",{class:{"search-box":true,open:this.isOpen}},t("search-icon",{width:"15",height:"15",class:"icon"}),t("input",{type:"text",role:"combobox",placeholder:"Search",value:this.searchValue,ref:e=>this.inputRef=e,onInput:e=>this.filterOptions(e),onKeyDown:e=>this.handleComboboxKeyDown(e)})),t("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:e=>this.handleListboxKeydown(e)},this.filteredOptions.map((e=>t("li",{tabindex:"0",key:e.value,id:e.value,onClick:()=>this.selectOption(e),role:"option"},e.labelHTML?e.labelHTML:e.label))))):null)}get el(){return i(this)}static get watchers(){return{options:["optionsChangedHandler"],defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};p.style=c;export{o as chevron_icon,l as search_icon,p as select_dropdown};
|
|
2
|
+
//# sourceMappingURL=p-b53062f7.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as a,H as s}from"./p-68c2fadf.js";import{R as n}from"./p-eaa9151b.js";import{a as r}from"./p-41dc0d93.js";import"./p-cb65c223.js";const d=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-form-card{width:100%;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-form-card__header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}';const c=d;var t=undefined&&undefined.__decorate||function(e,a,s,n){var r=arguments.length,d=r<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,s):n,c;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,a,s,n);else for(var t=e.length-1;t>=0;t--)if(c=e[t])d=(r<3?c(d):r>3?c(a,s,d):c(a,s))||d;return r>3&&d&&Object.defineProperty(a,s,d),d};var f=undefined&&undefined.__metadata||function(e,a){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,a)};const l=class{constructor(a){e(this,a);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}}connectedCallback(){r("nylas-event-card","connectedCallback")}componentWillLoad(){r("nylas-event-card","componentWillLoad")}componentDidLoad(){r("nylas-event-card","componentDidLoad")}disconnectedCallback(){r("nylas-event-card","disconnectedCallback")}render(){return a(s,{key:"ccce348d0ddf9bec8fddb815cf63cbc9d9df4973"},a("div",{key:"6c0f3120bc608ac05fb631752834636cdb5a4845",class:"nylas-form-card"},a("div",{key:"08a045eb3b7190d38373efb80f4f709987956347",class:"nylas-form-card__header"},a("slot",{key:"a9a076210a056c984ad40eced110f2d9b737f36d",name:"header-title"}),a("slot",{key:"65cc8f117db216d458338da2b3a0f673864234bc",name:"header-subtitle"})),a("div",{key:"6c308c3377952cd7a1b3ad112de55333ef517a03",class:"nylas-form-card__content"},a("slot",{key:"5c0e7388949d250f0e3b027df2bfd9a3342d1574",name:"content"}))))}static get formAssociated(){return true}};t([n({name:"nylas-form-card",eventToProps:{},fireRegisterEvent:true}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],l.prototype,"render",null);l.style=c;export{l as nylas_form_card};
|
|
2
|
+
//# sourceMappingURL=p-bbf9aff2.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as c}from"./p-68c2fadf.js";const e=".sc-warning-icon-h{display:flex}";const s=e;const t=class{constructor(c){a(this,c);this.width="16";this.height="16"}render(){return c("svg",{key:"5a655b4440d40d0e22c0e8bb3d9e3f08a947eb32",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{key:"c3de0f39d8816fcc092f0a4bc6231e9cb91283de",d:"M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z",fill:"currentColor"}))}};t.style=s;export{t as warning_icon};
|
|
2
|
+
//# sourceMappingURL=p-c20ab972.entry.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as e,h as t,c as n,H as o,a as i,F as r}from"./p-68c2fadf.js";import{d as s,i as a,j as l,k as c,p as f}from"./p-901f9612.js";import{R as u}from"./p-408dda49.js";import{c as d}from"./p-cb65c223.js";const m=".sc-forward-icon-h{display:flex}";const p=m;const h=class{constructor(t){e(this,t);this.width="15";this.height="15"}render(){return t("svg",{key:"a858bd82169ace274a3c8cc1e214cd976e47e113",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"963f33f0803edfb6e8dfdbd287cee4917da7df01",d:"m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z","fill-rule":"evenodd"}))}};h.style=p;const b=':host{display:grid;color:var(--nylas-color-primary-900)}.editor{position:relative;display:block;max-height:300px;overflow:auto;padding:1rem;border:1px solid var(--nylas-color-primary-300)}.editor blockquote{visibility:hidden;overflow:hidden;position:relative;transition:height 0.3s ease;margin:0}.editor blockquote::before{content:"...";visibility:visible;opacity:1;position:absolute;top:0;left:0;background-color:var(--nylas-color-primary-300);width:20px;text-align:center;color:var(--nylas-color-primary-800);vertical-align:middle;display:flex;justify-content:center;align-items:center;align-self:center;cursor:pointer}.editor .collapsed{height:20px}.editor .expanded{visibility:visible;opacity:1;height:auto;margin:0px 0px 0px 0.8ex;border-left:1px solid var(--nylas-color-primary-300);padding-left:1rem}.editor .expanded::before{display:none;}.buttons{display:flex;margin-top:1rem;justify-content:space-between}.buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.buttons sp-button chevron-icon{display:inline-block}.buttons .close{justify-self:end}.toolbar{position:absolute;display:none;background-color:var(--nylas-color-primary-200);border-radius:var(--nylas-border-radius);z-index:1}.toolbar sp-button{border:0}';const y=b;const g=class{constructor(t){e(this,t);this.close=n(this,"close",7);this.send=n(this,"send",7);this.closeComposer=e=>{this.close.emit(e)};this.sendComposer=e=>{if(!this.editorEl){s("no editor element");return}const t=this.editorEl.querySelector(".message-body");if(!t){s("no message body");return}if(this.message){this.send.emit({message:this.message,replyBody:t.querySelector(".message-body")?.innerHTML||""});this.close.emit(e);this.editorEl.innerHTML=""}};this.message=undefined;this.viewEmailElement=undefined}connectedCallback(){}disconnectedCallback(){if(this.editorEl){this.editorEl.innerHTML=""}}componentWillLoad(){}async componentDidLoad(){if(this.message){this.watchBody(this.message)}if(!this.editorEl){s("[connectedCallback] no editor element");return}if(!this.toolbarEl){s("[connectedCallback] no toolbar element");return}const e=this.editorEl;const t=this.toolbarEl;e.addEventListener("mouseup",(n=>{const o=this.host.shadowRoot?.getSelection();if(!o){s("no selection");return}const i=o.getRangeAt(0);const r=o.toString();if(!r){t.style.display="none";return}const a=e.querySelector(".message-body");if(!a){s("no message body");return}const l=i.commonAncestorContainer;const c=l.parentElement;if(!c){return}const f=a.getBoundingClientRect();s("messageBodyRect",{messageBodyRect:f});const u=c.getBoundingClientRect();s("foundRect",{foundRect:u});const d=c.childNodes[0];const m=d.textContent||"";const p=m.indexOf(r);const h=window.getComputedStyle(c).fontSize;const b=parseInt(h.replace("px",""),10);const y=u.top-f.top-t.clientHeight;const g=p*(1/b)*100;t.style.top=`${y}px`;t.style.left=`${g}px`;t.style.display="block"}))}watchBody(e){if(!this.editorEl){s("no editor element");return}this.editorEl.querySelectorAll(".message-body").forEach((e=>e.remove()));const t=document.createElement("div");t.classList.add("message-body");const n=document.createElement("p");n.innerHTML=" ";t.appendChild(n);const o=document.createElement("br");t.appendChild(o);const i=document.createElement("div");i.classList.add("reply-text");i.innerText=`On ${new Date(e.date*1e3).toLocaleDateString(undefined,{dateStyle:"full"})} <${e.from?.map((e=>e.name||e.email)).join(", ")}> wrote:`;t.appendChild(i);if(e.body){const n=document.createElement("html");n.innerHTML=e.body;const o=document.createElement("blockquote");o.classList.add("collapsed");o.classList.add("gmail_quote");o.innerHTML=n.innerHTML;t.appendChild(o);s("replyContainer",{replyContainer:o})}this.editorEl.appendChild(t);this.editorEl.querySelectorAll("blockquote.collapsed").forEach((e=>{e.addEventListener("click",(function(e){e.preventDefault();const t=e.target;t.classList.remove("collapsed");t.classList.add("expanded")}),{once:true})}));this.editorEl.focus()}render(){return t(o,{key:"89cdb2c6c606698704a06507ddbe301a37134ca4"},t("sp-theme",{key:"4946560c2ab8518e5172e506caf36fa98fbc3912",scale:"medium",color:"dark"},t("div",{key:"b21a8843aaebb1fd4169ce2b849fb801bce46df4",class:"editor",contentEditable:true,ref:e=>this.editorEl=e},t("div",{key:"830a97d7947b65c0312630184d539d4f8c7a48eb",class:"toolbar",ref:e=>this.toolbarEl=e,contentEditable:false},t("sp-button",{key:"2fb11d997b13e4ec6e700155e3001d30f52bb217",quiet:true,onClick:()=>document.execCommand("bold")},t("div",{key:"5c4fd64a8a3ccb94f36675047c05a662a1846426",slot:"icon"},t("bold-icon",{key:"033043849fddd392bc078dbb2fd843f6701c0501"})),t("div",{key:"585b08407297a97e3214d716505331f0889ea68f",slot:"label"},"Bold")),t("sp-button",{key:"b01e3c9c40fbe11122ca7be4b5120ba19262e1d5",quiet:true,onClick:()=>document.execCommand("underline")},t("div",{key:"e407e888cb414fc4e5b15e9d21349038c7871f83",slot:"icon"},t("underline-icon",{key:"838cf6c3b7b42708b5ed6e5c53072cda29043f40"})),t("div",{key:"c662e1cefa352cb8910050a77e5b0a2e18de6bed",slot:"label"},"Underline")),t("sp-button",{key:"7e39fdbbdaeafabf1de93f42758f3b499c70206b",quiet:true,onClick:()=>document.execCommand("italic")},t("div",{key:"8d7c7be8cf3959726b7541ed64e4e41995461258",slot:"icon"},t("italic-icon",{key:"ae07a6648728e3f9720dfdc3e3f91e8e4cbf86d9"})),t("div",{key:"fc3fc026d47610df27752ec8a310db99e280014c",slot:"label"},"Italic")))),t("div",{key:"9d4abb27a5d5a6b2c884da58191ca8f014e9ab43",class:"buttons"},t("sp-button",{key:"43f2b6d9a4a6d5513eb6fd52fb8f68f416077b37",onClick:this.sendComposer,class:"send"},"Send"),t("sp-button",{key:"fbae8e0490814b13347e3cc09bfd922ff5fceb43",onClick:this.closeComposer,class:"close"},"Close"))))}get host(){return i(this)}static get watchers(){return{message:["watchBody"]}}};g.style=y;const w=":host{display:block}sp-button{padding:0;border:0;border-radius:var(--nylas-border-radius);min-block-size:50%;min-inline-size:2rem;background-color:var(--nylas-color-primary-300);fill:var(--nylas-color-primary-800)}sp-button:hover{background-color:var(--nylas-color-primary-400)}.summarize-button.stopped{animation:none}.summarize-button.playing{animation:pulse 2s infinite}.summarize-button.loading{display:flex;align-content:center;height:1.5rem;width:2rem;vertical-align:middle;animation:pulse 2s infinite;flex-wrap:wrap}.summarize-button.loading loading-icon{--dot-color:var(--nylas-color-primary-600)}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 0 0 var(--nylas-color-primary-300)}70%{transform:scale(1.05);box-shadow:0 0 0 10px rgba(255, 69, 0, 0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255, 69, 0, 0)}}@keyframes wave{0%{transform:translateX(0)}50%{transform:translateX(100%)}100%{transform:translateX(0)}}";const v=w;var k=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,r=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)if(s=e[a])r=(i<3?s(r):i>3?s(t,n,r):s(t,n))||r;return i>3&&r&&Object.defineProperty(t,n,r),r};var x=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};const T=class{constructor(t){e(this,t);this.summarize=n(this,"summarize",7);this.abortController=new AbortController;this.onClick=async e=>{e.preventDefault();e.stopPropagation();if(this.state==="stopped"){if(this.message){this.abortController=new AbortController;const e=this.summarize.emit({abortController:this.abortController,playAudio:this.playAudio,message:this.message,updateState:this.updateState});if(!e.defaultPrevented){s(`[nylas-summarize-message-button] Default event not prevented, summarizing message`);if(this.audioRef){await this.audioRef.play().then((()=>this.audioRef?.pause())).catch((e=>console.error("Error playing audio:",e)));await this.audioRef.play().catch((e=>console.error("Error playing audio:",e)))}}}}else if(this.state==="playing"){this.abortController?.abort();this.audioRef?.pause()}else{this.state="stopped"}};this.message=undefined;this.state="stopped";this.playAudio=this.playAudio.bind(this);this.updateState=this.updateState.bind(this)}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){s(`[nylas-summarize-message-button] Component will load`)}async componentDidLoad(){s(`[nylas-summarize-message-button] Component did load`)}async updateState(e){this.state=e}async playAudio(e){if(!this.audioRef){this.state="stopped";return}if(!e){this.state="stopped";return}const t=this.audioRef;if(!("MediaSource"in window)){const n=await e;if(n==null){throw new Error("ReadableStream not yet supported in this browser.")}const o=n.getReader();const i=[];await this.readChunk(o,i);const r=new Blob(i,{type:"audio/mpeg"});const s=URL.createObjectURL(r);t.src=s;return}const n=new MediaSource;let o;let i=false;t.src=URL.createObjectURL(n);n.addEventListener("sourceopen",r);async function r(){o=n.addSourceBuffer("audio/mpeg");o.addEventListener("updateend",a);const r=await e;if(r==null){throw new Error("ReadableStream not yet supported in this browser.")}const s=r.getReader();const l=()=>{s.read().then((({done:e,value:t})=>{if(e){i=true;return}if(!o.updating){o.appendBuffer(t)}l()})).catch((e=>{console.error("Error while fetching and appending chunks:",e)}))};l();if(t.paused){t.play().catch((e=>console.error("Error playing audio:",e)))}}function a(){if(i){n.endOfStream();n.removeEventListener("sourceopen",r);n.removeEventListener("sourceclose",(()=>{s(`[nylas-summarize-message-button] Source closed`)}));o.removeEventListener("updateend",a);return}}}async readChunk(e,t){return e.read().then((({done:n,value:o})=>{if(n){return t}t.push(o);return this.readChunk(e,t)}))}render(){return t(o,{key:"b14f3bab7ebd190d54a66a3e00704f9e4b147a8f"},t("sp-theme",{key:"3a5b0782c84bbc7dba7b15306d608b885b5a6edc",scale:"medium",color:"dark"},t("sp-button",{key:"d63121e6f80bd09f1e7ca35e1176aa3a070517b3",label:"Summarize email","icon-only":true,onClickCapture:this.onClick,class:{"summarize-button":true,stopped:this.state==="stopped",loading:this.state==="loading",playing:this.state==="playing"}},this.state==="stopped"&&t("play-icon",null),this.state==="loading"&&t("loading-icon",null),this.state==="playing"&&t("stop-icon",null)),t("audio",{key:"954be0517a3b7328149830b2058d073ae9da591d",ref:e=>this.audioRef=e,autoPlay:true,onPlaying:()=>this.state="playing",onPause:()=>this.state="stopped",onEnded:()=>{this.state="stopped";s(`[nylas-summarize-message-button] Audio ended`)}})))}};k([u({name:"nylas-summarize-message-button",eventToProps:{summarize:async(e,t)=>{const{playAudio:n,updateState:o,abortController:i,message:r}=e.detail;const s=a(r.body||"");await o("loading");try{const e=await t.messages.summarizeText(s);const o=t.messages.textToSpeech(e,i);await n(o)}catch(e){await o("stopped");console.error("Error summarizing message:",e)}}},fireRegisterEvent:true}),x("design:type",Function),x("design:paramtypes",[]),x("design:returntype",void 0)],T.prototype,"render",null);T.style=v;function E(e){if(!window.matchMedia("(prefers-color-scheme: dark)").matches){return e}if(!e){return e}if(e==="transparent"){return"color"}if(e.startsWith("#")){return S(e)}if(e.startsWith("rgb")){return R(e)}if(e.startsWith("hsl")){return A(e)}if(_(e)){return C(e)}return e}function S(e){if(e.length<7){e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]}const t=(255-parseInt(e.slice(1,3),16)).toString(16).padStart(2,"0");const n=(255-parseInt(e.slice(3,5),16)).toString(16).padStart(2,"0");const o=(255-parseInt(e.slice(5,7),16)).toString(16).padStart(2,"0");return`#${t}${n}${o}`}function R(e){const t=e.match(/\d+/g)?.map(Number);if(!t){return e}const[n,o,i]=t;return`rgb(${255-n}, ${255-o}, ${255-i})`}function A(e){const t=e.match(/\d+\.?\d*/g)?.map(Number);if(!t){return e}const[n,o,i]=t;return`hsl(${n}, ${o}%, ${100-i}%)`}function _(e){return/^[a-z]+$/i.test(e)}function C(e){return R(z(e))}function z(e){if(e.toLowerCase()==="red"){return"rgb(255, 0, 0)"}return"rgb(0, 0, 0)"}function L(e){if(e instanceof HTMLStyleElement){let t=e.textContent;if(t){t=t.replaceAll(/@media\s*\(prefers-color-scheme:\s*(dark|light)\)\s*\{([^}]+)\}/g,"");const n=t.matchAll(/border-color:\s*([^;]+)/g);if(n){for(const e of n){const[n,o]=e;const i=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");t=t.replaceAll(i,n.replace(o,E(o)))}}const o=t.matchAll(/border:\s*([^;]+)/g);if(o){for(const e of o){const n=e[0].trim();const o=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");const[i,r,s]=e[1].split(" ");t=t.replaceAll(o,n.replace(s,E(s)))}}const i=t.matchAll(/background-color:\s*([^;]+)/g);if(i){for(const e of i){const[n,o]=e;const i=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");t=t.replaceAll(i,n.replace(o,E(o)));s("backgroundColor",{fullMatch:n,replace:n.replace(o,E(o)),color:o,invertColor:E(o)})}}const r=t.matchAll(/background:\s*([^;]+)/g);if(r){for(const e of r){const n=e[0].trim();const o=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");const[i,r,s]=e[1].split(" ");t=t.replaceAll(o,n.replace(s,E(s)))}}const a=t.matchAll(/color:\s*([^;]+)/g);if(a){for(const e of a){const[n,o]=e;const i=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");t=t.replaceAll(i,n.replace(o,E(o)))}}e.textContent=t}}if(e instanceof HTMLElement){const t=window.getComputedStyle(e);const n=t.color||e.style.color;const o=t.backgroundColor||e.style.backgroundColor;const i=t.borderColor||e.style.borderColor;if(n&&!o){e.style.color=""}else if(n&&o){e.style.color=E(n);e.style.backgroundColor=E(o);s("element",e);s("computedStyle.color",n);s("computedStyle.backgroundColor",o);s("invertColor(color)",E(n));s("invertColor(backgroundColor)",E(o))}else if(!n&&o){e.style.backgroundColor=""}if(i){s("borderColor",i);e.style.borderColor=E(i)}if(e.hasAttribute("bgcolor")){e.removeAttribute("bgcolor")}}}function M(e){L(e);const t=e.querySelectorAll("*");t.forEach((e=>L(e)))}var D={exports:{}};
|
|
2
|
-
/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */(function(e,t){(function(t,n){e.exports=n()})(d,(function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:i}=Object;let{freeze:r,seal:s,create:a}=Object;let{apply:l,construct:c}=typeof Reflect!=="undefined"&&Reflect;if(!r){r=function e(t){return t}}if(!s){s=function e(t){return t}}if(!l){l=function e(t,n,o){return t.apply(n,o)}}if(!c){c=function e(t,n){return new t(...n)}}const f=k(Array.prototype.forEach);const u=k(Array.prototype.pop);const d=k(Array.prototype.push);const m=k(String.prototype.toLowerCase);const p=k(String.prototype.toString);const h=k(String.prototype.match);const b=k(String.prototype.replace);const y=k(String.prototype.indexOf);const g=k(String.prototype.trim);const w=k(RegExp.prototype.test);const v=x(TypeError);function k(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++){o[i-1]=arguments[i]}return l(e,t,o)}}function x(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}return c(e,n)}}function T(e,o){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:m;if(t){t(e,null)}let r=o.length;while(r--){let t=o[r];if(typeof t==="string"){const e=i(t);if(e!==t){if(!n(o)){o[r]=e}t=e}}e[t]=true}return e}function E(e){for(let t=0;t<e.length;t++){if(i(e,t)===undefined){e[t]=null}}return e}function S(t){const n=a(null);for(const[o,r]of e(t)){if(i(t,o)!==undefined){if(Array.isArray(r)){n[o]=E(r)}else if(r&&typeof r==="object"&&r.constructor===Object){n[o]=S(r)}else{n[o]=r}}}return n}function R(e,t){while(e!==null){const n=i(e,t);if(n){if(n.get){return k(n.get)}if(typeof n.value==="function"){return k(n.value)}}e=o(e)}function n(e){console.warn("fallback value for",e);return null}return n}const A=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);const _=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const C=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);const z=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);const L=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);const M=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const D=r(["#text"]);const P=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]);const I=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);const O=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);const $=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const j=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const F=s(/<%[\w\W]*|[\w\W]*%>/gm);const B=s(/\${[\w\W]*}/gm);const N=s(/^data-[\-\w.\u00B7-\uFFFF]/);const q=s(/^aria-[\-\w]+$/);const U=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const H=s(/^(?:\w+script|data):/i);const W=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const X=s(/^html$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:F,TMPLIT_EXPR:B,DATA_ATTR:N,ARIA_ATTR:q,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:W,DOCTYPE_NAME:X});const G=function e(){return typeof window==="undefined"?null:window};const Z=function e(t,n){if(typeof t!=="object"||typeof t.createPolicy!=="function"){return null}let o=null;const i="data-tt-policy-suffix";if(n&&n.hasAttribute(i)){o=n.getAttribute(i)}const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){console.warn("TrustedTypes policy "+r+" could not be created.");return null}};function V(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:G();const n=e=>V(e);n.version="3.0.8";n.removed=[];if(!t||!t.document||t.document.nodeType!==9){n.isSupported=false;return n}let{document:o}=t;const i=o;const s=i.currentScript;const{DocumentFragment:l,HTMLTemplateElement:c,Node:k,Element:x,NodeFilter:E,NamedNodeMap:j=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:F,DOMParser:B,trustedTypes:N}=t;const q=x.prototype;const H=R(q,"cloneNode");const W=R(q,"nextSibling");const J=R(q,"childNodes");const K=R(q,"parentNode");if(typeof c==="function"){const e=o.createElement("template");if(e.content&&e.content.ownerDocument){o=e.content.ownerDocument}}let Q;let ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:oe,getElementsByTagName:ie}=o;const{importNode:re}=i;let se={};n.isSupported=typeof e==="function"&&typeof K==="function"&&te&&te.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:ae,ERB_EXPR:le,TMPLIT_EXPR:ce,DATA_ATTR:fe,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:me}=Y;let{IS_ALLOWED_URI:pe}=Y;let he=null;const be=T({},[...A,..._,...C,...L,...D]);let ye=null;const ge=T({},[...P,...I,...O,...$]);let we=Object.seal(a(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let ve=null;let ke=null;let xe=true;let Te=true;let Ee=false;let Se=true;let Re=false;let Ae=false;let _e=false;let Ce=false;let ze=false;let Le=false;let Me=false;let De=true;let Pe=false;const Ie="user-content-";let Oe=true;let $e=false;let je={};let Fe=null;const Be=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ne=null;const qe=T({},["audio","video","img","source","image","track"]);let Ue=null;const He=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const We="http://www.w3.org/1998/Math/MathML";const Xe="http://www.w3.org/2000/svg";const Ye="http://www.w3.org/1999/xhtml";let Ge=Ye;let Ze=false;let Ve=null;const Je=T({},[We,Xe,Ye],p);let Ke=null;const Qe=["application/xhtml+xml","text/html"];const et="text/html";let tt=null;let nt=null;const ot=o.createElement("form");const it=function e(t){return t instanceof RegExp||t instanceof Function};const rt=function e(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(nt&&nt===t){return}if(!t||typeof t!=="object"){t={}}t=S(t);Ke=Qe.indexOf(t.PARSER_MEDIA_TYPE)===-1?et:t.PARSER_MEDIA_TYPE;tt=Ke==="application/xhtml+xml"?p:m;he="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,tt):be;ye="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,tt):ge;Ve="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,p):Je;Ue="ADD_URI_SAFE_ATTR"in t?T(S(He),t.ADD_URI_SAFE_ATTR,tt):He;Ne="ADD_DATA_URI_TAGS"in t?T(S(qe),t.ADD_DATA_URI_TAGS,tt):qe;Fe="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,tt):Be;ve="FORBID_TAGS"in t?T({},t.FORBID_TAGS,tt):{};ke="FORBID_ATTR"in t?T({},t.FORBID_ATTR,tt):{};je="USE_PROFILES"in t?t.USE_PROFILES:false;xe=t.ALLOW_ARIA_ATTR!==false;Te=t.ALLOW_DATA_ATTR!==false;Ee=t.ALLOW_UNKNOWN_PROTOCOLS||false;Se=t.ALLOW_SELF_CLOSE_IN_ATTR!==false;Re=t.SAFE_FOR_TEMPLATES||false;Ae=t.WHOLE_DOCUMENT||false;ze=t.RETURN_DOM||false;Le=t.RETURN_DOM_FRAGMENT||false;Me=t.RETURN_TRUSTED_TYPE||false;Ce=t.FORCE_BODY||false;De=t.SANITIZE_DOM!==false;Pe=t.SANITIZE_NAMED_PROPS||false;Oe=t.KEEP_CONTENT!==false;$e=t.IN_PLACE||false;pe=t.ALLOWED_URI_REGEXP||U;Ge=t.NAMESPACE||Ye;we=t.CUSTOM_ELEMENT_HANDLING||{};if(t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){we.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){we.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){we.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Re){Te=false}if(Le){ze=true}if(je){he=T({},D);ye=[];if(je.html===true){T(he,A);T(ye,P)}if(je.svg===true){T(he,_);T(ye,I);T(ye,$)}if(je.svgFilters===true){T(he,C);T(ye,I);T(ye,$)}if(je.mathMl===true){T(he,L);T(ye,O);T(ye,$)}}if(t.ADD_TAGS){if(he===be){he=S(he)}T(he,t.ADD_TAGS,tt)}if(t.ADD_ATTR){if(ye===ge){ye=S(ye)}T(ye,t.ADD_ATTR,tt)}if(t.ADD_URI_SAFE_ATTR){T(Ue,t.ADD_URI_SAFE_ATTR,tt)}if(t.FORBID_CONTENTS){if(Fe===Be){Fe=S(Fe)}T(Fe,t.FORBID_CONTENTS,tt)}if(Oe){he["#text"]=true}if(Ae){T(he,["html","head","body"])}if(he.table){T(he,["tbody"]);delete ve.tbody}if(t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}Q=t.TRUSTED_TYPES_POLICY;ee=Q.createHTML("")}else{if(Q===undefined){Q=Z(N,s)}if(Q!==null&&typeof ee==="string"){ee=Q.createHTML("")}}if(r){r(t)}nt=t};const st=T({},["mi","mo","mn","ms","mtext"]);const at=T({},["foreignobject","desc","title","annotation-xml"]);const lt=T({},["title","style","font","a","script"]);const ct=T({},[..._,...C,...z]);const ft=T({},[...L,...M]);const ut=function e(t){let n=K(t);if(!n||!n.tagName){n={namespaceURI:Ge,tagName:"template"}}const o=m(t.tagName);const i=m(n.tagName);if(!Ve[t.namespaceURI]){return false}if(t.namespaceURI===Xe){if(n.namespaceURI===Ye){return o==="svg"}if(n.namespaceURI===We){return o==="svg"&&(i==="annotation-xml"||st[i])}return Boolean(ct[o])}if(t.namespaceURI===We){if(n.namespaceURI===Ye){return o==="math"}if(n.namespaceURI===Xe){return o==="math"&&at[i]}return Boolean(ft[o])}if(t.namespaceURI===Ye){if(n.namespaceURI===Xe&&!at[i]){return false}if(n.namespaceURI===We&&!st[i]){return false}return!ft[o]&&(lt[o]||!ct[o])}if(Ke==="application/xhtml+xml"&&Ve[t.namespaceURI]){return true}return false};const dt=function e(t){d(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}};const mt=function e(t,o){try{d(n.removed,{attribute:o.getAttributeNode(t),from:o})}catch(e){d(n.removed,{attribute:null,from:o})}o.removeAttribute(t);if(t==="is"&&!ye[t]){if(ze||Le){try{dt(o)}catch(e){}}else{try{o.setAttribute(t,"")}catch(e){}}}};const pt=function e(t){let n=null;let i=null;if(Ce){t="<remove></remove>"+t}else{const e=h(t,/^[\r\n\t ]+/);i=e&&e[0]}if(Ke==="application/xhtml+xml"&&Ge===Ye){t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>"}const r=Q?Q.createHTML(t):t;if(Ge===Ye){try{n=(new B).parseFromString(r,Ke)}catch(e){}}if(!n||!n.documentElement){n=te.createDocument(Ge,"template",null);try{n.documentElement.innerHTML=Ze?ee:r}catch(e){}}const s=n.body||n.documentElement;if(t&&i){s.insertBefore(o.createTextNode(i),s.childNodes[0]||null)}if(Ge===Ye){return ie.call(n,Ae?"html":"body")[0]}return Ae?n.documentElement:s};const ht=function e(t){return ne.call(t.ownerDocument||t,t,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT,null)};const bt=function e(t){return t instanceof F&&(typeof t.nodeName!=="string"||typeof t.textContent!=="string"||typeof t.removeChild!=="function"||!(t.attributes instanceof j)||typeof t.removeAttribute!=="function"||typeof t.setAttribute!=="function"||typeof t.namespaceURI!=="string"||typeof t.insertBefore!=="function"||typeof t.hasChildNodes!=="function")};const yt=function e(t){return typeof k==="function"&&t instanceof k};const gt=function e(t,o,i){if(!se[t]){return}f(se[t],(e=>{e.call(n,o,i,nt)}))};const wt=function e(t){let o=null;gt("beforeSanitizeElements",t,null);if(bt(t)){dt(t);return true}const i=tt(t.nodeName);gt("uponSanitizeElement",t,{tagName:i,allowedTags:he});if(t.hasChildNodes()&&!yt(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent)){dt(t);return true}if(!he[i]||ve[i]){if(!ve[i]&&kt(i)){if(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i)){return false}if(we.tagNameCheck instanceof Function&&we.tagNameCheck(i)){return false}}if(Oe&&!Fe[i]){const e=K(t)||t.parentNode;const n=J(t)||t.childNodes;if(n&&e){const o=n.length;for(let i=o-1;i>=0;--i){e.insertBefore(H(n[i],true),W(t))}}}dt(t);return true}if(t instanceof x&&!ut(t)){dt(t);return true}if((i==="noscript"||i==="noembed"||i==="noframes")&&w(/<\/no(script|embed|frames)/i,t.innerHTML)){dt(t);return true}if(Re&&t.nodeType===3){o=t.textContent;f([ae,le,ce],(e=>{o=b(o,e," ")}));if(t.textContent!==o){d(n.removed,{element:t.cloneNode()});t.textContent=o}}gt("afterSanitizeElements",t,null);return false};const vt=function e(t,n,i){if(De&&(n==="id"||n==="name")&&(i in o||i in ot)){return false}if(Te&&!ke[n]&&w(fe,n));else if(xe&&w(ue,n));else if(!ye[n]||ke[n]){if(kt(t)&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,t)||we.tagNameCheck instanceof Function&&we.tagNameCheck(t))&&(we.attributeNameCheck instanceof RegExp&&w(we.attributeNameCheck,n)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(n))||n==="is"&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i)||we.tagNameCheck instanceof Function&&we.tagNameCheck(i)));else{return false}}else if(Ue[n]);else if(w(pe,b(i,me,"")));else if((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&y(i,"data:")===0&&Ne[t]);else if(Ee&&!w(de,b(i,me,"")));else if(i){return false}else;return true};const kt=function e(t){return t.indexOf("-")>0};const xt=function e(t){gt("beforeSanitizeAttributes",t,null);const{attributes:o}=t;if(!o){return}const i={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:ye};let r=o.length;while(r--){const e=o[r];const{name:s,namespaceURI:a,value:l}=e;const c=tt(s);let d=s==="value"?l:g(l);i.attrName=c;i.attrValue=d;i.keepAttr=true;i.forceKeepAttr=undefined;gt("uponSanitizeAttribute",t,i);d=i.attrValue;if(i.forceKeepAttr){continue}mt(s,t);if(!i.keepAttr){continue}if(!Se&&w(/\/>/i,d)){mt(s,t);continue}if(Re){f([ae,le,ce],(e=>{d=b(d,e," ")}))}const m=tt(t.nodeName);if(!vt(m,c,d)){continue}if(Pe&&(c==="id"||c==="name")){mt(s,t);d=Ie+d}if(Q&&typeof N==="object"&&typeof N.getAttributeType==="function"){if(a);else{switch(N.getAttributeType(m,c)){case"TrustedHTML":{d=Q.createHTML(d);break}case"TrustedScriptURL":{d=Q.createScriptURL(d);break}}}}try{if(a){t.setAttributeNS(a,s,d)}else{t.setAttribute(s,d)}u(n.removed)}catch(e){}}gt("afterSanitizeAttributes",t,null)};const Tt=function e(t){let n=null;const o=ht(t);gt("beforeSanitizeShadowDOM",t,null);while(n=o.nextNode()){gt("uponSanitizeShadowNode",n,null);if(wt(n)){continue}if(n.content instanceof l){e(n.content)}xt(n)}gt("afterSanitizeShadowDOM",t,null)};n.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let o=null;let r=null;let s=null;let a=null;Ze=!e;if(Ze){e="\x3c!--\x3e"}if(typeof e!=="string"&&!yt(e)){if(typeof e.toString==="function"){e=e.toString();if(typeof e!=="string"){throw v("dirty is not a string, aborting")}}else{throw v("toString is not a function")}}if(!n.isSupported){return e}if(!_e){rt(t)}n.removed=[];if(typeof e==="string"){$e=false}if($e){if(e.nodeName){const t=tt(e.nodeName);if(!he[t]||ve[t]){throw v("root node is forbidden and cannot be sanitized in-place")}}}else if(e instanceof k){o=pt("\x3c!----\x3e");r=o.ownerDocument.importNode(e,true);if(r.nodeType===1&&r.nodeName==="BODY"){o=r}else if(r.nodeName==="HTML"){o=r}else{o.appendChild(r)}}else{if(!ze&&!Re&&!Ae&&e.indexOf("<")===-1){return Q&&Me?Q.createHTML(e):e}o=pt(e);if(!o){return ze?null:Me?ee:""}}if(o&&Ce){dt(o.firstChild)}const c=ht($e?e:o);while(s=c.nextNode()){if(wt(s)){continue}if(s.content instanceof l){Tt(s.content)}xt(s)}if($e){return e}if(ze){if(Le){a=oe.call(o.ownerDocument);while(o.firstChild){a.appendChild(o.firstChild)}}else{a=o}if(ye.shadowroot||ye.shadowrootmode){a=re.call(i,a,true)}return a}let u=Ae?o.outerHTML:o.innerHTML;if(Ae&&he["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&w(X,o.ownerDocument.doctype.name)){u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u}if(Re){f([ae,le,ce],(e=>{u=b(u,e," ")}))}return Q&&Me?Q.createHTML(u):u};n.setConfig=function(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};rt(e);_e=true};n.clearConfig=function(){nt=null;_e=false};n.isValidAttribute=function(e,t,n){if(!nt){rt({})}const o=tt(e);const i=tt(t);return vt(o,i,n)};n.addHook=function(e,t){if(typeof t!=="function"){return}se[e]=se[e]||[];d(se[e],t)};n.removeHook=function(e){if(se[e]){return u(se[e])}};n.removeHooks=function(e){if(se[e]){se[e]=[]}};n.removeAllHooks=function(){se={}};return n}var J=V();return J}))})(D);const P=D.exports;const I=":host{display:inline-grid;overflow:hidden;width:100%}.view-email{width:100%}.view-email div.gmail_quote{display:none;color:var(--nylas-color-primary-400)}.view-email div.gmail_quote.show{display:block}.view-email blockquote{border-color:var(--nylas-color-primary-500) !important}.view-email .nylas-view-email-toggle-button{display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);border:0;border-radius:2px;font-size:14px;font-weight:500;line-height:1.5;transition:all 0.2s ease-in-out}.view-email .nylas-view-email-toggle-button:hover{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600)}";const O=I;P.addHook("afterSanitizeAttributes",(function(e){if("target"in e){e.setAttribute("target","_blank");e.setAttribute("rel","noopener")}}));const $=class{constructor(t){e(this,t);this.htmlElement=document.createElement("html");this.setBody=e=>{this.state="loading";this.styles=[];this.hoistedFontURLs=new Map;this.sanitizedBody="";document.querySelectorAll(".nylas-view-email-font").forEach((e=>{e.remove()}));const t=this.message?l(this.message):c(e);if(!t){e=`<html><body>${f(e)}</body></html>`}this.htmlElement.innerHTML=e;if(this.detectDarkMode){M(this.htmlElement)}this.htmlElement.querySelectorAll("link").forEach((e=>{console.debug(`[nylas-view-email] Hoisting link: ${e.getAttribute("href")}`);if(e.getAttribute("rel")==="stylesheet"&&e.getAttribute("href")){const t=e.getAttribute("href");if(t){const e=new URL(t,window.location.href);if(e.protocol==="https:"||e.protocol==="http:"){this.hoistedFontURLs.set(e.href,e.href)}}}}));this.htmlElement.querySelectorAll("style").forEach((e=>{e.innerHTML.split("\n").forEach((e=>{const t=e.match(/@import url\((.*)\)/);if(t){const e=new URL(t[1],window.location.href);if(e.protocol==="https:"||e.protocol==="http:"){this.hoistedFontURLs.set(e.href,e.href)}}}));e.innerHTML=e.innerHTML.replace("body",":host");this.styles.push(e);e.remove()}));this.htmlElement.querySelectorAll("a").forEach((e=>{e.setAttribute("target","_blank")}));const n=this.htmlElement.querySelector(".gmail_quote");if(n){const e=document.createElement("button");e.classList.add("nylas-view-email-toggle-button");e.setAttribute("aria-label","Show quoted text");e.innerText="...";n.parentElement?.insertBefore(e,n)}this.sanitizedBody=P.sanitize(this.htmlElement.innerHTML);this.hoistedFontURLs.forEach(((e,t)=>{const n=document.createElement("link");n.setAttribute("rel","stylesheet");n.setAttribute("href",e);n.classList.add("nylas-view-email-font");document.head.appendChild(n)}));this.state="ready"};this.handleMobileSize=()=>{const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);if(e<=768){const t=this.viewEmailElement?.getBoundingClientRect();if(t&&this.viewEmailElement&&this.parent){if(t.width>e){const e=this.parent;const n=e?.getBoundingClientRect();s("Parent width:",n?.width,"Parent height:",n?.height);s("Parent client width:",e.clientWidth,"Parent client height:",e.clientHeight);const o=n.width/t.width;const i=n.height/t.height;const r=Math.min(o,i);s("Scale:",r);this.viewEmailElement.style.setProperty("transform",`scale(${r})`);this.viewEmailElement.style.setProperty("transform-origin",`top left`);this.viewEmailElement.style.setProperty("height",`${t.height*r}px`)}}}else{this.viewEmailElement?.style.removeProperty("transform");this.viewEmailElement?.style.removeProperty("transform-origin");this.viewEmailElement?.style.removeProperty("height")}};this.message=undefined;this.parent=undefined;this.attachments=[];this.detectDarkMode=true;this.state="loading";this.sanitizedBody="";this.styles=[];this.viewEmailElement=undefined;this.hoistedFontURLs=new Map}connectedCallback(){}disconnectedCallback(){s(`[nylas-view-email] Component disconnected`);this.state="loading";this.styles=[];this.hoistedFontURLs=new Map;this.sanitizedBody="";document.querySelectorAll(".nylas-view-email-font").forEach((e=>{e.remove()}))}async componentWillLoad(){s(`[nylas-view-email] component loaded`);this.setBody(this.message?.body??"")}async componentDidLoad(){s(`[nylas-view-thread] Component did load`);this.handleMobileSize()}async messageChanged(){s(`[nylas-view-thread] Message changed`,{message:this.message});this.setBody(this.message?.body??"")}handleScroll(){this.handleMobileSize()}viewEmailElementChanged(){const e=this.viewEmailElement?.querySelectorAll(".nylas-view-email-toggle-button");if(e){e.forEach((e=>{e.addEventListener("click",(()=>{const e=this.viewEmailElement?.querySelector(".gmail_quote");if(e){e.classList.toggle("show")}}))}))}}render(){console.debug(`[nylas-view-email] render`,{hoistedFontURLs:this.hoistedFontURLs});return t(o,{key:"5209aa3727b4c8013cec3ee0a33afdb38e9925d9"},this.state==="loading"&&t("div",null,"Loading..."),this.state==="ready"&&t(r,null,this.styles.map((e=>t("style",null,P.sanitize(e.innerHTML)))),t("div",{class:"view-email",part:"view-email",innerHTML:this.sanitizedBody,ref:e=>this.viewEmailElement=e})))}get host(){return i(this)}static get watchers(){return{message:["messageChanged"],viewEmailElement:["viewEmailElementChanged"]}}};$.style=O;const j=".sc-reply-all-icon-h{display:flex}";const F=j;const B=class{constructor(t){e(this,t);this.width="15";this.height="15"}render(){return t("svg",{key:"cf3a910b7232018b6579cfe31a868e3ba54f30b0",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"1db5bb9aa170d0a00c5939cdd7bfe7b878124c2c",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};B.style=F;const N=".sc-reply-icon-h{display:flex}";const q=N;const U=class{constructor(t){e(this,t);this.width="15";this.height="15"}render(){return t("svg",{key:"a353055eb9122f1dae36fbf49a557c431fd8580a",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"97ac62efd50d229e10b45fc2a47f3c8c5a9b6e5d",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};U.style=q;export{h as forward_icon,g as nylas_composer,T as nylas_summarize_message_button,$ as nylas_view_email,B as reply_all_icon,U as reply_icon};
|
|
3
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as t,c as n,H as o,a as i,F as r}from"./p-68c2fadf.js";import{a as s,j as a,k as l,l as c,p as f}from"./p-41dc0d93.js";import{R as u}from"./p-eaa9151b.js";import{c as d}from"./p-cb65c223.js";const m=".sc-forward-icon-h{display:flex}";const p=m;const h=class{constructor(t){e(this,t);this.width="15";this.height="15"}render(){return t("svg",{key:"c3c406f225989a53006d7deef67a2dd8dd3d5d81",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"be9eae8233d00a07dd1501d7daf45f51d6049908",d:"m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z","fill-rule":"evenodd"}))}};h.style=p;const y=':host{display:grid;color:var(--nylas-color-primary-900)}.editor{position:relative;display:block;max-height:300px;overflow:auto;padding:1rem;border:1px solid var(--nylas-color-primary-300)}.editor blockquote{visibility:hidden;overflow:hidden;position:relative;transition:height 0.3s ease;margin:0}.editor blockquote::before{content:"...";visibility:visible;opacity:1;position:absolute;top:0;left:0;background-color:var(--nylas-color-primary-300);width:20px;text-align:center;color:var(--nylas-color-primary-800);vertical-align:middle;display:flex;justify-content:center;align-items:center;align-self:center;cursor:pointer}.editor .collapsed{height:20px}.editor .expanded{visibility:visible;opacity:1;height:auto;margin:0px 0px 0px 0.8ex;border-left:1px solid var(--nylas-color-primary-300);padding-left:1rem}.editor .expanded::before{display:none;}.buttons{display:flex;margin-top:1rem;justify-content:space-between}.buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.buttons sp-button chevron-icon{display:inline-block}.buttons .close{justify-self:end}.toolbar{position:absolute;display:none;background-color:var(--nylas-color-primary-200);border-radius:var(--nylas-border-radius);z-index:1}.toolbar sp-button{border:0}';const g=y;const b=class{constructor(t){e(this,t);this.close=n(this,"close",7);this.send=n(this,"send",7);this.closeComposer=e=>{this.close.emit(e)};this.sendComposer=e=>{if(!this.editorEl){s("no editor element");return}const t=this.editorEl.querySelector(".message-body");if(!t){s("no message body");return}if(this.message){this.send.emit({message:this.message,replyBody:t.querySelector(".message-body")?.innerHTML||""});this.close.emit(e);this.editorEl.innerHTML=""}};this.message=undefined;this.viewEmailElement=undefined}connectedCallback(){}disconnectedCallback(){if(this.editorEl){this.editorEl.innerHTML=""}}componentWillLoad(){}async componentDidLoad(){if(this.message){this.watchBody(this.message)}if(!this.editorEl){s("[connectedCallback] no editor element");return}if(!this.toolbarEl){s("[connectedCallback] no toolbar element");return}const e=this.editorEl;const t=this.toolbarEl;e.addEventListener("mouseup",(n=>{const o=this.host.shadowRoot?.getSelection();if(!o){s("no selection");return}const i=o.getRangeAt(0);const r=o.toString();if(!r){t.style.display="none";return}const a=e.querySelector(".message-body");if(!a){s("no message body");return}const l=i.commonAncestorContainer;const c=l.parentElement;if(!c){return}const f=a.getBoundingClientRect();s("messageBodyRect",{messageBodyRect:f});const u=c.getBoundingClientRect();s("foundRect",{foundRect:u});const d=c.childNodes[0];const m=d.textContent||"";const p=m.indexOf(r);const h=window.getComputedStyle(c).fontSize;const y=parseInt(h.replace("px",""),10);const g=u.top-f.top-t.clientHeight;const b=p*(1/y)*100;t.style.top=`${g}px`;t.style.left=`${b}px`;t.style.display="block"}))}watchBody(e){if(!this.editorEl){s("no editor element");return}this.editorEl.querySelectorAll(".message-body").forEach((e=>e.remove()));const t=document.createElement("div");t.classList.add("message-body");const n=document.createElement("p");n.innerHTML=" ";t.appendChild(n);const o=document.createElement("br");t.appendChild(o);const i=document.createElement("div");i.classList.add("reply-text");i.innerText=`On ${new Date(e.date*1e3).toLocaleDateString(undefined,{dateStyle:"full"})} <${e.from?.map((e=>e.name||e.email)).join(", ")}> wrote:`;t.appendChild(i);if(e.body){const n=document.createElement("html");n.innerHTML=e.body;const o=document.createElement("blockquote");o.classList.add("collapsed");o.classList.add("gmail_quote");o.innerHTML=n.innerHTML;t.appendChild(o);s("replyContainer",{replyContainer:o})}this.editorEl.appendChild(t);this.editorEl.querySelectorAll("blockquote.collapsed").forEach((e=>{e.addEventListener("click",(function(e){e.preventDefault();const t=e.target;t.classList.remove("collapsed");t.classList.add("expanded")}),{once:true})}));this.editorEl.focus()}render(){return t(o,{key:"8d7f9c145099757c2a8dc48f1d2a223831f82cda"},t("sp-theme",{key:"e92e457e86701838f55d97b3f2c1c0f70f14bf59",scale:"medium",color:"dark"},t("div",{key:"50eba2b6ee0c84d8eeb392385872604b74b11025",class:"editor",contentEditable:true,ref:e=>this.editorEl=e},t("div",{key:"38bdd2ec58e62699e2c604b1b2c586cb5ecf105a",class:"toolbar",ref:e=>this.toolbarEl=e,contentEditable:false},t("sp-button",{key:"6415e5f9910a2d9798e7c85162329f359e500aeb",quiet:true,onClick:()=>document.execCommand("bold")},t("div",{key:"e03cfe0f5736836f64aa350165fa519508e212f7",slot:"icon"},t("bold-icon",{key:"1ad03230cff2f0843d6da22153716c3818ed04f7"})),t("div",{key:"d90c50aff88b9ac7774d6792b91ea3ced21f4419",slot:"label"},"Bold")),t("sp-button",{key:"466621fcdf2e8e1e85b613bba82b948ed2177a88",quiet:true,onClick:()=>document.execCommand("underline")},t("div",{key:"6be0737cf685b02f3ee8ef7c34fd18674793af00",slot:"icon"},t("underline-icon",{key:"278b1b79d3aec25ab2c2181c3e5c631063b04e29"})),t("div",{key:"169d3039815082e208eb476b4490181f7eb54ee6",slot:"label"},"Underline")),t("sp-button",{key:"92c20b2d03b709f08c63af3a1e88b10e407243d7",quiet:true,onClick:()=>document.execCommand("italic")},t("div",{key:"67eb3d5b5a2118d90bfb81c7b51d52c41b5ab2a2",slot:"icon"},t("italic-icon",{key:"35ac96f9ff3f3f0c38c7e486092f42dc9451eb63"})),t("div",{key:"f29fe84363cca6e178a3651a1c8e56929ebb3e32",slot:"label"},"Italic")))),t("div",{key:"3d89b191642ab291fc338ffd66be16fe999950b1",class:"buttons"},t("sp-button",{key:"f78c122acf4c69c788d411d2dcfd49649c99919e",onClick:this.sendComposer,class:"send"},"Send"),t("sp-button",{key:"b46873c911cb796e9af22eb7d19bf6e1cd2cd1be",onClick:this.closeComposer,class:"close"},"Close"))))}get host(){return i(this)}static get watchers(){return{message:["watchBody"]}}};b.style=g;const w=":host{display:block}sp-button{padding:0;border:0;border-radius:var(--nylas-border-radius);min-block-size:50%;min-inline-size:2rem;background-color:var(--nylas-color-primary-300);fill:var(--nylas-color-primary-800)}sp-button:hover{background-color:var(--nylas-color-primary-400)}.summarize-button.stopped{animation:none}.summarize-button.playing{animation:pulse 2s infinite}.summarize-button.loading{display:flex;align-content:center;height:1.5rem;width:2rem;vertical-align:middle;animation:pulse 2s infinite;flex-wrap:wrap}.summarize-button.loading loading-icon{--dot-color:var(--nylas-color-primary-600)}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 0 0 var(--nylas-color-primary-300)}70%{transform:scale(1.05);box-shadow:0 0 0 10px rgba(255, 69, 0, 0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255, 69, 0, 0)}}@keyframes wave{0%{transform:translateX(0)}50%{transform:translateX(100%)}100%{transform:translateX(0)}}";const v=w;var k=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,r=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)if(s=e[a])r=(i<3?s(r):i>3?s(t,n,r):s(t,n))||r;return i>3&&r&&Object.defineProperty(t,n,r),r};var x=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};const T=class{constructor(t){e(this,t);this.summarize=n(this,"summarize",7);this.abortController=new AbortController;this.onClick=async e=>{e.preventDefault();e.stopPropagation();if(this.state==="stopped"){if(this.message){this.abortController=new AbortController;const e=this.summarize.emit({abortController:this.abortController,playAudio:this.playAudio,message:this.message,updateState:this.updateState});if(!e.defaultPrevented){s(`[nylas-summarize-message-button] Default event not prevented, summarizing message`);if(this.audioRef){await this.audioRef.play().then((()=>this.audioRef?.pause())).catch((e=>console.error("Error playing audio:",e)));await this.audioRef.play().catch((e=>console.error("Error playing audio:",e)))}}}}else if(this.state==="playing"){this.abortController?.abort();this.audioRef?.pause()}else{this.state="stopped"}};this.message=undefined;this.state="stopped";this.playAudio=this.playAudio.bind(this);this.updateState=this.updateState.bind(this)}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){s(`[nylas-summarize-message-button] Component will load`)}async componentDidLoad(){s(`[nylas-summarize-message-button] Component did load`)}async updateState(e){this.state=e}async playAudio(e){if(!this.audioRef){this.state="stopped";return}if(!e){this.state="stopped";return}const t=this.audioRef;if(!("MediaSource"in window)){const n=await e;if(n==null){throw new Error("ReadableStream not yet supported in this browser.")}const o=n.getReader();const i=[];await this.readChunk(o,i);const r=new Blob(i,{type:"audio/mpeg"});const s=URL.createObjectURL(r);t.src=s;return}const n=new MediaSource;let o;let i=false;t.src=URL.createObjectURL(n);n.addEventListener("sourceopen",r);async function r(){o=n.addSourceBuffer("audio/mpeg");o.addEventListener("updateend",a);const r=await e;if(r==null){throw new Error("ReadableStream not yet supported in this browser.")}const s=r.getReader();const l=()=>{s.read().then((({done:e,value:t})=>{if(e){i=true;return}if(!o.updating){o.appendBuffer(t)}l()})).catch((e=>{console.error("Error while fetching and appending chunks:",e)}))};l();if(t.paused){t.play().catch((e=>console.error("Error playing audio:",e)))}}function a(){if(i){n.endOfStream();n.removeEventListener("sourceopen",r);n.removeEventListener("sourceclose",(()=>{s(`[nylas-summarize-message-button] Source closed`)}));o.removeEventListener("updateend",a);return}}}async readChunk(e,t){return e.read().then((({done:n,value:o})=>{if(n){return t}t.push(o);return this.readChunk(e,t)}))}render(){return t(o,{key:"09d693158ce9480c000957afe31566d47f6fb5f2"},t("sp-theme",{key:"21f246783a3d5786c1cee8f438e89947ee5f574d",scale:"medium",color:"dark"},t("sp-button",{key:"7ef9c60895da162d3b521ddc7c070ff463e51094",label:"Summarize email","icon-only":true,onClickCapture:this.onClick,class:{"summarize-button":true,stopped:this.state==="stopped",loading:this.state==="loading",playing:this.state==="playing"}},this.state==="stopped"&&t("play-icon",null),this.state==="loading"&&t("loading-icon",null),this.state==="playing"&&t("stop-icon",null)),t("audio",{key:"7481ceeb62b6eb21c627d0e04be0e0e7a9e986ec",ref:e=>this.audioRef=e,autoPlay:true,onPlaying:()=>this.state="playing",onPause:()=>this.state="stopped",onEnded:()=>{this.state="stopped";s(`[nylas-summarize-message-button] Audio ended`)}})))}};k([u({name:"nylas-summarize-message-button",eventToProps:{summarize:async(e,t)=>{const{playAudio:n,updateState:o,abortController:i,message:r}=e.detail;const s=a(r.body||"");await o("loading");try{const e=await t.messages.summarizeText(s);const o=t.messages.textToSpeech(e,i);await n(o)}catch(e){await o("stopped");console.error("Error summarizing message:",e)}}},fireRegisterEvent:true}),x("design:type",Function),x("design:paramtypes",[]),x("design:returntype",void 0)],T.prototype,"render",null);T.style=v;function E(e){if(!window.matchMedia("(prefers-color-scheme: dark)").matches){return e}if(!e){return e}if(e==="transparent"){return"color"}if(e.startsWith("#")){return S(e)}if(e.startsWith("rgb")){return R(e)}if(e.startsWith("hsl")){return A(e)}if(_(e)){return C(e)}return e}function S(e){if(e.length<7){e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]}const t=(255-parseInt(e.slice(1,3),16)).toString(16).padStart(2,"0");const n=(255-parseInt(e.slice(3,5),16)).toString(16).padStart(2,"0");const o=(255-parseInt(e.slice(5,7),16)).toString(16).padStart(2,"0");return`#${t}${n}${o}`}function R(e){const t=e.match(/\d+/g)?.map(Number);if(!t){return e}const[n,o,i]=t;return`rgb(${255-n}, ${255-o}, ${255-i})`}function A(e){const t=e.match(/\d+\.?\d*/g)?.map(Number);if(!t){return e}const[n,o,i]=t;return`hsl(${n}, ${o}%, ${100-i}%)`}function _(e){return/^[a-z]+$/i.test(e)}function C(e){return R(z(e))}function z(e){if(e.toLowerCase()==="red"){return"rgb(255, 0, 0)"}return"rgb(0, 0, 0)"}function L(e){if(e instanceof HTMLStyleElement){let t=e.textContent;if(t){t=t.replaceAll(/@media\s*\(prefers-color-scheme:\s*(dark|light)\)\s*\{([^}]+)\}/g,"");const n=t.matchAll(/border-color:\s*([^;]+)/g);if(n){for(const e of n){const[n,o]=e;const i=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");t=t.replaceAll(i,n.replace(o,E(o)))}}const o=t.matchAll(/border:\s*([^;]+)/g);if(o){for(const e of o){const n=e[0].trim();const o=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");const[i,r,s]=e[1].split(" ");t=t.replaceAll(o,n.replace(s,E(s)))}}const i=t.matchAll(/background-color:\s*([^;]+)/g);if(i){for(const e of i){const[n,o]=e;const i=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");t=t.replaceAll(i,n.replace(o,E(o)));s("backgroundColor",{fullMatch:n,replace:n.replace(o,E(o)),color:o,invertColor:E(o)})}}const r=t.matchAll(/background:\s*([^;]+)/g);if(r){for(const e of r){const n=e[0].trim();const o=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");const[i,r,s]=e[1].split(" ");t=t.replaceAll(o,n.replace(s,E(s)))}}const a=t.matchAll(/color:\s*([^;]+)/g);if(a){for(const e of a){const[n,o]=e;const i=n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");t=t.replaceAll(i,n.replace(o,E(o)))}}e.textContent=t}}if(e instanceof HTMLElement){const t=window.getComputedStyle(e);const n=t.color||e.style.color;const o=t.backgroundColor||e.style.backgroundColor;const i=t.borderColor||e.style.borderColor;if(n&&!o){e.style.color=""}else if(n&&o){e.style.color=E(n);e.style.backgroundColor=E(o);s("element",e);s("computedStyle.color",n);s("computedStyle.backgroundColor",o);s("invertColor(color)",E(n));s("invertColor(backgroundColor)",E(o))}else if(!n&&o){e.style.backgroundColor=""}if(i){s("borderColor",i);e.style.borderColor=E(i)}if(e.hasAttribute("bgcolor")){e.removeAttribute("bgcolor")}}}function M(e){L(e);const t=e.querySelectorAll("*");t.forEach((e=>L(e)))}var D={exports:{}};
|
|
2
|
+
/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */(function(e,t){(function(t,n){e.exports=n()})(d,(function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:i}=Object;let{freeze:r,seal:s,create:a}=Object;let{apply:l,construct:c}=typeof Reflect!=="undefined"&&Reflect;if(!r){r=function e(t){return t}}if(!s){s=function e(t){return t}}if(!l){l=function e(t,n,o){return t.apply(n,o)}}if(!c){c=function e(t,n){return new t(...n)}}const f=k(Array.prototype.forEach);const u=k(Array.prototype.pop);const d=k(Array.prototype.push);const m=k(String.prototype.toLowerCase);const p=k(String.prototype.toString);const h=k(String.prototype.match);const y=k(String.prototype.replace);const g=k(String.prototype.indexOf);const b=k(String.prototype.trim);const w=k(RegExp.prototype.test);const v=x(TypeError);function k(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++){o[i-1]=arguments[i]}return l(e,t,o)}}function x(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}return c(e,n)}}function T(e,o){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:m;if(t){t(e,null)}let r=o.length;while(r--){let t=o[r];if(typeof t==="string"){const e=i(t);if(e!==t){if(!n(o)){o[r]=e}t=e}}e[t]=true}return e}function E(e){for(let t=0;t<e.length;t++){if(i(e,t)===undefined){e[t]=null}}return e}function S(t){const n=a(null);for(const[o,r]of e(t)){if(i(t,o)!==undefined){if(Array.isArray(r)){n[o]=E(r)}else if(r&&typeof r==="object"&&r.constructor===Object){n[o]=S(r)}else{n[o]=r}}}return n}function R(e,t){while(e!==null){const n=i(e,t);if(n){if(n.get){return k(n.get)}if(typeof n.value==="function"){return k(n.value)}}e=o(e)}function n(e){console.warn("fallback value for",e);return null}return n}const A=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);const _=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const C=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);const z=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);const L=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);const M=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const D=r(["#text"]);const P=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]);const I=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);const O=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);const $=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const j=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const F=s(/<%[\w\W]*|[\w\W]*%>/gm);const B=s(/\${[\w\W]*}/gm);const N=s(/^data-[\-\w.\u00B7-\uFFFF]/);const q=s(/^aria-[\-\w]+$/);const U=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const H=s(/^(?:\w+script|data):/i);const W=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const X=s(/^html$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:F,TMPLIT_EXPR:B,DATA_ATTR:N,ARIA_ATTR:q,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:W,DOCTYPE_NAME:X});const G=function e(){return typeof window==="undefined"?null:window};const Z=function e(t,n){if(typeof t!=="object"||typeof t.createPolicy!=="function"){return null}let o=null;const i="data-tt-policy-suffix";if(n&&n.hasAttribute(i)){o=n.getAttribute(i)}const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){console.warn("TrustedTypes policy "+r+" could not be created.");return null}};function V(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:G();const n=e=>V(e);n.version="3.0.8";n.removed=[];if(!t||!t.document||t.document.nodeType!==9){n.isSupported=false;return n}let{document:o}=t;const i=o;const s=i.currentScript;const{DocumentFragment:l,HTMLTemplateElement:c,Node:k,Element:x,NodeFilter:E,NamedNodeMap:j=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:F,DOMParser:B,trustedTypes:N}=t;const q=x.prototype;const H=R(q,"cloneNode");const W=R(q,"nextSibling");const J=R(q,"childNodes");const K=R(q,"parentNode");if(typeof c==="function"){const e=o.createElement("template");if(e.content&&e.content.ownerDocument){o=e.content.ownerDocument}}let Q;let ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:oe,getElementsByTagName:ie}=o;const{importNode:re}=i;let se={};n.isSupported=typeof e==="function"&&typeof K==="function"&&te&&te.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:ae,ERB_EXPR:le,TMPLIT_EXPR:ce,DATA_ATTR:fe,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:me}=Y;let{IS_ALLOWED_URI:pe}=Y;let he=null;const ye=T({},[...A,..._,...C,...L,...D]);let ge=null;const be=T({},[...P,...I,...O,...$]);let we=Object.seal(a(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let ve=null;let ke=null;let xe=true;let Te=true;let Ee=false;let Se=true;let Re=false;let Ae=false;let _e=false;let Ce=false;let ze=false;let Le=false;let Me=false;let De=true;let Pe=false;const Ie="user-content-";let Oe=true;let $e=false;let je={};let Fe=null;const Be=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ne=null;const qe=T({},["audio","video","img","source","image","track"]);let Ue=null;const He=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const We="http://www.w3.org/1998/Math/MathML";const Xe="http://www.w3.org/2000/svg";const Ye="http://www.w3.org/1999/xhtml";let Ge=Ye;let Ze=false;let Ve=null;const Je=T({},[We,Xe,Ye],p);let Ke=null;const Qe=["application/xhtml+xml","text/html"];const et="text/html";let tt=null;let nt=null;const ot=o.createElement("form");const it=function e(t){return t instanceof RegExp||t instanceof Function};const rt=function e(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(nt&&nt===t){return}if(!t||typeof t!=="object"){t={}}t=S(t);Ke=Qe.indexOf(t.PARSER_MEDIA_TYPE)===-1?et:t.PARSER_MEDIA_TYPE;tt=Ke==="application/xhtml+xml"?p:m;he="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,tt):ye;ge="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,tt):be;Ve="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,p):Je;Ue="ADD_URI_SAFE_ATTR"in t?T(S(He),t.ADD_URI_SAFE_ATTR,tt):He;Ne="ADD_DATA_URI_TAGS"in t?T(S(qe),t.ADD_DATA_URI_TAGS,tt):qe;Fe="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,tt):Be;ve="FORBID_TAGS"in t?T({},t.FORBID_TAGS,tt):{};ke="FORBID_ATTR"in t?T({},t.FORBID_ATTR,tt):{};je="USE_PROFILES"in t?t.USE_PROFILES:false;xe=t.ALLOW_ARIA_ATTR!==false;Te=t.ALLOW_DATA_ATTR!==false;Ee=t.ALLOW_UNKNOWN_PROTOCOLS||false;Se=t.ALLOW_SELF_CLOSE_IN_ATTR!==false;Re=t.SAFE_FOR_TEMPLATES||false;Ae=t.WHOLE_DOCUMENT||false;ze=t.RETURN_DOM||false;Le=t.RETURN_DOM_FRAGMENT||false;Me=t.RETURN_TRUSTED_TYPE||false;Ce=t.FORCE_BODY||false;De=t.SANITIZE_DOM!==false;Pe=t.SANITIZE_NAMED_PROPS||false;Oe=t.KEEP_CONTENT!==false;$e=t.IN_PLACE||false;pe=t.ALLOWED_URI_REGEXP||U;Ge=t.NAMESPACE||Ye;we=t.CUSTOM_ELEMENT_HANDLING||{};if(t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){we.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){we.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){we.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Re){Te=false}if(Le){ze=true}if(je){he=T({},D);ge=[];if(je.html===true){T(he,A);T(ge,P)}if(je.svg===true){T(he,_);T(ge,I);T(ge,$)}if(je.svgFilters===true){T(he,C);T(ge,I);T(ge,$)}if(je.mathMl===true){T(he,L);T(ge,O);T(ge,$)}}if(t.ADD_TAGS){if(he===ye){he=S(he)}T(he,t.ADD_TAGS,tt)}if(t.ADD_ATTR){if(ge===be){ge=S(ge)}T(ge,t.ADD_ATTR,tt)}if(t.ADD_URI_SAFE_ATTR){T(Ue,t.ADD_URI_SAFE_ATTR,tt)}if(t.FORBID_CONTENTS){if(Fe===Be){Fe=S(Fe)}T(Fe,t.FORBID_CONTENTS,tt)}if(Oe){he["#text"]=true}if(Ae){T(he,["html","head","body"])}if(he.table){T(he,["tbody"]);delete ve.tbody}if(t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}Q=t.TRUSTED_TYPES_POLICY;ee=Q.createHTML("")}else{if(Q===undefined){Q=Z(N,s)}if(Q!==null&&typeof ee==="string"){ee=Q.createHTML("")}}if(r){r(t)}nt=t};const st=T({},["mi","mo","mn","ms","mtext"]);const at=T({},["foreignobject","desc","title","annotation-xml"]);const lt=T({},["title","style","font","a","script"]);const ct=T({},[..._,...C,...z]);const ft=T({},[...L,...M]);const ut=function e(t){let n=K(t);if(!n||!n.tagName){n={namespaceURI:Ge,tagName:"template"}}const o=m(t.tagName);const i=m(n.tagName);if(!Ve[t.namespaceURI]){return false}if(t.namespaceURI===Xe){if(n.namespaceURI===Ye){return o==="svg"}if(n.namespaceURI===We){return o==="svg"&&(i==="annotation-xml"||st[i])}return Boolean(ct[o])}if(t.namespaceURI===We){if(n.namespaceURI===Ye){return o==="math"}if(n.namespaceURI===Xe){return o==="math"&&at[i]}return Boolean(ft[o])}if(t.namespaceURI===Ye){if(n.namespaceURI===Xe&&!at[i]){return false}if(n.namespaceURI===We&&!st[i]){return false}return!ft[o]&&(lt[o]||!ct[o])}if(Ke==="application/xhtml+xml"&&Ve[t.namespaceURI]){return true}return false};const dt=function e(t){d(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}};const mt=function e(t,o){try{d(n.removed,{attribute:o.getAttributeNode(t),from:o})}catch(e){d(n.removed,{attribute:null,from:o})}o.removeAttribute(t);if(t==="is"&&!ge[t]){if(ze||Le){try{dt(o)}catch(e){}}else{try{o.setAttribute(t,"")}catch(e){}}}};const pt=function e(t){let n=null;let i=null;if(Ce){t="<remove></remove>"+t}else{const e=h(t,/^[\r\n\t ]+/);i=e&&e[0]}if(Ke==="application/xhtml+xml"&&Ge===Ye){t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>"}const r=Q?Q.createHTML(t):t;if(Ge===Ye){try{n=(new B).parseFromString(r,Ke)}catch(e){}}if(!n||!n.documentElement){n=te.createDocument(Ge,"template",null);try{n.documentElement.innerHTML=Ze?ee:r}catch(e){}}const s=n.body||n.documentElement;if(t&&i){s.insertBefore(o.createTextNode(i),s.childNodes[0]||null)}if(Ge===Ye){return ie.call(n,Ae?"html":"body")[0]}return Ae?n.documentElement:s};const ht=function e(t){return ne.call(t.ownerDocument||t,t,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT,null)};const yt=function e(t){return t instanceof F&&(typeof t.nodeName!=="string"||typeof t.textContent!=="string"||typeof t.removeChild!=="function"||!(t.attributes instanceof j)||typeof t.removeAttribute!=="function"||typeof t.setAttribute!=="function"||typeof t.namespaceURI!=="string"||typeof t.insertBefore!=="function"||typeof t.hasChildNodes!=="function")};const gt=function e(t){return typeof k==="function"&&t instanceof k};const bt=function e(t,o,i){if(!se[t]){return}f(se[t],(e=>{e.call(n,o,i,nt)}))};const wt=function e(t){let o=null;bt("beforeSanitizeElements",t,null);if(yt(t)){dt(t);return true}const i=tt(t.nodeName);bt("uponSanitizeElement",t,{tagName:i,allowedTags:he});if(t.hasChildNodes()&&!gt(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent)){dt(t);return true}if(!he[i]||ve[i]){if(!ve[i]&&kt(i)){if(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i)){return false}if(we.tagNameCheck instanceof Function&&we.tagNameCheck(i)){return false}}if(Oe&&!Fe[i]){const e=K(t)||t.parentNode;const n=J(t)||t.childNodes;if(n&&e){const o=n.length;for(let i=o-1;i>=0;--i){e.insertBefore(H(n[i],true),W(t))}}}dt(t);return true}if(t instanceof x&&!ut(t)){dt(t);return true}if((i==="noscript"||i==="noembed"||i==="noframes")&&w(/<\/no(script|embed|frames)/i,t.innerHTML)){dt(t);return true}if(Re&&t.nodeType===3){o=t.textContent;f([ae,le,ce],(e=>{o=y(o,e," ")}));if(t.textContent!==o){d(n.removed,{element:t.cloneNode()});t.textContent=o}}bt("afterSanitizeElements",t,null);return false};const vt=function e(t,n,i){if(De&&(n==="id"||n==="name")&&(i in o||i in ot)){return false}if(Te&&!ke[n]&&w(fe,n));else if(xe&&w(ue,n));else if(!ge[n]||ke[n]){if(kt(t)&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,t)||we.tagNameCheck instanceof Function&&we.tagNameCheck(t))&&(we.attributeNameCheck instanceof RegExp&&w(we.attributeNameCheck,n)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(n))||n==="is"&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i)||we.tagNameCheck instanceof Function&&we.tagNameCheck(i)));else{return false}}else if(Ue[n]);else if(w(pe,y(i,me,"")));else if((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&g(i,"data:")===0&&Ne[t]);else if(Ee&&!w(de,y(i,me,"")));else if(i){return false}else;return true};const kt=function e(t){return t.indexOf("-")>0};const xt=function e(t){bt("beforeSanitizeAttributes",t,null);const{attributes:o}=t;if(!o){return}const i={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:ge};let r=o.length;while(r--){const e=o[r];const{name:s,namespaceURI:a,value:l}=e;const c=tt(s);let d=s==="value"?l:b(l);i.attrName=c;i.attrValue=d;i.keepAttr=true;i.forceKeepAttr=undefined;bt("uponSanitizeAttribute",t,i);d=i.attrValue;if(i.forceKeepAttr){continue}mt(s,t);if(!i.keepAttr){continue}if(!Se&&w(/\/>/i,d)){mt(s,t);continue}if(Re){f([ae,le,ce],(e=>{d=y(d,e," ")}))}const m=tt(t.nodeName);if(!vt(m,c,d)){continue}if(Pe&&(c==="id"||c==="name")){mt(s,t);d=Ie+d}if(Q&&typeof N==="object"&&typeof N.getAttributeType==="function"){if(a);else{switch(N.getAttributeType(m,c)){case"TrustedHTML":{d=Q.createHTML(d);break}case"TrustedScriptURL":{d=Q.createScriptURL(d);break}}}}try{if(a){t.setAttributeNS(a,s,d)}else{t.setAttribute(s,d)}u(n.removed)}catch(e){}}bt("afterSanitizeAttributes",t,null)};const Tt=function e(t){let n=null;const o=ht(t);bt("beforeSanitizeShadowDOM",t,null);while(n=o.nextNode()){bt("uponSanitizeShadowNode",n,null);if(wt(n)){continue}if(n.content instanceof l){e(n.content)}xt(n)}bt("afterSanitizeShadowDOM",t,null)};n.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let o=null;let r=null;let s=null;let a=null;Ze=!e;if(Ze){e="\x3c!--\x3e"}if(typeof e!=="string"&&!gt(e)){if(typeof e.toString==="function"){e=e.toString();if(typeof e!=="string"){throw v("dirty is not a string, aborting")}}else{throw v("toString is not a function")}}if(!n.isSupported){return e}if(!_e){rt(t)}n.removed=[];if(typeof e==="string"){$e=false}if($e){if(e.nodeName){const t=tt(e.nodeName);if(!he[t]||ve[t]){throw v("root node is forbidden and cannot be sanitized in-place")}}}else if(e instanceof k){o=pt("\x3c!----\x3e");r=o.ownerDocument.importNode(e,true);if(r.nodeType===1&&r.nodeName==="BODY"){o=r}else if(r.nodeName==="HTML"){o=r}else{o.appendChild(r)}}else{if(!ze&&!Re&&!Ae&&e.indexOf("<")===-1){return Q&&Me?Q.createHTML(e):e}o=pt(e);if(!o){return ze?null:Me?ee:""}}if(o&&Ce){dt(o.firstChild)}const c=ht($e?e:o);while(s=c.nextNode()){if(wt(s)){continue}if(s.content instanceof l){Tt(s.content)}xt(s)}if($e){return e}if(ze){if(Le){a=oe.call(o.ownerDocument);while(o.firstChild){a.appendChild(o.firstChild)}}else{a=o}if(ge.shadowroot||ge.shadowrootmode){a=re.call(i,a,true)}return a}let u=Ae?o.outerHTML:o.innerHTML;if(Ae&&he["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&w(X,o.ownerDocument.doctype.name)){u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u}if(Re){f([ae,le,ce],(e=>{u=y(u,e," ")}))}return Q&&Me?Q.createHTML(u):u};n.setConfig=function(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};rt(e);_e=true};n.clearConfig=function(){nt=null;_e=false};n.isValidAttribute=function(e,t,n){if(!nt){rt({})}const o=tt(e);const i=tt(t);return vt(o,i,n)};n.addHook=function(e,t){if(typeof t!=="function"){return}se[e]=se[e]||[];d(se[e],t)};n.removeHook=function(e){if(se[e]){return u(se[e])}};n.removeHooks=function(e){if(se[e]){se[e]=[]}};n.removeAllHooks=function(){se={}};return n}var J=V();return J}))})(D);const P=D.exports;const I=":host{display:inline-grid;overflow:hidden;width:100%}.view-email{width:100%}.view-email div.gmail_quote{display:none;color:var(--nylas-color-primary-400)}.view-email div.gmail_quote.show{display:block}.view-email blockquote{border-color:var(--nylas-color-primary-500) !important}.view-email .nylas-view-email-toggle-button{display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);border:0;border-radius:2px;font-size:14px;font-weight:500;line-height:1.5;transition:all 0.2s ease-in-out}.view-email .nylas-view-email-toggle-button:hover{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600)}";const O=I;P.addHook("afterSanitizeAttributes",(function(e){if("target"in e){e.setAttribute("target","_blank");e.setAttribute("rel","noopener")}}));const $=class{constructor(t){e(this,t);this.htmlElement=document.createElement("html");this.setBody=e=>{this.state="loading";this.styles=[];this.hoistedFontURLs=new Map;this.sanitizedBody="";document.querySelectorAll(".nylas-view-email-font").forEach((e=>{e.remove()}));const t=this.message?l(this.message):c(e);if(!t){e=`<html><body>${f(e)}</body></html>`}this.htmlElement.innerHTML=e;if(this.detectDarkMode){M(this.htmlElement)}this.htmlElement.querySelectorAll("link").forEach((e=>{console.debug(`[nylas-view-email] Hoisting link: ${e.getAttribute("href")}`);if(e.getAttribute("rel")==="stylesheet"&&e.getAttribute("href")){const t=e.getAttribute("href");if(t){const e=new URL(t,window.location.href);if(e.protocol==="https:"||e.protocol==="http:"){this.hoistedFontURLs.set(e.href,e.href)}}}}));this.htmlElement.querySelectorAll("style").forEach((e=>{e.innerHTML.split("\n").forEach((e=>{const t=e.match(/@import url\((.*)\)/);if(t){const e=new URL(t[1],window.location.href);if(e.protocol==="https:"||e.protocol==="http:"){this.hoistedFontURLs.set(e.href,e.href)}}}));e.innerHTML=e.innerHTML.replace("body",":host");this.styles.push(e);e.remove()}));this.htmlElement.querySelectorAll("a").forEach((e=>{e.setAttribute("target","_blank")}));const n=this.htmlElement.querySelector(".gmail_quote");if(n){const e=document.createElement("button");e.classList.add("nylas-view-email-toggle-button");e.setAttribute("aria-label","Show quoted text");e.innerText="...";n.parentElement?.insertBefore(e,n)}this.sanitizedBody=P.sanitize(this.htmlElement.innerHTML);this.hoistedFontURLs.forEach(((e,t)=>{const n=document.createElement("link");n.setAttribute("rel","stylesheet");n.setAttribute("href",e);n.classList.add("nylas-view-email-font");document.head.appendChild(n)}));this.state="ready"};this.handleMobileSize=()=>{const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);if(e<=768){const t=this.viewEmailElement?.getBoundingClientRect();if(t&&this.viewEmailElement&&this.parent){if(t.width>e){const e=this.parent;const n=e?.getBoundingClientRect();s("Parent width:",n?.width,"Parent height:",n?.height);s("Parent client width:",e.clientWidth,"Parent client height:",e.clientHeight);const o=n.width/t.width;const i=n.height/t.height;const r=Math.min(o,i);s("Scale:",r);this.viewEmailElement.style.setProperty("transform",`scale(${r})`);this.viewEmailElement.style.setProperty("transform-origin",`top left`);this.viewEmailElement.style.setProperty("height",`${t.height*r}px`)}}}else{this.viewEmailElement?.style.removeProperty("transform");this.viewEmailElement?.style.removeProperty("transform-origin");this.viewEmailElement?.style.removeProperty("height")}};this.message=undefined;this.parent=undefined;this.attachments=[];this.detectDarkMode=true;this.state="loading";this.sanitizedBody="";this.styles=[];this.viewEmailElement=undefined;this.hoistedFontURLs=new Map}connectedCallback(){}disconnectedCallback(){s(`[nylas-view-email] Component disconnected`);this.state="loading";this.styles=[];this.hoistedFontURLs=new Map;this.sanitizedBody="";document.querySelectorAll(".nylas-view-email-font").forEach((e=>{e.remove()}))}async componentWillLoad(){s(`[nylas-view-email] component loaded`);this.setBody(this.message?.body??"")}async componentDidLoad(){s(`[nylas-view-thread] Component did load`);this.handleMobileSize()}async messageChanged(){s(`[nylas-view-thread] Message changed`,{message:this.message});this.setBody(this.message?.body??"")}handleScroll(){this.handleMobileSize()}viewEmailElementChanged(){const e=this.viewEmailElement?.querySelectorAll(".nylas-view-email-toggle-button");if(e){e.forEach((e=>{e.addEventListener("click",(()=>{const e=this.viewEmailElement?.querySelector(".gmail_quote");if(e){e.classList.toggle("show")}}))}))}}render(){console.debug(`[nylas-view-email] render`,{hoistedFontURLs:this.hoistedFontURLs});return t(o,{key:"fe606c06674789e63156056d8b71a5cb2202cf47"},this.state==="loading"&&t("div",null,"Loading..."),this.state==="ready"&&t(r,null,this.styles.map((e=>t("style",null,P.sanitize(e.innerHTML)))),t("div",{class:"view-email",part:"view-email",innerHTML:this.sanitizedBody,ref:e=>this.viewEmailElement=e})))}get host(){return i(this)}static get watchers(){return{message:["messageChanged"],viewEmailElement:["viewEmailElementChanged"]}}};$.style=O;const j=".sc-reply-all-icon-h{display:flex}";const F=j;const B=class{constructor(t){e(this,t);this.width="15";this.height="15"}render(){return t("svg",{key:"2baf5fdfb4309e039a9a4e66ecacbf4481c2d7ca",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"d7f1586f9af096cb3a1876b681ba408387899788",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};B.style=F;const N=".sc-reply-icon-h{display:flex}";const q=N;const U=class{constructor(t){e(this,t);this.width="15";this.height="15"}render(){return t("svg",{key:"07034b975afd3fa950dec8be4e28c16775b5a49e",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"5601b12fa1dde6412985fa2f701eeb3f9e2b07b4",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};U.style=q;export{h as forward_icon,b as nylas_composer,T as nylas_summarize_message_button,$ as nylas_view_email,B as reply_all_icon,U as reply_icon};
|
|
3
|
+
//# sourceMappingURL=p-cc674b3b.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-68c2fadf.js";const s=".sc-bold-icon-h{display:flex}";const o=s;const c=class{constructor(e){t(this,e);this.width="15";this.height="15"}render(){return e("svg",{key:"31974bb21eb101d41aaebdd8199a3a5f7ce55a63",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"78c695ad810b93f8d3b70119cd594d936803b9f4",d:"M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};c.style=o;const i=".sc-italic-icon-h{display:flex}";const n=i;const r=class{constructor(e){t(this,e);this.width="15";this.height="15"}render(){return e("svg",{key:"975b30acd84a6762b2eacdf2f700ac65678966f6",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"6a36ecd5b14415c84176cd32f89a7c40cf219cb3",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m10 20 4-16m2 0h-4m0 16H8"}))}};r.style=n;const d=".sc-underline-icon-h{display:flex}";const a=d;const h=class{constructor(e){t(this,e);this.width="15";this.height="15"}render(){return e("svg",{key:"90d8a0e568e0303cf35533b6aec885e6a41da075",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"96f2d77839ec63e1d8c4f9ea5c9cdc92ea1bb396",d:"M19 4V10C19 13.866 15.866 17 12 17C8.13401 17 5 13.866 5 10V4M8.5 4V10C8.5 13.2218 10.6766 15.9352 13.6395 16.7501M4 21H20M3 4L10.5 4M17 4L21 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};h.style=a;export{c as bold_icon,r as italic_icon,h as underline_icon};
|
|
2
|
+
//# sourceMappingURL=p-d8f09631.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as n}from"./p-cabb2e68.js";function e(e={}){const t={selectedConfiguration:{},configurations:[],calendars:[],currentUser:null,action:null,defaultRequiresSessionAuth:true,...e};const o=n(t);function i(){o.set("selectedConfiguration",{...e["selectedConfiguration"]})}o.onChange("action",(async n=>{if(!n){i()}}));return{...o,resetSelectedConfiguration:i}}export{e as C};
|
|
2
|
+
//# sourceMappingURL=p-db15d382.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CreateNylasSchedulerConfigStore","defaultState","defaultNylasSchedulerConfigStoreState","selectedConfiguration","configurations","calendars","currentUser","action","defaultRequiresSessionAuth","store","createStore","resetSelectedConfiguration","set","onChange","async"],"sources":["src/stores/scheduler-config-store.ts"],"sourcesContent":["import { Calendar, Configuration } from '@nylas/core';\nimport { ObservableMap, createStore } from '@stencil/store';\nimport { User } from '@/common/nylas-api-request';\n\nexport interface NylasSchedulerConfigStoreState {\n /**\n * The selected configuration.\n * This is the configuration that is currently selected, use it to populate default values for new configurations.\n */\n selectedConfiguration: Partial<Configuration>;\n /**\n * The list of configurations.\n * This is the list of configurations that the user has created.\n */\n configurations: Configuration[];\n /**\n * The list of calendars.\n * This is the list of calendars that the user has access to.\n */\n calendars: Calendar[];\n /**\n * The current user.\n * This is the user that is currently logged in.\n */\n currentUser: User | null;\n /**\n * The current action.\n * This is the current action that the user is performing.\n */\n action: 'create' | 'edit' | null;\n /**\n * Whether the default configuration requires session authentication.\n * This is used to determine whether the default configuration should require session authentication.\n */\n defaultRequiresSessionAuth: boolean;\n}\n\nexport type NylasSchedulerConfigStoreType = ReturnType<typeof CreateNylasSchedulerConfigStore>;\n\nexport type CreateNylasSchedulerConfigStoreReturnType = ObservableMap<NylasSchedulerConfigStoreState> & {\n /**\n * Reset the selected configuration to the default state.\n * This is used to reset the selected configuration to the default state instead of setting it to an empty object.\n */\n resetSelectedConfiguration: () => void;\n};\n\nexport function CreateNylasSchedulerConfigStore(defaultState: Partial<NylasSchedulerConfigStoreState> = {}): CreateNylasSchedulerConfigStoreReturnType {\n const defaultNylasSchedulerConfigStoreState: NylasSchedulerConfigStoreState = {\n selectedConfiguration: {},\n configurations: [],\n calendars: [],\n currentUser: null,\n action: null,\n defaultRequiresSessionAuth: true,\n ...defaultState,\n };\n const store = createStore<NylasSchedulerConfigStoreState>(defaultNylasSchedulerConfigStoreState);\n\n /**\n * Reset the selected configuration to the default state.\n * This is used to reset the selected configuration to the default state instead of setting it to an empty object.\n */\n function resetSelectedConfiguration() {\n store.set('selectedConfiguration', { ...defaultState['selectedConfiguration'] });\n }\n\n store.onChange('action', async action => {\n if (!action) {\n resetSelectedConfiguration();\n }\n });\n\n return {\n ...store,\n resetSelectedConfiguration,\n };\n}\n"],"mappings":"6CA+CgBA,EAAgCC,EAAwD,IACtG,MAAMC,EAAwE,CAC5EC,sBAAuB,GACvBC,eAAgB,GAChBC,UAAW,GACXC,YAAa,KACbC,OAAQ,KACRC,2BAA4B,QACzBP,GAEL,MAAMQ,EAAQC,EAA4CR,GAM1D,SAASS,IACPF,EAAMG,IAAI,wBAAyB,IAAKX,EAAa,0B,CAGvDQ,EAAMI,SAAS,UAAUC,MAAMP,IAC7B,IAAKA,EAAQ,CACXI,G,KAIJ,MAAO,IACFF,EACHE,6BAEJ,Q"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as r,h as t,F as s,H as n}from"./p-68c2fadf.js";import{R as o}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as r,h as t,F as s,H as n}from"./p-68c2fadf.js";import{R as o}from"./p-eaa9151b.js";import{a as l,f as i,t as a}from"./p-41dc0d93.js";import"./p-cb65c223.js";const d=":host{display:block}.folders{display:flex;flex-direction:column;align-items:self-start}.folders .folder{border:1px solid var(--nylas-color-primary-100);padding:0.5rem 0.75rem;margin-bottom:0.5rem;justify-content:left;width:100%;min-width:200px;border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-50)}.folders .folder:last-child{margin-bottom:0}.folders .folder.selected{background-color:var(--nylas-color-primary-100)}.folders .folder .icon{margin-right:0.5rem;stroke:var(--nylas-color-primary-900);fill:none}hr{width:100%;margin:1rem 0;border:0;border-top:1px solid var(--nylas-color-primary-100)}";const c=d;var f=undefined&&undefined.__decorate||function(e,r,t,s){var n=arguments.length,o=n<3?r:s===null?s=Object.getOwnPropertyDescriptor(r,t):s,l;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,r,t,s);else for(var i=e.length-1;i>=0;i--)if(l=e[i])o=(n<3?l(o):n>3?l(r,t,o):l(r,t))||o;return n>3&&o&&Object.defineProperty(r,t,o),o};var u=undefined&&undefined.__metadata||function(e,r){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,r)};const p=class{constructor(t){e(this,t);this.folderSelected=r(this,"folderSelected",7);this.folderSelectedHandler=e=>{this.folderSelected?.emit(e)};this.folders=undefined;this.selectedFolder=undefined;this.defaultFolders=undefined;this.otherFolders=undefined}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){l(`[nylas-list-folders] Component will load`)}async componentDidLoad(){l(`[nylas-list-folders] Component did load`)}watchFolders(e){l(`[nylas-list-folders] watchFolders`,{newFolders:e});const r=["inbox","drafts","sent","starred","spam","archive","trash"];this.defaultFolders=r.filter((r=>e.find((e=>e.name?.toLowerCase()===r.toLowerCase())))).map((r=>e.find((e=>e.name?.toLowerCase()===r.toLowerCase())))).filter((e=>typeof e!=="undefined")).sort(((e,t)=>r.indexOf(e?.name??"")-r.indexOf(t?.name??"")));this.otherFolders=e.filter((e=>!r.find((r=>e.name?.toLowerCase()===r.toLowerCase())))).sort(((e,r)=>(e.name??"").localeCompare(r.name??"")))}formatFolderName(e){return a(e.name?.replace("CATEGORY_","")??"Unknown")}getFolderIcon(e){switch(e.name?.toLowerCase()){case"inbox":return t("inbox-icon",null);case"drafts":return t("drafts-icon",null);case"sent":return t("sent-icon",null);case"starred":return t("star-icon",null);case"spam":return t("spam-icon",null);case"archive":return t("archive-icon",null);case"trash":return t("trash-icon",null);default:return t("folder-icon",null)}}render(){return t(n,{key:"222ae81308d17cbdc7c3a44f0902fc683c88da1d"},t("div",{key:"5ac1653c3b9ea1e3712e7597becc4d38435f3fa1",class:"folders"},this.defaultFolders?.map((e=>t("sp-button",{onClick:()=>this.folderSelectedHandler(e),class:{folder:true,selected:i(e.name??"inbox").toLowerCase()===this.selectedFolder?.toLowerCase()}},t("div",{slot:"icon",class:"icon"},this.getFolderIcon(e)),this.formatFolderName(e))))),this.otherFolders&&t(s,null,t("hr",null),t("div",{class:"folders"},this.otherFolders?.map((e=>t("sp-button",{onClick:()=>this.folderSelectedHandler(e),class:{folder:true,selected:i(e.name??"inbox").toLowerCase()===this.selectedFolder?.toLowerCase()}},t("div",{slot:"icon",class:"icon"},this.getFolderIcon(e)),this.formatFolderName(e)))))))}static get watchers(){return{folders:["watchFolders"]}}};f([o({name:"nylas-pagination",stateToProps:new Map([["mailbox.folders","folders"],["mailbox.selectedFolder","selectedFolder"]]),eventToProps:{folderSelected:async(e,r)=>{l(`[nylas-list-folders] folderSelected event`,{_event:e});await r.threads.getThreads({page_token:undefined,in:i(e.detail.id??"inbox")})}},fireRegisterEvent:true}),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],p.prototype,"render",null);p.style=c;export{p as nylas_list_folders};
|
|
2
|
+
//# sourceMappingURL=p-df6d54c7.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as t,H as n}from"./p-68c2fadf.js";import{R as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as t,H as n}from"./p-68c2fadf.js";import{R as s}from"./p-eaa9151b.js";import{a as i}from"./p-41dc0d93.js";import"./p-cb65c223.js";const a=":host{display:block}div{height:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fade-in{animation:fadeIn 1.5s}.fade-out{animation:fadeOut 1.5s}@keyframes slideIn{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes slideOut{0%{transform:translateY(0)}100%{transform:translateY(100%)}}.slide-in{animation:slideIn 1.5s}.slide-out{animation:slideOut 1.5s}@keyframes swipeIn{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes swipeOut{0%{transform:translateX(0)}100%{transform:translateX(100%)}}.swipe-in{animation:swipeIn 1.5s}.swipe-out{animation:swipeOut 1.5s}";const o=a;var r=undefined&&undefined.__decorate||function(e,t,n,s){var i=arguments.length,a=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)if(o=e[r])a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var f=undefined&&undefined.__metadata||function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};const d=class{constructor(t){e(this,t);this.state=undefined;this.isStateSet=undefined;this.isBoolean=undefined;this.getStore=undefined;this.transition="none";this.show=false;this.classes={};this.initTransition=this.initTransition.bind(this)}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){i(`[nylas-if-state] Component will load`);this.watchStore(true)}async componentDidLoad(){i(`[nylas-if-state] Component did load`)}shouldRender(){const[e,t]=this.state?this.state.split("."):["",""];const n=this.getStore;if(typeof n==="undefined"){i(`[nylas-if-state] Store name: ${e} | State name: ${t}`,{getStore:n});return false}const s=n(e);if(typeof s==="undefined"){i(`[nylas-if-state] Store name: ${e} | State name: ${t}`,{store:s});return false}const a=s.state[t];if(typeof this.isStateSet==="boolean"){return this.isStateSet===false&&(typeof a==="undefined"||a===null||a.length===0)||this.isStateSet===true&&typeof a!=="undefined"&&a!==null}if(typeof this.isBoolean==="boolean"){return this.isBoolean===true&&typeof a!=="undefined"&&a===true||this.isBoolean===false&&typeof a!=="undefined"&&a===false}return false}onGetStoreChange(){this.watchStore(true)}watchStore(e=false){const[t,n]=this.state?this.state.split("."):["",""];const s=this.getStore;if(typeof s==="undefined"){i(`[nylas-if-state] Store name: ${t} | State name: ${n}`,{getStore:s});return null}const a=s(t);if(typeof a==="undefined"){i(`[nylas-if-state] Store name: ${t} | State name: ${n}`,{store:a});return null}if(e===true){this.initTransition()}a.onChange(n,this.initTransition)}initTransition(){const e=this.shouldRender();switch(this.transition){case"fade":case"slide":case"swipe":this.classes={[`${this.transition}-in`]:e,[`${this.transition}-out`]:!e};setTimeout((()=>{this.show=e}),150);break;default:this.show=this.shouldRender();break}}render(){return t(n,{key:"91d17bc89a09742106ef3bd9365c5ce48cf14e86"},t("div",{key:"9d0070be4bf5d9a5f405fc4a0733e6d832fa669a",class:this.classes},this.show&&t("slot",null)))}static get watchers(){return{getStore:["onGetStoreChange"]}}};r([s({name:"nylas-if-state",getStoresToProp:"getStore",fireRegisterEvent:true}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],d.prototype,"render",null);d.style=o;export{d as nylas_if_state};
|
|
2
|
+
//# sourceMappingURL=p-e03b2592.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t}from"./p-901f9612.js";import{X as e,Z as s}from"./p-65fdfb60.js";import{c as r}from"./p-cabb2e68.js";class n{constructor(t,e){this.nylasAuth=t;this.nylasAuthStore=e}async validateSession(){const e=await this.isAccessTokenValid();if(!e){this.logout()}else{let e=await this.nylasAuth.getTokenInfo();if(e){const s=5*60*1e3;const r=Math.floor(Date.now()/1e3);if(e.expires_in&&e.expires_in-r<s){t("[NylasAuthConnectorMixin] Refreshing access token");e=await this.nylasAuth.refreshAccessToken();if(!e){t("[NylasAuthConnectorMixin] Token is expired and could not be refreshed. Logging out.");this.logout();return}}this.nylasAuthStore.state.tokenInfo=e}}this.nylasAuthStore.state.isAuthenticated=e}async isAuthenticated(){return this.nylasAuth.isAuthenticated()}async getTokenInfo(){return this.nylasAuth.getTokenInfo()}async isAccessTokenValid(){return this.nylasAuth.isAccessTokenValid()}async logout(){await this.nylasAuth.logout()}async getHostedAuthRedirectURL(t,e,s){return this.nylasAuth.getHostedAuthRedirectURL(t,e,s)}async manageHostedAuthCodeExchange(t){const e=new URL(t);const s=e.searchParams.get("code");if(s){const t=await this.nylasAuth.exchangeAuthCodeForTokenInfo(s);if(t){this.nylasAuthStore.state.tokenInfo=t;this.nylasAuthStore.state.isAuthenticated=true;return t}}return null}}class a{constructor(t,e,s){this.nylasAuth=t;this.nylasAuthStore=e;this.nylasMailboxStore=s}async getMessages(){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}this.nylasMailboxStore.state.state="loading";const t=this.nylasMailboxStore.state.messgeQueryParams;const r=new URLSearchParams;for(const e in t){const s=t[e]?.toString();if(s){r.append(e,s)}}const n=`/v3/grants/me/messages?${r.toString()}`;const a=await this.nylasAuth.nylasAPIRequest(n);if(e(a)){throw new s(a.error)}const i=a.data;this.nylasMailboxStore.state.messages=i;this.nylasMailboxStore.state.state="ready";return i}async getThreadMessages(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}const r=await this.nylasAuth.nylasAPIRequest(`/v3/grants/me/messages?thread_id=${t}&fields=include_headers`);if(e(r)){throw new s(r.error)}const n=r.data;this.nylasMailboxStore.state.messages=n;return n}downloadMessageAttachments(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}const e=[];const s=t.attachments||[];for(const r of s){const s=this.nylasAuth.nylasDownloadFileRequest(`/v3/grants/me/attachments/${r.id}?message_id=${t.id}`);e.push(s)}return e}async summarizeText(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}const r=await this.nylasAuth.nylasAPIRequest(`/v3/grants/me/mailbox/summarize`,"POST",{message:{body:t}},true,this.nylasAuth.config.elementsApiUri);if(e(r)){throw new s(r.error)}return r.data.summary}async textToSpeech(t,e){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}return this.nylasAuth.nylasAPIRequest(`/v3/grants/me/mailbox/tts`,"POST",{text:t},false,this.nylasAuth.config.elementsApiUri,{...e?{signal:e?.signal}:{}})}}class i{constructor(t,e,s,r){this.nylasAuth=t;this.nylasAuthStore=e;this.nylasMailboxStore=s;this.router=r}async getThreads(t,r="overwrite",n=true){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing thread:read-only scope")}if(n){this.nylasMailboxStore.state.state="loading"}const a=t||this.nylasMailboxStore.state.threadsQueryParams;const i=new URLSearchParams;for(const t in a){const e=a[t]?.toString();if(typeof e!=="undefined"&&e!==null){i.append(t,e)}}if(a.search_query_native){this.router.navigate(`/?query=${a.search_query_native}`,true)}else if(this.nylasMailboxStore.state.threadsQueryParams.search_query_native&&!a.search_query_native){this.router.navigate("/",true)}if(!a.page_token){this.nylasMailboxStore.state.previousThreadPageTokens=[]}this.nylasMailboxStore.state.threadsQueryParams=a;const o=`/v3/grants/me/threads?${i.toString()}`;const h=await this.nylasAuth.nylasAPIRequest(o);if(e(h)){throw new s(h.error)}const c=h.data;switch(r){case"prepend":this.nylasMailboxStore.state.threads=[...c,...this.nylasMailboxStore.state.threads];break;case"append":this.nylasMailboxStore.state.threads=[...this.nylasMailboxStore.state.threads,...c];break;case"overwrite":default:this.nylasMailboxStore.state.threads=c;break}if(h.next_cursor){this.nylasMailboxStore.state.nextThreadPageToken=h.next_cursor}else{this.nylasMailboxStore.state.nextThreadPageToken=null}if(n){this.nylasMailboxStore.state.state="ready"}return c}async getThread(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing thread:read-only scope")}const r=this.nylasMailboxStore.state.threads.find((e=>e.id===t));if(r){return r}this.nylasMailboxStore.state.state="loading";const n=`/v3/grants/me/threads/${t}`;const a=await this.nylasAuth.nylasAPIRequest(n);if(e(a)){throw new s(a.error)}const i=a.data;this.nylasMailboxStore.state.threads=this.nylasMailboxStore.state.threads.map((t=>{if(t.id===i.id){return i}return t}));this.nylasMailboxStore.state.state="ready";return i}async nextThreadPage(t="overwrite",e=true){if(!this.nylasMailboxStore.state.nextThreadPageToken){throw new Error("No next page token")}this.nylasMailboxStore.state.previousThreadPageTokens=Array.from(new Set([...this.nylasMailboxStore.state.previousThreadPageTokens,this.nylasMailboxStore.state.threadsQueryParams.page_token??null]));const s=this.nylasMailboxStore.state.nextThreadPageToken;return this.getThreads({...this.nylasMailboxStore.state.threadsQueryParams,page_token:s},t,e)}async previousThreadPage(t="overwrite",e=true){if(!this.nylasMailboxStore.state.previousThreadPageTokens.length){throw new Error("No previous page token")}const s=[...this.nylasMailboxStore.state.previousThreadPageTokens];const r=s.pop();this.nylasMailboxStore.state.previousThreadPageTokens=s;return this.getThreads({...this.nylasMailboxStore.state.threadsQueryParams,page_token:r??undefined},t,e)}updateThreadQueryParams(t){this.nylasMailboxStore.state.threadsQueryParams={...this.nylasMailboxStore.state.threadsQueryParams,...t}}back(){this.router.navigate("/",true);this.nylasMailboxStore.state.selectedThread=null}unSelectThread(){this.nylasMailboxStore.state.selectedThread=null}async selectThread(e){this.router.navigate(`/thread/${e.id}`,true);this.nylasMailboxStore.state.selectedThread=e;if(e.unread){this.markThreadAsRead(e).catch((e=>{t("Error marking thread as read",e)}))}}async markThreadAsRead(t){return this.updateThread(t,{unread:false})}async updateThread(t,r){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email","modify")){throw new Error("Missing thread:modify scope")}const n=`/v3/grants/me/threads/${t.id}`;const a=await this.nylasAuth.nylasAPIRequest(n,"PUT",r);if(e(a)){throw new s(a.error)}const i=a.data;this.nylasMailboxStore.state.threads=this.nylasMailboxStore.state.threads.map((t=>{if(t.id===i.id){return i}return t}));this.nylasMailboxStore.state.selectedThread=i;return i}}class o{constructor(t,e,s){this.nylasAuth=t;this.nylasAuthStore=e;this.nylasMailboxStore=s}async getFolders(){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing thread:read-only scope")}this.nylasMailboxStore.state.state="loading";const t=`/v3/grants/me/folders`;const r=await this.nylasAuth.nylasAPIRequest(t);if(e(r)){throw new s(r.error)}const n=r.data;this.nylasMailboxStore.state.folders=n;this.nylasMailboxStore.state.state="ready";return n}async selectFolder(t){this.nylasMailboxStore.state.threadsQueryParams={in:t.id,...this.nylasMailboxStore.state.threadsQueryParams||{}}}}class h extends Event{constructor(t,e){super(t,e);this.oldURL=e.oldURL;this.newURL=e.newURL}}class c{constructor(){this.routeChangeListeners=[];t("HashRouter constructor")}destroy(){t("HashRouter destroy");window.removeEventListener("hashchange",this.onRouteChange.bind(this))}init(){t("HashRouter init");window.addEventListener("hashchange",this.onRouteChange.bind(this));if(typeof HashChangeEvent!=="undefined"){const t=new HashChangeEvent("hashchange",{oldURL:"",newURL:window.location.href});this.onRouteChange(t)}else{const t=new h("hashchange",{oldURL:"",newURL:window.location.href});this.onRouteChange(t)}}addRouteChangeListener(e,s){t("HashRouter addRouteChangeListener");this.routeChangeListeners.push([e,s])}navigate(e,s){t("HashRouter navigate");if(s){return window.history.pushState(null,"",`#${e}`)}window.location.hash=e}setRoute(e){t("HashRouter setRoute");window.location.hash=e}matchRoute(e,s){const r=e.split("/");const n=s.split("/");t(`HashRouter matchRoute route=${e} path=${s}`,{routeParts:r,pathParts:n});if(r[1]===""&&n[0]===""){return true}if(r.length!==n.length){return false}for(let t=0;t<r.length;t++){const e=r[t];const s=n[t];if(e.startsWith(":")){continue}if(e!==s){return false}}return true}getRouteParams(e){t("HashRouter getRouteParams");const s={};const r=e.split("/");const n=window.location.hash.split("/");r.forEach(((t,e)=>{if(t.startsWith(":")){const r=t.substring(1);s[r]=n[e]}}));return s}getRouteWithParams(e,s){t("HashRouter getRouteWithParams");let r=e;Object.keys(s).forEach((t=>{r=r.replace(`:${t}`,s[t])}));return r}getRoute(){t("HashRouter getRoute");return window.location.hash}onRouteChange(e){this.routeChangeListeners.forEach((async([s,r])=>{const n=e.newURL.indexOf("#")===-1?"":e.newURL.substring(e.newURL.indexOf("#")+1);t(`HashRouter onRouteChange route=${s} path=${n}`,{event:e});if(!this.matchRoute(s,n)){t(`HashRouter onRouteChange route=${s} path=${n} does not match`);return}const a=this.getRouteParams(s);await r(s,n,a)}))}getBasePath(){t("HashRouter getBasePath");return""}}function d(t={}){const e={isAuthenticated:false,tokenInfo:null,state:"ready",...t};const s=r(e);s.reset=()=>{for(const t in e){const r=e[t];s.set(t,r)}};return s}function u(t={}){const e={state:"ready",messages:[],threads:[],folders:[],selectedThread:null,nextThreadPageToken:null,previousThreadPageTokens:[],searchQuery:"",hasNextThreadPage:false,hasPreviousThreadPage:false,selectedFolder:"inbox",threadsQueryParams:{in:"inbox"},messgeQueryParams:{fields:"include_headers"},...t};const s=r({...e});s.onChange("nextThreadPageToken",(t=>{s.set("hasNextThreadPage",t!==null)}));s.onChange("previousThreadPageTokens",(t=>{s.set("hasPreviousThreadPage",t.length>0)}));s.onChange("threadsQueryParams",(t=>{s.set("selectedFolder",t.in||"inbox");s.set("searchQuery",t.search_query_native||"")}));s.reset=()=>{for(const t in e){const r=e[t];s.set(t,r)}};return s}export{d as C,c as H,n as N,i as a,a as b,o as c,u as d};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{a as t}from"./p-41dc0d93.js";import{X as e,Z as s}from"./p-9ea458c3.js";import{c as r}from"./p-cabb2e68.js";class a{constructor(t,e){this.nylasAuth=t;this.nylasAuthStore=e}async validateSession(){const e=await this.isAccessTokenValid();if(!e){this.logout()}else{let e=await this.nylasAuth.getTokenInfo();if(e){const s=5*60*1e3;const r=Math.floor(Date.now()/1e3);if(e.expires_in&&e.expires_in-r<s){t("[NylasAuthConnectorMixin] Refreshing access token");e=await this.nylasAuth.refreshAccessToken();if(!e){t("[NylasAuthConnectorMixin] Token is expired and could not be refreshed. Logging out.");this.logout();return}}this.nylasAuthStore.state.tokenInfo=e}}this.nylasAuthStore.state.isAuthenticated=e}async isAuthenticated(){return this.nylasAuth.isAuthenticated()}async getTokenInfo(){return this.nylasAuth.getTokenInfo()}async isAccessTokenValid(){return this.nylasAuth.isAccessTokenValid()}async logout(){await this.nylasAuth.logout()}async getHostedAuthRedirectURL(t,e,s){return this.nylasAuth.getHostedAuthRedirectURL(t,e,s)}async manageHostedAuthCodeExchange(t){const e=new URL(t);const s=e.searchParams.get("code");if(s){const t=await this.nylasAuth.exchangeAuthCodeForTokenInfo(s);if(t){this.nylasAuthStore.state.tokenInfo=t;this.nylasAuthStore.state.isAuthenticated=true;return t}}return null}}class n{constructor(t,e,s){this.nylasAuth=t;this.nylasAuthStore=e;this.nylasMailboxStore=s}async getMessages(){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}this.nylasMailboxStore.state.state="loading";const t=this.nylasMailboxStore.state.messgeQueryParams;const r=new URLSearchParams;for(const e in t){const s=t[e]?.toString();if(s){r.append(e,s)}}const a=`/v3/grants/me/messages?${r.toString()}`;const n=await this.nylasAuth.nylasAPIRequest(a);if(e(n)){throw new s(n.error)}const i=n.data;this.nylasMailboxStore.state.messages=i;this.nylasMailboxStore.state.state="ready";return i}async getThreadMessages(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}const r=await this.nylasAuth.nylasAPIRequest(`/v3/grants/me/messages?thread_id=${t}&fields=include_headers`);if(e(r)){throw new s(r.error)}const a=r.data;this.nylasMailboxStore.state.messages=a;return a}downloadMessageAttachments(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}const e=[];const s=t.attachments||[];for(const r of s){const s=this.nylasAuth.nylasDownloadFileRequest(`/v3/grants/me/attachments/${r.id}?message_id=${t.id}`);e.push(s)}return e}async summarizeText(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}const r=await this.nylasAuth.nylasAPIRequest(`/v3/grants/me/mailbox/summarize`,"POST",{message:{body:t}},true,this.nylasAuth.config.elementsApiUri);if(e(r)){throw new s(r.error)}return r.data.summary}async textToSpeech(t,e){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing message:read-only scope")}return this.nylasAuth.nylasAPIRequest(`/v3/grants/me/mailbox/tts`,"POST",{text:t},false,this.nylasAuth.config.elementsApiUri,{...e?{signal:e?.signal}:{}})}}class i{constructor(t,e,s,r){this.nylasAuth=t;this.nylasAuthStore=e;this.nylasMailboxStore=s;this.router=r}async getThreads(t,r="overwrite",a=true){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing thread:read-only scope")}if(a){this.nylasMailboxStore.state.state="loading"}const n=t||this.nylasMailboxStore.state.threadsQueryParams;const i=new URLSearchParams;for(const t in n){const e=n[t]?.toString();if(typeof e!=="undefined"&&e!==null){i.append(t,e)}}if(n.search_query_native){this.router.navigate(`/?query=${n.search_query_native}`,true)}else if(this.nylasMailboxStore.state.threadsQueryParams.search_query_native&&!n.search_query_native){this.router.navigate("/",true)}if(!n.page_token){this.nylasMailboxStore.state.previousThreadPageTokens=[]}this.nylasMailboxStore.state.threadsQueryParams=n;const o=`/v3/grants/me/threads?${i.toString()}`;const h=await this.nylasAuth.nylasAPIRequest(o);if(e(h)){throw new s(h.error)}const c=h.data;switch(r){case"prepend":this.nylasMailboxStore.state.threads=[...c,...this.nylasMailboxStore.state.threads];break;case"append":this.nylasMailboxStore.state.threads=[...this.nylasMailboxStore.state.threads,...c];break;case"overwrite":default:this.nylasMailboxStore.state.threads=c;break}if(h.next_cursor){this.nylasMailboxStore.state.nextThreadPageToken=h.next_cursor}else{this.nylasMailboxStore.state.nextThreadPageToken=null}if(a){this.nylasMailboxStore.state.state="ready"}return c}async getThread(t){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing thread:read-only scope")}const r=this.nylasMailboxStore.state.threads.find((e=>e.id===t));if(r){return r}this.nylasMailboxStore.state.state="loading";const a=`/v3/grants/me/threads/${t}`;const n=await this.nylasAuth.nylasAPIRequest(a);if(e(n)){throw new s(n.error)}const i=n.data;this.nylasMailboxStore.state.threads=this.nylasMailboxStore.state.threads.map((t=>{if(t.id===i.id){return i}return t}));this.nylasMailboxStore.state.state="ready";return i}async nextThreadPage(t="overwrite",e=true){if(!this.nylasMailboxStore.state.nextThreadPageToken){throw new Error("No next page token")}this.nylasMailboxStore.state.previousThreadPageTokens=Array.from(new Set([...this.nylasMailboxStore.state.previousThreadPageTokens,this.nylasMailboxStore.state.threadsQueryParams.page_token??null]));const s=this.nylasMailboxStore.state.nextThreadPageToken;return this.getThreads({...this.nylasMailboxStore.state.threadsQueryParams,page_token:s},t,e)}async previousThreadPage(t="overwrite",e=true){if(!this.nylasMailboxStore.state.previousThreadPageTokens.length){throw new Error("No previous page token")}const s=[...this.nylasMailboxStore.state.previousThreadPageTokens];const r=s.pop();this.nylasMailboxStore.state.previousThreadPageTokens=s;return this.getThreads({...this.nylasMailboxStore.state.threadsQueryParams,page_token:r??undefined},t,e)}updateThreadQueryParams(t){this.nylasMailboxStore.state.threadsQueryParams={...this.nylasMailboxStore.state.threadsQueryParams,...t}}back(){this.router.navigate("/",true);this.nylasMailboxStore.state.selectedThread=null}unSelectThread(){this.nylasMailboxStore.state.selectedThread=null}async selectThread(e){this.router.navigate(`/thread/${e.id}`,true);this.nylasMailboxStore.state.selectedThread=e;if(e.unread){this.markThreadAsRead(e).catch((e=>{t("Error marking thread as read",e)}))}}async markThreadAsRead(t){return this.updateThread(t,{unread:false})}async updateThread(t,r){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email","modify")){throw new Error("Missing thread:modify scope")}const a=`/v3/grants/me/threads/${t.id}`;const n=await this.nylasAuth.nylasAPIRequest(a,"PUT",r);if(e(n)){throw new s(n.error)}const i=n.data;this.nylasMailboxStore.state.threads=this.nylasMailboxStore.state.threads.map((t=>{if(t.id===i.id){return i}return t}));this.nylasMailboxStore.state.selectedThread=i;return i}}class o{constructor(t,e,s){this.nylasAuth=t;this.nylasAuthStore=e;this.nylasMailboxStore=s}async getFolders(){if(!this.nylasAuthStore.state.isAuthenticated){throw new Error("Not authenticated")}if(!this.nylasAuth.hasScopeByType("email",["read-only","modify"])){throw new Error("Missing thread:read-only scope")}this.nylasMailboxStore.state.state="loading";const t=`/v3/grants/me/folders`;const r=await this.nylasAuth.nylasAPIRequest(t);if(e(r)){throw new s(r.error)}const a=r.data;this.nylasMailboxStore.state.folders=a;this.nylasMailboxStore.state.state="ready";return a}async selectFolder(t){this.nylasMailboxStore.state.threadsQueryParams={in:t.id,...this.nylasMailboxStore.state.threadsQueryParams||{}}}}class h extends Event{constructor(t,e){super(t,e);this.oldURL=e.oldURL;this.newURL=e.newURL}}class c{constructor(){this.routeChangeListeners=[];t("HashRouter constructor")}destroy(){t("HashRouter destroy");window.removeEventListener("hashchange",this.onRouteChange.bind(this))}init(){t("HashRouter init");window.addEventListener("hashchange",this.onRouteChange.bind(this));if(typeof HashChangeEvent!=="undefined"){const t=new HashChangeEvent("hashchange",{oldURL:"",newURL:window.location.href});this.onRouteChange(t)}else{const t=new h("hashchange",{oldURL:"",newURL:window.location.href});this.onRouteChange(t)}}addRouteChangeListener(e,s){t("HashRouter addRouteChangeListener");this.routeChangeListeners.push([e,s])}navigate(e,s){t("HashRouter navigate");if(s){return window.history.pushState(null,"",`#${e}`)}window.location.hash=e}setRoute(e){t("HashRouter setRoute");window.location.hash=e}matchRoute(e,s){const r=e.split("/");const a=s.split("/");t(`HashRouter matchRoute route=${e} path=${s}`,{routeParts:r,pathParts:a});if(r[1]===""&&a[0]===""){return true}if(r.length!==a.length){return false}for(let t=0;t<r.length;t++){const e=r[t];const s=a[t];if(e.startsWith(":")){continue}if(e!==s){return false}}return true}getRouteParams(e){t("HashRouter getRouteParams");const s={};const r=e.split("/");const a=window.location.hash.split("/");r.forEach(((t,e)=>{if(t.startsWith(":")){const r=t.substring(1);s[r]=a[e]}}));return s}getRouteWithParams(e,s){t("HashRouter getRouteWithParams");let r=e;Object.keys(s).forEach((t=>{r=r.replace(`:${t}`,s[t])}));return r}getRoute(){t("HashRouter getRoute");return window.location.hash}onRouteChange(e){this.routeChangeListeners.forEach((async([s,r])=>{const a=e.newURL.indexOf("#")===-1?"":e.newURL.substring(e.newURL.indexOf("#")+1);t(`HashRouter onRouteChange route=${s} path=${a}`,{event:e});if(!this.matchRoute(s,a)){t(`HashRouter onRouteChange route=${s} path=${a} does not match`);return}const n=this.getRouteParams(s);await r(s,a,n)}))}getBasePath(){t("HashRouter getBasePath");return""}}function d(t={}){const e={isAuthenticated:false,tokenInfo:null,state:"ready",...t};const s=r(e);s.reset=()=>{for(const t in e){const r=e[t];s.set(t,r)}};return s}function u(t={}){const e={state:"ready",messages:[],threads:[],folders:[],selectedThread:null,nextThreadPageToken:null,previousThreadPageTokens:[],searchQuery:"",hasNextThreadPage:false,hasPreviousThreadPage:false,selectedFolder:"inbox",threadsQueryParams:{in:"inbox"},messgeQueryParams:{fields:"include_headers"},...t};const s=r({...e});s.onChange("nextThreadPageToken",(t=>{s.set("hasNextThreadPage",t!==null)}));s.onChange("previousThreadPageTokens",(t=>{s.set("hasPreviousThreadPage",t.length>0)}));s.onChange("threadsQueryParams",(t=>{s.set("selectedFolder",t.in||"inbox");s.set("searchQuery",t.search_query_native||"")}));s.reset=()=>{for(const t in e){const r=e[t];s.set(t,r)}};return s}export{d as C,c as H,a as N,i as a,n as b,o as c,u as d};
|
|
2
|
+
//# sourceMappingURL=p-e22aa0b0.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{a as e,e as t}from"./p-41dc0d93.js";import{a as n}from"./p-68c2fadf.js";function r(e,t,n="registerComponent"){return new CustomEvent(n,{bubbles:true,composed:true,detail:t})}function o(e,t,n="unregisterComponent"){return new CustomEvent(n,{bubbles:true,composed:true,detail:t})}function s(s){return(c,i)=>{const u=s.name;e(`[${u}] Registering component ${u} being called on ${i}`);const a=c.componentWillLoad;if(!a){t(`[${u}] componentWillLoad lifecycle method in ${u} missing. Required for RegisterComponent decorator.`);return}const l=c.connectedCallback;if(!l){t(`[${u}] connectedCallback lifecycle method in ${u} missing. Required for RegisterComponent decorator.`);return}const p=c.disconnectedCallback;if(!p){t(`[${u}] disconnectedCallback lifecycle method in ${u} missing. Required for RegisterComponent decorator.`);return}if(s.storeToProps&&s.stateToProps){const e=Array.from(s.storeToProps.values());const n=Array.from(s.stateToProps.values());const r=e.filter((e=>n.includes(e)));if(r.length>0){t(`[${u}] Overlapping prop keys detected in ${u} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${r.join(", ")}`);return}}const m=new Map;if(s.eventToProps){Object.keys(s.eventToProps).forEach((e=>{m.set(e,s.eventToProps?.[e])}))}c.connectedCallback=function(){e(`[~${u}] connectedCallback called`);const t=l?.call(this);const r=n(this);if(r.dataset.nylasId){return t}Object.defineProperty(r,"registerNylasComponent",{get(){return true},enumerable:true});Object.defineProperty(r,"stateToProps",{get(){return s.stateToProps},enumerable:true});Object.defineProperty(r,"getStoresToProp",{get(){return s.getStoresToProp},enumerable:true});Object.defineProperty(r,"storeToProps",{get(){return s.storeToProps},enumerable:true});Object.defineProperty(r,"eventToProps",{get(){return m},enumerable:true});Object.defineProperty(r,"authToProp",{get(){return s.authToProp},enumerable:true});Object.defineProperty(r,"connectorToProp",{get(){return s.connectorToProp},enumerable:true});Object.defineProperty(r,"localPropsToProp",{get(){return s.localPropsToProp},enumerable:true});return t};if(s.fireRegisterEvent){c.componentWillLoad=function(){const t=a?.call(this);const o=n(this);const i={element:o,...s,eventToProps:m};const l=r(c,i,s.registrationEventName);if(o.dispatchEvent(l)){e(`[${u}] Component ${u} successfully fired registration event`)}return t};c.disconnectedCallback=function(){const t=p?.call(this);const r=n(this);const i={element:r,...s,eventToProps:m};const a=o(c,i,s.unregistrationEventName);if(r.dispatchEvent(a)){e(`[${u}] Component ${u} successfully fired unregistration event`)}return t}}}}export{s as R};
|
|
2
|
+
//# sourceMappingURL=p-eaa9151b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createComponentEvent","instance","registeredComponent","eventName","CustomEvent","bubbles","composed","detail","unregisterComponentEvent","RegisterComponent","config","target","propKey","componentName","name","debug","origionalCallback","componentWillLoad","error","origionalConnectCallback","connectedCallback","origionalDisconnectCallback","disconnectedCallback","storeToProps","stateToProps","storeToPropsKeys","Array","from","values","stateToPropsKeys","intersection","filter","key","includes","length","join","eventToPropsMap","Map","eventToProps","Object","keys","forEach","set","origionalResult","call","this","host","getElement","dataset","nylasId","defineProperty","get","enumerable","getStoresToProp","authToProp","connectorToProp","localPropsToProp","fireRegisterEvent","element","event","registrationEventName","dispatchEvent","unregistrationEventName"],"sources":["src/common/register-component.ts"],"sourcesContent":["import { BaseNylasConnectorInterface } from '@/connector/connector-interface';\nimport { debug, error } from '@/utils/utils';\nimport { ComponentInterface, getElement } from '@stencil/core';\nimport { CombinedStoreStateKeys, EventEmitterEventType, ExtractEventEmitterKeys, ExtractEventEmitterProperties } from './types';\nexport interface RegisteredComponent<H extends ComponentInterface, B extends BaseNylasConnectorInterface, MailboxStores = string> {\n name: string;\n element: HTMLElement;\n getStoresToProp?: keyof H;\n storeToProps?: Map<string, keyof H>;\n stateToProps?: Map<MailboxStores, keyof H>;\n eventToProps?: Map<ExtractEventEmitterKeys<H>, (event: CustomEvent<EventEmitterEventType<H[ExtractEventEmitterKeys<H>]>>, nylasConnector: B) => Promise<void>>;\n localPropsToProp?: Map<string, keyof H>;\n authToProp?: keyof H;\n connectorToProp?: keyof H;\n registrationEventName?: string;\n unregistrationEventName?: string;\n}\n\nexport function createComponentEvent<T extends ComponentInterface, B extends BaseNylasConnectorInterface>(\n instance: T,\n registeredComponent: RegisteredComponent<T, B>,\n eventName: string = 'registerComponent',\n) {\n return new CustomEvent<RegisteredComponent<typeof instance, B>>(eventName, {\n bubbles: true,\n composed: true,\n detail: registeredComponent,\n });\n}\n\nexport function unregisterComponentEvent<T extends ComponentInterface, B extends BaseNylasConnectorInterface>(\n instance: T,\n registeredComponent: RegisteredComponent<T, B>,\n eventName: string = 'unregisterComponent',\n) {\n return new CustomEvent<RegisteredComponent<typeof instance, B>>(eventName, {\n bubbles: true,\n composed: true,\n detail: registeredComponent,\n });\n}\n\nexport interface RegisterComponentConfig<H extends ComponentInterface, B extends BaseNylasConnectorInterface, MailboxStores>\n extends Omit<RegisteredComponent<H, B, MailboxStores>, 'eventToProps' | 'name' | 'element'> {\n name: string;\n eventToProps?: Partial<{\n [P in ExtractEventEmitterProperties<H> as P['key']]: (event: CustomEvent<P['eventType']>, nylasConnector: B) => Promise<void>;\n }>;\n fireRegisterEvent?: boolean;\n}\n\nexport interface NylasComponentInterface extends ComponentInterface {\n authToProp?: keyof this;\n connectorToProp?: keyof this;\n}\n\nexport function RegisterComponent<H extends NylasComponentInterface, B extends BaseNylasConnectorInterface, MailboxStores extends Record<string, any>>(\n config: RegisterComponentConfig<H, B, CombinedStoreStateKeys<keyof MailboxStores, MailboxStores>>,\n) {\n return (target: H, propKey: string) => {\n const componentName = config.name;\n debug(`[${componentName}] Registering component ${componentName} being called on ${propKey}`);\n\n const origionalCallback = target.componentWillLoad;\n if (!origionalCallback) {\n error(`[${componentName}] componentWillLoad lifecycle method in ${componentName} missing. Required for RegisterComponent decorator.`);\n return;\n }\n\n const origionalConnectCallback = target.connectedCallback;\n if (!origionalConnectCallback) {\n error(`[${componentName}] connectedCallback lifecycle method in ${componentName} missing. Required for RegisterComponent decorator.`);\n return;\n }\n\n const origionalDisconnectCallback = target.disconnectedCallback;\n if (!origionalDisconnectCallback) {\n error(`[${componentName}] disconnectedCallback lifecycle method in ${componentName} missing. Required for RegisterComponent decorator.`);\n return;\n }\n\n // Detect a conflict if config.storeToProps and config.stateToProps are both defined\n // for overlapping prop keys\n if (config.storeToProps && config.stateToProps) {\n const storeToPropsKeys = Array.from(config.storeToProps.values());\n const stateToPropsKeys = Array.from(config.stateToProps.values());\n const intersection = storeToPropsKeys.filter(key => stateToPropsKeys.includes(key));\n if (intersection.length > 0) {\n error(\n `[${componentName}] Overlapping prop keys detected in ${componentName} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${intersection.join(\n ', ',\n )}`,\n );\n return;\n }\n }\n\n // Convert the record of eventToProps to a map\n const eventToPropsMap = new Map<ExtractEventEmitterKeys<H>, (event: CustomEvent<EventEmitterEventType<H[ExtractEventEmitterKeys<H>]>>, nylasConnector: B) => Promise<void>>();\n if (config.eventToProps) {\n Object.keys(config.eventToProps).forEach(key => {\n eventToPropsMap.set(\n key as ExtractEventEmitterKeys<H>,\n config.eventToProps?.[key as ExtractEventEmitterKeys<H>] as (\n event: CustomEvent<EventEmitterEventType<H[ExtractEventEmitterKeys<H>]>>,\n nylasConnector: B,\n ) => Promise<void>,\n );\n });\n }\n\n target.connectedCallback = function () {\n debug(`[~${componentName}] connectedCallback called`);\n const origionalResult = origionalConnectCallback?.call(this);\n const host = getElement(this);\n\n // If the nylas id is already set, then we don't need to do anything\n if (host.dataset.nylasId) {\n return origionalResult;\n }\n\n Object.defineProperty(host, 'registerNylasComponent', {\n get() {\n return true;\n },\n enumerable: true,\n });\n Object.defineProperty(host, 'stateToProps', {\n get() {\n return config.stateToProps;\n },\n enumerable: true,\n });\n Object.defineProperty(host, 'getStoresToProp', {\n get() {\n return config.getStoresToProp;\n },\n enumerable: true,\n });\n Object.defineProperty(host, 'storeToProps', {\n get() {\n return config.storeToProps;\n },\n enumerable: true,\n });\n Object.defineProperty(host, 'eventToProps', {\n get() {\n return eventToPropsMap;\n },\n enumerable: true,\n });\n Object.defineProperty(host, 'authToProp', {\n get() {\n return config.authToProp;\n },\n enumerable: true,\n });\n Object.defineProperty(host, 'connectorToProp', {\n get() {\n return config.connectorToProp;\n },\n enumerable: true,\n });\n Object.defineProperty(host, 'localPropsToProp', {\n get() {\n return config.localPropsToProp;\n },\n enumerable: true,\n });\n return origionalResult;\n };\n\n if (config.fireRegisterEvent) {\n target.componentWillLoad = function () {\n const origionalResult = origionalCallback?.call(this);\n const host = getElement(this);\n\n // We use our host element to dispatch a registration event that is picked up by the\n // the nylas-provider component.\n const registeredComponent: RegisteredComponent<H, B> = {\n element: host,\n ...config,\n eventToProps: eventToPropsMap,\n };\n const event = createComponentEvent(target, registeredComponent, config.registrationEventName);\n if (host.dispatchEvent(event)) {\n debug(`[${componentName}] Component ${componentName} successfully fired registration event`);\n }\n\n return origionalResult;\n };\n\n target.disconnectedCallback = function () {\n const origionalResult = origionalDisconnectCallback?.call(this);\n const host = getElement(this);\n\n // We use our host element to dispatch a registration event that is picked up by the\n // the nylas-provider component.\n const registeredComponent: RegisteredComponent<H, B> = {\n element: host,\n ...config,\n eventToProps: eventToPropsMap,\n };\n const event = unregisterComponentEvent(target, registeredComponent, config.unregistrationEventName);\n if (host.dispatchEvent(event)) {\n debug(`[${componentName}] Component ${componentName} successfully fired unregistration event`);\n }\n\n return origionalResult;\n };\n }\n };\n}\n"],"mappings":"wFAkBgBA,EACdC,EACAC,EACAC,EAAoB,qBAEpB,OAAO,IAAIC,YAAqDD,EAAW,CACzEE,QAAS,KACTC,SAAU,KACVC,OAAQL,GAEZ,C,SAEgBM,EACdP,EACAC,EACAC,EAAoB,uBAEpB,OAAO,IAAIC,YAAqDD,EAAW,CACzEE,QAAS,KACTC,SAAU,KACVC,OAAQL,GAEZ,C,SAgBgBO,EACdC,GAEA,MAAO,CAACC,EAAWC,KACjB,MAAMC,EAAgBH,EAAOI,KAC7BC,EAAM,IAAIF,4BAAwCA,qBAAiCD,KAEnF,MAAMI,EAAoBL,EAAOM,kBACjC,IAAKD,EAAmB,CACtBE,EAAM,IAAIL,4CAAwDA,wDAClE,M,CAGF,MAAMM,EAA2BR,EAAOS,kBACxC,IAAKD,EAA0B,CAC7BD,EAAM,IAAIL,4CAAwDA,wDAClE,M,CAGF,MAAMQ,EAA8BV,EAAOW,qBAC3C,IAAKD,EAA6B,CAChCH,EAAM,IAAIL,+CAA2DA,wDACrE,M,CAKF,GAAIH,EAAOa,cAAgBb,EAAOc,aAAc,CAC9C,MAAMC,EAAmBC,MAAMC,KAAKjB,EAAOa,aAAaK,UACxD,MAAMC,EAAmBH,MAAMC,KAAKjB,EAAOc,aAAaI,UACxD,MAAME,EAAeL,EAAiBM,QAAOC,GAAOH,EAAiBI,SAASD,KAC9E,GAAIF,EAAaI,OAAS,EAAG,CAC3BhB,EACE,IAAIL,wCAAoDA,8FAA0GiB,EAAaK,KAC7K,SAGJ,M,EAKJ,MAAMC,EAAkB,IAAIC,IAC5B,GAAI3B,EAAO4B,aAAc,CACvBC,OAAOC,KAAK9B,EAAO4B,cAAcG,SAAQT,IACvCI,EAAgBM,IACdV,EACAtB,EAAO4B,eAAeN,GAIvB,G,CAILrB,EAAOS,kBAAoB,WACzBL,EAAM,KAAKF,+BACX,MAAM8B,EAAkBxB,GAA0ByB,KAAKC,MACvD,MAAMC,EAAOC,EAAWF,MAGxB,GAAIC,EAAKE,QAAQC,QAAS,CACxB,OAAON,C,CAGTJ,OAAOW,eAAeJ,EAAM,yBAA0B,CACpD,GAAAK,GACE,OAAO,I,EAETC,WAAY,OAEdb,OAAOW,eAAeJ,EAAM,eAAgB,CAC1C,GAAAK,GACE,OAAOzC,EAAOc,Y,EAEhB4B,WAAY,OAEdb,OAAOW,eAAeJ,EAAM,kBAAmB,CAC7C,GAAAK,GACE,OAAOzC,EAAO2C,e,EAEhBD,WAAY,OAEdb,OAAOW,eAAeJ,EAAM,eAAgB,CAC1C,GAAAK,GACE,OAAOzC,EAAOa,Y,EAEhB6B,WAAY,OAEdb,OAAOW,eAAeJ,EAAM,eAAgB,CAC1C,GAAAK,GACE,OAAOf,C,EAETgB,WAAY,OAEdb,OAAOW,eAAeJ,EAAM,aAAc,CACxC,GAAAK,GACE,OAAOzC,EAAO4C,U,EAEhBF,WAAY,OAEdb,OAAOW,eAAeJ,EAAM,kBAAmB,CAC7C,GAAAK,GACE,OAAOzC,EAAO6C,e,EAEhBH,WAAY,OAEdb,OAAOW,eAAeJ,EAAM,mBAAoB,CAC9C,GAAAK,GACE,OAAOzC,EAAO8C,gB,EAEhBJ,WAAY,OAEd,OAAOT,C,EAGT,GAAIjC,EAAO+C,kBAAmB,CAC5B9C,EAAOM,kBAAoB,WACzB,MAAM0B,EAAkB3B,GAAmB4B,KAAKC,MAChD,MAAMC,EAAOC,EAAWF,MAIxB,MAAM3C,EAAiD,CACrDwD,QAASZ,KACNpC,EACH4B,aAAcF,GAEhB,MAAMuB,EAAQ3D,EAAqBW,EAAQT,EAAqBQ,EAAOkD,uBACvE,GAAId,EAAKe,cAAcF,GAAQ,CAC7B5C,EAAM,IAAIF,gBAA4BA,0C,CAGxC,OAAO8B,C,EAGThC,EAAOW,qBAAuB,WAC5B,MAAMqB,EAAkBtB,GAA6BuB,KAAKC,MAC1D,MAAMC,EAAOC,EAAWF,MAIxB,MAAM3C,EAAiD,CACrDwD,QAASZ,KACNpC,EACH4B,aAAcF,GAEhB,MAAMuB,EAAQnD,EAAyBG,EAAQT,EAAqBQ,EAAOoD,yBAC3E,GAAIhB,EAAKe,cAAcF,GAAQ,CAC7B5C,EAAM,IAAIF,gBAA4BA,4C,CAGxC,OAAO8B,C,GAIf,Q"}
|