@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240123.0 → 0.0.0-nightly-20240125.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/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.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 _0x25c0=['EditorAnnotations','registerAnnotation','Accept\x20all\x20suggestions','button','activeAnnotations','CommentsUI','TrackChangesUI','head','actionView','_viewToController','commands','getMarkers','suggestion-','plugins','hasSuggestion','descriptionParts','getSuggestion','TrackChangesEditing','arrowView','add','_createUIButton','map','requires','suggestionChanged','stopListening','_handleSuggestionControllerDelayed','set','config','locale','lowest','_refreshActiveMarkers','init','define','componentFactory','value','Annotations','has','comments.editorConfig','clear','delete','_destroyController','focus','_updateController','listenTo','destroy','_unbindEditors','isEnabled','Discard\x20all\x20suggestions','isOn','commentThread','mainView','trackChanges','reduce','pluginName','bind','getRanges','model','_disableComments','values','getByInnerView','push','comments.maxCommentCharsWhenCollapsed','editor','execute','switchbutton','buttonView','commandName','isDirty','length','suggestionLoaded','change:previous','comments','isInContent','innerView','acceptAllSuggestions','suggestionUnloaded','filter','trackChanges.disableComments','discardAllSuggestions','trackChanges.SuggestionThreadView','from','acceptSelectedSuggestions','_handleControllerBuffer','createCommentThreadController','change:activeAnnotations','comments.maxThreadTotalWeight','Track\x20changes','previous','addComment','CommentsRepository','toMany','view','get','editing','_bindAnnotationToEditors','acceptButton','size','type','getJoined','getDescriptions','unbind','addSourceCollector','discardButton','_descriptionFactory','_suggestionToController','_annotationViews','getAllAdjacentSuggestions','separator','refreshSelectedViews'];(function(_0x88fe13,_0x25c055){const _0x45da6c=function(_0x394b51){while(--_0x394b51){_0x88fe13['push'](_0x88fe13['shift']());}};_0x45da6c(++_0x25c055);}(_0x25c0,0x87));const _0x45da=function(_0x88fe13,_0x25c055){_0x88fe13=_0x88fe13-0x0;let _0x45da6c=_0x25c0[_0x88fe13];return _0x45da6c;};import{Plugin as _0x5cf998}from'ckeditor5/src/core.js';import{Collection as _0x5b8282}from'ckeditor5/src/utils.js';import{ViewModel as _0x85fb1a,SplitButtonView as _0x3f2f69,createDropdown as _0x57ff3e,addListToDropdown as _0x14d028}from'ckeditor5/src/ui.js';import{Users as _0x342ca1,getDateTimeFormatter as _0x157d75,getAllMarkersDomElementsSorted as _0x4752f4}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3c0d94 from'./trackchangesediting.js';import _0x26d301 from'./ui/suggestioncontroller.js';import _0x1e54aa from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x173ecb}from'./utils/common-translations.js';import _0x4b53d2 from'../theme/icons/track-changes.svg';export default class d extends _0x5cf998{static get[_0x45da('0x69')](){return[_0x3c0d94,_0x342ca1,_0x45da('0x3f'),'Annotations',_0x45da('0x53')];}static get[_0x45da('0x1b')](){return _0x45da('0x59');}constructor(_0xacc530){super(_0xacc530),this[_0x45da('0x4e')]=new Map(),this[_0x45da('0x5c')]=new Map(),this[_0x45da('0x4f')]=new Map(),this[_0x45da('0x38')]=new Map();const _0x59f74f=this[_0x45da('0x24')]['config'];_0x59f74f[_0x45da('0x6')](_0x45da('0x35'),_0x1e54aa),_0x59f74f[_0x45da('0x6')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x59f74f[_0x45da('0x42')](_0x45da('0x33'));}['_handleSuggestionControllerDelayed'](_0x55931d,_0x494b6a){0x0===this[_0x45da('0x38')][_0x45da('0x46')]&&setTimeout(()=>{for(const [_0x2d56d1,_0x7bda0]of this[_0x45da('0x38')]){const _0x43ff18=this['_suggestionToController'][_0x45da('0xa')](_0x2d56d1);_0x43ff18||_0x7bda0?_0x43ff18&&_0x7bda0&&this[_0x45da('0xe')](_0x2d56d1):this['_initializeController'](_0x2d56d1);}this[_0x45da('0x38')][_0x45da('0xc')](),this[_0x45da('0x24')][_0x45da('0x60')][_0x45da('0x42')](_0x45da('0x53'))[_0x45da('0x52')](),this[_0x45da('0x4')]();},0xa),this[_0x45da('0x38')][_0x45da('0x0')](_0x55931d,_0x494b6a);}[_0x45da('0x5')](){const _0xffe4ec=this['editor'],_0x4eda6b=_0xffe4ec[_0x45da('0x60')]['get'](_0x45da('0x64')),_0x33f8e8=_0xffe4ec['plugins']['get'](_0x45da('0x9')),_0x329c9b=_0xffe4ec[_0x45da('0x60')]['get'](_0x45da('0x53')),_0x30f200=_0xffe4ec[_0x45da('0x60')][_0x45da('0x42')](_0x45da('0x3f'));_0xffe4ec['ui'][_0x45da('0x7')][_0x45da('0x66')](_0x45da('0x19'),_0x407dd2=>this[_0x45da('0x67')](_0x407dd2)),_0x329c9b[_0x45da('0x4b')](()=>{const _0x43a6e9=[];for(const [_0x169a05,_0x51b93d]of Array[_0x45da('0x36')](this[_0x45da('0x4e')])){const _0x4a5d16=_0x169a05[_0x45da('0x50')](),_0x1a539b=[];for(const _0x53e480 of _0x4a5d16){if(!_0x53e480[_0x45da('0x2e')])continue;if(_0x53e480['isMultiRange']){_0x1a539b[_0x45da('0x22')](..._0x53e480[_0x45da('0x1d')]());continue;}const _0x583026=_0x53e480['getFirstRange']();if(_0x1a539b[_0x45da('0x2a')]>0x0){const _0x159f8a=_0x1a539b[0x0][_0x45da('0x48')](_0x583026);if(_0x159f8a){_0x1a539b[0x0]=_0x159f8a;continue;}}_0x1a539b[_0x45da('0x22')](_0x583026);}_0x43a6e9['push']([_0x51b93d[_0x45da('0x41')],_0x1a539b]);}return _0x43a6e9;}),this[_0x45da('0x11')](_0x4eda6b,_0x45da('0x2b'),(_0x30d36c,_0x397b76)=>{this[_0x45da('0x11')](_0x397b76,_0x45da('0x2c'),(_0x4880ed,_0x40f9fd,_0x3c8f29,_0x512bb4)=>{_0x397b76[_0x45da('0x2e')]&&(null==_0x3c8f29?(this['_updateController'](_0x512bb4[_0x45da('0x5a')]),this[_0x45da('0x6c')](_0x397b76,!0x1)):(this[_0x45da('0x10')](_0x3c8f29['head']),null==_0x512bb4&&this[_0x45da('0x6c')](_0x397b76,!0x0)));}),null!==_0x397b76[_0x45da('0x3d')]?this[_0x45da('0x10')](_0x397b76[_0x45da('0x5a')]):this['_handleSuggestionControllerDelayed'](_0x397b76,!0x1);}),this[_0x45da('0x11')](_0x4eda6b,_0x45da('0x31'),(_0x3fbf7f,_0x47b2b8,_0x581573)=>{this[_0x45da('0x6b')](_0x47b2b8,_0x45da('0x2c')),this[_0x45da('0x38')][_0x45da('0xd')](_0x47b2b8),this['_suggestionToController'][_0x45da('0xa')](_0x47b2b8)&&this['_destroyController'](_0x47b2b8),_0x581573&&this['_updateController'](_0x581573['head']);}),this[_0x45da('0x11')](_0x4eda6b,_0x45da('0x6a'),(_0x4f05f6,_0x9a8516)=>{this[_0x45da('0x10')](_0x9a8516);}),this[_0x45da('0x11')](_0x33f8e8,_0x45da('0x3a'),()=>{this[_0x45da('0x4')]();}),this[_0x45da('0x11')](_0x30f200,_0x45da('0x3e'),(_0x3ad813,{threadId:_0x20cb94,isFromAdapter:_0x4b72b0})=>{if(_0x4b72b0||!_0x4eda6b[_0x45da('0x61')](_0x20cb94))return;const _0x3225d0=_0x4eda6b[_0x45da('0x63')](_0x20cb94);this[_0x45da('0x4e')]['get'](_0x3225d0)['view'][_0x45da('0xf')]();},{'priority':_0x45da('0x3')});}[_0x45da('0x4')](){const _0x4b0398=this[_0x45da('0x24')][_0x45da('0x60')][_0x45da('0x42')](_0x45da('0x9')),_0x4f1f48=this[_0x45da('0x24')]['plugins']['get'](_0x45da('0x64')),_0x1aefb8=Array[_0x45da('0x36')](_0x4b0398[_0x45da('0x57')],_0x1ee51e=>_0x1ee51e[_0x45da('0x2f')])[_0x45da('0x32')](_0x4bde1d=>this['_viewToController'][_0x45da('0xa')](_0x4bde1d)),_0x5532f5=[];for(const _0x4ec14c of _0x1aefb8){const _0x37f258=this[_0x45da('0x5c')][_0x45da('0x42')](_0x4ec14c)[_0x45da('0x1e')]['getAllAdjacentSuggestions']();_0x5532f5[_0x45da('0x22')](..._0x37f258[_0x45da('0x1a')]((_0x521ef3,_0xdfa1dd)=>[..._0x521ef3,..._0xdfa1dd['getMarkerNames']()],[]));}_0x4f1f48['activeMarkers']=_0x5532f5;}['_createUIButton'](_0xee9162){const _0x16f17e=_0x57ff3e(_0xee9162,_0x3f2f69),_0x52de4d=this[_0x45da('0x24')][_0x45da('0x5d')][_0x45da('0x42')](_0x45da('0x19')),_0x20e454=_0x173ecb(_0xee9162,_0x45da('0x3c'));_0x16f17e['buttonView'][_0x45da('0x0')]({'tooltip':_0x20e454,'label':_0x20e454,'icon':_0x4b53d2}),_0x16f17e[_0x45da('0x27')][_0x45da('0x1c')]('isOn')['to'](_0x52de4d,_0x45da('0x8')),_0x16f17e[_0x45da('0x27')]['on']('execute',()=>{_0x52de4d[_0x45da('0x25')](),this[_0x45da('0x24')][_0x45da('0x43')]['view']['focus']();});const _0x698a30=new _0x5b8282(),_0x152fc3=[{'type':_0x45da('0x26'),'model':{'withText':!0x0,'label':_0x20e454,'commandName':_0x45da('0x19')}},{'type':_0x45da('0x51')},{'type':'button','model':{'withText':!0x0,'label':_0x173ecb(_0xee9162,_0x45da('0x55')),'commandName':_0x45da('0x30')}},{'type':_0x45da('0x56'),'model':{'withText':!0x0,'label':_0x173ecb(_0xee9162,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x45da('0x37')}},{'type':_0x45da('0x56'),'model':{'withText':!0x0,'label':_0x173ecb(_0xee9162,_0x45da('0x15')),'commandName':_0x45da('0x34')}},{'type':'button','model':{'withText':!0x0,'label':_0x173ecb(_0xee9162,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x36a5dd of _0x152fc3){let _0x480221={'type':_0x45da('0x51')};if(_0x36a5dd['model']){const _0x51891b=new _0x85fb1a(_0x36a5dd[_0x45da('0x1e')]),_0x163b90=this[_0x45da('0x24')][_0x45da('0x5d')]['get'](_0x51891b[_0x45da('0x28')]);_0x51891b['bind'](_0x45da('0x16'),_0x45da('0x14'))['to'](_0x163b90,_0x45da('0x8'),_0x45da('0x14')),_0x480221={'type':_0x36a5dd[_0x45da('0x47')],'model':_0x51891b};}_0x698a30['add'](_0x480221);}_0x14d028(_0x16f17e,_0x698a30);const _0x13f4e9=_0x152fc3[_0x45da('0x32')](_0x23d8a5=>null!=_0x23d8a5['model'])[_0x45da('0x68')](_0x5982cc=>this[_0x45da('0x24')][_0x45da('0x5d')][_0x45da('0x42')](_0x5982cc[_0x45da('0x1e')][_0x45da('0x28')])),_0x1b219d=_0x16f17e[_0x45da('0x27')];return _0x1b219d[_0x45da('0x5b')][_0x45da('0x4a')](_0x45da('0x14')),_0x1b219d[_0x45da('0x65')][_0x45da('0x4a')](_0x45da('0x14')),_0x1b219d['actionView'][_0x45da('0x1c')](_0x45da('0x14'))['to'](_0x52de4d,_0x45da('0x14')),_0x1b219d['arrowView']['bind'](_0x45da('0x14'))[_0x45da('0x40')](_0x13f4e9,_0x45da('0x14'),(..._0x2e3dcb)=>_0x2e3dcb['some'](_0x2f6635=>_0x2f6635)),_0x16f17e['on'](_0x45da('0x25'),_0x5eb8ad=>{this[_0x45da('0x24')][_0x45da('0x25')](_0x5eb8ad['source'][_0x45da('0x28')]),this[_0x45da('0x24')][_0x45da('0x43')][_0x45da('0x41')][_0x45da('0xf')]();}),_0x16f17e;}['_initializeController'](_0x2c280a){const _0x31dead=this['editor'],_0x1bdc4f=_0x31dead[_0x45da('0x1')],_0x3c19d2=_0x31dead[_0x45da('0x60')][_0x45da('0x42')]('Annotations'),_0x273a24=_0x31dead['plugins'][_0x45da('0x42')](_0x45da('0x3f')),_0x1af127=_0x31dead[_0x45da('0x60')][_0x45da('0x42')](_0x45da('0x53')),_0xadacce=_0x31dead['plugins'][_0x45da('0x42')](_0x342ca1)['me'],_0x53c2f1=_0x1bdc4f[_0x45da('0x42')]('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x58148e,CommentThreadInputView:_0x2a0f62}=_0x31dead[_0x45da('0x60')]['get'](_0x45da('0x58'));let _0x55ed5a,_0x2cbdd1;this[_0x45da('0x4f')][_0x45da('0xa')](_0x2c280a['id'])?(_0x2cbdd1=this[_0x45da('0x4f')][_0x45da('0x42')](_0x2c280a['id']),_0x55ed5a=_0x2cbdd1[_0x45da('0x18')]):(_0x55ed5a=new _0x53c2f1(_0x31dead['locale'],_0x2c280a,_0xadacce,{'disableComments':this[_0x45da('0x1f')],'editorConfig':_0x1bdc4f[_0x45da('0x42')](_0x45da('0xb')),'maxCommentsWhenCollapsed':_0x1bdc4f[_0x45da('0x42')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1bdc4f[_0x45da('0x42')](_0x45da('0x3b')),'maxCommentCharsWhenCollapsed':_0x1bdc4f['get'](_0x45da('0x23')),'formatDateTime':_0x157d75(_0x1bdc4f[_0x45da('0x42')](_0x45da('0x2'))),'CommentView':_0x1bdc4f[_0x45da('0x42')](_0x45da('0x2d'))['CommentView'],'CommentsListView':_0x58148e,'CommentThreadInputView':_0x2a0f62}),_0x55ed5a[_0x45da('0x45')]['on'](_0x45da('0x25'),()=>{_0x31dead['editing'][_0x45da('0x41')][_0x45da('0xf')]();}),_0x55ed5a[_0x45da('0x4c')]['on'](_0x45da('0x25'),()=>{_0x31dead[_0x45da('0x43')]['view'][_0x45da('0xf')]();}),_0x2cbdd1=_0x3c19d2['createAnnotationView'](this[_0x45da('0x24')][_0x45da('0x2')],_0x55ed5a),_0x2cbdd1['bind'](_0x45da('0x29'))['to'](_0x55ed5a,_0x45da('0x29')),_0x2cbdd1[_0x45da('0x1c')]('length')['to'](_0x55ed5a),_0x2cbdd1[_0x45da('0x1c')](_0x45da('0x47'))['to'](_0x55ed5a,_0x45da('0x47'),_0x1bc934=>_0x45da('0x5f')+_0x1bc934),this[_0x45da('0x4f')][_0x45da('0x0')](_0x2c280a['id'],_0x2cbdd1));const _0x1f6f11=_0x273a24[_0x45da('0x39')](_0x2c280a[_0x45da('0x17')],_0x55ed5a),_0x37bae7=new _0x26d301(_0x31dead,_0x2c280a,_0x55ed5a,_0x1f6f11),_0x49ac46=_0x2c280a['getAllAdjacentSuggestions']()[_0x45da('0x32')](_0x15a4c6=>_0x15a4c6[_0x45da('0x2e')]);_0x55ed5a['descriptionParts']=_0x31dead[_0x45da('0x60')]['get'](_0x45da('0x64'))[_0x45da('0x4d')]['getDescriptions'](_0x49ac46),this[_0x45da('0x4e')][_0x45da('0x0')](_0x2c280a,_0x37bae7),this[_0x45da('0x5c')][_0x45da('0x0')](_0x55ed5a,_0x37bae7);const _0x264373=_0x3c19d2['createAnnotation']({'view':_0x2cbdd1,'target':()=>{const _0x3df59b=[],_0x11cbea=_0x2c280a['getAllAdjacentSuggestions']()[_0x45da('0x32')](_0x4cbe2e=>_0x4cbe2e['isInContent']);for(const _0x825280 of _0x11cbea)_0x3df59b[_0x45da('0x22')](..._0x825280[_0x45da('0x5e')]());return _0x4752f4(_0x31dead[_0x45da('0x43')],_0x3df59b);},'type':()=>_0x45da('0x5f')+_0x37bae7['view']['type']});_0x273a24[_0x45da('0x44')](_0x55ed5a,_0x264373),_0x3c19d2['add'](_0x264373),_0x1af127[_0x45da('0x54')](_0x264373);}['_destroyController'](_0x78580d){const _0x577326=this['editor'][_0x45da('0x60')][_0x45da('0x42')]('CommentsRepository'),_0xd853e3=this[_0x45da('0x24')][_0x45da('0x60')][_0x45da('0x42')](_0x45da('0x9')),_0x120966=this[_0x45da('0x4e')][_0x45da('0x42')](_0x78580d),_0x541e37=_0x120966[_0x45da('0x41')],_0x3df2a3=_0xd853e3[_0x45da('0x21')](_0x541e37);_0x577326[_0x45da('0x13')](_0x541e37),_0x3df2a3&&_0xd853e3['remove'](_0x3df2a3),this[_0x45da('0x4e')][_0x45da('0xd')](_0x78580d),this[_0x45da('0x5c')][_0x45da('0xd')](_0x541e37),_0x120966[_0x45da('0x12')]();}['_updateController'](_0x5c025a){if(!_0x5c025a[_0x45da('0x2e')]||!this[_0x45da('0x4e')][_0x45da('0xa')](_0x5c025a))return;const _0x3b32ea=this['editor']['plugins'][_0x45da('0x42')]('TrackChangesEditing'),_0x2ab5ac=this[_0x45da('0x4e')][_0x45da('0x42')](_0x5c025a),_0x31c85a=_0x5c025a[_0x45da('0x50')]();_0x2ab5ac[_0x45da('0x41')][_0x45da('0x62')]=_0x3b32ea[_0x45da('0x4d')][_0x45da('0x49')](_0x31c85a);}[_0x45da('0x12')](){for(const _0x16b742 of this[_0x45da('0x4e')]['keys']())this[_0x45da('0xe')](_0x16b742);for(const _0x2e2bd5 of this[_0x45da('0x4f')][_0x45da('0x20')]())_0x2e2bd5[_0x45da('0x18')][_0x45da('0x12')]();super[_0x45da('0x12')]();}}
23
+ const _0x764c=['reduce','filter','EditorAnnotations','suggestionChanged','switchbutton','define','keys','trackChanges.disableComments','SuggestionThreadView','discardAllSuggestions','innerView','focus','createAnnotation','values','getDescriptions','value','acceptButton','locale','createCommentThreadController','addComment','Accept\x20all\x20selected\x20suggestions','buttonView','stopListening','getSuggestion','change:previous','toMany','isDirty','requires','isInContent','unbind','separator','trackChanges.SuggestionThreadView','commands','_handleControllerBuffer','Accept\x20all\x20suggestions','addSourceCollector','set','has','_updateController','previous','TrackChangesEditing','editing','_annotationViews','model','getAllAdjacentSuggestions','push','from','_disableComments','getFirstRange','listenTo','execute','_handleSuggestionControllerDelayed','head','_bindAnnotationToEditors','componentFactory','Discard\x20all\x20selected\x20suggestions','editor','registerAnnotation','_destroyController','some','isOn','isEnabled','_createUIButton','actionView','activeAnnotations','get','refreshSelectedViews','destroy','_viewToController','delete','plugins','comments.maxCommentsWhenCollapsed','_refreshActiveMarkers','acceptAllSuggestions','CommentsRepository','Discard\x20all\x20suggestions','isMultiRange','type','Annotations','_descriptionFactory','hasSuggestion','_unbindEditors','change:activeAnnotations','acceptSelectedSuggestions','_initializeController','length','remove','arrowView','CommentView','button','commandName','_suggestionToController','trackChanges','comments','add','suggestionUnloaded','view','getJoined','bind','config','suggestionLoaded','init','getRanges','mainView','commentThread','CommentsUI','getMarkers','map'];(function(_0x154964,_0x764c99){const _0x4349cd=function(_0x2d4a66){while(--_0x2d4a66){_0x154964['push'](_0x154964['shift']());}};_0x4349cd(++_0x764c99);}(_0x764c,0xbd));const _0x4349=function(_0x154964,_0x764c99){_0x154964=_0x154964-0x0;let _0x4349cd=_0x764c[_0x154964];return _0x4349cd;};import{Plugin as _0x12d9c1}from'ckeditor5/src/core.js';import{Collection as _0x28c6fb}from'ckeditor5/src/utils.js';import{ViewModel as _0x25f6f1,SplitButtonView as _0x15708a,createDropdown as _0xfa7074,addListToDropdown as _0x229d05}from'ckeditor5/src/ui.js';import{Users as _0x262954,getDateTimeFormatter as _0x454439,getAllMarkersDomElementsSorted as _0x32a865}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3cee26 from'./trackchangesediting.js';import _0xa904d4 from'./ui/suggestioncontroller.js';import _0xe314e5 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x485b8d}from'./utils/common-translations.js';import _0x5b20c2 from'../theme/icons/track-changes.svg';export default class d extends _0x12d9c1{static get[_0x4349('0x36')](){return[_0x3cee26,_0x262954,'CommentsRepository',_0x4349('0x69'),_0x4349('0x1d')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x59a6d5){super(_0x59a6d5),this[_0x4349('0xa')]=new Map(),this[_0x4349('0x5f')]=new Map(),this[_0x4349('0x45')]=new Map(),this[_0x4349('0x3c')]=new Map();const _0x2f6cc1=this[_0x4349('0x53')][_0x4349('0x12')];_0x2f6cc1[_0x4349('0x20')](_0x4349('0x3a'),_0xe314e5),_0x2f6cc1[_0x4349('0x20')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f6cc1[_0x4349('0x5c')](_0x4349('0x22'));}[_0x4349('0x4e')](_0x2492f2,_0xa4826f){0x0===this[_0x4349('0x3c')]['size']&&setTimeout(()=>{for(const [_0x4ebccd,_0x49744d]of this[_0x4349('0x3c')]){const _0x34c2cd=this['_suggestionToController']['has'](_0x4ebccd);_0x34c2cd||_0x49744d?_0x34c2cd&&_0x49744d&&this['_destroyController'](_0x4ebccd):this['_initializeController'](_0x4ebccd);}this[_0x4349('0x3c')]['clear'](),this[_0x4349('0x53')][_0x4349('0x61')][_0x4349('0x5c')](_0x4349('0x1d'))[_0x4349('0x5d')](),this[_0x4349('0x63')]();},0xa),this[_0x4349('0x3c')][_0x4349('0x3f')](_0x2492f2,_0xa4826f);}[_0x4349('0x14')](){const _0xdda9da=this['editor'],_0x590eea=_0xdda9da[_0x4349('0x61')][_0x4349('0x5c')](_0x4349('0x43')),_0x3f1119=_0xdda9da[_0x4349('0x61')][_0x4349('0x5c')](_0x4349('0x69')),_0xf9ef5=_0xdda9da[_0x4349('0x61')]['get']('EditorAnnotations'),_0x290ffa=_0xdda9da[_0x4349('0x61')]['get'](_0x4349('0x65'));_0xdda9da['ui'][_0x4349('0x51')][_0x4349('0xd')](_0x4349('0xb'),_0x4a70d4=>this[_0x4349('0x59')](_0x4a70d4)),_0xf9ef5[_0x4349('0x3e')](()=>{const _0x27a103=[];for(const [_0x405a92,_0x577f5f]of Array['from'](this[_0x4349('0xa')])){const _0x1bf539=_0x405a92[_0x4349('0x47')](),_0x345619=[];for(const _0x39d31b of _0x1bf539){if(!_0x39d31b[_0x4349('0x37')])continue;if(_0x39d31b[_0x4349('0x67')]){_0x345619[_0x4349('0x48')](..._0x39d31b[_0x4349('0x15')]());continue;}const _0x13e7ae=_0x39d31b[_0x4349('0x4b')]();if(_0x345619['length']>0x0){const _0xa76995=_0x345619[0x0][_0x4349('0x10')](_0x13e7ae);if(_0xa76995){_0x345619[0x0]=_0xa76995;continue;}}_0x345619[_0x4349('0x48')](_0x13e7ae);}_0x27a103[_0x4349('0x48')]([_0x577f5f['view'],_0x345619]);}return _0x27a103;}),this[_0x4349('0x4c')](_0x590eea,_0x4349('0x13'),(_0x294ce5,_0x3186e8)=>{this[_0x4349('0x4c')](_0x3186e8,_0x4349('0x33'),(_0x3f1c63,_0x552e74,_0x685a84,_0xbc2255)=>{_0x3186e8['isInContent']&&(null==_0x685a84?(this[_0x4349('0x41')](_0xbc2255[_0x4349('0x4f')]),this['_handleSuggestionControllerDelayed'](_0x3186e8,!0x1)):(this[_0x4349('0x41')](_0x685a84[_0x4349('0x4f')]),null==_0xbc2255&&this['_handleSuggestionControllerDelayed'](_0x3186e8,!0x0)));}),null!==_0x3186e8[_0x4349('0x42')]?this['_updateController'](_0x3186e8[_0x4349('0x4f')]):this[_0x4349('0x4e')](_0x3186e8,!0x1);}),this['listenTo'](_0x590eea,_0x4349('0xe'),(_0x224b23,_0x5a7aec,_0x195fcf)=>{this[_0x4349('0x31')](_0x5a7aec,'change:previous'),this['_handleControllerBuffer'][_0x4349('0x60')](_0x5a7aec),this[_0x4349('0xa')][_0x4349('0x40')](_0x5a7aec)&&this[_0x4349('0x55')](_0x5a7aec),_0x195fcf&&this[_0x4349('0x41')](_0x195fcf[_0x4349('0x4f')]);}),this[_0x4349('0x4c')](_0x590eea,_0x4349('0x1e'),(_0x3bb995,_0x436c6a)=>{this['_updateController'](_0x436c6a);}),this[_0x4349('0x4c')](_0x3f1119,_0x4349('0x1'),()=>{this['_refreshActiveMarkers']();}),this[_0x4349('0x4c')](_0x290ffa,_0x4349('0x2e'),(_0x2c943d,{threadId:_0x1b37b0,isFromAdapter:_0x5cb724})=>{if(_0x5cb724||!_0x590eea[_0x4349('0x6b')](_0x1b37b0))return;const _0x5a0635=_0x590eea[_0x4349('0x32')](_0x1b37b0);this[_0x4349('0xa')][_0x4349('0x5c')](_0x5a0635)['view']['focus']();},{'priority':'lowest'});}[_0x4349('0x63')](){const _0x2b2cae=this['editor'][_0x4349('0x61')][_0x4349('0x5c')]('Annotations'),_0x292287=this[_0x4349('0x53')][_0x4349('0x61')][_0x4349('0x5c')](_0x4349('0x43')),_0x42fa10=Array[_0x4349('0x49')](_0x2b2cae[_0x4349('0x5b')],_0x3eb790=>_0x3eb790[_0x4349('0x25')])[_0x4349('0x1c')](_0x3c6ef9=>this[_0x4349('0x5f')]['has'](_0x3c6ef9)),_0x4c9686=[];for(const _0x45909a of _0x42fa10){const _0x445bdb=this[_0x4349('0x5f')]['get'](_0x45909a)[_0x4349('0x46')][_0x4349('0x47')]();_0x4c9686[_0x4349('0x48')](..._0x445bdb[_0x4349('0x1b')]((_0x882f38,_0x4129bf)=>[..._0x882f38,..._0x4129bf['getMarkerNames']()],[]));}_0x292287['activeMarkers']=_0x4c9686;}[_0x4349('0x59')](_0x40fb13){const _0x1110ae=_0xfa7074(_0x40fb13,_0x15708a),_0x453c24=this['editor'][_0x4349('0x3b')][_0x4349('0x5c')](_0x4349('0xb')),_0xd81691=_0x485b8d(_0x40fb13,'Track\x20changes');_0x1110ae[_0x4349('0x30')]['set']({'tooltip':_0xd81691,'label':_0xd81691,'icon':_0x5b20c2}),_0x1110ae['buttonView'][_0x4349('0x11')](_0x4349('0x57'))['to'](_0x453c24,_0x4349('0x2a')),_0x1110ae[_0x4349('0x30')]['on']('execute',()=>{_0x453c24[_0x4349('0x4d')](),this[_0x4349('0x53')]['editing']['view'][_0x4349('0x26')]();});const _0x2931e1=new _0x28c6fb(),_0x22a29f=[{'type':_0x4349('0x1f'),'model':{'withText':!0x0,'label':_0xd81691,'commandName':_0x4349('0xb')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x485b8d(_0x40fb13,_0x4349('0x3d')),'commandName':_0x4349('0x64')}},{'type':_0x4349('0x8'),'model':{'withText':!0x0,'label':_0x485b8d(_0x40fb13,_0x4349('0x2f')),'commandName':_0x4349('0x2')}},{'type':_0x4349('0x8'),'model':{'withText':!0x0,'label':_0x485b8d(_0x40fb13,_0x4349('0x66')),'commandName':_0x4349('0x24')}},{'type':_0x4349('0x8'),'model':{'withText':!0x0,'label':_0x485b8d(_0x40fb13,_0x4349('0x52')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4d5833 of _0x22a29f){let _0x2ed42d={'type':_0x4349('0x39')};if(_0x4d5833[_0x4349('0x46')]){const _0x18335d=new _0x25f6f1(_0x4d5833[_0x4349('0x46')]),_0x5567a9=this[_0x4349('0x53')]['commands'][_0x4349('0x5c')](_0x18335d[_0x4349('0x9')]);_0x18335d[_0x4349('0x11')](_0x4349('0x57'),'isEnabled')['to'](_0x5567a9,'value',_0x4349('0x58')),_0x2ed42d={'type':_0x4d5833[_0x4349('0x68')],'model':_0x18335d};}_0x2931e1[_0x4349('0xd')](_0x2ed42d);}_0x229d05(_0x1110ae,_0x2931e1);const _0x65cb11=_0x22a29f['filter'](_0x165359=>null!=_0x165359[_0x4349('0x46')])[_0x4349('0x1a')](_0x25ef9e=>this[_0x4349('0x53')][_0x4349('0x3b')][_0x4349('0x5c')](_0x25ef9e[_0x4349('0x46')]['commandName'])),_0x2cfee6=_0x1110ae[_0x4349('0x30')];return _0x2cfee6[_0x4349('0x5a')][_0x4349('0x38')]('isEnabled'),_0x2cfee6['arrowView'][_0x4349('0x38')]('isEnabled'),_0x2cfee6[_0x4349('0x5a')][_0x4349('0x11')](_0x4349('0x58'))['to'](_0x453c24,_0x4349('0x58')),_0x2cfee6[_0x4349('0x6')][_0x4349('0x11')]('isEnabled')[_0x4349('0x34')](_0x65cb11,'isEnabled',(..._0x4cedd0)=>_0x4cedd0[_0x4349('0x56')](_0x3860bd=>_0x3860bd)),_0x1110ae['on'](_0x4349('0x4d'),_0x56dda6=>{this[_0x4349('0x53')][_0x4349('0x4d')](_0x56dda6['source']['commandName']),this[_0x4349('0x53')][_0x4349('0x44')][_0x4349('0xf')][_0x4349('0x26')]();}),_0x1110ae;}[_0x4349('0x3')](_0x31d2ce){const _0x24f2ae=this[_0x4349('0x53')],_0x252438=_0x24f2ae[_0x4349('0x12')],_0x475f7e=_0x24f2ae[_0x4349('0x61')][_0x4349('0x5c')]('Annotations'),_0x1f0322=_0x24f2ae['plugins']['get'](_0x4349('0x65')),_0x43415c=_0x24f2ae[_0x4349('0x61')][_0x4349('0x5c')](_0x4349('0x1d')),_0x5a4dcc=_0x24f2ae[_0x4349('0x61')][_0x4349('0x5c')](_0x262954)['me'],_0x31f3f1=_0x252438[_0x4349('0x5c')](_0x4349('0xb'))[_0x4349('0x23')],{CommentsListView:_0x4d6ab1,CommentThreadInputView:_0xaea491}=_0x24f2ae[_0x4349('0x61')][_0x4349('0x5c')](_0x4349('0x18'));let _0x1469c7,_0x163e55;this['_annotationViews'][_0x4349('0x40')](_0x31d2ce['id'])?(_0x163e55=this[_0x4349('0x45')][_0x4349('0x5c')](_0x31d2ce['id']),_0x1469c7=_0x163e55[_0x4349('0x16')]):(_0x1469c7=new _0x31f3f1(_0x24f2ae['locale'],_0x31d2ce,_0x5a4dcc,{'disableComments':this[_0x4349('0x4a')],'editorConfig':_0x252438[_0x4349('0x5c')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x252438[_0x4349('0x5c')](_0x4349('0x62')),'maxThreadTotalWeight':_0x252438[_0x4349('0x5c')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x252438[_0x4349('0x5c')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x454439(_0x252438[_0x4349('0x5c')](_0x4349('0x2c'))),'CommentView':_0x252438[_0x4349('0x5c')](_0x4349('0xc'))[_0x4349('0x7')],'CommentsListView':_0x4d6ab1,'CommentThreadInputView':_0xaea491}),_0x1469c7[_0x4349('0x2b')]['on']('execute',()=>{_0x24f2ae['editing']['view'][_0x4349('0x26')]();}),_0x1469c7['discardButton']['on'](_0x4349('0x4d'),()=>{_0x24f2ae[_0x4349('0x44')][_0x4349('0xf')][_0x4349('0x26')]();}),_0x163e55=_0x475f7e['createAnnotationView'](this['editor'][_0x4349('0x2c')],_0x1469c7),_0x163e55['bind']('isDirty')['to'](_0x1469c7,_0x4349('0x35')),_0x163e55['bind'](_0x4349('0x4'))['to'](_0x1469c7),_0x163e55[_0x4349('0x11')](_0x4349('0x68'))['to'](_0x1469c7,_0x4349('0x68'),_0x2eefec=>'suggestion-'+_0x2eefec),this[_0x4349('0x45')]['set'](_0x31d2ce['id'],_0x163e55));const _0x4eee8e=_0x1f0322[_0x4349('0x2d')](_0x31d2ce[_0x4349('0x17')],_0x1469c7),_0x21c19f=new _0xa904d4(_0x24f2ae,_0x31d2ce,_0x1469c7,_0x4eee8e),_0x236654=_0x31d2ce[_0x4349('0x47')]()[_0x4349('0x1c')](_0x1fdc47=>_0x1fdc47[_0x4349('0x37')]);_0x1469c7['descriptionParts']=_0x24f2ae[_0x4349('0x61')]['get']('TrackChangesEditing')[_0x4349('0x6a')]['getDescriptions'](_0x236654),this[_0x4349('0xa')][_0x4349('0x3f')](_0x31d2ce,_0x21c19f),this['_viewToController'][_0x4349('0x3f')](_0x1469c7,_0x21c19f);const _0xed67d0=_0x475f7e[_0x4349('0x27')]({'view':_0x163e55,'target':()=>{const _0x3b64a5=[],_0x15fe18=_0x31d2ce['getAllAdjacentSuggestions']()[_0x4349('0x1c')](_0x20a7fe=>_0x20a7fe[_0x4349('0x37')]);for(const _0x26fb29 of _0x15fe18)_0x3b64a5[_0x4349('0x48')](..._0x26fb29[_0x4349('0x19')]());return _0x32a865(_0x24f2ae[_0x4349('0x44')],_0x3b64a5);},'type':()=>'suggestion-'+_0x21c19f[_0x4349('0xf')]['type']});_0x1f0322[_0x4349('0x50')](_0x1469c7,_0xed67d0),_0x475f7e['add'](_0xed67d0),_0x43415c[_0x4349('0x54')](_0xed67d0);}[_0x4349('0x55')](_0x482e74){const _0x11e8c6=this[_0x4349('0x53')][_0x4349('0x61')][_0x4349('0x5c')](_0x4349('0x65')),_0x561c5d=this[_0x4349('0x53')]['plugins'][_0x4349('0x5c')]('Annotations'),_0x2399a4=this[_0x4349('0xa')][_0x4349('0x5c')](_0x482e74),_0x143b55=_0x2399a4[_0x4349('0xf')],_0x402bba=_0x561c5d['getByInnerView'](_0x143b55);_0x11e8c6[_0x4349('0x0')](_0x143b55),_0x402bba&&_0x561c5d[_0x4349('0x5')](_0x402bba),this[_0x4349('0xa')][_0x4349('0x60')](_0x482e74),this[_0x4349('0x5f')]['delete'](_0x143b55),_0x2399a4[_0x4349('0x5e')]();}[_0x4349('0x41')](_0x5ba803){if(!_0x5ba803[_0x4349('0x37')]||!this['_suggestionToController'][_0x4349('0x40')](_0x5ba803))return;const _0xc0c4a5=this['editor'][_0x4349('0x61')]['get'](_0x4349('0x43')),_0x463188=this[_0x4349('0xa')][_0x4349('0x5c')](_0x5ba803),_0xd6998=_0x5ba803[_0x4349('0x47')]();_0x463188['view']['descriptionParts']=_0xc0c4a5[_0x4349('0x6a')][_0x4349('0x29')](_0xd6998);}[_0x4349('0x5e')](){for(const _0x30dbdb of this[_0x4349('0xa')][_0x4349('0x21')]())this[_0x4349('0x55')](_0x30dbdb);for(const _0x1d3e16 of this[_0x4349('0x45')][_0x4349('0x28')]())_0x1d3e16[_0x4349('0x16')][_0x4349('0x5e')]();super[_0x4349('0x5e')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dba=['getRanges','view','plugins','stopListening','_editor','PENDING_ACTION_SUGGESTION','_acceptCommand','isEnabled','canAccept','_discardCommand','change:isDirty','execute','_pendingAction','canDiscard','isDirty','acceptSuggestion','unbind','listenTo','PendingActions','get','canEditAt','commands','model','discardSuggestion','_setPendingAction','bind','remove','destroy','commentThreadController','_removePendingAction'];(function(_0x38cffe,_0x3dba08){const _0x33fd9d=function(_0x20798f){while(--_0x20798f){_0x38cffe['push'](_0x38cffe['shift']());}};_0x33fd9d(++_0x3dba08);}(_0x3dba,0x152));const _0x33fd=function(_0x38cffe,_0x3dba08){_0x38cffe=_0x38cffe-0x0;let _0x33fd9d=_0x3dba[_0x38cffe];return _0x33fd9d;};import{ObservableMixin as _0x4fa69f}from'ckeditor5/src/utils.js';import{getTranslation as _0xa9fd4f}from'../utils/common-translations.js';export default class Xt extends _0x4fa69f(){constructor(_0x748dbf,_0x36ecb9,_0x2afc25,_0x1f0d78){super(),this[_0x33fd('0xe')]=_0x36ecb9,this[_0x33fd('0x17')]=_0x2afc25,this[_0x33fd('0x14')]=_0x1f0d78,this['_editor']=_0x748dbf,this['_acceptCommand']=_0x748dbf[_0x33fd('0xd')][_0x33fd('0xb')](_0x33fd('0x7')),this[_0x33fd('0x1')]=_0x748dbf[_0x33fd('0xd')][_0x33fd('0xb')]('discardSuggestion'),this[_0x33fd('0x17')]['bind'](_0x33fd('0x1d'))['to'](this['_acceptCommand'],this[_0x33fd('0x1')],(_0x1f9fb2,_0x10ff39)=>_0x1f9fb2||_0x10ff39),this[_0x33fd('0x17')][_0x33fd('0x11')]('canAccept')['to'](this[_0x33fd('0x1c')],_0x33fd('0x1d'),_0x45ff92=>_0x45ff92&&this[_0x33fd('0x1a')][_0x33fd('0xe')][_0x33fd('0xc')](_0x36ecb9[_0x33fd('0x16')]())),this['view']['bind'](_0x33fd('0x5'))['to'](this[_0x33fd('0x1')],_0x33fd('0x1d'),_0x242d14=>_0x242d14&&this[_0x33fd('0x1a')][_0x33fd('0xe')][_0x33fd('0xc')](_0x36ecb9[_0x33fd('0x16')]())),this[_0x33fd('0x4')]=null,_0x2afc25[_0x33fd('0x6')]&&this[_0x33fd('0x10')](),this[_0x33fd('0x9')](_0x2afc25,_0x33fd('0x7'),()=>this[_0x33fd('0x7')]()),this['listenTo'](_0x2afc25,'discardSuggestion',()=>this[_0x33fd('0xf')]()),this[_0x33fd('0x9')](_0x2afc25,_0x33fd('0x2'),()=>{_0x2afc25['isDirty']?this[_0x33fd('0x10')]():this[_0x33fd('0x15')]();});}[_0x33fd('0x7')](){this[_0x33fd('0x1c')]['execute'](this['model']['id']);}[_0x33fd('0xf')](){this['_discardCommand'][_0x33fd('0x3')](this[_0x33fd('0xe')]['id']);}[_0x33fd('0x13')](){this[_0x33fd('0x17')][_0x33fd('0x8')](_0x33fd('0x1d')),this[_0x33fd('0x17')][_0x33fd('0x8')](_0x33fd('0x0')),this[_0x33fd('0x17')][_0x33fd('0x8')](_0x33fd('0x5')),this[_0x33fd('0x19')](),this[_0x33fd('0x14')][_0x33fd('0x13')](),this[_0x33fd('0x4')]&&this[_0x33fd('0x15')]();}[_0x33fd('0x10')](){const _0xbb097=_0xa9fd4f(this[_0x33fd('0x1a')]['locale'],_0x33fd('0x1b'));this['_pendingAction']=this[_0x33fd('0x1a')][_0x33fd('0x18')][_0x33fd('0xb')](_0x33fd('0xa'))['add'](_0xbb097);}[_0x33fd('0x15')](){null!==this[_0x33fd('0x4')]&&this['_editor'][_0x33fd('0x18')][_0x33fd('0xb')](_0x33fd('0xa'))[_0x33fd('0x12')](this[_0x33fd('0x4')]),this[_0x33fd('0x4')]=null;}}
23
+ const _0x101b=['canAccept','commands','view','PENDING_ACTION_SUGGESTION','execute','bind','_discardCommand','isDirty','PendingActions','canEditAt','canDiscard','listenTo','locale','destroy','_pendingAction','get','_acceptCommand','acceptSuggestion','remove','_editor','getRanges','commentThreadController','plugins','isEnabled','unbind','model','discardSuggestion','_removePendingAction','change:isDirty'];(function(_0x502911,_0x101b59){const _0x36c98b=function(_0x3be4c6){while(--_0x3be4c6){_0x502911['push'](_0x502911['shift']());}};_0x36c98b(++_0x101b59);}(_0x101b,0x1b5));const _0x36c9=function(_0x502911,_0x101b59){_0x502911=_0x502911-0x0;let _0x36c98b=_0x101b[_0x502911];return _0x36c98b;};import{ObservableMixin as _0x164d81}from'ckeditor5/src/utils.js';import{getTranslation as _0x549f75}from'../utils/common-translations.js';export default class Xt extends _0x164d81(){constructor(_0x5382d2,_0x22f65c,_0x1d3525,_0x27a4bf){super(),this[_0x36c9('0x17')]=_0x22f65c,this[_0x36c9('0x0')]=_0x1d3525,this[_0x36c9('0x13')]=_0x27a4bf,this[_0x36c9('0x11')]=_0x5382d2,this['_acceptCommand']=_0x5382d2[_0x36c9('0x1c')][_0x36c9('0xd')](_0x36c9('0xf')),this['_discardCommand']=_0x5382d2[_0x36c9('0x1c')][_0x36c9('0xd')](_0x36c9('0x18')),this[_0x36c9('0x0')][_0x36c9('0x3')]('isEnabled')['to'](this[_0x36c9('0xe')],this['_discardCommand'],(_0x250f41,_0x119206)=>_0x250f41||_0x119206),this[_0x36c9('0x0')][_0x36c9('0x3')](_0x36c9('0x1b'))['to'](this[_0x36c9('0xe')],_0x36c9('0x15'),_0x5dd927=>_0x5dd927&&this[_0x36c9('0x11')][_0x36c9('0x17')][_0x36c9('0x7')](_0x22f65c[_0x36c9('0x12')]())),this[_0x36c9('0x0')]['bind']('canDiscard')['to'](this[_0x36c9('0x4')],'isEnabled',_0x3bd2d5=>_0x3bd2d5&&this[_0x36c9('0x11')][_0x36c9('0x17')][_0x36c9('0x7')](_0x22f65c[_0x36c9('0x12')]())),this[_0x36c9('0xc')]=null,_0x1d3525[_0x36c9('0x5')]&&this['_setPendingAction'](),this[_0x36c9('0x9')](_0x1d3525,'acceptSuggestion',()=>this[_0x36c9('0xf')]()),this[_0x36c9('0x9')](_0x1d3525,_0x36c9('0x18'),()=>this[_0x36c9('0x18')]()),this['listenTo'](_0x1d3525,_0x36c9('0x1a'),()=>{_0x1d3525[_0x36c9('0x5')]?this['_setPendingAction']():this['_removePendingAction']();});}[_0x36c9('0xf')](){this[_0x36c9('0xe')]['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand'][_0x36c9('0x2')](this[_0x36c9('0x17')]['id']);}[_0x36c9('0xb')](){this[_0x36c9('0x0')][_0x36c9('0x16')](_0x36c9('0x15')),this['view'][_0x36c9('0x16')](_0x36c9('0x1b')),this['view'][_0x36c9('0x16')](_0x36c9('0x8')),this['stopListening'](),this[_0x36c9('0x13')][_0x36c9('0xb')](),this[_0x36c9('0xc')]&&this[_0x36c9('0x19')]();}['_setPendingAction'](){const _0x3d5970=_0x549f75(this[_0x36c9('0x11')][_0x36c9('0xa')],_0x36c9('0x1'));this[_0x36c9('0xc')]=this['_editor'][_0x36c9('0x14')][_0x36c9('0xd')](_0x36c9('0x6'))['add'](_0x3d5970);}[_0x36c9('0x19')](){null!==this[_0x36c9('0xc')]&&this[_0x36c9('0x11')][_0x36c9('0x14')][_0x36c9('0xd')](_0x36c9('0x6'))[_0x36c9('0x10')](this[_0x36c9('0xc')]),this['_pendingAction']=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3208=['CommentView','commentInputView','_config','editor','cancel','descriptionParts','element','fire','showInput','bind','addComment','_createCommentThreadInputView','canDiscard','value','delegate','commentsListView','_model','setData','assign','locale','destroy','length','commentThreadInputView','_localUser','focus','hasDirtyComment','set','updateComment','isActive','authoredAt','isDirty','isReadOnly','commentThread','_createCommentViews'];(function(_0x23d82c,_0x3208dc){const _0x2fe47f=function(_0x10c3e4){while(--_0x10c3e4){_0x23d82c['push'](_0x23d82c['shift']());}};_0x2fe47f(++_0x3208dc);}(_0x3208,0xfa));const _0x2fe4=function(_0x23d82c,_0x3208dc){_0x23d82c=_0x23d82c-0x0;let _0x2fe47f=_0x3208[_0x23d82c];return _0x2fe47f;};import{View as _0x5c8b38}from'ckeditor5/src/ui.js';export default class es extends _0x5c8b38{constructor(_0x1937f3,_0x59036b,_0x56d0a7,_0x5f37dd){super(_0x1937f3),this['commentsListView']=null,this[_0x2fe4('0xa')]=null,this[_0x2fe4('0xe')](_0x2fe4('0x10'),!0x1),this['set'](_0x2fe4('0x11'),_0x59036b['authoredAt']),this[_0x2fe4('0x1f')]('authoredAt')['to'](_0x59036b),this[_0x2fe4('0xe')](_0x2fe4('0x1b'),[]),this[_0x2fe4('0xe')](_0x2fe4('0x12'),!0x1),this[_0x2fe4('0xe')]('isEnabled',!0x1),this[_0x2fe4('0xe')]('canAccept',!0x1),this[_0x2fe4('0xe')](_0x2fe4('0x0'),!0x1),this[_0x2fe4('0x4')]=_0x59036b,this[_0x2fe4('0xb')]=_0x56d0a7,this[_0x2fe4('0x18')]=_0x5f37dd,_0x5f37dd['disableComments']?this[_0x2fe4('0xe')](_0x2fe4('0x9'),0x1):this[_0x2fe4('0x15')]();}[_0x2fe4('0xc')](){this[_0x2fe4('0x1c')]['focus']();}[_0x2fe4('0x8')](){this[_0x2fe4('0x3')]&&this[_0x2fe4('0x3')][_0x2fe4('0x8')](),this[_0x2fe4('0xa')]&&this[_0x2fe4('0xa')][_0x2fe4('0x8')](),super[_0x2fe4('0x8')]();}[_0x2fe4('0x15')](){const {CommentsListView:_0x5cdd92}=this[_0x2fe4('0x18')];this[_0x2fe4('0x3')]=new _0x5cdd92(this[_0x2fe4('0x7')],this['_model'][_0x2fe4('0x14')],Object[_0x2fe4('0x6')]({'CommentView':this[_0x2fe4('0x18')][_0x2fe4('0x16')]},this[_0x2fe4('0x18')])),this['commentsListView'][_0x2fe4('0x2')]('removeComment')['to'](this),this['commentsListView'][_0x2fe4('0x2')](_0x2fe4('0xf'))['to'](this),this[_0x2fe4('0x3')][_0x2fe4('0x1f')]('isActive')['to'](this),this[_0x2fe4('0xe')](_0x2fe4('0x9'),this[_0x2fe4('0x3')][_0x2fe4('0x9')]+0x1),this[_0x2fe4('0x1f')](_0x2fe4('0x9'))['to'](this[_0x2fe4('0x3')],'length',_0x28ae14=>_0x28ae14+0x1),this['commentThreadInputView']=this[_0x2fe4('0x21')](),this['on']('removeComment',()=>this[_0x2fe4('0xc')]()),this[_0x2fe4('0x1f')](_0x2fe4('0x12'))['to'](this[_0x2fe4('0x3')],_0x2fe4('0xd'),this[_0x2fe4('0xa')][_0x2fe4('0x17')],_0x2fe4('0x1'),(_0x1b7acb,_0x550c44)=>_0x1b7acb||!!_0x550c44);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1806b1}=this[_0x2fe4('0x18')],_0x3a57f6=new _0x1806b1(this[_0x2fe4('0x7')],this['_localUser'],this['_config']['editorConfig']),_0x33d923=_0x3a57f6[_0x2fe4('0x17')];return _0x3a57f6[_0x2fe4('0x1f')](_0x2fe4('0x1e'))['to'](this,_0x2fe4('0x10'),this[_0x2fe4('0x4')][_0x2fe4('0x14')],_0x2fe4('0x13'),_0x33d923,_0x2fe4('0x1'),(_0x59546b,_0x275cfb,_0x3b9bcf)=>!!_0x3b9bcf||_0x59546b&&!_0x275cfb),_0x33d923['on']('submit',(_0x4bfa5f,_0x3b8828)=>{this[_0x2fe4('0x1d')](_0x2fe4('0x20'),_0x3b8828),_0x33d923[_0x2fe4('0x19')][_0x2fe4('0x5')]('');}),_0x33d923['on'](_0x2fe4('0x1a'),()=>this[_0x2fe4('0xc')]()),_0x33d923[_0x2fe4('0x1f')]('disabledSubmit')['to'](this[_0x2fe4('0x4')][_0x2fe4('0x14')],_0x2fe4('0x13')),_0x3a57f6;}}
23
+ const _0xb595=['commentInputView','isActive','isEnabled','_localUser','focus','delegate','removeComment','setData','isReadOnly','_config','updateComment','length','canAccept','cancel','showInput','_createCommentThreadInputView','assign','bind','hasDirtyComment','commentThread','CommentView','_model','set','locale','commentsListView','destroy','editorConfig','element','commentThreadInputView','canDiscard','disabledSubmit','addComment','authoredAt','value','isDirty','_createCommentViews','descriptionParts'];(function(_0x4ca2a1,_0xb595e7){const _0x319fe1=function(_0x377951){while(--_0x377951){_0x4ca2a1['push'](_0x4ca2a1['shift']());}};_0x319fe1(++_0xb595e7);}(_0xb595,0x1a6));const _0x319f=function(_0x4ca2a1,_0xb595e7){_0x4ca2a1=_0x4ca2a1-0x0;let _0x319fe1=_0xb595[_0x4ca2a1];return _0x319fe1;};import{View as _0x5b389c}from'ckeditor5/src/ui.js';export default class es extends _0x5b389c{constructor(_0x521304,_0x55c474,_0x402d4b,_0x39bb11){super(_0x521304),this[_0x319f('0x9')]=null,this[_0x319f('0xd')]=null,this[_0x319f('0x7')]('isActive',!0x1),this[_0x319f('0x7')](_0x319f('0x11'),_0x55c474[_0x319f('0x11')]),this[_0x319f('0x2')](_0x319f('0x11'))['to'](_0x55c474),this['set'](_0x319f('0x15'),[]),this[_0x319f('0x7')](_0x319f('0x13'),!0x1),this[_0x319f('0x7')](_0x319f('0x18'),!0x1),this['set'](_0x319f('0x22'),!0x1),this['set'](_0x319f('0xe'),!0x1),this[_0x319f('0x6')]=_0x55c474,this[_0x319f('0x19')]=_0x402d4b,this[_0x319f('0x1f')]=_0x39bb11,_0x39bb11['disableComments']?this[_0x319f('0x7')](_0x319f('0x21'),0x1):this[_0x319f('0x14')]();}[_0x319f('0x1a')](){this[_0x319f('0xc')][_0x319f('0x1a')]();}[_0x319f('0xa')](){this[_0x319f('0x9')]&&this[_0x319f('0x9')]['destroy'](),this[_0x319f('0xd')]&&this[_0x319f('0xd')][_0x319f('0xa')](),super[_0x319f('0xa')]();}[_0x319f('0x14')](){const {CommentsListView:_0x53ea5b}=this[_0x319f('0x1f')];this[_0x319f('0x9')]=new _0x53ea5b(this[_0x319f('0x8')],this['_model'][_0x319f('0x4')],Object[_0x319f('0x1')]({'CommentView':this['_config'][_0x319f('0x5')]},this[_0x319f('0x1f')])),this[_0x319f('0x9')][_0x319f('0x1b')]('removeComment')['to'](this),this['commentsListView']['delegate'](_0x319f('0x20'))['to'](this),this[_0x319f('0x9')][_0x319f('0x2')](_0x319f('0x17'))['to'](this),this[_0x319f('0x7')](_0x319f('0x21'),this[_0x319f('0x9')]['length']+0x1),this[_0x319f('0x2')](_0x319f('0x21'))['to'](this[_0x319f('0x9')],_0x319f('0x21'),_0x301360=>_0x301360+0x1),this[_0x319f('0xd')]=this[_0x319f('0x0')](),this['on'](_0x319f('0x1c'),()=>this['focus']()),this['bind'](_0x319f('0x13'))['to'](this[_0x319f('0x9')],_0x319f('0x3'),this[_0x319f('0xd')][_0x319f('0x16')],'value',(_0x457856,_0x9f3db0)=>_0x457856||!!_0x9f3db0);}[_0x319f('0x0')](){const {CommentThreadInputView:_0x4f36ff}=this[_0x319f('0x1f')],_0x26a917=new _0x4f36ff(this[_0x319f('0x8')],this[_0x319f('0x19')],this['_config'][_0x319f('0xb')]),_0x477755=_0x26a917[_0x319f('0x16')];return _0x26a917['bind'](_0x319f('0x24'))['to'](this,_0x319f('0x17'),this[_0x319f('0x6')][_0x319f('0x4')],'isReadOnly',_0x477755,_0x319f('0x12'),(_0x4ace02,_0x3163f8,_0x118219)=>!!_0x118219||_0x4ace02&&!_0x3163f8),_0x477755['on']('submit',(_0x9b8576,_0x5d83be)=>{this['fire'](_0x319f('0x10'),_0x5d83be),_0x477755['editor'][_0x319f('0x1d')]('');}),_0x477755['on'](_0x319f('0x23'),()=>this['focus']()),_0x477755[_0x319f('0x2')](_0x319f('0xf'))['to'](this['_model']['commentThread'],_0x319f('0x1e')),_0x26a917;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b5b=['innerText','join','bind','title','setTemplate','_model','EXTERNAL_AVATAR','ck-suggestion','commentThreadInputView','querySelector','<p>','map','canAccept','innerHTML','discardSuggestion','description','discardButton','ck-comment__external','cancel','split','locale','userView','element','attributes','_descriptionElement','descriptionParts','ck-suggestion-wrapper','color','</p>','isEnabled','type','span','_createButton','EXTERNAL_SUGGESTION','author','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','source','Accept\x20suggestion','ck-suggestion--discard','fire','name','createElement','getUserViewNotificationText','ck-annotation__main','ck-suggestion__user','authoredAt','push','commentsListView','ck-suggestion-wrapper--active','isExternal','ck-comment__info-time','formatDateTime','commentThread','Discard\x20suggestion','set','ck-suggestion-','ck-annotation__content-wrapper','execute','ck-suggestion__main','ck-suggestion__info','delegate','ck-suggestion--disabled-comments','editorReady','creator','importWord','ck-suggestion__info-name','getExternalSuggestionNote','ck-suggestion__actions','time','isActive','@external','extendTemplate','editorDestroyed','ck-annotation__user','getTemplate','check','_config','\x22\x20title=\x22','bindTemplate','ck-annotation__info-time','div','render','children'];(function(_0xf2ba9a,_0x3b5b7a){const _0x227b63=function(_0x4a233b){while(--_0x4a233b){_0xf2ba9a['push'](_0xf2ba9a['shift']());}};_0x227b63(++_0x3b5b7a);}(_0x3b5b,0xa3));const _0x227b=function(_0xf2ba9a,_0x3b5b7a){_0xf2ba9a=_0xf2ba9a-0x0;let _0x227b63=_0x3b5b[_0xf2ba9a];return _0x227b63;};import{getTranslation as _0x116908}from'../../utils/common-translations.js';import{default as _0x139c05}from'./basesuggestionthreadview.js';import{ButtonView as _0xf263e8}from'ckeditor5/src/ui.js';import{icons as _0x28b991}from'ckeditor5/src/core.js';import{trimHtml as _0x44ffab,UserView as _0x7e03d8}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x139c05{constructor(_0x3a32e3,_0x5c9b40,_0x53ad2e,_0x2aeb63){super(_0x3a32e3,_0x5c9b40,_0x53ad2e,_0x2aeb63),this['set'](_0x227b('0x21'),''),this[_0x227b('0x5')](_0x227b('0x21'))['to'](this,_0x227b('0x1c'),_0x2c5066=>_0x2c5066&&_0x2c5066[0x0]?_0x2c5066[0x0][_0x227b('0x21')]:''),this[_0x227b('0x5')]('description')['to'](this,_0x227b('0x1c'),this,_0x227b('0x48'),(_0xd34fb8,_0x232815)=>{let _0x14d700='';for(const _0x55d013 of _0xd34fb8)_0x14d700+=_0x227b('0xd')+ds(_0x55d013['content'],_0x55d013[_0x227b('0x1e')])+_0x227b('0x1f');return _0x232815?_0x14d700:_0x44ffab(_0x14d700,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this[_0x227b('0x23')](_0x116908(_0x3a32e3,_0x227b('0x28')),_0x28b991[_0x227b('0x4e')],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton'][_0x227b('0x5')](_0x227b('0x20'))['to'](this,_0x227b('0xf')),this['discardButton']=this[_0x227b('0x23')](_0x116908(_0x3a32e3,_0x227b('0x38')),_0x28b991[_0x227b('0x15')],_0x227b('0x29'),_0x227b('0x11'),'sw'),this[_0x227b('0x13')]['bind'](_0x227b('0x20'))['to'](this,'canDiscard'),this[_0x227b('0x18')]=new _0x7e03d8(_0x3a32e3,this[_0x227b('0x8')][_0x227b('0x25')],this[_0x227b('0x2d')]()),this['userView'][_0x227b('0x4a')]({'attributes':{'class':[_0x227b('0x2f'),_0x227b('0x4c')]}}),this[_0x227b('0x7')](this['getTemplate']());}[_0x227b('0x4d')](){const _0x5a9f33=this[_0x227b('0x51')],_0x1b87d0=[{'tag':_0x227b('0x0'),'attributes':{'class':[_0x227b('0x3e'),'ck-annotation__info']},'children':[{'tag':_0x227b('0x22'),'children':[{'text':this['userView'][_0x227b('0x2b')]}],'attributes':{'class':[_0x227b('0x44'),'ck-annotation__info-name']}},{'tag':_0x227b('0x47'),'attributes':{'datetime':_0x5a9f33['to'](_0x227b('0x30')),'class':[_0x227b('0x35'),_0x227b('0x52')]},'children':[{'text':_0x5a9f33['to'](_0x227b('0x30'),_0x3615dc=>this[_0x227b('0x4f')][_0x227b('0x36')](_0x3615dc))}]}]},{'tag':_0x227b('0x0'),'attributes':{'class':[_0x227b('0x46'),'ck-annotation__actions']},'children':[this['acceptButton'],this[_0x227b('0x13')]]},{'tag':'div','attributes':{'class':[_0x227b('0x3b')]}}];this[_0x227b('0x8')]['isExternal']&&_0x1b87d0['push']({'tag':'div','attributes':{'class':[_0x227b('0x14')]},'children':[{'text':this[_0x227b('0x45')]()}]});const _0x4fcbed={'tag':_0x227b('0x0'),'attributes':{'class':[_0x227b('0x1d'),_0x5a9f33['if'](_0x227b('0x48'),_0x227b('0x33')),_0x5a9f33['to']('type',_0x310759=>_0x227b('0x3a')+_0x310759),this[_0x227b('0x4f')]['disableComments']&&_0x227b('0x40')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x227b('0x8')][_0x227b('0x37')]['id'],'data-author-id':this[_0x227b('0x8')]['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x227b('0xa'),'ck-annotation']},'children':[this[_0x227b('0x18')],{'tag':'div','attributes':{'class':[_0x227b('0x3d'),_0x227b('0x2e')]},'children':_0x1b87d0}]}]};return this[_0x227b('0x32')]&&this[_0x227b('0xb')]&&(_0x4fcbed[_0x227b('0x2')][_0x227b('0x31')](this[_0x227b('0x32')],this[_0x227b('0xb')]),this['commentsListView']['delegate'](_0x227b('0x41'))['to'](this),this[_0x227b('0x32')]['delegate'](_0x227b('0x4b'))['to'](this),this[_0x227b('0xb')][_0x227b('0x3f')]('editorReady')['to'](this),this['commentThreadInputView']['delegate'](_0x227b('0x4b'))['to'](this)),_0x4fcbed;}[_0x227b('0x1')](){super[_0x227b('0x1')](),this[_0x227b('0x1b')]=this[_0x227b('0x19')][_0x227b('0xc')]('.ck-annotation__content-wrapper'),this[_0x227b('0x1b')][_0x227b('0x10')]=this[_0x227b('0x12')],this['on']('change:description',(_0x5ad358,_0x415a7e,_0x220e6d)=>{this[_0x227b('0x1b')][_0x227b('0x10')]=_0x220e6d;});}[_0x227b('0x23')](_0x3353d7,_0x1f8340,_0x4875e1,_0xf8892f,_0x571a3c){const _0x4a5053=new _0xf263e8(this[_0x227b('0x17')]);return _0x4a5053[_0x227b('0x39')]({'label':_0x3353d7,'icon':_0x1f8340,'tooltip':!0x0,'tooltipPosition':_0x571a3c}),_0x4a5053[_0x227b('0x4a')]({'attributes':{'class':_0x4875e1}}),_0x4a5053['on'](_0x227b('0x3c'),()=>{this[_0x227b('0x2a')](_0xf8892f,this['_model']['id']);}),_0x4a5053;}[_0x227b('0x45')](){return _0x227b('0x43')===this[_0x227b('0x8')][_0x227b('0x1a')][_0x227b('0x49')]['source']?_0x116908(this[_0x227b('0x17')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x116908(this[_0x227b('0x17')],_0x227b('0x24'));}['getUserViewNotificationText'](){return this[_0x227b('0x8')][_0x227b('0x34')]?_0x227b('0x43')===this['_model'][_0x227b('0x1a')][_0x227b('0x49')][_0x227b('0x27')]?_0x116908(this[_0x227b('0x17')],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model'][_0x227b('0x42')][_0x227b('0x2b')]):_0x116908(this[_0x227b('0x17')],_0x227b('0x9'),this[_0x227b('0x8')][_0x227b('0x42')][_0x227b('0x2b')]):null;}}function ds(_0x3fdf68,_0x5ded5f){let _0x1e1f6b='';return _0x1e1f6b+=_0x3fdf68[_0x227b('0x16')]('*')[_0x227b('0xe')]((_0x49f335,_0x44fa28)=>_0x44fa28%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x49f335)+'</span>':us(_0x49f335))[_0x227b('0x4')](''),_0x5ded5f&&(_0x1e1f6b+=_0x227b('0x26')+_0x5ded5f['value']+_0x227b('0x50')+_0x5ded5f[_0x227b('0x6')]+'\x22></span>'),_0x1e1f6b;}function us(_0x11f6b2){const _0x3aa6c8=document[_0x227b('0x2c')](_0x227b('0x22'));return _0x3aa6c8[_0x227b('0x3')]=_0x11f6b2,_0x3aa6c8[_0x227b('0x10')];}
23
+ const _0x4f65=['ck-comment__external','extendTemplate','getTemplate','isActive','name','importWord','<p>','delegate','ck-suggestion__info','source','time','disableComments','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','innerText','cancel','ck-suggestion','getUserViewNotificationText','setTemplate','split','acceptButton','\x22></span>','editorReady','authoredAt','discardSuggestion','author','_createButton','ck-suggestion--accept','acceptSuggestion','ck-suggestion--disabled-comments','description','type','Discard\x20suggestion','render','isEnabled','commentsListView','EXTERNAL_IMPORT_WORD_SUGGESTION','</p>','canAccept','innerHTML','isExternal','ck-suggestion-wrapper','bind','_config','</span>','ck-annotation__info-name','@external','value','execute','EXTERNAL_IMPORT_WORD_AVATAR','commentThread','canDiscard','ck-suggestion-wrapper--active','editorDestroyed','_model','join','div','ck-suggestion__main','map','check','change:description','querySelector','color','creator','userView','locale','attributes','ck-annotation','getExternalSuggestionNote','ck-annotation__actions','createElement','bindTemplate','title','discardButton','EXTERNAL_AVATAR','ck-suggestion__actions','ck-suggestion--discard','span','ck-suggestion__info-name','_descriptionElement','descriptionParts','.ck-annotation__content-wrapper','commentThreadInputView','formatDateTime','set','push','ck-suggestion__user'];(function(_0x29e92d,_0x4f65c4){const _0x22402b=function(_0x549fca){while(--_0x549fca){_0x29e92d['push'](_0x29e92d['shift']());}};_0x22402b(++_0x4f65c4);}(_0x4f65,0x114));const _0x2240=function(_0x29e92d,_0x4f65c4){_0x29e92d=_0x29e92d-0x0;let _0x22402b=_0x4f65[_0x29e92d];return _0x22402b;};import{getTranslation as _0x52a094}from'../../utils/common-translations.js';import{default as _0x441901}from'./basesuggestionthreadview.js';import{ButtonView as _0x27e44c}from'ckeditor5/src/ui.js';import{icons as _0x561bae}from'ckeditor5/src/core.js';import{trimHtml as _0x5bb8f6,UserView as _0x54af83}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x441901{constructor(_0x24188a,_0x4c0ed1,_0x470dfa,_0x5d387c){super(_0x24188a,_0x4c0ed1,_0x470dfa,_0x5d387c),this[_0x2240('0x41')]('type',''),this[_0x2240('0x17')](_0x2240('0xc'))['to'](this,_0x2240('0x3d'),_0x83e7a9=>_0x83e7a9&&_0x83e7a9[0x0]?_0x83e7a9[0x0][_0x2240('0xc')]:''),this[_0x2240('0x17')](_0x2240('0xb'))['to'](this,_0x2240('0x3d'),this,_0x2240('0x47'),(_0x1e6324,_0x18b166)=>{let _0x22ceb6='';for(const _0x15a54b of _0x1e6324)_0x22ceb6+=_0x2240('0x4a')+ds(_0x15a54b['content'],_0x15a54b[_0x2240('0x2b')])+_0x2240('0x12');return _0x18b166?_0x22ceb6:_0x5bb8f6(_0x22ceb6,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x2240('0x1')]=this[_0x2240('0x7')](_0x52a094(_0x24188a,'Accept\x20suggestion'),_0x561bae[_0x2240('0x28')],_0x2240('0x8'),_0x2240('0x9'),'sw'),this['acceptButton'][_0x2240('0x17')]('isEnabled')['to'](this,_0x2240('0x13')),this['discardButton']=this['_createButton'](_0x52a094(_0x24188a,_0x2240('0xd')),_0x561bae[_0x2240('0x52')],_0x2240('0x39'),_0x2240('0x5'),'sw'),this[_0x2240('0x36')]['bind'](_0x2240('0xf'))['to'](this,_0x2240('0x20')),this[_0x2240('0x2d')]=new _0x54af83(_0x24188a,this['_model'][_0x2240('0x6')],this[_0x2240('0x54')]()),this['userView'][_0x2240('0x45')]({'attributes':{'class':[_0x2240('0x43'),'ck-annotation__user']}}),this[_0x2240('0x55')](this['getTemplate']());}[_0x2240('0x46')](){const _0x391cbd=this[_0x2240('0x34')],_0x54aad5=[{'tag':_0x2240('0x25'),'attributes':{'class':[_0x2240('0x4c'),'ck-annotation__info']},'children':[{'tag':_0x2240('0x3a'),'children':[{'text':this[_0x2240('0x2d')][_0x2240('0x48')]}],'attributes':{'class':[_0x2240('0x3b'),_0x2240('0x1a')]}},{'tag':_0x2240('0x4e'),'attributes':{'datetime':_0x391cbd['to'](_0x2240('0x4')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x391cbd['to']('authoredAt',_0x55ea70=>this[_0x2240('0x18')][_0x2240('0x40')](_0x55ea70))}]}]},{'tag':_0x2240('0x25'),'attributes':{'class':[_0x2240('0x38'),_0x2240('0x32')]},'children':[this['acceptButton'],this[_0x2240('0x36')]]},{'tag':_0x2240('0x25'),'attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x54aad5[_0x2240('0x42')]({'tag':_0x2240('0x25'),'attributes':{'class':[_0x2240('0x44')]},'children':[{'text':this[_0x2240('0x31')]()}]});const _0x87409d={'tag':'div','attributes':{'class':[_0x2240('0x16'),_0x391cbd['if'](_0x2240('0x47'),_0x2240('0x21')),_0x391cbd['to'](_0x2240('0xc'),_0x49437d=>'ck-suggestion-'+_0x49437d),this['_config'][_0x2240('0x4f')]&&_0x2240('0xa')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model'][_0x2240('0x1f')]['id'],'data-author-id':this[_0x2240('0x23')][_0x2240('0x6')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2240('0x25'),'attributes':{'class':[_0x2240('0x53'),_0x2240('0x30')]},'children':[this[_0x2240('0x2d')],{'tag':_0x2240('0x25'),'attributes':{'class':[_0x2240('0x26'),'ck-annotation__main']},'children':_0x54aad5}]}]};return this[_0x2240('0x10')]&&this['commentThreadInputView']&&(_0x87409d['children'][_0x2240('0x42')](this[_0x2240('0x10')],this['commentThreadInputView']),this[_0x2240('0x10')]['delegate'](_0x2240('0x3'))['to'](this),this[_0x2240('0x10')][_0x2240('0x4b')]('editorDestroyed')['to'](this),this[_0x2240('0x3f')][_0x2240('0x4b')](_0x2240('0x3'))['to'](this),this[_0x2240('0x3f')][_0x2240('0x4b')](_0x2240('0x22'))['to'](this)),_0x87409d;}['render'](){super[_0x2240('0xe')](),this[_0x2240('0x3c')]=this['element'][_0x2240('0x2a')](_0x2240('0x3e')),this[_0x2240('0x3c')]['innerHTML']=this[_0x2240('0xb')],this['on'](_0x2240('0x29'),(_0x117bde,_0x2f9887,_0x5dffa6)=>{this[_0x2240('0x3c')]['innerHTML']=_0x5dffa6;});}[_0x2240('0x7')](_0x23328e,_0x180edf,_0x42a708,_0x1e20ee,_0x5b07f4){const _0x22af18=new _0x27e44c(this[_0x2240('0x2e')]);return _0x22af18['set']({'label':_0x23328e,'icon':_0x180edf,'tooltip':!0x0,'tooltipPosition':_0x5b07f4}),_0x22af18['extendTemplate']({'attributes':{'class':_0x42a708}}),_0x22af18['on'](_0x2240('0x1d'),()=>{this['fire'](_0x1e20ee,this['_model']['id']);}),_0x22af18;}[_0x2240('0x31')](){return'importWord'===this[_0x2240('0x23')]['attributes'][_0x2240('0x1b')][_0x2240('0x4d')]?_0x52a094(this[_0x2240('0x2e')],_0x2240('0x11')):_0x52a094(this['locale'],'EXTERNAL_SUGGESTION');}[_0x2240('0x54')](){return this[_0x2240('0x23')][_0x2240('0x15')]?_0x2240('0x49')===this[_0x2240('0x23')][_0x2240('0x2f')][_0x2240('0x1b')]['source']?_0x52a094(this[_0x2240('0x2e')],_0x2240('0x1e'),this[_0x2240('0x23')][_0x2240('0x2c')][_0x2240('0x48')]):_0x52a094(this[_0x2240('0x2e')],_0x2240('0x37'),this[_0x2240('0x23')][_0x2240('0x2c')][_0x2240('0x48')]):null;}}function ds(_0x33687d,_0x30f2c8){let _0x38eced='';return _0x38eced+=_0x33687d[_0x2240('0x0')]('*')[_0x2240('0x27')]((_0xfe0028,_0x571b8c)=>_0x571b8c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xfe0028)+_0x2240('0x19'):us(_0xfe0028))[_0x2240('0x24')](''),_0x30f2c8&&(_0x38eced+=_0x2240('0x50')+_0x30f2c8[_0x2240('0x1c')]+'\x22\x20title=\x22'+_0x30f2c8[_0x2240('0x35')]+_0x2240('0x2')),_0x38eced;}function us(_0x3ea264){const _0x299f47=document[_0x2240('0x33')](_0x2240('0x3a'));return _0x299f47[_0x2240('0x51')]=_0x3ea264,_0x299f47[_0x2240('0x14')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x24d09a,_0x150244,_0x1a1dd1){const t=_0x24d09a['t'];switch(_0x150244){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',_0x1a1dd1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1a1dd1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1a1dd1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1a1dd1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1a1dd1);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',_0x1a1dd1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1a1dd1);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',_0x1a1dd1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1a1dd1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1a1dd1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1a1dd1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1a1dd1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1a1dd1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1a1dd1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1a1dd1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1a1dd1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1a1dd1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1a1dd1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1a1dd1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1a1dd1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1a1dd1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1a1dd1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1a1dd1);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'},_0x1a1dd1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1a1dd1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1a1dd1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1a1dd1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1a1dd1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1a1dd1);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'},_0x1a1dd1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1a1dd1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1a1dd1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1a1dd1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1a1dd1);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'},_0x1a1dd1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1a1dd1);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'},_0x1a1dd1);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'},_0x1a1dd1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1a1dd1);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'},_0x1a1dd1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1a1dd1);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'},_0x1a1dd1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1a1dd1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1a1dd1);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'},_0x1a1dd1);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'},_0x1a1dd1);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 _0x150244;}}
23
+ export function getTranslation(_0x18204c,_0x52c116,_0x56a6b3){const t=_0x18204c['t'];switch(_0x52c116){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',_0x56a6b3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x56a6b3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x56a6b3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x56a6b3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x56a6b3);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',_0x56a6b3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x56a6b3);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',_0x56a6b3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x56a6b3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x56a6b3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x56a6b3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x56a6b3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x56a6b3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x56a6b3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x56a6b3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x56a6b3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x56a6b3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x56a6b3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x56a6b3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x56a6b3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x56a6b3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x56a6b3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x56a6b3);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'},_0x56a6b3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x56a6b3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x56a6b3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x56a6b3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x56a6b3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x56a6b3);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'},_0x56a6b3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x56a6b3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x56a6b3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x56a6b3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x56a6b3);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'},_0x56a6b3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x56a6b3);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'},_0x56a6b3);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'},_0x56a6b3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x56a6b3);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'},_0x56a6b3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x56a6b3);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'},_0x56a6b3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x56a6b3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x56a6b3);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'},_0x56a6b3);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'},_0x56a6b3);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 _0x52c116;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10f4=['color','isMultiRange','isInContent','start','isIntersecting','createRange','add','\x20[color\x20','replace','from','createPositionBefore','getRanges','next','content','createPositionAfter','execute','sort','length','isTouching','end','push','isArray','type','deletion','join','map'];(function(_0x7a28e2,_0x10f4e9){const _0x16edab=function(_0x41f829){while(--_0x41f829){_0x7a28e2['push'](_0x7a28e2['shift']());}};_0x16edab(++_0x10f4e9);}(_0x10f4,0x84));const _0x16ed=function(_0x7a28e2,_0x10f4e9){_0x7a28e2=_0x7a28e2-0x0;let _0x16edab=_0x10f4[_0x7a28e2];return _0x16edab;};export function normalizeDescription(_0x13b42c){return Array[_0x16ed('0x13')](_0x13b42c)||(_0x13b42c=[_0x13b42c]),_0x13b42c[_0x16ed('0x17')](_0x4f3534=>{const _0xb514d1=_0x4f3534[_0x16ed('0xb')][_0x16ed('0x6')](/\*/g,''),_0x3e8388=_0x4f3534[_0x16ed('0x18')]?_0x16ed('0x5')+_0x4f3534[_0x16ed('0x18')]['value']+']':'';return'['+_0x4f3534[_0x16ed('0x14')]+']\x20'+_0xb514d1+_0x3e8388;})[_0x16ed('0x16')](';\x20');}export function sortSuggestions(_0x108659){return _0x108659[_0x16ed('0xe')]((_0x36c5cf,_0x246472)=>_0x16ed('0x15')==_0x36c5cf[_0x16ed('0x14')]&&_0x16ed('0x15')!=_0x246472[_0x16ed('0x14')]?-0x1:_0x16ed('0x15')!=_0x36c5cf[_0x16ed('0x14')]&&_0x16ed('0x15')==_0x246472[_0x16ed('0x14')]?0x1:0x0);}export function getSelectedSuggestions(_0x52f901,_0x3d9cb5){const _0x317f47=Array[_0x16ed('0x7')](_0x52f901[_0x16ed('0x9')]()),_0x53daa1=new Set();for(const _0x5cc2d7 of _0x3d9cb5)if(_0x5cc2d7[_0x16ed('0x0')])for(const _0x407c53 of _0x317f47)for(const _0x42ef45 of _0x5cc2d7['getRanges']())(_0x407c53[_0x16ed('0x2')](_0x42ef45)||_0x52f901['isCollapsed']&&!_0x5cc2d7[_0x16ed('0x19')]&&_0x5cc2d7[_0x16ed('0xa')]&&_0x42ef45['end'][_0x16ed('0x10')](_0x407c53[_0x16ed('0x1')]))&&_0x53daa1[_0x16ed('0x4')](_0x5cc2d7);return _0x53daa1;}export function getRangesOfBlockGroups(_0x166b8c,_0xb008f8){let _0xc29f45,_0x2c1b3d=0x0;const _0x13b380=[],_0x1d9050=_0xb008f8['schema'];for(;_0x2c1b3d<_0x166b8c[_0x16ed('0xf')];){const _0x4f0e87=_0x166b8c[_0x2c1b3d],_0x197ae1=_0x166b8c[_0x2c1b3d+0x1];_0xc29f45||(_0xc29f45=_0xb008f8[_0x16ed('0x8')](_0x4f0e87)),co(_0xb008f8,_0x4f0e87,_0x197ae1)||(_0x13b380[_0x16ed('0x12')](_0xb008f8[_0x16ed('0x3')](_0xc29f45,_0x1d9050['isObject'](_0x4f0e87)?_0xb008f8[_0x16ed('0xc')](_0x4f0e87):_0xb008f8['createPositionAt'](_0x4f0e87,_0x16ed('0x11')))),_0xc29f45=null),_0x2c1b3d++;}return _0x13b380;}function co(_0x256eac,_0x1ae2d2,_0x227a29){if(!_0x227a29)return!0x1;const _0x23e44d=_0x256eac['createPositionAfter'](_0x1ae2d2),_0x75f6a1=_0x256eac['createPositionBefore'](_0x227a29);return _0x23e44d[_0x16ed('0x10')](_0x75f6a1);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x14974c,_0xd7035c,_0x4b3cd1){for(;_0x4b3cd1[_0x16ed('0xf')];){const _0x200deb=_0x4b3cd1['splice'](0x0,0x64);_0x14974c['change'](()=>{for(const _0x327274 of _0x200deb)_0x327274[_0x16ed('0x0')]&&_0xd7035c[_0x16ed('0xd')](_0x327274['id']);});}}
23
+ const _0x19e7=['end','from','isIntersecting','content','createRange','isArray','createPositionAfter','change','createPositionBefore','schema','isInContent','isObject','isCollapsed','execute','getRanges','length','value','map','sort','createPositionAt','splice','isTouching','next','start','type','deletion','isMultiRange','add','color'];(function(_0x484bad,_0x19e7ac){const _0x2fe4ac=function(_0x44fd5f){while(--_0x44fd5f){_0x484bad['push'](_0x484bad['shift']());}};_0x2fe4ac(++_0x19e7ac);}(_0x19e7,0x193));const _0x2fe4=function(_0x484bad,_0x19e7ac){_0x484bad=_0x484bad-0x0;let _0x2fe4ac=_0x19e7[_0x484bad];return _0x2fe4ac;};export function normalizeDescription(_0x5ddb84){return Array[_0x2fe4('0x8')](_0x5ddb84)||(_0x5ddb84=[_0x5ddb84]),_0x5ddb84[_0x2fe4('0x14')](_0x2d21bb=>{const _0x3247d9=_0x2d21bb[_0x2fe4('0x6')]['replace'](/\*/g,''),_0x1651af=_0x2d21bb[_0x2fe4('0x2')]?'\x20[color\x20'+_0x2d21bb['color'][_0x2fe4('0x13')]+']':'';return'['+_0x2d21bb[_0x2fe4('0x1b')]+']\x20'+_0x3247d9+_0x1651af;})['join'](';\x20');}export function sortSuggestions(_0x297254){return _0x297254[_0x2fe4('0x15')]((_0x5c8599,_0x29f6f8)=>'deletion'==_0x5c8599[_0x2fe4('0x1b')]&&_0x2fe4('0x1c')!=_0x29f6f8['type']?-0x1:'deletion'!=_0x5c8599[_0x2fe4('0x1b')]&&_0x2fe4('0x1c')==_0x29f6f8[_0x2fe4('0x1b')]?0x1:0x0);}export function getSelectedSuggestions(_0x499a5b,_0x4f8e4a){const _0x20871c=Array[_0x2fe4('0x4')](_0x499a5b[_0x2fe4('0x11')]()),_0x554fdd=new Set();for(const _0x44167b of _0x4f8e4a)if(_0x44167b['isInContent'])for(const _0x42859c of _0x20871c)for(const _0x5591cf of _0x44167b['getRanges']())(_0x42859c[_0x2fe4('0x5')](_0x5591cf)||_0x499a5b[_0x2fe4('0xf')]&&!_0x44167b[_0x2fe4('0x0')]&&_0x44167b[_0x2fe4('0x19')]&&_0x5591cf[_0x2fe4('0x3')][_0x2fe4('0x18')](_0x42859c[_0x2fe4('0x1a')]))&&_0x554fdd[_0x2fe4('0x1')](_0x44167b);return _0x554fdd;}export function getRangesOfBlockGroups(_0x23ecb7,_0x41c1ac){let _0x1f10d3,_0x530aaa=0x0;const _0x32954f=[],_0x34f33a=_0x41c1ac[_0x2fe4('0xc')];for(;_0x530aaa<_0x23ecb7['length'];){const _0x1d87bf=_0x23ecb7[_0x530aaa],_0x54dab0=_0x23ecb7[_0x530aaa+0x1];_0x1f10d3||(_0x1f10d3=_0x41c1ac[_0x2fe4('0xb')](_0x1d87bf)),co(_0x41c1ac,_0x1d87bf,_0x54dab0)||(_0x32954f['push'](_0x41c1ac[_0x2fe4('0x7')](_0x1f10d3,_0x34f33a[_0x2fe4('0xe')](_0x1d87bf)?_0x41c1ac[_0x2fe4('0x9')](_0x1d87bf):_0x41c1ac[_0x2fe4('0x16')](_0x1d87bf,'end'))),_0x1f10d3=null),_0x530aaa++;}return _0x32954f;}function co(_0x428079,_0x4f9e16,_0x33b00e){if(!_0x33b00e)return!0x1;const _0x29a9c1=_0x428079['createPositionAfter'](_0x4f9e16),_0x1f5aeb=_0x428079[_0x2fe4('0xb')](_0x33b00e);return _0x29a9c1['isTouching'](_0x1f5aeb);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x64f108,_0x18fcbc,_0x254ef3){for(;_0x254ef3[_0x2fe4('0x12')];){const _0x127cfc=_0x254ef3[_0x2fe4('0x17')](0x0,0x64);_0x64f108[_0x2fe4('0xa')](()=>{for(const _0x545f6a of _0x127cfc)_0x545f6a[_0x2fe4('0xd')]&&_0x18fcbc[_0x2fe4('0x10')](_0x545f6a['id']);});}}