@ckeditor/ckeditor5-track-changes 37.0.0-rc.0 → 37.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.
Files changed (61) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +2 -2
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/heading.js +1 -1
  21. package/src/integrations/highlight.js +1 -1
  22. package/src/integrations/horizontalline.js +1 -1
  23. package/src/integrations/htmlembed.js +1 -1
  24. package/src/integrations/image.js +1 -1
  25. package/src/integrations/imagereplace.js +1 -1
  26. package/src/integrations/importword.js +1 -1
  27. package/src/integrations/indent.js +1 -1
  28. package/src/integrations/inputcommand.js +1 -1
  29. package/src/integrations/link.js +1 -1
  30. package/src/integrations/list.js +1 -1
  31. package/src/integrations/listproperties.js +1 -1
  32. package/src/integrations/mediaembed.js +1 -1
  33. package/src/integrations/mention.js +1 -1
  34. package/src/integrations/pagebreak.js +1 -1
  35. package/src/integrations/paragraph.js +1 -1
  36. package/src/integrations/removeformat.js +1 -1
  37. package/src/integrations/restrictededitingmode.js +1 -1
  38. package/src/integrations/shiftentercommand.js +1 -1
  39. package/src/integrations/standardeditingmode.js +1 -1
  40. package/src/integrations/style.js +1 -1
  41. package/src/integrations/table.js +1 -1
  42. package/src/integrations/tablecaption.js +1 -1
  43. package/src/integrations/tableclipboard.js +1 -1
  44. package/src/integrations/tablecolumnresize.js +1 -1
  45. package/src/integrations/tableheadings.js +1 -1
  46. package/src/integrations/tablemergesplit.js +1 -1
  47. package/src/integrations/tableproperties.js +1 -1
  48. package/src/integrations/title.js +1 -1
  49. package/src/integrations/undo.js +1 -1
  50. package/src/integrations/utils.js +1 -1
  51. package/src/suggestion.js +1 -1
  52. package/src/suggestiondescriptionfactory.js +1 -1
  53. package/src/trackchanges.js +1 -1
  54. package/src/trackchangesdata.js +1 -1
  55. package/src/trackchangesediting.js +1 -1
  56. package/src/trackchangesui.js +1 -1
  57. package/src/ui/suggestioncontroller.js +1 -1
  58. package/src/ui/view/basesuggestionthreadview.js +1 -1
  59. package/src/ui/view/suggestionthreadview.js +1 -1
  60. package/src/utils/common-translations.js +1 -1
  61. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5601=['acceptAllSuggestions','get','requires','listenTo','separator','getJoined','head','clear','editor','view','_descriptionFactory','comments.maxThreadTotalWeight','init','_updateController','getSuggestion','descriptionParts','_initializeController','getAllAdjacentSuggestions','_destroyController','EditorAnnotations','_disableComments','destroy','activeMarkers','suggestion-','button','componentFactory','isEnabled','discardSelectedSuggestions','values','length','suggestionUnloaded','filter','buttonView','locale','keys','isMultiRange','_handleControllerBuffer','reduce','createAnnotation','acceptButton','_createUIButton','focus','registerAnnotation','value','editing','addComment','Annotations','comments.maxCommentCharsWhenCollapsed','mainView','define','from','source','getMarkerNames','type','switchbutton','_handleSuggestionControllerDelayed','set','pluginName','commandName','comments.editorConfig','bind','plugins','unbind','delete','change:previous','trackChanges.SuggestionThreadView','getMarkers','getDescriptions','isInContent','suggestionLoaded','getByInnerView','comments','add','actionView','TrackChangesEditing','refreshSelectedViews','_refreshActiveMarkers','model','addSourceCollector','trackChanges.disableComments','discardAllSuggestions','CommentsUI','map','config','isDirty','Discard\x20all\x20suggestions','discardButton','isOn','stopListening','has','Accept\x20all\x20suggestions','innerView','SuggestionThreadView','trackChanges','commands','Track\x20changes','_viewToController','_annotationViews','CommentView','CommentsRepository','execute','_suggestionToController','change:activeAnnotations'];(function(_0x5c871a,_0x560158){const _0x2bcc85=function(_0x429eb8){while(--_0x429eb8){_0x5c871a['push'](_0x5c871a['shift']());}};_0x2bcc85(++_0x560158);}(_0x5601,0x1e9));const _0x2bcc=function(_0x5c871a,_0x560158){_0x5c871a=_0x5c871a-0x0;let _0x2bcc85=_0x5601[_0x5c871a];return _0x2bcc85;};import{Plugin as _0x193902}from'ckeditor5/src/core';import{Collection as _0x558a12}from'ckeditor5/src/utils';import{Model as _0x4b7169,SplitButtonView as _0x28ffda,createDropdown as _0x533bbe,addListToDropdown as _0x520357}from'ckeditor5/src/ui';import{Users as _0xb0b974,getDateTimeFormatter as _0x43cdd8,getAllMarkersDomElementsSorted as _0x1da08f}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ae56e from'./trackchangesediting';import _0x65dece from'./ui/suggestioncontroller';import _0x551ef2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x3026ab}from'./utils/common-translations';import _0x46d47f from'../theme/icons/track-changes.svg';export default class d extends _0x193902{static get[_0x2bcc('0x1c')](){return[_0x1ae56e,_0xb0b974,_0x2bcc('0x16'),_0x2bcc('0x48'),_0x2bcc('0x2d')];}static get[_0x2bcc('0x53')](){return'TrackChangesUI';}constructor(_0x20b54d){super(_0x20b54d),this['_suggestionToController']=new Map(),this[_0x2bcc('0x13')]=new Map(),this[_0x2bcc('0x14')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x8388a7=this[_0x2bcc('0x22')][_0x2bcc('0x6')];_0x8388a7[_0x2bcc('0x4b')](_0x2bcc('0x5b'),_0x551ef2),_0x8388a7[_0x2bcc('0x4b')](_0x2bcc('0x2'),!0x1),this[_0x2bcc('0x2e')]=_0x8388a7['get'](_0x2bcc('0x2'));}[_0x2bcc('0x51')](_0x247b29,_0x280c23){0x0===this[_0x2bcc('0x3e')]['size']&&setTimeout(()=>{for(const [_0x2cf460,_0x4ad580]of this['_handleControllerBuffer']){const _0x58b361=this[_0x2bcc('0x18')][_0x2bcc('0xc')](_0x2cf460);_0x58b361||_0x4ad580?_0x58b361&&_0x4ad580&&this[_0x2bcc('0x2c')](_0x2cf460):this[_0x2bcc('0x2a')](_0x2cf460);}this[_0x2bcc('0x22')]['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x2d'))[_0x2bcc('0x65')](),this[_0x2bcc('0x66')](),this[_0x2bcc('0x3e')][_0x2bcc('0x21')]();},0xa),this[_0x2bcc('0x3e')][_0x2bcc('0x52')](_0x247b29,_0x280c23);}[_0x2bcc('0x26')](){const _0x5deaee=this[_0x2bcc('0x22')],_0x5950f5=_0x5deaee['plugins']['get']('TrackChangesEditing'),_0x2e8b61=_0x5deaee['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x48')),_0x1f1ebb=_0x5deaee[_0x2bcc('0x57')][_0x2bcc('0x1b')]('EditorAnnotations'),_0x3f5bb3=_0x5deaee['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x16'));_0x5deaee['ui'][_0x2bcc('0x33')][_0x2bcc('0x62')](_0x2bcc('0x10'),_0x5e5010=>this[_0x2bcc('0x42')](_0x5e5010)),_0x1f1ebb[_0x2bcc('0x1')](()=>{const _0x202932=[];for(const [_0x521bb5,_0x1abeda]of Array['from'](this['_suggestionToController'])){const _0x5f5c4b=_0x521bb5['getAllAdjacentSuggestions'](),_0x1f0ac2=[];for(const _0x2b5f21 of _0x5f5c4b){if(!_0x2b5f21[_0x2bcc('0x5e')])continue;if(_0x2b5f21[_0x2bcc('0x3d')]){_0x1f0ac2['push'](..._0x2b5f21['getRanges']());continue;}const _0x4c0828=_0x2b5f21['getFirstRange']();if(_0x1f0ac2['length']>0x0){const _0x3960fc=_0x1f0ac2[0x0][_0x2bcc('0x1f')](_0x4c0828);if(_0x3960fc){_0x1f0ac2[0x0]=_0x3960fc;continue;}}_0x1f0ac2['push'](_0x4c0828);}_0x202932['push']([_0x1abeda[_0x2bcc('0x23')],_0x1f0ac2]);}return _0x202932;}),this[_0x2bcc('0x1d')](_0x5950f5,_0x2bcc('0x5f'),(_0x31b245,_0xe8b76e)=>{this[_0x2bcc('0x1d')](_0xe8b76e,'change:previous',(_0x44e568,_0x1e65fe,_0x315918,_0xed46bd)=>{_0xe8b76e[_0x2bcc('0x5e')]&&(null==_0x315918?(this[_0x2bcc('0x27')](_0xed46bd[_0x2bcc('0x20')]),this[_0x2bcc('0x51')](_0xe8b76e,!0x1)):(this[_0x2bcc('0x27')](_0x315918[_0x2bcc('0x20')]),this[_0x2bcc('0x51')](_0xe8b76e,!0x0)));}),null===_0xe8b76e['previous']?this['_handleSuggestionControllerDelayed'](_0xe8b76e,!0x1):this[_0x2bcc('0x27')](_0xe8b76e[_0x2bcc('0x20')]);}),this[_0x2bcc('0x1d')](_0x5950f5,_0x2bcc('0x38'),(_0x1bfb63,_0x49b632,_0x4f3019)=>{this[_0x2bcc('0xb')](_0x49b632,_0x2bcc('0x5a')),this[_0x2bcc('0x3e')][_0x2bcc('0x59')](_0x49b632);const _0x4b19ea=_0x4f3019?_0x4f3019[_0x2bcc('0x20')]:_0x49b632,_0x24e5e8=this['_suggestionToController'][_0x2bcc('0x1b')](_0x4b19ea);null!==_0x4f3019&&this['_updateController'](_0x4b19ea),null===_0x4f3019&&_0x24e5e8&&this['_destroyController'](_0x49b632);}),this['listenTo'](_0x5950f5,'suggestionChanged',(_0x25925e,_0x448211)=>{this[_0x2bcc('0x27')](_0x448211);}),this[_0x2bcc('0x1d')](_0x2e8b61,_0x2bcc('0x19'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3f5bb3,_0x2bcc('0x47'),(_0x4de49a,{threadId:_0x12be33,isFromAdapter:_0xfd6788})=>{if(_0xfd6788||!_0x5950f5['hasSuggestion'](_0x12be33))return;const _0xd217c6=_0x5950f5[_0x2bcc('0x28')](_0x12be33);this[_0x2bcc('0x18')]['get'](_0xd217c6)[_0x2bcc('0x23')][_0x2bcc('0x43')]();},{'priority':'lowest'});}[_0x2bcc('0x66')](){const _0x4819af=this[_0x2bcc('0x22')]['plugins'][_0x2bcc('0x1b')](_0x2bcc('0x48')),_0x5d3878=this[_0x2bcc('0x22')][_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x64')),_0x5a448d=Array[_0x2bcc('0x4c')](_0x4819af['activeAnnotations'],_0x57e1c6=>_0x57e1c6[_0x2bcc('0xe')])['filter'](_0x2fb848=>this['_viewToController'][_0x2bcc('0xc')](_0x2fb848)),_0x3489c5=[];for(const _0x4dd7ad of _0x5a448d){const _0xf72a3e=this[_0x2bcc('0x13')]['get'](_0x4dd7ad)[_0x2bcc('0x0')][_0x2bcc('0x2b')]();_0x3489c5['push'](..._0xf72a3e[_0x2bcc('0x3f')]((_0x4dcca1,_0x1f736a)=>[..._0x4dcca1,..._0x1f736a[_0x2bcc('0x4e')]()],[]));}_0x5d3878[_0x2bcc('0x30')]=_0x3489c5;}[_0x2bcc('0x42')](_0x539e1c){const _0x5a7eda=_0x533bbe(_0x539e1c,_0x28ffda),_0x5ad33e=this[_0x2bcc('0x22')][_0x2bcc('0x11')]['get'](_0x2bcc('0x10')),_0x4395ce=_0x3026ab(_0x539e1c,_0x2bcc('0x12'));_0x5a7eda[_0x2bcc('0x3a')][_0x2bcc('0x52')]({'tooltip':_0x4395ce,'label':_0x4395ce,'icon':_0x46d47f}),_0x5a7eda[_0x2bcc('0x3a')][_0x2bcc('0x56')](_0x2bcc('0xa'))['to'](_0x5ad33e,_0x2bcc('0x45')),_0x5a7eda[_0x2bcc('0x3a')]['on'](_0x2bcc('0x17'),()=>{_0x5ad33e[_0x2bcc('0x17')](),this[_0x2bcc('0x22')][_0x2bcc('0x46')][_0x2bcc('0x23')]['focus']();});const _0x22c697=new _0x558a12(),_0xf99efe=[{'type':_0x2bcc('0x50'),'model':{'withText':!0x0,'label':_0x4395ce,'commandName':_0x2bcc('0x10')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,_0x2bcc('0xd')),'commandName':_0x2bcc('0x1a')}},{'type':_0x2bcc('0x32'),'model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':_0x2bcc('0x32'),'model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,_0x2bcc('0x8')),'commandName':_0x2bcc('0x3')}},{'type':_0x2bcc('0x32'),'model':{'withText':!0x0,'label':_0x3026ab(_0x539e1c,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x2bcc('0x35')}}];for(const _0x13a1bd of _0xf99efe){let _0x193c6a={'type':_0x2bcc('0x1e')};if(_0x13a1bd[_0x2bcc('0x0')]){const _0x3f631d=new _0x4b7169(_0x13a1bd[_0x2bcc('0x0')]),_0x3c237c=this[_0x2bcc('0x22')]['commands'][_0x2bcc('0x1b')](_0x3f631d[_0x2bcc('0x54')]);_0x3f631d[_0x2bcc('0x56')](_0x2bcc('0xa'),_0x2bcc('0x34'))['to'](_0x3c237c,_0x2bcc('0x45'),_0x2bcc('0x34')),_0x193c6a={'type':_0x13a1bd[_0x2bcc('0x4f')],'model':_0x3f631d};}_0x22c697[_0x2bcc('0x62')](_0x193c6a);}_0x520357(_0x5a7eda,_0x22c697);const _0x3870fa=_0xf99efe[_0x2bcc('0x39')](_0xa2da50=>null!=_0xa2da50[_0x2bcc('0x0')])[_0x2bcc('0x5')](_0x518a3d=>this[_0x2bcc('0x22')][_0x2bcc('0x11')][_0x2bcc('0x1b')](_0x518a3d[_0x2bcc('0x0')][_0x2bcc('0x54')])),_0x566cb7=_0x5a7eda[_0x2bcc('0x3a')];return _0x566cb7[_0x2bcc('0x63')][_0x2bcc('0x58')]('isEnabled'),_0x566cb7['arrowView'][_0x2bcc('0x58')](_0x2bcc('0x34')),_0x566cb7[_0x2bcc('0x63')][_0x2bcc('0x56')](_0x2bcc('0x34'))['to'](_0x5ad33e,_0x2bcc('0x34')),_0x566cb7['arrowView'][_0x2bcc('0x56')](_0x2bcc('0x34'))['toMany'](_0x3870fa,_0x2bcc('0x34'),(..._0x946cad)=>_0x946cad['some'](_0x4d41e8=>_0x4d41e8)),_0x5a7eda['on'](_0x2bcc('0x17'),_0x204c76=>{this[_0x2bcc('0x22')][_0x2bcc('0x17')](_0x204c76[_0x2bcc('0x4d')][_0x2bcc('0x54')]),this['editor'][_0x2bcc('0x46')]['view'][_0x2bcc('0x43')]();}),_0x5a7eda;}['_initializeController'](_0x5d1cc3){const _0x309857=this[_0x2bcc('0x22')],_0x9ce595=_0x309857[_0x2bcc('0x6')],_0x2acecd=_0x309857['plugins'][_0x2bcc('0x1b')]('Annotations'),_0x4d62a8=_0x309857[_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x16')),_0x13e658=_0x309857[_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x2d')),_0x430eab=_0x309857['plugins'][_0x2bcc('0x1b')](_0xb0b974)['me'],_0x120444=_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x10'))[_0x2bcc('0xf')],{CommentsListView:_0x4c007e,CommentThreadInputView:_0x5d775e}=_0x309857[_0x2bcc('0x57')]['get'](_0x2bcc('0x4'));let _0x403605,_0x2fce5c;this[_0x2bcc('0x14')][_0x2bcc('0xc')](_0x5d1cc3['id'])?(_0x2fce5c=this[_0x2bcc('0x14')][_0x2bcc('0x1b')](_0x5d1cc3['id']),_0x403605=_0x2fce5c[_0x2bcc('0x4a')]):(_0x403605=new _0x120444(_0x309857[_0x2bcc('0x3b')],_0x5d1cc3,_0x430eab,{'disableComments':this[_0x2bcc('0x2e')],'editorConfig':_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x55')),'maxCommentsWhenCollapsed':_0x9ce595[_0x2bcc('0x1b')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x25')),'maxCommentCharsWhenCollapsed':_0x9ce595['get'](_0x2bcc('0x49')),'formatDateTime':_0x43cdd8(_0x9ce595[_0x2bcc('0x1b')](_0x2bcc('0x3b'))),'CommentView':_0x9ce595['get'](_0x2bcc('0x61'))[_0x2bcc('0x15')],'CommentsListView':_0x4c007e,'CommentThreadInputView':_0x5d775e}),_0x403605[_0x2bcc('0x41')]['on']('execute',()=>{_0x309857[_0x2bcc('0x46')][_0x2bcc('0x23')][_0x2bcc('0x43')]();}),_0x403605[_0x2bcc('0x9')]['on'](_0x2bcc('0x17'),()=>{_0x309857['editing'][_0x2bcc('0x23')][_0x2bcc('0x43')]();}),_0x2fce5c=_0x2acecd['createAnnotationView'](this[_0x2bcc('0x22')][_0x2bcc('0x3b')],_0x403605),_0x2fce5c[_0x2bcc('0x56')]('isDirty')['to'](_0x403605,_0x2bcc('0x7')),_0x2fce5c[_0x2bcc('0x56')](_0x2bcc('0x37'))['to'](_0x403605),_0x2fce5c[_0x2bcc('0x56')](_0x2bcc('0x4f'))['to'](_0x403605,_0x2bcc('0x4f'),_0x3cd0f6=>_0x2bcc('0x31')+_0x3cd0f6),this[_0x2bcc('0x14')][_0x2bcc('0x52')](_0x5d1cc3['id'],_0x2fce5c));const _0x103e02=_0x4d62a8['createCommentThreadController'](_0x5d1cc3['commentThread'],_0x403605),_0x597af1=new _0x65dece(_0x309857,_0x5d1cc3,_0x403605,_0x103e02),_0x33fdf1=_0x5d1cc3[_0x2bcc('0x2b')]()[_0x2bcc('0x39')](_0x408419=>_0x408419[_0x2bcc('0x5e')]);_0x403605[_0x2bcc('0x29')]=_0x309857[_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x64'))[_0x2bcc('0x24')]['getDescriptions'](_0x33fdf1),this[_0x2bcc('0x18')][_0x2bcc('0x52')](_0x5d1cc3,_0x597af1),this[_0x2bcc('0x13')]['set'](_0x403605,_0x597af1);const _0x286f84=_0x2acecd[_0x2bcc('0x40')]({'view':_0x2fce5c,'target':()=>{const _0x11fee5=[],_0x582e8b=_0x5d1cc3[_0x2bcc('0x2b')]()[_0x2bcc('0x39')](_0x2d3868=>_0x2d3868[_0x2bcc('0x5e')]);for(const _0x509055 of _0x582e8b)_0x11fee5['push'](..._0x509055[_0x2bcc('0x5c')]());return _0x1da08f(_0x309857[_0x2bcc('0x46')],_0x11fee5);},'type':()=>_0x2bcc('0x31')+_0x597af1['view'][_0x2bcc('0x4f')]});_0x2acecd[_0x2bcc('0x62')](_0x286f84),_0x13e658[_0x2bcc('0x44')](_0x286f84);}[_0x2bcc('0x2c')](_0x39577d){const _0x4224a1=this['editor'][_0x2bcc('0x57')][_0x2bcc('0x1b')]('Annotations'),_0x4eac39=this[_0x2bcc('0x18')]['get'](_0x39577d),_0x4c16a6=_0x4eac39[_0x2bcc('0x23')],_0x460c44=_0x4224a1[_0x2bcc('0x60')](_0x4c16a6);_0x460c44&&_0x4224a1['remove'](_0x460c44),this[_0x2bcc('0x18')][_0x2bcc('0x59')](_0x39577d),this['_viewToController']['delete'](_0x4c16a6),_0x4eac39[_0x2bcc('0x2f')]();}[_0x2bcc('0x27')](_0x1c07e0){if(!_0x1c07e0[_0x2bcc('0x5e')]||!this[_0x2bcc('0x18')][_0x2bcc('0xc')](_0x1c07e0))return;const _0x55bcbe=this[_0x2bcc('0x22')][_0x2bcc('0x57')][_0x2bcc('0x1b')](_0x2bcc('0x64')),_0x46a3bd=this[_0x2bcc('0x18')][_0x2bcc('0x1b')](_0x1c07e0),_0x3c4e17=_0x1c07e0['getAllAdjacentSuggestions']();_0x46a3bd[_0x2bcc('0x23')]['descriptionParts']=_0x55bcbe[_0x2bcc('0x24')][_0x2bcc('0x5d')](_0x3c4e17);}[_0x2bcc('0x2f')](){for(const _0x24de8f of this[_0x2bcc('0x18')][_0x2bcc('0x3c')]())this[_0x2bcc('0x2c')](_0x24de8f);for(const _0x2442d0 of this[_0x2bcc('0x14')][_0x2bcc('0x36')]())_0x2442d0[_0x2bcc('0x4a')][_0x2bcc('0x2f')]();super[_0x2bcc('0x2f')]();}}
23
+ const _0x3452=['registerAnnotation','SuggestionThreadView','createAnnotationView','config','isOn','suggestionLoaded','commentThread','CommentView','commands','_refreshActiveMarkers','trackChanges.SuggestionThreadView','descriptionParts','editor','Discard\x20all\x20suggestions','Track\x20changes','focus','_handleControllerBuffer','_descriptionFactory','bind','comments.maxCommentsWhenCollapsed','locale','buttonView','activeMarkers','hasSuggestion','comments.maxThreadTotalWeight','isMultiRange','value','listenTo','define','editing','_handleSuggestionControllerDelayed','trackChanges.disableComments','discardAllSuggestions','view','_updateController','_createUIButton','unbind','_suggestionToController','pluginName','values','destroy','plugins','getSuggestion','source','getFirstRange','filter','comments','isInContent','add','getMarkerNames','acceptAllSuggestions','execute','some','innerView','delete','EditorAnnotations','_annotationViews','size','discardButton','componentFactory','button','suggestionChanged','stopListening','refreshSelectedViews','actionView','change:previous','model','createCommentThreadController','getByInnerView','init','type','TrackChangesEditing','_destroyController','acceptSelectedSuggestions','push','suggestion-','set','reduce','activeAnnotations','_disableComments','mainView','trackChanges','toMany','Annotations','addComment','getRanges','remove','previous','arrowView','Discard\x20all\x20selected\x20suggestions','from','getAllAdjacentSuggestions','isEnabled','_viewToController','has','addSourceCollector','Accept\x20all\x20suggestions','comments.maxCommentCharsWhenCollapsed','keys','CommentsUI','getJoined','switchbutton','commandName','get','isDirty','Accept\x20all\x20selected\x20suggestions','length','getDescriptions','head','separator','change:activeAnnotations','requires'];(function(_0x356f7e,_0x3452e8){const _0x3ce1bf=function(_0x50324b){while(--_0x50324b){_0x356f7e['push'](_0x356f7e['shift']());}};_0x3ce1bf(++_0x3452e8);}(_0x3452,0x72));const _0x3ce1=function(_0x356f7e,_0x3452e8){_0x356f7e=_0x356f7e-0x0;let _0x3ce1bf=_0x3452[_0x356f7e];return _0x3ce1bf;};import{Plugin as _0x327a75}from'ckeditor5/src/core';import{Collection as _0x5d3611}from'ckeditor5/src/utils';import{Model as _0x481a92,SplitButtonView as _0xc650fd,createDropdown as _0x228168,addListToDropdown as _0x36df0a}from'ckeditor5/src/ui';import{Users as _0x432f34,getDateTimeFormatter as _0x38e33a,getAllMarkersDomElementsSorted as _0x2ad89a}from'ckeditor5-collaboration/src/collaboration-core';import _0x4679e0 from'./trackchangesediting';import _0x34528f from'./ui/suggestioncontroller';import _0x44158d from'./ui/view/suggestionthreadview';import{getTranslation as _0x38b805}from'./utils/common-translations';import _0x478e96 from'../theme/icons/track-changes.svg';export default class d extends _0x327a75{static get[_0x3ce1('0x6d')](){return[_0x4679e0,_0x432f34,'CommentsRepository',_0x3ce1('0x51'),_0x3ce1('0x35')];}static get[_0x3ce1('0x24')](){return'TrackChangesUI';}constructor(_0x1a27c2){super(_0x1a27c2),this[_0x3ce1('0x23')]=new Map(),this[_0x3ce1('0x5b')]=new Map(),this[_0x3ce1('0x36')]=new Map(),this[_0x3ce1('0xe')]=new Map();const _0x262d97=this[_0x3ce1('0xa')][_0x3ce1('0x1')];_0x262d97[_0x3ce1('0x1a')](_0x3ce1('0x8'),_0x44158d),_0x262d97[_0x3ce1('0x1a')](_0x3ce1('0x1d'),!0x1),this[_0x3ce1('0x4d')]=_0x262d97[_0x3ce1('0x65')](_0x3ce1('0x1d'));}['_handleSuggestionControllerDelayed'](_0x4a0a2d,_0x2083ca){0x0===this['_handleControllerBuffer'][_0x3ce1('0x37')]&&setTimeout(()=>{for(const [_0x4489,_0x3c6db2]of this['_handleControllerBuffer']){const _0x31e7da=this[_0x3ce1('0x23')][_0x3ce1('0x5c')](_0x4489);_0x31e7da||_0x3c6db2?_0x31e7da&&_0x3c6db2&&this[_0x3ce1('0x46')](_0x4489):this['_initializeController'](_0x4489);}this[_0x3ce1('0xa')][_0x3ce1('0x27')]['get'](_0x3ce1('0x35'))[_0x3ce1('0x3d')](),this[_0x3ce1('0x7')](),this[_0x3ce1('0xe')]['clear']();},0xa),this['_handleControllerBuffer'][_0x3ce1('0x4a')](_0x4a0a2d,_0x2083ca);}[_0x3ce1('0x43')](){const _0x31ed48=this[_0x3ce1('0xa')],_0x29c090=_0x31ed48['plugins']['get'](_0x3ce1('0x45')),_0x1b4bca=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x51')),_0x4f4401=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x35')),_0x55e3a2=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')]('CommentsRepository');_0x31ed48['ui'][_0x3ce1('0x39')][_0x3ce1('0x2e')](_0x3ce1('0x4f'),_0xdad239=>this['_createUIButton'](_0xdad239)),_0x4f4401[_0x3ce1('0x5d')](()=>{const _0x2f44ca=[];for(const [_0x517e4f,_0x189e53]of Array['from'](this[_0x3ce1('0x23')])){const _0x294f6a=_0x517e4f[_0x3ce1('0x59')](),_0x402acf=[];for(const _0x4e897a of _0x294f6a){if(!_0x4e897a['isInContent'])continue;if(_0x4e897a[_0x3ce1('0x17')]){_0x402acf[_0x3ce1('0x48')](..._0x4e897a[_0x3ce1('0x53')]());continue;}const _0x4d77b3=_0x4e897a[_0x3ce1('0x2a')]();if(_0x402acf[_0x3ce1('0x68')]>0x0){const _0x5962b1=_0x402acf[0x0][_0x3ce1('0x62')](_0x4d77b3);if(_0x5962b1){_0x402acf[0x0]=_0x5962b1;continue;}}_0x402acf[_0x3ce1('0x48')](_0x4d77b3);}_0x2f44ca[_0x3ce1('0x48')]([_0x189e53[_0x3ce1('0x1f')],_0x402acf]);}return _0x2f44ca;}),this[_0x3ce1('0x19')](_0x29c090,_0x3ce1('0x3'),(_0x3a977c,_0x372a98)=>{this[_0x3ce1('0x19')](_0x372a98,_0x3ce1('0x3f'),(_0x4b65e8,_0x39eddf,_0x19118e,_0x37c982)=>{_0x372a98[_0x3ce1('0x2d')]&&(null==_0x19118e?(this['_updateController'](_0x37c982[_0x3ce1('0x6a')]),this[_0x3ce1('0x1c')](_0x372a98,!0x1)):(this[_0x3ce1('0x20')](_0x19118e[_0x3ce1('0x6a')]),this[_0x3ce1('0x1c')](_0x372a98,!0x0)));}),null===_0x372a98[_0x3ce1('0x55')]?this[_0x3ce1('0x1c')](_0x372a98,!0x1):this[_0x3ce1('0x20')](_0x372a98[_0x3ce1('0x6a')]);}),this['listenTo'](_0x29c090,'suggestionUnloaded',(_0x50ef10,_0x386785,_0x169272)=>{this[_0x3ce1('0x3c')](_0x386785,_0x3ce1('0x3f')),this[_0x3ce1('0xe')][_0x3ce1('0x34')](_0x386785);const _0x3f279d=_0x169272?_0x169272[_0x3ce1('0x6a')]:_0x386785,_0x164a42=this[_0x3ce1('0x23')][_0x3ce1('0x65')](_0x3f279d);null!==_0x169272&&this[_0x3ce1('0x20')](_0x3f279d),null===_0x169272&&_0x164a42&&this[_0x3ce1('0x46')](_0x386785);}),this[_0x3ce1('0x19')](_0x29c090,_0x3ce1('0x3b'),(_0x5f302e,_0x2c1377)=>{this[_0x3ce1('0x20')](_0x2c1377);}),this[_0x3ce1('0x19')](_0x1b4bca,_0x3ce1('0x6c'),()=>{this['_refreshActiveMarkers']();}),this[_0x3ce1('0x19')](_0x55e3a2,_0x3ce1('0x52'),(_0x24e845,{threadId:_0x1ec517,isFromAdapter:_0x8998bd})=>{if(_0x8998bd||!_0x29c090[_0x3ce1('0x15')](_0x1ec517))return;const _0x410d1f=_0x29c090[_0x3ce1('0x28')](_0x1ec517);this['_suggestionToController'][_0x3ce1('0x65')](_0x410d1f)[_0x3ce1('0x1f')][_0x3ce1('0xd')]();},{'priority':'lowest'});}[_0x3ce1('0x7')](){const _0x24fd34=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x51')),_0xe5c419=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')]('TrackChangesEditing'),_0x1edf86=Array[_0x3ce1('0x58')](_0x24fd34[_0x3ce1('0x4c')],_0xfe41ba=>_0xfe41ba[_0x3ce1('0x33')])[_0x3ce1('0x2b')](_0x3fb3f5=>this[_0x3ce1('0x5b')]['has'](_0x3fb3f5)),_0xa6d1f3=[];for(const _0xb625ce of _0x1edf86){const _0x518d41=this['_viewToController'][_0x3ce1('0x65')](_0xb625ce)['model'][_0x3ce1('0x59')]();_0xa6d1f3[_0x3ce1('0x48')](..._0x518d41[_0x3ce1('0x4b')]((_0x4e2b7a,_0x16508b)=>[..._0x4e2b7a,..._0x16508b[_0x3ce1('0x2f')]()],[]));}_0xe5c419[_0x3ce1('0x14')]=_0xa6d1f3;}[_0x3ce1('0x21')](_0x24eeb0){const _0x2b68da=_0x228168(_0x24eeb0,_0xc650fd),_0x2b691d=this['editor']['commands'][_0x3ce1('0x65')](_0x3ce1('0x4f')),_0x228c1d=_0x38b805(_0x24eeb0,_0x3ce1('0xc'));_0x2b68da['buttonView']['set']({'tooltip':_0x228c1d,'label':_0x228c1d,'icon':_0x478e96}),_0x2b68da['buttonView']['bind'](_0x3ce1('0x2'))['to'](_0x2b691d,_0x3ce1('0x18')),_0x2b68da[_0x3ce1('0x13')]['on'](_0x3ce1('0x31'),()=>{_0x2b691d[_0x3ce1('0x31')](),this[_0x3ce1('0xa')][_0x3ce1('0x1b')]['view'][_0x3ce1('0xd')]();});const _0x2867c2=new _0x5d3611(),_0x471339=[{'type':_0x3ce1('0x63'),'model':{'withText':!0x0,'label':_0x228c1d,'commandName':_0x3ce1('0x4f')}},{'type':_0x3ce1('0x6b')},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x5e')),'commandName':_0x3ce1('0x30')}},{'type':'button','model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x67')),'commandName':_0x3ce1('0x47')}},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0xb')),'commandName':_0x3ce1('0x1e')}},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x57')),'commandName':'discardSelectedSuggestions'}}];for(const _0x24c495 of _0x471339){let _0x32d9e6={'type':_0x3ce1('0x6b')};if(_0x24c495[_0x3ce1('0x40')]){const _0xcaa9d2=new _0x481a92(_0x24c495[_0x3ce1('0x40')]),_0x1ce873=this[_0x3ce1('0xa')][_0x3ce1('0x6')]['get'](_0xcaa9d2[_0x3ce1('0x64')]);_0xcaa9d2[_0x3ce1('0x10')]('isOn',_0x3ce1('0x5a'))['to'](_0x1ce873,_0x3ce1('0x18'),_0x3ce1('0x5a')),_0x32d9e6={'type':_0x24c495[_0x3ce1('0x44')],'model':_0xcaa9d2};}_0x2867c2[_0x3ce1('0x2e')](_0x32d9e6);}_0x36df0a(_0x2b68da,_0x2867c2);const _0x1026be=_0x471339[_0x3ce1('0x2b')](_0x2b32a4=>null!=_0x2b32a4[_0x3ce1('0x40')])['map'](_0x3a9931=>this[_0x3ce1('0xa')]['commands'][_0x3ce1('0x65')](_0x3a9931['model'][_0x3ce1('0x64')])),_0x300543=_0x2b68da[_0x3ce1('0x13')];return _0x300543[_0x3ce1('0x3e')][_0x3ce1('0x22')](_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x56')]['unbind'](_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x3e')][_0x3ce1('0x10')](_0x3ce1('0x5a'))['to'](_0x2b691d,_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x56')][_0x3ce1('0x10')]('isEnabled')[_0x3ce1('0x50')](_0x1026be,_0x3ce1('0x5a'),(..._0x4fcfd6)=>_0x4fcfd6[_0x3ce1('0x32')](_0x28b3c0=>_0x28b3c0)),_0x2b68da['on'](_0x3ce1('0x31'),_0x3b3b28=>{this[_0x3ce1('0xa')][_0x3ce1('0x31')](_0x3b3b28[_0x3ce1('0x29')][_0x3ce1('0x64')]),this['editor'][_0x3ce1('0x1b')]['view'][_0x3ce1('0xd')]();}),_0x2b68da;}['_initializeController'](_0x5e5923){const _0x18733c=this[_0x3ce1('0xa')],_0x2c0bcd=_0x18733c['config'],_0x17a94b=_0x18733c[_0x3ce1('0x27')]['get'](_0x3ce1('0x51')),_0x4523ba=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')]('CommentsRepository'),_0x3fe47b=_0x18733c[_0x3ce1('0x27')]['get'](_0x3ce1('0x35')),_0x43a9ae=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x432f34)['me'],_0x478ddc=_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x4f'))[_0x3ce1('0x6f')],{CommentsListView:_0x4731c9,CommentThreadInputView:_0x24d377}=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x61'));let _0x5c8225,_0x355feb;this[_0x3ce1('0x36')][_0x3ce1('0x5c')](_0x5e5923['id'])?(_0x355feb=this['_annotationViews'][_0x3ce1('0x65')](_0x5e5923['id']),_0x5c8225=_0x355feb['mainView']):(_0x5c8225=new _0x478ddc(_0x18733c[_0x3ce1('0x12')],_0x5e5923,_0x43a9ae,{'disableComments':this[_0x3ce1('0x4d')],'editorConfig':_0x2c0bcd[_0x3ce1('0x65')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2c0bcd['get'](_0x3ce1('0x11')),'maxThreadTotalWeight':_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x16')),'maxCommentCharsWhenCollapsed':_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x5f')),'formatDateTime':_0x38e33a(_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x12'))),'CommentView':_0x2c0bcd['get'](_0x3ce1('0x2c'))[_0x3ce1('0x5')],'CommentsListView':_0x4731c9,'CommentThreadInputView':_0x24d377}),_0x5c8225['acceptButton']['on']('execute',()=>{_0x18733c['editing'][_0x3ce1('0x1f')][_0x3ce1('0xd')]();}),_0x5c8225[_0x3ce1('0x38')]['on'](_0x3ce1('0x31'),()=>{_0x18733c[_0x3ce1('0x1b')][_0x3ce1('0x1f')][_0x3ce1('0xd')]();}),_0x355feb=_0x17a94b[_0x3ce1('0x0')](this[_0x3ce1('0xa')][_0x3ce1('0x12')],_0x5c8225),_0x355feb[_0x3ce1('0x10')]('isDirty')['to'](_0x5c8225,_0x3ce1('0x66')),_0x355feb[_0x3ce1('0x10')](_0x3ce1('0x68'))['to'](_0x5c8225),_0x355feb[_0x3ce1('0x10')](_0x3ce1('0x44'))['to'](_0x5c8225,_0x3ce1('0x44'),_0x2fea59=>_0x3ce1('0x49')+_0x2fea59),this[_0x3ce1('0x36')][_0x3ce1('0x4a')](_0x5e5923['id'],_0x355feb));const _0x4e9ac8=_0x4523ba[_0x3ce1('0x41')](_0x5e5923[_0x3ce1('0x4')],_0x5c8225),_0x39944f=new _0x34528f(_0x18733c,_0x5e5923,_0x5c8225,_0x4e9ac8),_0x1fa958=_0x5e5923[_0x3ce1('0x59')]()['filter'](_0x2a405a=>_0x2a405a['isInContent']);_0x5c8225['descriptionParts']=_0x18733c[_0x3ce1('0x27')]['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x1fa958),this[_0x3ce1('0x23')][_0x3ce1('0x4a')](_0x5e5923,_0x39944f),this[_0x3ce1('0x5b')][_0x3ce1('0x4a')](_0x5c8225,_0x39944f);const _0x36ef08=_0x17a94b['createAnnotation']({'view':_0x355feb,'target':()=>{const _0x250703=[],_0x5cbd1a=_0x5e5923[_0x3ce1('0x59')]()[_0x3ce1('0x2b')](_0x35b5ee=>_0x35b5ee[_0x3ce1('0x2d')]);for(const _0x2ca038 of _0x5cbd1a)_0x250703['push'](..._0x2ca038['getMarkers']());return _0x2ad89a(_0x18733c['editing'],_0x250703);},'type':()=>_0x3ce1('0x49')+_0x39944f[_0x3ce1('0x1f')][_0x3ce1('0x44')]});_0x17a94b[_0x3ce1('0x2e')](_0x36ef08),_0x3fe47b[_0x3ce1('0x6e')](_0x36ef08);}[_0x3ce1('0x46')](_0x27cd81){const _0x169528=this['editor'][_0x3ce1('0x27')][_0x3ce1('0x65')]('Annotations'),_0x18d8f2=this[_0x3ce1('0x23')][_0x3ce1('0x65')](_0x27cd81),_0x535a05=_0x18d8f2[_0x3ce1('0x1f')],_0x542f62=_0x169528[_0x3ce1('0x42')](_0x535a05);_0x542f62&&_0x169528[_0x3ce1('0x54')](_0x542f62),this[_0x3ce1('0x23')][_0x3ce1('0x34')](_0x27cd81),this[_0x3ce1('0x5b')][_0x3ce1('0x34')](_0x535a05),_0x18d8f2[_0x3ce1('0x26')]();}['_updateController'](_0x5c8fa7){if(!_0x5c8fa7[_0x3ce1('0x2d')]||!this[_0x3ce1('0x23')][_0x3ce1('0x5c')](_0x5c8fa7))return;const _0x4c1f09=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x45')),_0x4eaeb5=this['_suggestionToController'][_0x3ce1('0x65')](_0x5c8fa7),_0xf128da=_0x5c8fa7['getAllAdjacentSuggestions']();_0x4eaeb5[_0x3ce1('0x1f')][_0x3ce1('0x9')]=_0x4c1f09[_0x3ce1('0xf')][_0x3ce1('0x69')](_0xf128da);}['destroy'](){for(const _0x48427d of this[_0x3ce1('0x23')][_0x3ce1('0x60')]())this[_0x3ce1('0x46')](_0x48427d);for(const _0x43422e of this[_0x3ce1('0x36')][_0x3ce1('0x25')]())_0x43422e[_0x3ce1('0x4e')][_0x3ce1('0x26')]();super[_0x3ce1('0x26')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2066=['unbind','PENDING_ACTION_SUGGESTION','isDirty','execute','isEnabled','_discardCommand','plugins','model','_editor','canAccept','_removePendingAction','_acceptCommand','add','_pendingAction','view','listenTo','change:isDirty','bind','commands','discardSuggestion','PendingActions','canDiscard','_setPendingAction','acceptSuggestion','destroy','locale','commentThreadController','get'];(function(_0x28c127,_0x206668){const _0x368b30=function(_0x129fc0){while(--_0x129fc0){_0x28c127['push'](_0x28c127['shift']());}};_0x368b30(++_0x206668);}(_0x2066,0x10f));const _0x368b=function(_0x28c127,_0x206668){_0x28c127=_0x28c127-0x0;let _0x368b30=_0x2066[_0x28c127];return _0x368b30;};import{ObservableMixin as _0x54bec8}from'ckeditor5/src/utils';import{getTranslation as _0xbc3a41}from'../utils/common-translations';export default class Lt extends _0x54bec8(){constructor(_0x2a47dd,_0x321a50,_0x39f166,_0x12cc34){super(),this['model']=_0x321a50,this[_0x368b('0x17')]=_0x39f166,this[_0x368b('0x7')]=_0x12cc34,this[_0x368b('0x11')]=_0x2a47dd,this[_0x368b('0x14')]=_0x2a47dd[_0x368b('0x1b')][_0x368b('0x8')](_0x368b('0x4')),this[_0x368b('0xe')]=_0x2a47dd['commands'][_0x368b('0x8')](_0x368b('0x0')),this[_0x368b('0x17')][_0x368b('0x1a')](_0x368b('0xd'))['to'](this[_0x368b('0x14')],this[_0x368b('0xe')],(_0x298b73,_0x351fee)=>_0x298b73||_0x351fee),this['view'][_0x368b('0x1a')](_0x368b('0x12'))['to'](this[_0x368b('0x14')],_0x368b('0xd')),this['view']['bind']('canDiscard')['to'](this[_0x368b('0xe')],_0x368b('0xd')),this[_0x368b('0x16')]=null,_0x39f166[_0x368b('0xb')]&&this['_setPendingAction'](),this[_0x368b('0x18')](_0x39f166,'acceptSuggestion',()=>this[_0x368b('0x4')]()),this['listenTo'](_0x39f166,'discardSuggestion',()=>this[_0x368b('0x0')]()),this[_0x368b('0x18')](_0x39f166,_0x368b('0x19'),()=>{_0x39f166[_0x368b('0xb')]?this[_0x368b('0x3')]():this[_0x368b('0x13')]();});}[_0x368b('0x4')](){this['_acceptCommand'][_0x368b('0xc')](this[_0x368b('0x10')]['id']);}['discardSuggestion'](){this['_discardCommand'][_0x368b('0xc')](this[_0x368b('0x10')]['id']);}[_0x368b('0x5')](){this[_0x368b('0x17')]['unbind'](_0x368b('0xd')),this[_0x368b('0x17')][_0x368b('0x9')]('canAccept'),this[_0x368b('0x17')]['unbind'](_0x368b('0x2')),this['stopListening'](),this[_0x368b('0x7')]['destroy'](),this[_0x368b('0x16')]&&this[_0x368b('0x13')]();}['_setPendingAction'](){const _0x435964=_0xbc3a41(this[_0x368b('0x11')][_0x368b('0x6')],_0x368b('0xa'));this[_0x368b('0x16')]=this[_0x368b('0x11')][_0x368b('0xf')]['get'](_0x368b('0x1'))[_0x368b('0x15')](_0x435964);}['_removePendingAction'](){null!==this[_0x368b('0x16')]&&this[_0x368b('0x11')][_0x368b('0xf')][_0x368b('0x8')]('PendingActions')['remove'](this[_0x368b('0x16')]),this['_pendingAction']=null;}}
23
+ const _0x4b48=['execute','change:isDirty','get','isEnabled','isDirty','commentThreadController','_discardCommand','_setPendingAction','add','_removePendingAction','listenTo','canAccept','_editor','destroy','stopListening','bind','PendingActions','unbind','model','discardSuggestion','_acceptCommand','_pendingAction','view','plugins','commands','acceptSuggestion','canDiscard','PENDING_ACTION_SUGGESTION','remove'];(function(_0x353be4,_0x4b4862){const _0x4dd35e=function(_0x1f8e90){while(--_0x1f8e90){_0x353be4['push'](_0x353be4['shift']());}};_0x4dd35e(++_0x4b4862);}(_0x4b48,0x143));const _0x4dd3=function(_0x353be4,_0x4b4862){_0x353be4=_0x353be4-0x0;let _0x4dd35e=_0x4b48[_0x353be4];return _0x4dd35e;};import{ObservableMixin as _0x558af1}from'ckeditor5/src/utils';import{getTranslation as _0x24c257}from'../utils/common-translations';export default class Lt extends _0x558af1(){constructor(_0x342d5a,_0x52fc2a,_0x1247cc,_0x2c2110){super(),this['model']=_0x52fc2a,this[_0x4dd3('0x12')]=_0x1247cc,this[_0x4dd3('0x1')]=_0x2c2110,this['_editor']=_0x342d5a,this[_0x4dd3('0x10')]=_0x342d5a[_0x4dd3('0x14')]['get'](_0x4dd3('0x15')),this[_0x4dd3('0x2')]=_0x342d5a['commands']['get'](_0x4dd3('0xf')),this[_0x4dd3('0x12')][_0x4dd3('0xb')](_0x4dd3('0x1c'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x390a25,_0x212a37)=>_0x390a25||_0x212a37),this[_0x4dd3('0x12')]['bind'](_0x4dd3('0x7'))['to'](this[_0x4dd3('0x10')],'isEnabled'),this['view']['bind'](_0x4dd3('0x16'))['to'](this[_0x4dd3('0x2')],_0x4dd3('0x1c')),this[_0x4dd3('0x11')]=null,_0x1247cc[_0x4dd3('0x0')]&&this[_0x4dd3('0x3')](),this[_0x4dd3('0x6')](_0x1247cc,_0x4dd3('0x15'),()=>this[_0x4dd3('0x15')]()),this[_0x4dd3('0x6')](_0x1247cc,_0x4dd3('0xf'),()=>this['discardSuggestion']()),this[_0x4dd3('0x6')](_0x1247cc,_0x4dd3('0x1a'),()=>{_0x1247cc[_0x4dd3('0x0')]?this[_0x4dd3('0x3')]():this[_0x4dd3('0x5')]();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand'][_0x4dd3('0x19')](this[_0x4dd3('0xe')]['id']);}[_0x4dd3('0x9')](){this['view'][_0x4dd3('0xd')](_0x4dd3('0x1c')),this[_0x4dd3('0x12')][_0x4dd3('0xd')](_0x4dd3('0x7')),this[_0x4dd3('0x12')]['unbind'](_0x4dd3('0x16')),this[_0x4dd3('0xa')](),this[_0x4dd3('0x1')][_0x4dd3('0x9')](),this[_0x4dd3('0x11')]&&this[_0x4dd3('0x5')]();}['_setPendingAction'](){const _0x580d83=_0x24c257(this[_0x4dd3('0x8')]['locale'],_0x4dd3('0x17'));this[_0x4dd3('0x11')]=this[_0x4dd3('0x8')][_0x4dd3('0x13')][_0x4dd3('0x1b')](_0x4dd3('0xc'))[_0x4dd3('0x4')](_0x580d83);}[_0x4dd3('0x5')](){null!==this[_0x4dd3('0x11')]&&this[_0x4dd3('0x8')]['plugins'][_0x4dd3('0x1b')]('PendingActions')[_0x4dd3('0x18')](this['_pendingAction']),this[_0x4dd3('0x11')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x425a=['editor','commentInputView','updateComment','isDirty','bind','commentThread','isActive','_createCommentThreadInputView','commentThreadInputView','editorConfig','set','submit','_model','disableComments','disabledSubmit','_createCommentViews','_localUser','commentsListView','length','cancel','canAccept','destroy','value','showInput','delegate','focus','element','_config','fire','isReadOnly','CommentView','removeComment'];(function(_0x65b306,_0x425a11){const _0x322db8=function(_0xb14c15){while(--_0xb14c15){_0x65b306['push'](_0x65b306['shift']());}};_0x322db8(++_0x425a11);}(_0x425a,0x7e));const _0x322d=function(_0x65b306,_0x425a11){_0x65b306=_0x65b306-0x0;let _0x322db8=_0x425a[_0x65b306];return _0x322db8;};import{View as _0x60ff7e}from'ckeditor5/src/ui';export default class ii extends _0x60ff7e{constructor(_0x5423a2,_0x438ac2,_0x227486,_0x171c66){super(_0x5423a2),this[_0x322d('0x13')]=null,this['commentThreadInputView']=null,this[_0x322d('0xc')]('isActive',!0x1),this[_0x322d('0xc')]('authoredAt',_0x438ac2['authoredAt']),this[_0x322d('0x6')]('authoredAt')['to'](_0x438ac2),this[_0x322d('0xc')]('descriptionParts',[]),this['set'](_0x322d('0x5'),!0x1),this[_0x322d('0xc')]('isEnabled',!0x1),this[_0x322d('0xc')](_0x322d('0x16'),!0x1),this[_0x322d('0xc')]('canDiscard',!0x1),this[_0x322d('0xe')]=_0x438ac2,this[_0x322d('0x12')]=_0x227486,this[_0x322d('0x1d')]=_0x171c66,_0x171c66[_0x322d('0xf')]?this['set'](_0x322d('0x14'),0x1):this[_0x322d('0x11')]();}['focus'](){this[_0x322d('0x1c')]['focus']();}['destroy'](){this['commentsListView']&&this[_0x322d('0x13')][_0x322d('0x17')](),this['commentThreadInputView']&&this[_0x322d('0xa')][_0x322d('0x17')](),super[_0x322d('0x17')]();}['_createCommentViews'](){const {CommentsListView:_0x5d10e7}=this[_0x322d('0x1d')];this[_0x322d('0x13')]=new _0x5d10e7(this['locale'],this[_0x322d('0xe')][_0x322d('0x7')],Object['assign']({'CommentView':this[_0x322d('0x1d')][_0x322d('0x0')]},this['_config'])),this[_0x322d('0x13')][_0x322d('0x1a')]('removeComment')['to'](this),this[_0x322d('0x13')]['delegate'](_0x322d('0x4'))['to'](this),this[_0x322d('0x13')][_0x322d('0x6')](_0x322d('0x8'))['to'](this),this['set'](_0x322d('0x14'),this[_0x322d('0x13')][_0x322d('0x14')]+0x1),this[_0x322d('0x6')](_0x322d('0x14'))['to'](this[_0x322d('0x13')],_0x322d('0x14'),_0xb1a8f5=>_0xb1a8f5+0x1),this['commentThreadInputView']=this[_0x322d('0x9')](),this['on'](_0x322d('0x1'),()=>this[_0x322d('0x1b')]()),this[_0x322d('0x6')]('isDirty')['to'](this[_0x322d('0x13')],'hasDirtyComment',this['commentThreadInputView'][_0x322d('0x3')],_0x322d('0x18'),(_0x5a2180,_0x112f40)=>_0x5a2180||!!_0x112f40);}[_0x322d('0x9')](){const {CommentThreadInputView:_0x332608}=this[_0x322d('0x1d')],_0x309bfe=new _0x332608(this['locale'],this['_localUser'],this[_0x322d('0x1d')][_0x322d('0xb')]),_0x45ee9d=_0x309bfe[_0x322d('0x3')];return _0x309bfe[_0x322d('0x6')](_0x322d('0x19'))['to'](this,_0x322d('0x8'),this[_0x322d('0xe')][_0x322d('0x7')],_0x322d('0x1f'),_0x45ee9d,_0x322d('0x18'),(_0x14611c,_0x4367ff,_0x47a68b)=>!!_0x47a68b||_0x14611c&&!_0x4367ff),_0x45ee9d['on'](_0x322d('0xd'),(_0x429853,_0x4c44f1)=>{this[_0x322d('0x1e')]('addComment',_0x4c44f1),_0x45ee9d[_0x322d('0x2')]['setData']('');}),_0x45ee9d['on'](_0x322d('0x15'),()=>this[_0x322d('0x1b')]()),_0x45ee9d[_0x322d('0x6')](_0x322d('0x10'))['to'](this[_0x322d('0xe')][_0x322d('0x7')],_0x322d('0x1f')),_0x309bfe;}}
23
+ const _0x5189=['_model','disabledSubmit','commentInputView','hasDirtyComment','isActive','set','_localUser','submit','destroy','CommentView','_createCommentViews','cancel','bind','descriptionParts','disableComments','length','assign','value','authoredAt','isEnabled','commentsListView','setData','commentThread','fire','isReadOnly','delegate','addComment','_config','element','isDirty','editor','commentThreadInputView','focus','canDiscard','removeComment','locale'];(function(_0x282308,_0x51893c){const _0x5e6ad8=function(_0x1bedf3){while(--_0x1bedf3){_0x282308['push'](_0x282308['shift']());}};_0x5e6ad8(++_0x51893c);}(_0x5189,0x10c));const _0x5e6a=function(_0x282308,_0x51893c){_0x282308=_0x282308-0x0;let _0x5e6ad8=_0x5189[_0x282308];return _0x5e6ad8;};import{View as _0x5d8d8d}from'ckeditor5/src/ui';export default class ii extends _0x5d8d8d{constructor(_0x529888,_0x301d96,_0x53df55,_0x1afa32){super(_0x529888),this[_0x5e6a('0x4')]=null,this[_0x5e6a('0xf')]=null,this[_0x5e6a('0x19')](_0x5e6a('0x18'),!0x1),this[_0x5e6a('0x19')]('authoredAt',_0x301d96[_0x5e6a('0x2')]),this['bind'](_0x5e6a('0x2'))['to'](_0x301d96),this[_0x5e6a('0x19')](_0x5e6a('0x21'),[]),this[_0x5e6a('0x19')](_0x5e6a('0xd'),!0x1),this[_0x5e6a('0x19')](_0x5e6a('0x3'),!0x1),this[_0x5e6a('0x19')]('canAccept',!0x1),this[_0x5e6a('0x19')](_0x5e6a('0x11'),!0x1),this[_0x5e6a('0x14')]=_0x301d96,this[_0x5e6a('0x1a')]=_0x53df55,this[_0x5e6a('0xb')]=_0x1afa32,_0x1afa32[_0x5e6a('0x22')]?this['set']('length',0x1):this[_0x5e6a('0x1e')]();}[_0x5e6a('0x10')](){this[_0x5e6a('0xc')][_0x5e6a('0x10')]();}[_0x5e6a('0x1c')](){this[_0x5e6a('0x4')]&&this[_0x5e6a('0x4')]['destroy'](),this['commentThreadInputView']&&this[_0x5e6a('0xf')]['destroy'](),super[_0x5e6a('0x1c')]();}['_createCommentViews'](){const {CommentsListView:_0xed15e2}=this[_0x5e6a('0xb')];this['commentsListView']=new _0xed15e2(this[_0x5e6a('0x13')],this[_0x5e6a('0x14')]['commentThread'],Object[_0x5e6a('0x0')]({'CommentView':this['_config'][_0x5e6a('0x1d')]},this[_0x5e6a('0xb')])),this[_0x5e6a('0x4')][_0x5e6a('0x9')](_0x5e6a('0x12'))['to'](this),this[_0x5e6a('0x4')]['delegate']('updateComment')['to'](this),this[_0x5e6a('0x4')]['bind']('isActive')['to'](this),this[_0x5e6a('0x19')](_0x5e6a('0x23'),this[_0x5e6a('0x4')]['length']+0x1),this[_0x5e6a('0x20')]('length')['to'](this['commentsListView'],_0x5e6a('0x23'),_0x5e1df4=>_0x5e1df4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this[_0x5e6a('0x10')]()),this[_0x5e6a('0x20')](_0x5e6a('0xd'))['to'](this[_0x5e6a('0x4')],_0x5e6a('0x17'),this['commentThreadInputView'][_0x5e6a('0x16')],_0x5e6a('0x1'),(_0x3ec517,_0x27195d)=>_0x3ec517||!!_0x27195d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5681f8}=this[_0x5e6a('0xb')],_0x40d08e=new _0x5681f8(this['locale'],this[_0x5e6a('0x1a')],this['_config']['editorConfig']),_0x149341=_0x40d08e[_0x5e6a('0x16')];return _0x40d08e[_0x5e6a('0x20')]('showInput')['to'](this,_0x5e6a('0x18'),this[_0x5e6a('0x14')]['commentThread'],_0x5e6a('0x8'),_0x149341,_0x5e6a('0x1'),(_0x39621,_0x41d969,_0x15a12c)=>!!_0x15a12c||_0x39621&&!_0x41d969),_0x149341['on'](_0x5e6a('0x1b'),(_0x2cfba4,_0x9abea8)=>{this[_0x5e6a('0x7')](_0x5e6a('0xa'),_0x9abea8),_0x149341[_0x5e6a('0xe')][_0x5e6a('0x5')]('');}),_0x149341['on'](_0x5e6a('0x1f'),()=>this['focus']()),_0x149341[_0x5e6a('0x20')](_0x5e6a('0x15'))['to'](this[_0x5e6a('0x14')][_0x5e6a('0x6')],'isReadOnly'),_0x40d08e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2201=['title','ck-annotation','innerText','ck-suggestion__user','userView','ck-annotation__info-time','ck-annotation__user','EXTERNAL_AVATAR','ck-annotation__content-wrapper','isEnabled','div','commentThread','setTemplate','innerHTML','getTemplate','push','source','</span>','extendTemplate','children','bindTemplate','Discard\x20suggestion','ck-suggestion--disabled-comments','<p>','importWord','.ck-annotation__content-wrapper','ck-comment__info-time','_createButton','\x22></span>','EXTERNAL_IMPORT_WORD_SUGGESTION','isActive','color','author','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','attributes','acceptButton','split','discardSuggestion','check','disableComments','name','type','ck-annotation__main','ck-suggestion','render','getExternalSuggestionNote','isExternal','locale','set','ck-suggestion-','ck-annotation__info','\x22\x20title=\x22','acceptSuggestion','ck-annotation__actions','querySelector','ck-comment__external','ck-annotation__info-name','ck-suggestion-wrapper','@external','element','value','canAccept','ck-suggestion__actions','EXTERNAL_IMPORT_WORD_AVATAR','_config','join','ck-suggestion-wrapper--active','getUserViewNotificationText','</p>','Accept\x20suggestion','ck-suggestion--accept','ck-suggestion__info','span','fire','_descriptionElement','authoredAt','time','_model','bind','cancel','change:description','EXTERNAL_SUGGESTION','descriptionParts','discardButton','ck-suggestion__info-name','commentsListView'];(function(_0x2bb975,_0x22013e){const _0x4340e8=function(_0x562ba1){while(--_0x562ba1){_0x2bb975['push'](_0x2bb975['shift']());}};_0x4340e8(++_0x22013e);}(_0x2201,0x11b));const _0x4340=function(_0x2bb975,_0x22013e){_0x2bb975=_0x2bb975-0x0;let _0x4340e8=_0x2201[_0x2bb975];return _0x4340e8;};import{getTranslation as _0x294d91}from'../../utils/common-translations';import{default as _0x4ed78a}from'./basesuggestionthreadview';import{ButtonView as _0x571b68}from'ckeditor5/src/ui';import{icons as _0x556aac}from'ckeditor5/src/core';import{trimHtml as _0x48313d,UserView as _0x4e74dd}from'ckeditor5-collaboration/src/collaboration-core';export default class Rt extends _0x4ed78a{constructor(_0x2385a5,_0x528abe,_0x59a628,_0x36bc59){super(_0x2385a5,_0x528abe,_0x59a628,_0x36bc59),this[_0x4340('0x17')]('type',''),this[_0x4340('0x35')](_0x4340('0x10'))['to'](this,_0x4340('0x39'),_0x1cd3af=>_0x1cd3af&&_0x1cd3af[0x0]?_0x1cd3af[0x0][_0x4340('0x10')]:''),this['bind']('description')['to'](this,_0x4340('0x39'),this,_0x4340('0x5'),(_0x38b270,_0x45efbc)=>{let _0x4032ec='';for(const _0x1425bc of _0x38b270)_0x4032ec+=_0x4340('0x54')+ns(_0x1425bc['content'],_0x1425bc[_0x4340('0x6')])+_0x4340('0x2b');return _0x45efbc?_0x4032ec:_0x48313d(_0x4032ec,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this[_0x4340('0x2')](_0x294d91(_0x2385a5,_0x4340('0x2c')),_0x556aac[_0x4340('0xd')],_0x4340('0x2d'),_0x4340('0x1b'),'sw'),this['acceptButton'][_0x4340('0x35')](_0x4340('0x46'))['to'](this,_0x4340('0x24')),this[_0x4340('0x3a')]=this[_0x4340('0x2')](_0x294d91(_0x2385a5,_0x4340('0x52')),_0x556aac[_0x4340('0x36')],'ck-suggestion--discard',_0x4340('0xc'),'sw'),this[_0x4340('0x3a')][_0x4340('0x35')](_0x4340('0x46'))['to'](this,'canDiscard'),this[_0x4340('0x41')]=new _0x4e74dd(_0x2385a5,this['_model'][_0x4340('0x7')],this[_0x4340('0x2a')]()),this['userView'][_0x4340('0x4f')]({'attributes':{'class':[_0x4340('0x40'),_0x4340('0x43')]}}),this[_0x4340('0x49')](this[_0x4340('0x4b')]());}[_0x4340('0x4b')](){const _0x3f4a70=this[_0x4340('0x51')],_0xdfc5fd=[{'tag':'div','attributes':{'class':[_0x4340('0x2e'),_0x4340('0x19')]},'children':[{'tag':_0x4340('0x2f'),'children':[{'text':this[_0x4340('0x41')][_0x4340('0xf')]}],'attributes':{'class':[_0x4340('0x3b'),_0x4340('0x1f')]}},{'tag':_0x4340('0x33'),'attributes':{'datetime':_0x3f4a70['to'](_0x4340('0x32')),'class':[_0x4340('0x1'),_0x4340('0x42')]},'children':[{'text':_0x3f4a70['to'](_0x4340('0x32'),_0x1d2721=>this[_0x4340('0x27')]['formatDateTime'](_0x1d2721))}]}]},{'tag':_0x4340('0x47'),'attributes':{'class':[_0x4340('0x25'),_0x4340('0x1c')]},'children':[this[_0x4340('0xa')],this[_0x4340('0x3a')]]},{'tag':_0x4340('0x47'),'attributes':{'class':[_0x4340('0x45')]}}];this[_0x4340('0x34')][_0x4340('0x15')]&&_0xdfc5fd[_0x4340('0x4c')]({'tag':_0x4340('0x47'),'attributes':{'class':[_0x4340('0x1e')]},'children':[{'text':this[_0x4340('0x14')]()}]});const _0xe0ae76={'tag':_0x4340('0x47'),'attributes':{'class':[_0x4340('0x20'),_0x3f4a70['if']('isActive',_0x4340('0x29')),_0x3f4a70['to'](_0x4340('0x10'),_0x58ea23=>_0x4340('0x18')+_0x58ea23),this[_0x4340('0x27')][_0x4340('0xe')]&&_0x4340('0x53')],'data-suggestion-id':this[_0x4340('0x34')]['id'],'data-thread-id':this[_0x4340('0x34')][_0x4340('0x48')]['id'],'data-author-id':this[_0x4340('0x34')][_0x4340('0x7')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4340('0x47'),'attributes':{'class':[_0x4340('0x12'),_0x4340('0x3e')]},'children':[this['userView'],{'tag':_0x4340('0x47'),'attributes':{'class':['ck-suggestion__main',_0x4340('0x11')]},'children':_0xdfc5fd}]}]};return this[_0x4340('0x3c')]&&this['commentThreadInputView']&&_0xe0ae76[_0x4340('0x50')][_0x4340('0x4c')](this['commentsListView'],this['commentThreadInputView']),_0xe0ae76;}[_0x4340('0x13')](){super['render'](),this[_0x4340('0x31')]=this[_0x4340('0x22')][_0x4340('0x1d')](_0x4340('0x0')),this[_0x4340('0x31')][_0x4340('0x4a')]=this['description'],this['on'](_0x4340('0x37'),(_0x18542a,_0x26ed7d,_0x5b0ca7)=>{this[_0x4340('0x31')]['innerHTML']=_0x5b0ca7;});}[_0x4340('0x2')](_0x5eb1b2,_0x1464a2,_0x50ee81,_0x1ec925,_0x265df4){const _0x3fc01e=new _0x571b68(this['locale']);return _0x3fc01e[_0x4340('0x17')]({'label':_0x5eb1b2,'icon':_0x1464a2,'tooltip':!0x0,'tooltipPosition':_0x265df4}),_0x3fc01e['extendTemplate']({'attributes':{'class':_0x50ee81}}),_0x3fc01e['on']('execute',()=>{this[_0x4340('0x30')](_0x1ec925,this[_0x4340('0x34')]['id']);}),_0x3fc01e;}[_0x4340('0x14')](){return _0x4340('0x55')===this[_0x4340('0x34')][_0x4340('0x9')][_0x4340('0x21')][_0x4340('0x4d')]?_0x294d91(this[_0x4340('0x16')],_0x4340('0x4')):_0x294d91(this[_0x4340('0x16')],_0x4340('0x38'));}[_0x4340('0x2a')](){return this[_0x4340('0x34')][_0x4340('0x15')]?_0x4340('0x55')===this['_model'][_0x4340('0x9')][_0x4340('0x21')][_0x4340('0x4d')]?_0x294d91(this[_0x4340('0x16')],_0x4340('0x26'),this[_0x4340('0x34')]['creator'][_0x4340('0xf')]):_0x294d91(this[_0x4340('0x16')],_0x4340('0x44'),this[_0x4340('0x34')]['creator'][_0x4340('0xf')]):null;}}function ns(_0x7fafa4,_0x1be98a){let _0x42a840='';return _0x42a840+=_0x7fafa4[_0x4340('0xb')]('*')['map']((_0x39b8f2,_0x210306)=>_0x210306%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+os(_0x39b8f2)+_0x4340('0x4e'):os(_0x39b8f2))[_0x4340('0x28')](''),_0x1be98a&&(_0x42a840+=_0x4340('0x8')+_0x1be98a[_0x4340('0x23')]+_0x4340('0x1a')+_0x1be98a[_0x4340('0x3d')]+_0x4340('0x3')),_0x42a840;}function os(_0x2c3af4){const _0x2bfabc=document['createElement']('span');return _0x2bfabc[_0x4340('0x3f')]=_0x2c3af4,_0x2bfabc[_0x4340('0x4a')];}
23
+ const _0x598d=['acceptButton','Discard\x20suggestion','join','ck-suggestion__info-name','title','ck-annotation__actions','creator','ck-suggestion--disabled-comments','bindTemplate','type','</span>','ck-suggestion','authoredAt','name','_createButton','@external','\x22\x20title=\x22','extendTemplate','_descriptionElement','execute','_model','ck-suggestion-wrapper','render','ck-annotation__content-wrapper','description','createElement','EXTERNAL_SUGGESTION','author','innerText','push','ck-suggestion--accept','ck-annotation__main','element','EXTERNAL_AVATAR','map','check','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-suggestion--discard','importWord','ck-suggestion__info','content','ck-annotation__user','commentThread','descriptionParts','canDiscard','ck-annotation__info-name','commentThreadInputView','getTemplate','querySelector','ck-suggestion-','source','ck-comment__external','div','getUserViewNotificationText','Accept\x20suggestion','EXTERNAL_IMPORT_WORD_AVATAR','getExternalSuggestionNote','value','setTemplate','ck-suggestion-wrapper--active','bind','commentsListView','span','isExternal','formatDateTime','userView','_config','discardSuggestion','attributes','ck-suggestion__user','EXTERNAL_IMPORT_WORD_SUGGESTION','</p>','disableComments','set','discardButton','isEnabled','.ck-annotation__content-wrapper','isActive','locale','change:description','innerHTML','ck-annotation'];(function(_0x26afa4,_0x598d0a){const _0x2f8593=function(_0xf7efc4){while(--_0xf7efc4){_0x26afa4['push'](_0x26afa4['shift']());}};_0x2f8593(++_0x598d0a);}(_0x598d,0x106));const _0x2f85=function(_0x26afa4,_0x598d0a){_0x26afa4=_0x26afa4-0x0;let _0x2f8593=_0x598d[_0x26afa4];return _0x2f8593;};import{getTranslation as _0x4fa08f}from'../../utils/common-translations';import{default as _0x20de95}from'./basesuggestionthreadview';import{ButtonView as _0x2674b2}from'ckeditor5/src/ui';import{icons as _0x387611}from'ckeditor5/src/core';import{trimHtml as _0xba01b9,UserView as _0x26637c}from'ckeditor5-collaboration/src/collaboration-core';export default class Rt extends _0x20de95{constructor(_0x3da6b1,_0x92e0a8,_0x130139,_0x3a6650){super(_0x3da6b1,_0x92e0a8,_0x130139,_0x3a6650),this[_0x2f85('0x39')](_0x2f85('0x4b'),''),this['bind']('type')['to'](this,_0x2f85('0x1b'),_0x311bc5=>_0x311bc5&&_0x311bc5[0x0]?_0x311bc5[0x0][_0x2f85('0x4b')]:''),this[_0x2f85('0x2c')]('description')['to'](this,_0x2f85('0x1b'),this,_0x2f85('0x3d'),(_0x1f8337,_0x1dd943)=>{let _0x59aa23='';for(const _0x25717b of _0x1f8337)_0x59aa23+='<p>'+ns(_0x25717b[_0x2f85('0x18')],_0x25717b['color'])+_0x2f85('0x37');return _0x1dd943?_0x59aa23:_0xba01b9(_0x59aa23,{'limit':0x8c});}),this[_0x2f85('0x2')]=null,this[_0x2f85('0x42')]=this[_0x2f85('0x50')](_0x4fa08f(_0x3da6b1,_0x2f85('0x26')),_0x387611[_0x2f85('0x13')],_0x2f85('0xe'),'acceptSuggestion','sw'),this[_0x2f85('0x42')][_0x2f85('0x2c')](_0x2f85('0x3b'))['to'](this,'canAccept'),this[_0x2f85('0x3a')]=this[_0x2f85('0x50')](_0x4fa08f(_0x3da6b1,_0x2f85('0x43')),_0x387611['cancel'],_0x2f85('0x15'),_0x2f85('0x33'),'sw'),this[_0x2f85('0x3a')][_0x2f85('0x2c')](_0x2f85('0x3b'))['to'](this,_0x2f85('0x1c')),this['userView']=new _0x26637c(_0x3da6b1,this[_0x2f85('0x4')][_0x2f85('0xb')],this[_0x2f85('0x25')]()),this['userView'][_0x2f85('0x1')]({'attributes':{'class':[_0x2f85('0x35'),_0x2f85('0x19')]}}),this[_0x2f85('0x2a')](this[_0x2f85('0x1f')]());}['getTemplate'](){const _0x1a1313=this[_0x2f85('0x4a')],_0xb4ace5=[{'tag':_0x2f85('0x24'),'attributes':{'class':[_0x2f85('0x17'),'ck-annotation__info']},'children':[{'tag':_0x2f85('0x2e'),'children':[{'text':this[_0x2f85('0x31')][_0x2f85('0x4f')]}],'attributes':{'class':[_0x2f85('0x45'),_0x2f85('0x1d')]}},{'tag':'time','attributes':{'datetime':_0x1a1313['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a1313['to'](_0x2f85('0x4e'),_0x52d329=>this['_config'][_0x2f85('0x30')](_0x52d329))}]}]},{'tag':_0x2f85('0x24'),'attributes':{'class':['ck-suggestion__actions',_0x2f85('0x47')]},'children':[this[_0x2f85('0x42')],this[_0x2f85('0x3a')]]},{'tag':_0x2f85('0x24'),'attributes':{'class':[_0x2f85('0x7')]}}];this['_model']['isExternal']&&_0xb4ace5['push']({'tag':_0x2f85('0x24'),'attributes':{'class':[_0x2f85('0x23')]},'children':[{'text':this[_0x2f85('0x28')]()}]});const _0x1722d7={'tag':_0x2f85('0x24'),'attributes':{'class':[_0x2f85('0x5'),_0x1a1313['if'](_0x2f85('0x3d'),_0x2f85('0x2b')),_0x1a1313['to']('type',_0x3a0128=>_0x2f85('0x21')+_0x3a0128),this[_0x2f85('0x32')][_0x2f85('0x38')]&&_0x2f85('0x49')],'data-suggestion-id':this[_0x2f85('0x4')]['id'],'data-thread-id':this[_0x2f85('0x4')][_0x2f85('0x1a')]['id'],'data-author-id':this[_0x2f85('0x4')]['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x2f85('0x24'),'attributes':{'class':[_0x2f85('0x4d'),_0x2f85('0x41')]},'children':[this[_0x2f85('0x31')],{'tag':'div','attributes':{'class':['ck-suggestion__main',_0x2f85('0xf')]},'children':_0xb4ace5}]}]};return this['commentsListView']&&this[_0x2f85('0x1e')]&&_0x1722d7['children'][_0x2f85('0xd')](this[_0x2f85('0x2d')],this[_0x2f85('0x1e')]),_0x1722d7;}[_0x2f85('0x6')](){super[_0x2f85('0x6')](),this['_descriptionElement']=this[_0x2f85('0x10')][_0x2f85('0x20')](_0x2f85('0x3c')),this[_0x2f85('0x2')][_0x2f85('0x40')]=this[_0x2f85('0x8')],this['on'](_0x2f85('0x3f'),(_0x2c3e2d,_0x4ee725,_0x2e1df8)=>{this['_descriptionElement'][_0x2f85('0x40')]=_0x2e1df8;});}[_0x2f85('0x50')](_0x2af5e5,_0x110f5b,_0xa27ecd,_0x4fca2e,_0x3cb709){const _0x4f007f=new _0x2674b2(this[_0x2f85('0x3e')]);return _0x4f007f[_0x2f85('0x39')]({'label':_0x2af5e5,'icon':_0x110f5b,'tooltip':!0x0,'tooltipPosition':_0x3cb709}),_0x4f007f[_0x2f85('0x1')]({'attributes':{'class':_0xa27ecd}}),_0x4f007f['on'](_0x2f85('0x3'),()=>{this['fire'](_0x4fca2e,this[_0x2f85('0x4')]['id']);}),_0x4f007f;}['getExternalSuggestionNote'](){return _0x2f85('0x16')===this[_0x2f85('0x4')][_0x2f85('0x34')][_0x2f85('0x51')][_0x2f85('0x22')]?_0x4fa08f(this[_0x2f85('0x3e')],_0x2f85('0x36')):_0x4fa08f(this[_0x2f85('0x3e')],_0x2f85('0xa'));}[_0x2f85('0x25')](){return this[_0x2f85('0x4')][_0x2f85('0x2f')]?_0x2f85('0x16')===this['_model'][_0x2f85('0x34')][_0x2f85('0x51')][_0x2f85('0x22')]?_0x4fa08f(this[_0x2f85('0x3e')],_0x2f85('0x27'),this[_0x2f85('0x4')][_0x2f85('0x48')][_0x2f85('0x4f')]):_0x4fa08f(this[_0x2f85('0x3e')],_0x2f85('0x11'),this[_0x2f85('0x4')][_0x2f85('0x48')]['name']):null;}}function ns(_0x2575cb,_0x445ec2){let _0x5c7ca9='';return _0x5c7ca9+=_0x2575cb['split']('*')[_0x2f85('0x12')]((_0x2af999,_0x5c2304)=>_0x5c2304%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+os(_0x2af999)+_0x2f85('0x4c'):os(_0x2af999))[_0x2f85('0x44')](''),_0x445ec2&&(_0x5c7ca9+=_0x2f85('0x14')+_0x445ec2[_0x2f85('0x29')]+_0x2f85('0x0')+_0x445ec2[_0x2f85('0x46')]+'\x22></span>'),_0x5c7ca9;}function os(_0x282bc0){const _0x3856bc=document[_0x2f85('0x9')](_0x2f85('0x2e'));return _0x3856bc[_0x2f85('0xc')]=_0x282bc0,_0x3856bc[_0x2f85('0x40')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x29a4a5,_0x71caf0,_0x1a1910){const t=_0x29a4a5['t'];switch(_0x71caf0){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1a1910);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1a1910);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1a1910);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1a1910);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1a1910);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x1a1910);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1a1910);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\x20image\x20URL');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a1910);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1a1910);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1a1910);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1a1910);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1a1910);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1a1910);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1a1910);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1a1910);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1a1910);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1a1910);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1a1910);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1a1910);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1a1910);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1a1910);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x1a1910);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1a1910);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1a1910);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1a1910);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1a1910);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1a1910);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1a1910);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1a1910);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1a1910);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1a1910);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1a1910);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1a1910);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1a1910);case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x1a1910);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1a1910);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1a1910);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x1a1910);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1a1910);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x1a1910);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1a1910);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1a1910);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1a1910);default:return _0x71caf0;}}
23
+ export function getTranslation(_0x523604,_0x5bdbd5,_0xd50920){const t=_0x523604['t'];switch(_0x5bdbd5){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0xd50920);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xd50920);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xd50920);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xd50920);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xd50920);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0xd50920);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xd50920);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\x20image\x20URL');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd50920);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xd50920);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xd50920);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xd50920);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xd50920);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xd50920);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xd50920);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xd50920);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xd50920);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xd50920);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xd50920);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xd50920);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xd50920);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xd50920);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0xd50920);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xd50920);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xd50920);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xd50920);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xd50920);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xd50920);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0xd50920);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xd50920);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xd50920);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xd50920);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xd50920);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xd50920);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xd50920);case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0xd50920);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xd50920);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xd50920);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0xd50920);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xd50920);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0xd50920);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xd50920);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xd50920);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xd50920);default:return _0x5bdbd5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3aca=['sort','isMultiRange','add','createRange','getMarkers','end','createPositionBefore','deletion','isTouching','\x20[color\x20','replace','from','map','isObject','createPositionAt','isIntersecting','change','getRange','isInContent','length','push','type','join','splice','value','color','start','createPositionAfter','schema','execute'];(function(_0x1aba86,_0x3aca20){const _0x18374f=function(_0x471f46){while(--_0x471f46){_0x1aba86['push'](_0x1aba86['shift']());}};_0x18374f(++_0x3aca20);}(_0x3aca,0xd4));const _0x1837=function(_0x1aba86,_0x3aca20){_0x1aba86=_0x1aba86-0x0;let _0x18374f=_0x3aca[_0x1aba86];return _0x18374f;};export function normalizeDescription(_0x280c90){return Array['isArray'](_0x280c90)||(_0x280c90=[_0x280c90]),_0x280c90[_0x1837('0xa')](_0x55f895=>{const _0x1a4a0=_0x55f895['content'][_0x1837('0x8')](/\*/g,''),_0x19f6fc=_0x55f895['color']?_0x1837('0x7')+_0x55f895[_0x1837('0x17')][_0x1837('0x16')]+']':'';return'['+_0x55f895['type']+']\x20'+_0x1a4a0+_0x19f6fc;})[_0x1837('0x14')](';\x20');}export function sortSuggestions(_0x96f06b){return _0x96f06b[_0x1837('0x1c')]((_0x465d8c,_0x5124cf)=>_0x1837('0x5')==_0x465d8c[_0x1837('0x13')]&&_0x1837('0x5')!=_0x5124cf[_0x1837('0x13')]?-0x1:_0x1837('0x5')!=_0x465d8c[_0x1837('0x13')]&&_0x1837('0x5')==_0x5124cf['type']?0x1:0x0);}export function getSelectedSuggestions(_0x2bbb62,_0x175695){const _0xbd41e7=Array[_0x1837('0x9')](_0x2bbb62['getRanges']()),_0x535a28=new Set();for(const _0x42f94d of _0x175695)if(_0x42f94d[_0x1837('0x10')])for(const _0xefea9f of _0xbd41e7)for(const _0x1af98f of _0x42f94d[_0x1837('0x2')]()){const _0x3a3732=_0x1af98f[_0x1837('0xf')]();(_0xefea9f[_0x1837('0xd')](_0x3a3732)||_0x2bbb62['isCollapsed']&&!_0x42f94d[_0x1837('0x1d')]&&_0x42f94d['next']&&_0x3a3732[_0x1837('0x3')][_0x1837('0x6')](_0xefea9f[_0x1837('0x18')]))&&_0x535a28[_0x1837('0x0')](_0x42f94d);}return _0x535a28;}export function getRangesOfBlockGroups(_0x77a04,_0x2df8f3){let _0x42769e,_0x2d1530=0x0;const _0x1890f7=[],_0x4dd36d=_0x2df8f3[_0x1837('0x1a')];for(;_0x2d1530<_0x77a04[_0x1837('0x11')];){const _0x4b32bb=_0x77a04[_0x2d1530],_0x3161b9=_0x77a04[_0x2d1530+0x1];_0x42769e||(_0x42769e=_0x2df8f3[_0x1837('0x4')](_0x4b32bb)),oo(_0x2df8f3,_0x4b32bb,_0x3161b9)||(_0x1890f7[_0x1837('0x12')](_0x2df8f3[_0x1837('0x1')](_0x42769e,_0x4dd36d[_0x1837('0xb')](_0x4b32bb)?_0x2df8f3[_0x1837('0x19')](_0x4b32bb):_0x2df8f3[_0x1837('0xc')](_0x4b32bb,_0x1837('0x3')))),_0x42769e=null),_0x2d1530++;}return _0x1890f7;}function oo(_0x54cda9,_0x27c0bd,_0xd3d7b){if(!_0xd3d7b)return!0x1;const _0x35d3db=_0x54cda9[_0x1837('0x19')](_0x27c0bd),_0x16d599=_0x54cda9[_0x1837('0x4')](_0xd3d7b);return _0x35d3db['isTouching'](_0x16d599);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x3a26a2,_0x1fa046,_0x283165){for(;_0x283165[_0x1837('0x11')];){const _0x174b2b=_0x283165[_0x1837('0x15')](0x0,0x64);_0x3a26a2[_0x1837('0xe')](()=>{for(const _0x549d94 of _0x174b2b)_0x549d94[_0x1837('0x10')]&&_0x1fa046[_0x1837('0x1b')](_0x549d94['id']);});}}
23
+ const _0x6bf1=['createRange','isTouching','value','length','type','getRanges','isObject','createPositionAfter','from','getRange','deletion','isMultiRange','isInContent','end','createPositionBefore','color','start','next','getMarkers','add','execute','schema','join','map','\x20[color\x20','isCollapsed','content'];(function(_0x309749,_0x6bf12a){const _0x4bccb2=function(_0x512c98){while(--_0x512c98){_0x309749['push'](_0x309749['shift']());}};_0x4bccb2(++_0x6bf12a);}(_0x6bf1,0x130));const _0x4bcc=function(_0x309749,_0x6bf12a){_0x309749=_0x309749-0x0;let _0x4bccb2=_0x6bf1[_0x309749];return _0x4bccb2;};export function normalizeDescription(_0x5c8d69){return Array['isArray'](_0x5c8d69)||(_0x5c8d69=[_0x5c8d69]),_0x5c8d69[_0x4bcc('0x10')](_0x205519=>{const _0x1a64a2=_0x205519[_0x4bcc('0x13')]['replace'](/\*/g,''),_0x2cb04a=_0x205519[_0x4bcc('0x8')]?_0x4bcc('0x11')+_0x205519[_0x4bcc('0x8')][_0x4bcc('0x16')]+']':'';return'['+_0x205519[_0x4bcc('0x18')]+']\x20'+_0x1a64a2+_0x2cb04a;})[_0x4bcc('0xf')](';\x20');}export function sortSuggestions(_0x274978){return _0x274978['sort']((_0x3b65e8,_0x652e4e)=>_0x4bcc('0x3')==_0x3b65e8[_0x4bcc('0x18')]&&'deletion'!=_0x652e4e['type']?-0x1:_0x4bcc('0x3')!=_0x3b65e8[_0x4bcc('0x18')]&&'deletion'==_0x652e4e[_0x4bcc('0x18')]?0x1:0x0);}export function getSelectedSuggestions(_0x1ad5dc,_0x320eb8){const _0x5d510d=Array[_0x4bcc('0x1')](_0x1ad5dc[_0x4bcc('0x19')]()),_0x4d76c2=new Set();for(const _0x4183a5 of _0x320eb8)if(_0x4183a5[_0x4bcc('0x5')])for(const _0x183d0f of _0x5d510d)for(const _0x313018 of _0x4183a5[_0x4bcc('0xb')]()){const _0x22deb3=_0x313018[_0x4bcc('0x2')]();(_0x183d0f['isIntersecting'](_0x22deb3)||_0x1ad5dc[_0x4bcc('0x12')]&&!_0x4183a5[_0x4bcc('0x4')]&&_0x4183a5[_0x4bcc('0xa')]&&_0x22deb3[_0x4bcc('0x6')][_0x4bcc('0x15')](_0x183d0f[_0x4bcc('0x9')]))&&_0x4d76c2[_0x4bcc('0xc')](_0x4183a5);}return _0x4d76c2;}export function getRangesOfBlockGroups(_0x2be67b,_0x1f5c92){let _0x4c859c,_0x39b556=0x0;const _0x2bb6f9=[],_0x284e1f=_0x1f5c92[_0x4bcc('0xe')];for(;_0x39b556<_0x2be67b[_0x4bcc('0x17')];){const _0x1db959=_0x2be67b[_0x39b556],_0x54fe52=_0x2be67b[_0x39b556+0x1];_0x4c859c||(_0x4c859c=_0x1f5c92[_0x4bcc('0x7')](_0x1db959)),oo(_0x1f5c92,_0x1db959,_0x54fe52)||(_0x2bb6f9['push'](_0x1f5c92[_0x4bcc('0x14')](_0x4c859c,_0x284e1f[_0x4bcc('0x1a')](_0x1db959)?_0x1f5c92['createPositionAfter'](_0x1db959):_0x1f5c92['createPositionAt'](_0x1db959,_0x4bcc('0x6')))),_0x4c859c=null),_0x39b556++;}return _0x2bb6f9;}function oo(_0x3178a3,_0x256373,_0x1cc509){if(!_0x1cc509)return!0x1;const _0x49a456=_0x3178a3[_0x4bcc('0x0')](_0x256373),_0x45485e=_0x3178a3[_0x4bcc('0x7')](_0x1cc509);return _0x49a456['isTouching'](_0x45485e);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x759f69,_0x15bc0d,_0x50bbe7){for(;_0x50bbe7[_0x4bcc('0x17')];){const _0x3ed523=_0x50bbe7['splice'](0x0,0x64);_0x759f69['change'](()=>{for(const _0x266b92 of _0x3ed523)_0x266b92['isInContent']&&_0x15bc0d[_0x4bcc('0xd')](_0x266b92['id']);});}}