@ckeditor/ckeditor5-comments 0.0.0-nightly-20230912.0 → 0.0.0-nightly-20230914.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 _0x52f8=['bind','clientHeight','height','destroy','set','isAnimationDisabled','bottom','attach','render','ck-sidebar-item','_mutationObserver','content','updateHeight','_targetTop','top','clear','div'];(function(_0x2a6683,_0x52f847){const _0x695324=function(_0xe16218){while(--_0xe16218){_0x2a6683['push'](_0x2a6683['shift']());}};_0x695324(++_0x52f847);}(_0x52f8,0x116));const _0x6953=function(_0x2a6683,_0x52f847){_0x2a6683=_0x2a6683-0x0;let _0x695324=_0x52f8[_0x2a6683];return _0x695324;};import{View as _0x26b0e0}from'ckeditor5/src/ui';import{toUnit as _0x3ddb2a}from'ckeditor5/src/utils';import _0x1a06ce from'../../utils/createmutationobserver';const At=_0x3ddb2a('px');export default class C extends _0x26b0e0{constructor(_0x1a57cc){super(_0x1a57cc),this[_0x6953('0xf')](_0x6953('0x8'),0x0),this['set'](_0x6953('0xd'),0x0),this[_0x6953('0xb')](_0x6953('0x0'))['to'](this,_0x6953('0x8'),this,_0x6953('0xd'),(_0x49acd3,_0x3da5ca)=>_0x49acd3+_0x3da5ca),this[_0x6953('0xf')]('isAnimationDisabled',!0x1),this['_mutationObserver']=_0x1a06ce(()=>this[_0x6953('0x6')]()),this[_0x6953('0x7')]=null,this[_0x6953('0x5')]=this['createCollection']();const _0xd74d37=this['bindTemplate'];this['setTemplate']({'tag':_0x6953('0xa'),'attributes':{'class':[_0x6953('0x3'),_0xd74d37['to'](_0x6953('0x10'),_0x28cafb=>_0x28cafb?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xd74d37['to'](_0x6953('0x8'),_0x344c2d=>At(_0x344c2d))}},'children':this[_0x6953('0x5')]});}[_0x6953('0x2')](){super[_0x6953('0x2')](),this[_0x6953('0x4')][_0x6953('0x1')](this['element']);}[_0x6953('0x6')](){const _0x260dcc=this['element'][_0x6953('0xc')];_0x260dcc&&(this['height']=_0x260dcc);}[_0x6953('0xe')](){this[_0x6953('0x5')][_0x6953('0x9')](),this['_mutationObserver']['detach'](),super[_0x6953('0xe')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x351b=['createCollection','list','ck-reset','bindTemplate','div','setTemplate','class','minHeight','ck-sidebar'];(function(_0x3c5855,_0x351b8a){const _0x5294fe=function(_0x166769){while(--_0x166769){_0x3c5855['push'](_0x3c5855['shift']());}};_0x5294fe(++_0x351b8a);}(_0x351b,0x73));const _0x5294=function(_0x3c5855,_0x351b8a){_0x3c5855=_0x3c5855-0x0;let _0x5294fe=_0x351b[_0x3c5855];return _0x5294fe;};import{View as _0x345a8a}from'ckeditor5/src/ui';import{toUnit as _0x167426}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x167426('px');export default class T extends _0x345a8a{constructor(_0x2460cf){super(_0x2460cf);const _0x4394f2=this[_0x5294('0x5')];this['set'](_0x5294('0x0'),0x0),this['set']('class',''),this[_0x5294('0x3')]=this[_0x5294('0x2')](),this[_0x5294('0x7')]({'tag':_0x5294('0x6'),'attributes':{'class':['ck',_0x5294('0x1'),_0x5294('0x4'),_0x4394f2['to'](_0x5294('0x8'))],'style':{'minHeight':_0x4394f2['to'](_0x5294('0x0'),_0x375aca=>'number'==typeof _0x375aca?At(_0x375aca+0xa):null)}},'children':this[_0x5294('0x3')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3710=['removeEventListener','plugins','updateTargetRect','annotations','from','stopListening','context','set','widesidebar-detach-not-attached','EditorAnnotations','change:container','activeAnnotation','has','add','container','high','editors','ck-sidebar--wide','resize','stop','blur','_attachToContainer','ready','get','widesidebar-attach-already-attached','hasDomSelection','listenTo','register','cancel','attach','_annotations','_refreshPositioningDebounced','set:container','wideSidebar','isAttached','refresh','addAnnotation','addEventListener','refreshPositioning','_destroyEditorAnnotationsIntegration','detach','getOrderedSelectedAnnotations','_detachFromContainer','_integrateWithEditorAnnotations','rearrange','setActiveAnnotation','remove','focus','_editorAnnotations','_activeAnnotation'];(function(_0xdcad7d,_0x37107d){const _0x590795=function(_0x4744fd){while(--_0x4744fd){_0xdcad7d['push'](_0xdcad7d['shift']());}};_0x590795(++_0x37107d);}(_0x3710,0x9d));const _0x5907=function(_0xdcad7d,_0x37107d){_0xdcad7d=_0xdcad7d-0x0;let _0x590795=_0x3710[_0xdcad7d];return _0x590795;};import{ContextPlugin as _0x1381f9,Context as _0x280615}from'ckeditor5/src/core';import _0x43e41e from'./annotationsuis';import _0x3dc46f from'./sidebar';import{CKEditorError as _0x8c2797,Collection as _0x21996c}from'ckeditor5/src/utils';import{debounce as _0x4d85b1}from'lodash-es';import _0x5cf3ba from'./editorannotations';export default class i extends _0x1381f9{static get['requires'](){return[_0x3dc46f,_0x43e41e];}static get['pluginName'](){return'WideSidebar';}constructor(_0x32cc7f){super(_0x32cc7f),this[_0x5907('0x1b')]=!0x1,this[_0x5907('0x0')](_0x5907('0x4'),null),this['annotations']=null,this[_0x5907('0x29')]=new _0x21996c(),this[_0x5907('0x18')]=_0x4d85b1(()=>{this[_0x5907('0x2e')][_0x5907('0x1f')]();},0xfa,{'leading':!0x1});}['init'](){const _0x332f85=this[_0x5907('0x31')]['plugins'][_0x5907('0x10')](_0x43e41e),_0xfed23c=this['context'][_0x5907('0x2c')]['get'](_0x3dc46f);_0x332f85[_0x5907('0x14')](_0x5907('0x1a'),this),_0xfed23c[_0x5907('0x7')]&&_0x332f85['switchTo'](_0x5907('0x1a'));}[_0x5907('0x26')](_0x371524){if(_0x371524===this[_0x5907('0x4')])return;const _0x33a11b=this[_0x5907('0x31')][_0x5907('0x2c')][_0x5907('0x10')](_0x3dc46f);_0x33a11b[_0x5907('0x2a')]=_0x371524;const _0x1a3e93=this['activeAnnotation'];this['activeAnnotation']=_0x371524,_0x33a11b[_0x5907('0x1c')]({'blurredAnnotation':_0x1a3e93,'activatedAnnotation':this[_0x5907('0x4')]});}['attach'](_0xc50aee){this[_0x5907('0x2e')]=_0xc50aee;const _0x149dd2=this['context']['plugins'][_0x5907('0x10')](_0x3dc46f);if(_0x149dd2[_0x5907('0x17')]=_0xc50aee,this[_0x5907('0x1b')])throw new _0x8c2797(_0x5907('0x11'),this);this[_0x5907('0x1b')]=!0x0,this[_0x5907('0x13')](_0x149dd2,_0x5907('0x19'),()=>{this[_0x5907('0x21')](),this[_0x5907('0x13')](_0x149dd2,_0x5907('0x3'),_0xce624a=>{_0xce624a['off'](),this[_0x5907('0x16')](_0xc50aee);});}),_0x149dd2[_0x5907('0xe')]({'viewClass':_0x5907('0xa')});const _0x96727a=_0x53e2a1=>{_0x53e2a1[_0x5907('0x2d')](),_0x149dd2[_0x5907('0x1d')](_0x53e2a1);};for(const _0x3573e1 of _0xc50aee)_0x96727a(_0x3573e1);this[_0x5907('0x13')](_0xc50aee,_0x5907('0x6'),(_0xb01a12,_0x144b81)=>{_0x96727a(_0x144b81);}),this[_0x5907('0x13')](_0xc50aee,_0x5907('0x27'),(_0x44c591,_0x3d103c,_0x423117)=>{_0x149dd2[_0x5907('0x25')]({'removedAnnotation':_0x3d103c,'previousAnnotation':_0xc50aee[_0x5907('0x10')](_0x423117-0x1),'nextAnnotation':_0xc50aee['get'](_0x423117+0x1)}),_0x3d103c===this[_0x5907('0x4')]&&this[_0x5907('0x26')](null);},{'priority':_0x5907('0x8')}),this[_0x5907('0x13')](_0xc50aee,_0x5907('0x28'),(_0x3e4d3d,_0xd8aa95)=>{this['setActiveAnnotation'](_0xd8aa95);}),this[_0x5907('0x13')](_0xc50aee,'blur',()=>{this[_0x5907('0x26')](null);});const _0x440738=this[_0x5907('0x31')]instanceof _0x280615?this[_0x5907('0x31')]['editors']:new _0x21996c([this[_0x5907('0x31')]]);for(const _0x407fce of _0x440738)this['_integrateWithEditorAnnotations'](_0x407fce);this[_0x5907('0x13')](_0x440738,_0x5907('0x6'),(_0x59a05,_0x59b1c4)=>{this[_0x5907('0x13')](_0x59b1c4,_0x5907('0xf'),()=>{this[_0x5907('0x24')](_0x59b1c4);});}),this[_0x5907('0x13')](_0x440738,'remove',(_0x4463b,_0x19cefa)=>{_0x19cefa['plugins'][_0x5907('0x5')](_0x5907('0x2'))&&this[_0x5907('0x20')](_0x19cefa[_0x5907('0x2c')][_0x5907('0x10')](_0x5907('0x2')));}),window[_0x5907('0x1e')](_0x5907('0xb'),this['_refreshPositioningDebounced']),this[_0x5907('0x2e')][_0x5907('0x1f')]();}[_0x5907('0x21')](){if(!this[_0x5907('0x1b')])throw new _0x8c2797(_0x5907('0x1'),this);this[_0x5907('0x26')](null);const _0x2c6bfb=this[_0x5907('0x31')][_0x5907('0x2c')][_0x5907('0x10')](_0x3dc46f);_0x2c6bfb[_0x5907('0x23')](this[_0x5907('0x2e')]),this[_0x5907('0x30')](_0x2c6bfb),this['stopListening'](this[_0x5907('0x2e')]),this['context']instanceof _0x280615&&this['stopListening'](this[_0x5907('0x31')][_0x5907('0x9')]);for(const _0x54c5ae of Array[_0x5907('0x2f')](this['_editorAnnotations']))this[_0x5907('0x20')](_0x54c5ae);window[_0x5907('0x2b')](_0x5907('0xb'),this['_refreshPositioningDebounced']),this[_0x5907('0x18')][_0x5907('0x15')](),this[_0x5907('0x4')]=null,this[_0x5907('0x1b')]=!0x1,this[_0x5907('0x2e')]=null;}['destroy'](){this[_0x5907('0x1b')]&&this[_0x5907('0x21')]();}[_0x5907('0x24')](_0x190cd8){const _0x25746a=_0x190cd8['plugins'][_0x5907('0x10')](_0x5cf3ba);if(!_0x25746a)return;const _0x56c9a7=()=>{const _0x2d1b8c=_0x25746a[_0x5907('0x22')]({'annotations':this[_0x5907('0x2e')],'activeAnnotation':this[_0x5907('0x4')]});this['setActiveAnnotation'](_0x2d1b8c[0x0]||null);};this[_0x5907('0x13')](_0x25746a,_0x5907('0x1c'),_0x56c9a7),this['listenTo'](_0x25746a,_0x5907('0xd'),(_0x35208d,{isAnnotationTracked:_0x1f1cbf})=>{this[_0x5907('0x4')]&&_0x1f1cbf(this[_0x5907('0x4')])&&this['setActiveAnnotation'](null);}),this[_0x5907('0x13')](_0x25746a,'uiUpdate',()=>{this[_0x5907('0x18')]();}),this[_0x5907('0x13')](this[_0x5907('0x2e')],_0x5907('0xd'),_0x450a85=>{_0x25746a[_0x5907('0x12')]()&&(_0x56c9a7(),_0x450a85[_0x5907('0xc')]());},{'priority':'high'}),this[_0x5907('0x29')]['add'](_0x25746a);}[_0x5907('0x20')](_0xa4fccb){this[_0x5907('0x30')](_0xa4fccb),this[_0x5907('0x29')]['remove'](_0xa4fccb);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dc0=['getLastMatchingPosition','_hasContent','model','backward','item','start','editor','element','_trimToContent','getRanges','$textProxy','selection','_itemIsContent','isEnabled','isObject','end','comment:','document','schema','tableCell'];(function(_0x1efe33,_0x4dc032){const _0x210447=function(_0x35a79e){while(--_0x35a79e){_0x1efe33['push'](_0x1efe33['shift']());}};_0x210447(++_0x4dc032);}(_0x4dc0,0xe6));const _0x2104=function(_0x1efe33,_0x4dc032){_0x1efe33=_0x1efe33-0x0;let _0x210447=_0x4dc0[_0x1efe33];return _0x210447;};import{Command as _0x199e31}from'ckeditor5/src/core';import{uid as _0x2e3ca6}from'ckeditor5/src/utils';export default class q extends _0x199e31{['refresh'](){const _0x434dd4=this[_0x2104('0x10')][_0x2104('0xc')][_0x2104('0x7')][_0x2104('0x1')];for(const _0x3dcf97 of _0x434dd4[_0x2104('0x13')]())if(this[_0x2104('0xb')](_0x3dcf97))return void(this['isEnabled']=!0x0);this[_0x2104('0x3')]=!0x1;}['execute']({threadId:_0x351e77=_0x2e3ca6()}={}){const _0x3ae66c=this[_0x2104('0x10')]['model'],_0x10925e=[];for(const _0x6e38af of _0x3ae66c[_0x2104('0x7')][_0x2104('0x1')][_0x2104('0x13')]())this['_hasContent'](_0x6e38af)&&_0x10925e['push'](this[_0x2104('0x12')](_0x6e38af));_0x3ae66c['change'](_0x5b8d37=>{for(const _0x45c379 of _0x10925e){const _0x5aef7b=_0x2e3ca6()['substr'](0x1,0x5),_0x3aa3c0=_0x2104('0x6')+_0x351e77+':'+_0x5aef7b;_0x5b8d37['addMarker'](_0x3aa3c0,{'range':_0x45c379,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2255b0){for(const _0x251439 of _0x2255b0['getItems']())if(this[_0x2104('0x2')](_0x251439))return!0x0;return!0x1;}[_0x2104('0x2')](_0x15602b){return _0x15602b['is'](_0x2104('0x0'))||this[_0x2104('0x10')]['model'][_0x2104('0x8')][_0x2104('0x4')](_0x15602b)&&!_0x15602b['is'](_0x2104('0x11'),_0x2104('0x9'));}['_trimToContent'](_0x1f5d73){const _0x4d3ed6=_0x2a483d=>!this[_0x2104('0x2')](_0x2a483d[_0x2104('0xe')]),_0x1f850d=_0x1f5d73[_0x2104('0xf')]['getLastMatchingPosition'](_0x4d3ed6),_0x122c81=_0x1f5d73[_0x2104('0x5')][_0x2104('0xa')](_0x4d3ed6,{'direction':_0x2104('0xd')});return this[_0x2104('0x10')][_0x2104('0xc')]['createRange'](_0x1f850d,_0x122c81);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49f7=['removeCommentThread','plugins','addCommentThread','collection','resolveCommentThread','resolvedAt','findIndex','resolvedThreads','highest','get','pluginName','listenTo','getCommentThread','has','_calculatePosition','activate','requires','remove','reopenCommentThread','isActive','add','context','length','focus'];(function(_0x28fdfd,_0x49f719){const _0x133287=function(_0x503105){while(--_0x503105){_0x28fdfd['push'](_0x28fdfd['shift']());}};_0x133287(++_0x49f719);}(_0x49f7,0x110));const _0x1332=function(_0x28fdfd,_0x49f719){_0x28fdfd=_0x28fdfd-0x0;let _0x133287=_0x49f7[_0x28fdfd];return _0x133287;};import{ContextPlugin as _0x1610b5}from'ckeditor5/src/core';import{Collection as _0x27a180}from'ckeditor5/src/utils';import _0x43a701 from'./commentsrepository';import _0x1e957c from'../annotations/annotations';export default class p extends _0x1610b5{static get[_0x1332('0x2')](){return'CommentsArchive';}static get[_0x1332('0x8')](){return[_0x43a701,_0x1e957c];}constructor(_0x18ea99){super(_0x18ea99),this[_0x1332('0x17')]=new _0x27a180();}['init'](){const _0x415c8a=this[_0x1332('0xd')],_0x32d962=_0x415c8a[_0x1332('0x11')][_0x1332('0x1')](_0x43a701),_0x400381=_0x415c8a[_0x1332('0x11')][_0x1332('0x1')](_0x1e957c);this[_0x1332('0x3')](_0x32d962,_0x1332('0x12'),(_0xd39ede,{threadId:_0x411986,resolvedAt:_0x26483c,deletedAt:_0x23eda9})=>{if(_0x26483c&&!_0x23eda9){const _0xe34405=_0x32d962[_0x1332('0x4')](_0x411986);this[_0x1332('0x17')]['add'](_0xe34405,this[_0x1332('0x6')](_0x26483c));}}),this[_0x1332('0x3')](_0x32d962,_0x1332('0x14'),(_0x3296ce,{threadId:_0x28e81d,resolvedAt:_0x18298a})=>{const _0x193e69=_0x32d962[_0x1332('0x4')](_0x28e81d);this['resolvedThreads'][_0x1332('0xc')](_0x193e69,this[_0x1332('0x6')](_0x18298a));},{'priority':_0x1332('0x0')}),this[_0x1332('0x3')](_0x32d962,_0x1332('0xa'),(_0x1201ed,{threadId:_0x150bc3})=>{const _0x247022=_0x32d962['getCommentThread'](_0x150bc3);this[_0x1332('0x17')][_0x1332('0x5')](_0x247022)&&this['resolvedThreads'][_0x1332('0x9')](_0x247022);},{'priority':_0x1332('0x0')}),this[_0x1332('0x3')](_0x32d962,_0x1332('0x10'),(_0x41aa1d,{threadId:_0x168450})=>{const _0x221209=_0x32d962[_0x1332('0x4')](_0x168450);this[_0x1332('0x17')]['has'](_0x221209)&&this[_0x1332('0x17')][_0x1332('0x9')](_0x221209);},{'priority':'highest'}),this[_0x1332('0x3')](_0x400381[_0x1332('0x13')],_0x1332('0xf'),(_0x398fa0,_0x274355)=>{_0x274355[_0x1332('0xb')]=!0x0,_0x400381[_0x1332('0x7')](_0x274355);});}[_0x1332('0x6')](_0x4f0983){const _0x169607=[...this['resolvedThreads']][_0x1332('0x16')](_0xd84ca0=>_0xd84ca0[_0x1332('0x15')]<_0x4f0983);return _0x169607>-0x1?_0x169607:this[_0x1332('0x17')][_0x1332('0xe')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59df=['indexOf','ck-comments-archive-dropdown','classList','get','plugins','children','extendTemplate','channelId','_pendingThreads','change:isOpen','resolvedAt','locale','stopListening','add','annotationViews','focusTracker','set','contains','componentFactory','requires','commentsArchive','COMMENTS_ARCHIVE','pluginName','position','_createArchiveUIDropdown','panelView','resolvedThreads','ck-body','_threadToController','length','getByInnerView','_handleAnnotationFocusableElements','listenTo','commentsArchiveView','view','remove','focusableElements','_visibleAnnotations','mainView','editor','isVisible','config','_calculatePosition','CommentsRepository','innerView','buttonView','collaboration.channelId','Annotations','findIndex'];(function(_0x3a9657,_0x59dfc3){const _0x891566=function(_0x41756b){while(--_0x41756b){_0x3a9657['push'](_0x3a9657['shift']());}};_0x891566(++_0x59dfc3);}(_0x59df,0x15a));const _0x8915=function(_0x3a9657,_0x59dfc3){_0x3a9657=_0x3a9657-0x0;let _0x891566=_0x59df[_0x3a9657];return _0x891566;};import'../../theme/commentsarchive.css';import{Plugin as _0x1129d8}from'ckeditor5/src/core';import{createDropdown as _0x2993e3,ViewCollection as _0xced206}from'ckeditor5/src/ui';import _0x160f9f from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x549e9a}from'../utils/common-translations';import _0x405cdc from'./ui/view/commentsarchiveview';import _0x6b6089 from'./commentsarchive';export default class a extends _0x1129d8{static get[_0x8915('0x13')](){return'CommentsArchiveUI';}static get[_0x8915('0x10')](){return[_0x6b6089];}constructor(_0x310d30){super(_0x310d30),this['annotationViews']=new _0xced206(),this[_0x8915('0x5')]=[];}['init'](){this['editor']['ui'][_0x8915('0xf')][_0x8915('0xa')](_0x8915('0x11'),()=>this[_0x8915('0x15')]());const _0x164791=this[_0x8915('0x24')][_0x8915('0x1')][_0x8915('0x0')](_0x6b6089),_0x2ec9e3=this[_0x8915('0x24')]['plugins'][_0x8915('0x0')](_0x8915('0x2c')),_0x7fa99e=this[_0x8915('0x24')][_0x8915('0x1')][_0x8915('0x0')](_0x8915('0x28'));this['listenTo'](_0x164791[_0x8915('0x17')],_0x8915('0xa'),(_0x5dd308,_0x5cfa5a)=>{const _0x2a2c4a=this[_0x8915('0x24')][_0x8915('0x26')][_0x8915('0x0')](_0x8915('0x2b'));if(!_0x2a2c4a||_0x5cfa5a[_0x8915('0x4')]===_0x2a2c4a){const _0x552def=this['_calculatePosition'](_0x5cfa5a[_0x8915('0x7')]),_0x48f747=_0x7fa99e[_0x8915('0x19')][_0x8915('0x0')](_0x5cfa5a);if(!_0x48f747)return void this[_0x8915('0x5')]['push']({'thread':_0x5cfa5a,'position':_0x552def});const _0x12d412=_0x2ec9e3[_0x8915('0x1b')](_0x48f747[_0x8915('0x1f')]);_0x12d412[_0x8915('0x25')]&&_0x2ec9e3[_0x8915('0x22')][_0x8915('0x20')](_0x12d412),this[_0x8915('0xb')][_0x8915('0xa')](_0x12d412['view'],_0x552def);}}),this['listenTo'](_0x2ec9e3['collection'],_0x8915('0xa'),(_0x1b8759,_0x3c0d66)=>{const _0x564f2b=this['_pendingThreads']['find'](({thread:_0x236d06})=>{const _0x5b697f=_0x7fa99e[_0x8915('0x19')]['get'](_0x236d06);return _0x5b697f&&_0x3c0d66[_0x8915('0x29')]===_0x5b697f['view'];});_0x564f2b&&(this[_0x8915('0xb')][_0x8915('0xa')](_0x3c0d66['view'],_0x564f2b[_0x8915('0x14')]),this[_0x8915('0x5')]['splice'](this[_0x8915('0x5')][_0x8915('0x2e')](_0x564f2b),0x1));}),this[_0x8915('0x1d')](_0x164791[_0x8915('0x17')],_0x8915('0x20'),(_0x13c6ee,_0x1df0b2)=>{const _0x3c54a2=this[_0x8915('0x24')][_0x8915('0x26')][_0x8915('0x0')]('collaboration.channelId');if(!_0x3c54a2||_0x1df0b2[_0x8915('0x4')]===_0x3c54a2){const _0x2c80ff=_0x7fa99e[_0x8915('0x19')]['get'](_0x1df0b2),_0x1a1435=_0x2ec9e3['getByInnerView'](_0x2c80ff['view']);this['annotationViews']['remove'](_0x1a1435[_0x8915('0x1f')]),this[_0x8915('0x9')](_0x1a1435[_0x8915('0x21')]);}});}[_0x8915('0x1c')](_0x3e45e1,_0x54b5be){for(const _0x5914eb of _0x54b5be[_0x8915('0x21')])_0x5914eb['classList'][_0x8915('0xe')]('ck-body')&&_0x3e45e1[_0x8915('0xc')][_0x8915('0xa')](_0x5914eb);this[_0x8915('0x1d')](_0x54b5be[_0x8915('0x21')],_0x8915('0xa'),(_0x3b205f,_0x1238c6)=>{_0x1238c6['classList'][_0x8915('0xe')](_0x8915('0x18'))&&_0x3e45e1[_0x8915('0xc')]['add'](_0x1238c6);}),this[_0x8915('0x1d')](_0x54b5be['focusableElements'],_0x8915('0x20'),(_0x301207,_0x2a7da0)=>{_0x2a7da0[_0x8915('0x30')]['contains'](_0x8915('0x18'))&&_0x3e45e1[_0x8915('0xc')][_0x8915('0x20')](_0x2a7da0);});}[_0x8915('0x27')](_0x34d6f2){const _0x43e8cf=this['editor']['config']['get'](_0x8915('0x2b')),_0x18bc74=[...this[_0x8915('0x24')][_0x8915('0x1')]['get'](_0x6b6089)['resolvedThreads']]['filter'](_0x262441=>_0x262441[_0x8915('0x4')]!==_0x43e8cf)[_0x8915('0x2d')](_0x2ed676=>_0x2ed676[_0x8915('0x7')]<_0x34d6f2);return _0x18bc74>-0x1?_0x18bc74:this['annotationViews'][_0x8915('0x1a')];}[_0x8915('0x15')](){const _0x135633=this[_0x8915('0x24')],_0x5da954=this[_0x8915('0x24')][_0x8915('0x1')][_0x8915('0x0')](_0x8915('0x2c')),_0x38fa70=_0x2993e3(_0x135633['locale']);_0x38fa70[_0x8915('0x2a')][_0x8915('0xd')]({'icon':_0x160f9f,'label':_0x549e9a(_0x135633[_0x8915('0x8')],_0x8915('0x12')),'tooltip':!0x0}),_0x38fa70[_0x8915('0x16')][_0x8915('0x3')]({'attributes':{'class':_0x8915('0x2f')}}),_0x38fa70['on'](_0x8915('0x6'),(_0x2c7297,_0x39fd72,_0x4ac8f8)=>{this[_0x8915('0x1e')]||(this[_0x8915('0x1e')]=new _0x405cdc(_0x135633['locale'],this['annotationViews'])),_0x4ac8f8?_0x38fa70[_0x8915('0x16')][_0x8915('0x2')][_0x8915('0xa')](this['commentsArchiveView']):_0x38fa70['panelView']['children']['remove'](this[_0x8915('0x1e')]);});for(const _0x3d79b4 of this[_0x8915('0xb')]){const _0x4c3331=_0x5da954[_0x8915('0x1b')](_0x3d79b4[_0x8915('0x23')]);this[_0x8915('0x1c')](_0x38fa70,_0x4c3331);}return _0x38fa70[_0x8915('0x1d')](this[_0x8915('0xb')],_0x8915('0xa'),(_0x5756bc,_0x1c3c00)=>{const _0x5ed25c=_0x5da954[_0x8915('0x1b')](_0x1c3c00[_0x8915('0x23')]);this['_handleAnnotationFocusableElements'](_0x38fa70,_0x5ed25c);}),_0x38fa70['listenTo'](this['annotationViews'],_0x8915('0x20'),(_0xd01978,_0x5baf5b)=>{const _0x51ba68=_0x5da954['getByInnerView'](_0x5baf5b[_0x8915('0x23')]);for(const _0x3d48a5 of _0x51ba68['focusableElements'])_0x3d48a5[_0x8915('0x30')][_0x8915('0xe')]('ck-body')&&_0x38fa70[_0x8915('0xc')][_0x8915('0x20')](_0x3d48a5);}),_0x38fa70;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f0e=['start','pluginName','_handleMarkerAddAndRemove','$marker','has','activeMarker','hasDomSelection','_threads','_attachedThreads','hasMarkerForId','isEqual','refreshVisibility','consumable','markers','registerPostFixer','from','size','data','_initializeMarkerConverters','end','addCommentThread','map','reconvertMarker','ck-comment-marker','for','state','destroyed','substring','_autoResolvedThreads','conversion','reopenCommentThread','ready','setContext','render','focus','item','_detachCommentThread','document','rootName','addComment','add','once','resolve','high','attachTo','_getTargetForId','removeCommentThread','config','removeMarker:','isThreadsLoadingPaused','registerAnnotation','markerToHighlight','context','upcast','isCollapsed','clear','isResolved','destroy','_handleThreadMarker','change:isReadOnly','$textProxy','scrollToThreadMarker','hasCommentThread','getWalker','_reconvertMarkers','listenTo','getCommentThread','set','createElement','low','ck-comment-marker--active','getAllMarkersForId','model','view','consume','comment','markerName','delete','switchReadOnly','addMarker:','commands','length','managedUsingOperations','getCommentThreads','change','schema','collaboration.channelId','_removedThread','getAttribute','removeMarker','init','editing','CommentsEditing','differ','_hasTargetInContent','newRange','ignoreResolvedComments','enqueueChange','_attachResolvedThread','editingDowncast','getByInnerView','push','plugins','root','_threadToController','editor','_getTextContext','getItems','change:activeMarker','then','text','updateMarker','resolveCommentThread','$graveyard','openNewCommentThread','requires','createPositionBefore','get'];(function(_0x65cdcc,_0x4f0e37){const _0x2be088=function(_0x23882b){while(--_0x23882b){_0x65cdcc['push'](_0x65cdcc['shift']());}};_0x2be088(++_0x4f0e37);}(_0x4f0e,0x7e));const _0x2be0=function(_0x65cdcc,_0x4f0e37){_0x65cdcc=_0x65cdcc-0x0;let _0x2be088=_0x4f0e[_0x65cdcc];return _0x2be088;};import{Plugin as _0xb1c932}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x203557}from'ckeditor5/src/utils';import _0x14340c from'./commentsrepository';import _0x5db15c from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x13b59d}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c6991 from'../annotations/editorannotations';import _0x541953 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x19346f from'./integrations/importword';import _0x514412 from'../annotations/annotations';export default class r extends _0xb1c932{static get[_0x2be0('0x6b')](){return[_0x14340c,_0x1c6991,_0x541953,_0x19346f];}static get[_0x2be0('0x6f')](){return _0x2be0('0x54');}constructor(_0x1ec3a1){super(_0x1ec3a1),this['_removedThread']=null,this[_0x2be0('0x14')]=new Set(),this[_0x2be0('0x3b')](_0x2be0('0x29'),!0x0),_0x1ec3a1[_0x2be0('0x9')][_0x2be0('0x21')](_0x2be0('0x17'),()=>this[_0x2be0('0x29')]=!0x1),this[_0x2be0('0x3b')]('activeMarker',null),this['on'](_0x2be0('0x64'),(_0x5a7a28,_0x507556,_0x3efcc8,_0x2c76c8)=>{const _0x2a8f6a=_0x3efcc8?tt(_0x3efcc8)['id']:null;if(_0x1ec3a1[_0x2be0('0x40')]['change'](()=>{if(_0x2a8f6a){const _0x3a331c=this['getAllMarkersForId'](_0x2a8f6a);for(const _0x55f685 of _0x3a331c)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x55f685);}if(_0x2c76c8){const {id:_0x4a7360}=tt(_0x2c76c8),_0x3aac46=this[_0x2be0('0x3f')](_0x4a7360);for(const _0x954880 of _0x3aac46)_0x1ec3a1['editing'][_0x2be0('0xe')](_0x954880);}}),_0x2a8f6a){const _0x45c69f=_0x1ec3a1[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)['getCommentThread'](_0x2a8f6a);_0x45c69f&&_0x45c69f['isResolved']&&this[_0x2be0('0x35')](_0x2a8f6a);}}),this[_0x2be0('0x0')]=new Map();}[_0x2be0('0x52')](){const _0x1aa5a3=this[_0x2be0('0x61')],_0x309136=_0x1aa5a3[_0x2be0('0x5e')]['get'](_0x14340c),_0x68f2a2=_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e'));_0x1aa5a3[_0x2be0('0x48')][_0x2be0('0x20')](_0x2be0('0xc'),new _0x5db15c(_0x1aa5a3)),this[_0x2be0('0x39')](_0x1aa5a3,_0x2be0('0x33'),(_0x1eb8d0,_0x20533e,_0xd70650)=>{_0x309136[_0x2be0('0x46')](_0xd70650,_0x1aa5a3[_0x2be0('0x27')]['get'](_0x2be0('0x4e')));}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0xc'),_0x68f2a2),(_0x53b39a,{threadId:_0x51e386})=>{const _0x554043=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x51e386);_0x554043&&_0x554043[_0x2be0('0x30')]&&this[_0x2be0('0x5a')](_0x51e386);}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x26'),_0x68f2a2),(_0x4bd1ad,{threadId:_0x8d484c})=>{_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x287d2f=>{const _0x578d6a=this[_0x2be0('0x3f')](_0x8d484c);this[_0x2be0('0x0')]['delete'](_0x8d484c),this[_0x2be0('0x4f')]=_0x8d484c;for(const _0x329732 of _0x578d6a)_0x287d2f[_0x2be0('0x51')](_0x329732);}),this['_removedThread']=null;},{'priority':_0x2be0('0x23')}),this['listenTo'](_0x309136,Z(_0x2be0('0x68'),_0x68f2a2),(_0x334d28,{threadId:_0x3686bc})=>{this[_0x2be0('0x5a')](_0x3686bc),this[_0x2be0('0x38')](_0x3686bc),this[_0x2be0('0x61')]['editing'][_0x2be0('0x41')][_0x2be0('0x74')]&&this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x1a')]();},{'priority':_0x2be0('0x3d')}),this[_0x2be0('0x39')](_0x309136,Z(_0x2be0('0x16'),_0x68f2a2),(_0x101495,{threadId:_0x2f800c})=>{this[_0x2be0('0x38')](_0x2f800c);},{'priority':_0x2be0('0x3d')}),this['listenTo'](_0x309136,Z(_0x2be0('0x1f'),_0x68f2a2),(_0x31adce,{threadId:_0x195a94,isFromAdapter:_0x377d78})=>{const _0x747388=this[_0x2be0('0x3f')](_0x195a94);if(_0x377d78||0x0==_0x747388[_0x2be0('0x49')]||!_0x309136[_0x2be0('0x36')](_0x195a94))return;0x1===_0x309136[_0x2be0('0x3a')](_0x195a94)[_0x2be0('0x49')]&&_0x1aa5a3[_0x2be0('0x40')][_0x2be0('0x59')]({'isUndoable':!0x1},_0x4fb570=>{for(const _0x1d0293 of _0x747388)_0x4fb570[_0x2be0('0x67')](_0x1d0293,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2be0('0x3d')}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x2be0('0x31')](){const _0x4488b8=this['editor'][_0x2be0('0x5e')]['get'](_0x14340c),_0x3d358d=this[_0x2be0('0x61')][_0x2be0('0x27')][_0x2be0('0x6d')]('collaboration.channelId');for(const _0xcdf606 of _0x4488b8[_0x2be0('0x4b')]({'channelId':_0x3d358d}))_0x4488b8[_0x2be0('0x1c')](_0xcdf606['id']),_0x4488b8[_0x2be0('0x75')]['delete'](_0xcdf606['id']);super[_0x2be0('0x31')]();}[_0x2be0('0x1')](_0x1a5824){return this[_0x2be0('0x3f')](_0x1a5824)[_0x2be0('0x49')]>0x0;}['getAllMarkersForId'](_0x58ff78){return Array[_0x2be0('0x7')](this['_attachedThreads']['get'](_0x58ff78)||[])[_0x2be0('0xd')](_0x51be71=>this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x5')]['get'](_0x51be71))['filter'](_0x144240=>_0x144240);}[_0x2be0('0x35')](_0x223145){const _0x4bcce4=this[_0x2be0('0x25')](_0x223145);_0x4bcce4&&setTimeout(()=>{this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x223145&&_0x203557({'target':_0x4bcce4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2be0('0x38')](_0x4454f8){this[_0x2be0('0x61')][_0x2be0('0x40')][_0x2be0('0x4c')](()=>{for(const _0x7f6b8d of this[_0x2be0('0x3f')](_0x4454f8))this[_0x2be0('0x61')][_0x2be0('0x53')][_0x2be0('0xe')](_0x7f6b8d);});}[_0x2be0('0x5a')](_0x491bb2){const _0x545b5a=this[_0x2be0('0x61')][_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x5444d6=this[_0x2be0('0x61')]['plugins'][_0x2be0('0x6d')](_0x1c6991),_0x1a5d47=_0x545b5a['getCommentThread'](_0x491bb2);if(!this[_0x2be0('0x0')]['has'](_0x491bb2)){const _0x31c0d6=_0x1a5d47[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1a5d47['id']));_0x5444d6['registerAnnotation'](_0x31c0d6),this['_attachedThreads'][_0x2be0('0x3b')](_0x491bb2,new Set()),_0x1a5d47['_hasTargetInContent']=!0x1;}}[_0x2be0('0xa')](){const _0x158dde=this[_0x2be0('0x61')];_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')](_0x2be0('0x5b'))[_0x2be0('0x2b')]({'model':_0x2be0('0x43'),'view':(_0x37b090,_0x54254b)=>{const {id:_0x5902f5}=tt(_0x37b090[_0x2be0('0x44')]),_0x217a03=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c)[_0x2be0('0x3a')](_0x5902f5),_0x5b566b=this[_0x2be0('0x73')]&&tt(this['activeMarker'])['id']===_0x5902f5;if(_0x217a03&&_0x217a03['isResolved']&&!_0x5b566b&&_0x37b090[_0x2be0('0x1b')])return _0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x47')+_0x37b090[_0x2be0('0x44')]),_0x54254b[_0x2be0('0x4')][_0x2be0('0x42')](_0x37b090[_0x2be0('0x1b')],_0x2be0('0x28')+_0x37b090['markerName']),{'classes':[]};const _0x19b944=[_0x2be0('0xf')];return _0x5b566b&&_0x19b944[_0x2be0('0x5d')](_0x2be0('0x3e')),{'classes':_0x19b944,'attributes':{'data-comment':_0x5902f5}};}}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('dataDowncast')['markerToData']({'model':'comment','view':(_0x331531,{options:_0x5ded89})=>{const _0x459ecc=_0x158dde[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x57b500=_0x158dde[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x331531),{id:_0x4d6846,part:_0x4a7896}=tt(_0x331531);if(_0x57b500&&!_0x57b500['affectsData'])return null;if(_0x5ded89[_0x2be0('0x58')]){const _0x54ac3f=_0x459ecc[_0x2be0('0x3a')](_0x4d6846);if(_0x54ac3f&&_0x54ac3f[_0x2be0('0x30')])return null;}return{'group':'comment','name':_0x4a7896?_0x4d6846+':'+_0x4a7896:_0x4d6846};}}),_0x158dde['conversion'][_0x2be0('0x10')](_0x2be0('0x2d'))['elementToElement']({'view':{'name':_0x2be0('0x43'),'attributes':{'id':/^\w/}},'model':(_0x550286,{writer:_0x3f7744})=>_0x3f7744[_0x2be0('0x3c')](_0x2be0('0x71'),{'data-name':'comment:'+_0x550286[_0x2be0('0x50')]('id')})}),_0x158dde[_0x2be0('0x15')][_0x2be0('0x10')]('upcast')['dataToMarker']({'view':_0x2be0('0x43')});}[_0x2be0('0x70')](){const _0x2ae801=this[_0x2be0('0x61')],_0x4ad008=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x14340c),_0x4c7685=new Set(),_0x5015ed=new Set();_0x2ae801['model']['document'][_0x2be0('0x6')](_0x1e12ee=>{let _0x4df1bd=!0x1;for(const {name:_0x1cce09,data:_0x59ffcf}of _0x2ae801[_0x2be0('0x40')][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x424356,id:_0x2c028b}=tt(_0x1cce09);let _0x30abe8=_0x59ffcf[_0x2be0('0x57')];if(_0x2be0('0x43')!==_0x424356||!_0x30abe8)continue;const _0x4a0caa=_0x2be0('0x69')===_0x30abe8[_0x2be0('0x5f')][_0x2be0('0x1e')];_0x4a0caa||(_0x30abe8=ot(_0x30abe8,_0x2ae801[_0x2be0('0x40')]),!_0x30abe8||_0x30abe8['isCollapsed']||!_0x59ffcf[_0x2be0('0x57')]||_0x30abe8[_0x2be0('0x2')](_0x59ffcf[_0x2be0('0x57')]))?_0x2ae801[_0x2be0('0x40')]['hasContent'](_0x30abe8)&&!_0x4a0caa?this[_0x2be0('0x29')]?_0x4c7685[_0x2be0('0x20')](_0x1cce09):this[_0x2be0('0x32')](_0x1cce09,_0x2c028b):(_0x5015ed['add'](_0x1cce09),_0x4c7685[_0x2be0('0x45')](_0x1cce09),_0x1e12ee[_0x2be0('0x51')](_0x1cce09),_0x4df1bd=!0x0):(_0x1e12ee['updateMarker'](_0x1cce09,{'range':_0x30abe8}),_0x4df1bd=!0x0);}return _0x4df1bd;}),this['on']('change:isThreadsLoadingPaused',(_0x3c57dc,_0x28aefd,_0x3e3812)=>{if(!_0x3e3812&&_0x4c7685[_0x2be0('0x8')])for(const _0x3d9158 of _0x4c7685){const {id:_0x5909e2}=tt(_0x3d9158);_0x4c7685[_0x2be0('0x45')](_0x3d9158),_0x2ae801[_0x2be0('0x40')][_0x2be0('0x5')][_0x2be0('0x6d')](_0x3d9158)&&this[_0x2be0('0x32')](_0x3d9158,_0x5909e2);}}),this[_0x2be0('0x39')](_0x2ae801[_0x2be0('0x40')]['document'],_0x2be0('0x4c'),(_0x1e39d2,_0x107813)=>{for(const {name:_0x16ff82,data:{newRange:_0x3525df}}of _0x2ae801['model'][_0x2be0('0x1d')][_0x2be0('0x55')]['getChangedMarkers']()){const {group:_0x421789,id:_0x22c6b9}=tt(_0x16ff82);if(_0x2be0('0x43')!==_0x421789)continue;const _0x25bf94=_0x4ad008[_0x2be0('0x3a')](_0x22c6b9),_0x52f78f=this['hasMarkerForId'](_0x22c6b9);_0x25bf94&&(_0x25bf94[_0x2be0('0x56')]||_0x2ae801['editing'][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x24ebf3=_0x2ae801[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412),_0x18fc25=_0x4ad008['_threadToController']['get'](_0x25bf94)['view'];_0x24ebf3[_0x2be0('0x5c')](_0x18fc25)[_0x2be0('0x3')]();},{'priority':_0x2be0('0x3d')}),_0x25bf94['_hasTargetInContent']=_0x52f78f||!!_0x3525df),_0x3525df||(_0x5015ed['add'](_0x16ff82),_0x4c7685[_0x2be0('0x45')](_0x16ff82),this[_0x2be0('0x0')][_0x2be0('0x72')](_0x22c6b9)&&this[_0x2be0('0x0')]['get'](_0x22c6b9)['delete'](_0x16ff82));}if(_0x107813['isLocal'])for(const _0x2299e5 of _0x5015ed){const {id:_0x5ce4af}=tt(_0x2299e5),_0x1b10f6=_0x4ad008[_0x2be0('0x3a')](_0x5ce4af),_0x5c5e73=this[_0x2be0('0x1')](_0x5ce4af);_0x4c7685[_0x2be0('0x45')](_0x2299e5),!_0x1b10f6||_0x5c5e73||_0x1b10f6[_0x2be0('0x30')]||this[_0x2be0('0x4f')]===_0x5ce4af||(this[_0x2be0('0x14')][_0x2be0('0x20')](_0x1b10f6),_0x1b10f6[_0x2be0('0x22')]());}_0x5015ed[_0x2be0('0x2f')]();});}[_0x2be0('0x25')](_0x2bc804){const _0x50edbe=this['editor'],_0x269ab3=this[_0x2be0('0x3f')](_0x2bc804);return _0x13b59d(_0x50edbe[_0x2be0('0x53')],_0x269ab3);}[_0x2be0('0x62')](_0x5d1ac2){const _0x44a649=this[_0x2be0('0x3f')](_0x5d1ac2);let _0x18ba19='',_0x77126e=!0x1;for(const _0xfadf3c of _0x44a649){const _0x54d624=_0xfadf3c['getRange']();for(const _0x1f95c4 of Array['from'](_0x54d624[_0x2be0('0x63')]()))_0x1f95c4['is'](_0x2be0('0x34'))?(_0x18ba19&&_0x77126e&&(_0x18ba19+='\x20',_0x77126e=!0x1),_0x18ba19+=_0x1f95c4[_0x2be0('0x9')]):_0x77126e=!0x0;_0x77126e=!0x0;}return _0x18ba19[_0x2be0('0x13')](0x0,0x96);}['_attachMarkerToThread'](_0x43acf2,_0x1b724f){const _0xd468b5=this[_0x2be0('0x61')],_0x1a2de9=_0xd468b5['plugins'][_0x2be0('0x6d')](_0x14340c);let _0x232b3b=_0x1a2de9['getCommentThread'](_0x1b724f);if(this[_0x2be0('0x0')][_0x2be0('0x72')](_0x1b724f)){const _0x4fed62=this[_0x2be0('0x0')][_0x2be0('0x6d')](_0x1b724f);_0x4fed62[_0x2be0('0x72')](_0x43acf2)||_0x4fed62[_0x2be0('0x20')](_0x43acf2);}const _0x1fe196=_0xd468b5[_0x2be0('0x27')][_0x2be0('0x6d')](_0x2be0('0x4e')),_0x513ddd=_0xd468b5[_0x2be0('0x5e')]['get'](_0x1c6991);if(_0x232b3b&&_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x14')][_0x2be0('0x72')](_0x232b3b)&&(this[_0x2be0('0x14')][_0x2be0('0x45')](_0x232b3b),_0x232b3b['reopen']()),this[_0x2be0('0x0')]['has'](_0x1b724f))return _0x232b3b;return this[_0x2be0('0x0')][_0x2be0('0x3b')](_0x1b724f,new Set([_0x43acf2])),(!this[_0x2be0('0x3f')](_0x1b724f)[0x0][_0x2be0('0x4a')]?_0xd468b5[_0x2be0('0x53')][_0x2be0('0x41')][_0x2be0('0x21')](_0x2be0('0x19'),()=>{const _0x52e24d=_0xd468b5[_0x2be0('0x5e')][_0x2be0('0x6d')](_0x514412);_0x232b3b=_0x1a2de9[_0x2be0('0x6a')]({'channelId':_0x1fe196,'threadId':_0x1b724f,'target':()=>this[_0x2be0('0x25')](_0x1b724f),'context':{'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x1b724f)}});const _0x388e75=_0x1a2de9[_0x2be0('0x60')]['get'](_0x232b3b)[_0x2be0('0x41')],_0x291fdc=_0x52e24d['getByInnerView'](_0x388e75);_0x291fdc&&_0x513ddd[_0x2be0('0x2a')](_0x291fdc);},{'priority':_0x2be0('0x3d')}):_0x1a2de9['fetchCommentThread']({'channelId':_0x1fe196,'threadId':_0x1b724f})[_0x2be0('0x65')](_0x2b553c=>{if(_0x2be0('0x12')!==_0xd468b5[_0x2be0('0x11')]){if(_0x232b3b=_0x2b553c,_0x232b3b){const _0xba90b0=_0x232b3b[_0x2be0('0x24')](()=>this['_getTargetForId'](_0x1b724f));_0x513ddd['registerAnnotation'](_0xba90b0),_0x232b3b[_0x2be0('0x30')]&&this[_0x2be0('0x38')](_0x1b724f);}else{const _0x14f4eb=this[_0x2be0('0x3f')](_0x1b724f);_0xd468b5['model'][_0x2be0('0x4c')](_0x9cebf3=>{for(const _0x4aea53 of _0x14f4eb)_0x9cebf3[_0x2be0('0x51')](_0x4aea53);});}}}),_0x232b3b);}['_handleThreadMarker'](_0x3ca084,_0x3c91a9){const _0x560db4=this['_attachMarkerToThread'](_0x3ca084,_0x3c91a9);_0x560db4&&!_0x560db4[_0x2be0('0x2c')]&&_0x560db4[_0x2be0('0x18')]({'type':_0x2be0('0x66'),'value':this['_getTextContext'](_0x3c91a9)});}}function Z(_0x5192d9,_0x46bdd6){return _0x46bdd6?_0x5192d9+':'+_0x46bdd6:_0x5192d9;}function tt(_0x2da5aa){const _0x53e16a=_0x2da5aa['split'](':');return{'group':_0x53e16a[0x0],'id':_0x53e16a[0x1],'part':_0x53e16a[0x2]};}function ot(_0x364dbf,_0x384db4){const _0x5c19c4=_0x384db4[_0x2be0('0x4d')],_0x71b601=_0x384db4['createRange'](_0x364dbf[_0x2be0('0x6e')]);for(const _0x1035f9 of _0x364dbf[_0x2be0('0x37')]()){const {type:_0x1c908c,item:_0x4a51c4,nextPosition:_0xbed3c9}=_0x1035f9;if(_0x2be0('0x66')===_0x1c908c||_0x5c19c4['isObject'](_0x4a51c4)){const _0xe600d9=_0x384db4[_0x2be0('0x6c')](_0x4a51c4);_0x71b601[_0x2be0('0x2e')]&&(_0x71b601[_0x2be0('0x6e')]=_0xe600d9),_0x71b601[_0x2be0('0xb')]=_0xbed3c9;}}return _0x71b601;}
|
|
23
|
+
const _0x38f9=['markerToData','_removedThread','consumable','from','map','switchReadOnly','then','enqueueChange','pluginName','removeCommentThread','markerToHighlight','hasMarkerForId','scrollToThreadMarker','upcast','rootName','getByInnerView','config','destroyed','length','state','addMarker:','render','dataToMarker','isEqual','_threadToController','managedUsingOperations','editing','plugins','get','getChangedMarkers','_hasTargetInContent','reopen','for','activeMarker','getAllMarkersForId','_reconvertMarkers','createRange','hasContent','ck-comment-marker','$graveyard','view','attachTo','elementToElement','consume','hasCommentThread','model','destroy','_getTargetForId','text','refreshVisibility','setContext','focus','fetchCommentThread','isResolved','openNewCommentThread','substring','ck-comment-marker--active','_attachMarkerToThread','isThreadsLoadingPaused','requires','editor','newRange','getAttribute','_autoResolvedThreads','low','once','conversion','getWalker','_attachResolvedThread','removeMarker','end','add','commands','createElement','delete','CommentsEditing','updateMarker','ignoreResolvedComments','editingDowncast','reconvertMarker','resolveCommentThread','getItems','_threads','_attachedThreads','has','_handleThreadMarker','registerPostFixer','createPositionBefore','listenTo','markerName','comment','change:isThreadsLoadingPaused','data','item','getCommentThread','context','registerAnnotation','collaboration.channelId','isCollapsed','push','hasDomSelection','filter','ready','_getTextContext','set','start','getCommentThreads','change:isReadOnly','differ','high','markers','schema','document','clear','_handleMarkerAddAndRemove','split','change','comment:','_detachCommentThread','_initializeMarkerConverters','$marker'];(function(_0x2f5fd3,_0x38f943){const _0x52555=function(_0x455994){while(--_0x455994){_0x2f5fd3['push'](_0x2f5fd3['shift']());}};_0x52555(++_0x38f943);}(_0x38f9,0x12b));const _0x5255=function(_0x2f5fd3,_0x38f943){_0x2f5fd3=_0x2f5fd3-0x0;let _0x52555=_0x38f9[_0x2f5fd3];return _0x52555;};import{Plugin as _0x4039b7}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3ba6d0}from'ckeditor5/src/utils';import _0x35c557 from'./commentsrepository';import _0x9c2f61 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3025b0}from'ckeditor5-collaboration/src/collaboration-core';import _0x12a9d2 from'../annotations/editorannotations';import _0x562fa9 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x40a4ac from'./integrations/importword';import _0x3bba52 from'../annotations/annotations';export default class r extends _0x4039b7{static get[_0x5255('0x2')](){return[_0x35c557,_0x12a9d2,_0x562fa9,_0x40a4ac];}static get[_0x5255('0x48')](){return _0x5255('0x12');}constructor(_0x271185){super(_0x271185),this[_0x5255('0x41')]=null,this[_0x5255('0x6')]=new Set(),this[_0x5255('0x2f')]('isThreadsLoadingPaused',!0x0),_0x271185[_0x5255('0x23')][_0x5255('0x8')](_0x5255('0x2d'),()=>this[_0x5255('0x1')]=!0x1),this[_0x5255('0x2f')]('activeMarker',null),this['on']('change:activeMarker',(_0x25ac45,_0x19b705,_0x4a987c,_0x573e05)=>{const _0x5db7fa=_0x4a987c?tt(_0x4a987c)['id']:null;if(_0x271185[_0x5255('0x6d')][_0x5255('0x3b')](()=>{if(_0x5db7fa){const _0x4330f9=this[_0x5255('0x62')](_0x5db7fa);for(const _0x44a29e of _0x4330f9)_0x271185[_0x5255('0x5a')][_0x5255('0x16')](_0x44a29e);}if(_0x573e05){const {id:_0x1c5478}=tt(_0x573e05),_0x8ef9e5=this[_0x5255('0x62')](_0x1c5478);for(const _0x4fb562 of _0x8ef9e5)_0x271185[_0x5255('0x5a')]['reconvertMarker'](_0x4fb562);}}),_0x5db7fa){const _0x3a9f46=_0x271185[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557)[_0x5255('0x25')](_0x5db7fa);_0x3a9f46&&_0x3a9f46['isResolved']&&this[_0x5255('0x4c')](_0x5db7fa);}}),this['_attachedThreads']=new Map();}['init'](){const _0x2e2bd8=this['editor'],_0x5e1fa0=_0x2e2bd8[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557),_0x1fade3=_0x2e2bd8[_0x5255('0x50')][_0x5255('0x5c')](_0x5255('0x28'));_0x2e2bd8[_0x5255('0xf')][_0x5255('0xe')]('addCommentThread',new _0x9c2f61(_0x2e2bd8)),this[_0x5255('0x1f')](_0x2e2bd8,_0x5255('0x32'),(_0xc45b39,_0x1b5ce1,_0x187c47)=>{_0x5e1fa0[_0x5255('0x45')](_0x187c47,_0x2e2bd8[_0x5255('0x50')][_0x5255('0x5c')](_0x5255('0x28')));}),this[_0x5255('0x1f')](_0x5e1fa0,Z('addCommentThread',_0x1fade3),(_0x5b4036,{threadId:_0x7d6134})=>{const _0x542b96=this[_0x5255('0x3')][_0x5255('0x5b')]['get'](_0x35c557)[_0x5255('0x25')](_0x7d6134);_0x542b96&&_0x542b96[_0x5255('0x75')]&&this[_0x5255('0xb')](_0x7d6134);}),this[_0x5255('0x1f')](_0x5e1fa0,Z(_0x5255('0x49'),_0x1fade3),(_0x323728,{threadId:_0x581e81})=>{_0x2e2bd8[_0x5255('0x6d')]['enqueueChange']({'isUndoable':!0x1},_0x507c1e=>{const _0x2e67b7=this[_0x5255('0x62')](_0x581e81);this[_0x5255('0x1a')][_0x5255('0x11')](_0x581e81),this[_0x5255('0x41')]=_0x581e81;for(const _0x2ef8b6 of _0x2e67b7)_0x507c1e[_0x5255('0xc')](_0x2ef8b6);}),this[_0x5255('0x41')]=null;},{'priority':_0x5255('0x34')}),this[_0x5255('0x1f')](_0x5e1fa0,Z(_0x5255('0x17'),_0x1fade3),(_0x1e03fa,{threadId:_0x18f705})=>{this[_0x5255('0xb')](_0x18f705),this['_reconvertMarkers'](_0x18f705),this[_0x5255('0x3')][_0x5255('0x5a')]['view'][_0x5255('0x2b')]&&this['editor'][_0x5255('0x5a')][_0x5255('0x68')][_0x5255('0x73')]();},{'priority':_0x5255('0x7')}),this[_0x5255('0x1f')](_0x5e1fa0,Z('reopenCommentThread',_0x1fade3),(_0x121855,{threadId:_0x6945e7})=>{this[_0x5255('0x63')](_0x6945e7);},{'priority':_0x5255('0x7')}),this[_0x5255('0x1f')](_0x5e1fa0,Z('addComment',_0x1fade3),(_0x505457,{threadId:_0x3154cd,isFromAdapter:_0x12c498})=>{const _0x3c3eb2=this[_0x5255('0x62')](_0x3154cd);if(_0x12c498||0x0==_0x3c3eb2['length']||!_0x5e1fa0[_0x5255('0x6c')](_0x3154cd))return;0x1===_0x5e1fa0['getCommentThread'](_0x3154cd)[_0x5255('0x52')]&&_0x2e2bd8[_0x5255('0x6d')][_0x5255('0x47')]({'isUndoable':!0x1},_0x1eff7e=>{for(const _0x133ff3 of _0x3c3eb2)_0x1eff7e[_0x5255('0x13')](_0x133ff3,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5255('0x7')}),this[_0x5255('0x3e')](),this[_0x5255('0x39')]();}[_0x5255('0x6e')](){const _0x21028d=this[_0x5255('0x3')][_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557),_0x50643a=this[_0x5255('0x3')][_0x5255('0x50')][_0x5255('0x5c')]('collaboration.channelId');for(const _0x2e551d of _0x21028d[_0x5255('0x31')]({'channelId':_0x50643a}))_0x21028d[_0x5255('0x3d')](_0x2e551d['id']),_0x21028d[_0x5255('0x19')][_0x5255('0x11')](_0x2e551d['id']);super[_0x5255('0x6e')]();}[_0x5255('0x4b')](_0x50d7d0){return this[_0x5255('0x62')](_0x50d7d0)['length']>0x0;}[_0x5255('0x62')](_0x56efe6){return Array[_0x5255('0x43')](this['_attachedThreads']['get'](_0x56efe6)||[])[_0x5255('0x44')](_0xd73ea9=>this['editor']['model'][_0x5255('0x35')][_0x5255('0x5c')](_0xd73ea9))[_0x5255('0x2c')](_0x1fafbb=>_0x1fafbb);}['scrollToThreadMarker'](_0x541c14){const _0x52e47e=this[_0x5255('0x6f')](_0x541c14);_0x52e47e&&setTimeout(()=>{this[_0x5255('0x61')]&&tt(this[_0x5255('0x61')])['id']===_0x541c14&&_0x3ba6d0({'target':_0x52e47e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4c9c5e){this[_0x5255('0x3')][_0x5255('0x6d')]['change'](()=>{for(const _0x4283c4 of this['getAllMarkersForId'](_0x4c9c5e))this[_0x5255('0x3')][_0x5255('0x5a')]['reconvertMarker'](_0x4283c4);});}['_attachResolvedThread'](_0x9b414f){const _0x563f37=this[_0x5255('0x3')]['plugins']['get'](_0x35c557),_0x6b0bcc=this[_0x5255('0x3')]['plugins'][_0x5255('0x5c')](_0x12a9d2),_0x3a18bf=_0x563f37['getCommentThread'](_0x9b414f);if(!this[_0x5255('0x1a')][_0x5255('0x1b')](_0x9b414f)){const _0x3d0cd9=_0x3a18bf['attachTo'](()=>this['_getTargetForId'](_0x3a18bf['id']));_0x6b0bcc[_0x5255('0x27')](_0x3d0cd9),this[_0x5255('0x1a')][_0x5255('0x2f')](_0x9b414f,new Set()),_0x3a18bf[_0x5255('0x5e')]=!0x1;}}['_initializeMarkerConverters'](){const _0x1c69d7=this[_0x5255('0x3')];_0x1c69d7[_0x5255('0x9')][_0x5255('0x60')](_0x5255('0x15'))[_0x5255('0x4a')]({'model':_0x5255('0x21'),'view':(_0x51c1df,_0x58e8fd)=>{const {id:_0x34749b}=tt(_0x51c1df[_0x5255('0x20')]),_0x18e12c=_0x1c69d7['plugins'][_0x5255('0x5c')](_0x35c557)[_0x5255('0x25')](_0x34749b),_0x41c835=this[_0x5255('0x61')]&&tt(this[_0x5255('0x61')])['id']===_0x34749b;if(_0x18e12c&&_0x18e12c[_0x5255('0x75')]&&!_0x41c835&&_0x51c1df['item'])return _0x58e8fd[_0x5255('0x42')]['consume'](_0x51c1df[_0x5255('0x24')],_0x5255('0x54')+_0x51c1df['markerName']),_0x58e8fd[_0x5255('0x42')][_0x5255('0x6b')](_0x51c1df[_0x5255('0x24')],'removeMarker:'+_0x51c1df['markerName']),{'classes':[]};const _0x4ceb61=[_0x5255('0x66')];return _0x41c835&&_0x4ceb61[_0x5255('0x2a')](_0x5255('0x78')),{'classes':_0x4ceb61,'attributes':{'data-comment':_0x34749b}};}}),_0x1c69d7[_0x5255('0x9')]['for']('dataDowncast')[_0x5255('0x40')]({'model':_0x5255('0x21'),'view':(_0x13fc4e,{options:_0x2952fb})=>{const _0x3b07d0=_0x1c69d7[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557),_0xd47750=_0x1c69d7['model'][_0x5255('0x35')]['get'](_0x13fc4e),{id:_0x32a9fd,part:_0x133d00}=tt(_0x13fc4e);if(_0xd47750&&!_0xd47750['affectsData'])return null;if(_0x2952fb[_0x5255('0x14')]){const _0xc2ce63=_0x3b07d0[_0x5255('0x25')](_0x32a9fd);if(_0xc2ce63&&_0xc2ce63['isResolved'])return null;}return{'group':_0x5255('0x21'),'name':_0x133d00?_0x32a9fd+':'+_0x133d00:_0x32a9fd};}}),_0x1c69d7[_0x5255('0x9')][_0x5255('0x60')](_0x5255('0x4d'))[_0x5255('0x6a')]({'view':{'name':_0x5255('0x21'),'attributes':{'id':/^\w/}},'model':(_0x39c005,{writer:_0x49541d})=>_0x49541d[_0x5255('0x10')](_0x5255('0x3f'),{'data-name':_0x5255('0x3c')+_0x39c005[_0x5255('0x5')]('id')})}),_0x1c69d7['conversion'][_0x5255('0x60')](_0x5255('0x4d'))[_0x5255('0x56')]({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x364534=this[_0x5255('0x3')],_0x28513c=_0x364534['plugins'][_0x5255('0x5c')](_0x35c557),_0x525312=new Set(),_0x32928b=new Set();_0x364534['model'][_0x5255('0x37')][_0x5255('0x1d')](_0x57e59d=>{let _0xf1d419=!0x1;for(const {name:_0xded7ee,data:_0x49c337}of _0x364534[_0x5255('0x6d')][_0x5255('0x37')][_0x5255('0x33')][_0x5255('0x5d')]()){const {group:_0x2d2ad6,id:_0x217f29}=tt(_0xded7ee);let _0x112703=_0x49c337['newRange'];if(_0x5255('0x21')!==_0x2d2ad6||!_0x112703)continue;const _0x1e4d4d=_0x5255('0x67')===_0x112703['root'][_0x5255('0x4e')];_0x1e4d4d||(_0x112703=ot(_0x112703,_0x364534[_0x5255('0x6d')]),!_0x112703||_0x112703[_0x5255('0x29')]||!_0x49c337[_0x5255('0x4')]||_0x112703[_0x5255('0x57')](_0x49c337[_0x5255('0x4')]))?_0x364534[_0x5255('0x6d')][_0x5255('0x65')](_0x112703)&&!_0x1e4d4d?this['isThreadsLoadingPaused']?_0x525312[_0x5255('0xe')](_0xded7ee):this['_handleThreadMarker'](_0xded7ee,_0x217f29):(_0x32928b[_0x5255('0xe')](_0xded7ee),_0x525312[_0x5255('0x11')](_0xded7ee),_0x57e59d[_0x5255('0xc')](_0xded7ee),_0xf1d419=!0x0):(_0x57e59d[_0x5255('0x13')](_0xded7ee,{'range':_0x112703}),_0xf1d419=!0x0);}return _0xf1d419;}),this['on'](_0x5255('0x22'),(_0x11d73a,_0xfa0561,_0x5e2ad0)=>{if(!_0x5e2ad0&&_0x525312['size'])for(const _0x58e510 of _0x525312){const {id:_0x34c013}=tt(_0x58e510);_0x525312['delete'](_0x58e510),_0x364534['model'][_0x5255('0x35')]['get'](_0x58e510)&&this[_0x5255('0x1c')](_0x58e510,_0x34c013);}}),this[_0x5255('0x1f')](_0x364534[_0x5255('0x6d')]['document'],'change',(_0x17a106,_0x1992f0)=>{for(const {name:_0x3efcf9,data:{newRange:_0x35d186}}of _0x364534[_0x5255('0x6d')][_0x5255('0x37')][_0x5255('0x33')][_0x5255('0x5d')]()){const {group:_0x283cff,id:_0x12aa80}=tt(_0x3efcf9);if(_0x5255('0x21')!==_0x283cff)continue;const _0x5d3bf0=_0x28513c[_0x5255('0x25')](_0x12aa80),_0x1aa8f0=this[_0x5255('0x4b')](_0x12aa80);_0x5d3bf0&&(_0x5d3bf0[_0x5255('0x5e')]||_0x364534[_0x5255('0x5a')]['view'][_0x5255('0x8')](_0x5255('0x55'),()=>{const _0x32dd59=_0x364534[_0x5255('0x5b')][_0x5255('0x5c')](_0x3bba52),_0x5ddaf2=_0x28513c[_0x5255('0x58')][_0x5255('0x5c')](_0x5d3bf0)['view'];_0x32dd59['getByInnerView'](_0x5ddaf2)[_0x5255('0x71')]();},{'priority':'low'}),_0x5d3bf0[_0x5255('0x5e')]=_0x1aa8f0||!!_0x35d186),_0x35d186||(_0x32928b['add'](_0x3efcf9),_0x525312[_0x5255('0x11')](_0x3efcf9),this[_0x5255('0x1a')][_0x5255('0x1b')](_0x12aa80)&&this['_attachedThreads'][_0x5255('0x5c')](_0x12aa80)[_0x5255('0x11')](_0x3efcf9));}if(_0x1992f0['isLocal'])for(const _0x513040 of _0x32928b){const {id:_0x27fea7}=tt(_0x513040),_0x1ea527=_0x28513c[_0x5255('0x25')](_0x27fea7),_0x51d1f3=this[_0x5255('0x4b')](_0x27fea7);_0x525312['delete'](_0x513040),!_0x1ea527||_0x51d1f3||_0x1ea527['isResolved']||this[_0x5255('0x41')]===_0x27fea7||(this[_0x5255('0x6')][_0x5255('0xe')](_0x1ea527),_0x1ea527['resolve']());}_0x32928b[_0x5255('0x38')]();});}[_0x5255('0x6f')](_0x4b7b52){const _0x3a0e05=this[_0x5255('0x3')],_0x1f9a81=this[_0x5255('0x62')](_0x4b7b52);return _0x3025b0(_0x3a0e05[_0x5255('0x5a')],_0x1f9a81);}[_0x5255('0x2e')](_0x16aaab){const _0x1c6ba9=this[_0x5255('0x62')](_0x16aaab);let _0x2ef625='',_0x171b31=!0x1;for(const _0x342edf of _0x1c6ba9){const _0x4e12d2=_0x342edf['getRange']();for(const _0x213273 of Array[_0x5255('0x43')](_0x4e12d2[_0x5255('0x18')]()))_0x213273['is']('$textProxy')?(_0x2ef625&&_0x171b31&&(_0x2ef625+='\x20',_0x171b31=!0x1),_0x2ef625+=_0x213273[_0x5255('0x23')]):_0x171b31=!0x0;_0x171b31=!0x0;}return _0x2ef625[_0x5255('0x77')](0x0,0x96);}['_attachMarkerToThread'](_0x75074b,_0x48731b){const _0x5a2afc=this[_0x5255('0x3')],_0x42eb11=_0x5a2afc[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557);let _0xbfad0=_0x42eb11[_0x5255('0x25')](_0x48731b);if(this[_0x5255('0x1a')]['has'](_0x48731b)){const _0x369f74=this['_attachedThreads'][_0x5255('0x5c')](_0x48731b);_0x369f74['has'](_0x75074b)||_0x369f74[_0x5255('0xe')](_0x75074b);}const _0x1afeda=_0x5a2afc['config'][_0x5255('0x5c')](_0x5255('0x28')),_0x7b476=_0x5a2afc['plugins'][_0x5255('0x5c')](_0x12a9d2);if(_0xbfad0&&_0xbfad0[_0x5255('0x75')]&&this[_0x5255('0x6')][_0x5255('0x1b')](_0xbfad0)&&(this['_autoResolvedThreads'][_0x5255('0x11')](_0xbfad0),_0xbfad0[_0x5255('0x5f')]()),this['_attachedThreads']['has'](_0x48731b))return _0xbfad0;return this[_0x5255('0x1a')][_0x5255('0x2f')](_0x48731b,new Set([_0x75074b])),(!this['getAllMarkersForId'](_0x48731b)[0x0][_0x5255('0x59')]?_0x5a2afc[_0x5255('0x5a')]['view']['once'](_0x5255('0x55'),()=>{const _0x123a9f=_0x5a2afc[_0x5255('0x5b')][_0x5255('0x5c')](_0x3bba52);_0xbfad0=_0x42eb11[_0x5255('0x76')]({'channelId':_0x1afeda,'threadId':_0x48731b,'target':()=>this[_0x5255('0x6f')](_0x48731b),'context':{'type':'text','value':this[_0x5255('0x2e')](_0x48731b)}});const _0x158fbf=_0x42eb11[_0x5255('0x58')][_0x5255('0x5c')](_0xbfad0)[_0x5255('0x68')],_0x3ee2bc=_0x123a9f[_0x5255('0x4f')](_0x158fbf);_0x3ee2bc&&_0x7b476[_0x5255('0x27')](_0x3ee2bc);},{'priority':'low'}):_0x42eb11[_0x5255('0x74')]({'channelId':_0x1afeda,'threadId':_0x48731b})[_0x5255('0x46')](_0x176fdb=>{if(_0x5255('0x51')!==_0x5a2afc[_0x5255('0x53')]){if(_0xbfad0=_0x176fdb,_0xbfad0){const _0x125a17=_0xbfad0[_0x5255('0x69')](()=>this[_0x5255('0x6f')](_0x48731b));_0x7b476[_0x5255('0x27')](_0x125a17),_0xbfad0['isResolved']&&this[_0x5255('0x63')](_0x48731b);}else{const _0x346b1e=this[_0x5255('0x62')](_0x48731b);_0x5a2afc[_0x5255('0x6d')][_0x5255('0x3b')](_0x26a34e=>{for(const _0x482c51 of _0x346b1e)_0x26a34e['removeMarker'](_0x482c51);});}}}),_0xbfad0);}[_0x5255('0x1c')](_0x5732c6,_0x28772f){const _0x2f16dd=this[_0x5255('0x0')](_0x5732c6,_0x28772f);_0x2f16dd&&!_0x2f16dd[_0x5255('0x26')]&&_0x2f16dd[_0x5255('0x72')]({'type':_0x5255('0x70'),'value':this[_0x5255('0x2e')](_0x28772f)});}}function Z(_0x52cbc7,_0xd920c1){return _0xd920c1?_0x52cbc7+':'+_0xd920c1:_0x52cbc7;}function tt(_0x409b03){const _0x43d1c3=_0x409b03[_0x5255('0x3a')](':');return{'group':_0x43d1c3[0x0],'id':_0x43d1c3[0x1],'part':_0x43d1c3[0x2]};}function ot(_0x2dc327,_0x1153a9){const _0x18f6a4=_0x1153a9[_0x5255('0x36')],_0x1389ca=_0x1153a9[_0x5255('0x64')](_0x2dc327[_0x5255('0x30')]);for(const _0x487a66 of _0x2dc327[_0x5255('0xa')]()){const {type:_0x294f70,item:_0x11e48b,nextPosition:_0x7179a0}=_0x487a66;if('text'===_0x294f70||_0x18f6a4['isObject'](_0x11e48b)){const _0x6d6162=_0x1153a9[_0x5255('0x1e')](_0x11e48b);_0x1389ca['isCollapsed']&&(_0x1389ca[_0x5255('0x30')]=_0x6d6162),_0x1389ca[_0x5255('0xd')]=_0x7179a0;}}return _0x1389ca;}
|