@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240104.0 → 0.0.0-nightly-20240106.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 _0x5639=['EditorAnnotations','clear','length','Annotations','activeMarkers','isMultiRange','comments.maxThreadTotalWeight','_unbindEditors','registerAnnotation','set','_destroyController','has','hasSuggestion','commands','CommentsRepository','TrackChangesEditing','Discard\x20all\x20selected\x20suggestions','getMarkers','getMarkerNames','switchbutton','getDescriptions','change:activeAnnotations','activeAnnotations','Discard\x20all\x20suggestions','_disableComments','size','discardButton','descriptionParts','suggestionLoaded','editing','listenTo','CommentsUI','_annotationViews','isOn','plugins','trackChanges.disableComments','acceptSelectedSuggestions','toMany','filter','keys','bind','pluginName','_initializeController','commentThread','comments.maxCommentCharsWhenCollapsed','delete','Track\x20changes','requires','view','suggestionUnloaded','componentFactory','isDirty','push','TrackChangesUI','suggestion-','mainView','_descriptionFactory','trackChanges','init','actionView','locale','_suggestionToController','Accept\x20all\x20selected\x20suggestions','_refreshActiveMarkers','_viewToController','reduce','model','isInContent','from','getByInnerView','add','acceptButton','isEnabled','focus','SuggestionThreadView','commandName','_updateController','_createUIButton','remove','execute','stopListening','getRanges','value','getJoined','separator','buttonView','acceptAllSuggestions','addComment','_bindAnnotationToEditors','_handleSuggestionControllerDelayed','getFirstRange','values','previous','comments','change:previous','define','editor','unbind','addSourceCollector','get','getAllAdjacentSuggestions','source','button','innerView','destroy','config','type','createAnnotation','_handleControllerBuffer','head'];(function(_0x1ccf57,_0x5639e6){const _0x31f668=function(_0x422fe7){while(--_0x422fe7){_0x1ccf57['push'](_0x1ccf57['shift']());}};_0x31f668(++_0x5639e6);}(_0x5639,0xdd));const _0x31f6=function(_0x1ccf57,_0x5639e6){_0x1ccf57=_0x1ccf57-0x0;let _0x31f668=_0x5639[_0x1ccf57];return _0x31f668;};import{Plugin as _0x34b305}from'ckeditor5/src/core.js';import{Collection as _0x4de011}from'ckeditor5/src/utils.js';import{Model as _0x34313c,SplitButtonView as _0x5d9657,createDropdown as _0x1f8c74,addListToDropdown as _0x5140ea}from'ckeditor5/src/ui.js';import{Users as _0x50e44d,getDateTimeFormatter as _0x1bdb11,getAllMarkersDomElementsSorted as _0x10c91e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3797d2 from'./trackchangesediting.js';import _0xbbd04b from'./ui/suggestioncontroller.js';import _0x4343be from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x22bfc8}from'./utils/common-translations.js';import _0x59b790 from'../theme/icons/track-changes.svg';export default class d extends _0x34b305{static get[_0x31f6('0x2e')](){return[_0x3797d2,_0x50e44d,'CommentsRepository',_0x31f6('0x2'),_0x31f6('0x6d')];}static get[_0x31f6('0x28')](){return _0x31f6('0x34');}constructor(_0x419f81){super(_0x419f81),this[_0x31f6('0x3c')]=new Map(),this[_0x31f6('0x3f')]=new Map(),this[_0x31f6('0x1f')]=new Map(),this[_0x31f6('0x6b')]=new Map();const _0x99a684=this[_0x31f6('0x5f')][_0x31f6('0x68')];_0x99a684['define']('trackChanges.SuggestionThreadView',_0x4343be),_0x99a684[_0x31f6('0x5e')]('trackChanges.disableComments',!0x1),this[_0x31f6('0x17')]=_0x99a684[_0x31f6('0x62')](_0x31f6('0x22'));}[_0x31f6('0x58')](_0x1b552a,_0x30a7cc){0x0===this[_0x31f6('0x6b')][_0x31f6('0x18')]&&setTimeout(()=>{for(const [_0x42bb9e,_0x5ee714]of this['_handleControllerBuffer']){const _0x1bdcf9=this[_0x31f6('0x3c')][_0x31f6('0xa')](_0x42bb9e);_0x1bdcf9||_0x5ee714?_0x1bdcf9&&_0x5ee714&&this[_0x31f6('0x9')](_0x42bb9e):this[_0x31f6('0x29')](_0x42bb9e);}this[_0x31f6('0x5f')]['plugins'][_0x31f6('0x62')](_0x31f6('0x6d'))['refreshSelectedViews'](),this[_0x31f6('0x3e')](),this[_0x31f6('0x6b')][_0x31f6('0x0')]();},0xa),this[_0x31f6('0x6b')][_0x31f6('0x8')](_0x1b552a,_0x30a7cc);}[_0x31f6('0x39')](){const _0xda5c9a=this[_0x31f6('0x5f')],_0x568c50=_0xda5c9a[_0x31f6('0x21')][_0x31f6('0x62')](_0x31f6('0xe')),_0x20c98e=_0xda5c9a[_0x31f6('0x21')][_0x31f6('0x62')]('Annotations'),_0x490140=_0xda5c9a[_0x31f6('0x21')][_0x31f6('0x62')](_0x31f6('0x6d')),_0x2020be=_0xda5c9a[_0x31f6('0x21')]['get']('CommentsRepository');_0xda5c9a['ui'][_0x31f6('0x31')]['add']('trackChanges',_0x15c3f8=>this[_0x31f6('0x4c')](_0x15c3f8)),_0x490140[_0x31f6('0x61')](()=>{const _0x1b76a6=[];for(const [_0x5e174c,_0x41e3cf]of Array[_0x31f6('0x43')](this['_suggestionToController'])){const _0x2f8794=_0x5e174c[_0x31f6('0x63')](),_0x40ac9c=[];for(const _0x293c0c of _0x2f8794){if(!_0x293c0c[_0x31f6('0x42')])continue;if(_0x293c0c[_0x31f6('0x4')]){_0x40ac9c['push'](..._0x293c0c[_0x31f6('0x50')]());continue;}const _0x34f6cd=_0x293c0c[_0x31f6('0x59')]();if(_0x40ac9c[_0x31f6('0x1')]>0x0){const _0x18f19b=_0x40ac9c[0x0][_0x31f6('0x52')](_0x34f6cd);if(_0x18f19b){_0x40ac9c[0x0]=_0x18f19b;continue;}}_0x40ac9c[_0x31f6('0x33')](_0x34f6cd);}_0x1b76a6[_0x31f6('0x33')]([_0x41e3cf['view'],_0x40ac9c]);}return _0x1b76a6;}),this[_0x31f6('0x1d')](_0x568c50,_0x31f6('0x1b'),(_0x1d2469,_0x1282cf)=>{this[_0x31f6('0x1d')](_0x1282cf,_0x31f6('0x5d'),(_0x3641b8,_0x32bacd,_0x3d2a44,_0x36c0e7)=>{_0x1282cf['isInContent']&&(null==_0x3d2a44?(this['_updateController'](_0x36c0e7['head']),this[_0x31f6('0x58')](_0x1282cf,!0x1)):(this['_updateController'](_0x3d2a44[_0x31f6('0x6c')]),null==_0x36c0e7&&this[_0x31f6('0x58')](_0x1282cf,!0x0)));}),null!==_0x1282cf[_0x31f6('0x5b')]?this[_0x31f6('0x4b')](_0x1282cf[_0x31f6('0x6c')]):this[_0x31f6('0x58')](_0x1282cf,!0x1);}),this['listenTo'](_0x568c50,_0x31f6('0x30'),(_0x4d7399,_0x10c6c8,_0x478293)=>{this[_0x31f6('0x4f')](_0x10c6c8,_0x31f6('0x5d')),this['_handleControllerBuffer'][_0x31f6('0x2c')](_0x10c6c8),this[_0x31f6('0x3c')][_0x31f6('0xa')](_0x10c6c8)&&this[_0x31f6('0x9')](_0x10c6c8),_0x478293&&this[_0x31f6('0x4b')](_0x478293['head']);}),this['listenTo'](_0x568c50,'suggestionChanged',(_0x3dccf4,_0x473dc3)=>{this[_0x31f6('0x4b')](_0x473dc3);}),this['listenTo'](_0x20c98e,_0x31f6('0x14'),()=>{this[_0x31f6('0x3e')]();}),this['listenTo'](_0x2020be,_0x31f6('0x56'),(_0x138472,{threadId:_0x3d1b4d,isFromAdapter:_0x54f802})=>{if(_0x54f802||!_0x568c50[_0x31f6('0xb')](_0x3d1b4d))return;const _0x2219f7=_0x568c50['getSuggestion'](_0x3d1b4d);this[_0x31f6('0x3c')][_0x31f6('0x62')](_0x2219f7)['view'][_0x31f6('0x48')]();},{'priority':'lowest'});}[_0x31f6('0x3e')](){const _0x10aa02=this['editor'][_0x31f6('0x21')][_0x31f6('0x62')]('Annotations'),_0x491987=this[_0x31f6('0x5f')][_0x31f6('0x21')]['get'](_0x31f6('0xe')),_0x481692=Array[_0x31f6('0x43')](_0x10aa02[_0x31f6('0x15')],_0x5b9f18=>_0x5b9f18[_0x31f6('0x66')])[_0x31f6('0x25')](_0x542e0e=>this[_0x31f6('0x3f')][_0x31f6('0xa')](_0x542e0e)),_0x131774=[];for(const _0x5c458c of _0x481692){const _0x457a78=this['_viewToController'][_0x31f6('0x62')](_0x5c458c)[_0x31f6('0x41')][_0x31f6('0x63')]();_0x131774[_0x31f6('0x33')](..._0x457a78[_0x31f6('0x40')]((_0x1bc294,_0x5a902e)=>[..._0x1bc294,..._0x5a902e[_0x31f6('0x11')]()],[]));}_0x491987[_0x31f6('0x3')]=_0x131774;}['_createUIButton'](_0x1e8bb5){const _0x3ca4aa=_0x1f8c74(_0x1e8bb5,_0x5d9657),_0xa00e39=this[_0x31f6('0x5f')][_0x31f6('0xc')][_0x31f6('0x62')]('trackChanges'),_0x3ca77a=_0x22bfc8(_0x1e8bb5,_0x31f6('0x2d'));_0x3ca4aa[_0x31f6('0x54')][_0x31f6('0x8')]({'tooltip':_0x3ca77a,'label':_0x3ca77a,'icon':_0x59b790}),_0x3ca4aa[_0x31f6('0x54')][_0x31f6('0x27')](_0x31f6('0x20'))['to'](_0xa00e39,_0x31f6('0x51')),_0x3ca4aa[_0x31f6('0x54')]['on'](_0x31f6('0x4e'),()=>{_0xa00e39[_0x31f6('0x4e')](),this[_0x31f6('0x5f')][_0x31f6('0x1c')][_0x31f6('0x2f')]['focus']();});const _0x36e8b1=new _0x4de011(),_0x3ea36f=[{'type':_0x31f6('0x12'),'model':{'withText':!0x0,'label':_0x3ca77a,'commandName':_0x31f6('0x38')}},{'type':'separator'},{'type':_0x31f6('0x65'),'model':{'withText':!0x0,'label':_0x22bfc8(_0x1e8bb5,'Accept\x20all\x20suggestions'),'commandName':_0x31f6('0x55')}},{'type':_0x31f6('0x65'),'model':{'withText':!0x0,'label':_0x22bfc8(_0x1e8bb5,_0x31f6('0x3d')),'commandName':_0x31f6('0x23')}},{'type':_0x31f6('0x65'),'model':{'withText':!0x0,'label':_0x22bfc8(_0x1e8bb5,_0x31f6('0x16')),'commandName':'discardAllSuggestions'}},{'type':_0x31f6('0x65'),'model':{'withText':!0x0,'label':_0x22bfc8(_0x1e8bb5,_0x31f6('0xf')),'commandName':'discardSelectedSuggestions'}}];for(const _0x2a2741 of _0x3ea36f){let _0x41cb13={'type':_0x31f6('0x53')};if(_0x2a2741['model']){const _0x49f111=new _0x34313c(_0x2a2741[_0x31f6('0x41')]),_0x32dc22=this[_0x31f6('0x5f')]['commands'][_0x31f6('0x62')](_0x49f111['commandName']);_0x49f111['bind'](_0x31f6('0x20'),'isEnabled')['to'](_0x32dc22,_0x31f6('0x51'),_0x31f6('0x47')),_0x41cb13={'type':_0x2a2741['type'],'model':_0x49f111};}_0x36e8b1[_0x31f6('0x45')](_0x41cb13);}_0x5140ea(_0x3ca4aa,_0x36e8b1);const _0x5b051b=_0x3ea36f[_0x31f6('0x25')](_0x43910f=>null!=_0x43910f['model'])['map'](_0x10d4b6=>this[_0x31f6('0x5f')][_0x31f6('0xc')][_0x31f6('0x62')](_0x10d4b6[_0x31f6('0x41')][_0x31f6('0x4a')])),_0x4b97b3=_0x3ca4aa[_0x31f6('0x54')];return _0x4b97b3['actionView'][_0x31f6('0x60')](_0x31f6('0x47')),_0x4b97b3['arrowView'][_0x31f6('0x60')](_0x31f6('0x47')),_0x4b97b3[_0x31f6('0x3a')]['bind'](_0x31f6('0x47'))['to'](_0xa00e39,'isEnabled'),_0x4b97b3['arrowView']['bind'](_0x31f6('0x47'))[_0x31f6('0x24')](_0x5b051b,_0x31f6('0x47'),(..._0x408b8f)=>_0x408b8f['some'](_0xc122cb=>_0xc122cb)),_0x3ca4aa['on'](_0x31f6('0x4e'),_0x3581d6=>{this[_0x31f6('0x5f')]['execute'](_0x3581d6[_0x31f6('0x64')]['commandName']),this[_0x31f6('0x5f')][_0x31f6('0x1c')]['view'][_0x31f6('0x48')]();}),_0x3ca4aa;}[_0x31f6('0x29')](_0x42cf3c){const _0x11d650=this[_0x31f6('0x5f')],_0x54f660=_0x11d650[_0x31f6('0x68')],_0x4fcf24=_0x11d650[_0x31f6('0x21')]['get'](_0x31f6('0x2')),_0x136fd3=_0x11d650[_0x31f6('0x21')][_0x31f6('0x62')](_0x31f6('0xd')),_0x4c852b=_0x11d650['plugins']['get'](_0x31f6('0x6d')),_0x57b330=_0x11d650['plugins'][_0x31f6('0x62')](_0x50e44d)['me'],_0x2a795d=_0x54f660[_0x31f6('0x62')](_0x31f6('0x38'))[_0x31f6('0x49')],{CommentsListView:_0x31fb6f,CommentThreadInputView:_0x39881b}=_0x11d650[_0x31f6('0x21')]['get'](_0x31f6('0x1e'));let _0xa73785,_0x37d07d;this['_annotationViews'][_0x31f6('0xa')](_0x42cf3c['id'])?(_0x37d07d=this[_0x31f6('0x1f')][_0x31f6('0x62')](_0x42cf3c['id']),_0xa73785=_0x37d07d[_0x31f6('0x36')]):(_0xa73785=new _0x2a795d(_0x11d650[_0x31f6('0x3b')],_0x42cf3c,_0x57b330,{'disableComments':this[_0x31f6('0x17')],'editorConfig':_0x54f660['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x54f660['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x54f660[_0x31f6('0x62')](_0x31f6('0x5')),'maxCommentCharsWhenCollapsed':_0x54f660[_0x31f6('0x62')](_0x31f6('0x2b')),'formatDateTime':_0x1bdb11(_0x54f660[_0x31f6('0x62')]('locale')),'CommentView':_0x54f660[_0x31f6('0x62')](_0x31f6('0x5c'))['CommentView'],'CommentsListView':_0x31fb6f,'CommentThreadInputView':_0x39881b}),_0xa73785[_0x31f6('0x46')]['on'](_0x31f6('0x4e'),()=>{_0x11d650[_0x31f6('0x1c')][_0x31f6('0x2f')][_0x31f6('0x48')]();}),_0xa73785[_0x31f6('0x19')]['on']('execute',()=>{_0x11d650[_0x31f6('0x1c')][_0x31f6('0x2f')][_0x31f6('0x48')]();}),_0x37d07d=_0x4fcf24['createAnnotationView'](this['editor'][_0x31f6('0x3b')],_0xa73785),_0x37d07d[_0x31f6('0x27')](_0x31f6('0x32'))['to'](_0xa73785,_0x31f6('0x32')),_0x37d07d['bind'](_0x31f6('0x1'))['to'](_0xa73785),_0x37d07d[_0x31f6('0x27')](_0x31f6('0x69'))['to'](_0xa73785,_0x31f6('0x69'),_0x5d6041=>_0x31f6('0x35')+_0x5d6041),this[_0x31f6('0x1f')]['set'](_0x42cf3c['id'],_0x37d07d));const _0x36e7bd=_0x136fd3['createCommentThreadController'](_0x42cf3c[_0x31f6('0x2a')],_0xa73785),_0x1b0cac=new _0xbbd04b(_0x11d650,_0x42cf3c,_0xa73785,_0x36e7bd),_0x11b88b=_0x42cf3c[_0x31f6('0x63')]()[_0x31f6('0x25')](_0x2c7211=>_0x2c7211['isInContent']);_0xa73785[_0x31f6('0x1a')]=_0x11d650[_0x31f6('0x21')]['get'](_0x31f6('0xe'))[_0x31f6('0x37')][_0x31f6('0x13')](_0x11b88b),this['_suggestionToController'][_0x31f6('0x8')](_0x42cf3c,_0x1b0cac),this['_viewToController']['set'](_0xa73785,_0x1b0cac);const _0x122327=_0x4fcf24[_0x31f6('0x6a')]({'view':_0x37d07d,'target':()=>{const _0x468ae6=[],_0x2c4ef6=_0x42cf3c[_0x31f6('0x63')]()[_0x31f6('0x25')](_0xcc8e17=>_0xcc8e17[_0x31f6('0x42')]);for(const _0x4a5b1a of _0x2c4ef6)_0x468ae6[_0x31f6('0x33')](..._0x4a5b1a[_0x31f6('0x10')]());return _0x10c91e(_0x11d650[_0x31f6('0x1c')],_0x468ae6);},'type':()=>_0x31f6('0x35')+_0x1b0cac[_0x31f6('0x2f')][_0x31f6('0x69')]});_0x136fd3[_0x31f6('0x57')](_0xa73785,_0x122327),_0x4fcf24[_0x31f6('0x45')](_0x122327),_0x4c852b[_0x31f6('0x7')](_0x122327);}['_destroyController'](_0x1e1abe){const _0x49d8bc=this[_0x31f6('0x5f')][_0x31f6('0x21')]['get'](_0x31f6('0xd')),_0x5125d8=this['editor']['plugins']['get'](_0x31f6('0x2')),_0x18305b=this[_0x31f6('0x3c')][_0x31f6('0x62')](_0x1e1abe),_0x17d388=_0x18305b[_0x31f6('0x2f')],_0x3d8af2=_0x5125d8[_0x31f6('0x44')](_0x17d388);_0x49d8bc[_0x31f6('0x6')](_0x17d388),_0x3d8af2&&_0x5125d8[_0x31f6('0x4d')](_0x3d8af2),this[_0x31f6('0x3c')][_0x31f6('0x2c')](_0x1e1abe),this[_0x31f6('0x3f')][_0x31f6('0x2c')](_0x17d388),_0x18305b[_0x31f6('0x67')]();}[_0x31f6('0x4b')](_0xe440fa){if(!_0xe440fa[_0x31f6('0x42')]||!this[_0x31f6('0x3c')][_0x31f6('0xa')](_0xe440fa))return;const _0x4c25ae=this['editor']['plugins'][_0x31f6('0x62')](_0x31f6('0xe')),_0x3a94c3=this[_0x31f6('0x3c')][_0x31f6('0x62')](_0xe440fa),_0x5f4ed4=_0xe440fa[_0x31f6('0x63')]();_0x3a94c3['view'][_0x31f6('0x1a')]=_0x4c25ae[_0x31f6('0x37')]['getDescriptions'](_0x5f4ed4);}[_0x31f6('0x67')](){for(const _0x5db206 of this['_suggestionToController'][_0x31f6('0x26')]())this[_0x31f6('0x9')](_0x5db206);for(const _0x38e5c6 of this['_annotationViews'][_0x31f6('0x5a')]())_0x38e5c6[_0x31f6('0x36')]['destroy']();super[_0x31f6('0x67')]();}}
@@ -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 _0x2196=['view','_discardCommand','acceptSuggestion','PendingActions','isEnabled','commands','_acceptCommand','remove','_editor','model','canEditAt','PENDING_ACTION_SUGGESTION','add','_pendingAction','commentThreadController','plugins','canAccept','bind','_setPendingAction','unbind','isDirty','destroy','discardSuggestion','_removePendingAction','canDiscard','get','execute','getRanges','stopListening'];(function(_0x39cbc0,_0x2196bc){const _0x7e1650=function(_0x5dac84){while(--_0x5dac84){_0x39cbc0['push'](_0x39cbc0['shift']());}};_0x7e1650(++_0x2196bc);}(_0x2196,0x157));const _0x7e16=function(_0x39cbc0,_0x2196bc){_0x39cbc0=_0x39cbc0-0x0;let _0x7e1650=_0x2196[_0x39cbc0];return _0x7e1650;};import{ObservableMixin as _0x381db7}from'ckeditor5/src/utils.js';import{getTranslation as _0x133451}from'../utils/common-translations.js';export default class Xt extends _0x381db7(){constructor(_0x457af1,_0x21fbe8,_0x52ec77,_0x101a7e){super(),this[_0x7e16('0xe')]=_0x21fbe8,this['view']=_0x52ec77,this[_0x7e16('0x13')]=_0x101a7e,this[_0x7e16('0xd')]=_0x457af1,this[_0x7e16('0xb')]=_0x457af1['commands'][_0x7e16('0x1')]('acceptSuggestion'),this[_0x7e16('0x6')]=_0x457af1[_0x7e16('0xa')][_0x7e16('0x1')]('discardSuggestion'),this[_0x7e16('0x5')][_0x7e16('0x16')](_0x7e16('0x9'))['to'](this[_0x7e16('0xb')],this[_0x7e16('0x6')],(_0x763c3a,_0x2c7e26)=>_0x763c3a||_0x2c7e26),this[_0x7e16('0x5')][_0x7e16('0x16')](_0x7e16('0x15'))['to'](this[_0x7e16('0xb')],_0x7e16('0x9'),_0x45ef3a=>_0x45ef3a&&this[_0x7e16('0xd')][_0x7e16('0xe')]['canEditAt'](_0x21fbe8[_0x7e16('0x3')]())),this[_0x7e16('0x5')][_0x7e16('0x16')](_0x7e16('0x0'))['to'](this[_0x7e16('0x6')],_0x7e16('0x9'),_0x860612=>_0x860612&&this['_editor']['model'][_0x7e16('0xf')](_0x21fbe8[_0x7e16('0x3')]())),this[_0x7e16('0x12')]=null,_0x52ec77[_0x7e16('0x19')]&&this[_0x7e16('0x17')](),this['listenTo'](_0x52ec77,_0x7e16('0x7'),()=>this[_0x7e16('0x7')]()),this['listenTo'](_0x52ec77,_0x7e16('0x1b'),()=>this[_0x7e16('0x1b')]()),this['listenTo'](_0x52ec77,'change:isDirty',()=>{_0x52ec77[_0x7e16('0x19')]?this[_0x7e16('0x17')]():this[_0x7e16('0x1c')]();});}[_0x7e16('0x7')](){this[_0x7e16('0xb')][_0x7e16('0x2')](this['model']['id']);}[_0x7e16('0x1b')](){this[_0x7e16('0x6')][_0x7e16('0x2')](this[_0x7e16('0xe')]['id']);}[_0x7e16('0x1a')](){this['view'][_0x7e16('0x18')](_0x7e16('0x9')),this[_0x7e16('0x5')][_0x7e16('0x18')](_0x7e16('0x15')),this['view'][_0x7e16('0x18')](_0x7e16('0x0')),this[_0x7e16('0x4')](),this['commentThreadController'][_0x7e16('0x1a')](),this[_0x7e16('0x12')]&&this[_0x7e16('0x1c')]();}['_setPendingAction'](){const _0xa9ee94=_0x133451(this['_editor']['locale'],_0x7e16('0x10'));this['_pendingAction']=this[_0x7e16('0xd')][_0x7e16('0x14')][_0x7e16('0x1')](_0x7e16('0x8'))[_0x7e16('0x11')](_0xa9ee94);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x7e16('0xd')][_0x7e16('0x14')]['get'](_0x7e16('0x8'))[_0x7e16('0xc')](this[_0x7e16('0x12')]),this[_0x7e16('0x12')]=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 _0x35e2=['editorConfig','authoredAt','hasDirtyComment','isDirty','fire','_createCommentThreadInputView','commentsListView','disableComments','disabledSubmit','delegate','value','commentInputView','removeComment','_model','destroy','commentThread','CommentView','commentThreadInputView','isActive','editor','_config','bind','_createCommentViews','focus','locale','length','submit','cancel','descriptionParts','setData','isReadOnly','set','canAccept','updateComment'];(function(_0x16a4b9,_0x35e243){const _0x242b56=function(_0x40bbb3){while(--_0x40bbb3){_0x16a4b9['push'](_0x16a4b9['shift']());}};_0x242b56(++_0x35e243);}(_0x35e2,0xc3));const _0x242b=function(_0x16a4b9,_0x35e243){_0x16a4b9=_0x16a4b9-0x0;let _0x242b56=_0x35e2[_0x16a4b9];return _0x242b56;};import{View as _0xaa54d7}from'ckeditor5/src/ui.js';export default class es extends _0xaa54d7{constructor(_0x5de826,_0x37843e,_0x595e2b,_0x513a27){super(_0x5de826),this[_0x242b('0xf')]=null,this[_0x242b('0x1a')]=null,this[_0x242b('0x6')](_0x242b('0x1b'),!0x1),this[_0x242b('0x6')](_0x242b('0xa'),_0x37843e[_0x242b('0xa')]),this[_0x242b('0x1e')](_0x242b('0xa'))['to'](_0x37843e),this[_0x242b('0x6')](_0x242b('0x3'),[]),this[_0x242b('0x6')]('isDirty',!0x1),this[_0x242b('0x6')]('isEnabled',!0x1),this['set'](_0x242b('0x7'),!0x1),this[_0x242b('0x6')]('canDiscard',!0x1),this[_0x242b('0x16')]=_0x37843e,this['_localUser']=_0x595e2b,this[_0x242b('0x1d')]=_0x513a27,_0x513a27[_0x242b('0x10')]?this[_0x242b('0x6')](_0x242b('0x0'),0x1):this[_0x242b('0x1f')]();}[_0x242b('0x20')](){this['element'][_0x242b('0x20')]();}[_0x242b('0x17')](){this[_0x242b('0xf')]&&this['commentsListView'][_0x242b('0x17')](),this[_0x242b('0x1a')]&&this[_0x242b('0x1a')][_0x242b('0x17')](),super[_0x242b('0x17')]();}[_0x242b('0x1f')](){const {CommentsListView:_0x333770}=this['_config'];this['commentsListView']=new _0x333770(this[_0x242b('0x21')],this[_0x242b('0x16')]['commentThread'],Object['assign']({'CommentView':this[_0x242b('0x1d')][_0x242b('0x19')]},this[_0x242b('0x1d')])),this[_0x242b('0xf')][_0x242b('0x12')]('removeComment')['to'](this),this[_0x242b('0xf')][_0x242b('0x12')](_0x242b('0x8'))['to'](this),this['commentsListView'][_0x242b('0x1e')](_0x242b('0x1b'))['to'](this),this[_0x242b('0x6')]('length',this[_0x242b('0xf')][_0x242b('0x0')]+0x1),this[_0x242b('0x1e')](_0x242b('0x0'))['to'](this['commentsListView'],'length',_0x1a5786=>_0x1a5786+0x1),this[_0x242b('0x1a')]=this[_0x242b('0xe')](),this['on'](_0x242b('0x15'),()=>this[_0x242b('0x20')]()),this[_0x242b('0x1e')](_0x242b('0xc'))['to'](this['commentsListView'],_0x242b('0xb'),this[_0x242b('0x1a')][_0x242b('0x14')],'value',(_0x5bbd64,_0x366921)=>_0x5bbd64||!!_0x366921);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3dc5c8}=this[_0x242b('0x1d')],_0x3fbd55=new _0x3dc5c8(this[_0x242b('0x21')],this['_localUser'],this[_0x242b('0x1d')][_0x242b('0x9')]),_0x428a3c=_0x3fbd55['commentInputView'];return _0x3fbd55['bind']('showInput')['to'](this,_0x242b('0x1b'),this[_0x242b('0x16')]['commentThread'],_0x242b('0x5'),_0x428a3c,_0x242b('0x13'),(_0x77a792,_0x4e6b63,_0x358085)=>!!_0x358085||_0x77a792&&!_0x4e6b63),_0x428a3c['on'](_0x242b('0x1'),(_0x1b3c3c,_0x40293e)=>{this[_0x242b('0xd')]('addComment',_0x40293e),_0x428a3c[_0x242b('0x1c')][_0x242b('0x4')]('');}),_0x428a3c['on'](_0x242b('0x2'),()=>this[_0x242b('0x20')]()),_0x428a3c[_0x242b('0x1e')](_0x242b('0x11'))['to'](this[_0x242b('0x16')][_0x242b('0x18')],_0x242b('0x5')),_0x3fbd55;}}
@@ -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 _0x3beb=['value','cancel','discardSuggestion','ck-annotation__info-name','type','editorDestroyed','isActive','</span>','ck-suggestion-wrapper--active','ck-annotation','author','ck-annotation__info-time','setTemplate','children','creator','locale','ck-suggestion__info-name','_descriptionElement','commentThreadInputView','canAccept','ck-comment__info-time','render','createElement','acceptButton','description','attributes','check','isEnabled','querySelector','\x22\x20title=\x22','delegate','_model','EXTERNAL_AVATAR','descriptionParts','bind','ck-suggestion__actions','execute','userView','map','change:description','</p>','ck-suggestion--disabled-comments','Discard\x20suggestion','name','title','commentThread','bindTemplate','formatDateTime','ck-annotation__content-wrapper','<span\x20class=\x22ck-suggestion-type\x22>','color','ck-annotation__user','innerHTML','getTemplate','set','getExternalSuggestionNote','importWord','editorReady','authoredAt','disableComments','_config','div','ck-suggestion__info','@external','ck-suggestion-wrapper','ck-annotation__main','push','span','getUserViewNotificationText','ck-suggestion-','commentsListView','time','discardButton','_createButton','isExternal','ck-suggestion--accept','\x22></span>','extendTemplate','ck-suggestion__user','canDiscard'];(function(_0x391cd9,_0x3beb1c){const _0x69e62c=function(_0x38faf7){while(--_0x38faf7){_0x391cd9['push'](_0x391cd9['shift']());}};_0x69e62c(++_0x3beb1c);}(_0x3beb,0x154));const _0x69e6=function(_0x391cd9,_0x3beb1c){_0x391cd9=_0x391cd9-0x0;let _0x69e62c=_0x3beb[_0x391cd9];return _0x69e62c;};import{getTranslation as _0x207bd2}from'../../utils/common-translations.js';import{default as _0x5d6087}from'./basesuggestionthreadview.js';import{ButtonView as _0x9d52a1}from'ckeditor5/src/ui.js';import{icons as _0x2e8543}from'ckeditor5/src/core.js';import{trimHtml as _0x4e9bf5,UserView as _0x457608}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x5d6087{constructor(_0x1d0b03,_0x48d83d,_0x5d0c1a,_0x17f21d){super(_0x1d0b03,_0x48d83d,_0x5d0c1a,_0x17f21d),this[_0x69e6('0x22')](_0x69e6('0x40'),''),this[_0x69e6('0xe')](_0x69e6('0x40'))['to'](this,'descriptionParts',_0x28ebb1=>_0x28ebb1&&_0x28ebb1[0x0]?_0x28ebb1[0x0][_0x69e6('0x40')]:''),this[_0x69e6('0xe')](_0x69e6('0x4'))['to'](this,_0x69e6('0xd'),this,_0x69e6('0x42'),(_0x580b8a,_0x350e05)=>{let _0x14f72f='';for(const _0x201eb5 of _0x580b8a)_0x14f72f+='<p>'+ds(_0x201eb5['content'],_0x201eb5[_0x69e6('0x1e')])+_0x69e6('0x14');return _0x350e05?_0x14f72f:_0x4e9bf5(_0x14f72f,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x69e6('0x3')]=this[_0x69e6('0x35')](_0x207bd2(_0x1d0b03,'Accept\x20suggestion'),_0x2e8543[_0x69e6('0x6')],_0x69e6('0x37'),'acceptSuggestion','sw'),this['acceptButton'][_0x69e6('0xe')](_0x69e6('0x7'))['to'](this,_0x69e6('0x4f')),this[_0x69e6('0x34')]=this[_0x69e6('0x35')](_0x207bd2(_0x1d0b03,_0x69e6('0x16')),_0x2e8543[_0x69e6('0x3d')],'ck-suggestion--discard',_0x69e6('0x3e'),'sw'),this[_0x69e6('0x34')]['bind'](_0x69e6('0x7'))['to'](this,_0x69e6('0x3b')),this[_0x69e6('0x11')]=new _0x457608(_0x1d0b03,this['_model']['author'],this[_0x69e6('0x30')]()),this[_0x69e6('0x11')]['extendTemplate']({'attributes':{'class':[_0x69e6('0x3a'),_0x69e6('0x1f')]}}),this[_0x69e6('0x48')](this[_0x69e6('0x21')]());}[_0x69e6('0x21')](){const _0x138dd8=this[_0x69e6('0x1a')],_0x2e4248=[{'tag':'div','attributes':{'class':[_0x69e6('0x2a'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x69e6('0x11')][_0x69e6('0x17')]}],'attributes':{'class':[_0x69e6('0x4c'),_0x69e6('0x3f')]}},{'tag':_0x69e6('0x33'),'attributes':{'datetime':_0x138dd8['to']('authoredAt'),'class':[_0x69e6('0x0'),_0x69e6('0x47')]},'children':[{'text':_0x138dd8['to'](_0x69e6('0x26'),_0x5d701a=>this[_0x69e6('0x28')][_0x69e6('0x1b')](_0x5d701a))}]}]},{'tag':_0x69e6('0x29'),'attributes':{'class':[_0x69e6('0xf'),'ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':_0x69e6('0x29'),'attributes':{'class':[_0x69e6('0x1c')]}}];this[_0x69e6('0xb')]['isExternal']&&_0x2e4248[_0x69e6('0x2e')]({'tag':_0x69e6('0x29'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x177a56={'tag':'div','attributes':{'class':[_0x69e6('0x2c'),_0x138dd8['if'](_0x69e6('0x42'),_0x69e6('0x44')),_0x138dd8['to']('type',_0x475abb=>_0x69e6('0x31')+_0x475abb),this[_0x69e6('0x28')][_0x69e6('0x27')]&&_0x69e6('0x15')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x69e6('0xb')][_0x69e6('0x19')]['id'],'data-author-id':this[_0x69e6('0xb')][_0x69e6('0x46')]['id'],'tabindex':-0x1},'children':[{'tag':_0x69e6('0x29'),'attributes':{'class':['ck-suggestion',_0x69e6('0x45')]},'children':[this[_0x69e6('0x11')],{'tag':_0x69e6('0x29'),'attributes':{'class':['ck-suggestion__main',_0x69e6('0x2d')]},'children':_0x2e4248}]}]};return this['commentsListView']&&this[_0x69e6('0x4e')]&&(_0x177a56[_0x69e6('0x49')][_0x69e6('0x2e')](this[_0x69e6('0x32')],this[_0x69e6('0x4e')]),this[_0x69e6('0x32')]['delegate'](_0x69e6('0x25'))['to'](this),this[_0x69e6('0x32')][_0x69e6('0xa')](_0x69e6('0x41'))['to'](this),this[_0x69e6('0x4e')][_0x69e6('0xa')](_0x69e6('0x25'))['to'](this),this[_0x69e6('0x4e')][_0x69e6('0xa')](_0x69e6('0x41'))['to'](this)),_0x177a56;}[_0x69e6('0x1')](){super[_0x69e6('0x1')](),this[_0x69e6('0x4d')]=this['element'][_0x69e6('0x8')]('.ck-annotation__content-wrapper'),this[_0x69e6('0x4d')][_0x69e6('0x20')]=this[_0x69e6('0x4')],this['on'](_0x69e6('0x13'),(_0x93883c,_0x47a113,_0x2e79de)=>{this[_0x69e6('0x4d')][_0x69e6('0x20')]=_0x2e79de;});}[_0x69e6('0x35')](_0x256e3e,_0x110400,_0x14eaf1,_0x2bc969,_0x252c37){const _0x49298b=new _0x9d52a1(this[_0x69e6('0x4b')]);return _0x49298b['set']({'label':_0x256e3e,'icon':_0x110400,'tooltip':!0x0,'tooltipPosition':_0x252c37}),_0x49298b[_0x69e6('0x39')]({'attributes':{'class':_0x14eaf1}}),_0x49298b['on'](_0x69e6('0x10'),()=>{this['fire'](_0x2bc969,this[_0x69e6('0xb')]['id']);}),_0x49298b;}[_0x69e6('0x23')](){return _0x69e6('0x24')===this[_0x69e6('0xb')][_0x69e6('0x5')][_0x69e6('0x2b')]['source']?_0x207bd2(this[_0x69e6('0x4b')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x207bd2(this[_0x69e6('0x4b')],'EXTERNAL_SUGGESTION');}[_0x69e6('0x30')](){return this[_0x69e6('0xb')][_0x69e6('0x36')]?_0x69e6('0x24')===this[_0x69e6('0xb')][_0x69e6('0x5')][_0x69e6('0x2b')]['source']?_0x207bd2(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x69e6('0xb')][_0x69e6('0x4a')][_0x69e6('0x17')]):_0x207bd2(this['locale'],_0x69e6('0xc'),this['_model']['creator']['name']):null;}}function ds(_0x26ff27,_0x1b1328){let _0x451625='';return _0x451625+=_0x26ff27['split']('*')[_0x69e6('0x12')]((_0x558b91,_0x50bb6f)=>_0x50bb6f%0x2!=0x0?_0x69e6('0x1d')+us(_0x558b91)+_0x69e6('0x43'):us(_0x558b91))['join'](''),_0x1b1328&&(_0x451625+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1b1328[_0x69e6('0x3c')]+_0x69e6('0x9')+_0x1b1328[_0x69e6('0x18')]+_0x69e6('0x38')),_0x451625;}function us(_0x5b527c){const _0x402233=document[_0x69e6('0x2')](_0x69e6('0x2f'));return _0x402233['innerText']=_0x5b527c,_0x402233['innerHTML'];}
@@ -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(_0x4e01b3,_0x3233eb,_0x2a85b7){const t=_0x4e01b3['t'];switch(_0x3233eb){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',_0x2a85b7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2a85b7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2a85b7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2a85b7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2a85b7);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',_0x2a85b7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2a85b7);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',_0x2a85b7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2a85b7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2a85b7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2a85b7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2a85b7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2a85b7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2a85b7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2a85b7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2a85b7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2a85b7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a85b7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2a85b7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2a85b7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2a85b7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2a85b7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2a85b7);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'},_0x2a85b7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2a85b7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2a85b7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2a85b7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2a85b7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2a85b7);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'},_0x2a85b7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2a85b7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2a85b7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2a85b7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2a85b7);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'},_0x2a85b7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2a85b7);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'},_0x2a85b7);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'},_0x2a85b7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2a85b7);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'},_0x2a85b7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2a85b7);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'},_0x2a85b7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2a85b7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2a85b7);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'},_0x2a85b7);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'},_0x2a85b7);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 _0x3233eb;}}
@@ -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 _0x173a=['isInContent','change','type','isObject','isTouching','getRanges','sort','deletion','createPositionAt','isCollapsed','map','splice','execute','length','from','createRange','color','isIntersecting','createPositionAfter','push','createPositionBefore','replace','end'];(function(_0x2b2f1b,_0x173aa7){const _0x27a92c=function(_0x26c9b4){while(--_0x26c9b4){_0x2b2f1b['push'](_0x2b2f1b['shift']());}};_0x27a92c(++_0x173aa7);}(_0x173a,0x119));const _0x27a9=function(_0x2b2f1b,_0x173aa7){_0x2b2f1b=_0x2b2f1b-0x0;let _0x27a92c=_0x173a[_0x2b2f1b];return _0x27a92c;};export function normalizeDescription(_0x115c20){return Array['isArray'](_0x115c20)||(_0x115c20=[_0x115c20]),_0x115c20[_0x27a9('0x5')](_0x2a78ac=>{const _0x56c974=_0x2a78ac['content'][_0x27a9('0x10')](/\*/g,''),_0x1df126=_0x2a78ac['color']?'\x20[color\x20'+_0x2a78ac[_0x27a9('0xb')]['value']+']':'';return'['+_0x2a78ac[_0x27a9('0x14')]+']\x20'+_0x56c974+_0x1df126;})['join'](';\x20');}export function sortSuggestions(_0x28c0f8){return _0x28c0f8[_0x27a9('0x1')]((_0x35c99c,_0x56d3ce)=>_0x27a9('0x2')==_0x35c99c[_0x27a9('0x14')]&&_0x27a9('0x2')!=_0x56d3ce['type']?-0x1:_0x27a9('0x2')!=_0x35c99c['type']&&'deletion'==_0x56d3ce['type']?0x1:0x0);}export function getSelectedSuggestions(_0x24a16c,_0xd66952){const _0x1c0794=Array[_0x27a9('0x9')](_0x24a16c[_0x27a9('0x0')]()),_0x2d7555=new Set();for(const _0x100133 of _0xd66952)if(_0x100133[_0x27a9('0x12')])for(const _0x142052 of _0x1c0794)for(const _0x21e038 of _0x100133[_0x27a9('0x0')]())(_0x142052[_0x27a9('0xc')](_0x21e038)||_0x24a16c[_0x27a9('0x4')]&&!_0x100133['isMultiRange']&&_0x100133['next']&&_0x21e038[_0x27a9('0x11')]['isTouching'](_0x142052['start']))&&_0x2d7555['add'](_0x100133);return _0x2d7555;}export function getRangesOfBlockGroups(_0x157eba,_0x45e46d){let _0x4e2353,_0x31fa09=0x0;const _0x29f9cf=[],_0x59a5ef=_0x45e46d['schema'];for(;_0x31fa09<_0x157eba[_0x27a9('0x8')];){const _0x422fdb=_0x157eba[_0x31fa09],_0x3c43f4=_0x157eba[_0x31fa09+0x1];_0x4e2353||(_0x4e2353=_0x45e46d['createPositionBefore'](_0x422fdb)),co(_0x45e46d,_0x422fdb,_0x3c43f4)||(_0x29f9cf[_0x27a9('0xe')](_0x45e46d[_0x27a9('0xa')](_0x4e2353,_0x59a5ef[_0x27a9('0x15')](_0x422fdb)?_0x45e46d[_0x27a9('0xd')](_0x422fdb):_0x45e46d[_0x27a9('0x3')](_0x422fdb,'end'))),_0x4e2353=null),_0x31fa09++;}return _0x29f9cf;}function co(_0x5c01ab,_0x34689e,_0x3c8756){if(!_0x3c8756)return!0x1;const _0x52cef2=_0x5c01ab[_0x27a9('0xd')](_0x34689e),_0xa535dd=_0x5c01ab[_0x27a9('0xf')](_0x3c8756);return _0x52cef2[_0x27a9('0x16')](_0xa535dd);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x5c6391,_0x15b823,_0x59134a){for(;_0x59134a[_0x27a9('0x8')];){const _0x28d56a=_0x59134a[_0x27a9('0x6')](0x0,0x64);_0x5c6391[_0x27a9('0x13')](()=>{for(const _0x5e19f4 of _0x28d56a)_0x5e19f4[_0x27a9('0x12')]&&_0x15b823[_0x27a9('0x7')](_0x5e19f4['id']);});}}