@ckeditor/ckeditor5-track-changes 37.0.0 → 37.0.1

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 +3 -3
  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 _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')]();}}
23
+ const _0x36f4=['has','EditorAnnotations','registerAnnotation','CommentsUI','isOn','_initializeController','commandName','getSuggestion','isMultiRange','pluginName','requires','suggestion-','value','_suggestionToController','editor','stopListening','_updateController','from','isDirty','button','remove','getByInnerView','descriptionParts','isInContent','innerView','comments.editorConfig','size','buttonView','change:activeAnnotations','Discard\x20all\x20suggestions','CommentsRepository','actionView','CommentView','discardButton','getAllAdjacentSuggestions','editing','TrackChangesEditing','destroy','arrowView','delete','Track\x20changes','length','_destroyController','_descriptionFactory','define','comments.maxCommentsWhenCollapsed','createCommentThreadController','listenTo','commentThread','activeMarkers','addSourceCollector','change:previous','_viewToController','Accept\x20all\x20selected\x20suggestions','suggestionLoaded','comments.maxThreadTotalWeight','getDescriptions','addComment','_refreshActiveMarkers','separator','createAnnotation','isEnabled','view','Annotations','add','_handleSuggestionControllerDelayed','_createUIButton','activeAnnotations','TrackChangesUI','get','set','hasSuggestion','_handleControllerBuffer','getJoined','reduce','head','discardSelectedSuggestions','_disableComments','refreshSelectedViews','SuggestionThreadView','previous','map','unbind','init','suggestionChanged','locale','execute','keys','focus','switchbutton','values','suggestionUnloaded','getFirstRange','source','_annotationViews','bind','type','model','acceptSelectedSuggestions','trackChanges.SuggestionThreadView','commands','trackChanges','plugins','createAnnotationView','Accept\x20all\x20suggestions','push','toMany','getMarkers'];(function(_0x313d64,_0x36f45f){const _0x3f751f=function(_0xac24ac){while(--_0xac24ac){_0x313d64['push'](_0x313d64['shift']());}};_0x3f751f(++_0x36f45f);}(_0x36f4,0x133));const _0x3f75=function(_0x313d64,_0x36f45f){_0x313d64=_0x313d64-0x0;let _0x3f751f=_0x36f4[_0x313d64];return _0x3f751f;};import{Plugin as _0x22ce4c}from'ckeditor5/src/core';import{Collection as _0x3b1209}from'ckeditor5/src/utils';import{Model as _0xbc0774,SplitButtonView as _0x4181ce,createDropdown as _0xf6037a,addListToDropdown as _0x29c764}from'ckeditor5/src/ui';import{Users as _0xb86ca7,getDateTimeFormatter as _0x53a538,getAllMarkersDomElementsSorted as _0x53d969}from'ckeditor5-collaboration/src/collaboration-core';import _0x45e6f8 from'./trackchangesediting';import _0x2f353c from'./ui/suggestioncontroller';import _0x12a1da from'./ui/view/suggestionthreadview';import{getTranslation as _0xee3a58}from'./utils/common-translations';import _0x4a014a from'../theme/icons/track-changes.svg';export default class d extends _0x22ce4c{static get[_0x3f75('0x1b')](){return[_0x45e6f8,_0xb86ca7,_0x3f75('0x2f'),_0x3f75('0x50'),_0x3f75('0x12')];}static get[_0x3f75('0x1a')](){return _0x3f75('0x55');}constructor(_0x4126fa){super(_0x4126fa),this[_0x3f75('0x1e')]=new Map(),this[_0x3f75('0x45')]=new Map(),this[_0x3f75('0x3')]=new Map(),this[_0x3f75('0x59')]=new Map();const _0x588324=this['editor']['config'];_0x588324[_0x3f75('0x3d')](_0x3f75('0x8'),_0x12a1da),_0x588324[_0x3f75('0x3d')]('trackChanges.disableComments',!0x1),this[_0x3f75('0x5e')]=_0x588324[_0x3f75('0x56')]('trackChanges.disableComments');}[_0x3f75('0x52')](_0x741916,_0x4d082f){0x0===this[_0x3f75('0x59')][_0x3f75('0x2b')]&&setTimeout(()=>{for(const [_0x414b06,_0x4063eb]of this['_handleControllerBuffer']){const _0x1eb9c5=this[_0x3f75('0x1e')]['has'](_0x414b06);_0x1eb9c5||_0x4063eb?_0x1eb9c5&&_0x4063eb&&this['_destroyController'](_0x414b06):this[_0x3f75('0x16')](_0x414b06);}this[_0x3f75('0x1f')]['plugins'][_0x3f75('0x56')](_0x3f75('0x12'))[_0x3f75('0x5f')](),this['_refreshActiveMarkers'](),this[_0x3f75('0x59')]['clear']();},0xa),this[_0x3f75('0x59')]['set'](_0x741916,_0x4d082f);}[_0x3f75('0x64')](){const _0x49d757=this[_0x3f75('0x1f')],_0x543599=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x2be0a5=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x3d0dc3=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')]('EditorAnnotations'),_0x56e9f4=_0x49d757['plugins'][_0x3f75('0x56')](_0x3f75('0x2f'));_0x49d757['ui']['componentFactory']['add']('trackChanges',_0x47a898=>this[_0x3f75('0x53')](_0x47a898)),_0x3d0dc3[_0x3f75('0x43')](()=>{const _0x78e04=[];for(const [_0x2f77ba,_0x307b3f]of Array[_0x3f75('0x22')](this[_0x3f75('0x1e')])){const _0x502aa2=_0x2f77ba['getAllAdjacentSuggestions'](),_0x25c7e5=[];for(const _0x5de521 of _0x502aa2){if(!_0x5de521[_0x3f75('0x28')])continue;if(_0x5de521[_0x3f75('0x19')]){_0x25c7e5[_0x3f75('0xe')](..._0x5de521['getRanges']());continue;}const _0x34269e=_0x5de521[_0x3f75('0x1')]();if(_0x25c7e5[_0x3f75('0x3a')]>0x0){const _0x50b19b=_0x25c7e5[0x0][_0x3f75('0x5a')](_0x34269e);if(_0x50b19b){_0x25c7e5[0x0]=_0x50b19b;continue;}}_0x25c7e5[_0x3f75('0xe')](_0x34269e);}_0x78e04[_0x3f75('0xe')]([_0x307b3f[_0x3f75('0x4f')],_0x25c7e5]);}return _0x78e04;}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x47'),(_0x2615a1,_0x30ea28)=>{this[_0x3f75('0x40')](_0x30ea28,_0x3f75('0x44'),(_0x3eab2a,_0x1971af,_0x4e7247,_0x3fb13a)=>{_0x30ea28[_0x3f75('0x28')]&&(null==_0x4e7247?(this[_0x3f75('0x21')](_0x3fb13a['head']),this[_0x3f75('0x52')](_0x30ea28,!0x1)):(this[_0x3f75('0x21')](_0x4e7247[_0x3f75('0x5c')]),this[_0x3f75('0x52')](_0x30ea28,!0x0)));}),null===_0x30ea28[_0x3f75('0x61')]?this[_0x3f75('0x52')](_0x30ea28,!0x1):this[_0x3f75('0x21')](_0x30ea28[_0x3f75('0x5c')]);}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x0'),(_0x42e142,_0x195230,_0x150d51)=>{this[_0x3f75('0x20')](_0x195230,'change:previous'),this[_0x3f75('0x59')][_0x3f75('0x38')](_0x195230);const _0x45c745=_0x150d51?_0x150d51[_0x3f75('0x5c')]:_0x195230,_0x1135e0=this['_suggestionToController'][_0x3f75('0x56')](_0x45c745);null!==_0x150d51&&this[_0x3f75('0x21')](_0x45c745),null===_0x150d51&&_0x1135e0&&this[_0x3f75('0x3b')](_0x195230);}),this['listenTo'](_0x543599,_0x3f75('0x65'),(_0xe00b04,_0x50ab48)=>{this[_0x3f75('0x21')](_0x50ab48);}),this['listenTo'](_0x2be0a5,_0x3f75('0x2d'),()=>{this[_0x3f75('0x4b')]();}),this[_0x3f75('0x40')](_0x56e9f4,_0x3f75('0x4a'),(_0xd0f1fd,{threadId:_0x12a07a,isFromAdapter:_0x1f642b})=>{if(_0x1f642b||!_0x543599[_0x3f75('0x58')](_0x12a07a))return;const _0x538ae6=_0x543599[_0x3f75('0x18')](_0x12a07a);this[_0x3f75('0x1e')]['get'](_0x538ae6)[_0x3f75('0x4f')][_0x3f75('0x69')]();},{'priority':'lowest'});}[_0x3f75('0x4b')](){const _0x446d29=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x8fc63=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x43c26c=Array[_0x3f75('0x22')](_0x446d29[_0x3f75('0x54')],_0x1b108e=>_0x1b108e[_0x3f75('0x29')])['filter'](_0xaef36b=>this[_0x3f75('0x45')][_0x3f75('0x11')](_0xaef36b)),_0x260d98=[];for(const _0x1ab33c of _0x43c26c){const _0x58d3e8=this[_0x3f75('0x45')]['get'](_0x1ab33c)[_0x3f75('0x6')]['getAllAdjacentSuggestions']();_0x260d98[_0x3f75('0xe')](..._0x58d3e8[_0x3f75('0x5b')]((_0xbd6249,_0x41254d)=>[..._0xbd6249,..._0x41254d['getMarkerNames']()],[]));}_0x8fc63[_0x3f75('0x42')]=_0x260d98;}['_createUIButton'](_0xdf3e11){const _0x5829bd=_0xf6037a(_0xdf3e11,_0x4181ce),_0x2220cf=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0x3f75('0xa')),_0x456b36=_0xee3a58(_0xdf3e11,_0x3f75('0x39'));_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x57')]({'tooltip':_0x456b36,'label':_0x456b36,'icon':_0x4a014a}),_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x4')](_0x3f75('0x15'))['to'](_0x2220cf,_0x3f75('0x1d')),_0x5829bd[_0x3f75('0x2c')]['on'](_0x3f75('0x67'),()=>{_0x2220cf['execute'](),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();});const _0x46102a=new _0x3b1209(),_0x5508a2=[{'type':_0x3f75('0x6a'),'model':{'withText':!0x0,'label':_0x456b36,'commandName':_0x3f75('0xa')}},{'type':'separator'},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0xd')),'commandName':'acceptAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x46')),'commandName':_0x3f75('0x7')}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x2e')),'commandName':'discardAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3f75('0x5d')}}];for(const _0x45860c of _0x5508a2){let _0x55f4c1={'type':_0x3f75('0x4c')};if(_0x45860c[_0x3f75('0x6')]){const _0xb49240=new _0xbc0774(_0x45860c['model']),_0xdbe8c1=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0xb49240[_0x3f75('0x17')]);_0xb49240[_0x3f75('0x4')](_0x3f75('0x15'),'isEnabled')['to'](_0xdbe8c1,_0x3f75('0x1d'),_0x3f75('0x4e')),_0x55f4c1={'type':_0x45860c[_0x3f75('0x5')],'model':_0xb49240};}_0x46102a['add'](_0x55f4c1);}_0x29c764(_0x5829bd,_0x46102a);const _0x3058f3=_0x5508a2['filter'](_0xb49c06=>null!=_0xb49c06[_0x3f75('0x6')])[_0x3f75('0x62')](_0x4c13a4=>this[_0x3f75('0x1f')][_0x3f75('0x9')]['get'](_0x4c13a4[_0x3f75('0x6')][_0x3f75('0x17')])),_0x286117=_0x5829bd[_0x3f75('0x2c')];return _0x286117['actionView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117['arrowView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117[_0x3f75('0x30')]['bind']('isEnabled')['to'](_0x2220cf,'isEnabled'),_0x286117[_0x3f75('0x37')][_0x3f75('0x4')](_0x3f75('0x4e'))[_0x3f75('0xf')](_0x3058f3,_0x3f75('0x4e'),(..._0x154681)=>_0x154681['some'](_0x359252=>_0x359252)),_0x5829bd['on']('execute',_0x2267d3=>{this['editor'][_0x3f75('0x67')](_0x2267d3[_0x3f75('0x2')][_0x3f75('0x17')]),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();}),_0x5829bd;}['_initializeController'](_0x21b04a){const _0x2c3732=this[_0x3f75('0x1f')],_0x5e54dd=_0x2c3732['config'],_0x41a6c8=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')]('Annotations'),_0x4bd52a=_0x2c3732['plugins'][_0x3f75('0x56')](_0x3f75('0x2f')),_0x3f4280=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x12')),_0x566809=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0xb86ca7)['me'],_0x1b4d47=_0x5e54dd['get'](_0x3f75('0xa'))[_0x3f75('0x60')],{CommentsListView:_0x5a8c08,CommentThreadInputView:_0x572f5c}=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x14'));let _0x28c234,_0x353264;this[_0x3f75('0x3')][_0x3f75('0x11')](_0x21b04a['id'])?(_0x353264=this[_0x3f75('0x3')][_0x3f75('0x56')](_0x21b04a['id']),_0x28c234=_0x353264['mainView']):(_0x28c234=new _0x1b4d47(_0x2c3732[_0x3f75('0x66')],_0x21b04a,_0x566809,{'disableComments':this['_disableComments'],'editorConfig':_0x5e54dd['get'](_0x3f75('0x2a')),'maxCommentsWhenCollapsed':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x3e')),'maxThreadTotalWeight':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x48')),'maxCommentCharsWhenCollapsed':_0x5e54dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53a538(_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x66'))),'CommentView':_0x5e54dd['get']('comments')[_0x3f75('0x31')],'CommentsListView':_0x5a8c08,'CommentThreadInputView':_0x572f5c}),_0x28c234['acceptButton']['on'](_0x3f75('0x67'),()=>{_0x2c3732['editing'][_0x3f75('0x4f')]['focus']();}),_0x28c234[_0x3f75('0x32')]['on'](_0x3f75('0x67'),()=>{_0x2c3732[_0x3f75('0x34')]['view'][_0x3f75('0x69')]();}),_0x353264=_0x41a6c8[_0x3f75('0xc')](this[_0x3f75('0x1f')]['locale'],_0x28c234),_0x353264[_0x3f75('0x4')]('isDirty')['to'](_0x28c234,_0x3f75('0x23')),_0x353264[_0x3f75('0x4')](_0x3f75('0x3a'))['to'](_0x28c234),_0x353264['bind'](_0x3f75('0x5'))['to'](_0x28c234,'type',_0xe98f46=>_0x3f75('0x1c')+_0xe98f46),this[_0x3f75('0x3')][_0x3f75('0x57')](_0x21b04a['id'],_0x353264));const _0x4ca5f8=_0x4bd52a[_0x3f75('0x3f')](_0x21b04a[_0x3f75('0x41')],_0x28c234),_0x529ff2=new _0x2f353c(_0x2c3732,_0x21b04a,_0x28c234,_0x4ca5f8),_0x40771c=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x312f75=>_0x312f75[_0x3f75('0x28')]);_0x28c234[_0x3f75('0x27')]=_0x2c3732[_0x3f75('0xb')]['get'](_0x3f75('0x35'))[_0x3f75('0x3c')][_0x3f75('0x49')](_0x40771c),this[_0x3f75('0x1e')][_0x3f75('0x57')](_0x21b04a,_0x529ff2),this[_0x3f75('0x45')][_0x3f75('0x57')](_0x28c234,_0x529ff2);const _0x119c51=_0x41a6c8[_0x3f75('0x4d')]({'view':_0x353264,'target':()=>{const _0x398ce3=[],_0x58462d=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x576716=>_0x576716[_0x3f75('0x28')]);for(const _0x5e7984 of _0x58462d)_0x398ce3[_0x3f75('0xe')](..._0x5e7984[_0x3f75('0x10')]());return _0x53d969(_0x2c3732[_0x3f75('0x34')],_0x398ce3);},'type':()=>_0x3f75('0x1c')+_0x529ff2['view'][_0x3f75('0x5')]});_0x41a6c8[_0x3f75('0x51')](_0x119c51),_0x3f4280[_0x3f75('0x13')](_0x119c51);}['_destroyController'](_0x4cf77e){const _0x448e06=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x5d81b9=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x4cf77e),_0x4d7a1d=_0x5d81b9[_0x3f75('0x4f')],_0x56dcb0=_0x448e06[_0x3f75('0x26')](_0x4d7a1d);_0x56dcb0&&_0x448e06[_0x3f75('0x25')](_0x56dcb0),this[_0x3f75('0x1e')]['delete'](_0x4cf77e),this['_viewToController']['delete'](_0x4d7a1d),_0x5d81b9[_0x3f75('0x36')]();}[_0x3f75('0x21')](_0x5ec115){if(!_0x5ec115[_0x3f75('0x28')]||!this[_0x3f75('0x1e')][_0x3f75('0x11')](_0x5ec115))return;const _0x2beba1=this[_0x3f75('0x1f')]['plugins']['get']('TrackChangesEditing'),_0x1f9211=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x5ec115),_0x1ff358=_0x5ec115[_0x3f75('0x33')]();_0x1f9211[_0x3f75('0x4f')][_0x3f75('0x27')]=_0x2beba1[_0x3f75('0x3c')][_0x3f75('0x49')](_0x1ff358);}[_0x3f75('0x36')](){for(const _0x53bbbd of this[_0x3f75('0x1e')][_0x3f75('0x68')]())this[_0x3f75('0x3b')](_0x53bbbd);for(const _0x1b5636 of this[_0x3f75('0x3')][_0x3f75('0x6b')]())_0x1b5636['mainView']['destroy']();super[_0x3f75('0x36')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0xe9aa=['locale','view','unbind','_setPendingAction','isEnabled','canAccept','model','acceptSuggestion','commands','canDiscard','_pendingAction','listenTo','discardSuggestion','add','change:isDirty','_editor','_acceptCommand','isDirty','_removePendingAction','commentThreadController','get','execute','bind','stopListening','PendingActions','remove','destroy','plugins','_discardCommand'];(function(_0x4a37ab,_0xe9aae9){const _0x395e5b=function(_0x532d54){while(--_0x532d54){_0x4a37ab['push'](_0x4a37ab['shift']());}};_0x395e5b(++_0xe9aae9);}(_0xe9aa,0x19c));const _0x395e=function(_0x4a37ab,_0xe9aae9){_0x4a37ab=_0x4a37ab-0x0;let _0x395e5b=_0xe9aa[_0x4a37ab];return _0x395e5b;};import{ObservableMixin as _0x2a1998}from'ckeditor5/src/utils';import{getTranslation as _0x53fb1f}from'../utils/common-translations';export default class Lt extends _0x2a1998(){constructor(_0xa28128,_0x2f7d71,_0x2109fb,_0x39a8a0){super(),this[_0x395e('0x0')]=_0x2f7d71,this[_0x395e('0x18')]=_0x2109fb,this[_0x395e('0xd')]=_0x39a8a0,this[_0x395e('0x9')]=_0xa28128,this['_acceptCommand']=_0xa28128[_0x395e('0x2')][_0x395e('0xe')]('acceptSuggestion'),this['_discardCommand']=_0xa28128[_0x395e('0x2')][_0x395e('0xe')](_0x395e('0x6')),this['view'][_0x395e('0x10')](_0x395e('0x1b'))['to'](this[_0x395e('0xa')],this[_0x395e('0x16')],(_0x1b7579,_0x547d7b)=>_0x1b7579||_0x547d7b),this[_0x395e('0x18')][_0x395e('0x10')](_0x395e('0x1c'))['to'](this[_0x395e('0xa')],'isEnabled'),this['view']['bind'](_0x395e('0x3'))['to'](this[_0x395e('0x16')],_0x395e('0x1b')),this[_0x395e('0x4')]=null,_0x2109fb['isDirty']&&this['_setPendingAction'](),this[_0x395e('0x5')](_0x2109fb,_0x395e('0x1'),()=>this['acceptSuggestion']()),this[_0x395e('0x5')](_0x2109fb,_0x395e('0x6'),()=>this[_0x395e('0x6')]()),this[_0x395e('0x5')](_0x2109fb,_0x395e('0x8'),()=>{_0x2109fb[_0x395e('0xb')]?this['_setPendingAction']():this['_removePendingAction']();});}[_0x395e('0x1')](){this[_0x395e('0xa')][_0x395e('0xf')](this['model']['id']);}[_0x395e('0x6')](){this[_0x395e('0x16')][_0x395e('0xf')](this[_0x395e('0x0')]['id']);}[_0x395e('0x14')](){this[_0x395e('0x18')][_0x395e('0x19')]('isEnabled'),this['view'][_0x395e('0x19')](_0x395e('0x1c')),this[_0x395e('0x18')]['unbind'](_0x395e('0x3')),this[_0x395e('0x11')](),this[_0x395e('0xd')][_0x395e('0x14')](),this[_0x395e('0x4')]&&this['_removePendingAction']();}[_0x395e('0x1a')](){const _0x4feb8b=_0x53fb1f(this[_0x395e('0x9')][_0x395e('0x17')],'PENDING_ACTION_SUGGESTION');this[_0x395e('0x4')]=this[_0x395e('0x9')][_0x395e('0x15')][_0x395e('0xe')](_0x395e('0x12'))[_0x395e('0x7')](_0x4feb8b);}[_0x395e('0xc')](){null!==this[_0x395e('0x4')]&&this[_0x395e('0x9')][_0x395e('0x15')][_0x395e('0xe')](_0x395e('0x12'))[_0x395e('0x13')](this['_pendingAction']),this['_pendingAction']=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x53c5=['canDiscard','value','bind','_model','editorConfig','isDirty','updateComment','delegate','commentsListView','destroy','length','_config','_createCommentThreadInputView','isEnabled','cancel','addComment','_localUser','authoredAt','commentThreadInputView','commentInputView','commentThread','showInput','assign','isReadOnly','canAccept','set','locale','isActive','focus','setData','element','_createCommentViews','removeComment'];(function(_0x3af7e8,_0x53c55b){const _0x92035e=function(_0x43c931){while(--_0x43c931){_0x3af7e8['push'](_0x3af7e8['shift']());}};_0x92035e(++_0x53c55b);}(_0x53c5,0x15b));const _0x9203=function(_0x3af7e8,_0x53c55b){_0x3af7e8=_0x3af7e8-0x0;let _0x92035e=_0x53c5[_0x3af7e8];return _0x92035e;};import{View as _0x42ff75}from'ckeditor5/src/ui';export default class ii extends _0x42ff75{constructor(_0x364550,_0x589e41,_0x47fb31,_0x342d82){super(_0x364550),this['commentsListView']=null,this[_0x9203('0x1')]=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x589e41[_0x9203('0x0')]),this['bind'](_0x9203('0x0'))['to'](_0x589e41),this[_0x9203('0x8')]('descriptionParts',[]),this['set'](_0x9203('0x15'),!0x1),this[_0x9203('0x8')](_0x9203('0x1d'),!0x1),this[_0x9203('0x8')](_0x9203('0x7'),!0x1),this['set'](_0x9203('0x10'),!0x1),this[_0x9203('0x13')]=_0x589e41,this[_0x9203('0x20')]=_0x47fb31,this[_0x9203('0x1b')]=_0x342d82,_0x342d82['disableComments']?this[_0x9203('0x8')]('length',0x1):this[_0x9203('0xe')]();}[_0x9203('0xb')](){this[_0x9203('0xd')]['focus']();}[_0x9203('0x19')](){this['commentsListView']&&this['commentsListView'][_0x9203('0x19')](),this['commentThreadInputView']&&this[_0x9203('0x1')]['destroy'](),super[_0x9203('0x19')]();}[_0x9203('0xe')](){const {CommentsListView:_0x2d151f}=this['_config'];this[_0x9203('0x18')]=new _0x2d151f(this[_0x9203('0x9')],this[_0x9203('0x13')]['commentThread'],Object[_0x9203('0x5')]({'CommentView':this[_0x9203('0x1b')]['CommentView']},this[_0x9203('0x1b')])),this['commentsListView'][_0x9203('0x17')](_0x9203('0xf'))['to'](this),this[_0x9203('0x18')][_0x9203('0x17')](_0x9203('0x16'))['to'](this),this[_0x9203('0x18')][_0x9203('0x12')](_0x9203('0xa'))['to'](this),this[_0x9203('0x8')](_0x9203('0x1a'),this['commentsListView']['length']+0x1),this['bind'](_0x9203('0x1a'))['to'](this[_0x9203('0x18')],'length',_0x508e82=>_0x508e82+0x1),this[_0x9203('0x1')]=this[_0x9203('0x1c')](),this['on'](_0x9203('0xf'),()=>this[_0x9203('0xb')]()),this['bind'](_0x9203('0x15'))['to'](this[_0x9203('0x18')],'hasDirtyComment',this[_0x9203('0x1')][_0x9203('0x2')],_0x9203('0x11'),(_0x383e79,_0x5d76e7)=>_0x383e79||!!_0x5d76e7);}[_0x9203('0x1c')](){const {CommentThreadInputView:_0x4a5dbc}=this[_0x9203('0x1b')],_0x7a0e9c=new _0x4a5dbc(this[_0x9203('0x9')],this['_localUser'],this[_0x9203('0x1b')][_0x9203('0x14')]),_0x34b97e=_0x7a0e9c[_0x9203('0x2')];return _0x7a0e9c[_0x9203('0x12')](_0x9203('0x4'))['to'](this,'isActive',this[_0x9203('0x13')][_0x9203('0x3')],_0x9203('0x6'),_0x34b97e,_0x9203('0x11'),(_0x5cf548,_0x4de9ee,_0x4cd5c4)=>!!_0x4cd5c4||_0x5cf548&&!_0x4de9ee),_0x34b97e['on']('submit',(_0x36ed64,_0x3b068e)=>{this['fire'](_0x9203('0x1f'),_0x3b068e),_0x34b97e['editor'][_0x9203('0xc')]('');}),_0x34b97e['on'](_0x9203('0x1e'),()=>this[_0x9203('0xb')]()),_0x34b97e['bind']('disabledSubmit')['to'](this[_0x9203('0x13')][_0x9203('0x3')],'isReadOnly'),_0x7a0e9c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}
23
+ const _0x45ac=['isEnabled','creator','locale','_createButton','ck-suggestion--disabled-comments','ck-suggestion__actions','acceptButton','check','Discard\x20suggestion','commentThreadInputView','ck-suggestion-','importWord','formatDateTime','source','getUserViewNotificationText','join','ck-annotation__main','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-suggestion-wrapper--active','createElement','discardSuggestion','EXTERNAL_IMPORT_WORD_AVATAR','author','bind','@external','ck-suggestion__user','span','getExternalSuggestionNote','EXTERNAL_SUGGESTION','_model','description','ck-annotation__info-time','canDiscard','querySelector','change:description','descriptionParts','ck-comment__external','execute','canAccept','_config','userView','<p>','ck-annotation__info-name','getTemplate','attributes','fire','<span\x20class=\x22ck-suggestion-type\x22>','type','</p>','authoredAt','ck-suggestion__info-name','ck-comment__info-time','</span>','title','ck-annotation__user','ck-suggestion__info','bindTemplate','div','isActive','ck-suggestion__main','render','discardButton','ck-suggestion--discard','push','value','ck-annotation__info','_descriptionElement','commentThread','set','\x22></span>','disableComments','time','cancel','color','isExternal','innerHTML','name','extendTemplate','content','split','children','element'];(function(_0x179b9a,_0x45ac07){const _0x4ce906=function(_0xa7a83){while(--_0xa7a83){_0x179b9a['push'](_0x179b9a['shift']());}};_0x4ce906(++_0x45ac07);}(_0x45ac,0xc7));const _0x4ce9=function(_0x179b9a,_0x45ac07){_0x179b9a=_0x179b9a-0x0;let _0x4ce906=_0x45ac[_0x179b9a];return _0x4ce906;};import{getTranslation as _0x5c72a7}from'../../utils/common-translations';import{default as _0x288fa3}from'./basesuggestionthreadview';import{ButtonView as _0x323952}from'ckeditor5/src/ui';import{icons as _0x37b5d1}from'ckeditor5/src/core';import{trimHtml as _0x537b48,UserView as _0x394743}from'ckeditor5-collaboration/src/collaboration-core';export default class Rt extends _0x288fa3{constructor(_0x1cefc2,_0x531c99,_0x343af6,_0x21776e){super(_0x1cefc2,_0x531c99,_0x343af6,_0x21776e),this[_0x4ce9('0x21')](_0x4ce9('0xc'),''),this[_0x4ce9('0x46')]('type')['to'](this,'descriptionParts',_0x186948=>_0x186948&&_0x186948[0x0]?_0x186948[0x0]['type']:''),this[_0x4ce9('0x46')]('description')['to'](this,_0x4ce9('0x0'),this,_0x4ce9('0x17'),(_0x5ac0ee,_0x34926f)=>{let _0x5733d4='';for(const _0x18fca6 of _0x5ac0ee)_0x5733d4+=_0x4ce9('0x6')+ns(_0x18fca6[_0x4ce9('0x2b')],_0x18fca6[_0x4ce9('0x26')])+_0x4ce9('0xd');return _0x34926f?_0x5733d4:_0x537b48(_0x5733d4,{'limit':0x8c});}),this[_0x4ce9('0x1f')]=null,this[_0x4ce9('0x35')]=this[_0x4ce9('0x32')](_0x5c72a7(_0x1cefc2,'Accept\x20suggestion'),_0x37b5d1[_0x4ce9('0x36')],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton'][_0x4ce9('0x46')](_0x4ce9('0x2f'))['to'](this,_0x4ce9('0x3')),this[_0x4ce9('0x1a')]=this[_0x4ce9('0x32')](_0x5c72a7(_0x1cefc2,_0x4ce9('0x37')),_0x37b5d1[_0x4ce9('0x25')],_0x4ce9('0x1b'),_0x4ce9('0x43'),'sw'),this[_0x4ce9('0x1a')][_0x4ce9('0x46')](_0x4ce9('0x2f'))['to'](this,_0x4ce9('0x4f')),this[_0x4ce9('0x5')]=new _0x394743(_0x1cefc2,this[_0x4ce9('0x4c')][_0x4ce9('0x45')],this[_0x4ce9('0x3d')]()),this['userView'][_0x4ce9('0x2a')]({'attributes':{'class':[_0x4ce9('0x48'),_0x4ce9('0x13')]}}),this['setTemplate'](this[_0x4ce9('0x8')]());}[_0x4ce9('0x8')](){const _0x1aa544=this[_0x4ce9('0x15')],_0x286dc6=[{'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x14'),_0x4ce9('0x1e')]},'children':[{'tag':_0x4ce9('0x49'),'children':[{'text':this[_0x4ce9('0x5')][_0x4ce9('0x29')]}],'attributes':{'class':[_0x4ce9('0xf'),_0x4ce9('0x7')]}},{'tag':_0x4ce9('0x24'),'attributes':{'datetime':_0x1aa544['to'](_0x4ce9('0xe')),'class':[_0x4ce9('0x10'),_0x4ce9('0x4e')]},'children':[{'text':_0x1aa544['to'](_0x4ce9('0xe'),_0x4499cd=>this[_0x4ce9('0x4')][_0x4ce9('0x3b')](_0x4499cd))}]}]},{'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x34'),'ck-annotation__actions']},'children':[this[_0x4ce9('0x35')],this['discardButton']]},{'tag':_0x4ce9('0x16'),'attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x4ce9('0x4c')][_0x4ce9('0x27')]&&_0x286dc6[_0x4ce9('0x1c')]({'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x1')]},'children':[{'text':this[_0x4ce9('0x4a')]()}]});const _0x36067a={'tag':_0x4ce9('0x16'),'attributes':{'class':['ck-suggestion-wrapper',_0x1aa544['if'](_0x4ce9('0x17'),_0x4ce9('0x41')),_0x1aa544['to']('type',_0x216759=>_0x4ce9('0x39')+_0x216759),this[_0x4ce9('0x4')][_0x4ce9('0x23')]&&_0x4ce9('0x33')],'data-suggestion-id':this[_0x4ce9('0x4c')]['id'],'data-thread-id':this[_0x4ce9('0x4c')][_0x4ce9('0x20')]['id'],'data-author-id':this[_0x4ce9('0x4c')]['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x4ce9('0x16'),'attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this[_0x4ce9('0x5')],{'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x18'),_0x4ce9('0x3f')]},'children':_0x286dc6}]}]};return this['commentsListView']&&this[_0x4ce9('0x38')]&&_0x36067a[_0x4ce9('0x2d')][_0x4ce9('0x1c')](this['commentsListView'],this[_0x4ce9('0x38')]),_0x36067a;}[_0x4ce9('0x19')](){super[_0x4ce9('0x19')](),this[_0x4ce9('0x1f')]=this[_0x4ce9('0x2e')][_0x4ce9('0x50')]('.ck-annotation__content-wrapper'),this[_0x4ce9('0x1f')][_0x4ce9('0x28')]=this[_0x4ce9('0x4d')],this['on'](_0x4ce9('0x51'),(_0x2b37be,_0x4fa139,_0x5ba9dc)=>{this[_0x4ce9('0x1f')][_0x4ce9('0x28')]=_0x5ba9dc;});}[_0x4ce9('0x32')](_0x4c152e,_0x233d1d,_0x460a0d,_0x188951,_0x1504e5){const _0x193723=new _0x323952(this[_0x4ce9('0x31')]);return _0x193723[_0x4ce9('0x21')]({'label':_0x4c152e,'icon':_0x233d1d,'tooltip':!0x0,'tooltipPosition':_0x1504e5}),_0x193723[_0x4ce9('0x2a')]({'attributes':{'class':_0x460a0d}}),_0x193723['on'](_0x4ce9('0x2'),()=>{this[_0x4ce9('0xa')](_0x188951,this[_0x4ce9('0x4c')]['id']);}),_0x193723;}[_0x4ce9('0x4a')](){return _0x4ce9('0x3a')===this['_model'][_0x4ce9('0x9')][_0x4ce9('0x47')][_0x4ce9('0x3c')]?_0x5c72a7(this[_0x4ce9('0x31')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x5c72a7(this[_0x4ce9('0x31')],_0x4ce9('0x4b'));}['getUserViewNotificationText'](){return this[_0x4ce9('0x4c')][_0x4ce9('0x27')]?_0x4ce9('0x3a')===this[_0x4ce9('0x4c')]['attributes'][_0x4ce9('0x47')][_0x4ce9('0x3c')]?_0x5c72a7(this[_0x4ce9('0x31')],_0x4ce9('0x44'),this[_0x4ce9('0x4c')][_0x4ce9('0x30')]['name']):_0x5c72a7(this[_0x4ce9('0x31')],'EXTERNAL_AVATAR',this['_model'][_0x4ce9('0x30')][_0x4ce9('0x29')]):null;}}function ns(_0x57a1dd,_0x5728de){let _0x4a85eb='';return _0x4a85eb+=_0x57a1dd[_0x4ce9('0x2c')]('*')['map']((_0x4e7833,_0x4b3986)=>_0x4b3986%0x2!=0x0?_0x4ce9('0xb')+os(_0x4e7833)+_0x4ce9('0x11'):os(_0x4e7833))[_0x4ce9('0x3e')](''),_0x5728de&&(_0x4a85eb+=_0x4ce9('0x40')+_0x5728de[_0x4ce9('0x1d')]+'\x22\x20title=\x22'+_0x5728de[_0x4ce9('0x12')]+_0x4ce9('0x22')),_0x4a85eb;}function os(_0x3866a1){const _0x20f131=document[_0x4ce9('0x42')](_0x4ce9('0x49'));return _0x20f131['innerText']=_0x3866a1,_0x20f131[_0x4ce9('0x28')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ export function getTranslation(_0x491287,_0x8406df,_0x5c0474){const t=_0x491287['t'];switch(_0x8406df){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',_0x5c0474);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5c0474);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5c0474);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5c0474);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5c0474);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',_0x5c0474);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5c0474);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',_0x5c0474);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5c0474);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5c0474);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5c0474);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5c0474);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5c0474);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5c0474);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5c0474);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5c0474);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5c0474);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5c0474);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5c0474);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5c0474);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5c0474);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'},_0x5c0474);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5c0474);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5c0474);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5c0474);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5c0474);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5c0474);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5c0474);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5c0474);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5c0474);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'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5c0474);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'},_0x5c0474);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'},_0x5c0474);default:return _0x8406df;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']);});}}
23
+ const _0x3cb3=['add','length','createPositionAt','getRanges','from','isArray','isCollapsed','isTouching','start','deletion','value','isIntersecting','color','isInContent','execute','change','createPositionAfter','schema','getRange','next','isObject','end','sort','splice','type','content','createRange'];(function(_0x1212e5,_0x3cb3c5){const _0x7e7d16=function(_0x5ee4bd){while(--_0x5ee4bd){_0x1212e5['push'](_0x1212e5['shift']());}};_0x7e7d16(++_0x3cb3c5);}(_0x3cb3,0xaf));const _0x7e7d=function(_0x1212e5,_0x3cb3c5){_0x1212e5=_0x1212e5-0x0;let _0x7e7d16=_0x3cb3[_0x1212e5];return _0x7e7d16;};export function normalizeDescription(_0x41404a){return Array[_0x7e7d('0x13')](_0x41404a)||(_0x41404a=[_0x41404a]),_0x41404a['map'](_0x41d533=>{const _0x46ee69=_0x41d533[_0x7e7d('0xc')]['replace'](/\*/g,''),_0xf8a98=_0x41d533[_0x7e7d('0x1a')]?'\x20[color\x20'+_0x41d533[_0x7e7d('0x1a')][_0x7e7d('0x18')]+']':'';return'['+_0x41d533['type']+']\x20'+_0x46ee69+_0xf8a98;})['join'](';\x20');}export function sortSuggestions(_0x42abdb){return _0x42abdb[_0x7e7d('0x9')]((_0x2eb7c4,_0x4efb48)=>'deletion'==_0x2eb7c4[_0x7e7d('0xb')]&&'deletion'!=_0x4efb48[_0x7e7d('0xb')]?-0x1:_0x7e7d('0x17')!=_0x2eb7c4['type']&&_0x7e7d('0x17')==_0x4efb48[_0x7e7d('0xb')]?0x1:0x0);}export function getSelectedSuggestions(_0x1acb4f,_0x393b03){const _0x5a69b9=Array[_0x7e7d('0x12')](_0x1acb4f[_0x7e7d('0x11')]()),_0x1ad02c=new Set();for(const _0x5cc0b4 of _0x393b03)if(_0x5cc0b4[_0x7e7d('0x0')])for(const _0x42b7cd of _0x5a69b9)for(const _0x4d7019 of _0x5cc0b4['getMarkers']()){const _0x4e49d9=_0x4d7019[_0x7e7d('0x5')]();(_0x42b7cd[_0x7e7d('0x19')](_0x4e49d9)||_0x1acb4f[_0x7e7d('0x14')]&&!_0x5cc0b4['isMultiRange']&&_0x5cc0b4[_0x7e7d('0x6')]&&_0x4e49d9['end'][_0x7e7d('0x15')](_0x42b7cd[_0x7e7d('0x16')]))&&_0x1ad02c[_0x7e7d('0xe')](_0x5cc0b4);}return _0x1ad02c;}export function getRangesOfBlockGroups(_0x542c0f,_0x2fd32d){let _0x113883,_0x44a127=0x0;const _0x4e0399=[],_0x488269=_0x2fd32d[_0x7e7d('0x4')];for(;_0x44a127<_0x542c0f['length'];){const _0x407111=_0x542c0f[_0x44a127],_0xfbb01c=_0x542c0f[_0x44a127+0x1];_0x113883||(_0x113883=_0x2fd32d['createPositionBefore'](_0x407111)),oo(_0x2fd32d,_0x407111,_0xfbb01c)||(_0x4e0399['push'](_0x2fd32d[_0x7e7d('0xd')](_0x113883,_0x488269[_0x7e7d('0x7')](_0x407111)?_0x2fd32d['createPositionAfter'](_0x407111):_0x2fd32d[_0x7e7d('0x10')](_0x407111,_0x7e7d('0x8')))),_0x113883=null),_0x44a127++;}return _0x4e0399;}function oo(_0x1399fe,_0x3bbb3c,_0x4eb09f){if(!_0x4eb09f)return!0x1;const _0x2fa16d=_0x1399fe[_0x7e7d('0x3')](_0x3bbb3c),_0x5ec323=_0x1399fe['createPositionBefore'](_0x4eb09f);return _0x2fa16d['isTouching'](_0x5ec323);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x4e177a,_0x148492,_0x300a4e){for(;_0x300a4e[_0x7e7d('0xf')];){const _0x51cd4d=_0x300a4e[_0x7e7d('0xa')](0x0,0x64);_0x4e177a[_0x7e7d('0x2')](()=>{for(const _0x50bc38 of _0x51cd4d)_0x50bc38['isInContent']&&_0x148492[_0x7e7d('0x1')](_0x50bc38['id']);});}}