@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240104.0 → 0.0.0-nightly-20240105.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 (67) 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/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/documentlist.js +1 -1
  18. package/src/integrations/documentlistproperties.js +1 -1
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/imagestyle.js +1 -1
  30. package/src/integrations/importword.js +1 -1
  31. package/src/integrations/indent.js +1 -1
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ce5=['config','execute','getDescriptions','pluginName','getAllAdjacentSuggestions','activeAnnotations','values','TrackChangesEditing','locale','commandName','getFirstRange','_updateController','addSourceCollector','change:activeAnnotations','length','discardAllSuggestions','button','push','isEnabled','CommentsUI','comments','add','_destroyController','bind','registerAnnotation','_handleControllerBuffer','_disableComments','view','Accept\x20all\x20suggestions','SuggestionThreadView','comments.maxCommentCharsWhenCollapsed','isOn','getByInnerView','_annotationViews','model','Discard\x20all\x20selected\x20suggestions','_initializeController','_viewToController','editing','head','suggestionLoaded','suggestion-','delete','_descriptionFactory','source','value','get','CommentsRepository','TrackChangesUI','mainView','comments.maxCommentsWhenCollapsed','Accept\x20all\x20selected\x20suggestions','focus','_bindAnnotationToEditors','separator','discardButton','keys','descriptionParts','remove','isDirty','comments.maxThreadTotalWeight','actionView','buttonView','addComment','Annotations','getSuggestion','componentFactory','type','set','reduce','Track\x20changes','define','innerView','listenTo','trackChanges','arrowView','EditorAnnotations','commands','getMarkerNames','hasSuggestion','isInContent','size','trackChanges.disableComments','change:previous','stopListening','some','_handleSuggestionControllerDelayed','has','init','lowest','acceptButton','_createUIButton','getJoined','requires','unbind','getMarkers','Discard\x20all\x20suggestions','CommentView','acceptSelectedSuggestions','from','_refreshActiveMarkers','map','createCommentThreadController','switchbutton','suggestionUnloaded','clear','_suggestionToController','editor','plugins','destroy'];(function(_0x4150e4,_0x2ce50e){const _0x497060=function(_0x5393d0){while(--_0x5393d0){_0x4150e4['push'](_0x4150e4['shift']());}};_0x497060(++_0x2ce50e);}(_0x2ce5,0x176));const _0x4970=function(_0x4150e4,_0x2ce50e){_0x4150e4=_0x4150e4-0x0;let _0x497060=_0x2ce5[_0x4150e4];return _0x497060;};import{Plugin as _0x46af60}from'ckeditor5/src/core.js';import{Collection as _0x2806a3}from'ckeditor5/src/utils.js';import{Model as _0x57ecff,SplitButtonView as _0x4eae2f,createDropdown as _0x3e277c,addListToDropdown as _0x3cc035}from'ckeditor5/src/ui.js';import{Users as _0x20c3fc,getDateTimeFormatter as _0x5b2d74,getAllMarkersDomElementsSorted as _0x473d5f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x550717 from'./trackchangesediting.js';import _0x180fc2 from'./ui/suggestioncontroller.js';import _0x4e62f2 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x23d229}from'./utils/common-translations.js';import _0x52c494 from'../theme/icons/track-changes.svg';export default class d extends _0x46af60{static get[_0x4970('0x31')](){return[_0x550717,_0x20c3fc,_0x4970('0x3'),_0x4970('0x14'),_0x4970('0x20')];}static get[_0x4970('0x45')](){return _0x4970('0x4');}constructor(_0x2f66f4){super(_0x2f66f4),this[_0x4970('0x3e')]=new Map(),this[_0x4970('0x67')]=new Map(),this['_annotationViews']=new Map(),this[_0x4970('0x5b')]=new Map();const _0x5b95e1=this['editor'][_0x4970('0x42')];_0x5b95e1['define']('trackChanges.SuggestionThreadView',_0x4e62f2),_0x5b95e1[_0x4970('0x1b')](_0x4970('0x26'),!0x1),this[_0x4970('0x5c')]=_0x5b95e1[_0x4970('0x2')](_0x4970('0x26'));}[_0x4970('0x2a')](_0x46619b,_0x523c38){0x0===this[_0x4970('0x5b')][_0x4970('0x25')]&&setTimeout(()=>{for(const [_0x2bc6ff,_0x46646b]of this['_handleControllerBuffer']){const _0x3c5541=this['_suggestionToController']['has'](_0x2bc6ff);_0x3c5541||_0x46646b?_0x3c5541&&_0x46646b&&this[_0x4970('0x58')](_0x2bc6ff):this[_0x4970('0x66')](_0x2bc6ff);}this[_0x4970('0x3f')][_0x4970('0x40')][_0x4970('0x2')](_0x4970('0x20'))['refreshSelectedViews'](),this[_0x4970('0x38')](),this['_handleControllerBuffer'][_0x4970('0x3d')]();},0xa),this[_0x4970('0x5b')]['set'](_0x46619b,_0x523c38);}[_0x4970('0x2c')](){const _0x2a4258=this[_0x4970('0x3f')],_0x1fb617=_0x2a4258[_0x4970('0x40')]['get'](_0x4970('0x49')),_0x237fd7=_0x2a4258[_0x4970('0x40')]['get']('Annotations'),_0x32f732=_0x2a4258[_0x4970('0x40')][_0x4970('0x2')]('EditorAnnotations'),_0x31b130=_0x2a4258['plugins'][_0x4970('0x2')](_0x4970('0x3'));_0x2a4258['ui'][_0x4970('0x16')]['add'](_0x4970('0x1e'),_0x44906f=>this['_createUIButton'](_0x44906f)),_0x32f732[_0x4970('0x4e')](()=>{const _0x3e5d84=[];for(const [_0xdaf0b,_0x39a09b]of Array[_0x4970('0x37')](this['_suggestionToController'])){const _0x3a49f5=_0xdaf0b[_0x4970('0x46')](),_0x3aa67b=[];for(const _0xdac626 of _0x3a49f5){if(!_0xdac626['isInContent'])continue;if(_0xdac626['isMultiRange']){_0x3aa67b[_0x4970('0x53')](..._0xdac626['getRanges']());continue;}const _0x457aa9=_0xdac626[_0x4970('0x4c')]();if(_0x3aa67b[_0x4970('0x50')]>0x0){const _0x2931aa=_0x3aa67b[0x0][_0x4970('0x30')](_0x457aa9);if(_0x2931aa){_0x3aa67b[0x0]=_0x2931aa;continue;}}_0x3aa67b[_0x4970('0x53')](_0x457aa9);}_0x3e5d84[_0x4970('0x53')]([_0x39a09b['view'],_0x3aa67b]);}return _0x3e5d84;}),this[_0x4970('0x1d')](_0x1fb617,_0x4970('0x6a'),(_0x48818c,_0x49fd91)=>{this[_0x4970('0x1d')](_0x49fd91,_0x4970('0x27'),(_0x4823d4,_0x9751c3,_0xf99f1d,_0x4d34a6)=>{_0x49fd91['isInContent']&&(null==_0xf99f1d?(this[_0x4970('0x4d')](_0x4d34a6['head']),this[_0x4970('0x2a')](_0x49fd91,!0x1)):(this[_0x4970('0x4d')](_0xf99f1d['head']),null==_0x4d34a6&&this[_0x4970('0x2a')](_0x49fd91,!0x0)));}),null!==_0x49fd91['previous']?this[_0x4970('0x4d')](_0x49fd91[_0x4970('0x69')]):this[_0x4970('0x2a')](_0x49fd91,!0x1);}),this[_0x4970('0x1d')](_0x1fb617,_0x4970('0x3c'),(_0x51a0f9,_0x99291f,_0x2afe69)=>{this[_0x4970('0x28')](_0x99291f,_0x4970('0x27')),this[_0x4970('0x5b')][_0x4970('0x6c')](_0x99291f),this['_suggestionToController']['has'](_0x99291f)&&this['_destroyController'](_0x99291f),_0x2afe69&&this['_updateController'](_0x2afe69[_0x4970('0x69')]);}),this[_0x4970('0x1d')](_0x1fb617,'suggestionChanged',(_0x312f14,_0x536b9d)=>{this[_0x4970('0x4d')](_0x536b9d);}),this[_0x4970('0x1d')](_0x237fd7,_0x4970('0x4f'),()=>{this['_refreshActiveMarkers']();}),this[_0x4970('0x1d')](_0x31b130,_0x4970('0x13'),(_0x11c2d5,{threadId:_0x4bc346,isFromAdapter:_0x36823c})=>{if(_0x36823c||!_0x1fb617[_0x4970('0x23')](_0x4bc346))return;const _0x1136ee=_0x1fb617[_0x4970('0x15')](_0x4bc346);this[_0x4970('0x3e')][_0x4970('0x2')](_0x1136ee)['view'][_0x4970('0x8')]();},{'priority':_0x4970('0x2d')});}[_0x4970('0x38')](){const _0x18048c=this['editor'][_0x4970('0x40')]['get'](_0x4970('0x14')),_0x1e3b3d=this[_0x4970('0x3f')][_0x4970('0x40')][_0x4970('0x2')]('TrackChangesEditing'),_0x151e84=Array[_0x4970('0x37')](_0x18048c[_0x4970('0x47')],_0x2b992b=>_0x2b992b[_0x4970('0x1c')])['filter'](_0x1c8914=>this['_viewToController'][_0x4970('0x2b')](_0x1c8914)),_0x5d86b8=[];for(const _0x1b3f22 of _0x151e84){const _0x87b8b1=this[_0x4970('0x67')][_0x4970('0x2')](_0x1b3f22)[_0x4970('0x64')][_0x4970('0x46')]();_0x5d86b8[_0x4970('0x53')](..._0x87b8b1[_0x4970('0x19')]((_0x3173e1,_0xa97e5e)=>[..._0x3173e1,..._0xa97e5e[_0x4970('0x22')]()],[]));}_0x1e3b3d['activeMarkers']=_0x5d86b8;}[_0x4970('0x2f')](_0x2bf136){const _0x463029=_0x3e277c(_0x2bf136,_0x4eae2f),_0x3bbe72=this[_0x4970('0x3f')]['commands'][_0x4970('0x2')](_0x4970('0x1e')),_0x2e3a99=_0x23d229(_0x2bf136,_0x4970('0x1a'));_0x463029[_0x4970('0x12')][_0x4970('0x18')]({'tooltip':_0x2e3a99,'label':_0x2e3a99,'icon':_0x52c494}),_0x463029[_0x4970('0x12')]['bind'](_0x4970('0x61'))['to'](_0x3bbe72,_0x4970('0x1')),_0x463029[_0x4970('0x12')]['on'](_0x4970('0x43'),()=>{_0x3bbe72[_0x4970('0x43')](),this[_0x4970('0x3f')][_0x4970('0x68')][_0x4970('0x5d')]['focus']();});const _0x46a6a4=new _0x2806a3(),_0x3af33c=[{'type':_0x4970('0x3b'),'model':{'withText':!0x0,'label':_0x2e3a99,'commandName':_0x4970('0x1e')}},{'type':_0x4970('0xa')},{'type':'button','model':{'withText':!0x0,'label':_0x23d229(_0x2bf136,_0x4970('0x5e')),'commandName':'acceptAllSuggestions'}},{'type':_0x4970('0x52'),'model':{'withText':!0x0,'label':_0x23d229(_0x2bf136,_0x4970('0x7')),'commandName':_0x4970('0x36')}},{'type':'button','model':{'withText':!0x0,'label':_0x23d229(_0x2bf136,_0x4970('0x34')),'commandName':_0x4970('0x51')}},{'type':_0x4970('0x52'),'model':{'withText':!0x0,'label':_0x23d229(_0x2bf136,_0x4970('0x65')),'commandName':'discardSelectedSuggestions'}}];for(const _0x26ba2a of _0x3af33c){let _0xb4abb={'type':_0x4970('0xa')};if(_0x26ba2a[_0x4970('0x64')]){const _0x42d883=new _0x57ecff(_0x26ba2a['model']),_0x58f94b=this['editor'][_0x4970('0x21')]['get'](_0x42d883['commandName']);_0x42d883[_0x4970('0x59')]('isOn',_0x4970('0x54'))['to'](_0x58f94b,_0x4970('0x1'),_0x4970('0x54')),_0xb4abb={'type':_0x26ba2a['type'],'model':_0x42d883};}_0x46a6a4[_0x4970('0x57')](_0xb4abb);}_0x3cc035(_0x463029,_0x46a6a4);const _0x56efef=_0x3af33c['filter'](_0x2f9517=>null!=_0x2f9517[_0x4970('0x64')])[_0x4970('0x39')](_0x40a32a=>this[_0x4970('0x3f')][_0x4970('0x21')][_0x4970('0x2')](_0x40a32a[_0x4970('0x64')][_0x4970('0x4b')])),_0x54d931=_0x463029[_0x4970('0x12')];return _0x54d931[_0x4970('0x11')]['unbind'](_0x4970('0x54')),_0x54d931[_0x4970('0x1f')][_0x4970('0x32')]('isEnabled'),_0x54d931[_0x4970('0x11')][_0x4970('0x59')](_0x4970('0x54'))['to'](_0x3bbe72,_0x4970('0x54')),_0x54d931[_0x4970('0x1f')]['bind']('isEnabled')['toMany'](_0x56efef,_0x4970('0x54'),(..._0xf423a5)=>_0xf423a5[_0x4970('0x29')](_0xc69028=>_0xc69028)),_0x463029['on'](_0x4970('0x43'),_0x2e61b8=>{this[_0x4970('0x3f')][_0x4970('0x43')](_0x2e61b8[_0x4970('0x0')][_0x4970('0x4b')]),this['editor'][_0x4970('0x68')][_0x4970('0x5d')]['focus']();}),_0x463029;}[_0x4970('0x66')](_0x4bd269){const _0x295e39=this[_0x4970('0x3f')],_0x39e457=_0x295e39[_0x4970('0x42')],_0x3486c2=_0x295e39[_0x4970('0x40')]['get'](_0x4970('0x14')),_0x361409=_0x295e39['plugins'][_0x4970('0x2')](_0x4970('0x3')),_0x398d2c=_0x295e39[_0x4970('0x40')][_0x4970('0x2')](_0x4970('0x20')),_0x95000e=_0x295e39['plugins'][_0x4970('0x2')](_0x20c3fc)['me'],_0x3f87d1=_0x39e457[_0x4970('0x2')](_0x4970('0x1e'))[_0x4970('0x5f')],{CommentsListView:_0x3633f2,CommentThreadInputView:_0xc771f0}=_0x295e39[_0x4970('0x40')][_0x4970('0x2')](_0x4970('0x55'));let _0x1d5238,_0x5b2cea;this[_0x4970('0x63')][_0x4970('0x2b')](_0x4bd269['id'])?(_0x5b2cea=this[_0x4970('0x63')][_0x4970('0x2')](_0x4bd269['id']),_0x1d5238=_0x5b2cea[_0x4970('0x5')]):(_0x1d5238=new _0x3f87d1(_0x295e39[_0x4970('0x4a')],_0x4bd269,_0x95000e,{'disableComments':this[_0x4970('0x5c')],'editorConfig':_0x39e457[_0x4970('0x2')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x39e457[_0x4970('0x2')](_0x4970('0x6')),'maxThreadTotalWeight':_0x39e457[_0x4970('0x2')](_0x4970('0x10')),'maxCommentCharsWhenCollapsed':_0x39e457[_0x4970('0x2')](_0x4970('0x60')),'formatDateTime':_0x5b2d74(_0x39e457[_0x4970('0x2')]('locale')),'CommentView':_0x39e457['get'](_0x4970('0x56'))[_0x4970('0x35')],'CommentsListView':_0x3633f2,'CommentThreadInputView':_0xc771f0}),_0x1d5238[_0x4970('0x2e')]['on'](_0x4970('0x43'),()=>{_0x295e39[_0x4970('0x68')][_0x4970('0x5d')][_0x4970('0x8')]();}),_0x1d5238[_0x4970('0xb')]['on'](_0x4970('0x43'),()=>{_0x295e39[_0x4970('0x68')]['view']['focus']();}),_0x5b2cea=_0x3486c2['createAnnotationView'](this[_0x4970('0x3f')][_0x4970('0x4a')],_0x1d5238),_0x5b2cea[_0x4970('0x59')](_0x4970('0xf'))['to'](_0x1d5238,_0x4970('0xf')),_0x5b2cea['bind']('length')['to'](_0x1d5238),_0x5b2cea['bind'](_0x4970('0x17'))['to'](_0x1d5238,'type',_0x3d0f1b=>'suggestion-'+_0x3d0f1b),this[_0x4970('0x63')]['set'](_0x4bd269['id'],_0x5b2cea));const _0x410582=_0x361409[_0x4970('0x3a')](_0x4bd269['commentThread'],_0x1d5238),_0x28e8e9=new _0x180fc2(_0x295e39,_0x4bd269,_0x1d5238,_0x410582),_0x157cf2=_0x4bd269[_0x4970('0x46')]()['filter'](_0x32a7d2=>_0x32a7d2[_0x4970('0x24')]);_0x1d5238[_0x4970('0xd')]=_0x295e39[_0x4970('0x40')][_0x4970('0x2')](_0x4970('0x49'))[_0x4970('0x6d')][_0x4970('0x44')](_0x157cf2),this['_suggestionToController'][_0x4970('0x18')](_0x4bd269,_0x28e8e9),this['_viewToController'][_0x4970('0x18')](_0x1d5238,_0x28e8e9);const _0x38b254=_0x3486c2['createAnnotation']({'view':_0x5b2cea,'target':()=>{const _0x1a56c8=[],_0xb4c384=_0x4bd269[_0x4970('0x46')]()['filter'](_0x4ee133=>_0x4ee133[_0x4970('0x24')]);for(const _0xb6af3 of _0xb4c384)_0x1a56c8[_0x4970('0x53')](..._0xb6af3[_0x4970('0x33')]());return _0x473d5f(_0x295e39[_0x4970('0x68')],_0x1a56c8);},'type':()=>_0x4970('0x6b')+_0x28e8e9[_0x4970('0x5d')]['type']});_0x361409[_0x4970('0x9')](_0x1d5238,_0x38b254),_0x3486c2[_0x4970('0x57')](_0x38b254),_0x398d2c[_0x4970('0x5a')](_0x38b254);}[_0x4970('0x58')](_0x3fc319){const _0x169236=this[_0x4970('0x3f')][_0x4970('0x40')][_0x4970('0x2')](_0x4970('0x3')),_0x35139c=this['editor']['plugins'][_0x4970('0x2')](_0x4970('0x14')),_0x271d01=this[_0x4970('0x3e')][_0x4970('0x2')](_0x3fc319),_0x3cc2a0=_0x271d01[_0x4970('0x5d')],_0xc8da4f=_0x35139c[_0x4970('0x62')](_0x3cc2a0);_0x169236['_unbindEditors'](_0x3cc2a0),_0xc8da4f&&_0x35139c[_0x4970('0xe')](_0xc8da4f),this[_0x4970('0x3e')][_0x4970('0x6c')](_0x3fc319),this[_0x4970('0x67')][_0x4970('0x6c')](_0x3cc2a0),_0x271d01['destroy']();}[_0x4970('0x4d')](_0x40dddb){if(!_0x40dddb[_0x4970('0x24')]||!this[_0x4970('0x3e')]['has'](_0x40dddb))return;const _0x570b7b=this[_0x4970('0x3f')][_0x4970('0x40')][_0x4970('0x2')](_0x4970('0x49')),_0x26f6d7=this[_0x4970('0x3e')][_0x4970('0x2')](_0x40dddb),_0x4490a3=_0x40dddb[_0x4970('0x46')]();_0x26f6d7[_0x4970('0x5d')]['descriptionParts']=_0x570b7b[_0x4970('0x6d')][_0x4970('0x44')](_0x4490a3);}[_0x4970('0x41')](){for(const _0x8a45c3 of this[_0x4970('0x3e')][_0x4970('0xc')]())this['_destroyController'](_0x8a45c3);for(const _0x5a72fe of this['_annotationViews'][_0x4970('0x48')]())_0x5a72fe[_0x4970('0x5')][_0x4970('0x41')]();super[_0x4970('0x41')]();}}
23
+ const _0x327e=['isInContent','SuggestionThreadView','change:previous','suggestion-','set','comments','_suggestionToController','activeMarkers','map','EditorAnnotations','separator','from','Track\x20changes','componentFactory','_annotationViews','toMany','getMarkerNames','previous','editor','has','focus','trackChanges.disableComments','destroy','switchbutton','CommentsRepository','commandName','registerAnnotation','Discard\x20all\x20selected\x20suggestions','TrackChangesEditing','arrowView','comments.maxCommentsWhenCollapsed','unbind','view','suggestionLoaded','head','isMultiRange','acceptButton','change:activeAnnotations','createAnnotation','size','actionView','keys','_unbindEditors','_createUIButton','value','delete','get','type','isDirty','Discard\x20all\x20suggestions','reduce','bind','addSourceCollector','buttonView','getByInnerView','discardAllSuggestions','_descriptionFactory','values','getRanges','define','mainView','_viewToController','config','commentThread','_handleControllerBuffer','clear','refreshSelectedViews','model','comments.maxThreadTotalWeight','comments.maxCommentCharsWhenCollapsed','discardButton','suggestionChanged','some','_disableComments','CommentsUI','getAllAdjacentSuggestions','Accept\x20all\x20selected\x20suggestions','discardSelectedSuggestions','getMarkers','TrackChangesUI','_handleSuggestionControllerDelayed','getFirstRange','lowest','activeAnnotations','source','add','createCommentThreadController','length','CommentView','button','descriptionParts','stopListening','remove','plugins','_initializeController','innerView','filter','_destroyController','listenTo','hasSuggestion','acceptSelectedSuggestions','addComment','locale','isEnabled','execute','comments.editorConfig','push','_updateController','editing','Annotations','trackChanges','suggestionUnloaded','commands'];(function(_0x579981,_0x327ec3){const _0x47fad9=function(_0x1945f9){while(--_0x1945f9){_0x579981['push'](_0x579981['shift']());}};_0x47fad9(++_0x327ec3);}(_0x327e,0x1d4));const _0x47fa=function(_0x579981,_0x327ec3){_0x579981=_0x579981-0x0;let _0x47fad9=_0x327e[_0x579981];return _0x47fad9;};import{Plugin as _0x2f8482}from'ckeditor5/src/core.js';import{Collection as _0x26c3b8}from'ckeditor5/src/utils.js';import{Model as _0x4ecf0e,SplitButtonView as _0xb23a13,createDropdown as _0x52e9dc,addListToDropdown as _0xccda0}from'ckeditor5/src/ui.js';import{Users as _0xfaf5f9,getDateTimeFormatter as _0xdde259,getAllMarkersDomElementsSorted as _0x46be42}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x175d2a from'./trackchangesediting.js';import _0x128881 from'./ui/suggestioncontroller.js';import _0x237252 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x46189a}from'./utils/common-translations.js';import _0x1ef8a8 from'../theme/icons/track-changes.svg';export default class d extends _0x2f8482{static get['requires'](){return[_0x175d2a,_0xfaf5f9,'CommentsRepository',_0x47fa('0x5d'),_0x47fa('0x6a')];}static get['pluginName'](){return _0x47fa('0x3f');}constructor(_0x5e0458){super(_0x5e0458),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x47fa('0x30')]=new Map();const _0x53ea33=this['editor'][_0x47fa('0x2e')];_0x53ea33['define']('trackChanges.SuggestionThreadView',_0x237252),_0x53ea33[_0x47fa('0x2b')](_0x47fa('0x5'),!0x1),this[_0x47fa('0x39')]=_0x53ea33[_0x47fa('0x1e')](_0x47fa('0x5'));}[_0x47fa('0x40')](_0x5cbee9,_0xa552ed){0x0===this[_0x47fa('0x30')][_0x47fa('0x17')]&&setTimeout(()=>{for(const [_0x2cf3cf,_0x3c044f]of this[_0x47fa('0x30')]){const _0x543035=this[_0x47fa('0x67')][_0x47fa('0x3')](_0x2cf3cf);_0x543035||_0x3c044f?_0x543035&&_0x3c044f&&this[_0x47fa('0x51')](_0x2cf3cf):this[_0x47fa('0x4e')](_0x2cf3cf);}this[_0x47fa('0x2')]['plugins'][_0x47fa('0x1e')](_0x47fa('0x6a'))[_0x47fa('0x32')](),this['_refreshActiveMarkers'](),this[_0x47fa('0x30')][_0x47fa('0x31')]();},0xa),this[_0x47fa('0x30')][_0x47fa('0x65')](_0x5cbee9,_0xa552ed);}['init'](){const _0x31585b=this['editor'],_0xb72dde=_0x31585b[_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0xc')),_0x38d3a1=_0x31585b[_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0x5d')),_0x1e1982=_0x31585b['plugins'][_0x47fa('0x1e')](_0x47fa('0x6a')),_0x132779=_0x31585b[_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0x8'));_0x31585b['ui'][_0x47fa('0x6e')][_0x47fa('0x45')](_0x47fa('0x5e'),_0x920572=>this['_createUIButton'](_0x920572)),_0x1e1982[_0x47fa('0x24')](()=>{const _0x83b5b2=[];for(const [_0x35f8b2,_0x397cbe]of Array[_0x47fa('0x6c')](this[_0x47fa('0x67')])){const _0x12b203=_0x35f8b2[_0x47fa('0x3b')](),_0x3f61b4=[];for(const _0x48b1ee of _0x12b203){if(!_0x48b1ee[_0x47fa('0x61')])continue;if(_0x48b1ee[_0x47fa('0x13')]){_0x3f61b4[_0x47fa('0x5a')](..._0x48b1ee[_0x47fa('0x2a')]());continue;}const _0x129101=_0x48b1ee[_0x47fa('0x41')]();if(_0x3f61b4[_0x47fa('0x47')]>0x0){const _0x3ab2e4=_0x3f61b4[0x0]['getJoined'](_0x129101);if(_0x3ab2e4){_0x3f61b4[0x0]=_0x3ab2e4;continue;}}_0x3f61b4[_0x47fa('0x5a')](_0x129101);}_0x83b5b2[_0x47fa('0x5a')]([_0x397cbe[_0x47fa('0x10')],_0x3f61b4]);}return _0x83b5b2;}),this[_0x47fa('0x52')](_0xb72dde,_0x47fa('0x11'),(_0x5351a9,_0x54197e)=>{this[_0x47fa('0x52')](_0x54197e,_0x47fa('0x63'),(_0xd721ca,_0x6b6c97,_0x1a9570,_0xf9836f)=>{_0x54197e[_0x47fa('0x61')]&&(null==_0x1a9570?(this[_0x47fa('0x5b')](_0xf9836f[_0x47fa('0x12')]),this['_handleSuggestionControllerDelayed'](_0x54197e,!0x1)):(this[_0x47fa('0x5b')](_0x1a9570[_0x47fa('0x12')]),null==_0xf9836f&&this['_handleSuggestionControllerDelayed'](_0x54197e,!0x0)));}),null!==_0x54197e[_0x47fa('0x1')]?this['_updateController'](_0x54197e[_0x47fa('0x12')]):this[_0x47fa('0x40')](_0x54197e,!0x1);}),this[_0x47fa('0x52')](_0xb72dde,_0x47fa('0x5f'),(_0x36ac22,_0x122e68,_0x3cb43f)=>{this[_0x47fa('0x4b')](_0x122e68,_0x47fa('0x63')),this[_0x47fa('0x30')][_0x47fa('0x1d')](_0x122e68),this[_0x47fa('0x67')][_0x47fa('0x3')](_0x122e68)&&this['_destroyController'](_0x122e68),_0x3cb43f&&this[_0x47fa('0x5b')](_0x3cb43f[_0x47fa('0x12')]);}),this[_0x47fa('0x52')](_0xb72dde,_0x47fa('0x37'),(_0x3fa602,_0xa0ba78)=>{this[_0x47fa('0x5b')](_0xa0ba78);}),this['listenTo'](_0x38d3a1,_0x47fa('0x15'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x132779,_0x47fa('0x55'),(_0x305992,{threadId:_0x285252,isFromAdapter:_0x5deb55})=>{if(_0x5deb55||!_0xb72dde[_0x47fa('0x53')](_0x285252))return;const _0x120791=_0xb72dde['getSuggestion'](_0x285252);this[_0x47fa('0x67')][_0x47fa('0x1e')](_0x120791)[_0x47fa('0x10')][_0x47fa('0x4')]();},{'priority':_0x47fa('0x42')});}['_refreshActiveMarkers'](){const _0xb96a5=this[_0x47fa('0x2')]['plugins'][_0x47fa('0x1e')](_0x47fa('0x5d')),_0x58a0fe=this[_0x47fa('0x2')][_0x47fa('0x4d')]['get']('TrackChangesEditing'),_0x2e07bb=Array[_0x47fa('0x6c')](_0xb96a5[_0x47fa('0x43')],_0x47f74e=>_0x47f74e[_0x47fa('0x4f')])[_0x47fa('0x50')](_0x215cb9=>this[_0x47fa('0x2d')][_0x47fa('0x3')](_0x215cb9)),_0x30bc7f=[];for(const _0x265714 of _0x2e07bb){const _0x147d51=this[_0x47fa('0x2d')][_0x47fa('0x1e')](_0x265714)[_0x47fa('0x33')][_0x47fa('0x3b')]();_0x30bc7f[_0x47fa('0x5a')](..._0x147d51[_0x47fa('0x22')]((_0x1c5509,_0x2cabd2)=>[..._0x1c5509,..._0x2cabd2[_0x47fa('0x0')]()],[]));}_0x58a0fe[_0x47fa('0x68')]=_0x30bc7f;}[_0x47fa('0x1b')](_0xe28953){const _0x569ea7=_0x52e9dc(_0xe28953,_0xb23a13),_0x12cdb9=this['editor'][_0x47fa('0x60')][_0x47fa('0x1e')]('trackChanges'),_0x47eb88=_0x46189a(_0xe28953,_0x47fa('0x6d'));_0x569ea7[_0x47fa('0x25')][_0x47fa('0x65')]({'tooltip':_0x47eb88,'label':_0x47eb88,'icon':_0x1ef8a8}),_0x569ea7[_0x47fa('0x25')][_0x47fa('0x23')]('isOn')['to'](_0x12cdb9,'value'),_0x569ea7[_0x47fa('0x25')]['on'](_0x47fa('0x58'),()=>{_0x12cdb9[_0x47fa('0x58')](),this[_0x47fa('0x2')][_0x47fa('0x5c')][_0x47fa('0x10')][_0x47fa('0x4')]();});const _0x97427=new _0x26c3b8(),_0x306297=[{'type':_0x47fa('0x7'),'model':{'withText':!0x0,'label':_0x47eb88,'commandName':_0x47fa('0x5e')}},{'type':_0x47fa('0x6b')},{'type':_0x47fa('0x49'),'model':{'withText':!0x0,'label':_0x46189a(_0xe28953,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x47fa('0x49'),'model':{'withText':!0x0,'label':_0x46189a(_0xe28953,_0x47fa('0x3c')),'commandName':_0x47fa('0x54')}},{'type':_0x47fa('0x49'),'model':{'withText':!0x0,'label':_0x46189a(_0xe28953,_0x47fa('0x21')),'commandName':_0x47fa('0x27')}},{'type':_0x47fa('0x49'),'model':{'withText':!0x0,'label':_0x46189a(_0xe28953,_0x47fa('0xb')),'commandName':_0x47fa('0x3d')}}];for(const _0x19d088 of _0x306297){let _0x5b4b57={'type':_0x47fa('0x6b')};if(_0x19d088['model']){const _0x1f988d=new _0x4ecf0e(_0x19d088[_0x47fa('0x33')]),_0x1126f2=this[_0x47fa('0x2')][_0x47fa('0x60')][_0x47fa('0x1e')](_0x1f988d[_0x47fa('0x9')]);_0x1f988d[_0x47fa('0x23')]('isOn','isEnabled')['to'](_0x1126f2,_0x47fa('0x1c'),_0x47fa('0x57')),_0x5b4b57={'type':_0x19d088[_0x47fa('0x1f')],'model':_0x1f988d};}_0x97427['add'](_0x5b4b57);}_0xccda0(_0x569ea7,_0x97427);const _0x4f9abe=_0x306297[_0x47fa('0x50')](_0x5608cc=>null!=_0x5608cc[_0x47fa('0x33')])[_0x47fa('0x69')](_0x375bed=>this[_0x47fa('0x2')]['commands'][_0x47fa('0x1e')](_0x375bed[_0x47fa('0x33')][_0x47fa('0x9')])),_0x83e170=_0x569ea7[_0x47fa('0x25')];return _0x83e170[_0x47fa('0x18')][_0x47fa('0xf')]('isEnabled'),_0x83e170[_0x47fa('0xd')][_0x47fa('0xf')](_0x47fa('0x57')),_0x83e170[_0x47fa('0x18')][_0x47fa('0x23')](_0x47fa('0x57'))['to'](_0x12cdb9,_0x47fa('0x57')),_0x83e170[_0x47fa('0xd')][_0x47fa('0x23')](_0x47fa('0x57'))[_0x47fa('0x70')](_0x4f9abe,'isEnabled',(..._0x14df2)=>_0x14df2[_0x47fa('0x38')](_0x313c3d=>_0x313c3d)),_0x569ea7['on'](_0x47fa('0x58'),_0x149b3e=>{this[_0x47fa('0x2')][_0x47fa('0x58')](_0x149b3e[_0x47fa('0x44')][_0x47fa('0x9')]),this[_0x47fa('0x2')][_0x47fa('0x5c')][_0x47fa('0x10')]['focus']();}),_0x569ea7;}[_0x47fa('0x4e')](_0x3272af){const _0x331d56=this[_0x47fa('0x2')],_0x403fc3=_0x331d56[_0x47fa('0x2e')],_0x49faa9=_0x331d56[_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0x5d')),_0x532904=_0x331d56[_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0x8')),_0x28bea2=_0x331d56[_0x47fa('0x4d')]['get'](_0x47fa('0x6a')),_0x18d803=_0x331d56[_0x47fa('0x4d')][_0x47fa('0x1e')](_0xfaf5f9)['me'],_0x3030b7=_0x403fc3['get'](_0x47fa('0x5e'))[_0x47fa('0x62')],{CommentsListView:_0x3c03bb,CommentThreadInputView:_0x31c60e}=_0x331d56['plugins']['get'](_0x47fa('0x3a'));let _0xf99f5,_0x4c8d27;this[_0x47fa('0x6f')][_0x47fa('0x3')](_0x3272af['id'])?(_0x4c8d27=this['_annotationViews'][_0x47fa('0x1e')](_0x3272af['id']),_0xf99f5=_0x4c8d27[_0x47fa('0x2c')]):(_0xf99f5=new _0x3030b7(_0x331d56[_0x47fa('0x56')],_0x3272af,_0x18d803,{'disableComments':this[_0x47fa('0x39')],'editorConfig':_0x403fc3[_0x47fa('0x1e')](_0x47fa('0x59')),'maxCommentsWhenCollapsed':_0x403fc3[_0x47fa('0x1e')](_0x47fa('0xe')),'maxThreadTotalWeight':_0x403fc3[_0x47fa('0x1e')](_0x47fa('0x34')),'maxCommentCharsWhenCollapsed':_0x403fc3[_0x47fa('0x1e')](_0x47fa('0x35')),'formatDateTime':_0xdde259(_0x403fc3[_0x47fa('0x1e')]('locale')),'CommentView':_0x403fc3[_0x47fa('0x1e')](_0x47fa('0x66'))[_0x47fa('0x48')],'CommentsListView':_0x3c03bb,'CommentThreadInputView':_0x31c60e}),_0xf99f5[_0x47fa('0x14')]['on'](_0x47fa('0x58'),()=>{_0x331d56['editing']['view']['focus']();}),_0xf99f5[_0x47fa('0x36')]['on']('execute',()=>{_0x331d56[_0x47fa('0x5c')][_0x47fa('0x10')]['focus']();}),_0x4c8d27=_0x49faa9['createAnnotationView'](this[_0x47fa('0x2')]['locale'],_0xf99f5),_0x4c8d27[_0x47fa('0x23')](_0x47fa('0x20'))['to'](_0xf99f5,_0x47fa('0x20')),_0x4c8d27[_0x47fa('0x23')](_0x47fa('0x47'))['to'](_0xf99f5),_0x4c8d27[_0x47fa('0x23')](_0x47fa('0x1f'))['to'](_0xf99f5,_0x47fa('0x1f'),_0x1d0f85=>_0x47fa('0x64')+_0x1d0f85),this[_0x47fa('0x6f')]['set'](_0x3272af['id'],_0x4c8d27));const _0x35031f=_0x532904[_0x47fa('0x46')](_0x3272af[_0x47fa('0x2f')],_0xf99f5),_0x50b0c1=new _0x128881(_0x331d56,_0x3272af,_0xf99f5,_0x35031f),_0x6be38f=_0x3272af['getAllAdjacentSuggestions']()[_0x47fa('0x50')](_0x43fc91=>_0x43fc91[_0x47fa('0x61')]);_0xf99f5[_0x47fa('0x4a')]=_0x331d56[_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0xc'))['_descriptionFactory']['getDescriptions'](_0x6be38f),this[_0x47fa('0x67')][_0x47fa('0x65')](_0x3272af,_0x50b0c1),this[_0x47fa('0x2d')][_0x47fa('0x65')](_0xf99f5,_0x50b0c1);const _0xa969a8=_0x49faa9[_0x47fa('0x16')]({'view':_0x4c8d27,'target':()=>{const _0x12d685=[],_0x5a16e6=_0x3272af['getAllAdjacentSuggestions']()[_0x47fa('0x50')](_0x3ce3c9=>_0x3ce3c9[_0x47fa('0x61')]);for(const _0x5dbb37 of _0x5a16e6)_0x12d685[_0x47fa('0x5a')](..._0x5dbb37[_0x47fa('0x3e')]());return _0x46be42(_0x331d56[_0x47fa('0x5c')],_0x12d685);},'type':()=>_0x47fa('0x64')+_0x50b0c1[_0x47fa('0x10')]['type']});_0x532904['_bindAnnotationToEditors'](_0xf99f5,_0xa969a8),_0x49faa9['add'](_0xa969a8),_0x28bea2[_0x47fa('0xa')](_0xa969a8);}[_0x47fa('0x51')](_0x5133f4){const _0x6993ab=this[_0x47fa('0x2')][_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0x8')),_0xc31b22=this[_0x47fa('0x2')][_0x47fa('0x4d')][_0x47fa('0x1e')](_0x47fa('0x5d')),_0x36d4fe=this[_0x47fa('0x67')][_0x47fa('0x1e')](_0x5133f4),_0x35fba9=_0x36d4fe[_0x47fa('0x10')],_0x4a0235=_0xc31b22[_0x47fa('0x26')](_0x35fba9);_0x6993ab[_0x47fa('0x1a')](_0x35fba9),_0x4a0235&&_0xc31b22[_0x47fa('0x4c')](_0x4a0235),this[_0x47fa('0x67')]['delete'](_0x5133f4),this[_0x47fa('0x2d')][_0x47fa('0x1d')](_0x35fba9),_0x36d4fe['destroy']();}[_0x47fa('0x5b')](_0xa951a8){if(!_0xa951a8[_0x47fa('0x61')]||!this['_suggestionToController'][_0x47fa('0x3')](_0xa951a8))return;const _0x3d50e2=this[_0x47fa('0x2')][_0x47fa('0x4d')]['get']('TrackChangesEditing'),_0x536d6e=this[_0x47fa('0x67')][_0x47fa('0x1e')](_0xa951a8),_0x1a1043=_0xa951a8[_0x47fa('0x3b')]();_0x536d6e[_0x47fa('0x10')][_0x47fa('0x4a')]=_0x3d50e2[_0x47fa('0x28')]['getDescriptions'](_0x1a1043);}[_0x47fa('0x6')](){for(const _0xa5c13 of this[_0x47fa('0x67')][_0x47fa('0x19')]())this[_0x47fa('0x51')](_0xa5c13);for(const _0x10fc96 of this[_0x47fa('0x6f')][_0x47fa('0x29')]())_0x10fc96['mainView'][_0x47fa('0x6')]();super[_0x47fa('0x6')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25d6=['commentThreadController','execute','destroy','plugins','isEnabled','acceptSuggestion','discardSuggestion','unbind','remove','add','_pendingAction','_editor','_removePendingAction','isDirty','canDiscard','canEditAt','_setPendingAction','PendingActions','commands','bind','_acceptCommand','_discardCommand','stopListening','change:isDirty','canAccept','listenTo','view','PENDING_ACTION_SUGGESTION','model','getRanges'];(function(_0x105944,_0x25d6ee){const _0x4a3a9c=function(_0x50a1eb){while(--_0x50a1eb){_0x105944['push'](_0x105944['shift']());}};_0x4a3a9c(++_0x25d6ee);}(_0x25d6,0xa8));const _0x4a3a=function(_0x105944,_0x25d6ee){_0x105944=_0x105944-0x0;let _0x4a3a9c=_0x25d6[_0x105944];return _0x4a3a9c;};import{ObservableMixin as _0x3a80fa}from'ckeditor5/src/utils.js';import{getTranslation as _0x5e4720}from'../utils/common-translations.js';export default class Xt extends _0x3a80fa(){constructor(_0x25b55b,_0x3096ac,_0x168efe,_0x321ef1){super(),this[_0x4a3a('0xa')]=_0x3096ac,this[_0x4a3a('0x8')]=_0x168efe,this[_0x4a3a('0xc')]=_0x321ef1,this[_0x4a3a('0x17')]=_0x25b55b,this[_0x4a3a('0x2')]=_0x25b55b[_0x4a3a('0x0')]['get'](_0x4a3a('0x11')),this['_discardCommand']=_0x25b55b[_0x4a3a('0x0')]['get'](_0x4a3a('0x12')),this[_0x4a3a('0x8')][_0x4a3a('0x1')](_0x4a3a('0x10'))['to'](this[_0x4a3a('0x2')],this[_0x4a3a('0x3')],(_0x1a77a9,_0x5a3be0)=>_0x1a77a9||_0x5a3be0),this[_0x4a3a('0x8')]['bind'](_0x4a3a('0x6'))['to'](this['_acceptCommand'],'isEnabled',_0x1659ff=>_0x1659ff&&this[_0x4a3a('0x17')]['model'][_0x4a3a('0x1b')](_0x3096ac['getRanges']())),this[_0x4a3a('0x8')][_0x4a3a('0x1')]('canDiscard')['to'](this[_0x4a3a('0x3')],_0x4a3a('0x10'),_0x1e384d=>_0x1e384d&&this['_editor'][_0x4a3a('0xa')]['canEditAt'](_0x3096ac[_0x4a3a('0xb')]())),this[_0x4a3a('0x16')]=null,_0x168efe[_0x4a3a('0x19')]&&this[_0x4a3a('0x1c')](),this[_0x4a3a('0x7')](_0x168efe,_0x4a3a('0x11'),()=>this[_0x4a3a('0x11')]()),this[_0x4a3a('0x7')](_0x168efe,_0x4a3a('0x12'),()=>this[_0x4a3a('0x12')]()),this[_0x4a3a('0x7')](_0x168efe,_0x4a3a('0x5'),()=>{_0x168efe['isDirty']?this['_setPendingAction']():this[_0x4a3a('0x18')]();});}[_0x4a3a('0x11')](){this[_0x4a3a('0x2')][_0x4a3a('0xd')](this['model']['id']);}[_0x4a3a('0x12')](){this[_0x4a3a('0x3')]['execute'](this[_0x4a3a('0xa')]['id']);}[_0x4a3a('0xe')](){this[_0x4a3a('0x8')][_0x4a3a('0x13')](_0x4a3a('0x10')),this['view'][_0x4a3a('0x13')](_0x4a3a('0x6')),this['view'][_0x4a3a('0x13')](_0x4a3a('0x1a')),this[_0x4a3a('0x4')](),this['commentThreadController'][_0x4a3a('0xe')](),this[_0x4a3a('0x16')]&&this['_removePendingAction']();}[_0x4a3a('0x1c')](){const _0x3ef68d=_0x5e4720(this[_0x4a3a('0x17')]['locale'],_0x4a3a('0x9'));this[_0x4a3a('0x16')]=this['_editor'][_0x4a3a('0xf')]['get'](_0x4a3a('0x1d'))[_0x4a3a('0x15')](_0x3ef68d);}['_removePendingAction'](){null!==this[_0x4a3a('0x16')]&&this[_0x4a3a('0x17')][_0x4a3a('0xf')]['get'](_0x4a3a('0x1d'))[_0x4a3a('0x14')](this[_0x4a3a('0x16')]),this[_0x4a3a('0x16')]=null;}}
23
+ const _0x3e73=['bind','_discardCommand','model','_removePendingAction','PendingActions','isEnabled','acceptSuggestion','execute','add','remove','discardSuggestion','isDirty','canEditAt','locale','destroy','view','_setPendingAction','unbind','get','plugins','_editor','canDiscard','_acceptCommand','_pendingAction','commentThreadController','getRanges','change:isDirty','commands'];(function(_0x57159d,_0x3e7348){const _0x468a52=function(_0x5c5de5){while(--_0x5c5de5){_0x57159d['push'](_0x57159d['shift']());}};_0x468a52(++_0x3e7348);}(_0x3e73,0x1d2));const _0x468a=function(_0x57159d,_0x3e7348){_0x57159d=_0x57159d-0x0;let _0x468a52=_0x3e73[_0x57159d];return _0x468a52;};import{ObservableMixin as _0x1e374d}from'ckeditor5/src/utils.js';import{getTranslation as _0x312b61}from'../utils/common-translations.js';export default class Xt extends _0x1e374d(){constructor(_0x18a78f,_0x41bfb9,_0x1a2759,_0x2a325c){super(),this[_0x468a('0xc')]=_0x41bfb9,this[_0x468a('0x19')]=_0x1a2759,this['commentThreadController']=_0x2a325c,this[_0x468a('0x2')]=_0x18a78f,this[_0x468a('0x4')]=_0x18a78f['commands'][_0x468a('0x0')]('acceptSuggestion'),this['_discardCommand']=_0x18a78f[_0x468a('0x9')][_0x468a('0x0')](_0x468a('0x14')),this[_0x468a('0x19')]['bind'](_0x468a('0xf'))['to'](this[_0x468a('0x4')],this[_0x468a('0xb')],(_0x2d7c29,_0x2c09c8)=>_0x2d7c29||_0x2c09c8),this[_0x468a('0x19')][_0x468a('0xa')]('canAccept')['to'](this[_0x468a('0x4')],_0x468a('0xf'),_0x339e6a=>_0x339e6a&&this[_0x468a('0x2')][_0x468a('0xc')][_0x468a('0x16')](_0x41bfb9[_0x468a('0x7')]())),this[_0x468a('0x19')][_0x468a('0xa')]('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3cd4c2=>_0x3cd4c2&&this[_0x468a('0x2')]['model'][_0x468a('0x16')](_0x41bfb9['getRanges']())),this[_0x468a('0x5')]=null,_0x1a2759[_0x468a('0x15')]&&this[_0x468a('0x1a')](),this['listenTo'](_0x1a2759,_0x468a('0x10'),()=>this[_0x468a('0x10')]()),this['listenTo'](_0x1a2759,_0x468a('0x14'),()=>this[_0x468a('0x14')]()),this['listenTo'](_0x1a2759,_0x468a('0x8'),()=>{_0x1a2759['isDirty']?this[_0x468a('0x1a')]():this[_0x468a('0xd')]();});}[_0x468a('0x10')](){this[_0x468a('0x4')][_0x468a('0x11')](this[_0x468a('0xc')]['id']);}[_0x468a('0x14')](){this['_discardCommand']['execute'](this[_0x468a('0xc')]['id']);}[_0x468a('0x18')](){this[_0x468a('0x19')][_0x468a('0x1b')](_0x468a('0xf')),this[_0x468a('0x19')][_0x468a('0x1b')]('canAccept'),this[_0x468a('0x19')][_0x468a('0x1b')](_0x468a('0x3')),this['stopListening'](),this[_0x468a('0x6')][_0x468a('0x18')](),this[_0x468a('0x5')]&&this[_0x468a('0xd')]();}[_0x468a('0x1a')](){const _0x206034=_0x312b61(this[_0x468a('0x2')][_0x468a('0x17')],'PENDING_ACTION_SUGGESTION');this[_0x468a('0x5')]=this[_0x468a('0x2')][_0x468a('0x1')][_0x468a('0x0')](_0x468a('0xe'))[_0x468a('0x12')](_0x206034);}[_0x468a('0xd')](){null!==this['_pendingAction']&&this[_0x468a('0x2')][_0x468a('0x1')][_0x468a('0x0')](_0x468a('0xe'))[_0x468a('0x13')](this[_0x468a('0x5')]),this['_pendingAction']=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fd0=['locale','assign','_localUser','disabledSubmit','element','isReadOnly','_createCommentViews','destroy','authoredAt','editor','_config','commentInputView','length','commentsListView','showInput','fire','isEnabled','setData','canAccept','cancel','bind','canDiscard','hasDirtyComment','delegate','isActive','addComment','CommentView','commentThread','submit','removeComment','_model','editorConfig','set','value','commentThreadInputView','focus','_createCommentThreadInputView'];(function(_0x473350,_0x4fd025){const _0x10ef8c=function(_0x49c516){while(--_0x49c516){_0x473350['push'](_0x473350['shift']());}};_0x10ef8c(++_0x4fd025);}(_0x4fd0,0x18f));const _0x10ef=function(_0x473350,_0x4fd025){_0x473350=_0x473350-0x0;let _0x10ef8c=_0x4fd0[_0x473350];return _0x10ef8c;};import{View as _0x3806a0}from'ckeditor5/src/ui.js';export default class es extends _0x3806a0{constructor(_0x1dc3e0,_0x2668ce,_0x3714c7,_0xaa7c65){super(_0x1dc3e0),this[_0x10ef('0x15')]=null,this[_0x10ef('0x5')]=null,this[_0x10ef('0x3')](_0x10ef('0x20'),!0x1),this[_0x10ef('0x3')]('authoredAt',_0x2668ce[_0x10ef('0x10')]),this['bind'](_0x10ef('0x10'))['to'](_0x2668ce),this['set']('descriptionParts',[]),this[_0x10ef('0x3')]('isDirty',!0x1),this[_0x10ef('0x3')](_0x10ef('0x18'),!0x1),this[_0x10ef('0x3')](_0x10ef('0x1a'),!0x1),this['set'](_0x10ef('0x1d'),!0x1),this['_model']=_0x2668ce,this[_0x10ef('0xa')]=_0x3714c7,this[_0x10ef('0x12')]=_0xaa7c65,_0xaa7c65['disableComments']?this['set'](_0x10ef('0x14'),0x1):this[_0x10ef('0xe')]();}['focus'](){this[_0x10ef('0xc')][_0x10ef('0x6')]();}[_0x10ef('0xf')](){this[_0x10ef('0x15')]&&this[_0x10ef('0x15')][_0x10ef('0xf')](),this[_0x10ef('0x5')]&&this[_0x10ef('0x5')][_0x10ef('0xf')](),super[_0x10ef('0xf')]();}[_0x10ef('0xe')](){const {CommentsListView:_0x2cd9cc}=this[_0x10ef('0x12')];this[_0x10ef('0x15')]=new _0x2cd9cc(this[_0x10ef('0x8')],this[_0x10ef('0x1')][_0x10ef('0x23')],Object[_0x10ef('0x9')]({'CommentView':this[_0x10ef('0x12')][_0x10ef('0x22')]},this[_0x10ef('0x12')])),this[_0x10ef('0x15')][_0x10ef('0x1f')]('removeComment')['to'](this),this[_0x10ef('0x15')][_0x10ef('0x1f')]('updateComment')['to'](this),this['commentsListView'][_0x10ef('0x1c')](_0x10ef('0x20'))['to'](this),this[_0x10ef('0x3')](_0x10ef('0x14'),this[_0x10ef('0x15')][_0x10ef('0x14')]+0x1),this[_0x10ef('0x1c')](_0x10ef('0x14'))['to'](this[_0x10ef('0x15')],_0x10ef('0x14'),_0x4362be=>_0x4362be+0x1),this[_0x10ef('0x5')]=this[_0x10ef('0x7')](),this['on'](_0x10ef('0x0'),()=>this[_0x10ef('0x6')]()),this[_0x10ef('0x1c')]('isDirty')['to'](this[_0x10ef('0x15')],_0x10ef('0x1e'),this[_0x10ef('0x5')]['commentInputView'],_0x10ef('0x4'),(_0x44655f,_0x29497a)=>_0x44655f||!!_0x29497a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x482fca}=this[_0x10ef('0x12')],_0x4d85e3=new _0x482fca(this[_0x10ef('0x8')],this[_0x10ef('0xa')],this[_0x10ef('0x12')][_0x10ef('0x2')]),_0x42b28b=_0x4d85e3[_0x10ef('0x13')];return _0x4d85e3[_0x10ef('0x1c')](_0x10ef('0x16'))['to'](this,_0x10ef('0x20'),this['_model'][_0x10ef('0x23')],_0x10ef('0xd'),_0x42b28b,_0x10ef('0x4'),(_0x522cbd,_0x52ff02,_0x91aeb7)=>!!_0x91aeb7||_0x522cbd&&!_0x52ff02),_0x42b28b['on'](_0x10ef('0x24'),(_0x486d29,_0x49bc2f)=>{this[_0x10ef('0x17')](_0x10ef('0x21'),_0x49bc2f),_0x42b28b[_0x10ef('0x11')][_0x10ef('0x19')]('');}),_0x42b28b['on'](_0x10ef('0x1b'),()=>this[_0x10ef('0x6')]()),_0x42b28b[_0x10ef('0x1c')](_0x10ef('0xb'))['to'](this[_0x10ef('0x1')][_0x10ef('0x23')],_0x10ef('0xd')),_0x4d85e3;}}
23
+ const _0x1543=['addComment','focus','authoredAt','editor','_model','set','commentThread','removeComment','setData','_config','delegate','updateComment','commentThreadInputView','CommentView','commentsListView','assign','_createCommentThreadInputView','showInput','value','isReadOnly','isActive','cancel','fire','bind','canDiscard','_createCommentViews','editorConfig','isDirty','element','destroy','_localUser','length','submit'];(function(_0xdc618a,_0x1543d4){const _0x4ec509=function(_0x419ec5){while(--_0x419ec5){_0xdc618a['push'](_0xdc618a['shift']());}};_0x4ec509(++_0x1543d4);}(_0x1543,0x9d));const _0x4ec5=function(_0xdc618a,_0x1543d4){_0xdc618a=_0xdc618a-0x0;let _0x4ec509=_0x1543[_0xdc618a];return _0x4ec509;};import{View as _0x4863b7}from'ckeditor5/src/ui.js';export default class es extends _0x4863b7{constructor(_0x4e15a3,_0x565207,_0x12f07c,_0x2fdb15){super(_0x4e15a3),this['commentsListView']=null,this[_0x4ec5('0x14')]=null,this['set'](_0x4ec5('0x1c'),!0x1),this['set']('authoredAt',_0x565207[_0x4ec5('0xa')]),this[_0x4ec5('0x1f')]('authoredAt')['to'](_0x565207),this[_0x4ec5('0xd')]('descriptionParts',[]),this[_0x4ec5('0xd')](_0x4ec5('0x2'),!0x1),this[_0x4ec5('0xd')]('isEnabled',!0x1),this[_0x4ec5('0xd')]('canAccept',!0x1),this[_0x4ec5('0xd')](_0x4ec5('0x20'),!0x1),this[_0x4ec5('0xc')]=_0x565207,this['_localUser']=_0x12f07c,this[_0x4ec5('0x11')]=_0x2fdb15,_0x2fdb15['disableComments']?this[_0x4ec5('0xd')](_0x4ec5('0x6'),0x1):this[_0x4ec5('0x0')]();}[_0x4ec5('0x9')](){this[_0x4ec5('0x3')][_0x4ec5('0x9')]();}[_0x4ec5('0x4')](){this[_0x4ec5('0x16')]&&this[_0x4ec5('0x16')]['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView'][_0x4ec5('0x4')](),super[_0x4ec5('0x4')]();}[_0x4ec5('0x0')](){const {CommentsListView:_0x571a99}=this[_0x4ec5('0x11')];this['commentsListView']=new _0x571a99(this['locale'],this[_0x4ec5('0xc')][_0x4ec5('0xe')],Object[_0x4ec5('0x17')]({'CommentView':this['_config'][_0x4ec5('0x15')]},this[_0x4ec5('0x11')])),this[_0x4ec5('0x16')]['delegate'](_0x4ec5('0xf'))['to'](this),this[_0x4ec5('0x16')][_0x4ec5('0x12')](_0x4ec5('0x13'))['to'](this),this[_0x4ec5('0x16')][_0x4ec5('0x1f')]('isActive')['to'](this),this[_0x4ec5('0xd')](_0x4ec5('0x6'),this[_0x4ec5('0x16')][_0x4ec5('0x6')]+0x1),this[_0x4ec5('0x1f')]('length')['to'](this[_0x4ec5('0x16')],_0x4ec5('0x6'),_0x2ab55f=>_0x2ab55f+0x1),this['commentThreadInputView']=this[_0x4ec5('0x18')](),this['on'](_0x4ec5('0xf'),()=>this[_0x4ec5('0x9')]()),this[_0x4ec5('0x1f')](_0x4ec5('0x2'))['to'](this[_0x4ec5('0x16')],'hasDirtyComment',this[_0x4ec5('0x14')]['commentInputView'],_0x4ec5('0x1a'),(_0x32a9b1,_0x46dbad)=>_0x32a9b1||!!_0x46dbad);}[_0x4ec5('0x18')](){const {CommentThreadInputView:_0x274e8a}=this[_0x4ec5('0x11')],_0x5be3c4=new _0x274e8a(this['locale'],this[_0x4ec5('0x5')],this[_0x4ec5('0x11')][_0x4ec5('0x1')]),_0x5d7e21=_0x5be3c4['commentInputView'];return _0x5be3c4['bind'](_0x4ec5('0x19'))['to'](this,'isActive',this[_0x4ec5('0xc')]['commentThread'],_0x4ec5('0x1b'),_0x5d7e21,_0x4ec5('0x1a'),(_0x4d6436,_0x42f2e1,_0xc6b6da)=>!!_0xc6b6da||_0x4d6436&&!_0x42f2e1),_0x5d7e21['on'](_0x4ec5('0x7'),(_0x445fef,_0x292a1c)=>{this[_0x4ec5('0x1e')](_0x4ec5('0x8'),_0x292a1c),_0x5d7e21[_0x4ec5('0xb')][_0x4ec5('0x10')]('');}),_0x5d7e21['on'](_0x4ec5('0x1d'),()=>this[_0x4ec5('0x9')]()),_0x5d7e21[_0x4ec5('0x1f')]('disabledSubmit')['to'](this['_model'][_0x4ec5('0xe')],_0x4ec5('0x1b')),_0x5be3c4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x151d=['innerHTML','name','bind','ck-suggestion__user','span','</span>','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','EXTERNAL_SUGGESTION','_model','Discard\x20suggestion','render','editorReady','set','time','disableComments','importWord','authoredAt','cancel','fire','ck-annotation__actions','</p>','getTemplate','ck-comment__info-time','change:description','element','commentsListView','ck-annotation__info-time','ck-annotation__content-wrapper','ck-suggestion-wrapper','EXTERNAL_IMPORT_WORD_SUGGESTION','_descriptionElement','isEnabled','join','@external','setTemplate','discardButton','isActive','delegate','locale','creator','ck-comment__external','source','EXTERNAL_IMPORT_WORD_AVATAR','extendTemplate','isExternal','userView','type','ck-suggestion__actions','createElement','<p>','Accept\x20suggestion','push','<span\x20class=\x22ck-suggestion-type\x22>','editorDestroyed','ck-suggestion--disabled-comments','div','description','bindTemplate','commentThreadInputView','execute','descriptionParts','title','formatDateTime','split','value','children','ck-annotation__main','attributes','getUserViewNotificationText','ck-suggestion--discard','_config','ck-suggestion__main','canAccept','\x22></span>','ck-suggestion--accept','EXTERNAL_AVATAR','acceptButton','.ck-annotation__content-wrapper','author','getExternalSuggestionNote','_createButton','check','color'];(function(_0x1b671b,_0x151d2b){const _0x26bbae=function(_0x55f94f){while(--_0x55f94f){_0x1b671b['push'](_0x1b671b['shift']());}};_0x26bbae(++_0x151d2b);}(_0x151d,0xd7));const _0x26bb=function(_0x1b671b,_0x151d2b){_0x1b671b=_0x1b671b-0x0;let _0x26bbae=_0x151d[_0x1b671b];return _0x26bbae;};import{getTranslation as _0x283254}from'../../utils/common-translations.js';import{default as _0x479e14}from'./basesuggestionthreadview.js';import{ButtonView as _0x146dcc}from'ckeditor5/src/ui.js';import{icons as _0x4f71d3}from'ckeditor5/src/core.js';import{trimHtml as _0xf3a45d,UserView as _0x3144e9}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x479e14{constructor(_0x2c6a4c,_0x20a7f4,_0x56da44,_0x1aa022){super(_0x2c6a4c,_0x20a7f4,_0x56da44,_0x1aa022),this[_0x26bb('0x2e')](_0x26bb('0x50'),''),this[_0x26bb('0x24')](_0x26bb('0x50'))['to'](this,_0x26bb('0xb'),_0x502b6a=>_0x502b6a&&_0x502b6a[0x0]?_0x502b6a[0x0][_0x26bb('0x50')]:''),this[_0x26bb('0x24')](_0x26bb('0x7'))['to'](this,_0x26bb('0xb'),this,_0x26bb('0x46'),(_0x450cd7,_0x25a006)=>{let _0x50fe40='';for(const _0xc7ba1d of _0x450cd7)_0x50fe40+=_0x26bb('0x0')+ds(_0xc7ba1d['content'],_0xc7ba1d[_0x26bb('0x21')])+_0x26bb('0x36');return _0x25a006?_0x50fe40:_0xf3a45d(_0x50fe40,{'limit':0x8c});}),this[_0x26bb('0x40')]=null,this['acceptButton']=this[_0x26bb('0x1f')](_0x283254(_0x2c6a4c,_0x26bb('0x1')),_0x4f71d3[_0x26bb('0x20')],_0x26bb('0x19'),'acceptSuggestion','sw'),this[_0x26bb('0x1b')][_0x26bb('0x24')]('isEnabled')['to'](this,_0x26bb('0x17')),this[_0x26bb('0x45')]=this[_0x26bb('0x1f')](_0x283254(_0x2c6a4c,_0x26bb('0x2b')),_0x4f71d3[_0x26bb('0x33')],_0x26bb('0x14'),'discardSuggestion','sw'),this['discardButton']['bind'](_0x26bb('0x41'))['to'](this,'canDiscard'),this['userView']=new _0x3144e9(_0x2c6a4c,this[_0x26bb('0x2a')][_0x26bb('0x1d')],this[_0x26bb('0x13')]()),this['userView'][_0x26bb('0x4d')]({'attributes':{'class':[_0x26bb('0x25'),'ck-annotation__user']}}),this[_0x26bb('0x44')](this[_0x26bb('0x37')]());}['getTemplate'](){const _0x5835b1=this[_0x26bb('0x8')],_0x544b5d=[{'tag':_0x26bb('0x6'),'attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x26bb('0x4f')][_0x26bb('0x23')]}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':_0x26bb('0x2f'),'attributes':{'datetime':_0x5835b1['to'](_0x26bb('0x32')),'class':[_0x26bb('0x38'),_0x26bb('0x3c')]},'children':[{'text':_0x5835b1['to'](_0x26bb('0x32'),_0x8855d0=>this[_0x26bb('0x15')][_0x26bb('0xd')](_0x8855d0))}]}]},{'tag':'div','attributes':{'class':[_0x26bb('0x51'),_0x26bb('0x35')]},'children':[this[_0x26bb('0x1b')],this['discardButton']]},{'tag':_0x26bb('0x6'),'attributes':{'class':[_0x26bb('0x3d')]}}];this['_model'][_0x26bb('0x4e')]&&_0x544b5d[_0x26bb('0x2')]({'tag':_0x26bb('0x6'),'attributes':{'class':[_0x26bb('0x4a')]},'children':[{'text':this[_0x26bb('0x1e')]()}]});const _0x50d87a={'tag':_0x26bb('0x6'),'attributes':{'class':[_0x26bb('0x3e'),_0x5835b1['if'](_0x26bb('0x46'),'ck-suggestion-wrapper--active'),_0x5835b1['to']('type',_0x2dca5d=>'ck-suggestion-'+_0x2dca5d),this[_0x26bb('0x15')][_0x26bb('0x30')]&&_0x26bb('0x5')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x26bb('0x2a')]['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x26bb('0x6'),'attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':_0x26bb('0x6'),'attributes':{'class':[_0x26bb('0x16'),_0x26bb('0x11')]},'children':_0x544b5d}]}]};return this['commentsListView']&&this[_0x26bb('0x9')]&&(_0x50d87a[_0x26bb('0x10')][_0x26bb('0x2')](this[_0x26bb('0x3b')],this[_0x26bb('0x9')]),this[_0x26bb('0x3b')]['delegate']('editorReady')['to'](this),this['commentsListView'][_0x26bb('0x47')](_0x26bb('0x4'))['to'](this),this[_0x26bb('0x9')][_0x26bb('0x47')](_0x26bb('0x2d'))['to'](this),this[_0x26bb('0x9')][_0x26bb('0x47')](_0x26bb('0x4'))['to'](this)),_0x50d87a;}[_0x26bb('0x2c')](){super[_0x26bb('0x2c')](),this[_0x26bb('0x40')]=this[_0x26bb('0x3a')]['querySelector'](_0x26bb('0x1c')),this[_0x26bb('0x40')][_0x26bb('0x22')]=this[_0x26bb('0x7')],this['on'](_0x26bb('0x39'),(_0x5a44e5,_0x244ffc,_0x503e4e)=>{this[_0x26bb('0x40')][_0x26bb('0x22')]=_0x503e4e;});}[_0x26bb('0x1f')](_0x1e7d1f,_0x5ca311,_0x237628,_0xad4317,_0xb066b6){const _0x352305=new _0x146dcc(this[_0x26bb('0x48')]);return _0x352305[_0x26bb('0x2e')]({'label':_0x1e7d1f,'icon':_0x5ca311,'tooltip':!0x0,'tooltipPosition':_0xb066b6}),_0x352305[_0x26bb('0x4d')]({'attributes':{'class':_0x237628}}),_0x352305['on'](_0x26bb('0xa'),()=>{this[_0x26bb('0x34')](_0xad4317,this[_0x26bb('0x2a')]['id']);}),_0x352305;}['getExternalSuggestionNote'](){return _0x26bb('0x31')===this[_0x26bb('0x2a')]['attributes']['@external'][_0x26bb('0x4b')]?_0x283254(this[_0x26bb('0x48')],_0x26bb('0x3f')):_0x283254(this[_0x26bb('0x48')],_0x26bb('0x29'));}[_0x26bb('0x13')](){return this[_0x26bb('0x2a')]['isExternal']?_0x26bb('0x31')===this[_0x26bb('0x2a')][_0x26bb('0x12')][_0x26bb('0x43')]['source']?_0x283254(this['locale'],_0x26bb('0x4c'),this[_0x26bb('0x2a')][_0x26bb('0x49')][_0x26bb('0x23')]):_0x283254(this[_0x26bb('0x48')],_0x26bb('0x1a'),this[_0x26bb('0x2a')][_0x26bb('0x49')][_0x26bb('0x23')]):null;}}function ds(_0x42cba0,_0xf45417){let _0x3d065b='';return _0x3d065b+=_0x42cba0[_0x26bb('0xe')]('*')['map']((_0x4c0f36,_0xf6b855)=>_0xf6b855%0x2!=0x0?_0x26bb('0x3')+us(_0x4c0f36)+_0x26bb('0x27'):us(_0x4c0f36))[_0x26bb('0x42')](''),_0xf45417&&(_0x3d065b+=_0x26bb('0x28')+_0xf45417[_0x26bb('0xf')]+'\x22\x20title=\x22'+_0xf45417[_0x26bb('0xc')]+_0x26bb('0x18')),_0x3d065b;}function us(_0x303036){const _0x382f3a=document[_0x26bb('0x52')](_0x26bb('0x26'));return _0x382f3a['innerText']=_0x303036,_0x382f3a[_0x26bb('0x22')];}
23
+ const _0x4a4c=['_createButton','element','setTemplate','ck-annotation__content-wrapper','innerHTML','disableComments','ck-annotation__info-name','</span>','EXTERNAL_SUGGESTION','Accept\x20suggestion','createElement','importWord','querySelector','_config','push','_descriptionElement','</p>','ck-suggestion-','name','acceptButton','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','isActive','join','cancel','getUserViewNotificationText','EXTERNAL_AVATAR','innerText','ck-suggestion__main','locale','time','span','ck-annotation__actions','ck-suggestion--discard','ck-comment__external','div','title','ck-suggestion--disabled-comments','execute','commentsListView','ck-suggestion__actions','descriptionParts','bindTemplate','userView','description','author','ck-annotation__info','getTemplate','delegate','content','attributes','bind','ck-suggestion-wrapper--active','editorReady','commentThreadInputView','_model','render','source','\x22></span>','ck-suggestion__info','Discard\x20suggestion','discardButton','editorDestroyed','ck-annotation__info-time','set','creator','isExternal','.ck-annotation__content-wrapper','type','ck-comment__info-time','<span\x20class=\x22ck-suggestion-type\x22>','formatDateTime','extendTemplate','canDiscard','check','@external','fire','color','EXTERNAL_IMPORT_WORD_AVATAR','value','getExternalSuggestionNote','isEnabled','split'];(function(_0x10d875,_0x4a4c7c){const _0xa4e41c=function(_0x3f2662){while(--_0x3f2662){_0x10d875['push'](_0x10d875['shift']());}};_0xa4e41c(++_0x4a4c7c);}(_0x4a4c,0xaa));const _0xa4e4=function(_0x10d875,_0x4a4c7c){_0x10d875=_0x10d875-0x0;let _0xa4e41c=_0x4a4c[_0x10d875];return _0xa4e41c;};import{getTranslation as _0x68ee4b}from'../../utils/common-translations.js';import{default as _0x1c9527}from'./basesuggestionthreadview.js';import{ButtonView as _0x27f066}from'ckeditor5/src/ui.js';import{icons as _0x2f57c9}from'ckeditor5/src/core.js';import{trimHtml as _0x4aac02,UserView as _0x829ce0}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x1c9527{constructor(_0xdc2726,_0x1e6908,_0x36a16f,_0x38db5d){super(_0xdc2726,_0x1e6908,_0x36a16f,_0x38db5d),this[_0xa4e4('0x39')](_0xa4e4('0x3d'),''),this[_0xa4e4('0x2c')](_0xa4e4('0x3d'))['to'](this,_0xa4e4('0x22'),_0x1d3c3d=>_0x1d3c3d&&_0x1d3c3d[0x0]?_0x1d3c3d[0x0][_0xa4e4('0x3d')]:''),this['bind'](_0xa4e4('0x25'))['to'](this,_0xa4e4('0x22'),this,_0xa4e4('0xf'),(_0x262372,_0x36c5ee)=>{let _0x3ca79d='';for(const _0x2337c4 of _0x262372)_0x3ca79d+='<p>'+ds(_0x2337c4[_0xa4e4('0x2a')],_0x2337c4[_0xa4e4('0x46')])+_0xa4e4('0xa');return _0x36c5ee?_0x3ca79d:_0x4aac02(_0x3ca79d,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0xa4e4('0xd')]=this[_0xa4e4('0x4c')](_0x68ee4b(_0xdc2726,_0xa4e4('0x3')),_0x2f57c9[_0xa4e4('0x43')],'ck-suggestion--accept','acceptSuggestion','sw'),this[_0xa4e4('0xd')][_0xa4e4('0x2c')](_0xa4e4('0x4a'))['to'](this,'canAccept'),this[_0xa4e4('0x36')]=this[_0xa4e4('0x4c')](_0x68ee4b(_0xdc2726,_0xa4e4('0x35')),_0x2f57c9[_0xa4e4('0x11')],_0xa4e4('0x1a'),'discardSuggestion','sw'),this[_0xa4e4('0x36')]['bind'](_0xa4e4('0x4a'))['to'](this,_0xa4e4('0x42')),this[_0xa4e4('0x24')]=new _0x829ce0(_0xdc2726,this[_0xa4e4('0x30')]['author'],this[_0xa4e4('0x12')]()),this[_0xa4e4('0x24')]['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this[_0xa4e4('0x4e')](this[_0xa4e4('0x28')]());}[_0xa4e4('0x28')](){const _0x27714a=this[_0xa4e4('0x23')],_0x46e566=[{'tag':_0xa4e4('0x1c'),'attributes':{'class':[_0xa4e4('0x34'),_0xa4e4('0x27')]},'children':[{'tag':_0xa4e4('0x18'),'children':[{'text':this[_0xa4e4('0x24')]['name']}],'attributes':{'class':['ck-suggestion__info-name',_0xa4e4('0x0')]}},{'tag':_0xa4e4('0x17'),'attributes':{'datetime':_0x27714a['to']('authoredAt'),'class':[_0xa4e4('0x3e'),_0xa4e4('0x38')]},'children':[{'text':_0x27714a['to']('authoredAt',_0x618fd5=>this[_0xa4e4('0x7')][_0xa4e4('0x40')](_0x618fd5))}]}]},{'tag':'div','attributes':{'class':[_0xa4e4('0x21'),_0xa4e4('0x19')]},'children':[this[_0xa4e4('0xd')],this['discardButton']]},{'tag':_0xa4e4('0x1c'),'attributes':{'class':[_0xa4e4('0x4f')]}}];this[_0xa4e4('0x30')][_0xa4e4('0x3b')]&&_0x46e566[_0xa4e4('0x8')]({'tag':_0xa4e4('0x1c'),'attributes':{'class':[_0xa4e4('0x1b')]},'children':[{'text':this[_0xa4e4('0x49')]()}]});const _0x1ace5c={'tag':_0xa4e4('0x1c'),'attributes':{'class':['ck-suggestion-wrapper',_0x27714a['if'](_0xa4e4('0xf'),_0xa4e4('0x2d')),_0x27714a['to']('type',_0x45c205=>_0xa4e4('0xb')+_0x45c205),this[_0xa4e4('0x7')][_0xa4e4('0x51')]&&_0xa4e4('0x1e')],'data-suggestion-id':this[_0xa4e4('0x30')]['id'],'data-thread-id':this[_0xa4e4('0x30')]['commentThread']['id'],'data-author-id':this[_0xa4e4('0x30')][_0xa4e4('0x26')]['id'],'tabindex':-0x1},'children':[{'tag':_0xa4e4('0x1c'),'attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this[_0xa4e4('0x24')],{'tag':'div','attributes':{'class':[_0xa4e4('0x15'),'ck-annotation__main']},'children':_0x46e566}]}]};return this[_0xa4e4('0x20')]&&this[_0xa4e4('0x2f')]&&(_0x1ace5c['children'][_0xa4e4('0x8')](this[_0xa4e4('0x20')],this[_0xa4e4('0x2f')]),this[_0xa4e4('0x20')][_0xa4e4('0x29')](_0xa4e4('0x2e'))['to'](this),this['commentsListView']['delegate'](_0xa4e4('0x37'))['to'](this),this[_0xa4e4('0x2f')]['delegate'](_0xa4e4('0x2e'))['to'](this),this[_0xa4e4('0x2f')]['delegate']('editorDestroyed')['to'](this)),_0x1ace5c;}[_0xa4e4('0x31')](){super['render'](),this['_descriptionElement']=this[_0xa4e4('0x4d')][_0xa4e4('0x6')](_0xa4e4('0x3c')),this[_0xa4e4('0x9')][_0xa4e4('0x50')]=this[_0xa4e4('0x25')],this['on']('change:description',(_0x77a3d,_0x2db72b,_0x3706fe)=>{this[_0xa4e4('0x9')][_0xa4e4('0x50')]=_0x3706fe;});}[_0xa4e4('0x4c')](_0x5df9be,_0xea2e91,_0x45df86,_0x14fc17,_0x4a9c0d){const _0xcd0a22=new _0x27f066(this[_0xa4e4('0x16')]);return _0xcd0a22[_0xa4e4('0x39')]({'label':_0x5df9be,'icon':_0xea2e91,'tooltip':!0x0,'tooltipPosition':_0x4a9c0d}),_0xcd0a22[_0xa4e4('0x41')]({'attributes':{'class':_0x45df86}}),_0xcd0a22['on'](_0xa4e4('0x1f'),()=>{this[_0xa4e4('0x45')](_0x14fc17,this['_model']['id']);}),_0xcd0a22;}[_0xa4e4('0x49')](){return _0xa4e4('0x5')===this['_model'][_0xa4e4('0x2b')][_0xa4e4('0x44')][_0xa4e4('0x32')]?_0x68ee4b(this[_0xa4e4('0x16')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x68ee4b(this['locale'],_0xa4e4('0x2'));}['getUserViewNotificationText'](){return this[_0xa4e4('0x30')][_0xa4e4('0x3b')]?_0xa4e4('0x5')===this['_model'][_0xa4e4('0x2b')]['@external'][_0xa4e4('0x32')]?_0x68ee4b(this['locale'],_0xa4e4('0x47'),this[_0xa4e4('0x30')][_0xa4e4('0x3a')][_0xa4e4('0xc')]):_0x68ee4b(this['locale'],_0xa4e4('0x13'),this['_model'][_0xa4e4('0x3a')][_0xa4e4('0xc')]):null;}}function ds(_0x31bbd2,_0x2a9a6a){let _0x19d453='';return _0x19d453+=_0x31bbd2[_0xa4e4('0x4b')]('*')['map']((_0x2d26a9,_0x2adea1)=>_0x2adea1%0x2!=0x0?_0xa4e4('0x3f')+us(_0x2d26a9)+_0xa4e4('0x1'):us(_0x2d26a9))[_0xa4e4('0x10')](''),_0x2a9a6a&&(_0x19d453+=_0xa4e4('0xe')+_0x2a9a6a[_0xa4e4('0x48')]+'\x22\x20title=\x22'+_0x2a9a6a[_0xa4e4('0x1d')]+_0xa4e4('0x33')),_0x19d453;}function us(_0x43c435){const _0x5ece21=document[_0xa4e4('0x4')]('span');return _0x5ece21[_0xa4e4('0x14')]=_0x43c435,_0x5ece21[_0xa4e4('0x50')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x50a057,_0x228ac1,_0x35a839){const t=_0x50a057['t'];switch(_0x228ac1){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',_0x35a839);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x35a839);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x35a839);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x35a839);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x35a839);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',_0x35a839);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x35a839);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',_0x35a839);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x35a839);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x35a839);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x35a839);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x35a839);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x35a839);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x35a839);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x35a839);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x35a839);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x35a839);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x35a839);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x35a839);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x35a839);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x35a839);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x35a839);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x35a839);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'},_0x35a839);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x35a839);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x35a839);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x35a839);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x35a839);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x35a839);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'},_0x35a839);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x35a839);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x35a839);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x35a839);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x35a839);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'},_0x35a839);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x35a839);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'},_0x35a839);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'},_0x35a839);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x35a839);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'},_0x35a839);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x35a839);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'},_0x35a839);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x35a839);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x35a839);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'},_0x35a839);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'},_0x35a839);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 _0x228ac1;}}
23
+ export function getTranslation(_0x2657c6,_0x5f4279,_0x3c15e2){const t=_0x2657c6['t'];switch(_0x5f4279){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',_0x3c15e2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c15e2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c15e2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c15e2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c15e2);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',_0x3c15e2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c15e2);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',_0x3c15e2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c15e2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c15e2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c15e2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c15e2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c15e2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c15e2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c15e2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c15e2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c15e2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c15e2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c15e2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c15e2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c15e2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c15e2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c15e2);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'},_0x3c15e2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c15e2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c15e2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c15e2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c15e2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c15e2);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'},_0x3c15e2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c15e2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c15e2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c15e2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c15e2);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'},_0x3c15e2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c15e2);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'},_0x3c15e2);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'},_0x3c15e2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c15e2);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'},_0x3c15e2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c15e2);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'},_0x3c15e2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c15e2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c15e2);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'},_0x3c15e2);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'},_0x3c15e2);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 _0x5f4279;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x619f=['from','start','isCollapsed','change','replace','map','execute','isMultiRange','push','createPositionBefore','content','type','createPositionAfter','isInContent','value','createRange','isArray','isObject','next','getRanges','createPositionAt','schema','color','isIntersecting','length','deletion','splice'];(function(_0x2b594c,_0x619f54){const _0x49c5c8=function(_0x53ec4d){while(--_0x53ec4d){_0x2b594c['push'](_0x2b594c['shift']());}};_0x49c5c8(++_0x619f54);}(_0x619f,0x11a));const _0x49c5=function(_0x2b594c,_0x619f54){_0x2b594c=_0x2b594c-0x0;let _0x49c5c8=_0x619f[_0x2b594c];return _0x49c5c8;};export function normalizeDescription(_0x5b4320){return Array[_0x49c5('0x4')](_0x5b4320)||(_0x5b4320=[_0x5b4320]),_0x5b4320[_0x49c5('0x14')](_0x3fde6f=>{const _0x1c24f8=_0x3fde6f[_0x49c5('0x19')][_0x49c5('0x13')](/\*/g,''),_0x3fd8df=_0x3fde6f[_0x49c5('0xa')]?'\x20[color\x20'+_0x3fde6f[_0x49c5('0xa')][_0x49c5('0x2')]+']':'';return'['+_0x3fde6f['type']+']\x20'+_0x1c24f8+_0x3fd8df;})['join'](';\x20');}export function sortSuggestions(_0x6d83e9){return _0x6d83e9['sort']((_0x3ddf2c,_0x209450)=>_0x49c5('0xd')==_0x3ddf2c[_0x49c5('0x1a')]&&_0x49c5('0xd')!=_0x209450[_0x49c5('0x1a')]?-0x1:_0x49c5('0xd')!=_0x3ddf2c['type']&&_0x49c5('0xd')==_0x209450[_0x49c5('0x1a')]?0x1:0x0);}export function getSelectedSuggestions(_0x255bd0,_0x4a9a6c){const _0x103b4c=Array[_0x49c5('0xf')](_0x255bd0['getRanges']()),_0xf07f5=new Set();for(const _0x58b136 of _0x4a9a6c)if(_0x58b136[_0x49c5('0x1')])for(const _0x369117 of _0x103b4c)for(const _0x48bdda of _0x58b136[_0x49c5('0x7')]())(_0x369117[_0x49c5('0xb')](_0x48bdda)||_0x255bd0[_0x49c5('0x11')]&&!_0x58b136[_0x49c5('0x16')]&&_0x58b136[_0x49c5('0x6')]&&_0x48bdda['end']['isTouching'](_0x369117[_0x49c5('0x10')]))&&_0xf07f5['add'](_0x58b136);return _0xf07f5;}export function getRangesOfBlockGroups(_0x9e998a,_0x11cda9){let _0x1681a2,_0x295781=0x0;const _0x2d25a8=[],_0x3cb994=_0x11cda9[_0x49c5('0x9')];for(;_0x295781<_0x9e998a[_0x49c5('0xc')];){const _0x2eac7e=_0x9e998a[_0x295781],_0x112da1=_0x9e998a[_0x295781+0x1];_0x1681a2||(_0x1681a2=_0x11cda9['createPositionBefore'](_0x2eac7e)),co(_0x11cda9,_0x2eac7e,_0x112da1)||(_0x2d25a8[_0x49c5('0x17')](_0x11cda9[_0x49c5('0x3')](_0x1681a2,_0x3cb994[_0x49c5('0x5')](_0x2eac7e)?_0x11cda9[_0x49c5('0x0')](_0x2eac7e):_0x11cda9[_0x49c5('0x8')](_0x2eac7e,'end'))),_0x1681a2=null),_0x295781++;}return _0x2d25a8;}function co(_0x695632,_0x30150b,_0x3c0270){if(!_0x3c0270)return!0x1;const _0x3cbd46=_0x695632['createPositionAfter'](_0x30150b),_0x13e667=_0x695632[_0x49c5('0x18')](_0x3c0270);return _0x3cbd46['isTouching'](_0x13e667);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x38fbc6,_0x3c194a,_0x1cff90){for(;_0x1cff90[_0x49c5('0xc')];){const _0x553901=_0x1cff90[_0x49c5('0xe')](0x0,0x64);_0x38fbc6[_0x49c5('0x12')](()=>{for(const _0x27ffc5 of _0x553901)_0x27ffc5['isInContent']&&_0x3c194a[_0x49c5('0x15')](_0x27ffc5['id']);});}}
23
+ const _0x81e7=['next','end','push','createPositionBefore','deletion','isArray','replace','isInContent','isTouching','isMultiRange','value','createPositionAfter','map','createPositionAt','execute','start','sort','isObject','content','type','getRanges','splice','createRange','isIntersecting','isCollapsed','length','\x20[color\x20','schema','add','color'];(function(_0xd06b54,_0x81e77){const _0x177222=function(_0x20ed60){while(--_0x20ed60){_0xd06b54['push'](_0xd06b54['shift']());}};_0x177222(++_0x81e77);}(_0x81e7,0x9a));const _0x1772=function(_0xd06b54,_0x81e77){_0xd06b54=_0xd06b54-0x0;let _0x177222=_0x81e7[_0xd06b54];return _0x177222;};export function normalizeDescription(_0x22a9a1){return Array[_0x1772('0x1')](_0x22a9a1)||(_0x22a9a1=[_0x22a9a1]),_0x22a9a1[_0x1772('0x8')](_0x43c58a=>{const _0x43b54a=_0x43c58a[_0x1772('0xe')][_0x1772('0x2')](/\*/g,''),_0x559857=_0x43c58a['color']?_0x1772('0x16')+_0x43c58a[_0x1772('0x19')][_0x1772('0x6')]+']':'';return'['+_0x43c58a[_0x1772('0xf')]+']\x20'+_0x43b54a+_0x559857;})['join'](';\x20');}export function sortSuggestions(_0x5df32f){return _0x5df32f[_0x1772('0xc')]((_0x4c9881,_0x1f793a)=>_0x1772('0x0')==_0x4c9881[_0x1772('0xf')]&&_0x1772('0x0')!=_0x1f793a[_0x1772('0xf')]?-0x1:_0x1772('0x0')!=_0x4c9881['type']&&_0x1772('0x0')==_0x1f793a[_0x1772('0xf')]?0x1:0x0);}export function getSelectedSuggestions(_0x293137,_0x2d3345){const _0x72501a=Array['from'](_0x293137[_0x1772('0x10')]()),_0x78c5af=new Set();for(const _0x4295a3 of _0x2d3345)if(_0x4295a3[_0x1772('0x3')])for(const _0x5e9c16 of _0x72501a)for(const _0x5519b7 of _0x4295a3[_0x1772('0x10')]())(_0x5e9c16[_0x1772('0x13')](_0x5519b7)||_0x293137[_0x1772('0x14')]&&!_0x4295a3[_0x1772('0x5')]&&_0x4295a3[_0x1772('0x1a')]&&_0x5519b7[_0x1772('0x1b')][_0x1772('0x4')](_0x5e9c16[_0x1772('0xb')]))&&_0x78c5af[_0x1772('0x18')](_0x4295a3);return _0x78c5af;}export function getRangesOfBlockGroups(_0x277fe5,_0x152486){let _0x4888c8,_0x40e3aa=0x0;const _0x53c93c=[],_0x19d594=_0x152486[_0x1772('0x17')];for(;_0x40e3aa<_0x277fe5[_0x1772('0x15')];){const _0x4b440b=_0x277fe5[_0x40e3aa],_0x1cde04=_0x277fe5[_0x40e3aa+0x1];_0x4888c8||(_0x4888c8=_0x152486[_0x1772('0x1d')](_0x4b440b)),co(_0x152486,_0x4b440b,_0x1cde04)||(_0x53c93c[_0x1772('0x1c')](_0x152486[_0x1772('0x12')](_0x4888c8,_0x19d594[_0x1772('0xd')](_0x4b440b)?_0x152486['createPositionAfter'](_0x4b440b):_0x152486[_0x1772('0x9')](_0x4b440b,_0x1772('0x1b')))),_0x4888c8=null),_0x40e3aa++;}return _0x53c93c;}function co(_0x32aab6,_0x4e313d,_0x4c96bb){if(!_0x4c96bb)return!0x1;const _0x32bd77=_0x32aab6[_0x1772('0x7')](_0x4e313d),_0x44cd1a=_0x32aab6[_0x1772('0x1d')](_0x4c96bb);return _0x32bd77['isTouching'](_0x44cd1a);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x180253,_0x21f2b1,_0x4a94a2){for(;_0x4a94a2[_0x1772('0x15')];){const _0x5011d5=_0x4a94a2[_0x1772('0x11')](0x0,0x64);_0x180253['change'](()=>{for(const _0x57a6b1 of _0x5011d5)_0x57a6b1[_0x1772('0x3')]&&_0x21f2b1[_0x1772('0xa')](_0x57a6b1['id']);});}}