@nylas/web-elements 0.0.0-canary-20241008193213 → 0.0.0-canary-20241017103834
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/cdn/add-circle/add-circle.es.js +1 -1
- package/dist/cdn/add-circle-icon/add-circle-icon.es.js +1 -1
- package/dist/cdn/archive-icon/archive-icon.es.js +127 -127
- package/dist/cdn/arrow-icon/arrow-icon.es.js +248 -248
- package/dist/cdn/bold-icon/bold-icon.es.js +1 -1
- package/dist/cdn/button-component/button-component.es.js +2 -2
- package/dist/cdn/calendar/calendar.es.js +77 -77
- package/dist/cdn/calendar-agenda/calendar-agenda.es.js +1 -1
- package/dist/cdn/calendar-agenda-fill/calendar-agenda-fill.es.js +1 -1
- package/dist/cdn/calendar-agenda-fill-icon/calendar-agenda-fill-icon.es.js +1 -1
- package/dist/cdn/calendar-agenda-icon/calendar-agenda-icon.es.js +1 -1
- package/dist/cdn/calendar-cancel/calendar-cancel.es.js +1 -1
- package/dist/cdn/calendar-cancel-icon/calendar-cancel-icon.es.js +1 -1
- package/dist/cdn/calendar-check/calendar-check.es.js +139 -139
- package/dist/cdn/calendar-check-icon/calendar-check-icon.es.js +14 -14
- package/dist/cdn/calendar-icon/calendar-icon.es.js +24 -24
- package/dist/cdn/calendar-info/calendar-info.es.js +1 -1
- package/dist/cdn/calendar-info-icon/calendar-info-icon.es.js +1 -1
- package/dist/cdn/calendar-patterns/calendar-patterns.es.js +1 -1
- package/dist/cdn/calendar-patterns-icon/calendar-patterns-icon.es.js +1 -1
- package/dist/cdn/checkbox-component/checkbox-component.es.js +1 -1
- package/dist/cdn/checkmark/checkmark.es.js +86 -86
- package/dist/cdn/checkmark-circle/checkmark-circle.es.js +99 -99
- package/dist/cdn/checkmark-circle-icon/checkmark-circle-icon.es.js +14 -14
- package/dist/cdn/checkmark-icon/checkmark-icon.es.js +1 -1
- package/dist/cdn/chevron/chevron.es.js +16 -16
- package/dist/cdn/chevron-icon/chevron-icon.es.js +14 -14
- package/dist/cdn/clock/clock.es.js +16 -16
- package/dist/cdn/clock-icon/clock-icon.es.js +14 -14
- package/dist/cdn/close/close.es.js +1 -1
- package/dist/cdn/close-icon/close-icon.es.js +54 -54
- package/dist/cdn/constants/constants.es.js +3 -3
- package/dist/cdn/copy/copy.es.js +239 -239
- package/dist/cdn/copy-icon/copy-icon.es.js +271 -271
- package/dist/cdn/delete/delete.es.js +1 -1
- package/dist/cdn/delete-icon/delete-icon.es.js +1 -1
- package/dist/cdn/document-refresh-icon/document-refresh-icon.es.js +1 -1
- package/dist/cdn/dragable/dragable.es.js +54 -54
- package/dist/cdn/dragable-icon/dragable-icon.es.js +1 -1
- package/dist/cdn/edit/edit.es.js +1 -1
- package/dist/cdn/edit-icon/edit-icon.es.js +1 -1
- package/dist/cdn/envelope/envelope.es.js +25 -25
- package/dist/cdn/envelope-fill/envelope-fill.es.js +16 -16
- package/dist/cdn/envelope-fill-icon/envelope-fill-icon.es.js +97 -97
- package/dist/cdn/envelope-icon/envelope-icon.es.js +24 -24
- package/dist/cdn/eye/eye.es.js +1 -1
- package/dist/cdn/eye-icon/eye-icon.es.js +1 -1
- package/dist/cdn/feedback-icon/feedback-icon.es.js +86 -86
- package/dist/cdn/flow/flow.es.js +1 -1
- package/dist/cdn/flow-icon/flow-icon.es.js +1 -1
- package/dist/cdn/folder-icon/folder-icon.es.js +14 -14
- package/dist/cdn/forward-icon/forward-icon.es.js +240 -240
- package/dist/cdn/globe/globe.es.js +1 -1
- package/dist/cdn/globe-icon/globe-icon.es.js +1 -1
- package/dist/cdn/google-logo/google-logo.es.js +1 -1
- package/dist/cdn/google-logo-icon/google-logo-icon.es.js +1 -1
- package/dist/cdn/google-meet/google-meet.es.js +15 -15
- package/dist/cdn/google-meet-icon/google-meet-icon.es.js +1 -1
- package/dist/cdn/inbox-icon/inbox-icon.es.js +1 -1
- package/dist/cdn/info/info.es.js +239 -239
- package/dist/cdn/info-icon/info-icon.es.js +240 -240
- package/dist/cdn/input-color-picker/input-color-picker.es.js +3 -3
- package/dist/cdn/input-component/input-component.es.js +1 -1
- package/dist/cdn/input-dropdown/input-dropdown.es.js +1 -1
- package/dist/cdn/input-image-url/input-image-url.es.js +366 -366
- package/dist/cdn/italic-icon/italic-icon.es.js +86 -86
- package/dist/cdn/loading/loading.es.js +270 -270
- package/dist/cdn/loading-icon/loading-icon.es.js +271 -271
- package/dist/cdn/location/location.es.js +100 -100
- package/dist/cdn/location-icon/location-icon.es.js +19 -19
- package/dist/cdn/location-off/location-off.es.js +86 -86
- package/dist/cdn/location-off-icon/location-off-icon.es.js +1 -1
- package/dist/cdn/microsof-teams/microsof-teams.es.js +96 -96
- package/dist/cdn/microsoft-logo/microsoft-logo.es.js +1 -1
- package/dist/cdn/microsoft-logo-icon/microsoft-logo-icon.es.js +1 -1
- package/dist/cdn/microsoft-teams-icon/microsoft-teams-icon.es.js +97 -97
- package/dist/cdn/multi-select-dropdown/multi-select-dropdown.es.js +3 -3
- package/dist/cdn/nylas-additional-participants/nylas-additional-participants.es.js +55 -57
- package/dist/cdn/nylas-availability-picker/nylas-availability-picker.es.js +15 -15
- package/dist/cdn/nylas-booked-event-card/nylas-booked-event-card.es.js +10 -10
- package/dist/cdn/nylas-booking-calendar-picker/nylas-booking-calendar-picker.es.js +5 -5
- package/dist/cdn/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.es.js +7 -7
- package/dist/cdn/nylas-booking-confirmation-type/nylas-booking-confirmation-type.es.js +733 -734
- package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +154 -151
- package/dist/cdn/nylas-booking-form-config/nylas-booking-form-config.es.js +9 -9
- package/dist/cdn/nylas-buffer-time/nylas-buffer-time.es.js +5 -5
- package/dist/cdn/nylas-calendar-picker/nylas-calendar-picker.es.js +7 -7
- package/dist/cdn/nylas-cancel-booking-form/nylas-cancel-booking-form.es.js +10 -10
- package/dist/cdn/nylas-cancellation-policy/nylas-cancellation-policy.es.js +3 -3
- package/dist/cdn/nylas-cancelled-event-card/nylas-cancelled-event-card.es.js +7 -7
- package/dist/cdn/nylas-confirmation-email/nylas-confirmation-email.es.js +99 -95
- package/dist/cdn/nylas-confirmed-event-card/nylas-confirmed-event-card.es.js +723 -723
- package/dist/cdn/nylas-connected-calendars/nylas-connected-calendars.es.js +179 -179
- package/dist/cdn/nylas-custom-booking-flow/nylas-custom-booking-flow.es.js +2 -2
- package/dist/cdn/nylas-custom-event-slug/nylas-custom-event-slug.es.js +7 -7
- package/dist/cdn/nylas-customize-booking-settings/nylas-customize-booking-settings.es.js +147 -147
- package/dist/cdn/nylas-date-picker/nylas-date-picker.es.js +7 -7
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +6451 -6036
- package/dist/cdn/nylas-event-description/nylas-event-description.es.js +3 -3
- package/dist/cdn/nylas-event-duration/nylas-event-duration.es.js +232 -232
- package/dist/cdn/nylas-event-info/nylas-event-info.es.js +2 -2
- package/dist/cdn/nylas-event-limits/nylas-event-limits.es.js +2 -2
- package/dist/cdn/nylas-event-location/nylas-event-location.es.js +2558 -2533
- package/dist/cdn/nylas-event-title/nylas-event-title.es.js +10 -5
- package/dist/cdn/nylas-feedback-form/nylas-feedback-form.es.js +8 -8
- package/dist/cdn/nylas-form-card/nylas-form-card.es.js +1 -1
- package/dist/cdn/nylas-if-state/nylas-if-state.es.js +1 -1
- package/dist/cdn/nylas-limit-future-bookings/nylas-limit-future-bookings.es.js +8 -8
- package/dist/cdn/nylas-list-configurations/nylas-list-configurations.es.js +21 -17
- package/dist/cdn/nylas-locale-switch/nylas-locale-switch.es.js +1168 -1168
- package/dist/cdn/nylas-login/nylas-login.es.js +1 -1
- package/dist/cdn/nylas-logo/nylas-logo.es.js +125 -125
- package/dist/cdn/nylas-min-booking-notice/nylas-min-booking-notice.es.js +10 -10
- package/dist/cdn/nylas-min-cancellation-notice/nylas-min-cancellation-notice.es.js +10 -10
- package/dist/cdn/nylas-notification/nylas-notification.es.js +3 -3
- package/dist/cdn/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.es.js +6 -6
- package/dist/cdn/nylas-page-name/nylas-page-name.es.js +7 -7
- package/dist/cdn/nylas-page-styling/nylas-page-styling.es.js +4 -4
- package/dist/cdn/nylas-participant-booking-calendars/nylas-participant-booking-calendars.es.js +8 -8
- package/dist/cdn/nylas-participants-custom-availability/nylas-participants-custom-availability.es.js +176 -176
- package/dist/cdn/nylas-provider/nylas-provider.es.js +652 -644
- package/dist/cdn/nylas-reminder-emails/nylas-reminder-emails.es.js +17 -17
- package/dist/cdn/nylas-reminder-time/nylas-reminder-time.es.js +5 -5
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +1430 -1001
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1081 -1056
- package/dist/cdn/nylas-scheduling-method/nylas-scheduling-method.es.js +10 -12
- package/dist/cdn/nylas-selected-event-card/nylas-selected-event-card.es.js +4 -4
- package/dist/cdn/nylas-time-window-picker/nylas-time-window-picker.es.js +1 -1
- package/dist/cdn/nylas-timeslot-interval/nylas-timeslot-interval.es.js +147 -149
- package/dist/cdn/nylas-timeslot-picker/nylas-timeslot-picker.es.js +10 -9
- package/dist/cdn/paintbrush/paintbrush.es.js +239 -239
- package/dist/cdn/paintbrush-fill/paintbrush-fill.es.js +1 -1
- package/dist/cdn/paintbrush-fill-icon/paintbrush-fill-icon.es.js +1 -1
- package/dist/cdn/paintbrush-icon/paintbrush-icon.es.js +240 -240
- package/dist/cdn/people/people.es.js +1 -1
- package/dist/cdn/people-icon/people-icon.es.js +1 -1
- package/dist/cdn/person/person.es.js +1 -1
- package/dist/cdn/person-clipboard/person-clipboard.es.js +1 -1
- package/dist/cdn/person-clipboard-icon/person-clipboard-icon.es.js +1 -1
- package/dist/cdn/person-icon/person-icon.es.js +1 -1
- package/dist/cdn/play-icon/play-icon.es.js +248 -248
- package/dist/cdn/plus/plus.es.js +16 -16
- package/dist/cdn/plus-icon/plus-icon.es.js +14 -14
- package/dist/cdn/radio-button-group/radio-button-group.es.js +1 -1
- package/dist/cdn/refresh-icon/refresh-icon.es.js +14 -14
- package/dist/cdn/reply-all-icon/reply-all-icon.es.js +14 -14
- package/dist/cdn/reply-icon/reply-icon.es.js +14 -14
- package/dist/cdn/scheduler-store/scheduler-store.es.js +654 -646
- package/dist/cdn/search/search.es.js +1 -1
- package/dist/cdn/search-icon/search-icon.es.js +86 -86
- package/dist/cdn/select-dropdown/select-dropdown.es.js +3 -3
- package/dist/cdn/sent-icon/sent-icon.es.js +1 -1
- package/dist/cdn/spam-icon/spam-icon.es.js +86 -86
- package/dist/cdn/star-icon/star-icon.es.js +1 -1
- package/dist/cdn/stop-icon/stop-icon.es.js +1 -1
- package/dist/cdn/textarea-component/textarea-component.es.js +3 -3
- package/dist/cdn/time-period-selector/time-period-selector.es.js +230 -230
- package/dist/cdn/toggle-switch/toggle-switch.es.js +1 -1
- package/dist/cdn/toolitp-component/toolitp-component.es.js +23 -23
- package/dist/cdn/tooltip-component/tooltip-component.es.js +26 -26
- package/dist/cdn/translate/translate.es.js +246 -246
- package/dist/cdn/translate-icon/translate-icon.es.js +247 -247
- package/dist/cdn/trash/trash.es.js +1 -1
- package/dist/cdn/trash-fill-icon/trash-fill-icon.es.js +14 -14
- package/dist/cdn/trash-icon/trash-icon.es.js +1 -1
- package/dist/cdn/underline-icon/underline-icon.es.js +1 -1
- package/dist/cdn/warning/warning.es.js +247 -247
- package/dist/cdn/warning-icon/warning-icon.es.js +248 -248
- package/dist/cdn/zoom/zoom.es.js +1 -1
- package/dist/cdn/zoom-icon/zoom-icon.es.js +1 -1
- package/dist/cjs/add-circle-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/archive-icon.cjs.entry.js +1 -1
- package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
- package/dist/cjs/bold-icon.cjs.entry.js +1 -1
- package/dist/cjs/button-component_2.cjs.entry.js +2 -2
- package/dist/cjs/{calendar-agenda-fill-icon_51.cjs.entry.js → calendar-agenda-fill-icon_54.cjs.entry.js} +736 -326
- package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js.map +1 -0
- package/dist/cjs/calendar-cancel-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/checkbox-component_2.cjs.entry.js +2 -2
- package/dist/cjs/chevron-icon_3.cjs.entry.js +3 -3
- package/dist/cjs/clock-icon_4.cjs.entry.js +4 -4
- package/dist/cjs/copy-icon.cjs.entry.js +1 -1
- package/dist/cjs/delete-icon.cjs.entry.js +1 -1
- package/dist/cjs/document-refresh-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/globe-icon.cjs.entry.js +1 -1
- package/dist/cjs/google-logo-icon_4.cjs.entry.js +34 -23
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
- package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
- package/dist/cjs/index-7af03e3f.js +2 -10
- package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/input-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/input-component.cjs.entry.js +1 -1
- package/dist/cjs/input-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/italic-icon.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/multi-select-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +35 -34
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
- package/dist/cjs/nylas-if-state.cjs.entry.js +1 -1
- package/dist/cjs/nylas-login.cjs.entry.js +1 -1
- package/dist/cjs/nylas-provider.cjs.entry.js +2 -2
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +22 -9
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-time-window-picker.cjs.entry.js +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/person-icon.cjs.entry.js +1 -1
- package/dist/cjs/play-icon.cjs.entry.js +1 -1
- package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
- 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-store-4489a68b.js → scheduler-store-e3ddffc1.js} +13 -4
- package/dist/cjs/scheduler-store-e3ddffc1.js.map +1 -0
- 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/textarea-component.cjs.entry.js +1 -1
- package/dist/cjs/time-period-selector.cjs.entry.js +1 -1
- package/dist/cjs/translate-icon.cjs.entry.js +1 -1
- package/dist/cjs/trash-fill-icon.cjs.entry.js +1 -1
- package/dist/cjs/underline-icon.cjs.entry.js +1 -1
- package/dist/cjs/warning-icon.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +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-agenda-fill.js +1 -1
- package/dist/collection/common/icons/calendar-agenda.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/checkmark.js +1 -1
- package/dist/collection/common/icons/chevron.js +1 -1
- package/dist/collection/common/icons/clock.js +1 -1
- package/dist/collection/common/icons/close.js +1 -1
- package/dist/collection/common/icons/copy.js +1 -1
- package/dist/collection/common/icons/delete.js +1 -1
- package/dist/collection/common/icons/document-refresh.js +1 -1
- package/dist/collection/common/icons/dragable.js +1 -1
- package/dist/collection/common/icons/edit.js +1 -1
- package/dist/collection/common/icons/envelope-fill.js +1 -1
- package/dist/collection/common/icons/envelope.js +1 -1
- package/dist/collection/common/icons/eye.js +1 -1
- package/dist/collection/common/icons/feedback-icon.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/google-meet.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/microsof-teams.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/paintbrush-fill.js +1 -1
- package/dist/collection/common/icons/paintbrush.js +1 -1
- package/dist/collection/common/icons/people.js +1 -1
- package/dist/collection/common/icons/person-clipboard.js +1 -1
- package/dist/collection/common/icons/person.js +1 -1
- package/dist/collection/common/icons/play.js +1 -1
- package/dist/collection/common/icons/plus.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-fill.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/icons/zoom.js +1 -1
- package/dist/collection/common/types.js.map +1 -1
- package/dist/collection/components/design-system/button-component/button-component.js +1 -1
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -1
- package/dist/collection/components/design-system/input-color-picker/input-color-picker.js +2 -2
- package/dist/collection/components/design-system/input-component/input-component.js +1 -1
- package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/design-system/input-image-url/input-image-url.js +20 -2
- package/dist/collection/components/design-system/input-image-url/input-image-url.js.map +1 -1
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +1 -1
- package/dist/collection/components/design-system/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +1 -1
- package/dist/collection/components/design-system/textarea-component/textarea-component.js +1 -1
- package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
- package/dist/collection/components/design-system/toggle-switch/toggle-switch.js +1 -1
- package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
- package/dist/collection/components/nylas-if-state/nylas-if-state.js +1 -1
- package/dist/collection/components/nylas-login/nylas-login.js +1 -1
- package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.css +23 -0
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js +66 -51
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.css +23 -0
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +35 -24
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.css +23 -0
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +38 -29
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.css +23 -0
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +26 -23
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js +26 -23
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.css +23 -0
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +26 -20
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js +2 -2
- package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.css +23 -0
- package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js +29 -23
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +24 -10
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/test/nylas-scheduling.spec.js +143 -0
- package/dist/collection/components/scheduler/nylas-scheduling/test/nylas-scheduling.spec.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.css +23 -0
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +3 -3
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.css +23 -0
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js +50 -44
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +66 -55
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/test/nylas-additional-participants.spec.js +106 -0
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/test/nylas-additional-participants.spec.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +44 -28
- 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 +25 -10
- 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-booking-confirmation-redirect/nylas-booking-confirmation-redirect.js +21 -9
- package/dist/collection/components/scheduler-editor/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-booking-confirmation-type/nylas-booking-confirmation-type.js +19 -10
- package/dist/collection/components/scheduler-editor/nylas-booking-confirmation-type/nylas-booking-confirmation-type.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js +6 -3
- package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js +10 -4
- package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js +45 -33
- package/dist/collection/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.css +2 -1
- package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js +16 -7
- package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js +58 -30
- package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-confirmation-email/test/nylas-confirmation-email.spec.js +33 -0
- package/dist/collection/components/scheduler-editor/nylas-confirmation-email/test/nylas-confirmation-email.spec.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-connected-calendars/nylas-connected-calendars.js +26 -10
- package/dist/collection/components/scheduler-editor/nylas-connected-calendars/nylas-connected-calendars.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
- 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-custom-event-slug/nylas-custom-event-slug.js +1 -0
- package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js +17 -11
- package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +62 -28
- 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 +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/test/nylas-editor-tabs.spec.js +171 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/test/nylas-editor-tabs.spec.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +16 -7
- 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.js +20 -9
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration.spec.js +55 -0
- package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration.spec.js.map +1 -0
- 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-location/nylas-event-location.js +74 -29
- package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +25 -11
- 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 +16 -7
- 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.js +2 -2
- package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js +32 -23
- package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +32 -23
- 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-page-name/nylas-page-name.js +43 -28
- package/dist/collection/components/scheduler-editor/nylas-page-name/nylas-page-name.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js +38 -26
- package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-participant-booking-calendars/nylas-participant-booking-calendars.js +31 -12
- package/dist/collection/components/scheduler-editor/nylas-participant-booking-calendars/nylas-participant-booking-calendars.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +18 -8
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/test/nylas-participants-custom-availability.spec.js +47 -0
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/test/nylas-participants-custom-availability.spec.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-reminder-emails/nylas-reminder-emails.js +3 -3
- package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduling-method/nylas-scheduling-method.js +34 -27
- package/dist/collection/components/scheduler-editor/nylas-scheduling-method/nylas-scheduling-method.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +18 -53
- package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler.js +12 -3
- package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
- package/dist/collection/types/index.js +7 -6
- package/dist/collection/types/index.js.map +1 -1
- package/dist/collection/utils/test-utils.js +9 -0
- package/dist/collection/utils/test-utils.js.map +1 -1
- package/dist/components/add-circle.js +1 -1
- package/dist/components/archive-icon.js +1 -1
- package/dist/components/arrow-icon.js +1 -1
- package/dist/components/bold-icon.js +1 -1
- package/dist/components/button-component2.js +1 -1
- package/dist/components/calendar-agenda-fill.js +1 -1
- package/dist/components/calendar-agenda.js +1 -1
- package/dist/components/calendar-cancel.js +1 -1
- package/dist/components/calendar-check.js +1 -1
- package/dist/components/calendar-info.js +1 -1
- package/dist/components/calendar-patterns.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/checkbox-component2.js +1 -1
- package/dist/components/checkmark-circle.js +1 -1
- package/dist/components/checkmark.js +1 -1
- package/dist/components/chevron.js +1 -1
- package/dist/components/clock.js +1 -1
- package/dist/components/close.js +1 -1
- package/dist/components/constants.js +1 -1
- package/dist/components/copy.js +1 -1
- package/dist/components/delete.js +1 -1
- package/dist/components/document-refresh-icon.js +1 -1
- package/dist/components/dragable.js +1 -1
- package/dist/components/edit.js +1 -1
- package/dist/components/envelope-fill.js +1 -1
- package/dist/components/envelope.js +1 -1
- package/dist/components/eye.js +1 -1
- package/dist/components/feedback-icon2.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/folder-icon.js +1 -1
- package/dist/components/forward-icon.js +1 -1
- package/dist/components/globe.js +1 -1
- package/dist/components/google-logo.js +1 -1
- package/dist/components/google-meet.js +1 -1
- package/dist/components/inbox-icon.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/input-color-picker.js +2 -2
- package/dist/components/input-component2.js +1 -1
- package/dist/components/input-dropdown2.js +1 -1
- package/dist/components/input-image-url2.js +6 -2
- package/dist/components/input-image-url2.js.map +1 -1
- package/dist/components/italic-icon.js +1 -1
- package/dist/components/loading.js +1 -1
- package/dist/components/location-off.js +1 -1
- package/dist/components/location.js +1 -1
- package/dist/components/microsof-teams.js +1 -1
- package/dist/components/microsoft-logo.js +1 -1
- package/dist/components/multi-select-dropdown2.js +1 -1
- package/dist/components/nylas-additional-participants2.js +16 -20
- package/dist/components/nylas-additional-participants2.js.map +1 -1
- package/dist/components/nylas-availability-picker2.js +5 -4
- package/dist/components/nylas-availability-picker2.js.map +1 -1
- package/dist/components/nylas-booked-event-card2.js +8 -8
- package/dist/components/nylas-booked-event-card2.js.map +1 -1
- package/dist/components/nylas-booking-calendar-picker2.js.map +1 -1
- package/dist/components/nylas-booking-confirmation-redirect2.js +1 -1
- package/dist/components/nylas-booking-confirmation-redirect2.js.map +1 -1
- package/dist/components/nylas-booking-confirmation-type2.js +2 -2
- package/dist/components/nylas-booking-confirmation-type2.js.map +1 -1
- package/dist/components/nylas-booking-form-config2.js +1 -1
- package/dist/components/nylas-booking-form-config2.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +6 -5
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-buffer-time2.js.map +1 -1
- package/dist/components/nylas-calendar-picker2.js +4 -4
- package/dist/components/nylas-calendar-picker2.js.map +1 -1
- package/dist/components/nylas-cancel-booking-form2.js +4 -4
- package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancellation-policy2.js +1 -1
- package/dist/components/nylas-cancellation-policy2.js.map +1 -1
- package/dist/components/nylas-cancelled-event-card2.js +4 -4
- package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
- package/dist/components/nylas-confirmation-email2.js +16 -6
- package/dist/components/nylas-confirmation-email2.js.map +1 -1
- package/dist/components/nylas-confirmed-event-card2.js +3 -3
- package/dist/components/nylas-confirmed-event-card2.js.map +1 -1
- package/dist/components/nylas-connected-calendars2.js +6 -2
- package/dist/components/nylas-connected-calendars2.js.map +1 -1
- package/dist/components/nylas-custom-booking-flow2.js +1 -1
- package/dist/components/nylas-custom-booking-flow2.js.map +1 -1
- package/dist/components/nylas-custom-event-slug2.js +1 -0
- package/dist/components/nylas-custom-event-slug2.js.map +1 -1
- package/dist/components/nylas-customize-booking-settings2.js +4 -4
- package/dist/components/nylas-customize-booking-settings2.js.map +1 -1
- package/dist/components/nylas-date-picker2.js +4 -4
- package/dist/components/nylas-date-picker2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +196 -167
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-event-description2.js +1 -1
- package/dist/components/nylas-event-description2.js.map +1 -1
- package/dist/components/nylas-event-duration2.js +5 -3
- package/dist/components/nylas-event-duration2.js.map +1 -1
- package/dist/components/nylas-event-info2.js +1 -1
- package/dist/components/nylas-event-limits2.js +1 -1
- package/dist/components/nylas-event-location2.js +39 -15
- package/dist/components/nylas-event-location2.js.map +1 -1
- package/dist/components/nylas-event-title2.js +10 -5
- package/dist/components/nylas-event-title2.js.map +1 -1
- package/dist/components/nylas-feedback-form2.js +2 -2
- package/dist/components/nylas-form-card2.js +1 -1
- package/dist/components/nylas-if-state.js +1 -1
- package/dist/components/nylas-limit-future-bookings2.js +1 -1
- package/dist/components/nylas-limit-future-bookings2.js.map +1 -1
- package/dist/components/nylas-list-configurations2.js +2 -2
- package/dist/components/nylas-list-configurations2.js.map +1 -1
- package/dist/components/nylas-locale-switch2.js +2 -2
- package/dist/components/nylas-locale-switch2.js.map +1 -1
- package/dist/components/nylas-login.js +1 -1
- package/dist/components/nylas-logo2.js +1 -1
- package/dist/components/nylas-min-booking-notice2.js +3 -3
- package/dist/components/nylas-min-booking-notice2.js.map +1 -1
- package/dist/components/nylas-min-cancellation-notice2.js +3 -3
- package/dist/components/nylas-min-cancellation-notice2.js.map +1 -1
- package/dist/components/nylas-notification2.js +1 -1
- package/dist/components/nylas-organizer-confirmation-card2.js +3 -3
- package/dist/components/nylas-organizer-confirmation-card2.js.map +1 -1
- package/dist/components/nylas-page-name2.js +3 -3
- package/dist/components/nylas-page-name2.js.map +1 -1
- package/dist/components/nylas-page-styling2.js +3 -3
- package/dist/components/nylas-page-styling2.js.map +1 -1
- package/dist/components/nylas-participant-booking-calendars2.js +6 -2
- package/dist/components/nylas-participant-booking-calendars2.js.map +1 -1
- package/dist/components/nylas-participants-custom-availability2.js +3 -2
- package/dist/components/nylas-participants-custom-availability2.js.map +1 -1
- package/dist/components/nylas-provider.js +1 -1
- package/dist/components/nylas-reminder-emails.js +1 -302
- package/dist/components/nylas-reminder-emails.js.map +1 -1
- package/dist/{esm/nylas-reminder-emails.entry.js → components/nylas-reminder-emails2.js} +123 -21
- package/dist/components/nylas-reminder-emails2.js.map +1 -0
- package/dist/components/nylas-reminder-time2.js +2 -2
- package/dist/components/nylas-scheduler-editor.js +179 -161
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling-method2.js +4 -6
- package/dist/components/nylas-scheduling-method2.js.map +1 -1
- package/dist/components/nylas-scheduling.js +22 -8
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/nylas-selected-event-card2.js +3 -3
- package/dist/components/nylas-selected-event-card2.js.map +1 -1
- package/dist/components/nylas-time-window-picker2.js +1 -1
- package/dist/components/nylas-timeslot-interval2.js +4 -8
- package/dist/components/nylas-timeslot-interval2.js.map +1 -1
- package/dist/components/nylas-timeslot-picker2.js +7 -7
- package/dist/components/nylas-timeslot-picker2.js.map +1 -1
- package/dist/components/paintbrush-fill.js +1 -1
- package/dist/components/paintbrush.js +1 -1
- package/dist/components/people.js +1 -1
- package/dist/components/person-clipboard.js +1 -1
- package/dist/components/person.js +1 -1
- package/dist/components/play-icon.js +1 -1
- package/dist/components/plus.js +1 -1
- package/dist/components/radio-button-group2.js +1 -1
- package/dist/components/refresh-icon.js +1 -1
- package/dist/components/reply-all-icon.js +1 -1
- package/dist/components/reply-icon.js +1 -1
- package/dist/components/scheduler-store.js +12 -3
- package/dist/components/scheduler-store.js.map +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/select-dropdown2.js +1 -1
- package/dist/components/sent-icon.js +1 -1
- package/dist/components/spam-icon.js +1 -1
- package/dist/components/star-icon.js +1 -1
- package/dist/components/stop-icon.js +1 -1
- package/dist/components/textarea-component2.js +1 -1
- package/dist/components/time-period-selector2.js +1 -1
- package/dist/components/toggle-switch2.js +1 -1
- package/dist/components/toolitp-component.js +1 -1
- package/dist/components/translate.js +1 -1
- package/dist/components/trash-fill-icon.js +1 -1
- package/dist/components/trash.js +1 -1
- package/dist/components/underline-icon.js +1 -1
- package/dist/components/warning.js +1 -1
- package/dist/components/zoom.js +1 -1
- package/dist/esm/add-circle-icon_2.entry.js +2 -2
- package/dist/esm/archive-icon.entry.js +1 -1
- package/dist/esm/arrow-icon.entry.js +1 -1
- package/dist/esm/bold-icon.entry.js +1 -1
- package/dist/esm/button-component_2.entry.js +2 -2
- package/dist/esm/{calendar-agenda-fill-icon_51.entry.js → calendar-agenda-fill-icon_54.entry.js} +735 -328
- package/dist/esm/calendar-agenda-fill-icon_54.entry.js.map +1 -0
- package/dist/esm/calendar-cancel-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/checkbox-component_2.entry.js +2 -2
- package/dist/esm/chevron-icon_3.entry.js +3 -3
- package/dist/esm/clock-icon_4.entry.js +4 -4
- package/dist/esm/{constants-94520f89.js → constants-c549b12b.js} +2 -2
- package/dist/esm/{constants-94520f89.js.map → constants-c549b12b.js.map} +1 -1
- package/dist/esm/copy-icon.entry.js +1 -1
- package/dist/esm/delete-icon.entry.js +1 -1
- package/dist/esm/document-refresh-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/globe-icon.entry.js +1 -1
- package/dist/esm/google-logo-icon_4.entry.js +35 -24
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
- package/dist/esm/inbox-icon.entry.js +1 -1
- package/dist/esm/index-7cb0dd3d.js +2 -10
- package/dist/esm/info-icon_2.entry.js +2 -2
- package/dist/esm/input-color-picker.entry.js +2 -2
- package/dist/esm/input-component.entry.js +1 -1
- package/dist/esm/input-dropdown.entry.js +1 -1
- package/dist/esm/italic-icon.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/multi-select-dropdown.entry.js +1 -1
- package/dist/esm/nylas-booked-event-card_12.entry.js +36 -35
- package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
- package/dist/esm/nylas-form-card.entry.js +1 -1
- package/dist/esm/nylas-if-state.entry.js +1 -1
- package/dist/esm/nylas-login.entry.js +1 -1
- package/dist/esm/nylas-provider.entry.js +2 -2
- package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
- package/dist/esm/nylas-scheduling.entry.js +23 -10
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-time-window-picker.entry.js +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/person-icon.entry.js +1 -1
- package/dist/esm/play-icon.entry.js +1 -1
- package/dist/esm/refresh-icon.entry.js +1 -1
- package/dist/esm/reply-all-icon.entry.js +1 -1
- package/dist/esm/reply-icon.entry.js +1 -1
- package/dist/esm/{scheduler-store-24e5fb65.js → scheduler-store-d4784b24.js} +13 -4
- package/dist/esm/scheduler-store-d4784b24.js.map +1 -0
- 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/textarea-component.entry.js +1 -1
- package/dist/esm/time-period-selector.entry.js +1 -1
- package/dist/esm/translate-icon.entry.js +1 -1
- package/dist/esm/trash-fill-icon.entry.js +1 -1
- package/dist/esm/underline-icon.entry.js +1 -1
- package/dist/esm/warning-icon.entry.js +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
- package/dist/nylas-web-elements/{p-14493c1f.entry.js → p-04d397d3.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-b6e4de5b.js → p-08a590fe.js} +2 -2
- package/dist/nylas-web-elements/{p-7943a9f3.entry.js → p-108bd821.entry.js} +2 -2
- package/dist/nylas-web-elements/p-12d690b8.js +2 -0
- package/dist/nylas-web-elements/p-12d690b8.js.map +1 -0
- package/dist/nylas-web-elements/{p-d902a356.entry.js → p-1546bd61.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-651232a3.entry.js → p-1c25b695.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-caad44c4.entry.js → p-2c1432a2.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-21fb688e.entry.js → p-2f91359b.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-27074ad6.entry.js → p-3268077f.entry.js} +2 -2
- package/dist/nylas-web-elements/p-32bc7f60.entry.js +2 -0
- package/dist/nylas-web-elements/p-33800554.entry.js +2 -0
- package/dist/nylas-web-elements/p-3971e86b.entry.js +2 -0
- package/dist/nylas-web-elements/p-483f2fb4.entry.js +2 -0
- package/dist/nylas-web-elements/{p-8a082b24.entry.js → p-4e57a9ee.entry.js} +2 -2
- package/dist/nylas-web-elements/p-4fb91c8b.entry.js +2 -0
- package/dist/nylas-web-elements/{p-effd77ed.entry.js → p-525bd709.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-7d5b3918.entry.js → p-56834b7a.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-faeec15a.entry.js → p-5ed596d7.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-6fa4597b.entry.js → p-6089d6fa.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-39af67b7.entry.js → p-61ea19c2.entry.js} +2 -2
- package/dist/nylas-web-elements/p-713505c9.entry.js +2 -0
- package/dist/nylas-web-elements/{p-bd85bf92.entry.js → p-7140bca8.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-3f2f3b85.entry.js → p-762ae706.entry.js} +2 -2
- package/dist/nylas-web-elements/p-7919d41d.entry.js +2 -0
- package/dist/nylas-web-elements/p-7a1d51ab.entry.js +2 -0
- package/dist/nylas-web-elements/p-7a1d51ab.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-7bed0959.entry.js +2 -0
- package/dist/nylas-web-elements/p-7bed0959.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-27b52475.entry.js → p-7c20444b.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-d55f619c.entry.js → p-988eee6f.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-0519e48e.entry.js → p-9d8ffc7b.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-fbddb6fe.entry.js → p-9f009793.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-1e2ffdc6.entry.js → p-aa4b24ce.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-5973b208.entry.js → p-ac8386d1.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-062f6da2.entry.js → p-acfe4f6e.entry.js} +2 -2
- package/dist/nylas-web-elements/p-af2ab331.entry.js +2 -0
- package/dist/nylas-web-elements/{p-100c9ff7.entry.js → p-b110d5c1.entry.js} +2 -2
- package/dist/nylas-web-elements/p-bbf86b8c.entry.js +2 -0
- package/dist/nylas-web-elements/{p-e012eac3.entry.js → p-be938025.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-36792b8a.entry.js → p-cad17478.entry.js} +2 -2
- package/dist/nylas-web-elements/p-ce2c8e67.entry.js +2 -0
- package/dist/nylas-web-elements/{p-68320c97.entry.js → p-d1abdef7.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-8013d0a2.entry.js → p-dcdb47dd.entry.js} +2 -2
- package/dist/nylas-web-elements/p-df131a08.entry.js +8 -0
- package/dist/nylas-web-elements/p-df131a08.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-cc8f94f7.entry.js → p-e1cd1887.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-00d89615.entry.js → p-eb2d8167.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-9b62edf6.entry.js → p-ec302526.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-bbcf8659.entry.js → p-ec528a20.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-0e0c00cc.entry.js → p-eee29c7e.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-f62df769.entry.js → p-f2ae34c9.entry.js} +2 -2
- package/dist/nylas-web-elements/p-fc6ae4ec.entry.js +2 -0
- package/dist/nylas-web-elements/p-fc6ae4ec.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-fe34d0ee.entry.js +2 -0
- package/dist/nylas-web-elements/p-febf4adf.entry.js +2 -0
- package/dist/types/common/types.d.ts +3 -0
- package/dist/types/components/design-system/input-image-url/input-image-url.d.ts +4 -0
- package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts +2 -2
- package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +3 -4
- package/dist/types/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-date-picker/nylas-date-picker.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +5 -3
- package/dist/types/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.d.ts +2 -2
- package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +3 -3
- package/dist/types/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-calendar-picker/nylas-calendar-picker.d.ts +2 -2
- package/dist/types/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.d.ts +5 -1
- package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +2 -1
- package/dist/types/components/scheduler-editor/nylas-event-location/nylas-event-location.d.ts +2 -0
- package/dist/types/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-page-name/nylas-page-name.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-page-styling/nylas-page-styling.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.d.ts +1 -0
- package/dist/types/components/scheduler-editor/nylas-scheduling-method/nylas-scheduling-method.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.d.ts +0 -2
- package/dist/types/components.d.ts +265 -290
- package/dist/types/connector/shared/api/scheduler.d.ts +4 -4
- package/dist/types/types/index.d.ts +164 -32
- package/package.json +7 -5
- package/dist/cjs/calendar-agenda-fill-icon_51.cjs.entry.js.map +0 -1
- package/dist/cjs/nylas-reminder-emails.cjs.entry.js +0 -208
- package/dist/cjs/nylas-reminder-emails.cjs.entry.js.map +0 -1
- package/dist/cjs/nylas-reminder-time_2.cjs.entry.js +0 -175
- package/dist/cjs/nylas-reminder-time_2.cjs.entry.js.map +0 -1
- package/dist/cjs/scheduler-store-4489a68b.js.map +0 -1
- package/dist/esm/calendar-agenda-fill-icon_51.entry.js.map +0 -1
- package/dist/esm/nylas-reminder-emails.entry.js.map +0 -1
- package/dist/esm/nylas-reminder-time_2.entry.js +0 -170
- package/dist/esm/nylas-reminder-time_2.entry.js.map +0 -1
- package/dist/esm/scheduler-store-24e5fb65.js.map +0 -1
- package/dist/nylas-web-elements/p-06e44cfc.entry.js +0 -2
- package/dist/nylas-web-elements/p-06e44cfc.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-2653e311.entry.js +0 -2
- package/dist/nylas-web-elements/p-3ff76491.entry.js +0 -2
- package/dist/nylas-web-elements/p-3ff76491.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-51a66bf5.entry.js +0 -2
- package/dist/nylas-web-elements/p-5b237299.entry.js +0 -2
- package/dist/nylas-web-elements/p-63341f71.entry.js +0 -2
- package/dist/nylas-web-elements/p-6c833d5e.entry.js +0 -2
- package/dist/nylas-web-elements/p-6c833d5e.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-742d7c3c.entry.js +0 -2
- package/dist/nylas-web-elements/p-76fc639b.entry.js +0 -2
- package/dist/nylas-web-elements/p-781e954b.entry.js +0 -2
- package/dist/nylas-web-elements/p-7f56a139.entry.js +0 -2
- package/dist/nylas-web-elements/p-7f56a139.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-86194780.entry.js +0 -2
- package/dist/nylas-web-elements/p-86194780.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-96bcc255.entry.js +0 -2
- package/dist/nylas-web-elements/p-aeab587c.entry.js +0 -2
- package/dist/nylas-web-elements/p-c417fd2f.entry.js +0 -2
- package/dist/nylas-web-elements/p-ef3561ae.js +0 -2
- package/dist/nylas-web-elements/p-ef3561ae.js.map +0 -1
- package/dist/nylas-web-elements/p-fbe814b2.entry.js +0 -8
- package/dist/nylas-web-elements/p-fbe814b2.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-fdc60ce2.entry.js +0 -2
- package/dist/nylas-web-elements/p-fecf68ef.entry.js +0 -2
- /package/dist/nylas-web-elements/{p-14493c1f.entry.js.map → p-04d397d3.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-b6e4de5b.js.map → p-08a590fe.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-7943a9f3.entry.js.map → p-108bd821.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d902a356.entry.js.map → p-1546bd61.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-651232a3.entry.js.map → p-1c25b695.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-caad44c4.entry.js.map → p-2c1432a2.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-21fb688e.entry.js.map → p-2f91359b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-27074ad6.entry.js.map → p-3268077f.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-aeab587c.entry.js.map → p-32bc7f60.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-76fc639b.entry.js.map → p-33800554.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-781e954b.entry.js.map → p-3971e86b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-63341f71.entry.js.map → p-483f2fb4.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-8a082b24.entry.js.map → p-4e57a9ee.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-5b237299.entry.js.map → p-4fb91c8b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-effd77ed.entry.js.map → p-525bd709.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-7d5b3918.entry.js.map → p-56834b7a.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-faeec15a.entry.js.map → p-5ed596d7.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-6fa4597b.entry.js.map → p-6089d6fa.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-39af67b7.entry.js.map → p-61ea19c2.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-fdc60ce2.entry.js.map → p-713505c9.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-bd85bf92.entry.js.map → p-7140bca8.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-3f2f3b85.entry.js.map → p-762ae706.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-c417fd2f.entry.js.map → p-7919d41d.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-27b52475.entry.js.map → p-7c20444b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d55f619c.entry.js.map → p-988eee6f.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-0519e48e.entry.js.map → p-9d8ffc7b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-fbddb6fe.entry.js.map → p-9f009793.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-1e2ffdc6.entry.js.map → p-aa4b24ce.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-5973b208.entry.js.map → p-ac8386d1.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-062f6da2.entry.js.map → p-acfe4f6e.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-742d7c3c.entry.js.map → p-af2ab331.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-100c9ff7.entry.js.map → p-b110d5c1.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-fecf68ef.entry.js.map → p-bbf86b8c.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-e012eac3.entry.js.map → p-be938025.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-36792b8a.entry.js.map → p-cad17478.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-2653e311.entry.js.map → p-ce2c8e67.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-68320c97.entry.js.map → p-d1abdef7.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-8013d0a2.entry.js.map → p-dcdb47dd.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-cc8f94f7.entry.js.map → p-e1cd1887.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-00d89615.entry.js.map → p-eb2d8167.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-9b62edf6.entry.js.map → p-ec302526.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-bbcf8659.entry.js.map → p-ec528a20.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-0e0c00cc.entry.js.map → p-eee29c7e.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-f62df769.entry.js.map → p-f2ae34c9.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-96bcc255.entry.js.map → p-fe34d0ee.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-51a66bf5.entry.js.map → p-febf4adf.entry.js.map} +0 -0
|
@@ -7,8 +7,8 @@ const registerComponent = require('./register-component-36aab1cf.js');
|
|
|
7
7
|
const utils = require('./utils-5ebd7cf8.js');
|
|
8
8
|
const constants = require('./constants-b28483d0.js');
|
|
9
9
|
|
|
10
|
-
const iconCss$
|
|
11
|
-
const CalendarAgendaFillIconStyle0 = iconCss$
|
|
10
|
+
const iconCss$j = ".sc-calendar-agenda-fill-icon-h{display:flex}";
|
|
11
|
+
const CalendarAgendaFillIconStyle0 = iconCss$j;
|
|
12
12
|
|
|
13
13
|
const CalendarAgendaFillIcon = class {
|
|
14
14
|
constructor(hostRef) {
|
|
@@ -17,13 +17,13 @@ const CalendarAgendaFillIcon = class {
|
|
|
17
17
|
this.height = '20';
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index$1.h("svg", { key: '
|
|
20
|
+
return (index$1.h("svg", { key: 'a275ba280fae8412c15b1fd1034e488be4cb2d27', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: 'a3092e55e03efede059223a3a7278761a00c07a5', d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM11 3.5C11 3.25454 10.8231 3.05039 10.5899 3.00806L10.5 3H3.5L3.41012 3.00806C3.17688 3.05039 3 3.25454 3 3.5C3 3.74546 3.17688 3.94961 3.41012 3.99194L3.5 4H10.5L10.5899 3.99194C10.8231 3.94961 11 3.74546 11 3.5ZM11 7C11 6.75454 10.8231 6.55039 10.5899 6.50806L10.5 6.5H3.5L3.41012 6.50806C3.17688 6.55039 3 6.75454 3 7C3 7.24546 3.17688 7.44961 3.41012 7.49194L3.5 7.5H10.5L10.5899 7.49194C10.8231 7.44961 11 7.24546 11 7ZM11 10.5C11 10.2545 10.8231 10.0504 10.5899 10.0081L10.5 10H3.5L3.41012 10.0081C3.17688 10.0504 3 10.2545 3 10.5C3 10.7455 3.17688 10.9496 3.41012 10.9919L3.5 11H10.5L10.5899 10.9919C10.8231 10.9496 11 10.7455 11 10.5Z", fill: "currentColor" })));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
CalendarAgendaFillIcon.style = CalendarAgendaFillIconStyle0;
|
|
24
24
|
|
|
25
|
-
const iconCss$
|
|
26
|
-
const CalendarAgendaIconStyle0 = iconCss$
|
|
25
|
+
const iconCss$i = ".sc-calendar-agenda-icon-h{display:flex}";
|
|
26
|
+
const CalendarAgendaIconStyle0 = iconCss$i;
|
|
27
27
|
|
|
28
28
|
const CalendarAgendaIcon = class {
|
|
29
29
|
constructor(hostRef) {
|
|
@@ -32,13 +32,13 @@ const CalendarAgendaIcon = class {
|
|
|
32
32
|
this.height = '20';
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index$1.h("svg", { key: '
|
|
35
|
+
return (index$1.h("svg", { key: '9e7bcafa585dc17975a1793711df835ca7d8d9c1', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '184e8215d1dc6a66b9041cacd4687a446b72a6ec', d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM13 11.5V2.5C13 1.67157 12.3284 1 11.5 1H2.5C1.67157 1 1 1.67157 1 2.5V11.5C1 12.3284 1.67157 13 2.5 13H11.5C12.3284 13 13 12.3284 13 11.5ZM11 3.5C11 3.74546 10.8231 3.94961 10.5899 3.99194L10.5 4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.25454 3.17688 3.05039 3.41012 3.00806L3.5 3H10.5C10.7761 3 11 3.22386 11 3.5ZM11 7C11 7.24546 10.8231 7.44961 10.5899 7.49194L10.5 7.5H3.5C3.22386 7.5 3 7.27614 3 7C3 6.75454 3.17688 6.55039 3.41012 6.50806L3.5 6.5H10.5C10.7761 6.5 11 6.72386 11 7ZM11 10.5C11 10.7455 10.8231 10.9496 10.5899 10.9919L10.5 11H3.5C3.22386 11 3 10.7761 3 10.5C3 10.2545 3.17688 10.0504 3.41012 10.0081L3.5 10H10.5C10.7761 10 11 10.2239 11 10.5Z", fill: "currentColor" })));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
CalendarAgendaIcon.style = CalendarAgendaIconStyle0;
|
|
39
39
|
|
|
40
|
-
const iconCss$
|
|
41
|
-
const CalendarInfoIconStyle0 = iconCss$
|
|
40
|
+
const iconCss$h = ".sc-calendar-info-icon-h{display:flex}";
|
|
41
|
+
const CalendarInfoIconStyle0 = iconCss$h;
|
|
42
42
|
|
|
43
43
|
const CalendarInfoIcon = class {
|
|
44
44
|
constructor(hostRef) {
|
|
@@ -47,13 +47,13 @@ const CalendarInfoIcon = class {
|
|
|
47
47
|
this.height = '20';
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (index$1.h("svg", { key: '
|
|
50
|
+
return (index$1.h("svg", { key: '7ff2928e9a5dd1d9f96b869c4f8f45810117d55f', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '2c83ca56082a787a853d65c02ed6adf6c6d7a44c', d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" })));
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
CalendarInfoIcon.style = CalendarInfoIconStyle0;
|
|
54
54
|
|
|
55
|
-
const iconCss$
|
|
56
|
-
const CalendarPatternsIconStyle0 = iconCss$
|
|
55
|
+
const iconCss$g = ".sc-calendar-patterns-icon-h{display:flex}";
|
|
56
|
+
const CalendarPatternsIconStyle0 = iconCss$g;
|
|
57
57
|
|
|
58
58
|
const CalendarPatternsIcon = class {
|
|
59
59
|
constructor(hostRef) {
|
|
@@ -62,13 +62,13 @@ const CalendarPatternsIcon = class {
|
|
|
62
62
|
this.height = '20';
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (index$1.h("svg", { key: '
|
|
65
|
+
return (index$1.h("svg", { key: '8d830ffc53fbe073dddec56cf7819f1738539f22', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '3752fd1b7b498f1e2aee01aa5b3621a577f7a3b8', d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" })));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
CalendarPatternsIcon.style = CalendarPatternsIconStyle0;
|
|
69
69
|
|
|
70
|
-
const iconCss$
|
|
71
|
-
const CheckmarkIconStyle0 = iconCss$
|
|
70
|
+
const iconCss$f = ".sc-checkmark-icon-h{display:flex}";
|
|
71
|
+
const CheckmarkIconStyle0 = iconCss$f;
|
|
72
72
|
|
|
73
73
|
const CheckmarkIcon = class {
|
|
74
74
|
constructor(hostRef) {
|
|
@@ -77,13 +77,13 @@ const CheckmarkIcon = class {
|
|
|
77
77
|
this.height = '14';
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (index$1.h("svg", { key: '
|
|
80
|
+
return (index$1.h("svg", { key: '49ad9466fa210919af89c80d546cf2a846b84d49', width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '08d62d352782e9847494ebc8daad7e1300ebaad9', d: "M1.53033 7.46967C1.23744 7.17678 0.762563 7.17678 0.46967 7.46967C0.176777 7.76256 0.176777 8.23744 0.46967 8.53033L4.96967 13.0303C5.26256 13.3232 5.73744 13.3232 6.03033 13.0303L17.0303 2.03033C17.3232 1.73744 17.3232 1.26256 17.0303 0.96967C16.7374 0.676777 16.2626 0.676777 15.9697 0.96967L5.5 11.4393L1.53033 7.46967Z", fill: "#293056" })));
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
CheckmarkIcon.style = CheckmarkIconStyle0;
|
|
84
84
|
|
|
85
|
-
const iconCss$
|
|
86
|
-
const DragableIconStyle0 = iconCss$
|
|
85
|
+
const iconCss$e = ".sc-dragable-icon-h{display:flex}";
|
|
86
|
+
const DragableIconStyle0 = iconCss$e;
|
|
87
87
|
|
|
88
88
|
const DragableIcon = class {
|
|
89
89
|
constructor(hostRef) {
|
|
@@ -92,13 +92,13 @@ const DragableIcon = class {
|
|
|
92
92
|
this.height = '20';
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return (index$1.h("svg", { key: '
|
|
95
|
+
return (index$1.h("svg", { key: 'eafe936e1e9cc4c5b877fdf8329f0092055d3b12', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '23d5d793affa4fe72001dcbacf9adb624c8ebe87', d: "M15.5 18C16.3284 18 17 18.6716 17 19.5C17 20.3284 16.3284 21 15.5 21C14.6716 21 14 20.3284 14 19.5C14 18.6716 14.6716 18 15.5 18ZM8.5 18C9.32843 18 10 18.6716 10 19.5C10 20.3284 9.32843 21 8.5 21C7.67157 21 7 20.3284 7 19.5C7 18.6716 7.67157 18 8.5 18ZM15.5 11C16.3284 11 17 11.6716 17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11ZM8.5 11C9.32843 11 10 11.6716 10 12.5C10 13.3284 9.32843 14 8.5 14C7.67157 14 7 13.3284 7 12.5C7 11.6716 7.67157 11 8.5 11ZM15.5 4C16.3284 4 17 4.67157 17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4ZM8.5 4C9.32843 4 10 4.67157 10 5.5C10 6.32843 9.32843 7 8.5 7C7.67157 7 7 6.32843 7 5.5C7 4.67157 7.67157 4 8.5 4Z", fill: "currentColor" })));
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
DragableIcon.style = DragableIconStyle0;
|
|
99
99
|
|
|
100
|
-
const iconCss$
|
|
101
|
-
const EnvelopeFillIconStyle0 = iconCss$
|
|
100
|
+
const iconCss$d = ".sc-envelope-fill-icon-h{display:flex}";
|
|
101
|
+
const EnvelopeFillIconStyle0 = iconCss$d;
|
|
102
102
|
|
|
103
103
|
const EnvelopeFillIcon = class {
|
|
104
104
|
constructor(hostRef) {
|
|
@@ -107,13 +107,13 @@ const EnvelopeFillIcon = class {
|
|
|
107
107
|
this.height = '13';
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (index$1.h("svg", { key: '
|
|
110
|
+
return (index$1.h("svg", { key: 'deb9b906ee52d7698b1b2acd3edec06c8cb4a2e1', width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '3bd3caa47b4ecb0c5347dc8c71ee33ff57653913', d: "M16.0001 3.373V10.5C16.0001 11.8807 14.8808 13 13.5001 13H2.50008C1.11937 13 0 11.8807 0 10.5V3.373L7.74657 7.93097C7.90304 8.02301 8.09711 8.02301 8.25359 7.93097L16.0001 3.373ZM13.5001 0C14.7871 0 15.847 0.972604 15.9849 2.22293L8.00008 6.91991L0.0152595 2.22293C0.153116 0.972604 1.21302 0 2.50008 0H13.5001Z", fill: "currentColor" })));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
EnvelopeFillIcon.style = EnvelopeFillIconStyle0;
|
|
114
114
|
|
|
115
|
-
const iconCss$
|
|
116
|
-
const EnvelopeIconStyle0 = iconCss$
|
|
115
|
+
const iconCss$c = ".sc-envelope-icon-h{display:flex}";
|
|
116
|
+
const EnvelopeIconStyle0 = iconCss$c;
|
|
117
117
|
|
|
118
118
|
const EnvelopeIcon = class {
|
|
119
119
|
constructor(hostRef) {
|
|
@@ -122,13 +122,13 @@ const EnvelopeIcon = class {
|
|
|
122
122
|
this.height = '13';
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
|
-
return (index$1.h("svg", { key: '
|
|
125
|
+
return (index$1.h("svg", { key: '73122f7a719952a557845096eaf5d47960f1f684', width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '02a7f44ed198e422ccf2aff73400f8b6327f5cf7', d: "M13.5 0C14.8807 0 16 1.11929 16 2.5V10.5C16 11.8807 14.8807 13 13.5 13H2.5C1.11929 13 0 11.8807 0 10.5V2.5C0 1.11929 1.11929 0 2.5 0H13.5ZM15 3.961L8.25351 7.93097C8.12311 8.00767 7.96661 8.02045 7.82751 7.96932L7.74649 7.93097L1 3.963V10.5C1 11.3284 1.67157 12 2.5 12H13.5C14.3284 12 15 11.3284 15 10.5V3.961ZM13.5 1H2.5C1.67157 1 1 1.67157 1 2.5V2.802L8 6.91991L15 2.801V2.5C15 1.67157 14.3284 1 13.5 1Z", fill: "currentColor" })));
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
EnvelopeIcon.style = EnvelopeIconStyle0;
|
|
129
129
|
|
|
130
|
-
const iconCss$
|
|
131
|
-
const EyeIconStyle0 = iconCss$
|
|
130
|
+
const iconCss$b = ".sc-eye-icon-h{display:flex}";
|
|
131
|
+
const EyeIconStyle0 = iconCss$b;
|
|
132
132
|
|
|
133
133
|
const EyeIcon = class {
|
|
134
134
|
constructor(hostRef) {
|
|
@@ -137,13 +137,13 @@ const EyeIcon = class {
|
|
|
137
137
|
this.height = '10';
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
|
-
return (index$1.h("svg", { key: '
|
|
140
|
+
return (index$1.h("svg", { key: 'b6e4ef2a9e507d094def976df8d6f61e419881d8', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '2c0fd33d221150b5da2405e40574abb4208999d1', d: "M1.75909 6.60214C2.44254 3.32689 5.29437 1 8.50002 1C11.7057 1 14.5574 3.32688 15.2409 6.60215C15.2974 6.87246 15.5622 7.04587 15.8325 6.98946C16.1029 6.93304 16.2763 6.66817 16.2199 6.39785C15.4425 2.67312 12.1934 0 8.50002 0C4.8066 0 1.55742 2.67311 0.780175 6.39786C0.723767 6.66818 0.897177 6.93305 1.1675 6.98946C1.43782 7.04587 1.70268 6.87246 1.75909 6.60214ZM8.5 3C6.567 3 5 4.567 5 6.5C5 8.433 6.567 10 8.5 10C10.433 10 12 8.433 12 6.5C12 4.567 10.433 3 8.5 3ZM6 6.5C6 5.11929 7.11929 4 8.5 4C9.88071 4 11 5.11929 11 6.5C11 7.88071 9.88071 9 8.5 9C7.11929 9 6 7.88071 6 6.5Z", fill: "currentColor" })));
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
EyeIcon.style = EyeIconStyle0;
|
|
144
144
|
|
|
145
|
-
const iconCss$
|
|
146
|
-
const FeedbackIconStyle0 = iconCss$
|
|
145
|
+
const iconCss$a = ".sc-feedback-icon-h{display:flex}";
|
|
146
|
+
const FeedbackIconStyle0 = iconCss$a;
|
|
147
147
|
|
|
148
148
|
const FeedbackIcon = class {
|
|
149
149
|
constructor(hostRef) {
|
|
@@ -152,13 +152,13 @@ const FeedbackIcon = class {
|
|
|
152
152
|
this.height = '14';
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
|
-
return (index$1.h("svg", { key: '
|
|
155
|
+
return (index$1.h("svg", { key: 'fc5d4aa6d299768c11f13c54218eaf28a45c97df', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '457d0f4155d6da655950e8fb1d3c74374b053782', d: "M0.5 8.875C0.5 8.875 1.125 8.25 3 8.25C4.875 8.25 6.125 9.5 8 9.5C9.875 9.5 10.5 8.875 10.5 8.875V1.375C10.5 1.375 9.875 2 8 2C6.125 2 4.875 0.75 3 0.75C1.125 0.75 0.5 1.375 0.5 1.375V8.875ZM0.5 8.875V13.25", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
FeedbackIcon.style = FeedbackIconStyle0;
|
|
159
159
|
|
|
160
|
-
const iconCss$
|
|
161
|
-
const FlowIconStyle0 = iconCss$
|
|
160
|
+
const iconCss$9 = ".sc-flow-icon-h{display:flex}";
|
|
161
|
+
const FlowIconStyle0 = iconCss$9;
|
|
162
162
|
|
|
163
163
|
const FlowIcon = class {
|
|
164
164
|
constructor(hostRef) {
|
|
@@ -167,13 +167,13 @@ const FlowIcon = class {
|
|
|
167
167
|
this.height = '12';
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (index$1.h("svg", { key: '
|
|
170
|
+
return (index$1.h("svg", { key: 'c6782480f25c3598e585303021c510ec90f8de26', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '76a3d0ff8fccddb49969623ab60b1ae2c9d2d0e2', d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" })));
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
FlowIcon.style = FlowIconStyle0;
|
|
174
174
|
|
|
175
|
-
const iconCss$
|
|
176
|
-
const GoogleMeetIconStyle0 = iconCss$
|
|
175
|
+
const iconCss$8 = ".sc-google-meet-icon-h{display:flex}";
|
|
176
|
+
const GoogleMeetIconStyle0 = iconCss$8;
|
|
177
177
|
|
|
178
178
|
const GoogleMeetIcon$1 = class {
|
|
179
179
|
constructor(hostRef) {
|
|
@@ -182,7 +182,7 @@ const GoogleMeetIcon$1 = class {
|
|
|
182
182
|
this.height = '20';
|
|
183
183
|
}
|
|
184
184
|
render() {
|
|
185
|
-
return (index$1.h("svg", { key: '
|
|
185
|
+
return (index$1.h("svg", { key: 'b68e005c64b1deb85367e52afa53a3583420d6fc', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("g", { key: 'c107fef0d62794b094d8096789b20ef66ad2f66d', "clip-path": "url(#clip0_22_6251)" }, index$1.h("path", { key: 'f7ddbd7ef73ae7addaaa81a42d419c8e04e31341', d: "M11.3145 10.1036L13.2642 12.3321L15.8859 14.0076L16.343 10.1173L15.8859 6.31384L13.2139 7.78584L11.3145 10.1036Z", fill: "#00832D" }), index$1.h("path", { key: '678ee765afd11161ed9f7fe60015536077e708dc', d: "M0 13.6464V16.9607C0 17.7184 0.613714 18.3321 1.37143 18.3321H4.68571L5.37143 15.827L4.68571 13.6464L2.41143 12.9607L0 13.6464Z", fill: "#0066DA" }), index$1.h("path", { key: '5329acfae94e546cc21a4bc4803a584d41f4f644', d: "M4.68571 1.875L0 6.56071L2.41143 7.24643L4.68571 6.56071L5.36 4.40986L4.68571 1.875Z", fill: "#E94235" }), index$1.h("path", { key: '4441dc496cbe7317883740d0aa3469261bd7330f', d: "M4.68571 6.56067H0V13.6464H4.68571V6.56067Z", fill: "#2684FC" }), index$1.h("path", { key: '6cd237dedd6d0e9e98905a56d7cc437ec5994cae', d: "M18.8798 3.85895L15.8855 6.31381V14.0075L18.8935 16.4738C19.3438 16.8258 20.0021 16.5047 20.0021 15.9321V4.38923C20.0021 3.80981 19.329 3.49209 18.8798 3.85895ZM11.3141 10.1035V13.6464H4.68555V18.3321H14.5141C15.2718 18.3321 15.8855 17.7184 15.8855 16.9607V14.0075L11.3141 10.1035Z", fill: "#00AC47" }), index$1.h("path", { key: '7d00a0a63e9825231cececa544a516eb0a567609', d: "M14.5141 1.875H4.68555V6.56071H11.3141V10.1036L15.8855 6.31614V3.24643C15.8855 2.48871 15.2718 1.875 14.5141 1.875Z", fill: "#FFBA00" })), index$1.h("defs", { key: '6efd6aace86d9b576642ef44fbb27c73f7b14057' }, index$1.h("clipPath", { key: '79f87c29c41836a9ee2319f66c86ec19e6d1d329', id: "clip0_22_6251" }, index$1.h("rect", { key: '6d872b34ea312c8378c0762f342ea55d7d1b87ae', width: "20", height: "20", fill: "white" })))));
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
GoogleMeetIcon$1.style = GoogleMeetIconStyle0;
|
|
@@ -190,7 +190,7 @@ GoogleMeetIcon$1.style = GoogleMeetIconStyle0;
|
|
|
190
190
|
const inputImageUrlCss = ":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;width:inherit}.logo-container{display:flex;flex-direction:row;gap:2rem}.logo-container .input-container{flex:1}.logo-container .input-container span.error-message{color:var(--nylas-error)}.logo-container .logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.logo-container .logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}";
|
|
191
191
|
const InputImageUrlStyle0 = inputImageUrlCss;
|
|
192
192
|
|
|
193
|
-
var __decorate$
|
|
193
|
+
var __decorate$w = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
194
194
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
195
195
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
196
196
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -200,13 +200,14 @@ var __decorate$u = (undefined && undefined.__decorate) || function (decorators,
|
|
|
200
200
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
201
201
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
202
202
|
};
|
|
203
|
-
var __metadata$
|
|
203
|
+
var __metadata$w = (undefined && undefined.__metadata) || function (k, v) {
|
|
204
204
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
205
205
|
return Reflect.metadata(k, v);
|
|
206
206
|
};
|
|
207
207
|
const InputImageUrl = class {
|
|
208
208
|
constructor(hostRef) {
|
|
209
209
|
index$1.registerInstance(this, hostRef);
|
|
210
|
+
this.nylasFormInputImageUrlInvalid = index$1.createEvent(this, "nylasFormInputImageUrlInvalid", 7);
|
|
210
211
|
this.valueChanged = index$1.createEvent(this, "valueChanged", 7);
|
|
211
212
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
212
213
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
@@ -275,12 +276,15 @@ const InputImageUrl = class {
|
|
|
275
276
|
this.valueChanged.emit({ value: this.currentImageUrl, name: this.name });
|
|
276
277
|
})
|
|
277
278
|
.catch(() => {
|
|
278
|
-
this.internals.setValidity({ customError: true }, 'Invalid image URL.');
|
|
279
279
|
this.errorMessage = 'Invalid image URL.';
|
|
280
|
+
this.nylasFormInputImageUrlInvalid.emit({ value: 'Invalid image URL.', name: this.name });
|
|
281
|
+
if (typeof this.internals.setValidity === 'function') {
|
|
282
|
+
this.internals.setValidity({ customError: true }, 'Invalid image URL.');
|
|
283
|
+
}
|
|
280
284
|
});
|
|
281
285
|
}
|
|
282
286
|
render() {
|
|
283
|
-
return (index$1.h(index$1.Host, { key: '
|
|
287
|
+
return (index$1.h(index$1.Host, { key: '27db94b782ae96518852a8486821a7f6544492a2' }, index$1.h("div", { key: '3923ce12503dd454e716e002b693b8e5f7e7e991', class: "logo-container" }, index$1.h("div", { key: '004c0dfb0e5ec721e356b4915fbdd75f84a67301', class: "input-container" }, index$1.h("input-component", { key: 'f06812996be4fd6384fffc2c095e62ba7067881d', name: this.name, id: this.name, type: "text", required: false, exportparts: "ic_input: iiu__logo-input-textfield", defaultValue: this.imageUrl ?? '' }), this.errorMessage && index$1.h("span", { class: "error-message" }, this.errorMessage)), this.currentImageUrl && !this.errorMessage && (index$1.h("div", { class: "logo" }, index$1.h("img", { src: this.currentImageUrl, alt: "Logo" }))))));
|
|
284
288
|
}
|
|
285
289
|
static get formAssociated() { return true; }
|
|
286
290
|
get host() { return index$1.getElement(this); }
|
|
@@ -288,7 +292,7 @@ const InputImageUrl = class {
|
|
|
288
292
|
"name": ["elementNameChangedHandler"]
|
|
289
293
|
}; }
|
|
290
294
|
};
|
|
291
|
-
__decorate$
|
|
295
|
+
__decorate$w([
|
|
292
296
|
registerComponent.RegisterComponent({
|
|
293
297
|
name: 'nylas-image-input',
|
|
294
298
|
eventToProps: {
|
|
@@ -300,14 +304,14 @@ __decorate$u([
|
|
|
300
304
|
},
|
|
301
305
|
},
|
|
302
306
|
}),
|
|
303
|
-
__metadata$
|
|
304
|
-
__metadata$
|
|
305
|
-
__metadata$
|
|
307
|
+
__metadata$w("design:type", Function),
|
|
308
|
+
__metadata$w("design:paramtypes", []),
|
|
309
|
+
__metadata$w("design:returntype", void 0)
|
|
306
310
|
], InputImageUrl.prototype, "render", null);
|
|
307
311
|
InputImageUrl.style = InputImageUrlStyle0;
|
|
308
312
|
|
|
309
|
-
const iconCss$
|
|
310
|
-
const LocationIconStyle0 = iconCss$
|
|
313
|
+
const iconCss$7 = ".sc-location-icon-h{display:flex}";
|
|
314
|
+
const LocationIconStyle0 = iconCss$7;
|
|
311
315
|
|
|
312
316
|
const LocationIcon = class {
|
|
313
317
|
constructor(hostRef) {
|
|
@@ -316,13 +320,13 @@ const LocationIcon = class {
|
|
|
316
320
|
this.height = '18';
|
|
317
321
|
}
|
|
318
322
|
render() {
|
|
319
|
-
return (index$1.h("svg", { key: '
|
|
323
|
+
return (index$1.h("svg", { key: '41c6752fb26ae7aa42d7bdfbadc16c2869e37d03', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '04912d24e06cbad0c6ece45f19827bbb62cfbcd0', d: "M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z", fill: "currentColor" })));
|
|
320
324
|
}
|
|
321
325
|
};
|
|
322
326
|
LocationIcon.style = LocationIconStyle0;
|
|
323
327
|
|
|
324
|
-
const iconCss$
|
|
325
|
-
const LocationOffIconStyle0 = iconCss$
|
|
328
|
+
const iconCss$6 = ".sc-location-off-icon-h{display:flex}";
|
|
329
|
+
const LocationOffIconStyle0 = iconCss$6;
|
|
326
330
|
|
|
327
331
|
const LocationOffIcon = class {
|
|
328
332
|
constructor(hostRef) {
|
|
@@ -331,13 +335,13 @@ const LocationOffIcon = class {
|
|
|
331
335
|
this.height = '18';
|
|
332
336
|
}
|
|
333
337
|
render() {
|
|
334
|
-
return (index$1.h("svg", { key: '
|
|
338
|
+
return (index$1.h("svg", { key: '63a6c285582208662ae8307e37621e96a22ce5f3', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: 'cf2dfb48d9a1e3b2d03aa86e37a79c702547bf8e', d: "M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z", fill: "currentColor" })));
|
|
335
339
|
}
|
|
336
340
|
};
|
|
337
341
|
LocationOffIcon.style = LocationOffIconStyle0;
|
|
338
342
|
|
|
339
|
-
const iconCss$
|
|
340
|
-
const MicrosoftTeamsIconStyle0 = iconCss$
|
|
343
|
+
const iconCss$5 = ".sc-microsoft-teams-icon-h{display:flex}";
|
|
344
|
+
const MicrosoftTeamsIconStyle0 = iconCss$5;
|
|
341
345
|
|
|
342
346
|
const GoogleMeetIcon = class {
|
|
343
347
|
constructor(hostRef) {
|
|
@@ -346,7 +350,7 @@ const GoogleMeetIcon = class {
|
|
|
346
350
|
this.height = '20';
|
|
347
351
|
}
|
|
348
352
|
render() {
|
|
349
|
-
return (index$1.h("svg", { key: '
|
|
353
|
+
return (index$1.h("svg", { key: '43015b1429d29b0ce4d72d6efa983cf972200345', width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("g", { key: '181d622e54dd6034328a3e2969d2c7435e0fe47c', "clip-path": "url(#clip0_22_6280)" }, index$1.h("path", { key: 'a8371f19ba59bcb5299c27aee9bd9031100f113a', d: "M13.7109 7.60168H18.8769C19.365 7.60168 19.7607 7.99734 19.7607 8.4854V13.191C19.7607 14.9848 18.3065 16.4389 16.5127 16.4389H16.4974C14.7036 16.4391 13.2493 14.9852 13.249 13.1914C13.249 13.1913 13.249 13.1911 13.249 13.191V8.06355C13.249 7.80847 13.4558 7.60168 13.7109 7.60168Z", fill: "#5059C9" }), index$1.h("path", { key: '6938ccf952810d13a1f56a2cef920dc580204df1', d: "M17.2024 6.67152C18.3583 6.67152 19.2954 5.73444 19.2954 4.5785C19.2954 3.42255 18.3583 2.48547 17.2024 2.48547C16.0465 2.48547 15.1094 3.42255 15.1094 4.5785C15.1094 5.73444 16.0465 6.67152 17.2024 6.67152Z", fill: "#5059C9" }), index$1.h("path", { key: '6183cc2e18656369c6b6b13eba20256a91ca13be', d: "M10.6912 6.67152C12.3609 6.67152 13.7145 5.31796 13.7145 3.64826C13.7145 1.97856 12.3609 0.625 10.6912 0.625C9.02153 0.625 7.66797 1.97856 7.66797 3.64826C7.66797 5.31796 9.02153 6.67152 10.6912 6.67152Z", fill: "#7B83EB" }), index$1.h("path", { key: '0f555b8edfa78d27a064e2b8c355e652105dcef8', d: "M14.7223 7.60168H6.19482C5.71257 7.61362 5.33108 8.01384 5.34227 8.49611V13.8631C5.27492 16.7571 7.56457 19.1588 10.4586 19.2296C13.3525 19.1588 15.6422 16.7571 15.5748 13.8631V8.49611C15.586 8.01384 15.2045 7.61362 14.7223 7.60168Z", fill: "#7B83EB" }), index$1.h("path", { key: 'f70b7f02b9afc002c0f54c5109aa37f9443b530b', opacity: "0.1", d: "M10.9234 7.60168V15.1226C10.9211 15.4675 10.7121 15.7773 10.3932 15.9087C10.2917 15.9516 10.1825 15.9738 10.0723 15.9738H5.75134C5.69088 15.8203 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.9234Z", fill: "black" }), index$1.h("path", { key: '099a90b1bcf8844977911db140a55b77e3d40dcb', opacity: "0.2", d: "M10.4583 7.60168V15.5877C10.4583 15.698 10.4362 15.8071 10.3932 15.9087C10.2619 16.2276 9.95205 16.4366 9.60717 16.4389H5.96995C5.89088 16.2854 5.81646 16.1319 5.75134 15.9738C5.68623 15.8156 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), index$1.h("path", { key: 'df916fd9bb304a77cc01949e5322d635aef30dd4', opacity: "0.2", d: "M10.4583 7.60168V14.6575C10.4548 15.1261 10.0758 15.5051 9.60716 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), index$1.h("path", { key: '48cfb8d7f434c8899770155eef6a72184f698942', opacity: "0.2", d: "M9.9932 7.60168V14.6575C9.98965 15.1261 9.61065 15.5051 9.14203 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H9.9932Z", fill: "black" }), index$1.h("path", { key: '7418c396c4b00ef2c7de4d5035c46be0cf51224f', opacity: "0.1", d: "M10.9241 5.1971V6.66222C10.845 6.66687 10.7706 6.67152 10.6915 6.67152C10.6124 6.67152 10.538 6.66687 10.4589 6.66222C10.3019 6.6518 10.1462 6.62689 9.99382 6.5878C9.05195 6.36475 8.27382 5.70421 7.90079 4.81106C7.83661 4.66107 7.78678 4.50533 7.75195 4.34595H10.0729C10.5422 4.34772 10.9223 4.72775 10.9241 5.1971Z", fill: "black" }), index$1.h("path", { key: '4611d18789afc14764c6355c36ff4639c07ef3ea', opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), index$1.h("path", { key: '6a0b1761698c016c3ed6f15020e17c592ae8fd85', opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), index$1.h("path", { key: '9ac985a013b79dcc739fd48069d7a54956b48a07', opacity: "0.2", d: "M9.99341 5.6622V6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.14225C9.6116 4.81282 9.99163 5.19286 9.99341 5.6622Z", fill: "black" }), index$1.h("path", { key: '22aa61c2fbca8ea8599efa657405e3258f9a3e25', d: "M0.613296 4.81104H9.14074C9.61159 4.81104 9.99329 5.19274 9.99329 5.66359V14.191C9.99329 14.6619 9.61158 15.0436 9.14074 15.0436H0.613296C0.14244 15.0436 -0.239258 14.6619 -0.239258 14.191V5.66359C-0.239258 5.19274 0.142449 4.81104 0.613296 4.81104Z", fill: "url(#paint0_linear_22_6280)" }), index$1.h("path", { key: 'cd2d8e75fa6bbb92b70006a507bd8447c5cbf7a7', d: "M7.12025 8.05659H5.4156V12.6985H4.32956V8.05659H2.63281V7.15613H7.12025V8.05659Z", fill: "white" })), index$1.h("defs", { key: '1b9552dc22885c57462fd2ae8b4c26dc2c79d92d' }, index$1.h("linearGradient", { key: 'ea753705cbbdb91c51fc04a167b6afd3f41d41d9', id: "paint0_linear_22_6280", x1: "1.53835", y1: "4.14486", x2: "8.2157", y2: "15.7098", gradientUnits: "userSpaceOnUse" }, index$1.h("stop", { key: '8390ae19866ffe03bd03d5b9b0a3a33fb2277e62', "stop-color": "#5A62C3" }), index$1.h("stop", { key: '80dd7a6a24bf2e42aac98ce40442501ab4e2395c', offset: "0.5", "stop-color": "#4D55BD" }), index$1.h("stop", { key: '59b6e034bc93cabef37a02ae9f4f16dfa957f8a7', offset: "1", "stop-color": "#3940AB" })), index$1.h("clipPath", { key: '124d7ccc8361f874fa3042ad4657900b9a3b3a4c', id: "clip0_22_6280" }, index$1.h("rect", { key: '2d92a7a7313625c8a8684630a25bb506bfb17a54', width: "20", height: "20", fill: "white" })))));
|
|
350
354
|
}
|
|
351
355
|
};
|
|
352
356
|
GoogleMeetIcon.style = MicrosoftTeamsIconStyle0;
|
|
@@ -354,7 +358,7 @@ GoogleMeetIcon.style = MicrosoftTeamsIconStyle0;
|
|
|
354
358
|
const nylasAdditionalParticipantsCss = ":host{display:block;margin:1rem;--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-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}";
|
|
355
359
|
const NylasAdditionalParticipantsStyle0 = nylasAdditionalParticipantsCss;
|
|
356
360
|
|
|
357
|
-
var __decorate$
|
|
361
|
+
var __decorate$v = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
358
362
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
359
363
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
360
364
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -364,7 +368,7 @@ var __decorate$t = (undefined && undefined.__decorate) || function (decorators,
|
|
|
364
368
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
365
369
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
366
370
|
};
|
|
367
|
-
var __metadata$
|
|
371
|
+
var __metadata$v = (undefined && undefined.__metadata) || function (k, v) {
|
|
368
372
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
369
373
|
return Reflect.metadata(k, v);
|
|
370
374
|
};
|
|
@@ -379,11 +383,11 @@ const NylasAdditionalParticipants = class {
|
|
|
379
383
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
380
384
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
381
385
|
}
|
|
386
|
+
this.name = 'participants';
|
|
382
387
|
this.selectedConfiguration = undefined;
|
|
383
388
|
this.currentUser = undefined;
|
|
384
|
-
this.name = 'participants';
|
|
385
|
-
this.eventParticipants = undefined;
|
|
386
389
|
this.participantOptions = undefined;
|
|
390
|
+
this.eventParticipants = undefined;
|
|
387
391
|
this.participants = this.eventParticipants ?? [];
|
|
388
392
|
this.participantErrors = {};
|
|
389
393
|
this.includeOrganizerAsParticipant = true;
|
|
@@ -421,20 +425,23 @@ const NylasAdditionalParticipants = class {
|
|
|
421
425
|
disconnectedCallback() {
|
|
422
426
|
utils.debug('nylas-additional-participants', 'disconnectedCallback');
|
|
423
427
|
}
|
|
428
|
+
isInternalsAvailable() {
|
|
429
|
+
return this.internals !== undefined && typeof this.internals.setFormValue === 'function' && typeof this.internals.setValidity === 'function';
|
|
430
|
+
}
|
|
424
431
|
onInputOptionChanged(event) {
|
|
425
432
|
utils.debug('nylas-additional-participants', 'onInputOptionChanged');
|
|
426
|
-
const EMAIL_REGEX = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,
|
|
433
|
+
const EMAIL_REGEX = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
427
434
|
const index = event.detail.name;
|
|
428
435
|
const participant = this.participantOptions?.find(participant => participant.email === event.detail.value);
|
|
429
436
|
if (!participant && this.isRoundRobinConfig) {
|
|
430
|
-
this.internals.setValidity({ customError: true }, 'For round robin configuration, participant should be selected from the dropdown.');
|
|
437
|
+
this.isInternalsAvailable() && this.internals.setValidity({ customError: true }, 'For round robin configuration, participant should be selected from the dropdown.');
|
|
431
438
|
this.participantErrors[index] = 'For round robin page, participant should be selected from the dropdown.';
|
|
432
439
|
this.participants[index].is_valid = false;
|
|
433
440
|
this.participants = [...this.participants];
|
|
434
441
|
return;
|
|
435
442
|
}
|
|
436
443
|
else if (!participant && !EMAIL_REGEX.test(event.detail.value)) {
|
|
437
|
-
this.internals.setValidity({ customError: true }, 'Please enter a valid email address');
|
|
444
|
+
this.isInternalsAvailable() && this.internals.setValidity({ customError: true }, 'Please enter a valid email address');
|
|
438
445
|
this.participantErrors[index] = 'Please enter a valid email address';
|
|
439
446
|
this.participants[index].is_valid = false;
|
|
440
447
|
this.participants = [...this.participants];
|
|
@@ -443,7 +450,7 @@ const NylasAdditionalParticipants = class {
|
|
|
443
450
|
else {
|
|
444
451
|
this.participantErrors[index] = '';
|
|
445
452
|
this.participants[index].is_valid = true;
|
|
446
|
-
this.internals.setValidity({});
|
|
453
|
+
this.isInternalsAvailable() && this.internals.setValidity({});
|
|
447
454
|
}
|
|
448
455
|
this.participants[index].email = event.detail.value;
|
|
449
456
|
this.participants[index].availability = participant ? { calendar_ids: ['primary'] } : undefined;
|
|
@@ -482,24 +489,17 @@ const NylasAdditionalParticipants = class {
|
|
|
482
489
|
this.participants = this.participants.filter((_, i) => i !== index);
|
|
483
490
|
this.updateFormValue();
|
|
484
491
|
}
|
|
485
|
-
validate(email, index) {
|
|
486
|
-
utils.debug('nylas-additional-participants', 'validate');
|
|
487
|
-
const regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
488
|
-
const valid = regex.test(String(email).toLowerCase());
|
|
489
|
-
this.participants[index].is_valid = valid;
|
|
490
|
-
this.updateFormValue();
|
|
491
|
-
}
|
|
492
492
|
updateFormValue() {
|
|
493
493
|
utils.debug('nylas-additional-participants', 'updateFormValue');
|
|
494
494
|
const participants = this.isRoundRobinConfig ? (this.includeOrganizerAsParticipant ? this.participants : this.participants.filter(p => !p.is_organizer)) : this.participants;
|
|
495
495
|
if (participants.length === 0) {
|
|
496
|
-
this.internals.setValidity({ customError: true }, 'Please add at least one participant');
|
|
496
|
+
this.isInternalsAvailable() && this.internals.setValidity({ customError: true }, 'Please add at least one participant');
|
|
497
497
|
this.error = 'Please add at least one participant';
|
|
498
498
|
}
|
|
499
499
|
else {
|
|
500
|
-
this.internals.setValidity({});
|
|
500
|
+
this.isInternalsAvailable() && this.internals.setValidity({});
|
|
501
501
|
this.error = '';
|
|
502
|
-
this.internals.setFormValue(JSON.stringify(participants), this.name);
|
|
502
|
+
this.isInternalsAvailable() && this.internals.setFormValue(JSON.stringify(participants), this.name);
|
|
503
503
|
this.valueChanged.emit({ value: JSON.stringify(participants), name: this.name });
|
|
504
504
|
}
|
|
505
505
|
}
|
|
@@ -510,7 +510,7 @@ const NylasAdditionalParticipants = class {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
render() {
|
|
513
|
-
return (index$1.h(index$1.Host, { key: '
|
|
513
|
+
return (index$1.h(index$1.Host, { key: 'b17facebc66435c9e405b442500163b47836914e', part: "nap" }, index$1.h("nylas-form-card", { key: 'bce92f93c9f0ec0c04c000582505ea1adb1a3e22' }, index$1.h("h3", { key: '07cd5fd66a38dadfd67f67607fe81fb235cbb1f3', slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Participants"), index$1.h("p", { key: '3e9f5348444a81731228d4ce5f355b3cd6ead03f', slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add people in your team or organization to join the event."), index$1.h("div", { key: 'b6921a32886aaedbf9ecaa942912c2991881b380', slot: "content", class: "nylas-additional-participants__content" }, index$1.h("div", { key: '780531379643ee4764122906f144d302e0bc32e5' }, this.participants.map((participant, index) => {
|
|
514
514
|
return (index$1.h("div", { class: 'nylas-additional-participants__input_group', part: "nap__input_group" }, !participant.is_organizer && index$1.h("label", null, `Participant ${index}`), index$1.h("div", { part: "nap__input_wrapper", class: {
|
|
515
515
|
'nylas-additional-participants__input_wrapper': true,
|
|
516
516
|
'nylas-additional-participants__input_wrapper_organizer': participant?.is_organizer === true,
|
|
@@ -520,7 +520,7 @@ const NylasAdditionalParticipants = class {
|
|
|
520
520
|
this.includeOrganizerAsParticipant = !this.includeOrganizerAsParticipant;
|
|
521
521
|
this.updateFormValue();
|
|
522
522
|
}, checked: this.includeOrganizerAsParticipant }), index$1.h("label", { htmlFor: `organizer_participant`, "aria-label": "Include as participant" }, "Participant", index$1.h("tooltip-component", { id: "organizer_participant_tooltip" }, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, index$1.h("strong", null, "Include Organizer:"), " The organizer (you) will be included in the round-robin rotation. ", index$1.h("br", null), index$1.h("strong", null, "Exclude Organizer:"), " The organizer (you) will not be included in the round-robin rotation."))))))) : (index$1.h("input-dropdown", { id: `${index}`, name: `${index}`, filterable: true, inputValue: participant.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) })), !participant.is_organizer && (index$1.h("button", { onClick: () => this.removeParticipant(index), part: "nap__remove-participant" }, index$1.h("close-icon", null))))), !participant.is_valid && (index$1.h("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[index]))));
|
|
523
|
-
}), index$1.h("p", { key: '
|
|
523
|
+
}), index$1.h("p", { key: '9921cf9eb77303da37e64bb4b2555fe662bcb299', class: "nylas-additional-participants__error", part: "nap__error" }, this.error)), index$1.h("button", { key: '0fdc9f4d4ee5b221aaaa01de39e0fe5ad29675f1', class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, index$1.h("add-circle-icon", { key: 'c1c405144661b246731d48907246b3bc9e252410' }), " ", index$1.h("span", { key: '2ccd09a3a9c148dd4e895f7c3b2ac52cce86b76b' }, "Add ", this.participants.length > 1 ? 'another' : 'a', " participant"))))));
|
|
524
524
|
}
|
|
525
525
|
static get formAssociated() { return true; }
|
|
526
526
|
get host() { return index$1.getElement(this); }
|
|
@@ -529,7 +529,7 @@ const NylasAdditionalParticipants = class {
|
|
|
529
529
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
530
530
|
}; }
|
|
531
531
|
};
|
|
532
|
-
__decorate$
|
|
532
|
+
__decorate$v([
|
|
533
533
|
registerComponent.RegisterComponent({
|
|
534
534
|
name: 'nylas-additional-participants',
|
|
535
535
|
stateToProps: new Map([
|
|
@@ -540,16 +540,16 @@ __decorate$t([
|
|
|
540
540
|
eventToProps: {},
|
|
541
541
|
fireRegisterEvent: true,
|
|
542
542
|
}),
|
|
543
|
-
__metadata$
|
|
544
|
-
__metadata$
|
|
545
|
-
__metadata$
|
|
543
|
+
__metadata$v("design:type", Function),
|
|
544
|
+
__metadata$v("design:paramtypes", []),
|
|
545
|
+
__metadata$v("design:returntype", void 0)
|
|
546
546
|
], NylasAdditionalParticipants.prototype, "render", null);
|
|
547
547
|
NylasAdditionalParticipants.style = NylasAdditionalParticipantsStyle0;
|
|
548
548
|
|
|
549
549
|
const nylasAvailabilityPickerCss = ":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;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}";
|
|
550
550
|
const NylasAvailabilityPickerStyle0 = nylasAvailabilityPickerCss;
|
|
551
551
|
|
|
552
|
-
var __decorate$
|
|
552
|
+
var __decorate$u = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
553
553
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
554
554
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
555
555
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -559,7 +559,7 @@ var __decorate$s = (undefined && undefined.__decorate) || function (decorators,
|
|
|
559
559
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
560
560
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
561
561
|
};
|
|
562
|
-
var __metadata$
|
|
562
|
+
var __metadata$u = (undefined && undefined.__metadata) || function (k, v) {
|
|
563
563
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
564
564
|
return Reflect.metadata(k, v);
|
|
565
565
|
};
|
|
@@ -574,9 +574,9 @@ const NylasAvailabilityPicker = class {
|
|
|
574
574
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
575
575
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
576
576
|
}
|
|
577
|
+
this.name = 'availability';
|
|
577
578
|
this.selectedConfiguration = undefined;
|
|
578
579
|
this.openHours = undefined;
|
|
579
|
-
this.name = 'availability';
|
|
580
580
|
this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
581
581
|
this.hideHeader = false;
|
|
582
582
|
this.schedule = {
|
|
@@ -597,7 +597,8 @@ const NylasAvailabilityPicker = class {
|
|
|
597
597
|
}
|
|
598
598
|
configChangedHandler(newConfig) {
|
|
599
599
|
const defaultOpenHours = newConfig?.availability?.availability_rules?.default_open_hours ?? constants.DEFAULT_OPEN_HOURS;
|
|
600
|
-
|
|
600
|
+
const defaultOpenHoursTimezone = newConfig?.event_booking?.timezone ?? this.defaultTimezone;
|
|
601
|
+
this.timezone = this.name === 'availability' ? defaultOpenHoursTimezone : this.defaultTimezone;
|
|
601
602
|
if (this.openHours) {
|
|
602
603
|
this.openHoursToSchedule(this.openHours);
|
|
603
604
|
}
|
|
@@ -861,7 +862,7 @@ const NylasAvailabilityPicker = class {
|
|
|
861
862
|
value: key,
|
|
862
863
|
}));
|
|
863
864
|
const selectedTimezoneOption = timezoneOptions.find(i => i.value === this.timezone);
|
|
864
|
-
return (index$1.h(index$1.Host, { key: '
|
|
865
|
+
return (index$1.h(index$1.Host, { key: 'd3456a3cbc918006617d5be20b0f43a3026c6c48' }, index$1.h("div", { key: '0a6701099f52e36ae38ecc5a58246c4447273a45', class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && (index$1.h("div", { class: "header", part: "nap__header" }, index$1.h("h3", null, "Default open hours"), index$1.h("p", null, "Set when you're regularly available for event bookings.", index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "This is the default availability for participants who don\u2019t have availability set on the Participants tab."))))), index$1.h("div", { key: '0ea45dac96d381a149c729e2eebcf4248b54b35a', class: "content" }, index$1.h("div", { key: '3f53bb214de33ba430be84d50705f0c488f41ccf', class: "select-timezone", part: "nap__select-timezone" }, index$1.h("h4", { key: '7537e3f475d324ca3ece17a3e14b9250d94ce3fe', class: "sub-header" }, "Select timezone"), selectedTimezoneOption?.label && (index$1.h("select-dropdown", { name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: timezoneOptions, defaultSelectedOption: selectedTimezoneOption }, index$1.h("span", { slot: "select-icon" }, index$1.h("globe-icon", { width: "20", height: "20" }))))), index$1.h("div", { key: '63a7b4b8ec778d4d7e3f530c623aef491a8dec33', class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map(key => {
|
|
865
866
|
const day = key;
|
|
866
867
|
const timeRanges = this.schedule[key];
|
|
867
868
|
return (index$1.h("div", { class: "availability-day" }, index$1.h("div", { class: "day", part: "nap__day" }, index$1.h("input", { type: "checkbox", name: day, id: day, checked: timeRanges.length > 0, onClick: () => {
|
|
@@ -888,22 +889,22 @@ const NylasAvailabilityPicker = class {
|
|
|
888
889
|
"schedule": ["scheduleChanged"]
|
|
889
890
|
}; }
|
|
890
891
|
};
|
|
891
|
-
__decorate$
|
|
892
|
+
__decorate$u([
|
|
892
893
|
registerComponent.RegisterComponent({
|
|
893
894
|
name: 'nylas-availability-picker',
|
|
894
895
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
895
896
|
fireRegisterEvent: true,
|
|
896
897
|
}),
|
|
897
|
-
__metadata$
|
|
898
|
-
__metadata$
|
|
899
|
-
__metadata$
|
|
898
|
+
__metadata$u("design:type", Function),
|
|
899
|
+
__metadata$u("design:paramtypes", []),
|
|
900
|
+
__metadata$u("design:returntype", void 0)
|
|
900
901
|
], NylasAvailabilityPicker.prototype, "render", null);
|
|
901
902
|
NylasAvailabilityPicker.style = NylasAvailabilityPickerStyle0;
|
|
902
903
|
|
|
903
904
|
const nylasBookingCalendarPickerCss = ":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;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
904
905
|
const NylasBookingCalendarPickerStyle0 = nylasBookingCalendarPickerCss;
|
|
905
906
|
|
|
906
|
-
var __decorate$
|
|
907
|
+
var __decorate$t = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
907
908
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
908
909
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
909
910
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -913,7 +914,7 @@ var __decorate$r = (undefined && undefined.__decorate) || function (decorators,
|
|
|
913
914
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
914
915
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
915
916
|
};
|
|
916
|
-
var __metadata$
|
|
917
|
+
var __metadata$t = (undefined && undefined.__metadata) || function (k, v) {
|
|
917
918
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
918
919
|
return Reflect.metadata(k, v);
|
|
919
920
|
};
|
|
@@ -1007,7 +1008,7 @@ const NylasBookingCalendarPicker = class {
|
|
|
1007
1008
|
"currentUserCalendars": ["currentUserCalendarsChangedHandler"]
|
|
1008
1009
|
}; }
|
|
1009
1010
|
};
|
|
1010
|
-
__decorate$
|
|
1011
|
+
__decorate$t([
|
|
1011
1012
|
registerComponent.RegisterComponent({
|
|
1012
1013
|
name: 'nylas-booking-calendar-picker',
|
|
1013
1014
|
stateToProps: new Map([
|
|
@@ -1024,16 +1025,16 @@ __decorate$r([
|
|
|
1024
1025
|
},
|
|
1025
1026
|
fireRegisterEvent: true,
|
|
1026
1027
|
}),
|
|
1027
|
-
__metadata$
|
|
1028
|
-
__metadata$
|
|
1029
|
-
__metadata$
|
|
1028
|
+
__metadata$t("design:type", Function),
|
|
1029
|
+
__metadata$t("design:paramtypes", []),
|
|
1030
|
+
__metadata$t("design:returntype", void 0)
|
|
1030
1031
|
], NylasBookingCalendarPicker.prototype, "render", null);
|
|
1031
1032
|
NylasBookingCalendarPicker.style = NylasBookingCalendarPickerStyle0;
|
|
1032
1033
|
|
|
1033
1034
|
const nylasBookingConfirmationRedirectCss = ":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;width:inherit}.nylas-booking-confirmation-redirect{width:inherit;display:flex;flex-direction:column}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label{display:flex;align-items:center;gap:4px;margin-bottom:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown input-component::part(ic__input_wrapper){margin-top:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.error-message{color:var(--nylas-error)}";
|
|
1034
1035
|
const NylasBookingConfirmationRedirectStyle0 = nylasBookingConfirmationRedirectCss;
|
|
1035
1036
|
|
|
1036
|
-
var __decorate$
|
|
1037
|
+
var __decorate$s = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1037
1038
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1038
1039
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1039
1040
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1043,7 +1044,7 @@ var __decorate$q = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1043
1044
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1044
1045
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1045
1046
|
};
|
|
1046
|
-
var __metadata$
|
|
1047
|
+
var __metadata$s = (undefined && undefined.__metadata) || function (k, v) {
|
|
1047
1048
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1048
1049
|
return Reflect.metadata(k, v);
|
|
1049
1050
|
};
|
|
@@ -1165,7 +1166,7 @@ const NylasBookingConfirmationRedirect = class {
|
|
|
1165
1166
|
value: 'custom',
|
|
1166
1167
|
},
|
|
1167
1168
|
];
|
|
1168
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1169
|
+
return (index$1.h(index$1.Host, { key: '436a754406a25fe12caf7a1772d5fbd29d52cb5d' }, index$1.h("div", { key: 'ba1096207f67cd847eb78d7ae3847395d091bac0', class: "nylas-booking-confirmation-redirect", part: "nbcr" }, redirectOptions.length > 0 && (index$1.h("div", { class: "nylas-booking-confirmation-redirect__dropdown" }, index$1.h("span", { class: "label" }, "When a booking is confirmed", index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "You can either display the default confirmation page or redirect users to your own confirmation page."))), this.componentLoaded && (index$1.h("select-dropdown", { name: "confirmation-redirect-dropdown", options: redirectOptions, withSearch: false, defaultSelectedOption: redirectOptions.find(option => option.value === (this.acceptUrl ? 'custom' : 'default')), exportparts: "sd_dropdown: nbcr__dropdown, sd_dropdown-button: nbcr__dropdown-button, sd_dropdown-content: nbcr__dropdown-content" })), this.acceptUrl && (index$1.h("div", null, index$1.h("input-component", { name: "confirmation-redirect", id: "confirmation-redirect", type: "text", placeholder: "Enter custom redirect URL", required: false, part: "ic__input_wrapper: nbcr__input-textfield", defaultValue: this.currentRedirectUrl }), this.redirectUrlErrorMessage && index$1.h("span", { class: "error-message" }, this.redirectUrlErrorMessage))))))));
|
|
1169
1170
|
}
|
|
1170
1171
|
static get formAssociated() { return true; }
|
|
1171
1172
|
get host() { return index$1.getElement(this); }
|
|
@@ -1174,7 +1175,7 @@ const NylasBookingConfirmationRedirect = class {
|
|
|
1174
1175
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1175
1176
|
}; }
|
|
1176
1177
|
};
|
|
1177
|
-
__decorate$
|
|
1178
|
+
__decorate$s([
|
|
1178
1179
|
registerComponent.RegisterComponent({
|
|
1179
1180
|
name: 'nylas-booking-confirmation-redirect',
|
|
1180
1181
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
@@ -1188,16 +1189,16 @@ __decorate$q([
|
|
|
1188
1189
|
},
|
|
1189
1190
|
fireRegisterEvent: true,
|
|
1190
1191
|
}),
|
|
1191
|
-
__metadata$
|
|
1192
|
-
__metadata$
|
|
1193
|
-
__metadata$
|
|
1192
|
+
__metadata$s("design:type", Function),
|
|
1193
|
+
__metadata$s("design:paramtypes", []),
|
|
1194
|
+
__metadata$s("design:returntype", void 0)
|
|
1194
1195
|
], NylasBookingConfirmationRedirect.prototype, "render", null);
|
|
1195
1196
|
NylasBookingConfirmationRedirect.style = NylasBookingConfirmationRedirectStyle0;
|
|
1196
1197
|
|
|
1197
1198
|
const nylasBookingConfirmationTypeCss = ":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;width:inherit}.nylas-booking-confirmation-type{width:inherit;display:flex;flex-direction:column;margin-bottom:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
1198
1199
|
const NylasBookingConfirmationTypeStyle0 = nylasBookingConfirmationTypeCss;
|
|
1199
1200
|
|
|
1200
|
-
var __decorate$
|
|
1201
|
+
var __decorate$r = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1201
1202
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1202
1203
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1203
1204
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1207,7 +1208,7 @@ var __decorate$p = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1207
1208
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1208
1209
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1209
1210
|
};
|
|
1210
|
-
var __metadata$
|
|
1211
|
+
var __metadata$r = (undefined && undefined.__metadata) || function (k, v) {
|
|
1211
1212
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1212
1213
|
return Reflect.metadata(k, v);
|
|
1213
1214
|
};
|
|
@@ -1257,9 +1258,9 @@ const NylasBookingConfirmationType = class {
|
|
|
1257
1258
|
}
|
|
1258
1259
|
else {
|
|
1259
1260
|
this.selectedBookingType = this.bookingType || 'booking';
|
|
1261
|
+
this.showDropdown = this.showComponent;
|
|
1260
1262
|
}
|
|
1261
1263
|
this.internals.setFormValue(this.selectedBookingType.toString(), this.name);
|
|
1262
|
-
this.showDropdown = this.selectedConfiguration?.event_booking?.booking_type !== 'custom-confirmation' && !!this.selectedConfiguration?.scheduler?.organizer_confirmation_url;
|
|
1263
1264
|
}
|
|
1264
1265
|
componentWillUpdate() {
|
|
1265
1266
|
utils.debug('nylas-booking-confirmation-type', 'componentWillUpdate');
|
|
@@ -1293,7 +1294,7 @@ const NylasBookingConfirmationType = class {
|
|
|
1293
1294
|
value: 'organizer-confirmation',
|
|
1294
1295
|
},
|
|
1295
1296
|
];
|
|
1296
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1297
|
+
return (index$1.h(index$1.Host, { key: 'e5267e4adf820e23ca021965cc6f021946eefbea' }, this.showDropdown && (index$1.h("div", { class: "nylas-booking-confirmation-type", part: "nbct" }, bookingOptions.length > 0 && (index$1.h("div", { class: "nylas-booking-confirmation-type__dropdown" }, index$1.h("span", { class: "label" }, "When a booking is requested", index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "Manually accept bookings allows you to review and either accept or decline each booking request."))), this.selectedBookingType && (index$1.h("select-dropdown", { name: "booking-type", options: bookingOptions, withSearch: false, exportparts: "sd_dropdown: nbct__dropdown, sd_dropdown-button: nbct__dropdown-button, sd_dropdown-content: nbct__dropdown-content", defaultSelectedOption: bookingOptions.find(cal => cal.value == this.selectedBookingType) }))))))));
|
|
1297
1298
|
}
|
|
1298
1299
|
static get formAssociated() { return true; }
|
|
1299
1300
|
get host() { return index$1.getElement(this); }
|
|
@@ -1302,7 +1303,7 @@ const NylasBookingConfirmationType = class {
|
|
|
1302
1303
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1303
1304
|
}; }
|
|
1304
1305
|
};
|
|
1305
|
-
__decorate$
|
|
1306
|
+
__decorate$r([
|
|
1306
1307
|
registerComponent.RegisterComponent({
|
|
1307
1308
|
name: 'nylas-booking-confirmation-type',
|
|
1308
1309
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
@@ -1316,9 +1317,9 @@ __decorate$p([
|
|
|
1316
1317
|
},
|
|
1317
1318
|
fireRegisterEvent: true,
|
|
1318
1319
|
}),
|
|
1319
|
-
__metadata$
|
|
1320
|
-
__metadata$
|
|
1321
|
-
__metadata$
|
|
1320
|
+
__metadata$r("design:type", Function),
|
|
1321
|
+
__metadata$r("design:paramtypes", []),
|
|
1322
|
+
__metadata$r("design:returntype", void 0)
|
|
1322
1323
|
], NylasBookingConfirmationType.prototype, "render", null);
|
|
1323
1324
|
NylasBookingConfirmationType.style = NylasBookingConfirmationTypeStyle0;
|
|
1324
1325
|
|
|
@@ -4676,7 +4677,7 @@ Sortable.mount(new MultiDragPlugin());
|
|
|
4676
4677
|
const nylasBookingFormConfigCss = ":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;width:inherit}.nylas-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .header .header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .header .header_action{display:flex}.nylas-booking-form-config .header .header_action select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-form-config .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-booking-form-config .content{font-size:15px}}.nylas-booking-form-config .content .additional_fields{display:flex;flex-direction:column;gap:1rem;position:relative;overflow:auto}@media screen and (max-width: 504px){.nylas-booking-form-config .content .additional_fields{gap:0.5rem;padding:0}}.nylas-booking-form-config .content .additional_fields .form-field{border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);padding:1rem;user-select:none;background-color:white;position:relative}.nylas-booking-form-config .content .additional_fields .form-field.highlight{background-color:var(--nylas-base-200)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .dragable{cursor:move}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text{flex:1;text-align:left;padding-left:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text h4{margin:0;font-size:16px;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions{display:flex;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .is-required{color:var(--nylas-base-500);background-color:var(--nylas-base-50);font-weight:600;padding:4px 8px;border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron{display:flex;align-self:center;cursor:pointer}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.open{transform:rotate(90deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.closed{transform:rotate(270deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content{padding:1.5rem 0 0 2.7rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content.hidden{display:none}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .label-input{padding:0 1rem 0 0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input label{padding:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input input[type=checkbox]{transform:scale(1.3)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container h4{margin:0;font-size:16px;line-height:20px;font-weight:500;padding:0.5rem 0;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button{border:none;background:transparent;height:40px;margin:1rem 0;cursor:pointer;color:var(--nylas-base-800);display:flex;align-items:center;justify-content:space-between}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options{display:flex;flex-direction:column;gap:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:active{color:var(--nylas-primary)}";
|
|
4677
4678
|
const NylasBookingFormConfigStyle0 = nylasBookingFormConfigCss;
|
|
4678
4679
|
|
|
4679
|
-
var __decorate$
|
|
4680
|
+
var __decorate$q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4680
4681
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4681
4682
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4682
4683
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4686,7 +4687,7 @@ var __decorate$o = (undefined && undefined.__decorate) || function (decorators,
|
|
|
4686
4687
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4687
4688
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4688
4689
|
};
|
|
4689
|
-
var __metadata$
|
|
4690
|
+
var __metadata$q = (undefined && undefined.__metadata) || function (k, v) {
|
|
4690
4691
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4691
4692
|
return Reflect.metadata(k, v);
|
|
4692
4693
|
};
|
|
@@ -4913,7 +4914,7 @@ const NylasBookingFormConfig = class {
|
|
|
4913
4914
|
});
|
|
4914
4915
|
}
|
|
4915
4916
|
render() {
|
|
4916
|
-
return (index$1.h(index$1.Host, { key: '
|
|
4917
|
+
return (index$1.h(index$1.Host, { key: '890a8dc51e6aee455ce2eec3b1b9e534122e87e1' }, index$1.h("div", { key: 'a6d477428eb9851402cadbe384fd5dc7a0a7788b', class: "nylas-booking-form-config", part: "nbfc" }, index$1.h("div", { key: '4fa905aa07838ab99c01d20f2e8f809a24328059', class: "header", part: "nbfc__header" }, index$1.h("div", { key: '33b8980d3927d1aa717aade3f6e1e3f3b099feab', class: "header_text" }, index$1.h("h3", { key: '2381bd7f07124b653aac4542946585357d1eecd5' }, "Booking form"), index$1.h("p", { key: 'a57f318250af040f150df4fe6cf02f299250da74' }, "Add custom fields to the booking form.")), index$1.h("div", { key: '7297904e841d80bdc38a22605427234bf69c15b3', class: "header_action" }, index$1.h("select-dropdown", { key: 'fed774ace8a8d000a51228c32100597035c01cb0', name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: constants.DEFAULT_FORM_FIELD_TYPES, withSearch: false, withChevron: false, dropdownButtonText: "Add new field" }, index$1.h("span", { key: '4a445ec9df4d27d455e5936a83469df6850ee24f', slot: "select-icon" }, index$1.h("plus-icon", { key: '1f5fa764396d7f0ecc212ed7e2145dee1250eb4c', width: "15", height: "15" }))))), index$1.h("div", { key: 'f2384ca1eef8e9b50176ca6a23ed018dba95190e', class: "content" }, index$1.h("div", { key: '6ce505f1753086e43ac25e188a63b4319282f33d', id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((field, i) => {
|
|
4917
4918
|
return (index$1.h("div", { class: `form-field draggable ${field.readonly && 'fixed'}`, part: "nbfc__form_field", key: i }, index$1.h("div", { class: "form-field_header", part: "nbfc__form_field-header" }, index$1.h("span", { class: "dragable" }, index$1.h("dragable-icon", { width: "24", height: "25" })), index$1.h("div", { class: "form-field_header_text" }, index$1.h("h4", null, field.label), index$1.h("p", null, field.typeLabel)), index$1.h("div", { class: "form-field_header_actions" }, index$1.h("span", { class: `is-required` }, field.required ? 'Required' : 'Optional'), !field.readonly && (index$1.h("button", { onClick: () => {
|
|
4918
4919
|
this.fieldRemove(i);
|
|
4919
4920
|
} }, index$1.h("close-icon", null))), index$1.h("span", { class: `chevron ${field.isOpen ? 'open' : 'closed'}`, onClick: () => {
|
|
@@ -4936,22 +4937,22 @@ const NylasBookingFormConfig = class {
|
|
|
4936
4937
|
"formFields": ["watchHandler"]
|
|
4937
4938
|
}; }
|
|
4938
4939
|
};
|
|
4939
|
-
__decorate$
|
|
4940
|
+
__decorate$q([
|
|
4940
4941
|
registerComponent.RegisterComponent({
|
|
4941
4942
|
name: 'nylas-booking-form-config',
|
|
4942
4943
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
4943
4944
|
fireRegisterEvent: true,
|
|
4944
4945
|
}),
|
|
4945
|
-
__metadata$
|
|
4946
|
-
__metadata$
|
|
4947
|
-
__metadata$
|
|
4946
|
+
__metadata$q("design:type", Function),
|
|
4947
|
+
__metadata$q("design:paramtypes", []),
|
|
4948
|
+
__metadata$q("design:returntype", void 0)
|
|
4948
4949
|
], NylasBookingFormConfig.prototype, "render", null);
|
|
4949
4950
|
NylasBookingFormConfig.style = NylasBookingFormConfigStyle0;
|
|
4950
4951
|
|
|
4951
4952
|
const nylasBufferTimeCss = ":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;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
4952
4953
|
const NylasBufferTimeStyle0 = nylasBufferTimeCss;
|
|
4953
4954
|
|
|
4954
|
-
var __decorate$
|
|
4955
|
+
var __decorate$p = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4955
4956
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4956
4957
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4957
4958
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4961,7 +4962,7 @@ var __decorate$n = (undefined && undefined.__decorate) || function (decorators,
|
|
|
4961
4962
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4962
4963
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4963
4964
|
};
|
|
4964
|
-
var __metadata$
|
|
4965
|
+
var __metadata$p = (undefined && undefined.__metadata) || function (k, v) {
|
|
4965
4966
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4966
4967
|
return Reflect.metadata(k, v);
|
|
4967
4968
|
};
|
|
@@ -5118,7 +5119,7 @@ const NylasBufferTime = class {
|
|
|
5118
5119
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
5119
5120
|
}; }
|
|
5120
5121
|
};
|
|
5121
|
-
__decorate$
|
|
5122
|
+
__decorate$p([
|
|
5122
5123
|
registerComponent.RegisterComponent({
|
|
5123
5124
|
name: 'nylas-buffer-time',
|
|
5124
5125
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
@@ -5132,16 +5133,16 @@ __decorate$n([
|
|
|
5132
5133
|
},
|
|
5133
5134
|
fireRegisterEvent: true,
|
|
5134
5135
|
}),
|
|
5135
|
-
__metadata$
|
|
5136
|
-
__metadata$
|
|
5137
|
-
__metadata$
|
|
5136
|
+
__metadata$p("design:type", Function),
|
|
5137
|
+
__metadata$p("design:paramtypes", []),
|
|
5138
|
+
__metadata$p("design:returntype", void 0)
|
|
5138
5139
|
], NylasBufferTime.prototype, "render", null);
|
|
5139
5140
|
NylasBufferTime.style = NylasBufferTimeStyle0;
|
|
5140
5141
|
|
|
5141
5142
|
const nylasCalendarPickerCss = ":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;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button--error){border:1px solid var(--nylas-error)}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
5142
5143
|
const NylasCalendarPickerStyle0 = nylasCalendarPickerCss;
|
|
5143
5144
|
|
|
5144
|
-
var __decorate$
|
|
5145
|
+
var __decorate$o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5145
5146
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5146
5147
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5147
5148
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5151,7 +5152,7 @@ var __decorate$m = (undefined && undefined.__decorate) || function (decorators,
|
|
|
5151
5152
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5152
5153
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5153
5154
|
};
|
|
5154
|
-
var __metadata$
|
|
5155
|
+
var __metadata$o = (undefined && undefined.__metadata) || function (k, v) {
|
|
5155
5156
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5156
5157
|
return Reflect.metadata(k, v);
|
|
5157
5158
|
};
|
|
@@ -5166,9 +5167,9 @@ const NylasCalendarPicker = class {
|
|
|
5166
5167
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
5167
5168
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
5168
5169
|
}
|
|
5169
|
-
this.calendars = undefined;
|
|
5170
|
-
this.currentUser = undefined;
|
|
5171
5170
|
this.name = 'calendar';
|
|
5171
|
+
this.currentUser = undefined;
|
|
5172
|
+
this.calendars = undefined;
|
|
5172
5173
|
this.defaultSelectedCalendars = [];
|
|
5173
5174
|
this.selectedCalendars = [];
|
|
5174
5175
|
this.error = '';
|
|
@@ -5242,7 +5243,7 @@ const NylasCalendarPicker = class {
|
|
|
5242
5243
|
"name": ["elementNameChangedHandler"]
|
|
5243
5244
|
}; }
|
|
5244
5245
|
};
|
|
5245
|
-
__decorate$
|
|
5246
|
+
__decorate$o([
|
|
5246
5247
|
registerComponent.RegisterComponent({
|
|
5247
5248
|
name: 'nylas-calendar-picker',
|
|
5248
5249
|
stateToProps: new Map([['schedulerConfig.currentUser', 'currentUser']]),
|
|
@@ -5256,16 +5257,16 @@ __decorate$m([
|
|
|
5256
5257
|
},
|
|
5257
5258
|
fireRegisterEvent: true,
|
|
5258
5259
|
}),
|
|
5259
|
-
__metadata$
|
|
5260
|
-
__metadata$
|
|
5261
|
-
__metadata$
|
|
5260
|
+
__metadata$o("design:type", Function),
|
|
5261
|
+
__metadata$o("design:paramtypes", []),
|
|
5262
|
+
__metadata$o("design:returntype", void 0)
|
|
5262
5263
|
], NylasCalendarPicker.prototype, "render", null);
|
|
5263
5264
|
NylasCalendarPicker.style = NylasCalendarPickerStyle0;
|
|
5264
5265
|
|
|
5265
5266
|
const nylasCancellationPolicyCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}";
|
|
5266
5267
|
const NylasCancellationPolicyStyle0 = nylasCancellationPolicyCss;
|
|
5267
5268
|
|
|
5268
|
-
var __decorate$
|
|
5269
|
+
var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5269
5270
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5270
5271
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5271
5272
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5275,7 +5276,7 @@ var __decorate$l = (undefined && undefined.__decorate) || function (decorators,
|
|
|
5275
5276
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5276
5277
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5277
5278
|
};
|
|
5278
|
-
var __metadata$
|
|
5279
|
+
var __metadata$n = (undefined && undefined.__metadata) || function (k, v) {
|
|
5279
5280
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5280
5281
|
return Reflect.metadata(k, v);
|
|
5281
5282
|
};
|
|
@@ -5329,7 +5330,7 @@ const NylasCancellationPolicy = class {
|
|
|
5329
5330
|
this.valueChanged.emit({ value: value, name: this.name });
|
|
5330
5331
|
}
|
|
5331
5332
|
render() {
|
|
5332
|
-
return (index$1.h(index$1.Host, { key: '
|
|
5333
|
+
return (index$1.h(index$1.Host, { key: '4bae0ed63f5beb4bfded63e6a6243ad9231706cc' }, index$1.h("div", { key: 'e8b16dcdf8d9095a9922ec237cb30f3ea6501dde', class: "nylas-cancellation-policy", part: "ncpolicy" }, index$1.h("label", { key: '3813b4c723c97c0c1aae070c88cf0111c73d9a3f', htmlFor: this.name }, "Cancellation policy message", index$1.h("span", { key: '39b8a017d43bd8ea0d6e24b4ac180a551d88c963', class: "label-icon" }, index$1.h("tooltip-component", { key: 'f5ecc2daf78366a81869aec1a8b0aa783e338b20' }, index$1.h("info-icon", { key: '4f128afc88ab509aeff42e1491c6dde245014685', slot: "tooltip-icon" }), index$1.h("span", { key: '28446b374372f8c36566fd6b7c6e6babb3668a1a', slot: "tooltip-content" }, "Attendees receive this message if trying to cancel the event. Attendees are asked to provide a reason for cancellation.")))), index$1.h("textarea", { key: 'd518b68d61229a2a9ee9c3cda2a2a17b834e7343', id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: e => this.handleChange(e) }))));
|
|
5333
5334
|
}
|
|
5334
5335
|
static get formAssociated() { return true; }
|
|
5335
5336
|
get host() { return index$1.getElement(this); }
|
|
@@ -5338,23 +5339,23 @@ const NylasCancellationPolicy = class {
|
|
|
5338
5339
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
5339
5340
|
}; }
|
|
5340
5341
|
};
|
|
5341
|
-
__decorate$
|
|
5342
|
+
__decorate$n([
|
|
5342
5343
|
registerComponent.RegisterComponent({
|
|
5343
5344
|
name: 'nylas-cancellation-policy',
|
|
5344
5345
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
5345
5346
|
eventToProps: {},
|
|
5346
5347
|
fireRegisterEvent: true,
|
|
5347
5348
|
}),
|
|
5348
|
-
__metadata$
|
|
5349
|
-
__metadata$
|
|
5350
|
-
__metadata$
|
|
5349
|
+
__metadata$n("design:type", Function),
|
|
5350
|
+
__metadata$n("design:paramtypes", []),
|
|
5351
|
+
__metadata$n("design:returntype", void 0)
|
|
5351
5352
|
], NylasCancellationPolicy.prototype, "render", null);
|
|
5352
5353
|
NylasCancellationPolicy.style = NylasCancellationPolicyStyle0;
|
|
5353
5354
|
|
|
5354
5355
|
const nylasConfirmationEmailCss = ":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;width:inherit}.nylas-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr;border-top:1px solid var(--nylas-base-200);padding-top:1.25rem;margin:0.25rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row span.selected-value{font-weight:500}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container{padding:0 2rem 1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body span.error-message{color:var(--nylas-error)}.nylas-confirmation-email .nylas-confirmation-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}";
|
|
5355
5356
|
const NylasConfirmationEmailStyle0 = nylasConfirmationEmailCss;
|
|
5356
5357
|
|
|
5357
|
-
var __decorate$
|
|
5358
|
+
var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5358
5359
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5359
5360
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5360
5361
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5364,7 +5365,7 @@ var __decorate$k = (undefined && undefined.__decorate) || function (decorators,
|
|
|
5364
5365
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5365
5366
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5366
5367
|
};
|
|
5367
|
-
var __metadata$
|
|
5368
|
+
var __metadata$m = (undefined && undefined.__metadata) || function (k, v) {
|
|
5368
5369
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5369
5370
|
return Reflect.metadata(k, v);
|
|
5370
5371
|
};
|
|
@@ -5381,9 +5382,9 @@ const NylasConfirmationEmail = class {
|
|
|
5381
5382
|
}
|
|
5382
5383
|
this.selectedConfiguration = undefined;
|
|
5383
5384
|
this.confirmationEmailTemplate = {};
|
|
5384
|
-
this.isOpen = false;
|
|
5385
5385
|
this.participants = [];
|
|
5386
5386
|
this.name = 'confirmation-email-template';
|
|
5387
|
+
this.isOpen = false;
|
|
5387
5388
|
this.confirmationEmail = undefined;
|
|
5388
5389
|
this.isConfirmationEmailOpen = this.isOpen;
|
|
5389
5390
|
this.participantsState = this.participants;
|
|
@@ -5436,8 +5437,17 @@ const NylasConfirmationEmail = class {
|
|
|
5436
5437
|
const { value, name } = event.detail;
|
|
5437
5438
|
if (name === 'confirmation-email-logo') {
|
|
5438
5439
|
this.confirmationEmail = { ...this.confirmationEmail, logo: value };
|
|
5439
|
-
this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name);
|
|
5440
5440
|
this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name });
|
|
5441
|
+
if (typeof this.internals.setValidity === 'function' && typeof this.internals.setFormValue === 'function') {
|
|
5442
|
+
this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name);
|
|
5443
|
+
this.internals.setValidity({});
|
|
5444
|
+
}
|
|
5445
|
+
}
|
|
5446
|
+
}
|
|
5447
|
+
async nylasFormInputImageUrlInvalidHandler(event) {
|
|
5448
|
+
const { value, name } = event.detail;
|
|
5449
|
+
if (name === 'confirmation-email-logo' && typeof this.internals.setValidity === 'function') {
|
|
5450
|
+
this.internals.setValidity({ customError: true }, value || 'Invalid image URL.');
|
|
5441
5451
|
}
|
|
5442
5452
|
}
|
|
5443
5453
|
updateConfirmationFormValue() {
|
|
@@ -5455,8 +5465,9 @@ const NylasConfirmationEmail = class {
|
|
|
5455
5465
|
this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name });
|
|
5456
5466
|
}
|
|
5457
5467
|
render() {
|
|
5458
|
-
const
|
|
5459
|
-
|
|
5468
|
+
const organizer = this.participantsState.find(p => p.is_organizer);
|
|
5469
|
+
const organizerName = organizer?.name || organizer?.email;
|
|
5470
|
+
return (index$1.h(index$1.Host, { key: 'bc4803b94f914d083bd33cf4cecd0cac70b0658c' }, index$1.h("div", { key: '6445d38b903bffd19b4db004e850f6488ed4c27f', class: "nylas-confirmation-email", part: "nce" }, index$1.h("div", { key: '7ce1ccd72ef83717aec42fe0b533902e3a254796', class: "header", part: "nce__header" }, index$1.h("div", { key: 'cbceb816c30deebc4e053a7abd1da1c82c171ebe' }, index$1.h("h3", { key: '36f5b00d5a98d325341ff06b2bb3ba3cf951e94f' }, this.confirmationEmail?.booking_confirmed?.title ?? `Booking confirmed with ${organizerName ? ` ${organizerName}` : ''}`), index$1.h("p", { key: '6f72022d71e5f4e3c03d0f6d07d7f0f5bc0f9686' }, "Booking confirmation email")), this.isConfirmationEmailOpen ? (index$1.h("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, index$1.h("span", { class: `chevron ${this.isConfirmationEmailOpen ? 'open' : 'closed'} `, onClick: () => this.toggleConfirmationEmail() }, index$1.h("chevron-icon", { width: "24", height: "24" })))) : (index$1.h("button-component", { variant: 'basic', clickHandler: event => {
|
|
5460
5471
|
event.preventDefault();
|
|
5461
5472
|
this.toggleConfirmationEmail();
|
|
5462
5473
|
} }, index$1.h("edit-icon", { width: "16", height: "16" }), "Edit"))), this.isConfirmationEmailOpen ? (index$1.h("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, index$1.h("div", { class: "nylas-confirmation-email__section" }, index$1.h("div", { class: "nylas-confirmation-email__row" }, index$1.h("label", null, "Send confirmation email", index$1.h("span", { class: "label-icon" }, index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "You and your guests will receive a confirmation email immediately upon booking.")))), index$1.h("span", { class: "selected-value" }, "Immediately upon booking")), index$1.h("div", { class: "nylas-confirmation-email__row" }, index$1.h("div", { class: "subsection" }, index$1.h("div", { class: "input-container" }, index$1.h("label", null, "Company logo URL", index$1.h("span", { class: "label-icon" }, index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "This logo appears in the booking confirmation email. The URL must be publicly accessible. The image will be scaled down to a max size of 200px x 100px.")))), this.confirmationEmail && (index$1.h("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", imageUrl: this.confirmationEmail?.logo ?? '' }))))), index$1.h("div", { class: "nylas-confirmation-email__row full-width-col" }, index$1.h("div", { class: "subsection" }, index$1.h("h3", null, "Email message"), index$1.h("div", { class: "input-container" }, index$1.h("label", { htmlFor: "title" }, "Custom email title", index$1.h("span", { class: "label-icon" }, index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "An email title is a headline within the body of the email. This doesn't change the subject line.")))), index$1.h("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: `Booking confirmed ${organizerName ? `with ${organizerName}` : ''}`, defaultValue: this.confirmationEmail?.booking_confirmed?.title ?? '' })), index$1.h("div", { class: "input-container" }, index$1.h("textarea-component", { label: "Additional info", name: "confirmation-email-body", id: "confirmation-email-body", placeholder: "Default body", tooltip: "Scheduler adds the content of the box to the email body.", maxLength: 500, defaultValue: this.confirmationEmail?.booking_confirmed?.body ?? '' }))))))) : (index$1.h("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, index$1.h("p", null, index$1.h("span", { class: "summary-icon" }, index$1.h("person-clipboard-icon", null)), "All host & guests"), index$1.h("p", null, index$1.h("span", { class: "summary-icon" }, index$1.h("clock-icon", null)), "Immediately on booking"))))));
|
|
@@ -5468,7 +5479,7 @@ const NylasConfirmationEmail = class {
|
|
|
5468
5479
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
5469
5480
|
}; }
|
|
5470
5481
|
};
|
|
5471
|
-
__decorate$
|
|
5482
|
+
__decorate$m([
|
|
5472
5483
|
registerComponent.RegisterComponent({
|
|
5473
5484
|
name: 'nylas-confirmation-email',
|
|
5474
5485
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
@@ -5482,16 +5493,16 @@ __decorate$k([
|
|
|
5482
5493
|
},
|
|
5483
5494
|
fireRegisterEvent: true,
|
|
5484
5495
|
}),
|
|
5485
|
-
__metadata$
|
|
5486
|
-
__metadata$
|
|
5487
|
-
__metadata$
|
|
5496
|
+
__metadata$m("design:type", Function),
|
|
5497
|
+
__metadata$m("design:paramtypes", []),
|
|
5498
|
+
__metadata$m("design:returntype", void 0)
|
|
5488
5499
|
], NylasConfirmationEmail.prototype, "render", null);
|
|
5489
5500
|
NylasConfirmationEmail.style = NylasConfirmationEmailStyle0;
|
|
5490
5501
|
|
|
5491
5502
|
const nylasConnectedCalendarsCss = ":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;width:inherit}.nylas-connected-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-connected-calendars .header{padding:1rem}.nylas-connected-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-connected-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-connected-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-connected-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-connected-calendars .content .participant-container .participant-title p{margin:0}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-calendar-picker::part(ncp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}";
|
|
5492
5503
|
const NylasConnectedCalendarsStyle0 = nylasConnectedCalendarsCss;
|
|
5493
5504
|
|
|
5494
|
-
var __decorate$
|
|
5505
|
+
var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5495
5506
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5496
5507
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5497
5508
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5501,7 +5512,7 @@ var __decorate$j = (undefined && undefined.__decorate) || function (decorators,
|
|
|
5501
5512
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5502
5513
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5503
5514
|
};
|
|
5504
|
-
var __metadata$
|
|
5515
|
+
var __metadata$l = (undefined && undefined.__metadata) || function (k, v) {
|
|
5505
5516
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5506
5517
|
return Reflect.metadata(k, v);
|
|
5507
5518
|
};
|
|
@@ -5602,6 +5613,10 @@ const NylasConnectedCalendars = class {
|
|
|
5602
5613
|
this.selectedCalendars = this.setParticipants(this.selectedConfiguration?.participants);
|
|
5603
5614
|
this.participantCalendars = this.getParticipantCalendarOptions(this.selectedConfiguration?.participants, this.participantOptions);
|
|
5604
5615
|
}
|
|
5616
|
+
else {
|
|
5617
|
+
this.selectedCalendars = this.setParticipants(this.participants);
|
|
5618
|
+
this.participantCalendars = this.getParticipantCalendarOptions(this.participants, this.participantOptions);
|
|
5619
|
+
}
|
|
5605
5620
|
}
|
|
5606
5621
|
handleValueChanged(event) {
|
|
5607
5622
|
utils.debug('[nylas-editor-tabs]', 'handleValueChanged', event);
|
|
@@ -5643,12 +5658,12 @@ const NylasConnectedCalendars = class {
|
|
|
5643
5658
|
return selectedParticipants;
|
|
5644
5659
|
}
|
|
5645
5660
|
render() {
|
|
5646
|
-
return (index$1.h(index$1.Host, { key: '
|
|
5661
|
+
return (index$1.h(index$1.Host, { key: '32710fe762bdf90e238c62695957a9fca31db258' }, index$1.h("div", { key: 'a5ebf4adb7eb8e1b8a065bc05733738da06fbac3', class: "nylas-connected-calendars", part: "nccals" }, index$1.h("div", { key: 'f3c820bcde922a7b852630d86145b1e6e1bf0e25', class: "header", part: "nccals__header" }, index$1.h("h3", { key: 'e2b68d05d416c322b22f969d8d8c890a09812154' }, "Connected Calendars"), index$1.h("p", { key: '4dd41d10a6043fec1c0f4943371c312a29e1d489' }, "Select the calendars to use for checking your availability.", index$1.h("tooltip-component", { key: '6a8ec009fd879e1ed6b6fb65be75a88255adba17' }, index$1.h("info-icon", { key: '0d4a99eaee064ecee1c82ee5b13f3ab87a1d5d93', slot: "tooltip-icon" }), index$1.h("span", { key: 'de3779efce64d7a14dbc3f7759c827005f92ed50', slot: "tooltip-content" }, "Check availability across one or more calendars. If you select multiple calendars for a participant, the participant must be available across all of their calendars to be considered available.")))), index$1.h("div", { key: '720267110636c1dc06ac67b7e715515f56737b73', class: "content", part: "nccals__content" }, index$1.h("form", { key: 'f295ba327aa302ea186dbf2daef3a9c30f96ee5f', ref: el => (this.connectedCalendarsFormRef = el) }, Object.keys(this.participantCalendars).map((key, index) => {
|
|
5647
5662
|
const participant = this.selectedCalendars[key];
|
|
5648
5663
|
const participantCalendars = this.participantCalendars[key];
|
|
5649
5664
|
if (!participant || !participant.name)
|
|
5650
5665
|
return;
|
|
5651
|
-
return (index$1.h("div", { class: "participant-container", part: "
|
|
5666
|
+
return (index$1.h("div", { class: "participant-container", part: "nccals__container", key: `participant-conatiner-${index}` }, index$1.h("div", { class: "participant-title", part: "nccals__title" }, index$1.h("p", null, participant.name, "'s connected calendars"), index$1.h("div", { class: "participant-toggle", part: "nccals__toggle-container" }, index$1.h("span", { class: `chevron ${participant.isOpen ? 'open' : 'closed'}`, onClick: () => {
|
|
5652
5667
|
this.selectedCalendars[key].isOpen = !participant.isOpen;
|
|
5653
5668
|
this.selectedCalendars = { ...this.selectedCalendars };
|
|
5654
5669
|
} }, index$1.h("chevron-icon", { width: "24", height: "24" })))), participant.isOpen && (index$1.h("nylas-calendar-picker", { key: key, name: `participant-${key}`, calendars: participantCalendars, defaultSelectedCalendars: this.participantDefaultSelectedCalendars[key] }))));
|
|
@@ -5664,7 +5679,7 @@ const NylasConnectedCalendars = class {
|
|
|
5664
5679
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
5665
5680
|
}; }
|
|
5666
5681
|
};
|
|
5667
|
-
__decorate$
|
|
5682
|
+
__decorate$l([
|
|
5668
5683
|
registerComponent.RegisterComponent({
|
|
5669
5684
|
name: 'nylas-connected-calendars',
|
|
5670
5685
|
stateToProps: new Map([
|
|
@@ -5675,16 +5690,16 @@ __decorate$j([
|
|
|
5675
5690
|
eventToProps: {},
|
|
5676
5691
|
fireRegisterEvent: true,
|
|
5677
5692
|
}),
|
|
5678
|
-
__metadata$
|
|
5679
|
-
__metadata$
|
|
5680
|
-
__metadata$
|
|
5693
|
+
__metadata$l("design:type", Function),
|
|
5694
|
+
__metadata$l("design:paramtypes", []),
|
|
5695
|
+
__metadata$l("design:returntype", void 0)
|
|
5681
5696
|
], NylasConnectedCalendars.prototype, "render", null);
|
|
5682
5697
|
NylasConnectedCalendars.style = NylasConnectedCalendarsStyle0;
|
|
5683
5698
|
|
|
5684
5699
|
const nylasCustomBookingFlowCss = ":host{display:block;margin:1rem;--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-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}";
|
|
5685
5700
|
const NylasCustomBookingFlowStyle0 = nylasCustomBookingFlowCss;
|
|
5686
5701
|
|
|
5687
|
-
var __decorate$
|
|
5702
|
+
var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5688
5703
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5689
5704
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5690
5705
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5694,7 +5709,7 @@ var __decorate$i = (undefined && undefined.__decorate) || function (decorators,
|
|
|
5694
5709
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5695
5710
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5696
5711
|
};
|
|
5697
|
-
var __metadata$
|
|
5712
|
+
var __metadata$k = (undefined && undefined.__metadata) || function (k, v) {
|
|
5698
5713
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5699
5714
|
return Reflect.metadata(k, v);
|
|
5700
5715
|
};
|
|
@@ -5723,27 +5738,27 @@ const NylasCustomBookingFlow = class {
|
|
|
5723
5738
|
utils.checkForMissingSlots(['inputs'], this.el);
|
|
5724
5739
|
}
|
|
5725
5740
|
render() {
|
|
5726
|
-
return (index$1.h(index$1.Host, { key: '
|
|
5741
|
+
return (index$1.h(index$1.Host, { key: 'd9e4b13338b50f21575a7c7f0fba18a5b2828fe8', part: "ncbflow" }, index$1.h("nylas-form-card", { key: '1f53c24698354fbf45ecd67ac24f690e36133cca', exportparts: "nfc__header: ncbflow__header" }, index$1.h("h1", { key: '680813d1aaf33014732e8cf3038a27f4ab4bd607', slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbflow__title" }, "Custom booking flow"), index$1.h("div", { key: '2da6f6587e05e65cd1e2b35718168f665c3348c1', slot: "content", class: "nylas-custom-booking-flow__content", part: "ncbflow__content" }, index$1.h("slot", { key: '73937227f3a398779b0d1c97e525ca0bec593d85', name: "inputs" })))));
|
|
5727
5742
|
}
|
|
5728
5743
|
static get formAssociated() { return true; }
|
|
5729
5744
|
get el() { return index$1.getElement(this); }
|
|
5730
5745
|
};
|
|
5731
|
-
__decorate$
|
|
5746
|
+
__decorate$k([
|
|
5732
5747
|
registerComponent.RegisterComponent({
|
|
5733
5748
|
name: 'nylas-custom-booking-flow',
|
|
5734
5749
|
eventToProps: {},
|
|
5735
5750
|
fireRegisterEvent: true,
|
|
5736
5751
|
}),
|
|
5737
|
-
__metadata$
|
|
5738
|
-
__metadata$
|
|
5739
|
-
__metadata$
|
|
5752
|
+
__metadata$k("design:type", Function),
|
|
5753
|
+
__metadata$k("design:paramtypes", []),
|
|
5754
|
+
__metadata$k("design:returntype", void 0)
|
|
5740
5755
|
], NylasCustomBookingFlow.prototype, "render", null);
|
|
5741
5756
|
NylasCustomBookingFlow.style = NylasCustomBookingFlowStyle0;
|
|
5742
5757
|
|
|
5743
5758
|
const nylasCustomEventSlugCss = ":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;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:1;margin-top:1px;color:var(--nylas-base-400);font-weight:500;font-size:24px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon{margin-right:0.25rem;padding:0 0.75rem;height:100%;display:flex;align-items:center;right:0;cursor:pointer;user-select:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon.disabled{cursor:not-allowed}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:hover svg path{fill:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:active svg path{fill:var(--nylas-base-500)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon .copied{display:flex;align-items:center;font-size:0.875rem;gap:0.125rem}";
|
|
5744
5759
|
const NylasCustomEventSlugStyle0 = nylasCustomEventSlugCss;
|
|
5745
5760
|
|
|
5746
|
-
var __decorate$
|
|
5761
|
+
var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5747
5762
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5748
5763
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5749
5764
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5753,7 +5768,7 @@ var __decorate$h = (undefined && undefined.__decorate) || function (decorators,
|
|
|
5753
5768
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5754
5769
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5755
5770
|
};
|
|
5756
|
-
var __metadata$
|
|
5771
|
+
var __metadata$j = (undefined && undefined.__metadata) || function (k, v) {
|
|
5757
5772
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5758
5773
|
return Reflect.metadata(k, v);
|
|
5759
5774
|
};
|
|
@@ -5794,6 +5809,7 @@ const NylasCustomEventSlug = class {
|
|
|
5794
5809
|
this.selectedConfigurationChangedHandler(this.selectedConfiguration);
|
|
5795
5810
|
}
|
|
5796
5811
|
else {
|
|
5812
|
+
console.log('No selected configuration found');
|
|
5797
5813
|
this.urlSlug = this.defaultUrlSlug || '';
|
|
5798
5814
|
}
|
|
5799
5815
|
}
|
|
@@ -5875,7 +5891,7 @@ const NylasCustomEventSlug = class {
|
|
|
5875
5891
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
5876
5892
|
}; }
|
|
5877
5893
|
};
|
|
5878
|
-
__decorate$
|
|
5894
|
+
__decorate$j([
|
|
5879
5895
|
registerComponent.RegisterComponent({
|
|
5880
5896
|
name: 'nylas-custom-event-slug',
|
|
5881
5897
|
stateToProps: new Map([
|
|
@@ -5892,16 +5908,16 @@ __decorate$h([
|
|
|
5892
5908
|
},
|
|
5893
5909
|
fireRegisterEvent: true,
|
|
5894
5910
|
}),
|
|
5895
|
-
__metadata$
|
|
5896
|
-
__metadata$
|
|
5897
|
-
__metadata$
|
|
5911
|
+
__metadata$j("design:type", Function),
|
|
5912
|
+
__metadata$j("design:paramtypes", []),
|
|
5913
|
+
__metadata$j("design:returntype", void 0)
|
|
5898
5914
|
], NylasCustomEventSlug.prototype, "render", null);
|
|
5899
5915
|
NylasCustomEventSlug.style = NylasCustomEventSlugStyle0;
|
|
5900
5916
|
|
|
5901
5917
|
const nylasCustomizeBookingSettingsCss = ":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;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}";
|
|
5902
5918
|
const NylasCustomizeBookingSettingsStyle0 = nylasCustomizeBookingSettingsCss;
|
|
5903
5919
|
|
|
5904
|
-
var __decorate$
|
|
5920
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5905
5921
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5906
5922
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5907
5923
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5911,7 +5927,7 @@ var __decorate$g = (undefined && undefined.__decorate) || function (decorators,
|
|
|
5911
5927
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5912
5928
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5913
5929
|
};
|
|
5914
|
-
var __metadata$
|
|
5930
|
+
var __metadata$i = (undefined && undefined.__metadata) || function (k, v) {
|
|
5915
5931
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5916
5932
|
return Reflect.metadata(k, v);
|
|
5917
5933
|
};
|
|
@@ -5961,9 +5977,9 @@ const NylasCustomizeBookingSettings = class {
|
|
|
5961
5977
|
this.selectedConfigurationChangedHandler(this.selectedConfiguration);
|
|
5962
5978
|
}
|
|
5963
5979
|
else {
|
|
5964
|
-
this.allowGuestsToInvite =
|
|
5965
|
-
this.hideCancellationOptions =
|
|
5966
|
-
this.hideReschedulingOptions =
|
|
5980
|
+
this.allowGuestsToInvite = !this.defaultHideAdditionalGuests;
|
|
5981
|
+
this.hideCancellationOptions = this.defaultHideCancellationOptions;
|
|
5982
|
+
this.hideReschedulingOptions = this.defaultHideReschedulingOptions;
|
|
5967
5983
|
}
|
|
5968
5984
|
}
|
|
5969
5985
|
componentWillUpdate() {
|
|
@@ -6007,7 +6023,7 @@ const NylasCustomizeBookingSettings = class {
|
|
|
6007
6023
|
}
|
|
6008
6024
|
render() {
|
|
6009
6025
|
const showComponent = typeof this.hideCancellationOptions === 'boolean' && typeof this.hideReschedulingOptions === 'boolean' && typeof this.allowGuestsToInvite === 'boolean';
|
|
6010
|
-
return (index$1.h(index$1.Host, { key: '
|
|
6026
|
+
return (index$1.h(index$1.Host, { key: '472a3a5b7b439666b54a4b6f22b702a923063c83' }, showComponent && (index$1.h("div", { class: "nylas-customize-booking-settings", part: "ncbs" }, index$1.h("div", { class: "header", part: "ncbs__header" }, index$1.h("h3", null, "Additional settings"), index$1.h("p", null, "Booking settings for the event.")), index$1.h("div", { class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, index$1.h("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, index$1.h("checkbox-component", { name: "hide_additional_guests", label: "Allow guests to invite additional guests.", checked: this.allowGuestsToInvite }, index$1.h("span", { slot: "label", class: "label" }, index$1.h("p", { class: "label-contents" }, "Allow guests to invite additional guests.")))), index$1.h("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, index$1.h("checkbox-component", { name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, index$1.h("span", { slot: "label", class: "label" }, index$1.h("p", { class: "label-contents" }, "Hide rescheduling option."), index$1.h("tooltip-component", { id: "reschedule" }, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "Hide the\u00A0", index$1.h("strong", null, "Reschedule"), "\u00A0button in the booking confirmation and email notifications."))))), index$1.h("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, index$1.h("checkbox-component", { name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, index$1.h("span", { slot: "label", class: "label" }, index$1.h("p", { class: "label-contents" }, "Hide cancellation option."), index$1.h("tooltip-component", { id: "cancel" }, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "Hide the\u00A0", index$1.h("strong", null, "Cancel"), "\u00A0button in the booking confirmation and email notifications."))))))))));
|
|
6011
6027
|
}
|
|
6012
6028
|
static get formAssociated() { return true; }
|
|
6013
6029
|
get host() { return index$1.getElement(this); }
|
|
@@ -6016,22 +6032,22 @@ const NylasCustomizeBookingSettings = class {
|
|
|
6016
6032
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
6017
6033
|
}; }
|
|
6018
6034
|
};
|
|
6019
|
-
__decorate$
|
|
6035
|
+
__decorate$i([
|
|
6020
6036
|
registerComponent.RegisterComponent({
|
|
6021
6037
|
name: 'nylas-customize-booking-settings',
|
|
6022
6038
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
6023
6039
|
fireRegisterEvent: true,
|
|
6024
6040
|
}),
|
|
6025
|
-
__metadata$
|
|
6026
|
-
__metadata$
|
|
6027
|
-
__metadata$
|
|
6041
|
+
__metadata$i("design:type", Function),
|
|
6042
|
+
__metadata$i("design:paramtypes", []),
|
|
6043
|
+
__metadata$i("design:returntype", void 0)
|
|
6028
6044
|
], NylasCustomizeBookingSettings.prototype, "render", null);
|
|
6029
6045
|
NylasCustomizeBookingSettings.style = NylasCustomizeBookingSettingsStyle0;
|
|
6030
6046
|
|
|
6031
6047
|
const nylasEventDescriptionCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}";
|
|
6032
6048
|
const NylasEventDescriptionStyle0 = nylasEventDescriptionCss;
|
|
6033
6049
|
|
|
6034
|
-
var __decorate$
|
|
6050
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6035
6051
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6036
6052
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
6037
6053
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6041,7 +6057,7 @@ var __decorate$f = (undefined && undefined.__decorate) || function (decorators,
|
|
|
6041
6057
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6042
6058
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6043
6059
|
};
|
|
6044
|
-
var __metadata$
|
|
6060
|
+
var __metadata$h = (undefined && undefined.__metadata) || function (k, v) {
|
|
6045
6061
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
6046
6062
|
return Reflect.metadata(k, v);
|
|
6047
6063
|
};
|
|
@@ -6097,7 +6113,7 @@ const NylasEventDescription = class {
|
|
|
6097
6113
|
this.valueChanged.emit({ value: value, name: this.name });
|
|
6098
6114
|
}
|
|
6099
6115
|
render() {
|
|
6100
|
-
return (index$1.h(index$1.Host, { key: '
|
|
6116
|
+
return (index$1.h(index$1.Host, { key: '6a7fc19449be05b4b6207692d5ceec94347f913e' }, index$1.h("div", { key: '8e0d79a310e1cccf1d9b7772703714907b01688f', class: "nylas-event-description", part: "nedesc" }, index$1.h("label", { key: 'aac3fa43d77623ce9f51cd4aa81075c779a9da3e', htmlFor: "description" }, "Event description", index$1.h("span", { key: 'a62743418230bdc20188052795c6ecb9e7ad2903', class: "label-icon" }, index$1.h("tooltip-component", { key: '7842c029c8f46d97f65cd321668cc6c7243b9787' }, index$1.h("info-icon", { key: 'df7e6389587e8a76f9dcb8b57c7373f747569a0b', slot: "tooltip-icon" }), index$1.h("span", { key: 'a8c37a68325c6d674c2f8ee6bdb8999d5f5d4b04', slot: "tooltip-content" }, "The event description appears in the Scheduler Editor\u2019s manager view.")))), index$1.h("textarea", { key: '92938097ecfa8812dea7f663f9f93439398e856f', id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: e => this.handleChange(e) }))));
|
|
6101
6117
|
}
|
|
6102
6118
|
static get formAssociated() { return true; }
|
|
6103
6119
|
get host() { return index$1.getElement(this); }
|
|
@@ -6106,23 +6122,23 @@ const NylasEventDescription = class {
|
|
|
6106
6122
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
6107
6123
|
}; }
|
|
6108
6124
|
};
|
|
6109
|
-
__decorate$
|
|
6125
|
+
__decorate$h([
|
|
6110
6126
|
registerComponent.RegisterComponent({
|
|
6111
6127
|
name: 'nylas-event-description',
|
|
6112
6128
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
6113
6129
|
eventToProps: {},
|
|
6114
6130
|
fireRegisterEvent: true,
|
|
6115
6131
|
}),
|
|
6116
|
-
__metadata$
|
|
6117
|
-
__metadata$
|
|
6118
|
-
__metadata$
|
|
6132
|
+
__metadata$h("design:type", Function),
|
|
6133
|
+
__metadata$h("design:paramtypes", []),
|
|
6134
|
+
__metadata$h("design:returntype", void 0)
|
|
6119
6135
|
], NylasEventDescription.prototype, "render", null);
|
|
6120
6136
|
NylasEventDescription.style = NylasEventDescriptionStyle0;
|
|
6121
6137
|
|
|
6122
6138
|
const nylasEventDurationCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}";
|
|
6123
6139
|
const NylasEventDurationStyle0 = nylasEventDurationCss;
|
|
6124
6140
|
|
|
6125
|
-
var __decorate$
|
|
6141
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6126
6142
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6127
6143
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
6128
6144
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6132,7 +6148,7 @@ var __decorate$e = (undefined && undefined.__decorate) || function (decorators,
|
|
|
6132
6148
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6133
6149
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6134
6150
|
};
|
|
6135
|
-
var __metadata$
|
|
6151
|
+
var __metadata$g = (undefined && undefined.__metadata) || function (k, v) {
|
|
6136
6152
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
6137
6153
|
return Reflect.metadata(k, v);
|
|
6138
6154
|
};
|
|
@@ -6185,7 +6201,6 @@ const NylasEventDuration = class {
|
|
|
6185
6201
|
componentWillLoad() {
|
|
6186
6202
|
utils.debug('nylas-event-duration', 'componentWillLoad');
|
|
6187
6203
|
this.host.setAttribute('name', this.name);
|
|
6188
|
-
this.setDurationMintueOptions();
|
|
6189
6204
|
}
|
|
6190
6205
|
componentDidLoad() {
|
|
6191
6206
|
utils.debug('nylas-event-duration', 'componentDidLoad');
|
|
@@ -6195,7 +6210,10 @@ const NylasEventDuration = class {
|
|
|
6195
6210
|
this.duration = this.duration ? this.duration : this.eventDurationMinutes ? (this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes) : 30;
|
|
6196
6211
|
this.durationMinutes = this.durationMinutes ? this.durationMinutes : this.duration ? this.duration : 30;
|
|
6197
6212
|
this.durationIncrement = this.durationIncrement ? this.durationIncrement : this.duration >= 60 ? 60 : 1;
|
|
6198
|
-
this.
|
|
6213
|
+
this.setDurationMintueOptions();
|
|
6214
|
+
if (typeof this.internals.setFormValue === 'function') {
|
|
6215
|
+
this.internals.setFormValue(this.durationMinutes.toString(), 'duration');
|
|
6216
|
+
}
|
|
6199
6217
|
}
|
|
6200
6218
|
disconnectedCallback() {
|
|
6201
6219
|
utils.debug('nylas-event-duration', 'disconnectedCallback');
|
|
@@ -6245,7 +6263,7 @@ const NylasEventDuration = class {
|
|
|
6245
6263
|
{ value: 1, label: 'minute' },
|
|
6246
6264
|
{ value: 60, label: 'hour' },
|
|
6247
6265
|
];
|
|
6248
|
-
return (index$1.h(index$1.Host, { key: '
|
|
6266
|
+
return (index$1.h(index$1.Host, { key: 'f6b60528b9c3f2978ac12beae9bf049a9b90fec5' }, index$1.h("div", { key: 'f7c778d981fa1d33ceed820d500e6820a4f1223c', class: "nylas-event-duration", part: "ned" }, index$1.h("label", { key: 'f461dcfeda616f50820d6cdacb5dfded22ec7aff', htmlFor: "duration" }, "Event duration", index$1.h("span", { key: '086d2458ad14f00f718fb9106c45d63576c9f734', class: "required" }, "*")), index$1.h("div", { key: 'cf27800dec77fbe74c9428de92fa042a419ddb25', class: "nylas-event-duration__wrapper" }, index$1.h("input-dropdown", { key: '06ed64927a69ca96bb9f9cc5cfede6d55c310598', name: 'event-duration', options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find(i => i.value == this.duration) }), this.durationIncrement && (index$1.h("select-dropdown", { name: 'event-duration', options: durationOptions, pluralizedLabel: this.duration > 1 ? 's' : '', exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: durationOptions.find(i => i.value == this.durationIncrement), withSearch: false }))))));
|
|
6249
6267
|
}
|
|
6250
6268
|
static get formAssociated() { return true; }
|
|
6251
6269
|
get host() { return index$1.getElement(this); }
|
|
@@ -6255,23 +6273,23 @@ const NylasEventDuration = class {
|
|
|
6255
6273
|
"durationMinutes": ["durationMinutesChangedHandler"]
|
|
6256
6274
|
}; }
|
|
6257
6275
|
};
|
|
6258
|
-
__decorate$
|
|
6276
|
+
__decorate$g([
|
|
6259
6277
|
registerComponent.RegisterComponent({
|
|
6260
6278
|
name: 'nylas-event-duration',
|
|
6261
6279
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
6262
6280
|
eventToProps: {},
|
|
6263
6281
|
fireRegisterEvent: true,
|
|
6264
6282
|
}),
|
|
6265
|
-
__metadata$
|
|
6266
|
-
__metadata$
|
|
6267
|
-
__metadata$
|
|
6283
|
+
__metadata$g("design:type", Function),
|
|
6284
|
+
__metadata$g("design:paramtypes", []),
|
|
6285
|
+
__metadata$g("design:returntype", void 0)
|
|
6268
6286
|
], NylasEventDuration.prototype, "render", null);
|
|
6269
6287
|
NylasEventDuration.style = NylasEventDurationStyle0;
|
|
6270
6288
|
|
|
6271
6289
|
const nylasEventInfoCss = ":host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}";
|
|
6272
6290
|
const NylasEventInfoStyle0 = nylasEventInfoCss;
|
|
6273
6291
|
|
|
6274
|
-
var __decorate$
|
|
6292
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6275
6293
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6276
6294
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
6277
6295
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6281,7 +6299,7 @@ var __decorate$d = (undefined && undefined.__decorate) || function (decorators,
|
|
|
6281
6299
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6282
6300
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6283
6301
|
};
|
|
6284
|
-
var __metadata$
|
|
6302
|
+
var __metadata$f = (undefined && undefined.__metadata) || function (k, v) {
|
|
6285
6303
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
6286
6304
|
return Reflect.metadata(k, v);
|
|
6287
6305
|
};
|
|
@@ -6310,27 +6328,27 @@ const NylasEventInfo = class {
|
|
|
6310
6328
|
utils.debug('nylas-event-info', 'disconnectedCallback');
|
|
6311
6329
|
}
|
|
6312
6330
|
render() {
|
|
6313
|
-
return (index$1.h(index$1.Host, { key: '
|
|
6331
|
+
return (index$1.h(index$1.Host, { key: 'be80a4e687ce223a8e52bbabc2e8acadcb194b11' }, index$1.h("nylas-form-card", { key: 'c96b77795ec2516889acf0f78c5eb723b26dd89c', exportparts: "nfc__header: nei__header" }, index$1.h("h1", { key: '890113187adcd6be1ab1d1beb489fe3a80124617', slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, "Event information"), index$1.h("div", { key: '44eaaae3833654530706dc93077b43a7597acc2c', slot: "content", class: "nylas-event-info__content" }, index$1.h("slot", { key: '7af737a67cb007c0ede7db5aa075828311d98da3', name: "inputs" })))));
|
|
6314
6332
|
}
|
|
6315
6333
|
static get formAssociated() { return true; }
|
|
6316
6334
|
get el() { return index$1.getElement(this); }
|
|
6317
6335
|
};
|
|
6318
|
-
__decorate$
|
|
6336
|
+
__decorate$f([
|
|
6319
6337
|
registerComponent.RegisterComponent({
|
|
6320
6338
|
name: 'nylas-event-info',
|
|
6321
6339
|
eventToProps: {},
|
|
6322
6340
|
fireRegisterEvent: true,
|
|
6323
6341
|
}),
|
|
6324
|
-
__metadata$
|
|
6325
|
-
__metadata$
|
|
6326
|
-
__metadata$
|
|
6342
|
+
__metadata$f("design:type", Function),
|
|
6343
|
+
__metadata$f("design:paramtypes", []),
|
|
6344
|
+
__metadata$f("design:returntype", void 0)
|
|
6327
6345
|
], NylasEventInfo.prototype, "render", null);
|
|
6328
6346
|
NylasEventInfo.style = NylasEventInfoStyle0;
|
|
6329
6347
|
|
|
6330
6348
|
const nylasEventLimitsCss = ":host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}";
|
|
6331
6349
|
const NylasEventLimitsStyle0 = nylasEventLimitsCss;
|
|
6332
6350
|
|
|
6333
|
-
var __decorate$
|
|
6351
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6334
6352
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6335
6353
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
6336
6354
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6340,7 +6358,7 @@ var __decorate$c = (undefined && undefined.__decorate) || function (decorators,
|
|
|
6340
6358
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6341
6359
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6342
6360
|
};
|
|
6343
|
-
var __metadata$
|
|
6361
|
+
var __metadata$e = (undefined && undefined.__metadata) || function (k, v) {
|
|
6344
6362
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
6345
6363
|
return Reflect.metadata(k, v);
|
|
6346
6364
|
};
|
|
@@ -6369,27 +6387,27 @@ const NylasEventLimits = class {
|
|
|
6369
6387
|
utils.debug('nylas-event-limits', 'disconnectedCallback');
|
|
6370
6388
|
}
|
|
6371
6389
|
render() {
|
|
6372
|
-
return (index$1.h(index$1.Host, { key: '
|
|
6390
|
+
return (index$1.h(index$1.Host, { key: '6a28113e3b403869e77cc3a2c9c3a1bea217dc52' }, index$1.h("nylas-form-card", { key: 'cf9004d044222d796ae59df58737ad9719a20576', exportparts: "nfc__header: nel__header" }, index$1.h("h1", { key: 'ffeeb7a5741c9f07fb4f9bd84016b1707e2b55b7', slot: "header-title", class: "nylas-event-limits__title" }, "Event limits"), index$1.h("div", { key: '7b51592d95736f860ec805950275a18e9d914c32', slot: "content", class: "nylas-event-limits__content" }, index$1.h("slot", { key: '53e9098d736eedf5b22e1b8ae712ec22c8ca865e', name: "inputs" })))));
|
|
6373
6391
|
}
|
|
6374
6392
|
static get formAssociated() { return true; }
|
|
6375
6393
|
get el() { return index$1.getElement(this); }
|
|
6376
6394
|
};
|
|
6377
|
-
__decorate$
|
|
6395
|
+
__decorate$e([
|
|
6378
6396
|
registerComponent.RegisterComponent({
|
|
6379
6397
|
name: 'nylas-event-limits',
|
|
6380
6398
|
eventToProps: {},
|
|
6381
6399
|
fireRegisterEvent: true,
|
|
6382
6400
|
}),
|
|
6383
|
-
__metadata$
|
|
6384
|
-
__metadata$
|
|
6385
|
-
__metadata$
|
|
6401
|
+
__metadata$e("design:type", Function),
|
|
6402
|
+
__metadata$e("design:paramtypes", []),
|
|
6403
|
+
__metadata$e("design:returntype", void 0)
|
|
6386
6404
|
], NylasEventLimits.prototype, "render", null);
|
|
6387
6405
|
NylasEventLimits.style = NylasEventLimitsStyle0;
|
|
6388
6406
|
|
|
6389
6407
|
const nylasEventLocationCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
6390
6408
|
const NylasEventLocationStyle0 = nylasEventLocationCss;
|
|
6391
6409
|
|
|
6392
|
-
var __decorate$
|
|
6410
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6393
6411
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6394
6412
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
6395
6413
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6399,10 +6417,17 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
|
|
|
6399
6417
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6400
6418
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6401
6419
|
};
|
|
6402
|
-
var __metadata$
|
|
6420
|
+
var __metadata$d = (undefined && undefined.__metadata) || function (k, v) {
|
|
6403
6421
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
6404
6422
|
return Reflect.metadata(k, v);
|
|
6405
6423
|
};
|
|
6424
|
+
const labels = {
|
|
6425
|
+
none: 'None',
|
|
6426
|
+
custom: 'Custom location',
|
|
6427
|
+
google: 'Google Meet',
|
|
6428
|
+
microsoft: 'Microsoft Teams',
|
|
6429
|
+
zoom: 'Zoom Meeting',
|
|
6430
|
+
};
|
|
6406
6431
|
const NylasEventLocation = class {
|
|
6407
6432
|
constructor(hostRef) {
|
|
6408
6433
|
index$1.registerInstance(this, hostRef);
|
|
@@ -6423,7 +6448,7 @@ const NylasEventLocation = class {
|
|
|
6423
6448
|
this.eventLocation = undefined;
|
|
6424
6449
|
this.location = this.eventLocation ?? '';
|
|
6425
6450
|
this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : '';
|
|
6426
|
-
this.selectedLocationOption = this.eventConferencing ? this.setDefaultLocationOption(this.eventConferencing, this.location) : '';
|
|
6451
|
+
this.selectedLocationOption = this.eventConferencing ? this.setDefaultLocationOption(this.eventConferencing, this.location) : 'none';
|
|
6427
6452
|
this.userProviderState = this.userProvider ?? '';
|
|
6428
6453
|
}
|
|
6429
6454
|
elementNameChangedHandler(newValue) {
|
|
@@ -6550,33 +6575,50 @@ const NylasEventLocation = class {
|
|
|
6550
6575
|
this.setFormValue(value, this.name);
|
|
6551
6576
|
this.valueChanged.emit({ value: value, name: this.name });
|
|
6552
6577
|
}
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6578
|
+
getIcon(location) {
|
|
6579
|
+
switch (location) {
|
|
6580
|
+
case 'none':
|
|
6581
|
+
return index$1.h("location-off-icon", null);
|
|
6582
|
+
case 'custom':
|
|
6583
|
+
return index$1.h("location-icon", null);
|
|
6584
|
+
case 'google':
|
|
6585
|
+
return index$1.h("google-meet-icon", null);
|
|
6586
|
+
case 'microsoft':
|
|
6587
|
+
return index$1.h("microsoft-teams-icon", null);
|
|
6588
|
+
case 'zoom':
|
|
6589
|
+
return index$1.h("zoom-icon", null);
|
|
6590
|
+
}
|
|
6591
|
+
}
|
|
6592
|
+
getLabelHTML(location) {
|
|
6593
|
+
return (index$1.h("span", { class: "location-label", style: {
|
|
6594
|
+
display: 'flex',
|
|
6595
|
+
alignItems: 'center',
|
|
6596
|
+
gap: '16px',
|
|
6597
|
+
width: '-webkit-fill-available',
|
|
6598
|
+
} }, this.getIcon(location), index$1.h("span", { class: "location-text", style: {
|
|
6599
|
+
fontSize: '14px',
|
|
6600
|
+
fontWeight: '400',
|
|
6601
|
+
} }, labels[location])));
|
|
6602
|
+
}
|
|
6603
|
+
render() {
|
|
6604
|
+
const locationOptions = [
|
|
6605
|
+
{ value: 'none', label: labels['none'], labelHTML: this.getLabelHTML('none') },
|
|
6606
|
+
{ value: 'custom', label: labels['custom'], labelHTML: this.getLabelHTML('custom') },
|
|
6607
|
+
];
|
|
6558
6608
|
switch (this.userProviderState) {
|
|
6559
6609
|
case 'google':
|
|
6560
|
-
locationOptions.push({ value: 'google', label: '
|
|
6610
|
+
locationOptions.push({ value: 'google', label: labels['google'], labelHTML: this.getLabelHTML('google') });
|
|
6561
6611
|
break;
|
|
6562
6612
|
case 'microsoft':
|
|
6563
|
-
locationOptions.push({ value: 'microsoft', label: '
|
|
6613
|
+
locationOptions.push({ value: 'microsoft', label: labels['microsoft'], labelHTML: this.getLabelHTML('microsoft') });
|
|
6564
6614
|
break;
|
|
6565
6615
|
}
|
|
6566
6616
|
if (this.conferenceProviders?.['zoom']) {
|
|
6567
|
-
locationOptions.push({ value: 'zoom', label: '
|
|
6617
|
+
locationOptions.push({ value: 'zoom', label: labels['zoom'], labelHTML: this.getLabelHTML('zoom') });
|
|
6568
6618
|
}
|
|
6569
6619
|
const newLocationOptions = [...locationOptions];
|
|
6570
6620
|
const defaultOption = locationOptions.find(i => i.value == this.selectedLocationOption);
|
|
6571
|
-
|
|
6572
|
-
none: index$1.h("location-off-icon", { key: '2482c1d7540ae00fddbff24ddf0b4189685e3db4' }),
|
|
6573
|
-
custom: index$1.h("location-icon", { key: 'aeb4445371396bad7b3062e0a0ce62f4227f97c4' }),
|
|
6574
|
-
google: index$1.h("google-meet-icon", { key: '6e790972192ecca0900dea5904d3f318d19341cc' }),
|
|
6575
|
-
microsoft: index$1.h("microsoft-teams-icon", { key: '1b372c0129879cf9c16b015ba4fdb6d1cee40597' }),
|
|
6576
|
-
zoom: index$1.h("zoom-icon", { key: '1b46c44aa6db92e2e136bbab6fa98f17376da160' }),
|
|
6577
|
-
};
|
|
6578
|
-
const locationIcon = icons[this.selectedLocationOption];
|
|
6579
|
-
return (index$1.h(index$1.Host, { key: 'f2870194d69bf49afadd49f87c42fb085f60b085' }, index$1.h("div", { key: '247dd130e13d9e8287da1f5d83656f40a2ad313d', class: "nylas-event-location", part: "nel" }, index$1.h("label", { key: 'b7d548b8522830155db8fd2fc7eca8793e8bb8e1', htmlFor: "location" }, "Event meeting or location", index$1.h("span", { key: '587c6c27f6f89ed5a263372123bd509b5984025f', class: "label-icon" }, index$1.h("tooltip-component", { key: '0dad9cbc3627fe4c549fbdba418119b205b1e812' }, index$1.h("info-icon", { key: '6a3938dc0cee21a1c8379b33720ada33c96edacd', slot: "tooltip-icon" }), index$1.h("span", { key: 'dbff5af98e90895815712d4e55bf57c3fdd2f5c4', slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), index$1.h("div", { key: '0fe09f3fc8c30a8203a1207357f8e20a81a4bf28', class: "location-input" }, defaultOption?.label && (index$1.h("select-dropdown", { withSearch: false, name: "location", options: newLocationOptions, defaultSelectedOption: defaultOption, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, index$1.h("span", { slot: "select-icon" }, locationIcon))), this.selectedLocationOption === 'custom' && (index$1.h("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: e => this.handleChange(e) }))))));
|
|
6621
|
+
return (index$1.h(index$1.Host, { key: '9ace3d0c618879dede4f6ea52aed41a0e193352f' }, index$1.h("div", { key: '06f62cedba0696aabc59058f9d1cce12819f350b', class: "nylas-event-location", part: "nel" }, index$1.h("label", { key: '584acc644bdeddcb319395b531a7dad90a165452', htmlFor: "location" }, "Event meeting or location", index$1.h("span", { key: 'a4e2414ab1cf5c83c5f487a21d22d5c66f5b945d', class: "label-icon" }, index$1.h("tooltip-component", { key: '41a0429b5987bd6359c2fd42e8ab4abf67a3f83e' }, index$1.h("info-icon", { key: '8723ecf7cd91edee84b3ca28ffba0c4b3d3967f0', slot: "tooltip-icon" }), index$1.h("span", { key: 'e0201540705e2aa0a94357fd2dd1af95887abe71', slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), index$1.h("div", { key: 'e983eb85462b31b665edad087c4aea7259c85407', class: "location-input" }, defaultOption?.label && (index$1.h("select-dropdown", { withSearch: false, name: "location", options: newLocationOptions, defaultSelectedOption: defaultOption, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, index$1.h("span", { slot: "select-icon" }, this.getIcon(this.selectedLocationOption)))), this.selectedLocationOption === 'custom' && (index$1.h("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: e => this.handleChange(e) }))))));
|
|
6580
6622
|
}
|
|
6581
6623
|
static get formAssociated() { return true; }
|
|
6582
6624
|
get host() { return index$1.getElement(this); }
|
|
@@ -6585,7 +6627,7 @@ const NylasEventLocation = class {
|
|
|
6585
6627
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
6586
6628
|
}; }
|
|
6587
6629
|
};
|
|
6588
|
-
__decorate$
|
|
6630
|
+
__decorate$d([
|
|
6589
6631
|
registerComponent.RegisterComponent({
|
|
6590
6632
|
name: 'nylas-event-location',
|
|
6591
6633
|
stateToProps: new Map([
|
|
@@ -6596,16 +6638,16 @@ __decorate$b([
|
|
|
6596
6638
|
eventToProps: {},
|
|
6597
6639
|
fireRegisterEvent: true,
|
|
6598
6640
|
}),
|
|
6599
|
-
__metadata$
|
|
6600
|
-
__metadata$
|
|
6601
|
-
__metadata$
|
|
6641
|
+
__metadata$d("design:type", Function),
|
|
6642
|
+
__metadata$d("design:paramtypes", []),
|
|
6643
|
+
__metadata$d("design:returntype", void 0)
|
|
6602
6644
|
], NylasEventLocation.prototype, "render", null);
|
|
6603
6645
|
NylasEventLocation.style = NylasEventLocationStyle0;
|
|
6604
6646
|
|
|
6605
6647
|
const nylasEventTitleCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:flex;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}";
|
|
6606
6648
|
const NylasEventTitleStyle0 = nylasEventTitleCss;
|
|
6607
6649
|
|
|
6608
|
-
var __decorate$
|
|
6650
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6609
6651
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6610
6652
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
6611
6653
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6615,7 +6657,7 @@ var __decorate$a = (undefined && undefined.__decorate) || function (decorators,
|
|
|
6615
6657
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6616
6658
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6617
6659
|
};
|
|
6618
|
-
var __metadata$
|
|
6660
|
+
var __metadata$c = (undefined && undefined.__metadata) || function (k, v) {
|
|
6619
6661
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
6620
6662
|
return Reflect.metadata(k, v);
|
|
6621
6663
|
};
|
|
@@ -6837,11 +6879,16 @@ const NylasEventTitle = class {
|
|
|
6837
6879
|
this.resetDropdown();
|
|
6838
6880
|
}
|
|
6839
6881
|
else if (event.key === 'Backspace' || event.key === 'Delete') {
|
|
6840
|
-
|
|
6841
|
-
|
|
6882
|
+
const parentNode = selection?.node?.parentNode;
|
|
6883
|
+
if (selection?.currentText.startsWith('${') && parentNode) {
|
|
6884
|
+
event.preventDefault();
|
|
6885
|
+
parentNode.removeChild(selection.node);
|
|
6886
|
+
parentNode.remove();
|
|
6887
|
+
this.resetDropdown();
|
|
6842
6888
|
}
|
|
6843
|
-
if (this.titleRef.textContent === '' || selection?.
|
|
6889
|
+
if (this.titleRef.textContent === '' || selection?.allSelected) {
|
|
6844
6890
|
this.titleRef.innerHTML = '';
|
|
6891
|
+
this.updateEventTitle('');
|
|
6845
6892
|
}
|
|
6846
6893
|
}
|
|
6847
6894
|
}
|
|
@@ -6921,10 +6968,10 @@ const NylasEventTitle = class {
|
|
|
6921
6968
|
return (index$1.h("div", { class: "token-label" }, index$1.h("span", { class: "token" }, token.token), index$1.h("span", { class: "description" }, token.description)));
|
|
6922
6969
|
}
|
|
6923
6970
|
render() {
|
|
6924
|
-
return (index$1.h(index$1.Host, { key: '
|
|
6971
|
+
return (index$1.h(index$1.Host, { key: '3a6858cea6ad427bb8f7046e4d409c44d9d57467' }, index$1.h("div", { key: '26574b9f7c76628771e584d1c3943b2ce9b77ce0', class: "nylas-event-title", part: "net" }, index$1.h("label", { key: 'b6bab982d9b8a091ee1c9a66b5d24b3050e08817', htmlFor: "title" }, "Event title", index$1.h("span", { key: '34b1ba7719d37f6af0d3c84e3fe1c251625848b1', class: "required" }, "*")), index$1.h("div", { key: '0fcbdee8625b13720b31df47ddb76bdba6f384c6', class: {
|
|
6925
6972
|
title: true,
|
|
6926
6973
|
error: this.validationError !== '',
|
|
6927
|
-
}, part: "net__title", ref: el => (this.titleRef = el), contentEditable: "true", onInput: e => this.handleChange(e), onKeyDown: event => this.handleInputKeyDown(event) }), this.showTokens && this.filteredTokens?.length > 0 && (index$1.h("div", { class: "token-options", part: "net__dropdown-content" }, index$1.h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map(option => (index$1.h("li", { tabindex: "0", key: option.label, id: option.label, class: { active: this.ariaActivedescendant === option.label }, onClick: e => this.selectOption(e, option), role: "option" }, this.getLabelHTML(option.labelHTML))))))), index$1.h("span", { key: '
|
|
6974
|
+
}, part: "net__title", ref: el => (this.titleRef = el), contentEditable: "true", onInput: e => this.handleChange(e), onKeyDown: event => this.handleInputKeyDown(event) }), this.showTokens && this.filteredTokens?.length > 0 && (index$1.h("div", { class: "token-options", part: "net__dropdown-content" }, index$1.h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map(option => (index$1.h("li", { tabindex: "0", key: option.label, id: option.label, class: { active: this.ariaActivedescendant === option.label }, onClick: e => this.selectOption(e, option), role: "option" }, this.getLabelHTML(option.labelHTML))))))), index$1.h("span", { key: '8c267fb019bc2f4a7ec9bd771c7ebdbd4e36860e', class: "help-text" }, "Create a dynamic templated event title by typing ", index$1.h("code", { key: '73fff78bf0ef47b1a4880b88630285c5565348e7' }, "$"), " and selecting a template item.", index$1.h("span", { key: '64c431fb78eef320cdca1e426e4290f1663fe756', class: "label-icon" }, index$1.h("tooltip-component", { key: 'b8f4ce46c4f53f66d50b6121dbc76360972638f9' }, index$1.h("info-icon", { key: '038824ecf2006ce2851de30c1538c30d96707ca9', slot: "tooltip-icon" }), index$1.h("span", { key: '0fefb16b80e9c43a7f46e1d5f72d12ca39cdc348', slot: "tooltip-content" }, "For example, Interview with ", index$1.h("code", { key: 'df208a8bb8907416908a6cdbc0edba219e924513' }, '${invitee}'))))), this.validationError != '' && index$1.h("span", { class: "error-message" }, this.validationError))));
|
|
6928
6975
|
}
|
|
6929
6976
|
static get formAssociated() { return true; }
|
|
6930
6977
|
get host() { return index$1.getElement(this); }
|
|
@@ -6934,23 +6981,23 @@ const NylasEventTitle = class {
|
|
|
6934
6981
|
"selectedConfiguration": ["configChangedHandler"]
|
|
6935
6982
|
}; }
|
|
6936
6983
|
};
|
|
6937
|
-
__decorate$
|
|
6984
|
+
__decorate$c([
|
|
6938
6985
|
registerComponent.RegisterComponent({
|
|
6939
6986
|
name: 'nylas-event-title',
|
|
6940
6987
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
6941
6988
|
eventToProps: {},
|
|
6942
6989
|
fireRegisterEvent: true,
|
|
6943
6990
|
}),
|
|
6944
|
-
__metadata$
|
|
6945
|
-
__metadata$
|
|
6946
|
-
__metadata$
|
|
6991
|
+
__metadata$c("design:type", Function),
|
|
6992
|
+
__metadata$c("design:paramtypes", []),
|
|
6993
|
+
__metadata$c("design:returntype", void 0)
|
|
6947
6994
|
], NylasEventTitle.prototype, "render", null);
|
|
6948
6995
|
NylasEventTitle.style = NylasEventTitleStyle0;
|
|
6949
6996
|
|
|
6950
6997
|
const nylasFeedbackFormCss = ":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}.card-wrapper{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:1rem;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}";
|
|
6951
6998
|
const NylasFeedbackFormStyle0 = nylasFeedbackFormCss;
|
|
6952
6999
|
|
|
6953
|
-
var __decorate$
|
|
7000
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6954
7001
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6955
7002
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
6956
7003
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6960,7 +7007,7 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
6960
7007
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6961
7008
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6962
7009
|
};
|
|
6963
|
-
var __metadata$
|
|
7010
|
+
var __metadata$b = (undefined && undefined.__metadata) || function (k, v) {
|
|
6964
7011
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
6965
7012
|
return Reflect.metadata(k, v);
|
|
6966
7013
|
};
|
|
@@ -7003,13 +7050,13 @@ const NylasFeedbackForm = class {
|
|
|
7003
7050
|
this.feedbackModalClosed.emit();
|
|
7004
7051
|
}
|
|
7005
7052
|
render() {
|
|
7006
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7053
|
+
return (index$1.h(index$1.Host, { key: '00514f43a6b2052ce2a4144917ccc5adc965a94a', part: "nfbf" }, index$1.h("div", { key: '4271697a749f74d3d62f611df6841dc4d7e4ef4d', class: "card-wrapper", part: "nfbfc__card" }, index$1.h("div", { key: '59271c12c04a4f78fac68534ec66b24ac9803784', class: "close-button" }, index$1.h("button-component", { key: 'de7ced90803da24ff46d2dc30f7e925b6fb760a8', tooltip: "Close", id: "close", variant: 'invisible', onClick: e => this.closeModal(e), part: "nfbf__close-button" }, index$1.h("close-icon", { key: '3f64b2db3958bf082829310126566ef58ae54f46' }))), index$1.h("div", { key: '526d959d10a00d49d66d66fe3a56bce3a03893f4', class: "header" }, index$1.h("h2", { key: '699f00cca09366e19081e0972a76a2f67d471ecc', slot: "card-title", part: "nfbf__title" }, utils.instance.t('feedbackFormTitle'))), index$1.h("div", { key: '95062b4d3557eef49fac7246526f0d413acdd7ff', class: "description title-desc" }, index$1.h("p", { key: '6806a1ae323b2f67c5fcacbb0238df86a4f32bce' }, utils.instance.t('feedbackFormDescription'))), index$1.h("textarea-component", { key: '1135f11f19f5cca1f814812c606b39c3a828bf9b', label: utils.instance.t('feedbackMessageLabel'), required: true, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: utils.instance.t('feedbackMessagePlaceholder') }), index$1.h("div", { key: '388f7897c0eb2a9d87d25b98b49d3f60363e0108', class: 'description footer-desc' }, index$1.h("p", { key: 'ab9ba37f8e5533b8480c223ad668ffb91b95ab7e' }, "By sending this report, you agree to Nylas\u2019 access to the data necessary to respond to this issue, subject to Nylas\u2019", ' ', index$1.h("a", { key: 'c1a380ed74cb1c6081ca7c557e761eab7ae5ab9d', href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), index$1.h("div", { key: 'd8da33e015c718e6c8cf59b407eb7df7efaa26f9', class: {
|
|
7007
7054
|
footer: true,
|
|
7008
|
-
} }, index$1.h("button-component", { key: '
|
|
7055
|
+
} }, index$1.h("button-component", { key: '52f9c1a0a54907f9b83167387247fc3c979ad498', variant: 'invisible', onClick: e => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${utils.instance.t('feedbackModalCloseButton')}`), index$1.h("button-component", { key: '819fc5952960c841c3a6b46af127699cd5f69c88', variant: 'primary', onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${utils.instance.t('feedbackModalSubmitButton')}`)))));
|
|
7009
7056
|
}
|
|
7010
7057
|
get host() { return index$1.getElement(this); }
|
|
7011
7058
|
};
|
|
7012
|
-
__decorate$
|
|
7059
|
+
__decorate$b([
|
|
7013
7060
|
registerComponent.RegisterComponent({
|
|
7014
7061
|
name: 'nylas-feedback-form',
|
|
7015
7062
|
stateToProps: new Map([]),
|
|
@@ -7019,16 +7066,16 @@ __decorate$9([
|
|
|
7019
7066
|
},
|
|
7020
7067
|
fireRegisterEvent: true,
|
|
7021
7068
|
}),
|
|
7022
|
-
__metadata$
|
|
7023
|
-
__metadata$
|
|
7024
|
-
__metadata$
|
|
7069
|
+
__metadata$b("design:type", Function),
|
|
7070
|
+
__metadata$b("design:paramtypes", []),
|
|
7071
|
+
__metadata$b("design:returntype", void 0)
|
|
7025
7072
|
], NylasFeedbackForm.prototype, "render", null);
|
|
7026
7073
|
NylasFeedbackForm.style = NylasFeedbackFormStyle0;
|
|
7027
7074
|
|
|
7028
7075
|
const nylasLimitFutureBookingsCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}";
|
|
7029
7076
|
const NylasLimitFutureBookingsStyle0 = nylasLimitFutureBookingsCss;
|
|
7030
7077
|
|
|
7031
|
-
var __decorate$
|
|
7078
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7032
7079
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7033
7080
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7034
7081
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7038,7 +7085,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7038
7085
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7039
7086
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7040
7087
|
};
|
|
7041
|
-
var __metadata$
|
|
7088
|
+
var __metadata$a = (undefined && undefined.__metadata) || function (k, v) {
|
|
7042
7089
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
7043
7090
|
return Reflect.metadata(k, v);
|
|
7044
7091
|
};
|
|
@@ -7129,7 +7176,7 @@ const NylasLimitFutureBookings = class {
|
|
|
7129
7176
|
}
|
|
7130
7177
|
render() {
|
|
7131
7178
|
const showTImePeriodSelector = typeof this.selectedNumber == 'number' && typeof this.selectedPeriod == 'string';
|
|
7132
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7179
|
+
return (index$1.h(index$1.Host, { key: '215b20a927344e8b41d6c1b2b01764551729e485' }, index$1.h("div", { key: 'ca577da089b5d396662cb421c6b136441cdada76', class: "nylas-limit-future-bookings", part: "nlfb" }, index$1.h("label", { key: '395b402858fb09c0fa8eb9821007878bffb991b6' }, "Limit future bookings", index$1.h("span", { key: '2b70f7c6df5e291cabb0578e490911c001d617c8', class: "label-icon" }, index$1.h("tooltip-component", { key: 'c8f9f7ca001ffc53f4302776f98787f8ff83c743' }, index$1.h("info-icon", { key: 'ab50f1feb38dcf026a1e2d56db99106dfad1f665', slot: "tooltip-icon" }), index$1.h("span", { key: '2196f08c84f1da46a5832e4f7a7fea0de46c37d3', slot: "tooltip-content" }, "The limit on how far in the future bookings can be made.")))), showTImePeriodSelector && (index$1.h("time-period-selector", { id: "limit-future-bookings", timePeriods: ['day', 'week', 'month'], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })))));
|
|
7133
7180
|
}
|
|
7134
7181
|
static get formAssociated() { return true; }
|
|
7135
7182
|
get host() { return index$1.getElement(this); }
|
|
@@ -7138,23 +7185,23 @@ const NylasLimitFutureBookings = class {
|
|
|
7138
7185
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
7139
7186
|
}; }
|
|
7140
7187
|
};
|
|
7141
|
-
__decorate$
|
|
7188
|
+
__decorate$a([
|
|
7142
7189
|
registerComponent.RegisterComponent({
|
|
7143
7190
|
name: 'nylas-limit-future-bookings',
|
|
7144
7191
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
7145
7192
|
eventToProps: {},
|
|
7146
7193
|
fireRegisterEvent: true,
|
|
7147
7194
|
}),
|
|
7148
|
-
__metadata$
|
|
7149
|
-
__metadata$
|
|
7150
|
-
__metadata$
|
|
7195
|
+
__metadata$a("design:type", Function),
|
|
7196
|
+
__metadata$a("design:paramtypes", []),
|
|
7197
|
+
__metadata$a("design:returntype", void 0)
|
|
7151
7198
|
], NylasLimitFutureBookings.prototype, "render", null);
|
|
7152
7199
|
NylasLimitFutureBookings.style = NylasLimitFutureBookingsStyle0;
|
|
7153
7200
|
|
|
7154
7201
|
const nylasMinBookingNoticeCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}";
|
|
7155
7202
|
const NylasMinBookingNoticeStyle0 = nylasMinBookingNoticeCss;
|
|
7156
7203
|
|
|
7157
|
-
var __decorate$
|
|
7204
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7158
7205
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7159
7206
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7160
7207
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7164,7 +7211,7 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7164
7211
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7165
7212
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7166
7213
|
};
|
|
7167
|
-
var __metadata$
|
|
7214
|
+
var __metadata$9 = (undefined && undefined.__metadata) || function (k, v) {
|
|
7168
7215
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
7169
7216
|
return Reflect.metadata(k, v);
|
|
7170
7217
|
};
|
|
@@ -7180,8 +7227,8 @@ const NylasMinBookingNotice = class {
|
|
|
7180
7227
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7181
7228
|
}
|
|
7182
7229
|
this.selectedConfiguration = undefined;
|
|
7183
|
-
this.minBookingNotice = undefined;
|
|
7184
7230
|
this.name = 'min-booking-notice';
|
|
7231
|
+
this.minBookingNotice = undefined;
|
|
7185
7232
|
this.selectedNumber = undefined;
|
|
7186
7233
|
this.selectedPeriod = undefined;
|
|
7187
7234
|
}
|
|
@@ -7280,7 +7327,7 @@ const NylasMinBookingNotice = class {
|
|
|
7280
7327
|
}
|
|
7281
7328
|
render() {
|
|
7282
7329
|
const showTImePeriodSelector = typeof this.selectedNumber == 'number' && typeof this.selectedPeriod == 'string';
|
|
7283
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7330
|
+
return (index$1.h(index$1.Host, { key: '058d282534c52f53706462ac1d683ec578f6d3a8' }, index$1.h("div", { key: '9ea1537dac50fd2376b36be39b9018e4ea72f6b6', class: "nylas-min-booking-notice", part: "nmbn" }, index$1.h("label", { key: 'a36bfe20366c6da7a87714dec15fa2d0d99306bc' }, "Minimum booking notice", index$1.h("span", { key: 'c0b3c66b4da42c78cae762889dd24f0201827184', class: "label-icon" }, index$1.h("tooltip-component", { key: '012dad9e26ec2dd6c82da843741e2aee8ea4d327' }, index$1.h("info-icon", { key: '4cbf03a96564d428a06b2a0faf11a353ded5a6c1', slot: "tooltip-icon" }), index$1.h("span", { key: '4ab57c8815064edb2fb06f8f10b5ccde022a9b90', slot: "tooltip-content" }, "The minimum amount of time in the future that a new booking can be made.")))), showTImePeriodSelector && (index$1.h("time-period-selector", { id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })))));
|
|
7284
7331
|
}
|
|
7285
7332
|
static get formAssociated() { return true; }
|
|
7286
7333
|
get host() { return index$1.getElement(this); }
|
|
@@ -7289,23 +7336,23 @@ const NylasMinBookingNotice = class {
|
|
|
7289
7336
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
7290
7337
|
}; }
|
|
7291
7338
|
};
|
|
7292
|
-
__decorate$
|
|
7339
|
+
__decorate$9([
|
|
7293
7340
|
registerComponent.RegisterComponent({
|
|
7294
7341
|
name: 'nylas-min-booking-notice',
|
|
7295
7342
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
7296
7343
|
eventToProps: {},
|
|
7297
7344
|
fireRegisterEvent: true,
|
|
7298
7345
|
}),
|
|
7299
|
-
__metadata$
|
|
7300
|
-
__metadata$
|
|
7301
|
-
__metadata$
|
|
7346
|
+
__metadata$9("design:type", Function),
|
|
7347
|
+
__metadata$9("design:paramtypes", []),
|
|
7348
|
+
__metadata$9("design:returntype", void 0)
|
|
7302
7349
|
], NylasMinBookingNotice.prototype, "render", null);
|
|
7303
7350
|
NylasMinBookingNotice.style = NylasMinBookingNoticeStyle0;
|
|
7304
7351
|
|
|
7305
7352
|
const nylasMinCancellationNoticeCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}";
|
|
7306
7353
|
const NylasMinCancellationNoticeStyle0 = nylasMinCancellationNoticeCss;
|
|
7307
7354
|
|
|
7308
|
-
var __decorate$
|
|
7355
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7309
7356
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7310
7357
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7311
7358
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7315,7 +7362,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7315
7362
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7316
7363
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7317
7364
|
};
|
|
7318
|
-
var __metadata$
|
|
7365
|
+
var __metadata$8 = (undefined && undefined.__metadata) || function (k, v) {
|
|
7319
7366
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
7320
7367
|
return Reflect.metadata(k, v);
|
|
7321
7368
|
};
|
|
@@ -7331,8 +7378,8 @@ const NylasMinCancellationNotice = class {
|
|
|
7331
7378
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7332
7379
|
}
|
|
7333
7380
|
this.selectedConfiguration = undefined;
|
|
7334
|
-
this.minCancellationNotice = undefined;
|
|
7335
7381
|
this.name = 'min-cancellation-notice';
|
|
7382
|
+
this.minCancellationNotice = undefined;
|
|
7336
7383
|
this.selectedNumber = undefined;
|
|
7337
7384
|
this.selectedPeriod = undefined;
|
|
7338
7385
|
}
|
|
@@ -7435,7 +7482,7 @@ const NylasMinCancellationNotice = class {
|
|
|
7435
7482
|
}
|
|
7436
7483
|
render() {
|
|
7437
7484
|
const showTimePeriodSelector = typeof this.selectedNumber == 'number' && typeof this.selectedPeriod == 'string';
|
|
7438
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7485
|
+
return (index$1.h(index$1.Host, { key: 'b3d5eab0c7f826b60f8d88dbcd2de20b8aa05953' }, index$1.h("div", { key: 'df62baa3bd558066cea96bd86f2b4594b7eae613', class: "nylas-min-cancellation-notice", part: "nmcn" }, index$1.h("label", { key: '7bab73f950ee0529feef61c32750488ee8e3d816' }, "Minimum cancellation notice", index$1.h("span", { key: '71856612ca18403cc95642ad22f7fea40c93163e', class: "label-icon" }, index$1.h("tooltip-component", { key: '3961109385d524c08115a98bd8e303d573529884' }, index$1.h("info-icon", { key: '60053a1ff74768ab53e903b52c0028b5c04aa5c7', slot: "tooltip-icon" }), index$1.h("span", { key: 'af42bbed9685aa44d11ad4dd3cd35a156ba245a4', slot: "tooltip-content" }, "The minimum amount of time required to cancel a booking.")))), showTimePeriodSelector && (index$1.h("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })))));
|
|
7439
7486
|
}
|
|
7440
7487
|
static get formAssociated() { return true; }
|
|
7441
7488
|
get host() { return index$1.getElement(this); }
|
|
@@ -7444,23 +7491,23 @@ const NylasMinCancellationNotice = class {
|
|
|
7444
7491
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
7445
7492
|
}; }
|
|
7446
7493
|
};
|
|
7447
|
-
__decorate$
|
|
7494
|
+
__decorate$8([
|
|
7448
7495
|
registerComponent.RegisterComponent({
|
|
7449
7496
|
name: 'nylas-min-cancellation-notice',
|
|
7450
7497
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
7451
7498
|
eventToProps: {},
|
|
7452
7499
|
fireRegisterEvent: true,
|
|
7453
7500
|
}),
|
|
7454
|
-
__metadata$
|
|
7455
|
-
__metadata$
|
|
7456
|
-
__metadata$
|
|
7501
|
+
__metadata$8("design:type", Function),
|
|
7502
|
+
__metadata$8("design:paramtypes", []),
|
|
7503
|
+
__metadata$8("design:returntype", void 0)
|
|
7457
7504
|
], NylasMinCancellationNotice.prototype, "render", null);
|
|
7458
7505
|
NylasMinCancellationNotice.style = NylasMinCancellationNoticeStyle0;
|
|
7459
7506
|
|
|
7460
7507
|
const nylasPageNameCss = ":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;width:inherit}.nylas-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-name .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-name .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-name .header .drawer-toggle .chevron:hover,.nylas-page-name .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-name .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-name .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-name .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-name .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body{grid-template-columns:1fr}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body .nylas-page-name__section{border:none}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row{display:flex;align-items:center;gap:1rem}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label{display:flex;align-items:center}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container{width:100%}.nylas-page-name .nylas-page-name__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}";
|
|
7461
7508
|
const NylasPageNameStyle0 = nylasPageNameCss;
|
|
7462
7509
|
|
|
7463
|
-
var __decorate$
|
|
7510
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7464
7511
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7465
7512
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7466
7513
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7470,7 +7517,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7470
7517
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7471
7518
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7472
7519
|
};
|
|
7473
|
-
var __metadata$
|
|
7520
|
+
var __metadata$7 = (undefined && undefined.__metadata) || function (k, v) {
|
|
7474
7521
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
7475
7522
|
return Reflect.metadata(k, v);
|
|
7476
7523
|
};
|
|
@@ -7486,10 +7533,10 @@ const NylasPageName = class {
|
|
|
7486
7533
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7487
7534
|
}
|
|
7488
7535
|
this.selectedConfiguration = undefined;
|
|
7536
|
+
this.name = 'page-name';
|
|
7489
7537
|
this.pageName = undefined;
|
|
7490
7538
|
this.showToggle = true;
|
|
7491
7539
|
this.isOpen = true;
|
|
7492
|
-
this.name = 'page-name';
|
|
7493
7540
|
this.currentPageName = undefined;
|
|
7494
7541
|
}
|
|
7495
7542
|
connectedCallback() {
|
|
@@ -7544,7 +7591,7 @@ const NylasPageName = class {
|
|
|
7544
7591
|
}
|
|
7545
7592
|
render() {
|
|
7546
7593
|
const isComponentReady = typeof this.currentPageName !== 'undefined';
|
|
7547
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7594
|
+
return (index$1.h(index$1.Host, { key: 'f0b405f57e2cb8c65b59c07bdca8ec3885a98a7d' }, index$1.h("div", { key: '4873ef6137393c0bd31b90fca33eee42e2feb449', class: "nylas-page-name", part: "nces" }, index$1.h("div", { key: 'bf9894bee632ed6debc5f401b1e3bb98d4561258', class: "header", part: "nces__header" }, index$1.h("div", { key: '631f080c4c2aba2597d6638ea4dfb20eedb0a1d6' }, index$1.h("h3", { key: '657b49c737bb46d96698cac0c39ba20f08dac34a' }, "Page name"), index$1.h("p", { key: '7a81b920c53b427529828476a2efed5c80c5ce56' }, "Set the Scheduling Page name.", index$1.h("tooltip-component", { key: 'a16a8a9e03310794cf4de5b0ab863d730723bf16' }, index$1.h("info-icon", { key: 'ffbfa4cfd591c4994a7ff51251ed92062e9cf42e', slot: "tooltip-icon" }), index$1.h("span", { key: '41a0ed919be3aa80fc5f1d03138157f46aaa8494', slot: "tooltip-content" }, "By default, Scheduling Pages use your user name as the Page name. The Page name is displayed in the top-left corner of the calendar view.")))), this.showToggle && (index$1.h("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, index$1.h("span", { class: `chevron ${this.isOpen ? 'open' : 'closed'} `, onClick: () => this.toggleDrawer() }, index$1.h("chevron-icon", { width: "24", height: "24" }))))), this.isOpen && (index$1.h("div", { class: "nylas-page-name__body", part: "nces__body" }, index$1.h("div", { class: "nylas-page-name__section" }, index$1.h("div", { class: "nylas-page-name__row" }, index$1.h("div", { class: "input-container" }, index$1.h("div", { class: "nylas-page-name__input-wrapper" }, isComponentReady && (index$1.h("input-component", { name: "page-name", id: "page-name", type: "text", required: false, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? '' })))))))))));
|
|
7548
7595
|
}
|
|
7549
7596
|
static get formAssociated() { return true; }
|
|
7550
7597
|
get host() { return index$1.getElement(this); }
|
|
@@ -7553,7 +7600,7 @@ const NylasPageName = class {
|
|
|
7553
7600
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
7554
7601
|
}; }
|
|
7555
7602
|
};
|
|
7556
|
-
__decorate$
|
|
7603
|
+
__decorate$7([
|
|
7557
7604
|
registerComponent.RegisterComponent({
|
|
7558
7605
|
name: 'nylas-page-name',
|
|
7559
7606
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
@@ -7567,16 +7614,16 @@ __decorate$5([
|
|
|
7567
7614
|
},
|
|
7568
7615
|
fireRegisterEvent: true,
|
|
7569
7616
|
}),
|
|
7570
|
-
__metadata$
|
|
7571
|
-
__metadata$
|
|
7572
|
-
__metadata$
|
|
7617
|
+
__metadata$7("design:type", Function),
|
|
7618
|
+
__metadata$7("design:paramtypes", []),
|
|
7619
|
+
__metadata$7("design:returntype", void 0)
|
|
7573
7620
|
], NylasPageName.prototype, "render", null);
|
|
7574
7621
|
NylasPageName.style = NylasPageNameStyle0;
|
|
7575
7622
|
|
|
7576
7623
|
const nylasPageStylingCss = ":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;width:inherit}.nylas-page-styling{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-styling.no-border{border:none}.nylas-page-styling .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body{grid-template-columns:1fr}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section.no-padding{padding:0}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection.hide{display:none}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>*{display:flex;flex-direction:column;column-gap:2rem;row-gap:0.25rem;width:100%;flex:1}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container textarea,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>* textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-page-styling .nylas-page-styling__body span.error-message{color:var(--nylas-error)}.nylas-page-styling .nylas-page-styling__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}";
|
|
7577
7624
|
const NylasPageStylingStyle0 = nylasPageStylingCss;
|
|
7578
7625
|
|
|
7579
|
-
var __decorate$
|
|
7626
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7580
7627
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7581
7628
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7582
7629
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7586,7 +7633,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7586
7633
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7587
7634
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7588
7635
|
};
|
|
7589
|
-
var __metadata$
|
|
7636
|
+
var __metadata$6 = (undefined && undefined.__metadata) || function (k, v) {
|
|
7590
7637
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
7591
7638
|
return Reflect.metadata(k, v);
|
|
7592
7639
|
};
|
|
@@ -7603,9 +7650,9 @@ const NylasPageStyling = class {
|
|
|
7603
7650
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7604
7651
|
}
|
|
7605
7652
|
this.selectedConfiguration = undefined;
|
|
7653
|
+
this.name = 'page-styling';
|
|
7606
7654
|
this.appearance = undefined;
|
|
7607
7655
|
this.isOpen = true;
|
|
7608
|
-
this.name = 'page-styling';
|
|
7609
7656
|
this.currentAppearance = undefined;
|
|
7610
7657
|
this.customInputsSlot = null;
|
|
7611
7658
|
}
|
|
@@ -7824,7 +7871,7 @@ const NylasPageStyling = class {
|
|
|
7824
7871
|
this.isOpen = !this.isOpen;
|
|
7825
7872
|
}
|
|
7826
7873
|
render() {
|
|
7827
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7874
|
+
return (index$1.h(index$1.Host, { key: 'be08b4dc45a6950b8bf9190fbb5bd450a63f24cb' }, index$1.h("div", { key: '37c4ef967ab1ccecc7752be8e13847c1ff67f2ad', part: "nps", class: { 'nylas-page-styling': true, 'no-border': !this.customInputsSlot } }, this.customInputsSlot ? (index$1.h("div", { class: "header", part: "nps__header" }, index$1.h("div", null, index$1.h("h3", null, "Page styling and customization")), index$1.h("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, index$1.h("span", { class: `chevron ${this.isOpen ? 'open' : 'closed'} `, onClick: () => this.toggleConfirmationEmail() }, index$1.h("chevron-icon", { width: "24", height: "24" }))))) : null, index$1.h("div", { key: '304a8a53cff0c854ce244435ff51abb2dc51b105', id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, index$1.h("div", { key: '9de4abc9b92aab8d976b0fd2a568a5c60d7f0f6e', class: { 'nylas-page-styling__section': true, 'no-padding': !this.customInputsSlot } }, index$1.h("div", { key: '490d7515e07679200e6a42138867088c7b6c4634', class: "nylas-page-styling__row" }, index$1.h("div", { key: 'dcf7dbe82d82b103f14e63dc519aab3245d869e8', class: { subsection: true, hide: !this.isOpen } })))))));
|
|
7828
7875
|
}
|
|
7829
7876
|
static get formAssociated() { return true; }
|
|
7830
7877
|
get host() { return index$1.getElement(this); }
|
|
@@ -7832,7 +7879,7 @@ const NylasPageStyling = class {
|
|
|
7832
7879
|
"name": ["elementNameChangedHandler"]
|
|
7833
7880
|
}; }
|
|
7834
7881
|
};
|
|
7835
|
-
__decorate$
|
|
7882
|
+
__decorate$6([
|
|
7836
7883
|
registerComponent.RegisterComponent({
|
|
7837
7884
|
name: 'nylas-page-styling',
|
|
7838
7885
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
@@ -7846,16 +7893,16 @@ __decorate$4([
|
|
|
7846
7893
|
},
|
|
7847
7894
|
fireRegisterEvent: true,
|
|
7848
7895
|
}),
|
|
7849
|
-
__metadata$
|
|
7850
|
-
__metadata$
|
|
7851
|
-
__metadata$
|
|
7896
|
+
__metadata$6("design:type", Function),
|
|
7897
|
+
__metadata$6("design:paramtypes", []),
|
|
7898
|
+
__metadata$6("design:returntype", void 0)
|
|
7852
7899
|
], NylasPageStyling.prototype, "render", null);
|
|
7853
7900
|
NylasPageStyling.style = NylasPageStylingStyle0;
|
|
7854
7901
|
|
|
7855
7902
|
const nylasParticipantBookingCalendarsCss = ":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;width:inherit}.nylas-participant-booking-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .header{padding:1rem}.nylas-participant-booking-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participant-booking-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-participant-booking-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-participant-booking-calendars .content .participant-container .participant-title p{margin:0}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-booking-calendar-picker::part(nbcp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}";
|
|
7856
7903
|
const NylasParticipantBookingCalendarsStyle0 = nylasParticipantBookingCalendarsCss;
|
|
7857
7904
|
|
|
7858
|
-
var __decorate$
|
|
7905
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7859
7906
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7860
7907
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7861
7908
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7865,7 +7912,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
7865
7912
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7866
7913
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7867
7914
|
};
|
|
7868
|
-
var __metadata$
|
|
7915
|
+
var __metadata$5 = (undefined && undefined.__metadata) || function (k, v) {
|
|
7869
7916
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
7870
7917
|
return Reflect.metadata(k, v);
|
|
7871
7918
|
};
|
|
@@ -7957,6 +8004,10 @@ const NylasParticipantBookingCalendars = class {
|
|
|
7957
8004
|
this.selectedCalendars = this.setParticipants(this.selectedConfiguration?.participants);
|
|
7958
8005
|
this.participantCalendars = this.getParticipantCalendarOptions(this.selectedConfiguration?.participants, this.participantOptions);
|
|
7959
8006
|
}
|
|
8007
|
+
else {
|
|
8008
|
+
this.selectedCalendars = this.setParticipants(this.participants);
|
|
8009
|
+
this.participantCalendars = this.getParticipantCalendarOptions(this.participants, this.participantOptions);
|
|
8010
|
+
}
|
|
7960
8011
|
}
|
|
7961
8012
|
handleValueChanged(event) {
|
|
7962
8013
|
utils.debug('[nylas-editor-tabs]', 'handleValueChanged', event);
|
|
@@ -7998,13 +8049,13 @@ const NylasParticipantBookingCalendars = class {
|
|
|
7998
8049
|
return selectedParticipants;
|
|
7999
8050
|
}
|
|
8000
8051
|
render() {
|
|
8001
|
-
return (index$1.h(index$1.Host, { key: '
|
|
8052
|
+
return (index$1.h(index$1.Host, { key: 'b9e6684dcd0f1f65681af22cbfa0ee9f096aa3f2' }, index$1.h("div", { key: 'fae29a5cc07a0b8b46c36ec4763e3a220415d6d1', class: "nylas-participant-booking-calendars", part: "npbc" }, index$1.h("div", { key: 'b03cc0a390af4f2704a262fe8a6142df3db703f1', class: "header", part: "npbc__header" }, index$1.h("h3", { key: 'e2859aa78a9ad056290b3d567245d09dfbe4377c' }, "Book to this calendar"), index$1.h("p", { key: '0334ecd98e203d7625bef65ab1f5be413a67f2f5' }, "Select the calendar where you want to add event bookings.")), index$1.h("div", { key: '48c92054425564074e40d8e28e6cd98b77974083', class: "content", part: "npbc__content" }, index$1.h("form", { key: 'f4336a4077a262c45947b75630234806e99148d0', ref: el => (this.bookingCalendarsFormRef = el) }, this.participantCalendars &&
|
|
8002
8053
|
Object.keys(this.participantCalendars).map((key, index) => {
|
|
8003
8054
|
const participant = this.selectedCalendars[key];
|
|
8004
8055
|
const participantCalendars = this.participantCalendars[key];
|
|
8005
8056
|
if (!participant || !participant.name)
|
|
8006
8057
|
return;
|
|
8007
|
-
return (index$1.h("div", { class: "participant-container", part: "npbc__participant-container", key: `participant-conatiner-${index}` }, index$1.h("div", { class: "participant-title", part: "npbc__participant-title" }, index$1.h("p", null, participant.name, "'s booking calendar"), index$1.h("div", { class: "participant-toggle", part: "npbc__participant-toggle
|
|
8058
|
+
return (index$1.h("div", { class: "participant-container", part: "npbc__participant-container", key: `participant-conatiner-${index}` }, index$1.h("div", { class: "participant-title", part: "npbc__participant-title" }, index$1.h("p", null, participant.name, "'s booking calendar"), index$1.h("div", { class: "participant-toggle", part: "npbc__participant-toggle-container" }, index$1.h("span", { class: `chevron ${participant.isOpen ? 'open' : 'closed'}`, onClick: () => {
|
|
8008
8059
|
this.selectedCalendars[key].isOpen = !participant.isOpen;
|
|
8009
8060
|
this.selectedCalendars = { ...this.selectedCalendars };
|
|
8010
8061
|
} }, index$1.h("chevron-icon", { width: "24", height: "24" })))), participant.isOpen && (index$1.h("nylas-booking-calendar-picker", { key: key, name: `participant-booking-${key}`, calendars: participantCalendars, hideHeader: true, defaultBookingCalendar: this.participantDefaultSelectedCalendar[key] }))));
|
|
@@ -8020,7 +8071,7 @@ const NylasParticipantBookingCalendars = class {
|
|
|
8020
8071
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
8021
8072
|
}; }
|
|
8022
8073
|
};
|
|
8023
|
-
__decorate$
|
|
8074
|
+
__decorate$5([
|
|
8024
8075
|
registerComponent.RegisterComponent({
|
|
8025
8076
|
name: 'nylas-participant-booking-calendars',
|
|
8026
8077
|
stateToProps: new Map([
|
|
@@ -8031,16 +8082,16 @@ __decorate$3([
|
|
|
8031
8082
|
eventToProps: {},
|
|
8032
8083
|
fireRegisterEvent: true,
|
|
8033
8084
|
}),
|
|
8034
|
-
__metadata$
|
|
8035
|
-
__metadata$
|
|
8036
|
-
__metadata$
|
|
8085
|
+
__metadata$5("design:type", Function),
|
|
8086
|
+
__metadata$5("design:paramtypes", []),
|
|
8087
|
+
__metadata$5("design:returntype", void 0)
|
|
8037
8088
|
], NylasParticipantBookingCalendars.prototype, "render", null);
|
|
8038
8089
|
NylasParticipantBookingCalendars.style = NylasParticipantBookingCalendarsStyle0;
|
|
8039
8090
|
|
|
8040
8091
|
const nylasParticipantsCustomAvailabilityCss = ":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;width:inherit}.nylas-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}";
|
|
8041
8092
|
const NylasParticipantsCustomAvailabilityStyle0 = nylasParticipantsCustomAvailabilityCss;
|
|
8042
8093
|
|
|
8043
|
-
var __decorate$
|
|
8094
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8044
8095
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8045
8096
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8046
8097
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8050,7 +8101,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
8050
8101
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8051
8102
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8052
8103
|
};
|
|
8053
|
-
var __metadata$
|
|
8104
|
+
var __metadata$4 = (undefined && undefined.__metadata) || function (k, v) {
|
|
8054
8105
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
8055
8106
|
return Reflect.metadata(k, v);
|
|
8056
8107
|
};
|
|
@@ -8150,12 +8201,13 @@ const NylasParticipantsCustomAvailability = class {
|
|
|
8150
8201
|
openHours: participant.availability?.open_hours || [],
|
|
8151
8202
|
name: participant.name || participant.email,
|
|
8152
8203
|
availability: participant.availability,
|
|
8204
|
+
timezone: participant.timezone,
|
|
8153
8205
|
};
|
|
8154
8206
|
});
|
|
8155
8207
|
return selectedParticipants;
|
|
8156
8208
|
}
|
|
8157
8209
|
render() {
|
|
8158
|
-
return (index$1.h(index$1.Host, { key: '
|
|
8210
|
+
return (index$1.h(index$1.Host, { key: '6f9b3c61650e7dd61b6e548fe008be57494b5e89' }, index$1.h("div", { key: '256e2e41f0849180ffdb5c67c66dffd9c1ce031a', class: "nylas-participants-custom-availability", part: "npca" }, index$1.h("div", { key: 'c3e1aefbb7872b233938aefeb22a13169f194864', class: "header", part: "npca__header" }, index$1.h("h3", { key: '8f7af6fa1435b2530fb5d179db1357e765270865' }, "Participant open hours"), index$1.h("p", { key: 'ff146ecd72673369a01773b2f00e81264654acf5' }, "If not set, Nylas uses the default open hours for this participant.")), index$1.h("div", { key: '52476fb7c7dc19935d92883ebd16f6af6746f8b5', class: "content", part: "npca__content" }, index$1.h("form", { key: '2b2fb94eb40a92b0e3326c9681051f61bbe4986e', ref: el => (this.participantFormRef = el) }, Object.keys(this.selectedParticipants).map((key, index) => {
|
|
8159
8211
|
const participant = this.selectedParticipants[key];
|
|
8160
8212
|
if (!participant || !participant.name || !participant.availability)
|
|
8161
8213
|
return;
|
|
@@ -8164,7 +8216,7 @@ const NylasParticipantsCustomAvailability = class {
|
|
|
8164
8216
|
return;
|
|
8165
8217
|
this.selectedParticipants[key].isOpen = !participant.isOpen;
|
|
8166
8218
|
this.selectedParticipants = { ...this.selectedParticipants };
|
|
8167
|
-
} }, index$1.h("chevron-icon", { width: "24", height: "24" })))), participant.isOpen && (index$1.h("nylas-availability-picker", { key: index, name: `participant-${index}-${key}`, openHours: participant.openHours, defaultTimezone: participant.
|
|
8219
|
+
} }, index$1.h("chevron-icon", { width: "24", height: "24" })))), participant.isOpen && (index$1.h("nylas-availability-picker", { key: index, name: `participant-${index}-${key}`, openHours: participant.openHours, defaultTimezone: participant.timezone, hideHeader: true }))));
|
|
8168
8220
|
}))))));
|
|
8169
8221
|
}
|
|
8170
8222
|
static get formAssociated() { return true; }
|
|
@@ -8175,18 +8227,362 @@ const NylasParticipantsCustomAvailability = class {
|
|
|
8175
8227
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
8176
8228
|
}; }
|
|
8177
8229
|
};
|
|
8178
|
-
__decorate$
|
|
8230
|
+
__decorate$4([
|
|
8179
8231
|
registerComponent.RegisterComponent({
|
|
8180
8232
|
name: 'nylas-participants-custom-availability',
|
|
8181
8233
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
8182
8234
|
eventToProps: {},
|
|
8183
8235
|
fireRegisterEvent: true,
|
|
8184
8236
|
}),
|
|
8237
|
+
__metadata$4("design:type", Function),
|
|
8238
|
+
__metadata$4("design:paramtypes", []),
|
|
8239
|
+
__metadata$4("design:returntype", void 0)
|
|
8240
|
+
], NylasParticipantsCustomAvailability.prototype, "render", null);
|
|
8241
|
+
NylasParticipantsCustomAvailability.style = NylasParticipantsCustomAvailabilityStyle0;
|
|
8242
|
+
|
|
8243
|
+
const nylasReminderEmailsCss = ":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;width:inherit}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:hover,.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body{grid-template-columns:1fr}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{border:none}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row.full-width-col{grid-template-columns:1fr}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label{display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.required{color:var(--nylas-error, #cc4841)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon{margin-left:4px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon tooltip-component{display:flex}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container{display:flex;gap:32px;width:100%}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row span.selected-value{font-weight:500}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container{padding:0 2rem 1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.error-message{color:var(--nylas-error)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}button-component.create-reminder button{margin:1rem;width:calc(100% - 2rem)}button-component.delete-btn button{color:var(--nylas-error) !important}";
|
|
8244
|
+
const NylasReminderEmailsStyle0 = nylasReminderEmailsCss;
|
|
8245
|
+
|
|
8246
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8247
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8248
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8249
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8250
|
+
else
|
|
8251
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
8252
|
+
if (d = decorators[i])
|
|
8253
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8254
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8255
|
+
};
|
|
8256
|
+
var __metadata$3 = (undefined && undefined.__metadata) || function (k, v) {
|
|
8257
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
8258
|
+
return Reflect.metadata(k, v);
|
|
8259
|
+
};
|
|
8260
|
+
const NylasReminderEmails = class {
|
|
8261
|
+
constructor(hostRef) {
|
|
8262
|
+
index$1.registerInstance(this, hostRef);
|
|
8263
|
+
this.valueChanged = index$1.createEvent(this, "valueChanged", 7);
|
|
8264
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
8265
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
8266
|
+
}
|
|
8267
|
+
else {
|
|
8268
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
8269
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
8270
|
+
}
|
|
8271
|
+
this.selectedConfiguration = undefined;
|
|
8272
|
+
this.name = 'reminder-overrides';
|
|
8273
|
+
this.reminders = this.selectedConfiguration?.event_booking?.reminders ?? [];
|
|
8274
|
+
this.reminderErrors = {};
|
|
8275
|
+
this.participants = this.selectedConfiguration?.participants ?? [];
|
|
8276
|
+
}
|
|
8277
|
+
connectedCallback() {
|
|
8278
|
+
utils.debug('nylas-reminder-emails', 'connectedCallback');
|
|
8279
|
+
}
|
|
8280
|
+
disconnectedCallback() {
|
|
8281
|
+
utils.debug('nylas-reminder-emails', 'disconnectedCallback');
|
|
8282
|
+
}
|
|
8283
|
+
componentWillLoad() {
|
|
8284
|
+
utils.debug('nylas-reminder-emails', 'componentWillLoad');
|
|
8285
|
+
this.host.setAttribute('name', this.name);
|
|
8286
|
+
}
|
|
8287
|
+
componentDidLoad() {
|
|
8288
|
+
utils.debug('nylas-reminder-emails', 'componentDidLoad');
|
|
8289
|
+
if (this.selectedConfiguration) {
|
|
8290
|
+
this.selectedConfigurationChangedHandler(this.selectedConfiguration);
|
|
8291
|
+
}
|
|
8292
|
+
else {
|
|
8293
|
+
this.updateRemindersFormValue();
|
|
8294
|
+
}
|
|
8295
|
+
}
|
|
8296
|
+
componentWillUpdate() {
|
|
8297
|
+
utils.debug('nylas-reminder-emails', 'componentWillUpdate');
|
|
8298
|
+
}
|
|
8299
|
+
componentDidUpdate() {
|
|
8300
|
+
utils.debug('nylas-reminder-emails', 'componentDidUpdate');
|
|
8301
|
+
}
|
|
8302
|
+
componentWillRender() {
|
|
8303
|
+
utils.debug('nylas-reminder-emails', 'componentWillRender');
|
|
8304
|
+
}
|
|
8305
|
+
componentDidRender() {
|
|
8306
|
+
utils.debug('nylas-reminder-emails', 'componentDidRender');
|
|
8307
|
+
}
|
|
8308
|
+
elementNameChangedHandler(newValue) {
|
|
8309
|
+
utils.debug('nylas-reminder-emails', 'elementNameChangedHandler', newValue);
|
|
8310
|
+
this.host.setAttribute('name', newValue);
|
|
8311
|
+
}
|
|
8312
|
+
selectedConfigurationChangedHandler(newVal) {
|
|
8313
|
+
utils.debug('nylas-reminder-emails', 'selectedConfigurationChangedHandler', newVal);
|
|
8314
|
+
this.reminders = newVal?.event_booking?.reminders ?? [];
|
|
8315
|
+
this.participants = newVal?.participants ?? [];
|
|
8316
|
+
this.updateRemindersFormValue();
|
|
8317
|
+
}
|
|
8318
|
+
handleValueChanged(event) {
|
|
8319
|
+
utils.debug('nylas-reminder-emails', 'handleValueChanged', event);
|
|
8320
|
+
const { name, value } = event.detail;
|
|
8321
|
+
if (name.startsWith('reminder-time-')) {
|
|
8322
|
+
const [_, reminderIndex] = name.split(/(\d+)/);
|
|
8323
|
+
const updatedReminders = [...this.reminders];
|
|
8324
|
+
updatedReminders[reminderIndex].minutes_before_event = parseInt(value);
|
|
8325
|
+
this.reminders = [...updatedReminders];
|
|
8326
|
+
this.updateRemindersFormValue();
|
|
8327
|
+
}
|
|
8328
|
+
}
|
|
8329
|
+
handleNylasFormDropdownChanged(event) {
|
|
8330
|
+
utils.debug('nylas-reminder-emails', 'handleNylasFormDropdownChanged', event);
|
|
8331
|
+
const { name, value } = event.detail;
|
|
8332
|
+
if (!name.startsWith('recipient-')) {
|
|
8333
|
+
return;
|
|
8334
|
+
}
|
|
8335
|
+
const [_, reminderIndex] = name.split(/(\d+)/);
|
|
8336
|
+
const updatedReminders = [...this.reminders];
|
|
8337
|
+
updatedReminders[reminderIndex].recipient = value;
|
|
8338
|
+
this.reminders = [...updatedReminders];
|
|
8339
|
+
this.updateRemindersFormValue();
|
|
8340
|
+
}
|
|
8341
|
+
addReminder() {
|
|
8342
|
+
utils.debug('nylas-reminder-emails', 'addReminder');
|
|
8343
|
+
this.reminders = [
|
|
8344
|
+
...this.reminders,
|
|
8345
|
+
{
|
|
8346
|
+
type: 'email',
|
|
8347
|
+
minutes_before_event: 30,
|
|
8348
|
+
editing: true,
|
|
8349
|
+
recipient: 'all',
|
|
8350
|
+
},
|
|
8351
|
+
];
|
|
8352
|
+
this.updateRemindersFormValue();
|
|
8353
|
+
}
|
|
8354
|
+
deleteReminder(index) {
|
|
8355
|
+
this.reminders = this.reminders.filter((_, i) => i !== index).map(p => ({ ...p }));
|
|
8356
|
+
this.updateRemindersFormValue();
|
|
8357
|
+
}
|
|
8358
|
+
updateRemindersFormValue() {
|
|
8359
|
+
utils.debug('nylas-reminder-emails', 'updateRemindersFormValue');
|
|
8360
|
+
const eventReminders = this.reminders.map(reminder => {
|
|
8361
|
+
const rem = { ...reminder };
|
|
8362
|
+
delete rem.editing;
|
|
8363
|
+
return rem;
|
|
8364
|
+
});
|
|
8365
|
+
this.internals.setFormValue(JSON.stringify(eventReminders), 'reminder-overrides');
|
|
8366
|
+
this.valueChanged.emit({ value: JSON.stringify(eventReminders), name: 'reminder-overrides' });
|
|
8367
|
+
}
|
|
8368
|
+
formatReminderTime(reminderTime) {
|
|
8369
|
+
switch (true) {
|
|
8370
|
+
case reminderTime > 24 * 60:
|
|
8371
|
+
return `${reminderTime / 60 / 24} days`;
|
|
8372
|
+
case reminderTime === 24 * 60:
|
|
8373
|
+
return '1 day';
|
|
8374
|
+
case reminderTime > 90 || reminderTime === 60:
|
|
8375
|
+
return `${reminderTime / 60} hours`;
|
|
8376
|
+
default:
|
|
8377
|
+
return `${reminderTime} minute${reminderTime > 1 ? 's' : ''} `;
|
|
8378
|
+
}
|
|
8379
|
+
}
|
|
8380
|
+
render() {
|
|
8381
|
+
const organizerName = this.participants.find(p => p.is_organizer)?.name;
|
|
8382
|
+
const recipientOptions = [
|
|
8383
|
+
{
|
|
8384
|
+
label: 'All host & guests',
|
|
8385
|
+
value: 'all',
|
|
8386
|
+
},
|
|
8387
|
+
{
|
|
8388
|
+
label: 'All event guests',
|
|
8389
|
+
value: 'guest',
|
|
8390
|
+
},
|
|
8391
|
+
{
|
|
8392
|
+
label: 'Only event host',
|
|
8393
|
+
value: 'host',
|
|
8394
|
+
},
|
|
8395
|
+
];
|
|
8396
|
+
return (index$1.h(index$1.Host, { key: 'a71a8247248eec4834963b8887b713769b7210cf' }, index$1.h("div", { key: '8ab8b9fc62502a7ddf5a111727ab5ef53fc050a9', class: "cards-container" }, this.reminders.map((reminder, index) => {
|
|
8397
|
+
return (index$1.h("div", { class: "nylas-reminder-email", part: "nre" }, index$1.h("div", { class: "header", part: "nre__header" }, index$1.h("div", null, index$1.h("h3", null, "Upcoming meeting", organizerName ? ` with ${organizerName} ` : ''), index$1.h("p", null, "Reminder before event")), !reminder.editing ? (index$1.h("button-component", { variant: 'basic', key: `edit-${index} `, clickHandler: event => {
|
|
8398
|
+
event.preventDefault();
|
|
8399
|
+
reminder.editing = true;
|
|
8400
|
+
this.reminders = [...this.reminders];
|
|
8401
|
+
} }, index$1.h("edit-icon", { width: "16", height: "16" }), "Edit")) : (index$1.h("div", { class: "reminder-open-close-toggle" }, index$1.h("button-component", { variant: 'basic', class: "delete-btn", tooltip: "Delete reminder", key: `delete -${index} `, clickHandler: event => {
|
|
8402
|
+
event.preventDefault();
|
|
8403
|
+
this.deleteReminder(index);
|
|
8404
|
+
} }, index$1.h("trash-icon", { width: "16", height: "16" })), index$1.h("span", { class: `chevron ${reminder.editing ? 'open' : 'closed'}`, onClick: () => {
|
|
8405
|
+
reminder.editing = !reminder.editing;
|
|
8406
|
+
this.reminders = [...this.reminders];
|
|
8407
|
+
} }, index$1.h("chevron-icon", { width: "24", height: "24" }))))), reminder.editing ? (index$1.h("div", { class: "nylas-reminder-email__body", part: "nre__body" }, index$1.h("div", { class: "nylas-reminder-email__section" }, index$1.h("div", { class: "nylas-reminder-email__row" }, index$1.h("label", null, "Email recipients"), index$1.h("select-dropdown", { name: `recipient-${index}`, options: recipientOptions, defaultSelectedOption: recipientOptions.find(i => i.value === reminder.recipient) ?? recipientOptions[0], withSearch: false })), index$1.h("div", { class: "nylas-reminder-email__row" }, index$1.h("label", null, "Send confirmation email when", index$1.h("span", { class: "label-icon" }, index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, "The recipients will receive a reminder email at the specified time before the event.")))), index$1.h("nylas-reminder-time", { name: `reminder-time-${index}`, eventReminderTimeMinutes: reminder.minutes_before_event, exportparts: "nrt, nrt__input_dropdown: nre__reminder-input_dropdown,\n nrt__input_dropdown-input: nre__reminder-input_dropdown-input,\n nrt__input_dropdown-content: nre__reminder-input_dropdown-content,\n " }))))) : (index$1.h("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, index$1.h("p", null, index$1.h("span", { class: "summary-icon" }, index$1.h("person-clipboard-icon", null)), recipientOptions.find(i => i.value === reminder.recipient)?.label), index$1.h("p", null, index$1.h("span", { class: "summary-icon" }, index$1.h("clock-icon", null)), this.formatReminderTime(reminder.minutes_before_event), " before the event")))));
|
|
8408
|
+
})), index$1.h("button-component", { key: '67f3f31bf95a05c858a97da188b88788551d1171', class: "create-reminder", variant: 'basic', clickHandler: event => {
|
|
8409
|
+
event.preventDefault();
|
|
8410
|
+
this.addReminder();
|
|
8411
|
+
} }, index$1.h("plus-icon", { key: 'ad8a8e742fdd8334e56af084356ea6fc7189405e', width: "16", height: "16" }), "New reminder")));
|
|
8412
|
+
}
|
|
8413
|
+
static get formAssociated() { return true; }
|
|
8414
|
+
get host() { return index$1.getElement(this); }
|
|
8415
|
+
static get watchers() { return {
|
|
8416
|
+
"name": ["elementNameChangedHandler"],
|
|
8417
|
+
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
8418
|
+
}; }
|
|
8419
|
+
};
|
|
8420
|
+
__decorate$3([
|
|
8421
|
+
registerComponent.RegisterComponent({
|
|
8422
|
+
name: 'nylas-reminder-emails',
|
|
8423
|
+
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
8424
|
+
eventToProps: {
|
|
8425
|
+
valueChanged: async (event, _nylasSchedulerConfigConnector) => {
|
|
8426
|
+
const { valueChanged } = event.detail;
|
|
8427
|
+
if (valueChanged) {
|
|
8428
|
+
valueChanged(event);
|
|
8429
|
+
}
|
|
8430
|
+
},
|
|
8431
|
+
},
|
|
8432
|
+
fireRegisterEvent: true,
|
|
8433
|
+
}),
|
|
8434
|
+
__metadata$3("design:type", Function),
|
|
8435
|
+
__metadata$3("design:paramtypes", []),
|
|
8436
|
+
__metadata$3("design:returntype", void 0)
|
|
8437
|
+
], NylasReminderEmails.prototype, "render", null);
|
|
8438
|
+
NylasReminderEmails.style = NylasReminderEmailsStyle0;
|
|
8439
|
+
|
|
8440
|
+
const nylasReminderTimeCss = ":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-reminder-time{display:flex;flex-direction:column;gap:4px}.nylas-reminder-time label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-reminder-time label span.required{color:var(--nylas-error, #cc4841)}.nylas-reminder-time label span.label-icon{margin-left:4px}.nylas-reminder-time label span.label-icon tooltip-component{display:flex}.nylas-reminder-time__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-reminder-time__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:160px}.nylas-reminder-time__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-reminder-time__wrapper select-dropdown{width:100%}}.nylas-reminder-time__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}";
|
|
8441
|
+
const NylasReminderTimeStyle0 = nylasReminderTimeCss;
|
|
8442
|
+
|
|
8443
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8444
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8445
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8446
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8447
|
+
else
|
|
8448
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
8449
|
+
if (d = decorators[i])
|
|
8450
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8451
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8452
|
+
};
|
|
8453
|
+
var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
|
|
8454
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
8455
|
+
return Reflect.metadata(k, v);
|
|
8456
|
+
};
|
|
8457
|
+
function getInitialTimeValue(timeInMinutes) {
|
|
8458
|
+
if (!timeInMinutes)
|
|
8459
|
+
return 30;
|
|
8460
|
+
if (timeInMinutes >= 60 * 24)
|
|
8461
|
+
return timeInMinutes / (60 * 24);
|
|
8462
|
+
if (timeInMinutes >= 90 || timeInMinutes === 60)
|
|
8463
|
+
return timeInMinutes / 60;
|
|
8464
|
+
return timeInMinutes;
|
|
8465
|
+
}
|
|
8466
|
+
function getInitialTimeIncrement(timeInMinutes) {
|
|
8467
|
+
if (!timeInMinutes)
|
|
8468
|
+
return 30;
|
|
8469
|
+
if (timeInMinutes >= 60 * 24)
|
|
8470
|
+
return 60 * 24;
|
|
8471
|
+
if (timeInMinutes >= 90 || timeInMinutes === 60)
|
|
8472
|
+
return 60;
|
|
8473
|
+
return 1;
|
|
8474
|
+
}
|
|
8475
|
+
const NylasReminderTime = class {
|
|
8476
|
+
constructor(hostRef) {
|
|
8477
|
+
index$1.registerInstance(this, hostRef);
|
|
8478
|
+
this.valueChanged = index$1.createEvent(this, "valueChanged", 7);
|
|
8479
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
8480
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
8481
|
+
}
|
|
8482
|
+
else {
|
|
8483
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
8484
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
8485
|
+
}
|
|
8486
|
+
this.name = 'reminder-time';
|
|
8487
|
+
this.eventReminderTimeMinutes = undefined;
|
|
8488
|
+
this.reminderTime = getInitialTimeValue(this.eventReminderTimeMinutes);
|
|
8489
|
+
this.reminderTimeMinutes = this.eventReminderTimeMinutes ?? 30;
|
|
8490
|
+
this.reminderTimeincrement = getInitialTimeIncrement(this.eventReminderTimeMinutes);
|
|
8491
|
+
this.reminderTimeMinutesOptions = constants.REMINDER_MINUTE_OPTIONS;
|
|
8492
|
+
}
|
|
8493
|
+
elementNameChangedHandler(newValue) {
|
|
8494
|
+
utils.debug('nylas-reminder-time', 'elementNameChangedHandler', newValue);
|
|
8495
|
+
this.host.setAttribute('name', newValue);
|
|
8496
|
+
}
|
|
8497
|
+
eventReminderTimeMinutesChangedHandler(newValue, oldValue) {
|
|
8498
|
+
utils.debug('nylas-reminder-time', 'eventReminderTimeMinutesChangedHandler', newValue);
|
|
8499
|
+
if (newValue === oldValue) {
|
|
8500
|
+
return;
|
|
8501
|
+
}
|
|
8502
|
+
this.reminderTime = getInitialTimeValue(newValue);
|
|
8503
|
+
this.reminderTimeincrement = getInitialTimeIncrement(newValue);
|
|
8504
|
+
this.reminderTimeMinutes = newValue;
|
|
8505
|
+
}
|
|
8506
|
+
reminderTimeMinutesChangedHandler(newValue, oldValue) {
|
|
8507
|
+
utils.debug('nylas-reminder-time', 'reminderTimeMinutesChangedHandler', newValue);
|
|
8508
|
+
if (newValue === oldValue) {
|
|
8509
|
+
return;
|
|
8510
|
+
}
|
|
8511
|
+
this.valueChanged.emit({ value: newValue.toString(), name: this.name });
|
|
8512
|
+
}
|
|
8513
|
+
connectedCallback() {
|
|
8514
|
+
utils.debug('nylas-reminder-time', 'connectedCallback');
|
|
8515
|
+
}
|
|
8516
|
+
componentWillLoad() {
|
|
8517
|
+
utils.debug('nylas-reminder-time', 'componentWillLoad');
|
|
8518
|
+
this.host.setAttribute('name', this.name);
|
|
8519
|
+
this.setReminderTimeMinuteOptions();
|
|
8520
|
+
}
|
|
8521
|
+
componentDidLoad() {
|
|
8522
|
+
utils.debug('nylas-reminder-time', 'componentDidLoad');
|
|
8523
|
+
}
|
|
8524
|
+
disconnectedCallback() {
|
|
8525
|
+
utils.debug('nylas-reminder-time', 'disconnectedCallback');
|
|
8526
|
+
}
|
|
8527
|
+
setReminderTimeMinuteOptions() {
|
|
8528
|
+
if (this.reminderTimeincrement === 1) {
|
|
8529
|
+
this.reminderTimeMinutesOptions = constants.REMINDER_MINUTE_OPTIONS;
|
|
8530
|
+
}
|
|
8531
|
+
else if (this.reminderTimeincrement === 60) {
|
|
8532
|
+
this.reminderTimeMinutesOptions = constants.REMINDER_HOUR_OPTIONS;
|
|
8533
|
+
}
|
|
8534
|
+
else
|
|
8535
|
+
this.reminderTimeMinutesOptions = constants.REMINDER_DAY_OPTIONS;
|
|
8536
|
+
return this.reminderTimeMinutesOptions;
|
|
8537
|
+
}
|
|
8538
|
+
nylasFormDropdownChangedHandler(event) {
|
|
8539
|
+
utils.debug('nylas-calendar-picker', 'nylasFormDropdownChangedHandler', event.detail);
|
|
8540
|
+
const { value } = event.detail;
|
|
8541
|
+
this.reminderTimeincrement = parseInt(value);
|
|
8542
|
+
if (this.reminderTimeincrement === 1) {
|
|
8543
|
+
this.reminderTime = 60;
|
|
8544
|
+
}
|
|
8545
|
+
else {
|
|
8546
|
+
this.reminderTime = 1;
|
|
8547
|
+
}
|
|
8548
|
+
this.setReminderTimeMinuteOptions();
|
|
8549
|
+
this.reminderTimeMinutes = this.reminderTime * this.reminderTimeincrement;
|
|
8550
|
+
this.internals.setFormValue(this.reminderTimeMinutes.toString(), this.name);
|
|
8551
|
+
}
|
|
8552
|
+
inputOptionChangedHandler(event) {
|
|
8553
|
+
utils.debug('nylas-calendar-picker', 'inputOptionChangedHandler', event.detail);
|
|
8554
|
+
const { value } = event.detail;
|
|
8555
|
+
this.reminderTime = value;
|
|
8556
|
+
this.reminderTimeMinutes = this.reminderTime * this.reminderTimeincrement;
|
|
8557
|
+
this.internals.setFormValue(this.reminderTimeMinutes.toString(), this.name);
|
|
8558
|
+
}
|
|
8559
|
+
render() {
|
|
8560
|
+
const reminderTimeOptions = [
|
|
8561
|
+
{ value: 1, label: 'minute' },
|
|
8562
|
+
{ value: 60, label: 'hour' },
|
|
8563
|
+
{ value: 60 * 24, label: 'day' },
|
|
8564
|
+
];
|
|
8565
|
+
return (index$1.h(index$1.Host, { key: 'd5f118391bdd7e4779f6eca15335285047fdb350' }, index$1.h("div", { key: '2dd8d3ba52d4f95480c9cf1fdaf5d0f1f7c1e523', class: "nylas-reminder-time", part: "nrt" }, index$1.h("div", { key: '3799c4b266f4078e22ad78b86225ef9abdc5fa49', class: "nylas-reminder-time__wrapper" }, index$1.h("input-dropdown", { key: '004b6336c041660e1424ac44f16e82c8a5a2ca53', name: 'reminder-time', options: this.reminderTimeMinutesOptions, inputValue: this.reminderTime.toString(), exportparts: "id_dropdown: nrt__input_dropdown, id_dropdown-input: nrt__input_dropdown-input, id_dropdown-content: nrt__input_dropdown-content", defaultInputOption: this.reminderTimeMinutesOptions.find(i => i.value == this.reminderTime) ?? reminderTimeOptions[0] }), index$1.h("select-dropdown", { key: '6a42c7f4633d89dd9a94d3c2f119e151613667ec', name: 'reminder-time-unit', options: reminderTimeOptions, pluralizedLabel: this.reminderTime > 1 ? 's' : '', exportparts: "sd_dropdown: nrt__dropdown, sd_dropdown-button: nrt__dropdown-button, sd_dropdown-content: nrt__dropdown-content", defaultSelectedOption: reminderTimeOptions.find(i => i.value == this.reminderTimeincrement) ?? reminderTimeOptions[0], withSearch: false })))));
|
|
8566
|
+
}
|
|
8567
|
+
static get formAssociated() { return true; }
|
|
8568
|
+
get host() { return index$1.getElement(this); }
|
|
8569
|
+
static get watchers() { return {
|
|
8570
|
+
"name": ["elementNameChangedHandler"],
|
|
8571
|
+
"eventReminderTimeMinutes": ["eventReminderTimeMinutesChangedHandler"],
|
|
8572
|
+
"reminderTimeMinutes": ["reminderTimeMinutesChangedHandler"]
|
|
8573
|
+
}; }
|
|
8574
|
+
};
|
|
8575
|
+
__decorate$2([
|
|
8576
|
+
registerComponent.RegisterComponent({
|
|
8577
|
+
name: 'nylas-reminder-time',
|
|
8578
|
+
eventToProps: {},
|
|
8579
|
+
fireRegisterEvent: true,
|
|
8580
|
+
}),
|
|
8185
8581
|
__metadata$2("design:type", Function),
|
|
8186
8582
|
__metadata$2("design:paramtypes", []),
|
|
8187
8583
|
__metadata$2("design:returntype", void 0)
|
|
8188
|
-
],
|
|
8189
|
-
|
|
8584
|
+
], NylasReminderTime.prototype, "render", null);
|
|
8585
|
+
NylasReminderTime.style = NylasReminderTimeStyle0;
|
|
8190
8586
|
|
|
8191
8587
|
const nylasSchedulingMethodCss = ":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;width:inherit}.nylas-scheduling-method{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);margin:0.25rem 0 0 0;font-size:14px;font-weight:400;line-height:20px;text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label tooltip-component{display:flex}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-scheduling-method .nylas-scheduling-method__dropdown input-component::part(ic__input){background:var(--nylas-base-50);outline:none;cursor:not-allowed}";
|
|
8192
8588
|
const NylasSchedulingMethodStyle0 = nylasSchedulingMethodCss;
|
|
@@ -8216,8 +8612,8 @@ const NylasSchedulingMethod = class {
|
|
|
8216
8612
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
8217
8613
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
8218
8614
|
}
|
|
8219
|
-
this.name = 'availability-method';
|
|
8220
8615
|
this.selectedConfiguration = undefined;
|
|
8616
|
+
this.name = 'availability-method';
|
|
8221
8617
|
this.participantOptions = undefined;
|
|
8222
8618
|
this.readOnly = false;
|
|
8223
8619
|
this.selectedBookingType = '';
|
|
@@ -8295,10 +8691,8 @@ const NylasSchedulingMethod = class {
|
|
|
8295
8691
|
__decorate$1([
|
|
8296
8692
|
registerComponent.RegisterComponent({
|
|
8297
8693
|
name: 'nylas-scheduling-method',
|
|
8298
|
-
stateToProps: new Map([
|
|
8299
|
-
|
|
8300
|
-
['schedulerConfig.additionalParticipants', 'participantOptions'],
|
|
8301
|
-
]),
|
|
8694
|
+
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
8695
|
+
localPropsToProp: new Map([['additionalParticipants', 'participantOptions']]),
|
|
8302
8696
|
eventToProps: {
|
|
8303
8697
|
valueChanged: async (event, _nylasSchedulerConfigConnector) => {
|
|
8304
8698
|
const { valueChanged } = event.detail;
|
|
@@ -8347,8 +8741,6 @@ const NylasTimeslotInterval = class {
|
|
|
8347
8741
|
this.selectedConfiguration = undefined;
|
|
8348
8742
|
this.name = 'timeslot-picker';
|
|
8349
8743
|
this.eventDurationMinutes = this.selectedConfiguration?.availability?.duration_minutes;
|
|
8350
|
-
this.defaultIntervalMinutes = this.selectedConfiguration?.availability?.interval_minutes ?? this.eventDurationMinutes ?? 10;
|
|
8351
|
-
this.defaultRoundTo = this.selectedConfiguration?.availability?.round_to ?? undefined;
|
|
8352
8744
|
this.internalEventDurationMinutes = undefined;
|
|
8353
8745
|
this.selectedInterval = undefined;
|
|
8354
8746
|
this.selectedRoundTo = undefined;
|
|
@@ -8361,9 +8753,9 @@ const NylasTimeslotInterval = class {
|
|
|
8361
8753
|
selectedConfigurationChangedHandler(newValue) {
|
|
8362
8754
|
utils.debug('nylas-timeslot-interval', 'selectedConfigurationChangedHandler', newValue);
|
|
8363
8755
|
this.internalEventDurationMinutes = newValue?.availability?.duration_minutes ?? this.eventDurationMinutes ?? 30;
|
|
8364
|
-
const internalIntervalMinutes = newValue
|
|
8365
|
-
this.selectedInterval = newValue
|
|
8366
|
-
const roundToMinutes = newValue
|
|
8756
|
+
const internalIntervalMinutes = newValue?.availability?.interval_minutes ?? this.internalEventDurationMinutes ?? 30;
|
|
8757
|
+
this.selectedInterval = newValue?.availability?.interval_minutes ?? internalIntervalMinutes ?? 10;
|
|
8758
|
+
const roundToMinutes = newValue?.availability?.round_to || null;
|
|
8367
8759
|
this.selectedRoundTo = roundToMinutes && roundToMinutes === internalIntervalMinutes ? true : false;
|
|
8368
8760
|
}
|
|
8369
8761
|
connectedCallback() {
|
|
@@ -8457,7 +8849,7 @@ const NylasTimeslotInterval = class {
|
|
|
8457
8849
|
? intervalPreferenceOptions[0]
|
|
8458
8850
|
: intervalPreferenceOptions.find(op => op.value == this.selectedInterval.toString()) ?? intervalPreferenceOptions[0]
|
|
8459
8851
|
: undefined;
|
|
8460
|
-
return (index$1.h(index$1.Host, { key: '
|
|
8852
|
+
return (index$1.h(index$1.Host, { key: '8f7dd99dfc3f41a0435f37c9a8e4052732a9868b' }, index$1.h("div", { key: 'c2c462dd6409b08f0d641fc6c169793dc5a05150', class: "nylas-timeslot-interval", part: "nti" }, index$1.h("div", { key: 'b6e29f56325f75b03ad4ba933fabea9825eb50cc', class: "header", part: "nti__header" }, index$1.h("h3", { key: '1c736752d9bd7e8e0a4b113eb858b8d9420fc72b' }, "Time slot settings")), index$1.h("div", { key: '3577261419231e74b71e890a2de0629ac0c02c89', class: "nylas-timeslot-interval__dropdown" }, index$1.h("span", { key: '68dc2a1f0709ca3b1a14d68001cde315b83509cc', class: "label", part: "nti__input-label" }, "Time slot interval."), defaultSelectedInterval?.label && (index$1.h("select-dropdown", { name: "interval-minutes", options: intervalPreferenceOptions, withSearch: false, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: defaultSelectedInterval })), index$1.h("span", { key: '505093bca858fd24188db043fda5e3036a474d7d', slot: "label", class: "label", part: "nti__input-label" }, "Time slot rounding type", index$1.h("tooltip-component", { key: '9b63c319d79fb926da222939aea8c38600c5c70e' }, index$1.h("info-icon", { key: 'a3f1ed080e6508c02cc150d9252d40eae1adb1ac', slot: "tooltip-icon" }), index$1.h("span", { key: '4690a7089fb68e0f119f3efc583a55a8dbff0b88', slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), this.componentLoaded && (index$1.h("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? 'rounding' : 'no-rounding', options: [
|
|
8461
8853
|
{ value: 'no-rounding', label: 'Default', description: 'Time slots will be rounded to the nearest quarter-hour.' },
|
|
8462
8854
|
{
|
|
8463
8855
|
value: 'rounding',
|
|
@@ -8485,8 +8877,8 @@ __decorate([
|
|
|
8485
8877
|
], NylasTimeslotInterval.prototype, "render", null);
|
|
8486
8878
|
NylasTimeslotInterval.style = NylasTimeslotIntervalStyle0;
|
|
8487
8879
|
|
|
8488
|
-
const iconCss$
|
|
8489
|
-
const PaintbrushFillIconStyle0 = iconCss$
|
|
8880
|
+
const iconCss$4 = ".sc-paintbrush-fill-icon-h{display:flex}";
|
|
8881
|
+
const PaintbrushFillIconStyle0 = iconCss$4;
|
|
8490
8882
|
|
|
8491
8883
|
const PaintbrushFillIcon = class {
|
|
8492
8884
|
constructor(hostRef) {
|
|
@@ -8495,13 +8887,13 @@ const PaintbrushFillIcon = class {
|
|
|
8495
8887
|
this.height = '13';
|
|
8496
8888
|
}
|
|
8497
8889
|
render() {
|
|
8498
|
-
return (index$1.h("svg", { key: '
|
|
8890
|
+
return (index$1.h("svg", { key: 'e4684ac3235a59975a67508b6a5019e70b1a3a5a', width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '00dee1b55784f1191d56a8c1b420f0076575a197', d: "M5 2.875V0.375H0.5C0.223858 0.375 0 0.598858 0 0.875V7.37585H10V0.875C10 0.598858 9.77614 0.375 9.5 0.375H8V3.87722C8 4.15337 7.77614 4.37722 7.5 4.37722C7.22386 4.37722 7 4.15337 7 3.87722V0.375H6V2.875C6 3.15114 5.77614 3.375 5.5 3.375C5.22386 3.375 5 3.15114 5 2.875ZM10 8.37585H0V9.37938C0 10.4839 0.895431 11.3794 2 11.3794H3.5V14.8767C3.5 15.7051 4.17157 16.3767 5 16.3767C5.82843 16.3767 6.5 15.7051 6.5 14.8767V11.3794H8C9.10457 11.3794 10 10.4839 10 9.37938V8.37585Z", fill: "currentColor" })));
|
|
8499
8891
|
}
|
|
8500
8892
|
};
|
|
8501
8893
|
PaintbrushFillIcon.style = PaintbrushFillIconStyle0;
|
|
8502
8894
|
|
|
8503
|
-
const iconCss$
|
|
8504
|
-
const PaintbrushIconStyle0 = iconCss$
|
|
8895
|
+
const iconCss$3 = ".sc-paintbrush-icon-h{display:flex}";
|
|
8896
|
+
const PaintbrushIconStyle0 = iconCss$3;
|
|
8505
8897
|
|
|
8506
8898
|
const PaintbrushIcon = class {
|
|
8507
8899
|
constructor(hostRef) {
|
|
@@ -8510,13 +8902,13 @@ const PaintbrushIcon = class {
|
|
|
8510
8902
|
this.height = '13';
|
|
8511
8903
|
}
|
|
8512
8904
|
render() {
|
|
8513
|
-
return (index$1.h("svg", { key: '
|
|
8905
|
+
return (index$1.h("svg", { key: '8ed14deda237ca56daa7b7cfd55788700ecf8614', width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '5100cb1d8fba90615962e57facfd3361cd31f4e5', d: "M0.5 -0.000976562C0.223858 -0.000976562 0 0.222881 0 0.499023L1.90735e-05 9.00337C1.90735e-05 10.1079 0.89545 11.0034 2.00002 11.0034H3.00411V14.0007C3.00411 15.1053 3.89954 16.0007 5.00411 16.0007C6.10868 16.0007 7.00411 15.1053 7.00411 14.0007V11.0034H8.00002C9.10459 11.0034 10 10.1079 10 9.00337V7.50339L10 7.49897V0.499023C10 0.222881 9.77614 -0.000976562 9.5 -0.000976562H0.5ZM1.00002 8.00342H9.00002V9.00337C9.00002 9.55566 8.5523 10.0034 8.00002 10.0034H6.50411C6.22797 10.0034 6.00411 10.2272 6.00411 10.5034V14.0007C6.00411 14.553 5.5564 15.0007 5.00411 15.0007C4.45183 15.0007 4.00411 14.553 4.00411 14.0007V10.5034C4.00411 10.2272 3.78026 10.0034 3.50411 10.0034H2.00002C1.44773 10.0034 1.00002 9.55566 1.00002 9.00337V8.00342ZM9 7.00339H1V0.999023H5V2.49902C5 2.77517 5.22386 2.99902 5.5 2.99902C5.77614 2.99902 6 2.77517 6 2.49902V0.999023H7V3.50122C7 3.77736 7.22386 4.00122 7.5 4.00122C7.77614 4.00122 8 3.77736 8 3.50122V0.999023H9V7.00339Z", fill: "currentColor" })));
|
|
8514
8906
|
}
|
|
8515
8907
|
};
|
|
8516
8908
|
PaintbrushIcon.style = PaintbrushIconStyle0;
|
|
8517
8909
|
|
|
8518
|
-
const iconCss$
|
|
8519
|
-
const PeopleIconStyle0 = iconCss$
|
|
8910
|
+
const iconCss$2 = ".sc-people-icon-h{display:flex}";
|
|
8911
|
+
const PeopleIconStyle0 = iconCss$2;
|
|
8520
8912
|
|
|
8521
8913
|
const PeopleIcon = class {
|
|
8522
8914
|
constructor(hostRef) {
|
|
@@ -8525,7 +8917,7 @@ const PeopleIcon = class {
|
|
|
8525
8917
|
this.height = '20';
|
|
8526
8918
|
}
|
|
8527
8919
|
render() {
|
|
8528
|
-
return (index$1.h("svg", { key: '
|
|
8920
|
+
return (index$1.h("svg", { key: 'e7e23abad1ff011b5e2d8931755a605179586351', xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, index$1.h("path", { key: '3ddb5e0a172b339cd8d33c3ae95fda09c0edd3bb', fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" })));
|
|
8529
8921
|
}
|
|
8530
8922
|
};
|
|
8531
8923
|
PeopleIcon.style = PeopleIconStyle0;
|
|
@@ -8554,11 +8946,26 @@ const ToggleSwitchComponent = class {
|
|
|
8554
8946
|
});
|
|
8555
8947
|
}
|
|
8556
8948
|
render() {
|
|
8557
|
-
return (index$1.h("label", { key: '
|
|
8949
|
+
return (index$1.h("label", { key: '7d74c0f5a452c3261e1cdd897a5092697a6782bb', class: "switch", part: "ts_label" }, index$1.h("input", { key: '80f5740b7e4a7af96b95648dd556b50c0537b505', type: "checkbox", part: "ts_input", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), index$1.h("div", { key: '5176ee85b2fd72586ae6faf41e84c2ef60598f32', class: "slider round", part: "ts_slider" })));
|
|
8558
8950
|
}
|
|
8559
8951
|
};
|
|
8560
8952
|
ToggleSwitchComponent.style = ToggleSwitchStyle0;
|
|
8561
8953
|
|
|
8954
|
+
const iconCss$1 = ".sc-trash-icon-h{display:flex}";
|
|
8955
|
+
const TrashIconStyle0 = iconCss$1;
|
|
8956
|
+
|
|
8957
|
+
const TrashIcon = class {
|
|
8958
|
+
constructor(hostRef) {
|
|
8959
|
+
index$1.registerInstance(this, hostRef);
|
|
8960
|
+
this.width = '20';
|
|
8961
|
+
this.height = '21';
|
|
8962
|
+
}
|
|
8963
|
+
render() {
|
|
8964
|
+
return (index$1.h("svg", { key: '996def7abb49e7006b1982be54b9a7a0da6fb27f', width: this.width, height: this.height, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: '85f12d3be93cba4337ddf2fc99d89c80dbf6008c', d: "M10 0.25C11.733 0.25 13.1492 1.60645 13.2449 3.31558L13.25 3.5H18.5C18.9142 3.5 19.25 3.83579 19.25 4.25C19.25 4.6297 18.9678 4.94349 18.6018 4.99315L18.5 5H17.704L16.4239 18.0192C16.2912 19.3683 15.1984 20.41 13.8626 20.4945L13.6871 20.5H6.31293C4.95734 20.5 3.81365 19.5145 3.59883 18.1934L3.57614 18.0192L2.295 5H1.5C1.1203 5 0.806509 4.71785 0.756847 4.35177L0.75 4.25C0.75 3.8703 1.03215 3.55651 1.39823 3.50685L1.5 3.5H6.75C6.75 1.70507 8.20507 0.25 10 0.25ZM16.197 5H3.802L5.06893 17.8724C5.12768 18.4696 5.60033 18.9343 6.18585 18.9936L6.31293 19H13.6871C14.2872 19 14.7959 18.5751 14.9123 17.9982L14.9311 17.8724L16.197 5ZM11.75 7.75C12.1297 7.75 12.4435 8.03215 12.4932 8.39823L12.5 8.5V15.5C12.5 15.9142 12.1642 16.25 11.75 16.25C11.3703 16.25 11.0565 15.9678 11.0068 15.6018L11 15.5V8.5C11 8.08579 11.3358 7.75 11.75 7.75ZM8.25 7.75C8.6297 7.75 8.94349 8.03215 8.99315 8.39823L9 8.5V15.5C9 15.9142 8.66421 16.25 8.25 16.25C7.8703 16.25 7.55651 15.9678 7.50685 15.6018L7.5 15.5V8.5C7.5 8.08579 7.83579 7.75 8.25 7.75ZM10 1.75C9.08183 1.75 8.32881 2.45711 8.2558 3.35647L8.25 3.5H11.75C11.75 2.5335 10.9665 1.75 10 1.75Z", fill: "currentColor" })));
|
|
8965
|
+
}
|
|
8966
|
+
};
|
|
8967
|
+
TrashIcon.style = TrashIconStyle0;
|
|
8968
|
+
|
|
8562
8969
|
const iconCss = ".sc-zoom-icon-h{display:flex}";
|
|
8563
8970
|
const ZoomIconStyle0 = iconCss;
|
|
8564
8971
|
|
|
@@ -8569,7 +8976,7 @@ const ZoomIcon = class {
|
|
|
8569
8976
|
this.height = '20';
|
|
8570
8977
|
}
|
|
8571
8978
|
render() {
|
|
8572
|
-
return (index$1.h("svg", { key: '
|
|
8979
|
+
return (index$1.h("svg", { key: '9789a9930b484f5094660e3b26ca8597a9b98079', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { key: 'a6c4d6c5d01a39cf9f302982b9d59e20ef8dd4fe', d: "M19.7495 6.85792C19.2077 3.4745 16.5255 0.792345 13.1421 0.250451C12.1175 0.0865155 11.0702 0 10 0C8.92992 0 7.88256 0.0865155 6.85797 0.250451C3.47453 0.792345 0.792373 3.4745 0.250478 6.85792C0.0865433 7.87796 0 8.92987 0 10C0 11.0701 0.0865433 12.1175 0.250478 13.1421C0.792373 16.5255 3.47453 19.2077 6.85797 19.7495C7.88256 19.9135 8.92992 20 10 20C11.0702 20 12.1175 19.9135 13.1421 19.7495C16.5255 19.2077 19.2077 16.5255 19.7495 13.1421C19.9135 12.122 20 11.0701 20 10C20 8.92987 19.9135 7.88251 19.7495 6.85792Z", fill: "url(#paint0_linear_22_6272)" }), index$1.h("path", { key: '8a1742b847a85d297382072fa1344e261236b2c7', d: "M12.154 12.1676C12.154 12.7596 11.6759 13.2377 11.0839 13.2377H6.42995C5.24598 13.2377 4.28516 12.2769 4.28516 11.0929V7.87794C4.28516 7.28596 4.76328 6.80786 5.35527 6.80786H10.0092C11.1932 6.80786 12.154 7.7687 12.154 8.95267V12.1676ZM14.8589 7.09475L13.2879 8.27412C13.0193 8.47448 12.8598 8.79324 12.8598 9.13022V10.9153C12.8598 11.2523 13.0193 11.5711 13.2879 11.7714L14.8589 12.9508C15.2141 13.2149 15.715 12.9645 15.715 12.5228V7.5228C15.715 7.08109 15.2096 6.83063 14.8589 7.09475Z", fill: "white" }), index$1.h("defs", { key: 'be2e9962bb2dec55076c7b323ad5b1140ef9283b' }, index$1.h("linearGradient", { key: '7d273efb34a3a13abd745023ff924b1dbd87be37', id: "paint0_linear_22_6272", x1: "10", y1: "19.9954", x2: "10", y2: "-0.00455379", gradientUnits: "userSpaceOnUse" }, index$1.h("stop", { key: '841a9fc4ea78d5507cd19a581573c8cf86fb443a', "stop-color": "#003FAE" }), index$1.h("stop", { key: '84c1e64fa2dcdf8bc3c532db4d67bcda557c6a50', offset: "0.02", "stop-color": "#0142B7" }), index$1.h("stop", { key: 'c5fccfcd3460597ba44aea510048970b5ea750bf', offset: "0.09", "stop-color": "#044BD1" }), index$1.h("stop", { key: '08b1ebe7800ae3e1da23755119f3411693ab22ab', offset: "0.16", "stop-color": "#0752E5" }), index$1.h("stop", { key: '16c3bc399028a8377c06c6e1b4cf1680717ef464', offset: "0.24", "stop-color": "#0958F4" }), index$1.h("stop", { key: 'c5938a655523d730914af0f13eebd1d51527cab8', offset: "0.34", "stop-color": "#0A5BFC" }), index$1.h("stop", { key: 'c3ec1966b6d7602465a59c2b5db40ad4738cfc0b', offset: "0.5", "stop-color": "#0B5CFF" })))));
|
|
8573
8980
|
}
|
|
8574
8981
|
};
|
|
8575
8982
|
ZoomIcon.style = ZoomIconStyle0;
|
|
@@ -8618,12 +9025,15 @@ exports.nylas_page_name = NylasPageName;
|
|
|
8618
9025
|
exports.nylas_page_styling = NylasPageStyling;
|
|
8619
9026
|
exports.nylas_participant_booking_calendars = NylasParticipantBookingCalendars;
|
|
8620
9027
|
exports.nylas_participants_custom_availability = NylasParticipantsCustomAvailability;
|
|
9028
|
+
exports.nylas_reminder_emails = NylasReminderEmails;
|
|
9029
|
+
exports.nylas_reminder_time = NylasReminderTime;
|
|
8621
9030
|
exports.nylas_scheduling_method = NylasSchedulingMethod;
|
|
8622
9031
|
exports.nylas_timeslot_interval = NylasTimeslotInterval;
|
|
8623
9032
|
exports.paintbrush_fill_icon = PaintbrushFillIcon;
|
|
8624
9033
|
exports.paintbrush_icon = PaintbrushIcon;
|
|
8625
9034
|
exports.people_icon = PeopleIcon;
|
|
8626
9035
|
exports.toggle_switch = ToggleSwitchComponent;
|
|
9036
|
+
exports.trash_icon = TrashIcon;
|
|
8627
9037
|
exports.zoom_icon = ZoomIcon;
|
|
8628
9038
|
|
|
8629
|
-
//# sourceMappingURL=calendar-agenda-fill-
|
|
9039
|
+
//# sourceMappingURL=calendar-agenda-fill-icon_54.cjs.entry.js.map
|