@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231201.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 (68) hide show
  1. package/CHANGELOG.md +15 -15
  2. package/README.md +1 -1
  3. package/build/track-changes.js +1 -1
  4. package/package.json +3 -3
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.js +1 -1
  7. package/src/commands/executeonallsuggestionscommand.js +1 -1
  8. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  9. package/src/commands/trackchangescommand.js +1 -1
  10. package/src/integrations/aiassistant.js +1 -1
  11. package/src/integrations/alignment.js +1 -1
  12. package/src/integrations/basicstyles.js +1 -1
  13. package/src/integrations/blockquote.js +1 -1
  14. package/src/integrations/ckbox.js +1 -1
  15. package/src/integrations/codeblock.js +1 -1
  16. package/src/integrations/comments.js +1 -1
  17. package/src/integrations/deletecommand.js +1 -1
  18. package/src/integrations/documentlist.js +1 -1
  19. package/src/integrations/documentlistproperties.js +1 -1
  20. package/src/integrations/entercommand.js +1 -1
  21. package/src/integrations/findandreplace.js +1 -1
  22. package/src/integrations/font.js +1 -1
  23. package/src/integrations/formatpainter.js +1 -1
  24. package/src/integrations/heading.js +1 -1
  25. package/src/integrations/highlight.js +1 -1
  26. package/src/integrations/horizontalline.js +1 -1
  27. package/src/integrations/htmlembed.js +1 -1
  28. package/src/integrations/image.js +1 -1
  29. package/src/integrations/imagereplace.js +1 -1
  30. package/src/integrations/imagestyle.js +1 -1
  31. package/src/integrations/importword.js +1 -1
  32. package/src/integrations/indent.js +1 -1
  33. package/src/integrations/inputcommand.js +1 -1
  34. package/src/integrations/link.js +1 -1
  35. package/src/integrations/list.js +1 -1
  36. package/src/integrations/listproperties.js +1 -1
  37. package/src/integrations/mediaembed.js +1 -1
  38. package/src/integrations/mention.js +1 -1
  39. package/src/integrations/pagebreak.js +1 -1
  40. package/src/integrations/paragraph.js +1 -1
  41. package/src/integrations/removeformat.js +1 -1
  42. package/src/integrations/restrictededitingmode.js +1 -1
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.js +1 -1
  48. package/src/integrations/tableclipboard.js +1 -1
  49. package/src/integrations/tablecolumnresize.js +1 -1
  50. package/src/integrations/tableheadings.js +1 -1
  51. package/src/integrations/tablemergesplit.js +1 -1
  52. package/src/integrations/tableofcontents.js +1 -1
  53. package/src/integrations/tableproperties.js +1 -1
  54. package/src/integrations/template.js +1 -1
  55. package/src/integrations/title.js +1 -1
  56. package/src/integrations/undo.js +1 -1
  57. package/src/integrations/utils.js +1 -1
  58. package/src/suggestion.js +1 -1
  59. package/src/suggestiondescriptionfactory.js +1 -1
  60. package/src/trackchanges.js +1 -1
  61. package/src/trackchangesdata.js +1 -1
  62. package/src/trackchangesediting.js +1 -1
  63. package/src/trackchangesui.js +1 -1
  64. package/src/ui/suggestioncontroller.js +1 -1
  65. package/src/ui/view/basesuggestionthreadview.js +1 -1
  66. package/src/ui/view/suggestionthreadview.js +1 -1
  67. package/src/utils/common-translations.js +1 -1
  68. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4072=['_disableComments','plugins','TrackChangesEditing','_suggestionToController','size','commandName','unbind','Track\x20changes','some','_handleSuggestionControllerDelayed','switchbutton','Accept\x20all\x20suggestions','getAllAdjacentSuggestions','execute','_initializeController','createAnnotationView','getJoined','Discard\x20all\x20selected\x20suggestions','define','isDirty','innerView','_destroyController','trackChanges','head','config','stopListening','change:previous','push','lowest','getDescriptions','editing','trackChanges.disableComments','Discard\x20all\x20suggestions','delete','_descriptionFactory','buttonView','componentFactory','reduce','separator','actionView','createAnnotation','add','pluginName','_bindAnnotationToEditors','isEnabled','comments.maxCommentsWhenCollapsed','_handleControllerBuffer','CommentsRepository','suggestion-','addSourceCollector','type','value','TrackChangesUI','destroy','length','mainView','Accept\x20all\x20selected\x20suggestions','editor','discardButton','init','bind','get','acceptAllSuggestions','SuggestionThreadView','discardSelectedSuggestions','_refreshActiveMarkers','view','refreshSelectedViews','isOn','_createUIButton','button','Annotations','getByInnerView','clear','toMany','getFirstRange','getMarkers','filter','source','values','suggestionChanged','hasSuggestion','has','createCommentThreadController','acceptSelectedSuggestions','listenTo','_updateController','activeMarkers','descriptionParts','isMultiRange','locale','arrowView','model','set','CommentView','comments','commentThread','isInContent','from','previous','comments.maxCommentCharsWhenCollapsed','getRanges','requires','commands','EditorAnnotations','_viewToController','acceptButton','comments.editorConfig','_annotationViews','focus','CommentsUI'];(function(_0x43bd06,_0x4072d6){const _0xbf916c=function(_0x1a289c){while(--_0x1a289c){_0x43bd06['push'](_0x43bd06['shift']());}};_0xbf916c(++_0x4072d6);}(_0x4072,0x180));const _0xbf91=function(_0x43bd06,_0x4072d6){_0x43bd06=_0x43bd06-0x0;let _0xbf916c=_0x4072[_0x43bd06];return _0xbf916c;};import{Plugin as _0x1870fb}from'ckeditor5/src/core';import{Collection as _0x2ffbf7}from'ckeditor5/src/utils';import{Model as _0x45152c,SplitButtonView as _0x327629,createDropdown as _0xb5fecf,addListToDropdown as _0x319c63}from'ckeditor5/src/ui';import{Users as _0x2509e0,getDateTimeFormatter as _0x25d439,getAllMarkersDomElementsSorted as _0x6a4851}from'ckeditor5-collaboration/src/collaboration-core';import _0x565b17 from'./trackchangesediting';import _0x1c758c from'./ui/suggestioncontroller';import _0x39307a from'./ui/view/suggestionthreadview';import{getTranslation as _0x47ca74}from'./utils/common-translations';import _0x4f7eba from'../theme/icons/track-changes.svg';export default class d extends _0x1870fb{static get[_0xbf91('0x33')](){return[_0x565b17,_0x2509e0,_0xbf91('0x6b'),_0xbf91('0x14'),_0xbf91('0x35')];}static get[_0xbf91('0x66')](){return _0xbf91('0x1');}constructor(_0x17767d){super(_0x17767d),this[_0xbf91('0x3f')]=new Map(),this[_0xbf91('0x36')]=new Map(),this[_0xbf91('0x39')]=new Map(),this[_0xbf91('0x6a')]=new Map();const _0x131942=this[_0xbf91('0x6')][_0xbf91('0x54')];_0x131942[_0xbf91('0x4e')]('trackChanges.SuggestionThreadView',_0x39307a),_0x131942[_0xbf91('0x4e')](_0xbf91('0x5b'),!0x1),this[_0xbf91('0x3c')]=_0x131942[_0xbf91('0xa')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xba97c9,_0x2b4509){0x0===this['_handleControllerBuffer'][_0xbf91('0x40')]&&setTimeout(()=>{for(const [_0x2d9ded,_0x47cd1b]of this[_0xbf91('0x6a')]){const _0x1b81fd=this['_suggestionToController'][_0xbf91('0x1f')](_0x2d9ded);_0x1b81fd||_0x47cd1b?_0x1b81fd&&_0x47cd1b&&this[_0xbf91('0x51')](_0x2d9ded):this[_0xbf91('0x4a')](_0x2d9ded);}this[_0xbf91('0x6')][_0xbf91('0x3d')]['get']('EditorAnnotations')[_0xbf91('0x10')](),this[_0xbf91('0xe')](),this[_0xbf91('0x6a')][_0xbf91('0x16')]();},0xa),this[_0xbf91('0x6a')][_0xbf91('0x2a')](_0xba97c9,_0x2b4509);}[_0xbf91('0x8')](){const _0x40dc46=this['editor'],_0x547f9e=_0x40dc46[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e')),_0x48be0f=_0x40dc46['plugins']['get'](_0xbf91('0x14')),_0x4abfb4=_0x40dc46[_0xbf91('0x3d')][_0xbf91('0xa')]('EditorAnnotations'),_0x4e06ad=_0x40dc46['plugins']['get'](_0xbf91('0x6b'));_0x40dc46['ui'][_0xbf91('0x60')]['add'](_0xbf91('0x52'),_0x482412=>this['_createUIButton'](_0x482412)),_0x4abfb4[_0xbf91('0x6d')](()=>{const _0x433c09=[];for(const [_0x1bfc24,_0x206dda]of Array[_0xbf91('0x2f')](this[_0xbf91('0x3f')])){const _0x23ff33=_0x1bfc24[_0xbf91('0x48')](),_0x492866=[];for(const _0x3cac1f of _0x23ff33){if(!_0x3cac1f[_0xbf91('0x2e')])continue;if(_0x3cac1f[_0xbf91('0x26')]){_0x492866['push'](..._0x3cac1f[_0xbf91('0x32')]());continue;}const _0x3522f8=_0x3cac1f[_0xbf91('0x18')]();if(_0x492866[_0xbf91('0x3')]>0x0){const _0x36d090=_0x492866[0x0][_0xbf91('0x4c')](_0x3522f8);if(_0x36d090){_0x492866[0x0]=_0x36d090;continue;}}_0x492866[_0xbf91('0x57')](_0x3522f8);}_0x433c09[_0xbf91('0x57')]([_0x206dda[_0xbf91('0xf')],_0x492866]);}return _0x433c09;}),this[_0xbf91('0x22')](_0x547f9e,'suggestionLoaded',(_0x493769,_0x350b68)=>{this[_0xbf91('0x22')](_0x350b68,_0xbf91('0x56'),(_0x2cc045,_0x4dbe35,_0x2b4429,_0x38587a)=>{_0x350b68[_0xbf91('0x2e')]&&(null==_0x2b4429?(this[_0xbf91('0x23')](_0x38587a[_0xbf91('0x53')]),this[_0xbf91('0x45')](_0x350b68,!0x1)):(this[_0xbf91('0x23')](_0x2b4429[_0xbf91('0x53')]),null==_0x38587a&&this['_handleSuggestionControllerDelayed'](_0x350b68,!0x0)));}),null!==_0x350b68[_0xbf91('0x30')]?this[_0xbf91('0x23')](_0x350b68['head']):this[_0xbf91('0x45')](_0x350b68,!0x1);}),this['listenTo'](_0x547f9e,'suggestionUnloaded',(_0x343a1c,_0x3fe60a,_0x1c87ad)=>{this[_0xbf91('0x55')](_0x3fe60a,_0xbf91('0x56')),this[_0xbf91('0x6a')][_0xbf91('0x5d')](_0x3fe60a),this[_0xbf91('0x3f')][_0xbf91('0x1f')](_0x3fe60a)&&this[_0xbf91('0x51')](_0x3fe60a),_0x1c87ad&&this['_updateController'](_0x1c87ad[_0xbf91('0x53')]);}),this['listenTo'](_0x547f9e,_0xbf91('0x1d'),(_0x494de1,_0x327d2e)=>{this[_0xbf91('0x23')](_0x327d2e);}),this['listenTo'](_0x48be0f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this[_0xbf91('0x22')](_0x4e06ad,'addComment',(_0x1ff507,{threadId:_0x5805cc,isFromAdapter:_0x22aebd})=>{if(_0x22aebd||!_0x547f9e[_0xbf91('0x1e')](_0x5805cc))return;const _0x33e1d3=_0x547f9e['getSuggestion'](_0x5805cc);this[_0xbf91('0x3f')]['get'](_0x33e1d3)[_0xbf91('0xf')][_0xbf91('0x3a')]();},{'priority':_0xbf91('0x58')});}['_refreshActiveMarkers'](){const _0xa8b915=this[_0xbf91('0x6')]['plugins'][_0xbf91('0xa')](_0xbf91('0x14')),_0x1ac754=this[_0xbf91('0x6')][_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e')),_0x3b0bc2=Array[_0xbf91('0x2f')](_0xa8b915['activeAnnotations'],_0x637727=>_0x637727[_0xbf91('0x50')])[_0xbf91('0x1a')](_0x1c5f30=>this['_viewToController'][_0xbf91('0x1f')](_0x1c5f30)),_0x2d2484=[];for(const _0x16281d of _0x3b0bc2){const _0x35576a=this['_viewToController'][_0xbf91('0xa')](_0x16281d)['model'][_0xbf91('0x48')]();_0x2d2484['push'](..._0x35576a[_0xbf91('0x61')]((_0x552242,_0x2ada02)=>[..._0x552242,..._0x2ada02['getMarkerNames']()],[]));}_0x1ac754[_0xbf91('0x24')]=_0x2d2484;}[_0xbf91('0x12')](_0x1c9bdb){const _0x332930=_0xb5fecf(_0x1c9bdb,_0x327629),_0xf15727=this[_0xbf91('0x6')][_0xbf91('0x34')][_0xbf91('0xa')]('trackChanges'),_0x20f1a8=_0x47ca74(_0x1c9bdb,_0xbf91('0x43'));_0x332930[_0xbf91('0x5f')][_0xbf91('0x2a')]({'tooltip':_0x20f1a8,'label':_0x20f1a8,'icon':_0x4f7eba}),_0x332930['buttonView'][_0xbf91('0x9')](_0xbf91('0x11'))['to'](_0xf15727,_0xbf91('0x0')),_0x332930[_0xbf91('0x5f')]['on'](_0xbf91('0x49'),()=>{_0xf15727[_0xbf91('0x49')](),this[_0xbf91('0x6')][_0xbf91('0x5a')][_0xbf91('0xf')]['focus']();});const _0x3b25cb=new _0x2ffbf7(),_0x3cadaf=[{'type':_0xbf91('0x46'),'model':{'withText':!0x0,'label':_0x20f1a8,'commandName':_0xbf91('0x52')}},{'type':_0xbf91('0x62')},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x47')),'commandName':_0xbf91('0xb')}},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x5')),'commandName':_0xbf91('0x21')}},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x5c')),'commandName':'discardAllSuggestions'}},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x4d')),'commandName':_0xbf91('0xd')}}];for(const _0x2ec66d of _0x3cadaf){let _0x51efd0={'type':_0xbf91('0x62')};if(_0x2ec66d[_0xbf91('0x29')]){const _0x2e71c0=new _0x45152c(_0x2ec66d['model']),_0x2c3bb8=this[_0xbf91('0x6')][_0xbf91('0x34')]['get'](_0x2e71c0['commandName']);_0x2e71c0['bind'](_0xbf91('0x11'),_0xbf91('0x68'))['to'](_0x2c3bb8,_0xbf91('0x0'),_0xbf91('0x68')),_0x51efd0={'type':_0x2ec66d[_0xbf91('0x6e')],'model':_0x2e71c0};}_0x3b25cb[_0xbf91('0x65')](_0x51efd0);}_0x319c63(_0x332930,_0x3b25cb);const _0x15da49=_0x3cadaf['filter'](_0x4759ed=>null!=_0x4759ed[_0xbf91('0x29')])['map'](_0x344317=>this['editor'][_0xbf91('0x34')][_0xbf91('0xa')](_0x344317[_0xbf91('0x29')][_0xbf91('0x41')])),_0x4c78f3=_0x332930[_0xbf91('0x5f')];return _0x4c78f3[_0xbf91('0x63')][_0xbf91('0x42')]('isEnabled'),_0x4c78f3['arrowView'][_0xbf91('0x42')](_0xbf91('0x68')),_0x4c78f3[_0xbf91('0x63')][_0xbf91('0x9')](_0xbf91('0x68'))['to'](_0xf15727,_0xbf91('0x68')),_0x4c78f3[_0xbf91('0x28')][_0xbf91('0x9')](_0xbf91('0x68'))[_0xbf91('0x17')](_0x15da49,_0xbf91('0x68'),(..._0x18c311)=>_0x18c311[_0xbf91('0x44')](_0x44b954=>_0x44b954)),_0x332930['on'](_0xbf91('0x49'),_0x5c3169=>{this[_0xbf91('0x6')]['execute'](_0x5c3169[_0xbf91('0x1b')]['commandName']),this[_0xbf91('0x6')]['editing']['view'][_0xbf91('0x3a')]();}),_0x332930;}['_initializeController'](_0x402ef7){const _0x2c4a4f=this[_0xbf91('0x6')],_0x346360=_0x2c4a4f['config'],_0x25ad5c=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x14')),_0x1aee1d=_0x2c4a4f['plugins']['get']('CommentsRepository'),_0x3e1187=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')]('EditorAnnotations'),_0x352af0=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0x2509e0)['me'],_0x494ace=_0x346360['get'](_0xbf91('0x52'))[_0xbf91('0xc')],{CommentsListView:_0x23726f,CommentThreadInputView:_0x2d5c5e}=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3b'));let _0x362a82,_0xed0bfc;this['_annotationViews'][_0xbf91('0x1f')](_0x402ef7['id'])?(_0xed0bfc=this[_0xbf91('0x39')][_0xbf91('0xa')](_0x402ef7['id']),_0x362a82=_0xed0bfc[_0xbf91('0x4')]):(_0x362a82=new _0x494ace(_0x2c4a4f[_0xbf91('0x27')],_0x402ef7,_0x352af0,{'disableComments':this[_0xbf91('0x3c')],'editorConfig':_0x346360[_0xbf91('0xa')](_0xbf91('0x38')),'maxCommentsWhenCollapsed':_0x346360[_0xbf91('0xa')](_0xbf91('0x69')),'maxThreadTotalWeight':_0x346360[_0xbf91('0xa')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x346360[_0xbf91('0xa')](_0xbf91('0x31')),'formatDateTime':_0x25d439(_0x346360['get'](_0xbf91('0x27'))),'CommentView':_0x346360[_0xbf91('0xa')](_0xbf91('0x2c'))[_0xbf91('0x2b')],'CommentsListView':_0x23726f,'CommentThreadInputView':_0x2d5c5e}),_0x362a82[_0xbf91('0x37')]['on'](_0xbf91('0x49'),()=>{_0x2c4a4f[_0xbf91('0x5a')][_0xbf91('0xf')]['focus']();}),_0x362a82[_0xbf91('0x7')]['on'](_0xbf91('0x49'),()=>{_0x2c4a4f[_0xbf91('0x5a')][_0xbf91('0xf')][_0xbf91('0x3a')]();}),_0xed0bfc=_0x25ad5c[_0xbf91('0x4b')](this[_0xbf91('0x6')][_0xbf91('0x27')],_0x362a82),_0xed0bfc[_0xbf91('0x9')](_0xbf91('0x4f'))['to'](_0x362a82,'isDirty'),_0xed0bfc[_0xbf91('0x9')]('length')['to'](_0x362a82),_0xed0bfc[_0xbf91('0x9')](_0xbf91('0x6e'))['to'](_0x362a82,_0xbf91('0x6e'),_0x50433c=>_0xbf91('0x6c')+_0x50433c),this[_0xbf91('0x39')][_0xbf91('0x2a')](_0x402ef7['id'],_0xed0bfc));const _0x5ef444=_0x1aee1d[_0xbf91('0x20')](_0x402ef7[_0xbf91('0x2d')],_0x362a82),_0x5068da=new _0x1c758c(_0x2c4a4f,_0x402ef7,_0x362a82,_0x5ef444),_0x27ebeb=_0x402ef7['getAllAdjacentSuggestions']()[_0xbf91('0x1a')](_0x406f0d=>_0x406f0d[_0xbf91('0x2e')]);_0x362a82['descriptionParts']=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e'))['_descriptionFactory'][_0xbf91('0x59')](_0x27ebeb),this[_0xbf91('0x3f')]['set'](_0x402ef7,_0x5068da),this['_viewToController']['set'](_0x362a82,_0x5068da);const _0x1350de=_0x25ad5c[_0xbf91('0x64')]({'view':_0xed0bfc,'target':()=>{const _0x5e3054=[],_0x221456=_0x402ef7[_0xbf91('0x48')]()[_0xbf91('0x1a')](_0x587a3e=>_0x587a3e['isInContent']);for(const _0x214bad of _0x221456)_0x5e3054[_0xbf91('0x57')](..._0x214bad[_0xbf91('0x19')]());return _0x6a4851(_0x2c4a4f[_0xbf91('0x5a')],_0x5e3054);},'type':()=>_0xbf91('0x6c')+_0x5068da[_0xbf91('0xf')][_0xbf91('0x6e')]});_0x1aee1d[_0xbf91('0x67')](_0x362a82,_0x1350de),_0x25ad5c['add'](_0x1350de),_0x3e1187['registerAnnotation'](_0x1350de);}['_destroyController'](_0x155674){const _0x24f051=this[_0xbf91('0x6')][_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x6b')),_0x2eb0bf=this[_0xbf91('0x6')]['plugins'][_0xbf91('0xa')]('Annotations'),_0x519d1b=this[_0xbf91('0x3f')]['get'](_0x155674),_0x276a23=_0x519d1b[_0xbf91('0xf')],_0x289191=_0x2eb0bf[_0xbf91('0x15')](_0x276a23);_0x24f051['_unbindEditors'](_0x276a23),_0x289191&&_0x2eb0bf['remove'](_0x289191),this[_0xbf91('0x3f')][_0xbf91('0x5d')](_0x155674),this['_viewToController'][_0xbf91('0x5d')](_0x276a23),_0x519d1b[_0xbf91('0x2')]();}[_0xbf91('0x23')](_0x3aac47){if(!_0x3aac47[_0xbf91('0x2e')]||!this['_suggestionToController'][_0xbf91('0x1f')](_0x3aac47))return;const _0x224db2=this[_0xbf91('0x6')][_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e')),_0x1bcc93=this['_suggestionToController'][_0xbf91('0xa')](_0x3aac47),_0x2f062c=_0x3aac47[_0xbf91('0x48')]();_0x1bcc93[_0xbf91('0xf')][_0xbf91('0x25')]=_0x224db2[_0xbf91('0x5e')][_0xbf91('0x59')](_0x2f062c);}[_0xbf91('0x2')](){for(const _0x1ac099 of this['_suggestionToController']['keys']())this[_0xbf91('0x51')](_0x1ac099);for(const _0x36d644 of this[_0xbf91('0x39')][_0xbf91('0x1c')]())_0x36d644[_0xbf91('0x4')]['destroy']();super['destroy']();}}
23
+ const _0x5e00=['map','_annotationViews','comments','getJoined','EditorAnnotations','getDescriptions','discardSelectedSuggestions','from','_refreshActiveMarkers','refreshSelectedViews','suggestion-','comments.maxThreadTotalWeight','_suggestionToController','execute','requires','delete','_viewToController','config','previous','TrackChangesUI','some','activeMarkers','focus','Accept\x20all\x20suggestions','Annotations','suggestionUnloaded','_unbindEditors','isInContent','suggestionLoaded','createCommentThreadController','_updateController','isOn','addSourceCollector','SuggestionThreadView','keys','createAnnotationView','isEnabled','Discard\x20all\x20suggestions','type','registerAnnotation','editing','mainView','commands','set','destroy','pluginName','head','lowest','trackChanges.SuggestionThreadView','filter','view','editor','plugins','suggestionChanged','CommentsUI','_bindAnnotationToEditors','acceptAllSuggestions','has','descriptionParts','separator','_handleSuggestionControllerDelayed','_disableComments','Track\x20changes','comments.maxCommentCharsWhenCollapsed','define','source','unbind','CommentView','init','bind','isDirty','getRanges','hasSuggestion','reduce','value','commentThread','model','acceptSelectedSuggestions','Discard\x20all\x20selected\x20suggestions','buttonView','_initializeController','_handleControllerBuffer','size','_createUIButton','get','_descriptionFactory','listenTo','getAllAdjacentSuggestions','_destroyController','add','arrowView','clear','stopListening','discardAllSuggestions','button','getMarkers','TrackChangesEditing','locale','getByInnerView','trackChanges','discardButton','getFirstRange','length','actionView','trackChanges.disableComments','componentFactory','toMany','innerView','push','comments.maxCommentsWhenCollapsed','change:previous','values','isMultiRange','commandName','CommentsRepository'];(function(_0x1571fc,_0x5e003f){const _0x4eca55=function(_0x19149d){while(--_0x19149d){_0x1571fc['push'](_0x1571fc['shift']());}};_0x4eca55(++_0x5e003f);}(_0x5e00,0xbe));const _0x4eca=function(_0x1571fc,_0x5e003f){_0x1571fc=_0x1571fc-0x0;let _0x4eca55=_0x5e00[_0x1571fc];return _0x4eca55;};import{Plugin as _0x30b9b2}from'ckeditor5/src/core';import{Collection as _0x3a6c0d}from'ckeditor5/src/utils';import{Model as _0x59e68f,SplitButtonView as _0x2564e7,createDropdown as _0x373f18,addListToDropdown as _0x3d8a26}from'ckeditor5/src/ui';import{Users as _0x4609f7,getDateTimeFormatter as _0x5827b3,getAllMarkersDomElementsSorted as _0x397850}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e3797 from'./trackchangesediting';import _0x5c06f0 from'./ui/suggestioncontroller';import _0xd86101 from'./ui/view/suggestionthreadview';import{getTranslation as _0x20ab3b}from'./utils/common-translations';import _0x384c08 from'../theme/icons/track-changes.svg';export default class d extends _0x30b9b2{static get[_0x4eca('0x36')](){return[_0x5e3797,_0x4609f7,_0x4eca('0x27'),_0x4eca('0x40'),'EditorAnnotations'];}static get[_0x4eca('0x55')](){return _0x4eca('0x3b');}constructor(_0x4da172){super(_0x4da172),this[_0x4eca('0x34')]=new Map(),this[_0x4eca('0x38')]=new Map(),this[_0x4eca('0x29')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x158b58=this[_0x4eca('0x5b')]['config'];_0x158b58[_0x4eca('0x68')](_0x4eca('0x58'),_0xd86101),_0x158b58[_0x4eca('0x68')]('trackChanges.disableComments',!0x1),this[_0x4eca('0x65')]=_0x158b58[_0x4eca('0x9')](_0x4eca('0x1d'));}[_0x4eca('0x64')](_0x506172,_0x43e4b5){0x0===this[_0x4eca('0x6')][_0x4eca('0x7')]&&setTimeout(()=>{for(const [_0x4b4beb,_0x45bab6]of this['_handleControllerBuffer']){const _0x2940eb=this[_0x4eca('0x34')][_0x4eca('0x61')](_0x4b4beb);_0x2940eb||_0x45bab6?_0x2940eb&&_0x45bab6&&this[_0x4eca('0xd')](_0x4b4beb):this['_initializeController'](_0x4b4beb);}this['editor']['plugins'][_0x4eca('0x9')](_0x4eca('0x2c'))[_0x4eca('0x31')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x4eca('0x10')]();},0xa),this[_0x4eca('0x6')]['set'](_0x506172,_0x43e4b5);}[_0x4eca('0x6c')](){const _0x3bb42a=this[_0x4eca('0x5b')],_0x2323a0=_0x3bb42a['plugins'][_0x4eca('0x9')]('TrackChangesEditing'),_0x32dd57=_0x3bb42a[_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x40')),_0x823b5d=_0x3bb42a[_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x2c')),_0x4eae29=_0x3bb42a[_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x27'));_0x3bb42a['ui'][_0x4eca('0x1e')][_0x4eca('0xe')](_0x4eca('0x18'),_0x1b56ea=>this[_0x4eca('0x8')](_0x1b56ea)),_0x823b5d[_0x4eca('0x48')](()=>{const _0x2e708d=[];for(const [_0x47e962,_0x3ccdd6]of Array[_0x4eca('0x2f')](this[_0x4eca('0x34')])){const _0x49801d=_0x47e962[_0x4eca('0xc')](),_0x51663e=[];for(const _0x451344 of _0x49801d){if(!_0x451344[_0x4eca('0x43')])continue;if(_0x451344[_0x4eca('0x25')]){_0x51663e[_0x4eca('0x21')](..._0x451344[_0x4eca('0x6f')]());continue;}const _0x355657=_0x451344[_0x4eca('0x1a')]();if(_0x51663e[_0x4eca('0x1b')]>0x0){const _0x159a6f=_0x51663e[0x0][_0x4eca('0x2b')](_0x355657);if(_0x159a6f){_0x51663e[0x0]=_0x159a6f;continue;}}_0x51663e[_0x4eca('0x21')](_0x355657);}_0x2e708d['push']([_0x3ccdd6[_0x4eca('0x5a')],_0x51663e]);}return _0x2e708d;}),this['listenTo'](_0x2323a0,_0x4eca('0x44'),(_0x1fec07,_0x229fbb)=>{this[_0x4eca('0xb')](_0x229fbb,'change:previous',(_0x53c094,_0x2691b4,_0x37ac3d,_0x5e9c77)=>{_0x229fbb[_0x4eca('0x43')]&&(null==_0x37ac3d?(this[_0x4eca('0x46')](_0x5e9c77['head']),this['_handleSuggestionControllerDelayed'](_0x229fbb,!0x1)):(this[_0x4eca('0x46')](_0x37ac3d[_0x4eca('0x56')]),null==_0x5e9c77&&this[_0x4eca('0x64')](_0x229fbb,!0x0)));}),null!==_0x229fbb[_0x4eca('0x3a')]?this[_0x4eca('0x46')](_0x229fbb[_0x4eca('0x56')]):this[_0x4eca('0x64')](_0x229fbb,!0x1);}),this['listenTo'](_0x2323a0,_0x4eca('0x41'),(_0x1f42c5,_0x524596,_0x1e3f75)=>{this[_0x4eca('0x11')](_0x524596,_0x4eca('0x23')),this[_0x4eca('0x6')][_0x4eca('0x37')](_0x524596),this[_0x4eca('0x34')][_0x4eca('0x61')](_0x524596)&&this[_0x4eca('0xd')](_0x524596),_0x1e3f75&&this['_updateController'](_0x1e3f75[_0x4eca('0x56')]);}),this[_0x4eca('0xb')](_0x2323a0,_0x4eca('0x5d'),(_0xf6a2df,_0x4663c4)=>{this[_0x4eca('0x46')](_0x4663c4);}),this[_0x4eca('0xb')](_0x32dd57,'change:activeAnnotations',()=>{this[_0x4eca('0x30')]();}),this['listenTo'](_0x4eae29,'addComment',(_0x59d89d,{threadId:_0x5dd881,isFromAdapter:_0x502b3d})=>{if(_0x502b3d||!_0x2323a0[_0x4eca('0x70')](_0x5dd881))return;const _0x310551=_0x2323a0['getSuggestion'](_0x5dd881);this[_0x4eca('0x34')][_0x4eca('0x9')](_0x310551)[_0x4eca('0x5a')][_0x4eca('0x3e')]();},{'priority':_0x4eca('0x57')});}['_refreshActiveMarkers'](){const _0x2510d2=this['editor']['plugins'][_0x4eca('0x9')](_0x4eca('0x40')),_0x56944d=this[_0x4eca('0x5b')][_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x15')),_0x49f8ae=Array[_0x4eca('0x2f')](_0x2510d2['activeAnnotations'],_0x36468d=>_0x36468d[_0x4eca('0x20')])['filter'](_0x57e2d7=>this[_0x4eca('0x38')][_0x4eca('0x61')](_0x57e2d7)),_0x5b2c4e=[];for(const _0xf74ecc of _0x49f8ae){const _0x12a9a0=this[_0x4eca('0x38')][_0x4eca('0x9')](_0xf74ecc)[_0x4eca('0x1')][_0x4eca('0xc')]();_0x5b2c4e[_0x4eca('0x21')](..._0x12a9a0[_0x4eca('0x71')]((_0xa88424,_0xc9d876)=>[..._0xa88424,..._0xc9d876['getMarkerNames']()],[]));}_0x56944d[_0x4eca('0x3d')]=_0x5b2c4e;}['_createUIButton'](_0xad664f){const _0x4048eb=_0x373f18(_0xad664f,_0x2564e7),_0x1ad454=this[_0x4eca('0x5b')]['commands'][_0x4eca('0x9')](_0x4eca('0x18')),_0x29f7da=_0x20ab3b(_0xad664f,_0x4eca('0x66'));_0x4048eb[_0x4eca('0x4')][_0x4eca('0x53')]({'tooltip':_0x29f7da,'label':_0x29f7da,'icon':_0x384c08}),_0x4048eb[_0x4eca('0x4')][_0x4eca('0x6d')](_0x4eca('0x47'))['to'](_0x1ad454,_0x4eca('0x72')),_0x4048eb[_0x4eca('0x4')]['on'](_0x4eca('0x35'),()=>{_0x1ad454[_0x4eca('0x35')](),this[_0x4eca('0x5b')]['editing'][_0x4eca('0x5a')]['focus']();});const _0x347a1a=new _0x3a6c0d(),_0x515952=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x29f7da,'commandName':_0x4eca('0x18')}},{'type':_0x4eca('0x63')},{'type':_0x4eca('0x13'),'model':{'withText':!0x0,'label':_0x20ab3b(_0xad664f,_0x4eca('0x3f')),'commandName':_0x4eca('0x60')}},{'type':_0x4eca('0x13'),'model':{'withText':!0x0,'label':_0x20ab3b(_0xad664f,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x4eca('0x2')}},{'type':_0x4eca('0x13'),'model':{'withText':!0x0,'label':_0x20ab3b(_0xad664f,_0x4eca('0x4d')),'commandName':_0x4eca('0x12')}},{'type':'button','model':{'withText':!0x0,'label':_0x20ab3b(_0xad664f,_0x4eca('0x3')),'commandName':_0x4eca('0x2e')}}];for(const _0x3804b5 of _0x515952){let _0x4caff5={'type':'separator'};if(_0x3804b5[_0x4eca('0x1')]){const _0x5d85ea=new _0x59e68f(_0x3804b5['model']),_0x2ed582=this[_0x4eca('0x5b')]['commands']['get'](_0x5d85ea[_0x4eca('0x26')]);_0x5d85ea[_0x4eca('0x6d')](_0x4eca('0x47'),_0x4eca('0x4c'))['to'](_0x2ed582,_0x4eca('0x72'),_0x4eca('0x4c')),_0x4caff5={'type':_0x3804b5['type'],'model':_0x5d85ea};}_0x347a1a['add'](_0x4caff5);}_0x3d8a26(_0x4048eb,_0x347a1a);const _0x5541cb=_0x515952[_0x4eca('0x59')](_0x28185c=>null!=_0x28185c[_0x4eca('0x1')])[_0x4eca('0x28')](_0xf997e0=>this[_0x4eca('0x5b')][_0x4eca('0x52')]['get'](_0xf997e0[_0x4eca('0x1')][_0x4eca('0x26')])),_0x4f348d=_0x4048eb[_0x4eca('0x4')];return _0x4f348d[_0x4eca('0x1c')][_0x4eca('0x6a')](_0x4eca('0x4c')),_0x4f348d[_0x4eca('0xf')][_0x4eca('0x6a')]('isEnabled'),_0x4f348d[_0x4eca('0x1c')][_0x4eca('0x6d')](_0x4eca('0x4c'))['to'](_0x1ad454,_0x4eca('0x4c')),_0x4f348d['arrowView'][_0x4eca('0x6d')]('isEnabled')[_0x4eca('0x1f')](_0x5541cb,_0x4eca('0x4c'),(..._0x4e2ebf)=>_0x4e2ebf[_0x4eca('0x3c')](_0x50f161=>_0x50f161)),_0x4048eb['on'](_0x4eca('0x35'),_0x1f65ba=>{this[_0x4eca('0x5b')][_0x4eca('0x35')](_0x1f65ba[_0x4eca('0x69')][_0x4eca('0x26')]),this[_0x4eca('0x5b')][_0x4eca('0x50')][_0x4eca('0x5a')]['focus']();}),_0x4048eb;}[_0x4eca('0x5')](_0x573d8c){const _0x6dbbc=this[_0x4eca('0x5b')],_0x88acb2=_0x6dbbc[_0x4eca('0x39')],_0x3ef8d5=_0x6dbbc[_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x40')),_0x1d6e62=_0x6dbbc[_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x27')),_0x1d2cfe=_0x6dbbc[_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x2c')),_0x2fbf37=_0x6dbbc[_0x4eca('0x5c')][_0x4eca('0x9')](_0x4609f7)['me'],_0x4aa77a=_0x88acb2['get']('trackChanges')[_0x4eca('0x49')],{CommentsListView:_0x3cd98f,CommentThreadInputView:_0x29fef0}=_0x6dbbc['plugins'][_0x4eca('0x9')](_0x4eca('0x5e'));let _0x2a7aef,_0x3f18c1;this[_0x4eca('0x29')][_0x4eca('0x61')](_0x573d8c['id'])?(_0x3f18c1=this[_0x4eca('0x29')][_0x4eca('0x9')](_0x573d8c['id']),_0x2a7aef=_0x3f18c1[_0x4eca('0x51')]):(_0x2a7aef=new _0x4aa77a(_0x6dbbc[_0x4eca('0x16')],_0x573d8c,_0x2fbf37,{'disableComments':this[_0x4eca('0x65')],'editorConfig':_0x88acb2[_0x4eca('0x9')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x88acb2['get'](_0x4eca('0x22')),'maxThreadTotalWeight':_0x88acb2['get'](_0x4eca('0x33')),'maxCommentCharsWhenCollapsed':_0x88acb2['get'](_0x4eca('0x67')),'formatDateTime':_0x5827b3(_0x88acb2['get'](_0x4eca('0x16'))),'CommentView':_0x88acb2[_0x4eca('0x9')](_0x4eca('0x2a'))[_0x4eca('0x6b')],'CommentsListView':_0x3cd98f,'CommentThreadInputView':_0x29fef0}),_0x2a7aef['acceptButton']['on'](_0x4eca('0x35'),()=>{_0x6dbbc[_0x4eca('0x50')][_0x4eca('0x5a')][_0x4eca('0x3e')]();}),_0x2a7aef[_0x4eca('0x19')]['on'](_0x4eca('0x35'),()=>{_0x6dbbc[_0x4eca('0x50')]['view'][_0x4eca('0x3e')]();}),_0x3f18c1=_0x3ef8d5[_0x4eca('0x4b')](this[_0x4eca('0x5b')][_0x4eca('0x16')],_0x2a7aef),_0x3f18c1['bind'](_0x4eca('0x6e'))['to'](_0x2a7aef,_0x4eca('0x6e')),_0x3f18c1[_0x4eca('0x6d')](_0x4eca('0x1b'))['to'](_0x2a7aef),_0x3f18c1[_0x4eca('0x6d')](_0x4eca('0x4e'))['to'](_0x2a7aef,'type',_0x364adf=>'suggestion-'+_0x364adf),this[_0x4eca('0x29')][_0x4eca('0x53')](_0x573d8c['id'],_0x3f18c1));const _0x4d78b5=_0x1d6e62[_0x4eca('0x45')](_0x573d8c[_0x4eca('0x0')],_0x2a7aef),_0xfeb107=new _0x5c06f0(_0x6dbbc,_0x573d8c,_0x2a7aef,_0x4d78b5),_0x78197a=_0x573d8c[_0x4eca('0xc')]()[_0x4eca('0x59')](_0x52fa50=>_0x52fa50[_0x4eca('0x43')]);_0x2a7aef['descriptionParts']=_0x6dbbc[_0x4eca('0x5c')][_0x4eca('0x9')]('TrackChangesEditing')[_0x4eca('0xa')][_0x4eca('0x2d')](_0x78197a),this[_0x4eca('0x34')]['set'](_0x573d8c,_0xfeb107),this[_0x4eca('0x38')][_0x4eca('0x53')](_0x2a7aef,_0xfeb107);const _0x826207=_0x3ef8d5['createAnnotation']({'view':_0x3f18c1,'target':()=>{const _0x3a450c=[],_0x29c30c=_0x573d8c[_0x4eca('0xc')]()[_0x4eca('0x59')](_0x207241=>_0x207241['isInContent']);for(const _0x4a6383 of _0x29c30c)_0x3a450c['push'](..._0x4a6383[_0x4eca('0x14')]());return _0x397850(_0x6dbbc[_0x4eca('0x50')],_0x3a450c);},'type':()=>_0x4eca('0x32')+_0xfeb107['view']['type']});_0x1d6e62[_0x4eca('0x5f')](_0x2a7aef,_0x826207),_0x3ef8d5['add'](_0x826207),_0x1d2cfe[_0x4eca('0x4f')](_0x826207);}[_0x4eca('0xd')](_0x4a5b22){const _0x228982=this[_0x4eca('0x5b')][_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x27')),_0x2daff2=this['editor'][_0x4eca('0x5c')][_0x4eca('0x9')](_0x4eca('0x40')),_0x2842f4=this['_suggestionToController']['get'](_0x4a5b22),_0x34ea65=_0x2842f4[_0x4eca('0x5a')],_0x4948d3=_0x2daff2[_0x4eca('0x17')](_0x34ea65);_0x228982[_0x4eca('0x42')](_0x34ea65),_0x4948d3&&_0x2daff2['remove'](_0x4948d3),this[_0x4eca('0x34')][_0x4eca('0x37')](_0x4a5b22),this['_viewToController']['delete'](_0x34ea65),_0x2842f4[_0x4eca('0x54')]();}['_updateController'](_0x5317ad){if(!_0x5317ad[_0x4eca('0x43')]||!this[_0x4eca('0x34')][_0x4eca('0x61')](_0x5317ad))return;const _0x32bd0c=this[_0x4eca('0x5b')]['plugins'][_0x4eca('0x9')]('TrackChangesEditing'),_0x105a4b=this[_0x4eca('0x34')][_0x4eca('0x9')](_0x5317ad),_0x2b9bd5=_0x5317ad[_0x4eca('0xc')]();_0x105a4b['view'][_0x4eca('0x62')]=_0x32bd0c[_0x4eca('0xa')][_0x4eca('0x2d')](_0x2b9bd5);}[_0x4eca('0x54')](){for(const _0x183e28 of this[_0x4eca('0x34')][_0x4eca('0x4a')]())this[_0x4eca('0xd')](_0x183e28);for(const _0x3cc040 of this['_annotationViews'][_0x4eca('0x24')]())_0x3cc040[_0x4eca('0x51')][_0x4eca('0x54')]();super[_0x4eca('0x54')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe72c=['PENDING_ACTION_SUGGESTION','isEnabled','plugins','_pendingAction','model','_editor','canDiscard','remove','discardSuggestion','change:isDirty','canEditAt','unbind','_acceptCommand','get','PendingActions','canAccept','locale','bind','getRanges','listenTo','_removePendingAction','stopListening','view','destroy','_setPendingAction','execute','commands','_discardCommand','commentThreadController','acceptSuggestion'];(function(_0x5011a3,_0xe72c77){const _0x5785ae=function(_0x28dfc4){while(--_0x28dfc4){_0x5011a3['push'](_0x5011a3['shift']());}};_0x5785ae(++_0xe72c77);}(_0xe72c,0x1b4));const _0x5785=function(_0x5011a3,_0xe72c77){_0x5011a3=_0x5011a3-0x0;let _0x5785ae=_0xe72c[_0x5011a3];return _0x5785ae;};import{ObservableMixin as _0x6bbd89}from'ckeditor5/src/utils';import{getTranslation as _0x42a9f1}from'../utils/common-translations';export default class Pt extends _0x6bbd89(){constructor(_0x3a7b49,_0xf516b4,_0x35a255,_0x20542c){super(),this[_0x5785('0x12')]=_0xf516b4,this[_0x5785('0x6')]=_0x35a255,this[_0x5785('0xc')]=_0x20542c,this[_0x5785('0x13')]=_0x3a7b49,this[_0x5785('0x1a')]=_0x3a7b49[_0x5785('0xa')][_0x5785('0x1b')](_0x5785('0xd')),this['_discardCommand']=_0x3a7b49[_0x5785('0xa')][_0x5785('0x1b')](_0x5785('0x16')),this['view'][_0x5785('0x1')](_0x5785('0xf'))['to'](this['_acceptCommand'],this[_0x5785('0xb')],(_0x244b6c,_0x4fadaa)=>_0x244b6c||_0x4fadaa),this[_0x5785('0x6')][_0x5785('0x1')]('canAccept')['to'](this[_0x5785('0x1a')],_0x5785('0xf'),_0x538985=>_0x538985&&this[_0x5785('0x13')]['model'][_0x5785('0x18')](_0xf516b4[_0x5785('0x2')]())),this[_0x5785('0x6')][_0x5785('0x1')](_0x5785('0x14'))['to'](this[_0x5785('0xb')],_0x5785('0xf'),_0x3016cc=>_0x3016cc&&this[_0x5785('0x13')][_0x5785('0x12')][_0x5785('0x18')](_0xf516b4['getRanges']())),this[_0x5785('0x11')]=null,_0x35a255['isDirty']&&this[_0x5785('0x8')](),this[_0x5785('0x3')](_0x35a255,_0x5785('0xd'),()=>this[_0x5785('0xd')]()),this[_0x5785('0x3')](_0x35a255,_0x5785('0x16'),()=>this[_0x5785('0x16')]()),this[_0x5785('0x3')](_0x35a255,_0x5785('0x17'),()=>{_0x35a255['isDirty']?this[_0x5785('0x8')]():this['_removePendingAction']();});}[_0x5785('0xd')](){this['_acceptCommand'][_0x5785('0x9')](this[_0x5785('0x12')]['id']);}['discardSuggestion'](){this[_0x5785('0xb')]['execute'](this[_0x5785('0x12')]['id']);}[_0x5785('0x7')](){this[_0x5785('0x6')]['unbind'](_0x5785('0xf')),this['view'][_0x5785('0x19')](_0x5785('0x1d')),this[_0x5785('0x6')][_0x5785('0x19')](_0x5785('0x14')),this[_0x5785('0x5')](),this[_0x5785('0xc')][_0x5785('0x7')](),this[_0x5785('0x11')]&&this[_0x5785('0x4')]();}['_setPendingAction'](){const _0x1a4add=_0x42a9f1(this['_editor'][_0x5785('0x0')],_0x5785('0xe'));this[_0x5785('0x11')]=this[_0x5785('0x13')][_0x5785('0x10')][_0x5785('0x1b')](_0x5785('0x1c'))['add'](_0x1a4add);}[_0x5785('0x4')](){null!==this['_pendingAction']&&this['_editor'][_0x5785('0x10')][_0x5785('0x1b')](_0x5785('0x1c'))[_0x5785('0x15')](this[_0x5785('0x11')]),this[_0x5785('0x11')]=null;}}
23
+ const _0x4780=['commentThreadController','bind','canEditAt','_discardCommand','model','commands','get','view','stopListening','_removePendingAction','_setPendingAction','unbind','PENDING_ACTION_SUGGESTION','acceptSuggestion','add','execute','canAccept','locale','canDiscard','change:isDirty','destroy','PendingActions','isDirty','_editor','listenTo','_acceptCommand','plugins','discardSuggestion','_pendingAction','isEnabled'];(function(_0x287bc9,_0x478065){const _0x5f4394=function(_0x4df8c7){while(--_0x4df8c7){_0x287bc9['push'](_0x287bc9['shift']());}};_0x5f4394(++_0x478065);}(_0x4780,0x10e));const _0x5f43=function(_0x287bc9,_0x478065){_0x287bc9=_0x287bc9-0x0;let _0x5f4394=_0x4780[_0x287bc9];return _0x5f4394;};import{ObservableMixin as _0x490b44}from'ckeditor5/src/utils';import{getTranslation as _0x292432}from'../utils/common-translations';export default class Qt extends _0x490b44(){constructor(_0x342900,_0x3f088b,_0x135454,_0x5d2893){super(),this[_0x5f43('0x4')]=_0x3f088b,this[_0x5f43('0x7')]=_0x135454,this[_0x5f43('0x0')]=_0x5d2893,this[_0x5f43('0x17')]=_0x342900,this[_0x5f43('0x19')]=_0x342900['commands'][_0x5f43('0x6')]('acceptSuggestion'),this[_0x5f43('0x3')]=_0x342900[_0x5f43('0x5')][_0x5f43('0x6')](_0x5f43('0x1b')),this['view']['bind'](_0x5f43('0x1d'))['to'](this[_0x5f43('0x19')],this[_0x5f43('0x3')],(_0x5e2db9,_0x5c6822)=>_0x5e2db9||_0x5c6822),this[_0x5f43('0x7')][_0x5f43('0x1')](_0x5f43('0x10'))['to'](this['_acceptCommand'],'isEnabled',_0x27aedd=>_0x27aedd&&this[_0x5f43('0x17')][_0x5f43('0x4')][_0x5f43('0x2')](_0x3f088b['getRanges']())),this[_0x5f43('0x7')][_0x5f43('0x1')](_0x5f43('0x12'))['to'](this['_discardCommand'],_0x5f43('0x1d'),_0x3d92f9=>_0x3d92f9&&this[_0x5f43('0x17')]['model'][_0x5f43('0x2')](_0x3f088b['getRanges']())),this['_pendingAction']=null,_0x135454[_0x5f43('0x16')]&&this[_0x5f43('0xa')](),this[_0x5f43('0x18')](_0x135454,_0x5f43('0xd'),()=>this[_0x5f43('0xd')]()),this[_0x5f43('0x18')](_0x135454,_0x5f43('0x1b'),()=>this['discardSuggestion']()),this[_0x5f43('0x18')](_0x135454,_0x5f43('0x13'),()=>{_0x135454['isDirty']?this[_0x5f43('0xa')]():this[_0x5f43('0x9')]();});}[_0x5f43('0xd')](){this[_0x5f43('0x19')][_0x5f43('0xf')](this[_0x5f43('0x4')]['id']);}[_0x5f43('0x1b')](){this[_0x5f43('0x3')][_0x5f43('0xf')](this[_0x5f43('0x4')]['id']);}[_0x5f43('0x14')](){this[_0x5f43('0x7')][_0x5f43('0xb')](_0x5f43('0x1d')),this[_0x5f43('0x7')][_0x5f43('0xb')](_0x5f43('0x10')),this['view'][_0x5f43('0xb')](_0x5f43('0x12')),this[_0x5f43('0x8')](),this[_0x5f43('0x0')][_0x5f43('0x14')](),this[_0x5f43('0x1c')]&&this[_0x5f43('0x9')]();}['_setPendingAction'](){const _0x2575df=_0x292432(this['_editor'][_0x5f43('0x11')],_0x5f43('0xc'));this[_0x5f43('0x1c')]=this[_0x5f43('0x17')][_0x5f43('0x1a')][_0x5f43('0x6')](_0x5f43('0x15'))[_0x5f43('0xe')](_0x2575df);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x5f43('0x17')][_0x5f43('0x1a')][_0x5f43('0x6')](_0x5f43('0x15'))['remove'](this['_pendingAction']),this[_0x5f43('0x1c')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c5e=['element','disabledSubmit','_localUser','value','bind','_createCommentViews','editor','commentInputView','cancel','_config','set','commentThreadInputView','addComment','length','_model','authoredAt','locale','destroy','removeComment','canAccept','submit','canDiscard','isActive','disableComments','_createCommentThreadInputView','delegate','isDirty','descriptionParts','setData','fire','focus','commentsListView','CommentView','updateComment','commentThread','assign','isReadOnly'];(function(_0x4c59a1,_0x4c5ee2){const _0x113533=function(_0x395530){while(--_0x395530){_0x4c59a1['push'](_0x4c59a1['shift']());}};_0x113533(++_0x4c5ee2);}(_0x4c5e,0x1a5));const _0x1135=function(_0x4c59a1,_0x4c5ee2){_0x4c59a1=_0x4c59a1-0x0;let _0x113533=_0x4c5e[_0x4c59a1];return _0x113533;};import{View as _0x503d39}from'ckeditor5/src/ui';export default class si extends _0x503d39{constructor(_0x5ba476,_0x27ce60,_0x14aa7a,_0xbe806e){super(_0x5ba476),this[_0x1135('0x11')]=null,this['commentThreadInputView']=null,this[_0x1135('0x21')](_0x1135('0x8'),!0x1),this[_0x1135('0x21')](_0x1135('0x1'),_0x27ce60['authoredAt']),this[_0x1135('0x1b')]('authoredAt')['to'](_0x27ce60),this[_0x1135('0x21')](_0x1135('0xd'),[]),this['set'](_0x1135('0xc'),!0x1),this[_0x1135('0x21')]('isEnabled',!0x1),this[_0x1135('0x21')](_0x1135('0x5'),!0x1),this[_0x1135('0x21')](_0x1135('0x7'),!0x1),this['_model']=_0x27ce60,this['_localUser']=_0x14aa7a,this[_0x1135('0x20')]=_0xbe806e,_0xbe806e[_0x1135('0x9')]?this[_0x1135('0x21')](_0x1135('0x24'),0x1):this[_0x1135('0x1c')]();}[_0x1135('0x10')](){this[_0x1135('0x17')][_0x1135('0x10')]();}[_0x1135('0x3')](){this[_0x1135('0x11')]&&this['commentsListView'][_0x1135('0x3')](),this[_0x1135('0x22')]&&this[_0x1135('0x22')][_0x1135('0x3')](),super[_0x1135('0x3')]();}[_0x1135('0x1c')](){const {CommentsListView:_0x33499c}=this[_0x1135('0x20')];this[_0x1135('0x11')]=new _0x33499c(this[_0x1135('0x2')],this[_0x1135('0x0')][_0x1135('0x14')],Object[_0x1135('0x15')]({'CommentView':this[_0x1135('0x20')][_0x1135('0x12')]},this['_config'])),this[_0x1135('0x11')][_0x1135('0xb')](_0x1135('0x4'))['to'](this),this['commentsListView'][_0x1135('0xb')](_0x1135('0x13'))['to'](this),this['commentsListView']['bind'](_0x1135('0x8'))['to'](this),this['set'](_0x1135('0x24'),this[_0x1135('0x11')][_0x1135('0x24')]+0x1),this['bind'](_0x1135('0x24'))['to'](this['commentsListView'],_0x1135('0x24'),_0x1e4a21=>_0x1e4a21+0x1),this[_0x1135('0x22')]=this[_0x1135('0xa')](),this['on']('removeComment',()=>this[_0x1135('0x10')]()),this[_0x1135('0x1b')](_0x1135('0xc'))['to'](this[_0x1135('0x11')],'hasDirtyComment',this[_0x1135('0x22')][_0x1135('0x1e')],_0x1135('0x1a'),(_0x3bc16a,_0x2edb2e)=>_0x3bc16a||!!_0x2edb2e);}[_0x1135('0xa')](){const {CommentThreadInputView:_0x6c109}=this['_config'],_0x2b75db=new _0x6c109(this['locale'],this[_0x1135('0x19')],this[_0x1135('0x20')]['editorConfig']),_0x3515a7=_0x2b75db[_0x1135('0x1e')];return _0x2b75db[_0x1135('0x1b')]('showInput')['to'](this,'isActive',this[_0x1135('0x0')][_0x1135('0x14')],_0x1135('0x16'),_0x3515a7,_0x1135('0x1a'),(_0x5032f2,_0x16deb5,_0x21afa3)=>!!_0x21afa3||_0x5032f2&&!_0x16deb5),_0x3515a7['on'](_0x1135('0x6'),(_0x329361,_0x104be2)=>{this[_0x1135('0xf')](_0x1135('0x23'),_0x104be2),_0x3515a7[_0x1135('0x1d')][_0x1135('0xe')]('');}),_0x3515a7['on'](_0x1135('0x1f'),()=>this[_0x1135('0x10')]()),_0x3515a7['bind'](_0x1135('0x18'))['to'](this[_0x1135('0x0')]['commentThread'],_0x1135('0x16')),_0x2b75db;}}
23
+ const _0x2e0b=['length','commentThread','removeComment','disabledSubmit','commentInputView','isActive','_model','bind','CommentView','focus','authoredAt','descriptionParts','editorConfig','isDirty','editor','locale','updateComment','setData','value','addComment','delegate','showInput','destroy','cancel','isEnabled','_config','_localUser','submit','_createCommentThreadInputView','canAccept','set','commentsListView','isReadOnly','disableComments','canDiscard','hasDirtyComment','_createCommentViews','commentThreadInputView'];(function(_0x36402e,_0x2e0ba9){const _0x585e0a=function(_0x3bb2e5){while(--_0x3bb2e5){_0x36402e['push'](_0x36402e['shift']());}};_0x585e0a(++_0x2e0ba9);}(_0x2e0b,0x72));const _0x585e=function(_0x36402e,_0x2e0ba9){_0x36402e=_0x36402e-0x0;let _0x585e0a=_0x2e0b[_0x36402e];return _0x585e0a;};import{View as _0x51c643}from'ckeditor5/src/ui';export default class si extends _0x51c643{constructor(_0x4e0c58,_0x9654ab,_0x34cbee,_0x4d51bf){super(_0x4e0c58),this[_0x585e('0x1f')]=null,this['commentThreadInputView']=null,this[_0x585e('0x1e')](_0x585e('0x5'),!0x1),this['set']('authoredAt',_0x9654ab[_0x585e('0xa')]),this[_0x585e('0x7')](_0x585e('0xa'))['to'](_0x9654ab),this[_0x585e('0x1e')](_0x585e('0xb'),[]),this[_0x585e('0x1e')](_0x585e('0xd'),!0x1),this[_0x585e('0x1e')](_0x585e('0x18'),!0x1),this[_0x585e('0x1e')](_0x585e('0x1d'),!0x1),this['set'](_0x585e('0x22'),!0x1),this['_model']=_0x9654ab,this[_0x585e('0x1a')]=_0x34cbee,this['_config']=_0x4d51bf,_0x4d51bf[_0x585e('0x21')]?this[_0x585e('0x1e')](_0x585e('0x0'),0x1):this[_0x585e('0x24')]();}[_0x585e('0x9')](){this['element'][_0x585e('0x9')]();}['destroy'](){this[_0x585e('0x1f')]&&this[_0x585e('0x1f')][_0x585e('0x16')](),this[_0x585e('0x25')]&&this[_0x585e('0x25')][_0x585e('0x16')](),super[_0x585e('0x16')]();}[_0x585e('0x24')](){const {CommentsListView:_0xb87397}=this[_0x585e('0x19')];this[_0x585e('0x1f')]=new _0xb87397(this[_0x585e('0xf')],this[_0x585e('0x6')]['commentThread'],Object['assign']({'CommentView':this['_config'][_0x585e('0x8')]},this[_0x585e('0x19')])),this[_0x585e('0x1f')][_0x585e('0x14')](_0x585e('0x2'))['to'](this),this[_0x585e('0x1f')]['delegate'](_0x585e('0x10'))['to'](this),this[_0x585e('0x1f')]['bind'](_0x585e('0x5'))['to'](this),this[_0x585e('0x1e')](_0x585e('0x0'),this[_0x585e('0x1f')][_0x585e('0x0')]+0x1),this[_0x585e('0x7')](_0x585e('0x0'))['to'](this[_0x585e('0x1f')],_0x585e('0x0'),_0x258960=>_0x258960+0x1),this[_0x585e('0x25')]=this[_0x585e('0x1c')](),this['on']('removeComment',()=>this[_0x585e('0x9')]()),this['bind'](_0x585e('0xd'))['to'](this[_0x585e('0x1f')],_0x585e('0x23'),this[_0x585e('0x25')][_0x585e('0x4')],_0x585e('0x12'),(_0x5ad5c6,_0x3910a3)=>_0x5ad5c6||!!_0x3910a3);}[_0x585e('0x1c')](){const {CommentThreadInputView:_0xcc9ed0}=this[_0x585e('0x19')],_0x4bb145=new _0xcc9ed0(this[_0x585e('0xf')],this['_localUser'],this[_0x585e('0x19')][_0x585e('0xc')]),_0xfdf0e0=_0x4bb145[_0x585e('0x4')];return _0x4bb145[_0x585e('0x7')](_0x585e('0x15'))['to'](this,_0x585e('0x5'),this[_0x585e('0x6')][_0x585e('0x1')],_0x585e('0x20'),_0xfdf0e0,_0x585e('0x12'),(_0x34a5f1,_0x2adc89,_0x5d0b56)=>!!_0x5d0b56||_0x34a5f1&&!_0x2adc89),_0xfdf0e0['on'](_0x585e('0x1b'),(_0x25fc05,_0x20d570)=>{this['fire'](_0x585e('0x13'),_0x20d570),_0xfdf0e0[_0x585e('0xe')][_0x585e('0x11')]('');}),_0xfdf0e0['on'](_0x585e('0x17'),()=>this[_0x585e('0x9')]()),_0xfdf0e0['bind'](_0x585e('0x3'))['to'](this[_0x585e('0x6')][_0x585e('0x1')],_0x585e('0x20')),_0x4bb145;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4887=['cancel','locale','ck-annotation__info-name','\x22></span>','check','split','ck-annotation__main','_config','ck-annotation__user','map','@external','getExternalSuggestionNote','Discard\x20suggestion','userView','source','</p>','attributes','extendTemplate','delegate','change:description','ck-suggestion__user','content','descriptionParts','ck-annotation__info','querySelector','EXTERNAL_AVATAR','isActive','createElement','_createButton','_descriptionElement','commentsListView','ck-suggestion','disableComments','name','fire','span','commentThread','ck-suggestion__actions','time','discardButton','render','element','editorReady','ck-annotation','div','innerHTML','discardSuggestion','canDiscard','\x22\x20title=\x22','acceptSuggestion','formatDateTime','importWord','creator','canAccept','set','isExternal','commentThreadInputView','push','editorDestroyed','description','authoredAt','<span\x20class=\x22ck-suggestion-type\x22>','ck-suggestion__info','<p>','</span>','getUserViewNotificationText','ck-suggestion-','bind','ck-suggestion-wrapper--active','acceptButton','author','ck-annotation__info-time','EXTERNAL_IMPORT_WORD_AVATAR','type','join','ck-annotation__actions','EXTERNAL_SUGGESTION','ck-suggestion--discard','EXTERNAL_IMPORT_WORD_SUGGESTION','.ck-annotation__content-wrapper','title','color','isEnabled','getTemplate','ck-comment__info-time','_model'];(function(_0xcc4fa1,_0x4887ee){const _0x4c1cc=function(_0x15dad0){while(--_0x15dad0){_0xcc4fa1['push'](_0xcc4fa1['shift']());}};_0x4c1cc(++_0x4887ee);}(_0x4887,0x99));const _0x4c1c=function(_0xcc4fa1,_0x4887ee){_0xcc4fa1=_0xcc4fa1-0x0;let _0x4c1cc=_0x4887[_0xcc4fa1];return _0x4c1cc;};import{getTranslation as _0x455967}from'../../utils/common-translations';import{default as _0x1e8b67}from'./basesuggestionthreadview';import{ButtonView as _0x361fcc}from'ckeditor5/src/ui';import{icons as _0x8708f}from'ckeditor5/src/core';import{trimHtml as _0x44f438,UserView as _0x418953}from'ckeditor5-collaboration/src/collaboration-core';export default class Qt extends _0x1e8b67{constructor(_0x3695d0,_0x1503f0,_0x5f3ada,_0x1e8727){super(_0x3695d0,_0x1503f0,_0x5f3ada,_0x1e8727),this[_0x4c1c('0x49')](_0x4c1c('0x6'),''),this['bind'](_0x4c1c('0x6'))['to'](this,_0x4c1c('0x29'),_0x21c60d=>_0x21c60d&&_0x21c60d[0x0]?_0x21c60d[0x0]['type']:''),this[_0x4c1c('0x0')](_0x4c1c('0x4e'))['to'](this,_0x4c1c('0x29'),this,_0x4c1c('0x2d'),(_0x2aaf50,_0x3d1bf3)=>{let _0x3a01fc='';for(const _0x1f9f9e of _0x2aaf50)_0x3a01fc+=_0x4c1c('0x52')+ci(_0x1f9f9e[_0x4c1c('0x28')],_0x1f9f9e[_0x4c1c('0xe')])+_0x4c1c('0x22');return _0x3d1bf3?_0x3a01fc:_0x44f438(_0x3a01fc,{'limit':0x8c});}),this[_0x4c1c('0x30')]=null,this[_0x4c1c('0x2')]=this[_0x4c1c('0x2f')](_0x455967(_0x3695d0,'Accept\x20suggestion'),_0x8708f[_0x4c1c('0x17')],'ck-suggestion--accept',_0x4c1c('0x44'),'sw'),this[_0x4c1c('0x2')][_0x4c1c('0x0')](_0x4c1c('0xf'))['to'](this,_0x4c1c('0x48')),this[_0x4c1c('0x3a')]=this[_0x4c1c('0x2f')](_0x455967(_0x3695d0,_0x4c1c('0x1f')),_0x8708f[_0x4c1c('0x13')],_0x4c1c('0xa'),_0x4c1c('0x41'),'sw'),this[_0x4c1c('0x3a')][_0x4c1c('0x0')](_0x4c1c('0xf'))['to'](this,_0x4c1c('0x42')),this[_0x4c1c('0x20')]=new _0x418953(_0x3695d0,this['_model'][_0x4c1c('0x3')],this[_0x4c1c('0x54')]()),this['userView']['extendTemplate']({'attributes':{'class':[_0x4c1c('0x27'),_0x4c1c('0x1b')]}}),this['setTemplate'](this[_0x4c1c('0x10')]());}[_0x4c1c('0x10')](){const _0x43a4f9=this['bindTemplate'],_0x2a321c=[{'tag':_0x4c1c('0x3f'),'attributes':{'class':[_0x4c1c('0x51'),_0x4c1c('0x2a')]},'children':[{'tag':_0x4c1c('0x36'),'children':[{'text':this[_0x4c1c('0x20')][_0x4c1c('0x34')]}],'attributes':{'class':['ck-suggestion__info-name',_0x4c1c('0x15')]}},{'tag':_0x4c1c('0x39'),'attributes':{'datetime':_0x43a4f9['to'](_0x4c1c('0x4f')),'class':[_0x4c1c('0x11'),_0x4c1c('0x4')]},'children':[{'text':_0x43a4f9['to'](_0x4c1c('0x4f'),_0x46c6b8=>this[_0x4c1c('0x1a')][_0x4c1c('0x45')](_0x46c6b8))}]}]},{'tag':_0x4c1c('0x3f'),'attributes':{'class':[_0x4c1c('0x38'),_0x4c1c('0x8')]},'children':[this[_0x4c1c('0x2')],this[_0x4c1c('0x3a')]]},{'tag':_0x4c1c('0x3f'),'attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x4c1c('0x12')]['isExternal']&&_0x2a321c['push']({'tag':_0x4c1c('0x3f'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x4c1c('0x1e')]()}]});const _0x2f3101={'tag':_0x4c1c('0x3f'),'attributes':{'class':['ck-suggestion-wrapper',_0x43a4f9['if']('isActive',_0x4c1c('0x1')),_0x43a4f9['to']('type',_0x31d433=>_0x4c1c('0x55')+_0x31d433),this[_0x4c1c('0x1a')][_0x4c1c('0x33')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x4c1c('0x12')][_0x4c1c('0x37')]['id'],'data-author-id':this['_model'][_0x4c1c('0x3')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4c1c('0x3f'),'attributes':{'class':[_0x4c1c('0x32'),_0x4c1c('0x3e')]},'children':[this[_0x4c1c('0x20')],{'tag':_0x4c1c('0x3f'),'attributes':{'class':['ck-suggestion__main',_0x4c1c('0x19')]},'children':_0x2a321c}]}]};return this[_0x4c1c('0x31')]&&this[_0x4c1c('0x4b')]&&(_0x2f3101['children'][_0x4c1c('0x4c')](this['commentsListView'],this[_0x4c1c('0x4b')]),this[_0x4c1c('0x31')][_0x4c1c('0x25')](_0x4c1c('0x3d'))['to'](this),this['commentsListView']['delegate'](_0x4c1c('0x4d'))['to'](this),this[_0x4c1c('0x4b')][_0x4c1c('0x25')](_0x4c1c('0x3d'))['to'](this),this['commentThreadInputView'][_0x4c1c('0x25')](_0x4c1c('0x4d'))['to'](this)),_0x2f3101;}[_0x4c1c('0x3b')](){super['render'](),this['_descriptionElement']=this[_0x4c1c('0x3c')][_0x4c1c('0x2b')](_0x4c1c('0xc')),this['_descriptionElement'][_0x4c1c('0x40')]=this['description'],this['on'](_0x4c1c('0x26'),(_0x17e27a,_0x315412,_0xa3c775)=>{this[_0x4c1c('0x30')][_0x4c1c('0x40')]=_0xa3c775;});}[_0x4c1c('0x2f')](_0x17c351,_0x24a77f,_0x5264e7,_0x41451a,_0x18964c){const _0x2e78df=new _0x361fcc(this[_0x4c1c('0x14')]);return _0x2e78df[_0x4c1c('0x49')]({'label':_0x17c351,'icon':_0x24a77f,'tooltip':!0x0,'tooltipPosition':_0x18964c}),_0x2e78df[_0x4c1c('0x24')]({'attributes':{'class':_0x5264e7}}),_0x2e78df['on']('execute',()=>{this[_0x4c1c('0x35')](_0x41451a,this[_0x4c1c('0x12')]['id']);}),_0x2e78df;}[_0x4c1c('0x1e')](){return _0x4c1c('0x46')===this[_0x4c1c('0x12')][_0x4c1c('0x23')]['@external'][_0x4c1c('0x21')]?_0x455967(this[_0x4c1c('0x14')],_0x4c1c('0xb')):_0x455967(this[_0x4c1c('0x14')],_0x4c1c('0x9'));}['getUserViewNotificationText'](){return this[_0x4c1c('0x12')][_0x4c1c('0x4a')]?_0x4c1c('0x46')===this[_0x4c1c('0x12')]['attributes'][_0x4c1c('0x1d')][_0x4c1c('0x21')]?_0x455967(this[_0x4c1c('0x14')],_0x4c1c('0x5'),this[_0x4c1c('0x12')][_0x4c1c('0x47')][_0x4c1c('0x34')]):_0x455967(this[_0x4c1c('0x14')],_0x4c1c('0x2c'),this[_0x4c1c('0x12')][_0x4c1c('0x47')][_0x4c1c('0x34')]):null;}}function ci(_0x2c7456,_0xcf2071){let _0x89acbc='';return _0x89acbc+=_0x2c7456[_0x4c1c('0x18')]('*')[_0x4c1c('0x1c')]((_0x2e1fd7,_0x103380)=>_0x103380%0x2!=0x0?_0x4c1c('0x50')+ri(_0x2e1fd7)+_0x4c1c('0x53'):ri(_0x2e1fd7))[_0x4c1c('0x7')](''),_0xcf2071&&(_0x89acbc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xcf2071['value']+_0x4c1c('0x43')+_0xcf2071[_0x4c1c('0xd')]+_0x4c1c('0x16')),_0x89acbc;}function ri(_0xe38ad6){const _0x2e2581=document[_0x4c1c('0x2e')](_0x4c1c('0x36'));return _0x2e2581['innerText']=_0xe38ad6,_0x2e2581[_0x4c1c('0x40')];}
23
+ const _0x1ea0=['ck-suggestion__info-name','ck-annotation__user','extendTemplate','acceptButton','div','join','bind','userView','editorDestroyed','locale','@external','ck-suggestion--disabled-comments','render','ck-comment__info-time','\x22\x20title=\x22','_config','type','querySelector','commentThreadInputView','isEnabled','author','authoredAt','ck-comment__external','createElement','creator','EXTERNAL_AVATAR','description','delegate','discardButton','cancel','canAccept','disableComments','value','commentsListView','span','innerHTML','ck-suggestion-wrapper','ck-annotation','ck-annotation__content-wrapper','getUserViewNotificationText','title','set','split','.ck-annotation__content-wrapper','execute','descriptionParts','EXTERNAL_IMPORT_WORD_SUGGESTION','getTemplate','ck-annotation__info-name','ck-suggestion-','setTemplate','ck-suggestion--accept','ck-suggestion--discard','check','\x22></span>','ck-suggestion__actions','change:description','discardSuggestion','<span\x20class=\x22ck-suggestion-type\x22>','ck-suggestion__user','source','ck-suggestion','_descriptionElement','children','push','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','importWord','editorReady','commentThread','map','ck-annotation__info-time','_model','attributes','getExternalSuggestionNote','ck-suggestion__main','</span>','fire','time','isExternal','canDiscard','<p>','isActive','_createButton','name','innerText'];(function(_0x1e4aaf,_0x1ea01a){const _0x442641=function(_0x2efdad){while(--_0x2efdad){_0x1e4aaf['push'](_0x1e4aaf['shift']());}};_0x442641(++_0x1ea01a);}(_0x1ea0,0xe3));const _0x4426=function(_0x1e4aaf,_0x1ea01a){_0x1e4aaf=_0x1e4aaf-0x0;let _0x442641=_0x1ea0[_0x1e4aaf];return _0x442641;};import{getTranslation as _0x589ff4}from'../../utils/common-translations';import{default as _0x2e602d}from'./basesuggestionthreadview';import{ButtonView as _0x2eb141}from'ckeditor5/src/ui';import{icons as _0x185c61}from'ckeditor5/src/core';import{trimHtml as _0x590fac,UserView as _0x5e84cb}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0x2e602d{constructor(_0x367f06,_0x21279c,_0x238e85,_0x57879a){super(_0x367f06,_0x21279c,_0x238e85,_0x57879a),this[_0x4426('0x45')](_0x4426('0x2c'),''),this[_0x4426('0x22')](_0x4426('0x2c'))['to'](this,_0x4426('0x49'),_0x2d1693=>_0x2d1693&&_0x2d1693[0x0]?_0x2d1693[0x0][_0x4426('0x2c')]:''),this['bind']('description')['to'](this,'descriptionParts',this,_0x4426('0x18'),(_0x3012f1,_0x43a656)=>{let _0x16a1b9='';for(const _0x38756e of _0x3012f1)_0x16a1b9+=_0x4426('0x17')+ci(_0x38756e['content'],_0x38756e['color'])+'</p>';return _0x43a656?_0x16a1b9:_0x590fac(_0x16a1b9,{'limit':0x8c});}),this[_0x4426('0x5')]=null,this['acceptButton']=this['_createButton'](_0x589ff4(_0x367f06,'Accept\x20suggestion'),_0x185c61[_0x4426('0x51')],_0x4426('0x4f'),'acceptSuggestion','sw'),this[_0x4426('0x1f')][_0x4426('0x22')](_0x4426('0x2f'))['to'](this,_0x4426('0x3a')),this[_0x4426('0x38')]=this[_0x4426('0x19')](_0x589ff4(_0x367f06,'Discard\x20suggestion'),_0x185c61[_0x4426('0x39')],_0x4426('0x50'),_0x4426('0x0'),'sw'),this[_0x4426('0x38')][_0x4426('0x22')](_0x4426('0x2f'))['to'](this,_0x4426('0x16')),this[_0x4426('0x23')]=new _0x5e84cb(_0x367f06,this['_model'][_0x4426('0x30')],this[_0x4426('0x43')]()),this[_0x4426('0x23')][_0x4426('0x1e')]({'attributes':{'class':[_0x4426('0x2'),_0x4426('0x1d')]}}),this[_0x4426('0x4e')](this['getTemplate']());}[_0x4426('0x4b')](){const _0x2fd821=this['bindTemplate'],_0xdb25c9=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':_0x4426('0x3e'),'children':[{'text':this[_0x4426('0x23')]['name']}],'attributes':{'class':[_0x4426('0x1c'),_0x4426('0x4c')]}},{'tag':_0x4426('0x14'),'attributes':{'datetime':_0x2fd821['to'](_0x4426('0x31')),'class':[_0x4426('0x29'),_0x4426('0xd')]},'children':[{'text':_0x2fd821['to'](_0x4426('0x31'),_0x51016e=>this[_0x4426('0x2b')]['formatDateTime'](_0x51016e))}]}]},{'tag':_0x4426('0x20'),'attributes':{'class':[_0x4426('0x53'),'ck-annotation__actions']},'children':[this[_0x4426('0x1f')],this[_0x4426('0x38')]]},{'tag':_0x4426('0x20'),'attributes':{'class':[_0x4426('0x42')]}}];this[_0x4426('0xe')][_0x4426('0x15')]&&_0xdb25c9['push']({'tag':'div','attributes':{'class':[_0x4426('0x32')]},'children':[{'text':this[_0x4426('0x10')]()}]});const _0x5c1e24={'tag':_0x4426('0x20'),'attributes':{'class':[_0x4426('0x40'),_0x2fd821['if'](_0x4426('0x18'),'ck-suggestion-wrapper--active'),_0x2fd821['to'](_0x4426('0x2c'),_0x4abebe=>_0x4426('0x4d')+_0x4abebe),this['_config'][_0x4426('0x3b')]&&_0x4426('0x27')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x4426('0xe')][_0x4426('0xb')]['id'],'data-author-id':this[_0x4426('0xe')][_0x4426('0x30')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4426('0x20'),'attributes':{'class':[_0x4426('0x4'),_0x4426('0x41')]},'children':[this[_0x4426('0x23')],{'tag':_0x4426('0x20'),'attributes':{'class':[_0x4426('0x11'),'ck-annotation__main']},'children':_0xdb25c9}]}]};return this[_0x4426('0x3d')]&&this[_0x4426('0x2e')]&&(_0x5c1e24[_0x4426('0x6')][_0x4426('0x7')](this[_0x4426('0x3d')],this[_0x4426('0x2e')]),this['commentsListView']['delegate']('editorReady')['to'](this),this[_0x4426('0x3d')]['delegate'](_0x4426('0x24'))['to'](this),this[_0x4426('0x2e')]['delegate'](_0x4426('0xa'))['to'](this),this[_0x4426('0x2e')][_0x4426('0x37')](_0x4426('0x24'))['to'](this)),_0x5c1e24;}[_0x4426('0x28')](){super[_0x4426('0x28')](),this[_0x4426('0x5')]=this['element'][_0x4426('0x2d')](_0x4426('0x47')),this[_0x4426('0x5')][_0x4426('0x3f')]=this[_0x4426('0x36')],this['on'](_0x4426('0x54'),(_0x4a873c,_0x1cacf6,_0x122b08)=>{this['_descriptionElement'][_0x4426('0x3f')]=_0x122b08;});}[_0x4426('0x19')](_0x1b6f9c,_0x59eb81,_0x4e77b5,_0x57638a,_0x3e22c0){const _0x280b5f=new _0x2eb141(this[_0x4426('0x25')]);return _0x280b5f[_0x4426('0x45')]({'label':_0x1b6f9c,'icon':_0x59eb81,'tooltip':!0x0,'tooltipPosition':_0x3e22c0}),_0x280b5f['extendTemplate']({'attributes':{'class':_0x4e77b5}}),_0x280b5f['on'](_0x4426('0x48'),()=>{this[_0x4426('0x13')](_0x57638a,this[_0x4426('0xe')]['id']);}),_0x280b5f;}[_0x4426('0x10')](){return _0x4426('0x9')===this[_0x4426('0xe')][_0x4426('0xf')]['@external'][_0x4426('0x3')]?_0x589ff4(this[_0x4426('0x25')],_0x4426('0x4a')):_0x589ff4(this[_0x4426('0x25')],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this[_0x4426('0xe')][_0x4426('0x15')]?_0x4426('0x9')===this[_0x4426('0xe')]['attributes'][_0x4426('0x26')][_0x4426('0x3')]?_0x589ff4(this[_0x4426('0x25')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x4426('0xe')][_0x4426('0x34')]['name']):_0x589ff4(this[_0x4426('0x25')],_0x4426('0x35'),this[_0x4426('0xe')][_0x4426('0x34')][_0x4426('0x1a')]):null;}}function ci(_0x4a0b79,_0x33ae61){let _0xb09324='';return _0xb09324+=_0x4a0b79[_0x4426('0x46')]('*')[_0x4426('0xc')]((_0xaaba49,_0x42a4d9)=>_0x42a4d9%0x2!=0x0?_0x4426('0x1')+ri(_0xaaba49)+_0x4426('0x12'):ri(_0xaaba49))[_0x4426('0x21')](''),_0x33ae61&&(_0xb09324+=_0x4426('0x8')+_0x33ae61[_0x4426('0x3c')]+_0x4426('0x2a')+_0x33ae61[_0x4426('0x44')]+_0x4426('0x52')),_0xb09324;}function ri(_0x1927e5){const _0xb76c49=document[_0x4426('0x33')](_0x4426('0x3e'));return _0xb76c49[_0x4426('0x1b')]=_0x1927e5,_0xb76c49['innerHTML'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x15f548,_0x413e85,_0x3f87eb){const t=_0x15f548['t'];switch(_0x413e85){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',_0x3f87eb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f87eb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f87eb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f87eb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f87eb);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',_0x3f87eb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f87eb);case'*Replace\x20image\x20URL*':return t('*Replace\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',_0x3f87eb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f87eb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f87eb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f87eb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f87eb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f87eb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f87eb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f87eb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f87eb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f87eb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f87eb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f87eb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f87eb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f87eb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f87eb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f87eb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f87eb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f87eb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f87eb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f87eb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f87eb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f87eb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f87eb);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});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_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});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'},_0x3f87eb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f87eb);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});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'},_0x3f87eb);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'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});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'},_0x3f87eb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f87eb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f87eb);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'},_0x3f87eb);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'},_0x3f87eb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x413e85;}}
23
+ export function getTranslation(_0x22b3bd,_0x53d6d6,_0x558c5e){const t=_0x22b3bd['t'];switch(_0x53d6d6){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',_0x558c5e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x558c5e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x558c5e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x558c5e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x558c5e);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',_0x558c5e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x558c5e);case'*Replace\x20image\x20URL*':return t('*Replace\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',_0x558c5e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x558c5e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x558c5e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x558c5e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x558c5e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x558c5e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x558c5e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x558c5e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x558c5e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x558c5e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x558c5e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x558c5e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x558c5e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x558c5e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x558c5e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x558c5e);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'},_0x558c5e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x558c5e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x558c5e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x558c5e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x558c5e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x558c5e);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'},_0x558c5e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x558c5e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x558c5e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x558c5e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x558c5e);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});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_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});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'},_0x558c5e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x558c5e);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});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'},_0x558c5e);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'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});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'},_0x558c5e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x558c5e);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'},_0x558c5e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x558c5e);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'},_0x558c5e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x558c5e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x558c5e);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'},_0x558c5e);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'},_0x558c5e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x53d6d6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5342=['isMultiRange','isArray','createPositionBefore','change','content','join','map','splice','length','replace','add','type','isInContent','createPositionAfter','isTouching','isIntersecting','from','end','createRange','sort','schema','deletion','\x20[color\x20','getRanges','execute','start','value','isCollapsed','color','createPositionAt'];(function(_0x3db3f5,_0x53420b){const _0x73a568=function(_0x28c65a){while(--_0x28c65a){_0x3db3f5['push'](_0x3db3f5['shift']());}};_0x73a568(++_0x53420b);}(_0x5342,0x74));const _0x73a5=function(_0x3db3f5,_0x53420b){_0x3db3f5=_0x3db3f5-0x0;let _0x73a568=_0x5342[_0x3db3f5];return _0x73a568;};export function normalizeDescription(_0x251341){return Array[_0x73a5('0x5')](_0x251341)||(_0x251341=[_0x251341]),_0x251341[_0x73a5('0xa')](_0x48af3f=>{const _0x24f214=_0x48af3f[_0x73a5('0x8')][_0x73a5('0xd')](/\*/g,''),_0x114dcc=_0x48af3f[_0x73a5('0x2')]?_0x73a5('0x1a')+_0x48af3f[_0x73a5('0x2')][_0x73a5('0x0')]+']':'';return'['+_0x48af3f['type']+']\x20'+_0x24f214+_0x114dcc;})[_0x73a5('0x9')](';\x20');}export function sortSuggestions(_0x5f1949){return _0x5f1949[_0x73a5('0x17')]((_0x5d2a80,_0x1d06cf)=>_0x73a5('0x19')==_0x5d2a80[_0x73a5('0xf')]&&_0x73a5('0x19')!=_0x1d06cf[_0x73a5('0xf')]?-0x1:_0x73a5('0x19')!=_0x5d2a80[_0x73a5('0xf')]&&_0x73a5('0x19')==_0x1d06cf['type']?0x1:0x0);}export function getSelectedSuggestions(_0x4b3c8f,_0x349475){const _0x567134=Array[_0x73a5('0x14')](_0x4b3c8f[_0x73a5('0x1b')]()),_0x29d785=new Set();for(const _0x23d3bc of _0x349475)if(_0x23d3bc[_0x73a5('0x10')])for(const _0x1c1bb2 of _0x567134)for(const _0x49eca3 of _0x23d3bc['getRanges']())(_0x1c1bb2[_0x73a5('0x13')](_0x49eca3)||_0x4b3c8f[_0x73a5('0x1')]&&!_0x23d3bc[_0x73a5('0x4')]&&_0x23d3bc['next']&&_0x49eca3['end'][_0x73a5('0x12')](_0x1c1bb2[_0x73a5('0x1d')]))&&_0x29d785[_0x73a5('0xe')](_0x23d3bc);return _0x29d785;}export function getRangesOfBlockGroups(_0xc23e55,_0x5aa067){let _0x34c5d8,_0x3fe453=0x0;const _0x5da288=[],_0x519b83=_0x5aa067[_0x73a5('0x18')];for(;_0x3fe453<_0xc23e55[_0x73a5('0xc')];){const _0x3f6841=_0xc23e55[_0x3fe453],_0x396fdc=_0xc23e55[_0x3fe453+0x1];_0x34c5d8||(_0x34c5d8=_0x5aa067['createPositionBefore'](_0x3f6841)),co(_0x5aa067,_0x3f6841,_0x396fdc)||(_0x5da288['push'](_0x5aa067[_0x73a5('0x16')](_0x34c5d8,_0x519b83['isObject'](_0x3f6841)?_0x5aa067[_0x73a5('0x11')](_0x3f6841):_0x5aa067[_0x73a5('0x3')](_0x3f6841,_0x73a5('0x15')))),_0x34c5d8=null),_0x3fe453++;}return _0x5da288;}function co(_0x4648bf,_0x152736,_0x3c72ac){if(!_0x3c72ac)return!0x1;const _0x20e59d=_0x4648bf[_0x73a5('0x11')](_0x152736),_0x2a252a=_0x4648bf[_0x73a5('0x6')](_0x3c72ac);return _0x20e59d[_0x73a5('0x12')](_0x2a252a);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x566316,_0x5980fe,_0x311fe6){for(;_0x311fe6['length'];){const _0x43754e=_0x311fe6[_0x73a5('0xb')](0x0,0x64);_0x566316[_0x73a5('0x7')](()=>{for(const _0x5d24a9 of _0x43754e)_0x5d24a9['isInContent']&&_0x5980fe[_0x73a5('0x1c')](_0x5d24a9['id']);});}}
23
+ const _0x2571=['isTouching','splice','isInContent','createRange','type','\x20[color\x20','start','color','join','getRanges','push','isArray','value','replace','length','createPositionBefore','from','schema','change','add','isMultiRange','createPositionAfter','sort','execute','isCollapsed','deletion'];(function(_0x590306,_0x2571f7){const _0x38cd06=function(_0x28581c){while(--_0x28581c){_0x590306['push'](_0x590306['shift']());}};_0x38cd06(++_0x2571f7);}(_0x2571,0x1da));const _0x38cd=function(_0x590306,_0x2571f7){_0x590306=_0x590306-0x0;let _0x38cd06=_0x2571[_0x590306];return _0x38cd06;};export function normalizeDescription(_0x47b931){return Array[_0x38cd('0x5')](_0x47b931)||(_0x47b931=[_0x47b931]),_0x47b931['map'](_0x5b4d47=>{const _0x3e2ee0=_0x5b4d47['content'][_0x38cd('0x7')](/\*/g,''),_0x19d309=_0x5b4d47[_0x38cd('0x1')]?_0x38cd('0x19')+_0x5b4d47[_0x38cd('0x1')][_0x38cd('0x6')]+']':'';return'['+_0x5b4d47['type']+']\x20'+_0x3e2ee0+_0x19d309;})[_0x38cd('0x2')](';\x20');}export function sortSuggestions(_0x1ee5b8){return _0x1ee5b8[_0x38cd('0x10')]((_0x4cb756,_0x3906d7)=>_0x38cd('0x13')==_0x4cb756[_0x38cd('0x18')]&&'deletion'!=_0x3906d7[_0x38cd('0x18')]?-0x1:'deletion'!=_0x4cb756['type']&&'deletion'==_0x3906d7[_0x38cd('0x18')]?0x1:0x0);}export function getSelectedSuggestions(_0x1aac2a,_0x1eb118){const _0x4ee28e=Array[_0x38cd('0xa')](_0x1aac2a['getRanges']()),_0x2ecd9f=new Set();for(const _0x287c16 of _0x1eb118)if(_0x287c16['isInContent'])for(const _0x574714 of _0x4ee28e)for(const _0x12d0d5 of _0x287c16[_0x38cd('0x3')]())(_0x574714['isIntersecting'](_0x12d0d5)||_0x1aac2a[_0x38cd('0x12')]&&!_0x287c16[_0x38cd('0xe')]&&_0x287c16['next']&&_0x12d0d5['end']['isTouching'](_0x574714[_0x38cd('0x0')]))&&_0x2ecd9f[_0x38cd('0xd')](_0x287c16);return _0x2ecd9f;}export function getRangesOfBlockGroups(_0x4d57a7,_0x5b1c8c){let _0x8bd071,_0x1c14e0=0x0;const _0x2539a1=[],_0x41e150=_0x5b1c8c[_0x38cd('0xb')];for(;_0x1c14e0<_0x4d57a7[_0x38cd('0x8')];){const _0x4026f5=_0x4d57a7[_0x1c14e0],_0x29650b=_0x4d57a7[_0x1c14e0+0x1];_0x8bd071||(_0x8bd071=_0x5b1c8c['createPositionBefore'](_0x4026f5)),co(_0x5b1c8c,_0x4026f5,_0x29650b)||(_0x2539a1[_0x38cd('0x4')](_0x5b1c8c[_0x38cd('0x17')](_0x8bd071,_0x41e150['isObject'](_0x4026f5)?_0x5b1c8c[_0x38cd('0xf')](_0x4026f5):_0x5b1c8c['createPositionAt'](_0x4026f5,'end'))),_0x8bd071=null),_0x1c14e0++;}return _0x2539a1;}function co(_0x37ab55,_0x45945e,_0x508da2){if(!_0x508da2)return!0x1;const _0x469ad4=_0x37ab55[_0x38cd('0xf')](_0x45945e),_0x4e861c=_0x37ab55[_0x38cd('0x9')](_0x508da2);return _0x469ad4[_0x38cd('0x14')](_0x4e861c);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x2d4716,_0x321304,_0x42afeb){for(;_0x42afeb[_0x38cd('0x8')];){const _0x575e3d=_0x42afeb[_0x38cd('0x15')](0x0,0x64);_0x2d4716[_0x38cd('0xc')](()=>{for(const _0x366058 of _0x575e3d)_0x366058[_0x38cd('0x16')]&&_0x321304[_0x38cd('0x11')](_0x366058['id']);});}}