@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231215.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 (66) 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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/imagestyle.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1351=['has','mainView','_bindAnnotationToEditors','view','createAnnotationView','innerView','getByInnerView','comments.maxThreadTotalWeight','acceptSelectedSuggestions','model','comments.maxCommentCharsWhenCollapsed','source','_viewToController','init','execute','editing','some','hasSuggestion','EditorAnnotations','descriptionParts','_destroyController','trackChanges','_updateController','toMany','_descriptionFactory','_disableComments','Discard\x20all\x20suggestions','editor','push','unbind','stopListening','getRanges','_handleControllerBuffer','acceptButton','bind','_createUIButton','trackChanges.SuggestionThreadView','button','value','CommentsRepository','filter','define','type','getMarkers','_initializeController','focus','TrackChangesEditing','buttonView','getFirstRange','Accept\x20all\x20selected\x20suggestions','suggestionUnloaded','_suggestionToController','addSourceCollector','plugins','suggestionLoaded','getMarkerNames','Track\x20changes','CommentView','commands','activeMarkers','add','destroy','_handleSuggestionControllerDelayed','isOn','refreshSelectedViews','discardAllSuggestions','from','change:activeAnnotations','delete','discardButton','getJoined','actionView','CommentsUI','comments','discardSelectedSuggestions','commandName','acceptAllSuggestions','commentThread','comments.editorConfig','get','suggestionChanged','change:previous','reduce','previous','componentFactory','separator','locale','getSuggestion','listenTo','set','_annotationViews','Accept\x20all\x20suggestions','Annotations','activeAnnotations','isInContent','arrowView','SuggestionThreadView','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','isEnabled','length','clear','_unbindEditors','createCommentThreadController','head','getDescriptions','map','_refreshActiveMarkers'];(function(_0x3a85a0,_0x1351d7){const _0x4a59fa=function(_0x567a1d){while(--_0x567a1d){_0x3a85a0['push'](_0x3a85a0['shift']());}};_0x4a59fa(++_0x1351d7);}(_0x1351,0x15a));const _0x4a59=function(_0x3a85a0,_0x1351d7){_0x3a85a0=_0x3a85a0-0x0;let _0x4a59fa=_0x1351[_0x3a85a0];return _0x4a59fa;};import{Plugin as _0x179c75}from'ckeditor5/src/core';import{Collection as _0x55f475}from'ckeditor5/src/utils';import{Model as _0x4d828c,SplitButtonView as _0x4b4919,createDropdown as _0x2ae876,addListToDropdown as _0x5c5488}from'ckeditor5/src/ui';import{Users as _0x56aa66,getDateTimeFormatter as _0x484a42,getAllMarkersDomElementsSorted as _0x745c32}from'ckeditor5-collaboration/src/collaboration-core';import _0x4fba90 from'./trackchangesediting';import _0x1b3cda from'./ui/suggestioncontroller';import _0x3e3bf4 from'./ui/view/suggestionthreadview';import{getTranslation as _0x2fcd51}from'./utils/common-translations';import _0x48cb6a from'../theme/icons/track-changes.svg';export default class d extends _0x179c75{static get['requires'](){return[_0x4fba90,_0x56aa66,'CommentsRepository',_0x4a59('0x46'),_0x4a59('0x68')];}static get['pluginName'](){return _0x4a59('0x4b');}constructor(_0x27eba9){super(_0x27eba9),this[_0x4a59('0x1d')]=new Map(),this[_0x4a59('0x62')]=new Map(),this[_0x4a59('0x44')]=new Map(),this[_0x4a59('0xa')]=new Map();const _0x27e2c0=this[_0x4a59('0x5')]['config'];_0x27e2c0[_0x4a59('0x13')](_0x4a59('0xe'),_0x3e3bf4),_0x27e2c0[_0x4a59('0x13')]('trackChanges.disableComments',!0x1),this[_0x4a59('0x3')]=_0x27e2c0['get']('trackChanges.disableComments');}[_0x4a59('0x28')](_0x3ad8b6,_0xf95421){0x0===this[_0x4a59('0xa')]['size']&&setTimeout(()=>{for(const [_0x9508f5,_0x13805d]of this[_0x4a59('0xa')]){const _0xb73b69=this[_0x4a59('0x1d')][_0x4a59('0x56')](_0x9508f5);_0xb73b69||_0x13805d?_0xb73b69&&_0x13805d&&this['_destroyController'](_0x9508f5):this[_0x4a59('0x16')](_0x9508f5);}this[_0x4a59('0x5')][_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x68'))[_0x4a59('0x2a')](),this[_0x4a59('0x55')](),this['_handleControllerBuffer'][_0x4a59('0x4f')]();},0xa),this[_0x4a59('0xa')]['set'](_0x3ad8b6,_0xf95421);}[_0x4a59('0x63')](){const _0x472411=this[_0x4a59('0x5')],_0x3206e1=_0x472411[_0x4a59('0x1f')]['get'](_0x4a59('0x18')),_0x587591=_0x472411[_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x46')),_0x4c6408=_0x472411[_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x68')),_0x1d8fc4=_0x472411['plugins']['get'](_0x4a59('0x11'));_0x472411['ui'][_0x4a59('0x3e')]['add']('trackChanges',_0x199020=>this[_0x4a59('0xd')](_0x199020)),_0x4c6408[_0x4a59('0x1e')](()=>{const _0x2485b4=[];for(const [_0x673c0b,_0x7208be]of Array[_0x4a59('0x2c')](this[_0x4a59('0x1d')])){const _0x4010fd=_0x673c0b['getAllAdjacentSuggestions'](),_0x570084=[];for(const _0x50e9c0 of _0x4010fd){if(!_0x50e9c0[_0x4a59('0x48')])continue;if(_0x50e9c0['isMultiRange']){_0x570084[_0x4a59('0x6')](..._0x50e9c0[_0x4a59('0x9')]());continue;}const _0x51218f=_0x50e9c0[_0x4a59('0x1a')]();if(_0x570084[_0x4a59('0x4e')]>0x0){const _0x3eba36=_0x570084[0x0][_0x4a59('0x30')](_0x51218f);if(_0x3eba36){_0x570084[0x0]=_0x3eba36;continue;}}_0x570084[_0x4a59('0x6')](_0x51218f);}_0x2485b4['push']([_0x7208be[_0x4a59('0x59')],_0x570084]);}return _0x2485b4;}),this[_0x4a59('0x42')](_0x3206e1,_0x4a59('0x20'),(_0x333d32,_0x56746e)=>{this[_0x4a59('0x42')](_0x56746e,_0x4a59('0x3b'),(_0x3ce291,_0x30d427,_0x37ce62,_0x35eeda)=>{_0x56746e[_0x4a59('0x48')]&&(null==_0x37ce62?(this[_0x4a59('0x0')](_0x35eeda[_0x4a59('0x52')]),this['_handleSuggestionControllerDelayed'](_0x56746e,!0x1)):(this[_0x4a59('0x0')](_0x37ce62[_0x4a59('0x52')]),null==_0x35eeda&&this[_0x4a59('0x28')](_0x56746e,!0x0)));}),null!==_0x56746e[_0x4a59('0x3d')]?this[_0x4a59('0x0')](_0x56746e[_0x4a59('0x52')]):this[_0x4a59('0x28')](_0x56746e,!0x1);}),this['listenTo'](_0x3206e1,_0x4a59('0x1c'),(_0x504dd6,_0x13f0f1,_0x7473e1)=>{this[_0x4a59('0x8')](_0x13f0f1,_0x4a59('0x3b')),this[_0x4a59('0xa')]['delete'](_0x13f0f1),this[_0x4a59('0x1d')]['has'](_0x13f0f1)&&this['_destroyController'](_0x13f0f1),_0x7473e1&&this[_0x4a59('0x0')](_0x7473e1['head']);}),this[_0x4a59('0x42')](_0x3206e1,_0x4a59('0x3a'),(_0x197e78,_0x81c2b8)=>{this[_0x4a59('0x0')](_0x81c2b8);}),this[_0x4a59('0x42')](_0x587591,_0x4a59('0x2d'),()=>{this[_0x4a59('0x55')]();}),this[_0x4a59('0x42')](_0x1d8fc4,'addComment',(_0x5434e9,{threadId:_0xf973e4,isFromAdapter:_0x453532})=>{if(_0x453532||!_0x3206e1[_0x4a59('0x67')](_0xf973e4))return;const _0x906610=_0x3206e1[_0x4a59('0x41')](_0xf973e4);this[_0x4a59('0x1d')][_0x4a59('0x39')](_0x906610)[_0x4a59('0x59')][_0x4a59('0x17')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x14a96=this[_0x4a59('0x5')]['plugins'][_0x4a59('0x39')](_0x4a59('0x46')),_0x40059c=this['editor'][_0x4a59('0x1f')]['get']('TrackChangesEditing'),_0x53d085=Array[_0x4a59('0x2c')](_0x14a96[_0x4a59('0x47')],_0x506e97=>_0x506e97[_0x4a59('0x5b')])['filter'](_0x255863=>this['_viewToController']['has'](_0x255863)),_0x2c1e1a=[];for(const _0x51815e of _0x53d085){const _0x335544=this[_0x4a59('0x62')][_0x4a59('0x39')](_0x51815e)[_0x4a59('0x5f')]['getAllAdjacentSuggestions']();_0x2c1e1a[_0x4a59('0x6')](..._0x335544[_0x4a59('0x3c')]((_0xb6f80d,_0x2d795a)=>[..._0xb6f80d,..._0x2d795a[_0x4a59('0x21')]()],[]));}_0x40059c[_0x4a59('0x25')]=_0x2c1e1a;}[_0x4a59('0xd')](_0x12eecb){const _0x3ac94c=_0x2ae876(_0x12eecb,_0x4b4919),_0x73d5d6=this[_0x4a59('0x5')]['commands'][_0x4a59('0x39')](_0x4a59('0x6b')),_0x373866=_0x2fcd51(_0x12eecb,_0x4a59('0x22'));_0x3ac94c[_0x4a59('0x19')][_0x4a59('0x43')]({'tooltip':_0x373866,'label':_0x373866,'icon':_0x48cb6a}),_0x3ac94c['buttonView'][_0x4a59('0xc')](_0x4a59('0x29'))['to'](_0x73d5d6,_0x4a59('0x10')),_0x3ac94c[_0x4a59('0x19')]['on'](_0x4a59('0x64'),()=>{_0x73d5d6[_0x4a59('0x64')](),this[_0x4a59('0x5')][_0x4a59('0x65')][_0x4a59('0x59')][_0x4a59('0x17')]();});const _0x1c0a96=new _0x55f475(),_0x39644f=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x373866,'commandName':_0x4a59('0x6b')}},{'type':_0x4a59('0x3f')},{'type':'button','model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x45')),'commandName':_0x4a59('0x36')}},{'type':_0x4a59('0xf'),'model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x1b')),'commandName':_0x4a59('0x5e')}},{'type':_0x4a59('0xf'),'model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x4')),'commandName':_0x4a59('0x2b')}},{'type':_0x4a59('0xf'),'model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x4c')),'commandName':_0x4a59('0x34')}}];for(const _0xdd0eb0 of _0x39644f){let _0x42ed53={'type':_0x4a59('0x3f')};if(_0xdd0eb0[_0x4a59('0x5f')]){const _0x3acbe3=new _0x4d828c(_0xdd0eb0['model']),_0x4fdcb8=this[_0x4a59('0x5')]['commands'][_0x4a59('0x39')](_0x3acbe3[_0x4a59('0x35')]);_0x3acbe3[_0x4a59('0xc')](_0x4a59('0x29'),'isEnabled')['to'](_0x4fdcb8,_0x4a59('0x10'),_0x4a59('0x4d')),_0x42ed53={'type':_0xdd0eb0[_0x4a59('0x14')],'model':_0x3acbe3};}_0x1c0a96[_0x4a59('0x26')](_0x42ed53);}_0x5c5488(_0x3ac94c,_0x1c0a96);const _0x3c87f7=_0x39644f[_0x4a59('0x12')](_0x5607dc=>null!=_0x5607dc[_0x4a59('0x5f')])[_0x4a59('0x54')](_0x5edf03=>this[_0x4a59('0x5')][_0x4a59('0x24')]['get'](_0x5edf03[_0x4a59('0x5f')][_0x4a59('0x35')])),_0x16f3a1=_0x3ac94c[_0x4a59('0x19')];return _0x16f3a1[_0x4a59('0x31')][_0x4a59('0x7')](_0x4a59('0x4d')),_0x16f3a1[_0x4a59('0x49')][_0x4a59('0x7')]('isEnabled'),_0x16f3a1[_0x4a59('0x31')][_0x4a59('0xc')](_0x4a59('0x4d'))['to'](_0x73d5d6,_0x4a59('0x4d')),_0x16f3a1[_0x4a59('0x49')]['bind'](_0x4a59('0x4d'))[_0x4a59('0x1')](_0x3c87f7,_0x4a59('0x4d'),(..._0x172257)=>_0x172257[_0x4a59('0x66')](_0x3e9f41=>_0x3e9f41)),_0x3ac94c['on'](_0x4a59('0x64'),_0x3c1a86=>{this['editor'][_0x4a59('0x64')](_0x3c1a86[_0x4a59('0x61')][_0x4a59('0x35')]),this['editor'][_0x4a59('0x65')][_0x4a59('0x59')]['focus']();}),_0x3ac94c;}[_0x4a59('0x16')](_0x49ccce){const _0x3efdc3=this[_0x4a59('0x5')],_0x44521c=_0x3efdc3['config'],_0x5ee2a8=_0x3efdc3['plugins'][_0x4a59('0x39')](_0x4a59('0x46')),_0xb08e53=_0x3efdc3['plugins'][_0x4a59('0x39')]('CommentsRepository'),_0x4563db=_0x3efdc3[_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x68')),_0x2e3202=_0x3efdc3[_0x4a59('0x1f')][_0x4a59('0x39')](_0x56aa66)['me'],_0x5d5c66=_0x44521c[_0x4a59('0x39')](_0x4a59('0x6b'))[_0x4a59('0x4a')],{CommentsListView:_0xf2eee2,CommentThreadInputView:_0x5805aa}=_0x3efdc3['plugins'][_0x4a59('0x39')](_0x4a59('0x32'));let _0x5e9752,_0x340a22;this[_0x4a59('0x44')][_0x4a59('0x56')](_0x49ccce['id'])?(_0x340a22=this[_0x4a59('0x44')][_0x4a59('0x39')](_0x49ccce['id']),_0x5e9752=_0x340a22[_0x4a59('0x57')]):(_0x5e9752=new _0x5d5c66(_0x3efdc3['locale'],_0x49ccce,_0x2e3202,{'disableComments':this['_disableComments'],'editorConfig':_0x44521c['get'](_0x4a59('0x38')),'maxCommentsWhenCollapsed':_0x44521c[_0x4a59('0x39')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x44521c[_0x4a59('0x39')](_0x4a59('0x5d')),'maxCommentCharsWhenCollapsed':_0x44521c[_0x4a59('0x39')](_0x4a59('0x60')),'formatDateTime':_0x484a42(_0x44521c[_0x4a59('0x39')]('locale')),'CommentView':_0x44521c[_0x4a59('0x39')](_0x4a59('0x33'))[_0x4a59('0x23')],'CommentsListView':_0xf2eee2,'CommentThreadInputView':_0x5805aa}),_0x5e9752[_0x4a59('0xb')]['on']('execute',()=>{_0x3efdc3['editing']['view'][_0x4a59('0x17')]();}),_0x5e9752[_0x4a59('0x2f')]['on'](_0x4a59('0x64'),()=>{_0x3efdc3[_0x4a59('0x65')][_0x4a59('0x59')]['focus']();}),_0x340a22=_0x5ee2a8[_0x4a59('0x5a')](this[_0x4a59('0x5')][_0x4a59('0x40')],_0x5e9752),_0x340a22[_0x4a59('0xc')]('isDirty')['to'](_0x5e9752,'isDirty'),_0x340a22[_0x4a59('0xc')](_0x4a59('0x4e'))['to'](_0x5e9752),_0x340a22[_0x4a59('0xc')](_0x4a59('0x14'))['to'](_0x5e9752,_0x4a59('0x14'),_0x3f8653=>'suggestion-'+_0x3f8653),this[_0x4a59('0x44')][_0x4a59('0x43')](_0x49ccce['id'],_0x340a22));const _0x170c93=_0xb08e53[_0x4a59('0x51')](_0x49ccce[_0x4a59('0x37')],_0x5e9752),_0x4ec4c1=new _0x1b3cda(_0x3efdc3,_0x49ccce,_0x5e9752,_0x170c93),_0x4c88ac=_0x49ccce['getAllAdjacentSuggestions']()[_0x4a59('0x12')](_0x5a030b=>_0x5a030b[_0x4a59('0x48')]);_0x5e9752[_0x4a59('0x69')]=_0x3efdc3[_0x4a59('0x1f')][_0x4a59('0x39')]('TrackChangesEditing')[_0x4a59('0x2')][_0x4a59('0x53')](_0x4c88ac),this[_0x4a59('0x1d')][_0x4a59('0x43')](_0x49ccce,_0x4ec4c1),this['_viewToController'][_0x4a59('0x43')](_0x5e9752,_0x4ec4c1);const _0x412a7d=_0x5ee2a8['createAnnotation']({'view':_0x340a22,'target':()=>{const _0x596106=[],_0x43e6a0=_0x49ccce['getAllAdjacentSuggestions']()[_0x4a59('0x12')](_0x5f179d=>_0x5f179d[_0x4a59('0x48')]);for(const _0x12c05e of _0x43e6a0)_0x596106[_0x4a59('0x6')](..._0x12c05e[_0x4a59('0x15')]());return _0x745c32(_0x3efdc3[_0x4a59('0x65')],_0x596106);},'type':()=>'suggestion-'+_0x4ec4c1['view'][_0x4a59('0x14')]});_0xb08e53[_0x4a59('0x58')](_0x5e9752,_0x412a7d),_0x5ee2a8[_0x4a59('0x26')](_0x412a7d),_0x4563db['registerAnnotation'](_0x412a7d);}[_0x4a59('0x6a')](_0x15f5e1){const _0x39a060=this[_0x4a59('0x5')][_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x11')),_0x2c2c2c=this[_0x4a59('0x5')]['plugins'][_0x4a59('0x39')](_0x4a59('0x46')),_0x98857=this[_0x4a59('0x1d')]['get'](_0x15f5e1),_0x33b028=_0x98857['view'],_0x5a054a=_0x2c2c2c[_0x4a59('0x5c')](_0x33b028);_0x39a060[_0x4a59('0x50')](_0x33b028),_0x5a054a&&_0x2c2c2c['remove'](_0x5a054a),this[_0x4a59('0x1d')][_0x4a59('0x2e')](_0x15f5e1),this[_0x4a59('0x62')]['delete'](_0x33b028),_0x98857[_0x4a59('0x27')]();}[_0x4a59('0x0')](_0x4562f5){if(!_0x4562f5[_0x4a59('0x48')]||!this[_0x4a59('0x1d')][_0x4a59('0x56')](_0x4562f5))return;const _0x1f52b1=this[_0x4a59('0x5')][_0x4a59('0x1f')][_0x4a59('0x39')]('TrackChangesEditing'),_0x435488=this[_0x4a59('0x1d')][_0x4a59('0x39')](_0x4562f5),_0x240351=_0x4562f5['getAllAdjacentSuggestions']();_0x435488['view'][_0x4a59('0x69')]=_0x1f52b1[_0x4a59('0x2')]['getDescriptions'](_0x240351);}[_0x4a59('0x27')](){for(const _0x39d97f of this[_0x4a59('0x1d')]['keys']())this[_0x4a59('0x6a')](_0x39d97f);for(const _0x25a807 of this['_annotationViews']['values']())_0x25a807[_0x4a59('0x57')][_0x4a59('0x27')]();super[_0x4a59('0x27')]();}}
23
+ const _0x707b=['length','locale','button','CommentsRepository','acceptButton','comments','switchbutton','value','_handleControllerBuffer','mainView','from','Accept\x20all\x20selected\x20suggestions','execute','unbind','TrackChangesEditing','registerAnnotation','createAnnotationView','_createUIButton','getAllAdjacentSuggestions','_initializeController','Annotations','reduce','_suggestionToController','_refreshActiveMarkers','acceptAllSuggestions','_annotationViews','keys','listenTo','comments.maxCommentsWhenCollapsed','addComment','activeAnnotations','Discard\x20all\x20selected\x20suggestions','filter','_updateController','isOn','commands','add','has','suggestionLoaded','trackChanges.SuggestionThreadView','CommentsUI','_viewToController','commentThread','suggestion-','view','requires','descriptionParts','CommentView','editor','hasSuggestion','editing','trackChanges','isDirty','refreshSelectedViews','_disableComments','isMultiRange','model','buttonView','separator','discardAllSuggestions','push','isInContent','source','values','focus','Discard\x20all\x20suggestions','getDescriptions','Track\x20changes','clear','_descriptionFactory','discardSelectedSuggestions','getByInnerView','init','actionView','config','head','TrackChangesUI','define','Accept\x20all\x20suggestions','type','_destroyController','pluginName','suggestionUnloaded','get','commandName','isEnabled','createCommentThreadController','createAnnotation','lowest','plugins','trackChanges.disableComments','getMarkerNames','change:activeAnnotations','remove','change:previous','_handleSuggestionControllerDelayed','innerView','getSuggestion','destroy','_unbindEditors','bind','getMarkers','getRanges','EditorAnnotations','arrowView','delete','comments.maxThreadTotalWeight','set','SuggestionThreadView'];(function(_0x1c9977,_0x707bf4){const _0x33f9ff=function(_0x59a676){while(--_0x59a676){_0x1c9977['push'](_0x1c9977['shift']());}};_0x33f9ff(++_0x707bf4);}(_0x707b,0xdc));const _0x33f9=function(_0x1c9977,_0x707bf4){_0x1c9977=_0x1c9977-0x0;let _0x33f9ff=_0x707b[_0x1c9977];return _0x33f9ff;};import{Plugin as _0x23622e}from'ckeditor5/src/core';import{Collection as _0x200c37}from'ckeditor5/src/utils';import{Model as _0x32a2e1,SplitButtonView as _0x352e67,createDropdown as _0x19158c,addListToDropdown as _0x50005e}from'ckeditor5/src/ui';import{Users as _0x4f62c1,getDateTimeFormatter as _0x2c3d68,getAllMarkersDomElementsSorted as _0x4051da}from'ckeditor5-collaboration/src/collaboration-core';import _0x54a161 from'./trackchangesediting';import _0x1e7e20 from'./ui/suggestioncontroller';import _0xab2847 from'./ui/view/suggestionthreadview';import{getTranslation as _0x26bec0}from'./utils/common-translations';import _0x1a93c0 from'../theme/icons/track-changes.svg';export default class d extends _0x23622e{static get[_0x33f9('0x2b')](){return[_0x54a161,_0x4f62c1,_0x33f9('0x1'),_0x33f9('0x12'),_0x33f9('0x65')];}static get[_0x33f9('0x4f')](){return _0x33f9('0x4a');}constructor(_0x58044b){super(_0x58044b),this['_suggestionToController']=new Map(),this[_0x33f9('0x27')]=new Map(),this[_0x33f9('0x17')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x2428eb=this['editor'][_0x33f9('0x48')];_0x2428eb[_0x33f9('0x4b')](_0x33f9('0x25'),_0xab2847),_0x2428eb['define'](_0x33f9('0x58'),!0x1),this['_disableComments']=_0x2428eb[_0x33f9('0x51')](_0x33f9('0x58'));}[_0x33f9('0x5d')](_0x27b95b,_0x4f06d8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x895969,_0x45fe5b]of this[_0x33f9('0x6')]){const _0x4dba10=this['_suggestionToController']['has'](_0x895969);_0x4dba10||_0x45fe5b?_0x4dba10&&_0x45fe5b&&this[_0x33f9('0x4e')](_0x895969):this['_initializeController'](_0x895969);}this[_0x33f9('0x2e')][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x65'))[_0x33f9('0x33')](),this[_0x33f9('0x15')](),this[_0x33f9('0x6')][_0x33f9('0x42')]();},0xa),this[_0x33f9('0x6')]['set'](_0x27b95b,_0x4f06d8);}[_0x33f9('0x46')](){const _0x4773bf=this['editor'],_0x5e46c5=_0x4773bf[_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0xc')),_0xb4328f=_0x4773bf[_0x33f9('0x57')][_0x33f9('0x51')]('Annotations'),_0x4a7f5d=_0x4773bf[_0x33f9('0x57')]['get'](_0x33f9('0x65')),_0x2ee8e0=_0x4773bf['plugins']['get']('CommentsRepository');_0x4773bf['ui']['componentFactory'][_0x33f9('0x22')](_0x33f9('0x31'),_0x405906=>this[_0x33f9('0xf')](_0x405906)),_0x4a7f5d['addSourceCollector'](()=>{const _0x1cb297=[];for(const [_0x92877e,_0x1aa675]of Array['from'](this[_0x33f9('0x14')])){const _0x20979b=_0x92877e[_0x33f9('0x10')](),_0x4a9050=[];for(const _0xe011f7 of _0x20979b){if(!_0xe011f7[_0x33f9('0x3b')])continue;if(_0xe011f7[_0x33f9('0x35')]){_0x4a9050[_0x33f9('0x3a')](..._0xe011f7[_0x33f9('0x64')]());continue;}const _0x31cc36=_0xe011f7['getFirstRange']();if(_0x4a9050[_0x33f9('0x6b')]>0x0){const _0x410fe0=_0x4a9050[0x0]['getJoined'](_0x31cc36);if(_0x410fe0){_0x4a9050[0x0]=_0x410fe0;continue;}}_0x4a9050[_0x33f9('0x3a')](_0x31cc36);}_0x1cb297[_0x33f9('0x3a')]([_0x1aa675['view'],_0x4a9050]);}return _0x1cb297;}),this[_0x33f9('0x19')](_0x5e46c5,_0x33f9('0x24'),(_0x19d32d,_0x456563)=>{this[_0x33f9('0x19')](_0x456563,'change:previous',(_0x44d842,_0x4ce4e7,_0x3ad81e,_0x3693d8)=>{_0x456563['isInContent']&&(null==_0x3ad81e?(this[_0x33f9('0x1f')](_0x3693d8[_0x33f9('0x49')]),this[_0x33f9('0x5d')](_0x456563,!0x1)):(this[_0x33f9('0x1f')](_0x3ad81e[_0x33f9('0x49')]),null==_0x3693d8&&this[_0x33f9('0x5d')](_0x456563,!0x0)));}),null!==_0x456563['previous']?this['_updateController'](_0x456563[_0x33f9('0x49')]):this[_0x33f9('0x5d')](_0x456563,!0x1);}),this[_0x33f9('0x19')](_0x5e46c5,_0x33f9('0x50'),(_0x2e0931,_0xd13cd3,_0x26740d)=>{this['stopListening'](_0xd13cd3,_0x33f9('0x5c')),this[_0x33f9('0x6')][_0x33f9('0x67')](_0xd13cd3),this[_0x33f9('0x14')][_0x33f9('0x23')](_0xd13cd3)&&this[_0x33f9('0x4e')](_0xd13cd3),_0x26740d&&this[_0x33f9('0x1f')](_0x26740d[_0x33f9('0x49')]);}),this['listenTo'](_0x5e46c5,'suggestionChanged',(_0x426ad8,_0x1290bd)=>{this[_0x33f9('0x1f')](_0x1290bd);}),this[_0x33f9('0x19')](_0xb4328f,_0x33f9('0x5a'),()=>{this[_0x33f9('0x15')]();}),this[_0x33f9('0x19')](_0x2ee8e0,_0x33f9('0x1b'),(_0x574621,{threadId:_0x1b87d3,isFromAdapter:_0x33e03c})=>{if(_0x33e03c||!_0x5e46c5[_0x33f9('0x2f')](_0x1b87d3))return;const _0x403a03=_0x5e46c5[_0x33f9('0x5f')](_0x1b87d3);this['_suggestionToController']['get'](_0x403a03)[_0x33f9('0x2a')][_0x33f9('0x3e')]();},{'priority':_0x33f9('0x56')});}[_0x33f9('0x15')](){const _0x21ad00=this[_0x33f9('0x2e')][_0x33f9('0x57')]['get'](_0x33f9('0x12')),_0xbe4e55=this[_0x33f9('0x2e')][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0xc')),_0x103d61=Array[_0x33f9('0x8')](_0x21ad00[_0x33f9('0x1c')],_0x54270b=>_0x54270b[_0x33f9('0x5e')])['filter'](_0x30ae27=>this[_0x33f9('0x27')]['has'](_0x30ae27)),_0x15bd3a=[];for(const _0x2c5e93 of _0x103d61){const _0x204772=this[_0x33f9('0x27')][_0x33f9('0x51')](_0x2c5e93)[_0x33f9('0x36')]['getAllAdjacentSuggestions']();_0x15bd3a[_0x33f9('0x3a')](..._0x204772[_0x33f9('0x13')]((_0x49fdee,_0x393592)=>[..._0x49fdee,..._0x393592[_0x33f9('0x59')]()],[]));}_0xbe4e55['activeMarkers']=_0x15bd3a;}[_0x33f9('0xf')](_0x3f476d){const _0x2317b5=_0x19158c(_0x3f476d,_0x352e67),_0x29834b=this[_0x33f9('0x2e')]['commands'][_0x33f9('0x51')](_0x33f9('0x31')),_0xb8d29b=_0x26bec0(_0x3f476d,_0x33f9('0x41'));_0x2317b5[_0x33f9('0x37')][_0x33f9('0x69')]({'tooltip':_0xb8d29b,'label':_0xb8d29b,'icon':_0x1a93c0}),_0x2317b5[_0x33f9('0x37')][_0x33f9('0x62')](_0x33f9('0x20'))['to'](_0x29834b,'value'),_0x2317b5['buttonView']['on'](_0x33f9('0xa'),()=>{_0x29834b[_0x33f9('0xa')](),this[_0x33f9('0x2e')][_0x33f9('0x30')][_0x33f9('0x2a')][_0x33f9('0x3e')]();});const _0x5265b5=new _0x200c37(),_0x17fbd3=[{'type':_0x33f9('0x4'),'model':{'withText':!0x0,'label':_0xb8d29b,'commandName':'trackChanges'}},{'type':_0x33f9('0x38')},{'type':_0x33f9('0x0'),'model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x4c')),'commandName':_0x33f9('0x16')}},{'type':_0x33f9('0x0'),'model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x9')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x3f')),'commandName':_0x33f9('0x39')}},{'type':_0x33f9('0x0'),'model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x1d')),'commandName':_0x33f9('0x44')}}];for(const _0x5a6844 of _0x17fbd3){let _0x469b95={'type':'separator'};if(_0x5a6844[_0x33f9('0x36')]){const _0x9a4b51=new _0x32a2e1(_0x5a6844['model']),_0x27a18a=this[_0x33f9('0x2e')][_0x33f9('0x21')][_0x33f9('0x51')](_0x9a4b51[_0x33f9('0x52')]);_0x9a4b51[_0x33f9('0x62')](_0x33f9('0x20'),_0x33f9('0x53'))['to'](_0x27a18a,_0x33f9('0x5'),_0x33f9('0x53')),_0x469b95={'type':_0x5a6844[_0x33f9('0x4d')],'model':_0x9a4b51};}_0x5265b5[_0x33f9('0x22')](_0x469b95);}_0x50005e(_0x2317b5,_0x5265b5);const _0x387ad1=_0x17fbd3['filter'](_0x348b91=>null!=_0x348b91['model'])['map'](_0x4b4ab2=>this[_0x33f9('0x2e')]['commands'][_0x33f9('0x51')](_0x4b4ab2[_0x33f9('0x36')][_0x33f9('0x52')])),_0x325083=_0x2317b5[_0x33f9('0x37')];return _0x325083['actionView'][_0x33f9('0xb')](_0x33f9('0x53')),_0x325083[_0x33f9('0x66')][_0x33f9('0xb')]('isEnabled'),_0x325083[_0x33f9('0x47')][_0x33f9('0x62')]('isEnabled')['to'](_0x29834b,_0x33f9('0x53')),_0x325083[_0x33f9('0x66')]['bind'](_0x33f9('0x53'))['toMany'](_0x387ad1,_0x33f9('0x53'),(..._0x233bf0)=>_0x233bf0['some'](_0x2c560d=>_0x2c560d)),_0x2317b5['on'](_0x33f9('0xa'),_0x9cda2=>{this[_0x33f9('0x2e')]['execute'](_0x9cda2[_0x33f9('0x3c')][_0x33f9('0x52')]),this[_0x33f9('0x2e')][_0x33f9('0x30')][_0x33f9('0x2a')][_0x33f9('0x3e')]();}),_0x2317b5;}[_0x33f9('0x11')](_0x38ded2){const _0x52cf9f=this['editor'],_0x466485=_0x52cf9f[_0x33f9('0x48')],_0x1c16c0=_0x52cf9f['plugins'][_0x33f9('0x51')](_0x33f9('0x12')),_0x4ce567=_0x52cf9f[_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x1')),_0x54c7b1=_0x52cf9f[_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x65')),_0x3247f3=_0x52cf9f[_0x33f9('0x57')][_0x33f9('0x51')](_0x4f62c1)['me'],_0x54e1af=_0x466485[_0x33f9('0x51')]('trackChanges')[_0x33f9('0x6a')],{CommentsListView:_0x13e76c,CommentThreadInputView:_0x3aab30}=_0x52cf9f[_0x33f9('0x57')]['get'](_0x33f9('0x26'));let _0x10d261,_0x726370;this[_0x33f9('0x17')][_0x33f9('0x23')](_0x38ded2['id'])?(_0x726370=this[_0x33f9('0x17')][_0x33f9('0x51')](_0x38ded2['id']),_0x10d261=_0x726370[_0x33f9('0x7')]):(_0x10d261=new _0x54e1af(_0x52cf9f[_0x33f9('0x6c')],_0x38ded2,_0x3247f3,{'disableComments':this[_0x33f9('0x34')],'editorConfig':_0x466485[_0x33f9('0x51')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x466485[_0x33f9('0x51')](_0x33f9('0x1a')),'maxThreadTotalWeight':_0x466485['get'](_0x33f9('0x68')),'maxCommentCharsWhenCollapsed':_0x466485[_0x33f9('0x51')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2c3d68(_0x466485[_0x33f9('0x51')]('locale')),'CommentView':_0x466485[_0x33f9('0x51')](_0x33f9('0x3'))[_0x33f9('0x2d')],'CommentsListView':_0x13e76c,'CommentThreadInputView':_0x3aab30}),_0x10d261[_0x33f9('0x2')]['on'](_0x33f9('0xa'),()=>{_0x52cf9f['editing'][_0x33f9('0x2a')][_0x33f9('0x3e')]();}),_0x10d261['discardButton']['on'](_0x33f9('0xa'),()=>{_0x52cf9f['editing'][_0x33f9('0x2a')][_0x33f9('0x3e')]();}),_0x726370=_0x1c16c0[_0x33f9('0xe')](this[_0x33f9('0x2e')]['locale'],_0x10d261),_0x726370['bind'](_0x33f9('0x32'))['to'](_0x10d261,'isDirty'),_0x726370[_0x33f9('0x62')](_0x33f9('0x6b'))['to'](_0x10d261),_0x726370[_0x33f9('0x62')]('type')['to'](_0x10d261,_0x33f9('0x4d'),_0x51908e=>'suggestion-'+_0x51908e),this[_0x33f9('0x17')]['set'](_0x38ded2['id'],_0x726370));const _0x2c2359=_0x4ce567[_0x33f9('0x54')](_0x38ded2[_0x33f9('0x28')],_0x10d261),_0x181fca=new _0x1e7e20(_0x52cf9f,_0x38ded2,_0x10d261,_0x2c2359),_0xd7e10d=_0x38ded2[_0x33f9('0x10')]()['filter'](_0x5f0137=>_0x5f0137[_0x33f9('0x3b')]);_0x10d261[_0x33f9('0x2c')]=_0x52cf9f['plugins'][_0x33f9('0x51')](_0x33f9('0xc'))[_0x33f9('0x43')]['getDescriptions'](_0xd7e10d),this[_0x33f9('0x14')]['set'](_0x38ded2,_0x181fca),this[_0x33f9('0x27')]['set'](_0x10d261,_0x181fca);const _0x1f0bf8=_0x1c16c0[_0x33f9('0x55')]({'view':_0x726370,'target':()=>{const _0x3cbcd4=[],_0x412908=_0x38ded2[_0x33f9('0x10')]()[_0x33f9('0x1e')](_0x37f0f5=>_0x37f0f5['isInContent']);for(const _0x433d45 of _0x412908)_0x3cbcd4['push'](..._0x433d45[_0x33f9('0x63')]());return _0x4051da(_0x52cf9f['editing'],_0x3cbcd4);},'type':()=>_0x33f9('0x29')+_0x181fca['view'][_0x33f9('0x4d')]});_0x4ce567['_bindAnnotationToEditors'](_0x10d261,_0x1f0bf8),_0x1c16c0[_0x33f9('0x22')](_0x1f0bf8),_0x54c7b1[_0x33f9('0xd')](_0x1f0bf8);}[_0x33f9('0x4e')](_0x3fecdd){const _0x4c44b5=this[_0x33f9('0x2e')][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x1')),_0x33aa91=this['editor'][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x12')),_0x1f6e61=this['_suggestionToController'][_0x33f9('0x51')](_0x3fecdd),_0x580cf1=_0x1f6e61['view'],_0x394283=_0x33aa91[_0x33f9('0x45')](_0x580cf1);_0x4c44b5[_0x33f9('0x61')](_0x580cf1),_0x394283&&_0x33aa91[_0x33f9('0x5b')](_0x394283),this[_0x33f9('0x14')][_0x33f9('0x67')](_0x3fecdd),this[_0x33f9('0x27')][_0x33f9('0x67')](_0x580cf1),_0x1f6e61[_0x33f9('0x60')]();}[_0x33f9('0x1f')](_0x4be8e0){if(!_0x4be8e0['isInContent']||!this[_0x33f9('0x14')][_0x33f9('0x23')](_0x4be8e0))return;const _0x1975f1=this[_0x33f9('0x2e')][_0x33f9('0x57')]['get'](_0x33f9('0xc')),_0x1a332b=this[_0x33f9('0x14')]['get'](_0x4be8e0),_0x4a1ddb=_0x4be8e0[_0x33f9('0x10')]();_0x1a332b['view'][_0x33f9('0x2c')]=_0x1975f1['_descriptionFactory'][_0x33f9('0x40')](_0x4a1ddb);}[_0x33f9('0x60')](){for(const _0x3566b8 of this[_0x33f9('0x14')][_0x33f9('0x18')]())this[_0x33f9('0x4e')](_0x3566b8);for(const _0x195550 of this[_0x33f9('0x17')][_0x33f9('0x3d')]())_0x195550[_0x33f9('0x7')]['destroy']();super[_0x33f9('0x60')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f5b=['get','stopListening','acceptSuggestion','_acceptCommand','destroy','change:isDirty','_setPendingAction','add','_pendingAction','listenTo','canAccept','model','canDiscard','isDirty','locale','PendingActions','_editor','unbind','execute','canEditAt','_removePendingAction','_discardCommand','commands','bind','getRanges','discardSuggestion','plugins','commentThreadController','isEnabled','view'];(function(_0x4c1612,_0x5f5bc8){const _0xfff22a=function(_0x536fe9){while(--_0x536fe9){_0x4c1612['push'](_0x4c1612['shift']());}};_0xfff22a(++_0x5f5bc8);}(_0x5f5b,0x1a3));const _0xfff2=function(_0x4c1612,_0x5f5bc8){_0x4c1612=_0x4c1612-0x0;let _0xfff22a=_0x5f5b[_0x4c1612];return _0xfff22a;};import{ObservableMixin as _0x473345}from'ckeditor5/src/utils';import{getTranslation as _0x725524}from'../utils/common-translations';export default class Qt extends _0x473345(){constructor(_0x1c6bb3,_0x1ea632,_0xe1d162,_0x306177){super(),this[_0xfff2('0xc')]=_0x1ea632,this[_0xfff2('0x0')]=_0xe1d162,this[_0xfff2('0x1c')]=_0x306177,this[_0xfff2('0x11')]=_0x1c6bb3,this[_0xfff2('0x4')]=_0x1c6bb3[_0xfff2('0x17')][_0xfff2('0x1')](_0xfff2('0x3')),this[_0xfff2('0x16')]=_0x1c6bb3[_0xfff2('0x17')]['get'](_0xfff2('0x1a')),this['view']['bind'](_0xfff2('0x1d'))['to'](this[_0xfff2('0x4')],this[_0xfff2('0x16')],(_0x295005,_0x19edb9)=>_0x295005||_0x19edb9),this[_0xfff2('0x0')][_0xfff2('0x18')](_0xfff2('0xb'))['to'](this[_0xfff2('0x4')],_0xfff2('0x1d'),_0x85abbc=>_0x85abbc&&this[_0xfff2('0x11')][_0xfff2('0xc')][_0xfff2('0x14')](_0x1ea632[_0xfff2('0x19')]())),this[_0xfff2('0x0')][_0xfff2('0x18')](_0xfff2('0xd'))['to'](this[_0xfff2('0x16')],'isEnabled',_0x95d351=>_0x95d351&&this[_0xfff2('0x11')][_0xfff2('0xc')]['canEditAt'](_0x1ea632['getRanges']())),this[_0xfff2('0x9')]=null,_0xe1d162[_0xfff2('0xe')]&&this['_setPendingAction'](),this[_0xfff2('0xa')](_0xe1d162,_0xfff2('0x3'),()=>this[_0xfff2('0x3')]()),this[_0xfff2('0xa')](_0xe1d162,_0xfff2('0x1a'),()=>this['discardSuggestion']()),this[_0xfff2('0xa')](_0xe1d162,_0xfff2('0x6'),()=>{_0xe1d162[_0xfff2('0xe')]?this[_0xfff2('0x7')]():this[_0xfff2('0x15')]();});}[_0xfff2('0x3')](){this['_acceptCommand'][_0xfff2('0x13')](this[_0xfff2('0xc')]['id']);}[_0xfff2('0x1a')](){this[_0xfff2('0x16')][_0xfff2('0x13')](this[_0xfff2('0xc')]['id']);}[_0xfff2('0x5')](){this[_0xfff2('0x0')][_0xfff2('0x12')](_0xfff2('0x1d')),this[_0xfff2('0x0')][_0xfff2('0x12')]('canAccept'),this[_0xfff2('0x0')][_0xfff2('0x12')](_0xfff2('0xd')),this[_0xfff2('0x2')](),this[_0xfff2('0x1c')]['destroy'](),this['_pendingAction']&&this[_0xfff2('0x15')]();}[_0xfff2('0x7')](){const _0x3a29f6=_0x725524(this['_editor'][_0xfff2('0xf')],'PENDING_ACTION_SUGGESTION');this[_0xfff2('0x9')]=this[_0xfff2('0x11')][_0xfff2('0x1b')]['get'](_0xfff2('0x10'))[_0xfff2('0x8')](_0x3a29f6);}[_0xfff2('0x15')](){null!==this[_0xfff2('0x9')]&&this[_0xfff2('0x11')][_0xfff2('0x1b')]['get']('PendingActions')['remove'](this[_0xfff2('0x9')]),this['_pendingAction']=null;}}
23
+ const _0x5361=['discardSuggestion','_pendingAction','unbind','_setPendingAction','_removePendingAction','view','destroy','stopListening','isEnabled','_discardCommand','bind','get','model','PendingActions','listenTo','canDiscard','acceptSuggestion','canAccept','execute','plugins','commands','_editor','locale','canEditAt','remove','getRanges','PENDING_ACTION_SUGGESTION','isDirty','_acceptCommand','commentThreadController'];(function(_0x446b58,_0x5361b8){const _0x3c8094=function(_0x11609e){while(--_0x11609e){_0x446b58['push'](_0x446b58['shift']());}};_0x3c8094(++_0x5361b8);}(_0x5361,0x183));const _0x3c80=function(_0x446b58,_0x5361b8){_0x446b58=_0x446b58-0x0;let _0x3c8094=_0x5361[_0x446b58];return _0x3c8094;};import{ObservableMixin as _0x3082d2}from'ckeditor5/src/utils';import{getTranslation as _0x578e59}from'../utils/common-translations';export default class Qt extends _0x3082d2(){constructor(_0xbd3a30,_0xa14496,_0x3c9834,_0x4498cf){super(),this['model']=_0xa14496,this[_0x3c80('0x8')]=_0x3c9834,this[_0x3c80('0x2')]=_0x4498cf,this[_0x3c80('0x18')]=_0xbd3a30,this[_0x3c80('0x1')]=_0xbd3a30['commands'][_0x3c80('0xe')](_0x3c80('0x13')),this[_0x3c80('0xc')]=_0xbd3a30[_0x3c80('0x17')]['get'](_0x3c80('0x3')),this[_0x3c80('0x8')][_0x3c80('0xd')](_0x3c80('0xb'))['to'](this['_acceptCommand'],this[_0x3c80('0xc')],(_0x48bc2e,_0x3c9326)=>_0x48bc2e||_0x3c9326),this[_0x3c80('0x8')][_0x3c80('0xd')](_0x3c80('0x14'))['to'](this['_acceptCommand'],_0x3c80('0xb'),_0x41b121=>_0x41b121&&this['_editor'][_0x3c80('0xf')][_0x3c80('0x1a')](_0xa14496[_0x3c80('0x1c')]())),this[_0x3c80('0x8')][_0x3c80('0xd')](_0x3c80('0x12'))['to'](this['_discardCommand'],'isEnabled',_0x3d0351=>_0x3d0351&&this[_0x3c80('0x18')]['model'][_0x3c80('0x1a')](_0xa14496[_0x3c80('0x1c')]())),this['_pendingAction']=null,_0x3c9834['isDirty']&&this[_0x3c80('0x6')](),this['listenTo'](_0x3c9834,_0x3c80('0x13'),()=>this['acceptSuggestion']()),this[_0x3c80('0x11')](_0x3c9834,_0x3c80('0x3'),()=>this[_0x3c80('0x3')]()),this[_0x3c80('0x11')](_0x3c9834,'change:isDirty',()=>{_0x3c9834[_0x3c80('0x0')]?this[_0x3c80('0x6')]():this[_0x3c80('0x7')]();});}[_0x3c80('0x13')](){this['_acceptCommand'][_0x3c80('0x15')](this['model']['id']);}[_0x3c80('0x3')](){this[_0x3c80('0xc')][_0x3c80('0x15')](this['model']['id']);}[_0x3c80('0x9')](){this[_0x3c80('0x8')][_0x3c80('0x5')](_0x3c80('0xb')),this[_0x3c80('0x8')][_0x3c80('0x5')](_0x3c80('0x14')),this[_0x3c80('0x8')][_0x3c80('0x5')]('canDiscard'),this[_0x3c80('0xa')](),this['commentThreadController'][_0x3c80('0x9')](),this[_0x3c80('0x4')]&&this[_0x3c80('0x7')]();}[_0x3c80('0x6')](){const _0x3ff324=_0x578e59(this[_0x3c80('0x18')][_0x3c80('0x19')],_0x3c80('0x1d'));this['_pendingAction']=this[_0x3c80('0x18')][_0x3c80('0x16')][_0x3c80('0xe')](_0x3c80('0x10'))['add'](_0x3ff324);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x3c80('0x16')][_0x3c80('0xe')](_0x3c80('0x10'))[_0x3c80('0x1b')](this[_0x3c80('0x4')]),this[_0x3c80('0x4')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42f5=['isActive','updateComment','_createCommentViews','commentThread','removeComment','isReadOnly','descriptionParts','commentThreadInputView','bind','fire','canDiscard','_createCommentThreadInputView','cancel','editor','length','isDirty','disabledSubmit','commentsListView','focus','locale','set','isEnabled','canAccept','showInput','_config','value','_model','hasDirtyComment','delegate','setData','commentInputView','addComment','destroy','_localUser','editorConfig','authoredAt'];(function(_0xc74231,_0x42f5e9){const _0x4bdbdf=function(_0x4de26){while(--_0x4de26){_0xc74231['push'](_0xc74231['shift']());}};_0x4bdbdf(++_0x42f5e9);}(_0x42f5,0x98));const _0x4bdb=function(_0xc74231,_0x42f5e9){_0xc74231=_0xc74231-0x0;let _0x4bdbdf=_0x42f5[_0xc74231];return _0x4bdbdf;};import{View as _0x9aadd7}from'ckeditor5/src/ui';export default class si extends _0x9aadd7{constructor(_0xd784ae,_0x19ae03,_0x4cd09a,_0x299bc8){super(_0xd784ae),this[_0x4bdb('0x9')]=null,this[_0x4bdb('0x23')]=null,this[_0x4bdb('0xc')](_0x4bdb('0x1c'),!0x1),this['set'](_0x4bdb('0x1b'),_0x19ae03[_0x4bdb('0x1b')]),this[_0x4bdb('0x0')](_0x4bdb('0x1b'))['to'](_0x19ae03),this[_0x4bdb('0xc')](_0x4bdb('0x22'),[]),this[_0x4bdb('0xc')]('isDirty',!0x1),this[_0x4bdb('0xc')](_0x4bdb('0xd'),!0x1),this[_0x4bdb('0xc')](_0x4bdb('0xe'),!0x1),this[_0x4bdb('0xc')](_0x4bdb('0x2'),!0x1),this[_0x4bdb('0x12')]=_0x19ae03,this[_0x4bdb('0x19')]=_0x4cd09a,this[_0x4bdb('0x10')]=_0x299bc8,_0x299bc8['disableComments']?this[_0x4bdb('0xc')](_0x4bdb('0x6'),0x1):this[_0x4bdb('0x1e')]();}[_0x4bdb('0xa')](){this['element'][_0x4bdb('0xa')]();}[_0x4bdb('0x18')](){this[_0x4bdb('0x9')]&&this[_0x4bdb('0x9')][_0x4bdb('0x18')](),this['commentThreadInputView']&&this[_0x4bdb('0x23')]['destroy'](),super[_0x4bdb('0x18')]();}[_0x4bdb('0x1e')](){const {CommentsListView:_0x23c1f4}=this[_0x4bdb('0x10')];this['commentsListView']=new _0x23c1f4(this[_0x4bdb('0xb')],this[_0x4bdb('0x12')]['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this[_0x4bdb('0x9')][_0x4bdb('0x14')](_0x4bdb('0x20'))['to'](this),this[_0x4bdb('0x9')][_0x4bdb('0x14')](_0x4bdb('0x1d'))['to'](this),this[_0x4bdb('0x9')][_0x4bdb('0x0')](_0x4bdb('0x1c'))['to'](this),this[_0x4bdb('0xc')](_0x4bdb('0x6'),this[_0x4bdb('0x9')][_0x4bdb('0x6')]+0x1),this[_0x4bdb('0x0')](_0x4bdb('0x6'))['to'](this[_0x4bdb('0x9')],_0x4bdb('0x6'),_0x4e53a5=>_0x4e53a5+0x1),this['commentThreadInputView']=this[_0x4bdb('0x3')](),this['on'](_0x4bdb('0x20'),()=>this[_0x4bdb('0xa')]()),this[_0x4bdb('0x0')](_0x4bdb('0x7'))['to'](this[_0x4bdb('0x9')],_0x4bdb('0x13'),this[_0x4bdb('0x23')]['commentInputView'],_0x4bdb('0x11'),(_0x5dd46e,_0x24490d)=>_0x5dd46e||!!_0x24490d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x33c698}=this[_0x4bdb('0x10')],_0x5b350c=new _0x33c698(this['locale'],this[_0x4bdb('0x19')],this[_0x4bdb('0x10')][_0x4bdb('0x1a')]),_0x39d4fe=_0x5b350c[_0x4bdb('0x16')];return _0x5b350c[_0x4bdb('0x0')](_0x4bdb('0xf'))['to'](this,_0x4bdb('0x1c'),this[_0x4bdb('0x12')][_0x4bdb('0x1f')],'isReadOnly',_0x39d4fe,_0x4bdb('0x11'),(_0x3051f1,_0x83e03f,_0xec2bde)=>!!_0xec2bde||_0x3051f1&&!_0x83e03f),_0x39d4fe['on']('submit',(_0x430285,_0x1624b1)=>{this[_0x4bdb('0x1')](_0x4bdb('0x17'),_0x1624b1),_0x39d4fe[_0x4bdb('0x5')][_0x4bdb('0x15')]('');}),_0x39d4fe['on'](_0x4bdb('0x4'),()=>this[_0x4bdb('0xa')]()),_0x39d4fe['bind'](_0x4bdb('0x8'))['to'](this[_0x4bdb('0x12')][_0x4bdb('0x1f')],_0x4bdb('0x21')),_0x5b350c;}}
23
+ const _0x190b=['delegate','commentThread','isReadOnly','bind','setData','set','updateComment','submit','commentThreadInputView','removeComment','length','descriptionParts','destroy','authoredAt','cancel','disableComments','_config','assign','element','isActive','commentInputView','isDirty','locale','disabledSubmit','hasDirtyComment','showInput','commentsListView','value','isEnabled','_model','_localUser','focus','_createCommentThreadInputView','addComment','fire'];(function(_0x42bba5,_0x190be2){const _0x16e92b=function(_0xf236c1){while(--_0xf236c1){_0x42bba5['push'](_0x42bba5['shift']());}};_0x16e92b(++_0x190be2);}(_0x190b,0x17c));const _0x16e9=function(_0x42bba5,_0x190be2){_0x42bba5=_0x42bba5-0x0;let _0x16e92b=_0x190b[_0x42bba5];return _0x16e92b;};import{View as _0x3d4a86}from'ckeditor5/src/ui';export default class si extends _0x3d4a86{constructor(_0x3f83b3,_0x5dff47,_0x4a662b,_0x51148d){super(_0x3f83b3),this['commentsListView']=null,this[_0x16e9('0xd')]=null,this[_0x16e9('0xa')](_0x16e9('0x18'),!0x1),this[_0x16e9('0xa')]('authoredAt',_0x5dff47['authoredAt']),this[_0x16e9('0x8')](_0x16e9('0x12'))['to'](_0x5dff47),this['set'](_0x16e9('0x10'),[]),this[_0x16e9('0xa')](_0x16e9('0x1a'),!0x1),this[_0x16e9('0xa')](_0x16e9('0x21'),!0x1),this['set']('canAccept',!0x1),this[_0x16e9('0xa')]('canDiscard',!0x1),this[_0x16e9('0x22')]=_0x5dff47,this['_localUser']=_0x4a662b,this[_0x16e9('0x15')]=_0x51148d,_0x51148d[_0x16e9('0x14')]?this[_0x16e9('0xa')]('length',0x1):this['_createCommentViews']();}[_0x16e9('0x1')](){this[_0x16e9('0x17')][_0x16e9('0x1')]();}[_0x16e9('0x11')](){this[_0x16e9('0x1f')]&&this['commentsListView'][_0x16e9('0x11')](),this[_0x16e9('0xd')]&&this[_0x16e9('0xd')][_0x16e9('0x11')](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c1bf1}=this['_config'];this['commentsListView']=new _0x2c1bf1(this[_0x16e9('0x1b')],this[_0x16e9('0x22')][_0x16e9('0x6')],Object[_0x16e9('0x16')]({'CommentView':this['_config']['CommentView']},this['_config'])),this[_0x16e9('0x1f')][_0x16e9('0x5')](_0x16e9('0xe'))['to'](this),this[_0x16e9('0x1f')][_0x16e9('0x5')](_0x16e9('0xb'))['to'](this),this[_0x16e9('0x1f')]['bind'](_0x16e9('0x18'))['to'](this),this[_0x16e9('0xa')](_0x16e9('0xf'),this['commentsListView']['length']+0x1),this[_0x16e9('0x8')](_0x16e9('0xf'))['to'](this[_0x16e9('0x1f')],_0x16e9('0xf'),_0x49b927=>_0x49b927+0x1),this[_0x16e9('0xd')]=this['_createCommentThreadInputView'](),this['on'](_0x16e9('0xe'),()=>this[_0x16e9('0x1')]()),this[_0x16e9('0x8')](_0x16e9('0x1a'))['to'](this['commentsListView'],_0x16e9('0x1d'),this[_0x16e9('0xd')][_0x16e9('0x19')],_0x16e9('0x20'),(_0x510edb,_0x46190f)=>_0x510edb||!!_0x46190f);}[_0x16e9('0x2')](){const {CommentThreadInputView:_0x33afdb}=this[_0x16e9('0x15')],_0x13f8b4=new _0x33afdb(this['locale'],this[_0x16e9('0x0')],this[_0x16e9('0x15')]['editorConfig']),_0x4da567=_0x13f8b4[_0x16e9('0x19')];return _0x13f8b4[_0x16e9('0x8')](_0x16e9('0x1e'))['to'](this,'isActive',this[_0x16e9('0x22')][_0x16e9('0x6')],_0x16e9('0x7'),_0x4da567,'value',(_0x39199b,_0x40f8bb,_0x2a5061)=>!!_0x2a5061||_0x39199b&&!_0x40f8bb),_0x4da567['on'](_0x16e9('0xc'),(_0x1df78a,_0x1eae1a)=>{this[_0x16e9('0x4')](_0x16e9('0x3'),_0x1eae1a),_0x4da567['editor'][_0x16e9('0x9')]('');}),_0x4da567['on'](_0x16e9('0x13'),()=>this[_0x16e9('0x1')]()),_0x4da567[_0x16e9('0x8')](_0x16e9('0x1c'))['to'](this['_model'][_0x16e9('0x6')],_0x16e9('0x7')),_0x13f8b4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c96=['ck-suggestion--discard','description','EXTERNAL_SUGGESTION','color','canDiscard','ck-suggestion__info','time','extendTemplate','cancel','EXTERNAL_IMPORT_WORD_SUGGESTION','createElement','_config','ck-comment__info-time','ck-annotation__content-wrapper','attributes','discardButton','querySelector','formatDateTime','discardSuggestion','delegate','</span>','ck-annotation__main','ck-suggestion--disabled-comments','\x22></span>','EXTERNAL_IMPORT_WORD_AVATAR','render','element','ck-comment__external','push','ck-annotation__info-time','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','bindTemplate','ck-suggestion__user','source','\x22\x20title=\x22','editorDestroyed','_descriptionElement','fire','innerText','check','innerHTML','Accept\x20suggestion','isActive','commentsListView','_model','userView','join','content','isEnabled','change:description','authoredAt','editorReady','set','title','ck-suggestion__main','@external','getTemplate','<p>','ck-suggestion-wrapper','setTemplate','name','canAccept','execute','span','_createButton','bind','Discard\x20suggestion','ck-annotation','.ck-annotation__content-wrapper','commentThreadInputView','ck-annotation__user','importWord','ck-suggestion__actions','creator','div','split','value','acceptButton','getUserViewNotificationText','ck-annotation__actions','<span\x20class=\x22ck-suggestion-type\x22>','ck-annotation__info-name','type','author','locale','ck-suggestion__info-name','getExternalSuggestionNote'];(function(_0x274256,_0x2c9648){const _0x2c9d37=function(_0x14f124){while(--_0x14f124){_0x274256['push'](_0x274256['shift']());}};_0x2c9d37(++_0x2c9648);}(_0x2c96,0x109));const _0x2c9d=function(_0x274256,_0x2c9648){_0x274256=_0x274256-0x0;let _0x2c9d37=_0x2c96[_0x274256];return _0x2c9d37;};import{getTranslation as _0x31ac67}from'../../utils/common-translations';import{default as _0x4e872f}from'./basesuggestionthreadview';import{ButtonView as _0x12abfc}from'ckeditor5/src/ui';import{icons as _0x2bf9b9}from'ckeditor5/src/core';import{trimHtml as _0x27e63e,UserView as _0x1de39f}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0x4e872f{constructor(_0x17f7e5,_0x28a177,_0x3481be,_0x6a893a){super(_0x17f7e5,_0x28a177,_0x3481be,_0x6a893a),this[_0x2c9d('0x30')]('type',''),this['bind'](_0x2c9d('0x4e'))['to'](this,'descriptionParts',_0x27423f=>_0x27423f&&_0x27423f[0x0]?_0x27423f[0x0][_0x2c9d('0x4e')]:''),this[_0x2c9d('0x3d')](_0x2c9d('0x54'))['to'](this,'descriptionParts',this,_0x2c9d('0x26'),(_0x3c82a7,_0x3bcdf6)=>{let _0x4ee177='';for(const _0x441abd of _0x3c82a7)_0x4ee177+=_0x2c9d('0x35')+ci(_0x441abd[_0x2c9d('0x2b')],_0x441abd[_0x2c9d('0x56')])+'</p>';return _0x3bcdf6?_0x4ee177:_0x27e63e(_0x4ee177,{'limit':0x8c});}),this[_0x2c9d('0x20')]=null,this[_0x2c9d('0x49')]=this[_0x2c9d('0x3c')](_0x31ac67(_0x17f7e5,_0x2c9d('0x25')),_0x2bf9b9[_0x2c9d('0x23')],'ck-suggestion--accept','acceptSuggestion','sw'),this[_0x2c9d('0x49')]['bind']('isEnabled')['to'](this,_0x2c9d('0x39')),this[_0x2c9d('0xb')]=this[_0x2c9d('0x3c')](_0x31ac67(_0x17f7e5,_0x2c9d('0x3e')),_0x2bf9b9[_0x2c9d('0x4')],_0x2c9d('0x53'),_0x2c9d('0xe'),'sw'),this[_0x2c9d('0xb')][_0x2c9d('0x3d')](_0x2c9d('0x2c'))['to'](this,_0x2c9d('0x0')),this[_0x2c9d('0x29')]=new _0x1de39f(_0x17f7e5,this[_0x2c9d('0x28')][_0x2c9d('0x4f')],this[_0x2c9d('0x4a')]()),this[_0x2c9d('0x29')][_0x2c9d('0x3')]({'attributes':{'class':[_0x2c9d('0x1c'),_0x2c9d('0x42')]}}),this[_0x2c9d('0x37')](this[_0x2c9d('0x34')]());}['getTemplate'](){const _0x1edb1d=this[_0x2c9d('0x1b')],_0x3bbfab=[{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x1'),'ck-annotation__info']},'children':[{'tag':_0x2c9d('0x3b'),'children':[{'text':this[_0x2c9d('0x29')][_0x2c9d('0x38')]}],'attributes':{'class':[_0x2c9d('0x51'),_0x2c9d('0x4d')]}},{'tag':_0x2c9d('0x2'),'attributes':{'datetime':_0x1edb1d['to'](_0x2c9d('0x2e')),'class':[_0x2c9d('0x8'),_0x2c9d('0x19')]},'children':[{'text':_0x1edb1d['to']('authoredAt',_0x4cc62f=>this[_0x2c9d('0x7')][_0x2c9d('0xd')](_0x4cc62f))}]}]},{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x44'),_0x2c9d('0x4b')]},'children':[this[_0x2c9d('0x49')],this[_0x2c9d('0xb')]]},{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x9')]}}];this[_0x2c9d('0x28')]['isExternal']&&_0x3bbfab[_0x2c9d('0x18')]({'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x17')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x312a38={'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x36'),_0x1edb1d['if']('isActive','ck-suggestion-wrapper--active'),_0x1edb1d['to'](_0x2c9d('0x4e'),_0x452984=>'ck-suggestion-'+_0x452984),this[_0x2c9d('0x7')]['disableComments']&&_0x2c9d('0x12')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x2c9d('0x28')]['commentThread']['id'],'data-author-id':this[_0x2c9d('0x28')]['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion',_0x2c9d('0x3f')]},'children':[this['userView'],{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x32'),_0x2c9d('0x11')]},'children':_0x3bbfab}]}]};return this[_0x2c9d('0x27')]&&this['commentThreadInputView']&&(_0x312a38['children'][_0x2c9d('0x18')](this[_0x2c9d('0x27')],this[_0x2c9d('0x41')]),this[_0x2c9d('0x27')][_0x2c9d('0xf')](_0x2c9d('0x2f'))['to'](this),this[_0x2c9d('0x27')]['delegate'](_0x2c9d('0x1f'))['to'](this),this[_0x2c9d('0x41')]['delegate'](_0x2c9d('0x2f'))['to'](this),this[_0x2c9d('0x41')]['delegate'](_0x2c9d('0x1f'))['to'](this)),_0x312a38;}[_0x2c9d('0x15')](){super['render'](),this[_0x2c9d('0x20')]=this[_0x2c9d('0x16')][_0x2c9d('0xc')](_0x2c9d('0x40')),this['_descriptionElement'][_0x2c9d('0x24')]=this[_0x2c9d('0x54')],this['on'](_0x2c9d('0x2d'),(_0x283ed8,_0x4c2373,_0x1c92ed)=>{this[_0x2c9d('0x20')][_0x2c9d('0x24')]=_0x1c92ed;});}[_0x2c9d('0x3c')](_0x479538,_0x38c7e2,_0x1cc5b6,_0x5a2efd,_0x1aff8b){const _0x4c56dd=new _0x12abfc(this['locale']);return _0x4c56dd[_0x2c9d('0x30')]({'label':_0x479538,'icon':_0x38c7e2,'tooltip':!0x0,'tooltipPosition':_0x1aff8b}),_0x4c56dd[_0x2c9d('0x3')]({'attributes':{'class':_0x1cc5b6}}),_0x4c56dd['on'](_0x2c9d('0x3a'),()=>{this[_0x2c9d('0x21')](_0x5a2efd,this['_model']['id']);}),_0x4c56dd;}[_0x2c9d('0x52')](){return _0x2c9d('0x43')===this[_0x2c9d('0x28')]['attributes'][_0x2c9d('0x33')][_0x2c9d('0x1d')]?_0x31ac67(this[_0x2c9d('0x50')],_0x2c9d('0x5')):_0x31ac67(this[_0x2c9d('0x50')],_0x2c9d('0x55'));}[_0x2c9d('0x4a')](){return this[_0x2c9d('0x28')]['isExternal']?_0x2c9d('0x43')===this['_model'][_0x2c9d('0xa')][_0x2c9d('0x33')][_0x2c9d('0x1d')]?_0x31ac67(this[_0x2c9d('0x50')],_0x2c9d('0x14'),this[_0x2c9d('0x28')][_0x2c9d('0x45')]['name']):_0x31ac67(this[_0x2c9d('0x50')],'EXTERNAL_AVATAR',this[_0x2c9d('0x28')][_0x2c9d('0x45')]['name']):null;}}function ci(_0x1cb151,_0x1f7d0d){let _0xa4bddb='';return _0xa4bddb+=_0x1cb151[_0x2c9d('0x47')]('*')['map']((_0x569988,_0x23e99f)=>_0x23e99f%0x2!=0x0?_0x2c9d('0x4c')+ri(_0x569988)+_0x2c9d('0x10'):ri(_0x569988))[_0x2c9d('0x2a')](''),_0x1f7d0d&&(_0xa4bddb+=_0x2c9d('0x1a')+_0x1f7d0d[_0x2c9d('0x48')]+_0x2c9d('0x1e')+_0x1f7d0d[_0x2c9d('0x31')]+_0x2c9d('0x13')),_0xa4bddb;}function ri(_0x3b9f17){const _0xb40010=document[_0x2c9d('0x6')](_0x2c9d('0x3b'));return _0xb40010[_0x2c9d('0x22')]=_0x3b9f17,_0xb40010[_0x2c9d('0x24')];}
23
+ const _0x5661=['formatDateTime','source','cancel','commentsListView','Accept\x20suggestion','name','locale','_createButton','userView','type','render','ck-annotation__user','extendTemplate','Discard\x20suggestion','</span>','description','editorDestroyed','ck-annotation__info-time','color','ck-suggestion__info','commentThreadInputView','_descriptionElement','editorReady','creator','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','author','time','canAccept','ck-annotation','commentThread','ck-suggestion-wrapper--active','set','fire','ck-suggestion--disabled-comments','ck-suggestion__main','ck-suggestion--accept','push','descriptionParts','ck-annotation__info-name','isExternal','acceptSuggestion','div','canDiscard','\x22\x20title=\x22','map','_config','setTemplate','EXTERNAL_IMPORT_WORD_AVATAR','ck-suggestion-wrapper','ck-annotation__actions','title','@external','_model','ck-suggestion-','ck-annotation__info','value','discardSuggestion','getUserViewNotificationText','innerText','bindTemplate','join','isEnabled','discardButton','getExternalSuggestionNote','element','attributes','.ck-annotation__content-wrapper','isActive','importWord','EXTERNAL_IMPORT_WORD_SUGGESTION','getTemplate','ck-suggestion__actions','disableComments','innerHTML','delegate','bind','ck-suggestion--discard','authoredAt','<p>','querySelector','</p>','<span\x20class=\x22ck-suggestion-type\x22>','acceptButton'];(function(_0x24cc35,_0x56610a){const _0x4a3f4c=function(_0x5236d0){while(--_0x5236d0){_0x24cc35['push'](_0x24cc35['shift']());}};_0x4a3f4c(++_0x56610a);}(_0x5661,0xfe));const _0x4a3f=function(_0x24cc35,_0x56610a){_0x24cc35=_0x24cc35-0x0;let _0x4a3f4c=_0x5661[_0x24cc35];return _0x4a3f4c;};import{getTranslation as _0x301fc1}from'../../utils/common-translations';import{default as _0x2d3aec}from'./basesuggestionthreadview';import{ButtonView as _0x862609}from'ckeditor5/src/ui';import{icons as _0x53a3d7}from'ckeditor5/src/core';import{trimHtml as _0x17b6ad,UserView as _0x5c3061}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0x2d3aec{constructor(_0x2cc577,_0x29ab85,_0x536975,_0x5921a3){super(_0x2cc577,_0x29ab85,_0x536975,_0x5921a3),this[_0x4a3f('0x1a')]('type',''),this['bind'](_0x4a3f('0x4'))['to'](this,_0x4a3f('0x20'),_0x2f7e35=>_0x2f7e35&&_0x2f7e35[0x0]?_0x2f7e35[0x0][_0x4a3f('0x4')]:''),this[_0x4a3f('0x46')](_0x4a3f('0xa'))['to'](this,_0x4a3f('0x20'),this,_0x4a3f('0x3e'),(_0x5920a0,_0x29ef83)=>{let _0x4c1191='';for(const _0x2c9865 of _0x5920a0)_0x4c1191+=_0x4a3f('0x49')+ci(_0x2c9865['content'],_0x2c9865[_0x4a3f('0xd')])+_0x4a3f('0x4b');return _0x29ef83?_0x4c1191:_0x17b6ad(_0x4c1191,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x4a3f('0x4d')]=this[_0x4a3f('0x2')](_0x301fc1(_0x2cc577,_0x4a3f('0x52')),_0x53a3d7['check'],_0x4a3f('0x1e'),_0x4a3f('0x23'),'sw'),this[_0x4a3f('0x4d')][_0x4a3f('0x46')]('isEnabled')['to'](this,_0x4a3f('0x16')),this['discardButton']=this[_0x4a3f('0x2')](_0x301fc1(_0x2cc577,_0x4a3f('0x8')),_0x53a3d7[_0x4a3f('0x50')],_0x4a3f('0x47'),_0x4a3f('0x33'),'sw'),this[_0x4a3f('0x39')][_0x4a3f('0x46')](_0x4a3f('0x38'))['to'](this,_0x4a3f('0x25')),this[_0x4a3f('0x3')]=new _0x5c3061(_0x2cc577,this['_model'][_0x4a3f('0x14')],this[_0x4a3f('0x34')]()),this[_0x4a3f('0x3')][_0x4a3f('0x7')]({'attributes':{'class':['ck-suggestion__user',_0x4a3f('0x6')]}}),this[_0x4a3f('0x29')](this[_0x4a3f('0x41')]());}['getTemplate'](){const _0x9eb2e7=this[_0x4a3f('0x36')],_0x1060d5=[{'tag':_0x4a3f('0x24'),'attributes':{'class':[_0x4a3f('0xe'),_0x4a3f('0x31')]},'children':[{'tag':'span','children':[{'text':this[_0x4a3f('0x3')][_0x4a3f('0x0')]}],'attributes':{'class':['ck-suggestion__info-name',_0x4a3f('0x21')]}},{'tag':_0x4a3f('0x15'),'attributes':{'datetime':_0x9eb2e7['to'](_0x4a3f('0x48')),'class':['ck-comment__info-time',_0x4a3f('0xc')]},'children':[{'text':_0x9eb2e7['to'](_0x4a3f('0x48'),_0x2f97c1=>this[_0x4a3f('0x28')][_0x4a3f('0x4e')](_0x2f97c1))}]}]},{'tag':_0x4a3f('0x24'),'attributes':{'class':[_0x4a3f('0x42'),_0x4a3f('0x2c')]},'children':[this[_0x4a3f('0x4d')],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x4a3f('0x2f')][_0x4a3f('0x22')]&&_0x1060d5['push']({'tag':_0x4a3f('0x24'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x4a3f('0x3a')]()}]});const _0x1ad069={'tag':_0x4a3f('0x24'),'attributes':{'class':[_0x4a3f('0x2b'),_0x9eb2e7['if'](_0x4a3f('0x3e'),_0x4a3f('0x19')),_0x9eb2e7['to'](_0x4a3f('0x4'),_0xd81aeb=>_0x4a3f('0x30')+_0xd81aeb),this[_0x4a3f('0x28')][_0x4a3f('0x43')]&&_0x4a3f('0x1c')],'data-suggestion-id':this[_0x4a3f('0x2f')]['id'],'data-thread-id':this[_0x4a3f('0x2f')][_0x4a3f('0x18')]['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x4a3f('0x24'),'attributes':{'class':['ck-suggestion',_0x4a3f('0x17')]},'children':[this[_0x4a3f('0x3')],{'tag':'div','attributes':{'class':[_0x4a3f('0x1d'),'ck-annotation__main']},'children':_0x1060d5}]}]};return this[_0x4a3f('0x51')]&&this[_0x4a3f('0xf')]&&(_0x1ad069['children'][_0x4a3f('0x1f')](this['commentsListView'],this['commentThreadInputView']),this[_0x4a3f('0x51')][_0x4a3f('0x45')](_0x4a3f('0x11'))['to'](this),this[_0x4a3f('0x51')][_0x4a3f('0x45')](_0x4a3f('0xb'))['to'](this),this[_0x4a3f('0xf')][_0x4a3f('0x45')](_0x4a3f('0x11'))['to'](this),this[_0x4a3f('0xf')]['delegate'](_0x4a3f('0xb'))['to'](this)),_0x1ad069;}[_0x4a3f('0x5')](){super[_0x4a3f('0x5')](),this[_0x4a3f('0x10')]=this[_0x4a3f('0x3b')][_0x4a3f('0x4a')](_0x4a3f('0x3d')),this[_0x4a3f('0x10')]['innerHTML']=this[_0x4a3f('0xa')],this['on']('change:description',(_0x25a02e,_0x44bb9e,_0xcfe0a3)=>{this['_descriptionElement'][_0x4a3f('0x44')]=_0xcfe0a3;});}[_0x4a3f('0x2')](_0xf0eacd,_0x343ab4,_0x52eb0b,_0x54c2a6,_0x7eff51){const _0xad5492=new _0x862609(this[_0x4a3f('0x1')]);return _0xad5492['set']({'label':_0xf0eacd,'icon':_0x343ab4,'tooltip':!0x0,'tooltipPosition':_0x7eff51}),_0xad5492['extendTemplate']({'attributes':{'class':_0x52eb0b}}),_0xad5492['on']('execute',()=>{this[_0x4a3f('0x1b')](_0x54c2a6,this['_model']['id']);}),_0xad5492;}['getExternalSuggestionNote'](){return _0x4a3f('0x3f')===this[_0x4a3f('0x2f')][_0x4a3f('0x3c')][_0x4a3f('0x2e')][_0x4a3f('0x4f')]?_0x301fc1(this[_0x4a3f('0x1')],_0x4a3f('0x40')):_0x301fc1(this[_0x4a3f('0x1')],'EXTERNAL_SUGGESTION');}[_0x4a3f('0x34')](){return this[_0x4a3f('0x2f')][_0x4a3f('0x22')]?_0x4a3f('0x3f')===this[_0x4a3f('0x2f')]['attributes'][_0x4a3f('0x2e')][_0x4a3f('0x4f')]?_0x301fc1(this[_0x4a3f('0x1')],_0x4a3f('0x2a'),this[_0x4a3f('0x2f')][_0x4a3f('0x12')][_0x4a3f('0x0')]):_0x301fc1(this[_0x4a3f('0x1')],'EXTERNAL_AVATAR',this[_0x4a3f('0x2f')][_0x4a3f('0x12')][_0x4a3f('0x0')]):null;}}function ci(_0x5afce8,_0x388aae){let _0x134d6e='';return _0x134d6e+=_0x5afce8['split']('*')[_0x4a3f('0x27')]((_0x2f2eb9,_0x7f2713)=>_0x7f2713%0x2!=0x0?_0x4a3f('0x4c')+ri(_0x2f2eb9)+_0x4a3f('0x9'):ri(_0x2f2eb9))[_0x4a3f('0x37')](''),_0x388aae&&(_0x134d6e+=_0x4a3f('0x13')+_0x388aae[_0x4a3f('0x32')]+_0x4a3f('0x26')+_0x388aae[_0x4a3f('0x2d')]+'\x22></span>'),_0x134d6e;}function ri(_0x14defb){const _0x36869d=document['createElement']('span');return _0x36869d[_0x4a3f('0x35')]=_0x14defb,_0x36869d[_0x4a3f('0x44')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x597971,_0x47b15e,_0x268e8d){const t=_0x597971['t'];switch(_0x47b15e){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',_0x268e8d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x268e8d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x268e8d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x268e8d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x268e8d);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',_0x268e8d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x268e8d);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',_0x268e8d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x268e8d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x268e8d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x268e8d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x268e8d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x268e8d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x268e8d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x268e8d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x268e8d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x268e8d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x268e8d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x268e8d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x268e8d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x268e8d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x268e8d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x268e8d);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'},_0x268e8d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x268e8d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x268e8d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x268e8d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x268e8d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x268e8d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x268e8d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x268e8d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x268e8d);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'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x268e8d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x268e8d);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'},_0x268e8d);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'},_0x268e8d);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 _0x47b15e;}}
23
+ export function getTranslation(_0x1cd986,_0x3ccc1e,_0x4cdd74){const t=_0x1cd986['t'];switch(_0x3ccc1e){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',_0x4cdd74);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4cdd74);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4cdd74);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4cdd74);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4cdd74);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',_0x4cdd74);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4cdd74);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',_0x4cdd74);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4cdd74);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4cdd74);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4cdd74);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4cdd74);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4cdd74);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4cdd74);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4cdd74);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4cdd74);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4cdd74);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4cdd74);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4cdd74);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4cdd74);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4cdd74);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4cdd74);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4cdd74);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'},_0x4cdd74);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4cdd74);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4cdd74);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4cdd74);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4cdd74);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4cdd74);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'},_0x4cdd74);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4cdd74);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4cdd74);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4cdd74);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4cdd74);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'},_0x4cdd74);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4cdd74);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'},_0x4cdd74);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'},_0x4cdd74);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4cdd74);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'},_0x4cdd74);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4cdd74);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'},_0x4cdd74);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4cdd74);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4cdd74);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'},_0x4cdd74);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'},_0x4cdd74);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 _0x3ccc1e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9592=['next','push','getRanges','add','execute','splice','type','isTouching','length','content','isObject','isIntersecting','createPositionBefore','from','end','deletion','isArray','\x20[color\x20','replace','isInContent','isMultiRange','map','createPositionAfter'];(function(_0x20653f,_0x959296){const _0x2d0898=function(_0x20ee19){while(--_0x20ee19){_0x20653f['push'](_0x20653f['shift']());}};_0x2d0898(++_0x959296);}(_0x9592,0xec));const _0x2d08=function(_0x20653f,_0x959296){_0x20653f=_0x20653f-0x0;let _0x2d0898=_0x9592[_0x20653f];return _0x2d0898;};export function normalizeDescription(_0x21a96f){return Array[_0x2d08('0xa')](_0x21a96f)||(_0x21a96f=[_0x21a96f]),_0x21a96f[_0x2d08('0xf')](_0x2a22b7=>{const _0x57b5cb=_0x2a22b7[_0x2d08('0x3')][_0x2d08('0xc')](/\*/g,''),_0x20953f=_0x2a22b7['color']?_0x2d08('0xb')+_0x2a22b7['color']['value']+']':'';return'['+_0x2a22b7[_0x2d08('0x0')]+']\x20'+_0x57b5cb+_0x20953f;})['join'](';\x20');}export function sortSuggestions(_0x2a7804){return _0x2a7804['sort']((_0x350b17,_0x4d1a04)=>_0x2d08('0x9')==_0x350b17[_0x2d08('0x0')]&&_0x2d08('0x9')!=_0x4d1a04[_0x2d08('0x0')]?-0x1:'deletion'!=_0x350b17[_0x2d08('0x0')]&&_0x2d08('0x9')==_0x4d1a04[_0x2d08('0x0')]?0x1:0x0);}export function getSelectedSuggestions(_0x30ff60,_0x3669eb){const _0x53f80e=Array[_0x2d08('0x7')](_0x30ff60[_0x2d08('0x13')]()),_0xfb3e99=new Set();for(const _0x10c4cc of _0x3669eb)if(_0x10c4cc[_0x2d08('0xd')])for(const _0x2f19df of _0x53f80e)for(const _0x99b698 of _0x10c4cc['getRanges']())(_0x2f19df[_0x2d08('0x5')](_0x99b698)||_0x30ff60['isCollapsed']&&!_0x10c4cc[_0x2d08('0xe')]&&_0x10c4cc[_0x2d08('0x11')]&&_0x99b698[_0x2d08('0x8')]['isTouching'](_0x2f19df['start']))&&_0xfb3e99[_0x2d08('0x14')](_0x10c4cc);return _0xfb3e99;}export function getRangesOfBlockGroups(_0xa071a3,_0x2bc758){let _0x464e3e,_0x582164=0x0;const _0x37f58f=[],_0x2eba54=_0x2bc758['schema'];for(;_0x582164<_0xa071a3[_0x2d08('0x2')];){const _0xfba0f1=_0xa071a3[_0x582164],_0x425e7d=_0xa071a3[_0x582164+0x1];_0x464e3e||(_0x464e3e=_0x2bc758[_0x2d08('0x6')](_0xfba0f1)),co(_0x2bc758,_0xfba0f1,_0x425e7d)||(_0x37f58f[_0x2d08('0x12')](_0x2bc758['createRange'](_0x464e3e,_0x2eba54[_0x2d08('0x4')](_0xfba0f1)?_0x2bc758[_0x2d08('0x10')](_0xfba0f1):_0x2bc758['createPositionAt'](_0xfba0f1,_0x2d08('0x8')))),_0x464e3e=null),_0x582164++;}return _0x37f58f;}function co(_0x4e682d,_0x46fe73,_0x12f731){if(!_0x12f731)return!0x1;const _0x32b79d=_0x4e682d[_0x2d08('0x10')](_0x46fe73),_0x3d7695=_0x4e682d['createPositionBefore'](_0x12f731);return _0x32b79d[_0x2d08('0x1')](_0x3d7695);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x581978,_0x12d720,_0x5bf253){for(;_0x5bf253[_0x2d08('0x2')];){const _0x48667f=_0x5bf253[_0x2d08('0x16')](0x0,0x64);_0x581978['change'](()=>{for(const _0x5b5c9e of _0x48667f)_0x5b5c9e['isInContent']&&_0x12d720[_0x2d08('0x15')](_0x5b5c9e['id']);});}}
23
+ const _0x28b8=['isInContent','isCollapsed','deletion','isIntersecting','execute','isArray','from','color','end','createPositionAt','push','createRange','createPositionAfter','type','content','\x20[color\x20','splice','value','createPositionBefore','change','getRanges','start','next','length','map','isTouching'];(function(_0x462d4d,_0x28b83a){const _0x5168b8=function(_0x1b37c4){while(--_0x1b37c4){_0x462d4d['push'](_0x462d4d['shift']());}};_0x5168b8(++_0x28b83a);}(_0x28b8,0x18b));const _0x5168=function(_0x462d4d,_0x28b83a){_0x462d4d=_0x462d4d-0x0;let _0x5168b8=_0x28b8[_0x462d4d];return _0x5168b8;};export function normalizeDescription(_0x850d80){return Array[_0x5168('0x0')](_0x850d80)||(_0x850d80=[_0x850d80]),_0x850d80[_0x5168('0x13')](_0x5cdbaa=>{const _0x108939=_0x5cdbaa[_0x5168('0x9')]['replace'](/\*/g,''),_0x335094=_0x5cdbaa[_0x5168('0x2')]?_0x5168('0xa')+_0x5cdbaa['color'][_0x5168('0xc')]+']':'';return'['+_0x5cdbaa['type']+']\x20'+_0x108939+_0x335094;})['join'](';\x20');}export function sortSuggestions(_0x3812d7){return _0x3812d7['sort']((_0x2891f7,_0x3c7cbd)=>'deletion'==_0x2891f7[_0x5168('0x8')]&&'deletion'!=_0x3c7cbd[_0x5168('0x8')]?-0x1:_0x5168('0x17')!=_0x2891f7[_0x5168('0x8')]&&_0x5168('0x17')==_0x3c7cbd['type']?0x1:0x0);}export function getSelectedSuggestions(_0x1a1cb7,_0x50f63e){const _0x524cd1=Array[_0x5168('0x1')](_0x1a1cb7[_0x5168('0xf')]()),_0x4f29b9=new Set();for(const _0x56f415 of _0x50f63e)if(_0x56f415['isInContent'])for(const _0x25e9b1 of _0x524cd1)for(const _0x4d6eeb of _0x56f415[_0x5168('0xf')]())(_0x25e9b1[_0x5168('0x18')](_0x4d6eeb)||_0x1a1cb7[_0x5168('0x16')]&&!_0x56f415['isMultiRange']&&_0x56f415[_0x5168('0x11')]&&_0x4d6eeb[_0x5168('0x3')][_0x5168('0x14')](_0x25e9b1[_0x5168('0x10')]))&&_0x4f29b9['add'](_0x56f415);return _0x4f29b9;}export function getRangesOfBlockGroups(_0x2bd462,_0x4cf5bb){let _0x1b6fa0,_0x33a2e3=0x0;const _0x49f385=[],_0x3f74bf=_0x4cf5bb['schema'];for(;_0x33a2e3<_0x2bd462[_0x5168('0x12')];){const _0x53b806=_0x2bd462[_0x33a2e3],_0x2c7bba=_0x2bd462[_0x33a2e3+0x1];_0x1b6fa0||(_0x1b6fa0=_0x4cf5bb[_0x5168('0xd')](_0x53b806)),co(_0x4cf5bb,_0x53b806,_0x2c7bba)||(_0x49f385[_0x5168('0x5')](_0x4cf5bb[_0x5168('0x6')](_0x1b6fa0,_0x3f74bf['isObject'](_0x53b806)?_0x4cf5bb[_0x5168('0x7')](_0x53b806):_0x4cf5bb[_0x5168('0x4')](_0x53b806,_0x5168('0x3')))),_0x1b6fa0=null),_0x33a2e3++;}return _0x49f385;}function co(_0x47396c,_0x54503d,_0x33f9b4){if(!_0x33f9b4)return!0x1;const _0x1734c4=_0x47396c[_0x5168('0x7')](_0x54503d),_0x14eded=_0x47396c[_0x5168('0xd')](_0x33f9b4);return _0x1734c4[_0x5168('0x14')](_0x14eded);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x2268e3,_0x1d70bd,_0x997e6a){for(;_0x997e6a[_0x5168('0x12')];){const _0x4e7191=_0x997e6a[_0x5168('0xb')](0x0,0x64);_0x2268e3[_0x5168('0xe')](()=>{for(const _0x5e8a6d of _0x4e7191)_0x5e8a6d[_0x5168('0x15')]&&_0x1d70bd[_0x5168('0x19')](_0x5e8a6d['id']);});}}