@ckeditor/ckeditor5-comments 39.0.1 → 40.0.0

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 (157) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +6 -6
  3. package/README.md +14 -14
  4. package/build/comments.js +1 -1
  5. package/build/translations/fa.js +1 -1
  6. package/build/translations/pt-br.js +1 -1
  7. package/lang/translations/af.po +1 -0
  8. package/lang/translations/ar.po +1 -0
  9. package/lang/translations/bg.po +1 -0
  10. package/lang/translations/bn.po +1 -0
  11. package/lang/translations/bs.po +1 -0
  12. package/lang/translations/ca.po +1 -0
  13. package/lang/translations/cs.po +1 -0
  14. package/lang/translations/da.po +1 -0
  15. package/lang/translations/de-ch.po +1 -0
  16. package/lang/translations/de.po +1 -0
  17. package/lang/translations/el.po +1 -0
  18. package/lang/translations/en-au.po +1 -0
  19. package/lang/translations/en.po +1 -0
  20. package/lang/translations/es-co.po +1 -0
  21. package/lang/translations/es.po +1 -0
  22. package/lang/translations/et.po +1 -0
  23. package/lang/translations/fa.po +10 -9
  24. package/lang/translations/fi.po +1 -0
  25. package/lang/translations/fr.po +1 -0
  26. package/lang/translations/gl.po +1 -0
  27. package/lang/translations/he.po +1 -0
  28. package/lang/translations/hi.po +1 -0
  29. package/lang/translations/hr.po +1 -0
  30. package/lang/translations/hu.po +1 -0
  31. package/lang/translations/id.po +1 -0
  32. package/lang/translations/it.po +1 -0
  33. package/lang/translations/ja.po +1 -0
  34. package/lang/translations/jv.po +1 -0
  35. package/lang/translations/ko.po +1 -0
  36. package/lang/translations/lt.po +1 -0
  37. package/lang/translations/lv.po +1 -0
  38. package/lang/translations/ms.po +1 -0
  39. package/lang/translations/nl.po +1 -0
  40. package/lang/translations/no.po +1 -0
  41. package/lang/translations/pl.po +1 -0
  42. package/lang/translations/pt-br.po +4 -3
  43. package/lang/translations/pt.po +1 -0
  44. package/lang/translations/ro.po +1 -0
  45. package/lang/translations/ru.po +1 -0
  46. package/lang/translations/sk.po +1 -0
  47. package/lang/translations/sq.po +1 -0
  48. package/lang/translations/sr-latn.po +1 -0
  49. package/lang/translations/sr.po +1 -0
  50. package/lang/translations/sv.po +1 -0
  51. package/lang/translations/th.po +1 -0
  52. package/lang/translations/tk.po +1 -0
  53. package/lang/translations/tr.po +1 -0
  54. package/lang/translations/tt.po +1 -0
  55. package/lang/translations/ug.po +1 -0
  56. package/lang/translations/uk.po +1 -0
  57. package/lang/translations/ur.po +1 -0
  58. package/lang/translations/vi.po +1 -0
  59. package/lang/translations/zh-cn.po +1 -0
  60. package/lang/translations/zh.po +1 -0
  61. package/package.json +3 -7
  62. package/src/annotations/annotation.d.ts +90 -90
  63. package/src/annotations/annotation.js +1 -1
  64. package/src/annotations/annotationcollection.d.ts +98 -98
  65. package/src/annotations/annotationcollection.js +1 -1
  66. package/src/annotations/annotations.d.ts +154 -154
  67. package/src/annotations/annotations.js +1 -1
  68. package/src/annotations/annotationsuis.d.ts +232 -232
  69. package/src/annotations/annotationsuis.js +1 -1
  70. package/src/annotations/editorannotations.d.ts +67 -67
  71. package/src/annotations/editorannotations.js +1 -1
  72. package/src/annotations/inlineannotations.d.ts +90 -90
  73. package/src/annotations/inlineannotations.js +1 -1
  74. package/src/annotations/narrowsidebar.d.ts +85 -85
  75. package/src/annotations/narrowsidebar.js +1 -1
  76. package/src/annotations/sidebar.d.ts +100 -100
  77. package/src/annotations/sidebar.js +1 -1
  78. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  79. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  80. package/src/annotations/view/annotationview.d.ts +90 -90
  81. package/src/annotations/view/annotationview.js +1 -1
  82. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  83. package/src/annotations/view/sidebaritemview.js +1 -1
  84. package/src/annotations/view/sidebarview.d.ts +32 -32
  85. package/src/annotations/view/sidebarview.js +1 -1
  86. package/src/annotations/widesidebar.d.ts +77 -77
  87. package/src/annotations/widesidebar.js +1 -1
  88. package/src/augmentation.d.ts +52 -52
  89. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  90. package/src/comments/addcommentthreadcommand.js +1 -1
  91. package/src/comments/commentsarchive.d.ts +31 -31
  92. package/src/comments/commentsarchive.js +1 -1
  93. package/src/comments/commentsarchiveui.d.ts +38 -38
  94. package/src/comments/commentsarchiveui.js +1 -1
  95. package/src/comments/commentsediting.d.ts +79 -79
  96. package/src/comments/commentsediting.js +1 -1
  97. package/src/comments/commentsrepository.d.ts +1129 -1105
  98. package/src/comments/commentsrepository.js +1 -1
  99. package/src/comments/commentsui.d.ts +33 -33
  100. package/src/comments/commentsui.js +1 -1
  101. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  102. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  103. package/src/comments/integrations/importword.d.ts +21 -21
  104. package/src/comments/integrations/importword.js +1 -1
  105. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  106. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  107. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  108. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  109. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  110. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  111. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  112. package/src/comments/ui/commentthreadcontroller.js +1 -1
  113. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -112
  114. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  115. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  116. package/src/comments/ui/view/basecommentview.js +1 -1
  117. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  118. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  119. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  120. package/src/comments/ui/view/commentcontentview.js +1 -1
  121. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  122. package/src/comments/ui/view/commentinputview.js +1 -1
  123. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  124. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  125. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  126. package/src/comments/ui/view/commentslistview.js +1 -1
  127. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  128. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  129. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  130. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  131. package/src/comments/ui/view/commentthreadview.d.ts +118 -117
  132. package/src/comments/ui/view/commentthreadview.js +1 -1
  133. package/src/comments/ui/view/commentview.d.ts +243 -243
  134. package/src/comments/ui/view/commentview.js +1 -1
  135. package/src/comments.d.ts +35 -35
  136. package/src/comments.js +1 -1
  137. package/src/commentsonly.d.ts +33 -33
  138. package/src/commentsonly.js +1 -1
  139. package/src/config.d.ts +176 -176
  140. package/src/index.d.ts +24 -24
  141. package/src/utils/common-translations.d.ts +9 -9
  142. package/src/utils/common-translations.js +1 -1
  143. package/src/utils/createmutationobserver.d.ts +14 -14
  144. package/src/utils/createmutationobserver.js +1 -1
  145. package/theme/annotation-inline.css +2 -1
  146. package/theme/annotation.css +2 -3
  147. package/theme/comment.css +39 -38
  148. package/theme/commentinput.css +2 -1
  149. package/theme/commentmarker.css +7 -6
  150. package/theme/commentsarchive.css +2 -1
  151. package/theme/commentthread.css +68 -57
  152. package/theme/icons/add-comment.svg +1 -1
  153. package/theme/icons/comments-archive.svg +1 -1
  154. package/theme/icons/edit-comment.svg +1 -1
  155. package/theme/icons/remove-comment.svg +1 -1
  156. package/theme/sidebar-narrow.css +4 -3
  157. package/theme/sidebar.css +13 -12
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fa3=['resolveCommentThread','model','attachTo','substring','_attachedThreads','once','getCommentThreads','hasCommentThread','comment:','registerAnnotation','differ','reopenCommentThread','start','then','change:activeMarker','split','getRange','requires','_attachMarkerToThread','removeMarker:','isLocal','editor','isObject','getWalker','getByInnerView','refreshVisibility','_detachCommentThread','focus','$textProxy','createRange','getChangedMarkers','get','_hasTargetInContent','resolve','isThreadsLoadingPaused','_handleMarkerAddAndRemove','scrollToThreadMarker','affectsData','render','change:isReadOnly','reopen','ready','_removedThread','filter','view','setContext','for','ck-comment-marker','hasDomSelection','CommentsEditing','createElement','pluginName','add','context','has','upcast','change:isThreadsLoadingPaused','hasMarkerForId','removeMarker','ignoreResolvedComments','change','markerToData','push','openNewCommentThread','removeCommentThread','getAllMarkersForId','elementToElement','activeMarker','destroy','conversion','consumable','_handleThreadMarker','comment','newRange','hasContent','_getTargetForId','map','item','config','markers','isCollapsed','init','_autoResolvedThreads','_threadToController','listenTo','from','_initializeMarkerConverters','set','markerName','data','end','addCommentThread','registerPostFixer','length','collaboration.channelId','delete','editingDowncast','$graveyard','getCommentThread','reconvertMarker','_attachResolvedThread','markerToHighlight','high','addMarker:','document','dataDowncast','_getTextContext','isResolved','_reconvertMarkers','editing','rootName','enqueueChange','ck-comment-marker--active','plugins','isEqual','dataToMarker','schema','size','getItems','low','commands','consume','clear','text'];(function(_0x3fe63d,_0x1fa305){const _0x58dfa1=function(_0x40fbf4){while(--_0x40fbf4){_0x3fe63d['push'](_0x3fe63d['shift']());}};_0x58dfa1(++_0x1fa305);}(_0x1fa3,0x170));const _0x58df=function(_0x3fe63d,_0x1fa305){_0x3fe63d=_0x3fe63d-0x0;let _0x58dfa1=_0x1fa3[_0x3fe63d];return _0x58dfa1;};import{Plugin as _0x52a63d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1b0496}from'ckeditor5/src/utils';import _0x3774d2 from'./commentsrepository';import _0x4bf6b1 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x576cfb}from'ckeditor5-collaboration/src/collaboration-core';import _0x34c36f from'../annotations/editorannotations';import _0x2c1a2e from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x12cfc3 from'./integrations/importword';import _0x196f95 from'../annotations/annotations';export default class r extends _0x52a63d{static get[_0x58df('0x15')](){return[_0x3774d2,_0x34c36f,_0x2c1a2e,_0x12cfc3];}static get[_0x58df('0x37')](){return _0x58df('0x35');}constructor(_0x14efa8){super(_0x14efa8),this[_0x58df('0x2e')]=null,this[_0x58df('0x56')]=new Set(),this[_0x58df('0x5b')](_0x58df('0x26'),!0x0),_0x14efa8[_0x58df('0x5d')][_0x58df('0x9')](_0x58df('0x2d'),()=>this[_0x58df('0x26')]=!0x1),this[_0x58df('0x5b')]('activeMarker',null),this['on'](_0x58df('0x12'),(_0x1f54cf,_0x22567a,_0x4a222d,_0xc2bba2)=>{const _0x42cf2b=_0x4a222d?tt(_0x4a222d)['id']:null;if(_0x14efa8['model'][_0x58df('0x40')](()=>{if(_0x42cf2b){const _0x2b8161=this['getAllMarkersForId'](_0x42cf2b);for(const _0x351b43 of _0x2b8161)_0x14efa8[_0x58df('0x71')][_0x58df('0x67')](_0x351b43);}if(_0xc2bba2){const {id:_0x37e776}=tt(_0xc2bba2),_0x1d1047=this[_0x58df('0x45')](_0x37e776);for(const _0x4ddbc3 of _0x1d1047)_0x14efa8[_0x58df('0x71')][_0x58df('0x67')](_0x4ddbc3);}}),_0x42cf2b){const _0x447a66=_0x14efa8[_0x58df('0x75')][_0x58df('0x23')](_0x3774d2)[_0x58df('0x66')](_0x42cf2b);_0x447a66&&_0x447a66['isResolved']&&this[_0x58df('0x28')](_0x42cf2b);}}),this[_0x58df('0x8')]=new Map();}[_0x58df('0x55')](){const _0xe16a7c=this[_0x58df('0x19')],_0x43da58=_0xe16a7c[_0x58df('0x75')]['get'](_0x3774d2),_0x8f5259=_0xe16a7c[_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62'));_0xe16a7c[_0x58df('0x0')][_0x58df('0x38')](_0x58df('0x5f'),new _0x4bf6b1(_0xe16a7c)),this[_0x58df('0x58')](_0xe16a7c,_0x58df('0x2b'),(_0x234f80,_0x57c38a,_0x2ab83d)=>{_0x43da58['switchReadOnly'](_0x2ab83d,_0xe16a7c[_0x58df('0x52')]['get'](_0x58df('0x62')));}),this[_0x58df('0x58')](_0x43da58,Z('addCommentThread',_0x8f5259),(_0x3b518e,{threadId:_0x599e82})=>{const _0x1f660e=this[_0x58df('0x19')][_0x58df('0x75')]['get'](_0x3774d2)['getCommentThread'](_0x599e82);_0x1f660e&&_0x1f660e[_0x58df('0x6f')]&&this[_0x58df('0x68')](_0x599e82);}),this[_0x58df('0x58')](_0x43da58,Z(_0x58df('0x44'),_0x8f5259),(_0xc6668d,{threadId:_0x191d6d})=>{_0xe16a7c[_0x58df('0x5')][_0x58df('0x73')]({'isUndoable':!0x1},_0x12f72d=>{const _0x14d8ce=this['getAllMarkersForId'](_0x191d6d);this[_0x58df('0x8')][_0x58df('0x63')](_0x191d6d),this[_0x58df('0x2e')]=_0x191d6d;for(const _0x449fd6 of _0x14d8ce)_0x12f72d[_0x58df('0x3e')](_0x449fd6);}),this[_0x58df('0x2e')]=null;},{'priority':_0x58df('0x6a')}),this[_0x58df('0x58')](_0x43da58,Z(_0x58df('0x4'),_0x8f5259),(_0x41f63d,{threadId:_0x2334fe})=>{this[_0x58df('0x68')](_0x2334fe),this[_0x58df('0x70')](_0x2334fe),this[_0x58df('0x19')]['editing']['view'][_0x58df('0x34')]&&this[_0x58df('0x19')]['editing'][_0x58df('0x30')][_0x58df('0x1f')]();},{'priority':_0x58df('0x7b')}),this['listenTo'](_0x43da58,Z(_0x58df('0xf'),_0x8f5259),(_0x251390,{threadId:_0x185ee2})=>{this['_reconvertMarkers'](_0x185ee2);},{'priority':_0x58df('0x7b')}),this[_0x58df('0x58')](_0x43da58,Z('addComment',_0x8f5259),(_0x18c142,{threadId:_0x2fc7be,isFromAdapter:_0x45f17d})=>{const _0x3ecbce=this['getAllMarkersForId'](_0x2fc7be);if(_0x45f17d||0x0==_0x3ecbce[_0x58df('0x61')]||!_0x43da58[_0x58df('0xb')](_0x2fc7be))return;0x1===_0x43da58[_0x58df('0x66')](_0x2fc7be)[_0x58df('0x61')]&&_0xe16a7c[_0x58df('0x5')][_0x58df('0x73')]({'isUndoable':!0x1},_0x51f284=>{for(const _0x321f49 of _0x3ecbce)_0x51f284['updateMarker'](_0x321f49,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x58df('0x7b')}),this[_0x58df('0x5a')](),this[_0x58df('0x27')]();}['destroy'](){const _0x524b1e=this['editor'][_0x58df('0x75')][_0x58df('0x23')](_0x3774d2),_0x474100=this['editor'][_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62'));for(const _0x42b4ac of _0x524b1e[_0x58df('0xa')]({'channelId':_0x474100}))_0x524b1e[_0x58df('0x1e')](_0x42b4ac['id']),_0x524b1e['_threads'][_0x58df('0x63')](_0x42b4ac['id']);super[_0x58df('0x48')]();}[_0x58df('0x3d')](_0x341b07){return this[_0x58df('0x45')](_0x341b07)[_0x58df('0x61')]>0x0;}[_0x58df('0x45')](_0x569574){return Array[_0x58df('0x59')](this['_attachedThreads'][_0x58df('0x23')](_0x569574)||[])[_0x58df('0x50')](_0x18c846=>this[_0x58df('0x19')][_0x58df('0x5')][_0x58df('0x53')][_0x58df('0x23')](_0x18c846))[_0x58df('0x2f')](_0x4fb3c3=>_0x4fb3c3);}[_0x58df('0x28')](_0x4edcf5){const _0x7a3788=this[_0x58df('0x4f')](_0x4edcf5);_0x7a3788&&setTimeout(()=>{this['activeMarker']&&tt(this['activeMarker'])['id']===_0x4edcf5&&_0x1b0496({'target':_0x7a3788[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x58df('0x70')](_0x4e00f3){this[_0x58df('0x19')][_0x58df('0x5')][_0x58df('0x40')](()=>{for(const _0x3b908b of this[_0x58df('0x45')](_0x4e00f3))this[_0x58df('0x19')]['editing'][_0x58df('0x67')](_0x3b908b);});}['_attachResolvedThread'](_0xb53526){const _0x4a5c15=this[_0x58df('0x19')][_0x58df('0x75')][_0x58df('0x23')](_0x3774d2),_0x977f09=this[_0x58df('0x19')]['plugins'][_0x58df('0x23')](_0x34c36f),_0x21a72c=_0x4a5c15[_0x58df('0x66')](_0xb53526);if(!this[_0x58df('0x8')][_0x58df('0x3a')](_0xb53526)){const _0x4dbf5f=_0x21a72c['attachTo'](()=>this[_0x58df('0x4f')](_0x21a72c['id']));_0x977f09['registerAnnotation'](_0x4dbf5f),this['_attachedThreads']['set'](_0xb53526,new Set()),_0x21a72c[_0x58df('0x24')]=!0x1;}}[_0x58df('0x5a')](){const _0x1b3b2b=this[_0x58df('0x19')];_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x64'))[_0x58df('0x69')]({'model':_0x58df('0x4c'),'view':(_0x136d41,_0x429e86)=>{const {id:_0x2b29ce}=tt(_0x136d41[_0x58df('0x5c')]),_0x59d459=_0x1b3b2b['plugins']['get'](_0x3774d2)[_0x58df('0x66')](_0x2b29ce),_0x292e9b=this[_0x58df('0x47')]&&tt(this[_0x58df('0x47')])['id']===_0x2b29ce;if(_0x59d459&&_0x59d459[_0x58df('0x6f')]&&!_0x292e9b&&_0x136d41[_0x58df('0x51')])return _0x429e86[_0x58df('0x4a')][_0x58df('0x1')](_0x136d41['item'],_0x58df('0x6b')+_0x136d41[_0x58df('0x5c')]),_0x429e86[_0x58df('0x4a')][_0x58df('0x1')](_0x136d41[_0x58df('0x51')],_0x58df('0x17')+_0x136d41[_0x58df('0x5c')]),{'classes':[]};const _0x19b9ab=[_0x58df('0x33')];return _0x292e9b&&_0x19b9ab[_0x58df('0x42')](_0x58df('0x74')),{'classes':_0x19b9ab,'attributes':{'data-comment':_0x2b29ce}};}}),_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x6d'))[_0x58df('0x41')]({'model':'comment','view':(_0x49eb97,{options:_0xb55dcd})=>{const _0x379af8=_0x1b3b2b['plugins']['get'](_0x3774d2),_0x272b46=_0x1b3b2b[_0x58df('0x5')]['markers'][_0x58df('0x23')](_0x49eb97),{id:_0x54a63e,part:_0x4f43f6}=tt(_0x49eb97);if(_0x272b46&&!_0x272b46[_0x58df('0x29')])return null;if(_0xb55dcd[_0x58df('0x3f')]){const _0x298acc=_0x379af8[_0x58df('0x66')](_0x54a63e);if(_0x298acc&&_0x298acc[_0x58df('0x6f')])return null;}return{'group':_0x58df('0x4c'),'name':_0x4f43f6?_0x54a63e+':'+_0x4f43f6:_0x54a63e};}}),_0x1b3b2b['conversion'][_0x58df('0x32')]('upcast')[_0x58df('0x46')]({'view':{'name':_0x58df('0x4c'),'attributes':{'id':/^\w/}},'model':(_0x257753,{writer:_0x3d7b28})=>_0x3d7b28[_0x58df('0x36')]('$marker',{'data-name':_0x58df('0xc')+_0x257753['getAttribute']('id')})}),_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x3b'))[_0x58df('0x77')]({'view':_0x58df('0x4c')});}[_0x58df('0x27')](){const _0x366129=this[_0x58df('0x19')],_0xcd5af=_0x366129[_0x58df('0x75')]['get'](_0x3774d2),_0x2b3cb3=new Set(),_0x27898f=new Set();_0x366129[_0x58df('0x5')][_0x58df('0x6c')][_0x58df('0x60')](_0x42254e=>{let _0x14453e=!0x1;for(const {name:_0x433a69,data:_0x1eb01d}of _0x366129['model']['document'][_0x58df('0xe')][_0x58df('0x22')]()){const {group:_0x3e8a34,id:_0x271bb5}=tt(_0x433a69);let _0x2b1eea=_0x1eb01d['newRange'];if('comment'!==_0x3e8a34||!_0x2b1eea)continue;const _0x5cdce2=_0x58df('0x65')===_0x2b1eea['root'][_0x58df('0x72')];_0x5cdce2||(_0x2b1eea=ot(_0x2b1eea,_0x366129[_0x58df('0x5')]),!_0x2b1eea||_0x2b1eea[_0x58df('0x54')]||!_0x1eb01d['newRange']||_0x2b1eea[_0x58df('0x76')](_0x1eb01d[_0x58df('0x4d')]))?_0x366129[_0x58df('0x5')][_0x58df('0x4e')](_0x2b1eea)&&!_0x5cdce2?this[_0x58df('0x26')]?_0x2b3cb3['add'](_0x433a69):this[_0x58df('0x4b')](_0x433a69,_0x271bb5):(_0x27898f['add'](_0x433a69),_0x2b3cb3['delete'](_0x433a69),_0x42254e[_0x58df('0x3e')](_0x433a69),_0x14453e=!0x0):(_0x42254e['updateMarker'](_0x433a69,{'range':_0x2b1eea}),_0x14453e=!0x0);}return _0x14453e;}),this['on'](_0x58df('0x3c'),(_0x32a5f3,_0xce001d,_0x2f7353)=>{if(!_0x2f7353&&_0x2b3cb3[_0x58df('0x79')])for(const _0x4af62e of _0x2b3cb3){const {id:_0x1db415}=tt(_0x4af62e);_0x2b3cb3['delete'](_0x4af62e),_0x366129[_0x58df('0x5')][_0x58df('0x53')][_0x58df('0x23')](_0x4af62e)&&this['_handleThreadMarker'](_0x4af62e,_0x1db415);}}),this['listenTo'](_0x366129[_0x58df('0x5')][_0x58df('0x6c')],_0x58df('0x40'),(_0x369277,_0x2c378a)=>{for(const {name:_0x1a637d,data:{newRange:_0x263dd2}}of _0x366129[_0x58df('0x5')][_0x58df('0x6c')][_0x58df('0xe')][_0x58df('0x22')]()){const {group:_0x316859,id:_0x23c709}=tt(_0x1a637d);if(_0x58df('0x4c')!==_0x316859)continue;const _0x518fb6=_0xcd5af[_0x58df('0x66')](_0x23c709),_0x4c0ea0=this[_0x58df('0x3d')](_0x23c709);_0x518fb6&&(_0x518fb6[_0x58df('0x24')]||_0x366129['editing'][_0x58df('0x30')][_0x58df('0x9')](_0x58df('0x2a'),()=>{const _0x23b9ea=_0x366129[_0x58df('0x75')][_0x58df('0x23')](_0x196f95),_0x499c2d=_0xcd5af[_0x58df('0x57')][_0x58df('0x23')](_0x518fb6)[_0x58df('0x30')];_0x23b9ea['getByInnerView'](_0x499c2d)[_0x58df('0x1d')]();},{'priority':_0x58df('0x7b')}),_0x518fb6[_0x58df('0x24')]=_0x4c0ea0||!!_0x263dd2),_0x263dd2||(_0x27898f[_0x58df('0x38')](_0x1a637d),_0x2b3cb3[_0x58df('0x63')](_0x1a637d),this[_0x58df('0x8')][_0x58df('0x3a')](_0x23c709)&&this['_attachedThreads']['get'](_0x23c709)[_0x58df('0x63')](_0x1a637d));}if(_0x2c378a[_0x58df('0x18')])for(const _0x189b7c of _0x27898f){const {id:_0x54e218}=tt(_0x189b7c),_0x42c00b=_0xcd5af[_0x58df('0x66')](_0x54e218),_0x424e49=this[_0x58df('0x3d')](_0x54e218);_0x2b3cb3[_0x58df('0x63')](_0x189b7c),!_0x42c00b||_0x424e49||_0x42c00b[_0x58df('0x6f')]||this[_0x58df('0x2e')]===_0x54e218||(this[_0x58df('0x56')][_0x58df('0x38')](_0x42c00b),_0x42c00b[_0x58df('0x25')]());}_0x27898f[_0x58df('0x2')]();});}['_getTargetForId'](_0x1895b6){const _0x145859=this['editor'],_0x48af71=this[_0x58df('0x45')](_0x1895b6);return _0x576cfb(_0x145859[_0x58df('0x71')],_0x48af71);}['_getTextContext'](_0x15f04e){const _0x36b16d=this['getAllMarkersForId'](_0x15f04e);let _0x2db1d2='',_0x535e79=!0x1;for(const _0x1be740 of _0x36b16d){const _0x55a9fe=_0x1be740[_0x58df('0x14')]();for(const _0x11d2d0 of Array[_0x58df('0x59')](_0x55a9fe[_0x58df('0x7a')]()))_0x11d2d0['is'](_0x58df('0x20'))?(_0x2db1d2&&_0x535e79&&(_0x2db1d2+='\x20',_0x535e79=!0x1),_0x2db1d2+=_0x11d2d0['data']):_0x535e79=!0x0;_0x535e79=!0x0;}return _0x2db1d2[_0x58df('0x7')](0x0,0x96);}[_0x58df('0x16')](_0x89a6b5,_0x3989e4){const _0x3040a5=this[_0x58df('0x19')],_0x4e551a=_0x3040a5['plugins'][_0x58df('0x23')](_0x3774d2);let _0x871118=_0x4e551a[_0x58df('0x66')](_0x3989e4);if(this[_0x58df('0x8')]['has'](_0x3989e4)){const _0x22f883=this['_attachedThreads'][_0x58df('0x23')](_0x3989e4);_0x22f883[_0x58df('0x3a')](_0x89a6b5)||_0x22f883[_0x58df('0x38')](_0x89a6b5);}const _0x492d03=_0x3040a5[_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62')),_0x275223=_0x3040a5[_0x58df('0x75')][_0x58df('0x23')](_0x34c36f);if(_0x871118&&_0x871118[_0x58df('0x6f')]&&this[_0x58df('0x56')][_0x58df('0x3a')](_0x871118)&&(this[_0x58df('0x56')][_0x58df('0x63')](_0x871118),_0x871118[_0x58df('0x2c')]()),this['_attachedThreads'][_0x58df('0x3a')](_0x3989e4))return _0x871118;return this[_0x58df('0x8')][_0x58df('0x5b')](_0x3989e4,new Set([_0x89a6b5])),(!this[_0x58df('0x45')](_0x3989e4)[0x0]['managedUsingOperations']?_0x3040a5['editing'][_0x58df('0x30')][_0x58df('0x9')](_0x58df('0x2a'),()=>{const _0x351e17=_0x3040a5[_0x58df('0x75')][_0x58df('0x23')](_0x196f95);_0x871118=_0x4e551a[_0x58df('0x43')]({'channelId':_0x492d03,'threadId':_0x3989e4,'target':()=>this['_getTargetForId'](_0x3989e4),'context':{'type':_0x58df('0x3'),'value':this['_getTextContext'](_0x3989e4)}});const _0xd16c6b=_0x4e551a[_0x58df('0x57')][_0x58df('0x23')](_0x871118)[_0x58df('0x30')],_0x246399=_0x351e17[_0x58df('0x1c')](_0xd16c6b);_0x246399&&_0x275223[_0x58df('0xd')](_0x246399);},{'priority':_0x58df('0x7b')}):_0x4e551a['fetchCommentThread']({'channelId':_0x492d03,'threadId':_0x3989e4})[_0x58df('0x11')](_0x29d0cb=>{if('destroyed'!==_0x3040a5['state']){if(_0x871118=_0x29d0cb,_0x871118){const _0x19e1ad=_0x871118[_0x58df('0x6')](()=>this[_0x58df('0x4f')](_0x3989e4));_0x275223[_0x58df('0xd')](_0x19e1ad),_0x871118['isResolved']&&this['_reconvertMarkers'](_0x3989e4);}else{const _0x3d79d6=this[_0x58df('0x45')](_0x3989e4);_0x3040a5[_0x58df('0x5')][_0x58df('0x40')](_0x1ac391=>{for(const _0x4c31b4 of _0x3d79d6)_0x1ac391[_0x58df('0x3e')](_0x4c31b4);});}}}),_0x871118);}[_0x58df('0x4b')](_0x5e0857,_0x48f532){const _0x3d65a1=this[_0x58df('0x16')](_0x5e0857,_0x48f532);_0x3d65a1&&!_0x3d65a1[_0x58df('0x39')]&&_0x3d65a1[_0x58df('0x31')]({'type':_0x58df('0x3'),'value':this[_0x58df('0x6e')](_0x48f532)});}}function Z(_0x3bf799,_0x33715b){return _0x33715b?_0x3bf799+':'+_0x33715b:_0x3bf799;}function tt(_0x4464dd){const _0x42ba47=_0x4464dd[_0x58df('0x13')](':');return{'group':_0x42ba47[0x0],'id':_0x42ba47[0x1],'part':_0x42ba47[0x2]};}function ot(_0x3d017b,_0x21aa0c){const _0x2b44f3=_0x21aa0c[_0x58df('0x78')],_0x3b74d5=_0x21aa0c[_0x58df('0x21')](_0x3d017b[_0x58df('0x10')]);for(const _0x5a85d5 of _0x3d017b[_0x58df('0x1b')]()){const {type:_0x2f9268,item:_0x2ffd87,nextPosition:_0x5e9e33}=_0x5a85d5;if(_0x58df('0x3')===_0x2f9268||_0x2b44f3[_0x58df('0x1a')](_0x2ffd87)){const _0x4baf7e=_0x21aa0c['createPositionBefore'](_0x2ffd87);_0x3b74d5[_0x58df('0x54')]&&(_0x3b74d5[_0x58df('0x10')]=_0x4baf7e),_0x3b74d5[_0x58df('0x5e')]=_0x5e9e33;}}return _0x3b74d5;}
23
+ const _0x5939=['comment:','setContext','commands','isResolved','affectsData','low','conversion','createPositionBefore','CommentsEditing','markers','refreshVisibility','differ','createElement','state','getItems','attachTo','clear','getWalker','plugins','hasMarkerForId','context','model','dataDowncast','removeMarker','consumable','render','text','_getTargetForId','$textProxy','getRange','substring','isThreadsLoadingPaused','editingDowncast','hasDomSelection','scrollToThreadMarker','collaboration.channelId','change:isReadOnly','_hasTargetInContent','config','pluginName','editing','removeCommentThread','isLocal','_reconvertMarkers','set','split','ck-comment-marker--active','delete','isCollapsed','_attachResolvedThread','destroy','change','getChangedMarkers','ignoreResolvedComments','removeMarker:','reconvertMarker','getCommentThreads','length','isAttached','unlinkedAt','registerPostFixer','document','for','name','comment','get','upcast','once','_attachMarkerToThread','editor','requires','updateMarker','consume','then','getCommentThread','data','markerName','_initializeMarkerConverters','markerToHighlight','start','_detachCommentThread','openNewCommentThread','_threadToController','item','view','init','registerAnnotation','newRange','$marker','addCommentThread','setUnlinkedAt','$graveyard','root','_handleThreadMarker','getByInnerView','change:isThreadsLoadingPaused','ck-comment-marker','enqueueChange','schema','_handleMarkerAddAndRemove','isEqual','dataToMarker','createRange','activeMarker','getAllMarkersForId','managedUsingOperations','listenTo','markerToData','ready','_getTextContext'];(function(_0x3e3597,_0x5939bb){const _0x504ab7=function(_0x45d760){while(--_0x45d760){_0x3e3597['push'](_0x3e3597['shift']());}};_0x504ab7(++_0x5939bb);}(_0x5939,0x169));const _0x504a=function(_0x3e3597,_0x5939bb){_0x3e3597=_0x3e3597-0x0;let _0x504ab7=_0x5939[_0x3e3597];return _0x504ab7;};import{Plugin as _0x189367}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2918dd}from'ckeditor5/src/utils';import _0x4074be from'./commentsrepository';import _0x2501a4 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4d8a56}from'ckeditor5-collaboration/src/collaboration-core';import _0x155866 from'../annotations/editorannotations';import _0xa22e54 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x21d20f from'./integrations/importword';import _0x10a68d from'../annotations/annotations';export default class r extends _0x189367{static get[_0x504a('0x27')](){return[_0x4074be,_0x155866,_0xa22e54,_0x21d20f];}static get[_0x504a('0x8')](){return _0x504a('0x57');}constructor(_0x14af51){super(_0x14af51),this['set'](_0x504a('0x0'),!0x0),_0x14af51['data']['once'](_0x504a('0x4d'),()=>this[_0x504a('0x0')]=!0x1),this[_0x504a('0xd')](_0x504a('0x48'),null),this['on']('change:activeMarker',(_0x62debd,_0x42d6d7,_0x312583,_0x4ab49a)=>{const _0x5f35ba=_0x312583?tt(_0x312583)['id']:null;if(_0x14af51[_0x504a('0x64')][_0x504a('0x14')](()=>{if(_0x5f35ba){const _0x160b8a=this[_0x504a('0x49')](_0x5f35ba);for(const _0x34e2c1 of _0x160b8a)_0x14af51['editing']['reconvertMarker'](_0x34e2c1);}if(_0x4ab49a){const {id:_0x5a55cc}=tt(_0x4ab49a),_0x5aa2c5=this[_0x504a('0x49')](_0x5a55cc);for(const _0x106d1f of _0x5aa2c5)_0x14af51[_0x504a('0x9')][_0x504a('0x18')](_0x106d1f);}}),_0x5f35ba){const _0x1e7a21=_0x14af51['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x5f35ba);_0x1e7a21&&_0x1e7a21[_0x504a('0x52')]&&this[_0x504a('0x3')](_0x5f35ba);}});}[_0x504a('0x36')](){const _0x961c59=this[_0x504a('0x26')],_0x201415=_0x961c59[_0x504a('0x61')]['get'](_0x4074be),_0x310108=_0x961c59[_0x504a('0x7')][_0x504a('0x22')](_0x504a('0x4'));_0x961c59[_0x504a('0x51')]['add']('addCommentThread',new _0x2501a4(_0x961c59)),this['listenTo'](_0x961c59,_0x504a('0x5'),(_0x5e1cea,_0x4d1b1e,_0x50eced)=>{_0x201415['switchReadOnly'](_0x50eced,_0x961c59[_0x504a('0x7')][_0x504a('0x22')]('collaboration.channelId'));}),this[_0x504a('0x4b')](_0x201415,Z(_0x504a('0x3a'),_0x310108),(_0x5898c1,{threadId:_0x256ba3})=>{const _0x3843ad=this['editor'][_0x504a('0x61')][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x256ba3);_0x3843ad&&_0x3843ad['archivedAt']&&this['_attachResolvedThread'](_0x256ba3);}),this[_0x504a('0x4b')](_0x201415,Z(_0x504a('0xa'),_0x310108),(_0xe12977,{threadId:_0x28de86})=>{_0x961c59[_0x504a('0x64')][_0x504a('0x42')]({'isUndoable':!0x1},_0x2dffa0=>{const _0x54e998=this['getAllMarkersForId'](_0x28de86);for(const _0xa2968d of _0x54e998)_0x2dffa0[_0x504a('0x66')](_0xa2968d);});}),this[_0x504a('0x4b')](_0x201415,Z('resolveCommentThread',_0x310108),(_0x2c1788,{threadId:_0x2876c9})=>{(this[_0x504a('0x12')](_0x2876c9),this[_0x504a('0xc')](_0x2876c9),this[_0x504a('0x26')]['editing'][_0x504a('0x35')][_0x504a('0x2')])&&(this[_0x504a('0x26')]['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x2876c9)[_0x504a('0x1c')]||this[_0x504a('0x26')][_0x504a('0x9')][_0x504a('0x35')]['focus']());},{'priority':_0x504a('0x54')}),this[_0x504a('0x4b')](_0x201415,Z('reopenCommentThread',_0x310108),(_0x314f10,{threadId:_0x403513})=>{this[_0x504a('0xc')](_0x403513);},{'priority':_0x504a('0x54')}),this['listenTo'](_0x201415,Z('addComment',_0x310108),(_0x4f0e1f,{threadId:_0x2dea57,isFromAdapter:_0x4b9aa5})=>{const _0x330f9c=this['getAllMarkersForId'](_0x2dea57);if(_0x4b9aa5||0x0==_0x330f9c[_0x504a('0x1a')]||!_0x201415['hasCommentThread'](_0x2dea57))return;0x1===_0x201415['getCommentThread'](_0x2dea57)['length']&&_0x961c59[_0x504a('0x64')]['enqueueChange']({'isUndoable':!0x1},_0x4bb156=>{for(const _0x44fb34 of _0x330f9c)_0x4bb156[_0x504a('0x28')](_0x44fb34,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x504a('0x54')}),this[_0x504a('0x2e')](),this[_0x504a('0x44')]();}[_0x504a('0x13')](){const _0x5609df=this[_0x504a('0x26')][_0x504a('0x61')][_0x504a('0x22')](_0x4074be),_0x258877=this[_0x504a('0x26')][_0x504a('0x7')][_0x504a('0x22')](_0x504a('0x4'));for(const _0x4a88b4 of _0x5609df[_0x504a('0x19')]({'channelId':_0x258877}))_0x5609df[_0x504a('0x31')](_0x4a88b4['id']),_0x5609df['_threads']['delete'](_0x4a88b4['id']);super[_0x504a('0x13')]();}[_0x504a('0x62')](_0x315b75){return this['getAllMarkersForId'](_0x315b75)['length']>0x0;}[_0x504a('0x49')](_0x3f0c98){const _0x1d66d1=[];for(const _0x205b4d of this[_0x504a('0x26')][_0x504a('0x64')]['markers'])_0x205b4d[_0x504a('0x20')]['startsWith'](_0x504a('0x4f')+_0x3f0c98)&&_0x1d66d1['push'](_0x205b4d);return _0x1d66d1;}[_0x504a('0x3')](_0xc04966){const _0x8c2b1e=this[_0x504a('0x6a')](_0xc04966);_0x8c2b1e&&setTimeout(()=>{this[_0x504a('0x48')]&&tt(this[_0x504a('0x48')])['id']===_0xc04966&&_0x2918dd({'target':_0x8c2b1e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4878e5){this[_0x504a('0x26')][_0x504a('0x64')][_0x504a('0x14')](()=>{for(const _0x3dac28 of this['getAllMarkersForId'](_0x4878e5))this[_0x504a('0x26')]['editing']['reconvertMarker'](_0x3dac28);});}[_0x504a('0x12')](_0xa8a674){const _0x1b2a82=this['editor']['plugins'][_0x504a('0x22')](_0x4074be),_0x4967e3=this['editor'][_0x504a('0x61')][_0x504a('0x22')](_0x155866),_0x3ad79e=_0x1b2a82[_0x504a('0x2b')](_0xa8a674);if(!_0x3ad79e[_0x504a('0x1b')]){const _0x6e7630=_0x3ad79e['attachTo'](()=>this[_0x504a('0x6a')](_0x3ad79e['id']));_0x4967e3[_0x504a('0x37')](_0x6e7630),_0x3ad79e[_0x504a('0x6')]=!0x1;}}[_0x504a('0x2e')](){const _0x2fd498=this['editor'];_0x2fd498[_0x504a('0x55')]['for'](_0x504a('0x1'))[_0x504a('0x2f')]({'model':_0x504a('0x21'),'view':(_0x3a7585,_0x65536c)=>{const {id:_0x3d1d9b}=tt(_0x3a7585[_0x504a('0x2d')]),_0x13cb4b=_0x2fd498['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x3d1d9b),_0x25f99d=this['activeMarker']&&tt(this[_0x504a('0x48')])['id']===_0x3d1d9b;if(_0x13cb4b&&_0x13cb4b[_0x504a('0x52')]&&!_0x25f99d&&_0x3a7585[_0x504a('0x34')])return _0x65536c[_0x504a('0x67')]['consume'](_0x3a7585[_0x504a('0x34')],'addMarker:'+_0x3a7585['markerName']),_0x65536c[_0x504a('0x67')][_0x504a('0x29')](_0x3a7585[_0x504a('0x34')],_0x504a('0x17')+_0x3a7585['markerName']),{'classes':[]};const _0x23e804=[_0x504a('0x41')];return _0x25f99d&&_0x23e804['push'](_0x504a('0xf')),{'classes':_0x23e804,'attributes':{'data-comment':_0x3d1d9b}};}}),_0x2fd498[_0x504a('0x55')]['for'](_0x504a('0x65'))[_0x504a('0x4c')]({'model':_0x504a('0x21'),'view':(_0xf4f590,{options:_0x1abd59})=>{const _0x19a869=_0x2fd498['plugins'][_0x504a('0x22')](_0x4074be),_0x2353e7=_0x2fd498['model'][_0x504a('0x58')][_0x504a('0x22')](_0xf4f590),{id:_0x37a52,part:_0x59a289}=tt(_0xf4f590);if(_0x2353e7&&!_0x2353e7[_0x504a('0x53')])return null;if(_0x1abd59[_0x504a('0x16')]){const _0x54cd3c=_0x19a869[_0x504a('0x2b')](_0x37a52);if(_0x54cd3c&&_0x54cd3c[_0x504a('0x52')])return null;}return{'group':'comment','name':_0x59a289?_0x37a52+':'+_0x59a289:_0x37a52};}}),_0x2fd498[_0x504a('0x55')][_0x504a('0x1f')](_0x504a('0x23'))['elementToElement']({'view':{'name':_0x504a('0x21'),'attributes':{'id':/^\w/}},'model':(_0xdcd0cb,{writer:_0x3e23f0})=>_0x3e23f0[_0x504a('0x5b')](_0x504a('0x39'),{'data-name':_0x504a('0x4f')+_0xdcd0cb['getAttribute']('id')})}),_0x2fd498['conversion'][_0x504a('0x1f')](_0x504a('0x23'))[_0x504a('0x46')]({'view':_0x504a('0x21')});}['_handleMarkerAddAndRemove'](){const _0x210b91=this[_0x504a('0x26')],_0x3f6741=_0x210b91['plugins'][_0x504a('0x22')](_0x4074be),_0x136fd0=new Set(),_0x378843=new Set();_0x210b91[_0x504a('0x64')]['document'][_0x504a('0x1d')](_0x5596d3=>{let _0x1871e0=!0x1;for(const {name:_0x257ac4,data:_0x2b4ad8}of _0x210b91[_0x504a('0x64')][_0x504a('0x1e')][_0x504a('0x5a')][_0x504a('0x15')]()){const {group:_0x1bddb7,id:_0x314473}=tt(_0x257ac4);let _0x457dbf=_0x2b4ad8[_0x504a('0x38')];if(_0x504a('0x21')!==_0x1bddb7||!_0x457dbf)continue;const _0x3a5ca8=_0x504a('0x3c')===_0x457dbf[_0x504a('0x3d')]['rootName'];_0x3a5ca8||(_0x457dbf=ot(_0x457dbf,_0x210b91[_0x504a('0x64')]),!_0x457dbf||_0x457dbf['isCollapsed']||!_0x2b4ad8[_0x504a('0x38')]||_0x457dbf[_0x504a('0x45')](_0x2b4ad8[_0x504a('0x38')]))?_0x210b91[_0x504a('0x64')]['hasContent'](_0x457dbf)&&!_0x3a5ca8?this[_0x504a('0x0')]?_0x136fd0['add'](_0x257ac4):this['_handleThreadMarker'](_0x257ac4,_0x314473):(_0x378843['add'](_0x257ac4),_0x136fd0[_0x504a('0x10')](_0x257ac4),_0x5596d3[_0x504a('0x66')](_0x257ac4),_0x1871e0=!0x0):(_0x5596d3[_0x504a('0x28')](_0x257ac4,{'range':_0x457dbf}),_0x1871e0=!0x0);}return _0x1871e0;}),this['on'](_0x504a('0x40'),(_0x1d4d5a,_0x2bff48,_0x1c463c)=>{if(!_0x1c463c&&_0x136fd0['size'])for(const _0x48508c of _0x136fd0){const {id:_0x5aaf1b}=tt(_0x48508c);_0x136fd0[_0x504a('0x10')](_0x48508c),_0x210b91['model']['markers'][_0x504a('0x22')](_0x48508c)&&this[_0x504a('0x3e')](_0x48508c,_0x5aaf1b);}}),this['listenTo'](_0x210b91[_0x504a('0x64')]['document'],_0x504a('0x14'),(_0x22f34b,_0xe6a057)=>{for(const {name:_0x3f5426,data:{newRange:_0x2b7e37}}of _0x210b91[_0x504a('0x64')][_0x504a('0x1e')][_0x504a('0x5a')][_0x504a('0x15')]()){const {group:_0x1211cd,id:_0x174c24}=tt(_0x3f5426);if(_0x504a('0x21')!==_0x1211cd)continue;const _0x4decad=_0x3f6741[_0x504a('0x2b')](_0x174c24),_0x47c903=this[_0x504a('0x62')](_0x174c24);_0x4decad&&(_0x4decad[_0x504a('0x6')]||_0x210b91[_0x504a('0x9')]['view'][_0x504a('0x24')](_0x504a('0x68'),()=>{const _0x184699=_0x210b91['plugins'][_0x504a('0x22')](_0x10a68d),_0x465e3b=_0x3f6741['_threadToController'][_0x504a('0x22')](_0x4decad)['view'];_0x184699[_0x504a('0x3f')](_0x465e3b)[_0x504a('0x59')]();},{'priority':_0x504a('0x54')}),_0x4decad[_0x504a('0x6')]=_0x47c903||!!_0x2b7e37),_0x2b7e37||(_0x378843['add'](_0x3f5426),_0x136fd0[_0x504a('0x10')](_0x3f5426));}if(_0xe6a057[_0x504a('0xb')])for(const _0x18242c of _0x378843){const {id:_0x13beb5}=tt(_0x18242c),_0x52e45d=_0x3f6741[_0x504a('0x2b')](_0x13beb5),_0x4ae983=this[_0x504a('0x62')](_0x13beb5);_0x136fd0[_0x504a('0x10')](_0x18242c),!_0x52e45d||_0x4ae983||_0x52e45d[_0x504a('0x1c')]||_0x52e45d[_0x504a('0x3b')](new Date());}_0x378843[_0x504a('0x5f')]();});}[_0x504a('0x6a')](_0xc5e162){const _0x45c334=this[_0x504a('0x26')],_0x271d7e=this[_0x504a('0x49')](_0xc5e162);return _0x4d8a56(_0x45c334['editing'],_0x271d7e);}[_0x504a('0x4e')](_0x146f15){const _0x43f4c9=this['getAllMarkersForId'](_0x146f15);let _0x4af06f='',_0x15655a=!0x1;for(const _0x4e18df of _0x43f4c9){const _0x50f018=_0x4e18df[_0x504a('0x6c')]();for(const _0x293c36 of Array['from'](_0x50f018[_0x504a('0x5d')]()))_0x293c36['is'](_0x504a('0x6b'))?(_0x4af06f&&_0x15655a&&(_0x4af06f+='\x20',_0x15655a=!0x1),_0x4af06f+=_0x293c36[_0x504a('0x2c')]):_0x15655a=!0x0;_0x15655a=!0x0;}return _0x4af06f[_0x504a('0x6d')](0x0,0x96);}[_0x504a('0x25')](_0x416636,_0x2f0872){const _0x5d74e7=this[_0x504a('0x26')],_0x1e3b5b=_0x5d74e7[_0x504a('0x61')]['get'](_0x4074be);let _0x9d7fd6=_0x1e3b5b[_0x504a('0x2b')](_0x2f0872);const _0x59fad6=_0x5d74e7['config']['get']('collaboration.channelId'),_0x26e10d=_0x5d74e7[_0x504a('0x61')][_0x504a('0x22')](_0x155866);if(_0x9d7fd6&&(_0x9d7fd6['unlinkedAt']&&_0x9d7fd6[_0x504a('0x3b')](null),_0x9d7fd6[_0x504a('0x1b')]))return _0x9d7fd6;return!this[_0x504a('0x49')](_0x2f0872)[0x0][_0x504a('0x4a')]?_0x5d74e7['editing'][_0x504a('0x35')][_0x504a('0x24')](_0x504a('0x68'),()=>{if(_0x1e3b5b[_0x504a('0x2b')](_0x2f0872))return;const _0x3982ac=_0x5d74e7[_0x504a('0x61')][_0x504a('0x22')](_0x10a68d);_0x9d7fd6=_0x1e3b5b[_0x504a('0x32')]({'channelId':_0x59fad6,'threadId':_0x2f0872,'target':()=>this[_0x504a('0x6a')](_0x2f0872),'context':{'type':_0x504a('0x69'),'value':this[_0x504a('0x4e')](_0x2f0872)}});const _0x1348ad=_0x1e3b5b[_0x504a('0x33')][_0x504a('0x22')](_0x9d7fd6)[_0x504a('0x35')],_0x2c1246=_0x3982ac[_0x504a('0x3f')](_0x1348ad);_0x2c1246&&_0x26e10d['registerAnnotation'](_0x2c1246);},{'priority':_0x504a('0x54')}):_0x1e3b5b['fetchCommentThread']({'channelId':_0x59fad6,'threadId':_0x2f0872})[_0x504a('0x2a')](_0x4603b2=>{if('destroyed'!==_0x5d74e7[_0x504a('0x5c')]){if(_0x9d7fd6=_0x4603b2,_0x9d7fd6&&!_0x9d7fd6[_0x504a('0x1b')]){const _0x4ac6a6=_0x9d7fd6[_0x504a('0x5e')](()=>this[_0x504a('0x6a')](_0x2f0872));_0x26e10d[_0x504a('0x37')](_0x4ac6a6),_0x9d7fd6[_0x504a('0x52')]&&this[_0x504a('0xc')](_0x2f0872);}else{if(!_0x9d7fd6){const _0x320426=this[_0x504a('0x49')](_0x2f0872);_0x5d74e7[_0x504a('0x64')][_0x504a('0x14')](_0xc7bd30=>{for(const _0x40c9d7 of _0x320426)_0xc7bd30['removeMarker'](_0x40c9d7);});}}}}),_0x9d7fd6;}[_0x504a('0x3e')](_0x5c6cb7,_0x3b98f8){const _0x15aca2=this['_attachMarkerToThread'](_0x5c6cb7,_0x3b98f8);_0x15aca2&&!_0x15aca2[_0x504a('0x63')]&&_0x15aca2[_0x504a('0x50')]({'type':_0x504a('0x69'),'value':this['_getTextContext'](_0x3b98f8)});}}function Z(_0x2c7300,_0x4e9ad9){return _0x4e9ad9?_0x2c7300+':'+_0x4e9ad9:_0x2c7300;}function tt(_0x2214e2){const _0x5e067e=_0x2214e2[_0x504a('0xe')](':');return{'group':_0x5e067e[0x0],'id':_0x5e067e[0x1],'part':_0x5e067e[0x2]};}function ot(_0x1cf1af,_0x1f4f82){const _0x282e81=_0x1f4f82[_0x504a('0x43')],_0x117360=_0x1f4f82[_0x504a('0x47')](_0x1cf1af[_0x504a('0x30')]);for(const _0x3d07fa of _0x1cf1af[_0x504a('0x60')]()){const {type:_0x59aa1e,item:_0x54de22,nextPosition:_0x32adb3}=_0x3d07fa;if(_0x504a('0x69')===_0x59aa1e||_0x282e81['isObject'](_0x54de22)){const _0x2b457f=_0x1f4f82[_0x504a('0x56')](_0x54de22);_0x117360[_0x504a('0x11')]&&(_0x117360[_0x504a('0x30')]=_0x2b457f),_0x117360['end']=_0x32adb3;}}return _0x117360;}