@ckeditor/ckeditor5-comments 32.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 +1 -1
- package/README.md +1 -1
- 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/el.po +79 -0
- package/package.json +4 -9
- 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/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/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/commentslistview.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/ui/view/confirmmixin.js +1 -1
- package/src/comments/ui/view/confirmview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/{utils/getmarkerdomelement.js → index.js} +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- 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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5636=['isActive','getSidebarItemView','addAnnotation','_updateLastItem','config','element','bottom','max','minHeight','_sidebarItemViewToAnnotation','locale','_destroySidebarItemView','_annotationToSidebarItemView','getIndex','_targetTop','_getItemAfter','targetRect','_getItemBefore','refresh','change:top','_annotations','sidebar.container','_setItemTop','change:targetRect','unbind','list','height','sidebar-attachtocontainer-missing-container','appendChild','container','pluginName','define','_alignAfterItem','class','remove','destroy','_getTargetTop','target','init','Sidebar','updateHeight','delete','top','add','_alignBeforeItem','_activeAnnotation','sidebar.preventScrollOutOfView','set','stopListening','view','isAnimationDisabled','_spaceBetweenItems','listenTo','clear','get','content','length','_alignToTargetRect','setContainer','context','sidebar-setcontainer-invalid-element'];(function(_0x13c60d,_0x563682){const _0x5e96fe=function(_0x345068){while(--_0x345068){_0x13c60d['push'](_0x13c60d['shift']());}};_0x5e96fe(++_0x563682);}(_0x5636,0x69));const _0x5e96=function(_0x13c60d,_0x563682){_0x13c60d=_0x13c60d-0x0;let _0x5e96fe=_0x5636[_0x13c60d];return _0x5e96fe;};import{ContextPlugin as _0x599806}from'ckeditor5/src/core';import _0x5af177 from'./view/sidebarview';import _0x2f9e08 from'./view/sidebaritemview';import{Rect as _0x300841,CKEditorError as _0x575631}from'ckeditor5/src/utils';import{isElement as _0x4568e7,throttle as _0x5cf3c5}from'lodash-es';export default class b extends _0x599806{static get[_0x5e96('0x2f')](){return _0x5e96('0x38');}constructor(_0x52226b){super(_0x52226b),this[_0x5e96('0x3')]('_lastItem'),this[_0x5e96('0x5')]=this['_createSidebarView'](),this[_0x5e96('0x3')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x5e96('0x1a')]=new Map(),this[_0x5e96('0x1d')]=new Map(),this['context'][_0x5e96('0x15')][_0x5e96('0x30')](_0x5e96('0x2'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null;}[_0x5e96('0x37')](){const _0x1b3d79=this[_0x5e96('0xf')]['config']['get'](_0x5e96('0x26'));_0x1b3d79&&this[_0x5e96('0xe')](_0x1b3d79);}['setContainer'](_0x52b848){if(!_0x4568e7(_0x52b848))throw new _0x575631(_0x5e96('0x10'));this[_0x5e96('0x2e')]=_0x52b848;}['_attachToContainer']({viewClass:_0x3c59b3='',spaceBetweenItems:_0x5f37e3=0x19}={}){if(!_0x4568e7(this[_0x5e96('0x2e')]))throw new _0x575631(_0x5e96('0x2c'),this);this[_0x5e96('0x2e')][_0x5e96('0x2d')](this[_0x5e96('0x5')]['element']),this[_0x5e96('0x5')][_0x5e96('0x32')]=_0x3c59b3,this[_0x5e96('0x7')]=_0x5f37e3;}['rearrange']({removedAnnotation:_0x3cb0f9,previousAnnotation:_0x3b2037,nextAnnotation:_0x496768}){const _0x35f329=this[_0x5e96('0x12')](_0x3cb0f9);this[_0x5e96('0x5')]['list']['remove'](_0x35f329),this[_0x5e96('0x1c')](_0x3cb0f9),_0x3b2037&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x3b2037)),_0x496768&&this[_0x5e96('0xd')](this[_0x5e96('0x12')](_0x496768)),this[_0x5e96('0x14')]();}[_0x5e96('0x23')]({blurredAnnotation:_0x47c201,activatedAnnotation:_0x44fb00,disableAnimationOnActivatedAnnotation:_0x43231b}){if(this[_0x5e96('0x1')]=_0x44fb00,_0x47c201){_0x47c201[_0x5e96('0x11')]=!0x1;const _0x2bd0d0=this[_0x5e96('0x12')](_0x47c201);_0x2bd0d0&&_0x43231b&&(_0x2bd0d0[_0x5e96('0x6')]=!0x1);}if(_0x44fb00){const _0x1d21d3=this[_0x5e96('0x12')](_0x44fb00);_0x1d21d3&&(_0x44fb00['isActive']=!0x0,_0x43231b&&(_0x1d21d3[_0x5e96('0x6')]=!0x0,_0x1d21d3[_0x5e96('0x3b')]+=0x1),this[_0x5e96('0xd')](_0x1d21d3));}}['_detachFromContainer'](_0x4e40af){this[_0x5e96('0x4')](),this[_0x5e96('0x5')][_0x5e96('0x16')][_0x5e96('0x33')]();for(const _0x482e98 of _0x4e40af)this[_0x5e96('0x1c')](_0x482e98);this['view']['list'][_0x5e96('0x9')](),this[_0x5e96('0x5')][_0x5e96('0x32')]='',this['_lastItem']=null;}[_0x5e96('0x13')](_0x4f5944,_0x598cb9){_0x598cb9||(_0x598cb9=_0x4f5944[_0x5e96('0x5')]);const _0x5cddcf=new _0x2f9e08(this['context']['locale']);this[_0x5e96('0x1a')][_0x5e96('0x3')](_0x5cddcf,_0x4f5944),this[_0x5e96('0x1d')]['set'](_0x4f5944,_0x5cddcf),_0x5cddcf[_0x5e96('0xb')][_0x5e96('0x3c')](_0x598cb9),this[_0x5e96('0xd')](_0x5cddcf),this[_0x5e96('0x8')](_0x4f5944[_0x5e96('0x5')],_0x5e96('0x28'),()=>{const _0x2edc12=this[_0x5e96('0x35')](_0x5cddcf);_0x5cddcf[_0x5e96('0x1f')]!=_0x2edc12&&(_0x5cddcf[_0x5e96('0x1f')]=_0x2edc12,this['_setItemTop'](_0x5cddcf,_0x2edc12));}),this[_0x5e96('0x8')](_0x5cddcf,_0x5e96('0x24'),_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x2b90b4=this['_getItemBefore'](_0x5cddcf);if(!_0x2b90b4)return;const _0x2e0142=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x2b90b4),_0xab0bc7=this['_activeAnnotation'];_0xab0bc7&&_0xab0bc7===_0x2e0142?this[_0x5e96('0x31')](_0x2b90b4,_0x5cddcf):this['_alignBeforeItem'](_0x5cddcf,_0x2b90b4);},0xa,{'leading':!0x1})),this[_0x5e96('0x8')](_0x5cddcf,'change:bottom',_0x5cf3c5(()=>{if(!_0x5cddcf[_0x5e96('0xb')][_0x5e96('0xc')])return;const _0x4280cc=this[_0x5e96('0x20')](_0x5cddcf);if(!_0x4280cc)return;const _0x500ebe=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4280cc),_0x3909f1=this[_0x5e96('0xf')][_0x5e96('0x15')][_0x5e96('0xa')]('sidebar.preventScrollOutOfView'),_0x320dae=this[_0x5e96('0x1')];_0x320dae&&_0x320dae===_0x500ebe&&_0x3909f1?(this['_alignBeforeItem'](_0x4280cc,_0x5cddcf),this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc)):_0x320dae&&_0x320dae===_0x500ebe?this[_0x5e96('0x0')](_0x4280cc,_0x5cddcf):this[_0x5e96('0x31')](_0x5cddcf,_0x4280cc);},0xa,{'leading':!0x1}));const _0x21690a=this[_0x5e96('0x22')](_0x5cddcf);if(_0x21690a)this[_0x5e96('0x31')](_0x21690a,_0x5cddcf)||this['_alignToTargetRect'](_0x5cddcf);else this['_alignToTargetRect'](_0x5cddcf);return this['_updateLastItem'](),this[_0x5e96('0x5')][_0x5e96('0x2a')]['add'](_0x5cddcf),_0x5cddcf;}[_0x5e96('0x12')](_0x5fe8c7){return this[_0x5e96('0x1d')][_0x5e96('0xa')](_0x5fe8c7);}[_0x5e96('0x34')](){this['view']['destroy']();}[_0x5e96('0x1c')](_0x54c132){const _0x31451f=this[_0x5e96('0x12')](_0x54c132);this[_0x5e96('0x4')](_0x31451f),this[_0x5e96('0x4')](_0x54c132[_0x5e96('0x5')]),_0x31451f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x54c132),this[_0x5e96('0x1a')][_0x5e96('0x3a')](_0x31451f);}['_createSidebarView'](){const _0x2f74df=new _0x5af177(this[_0x5e96('0xf')][_0x5e96('0x1b')]);return _0x2f74df['render'](),this['on']('change:_lastItem',(_0x282aec,_0x588038,_0x2534fa,_0x5a0d30)=>{_0x5a0d30&&_0x2f74df[_0x5e96('0x29')](_0x5e96('0x19')),_0x2534fa?_0x2f74df['bind']('minHeight')['to'](_0x2534fa,_0x5e96('0x17')):_0x2f74df[_0x5e96('0x19')]=null;}),_0x2f74df;}[_0x5e96('0x14')](){this['_lastItem']=this[_0x5e96('0x12')](this[_0x5e96('0x25')]['last']);}[_0x5e96('0x22')](_0x49ae64){const _0x19c9cb=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x49ae64),_0x3cfca2=this['_annotations'][_0x5e96('0xa')](this[_0x5e96('0x25')][_0x5e96('0x1e')](_0x19c9cb)-0x1);return _0x3cfca2&&this['getSidebarItemView'](_0x3cfca2);}[_0x5e96('0x20')](_0x447ded){const _0x1d16c1=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x447ded),_0x43a435=this[_0x5e96('0x25')]['get'](this[_0x5e96('0x25')]['getIndex'](_0x1d16c1)+0x1);return _0x43a435&&this[_0x5e96('0x12')](_0x43a435);}[_0x5e96('0x0')](_0x4bd367,_0x3235b8){_0x4bd367[_0x5e96('0x39')]();const _0x1d35be=H(_0x3235b8['bottom']+this['_spaceBetweenItems'],_0x4bd367[_0x5e96('0x3b')]);return!!_0x1d35be&&(this[_0x5e96('0x27')](_0x3235b8,_0x3235b8[_0x5e96('0x3b')]-_0x1d35be),!0x0);}[_0x5e96('0x31')](_0x280a58,_0x18aa2b){_0x280a58[_0x5e96('0x39')]();const _0x16fcea=H(_0x280a58['bottom']+this[_0x5e96('0x7')],_0x18aa2b['top']);return!!_0x16fcea&&(this['_setItemTop'](_0x18aa2b,_0x18aa2b[_0x5e96('0x3b')]+_0x16fcea,!0x1),!0x0);}[_0x5e96('0xd')](_0x573451){const _0x527113=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x573451);if(!_0x527113||!_0x527113[_0x5e96('0x36')])return;const _0x5f463f=this[_0x5e96('0x35')](_0x573451);this[_0x5e96('0x27')](_0x573451,_0x5f463f);}[_0x5e96('0x35')](_0x4ddc80){const _0x29dd81=this[_0x5e96('0x1a')][_0x5e96('0xa')](_0x4ddc80);if(null===_0x29dd81['targetRect'])return 0x0;if(_0x29dd81[_0x5e96('0x36')]instanceof _0x300841)return _0x29dd81['targetRect'][_0x5e96('0x3b')];{const _0x1ddb33=new _0x300841(this['view'][_0x5e96('0x16')])[_0x5e96('0x3b')];return _0x29dd81[_0x5e96('0x21')][_0x5e96('0x3b')]-_0x1ddb33;}}[_0x5e96('0x27')](_0x1c9a73,_0x3d4184,_0x5e4c78=this[_0x5e96('0xf')]['config'][_0x5e96('0xa')](_0x5e96('0x2'))){_0x5e4c78&&(_0x3d4184=Math[_0x5e96('0x18')](_0x3d4184,this['_getMaxAvailableTop'](_0x1c9a73))),_0x1c9a73[_0x5e96('0x3b')]=_0x3d4184;}['_getMaxAvailableTop'](_0x14fef2){let _0x239d31=this[_0x5e96('0x22')](_0x14fef2),_0x42054c=0x0;for(;_0x239d31;)_0x239d31[_0x5e96('0x39')](),_0x42054c+=this['_spaceBetweenItems']+_0x239d31[_0x5e96('0x2b')],_0x239d31=this[_0x5e96('0x22')](_0x239d31);return _0x42054c;}}function H(_0x12999a,_0x4dad12){return Math[_0x5e96('0x18')](_0x12999a-_0x4dad12,0x0);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x139d=['annotationType','add','setTemplate','ck-annotation-counter','isDirty','_badge','icon','...','ck-annotation-counter__badge','set','ck-annotation-counter__badge--edit-mode','bind','counterView','number','span'];(function(_0x540025,_0x139df4){const _0x4c0511=function(_0x2ae88b){while(--_0x2ae88b){_0x540025['push'](_0x540025['shift']());}};_0x4c0511(++_0x139df4);}(_0x139d,0x1c5));const _0x4c05=function(_0x540025,_0x139df4){_0x540025=_0x540025-0x0;let _0x4c0511=_0x139d[_0x540025];return _0x4c0511;};import{ButtonView as _0x1a1cb7,View as _0x11a9dc}from'ckeditor5/src/ui';import _0x4ecc5d from'../../../theme/icons/add-comment.svg';export default class B extends _0x1a1cb7{constructor(_0x5bbc85){super(_0x5bbc85);const _0x5950b4=this['bindTemplate'];this['set'](_0x4c05('0x1'),!0x1),this[_0x4c05('0x6')](_0x4c05('0xa'),0x0),this[_0x4c05('0x8')](_0x4c05('0x2'))['to'](this,_0x4c05('0x1'),this,'number',(_0x58c1b3,_0x2ef73c)=>_0x58c1b3?_0x4c05('0x4'):_0x2ef73c),this[_0x4c05('0x6')](_0x4c05('0xc'),''),this[_0x4c05('0x3')]=_0x4ecc5d,this['extendTemplate']({'attributes':{'class':[_0x4c05('0x0')]}}),this[_0x4c05('0x9')]=new _0x11a9dc(),this[_0x4c05('0x9')][_0x4c05('0xe')]({'tag':_0x4c05('0xb'),'attributes':{'class':[_0x4c05('0x5'),_0x5950b4['to']('annotationType',_0x3d343d=>'ck-annotation-counter__badge--'+_0x3d343d),_0x5950b4['if']('isDirty',_0x4c05('0x7'))]},'children':[{'text':_0x5950b4['to'](_0x4c05('0x2'))}]}),this['children'][_0x4c05('0xd')](this[_0x4c05('0x9')]);}}
|
|
@@ -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);}}
|
|
@@ -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')]();}}
|
|
@@ -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')]});}}
|
|
@@ -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));}}
|
|
@@ -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);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5a7d=['managedUsingOperations','left','stop','markers','getAllMarkersForId','change:isThreadsLoadingPaused','isThreadsLoadingPaused','root','elementToElement','init','once','model','pluginName','markerToData','CommentsEditing','_attachedThreads','change','plugins','dataToMarker','CommentsRepository','document','add','_attachThreadToMarker','collaboration.channelId','newRange','fetchCommentThread','hasCommentThread','createPositionBefore','openNewCommentThread','has','view','getAttribute','length','removeMarker','addCommentThread','switchReadOnly','editingDowncast','start','updateMarker','for','_initializeMarkerConverters','isCollapsed','name','editing','schema','change:isReadOnly','$graveyard','requires','differ','set','_handleMarkerAddAndRemove','delete','conversion','createRange','ck-comment-marker--active','markerToHighlight','low','affectsData','high','from','attachTo','getWalker','push','size','dataDowncast','hasMarkerForId','listenTo','upcast','commands','addComment','config','isEqual','rootName','registerPostFixer','state','activeMarker','hasContent','top','editor','destroy','createElement','get','sort','comment:','getMarkersGroup','comment','isObject'];(function(_0x4b08d3,_0x5a7da4){const _0x36e198=function(_0x1e5dfc){while(--_0x1e5dfc){_0x4b08d3['push'](_0x4b08d3['shift']());}};_0x36e198(++_0x5a7da4);}(_0x5a7d,0x19f));const _0x36e1=function(_0x4b08d3,_0x5a7da4){_0x4b08d3=_0x4b08d3-0x0;let _0x36e198=_0x5a7d[_0x4b08d3];return _0x36e198;};import{Plugin as _0x5f5304}from'ckeditor5/src/core';import{Rect as _0x4ac2ea}from'ckeditor5/src/utils';import _0x325fe7 from'./commentsrepository';import _0x338796 from'./addcommentthreadcommand';import _0xe6a47a from'../utils/getmarkerdomelement';import _0x876afa from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x5f5304{static get[_0x36e1('0x43')](){return[_0x325fe7,_0x876afa];}static get[_0x36e1('0x20')](){return _0x36e1('0x22');}constructor(_0x279635){super(_0x279635),this[_0x36e1('0x45')](_0x36e1('0x1a'),!0x0),_0x279635['data']['once']('ready',()=>this[_0x36e1('0x1a')]=!0x1),this[_0x36e1('0x45')](_0x36e1('0x8'),null),this['on']('change:activeMarker',(_0xa3418c,_0x2c948b,_0x251455,_0x414e52)=>{_0x279635[_0x36e1('0x1f')][_0x36e1('0x24')](_0x5f4a73=>{if(_0x251455){const {id:_0x5f19c1}=G(_0x251455),_0x52787f=this[_0x36e1('0x18')](_0x5f19c1);for(const _0xb1e2a5 of _0x52787f)_0x5f4a73[_0x36e1('0x3a')](_0xb1e2a5);}if(_0x414e52){const {id:_0x3480a8}=G(_0x414e52),_0x3a2c33=this[_0x36e1('0x18')](_0x3480a8);for(const _0x3c1d9b of _0x3a2c33)_0x5f4a73['updateMarker'](_0x3c1d9b);}});}),this['_attachedThreads']=new Set();}[_0x36e1('0x1d')](){const _0xc0225=this[_0x36e1('0xb')],_0x8eb12a=_0xc0225[_0x36e1('0x25')]['get']('CommentsRepository'),_0x14f5c8=_0xc0225[_0x36e1('0x3')]['get']('collaboration.channelId');_0xc0225[_0x36e1('0x1')][_0x36e1('0x29')](_0x36e1('0x36'),new _0x338796(_0xc0225)),this[_0x36e1('0x56')](_0xc0225,_0x36e1('0x41'),(_0x268078,_0xb3b1f7,_0x1f40cc)=>{_0x8eb12a[_0x36e1('0x37')](_0x1f40cc,_0xc0225[_0x36e1('0x3')]['get'](_0x36e1('0x2b')));}),this[_0x36e1('0x56')](_0x8eb12a,q('removeCommentThread',_0x14f5c8),(_0x5d13ac,{threadId:_0x165831})=>{_0xc0225[_0x36e1('0x1f')][_0x36e1('0x24')](_0x154750=>{for(const _0x45d4f7 of this['getAllMarkersForId'](_0x165831))_0x154750['removeMarker'](_0x45d4f7);});const _0x3457dc=_0x8eb12a['getCommentThread'](_0x165831);_0x8eb12a['hasCommentThread'](_0x165831)&&!_0x3457dc[_0x36e1('0x34')]||_0x5d13ac[_0x36e1('0x16')]();},{'priority':_0x36e1('0x4e')}),this[_0x36e1('0x56')](_0x8eb12a,q(_0x36e1('0x2'),_0x14f5c8),(_0x2c37da,{threadId:_0x414e4e,isFromAdapter:_0x424f31})=>{const _0x3b8052=this[_0x36e1('0x18')](_0x414e4e);if(_0x424f31||0x0==_0x3b8052[_0x36e1('0x34')]||!_0x8eb12a[_0x36e1('0x2e')](_0x414e4e))return;0x1===_0x8eb12a['getCommentThread'](_0x414e4e)[_0x36e1('0x34')]&&_0xc0225[_0x36e1('0x1f')][_0x36e1('0x24')](_0xfc4f59=>{for(const _0x7b0587 of _0x3b8052)_0xfc4f59[_0x36e1('0x3a')](_0x7b0587,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x36e1('0x4c')}),this[_0x36e1('0x3c')](),this['_handleMarkerAddAndRemove']();}[_0x36e1('0xc')](){const _0x1cc563=this['editor'][_0x36e1('0x25')][_0x36e1('0xe')]('CommentsRepository'),_0x3608cd=this['editor'][_0x36e1('0x3')][_0x36e1('0xe')]('collaboration.channelId');for(const _0x2b6200 of _0x1cc563['getCommentThreads']({'channelId':_0x3608cd}))_0x1cc563['_detachCommentThread'](_0x2b6200['id']),_0x1cc563['_threads']['delete'](_0x2b6200['id']);super[_0x36e1('0xc')]();}[_0x36e1('0x55')](_0x517fe7){return this['getAllMarkersForId'](_0x517fe7)[_0x36e1('0x34')]>0x0;}[_0x36e1('0x18')](_0xf72697){const _0x27babb=this['editor'][_0x36e1('0x1f')][_0x36e1('0x17')]['get']('comment:'+_0xf72697);return _0x27babb?[_0x27babb]:Array[_0x36e1('0x4f')](this[_0x36e1('0xb')]['model'][_0x36e1('0x17')][_0x36e1('0x11')](_0x36e1('0x10')+_0xf72697));}[_0x36e1('0x3c')](){const _0x59b508=this[_0x36e1('0xb')];_0x59b508[_0x36e1('0x48')][_0x36e1('0x3b')](_0x36e1('0x38'))[_0x36e1('0x4b')]({'model':_0x36e1('0x12'),'view':_0x3cbd47=>{const {id:_0x4a396b}=G(_0x3cbd47['markerName']),_0x34cfb1=['ck-comment-marker'];return this[_0x36e1('0x8')]&&G(this[_0x36e1('0x8')])['id']===_0x4a396b&&_0x34cfb1[_0x36e1('0x52')](_0x36e1('0x4a')),{'classes':_0x34cfb1,'attributes':{'data-comment':_0x4a396b}};}}),_0x59b508['conversion'][_0x36e1('0x3b')](_0x36e1('0x54'))[_0x36e1('0x21')]({'model':_0x36e1('0x12'),'view':_0x35e866=>{const _0x592cca=_0x59b508['model'][_0x36e1('0x17')]['get'](_0x35e866),{id:_0x3ba78b,part:_0x2d7b6a}=G(_0x35e866);return _0x592cca&&!_0x592cca[_0x36e1('0x4d')]?null:{'group':_0x36e1('0x12'),'name':_0x2d7b6a?_0x3ba78b+':'+_0x2d7b6a:_0x3ba78b};}}),_0x59b508[_0x36e1('0x48')][_0x36e1('0x3b')](_0x36e1('0x0'))[_0x36e1('0x1c')]({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':(_0x5b5f1a,{writer:_0x179044})=>_0x179044[_0x36e1('0xd')]('$marker',{'data-name':_0x36e1('0x10')+_0x5b5f1a[_0x36e1('0x33')]('id')})}),_0x59b508['conversion'][_0x36e1('0x3b')](_0x36e1('0x0'))[_0x36e1('0x26')]({'view':_0x36e1('0x12')});}[_0x36e1('0x46')](){const _0x3c1725=this[_0x36e1('0xb')],_0x61c5e4=_0x3c1725[_0x36e1('0x25')][_0x36e1('0xe')](_0x36e1('0x27')),_0x35a1f7=new Set();_0x3c1725[_0x36e1('0x1f')][_0x36e1('0x28')][_0x36e1('0x6')](_0x584ec8=>{let _0x39632a=!0x1;for(const [_0x5a2ff0,_0x6a8c87]of _0x3c1725[_0x36e1('0x1f')][_0x36e1('0x28')][_0x36e1('0x44')]['_changedMarkers']){const {group:_0xfc28e5,id:_0x218f89}=G(_0x5a2ff0);let _0x1adadd=_0x6a8c87['newRange'];if(_0x36e1('0x12')!==_0xfc28e5||!_0x1adadd)continue;const _0x481ca9=_0x36e1('0x42')===_0x1adadd[_0x36e1('0x1b')][_0x36e1('0x5')];_0x481ca9||(_0x1adadd=H(_0x1adadd,_0x3c1725[_0x36e1('0x1f')]),!_0x1adadd||_0x1adadd[_0x36e1('0x4')](_0x6a8c87[_0x36e1('0x2c')]))?!_0x1adadd||!_0x3c1725['model'][_0x36e1('0x9')](_0x1adadd)||this['_attachedThreads'][_0x36e1('0x31')](_0x218f89)&&_0x481ca9?(_0x584ec8['removeMarker'](_0x5a2ff0),_0x39632a=!0x0):_0x481ca9||(this[_0x36e1('0x1a')]?_0x35a1f7['add'](_0x218f89):this[_0x36e1('0x2a')](_0x218f89)):(_0x584ec8[_0x36e1('0x3a')](_0x5a2ff0,{'range':_0x1adadd}),_0x39632a=!0x0);}return _0x39632a;}),this['on'](_0x36e1('0x19'),(_0x233468,_0x4ce5e5,_0x146c6a)=>{if(!_0x146c6a&&_0x35a1f7[_0x36e1('0x53')])for(const _0x3c58a3 of _0x35a1f7)this[_0x36e1('0x2a')](_0x3c58a3),_0x35a1f7[_0x36e1('0x47')](_0x3c58a3);}),this[_0x36e1('0x56')](_0x3c1725[_0x36e1('0x1f')][_0x36e1('0x17')],'update:comment',(_0x918540,_0x105238,_0x5d4e1e,_0x380c4c)=>{if(_0x380c4c)return;const {id:_0x4bb8ef}=G(_0x105238[_0x36e1('0x3e')]),_0x42dd51=_0x3c1725[_0x36e1('0x25')][_0x36e1('0xe')](_0x36e1('0x27'))['getCommentThread'](_0x4bb8ef);_0x35a1f7[_0x36e1('0x47')](_0x4bb8ef),_0x42dd51&&!this[_0x36e1('0x55')](_0x4bb8ef)&&(this[_0x36e1('0x23')][_0x36e1('0x47')](_0x4bb8ef),_0x61c5e4['_detachCommentThread'](_0x4bb8ef));});}[_0x36e1('0x2a')](_0x498c48){if(this[_0x36e1('0x23')][_0x36e1('0x31')](_0x498c48))return;this[_0x36e1('0x23')][_0x36e1('0x29')](_0x498c48);const _0x48ff3c=this[_0x36e1('0xb')],_0x21fde9=_0x48ff3c[_0x36e1('0x25')][_0x36e1('0xe')](_0x36e1('0x27')),_0x2f08b6=_0x48ff3c[_0x36e1('0x3')][_0x36e1('0xe')](_0x36e1('0x2b')),_0x263214=()=>{const _0x2be9a6=this[_0x36e1('0x18')](_0x498c48);if(0x0==_0x2be9a6[_0x36e1('0x34')])return null;const _0x234b50=_0x2be9a6['map'](_0x1fc5eb=>_0xe6a47a(_0x48ff3c[_0x36e1('0x3f')],_0x1fc5eb));return _0x234b50[_0x36e1('0xf')]((_0x5a4c8c,_0x5e950c)=>{const _0x4e7f30=new _0x4ac2ea(_0x5a4c8c),_0x51317d=new _0x4ac2ea(_0x5e950c),_0x248d40=_0x4e7f30[_0x36e1('0xa')]-_0x51317d[_0x36e1('0xa')];return 0x0==_0x248d40?_0x4e7f30[_0x36e1('0x15')]-_0x51317d[_0x36e1('0x15')]:_0x248d40;}),_0x234b50[0x0];};!this[_0x36e1('0x18')](_0x498c48)[0x0][_0x36e1('0x14')]?_0x48ff3c['editing'][_0x36e1('0x32')][_0x36e1('0x1e')]('render',()=>{_0x21fde9[_0x36e1('0x30')]({'channelId':_0x2f08b6,'threadId':_0x498c48,'target':_0x263214});},{'priority':_0x36e1('0x4c')}):_0x21fde9[_0x36e1('0x2d')]({'channelId':_0x2f08b6,'threadId':_0x498c48})['then'](_0x3f0932=>{if('destroyed'!==_0x48ff3c[_0x36e1('0x7')]){if(_0x3f0932)_0x3f0932[_0x36e1('0x50')](_0x263214);else{const _0x427150=this[_0x36e1('0x18')](_0x498c48);_0x48ff3c['model'][_0x36e1('0x24')](_0x453015=>{for(const _0x3dbca9 of _0x427150)_0x453015[_0x36e1('0x35')](_0x3dbca9);});}}});}}function q(_0x68d7bb,_0x5d0c96){return _0x5d0c96?_0x68d7bb+':'+_0x5d0c96:_0x68d7bb;}function G(_0x3ec8d0){const _0x75eab5=_0x3ec8d0['split'](':');return{'group':_0x75eab5[0x0],'id':_0x75eab5[0x1],'part':_0x75eab5[0x2]};}function H(_0x29a52f,_0x2077dc){const _0xf762b5=_0x2077dc[_0x36e1('0x40')],_0x189ce3=_0x2077dc[_0x36e1('0x49')](_0x29a52f[_0x36e1('0x39')]);for(const _0x308c91 of _0x29a52f[_0x36e1('0x51')]()){const {type:_0x35bbee,item:_0x4f8575,nextPosition:_0x211fea}=_0x308c91;if('text'===_0x35bbee||_0xf762b5[_0x36e1('0x13')](_0x4f8575)){const _0x32bca3=_0x2077dc[_0x36e1('0x2f')](_0x4f8575);_0x189ce3[_0x36e1('0x3d')]&&(_0x189ce3[_0x36e1('0x39')]=_0x32bca3),_0x189ce3['end']=_0x211fea;}}return _0x189ce3[_0x36e1('0x3d')]?null:_0x189ce3;}
|
|
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;}
|