@nylas/web-elements 0.0.0-canary-20241008193213 → 0.0.0-canary-20241015194719
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 +2 -2
- 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 +12 -12
- 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 +15 -15
- 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 +6323 -5910
- package/dist/cdn/nylas-event-description/nylas-event-description.es.js +3 -3
- package/dist/cdn/nylas-event-duration/nylas-event-duration.es.js +5 -5
- 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 +1364 -937
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1077 -1053
- 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 +6 -6
- 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} +703 -304
- 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 +33 -32
- 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/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 +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 +48 -42
- 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 +56 -41
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
- 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 +8 -4
- package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js.map +1 -1
- 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 +16 -7
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-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 +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 +6 -6
- 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 +3 -2
- 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 +1 -1
- 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 +5 -5
- 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} +702 -306
- 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 +34 -33
- 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-698d229c.entry.js +2 -0
- package/dist/nylas-web-elements/p-698d229c.entry.js.map +1 -0
- 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-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-b9a8d404.entry.js +8 -0
- package/dist/nylas-web-elements/p-b9a8d404.entry.js.map +1 -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-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-fecf68ef.entry.js → p-f4334e3a.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/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 +2 -2
- 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-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 +252 -289
- 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-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-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-fecf68ef.entry.js.map → p-f4334e3a.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
|
@@ -94,7 +94,7 @@ function B4(t) {
|
|
|
94
94
|
var e, n, r;
|
|
95
95
|
return (r = (n = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || n === void 0 ? void 0 : n.getAttribute("content")) !== null && r !== void 0 ? r : void 0;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const g = (t, e, ...n) => {
|
|
98
98
|
let r = null, i = null, o = null, s = !1, a = !1;
|
|
99
99
|
const u = [], c = (l) => {
|
|
100
100
|
for (let f = 0; f < l.length; f++)
|
|
@@ -133,7 +133,7 @@ const b = (t, e, ...n) => {
|
|
|
133
133
|
}), P4 = (t) => {
|
|
134
134
|
if (typeof t.vtag == "function") {
|
|
135
135
|
const n = Object.assign({}, t.vattrs);
|
|
136
|
-
return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname),
|
|
136
|
+
return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), g(t.vtag, n, ...t.vchildren || []);
|
|
137
137
|
}
|
|
138
138
|
const e = Oo(t.vtag, t.vtext);
|
|
139
139
|
return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
|
|
@@ -255,7 +255,7 @@ const b = (t, e, ...n) => {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
}, H4 = (t, e, n, r, i = !1) => {
|
|
258
|
-
let o = 0, s = 0, a = 0, u = 0, c = e.length - 1, d = e[0], l = e[c], f = r.length - 1, h = r[0], p = r[f],
|
|
258
|
+
let o = 0, s = 0, a = 0, u = 0, c = e.length - 1, d = e[0], l = e[c], f = r.length - 1, h = r[0], p = r[f], b, m;
|
|
259
259
|
for (; o <= c && s <= f; )
|
|
260
260
|
if (d == null)
|
|
261
261
|
d = e[++o];
|
|
@@ -279,7 +279,7 @@ const b = (t, e, ...n) => {
|
|
|
279
279
|
a = u;
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
|
-
a >= 0 ? (m = e[a], m.$tag$ !== h.$tag$ ?
|
|
282
|
+
a >= 0 ? (m = e[a], m.$tag$ !== h.$tag$ ? b = Lo(e && e[s], n, a, t) : (nr(m, h, i), e[a] = void 0, b = m.$elm$), h = r[++s]) : (b = Lo(e && e[s], n, s, t), h = r[++s]), b && ch(d.$elm$).insertBefore(b, oc(d.$elm$));
|
|
283
283
|
}
|
|
284
284
|
o > c ? ah(t, r[f + 1] == null ? null : r[f + 1].$elm$, n, r, s, f) : s > f && uh(e, o, c);
|
|
285
285
|
}, Fi = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, oc = (t) => t && t["s-ol"] || t, ch = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, nr = (t, e, n = !1) => {
|
|
@@ -334,7 +334,7 @@ const b = (t, e, ...n) => {
|
|
|
334
334
|
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(fh);
|
|
335
335
|
}, q4 = (t, e, n = !1) => {
|
|
336
336
|
var r, i, o, s, a;
|
|
337
|
-
const u = t.$hostElement$, c = t.$cmpMeta$, d = t.$vnode$ || Oo(null, null), l = D4(e) ? e :
|
|
337
|
+
const u = t.$hostElement$, c = t.$cmpMeta$, d = t.$vnode$ || Oo(null, null), l = D4(e) ? e : g(null, null, e);
|
|
338
338
|
if (ti = u.tagName, c.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, c.$attrsToReflect$.map(([f, h]) => l.$attrs$[h] = u[f])), n && l.$attrs$)
|
|
339
339
|
for (const f of Object.keys(l.$attrs$))
|
|
340
340
|
u.hasAttribute(f) && !["key", "ref", "style", "class"].includes(f) && (l.$attrs$[f] = u[f]);
|
|
@@ -352,20 +352,20 @@ const b = (t, e, ...n) => {
|
|
|
352
352
|
for (const f of Ht) {
|
|
353
353
|
const h = f.$nodeToRelocate$, p = f.$slotRefNode$;
|
|
354
354
|
if (p) {
|
|
355
|
-
const
|
|
355
|
+
const b = p.parentNode;
|
|
356
356
|
let m = p.nextSibling;
|
|
357
357
|
{
|
|
358
358
|
let y = (r = h["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
|
|
359
359
|
for (; y; ) {
|
|
360
360
|
let v = (i = y["s-nr"]) !== null && i !== void 0 ? i : null;
|
|
361
|
-
if (v && v["s-sn"] === h["s-sn"] &&
|
|
361
|
+
if (v && v["s-sn"] === h["s-sn"] && b === v.parentNode && (v = v.nextSibling, !v || !v["s-nr"])) {
|
|
362
362
|
m = v;
|
|
363
363
|
break;
|
|
364
364
|
}
|
|
365
365
|
y = y.previousSibling;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
(!m &&
|
|
368
|
+
(!m && b !== h.parentNode || h.nextSibling !== m) && h !== m && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), b.insertBefore(h, m), h.nodeType === 1 && (h.hidden = (o = h["s-ih"]) !== null && o !== void 0 ? o : !1));
|
|
369
369
|
} else
|
|
370
370
|
h.nodeType === 1 && (n && (h["s-ih"] = (s = h.hidden) !== null && s !== void 0 ? s : !1), h.hidden = !0);
|
|
371
371
|
}
|
|
@@ -464,9 +464,9 @@ const b = (t, e, ...n) => {
|
|
|
464
464
|
if (l == null) {
|
|
465
465
|
const f = Cr(this), h = f == null ? void 0 : f.$flags$;
|
|
466
466
|
if (h && !(h & 8) && h & 128 && c !== u) {
|
|
467
|
-
const
|
|
467
|
+
const b = this, m = (d = e.$watchers$) === null || d === void 0 ? void 0 : d[a];
|
|
468
468
|
m == null || m.forEach((y) => {
|
|
469
|
-
|
|
469
|
+
b[y] != null && b[y].call(b, c, u, a);
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
return;
|
|
@@ -656,12 +656,12 @@ function vs(t, e, n, r, i) {
|
|
|
656
656
|
return (h ? -1 : 1) * s * Math.pow(2, o - r);
|
|
657
657
|
}
|
|
658
658
|
function bh(t, e, n, r, i, o) {
|
|
659
|
-
var s, a, u, c = o * 8 - i - 1, d = (1 << c) - 1, l = d >> 1, f = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = r ? 0 : o - 1, p = r ? 1 : -1,
|
|
659
|
+
var s, a, u, c = o * 8 - i - 1, d = (1 << c) - 1, l = d >> 1, f = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = r ? 0 : o - 1, p = r ? 1 : -1, b = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
660
660
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, s = d) : (s = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -s)) < 1 && (s--, u *= 2), s + l >= 1 ? e += f / u : e += f * Math.pow(2, 1 - l), e * u >= 2 && (s++, u /= 2), s + l >= d ? (a = 0, s = d) : s + l >= 1 ? (a = (e * u - 1) * Math.pow(2, i), s = s + l) : (a = e * Math.pow(2, l - 1) * Math.pow(2, i), s = 0)); i >= 8; t[n + h] = a & 255, h += p, a /= 256, i -= 8)
|
|
661
661
|
;
|
|
662
662
|
for (s = s << i | a, c += i; c > 0; t[n + h] = s & 255, h += p, s /= 256, c -= 8)
|
|
663
663
|
;
|
|
664
|
-
t[n + h - p] |=
|
|
664
|
+
t[n + h - p] |= b * 128;
|
|
665
665
|
}
|
|
666
666
|
var v_ = {}.toString, yh = Array.isArray || function(t) {
|
|
667
667
|
return v_.call(t) == "[object Array]";
|
|
@@ -1490,60 +1490,60 @@ var Ih = { exports: {} };
|
|
|
1490
1490
|
(function(n, r) {
|
|
1491
1491
|
t.exports = r();
|
|
1492
1492
|
})(Qe, function() {
|
|
1493
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", u = "hour", c = "day", d = "week", l = "month", f = "quarter", h = "year", p = "date",
|
|
1494
|
-
var S = ["th", "st", "nd", "rd"], _ =
|
|
1495
|
-
return "[" +
|
|
1496
|
-
} },
|
|
1497
|
-
var
|
|
1498
|
-
return !
|
|
1499
|
-
}, C = { s:
|
|
1500
|
-
var S = -
|
|
1501
|
-
return (S <= 0 ? "+" : "-") +
|
|
1502
|
-
}, m: function
|
|
1503
|
-
if (S.date() < _.date()) return -
|
|
1504
|
-
var
|
|
1505
|
-
return +(-(
|
|
1506
|
-
}, a: function(
|
|
1507
|
-
return
|
|
1508
|
-
}, p: function(
|
|
1509
|
-
return { M: l, y: h, w: d, d: c, D: p, h: u, m: a, s, ms: o, Q: f }[
|
|
1510
|
-
}, u: function(
|
|
1511
|
-
return
|
|
1512
|
-
} },
|
|
1513
|
-
|
|
1514
|
-
var
|
|
1515
|
-
return
|
|
1516
|
-
}, j = function
|
|
1493
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", u = "hour", c = "day", d = "week", l = "month", f = "quarter", h = "year", p = "date", b = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
1494
|
+
var S = ["th", "st", "nd", "rd"], _ = T % 100;
|
|
1495
|
+
return "[" + T + (S[(_ - 20) % 10] || S[_] || S[0]) + "]";
|
|
1496
|
+
} }, E = function(T, S, _) {
|
|
1497
|
+
var A = String(T);
|
|
1498
|
+
return !A || A.length >= S ? T : "" + Array(S + 1 - A.length).join(_) + T;
|
|
1499
|
+
}, C = { s: E, z: function(T) {
|
|
1500
|
+
var S = -T.utcOffset(), _ = Math.abs(S), A = Math.floor(_ / 60), x = _ % 60;
|
|
1501
|
+
return (S <= 0 ? "+" : "-") + E(A, 2, "0") + ":" + E(x, 2, "0");
|
|
1502
|
+
}, m: function T(S, _) {
|
|
1503
|
+
if (S.date() < _.date()) return -T(_, S);
|
|
1504
|
+
var A = 12 * (_.year() - S.year()) + (_.month() - S.month()), x = S.clone().add(A, l), M = _ - x < 0, F = S.clone().add(A + (M ? -1 : 1), l);
|
|
1505
|
+
return +(-(A + (_ - x) / (M ? x - F : F - x)) || 0);
|
|
1506
|
+
}, a: function(T) {
|
|
1507
|
+
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
1508
|
+
}, p: function(T) {
|
|
1509
|
+
return { M: l, y: h, w: d, d: c, D: p, h: u, m: a, s, ms: o, Q: f }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
1510
|
+
}, u: function(T) {
|
|
1511
|
+
return T === void 0;
|
|
1512
|
+
} }, $ = "en", B = {};
|
|
1513
|
+
B[$] = v;
|
|
1514
|
+
var D = function(T) {
|
|
1515
|
+
return T instanceof k;
|
|
1516
|
+
}, j = function T(S, _, A) {
|
|
1517
1517
|
var x;
|
|
1518
|
-
if (!S) return
|
|
1518
|
+
if (!S) return $;
|
|
1519
1519
|
if (typeof S == "string") {
|
|
1520
1520
|
var M = S.toLowerCase();
|
|
1521
|
-
|
|
1521
|
+
B[M] && (x = M), _ && (B[M] = _, x = M);
|
|
1522
1522
|
var F = S.split("-");
|
|
1523
|
-
if (!x && F.length > 1) return
|
|
1523
|
+
if (!x && F.length > 1) return T(F[0]);
|
|
1524
1524
|
} else {
|
|
1525
1525
|
var z = S.name;
|
|
1526
|
-
|
|
1526
|
+
B[z] = S, x = z;
|
|
1527
1527
|
}
|
|
1528
|
-
return !
|
|
1529
|
-
},
|
|
1530
|
-
if (
|
|
1528
|
+
return !A && x && ($ = x), x || !A && $;
|
|
1529
|
+
}, w = function(T, S) {
|
|
1530
|
+
if (D(T)) return T.clone();
|
|
1531
1531
|
var _ = typeof S == "object" ? S : {};
|
|
1532
|
-
return _.date =
|
|
1533
|
-
},
|
|
1534
|
-
|
|
1535
|
-
return
|
|
1532
|
+
return _.date = T, _.args = arguments, new k(_);
|
|
1533
|
+
}, P = C;
|
|
1534
|
+
P.l = j, P.i = D, P.w = function(T, S) {
|
|
1535
|
+
return w(T, { locale: S.$L, utc: S.$u, x: S.$x, $offset: S.$offset });
|
|
1536
1536
|
};
|
|
1537
1537
|
var k = function() {
|
|
1538
|
-
function
|
|
1538
|
+
function T(_) {
|
|
1539
1539
|
this.$L = j(_.locale, null, !0), this.parse(_);
|
|
1540
1540
|
}
|
|
1541
|
-
var S =
|
|
1541
|
+
var S = T.prototype;
|
|
1542
1542
|
return S.parse = function(_) {
|
|
1543
|
-
this.$d = function(
|
|
1544
|
-
var x =
|
|
1543
|
+
this.$d = function(A) {
|
|
1544
|
+
var x = A.date, M = A.utc;
|
|
1545
1545
|
if (x === null) return /* @__PURE__ */ new Date(NaN);
|
|
1546
|
-
if (
|
|
1546
|
+
if (P.u(x)) return /* @__PURE__ */ new Date();
|
|
1547
1547
|
if (x instanceof Date) return new Date(x);
|
|
1548
1548
|
if (typeof x == "string" && !/Z$/i.test(x)) {
|
|
1549
1549
|
var F = x.match(m);
|
|
@@ -1558,28 +1558,28 @@ var Ih = { exports: {} };
|
|
|
1558
1558
|
var _ = this.$d;
|
|
1559
1559
|
this.$y = _.getFullYear(), this.$M = _.getMonth(), this.$D = _.getDate(), this.$W = _.getDay(), this.$H = _.getHours(), this.$m = _.getMinutes(), this.$s = _.getSeconds(), this.$ms = _.getMilliseconds();
|
|
1560
1560
|
}, S.$utils = function() {
|
|
1561
|
-
return
|
|
1561
|
+
return P;
|
|
1562
1562
|
}, S.isValid = function() {
|
|
1563
|
-
return this.$d.toString() !==
|
|
1564
|
-
}, S.isSame = function(_,
|
|
1565
|
-
var x =
|
|
1566
|
-
return this.startOf(
|
|
1567
|
-
}, S.isAfter = function(_,
|
|
1568
|
-
return
|
|
1569
|
-
}, S.isBefore = function(_,
|
|
1570
|
-
return this.endOf(
|
|
1571
|
-
}, S.$g = function(_,
|
|
1572
|
-
return
|
|
1563
|
+
return this.$d.toString() !== b;
|
|
1564
|
+
}, S.isSame = function(_, A) {
|
|
1565
|
+
var x = w(_);
|
|
1566
|
+
return this.startOf(A) <= x && x <= this.endOf(A);
|
|
1567
|
+
}, S.isAfter = function(_, A) {
|
|
1568
|
+
return w(_) < this.startOf(A);
|
|
1569
|
+
}, S.isBefore = function(_, A) {
|
|
1570
|
+
return this.endOf(A) < w(_);
|
|
1571
|
+
}, S.$g = function(_, A, x) {
|
|
1572
|
+
return P.u(_) ? this[A] : this.set(x, _);
|
|
1573
1573
|
}, S.unix = function() {
|
|
1574
1574
|
return Math.floor(this.valueOf() / 1e3);
|
|
1575
1575
|
}, S.valueOf = function() {
|
|
1576
1576
|
return this.$d.getTime();
|
|
1577
|
-
}, S.startOf = function(_,
|
|
1578
|
-
var x = this, M = !!
|
|
1579
|
-
var Ze =
|
|
1577
|
+
}, S.startOf = function(_, A) {
|
|
1578
|
+
var x = this, M = !!P.u(A) || A, F = P.p(_), z = function(Ee, Ce) {
|
|
1579
|
+
var Ze = P.w(x.$u ? Date.UTC(x.$y, Ce, Ee) : new Date(x.$y, Ce, Ee), x);
|
|
1580
1580
|
return M ? Ze : Ze.endOf(c);
|
|
1581
1581
|
}, G = function(Ee, Ce) {
|
|
1582
|
-
return
|
|
1582
|
+
return P.w(x.toDate()[Ee].apply(x.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ce)), x);
|
|
1583
1583
|
}, Y = this.$W, we = this.$M, Q = this.$D, W = "set" + (this.$u ? "UTC" : "");
|
|
1584
1584
|
switch (F) {
|
|
1585
1585
|
case h:
|
|
@@ -1603,61 +1603,61 @@ var Ih = { exports: {} };
|
|
|
1603
1603
|
}
|
|
1604
1604
|
}, S.endOf = function(_) {
|
|
1605
1605
|
return this.startOf(_, !1);
|
|
1606
|
-
}, S.$set = function(_,
|
|
1607
|
-
var x, M =
|
|
1606
|
+
}, S.$set = function(_, A) {
|
|
1607
|
+
var x, M = P.p(_), F = "set" + (this.$u ? "UTC" : ""), z = (x = {}, x[c] = F + "Date", x[p] = F + "Date", x[l] = F + "Month", x[h] = F + "FullYear", x[u] = F + "Hours", x[a] = F + "Minutes", x[s] = F + "Seconds", x[o] = F + "Milliseconds", x)[M], G = M === c ? this.$D + (A - this.$W) : A;
|
|
1608
1608
|
if (M === l || M === h) {
|
|
1609
1609
|
var Y = this.clone().set(p, 1);
|
|
1610
1610
|
Y.$d[z](G), Y.init(), this.$d = Y.set(p, Math.min(this.$D, Y.daysInMonth())).$d;
|
|
1611
1611
|
} else z && this.$d[z](G);
|
|
1612
1612
|
return this.init(), this;
|
|
1613
|
-
}, S.set = function(_,
|
|
1614
|
-
return this.clone().$set(_,
|
|
1613
|
+
}, S.set = function(_, A) {
|
|
1614
|
+
return this.clone().$set(_, A);
|
|
1615
1615
|
}, S.get = function(_) {
|
|
1616
|
-
return this[
|
|
1617
|
-
}, S.add = function(_,
|
|
1616
|
+
return this[P.p(_)]();
|
|
1617
|
+
}, S.add = function(_, A) {
|
|
1618
1618
|
var x, M = this;
|
|
1619
1619
|
_ = Number(_);
|
|
1620
|
-
var F =
|
|
1621
|
-
var Q =
|
|
1622
|
-
return
|
|
1620
|
+
var F = P.p(A), z = function(we) {
|
|
1621
|
+
var Q = w(M);
|
|
1622
|
+
return P.w(Q.date(Q.date() + Math.round(we * _)), M);
|
|
1623
1623
|
};
|
|
1624
1624
|
if (F === l) return this.set(l, this.$M + _);
|
|
1625
1625
|
if (F === h) return this.set(h, this.$y + _);
|
|
1626
1626
|
if (F === c) return z(1);
|
|
1627
1627
|
if (F === d) return z(7);
|
|
1628
1628
|
var G = (x = {}, x[a] = r, x[u] = i, x[s] = n, x)[F] || 1, Y = this.$d.getTime() + _ * G;
|
|
1629
|
-
return
|
|
1630
|
-
}, S.subtract = function(_,
|
|
1631
|
-
return this.add(-1 * _,
|
|
1629
|
+
return P.w(Y, this);
|
|
1630
|
+
}, S.subtract = function(_, A) {
|
|
1631
|
+
return this.add(-1 * _, A);
|
|
1632
1632
|
}, S.format = function(_) {
|
|
1633
|
-
var
|
|
1634
|
-
if (!this.isValid()) return x.invalidDate ||
|
|
1635
|
-
var M = _ || "YYYY-MM-DDTHH:mm:ssZ", F =
|
|
1636
|
-
return Ce && (Ce[Ze] || Ce(
|
|
1633
|
+
var A = this, x = this.$locale();
|
|
1634
|
+
if (!this.isValid()) return x.invalidDate || b;
|
|
1635
|
+
var M = _ || "YYYY-MM-DDTHH:mm:ssZ", F = P.z(this), z = this.$H, G = this.$m, Y = this.$M, we = x.weekdays, Q = x.months, W = function(Ce, Ze, xn, ae) {
|
|
1636
|
+
return Ce && (Ce[Ze] || Ce(A, M)) || xn[Ze].slice(0, ae);
|
|
1637
1637
|
}, Ie = function(Ce) {
|
|
1638
|
-
return
|
|
1638
|
+
return P.s(z % 12 || 12, Ce, "0");
|
|
1639
1639
|
}, De = x.meridiem || function(Ce, Ze, xn) {
|
|
1640
1640
|
var ae = Ce < 12 ? "AM" : "PM";
|
|
1641
1641
|
return xn ? ae.toLowerCase() : ae;
|
|
1642
|
-
}, Ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM:
|
|
1642
|
+
}, Ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: P.s(Y + 1, 2, "0"), MMM: W(x.monthsShort, Y, Q, 3), MMMM: W(Q, Y), D: this.$D, DD: P.s(this.$D, 2, "0"), d: String(this.$W), dd: W(x.weekdaysMin, this.$W, we, 2), ddd: W(x.weekdaysShort, this.$W, we, 3), dddd: we[this.$W], H: String(z), HH: P.s(z, 2, "0"), h: Ie(1), hh: Ie(2), a: De(z, G, !0), A: De(z, G, !1), m: String(G), mm: P.s(G, 2, "0"), s: String(this.$s), ss: P.s(this.$s, 2, "0"), SSS: P.s(this.$ms, 3, "0"), Z: F };
|
|
1643
1643
|
return M.replace(y, function(Ce, Ze) {
|
|
1644
1644
|
return Ze || Ee[Ce] || F.replace(":", "");
|
|
1645
1645
|
});
|
|
1646
1646
|
}, S.utcOffset = function() {
|
|
1647
1647
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1648
|
-
}, S.diff = function(_,
|
|
1649
|
-
var M, F =
|
|
1650
|
-
return we = (M = {}, M[h] = we / 12, M[l] = we, M[f] = we / 3, M[d] = (Y - G) / 6048e5, M[c] = (Y - G) / 864e5, M[u] = Y / i, M[a] = Y / r, M[s] = Y / n, M)[F] || Y, x ? we :
|
|
1648
|
+
}, S.diff = function(_, A, x) {
|
|
1649
|
+
var M, F = P.p(A), z = w(_), G = (z.utcOffset() - this.utcOffset()) * r, Y = this - z, we = P.m(this, z);
|
|
1650
|
+
return we = (M = {}, M[h] = we / 12, M[l] = we, M[f] = we / 3, M[d] = (Y - G) / 6048e5, M[c] = (Y - G) / 864e5, M[u] = Y / i, M[a] = Y / r, M[s] = Y / n, M)[F] || Y, x ? we : P.a(we);
|
|
1651
1651
|
}, S.daysInMonth = function() {
|
|
1652
1652
|
return this.endOf(l).$D;
|
|
1653
1653
|
}, S.$locale = function() {
|
|
1654
|
-
return
|
|
1655
|
-
}, S.locale = function(_,
|
|
1654
|
+
return B[this.$L];
|
|
1655
|
+
}, S.locale = function(_, A) {
|
|
1656
1656
|
if (!_) return this.$L;
|
|
1657
|
-
var x = this.clone(), M = j(_,
|
|
1657
|
+
var x = this.clone(), M = j(_, A, !0);
|
|
1658
1658
|
return M && (x.$L = M), x;
|
|
1659
1659
|
}, S.clone = function() {
|
|
1660
|
-
return
|
|
1660
|
+
return P.w(this.$d, this);
|
|
1661
1661
|
}, S.toDate = function() {
|
|
1662
1662
|
return new Date(this.valueOf());
|
|
1663
1663
|
}, S.toJSON = function() {
|
|
@@ -1666,17 +1666,17 @@ var Ih = { exports: {} };
|
|
|
1666
1666
|
return this.$d.toISOString();
|
|
1667
1667
|
}, S.toString = function() {
|
|
1668
1668
|
return this.$d.toUTCString();
|
|
1669
|
-
},
|
|
1670
|
-
}(),
|
|
1671
|
-
return
|
|
1672
|
-
|
|
1673
|
-
return this.$g(S,
|
|
1669
|
+
}, T;
|
|
1670
|
+
}(), I = k.prototype;
|
|
1671
|
+
return w.prototype = I, [["$ms", o], ["$s", s], ["$m", a], ["$H", u], ["$W", c], ["$M", l], ["$y", h], ["$D", p]].forEach(function(T) {
|
|
1672
|
+
I[T[1]] = function(S) {
|
|
1673
|
+
return this.$g(S, T[0], T[1]);
|
|
1674
1674
|
};
|
|
1675
|
-
}),
|
|
1676
|
-
return
|
|
1677
|
-
},
|
|
1678
|
-
return
|
|
1679
|
-
},
|
|
1675
|
+
}), w.extend = function(T, S) {
|
|
1676
|
+
return T.$i || (T(S, k, w), T.$i = !0), w;
|
|
1677
|
+
}, w.locale = j, w.isDayjs = D, w.unix = function(T) {
|
|
1678
|
+
return w(1e3 * T);
|
|
1679
|
+
}, w.en = B[$], w.Ls = B, w.p = {}, w;
|
|
1680
1680
|
});
|
|
1681
1681
|
})(Ih);
|
|
1682
1682
|
const Es = Ih.exports;
|
|
@@ -2217,10 +2217,10 @@ function Lh(t, e) {
|
|
|
2217
2217
|
for (; r.accept("comma"); ) {
|
|
2218
2218
|
if (r.isDone())
|
|
2219
2219
|
throw new Error("Unexpected end");
|
|
2220
|
-
var
|
|
2221
|
-
if (!
|
|
2220
|
+
var b = a();
|
|
2221
|
+
if (!b)
|
|
2222
2222
|
throw new Error("Unexpected symbol " + r.symbol + ", expected month");
|
|
2223
|
-
n.bymonth.push(
|
|
2223
|
+
n.bymonth.push(b), r.nextSymbol();
|
|
2224
2224
|
}
|
|
2225
2225
|
o(), l();
|
|
2226
2226
|
break;
|
|
@@ -2232,11 +2232,11 @@ function Lh(t, e) {
|
|
|
2232
2232
|
var f = r.accept("on"), h = r.accept("the");
|
|
2233
2233
|
if (f || h)
|
|
2234
2234
|
do {
|
|
2235
|
-
var p = c(),
|
|
2235
|
+
var p = c(), b = u(), m = a();
|
|
2236
2236
|
if (p)
|
|
2237
|
-
|
|
2238
|
-
else if (
|
|
2239
|
-
r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(J[
|
|
2237
|
+
b ? (r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(J[b].nth(p))) : (n.bymonthday || (n.bymonthday = []), n.bymonthday.push(p), r.accept("day(s)"));
|
|
2238
|
+
else if (b)
|
|
2239
|
+
r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(J[b]);
|
|
2240
2240
|
else if (r.symbol === "weekday(s)")
|
|
2241
2241
|
r.nextSymbol(), n.byweekday || (n.byweekday = [J.MO, J.TU, J.WE, J.TH, J.FR]);
|
|
2242
2242
|
else if (r.symbol === "week(s)") {
|
|
@@ -2713,8 +2713,8 @@ function qa(t) {
|
|
|
2713
2713
|
}
|
|
2714
2714
|
}
|
|
2715
2715
|
var l = e.map(function(h) {
|
|
2716
|
-
var p = h[0],
|
|
2717
|
-
return "".concat(p, "=").concat(
|
|
2716
|
+
var p = h[0], b = h[1];
|
|
2717
|
+
return "".concat(p, "=").concat(b.toString());
|
|
2718
2718
|
}).join(";"), f = "";
|
|
2719
2719
|
return l !== "" && (f = "RRULE:".concat(l)), [n, f].filter(function(h) {
|
|
2720
2720
|
return !!h;
|
|
@@ -2777,10 +2777,10 @@ function Sk(t, e) {
|
|
|
2777
2777
|
var u, c, d = u = lt(7 - s + e.wkst, 7);
|
|
2778
2778
|
d >= 4 ? (d = 0, c = a.yearlen + lt(s - e.wkst, 7)) : c = r - d;
|
|
2779
2779
|
for (var l = Math.floor(c / 7), f = lt(c, 7), h = Math.floor(l + f / 4), p = 0; p < e.byweekno.length; p++) {
|
|
2780
|
-
var
|
|
2781
|
-
if (
|
|
2780
|
+
var b = e.byweekno[p];
|
|
2781
|
+
if (b < 0 && (b += h + 1), b > 0 && b <= h) {
|
|
2782
2782
|
var m = void 0;
|
|
2783
|
-
|
|
2783
|
+
b > 1 ? (m = d + (b - 1) * 7, d !== u && (m -= 7 - u)) : m = d;
|
|
2784
2784
|
for (var y = 0; y < 7 && (a.wnomask[m] = 1, m++, a.wdaymask[m] !== e.wkst); y++)
|
|
2785
2785
|
;
|
|
2786
2786
|
}
|
|
@@ -2796,8 +2796,8 @@ function Sk(t, e) {
|
|
|
2796
2796
|
if (he(e.byweekno, -1))
|
|
2797
2797
|
v = -1;
|
|
2798
2798
|
else {
|
|
2799
|
-
var
|
|
2800
|
-
C >= 4 ? (C = 0,
|
|
2799
|
+
var E = pr(Bn(t - 1, 1, 1)), C = lt(7 - E.valueOf() + e.wkst, 7), $ = Yr(t - 1) ? 366 : 365, B = void 0;
|
|
2800
|
+
C >= 4 ? (C = 0, B = $ + lt(E - e.wkst, 7)) : B = r - d, v = Math.floor(52 + lt(B, 7) / 4);
|
|
2801
2801
|
}
|
|
2802
2802
|
if (he(e.byweekno, v))
|
|
2803
2803
|
for (var m = 0; m < d; m++)
|
|
@@ -2839,14 +2839,14 @@ function Ak(t, e, n, r, i, o) {
|
|
|
2839
2839
|
s.nwdaymask = ie(0, n);
|
|
2840
2840
|
for (var u = 0; u < a.length; u++)
|
|
2841
2841
|
for (var c = a[u], d = c[0], l = c[1] - 1, f = 0; f < o.bynweekday.length; f++) {
|
|
2842
|
-
var h = void 0, p = o.bynweekday[f],
|
|
2843
|
-
m < 0 ? (h = l + (m + 1) * 7, h -= lt(i[h] -
|
|
2842
|
+
var h = void 0, p = o.bynweekday[f], b = p[0], m = p[1];
|
|
2843
|
+
m < 0 ? (h = l + (m + 1) * 7, h -= lt(i[h] - b, 7)) : (h = d + (m - 1) * 7, h += lt(7 - i[h] + b, 7)), d <= h && h <= l && (s.nwdaymask[h] = 1);
|
|
2844
2844
|
}
|
|
2845
2845
|
return s;
|
|
2846
2846
|
}
|
|
2847
2847
|
function $k(t, e) {
|
|
2848
2848
|
e === void 0 && (e = 0);
|
|
2849
|
-
var n = t % 19, r = Math.floor(t / 100), i = t % 100, o = Math.floor(r / 4), s = r % 4, a = Math.floor((r + 8) / 25), u = Math.floor((r - a + 1) / 3), c = Math.floor(19 * n + r - o - u + 15) % 30, d = Math.floor(i / 4), l = i % 4, f = Math.floor(32 + 2 * s + 2 * d - c - l) % 7, h = Math.floor((n + 11 * c + 22 * f) / 451), p = Math.floor((c + f - 7 * h + 114) / 31),
|
|
2849
|
+
var n = t % 19, r = Math.floor(t / 100), i = t % 100, o = Math.floor(r / 4), s = r % 4, a = Math.floor((r + 8) / 25), u = Math.floor((r - a + 1) / 3), c = Math.floor(19 * n + r - o - u + 15) % 30, d = Math.floor(i / 4), l = i % 4, f = Math.floor(32 + 2 * s + 2 * d - c - l) % 7, h = Math.floor((n + 11 * c + 22 * f) / 451), p = Math.floor((c + f - 7 * h + 114) / 31), b = (c + f - 7 * h + 114) % 31 + 1, m = Date.UTC(t, p - 1, b + e), y = Date.UTC(t, 0, 1);
|
|
2850
2850
|
return [Math.ceil((m - y) / (1e3 * 60 * 60 * 24))];
|
|
2851
2851
|
}
|
|
2852
2852
|
var Ik = (
|
|
@@ -2994,7 +2994,7 @@ function Bk(t, e, n, r, i, o) {
|
|
|
2994
2994
|
}
|
|
2995
2995
|
var p = void 0;
|
|
2996
2996
|
u < 0 ? p = l.slice(u)[0] : p = l[u];
|
|
2997
|
-
var
|
|
2997
|
+
var b = e[c], m = Rh(i.yearordinal + p), y = Oh(m, b);
|
|
2998
2998
|
he(s, y) || s.push(y);
|
|
2999
2999
|
}
|
|
3000
3000
|
return ii(s), s;
|
|
@@ -3006,15 +3006,15 @@ function Fh(t, e) {
|
|
|
3006
3006
|
var u = ok.fromDate(n), c = new Ik(e);
|
|
3007
3007
|
c.rebuild(u.year, u.month);
|
|
3008
3008
|
for (var d = Pk(c, u, e); ; ) {
|
|
3009
|
-
var l = c.getdayset(r)(u.year, u.month, u.day), f = l[0], h = l[1], p = l[2],
|
|
3009
|
+
var l = c.getdayset(r)(u.year, u.month, u.day), f = l[0], h = l[1], p = l[2], b = Mk(f, h, p, c, e);
|
|
3010
3010
|
if (Pe(s))
|
|
3011
3011
|
for (var m = Bk(s, d, h, p, c, f), y = 0; y < m.length; y++) {
|
|
3012
3012
|
var v = m[y];
|
|
3013
3013
|
if (o && v > o)
|
|
3014
3014
|
return Ot(t);
|
|
3015
3015
|
if (v >= n) {
|
|
3016
|
-
var
|
|
3017
|
-
if (!t.accept(
|
|
3016
|
+
var E = zl(v, e);
|
|
3017
|
+
if (!t.accept(E) || a && (--a, !a))
|
|
3018
3018
|
return Ot(t);
|
|
3019
3019
|
}
|
|
3020
3020
|
}
|
|
@@ -3022,18 +3022,18 @@ function Fh(t, e) {
|
|
|
3022
3022
|
for (var y = h; y < p; y++) {
|
|
3023
3023
|
var C = f[y];
|
|
3024
3024
|
if (Te(C))
|
|
3025
|
-
for (var
|
|
3026
|
-
var
|
|
3025
|
+
for (var $ = Rh(c.yearordinal + C), B = 0; B < d.length; B++) {
|
|
3026
|
+
var D = d[B], v = Oh($, D);
|
|
3027
3027
|
if (o && v > o)
|
|
3028
3028
|
return Ot(t);
|
|
3029
3029
|
if (v >= n) {
|
|
3030
|
-
var
|
|
3031
|
-
if (!t.accept(
|
|
3030
|
+
var E = zl(v, e);
|
|
3031
|
+
if (!t.accept(E) || a && (--a, !a))
|
|
3032
3032
|
return Ot(t);
|
|
3033
3033
|
}
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
|
-
if (e.interval === 0 || (u.add(e,
|
|
3036
|
+
if (e.interval === 0 || (u.add(e, b), u.year > Dh))
|
|
3037
3037
|
return Ot(t);
|
|
3038
3038
|
hc(r) || (d = c.gettimeset(r)(u.hour, u.minute, u.second, 0)), c.rebuild(u.year, u.month);
|
|
3039
3039
|
}
|
|
@@ -3160,8 +3160,8 @@ function Ok(t, e, n, r, i, o) {
|
|
|
3160
3160
|
var s = {}, a = t.accept;
|
|
3161
3161
|
function u(f, h) {
|
|
3162
3162
|
n.forEach(function(p) {
|
|
3163
|
-
p.between(f, h, !0).forEach(function(
|
|
3164
|
-
s[Number(
|
|
3163
|
+
p.between(f, h, !0).forEach(function(b) {
|
|
3164
|
+
s[Number(b)] = !0;
|
|
3165
3165
|
});
|
|
3166
3166
|
});
|
|
3167
3167
|
}
|
|
@@ -3208,7 +3208,7 @@ function Lk(t, e) {
|
|
|
3208
3208
|
return c.forEach(function(d) {
|
|
3209
3209
|
var l;
|
|
3210
3210
|
if (d) {
|
|
3211
|
-
var f = Uk(d), h = f.name, p = f.parms,
|
|
3211
|
+
var f = Uk(d), h = f.name, p = f.parms, b = f.value;
|
|
3212
3212
|
switch (h.toUpperCase()) {
|
|
3213
3213
|
case "RRULE":
|
|
3214
3214
|
if (p.length)
|
|
@@ -3217,15 +3217,15 @@ function Lk(t, e) {
|
|
|
3217
3217
|
break;
|
|
3218
3218
|
case "RDATE":
|
|
3219
3219
|
var m = (l = /RDATE(?:;TZID=([^:=]+))?/i.exec(d)) !== null && l !== void 0 ? l : [], y = m[1];
|
|
3220
|
-
y && !u && (u = y), r = r.concat(Gl(
|
|
3220
|
+
y && !u && (u = y), r = r.concat(Gl(b, p));
|
|
3221
3221
|
break;
|
|
3222
3222
|
case "EXRULE":
|
|
3223
3223
|
if (p.length)
|
|
3224
3224
|
throw new Error("unsupported EXRULE parm: ".concat(p.join(",")));
|
|
3225
|
-
i.push(Ha(
|
|
3225
|
+
i.push(Ha(b));
|
|
3226
3226
|
break;
|
|
3227
3227
|
case "EXDATE":
|
|
3228
|
-
o = o.concat(Gl(
|
|
3228
|
+
o = o.concat(Gl(b, p));
|
|
3229
3229
|
break;
|
|
3230
3230
|
case "DTSTART":
|
|
3231
3231
|
break;
|
|
@@ -3796,8 +3796,8 @@ class Ko extends Cs {
|
|
|
3796
3796
|
}
|
|
3797
3797
|
const l = this.resolve(e, n);
|
|
3798
3798
|
let f = l && l.res;
|
|
3799
|
-
const h = l && l.usedKey || s, p = l && l.exactUsedKey || s,
|
|
3800
|
-
if (v && f && (typeof f != "string" && typeof f != "boolean" && typeof f != "number") && m.indexOf(
|
|
3799
|
+
const h = l && l.usedKey || s, p = l && l.exactUsedKey || s, b = Object.prototype.toString.apply(f), m = ["[object Number]", "[object Function]", "[object RegExp]"], y = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
3800
|
+
if (v && f && (typeof f != "string" && typeof f != "boolean" && typeof f != "number") && m.indexOf(b) < 0 && !(typeof y == "string" && Array.isArray(f))) {
|
|
3801
3801
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
3802
3802
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
3803
3803
|
const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, f, {
|
|
@@ -3807,28 +3807,28 @@ class Ko extends Cs {
|
|
|
3807
3807
|
return i ? (l.res = C, l.usedParams = this.getUsedParamsDetails(n), l) : C;
|
|
3808
3808
|
}
|
|
3809
3809
|
if (o) {
|
|
3810
|
-
const C = Array.isArray(f),
|
|
3811
|
-
for (const
|
|
3812
|
-
if (Object.prototype.hasOwnProperty.call(f,
|
|
3813
|
-
const j = `${
|
|
3814
|
-
|
|
3810
|
+
const C = Array.isArray(f), $ = C ? [] : {}, B = C ? p : h;
|
|
3811
|
+
for (const D in f)
|
|
3812
|
+
if (Object.prototype.hasOwnProperty.call(f, D)) {
|
|
3813
|
+
const j = `${B}${o}${D}`;
|
|
3814
|
+
$[D] = this.translate(j, {
|
|
3815
3815
|
...n,
|
|
3816
3816
|
joinArrays: !1,
|
|
3817
3817
|
ns: a
|
|
3818
|
-
}),
|
|
3818
|
+
}), $[D] === j && ($[D] = f[D]);
|
|
3819
3819
|
}
|
|
3820
|
-
f =
|
|
3820
|
+
f = $;
|
|
3821
3821
|
}
|
|
3822
3822
|
} else if (v && typeof y == "string" && Array.isArray(f))
|
|
3823
3823
|
f = f.join(y), f && (f = this.extendTranslation(f, e, n, r));
|
|
3824
3824
|
else {
|
|
3825
|
-
let C = !1,
|
|
3826
|
-
const
|
|
3825
|
+
let C = !1, $ = !1;
|
|
3826
|
+
const B = n.count !== void 0 && typeof n.count != "string", D = Ko.hasDefaultValue(n), j = B ? this.pluralResolver.getSuffix(c, n.count, n) : "", w = n.ordinal && B ? this.pluralResolver.getSuffix(c, n.count, {
|
|
3827
3827
|
ordinal: !1
|
|
3828
|
-
}) : "",
|
|
3829
|
-
!this.isValidLookup(f) &&
|
|
3830
|
-
const
|
|
3831
|
-
if (
|
|
3828
|
+
}) : "", P = B && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = P && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${j}`] || n[`defaultValue${w}`] || n.defaultValue;
|
|
3829
|
+
!this.isValidLookup(f) && D && (C = !0, f = k), this.isValidLookup(f) || ($ = !0, f = s);
|
|
3830
|
+
const T = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && $ ? void 0 : f, S = D && k !== f && this.options.updateMissing;
|
|
3831
|
+
if ($ || C || S) {
|
|
3832
3832
|
if (this.logger.log(S ? "updateKey" : "missingKey", c, u, s, S ? k : f), o) {
|
|
3833
3833
|
const M = this.resolve(s, {
|
|
3834
3834
|
...n,
|
|
@@ -3837,23 +3837,23 @@ class Ko extends Cs {
|
|
|
3837
3837
|
M && M.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
3838
3838
|
}
|
|
3839
3839
|
let _ = [];
|
|
3840
|
-
const
|
|
3841
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
3842
|
-
for (let M = 0; M <
|
|
3843
|
-
_.push(
|
|
3840
|
+
const A = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
3841
|
+
if (this.options.saveMissingTo === "fallback" && A && A[0])
|
|
3842
|
+
for (let M = 0; M < A.length; M++)
|
|
3843
|
+
_.push(A[M]);
|
|
3844
3844
|
else this.options.saveMissingTo === "all" ? _ = this.languageUtils.toResolveHierarchy(n.lng || this.language) : _.push(n.lng || this.language);
|
|
3845
3845
|
const x = (M, F, z) => {
|
|
3846
|
-
const G =
|
|
3846
|
+
const G = D && z !== f ? z : T;
|
|
3847
3847
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(M, u, F, G, S, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(M, u, F, G, S, n), this.emit("missingKey", M, u, F, f);
|
|
3848
3848
|
};
|
|
3849
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
3849
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && B ? _.forEach((M) => {
|
|
3850
3850
|
const F = this.pluralResolver.getSuffixes(M, n);
|
|
3851
|
-
|
|
3851
|
+
P && n[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((z) => {
|
|
3852
3852
|
x([M], s + z, n[`defaultValue${z}`] || k);
|
|
3853
3853
|
});
|
|
3854
3854
|
}) : x(_, s, k));
|
|
3855
3855
|
}
|
|
3856
|
-
f = this.extendTranslation(f, e, n, l, r),
|
|
3856
|
+
f = this.extendTranslation(f, e, n, l, r), $ && f === s && this.options.appendNamespaceToMissingKey && (f = `${u}:${s}`), ($ || C) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${s}` : s, C ? f : void 0) : f = this.options.parseMissingKeyHandler(f));
|
|
3857
3857
|
}
|
|
3858
3858
|
return i ? (l.res = f, l.usedParams = this.getUsedParamsDetails(n), l) : f;
|
|
3859
3859
|
}
|
|
@@ -3911,9 +3911,9 @@ class Ko extends Cs {
|
|
|
3911
3911
|
i = d;
|
|
3912
3912
|
let l = c.namespaces;
|
|
3913
3913
|
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
3914
|
-
const f = n.count !== void 0 && typeof n.count != "string", h = f && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "",
|
|
3914
|
+
const f = n.count !== void 0 && typeof n.count != "string", h = f && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", b = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
3915
3915
|
l.forEach((m) => {
|
|
3916
|
-
this.isValidLookup(r) || (a = m, !Ql[`${
|
|
3916
|
+
this.isValidLookup(r) || (a = m, !Ql[`${b[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (Ql[`${b[0]}-${m}`] = !0, this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach((y) => {
|
|
3917
3917
|
if (this.isValidLookup(r)) return;
|
|
3918
3918
|
s = y;
|
|
3919
3919
|
const v = [d];
|
|
@@ -3922,15 +3922,15 @@ class Ko extends Cs {
|
|
|
3922
3922
|
else {
|
|
3923
3923
|
let C;
|
|
3924
3924
|
f && (C = this.pluralResolver.getSuffix(y, n.count, n));
|
|
3925
|
-
const
|
|
3926
|
-
if (f && (v.push(d + C), n.ordinal && C.indexOf(
|
|
3927
|
-
const
|
|
3928
|
-
v.push(
|
|
3925
|
+
const $ = `${this.options.pluralSeparator}zero`, B = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
3926
|
+
if (f && (v.push(d + C), n.ordinal && C.indexOf(B) === 0 && v.push(d + C.replace(B, this.options.pluralSeparator)), h && v.push(d + $)), p) {
|
|
3927
|
+
const D = `${d}${this.options.contextSeparator}${n.context}`;
|
|
3928
|
+
v.push(D), f && (v.push(D + C), n.ordinal && C.indexOf(B) === 0 && v.push(D + C.replace(B, this.options.pluralSeparator)), h && v.push(D + $));
|
|
3929
3929
|
}
|
|
3930
3930
|
}
|
|
3931
|
-
let
|
|
3932
|
-
for (;
|
|
3933
|
-
this.isValidLookup(r) || (o =
|
|
3931
|
+
let E;
|
|
3932
|
+
for (; E = v.pop(); )
|
|
3933
|
+
this.isValidLookup(r) || (o = E, r = this.getResource(y, m, E, n));
|
|
3934
3934
|
}));
|
|
3935
3935
|
});
|
|
3936
3936
|
}), {
|
|
@@ -4291,12 +4291,12 @@ class u8 {
|
|
|
4291
4291
|
nestingPrefix: f,
|
|
4292
4292
|
nestingPrefixEscaped: h,
|
|
4293
4293
|
nestingSuffix: p,
|
|
4294
|
-
nestingSuffixEscaped:
|
|
4294
|
+
nestingSuffixEscaped: b,
|
|
4295
4295
|
nestingOptionsSeparator: m,
|
|
4296
4296
|
maxReplaces: y,
|
|
4297
4297
|
alwaysFormat: v
|
|
4298
4298
|
} = e.interpolation;
|
|
4299
|
-
this.escape = n !== void 0 ? n : Jk, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? Wn(o) : s || "{{", this.suffix = a ? Wn(a) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = f ? Wn(f) : h || Wn("$t("), this.nestingSuffix = p ? Wn(p) :
|
|
4299
|
+
this.escape = n !== void 0 ? n : Jk, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? Wn(o) : s || "{{", this.suffix = a ? Wn(a) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = f ? Wn(f) : h || Wn("$t("), this.nestingSuffix = p ? Wn(p) : b || Wn(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
|
|
4300
4300
|
}
|
|
4301
4301
|
reset() {
|
|
4302
4302
|
this.options && this.init(this.options);
|
|
@@ -4320,7 +4320,7 @@ class u8 {
|
|
|
4320
4320
|
interpolationkey: p
|
|
4321
4321
|
}) : v;
|
|
4322
4322
|
}
|
|
4323
|
-
const
|
|
4323
|
+
const b = p.split(this.formatSeparator), m = b.shift().trim(), y = b.join(this.formatSeparator).trim();
|
|
4324
4324
|
return this.format(nd(n, u, m, this.options.keySeparator, this.options.ignoreJSONStructure), y, r, {
|
|
4325
4325
|
...i,
|
|
4326
4326
|
...n,
|
|
@@ -4337,18 +4337,18 @@ class u8 {
|
|
|
4337
4337
|
safeValue: (p) => this.escapeValue ? c(this.escape(p)) : c(p)
|
|
4338
4338
|
}].forEach((p) => {
|
|
4339
4339
|
for (a = 0; o = p.regex.exec(e); ) {
|
|
4340
|
-
const
|
|
4341
|
-
if (s = d(
|
|
4340
|
+
const b = o[1].trim();
|
|
4341
|
+
if (s = d(b), s === void 0)
|
|
4342
4342
|
if (typeof l == "function") {
|
|
4343
4343
|
const y = l(e, o, i);
|
|
4344
4344
|
s = typeof y == "string" ? y : "";
|
|
4345
|
-
} else if (i && Object.prototype.hasOwnProperty.call(i,
|
|
4345
|
+
} else if (i && Object.prototype.hasOwnProperty.call(i, b))
|
|
4346
4346
|
s = "";
|
|
4347
4347
|
else if (f) {
|
|
4348
4348
|
s = o[0];
|
|
4349
4349
|
continue;
|
|
4350
4350
|
} else
|
|
4351
|
-
this.logger.warn(`missed to pass in variable ${
|
|
4351
|
+
this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`), s = "";
|
|
4352
4352
|
else typeof s != "string" && !this.useRawValueToEscape && (s = Zl(s));
|
|
4353
4353
|
const m = p.safeValue(s);
|
|
4354
4354
|
if (e = e.replace(o[0], m), f ? (p.regex.lastIndex += s.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
@@ -4371,8 +4371,8 @@ class u8 {
|
|
|
4371
4371
|
...c,
|
|
4372
4372
|
...s
|
|
4373
4373
|
});
|
|
4374
|
-
} catch (
|
|
4375
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${u}`,
|
|
4374
|
+
} catch (b) {
|
|
4375
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, b), `${u}${d}${f}`;
|
|
4376
4376
|
}
|
|
4377
4377
|
return s.defaultValue && s.defaultValue.indexOf(this.prefix) > -1 && delete s.defaultValue, u;
|
|
4378
4378
|
}
|
|
@@ -4747,13 +4747,13 @@ class oi extends Cs {
|
|
|
4747
4747
|
}), d && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (f.formatter = o(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new u8(this.options), f.utils = {
|
|
4748
4748
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
4749
4749
|
}, f.backendConnector = new f8(o(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(h) {
|
|
4750
|
-
for (var p = arguments.length,
|
|
4751
|
-
|
|
4752
|
-
e.emit(h, ...
|
|
4750
|
+
for (var p = arguments.length, b = new Array(p > 1 ? p - 1 : 0), m = 1; m < p; m++)
|
|
4751
|
+
b[m - 1] = arguments[m];
|
|
4752
|
+
e.emit(h, ...b);
|
|
4753
4753
|
}), this.modules.languageDetector && (f.languageDetector = o(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = o(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Ko(this.services, this.options), this.translator.on("*", function(h) {
|
|
4754
|
-
for (var p = arguments.length,
|
|
4755
|
-
|
|
4756
|
-
e.emit(h, ...
|
|
4754
|
+
for (var p = arguments.length, b = new Array(p > 1 ? p - 1 : 0), m = 1; m < p; m++)
|
|
4755
|
+
b[m - 1] = arguments[m];
|
|
4756
|
+
e.emit(h, ...b);
|
|
4757
4757
|
}), this.modules.external.forEach((h) => {
|
|
4758
4758
|
h.init && h.init(this);
|
|
4759
4759
|
});
|
|
@@ -6326,23 +6326,23 @@ var Ya = {};
|
|
|
6326
6326
|
t.default = i;
|
|
6327
6327
|
})(Ya);
|
|
6328
6328
|
(function(t) {
|
|
6329
|
-
var e = Qe && Qe.__createBinding || (Object.create ? function(k,
|
|
6330
|
-
S === void 0 && (S =
|
|
6331
|
-
var _ = Object.getOwnPropertyDescriptor(
|
|
6332
|
-
(!_ || ("get" in _ ?
|
|
6333
|
-
return
|
|
6329
|
+
var e = Qe && Qe.__createBinding || (Object.create ? function(k, I, T, S) {
|
|
6330
|
+
S === void 0 && (S = T);
|
|
6331
|
+
var _ = Object.getOwnPropertyDescriptor(I, T);
|
|
6332
|
+
(!_ || ("get" in _ ? !I.__esModule : _.writable || _.configurable)) && (_ = { enumerable: !0, get: function() {
|
|
6333
|
+
return I[T];
|
|
6334
6334
|
} }), Object.defineProperty(k, S, _);
|
|
6335
|
-
} : function(k,
|
|
6336
|
-
S === void 0 && (S =
|
|
6337
|
-
}), n = Qe && Qe.__setModuleDefault || (Object.create ? function(k,
|
|
6338
|
-
Object.defineProperty(k, "default", { enumerable: !0, value:
|
|
6339
|
-
} : function(k,
|
|
6340
|
-
k.default =
|
|
6335
|
+
} : function(k, I, T, S) {
|
|
6336
|
+
S === void 0 && (S = T), k[S] = I[T];
|
|
6337
|
+
}), n = Qe && Qe.__setModuleDefault || (Object.create ? function(k, I) {
|
|
6338
|
+
Object.defineProperty(k, "default", { enumerable: !0, value: I });
|
|
6339
|
+
} : function(k, I) {
|
|
6340
|
+
k.default = I;
|
|
6341
6341
|
}), r = Qe && Qe.__importStar || function(k) {
|
|
6342
6342
|
if (k && k.__esModule) return k;
|
|
6343
|
-
var
|
|
6344
|
-
if (k != null) for (var
|
|
6345
|
-
return n(
|
|
6343
|
+
var I = {};
|
|
6344
|
+
if (k != null) for (var T in k) T !== "default" && Object.prototype.hasOwnProperty.call(k, T) && e(I, k, T);
|
|
6345
|
+
return n(I, k), I;
|
|
6346
6346
|
}, i = Qe && Qe.__importDefault || function(k) {
|
|
6347
6347
|
return k && k.__esModule ? k : { default: k };
|
|
6348
6348
|
};
|
|
@@ -6376,7 +6376,7 @@ var Ya = {};
|
|
|
6376
6376
|
function p(k) {
|
|
6377
6377
|
return k >= c.UPPER_A && k <= c.UPPER_Z || k >= c.LOWER_A && k <= c.LOWER_Z || f(k);
|
|
6378
6378
|
}
|
|
6379
|
-
function
|
|
6379
|
+
function b(k) {
|
|
6380
6380
|
return k === c.EQUALS || p(k);
|
|
6381
6381
|
}
|
|
6382
6382
|
var m;
|
|
@@ -6390,81 +6390,81 @@ var Ya = {};
|
|
|
6390
6390
|
var v = (
|
|
6391
6391
|
/** @class */
|
|
6392
6392
|
function() {
|
|
6393
|
-
function k(
|
|
6394
|
-
this.decodeTree =
|
|
6393
|
+
function k(I, T, S) {
|
|
6394
|
+
this.decodeTree = I, this.emitCodePoint = T, this.errors = S, this.state = m.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = y.Strict;
|
|
6395
6395
|
}
|
|
6396
|
-
return k.prototype.startEntity = function(
|
|
6397
|
-
this.decodeMode =
|
|
6398
|
-
}, k.prototype.write = function(
|
|
6396
|
+
return k.prototype.startEntity = function(I) {
|
|
6397
|
+
this.decodeMode = I, this.state = m.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
6398
|
+
}, k.prototype.write = function(I, T) {
|
|
6399
6399
|
switch (this.state) {
|
|
6400
6400
|
case m.EntityStart:
|
|
6401
|
-
return
|
|
6401
|
+
return I.charCodeAt(T) === c.NUM ? (this.state = m.NumericStart, this.consumed += 1, this.stateNumericStart(I, T + 1)) : (this.state = m.NamedEntity, this.stateNamedEntity(I, T));
|
|
6402
6402
|
case m.NumericStart:
|
|
6403
|
-
return this.stateNumericStart(
|
|
6403
|
+
return this.stateNumericStart(I, T);
|
|
6404
6404
|
case m.NumericDecimal:
|
|
6405
|
-
return this.stateNumericDecimal(
|
|
6405
|
+
return this.stateNumericDecimal(I, T);
|
|
6406
6406
|
case m.NumericHex:
|
|
6407
|
-
return this.stateNumericHex(
|
|
6407
|
+
return this.stateNumericHex(I, T);
|
|
6408
6408
|
case m.NamedEntity:
|
|
6409
|
-
return this.stateNamedEntity(
|
|
6409
|
+
return this.stateNamedEntity(I, T);
|
|
6410
6410
|
}
|
|
6411
|
-
}, k.prototype.stateNumericStart = function(
|
|
6412
|
-
return
|
|
6413
|
-
}, k.prototype.addToNumericResult = function(
|
|
6414
|
-
if (
|
|
6415
|
-
var
|
|
6416
|
-
this.result = this.result * Math.pow(_,
|
|
6411
|
+
}, k.prototype.stateNumericStart = function(I, T) {
|
|
6412
|
+
return T >= I.length ? -1 : (I.charCodeAt(T) | d) === c.LOWER_X ? (this.state = m.NumericHex, this.consumed += 1, this.stateNumericHex(I, T + 1)) : (this.state = m.NumericDecimal, this.stateNumericDecimal(I, T));
|
|
6413
|
+
}, k.prototype.addToNumericResult = function(I, T, S, _) {
|
|
6414
|
+
if (T !== S) {
|
|
6415
|
+
var A = S - T;
|
|
6416
|
+
this.result = this.result * Math.pow(_, A) + parseInt(I.substr(T, A), _), this.consumed += A;
|
|
6417
6417
|
}
|
|
6418
|
-
}, k.prototype.stateNumericHex = function(
|
|
6419
|
-
for (var S =
|
|
6420
|
-
var _ =
|
|
6418
|
+
}, k.prototype.stateNumericHex = function(I, T) {
|
|
6419
|
+
for (var S = T; T < I.length; ) {
|
|
6420
|
+
var _ = I.charCodeAt(T);
|
|
6421
6421
|
if (f(_) || h(_))
|
|
6422
|
-
|
|
6422
|
+
T += 1;
|
|
6423
6423
|
else
|
|
6424
|
-
return this.addToNumericResult(
|
|
6424
|
+
return this.addToNumericResult(I, S, T, 16), this.emitNumericEntity(_, 3);
|
|
6425
6425
|
}
|
|
6426
|
-
return this.addToNumericResult(
|
|
6427
|
-
}, k.prototype.stateNumericDecimal = function(
|
|
6428
|
-
for (var S =
|
|
6429
|
-
var _ =
|
|
6426
|
+
return this.addToNumericResult(I, S, T, 16), -1;
|
|
6427
|
+
}, k.prototype.stateNumericDecimal = function(I, T) {
|
|
6428
|
+
for (var S = T; T < I.length; ) {
|
|
6429
|
+
var _ = I.charCodeAt(T);
|
|
6430
6430
|
if (f(_))
|
|
6431
|
-
|
|
6431
|
+
T += 1;
|
|
6432
6432
|
else
|
|
6433
|
-
return this.addToNumericResult(
|
|
6433
|
+
return this.addToNumericResult(I, S, T, 10), this.emitNumericEntity(_, 2);
|
|
6434
6434
|
}
|
|
6435
|
-
return this.addToNumericResult(
|
|
6436
|
-
}, k.prototype.emitNumericEntity = function(
|
|
6435
|
+
return this.addToNumericResult(I, S, T, 10), -1;
|
|
6436
|
+
}, k.prototype.emitNumericEntity = function(I, T) {
|
|
6437
6437
|
var S;
|
|
6438
|
-
if (this.consumed <=
|
|
6438
|
+
if (this.consumed <= T)
|
|
6439
6439
|
return (S = this.errors) === null || S === void 0 || S.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
6440
|
-
if (
|
|
6440
|
+
if (I === c.SEMI)
|
|
6441
6441
|
this.consumed += 1;
|
|
6442
6442
|
else if (this.decodeMode === y.Strict)
|
|
6443
6443
|
return 0;
|
|
6444
|
-
return this.emitCodePoint((0, a.replaceCodePoint)(this.result), this.consumed), this.errors && (
|
|
6445
|
-
}, k.prototype.stateNamedEntity = function(
|
|
6446
|
-
for (var S = this.decodeTree, _ = S[this.treeIndex],
|
|
6447
|
-
var x =
|
|
6448
|
-
if (this.treeIndex = C(S, _, this.treeIndex + Math.max(1,
|
|
6444
|
+
return this.emitCodePoint((0, a.replaceCodePoint)(this.result), this.consumed), this.errors && (I !== c.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
6445
|
+
}, k.prototype.stateNamedEntity = function(I, T) {
|
|
6446
|
+
for (var S = this.decodeTree, _ = S[this.treeIndex], A = (_ & l.VALUE_LENGTH) >> 14; T < I.length; T++, this.excess++) {
|
|
6447
|
+
var x = I.charCodeAt(T);
|
|
6448
|
+
if (this.treeIndex = C(S, _, this.treeIndex + Math.max(1, A), x), this.treeIndex < 0)
|
|
6449
6449
|
return this.result === 0 || // If we are parsing an attribute
|
|
6450
6450
|
this.decodeMode === y.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
6451
|
-
(
|
|
6452
|
-
|
|
6453
|
-
if (_ = S[this.treeIndex],
|
|
6451
|
+
(A === 0 || // And there should be no invalid characters.
|
|
6452
|
+
b(x)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
6453
|
+
if (_ = S[this.treeIndex], A = (_ & l.VALUE_LENGTH) >> 14, A !== 0) {
|
|
6454
6454
|
if (x === c.SEMI)
|
|
6455
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
6455
|
+
return this.emitNamedEntityData(this.treeIndex, A, this.consumed + this.excess);
|
|
6456
6456
|
this.decodeMode !== y.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
6457
6457
|
}
|
|
6458
6458
|
}
|
|
6459
6459
|
return -1;
|
|
6460
6460
|
}, k.prototype.emitNotTerminatedNamedEntity = function() {
|
|
6461
|
-
var
|
|
6462
|
-
return this.emitNamedEntityData(S,
|
|
6463
|
-
}, k.prototype.emitNamedEntityData = function(
|
|
6461
|
+
var I, T = this, S = T.result, _ = T.decodeTree, A = (_[S] & l.VALUE_LENGTH) >> 14;
|
|
6462
|
+
return this.emitNamedEntityData(S, A, this.consumed), (I = this.errors) === null || I === void 0 || I.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
6463
|
+
}, k.prototype.emitNamedEntityData = function(I, T, S) {
|
|
6464
6464
|
var _ = this.decodeTree;
|
|
6465
|
-
return this.emitCodePoint(
|
|
6465
|
+
return this.emitCodePoint(T === 1 ? _[I] & ~l.VALUE_LENGTH : _[I + 1], S), T === 3 && this.emitCodePoint(_[I + 2], S), S;
|
|
6466
6466
|
}, k.prototype.end = function() {
|
|
6467
|
-
var
|
|
6467
|
+
var I;
|
|
6468
6468
|
switch (this.state) {
|
|
6469
6469
|
case m.NamedEntity:
|
|
6470
6470
|
return this.result !== 0 && (this.decodeMode !== y.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
@@ -6473,7 +6473,7 @@ var Ya = {};
|
|
|
6473
6473
|
case m.NumericHex:
|
|
6474
6474
|
return this.emitNumericEntity(0, 3);
|
|
6475
6475
|
case m.NumericStart:
|
|
6476
|
-
return (
|
|
6476
|
+
return (I = this.errors) === null || I === void 0 || I.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
6477
6477
|
case m.EntityStart:
|
|
6478
6478
|
return 0;
|
|
6479
6479
|
}
|
|
@@ -6481,37 +6481,37 @@ var Ya = {};
|
|
|
6481
6481
|
}()
|
|
6482
6482
|
);
|
|
6483
6483
|
t.EntityDecoder = v;
|
|
6484
|
-
function
|
|
6485
|
-
var
|
|
6486
|
-
return
|
|
6484
|
+
function E(k) {
|
|
6485
|
+
var I = "", T = new v(k, function(S) {
|
|
6486
|
+
return I += (0, a.fromCodePoint)(S);
|
|
6487
6487
|
});
|
|
6488
|
-
return function(_,
|
|
6488
|
+
return function(_, A) {
|
|
6489
6489
|
for (var x = 0, M = 0; (M = _.indexOf("&", M)) >= 0; ) {
|
|
6490
|
-
|
|
6491
|
-
var F =
|
|
6490
|
+
I += _.slice(x, M), T.startEntity(A);
|
|
6491
|
+
var F = T.write(
|
|
6492
6492
|
_,
|
|
6493
6493
|
// Skip the "&"
|
|
6494
6494
|
M + 1
|
|
6495
6495
|
);
|
|
6496
6496
|
if (F < 0) {
|
|
6497
|
-
x = M +
|
|
6497
|
+
x = M + T.end();
|
|
6498
6498
|
break;
|
|
6499
6499
|
}
|
|
6500
6500
|
x = M + F, M = F === 0 ? x + 1 : x;
|
|
6501
6501
|
}
|
|
6502
|
-
var z =
|
|
6503
|
-
return
|
|
6502
|
+
var z = I + _.slice(x);
|
|
6503
|
+
return I = "", z;
|
|
6504
6504
|
};
|
|
6505
6505
|
}
|
|
6506
|
-
function C(k,
|
|
6507
|
-
var _ = (
|
|
6506
|
+
function C(k, I, T, S) {
|
|
6507
|
+
var _ = (I & l.BRANCH_LENGTH) >> 7, A = I & l.JUMP_TABLE;
|
|
6508
6508
|
if (_ === 0)
|
|
6509
|
-
return
|
|
6510
|
-
if (
|
|
6511
|
-
var x = S -
|
|
6512
|
-
return x < 0 || x >= _ ? -1 : k[
|
|
6509
|
+
return A !== 0 && S === A ? T : -1;
|
|
6510
|
+
if (A) {
|
|
6511
|
+
var x = S - A;
|
|
6512
|
+
return x < 0 || x >= _ ? -1 : k[T + x] - 1;
|
|
6513
6513
|
}
|
|
6514
|
-
for (var M =
|
|
6514
|
+
for (var M = T, F = M + _ - 1; M <= F; ) {
|
|
6515
6515
|
var z = M + F >>> 1, G = k[z];
|
|
6516
6516
|
if (G < S)
|
|
6517
6517
|
M = z + 1;
|
|
@@ -6523,23 +6523,23 @@ var Ya = {};
|
|
|
6523
6523
|
return -1;
|
|
6524
6524
|
}
|
|
6525
6525
|
t.determineBranch = C;
|
|
6526
|
-
var
|
|
6527
|
-
function
|
|
6528
|
-
return
|
|
6526
|
+
var $ = E(o.default), B = E(s.default);
|
|
6527
|
+
function D(k, I) {
|
|
6528
|
+
return I === void 0 && (I = y.Legacy), $(k, I);
|
|
6529
6529
|
}
|
|
6530
|
-
t.decodeHTML =
|
|
6530
|
+
t.decodeHTML = D;
|
|
6531
6531
|
function j(k) {
|
|
6532
|
-
return
|
|
6532
|
+
return $(k, y.Attribute);
|
|
6533
6533
|
}
|
|
6534
6534
|
t.decodeHTMLAttribute = j;
|
|
6535
|
-
function
|
|
6536
|
-
return
|
|
6535
|
+
function w(k) {
|
|
6536
|
+
return $(k, y.Strict);
|
|
6537
6537
|
}
|
|
6538
|
-
t.decodeHTMLStrict =
|
|
6539
|
-
function
|
|
6540
|
-
return
|
|
6538
|
+
t.decodeHTMLStrict = w;
|
|
6539
|
+
function P(k) {
|
|
6540
|
+
return B(k, y.Strict);
|
|
6541
6541
|
}
|
|
6542
|
-
t.decodeXML =
|
|
6542
|
+
t.decodeXML = P;
|
|
6543
6543
|
})(Et);
|
|
6544
6544
|
var H;
|
|
6545
6545
|
(function(t) {
|
|
@@ -8327,52 +8327,52 @@ var Wx = mr, Vx = Wx, ev = { exports: {} };
|
|
|
8327
8327
|
C === "\r";
|
|
8328
8328
|
}
|
|
8329
8329
|
function r(C) {
|
|
8330
|
-
var B
|
|
8331
|
-
if (
|
|
8332
|
-
return
|
|
8330
|
+
var $, B = C.exec(e.substring(m));
|
|
8331
|
+
if (B)
|
|
8332
|
+
return $ = B[0], m += $.length, $;
|
|
8333
8333
|
}
|
|
8334
|
-
for (var i = e.length, o = /^[ \t\n\r\u000c]+/, s = /^[, \t\n\r\u000c]+/, a = /^[^ \t\n\r\u000c]+/, u = /[,]+$/, c = /^\d+$/, d = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, l, f, h, p,
|
|
8334
|
+
for (var i = e.length, o = /^[ \t\n\r\u000c]+/, s = /^[, \t\n\r\u000c]+/, a = /^[^ \t\n\r\u000c]+/, u = /[,]+$/, c = /^\d+$/, d = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, l, f, h, p, b, m = 0, y = []; ; ) {
|
|
8335
8335
|
if (r(s), m >= i)
|
|
8336
8336
|
return y;
|
|
8337
|
-
l = r(a), f = [], l.slice(-1) === "," ? (l = l.replace(u, ""),
|
|
8337
|
+
l = r(a), f = [], l.slice(-1) === "," ? (l = l.replace(u, ""), E()) : v();
|
|
8338
8338
|
}
|
|
8339
8339
|
function v() {
|
|
8340
8340
|
for (r(o), h = "", p = "in descriptor"; ; ) {
|
|
8341
|
-
if (
|
|
8342
|
-
if (n(
|
|
8341
|
+
if (b = e.charAt(m), p === "in descriptor")
|
|
8342
|
+
if (n(b))
|
|
8343
8343
|
h && (f.push(h), h = "", p = "after descriptor");
|
|
8344
|
-
else if (
|
|
8345
|
-
m += 1, h && f.push(h),
|
|
8344
|
+
else if (b === ",") {
|
|
8345
|
+
m += 1, h && f.push(h), E();
|
|
8346
8346
|
return;
|
|
8347
|
-
} else if (
|
|
8348
|
-
h = h +
|
|
8349
|
-
else if (
|
|
8350
|
-
h && f.push(h),
|
|
8347
|
+
} else if (b === "(")
|
|
8348
|
+
h = h + b, p = "in parens";
|
|
8349
|
+
else if (b === "") {
|
|
8350
|
+
h && f.push(h), E();
|
|
8351
8351
|
return;
|
|
8352
8352
|
} else
|
|
8353
|
-
h = h +
|
|
8353
|
+
h = h + b;
|
|
8354
8354
|
else if (p === "in parens")
|
|
8355
|
-
if (
|
|
8356
|
-
h = h +
|
|
8357
|
-
else if (
|
|
8358
|
-
f.push(h),
|
|
8355
|
+
if (b === ")")
|
|
8356
|
+
h = h + b, p = "in descriptor";
|
|
8357
|
+
else if (b === "") {
|
|
8358
|
+
f.push(h), E();
|
|
8359
8359
|
return;
|
|
8360
8360
|
} else
|
|
8361
|
-
h = h +
|
|
8362
|
-
else if (p === "after descriptor" && !n(
|
|
8363
|
-
if (
|
|
8364
|
-
|
|
8361
|
+
h = h + b;
|
|
8362
|
+
else if (p === "after descriptor" && !n(b))
|
|
8363
|
+
if (b === "") {
|
|
8364
|
+
E();
|
|
8365
8365
|
return;
|
|
8366
8366
|
} else
|
|
8367
8367
|
p = "in descriptor", m -= 1;
|
|
8368
8368
|
m += 1;
|
|
8369
8369
|
}
|
|
8370
8370
|
}
|
|
8371
|
-
function
|
|
8372
|
-
var C = !1, B,
|
|
8371
|
+
function E() {
|
|
8372
|
+
var C = !1, $, B, D, j, w = {}, P, k, I, T, S;
|
|
8373
8373
|
for (j = 0; j < f.length; j++)
|
|
8374
|
-
|
|
8375
|
-
C ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" +
|
|
8374
|
+
P = f[j], k = P[P.length - 1], I = P.substring(0, P.length - 1), T = parseInt(I, 10), S = parseFloat(I), c.test(I) && k === "w" ? (($ || B) && (C = !0), T === 0 ? C = !0 : $ = T) : d.test(I) && k === "x" ? (($ || B || D) && (C = !0), S < 0 ? C = !0 : B = S) : c.test(I) && k === "h" ? ((D || B) && (C = !0), T === 0 ? C = !0 : D = T) : C = !0;
|
|
8375
|
+
C ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + P + "'.") : (w.url = l, $ && (w.w = $), B && (w.d = B), D && (w.h = D), y.push(w));
|
|
8376
8376
|
}
|
|
8377
8377
|
};
|
|
8378
8378
|
});
|
|
@@ -9484,20 +9484,20 @@ var $c = su;
|
|
|
9484
9484
|
su.default = su;
|
|
9485
9485
|
const ta = 39, Cd = 34, qi = 92, Sd = 47, Gi = 10, Pr = 32, Yi = 12, Ki = 9, Wi = 13, Tw = 91, Aw = 93, $w = 40, Iw = 41, Bw = 123, Dw = 125, Mw = 59, Pw = 42, Rw = 58, Ow = 64, Vi = /[\t\n\f\r "#'()/;[\\\]{}]/g, Zi = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Lw = /.[\n"'(/\\]/, Td = /[\da-f]/i;
|
|
9486
9486
|
var Nw = function(e, n = {}) {
|
|
9487
|
-
let r = e.css.valueOf(), i = n.ignoreErrors, o, s, a, u, c, d, l, f, h, p,
|
|
9488
|
-
function
|
|
9487
|
+
let r = e.css.valueOf(), i = n.ignoreErrors, o, s, a, u, c, d, l, f, h, p, b = r.length, m = 0, y = [], v = [];
|
|
9488
|
+
function E() {
|
|
9489
9489
|
return m;
|
|
9490
9490
|
}
|
|
9491
9491
|
function C(j) {
|
|
9492
9492
|
throw e.error("Unclosed " + j, m);
|
|
9493
9493
|
}
|
|
9494
|
-
function
|
|
9495
|
-
return v.length === 0 && m >=
|
|
9494
|
+
function $() {
|
|
9495
|
+
return v.length === 0 && m >= b;
|
|
9496
9496
|
}
|
|
9497
|
-
function
|
|
9497
|
+
function B(j) {
|
|
9498
9498
|
if (v.length) return v.pop();
|
|
9499
|
-
if (m >=
|
|
9500
|
-
let
|
|
9499
|
+
if (m >= b) return;
|
|
9500
|
+
let w = j ? j.ignoreUnclosed : !1;
|
|
9501
9501
|
switch (o = r.charCodeAt(m), o) {
|
|
9502
9502
|
case Gi:
|
|
9503
9503
|
case Pr:
|
|
@@ -9518,8 +9518,8 @@ var Nw = function(e, n = {}) {
|
|
|
9518
9518
|
case Rw:
|
|
9519
9519
|
case Mw:
|
|
9520
9520
|
case Iw: {
|
|
9521
|
-
let
|
|
9522
|
-
p = [
|
|
9521
|
+
let P = String.fromCharCode(o);
|
|
9522
|
+
p = [P, P, m];
|
|
9523
9523
|
break;
|
|
9524
9524
|
}
|
|
9525
9525
|
case $w: {
|
|
@@ -9527,7 +9527,7 @@ var Nw = function(e, n = {}) {
|
|
|
9527
9527
|
s = m;
|
|
9528
9528
|
do {
|
|
9529
9529
|
if (d = !1, s = r.indexOf(")", s + 1), s === -1)
|
|
9530
|
-
if (i ||
|
|
9530
|
+
if (i || w) {
|
|
9531
9531
|
s = m;
|
|
9532
9532
|
break;
|
|
9533
9533
|
} else
|
|
@@ -9545,7 +9545,7 @@ var Nw = function(e, n = {}) {
|
|
|
9545
9545
|
a = o === ta ? "'" : '"', s = m;
|
|
9546
9546
|
do {
|
|
9547
9547
|
if (d = !1, s = r.indexOf(a, s + 1), s === -1)
|
|
9548
|
-
if (i ||
|
|
9548
|
+
if (i || w) {
|
|
9549
9549
|
s = m + 1;
|
|
9550
9550
|
break;
|
|
9551
9551
|
} else
|
|
@@ -9572,20 +9572,20 @@ var Nw = function(e, n = {}) {
|
|
|
9572
9572
|
break;
|
|
9573
9573
|
}
|
|
9574
9574
|
default: {
|
|
9575
|
-
o === Sd && r.charCodeAt(m + 1) === Pw ? (s = r.indexOf("*/", m + 2) + 1, s === 0 && (i ||
|
|
9575
|
+
o === Sd && r.charCodeAt(m + 1) === Pw ? (s = r.indexOf("*/", m + 2) + 1, s === 0 && (i || w ? s = r.length : C("comment")), p = ["comment", r.slice(m, s + 1), m, s], m = s) : (Zi.lastIndex = m + 1, Zi.test(r), Zi.lastIndex === 0 ? s = r.length - 1 : s = Zi.lastIndex - 2, p = ["word", r.slice(m, s + 1), m, s], y.push(p), m = s);
|
|
9576
9576
|
break;
|
|
9577
9577
|
}
|
|
9578
9578
|
}
|
|
9579
9579
|
return m++, p;
|
|
9580
9580
|
}
|
|
9581
|
-
function
|
|
9581
|
+
function D(j) {
|
|
9582
9582
|
v.push(j);
|
|
9583
9583
|
}
|
|
9584
9584
|
return {
|
|
9585
|
-
back:
|
|
9586
|
-
nextToken:
|
|
9587
|
-
endOfFile:
|
|
9588
|
-
position:
|
|
9585
|
+
back: D,
|
|
9586
|
+
nextToken: B,
|
|
9587
|
+
endOfFile: $,
|
|
9588
|
+
position: E
|
|
9589
9589
|
};
|
|
9590
9590
|
};
|
|
9591
9591
|
let _v = zn;
|
|
@@ -10550,9 +10550,9 @@ function fi(t, e, n) {
|
|
|
10550
10550
|
return "";
|
|
10551
10551
|
typeof t == "number" && (t = t.toString());
|
|
10552
10552
|
let r = "", i = "";
|
|
10553
|
-
function o(_,
|
|
10553
|
+
function o(_, A) {
|
|
10554
10554
|
const x = this;
|
|
10555
|
-
this.tag = _, this.attribs =
|
|
10555
|
+
this.tag = _, this.attribs = A || {}, this.tagPosition = r.length, this.text = "", this.mediaChildren = [], this.updateParentNodeText = function() {
|
|
10556
10556
|
if (m.length) {
|
|
10557
10557
|
const M = m[m.length - 1];
|
|
10558
10558
|
M.text += x.text;
|
|
@@ -10582,47 +10582,47 @@ and ensure you are accounting for this risk.
|
|
|
10582
10582
|
"option"
|
|
10583
10583
|
];
|
|
10584
10584
|
let u, c;
|
|
10585
|
-
e.allowedAttributes && (u = {}, c = {}, jr(e.allowedAttributes, function(_,
|
|
10586
|
-
u[
|
|
10585
|
+
e.allowedAttributes && (u = {}, c = {}, jr(e.allowedAttributes, function(_, A) {
|
|
10586
|
+
u[A] = [];
|
|
10587
10587
|
const x = [];
|
|
10588
10588
|
_.forEach(function(M) {
|
|
10589
|
-
typeof M == "string" && M.indexOf("*") >= 0 ? x.push(Dd(M).replace(/\\\*/g, ".*")) : u[
|
|
10590
|
-
}), x.length && (c[
|
|
10589
|
+
typeof M == "string" && M.indexOf("*") >= 0 ? x.push(Dd(M).replace(/\\\*/g, ".*")) : u[A].push(M);
|
|
10590
|
+
}), x.length && (c[A] = new RegExp("^(" + x.join("|") + ")$"));
|
|
10591
10591
|
}));
|
|
10592
10592
|
const d = {}, l = {}, f = {};
|
|
10593
|
-
jr(e.allowedClasses, function(_,
|
|
10594
|
-
if (u && (jt(u,
|
|
10593
|
+
jr(e.allowedClasses, function(_, A) {
|
|
10594
|
+
if (u && (jt(u, A) || (u[A] = []), u[A].push("class")), d[A] = _, Array.isArray(_)) {
|
|
10595
10595
|
const x = [];
|
|
10596
|
-
d[
|
|
10597
|
-
typeof M == "string" && M.indexOf("*") >= 0 ? x.push(Dd(M).replace(/\\\*/g, ".*")) : M instanceof RegExp ? f[
|
|
10598
|
-
}), x.length && (l[
|
|
10596
|
+
d[A] = [], f[A] = [], _.forEach(function(M) {
|
|
10597
|
+
typeof M == "string" && M.indexOf("*") >= 0 ? x.push(Dd(M).replace(/\\\*/g, ".*")) : M instanceof RegExp ? f[A].push(M) : d[A].push(M);
|
|
10598
|
+
}), x.length && (l[A] = new RegExp("^(" + x.join("|") + ")$"));
|
|
10599
10599
|
}
|
|
10600
10600
|
});
|
|
10601
10601
|
const h = {};
|
|
10602
10602
|
let p;
|
|
10603
|
-
jr(e.transformTags, function(_,
|
|
10603
|
+
jr(e.transformTags, function(_, A) {
|
|
10604
10604
|
let x;
|
|
10605
|
-
typeof _ == "function" ? x = _ : typeof _ == "string" && (x = fi.simpleTransform(_)),
|
|
10605
|
+
typeof _ == "function" ? x = _ : typeof _ == "string" && (x = fi.simpleTransform(_)), A === "*" ? p = x : h[A] = x;
|
|
10606
10606
|
});
|
|
10607
|
-
let
|
|
10608
|
-
|
|
10609
|
-
const
|
|
10610
|
-
onopentag: function(_,
|
|
10611
|
-
if (e.enforceHtmlBoundary && _ === "html" &&
|
|
10607
|
+
let b, m, y, v, E, C, $ = !1;
|
|
10608
|
+
D();
|
|
10609
|
+
const B = new LE.Parser({
|
|
10610
|
+
onopentag: function(_, A) {
|
|
10611
|
+
if (e.enforceHtmlBoundary && _ === "html" && D(), E) {
|
|
10612
10612
|
C++;
|
|
10613
10613
|
return;
|
|
10614
10614
|
}
|
|
10615
|
-
const x = new o(_,
|
|
10615
|
+
const x = new o(_, A);
|
|
10616
10616
|
m.push(x);
|
|
10617
10617
|
let M = !1;
|
|
10618
10618
|
const F = !!x.text;
|
|
10619
10619
|
let z;
|
|
10620
|
-
if (jt(h, _) && (z = h[_](_,
|
|
10620
|
+
if (jt(h, _) && (z = h[_](_, A), x.attribs = A = z.attribs, z.text !== void 0 && (x.innerText = z.text), _ !== z.tagName && (x.name = _ = z.tagName, v[b] = z.tagName)), p && (z = p(_, A), x.attribs = A = z.attribs, _ !== z.tagName && (x.name = _ = z.tagName, v[b] = z.tagName)), (!s(_) || e.disallowedTagsMode === "recursiveEscape" && !HE(y) || e.nestingLimit != null && b >= e.nestingLimit) && (M = !0, y[b] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && a.indexOf(_) !== -1 && (E = !0, C = 1), y[b] = !0), b++, M) {
|
|
10621
10621
|
if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard")
|
|
10622
10622
|
return;
|
|
10623
10623
|
i = r, r = "";
|
|
10624
10624
|
}
|
|
10625
|
-
r += "<" + _, _ === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (x.innerText = ""), (!u || jt(u, _) || u["*"]) && jr(
|
|
10625
|
+
r += "<" + _, _ === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (x.innerText = ""), (!u || jt(u, _) || u["*"]) && jr(A, function(G, Y) {
|
|
10626
10626
|
if (!YE.test(Y)) {
|
|
10627
10627
|
delete x.attribs[Y];
|
|
10628
10628
|
return;
|
|
@@ -10648,14 +10648,14 @@ and ensure you are accounting for this risk.
|
|
|
10648
10648
|
}
|
|
10649
10649
|
}
|
|
10650
10650
|
if (we) {
|
|
10651
|
-
if (e.allowedSchemesAppliedToAttributes.indexOf(Y) !== -1 &&
|
|
10651
|
+
if (e.allowedSchemesAppliedToAttributes.indexOf(Y) !== -1 && w(_, G)) {
|
|
10652
10652
|
delete x.attribs[Y];
|
|
10653
10653
|
return;
|
|
10654
10654
|
}
|
|
10655
10655
|
if (_ === "script" && Y === "src") {
|
|
10656
10656
|
let Q = !0;
|
|
10657
10657
|
try {
|
|
10658
|
-
const W =
|
|
10658
|
+
const W = P(G);
|
|
10659
10659
|
if (e.allowedScriptHostnames || e.allowedScriptDomains) {
|
|
10660
10660
|
const Ie = (e.allowedScriptHostnames || []).find(function(Ee) {
|
|
10661
10661
|
return Ee === W.url.hostname;
|
|
@@ -10675,7 +10675,7 @@ and ensure you are accounting for this risk.
|
|
|
10675
10675
|
if (_ === "iframe" && Y === "src") {
|
|
10676
10676
|
let Q = !0;
|
|
10677
10677
|
try {
|
|
10678
|
-
const W =
|
|
10678
|
+
const W = P(G);
|
|
10679
10679
|
if (W.isRelativeUrl)
|
|
10680
10680
|
Q = jt(e, "allowIframeRelativeUrls") ? e.allowIframeRelativeUrls : !e.allowedIframeHostnames && !e.allowedIframeDomains;
|
|
10681
10681
|
else if (e.allowedIframeHostnames || e.allowedIframeDomains) {
|
|
@@ -10698,7 +10698,7 @@ and ensure you are accounting for this risk.
|
|
|
10698
10698
|
try {
|
|
10699
10699
|
let Q = FE(G);
|
|
10700
10700
|
if (Q.forEach(function(W) {
|
|
10701
|
-
|
|
10701
|
+
w("srcset", W.url) && (W.evil = !0);
|
|
10702
10702
|
}), Q = Pd(Q, function(W) {
|
|
10703
10703
|
return !W.evil;
|
|
10704
10704
|
}), Q.length)
|
|
@@ -10729,7 +10729,7 @@ and ensure you are accounting for this risk.
|
|
|
10729
10729
|
if (e.parseStyleAttributes)
|
|
10730
10730
|
try {
|
|
10731
10731
|
const Q = jE(_ + " {" + G + "}", { map: !1 }), W = k(Q, e.allowedStyles);
|
|
10732
|
-
if (G =
|
|
10732
|
+
if (G = I(W), G.length === 0) {
|
|
10733
10733
|
delete x.attribs[Y];
|
|
10734
10734
|
return;
|
|
10735
10735
|
}
|
|
@@ -10743,30 +10743,30 @@ and ensure you are accounting for this risk.
|
|
|
10743
10743
|
r += " " + Y, G && G.length ? r += '="' + j(G, !0) + '"' : e.allowedEmptyAttributes.includes(Y) && (r += '=""');
|
|
10744
10744
|
} else
|
|
10745
10745
|
delete x.attribs[Y];
|
|
10746
|
-
}), e.selfClosing.indexOf(_) !== -1 ? r += " />" : (r += ">", x.innerText && !F && !e.textFilter && (r += j(x.innerText),
|
|
10746
|
+
}), e.selfClosing.indexOf(_) !== -1 ? r += " />" : (r += ">", x.innerText && !F && !e.textFilter && (r += j(x.innerText), $ = !0)), M && (r = i + j(r), i = "");
|
|
10747
10747
|
},
|
|
10748
10748
|
ontext: function(_) {
|
|
10749
|
-
if (
|
|
10749
|
+
if (E)
|
|
10750
10750
|
return;
|
|
10751
|
-
const
|
|
10751
|
+
const A = m[m.length - 1];
|
|
10752
10752
|
let x;
|
|
10753
|
-
if (
|
|
10753
|
+
if (A && (x = A.tag, _ = A.innerText !== void 0 ? A.innerText : _), e.disallowedTagsMode === "completelyDiscard" && !s(x))
|
|
10754
10754
|
_ = "";
|
|
10755
10755
|
else if ((e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && (x === "script" || x === "style"))
|
|
10756
10756
|
r += _;
|
|
10757
10757
|
else {
|
|
10758
10758
|
const M = j(_, !1);
|
|
10759
|
-
e.textFilter &&
|
|
10759
|
+
e.textFilter && !$ ? r += e.textFilter(M, x) : $ || (r += M);
|
|
10760
10760
|
}
|
|
10761
10761
|
if (m.length) {
|
|
10762
10762
|
const M = m[m.length - 1];
|
|
10763
10763
|
M.text += _;
|
|
10764
10764
|
}
|
|
10765
10765
|
},
|
|
10766
|
-
onclosetag: function(_,
|
|
10767
|
-
if (
|
|
10766
|
+
onclosetag: function(_, A) {
|
|
10767
|
+
if (E)
|
|
10768
10768
|
if (C--, !C)
|
|
10769
|
-
|
|
10769
|
+
E = !1;
|
|
10770
10770
|
else
|
|
10771
10771
|
return;
|
|
10772
10772
|
const x = m.pop();
|
|
@@ -10776,90 +10776,90 @@ and ensure you are accounting for this risk.
|
|
|
10776
10776
|
m.push(x);
|
|
10777
10777
|
return;
|
|
10778
10778
|
}
|
|
10779
|
-
|
|
10780
|
-
const M = y[
|
|
10779
|
+
E = e.enforceHtmlBoundary ? _ === "html" : !1, b--;
|
|
10780
|
+
const M = y[b];
|
|
10781
10781
|
if (M) {
|
|
10782
|
-
if (delete y[
|
|
10782
|
+
if (delete y[b], e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
10783
10783
|
x.updateParentNodeText();
|
|
10784
10784
|
return;
|
|
10785
10785
|
}
|
|
10786
10786
|
i = r, r = "";
|
|
10787
10787
|
}
|
|
10788
|
-
if (v[
|
|
10788
|
+
if (v[b] && (_ = v[b], delete v[b]), e.exclusiveFilter && e.exclusiveFilter(x)) {
|
|
10789
10789
|
r = r.substr(0, x.tagPosition);
|
|
10790
10790
|
return;
|
|
10791
10791
|
}
|
|
10792
10792
|
if (x.updateParentNodeMediaChildren(), x.updateParentNodeText(), // Already output />
|
|
10793
10793
|
e.selfClosing.indexOf(_) !== -1 || // Escaped tag, closing tag is implied
|
|
10794
|
-
|
|
10794
|
+
A && !s(_) && ["escape", "recursiveEscape"].indexOf(e.disallowedTagsMode) >= 0) {
|
|
10795
10795
|
M && (r = i, i = "");
|
|
10796
10796
|
return;
|
|
10797
10797
|
}
|
|
10798
|
-
r += "</" + _ + ">", M && (r = i + j(r), i = ""),
|
|
10798
|
+
r += "</" + _ + ">", M && (r = i + j(r), i = ""), $ = !1;
|
|
10799
10799
|
}
|
|
10800
10800
|
}, e.parser);
|
|
10801
|
-
return
|
|
10802
|
-
function
|
|
10803
|
-
r = "",
|
|
10801
|
+
return B.write(t), B.end(), r;
|
|
10802
|
+
function D() {
|
|
10803
|
+
r = "", b = 0, m = [], y = {}, v = {}, E = !1, C = 0;
|
|
10804
10804
|
}
|
|
10805
|
-
function j(_,
|
|
10806
|
-
return typeof _ != "string" && (_ = _ + ""), e.parser.decodeEntities && (_ = _.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
10805
|
+
function j(_, A) {
|
|
10806
|
+
return typeof _ != "string" && (_ = _ + ""), e.parser.decodeEntities && (_ = _.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), A && (_ = _.replace(/"/g, """))), _ = _.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&").replace(/</g, "<").replace(/>/g, ">"), A && (_ = _.replace(/"/g, """)), _;
|
|
10807
10807
|
}
|
|
10808
|
-
function
|
|
10809
|
-
for (
|
|
10810
|
-
const F =
|
|
10808
|
+
function w(_, A) {
|
|
10809
|
+
for (A = A.replace(/[\x00-\x20]+/g, ""); ; ) {
|
|
10810
|
+
const F = A.indexOf("<!--");
|
|
10811
10811
|
if (F === -1)
|
|
10812
10812
|
break;
|
|
10813
|
-
const z =
|
|
10813
|
+
const z = A.indexOf("-->", F + 4);
|
|
10814
10814
|
if (z === -1)
|
|
10815
10815
|
break;
|
|
10816
|
-
|
|
10816
|
+
A = A.substring(0, F) + A.substring(z + 3);
|
|
10817
10817
|
}
|
|
10818
|
-
const x =
|
|
10818
|
+
const x = A.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);
|
|
10819
10819
|
if (!x)
|
|
10820
|
-
return
|
|
10820
|
+
return A.match(/^[/\\]{2}/) ? !e.allowProtocolRelative : !1;
|
|
10821
10821
|
const M = x[1].toLowerCase();
|
|
10822
10822
|
return jt(e.allowedSchemesByTag, _) ? e.allowedSchemesByTag[_].indexOf(M) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf(M) === -1;
|
|
10823
10823
|
}
|
|
10824
|
-
function
|
|
10824
|
+
function P(_) {
|
|
10825
10825
|
if (_ = _.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), _.startsWith("relative:"))
|
|
10826
10826
|
throw new Error("relative: exploit attempt");
|
|
10827
|
-
let
|
|
10827
|
+
let A = "relative://relative-site";
|
|
10828
10828
|
for (let F = 0; F < 100; F++)
|
|
10829
|
-
|
|
10830
|
-
const x = new URL(_,
|
|
10829
|
+
A += `/${F}`;
|
|
10830
|
+
const x = new URL(_, A);
|
|
10831
10831
|
return {
|
|
10832
10832
|
isRelativeUrl: x && x.hostname === "relative-site" && x.protocol === "relative:",
|
|
10833
10833
|
url: x
|
|
10834
10834
|
};
|
|
10835
10835
|
}
|
|
10836
|
-
function k(_,
|
|
10837
|
-
if (!
|
|
10836
|
+
function k(_, A) {
|
|
10837
|
+
if (!A)
|
|
10838
10838
|
return _;
|
|
10839
10839
|
const x = _.nodes[0];
|
|
10840
10840
|
let M;
|
|
10841
|
-
return
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
) : M =
|
|
10845
|
-
}
|
|
10846
|
-
function
|
|
10847
|
-
return _.nodes[0].nodes.reduce(function(
|
|
10848
|
-
return
|
|
10841
|
+
return A[x.selector] && A["*"] ? M = Md(
|
|
10842
|
+
A[x.selector],
|
|
10843
|
+
A["*"]
|
|
10844
|
+
) : M = A[x.selector] || A["*"], M && (_.nodes[0].nodes = x.nodes.reduce(T(M), [])), _;
|
|
10845
|
+
}
|
|
10846
|
+
function I(_) {
|
|
10847
|
+
return _.nodes[0].nodes.reduce(function(A, x) {
|
|
10848
|
+
return A.push(
|
|
10849
10849
|
`${x.prop}:${x.value}${x.important ? " !important" : ""}`
|
|
10850
|
-
),
|
|
10850
|
+
), A;
|
|
10851
10851
|
}, []).join(";");
|
|
10852
10852
|
}
|
|
10853
|
-
function
|
|
10854
|
-
return function(
|
|
10853
|
+
function T(_) {
|
|
10854
|
+
return function(A, x) {
|
|
10855
10855
|
return jt(_, x.prop) && _[x.prop].some(function(F) {
|
|
10856
10856
|
return F.test(x.value);
|
|
10857
|
-
}) &&
|
|
10857
|
+
}) && A.push(x), A;
|
|
10858
10858
|
};
|
|
10859
10859
|
}
|
|
10860
|
-
function S(_,
|
|
10861
|
-
return
|
|
10862
|
-
return
|
|
10860
|
+
function S(_, A, x) {
|
|
10861
|
+
return A ? (_ = _.split(/\s+/), _.filter(function(M) {
|
|
10862
|
+
return A.indexOf(M) !== -1 || x.some(function(F) {
|
|
10863
10863
|
return F.test(M);
|
|
10864
10864
|
});
|
|
10865
10865
|
}).join(" ")) : _;
|
|
@@ -11185,52 +11185,52 @@ var Pv = { exports: {} };
|
|
|
11185
11185
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
11186
11186
|
return function(o, s, a) {
|
|
11187
11187
|
var u = s.prototype;
|
|
11188
|
-
a.utc = function(
|
|
11189
|
-
var m = { date:
|
|
11188
|
+
a.utc = function(b) {
|
|
11189
|
+
var m = { date: b, utc: !0, args: arguments };
|
|
11190
11190
|
return new s(m);
|
|
11191
|
-
}, u.utc = function(
|
|
11191
|
+
}, u.utc = function(b) {
|
|
11192
11192
|
var m = a(this.toDate(), { locale: this.$L, utc: !0 });
|
|
11193
|
-
return
|
|
11193
|
+
return b ? m.add(this.utcOffset(), n) : m;
|
|
11194
11194
|
}, u.local = function() {
|
|
11195
11195
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
11196
11196
|
};
|
|
11197
11197
|
var c = u.parse;
|
|
11198
|
-
u.parse = function(
|
|
11199
|
-
|
|
11198
|
+
u.parse = function(b) {
|
|
11199
|
+
b.utc && (this.$u = !0), this.$utils().u(b.$offset) || (this.$offset = b.$offset), c.call(this, b);
|
|
11200
11200
|
};
|
|
11201
11201
|
var d = u.init;
|
|
11202
11202
|
u.init = function() {
|
|
11203
11203
|
if (this.$u) {
|
|
11204
|
-
var
|
|
11205
|
-
this.$y =
|
|
11204
|
+
var b = this.$d;
|
|
11205
|
+
this.$y = b.getUTCFullYear(), this.$M = b.getUTCMonth(), this.$D = b.getUTCDate(), this.$W = b.getUTCDay(), this.$H = b.getUTCHours(), this.$m = b.getUTCMinutes(), this.$s = b.getUTCSeconds(), this.$ms = b.getUTCMilliseconds();
|
|
11206
11206
|
} else d.call(this);
|
|
11207
11207
|
};
|
|
11208
11208
|
var l = u.utcOffset;
|
|
11209
|
-
u.utcOffset = function(
|
|
11209
|
+
u.utcOffset = function(b, m) {
|
|
11210
11210
|
var y = this.$utils().u;
|
|
11211
|
-
if (y(
|
|
11212
|
-
if (typeof
|
|
11213
|
-
|
|
11214
|
-
var
|
|
11215
|
-
if (!
|
|
11216
|
-
var
|
|
11217
|
-
return
|
|
11218
|
-
}(
|
|
11219
|
-
var v = Math.abs(
|
|
11220
|
-
if (m) return
|
|
11221
|
-
if (
|
|
11211
|
+
if (y(b)) return this.$u ? 0 : y(this.$offset) ? l.call(this) : this.$offset;
|
|
11212
|
+
if (typeof b == "string" && (b = function($) {
|
|
11213
|
+
$ === void 0 && ($ = "");
|
|
11214
|
+
var B = $.match(r);
|
|
11215
|
+
if (!B) return null;
|
|
11216
|
+
var D = ("" + B[0]).match(i) || ["-", 0, 0], j = D[0], w = 60 * +D[1] + +D[2];
|
|
11217
|
+
return w === 0 ? 0 : j === "+" ? w : -w;
|
|
11218
|
+
}(b), b === null)) return this;
|
|
11219
|
+
var v = Math.abs(b) <= 16 ? 60 * b : b, E = this;
|
|
11220
|
+
if (m) return E.$offset = v, E.$u = b === 0, E;
|
|
11221
|
+
if (b !== 0) {
|
|
11222
11222
|
var C = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
11223
|
-
(
|
|
11224
|
-
} else
|
|
11225
|
-
return
|
|
11223
|
+
(E = this.local().add(v + C, n)).$offset = v, E.$x.$localOffset = C;
|
|
11224
|
+
} else E = this.utc();
|
|
11225
|
+
return E;
|
|
11226
11226
|
};
|
|
11227
11227
|
var f = u.format;
|
|
11228
|
-
u.format = function(
|
|
11229
|
-
var m =
|
|
11228
|
+
u.format = function(b) {
|
|
11229
|
+
var m = b || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
11230
11230
|
return f.call(this, m);
|
|
11231
11231
|
}, u.valueOf = function() {
|
|
11232
|
-
var
|
|
11233
|
-
return this.$d.valueOf() - 6e4 *
|
|
11232
|
+
var b = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
11233
|
+
return this.$d.valueOf() - 6e4 * b;
|
|
11234
11234
|
}, u.isUTC = function() {
|
|
11235
11235
|
return !!this.$u;
|
|
11236
11236
|
}, u.toISOString = function() {
|
|
@@ -11239,14 +11239,14 @@ var Pv = { exports: {} };
|
|
|
11239
11239
|
return this.toDate().toUTCString();
|
|
11240
11240
|
};
|
|
11241
11241
|
var h = u.toDate;
|
|
11242
|
-
u.toDate = function(
|
|
11243
|
-
return
|
|
11242
|
+
u.toDate = function(b) {
|
|
11243
|
+
return b === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : h.call(this);
|
|
11244
11244
|
};
|
|
11245
11245
|
var p = u.diff;
|
|
11246
|
-
u.diff = function(
|
|
11247
|
-
if (
|
|
11248
|
-
var v = this.local(),
|
|
11249
|
-
return p.call(v,
|
|
11246
|
+
u.diff = function(b, m, y) {
|
|
11247
|
+
if (b && this.$u === b.$u) return p.call(this, b, m, y);
|
|
11248
|
+
var v = this.local(), E = a(b).local();
|
|
11249
|
+
return p.call(v, E, m, y);
|
|
11250
11250
|
};
|
|
11251
11251
|
};
|
|
11252
11252
|
});
|
|
@@ -11261,31 +11261,31 @@ var Rv = { exports: {} };
|
|
|
11261
11261
|
return function(i, o, s) {
|
|
11262
11262
|
var a, u = function(f, h, p) {
|
|
11263
11263
|
p === void 0 && (p = {});
|
|
11264
|
-
var
|
|
11264
|
+
var b = new Date(f), m = function(y, v) {
|
|
11265
11265
|
v === void 0 && (v = {});
|
|
11266
|
-
var
|
|
11267
|
-
return
|
|
11266
|
+
var E = v.timeZoneName || "short", C = y + "|" + E, $ = r[C];
|
|
11267
|
+
return $ || ($ = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: y, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: E }), r[C] = $), $;
|
|
11268
11268
|
}(h, p);
|
|
11269
|
-
return m.formatToParts(
|
|
11269
|
+
return m.formatToParts(b);
|
|
11270
11270
|
}, c = function(f, h) {
|
|
11271
|
-
for (var p = u(f, h),
|
|
11272
|
-
var y = p[m], v = y.type,
|
|
11273
|
-
C >= 0 && (
|
|
11271
|
+
for (var p = u(f, h), b = [], m = 0; m < p.length; m += 1) {
|
|
11272
|
+
var y = p[m], v = y.type, E = y.value, C = n[v];
|
|
11273
|
+
C >= 0 && (b[C] = parseInt(E, 10));
|
|
11274
11274
|
}
|
|
11275
|
-
var
|
|
11276
|
-
return (s.utc(
|
|
11275
|
+
var $ = b[3], B = $ === 24 ? 0 : $, D = b[0] + "-" + b[1] + "-" + b[2] + " " + B + ":" + b[4] + ":" + b[5] + ":000", j = +f;
|
|
11276
|
+
return (s.utc(D).valueOf() - (j -= j % 1e3)) / 6e4;
|
|
11277
11277
|
}, d = o.prototype;
|
|
11278
11278
|
d.tz = function(f, h) {
|
|
11279
11279
|
f === void 0 && (f = a);
|
|
11280
|
-
var p = this.utcOffset(),
|
|
11280
|
+
var p = this.utcOffset(), b = this.toDate(), m = b.toLocaleString("en-US", { timeZone: f }), y = Math.round((b - new Date(m)) / 1e3 / 60), v = s(m).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(b.getTimezoneOffset() / 15) - y, !0);
|
|
11281
11281
|
if (h) {
|
|
11282
|
-
var
|
|
11283
|
-
v = v.add(p -
|
|
11282
|
+
var E = v.utcOffset();
|
|
11283
|
+
v = v.add(p - E, "minute");
|
|
11284
11284
|
}
|
|
11285
11285
|
return v.$x.$timezone = f, v;
|
|
11286
11286
|
}, d.offsetName = function(f) {
|
|
11287
|
-
var h = this.$x.$timezone || s.tz.guess(), p = u(this.valueOf(), h, { timeZoneName: f }).find(function(
|
|
11288
|
-
return
|
|
11287
|
+
var h = this.$x.$timezone || s.tz.guess(), p = u(this.valueOf(), h, { timeZoneName: f }).find(function(b) {
|
|
11288
|
+
return b.type.toLowerCase() === "timezonename";
|
|
11289
11289
|
});
|
|
11290
11290
|
return p && p.value;
|
|
11291
11291
|
};
|
|
@@ -11295,15 +11295,15 @@ var Rv = { exports: {} };
|
|
|
11295
11295
|
var p = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
11296
11296
|
return l.call(p, f, h).tz(this.$x.$timezone, !0);
|
|
11297
11297
|
}, s.tz = function(f, h, p) {
|
|
11298
|
-
var
|
|
11298
|
+
var b = p && h, m = p || h || a, y = c(+s(), m);
|
|
11299
11299
|
if (typeof f != "string") return s(f).tz(m);
|
|
11300
|
-
var v = function(
|
|
11301
|
-
var
|
|
11302
|
-
if (
|
|
11303
|
-
var k = c(
|
|
11304
|
-
return
|
|
11305
|
-
}(s.utc(f,
|
|
11306
|
-
return
|
|
11300
|
+
var v = function(B, D, j) {
|
|
11301
|
+
var w = B - 60 * D * 1e3, P = c(w, j);
|
|
11302
|
+
if (D === P) return [w, D];
|
|
11303
|
+
var k = c(w -= 60 * (P - D) * 1e3, j);
|
|
11304
|
+
return P === k ? [w, P] : [B - 60 * Math.min(P, k) * 1e3, Math.max(P, k)];
|
|
11305
|
+
}(s.utc(f, b).valueOf(), y, m), E = v[0], C = v[1], $ = s(E).utcOffset(C);
|
|
11306
|
+
return $.$x.$timezone = m, $;
|
|
11307
11307
|
}, s.tz.guess = function() {
|
|
11308
11308
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
11309
11309
|
}, s.tz.setDefault = function(f) {
|
|
@@ -11442,18 +11442,18 @@ class r7 {
|
|
|
11442
11442
|
var y;
|
|
11443
11443
|
const h = this.nylasConnector, p = async (v) => {
|
|
11444
11444
|
N(`[${this.hostTagName}] Handling "${e.name}" prop "${String(f)}" event.`, { event: v }), f in d && (N(`[${this.hostTagName}] Found event override for "${String(f)}" event. Calling override.`), await d[f](v, h)), v.defaultPrevented || await l(v, h);
|
|
11445
|
-
},
|
|
11446
|
-
|
|
11445
|
+
}, b = e.element.dataset.nylasId;
|
|
11446
|
+
b && !this.eventListenerRegistrations.has(b) && this.eventListenerRegistrations.set(b, []), b && ((y = this.eventListenerRegistrations.get(b)) == null || y.push([c, f, p])), N(`[${this.hostTagName}] Setting "${e.name}" event "${String(f)}" to automcially call NylasConnector method.`);
|
|
11447
11447
|
const m = Rd(f.toString());
|
|
11448
11448
|
N(`[${this.hostTagName}] Adding event listener for "${m}" on "${c.tagName}"`), c.addEventListener(m, p);
|
|
11449
11449
|
}), r == null || r.forEach((l, f) => {
|
|
11450
|
-
var y, v,
|
|
11450
|
+
var y, v, E, C;
|
|
11451
11451
|
const [h, p] = f.split("."), m = this.getStore(h).state[p];
|
|
11452
11452
|
if (!c.dataset.nylasId) {
|
|
11453
11453
|
N(`[${this.hostTagName}] Component "${e.name}" not registered. Skipping.`, { component: e });
|
|
11454
11454
|
return;
|
|
11455
11455
|
}
|
|
11456
|
-
this.propStateRegistrations.has(h) || this.propStateRegistrations.set(h, /* @__PURE__ */ new Map()), (y = this.propStateRegistrations.get(h)) != null && y.has(p) ? (C = (
|
|
11456
|
+
this.propStateRegistrations.has(h) || this.propStateRegistrations.set(h, /* @__PURE__ */ new Map()), (y = this.propStateRegistrations.get(h)) != null && y.has(p) ? (C = (E = this.propStateRegistrations.get(h)) == null ? void 0 : E.get(p)) == null || C.push({
|
|
11457
11457
|
elementId: c.dataset.nylasId,
|
|
11458
11458
|
propKey: l
|
|
11459
11459
|
}) : (v = this.propStateRegistrations.get(h)) == null || v.set(p, [
|
|
@@ -12237,8 +12237,8 @@ class A7 {
|
|
|
12237
12237
|
const [a, u] = n.reduce(([c, d], l) => {
|
|
12238
12238
|
const f = i[l], h = e[l];
|
|
12239
12239
|
return [c || f, c || !f ? Pn(d, f && f.multi ? (p) => {
|
|
12240
|
-
const
|
|
12241
|
-
return Ue(
|
|
12240
|
+
const b = Vt(p, l);
|
|
12241
|
+
return Ue(b) && b.some((m) => s(h, m));
|
|
12242
12242
|
} : (p) => s(h, Vt(p, l))) : d];
|
|
12243
12243
|
}, [null, null]);
|
|
12244
12244
|
return a ? this.where(a.name).equals(e[a.keyPath]).filter(u) : r ? this.filter(u) : this.where(n).equals("");
|
|
@@ -12418,11 +12418,11 @@ function Xr(t) {
|
|
|
12418
12418
|
if (f !== "asap")
|
|
12419
12419
|
throw new Z.InvalidArgument("Invalid event config");
|
|
12420
12420
|
var h = o(l, pi, function() {
|
|
12421
|
-
for (var p = arguments.length,
|
|
12422
|
-
|
|
12421
|
+
for (var p = arguments.length, b = new Array(p); p--; )
|
|
12422
|
+
b[p] = arguments[p];
|
|
12423
12423
|
h.subscribers.forEach(function(m) {
|
|
12424
12424
|
Nv(function() {
|
|
12425
|
-
m.apply(null,
|
|
12425
|
+
m.apply(null, b);
|
|
12426
12426
|
});
|
|
12427
12427
|
});
|
|
12428
12428
|
});
|
|
@@ -12710,43 +12710,43 @@ class $7 {
|
|
|
12710
12710
|
i = e;
|
|
12711
12711
|
else {
|
|
12712
12712
|
var o = Ae(e), s = o.length;
|
|
12713
|
-
i = function(
|
|
12713
|
+
i = function(b) {
|
|
12714
12714
|
for (var m = !1, y = 0; y < s; ++y) {
|
|
12715
|
-
var v = o[y],
|
|
12716
|
-
Vt(
|
|
12715
|
+
var v = o[y], E = e[v];
|
|
12716
|
+
Vt(b, v) !== E && (gt(b, v, E), m = !0);
|
|
12717
12717
|
}
|
|
12718
12718
|
return m;
|
|
12719
12719
|
};
|
|
12720
12720
|
}
|
|
12721
12721
|
const a = n.table.core, { outbound: u, extractKey: c } = a.schema.primaryKey, d = this.db._options.modifyChunkSize || 200, l = [];
|
|
12722
12722
|
let f = 0;
|
|
12723
|
-
const h = [], p = (
|
|
12723
|
+
const h = [], p = (b, m) => {
|
|
12724
12724
|
const { failures: y, numFailures: v } = m;
|
|
12725
|
-
f +=
|
|
12726
|
-
for (let
|
|
12727
|
-
l.push(y[
|
|
12725
|
+
f += b - v;
|
|
12726
|
+
for (let E of Ae(y))
|
|
12727
|
+
l.push(y[E]);
|
|
12728
12728
|
};
|
|
12729
|
-
return this.clone().primaryKeys().then((
|
|
12729
|
+
return this.clone().primaryKeys().then((b) => {
|
|
12730
12730
|
const m = (y) => {
|
|
12731
|
-
const v = Math.min(d,
|
|
12732
|
-
return a.getMany({ trans: r, keys:
|
|
12733
|
-
const C = [],
|
|
12734
|
-
for (let
|
|
12735
|
-
const
|
|
12736
|
-
i.call(k, k.value, k) !== !1 && (k.value == null ?
|
|
12731
|
+
const v = Math.min(d, b.length - y);
|
|
12732
|
+
return a.getMany({ trans: r, keys: b.slice(y, y + v), cache: "immutable" }).then((E) => {
|
|
12733
|
+
const C = [], $ = [], B = u ? [] : null, D = [];
|
|
12734
|
+
for (let w = 0; w < v; ++w) {
|
|
12735
|
+
const P = E[w], k = { value: Si(P), primKey: b[y + w] };
|
|
12736
|
+
i.call(k, k.value, k) !== !1 && (k.value == null ? D.push(b[y + w]) : u || qe(c(P), c(k.value)) === 0 ? ($.push(k.value), u && B.push(b[y + w])) : (D.push(b[y + w]), C.push(k.value)));
|
|
12737
12737
|
}
|
|
12738
12738
|
const j = Xn(n) && n.limit === 1 / 0 && (typeof e != "function" || e === ua) && { index: n.index, range: n.range };
|
|
12739
|
-
return Promise.resolve(C.length > 0 && a.mutate({ trans: r, type: "add", values: C }).then((
|
|
12740
|
-
for (let
|
|
12741
|
-
|
|
12742
|
-
p(C.length,
|
|
12743
|
-
})).then(() => (
|
|
12739
|
+
return Promise.resolve(C.length > 0 && a.mutate({ trans: r, type: "add", values: C }).then((w) => {
|
|
12740
|
+
for (let P in w.failures)
|
|
12741
|
+
D.splice(parseInt(P), 1);
|
|
12742
|
+
p(C.length, w);
|
|
12743
|
+
})).then(() => ($.length > 0 || j && typeof e == "object") && a.mutate({ trans: r, type: "put", keys: B, values: $, criteria: j, changeSpec: typeof e != "function" && e }).then((w) => p($.length, w))).then(() => (D.length > 0 || j && e === ua) && a.mutate({ trans: r, type: "delete", keys: D, criteria: j }).then((w) => p(D.length, w))).then(() => b.length > y + v && m(y + d));
|
|
12744
12744
|
});
|
|
12745
12745
|
};
|
|
12746
12746
|
return m(0).then(() => {
|
|
12747
12747
|
if (l.length > 0)
|
|
12748
12748
|
throw new os("Error modifying one or more objects", l, f, h);
|
|
12749
|
-
return
|
|
12749
|
+
return b.length;
|
|
12750
12750
|
});
|
|
12751
12751
|
});
|
|
12752
12752
|
});
|
|
@@ -12788,14 +12788,14 @@ function D7(t, e, n, r, i, o) {
|
|
|
12788
12788
|
}
|
|
12789
12789
|
function ro(t, e, n, r) {
|
|
12790
12790
|
var i, o, s, a, u, c, d, l = n.length;
|
|
12791
|
-
if (!n.every((
|
|
12791
|
+
if (!n.every((b) => typeof b == "string"))
|
|
12792
12792
|
return Je(t, n5);
|
|
12793
|
-
function f(
|
|
12793
|
+
function f(b) {
|
|
12794
12794
|
i = /* @__PURE__ */ function(y) {
|
|
12795
12795
|
return y === "next" ? (v) => v.toUpperCase() : (v) => v.toLowerCase();
|
|
12796
|
-
}(
|
|
12796
|
+
}(b), o = /* @__PURE__ */ function(y) {
|
|
12797
12797
|
return y === "next" ? (v) => v.toLowerCase() : (v) => v.toUpperCase();
|
|
12798
|
-
}(
|
|
12798
|
+
}(b), s = b === "next" ? I7 : B7;
|
|
12799
12799
|
var m = n.map(function(y) {
|
|
12800
12800
|
return { lower: o(y), upper: i(y) };
|
|
12801
12801
|
}).sort(function(y, v) {
|
|
@@ -12805,27 +12805,27 @@ function ro(t, e, n, r) {
|
|
|
12805
12805
|
return y.upper;
|
|
12806
12806
|
}), u = m.map(function(y) {
|
|
12807
12807
|
return y.lower;
|
|
12808
|
-
}), c =
|
|
12808
|
+
}), c = b, d = b === "next" ? "" : r;
|
|
12809
12809
|
}
|
|
12810
12810
|
f("next");
|
|
12811
12811
|
var h = new t.Collection(t, () => rn(a[0], u[l - 1] + r));
|
|
12812
|
-
h._ondirectionchange = function(
|
|
12813
|
-
f(
|
|
12812
|
+
h._ondirectionchange = function(b) {
|
|
12813
|
+
f(b);
|
|
12814
12814
|
};
|
|
12815
12815
|
var p = 0;
|
|
12816
|
-
return h._addAlgorithm(function(
|
|
12817
|
-
var v =
|
|
12816
|
+
return h._addAlgorithm(function(b, m, y) {
|
|
12817
|
+
var v = b.key;
|
|
12818
12818
|
if (typeof v != "string")
|
|
12819
12819
|
return !1;
|
|
12820
|
-
var
|
|
12821
|
-
if (e(
|
|
12820
|
+
var E = o(v);
|
|
12821
|
+
if (e(E, u, p))
|
|
12822
12822
|
return !0;
|
|
12823
|
-
for (var C = null,
|
|
12824
|
-
var
|
|
12825
|
-
|
|
12823
|
+
for (var C = null, $ = p; $ < l; ++$) {
|
|
12824
|
+
var B = D7(v, E, a[$], u[$], s, c);
|
|
12825
|
+
B === null && C === null ? p = $ + 1 : (C === null || s(C, B) > 0) && (C = B);
|
|
12826
12826
|
}
|
|
12827
12827
|
return m(C !== null ? function() {
|
|
12828
|
-
|
|
12828
|
+
b.continue(C + d);
|
|
12829
12829
|
} : y), !1;
|
|
12830
12830
|
}), h;
|
|
12831
12831
|
}
|
|
@@ -12927,37 +12927,37 @@ class s5 {
|
|
|
12927
12927
|
return Je(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", Z.InvalidArgument);
|
|
12928
12928
|
const u = !n || n.includeLowers !== !1, c = n && n.includeUppers === !0;
|
|
12929
12929
|
let d, l = i;
|
|
12930
|
-
function f(v,
|
|
12931
|
-
return l(v[0],
|
|
12930
|
+
function f(v, E) {
|
|
12931
|
+
return l(v[0], E[0]);
|
|
12932
12932
|
}
|
|
12933
12933
|
try {
|
|
12934
|
-
d = e.reduce(function(v,
|
|
12935
|
-
let C = 0,
|
|
12936
|
-
for (; C <
|
|
12937
|
-
const
|
|
12938
|
-
if (r(
|
|
12939
|
-
|
|
12934
|
+
d = e.reduce(function(v, E) {
|
|
12935
|
+
let C = 0, $ = v.length;
|
|
12936
|
+
for (; C < $; ++C) {
|
|
12937
|
+
const B = v[C];
|
|
12938
|
+
if (r(E[0], B[1]) < 0 && r(E[1], B[0]) > 0) {
|
|
12939
|
+
B[0] = s(B[0], E[0]), B[1] = a(B[1], E[1]);
|
|
12940
12940
|
break;
|
|
12941
12941
|
}
|
|
12942
12942
|
}
|
|
12943
|
-
return C ===
|
|
12943
|
+
return C === $ && v.push(E), v;
|
|
12944
12944
|
}, []), d.sort(f);
|
|
12945
12945
|
} catch {
|
|
12946
12946
|
return Je(this, Lt);
|
|
12947
12947
|
}
|
|
12948
12948
|
let h = 0;
|
|
12949
|
-
const p = c ? (v) => i(v, d[h][1]) > 0 : (v) => i(v, d[h][1]) >= 0,
|
|
12949
|
+
const p = c ? (v) => i(v, d[h][1]) > 0 : (v) => i(v, d[h][1]) >= 0, b = u ? (v) => o(v, d[h][0]) > 0 : (v) => o(v, d[h][0]) >= 0;
|
|
12950
12950
|
let m = p;
|
|
12951
12951
|
const y = new this.Collection(this, () => rn(d[0][0], d[d.length - 1][1], !u, !c));
|
|
12952
12952
|
return y._ondirectionchange = (v) => {
|
|
12953
|
-
v === "next" ? (m = p, l = i) : (m =
|
|
12954
|
-
}, y._addAlgorithm((v,
|
|
12955
|
-
for (var
|
|
12953
|
+
v === "next" ? (m = p, l = i) : (m = b, l = o), d.sort(f);
|
|
12954
|
+
}, y._addAlgorithm((v, E, C) => {
|
|
12955
|
+
for (var $ = v.key; m($); )
|
|
12956
12956
|
if (++h, h === d.length)
|
|
12957
|
-
return
|
|
12958
|
-
return !!function(
|
|
12959
|
-
return !p(
|
|
12960
|
-
}(
|
|
12957
|
+
return E(C), !1;
|
|
12958
|
+
return !!function(B) {
|
|
12959
|
+
return !p(B) && !b(B);
|
|
12960
|
+
}($) || (this._cmp($, d[h][1]) === 0 || this._cmp($, d[h][0]) === 0 || E(() => {
|
|
12961
12961
|
l === i ? v.continue(d[h][0]) : v.continue(d[h][1]);
|
|
12962
12962
|
}), !1);
|
|
12963
12963
|
}), y;
|
|
@@ -13122,133 +13122,133 @@ function R7(t, e, n) {
|
|
|
13122
13122
|
const { schema: i, hasGetAll: o } = function(u, c) {
|
|
13123
13123
|
const d = Yd(u.objectStoreNames);
|
|
13124
13124
|
return { schema: { name: u.name, tables: d.map((l) => c.objectStore(l)).map((l) => {
|
|
13125
|
-
const { keyPath: f, autoIncrement: h } = l, p = Ue(f),
|
|
13126
|
-
const { name:
|
|
13127
|
-
return m[Qr(
|
|
13125
|
+
const { keyPath: f, autoIncrement: h } = l, p = Ue(f), b = f == null, m = {}, y = { name: l.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: b, compound: p, keyPath: f, autoIncrement: h, unique: !0, extractKey: Su(f) }, indexes: Yd(l.indexNames).map((v) => l.index(v)).map((v) => {
|
|
13126
|
+
const { name: E, unique: C, multiEntry: $, keyPath: B } = v, D = { name: E, compound: Ue(B), keyPath: B, unique: C, multiEntry: $, extractKey: Su(B) };
|
|
13127
|
+
return m[Qr(B)] = D, D;
|
|
13128
13128
|
}), getIndexByKeyPath: (v) => m[Qr(v)] };
|
|
13129
13129
|
return m[":id"] = y.primaryKey, f != null && (m[Qr(f)] = y.primaryKey), y;
|
|
13130
13130
|
}) }, hasGetAll: d.length > 0 && "getAll" in c.objectStore(d[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) };
|
|
13131
13131
|
}(t, n), s = i.tables.map((u) => function(c) {
|
|
13132
13132
|
const d = c.name;
|
|
13133
|
-
return { name: d, schema: c, mutate: function({ trans: l, type: f, keys: h, values: p, range:
|
|
13133
|
+
return { name: d, schema: c, mutate: function({ trans: l, type: f, keys: h, values: p, range: b }) {
|
|
13134
13134
|
return new Promise((m, y) => {
|
|
13135
13135
|
m = ke(m);
|
|
13136
|
-
const v = l.objectStore(d),
|
|
13136
|
+
const v = l.objectStore(d), E = v.keyPath == null, C = f === "put" || f === "add";
|
|
13137
13137
|
if (!C && f !== "delete" && f !== "deleteRange")
|
|
13138
13138
|
throw new Error("Invalid operation type: " + f);
|
|
13139
|
-
const { length:
|
|
13139
|
+
const { length: $ } = h || p || { length: 1 };
|
|
13140
13140
|
if (h && p && h.length !== p.length)
|
|
13141
13141
|
throw new Error("Given keys array must have same length as given values array.");
|
|
13142
|
-
if (
|
|
13142
|
+
if ($ === 0)
|
|
13143
13143
|
return m({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
13144
|
-
let
|
|
13145
|
-
const
|
|
13146
|
-
let
|
|
13147
|
-
const
|
|
13148
|
-
++
|
|
13144
|
+
let B;
|
|
13145
|
+
const D = [], j = [];
|
|
13146
|
+
let w = 0;
|
|
13147
|
+
const P = (I) => {
|
|
13148
|
+
++w, gi(I);
|
|
13149
13149
|
};
|
|
13150
13150
|
if (f === "deleteRange") {
|
|
13151
|
-
if (
|
|
13152
|
-
return m({ numFailures:
|
|
13153
|
-
|
|
13151
|
+
if (b.type === 4)
|
|
13152
|
+
return m({ numFailures: w, failures: j, results: [], lastResult: void 0 });
|
|
13153
|
+
b.type === 3 ? D.push(B = v.clear()) : D.push(B = v.delete(r(b)));
|
|
13154
13154
|
} else {
|
|
13155
|
-
const [
|
|
13155
|
+
const [I, T] = C ? E ? [p, h] : [p, null] : [h, null];
|
|
13156
13156
|
if (C)
|
|
13157
|
-
for (let S = 0; S <
|
|
13158
|
-
|
|
13157
|
+
for (let S = 0; S < $; ++S)
|
|
13158
|
+
D.push(B = T && T[S] !== void 0 ? v[f](I[S], T[S]) : v[f](I[S])), B.onerror = P;
|
|
13159
13159
|
else
|
|
13160
|
-
for (let S = 0; S <
|
|
13161
|
-
|
|
13160
|
+
for (let S = 0; S < $; ++S)
|
|
13161
|
+
D.push(B = v[f](I[S])), B.onerror = P;
|
|
13162
13162
|
}
|
|
13163
|
-
const k = (
|
|
13164
|
-
const
|
|
13165
|
-
|
|
13163
|
+
const k = (I) => {
|
|
13164
|
+
const T = I.target.result;
|
|
13165
|
+
D.forEach((S, _) => S.error != null && (j[_] = S.error)), m({ numFailures: w, failures: j, results: f === "delete" ? h : D.map((S) => S.result), lastResult: T });
|
|
13166
13166
|
};
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
},
|
|
13167
|
+
B.onerror = (I) => {
|
|
13168
|
+
P(I), k(I);
|
|
13169
|
+
}, B.onsuccess = k;
|
|
13170
13170
|
});
|
|
13171
13171
|
}, getMany: ({ trans: l, keys: f }) => new Promise((h, p) => {
|
|
13172
13172
|
h = ke(h);
|
|
13173
|
-
const
|
|
13174
|
-
let v,
|
|
13175
|
-
const
|
|
13176
|
-
const j =
|
|
13177
|
-
y[j._pos] = j.result, ++C ===
|
|
13178
|
-
},
|
|
13179
|
-
for (let
|
|
13180
|
-
f[
|
|
13181
|
-
|
|
13173
|
+
const b = l.objectStore(d), m = f.length, y = new Array(m);
|
|
13174
|
+
let v, E = 0, C = 0;
|
|
13175
|
+
const $ = (D) => {
|
|
13176
|
+
const j = D.target;
|
|
13177
|
+
y[j._pos] = j.result, ++C === E && h(y);
|
|
13178
|
+
}, B = Ct(p);
|
|
13179
|
+
for (let D = 0; D < m; ++D)
|
|
13180
|
+
f[D] != null && (v = b.get(f[D]), v._pos = D, v.onsuccess = $, v.onerror = B, ++E);
|
|
13181
|
+
E === 0 && h(y);
|
|
13182
13182
|
}), get: ({ trans: l, key: f }) => new Promise((h, p) => {
|
|
13183
13183
|
h = ke(h);
|
|
13184
|
-
const
|
|
13185
|
-
|
|
13184
|
+
const b = l.objectStore(d).get(f);
|
|
13185
|
+
b.onsuccess = (m) => h(m.target.result), b.onerror = Ct(p);
|
|
13186
13186
|
}), query: /* @__PURE__ */ function(l) {
|
|
13187
13187
|
return (f) => new Promise((h, p) => {
|
|
13188
13188
|
h = ke(h);
|
|
13189
|
-
const { trans:
|
|
13189
|
+
const { trans: b, values: m, limit: y, query: v } = f, E = y === 1 / 0 ? void 0 : y, { index: C, range: $ } = v, B = b.objectStore(d), D = C.isPrimaryKey ? B : B.index(C.name), j = r($);
|
|
13190
13190
|
if (y === 0)
|
|
13191
13191
|
return h({ result: [] });
|
|
13192
13192
|
if (l) {
|
|
13193
|
-
const
|
|
13194
|
-
|
|
13193
|
+
const w = m ? D.getAll(j, E) : D.getAllKeys(j, E);
|
|
13194
|
+
w.onsuccess = (P) => h({ result: P.target.result }), w.onerror = Ct(p);
|
|
13195
13195
|
} else {
|
|
13196
|
-
let
|
|
13197
|
-
const
|
|
13198
|
-
|
|
13199
|
-
const
|
|
13200
|
-
return
|
|
13201
|
-
},
|
|
13196
|
+
let w = 0;
|
|
13197
|
+
const P = m || !("openKeyCursor" in D) ? D.openCursor(j) : D.openKeyCursor(j), k = [];
|
|
13198
|
+
P.onsuccess = (I) => {
|
|
13199
|
+
const T = P.result;
|
|
13200
|
+
return T ? (k.push(m ? T.value : T.primaryKey), ++w === y ? h({ result: k }) : void T.continue()) : h({ result: k });
|
|
13201
|
+
}, P.onerror = Ct(p);
|
|
13202
13202
|
}
|
|
13203
13203
|
});
|
|
13204
|
-
}(o), openCursor: function({ trans: l, values: f, query: h, reverse: p, unique:
|
|
13204
|
+
}(o), openCursor: function({ trans: l, values: f, query: h, reverse: p, unique: b }) {
|
|
13205
13205
|
return new Promise((m, y) => {
|
|
13206
13206
|
m = ke(m);
|
|
13207
|
-
const { index: v, range:
|
|
13208
|
-
|
|
13209
|
-
const
|
|
13210
|
-
if (!
|
|
13207
|
+
const { index: v, range: E } = h, C = l.objectStore(d), $ = v.isPrimaryKey ? C : C.index(v.name), B = p ? b ? "prevunique" : "prev" : b ? "nextunique" : "next", D = f || !("openKeyCursor" in $) ? $.openCursor(r(E), B) : $.openKeyCursor(r(E), B);
|
|
13208
|
+
D.onerror = Ct(y), D.onsuccess = ke((j) => {
|
|
13209
|
+
const w = D.result;
|
|
13210
|
+
if (!w)
|
|
13211
13211
|
return void m(null);
|
|
13212
|
-
|
|
13213
|
-
const
|
|
13214
|
-
let k =
|
|
13215
|
-
k && (k = k.bind(
|
|
13216
|
-
const
|
|
13212
|
+
w.___id = ++P7, w.done = !1;
|
|
13213
|
+
const P = w.continue.bind(w);
|
|
13214
|
+
let k = w.continuePrimaryKey;
|
|
13215
|
+
k && (k = k.bind(w));
|
|
13216
|
+
const I = w.advance.bind(w), T = () => {
|
|
13217
13217
|
throw new Error("Cursor not stopped");
|
|
13218
13218
|
};
|
|
13219
|
-
|
|
13219
|
+
w.trans = l, w.stop = w.continue = w.continuePrimaryKey = w.advance = () => {
|
|
13220
13220
|
throw new Error("Cursor not started");
|
|
13221
|
-
},
|
|
13221
|
+
}, w.fail = ke(y), w.next = function() {
|
|
13222
13222
|
let S = 1;
|
|
13223
13223
|
return this.start(() => S-- ? this.continue() : this.stop()).then(() => this);
|
|
13224
|
-
},
|
|
13224
|
+
}, w.start = (S) => {
|
|
13225
13225
|
const _ = new Promise((x, M) => {
|
|
13226
|
-
x = ke(x),
|
|
13227
|
-
|
|
13226
|
+
x = ke(x), D.onerror = Ct(M), w.fail = M, w.stop = (F) => {
|
|
13227
|
+
w.stop = w.continue = w.continuePrimaryKey = w.advance = T, x(F);
|
|
13228
13228
|
};
|
|
13229
|
-
}),
|
|
13230
|
-
if (
|
|
13229
|
+
}), A = () => {
|
|
13230
|
+
if (D.result)
|
|
13231
13231
|
try {
|
|
13232
13232
|
S();
|
|
13233
13233
|
} catch (x) {
|
|
13234
|
-
|
|
13234
|
+
w.fail(x);
|
|
13235
13235
|
}
|
|
13236
13236
|
else
|
|
13237
|
-
|
|
13237
|
+
w.done = !0, w.start = () => {
|
|
13238
13238
|
throw new Error("Cursor behind last entry");
|
|
13239
|
-
},
|
|
13239
|
+
}, w.stop();
|
|
13240
13240
|
};
|
|
13241
|
-
return
|
|
13242
|
-
|
|
13243
|
-
}),
|
|
13244
|
-
}, m(
|
|
13241
|
+
return D.onsuccess = ke((x) => {
|
|
13242
|
+
D.onsuccess = A, A();
|
|
13243
|
+
}), w.continue = P, w.continuePrimaryKey = k, w.advance = I, A(), _;
|
|
13244
|
+
}, m(w);
|
|
13245
13245
|
}, y);
|
|
13246
13246
|
});
|
|
13247
13247
|
}, count({ query: l, trans: f }) {
|
|
13248
13248
|
const { index: h, range: p } = l;
|
|
13249
|
-
return new Promise((
|
|
13250
|
-
const y = f.objectStore(d), v = h.isPrimaryKey ? y : y.index(h.name),
|
|
13251
|
-
C.onsuccess = ke((
|
|
13249
|
+
return new Promise((b, m) => {
|
|
13250
|
+
const y = f.objectStore(d), v = h.isPrimaryKey ? y : y.index(h.name), E = r(p), C = E ? v.count(E) : v.count();
|
|
13251
|
+
C.onsuccess = ke(($) => b($.target.result)), C.onerror = Ct(m);
|
|
13252
13252
|
});
|
|
13253
13253
|
} };
|
|
13254
13254
|
}(u)), a = {};
|
|
@@ -13300,55 +13300,55 @@ function L7(t, e, n, r) {
|
|
|
13300
13300
|
ca(n, u, i[u].primKey, i[u].indexes);
|
|
13301
13301
|
}), Tu(t, n), q.follow(() => t.on.populate.fire(o)).catch(s)) : function({ _novip: u }, c, d, l) {
|
|
13302
13302
|
const f = [], h = u._versions;
|
|
13303
|
-
let p = u._dbSchema = Iu(u, u.idbdb, l),
|
|
13303
|
+
let p = u._dbSchema = Iu(u, u.idbdb, l), b = !1;
|
|
13304
13304
|
const m = h.filter((v) => v._cfg.version >= c);
|
|
13305
13305
|
function y() {
|
|
13306
13306
|
return f.length ? q.resolve(f.shift()(d.idbtrans)).then(y) : q.resolve();
|
|
13307
13307
|
}
|
|
13308
13308
|
return m.forEach((v) => {
|
|
13309
13309
|
f.push(() => {
|
|
13310
|
-
const
|
|
13311
|
-
Bu(u,
|
|
13312
|
-
const
|
|
13313
|
-
|
|
13314
|
-
ca(l,
|
|
13315
|
-
}),
|
|
13316
|
-
if (
|
|
13310
|
+
const E = p, C = v._cfg.dbschema;
|
|
13311
|
+
Bu(u, E, l), Bu(u, C, l), p = u._dbSchema = C;
|
|
13312
|
+
const $ = c5(E, C);
|
|
13313
|
+
$.add.forEach((D) => {
|
|
13314
|
+
ca(l, D[0], D[1].primKey, D[1].indexes);
|
|
13315
|
+
}), $.change.forEach((D) => {
|
|
13316
|
+
if (D.recreate)
|
|
13317
13317
|
throw new Z.Upgrade("Not yet support for changing primary key");
|
|
13318
13318
|
{
|
|
13319
|
-
const j = l.objectStore(
|
|
13320
|
-
|
|
13321
|
-
j.deleteIndex(
|
|
13322
|
-
}),
|
|
13319
|
+
const j = l.objectStore(D.name);
|
|
13320
|
+
D.add.forEach((w) => $u(j, w)), D.change.forEach((w) => {
|
|
13321
|
+
j.deleteIndex(w.name), $u(j, w);
|
|
13322
|
+
}), D.del.forEach((w) => j.deleteIndex(w));
|
|
13323
13323
|
}
|
|
13324
13324
|
});
|
|
13325
|
-
const
|
|
13326
|
-
if (
|
|
13327
|
-
Tu(u, l), d._memoizedTables = {},
|
|
13328
|
-
let
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
}), Au(u, [u.Transaction.prototype]), ls(u, [u.Transaction.prototype], Ae(
|
|
13332
|
-
const j = Oc(
|
|
13333
|
-
let
|
|
13325
|
+
const B = v._cfg.contentUpgrade;
|
|
13326
|
+
if (B && v._cfg.version > c) {
|
|
13327
|
+
Tu(u, l), d._memoizedTables = {}, b = !0;
|
|
13328
|
+
let D = jv(C);
|
|
13329
|
+
$.del.forEach((k) => {
|
|
13330
|
+
D[k] = E[k];
|
|
13331
|
+
}), Au(u, [u.Transaction.prototype]), ls(u, [u.Transaction.prototype], Ae(D), D), d.schema = D;
|
|
13332
|
+
const j = Oc(B);
|
|
13333
|
+
let w;
|
|
13334
13334
|
j && $r();
|
|
13335
|
-
const
|
|
13336
|
-
if (
|
|
13335
|
+
const P = q.follow(() => {
|
|
13336
|
+
if (w = B(d), w && j) {
|
|
13337
13337
|
var k = Xt.bind(null, null);
|
|
13338
|
-
|
|
13338
|
+
w.then(k, k);
|
|
13339
13339
|
}
|
|
13340
13340
|
});
|
|
13341
|
-
return
|
|
13341
|
+
return w && typeof w.then == "function" ? q.resolve(w) : P.then(() => w);
|
|
13342
13342
|
}
|
|
13343
|
-
}), f.push((
|
|
13344
|
-
(!
|
|
13345
|
-
[].slice.call(
|
|
13346
|
-
}(v._cfg.dbschema,
|
|
13343
|
+
}), f.push((E) => {
|
|
13344
|
+
(!b || !S7) && function(C, $) {
|
|
13345
|
+
[].slice.call($.db.objectStoreNames).forEach((B) => C[B] == null && $.db.deleteObjectStore(B));
|
|
13346
|
+
}(v._cfg.dbschema, E), Au(u, [u.Transaction.prototype]), ls(u, [u.Transaction.prototype], u._storeNames, u._dbSchema), d.schema = u._dbSchema;
|
|
13347
13347
|
});
|
|
13348
13348
|
}), y().then(() => {
|
|
13349
|
-
var v,
|
|
13350
|
-
|
|
13351
|
-
|
|
13349
|
+
var v, E;
|
|
13350
|
+
E = l, Ae(v = p).forEach((C) => {
|
|
13351
|
+
E.db.objectStoreNames.contains(C) || ca(E, C, v[C].primKey, v[C].indexes);
|
|
13352
13352
|
});
|
|
13353
13353
|
});
|
|
13354
13354
|
}(t, e, o, n).catch(s);
|
|
@@ -13507,24 +13507,24 @@ function j7(t) {
|
|
|
13507
13507
|
const f = t._novip.idbdb = l.result, h = is(f.objectStoreNames);
|
|
13508
13508
|
if (h.length > 0)
|
|
13509
13509
|
try {
|
|
13510
|
-
const
|
|
13510
|
+
const b = f.transaction((p = h).length === 1 ? p[0] : p, "readonly");
|
|
13511
13511
|
e.autoSchema ? function({ _novip: m }, y, v) {
|
|
13512
13512
|
m.verno = y.version / 10;
|
|
13513
|
-
const
|
|
13514
|
-
m._storeNames = is(y.objectStoreNames, 0), ls(m, [m._allTables], Ae(
|
|
13515
|
-
}(t, f,
|
|
13513
|
+
const E = m._dbSchema = Iu(0, y, v);
|
|
13514
|
+
m._storeNames = is(y.objectStoreNames, 0), ls(m, [m._allTables], Ae(E), E);
|
|
13515
|
+
}(t, f, b) : (Bu(t, t._dbSchema, b), function(m, y) {
|
|
13516
13516
|
const v = c5(Iu(0, m.idbdb, y), m._dbSchema);
|
|
13517
|
-
return !(v.add.length || v.change.some((
|
|
13518
|
-
}(t,
|
|
13517
|
+
return !(v.add.length || v.change.some((E) => E.add.length || E.change.length));
|
|
13518
|
+
}(t, b) || console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")), Tu(t, b);
|
|
13519
13519
|
} catch {
|
|
13520
13520
|
}
|
|
13521
13521
|
var p;
|
|
13522
|
-
Jr.push(t), f.onversionchange = ke((
|
|
13523
|
-
e.vcFired = !0, t.on("versionchange").fire(
|
|
13524
|
-
}), f.onclose = ke((
|
|
13525
|
-
t.on("close").fire(
|
|
13526
|
-
}), a && function({ indexedDB:
|
|
13527
|
-
!qc(
|
|
13522
|
+
Jr.push(t), f.onversionchange = ke((b) => {
|
|
13523
|
+
e.vcFired = !0, t.on("versionchange").fire(b);
|
|
13524
|
+
}), f.onclose = ke((b) => {
|
|
13525
|
+
t.on("close").fire(b);
|
|
13526
|
+
}), a && function({ indexedDB: b, IDBKeyRange: m }, y) {
|
|
13527
|
+
!qc(b) && y !== Ps && Hc(b, m).put({ name: y }).catch(pe);
|
|
13528
13528
|
}(t._deps, d), u();
|
|
13529
13529
|
}, c);
|
|
13530
13530
|
}))]).then(() => (i(), e.onReadyBeingFired = [], q.resolve(Du(() => t.on.ready.fire(t.vip))).then(function u() {
|
|
@@ -13598,7 +13598,7 @@ const z7 = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create:
|
|
|
13598
13598
|
return { ...t, table(e) {
|
|
13599
13599
|
const n = t.table(e), { schema: r } = n, i = {}, o = [];
|
|
13600
13600
|
function s(c, d, l) {
|
|
13601
|
-
const f = Qr(c), h = i[f] = i[f] || [], p = c == null ? 0 : typeof c == "string" ? 1 : c.length,
|
|
13601
|
+
const f = Qr(c), h = i[f] = i[f] || [], p = c == null ? 0 : typeof c == "string" ? 1 : c.length, b = d > 0, m = { ...l, isVirtual: b, keyTail: d, keyLength: p, extractKey: Su(c), unique: !b && l.unique };
|
|
13602
13602
|
return h.push(m), m.isPrimaryKey || o.push(m), p > 1 && s(p === 2 ? c[0] : c.slice(0, p - 1), d + 1, l), h.sort((y, v) => y.keyTail - v.keyTail), m;
|
|
13603
13603
|
}
|
|
13604
13604
|
const a = s(r.primaryKey.keyPath, 0, r.primaryKey);
|
|
@@ -13616,13 +13616,13 @@ const z7 = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create:
|
|
|
13616
13616
|
} }, count: (c) => n.count(u(c)), query: (c) => n.query(u(c)), openCursor(c) {
|
|
13617
13617
|
const { keyTail: d, isVirtual: l, keyLength: f } = c.query.index;
|
|
13618
13618
|
return l ? n.openCursor(u(c)).then((h) => h && function(p) {
|
|
13619
|
-
return Object.create(p, { continue: { value: function(
|
|
13620
|
-
|
|
13621
|
-
} }, continuePrimaryKey: { value(
|
|
13622
|
-
p.continuePrimaryKey(io(
|
|
13619
|
+
return Object.create(p, { continue: { value: function(b) {
|
|
13620
|
+
b != null ? p.continue(io(b, c.reverse ? t.MAX_KEY : t.MIN_KEY, d)) : c.unique ? p.continue(p.key.slice(0, f).concat(c.reverse ? t.MIN_KEY : t.MAX_KEY, d)) : p.continue();
|
|
13621
|
+
} }, continuePrimaryKey: { value(b, m) {
|
|
13622
|
+
p.continuePrimaryKey(io(b, t.MAX_KEY, d), m);
|
|
13623
13623
|
} }, primaryKey: { get: () => p.primaryKey }, key: { get() {
|
|
13624
|
-
const
|
|
13625
|
-
return f === 1 ?
|
|
13624
|
+
const b = p.key;
|
|
13625
|
+
return f === 1 ? b[0] : b.slice(0, f);
|
|
13626
13626
|
} }, value: { get: () => p.value } });
|
|
13627
13627
|
}(h)) : n.openCursor(c);
|
|
13628
13628
|
} };
|
|
@@ -13669,43 +13669,43 @@ const H7 = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: (t) =>
|
|
|
13669
13669
|
}
|
|
13670
13670
|
return n.mutate(i);
|
|
13671
13671
|
function c(l) {
|
|
13672
|
-
const f = K.trans, h = l.keys || function(p,
|
|
13673
|
-
return
|
|
13672
|
+
const f = K.trans, h = l.keys || function(p, b) {
|
|
13673
|
+
return b.type === "delete" ? b.keys : b.keys || b.values.map(p.extractKey);
|
|
13674
13674
|
}(r, l);
|
|
13675
13675
|
if (!h)
|
|
13676
13676
|
throw new Error("Keys missing");
|
|
13677
|
-
return (l = l.type === "add" || l.type === "put" ? { ...l, keys: h } : { ...l }).type !== "delete" && (l.values = [...l.values]), l.keys && (l.keys = [...l.keys]), function(p,
|
|
13678
|
-
return
|
|
13677
|
+
return (l = l.type === "add" || l.type === "put" ? { ...l, keys: h } : { ...l }).type !== "delete" && (l.values = [...l.values]), l.keys && (l.keys = [...l.keys]), function(p, b, m) {
|
|
13678
|
+
return b.type === "add" ? Promise.resolve([]) : p.getMany({ trans: b.trans, keys: m, cache: "immutable" });
|
|
13679
13679
|
}(n, l, h).then((p) => {
|
|
13680
|
-
const
|
|
13681
|
-
const v = p[y],
|
|
13680
|
+
const b = h.map((m, y) => {
|
|
13681
|
+
const v = p[y], E = { onerror: null, onsuccess: null };
|
|
13682
13682
|
if (l.type === "delete")
|
|
13683
|
-
s.fire.call(
|
|
13683
|
+
s.fire.call(E, m, v, f);
|
|
13684
13684
|
else if (l.type === "add" || v === void 0) {
|
|
13685
|
-
const C = a.fire.call(
|
|
13685
|
+
const C = a.fire.call(E, m, l.values[y], f);
|
|
13686
13686
|
m == null && C != null && (m = C, l.keys[y] = m, r.outbound || gt(l.values[y], r.keyPath, m));
|
|
13687
13687
|
} else {
|
|
13688
|
-
const C = Gc(v, l.values[y]),
|
|
13689
|
-
if (
|
|
13690
|
-
const
|
|
13691
|
-
Object.keys(
|
|
13692
|
-
st(
|
|
13688
|
+
const C = Gc(v, l.values[y]), $ = u.fire.call(E, C, m, v, f);
|
|
13689
|
+
if ($) {
|
|
13690
|
+
const B = l.values[y];
|
|
13691
|
+
Object.keys($).forEach((D) => {
|
|
13692
|
+
st(B, D) ? B[D] = $[D] : gt(B, D, $[D]);
|
|
13693
13693
|
});
|
|
13694
13694
|
}
|
|
13695
13695
|
}
|
|
13696
|
-
return
|
|
13696
|
+
return E;
|
|
13697
13697
|
});
|
|
13698
|
-
return n.mutate(l).then(({ failures: m, results: y, numFailures: v, lastResult:
|
|
13698
|
+
return n.mutate(l).then(({ failures: m, results: y, numFailures: v, lastResult: E }) => {
|
|
13699
13699
|
for (let C = 0; C < h.length; ++C) {
|
|
13700
|
-
const
|
|
13701
|
-
|
|
13700
|
+
const $ = y ? y[C] : h[C], B = b[C];
|
|
13701
|
+
$ == null ? B.onerror && B.onerror(m[C]) : B.onsuccess && B.onsuccess(l.type === "put" && p[C] ? l.values[C] : $);
|
|
13702
13702
|
}
|
|
13703
|
-
return { failures: m, results: y, numFailures: v, lastResult:
|
|
13704
|
-
}).catch((m) => (
|
|
13703
|
+
return { failures: m, results: y, numFailures: v, lastResult: E };
|
|
13704
|
+
}).catch((m) => (b.forEach((y) => y.onerror && y.onerror(m)), Promise.reject(m)));
|
|
13705
13705
|
});
|
|
13706
13706
|
}
|
|
13707
13707
|
function d(l, f, h) {
|
|
13708
|
-
return n.query({ trans: l, values: !1, query: { index: r, range: f }, limit: h }).then(({ result: p }) => c({ type: "delete", keys: p, trans: l }).then((
|
|
13708
|
+
return n.query({ trans: l, values: !1, query: { index: r, range: f }, limit: h }).then(({ result: p }) => c({ type: "delete", keys: p, trans: l }).then((b) => b.numFailures > 0 ? Promise.reject(b.failures[0]) : p.length < h ? { failures: [], numFailures: 0, lastResult: void 0 } : d(l, { ...f, lower: p[p.length - 1], lowerOpen: !0 }, h)));
|
|
13709
13709
|
}
|
|
13710
13710
|
} };
|
|
13711
13711
|
} }) };
|
|
@@ -13829,66 +13829,66 @@ const Y7 = { stack: "dbcore", level: 0, create: (t) => {
|
|
|
13829
13829
|
const e = t.schema.name, n = new qt(t.MIN_KEY, t.MAX_KEY);
|
|
13830
13830
|
return { ...t, table: (r) => {
|
|
13831
13831
|
const i = t.table(r), { schema: o } = i, { primaryKey: s } = o, { extractKey: a, outbound: u } = s, c = { ...i, mutate: (f) => {
|
|
13832
|
-
const h = f.trans, p = h.mutatedParts || (h.mutatedParts = {}),
|
|
13833
|
-
const
|
|
13834
|
-
return p[
|
|
13835
|
-
}, m =
|
|
13836
|
-
let [
|
|
13837
|
-
const
|
|
13838
|
-
return i.mutate(f).then((
|
|
13839
|
-
if (Ue(
|
|
13840
|
-
v !== "delete" && (
|
|
13841
|
-
const
|
|
13842
|
-
|
|
13843
|
-
function
|
|
13844
|
-
const S = j(
|
|
13832
|
+
const h = f.trans, p = h.mutatedParts || (h.mutatedParts = {}), b = (B) => {
|
|
13833
|
+
const D = `idb://${e}/${r}/${B}`;
|
|
13834
|
+
return p[D] || (p[D] = new qt());
|
|
13835
|
+
}, m = b(""), y = b(":dels"), { type: v } = f;
|
|
13836
|
+
let [E, C] = f.type === "deleteRange" ? [f.range] : f.type === "delete" ? [f.keys] : f.values.length < 50 ? [[], f.values] : [];
|
|
13837
|
+
const $ = f.trans._cache;
|
|
13838
|
+
return i.mutate(f).then((B) => {
|
|
13839
|
+
if (Ue(E)) {
|
|
13840
|
+
v !== "delete" && (E = B.results), m.addKeys(E);
|
|
13841
|
+
const D = d5(E, $);
|
|
13842
|
+
D || v === "add" || y.addKeys(E), (D || C) && function(j, w, P, k) {
|
|
13843
|
+
function I(T) {
|
|
13844
|
+
const S = j(T.name || "");
|
|
13845
13845
|
function _(x) {
|
|
13846
|
-
return x != null ?
|
|
13846
|
+
return x != null ? T.extractKey(x) : null;
|
|
13847
13847
|
}
|
|
13848
|
-
const
|
|
13849
|
-
(
|
|
13850
|
-
const F =
|
|
13851
|
-
qe(F, z) !== 0 && (F != null &&
|
|
13848
|
+
const A = (x) => T.multiEntry && Ue(x) ? x.forEach((M) => S.addKey(M)) : S.addKey(x);
|
|
13849
|
+
(P || k).forEach((x, M) => {
|
|
13850
|
+
const F = P && _(P[M]), z = k && _(k[M]);
|
|
13851
|
+
qe(F, z) !== 0 && (F != null && A(F), z != null && A(z));
|
|
13852
13852
|
});
|
|
13853
13853
|
}
|
|
13854
|
-
|
|
13855
|
-
}(
|
|
13856
|
-
} else if (
|
|
13857
|
-
const
|
|
13858
|
-
y.add(
|
|
13854
|
+
w.indexes.forEach(I);
|
|
13855
|
+
}(b, o, D, C);
|
|
13856
|
+
} else if (E) {
|
|
13857
|
+
const D = { from: E.lower, to: E.upper };
|
|
13858
|
+
y.add(D), m.add(D);
|
|
13859
13859
|
} else
|
|
13860
|
-
m.add(n), y.add(n), o.indexes.forEach((
|
|
13861
|
-
return
|
|
13860
|
+
m.add(n), y.add(n), o.indexes.forEach((D) => b(D.name).add(n));
|
|
13861
|
+
return B;
|
|
13862
13862
|
});
|
|
13863
13863
|
} }, d = ({ query: { index: f, range: h } }) => {
|
|
13864
|
-
var p,
|
|
13865
|
-
return [f, new qt((p = h.lower) !== null && p !== void 0 ? p : t.MIN_KEY, (
|
|
13864
|
+
var p, b;
|
|
13865
|
+
return [f, new qt((p = h.lower) !== null && p !== void 0 ? p : t.MIN_KEY, (b = h.upper) !== null && b !== void 0 ? b : t.MAX_KEY)];
|
|
13866
13866
|
}, l = { get: (f) => [s, new qt(f.key)], getMany: (f) => [s, new qt().addKeys(f.keys)], count: d, query: d, openCursor: d };
|
|
13867
13867
|
return Ae(l).forEach((f) => {
|
|
13868
13868
|
c[f] = function(h) {
|
|
13869
13869
|
const { subscr: p } = K;
|
|
13870
13870
|
if (p) {
|
|
13871
|
-
const
|
|
13872
|
-
const
|
|
13873
|
-
return p[
|
|
13874
|
-
}, m =
|
|
13875
|
-
if (
|
|
13871
|
+
const b = (C) => {
|
|
13872
|
+
const $ = `idb://${e}/${r}/${C}`;
|
|
13873
|
+
return p[$] || (p[$] = new qt());
|
|
13874
|
+
}, m = b(""), y = b(":dels"), [v, E] = l[f](h);
|
|
13875
|
+
if (b(v.name || "").add(E), !v.isPrimaryKey) {
|
|
13876
13876
|
if (f !== "count") {
|
|
13877
13877
|
const C = f === "query" && u && h.values && i.query({ ...h, values: !1 });
|
|
13878
|
-
return i[f].apply(this, arguments).then((
|
|
13878
|
+
return i[f].apply(this, arguments).then(($) => {
|
|
13879
13879
|
if (f === "query") {
|
|
13880
13880
|
if (u && h.values)
|
|
13881
|
-
return C.then(({ result:
|
|
13882
|
-
const
|
|
13883
|
-
h.values ? m.addKeys(
|
|
13881
|
+
return C.then(({ result: D }) => (m.addKeys(D), $));
|
|
13882
|
+
const B = h.values ? $.result.map(a) : $.result;
|
|
13883
|
+
h.values ? m.addKeys(B) : y.addKeys(B);
|
|
13884
13884
|
} else if (f === "openCursor") {
|
|
13885
|
-
const
|
|
13886
|
-
return
|
|
13887
|
-
const j =
|
|
13885
|
+
const B = $, D = h.values;
|
|
13886
|
+
return B && Object.create(B, { key: { get: () => (y.addKey(B.primaryKey), B.key) }, primaryKey: { get() {
|
|
13887
|
+
const j = B.primaryKey;
|
|
13888
13888
|
return y.addKey(j), j;
|
|
13889
|
-
} }, value: { get: () => (
|
|
13889
|
+
} }, value: { get: () => (D && m.addKey(B.primaryKey), B.value) } });
|
|
13890
13890
|
}
|
|
13891
|
-
return
|
|
13891
|
+
return $;
|
|
13892
13892
|
});
|
|
13893
13893
|
}
|
|
13894
13894
|
y.add(n);
|
|
@@ -14143,21 +14143,21 @@ function V7(t) {
|
|
|
14143
14143
|
i.start && i.start(c);
|
|
14144
14144
|
let d = !1, l = !1;
|
|
14145
14145
|
function f() {
|
|
14146
|
-
return Ae(u).some((
|
|
14146
|
+
return Ae(u).some((b) => a[b] && G7(a[b], u[b]));
|
|
14147
14147
|
}
|
|
14148
|
-
const h = (
|
|
14149
|
-
f5(a,
|
|
14148
|
+
const h = (b) => {
|
|
14149
|
+
f5(a, b), f() && p();
|
|
14150
14150
|
}, p = () => {
|
|
14151
14151
|
if (d || s)
|
|
14152
14152
|
return;
|
|
14153
14153
|
a = {};
|
|
14154
|
-
const
|
|
14154
|
+
const b = {}, m = function(y) {
|
|
14155
14155
|
o && $r();
|
|
14156
|
-
const v = () => yn(t, { subscr: y, trans: null }),
|
|
14157
|
-
return o &&
|
|
14158
|
-
}(
|
|
14156
|
+
const v = () => yn(t, { subscr: y, trans: null }), E = K.trans ? Ir(K.transless, v) : v();
|
|
14157
|
+
return o && E.then(Xt, Xt), E;
|
|
14158
|
+
}(b);
|
|
14159
14159
|
l || (_n(bi, h), l = !0), d = !0, Promise.resolve(m).then((y) => {
|
|
14160
|
-
n = !0, e = y, d = !1, s || (f() ? p() : (a = {}, u =
|
|
14160
|
+
n = !0, e = y, d = !1, s || (f() ? p() : (a = {}, u = b, i.next && i.next(y)));
|
|
14161
14161
|
}, (y) => {
|
|
14162
14162
|
d = !1, n = !1, i.error && i.error(y), c.unsubscribe();
|
|
14163
14163
|
});
|
|
@@ -14298,15 +14298,15 @@ const Z7 = (t, e, n) => {
|
|
|
14298
14298
|
reset: []
|
|
14299
14299
|
}, o = () => {
|
|
14300
14300
|
var p;
|
|
14301
|
-
r = new Map(Object.entries((p = la(t)) !== null && p !== void 0 ? p : {})), i.reset.forEach((
|
|
14301
|
+
r = new Map(Object.entries((p = la(t)) !== null && p !== void 0 ? p : {})), i.reset.forEach((b) => b());
|
|
14302
14302
|
}, s = () => {
|
|
14303
14303
|
i.dispose.forEach((p) => p()), o();
|
|
14304
|
-
}, a = (p) => (i.get.forEach((
|
|
14304
|
+
}, a = (p) => (i.get.forEach((b) => b(p)), r.get(p)), u = (p, b) => {
|
|
14305
14305
|
const m = r.get(p);
|
|
14306
|
-
e(
|
|
14306
|
+
e(b, m, p) && (r.set(p, b), i.set.forEach((y) => y(p, b, m)));
|
|
14307
14307
|
}, c = typeof Proxy > "u" ? {} : new Proxy(n, {
|
|
14308
|
-
get(p,
|
|
14309
|
-
return a(
|
|
14308
|
+
get(p, b) {
|
|
14309
|
+
return a(b);
|
|
14310
14310
|
},
|
|
14311
14311
|
ownKeys(p) {
|
|
14312
14312
|
return Array.from(r.keys());
|
|
@@ -14317,37 +14317,37 @@ const Z7 = (t, e, n) => {
|
|
|
14317
14317
|
configurable: !0
|
|
14318
14318
|
};
|
|
14319
14319
|
},
|
|
14320
|
-
has(p,
|
|
14321
|
-
return r.has(
|
|
14320
|
+
has(p, b) {
|
|
14321
|
+
return r.has(b);
|
|
14322
14322
|
},
|
|
14323
|
-
set(p,
|
|
14324
|
-
return u(
|
|
14323
|
+
set(p, b, m) {
|
|
14324
|
+
return u(b, m), !0;
|
|
14325
14325
|
}
|
|
14326
|
-
}), d = (p,
|
|
14327
|
-
t9(i[p],
|
|
14326
|
+
}), d = (p, b) => (i[p].push(b), () => {
|
|
14327
|
+
t9(i[p], b);
|
|
14328
14328
|
});
|
|
14329
14329
|
return {
|
|
14330
14330
|
state: c,
|
|
14331
14331
|
get: a,
|
|
14332
14332
|
set: u,
|
|
14333
14333
|
on: d,
|
|
14334
|
-
onChange: (p,
|
|
14335
|
-
const m = d("set", (v,
|
|
14336
|
-
v === p &&
|
|
14337
|
-
}), y = d("reset", () =>
|
|
14334
|
+
onChange: (p, b) => {
|
|
14335
|
+
const m = d("set", (v, E) => {
|
|
14336
|
+
v === p && b(E);
|
|
14337
|
+
}), y = d("reset", () => b(la(t)[p]));
|
|
14338
14338
|
return () => {
|
|
14339
14339
|
m(), y();
|
|
14340
14340
|
};
|
|
14341
14341
|
},
|
|
14342
14342
|
use: (...p) => {
|
|
14343
|
-
const
|
|
14344
|
-
return () =>
|
|
14343
|
+
const b = p.reduce((m, y) => (y.set && m.push(d("set", y.set)), y.get && m.push(d("get", y.get)), y.reset && m.push(d("reset", y.reset)), y.dispose && m.push(d("dispose", y.dispose)), m), []);
|
|
14344
|
+
return () => b.forEach((m) => m());
|
|
14345
14345
|
},
|
|
14346
14346
|
dispose: s,
|
|
14347
14347
|
reset: o,
|
|
14348
14348
|
forceUpdate: (p) => {
|
|
14349
|
-
const
|
|
14350
|
-
i.set.forEach((m) => m(p,
|
|
14349
|
+
const b = r.get(p);
|
|
14350
|
+
i.set.forEach((m) => m(p, b, b));
|
|
14351
14351
|
}
|
|
14352
14352
|
};
|
|
14353
14353
|
}, t9 = (t, e) => {
|
|
@@ -14570,7 +14570,7 @@ class i9 {
|
|
|
14570
14570
|
return this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("confirmedEventInfo", void 0), e;
|
|
14571
14571
|
}
|
|
14572
14572
|
async bookTimeslot(e) {
|
|
14573
|
-
var
|
|
14573
|
+
var E;
|
|
14574
14574
|
this.schedulerStore.set("isLoading", !0);
|
|
14575
14575
|
const { selectedTimeslot: n, selectedTimezone: r, bookingInfo: i, selectedLanguage: o } = this.schedulerStore.state;
|
|
14576
14576
|
if (!e && !i)
|
|
@@ -14578,40 +14578,44 @@ class i9 {
|
|
|
14578
14578
|
const s = (e == null ? void 0 : e.timeslot) || n;
|
|
14579
14579
|
if (!s)
|
|
14580
14580
|
return { error: this.errors.component(R.t("createBookingErrorTitle")).no_timeslot_selected() };
|
|
14581
|
-
const a = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : r;
|
|
14581
|
+
const a = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : r, u = o || "en-US";
|
|
14582
14582
|
if (!a)
|
|
14583
14583
|
return { error: this.errors.component(R.t("createBookingErrorTitle")).no_timezone_selected() };
|
|
14584
|
-
const
|
|
14585
|
-
let
|
|
14586
|
-
if (
|
|
14587
|
-
const
|
|
14588
|
-
for (let
|
|
14589
|
-
if (
|
|
14590
|
-
|
|
14584
|
+
const c = this.schedulerStore.get("availabilityOrderEmails");
|
|
14585
|
+
let d = "";
|
|
14586
|
+
if (c.length > 0) {
|
|
14587
|
+
const C = (s == null ? void 0 : s.emails) || [];
|
|
14588
|
+
for (let $ = 0; $ < c.length; $++)
|
|
14589
|
+
if (C.includes(c[$])) {
|
|
14590
|
+
d = c[$];
|
|
14591
14591
|
break;
|
|
14592
14592
|
}
|
|
14593
14593
|
}
|
|
14594
|
-
const
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14594
|
+
const l = {};
|
|
14595
|
+
Object.entries((i == null ? void 0 : i.additionalFields) || {}).forEach(([C, $]) => {
|
|
14596
|
+
l[C] = $.value;
|
|
14597
|
+
});
|
|
14598
|
+
const f = e ? e == null ? void 0 : e.primaryParticipant : i == null ? void 0 : i.primaryParticipant, h = e ? (e == null ? void 0 : e.guests) || [] : (i == null ? void 0 : i.guests) || [], p = e ? e == null ? void 0 : e.additionalFields : l, b = this.getHeaders(), y = `/v3/scheduling/bookings${!this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : ""}`, v = await this.makeAPIRequest(decodeURIComponent(y), "POST", JSON.stringify({
|
|
14599
|
+
participants: d ? [{ email: d }] : void 0,
|
|
14600
|
+
additional_fields: p,
|
|
14601
|
+
additional_guests: h,
|
|
14602
|
+
guest: { ...f },
|
|
14599
14603
|
start_time: s.start_time.getTime() / 1e3,
|
|
14600
14604
|
end_time: s.end_time.getTime() / 1e3,
|
|
14601
14605
|
timezone: a,
|
|
14602
|
-
email_language: this.getTwoLetterLanguageCode(
|
|
14603
|
-
}),
|
|
14604
|
-
if ("error" in
|
|
14606
|
+
email_language: this.getTwoLetterLanguageCode(u)
|
|
14607
|
+
}), b);
|
|
14608
|
+
if ("error" in v) {
|
|
14605
14609
|
this.schedulerStore.set("isLoading", !1);
|
|
14606
|
-
const
|
|
14607
|
-
let
|
|
14608
|
-
if (
|
|
14609
|
-
const
|
|
14610
|
-
|
|
14610
|
+
const C = (E = v.error) == null ? void 0 : E.type;
|
|
14611
|
+
let $ = v.error;
|
|
14612
|
+
if (C && C in this.errors.api("Create Booking")) {
|
|
14613
|
+
const B = this.getErrorMessage($);
|
|
14614
|
+
$ = this.errors.api("Create Booking")[C](B);
|
|
14611
14615
|
}
|
|
14612
|
-
return { error:
|
|
14616
|
+
return { error: $ };
|
|
14613
14617
|
}
|
|
14614
|
-
return "data" in
|
|
14618
|
+
return "data" in v && this.schedulerStore.set("eventInfo", v == null ? void 0 : v.data), this.schedulerStore.set("isLoading", !1), v;
|
|
14615
14619
|
}
|
|
14616
14620
|
async getUISettings() {
|
|
14617
14621
|
var o;
|
|
@@ -14642,7 +14646,7 @@ class i9 {
|
|
|
14642
14646
|
return Math.min(i, e);
|
|
14643
14647
|
}
|
|
14644
14648
|
async getAvailability(e = 0, n = 0) {
|
|
14645
|
-
var f, h, p,
|
|
14649
|
+
var f, h, p, b;
|
|
14646
14650
|
this.schedulerStore.set("isLoading", !0);
|
|
14647
14651
|
const r = new URLSearchParams(), i = /* @__PURE__ */ new Date(), o = i.getTime();
|
|
14648
14652
|
if (n && n < o / 1e3)
|
|
@@ -14672,13 +14676,13 @@ class i9 {
|
|
|
14672
14676
|
return { error: y };
|
|
14673
14677
|
}
|
|
14674
14678
|
if ("data" in l) {
|
|
14675
|
-
const y = (((p = (h = l.data) == null ? void 0 : h.time_slots) == null ? void 0 : p.map((
|
|
14676
|
-
...
|
|
14677
|
-
start_time: new Date(
|
|
14678
|
-
end_time: new Date(
|
|
14679
|
-
}))) || []).filter((
|
|
14679
|
+
const y = (((p = (h = l.data) == null ? void 0 : h.time_slots) == null ? void 0 : p.map((E) => ({
|
|
14680
|
+
...E,
|
|
14681
|
+
start_time: new Date(E.start_time * 1e3),
|
|
14682
|
+
end_time: new Date(E.end_time * 1e3)
|
|
14683
|
+
}))) || []).filter((E) => E.start_time.getTime() > o);
|
|
14680
14684
|
this.schedulerStore.set("availability", y);
|
|
14681
|
-
const v = ((
|
|
14685
|
+
const v = ((b = l.data) == null ? void 0 : b.order) || [];
|
|
14682
14686
|
this.schedulerStore.set("availabilityOrderEmails", v);
|
|
14683
14687
|
}
|
|
14684
14688
|
return this.schedulerStore.set("isLoading", !1), l;
|
|
@@ -14706,7 +14710,7 @@ class i9 {
|
|
|
14706
14710
|
}), this.schedulerStore.set("rescheduleBookingId", ""), this.schedulerStore.set("isLoading", !1), s;
|
|
14707
14711
|
}
|
|
14708
14712
|
async rescheduleBooking(e, n) {
|
|
14709
|
-
var
|
|
14713
|
+
var P;
|
|
14710
14714
|
if (this.schedulerStore.set("isLoading", !0), !e)
|
|
14711
14715
|
return { error: this.errors.component(R.t("rescheduleBookingErrorTitle")).no_booking_id() };
|
|
14712
14716
|
const r = this.errors.api(R.t("rescheduleBookingErrorTitle")), i = this.errors.component(R.t("rescheduleBookingErrorTitle")), { bookingInfo: o, selectedTimeslot: s, selectedTimezone: a, selectedLanguage: u } = this.schedulerStore.state, { startTime: c, endTime: d, timezone: l } = n, f = c || (s == null ? void 0 : s.start_time);
|
|
@@ -14716,50 +14720,54 @@ class i9 {
|
|
|
14716
14720
|
if (!h)
|
|
14717
14721
|
return { error: i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
|
|
14718
14722
|
const p = this.schedulerStore.get("availabilityOrderEmails");
|
|
14719
|
-
let
|
|
14723
|
+
let b = "";
|
|
14720
14724
|
if (p.length > 0) {
|
|
14721
|
-
const
|
|
14722
|
-
for (let
|
|
14723
|
-
if (
|
|
14724
|
-
|
|
14725
|
+
const k = (s == null ? void 0 : s.emails) || [];
|
|
14726
|
+
for (let I = 0; I < p.length; I++)
|
|
14727
|
+
if (k.includes(p[I])) {
|
|
14728
|
+
b = p[I];
|
|
14725
14729
|
break;
|
|
14726
14730
|
}
|
|
14727
14731
|
}
|
|
14728
14732
|
const m = l || a;
|
|
14729
14733
|
if (!m)
|
|
14730
14734
|
return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
|
|
14731
|
-
const y =
|
|
14735
|
+
const y = {};
|
|
14736
|
+
Object.entries((o == null ? void 0 : o.additionalFields) || {}).forEach(([k, I]) => {
|
|
14737
|
+
y[k] = I.value;
|
|
14738
|
+
});
|
|
14739
|
+
const v = n ? n == null ? void 0 : n.primaryParticipant : o == null ? void 0 : o.primaryParticipant, E = n ? (n == null ? void 0 : n.guests) || [] : (o == null ? void 0 : o.guests) || [], C = n ? n == null ? void 0 : n.additionalFields : y, $ = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", B = `/v3/scheduling/bookings/${e}${$}`, D = this.getHeaders(), j = await this.makeAPIRequest(decodeURIComponent(B), "PATCH", JSON.stringify({
|
|
14732
14740
|
start_time: f.getTime() / 1e3,
|
|
14733
14741
|
end_time: h.getTime() / 1e3,
|
|
14734
14742
|
timezone: m,
|
|
14735
|
-
additional_fields:
|
|
14736
|
-
guest: { ...
|
|
14737
|
-
additional_guests:
|
|
14738
|
-
participants:
|
|
14743
|
+
additional_fields: C,
|
|
14744
|
+
guest: { ...v },
|
|
14745
|
+
additional_guests: E,
|
|
14746
|
+
participants: b ? [{ email: b }] : void 0,
|
|
14739
14747
|
email_language: this.getTwoLetterLanguageCode(u)
|
|
14740
|
-
}),
|
|
14741
|
-
if ("error" in
|
|
14748
|
+
}), D);
|
|
14749
|
+
if ("error" in j) {
|
|
14742
14750
|
this.schedulerStore.set("isLoading", !1);
|
|
14743
|
-
const
|
|
14744
|
-
let
|
|
14745
|
-
if (
|
|
14746
|
-
const
|
|
14747
|
-
|
|
14751
|
+
const k = (P = j.error) == null ? void 0 : P.type;
|
|
14752
|
+
let I = j.error;
|
|
14753
|
+
if (k && k in r) {
|
|
14754
|
+
const T = this.getErrorMessage(I);
|
|
14755
|
+
I = r[k](T);
|
|
14748
14756
|
}
|
|
14749
|
-
return { error:
|
|
14757
|
+
return { error: I };
|
|
14750
14758
|
}
|
|
14751
|
-
const
|
|
14752
|
-
if ("data" in
|
|
14753
|
-
this.schedulerStore.set("eventInfo",
|
|
14754
|
-
else if (
|
|
14755
|
-
this.schedulerStore.set("eventInfo",
|
|
14759
|
+
const w = this.schedulerStore.get("reschedulingEventInfo");
|
|
14760
|
+
if ("data" in j)
|
|
14761
|
+
this.schedulerStore.set("eventInfo", j == null ? void 0 : j.data);
|
|
14762
|
+
else if (w)
|
|
14763
|
+
this.schedulerStore.set("eventInfo", w);
|
|
14756
14764
|
else {
|
|
14757
|
-
const
|
|
14765
|
+
const k = {
|
|
14758
14766
|
booking_id: e
|
|
14759
14767
|
};
|
|
14760
|
-
this.schedulerStore.set("eventInfo",
|
|
14768
|
+
this.schedulerStore.set("eventInfo", k);
|
|
14761
14769
|
}
|
|
14762
|
-
return this.schedulerStore.set("isLoading", !1),
|
|
14770
|
+
return this.schedulerStore.set("isLoading", !1), j;
|
|
14763
14771
|
}
|
|
14764
14772
|
async updateBooking(e) {
|
|
14765
14773
|
var l;
|
|
@@ -15466,7 +15474,7 @@ const a9 = ".sc-add-circle-icon-h{display:flex}", u9 = a9, c9 = te(class extends
|
|
|
15466
15474
|
super(), this.__registerHost(), this.width = "24", this.height = "25";
|
|
15467
15475
|
}
|
|
15468
15476
|
render() {
|
|
15469
|
-
return
|
|
15477
|
+
return g("svg", { key: "9e690681d1b901e7e3d253077f78686f791649a5", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "790a61b553585cc1f31547f19adadc95a46c5166", d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" }));
|
|
15470
15478
|
}
|
|
15471
15479
|
static get style() {
|
|
15472
15480
|
return u9;
|
|
@@ -15491,7 +15499,7 @@ const l9 = ".wave{display:flex;align-items:center;justify-content:center}.dot{wi
|
|
|
15491
15499
|
super(), this.__registerHost(), this.__attachShadow(), this.width = "15", this.height = "15";
|
|
15492
15500
|
}
|
|
15493
15501
|
render() {
|
|
15494
|
-
return
|
|
15502
|
+
return g("div", { key: "bdc7f9acf0664597d87c4a2cc8917783a13c142e", class: "wave" }, g("div", { key: "15dcde4af03cb76dc4860c26742f97190f9e0cab", class: "dot" }), g("div", { key: "43bb08a9fbc89a1219f6f0b749413f6bca4bd253", class: "dot" }), g("div", { key: "16ca9fed347d7d67869ae4bfdbaecdd4c9bd33d9", class: "dot" }));
|
|
15495
15503
|
}
|
|
15496
15504
|
static get style() {
|
|
15497
15505
|
return d9;
|
|
@@ -15517,7 +15525,7 @@ const h9 = "button.sc-button-component{display:flex;align-items:center;justify-c
|
|
|
15517
15525
|
}
|
|
15518
15526
|
render() {
|
|
15519
15527
|
const e = `button-${this.variant}` + (this.disabled ? " disabled" : "");
|
|
15520
|
-
return
|
|
15528
|
+
return g("button", { key: "2a4e992f2030ebb415320236ea0765802f589b6c", class: e, disabled: this.disabled, type: "type", title: this.tooltip, onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, !!this.isLoading && g("loading-icon", { slot: "icon" }), g("slot", { key: "c7a81cba389b6d0aa8974f7e599fdb84773deeb5" }));
|
|
15521
15529
|
}
|
|
15522
15530
|
static get style() {
|
|
15523
15531
|
return p9;
|
|
@@ -15553,7 +15561,7 @@ const g9 = ".sc-calendar-cancel-icon-h{display:flex}", b9 = g9, y9 = te(class ex
|
|
|
15553
15561
|
super(), this.__registerHost(), this.width = "20", this.height = "20";
|
|
15554
15562
|
}
|
|
15555
15563
|
render() {
|
|
15556
|
-
return
|
|
15564
|
+
return g("svg", { key: "73067881feeacd7becb2872f91f78229996f06dd", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "bed216fd298ad011b68ac073bfd1e8c526855566", d: "M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z", fill: "currentColor" }));
|
|
15557
15565
|
}
|
|
15558
15566
|
static get style() {
|
|
15559
15567
|
return b9;
|
|
@@ -15578,7 +15586,7 @@ const v9 = ".sc-calendar-check-icon-h{display:flex}", _9 = v9, k9 = te(class ext
|
|
|
15578
15586
|
super(), this.__registerHost(), this.width = "20", this.height = "20";
|
|
15579
15587
|
}
|
|
15580
15588
|
render() {
|
|
15581
|
-
return
|
|
15589
|
+
return g("svg", { key: "a5370d8a3a42db8fc9427f05882c22604196d36b", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "92afc634de1e85e89c07ef55b3a0888b4c269831", fill: "currentColor", d: "M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z" }));
|
|
15582
15590
|
}
|
|
15583
15591
|
static get style() {
|
|
15584
15592
|
return _9;
|
|
@@ -15603,7 +15611,7 @@ const x9 = ".sc-calendar-icon-h{display:flex}", w9 = x9, E9 = te(class extends n
|
|
|
15603
15611
|
super(), this.__registerHost(), this.width = "15", this.height = "15";
|
|
15604
15612
|
}
|
|
15605
15613
|
render() {
|
|
15606
|
-
return
|
|
15614
|
+
return g("svg", { key: "39561d399a389e6184f4c64ef06d99a6b8f62f29", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "70b125ef198c0a892da3235a47c9de5649eb7d82", fill: "currentColor", d: "M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z" }));
|
|
15607
15615
|
}
|
|
15608
15616
|
static get style() {
|
|
15609
15617
|
return w9;
|
|
@@ -15648,7 +15656,7 @@ const C9 = '.checkbox-container{--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
15648
15656
|
});
|
|
15649
15657
|
}
|
|
15650
15658
|
render() {
|
|
15651
|
-
return
|
|
15659
|
+
return g("div", { key: "f4dfab5a5da9f9c79424930bfd5497c24dc1bfe5", class: "checkbox-container" }, g("label", { key: "78e192f2eddcfd788ac16e80be3ac0b9c47e6f6a" }, g("input", { key: "6e3aa50fb6542cb134dc5454e9fc0052be22e36f", type: "checkbox", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), g("span", { key: "abbd103b06bf934eff294b443b468e446901c371", class: "checkmark" }), g("slot", { key: "f11d669ba02b705ba7679985e83b91086a17ccc9", name: "label" }, g("span", { key: "1298c44fbbe9ce75638b00ac07e6e83bab1394c2", class: "label" }, this.label))), this.error && g("p", { class: "error" }, this.error));
|
|
15652
15660
|
}
|
|
15653
15661
|
get el() {
|
|
15654
15662
|
return this;
|
|
@@ -15680,7 +15688,7 @@ const A9 = ".sc-checkmark-circle-icon-h{display:flex}", $9 = A9, I9 = te(class e
|
|
|
15680
15688
|
super(), this.__registerHost(), this.width = "20", this.height = "20";
|
|
15681
15689
|
}
|
|
15682
15690
|
render() {
|
|
15683
|
-
return
|
|
15691
|
+
return g("svg", { key: "236437ba0c458e74e9c1c275a2207be0bc767c17", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, g("path", { key: "ba7976c7791f538dc7e4831a083c087b9185613a", fill: "currentColor", d: "M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z" }));
|
|
15684
15692
|
}
|
|
15685
15693
|
static get style() {
|
|
15686
15694
|
return $9;
|
|
@@ -15705,7 +15713,7 @@ const B9 = ".sc-chevron-icon-h{display:flex}", D9 = B9, M9 = te(class extends ne
|
|
|
15705
15713
|
super(), this.__registerHost(), this.width = "24", this.height = "24";
|
|
15706
15714
|
}
|
|
15707
15715
|
render() {
|
|
15708
|
-
return
|
|
15716
|
+
return g("svg", { key: "fb1ba717c31f07393be2b8b0c984e1be9aac2042", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, g("path", { key: "df8820887c1787356ad0727baf34fe0c5b76bbd4", fill: "currentColor", d: "M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z" }));
|
|
15709
15717
|
}
|
|
15710
15718
|
static get style() {
|
|
15711
15719
|
return D9;
|
|
@@ -15730,7 +15738,7 @@ const P9 = ".sc-clock-icon-h{display:flex}", R9 = P9, O9 = te(class extends ne {
|
|
|
15730
15738
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
15731
15739
|
}
|
|
15732
15740
|
render() {
|
|
15733
|
-
return
|
|
15741
|
+
return g("svg", { key: "a43286079781f2fb317a0a7b9d651f3fe7012800", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "434cb947dc4f5a3802cede1bc4bc9ea420faa7a8", d: "M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z", fill: "currentColor" }));
|
|
15734
15742
|
}
|
|
15735
15743
|
static get style() {
|
|
15736
15744
|
return R9;
|
|
@@ -15755,7 +15763,7 @@ const L9 = ".sc-close-icon-h{display:flex}", N9 = L9, F9 = te(class extends ne {
|
|
|
15755
15763
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
15756
15764
|
}
|
|
15757
15765
|
render() {
|
|
15758
|
-
return
|
|
15766
|
+
return g("svg", { key: "ea4c2e95733509b6dec0689e638a25df560567e2", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("g", { key: "49366dc579896a3e8fcfed0c7d3cce7dab209d50", "clip-path": "url(#a)" }, g("path", { key: "57a3efd12ca2c8f019b118f0113172342ddb6354", d: "M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z", fill: "currentColor" })), g("defs", { key: "424636139255dfdcebe6d3dc901c84168c4c713e" }, g("clipPath", { key: "0ebaa728a38c48694e48f1182c1de98bba97ff0d", id: "a" }, g("path", { key: "bfe4ed6e55fe74a819e6d512a0b7e2c018baec14", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
|
|
15759
15767
|
}
|
|
15760
15768
|
static get style() {
|
|
15761
15769
|
return N9;
|
|
@@ -15780,7 +15788,7 @@ const j9 = ".sc-feedback-icon-h{display:flex}", U9 = j9, z9 = te(class extends n
|
|
|
15780
15788
|
super(), this.__registerHost(), this.width = "11", this.height = "14";
|
|
15781
15789
|
}
|
|
15782
15790
|
render() {
|
|
15783
|
-
return
|
|
15791
|
+
return g("svg", { key: "fc5d4aa6d299768c11f13c54218eaf28a45c97df", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("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" }));
|
|
15784
15792
|
}
|
|
15785
15793
|
static get style() {
|
|
15786
15794
|
return U9;
|
|
@@ -15805,7 +15813,7 @@ const q9 = ".sc-globe-icon-h{display:flex}", G9 = q9, Y9 = te(class extends ne {
|
|
|
15805
15813
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
15806
15814
|
}
|
|
15807
15815
|
render() {
|
|
15808
|
-
return
|
|
15816
|
+
return g("svg", { key: "98e808bd1ac6b795bde88c406417bc6c6d591b9a", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, g("path", { key: "7f2bde4ecf31c667198f791c6f8b313d145f4591", d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" }));
|
|
15809
15817
|
}
|
|
15810
15818
|
static get style() {
|
|
15811
15819
|
return G9;
|
|
@@ -15830,7 +15838,7 @@ const K9 = ".sc-info-icon-h{display:flex}", W9 = K9, V9 = te(class extends ne {
|
|
|
15830
15838
|
super(), this.__registerHost(), this.width = "14", this.height = "14";
|
|
15831
15839
|
}
|
|
15832
15840
|
render() {
|
|
15833
|
-
return
|
|
15841
|
+
return g("svg", { key: "3087788ff23b6230877edbe5ef6ec384a3cbd3cc", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "41bc050582f31986abd97b6eab9c6d52a24dc62c", fill: "currentColor", d: "M6.5 5.5C6.77614 5.5 7 5.72386 7 6V9C7 9.27614 6.77614 9.5 6.5 9.5C6.22386 9.5 6 9.27614 6 9V6C6 5.72386 6.22386 5.5 6.5 5.5ZM6.50001 4.74907C6.91369 4.74907 7.24905 4.41371 7.24905 4.00003C7.24905 3.58635 6.91369 3.251 6.50001 3.251C6.08633 3.251 5.75098 3.58635 5.75098 4.00003C5.75098 4.41371 6.08633 4.74907 6.50001 4.74907ZM0.5 6.5C0.5 3.18629 3.18629 0.5 6.5 0.5C9.81371 0.5 12.5 3.18629 12.5 6.5C12.5 9.81371 9.81371 12.5 6.5 12.5C3.18629 12.5 0.5 9.81371 0.5 6.5ZM6.5 1.5C3.73858 1.5 1.5 3.73858 1.5 6.5C1.5 9.26142 3.73858 11.5 6.5 11.5C9.26142 11.5 11.5 9.26142 11.5 6.5C11.5 3.73858 9.26142 1.5 6.5 1.5Z" }));
|
|
15834
15842
|
}
|
|
15835
15843
|
static get style() {
|
|
15836
15844
|
return W9;
|
|
@@ -15902,7 +15910,7 @@ const Z9 = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
|
|
|
15902
15910
|
!this.pattern || !e && !this.required || (this.pattern.test(e) ? this.error = "" : this.error = this.patternError || "Invalid format.");
|
|
15903
15911
|
}
|
|
15904
15912
|
render() {
|
|
15905
|
-
return
|
|
15913
|
+
return g("label", { key: "9f2b420dc76c3fd263d690689887ac66ce519264", part: "ic__label", class: { error: !!this.error } }, this.label && g("p", null, g("span", { class: "label" }, this.label), this.required && g("span", { class: "required" }, "*")), g("div", { key: "2a4405560068cfad04acda9bd5ef6ec6c79646f0", part: "ic__input_wrapper", class: "input_wrapper" }, g("input", { key: "fa44c6f9e2c93698fa49948a7ec74f2a87aeb852", type: "text", name: this.name, part: "ic__input", readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, placeholder: this.placeholder, class: { error: !!this.error }, onInput: (e) => this.handleInput(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), g("slot", { key: "b37c67e64154ed48cadc382c64eca9313b967f66", name: "additional-input" })), this.error && g("span", { class: "error help-text" }, this.error));
|
|
15906
15914
|
}
|
|
15907
15915
|
get el() {
|
|
15908
15916
|
return this;
|
|
@@ -16049,7 +16057,7 @@ function _t(t) {
|
|
|
16049
16057
|
});
|
|
16050
16058
|
};
|
|
16051
16059
|
}
|
|
16052
|
-
const rC =
|
|
16060
|
+
const rC = ':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-booked-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family)}.event-card-wrapper{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;margin-bottom:2rem;width:424px;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){.event-card-wrapper{width:100%;border-radius:0px}}.calendar-icon{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);color:var(--nylas-base-700)}.booked-event-header{margin:1.5rem 0;overflow-wrap:anywhere;display:flex;align-items:center;flex-direction:column;font-size:1rem;font-weight:400;border-bottom:1px solid var(--nylas-base-200);width:inherit;padding:0 0 1.5rem}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.25rem;font-size:1.125rem;font-weight:600}.booked-event-header .card-description{text-align:center}.booking-date-time,.booking-participants{padding:0 1rem;margin-top:1.5rem;margin-left:3rem;display:flex;flex-direction:column;justify-content:space-between;align-self:flex-start;position:relative}.booking-date-time svg,.booking-participants svg{color:var(--nylas-base-700);position:absolute;left:-10px}.booking-date-time .block,.booking-participants .block{display:block}.booking-date-time h3,.booking-participants h3{color:var(--nylas-base-600);margin:0;font-size:16px;font-weight:600;line-height:1.25rem;text-align:justify;margin-bottom:4px}.booking-date-time p,.booking-participants p{font-size:16px;margin:0;font-weight:400;text-align:justify;color:var(--nylas-base-800)}.booking-participants{margin-bottom:1.5rem}.booked-event-timezone{display:flex;color:var(--nylas-base-600);margin-bottom:1.5rem;gap:4px;margin:2rem;align-items:center;align-self:flex-end}.button-container{width:inherit}.footer{padding:0.5rem;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);border-top:1px solid var(--nylas-base-200);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.footer.no-template-cols{grid-template-columns:1fr}.footer.no-footer{display:none}sp-divider{background-color:var(--nylas-base-200);height:1px}calendar-check-icon{display:flex;align-items:center;justify-content:center;height:100%}', iC = rC;
|
|
16053
16061
|
var oC = function(t, e, n, r) {
|
|
16054
16062
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
16055
16063
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -16087,7 +16095,7 @@ const v5 = te(class extends ne {
|
|
|
16087
16095
|
default:
|
|
16088
16096
|
return "";
|
|
16089
16097
|
}
|
|
16090
|
-
}, this.eventInfo = void 0, this.rescheduleBookingId = void 0, this.bookingInfo = void 0, this.
|
|
16098
|
+
}, this.eventInfo = void 0, this.rescheduleBookingId = void 0, this.bookingInfo = void 0, this.configSettings = void 0, this.isLoading = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedTimeslot = void 0, this.selectedLanguage = navigator.language, this.startTime = "", this.endTime = "";
|
|
16091
16099
|
}
|
|
16092
16100
|
connectedCallback() {
|
|
16093
16101
|
}
|
|
@@ -16101,13 +16109,13 @@ const v5 = te(class extends ne {
|
|
|
16101
16109
|
N("[nylas-booked-event-card] Component did load"), this.eventInfo || console.warn('[nylas-booked-event-card] "eventInfo" prop missing. Please provide the event info to display the event details in the booked event card component.'), this.bookingInfo || console.warn('[nylas-booked-event-card] "bookingInfo" prop missing. Please provide the booking info to display the guest details in the booked event card component.'), this.startTime = Od((e = this.selectedTimeslot) == null ? void 0 : e.start_time, this.selectedTimezone), this.endTime = Od((n = this.selectedTimeslot) == null ? void 0 : n.end_time, this.selectedTimezone);
|
|
16102
16110
|
}
|
|
16103
16111
|
render() {
|
|
16104
|
-
var r, i, o, s, a, u, c, d, l, f, h, p,
|
|
16112
|
+
var r, i, o, s, a, u, c, d, l, f, h, p, b, m, y, v;
|
|
16105
16113
|
const e = (r = this.configSettings) == null ? void 0 : r.booking_type, n = e && e !== "booking";
|
|
16106
|
-
return
|
|
16114
|
+
return g(ye, { key: "4c047c53d7532b60d6d28be607b3e926e07f2e50", part: "nbec" }, g("div", { key: "154180aa38c82fc2e28d8b9ad753804fdfb837d7", class: "nylas-booked-event-card" }, g("div", { key: "a6d046deffb82706bd609a2ac7f33f462578326a", class: "booked-event-timezone" }, g("globe-icon", { key: "22418924800ed88cdf685441561728ecac4594cd" }), ei[this.selectedTimezone]), g("div", { key: "f4f4ffb1ff084cba9f1032c1d5e394a9b65286e2", class: "event-card-wrapper", part: "nbec__card" }, g("div", { key: "7440e6baed4f509594acf69166566a6546d9b2ae", class: "calendar-icon" }, g("calendar-check-icon", { key: "6a82cfb9ac8d89bb8151e86dcbb9d49422513b89" })), g("div", { key: "c913c479384ecd4e5df96dea05a1305a12df76c8", class: "booked-event-header" }, g("h2", { key: "c818d579e73751d6e83bf50f9dc34a3523e2b0f1", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${R.t("bookingRescheduled")}` : n && !this.isLoading ? `${R.t("bookingSent")}` : `${R.t("bookingConfirmed")}`, "!"), g("div", { key: "bb6cef397ebe5aec3ed49f455ac00430594c4c6f", class: "card-description", part: "nbec__description" }, n ? R.t("bookingSentDescription") : g("span", null, R.t("bookingConfirmedDescription")))), g("div", { key: "d4732fc9421c4d54062bdac74e69a476322f168a", class: "booking-date-time" }, g("checkmark-circle-icon", { key: "caadcce299c4506d709a65bfbc3d10fec64ef6d6" }), g("h3", { key: "8a2dc813f1be6bab13a53328c4e9dbb5ec7d41df" }, R.t("bookingDateAndTimeHeader")), g("p", { key: "fedc61f46ba1b96e424b23aff08c382296e4a6d3" }, (i = this.selectedTimeslot) != null && i.start_time ? Pc(new Date((o = this.selectedTimeslot) == null ? void 0 : o.start_time).toLocaleDateString(Kc[this.selectedLanguage], { dateStyle: "full" })) : "-", " ", g("br", { key: "6efc18bfd398bca545c359b5876ff9a16792485f" }), this.startTime, " - ", this.endTime)), g("div", { key: "c972d3fc4f1541ec6a1fde958176de0adccf3bcd", class: "booking-participants" }), !n && g("div", { class: "button-container" }, g("div", { class: {
|
|
16107
16115
|
footer: !0,
|
|
16108
16116
|
"no-footer": ((a = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : a.hide_cancellation_options) && ((c = (u = this.configSettings) == null ? void 0 : u.scheduler) == null ? void 0 : c.hide_rescheduling_options) || ((d = this.configSettings) == null ? void 0 : d.booking_type) === "organizer-confirmation",
|
|
16109
16117
|
"no-template-cols": ((f = (l = this.configSettings) == null ? void 0 : l.scheduler) == null ? void 0 : f.hide_cancellation_options) || ((p = (h = this.configSettings) == null ? void 0 : h.scheduler) == null ? void 0 : p.hide_rescheduling_options)
|
|
16110
|
-
} }, !((m = (
|
|
16118
|
+
} }, !((m = (b = this.configSettings) == null ? void 0 : b.scheduler) != null && m.hide_cancellation_options) && g("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${R.t("cancelBookingButton")}`), !((v = (y = this.configSettings) == null ? void 0 : y.scheduler) != null && v.hide_rescheduling_options) && g("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, part: "nbec__button-outline nbec__reschedule-cta" }, `${R.t("rescheduleBookingButton")}`))))));
|
|
16111
16119
|
}
|
|
16112
16120
|
static get style() {
|
|
16113
16121
|
return iC;
|
|
@@ -16116,10 +16124,10 @@ const v5 = te(class extends ne {
|
|
|
16116
16124
|
eventInfo: [16],
|
|
16117
16125
|
rescheduleBookingId: [1, "reschedule-booking-id"],
|
|
16118
16126
|
bookingInfo: [8, "booking-info"],
|
|
16119
|
-
selectedTimezone: [1, "selected-timezone"],
|
|
16120
|
-
selectedTimeslot: [16],
|
|
16121
16127
|
configSettings: [8, "config-settings"],
|
|
16122
16128
|
isLoading: [4, "is-loading"],
|
|
16129
|
+
selectedTimezone: [1, "selected-timezone"],
|
|
16130
|
+
selectedTimeslot: [16],
|
|
16123
16131
|
selectedLanguage: [1, "selected-language"],
|
|
16124
16132
|
startTime: [32],
|
|
16125
16133
|
endTime: [32]
|
|
@@ -16211,7 +16219,7 @@ const aC = '.radio-group{display:flex;flex-direction:column;gap:0.5rem;--nylas-p
|
|
|
16211
16219
|
});
|
|
16212
16220
|
}
|
|
16213
16221
|
render() {
|
|
16214
|
-
return
|
|
16222
|
+
return g("div", { key: "6848b97b9a503ab19ce43b405d86d6e98ca3caaa", class: "radio-group" }, g("slot", { key: "be574ba6675264e5f616f55126a6a83f3706975f", name: "label" }, this.label && g("p", { class: { error: !!this.error } }, g("span", { class: "label" }, this.label), this.required && g("span", { class: "required" }, "*"))), this.options.map((e) => g("label", null, g("div", { class: "radio-option" }, g("input", { type: "radio", name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), g("p", null, g("span", { class: "title" }, e.label), g("span", { class: "description" }, e.description))))), this.error && g("span", { class: "error help-text" }, this.error));
|
|
16215
16223
|
}
|
|
16216
16224
|
get el() {
|
|
16217
16225
|
return this;
|
|
@@ -16251,7 +16259,7 @@ const lC = ".sc-search-icon-h{display:flex}", dC = lC, fC = te(class extends ne
|
|
|
16251
16259
|
super(), this.__registerHost(), this.width = "15", this.height = "15";
|
|
16252
16260
|
}
|
|
16253
16261
|
render() {
|
|
16254
|
-
return
|
|
16262
|
+
return g("svg", { key: "ddf419d549f82cf693e9b261d671dcb402c193f6", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "d30e346032f2d41161d314e0b1305643688d6402", fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" }));
|
|
16255
16263
|
}
|
|
16256
16264
|
static get style() {
|
|
16257
16265
|
return dC;
|
|
@@ -16370,11 +16378,11 @@ const hC = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
|
|
|
16370
16378
|
}
|
|
16371
16379
|
render() {
|
|
16372
16380
|
const e = this.generateButtonText(this.selectedOption, this.dropdownButtonText);
|
|
16373
|
-
return
|
|
16381
|
+
return g("div", { key: "ada528ac19d43f03f7717c3fe3102d3c87b95305", class: "dropdown", part: "sd_dropdown" }, g("label", { key: "cd088bcbfd74f506407597edad97730bc5fce96e", part: "sd_dropdown_label", class: { error: !!this.errorMessage } }, this.label && g("p", null, g("span", { class: "label" }, this.label), this.required && g("span", { class: "required" }, "*")), g("button", { key: "9f0e7d114b4978f37818c1d424b5f8c786ba8e87", part: "sd_dropdown-button", class: { dropbtn: !0, open: this.isOpen, error: !!this.errorMessage }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (n) => this.handleSelectButtonKeyDown(n) }, g("slot", { key: "e834d848d72159fa808ee8b3a48c2f66c0aad7fc", name: "select-icon", "aria-hidden": "true" }), g("span", { key: "2cbf36487ff22baf541534d86d3d210d61a8fced", class: "selected-option", part: "sd_dropdown-button-selected-label" }, e), this.withChevron && g("span", { class: {
|
|
16374
16382
|
open: this.isOpen,
|
|
16375
16383
|
closed: !this.isOpen,
|
|
16376
16384
|
chevron: !0
|
|
16377
|
-
}, "aria-hidden": "true" },
|
|
16385
|
+
}, "aria-hidden": "true" }, g("chevron-icon", { width: "16", height: "16" }))), this.errorMessage && g("span", { class: "error help-text" }, this.errorMessage)), this.isOpen ? g("div", { class: "dropdown-content", part: "sd_dropdown-content" }, this.withSearch && g("div", { class: { "search-box": !0, open: this.isOpen } }, g("search-icon", { width: "15", height: "15", class: "icon" }), g("input", { type: "text", role: "combobox", placeholder: "Search", value: this.searchValue, ref: (n) => this.inputRef = n, onInput: (n) => this.filterOptions(n), onKeyDown: (n) => this.handleComboboxKeyDown(n) })), g("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (n) => this.handleListboxKeydown(n) }, this.filteredOptions.map((n) => n.value.toString() ? g("li", { tabindex: "0", key: n.value, id: n.value, onClick: () => this.selectOption(n), role: "option" }, n.labelHTML ? g("div", { part: "sd_dropdown-labelhtml" }, n.labelHTML) : n.label) : null))) : null);
|
|
16378
16386
|
}
|
|
16379
16387
|
get el() {
|
|
16380
16388
|
return this;
|
|
@@ -16436,7 +16444,7 @@ const gC = '.tooltip-container{position:relative;display:flex;--nylas-primary:#2
|
|
|
16436
16444
|
e.target.nextElementSibling.style.visibility = "hidden", e.target.nextElementSibling.style.opacity = "0";
|
|
16437
16445
|
}
|
|
16438
16446
|
render() {
|
|
16439
|
-
return
|
|
16447
|
+
return g("div", { key: "dbfd3d300f3f3d3e139991f1cb84a12161b61a73", class: "tooltip-container", part: "tc__container" }, g("span", { key: "8a03f9657c641680d4fa166f3fc680d35aa24281", class: "info-icon", tabindex: "0", onFocus: this.showTooltip.bind(this), onBlur: this.hideTooltip.bind(this) }, g("slot", { key: "0f8478af1526e2775907e17555a36db85f482ff4", name: "tooltip-icon" }, "i")), g("span", { key: "171ae65f59875214c68e80749f5a9c108fb365fb", class: `tooltip-content ${this.position}`, part: "tc__content" }, g("slot", { key: "888f7faaf29825faa27df7935e47526d6fa6f126", name: "tooltip-content" }, "This is a help text.")));
|
|
16440
16448
|
}
|
|
16441
16449
|
get el() {
|
|
16442
16450
|
return this;
|
|
@@ -16485,7 +16493,7 @@ const vC = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
16485
16493
|
this.required && !e ? this.error = `${this.label} is required.` : e.length > this.maxLength ? this.error = `${this.label} cannot exceed ${this.maxLength} characters.` : this.error = "";
|
|
16486
16494
|
}
|
|
16487
16495
|
render() {
|
|
16488
|
-
return
|
|
16496
|
+
return g("label", { key: "503a9e472a4dea351f13d8e430a0ee9ecc20e3fb", part: "tc__label", class: { error: !!this.error } }, g("p", { key: "7ce9a57c8e2dc9d0c3a88edf93ba09a3b49cf149" }, g("span", { key: "8feedbb7300d0eb20192b17a0482f9c981bba120", class: "label" }, this.label), this.required && g("span", { class: "required" }, "*"), this.tooltip && g("tooltip-component", null, g("info-icon", { slot: "tooltip-icon" }), g("span", { slot: "tooltip-content" }, this.tooltip))), g("textarea", { key: "79dd6889c5da4797b26504731583db5887c21bcb", name: this.name, placeholder: this.placeholder, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), class: { error: !!this.error }, part: "tc__textarea" }), this.error && g("span", { class: "error help-text" }, this.error));
|
|
16489
16497
|
}
|
|
16490
16498
|
static get style() {
|
|
16491
16499
|
return _C;
|
|
@@ -16521,7 +16529,7 @@ function Fs() {
|
|
|
16521
16529
|
}
|
|
16522
16530
|
});
|
|
16523
16531
|
}
|
|
16524
|
-
const xC =
|
|
16532
|
+
const xC = ':host{display:block;height:100%;--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-booking-form{width:100%;padding:1.5rem;box-sizing:border-box;height:450px;overflow-y:auto;height:100%}form{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center}sp-textfield{--spectrum-corner-radius-100:var(--nylas-border-radius-2x);--spectrum-textfield-border-color:var(--nylas-base-300);position:relative;width:100%;height:48px;margin-bottom:16px;color:var(--nylas-base-500)}.cta{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;align-items:flex-start;justify-content:space-between;gap:0.5rem;padding:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.cta{grid-template-columns:1fr}}.input-wrapper{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:1rem}.input-wrapper input::placeholder{color:var(--nylas-base-300)}.input-wrapper label,.input-wrapper input{font-family:var(--nylas-font-family);font-size:16px}.input-wrapper .help-text{margin:0;color:var(--nylas-error)}.button-wrapper{width:100%;align-items:flex-start;height:max-content;position:relative}.button-content{display:flex;gap:4px;align-items:center}sp-infield-button{--spectrum-infield-button-background-color:transparent;--spectrum-infield-button-background-color-hover:transparent;--spectrum-infield-button-background-color-active:transparent;--spectrum-infield-button-border-color:transparent;--spectrum-infield-button-border-width:1px;--spectrum-infield-button-border-radius:0;color:var(--nylas-base-600);background:transparent;border:none;outline:1px solid var(--nylas-base-300);border-radius:0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x) 0;height:52px;width:52px;display:flex;position:absolute;right:0;align-items:center;justify-content:center;cursor:pointer}sp-infield-button sp-icon-cross300{color:var(--nylas-base-600)}sp-infield-button.error{border-width:2px;border-color:var(--nylas-error)}input[type=text],input[type=email]{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%}input[type=text]:focus,input[type=email]:focus{outline-color:var(--nylas-primary)}input[type=text].error,input[type=email].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=text].error::placeholder,input[type=email].error::placeholder{font-weight:400}input[type=text]::placeholder,input[type=email]::placeholder{color:var(--nylas-base-300)}input[type=text].guest-email,input[type=email].guest-email{color:var(--nylas-base-900);padding-right:52px}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}button-component.remove-guest{position:absolute;height:51px;right:0}button-component.remove-guest.error button{border-color:var(--nylas-error)}button-component.remove-guest button{height:inherit;border-top-left-radius:initial;border-bottom-left-radius:initial;border:none !important;border-left:1px solid var(--nylas-base-300) !important}button-component.remove-guest button:hover,button-component.remove-guest button:focus{outline:1px solid var(--nylas-primary) !important;color:var(--nylas-primary)}button-component.back button{--dot-color:var(--nylas-base-800)}.guest-email-input{position:relative;display:flex;width:100%}', wC = xC;
|
|
16525
16533
|
var EC = function(t, e, n, r) {
|
|
16526
16534
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
16527
16535
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -16559,7 +16567,7 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
16559
16567
|
}, this.handleBackButtonClicked = (e) => {
|
|
16560
16568
|
e.preventDefault(), this.backButtonLoading = !0, this.backButtonClicked.emit();
|
|
16561
16569
|
}, this.bookButtonClickedHandler = async (e) => {
|
|
16562
|
-
var a, u, c, d, l, f, h;
|
|
16570
|
+
var a, u, c, d, l, f, h, p, b;
|
|
16563
16571
|
if (e.preventDefault(), this.bookingFormSubmitted.emit().defaultPrevented)
|
|
16564
16572
|
return;
|
|
16565
16573
|
N("nylas-booking-form", "bookButtonClickedHandler", this.bookingInfo);
|
|
@@ -16587,23 +16595,26 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
16587
16595
|
}
|
|
16588
16596
|
let o = [];
|
|
16589
16597
|
if (this.guestEmails.length > 0) {
|
|
16590
|
-
let
|
|
16591
|
-
if (this.guestEmails.forEach((
|
|
16592
|
-
|
|
16593
|
-
}),
|
|
16598
|
+
let m = !1;
|
|
16599
|
+
if (this.guestEmails.forEach((y, v) => {
|
|
16600
|
+
y === "" ? (m = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [v]: R.t("fieldRequired", { field: R.t("email") }) }) : oo.test(y) || (m = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [v]: R.t("invalidInputFormat", { field: R.t("email") }) });
|
|
16601
|
+
}), m) {
|
|
16594
16602
|
this.bookingFormError.emit({
|
|
16595
16603
|
title: "Booking form error",
|
|
16596
16604
|
description: R.t("invalidInputFormat", { field: R.t("guestEmail") }) || "Invalid guest email"
|
|
16597
16605
|
});
|
|
16598
16606
|
return;
|
|
16599
16607
|
}
|
|
16600
|
-
o = this.guestEmails.map((
|
|
16608
|
+
o = this.guestEmails.map((y) => ({ name: y.trim(), email: y.trim() }));
|
|
16601
16609
|
} else (l = this.bookingInfo) != null && l.guests && (o = (f = this.bookingInfo) == null ? void 0 : f.guests);
|
|
16602
16610
|
const s = {};
|
|
16603
|
-
(h = this.bookingInfo) != null && h.additionalFields
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
|
|
16611
|
+
if ((h = this.bookingInfo) != null && h.additionalFields) {
|
|
16612
|
+
const m = ((b = (p = this.configSettings) == null ? void 0 : p.scheduler) == null ? void 0 : b.additional_fields) || {};
|
|
16613
|
+
Object.entries(this.bookingInfo.additionalFields).forEach(([y, v]) => {
|
|
16614
|
+
y in m && (s[y] = v.value);
|
|
16615
|
+
});
|
|
16616
|
+
}
|
|
16617
|
+
this.detailsConfirmed.emit({
|
|
16607
16618
|
primaryParticipant: {
|
|
16608
16619
|
name: r,
|
|
16609
16620
|
email: i
|
|
@@ -16680,9 +16691,9 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
16680
16691
|
}
|
|
16681
16692
|
render() {
|
|
16682
16693
|
var e, n, r, i, o, s, a, u, c;
|
|
16683
|
-
return
|
|
16694
|
+
return g(ye, { key: "0ea30bef8b00673240ee959d6b8baaffc7d2c715" }, g("form", { key: "d5bf36df0f5419c98b5114719c731e8c3201bc7b", onSubmit: (d) => this.bookButtonClickedHandler(d), noValidate: !0 }, g("div", { key: "2a7a7cbaae2af6f3b79e23366752a421bf2304ba", class: "nylas-booking-form", part: "nbf" }, g("div", { key: "9af4ebc990cb2ef4e3e58af148eb7609b203c78a", class: "input-wrapper", part: "nbf__input-wrapper" }, g("input-component", { key: "31ea0d5c904a62c2c9b8d7572b448d9a28b24e86", label: R.t("name"), name: "name", id: "name", defaultValue: ((n = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : n.name) || this.name, placeholder: R.t("namePlaceholder"), type: "text", required: !0, requiredError: R.t("fieldRequired", { field: R.t("name") }), patternError: R.t("invalidInputFormat", { field: R.t("name") }), part: "nbf__input-textfield" })), g("div", { key: "95de0dabca66d11e1370b282e4d23eb545fb33a6", class: "input-wrapper", part: "nbf__input-wrapper" }, g("input-component", { key: "712b25028a9d12bde236ada12c9b8ee15a70c885", label: R.t("email"), name: "email", id: "email", pattern: oo, defaultValue: ((i = (r = this.bookingInfo) == null ? void 0 : r.primaryParticipant) == null ? void 0 : i.email) || this.email, placeholder: R.t("emailPlaceholder"), type: "email", required: !0, requiredError: R.t("fieldRequired", { field: R.t("email") }), patternError: R.t("invalidInputFormat", { field: R.t("email") }), part: "nbf__input-textfield" })), ((s = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : s.hide_additional_guests) !== !0 && g("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((d, l) => g("div", { class: "input-wrapper button-wrapper" }, g("label", { class: {
|
|
16684
16695
|
error: !!this.guestEmailErrors[l]
|
|
16685
|
-
} }, R.t("guestEmail")),
|
|
16696
|
+
} }, R.t("guestEmail")), g("div", { class: "guest-email-input" }, g("input", { type: "email", id: `guest-email-${l}`, maxLength: 100, class: {
|
|
16686
16697
|
"guest-email": !0,
|
|
16687
16698
|
error: !!this.guestEmailErrors[l]
|
|
16688
16699
|
}, placeholder: R.t("guestEmailPlaceholder"), value: d, "data-index": l, part: "nbf__input-textfield", onBlur: (f) => {
|
|
@@ -16691,25 +16702,25 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
16691
16702
|
}, onInput: (f) => {
|
|
16692
16703
|
var h;
|
|
16693
16704
|
return this.handleGuestChange(l, (h = f.target) == null ? void 0 : h.value);
|
|
16694
|
-
} }),
|
|
16705
|
+
} }), g("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (f) => this.removeGuestButtonClickHandler(f, l), class: {
|
|
16695
16706
|
"remove-guest": !0,
|
|
16696
16707
|
error: !!this.guestEmailErrors[l]
|
|
16697
|
-
} },
|
|
16698
|
-
var
|
|
16699
|
-
const l = d[1], f = l.label, h = d[0], p = ((y = (m = (
|
|
16708
|
+
} }, g("close-icon", null))), g("p", { class: "help-text" }, this.guestEmailErrors[l]))), g("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (d) => this.addGuestButtonClickedHandler(d) }, g("div", { class: "button-content" }, g("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${R.t("addAnotherGuest")}` : `${R.t("addGuest")}`))), (c = Object.entries(((u = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : u.additional_fields) || {})) == null ? void 0 : c.sort((d, l) => d[1].order - l[1].order).map((d) => {
|
|
16709
|
+
var b, m, y, v, E, C;
|
|
16710
|
+
const l = d[1], f = l.label, h = d[0], p = ((y = (m = (b = this.bookingInfo) == null ? void 0 : b.additionalFields) == null ? void 0 : m[h]) == null ? void 0 : y.value) || "";
|
|
16700
16711
|
switch (l.type) {
|
|
16701
16712
|
case "dropdown":
|
|
16702
|
-
return
|
|
16713
|
+
return g("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, g("select-dropdown", { label: f, name: h, id: h, withSearch: !1, defaultSelectedOption: p ? { value: p, label: p } : void 0, options: (v = l.options) == null ? void 0 : v.map(($) => ({ value: $, label: $ })), required: l.required, exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
|
|
16703
16714
|
case "checkbox":
|
|
16704
|
-
return
|
|
16715
|
+
return g("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, g("checkbox-component", { label: f, name: h, id: h, checked: p === "true", required: l.required, part: "nbf__checkbox-component" }));
|
|
16705
16716
|
case "radio_button":
|
|
16706
|
-
return
|
|
16717
|
+
return g("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, g("radio-button-group", { label: f, name: h, id: h, defaultSelectedValue: p || ((E = l.options) == null ? void 0 : E[0]) || "", options: (C = l.options) == null ? void 0 : C.map(($) => ({ value: $, label: $ })), required: l.required, part: "nbf__radio-button-group" }));
|
|
16707
16718
|
case "multi_line_text":
|
|
16708
|
-
return
|
|
16719
|
+
return g("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, g("textarea-component", { label: f, defaultValue: p, name: h, id: h, required: l.required, part: "nbf__textarea-component" }));
|
|
16709
16720
|
default:
|
|
16710
|
-
return
|
|
16721
|
+
return g("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, g("input-component", { label: f, name: h, id: h, type: l.type, defaultValue: p || "", requiredError: R.t("fieldRequired", { field: f }), required: l.required, part: "nbf__input-textfield" }));
|
|
16711
16722
|
}
|
|
16712
|
-
})),
|
|
16723
|
+
})), g("div", { key: "f89d9ed23eca94e127aca472e8444336160a4a49", class: "cta" }, g("button-component", { key: "e1de4364cd5d351f23499ab82bf4d444185a47cc", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, g("slot", { key: "1b1a422766e53e8e1aec7d31db9c2406afec3da1", name: "booking-form-back-label" }, `${R.t("backButton")}`)), g("button-component", { key: "68c249ef1ca7dad8b6217d86662dd195ec77b016", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, g("slot", { key: "de2c7d09c9203409e7d92b80f6901b5099ab1163", name: "booking-form-book-label" }, `${R.t("bookNowButton")}`)))));
|
|
16713
16724
|
}
|
|
16714
16725
|
get host() {
|
|
16715
16726
|
return this;
|
|
@@ -16726,7 +16737,7 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
16726
16737
|
isLoading: [4, "is-loading"],
|
|
16727
16738
|
bookingInfo: [16],
|
|
16728
16739
|
eventInfo: [16],
|
|
16729
|
-
configSettings: [
|
|
16740
|
+
configSettings: [16],
|
|
16730
16741
|
name: [32],
|
|
16731
16742
|
email: [32],
|
|
16732
16743
|
guestEmails: [32],
|
|
@@ -16824,7 +16835,7 @@ function CC() {
|
|
|
16824
16835
|
}
|
|
16825
16836
|
});
|
|
16826
16837
|
}
|
|
16827
|
-
const SC =
|
|
16838
|
+
const SC = ':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;display:block;width:400px;font-family:var(--nylas-font-family)}.nylas-cancel-booking-form{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}.nylas-cancel-booking-form form{width:100%}.nylas-cancel-booking-form__title{font-size:18px;font-weight:600;margin-bottom:0;color:var(--nylas-base-900)}.nylas-cancel-booking-form__description{font-size:1rem;font-style:normal;font-weight:400;line-height:140%;color:var(--nylas-base-600);padding-bottom:1.25rem}.nylas-cancel-booking-form__calendar-icon{width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}.footer{display:grid;grid-template-columns:1fr 1fr;width:100%;padding-top:1.25rem;gap:1rem;border-top:1px solid var(--nylas-base-200);margin-top:1.25rem}', TC = SC;
|
|
16828
16839
|
var AC = function(t, e, n, r) {
|
|
16829
16840
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
16830
16841
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -16863,7 +16874,7 @@ const x5 = te(class extends ne {
|
|
|
16863
16874
|
this.cancelBookedEventError.emit(c);
|
|
16864
16875
|
};
|
|
16865
16876
|
this.cancelBookingId ? this.cancelBookingFormSubmitted.emit({ bookingId: this.cancelBookingId, action: "cancel", reason: this.cancellationReason, errorHandler: o }) : this.rejectBookingId && this.cancelBookingFormSubmitted.emit({ bookingId: this.rejectBookingId, action: "reject", reason: this.cancellationReason, errorHandler: o });
|
|
16866
|
-
}, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.
|
|
16877
|
+
}, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.selectedTimeslot = void 0, this.configSettings = void 0, this.eventInfo = void 0, this.isLoading = void 0, this.cancellationReason = "", this.cancellationError = "", this.cancellationPolicy = ((n = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : n.cancellation_policy) || "Your current timeslot will become available to others.";
|
|
16867
16878
|
}
|
|
16868
16879
|
configSettingsChangedHandler(e) {
|
|
16869
16880
|
var n;
|
|
@@ -16886,7 +16897,7 @@ const x5 = te(class extends ne {
|
|
|
16886
16897
|
}
|
|
16887
16898
|
render() {
|
|
16888
16899
|
var e, n;
|
|
16889
|
-
return
|
|
16900
|
+
return g(ye, { key: "c4bdf11986a6efc5b9005e82583c3e0543c424b7", part: "ncbf" }, g("div", { key: "be45863d677fc6f4e0e7a473367d4e668988a6e3", class: "nylas-cancel-booking-form", part: "ncbf__card" }, g("div", { key: "acd1467de81bc7518ef026d18abaf2bec08ee9e7", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, g("calendar-cancel-icon", { key: "8622cec85da5c6767d4acd913d540ab5379d6a6b" })), g("h3", { key: "b16e109071f7b3ce4bdeff18d75b395b6397ef66", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, R.t("cancelBookingTitle")), g("div", { key: "99a98fda2cf78631fbf217425e98f50053819944", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (n = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && n.cancellation_policy ? this.cancellationPolicy : `${R.t("cancelBookingMessage")}`), g("form", { key: "4f139a76c233767562d69e6abbc8bed2fe7068a4", onSubmit: this.handleSubmitCancelBooking }, g("textarea-component", { key: "cb9cb36cbc8054f0c99049230edd6867864b85eb", id: "cancel-reason", name: "cancel-reason", required: !0, label: R.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), g("div", { key: "d10517e31cc74630c726db714b2ec2f732ebb595", class: "footer" }, g("button-component", { key: "4074187227af0cb6c35a530faef004edde580f34", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, R.t("cancelBookingButton")), !!this.eventInfo && g("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, R.t("goBackButton"))))));
|
|
16890
16901
|
}
|
|
16891
16902
|
static get watchers() {
|
|
16892
16903
|
return {
|
|
@@ -16899,9 +16910,9 @@ const x5 = te(class extends ne {
|
|
|
16899
16910
|
}, [1, "nylas-cancel-booking-form", {
|
|
16900
16911
|
cancelBookingId: [1, "cancel-booking-id"],
|
|
16901
16912
|
rejectBookingId: [1, "reject-booking-id"],
|
|
16913
|
+
selectedTimeslot: [16],
|
|
16902
16914
|
configSettings: [16],
|
|
16903
16915
|
eventInfo: [16],
|
|
16904
|
-
selectedTimeslot: [16],
|
|
16905
16916
|
isLoading: [4, "is-loading"],
|
|
16906
16917
|
cancellationReason: [32],
|
|
16907
16918
|
cancellationError: [32],
|
|
@@ -16980,7 +16991,7 @@ function $C() {
|
|
|
16980
16991
|
}
|
|
16981
16992
|
});
|
|
16982
16993
|
}
|
|
16983
|
-
const IC =
|
|
16994
|
+
const IC = ':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-cancelled-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.nylas-cancelled-event-card{width:inherit}}.nylas-cancelled-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-cancelled-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-cancelled-event-card__calendar-icon{width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}.nylas-cancelled-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}', BC = IC;
|
|
16984
16995
|
var DC = function(t, e, n, r) {
|
|
16985
16996
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
16986
16997
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -17001,7 +17012,7 @@ const w5 = te(class extends ne {
|
|
|
17001
17012
|
this.cancelledEventCardError.emit(n), this.isClosing = !1;
|
|
17002
17013
|
};
|
|
17003
17014
|
this.closeCancelEventCardClicked.emit({ errorHandler: e });
|
|
17004
|
-
}, this.
|
|
17015
|
+
}, this.configSettings = void 0, this.cancelledEventInfo = void 0, this.isClosing = !1;
|
|
17005
17016
|
}
|
|
17006
17017
|
connectedCallback() {
|
|
17007
17018
|
N("[nylas-cancelled-event-card] Component connected");
|
|
@@ -17017,14 +17028,14 @@ const w5 = te(class extends ne {
|
|
|
17017
17028
|
}
|
|
17018
17029
|
render() {
|
|
17019
17030
|
var e, n;
|
|
17020
|
-
return
|
|
17031
|
+
return g(ye, { key: "e5e3ac32d965a7d9e9bc0bb8bbd774625ff07d7b", part: "ncec" }, g("div", { key: "e4ef634f512035b0e36012009a49d4e3e9845973", class: "nylas-cancelled-event-card", part: "ncec__card" }, g("div", { key: "8a739422bcf542b9b8c97c0a56032b4393755d5d", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, g("calendar-cancel-icon", { key: "cd4aa557789c4487f6ce7ef70337a4af83e4d3be" })), g("h3", { key: "48aff2d9672f9d7e24b61ec5fa3b21ec63345f54", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, R.t("bookingCancelledTitle"), "!"), g("div", { key: "0c861a46988ad3071850dbe61f8344b5da6cd6d6", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, R.t("bookingCancelledMessage"), " ", ((n = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : n.name) || "the participants", "."), g("div", { key: "d9801695af5953536439a188c7e1d8d324a2fdbd", class: "nylas-cancelled-event-card__cta" }, g("button-component", { key: "b8c463a0ef0c36a4c28b46a3ad0aaa7f5b8f2efc", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${R.t("closingButton")}...` : `${R.t("closeButton")}`))));
|
|
17021
17032
|
}
|
|
17022
17033
|
static get style() {
|
|
17023
17034
|
return BC;
|
|
17024
17035
|
}
|
|
17025
17036
|
}, [1, "nylas-cancelled-event-card", {
|
|
17026
|
-
cancelledEventInfo: [16],
|
|
17027
17037
|
configSettings: [16],
|
|
17038
|
+
cancelledEventInfo: [16],
|
|
17028
17039
|
isClosing: [32]
|
|
17029
17040
|
}]);
|
|
17030
17041
|
DC([
|
|
@@ -17087,7 +17098,7 @@ const E5 = te(class extends ne {
|
|
|
17087
17098
|
this.confirmedEventCardError.emit(n), this.isClosing = !1;
|
|
17088
17099
|
};
|
|
17089
17100
|
this.closeConfirmEventCardClicked.emit({ errorHandler: e });
|
|
17090
|
-
}, this.
|
|
17101
|
+
}, this.configSettings = void 0, this.confirmedEventInfo = void 0, this.isClosing = !1;
|
|
17091
17102
|
}
|
|
17092
17103
|
connectedCallback() {
|
|
17093
17104
|
N("[nylas-confirmed-event-card] Component connected");
|
|
@@ -17103,14 +17114,14 @@ const E5 = te(class extends ne {
|
|
|
17103
17114
|
}
|
|
17104
17115
|
render() {
|
|
17105
17116
|
var e, n;
|
|
17106
|
-
return
|
|
17117
|
+
return g(ye, { key: "a5fbf79c6b7f27046b599c16d231226ff9c88f84", part: "ncec" }, g("div", { key: "06c6f5fa4e75d9ce01dc9145259bf4bfddf33624", class: "nylas-confirmed-event-card", part: "ncec__card" }, g("div", { key: "11a58aa7dba6da706cd35791c58442b022f97939", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, g("calendar-cancel-icon", { key: "752da0991cdcfa12dc9c7dc1020ea9388f11c30e" })), g("h3", { key: "238934bc1f8bcb137e6e33eb66afb5bee01749b7", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, R.t("confirmedEventCardTitle"), "!"), g("div", { key: "3a3d8ad8302ad54b528c37f0eb25d12590bb4f0d", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, R.t("confirmedEventCardDescription"), " ", ((n = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : n.name) || "the participants", "."), g("div", { key: "49c69f2f9c01e4e775cb8caadbca213424e0a952", class: "nylas-confirmed-event-card__cta" }, g("button-component", { key: "e6e75c57f294d688a108df09ffc9daf849ef6319", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${R.t("closingButton")}...` : `${R.t("closeButton")}`))));
|
|
17107
17118
|
}
|
|
17108
17119
|
static get style() {
|
|
17109
17120
|
return RC;
|
|
17110
17121
|
}
|
|
17111
17122
|
}, [1, "nylas-confirmed-event-card", {
|
|
17112
|
-
confirmedEventInfo: [16],
|
|
17113
17123
|
configSettings: [16],
|
|
17124
|
+
confirmedEventInfo: [16],
|
|
17114
17125
|
isClosing: [32]
|
|
17115
17126
|
}]);
|
|
17116
17127
|
OC([
|
|
@@ -17154,7 +17165,7 @@ const NC = ".sc-person-icon-h{display:flex}", FC = NC, jC = te(class extends ne
|
|
|
17154
17165
|
super(), this.__registerHost(), this.width = "14", this.height = "16";
|
|
17155
17166
|
}
|
|
17156
17167
|
render() {
|
|
17157
|
-
return
|
|
17168
|
+
return g("svg", { key: "bf77344f510a860cf3b05daea1254dbe06465bcf", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "6704d143c071b2de1ce05a823bb98ba59fbffba7", d: "M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z", fill: "currentColor" }));
|
|
17158
17169
|
}
|
|
17159
17170
|
static get style() {
|
|
17160
17171
|
return FC;
|
|
@@ -17218,7 +17229,7 @@ js((t) => {
|
|
|
17218
17229
|
}, (t, e) => {
|
|
17219
17230
|
t.setUTCDate(t.getUTCDate() + e);
|
|
17220
17231
|
}, (t, e) => (e - t) / fs, (t) => Math.floor(t / fs));
|
|
17221
|
-
const HC = ':host{display:block;min-height:444px}@media screen and (max-width: 768px){:host{min-height:auto}}.nylas-date-picker{display:flex;gap:1rem;flex-direction:column}.header{margin:0 0.5rem;height:48px}.header h2{font-size:1.3125rem;font-weight:400;line-height:1rem;color:var(--nylas-base-800)}.header h2 strong{font-weight:600}.title{margin:0 -1.25rem;display:flex;flex-direction:column;padding:0 1.5rem;gap:0.5rem;border-bottom:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family)}.title h1{margin-bottom:0;font-size:18px;line-height:20px;font-weight:600;display:flex;gap:0.5rem;align-items:center}.title p{margin-top:0;font-size:16px;display:flex;gap:0.5rem;align-items:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.dates{display:grid;justify-items:center;grid-template-columns:repeat(7, 1fr);gap:0.5rem;margin-bottom:24px}.dates .date{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:48px;width:48px;min-width:2rem;min-height:2rem;cursor:pointer;border-radius:var(--nylas-border-radius-2x);font-size:16px;font-weight:600;font-family:inherit;color:var(--nylas-base-text);background-color:var(--nylas-base-100);cursor:pointer;border:none}@media screen and (max-width: 412px){.dates .date{width:38px;height:38px;min-width:none}}.dates .date:hover:not(:disabled){box-shadow:0 0 0 2px var(--nylas-base-500) inset}.dates .date.date.current-month{color:var(--nylas-base-800)}.dates .date.date.selected{background-color:var(--nylas-primary);color:var(--nylas-base-0);font-weight:700}.dates .date.date.day-skeleton{color:var(--nylas-base-300)}.dates .date:disabled{color:var(--nylas-base-300);background-color:transparent;font-weight:400;cursor:not-allowed}.dates .day{font-size:12px;color:var(--nylas-base-800);font-weight:600;letter-spacing:0.5px;height:32px;display:flex;align-items:center}@media screen and (max-width: 768px){.dates .day{font-size:14px}}.dates .date.day-skeleton{height:48px;width:48px;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out;background-color:var(--nylas-base-50)}@media screen and (max-width: 412px){.dates .date.day-skeleton{width:38px;height:38px;min-width:none}}.dates .date.current-day::after{content:"";position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background-color:var(--nylas-base-500)}.dates .date.current-day.selected::after{background-color:var(--nylas-base-100)}.pagination{display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-width:92px}.pagination .chevron-right{transform:rotate(180deg)}.pagination .button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);background-color:transparent;color:var(--nylas-base-800);cursor:pointer;border:none}.pagination .button:hover{background-color:var(--nylas-base-50)}.pagination .button:active{background-color:var(--nylas-base-100)}.pagination .button:disabled{background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.flex-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:var(--nylas-base-500)}', qC = HC;
|
|
17232
|
+
const HC = ':host{display:block;min-height:444px;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}@media screen and (max-width: 768px){:host{min-height:auto}}.nylas-date-picker{display:flex;gap:1rem;flex-direction:column}.header{margin:0 0.5rem;height:48px}.header h2{font-size:1.3125rem;font-weight:400;line-height:1rem;color:var(--nylas-base-800)}.header h2 strong{font-weight:600}.title{margin:0 -1.25rem;display:flex;flex-direction:column;padding:0 1.5rem;gap:0.5rem;border-bottom:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family)}.title h1{margin-bottom:0;font-size:18px;line-height:20px;font-weight:600;display:flex;gap:0.5rem;align-items:center}.title p{margin-top:0;font-size:16px;display:flex;gap:0.5rem;align-items:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.dates{display:grid;justify-items:center;grid-template-columns:repeat(7, 1fr);gap:0.5rem;margin-bottom:24px}.dates .date{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:48px;width:48px;min-width:2rem;min-height:2rem;cursor:pointer;border-radius:var(--nylas-border-radius-2x);font-size:16px;font-weight:600;font-family:inherit;color:var(--nylas-base-text);background-color:var(--nylas-base-100);cursor:pointer;border:none}@media screen and (max-width: 412px){.dates .date{width:38px;height:38px;min-width:none}}.dates .date:hover:not(:disabled){box-shadow:0 0 0 2px var(--nylas-base-500) inset}.dates .date.date.current-month{color:var(--nylas-base-800)}.dates .date.date.selected{background-color:var(--nylas-primary);color:var(--nylas-base-0);font-weight:700}.dates .date.date.day-skeleton{color:var(--nylas-base-300)}.dates .date:disabled{color:var(--nylas-base-300);background-color:transparent;font-weight:400;cursor:not-allowed}.dates .day{font-size:12px;color:var(--nylas-base-800);font-weight:600;letter-spacing:0.5px;height:32px;display:flex;align-items:center}@media screen and (max-width: 768px){.dates .day{font-size:14px}}.dates .date.day-skeleton{height:48px;width:48px;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out;background-color:var(--nylas-base-50)}@media screen and (max-width: 412px){.dates .date.day-skeleton{width:38px;height:38px;min-width:none}}.dates .date.current-day::after{content:"";position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background-color:var(--nylas-base-500)}.dates .date.current-day.selected::after{background-color:var(--nylas-base-100)}.pagination{display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-width:92px}.pagination .chevron-right{transform:rotate(180deg)}.pagination .button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);background-color:transparent;color:var(--nylas-base-800);cursor:pointer;border:none}.pagination .button:hover{background-color:var(--nylas-base-50)}.pagination .button:active{background-color:var(--nylas-base-100)}.pagination .button:disabled{background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.flex-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:var(--nylas-base-500)}', qC = HC;
|
|
17222
17233
|
var GC = function(t, e, n, r) {
|
|
17223
17234
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
17224
17235
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -17233,7 +17244,7 @@ var GC = function(t, e, n, r) {
|
|
|
17233
17244
|
};
|
|
17234
17245
|
const T5 = te(class extends ne {
|
|
17235
17246
|
constructor() {
|
|
17236
|
-
super(), this.__registerHost(), this.__attachShadow(), this.dateSelected = X(this, "dateSelected", 7), this.monthChanged = X(this, "monthChanged", 7), this.selectableDates = void 0, this.
|
|
17247
|
+
super(), this.__registerHost(), this.__attachShadow(), this.dateSelected = X(this, "dateSelected", 7), this.monthChanged = X(this, "monthChanged", 7), this.selectableDates = void 0, this.configSettings = void 0, this.selectedDate = void 0, this.selectedLanguage = void 0, this.isLoading = void 0, this.eventDuration = void 0, this.month = this.selectedDate || /* @__PURE__ */ new Date(), this.dates = this.getDates(), this.disableNextMonthButton = !1;
|
|
17237
17248
|
}
|
|
17238
17249
|
configSettingsChanged(e) {
|
|
17239
17250
|
var o;
|
|
@@ -17272,7 +17283,7 @@ const T5 = te(class extends ne {
|
|
|
17272
17283
|
}
|
|
17273
17284
|
render() {
|
|
17274
17285
|
var e, n, r, i, o, s, a;
|
|
17275
|
-
return
|
|
17286
|
+
return g(ye, { key: "06638094c3e21b094641e5adbf08762b346fc10e", part: "ndp" }, g("div", { key: "370143e471513ab59c49dc369208365e5dcd1865", class: "nylas-date-picker" }, g("div", { key: "9b84a00eada140f2f142dec17a8418854160be87", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? g("h1", null, (n = this.configSettings) == null ? void 0 : n.name) : ((i = (r = this.configSettings) == null ? void 0 : r.organizer) == null ? void 0 : i.name) && g("h1", null, g("person-icon", null), ((s = (o = this.configSettings) == null ? void 0 : o.organizer) == null ? void 0 : s.name) || "Organizer"), g("p", { key: "a64fee4f4c6886b31620cdc62de0769e3908b634" }, g("clock-icon", { key: "e6c4d1cf6fd0b45e9824f26cb4f1a9fd828347d3" }), this.eventDuration ? t7(this.eventDuration) : `- ${R.t("time.minutes")}`)), g("div", { key: "7568638d6af0fa03f84cf4b32b418c6b4f4df0de", class: "header flex-row" }, g("h2", { key: "7b656957b240be95038151d5ca2089967b3704cd", part: "ndp__month-header" }, g("strong", { key: "cea1b1a9fc986885cb1425075364bb6b97b0d0e2" }, n7(this.month.toLocaleDateString(void 0, { month: "long" }).toLocaleLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), g("div", { key: "daf2f52ae4ca9e381fefadf53b9bf9f7a2c47987", class: "pagination" }, g("button", { key: "e182f6af777a122aaaa323fbada73258fd8bcf90", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: !((a = this.selectableDates) != null && a.length) || this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, g("chevron-icon", { key: "a9703cc9a0cbfc72e800f72a56233467bff2e5f9" })), g("button", { key: "bcafc749f794352746d64974e8e564a5db1125a4", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, g("chevron-icon", { key: "5fc036471ed8f1caabe79e8489321070d9b6eae3" })))), g("div", { key: "701d99cc45475a8b9217893bfa56c0fa80f61520", class: "dates" }, [
|
|
17276
17287
|
R.t("days.sunday"),
|
|
17277
17288
|
R.t("days.monday"),
|
|
17278
17289
|
R.t("days.tuesday"),
|
|
@@ -17280,13 +17291,13 @@ const T5 = te(class extends ne {
|
|
|
17280
17291
|
R.t("days.thursday"),
|
|
17281
17292
|
R.t("days.friday"),
|
|
17282
17293
|
R.t("days.saturday")
|
|
17283
|
-
].map((u) =>
|
|
17294
|
+
].map((u) => g("div", { class: "day", part: "ndp__day" }, u)), this.dates.map((u, c) => {
|
|
17284
17295
|
var l;
|
|
17285
17296
|
const d = this.isDisabled(u, this.selectableDates);
|
|
17286
|
-
return this.isLoading ?
|
|
17297
|
+
return this.isLoading ? g("button", { disabled: !0, class: {
|
|
17287
17298
|
"date day-skeleton": !0,
|
|
17288
17299
|
"current-month": na(u, this.month)
|
|
17289
|
-
}, style: { animationDelay: `${c * 20}ms` }, part: "ndp__date ndp__date--disabled" }, u.getDate()) :
|
|
17300
|
+
}, style: { animationDelay: `${c * 20}ms` }, part: "ndp__date ndp__date--disabled" }, u.getDate()) : g("button", { class: {
|
|
17290
17301
|
date: !0,
|
|
17291
17302
|
selected: !!(this.selectedDate && cn(u, this.selectedDate) && this.selectableDates && ((l = this.selectableDates) == null ? void 0 : l.length) > 0),
|
|
17292
17303
|
"current-day": cn(u, /* @__PURE__ */ new Date()),
|
|
@@ -17305,8 +17316,8 @@ const T5 = te(class extends ne {
|
|
|
17305
17316
|
}
|
|
17306
17317
|
}, [1, "nylas-date-picker", {
|
|
17307
17318
|
selectableDates: [16],
|
|
17308
|
-
selectedDate: [16],
|
|
17309
17319
|
configSettings: [16],
|
|
17320
|
+
selectedDate: [16],
|
|
17310
17321
|
selectedLanguage: [1, "selected-language"],
|
|
17311
17322
|
isLoading: [4, "is-loading"],
|
|
17312
17323
|
eventDuration: [2, "event-duration"],
|
|
@@ -17398,9 +17409,9 @@ const A5 = te(class extends ne {
|
|
|
17398
17409
|
e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
|
|
17399
17410
|
}
|
|
17400
17411
|
render() {
|
|
17401
|
-
return
|
|
17412
|
+
return g(ye, { key: "00514f43a6b2052ce2a4144917ccc5adc965a94a", part: "nfbf" }, g("div", { key: "4271697a749f74d3d62f611df6841dc4d7e4ef4d", class: "card-wrapper", part: "nfbfc__card" }, g("div", { key: "59271c12c04a4f78fac68534ec66b24ac9803784", class: "close-button" }, g("button-component", { key: "de7ced90803da24ff46d2dc30f7e925b6fb760a8", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, g("close-icon", { key: "3f64b2db3958bf082829310126566ef58ae54f46" }))), g("div", { key: "526d959d10a00d49d66d66fe3a56bce3a03893f4", class: "header" }, g("h2", { key: "699f00cca09366e19081e0972a76a2f67d471ecc", slot: "card-title", part: "nfbf__title" }, R.t("feedbackFormTitle"))), g("div", { key: "95062b4d3557eef49fac7246526f0d413acdd7ff", class: "description title-desc" }, g("p", { key: "6806a1ae323b2f67c5fcacbb0238df86a4f32bce" }, R.t("feedbackFormDescription"))), g("textarea-component", { key: "1135f11f19f5cca1f814812c606b39c3a828bf9b", label: R.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: R.t("feedbackMessagePlaceholder") }), g("div", { key: "388f7897c0eb2a9d87d25b98b49d3f60363e0108", class: "description footer-desc" }, g("p", { key: "ab9ba37f8e5533b8480c223ad668ffb91b95ab7e" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", g("a", { key: "c1a380ed74cb1c6081ca7c557e761eab7ae5ab9d", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), g("div", { key: "d8da33e015c718e6c8cf59b407eb7df7efaa26f9", class: {
|
|
17402
17413
|
footer: !0
|
|
17403
|
-
} },
|
|
17414
|
+
} }, g("button-component", { key: "52f9c1a0a54907f9b83167387247fc3c979ad498", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${R.t("feedbackModalCloseButton")}`), g("button-component", { key: "819fc5952960c841c3a6b46af127699cd5f69c88", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${R.t("feedbackModalSubmitButton")}`))));
|
|
17404
17415
|
}
|
|
17405
17416
|
get host() {
|
|
17406
17417
|
return this;
|
|
@@ -17459,7 +17470,7 @@ const JC = ".sc-translate-icon-h{display:flex}", XC = JC, QC = te(class extends
|
|
|
17459
17470
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
17460
17471
|
}
|
|
17461
17472
|
render() {
|
|
17462
|
-
return
|
|
17473
|
+
return g("svg", { key: "a30c1511ca0c16efbba06eeafc1507f4d2e5e723", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, g("path", { key: "2ea649b4607a9a990230be8543af0de419d68050", fill: "currentColor", d: "M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z" }));
|
|
17463
17474
|
}
|
|
17464
17475
|
static get style() {
|
|
17465
17476
|
return XC;
|
|
@@ -17479,7 +17490,7 @@ function $5() {
|
|
|
17479
17490
|
}
|
|
17480
17491
|
});
|
|
17481
17492
|
}
|
|
17482
|
-
const eS =
|
|
17493
|
+
const eS = ':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-locale-switch{display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-left:none;border-right:none;color:var(--nylas-base-50);font-size:14px;font-weight:600;cursor:pointer;transition:all 0.2s ease-in-out;font-family:inherit}@media screen and (max-width: 768px){.nylas-locale-switch{font-size:16px}}.select-wrapper{display:flex;align-items:center;gap:0.5rem}select{border:none;background:transparent;cursor:pointer;outline:none;background-color:transparent;margin:0 0 1px;padding:4px;vertical-align:middle}select#timezone{width:140px}select#language{width:80px}span.timezone-label{display:flex;width:-webkit-fill-available;justify-content:space-between}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){border:none;padding:10px}select-dropdown::part(sd_dropdown-content){max-width:306px}', tS = eS;
|
|
17483
17494
|
var nS = function(t, e, n, r) {
|
|
17484
17495
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
17485
17496
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -17514,12 +17525,12 @@ const I5 = te(class extends ne {
|
|
|
17514
17525
|
}
|
|
17515
17526
|
getTimezoneLabelHTML(e) {
|
|
17516
17527
|
const n = JE(e);
|
|
17517
|
-
return
|
|
17528
|
+
return g("span", { class: "timezone-label", style: {
|
|
17518
17529
|
display: "flex",
|
|
17519
17530
|
alignItems: "center",
|
|
17520
17531
|
justifyContent: "space-between",
|
|
17521
17532
|
width: "-webkit-fill-available"
|
|
17522
|
-
} }, ei[e], " ",
|
|
17533
|
+
} }, ei[e], " ", g("span", { class: "timezone-offset", style: {
|
|
17523
17534
|
fontSize: "14px",
|
|
17524
17535
|
fontWeight: "400",
|
|
17525
17536
|
color: "var(--nylas-base-500)"
|
|
@@ -17534,13 +17545,13 @@ const I5 = te(class extends ne {
|
|
|
17534
17545
|
label: Xd[r],
|
|
17535
17546
|
value: r
|
|
17536
17547
|
}));
|
|
17537
|
-
return
|
|
17548
|
+
return g(ye, { key: "8e8ec3819083fb25cb8620f14aa1f140a995ec89" }, g("div", { key: "45aaebcd9f80d54dc01b5d611094fa05225c8331", class: "nylas-locale-switch", part: "nls" }, g("div", { key: "47d8166b91a3ef742b14e5783338c3701be85eb7", class: {
|
|
17538
17549
|
"select-wrapper": !0,
|
|
17539
17550
|
timezone: !0
|
|
17540
|
-
}, part: "nls__timezone" },
|
|
17551
|
+
}, part: "nls__timezone" }, g("select-dropdown", { key: "71edd2352b6067a18b9ba676495e59c954e6c07d", name: "timezone", options: e, defaultSelectedOption: e.find((r) => r.value == this.selectedTimezone), exportparts: "sd_dropdown: nls__timezone-dropdown, sd_dropdown-button: nls__timezone-drop-button, sd_dropdown-button-selected-label: nls__timezone-drop-button-selected-label, sd_dropdown-content: nls__timezone-drop-content, sd_dropdown_label: nls__timezone-drop-label" }, g("span", { key: "f48e3c11a1981e32b75f5425570db0b584db7f51", slot: "select-icon" }, g("globe-icon", { key: "6b6721c8d88d715dbcb52d2e2750c22015ac252c", width: "20", height: "20" })))), g("div", { key: "fe652536d637774336cad11a65bba7bfd8636972", class: {
|
|
17541
17552
|
"select-wrapper": !0,
|
|
17542
17553
|
language: !0
|
|
17543
|
-
}, part: "nls__language" },
|
|
17554
|
+
}, part: "nls__language" }, g("select-dropdown", { key: "f83f8dbf84878fb1670d4a6f59b045c111420ce1", name: "language", options: n, defaultSelectedOption: n.find((r) => r.value == this.selectedLanguage), exportparts: "sd_dropdown: nls__language-dropdown, sd_dropdown-button: nls__language-drop-button, sd_dropdown-content: nls__language-drop-content, sd_dropdown_label: nls__language-drop-label" }, g("span", { key: "3d66833265053e81c9333b5d36ae822ed3a17878", slot: "select-icon" }, g("translate-icon", { key: "30121c5733873930e7e1e3bdaedf11bd2f258139", width: "20", height: "20" }))))));
|
|
17544
17555
|
}
|
|
17545
17556
|
static get style() {
|
|
17546
17557
|
return tS;
|
|
@@ -17601,7 +17612,7 @@ const iS = ".sc-nylas-logo-h{display:flex}", oS = iS, sS = te(class extends ne {
|
|
|
17601
17612
|
super(), this.__registerHost(), this.width = "69", this.height = "24";
|
|
17602
17613
|
}
|
|
17603
17614
|
render() {
|
|
17604
|
-
return
|
|
17615
|
+
return g("svg", { key: "12dffc0c444183dfd3bb8593076a6b022de4654b", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("g", { key: "89545db6a2731faffdf62b9f0826211c9827af35", "clip-path": "url(#clip0_455_3543)" }, g("path", { key: "bc169c74819239b2c40b3730a445f45d1a16f445", d: "M15.8092 3.03248C14.6497 1.86996 13.1076 1.23047 11.4646 1.23047C9.82156 1.23047 8.27753 1.86996 7.11999 3.03248L0.835347 9.33381C0.686846 9.4827 0.60498 9.68123 0.60498 9.89312C0.60498 10.105 0.686846 10.3035 0.835347 10.4524C0.983848 10.6013 1.18185 10.6834 1.39318 10.6834C1.60451 10.6834 1.80251 10.6013 1.95101 10.4524L8.23374 4.15111C10.0139 2.36627 12.9134 2.36627 14.6935 4.15111C16.4736 5.93785 16.4756 8.84322 14.6935 10.6281L8.4108 16.9275C8.10428 17.2348 8.10428 17.7368 8.4108 18.0461C8.5593 18.195 8.75731 18.2771 8.96863 18.2771C9.17996 18.2771 9.37796 18.195 9.52646 18.0461L15.8092 11.7467C16.9687 10.5841 17.6064 9.03793 17.6064 7.39053C17.6064 5.74314 16.9687 4.19501 15.8092 3.03439V3.03248Z", fill: "currentColor" }), g("path", { key: "456cd298652217764f8486bca01860c4f1132e58", d: "M14.9296 7.39038C14.9296 6.46074 14.5698 5.58837 13.9148 4.93361C12.5631 3.57828 10.3641 3.57828 9.01239 4.93361L0.663961 13.3023C0.51546 13.4512 0.433594 13.6497 0.433594 13.8616C0.433594 14.0735 0.51546 14.272 0.663961 14.4209C0.812462 14.5698 1.01046 14.6519 1.22179 14.6519C1.43312 14.6519 1.63112 14.5698 1.77962 14.4209L10.0367 6.1515L10.05 6.13623C10.0747 6.10759 10.1014 6.07705 10.128 6.05033C10.1585 6.01978 10.1928 5.99115 10.2251 5.96252L10.2442 5.94534C10.9886 5.31349 12.1119 5.3593 12.8011 6.05033C13.4903 6.74135 13.536 7.78171 12.9705 8.53192L12.9648 8.53955C12.9058 8.61591 12.8544 8.67699 12.8011 8.73044C12.7497 8.78198 12.6906 8.83352 12.6069 8.90033L4.45264 17.0991C4.30414 17.248 4.22227 17.4465 4.22227 17.6584C4.22227 17.8703 4.30414 18.0689 4.45264 18.2177C4.60114 18.3666 4.79914 18.4487 5.01047 18.4487C5.2218 18.4487 5.4198 18.3666 5.5683 18.2177L13.9167 9.84716C14.5698 9.1924 14.9315 8.31812 14.9315 7.39038H14.9296Z", fill: "currentColor" }), g("path", { key: "99e86fdeed7fd4e6440e749884432df26dfe1d37", d: "M10.6821 9.11238C10.4727 9.01694 10.2861 8.88904 10.1281 8.7306C9.97008 8.57216 9.84252 8.38508 9.74733 8.1751L9.69021 8.05103L0.467916 17.2978C0.287049 17.4792 0.174721 17.7082 0.149971 17.9411C0.125221 18.1778 0.19376 18.3897 0.344165 18.5405C0.471724 18.6684 0.65259 18.739 0.850592 18.739C1.11142 18.739 1.37796 18.6207 1.58358 18.4145L10.8059 9.16774L10.6821 9.11047V9.11238Z", fill: "currentColor" }), g("path", { key: "68231e9e8a5f86804d3590ca240bcaf362df1fa6", d: "M68.401 10.6185C68.2126 10.2692 67.9593 9.97334 67.6433 9.73854C67.3235 9.49993 66.956 9.31094 66.5486 9.17541C66.1316 9.03606 65.7033 8.91771 65.2749 8.81844C64.7951 8.70582 64.3039 8.57983 63.8165 8.44811C63.3196 8.31258 62.9065 8.14269 62.5905 7.94225C62.4743 7.88689 62.3391 7.76663 62.3391 7.50129C62.3391 7.39821 62.3639 7.29704 62.4153 7.19587L62.4248 7.18059C62.5352 7.02216 62.7142 6.8828 62.975 6.75109C63.234 6.62128 63.609 6.55829 64.1231 6.55829C64.5286 6.55829 64.877 6.61365 65.1569 6.72436C65.4348 6.83508 65.6652 6.96871 65.8442 7.12524C66.0212 7.27986 66.1659 7.45357 66.2782 7.63873C66.3563 7.76854 66.4267 7.89262 66.4858 8.00525L68.2754 6.84081C68.1669 6.59456 68.0146 6.33495 67.8204 6.0677C67.6033 5.768 67.3254 5.4893 66.9922 5.23732C66.659 4.98534 66.2516 4.77345 65.7813 4.60929C65.3111 4.44512 64.7532 4.36304 64.1231 4.36304C63.3844 4.36304 62.7599 4.46421 62.2706 4.66083C61.7813 4.85935 61.3815 5.09988 61.0845 5.37667C60.7875 5.65346 60.5628 5.95125 60.4143 6.2605C60.2639 6.57547 60.1611 6.85799 60.1078 7.10233C60.0945 7.18059 60.0812 7.27031 60.0678 7.36767C60.0545 7.4593 60.0469 7.5452 60.0469 7.62537C60.0469 8.13314 60.1745 8.56074 60.4239 8.89671C60.679 9.24222 61.0045 9.53429 61.391 9.76336C61.7813 9.99624 62.2116 10.1852 62.6704 10.3227C63.1388 10.462 63.5862 10.5823 64.0012 10.6796C64.4067 10.777 64.7932 10.8782 65.1531 10.9774C65.5224 11.0786 65.8289 11.2122 66.0631 11.3745C66.2801 11.5425 66.3887 11.7448 66.3887 11.9777C66.3887 12.2278 66.2916 12.4263 66.0993 12.5695C65.9279 12.6954 65.7261 12.7985 65.4958 12.8711C65.273 12.9436 65.0407 12.9913 64.8066 13.0142C64.58 13.0352 64.3915 13.0467 64.2468 13.0467C63.8032 13.0467 63.4224 13.0028 63.1197 12.915C62.8151 12.8272 62.5638 12.7241 62.3734 12.6057C62.1811 12.4874 62.0288 12.3614 61.9222 12.2316C61.8213 12.1094 61.747 12.0082 61.7014 11.9319L61.4957 11.6303L59.708 12.7928C59.8508 13.0161 60.0298 13.2643 60.2392 13.5296C60.4772 13.8293 60.7837 14.1138 61.153 14.3734C61.5224 14.633 61.966 14.8525 62.4724 15.0243C62.9788 15.1961 63.5748 15.282 64.2468 15.282C64.797 15.282 65.2901 15.2324 65.7166 15.137C66.1412 15.0396 66.5162 14.9117 66.8285 14.7552C67.1388 14.6005 67.4015 14.4192 67.6109 14.2149C67.8223 14.0107 67.9974 13.8026 68.1326 13.6003C68.4563 13.1135 68.6409 12.5504 68.6828 11.9262C68.6828 11.4069 68.5876 10.9641 68.401 10.6166V10.6185Z", fill: "currentColor" }), g("path", { key: "80b2550211f60e218c5f52f975a060e3ac4ea84a", d: "M26.3585 4.27905C23.7901 4.27905 21.6997 6.37504 21.6997 8.95017V15.0701H23.9291V8.95017C23.9291 7.6082 25.0181 6.5163 26.3565 6.5163C27.695 6.5163 28.784 7.6082 28.784 8.95017V15.0701H31.0134V8.95017C31.0134 6.37504 28.9229 4.27905 26.3546 4.27905H26.3585Z", fill: "currentColor" }), g("path", { key: "b5db41daab85f0ffd7738f492ede6189237b7d5f", d: "M53.4522 4.27905C50.4251 4.27905 47.9634 6.74728 47.9634 9.78245C47.9634 12.8176 50.427 15.2859 53.4522 15.2859C54.5545 15.2859 55.6188 14.9594 56.5288 14.3409L56.7116 14.2169V15.0682H58.941V9.78245C58.941 6.74728 56.4793 4.27905 53.4522 4.27905ZM53.4522 13.0505C51.655 13.0505 50.1928 11.5845 50.1928 9.78245C50.1928 7.98044 51.655 6.51439 53.4522 6.51439C55.2494 6.51439 56.7116 7.98044 56.7116 9.78245C56.7116 11.5845 55.2494 13.0505 53.4522 13.0505Z", fill: "currentColor" }), g("path", { key: "9fc6c3fe5eb5f86e4e53126c98958f36a128030f", d: "M45.5795 10.6166V0.356201H43.3501V10.6166C43.3501 13.1517 45.3758 15.2228 47.8908 15.2858V13.0486C46.6057 12.9875 45.5795 11.9204 45.5795 10.6166Z", fill: "currentColor" }), g("path", { key: "dcbcc1f9ad3d20c137644553a90ec0afc7f6bdf9", d: "M39.5428 4.4967V10.63C39.5428 11.6761 38.8669 12.621 37.9016 12.9284C37.1249 13.1746 36.3157 13.0486 35.6817 12.5829C35.0592 12.1247 34.6879 11.3917 34.6879 10.6186V4.4967H32.4585V10.5995C32.4585 12.7165 33.8388 14.57 35.8131 15.1084C37.0354 15.4424 38.2995 15.2973 39.3695 14.7037L39.5428 14.6063V14.9747C39.5428 16.2766 38.5166 17.3437 37.2315 17.4067V19.6439C39.7465 19.5809 41.7722 17.5117 41.7722 14.9747V4.4967H39.5428Z", fill: "currentColor" })), g("defs", { key: "569df0349b4a24ea2d0a0bee9788b0b8911dcf39" }, g("clipPath", { key: "7a24bd2f656eba24c53b46b1b65b6ae5ea11c378", id: "clip0_455_3543" }, g("rect", { key: "60a57936d17acf21b9c58a177f17f3ce3fede7f1", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
|
|
17605
17616
|
}
|
|
17606
17617
|
static get style() {
|
|
17607
17618
|
return oS;
|
|
@@ -17626,7 +17637,7 @@ const uS = ".sc-warning-icon-h{display:flex}", cS = uS, lS = te(class extends ne
|
|
|
17626
17637
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
17627
17638
|
}
|
|
17628
17639
|
render() {
|
|
17629
|
-
return
|
|
17640
|
+
return g("svg", { key: "78a733b398ff7718a9a80331bb07830b5f27f1f6", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "6bde2554d33fffe3f76763fcb4372fb1ec7a1c75", d: "M7.68551 1.35232L1.12678 13.2773C0.576954 14.277 1.3002 15.5002 2.4411 15.5002H15.5586C16.6995 15.5002 17.4227 14.277 16.8729 13.2773L10.3142 1.35232C9.74426 0.316153 8.2554 0.316157 7.68551 1.35232ZM8.99982 5.25016C9.41403 5.25016 9.74982 5.58595 9.74982 6.00016V10.0002C9.74982 10.4144 9.41403 10.7502 8.99982 10.7502C8.5856 10.7502 8.24982 10.4144 8.24982 10.0002V6.00016C8.24982 5.58595 8.5856 5.25016 8.99982 5.25016ZM9.74982 12.2502C9.74982 12.6644 9.41403 13.0002 8.99982 13.0002C8.5856 13.0002 8.24982 12.6644 8.24982 12.2502C8.24982 11.8359 8.5856 11.5002 8.99982 11.5002C9.41403 11.5002 9.74982 11.8359 9.74982 12.2502Z", fill: "currentColor" }));
|
|
17630
17641
|
}
|
|
17631
17642
|
static get style() {
|
|
17632
17643
|
return cS;
|
|
@@ -17700,7 +17711,7 @@ const dS = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
|
|
|
17700
17711
|
this.notifications = this.notifications.filter((n) => n.id !== e);
|
|
17701
17712
|
}
|
|
17702
17713
|
render() {
|
|
17703
|
-
return
|
|
17714
|
+
return g(ye, { key: "03f95b47c77afb69a2696473c2bf8c3f1e1ed44a" }, g(Ra, { key: "990afe9475e36dbae84a70266ef0b5188d2011de" }, this.notifications.map((e) => g("div", { class: `notif ${e.type}`, key: e.id }, g("div", { class: "content" }, g("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && g("warning-icon", null)), g("span", { class: "message" }, g("span", { class: "title" }, e.title), e.description && g("span", { class: "description" }, e.description))), g("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, g("close-icon", null)))), g("slot", { key: "49a5c13a306626b5bba79c443bb8501fe50c7ea3" })));
|
|
17704
17715
|
}
|
|
17705
17716
|
get host() {
|
|
17706
17717
|
return this;
|
|
@@ -17753,7 +17764,7 @@ const D5 = te(class extends ne {
|
|
|
17753
17764
|
this.organizerConfirmationBookingId && !this.isLoading && this.confirmBookingButtonClicked.emit({ bookingId: this.organizerConfirmationBookingId, host: this.host, errorHandler: e });
|
|
17754
17765
|
}, this.handleRejectBookingButtonClicked = () => {
|
|
17755
17766
|
this.action = "reject", this.organizerConfirmationBookingId && !this.isLoading && this.rejectBookingButtonClicked.emit({ bookingId: this.organizerConfirmationBookingId, host: this.host });
|
|
17756
|
-
}, this.
|
|
17767
|
+
}, this.configSettings = void 0, this.isLoading = void 0, this.organizerConfirmationBookingId = void 0, this.selectedLanguage = navigator.language, this.action = null;
|
|
17757
17768
|
}
|
|
17758
17769
|
connectedCallback() {
|
|
17759
17770
|
}
|
|
@@ -17770,11 +17781,11 @@ const D5 = te(class extends ne {
|
|
|
17770
17781
|
}
|
|
17771
17782
|
render() {
|
|
17772
17783
|
var e, n, r, i, o, s, a, u, c, d, l, f;
|
|
17773
|
-
return
|
|
17784
|
+
return g(ye, { key: "c722e5ad0c458060b988e0a49fde079d8258125e", part: "nmcc" }, g("div", { key: "758b60b6834f7150a30434538707f321754f9f8b", class: "event-card-wrapper", part: "nmccc__card" }, g("div", { key: "675e8ab2297fefe3840eb06b536706e216cd525a", class: "calendar-icon" }, g("calendar-check-icon", { key: "56768b41e1abebb836619f1da25fdba7b0b32203" })), g("div", { key: "a026a0daa62a4bf5054682a93c19f296b4761d31", class: "booked-event-header" }, g("h2", { key: "38ba7f91abcde16f459f50a3638245e2c994f4f5", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${R.t("bookingPendingTitle")}!`)), g("div", { key: "4ca2d5bd6cf71f624bb2eed64c0f8c44089adc0a", class: "manage-booking-description" }, g("p", { key: "6584d4ac6e59c6b4156f886a6903d05dcef37c3a" }, R.t("bookingPendingnDescription"))), g("div", { key: "805a279cbff4f92eb91f150146a6d5688945ffe6", class: {
|
|
17774
17785
|
footer: !0,
|
|
17775
17786
|
"no-footer": ((n = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : n.hide_cancellation_options) && ((i = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : i.hide_rescheduling_options),
|
|
17776
17787
|
"no-template-cols": ((s = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : s.hide_cancellation_options) || ((u = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : u.hide_rescheduling_options)
|
|
17777
|
-
} }, !((d = (c = this.configSettings) == null ? void 0 : c.scheduler) != null && d.hide_cancellation_options) &&
|
|
17788
|
+
} }, !((d = (c = this.configSettings) == null ? void 0 : c.scheduler) != null && d.hide_cancellation_options) && g("button-component", { variant: "destructive", onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === "reject", part: "nmcc__button-outline nmcc__cancel-cta" }, `${R.t("rejectBookingButton")}`), !((f = (l = this.configSettings) == null ? void 0 : l.scheduler) != null && f.hide_rescheduling_options) && g("button-component", { variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${R.t("confirmBookingButton")}`))));
|
|
17778
17789
|
}
|
|
17779
17790
|
get host() {
|
|
17780
17791
|
return this;
|
|
@@ -17783,9 +17794,9 @@ const D5 = te(class extends ne {
|
|
|
17783
17794
|
return gS;
|
|
17784
17795
|
}
|
|
17785
17796
|
}, [1, "nylas-organizer-confirmation-card", {
|
|
17786
|
-
organizerConfirmationBookingId: [1, "organizer-confirmation-booking-id"],
|
|
17787
17797
|
configSettings: [8, "config-settings"],
|
|
17788
17798
|
isLoading: [4, "is-loading"],
|
|
17799
|
+
organizerConfirmationBookingId: [1, "organizer-confirmation-booking-id"],
|
|
17789
17800
|
selectedLanguage: [1, "selected-language"],
|
|
17790
17801
|
action: [32],
|
|
17791
17802
|
resetAction: [64]
|
|
@@ -17837,7 +17848,7 @@ function yS() {
|
|
|
17837
17848
|
}
|
|
17838
17849
|
});
|
|
17839
17850
|
}
|
|
17840
|
-
const vS =
|
|
17851
|
+
const vS = ':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;display:block;position:relative;height:inherit;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:var(--nylas-font-family)}.event-card{display:flex;align-items:center;flex-direction:column;width:calc(100% - 3rem);background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:3rem 1.5rem 1.5rem 1.5rem;position:relative;box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.event-card{margin-bottom:2rem}}.nylas-selected-event-card__date{font-size:min(max(16px, 3vw), 18px);font-weight:600}.nylas-selected-event-card__time{font-size:16px;font-weight:500}.calendar-icon{width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}calendar-icon{display:flex;align-items:center;justify-content:center;height:100%}.event-timezone{display:flex;color:var(--nylas-base-600);margin-bottom:8px;gap:4px;align-items:center}@media screen and (max-width: 768px){.event-timezone{margin-bottom:16px}}', _S = vS;
|
|
17841
17852
|
var kS = function(t, e, n, r) {
|
|
17842
17853
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
17843
17854
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -17873,7 +17884,7 @@ const M5 = te(class extends ne {
|
|
|
17873
17884
|
}
|
|
17874
17885
|
render() {
|
|
17875
17886
|
var e;
|
|
17876
|
-
return
|
|
17887
|
+
return g(ye, { key: "988d5270aa9dbd656c11d70ae0f3058dd25b4eb8", part: "nsec" }, g("div", { key: "21681211baf07faa5b09cec29611859a8dbdd37b", class: "event-card", part: "nsec__card" }, g("div", { key: "9b478bc27a5469a7c67786e3b1958e20e2f59d9e", class: "calendar-icon", part: "nsec__icon" }, g("calendar-icon", { key: "9a9f4cd2551747874876d8a32943a8cd98032d1e" })), g("div", { key: "f9dcde6ca9cffbfeb2f5dcd4e3586433bf2fd055", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? Pc((e = this.selectedDate) == null ? void 0 : e.toLocaleDateString(Kc[this.selectedLanguage || navigator.language], { dateStyle: "full", timeZone: this.selectedTimezone })) : "-"), g("div", { key: "a6151b6f505de22f748fcd959c5aa04721a4dd52", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), g("div", { key: "9190417c554a5e960841a8e132f3995574da14be", class: "event-timezone", part: "nsec__timezone" }, g("globe-icon", { key: "16f199ce28c18cc975bd8ade52f6b4fccfbe4455" }), ei[this.selectedTimezone]));
|
|
17877
17888
|
}
|
|
17878
17889
|
static get style() {
|
|
17879
17890
|
return _S;
|
|
@@ -17919,7 +17930,7 @@ function xS() {
|
|
|
17919
17930
|
}
|
|
17920
17931
|
});
|
|
17921
17932
|
}
|
|
17922
|
-
const wS =
|
|
17933
|
+
const wS = ':host{display:block;height:calc(100% - 48px);--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}.time-picker-wrapper{display:flex;flex-direction:column;height:100%}.timeslots{position:relative;display:flex;flex-direction:column;gap:0.75rem;align-items:center;overflow-y:scroll;padding:0.5rem 1.5rem 1.5rem;flex:1}.time{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 12px;gap:0.5rem;font-size:16px;font-weight:500;font-family:inherit;width:100%;height:48px;color:var(--nylas-base-800);background:var(--nylas-base-0);border:none;outline:1.5px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);flex:none;order:4;align-self:stretch;flex-grow:0;cursor:pointer}.time:hover,.time:focus{color:var(--nylas-primary);outline-color:var(--nylas-primary)}.time.selected{font-weight:600;color:var(--nylas-primary);outline:2px solid var(--nylas-primary);border-color:transparent;box-shadow:0 0 0 2px var(--nylas-primary)}.empty{text-align:center;padding:0 1.5rem;color:var(--nylas-base-600);font-size:min(max(12px, 2vw), 14px);height:450px;display:flex;align-items:center;justify-content:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.loading{padding:0 1.5rem}.loading .timeslot-skeleton{width:100%;height:4rem;background-color:var(--nylas-base-50);margin-bottom:0.5rem;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out}.footer{width:100%;padding:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}', ES = wS;
|
|
17923
17934
|
var CS = function(t, e, n, r) {
|
|
17924
17935
|
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, s;
|
|
17925
17936
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -17940,7 +17951,7 @@ const P5 = te(class extends ne {
|
|
|
17940
17951
|
this.hoveredTimeslotIndex = e;
|
|
17941
17952
|
}, this.handleMouseLeave = () => {
|
|
17942
17953
|
this.hoveredTimeslotIndex = -1;
|
|
17943
|
-
}, this.
|
|
17954
|
+
}, this.availability = void 0, this.isLoading = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedDate = /* @__PURE__ */ new Date(), this.selectedLanguage = void 0, this.times = [], this.hoveredTimeslotIndex = void 0, this.selectedTimeslotIndex = void 0;
|
|
17944
17955
|
}
|
|
17945
17956
|
selectedLanguageChanged(e) {
|
|
17946
17957
|
R.changeLanguage(e);
|
|
@@ -17989,13 +18000,13 @@ const P5 = te(class extends ne {
|
|
|
17989
18000
|
return `${n.format(e.start_time)} - ${n.format(e.end_time)}`;
|
|
17990
18001
|
}
|
|
17991
18002
|
render() {
|
|
17992
|
-
return this.isLoading ?
|
|
18003
|
+
return this.isLoading ? g(ye, null, g("div", { class: "loading" }, new Array(6).fill(0).map((e, n) => g("div", { class: "timeslot-skeleton", style: { animationDelay: `${n * 20}ms` } })))) : this.availability && this.availability.length === 0 ? g(ye, null, g("div", { class: "empty" }, g("span", null, "No dates available"))) : (!this.times || this.times.length === 0) && this.selectedDate ? g(ye, null, g("div", { class: "empty" }, g("span", null, "No time slots available for selected date"))) : this.selectedDate ? g(ye, { part: "ntp" }, g("div", { class: "time-picker-wrapper" }, g("div", { class: "timeslots" }, this.times.map((e, n) => {
|
|
17993
18004
|
var r, i, o, s;
|
|
17994
|
-
return
|
|
18005
|
+
return g("button", { part: `ntp__timeslot ${((i = (r = this.selectedTimeslot) == null ? void 0 : r.start_time) == null ? void 0 : i.getTime()) === e.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, "aria-role": "button", class: {
|
|
17995
18006
|
time: !0,
|
|
17996
18007
|
selected: typeof this.selectedTimeslot < "u" && ((s = (o = this.selectedTimeslot) == null ? void 0 : o.start_time) == null ? void 0 : s.getTime()) === e.start_time.getTime()
|
|
17997
18008
|
}, onClick: () => this.onClickSelectTime(e, n), onMouseEnter: () => this.handleMouseEnter(n), onMouseLeave: () => this.handleMouseLeave() }, this.hoveredTimeslotIndex == n || this.selectedTimeslotIndex == this.getTimeslotId(e.start_time, n) ? this.getTimeSlotLabel(e) : e.start_time.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone }));
|
|
17998
|
-
})), this.selectedTimeslot &&
|
|
18009
|
+
})), this.selectedTimeslot && g("div", { class: "footer" }, g("button-component", { variant: "primary", onClick: (e) => this.handleConfirmedTimeslot(e, this.selectedTimeslot), part: "ntp__button-primary" }, g("slot", { name: "timeslot-picker-cta-label" }, R.t("nextButton")))))) : g(ye, null);
|
|
17999
18010
|
}
|
|
18000
18011
|
static get watchers() {
|
|
18001
18012
|
return {
|
|
@@ -18008,11 +18019,11 @@ const P5 = te(class extends ne {
|
|
|
18008
18019
|
return ES;
|
|
18009
18020
|
}
|
|
18010
18021
|
}, [1, "nylas-timeslot-picker", {
|
|
18011
|
-
selectedDate: [16],
|
|
18012
18022
|
availability: [16],
|
|
18013
|
-
selectedTimeslot: [16],
|
|
18014
18023
|
isLoading: [4, "loading-state"],
|
|
18024
|
+
selectedTimeslot: [16],
|
|
18015
18025
|
selectedTimezone: [1, "selected-timezone"],
|
|
18026
|
+
selectedDate: [16],
|
|
18016
18027
|
selectedLanguage: [1, "selected-language"],
|
|
18017
18028
|
times: [32],
|
|
18018
18029
|
hoveredTimeslotIndex: [32],
|
|
@@ -20565,10 +20576,10 @@ class NA {
|
|
|
20565
20576
|
}
|
|
20566
20577
|
throw new $t(`${c} returned \`null\`, will not send event.`, "log");
|
|
20567
20578
|
}
|
|
20568
|
-
const
|
|
20569
|
-
if (!s &&
|
|
20570
|
-
const y = p.sdkProcessingMetadata && p.sdkProcessingMetadata.spanCountBeforeProcessing || 0, v = p.spans ? p.spans.length : 0,
|
|
20571
|
-
|
|
20579
|
+
const b = r && r.getSession();
|
|
20580
|
+
if (!s && b && this._updateSessionFromEvent(b, p), s) {
|
|
20581
|
+
const y = p.sdkProcessingMetadata && p.sdkProcessingMetadata.spanCountBeforeProcessing || 0, v = p.spans ? p.spans.length : 0, E = y - v;
|
|
20582
|
+
E > 0 && this.recordDroppedEvent("before_send", "span", E);
|
|
20572
20583
|
}
|
|
20573
20584
|
const m = p.transaction_info;
|
|
20574
20585
|
if (s && m && p.transaction !== e.transaction) {
|
|
@@ -22327,26 +22338,26 @@ const fB = ({
|
|
|
22327
22338
|
},
|
|
22328
22339
|
tags: h,
|
|
22329
22340
|
styleNonce: p,
|
|
22330
|
-
scriptNonce:
|
|
22341
|
+
scriptNonce: b,
|
|
22331
22342
|
// FeedbackThemeConfiguration
|
|
22332
22343
|
colorScheme: m = "system",
|
|
22333
22344
|
themeLight: y = {},
|
|
22334
22345
|
themeDark: v = {},
|
|
22335
22346
|
// FeedbackTextConfiguration
|
|
22336
|
-
addScreenshotButtonLabel:
|
|
22347
|
+
addScreenshotButtonLabel: E = QI,
|
|
22337
22348
|
cancelButtonLabel: C = UI,
|
|
22338
|
-
confirmButtonLabel:
|
|
22339
|
-
emailLabel:
|
|
22340
|
-
emailPlaceholder:
|
|
22349
|
+
confirmButtonLabel: $ = HI,
|
|
22350
|
+
emailLabel: B = YI,
|
|
22351
|
+
emailPlaceholder: D = GI,
|
|
22341
22352
|
formTitle: j = qI,
|
|
22342
|
-
isRequiredLabel:
|
|
22343
|
-
messageLabel:
|
|
22353
|
+
isRequiredLabel: w = XI,
|
|
22354
|
+
messageLabel: P = WI,
|
|
22344
22355
|
messagePlaceholder: k = KI,
|
|
22345
|
-
nameLabel:
|
|
22346
|
-
namePlaceholder:
|
|
22356
|
+
nameLabel: I = ZI,
|
|
22357
|
+
namePlaceholder: T = VI,
|
|
22347
22358
|
removeScreenshotButtonLabel: S = eB,
|
|
22348
22359
|
submitButtonLabel: _ = zI,
|
|
22349
|
-
successMessageText:
|
|
22360
|
+
successMessageText: A = JI,
|
|
22350
22361
|
triggerLabel: x = h4,
|
|
22351
22362
|
triggerAriaLabel: M = "",
|
|
22352
22363
|
// FeedbackCallbacks
|
|
@@ -22368,7 +22379,7 @@ const fB = ({
|
|
|
22368
22379
|
useSentryUser: f,
|
|
22369
22380
|
tags: h,
|
|
22370
22381
|
styleNonce: p,
|
|
22371
|
-
scriptNonce:
|
|
22382
|
+
scriptNonce: b,
|
|
22372
22383
|
colorScheme: m,
|
|
22373
22384
|
themeDark: v,
|
|
22374
22385
|
themeLight: y,
|
|
@@ -22376,17 +22387,17 @@ const fB = ({
|
|
|
22376
22387
|
triggerAriaLabel: M,
|
|
22377
22388
|
cancelButtonLabel: C,
|
|
22378
22389
|
submitButtonLabel: _,
|
|
22379
|
-
confirmButtonLabel:
|
|
22390
|
+
confirmButtonLabel: $,
|
|
22380
22391
|
formTitle: j,
|
|
22381
|
-
emailLabel:
|
|
22382
|
-
emailPlaceholder:
|
|
22383
|
-
messageLabel:
|
|
22392
|
+
emailLabel: B,
|
|
22393
|
+
emailPlaceholder: D,
|
|
22394
|
+
messageLabel: P,
|
|
22384
22395
|
messagePlaceholder: k,
|
|
22385
|
-
nameLabel:
|
|
22386
|
-
namePlaceholder:
|
|
22387
|
-
successMessageText:
|
|
22388
|
-
isRequiredLabel:
|
|
22389
|
-
addScreenshotButtonLabel:
|
|
22396
|
+
nameLabel: I,
|
|
22397
|
+
namePlaceholder: T,
|
|
22398
|
+
successMessageText: A,
|
|
22399
|
+
isRequiredLabel: w,
|
|
22400
|
+
addScreenshotButtonLabel: E,
|
|
22390
22401
|
removeScreenshotButtonLabel: S,
|
|
22391
22402
|
onFormClose: z,
|
|
22392
22403
|
onFormOpen: F,
|
|
@@ -22405,7 +22416,7 @@ const fB = ({
|
|
|
22405
22416
|
const Oe = $e(), Me = Oe && Oe.getIntegrationByName(ae);
|
|
22406
22417
|
if (Me)
|
|
22407
22418
|
return Me;
|
|
22408
|
-
const Yn = (Se && Se() || await t(kt,
|
|
22419
|
+
const Yn = (Se && Se() || await t(kt, b))();
|
|
22409
22420
|
return Oe && Oe.addIntegration(Yn), Yn;
|
|
22410
22421
|
}, Ce = async (ae) => {
|
|
22411
22422
|
const Se = ae.enableScreenshot && oB(), [kt, Oe] = await Promise.all([
|
|
@@ -22561,9 +22572,9 @@ function bs() {
|
|
|
22561
22572
|
e && ec(r, e, i), bs.__r = 0;
|
|
22562
22573
|
}
|
|
22563
22574
|
function v4(t, e, n, r, i, o, s, a, u, c, d) {
|
|
22564
|
-
var l, f, h, p,
|
|
22565
|
-
for (n.__d = u, mB(n, e, m), u = n.__d, l = 0; l < y; l++) (h = n.__k[l]) != null && typeof h != "boolean" && typeof h != "function" && (f = h.__i === -1 ? ki : m[h.__i] || ki, h.__i = l, dl(t, h, f, i, o, s, a, u, c, d), p = h.__e, h.ref && f.ref != h.ref && (f.ref && fl(f.ref, null, h), d.push(h.ref, h.__c || p, h)),
|
|
22566
|
-
n.__d = u, n.__e =
|
|
22575
|
+
var l, f, h, p, b, m = r && r.__k || cl, y = e.length;
|
|
22576
|
+
for (n.__d = u, mB(n, e, m), u = n.__d, l = 0; l < y; l++) (h = n.__k[l]) != null && typeof h != "boolean" && typeof h != "function" && (f = h.__i === -1 ? ki : m[h.__i] || ki, h.__i = l, dl(t, h, f, i, o, s, a, u, c, d), p = h.__e, h.ref && f.ref != h.ref && (f.ref && fl(f.ref, null, h), d.push(h.ref, h.__c || p, h)), b == null && p != null && (b = p), 65536 & h.__u || f.__k === h.__k ? u = _4(h, u, t) : typeof h.type == "function" && h.__d !== void 0 ? u = h.__d : p && (u = p.nextSibling), h.__d = void 0, h.__u &= -196609);
|
|
22577
|
+
n.__d = u, n.__e = b;
|
|
22567
22578
|
}
|
|
22568
22579
|
function mB(t, e, n) {
|
|
22569
22580
|
var r, i, o, s, a, u = e.length, c = n.length, d = c, l = 0;
|
|
@@ -22631,32 +22642,32 @@ function qf(t) {
|
|
|
22631
22642
|
if (this.l) return this.l[t.type + !0](ge.event ? ge.event(t) : t);
|
|
22632
22643
|
}
|
|
22633
22644
|
function dl(t, e, n, r, i, o, s, a, u, c) {
|
|
22634
|
-
var d, l, f, h, p,
|
|
22645
|
+
var d, l, f, h, p, b, m, y, v, E, C, $, B, D, j, w = e.type;
|
|
22635
22646
|
if (e.constructor !== void 0) return null;
|
|
22636
22647
|
128 & n.__u && (u = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = ge.__b) && d(e);
|
|
22637
|
-
e: if (typeof
|
|
22638
|
-
if (y = e.props, v = (d =
|
|
22648
|
+
e: if (typeof w == "function") try {
|
|
22649
|
+
if (y = e.props, v = (d = w.contextType) && r[d.__c], E = d ? v ? v.props.value : d.__ : r, n.__c ? m = (l = e.__c = n.__c).__ = l.__E : ("prototype" in w && w.prototype.render ? e.__c = l = new w(y, E) : (e.__c = l = new Do(y, E), l.constructor = w, l.render = yB), v && v.sub(l), l.props = y, l.state || (l.state = {}), l.context = E, l.__n = r, f = l.__d = !0, l.__h = [], l._sb = []), l.__s == null && (l.__s = l.state), w.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = pn({}, l.__s)), pn(l.__s, w.getDerivedStateFromProps(y, l.__s))), h = l.props, p = l.state, l.__v = e, f) w.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
22639
22650
|
else {
|
|
22640
|
-
if (
|
|
22641
|
-
for (e.__v !== n.__v && (l.props = y, l.state = l.__s, l.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(
|
|
22642
|
-
|
|
22651
|
+
if (w.getDerivedStateFromProps == null && y !== h && l.componentWillReceiveProps != null && l.componentWillReceiveProps(y, E), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(y, l.__s, E) === !1 || e.__v === n.__v)) {
|
|
22652
|
+
for (e.__v !== n.__v && (l.props = y, l.state = l.__s, l.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(P) {
|
|
22653
|
+
P && (P.__ = e);
|
|
22643
22654
|
}), C = 0; C < l._sb.length; C++) l.__h.push(l._sb[C]);
|
|
22644
22655
|
l._sb = [], l.__h.length && s.push(l);
|
|
22645
22656
|
break e;
|
|
22646
22657
|
}
|
|
22647
|
-
l.componentWillUpdate != null && l.componentWillUpdate(y, l.__s,
|
|
22648
|
-
l.componentDidUpdate(h, p,
|
|
22658
|
+
l.componentWillUpdate != null && l.componentWillUpdate(y, l.__s, E), l.componentDidUpdate != null && l.__h.push(function() {
|
|
22659
|
+
l.componentDidUpdate(h, p, b);
|
|
22649
22660
|
});
|
|
22650
22661
|
}
|
|
22651
|
-
if (l.context =
|
|
22652
|
-
for (l.state = l.__s, l.__d = !1,
|
|
22662
|
+
if (l.context = E, l.props = y, l.__P = t, l.__e = !1, $ = ge.__r, B = 0, "prototype" in w && w.prototype.render) {
|
|
22663
|
+
for (l.state = l.__s, l.__d = !1, $ && $(e), d = l.render(l.props, l.state, l.context), D = 0; D < l._sb.length; D++) l.__h.push(l._sb[D]);
|
|
22653
22664
|
l._sb = [];
|
|
22654
22665
|
} else do
|
|
22655
|
-
l.__d = !1,
|
|
22656
|
-
while (l.__d && ++
|
|
22657
|
-
l.state = l.__s, l.getChildContext != null && (r = pn(pn({}, r), l.getChildContext())), f || l.getSnapshotBeforeUpdate == null || (
|
|
22658
|
-
} catch (
|
|
22659
|
-
e.__v = null, u || o != null ? (e.__e = a, e.__u |= u ? 160 : 32, o[o.indexOf(a)] = null) : (e.__e = n.__e, e.__k = n.__k), ge.__e(
|
|
22666
|
+
l.__d = !1, $ && $(e), d = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
22667
|
+
while (l.__d && ++B < 25);
|
|
22668
|
+
l.state = l.__s, l.getChildContext != null && (r = pn(pn({}, r), l.getChildContext())), f || l.getSnapshotBeforeUpdate == null || (b = l.getSnapshotBeforeUpdate(h, p)), v4(t, ll(j = d != null && d.type === Li && d.key == null ? d.props.children : d) ? j : [j], e, n, r, i, o, s, a, u, c), l.base = e.__e, e.__u &= -161, l.__h.length && s.push(l), m && (l.__E = l.__ = null);
|
|
22669
|
+
} catch (P) {
|
|
22670
|
+
e.__v = null, u || o != null ? (e.__e = a, e.__u |= u ? 160 : 32, o[o.indexOf(a)] = null) : (e.__e = n.__e, e.__k = n.__k), ge.__e(P, e, n);
|
|
22660
22671
|
}
|
|
22661
22672
|
else o == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = bB(n.__e, e, n, r, i, o, s, u, c);
|
|
22662
22673
|
(d = ge.diffed) && d(e);
|
|
@@ -22674,7 +22685,7 @@ function ec(t, e, n) {
|
|
|
22674
22685
|
});
|
|
22675
22686
|
}
|
|
22676
22687
|
function bB(t, e, n, r, i, o, s, a, u) {
|
|
22677
|
-
var c, d, l, f, h, p,
|
|
22688
|
+
var c, d, l, f, h, p, b, m = n.props, y = e.props, v = e.type;
|
|
22678
22689
|
if (v === "svg" && (i = !0), o != null) {
|
|
22679
22690
|
for (c = 0; c < o.length; c++) if ((h = o[c]) && "setAttribute" in h == !!v && (v ? h.localName === v : h.nodeType === 3)) {
|
|
22680
22691
|
t = h, o[c] = null;
|
|
@@ -22689,10 +22700,10 @@ function bB(t, e, n, r, i, o, s, a, u) {
|
|
|
22689
22700
|
else {
|
|
22690
22701
|
if (o = o && Ys.call(t.childNodes), m = n.props || ki, !a && o != null) for (m = {}, c = 0; c < t.attributes.length; c++) m[(h = t.attributes[c]).name] = h.value;
|
|
22691
22702
|
for (c in m) h = m[c], c == "children" || (c == "dangerouslySetInnerHTML" ? l = h : c === "key" || c in y || po(t, c, null, h, i));
|
|
22692
|
-
for (c in y) h = y[c], c == "children" ? f = h : c == "dangerouslySetInnerHTML" ? d = h : c == "value" ? p = h : c == "checked" ?
|
|
22703
|
+
for (c in y) h = y[c], c == "children" ? f = h : c == "dangerouslySetInnerHTML" ? d = h : c == "value" ? p = h : c == "checked" ? b = h : c === "key" || a && typeof h != "function" || m[c] === h || po(t, c, h, m[c], i);
|
|
22693
22704
|
if (d) a || l && (d.__html === l.__html || d.__html === t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
|
|
22694
22705
|
else if (l && (t.innerHTML = ""), v4(t, ll(f) ? f : [f], e, n, r, i && v !== "foreignObject", o, s, o ? o[0] : n.__k && wr(n, 0), a, u), o != null) for (c = o.length; c--; ) o[c] != null && b4(o[c]);
|
|
22695
|
-
a || (c = "value", p !== void 0 && (p !== t[c] || v === "progress" && !p || v === "option" && p !== m[c]) && po(t, c, p, m[c], !1), c = "checked",
|
|
22706
|
+
a || (c = "value", p !== void 0 && (p !== t[c] || v === "progress" && !p || v === "option" && p !== m[c]) && po(t, c, p, m[c], !1), c = "checked", b !== void 0 && b !== t[c] && po(t, c, b, m[c], !1));
|
|
22696
22707
|
}
|
|
22697
22708
|
return t;
|
|
22698
22709
|
}
|
|
@@ -22981,18 +22992,18 @@ function PB({
|
|
|
22981
22992
|
removeScreenshotButtonLabel: f,
|
|
22982
22993
|
cancelButtonLabel: h,
|
|
22983
22994
|
emailLabel: p,
|
|
22984
|
-
emailPlaceholder:
|
|
22995
|
+
emailPlaceholder: b,
|
|
22985
22996
|
isEmailRequired: m,
|
|
22986
22997
|
isNameRequired: y,
|
|
22987
22998
|
messageLabel: v,
|
|
22988
|
-
messagePlaceholder:
|
|
22999
|
+
messagePlaceholder: E,
|
|
22989
23000
|
nameLabel: C,
|
|
22990
|
-
namePlaceholder:
|
|
22991
|
-
submitButtonLabel:
|
|
22992
|
-
isRequiredLabel:
|
|
22993
|
-
} = t, [j,
|
|
23001
|
+
namePlaceholder: $,
|
|
23002
|
+
submitButtonLabel: B,
|
|
23003
|
+
isRequiredLabel: D
|
|
23004
|
+
} = t, [j, w] = fr(null), [P, k] = fr(!1), I = c && c.input, [T, S] = fr(null), _ = hr((M) => {
|
|
22994
23005
|
S(M), k(!1);
|
|
22995
|
-
}, []),
|
|
23006
|
+
}, []), A = hr(
|
|
22996
23007
|
(M) => {
|
|
22997
23008
|
const F = MB(M, {
|
|
22998
23009
|
emailLabel: p,
|
|
@@ -23001,7 +23012,7 @@ function PB({
|
|
|
23001
23012
|
messageLabel: v,
|
|
23002
23013
|
nameLabel: C
|
|
23003
23014
|
});
|
|
23004
|
-
return F.length > 0 ?
|
|
23015
|
+
return F.length > 0 ? w(`Please enter in the following required fields: ${F.join(", ")}`) : w(null), F.length === 0;
|
|
23005
23016
|
},
|
|
23006
23017
|
[p, m, y, v, C]
|
|
23007
23018
|
), x = hr(
|
|
@@ -23009,13 +23020,13 @@ function PB({
|
|
|
23009
23020
|
try {
|
|
23010
23021
|
if (M.preventDefault(), !(M.target instanceof HTMLFormElement))
|
|
23011
23022
|
return;
|
|
23012
|
-
const F = new FormData(M.target), z = await (c &&
|
|
23023
|
+
const F = new FormData(M.target), z = await (c && P ? c.value() : void 0), G = {
|
|
23013
23024
|
name: $a(F, "name"),
|
|
23014
23025
|
email: $a(F, "email"),
|
|
23015
23026
|
message: $a(F, "message"),
|
|
23016
23027
|
attachments: z ? [z] : void 0
|
|
23017
23028
|
};
|
|
23018
|
-
if (!
|
|
23029
|
+
if (!A(G))
|
|
23019
23030
|
return;
|
|
23020
23031
|
try {
|
|
23021
23032
|
await i(
|
|
@@ -23029,17 +23040,17 @@ function PB({
|
|
|
23029
23040
|
{ attachments: G.attachments }
|
|
23030
23041
|
), o(G);
|
|
23031
23042
|
} catch (Y) {
|
|
23032
|
-
Io && V.error(Y),
|
|
23043
|
+
Io && V.error(Y), w(Y), s(Y);
|
|
23033
23044
|
}
|
|
23034
23045
|
} catch {
|
|
23035
23046
|
}
|
|
23036
23047
|
},
|
|
23037
|
-
[c &&
|
|
23048
|
+
[c && P, o, s]
|
|
23038
23049
|
);
|
|
23039
23050
|
return ee(
|
|
23040
23051
|
"form",
|
|
23041
23052
|
{ class: "form", onSubmit: x, __self: this, __source: { fileName: _e, lineNumber: 144 } },
|
|
23042
|
-
|
|
23053
|
+
I && P ? ee(I, { onError: _, __self: this, __source: { fileName: _e, lineNumber: 146 } }) : null,
|
|
23043
23054
|
ee(
|
|
23044
23055
|
"div",
|
|
23045
23056
|
{ class: "form__right", "data-sentry-feedback": !0, __self: this, __source: { fileName: _e, lineNumber: 149 } },
|
|
@@ -23050,7 +23061,7 @@ function PB({
|
|
|
23050
23061
|
u ? ee(
|
|
23051
23062
|
"label",
|
|
23052
23063
|
{ for: "name", class: "form__label", __self: this, __source: { fileName: _e, lineNumber: 154 } },
|
|
23053
|
-
ee(Ia, { label: C, isRequiredLabel:
|
|
23064
|
+
ee(Ia, { label: C, isRequiredLabel: D, isRequired: y, __self: this, __source: { fileName: _e, lineNumber: 155 } }),
|
|
23054
23065
|
ee(
|
|
23055
23066
|
"input",
|
|
23056
23067
|
{
|
|
@@ -23058,7 +23069,7 @@ function PB({
|
|
|
23058
23069
|
defaultValue: n,
|
|
23059
23070
|
id: "name",
|
|
23060
23071
|
name: "name",
|
|
23061
|
-
placeholder:
|
|
23072
|
+
placeholder: $,
|
|
23062
23073
|
required: y,
|
|
23063
23074
|
type: "text",
|
|
23064
23075
|
__self: this,
|
|
@@ -23069,7 +23080,7 @@ function PB({
|
|
|
23069
23080
|
a ? ee(
|
|
23070
23081
|
"label",
|
|
23071
23082
|
{ for: "email", class: "form__label", __self: this, __source: { fileName: _e, lineNumber: 171 } },
|
|
23072
|
-
ee(Ia, { label: p, isRequiredLabel:
|
|
23083
|
+
ee(Ia, { label: p, isRequiredLabel: D, isRequired: m, __self: this, __source: { fileName: _e, lineNumber: 172 } }),
|
|
23073
23084
|
ee(
|
|
23074
23085
|
"input",
|
|
23075
23086
|
{
|
|
@@ -23077,7 +23088,7 @@ function PB({
|
|
|
23077
23088
|
defaultValue: e,
|
|
23078
23089
|
id: "email",
|
|
23079
23090
|
name: "email",
|
|
23080
|
-
placeholder:
|
|
23091
|
+
placeholder: b,
|
|
23081
23092
|
required: m,
|
|
23082
23093
|
type: "email",
|
|
23083
23094
|
__self: this,
|
|
@@ -23088,7 +23099,7 @@ function PB({
|
|
|
23088
23099
|
ee(
|
|
23089
23100
|
"label",
|
|
23090
23101
|
{ for: "message", class: "form__label", __self: this, __source: { fileName: _e, lineNumber: 187 } },
|
|
23091
|
-
ee(Ia, { label: v, isRequiredLabel:
|
|
23102
|
+
ee(Ia, { label: v, isRequiredLabel: D, isRequired: !0, __self: this, __source: { fileName: _e, lineNumber: 188 } }),
|
|
23092
23103
|
ee(
|
|
23093
23104
|
"textarea",
|
|
23094
23105
|
{
|
|
@@ -23096,7 +23107,7 @@ function PB({
|
|
|
23096
23107
|
class: "form__input form__input--textarea",
|
|
23097
23108
|
id: "message",
|
|
23098
23109
|
name: "message",
|
|
23099
|
-
placeholder:
|
|
23110
|
+
placeholder: E,
|
|
23100
23111
|
required: !0,
|
|
23101
23112
|
rows: 5,
|
|
23102
23113
|
__self: this,
|
|
@@ -23104,7 +23115,7 @@ function PB({
|
|
|
23104
23115
|
}
|
|
23105
23116
|
)
|
|
23106
23117
|
),
|
|
23107
|
-
|
|
23118
|
+
I ? ee(
|
|
23108
23119
|
"label",
|
|
23109
23120
|
{ for: "screenshot", class: "form__label", __self: this, __source: { fileName: _e, lineNumber: 201 } },
|
|
23110
23121
|
ee(
|
|
@@ -23118,9 +23129,9 @@ function PB({
|
|
|
23118
23129
|
__self: this,
|
|
23119
23130
|
__source: { fileName: _e, lineNumber: 202 }
|
|
23120
23131
|
},
|
|
23121
|
-
|
|
23132
|
+
P ? f : l
|
|
23122
23133
|
),
|
|
23123
|
-
|
|
23134
|
+
T ? ee("div", { class: "form__error-container", __self: this, __source: { fileName: _e, lineNumber: 212 } }, T.message) : null
|
|
23124
23135
|
) : null
|
|
23125
23136
|
),
|
|
23126
23137
|
ee(
|
|
@@ -23129,7 +23140,7 @@ function PB({
|
|
|
23129
23140
|
ee(
|
|
23130
23141
|
"button",
|
|
23131
23142
|
{ class: "btn btn--primary", type: "submit", __self: this, __source: { fileName: _e, lineNumber: 217 } },
|
|
23132
|
-
|
|
23143
|
+
B
|
|
23133
23144
|
),
|
|
23134
23145
|
ee(
|
|
23135
23146
|
"button",
|
|
@@ -23723,88 +23734,88 @@ function JB({
|
|
|
23723
23734
|
}) {
|
|
23724
23735
|
const o = ZB({ hooks: e });
|
|
23725
23736
|
return function({ onError: a }) {
|
|
23726
|
-
const u = e.useMemo(() => ({ __html: VB(i.styleNonce).innerText }), []), c = WB({ h: t }), d = e.useRef(null), l = e.useRef(null), f = e.useRef(null), [h, p] = e.useState({ startX: 0, startY: 0, endX: 0, endY: 0 }), [
|
|
23737
|
+
const u = e.useMemo(() => ({ __html: VB(i.styleNonce).innerText }), []), c = WB({ h: t }), d = e.useRef(null), l = e.useRef(null), f = e.useRef(null), [h, p] = e.useState({ startX: 0, startY: 0, endX: 0, endY: 0 }), [b, m] = e.useState(!1), [y, v] = e.useState(!1);
|
|
23727
23738
|
e.useEffect(() => {
|
|
23728
|
-
Bt.addEventListener("resize",
|
|
23739
|
+
Bt.addEventListener("resize", E, !1);
|
|
23729
23740
|
}, []);
|
|
23730
|
-
function
|
|
23731
|
-
const
|
|
23732
|
-
if (
|
|
23733
|
-
|
|
23734
|
-
const
|
|
23735
|
-
|
|
23741
|
+
function E() {
|
|
23742
|
+
const w = f.current, P = Nr(Ba(n));
|
|
23743
|
+
if (w) {
|
|
23744
|
+
w.width = P.width * Ke, w.height = P.height * Ke, w.style.width = `${P.width}px`, w.style.height = `${P.height}px`;
|
|
23745
|
+
const I = w.getContext("2d");
|
|
23746
|
+
I && I.scale(Ke, Ke);
|
|
23736
23747
|
}
|
|
23737
23748
|
const k = l.current;
|
|
23738
|
-
k && (k.style.width = `${
|
|
23749
|
+
k && (k.style.width = `${P.width}px`, k.style.height = `${P.height}px`), p({ startX: 0, startY: 0, endX: P.width, endY: P.height });
|
|
23739
23750
|
}
|
|
23740
23751
|
e.useEffect(() => {
|
|
23741
|
-
const
|
|
23742
|
-
if (!
|
|
23752
|
+
const w = f.current;
|
|
23753
|
+
if (!w)
|
|
23743
23754
|
return;
|
|
23744
|
-
const
|
|
23745
|
-
if (!
|
|
23755
|
+
const P = w.getContext("2d");
|
|
23756
|
+
if (!P)
|
|
23746
23757
|
return;
|
|
23747
|
-
const k = Nr(Ba(n)),
|
|
23748
|
-
|
|
23758
|
+
const k = Nr(Ba(n)), I = Nr(h);
|
|
23759
|
+
P.clearRect(0, 0, k.width, k.height), P.fillStyle = "rgba(0, 0, 0, 0.5)", P.fillRect(0, 0, k.width, k.height), P.clearRect(I.x, I.y, I.width, I.height), P.strokeStyle = "#ffffff", P.lineWidth = 3, P.strokeRect(I.x + 1, I.y + 1, I.width - 2, I.height - 2), P.strokeStyle = "#000000", P.lineWidth = 1, P.strokeRect(I.x + 3, I.y + 3, I.width - 6, I.height - 6);
|
|
23749
23760
|
}, [h]);
|
|
23750
|
-
function C(
|
|
23761
|
+
function C(w, P) {
|
|
23751
23762
|
m(!1), v(!0);
|
|
23752
|
-
const k =
|
|
23753
|
-
ce.removeEventListener("mousemove", k), ce.removeEventListener("mouseup",
|
|
23763
|
+
const k = $(P), I = () => {
|
|
23764
|
+
ce.removeEventListener("mousemove", k), ce.removeEventListener("mouseup", I), m(!0), v(!1);
|
|
23754
23765
|
};
|
|
23755
|
-
ce.addEventListener("mouseup",
|
|
23766
|
+
ce.addEventListener("mouseup", I), ce.addEventListener("mousemove", k);
|
|
23756
23767
|
}
|
|
23757
|
-
const
|
|
23768
|
+
const $ = e.useCallback((w) => function(P) {
|
|
23758
23769
|
if (!f.current)
|
|
23759
23770
|
return;
|
|
23760
|
-
const k = f.current,
|
|
23761
|
-
switch (
|
|
23771
|
+
const k = f.current, I = k.getBoundingClientRect(), T = P.clientX - I.x, S = P.clientY - I.y;
|
|
23772
|
+
switch (w) {
|
|
23762
23773
|
case "top-left":
|
|
23763
23774
|
p((_) => ({
|
|
23764
23775
|
..._,
|
|
23765
|
-
startX: Math.min(Math.max(0,
|
|
23776
|
+
startX: Math.min(Math.max(0, T), _.endX - nn),
|
|
23766
23777
|
startY: Math.min(Math.max(0, S), _.endY - nn)
|
|
23767
23778
|
}));
|
|
23768
23779
|
break;
|
|
23769
23780
|
case "top-right":
|
|
23770
23781
|
p((_) => ({
|
|
23771
23782
|
..._,
|
|
23772
|
-
endX: Math.max(Math.min(
|
|
23783
|
+
endX: Math.max(Math.min(T, k.width / Ke), _.startX + nn),
|
|
23773
23784
|
startY: Math.min(Math.max(0, S), _.endY - nn)
|
|
23774
23785
|
}));
|
|
23775
23786
|
break;
|
|
23776
23787
|
case "bottom-left":
|
|
23777
23788
|
p((_) => ({
|
|
23778
23789
|
..._,
|
|
23779
|
-
startX: Math.min(Math.max(0,
|
|
23790
|
+
startX: Math.min(Math.max(0, T), _.endX - nn),
|
|
23780
23791
|
endY: Math.max(Math.min(S, k.height / Ke), _.startY + nn)
|
|
23781
23792
|
}));
|
|
23782
23793
|
break;
|
|
23783
23794
|
case "bottom-right":
|
|
23784
23795
|
p((_) => ({
|
|
23785
23796
|
..._,
|
|
23786
|
-
endX: Math.max(Math.min(
|
|
23797
|
+
endX: Math.max(Math.min(T, k.width / Ke), _.startX + nn),
|
|
23787
23798
|
endY: Math.max(Math.min(S, k.height / Ke), _.startY + nn)
|
|
23788
23799
|
}));
|
|
23789
23800
|
break;
|
|
23790
23801
|
}
|
|
23791
|
-
}, []),
|
|
23792
|
-
function
|
|
23802
|
+
}, []), B = e.useRef({ initialX: 0, initialY: 0 });
|
|
23803
|
+
function D(w) {
|
|
23793
23804
|
if (y) return;
|
|
23794
|
-
|
|
23795
|
-
const
|
|
23796
|
-
const
|
|
23797
|
-
if (!
|
|
23798
|
-
const S =
|
|
23799
|
-
p((
|
|
23805
|
+
B.current = { initialX: w.clientX, initialY: w.clientY };
|
|
23806
|
+
const P = (I) => {
|
|
23807
|
+
const T = f.current;
|
|
23808
|
+
if (!T) return;
|
|
23809
|
+
const S = I.clientX - B.current.initialX, _ = I.clientY - B.current.initialY;
|
|
23810
|
+
p((A) => {
|
|
23800
23811
|
const x = Math.max(
|
|
23801
23812
|
0,
|
|
23802
|
-
Math.min(
|
|
23813
|
+
Math.min(A.startX + S, T.width / Ke - (A.endX - A.startX))
|
|
23803
23814
|
), M = Math.max(
|
|
23804
23815
|
0,
|
|
23805
|
-
Math.min(
|
|
23806
|
-
), F = x + (
|
|
23807
|
-
return
|
|
23816
|
+
Math.min(A.startY + _, T.height / Ke - (A.endY - A.startY))
|
|
23817
|
+
), F = x + (A.endX - A.startX), z = M + (A.endY - A.startY);
|
|
23818
|
+
return B.current.initialX = I.clientX, B.current.initialY = I.clientY, {
|
|
23808
23819
|
startX: x,
|
|
23809
23820
|
startY: M,
|
|
23810
23821
|
endX: F,
|
|
@@ -23812,48 +23823,48 @@ function JB({
|
|
|
23812
23823
|
};
|
|
23813
23824
|
});
|
|
23814
23825
|
}, k = () => {
|
|
23815
|
-
ce.removeEventListener("mousemove",
|
|
23826
|
+
ce.removeEventListener("mousemove", P), ce.removeEventListener("mouseup", k);
|
|
23816
23827
|
};
|
|
23817
|
-
ce.addEventListener("mousemove",
|
|
23828
|
+
ce.addEventListener("mousemove", P), ce.addEventListener("mouseup", k);
|
|
23818
23829
|
}
|
|
23819
23830
|
function j() {
|
|
23820
|
-
const
|
|
23821
|
-
|
|
23822
|
-
const
|
|
23823
|
-
|
|
23831
|
+
const w = ce.createElement("canvas"), P = Nr(Ba(n)), k = Nr(h);
|
|
23832
|
+
w.width = k.width * Ke, w.height = k.height * Ke;
|
|
23833
|
+
const I = w.getContext("2d");
|
|
23834
|
+
I && n && I.drawImage(
|
|
23824
23835
|
n,
|
|
23825
|
-
k.x /
|
|
23826
|
-
k.y /
|
|
23827
|
-
k.width /
|
|
23828
|
-
k.height /
|
|
23836
|
+
k.x / P.width * n.width,
|
|
23837
|
+
k.y / P.height * n.height,
|
|
23838
|
+
k.width / P.width * n.width,
|
|
23839
|
+
k.height / P.height * n.height,
|
|
23829
23840
|
0,
|
|
23830
23841
|
0,
|
|
23831
|
-
|
|
23832
|
-
|
|
23842
|
+
w.width,
|
|
23843
|
+
w.height
|
|
23833
23844
|
);
|
|
23834
|
-
const
|
|
23835
|
-
|
|
23845
|
+
const T = n.getContext("2d");
|
|
23846
|
+
T && (T.clearRect(0, 0, n.width, n.height), n.width = w.width, n.height = w.height, n.style.width = `${k.width}px`, n.style.height = `${k.height}px`, T.drawImage(w, 0, 0), E());
|
|
23836
23847
|
}
|
|
23837
23848
|
return o({
|
|
23838
23849
|
onBeforeScreenshot: e.useCallback(() => {
|
|
23839
23850
|
r.el.style.display = "none";
|
|
23840
23851
|
}, []),
|
|
23841
23852
|
onScreenshot: e.useCallback(
|
|
23842
|
-
(
|
|
23843
|
-
const
|
|
23844
|
-
if (!
|
|
23853
|
+
(w) => {
|
|
23854
|
+
const P = n.getContext("2d");
|
|
23855
|
+
if (!P)
|
|
23845
23856
|
throw new Error("Could not get canvas context");
|
|
23846
|
-
n.width =
|
|
23857
|
+
n.width = w.videoWidth, n.height = w.videoHeight, n.style.width = "100%", n.style.height = "100%", P.drawImage(w, 0, 0);
|
|
23847
23858
|
},
|
|
23848
23859
|
[n]
|
|
23849
23860
|
),
|
|
23850
23861
|
onAfterScreenshot: e.useCallback(() => {
|
|
23851
23862
|
r.el.style.display = "block";
|
|
23852
|
-
const
|
|
23853
|
-
|
|
23863
|
+
const w = d.current;
|
|
23864
|
+
w && w.appendChild(n), E();
|
|
23854
23865
|
}, []),
|
|
23855
|
-
onError: e.useCallback((
|
|
23856
|
-
r.el.style.display = "block", a(
|
|
23866
|
+
onError: e.useCallback((w) => {
|
|
23867
|
+
r.el.style.display = "block", a(w);
|
|
23857
23868
|
}, [])
|
|
23858
23869
|
}), t(
|
|
23859
23870
|
"div",
|
|
@@ -23868,8 +23879,8 @@ function JB({
|
|
|
23868
23879
|
t(
|
|
23869
23880
|
"canvas",
|
|
23870
23881
|
{
|
|
23871
|
-
onMouseDown:
|
|
23872
|
-
style: { position: "absolute", cursor:
|
|
23882
|
+
onMouseDown: D,
|
|
23883
|
+
style: { position: "absolute", cursor: b ? "move" : "auto" },
|
|
23873
23884
|
ref: f,
|
|
23874
23885
|
__self: this,
|
|
23875
23886
|
__source: { fileName: at, lineNumber: 319 }
|
|
@@ -23925,7 +23936,7 @@ function JB({
|
|
|
23925
23936
|
style: {
|
|
23926
23937
|
left: Math.max(0, h.endX - 191),
|
|
23927
23938
|
top: Math.max(0, h.endY + 8),
|
|
23928
|
-
display:
|
|
23939
|
+
display: b ? "flex" : "none"
|
|
23929
23940
|
},
|
|
23930
23941
|
class: "editor__crop-btn-group",
|
|
23931
23942
|
__self: this,
|
|
@@ -23934,8 +23945,8 @@ function JB({
|
|
|
23934
23945
|
t(
|
|
23935
23946
|
"button",
|
|
23936
23947
|
{
|
|
23937
|
-
onClick: (
|
|
23938
|
-
|
|
23948
|
+
onClick: (w) => {
|
|
23949
|
+
w.preventDefault(), f.current && p({
|
|
23939
23950
|
startX: 0,
|
|
23940
23951
|
startY: 0,
|
|
23941
23952
|
endX: f.current.width / Ke,
|
|
@@ -23951,8 +23962,8 @@ function JB({
|
|
|
23951
23962
|
t(
|
|
23952
23963
|
"button",
|
|
23953
23964
|
{
|
|
23954
|
-
onClick: (
|
|
23955
|
-
|
|
23965
|
+
onClick: (w) => {
|
|
23966
|
+
w.preventDefault(), j(), m(!1);
|
|
23956
23967
|
},
|
|
23957
23968
|
class: "btn btn--primary",
|
|
23958
23969
|
__self: this,
|
|
@@ -24033,39 +24044,39 @@ class eD {
|
|
|
24033
24044
|
}
|
|
24034
24045
|
const En = (t, e) => {
|
|
24035
24046
|
const n = t.isLoading, r = t.showNotification, i = t.nylasBranding;
|
|
24036
|
-
return
|
|
24047
|
+
return g(
|
|
24037
24048
|
Ra,
|
|
24038
24049
|
null,
|
|
24039
|
-
r &&
|
|
24040
|
-
n &&
|
|
24050
|
+
r && g("nylas-notification", null),
|
|
24051
|
+
n && g(
|
|
24041
24052
|
"div",
|
|
24042
24053
|
{ class: "loading" },
|
|
24043
|
-
|
|
24054
|
+
g(
|
|
24044
24055
|
"div",
|
|
24045
24056
|
{ class: "left" },
|
|
24046
|
-
|
|
24057
|
+
g("div", { class: "skeleton" })
|
|
24047
24058
|
),
|
|
24048
|
-
|
|
24059
|
+
g(
|
|
24049
24060
|
"div",
|
|
24050
24061
|
{ class: "right" },
|
|
24051
|
-
|
|
24052
|
-
|
|
24053
|
-
|
|
24054
|
-
|
|
24055
|
-
|
|
24062
|
+
g("div", { class: "skeleton" }),
|
|
24063
|
+
g("div", { class: "skeleton" }),
|
|
24064
|
+
g("div", { class: "skeleton" }),
|
|
24065
|
+
g("div", { class: "skeleton" }),
|
|
24066
|
+
g("div", { class: "skeleton" })
|
|
24056
24067
|
)
|
|
24057
24068
|
),
|
|
24058
24069
|
!n && e,
|
|
24059
|
-
|
|
24070
|
+
g("div", { class: "footer" }, i && g(
|
|
24060
24071
|
Ra,
|
|
24061
24072
|
null,
|
|
24062
24073
|
"Powered by ",
|
|
24063
|
-
|
|
24074
|
+
g("nylas-logo", null)
|
|
24064
24075
|
))
|
|
24065
24076
|
);
|
|
24066
|
-
}, th = (t, e) =>
|
|
24077
|
+
}, th = (t, e) => g("div", { class: "message-banner" }, e), tD = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--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;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{padding:0.5rem 4px 0;height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer svg{fill:var(--nylas-base-500)}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', nD = tD, nh = { title: R.t("genericErrorTitle"), type: Wr.Error, category: Rn.Component }, C4 = te(class extends ne {
|
|
24067
24078
|
constructor() {
|
|
24068
|
-
super(), this.__registerHost(), this.__attachShadow(), this.init = X(this, "init", 7), this.schedulerWillLoad = X(this, "schedulerWillLoad", 7), this.schedulerDidLoad = X(this, "schedulerDidLoad", 7), this.nylasSchedulerError = X(this, "nylasSchedulerError", 7), this.configSettingsLoaded = X(this, "configSettingsLoaded", 7), this.bookingRefExtracted = X(this, "bookingRefExtracted", 7), this.bookedEventInfo = X(this, "bookedEventInfo", 7), this.mode = "app", this.defaultSchedulerState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://api.us.nylas.com", this.bookingInfo = void 0, this.rescheduleBookingRef = void 0, this.cancelBookingRef = void 0, this.organizerConfirmationBookingRef = void 0, this.configurationId = void 0, this.slug = void 0, this.clientId = void 0, this.nylasBranding = !0, this.eventOverrides = {}, this.isLoading = void 0, this.themeConfig = void 0, this.localization = void 0, this.showNotification = !0, this.enableUserFeedback = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(void 0, { dateStyle: "full" }) || `${R.t("noDateSelected")}`, this.refConfigId = void 0, this.language = navigator.language, this.showFeedbackModal = !1;
|
|
24079
|
+
super(), this.__registerHost(), this.__attachShadow(), this.init = X(this, "init", 7), this.schedulerWillLoad = X(this, "schedulerWillLoad", 7), this.schedulerDidLoad = X(this, "schedulerDidLoad", 7), this.nylasSchedulerError = X(this, "nylasSchedulerError", 7), this.configSettingsLoaded = X(this, "configSettingsLoaded", 7), this.bookingRefExtracted = X(this, "bookingRefExtracted", 7), this.bookedEventInfo = X(this, "bookedEventInfo", 7), this.mode = "app", this.defaultSchedulerState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://api.us.nylas.com", this.bookingInfo = void 0, this.rescheduleBookingRef = void 0, this.cancelBookingRef = void 0, this.organizerConfirmationBookingRef = void 0, this.configurationId = void 0, this.slug = void 0, this.clientId = void 0, this.nylasBranding = !0, this.eventOverrides = {}, this.isLoading = void 0, this.themeConfig = void 0, this.localization = void 0, this.showNotification = !0, this.enableUserFeedback = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(void 0, { dateStyle: "full" }) || `${R.t("noDateSelected")}`, this.refConfigId = void 0, this.language = navigator.language, this.showFeedbackModal = !1, this.bookingInfoConfirmed = null;
|
|
24069
24080
|
}
|
|
24070
24081
|
connectedCallback() {
|
|
24071
24082
|
N("[nylas-scheduler] connectedCallback");
|
|
@@ -24121,7 +24132,7 @@ const En = (t, e) => {
|
|
|
24121
24132
|
"init" in this.eventOverrides && (await this.eventOverrides.init(i, this.nylasSchedulerConnector), i.defaultPrevented) || ((s = this.baseProvider) == null || s.componentWillLoad(this.nylasSchedulerConnector), this.applyThemeConfig(this.themeConfig));
|
|
24122
24133
|
}
|
|
24123
24134
|
async componentDidLoad() {
|
|
24124
|
-
var c, d, l, f, h, p,
|
|
24135
|
+
var c, d, l, f, h, p, b, m;
|
|
24125
24136
|
(c = this.baseProvider) == null || c.componentDidLoad();
|
|
24126
24137
|
const e = this.schedulerDidLoad.emit(this.host);
|
|
24127
24138
|
if ("schedulerDidLoad" in this.eventOverrides && (await this.eventOverrides.schedulerDidLoad(e, this.nylasSchedulerConnector), e.defaultPrevented) || !this.checkIfSessionIdOrConfigIdExists())
|
|
@@ -24150,15 +24161,15 @@ const En = (t, e) => {
|
|
|
24150
24161
|
let u;
|
|
24151
24162
|
if (!(a && a.length > 0)) {
|
|
24152
24163
|
if (s) {
|
|
24153
|
-
const { startTime: y, endTime: v, endTimeForAvailableDaysInFuture:
|
|
24154
|
-
s.getTime() <
|
|
24164
|
+
const { startTime: y, endTime: v, endTimeForAvailableDaysInFuture: E } = this.validateAvailableDaysInFuture(s, i || 30);
|
|
24165
|
+
s.getTime() < E * 1e3 && (u = await ((m = this.nylasSchedulerConnector) == null ? void 0 : m.scheduler.getAvailability(y, v)));
|
|
24155
24166
|
} else {
|
|
24156
|
-
const y = /* @__PURE__ */ new Date(), { startTime: v, endTime:
|
|
24157
|
-
y.getTime() < C * 1e3 && (u = await ((
|
|
24167
|
+
const y = /* @__PURE__ */ new Date(), { startTime: v, endTime: E, endTimeForAvailableDaysInFuture: C } = this.validateAvailableDaysInFuture(y, i || 30);
|
|
24168
|
+
y.getTime() < C * 1e3 && (u = await ((b = this.nylasSchedulerConnector) == null ? void 0 : b.scheduler.getAvailability(v, E)));
|
|
24158
24169
|
}
|
|
24159
24170
|
if ((!u || "error" in u) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(u == null ? void 0 : u.error) }, host: this.host }), !s) {
|
|
24160
24171
|
let y = /* @__PURE__ */ new Date();
|
|
24161
|
-
const v = r == null ? void 0 : r.get("availability").find((
|
|
24172
|
+
const v = r == null ? void 0 : r.get("availability").find((E) => new Date(E.start_time) > /* @__PURE__ */ new Date());
|
|
24162
24173
|
v && (y = v.start_time), r == null || r.set("selectedDate", y);
|
|
24163
24174
|
}
|
|
24164
24175
|
}
|
|
@@ -24218,8 +24229,8 @@ const En = (t, e) => {
|
|
|
24218
24229
|
if (i < s && n.getTime() < s * 1e3) {
|
|
24219
24230
|
const p = await ((l = this.nylasSchedulerConnector) == null ? void 0 : l.scheduler.getAvailability(i, o));
|
|
24220
24231
|
(!p || "error" in p) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(p == null ? void 0 : p.error) }, host: this.host });
|
|
24221
|
-
const
|
|
24222
|
-
|
|
24232
|
+
const b = (f = this.stores) == null ? void 0 : f.scheduler.get("selectableDates");
|
|
24233
|
+
b && b.length > 0 && ((h = this.stores) == null || h.scheduler.set("selectedDate", b[0]));
|
|
24223
24234
|
}
|
|
24224
24235
|
}
|
|
24225
24236
|
mapToBookingData(e) {
|
|
@@ -24227,8 +24238,8 @@ const En = (t, e) => {
|
|
|
24227
24238
|
const n = (a = this.stores) == null ? void 0 : a.scheduler.get("selectedTimeslot"), r = (u = this.stores) == null ? void 0 : u.scheduler.get("selectedLanguage"), i = (c = this.stores) == null ? void 0 : c.scheduler.get("selectedTimezone"), o = n != null && n.start_time ? new Date(n == null ? void 0 : n.start_time).getTime() / 1e3 : "", s = n != null && n.end_time ? new Date(n == null ? void 0 : n.end_time).getTime() / 1e3 : "";
|
|
24228
24239
|
return {
|
|
24229
24240
|
additional_guests: e.guests,
|
|
24230
|
-
guest: e.primaryParticipant,
|
|
24231
|
-
additional_fields: e.additionalFields,
|
|
24241
|
+
guest: { ...e.primaryParticipant },
|
|
24242
|
+
additional_fields: { ...e.additionalFields },
|
|
24232
24243
|
start_time: o,
|
|
24233
24244
|
end_time: s,
|
|
24234
24245
|
email_language: r,
|
|
@@ -24236,21 +24247,23 @@ const En = (t, e) => {
|
|
|
24236
24247
|
};
|
|
24237
24248
|
}
|
|
24238
24249
|
async bookButtonClickedHandler(e) {
|
|
24239
|
-
var
|
|
24240
|
-
|
|
24241
|
-
|
|
24242
|
-
const
|
|
24243
|
-
|
|
24244
|
-
|
|
24245
|
-
|
|
24246
|
-
const
|
|
24247
|
-
"
|
|
24250
|
+
var c, d, l, f;
|
|
24251
|
+
if (e.defaultPrevented)
|
|
24252
|
+
return;
|
|
24253
|
+
const n = e.detail, r = this.mapToBookingData(n);
|
|
24254
|
+
this.bookingInfoConfirmed = n;
|
|
24255
|
+
const o = (d = (c = this.nylasSchedulerConnector) == null ? void 0 : c.schedulerStore) == null ? void 0 : d.get("rescheduleBookingId");
|
|
24256
|
+
if (o) {
|
|
24257
|
+
const h = await ((l = this.nylasSchedulerConnector) == null ? void 0 : l.scheduler.rescheduleBooking(o, n));
|
|
24258
|
+
(!h || "error" in h) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(h == null ? void 0 : h.error) }, host: this.host });
|
|
24259
|
+
const p = h == null ? void 0 : h.data, b = this.bookedEventInfo.emit({ ...h, data: { ...p, ...r } });
|
|
24260
|
+
"bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(b, this.nylasSchedulerConnector);
|
|
24248
24261
|
return;
|
|
24249
24262
|
}
|
|
24250
|
-
const
|
|
24251
|
-
(!
|
|
24252
|
-
const
|
|
24253
|
-
"bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(
|
|
24263
|
+
const s = await ((f = this.nylasSchedulerConnector) == null ? void 0 : f.scheduler.bookTimeslot(n));
|
|
24264
|
+
(!s || "error" in s) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(s == null ? void 0 : s.error) }, host: this.host });
|
|
24265
|
+
const a = s == null ? void 0 : s.data, u = this.bookedEventInfo.emit({ ...s, data: { ...a, ...r } });
|
|
24266
|
+
"bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(u, this.nylasSchedulerConnector);
|
|
24254
24267
|
}
|
|
24255
24268
|
dateSelectedHandler(e) {
|
|
24256
24269
|
const n = e.detail;
|
|
@@ -24352,29 +24365,39 @@ const En = (t, e) => {
|
|
|
24352
24365
|
onFeedbackClick() {
|
|
24353
24366
|
this.showFeedbackModal = !0;
|
|
24354
24367
|
}
|
|
24368
|
+
redirectToCustomUrl(e) {
|
|
24369
|
+
window.location.assign(e);
|
|
24370
|
+
}
|
|
24355
24371
|
render() {
|
|
24356
|
-
var
|
|
24357
|
-
const e = this.mode === "app", n = (
|
|
24372
|
+
var b, m, y, v, E, C, $, B, D, j;
|
|
24373
|
+
const e = this.mode === "app", n = (b = this.baseProvider) == null ? void 0 : b.getStore("scheduler"), r = n == null ? void 0 : n.get("eventInfo"), i = n == null ? void 0 : n.get("showBookingForm"), o = n == null ? void 0 : n.get("cancelledEventInfo"), s = n == null ? void 0 : n.get("cancelBookingId"), a = n == null ? void 0 : n.get("selectedTimeslot"), u = n == null ? void 0 : n.get("rescheduleBookingId"), c = n == null ? void 0 : n.get("organizerConfirmationBookingId"), d = n == null ? void 0 : n.get("rejectBookingId"), l = n == null ? void 0 : n.get("confirmedEventInfo"), f = (n == null ? void 0 : n.get("nylasBranding")) || this.nylasBranding, h = n == null ? void 0 : n.get("selectedDate"), p = (y = (m = n == null ? void 0 : n.get("configSettings")) == null ? void 0 : m.scheduler) == null ? void 0 : y.confirmation_redirect_url;
|
|
24358
24374
|
if (this.selectedDateLabel = h && this.language ? Pc(h.toLocaleDateString(Kc[this.language], { dateStyle: "full" })) : `${R.t("noDateSelected")}`, e && (s || d) && !o)
|
|
24359
|
-
return
|
|
24375
|
+
return g(ye, null, g(En, { nylasBranding: f, isLoading: this.isLoading, showNotification: this.showNotification }, g("div", { class: "cancel-flow-page", part: "cancel-flow-page" }, g("nylas-cancel-booking-form", { selectedTimeslot: a, cancelBookingId: s, rejectBookingId: d, exportparts: "ncbf, ncbf__icon, ncbf__title, ncbf__description, ncbf__reason-textarea, ncbf__button-cta, ncbf__button-outline, ncbf__card" }))), this.enableUserFeedback && g("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, g("feedback-icon", null)), this.showFeedbackModal && g("nylas-feedback-form", null));
|
|
24360
24376
|
if (e && c)
|
|
24361
|
-
return
|
|
24377
|
+
return g(ye, null, g(En, null, g("div", { class: "manual-confirmation-page", part: "manual-confirmation-page" }, g("nylas-organizer-confirmation-card", { organizerConfirmationBookingId: c, exportparts: "nmcc, nmcc__title, nmcc__description, nmcc__button-cta, nmcc__button-outline" }))), this.enableUserFeedback && g("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, g("feedback-icon", null)), this.showFeedbackModal && g("nylas-feedback-form", null));
|
|
24362
24378
|
if (e && o)
|
|
24363
|
-
return
|
|
24379
|
+
return g(ye, null, g(En, { nylasBranding: f, isLoading: this.isLoading, showNotification: this.showNotification }, g("div", { class: "cancelled-event-page", part: "cancelled-event-page" }, g("nylas-cancelled-event-card", { cancelledEventInfo: o, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), this.enableUserFeedback && g("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, g("feedback-icon", null)), this.showFeedbackModal && g("nylas-feedback-form", null));
|
|
24364
24380
|
if (e && l)
|
|
24365
|
-
return
|
|
24381
|
+
return g(ye, null, g(En, { nylasBranding: f, isLoading: this.isLoading, showNotification: this.showNotification }, g("div", { class: "cancelled-event-page", part: "confirmed-event-page" }, g("nylas-confirmed-event-card", { confirmedEventInfo: l, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), this.enableUserFeedback && g("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, g("feedback-icon", null)), this.showFeedbackModal && g("nylas-feedback-form", null));
|
|
24366
24382
|
if (e && r && p) {
|
|
24367
|
-
const
|
|
24368
|
-
|
|
24383
|
+
const w = (v = this.bookingInfoConfirmed) == null ? void 0 : v.primaryParticipant, P = ((E = this.bookingInfoConfirmed) == null ? void 0 : E.additionalFields) || {};
|
|
24384
|
+
if (this.bookingInfo && typeof ((C = this.bookingInfo) == null ? void 0 : C.additionalFields) < "u") {
|
|
24385
|
+
const M = this.bookingInfo.additionalFields;
|
|
24386
|
+
Object.keys(M).forEach((F) => {
|
|
24387
|
+
!P[F] && (M != null && M[F]) && (P[F] = M[F].value);
|
|
24388
|
+
});
|
|
24389
|
+
}
|
|
24390
|
+
const k = ($ = this.stores) == null ? void 0 : $.scheduler.get("selectedTimeslot"), I = (B = this.stores) == null ? void 0 : B.scheduler.get("selectedTimezone"), T = (D = this.stores) == null ? void 0 : D.scheduler.get("selectedLanguage"), S = (j = this.stores) == null ? void 0 : j.scheduler.get("configSettings"), _ = this.configurationId ? this.configurationId : S == null ? void 0 : S.configuration_id, A = window.location.search, x = new URLSearchParams(A);
|
|
24391
|
+
x.set("booking_id", r.booking_id), w != null && w.name && x.set("name", w.name), w != null && w.email && x.set("email", w.email), k != null && k.start_time && x.set("start_time", (new Date(k.start_time).getTime() / 1e3).toString()), k != null && k.end_time && x.set("end_time", (new Date(k.end_time).getTime() / 1e3).toString()), I && x.set("tz", I), T && x.set("language", T), P && x.set("additional_values", JSON.stringify(P)), this.slug && x.set("page_slug", this.slug), _ && x.set("config_id", _), this.redirectToCustomUrl(`${p}?${x.toString()}`);
|
|
24369
24392
|
return;
|
|
24370
24393
|
}
|
|
24371
24394
|
if (e && r)
|
|
24372
|
-
return
|
|
24395
|
+
return g(ye, null, g(En, { nylasBranding: f, isLoading: this.isLoading, showNotification: this.showNotification }, g("div", { class: "booked-event-page", part: "booked-event-page" }, g("nylas-booked-event-card", { selectedTimeslot: a, eventInfo: r, exportparts: "nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta" }))), this.enableUserFeedback && g("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, g("feedback-icon", null)), this.showFeedbackModal && g("nylas-feedback-form", null));
|
|
24373
24396
|
if (e && (!r || u) && !i) {
|
|
24374
|
-
const
|
|
24375
|
-
return
|
|
24397
|
+
const w = this.host.querySelector('[slot="timeslot-picker-cta-label"]');
|
|
24398
|
+
return g(ye, null, g(En, { nylasBranding: f, isLoading: this.isLoading, showNotification: this.showNotification }, u && g(th, null, `${R.t("rescheduleTitle")}`), g("div", { class: "select-date-page", part: "select-date-page" }, g("div", { class: "left-panel" }, g("nylas-date-picker", { exportparts: "ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), g("nylas-locale-switch", { exportparts: "nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label" })), g("div", { class: `right-panel ${u ? "reschedule" : ""}` }, g("h2", null, g("calendar-icon", null), g("span", { id: "selectedDate" }, this.selectedDateLabel)), g("nylas-timeslot-picker", { exportparts: "ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, w && g("span", { slot: "timeslot-picker-cta-label" }, g("slot", { name: "timeslot-picker-cta-label" })))))), this.enableUserFeedback && g("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, g("feedback-icon", null)), this.showFeedbackModal && g("nylas-feedback-form", null));
|
|
24376
24399
|
}
|
|
24377
|
-
return e && !r && i ?
|
|
24400
|
+
return e && !r && i ? g(ye, null, g(En, { nylasBranding: f, isLoading: this.isLoading, showNotification: this.showNotification }, u && g(th, null, `${R.t("rescheduleTitle")}`), g("div", { class: "additional-data-page", part: "additional-data-page" }, g("div", { class: "left-panel" }, g("div", { class: "wrapper" }, g("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone" }))), g("div", { class: `right-panel ${u ? "reschedule" : ""}` }, g("nylas-booking-form", { exportparts: "nbf, nbf__input-textfield, nbf__button-ghost, nbf__button-outline, nbf__button-primary, nbf__input-wrapper, nbf__checkbox-component, nbf__radio-button-group, nbf__textarea-component, nbf__dropdown, nbf__dropdown-button, nbf__dropdown-content" })))), this.enableUserFeedback && g("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, g("feedback-icon", null)), this.showFeedbackModal && g("nylas-feedback-form", null)) : g(ye, null, g("slot", null));
|
|
24378
24401
|
}
|
|
24379
24402
|
get host() {
|
|
24380
24403
|
return this;
|
|
@@ -24416,6 +24439,7 @@ const En = (t, e) => {
|
|
|
24416
24439
|
refConfigId: [32],
|
|
24417
24440
|
language: [32],
|
|
24418
24441
|
showFeedbackModal: [32],
|
|
24442
|
+
bookingInfoConfirmed: [32],
|
|
24419
24443
|
getNylasSchedulerStore: [64],
|
|
24420
24444
|
getNylasSchedulerConnector: [64],
|
|
24421
24445
|
getRef: [64]
|