@hmcts/media-viewer 2.8.1 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/README.md +0 -1
  2. package/assets/sass/comment.scss +1 -1
  3. package/assets/sass/outline-attachment.scss +6 -1
  4. package/assets/sass/participants-list.scss +1 -1
  5. package/assets/sass/rectangle.scss +1 -4
  6. package/bundles/hmcts-media-viewer.umd.js +3367 -10784
  7. package/bundles/hmcts-media-viewer.umd.js.map +1 -1
  8. package/bundles/hmcts-media-viewer.umd.min.js +1 -16
  9. package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
  10. package/esm2015/hmcts-media-viewer.js +20 -24
  11. package/esm2015/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +9 -103
  12. package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +14 -111
  13. package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +4 -49
  14. package/esm2015/lib/annotations/annotation-set/annotation-set.component.js +2 -51
  15. package/esm2015/lib/annotations/annotation-set/annotation-set.model.js +2 -15
  16. package/esm2015/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +4 -74
  17. package/esm2015/lib/annotations/annotation-set/annotation-view/annotation.model.js +2 -29
  18. package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +5 -114
  19. package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +2 -21
  20. package/esm2015/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +8 -85
  21. package/esm2015/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +9 -105
  22. package/esm2015/lib/annotations/annotations.module.js +1 -5
  23. package/esm2015/lib/annotations/comment-set/comment/comment.component.js +4 -152
  24. package/esm2015/lib/annotations/comment-set/comment/comment.model.js +2 -27
  25. package/esm2015/lib/annotations/comment-set/comment/comment.service.js +3 -53
  26. package/esm2015/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +1 -37
  27. package/esm2015/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +1 -25
  28. package/esm2015/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +5 -63
  29. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +10 -76
  30. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +5 -53
  31. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +6 -63
  32. package/esm2015/lib/annotations/comment-set/comment-set-render.service.js +5 -73
  33. package/esm2015/lib/annotations/comment-set/comment-set.component.js +11 -154
  34. package/esm2015/lib/annotations/comments-summary/comments-summary.component.js +8 -111
  35. package/esm2015/lib/annotations/models/api-persisted.model.js +2 -25
  36. package/esm2015/lib/annotations/models/event-select.model.js +2 -17
  37. package/esm2015/lib/annotations/models/tags.model.js +2 -19
  38. package/esm2015/lib/annotations/models/user.model.js +2 -17
  39. package/esm2015/lib/annotations/pipes/date/date.pipe.js +1 -12
  40. package/esm2015/lib/annotations/pipes/filter/filter.pipe.js +3 -17
  41. package/esm2015/lib/annotations/pipes/unsnake/unsnake.pipe.js +1 -9
  42. package/esm2015/lib/annotations/services/annotation-api/annotation-api.service.js +6 -93
  43. package/esm2015/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +6 -69
  44. package/esm2015/lib/annotations/services/tags/tags.services.js +6 -54
  45. package/esm2015/lib/annotations/tags/tags.component.js +4 -50
  46. package/esm2015/lib/bookmark/components/bookmark-icons.component.js +2 -29
  47. package/esm2015/lib/icp/confirm-exit/confirm-action-dialog.component.js +2 -22
  48. package/esm2015/lib/icp/icp-follower.service.js +4 -63
  49. package/esm2015/lib/icp/icp-presenter.service.js +6 -69
  50. package/esm2015/lib/icp/icp-session-api.service.js +2 -26
  51. package/esm2015/lib/icp/icp-update.service.js +18 -92
  52. package/esm2015/lib/icp/icp.events.js +15 -0
  53. package/esm2015/lib/icp/icp.interfaces.js +2 -51
  54. package/esm2015/lib/icp/icp.service.js +18 -155
  55. package/esm2015/lib/icp/participants-list/participants-list.component.js +3 -43
  56. package/esm2015/lib/icp/socket.service.js +92 -86
  57. package/esm2015/lib/media-viewer.component.js +29 -199
  58. package/esm2015/lib/media-viewer.module.js +3 -7
  59. package/esm2015/lib/print.service.js +2 -18
  60. package/esm2015/lib/redaction/components/redaction.component.js +13 -127
  61. package/esm2015/lib/redaction/services/redaction-api.service.js +6 -75
  62. package/esm2015/lib/redaction/services/redaction.model.js +2 -19
  63. package/esm2015/lib/shared/gov-uk-date/gov-uk-date.component.js +2 -14
  64. package/esm2015/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +3 -14
  65. package/esm2015/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +2 -17
  66. package/esm2015/lib/shared/gov-uk-label/gov-uk-label.component.js +3 -12
  67. package/esm2015/lib/shared/shared.module.js +1 -5
  68. package/esm2015/lib/shared/util/helpers/html-templates.helper.js +1 -10
  69. package/esm2015/lib/shared/util/services/number.helper.service.js +4 -14
  70. package/esm2015/lib/store/actions/annotation.actions.js +1 -140
  71. package/esm2015/lib/store/actions/bookmark.actions.js +1 -150
  72. package/esm2015/lib/store/actions/document.actions.js +1 -130
  73. package/esm2015/lib/store/actions/icp.actions.js +1 -80
  74. package/esm2015/lib/store/actions/redaction.actions.js +1 -155
  75. package/esm2015/lib/store/actions/tag.actions.js +1 -30
  76. package/esm2015/lib/store/bookmarks-store-utils.js +17 -69
  77. package/esm2015/lib/store/effects/annotation.effects.js +16 -90
  78. package/esm2015/lib/store/effects/bookmarks.effects.js +12 -127
  79. package/esm2015/lib/store/effects/document.effects.js +16 -97
  80. package/esm2015/lib/store/effects/icp.effects.js +5 -63
  81. package/esm2015/lib/store/effects/index.js +1 -6
  82. package/esm2015/lib/store/effects/redaction.effects.js +26 -137
  83. package/esm2015/lib/store/models/bookmarks.interface.js +2 -57
  84. package/esm2015/lib/store/models/filters.interface.js +2 -17
  85. package/esm2015/lib/store/reducers/annotations.reducer.js +14 -129
  86. package/esm2015/lib/store/reducers/bookmarks.reducer.js +12 -99
  87. package/esm2015/lib/store/reducers/document.reducer.js +10 -129
  88. package/esm2015/lib/store/reducers/icp.reducer.js +6 -47
  89. package/esm2015/lib/store/reducers/redaction.reducer.js +7 -73
  90. package/esm2015/lib/store/reducers/reducers.js +7 -31
  91. package/esm2015/lib/store/reducers/tags.reducer.js +12 -102
  92. package/esm2015/lib/store/selectors/annotation.selectors.js +29 -118
  93. package/esm2015/lib/store/selectors/bookmark.selectors.js +12 -51
  94. package/esm2015/lib/store/selectors/document.selectors.js +5 -26
  95. package/esm2015/lib/store/selectors/icp.selectors.js +9 -38
  96. package/esm2015/lib/store/selectors/redaction.selectors.js +10 -45
  97. package/esm2015/lib/store/selectors/tag.selectors.js +6 -28
  98. package/esm2015/lib/store/store-utils.js +26 -156
  99. package/esm2015/lib/toolbar/icp-event.service.js +13 -48
  100. package/esm2015/lib/toolbar/icp-toolbar/icp-toolbar.component.js +4 -56
  101. package/esm2015/lib/toolbar/main-toolbar/main-toolbar.component.js +9 -176
  102. package/esm2015/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +4 -58
  103. package/esm2015/lib/toolbar/search-bar/search-bar.component.js +11 -85
  104. package/esm2015/lib/toolbar/toolbar-button-visibility.service.js +2 -46
  105. package/esm2015/lib/toolbar/toolbar-event.service.js +2 -173
  106. package/esm2015/lib/toolbar/toolbar.module.js +1 -5
  107. package/esm2015/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +5 -75
  108. package/esm2015/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +3 -34
  109. package/esm2015/lib/viewers/grab-n-drag.directive.js +1 -38
  110. package/esm2015/lib/viewers/image-viewer/image-viewer.component.js +29 -196
  111. package/esm2015/lib/viewers/multimedia-player/multimedia-player.component.js +3 -55
  112. package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +61 -240
  113. package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +2 -40
  114. package/esm2015/lib/viewers/pdf-viewer/pdf-viewer.component.js +34 -302
  115. package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +12 -107
  116. package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +2 -39
  117. package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +16 -25
  118. package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +2 -31
  119. package/esm2015/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +16 -73
  120. package/esm2015/lib/viewers/rotation-persist/rotation-api.service.js +2 -35
  121. package/esm2015/lib/viewers/rotation-persist/rotation-persist.directive.js +8 -87
  122. package/esm2015/lib/viewers/rotation-persist/rotation.model.js +2 -15
  123. package/esm2015/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +4 -60
  124. package/esm2015/lib/viewers/viewer-event.service.js +2 -41
  125. package/esm2015/lib/viewers/viewer-exception.model.js +7 -32
  126. package/esm2015/lib/viewers/viewer-util.service.js +2 -20
  127. package/esm2015/public_api.js +28 -32
  128. package/fesm2015/hmcts-media-viewer.js +1540 -8065
  129. package/fesm2015/hmcts-media-viewer.js.map +1 -1
  130. package/hmcts-media-viewer-v2.9.1.tgz +0 -0
  131. package/hmcts-media-viewer.d.ts +19 -18
  132. package/hmcts-media-viewer.d.ts.map +1 -0
  133. package/hmcts-media-viewer.metadata.json +1 -1
  134. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts +5 -3
  135. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts.map +1 -0
  136. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.ngfactory.d.ts.map +1 -0
  137. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts +1 -0
  138. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts.map +1 -0
  139. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.ngfactory.d.ts.map +1 -0
  140. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts +1 -0
  141. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts.map +1 -0
  142. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.ngfactory.d.ts.map +1 -0
  143. package/lib/annotations/annotation-set/annotation-set.component.d.ts +1 -0
  144. package/lib/annotations/annotation-set/annotation-set.component.d.ts.map +1 -0
  145. package/lib/annotations/annotation-set/annotation-set.component.ngfactory.d.ts.map +1 -0
  146. package/lib/annotations/annotation-set/annotation-set.model.d.ts +1 -0
  147. package/lib/annotations/annotation-set/annotation-set.model.d.ts.map +1 -0
  148. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts +4 -3
  149. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts.map +1 -0
  150. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.ngfactory.d.ts.map +1 -0
  151. package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts +1 -0
  152. package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts.map +1 -0
  153. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts +5 -2
  154. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts.map +1 -0
  155. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.ngfactory.d.ts.map +1 -0
  156. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts +1 -0
  157. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts.map +1 -0
  158. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts +3 -1
  159. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts.map +1 -0
  160. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.ngfactory.d.ts.map +1 -0
  161. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts +1 -0
  162. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts.map +1 -0
  163. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.ngfactory.d.ts.map +1 -0
  164. package/lib/annotations/annotations.module.d.ts +1 -0
  165. package/lib/annotations/annotations.module.d.ts.map +1 -0
  166. package/lib/annotations/annotations.module.ngfactory.d.ts.map +1 -0
  167. package/lib/annotations/comment-set/comment/comment.component.d.ts +7 -5
  168. package/lib/annotations/comment-set/comment/comment.component.d.ts.map +1 -0
  169. package/lib/annotations/comment-set/comment/comment.component.ngfactory.d.ts.map +1 -0
  170. package/lib/annotations/comment-set/comment/comment.model.d.ts +1 -0
  171. package/lib/annotations/comment-set/comment/comment.model.d.ts.map +1 -0
  172. package/lib/annotations/comment-set/comment/comment.service.d.ts +1 -0
  173. package/lib/annotations/comment-set/comment/comment.service.d.ts.map +1 -0
  174. package/lib/annotations/comment-set/comment/comment.service.ngfactory.d.ts.map +1 -0
  175. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts +1 -0
  176. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts.map +1 -0
  177. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.ngfactory.d.ts.map +1 -0
  178. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts +1 -0
  179. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts.map +1 -0
  180. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.ngfactory.d.ts.map +1 -0
  181. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts +1 -0
  182. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts.map +1 -0
  183. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.ngfactory.d.ts.map +1 -0
  184. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts +1 -0
  185. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts.map +1 -0
  186. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.ngfactory.d.ts.map +1 -0
  187. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts +1 -0
  188. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts.map +1 -0
  189. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.ngfactory.d.ts.map +1 -0
  190. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +1 -0
  191. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts.map +1 -0
  192. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.ngfactory.d.ts.map +1 -0
  193. package/lib/annotations/comment-set/comment-set-render.service.d.ts +1 -0
  194. package/lib/annotations/comment-set/comment-set-render.service.d.ts.map +1 -0
  195. package/lib/annotations/comment-set/comment-set-render.service.ngfactory.d.ts.map +1 -0
  196. package/lib/annotations/comment-set/comment-set.component.d.ts +1 -0
  197. package/lib/annotations/comment-set/comment-set.component.d.ts.map +1 -0
  198. package/lib/annotations/comment-set/comment-set.component.ngfactory.d.ts.map +1 -0
  199. package/lib/annotations/comments-summary/comments-summary.component.d.ts +1 -1
  200. package/lib/annotations/comments-summary/comments-summary.component.d.ts.map +1 -0
  201. package/lib/annotations/comments-summary/comments-summary.component.ngfactory.d.ts.map +1 -0
  202. package/lib/annotations/models/api-persisted.model.d.ts +1 -0
  203. package/lib/annotations/models/api-persisted.model.d.ts.map +1 -0
  204. package/lib/annotations/models/event-select.model.d.ts +1 -0
  205. package/lib/annotations/models/event-select.model.d.ts.map +1 -0
  206. package/lib/annotations/models/tags.model.d.ts +1 -0
  207. package/lib/annotations/models/tags.model.d.ts.map +1 -0
  208. package/lib/annotations/models/user.model.d.ts +1 -0
  209. package/lib/annotations/models/user.model.d.ts.map +1 -0
  210. package/lib/annotations/pipes/date/date.pipe.d.ts +2 -1
  211. package/lib/annotations/pipes/date/date.pipe.d.ts.map +1 -0
  212. package/lib/annotations/pipes/date/date.pipe.ngfactory.d.ts.map +1 -0
  213. package/lib/annotations/pipes/filter/filter.pipe.d.ts +1 -0
  214. package/lib/annotations/pipes/filter/filter.pipe.d.ts.map +1 -0
  215. package/lib/annotations/pipes/filter/filter.pipe.ngfactory.d.ts.map +1 -0
  216. package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts +1 -0
  217. package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts.map +1 -0
  218. package/lib/annotations/pipes/unsnake/unsnake.pipe.ngfactory.d.ts.map +1 -0
  219. package/lib/annotations/services/annotation-api/annotation-api.service.d.ts +3 -2
  220. package/lib/annotations/services/annotation-api/annotation-api.service.d.ts.map +1 -0
  221. package/lib/annotations/services/annotation-api/annotation-api.service.ngfactory.d.ts.map +1 -0
  222. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts +1 -0
  223. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts.map +1 -0
  224. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.ngfactory.d.ts.map +1 -0
  225. package/lib/annotations/services/tags/tags.services.d.ts +1 -0
  226. package/lib/annotations/services/tags/tags.services.d.ts.map +1 -0
  227. package/lib/annotations/services/tags/tags.services.ngfactory.d.ts.map +1 -0
  228. package/lib/annotations/tags/tags.component.d.ts +3 -2
  229. package/lib/annotations/tags/tags.component.d.ts.map +1 -0
  230. package/lib/annotations/tags/tags.component.ngfactory.d.ts.map +1 -0
  231. package/lib/bookmark/components/bookmark-icons.component.d.ts +1 -0
  232. package/lib/bookmark/components/bookmark-icons.component.d.ts.map +1 -0
  233. package/lib/bookmark/components/bookmark-icons.component.ngfactory.d.ts.map +1 -0
  234. package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts +1 -0
  235. package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts.map +1 -0
  236. package/lib/icp/confirm-exit/confirm-action-dialog.component.ngfactory.d.ts.map +1 -0
  237. package/lib/icp/icp-follower.service.d.ts +1 -0
  238. package/lib/icp/icp-follower.service.d.ts.map +1 -0
  239. package/lib/icp/icp-follower.service.ngfactory.d.ts.map +1 -0
  240. package/lib/icp/icp-presenter.service.d.ts +1 -0
  241. package/lib/icp/icp-presenter.service.d.ts.map +1 -0
  242. package/lib/icp/icp-presenter.service.ngfactory.d.ts.map +1 -0
  243. package/lib/icp/icp-session-api.service.d.ts +1 -0
  244. package/lib/icp/icp-session-api.service.d.ts.map +1 -0
  245. package/lib/icp/icp-session-api.service.ngfactory.d.ts.map +1 -0
  246. package/lib/icp/icp-update.service.d.ts +1 -9
  247. package/lib/icp/icp-update.service.d.ts.map +1 -0
  248. package/lib/icp/icp-update.service.ngfactory.d.ts.map +1 -0
  249. package/lib/icp/icp.events.d.ts +14 -0
  250. package/lib/icp/icp.events.d.ts.map +1 -0
  251. package/lib/icp/icp.interfaces.d.ts +2 -0
  252. package/lib/icp/icp.interfaces.d.ts.map +1 -0
  253. package/lib/icp/icp.service.d.ts +1 -0
  254. package/lib/icp/icp.service.d.ts.map +1 -0
  255. package/lib/icp/icp.service.ngfactory.d.ts.map +1 -0
  256. package/lib/icp/participants-list/participants-list.component.d.ts +1 -0
  257. package/lib/icp/participants-list/participants-list.component.d.ts.map +1 -0
  258. package/lib/icp/participants-list/participants-list.component.ngfactory.d.ts.map +1 -0
  259. package/lib/icp/socket.service.d.ts +14 -4
  260. package/lib/icp/socket.service.d.ts.map +1 -0
  261. package/lib/icp/socket.service.ngfactory.d.ts.map +1 -0
  262. package/lib/media-viewer.component.d.ts +2 -0
  263. package/lib/media-viewer.component.d.ts.map +1 -0
  264. package/lib/media-viewer.component.ngfactory.d.ts.map +1 -0
  265. package/lib/media-viewer.module.d.ts +1 -0
  266. package/lib/media-viewer.module.d.ts.map +1 -0
  267. package/lib/media-viewer.module.ngfactory.d.ts.map +1 -0
  268. package/lib/print.service.d.ts +1 -0
  269. package/lib/print.service.d.ts.map +1 -0
  270. package/lib/print.service.ngfactory.d.ts.map +1 -0
  271. package/lib/redaction/components/redaction.component.d.ts +1 -0
  272. package/lib/redaction/components/redaction.component.d.ts.map +1 -0
  273. package/lib/redaction/components/redaction.component.ngfactory.d.ts.map +1 -0
  274. package/lib/redaction/services/redaction-api.service.d.ts +1 -0
  275. package/lib/redaction/services/redaction-api.service.d.ts.map +1 -0
  276. package/lib/redaction/services/redaction-api.service.ngfactory.d.ts.map +1 -0
  277. package/lib/redaction/services/redaction.model.d.ts +1 -0
  278. package/lib/redaction/services/redaction.model.d.ts.map +1 -0
  279. package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts +1 -0
  280. package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts.map +1 -0
  281. package/lib/shared/gov-uk-date/gov-uk-date.component.ngfactory.d.ts.map +1 -0
  282. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts +1 -0
  283. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts.map +1 -0
  284. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.ngfactory.d.ts.map +1 -0
  285. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +1 -0
  286. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts.map +1 -0
  287. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.ngfactory.d.ts.map +1 -0
  288. package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts +1 -0
  289. package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts.map +1 -0
  290. package/lib/shared/gov-uk-label/gov-uk-label.component.ngfactory.d.ts.map +1 -0
  291. package/lib/shared/shared.module.d.ts +1 -0
  292. package/lib/shared/shared.module.d.ts.map +1 -0
  293. package/lib/shared/shared.module.ngfactory.d.ts.map +1 -0
  294. package/lib/shared/util/helpers/html-templates.helper.d.ts +1 -0
  295. package/lib/shared/util/helpers/html-templates.helper.d.ts.map +1 -0
  296. package/lib/shared/util/services/number.helper.service.d.ts +1 -0
  297. package/lib/shared/util/services/number.helper.service.d.ts.map +1 -0
  298. package/lib/shared/util/services/number.helper.service.ngfactory.d.ts.map +1 -0
  299. package/lib/store/actions/annotation.actions.d.ts +1 -0
  300. package/lib/store/actions/annotation.actions.d.ts.map +1 -0
  301. package/lib/store/actions/bookmark.actions.d.ts +1 -0
  302. package/lib/store/actions/bookmark.actions.d.ts.map +1 -0
  303. package/lib/store/actions/document.actions.d.ts +1 -0
  304. package/lib/store/actions/document.actions.d.ts.map +1 -0
  305. package/lib/store/actions/icp.actions.d.ts +1 -0
  306. package/lib/store/actions/icp.actions.d.ts.map +1 -0
  307. package/lib/store/actions/redaction.actions.d.ts +1 -0
  308. package/lib/store/actions/redaction.actions.d.ts.map +1 -0
  309. package/lib/store/actions/tag.actions.d.ts +1 -0
  310. package/lib/store/actions/tag.actions.d.ts.map +1 -0
  311. package/lib/store/bookmarks-store-utils.d.ts +1 -0
  312. package/lib/store/bookmarks-store-utils.d.ts.map +1 -0
  313. package/lib/store/effects/annotation.effects.d.ts +1 -0
  314. package/lib/store/effects/annotation.effects.d.ts.map +1 -0
  315. package/lib/store/effects/annotation.effects.ngfactory.d.ts.map +1 -0
  316. package/lib/store/effects/bookmarks.effects.d.ts +1 -0
  317. package/lib/store/effects/bookmarks.effects.d.ts.map +1 -0
  318. package/lib/store/effects/bookmarks.effects.ngfactory.d.ts.map +1 -0
  319. package/lib/store/effects/document.effects.d.ts +1 -0
  320. package/lib/store/effects/document.effects.d.ts.map +1 -0
  321. package/lib/store/effects/document.effects.ngfactory.d.ts.map +1 -0
  322. package/lib/store/effects/icp.effects.d.ts +1 -0
  323. package/lib/store/effects/icp.effects.d.ts.map +1 -0
  324. package/lib/store/effects/icp.effects.ngfactory.d.ts.map +1 -0
  325. package/lib/store/effects/index.d.ts +1 -0
  326. package/lib/store/effects/index.d.ts.map +1 -0
  327. package/lib/store/effects/redaction.effects.d.ts +1 -0
  328. package/lib/store/effects/redaction.effects.d.ts.map +1 -0
  329. package/lib/store/effects/redaction.effects.ngfactory.d.ts.map +1 -0
  330. package/lib/store/models/bookmarks.interface.d.ts +1 -0
  331. package/lib/store/models/bookmarks.interface.d.ts.map +1 -0
  332. package/lib/store/models/filters.interface.d.ts +1 -0
  333. package/lib/store/models/filters.interface.d.ts.map +1 -0
  334. package/lib/store/reducers/annotations.reducer.d.ts +1 -0
  335. package/lib/store/reducers/annotations.reducer.d.ts.map +1 -0
  336. package/lib/store/reducers/bookmarks.reducer.d.ts +1 -0
  337. package/lib/store/reducers/bookmarks.reducer.d.ts.map +1 -0
  338. package/lib/store/reducers/document.reducer.d.ts +1 -0
  339. package/lib/store/reducers/document.reducer.d.ts.map +1 -0
  340. package/lib/store/reducers/icp.reducer.d.ts +1 -0
  341. package/lib/store/reducers/icp.reducer.d.ts.map +1 -0
  342. package/lib/store/reducers/redaction.reducer.d.ts +1 -0
  343. package/lib/store/reducers/redaction.reducer.d.ts.map +1 -0
  344. package/lib/store/reducers/reducers.d.ts +2 -1
  345. package/lib/store/reducers/reducers.d.ts.map +1 -0
  346. package/lib/store/reducers/tags.reducer.d.ts +1 -0
  347. package/lib/store/reducers/tags.reducer.d.ts.map +1 -0
  348. package/lib/store/selectors/annotation.selectors.d.ts +54 -15
  349. package/lib/store/selectors/annotation.selectors.d.ts.map +1 -0
  350. package/lib/store/selectors/bookmark.selectors.d.ts +18 -7
  351. package/lib/store/selectors/bookmark.selectors.d.ts.map +1 -0
  352. package/lib/store/selectors/document.selectors.d.ts +15 -9
  353. package/lib/store/selectors/document.selectors.d.ts.map +1 -0
  354. package/lib/store/selectors/icp.selectors.d.ts +9 -8
  355. package/lib/store/selectors/icp.selectors.d.ts.map +1 -0
  356. package/lib/store/selectors/redaction.selectors.d.ts +18 -7
  357. package/lib/store/selectors/redaction.selectors.d.ts.map +1 -0
  358. package/lib/store/selectors/tag.selectors.d.ts +16 -6
  359. package/lib/store/selectors/tag.selectors.d.ts.map +1 -0
  360. package/lib/store/store-utils.d.ts +1 -0
  361. package/lib/store/store-utils.d.ts.map +1 -0
  362. package/lib/toolbar/icp-event.service.d.ts +1 -0
  363. package/lib/toolbar/icp-event.service.d.ts.map +1 -0
  364. package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts +1 -0
  365. package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts.map +1 -0
  366. package/lib/toolbar/icp-toolbar/icp-toolbar.component.ngfactory.d.ts.map +1 -0
  367. package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts +1 -0
  368. package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts.map +1 -0
  369. package/lib/toolbar/main-toolbar/main-toolbar.component.ngfactory.d.ts.map +1 -0
  370. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +1 -0
  371. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts.map +1 -0
  372. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.ngfactory.d.ts.map +1 -0
  373. package/lib/toolbar/search-bar/search-bar.component.d.ts +2 -0
  374. package/lib/toolbar/search-bar/search-bar.component.d.ts.map +1 -0
  375. package/lib/toolbar/search-bar/search-bar.component.ngfactory.d.ts.map +1 -0
  376. package/lib/toolbar/toolbar-button-visibility.service.d.ts +1 -0
  377. package/lib/toolbar/toolbar-button-visibility.service.d.ts.map +1 -0
  378. package/lib/toolbar/toolbar-button-visibility.service.ngfactory.d.ts.map +1 -0
  379. package/lib/toolbar/toolbar-event.service.d.ts +1 -0
  380. package/lib/toolbar/toolbar-event.service.d.ts.map +1 -0
  381. package/lib/toolbar/toolbar-event.service.ngfactory.d.ts.map +1 -0
  382. package/lib/toolbar/toolbar.module.d.ts +1 -0
  383. package/lib/toolbar/toolbar.module.d.ts.map +1 -0
  384. package/lib/toolbar/toolbar.module.ngfactory.d.ts.map +1 -0
  385. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts +1 -0
  386. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts.map +1 -0
  387. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.ngfactory.d.ts.map +1 -0
  388. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts +1 -0
  389. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts.map +1 -0
  390. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.ngfactory.d.ts.map +1 -0
  391. package/lib/viewers/grab-n-drag.directive.d.ts +1 -0
  392. package/lib/viewers/grab-n-drag.directive.d.ts.map +1 -0
  393. package/lib/viewers/grab-n-drag.directive.ngfactory.d.ts.map +1 -0
  394. package/lib/viewers/image-viewer/image-viewer.component.d.ts +5 -1
  395. package/lib/viewers/image-viewer/image-viewer.component.d.ts.map +1 -0
  396. package/lib/viewers/image-viewer/image-viewer.component.ngfactory.d.ts.map +1 -0
  397. package/lib/viewers/multimedia-player/multimedia-player.component.d.ts +1 -0
  398. package/lib/viewers/multimedia-player/multimedia-player.component.d.ts.map +1 -0
  399. package/lib/viewers/multimedia-player/multimedia-player.component.ngfactory.d.ts.map +1 -0
  400. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts +5 -0
  401. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts.map +1 -0
  402. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts +1 -0
  403. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts.map +1 -0
  404. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.ngfactory.d.ts.map +1 -0
  405. package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +6 -2
  406. package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts.map +1 -0
  407. package/lib/viewers/pdf-viewer/pdf-viewer.component.ngfactory.d.ts.map +1 -0
  408. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts +2 -1
  409. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts.map +1 -0
  410. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.ngfactory.d.ts.map +1 -0
  411. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts +1 -0
  412. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts.map +1 -0
  413. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts +7 -0
  414. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts.map +1 -0
  415. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.ngfactory.d.ts.map +1 -0
  416. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts +3 -1
  417. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts.map +1 -0
  418. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +4 -0
  419. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts.map +1 -0
  420. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.ngfactory.d.ts.map +1 -0
  421. package/lib/viewers/rotation-persist/rotation-api.service.d.ts +1 -0
  422. package/lib/viewers/rotation-persist/rotation-api.service.d.ts.map +1 -0
  423. package/lib/viewers/rotation-persist/rotation-api.service.ngfactory.d.ts.map +1 -0
  424. package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts +1 -0
  425. package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts.map +1 -0
  426. package/lib/viewers/rotation-persist/rotation-persist.directive.ngfactory.d.ts.map +1 -0
  427. package/lib/viewers/rotation-persist/rotation.model.d.ts +1 -0
  428. package/lib/viewers/rotation-persist/rotation.model.d.ts.map +1 -0
  429. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts +1 -0
  430. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts.map +1 -0
  431. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.ngfactory.d.ts.map +1 -0
  432. package/lib/viewers/viewer-event.service.d.ts +1 -0
  433. package/lib/viewers/viewer-event.service.d.ts.map +1 -0
  434. package/lib/viewers/viewer-event.service.ngfactory.d.ts.map +1 -0
  435. package/lib/viewers/viewer-exception.model.d.ts +1 -0
  436. package/lib/viewers/viewer-exception.model.d.ts.map +1 -0
  437. package/lib/viewers/viewer-util.service.d.ts +1 -0
  438. package/lib/viewers/viewer-util.service.d.ts.map +1 -0
  439. package/lib/viewers/viewer-util.service.ngfactory.d.ts.map +1 -0
  440. package/package.json +16 -17
  441. package/public_api.d.ts +1 -0
  442. package/public_api.d.ts.map +1 -0
  443. package/esm5/hmcts-media-viewer.js +0 -67
  444. package/esm5/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +0 -215
  445. package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +0 -236
  446. package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +0 -125
  447. package/esm5/lib/annotations/annotation-set/annotation-set.component.js +0 -109
  448. package/esm5/lib/annotations/annotation-set/annotation-set.model.js +0 -15
  449. package/esm5/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +0 -177
  450. package/esm5/lib/annotations/annotation-set/annotation-view/annotation.model.js +0 -29
  451. package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +0 -250
  452. package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +0 -21
  453. package/esm5/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +0 -216
  454. package/esm5/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +0 -200
  455. package/esm5/lib/annotations/annotations.module.js +0 -109
  456. package/esm5/lib/annotations/comment-set/comment/comment.component.js +0 -353
  457. package/esm5/lib/annotations/comment-set/comment/comment.model.js +0 -27
  458. package/esm5/lib/annotations/comment-set/comment/comment.service.js +0 -125
  459. package/esm5/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +0 -98
  460. package/esm5/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +0 -63
  461. package/esm5/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +0 -174
  462. package/esm5/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +0 -145
  463. package/esm5/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +0 -117
  464. package/esm5/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +0 -131
  465. package/esm5/lib/annotations/comment-set/comment-set-render.service.js +0 -177
  466. package/esm5/lib/annotations/comment-set/comment-set.component.js +0 -295
  467. package/esm5/lib/annotations/comments-summary/comments-summary.component.js +0 -239
  468. package/esm5/lib/annotations/models/api-persisted.model.js +0 -25
  469. package/esm5/lib/annotations/models/event-select.model.js +0 -17
  470. package/esm5/lib/annotations/models/tags.model.js +0 -19
  471. package/esm5/lib/annotations/models/user.model.js +0 -17
  472. package/esm5/lib/annotations/pipes/date/date.pipe.js +0 -48
  473. package/esm5/lib/annotations/pipes/filter/filter.pipe.js +0 -52
  474. package/esm5/lib/annotations/pipes/unsnake/unsnake.pipe.js +0 -28
  475. package/esm5/lib/annotations/services/annotation-api/annotation-api.service.js +0 -188
  476. package/esm5/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +0 -132
  477. package/esm5/lib/annotations/services/tags/tags.services.js +0 -102
  478. package/esm5/lib/annotations/tags/tags.component.js +0 -112
  479. package/esm5/lib/bookmark/components/bookmark-icons.component.js +0 -55
  480. package/esm5/lib/icp/confirm-exit/confirm-action-dialog.component.js +0 -50
  481. package/esm5/lib/icp/icp-follower.service.js +0 -135
  482. package/esm5/lib/icp/icp-presenter.service.js +0 -135
  483. package/esm5/lib/icp/icp-session-api.service.js +0 -49
  484. package/esm5/lib/icp/icp-update.service.js +0 -165
  485. package/esm5/lib/icp/icp.interfaces.js +0 -51
  486. package/esm5/lib/icp/icp.service.js +0 -261
  487. package/esm5/lib/icp/participants-list/participants-list.component.js +0 -77
  488. package/esm5/lib/icp/socket.service.js +0 -142
  489. package/esm5/lib/media-viewer.component.js +0 -422
  490. package/esm5/lib/media-viewer.module.js +0 -110
  491. package/esm5/lib/print.service.js +0 -53
  492. package/esm5/lib/redaction/components/redaction.component.js +0 -247
  493. package/esm5/lib/redaction/services/redaction-api.service.js +0 -133
  494. package/esm5/lib/redaction/services/redaction.model.js +0 -19
  495. package/esm5/lib/shared/gov-uk-date/gov-uk-date.component.js +0 -37
  496. package/esm5/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +0 -36
  497. package/esm5/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -49
  498. package/esm5/lib/shared/gov-uk-label/gov-uk-label.component.js +0 -33
  499. package/esm5/lib/shared/shared.module.js +0 -42
  500. package/esm5/lib/shared/util/helpers/html-templates.helper.js +0 -36
  501. package/esm5/lib/shared/util/services/number.helper.service.js +0 -39
  502. package/esm5/lib/store/actions/annotation.actions.js +0 -226
  503. package/esm5/lib/store/actions/bookmark.actions.js +0 -242
  504. package/esm5/lib/store/actions/document.actions.js +0 -210
  505. package/esm5/lib/store/actions/icp.actions.js +0 -130
  506. package/esm5/lib/store/actions/redaction.actions.js +0 -255
  507. package/esm5/lib/store/actions/tag.actions.js +0 -50
  508. package/esm5/lib/store/bookmarks-store-utils.js +0 -110
  509. package/esm5/lib/store/effects/annotation.effects.js +0 -128
  510. package/esm5/lib/store/effects/bookmarks.effects.js +0 -193
  511. package/esm5/lib/store/effects/document.effects.js +0 -138
  512. package/esm5/lib/store/effects/icp.effects.js +0 -97
  513. package/esm5/lib/store/effects/index.js +0 -12
  514. package/esm5/lib/store/effects/redaction.effects.js +0 -190
  515. package/esm5/lib/store/models/bookmarks.interface.js +0 -57
  516. package/esm5/lib/store/models/filters.interface.js +0 -17
  517. package/esm5/lib/store/reducers/annotations.reducer.js +0 -231
  518. package/esm5/lib/store/reducers/bookmarks.reducer.js +0 -170
  519. package/esm5/lib/store/reducers/document.reducer.js +0 -222
  520. package/esm5/lib/store/reducers/icp.reducer.js +0 -83
  521. package/esm5/lib/store/reducers/redaction.reducer.js +0 -134
  522. package/esm5/lib/store/reducers/reducers.js +0 -47
  523. package/esm5/lib/store/reducers/tags.reducer.js +0 -159
  524. package/esm5/lib/store/selectors/annotation.selectors.js +0 -175
  525. package/esm5/lib/store/selectors/bookmark.selectors.js +0 -78
  526. package/esm5/lib/store/selectors/document.selectors.js +0 -37
  527. package/esm5/lib/store/selectors/icp.selectors.js +0 -47
  528. package/esm5/lib/store/selectors/redaction.selectors.js +0 -65
  529. package/esm5/lib/store/selectors/tag.selectors.js +0 -40
  530. package/esm5/lib/store/store-utils.js +0 -296
  531. package/esm5/lib/toolbar/icp-event.service.js +0 -65
  532. package/esm5/lib/toolbar/icp-toolbar/icp-toolbar.component.js +0 -112
  533. package/esm5/lib/toolbar/main-toolbar/main-toolbar.component.js +0 -408
  534. package/esm5/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +0 -130
  535. package/esm5/lib/toolbar/search-bar/search-bar.component.js +0 -226
  536. package/esm5/lib/toolbar/toolbar-button-visibility.service.js +0 -146
  537. package/esm5/lib/toolbar/toolbar-event.service.js +0 -416
  538. package/esm5/lib/toolbar/toolbar.module.js +0 -50
  539. package/esm5/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +0 -168
  540. package/esm5/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +0 -57
  541. package/esm5/lib/viewers/grab-n-drag.directive.js +0 -98
  542. package/esm5/lib/viewers/image-viewer/image-viewer.component.js +0 -402
  543. package/esm5/lib/viewers/multimedia-player/multimedia-player.component.js +0 -125
  544. package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +0 -446
  545. package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +0 -87
  546. package/esm5/lib/viewers/pdf-viewer/pdf-viewer.component.js +0 -582
  547. package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +0 -251
  548. package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +0 -39
  549. package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +0 -62
  550. package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +0 -31
  551. package/esm5/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +0 -146
  552. package/esm5/lib/viewers/rotation-persist/rotation-api.service.js +0 -68
  553. package/esm5/lib/viewers/rotation-persist/rotation-persist.directive.js +0 -163
  554. package/esm5/lib/viewers/rotation-persist/rotation.model.js +0 -15
  555. package/esm5/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +0 -120
  556. package/esm5/lib/viewers/viewer-event.service.js +0 -86
  557. package/esm5/lib/viewers/viewer-exception.model.js +0 -36
  558. package/esm5/lib/viewers/viewer-util.service.js +0 -44
  559. package/esm5/public_api.js +0 -35
  560. package/fesm5/hmcts-media-viewer.js +0 -14158
  561. package/fesm5/hmcts-media-viewer.js.map +0 -1
  562. package/hmcts-media-viewer-v2.8.1.tgz +0 -0
@@ -1,261 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Injectable } from '@angular/core';
6
- import { ToolbarEventService } from '../toolbar/toolbar-event.service';
7
- import { ViewerEventService } from '../viewers/viewer-event.service';
8
- import { IcpUpdateService } from './icp-update.service';
9
- import { IcpPresenterService } from './icp-presenter.service';
10
- import { IcpFollowerService } from './icp-follower.service';
11
- import { select, Store } from '@ngrx/store';
12
- import * as fromIcpActions from '../store/actions/icp.actions';
13
- import * as fromIcpSelectors from '../store/selectors/icp.selectors';
14
- import { filter, take } from 'rxjs/operators';
15
- var IcpService = /** @class */ (function () {
16
- function IcpService(toolbarEvents, viewerEvents, socketService, presenterSubscriptions, followerSubscriptions, store) {
17
- var _this = this;
18
- this.toolbarEvents = toolbarEvents;
19
- this.viewerEvents = viewerEvents;
20
- this.socketService = socketService;
21
- this.presenterSubscriptions = presenterSubscriptions;
22
- this.followerSubscriptions = followerSubscriptions;
23
- this.store = store;
24
- this.subscription = this.store.pipe(select(fromIcpSelectors.getCaseId), filter((/**
25
- * @param {?} value
26
- * @return {?}
27
- */
28
- function (value) { return !!value; }))).subscribe((/**
29
- * @param {?} caseId
30
- * @return {?}
31
- */
32
- function (caseId) {
33
- _this.caseId = caseId;
34
- }));
35
- this.subscription.add(this.toolbarEvents.icp.sessionLaunch.subscribe((/**
36
- * @return {?}
37
- */
38
- function () {
39
- if (_this.caseId) {
40
- _this.launchSession();
41
- }
42
- })));
43
- }
44
- /**
45
- * @return {?}
46
- */
47
- IcpService.prototype.ngOnDestroy = /**
48
- * @return {?}
49
- */
50
- function () {
51
- this.unsubscribeSession();
52
- this.subscription.unsubscribe();
53
- };
54
- /**
55
- * @return {?}
56
- */
57
- IcpService.prototype.launchSession = /**
58
- * @return {?}
59
- */
60
- function () {
61
- var _this = this;
62
- this.store.dispatch(new fromIcpActions.LoadIcpSession(this.caseId));
63
- this.subscription.add(this.store.pipe(select(fromIcpSelectors.getIcpSession), filter((/**
64
- * @param {?} value
65
- * @return {?}
66
- */
67
- function (value) { return !!value && Object.keys(value).length > 1; })), take(1)).subscribe((/**
68
- * @return {?}
69
- */
70
- function () { _this.setUpSessionSubscriptions(); })));
71
- };
72
- /**
73
- * @return {?}
74
- */
75
- IcpService.prototype.setUpSessionSubscriptions = /**
76
- * @return {?}
77
- */
78
- function () {
79
- var _this = this;
80
- this.sessionSubscription = this.toolbarEvents.icp.becomingPresenter.subscribe((/**
81
- * @return {?}
82
- */
83
- function () { return _this.becomePresenter(); }));
84
- this.sessionSubscription.add(this.toolbarEvents.icp.stoppingPresenting.subscribe((/**
85
- * @return {?}
86
- */
87
- function () { return _this.stopPresenting(); })));
88
- this.sessionSubscription.add(this.toolbarEvents.icp.sessionExitConfirmed.subscribe((/**
89
- * @return {?}
90
- */
91
- function () { return _this.leavePresentation(); })));
92
- this.sessionSubscription.add(this.store.pipe(select(fromIcpSelectors.getPresenter)).subscribe((/**
93
- * @param {?} presenter
94
- * @return {?}
95
- */
96
- function (presenter) { return _this.presenter = presenter; })));
97
- this.sessionSubscription.add(this.store.pipe(select(fromIcpSelectors.getClient)).subscribe((/**
98
- * @param {?} client
99
- * @return {?}
100
- */
101
- function (client) { return _this.client = client; })));
102
- this.sessionSubscription.add(this.store.pipe(select(fromIcpSelectors.isPresenter)).subscribe((/**
103
- * @param {?} isPresenter
104
- * @return {?}
105
- */
106
- function (isPresenter) {
107
- _this.isPresenter = isPresenter;
108
- _this.presenterSubscriptions.update(isPresenter);
109
- _this.followerSubscriptions.update(!isPresenter);
110
- })));
111
- this.sessionSubscription.add(this.socketService.clientDisconnected().subscribe((/**
112
- * @param {?} cli
113
- * @return {?}
114
- */
115
- function (cli) { return _this.clientDisconnected(cli); })));
116
- this.sessionSubscription.add(this.socketService.presenterUpdated().subscribe((/**
117
- * @param {?} pres
118
- * @return {?}
119
- */
120
- function (pres) {
121
- _this.store.dispatch(new fromIcpActions.IcpPresenterUpdated(pres));
122
- })));
123
- this.sessionSubscription.add(this.socketService.participantListUpdated().subscribe((/**
124
- * @param {?} participants
125
- * @return {?}
126
- */
127
- function (participants) {
128
- _this.store.dispatch(new fromIcpActions.IcpParticipantListUpdated(participants));
129
- })));
130
- };
131
- /**
132
- * @return {?}
133
- */
134
- IcpService.prototype.unsubscribeSession = /**
135
- * @return {?}
136
- */
137
- function () {
138
- this.presenterSubscriptions.update(false);
139
- this.followerSubscriptions.update(false);
140
- this.sessionSubscription.unsubscribe();
141
- };
142
- /**
143
- * @return {?}
144
- */
145
- IcpService.prototype.leavePresentation = /**
146
- * @return {?}
147
- */
148
- function () {
149
- if (this.isPresenter) {
150
- this.stopPresenting();
151
- }
152
- this.removeParticipant(this.client.id);
153
- this.socketService.leaveSession();
154
- this.store.dispatch(new fromIcpActions.LeaveIcpSocketSession());
155
- this.unsubscribeSession();
156
- };
157
- /**
158
- * @return {?}
159
- */
160
- IcpService.prototype.stopPresenting = /**
161
- * @return {?}
162
- */
163
- function () {
164
- /** @type {?} */
165
- var presenter = { username: '', id: '' };
166
- this.socketService.updatePresenter(presenter);
167
- };
168
- /**
169
- * @return {?}
170
- */
171
- IcpService.prototype.becomePresenter = /**
172
- * @return {?}
173
- */
174
- function () {
175
- this.socketService.updatePresenter(this.client);
176
- };
177
- /**
178
- * @param {?} client
179
- * @return {?}
180
- */
181
- IcpService.prototype.clientDisconnected = /**
182
- * @param {?} client
183
- * @return {?}
184
- */
185
- function (client) {
186
- if (client === this.presenter.id) {
187
- this.stopPresenting();
188
- }
189
- this.removeParticipant(client);
190
- };
191
- /**
192
- * @param {?} participantId
193
- * @return {?}
194
- */
195
- IcpService.prototype.removeParticipant = /**
196
- * @param {?} participantId
197
- * @return {?}
198
- */
199
- function (participantId) {
200
- this.socketService.removeParticipant(participantId);
201
- };
202
- IcpService.decorators = [
203
- { type: Injectable }
204
- ];
205
- /** @nocollapse */
206
- IcpService.ctorParameters = function () { return [
207
- { type: ToolbarEventService },
208
- { type: ViewerEventService },
209
- { type: IcpUpdateService },
210
- { type: IcpPresenterService },
211
- { type: IcpFollowerService },
212
- { type: Store }
213
- ]; };
214
- return IcpService;
215
- }());
216
- export { IcpService };
217
- if (false) {
218
- /** @type {?} */
219
- IcpService.prototype.caseId;
220
- /** @type {?} */
221
- IcpService.prototype.client;
222
- /** @type {?} */
223
- IcpService.prototype.presenter;
224
- /** @type {?} */
225
- IcpService.prototype.isPresenter;
226
- /** @type {?} */
227
- IcpService.prototype.subscription;
228
- /** @type {?} */
229
- IcpService.prototype.sessionSubscription;
230
- /**
231
- * @type {?}
232
- * @private
233
- */
234
- IcpService.prototype.toolbarEvents;
235
- /**
236
- * @type {?}
237
- * @private
238
- */
239
- IcpService.prototype.viewerEvents;
240
- /**
241
- * @type {?}
242
- * @private
243
- */
244
- IcpService.prototype.socketService;
245
- /**
246
- * @type {?}
247
- * @private
248
- */
249
- IcpService.prototype.presenterSubscriptions;
250
- /**
251
- * @type {?}
252
- * @private
253
- */
254
- IcpService.prototype.followerSubscriptions;
255
- /**
256
- * @type {?}
257
- * @private
258
- */
259
- IcpService.prototype.store;
260
- }
261
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvbWVkaWEtdmlld2VyLyIsInNvdXJjZXMiOlsibGliL2ljcC9pY3Auc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUd0RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUN2RSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNyRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUM5RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM1RCxPQUFPLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUM1QyxPQUFPLEtBQUssY0FBYyxNQUFNLDhCQUE4QixDQUFDO0FBQy9ELE9BQU8sS0FBSyxnQkFBZ0IsTUFBTSxrQ0FBa0MsQ0FBQztBQUNyRSxPQUFPLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTlDO0lBV0Usb0JBQTZCLGFBQWtDLEVBQ2xDLFlBQWdDLEVBQ2hDLGFBQStCLEVBQy9CLHNCQUEyQyxFQU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ocGFydGljaXBhbnRJZCkge1xuICAgIHRoaXMuc29ja2V0U2VydmljZS5yZW1vdmVQYXJ0aWNpcGFudChwYXJ0aWNpcGFudElkKTtcbiAgfVxufVxuIl19
@@ -1,77 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component } from '@angular/core';
6
- import { ToolbarEventService } from '../../toolbar/toolbar-event.service';
7
- import { select, Store } from '@ngrx/store';
8
- import * as fromSelectors from '../../store/selectors/icp.selectors';
9
- var ParticipantsListComponent = /** @class */ (function () {
10
- function ParticipantsListComponent(toolbarEvents, store) {
11
- this.toolbarEvents = toolbarEvents;
12
- this.store = store;
13
- this.showParticipantsList = false;
14
- }
15
- /**
16
- * @return {?}
17
- */
18
- ParticipantsListComponent.prototype.ngOnInit = /**
19
- * @return {?}
20
- */
21
- function () {
22
- var _this = this;
23
- this.participants$ = this.store.pipe(select(fromSelectors.getParticipants));
24
- this.presenter$ = this.store.pipe(select(fromSelectors.getPresenter));
25
- this.isPresenter$ = this.store.pipe(select(fromSelectors.isPresenter));
26
- this.subscription = this.toolbarEvents.icp.participantsListVisible.subscribe((/**
27
- * @param {?} isVisible
28
- * @return {?}
29
- */
30
- function (isVisible) { return _this.showParticipantsList = isVisible; }));
31
- };
32
- /**
33
- * @return {?}
34
- */
35
- ParticipantsListComponent.prototype.ngOnDestroy = /**
36
- * @return {?}
37
- */
38
- function () {
39
- this.subscription.unsubscribe();
40
- };
41
- ParticipantsListComponent.decorators = [
42
- { type: Component, args: [{
43
- selector: 'mv-participants-list',
44
- 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"
45
- }] }
46
- ];
47
- /** @nocollapse */
48
- ParticipantsListComponent.ctorParameters = function () { return [
49
- { type: ToolbarEventService },
50
- { type: Store }
51
- ]; };
52
- return ParticipantsListComponent;
53
- }());
54
- export { ParticipantsListComponent };
55
- if (false) {
56
- /** @type {?} */
57
- ParticipantsListComponent.prototype.subscription;
58
- /** @type {?} */
59
- ParticipantsListComponent.prototype.participants$;
60
- /** @type {?} */
61
- ParticipantsListComponent.prototype.presenter$;
62
- /** @type {?} */
63
- ParticipantsListComponent.prototype.isPresenter$;
64
- /** @type {?} */
65
- ParticipantsListComponent.prototype.showParticipantsList;
66
- /**
67
- * @type {?}
68
- * @private
69
- */
70
- ParticipantsListComponent.prototype.toolbarEvents;
71
- /**
72
- * @type {?}
73
- * @private
74
- */
75
- ParticipantsListComponent.prototype.store;
76
- }
77
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFydGljaXBhbnRzLWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL21lZGlhLXZpZXdlci8iLCJzb3VyY2VzIjpbImxpYi9pY3AvcGFydGljaXBhbnRzLWxpc3QvcGFydGljaXBhbnRzLWxpc3QuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFxQixNQUFNLGVBQWUsQ0FBQztBQUU3RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUUxRSxPQUFPLEVBQUUsTUFBTSxFQ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dGlvbjtcbiAgcGFydGljaXBhbnRzJDogT2JzZXJ2YWJsZTxJY3BQYXJ0aWNpcGFudFtdPjtcbiAgcHJlc2VudGVyJDogT2JzZXJ2YWJsZTxJY3BQYXJ0aWNpcGFudD47XG4gIGlzUHJlc2VudGVyJDogT2JzZXJ2YWJsZTxib29sZWFuPjtcblxuICBzaG93UGFydGljaXBhbnRzTGlzdCA9IGZhbHNlO1xuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgdG9vbGJhckV2ZW50czogVG9vbGJhckV2ZW50U2VydmljZSxcbiAgICAgICAgICAgICAgcHJpdmF0ZSBzdG9yZTogU3RvcmU8SWNwU3RhdGU+KSB7fVxuXG4gIG5nT25Jbml0KCkge1xuICAgIHRoaXMucGFydGljaXBhbnRzJCA9IHRoaXMuc3RvcmUucGlwZShzZWxlY3QoZnJvbVNlbGVjdG9ycy5nZXRQYXJ0aWNpcGFudHMpKTtcbiAgICB0aGlzLnByZXNlbnRlciQgPSB0aGlzLnN0b3JlLnBpcGUoc2VsZWN0KGZyb21TZWxlY3RvcnMuZ2V0UHJlc2VudGVyKSk7XG4gICAgdGhpcy5pc1ByZXNlbnRlciQgPSB0aGlzLnN0b3JlLnBpcGUoc2VsZWN0KGZyb21TZWxlY3RvcnMuaXNQcmVzZW50ZXIpKTtcblxuICAgIHRoaXMuc3Vic2NyaXB0aW9uID0gdGhpcy50b29sYmFyRXZlbnRzLmljcC5wYXJ0aWNpcGFudHNMaXN0VmlzaWJsZS5zdWJzY3JpYmUoaXNWaXNpYmxlID0+IHRoaXMuc2hvd1BhcnRpY2lwYW50c0xpc3QgPSBpc1Zpc2libGUpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgdGhpcy5zdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgfVxufVxuIl19
@@ -1,142 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Injectable } from '@angular/core';
6
- import { BehaviorSubject, Observable } from 'rxjs';
7
- import socketio from 'socket.io-client/dist/socket.io.js';
8
- var SocketService = /** @class */ (function () {
9
- function SocketService() {
10
- this.connected$ = new BehaviorSubject(false);
11
- }
12
- /**
13
- * @return {?}
14
- */
15
- SocketService.prototype.ngOnDestroy = /**
16
- * @return {?}
17
- */
18
- function () {
19
- this.subscription.unsubscribe();
20
- };
21
- /**
22
- * @return {?}
23
- */
24
- SocketService.prototype.connect = /**
25
- * @return {?}
26
- */
27
- function () {
28
- var _this = this;
29
- this.socket = this.getSocketClient();
30
- this.socket.on('connect', (/**
31
- * @return {?}
32
- */
33
- function () { return _this.connected$.next(true); }));
34
- this.socket.on('disconnect', (/**
35
- * @return {?}
36
- */
37
- function () { return _this.connected$.next(false); }));
38
- };
39
- /**
40
- * @param {?} session
41
- * @return {?}
42
- */
43
- SocketService.prototype.join = /**
44
- * @param {?} session
45
- * @return {?}
46
- */
47
- function (session) {
48
- var _this = this;
49
- this.subscription = this.connected$.subscribe((/**
50
- * @param {?} connected
51
- * @return {?}
52
- */
53
- function (connected) {
54
- if (connected) {
55
- _this.socket.emit('join', session);
56
- }
57
- }));
58
- };
59
- /**
60
- * @param {?} session
61
- * @return {?}
62
- */
63
- SocketService.prototype.leave = /**
64
- * @param {?} session
65
- * @return {?}
66
- */
67
- function (session) {
68
- this.socket.emit('leave', session);
69
- this.subscription.unsubscribe();
70
- };
71
- /**
72
- * @param {?} event
73
- * @param {?} data
74
- * @return {?}
75
- */
76
- SocketService.prototype.emit = /**
77
- * @param {?} event
78
- * @param {?} data
79
- * @return {?}
80
- */
81
- function (event, data) {
82
- this.socket.emit(event, data);
83
- };
84
- /**
85
- * @param {?} event
86
- * @return {?}
87
- */
88
- SocketService.prototype.listen = /**
89
- * @param {?} event
90
- * @return {?}
91
- */
92
- function (event) {
93
- var _this = this;
94
- return new Observable((/**
95
- * @param {?} observer
96
- * @return {?}
97
- */
98
- function (observer) {
99
- _this.socket.on(event, (/**
100
- * @param {?} data
101
- * @return {?}
102
- */
103
- function (data) {
104
- observer.next(data);
105
- }));
106
- return (/**
107
- * @return {?}
108
- */
109
- function () { return _this.socket.off(event); });
110
- }));
111
- };
112
- /**
113
- * @return {?}
114
- */
115
- SocketService.prototype.getSocketClient = /**
116
- * @return {?}
117
- */
118
- function () {
119
- return socketio('/', {
120
- path: '/icp/socket.io', agent: true
121
- });
122
- };
123
- SocketService.decorators = [
124
- { type: Injectable }
125
- ];
126
- /** @nocollapse */
127
- SocketService.ctorParameters = function () { return []; };
128
- return SocketService;
129
- }());
130
- export { SocketService };
131
- if (false) {
132
- /**
133
- * @type {?}
134
- * @private
135
- */
136
- SocketService.prototype.socket;
137
- /** @type {?} */
138
- SocketService.prototype.subscription;
139
- /** @type {?} */
140
- SocketService.prototype.connected$;
141
- }
142
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ja2V0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvbWVkaWEtdmlld2VyLyIsInNvdXJjZXMiOlsibGliL2ljcC9zb2NrZXQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsZUFBZSxFQUFFLFVBQVUsRUFBZ0IsTUFBTSxNQUFNLENBQUM7QUFDakUsT0FBTyxRQUFRLE1BQU0sb0NBQW9DLENBQUM7QUFFMUQ7SUFRRTtRQUZBLGVBQVUsR0FBRyxJQUFJLGVBQWUsQ0FBVSxLQUFLLENBQUMsQ0FBQztJQUVsQyxDQUFDOzs7O0lBRWhCLG1DQUFXOzs7SUFBWDtRQUNFLElBQUksQ0FBQyxZQUFZLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDbEMsQ0F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