@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240130.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 _0x23f4=['change:previous','isDirty','values','define','push','get','plugins','trackChanges','Annotations','size','Discard\x20all\x20selected\x20suggestions','clear','commands','commentThread','_suggestionToController','_refreshActiveMarkers','Discard\x20all\x20suggestions','createAnnotationView','Accept\x20all\x20selected\x20suggestions','config','button','mainView','TrackChangesUI','activeAnnotations','init','bind','actionView','switchbutton','suggestion-','listenTo','buttonView','_updateController','getMarkers','getByInnerView','map','comments','Accept\x20all\x20suggestions','toMany','SuggestionThreadView','trackChanges.disableComments','_annotationViews','length','acceptSelectedSuggestions','editing','view','isMultiRange','isOn','isInContent','model','trackChanges.SuggestionThreadView','discardButton','createAnnotation','_viewToController','value','_bindAnnotationToEditors','requires','CommentsUI','previous','discardSelectedSuggestions','_initializeController','_unbindEditors','stopListening','change:activeAnnotations','acceptAllSuggestions','Track\x20changes','focus','_handleControllerBuffer','_createUIButton','_disableComments','isEnabled','getDescriptions','separator','suggestionUnloaded','pluginName','editor','_destroyController','unbind','EditorAnnotations','TrackChangesEditing','filter','head','type','CommentsRepository','suggestionChanged','commandName','has','descriptionParts','destroy','lowest','execute','acceptButton','innerView','add','locale','getAllAdjacentSuggestions','delete','addSourceCollector','getJoined','activeMarkers','some','set','_handleSuggestionControllerDelayed','CommentView'];(function(_0x14a76b,_0x23f481){const _0x137ad7=function(_0x1bcb95){while(--_0x1bcb95){_0x14a76b['push'](_0x14a76b['shift']());}};_0x137ad7(++_0x23f481);}(_0x23f4,0xba));const _0x137a=function(_0x14a76b,_0x23f481){_0x14a76b=_0x14a76b-0x0;let _0x137ad7=_0x23f4[_0x14a76b];return _0x137ad7;};import{Plugin as _0x301aac}from'ckeditor5/src/core.js';import{Collection as _0x19c1a6}from'ckeditor5/src/utils.js';import{ViewModel as _0x2103f2,SplitButtonView as _0x3183cc,createDropdown as _0x3d69c7,addListToDropdown as _0x5e2680}from'ckeditor5/src/ui.js';import{Users as _0x4d6682,getDateTimeFormatter as _0x4cb0db,getAllMarkersDomElementsSorted as _0x3a2779}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xda7fa9 from'./trackchangesediting.js';import _0x4e7c15 from'./ui/suggestioncontroller.js';import _0x89afe5 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x2a168f}from'./utils/common-translations.js';import _0x1a7e1f from'../theme/icons/track-changes.svg';export default class d extends _0x301aac{static get[_0x137a('0x4b')](){return[_0xda7fa9,_0x4d6682,_0x137a('0x66'),'Annotations',_0x137a('0x61')];}static get[_0x137a('0x5d')](){return _0x137a('0x2a');}constructor(_0x3cda64){super(_0x3cda64),this[_0x137a('0x22')]=new Map(),this[_0x137a('0x48')]=new Map(),this[_0x137a('0x3c')]=new Map(),this[_0x137a('0x56')]=new Map();const _0x1fb876=this[_0x137a('0x5e')][_0x137a('0x27')];_0x1fb876['define'](_0x137a('0x45'),_0x89afe5),_0x1fb876[_0x137a('0x17')](_0x137a('0x3b'),!0x1),this[_0x137a('0x58')]=_0x1fb876['get'](_0x137a('0x3b'));}[_0x137a('0x12')](_0x119362,_0x51f936){0x0===this[_0x137a('0x56')][_0x137a('0x1d')]&&setTimeout(()=>{for(const [_0xcc9c4c,_0x82390c]of this[_0x137a('0x56')]){const _0x43e72d=this[_0x137a('0x22')]['has'](_0xcc9c4c);_0x43e72d||_0x82390c?_0x43e72d&&_0x82390c&&this[_0x137a('0x5f')](_0xcc9c4c):this[_0x137a('0x4f')](_0xcc9c4c);}this[_0x137a('0x56')][_0x137a('0x1f')](),this[_0x137a('0x5e')][_0x137a('0x1a')]['get'](_0x137a('0x61'))['refreshSelectedViews'](),this[_0x137a('0x23')]();},0xa),this['_handleControllerBuffer']['set'](_0x119362,_0x51f936);}[_0x137a('0x2c')](){const _0x19e74a=this[_0x137a('0x5e')],_0x346251=_0x19e74a['plugins'][_0x137a('0x19')](_0x137a('0x62')),_0x47abbc=_0x19e74a['plugins'][_0x137a('0x19')](_0x137a('0x1c')),_0x59c013=_0x19e74a['plugins'][_0x137a('0x19')](_0x137a('0x61')),_0x159514=_0x19e74a[_0x137a('0x1a')][_0x137a('0x19')](_0x137a('0x66'));_0x19e74a['ui']['componentFactory'][_0x137a('0x9')](_0x137a('0x1b'),_0x13c7c9=>this['_createUIButton'](_0x13c7c9)),_0x59c013[_0x137a('0xd')](()=>{const _0xed5972=[];for(const [_0x2e5ab9,_0xf36a77]of Array['from'](this[_0x137a('0x22')])){const _0x53f098=_0x2e5ab9['getAllAdjacentSuggestions'](),_0x310888=[];for(const _0x54a0fe of _0x53f098){if(!_0x54a0fe['isInContent'])continue;if(_0x54a0fe[_0x137a('0x41')]){_0x310888[_0x137a('0x18')](..._0x54a0fe['getRanges']());continue;}const _0x4cc0dc=_0x54a0fe['getFirstRange']();if(_0x310888[_0x137a('0x3d')]>0x0){const _0x3106aa=_0x310888[0x0][_0x137a('0xe')](_0x4cc0dc);if(_0x3106aa){_0x310888[0x0]=_0x3106aa;continue;}}_0x310888['push'](_0x4cc0dc);}_0xed5972[_0x137a('0x18')]([_0xf36a77[_0x137a('0x40')],_0x310888]);}return _0xed5972;}),this['listenTo'](_0x346251,'suggestionLoaded',(_0x5a5138,_0x26bab1)=>{this['listenTo'](_0x26bab1,_0x137a('0x14'),(_0x29174f,_0x5a1b47,_0x1cb9ed,_0x45c9db)=>{_0x26bab1[_0x137a('0x43')]&&(null==_0x1cb9ed?(this['_updateController'](_0x45c9db[_0x137a('0x64')]),this[_0x137a('0x12')](_0x26bab1,!0x1)):(this[_0x137a('0x33')](_0x1cb9ed[_0x137a('0x64')]),null==_0x45c9db&&this[_0x137a('0x12')](_0x26bab1,!0x0)));}),null!==_0x26bab1[_0x137a('0x4d')]?this[_0x137a('0x33')](_0x26bab1[_0x137a('0x64')]):this[_0x137a('0x12')](_0x26bab1,!0x1);}),this[_0x137a('0x31')](_0x346251,_0x137a('0x5c'),(_0x4991a0,_0x527e0e,_0x1a36d9)=>{this[_0x137a('0x51')](_0x527e0e,_0x137a('0x14')),this['_handleControllerBuffer'][_0x137a('0xc')](_0x527e0e),this['_suggestionToController']['has'](_0x527e0e)&&this[_0x137a('0x5f')](_0x527e0e),_0x1a36d9&&this['_updateController'](_0x1a36d9[_0x137a('0x64')]);}),this[_0x137a('0x31')](_0x346251,_0x137a('0x0'),(_0x438ddc,_0x2eaa31)=>{this['_updateController'](_0x2eaa31);}),this[_0x137a('0x31')](_0x47abbc,_0x137a('0x52'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x159514,'addComment',(_0x2be222,{threadId:_0x587140,isFromAdapter:_0x39d50a})=>{if(_0x39d50a||!_0x346251['hasSuggestion'](_0x587140))return;const _0x43b7d6=_0x346251['getSuggestion'](_0x587140);this[_0x137a('0x22')][_0x137a('0x19')](_0x43b7d6)['view'][_0x137a('0x55')]();},{'priority':_0x137a('0x5')});}[_0x137a('0x23')](){const _0x1ba826=this[_0x137a('0x5e')][_0x137a('0x1a')][_0x137a('0x19')]('Annotations'),_0x2f3d56=this[_0x137a('0x5e')][_0x137a('0x1a')]['get'](_0x137a('0x62')),_0x22e6ad=Array['from'](_0x1ba826[_0x137a('0x2b')],_0x5cd53f=>_0x5cd53f[_0x137a('0x8')])[_0x137a('0x63')](_0x5178f8=>this['_viewToController']['has'](_0x5178f8)),_0x1e8c56=[];for(const _0x1b8082 of _0x22e6ad){const _0x29eb62=this[_0x137a('0x48')][_0x137a('0x19')](_0x1b8082)[_0x137a('0x44')][_0x137a('0xb')]();_0x1e8c56[_0x137a('0x18')](..._0x29eb62['reduce']((_0x25aabd,_0x325cdf)=>[..._0x25aabd,..._0x325cdf['getMarkerNames']()],[]));}_0x2f3d56[_0x137a('0xf')]=_0x1e8c56;}[_0x137a('0x57')](_0x495d5c){const _0x3ce328=_0x3d69c7(_0x495d5c,_0x3183cc),_0x199a2d=this['editor'][_0x137a('0x20')]['get'](_0x137a('0x1b')),_0x3745ba=_0x2a168f(_0x495d5c,_0x137a('0x54'));_0x3ce328[_0x137a('0x32')][_0x137a('0x11')]({'tooltip':_0x3745ba,'label':_0x3745ba,'icon':_0x1a7e1f}),_0x3ce328[_0x137a('0x32')][_0x137a('0x2d')](_0x137a('0x42'))['to'](_0x199a2d,_0x137a('0x49')),_0x3ce328[_0x137a('0x32')]['on'](_0x137a('0x6'),()=>{_0x199a2d[_0x137a('0x6')](),this[_0x137a('0x5e')]['editing'][_0x137a('0x40')]['focus']();});const _0x4335ff=new _0x19c1a6(),_0x282748=[{'type':_0x137a('0x2f'),'model':{'withText':!0x0,'label':_0x3745ba,'commandName':_0x137a('0x1b')}},{'type':_0x137a('0x5b')},{'type':'button','model':{'withText':!0x0,'label':_0x2a168f(_0x495d5c,_0x137a('0x38')),'commandName':_0x137a('0x53')}},{'type':_0x137a('0x28'),'model':{'withText':!0x0,'label':_0x2a168f(_0x495d5c,_0x137a('0x26')),'commandName':_0x137a('0x3e')}},{'type':_0x137a('0x28'),'model':{'withText':!0x0,'label':_0x2a168f(_0x495d5c,_0x137a('0x24')),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2a168f(_0x495d5c,_0x137a('0x1e')),'commandName':_0x137a('0x4e')}}];for(const _0x1c12c1 of _0x282748){let _0x26bbc1={'type':_0x137a('0x5b')};if(_0x1c12c1[_0x137a('0x44')]){const _0x1766a6=new _0x2103f2(_0x1c12c1[_0x137a('0x44')]),_0x570905=this[_0x137a('0x5e')][_0x137a('0x20')][_0x137a('0x19')](_0x1766a6[_0x137a('0x1')]);_0x1766a6['bind']('isOn',_0x137a('0x59'))['to'](_0x570905,_0x137a('0x49'),_0x137a('0x59')),_0x26bbc1={'type':_0x1c12c1[_0x137a('0x65')],'model':_0x1766a6};}_0x4335ff['add'](_0x26bbc1);}_0x5e2680(_0x3ce328,_0x4335ff);const _0x188041=_0x282748[_0x137a('0x63')](_0x52c3dd=>null!=_0x52c3dd[_0x137a('0x44')])[_0x137a('0x36')](_0x522c0e=>this['editor']['commands'][_0x137a('0x19')](_0x522c0e[_0x137a('0x44')][_0x137a('0x1')])),_0x4a30c2=_0x3ce328[_0x137a('0x32')];return _0x4a30c2[_0x137a('0x2e')][_0x137a('0x60')](_0x137a('0x59')),_0x4a30c2['arrowView']['unbind'](_0x137a('0x59')),_0x4a30c2[_0x137a('0x2e')]['bind']('isEnabled')['to'](_0x199a2d,'isEnabled'),_0x4a30c2['arrowView'][_0x137a('0x2d')](_0x137a('0x59'))[_0x137a('0x39')](_0x188041,_0x137a('0x59'),(..._0x2527e9)=>_0x2527e9[_0x137a('0x10')](_0x279297=>_0x279297)),_0x3ce328['on']('execute',_0x3decb3=>{this[_0x137a('0x5e')]['execute'](_0x3decb3['source'][_0x137a('0x1')]),this['editor'][_0x137a('0x3f')][_0x137a('0x40')][_0x137a('0x55')]();}),_0x3ce328;}[_0x137a('0x4f')](_0x571779){const _0x27c386=this[_0x137a('0x5e')],_0x17f629=_0x27c386['config'],_0x5625ca=_0x27c386[_0x137a('0x1a')][_0x137a('0x19')](_0x137a('0x1c')),_0x452216=_0x27c386['plugins'][_0x137a('0x19')](_0x137a('0x66')),_0x40c381=_0x27c386['plugins'][_0x137a('0x19')](_0x137a('0x61')),_0x1e8110=_0x27c386[_0x137a('0x1a')]['get'](_0x4d6682)['me'],_0x3bbfe4=_0x17f629[_0x137a('0x19')]('trackChanges')[_0x137a('0x3a')],{CommentsListView:_0x32a36c,CommentThreadInputView:_0x12f100}=_0x27c386[_0x137a('0x1a')][_0x137a('0x19')](_0x137a('0x4c'));let _0xd15d33,_0x2c4700;this[_0x137a('0x3c')][_0x137a('0x2')](_0x571779['id'])?(_0x2c4700=this[_0x137a('0x3c')]['get'](_0x571779['id']),_0xd15d33=_0x2c4700[_0x137a('0x29')]):(_0xd15d33=new _0x3bbfe4(_0x27c386[_0x137a('0xa')],_0x571779,_0x1e8110,{'disableComments':this[_0x137a('0x58')],'editorConfig':_0x17f629['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x17f629['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17f629[_0x137a('0x19')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17f629[_0x137a('0x19')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4cb0db(_0x17f629[_0x137a('0x19')](_0x137a('0xa'))),'CommentView':_0x17f629[_0x137a('0x19')](_0x137a('0x37'))[_0x137a('0x13')],'CommentsListView':_0x32a36c,'CommentThreadInputView':_0x12f100}),_0xd15d33[_0x137a('0x7')]['on']('execute',()=>{_0x27c386[_0x137a('0x3f')][_0x137a('0x40')][_0x137a('0x55')]();}),_0xd15d33[_0x137a('0x46')]['on'](_0x137a('0x6'),()=>{_0x27c386[_0x137a('0x3f')]['view'][_0x137a('0x55')]();}),_0x2c4700=_0x5625ca[_0x137a('0x25')](this['editor'][_0x137a('0xa')],_0xd15d33),_0x2c4700['bind'](_0x137a('0x15'))['to'](_0xd15d33,_0x137a('0x15')),_0x2c4700[_0x137a('0x2d')](_0x137a('0x3d'))['to'](_0xd15d33),_0x2c4700['bind'](_0x137a('0x65'))['to'](_0xd15d33,_0x137a('0x65'),_0xc09a4d=>_0x137a('0x30')+_0xc09a4d),this[_0x137a('0x3c')]['set'](_0x571779['id'],_0x2c4700));const _0x47105f=_0x452216['createCommentThreadController'](_0x571779[_0x137a('0x21')],_0xd15d33),_0x37c27a=new _0x4e7c15(_0x27c386,_0x571779,_0xd15d33,_0x47105f),_0x2adf9d=_0x571779['getAllAdjacentSuggestions']()[_0x137a('0x63')](_0x36f909=>_0x36f909['isInContent']);_0xd15d33[_0x137a('0x3')]=_0x27c386[_0x137a('0x1a')][_0x137a('0x19')]('TrackChangesEditing')['_descriptionFactory'][_0x137a('0x5a')](_0x2adf9d),this[_0x137a('0x22')]['set'](_0x571779,_0x37c27a),this[_0x137a('0x48')][_0x137a('0x11')](_0xd15d33,_0x37c27a);const _0x59096a=_0x5625ca[_0x137a('0x47')]({'view':_0x2c4700,'target':()=>{const _0x11cd57=[],_0x1685ac=_0x571779[_0x137a('0xb')]()[_0x137a('0x63')](_0x3fbd60=>_0x3fbd60['isInContent']);for(const _0x1a00b4 of _0x1685ac)_0x11cd57['push'](..._0x1a00b4[_0x137a('0x34')]());return _0x3a2779(_0x27c386[_0x137a('0x3f')],_0x11cd57);},'type':()=>_0x137a('0x30')+_0x37c27a[_0x137a('0x40')]['type']});_0x452216[_0x137a('0x4a')](_0xd15d33,_0x59096a),_0x5625ca[_0x137a('0x9')](_0x59096a),_0x40c381['registerAnnotation'](_0x59096a);}[_0x137a('0x5f')](_0x32630f){const _0x193129=this[_0x137a('0x5e')]['plugins'][_0x137a('0x19')](_0x137a('0x66')),_0x1b84ce=this['editor'][_0x137a('0x1a')][_0x137a('0x19')](_0x137a('0x1c')),_0x2f1b83=this['_suggestionToController'][_0x137a('0x19')](_0x32630f),_0x57ddef=_0x2f1b83[_0x137a('0x40')],_0x32ecfd=_0x1b84ce[_0x137a('0x35')](_0x57ddef);_0x193129[_0x137a('0x50')](_0x57ddef),_0x32ecfd&&_0x1b84ce['remove'](_0x32ecfd),this[_0x137a('0x22')][_0x137a('0xc')](_0x32630f),this[_0x137a('0x48')]['delete'](_0x57ddef),_0x2f1b83[_0x137a('0x4')]();}['_updateController'](_0x1164a2){if(!_0x1164a2[_0x137a('0x43')]||!this[_0x137a('0x22')]['has'](_0x1164a2))return;const _0x52b3c1=this['editor'][_0x137a('0x1a')][_0x137a('0x19')](_0x137a('0x62')),_0x10b348=this[_0x137a('0x22')][_0x137a('0x19')](_0x1164a2),_0x55edbf=_0x1164a2[_0x137a('0xb')]();_0x10b348[_0x137a('0x40')]['descriptionParts']=_0x52b3c1['_descriptionFactory'][_0x137a('0x5a')](_0x55edbf);}[_0x137a('0x4')](){for(const _0x3bfe7b of this[_0x137a('0x22')]['keys']())this[_0x137a('0x5f')](_0x3bfe7b);for(const _0x4a6a4c of this[_0x137a('0x3c')][_0x137a('0x16')]())_0x4a6a4c[_0x137a('0x29')][_0x137a('0x4')]();super[_0x137a('0x4')]();}}
23
+ const _0x2d21=['reduce','suggestion-','isEnabled','commandName','stopListening','_handleControllerBuffer','componentFactory','add','suggestionChanged','focus','createAnnotation','init','bind','change:activeAnnotations','commentThread','requires','some','Accept\x20all\x20suggestions','previous','discardAllSuggestions','locale','addSourceCollector','getRanges','plugins','remove','innerView','trackChanges','delete','arrowView','clear','isDirty','_bindAnnotationToEditors','_createUIButton','_disableComments','isMultiRange','Annotations','CommentsUI','_handleSuggestionControllerDelayed','_viewToController','type','model','lowest','change:previous','discardSelectedSuggestions','set','_suggestionToController','refreshSelectedViews','view','comments','comments.maxThreadTotalWeight','buttonView','commands','get','SuggestionThreadView','actionView','createCommentThreadController','config','head','getMarkers','registerAnnotation','_destroyController','isOn','size','TrackChangesUI','_descriptionFactory','CommentsRepository','activeMarkers','push','activeAnnotations','acceptAllSuggestions','isInContent','addComment','destroy','trackChanges.disableComments','listenTo','suggestionLoaded','descriptionParts','filter','comments.maxCommentCharsWhenCollapsed','mainView','_annotationViews','getDescriptions','switchbutton','from','button','getAllAdjacentSuggestions','_initializeController','getFirstRange','value','pluginName','has','execute','comments.maxCommentsWhenCollapsed','TrackChangesEditing','_refreshActiveMarkers','_updateController','EditorAnnotations','suggestionUnloaded','_unbindEditors','Discard\x20all\x20selected\x20suggestions','Discard\x20all\x20suggestions','editing','define','acceptButton','length','unbind','editor','discardButton'];(function(_0x1e9890,_0x2d2168){const _0x4a2cc6=function(_0x105c11){while(--_0x105c11){_0x1e9890['push'](_0x1e9890['shift']());}};_0x4a2cc6(++_0x2d2168);}(_0x2d21,0xe4));const _0x4a2c=function(_0x1e9890,_0x2d2168){_0x1e9890=_0x1e9890-0x0;let _0x4a2cc6=_0x2d21[_0x1e9890];return _0x4a2cc6;};import{Plugin as _0x2935d5}from'ckeditor5/src/core.js';import{Collection as _0x67bfd1}from'ckeditor5/src/utils.js';import{ViewModel as _0x1e732e,SplitButtonView as _0x4f22d6,createDropdown as _0xf76842,addListToDropdown as _0x3bb678}from'ckeditor5/src/ui.js';import{Users as _0x515fb7,getDateTimeFormatter as _0x1c35c6,getAllMarkersDomElementsSorted as _0xe5e30b}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1cbdf4 from'./trackchangesediting.js';import _0x594a9b from'./ui/suggestioncontroller.js';import _0x4f85dd from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x310188}from'./utils/common-translations.js';import _0x4b39e3 from'../theme/icons/track-changes.svg';export default class d extends _0x2935d5{static get[_0x4a2c('0x3')](){return[_0x1cbdf4,_0x515fb7,_0x4a2c('0x35'),_0x4a2c('0x17'),_0x4a2c('0x54')];}static get[_0x4a2c('0x4d')](){return _0x4a2c('0x33');}constructor(_0x25acf2){super(_0x25acf2),this[_0x4a2c('0x21')]=new Map(),this[_0x4a2c('0x1a')]=new Map(),this[_0x4a2c('0x44')]=new Map(),this[_0x4a2c('0x65')]=new Map();const _0x24570a=this[_0x4a2c('0x5e')][_0x4a2c('0x2c')];_0x24570a['define']('trackChanges.SuggestionThreadView',_0x4f85dd),_0x24570a[_0x4a2c('0x5a')]('trackChanges.disableComments',!0x1),this[_0x4a2c('0x15')]=_0x24570a[_0x4a2c('0x28')](_0x4a2c('0x3d'));}[_0x4a2c('0x19')](_0x31b539,_0xda4e49){0x0===this['_handleControllerBuffer'][_0x4a2c('0x32')]&&setTimeout(()=>{for(const [_0x519f06,_0x4a525a]of this[_0x4a2c('0x65')]){const _0x38ded4=this[_0x4a2c('0x21')]['has'](_0x519f06);_0x38ded4||_0x4a525a?_0x38ded4&&_0x4a525a&&this[_0x4a2c('0x30')](_0x519f06):this[_0x4a2c('0x4a')](_0x519f06);}this[_0x4a2c('0x65')][_0x4a2c('0x11')](),this[_0x4a2c('0x5e')][_0x4a2c('0xb')][_0x4a2c('0x28')](_0x4a2c('0x54'))[_0x4a2c('0x22')](),this[_0x4a2c('0x52')]();},0xa),this[_0x4a2c('0x65')][_0x4a2c('0x20')](_0x31b539,_0xda4e49);}[_0x4a2c('0x6b')](){const _0x1b1e91=this['editor'],_0x3a2264=_0x1b1e91[_0x4a2c('0xb')][_0x4a2c('0x28')](_0x4a2c('0x51')),_0x326be6=_0x1b1e91[_0x4a2c('0xb')][_0x4a2c('0x28')](_0x4a2c('0x17')),_0x21f589=_0x1b1e91[_0x4a2c('0xb')]['get']('EditorAnnotations'),_0x265301=_0x1b1e91[_0x4a2c('0xb')][_0x4a2c('0x28')](_0x4a2c('0x35'));_0x1b1e91['ui'][_0x4a2c('0x66')]['add'](_0x4a2c('0xe'),_0x3e1976=>this[_0x4a2c('0x14')](_0x3e1976)),_0x21f589[_0x4a2c('0x9')](()=>{const _0x4429ef=[];for(const [_0x462161,_0x2e2239]of Array['from'](this['_suggestionToController'])){const _0x11cff0=_0x462161[_0x4a2c('0x49')](),_0x29f454=[];for(const _0x1db933 of _0x11cff0){if(!_0x1db933['isInContent'])continue;if(_0x1db933[_0x4a2c('0x16')]){_0x29f454['push'](..._0x1db933[_0x4a2c('0xa')]());continue;}const _0x4cf391=_0x1db933[_0x4a2c('0x4b')]();if(_0x29f454['length']>0x0){const _0x4d0ad6=_0x29f454[0x0]['getJoined'](_0x4cf391);if(_0x4d0ad6){_0x29f454[0x0]=_0x4d0ad6;continue;}}_0x29f454['push'](_0x4cf391);}_0x4429ef[_0x4a2c('0x37')]([_0x2e2239[_0x4a2c('0x23')],_0x29f454]);}return _0x4429ef;}),this['listenTo'](_0x3a2264,_0x4a2c('0x3f'),(_0x1568f9,_0x2cbf56)=>{this[_0x4a2c('0x3e')](_0x2cbf56,'change:previous',(_0x2cc83e,_0xd6d733,_0x3e8478,_0x255b4c)=>{_0x2cbf56[_0x4a2c('0x3a')]&&(null==_0x3e8478?(this[_0x4a2c('0x53')](_0x255b4c['head']),this[_0x4a2c('0x19')](_0x2cbf56,!0x1)):(this['_updateController'](_0x3e8478['head']),null==_0x255b4c&&this['_handleSuggestionControllerDelayed'](_0x2cbf56,!0x0)));}),null!==_0x2cbf56[_0x4a2c('0x6')]?this[_0x4a2c('0x53')](_0x2cbf56[_0x4a2c('0x2d')]):this['_handleSuggestionControllerDelayed'](_0x2cbf56,!0x1);}),this[_0x4a2c('0x3e')](_0x3a2264,_0x4a2c('0x55'),(_0x453dc8,_0x1b5ebc,_0x4a5ecb)=>{this[_0x4a2c('0x64')](_0x1b5ebc,_0x4a2c('0x1e')),this[_0x4a2c('0x65')][_0x4a2c('0xf')](_0x1b5ebc),this[_0x4a2c('0x21')]['has'](_0x1b5ebc)&&this[_0x4a2c('0x30')](_0x1b5ebc),_0x4a5ecb&&this[_0x4a2c('0x53')](_0x4a5ecb['head']);}),this[_0x4a2c('0x3e')](_0x3a2264,_0x4a2c('0x68'),(_0x589fd1,_0x5285a6)=>{this[_0x4a2c('0x53')](_0x5285a6);}),this['listenTo'](_0x326be6,_0x4a2c('0x1'),()=>{this[_0x4a2c('0x52')]();}),this['listenTo'](_0x265301,_0x4a2c('0x3b'),(_0x504334,{threadId:_0x31c5f2,isFromAdapter:_0x509847})=>{if(_0x509847||!_0x3a2264['hasSuggestion'](_0x31c5f2))return;const _0x5de41e=_0x3a2264['getSuggestion'](_0x31c5f2);this['_suggestionToController'][_0x4a2c('0x28')](_0x5de41e)[_0x4a2c('0x23')][_0x4a2c('0x69')]();},{'priority':_0x4a2c('0x1d')});}['_refreshActiveMarkers'](){const _0x2f62f2=this[_0x4a2c('0x5e')]['plugins'][_0x4a2c('0x28')](_0x4a2c('0x17')),_0x176a7a=this[_0x4a2c('0x5e')][_0x4a2c('0xb')][_0x4a2c('0x28')](_0x4a2c('0x51')),_0x429b92=Array[_0x4a2c('0x47')](_0x2f62f2[_0x4a2c('0x38')],_0x580c40=>_0x580c40[_0x4a2c('0xd')])[_0x4a2c('0x41')](_0x2cd9e6=>this[_0x4a2c('0x1a')]['has'](_0x2cd9e6)),_0x4d2c55=[];for(const _0x2c98d0 of _0x429b92){const _0x2fd69b=this['_viewToController'][_0x4a2c('0x28')](_0x2c98d0)['model'][_0x4a2c('0x49')]();_0x4d2c55[_0x4a2c('0x37')](..._0x2fd69b[_0x4a2c('0x60')]((_0x510bef,_0x48b2a5)=>[..._0x510bef,..._0x48b2a5['getMarkerNames']()],[]));}_0x176a7a[_0x4a2c('0x36')]=_0x4d2c55;}[_0x4a2c('0x14')](_0x34daf6){const _0x1916cd=_0xf76842(_0x34daf6,_0x4f22d6),_0x99174e=this[_0x4a2c('0x5e')][_0x4a2c('0x27')][_0x4a2c('0x28')](_0x4a2c('0xe')),_0x842f58=_0x310188(_0x34daf6,'Track\x20changes');_0x1916cd['buttonView'][_0x4a2c('0x20')]({'tooltip':_0x842f58,'label':_0x842f58,'icon':_0x4b39e3}),_0x1916cd[_0x4a2c('0x26')]['bind'](_0x4a2c('0x31'))['to'](_0x99174e,'value'),_0x1916cd['buttonView']['on'](_0x4a2c('0x4f'),()=>{_0x99174e[_0x4a2c('0x4f')](),this[_0x4a2c('0x5e')]['editing'][_0x4a2c('0x23')][_0x4a2c('0x69')]();});const _0x3460f9=new _0x67bfd1(),_0x6ee132=[{'type':_0x4a2c('0x46'),'model':{'withText':!0x0,'label':_0x842f58,'commandName':_0x4a2c('0xe')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x310188(_0x34daf6,_0x4a2c('0x5')),'commandName':_0x4a2c('0x39')}},{'type':_0x4a2c('0x48'),'model':{'withText':!0x0,'label':_0x310188(_0x34daf6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':_0x4a2c('0x48'),'model':{'withText':!0x0,'label':_0x310188(_0x34daf6,_0x4a2c('0x58')),'commandName':_0x4a2c('0x7')}},{'type':_0x4a2c('0x48'),'model':{'withText':!0x0,'label':_0x310188(_0x34daf6,_0x4a2c('0x57')),'commandName':_0x4a2c('0x1f')}}];for(const _0x5b6138 of _0x6ee132){let _0x3084b8={'type':'separator'};if(_0x5b6138[_0x4a2c('0x1c')]){const _0x13dcbc=new _0x1e732e(_0x5b6138[_0x4a2c('0x1c')]),_0x5cb99c=this[_0x4a2c('0x5e')][_0x4a2c('0x27')][_0x4a2c('0x28')](_0x13dcbc[_0x4a2c('0x63')]);_0x13dcbc[_0x4a2c('0x0')](_0x4a2c('0x31'),'isEnabled')['to'](_0x5cb99c,_0x4a2c('0x4c'),'isEnabled'),_0x3084b8={'type':_0x5b6138[_0x4a2c('0x1b')],'model':_0x13dcbc};}_0x3460f9[_0x4a2c('0x67')](_0x3084b8);}_0x3bb678(_0x1916cd,_0x3460f9);const _0xeddab8=_0x6ee132['filter'](_0x323311=>null!=_0x323311[_0x4a2c('0x1c')])['map'](_0x160945=>this['editor']['commands'][_0x4a2c('0x28')](_0x160945[_0x4a2c('0x1c')][_0x4a2c('0x63')])),_0x33ac22=_0x1916cd[_0x4a2c('0x26')];return _0x33ac22['actionView'][_0x4a2c('0x5d')](_0x4a2c('0x62')),_0x33ac22[_0x4a2c('0x10')][_0x4a2c('0x5d')]('isEnabled'),_0x33ac22[_0x4a2c('0x2a')][_0x4a2c('0x0')](_0x4a2c('0x62'))['to'](_0x99174e,_0x4a2c('0x62')),_0x33ac22[_0x4a2c('0x10')]['bind']('isEnabled')['toMany'](_0xeddab8,_0x4a2c('0x62'),(..._0x2b0c62)=>_0x2b0c62[_0x4a2c('0x4')](_0x470301=>_0x470301)),_0x1916cd['on'](_0x4a2c('0x4f'),_0x2270d5=>{this['editor'][_0x4a2c('0x4f')](_0x2270d5['source']['commandName']),this[_0x4a2c('0x5e')][_0x4a2c('0x59')]['view'][_0x4a2c('0x69')]();}),_0x1916cd;}[_0x4a2c('0x4a')](_0x42ded5){const _0x161a42=this[_0x4a2c('0x5e')],_0x2b21e7=_0x161a42[_0x4a2c('0x2c')],_0x1eb670=_0x161a42['plugins'][_0x4a2c('0x28')](_0x4a2c('0x17')),_0xfe56e8=_0x161a42['plugins'][_0x4a2c('0x28')](_0x4a2c('0x35')),_0x2d0b1d=_0x161a42['plugins'][_0x4a2c('0x28')](_0x4a2c('0x54')),_0x5c4e61=_0x161a42['plugins']['get'](_0x515fb7)['me'],_0x2865d1=_0x2b21e7['get'](_0x4a2c('0xe'))[_0x4a2c('0x29')],{CommentsListView:_0x441598,CommentThreadInputView:_0x17c8b4}=_0x161a42[_0x4a2c('0xb')]['get'](_0x4a2c('0x18'));let _0x503243,_0x63ac09;this[_0x4a2c('0x44')]['has'](_0x42ded5['id'])?(_0x63ac09=this[_0x4a2c('0x44')]['get'](_0x42ded5['id']),_0x503243=_0x63ac09[_0x4a2c('0x43')]):(_0x503243=new _0x2865d1(_0x161a42['locale'],_0x42ded5,_0x5c4e61,{'disableComments':this[_0x4a2c('0x15')],'editorConfig':_0x2b21e7[_0x4a2c('0x28')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b21e7['get'](_0x4a2c('0x50')),'maxThreadTotalWeight':_0x2b21e7[_0x4a2c('0x28')](_0x4a2c('0x25')),'maxCommentCharsWhenCollapsed':_0x2b21e7[_0x4a2c('0x28')](_0x4a2c('0x42')),'formatDateTime':_0x1c35c6(_0x2b21e7[_0x4a2c('0x28')](_0x4a2c('0x8'))),'CommentView':_0x2b21e7[_0x4a2c('0x28')](_0x4a2c('0x24'))['CommentView'],'CommentsListView':_0x441598,'CommentThreadInputView':_0x17c8b4}),_0x503243[_0x4a2c('0x5b')]['on']('execute',()=>{_0x161a42['editing'][_0x4a2c('0x23')][_0x4a2c('0x69')]();}),_0x503243[_0x4a2c('0x5f')]['on'](_0x4a2c('0x4f'),()=>{_0x161a42[_0x4a2c('0x59')][_0x4a2c('0x23')][_0x4a2c('0x69')]();}),_0x63ac09=_0x1eb670['createAnnotationView'](this[_0x4a2c('0x5e')][_0x4a2c('0x8')],_0x503243),_0x63ac09[_0x4a2c('0x0')](_0x4a2c('0x12'))['to'](_0x503243,_0x4a2c('0x12')),_0x63ac09[_0x4a2c('0x0')](_0x4a2c('0x5c'))['to'](_0x503243),_0x63ac09[_0x4a2c('0x0')](_0x4a2c('0x1b'))['to'](_0x503243,_0x4a2c('0x1b'),_0x26ca7a=>_0x4a2c('0x61')+_0x26ca7a),this['_annotationViews'][_0x4a2c('0x20')](_0x42ded5['id'],_0x63ac09));const _0x5e4ad9=_0xfe56e8[_0x4a2c('0x2b')](_0x42ded5[_0x4a2c('0x2')],_0x503243),_0x460df8=new _0x594a9b(_0x161a42,_0x42ded5,_0x503243,_0x5e4ad9),_0x21fc26=_0x42ded5[_0x4a2c('0x49')]()['filter'](_0x168000=>_0x168000['isInContent']);_0x503243[_0x4a2c('0x40')]=_0x161a42['plugins'][_0x4a2c('0x28')](_0x4a2c('0x51'))[_0x4a2c('0x34')]['getDescriptions'](_0x21fc26),this[_0x4a2c('0x21')]['set'](_0x42ded5,_0x460df8),this['_viewToController'][_0x4a2c('0x20')](_0x503243,_0x460df8);const _0x25ec24=_0x1eb670[_0x4a2c('0x6a')]({'view':_0x63ac09,'target':()=>{const _0x48ffb1=[],_0x38f1e8=_0x42ded5[_0x4a2c('0x49')]()[_0x4a2c('0x41')](_0x4d0d14=>_0x4d0d14[_0x4a2c('0x3a')]);for(const _0x45a861 of _0x38f1e8)_0x48ffb1['push'](..._0x45a861[_0x4a2c('0x2e')]());return _0xe5e30b(_0x161a42[_0x4a2c('0x59')],_0x48ffb1);},'type':()=>_0x4a2c('0x61')+_0x460df8[_0x4a2c('0x23')][_0x4a2c('0x1b')]});_0xfe56e8[_0x4a2c('0x13')](_0x503243,_0x25ec24),_0x1eb670[_0x4a2c('0x67')](_0x25ec24),_0x2d0b1d[_0x4a2c('0x2f')](_0x25ec24);}[_0x4a2c('0x30')](_0x1cd78e){const _0x1a0c84=this[_0x4a2c('0x5e')][_0x4a2c('0xb')]['get']('CommentsRepository'),_0x323e7=this[_0x4a2c('0x5e')]['plugins'][_0x4a2c('0x28')](_0x4a2c('0x17')),_0x2db847=this[_0x4a2c('0x21')][_0x4a2c('0x28')](_0x1cd78e),_0x31e9b2=_0x2db847['view'],_0x47ac48=_0x323e7['getByInnerView'](_0x31e9b2);_0x1a0c84[_0x4a2c('0x56')](_0x31e9b2),_0x47ac48&&_0x323e7[_0x4a2c('0xc')](_0x47ac48),this[_0x4a2c('0x21')]['delete'](_0x1cd78e),this['_viewToController'][_0x4a2c('0xf')](_0x31e9b2),_0x2db847[_0x4a2c('0x3c')]();}['_updateController'](_0xd35dca){if(!_0xd35dca[_0x4a2c('0x3a')]||!this[_0x4a2c('0x21')][_0x4a2c('0x4e')](_0xd35dca))return;const _0x2caab2=this[_0x4a2c('0x5e')][_0x4a2c('0xb')][_0x4a2c('0x28')]('TrackChangesEditing'),_0x283767=this[_0x4a2c('0x21')][_0x4a2c('0x28')](_0xd35dca),_0x440c3a=_0xd35dca['getAllAdjacentSuggestions']();_0x283767[_0x4a2c('0x23')][_0x4a2c('0x40')]=_0x2caab2[_0x4a2c('0x34')][_0x4a2c('0x45')](_0x440c3a);}[_0x4a2c('0x3c')](){for(const _0x21a285 of this[_0x4a2c('0x21')]['keys']())this['_destroyController'](_0x21a285);for(const _0x5e5e58 of this[_0x4a2c('0x44')]['values']())_0x5e5e58[_0x4a2c('0x43')][_0x4a2c('0x3c')]();super[_0x4a2c('0x3c')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd539=['destroy','isEnabled','_removePendingAction','add','commands','model','commentThreadController','isDirty','unbind','_setPendingAction','get','acceptSuggestion','view','_editor','discardSuggestion','canDiscard','_acceptCommand','_pendingAction','PENDING_ACTION_SUGGESTION','listenTo','locale','bind','PendingActions','plugins','change:isDirty','canEditAt','execute','_discardCommand','canAccept','getRanges'];(function(_0xa0b197,_0xd539c){const _0x4abf61=function(_0x2a7df3){while(--_0x2a7df3){_0xa0b197['push'](_0xa0b197['shift']());}};_0x4abf61(++_0xd539c);}(_0xd539,0x8e));const _0x4abf=function(_0xa0b197,_0xd539c){_0xa0b197=_0xa0b197-0x0;let _0x4abf61=_0xd539[_0xa0b197];return _0x4abf61;};import{ObservableMixin as _0x4c2373}from'ckeditor5/src/utils.js';import{getTranslation as _0x21523c}from'../utils/common-translations.js';export default class Xt extends _0x4c2373(){constructor(_0x30bb5b,_0x246d09,_0x59cd26,_0x4efb80){super(),this[_0x4abf('0xd')]=_0x246d09,this[_0x4abf('0x14')]=_0x59cd26,this[_0x4abf('0xe')]=_0x4efb80,this[_0x4abf('0x15')]=_0x30bb5b,this['_acceptCommand']=_0x30bb5b[_0x4abf('0xc')]['get']('acceptSuggestion'),this['_discardCommand']=_0x30bb5b[_0x4abf('0xc')][_0x4abf('0x12')](_0x4abf('0x16')),this['view'][_0x4abf('0x1d')]('isEnabled')['to'](this['_acceptCommand'],this[_0x4abf('0x5')],(_0x539443,_0xd889db)=>_0x539443||_0xd889db),this[_0x4abf('0x14')][_0x4abf('0x1d')]('canAccept')['to'](this[_0x4abf('0x18')],_0x4abf('0x9'),_0x348565=>_0x348565&&this[_0x4abf('0x15')][_0x4abf('0xd')][_0x4abf('0x3')](_0x246d09[_0x4abf('0x7')]())),this[_0x4abf('0x14')]['bind']('canDiscard')['to'](this[_0x4abf('0x5')],_0x4abf('0x9'),_0x71ce52=>_0x71ce52&&this['_editor'][_0x4abf('0xd')]['canEditAt'](_0x246d09[_0x4abf('0x7')]())),this[_0x4abf('0x19')]=null,_0x59cd26[_0x4abf('0xf')]&&this[_0x4abf('0x11')](),this[_0x4abf('0x1b')](_0x59cd26,_0x4abf('0x13'),()=>this[_0x4abf('0x13')]()),this[_0x4abf('0x1b')](_0x59cd26,_0x4abf('0x16'),()=>this[_0x4abf('0x16')]()),this[_0x4abf('0x1b')](_0x59cd26,_0x4abf('0x2'),()=>{_0x59cd26[_0x4abf('0xf')]?this[_0x4abf('0x11')]():this[_0x4abf('0xa')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x4abf('0x4')](this[_0x4abf('0xd')]['id']);}[_0x4abf('0x16')](){this[_0x4abf('0x5')]['execute'](this[_0x4abf('0xd')]['id']);}[_0x4abf('0x8')](){this[_0x4abf('0x14')][_0x4abf('0x10')](_0x4abf('0x9')),this[_0x4abf('0x14')]['unbind'](_0x4abf('0x6')),this['view'][_0x4abf('0x10')](_0x4abf('0x17')),this['stopListening'](),this[_0x4abf('0xe')]['destroy'](),this[_0x4abf('0x19')]&&this[_0x4abf('0xa')]();}[_0x4abf('0x11')](){const _0x19500c=_0x21523c(this[_0x4abf('0x15')][_0x4abf('0x1c')],_0x4abf('0x1a'));this[_0x4abf('0x19')]=this['_editor'][_0x4abf('0x1')]['get']('PendingActions')[_0x4abf('0xb')](_0x19500c);}[_0x4abf('0xa')](){null!==this[_0x4abf('0x19')]&&this[_0x4abf('0x15')][_0x4abf('0x1')][_0x4abf('0x12')](_0x4abf('0x0'))['remove'](this['_pendingAction']),this[_0x4abf('0x19')]=null;}}
23
+ const _0x4405=['getRanges','_discardCommand','bind','remove','view','PENDING_ACTION_SUGGESTION','isEnabled','destroy','get','_setPendingAction','commands','PendingActions','_pendingAction','plugins','canAccept','listenTo','acceptSuggestion','isDirty','model','locale','_acceptCommand','stopListening','_editor','add','canDiscard','commentThreadController','unbind','discardSuggestion','canEditAt','execute','_removePendingAction'];(function(_0xf62e60,_0x440595){const _0x205532=function(_0x492004){while(--_0x492004){_0xf62e60['push'](_0xf62e60['shift']());}};_0x205532(++_0x440595);}(_0x4405,0xa4));const _0x2055=function(_0xf62e60,_0x440595){_0xf62e60=_0xf62e60-0x0;let _0x205532=_0x4405[_0xf62e60];return _0x205532;};import{ObservableMixin as _0x24ea67}from'ckeditor5/src/utils.js';import{getTranslation as _0x5969c1}from'../utils/common-translations.js';export default class Xt extends _0x24ea67(){constructor(_0x60a2f1,_0x24b952,_0x394286,_0xbb5b2){super(),this[_0x2055('0x9')]=_0x24b952,this[_0x2055('0x1a')]=_0x394286,this['commentThreadController']=_0xbb5b2,this[_0x2055('0xd')]=_0x60a2f1,this[_0x2055('0xb')]=_0x60a2f1['commands'][_0x2055('0x1e')](_0x2055('0x7')),this[_0x2055('0x17')]=_0x60a2f1[_0x2055('0x1')][_0x2055('0x1e')]('discardSuggestion'),this[_0x2055('0x1a')][_0x2055('0x18')](_0x2055('0x1c'))['to'](this['_acceptCommand'],this[_0x2055('0x17')],(_0x59e5c9,_0x429af5)=>_0x59e5c9||_0x429af5),this[_0x2055('0x1a')]['bind'](_0x2055('0x5'))['to'](this['_acceptCommand'],_0x2055('0x1c'),_0x21acb5=>_0x21acb5&&this[_0x2055('0xd')]['model'][_0x2055('0x13')](_0x24b952['getRanges']())),this[_0x2055('0x1a')][_0x2055('0x18')]('canDiscard')['to'](this['_discardCommand'],_0x2055('0x1c'),_0x33b81f=>_0x33b81f&&this[_0x2055('0xd')][_0x2055('0x9')][_0x2055('0x13')](_0x24b952[_0x2055('0x16')]())),this['_pendingAction']=null,_0x394286[_0x2055('0x8')]&&this[_0x2055('0x0')](),this[_0x2055('0x6')](_0x394286,_0x2055('0x7'),()=>this[_0x2055('0x7')]()),this['listenTo'](_0x394286,'discardSuggestion',()=>this[_0x2055('0x12')]()),this[_0x2055('0x6')](_0x394286,'change:isDirty',()=>{_0x394286[_0x2055('0x8')]?this[_0x2055('0x0')]():this[_0x2055('0x15')]();});}[_0x2055('0x7')](){this[_0x2055('0xb')]['execute'](this[_0x2055('0x9')]['id']);}[_0x2055('0x12')](){this[_0x2055('0x17')][_0x2055('0x14')](this['model']['id']);}[_0x2055('0x1d')](){this['view']['unbind']('isEnabled'),this['view'][_0x2055('0x11')]('canAccept'),this[_0x2055('0x1a')]['unbind'](_0x2055('0xf')),this[_0x2055('0xc')](),this[_0x2055('0x10')]['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}[_0x2055('0x0')](){const _0x534975=_0x5969c1(this[_0x2055('0xd')][_0x2055('0xa')],_0x2055('0x1b'));this['_pendingAction']=this[_0x2055('0xd')]['plugins'][_0x2055('0x1e')]('PendingActions')[_0x2055('0xe')](_0x534975);}['_removePendingAction'](){null!==this[_0x2055('0x3')]&&this['_editor'][_0x2055('0x4')][_0x2055('0x1e')](_0x2055('0x2'))[_0x2055('0x19')](this[_0x2055('0x3')]),this['_pendingAction']=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dc7=['fire','commentsListView','editor','_model','locale','updateComment','authoredAt','destroy','removeComment','_createCommentViews','commentThread','editorConfig','isReadOnly','_config','_createCommentThreadInputView','focus','submit','element','canDiscard','delegate','canAccept','cancel','length','isActive','addComment','commentThreadInputView','bind','descriptionParts','_localUser','set','hasDirtyComment','setData','isDirty','isEnabled','showInput','value','assign','commentInputView'];(function(_0x1b799d,_0x2dc7bc){const _0x2fa9b0=function(_0x71b6ad){while(--_0x71b6ad){_0x1b799d['push'](_0x1b799d['shift']());}};_0x2fa9b0(++_0x2dc7bc);}(_0x2dc7,0xd7));const _0x2fa9=function(_0x1b799d,_0x2dc7bc){_0x1b799d=_0x1b799d-0x0;let _0x2fa9b0=_0x2dc7[_0x1b799d];return _0x2fa9b0;};import{View as _0x445984}from'ckeditor5/src/ui.js';export default class es extends _0x445984{constructor(_0x348af4,_0x1fc743,_0x409546,_0x224a3c){super(_0x348af4),this[_0x2fa9('0xe')]=null,this['commentThreadInputView']=null,this[_0x2fa9('0x4')]('isActive',!0x1),this[_0x2fa9('0x4')]('authoredAt',_0x1fc743['authoredAt']),this[_0x2fa9('0x1')](_0x2fa9('0x13'))['to'](_0x1fc743),this['set'](_0x2fa9('0x2'),[]),this[_0x2fa9('0x4')](_0x2fa9('0x7'),!0x1),this[_0x2fa9('0x4')](_0x2fa9('0x8'),!0x1),this[_0x2fa9('0x4')](_0x2fa9('0x21'),!0x1),this[_0x2fa9('0x4')](_0x2fa9('0x1f'),!0x1),this[_0x2fa9('0x10')]=_0x1fc743,this[_0x2fa9('0x3')]=_0x409546,this[_0x2fa9('0x1a')]=_0x224a3c,_0x224a3c['disableComments']?this[_0x2fa9('0x4')](_0x2fa9('0x23'),0x1):this[_0x2fa9('0x16')]();}[_0x2fa9('0x1c')](){this[_0x2fa9('0x1e')][_0x2fa9('0x1c')]();}[_0x2fa9('0x14')](){this['commentsListView']&&this['commentsListView'][_0x2fa9('0x14')](),this[_0x2fa9('0x0')]&&this[_0x2fa9('0x0')]['destroy'](),super[_0x2fa9('0x14')]();}[_0x2fa9('0x16')](){const {CommentsListView:_0x5e7c77}=this[_0x2fa9('0x1a')];this['commentsListView']=new _0x5e7c77(this[_0x2fa9('0x11')],this['_model'][_0x2fa9('0x17')],Object[_0x2fa9('0xb')]({'CommentView':this[_0x2fa9('0x1a')]['CommentView']},this['_config'])),this[_0x2fa9('0xe')][_0x2fa9('0x20')](_0x2fa9('0x15'))['to'](this),this[_0x2fa9('0xe')][_0x2fa9('0x20')](_0x2fa9('0x12'))['to'](this),this[_0x2fa9('0xe')][_0x2fa9('0x1')](_0x2fa9('0x24'))['to'](this),this['set'](_0x2fa9('0x23'),this[_0x2fa9('0xe')]['length']+0x1),this[_0x2fa9('0x1')](_0x2fa9('0x23'))['to'](this[_0x2fa9('0xe')],_0x2fa9('0x23'),_0x4b3f47=>_0x4b3f47+0x1),this[_0x2fa9('0x0')]=this[_0x2fa9('0x1b')](),this['on'](_0x2fa9('0x15'),()=>this[_0x2fa9('0x1c')]()),this[_0x2fa9('0x1')](_0x2fa9('0x7'))['to'](this[_0x2fa9('0xe')],_0x2fa9('0x5'),this[_0x2fa9('0x0')][_0x2fa9('0xc')],_0x2fa9('0xa'),(_0x6f13ee,_0x48f5e9)=>_0x6f13ee||!!_0x48f5e9);}[_0x2fa9('0x1b')](){const {CommentThreadInputView:_0x34f712}=this[_0x2fa9('0x1a')],_0x366d7b=new _0x34f712(this[_0x2fa9('0x11')],this[_0x2fa9('0x3')],this[_0x2fa9('0x1a')][_0x2fa9('0x18')]),_0x535f30=_0x366d7b[_0x2fa9('0xc')];return _0x366d7b[_0x2fa9('0x1')](_0x2fa9('0x9'))['to'](this,_0x2fa9('0x24'),this[_0x2fa9('0x10')][_0x2fa9('0x17')],_0x2fa9('0x19'),_0x535f30,_0x2fa9('0xa'),(_0x48ca10,_0x26cbd0,_0x1273f8)=>!!_0x1273f8||_0x48ca10&&!_0x26cbd0),_0x535f30['on'](_0x2fa9('0x1d'),(_0x1d042a,_0x5194a5)=>{this[_0x2fa9('0xd')](_0x2fa9('0x25'),_0x5194a5),_0x535f30[_0x2fa9('0xf')][_0x2fa9('0x6')]('');}),_0x535f30['on'](_0x2fa9('0x22'),()=>this[_0x2fa9('0x1c')]()),_0x535f30['bind']('disabledSubmit')['to'](this[_0x2fa9('0x10')][_0x2fa9('0x17')],_0x2fa9('0x19')),_0x366d7b;}}
23
+ const _0x3dd2=['isReadOnly','set','removeComment','updateComment','authoredAt','bind','canDiscard','descriptionParts','length','element','commentThread','_createCommentThreadInputView','hasDirtyComment','commentInputView','commentsListView','isDirty','delegate','_createCommentViews','submit','commentThreadInputView','_localUser','_model','value','editor','focus','fire','_config','isActive','assign','isEnabled','disabledSubmit','destroy','setData'];(function(_0x3b23e,_0x3dd2f1){const _0x275aa2=function(_0x55fd06){while(--_0x55fd06){_0x3b23e['push'](_0x3b23e['shift']());}};_0x275aa2(++_0x3dd2f1);}(_0x3dd2,0x64));const _0x275a=function(_0x3b23e,_0x3dd2f1){_0x3b23e=_0x3b23e-0x0;let _0x275aa2=_0x3dd2[_0x3b23e];return _0x275aa2;};import{View as _0x399cee}from'ckeditor5/src/ui.js';export default class es extends _0x399cee{constructor(_0x180c15,_0x428e89,_0x95736c,_0x46488f){super(_0x180c15),this[_0x275a('0xd')]=null,this[_0x275a('0x12')]=null,this[_0x275a('0x0')](_0x275a('0x1a'),!0x1),this[_0x275a('0x0')]('authoredAt',_0x428e89[_0x275a('0x3')]),this[_0x275a('0x4')]('authoredAt')['to'](_0x428e89),this[_0x275a('0x0')](_0x275a('0x6'),[]),this[_0x275a('0x0')](_0x275a('0xe'),!0x1),this['set'](_0x275a('0x1c'),!0x1),this['set']('canAccept',!0x1),this[_0x275a('0x0')](_0x275a('0x5'),!0x1),this[_0x275a('0x14')]=_0x428e89,this['_localUser']=_0x95736c,this[_0x275a('0x19')]=_0x46488f,_0x46488f['disableComments']?this['set']('length',0x1):this[_0x275a('0x10')]();}[_0x275a('0x17')](){this[_0x275a('0x8')][_0x275a('0x17')]();}[_0x275a('0x1e')](){this[_0x275a('0xd')]&&this[_0x275a('0xd')][_0x275a('0x1e')](),this['commentThreadInputView']&&this[_0x275a('0x12')]['destroy'](),super[_0x275a('0x1e')]();}[_0x275a('0x10')](){const {CommentsListView:_0x5e0dd6}=this[_0x275a('0x19')];this['commentsListView']=new _0x5e0dd6(this['locale'],this['_model']['commentThread'],Object[_0x275a('0x1b')]({'CommentView':this[_0x275a('0x19')]['CommentView']},this[_0x275a('0x19')])),this[_0x275a('0xd')][_0x275a('0xf')]('removeComment')['to'](this),this[_0x275a('0xd')]['delegate'](_0x275a('0x2'))['to'](this),this[_0x275a('0xd')][_0x275a('0x4')](_0x275a('0x1a'))['to'](this),this[_0x275a('0x0')](_0x275a('0x7'),this[_0x275a('0xd')][_0x275a('0x7')]+0x1),this[_0x275a('0x4')](_0x275a('0x7'))['to'](this[_0x275a('0xd')],_0x275a('0x7'),_0x53f57c=>_0x53f57c+0x1),this[_0x275a('0x12')]=this[_0x275a('0xa')](),this['on'](_0x275a('0x1'),()=>this[_0x275a('0x17')]()),this[_0x275a('0x4')](_0x275a('0xe'))['to'](this[_0x275a('0xd')],_0x275a('0xb'),this[_0x275a('0x12')]['commentInputView'],_0x275a('0x15'),(_0x3c5db2,_0x170e9c)=>_0x3c5db2||!!_0x170e9c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x822f90}=this['_config'],_0x27cdd1=new _0x822f90(this['locale'],this[_0x275a('0x13')],this['_config']['editorConfig']),_0x3ddb53=_0x27cdd1[_0x275a('0xc')];return _0x27cdd1[_0x275a('0x4')]('showInput')['to'](this,_0x275a('0x1a'),this[_0x275a('0x14')][_0x275a('0x9')],_0x275a('0x20'),_0x3ddb53,_0x275a('0x15'),(_0x457727,_0x37d87f,_0x1874ff)=>!!_0x1874ff||_0x457727&&!_0x37d87f),_0x3ddb53['on'](_0x275a('0x11'),(_0x1370c2,_0x1b6387)=>{this[_0x275a('0x18')]('addComment',_0x1b6387),_0x3ddb53[_0x275a('0x16')][_0x275a('0x1f')]('');}),_0x3ddb53['on']('cancel',()=>this[_0x275a('0x17')]()),_0x3ddb53[_0x275a('0x4')](_0x275a('0x1d'))['to'](this['_model']['commentThread'],_0x275a('0x20')),_0x27cdd1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d2a=['querySelector','children','ck-annotation__user','@external','editorReady','delegate','editorDestroyed','render','ck-annotation__info','_createButton','_config','ck-suggestion--discard','bind','ck-annotation__info-name','isExternal','extendTemplate','<span\x20class=\x22ck-suggestion-type\x22>','type','div','innerHTML','ck-comment__external','canAccept','getTemplate','ck-suggestion-','\x22></span>','ck-annotation','EXTERNAL_IMPORT_WORD_SUGGESTION','isEnabled','author','creator','source','Discard\x20suggestion','attributes','userView','name','ck-suggestion--accept','getExternalSuggestionNote','cancel','discardSuggestion','commentThread','split','set','ck-suggestion-wrapper--active','ck-suggestion__actions','locale','_model','discardButton','commentThreadInputView','</p>','ck-annotation__actions','value','ck-suggestion__user','time','disableComments','ck-suggestion-wrapper','change:description','map','descriptionParts','</span>','setTemplate','color','EXTERNAL_AVATAR','span','push','acceptButton','isActive','getUserViewNotificationText','commentsListView','check','ck-suggestion--disabled-comments','ck-suggestion__main','canDiscard','title','EXTERNAL_SUGGESTION','importWord','ck-annotation__content-wrapper','createElement','\x22\x20title=\x22','Accept\x20suggestion','ck-suggestion__info-name','_descriptionElement','description'];(function(_0x22d6cf,_0x5d2a52){const _0x26ba03=function(_0x25aa80){while(--_0x25aa80){_0x22d6cf['push'](_0x22d6cf['shift']());}};_0x26ba03(++_0x5d2a52);}(_0x5d2a,0xf6));const _0x26ba=function(_0x22d6cf,_0x5d2a52){_0x22d6cf=_0x22d6cf-0x0;let _0x26ba03=_0x5d2a[_0x22d6cf];return _0x26ba03;};import{getTranslation as _0x363ca1}from'../../utils/common-translations.js';import{default as _0x278252}from'./basesuggestionthreadview.js';import{ButtonView as _0x22e0ea}from'ckeditor5/src/ui.js';import{icons as _0x2869b3}from'ckeditor5/src/core.js';import{trimHtml as _0x33734f,UserView as _0x19af4a}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x278252{constructor(_0x8a674c,_0x71a3ea,_0x2d7501,_0x108dd7){super(_0x8a674c,_0x71a3ea,_0x2d7501,_0x108dd7),this[_0x26ba('0x29')]('type',''),this[_0x26ba('0xc')](_0x26ba('0x11'))['to'](this,_0x26ba('0x39'),_0x8f5806=>_0x8f5806&&_0x8f5806[0x0]?_0x8f5806[0x0][_0x26ba('0x11')]:''),this[_0x26ba('0xc')](_0x26ba('0x51'))['to'](this,'descriptionParts',this,_0x26ba('0x41'),(_0x4b4369,_0x57d83d)=>{let _0x32574f='';for(const _0x30d2b2 of _0x4b4369)_0x32574f+='<p>'+ds(_0x30d2b2['content'],_0x30d2b2[_0x26ba('0x3c')])+_0x26ba('0x30');return _0x57d83d?_0x32574f:_0x33734f(_0x32574f,{'limit':0x8c});}),this[_0x26ba('0x50')]=null,this['acceptButton']=this[_0x26ba('0x9')](_0x363ca1(_0x8a674c,_0x26ba('0x4e')),_0x2869b3[_0x26ba('0x44')],_0x26ba('0x23'),'acceptSuggestion','sw'),this['acceptButton'][_0x26ba('0xc')](_0x26ba('0x1b'))['to'](this,_0x26ba('0x15')),this[_0x26ba('0x2e')]=this[_0x26ba('0x9')](_0x363ca1(_0x8a674c,_0x26ba('0x1f')),_0x2869b3[_0x26ba('0x25')],_0x26ba('0xb'),_0x26ba('0x26'),'sw'),this['discardButton'][_0x26ba('0xc')]('isEnabled')['to'](this,_0x26ba('0x47')),this[_0x26ba('0x21')]=new _0x19af4a(_0x8a674c,this[_0x26ba('0x2d')][_0x26ba('0x1c')],this['getUserViewNotificationText']()),this['userView'][_0x26ba('0xf')]({'attributes':{'class':[_0x26ba('0x33'),_0x26ba('0x2')]}}),this[_0x26ba('0x3b')](this['getTemplate']());}[_0x26ba('0x16')](){const _0x833e48=this['bindTemplate'],_0x15c03f=[{'tag':_0x26ba('0x12'),'attributes':{'class':['ck-suggestion__info',_0x26ba('0x8')]},'children':[{'tag':'span','children':[{'text':this[_0x26ba('0x21')][_0x26ba('0x22')]}],'attributes':{'class':[_0x26ba('0x4f'),_0x26ba('0xd')]}},{'tag':_0x26ba('0x34'),'attributes':{'datetime':_0x833e48['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x833e48['to']('authoredAt',_0x522174=>this['_config']['formatDateTime'](_0x522174))}]}]},{'tag':_0x26ba('0x12'),'attributes':{'class':[_0x26ba('0x2b'),_0x26ba('0x31')]},'children':[this[_0x26ba('0x40')],this[_0x26ba('0x2e')]]},{'tag':'div','attributes':{'class':[_0x26ba('0x4b')]}}];this[_0x26ba('0x2d')][_0x26ba('0xe')]&&_0x15c03f[_0x26ba('0x3f')]({'tag':_0x26ba('0x12'),'attributes':{'class':[_0x26ba('0x14')]},'children':[{'text':this[_0x26ba('0x24')]()}]});const _0x19a3c0={'tag':'div','attributes':{'class':[_0x26ba('0x36'),_0x833e48['if'](_0x26ba('0x41'),_0x26ba('0x2a')),_0x833e48['to'](_0x26ba('0x11'),_0x232da9=>_0x26ba('0x17')+_0x232da9),this[_0x26ba('0xa')][_0x26ba('0x35')]&&_0x26ba('0x45')],'data-suggestion-id':this[_0x26ba('0x2d')]['id'],'data-thread-id':this[_0x26ba('0x2d')][_0x26ba('0x27')]['id'],'data-author-id':this['_model'][_0x26ba('0x1c')]['id'],'tabindex':-0x1},'children':[{'tag':_0x26ba('0x12'),'attributes':{'class':['ck-suggestion',_0x26ba('0x19')]},'children':[this['userView'],{'tag':_0x26ba('0x12'),'attributes':{'class':[_0x26ba('0x46'),'ck-annotation__main']},'children':_0x15c03f}]}]};return this[_0x26ba('0x43')]&&this['commentThreadInputView']&&(_0x19a3c0[_0x26ba('0x1')][_0x26ba('0x3f')](this['commentsListView'],this[_0x26ba('0x2f')]),this[_0x26ba('0x43')][_0x26ba('0x5')](_0x26ba('0x4'))['to'](this),this[_0x26ba('0x43')][_0x26ba('0x5')](_0x26ba('0x6'))['to'](this),this[_0x26ba('0x2f')]['delegate'](_0x26ba('0x4'))['to'](this),this[_0x26ba('0x2f')][_0x26ba('0x5')](_0x26ba('0x6'))['to'](this)),_0x19a3c0;}[_0x26ba('0x7')](){super[_0x26ba('0x7')](),this['_descriptionElement']=this['element'][_0x26ba('0x0')]('.ck-annotation__content-wrapper'),this[_0x26ba('0x50')][_0x26ba('0x13')]=this['description'],this['on'](_0x26ba('0x37'),(_0x2b60e9,_0x5dc092,_0x27962f)=>{this[_0x26ba('0x50')][_0x26ba('0x13')]=_0x27962f;});}[_0x26ba('0x9')](_0x15967e,_0x7732b6,_0x4437e5,_0x360144,_0x4e1cd9){const _0x3d9148=new _0x22e0ea(this['locale']);return _0x3d9148[_0x26ba('0x29')]({'label':_0x15967e,'icon':_0x7732b6,'tooltip':!0x0,'tooltipPosition':_0x4e1cd9}),_0x3d9148['extendTemplate']({'attributes':{'class':_0x4437e5}}),_0x3d9148['on']('execute',()=>{this['fire'](_0x360144,this['_model']['id']);}),_0x3d9148;}['getExternalSuggestionNote'](){return _0x26ba('0x4a')===this[_0x26ba('0x2d')]['attributes'][_0x26ba('0x3')][_0x26ba('0x1e')]?_0x363ca1(this[_0x26ba('0x2c')],_0x26ba('0x1a')):_0x363ca1(this[_0x26ba('0x2c')],_0x26ba('0x49'));}[_0x26ba('0x42')](){return this[_0x26ba('0x2d')][_0x26ba('0xe')]?_0x26ba('0x4a')===this[_0x26ba('0x2d')][_0x26ba('0x20')][_0x26ba('0x3')][_0x26ba('0x1e')]?_0x363ca1(this[_0x26ba('0x2c')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x26ba('0x2d')][_0x26ba('0x1d')][_0x26ba('0x22')]):_0x363ca1(this[_0x26ba('0x2c')],_0x26ba('0x3d'),this[_0x26ba('0x2d')][_0x26ba('0x1d')][_0x26ba('0x22')]):null;}}function ds(_0x315b37,_0x58541f){let _0x5c2e9b='';return _0x5c2e9b+=_0x315b37[_0x26ba('0x28')]('*')[_0x26ba('0x38')]((_0x34ab8a,_0x179ef1)=>_0x179ef1%0x2!=0x0?_0x26ba('0x10')+us(_0x34ab8a)+_0x26ba('0x3a'):us(_0x34ab8a))['join'](''),_0x58541f&&(_0x5c2e9b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58541f[_0x26ba('0x32')]+_0x26ba('0x4d')+_0x58541f[_0x26ba('0x48')]+_0x26ba('0x18')),_0x5c2e9b;}function us(_0x2d7855){const _0x5522b3=document[_0x26ba('0x4c')](_0x26ba('0x3e'));return _0x5522b3['innerText']=_0x2d7855,_0x5522b3[_0x26ba('0x13')];}
23
+ const _0x934b=['map','innerText','content','importWord','canAccept','isEnabled','isExternal','span','locale','bind','getUserViewNotificationText','discardButton','ck-suggestion--discard','_createButton','set','color','_descriptionElement','fire','value','commentThread','ck-suggestion__actions','EXTERNAL_IMPORT_WORD_AVATAR','bindTemplate','extendTemplate','ck-annotation__actions','ck-annotation__info','_model','type','authoredAt','div','_config','editorDestroyed','EXTERNAL_SUGGESTION','EXTERNAL_AVATAR','ck-suggestion-wrapper','ck-comment__info-time','element','setTemplate','commentThreadInputView','author','change:description','ck-suggestion__user','name','userView','EXTERNAL_IMPORT_WORD_SUGGESTION','description','ck-annotation__info-time','acceptButton','ck-suggestion-wrapper--active','getExternalSuggestionNote','ck-suggestion--disabled-comments','ck-suggestion__main','render','editorReady','ck-suggestion','ck-suggestion--accept','attributes','ck-annotation__info-name','getTemplate','isActive','.ck-annotation__content-wrapper','push','creator','time','Accept\x20suggestion','innerHTML','execute','</span>','delegate','commentsListView','descriptionParts','ck-annotation__content-wrapper','acceptSuggestion','<p>','ck-annotation__main','split','@external','<span\x20class=\x22ck-suggestion-type\x22>'];(function(_0x4f259b,_0x934b9d){const _0x26ec5f=function(_0x2c241c){while(--_0x2c241c){_0x4f259b['push'](_0x4f259b['shift']());}};_0x26ec5f(++_0x934b9d);}(_0x934b,0x1b0));const _0x26ec=function(_0x4f259b,_0x934b9d){_0x4f259b=_0x4f259b-0x0;let _0x26ec5f=_0x934b[_0x4f259b];return _0x26ec5f;};import{getTranslation as _0x41a76e}from'../../utils/common-translations.js';import{default as _0x3b8f22}from'./basesuggestionthreadview.js';import{ButtonView as _0xc119dc}from'ckeditor5/src/ui.js';import{icons as _0x2fc414}from'ckeditor5/src/core.js';import{trimHtml as _0x4feb70,UserView as _0x4ddf8e}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x3b8f22{constructor(_0x4c2013,_0x3ad3a2,_0x51f13e,_0x55dc52){super(_0x4c2013,_0x3ad3a2,_0x51f13e,_0x55dc52),this[_0x26ec('0x32')](_0x26ec('0x3f'),''),this[_0x26ec('0x2d')]('type')['to'](this,_0x26ec('0x1c'),_0x5b4e60=>_0x5b4e60&&_0x5b4e60[0x0]?_0x5b4e60[0x0][_0x26ec('0x3f')]:''),this[_0x26ec('0x2d')](_0x26ec('0x3'))['to'](this,'descriptionParts',this,_0x26ec('0x11'),(_0x3d5895,_0x5b4229)=>{let _0x15a4d7='';for(const _0x30ec52 of _0x3d5895)_0x15a4d7+=_0x26ec('0x1f')+ds(_0x30ec52[_0x26ec('0x26')],_0x30ec52[_0x26ec('0x33')])+'</p>';return _0x5b4229?_0x15a4d7:_0x4feb70(_0x15a4d7,{'limit':0x8c});}),this[_0x26ec('0x34')]=null,this['acceptButton']=this['_createButton'](_0x41a76e(_0x4c2013,_0x26ec('0x16')),_0x2fc414['check'],_0x26ec('0xd'),_0x26ec('0x1e'),'sw'),this['acceptButton'][_0x26ec('0x2d')](_0x26ec('0x29'))['to'](this,_0x26ec('0x28')),this[_0x26ec('0x2f')]=this[_0x26ec('0x31')](_0x41a76e(_0x4c2013,'Discard\x20suggestion'),_0x2fc414['cancel'],_0x26ec('0x30'),'discardSuggestion','sw'),this[_0x26ec('0x2f')][_0x26ec('0x2d')](_0x26ec('0x29'))['to'](this,'canDiscard'),this[_0x26ec('0x1')]=new _0x4ddf8e(_0x4c2013,this[_0x26ec('0x3e')]['author'],this[_0x26ec('0x2e')]()),this['userView']['extendTemplate']({'attributes':{'class':[_0x26ec('0x4d'),'ck-annotation__user']}}),this[_0x26ec('0x49')](this[_0x26ec('0x10')]());}[_0x26ec('0x10')](){const _0x1e65dd=this[_0x26ec('0x3a')],_0x1d9701=[{'tag':_0x26ec('0x41'),'attributes':{'class':['ck-suggestion__info',_0x26ec('0x3d')]},'children':[{'tag':'span','children':[{'text':this[_0x26ec('0x1')][_0x26ec('0x0')]}],'attributes':{'class':['ck-suggestion__info-name',_0x26ec('0xf')]}},{'tag':_0x26ec('0x15'),'attributes':{'datetime':_0x1e65dd['to'](_0x26ec('0x40')),'class':[_0x26ec('0x47'),_0x26ec('0x4')]},'children':[{'text':_0x1e65dd['to'](_0x26ec('0x40'),_0x40b355=>this[_0x26ec('0x42')]['formatDateTime'](_0x40b355))}]}]},{'tag':_0x26ec('0x41'),'attributes':{'class':[_0x26ec('0x38'),_0x26ec('0x3c')]},'children':[this[_0x26ec('0x5')],this[_0x26ec('0x2f')]]},{'tag':_0x26ec('0x41'),'attributes':{'class':[_0x26ec('0x1d')]}}];this[_0x26ec('0x3e')][_0x26ec('0x2a')]&&_0x1d9701[_0x26ec('0x13')]({'tag':_0x26ec('0x41'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x26ec('0x7')]()}]});const _0x1101aa={'tag':'div','attributes':{'class':[_0x26ec('0x46'),_0x1e65dd['if'](_0x26ec('0x11'),_0x26ec('0x6')),_0x1e65dd['to'](_0x26ec('0x3f'),_0x1f68d5=>'ck-suggestion-'+_0x1f68d5),this[_0x26ec('0x42')]['disableComments']&&_0x26ec('0x8')],'data-suggestion-id':this[_0x26ec('0x3e')]['id'],'data-thread-id':this['_model'][_0x26ec('0x37')]['id'],'data-author-id':this[_0x26ec('0x3e')][_0x26ec('0x4b')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x26ec('0xc'),'ck-annotation']},'children':[this[_0x26ec('0x1')],{'tag':_0x26ec('0x41'),'attributes':{'class':[_0x26ec('0x9'),_0x26ec('0x20')]},'children':_0x1d9701}]}]};return this[_0x26ec('0x1b')]&&this[_0x26ec('0x4a')]&&(_0x1101aa['children'][_0x26ec('0x13')](this[_0x26ec('0x1b')],this[_0x26ec('0x4a')]),this[_0x26ec('0x1b')]['delegate']('editorReady')['to'](this),this[_0x26ec('0x1b')][_0x26ec('0x1a')](_0x26ec('0x43'))['to'](this),this['commentThreadInputView']['delegate'](_0x26ec('0xb'))['to'](this),this[_0x26ec('0x4a')][_0x26ec('0x1a')](_0x26ec('0x43'))['to'](this)),_0x1101aa;}[_0x26ec('0xa')](){super[_0x26ec('0xa')](),this[_0x26ec('0x34')]=this[_0x26ec('0x48')]['querySelector'](_0x26ec('0x12')),this[_0x26ec('0x34')][_0x26ec('0x17')]=this[_0x26ec('0x3')],this['on'](_0x26ec('0x4c'),(_0x3e7d79,_0x5c7529,_0x426b99)=>{this['_descriptionElement'][_0x26ec('0x17')]=_0x426b99;});}[_0x26ec('0x31')](_0x3515cd,_0xf2f5e5,_0x353d6a,_0x48c0c3,_0x3edc60){const _0x2ae097=new _0xc119dc(this[_0x26ec('0x2c')]);return _0x2ae097[_0x26ec('0x32')]({'label':_0x3515cd,'icon':_0xf2f5e5,'tooltip':!0x0,'tooltipPosition':_0x3edc60}),_0x2ae097[_0x26ec('0x3b')]({'attributes':{'class':_0x353d6a}}),_0x2ae097['on'](_0x26ec('0x18'),()=>{this[_0x26ec('0x35')](_0x48c0c3,this['_model']['id']);}),_0x2ae097;}[_0x26ec('0x7')](){return _0x26ec('0x27')===this['_model']['attributes'][_0x26ec('0x22')]['source']?_0x41a76e(this[_0x26ec('0x2c')],_0x26ec('0x2')):_0x41a76e(this['locale'],_0x26ec('0x44'));}[_0x26ec('0x2e')](){return this['_model'][_0x26ec('0x2a')]?'importWord'===this[_0x26ec('0x3e')][_0x26ec('0xe')][_0x26ec('0x22')]['source']?_0x41a76e(this[_0x26ec('0x2c')],_0x26ec('0x39'),this[_0x26ec('0x3e')]['creator']['name']):_0x41a76e(this[_0x26ec('0x2c')],_0x26ec('0x45'),this['_model'][_0x26ec('0x14')]['name']):null;}}function ds(_0x54afe9,_0x32da8d){let _0x3b3a5c='';return _0x3b3a5c+=_0x54afe9[_0x26ec('0x21')]('*')[_0x26ec('0x24')]((_0x17cc7e,_0x32bfb6)=>_0x32bfb6%0x2!=0x0?_0x26ec('0x23')+us(_0x17cc7e)+_0x26ec('0x19'):us(_0x17cc7e))['join'](''),_0x32da8d&&(_0x3b3a5c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x32da8d[_0x26ec('0x36')]+'\x22\x20title=\x22'+_0x32da8d['title']+'\x22></span>'),_0x3b3a5c;}function us(_0x5f1585){const _0x3f8dd0=document['createElement'](_0x26ec('0x2b'));return _0x3f8dd0[_0x26ec('0x25')]=_0x5f1585,_0x3f8dd0[_0x26ec('0x17')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0xfdcbdb,_0x471971,_0x57e8cf){const t=_0xfdcbdb['t'];switch(_0x471971){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',_0x57e8cf);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x57e8cf);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x57e8cf);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x57e8cf);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x57e8cf);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',_0x57e8cf);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x57e8cf);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',_0x57e8cf);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x57e8cf);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x57e8cf);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x57e8cf);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x57e8cf);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x57e8cf);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x57e8cf);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x57e8cf);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x57e8cf);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x57e8cf);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x57e8cf);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x57e8cf);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x57e8cf);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x57e8cf);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x57e8cf);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x57e8cf);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'},_0x57e8cf);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x57e8cf);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x57e8cf);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x57e8cf);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x57e8cf);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x57e8cf);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'},_0x57e8cf);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x57e8cf);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x57e8cf);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x57e8cf);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x57e8cf);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'},_0x57e8cf);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x57e8cf);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'},_0x57e8cf);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'},_0x57e8cf);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x57e8cf);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'},_0x57e8cf);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x57e8cf);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'},_0x57e8cf);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x57e8cf);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x57e8cf);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'},_0x57e8cf);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'},_0x57e8cf);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 _0x471971;}}
23
+ export function getTranslation(_0x2eff5c,_0x5aef38,_0x7a16c1){const t=_0x2eff5c['t'];switch(_0x5aef38){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',_0x7a16c1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x7a16c1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x7a16c1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x7a16c1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x7a16c1);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',_0x7a16c1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x7a16c1);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',_0x7a16c1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x7a16c1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x7a16c1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x7a16c1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x7a16c1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x7a16c1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x7a16c1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x7a16c1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x7a16c1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x7a16c1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x7a16c1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x7a16c1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x7a16c1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x7a16c1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x7a16c1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x7a16c1);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'},_0x7a16c1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x7a16c1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x7a16c1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x7a16c1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x7a16c1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x7a16c1);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'},_0x7a16c1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x7a16c1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x7a16c1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x7a16c1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x7a16c1);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'},_0x7a16c1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x7a16c1);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'},_0x7a16c1);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'},_0x7a16c1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x7a16c1);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'},_0x7a16c1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x7a16c1);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'},_0x7a16c1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x7a16c1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x7a16c1);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'},_0x7a16c1);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'},_0x7a16c1);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 _0x5aef38;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26d3=['change','deletion','join','type','isTouching','start','value','createPositionBefore','sort','getRanges','createPositionAt','end','createRange','next','isArray','isIntersecting','add','createPositionAfter','isMultiRange','color','map','isCollapsed','splice'];(function(_0x14645a,_0x26d391){const _0x5c6aaf=function(_0x196075){while(--_0x196075){_0x14645a['push'](_0x14645a['shift']());}};_0x5c6aaf(++_0x26d391);}(_0x26d3,0x69));const _0x5c6a=function(_0x14645a,_0x26d391){_0x14645a=_0x14645a-0x0;let _0x5c6aaf=_0x26d3[_0x14645a];return _0x5c6aaf;};export function normalizeDescription(_0x37721b){return Array[_0x5c6a('0x1')](_0x37721b)||(_0x37721b=[_0x37721b]),_0x37721b[_0x5c6a('0x7')](_0x381613=>{const _0x49aa22=_0x381613['content']['replace'](/\*/g,''),_0x21290a=_0x381613['color']?'\x20[color\x20'+_0x381613[_0x5c6a('0x6')][_0x5c6a('0x10')]+']':'';return'['+_0x381613[_0x5c6a('0xd')]+']\x20'+_0x49aa22+_0x21290a;})[_0x5c6a('0xc')](';\x20');}export function sortSuggestions(_0x884f3d){return _0x884f3d[_0x5c6a('0x12')]((_0x543526,_0x2c0fee)=>_0x5c6a('0xb')==_0x543526[_0x5c6a('0xd')]&&'deletion'!=_0x2c0fee[_0x5c6a('0xd')]?-0x1:_0x5c6a('0xb')!=_0x543526[_0x5c6a('0xd')]&&'deletion'==_0x2c0fee[_0x5c6a('0xd')]?0x1:0x0);}export function getSelectedSuggestions(_0x5d2781,_0x6eb61e){const _0x176139=Array['from'](_0x5d2781[_0x5c6a('0x13')]()),_0x4e227f=new Set();for(const _0x41ba05 of _0x6eb61e)if(_0x41ba05['isInContent'])for(const _0x355ff1 of _0x176139)for(const _0x185685 of _0x41ba05[_0x5c6a('0x13')]())(_0x355ff1[_0x5c6a('0x2')](_0x185685)||_0x5d2781[_0x5c6a('0x8')]&&!_0x41ba05[_0x5c6a('0x5')]&&_0x41ba05[_0x5c6a('0x0')]&&_0x185685[_0x5c6a('0x15')][_0x5c6a('0xe')](_0x355ff1[_0x5c6a('0xf')]))&&_0x4e227f[_0x5c6a('0x3')](_0x41ba05);return _0x4e227f;}export function getRangesOfBlockGroups(_0xf09168,_0x3fbce0){let _0x55d1e8,_0x40242d=0x0;const _0x35fb8a=[],_0x150bcc=_0x3fbce0['schema'];for(;_0x40242d<_0xf09168['length'];){const _0x431e7b=_0xf09168[_0x40242d],_0x214dc3=_0xf09168[_0x40242d+0x1];_0x55d1e8||(_0x55d1e8=_0x3fbce0['createPositionBefore'](_0x431e7b)),co(_0x3fbce0,_0x431e7b,_0x214dc3)||(_0x35fb8a['push'](_0x3fbce0[_0x5c6a('0x16')](_0x55d1e8,_0x150bcc['isObject'](_0x431e7b)?_0x3fbce0['createPositionAfter'](_0x431e7b):_0x3fbce0[_0x5c6a('0x14')](_0x431e7b,_0x5c6a('0x15')))),_0x55d1e8=null),_0x40242d++;}return _0x35fb8a;}function co(_0x3f0d47,_0x43b328,_0x3750dd){if(!_0x3750dd)return!0x1;const _0x44a7d6=_0x3f0d47[_0x5c6a('0x4')](_0x43b328),_0x4675f5=_0x3f0d47[_0x5c6a('0x11')](_0x3750dd);return _0x44a7d6[_0x5c6a('0xe')](_0x4675f5);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x5746e4,_0x4a3c62,_0x25ef59){for(;_0x25ef59['length'];){const _0x2310c1=_0x25ef59[_0x5c6a('0x9')](0x0,0x64);_0x5746e4[_0x5c6a('0xa')](()=>{for(const _0x4a5a30 of _0x2310c1)_0x4a5a30['isInContent']&&_0x4a3c62['execute'](_0x4a5a30['id']);});}}
23
+ const _0x3179=['isObject','next','schema','isIntersecting','createPositionAfter','content','push','color','getRanges','end','isTouching','splice','add','map','execute','change','isInContent','isArray','createPositionAt','sort','deletion','value','from','createPositionBefore','join','isCollapsed','length','type'];(function(_0x393554,_0x3179b4){const _0x37c9e6=function(_0x26295a){while(--_0x26295a){_0x393554['push'](_0x393554['shift']());}};_0x37c9e6(++_0x3179b4);}(_0x3179,0x154));const _0x37c9=function(_0x393554,_0x3179b4){_0x393554=_0x393554-0x0;let _0x37c9e6=_0x3179[_0x393554];return _0x37c9e6;};export function normalizeDescription(_0x288330){return Array[_0x37c9('0xd')](_0x288330)||(_0x288330=[_0x288330]),_0x288330[_0x37c9('0x9')](_0x138a4=>{const _0x237c4c=_0x138a4[_0x37c9('0x1')]['replace'](/\*/g,''),_0x289643=_0x138a4['color']?'\x20[color\x20'+_0x138a4[_0x37c9('0x3')][_0x37c9('0x11')]+']':'';return'['+_0x138a4[_0x37c9('0x17')]+']\x20'+_0x237c4c+_0x289643;})[_0x37c9('0x14')](';\x20');}export function sortSuggestions(_0x230f43){return _0x230f43[_0x37c9('0xf')]((_0x3c982c,_0xa4a813)=>'deletion'==_0x3c982c[_0x37c9('0x17')]&&_0x37c9('0x10')!=_0xa4a813['type']?-0x1:_0x37c9('0x10')!=_0x3c982c[_0x37c9('0x17')]&&'deletion'==_0xa4a813[_0x37c9('0x17')]?0x1:0x0);}export function getSelectedSuggestions(_0x471ae6,_0x281bb3){const _0xfeff8e=Array[_0x37c9('0x12')](_0x471ae6['getRanges']()),_0x3bd993=new Set();for(const _0x8f9328 of _0x281bb3)if(_0x8f9328[_0x37c9('0xc')])for(const _0x41d9ed of _0xfeff8e)for(const _0x197a27 of _0x8f9328[_0x37c9('0x4')]())(_0x41d9ed[_0x37c9('0x1b')](_0x197a27)||_0x471ae6[_0x37c9('0x15')]&&!_0x8f9328['isMultiRange']&&_0x8f9328[_0x37c9('0x19')]&&_0x197a27[_0x37c9('0x5')][_0x37c9('0x6')](_0x41d9ed['start']))&&_0x3bd993[_0x37c9('0x8')](_0x8f9328);return _0x3bd993;}export function getRangesOfBlockGroups(_0x584b20,_0x1f47f9){let _0x327681,_0x1dd60b=0x0;const _0x2e12ee=[],_0x17da8e=_0x1f47f9[_0x37c9('0x1a')];for(;_0x1dd60b<_0x584b20[_0x37c9('0x16')];){const _0x44428b=_0x584b20[_0x1dd60b],_0x2a2e19=_0x584b20[_0x1dd60b+0x1];_0x327681||(_0x327681=_0x1f47f9[_0x37c9('0x13')](_0x44428b)),co(_0x1f47f9,_0x44428b,_0x2a2e19)||(_0x2e12ee[_0x37c9('0x2')](_0x1f47f9['createRange'](_0x327681,_0x17da8e[_0x37c9('0x18')](_0x44428b)?_0x1f47f9[_0x37c9('0x0')](_0x44428b):_0x1f47f9[_0x37c9('0xe')](_0x44428b,_0x37c9('0x5')))),_0x327681=null),_0x1dd60b++;}return _0x2e12ee;}function co(_0x2e3ce0,_0x1089be,_0x416fb7){if(!_0x416fb7)return!0x1;const _0x3ec567=_0x2e3ce0['createPositionAfter'](_0x1089be),_0x2fde6f=_0x2e3ce0[_0x37c9('0x13')](_0x416fb7);return _0x3ec567['isTouching'](_0x2fde6f);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x12332f,_0x56a5a3,_0x321a19){for(;_0x321a19[_0x37c9('0x16')];){const _0x122434=_0x321a19[_0x37c9('0x7')](0x0,0x64);_0x12332f[_0x37c9('0xb')](()=>{for(const _0x1ddd7f of _0x122434)_0x1ddd7f[_0x37c9('0xc')]&&_0x56a5a3[_0x37c9('0xa')](_0x1ddd7f['id']);});}}