@hmcts/media-viewer 4.1.10-exui-3053-1 → 4.2.0-exui-3682
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/fesm2022/hmcts-media-viewer.mjs +369 -841
- package/fesm2022/hmcts-media-viewer.mjs.map +1 -1
- package/index.d.ts +2316 -4
- package/index.d.ts.map +1 -0
- package/package.json +10 -12
- package/esm2022/hmcts-media-viewer.mjs +0 -5
- package/esm2022/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.mjs +0 -122
- package/esm2022/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.mjs +0 -120
- package/esm2022/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.mjs +0 -101
- package/esm2022/lib/annotations/annotation-set/annotation-set.component.mjs +0 -50
- package/esm2022/lib/annotations/annotation-set/annotation-set.model.mjs +0 -2
- package/esm2022/lib/annotations/annotation-set/annotation-view/annotation-view.component.mjs +0 -94
- package/esm2022/lib/annotations/annotation-set/annotation-view/annotation.model.mjs +0 -2
- package/esm2022/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.mjs +0 -116
- package/esm2022/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.mjs +0 -2
- package/esm2022/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.mjs +0 -119
- package/esm2022/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.mjs +0 -86
- package/esm2022/lib/annotations/annotations.module.mjs +0 -162
- package/esm2022/lib/annotations/comment-set/comment/comment.component.mjs +0 -178
- package/esm2022/lib/annotations/comment-set/comment/comment.model.mjs +0 -2
- package/esm2022/lib/annotations/comment-set/comment/comment.service.mjs +0 -50
- package/esm2022/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.mjs +0 -47
- package/esm2022/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.mjs +0 -31
- package/esm2022/lib/annotations/comment-set/comment-navigate/comments-navigate.component.mjs +0 -91
- package/esm2022/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.mjs +0 -62
- package/esm2022/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.mjs +0 -54
- package/esm2022/lib/annotations/comment-set/comment-set-header/comment-set-header.component.mjs +0 -72
- package/esm2022/lib/annotations/comment-set/comment-set-render.service.mjs +0 -55
- package/esm2022/lib/annotations/comment-set/comment-set.component.mjs +0 -123
- package/esm2022/lib/annotations/comments-summary/comments-summary.component.mjs +0 -120
- package/esm2022/lib/annotations/models/api-persisted.model.mjs +0 -2
- package/esm2022/lib/annotations/models/event-select.model.mjs +0 -2
- package/esm2022/lib/annotations/models/tags.model.mjs +0 -2
- package/esm2022/lib/annotations/models/user.model.mjs +0 -2
- package/esm2022/lib/annotations/pipes/date/date.pipe.mjs +0 -26
- package/esm2022/lib/annotations/pipes/filter/filter.pipe.mjs +0 -32
- package/esm2022/lib/annotations/pipes/unsnake/unsnake.pipe.mjs +0 -16
- package/esm2022/lib/annotations/services/annotation-api/annotation-api.service.mjs +0 -58
- package/esm2022/lib/annotations/services/bookmarks-api/bookmarks-api.service.mjs +0 -45
- package/esm2022/lib/annotations/services/tags/tags.services.mjs +0 -41
- package/esm2022/lib/annotations/tags/tags.component.mjs +0 -53
- package/esm2022/lib/bookmark/components/bookmark-icons.component.mjs +0 -25
- package/esm2022/lib/icp/confirm-exit/confirm-action-dialog.component.mjs +0 -30
- package/esm2022/lib/icp/icp-follower.service.mjs +0 -65
- package/esm2022/lib/icp/icp-presenter.service.mjs +0 -56
- package/esm2022/lib/icp/icp-session-api.service.mjs +0 -28
- package/esm2022/lib/icp/icp-update.service.mjs +0 -73
- package/esm2022/lib/icp/icp.events.mjs +0 -15
- package/esm2022/lib/icp/icp.interfaces.mjs +0 -2
- package/esm2022/lib/icp/icp.service.mjs +0 -98
- package/esm2022/lib/icp/participants-list/participants-list.component.mjs +0 -32
- package/esm2022/lib/icp/socket.service.mjs +0 -128
- package/esm2022/lib/media-viewer.component.mjs +0 -341
- package/esm2022/lib/media-viewer.module.mjs +0 -139
- package/esm2022/lib/print.service.mjs +0 -32
- package/esm2022/lib/redaction/components/redaction.component.mjs +0 -91
- package/esm2022/lib/redaction/services/redaction-api.service.mjs +0 -50
- package/esm2022/lib/redaction/services/redaction.model.mjs +0 -2
- package/esm2022/lib/shared/directives/keyboard-nav.directive.mjs +0 -243
- package/esm2022/lib/shared/directives/tooltip-dismiss.directive.mjs +0 -36
- package/esm2022/lib/shared/gov-uk-date/gov-uk-date.component.mjs +0 -28
- package/esm2022/lib/shared/gov-uk-error-message/gov-uk-error-message.component.mjs +0 -34
- package/esm2022/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.mjs +0 -63
- package/esm2022/lib/shared/gov-uk-label/gov-uk-label.component.mjs +0 -44
- package/esm2022/lib/shared/shared.module.mjs +0 -58
- package/esm2022/lib/shared/util/helpers/html-templates.helper.mjs +0 -29
- package/esm2022/lib/shared/util/services/number.helper.service.mjs +0 -23
- package/esm2022/lib/store/actions/annotation.actions.mjs +0 -119
- package/esm2022/lib/store/actions/bookmark.actions.mjs +0 -112
- package/esm2022/lib/store/actions/document.actions.mjs +0 -91
- package/esm2022/lib/store/actions/icp.actions.mjs +0 -56
- package/esm2022/lib/store/actions/redaction.actions.mjs +0 -132
- package/esm2022/lib/store/actions/tag.actions.mjs +0 -21
- package/esm2022/lib/store/bookmarks-store-utils.mjs +0 -49
- package/esm2022/lib/store/effects/annotation.effects.mjs +0 -51
- package/esm2022/lib/store/effects/bookmarks.effects.mjs +0 -44
- package/esm2022/lib/store/effects/document.effects.mjs +0 -44
- package/esm2022/lib/store/effects/icp.effects.mjs +0 -26
- package/esm2022/lib/store/effects/index.mjs +0 -7
- package/esm2022/lib/store/effects/redaction.effects.mjs +0 -67
- package/esm2022/lib/store/models/bookmarks.interface.mjs +0 -2
- package/esm2022/lib/store/models/filters.interface.mjs +0 -2
- package/esm2022/lib/store/reducers/annotations.reducer.mjs +0 -208
- package/esm2022/lib/store/reducers/bookmarks.reducer.mjs +0 -125
- package/esm2022/lib/store/reducers/document.reducer.mjs +0 -158
- package/esm2022/lib/store/reducers/icp.reducer.mjs +0 -56
- package/esm2022/lib/store/reducers/redaction.reducer.mjs +0 -116
- package/esm2022/lib/store/reducers/reducers.mjs +0 -23
- package/esm2022/lib/store/reducers/tags.reducer.mjs +0 -93
- package/esm2022/lib/store/selectors/annotation.selectors.mjs +0 -81
- package/esm2022/lib/store/selectors/bookmark.selectors.mjs +0 -37
- package/esm2022/lib/store/selectors/document.selectors.mjs +0 -13
- package/esm2022/lib/store/selectors/icp.selectors.mjs +0 -13
- package/esm2022/lib/store/selectors/redaction.selectors.mjs +0 -26
- package/esm2022/lib/store/selectors/tag.selectors.mjs +0 -15
- package/esm2022/lib/store/store-utils.mjs +0 -131
- package/esm2022/lib/toolbar/highlight-toolbar/highlight-toolbar.component.mjs +0 -74
- package/esm2022/lib/toolbar/icp-event.service.mjs +0 -44
- package/esm2022/lib/toolbar/icp-toolbar/icp-toolbar.component.mjs +0 -43
- package/esm2022/lib/toolbar/main-toolbar/main-toolbar.component.mjs +0 -271
- package/esm2022/lib/toolbar/redaction-search-bar/redaction-search-bar.component.mjs +0 -237
- package/esm2022/lib/toolbar/redaction-search-bar/redaction-search.model.mjs +0 -2
- package/esm2022/lib/toolbar/redaction-toolbar/redaction-toolbar.component.mjs +0 -94
- package/esm2022/lib/toolbar/search-bar/search-bar.component.mjs +0 -109
- package/esm2022/lib/toolbar/toolbar-button-visibility.service.mjs +0 -94
- package/esm2022/lib/toolbar/toolbar-event.service.mjs +0 -178
- package/esm2022/lib/toolbar/toolbar-focus.service.mjs +0 -33
- package/esm2022/lib/toolbar/toolbar.module.mjs +0 -81
- package/esm2022/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.mjs +0 -82
- package/esm2022/lib/viewers/convertible-content-viewer/document-conversion-api.service.mjs +0 -22
- package/esm2022/lib/viewers/grab-n-drag.directive.mjs +0 -57
- package/esm2022/lib/viewers/image-viewer/image-viewer.component.mjs +0 -166
- package/esm2022/lib/viewers/multimedia-player/multimedia-player.component.mjs +0 -59
- package/esm2022/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.mjs +0 -266
- package/esm2022/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.mjs +0 -40
- package/esm2022/lib/viewers/pdf-viewer/pdf-viewer.component.mjs +0 -242
- package/esm2022/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.mjs +0 -379
- package/esm2022/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.mjs +0 -2
- package/esm2022/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.mjs +0 -49
- package/esm2022/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.mjs +0 -2
- package/esm2022/lib/viewers/pdf-viewer/side-bar/side-bar.component.mjs +0 -99
- package/esm2022/lib/viewers/rotation-persist/rotation-api.service.mjs +0 -27
- package/esm2022/lib/viewers/rotation-persist/rotation-persist.directive.mjs +0 -61
- package/esm2022/lib/viewers/rotation-persist/rotation.model.mjs +0 -2
- package/esm2022/lib/viewers/unsupported-viewer/unsupported-viewer.component.mjs +0 -49
- package/esm2022/lib/viewers/viewer-event.service.mjs +0 -34
- package/esm2022/lib/viewers/viewer-exception.model.mjs +0 -13
- package/esm2022/lib/viewers/viewer-util.service.mjs +0 -20
- package/esm2022/public_api.mjs +0 -33
- package/hmcts-media-viewer.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts +0 -48
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts +0 -32
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts +0 -18
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-set.component.d.ts +0 -27
- package/lib/annotations/annotation-set/annotation-set.component.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-set.model.d.ts +0 -7
- package/lib/annotations/annotation-set/annotation-set.model.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts +0 -34
- package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts +0 -16
- package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts +0 -41
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts.map +0 -1
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts +0 -9
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts.map +0 -1
- package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts +0 -37
- package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts.map +0 -1
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts +0 -37
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts.map +0 -1
- package/lib/annotations/annotations.module.d.ts +0 -36
- package/lib/annotations/annotations.module.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment/comment.component.d.ts +0 -69
- package/lib/annotations/comment-set/comment/comment.component.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment/comment.model.d.ts +0 -13
- package/lib/annotations/comment-set/comment/comment.model.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment/comment.service.d.ts +0 -22
- package/lib/annotations/comment-set/comment/comment.service.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts +0 -14
- package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts +0 -12
- package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts +0 -28
- package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts +0 -26
- package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts +0 -21
- package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +0 -36
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment-set-render.service.d.ts +0 -15
- package/lib/annotations/comment-set/comment-set-render.service.d.ts.map +0 -1
- package/lib/annotations/comment-set/comment-set.component.d.ts +0 -56
- package/lib/annotations/comment-set/comment-set.component.d.ts.map +0 -1
- package/lib/annotations/comments-summary/comments-summary.component.d.ts +0 -42
- package/lib/annotations/comments-summary/comments-summary.component.d.ts.map +0 -1
- package/lib/annotations/models/api-persisted.model.d.ts +0 -11
- package/lib/annotations/models/api-persisted.model.d.ts.map +0 -1
- package/lib/annotations/models/event-select.model.d.ts +0 -6
- package/lib/annotations/models/event-select.model.d.ts.map +0 -1
- package/lib/annotations/models/tags.model.d.ts +0 -7
- package/lib/annotations/models/tags.model.d.ts.map +0 -1
- package/lib/annotations/models/user.model.d.ts +0 -6
- package/lib/annotations/models/user.model.d.ts.map +0 -1
- package/lib/annotations/pipes/date/date.pipe.d.ts +0 -16
- package/lib/annotations/pipes/date/date.pipe.d.ts.map +0 -1
- package/lib/annotations/pipes/filter/filter.pipe.d.ts +0 -8
- package/lib/annotations/pipes/filter/filter.pipe.d.ts.map +0 -1
- package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts +0 -8
- package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts.map +0 -1
- package/lib/annotations/services/annotation-api/annotation-api.service.d.ts +0 -28
- package/lib/annotations/services/annotation-api/annotation-api.service.d.ts.map +0 -1
- package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts +0 -21
- package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts.map +0 -1
- package/lib/annotations/services/tags/tags.services.d.ts +0 -18
- package/lib/annotations/services/tags/tags.services.d.ts.map +0 -1
- package/lib/annotations/tags/tags.component.d.ts +0 -28
- package/lib/annotations/tags/tags.component.d.ts.map +0 -1
- package/lib/bookmark/components/bookmark-icons.component.d.ts +0 -19
- package/lib/bookmark/components/bookmark-icons.component.d.ts.map +0 -1
- package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts +0 -14
- package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts.map +0 -1
- package/lib/icp/icp-follower.service.d.ts +0 -26
- package/lib/icp/icp-follower.service.d.ts.map +0 -1
- package/lib/icp/icp-presenter.service.d.ts +0 -25
- package/lib/icp/icp-presenter.service.d.ts.map +0 -1
- package/lib/icp/icp-session-api.service.d.ts +0 -15
- package/lib/icp/icp-session-api.service.d.ts.map +0 -1
- package/lib/icp/icp-update.service.d.ts +0 -22
- package/lib/icp/icp-update.service.d.ts.map +0 -1
- package/lib/icp/icp.events.d.ts +0 -14
- package/lib/icp/icp.events.d.ts.map +0 -1
- package/lib/icp/icp.interfaces.d.ts +0 -23
- package/lib/icp/icp.interfaces.d.ts.map +0 -1
- package/lib/icp/icp.service.d.ts +0 -40
- package/lib/icp/icp.service.d.ts.map +0 -1
- package/lib/icp/participants-list/participants-list.component.d.ts +0 -23
- package/lib/icp/participants-list/participants-list.component.d.ts.map +0 -1
- package/lib/icp/socket.service.d.ts +0 -29
- package/lib/icp/socket.service.d.ts.map +0 -1
- package/lib/media-viewer.component.d.ts +0 -80
- package/lib/media-viewer.component.d.ts.map +0 -1
- package/lib/media-viewer.module.d.ts +0 -36
- package/lib/media-viewer.module.d.ts.map +0 -1
- package/lib/print.service.d.ts +0 -8
- package/lib/print.service.d.ts.map +0 -1
- package/lib/redaction/components/redaction.component.d.ts +0 -42
- package/lib/redaction/components/redaction.component.d.ts.map +0 -1
- package/lib/redaction/services/redaction-api.service.d.ts +0 -20
- package/lib/redaction/services/redaction-api.service.d.ts.map +0 -1
- package/lib/redaction/services/redaction.model.d.ts +0 -11
- package/lib/redaction/services/redaction.model.d.ts.map +0 -1
- package/lib/shared/directives/keyboard-nav.directive.d.ts +0 -30
- package/lib/shared/directives/keyboard-nav.directive.d.ts.map +0 -1
- package/lib/shared/directives/tooltip-dismiss.directive.d.ts +0 -11
- package/lib/shared/directives/tooltip-dismiss.directive.d.ts.map +0 -1
- package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts +0 -15
- package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts.map +0 -1
- package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts +0 -11
- package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts.map +0 -1
- package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +0 -16
- package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts.map +0 -1
- package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts +0 -14
- package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts.map +0 -1
- package/lib/shared/shared.module.d.ts +0 -15
- package/lib/shared/shared.module.d.ts.map +0 -1
- package/lib/shared/util/helpers/html-templates.helper.d.ts +0 -9
- package/lib/shared/util/helpers/html-templates.helper.d.ts.map +0 -1
- package/lib/shared/util/services/number.helper.service.d.ts +0 -11
- package/lib/shared/util/services/number.helper.service.d.ts.map +0 -1
- package/lib/store/actions/annotation.actions.d.ts +0 -126
- package/lib/store/actions/annotation.actions.d.ts.map +0 -1
- package/lib/store/actions/bookmark.actions.d.ts +0 -117
- package/lib/store/actions/bookmark.actions.d.ts.map +0 -1
- package/lib/store/actions/document.actions.d.ts +0 -90
- package/lib/store/actions/document.actions.d.ts.map +0 -1
- package/lib/store/actions/icp.actions.d.ts +0 -75
- package/lib/store/actions/icp.actions.d.ts.map +0 -1
- package/lib/store/actions/redaction.actions.d.ts +0 -127
- package/lib/store/actions/redaction.actions.d.ts.map +0 -1
- package/lib/store/actions/tag.actions.d.ts +0 -30
- package/lib/store/actions/tag.actions.d.ts.map +0 -1
- package/lib/store/bookmarks-store-utils.d.ts +0 -9
- package/lib/store/bookmarks-store-utils.d.ts.map +0 -1
- package/lib/store/effects/annotation.effects.d.ts +0 -16
- package/lib/store/effects/annotation.effects.d.ts.map +0 -1
- package/lib/store/effects/bookmarks.effects.d.ts +0 -21
- package/lib/store/effects/bookmarks.effects.d.ts.map +0 -1
- package/lib/store/effects/document.effects.d.ts +0 -17
- package/lib/store/effects/document.effects.d.ts.map +0 -1
- package/lib/store/effects/icp.effects.d.ts +0 -16
- package/lib/store/effects/icp.effects.d.ts.map +0 -1
- package/lib/store/effects/index.d.ts +0 -2
- package/lib/store/effects/index.d.ts.map +0 -1
- package/lib/store/effects/redaction.effects.d.ts +0 -20
- package/lib/store/effects/redaction.effects.d.ts.map +0 -1
- package/lib/store/models/bookmarks.interface.d.ts +0 -31
- package/lib/store/models/bookmarks.interface.d.ts.map +0 -1
- package/lib/store/models/filters.interface.d.ts +0 -8
- package/lib/store/models/filters.interface.d.ts.map +0 -1
- package/lib/store/reducers/annotations.reducer.d.ts +0 -48
- package/lib/store/reducers/annotations.reducer.d.ts.map +0 -1
- package/lib/store/reducers/bookmarks.reducer.d.ts +0 -27
- package/lib/store/reducers/bookmarks.reducer.d.ts.map +0 -1
- package/lib/store/reducers/document.reducer.d.ts +0 -52
- package/lib/store/reducers/document.reducer.d.ts.map +0 -1
- package/lib/store/reducers/icp.reducer.d.ts +0 -9
- package/lib/store/reducers/icp.reducer.d.ts.map +0 -1
- package/lib/store/reducers/redaction.reducer.d.ts +0 -32
- package/lib/store/reducers/redaction.reducer.d.ts.map +0 -1
- package/lib/store/reducers/reducers.d.ts +0 -24
- package/lib/store/reducers/reducers.d.ts.map +0 -1
- package/lib/store/reducers/tags.reducer.d.ts +0 -32
- package/lib/store/reducers/tags.reducer.d.ts.map +0 -1
- package/lib/store/selectors/annotation.selectors.d.ts +0 -136
- package/lib/store/selectors/annotation.selectors.d.ts.map +0 -1
- package/lib/store/selectors/bookmark.selectors.d.ts +0 -38
- package/lib/store/selectors/bookmark.selectors.d.ts.map +0 -1
- package/lib/store/selectors/document.selectors.d.ts +0 -23
- package/lib/store/selectors/document.selectors.d.ts.map +0 -1
- package/lib/store/selectors/icp.selectors.d.ts +0 -10
- package/lib/store/selectors/icp.selectors.d.ts.map +0 -1
- package/lib/store/selectors/redaction.selectors.d.ts +0 -35
- package/lib/store/selectors/redaction.selectors.d.ts.map +0 -1
- package/lib/store/selectors/tag.selectors.d.ts +0 -28
- package/lib/store/selectors/tag.selectors.d.ts.map +0 -1
- package/lib/store/store-utils.d.ts +0 -25
- package/lib/store/store-utils.d.ts.map +0 -1
- package/lib/toolbar/highlight-toolbar/highlight-toolbar.component.d.ts +0 -26
- package/lib/toolbar/highlight-toolbar/highlight-toolbar.component.d.ts.map +0 -1
- package/lib/toolbar/icp-event.service.d.ts +0 -21
- package/lib/toolbar/icp-event.service.d.ts.map +0 -1
- package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts +0 -24
- package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts.map +0 -1
- package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts +0 -80
- package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts.map +0 -1
- package/lib/toolbar/redaction-search-bar/redaction-search-bar.component.d.ts +0 -60
- package/lib/toolbar/redaction-search-bar/redaction-search-bar.component.d.ts.map +0 -1
- package/lib/toolbar/redaction-search-bar/redaction-search.model.d.ts +0 -12
- package/lib/toolbar/redaction-search-bar/redaction-search.model.d.ts.map +0 -1
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +0 -35
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts.map +0 -1
- package/lib/toolbar/search-bar/search-bar.component.d.ts +0 -34
- package/lib/toolbar/search-bar/search-bar.component.d.ts.map +0 -1
- package/lib/toolbar/toolbar-button-visibility.service.d.ts +0 -67
- package/lib/toolbar/toolbar-button-visibility.service.d.ts.map +0 -1
- package/lib/toolbar/toolbar-event.service.d.ts +0 -96
- package/lib/toolbar/toolbar-event.service.d.ts.map +0 -1
- package/lib/toolbar/toolbar-focus.service.d.ts +0 -7
- package/lib/toolbar/toolbar-focus.service.d.ts.map +0 -1
- package/lib/toolbar/toolbar.module.d.ts +0 -21
- package/lib/toolbar/toolbar.module.d.ts.map +0 -1
- package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts +0 -31
- package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts.map +0 -1
- package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts +0 -12
- package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts.map +0 -1
- package/lib/viewers/grab-n-drag.directive.d.ts +0 -19
- package/lib/viewers/grab-n-drag.directive.d.ts.map +0 -1
- package/lib/viewers/image-viewer/image-viewer.component.d.ts +0 -57
- package/lib/viewers/image-viewer/image-viewer.component.d.ts.map +0 -1
- package/lib/viewers/multimedia-player/multimedia-player.component.d.ts +0 -25
- package/lib/viewers/multimedia-player/multimedia-player.component.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts +0 -69
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts +0 -17
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +0 -82
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts +0 -82
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts +0 -22
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts +0 -20
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts +0 -14
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts.map +0 -1
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +0 -42
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts.map +0 -1
- package/lib/viewers/rotation-persist/rotation-api.service.d.ts +0 -14
- package/lib/viewers/rotation-persist/rotation-api.service.d.ts.map +0 -1
- package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts +0 -27
- package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts.map +0 -1
- package/lib/viewers/rotation-persist/rotation.model.d.ts +0 -5
- package/lib/viewers/rotation-persist/rotation.model.d.ts.map +0 -1
- package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts +0 -23
- package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts.map +0 -1
- package/lib/viewers/viewer-event.service.d.ts +0 -23
- package/lib/viewers/viewer-event.service.d.ts.map +0 -1
- package/lib/viewers/viewer-exception.model.d.ts +0 -15
- package/lib/viewers/viewer-exception.model.d.ts.map +0 -1
- package/lib/viewers/viewer-util.service.d.ts +0 -10
- package/lib/viewers/viewer-util.service.d.ts.map +0 -1
- package/public_api.d.ts +0 -30
- package/public_api.d.ts.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { select } from '@ngrx/store';
|
|
3
|
-
import * as fromSelectors from '../../store/selectors/icp.selectors';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../toolbar/toolbar-event.service";
|
|
6
|
-
import * as i2 from "@ngrx/store";
|
|
7
|
-
import * as i3 from "../../toolbar/icp-event.service";
|
|
8
|
-
import * as i4 from "@angular/common";
|
|
9
|
-
export class ParticipantsListComponent {
|
|
10
|
-
constructor(toolbarEvents, store, icpEventService) {
|
|
11
|
-
this.toolbarEvents = toolbarEvents;
|
|
12
|
-
this.store = store;
|
|
13
|
-
this.icpEventService = icpEventService;
|
|
14
|
-
this.showParticipantsList = false;
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
this.participants$ = this.store.pipe(select(fromSelectors.getParticipants));
|
|
18
|
-
this.presenter$ = this.store.pipe(select(fromSelectors.getPresenter));
|
|
19
|
-
this.isPresenter$ = this.store.pipe(select(fromSelectors.isPresenter));
|
|
20
|
-
this.subscription = this.icpEventService.participantsListVisible.subscribe(isVisible => this.showParticipantsList = isVisible);
|
|
21
|
-
}
|
|
22
|
-
ngOnDestroy() {
|
|
23
|
-
this.subscription.unsubscribe();
|
|
24
|
-
}
|
|
25
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParticipantsListComponent, deps: [{ token: i1.ToolbarEventService }, { token: i2.Store }, { token: i3.IcpEventService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ParticipantsListComponent, selector: "mv-participants-list", ngImport: i0, template: "<div class=\"comments-panel comment-container icp-mode\" [ngClass]=\"{'expanded': showParticipantsList }\">\n\n <div class=\"participant__card no-shadow\">\n <p class=\"participant__name\">All Participants</p>\n </div>\n\n <div *ngIf=\"(presenter$ | async)?.username !== ''\" class=\"participant__card\">\n <div class=\"participant__header\"> Presenting </div>\n <p class=\"participant__name\">{{(presenter$ | async)?.username}}</p>\n </div>\n\n <div *ngIf=\"(participants$ | async).length > 1\" class=\"participant__card\">\n <div class=\"participant__header\">Following</div>\n <ng-container *ngFor=\"let participant of (participants$ | async)\">\n <p *ngIf=\"participant.id !== (presenter$ | async)?.id\" class=\"participant__name\">{{participant.username}}</p>\n </ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }] }); }
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParticipantsListComponent, decorators: [{
|
|
29
|
-
type: Component,
|
|
30
|
-
args: [{ selector: 'mv-participants-list', template: "<div class=\"comments-panel comment-container icp-mode\" [ngClass]=\"{'expanded': showParticipantsList }\">\n\n <div class=\"participant__card no-shadow\">\n <p class=\"participant__name\">All Participants</p>\n </div>\n\n <div *ngIf=\"(presenter$ | async)?.username !== ''\" class=\"participant__card\">\n <div class=\"participant__header\"> Presenting </div>\n <p class=\"participant__name\">{{(presenter$ | async)?.username}}</p>\n </div>\n\n <div *ngIf=\"(participants$ | async).length > 1\" class=\"participant__card\">\n <div class=\"participant__header\">Following</div>\n <ng-container *ngFor=\"let participant of (participants$ | async)\">\n <p *ngIf=\"participant.id !== (presenter$ | async)?.id\" class=\"participant__name\">{{participant.username}}</p>\n </ng-container>\n </div>\n</div>\n" }]
|
|
31
|
-
}], ctorParameters: () => [{ type: i1.ToolbarEventService }, { type: i2.Store }, { type: i3.IcpEventService }] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFydGljaXBhbnRzLWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWVkaWEtdmlld2VyL3NyYy9saWIvaWNwL3BhcnRpY2lwYW50cy1saXN0L3BhcnRpY2lwYW50cy1saXN0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21lZGlhLXZpZXdlci9zcmMvbGliL2ljcC9wYXJ0aWNpcGFudHMtbGlzdC9wYXJ0aWNpcGFudHMtbGlzdC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFxQixNQUFNLGVBQWUsQ0FBQztBQUk3RCxPQUFPLEVBQUUsTUFBTSxFQUFTLE1BQU0sYUFBYSxDQUFDO0FBQzVDLE9BQU8sS0FBSyxhQUFhLE1BQU0scUNBQXFDLENBQUM7Ozs7OztBQU9yRSxNQUFNLE9BQU8seUJBQXlCO0lBU3BDLFlBQTZCLGFBQWtDLEVBQzNDLEtBQXNCLEVBQ2IsZUFBZ0M7UUFGaEMsa0JBQWEsR0FBYixhQUFhLENBQXFCO1FBQzNDLFVBQUssR0FBTCxLQUFLLENBQWlCO1FBQ2Isb0JBQWUsR0FBZixlQUFlLENBQWlCO1FBSjdELHlCQUFvQixHQUFHLEtBQUssQ0FBQztJQUltQyxDQUFDO0lBRWpFLFFBQVE7UUFDTixJQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxhQUFhLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQztRQUM1RSxJQUFJLENBQUMs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gfCBhc3luYykubGVuZ3RoID4gMVwiIGNsYXNzPVwicGFydGljaXBhbnRfX2NhcmRcIj5cbiAgICA8ZGl2IGNsYXNzPVwicGFydGljaXBhbnRfX2hlYWRlclwiPkZvbGxvd2luZzwvZGl2PlxuICAgIDxuZy1jb250YWluZXIgKm5nRm9yPVwibGV0IHBhcnRpY2lwYW50IG9mIChwYXJ0aWNpcGFudHMkIHwgYXN5bmMpXCI+XG4gICAgICAgIDxwICpuZ0lmPVwicGFydGljaXBhbnQuaWQgIT09IChwcmVzZW50ZXIkIHwgYXN5bmMpPy5pZFwiIGNsYXNzPVwicGFydGljaXBhbnRfX25hbWVcIj57e3BhcnRpY2lwYW50LnVzZXJuYW1lfX08L3A+XG4gICAgPC9uZy1jb250YWluZXI+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject, of, Subject } from 'rxjs';
|
|
3
|
-
import { IcpEvents } from './icp.events';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class SocketService {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.connected$ = new BehaviorSubject(false);
|
|
8
|
-
this.sessionJoined$ = new Subject();
|
|
9
|
-
this.presenterUpdated$ = new Subject();
|
|
10
|
-
this.clientDisconnected$ = new Subject();
|
|
11
|
-
this.participantUpdated$ = new Subject();
|
|
12
|
-
this.newParticipantJoined$ = new Subject();
|
|
13
|
-
this.screenUpdated$ = new Subject();
|
|
14
|
-
}
|
|
15
|
-
ngOnDestroy() {
|
|
16
|
-
this.subscription.unsubscribe();
|
|
17
|
-
}
|
|
18
|
-
connect(url, session) {
|
|
19
|
-
const socketUrl = new URL(url);
|
|
20
|
-
socketUrl.searchParams.append('sessionId', `${session.sessionId}`);
|
|
21
|
-
socketUrl.searchParams.append('caseId', `${session.caseId}`);
|
|
22
|
-
socketUrl.searchParams.append('documentId', `${session.documentId}`);
|
|
23
|
-
this.subscription = this.getSocketClient(socketUrl.toString()).subscribe((socket) => {
|
|
24
|
-
socket.onopen = (event) => {
|
|
25
|
-
this.connected$.next(true);
|
|
26
|
-
};
|
|
27
|
-
socket.onmessage = (event) => {
|
|
28
|
-
console.log('onmessage');
|
|
29
|
-
const eventData = JSON.parse(event.data);
|
|
30
|
-
if (eventData.data && eventData.data.eventName) {
|
|
31
|
-
this.messageEventHandller(eventData.data.eventName, eventData.data.data);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
socket.onerror = (event) => {
|
|
35
|
-
console.log('onerror');
|
|
36
|
-
};
|
|
37
|
-
socket.onclose = (event) => {
|
|
38
|
-
console.log('onclose');
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
connected() {
|
|
43
|
-
return this.connected$.asObservable();
|
|
44
|
-
}
|
|
45
|
-
join(session) {
|
|
46
|
-
this.emit(IcpEvents.SESSION_JOIN, session);
|
|
47
|
-
}
|
|
48
|
-
leave(session) {
|
|
49
|
-
this.emit(IcpEvents.SESSION_LEAVE, session);
|
|
50
|
-
this.subscription.unsubscribe();
|
|
51
|
-
}
|
|
52
|
-
emit(event, data) {
|
|
53
|
-
if (this.socket && this.socket.readyState === WebSocket.OPEN) {
|
|
54
|
-
this.socket.send(JSON.stringify({
|
|
55
|
-
type: 'event',
|
|
56
|
-
event,
|
|
57
|
-
data
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
console.warn('WebSocket is not open. Ready state is:', this.socket ? this.socket.readyState : 'no socket');
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
listen(event) {
|
|
65
|
-
switch (event) {
|
|
66
|
-
case IcpEvents.SESSION_JOINED: {
|
|
67
|
-
return this.sessionJoined$.asObservable();
|
|
68
|
-
}
|
|
69
|
-
case IcpEvents.PRESENTER_UPDATED: {
|
|
70
|
-
return this.presenterUpdated$.asObservable();
|
|
71
|
-
}
|
|
72
|
-
case IcpEvents.CLIENT_DISCONNECTED: {
|
|
73
|
-
return this.clientDisconnected$.asObservable();
|
|
74
|
-
}
|
|
75
|
-
case IcpEvents.PARTICIPANTS_UPDATED: {
|
|
76
|
-
return this.participantUpdated$.asObservable();
|
|
77
|
-
}
|
|
78
|
-
case IcpEvents.NEW_PARTICIPANT_JOINED: {
|
|
79
|
-
return this.newParticipantJoined$.asObservable();
|
|
80
|
-
}
|
|
81
|
-
case IcpEvents.SCREEN_UPDATED: {
|
|
82
|
-
return this.screenUpdated$.asObservable();
|
|
83
|
-
}
|
|
84
|
-
default: {
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
messageEventHandller(eventName, data) {
|
|
90
|
-
switch (eventName) {
|
|
91
|
-
case IcpEvents.SESSION_JOINED: {
|
|
92
|
-
this.sessionJoined$.next(data);
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
case IcpEvents.PRESENTER_UPDATED: {
|
|
96
|
-
this.presenterUpdated$.next(data);
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
case IcpEvents.CLIENT_DISCONNECTED: {
|
|
100
|
-
this.clientDisconnected$.next();
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
case IcpEvents.PARTICIPANTS_UPDATED: {
|
|
104
|
-
this.participantUpdated$.next(data);
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
case IcpEvents.NEW_PARTICIPANT_JOINED: {
|
|
108
|
-
this.newParticipantJoined$.next();
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
case IcpEvents.SCREEN_UPDATED: {
|
|
112
|
-
this.screenUpdated$.next(data);
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
getSocketClient(url) {
|
|
118
|
-
this.socket = new WebSocket(url, 'json.webpubsub.azure.v1');
|
|
119
|
-
return of(this.socket);
|
|
120
|
-
}
|
|
121
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SocketService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
122
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SocketService, providedIn: 'root' }); }
|
|
123
|
-
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SocketService, decorators: [{
|
|
125
|
-
type: Injectable,
|
|
126
|
-
args: [{ providedIn: 'root' }]
|
|
127
|
-
}], ctorParameters: () => [] });
|
|
128
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ja2V0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tZWRpYS12aWV3ZXIvc3JjL2xpYi9pY3Avc29ja2V0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsZUFBZSxFQUFvQixFQUFFLEVBQUUsT0FBTyxFQUFnQixNQUFNLE1BQU0sQ0FBQztBQUNwRixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFDOztBQUl6QyxNQUFNLE9BQU8sYUFBYTtJQVl4QjtRQVJBLGVBQVUsR0FBRyxJQUFJLGVBQWUsQ0FBVSxLQUFLLENBQUMsQ0FBQztRQUNqRCxtQkFBYyxHQUFHLElBQUksT0FBTyxFQUFRLENBQUM7UUFDckMsc0JBQWlCLEdBQUcsSUFBSSxPQUFPLEVBQVEsQ0FBQztRQUN4Qyx3QkFBbUIsR0FBRyxJQUFJLE9BQU8sRUFBU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