@ckeditor/ckeditor5-comments 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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.
- package/build/comments.js +1 -1
- package/package.json +4 -3
- package/src/annotations/annotation.d.ts +6 -6
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +3 -3
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +6 -6
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +5 -5
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +4 -4
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +6 -6
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +6 -6
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +5 -5
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +2 -2
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +2 -2
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +2 -2
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +5 -5
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +4 -4
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +5 -5
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +6 -6
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +11 -11
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +5 -5
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +3 -3
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +3 -3
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +4 -4
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +8 -8
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +4 -4
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +2 -2
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +4 -4
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +3 -3
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +5 -5
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +3 -3
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +5 -5
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +7 -7
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +8 -8
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +10 -10
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +2 -2
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +3 -3
- package/src/index.d.ts +20 -20
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1bb3=['ignoreResolvedComments','markers','removeMarker','from','_handleMarkerAddAndRemove','reconvertMarker','pluginName','delete','getAllMarkersForId','isObject','length','refreshVisibility','_handleThreadMarker','low','listenTo','push','_initAriaMarkerChangeAnnouncements','config','setUnlinkedAt','LEAVE_COMMENT_ANNOUNCEMENT','managedUsingOperations','model','name','differ','openNewCommentThread','comment','$textProxy','end','getWalker','getItems','comment:','addMarker:','fetchCommentThread','context','ck-comment-marker--active','newRange','change:isReadOnly','item','commands','render','comments','_getTextContext','dataToMarker','editing','getAttribute','ck-comment-marker','_threadToController','schema','consume','unlinkedAt','substring','scrollToThreadMarker','hasDomSelection','destroy','document','registerPostFixer','hasCommentThread','_reconvertMarkers','switchReadOnly','plugins','getCommentThreads','destroyed','registerAnnotation','_attachResolvedThread','start','_initializeMarkerConverters','addCommentThread','conversion','startsWith','state','get','addComment','updateMarker','isLocal','createRange','join','archivedAt','for','markerToHighlight','upcast','attachTo','split','init','add','isEqual','data','_detachCommentThread','createPositionBefore','isCollapsed','hasMarkerForId','removeMarker:','change','enqueueChange','CommentsEditing','change:activeMarker','_hasTargetInContent','set','getRange','markerName','locale','once','activeMarker','reopenCommentThread','ready','requires','isThreadsLoadingPaused','clear','affectsData','text','isResolved','collaboration.channelId','setContext','editor','_getTargetForId','isAttached','getCommentThread','$marker','getChangedMarkers','view','rootName','removeCommentThread','focus'];(function(_0x5c4a70,_0x1bb37d){const _0x455351=function(_0x1390a7){while(--_0x1390a7){_0x5c4a70['push'](_0x5c4a70['shift']());}};_0x455351(++_0x1bb37d);}(_0x1bb3,0x1e8));const _0x4553=function(_0x5c4a70,_0x1bb37d){_0x5c4a70=_0x5c4a70-0x0;let _0x455351=_0x1bb3[_0x5c4a70];return _0x455351;};import{Plugin as _0x3a8dfd}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x476550}from'ckeditor5/src/utils';import _0x2f3864 from'./commentsrepository';import _0x20a6c4 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x207c92,getAllMarkersDomElementsSorted as _0x2658f7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4396e1 from'../annotations/editorannotations';import _0x5b83ad from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x126733 from'./integrations/importword';import _0x3a3722 from'../annotations/annotations';import{getTranslation as _0x495d88}from'../utils/common-translations';export default class r extends _0x3a8dfd{static get[_0x4553('0x68')](){return[_0x2f3864,_0x4396e1,_0x5b83ad,_0x126733];}static get[_0x4553('0x6')](){return _0x4553('0x5d');}constructor(_0x56d1cc){super(_0x56d1cc),this[_0x4553('0x60')](_0x4553('0x69'),!0x0),_0x56d1cc[_0x4553('0x55')]['once'](_0x4553('0x67'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x4553('0x60')](_0x4553('0x65'),null),this['on'](_0x4553('0x5e'),(_0x5f387e,_0x5812cf,_0xbda505,_0x53b5ee)=>{const _0x22c20c=_0xbda505?ot(_0xbda505)['id']:null;if(_0x56d1cc[_0x4553('0x15')][_0x4553('0x5b')](()=>{if(_0x22c20c){const _0x1bb4f4=this[_0x4553('0x8')](_0x22c20c);for(const _0x5a9ab3 of _0x1bb4f4)_0x56d1cc[_0x4553('0x2b')]['reconvertMarker'](_0x5a9ab3);}if(_0x53b5ee){const {id:_0x2f84fd}=ot(_0x53b5ee),_0x1a9c37=this[_0x4553('0x8')](_0x2f84fd);for(const _0x50998f of _0x1a9c37)_0x56d1cc[_0x4553('0x2b')][_0x4553('0x5')](_0x50998f);}}),_0x22c20c){const _0x35f677=_0x56d1cc[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x22c20c);_0x35f677&&_0x35f677[_0x4553('0x6d')]&&this[_0x4553('0x33')](_0x22c20c);}}),this[_0x4553('0x10')]();}[_0x4553('0x52')](){const _0x1093d1=this[_0x4553('0x70')],_0x89321f=_0x1093d1['plugins'][_0x4553('0x46')](_0x2f3864),_0x253fad=_0x1093d1[_0x4553('0x11')]['get'](_0x4553('0x6e'));_0x1093d1[_0x4553('0x26')]['add'](_0x4553('0x42'),new _0x20a6c4(_0x1093d1)),this['listenTo'](_0x1093d1,_0x4553('0x24'),(_0x22ca36,_0x1120b8,_0x1640c5)=>{_0x89321f[_0x4553('0x3a')](_0x1640c5,_0x1093d1['config'][_0x4553('0x46')]('collaboration.channelId'));}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x42'),_0x253fad),(_0xdec21c,{threadId:_0x5d882b})=>{const _0x5a46f1=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)['getCommentThread'](_0x5d882b);_0x5a46f1&&_0x5a46f1[_0x4553('0x4c')]&&this[_0x4553('0x3f')](_0x5d882b);}),this['listenTo'](_0x89321f,tt(_0x4553('0x78'),_0x253fad),(_0x396032,{threadId:_0x39926d})=>{_0x1093d1[_0x4553('0x15')]['enqueueChange']({'isUndoable':!0x1},_0x220263=>{const _0x145610=this[_0x4553('0x8')](_0x39926d);for(const _0x4f26a4 of _0x145610)_0x220263[_0x4553('0x2')](_0x4f26a4);});}),this[_0x4553('0xe')](_0x89321f,tt('resolveCommentThread',_0x253fad),(_0x553763,{threadId:_0x57d049})=>{(this[_0x4553('0x3f')](_0x57d049),this[_0x4553('0x39')](_0x57d049),this[_0x4553('0x70')][_0x4553('0x2b')]['view'][_0x4553('0x34')])&&(this[_0x4553('0x70')][_0x4553('0x3b')]['get'](_0x2f3864)[_0x4553('0x73')](_0x57d049)[_0x4553('0x31')]||this['editor'][_0x4553('0x2b')]['view'][_0x4553('0x79')]());},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x66'),_0x253fad),(_0x14b48c,{threadId:_0x5e7256})=>{this[_0x4553('0x39')](_0x5e7256);},{'priority':'low'}),this[_0x4553('0xe')](_0x89321f,tt(_0x4553('0x47'),_0x253fad),(_0x1fa474,{threadId:_0x11cfb4,isFromAdapter:_0x3d76bb})=>{const _0x1f1c52=this[_0x4553('0x8')](_0x11cfb4);if(_0x3d76bb||0x0==_0x1f1c52['length']||!_0x89321f[_0x4553('0x38')](_0x11cfb4))return;0x1===_0x89321f[_0x4553('0x73')](_0x11cfb4)[_0x4553('0xa')]&&_0x1093d1[_0x4553('0x15')][_0x4553('0x5c')]({'isUndoable':!0x1},_0x154853=>{for(const _0x45e1f4 of _0x1f1c52)_0x154853[_0x4553('0x48')](_0x45e1f4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4553('0xd')}),this['_initializeMarkerConverters'](),this[_0x4553('0x4')]();}[_0x4553('0x35')](){const _0x5c38c3=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864),_0x4d8675=this[_0x4553('0x70')][_0x4553('0x11')]['get'](_0x4553('0x6e'));for(const _0xdc0f8 of _0x5c38c3[_0x4553('0x3c')]({'channelId':_0x4d8675}))_0x5c38c3[_0x4553('0x56')](_0xdc0f8['id']),_0x5c38c3['_threads']['delete'](_0xdc0f8['id']);super['destroy']();}[_0x4553('0x59')](_0x484983){return this[_0x4553('0x8')](_0x484983)[_0x4553('0xa')]>0x0;}[_0x4553('0x8')](_0x517afa){const _0x49b2a5=[];for(const _0x3d2e60 of this['editor'][_0x4553('0x15')][_0x4553('0x1')])_0x3d2e60[_0x4553('0x16')][_0x4553('0x44')](_0x4553('0x1e')+_0x517afa)&&_0x49b2a5[_0x4553('0xf')](_0x3d2e60);return _0x49b2a5;}[_0x4553('0x33')](_0x56185e){const _0x51cc56=this[_0x4553('0x71')](_0x56185e);_0x51cc56&&setTimeout(()=>{this[_0x4553('0x65')]&&ot(this[_0x4553('0x65')])['id']===_0x56185e&&_0x476550({'target':_0x51cc56[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x396f71){this['editor']['model'][_0x4553('0x5b')](()=>{for(const _0x15cd49 of this[_0x4553('0x8')](_0x396f71))this[_0x4553('0x70')][_0x4553('0x2b')]['reconvertMarker'](_0x15cd49);});}[_0x4553('0x3f')](_0x46c63d){const _0x44282e=this['editor']['plugins']['get'](_0x2f3864),_0x3db748=this[_0x4553('0x70')][_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1),_0x579209=_0x44282e['getCommentThread'](_0x46c63d);if(!_0x579209[_0x4553('0x72')]){const _0x3c3e7d=_0x579209[_0x4553('0x50')](()=>this[_0x4553('0x71')](_0x579209['id']));_0x3db748[_0x4553('0x3e')](_0x3c3e7d),_0x579209['_hasTargetInContent']=!0x1;}}[_0x4553('0x41')](){const _0xa95b2e=this[_0x4553('0x70')];_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('editingDowncast')[_0x4553('0x4e')]({'model':_0x4553('0x19'),'view':(_0x2a9fa7,_0x27463f)=>{const {id:_0x1ed944}=ot(_0x2a9fa7[_0x4553('0x62')]),_0x3e75ce=_0xa95b2e[_0x4553('0x3b')][_0x4553('0x46')](_0x2f3864)[_0x4553('0x73')](_0x1ed944),_0x44d43e=this[_0x4553('0x65')]&&ot(this['activeMarker'])['id']===_0x1ed944;if(_0x3e75ce&&_0x3e75ce[_0x4553('0x6d')]&&!_0x44d43e&&_0x2a9fa7[_0x4553('0x25')])return _0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x1f')+_0x2a9fa7[_0x4553('0x62')]),_0x27463f['consumable'][_0x4553('0x30')](_0x2a9fa7['item'],_0x4553('0x5a')+_0x2a9fa7[_0x4553('0x62')]),{'classes':[]};const _0x1403bd=[_0x4553('0x2d')];return _0x44d43e&&_0x1403bd['push'](_0x4553('0x22')),{'classes':_0x1403bd,'attributes':{'data-comment':_0x1ed944}};}}),_0xa95b2e['conversion'][_0x4553('0x4d')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x464d96,{options:_0x561add})=>{const _0x297062=_0xa95b2e['plugins'][_0x4553('0x46')](_0x2f3864),_0x140e67=_0xa95b2e[_0x4553('0x15')][_0x4553('0x1')][_0x4553('0x46')](_0x464d96),{id:_0x32b5bc,part:_0x4fdfd3}=ot(_0x464d96);if(_0x140e67&&!_0x140e67[_0x4553('0x6b')])return null;if(_0x561add[_0x4553('0x0')]){const _0x58d66a=_0x297062[_0x4553('0x73')](_0x32b5bc);if(_0x58d66a&&_0x58d66a['isResolved'])return null;}return{'group':_0x4553('0x19'),'name':_0x4fdfd3?_0x32b5bc+':'+_0x4fdfd3:_0x32b5bc};}}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')](_0x4553('0x4f'))['elementToElement']({'view':{'name':_0x4553('0x19'),'attributes':{'id':/^\w/}},'model':(_0x265ca9,{writer:_0x3c8fb6})=>_0x3c8fb6['createElement'](_0x4553('0x74'),{'data-name':_0x4553('0x1e')+_0x265ca9[_0x4553('0x2c')]('id')})}),_0xa95b2e[_0x4553('0x43')][_0x4553('0x4d')]('upcast')[_0x4553('0x2a')]({'view':_0x4553('0x19')});}['_handleMarkerAddAndRemove'](){const _0x129be2=this[_0x4553('0x70')],_0x2f10ab=_0x129be2['plugins'][_0x4553('0x46')](_0x2f3864),_0x567d40=new Set(),_0x3f9d24=new Set();_0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x37')](_0xcfc1df=>{let _0x113314=!0x1;for(const {name:_0x2a23e5,data:_0x4a1950}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')][_0x4553('0x17')][_0x4553('0x75')]()){const {group:_0x51d314,id:_0x98b494}=ot(_0x2a23e5);let _0x44db6d=_0x4a1950[_0x4553('0x23')];if('comment'!==_0x51d314||!_0x44db6d)continue;const _0x587fe3='$graveyard'===_0x44db6d['root'][_0x4553('0x77')];_0x587fe3||(_0x44db6d=et(_0x44db6d,_0x129be2[_0x4553('0x15')]),!_0x44db6d||_0x44db6d[_0x4553('0x58')]||!_0x4a1950[_0x4553('0x23')]||_0x44db6d[_0x4553('0x54')](_0x4a1950[_0x4553('0x23')]))?_0x129be2[_0x4553('0x15')]['hasContent'](_0x44db6d)&&!_0x587fe3?this[_0x4553('0x69')]?_0x567d40[_0x4553('0x53')](_0x2a23e5):this[_0x4553('0xc')](_0x2a23e5,_0x98b494):(_0x3f9d24['add'](_0x2a23e5),_0x567d40['delete'](_0x2a23e5),_0xcfc1df['removeMarker'](_0x2a23e5),_0x113314=!0x0):(_0xcfc1df[_0x4553('0x48')](_0x2a23e5,{'range':_0x44db6d}),_0x113314=!0x0);}return _0x113314;}),this['on']('change:isThreadsLoadingPaused',(_0x5c4f99,_0xc20035,_0x43d048)=>{if(!_0x43d048&&_0x567d40['size'])for(const _0x28fe7d of _0x567d40){const {id:_0x3318f3}=ot(_0x28fe7d);_0x567d40[_0x4553('0x7')](_0x28fe7d),_0x129be2[_0x4553('0x15')]['markers'][_0x4553('0x46')](_0x28fe7d)&&this[_0x4553('0xc')](_0x28fe7d,_0x3318f3);}}),this[_0x4553('0xe')](_0x129be2[_0x4553('0x15')][_0x4553('0x36')],_0x4553('0x5b'),(_0x1c3dd8,_0x1dd490)=>{for(const {name:_0x15a1d2,data:{newRange:_0x4b1546}}of _0x129be2[_0x4553('0x15')][_0x4553('0x36')]['differ'][_0x4553('0x75')]()){const {group:_0x5db00a,id:_0x343273}=ot(_0x15a1d2);if(_0x4553('0x19')!==_0x5db00a)continue;const _0x5c6214=_0x2f10ab[_0x4553('0x73')](_0x343273),_0x17572f=this[_0x4553('0x59')](_0x343273);_0x5c6214&&(_0x5c6214[_0x4553('0x5f')]||_0x129be2[_0x4553('0x2b')][_0x4553('0x76')][_0x4553('0x64')](_0x4553('0x27'),()=>{const _0x1a363e=_0x129be2[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722),_0xb14ba5=_0x2f10ab[_0x4553('0x2e')]['get'](_0x5c6214)[_0x4553('0x76')];_0x1a363e['getByInnerView'](_0xb14ba5)[_0x4553('0xb')]();},{'priority':_0x4553('0xd')}),_0x5c6214[_0x4553('0x5f')]=_0x17572f||!!_0x4b1546),_0x4b1546||(_0x3f9d24[_0x4553('0x53')](_0x15a1d2),_0x567d40[_0x4553('0x7')](_0x15a1d2));}if(_0x1dd490[_0x4553('0x49')])for(const _0x32691e of _0x3f9d24){const {id:_0x522b57}=ot(_0x32691e),_0x16b17c=_0x2f10ab['getCommentThread'](_0x522b57),_0x5538d4=this['hasMarkerForId'](_0x522b57);_0x567d40[_0x4553('0x7')](_0x32691e),!_0x16b17c||_0x5538d4||_0x16b17c['unlinkedAt']||_0x16b17c[_0x4553('0x12')](new Date());}_0x3f9d24[_0x4553('0x6a')]();});}['_getTargetForId'](_0x51a88d){const _0x1d79d0=this[_0x4553('0x70')],_0x2215e2=this['getAllMarkersForId'](_0x51a88d);return _0x2658f7(_0x1d79d0[_0x4553('0x2b')],_0x2215e2);}[_0x4553('0x29')](_0x2b030d){const _0x1766d7=this[_0x4553('0x8')](_0x2b030d);let _0x2a3641='',_0x8466c2=!0x1;for(const _0x326eb5 of _0x1766d7){const _0x46872c=_0x326eb5[_0x4553('0x61')]();for(const _0x149ae9 of Array[_0x4553('0x3')](_0x46872c[_0x4553('0x1d')]()))_0x149ae9['is'](_0x4553('0x1a'))?(_0x2a3641&&_0x8466c2&&(_0x2a3641+='\x20',_0x8466c2=!0x1),_0x2a3641+=_0x149ae9['data']):_0x8466c2=!0x0;_0x8466c2=!0x0;}return _0x2a3641[_0x4553('0x32')](0x0,0x96);}['_attachMarkerToThread'](_0x508cc6,_0x14a789){const _0x4a1da0=this[_0x4553('0x70')],_0x5cbd17=_0x4a1da0['plugins']['get'](_0x2f3864);let _0x429b9f=_0x5cbd17['getCommentThread'](_0x14a789);const _0x5b8736=_0x4a1da0[_0x4553('0x11')]['get'](_0x4553('0x6e')),_0x26e9db=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x4396e1);if(_0x429b9f&&(_0x429b9f[_0x4553('0x31')]&&_0x429b9f[_0x4553('0x12')](null),_0x429b9f[_0x4553('0x72')]))return _0x429b9f;return!this[_0x4553('0x8')](_0x14a789)[0x0][_0x4553('0x14')]?_0x4a1da0[_0x4553('0x2b')][_0x4553('0x76')]['once'](_0x4553('0x27'),()=>{if(_0x5cbd17[_0x4553('0x73')](_0x14a789))return;const _0x5988c3=_0x4a1da0[_0x4553('0x3b')][_0x4553('0x46')](_0x3a3722);_0x429b9f=_0x5cbd17[_0x4553('0x18')]({'channelId':_0x5b8736,'threadId':_0x14a789,'target':()=>this[_0x4553('0x71')](_0x14a789),'context':{'type':'text','value':this[_0x4553('0x29')](_0x14a789)}});const _0x336d92=_0x5cbd17[_0x4553('0x2e')][_0x4553('0x46')](_0x429b9f)['view'],_0x1a6806=_0x5988c3['getByInnerView'](_0x336d92);_0x1a6806&&_0x26e9db[_0x4553('0x3e')](_0x1a6806);},{'priority':_0x4553('0xd')}):_0x5cbd17[_0x4553('0x20')]({'channelId':_0x5b8736,'threadId':_0x14a789})['then'](_0x27a949=>{if(_0x4553('0x3d')!==_0x4a1da0[_0x4553('0x45')]){if(_0x429b9f=_0x27a949,_0x429b9f&&!_0x429b9f[_0x4553('0x72')]){const _0xcaa09e=_0x429b9f[_0x4553('0x50')](()=>this['_getTargetForId'](_0x14a789));_0x26e9db[_0x4553('0x3e')](_0xcaa09e),_0x429b9f[_0x4553('0x6d')]&&this[_0x4553('0x39')](_0x14a789);}else{if(!_0x429b9f){const _0x3fe852=this[_0x4553('0x8')](_0x14a789);_0x4a1da0[_0x4553('0x15')]['change'](_0x32a8c1=>{for(const _0x55f5fb of _0x3fe852)_0x32a8c1[_0x4553('0x2')](_0x55f5fb);});}}}}),_0x429b9f;}['_handleThreadMarker'](_0x3f0bcc,_0x3aba1a){const _0x369752=this['_attachMarkerToThread'](_0x3f0bcc,_0x3aba1a);_0x369752&&!_0x369752[_0x4553('0x21')]&&_0x369752[_0x4553('0x6f')]({'type':_0x4553('0x6c'),'value':this['_getTextContext'](_0x3aba1a)});}[_0x4553('0x10')](){const _0x10ca16=this['editor'];_0x207c92(_0x10ca16['model'],({left:_0x453d89,entered:_0x47de43})=>{const _0x2328e1=[];for(const _0x5e89be of _0x453d89)if(rt(_0x5e89be)){_0x2328e1[_0x4553('0xf')](_0x495d88(_0x10ca16[_0x4553('0x63')],_0x4553('0x13')));break;}for(const _0x176acf of _0x47de43)if(rt(_0x176acf)){_0x2328e1['push'](_0x495d88(_0x10ca16[_0x4553('0x63')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2328e1[_0x4553('0xa')]&&_0x10ca16['ui']['ariaLiveAnnouncer']['announce'](_0x4553('0x28'),_0x2328e1[_0x4553('0x4b')]('\x20'));});}}function tt(_0x18eb64,_0x5d34f4){return _0x5d34f4?_0x18eb64+':'+_0x5d34f4:_0x18eb64;}function ot(_0x4208a6){const _0xdaaf87=_0x4208a6[_0x4553('0x51')](':');return{'group':_0xdaaf87[0x0],'id':_0xdaaf87[0x1],'part':_0xdaaf87[0x2]};}function et(_0x44195a,_0x4553b3){const _0x4e5d35=_0x4553b3[_0x4553('0x2f')],_0x7cd3da=_0x4553b3[_0x4553('0x4a')](_0x44195a['start']);for(const _0x4d7537 of _0x44195a[_0x4553('0x1c')]()){const {type:_0x2612b4,item:_0x237a29,nextPosition:_0x4e25b4}=_0x4d7537;if('text'===_0x2612b4||_0x4e5d35[_0x4553('0x9')](_0x237a29)){const _0xe67486=_0x4553b3[_0x4553('0x57')](_0x237a29);_0x7cd3da['isCollapsed']&&(_0x7cd3da[_0x4553('0x40')]=_0xe67486),_0x7cd3da[_0x4553('0x1b')]=_0x4e25b4;}}return _0x7cd3da;}function rt(_0x597417){return _0x4553('0x19')===ot(_0x597417[_0x4553('0x16')])['group'];}
|
|
23
|
+
const _0x2da2=['data','markers','openNewCommentThread','$graveyard','change:isThreadsLoadingPaused','ready','commands','editing','_handleMarkerAddAndRemove','_initAriaMarkerChangeAnnouncements','upcast','isThreadsLoadingPaused','ck-comment-marker','for','newRange','removeCommentThread','state','change:isReadOnly','start','size','getWalker','isCollapsed','registerPostFixer','getAttribute','requires','managedUsingOperations','then','join','registerAnnotation','unlinkedAt','change:activeMarker','editor','_detachCommentThread','LEAVE_COMMENT_ANNOUNCEMENT','addMarker:','ignoreResolvedComments','focus','isLocal','item','removeMarker','from','editingDowncast','setUnlinkedAt','getAllMarkersForId','schema','pluginName','destroy','addComment','root','scrollToThreadMarker','markerToHighlight','hasDomSelection','isResolved','_attachResolvedThread','destroyed','elementToElement','$textProxy','resolveCommentThread','consume','document','ENTER_COMMENT_ANNOUNCEMENT','consumable','clear','removeMarker:','getCommentThread','CommentsEditing','createElement','conversion','_handleThreadMarker','change','getByInnerView','_hasTargetInContent','reopenCommentThread','render','low','length','text','reconvertMarker','announce','refreshVisibility','markerName','get','archivedAt','context','differ','$marker','ck-comment-marker--active','markerToData','init','add','once','hasContent','comment:','_threads','fetchCommentThread','_threadToController','view','model','set','_reconvertMarkers','name','comment','collaboration.channelId','end','comments','push','_getTextContext','attachTo','_getTargetForId','isObject','createRange','delete','switchReadOnly','config','dataToMarker','listenTo','substring','isEqual','activeMarker','startsWith','plugins','getChangedMarkers','hasMarkerForId','isAttached','group','affectsData','updateMarker','_initializeMarkerConverters'];(function(_0x30d665,_0x2da268){const _0x2ab7cf=function(_0x44b755){while(--_0x44b755){_0x30d665['push'](_0x30d665['shift']());}};_0x2ab7cf(++_0x2da268);}(_0x2da2,0x131));const _0x2ab7=function(_0x30d665,_0x2da268){_0x30d665=_0x30d665-0x0;let _0x2ab7cf=_0x2da2[_0x30d665];return _0x2ab7cf;};import{Plugin as _0x4fff33}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1c7a0f}from'ckeditor5/src/utils.js';import _0x31a553 from'./commentsrepository.js';import _0x22ee02 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x2e7497,getAllMarkersDomElementsSorted as _0x411292}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x118948 from'../annotations/editorannotations.js';import _0x2122b7 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x1bf02e from'./integrations/importword.js';import _0x370361 from'../annotations/annotations.js';import{getTranslation as _0x4409ff}from'../utils/common-translations.js';export default class r extends _0x4fff33{static get[_0x2ab7('0x67')](){return[_0x31a553,_0x118948,_0x2122b7,_0x1bf02e];}static get[_0x2ab7('0x7c')](){return _0x2ab7('0x10');}constructor(_0xce59bc){super(_0xce59bc),this[_0x2ab7('0x31')](_0x2ab7('0x5a'),!0x0),_0xce59bc[_0x2ab7('0x4f')][_0x2ab7('0x29')](_0x2ab7('0x54'),()=>this[_0x2ab7('0x5a')]=!0x1),this[_0x2ab7('0x31')](_0x2ab7('0x45'),null),this['on'](_0x2ab7('0x6d'),(_0x41a11a,_0x2295a4,_0x1a098d,_0x595e24)=>{const _0x5e46bf=_0x1a098d?ot(_0x1a098d)['id']:null;if(_0xce59bc[_0x2ab7('0x30')][_0x2ab7('0x14')](()=>{if(_0x5e46bf){const _0x4c52d6=this[_0x2ab7('0x7a')](_0x5e46bf);for(const _0x45daff of _0x4c52d6)_0xce59bc[_0x2ab7('0x56')][_0x2ab7('0x1c')](_0x45daff);}if(_0x595e24){const {id:_0x1b1149}=ot(_0x595e24),_0x4f573f=this[_0x2ab7('0x7a')](_0x1b1149);for(const _0x5b0f0f of _0x4f573f)_0xce59bc[_0x2ab7('0x56')]['reconvertMarker'](_0x5b0f0f);}}),_0x5e46bf){const _0x4f4682=_0xce59bc['plugins'][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x5e46bf);_0x4f4682&&_0x4f4682[_0x2ab7('0x3')]&&this[_0x2ab7('0x0')](_0x5e46bf);}}),this[_0x2ab7('0x58')]();}[_0x2ab7('0x27')](){const _0x33f62a=this[_0x2ab7('0x6e')],_0x3db161=_0x33f62a[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x120231=_0x33f62a[_0x2ab7('0x40')][_0x2ab7('0x20')]('collaboration.channelId');_0x33f62a[_0x2ab7('0x55')][_0x2ab7('0x28')]('addCommentThread',new _0x22ee02(_0x33f62a)),this['listenTo'](_0x33f62a,_0x2ab7('0x60'),(_0x344180,_0x2b9f05,_0x173adf)=>{_0x3db161[_0x2ab7('0x3f')](_0x173adf,_0x33f62a[_0x2ab7('0x40')][_0x2ab7('0x20')](_0x2ab7('0x35')));}),this['listenTo'](_0x3db161,tt('addCommentThread',_0x120231),(_0x2d7ae4,{threadId:_0x59a8ac})=>{const _0x2ab049=this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x59a8ac);_0x2ab049&&_0x2ab049[_0x2ab7('0x21')]&&this[_0x2ab7('0x4')](_0x59a8ac);}),this[_0x2ab7('0x42')](_0x3db161,tt(_0x2ab7('0x5e'),_0x120231),(_0x5d11dc,{threadId:_0x5dc679})=>{_0x33f62a[_0x2ab7('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x1b3166=>{const _0x1ce844=this[_0x2ab7('0x7a')](_0x5dc679);for(const _0x3a36eb of _0x1ce844)_0x1b3166[_0x2ab7('0x76')](_0x3a36eb);});}),this[_0x2ab7('0x42')](_0x3db161,tt(_0x2ab7('0x8'),_0x120231),(_0x391e4c,{threadId:_0x1d5a06})=>{(this['_attachResolvedThread'](_0x1d5a06),this[_0x2ab7('0x32')](_0x1d5a06),this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x2')])&&(this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x1d5a06)[_0x2ab7('0x6c')]||this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x73')]());},{'priority':_0x2ab7('0x19')}),this['listenTo'](_0x3db161,tt(_0x2ab7('0x17'),_0x120231),(_0x87877d,{threadId:_0x402a58})=>{this[_0x2ab7('0x32')](_0x402a58);},{'priority':_0x2ab7('0x19')}),this['listenTo'](_0x3db161,tt(_0x2ab7('0x7e'),_0x120231),(_0x148d60,{threadId:_0x5978d0,isFromAdapter:_0x53bf27})=>{const _0x2fb592=this[_0x2ab7('0x7a')](_0x5978d0);if(_0x53bf27||0x0==_0x2fb592[_0x2ab7('0x1a')]||!_0x3db161['hasCommentThread'](_0x5978d0))return;0x1===_0x3db161[_0x2ab7('0xf')](_0x5978d0)['length']&&_0x33f62a[_0x2ab7('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x9d530e=>{for(const _0x488175 of _0x2fb592)_0x9d530e[_0x2ab7('0x4d')](_0x488175,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x2ab7('0x4e')](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0xa46cee=this['editor'][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x4b90c7=this['editor'][_0x2ab7('0x40')]['get']('collaboration.channelId');for(const _0x47cfcd of _0xa46cee['getCommentThreads']({'channelId':_0x4b90c7}))_0xa46cee[_0x2ab7('0x6f')](_0x47cfcd['id']),_0xa46cee[_0x2ab7('0x2c')]['delete'](_0x47cfcd['id']);super[_0x2ab7('0x7d')]();}['hasMarkerForId'](_0x3ea6a0){return this[_0x2ab7('0x7a')](_0x3ea6a0)['length']>0x0;}['getAllMarkersForId'](_0x7e5f30){const _0x546436=[];for(const _0x4d9222 of this[_0x2ab7('0x6e')][_0x2ab7('0x30')]['markers'])_0x4d9222[_0x2ab7('0x33')][_0x2ab7('0x46')](_0x2ab7('0x2b')+_0x7e5f30)&&_0x546436[_0x2ab7('0x38')](_0x4d9222);return _0x546436;}[_0x2ab7('0x0')](_0x25e9b3){const _0x5212e4=this[_0x2ab7('0x3b')](_0x25e9b3);_0x5212e4&&setTimeout(()=>{this[_0x2ab7('0x45')]&&ot(this[_0x2ab7('0x45')])['id']===_0x25e9b3&&_0x1c7a0f({'target':_0x5212e4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x455ca7){this[_0x2ab7('0x6e')][_0x2ab7('0x30')]['change'](()=>{for(const _0x80598e of this[_0x2ab7('0x7a')](_0x455ca7))this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x1c')](_0x80598e);});}[_0x2ab7('0x4')](_0x3a4998){const _0x3c5463=this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x44ee9d=this[_0x2ab7('0x6e')][_0x2ab7('0x47')]['get'](_0x118948),_0x51a07d=_0x3c5463[_0x2ab7('0xf')](_0x3a4998);if(!_0x51a07d[_0x2ab7('0x4a')]){const _0x1ecce6=_0x51a07d['attachTo'](()=>this[_0x2ab7('0x3b')](_0x51a07d['id']));_0x44ee9d[_0x2ab7('0x6b')](_0x1ecce6),_0x51a07d[_0x2ab7('0x16')]=!0x1;}}[_0x2ab7('0x4e')](){const _0xb1629a=this[_0x2ab7('0x6e')];_0xb1629a[_0x2ab7('0x12')]['for'](_0x2ab7('0x78'))[_0x2ab7('0x1')]({'model':_0x2ab7('0x34'),'view':(_0x1d98d0,_0x123163)=>{const {id:_0x500435}=ot(_0x1d98d0[_0x2ab7('0x1f')]),_0x7da421=_0xb1629a['plugins'][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x500435),_0x40d765=this[_0x2ab7('0x45')]&&ot(this['activeMarker'])['id']===_0x500435;if(_0x7da421&&_0x7da421[_0x2ab7('0x3')]&&!_0x40d765&&_0x1d98d0[_0x2ab7('0x75')])return _0x123163[_0x2ab7('0xc')][_0x2ab7('0x9')](_0x1d98d0['item'],_0x2ab7('0x71')+_0x1d98d0[_0x2ab7('0x1f')]),_0x123163[_0x2ab7('0xc')][_0x2ab7('0x9')](_0x1d98d0[_0x2ab7('0x75')],_0x2ab7('0xe')+_0x1d98d0[_0x2ab7('0x1f')]),{'classes':[]};const _0x208f28=[_0x2ab7('0x5b')];return _0x40d765&&_0x208f28[_0x2ab7('0x38')](_0x2ab7('0x25')),{'classes':_0x208f28,'attributes':{'data-comment':_0x500435}};}}),_0xb1629a['conversion'][_0x2ab7('0x5c')]('dataDowncast')[_0x2ab7('0x26')]({'model':_0x2ab7('0x34'),'view':(_0x32792b,{options:_0xf82266})=>{const _0x1eb309=_0xb1629a[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x3d792d=_0xb1629a[_0x2ab7('0x30')][_0x2ab7('0x50')][_0x2ab7('0x20')](_0x32792b),{id:_0x235195,part:_0x3f17ea}=ot(_0x32792b);if(_0x3d792d&&!_0x3d792d[_0x2ab7('0x4c')])return null;if(_0xf82266[_0x2ab7('0x72')]){const _0x24af9d=_0x1eb309[_0x2ab7('0xf')](_0x235195);if(_0x24af9d&&_0x24af9d[_0x2ab7('0x3')])return null;}return{'group':_0x2ab7('0x34'),'name':_0x3f17ea?_0x235195+':'+_0x3f17ea:_0x235195};}}),_0xb1629a[_0x2ab7('0x12')][_0x2ab7('0x5c')](_0x2ab7('0x59'))[_0x2ab7('0x6')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2db755,{writer:_0x79c0f4})=>_0x79c0f4[_0x2ab7('0x11')](_0x2ab7('0x24'),{'data-name':_0x2ab7('0x2b')+_0x2db755[_0x2ab7('0x66')]('id')})}),_0xb1629a[_0x2ab7('0x12')]['for'](_0x2ab7('0x59'))[_0x2ab7('0x41')]({'view':_0x2ab7('0x34')});}[_0x2ab7('0x57')](){const _0x41d863=this[_0x2ab7('0x6e')],_0x160ffb=_0x41d863[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x3bb4f6=new Set(),_0x294916=new Set();_0x41d863[_0x2ab7('0x30')]['document'][_0x2ab7('0x65')](_0x78bc1a=>{let _0x1f9c0b=!0x1;for(const {name:_0x23d51d,data:_0x13fe84}of _0x41d863['model']['document'][_0x2ab7('0x23')][_0x2ab7('0x48')]()){const {group:_0x218bcf,id:_0x1319c4}=ot(_0x23d51d);let _0x3fff30=_0x13fe84['newRange'];if(_0x2ab7('0x34')!==_0x218bcf||!_0x3fff30)continue;const _0x17f077=_0x2ab7('0x52')===_0x3fff30[_0x2ab7('0x7f')]['rootName'];_0x17f077||(_0x3fff30=et(_0x3fff30,_0x41d863[_0x2ab7('0x30')]),!_0x3fff30||_0x3fff30[_0x2ab7('0x64')]||!_0x13fe84[_0x2ab7('0x5d')]||_0x3fff30[_0x2ab7('0x44')](_0x13fe84[_0x2ab7('0x5d')]))?_0x41d863[_0x2ab7('0x30')][_0x2ab7('0x2a')](_0x3fff30)&&!_0x17f077?this[_0x2ab7('0x5a')]?_0x3bb4f6[_0x2ab7('0x28')](_0x23d51d):this[_0x2ab7('0x13')](_0x23d51d,_0x1319c4):(_0x294916[_0x2ab7('0x28')](_0x23d51d),_0x3bb4f6[_0x2ab7('0x3e')](_0x23d51d),_0x78bc1a[_0x2ab7('0x76')](_0x23d51d),_0x1f9c0b=!0x0):(_0x78bc1a[_0x2ab7('0x4d')](_0x23d51d,{'range':_0x3fff30}),_0x1f9c0b=!0x0);}return _0x1f9c0b;}),this['on'](_0x2ab7('0x53'),(_0xf294c4,_0x1df3b2,_0x25c30c)=>{if(!_0x25c30c&&_0x3bb4f6[_0x2ab7('0x62')])for(const _0x1d14a5 of _0x3bb4f6){const {id:_0x90ae73}=ot(_0x1d14a5);_0x3bb4f6['delete'](_0x1d14a5),_0x41d863[_0x2ab7('0x30')][_0x2ab7('0x50')][_0x2ab7('0x20')](_0x1d14a5)&&this[_0x2ab7('0x13')](_0x1d14a5,_0x90ae73);}}),this['listenTo'](_0x41d863[_0x2ab7('0x30')][_0x2ab7('0xa')],'change',(_0x1146c2,_0x3daaea)=>{for(const {name:_0x32fd91,data:{newRange:_0x5013c9}}of _0x41d863[_0x2ab7('0x30')][_0x2ab7('0xa')]['differ'][_0x2ab7('0x48')]()){const {group:_0x16a779,id:_0x4e666e}=ot(_0x32fd91);if(_0x2ab7('0x34')!==_0x16a779)continue;const _0x39d09e=_0x160ffb[_0x2ab7('0xf')](_0x4e666e),_0x1577f9=this[_0x2ab7('0x49')](_0x4e666e);_0x39d09e&&(_0x39d09e['_hasTargetInContent']||_0x41d863[_0x2ab7('0x56')][_0x2ab7('0x2f')]['once'](_0x2ab7('0x18'),()=>{const _0x2d3f02=_0x41d863[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x370361),_0x582f8c=_0x160ffb[_0x2ab7('0x2e')][_0x2ab7('0x20')](_0x39d09e)[_0x2ab7('0x2f')];_0x2d3f02['getByInnerView'](_0x582f8c)[_0x2ab7('0x1e')]();},{'priority':_0x2ab7('0x19')}),_0x39d09e[_0x2ab7('0x16')]=_0x1577f9||!!_0x5013c9),_0x5013c9||(_0x294916[_0x2ab7('0x28')](_0x32fd91),_0x3bb4f6[_0x2ab7('0x3e')](_0x32fd91));}if(_0x3daaea[_0x2ab7('0x74')])for(const _0x263326 of _0x294916){const {id:_0x44ac13}=ot(_0x263326),_0x452624=_0x160ffb['getCommentThread'](_0x44ac13),_0x3834e7=this[_0x2ab7('0x49')](_0x44ac13);_0x3bb4f6[_0x2ab7('0x3e')](_0x263326),!_0x452624||_0x3834e7||_0x452624[_0x2ab7('0x6c')]||_0x452624[_0x2ab7('0x79')](new Date());}_0x294916[_0x2ab7('0xd')]();});}[_0x2ab7('0x3b')](_0x318290){const _0x5644c2=this[_0x2ab7('0x6e')],_0x3e61c7=this[_0x2ab7('0x7a')](_0x318290);return _0x411292(_0x5644c2[_0x2ab7('0x56')],_0x3e61c7);}[_0x2ab7('0x39')](_0x3c5a6a){const _0x1562cd=this[_0x2ab7('0x7a')](_0x3c5a6a);let _0x10d960='',_0x583a1c=!0x1;for(const _0x53164d of _0x1562cd){const _0x2f1f5f=_0x53164d['getRange']();for(const _0x48b80c of Array[_0x2ab7('0x77')](_0x2f1f5f['getItems']()))_0x48b80c['is'](_0x2ab7('0x7'))?(_0x10d960&&_0x583a1c&&(_0x10d960+='\x20',_0x583a1c=!0x1),_0x10d960+=_0x48b80c['data']):_0x583a1c=!0x0;_0x583a1c=!0x0;}return _0x10d960[_0x2ab7('0x43')](0x0,0x96);}['_attachMarkerToThread'](_0x923d12,_0x20cf3d){const _0x48d1e3=this[_0x2ab7('0x6e')],_0x19412e=_0x48d1e3[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553);let _0x327cdc=_0x19412e[_0x2ab7('0xf')](_0x20cf3d);const _0x442f97=_0x48d1e3[_0x2ab7('0x40')][_0x2ab7('0x20')]('collaboration.channelId'),_0x1f3645=_0x48d1e3[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x118948);if(_0x327cdc&&(_0x327cdc[_0x2ab7('0x6c')]&&_0x327cdc['setUnlinkedAt'](null),_0x327cdc['isAttached']))return _0x327cdc;return!this[_0x2ab7('0x7a')](_0x20cf3d)[0x0][_0x2ab7('0x68')]?_0x48d1e3[_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x29')]('render',()=>{if(_0x19412e[_0x2ab7('0xf')](_0x20cf3d))return;const _0x5cd485=_0x48d1e3[_0x2ab7('0x47')]['get'](_0x370361);_0x327cdc=_0x19412e[_0x2ab7('0x51')]({'channelId':_0x442f97,'threadId':_0x20cf3d,'target':()=>this[_0x2ab7('0x3b')](_0x20cf3d),'context':{'type':_0x2ab7('0x1b'),'value':this[_0x2ab7('0x39')](_0x20cf3d)}});const _0x2ecc59=_0x19412e[_0x2ab7('0x2e')][_0x2ab7('0x20')](_0x327cdc)[_0x2ab7('0x2f')],_0x22f1dc=_0x5cd485[_0x2ab7('0x15')](_0x2ecc59);_0x22f1dc&&_0x1f3645[_0x2ab7('0x6b')](_0x22f1dc);},{'priority':'low'}):_0x19412e[_0x2ab7('0x2d')]({'channelId':_0x442f97,'threadId':_0x20cf3d})[_0x2ab7('0x69')](_0x192f4a=>{if(_0x2ab7('0x5')!==_0x48d1e3[_0x2ab7('0x5f')]){if(_0x327cdc=_0x192f4a,_0x327cdc&&!_0x327cdc[_0x2ab7('0x4a')]){const _0x3cd722=_0x327cdc[_0x2ab7('0x3a')](()=>this[_0x2ab7('0x3b')](_0x20cf3d));_0x1f3645[_0x2ab7('0x6b')](_0x3cd722),_0x327cdc[_0x2ab7('0x3')]&&this[_0x2ab7('0x32')](_0x20cf3d);}else{if(!_0x327cdc){const _0x1e70ae=this[_0x2ab7('0x7a')](_0x20cf3d);_0x48d1e3['model'][_0x2ab7('0x14')](_0x26e382=>{for(const _0x32faae of _0x1e70ae)_0x26e382[_0x2ab7('0x76')](_0x32faae);});}}}}),_0x327cdc;}[_0x2ab7('0x13')](_0x2d4ee3,_0x48585d){const _0x373dc8=this['_attachMarkerToThread'](_0x2d4ee3,_0x48585d);_0x373dc8&&!_0x373dc8[_0x2ab7('0x22')]&&_0x373dc8['setContext']({'type':_0x2ab7('0x1b'),'value':this[_0x2ab7('0x39')](_0x48585d)});}[_0x2ab7('0x58')](){const _0xaab480=this[_0x2ab7('0x6e')];_0x2e7497(_0xaab480[_0x2ab7('0x30')],({left:_0x388666,entered:_0x26b2ad})=>{const _0x494e90=[];for(const _0x38b39d of _0x388666)if(rt(_0x38b39d)){_0x494e90[_0x2ab7('0x38')](_0x4409ff(_0xaab480['locale'],_0x2ab7('0x70')));break;}for(const _0x56c7e8 of _0x26b2ad)if(rt(_0x56c7e8)){_0x494e90[_0x2ab7('0x38')](_0x4409ff(_0xaab480['locale'],_0x2ab7('0xb')));break;}_0x494e90[_0x2ab7('0x1a')]&&_0xaab480['ui']['ariaLiveAnnouncer'][_0x2ab7('0x1d')](_0x2ab7('0x37'),_0x494e90[_0x2ab7('0x6a')]('\x20'));});}}function tt(_0x359dfc,_0x5a94c4){return _0x5a94c4?_0x359dfc+':'+_0x5a94c4:_0x359dfc;}function ot(_0x409bcd){const _0x9c8e6b=_0x409bcd['split'](':');return{'group':_0x9c8e6b[0x0],'id':_0x9c8e6b[0x1],'part':_0x9c8e6b[0x2]};}function et(_0x421865,_0x1d1e50){const _0x252833=_0x1d1e50[_0x2ab7('0x7b')],_0x2b1a3e=_0x1d1e50[_0x2ab7('0x3d')](_0x421865[_0x2ab7('0x61')]);for(const _0x47dcac of _0x421865[_0x2ab7('0x63')]()){const {type:_0x448740,item:_0x5b5223,nextPosition:_0x10e204}=_0x47dcac;if(_0x2ab7('0x1b')===_0x448740||_0x252833[_0x2ab7('0x3c')](_0x5b5223)){const _0x1ff12c=_0x1d1e50['createPositionBefore'](_0x5b5223);_0x2b1a3e[_0x2ab7('0x64')]&&(_0x2b1a3e['start']=_0x1ff12c),_0x2b1a3e[_0x2ab7('0x36')]=_0x10e204;}}return _0x2b1a3e;}function rt(_0x5ea85c){return _0x2ab7('0x34')===ot(_0x5ea85c[_0x2ab7('0x33')])[_0x2ab7('0x4b')];}
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
* @module comments/comments/commentsrepository
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import { Collection } from 'ckeditor5/src/utils';
|
|
11
|
-
import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
12
|
-
import CommentThreadController from './ui/commentthreadcontroller';
|
|
9
|
+
import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
12
|
+
import CommentThreadController from './ui/commentthreadcontroller.js';
|
|
13
13
|
import '../../theme/comment.css';
|
|
14
14
|
import '../../theme/commentthread.css';
|
|
15
15
|
import '../../theme/commentinput.css';
|
|
16
|
-
import Annotation, { type AnnotationTarget } from '../annotations/annotation';
|
|
17
|
-
import Annotations from '../annotations/annotations';
|
|
18
|
-
import type BaseCommentThreadView from './ui/view/basecommentthreadview';
|
|
16
|
+
import Annotation, { type AnnotationTarget } from '../annotations/annotation.js';
|
|
17
|
+
import Annotations from '../annotations/annotations.js';
|
|
18
|
+
import type BaseCommentThreadView from './ui/view/basecommentthreadview.js';
|
|
19
19
|
/**
|
|
20
20
|
* Stores the list of {@link module:comments/comments/commentsrepository~CommentThread}
|
|
21
21
|
* and provides event-driven API for managing them. It is also responsible for using the comments adapter
|
|
@@ -269,8 +269,8 @@ interface CommentPermissionsConfig {
|
|
|
269
269
|
resolve: boolean;
|
|
270
270
|
}
|
|
271
271
|
declare const CommentThread_base: {
|
|
272
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
273
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
272
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
273
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
274
274
|
};
|
|
275
275
|
/**
|
|
276
276
|
* Comment thread representation.
|
|
@@ -485,8 +485,8 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
485
485
|
toJSON(): CommentThreadDataJSON;
|
|
486
486
|
}
|
|
487
487
|
declare const Comment_base: {
|
|
488
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
489
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
488
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
489
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
490
490
|
};
|
|
491
491
|
/**
|
|
492
492
|
* Single comment representation. A part of a {@link module:comments/comments/commentsrepository~CommentThread commentThread}.
|