@ckeditor/ckeditor5-comments 0.0.0-nightly-20240125.0 → 0.0.0-nightly-20240127.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 +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +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
|
|
23
|
+
const _0x6720=['focusTracker','ck-annotation-wrapper--active','div','setTemplate','type','length','isActive','detach','content','attach','_mutationObserver','isDirty','ck-annotation-wrapper','clear','bindTemplate','mainView','focus','destroy','_updateHeight','render','Esc','set','keystrokes','createCollection','fire','height','targetRect','clientHeight','element'];(function(_0x4b3d2a,_0x672015){const _0x1a4091=function(_0x13aed5){while(--_0x13aed5){_0x4b3d2a['push'](_0x4b3d2a['shift']());}};_0x1a4091(++_0x672015);}(_0x6720,0x1a0));const _0x1a40=function(_0x4b3d2a,_0x672015){_0x4b3d2a=_0x4b3d2a-0x0;let _0x1a4091=_0x6720[_0x4b3d2a];return _0x1a4091;};import{View as _0x5292b2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5c6cad,KeystrokeHandler as _0x475c7d,uid as _0x167934}from'ckeditor5/src/utils.js';import _0x4f811d from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x5292b2{constructor(_0x59deaf,_0x424bf1){super(_0x59deaf),this['id']=_0x167934(),this[_0x1a40('0x13')]=new _0x5c6cad(),this['keystrokes']=new _0x475c7d(),this['keystrokes'][_0x1a40('0xb')](_0x1a40('0xa'),(_0xf393cd,_0x52310a)=>this[_0x1a40('0xe')](_0x1a40('0xa'),_0x52310a)),this['set'](_0x1a40('0x10'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1a40('0xf'),0x0),this['set'](_0x1a40('0x19'),!0x1),this[_0x1a40('0xb')](_0x1a40('0x1'),!0x1),this[_0x1a40('0xb')](_0x1a40('0x18'),0x0),this[_0x1a40('0xb')](_0x1a40('0x17'),''),this[_0x1a40('0x0')]=_0x4f811d(()=>this['_updateHeight']()),this[_0x1a40('0x1b')]=this[_0x1a40('0xd')](),this[_0x1a40('0x1b')]['add'](_0x424bf1),this[_0x1a40('0x5')]=_0x424bf1;const _0x365cb1=this[_0x1a40('0x4')];this[_0x1a40('0x16')]({'tag':_0x1a40('0x15'),'attributes':{'class':['ck',_0x1a40('0x2'),'ck-rounded-corners',_0x365cb1['if'](_0x1a40('0x19'),_0x1a40('0x14'))],'tabindex':-0x1},'children':this['content']});}[_0x1a40('0x9')](){super[_0x1a40('0x9')](),this['focusTracker']['add'](this['element']),this[_0x1a40('0xc')]['listenTo'](this[_0x1a40('0x12')]),this[_0x1a40('0x0')][_0x1a40('0x1c')](this[_0x1a40('0x12')]);}[_0x1a40('0x7')](){this[_0x1a40('0x1b')][_0x1a40('0x3')](),this[_0x1a40('0xc')]['destroy'](),this[_0x1a40('0x13')]['destroy'](),this['_mutationObserver'][_0x1a40('0x1a')](),super['destroy']();}[_0x1a40('0x6')](){this[_0x1a40('0x12')][_0x1a40('0x6')]();}[_0x1a40('0x8')](){const _0x4ec6c5=this[_0x1a40('0x12')][_0x1a40('0x11')];_0x4ec6c5&&(this[_0x1a40('0xf')]=_0x4ec6c5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x396c=['height','ck-sidebar-item--no-animation','updateHeight','top','render','bindTemplate','content','_mutationObserver','set','ck-sidebar-item','isAnimationDisabled','element','clear','createCollection','attach','destroy','clientHeight','setTemplate','bottom','div'];(function(_0x4ab21e,_0x396c8d){const _0x5aa284=function(_0x3d38b3){while(--_0x3d38b3){_0x4ab21e['push'](_0x4ab21e['shift']());}};_0x5aa284(++_0x396c8d);}(_0x396c,0x19e));const _0x5aa2=function(_0x4ab21e,_0x396c8d){_0x4ab21e=_0x4ab21e-0x0;let _0x5aa284=_0x396c[_0x4ab21e];return _0x5aa284;};import{View as _0x48b199}from'ckeditor5/src/ui.js';import{toUnit as _0x8efbec}from'ckeditor5/src/utils.js';import _0x5c59c9 from'../../utils/createmutationobserver.js';const Ht=_0x8efbec('px');export default class C extends _0x48b199{constructor(_0x1074d8){super(_0x1074d8),this[_0x5aa2('0xe')](_0x5aa2('0x9'),0x0),this[_0x5aa2('0xe')](_0x5aa2('0x6'),0x0),this['bind'](_0x5aa2('0x4'))['to'](this,_0x5aa2('0x9'),this,_0x5aa2('0x6'),(_0x5efabe,_0xccd4ad)=>_0x5efabe+_0xccd4ad),this[_0x5aa2('0xe')](_0x5aa2('0x10'),!0x1),this[_0x5aa2('0xd')]=_0x5c59c9(()=>this[_0x5aa2('0x8')]()),this['_targetTop']=null,this['content']=this[_0x5aa2('0x13')]();const _0x2cbf33=this[_0x5aa2('0xb')];this[_0x5aa2('0x3')]({'tag':_0x5aa2('0x5'),'attributes':{'class':[_0x5aa2('0xf'),_0x2cbf33['to'](_0x5aa2('0x10'),_0x59d18c=>_0x59d18c?_0x5aa2('0x7'):'')],'style':{'top':_0x2cbf33['to']('top',_0x5e0637=>Ht(_0x5e0637))}},'children':this[_0x5aa2('0xc')]});}[_0x5aa2('0xa')](){super[_0x5aa2('0xa')](),this[_0x5aa2('0xd')][_0x5aa2('0x0')](this[_0x5aa2('0x11')]);}[_0x5aa2('0x8')](){const _0x56c958=this[_0x5aa2('0x11')][_0x5aa2('0x2')];_0x56c958&&(this['height']=_0x56c958);}['destroy'](){this[_0x5aa2('0xc')][_0x5aa2('0x12')](),this[_0x5aa2('0xd')]['detach'](),super[_0x5aa2('0x1')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36e3=['ck-reset','setTemplate','list','createCollection','set','class','minHeight','number','ck-sidebar'];(function(_0x4573ce,_0x36e311){const _0x2f965c=function(_0x453090){while(--_0x453090){_0x4573ce['push'](_0x4573ce['shift']());}};_0x2f965c(++_0x36e311);}(_0x36e3,0x188));const _0x2f96=function(_0x4573ce,_0x36e311){_0x4573ce=_0x4573ce-0x0;let _0x2f965c=_0x36e3[_0x4573ce];return _0x2f965c;};import{View as _0x4e6ad3}from'ckeditor5/src/ui.js';import{toUnit as _0x45a073}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x45a073('px');export default class T extends _0x4e6ad3{constructor(_0x2763a7){super(_0x2763a7);const _0x2bf3e3=this['bindTemplate'];this[_0x2f96('0x8')](_0x2f96('0x1'),0x0),this['set'](_0x2f96('0x0'),''),this[_0x2f96('0x6')]=this[_0x2f96('0x7')](),this[_0x2f96('0x5')]({'tag':'div','attributes':{'class':['ck',_0x2f96('0x3'),_0x2f96('0x4'),_0x2bf3e3['to'](_0x2f96('0x0'))],'style':{'minHeight':_0x2bf3e3['to']('minHeight',_0x538d2b=>_0x2f96('0x2')==typeof _0x538d2b?Ht(_0x538d2b+0xa):null)}},'children':this[_0x2f96('0x6')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a0b=['has','EditorAnnotations','change:container','widesidebar-attach-already-attached','ck-sidebar--wide','init','WideSidebar','from','attach','listenTo','_destroyEditorAnnotationsIntegration','focus','add','get','annotations','_refreshPositioningDebounced','pluginName','ready','_activeAnnotation','off','getOrderedSelectedAnnotations','widesidebar-detach-not-attached','register','isAttached','remove','setActiveAnnotation','high','plugins','editors','_editorAnnotations','context','refresh','addAnnotation','addEventListener','cancel','removeEventListener','activeAnnotation','hasDomSelection','stopListening','blur','refreshPositioning','detach','updateTargetRect','rearrange','wideSidebar','_integrateWithEditorAnnotations','_attachToContainer','resize','switchTo'];(function(_0x258cbf,_0x1a0b3e){const _0x34ed8b=function(_0xb337e7){while(--_0xb337e7){_0x258cbf['push'](_0x258cbf['shift']());}};_0x34ed8b(++_0x1a0b3e);}(_0x1a0b,0x101));const _0x34ed=function(_0x258cbf,_0x1a0b3e){_0x258cbf=_0x258cbf-0x0;let _0x34ed8b=_0x1a0b[_0x258cbf];return _0x34ed8b;};import{ContextPlugin as _0x3d3ad6,Context as _0x700fef}from'ckeditor5/src/core.js';import _0x29cb92 from'./annotationsuis.js';import _0x9890c7 from'./sidebar.js';import{CKEditorError as _0x32ae72,Collection as _0x1cc488}from'ckeditor5/src/utils.js';import{debounce as _0x3d3168}from'lodash-es';import _0x37ebb0 from'./editorannotations.js';export default class n extends _0x3d3ad6{static get['requires'](){return[_0x9890c7,_0x29cb92];}static get[_0x34ed('0x4')](){return _0x34ed('0x2b');}constructor(_0x333c9c){super(_0x333c9c),this[_0x34ed('0xb')]=!0x1,this['set'](_0x34ed('0x18'),null),this[_0x34ed('0x2')]=null,this[_0x34ed('0x11')]=new _0x1cc488(),this['_refreshPositioningDebounced']=_0x3d3168(()=>{this[_0x34ed('0x2')][_0x34ed('0x1c')]();},0xfa,{'leading':!0x1});}[_0x34ed('0x2a')](){const _0xa289e9=this[_0x34ed('0x12')][_0x34ed('0xf')][_0x34ed('0x1')](_0x29cb92),_0x101533=this[_0x34ed('0x12')][_0x34ed('0xf')][_0x34ed('0x1')](_0x9890c7);_0xa289e9[_0x34ed('0xa')](_0x34ed('0x20'),this),_0x101533['container']&&_0xa289e9[_0x34ed('0x24')](_0x34ed('0x20'));}[_0x34ed('0xd')](_0x4155f4){if(_0x4155f4===this[_0x34ed('0x18')])return;const _0x38c563=this[_0x34ed('0x12')]['plugins']['get'](_0x9890c7);_0x38c563[_0x34ed('0x6')]=_0x4155f4;const _0x50c19f=this[_0x34ed('0x18')];this[_0x34ed('0x18')]=_0x4155f4,_0x38c563[_0x34ed('0x13')]({'blurredAnnotation':_0x50c19f,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0xdd6587){this[_0x34ed('0x2')]=_0xdd6587;const _0x38041e=this['context'][_0x34ed('0xf')][_0x34ed('0x1')](_0x9890c7);if(_0x38041e['_annotations']=_0xdd6587,this[_0x34ed('0xb')])throw new _0x32ae72(_0x34ed('0x28'),this);this[_0x34ed('0xb')]=!0x0,this[_0x34ed('0x2e')](_0x38041e,'set:container',()=>{this[_0x34ed('0x1d')](),this[_0x34ed('0x2e')](_0x38041e,_0x34ed('0x27'),_0x147582=>{_0x147582[_0x34ed('0x7')](),this[_0x34ed('0x2d')](_0xdd6587);});}),_0x38041e[_0x34ed('0x22')]({'viewClass':_0x34ed('0x29')});const _0x40dc28=_0x1ceda6=>{_0x1ceda6[_0x34ed('0x1e')](),_0x38041e[_0x34ed('0x14')](_0x1ceda6);};for(const _0x4595dc of _0xdd6587)_0x40dc28(_0x4595dc);this[_0x34ed('0x2e')](_0xdd6587,_0x34ed('0x0'),(_0x3d0cee,_0x316550)=>{_0x40dc28(_0x316550);}),this[_0x34ed('0x2e')](_0xdd6587,_0x34ed('0xc'),(_0x451453,_0x3ec70a,_0x2f86e5)=>{_0x38041e[_0x34ed('0x1f')]({'removedAnnotation':_0x3ec70a,'previousAnnotation':_0xdd6587[_0x34ed('0x1')](_0x2f86e5-0x1),'nextAnnotation':_0xdd6587['get'](_0x2f86e5+0x1)}),_0x3ec70a===this[_0x34ed('0x18')]&&this[_0x34ed('0xd')](null);},{'priority':_0x34ed('0xe')}),this['listenTo'](_0xdd6587,_0x34ed('0x30'),(_0x52178a,_0x5b4ae3)=>{this[_0x34ed('0xd')](_0x5b4ae3);}),this[_0x34ed('0x2e')](_0xdd6587,_0x34ed('0x1b'),()=>{this['setActiveAnnotation'](null);});const _0x40c904=this['context']instanceof _0x700fef?this[_0x34ed('0x12')][_0x34ed('0x10')]:new _0x1cc488([this['context']]);for(const _0x30606d of _0x40c904)this[_0x34ed('0x21')](_0x30606d);this[_0x34ed('0x2e')](_0x40c904,_0x34ed('0x0'),(_0x515a20,_0x154cbb)=>{this[_0x34ed('0x2e')](_0x154cbb,_0x34ed('0x5'),()=>{this[_0x34ed('0x21')](_0x154cbb);});}),this[_0x34ed('0x2e')](_0x40c904,'remove',(_0x5477df,_0x445444)=>{_0x445444[_0x34ed('0xf')][_0x34ed('0x25')](_0x34ed('0x26'))&&this[_0x34ed('0x2f')](_0x445444[_0x34ed('0xf')][_0x34ed('0x1')]('EditorAnnotations'));}),window[_0x34ed('0x15')]('resize',this[_0x34ed('0x3')]),this[_0x34ed('0x2')][_0x34ed('0x1c')]();}[_0x34ed('0x1d')](){if(!this[_0x34ed('0xb')])throw new _0x32ae72(_0x34ed('0x9'),this);this[_0x34ed('0xd')](null);const _0x131022=this[_0x34ed('0x12')][_0x34ed('0xf')]['get'](_0x9890c7);_0x131022['_detachFromContainer'](this[_0x34ed('0x2')]),this[_0x34ed('0x1a')](_0x131022),this[_0x34ed('0x1a')](this[_0x34ed('0x2')]),this[_0x34ed('0x12')]instanceof _0x700fef&&this[_0x34ed('0x1a')](this[_0x34ed('0x12')][_0x34ed('0x10')]);for(const _0x2c2890 of Array[_0x34ed('0x2c')](this[_0x34ed('0x11')]))this['_destroyEditorAnnotationsIntegration'](_0x2c2890);window[_0x34ed('0x17')](_0x34ed('0x23'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x34ed('0x16')](),this[_0x34ed('0x18')]=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this[_0x34ed('0x1d')]();}['_integrateWithEditorAnnotations'](_0x48a5ce){const _0x425561=_0x48a5ce['plugins'][_0x34ed('0x1')](_0x37ebb0);if(!_0x425561)return;const _0x476275=()=>{const _0x3be520=_0x425561[_0x34ed('0x8')]({'annotations':this['annotations'],'activeAnnotation':this[_0x34ed('0x18')]});this[_0x34ed('0xd')](_0x3be520[0x0]||null);};this['listenTo'](_0x425561,_0x34ed('0x13'),_0x476275),this['listenTo'](_0x425561,_0x34ed('0x1b'),(_0x42465e,{isAnnotationTracked:_0x49df71})=>{this[_0x34ed('0x18')]&&_0x49df71(this[_0x34ed('0x18')])&&this[_0x34ed('0xd')](null);}),this[_0x34ed('0x2e')](_0x425561,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x34ed('0x2e')](this['annotations'],'blur',_0x3dfe9b=>{_0x425561[_0x34ed('0x19')]()&&(_0x476275(),_0x3dfe9b['stop']());},{'priority':_0x34ed('0xe')}),this[_0x34ed('0x11')]['add'](_0x425561);}[_0x34ed('0x2f')](_0x200796){this[_0x34ed('0x1a')](_0x200796),this[_0x34ed('0x11')][_0x34ed('0xc')](_0x200796);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a12=['isObject','getRanges','$textProxy','push','comment:','_trimToContent','substr','selection','editor','element','item','_itemIsContent','document','isEnabled','model','refresh','_hasContent','schema','backward','tableCell','getLastMatchingPosition','change','addMarker','start'];(function(_0x1a5f17,_0x3a1269){const _0x2391ac=function(_0x5e1186){while(--_0x5e1186){_0x1a5f17['push'](_0x1a5f17['shift']());}};_0x2391ac(++_0x3a1269);}(_0x3a12,0xd2));const _0x2391=function(_0x1a5f17,_0x3a1269){_0x1a5f17=_0x1a5f17-0x0;let _0x2391ac=_0x3a12[_0x1a5f17];return _0x2391ac;};import{Command as _0x20f61c}from'ckeditor5/src/core.js';import{uid as _0x2a6116}from'ckeditor5/src/utils.js';export default class G extends _0x20f61c{[_0x2391('0x15')](){const _0x54388b=this[_0x2391('0xe')][_0x2391('0x14')][_0x2391('0x12')][_0x2391('0xd')];for(const _0x5c07ba of _0x54388b[_0x2391('0x7')]())if(this[_0x2391('0x16')](_0x5c07ba))return void(this[_0x2391('0x13')]=!0x0);this[_0x2391('0x13')]=!0x1;}['execute']({threadId:_0x16133d=_0x2a6116()}={}){const _0x4cf76d=this[_0x2391('0xe')][_0x2391('0x14')],_0xd0490f=[];for(const _0x3dd368 of _0x4cf76d[_0x2391('0x12')][_0x2391('0xd')][_0x2391('0x7')]())this[_0x2391('0x16')](_0x3dd368)&&_0xd0490f[_0x2391('0x9')](this['_trimToContent'](_0x3dd368));_0x4cf76d[_0x2391('0x3')](_0x32062a=>{for(const _0x446ba0 of _0xd0490f){const _0x3827c7=_0x2a6116()[_0x2391('0xc')](0x1,0x5),_0x29c3dd=_0x2391('0xa')+_0x16133d+':'+_0x3827c7;_0x32062a[_0x2391('0x4')](_0x29c3dd,{'range':_0x446ba0,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2391('0x16')](_0x2505c){for(const _0x34c4a0 of _0x2505c['getItems']())if(this[_0x2391('0x11')](_0x34c4a0))return!0x0;return!0x1;}[_0x2391('0x11')](_0x296221){return _0x296221['is'](_0x2391('0x8'))||this[_0x2391('0xe')][_0x2391('0x14')][_0x2391('0x17')][_0x2391('0x6')](_0x296221)&&!_0x296221['is'](_0x2391('0xf'),_0x2391('0x1'));}[_0x2391('0xb')](_0x4ddc9f){const _0x4c8da5=_0x499f88=>!this[_0x2391('0x11')](_0x499f88[_0x2391('0x10')]),_0x8f27da=_0x4ddc9f[_0x2391('0x5')][_0x2391('0x2')](_0x4c8da5),_0x9d38b=_0x4ddc9f['end'][_0x2391('0x2')](_0x4c8da5,{'direction':_0x2391('0x0')});return this[_0x2391('0xe')][_0x2391('0x14')]['createRange'](_0x8f27da,_0x9d38b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2601=['init','stopListening','collection','remove','archivedThreads','has','_calculatePosition','getCommentThread','listenTo','isActive','add','CommentsArchive','length','activate','highest','addCommentThread','plugins','archivedAt','get','change:archivedAt','removeCommentThread','findIndex'];(function(_0x13463c,_0x26014d){const _0x99039b=function(_0x1db047){while(--_0x1db047){_0x13463c['push'](_0x13463c['shift']());}};_0x99039b(++_0x26014d);}(_0x2601,0xb5));const _0x9903=function(_0x13463c,_0x26014d){_0x13463c=_0x13463c-0x0;let _0x99039b=_0x2601[_0x13463c];return _0x99039b;};import{ContextPlugin as _0xb10bcb}from'ckeditor5/src/core.js';import{Collection as _0x1fc0c2}from'ckeditor5/src/utils.js';import _0x4c4e64 from'./commentsrepository.js';import _0x31a404 from'../annotations/annotations.js';export default class p extends _0xb10bcb{static get['pluginName'](){return _0x9903('0x6');}static get['requires'](){return[_0x4c4e64,_0x31a404];}constructor(_0x20f27d){super(_0x20f27d),this[_0x9903('0x15')]=new _0x1fc0c2();}[_0x9903('0x11')](){const _0x1aec38=this['context'],_0x3a8928=_0x1aec38['plugins']['get'](_0x4c4e64),_0x447928=_0x1aec38[_0x9903('0xb')][_0x9903('0xd')](_0x31a404);this[_0x9903('0x3')](_0x3a8928,_0x9903('0xa'),(_0x456199,{threadId:_0x370347})=>{const _0x7a2dff=_0x3a8928[_0x9903('0x2')](_0x370347);_0x7a2dff[_0x9903('0xc')]&&this[_0x9903('0x15')][_0x9903('0x5')](_0x7a2dff,this[_0x9903('0x1')](_0x7a2dff[_0x9903('0xc')])),this['listenTo'](_0x7a2dff,_0x9903('0xe'),(_0x61314,_0x2e5dd4,_0x34728c)=>{_0x34728c?this[_0x9903('0x15')][_0x9903('0x0')](_0x7a2dff)||this[_0x9903('0x15')][_0x9903('0x5')](_0x7a2dff,this[_0x9903('0x1')](_0x7a2dff[_0x9903('0xc')])):this[_0x9903('0x15')][_0x9903('0x0')](_0x7a2dff)&&this[_0x9903('0x15')][_0x9903('0x14')](_0x7a2dff);});}),this[_0x9903('0x3')](_0x3a8928,_0x9903('0xf'),(_0x4527d5,{threadId:_0x547459})=>{const _0x2e776b=_0x3a8928['getCommentThread'](_0x547459);this[_0x9903('0x12')](_0x2e776b),this[_0x9903('0x15')]['has'](_0x2e776b)&&this['archivedThreads'][_0x9903('0x14')](_0x2e776b);},{'priority':_0x9903('0x9')}),this[_0x9903('0x3')](_0x447928[_0x9903('0x13')],'focus',(_0x31345c,_0x5c6dc2)=>{_0x5c6dc2[_0x9903('0x4')]=!0x0,_0x447928[_0x9903('0x8')](_0x5c6dc2);});}[_0x9903('0x1')](_0x3a3f7b){const _0xdc67a3=[...this[_0x9903('0x15')]][_0x9903('0x10')](_0xde2255=>_0xde2255[_0x9903('0xc')]<_0x3a3f7b);return _0xdc67a3>-0x1?_0xdc67a3:this['archivedThreads'][_0x9903('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x156a=['config','_visibleAnnotations','archivedThreads','mainView','locale','ck-body','view','find','channelId','classList','stopListening','innerView','panelView','change:isOpen','archivedAt','contains','buttonView','listenTo','_pendingThreads','annotationViews','_handleAnnotationFocusableElements','editor','ck-comments-archive-dropdown','_threadToController','COMMENTS_ARCHIVE','splice','focusableElements','plugins','requires','indexOf','pluginName','remove','CommentsRepository','CommentsArchiveUI','_createArchiveUIDropdown','children','collaboration.channelId','init','getByInnerView','_calculatePosition','push','position','commentsArchiveView','extendTemplate','focusTracker','Annotations','collection','commentsArchive','get','set','add','filter'];(function(_0x2c33c5,_0x156af7){const _0x42db2e=function(_0x36b2cc){while(--_0x36b2cc){_0x2c33c5['push'](_0x2c33c5['shift']());}};_0x42db2e(++_0x156af7);}(_0x156a,0x11d));const _0x42db=function(_0x2c33c5,_0x156af7){_0x2c33c5=_0x2c33c5-0x0;let _0x42db2e=_0x156a[_0x2c33c5];return _0x42db2e;};import'../../theme/commentsarchive.css';import{Plugin as _0x308da3}from'ckeditor5/src/core.js';import{createDropdown as _0x4cb310,ViewCollection as _0x5af459}from'ckeditor5/src/ui.js';import _0x3b54a2 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2f6835}from'../utils/common-translations.js';import _0x455c00 from'./ui/view/commentsarchiveview.js';import _0x4d6c62 from'./commentsarchive.js';export default class a extends _0x308da3{static get[_0x42db('0x5')](){return _0x42db('0x8');}static get[_0x42db('0x3')](){return[_0x4d6c62];}constructor(_0x216ab){super(_0x216ab),this[_0x42db('0x2e')]=new _0x5af459(),this['_pendingThreads']=[];}[_0x42db('0xc')](){this[_0x42db('0x30')]['ui']['componentFactory'][_0x42db('0x19')](_0x42db('0x16'),()=>this[_0x42db('0x9')]());const _0x337871=this[_0x42db('0x30')][_0x42db('0x2')][_0x42db('0x17')](_0x4d6c62),_0x39cfd6=this[_0x42db('0x30')][_0x42db('0x2')][_0x42db('0x17')](_0x42db('0x14')),_0x1e21dc=this[_0x42db('0x30')][_0x42db('0x2')]['get'](_0x42db('0x7'));this[_0x42db('0x2c')](_0x337871[_0x42db('0x1d')],_0x42db('0x19'),(_0xe5c1be,_0x59cbd1)=>{const _0x3f4517=this['editor'][_0x42db('0x1b')][_0x42db('0x17')](_0x42db('0xb'));if(!_0x3f4517||_0x59cbd1[_0x42db('0x23')]===_0x3f4517){const _0x212c68=this[_0x42db('0xe')](_0x59cbd1[_0x42db('0x29')]),_0x4bc2c0=_0x1e21dc[_0x42db('0x32')][_0x42db('0x17')](_0x59cbd1);if(!_0x4bc2c0)return void this[_0x42db('0x2d')][_0x42db('0xf')]({'thread':_0x59cbd1,'position':_0x212c68});const _0x4c8409=_0x39cfd6['getByInnerView'](_0x4bc2c0[_0x42db('0x21')]);_0x4c8409['isVisible']&&_0x39cfd6[_0x42db('0x1c')]['remove'](_0x4c8409),this['annotationViews']['add'](_0x4c8409[_0x42db('0x21')],_0x212c68);}}),this['listenTo'](_0x39cfd6[_0x42db('0x15')],_0x42db('0x19'),(_0x2af4e7,_0x129b8b)=>{const _0x18b289=this[_0x42db('0x2d')][_0x42db('0x22')](({thread:_0x2f8b22})=>{const _0x11e45d=_0x1e21dc['_threadToController'][_0x42db('0x17')](_0x2f8b22);return _0x11e45d&&_0x129b8b[_0x42db('0x26')]===_0x11e45d[_0x42db('0x21')];});_0x18b289&&(this['annotationViews']['add'](_0x129b8b[_0x42db('0x21')],_0x18b289[_0x42db('0x10')]),this['_pendingThreads'][_0x42db('0x0')](this[_0x42db('0x2d')][_0x42db('0x4')](_0x18b289),0x1));}),this[_0x42db('0x2c')](_0x337871[_0x42db('0x1d')],_0x42db('0x6'),(_0x291871,_0x4d4ec6)=>{const _0x3ac343=this['editor']['config'][_0x42db('0x17')](_0x42db('0xb'));if(!_0x3ac343||_0x4d4ec6[_0x42db('0x23')]===_0x3ac343){const _0x6f37ae=_0x1e21dc[_0x42db('0x32')][_0x42db('0x17')](_0x4d4ec6),_0x56f71c=_0x39cfd6[_0x42db('0xd')](_0x6f37ae[_0x42db('0x21')]);this[_0x42db('0x2e')]['remove'](_0x56f71c['view']),this[_0x42db('0x25')](_0x56f71c[_0x42db('0x1')]);}});}[_0x42db('0x2f')](_0x224a5c,_0xcf8495){for(const _0x592951 of _0xcf8495[_0x42db('0x1')])_0x592951['classList'][_0x42db('0x2a')](_0x42db('0x20'))&&_0x224a5c[_0x42db('0x13')]['add'](_0x592951);this['listenTo'](_0xcf8495[_0x42db('0x1')],'add',(_0x2029b8,_0x1f94cb)=>{_0x1f94cb['classList'][_0x42db('0x2a')](_0x42db('0x20'))&&_0x224a5c['focusTracker']['add'](_0x1f94cb);}),this[_0x42db('0x2c')](_0xcf8495[_0x42db('0x1')],_0x42db('0x6'),(_0x22fc69,_0x581d7a)=>{_0x581d7a[_0x42db('0x24')]['contains'](_0x42db('0x20'))&&_0x224a5c[_0x42db('0x13')][_0x42db('0x6')](_0x581d7a);});}[_0x42db('0xe')](_0x3d446e){const _0x363da4=this[_0x42db('0x30')][_0x42db('0x1b')][_0x42db('0x17')](_0x42db('0xb')),_0xbc4d5=[...this[_0x42db('0x30')][_0x42db('0x2')]['get'](_0x4d6c62)[_0x42db('0x1d')]][_0x42db('0x1a')](_0x17f1e0=>_0x17f1e0[_0x42db('0x23')]===_0x363da4)['findIndex'](_0x4f2e5f=>_0x4f2e5f[_0x42db('0x29')]<_0x3d446e);return _0xbc4d5>-0x1?_0xbc4d5-0x1:this[_0x42db('0x2e')]['length'];}['_createArchiveUIDropdown'](){const _0x3eaf32=this['editor'],_0x1e2cb6=this[_0x42db('0x30')][_0x42db('0x2')][_0x42db('0x17')](_0x42db('0x14')),_0x506619=_0x4cb310(_0x3eaf32['locale']);_0x506619[_0x42db('0x2b')][_0x42db('0x18')]({'icon':_0x3b54a2,'label':_0x2f6835(_0x3eaf32[_0x42db('0x1f')],_0x42db('0x33')),'tooltip':!0x0}),_0x506619['panelView'][_0x42db('0x12')]({'attributes':{'class':_0x42db('0x31')}}),_0x506619['on'](_0x42db('0x28'),(_0x1708bb,_0x11e185,_0x1c1fe7)=>{this[_0x42db('0x11')]||(this[_0x42db('0x11')]=new _0x455c00(_0x3eaf32[_0x42db('0x1f')],this[_0x42db('0x2e')])),_0x1c1fe7?_0x506619[_0x42db('0x27')]['children'][_0x42db('0x19')](this['commentsArchiveView']):_0x506619['panelView'][_0x42db('0xa')]['remove'](this[_0x42db('0x11')]);});for(const _0x399be1 of this[_0x42db('0x2e')]){const _0x24c494=_0x1e2cb6[_0x42db('0xd')](_0x399be1['mainView']);this[_0x42db('0x2f')](_0x506619,_0x24c494);}return _0x506619[_0x42db('0x2c')](this[_0x42db('0x2e')],_0x42db('0x19'),(_0x15cc77,_0x427609)=>{const _0xcde5e8=_0x1e2cb6[_0x42db('0xd')](_0x427609['mainView']);this[_0x42db('0x2f')](_0x506619,_0xcde5e8);}),_0x506619[_0x42db('0x2c')](this[_0x42db('0x2e')],'remove',(_0x329a8d,_0x2f0560)=>{const _0xfac99=_0x1e2cb6[_0x42db('0xd')](_0x2f0560[_0x42db('0x1e')]);for(const _0x514b31 of _0xfac99[_0x42db('0x1')])_0x514b31[_0x42db('0x24')][_0x42db('0x2a')](_0x42db('0x20'))&&_0x506619[_0x42db('0x13')]['remove'](_0x514b31);}),_0x506619;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x22e0=['scrollToThreadMarker','model','_attachArchivedThread','_reconvertMarkers','$marker','_attachMarkerToThread','ignoreResolvedComments','isThreadsLoadingPaused','enqueueChange','unlinkedAt','low','change:activeMarker','start','createElement','getItems','createPositionBefore','set','clear','join','markerToData','markerName','render','isAttached','markers','affectsData','add','isObject','requires','elementToElement','hasMarkerForId','listenTo','delete','differ','switchReadOnly','editing','refreshVisibility','setContext','getByInnerView','text','context','_initializeMarkerConverters','isEqual','managedUsingOperations','getCommentThread','getChangedMarkers','item','length','_handleMarkerAddAndRemove','for','commands','change','data','editor','addComment','substring','split','startsWith','dataToMarker','schema','_getTargetForId','change:isThreadsLoadingPaused','_hasTargetInContent','upcast','hasContent','activeMarker','isLocal','reopenCommentThread','init','registerPostFixer','size','comment','change:isReadOnly','rootName','_handleThreadMarker','consume','attachTo','conversion','ENTER_COMMENT_ANNOUNCEMENT','comment:','LEAVE_COMMENT_ANNOUNCEMENT','dataDowncast','registerAnnotation','pluginName','getAttribute','ready','reconvertMarker','$graveyard','setUnlinkedAt','once','getAllMarkersForId','newRange','openNewCommentThread','config','push','get','from','root','collaboration.channelId','getRange','ck-comment-marker--active','name','removeMarker','document','markerToHighlight','view','plugins','fetchCommentThread','focus','comments','locale','ck-comment-marker','announce','removeCommentThread','destroy','_getTextContext','getWalker','hasDomSelection','isResolved','_threadToController','resolveCommentThread','removeMarker:','consumable','_initAriaMarkerChangeAnnouncements'];(function(_0x5e8acd,_0x22e0d9){const _0x5661a4=function(_0x48f2e8){while(--_0x48f2e8){_0x5e8acd['push'](_0x5e8acd['shift']());}};_0x5661a4(++_0x22e0d9);}(_0x22e0,0x1f1));const _0x5661=function(_0x5e8acd,_0x22e0d9){_0x5e8acd=_0x5e8acd-0x0;let _0x5661a4=_0x22e0[_0x5e8acd];return _0x5661a4;};import{Plugin as _0x33c79e}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x5e03ea}from'ckeditor5/src/utils.js';import _0x108e0e from'./commentsrepository.js';import _0x12644b from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0xebbf0c,getAllMarkersDomElementsSorted as _0xd8920}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x387570 from'../annotations/editorannotations.js';import _0x45ab98 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x3b60b1 from'./integrations/importword.js';import _0x3f8e14 from'../annotations/annotations.js';import{getTranslation as _0x34934c}from'../utils/common-translations.js';export default class r extends _0x33c79e{static get[_0x5661('0x16')](){return[_0x108e0e,_0x387570,_0x45ab98,_0x3b60b1];}static get[_0x5661('0x4d')](){return'CommentsEditing';}constructor(_0x3e13bc){super(_0x3e13bc),this[_0x5661('0xb')]('isThreadsLoadingPaused',!0x0),_0x3e13bc[_0x5661('0x2e')][_0x5661('0x53')](_0x5661('0x4f'),()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on'](_0x5661('0x6'),(_0x160d42,_0x3b2366,_0x219fb4,_0x50e49a)=>{const _0x590e80=_0x219fb4?ot(_0x219fb4)['id']:null;if(_0x3e13bc[_0x5661('0x77')]['change'](()=>{if(_0x590e80){const _0x5d080b=this[_0x5661('0x54')](_0x590e80);for(const _0x33b8a3 of _0x5d080b)_0x3e13bc[_0x5661('0x1d')][_0x5661('0x50')](_0x33b8a3);}if(_0x50e49a){const {id:_0x238256}=ot(_0x50e49a),_0x1dadd3=this[_0x5661('0x54')](_0x238256);for(const _0x4adfd0 of _0x1dadd3)_0x3e13bc[_0x5661('0x1d')][_0x5661('0x50')](_0x4adfd0);}}),_0x590e80){const _0x2cd25e=_0x3e13bc[_0x5661('0x64')]['get'](_0x108e0e)[_0x5661('0x26')](_0x590e80);_0x2cd25e&&_0x2cd25e[_0x5661('0x70')]&&this[_0x5661('0x76')](_0x590e80);}}),this[_0x5661('0x75')]();}[_0x5661('0x3e')](){const _0x395fdd=this[_0x5661('0x2f')],_0x5e1090=_0x395fdd['plugins'][_0x5661('0x59')](_0x108e0e),_0x50a16a=_0x395fdd[_0x5661('0x57')][_0x5661('0x59')](_0x5661('0x5c'));_0x395fdd[_0x5661('0x2c')][_0x5661('0x14')]('addCommentThread',new _0x12644b(_0x395fdd)),this[_0x5661('0x19')](_0x395fdd,_0x5661('0x42'),(_0x24c6a7,_0x3c1124,_0x257057)=>{_0x5e1090[_0x5661('0x1c')](_0x257057,_0x395fdd[_0x5661('0x57')]['get']('collaboration.channelId'));}),this['listenTo'](_0x5e1090,tt('addCommentThread',_0x50a16a),(_0x14c4d8,{threadId:_0x1802fd})=>{const _0x52637c=this[_0x5661('0x2f')][_0x5661('0x64')][_0x5661('0x59')](_0x108e0e)[_0x5661('0x26')](_0x1802fd);_0x52637c&&_0x52637c[_0x5661('0x4')]&&this[_0x5661('0x78')](_0x1802fd);}),this[_0x5661('0x19')](_0x5e1090,tt(_0x5661('0x6b'),_0x50a16a),(_0x8b6f4d,{threadId:_0x38d390})=>{_0x395fdd[_0x5661('0x77')][_0x5661('0x3')]({'isUndoable':!0x1},_0x2c1247=>{const _0x3daff1=this[_0x5661('0x54')](_0x38d390);for(const _0x2ebf55 of _0x3daff1)_0x2c1247['removeMarker'](_0x2ebf55);});}),this[_0x5661('0x19')](_0x5e1090,tt(_0x5661('0x72'),_0x50a16a),(_0x27577d,{threadId:_0x2e65cc})=>{(this[_0x5661('0x79')](_0x2e65cc),this[_0x5661('0x2f')][_0x5661('0x1d')][_0x5661('0x63')][_0x5661('0x6f')])&&(this[_0x5661('0x2f')][_0x5661('0x64')]['get'](_0x108e0e)[_0x5661('0x26')](_0x2e65cc)[_0x5661('0x4')]||this[_0x5661('0x2f')][_0x5661('0x1d')][_0x5661('0x63')][_0x5661('0x66')]());},{'priority':_0x5661('0x5')}),this[_0x5661('0x19')](_0x5e1090,tt(_0x5661('0x3d'),_0x50a16a),(_0x311448,{threadId:_0xfda889})=>{this[_0x5661('0x79')](_0xfda889);},{'priority':_0x5661('0x5')}),this['listenTo'](_0x5e1090,tt(_0x5661('0x30'),_0x50a16a),(_0x3a98eb,{threadId:_0x530cb9,isFromAdapter:_0x559bcf})=>{const _0x3b8732=this[_0x5661('0x54')](_0x530cb9);if(_0x559bcf||0x0==_0x3b8732[_0x5661('0x29')]||!_0x5e1090['hasCommentThread'](_0x530cb9))return;0x1===_0x5e1090[_0x5661('0x26')](_0x530cb9)[_0x5661('0x29')]&&_0x395fdd[_0x5661('0x77')][_0x5661('0x3')]({'isUndoable':!0x1},_0x479b9d=>{for(const _0x22f756 of _0x3b8732)_0x479b9d['updateMarker'](_0x22f756,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5661('0x5')}),this[_0x5661('0x23')](),this[_0x5661('0x2a')]();}['destroy'](){const _0x4a34e3=this['editor'][_0x5661('0x64')][_0x5661('0x59')](_0x108e0e),_0x374854=this[_0x5661('0x2f')][_0x5661('0x57')]['get'](_0x5661('0x5c'));for(const _0x5bf5a3 of _0x4a34e3['getCommentThreads']({'channelId':_0x374854}))_0x4a34e3['_detachCommentThread'](_0x5bf5a3['id']),_0x4a34e3['_threads'][_0x5661('0x1a')](_0x5bf5a3['id']);super[_0x5661('0x6c')]();}[_0x5661('0x18')](_0x3dbd47){return this[_0x5661('0x54')](_0x3dbd47)['length']>0x0;}[_0x5661('0x54')](_0x259a71){const _0x3888c8=[];for(const _0xf6587e of this[_0x5661('0x2f')][_0x5661('0x77')][_0x5661('0x12')])_0xf6587e[_0x5661('0x5f')][_0x5661('0x33')](_0x5661('0x49')+_0x259a71)&&_0x3888c8[_0x5661('0x58')](_0xf6587e);return _0x3888c8;}['scrollToThreadMarker'](_0x5d6b65){const _0x5ecd41=this[_0x5661('0x36')](_0x5d6b65);_0x5ecd41&&setTimeout(()=>{this[_0x5661('0x3b')]&&ot(this['activeMarker'])['id']===_0x5d6b65&&_0x5e03ea({'target':_0x5ecd41[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5661('0x79')](_0x28d518){this[_0x5661('0x2f')]['model'][_0x5661('0x2d')](()=>{for(const _0x566426 of this[_0x5661('0x54')](_0x28d518))this[_0x5661('0x2f')][_0x5661('0x1d')]['reconvertMarker'](_0x566426);});}[_0x5661('0x78')](_0x24d355){const _0x5493cd=this['editor'][_0x5661('0x64')][_0x5661('0x59')](_0x108e0e),_0x2c9975=this[_0x5661('0x2f')][_0x5661('0x64')][_0x5661('0x59')](_0x387570),_0x386f6d=_0x5493cd[_0x5661('0x26')](_0x24d355);if(!_0x386f6d['isAttached']){const _0x2a9e7a=_0x386f6d[_0x5661('0x46')](()=>this[_0x5661('0x36')](_0x386f6d['id']));_0x2c9975[_0x5661('0x4c')](_0x2a9e7a),_0x386f6d[_0x5661('0x38')]=!0x1;}}[_0x5661('0x23')](){const _0x3f165b=this[_0x5661('0x2f')];_0x3f165b[_0x5661('0x47')][_0x5661('0x2b')]('editingDowncast')[_0x5661('0x62')]({'model':_0x5661('0x41'),'view':(_0x1de340,_0x463699)=>{const {id:_0x5a651f}=ot(_0x1de340[_0x5661('0xf')]),_0x57f184=_0x3f165b[_0x5661('0x64')][_0x5661('0x59')](_0x108e0e)[_0x5661('0x26')](_0x5a651f),_0x291fee=this[_0x5661('0x3b')]&&ot(this[_0x5661('0x3b')])['id']===_0x5a651f;if(_0x57f184&&_0x57f184[_0x5661('0x70')]&&!_0x291fee&&_0x1de340[_0x5661('0x28')])return _0x463699['consumable'][_0x5661('0x45')](_0x1de340[_0x5661('0x28')],'addMarker:'+_0x1de340[_0x5661('0xf')]),_0x463699[_0x5661('0x74')][_0x5661('0x45')](_0x1de340[_0x5661('0x28')],_0x5661('0x73')+_0x1de340['markerName']),null;const _0x1bb4cc=[_0x5661('0x69')];return _0x291fee&&_0x1bb4cc[_0x5661('0x58')](_0x5661('0x5e')),{'classes':_0x1bb4cc,'attributes':{'data-comment':_0x5a651f}};}}),_0x3f165b[_0x5661('0x47')]['for'](_0x5661('0x4b'))[_0x5661('0xe')]({'model':_0x5661('0x41'),'view':(_0x3e476a,{options:_0x7c1460})=>{const _0x2ef3c2=_0x3f165b[_0x5661('0x64')]['get'](_0x108e0e),_0x323a9d=_0x3f165b[_0x5661('0x77')]['markers'][_0x5661('0x59')](_0x3e476a),{id:_0x4ee03a,part:_0x24c960}=ot(_0x3e476a);if(_0x323a9d&&!_0x323a9d[_0x5661('0x13')])return null;if(_0x7c1460[_0x5661('0x1')]){const _0x4f1e08=_0x2ef3c2['getCommentThread'](_0x4ee03a);if(_0x4f1e08&&_0x4f1e08[_0x5661('0x70')])return null;}return{'group':_0x5661('0x41'),'name':_0x24c960?_0x4ee03a+':'+_0x24c960:_0x4ee03a};}}),_0x3f165b['conversion'][_0x5661('0x2b')](_0x5661('0x39'))[_0x5661('0x17')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x287beb,{writer:_0x4e2444})=>_0x4e2444[_0x5661('0x8')](_0x5661('0x7a'),{'data-name':'comment:'+_0x287beb[_0x5661('0x4e')]('id')})}),_0x3f165b[_0x5661('0x47')][_0x5661('0x2b')](_0x5661('0x39'))[_0x5661('0x34')]({'view':_0x5661('0x41')});}[_0x5661('0x2a')](){const _0x3bb3dc=this[_0x5661('0x2f')],_0x5a6f9d=_0x3bb3dc['plugins']['get'](_0x108e0e),_0x5c31ef=new Set(),_0x544583=new Set();_0x3bb3dc['model'][_0x5661('0x61')][_0x5661('0x3f')](_0x479fa0=>{let _0x15a34a=!0x1;for(const {name:_0x6533c5,data:_0x11776a}of _0x3bb3dc[_0x5661('0x77')][_0x5661('0x61')]['differ'][_0x5661('0x27')]()){const {group:_0x3e41fc,id:_0x82daf4}=ot(_0x6533c5);let _0x25892c=_0x11776a[_0x5661('0x55')];if('comment'!==_0x3e41fc||!_0x25892c)continue;const _0x130898=_0x5661('0x51')===_0x25892c[_0x5661('0x5b')][_0x5661('0x43')];_0x130898||(_0x25892c=et(_0x25892c,_0x3bb3dc[_0x5661('0x77')]),!_0x25892c||_0x25892c['isCollapsed']||!_0x11776a[_0x5661('0x55')]||_0x25892c[_0x5661('0x24')](_0x11776a[_0x5661('0x55')]))?_0x3bb3dc[_0x5661('0x77')][_0x5661('0x3a')](_0x25892c)&&!_0x130898?this[_0x5661('0x2')]?_0x5c31ef[_0x5661('0x14')](_0x6533c5):this[_0x5661('0x44')](_0x6533c5,_0x82daf4):(_0x544583[_0x5661('0x14')](_0x6533c5),_0x5c31ef[_0x5661('0x1a')](_0x6533c5),_0x479fa0[_0x5661('0x60')](_0x6533c5),_0x15a34a=!0x0):(_0x479fa0['updateMarker'](_0x6533c5,{'range':_0x25892c}),_0x15a34a=!0x0);}return _0x15a34a;}),this['on'](_0x5661('0x37'),(_0xcec0d8,_0x318a1f,_0x4ca949)=>{if(!_0x4ca949&&_0x5c31ef[_0x5661('0x40')])for(const _0x4fabdc of _0x5c31ef){const {id:_0x1a5a24}=ot(_0x4fabdc);_0x5c31ef[_0x5661('0x1a')](_0x4fabdc),_0x3bb3dc['model'][_0x5661('0x12')]['get'](_0x4fabdc)&&this[_0x5661('0x44')](_0x4fabdc,_0x1a5a24);}}),this['listenTo'](_0x3bb3dc[_0x5661('0x77')][_0x5661('0x61')],_0x5661('0x2d'),(_0x2215da,_0x47f7f1)=>{for(const {name:_0x3241cd,data:{newRange:_0x2bfe57}}of _0x3bb3dc[_0x5661('0x77')][_0x5661('0x61')][_0x5661('0x1b')][_0x5661('0x27')]()){const {group:_0x4a7cd2,id:_0x4c389e}=ot(_0x3241cd);if(_0x5661('0x41')!==_0x4a7cd2)continue;const _0x401e4b=_0x5a6f9d[_0x5661('0x26')](_0x4c389e),_0x1d2e96=this[_0x5661('0x18')](_0x4c389e);_0x401e4b&&(_0x401e4b[_0x5661('0x38')]||_0x3bb3dc['editing']['view'][_0x5661('0x53')](_0x5661('0x10'),()=>{const _0x2509df=_0x3bb3dc[_0x5661('0x64')][_0x5661('0x59')](_0x3f8e14),_0x334540=_0x5a6f9d[_0x5661('0x71')][_0x5661('0x59')](_0x401e4b)['view'];_0x2509df['getByInnerView'](_0x334540)[_0x5661('0x1e')]();},{'priority':'low'}),_0x401e4b['_hasTargetInContent']=_0x1d2e96||!!_0x2bfe57),_0x2bfe57||(_0x544583[_0x5661('0x14')](_0x3241cd),_0x5c31ef[_0x5661('0x1a')](_0x3241cd));}if(_0x47f7f1[_0x5661('0x3c')])for(const _0x25288b of _0x544583){const {id:_0x475cee}=ot(_0x25288b),_0xd336d0=_0x5a6f9d['getCommentThread'](_0x475cee),_0x17613e=this[_0x5661('0x18')](_0x475cee);_0x5c31ef[_0x5661('0x1a')](_0x25288b),!_0xd336d0||_0x17613e||_0xd336d0[_0x5661('0x4')]||_0xd336d0[_0x5661('0x52')](new Date());}_0x544583[_0x5661('0xc')]();});}[_0x5661('0x36')](_0x24e9f6){const _0x5214c3=this[_0x5661('0x2f')],_0x17ef07=this[_0x5661('0x54')](_0x24e9f6);return _0xd8920(_0x5214c3['editing'],_0x17ef07);}['_getTextContext'](_0x4f6be6){const _0x109d61=this[_0x5661('0x54')](_0x4f6be6);let _0x54b83b='',_0x2a069c=!0x1;for(const _0x3093ac of _0x109d61){const _0x1c47e3=_0x3093ac[_0x5661('0x5d')]();for(const _0x5628ad of Array[_0x5661('0x5a')](_0x1c47e3[_0x5661('0x9')]()))_0x5628ad['is']('$textProxy')?(_0x54b83b&&_0x2a069c&&(_0x54b83b+='\x20',_0x2a069c=!0x1),_0x54b83b+=_0x5628ad[_0x5661('0x2e')]):_0x2a069c=!0x0;_0x2a069c=!0x0;}return _0x54b83b[_0x5661('0x31')](0x0,0x96);}['_attachMarkerToThread'](_0x32220b,_0x511cae){const _0x2c4e5f=this[_0x5661('0x2f')],_0x13a48d=_0x2c4e5f[_0x5661('0x64')][_0x5661('0x59')](_0x108e0e);let _0x180322=_0x13a48d['getCommentThread'](_0x511cae);const _0x58ba7b=_0x2c4e5f['config'][_0x5661('0x59')]('collaboration.channelId'),_0x402e29=_0x2c4e5f['plugins'][_0x5661('0x59')](_0x387570);if(_0x180322&&(_0x180322[_0x5661('0x4')]&&_0x180322[_0x5661('0x52')](null),_0x180322[_0x5661('0x11')]))return _0x180322;return!this[_0x5661('0x54')](_0x511cae)[0x0][_0x5661('0x25')]?_0x2c4e5f[_0x5661('0x1d')][_0x5661('0x63')][_0x5661('0x53')](_0x5661('0x10'),()=>{if(_0x13a48d[_0x5661('0x26')](_0x511cae))return;const _0x528634=_0x2c4e5f[_0x5661('0x64')][_0x5661('0x59')](_0x3f8e14);_0x180322=_0x13a48d[_0x5661('0x56')]({'channelId':_0x58ba7b,'threadId':_0x511cae,'target':()=>this[_0x5661('0x36')](_0x511cae),'context':{'type':_0x5661('0x21'),'value':this[_0x5661('0x6d')](_0x511cae)}});const _0x1df858=_0x13a48d[_0x5661('0x71')][_0x5661('0x59')](_0x180322)['view'],_0x4642e3=_0x528634[_0x5661('0x20')](_0x1df858);_0x4642e3&&_0x402e29[_0x5661('0x4c')](_0x4642e3);},{'priority':_0x5661('0x5')}):_0x13a48d[_0x5661('0x65')]({'channelId':_0x58ba7b,'threadId':_0x511cae})['then'](_0x360889=>{if('destroyed'!==_0x2c4e5f['state']){if(_0x180322=_0x360889,_0x180322&&!_0x180322[_0x5661('0x11')]){const _0x25f2b3=_0x180322[_0x5661('0x46')](()=>this[_0x5661('0x36')](_0x511cae));_0x402e29[_0x5661('0x4c')](_0x25f2b3),_0x180322[_0x5661('0x70')]&&this['_reconvertMarkers'](_0x511cae);}else{if(!_0x180322){const _0x5946b8=this[_0x5661('0x54')](_0x511cae);_0x2c4e5f['model'][_0x5661('0x2d')](_0x2f1a0d=>{for(const _0x9e8659 of _0x5946b8)_0x2f1a0d['removeMarker'](_0x9e8659);});}}}}),_0x180322;}['_handleThreadMarker'](_0x49ec85,_0x1b8806){const _0x36748e=this[_0x5661('0x0')](_0x49ec85,_0x1b8806);_0x36748e&&!_0x36748e[_0x5661('0x22')]&&_0x36748e[_0x5661('0x1f')]({'type':_0x5661('0x21'),'value':this[_0x5661('0x6d')](_0x1b8806)});}['_initAriaMarkerChangeAnnouncements'](){const _0x58bd20=this[_0x5661('0x2f')];_0xebbf0c(_0x58bd20['model'],({left:_0x5706b3,entered:_0x27517d})=>{const _0x30426e=[];for(const _0x296eb4 of _0x5706b3)if(rt(_0x296eb4)){_0x30426e['push'](_0x34934c(_0x58bd20[_0x5661('0x68')],_0x5661('0x4a')));break;}for(const _0x4dd34b of _0x27517d)if(rt(_0x4dd34b)){_0x30426e[_0x5661('0x58')](_0x34934c(_0x58bd20['locale'],_0x5661('0x48')));break;}_0x30426e[_0x5661('0x29')]&&_0x58bd20['ui']['ariaLiveAnnouncer'][_0x5661('0x6a')](_0x5661('0x67'),_0x30426e[_0x5661('0xd')]('\x20'));});}}function tt(_0x55749,_0xbf3709){return _0xbf3709?_0x55749+':'+_0xbf3709:_0x55749;}function ot(_0x15923c){const _0x544eba=_0x15923c[_0x5661('0x32')](':');return{'group':_0x544eba[0x0],'id':_0x544eba[0x1],'part':_0x544eba[0x2]};}function et(_0x3495ac,_0x5d58a7){const _0x539930=_0x5d58a7[_0x5661('0x35')],_0x11d39a=_0x5d58a7['createRange'](_0x3495ac[_0x5661('0x7')]);for(const _0x459127 of _0x3495ac[_0x5661('0x6e')]()){const {type:_0x18e846,item:_0x24ec56,nextPosition:_0x334008}=_0x459127;if(_0x5661('0x21')===_0x18e846||_0x539930[_0x5661('0x15')](_0x24ec56)){const _0x3ab076=_0x5d58a7[_0x5661('0xa')](_0x24ec56);_0x11d39a['isCollapsed']&&(_0x11d39a[_0x5661('0x7')]=_0x3ab076),_0x11d39a['end']=_0x334008;}}return _0x11d39a;}function rt(_0x3bead0){return _0x5661('0x41')===ot(_0x3bead0['name'])['group'];}
|
|
23
|
+
const _0x365a=['removeMarker','isEqual','getChangedMarkers','ready','getAttribute','ck-comment-marker','managedUsingOperations','data','markers','getCommentThread','_initAriaMarkerChangeAnnouncements','hasCommentThread','commands','LEAVE_COMMENT_ANNOUNCEMENT','consumable','removeMarker:','length','hasDomSelection','removeCommentThread','conversion','for','_reconvertMarkers','group','elementToElement','clear','add','markerToData','_threads','_detachCommentThread','collaboration.channelId','consume','from','upcast','registerAnnotation','once','model','push','attachTo','isCollapsed','comments','start','refreshVisibility','isResolved','openNewCommentThread','schema','render','getByInnerView','comment','affectsData','CommentsEditing','createRange','resolveCommentThread','split','document','context','focus','size','join','_handleMarkerAddAndRemove','hasContent','isObject','isThreadsLoadingPaused','reopenCommentThread','editor','ck-comment-marker--active','differ','addCommentThread','setContext','comment:','_attachMarkerToThread','item','scrollToThreadMarker','isAttached','addMarker:','_threadToController','$marker','enqueueChange','locale','getWalker','markerToHighlight','change','delete','createElement','destroyed','hasMarkerForId','config','change:isThreadsLoadingPaused','ignoreResolvedComments','getCommentThreads','_attachArchivedThread','isLocal','activeMarker','ENTER_COMMENT_ANNOUNCEMENT','getItems','_getTargetForId','registerPostFixer','set','destroy','createPositionBefore','addComment','getRange','_initializeMarkerConverters','unlinkedAt','change:activeMarker','end','editingDowncast','getAllMarkersForId','$graveyard','listenTo','editing','view','reconvertMarker','pluginName','plugins','fetchCommentThread','newRange','_handleThreadMarker','switchReadOnly','then','low','updateMarker','name','text','get','markerName','_hasTargetInContent','ariaLiveAnnouncer','setUnlinkedAt','_getTextContext'];(function(_0x22a7f8,_0x365a64){const _0x15bebe=function(_0x6df906){while(--_0x6df906){_0x22a7f8['push'](_0x22a7f8['shift']());}};_0x15bebe(++_0x365a64);}(_0x365a,0xf5));const _0x15be=function(_0x22a7f8,_0x365a64){_0x22a7f8=_0x22a7f8-0x0;let _0x15bebe=_0x365a[_0x22a7f8];return _0x15bebe;};import{Plugin as _0x7803d6}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x4b9e52}from'ckeditor5/src/utils.js';import _0x218017 from'./commentsrepository.js';import _0x478442 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0xf36b0d,getAllMarkersDomElementsSorted as _0x51f2d5}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1a2283 from'../annotations/editorannotations.js';import _0x78d4fd from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x12a801 from'./integrations/importword.js';import _0x2275c3 from'../annotations/annotations.js';import{getTranslation as _0x3cdb20}from'../utils/common-translations.js';export default class r extends _0x7803d6{static get['requires'](){return[_0x218017,_0x1a2283,_0x78d4fd,_0x12a801];}static get[_0x15be('0x7d')](){return _0x15be('0x3e');}constructor(_0x50dbc4){super(_0x50dbc4),this[_0x15be('0x6d')]('isThreadsLoadingPaused',!0x0),_0x50dbc4[_0x15be('0x14')][_0x15be('0x2f')](_0x15be('0x10'),()=>this[_0x15be('0x4a')]=!0x1),this[_0x15be('0x6d')](_0x15be('0x68'),null),this['on'](_0x15be('0x74'),(_0x2bebb2,_0x1769cd,_0x5cb348,_0x30afc1)=>{const _0x52f0dd=_0x5cb348?ot(_0x5cb348)['id']:null;if(_0x50dbc4[_0x15be('0x30')][_0x15be('0x5d')](()=>{if(_0x52f0dd){const _0x2d431c=this[_0x15be('0x77')](_0x52f0dd);for(const _0x2869cf of _0x2d431c)_0x50dbc4[_0x15be('0x7a')][_0x15be('0x7c')](_0x2869cf);}if(_0x30afc1){const {id:_0x549b9f}=ot(_0x30afc1),_0x555a18=this[_0x15be('0x77')](_0x549b9f);for(const _0x5d17a3 of _0x555a18)_0x50dbc4[_0x15be('0x7a')][_0x15be('0x7c')](_0x5d17a3);}}),_0x52f0dd){const _0x50d800=_0x50dbc4['plugins'][_0x15be('0x7')](_0x218017)['getCommentThread'](_0x52f0dd);_0x50d800&&_0x50d800[_0x15be('0x37')]&&this['scrollToThreadMarker'](_0x52f0dd);}}),this[_0x15be('0x17')]();}['init'](){const _0x4354dc=this[_0x15be('0x4c')],_0x2d1f7f=_0x4354dc[_0x15be('0x7e')][_0x15be('0x7')](_0x218017),_0x1e4369=_0x4354dc[_0x15be('0x62')][_0x15be('0x7')](_0x15be('0x2a'));_0x4354dc[_0x15be('0x19')][_0x15be('0x26')](_0x15be('0x4f'),new _0x478442(_0x4354dc)),this['listenTo'](_0x4354dc,'change:isReadOnly',(_0xd51123,_0x223f4b,_0x94b1ca)=>{_0x2d1f7f[_0x15be('0x1')](_0x94b1ca,_0x4354dc[_0x15be('0x62')]['get'](_0x15be('0x2a')));}),this[_0x15be('0x79')](_0x2d1f7f,tt(_0x15be('0x4f'),_0x1e4369),(_0x495202,{threadId:_0x12dab2})=>{const _0x599883=this[_0x15be('0x4c')][_0x15be('0x7e')][_0x15be('0x7')](_0x218017)[_0x15be('0x16')](_0x12dab2);_0x599883&&_0x599883[_0x15be('0x73')]&&this[_0x15be('0x66')](_0x12dab2);}),this[_0x15be('0x79')](_0x2d1f7f,tt(_0x15be('0x1f'),_0x1e4369),(_0x1d9b3a,{threadId:_0x199417})=>{_0x4354dc[_0x15be('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x51dda8=>{const _0x1dac6b=this[_0x15be('0x77')](_0x199417);for(const _0x4164d7 of _0x1dac6b)_0x51dda8[_0x15be('0xd')](_0x4164d7);});}),this[_0x15be('0x79')](_0x2d1f7f,tt(_0x15be('0x40'),_0x1e4369),(_0x5ae240,{threadId:_0x2e5a9e})=>{(this[_0x15be('0x22')](_0x2e5a9e),this['editor']['editing'][_0x15be('0x7b')][_0x15be('0x1e')])&&(this[_0x15be('0x4c')][_0x15be('0x7e')]['get'](_0x218017)[_0x15be('0x16')](_0x2e5a9e)[_0x15be('0x73')]||this['editor'][_0x15be('0x7a')]['view'][_0x15be('0x44')]());},{'priority':_0x15be('0x3')}),this['listenTo'](_0x2d1f7f,tt(_0x15be('0x4b'),_0x1e4369),(_0x30a3c5,{threadId:_0x3f382e})=>{this[_0x15be('0x22')](_0x3f382e);},{'priority':_0x15be('0x3')}),this['listenTo'](_0x2d1f7f,tt(_0x15be('0x70'),_0x1e4369),(_0x4ecb21,{threadId:_0x49ae00,isFromAdapter:_0x46290e})=>{const _0x15495f=this[_0x15be('0x77')](_0x49ae00);if(_0x46290e||0x0==_0x15495f['length']||!_0x2d1f7f[_0x15be('0x18')](_0x49ae00))return;0x1===_0x2d1f7f[_0x15be('0x16')](_0x49ae00)[_0x15be('0x1d')]&&_0x4354dc[_0x15be('0x30')][_0x15be('0x59')]({'isUndoable':!0x1},_0x44d15b=>{for(const _0x53c1c1 of _0x15495f)_0x44d15b[_0x15be('0x4')](_0x53c1c1,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x15be('0x3')}),this[_0x15be('0x72')](),this[_0x15be('0x47')]();}[_0x15be('0x6e')](){const _0x23a5d6=this[_0x15be('0x4c')][_0x15be('0x7e')][_0x15be('0x7')](_0x218017),_0x14a4b8=this[_0x15be('0x4c')][_0x15be('0x62')][_0x15be('0x7')](_0x15be('0x2a'));for(const _0x33d3c6 of _0x23a5d6[_0x15be('0x65')]({'channelId':_0x14a4b8}))_0x23a5d6[_0x15be('0x29')](_0x33d3c6['id']),_0x23a5d6[_0x15be('0x28')][_0x15be('0x5e')](_0x33d3c6['id']);super[_0x15be('0x6e')]();}[_0x15be('0x61')](_0xa05be5){return this[_0x15be('0x77')](_0xa05be5)['length']>0x0;}[_0x15be('0x77')](_0x577982){const _0x1aee4b=[];for(const _0x50601d of this[_0x15be('0x4c')][_0x15be('0x30')]['markers'])_0x50601d[_0x15be('0x5')]['startsWith'](_0x15be('0x51')+_0x577982)&&_0x1aee4b[_0x15be('0x31')](_0x50601d);return _0x1aee4b;}[_0x15be('0x54')](_0x5d3447){const _0x389e58=this[_0x15be('0x6b')](_0x5d3447);_0x389e58&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x15be('0x68')])['id']===_0x5d3447&&_0x4b9e52({'target':_0x389e58[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x15be('0x22')](_0x382752){this[_0x15be('0x4c')][_0x15be('0x30')][_0x15be('0x5d')](()=>{for(const _0x57b45a of this[_0x15be('0x77')](_0x382752))this[_0x15be('0x4c')][_0x15be('0x7a')][_0x15be('0x7c')](_0x57b45a);});}[_0x15be('0x66')](_0x3a5ef0){const _0x535374=this[_0x15be('0x4c')][_0x15be('0x7e')][_0x15be('0x7')](_0x218017),_0x1ac7c1=this[_0x15be('0x4c')]['plugins']['get'](_0x1a2283),_0x16651b=_0x535374[_0x15be('0x16')](_0x3a5ef0);if(!_0x16651b[_0x15be('0x55')]){const _0x500592=_0x16651b[_0x15be('0x32')](()=>this['_getTargetForId'](_0x16651b['id']));_0x1ac7c1[_0x15be('0x2e')](_0x500592),_0x16651b[_0x15be('0x9')]=!0x1;}}['_initializeMarkerConverters'](){const _0x292b2f=this[_0x15be('0x4c')];_0x292b2f['conversion']['for'](_0x15be('0x76'))[_0x15be('0x5c')]({'model':_0x15be('0x3c'),'view':(_0x4c3553,_0x3129bc)=>{const {id:_0x38cd81}=ot(_0x4c3553[_0x15be('0x8')]),_0x136ac9=_0x292b2f['plugins'][_0x15be('0x7')](_0x218017)[_0x15be('0x16')](_0x38cd81),_0x2667ff=this[_0x15be('0x68')]&&ot(this['activeMarker'])['id']===_0x38cd81;if(_0x136ac9&&_0x136ac9[_0x15be('0x37')]&&!_0x2667ff&&_0x4c3553['item'])return _0x3129bc[_0x15be('0x1b')][_0x15be('0x2b')](_0x4c3553['item'],_0x15be('0x56')+_0x4c3553[_0x15be('0x8')]),_0x3129bc[_0x15be('0x1b')][_0x15be('0x2b')](_0x4c3553[_0x15be('0x53')],_0x15be('0x1c')+_0x4c3553['markerName']),null;const _0x19d83c=[_0x15be('0x12')];return _0x2667ff&&_0x19d83c[_0x15be('0x31')](_0x15be('0x4d')),{'classes':_0x19d83c,'attributes':{'data-comment':_0x38cd81}};}}),_0x292b2f[_0x15be('0x20')][_0x15be('0x21')]('dataDowncast')[_0x15be('0x27')]({'model':_0x15be('0x3c'),'view':(_0x5cd842,{options:_0x2f8125})=>{const _0x29098b=_0x292b2f[_0x15be('0x7e')]['get'](_0x218017),_0x49bffc=_0x292b2f[_0x15be('0x30')][_0x15be('0x15')][_0x15be('0x7')](_0x5cd842),{id:_0x230c46,part:_0x598a04}=ot(_0x5cd842);if(_0x49bffc&&!_0x49bffc[_0x15be('0x3d')])return null;if(_0x2f8125[_0x15be('0x64')]){const _0x3f60fc=_0x29098b[_0x15be('0x16')](_0x230c46);if(_0x3f60fc&&_0x3f60fc['isResolved'])return null;}return{'group':'comment','name':_0x598a04?_0x230c46+':'+_0x598a04:_0x230c46};}}),_0x292b2f[_0x15be('0x20')][_0x15be('0x21')](_0x15be('0x2d'))[_0x15be('0x24')]({'view':{'name':_0x15be('0x3c'),'attributes':{'id':/^\w/}},'model':(_0x341c3d,{writer:_0x2576c7})=>_0x2576c7[_0x15be('0x5f')](_0x15be('0x58'),{'data-name':_0x15be('0x51')+_0x341c3d[_0x15be('0x11')]('id')})}),_0x292b2f[_0x15be('0x20')]['for'](_0x15be('0x2d'))['dataToMarker']({'view':_0x15be('0x3c')});}[_0x15be('0x47')](){const _0x28a286=this['editor'],_0x4182f7=_0x28a286[_0x15be('0x7e')]['get'](_0x218017),_0x3e7f88=new Set(),_0x590c4e=new Set();_0x28a286[_0x15be('0x30')][_0x15be('0x42')][_0x15be('0x6c')](_0x1f296e=>{let _0x68e505=!0x1;for(const {name:_0x4ffbd8,data:_0x463691}of _0x28a286['model'][_0x15be('0x42')]['differ'][_0x15be('0xf')]()){const {group:_0x1673f9,id:_0x54dfbb}=ot(_0x4ffbd8);let _0xcef96f=_0x463691[_0x15be('0x80')];if(_0x15be('0x3c')!==_0x1673f9||!_0xcef96f)continue;const _0x2d45de=_0x15be('0x78')===_0xcef96f['root']['rootName'];_0x2d45de||(_0xcef96f=et(_0xcef96f,_0x28a286[_0x15be('0x30')]),!_0xcef96f||_0xcef96f[_0x15be('0x33')]||!_0x463691['newRange']||_0xcef96f[_0x15be('0xe')](_0x463691[_0x15be('0x80')]))?_0x28a286[_0x15be('0x30')][_0x15be('0x48')](_0xcef96f)&&!_0x2d45de?this['isThreadsLoadingPaused']?_0x3e7f88[_0x15be('0x26')](_0x4ffbd8):this['_handleThreadMarker'](_0x4ffbd8,_0x54dfbb):(_0x590c4e[_0x15be('0x26')](_0x4ffbd8),_0x3e7f88['delete'](_0x4ffbd8),_0x1f296e[_0x15be('0xd')](_0x4ffbd8),_0x68e505=!0x0):(_0x1f296e[_0x15be('0x4')](_0x4ffbd8,{'range':_0xcef96f}),_0x68e505=!0x0);}return _0x68e505;}),this['on'](_0x15be('0x63'),(_0x258b95,_0x42576a,_0x250099)=>{if(!_0x250099&&_0x3e7f88[_0x15be('0x45')])for(const _0x3bb5b2 of _0x3e7f88){const {id:_0x1193d5}=ot(_0x3bb5b2);_0x3e7f88[_0x15be('0x5e')](_0x3bb5b2),_0x28a286[_0x15be('0x30')][_0x15be('0x15')][_0x15be('0x7')](_0x3bb5b2)&&this[_0x15be('0x0')](_0x3bb5b2,_0x1193d5);}}),this[_0x15be('0x79')](_0x28a286['model'][_0x15be('0x42')],_0x15be('0x5d'),(_0x53c695,_0x4611e8)=>{for(const {name:_0x1445cf,data:{newRange:_0x42e5bf}}of _0x28a286['model'][_0x15be('0x42')][_0x15be('0x4e')]['getChangedMarkers']()){const {group:_0x137767,id:_0x33376d}=ot(_0x1445cf);if(_0x15be('0x3c')!==_0x137767)continue;const _0x1f65b9=_0x4182f7[_0x15be('0x16')](_0x33376d),_0x423c27=this[_0x15be('0x61')](_0x33376d);_0x1f65b9&&(_0x1f65b9[_0x15be('0x9')]||_0x28a286[_0x15be('0x7a')][_0x15be('0x7b')][_0x15be('0x2f')]('render',()=>{const _0x214296=_0x28a286[_0x15be('0x7e')][_0x15be('0x7')](_0x2275c3),_0x2cf918=_0x4182f7['_threadToController'][_0x15be('0x7')](_0x1f65b9)[_0x15be('0x7b')];_0x214296[_0x15be('0x3b')](_0x2cf918)[_0x15be('0x36')]();},{'priority':_0x15be('0x3')}),_0x1f65b9[_0x15be('0x9')]=_0x423c27||!!_0x42e5bf),_0x42e5bf||(_0x590c4e[_0x15be('0x26')](_0x1445cf),_0x3e7f88[_0x15be('0x5e')](_0x1445cf));}if(_0x4611e8[_0x15be('0x67')])for(const _0x445c80 of _0x590c4e){const {id:_0x4b1968}=ot(_0x445c80),_0x2a9238=_0x4182f7['getCommentThread'](_0x4b1968),_0x59b036=this[_0x15be('0x61')](_0x4b1968);_0x3e7f88[_0x15be('0x5e')](_0x445c80),!_0x2a9238||_0x59b036||_0x2a9238[_0x15be('0x73')]||_0x2a9238[_0x15be('0xb')](new Date());}_0x590c4e[_0x15be('0x25')]();});}['_getTargetForId'](_0x2b4804){const _0x4a602f=this[_0x15be('0x4c')],_0xd7928f=this['getAllMarkersForId'](_0x2b4804);return _0x51f2d5(_0x4a602f[_0x15be('0x7a')],_0xd7928f);}[_0x15be('0xc')](_0x59fb5f){const _0x2e979b=this[_0x15be('0x77')](_0x59fb5f);let _0x420468='',_0x492b36=!0x1;for(const _0x71eba0 of _0x2e979b){const _0x2433e9=_0x71eba0[_0x15be('0x71')]();for(const _0x169816 of Array[_0x15be('0x2c')](_0x2433e9[_0x15be('0x6a')]()))_0x169816['is']('$textProxy')?(_0x420468&&_0x492b36&&(_0x420468+='\x20',_0x492b36=!0x1),_0x420468+=_0x169816[_0x15be('0x14')]):_0x492b36=!0x0;_0x492b36=!0x0;}return _0x420468['substring'](0x0,0x96);}[_0x15be('0x52')](_0x16d665,_0x5ec804){const _0x43ed09=this[_0x15be('0x4c')],_0x575ef6=_0x43ed09[_0x15be('0x7e')][_0x15be('0x7')](_0x218017);let _0x37ba18=_0x575ef6[_0x15be('0x16')](_0x5ec804);const _0x3ca359=_0x43ed09[_0x15be('0x62')][_0x15be('0x7')](_0x15be('0x2a')),_0x50c1f7=_0x43ed09['plugins'][_0x15be('0x7')](_0x1a2283);if(_0x37ba18&&(_0x37ba18[_0x15be('0x73')]&&_0x37ba18['setUnlinkedAt'](null),_0x37ba18[_0x15be('0x55')]))return _0x37ba18;return!this['getAllMarkersForId'](_0x5ec804)[0x0][_0x15be('0x13')]?_0x43ed09['editing'][_0x15be('0x7b')][_0x15be('0x2f')](_0x15be('0x3a'),()=>{if(_0x575ef6[_0x15be('0x16')](_0x5ec804))return;const _0x25197d=_0x43ed09[_0x15be('0x7e')]['get'](_0x2275c3);_0x37ba18=_0x575ef6[_0x15be('0x38')]({'channelId':_0x3ca359,'threadId':_0x5ec804,'target':()=>this[_0x15be('0x6b')](_0x5ec804),'context':{'type':_0x15be('0x6'),'value':this[_0x15be('0xc')](_0x5ec804)}});const _0x125da0=_0x575ef6[_0x15be('0x57')][_0x15be('0x7')](_0x37ba18)[_0x15be('0x7b')],_0x4c620e=_0x25197d[_0x15be('0x3b')](_0x125da0);_0x4c620e&&_0x50c1f7[_0x15be('0x2e')](_0x4c620e);},{'priority':_0x15be('0x3')}):_0x575ef6[_0x15be('0x7f')]({'channelId':_0x3ca359,'threadId':_0x5ec804})[_0x15be('0x2')](_0x1c177e=>{if(_0x15be('0x60')!==_0x43ed09['state']){if(_0x37ba18=_0x1c177e,_0x37ba18&&!_0x37ba18['isAttached']){const _0x25e6b3=_0x37ba18[_0x15be('0x32')](()=>this[_0x15be('0x6b')](_0x5ec804));_0x50c1f7[_0x15be('0x2e')](_0x25e6b3),_0x37ba18[_0x15be('0x37')]&&this[_0x15be('0x22')](_0x5ec804);}else{if(!_0x37ba18){const _0x387f69=this[_0x15be('0x77')](_0x5ec804);_0x43ed09[_0x15be('0x30')][_0x15be('0x5d')](_0x32f0ed=>{for(const _0x3f84c5 of _0x387f69)_0x32f0ed[_0x15be('0xd')](_0x3f84c5);});}}}}),_0x37ba18;}[_0x15be('0x0')](_0x3ff1bf,_0x8403e0){const _0x54bccb=this[_0x15be('0x52')](_0x3ff1bf,_0x8403e0);_0x54bccb&&!_0x54bccb[_0x15be('0x43')]&&_0x54bccb[_0x15be('0x50')]({'type':'text','value':this[_0x15be('0xc')](_0x8403e0)});}[_0x15be('0x17')](){const _0x2ff2ca=this['editor'];_0xf36b0d(_0x2ff2ca[_0x15be('0x30')],({left:_0x3bf791,entered:_0x8d020c})=>{const _0x5c6ae9=[];for(const _0x296d0c of _0x3bf791)if(rt(_0x296d0c)){_0x5c6ae9[_0x15be('0x31')](_0x3cdb20(_0x2ff2ca[_0x15be('0x5a')],_0x15be('0x1a')));break;}for(const _0x5be43d of _0x8d020c)if(rt(_0x5be43d)){_0x5c6ae9[_0x15be('0x31')](_0x3cdb20(_0x2ff2ca['locale'],_0x15be('0x69')));break;}_0x5c6ae9[_0x15be('0x1d')]&&_0x2ff2ca['ui'][_0x15be('0xa')]['announce'](_0x15be('0x34'),_0x5c6ae9[_0x15be('0x46')]('\x20'));});}}function tt(_0x26fda2,_0x12ff6a){return _0x12ff6a?_0x26fda2+':'+_0x12ff6a:_0x26fda2;}function ot(_0x4305fb){const _0x236308=_0x4305fb[_0x15be('0x41')](':');return{'group':_0x236308[0x0],'id':_0x236308[0x1],'part':_0x236308[0x2]};}function et(_0x1fdfaf,_0x46edf3){const _0x1446d9=_0x46edf3[_0x15be('0x39')],_0x25aab3=_0x46edf3[_0x15be('0x3f')](_0x1fdfaf[_0x15be('0x35')]);for(const _0x38a08b of _0x1fdfaf[_0x15be('0x5b')]()){const {type:_0x4f42e3,item:_0xb33d66,nextPosition:_0x3ecf5a}=_0x38a08b;if(_0x15be('0x6')===_0x4f42e3||_0x1446d9[_0x15be('0x49')](_0xb33d66)){const _0x49371b=_0x46edf3[_0x15be('0x6f')](_0xb33d66);_0x25aab3[_0x15be('0x33')]&&(_0x25aab3['start']=_0x49371b),_0x25aab3[_0x15be('0x75')]=_0x3ecf5a;}}return _0x25aab3;}function rt(_0x5b5dee){return _0x15be('0x3c')===ot(_0x5b5dee[_0x15be('0x5')])[_0x15be('0x23')];}
|