@ckeditor/ckeditor5-comments 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231108.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/lang/contexts.json +2 -0
- 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 _0x4a81=['extendTemplate','isDirty','...','ck-annotation-counter__badge--','setTemplate','number','annotationType','ck-annotation-counter__badge--edit-mode','add','ck-annotation-counter','counterView','bind','bindTemplate','_badge','set'];(function(_0x1f2df6,_0x4a812f){const _0x268751=function(_0x17a6e6){while(--_0x17a6e6){_0x1f2df6['push'](_0x1f2df6['shift']());}};_0x268751(++_0x4a812f);}(_0x4a81,0xe7));const _0x2687=function(_0x1f2df6,_0x4a812f){_0x1f2df6=_0x1f2df6-0x0;let _0x268751=_0x4a81[_0x1f2df6];return _0x268751;};import{ButtonView as _0x5b4816,View as _0x11be7e}from'ckeditor5/src/ui';import _0xe2f38d from'../../../theme/icons/add-comment.svg';export default class D extends _0x5b4816{constructor(_0x1eec35){super(_0x1eec35);const _0x21462a=this[_0x2687('0x6')];this[_0x2687('0x8')](_0x2687('0xa'),!0x1),this[_0x2687('0x8')](_0x2687('0xe'),0x0),this[_0x2687('0x5')](_0x2687('0x7'))['to'](this,_0x2687('0xa'),this,_0x2687('0xe'),(_0x329a8d,_0x1f8e77)=>_0x329a8d?_0x2687('0xb'):_0x1f8e77['toString']()),this[_0x2687('0x8')]('annotationType',''),this['icon']=_0xe2f38d,this[_0x2687('0x9')]({'attributes':{'class':[_0x2687('0x3')]}}),this[_0x2687('0x4')]=new _0x11be7e(),this[_0x2687('0x4')][_0x2687('0xd')]({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x21462a['to'](_0x2687('0x0'),_0x17e86d=>_0x2687('0xc')+_0x17e86d),_0x21462a['if'](_0x2687('0xa'),_0x2687('0x1'))]},'children':[{'text':_0x21462a['to'](_0x2687('0x7'))}]}),this['children'][_0x2687('0x2')](this[_0x2687('0x4')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3626=['isActive','targetRect','_updateHeight','set','fire','focusTracker','height','length','bindTemplate','setTemplate','focus','add','element','clear','ck-annotation-wrapper--active','ck-annotation-wrapper','render','content','listenTo','clientHeight','createCollection','destroy','_mutationObserver','mainView','keystrokes','Esc','detach'];(function(_0x4a84b6,_0x36265e){const _0x56196b=function(_0x3e152b){while(--_0x3e152b){_0x4a84b6['push'](_0x4a84b6['shift']());}};_0x56196b(++_0x36265e);}(_0x3626,0x19d));const _0x5619=function(_0x4a84b6,_0x36265e){_0x4a84b6=_0x4a84b6-0x0;let _0x56196b=_0x3626[_0x4a84b6];return _0x56196b;};import{View as _0x4f0718}from'ckeditor5/src/ui';import{FocusTracker as _0x258695,KeystrokeHandler as _0x3c860e,uid as _0x3d771c}from'ckeditor5/src/utils';import _0x3f7777 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4f0718{constructor(_0x351d07,_0x5896c7){super(_0x351d07),this['id']=_0x3d771c(),this[_0x5619('0x18')]=new _0x258695(),this[_0x5619('0x10')]=new _0x3c860e(),this[_0x5619('0x10')][_0x5619('0x16')](_0x5619('0x11'),(_0x1f0e8f,_0x4993aa)=>this[_0x5619('0x17')](_0x5619('0x11'),_0x4993aa)),this[_0x5619('0x16')](_0x5619('0x14'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5619('0x16')](_0x5619('0x19'),0x0),this['set'](_0x5619('0x13'),!0x1),this[_0x5619('0x16')]('isDirty',!0x1),this[_0x5619('0x16')](_0x5619('0x1a'),0x0),this[_0x5619('0x16')]('type',''),this['_mutationObserver']=_0x3f7777(()=>this['_updateHeight']()),this['content']=this[_0x5619('0xc')](),this['content']['add'](_0x5896c7),this[_0x5619('0xf')]=_0x5896c7;const _0x5d45cd=this[_0x5619('0x0')];this[_0x5619('0x1')]({'tag':'div','attributes':{'class':['ck',_0x5619('0x7'),'ck-rounded-corners',_0x5d45cd['if'](_0x5619('0x13'),_0x5619('0x6'))],'tabindex':-0x1},'children':this[_0x5619('0x9')]});}['render'](){super[_0x5619('0x8')](),this[_0x5619('0x18')][_0x5619('0x3')](this[_0x5619('0x4')]),this[_0x5619('0x10')][_0x5619('0xa')](this['element']),this[_0x5619('0xe')]['attach'](this[_0x5619('0x4')]);}[_0x5619('0xd')](){this[_0x5619('0x9')][_0x5619('0x5')](),this[_0x5619('0x10')][_0x5619('0xd')](),this[_0x5619('0x18')][_0x5619('0xd')](),this[_0x5619('0xe')][_0x5619('0x12')](),super['destroy']();}[_0x5619('0x2')](){this[_0x5619('0x4')][_0x5619('0x2')]();}[_0x5619('0x15')](){const _0x194f05=this[_0x5619('0x4')][_0x5619('0xb')];_0x194f05&&(this[_0x5619('0x19')]=_0x194f05);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1faa=['height','createCollection','_targetTop','ck-sidebar-item--no-animation','top','bindTemplate','render','ck-sidebar-item','detach','bottom','element','isAnimationDisabled','content','destroy','attach','set','setTemplate','div','clear'];(function(_0x44449c,_0x1faaab){const _0x28de19=function(_0xf213a7){while(--_0xf213a7){_0x44449c['push'](_0x44449c['shift']());}};_0x28de19(++_0x1faaab);}(_0x1faa,0x183));const _0x28de=function(_0x44449c,_0x1faaab){_0x44449c=_0x44449c-0x0;let _0x28de19=_0x1faa[_0x44449c];return _0x28de19;};import{View as _0x283a1d}from'ckeditor5/src/ui';import{toUnit as _0x466433}from'ckeditor5/src/utils';import _0x31c648 from'../../utils/createmutationobserver';const jt=_0x466433('px');export default class C extends _0x283a1d{constructor(_0x182c22){super(_0x182c22),this[_0x28de('0x8')](_0x28de('0x10'),0x0),this[_0x28de('0x8')]('height',0x0),this['bind'](_0x28de('0x2'))['to'](this,_0x28de('0x10'),this,_0x28de('0xc'),(_0x2c2b9a,_0x3ca33d)=>_0x2c2b9a+_0x3ca33d),this[_0x28de('0x8')](_0x28de('0x4'),!0x1),this['_mutationObserver']=_0x31c648(()=>this['updateHeight']()),this[_0x28de('0xe')]=null,this[_0x28de('0x5')]=this[_0x28de('0xd')]();const _0x41ff35=this[_0x28de('0x11')];this[_0x28de('0x9')]({'tag':_0x28de('0xa'),'attributes':{'class':[_0x28de('0x0'),_0x41ff35['to'](_0x28de('0x4'),_0x1b475a=>_0x1b475a?_0x28de('0xf'):'')],'style':{'top':_0x41ff35['to'](_0x28de('0x10'),_0x345aeb=>jt(_0x345aeb))}},'children':this[_0x28de('0x5')]});}[_0x28de('0x12')](){super[_0x28de('0x12')](),this['_mutationObserver'][_0x28de('0x7')](this['element']);}['updateHeight'](){const _0x4d2dec=this[_0x28de('0x3')]['clientHeight'];_0x4d2dec&&(this[_0x28de('0xc')]=_0x4d2dec);}[_0x28de('0x6')](){this[_0x28de('0x5')][_0x28de('0xb')](),this['_mutationObserver'][_0x28de('0x1')](),super[_0x28de('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a48=['minHeight','number','div','ck-reset','createCollection','set','list','setTemplate','class','ck-sidebar'];(function(_0x5c142a,_0x5a4816){const _0x32f665=function(_0x575ad2){while(--_0x575ad2){_0x5c142a['push'](_0x5c142a['shift']());}};_0x32f665(++_0x5a4816);}(_0x5a48,0x1e7));const _0x32f6=function(_0x5c142a,_0x5a4816){_0x5c142a=_0x5c142a-0x0;let _0x32f665=_0x5a48[_0x5c142a];return _0x32f665;};import{View as _0x1b23f8}from'ckeditor5/src/ui';import{toUnit as _0x3a78f5}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x3a78f5('px');export default class T extends _0x1b23f8{constructor(_0xb305b8){super(_0xb305b8);const _0x2a2ec2=this['bindTemplate'];this[_0x32f6('0x8')](_0x32f6('0x3'),0x0),this[_0x32f6('0x8')]('class',''),this['list']=this[_0x32f6('0x7')](),this[_0x32f6('0x0')]({'tag':_0x32f6('0x5'),'attributes':{'class':['ck',_0x32f6('0x2'),_0x32f6('0x6'),_0x2a2ec2['to'](_0x32f6('0x1'))],'style':{'minHeight':_0x2a2ec2['to'](_0x32f6('0x3'),_0x5d0574=>_0x32f6('0x4')==typeof _0x5d0574?jt(_0x5d0574+0xa):null)}},'children':this[_0x32f6('0x9')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52dd=['plugins','getOrderedSelectedAnnotations','listenTo','isAttached','set','off','widesidebar-attach-already-attached','switchTo','stopListening','setActiveAnnotation','requires','uiUpdate','high','EditorAnnotations','editors','_editorAnnotations','init','activeAnnotation','resize','widesidebar-detach-not-attached','blur','removeEventListener','get','ck-sidebar--wide','_refreshPositioningDebounced','register','_annotations','detach','_destroyEditorAnnotationsIntegration','remove','pluginName','annotations','wideSidebar','_activeAnnotation','container','_integrateWithEditorAnnotations','cancel','from','context','attach','add','refresh','refreshPositioning','ready','focus'];(function(_0x74a0d4,_0x52dd26){const _0x12a81b=function(_0x1ba25a){while(--_0x1ba25a){_0x74a0d4['push'](_0x74a0d4['shift']());}};_0x12a81b(++_0x52dd26);}(_0x52dd,0x82));const _0x12a8=function(_0x74a0d4,_0x52dd26){_0x74a0d4=_0x74a0d4-0x0;let _0x12a81b=_0x52dd[_0x74a0d4];return _0x12a81b;};import{ContextPlugin as _0x12979f,Context as _0x1412c8}from'ckeditor5/src/core';import _0x4343fd from'./annotationsuis';import _0xfb251a from'./sidebar';import{CKEditorError as _0x3b431d,Collection as _0x368614}from'ckeditor5/src/utils';import{debounce as _0x58be96}from'lodash-es';import _0x2d6773 from'./editorannotations';export default class i extends _0x12979f{static get[_0x12a8('0xf')](){return[_0xfb251a,_0x4343fd];}static get[_0x12a8('0x23')](){return'WideSidebar';}constructor(_0x193e43){super(_0x193e43),this[_0x12a8('0x8')]=!0x1,this[_0x12a8('0x9')]('activeAnnotation',null),this['annotations']=null,this[_0x12a8('0x14')]=new _0x368614(),this[_0x12a8('0x1d')]=_0x58be96(()=>{this[_0x12a8('0x24')][_0x12a8('0x2')]();},0xfa,{'leading':!0x1});}[_0x12a8('0x15')](){const _0x46b278=this[_0x12a8('0x2b')]['plugins'][_0x12a8('0x1b')](_0x4343fd),_0x5a2606=this[_0x12a8('0x2b')][_0x12a8('0x5')][_0x12a8('0x1b')](_0xfb251a);_0x46b278[_0x12a8('0x1e')](_0x12a8('0x25'),this),_0x5a2606[_0x12a8('0x27')]&&_0x46b278[_0x12a8('0xc')](_0x12a8('0x25'));}[_0x12a8('0xe')](_0x219be9){if(_0x219be9===this[_0x12a8('0x16')])return;const _0x37cdac=this[_0x12a8('0x2b')][_0x12a8('0x5')][_0x12a8('0x1b')](_0xfb251a);_0x37cdac[_0x12a8('0x26')]=_0x219be9;const _0xbc93a1=this[_0x12a8('0x16')];this[_0x12a8('0x16')]=_0x219be9,_0x37cdac['refresh']({'blurredAnnotation':_0xbc93a1,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x1e53d1){this['annotations']=_0x1e53d1;const _0x7f24d6=this[_0x12a8('0x2b')]['plugins'][_0x12a8('0x1b')](_0xfb251a);if(_0x7f24d6[_0x12a8('0x1f')]=_0x1e53d1,this[_0x12a8('0x8')])throw new _0x3b431d(_0x12a8('0xb'),this);this['isAttached']=!0x0,this[_0x12a8('0x7')](_0x7f24d6,'set:container',()=>{this['detach'](),this[_0x12a8('0x7')](_0x7f24d6,'change:container',_0x3f007d=>{_0x3f007d[_0x12a8('0xa')](),this[_0x12a8('0x2c')](_0x1e53d1);});}),_0x7f24d6['_attachToContainer']({'viewClass':_0x12a8('0x1c')});const _0x1250cc=_0x331870=>{_0x331870['updateTargetRect'](),_0x7f24d6['addAnnotation'](_0x331870);};for(const _0x422fce of _0x1e53d1)_0x1250cc(_0x422fce);this[_0x12a8('0x7')](_0x1e53d1,_0x12a8('0x0'),(_0x479872,_0x4f1674)=>{_0x1250cc(_0x4f1674);}),this[_0x12a8('0x7')](_0x1e53d1,_0x12a8('0x22'),(_0x4aa8f3,_0x22c514,_0x514d1a)=>{_0x7f24d6['rearrange']({'removedAnnotation':_0x22c514,'previousAnnotation':_0x1e53d1['get'](_0x514d1a-0x1),'nextAnnotation':_0x1e53d1['get'](_0x514d1a+0x1)}),_0x22c514===this[_0x12a8('0x16')]&&this['setActiveAnnotation'](null);},{'priority':_0x12a8('0x11')}),this[_0x12a8('0x7')](_0x1e53d1,_0x12a8('0x4'),(_0x5ae0ef,_0x17fac8)=>{this[_0x12a8('0xe')](_0x17fac8);}),this[_0x12a8('0x7')](_0x1e53d1,_0x12a8('0x19'),()=>{this['setActiveAnnotation'](null);});const _0x2cba1e=this[_0x12a8('0x2b')]instanceof _0x1412c8?this[_0x12a8('0x2b')][_0x12a8('0x13')]:new _0x368614([this[_0x12a8('0x2b')]]);for(const _0x9886a3 of _0x2cba1e)this['_integrateWithEditorAnnotations'](_0x9886a3);this[_0x12a8('0x7')](_0x2cba1e,_0x12a8('0x0'),(_0x13b5e2,_0x2b7db4)=>{this[_0x12a8('0x7')](_0x2b7db4,_0x12a8('0x3'),()=>{this[_0x12a8('0x28')](_0x2b7db4);});}),this[_0x12a8('0x7')](_0x2cba1e,_0x12a8('0x22'),(_0x1af877,_0x1ba00b)=>{_0x1ba00b['plugins']['has'](_0x12a8('0x12'))&&this[_0x12a8('0x21')](_0x1ba00b['plugins'][_0x12a8('0x1b')](_0x12a8('0x12')));}),window['addEventListener'](_0x12a8('0x17'),this['_refreshPositioningDebounced']),this['annotations'][_0x12a8('0x2')]();}[_0x12a8('0x20')](){if(!this[_0x12a8('0x8')])throw new _0x3b431d(_0x12a8('0x18'),this);this[_0x12a8('0xe')](null);const _0xccaa0e=this[_0x12a8('0x2b')][_0x12a8('0x5')]['get'](_0xfb251a);_0xccaa0e['_detachFromContainer'](this[_0x12a8('0x24')]),this[_0x12a8('0xd')](_0xccaa0e),this[_0x12a8('0xd')](this[_0x12a8('0x24')]),this[_0x12a8('0x2b')]instanceof _0x1412c8&&this[_0x12a8('0xd')](this[_0x12a8('0x2b')]['editors']);for(const _0x551104 of Array[_0x12a8('0x2a')](this[_0x12a8('0x14')]))this['_destroyEditorAnnotationsIntegration'](_0x551104);window[_0x12a8('0x1a')](_0x12a8('0x17'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x12a8('0x29')](),this[_0x12a8('0x16')]=null,this[_0x12a8('0x8')]=!0x1,this[_0x12a8('0x24')]=null;}['destroy'](){this['isAttached']&&this[_0x12a8('0x20')]();}[_0x12a8('0x28')](_0x30f03d){const _0x5537a9=_0x30f03d[_0x12a8('0x5')][_0x12a8('0x1b')](_0x2d6773);if(!_0x5537a9)return;const _0x586ffd=()=>{const _0x1e726c=_0x5537a9[_0x12a8('0x6')]({'annotations':this[_0x12a8('0x24')],'activeAnnotation':this[_0x12a8('0x16')]});this['setActiveAnnotation'](_0x1e726c[0x0]||null);};this[_0x12a8('0x7')](_0x5537a9,_0x12a8('0x1'),_0x586ffd),this[_0x12a8('0x7')](_0x5537a9,_0x12a8('0x19'),(_0x472fcc,{isAnnotationTracked:_0x49f074})=>{this[_0x12a8('0x16')]&&_0x49f074(this['activeAnnotation'])&&this[_0x12a8('0xe')](null);}),this[_0x12a8('0x7')](_0x5537a9,_0x12a8('0x10'),()=>{this[_0x12a8('0x1d')]();}),this[_0x12a8('0x7')](this[_0x12a8('0x24')],'blur',_0x234bc1=>{_0x5537a9['hasDomSelection']()&&(_0x586ffd(),_0x234bc1['stop']());},{'priority':_0x12a8('0x11')}),this[_0x12a8('0x14')][_0x12a8('0x0')](_0x5537a9);}[_0x12a8('0x21')](_0x314286){this[_0x12a8('0xd')](_0x314286),this[_0x12a8('0x14')]['remove'](_0x314286);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5355=['isObject','getRanges','isEnabled','backward','_trimToContent','document','item','schema','element','comment:','selection','refresh','push','createRange','model','change','getItems','execute','substr','_hasContent','start','_itemIsContent','addMarker','editor','getLastMatchingPosition'];(function(_0x19780e,_0x535533){const _0x3994e3=function(_0x114b98){while(--_0x114b98){_0x19780e['push'](_0x19780e['shift']());}};_0x3994e3(++_0x535533);}(_0x5355,0xcf));const _0x3994=function(_0x19780e,_0x535533){_0x19780e=_0x19780e-0x0;let _0x3994e3=_0x5355[_0x19780e];return _0x3994e3;};import{Command as _0x5a64fa}from'ckeditor5/src/core';import{uid as _0x42ce47}from'ckeditor5/src/utils';export default class q extends _0x5a64fa{[_0x3994('0x4')](){const _0x20e48a=this[_0x3994('0x10')][_0x3994('0x7')][_0x3994('0x17')][_0x3994('0x3')];for(const _0x417adb of _0x20e48a[_0x3994('0x13')]())if(this[_0x3994('0xc')](_0x417adb))return void(this[_0x3994('0x14')]=!0x0);this['isEnabled']=!0x1;}[_0x3994('0xa')]({threadId:_0x3ba00f=_0x42ce47()}={}){const _0x3d616f=this['editor'][_0x3994('0x7')],_0x4b7ccd=[];for(const _0x5c1959 of _0x3d616f['document']['selection'][_0x3994('0x13')]())this[_0x3994('0xc')](_0x5c1959)&&_0x4b7ccd[_0x3994('0x5')](this[_0x3994('0x16')](_0x5c1959));_0x3d616f[_0x3994('0x8')](_0x37e8cf=>{for(const _0x4fa44d of _0x4b7ccd){const _0x220ded=_0x42ce47()[_0x3994('0xb')](0x1,0x5),_0x375879=_0x3994('0x2')+_0x3ba00f+':'+_0x220ded;_0x37e8cf[_0x3994('0xf')](_0x375879,{'range':_0x4fa44d,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3994('0xc')](_0x14900b){for(const _0x143696 of _0x14900b[_0x3994('0x9')]())if(this[_0x3994('0xe')](_0x143696))return!0x0;return!0x1;}['_itemIsContent'](_0x334f2d){return _0x334f2d['is']('$textProxy')||this['editor'][_0x3994('0x7')][_0x3994('0x0')][_0x3994('0x12')](_0x334f2d)&&!_0x334f2d['is'](_0x3994('0x1'),'tableCell');}[_0x3994('0x16')](_0x478b68){const _0xbca3cd=_0x48c6ad=>!this[_0x3994('0xe')](_0x48c6ad[_0x3994('0x18')]),_0x25e18f=_0x478b68[_0x3994('0xd')]['getLastMatchingPosition'](_0xbca3cd),_0x3a10ce=_0x478b68['end'][_0x3994('0x11')](_0xbca3cd,{'direction':_0x3994('0x15')});return this['editor']['model'][_0x3994('0x6')](_0x25e18f,_0x3a10ce);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7bf0=['has','_calculatePosition','findIndex','getCommentThread','listenTo','highest','remove','pluginName','archivedAt','length','plugins','context','archivedThreads','init','focus','stopListening','CommentsArchive','add','requires','get','addCommentThread'];(function(_0x300ef2,_0x7bf087){const _0xac229d=function(_0x1563f3){while(--_0x1563f3){_0x300ef2['push'](_0x300ef2['shift']());}};_0xac229d(++_0x7bf087);}(_0x7bf0,0x12e));const _0xac22=function(_0x300ef2,_0x7bf087){_0x300ef2=_0x300ef2-0x0;let _0xac229d=_0x7bf0[_0x300ef2];return _0xac229d;};import{ContextPlugin as _0x56ed38}from'ckeditor5/src/core';import{Collection as _0x23dcfb}from'ckeditor5/src/utils';import _0x5ad177 from'./commentsrepository';import _0x3a2d7e from'../annotations/annotations';export default class p extends _0x56ed38{static get[_0xac22('0x14')](){return _0xac22('0x8');}static get[_0xac22('0xa')](){return[_0x5ad177,_0x3a2d7e];}constructor(_0x57c644){super(_0x57c644),this['archivedThreads']=new _0x23dcfb();}[_0xac22('0x5')](){const _0x98a03=this[_0xac22('0x3')],_0x396b7f=_0x98a03[_0xac22('0x2')][_0xac22('0xb')](_0x5ad177),_0x4d4627=_0x98a03[_0xac22('0x2')]['get'](_0x3a2d7e);this[_0xac22('0x11')](_0x396b7f,_0xac22('0xc'),(_0x11750a,{threadId:_0x3e932f})=>{const _0x245ce3=_0x396b7f[_0xac22('0x10')](_0x3e932f);_0x245ce3['archivedAt']&&this[_0xac22('0x4')]['add'](_0x245ce3,this[_0xac22('0xe')](_0x245ce3[_0xac22('0x0')])),this[_0xac22('0x11')](_0x245ce3,'change:archivedAt',(_0x17e207,_0x564aa8,_0x4725e9)=>{_0x4725e9?this[_0xac22('0x4')][_0xac22('0xd')](_0x245ce3)||this[_0xac22('0x4')][_0xac22('0x9')](_0x245ce3,this['_calculatePosition'](_0x245ce3[_0xac22('0x0')])):this[_0xac22('0x4')][_0xac22('0xd')](_0x245ce3)&&this[_0xac22('0x4')][_0xac22('0x13')](_0x245ce3);});}),this[_0xac22('0x11')](_0x396b7f,'removeCommentThread',(_0x5484a9,{threadId:_0x572d7e})=>{const _0x3ceb72=_0x396b7f[_0xac22('0x10')](_0x572d7e);this[_0xac22('0x7')](_0x3ceb72),this[_0xac22('0x4')][_0xac22('0xd')](_0x3ceb72)&&this['archivedThreads'][_0xac22('0x13')](_0x3ceb72);},{'priority':_0xac22('0x12')}),this[_0xac22('0x11')](_0x4d4627['collection'],_0xac22('0x6'),(_0x49393d,_0x318bbe)=>{_0x318bbe['isActive']=!0x0,_0x4d4627['activate'](_0x318bbe);});}[_0xac22('0xe')](_0x147b54){const _0x20bc2e=[...this['archivedThreads']][_0xac22('0xf')](_0x46a564=>_0x46a564[_0xac22('0x0')]<_0x147b54);return _0x20bc2e>-0x1?_0x20bc2e:this[_0xac22('0x4')][_0xac22('0x1')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3da6=['editor','focusTracker','requires','pluginName','config','buttonView','Annotations','plugins','panelView','mainView','isVisible','locale','get','ck-comments-archive-dropdown','channelId','_createArchiveUIDropdown','archivedAt','classList','view','archivedThreads','_handleAnnotationFocusableElements','change:isOpen','componentFactory','find','_calculatePosition','extendTemplate','length','focusableElements','push','COMMENTS_ARCHIVE','remove','commentsArchiveView','collaboration.channelId','annotationViews','ck-body','set','contains','collection','splice','add','getByInnerView','stopListening','_threadToController','children','listenTo','_pendingThreads','CommentsRepository','_visibleAnnotations','CommentsArchiveUI','commentsArchive'];(function(_0x1260c5,_0x3da631){const _0x47974a=function(_0x586067){while(--_0x586067){_0x1260c5['push'](_0x1260c5['shift']());}};_0x47974a(++_0x3da631);}(_0x3da6,0xb1));const _0x4797=function(_0x1260c5,_0x3da631){_0x1260c5=_0x1260c5-0x0;let _0x47974a=_0x3da6[_0x1260c5];return _0x47974a;};import'../../theme/commentsarchive.css';import{Plugin as _0x37f780}from'ckeditor5/src/core';import{createDropdown as _0x91a99,ViewCollection as _0x7528da}from'ckeditor5/src/ui';import _0x5cb27a from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x3cc135}from'../utils/common-translations';import _0x3f8b0f from'./ui/view/commentsarchiveview';import _0x13ba28 from'./commentsarchive';export default class a extends _0x37f780{static get[_0x4797('0x1a')](){return _0x4797('0x15');}static get[_0x4797('0x19')](){return[_0x13ba28];}constructor(_0x35c5f1){super(_0x35c5f1),this[_0x4797('0x6')]=new _0x7528da(),this[_0x4797('0x12')]=[];}['init'](){this['editor']['ui'][_0x4797('0x2d')][_0x4797('0xc')](_0x4797('0x16'),()=>this[_0x4797('0x26')]());const _0x12aee9=this[_0x4797('0x17')]['plugins']['get'](_0x13ba28),_0x297161=this[_0x4797('0x17')][_0x4797('0x1e')]['get'](_0x4797('0x1d')),_0x5c724d=this[_0x4797('0x17')][_0x4797('0x1e')][_0x4797('0x23')](_0x4797('0x13'));this[_0x4797('0x11')](_0x12aee9[_0x4797('0x2a')],_0x4797('0xc'),(_0xa8f57c,_0x1d3129)=>{const _0x364a8f=this[_0x4797('0x17')]['config'][_0x4797('0x23')]('collaboration.channelId');if(!_0x364a8f||_0x1d3129['channelId']===_0x364a8f){const _0x212262=this[_0x4797('0x2f')](_0x1d3129[_0x4797('0x27')]),_0x76f104=_0x5c724d[_0x4797('0xf')]['get'](_0x1d3129);if(!_0x76f104)return void this['_pendingThreads'][_0x4797('0x1')]({'thread':_0x1d3129,'position':_0x212262});const _0x2e082a=_0x297161['getByInnerView'](_0x76f104[_0x4797('0x29')]);_0x2e082a[_0x4797('0x21')]&&_0x297161[_0x4797('0x14')][_0x4797('0x3')](_0x2e082a),this[_0x4797('0x6')][_0x4797('0xc')](_0x2e082a[_0x4797('0x29')],_0x212262);}}),this[_0x4797('0x11')](_0x297161[_0x4797('0xa')],_0x4797('0xc'),(_0x53e240,_0x566aa9)=>{const _0x5ede23=this[_0x4797('0x12')][_0x4797('0x2e')](({thread:_0x2fc201})=>{const _0x9ae5f6=_0x5c724d[_0x4797('0xf')][_0x4797('0x23')](_0x2fc201);return _0x9ae5f6&&_0x566aa9['innerView']===_0x9ae5f6[_0x4797('0x29')];});_0x5ede23&&(this[_0x4797('0x6')][_0x4797('0xc')](_0x566aa9['view'],_0x5ede23['position']),this[_0x4797('0x12')][_0x4797('0xb')](this[_0x4797('0x12')]['indexOf'](_0x5ede23),0x1));}),this[_0x4797('0x11')](_0x12aee9[_0x4797('0x2a')],_0x4797('0x3'),(_0x4a208f,_0x58fc19)=>{const _0x1c8c51=this[_0x4797('0x17')][_0x4797('0x1b')][_0x4797('0x23')](_0x4797('0x5'));if(!_0x1c8c51||_0x58fc19[_0x4797('0x25')]===_0x1c8c51){const _0x46f48d=_0x5c724d[_0x4797('0xf')]['get'](_0x58fc19),_0x16ac00=_0x297161[_0x4797('0xd')](_0x46f48d['view']);this[_0x4797('0x6')]['remove'](_0x16ac00['view']),this[_0x4797('0xe')](_0x16ac00['focusableElements']);}});}[_0x4797('0x2b')](_0x10d7ce,_0x492c83){for(const _0xc6c7b8 of _0x492c83['focusableElements'])_0xc6c7b8[_0x4797('0x28')][_0x4797('0x9')](_0x4797('0x7'))&&_0x10d7ce[_0x4797('0x18')][_0x4797('0xc')](_0xc6c7b8);this[_0x4797('0x11')](_0x492c83[_0x4797('0x0')],_0x4797('0xc'),(_0x30102b,_0x3ca0eb)=>{_0x3ca0eb[_0x4797('0x28')][_0x4797('0x9')](_0x4797('0x7'))&&_0x10d7ce[_0x4797('0x18')]['add'](_0x3ca0eb);}),this[_0x4797('0x11')](_0x492c83['focusableElements'],'remove',(_0x42b9cf,_0x5db249)=>{_0x5db249['classList'][_0x4797('0x9')]('ck-body')&&_0x10d7ce[_0x4797('0x18')]['remove'](_0x5db249);});}[_0x4797('0x2f')](_0x4fd666){const _0x263840=this[_0x4797('0x17')][_0x4797('0x1b')][_0x4797('0x23')]('collaboration.channelId'),_0x257a77=[...this['editor']['plugins']['get'](_0x13ba28)[_0x4797('0x2a')]]['filter'](_0x3bc59e=>_0x3bc59e[_0x4797('0x25')]===_0x263840)['findIndex'](_0x384377=>_0x384377[_0x4797('0x27')]<_0x4fd666);return _0x257a77>-0x1?_0x257a77-0x1:this[_0x4797('0x6')][_0x4797('0x31')];}[_0x4797('0x26')](){const _0x4b96f5=this[_0x4797('0x17')],_0x589eb4=this[_0x4797('0x17')][_0x4797('0x1e')][_0x4797('0x23')](_0x4797('0x1d')),_0x103665=_0x91a99(_0x4b96f5['locale']);_0x103665[_0x4797('0x1c')][_0x4797('0x8')]({'icon':_0x5cb27a,'label':_0x3cc135(_0x4b96f5['locale'],_0x4797('0x2')),'tooltip':!0x0}),_0x103665[_0x4797('0x1f')][_0x4797('0x30')]({'attributes':{'class':_0x4797('0x24')}}),_0x103665['on'](_0x4797('0x2c'),(_0x4d2c60,_0x18ec9d,_0x334c02)=>{this[_0x4797('0x4')]||(this[_0x4797('0x4')]=new _0x3f8b0f(_0x4b96f5[_0x4797('0x22')],this['annotationViews'])),_0x334c02?_0x103665['panelView']['children'][_0x4797('0xc')](this[_0x4797('0x4')]):_0x103665[_0x4797('0x1f')][_0x4797('0x10')][_0x4797('0x3')](this['commentsArchiveView']);});for(const _0xdbe96c of this['annotationViews']){const _0x4e2aa2=_0x589eb4[_0x4797('0xd')](_0xdbe96c['mainView']);this[_0x4797('0x2b')](_0x103665,_0x4e2aa2);}return _0x103665[_0x4797('0x11')](this[_0x4797('0x6')],_0x4797('0xc'),(_0x3b8ede,_0x305e7a)=>{const _0x46b31d=_0x589eb4[_0x4797('0xd')](_0x305e7a[_0x4797('0x20')]);this[_0x4797('0x2b')](_0x103665,_0x46b31d);}),_0x103665['listenTo'](this[_0x4797('0x6')],_0x4797('0x3'),(_0x39c72d,_0x1f7110)=>{const _0x143660=_0x589eb4[_0x4797('0xd')](_0x1f7110[_0x4797('0x20')]);for(const _0x24879b of _0x143660['focusableElements'])_0x24879b['classList'][_0x4797('0x9')](_0x4797('0x7'))&&_0x103665[_0x4797('0x18')][_0x4797('0x3')](_0x24879b);}),_0x103665;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x54ef=['editingDowncast','isThreadsLoadingPaused','registerPostFixer','setContext','data','setUnlinkedAt','_attachResolvedThread','ck-comment-marker--active','commands','_attachMarkerToThread','isObject','name','requires','openNewCommentThread','comment:','end','scrollToThreadMarker','$textProxy','set','reopenCommentThread','clear','dataDowncast','isResolved','destroy','context','upcast','schema','document','registerAnnotation','getByInnerView','editor','_handleMarkerAddAndRemove','createRange','newRange','hasContent','attachTo','isEqual','collaboration.channelId','_handleThreadMarker','add','text','length','unlinkedAt','getWalker','for','focus','affectsData','getCommentThreads','state','_threadToController','managedUsingOperations','delete','isAttached','destroyed','activeMarker','dataToMarker','markerToHighlight','model','createPositionBefore','start','$graveyard','hasDomSelection','consumable','change:isReadOnly','getAttribute','get','switchReadOnly','getCommentThread','elementToElement','ready','change:isThreadsLoadingPaused','comment','removeMarker','listenTo','reconvertMarker','differ','addCommentThread','isCollapsed','render','pluginName','root','low','_initializeMarkerConverters','_getTextContext','hasMarkerForId','getAllMarkersForId','markerToData','item','markerName','_getTargetForId','removeMarker:','startsWith','_reconvertMarkers','getChangedMarkers','createElement','change','_hasTargetInContent','conversion','plugins','editing','_threads','view','$marker','resolveCommentThread','markers','enqueueChange','updateMarker','config'];(function(_0x44930d,_0x54ef5c){const _0x59919=function(_0x3f4843){while(--_0x3f4843){_0x44930d['push'](_0x44930d['shift']());}};_0x59919(++_0x54ef5c);}(_0x54ef,0x184));const _0x5991=function(_0x44930d,_0x54ef5c){_0x44930d=_0x44930d-0x0;let _0x59919=_0x54ef[_0x44930d];return _0x59919;};import{Plugin as _0x57deb5}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2c7a75}from'ckeditor5/src/utils';import _0xf6dc93 from'./commentsrepository';import _0x77669 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4b278a}from'ckeditor5-collaboration/src/collaboration-core';import _0x127b2a from'../annotations/editorannotations';import _0x20f126 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x266f16 from'./integrations/importword';import _0xaf2865 from'../annotations/annotations';export default class r extends _0x57deb5{static get[_0x5991('0x38')](){return[_0xf6dc93,_0x127b2a,_0x20f126,_0x266f16];}static get[_0x5991('0xf')](){return'CommentsEditing';}constructor(_0x3060c2){super(_0x3060c2),this[_0x5991('0x3e')]('isThreadsLoadingPaused',!0x0),_0x3060c2['data']['once'](_0x5991('0x5'),()=>this[_0x5991('0x2d')]=!0x1),this['set'](_0x5991('0x62'),null),this['on']('change:activeMarker',(_0x5a8c77,_0xb3862c,_0x87444f,_0x802faa)=>{const _0x2850f2=_0x87444f?tt(_0x87444f)['id']:null;if(_0x3060c2[_0x5991('0x65')][_0x5991('0x1f')](()=>{if(_0x2850f2){const _0x5d464d=this[_0x5991('0x15')](_0x2850f2);for(const _0x14da02 of _0x5d464d)_0x3060c2[_0x5991('0x23')][_0x5991('0xa')](_0x14da02);}if(_0x802faa){const {id:_0xa90c5e}=tt(_0x802faa),_0x56e9e0=this[_0x5991('0x15')](_0xa90c5e);for(const _0x1148cd of _0x56e9e0)_0x3060c2['editing'][_0x5991('0xa')](_0x1148cd);}}),_0x2850f2){const _0x300e03=_0x3060c2[_0x5991('0x22')][_0x5991('0x1')](_0xf6dc93)[_0x5991('0x3')](_0x2850f2);_0x300e03&&_0x300e03[_0x5991('0x42')]&&this[_0x5991('0x3c')](_0x2850f2);}});}['init'](){const _0x387b7=this['editor'],_0x63896d=_0x387b7['plugins'][_0x5991('0x1')](_0xf6dc93),_0x21f496=_0x387b7['config'][_0x5991('0x1')](_0x5991('0x51'));_0x387b7[_0x5991('0x34')][_0x5991('0x53')](_0x5991('0xc'),new _0x77669(_0x387b7)),this[_0x5991('0x9')](_0x387b7,_0x5991('0x6b'),(_0x21c457,_0x34522f,_0x226ea6)=>{_0x63896d[_0x5991('0x2')](_0x226ea6,_0x387b7[_0x5991('0x2b')]['get']('collaboration.channelId'));}),this[_0x5991('0x9')](_0x63896d,Z(_0x5991('0xc'),_0x21f496),(_0x5ec16a,{threadId:_0x379a5f})=>{const _0x20aebd=this[_0x5991('0x4a')]['plugins'][_0x5991('0x1')](_0xf6dc93)[_0x5991('0x3')](_0x379a5f);_0x20aebd&&_0x20aebd['archivedAt']&&this[_0x5991('0x32')](_0x379a5f);}),this[_0x5991('0x9')](_0x63896d,Z('removeCommentThread',_0x21f496),(_0x10566a,{threadId:_0x48fa43})=>{_0x387b7[_0x5991('0x65')][_0x5991('0x29')]({'isUndoable':!0x1},_0x2a3401=>{const _0xde6598=this[_0x5991('0x15')](_0x48fa43);for(const _0x346993 of _0xde6598)_0x2a3401[_0x5991('0x8')](_0x346993);});}),this[_0x5991('0x9')](_0x63896d,Z(_0x5991('0x27'),_0x21f496),(_0x471805,{threadId:_0x55f2de})=>{(this[_0x5991('0x32')](_0x55f2de),this[_0x5991('0x1c')](_0x55f2de),this['editor']['editing'][_0x5991('0x25')][_0x5991('0x69')])&&(this[_0x5991('0x4a')]['plugins'][_0x5991('0x1')](_0xf6dc93)['getCommentThread'](_0x55f2de)[_0x5991('0x56')]||this[_0x5991('0x4a')][_0x5991('0x23')][_0x5991('0x25')][_0x5991('0x59')]());},{'priority':'low'}),this['listenTo'](_0x63896d,Z(_0x5991('0x3f'),_0x21f496),(_0xc6a3eb,{threadId:_0x4a3917})=>{this['_reconvertMarkers'](_0x4a3917);},{'priority':'low'}),this[_0x5991('0x9')](_0x63896d,Z('addComment',_0x21f496),(_0x3307c2,{threadId:_0x316061,isFromAdapter:_0x2ca80c})=>{const _0x796c79=this[_0x5991('0x15')](_0x316061);if(_0x2ca80c||0x0==_0x796c79['length']||!_0x63896d['hasCommentThread'](_0x316061))return;0x1===_0x63896d['getCommentThread'](_0x316061)['length']&&_0x387b7[_0x5991('0x65')]['enqueueChange']({'isUndoable':!0x1},_0x3b82b1=>{for(const _0x28e9e9 of _0x796c79)_0x3b82b1[_0x5991('0x2a')](_0x28e9e9,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5991('0x11')}),this[_0x5991('0x12')](),this['_handleMarkerAddAndRemove']();}[_0x5991('0x43')](){const _0x41810b=this[_0x5991('0x4a')][_0x5991('0x22')][_0x5991('0x1')](_0xf6dc93),_0x126a11=this[_0x5991('0x4a')][_0x5991('0x2b')][_0x5991('0x1')]('collaboration.channelId');for(const _0xce6480 of _0x41810b[_0x5991('0x5b')]({'channelId':_0x126a11}))_0x41810b['_detachCommentThread'](_0xce6480['id']),_0x41810b[_0x5991('0x24')]['delete'](_0xce6480['id']);super[_0x5991('0x43')]();}[_0x5991('0x14')](_0x51c61e){return this[_0x5991('0x15')](_0x51c61e)[_0x5991('0x55')]>0x0;}['getAllMarkersForId'](_0x149b97){const _0x5eb07b=[];for(const _0x1f4712 of this[_0x5991('0x4a')][_0x5991('0x65')][_0x5991('0x28')])_0x1f4712[_0x5991('0x37')][_0x5991('0x1b')](_0x5991('0x3a')+_0x149b97)&&_0x5eb07b['push'](_0x1f4712);return _0x5eb07b;}['scrollToThreadMarker'](_0x54c1f3){const _0x52bfe4=this[_0x5991('0x19')](_0x54c1f3);_0x52bfe4&&setTimeout(()=>{this[_0x5991('0x62')]&&tt(this['activeMarker'])['id']===_0x54c1f3&&_0x2c7a75({'target':_0x52bfe4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x501425){this['editor'][_0x5991('0x65')]['change'](()=>{for(const _0x7fac7f of this[_0x5991('0x15')](_0x501425))this['editor'][_0x5991('0x23')][_0x5991('0xa')](_0x7fac7f);});}[_0x5991('0x32')](_0x4fb193){const _0x538534=this[_0x5991('0x4a')][_0x5991('0x22')][_0x5991('0x1')](_0xf6dc93),_0x3da6e3=this[_0x5991('0x4a')][_0x5991('0x22')]['get'](_0x127b2a),_0x10ea44=_0x538534[_0x5991('0x3')](_0x4fb193);if(!_0x10ea44[_0x5991('0x60')]){const _0x463730=_0x10ea44[_0x5991('0x4f')](()=>this['_getTargetForId'](_0x10ea44['id']));_0x3da6e3['registerAnnotation'](_0x463730),_0x10ea44[_0x5991('0x20')]=!0x1;}}[_0x5991('0x12')](){const _0x40be0b=this[_0x5991('0x4a')];_0x40be0b[_0x5991('0x21')][_0x5991('0x58')](_0x5991('0x2c'))[_0x5991('0x64')]({'model':_0x5991('0x7'),'view':(_0x37d2a8,_0x8f4b8c)=>{const {id:_0x160fc0}=tt(_0x37d2a8['markerName']),_0x266427=_0x40be0b['plugins'][_0x5991('0x1')](_0xf6dc93)[_0x5991('0x3')](_0x160fc0),_0x5c15a5=this[_0x5991('0x62')]&&tt(this[_0x5991('0x62')])['id']===_0x160fc0;if(_0x266427&&_0x266427[_0x5991('0x42')]&&!_0x5c15a5&&_0x37d2a8[_0x5991('0x17')])return _0x8f4b8c['consumable']['consume'](_0x37d2a8[_0x5991('0x17')],'addMarker:'+_0x37d2a8[_0x5991('0x18')]),_0x8f4b8c[_0x5991('0x6a')]['consume'](_0x37d2a8[_0x5991('0x17')],_0x5991('0x1a')+_0x37d2a8['markerName']),{'classes':[]};const _0x14ee9d=['ck-comment-marker'];return _0x5c15a5&&_0x14ee9d['push'](_0x5991('0x33')),{'classes':_0x14ee9d,'attributes':{'data-comment':_0x160fc0}};}}),_0x40be0b[_0x5991('0x21')][_0x5991('0x58')](_0x5991('0x41'))[_0x5991('0x16')]({'model':_0x5991('0x7'),'view':(_0xd27355,{options:_0x571025})=>{const _0xd010d6=_0x40be0b[_0x5991('0x22')]['get'](_0xf6dc93),_0x12d4bf=_0x40be0b[_0x5991('0x65')][_0x5991('0x28')][_0x5991('0x1')](_0xd27355),{id:_0x18ca0e,part:_0x16dbe0}=tt(_0xd27355);if(_0x12d4bf&&!_0x12d4bf[_0x5991('0x5a')])return null;if(_0x571025['ignoreResolvedComments']){const _0x3ae1ca=_0xd010d6['getCommentThread'](_0x18ca0e);if(_0x3ae1ca&&_0x3ae1ca[_0x5991('0x42')])return null;}return{'group':_0x5991('0x7'),'name':_0x16dbe0?_0x18ca0e+':'+_0x16dbe0:_0x18ca0e};}}),_0x40be0b[_0x5991('0x21')]['for'](_0x5991('0x45'))[_0x5991('0x4')]({'view':{'name':_0x5991('0x7'),'attributes':{'id':/^\w/}},'model':(_0x5a6f4c,{writer:_0x4edc4c})=>_0x4edc4c[_0x5991('0x1e')](_0x5991('0x26'),{'data-name':'comment:'+_0x5a6f4c[_0x5991('0x0')]('id')})}),_0x40be0b[_0x5991('0x21')][_0x5991('0x58')]('upcast')[_0x5991('0x63')]({'view':'comment'});}[_0x5991('0x4b')](){const _0x3ba447=this[_0x5991('0x4a')],_0x31b662=_0x3ba447[_0x5991('0x22')][_0x5991('0x1')](_0xf6dc93),_0x266349=new Set(),_0x23c3cc=new Set();_0x3ba447[_0x5991('0x65')]['document'][_0x5991('0x2e')](_0x5296ce=>{let _0x32e2ee=!0x1;for(const {name:_0x4c4a95,data:_0x57b6c6}of _0x3ba447[_0x5991('0x65')][_0x5991('0x47')]['differ'][_0x5991('0x1d')]()){const {group:_0x118b8c,id:_0x16767e}=tt(_0x4c4a95);let _0x4339f3=_0x57b6c6[_0x5991('0x4d')];if(_0x5991('0x7')!==_0x118b8c||!_0x4339f3)continue;const _0x268a13=_0x5991('0x68')===_0x4339f3[_0x5991('0x10')]['rootName'];_0x268a13||(_0x4339f3=ot(_0x4339f3,_0x3ba447[_0x5991('0x65')]),!_0x4339f3||_0x4339f3[_0x5991('0xd')]||!_0x57b6c6['newRange']||_0x4339f3[_0x5991('0x50')](_0x57b6c6[_0x5991('0x4d')]))?_0x3ba447[_0x5991('0x65')][_0x5991('0x4e')](_0x4339f3)&&!_0x268a13?this[_0x5991('0x2d')]?_0x266349['add'](_0x4c4a95):this[_0x5991('0x52')](_0x4c4a95,_0x16767e):(_0x23c3cc[_0x5991('0x53')](_0x4c4a95),_0x266349['delete'](_0x4c4a95),_0x5296ce['removeMarker'](_0x4c4a95),_0x32e2ee=!0x0):(_0x5296ce[_0x5991('0x2a')](_0x4c4a95,{'range':_0x4339f3}),_0x32e2ee=!0x0);}return _0x32e2ee;}),this['on'](_0x5991('0x6'),(_0x4a717a,_0x3d832f,_0x5abc4a)=>{if(!_0x5abc4a&&_0x266349['size'])for(const _0x3e8c6a of _0x266349){const {id:_0x40c5a0}=tt(_0x3e8c6a);_0x266349['delete'](_0x3e8c6a),_0x3ba447[_0x5991('0x65')]['markers']['get'](_0x3e8c6a)&&this[_0x5991('0x52')](_0x3e8c6a,_0x40c5a0);}}),this[_0x5991('0x9')](_0x3ba447[_0x5991('0x65')][_0x5991('0x47')],_0x5991('0x1f'),(_0x31f6f1,_0x44a2a0)=>{for(const {name:_0x44c7a1,data:{newRange:_0x456ae}}of _0x3ba447[_0x5991('0x65')][_0x5991('0x47')][_0x5991('0xb')][_0x5991('0x1d')]()){const {group:_0x523a1f,id:_0x46535d}=tt(_0x44c7a1);if(_0x5991('0x7')!==_0x523a1f)continue;const _0x4bcae1=_0x31b662[_0x5991('0x3')](_0x46535d),_0x1bfc86=this[_0x5991('0x14')](_0x46535d);_0x4bcae1&&(_0x4bcae1[_0x5991('0x20')]||_0x3ba447[_0x5991('0x23')][_0x5991('0x25')]['once'](_0x5991('0xe'),()=>{const _0x109b6a=_0x3ba447['plugins'][_0x5991('0x1')](_0xaf2865),_0x5f0788=_0x31b662[_0x5991('0x5d')][_0x5991('0x1')](_0x4bcae1)[_0x5991('0x25')];_0x109b6a[_0x5991('0x49')](_0x5f0788)['refreshVisibility']();},{'priority':_0x5991('0x11')}),_0x4bcae1['_hasTargetInContent']=_0x1bfc86||!!_0x456ae),_0x456ae||(_0x23c3cc['add'](_0x44c7a1),_0x266349[_0x5991('0x5f')](_0x44c7a1));}if(_0x44a2a0['isLocal'])for(const _0x1ce9f1 of _0x23c3cc){const {id:_0x2dc47d}=tt(_0x1ce9f1),_0xb8699f=_0x31b662[_0x5991('0x3')](_0x2dc47d),_0x44b3f4=this[_0x5991('0x14')](_0x2dc47d);_0x266349[_0x5991('0x5f')](_0x1ce9f1),!_0xb8699f||_0x44b3f4||_0xb8699f[_0x5991('0x56')]||_0xb8699f[_0x5991('0x31')](new Date());}_0x23c3cc[_0x5991('0x40')]();});}['_getTargetForId'](_0x4adb86){const _0x590ad8=this[_0x5991('0x4a')],_0x47dd72=this['getAllMarkersForId'](_0x4adb86);return _0x4b278a(_0x590ad8['editing'],_0x47dd72);}['_getTextContext'](_0x862c24){const _0x2dee9f=this[_0x5991('0x15')](_0x862c24);let _0x41006d='',_0x53d2e0=!0x1;for(const _0x1be874 of _0x2dee9f){const _0x4bfe6f=_0x1be874['getRange']();for(const _0x4a0243 of Array['from'](_0x4bfe6f['getItems']()))_0x4a0243['is'](_0x5991('0x3d'))?(_0x41006d&&_0x53d2e0&&(_0x41006d+='\x20',_0x53d2e0=!0x1),_0x41006d+=_0x4a0243[_0x5991('0x30')]):_0x53d2e0=!0x0;_0x53d2e0=!0x0;}return _0x41006d['substring'](0x0,0x96);}[_0x5991('0x35')](_0x103776,_0x53bda9){const _0x3efe15=this['editor'],_0x4e7609=_0x3efe15[_0x5991('0x22')]['get'](_0xf6dc93);let _0xc24a29=_0x4e7609['getCommentThread'](_0x53bda9);const _0x1551ce=_0x3efe15[_0x5991('0x2b')]['get']('collaboration.channelId'),_0x1bf111=_0x3efe15[_0x5991('0x22')][_0x5991('0x1')](_0x127b2a);if(_0xc24a29&&(_0xc24a29[_0x5991('0x56')]&&_0xc24a29[_0x5991('0x31')](null),_0xc24a29['isAttached']))return _0xc24a29;return!this[_0x5991('0x15')](_0x53bda9)[0x0][_0x5991('0x5e')]?_0x3efe15[_0x5991('0x23')][_0x5991('0x25')]['once'](_0x5991('0xe'),()=>{if(_0x4e7609['getCommentThread'](_0x53bda9))return;const _0x138db5=_0x3efe15[_0x5991('0x22')][_0x5991('0x1')](_0xaf2865);_0xc24a29=_0x4e7609[_0x5991('0x39')]({'channelId':_0x1551ce,'threadId':_0x53bda9,'target':()=>this[_0x5991('0x19')](_0x53bda9),'context':{'type':_0x5991('0x54'),'value':this[_0x5991('0x13')](_0x53bda9)}});const _0x28abc8=_0x4e7609[_0x5991('0x5d')][_0x5991('0x1')](_0xc24a29)[_0x5991('0x25')],_0x1b37a1=_0x138db5[_0x5991('0x49')](_0x28abc8);_0x1b37a1&&_0x1bf111[_0x5991('0x48')](_0x1b37a1);},{'priority':'low'}):_0x4e7609['fetchCommentThread']({'channelId':_0x1551ce,'threadId':_0x53bda9})['then'](_0x3dea0c=>{if(_0x5991('0x61')!==_0x3efe15[_0x5991('0x5c')]){if(_0xc24a29=_0x3dea0c,_0xc24a29&&!_0xc24a29[_0x5991('0x60')]){const _0x2ea0fe=_0xc24a29[_0x5991('0x4f')](()=>this[_0x5991('0x19')](_0x53bda9));_0x1bf111[_0x5991('0x48')](_0x2ea0fe),_0xc24a29['isResolved']&&this[_0x5991('0x1c')](_0x53bda9);}else{if(!_0xc24a29){const _0x14b32a=this[_0x5991('0x15')](_0x53bda9);_0x3efe15[_0x5991('0x65')][_0x5991('0x1f')](_0x5be268=>{for(const _0x599e59 of _0x14b32a)_0x5be268[_0x5991('0x8')](_0x599e59);});}}}}),_0xc24a29;}['_handleThreadMarker'](_0x55b9af,_0x18ddb8){const _0x2e6038=this['_attachMarkerToThread'](_0x55b9af,_0x18ddb8);_0x2e6038&&!_0x2e6038[_0x5991('0x44')]&&_0x2e6038[_0x5991('0x2f')]({'type':_0x5991('0x54'),'value':this[_0x5991('0x13')](_0x18ddb8)});}}function Z(_0x5d4d86,_0x4f8899){return _0x4f8899?_0x5d4d86+':'+_0x4f8899:_0x5d4d86;}function tt(_0x14f29a){const _0x553d51=_0x14f29a['split'](':');return{'group':_0x553d51[0x0],'id':_0x553d51[0x1],'part':_0x553d51[0x2]};}function ot(_0x2ffd2a,_0x1ab156){const _0x2a6320=_0x1ab156[_0x5991('0x46')],_0x3f4aba=_0x1ab156[_0x5991('0x4c')](_0x2ffd2a[_0x5991('0x67')]);for(const _0x424017 of _0x2ffd2a[_0x5991('0x57')]()){const {type:_0x3f5c65,item:_0x2a0e91,nextPosition:_0x114afe}=_0x424017;if(_0x5991('0x54')===_0x3f5c65||_0x2a6320[_0x5991('0x36')](_0x2a0e91)){const _0x15f93b=_0x1ab156[_0x5991('0x66')](_0x2a0e91);_0x3f4aba[_0x5991('0xd')]&&(_0x3f4aba[_0x5991('0x67')]=_0x15f93b),_0x3f4aba[_0x5991('0x3b')]=_0x114afe;}}return _0x3f4aba;}
|
|
23
|
+
const _0x220f=['clear','data','isLocal','low','removeMarker:','change','dataDowncast','createPositionBefore','LEAVE_COMMENT_ANNOUNCEMENT','updateMarker','unlinkedAt','_threads','startsWith','then','destroy','_hasTargetInContent','listenTo','$textProxy','getByInnerView','config','push','addComment','addMarker:','consumable','enqueueChange','conversion','$marker','rootName','size','render','_threadToController','reconvertMarker','activeMarker','isResolved','model','getAttribute','context','commands','comment','from','state','dataToMarker','plugins','editingDowncast','_detachCommentThread','view','ck-comment-marker','hasCommentThread','createElement','length','openNewCommentThread','createRange','_attachMarkerToThread','attachTo','removeMarker','_handleThreadMarker','hasContent','scrollToThreadMarker','_handleMarkerAddAndRemove','ready','getWalker','getAllMarkersForId','differ','isObject','newRange','ignoreResolvedComments','hasMarkerForId','locale','group','_getTextContext','set','root','_attachResolvedThread','hasDomSelection','affectsData','isThreadsLoadingPaused','_getTargetForId','change:isReadOnly','_reconvertMarkers','pluginName','getItems','start','document','addCommentThread','getChangedMarkers','editor','managedUsingOperations','_initAriaMarkerChangeAnnouncements','for','editing','collaboration.channelId','refreshVisibility','announce','item','registerPostFixer','registerAnnotation','$graveyard','resolveCommentThread','delete','setContext','init','CommentsEditing','markerName','elementToElement','isEqual','once','removeCommentThread','consume','comment:','isCollapsed','fetchCommentThread','upcast','split','markers','name','isAttached','archivedAt','text','get','getRange','end','add','getCommentThread','setUnlinkedAt'];(function(_0xbf65b5,_0x220f26){const _0x13cd85=function(_0x5be5cd){while(--_0x5be5cd){_0xbf65b5['push'](_0xbf65b5['shift']());}};_0x13cd85(++_0x220f26);}(_0x220f,0x96));const _0x13cd=function(_0xbf65b5,_0x220f26){_0xbf65b5=_0xbf65b5-0x0;let _0x13cd85=_0x220f[_0xbf65b5];return _0x13cd85;};import{Plugin as _0x4d6c66}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3c0807}from'ckeditor5/src/utils';import _0x15caeb from'./commentsrepository';import _0x5316d7 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0xa1c46c,getAllMarkersDomElementsSorted as _0x441432}from'ckeditor5-collaboration/src/collaboration-core';import _0x111999 from'../annotations/editorannotations';import _0x183390 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x5efd59 from'./integrations/importword';import _0x1839be from'../annotations/annotations';import{getTranslation as _0x26ce57}from'../utils/common-translations';export default class r extends _0x4d6c66{static get['requires'](){return[_0x15caeb,_0x111999,_0x183390,_0x5efd59];}static get[_0x13cd('0x35')](){return _0x13cd('0x4b');}constructor(_0x42fc0d){super(_0x42fc0d),this[_0x13cd('0x2c')]('isThreadsLoadingPaused',!0x0),_0x42fc0d[_0x13cd('0x63')]['once'](_0x13cd('0x21'),()=>this[_0x13cd('0x31')]=!0x1),this[_0x13cd('0x2c')](_0x13cd('0x6'),null),this['on']('change:activeMarker',(_0x5331b7,_0x1affb0,_0x278c63,_0x2db553)=>{const _0x468d79=_0x278c63?ot(_0x278c63)['id']:null;if(_0x42fc0d[_0x13cd('0x8')][_0x13cd('0x67')](()=>{if(_0x468d79){const _0x1bbad5=this[_0x13cd('0x23')](_0x468d79);for(const _0x4fb832 of _0x1bbad5)_0x42fc0d[_0x13cd('0x3f')][_0x13cd('0x5')](_0x4fb832);}if(_0x2db553){const {id:_0x294277}=ot(_0x2db553),_0x32c2dc=this[_0x13cd('0x23')](_0x294277);for(const _0x5c43e1 of _0x32c2dc)_0x42fc0d[_0x13cd('0x3f')][_0x13cd('0x5')](_0x5c43e1);}}),_0x468d79){const _0x11ab55=_0x42fc0d['plugins'][_0x13cd('0x5c')](_0x15caeb)[_0x13cd('0x60')](_0x468d79);_0x11ab55&&_0x11ab55[_0x13cd('0x7')]&&this[_0x13cd('0x1f')](_0x468d79);}}),this[_0x13cd('0x3d')]();}[_0x13cd('0x4a')](){const _0x3a3f07=this[_0x13cd('0x3b')],_0x529b8d=_0x3a3f07[_0x13cd('0x10')][_0x13cd('0x5c')](_0x15caeb),_0x166b8f=_0x3a3f07[_0x13cd('0x75')]['get'](_0x13cd('0x40'));_0x3a3f07[_0x13cd('0xb')][_0x13cd('0x5f')](_0x13cd('0x39'),new _0x5316d7(_0x3a3f07)),this[_0x13cd('0x72')](_0x3a3f07,_0x13cd('0x33'),(_0x1ea6e3,_0x1cce88,_0x46c022)=>{_0x529b8d['switchReadOnly'](_0x46c022,_0x3a3f07['config'][_0x13cd('0x5c')](_0x13cd('0x40')));}),this[_0x13cd('0x72')](_0x529b8d,tt(_0x13cd('0x39'),_0x166b8f),(_0x10f2fe,{threadId:_0x2e830c})=>{const _0xc357aa=this[_0x13cd('0x3b')]['plugins'][_0x13cd('0x5c')](_0x15caeb)[_0x13cd('0x60')](_0x2e830c);_0xc357aa&&_0xc357aa[_0x13cd('0x5a')]&&this[_0x13cd('0x2e')](_0x2e830c);}),this[_0x13cd('0x72')](_0x529b8d,tt(_0x13cd('0x50'),_0x166b8f),(_0x541b95,{threadId:_0x10ef9c})=>{_0x3a3f07[_0x13cd('0x8')][_0x13cd('0x7a')]({'isUndoable':!0x1},_0x325fa8=>{const _0x123950=this[_0x13cd('0x23')](_0x10ef9c);for(const _0x153e51 of _0x123950)_0x325fa8[_0x13cd('0x1c')](_0x153e51);});}),this[_0x13cd('0x72')](_0x529b8d,tt(_0x13cd('0x47'),_0x166b8f),(_0x4d09d6,{threadId:_0x81f8d4})=>{(this[_0x13cd('0x2e')](_0x81f8d4),this['_reconvertMarkers'](_0x81f8d4),this[_0x13cd('0x3b')]['editing']['view'][_0x13cd('0x2f')])&&(this[_0x13cd('0x3b')][_0x13cd('0x10')][_0x13cd('0x5c')](_0x15caeb)[_0x13cd('0x60')](_0x81f8d4)['unlinkedAt']||this['editor']['editing'][_0x13cd('0x13')]['focus']());},{'priority':_0x13cd('0x65')}),this[_0x13cd('0x72')](_0x529b8d,tt('reopenCommentThread',_0x166b8f),(_0x17b60d,{threadId:_0x1f881a})=>{this[_0x13cd('0x34')](_0x1f881a);},{'priority':_0x13cd('0x65')}),this[_0x13cd('0x72')](_0x529b8d,tt(_0x13cd('0x77'),_0x166b8f),(_0x2a500c,{threadId:_0x1cef8a,isFromAdapter:_0x30e27c})=>{const _0x1e6e03=this[_0x13cd('0x23')](_0x1cef8a);if(_0x30e27c||0x0==_0x1e6e03[_0x13cd('0x17')]||!_0x529b8d[_0x13cd('0x15')](_0x1cef8a))return;0x1===_0x529b8d[_0x13cd('0x60')](_0x1cef8a)[_0x13cd('0x17')]&&_0x3a3f07[_0x13cd('0x8')][_0x13cd('0x7a')]({'isUndoable':!0x1},_0x1df730=>{for(const _0x3551df of _0x1e6e03)_0x1df730[_0x13cd('0x6b')](_0x3551df,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x13cd('0x65')}),this['_initializeMarkerConverters'](),this[_0x13cd('0x20')]();}[_0x13cd('0x70')](){const _0x4ad385=this[_0x13cd('0x3b')]['plugins'][_0x13cd('0x5c')](_0x15caeb),_0x2fccb0=this[_0x13cd('0x3b')][_0x13cd('0x75')]['get']('collaboration.channelId');for(const _0x1756c8 of _0x4ad385['getCommentThreads']({'channelId':_0x2fccb0}))_0x4ad385[_0x13cd('0x12')](_0x1756c8['id']),_0x4ad385[_0x13cd('0x6d')][_0x13cd('0x48')](_0x1756c8['id']);super[_0x13cd('0x70')]();}[_0x13cd('0x28')](_0x45e1d3){return this[_0x13cd('0x23')](_0x45e1d3)[_0x13cd('0x17')]>0x0;}['getAllMarkersForId'](_0x386a0b){const _0x3a6e18=[];for(const _0x49f0e3 of this[_0x13cd('0x3b')][_0x13cd('0x8')][_0x13cd('0x57')])_0x49f0e3[_0x13cd('0x58')][_0x13cd('0x6e')]('comment:'+_0x386a0b)&&_0x3a6e18[_0x13cd('0x76')](_0x49f0e3);return _0x3a6e18;}[_0x13cd('0x1f')](_0x485408){const _0x2423da=this[_0x13cd('0x32')](_0x485408);_0x2423da&&setTimeout(()=>{this[_0x13cd('0x6')]&&ot(this['activeMarker'])['id']===_0x485408&&_0x3c0807({'target':_0x2423da[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x13cd('0x34')](_0x1b3942){this[_0x13cd('0x3b')]['model'][_0x13cd('0x67')](()=>{for(const _0x5a053a of this[_0x13cd('0x23')](_0x1b3942))this[_0x13cd('0x3b')][_0x13cd('0x3f')][_0x13cd('0x5')](_0x5a053a);});}[_0x13cd('0x2e')](_0x2df577){const _0x5d75b7=this['editor'][_0x13cd('0x10')][_0x13cd('0x5c')](_0x15caeb),_0x137ef7=this[_0x13cd('0x3b')]['plugins']['get'](_0x111999),_0x1a5d7a=_0x5d75b7[_0x13cd('0x60')](_0x2df577);if(!_0x1a5d7a[_0x13cd('0x59')]){const _0x1bfe89=_0x1a5d7a[_0x13cd('0x1b')](()=>this[_0x13cd('0x32')](_0x1a5d7a['id']));_0x137ef7[_0x13cd('0x45')](_0x1bfe89),_0x1a5d7a['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x584715=this['editor'];_0x584715[_0x13cd('0x7b')][_0x13cd('0x3e')](_0x13cd('0x11'))['markerToHighlight']({'model':_0x13cd('0xc'),'view':(_0x54374a,_0x650149)=>{const {id:_0x39120a}=ot(_0x54374a[_0x13cd('0x4c')]),_0x3d01f7=_0x584715[_0x13cd('0x10')][_0x13cd('0x5c')](_0x15caeb)[_0x13cd('0x60')](_0x39120a),_0x13b08e=this[_0x13cd('0x6')]&&ot(this[_0x13cd('0x6')])['id']===_0x39120a;if(_0x3d01f7&&_0x3d01f7[_0x13cd('0x7')]&&!_0x13b08e&&_0x54374a[_0x13cd('0x43')])return _0x650149[_0x13cd('0x79')][_0x13cd('0x51')](_0x54374a[_0x13cd('0x43')],_0x13cd('0x78')+_0x54374a[_0x13cd('0x4c')]),_0x650149[_0x13cd('0x79')]['consume'](_0x54374a[_0x13cd('0x43')],_0x13cd('0x66')+_0x54374a[_0x13cd('0x4c')]),{'classes':[]};const _0x1d136b=[_0x13cd('0x14')];return _0x13b08e&&_0x1d136b['push']('ck-comment-marker--active'),{'classes':_0x1d136b,'attributes':{'data-comment':_0x39120a}};}}),_0x584715[_0x13cd('0x7b')]['for'](_0x13cd('0x68'))['markerToData']({'model':_0x13cd('0xc'),'view':(_0xfff378,{options:_0x43662e})=>{const _0x2e8cc8=_0x584715['plugins'][_0x13cd('0x5c')](_0x15caeb),_0x1ef76f=_0x584715[_0x13cd('0x8')][_0x13cd('0x57')][_0x13cd('0x5c')](_0xfff378),{id:_0x19d1a8,part:_0x3457a9}=ot(_0xfff378);if(_0x1ef76f&&!_0x1ef76f[_0x13cd('0x30')])return null;if(_0x43662e[_0x13cd('0x27')]){const _0x3603d0=_0x2e8cc8['getCommentThread'](_0x19d1a8);if(_0x3603d0&&_0x3603d0[_0x13cd('0x7')])return null;}return{'group':'comment','name':_0x3457a9?_0x19d1a8+':'+_0x3457a9:_0x19d1a8};}}),_0x584715[_0x13cd('0x7b')]['for'](_0x13cd('0x55'))[_0x13cd('0x4d')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3475cc,{writer:_0x3dbbb3})=>_0x3dbbb3[_0x13cd('0x16')](_0x13cd('0x0'),{'data-name':_0x13cd('0x52')+_0x3475cc[_0x13cd('0x9')]('id')})}),_0x584715['conversion']['for'](_0x13cd('0x55'))[_0x13cd('0xf')]({'view':_0x13cd('0xc')});}['_handleMarkerAddAndRemove'](){const _0x3810fe=this[_0x13cd('0x3b')],_0x573eba=_0x3810fe[_0x13cd('0x10')][_0x13cd('0x5c')](_0x15caeb),_0x4d4496=new Set(),_0x5c6bf4=new Set();_0x3810fe[_0x13cd('0x8')][_0x13cd('0x38')][_0x13cd('0x44')](_0x2f4035=>{let _0x364dfc=!0x1;for(const {name:_0x37b9d8,data:_0x4e31c}of _0x3810fe[_0x13cd('0x8')][_0x13cd('0x38')][_0x13cd('0x24')][_0x13cd('0x3a')]()){const {group:_0x37857c,id:_0x5c9361}=ot(_0x37b9d8);let _0x11ed34=_0x4e31c[_0x13cd('0x26')];if('comment'!==_0x37857c||!_0x11ed34)continue;const _0x22a65b=_0x13cd('0x46')===_0x11ed34[_0x13cd('0x2d')][_0x13cd('0x1')];_0x22a65b||(_0x11ed34=et(_0x11ed34,_0x3810fe[_0x13cd('0x8')]),!_0x11ed34||_0x11ed34[_0x13cd('0x53')]||!_0x4e31c[_0x13cd('0x26')]||_0x11ed34[_0x13cd('0x4e')](_0x4e31c[_0x13cd('0x26')]))?_0x3810fe[_0x13cd('0x8')][_0x13cd('0x1e')](_0x11ed34)&&!_0x22a65b?this[_0x13cd('0x31')]?_0x4d4496[_0x13cd('0x5f')](_0x37b9d8):this[_0x13cd('0x1d')](_0x37b9d8,_0x5c9361):(_0x5c6bf4[_0x13cd('0x5f')](_0x37b9d8),_0x4d4496['delete'](_0x37b9d8),_0x2f4035[_0x13cd('0x1c')](_0x37b9d8),_0x364dfc=!0x0):(_0x2f4035[_0x13cd('0x6b')](_0x37b9d8,{'range':_0x11ed34}),_0x364dfc=!0x0);}return _0x364dfc;}),this['on']('change:isThreadsLoadingPaused',(_0x1c6311,_0x9904cc,_0x27b954)=>{if(!_0x27b954&&_0x4d4496[_0x13cd('0x2')])for(const _0x16ac45 of _0x4d4496){const {id:_0x49149a}=ot(_0x16ac45);_0x4d4496[_0x13cd('0x48')](_0x16ac45),_0x3810fe[_0x13cd('0x8')]['markers'][_0x13cd('0x5c')](_0x16ac45)&&this[_0x13cd('0x1d')](_0x16ac45,_0x49149a);}}),this[_0x13cd('0x72')](_0x3810fe[_0x13cd('0x8')]['document'],_0x13cd('0x67'),(_0x413e67,_0x29cbd5)=>{for(const {name:_0x36ae7b,data:{newRange:_0x145c20}}of _0x3810fe[_0x13cd('0x8')]['document'][_0x13cd('0x24')][_0x13cd('0x3a')]()){const {group:_0x316232,id:_0xfb7e1f}=ot(_0x36ae7b);if(_0x13cd('0xc')!==_0x316232)continue;const _0x4886d7=_0x573eba['getCommentThread'](_0xfb7e1f),_0x25f856=this['hasMarkerForId'](_0xfb7e1f);_0x4886d7&&(_0x4886d7[_0x13cd('0x71')]||_0x3810fe[_0x13cd('0x3f')]['view'][_0x13cd('0x4f')]('render',()=>{const _0x1fa3d6=_0x3810fe[_0x13cd('0x10')][_0x13cd('0x5c')](_0x1839be),_0x53dfd3=_0x573eba[_0x13cd('0x4')][_0x13cd('0x5c')](_0x4886d7)[_0x13cd('0x13')];_0x1fa3d6[_0x13cd('0x74')](_0x53dfd3)[_0x13cd('0x41')]();},{'priority':'low'}),_0x4886d7[_0x13cd('0x71')]=_0x25f856||!!_0x145c20),_0x145c20||(_0x5c6bf4[_0x13cd('0x5f')](_0x36ae7b),_0x4d4496[_0x13cd('0x48')](_0x36ae7b));}if(_0x29cbd5[_0x13cd('0x64')])for(const _0x57d673 of _0x5c6bf4){const {id:_0x2edd90}=ot(_0x57d673),_0x81e211=_0x573eba[_0x13cd('0x60')](_0x2edd90),_0x503c23=this[_0x13cd('0x28')](_0x2edd90);_0x4d4496[_0x13cd('0x48')](_0x57d673),!_0x81e211||_0x503c23||_0x81e211[_0x13cd('0x6c')]||_0x81e211[_0x13cd('0x61')](new Date());}_0x5c6bf4[_0x13cd('0x62')]();});}[_0x13cd('0x32')](_0x273afa){const _0x4d1b34=this[_0x13cd('0x3b')],_0x57fb5f=this[_0x13cd('0x23')](_0x273afa);return _0x441432(_0x4d1b34['editing'],_0x57fb5f);}[_0x13cd('0x2b')](_0x3c6614){const _0x55357c=this[_0x13cd('0x23')](_0x3c6614);let _0x456ebc='',_0x2bc432=!0x1;for(const _0x25a420 of _0x55357c){const _0x4b0725=_0x25a420[_0x13cd('0x5d')]();for(const _0x418a8c of Array[_0x13cd('0xd')](_0x4b0725[_0x13cd('0x36')]()))_0x418a8c['is'](_0x13cd('0x73'))?(_0x456ebc&&_0x2bc432&&(_0x456ebc+='\x20',_0x2bc432=!0x1),_0x456ebc+=_0x418a8c[_0x13cd('0x63')]):_0x2bc432=!0x0;_0x2bc432=!0x0;}return _0x456ebc['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x35fea1,_0x5cc78c){const _0x4a995a=this[_0x13cd('0x3b')],_0x3f870d=_0x4a995a[_0x13cd('0x10')][_0x13cd('0x5c')](_0x15caeb);let _0x220d99=_0x3f870d[_0x13cd('0x60')](_0x5cc78c);const _0x2270c2=_0x4a995a[_0x13cd('0x75')]['get'](_0x13cd('0x40')),_0x127763=_0x4a995a['plugins']['get'](_0x111999);if(_0x220d99&&(_0x220d99[_0x13cd('0x6c')]&&_0x220d99[_0x13cd('0x61')](null),_0x220d99[_0x13cd('0x59')]))return _0x220d99;return!this['getAllMarkersForId'](_0x5cc78c)[0x0][_0x13cd('0x3c')]?_0x4a995a['editing'][_0x13cd('0x13')][_0x13cd('0x4f')](_0x13cd('0x3'),()=>{if(_0x3f870d[_0x13cd('0x60')](_0x5cc78c))return;const _0x3e3215=_0x4a995a[_0x13cd('0x10')][_0x13cd('0x5c')](_0x1839be);_0x220d99=_0x3f870d[_0x13cd('0x18')]({'channelId':_0x2270c2,'threadId':_0x5cc78c,'target':()=>this[_0x13cd('0x32')](_0x5cc78c),'context':{'type':'text','value':this['_getTextContext'](_0x5cc78c)}});const _0xcbee31=_0x3f870d[_0x13cd('0x4')][_0x13cd('0x5c')](_0x220d99)[_0x13cd('0x13')],_0xc3c3b4=_0x3e3215[_0x13cd('0x74')](_0xcbee31);_0xc3c3b4&&_0x127763[_0x13cd('0x45')](_0xc3c3b4);},{'priority':'low'}):_0x3f870d[_0x13cd('0x54')]({'channelId':_0x2270c2,'threadId':_0x5cc78c})[_0x13cd('0x6f')](_0x34de79=>{if('destroyed'!==_0x4a995a[_0x13cd('0xe')]){if(_0x220d99=_0x34de79,_0x220d99&&!_0x220d99[_0x13cd('0x59')]){const _0x1aab4d=_0x220d99[_0x13cd('0x1b')](()=>this[_0x13cd('0x32')](_0x5cc78c));_0x127763[_0x13cd('0x45')](_0x1aab4d),_0x220d99[_0x13cd('0x7')]&&this['_reconvertMarkers'](_0x5cc78c);}else{if(!_0x220d99){const _0x78948f=this['getAllMarkersForId'](_0x5cc78c);_0x4a995a['model'][_0x13cd('0x67')](_0xa85290=>{for(const _0x2187a0 of _0x78948f)_0xa85290[_0x13cd('0x1c')](_0x2187a0);});}}}}),_0x220d99;}[_0x13cd('0x1d')](_0xba686a,_0x30f0a0){const _0x14a752=this[_0x13cd('0x1a')](_0xba686a,_0x30f0a0);_0x14a752&&!_0x14a752[_0x13cd('0xa')]&&_0x14a752[_0x13cd('0x49')]({'type':_0x13cd('0x5b'),'value':this[_0x13cd('0x2b')](_0x30f0a0)});}[_0x13cd('0x3d')](){const _0x4f421f=this['editor'];_0xa1c46c(_0x4f421f[_0x13cd('0x8')],({left:_0x376755,entered:_0x3a91d6})=>{const _0x4735a6=[];for(const _0x340879 of _0x376755)if(rt(_0x340879)){_0x4735a6[_0x13cd('0x76')](_0x26ce57(_0x4f421f[_0x13cd('0x29')],_0x13cd('0x6a')));break;}for(const _0x3cba48 of _0x3a91d6)if(rt(_0x3cba48)){_0x4735a6[_0x13cd('0x76')](_0x26ce57(_0x4f421f[_0x13cd('0x29')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x4735a6[_0x13cd('0x17')]&&_0x4f421f['ui']['ariaLiveAnnouncer'][_0x13cd('0x42')]('comments',_0x4735a6['join']('\x20'));});}}function tt(_0x1c7529,_0x1dfd82){return _0x1dfd82?_0x1c7529+':'+_0x1dfd82:_0x1c7529;}function ot(_0x34e2fa){const _0x3242ee=_0x34e2fa[_0x13cd('0x56')](':');return{'group':_0x3242ee[0x0],'id':_0x3242ee[0x1],'part':_0x3242ee[0x2]};}function et(_0x330e78,_0x49531b){const _0x3a62d7=_0x49531b['schema'],_0x23832f=_0x49531b[_0x13cd('0x19')](_0x330e78[_0x13cd('0x37')]);for(const _0x8ce219 of _0x330e78[_0x13cd('0x22')]()){const {type:_0x1d7834,item:_0x55cb03,nextPosition:_0x343b80}=_0x8ce219;if(_0x13cd('0x5b')===_0x1d7834||_0x3a62d7[_0x13cd('0x25')](_0x55cb03)){const _0x3aae1a=_0x49531b[_0x13cd('0x69')](_0x55cb03);_0x23832f[_0x13cd('0x53')]&&(_0x23832f['start']=_0x3aae1a),_0x23832f[_0x13cd('0x5e')]=_0x343b80;}}return _0x23832f;}function rt(_0xb258bd){return _0x13cd('0xc')===ot(_0xb258bd[_0x13cd('0x58')])[_0x13cd('0x2a')];}
|