@ckeditor/ckeditor5-comments 31.0.0 → 33.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +2 -2
- package/build/comments.js +5 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/bs.po +80 -0
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +79 -0
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +79 -0
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +78 -0
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -9
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.js +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments/ui/view/confirmmixin.js +2 -2
- package/src/comments/ui/view/confirmview.js +2 -2
- package/src/comments.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/{utils/getmarkerdomelement.js → index.js} +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +1 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentthread.css +1 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
- package/src/utils/getdatetimeformatter.js +0 -23
- package/src/utils/trim-html.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2957=['add','height','ck-annotation-wrapper','element','isActive','mainView','clear','detach','keystrokes','Esc','targetRect','render','_mutationObserver','fire','listenTo','content','setTemplate','focus','_updateHeight','set','createCollection','bindTemplate','focusTracker','isDirty','destroy','length','ck-rounded-corners'];(function(_0x52ca42,_0x2957a9){const _0x30037f=function(_0x785402){while(--_0x785402){_0x52ca42['push'](_0x52ca42['shift']());}};_0x30037f(++_0x2957a9);}(_0x2957,0x1c0));const _0x3003=function(_0x52ca42,_0x2957a9){_0x52ca42=_0x52ca42-0x0;let _0x30037f=_0x2957[_0x52ca42];return _0x30037f;};import{View as _0xb9d63a}from'ckeditor5/src/ui';import{FocusTracker as _0x96e13c,KeystrokeHandler as _0x2fd355,uid as _0x2f5818}from'ckeditor5/src/utils';import _0x5bbc4d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xb9d63a{constructor(_0x18af2b,_0x52567b){super(_0x18af2b),this['id']=_0x2f5818(),this[_0x3003('0x6')]=new _0x96e13c(),this[_0x3003('0x13')]=new _0x2fd355(),this[_0x3003('0x13')][_0x3003('0x3')](_0x3003('0x14'),(_0x2ea949,_0x8154bc)=>this[_0x3003('0x18')]('Esc',_0x8154bc)),this[_0x3003('0x3')](_0x3003('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3003('0x3')](_0x3003('0xc'),0x0),this['set'](_0x3003('0xf'),!0x1),this[_0x3003('0x3')](_0x3003('0x7'),!0x1),this['set'](_0x3003('0x9'),0x0),this[_0x3003('0x3')]('type',''),this[_0x3003('0x17')]=_0x5bbc4d(()=>this[_0x3003('0x2')]()),this['content']=this[_0x3003('0x4')](),this['content'][_0x3003('0xb')](_0x52567b),this[_0x3003('0x10')]=_0x52567b;const _0x130c2c=this[_0x3003('0x5')];this[_0x3003('0x0')]({'tag':'div','attributes':{'class':['ck',_0x3003('0xd'),_0x3003('0xa'),_0x130c2c['if'](_0x3003('0xf'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x3003('0x1a')]});}[_0x3003('0x16')](){super['render'](),this[_0x3003('0x6')][_0x3003('0xb')](this[_0x3003('0xe')]),this[_0x3003('0x13')][_0x3003('0x19')](this[_0x3003('0xe')]),this[_0x3003('0x17')]['attach'](this[_0x3003('0xe')]);}[_0x3003('0x8')](){this[_0x3003('0x1a')][_0x3003('0x11')](),this[_0x3003('0x13')][_0x3003('0x8')](),this[_0x3003('0x6')][_0x3003('0x8')](),this['_mutationObserver'][_0x3003('0x12')](),super[_0x3003('0x8')]();}[_0x3003('0x1')](){this[_0x3003('0xe')][_0x3003('0x1')]();}[_0x3003('0x2')](){const _0x191ac6=this[_0x3003('0xe')]['clientHeight'];_0x191ac6&&(this[_0x3003('0xc')]=_0x191ac6);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37d4=['render','content','ck-sidebar-item','height','set','div','_mutationObserver','_targetTop','detach','top','setTemplate','isAnimationDisabled','destroy','element','createCollection','clear','updateHeight','bottom'];(function(_0x3f3dc2,_0x37d448){const _0x225348=function(_0x51ef93){while(--_0x51ef93){_0x3f3dc2['push'](_0x3f3dc2['shift']());}};_0x225348(++_0x37d448);}(_0x37d4,0x16d));const _0x2253=function(_0x3f3dc2,_0x37d448){_0x3f3dc2=_0x3f3dc2-0x0;let _0x225348=_0x37d4[_0x3f3dc2];return _0x225348;};import{View as _0x39d37e}from'ckeditor5/src/ui';import{toUnit as _0x203877}from'ckeditor5/src/utils';import _0x2610e5 from'../../utils/createmutationobserver';const ft=_0x203877('px');export default class C extends _0x39d37e{constructor(_0x489d53){super(_0x489d53),this['set'](_0x2253('0x4')),this[_0x2253('0x11')](_0x2253('0x10'),0x0),this['bind'](_0x2253('0xc'))['to'](this,_0x2253('0x4'),this,'height',(_0x12f13e,_0xb2ee93)=>(_0x12f13e||0x0)+_0xb2ee93),this['set'](_0x2253('0x6'),!0x1),this[_0x2253('0x1')]=_0x2610e5(()=>this[_0x2253('0xb')]()),this[_0x2253('0x2')]=null,this['content']=this[_0x2253('0x9')]();const _0x18cc40=this['bindTemplate'];this[_0x2253('0x5')]({'tag':_0x2253('0x0'),'attributes':{'class':[_0x2253('0xf'),_0x18cc40['to']('isAnimationDisabled',_0x4200db=>_0x4200db?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x18cc40['to'](_0x2253('0x4'),ft)}},'children':this['content']});}[_0x2253('0xd')](){super[_0x2253('0xd')](),this[_0x2253('0x1')]['attach'](this[_0x2253('0x8')]);}[_0x2253('0xb')](){const _0x1859a9=this['element']['clientHeight'];_0x1859a9&&(this[_0x2253('0x10')]=_0x1859a9);}[_0x2253('0x7')](){this[_0x2253('0xe')][_0x2253('0xa')](),this[_0x2253('0x1')][_0x2253('0x3')](),super[_0x2253('0x7')]();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53bb=['class','list','div','createCollection','bindTemplate','set','setTemplate'];(function(_0x55312b,_0x53bbe6){const _0x4e89ec=function(_0x1f43ba){while(--_0x1f43ba){_0x55312b['push'](_0x55312b['shift']());}};_0x4e89ec(++_0x53bbe6);}(_0x53bb,0x1ca));const _0x4e89=function(_0x55312b,_0x53bbe6){_0x55312b=_0x55312b-0x0;let _0x4e89ec=_0x53bb[_0x55312b];return _0x4e89ec;};import{View as _0x52ef09}from'ckeditor5/src/ui';import{toUnit as _0x2b4746}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x2b4746('px');export default class T extends _0x52ef09{constructor(_0x51fa9c){super(_0x51fa9c);const _0x374698=this[_0x4e89('0x1')];this[_0x4e89('0x2')]('minHeight',0x0),this['set'](_0x4e89('0x4'),''),this[_0x4e89('0x5')]=this[_0x4e89('0x0')](),this[_0x4e89('0x3')]({'tag':_0x4e89('0x6'),'attributes':{'class':['ck','ck-sidebar','ck-reset',_0x374698['to'](_0x4e89('0x4'))],'style':{'minHeight':_0x374698['to']('minHeight',_0x86199=>_0x86199?ft(_0x86199+0xa):null)}},'children':this[_0x4e89('0x5')]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b44=['blur','widesidebar-detach-not-attached','pluginName','rearrange','plugins','change:container','add','init','_integrateWithEditorAnnotations','refreshPositioning','attach','requires','_activeAnnotation','off','has','resize','destroy','isAttached','switchTo','_annotations','_detachFromContainer','removeEventListener','setActiveAnnotation','stopListening','editors','set','register','detach','addEventListener','_editorAnnotations','uiUpdate','_attachToContainer','getOrderedSelectedAnnotations','listenTo','_throttledPositioningRefresh','_destroyEditorAnnotationsIntegration','updateTargetRect','Sidebar','context','wideSidebar','from','get','refresh','remove','EditorAnnotations','addAnnotation','widesidebar-attach-already-attached','activeAnnotation','container','high'];(function(_0x235b23,_0x3b449f){const _0x59cd79=function(_0x261a8e){while(--_0x261a8e){_0x235b23['push'](_0x235b23['shift']());}};_0x59cd79(++_0x3b449f);}(_0x3b44,0xf8));const _0x59cd=function(_0x235b23,_0x3b449f){_0x235b23=_0x235b23-0x0;let _0x59cd79=_0x3b44[_0x235b23];return _0x59cd79;};import{ContextPlugin as _0x34690f}from'ckeditor5/src/core';import _0x1c9a65 from'./annotationsuis';import _0x52b296 from'./sidebar';import{CKEditorError as _0x5c0f65,Collection as _0xe86e9b}from'ckeditor5/src/utils';import{throttle as _0x3fb23a}from'lodash-es';export default class i extends _0x34690f{static get[_0x59cd('0xd')](){return[_0x52b296,_0x1c9a65];}static get[_0x59cd('0x4')](){return'WideSidebar';}constructor(_0x477a81){super(_0x477a81),this[_0x59cd('0x13')]=!0x1,this[_0x59cd('0x1b')](_0x59cd('0x31'),null),this[_0x59cd('0x15')]=null,this[_0x59cd('0x1f')]=new _0xe86e9b(),this[_0x59cd('0x24')]=_0x3fb23a(()=>{this['_annotations'][_0x59cd('0xb')]();},0x190,{'leading':!0x1});}[_0x59cd('0x9')](){const _0x5c8e05=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x1c9a65),_0x5338b8=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x5c8e05[_0x59cd('0x1c')](_0x59cd('0x29'),this),_0x5338b8[_0x59cd('0x0')]&&_0x5c8e05[_0x59cd('0x14')](_0x59cd('0x29'));}['setActiveAnnotation'](_0x5873e6){if(_0x5873e6===this[_0x59cd('0x31')])return;const _0x584095=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x52b296);_0x584095[_0x59cd('0xe')]=_0x5873e6;const _0x1aee30=this[_0x59cd('0x31')];this[_0x59cd('0x31')]=_0x5873e6,_0x584095[_0x59cd('0x2c')]({'blurredAnnotation':_0x1aee30,'activatedAnnotation':this[_0x59cd('0x31')]});}[_0x59cd('0xc')](_0x3a76aa){this['_annotations']=_0x3a76aa;const _0x1607e5=this[_0x59cd('0x28')][_0x59cd('0x6')][_0x59cd('0x2b')](_0x59cd('0x27'));if(_0x1607e5[_0x59cd('0x15')]=_0x3a76aa,this['isAttached'])throw new _0x5c0f65(_0x59cd('0x30'),this);this[_0x59cd('0x13')]=!0x0,this['listenTo'](_0x1607e5,'set:container',()=>{this['detach'](),this['listenTo'](_0x1607e5,_0x59cd('0x7'),_0xc725a1=>{_0xc725a1[_0x59cd('0xf')](),this[_0x59cd('0xc')](_0x3a76aa);});}),_0x1607e5[_0x59cd('0x21')]({'viewClass':'ck-sidebar--wide'});const _0x57b8ed=_0x305a36=>{_0x305a36[_0x59cd('0x26')](),_0x1607e5[_0x59cd('0x2f')](_0x305a36);};for(const _0x3d588e of _0x3a76aa)_0x57b8ed(_0x3d588e);this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x8'),(_0x483324,_0x1b52f0)=>{_0x57b8ed(_0x1b52f0);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2d'),(_0x2e9abf,_0x36ccc3,_0x1fdc8a)=>{_0x1607e5[_0x59cd('0x5')]({'removedAnnotation':_0x36ccc3,'previousAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a-0x1),'nextAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a+0x1)}),_0x36ccc3===this['activeAnnotation']&&this[_0x59cd('0x18')](null);},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x23')](_0x3a76aa,'focus',(_0x583b03,_0x256caa)=>{this[_0x59cd('0x18')](_0x256caa);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2'),()=>{this['setActiveAnnotation'](null);});const _0x37f7d6=this[_0x59cd('0x28')][_0x59cd('0x1a')]?this['context'][_0x59cd('0x1a')]:new _0xe86e9b([this[_0x59cd('0x28')]]);for(const _0x458b54 of _0x37f7d6)this[_0x59cd('0xa')](_0x458b54);this['listenTo'](_0x37f7d6,_0x59cd('0x8'),(_0x465c25,_0x1e9a8d)=>{this[_0x59cd('0x23')](_0x1e9a8d,'ready',()=>{this[_0x59cd('0xa')](_0x1e9a8d);});}),this['listenTo'](_0x37f7d6,_0x59cd('0x2d'),(_0x406dee,_0x118e29)=>{_0x118e29[_0x59cd('0x6')][_0x59cd('0x10')](_0x59cd('0x2e'))&&this[_0x59cd('0x25')](_0x118e29[_0x59cd('0x6')]['get'](_0x59cd('0x2e')));}),window[_0x59cd('0x1e')](_0x59cd('0x11'),this['_throttledPositioningRefresh']),this[_0x59cd('0x15')][_0x59cd('0xb')]();}['detach'](){if(!this['isAttached'])throw new _0x5c0f65(_0x59cd('0x3'),this);this[_0x59cd('0x18')](null);const _0x1829c4=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x1829c4[_0x59cd('0x16')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](_0x1829c4),this[_0x59cd('0x19')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](this['context'][_0x59cd('0x1a')]);for(const _0x2642ea of Array[_0x59cd('0x2a')](this[_0x59cd('0x1f')]))this[_0x59cd('0x25')](_0x2642ea);window[_0x59cd('0x17')](_0x59cd('0x11'),this[_0x59cd('0x24')]),this[_0x59cd('0x24')]['cancel'](),this[_0x59cd('0x31')]=null,this[_0x59cd('0x13')]=!0x1;}[_0x59cd('0x12')](){this[_0x59cd('0x13')]&&this[_0x59cd('0x1d')]();}[_0x59cd('0xa')](_0x431b50){const _0x1f8ee9=_0x431b50['plugins']['get'](_0x59cd('0x2e'));if(!_0x1f8ee9)return;const _0x429cb9=()=>{const _0x2fcfbf=_0x1f8ee9[_0x59cd('0x22')]({'annotations':this[_0x59cd('0x15')],'activeAnnotation':this[_0x59cd('0x31')]});this[_0x59cd('0x18')](_0x2fcfbf[0x0]||null);};this['listenTo'](_0x1f8ee9,'refresh',_0x429cb9),this['listenTo'](_0x1f8ee9,_0x59cd('0x2'),(_0x13e8c9,{isAnnotationTracked:_0x2c2d21})=>{this[_0x59cd('0x31')]&&_0x2c2d21(this[_0x59cd('0x31')])&&this[_0x59cd('0x18')](null);}),this[_0x59cd('0x23')](_0x1f8ee9,_0x59cd('0x20'),()=>{this[_0x59cd('0x15')][_0x59cd('0xb')]();}),this[_0x59cd('0x23')](this[_0x59cd('0x15')],_0x59cd('0x2'),_0xfea603=>{_0x1f8ee9['hasDomSelection']()&&(_0x429cb9(),_0xfea603['stop']());},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x1f')][_0x59cd('0x8')](_0x1f8ee9);}[_0x59cd('0x25')](_0x34fdd3){_0x34fdd3&&(this['stopListening'](_0x34fdd3),this[_0x59cd('0x1f')][_0x59cd('0x2d')](_0x34fdd3));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4341=['getLastMatchingPosition','start','_itemIsContent','selection','getRanges','backward','editor','end','tableCell','getItems','addMarker','textProxy','substr','_hasContent','document','isObject','model','change','push','schema','_trimToContent','createRange','element','isEnabled'];(function(_0x4334ea,_0x4341b3){const _0x44dd43=function(_0x4b46bd){while(--_0x4b46bd){_0x4334ea['push'](_0x4334ea['shift']());}};_0x44dd43(++_0x4341b3);}(_0x4341,0x17e));const _0x44dd=function(_0x4334ea,_0x4341b3){_0x4334ea=_0x4334ea-0x0;let _0x44dd43=_0x4341[_0x4334ea];return _0x44dd43;};import{Command as _0x51822c}from'ckeditor5/src/core';import{uid as _0x1e6a16}from'ckeditor5/src/utils';export default class j extends _0x51822c{['refresh'](){const _0x35ae32=this['editor'][_0x44dd('0x12')]['document']['selection'];for(const _0x161325 of _0x35ae32[_0x44dd('0x6')]())if(this[_0x44dd('0xf')](_0x161325))return void(this[_0x44dd('0x1')]=!0x0);this[_0x44dd('0x1')]=!0x1;}['execute']({threadId:_0x20bd1b=_0x1e6a16()}={}){const _0x593ac0=this[_0x44dd('0x8')][_0x44dd('0x12')],_0x545a50=[];for(const _0x22eaf8 of _0x593ac0[_0x44dd('0x10')][_0x44dd('0x5')]['getRanges']())this[_0x44dd('0xf')](_0x22eaf8)&&_0x545a50[_0x44dd('0x14')](this[_0x44dd('0x16')](_0x22eaf8));_0x593ac0[_0x44dd('0x13')](_0x2351d0=>{for(const _0x2bcc31 of _0x545a50){const _0x3af345=_0x1e6a16()[_0x44dd('0xe')](0x1,0x5),_0x23d132='comment:'+_0x20bd1b+':'+_0x3af345;_0x2351d0[_0x44dd('0xc')](_0x23d132,{'range':_0x2bcc31,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x44dd('0xf')](_0x1bb425){for(const _0x1ec730 of _0x1bb425[_0x44dd('0xb')]())if(this[_0x44dd('0x4')](_0x1ec730))return!0x0;return!0x1;}[_0x44dd('0x4')](_0x153ea8){return _0x153ea8['is'](_0x44dd('0xd'))||this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x15')][_0x44dd('0x11')](_0x153ea8)&&!_0x153ea8['is'](_0x44dd('0x0'),_0x44dd('0xa'));}[_0x44dd('0x16')](_0x2cb452){const _0x57a3c1=_0x2520b4=>!this['_itemIsContent'](_0x2520b4['item']),_0x36618b=_0x2cb452[_0x44dd('0x3')]['getLastMatchingPosition'](_0x57a3c1),_0x4cd6b7=_0x2cb452[_0x44dd('0x9')][_0x44dd('0x2')](_0x57a3c1,{'direction':_0x44dd('0x7')});return this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x17')](_0x36618b,_0x4cd6b7);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x376b=['attachTo','data','dataDowncast','updateMarker','destroyed','add','state','_detachCommentThread','markerName','once','size','removeMarker','differ','activeMarker','getCommentThreads','markerToData','editor','_handleMarkerAddAndRemove','getMarkersGroup','plugins','removeCommentThread','requires','delete','upcast','rootName','change','then','createRange','CommentsEditing','hasCommentThread','from','ck-comment-marker--active','getAllMarkersForId','_changedMarkers','isThreadsLoadingPaused','conversion','listenTo','hasMarkerForId','comment:','managedUsingOperations','set','push','sort','schema','root','addCommentThread','get','newRange','change:isThreadsLoadingPaused','config','map','pluginName','_threads','_attachedThreads','openNewCommentThread','fetchCommentThread','low','length','editing','name','CommentsRepository','_attachThreadToMarker','_initializeMarkerConverters','for','editingDowncast','document','collaboration.channelId','text','addComment','destroy','change:isReadOnly','start','has','comment','view','high','markerToHighlight','createElement','getWalker','getAttribute','top','ready','ck-comment-marker','init','model','render','dataToMarker','markers','isCollapsed','stop','getCommentThread'];(function(_0xcfff17,_0x376b70){const _0x1960d5=function(_0x3174bf){while(--_0x3174bf){_0xcfff17['push'](_0xcfff17['shift']());}};_0x1960d5(++_0x376b70);}(_0x376b,0x9a));const _0x1960=function(_0xcfff17,_0x376b70){_0xcfff17=_0xcfff17-0x0;let _0x1960d5=_0x376b[_0xcfff17];return _0x1960d5;};import{Plugin as _0x7276e}from'ckeditor5/src/core';import{Rect as _0x31275e}from'ckeditor5/src/utils';import _0x53eaee from'./commentsrepository';import _0x113626 from'./addcommentthreadcommand';import _0x35ba91 from'../utils/getmarkerdomelement';import _0x1307f6 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x7276e{static get[_0x1960('0x31')](){return[_0x53eaee,_0x1307f6];}static get[_0x1960('0x4f')](){return _0x1960('0x38');}constructor(_0x3ffba9){super(_0x3ffba9),this[_0x1960('0x44')]('isThreadsLoadingPaused',!0x0),_0x3ffba9[_0x1960('0x1d')][_0x1960('0x25')](_0x1960('0x12'),()=>this[_0x1960('0x3e')]=!0x1),this[_0x1960('0x44')](_0x1960('0x29'),null),this['on']('change:activeMarker',(_0x5e5af9,_0x4c93ad,_0xae3573,_0x22f327)=>{_0x3ffba9[_0x1960('0x15')]['change'](_0x42ce4a=>{if(_0xae3573){const {id:_0x11de6d}=q(_0xae3573),_0xae6851=this[_0x1960('0x3c')](_0x11de6d);for(const _0x4ba822 of _0xae6851)_0x42ce4a[_0x1960('0x1f')](_0x4ba822);}if(_0x22f327){const {id:_0x191621}=q(_0x22f327),_0x402b64=this[_0x1960('0x3c')](_0x191621);for(const _0x3870b8 of _0x402b64)_0x42ce4a['updateMarker'](_0x3870b8);}});}),this['_attachedThreads']=new Set();}[_0x1960('0x14')](){const _0x5e1821=this[_0x1960('0x2c')],_0x22b45f=_0x5e1821['plugins'][_0x1960('0x4a')](_0x1960('0x58')),_0x4e16f1=_0x5e1821['config'][_0x1960('0x4a')]('collaboration.channelId');_0x5e1821['commands'][_0x1960('0x21')](_0x1960('0x49'),new _0x113626(_0x5e1821)),this[_0x1960('0x40')](_0x5e1821,_0x1960('0x7'),(_0x1e3759,_0x2872d0,_0x20f069)=>{_0x22b45f['switchReadOnly'](_0x20f069,_0x5e1821[_0x1960('0x4d')]['get']('collaboration.channelId'));}),this[_0x1960('0x40')](_0x22b45f,F(_0x1960('0x30'),_0x4e16f1),(_0x10c458,{threadId:_0x2c406c})=>{_0x5e1821[_0x1960('0x15')][_0x1960('0x35')](_0x5a654a=>{for(const _0x446440 of this['getAllMarkersForId'](_0x2c406c))_0x5a654a[_0x1960('0x27')](_0x446440);});const _0x5b030f=_0x22b45f[_0x1960('0x1b')](_0x2c406c);_0x22b45f[_0x1960('0x39')](_0x2c406c)&&!_0x5b030f['length']||_0x10c458[_0x1960('0x1a')]();},{'priority':_0x1960('0xc')}),this[_0x1960('0x40')](_0x22b45f,F(_0x1960('0x5'),_0x4e16f1),(_0x27dc20,{threadId:_0x29670b,isFromAdapter:_0x261096})=>{const _0x30ed0c=this[_0x1960('0x3c')](_0x29670b);if(_0x261096||0x0==_0x30ed0c[_0x1960('0x55')]||!_0x22b45f[_0x1960('0x39')](_0x29670b))return;0x1===_0x22b45f[_0x1960('0x1b')](_0x29670b)[_0x1960('0x55')]&&_0x5e1821[_0x1960('0x15')][_0x1960('0x35')](_0x1a9828=>{for(const _0x2e9be1 of _0x30ed0c)_0x1a9828[_0x1960('0x1f')](_0x2e9be1,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1960('0x54')}),this[_0x1960('0x5a')](),this['_handleMarkerAddAndRemove']();}[_0x1960('0x6')](){const _0x163253=this['editor']['plugins'][_0x1960('0x4a')](_0x1960('0x58')),_0x38fde6=this[_0x1960('0x2c')][_0x1960('0x4d')]['get'](_0x1960('0x3'));for(const _0x395248 of _0x163253[_0x1960('0x2a')]({'channelId':_0x38fde6}))_0x163253[_0x1960('0x23')](_0x395248['id']),_0x163253[_0x1960('0x50')][_0x1960('0x32')](_0x395248['id']);super[_0x1960('0x6')]();}[_0x1960('0x41')](_0x2b604b){return this['getAllMarkersForId'](_0x2b604b)['length']>0x0;}[_0x1960('0x3c')](_0x50c58d){const _0x4ca177=this[_0x1960('0x2c')][_0x1960('0x15')]['markers'][_0x1960('0x4a')](_0x1960('0x42')+_0x50c58d);return _0x4ca177?[_0x4ca177]:Array[_0x1960('0x3a')](this[_0x1960('0x2c')][_0x1960('0x15')][_0x1960('0x18')][_0x1960('0x2e')](_0x1960('0x42')+_0x50c58d));}[_0x1960('0x5a')](){const _0x49076f=this[_0x1960('0x2c')];_0x49076f[_0x1960('0x3f')][_0x1960('0x0')](_0x1960('0x1'))[_0x1960('0xd')]({'model':_0x1960('0xa'),'view':_0x3d4d50=>{const {id:_0x285546}=q(_0x3d4d50[_0x1960('0x24')]),_0x2f2d79=[_0x1960('0x13')];return this['activeMarker']&&q(this[_0x1960('0x29')])['id']===_0x285546&&_0x2f2d79[_0x1960('0x45')](_0x1960('0x3b')),{'classes':_0x2f2d79,'attributes':{'data-comment':_0x285546}};}}),_0x49076f[_0x1960('0x3f')][_0x1960('0x0')](_0x1960('0x1e'))[_0x1960('0x2b')]({'model':'comment','view':_0x43c906=>{const _0x58b6c0=_0x49076f[_0x1960('0x15')]['markers'][_0x1960('0x4a')](_0x43c906),{id:_0x5e74ba,part:_0x2d5508}=q(_0x43c906);return _0x58b6c0&&!_0x58b6c0['affectsData']?null:{'group':_0x1960('0xa'),'name':_0x2d5508?_0x5e74ba+':'+_0x2d5508:_0x5e74ba};}}),_0x49076f[_0x1960('0x3f')]['for'](_0x1960('0x33'))['elementToElement']({'view':{'name':_0x1960('0xa'),'attribute':{'id':/^\w/}},'model':(_0x5d3e64,{writer:_0x5a5990})=>_0x5a5990[_0x1960('0xe')]('$marker',{'data-name':_0x1960('0x42')+_0x5d3e64[_0x1960('0x10')]('id')})}),_0x49076f['conversion'][_0x1960('0x0')](_0x1960('0x33'))[_0x1960('0x17')]({'view':_0x1960('0xa')});}[_0x1960('0x2d')](){const _0x318433=this[_0x1960('0x2c')],_0x19adfb=_0x318433[_0x1960('0x2f')][_0x1960('0x4a')](_0x1960('0x58')),_0x3f075f=new Set();_0x318433[_0x1960('0x15')]['document']['registerPostFixer'](_0x527ab0=>{let _0x974c13=!0x1;for(const [_0x58eef6,_0x26593f]of _0x318433[_0x1960('0x15')][_0x1960('0x2')][_0x1960('0x28')][_0x1960('0x3d')]){const {group:_0x2c86c1,id:_0x5e74e2}=q(_0x58eef6);let _0x10c153=_0x26593f[_0x1960('0x4b')];if('comment'!==_0x2c86c1||!_0x10c153)continue;const _0x14cf94='$graveyard'===_0x10c153[_0x1960('0x48')][_0x1960('0x34')];_0x14cf94||(_0x10c153=j(_0x10c153,_0x318433['model']),!_0x10c153||_0x10c153['isEqual'](_0x26593f[_0x1960('0x4b')]))?!_0x10c153||!_0x318433[_0x1960('0x15')]['hasContent'](_0x10c153)||this['_attachedThreads'][_0x1960('0x9')](_0x5e74e2)&&_0x14cf94?(_0x527ab0[_0x1960('0x27')](_0x58eef6),_0x974c13=!0x0):_0x14cf94||(this[_0x1960('0x3e')]?_0x3f075f[_0x1960('0x21')](_0x5e74e2):this[_0x1960('0x59')](_0x5e74e2)):(_0x527ab0[_0x1960('0x1f')](_0x58eef6,{'range':_0x10c153}),_0x974c13=!0x0);}return _0x974c13;}),this['on'](_0x1960('0x4c'),(_0x2093cb,_0x2ed897,_0xb79d97)=>{if(!_0xb79d97&&_0x3f075f[_0x1960('0x26')])for(const _0x2045f2 of _0x3f075f)this[_0x1960('0x59')](_0x2045f2),_0x3f075f[_0x1960('0x32')](_0x2045f2);}),this[_0x1960('0x40')](_0x318433[_0x1960('0x15')][_0x1960('0x18')],'update:comment',(_0x359139,_0x2d4ca0,_0x56e758,_0xd3ce6e)=>{if(_0xd3ce6e)return;const {id:_0x55c2bc}=q(_0x2d4ca0[_0x1960('0x57')]),_0x160c63=_0x318433[_0x1960('0x2f')][_0x1960('0x4a')](_0x1960('0x58'))[_0x1960('0x1b')](_0x55c2bc);_0x3f075f[_0x1960('0x32')](_0x55c2bc),_0x160c63&&!this[_0x1960('0x41')](_0x55c2bc)&&(this[_0x1960('0x51')][_0x1960('0x32')](_0x55c2bc),_0x19adfb[_0x1960('0x23')](_0x55c2bc));});}[_0x1960('0x59')](_0x441a27){if(this[_0x1960('0x51')][_0x1960('0x9')](_0x441a27))return;this['_attachedThreads'][_0x1960('0x21')](_0x441a27);const _0xa7c799=this[_0x1960('0x2c')],_0x4f1610=_0xa7c799[_0x1960('0x2f')][_0x1960('0x4a')](_0x1960('0x58')),_0x4623d9=_0xa7c799[_0x1960('0x4d')][_0x1960('0x4a')]('collaboration.channelId'),_0x4c9ccb=()=>{const _0x333757=this[_0x1960('0x3c')](_0x441a27);if(0x0==_0x333757[_0x1960('0x55')])return null;const _0x305e89=_0x333757[_0x1960('0x4e')](_0x3cfa0e=>_0x35ba91(_0xa7c799[_0x1960('0x56')],_0x3cfa0e));return _0x305e89[_0x1960('0x46')]((_0x2480a0,_0x10c3ae)=>{const _0xa01ce8=new _0x31275e(_0x2480a0),_0x591c57=new _0x31275e(_0x10c3ae),_0x27528f=_0xa01ce8[_0x1960('0x11')]-_0x591c57['top'];return 0x0==_0x27528f?_0xa01ce8['left']-_0x591c57['left']:_0x27528f;}),_0x305e89[0x0];};!this[_0x1960('0x3c')](_0x441a27)[0x0][_0x1960('0x43')]?_0xa7c799[_0x1960('0x56')][_0x1960('0xb')][_0x1960('0x25')](_0x1960('0x16'),()=>{_0x4f1610[_0x1960('0x52')]({'channelId':_0x4623d9,'threadId':_0x441a27,'target':_0x4c9ccb});},{'priority':_0x1960('0x54')}):_0x4f1610[_0x1960('0x53')]({'channelId':_0x4623d9,'threadId':_0x441a27})[_0x1960('0x36')](_0x1dcfdb=>{if(_0x1960('0x20')!==_0xa7c799[_0x1960('0x22')]){if(_0x1dcfdb)_0x1dcfdb[_0x1960('0x1c')](_0x4c9ccb);else{const _0x4e74b5=this[_0x1960('0x3c')](_0x441a27);_0xa7c799[_0x1960('0x15')][_0x1960('0x35')](_0x598b3d=>{for(const _0xdf70fa of _0x4e74b5)_0x598b3d[_0x1960('0x27')](_0xdf70fa);});}}});}}function F(_0x2e92ad,_0x16a17a){return _0x16a17a?_0x2e92ad+':'+_0x16a17a:_0x2e92ad;}function q(_0x400060){const _0x2ad86d=_0x400060['split'](':');return{'group':_0x2ad86d[0x0],'id':_0x2ad86d[0x1],'part':_0x2ad86d[0x2]};}function j(_0x1bdf5e,_0x157fa8){const _0x57e584=_0x157fa8[_0x1960('0x47')],_0x4b9ea9=_0x157fa8[_0x1960('0x37')](_0x1bdf5e[_0x1960('0x8')]);for(const _0x52ff of _0x1bdf5e[_0x1960('0xf')]()){const {type:_0x4192ac,item:_0x3a826f,nextPosition:_0x151a0d}=_0x52ff;if(_0x1960('0x4')===_0x4192ac||_0x57e584['isObject'](_0x3a826f)){const _0x28d544=_0x157fa8['createPositionBefore'](_0x3a826f);_0x4b9ea9[_0x1960('0x19')]&&(_0x4b9ea9['start']=_0x28d544),_0x4b9ea9['end']=_0x151a0d;}}return _0x4b9ea9[_0x1960('0x19')]?null:_0x4b9ea9;}
|
|
23
|
+
const _0x713a=['end','editing','getAllMarkersForId','root','hasMarkerForId','getMarkersGroup','editor','removeMarker','start','fetchCommentThread','dataToMarker','CommentsRepository','destroy','listenTo','get','createPositionBefore','config','_handleMarkerAddAndRemove','has','schema','getWalker','isThreadsLoadingPaused','_detachCommentThread','attachTo','state','markerToHighlight','markerName','hasCommentThread','view','ck-comment-marker--active','upcast','render','elementToElement','comment:','requires','getAttribute','from','data','$graveyard','map','markerToData','plugins','reconvertMarker','for','size','change:isThreadsLoadingPaused','registerPostFixer','updateMarker','change','openNewCommentThread','editingDowncast','name','getChangedMarkers','rootName','differ','low','managedUsingOperations','isEqual','delete','isObject','add','removeCommentThread','init','set','comment','length','ck-comment-marker','conversion','markers','activeMarker','push','high','createRange','model','once','_attachedThreads','getCommentThread','$marker','_initializeMarkerConverters','split','createElement','stop','_attachThreadToMarker','newRange','document','dataDowncast','pluginName','collaboration.channelId','then','isCollapsed','text','top','left','sort'];(function(_0x4e35d1,_0x713a10){const _0x7edd58=function(_0x5d9ff3){while(--_0x5d9ff3){_0x4e35d1['push'](_0x4e35d1['shift']());}};_0x7edd58(++_0x713a10);}(_0x713a,0x1ac));const _0x7edd=function(_0x4e35d1,_0x713a10){_0x4e35d1=_0x4e35d1-0x0;let _0x7edd58=_0x713a[_0x4e35d1];return _0x7edd58;};import{Plugin as _0x44f512}from'ckeditor5/src/core';import{Rect as _0x41f675}from'ckeditor5/src/utils';import _0x850e87 from'./commentsrepository';import _0x514de2 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x4066a3}from'ckeditor5-collaboration/src/collaboration-core';import _0x4110ee from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x44f512{static get[_0x7edd('0x4c')](){return[_0x850e87,_0x4110ee];}static get[_0x7edd('0x22')](){return'CommentsEditing';}constructor(_0x17746d){super(_0x17746d),this[_0x7edd('0xb')]('isThreadsLoadingPaused',!0x0),_0x17746d[_0x7edd('0x4f')][_0x7edd('0x16')]('ready',()=>this[_0x7edd('0x3f')]=!0x1),this[_0x7edd('0xb')](_0x7edd('0x11'),null),this['on']('change:activeMarker',(_0x273136,_0x5c1ea8,_0x20a9e4,_0x4c8fd7)=>{_0x17746d[_0x7edd('0x15')][_0x7edd('0x5a')](()=>{if(_0x20a9e4){const {id:_0x404418}=G(_0x20a9e4),_0x4a565d=this[_0x7edd('0x2c')](_0x404418);for(const _0xe87111 of _0x4a565d)_0x17746d['editing'][_0x7edd('0x54')](_0xe87111);}if(_0x4c8fd7){const {id:_0x1ec8f3}=G(_0x4c8fd7),_0x4f955b=this[_0x7edd('0x2c')](_0x1ec8f3);for(const _0x21bc81 of _0x4f955b)_0x17746d[_0x7edd('0x2b')]['reconvertMarker'](_0x21bc81);}});}),this['_attachedThreads']=new Set();}[_0x7edd('0xa')](){const _0x3b0593=this[_0x7edd('0x30')],_0x3c9b7b=_0x3b0593[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0x4988eb=_0x3b0593[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));_0x3b0593['commands'][_0x7edd('0x8')]('addCommentThread',new _0x514de2(_0x3b0593)),this['listenTo'](_0x3b0593,'change:isReadOnly',(_0x33c7bb,_0x581d9c,_0x2dcd48)=>{_0x3c9b7b['switchReadOnly'](_0x2dcd48,_0x3b0593['config'][_0x7edd('0x38')](_0x7edd('0x23')));}),this['listenTo'](_0x3c9b7b,q(_0x7edd('0x9'),_0x4988eb),(_0x8a5be8,{threadId:_0x5370e6})=>{_0x3b0593[_0x7edd('0x15')][_0x7edd('0x5a')](_0x353ccf=>{for(const _0x1ec456 of this[_0x7edd('0x2c')](_0x5370e6))_0x353ccf[_0x7edd('0x31')](_0x1ec456);});const _0x4b8cfa=_0x3c9b7b[_0x7edd('0x18')](_0x5370e6);_0x3c9b7b['hasCommentThread'](_0x5370e6)&&!_0x4b8cfa[_0x7edd('0xd')]||_0x8a5be8[_0x7edd('0x1d')]();},{'priority':_0x7edd('0x13')}),this['listenTo'](_0x3c9b7b,q('addComment',_0x4988eb),(_0x483faf,{threadId:_0x2f96ab,isFromAdapter:_0x4abeec})=>{const _0xcb40ed=this['getAllMarkersForId'](_0x2f96ab);if(_0x4abeec||0x0==_0xcb40ed[_0x7edd('0xd')]||!_0x3c9b7b[_0x7edd('0x45')](_0x2f96ab))return;0x1===_0x3c9b7b[_0x7edd('0x18')](_0x2f96ab)[_0x7edd('0xd')]&&_0x3b0593['model'][_0x7edd('0x5a')](_0x532d51=>{for(const _0x10edfc of _0xcb40ed)_0x532d51[_0x7edd('0x59')](_0x10edfc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x7edd('0x3')}),this['_initializeMarkerConverters'](),this[_0x7edd('0x3b')]();}[_0x7edd('0x36')](){const _0x319fd4=this[_0x7edd('0x30')][_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x305ce7=this['editor'][_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));for(const _0x5c245f of _0x319fd4['getCommentThreads']({'channelId':_0x305ce7}))_0x319fd4[_0x7edd('0x40')](_0x5c245f['id']),_0x319fd4['_threads']['delete'](_0x5c245f['id']);super[_0x7edd('0x36')]();}['hasMarkerForId'](_0x31faff){return this[_0x7edd('0x2c')](_0x31faff)[_0x7edd('0xd')]>0x0;}['getAllMarkersForId'](_0x52b7b0){const _0x2e2b9a=this[_0x7edd('0x30')]['model']['markers'][_0x7edd('0x38')](_0x7edd('0x4b')+_0x52b7b0);return _0x2e2b9a?[_0x2e2b9a]:Array[_0x7edd('0x4e')](this['editor'][_0x7edd('0x15')][_0x7edd('0x10')][_0x7edd('0x2f')](_0x7edd('0x4b')+_0x52b7b0));}[_0x7edd('0x1a')](){const _0x56ec6f=this['editor'];_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x5c'))[_0x7edd('0x43')]({'model':_0x7edd('0xc'),'view':_0x458917=>{const {id:_0x2736d2}=G(_0x458917[_0x7edd('0x44')]),_0x4f2d6a=[_0x7edd('0xe')];return this[_0x7edd('0x11')]&&G(this[_0x7edd('0x11')])['id']===_0x2736d2&&_0x4f2d6a[_0x7edd('0x12')](_0x7edd('0x47')),{'classes':_0x4f2d6a,'attributes':{'data-comment':_0x2736d2}};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x21'))[_0x7edd('0x52')]({'model':'comment','view':_0x18b58b=>{const _0x3eb60c=_0x56ec6f['model']['markers'][_0x7edd('0x38')](_0x18b58b),{id:_0x3b102f,part:_0x26d144}=G(_0x18b58b);return _0x3eb60c&&!_0x3eb60c['affectsData']?null:{'group':'comment','name':_0x26d144?_0x3b102f+':'+_0x26d144:_0x3b102f};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x4a')]({'view':{'name':_0x7edd('0xc'),'attribute':{'id':/^\w/}},'model':(_0x2aedf0,{writer:_0x40ce68})=>_0x40ce68[_0x7edd('0x1c')](_0x7edd('0x19'),{'data-name':_0x7edd('0x4b')+_0x2aedf0[_0x7edd('0x4d')]('id')})}),_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x34')]({'view':'comment'});}[_0x7edd('0x3b')](){const _0x403c46=this[_0x7edd('0x30')],_0x5ada91=_0x403c46[_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x26ad0a=new Set();_0x403c46['model'][_0x7edd('0x20')][_0x7edd('0x58')](_0xd6ce07=>{let _0xabd219=!0x1;for(const {name:_0xf5316,data:_0x4e6956}of _0x403c46[_0x7edd('0x15')][_0x7edd('0x20')][_0x7edd('0x2')][_0x7edd('0x0')]()){const {group:_0xc3535c,id:_0x5bcfc9}=G(_0xf5316);let _0x24b695=_0x4e6956['newRange'];if(_0x7edd('0xc')!==_0xc3535c||!_0x24b695)continue;const _0x3d57d9=_0x7edd('0x50')===_0x24b695[_0x7edd('0x2d')][_0x7edd('0x1')];_0x3d57d9||(_0x24b695=J(_0x24b695,_0x403c46[_0x7edd('0x15')]),!_0x24b695||_0x24b695[_0x7edd('0x5')](_0x4e6956[_0x7edd('0x1f')]))?!_0x24b695||!_0x403c46[_0x7edd('0x15')]['hasContent'](_0x24b695)||this[_0x7edd('0x17')][_0x7edd('0x3c')](_0x5bcfc9)&&_0x3d57d9?(_0xd6ce07[_0x7edd('0x31')](_0xf5316),_0xabd219=!0x0):_0x3d57d9||(this[_0x7edd('0x3f')]?_0x26ad0a['add'](_0x5bcfc9):this[_0x7edd('0x1e')](_0x5bcfc9)):(_0xd6ce07['updateMarker'](_0xf5316,{'range':_0x24b695}),_0xabd219=!0x0);}return _0xabd219;}),this['on'](_0x7edd('0x57'),(_0x5f5cf6,_0x418094,_0x426220)=>{if(!_0x426220&&_0x26ad0a[_0x7edd('0x56')])for(const _0x4e2e26 of _0x26ad0a)this['_attachThreadToMarker'](_0x4e2e26),_0x26ad0a[_0x7edd('0x6')](_0x4e2e26);}),this[_0x7edd('0x37')](_0x403c46[_0x7edd('0x15')][_0x7edd('0x10')],'update:comment',(_0x9b19e,_0x8ffa7c,_0x2d8b7a,_0x3ea200)=>{if(_0x3ea200)return;const {id:_0x52459c}=G(_0x8ffa7c[_0x7edd('0x5d')]),_0x19c2e9=_0x403c46[_0x7edd('0x53')]['get'](_0x7edd('0x35'))[_0x7edd('0x18')](_0x52459c);_0x26ad0a[_0x7edd('0x6')](_0x52459c),_0x19c2e9&&!this[_0x7edd('0x2e')](_0x52459c)&&(this[_0x7edd('0x17')]['delete'](_0x52459c),_0x5ada91[_0x7edd('0x40')](_0x52459c));});}['_attachThreadToMarker'](_0xa3bfd4){if(this[_0x7edd('0x17')]['has'](_0xa3bfd4))return;this['_attachedThreads'][_0x7edd('0x8')](_0xa3bfd4);const _0x15f349=this[_0x7edd('0x30')],_0x156563=_0x15f349[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0xc91a4f=_0x15f349[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23')),_0x2c0970=()=>{const _0x135ec3=this['getAllMarkersForId'](_0xa3bfd4);if(0x0==_0x135ec3[_0x7edd('0xd')])return null;const _0x5e73e4=_0x135ec3[_0x7edd('0x51')](_0x5106ee=>_0x4066a3(_0x15f349['editing'],_0x5106ee));return _0x5e73e4[_0x7edd('0x29')]((_0x12f220,_0x1cf7bc)=>{const _0x6dd3a0=new _0x41f675(_0x12f220),_0x1e9809=new _0x41f675(_0x1cf7bc),_0x442b37=_0x6dd3a0[_0x7edd('0x27')]-_0x1e9809[_0x7edd('0x27')];return 0x0==_0x442b37?_0x6dd3a0[_0x7edd('0x28')]-_0x1e9809['left']:_0x442b37;}),_0x5e73e4[0x0];};!this[_0x7edd('0x2c')](_0xa3bfd4)[0x0][_0x7edd('0x4')]?_0x15f349[_0x7edd('0x2b')][_0x7edd('0x46')][_0x7edd('0x16')](_0x7edd('0x49'),()=>{_0x156563[_0x7edd('0x5b')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4,'target':_0x2c0970});},{'priority':_0x7edd('0x3')}):_0x156563[_0x7edd('0x33')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4})[_0x7edd('0x24')](_0x1e1ac6=>{if('destroyed'!==_0x15f349[_0x7edd('0x42')]){if(_0x1e1ac6)_0x1e1ac6[_0x7edd('0x41')](_0x2c0970);else{const _0x1bd17d=this[_0x7edd('0x2c')](_0xa3bfd4);_0x15f349[_0x7edd('0x15')][_0x7edd('0x5a')](_0x49b9a0=>{for(const _0x5c9563 of _0x1bd17d)_0x49b9a0[_0x7edd('0x31')](_0x5c9563);});}}});}}function q(_0x3d3d12,_0x1674fe){return _0x1674fe?_0x3d3d12+':'+_0x1674fe:_0x3d3d12;}function G(_0x2f72a7){const _0x575d51=_0x2f72a7[_0x7edd('0x1b')](':');return{'group':_0x575d51[0x0],'id':_0x575d51[0x1],'part':_0x575d51[0x2]};}function J(_0x3b166b,_0x3c3c12){const _0xa6c89=_0x3c3c12[_0x7edd('0x3d')],_0x25639c=_0x3c3c12[_0x7edd('0x14')](_0x3b166b['start']);for(const _0x24d058 of _0x3b166b[_0x7edd('0x3e')]()){const {type:_0x5d785a,item:_0x326b0a,nextPosition:_0x573300}=_0x24d058;if(_0x7edd('0x26')===_0x5d785a||_0xa6c89[_0x7edd('0x7')](_0x326b0a)){const _0x226bc7=_0x3c3c12[_0x7edd('0x39')](_0x326b0a);_0x25639c[_0x7edd('0x25')]&&(_0x25639c[_0x7edd('0x32')]=_0x226bc7),_0x25639c[_0x7edd('0x2a')]=_0x573300;}}return _0x25639c[_0x7edd('0x25')]?null:_0x25639c;}
|