@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231217.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 (135) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/track-changes.js +1 -1
  3. package/package.json +4 -3
  4. package/src/augmentation.d.ts +2 -2
  5. package/src/commands/acceptsuggestioncommand.d.ts +2 -2
  6. package/src/commands/acceptsuggestioncommand.js +1 -1
  7. package/src/commands/discardsuggestioncommand.d.ts +2 -2
  8. package/src/commands/discardsuggestioncommand.js +1 -1
  9. package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
  10. package/src/commands/executeonallsuggestionscommand.js +1 -1
  11. package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
  12. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  13. package/src/commands/trackchangescommand.d.ts +1 -1
  14. package/src/commands/trackchangescommand.js +1 -1
  15. package/src/index.d.ts +12 -12
  16. package/src/index.js +1 -1
  17. package/src/integrations/aiassistant.d.ts +1 -1
  18. package/src/integrations/aiassistant.js +1 -1
  19. package/src/integrations/alignment.d.ts +1 -1
  20. package/src/integrations/alignment.js +1 -1
  21. package/src/integrations/basicstyles.d.ts +1 -1
  22. package/src/integrations/basicstyles.js +1 -1
  23. package/src/integrations/blockquote.d.ts +1 -1
  24. package/src/integrations/blockquote.js +1 -1
  25. package/src/integrations/ckbox.d.ts +1 -1
  26. package/src/integrations/ckbox.js +1 -1
  27. package/src/integrations/codeblock.d.ts +1 -1
  28. package/src/integrations/codeblock.js +1 -1
  29. package/src/integrations/comments.d.ts +1 -1
  30. package/src/integrations/comments.js +1 -1
  31. package/src/integrations/deletecommand.d.ts +2 -2
  32. package/src/integrations/deletecommand.js +1 -1
  33. package/src/integrations/documentlist.d.ts +1 -1
  34. package/src/integrations/documentlist.js +1 -1
  35. package/src/integrations/documentlistproperties.d.ts +3 -3
  36. package/src/integrations/documentlistproperties.js +1 -1
  37. package/src/integrations/entercommand.d.ts +2 -2
  38. package/src/integrations/entercommand.js +1 -1
  39. package/src/integrations/findandreplace.d.ts +1 -1
  40. package/src/integrations/findandreplace.js +1 -1
  41. package/src/integrations/font.d.ts +1 -1
  42. package/src/integrations/font.js +1 -1
  43. package/src/integrations/formatpainter.d.ts +1 -1
  44. package/src/integrations/formatpainter.js +1 -1
  45. package/src/integrations/heading.d.ts +1 -1
  46. package/src/integrations/heading.js +1 -1
  47. package/src/integrations/highlight.d.ts +1 -1
  48. package/src/integrations/highlight.js +1 -1
  49. package/src/integrations/horizontalline.d.ts +1 -1
  50. package/src/integrations/horizontalline.js +1 -1
  51. package/src/integrations/htmlembed.d.ts +1 -1
  52. package/src/integrations/htmlembed.js +1 -1
  53. package/src/integrations/image.d.ts +1 -1
  54. package/src/integrations/image.js +1 -1
  55. package/src/integrations/imagereplace.d.ts +1 -1
  56. package/src/integrations/imagereplace.js +1 -1
  57. package/src/integrations/imagestyle.d.ts +1 -1
  58. package/src/integrations/imagestyle.js +1 -1
  59. package/src/integrations/importword.d.ts +1 -1
  60. package/src/integrations/importword.js +1 -1
  61. package/src/integrations/indent.d.ts +1 -1
  62. package/src/integrations/indent.js +1 -1
  63. package/src/integrations/inputcommand.d.ts +2 -2
  64. package/src/integrations/inputcommand.js +1 -1
  65. package/src/integrations/link.d.ts +1 -1
  66. package/src/integrations/link.js +1 -1
  67. package/src/integrations/list.d.ts +1 -1
  68. package/src/integrations/list.js +1 -1
  69. package/src/integrations/listproperties.d.ts +3 -3
  70. package/src/integrations/listproperties.js +1 -1
  71. package/src/integrations/mediaembed.d.ts +1 -1
  72. package/src/integrations/mediaembed.js +1 -1
  73. package/src/integrations/mention.d.ts +1 -1
  74. package/src/integrations/mention.js +1 -1
  75. package/src/integrations/pagebreak.d.ts +1 -1
  76. package/src/integrations/pagebreak.js +1 -1
  77. package/src/integrations/paragraph.d.ts +1 -1
  78. package/src/integrations/paragraph.js +1 -1
  79. package/src/integrations/removeformat.d.ts +1 -1
  80. package/src/integrations/removeformat.js +1 -1
  81. package/src/integrations/restrictededitingmode.d.ts +1 -1
  82. package/src/integrations/restrictededitingmode.js +1 -1
  83. package/src/integrations/shiftentercommand.d.ts +2 -2
  84. package/src/integrations/shiftentercommand.js +1 -1
  85. package/src/integrations/standardeditingmode.d.ts +1 -1
  86. package/src/integrations/standardeditingmode.js +1 -1
  87. package/src/integrations/style.d.ts +1 -1
  88. package/src/integrations/style.js +1 -1
  89. package/src/integrations/table.d.ts +1 -1
  90. package/src/integrations/table.js +1 -1
  91. package/src/integrations/tablecaption.d.ts +2 -2
  92. package/src/integrations/tablecaption.js +1 -1
  93. package/src/integrations/tableclipboard.d.ts +2 -2
  94. package/src/integrations/tableclipboard.js +1 -1
  95. package/src/integrations/tablecolumnresize.d.ts +4 -4
  96. package/src/integrations/tablecolumnresize.js +1 -1
  97. package/src/integrations/tableheadings.d.ts +2 -2
  98. package/src/integrations/tableheadings.js +1 -1
  99. package/src/integrations/tablemergesplit.d.ts +2 -2
  100. package/src/integrations/tablemergesplit.js +1 -1
  101. package/src/integrations/tableofcontents.d.ts +1 -1
  102. package/src/integrations/tableofcontents.js +1 -1
  103. package/src/integrations/tableproperties.d.ts +4 -4
  104. package/src/integrations/tableproperties.js +1 -1
  105. package/src/integrations/template.d.ts +1 -1
  106. package/src/integrations/template.js +1 -1
  107. package/src/integrations/title.d.ts +1 -1
  108. package/src/integrations/title.js +1 -1
  109. package/src/integrations/undo.d.ts +1 -1
  110. package/src/integrations/undo.js +1 -1
  111. package/src/integrations/utils.d.ts +3 -3
  112. package/src/integrations/utils.js +1 -1
  113. package/src/suggestion.d.ts +5 -5
  114. package/src/suggestion.js +1 -1
  115. package/src/suggestiondescriptionfactory.d.ts +3 -3
  116. package/src/suggestiondescriptionfactory.js +1 -1
  117. package/src/trackchanges.d.ts +5 -5
  118. package/src/trackchanges.js +1 -1
  119. package/src/trackchangesconfig.d.ts +1 -1
  120. package/src/trackchangesdata.d.ts +2 -2
  121. package/src/trackchangesdata.js +1 -1
  122. package/src/trackchangesediting.d.ts +53 -53
  123. package/src/trackchangesediting.js +1 -1
  124. package/src/trackchangesui.d.ts +3 -3
  125. package/src/trackchangesui.js +1 -1
  126. package/src/ui/suggestioncontroller.d.ts +5 -5
  127. package/src/ui/suggestioncontroller.js +1 -1
  128. package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
  129. package/src/ui/view/basesuggestionthreadview.js +1 -1
  130. package/src/ui/view/suggestionthreadview.d.ts +5 -5
  131. package/src/ui/view/suggestionthreadview.js +1 -1
  132. package/src/utils/common-translations.d.ts +1 -1
  133. package/src/utils/common-translations.js +1 -1
  134. package/src/utils/utils.d.ts +4 -4
  135. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x707b=['length','locale','button','CommentsRepository','acceptButton','comments','switchbutton','value','_handleControllerBuffer','mainView','from','Accept\x20all\x20selected\x20suggestions','execute','unbind','TrackChangesEditing','registerAnnotation','createAnnotationView','_createUIButton','getAllAdjacentSuggestions','_initializeController','Annotations','reduce','_suggestionToController','_refreshActiveMarkers','acceptAllSuggestions','_annotationViews','keys','listenTo','comments.maxCommentsWhenCollapsed','addComment','activeAnnotations','Discard\x20all\x20selected\x20suggestions','filter','_updateController','isOn','commands','add','has','suggestionLoaded','trackChanges.SuggestionThreadView','CommentsUI','_viewToController','commentThread','suggestion-','view','requires','descriptionParts','CommentView','editor','hasSuggestion','editing','trackChanges','isDirty','refreshSelectedViews','_disableComments','isMultiRange','model','buttonView','separator','discardAllSuggestions','push','isInContent','source','values','focus','Discard\x20all\x20suggestions','getDescriptions','Track\x20changes','clear','_descriptionFactory','discardSelectedSuggestions','getByInnerView','init','actionView','config','head','TrackChangesUI','define','Accept\x20all\x20suggestions','type','_destroyController','pluginName','suggestionUnloaded','get','commandName','isEnabled','createCommentThreadController','createAnnotation','lowest','plugins','trackChanges.disableComments','getMarkerNames','change:activeAnnotations','remove','change:previous','_handleSuggestionControllerDelayed','innerView','getSuggestion','destroy','_unbindEditors','bind','getMarkers','getRanges','EditorAnnotations','arrowView','delete','comments.maxThreadTotalWeight','set','SuggestionThreadView'];(function(_0x1c9977,_0x707bf4){const _0x33f9ff=function(_0x59a676){while(--_0x59a676){_0x1c9977['push'](_0x1c9977['shift']());}};_0x33f9ff(++_0x707bf4);}(_0x707b,0xdc));const _0x33f9=function(_0x1c9977,_0x707bf4){_0x1c9977=_0x1c9977-0x0;let _0x33f9ff=_0x707b[_0x1c9977];return _0x33f9ff;};import{Plugin as _0x23622e}from'ckeditor5/src/core';import{Collection as _0x200c37}from'ckeditor5/src/utils';import{Model as _0x32a2e1,SplitButtonView as _0x352e67,createDropdown as _0x19158c,addListToDropdown as _0x50005e}from'ckeditor5/src/ui';import{Users as _0x4f62c1,getDateTimeFormatter as _0x2c3d68,getAllMarkersDomElementsSorted as _0x4051da}from'ckeditor5-collaboration/src/collaboration-core';import _0x54a161 from'./trackchangesediting';import _0x1e7e20 from'./ui/suggestioncontroller';import _0xab2847 from'./ui/view/suggestionthreadview';import{getTranslation as _0x26bec0}from'./utils/common-translations';import _0x1a93c0 from'../theme/icons/track-changes.svg';export default class d extends _0x23622e{static get[_0x33f9('0x2b')](){return[_0x54a161,_0x4f62c1,_0x33f9('0x1'),_0x33f9('0x12'),_0x33f9('0x65')];}static get[_0x33f9('0x4f')](){return _0x33f9('0x4a');}constructor(_0x58044b){super(_0x58044b),this['_suggestionToController']=new Map(),this[_0x33f9('0x27')]=new Map(),this[_0x33f9('0x17')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x2428eb=this['editor'][_0x33f9('0x48')];_0x2428eb[_0x33f9('0x4b')](_0x33f9('0x25'),_0xab2847),_0x2428eb['define'](_0x33f9('0x58'),!0x1),this['_disableComments']=_0x2428eb[_0x33f9('0x51')](_0x33f9('0x58'));}[_0x33f9('0x5d')](_0x27b95b,_0x4f06d8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x895969,_0x45fe5b]of this[_0x33f9('0x6')]){const _0x4dba10=this['_suggestionToController']['has'](_0x895969);_0x4dba10||_0x45fe5b?_0x4dba10&&_0x45fe5b&&this[_0x33f9('0x4e')](_0x895969):this['_initializeController'](_0x895969);}this[_0x33f9('0x2e')][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x65'))[_0x33f9('0x33')](),this[_0x33f9('0x15')](),this[_0x33f9('0x6')][_0x33f9('0x42')]();},0xa),this[_0x33f9('0x6')]['set'](_0x27b95b,_0x4f06d8);}[_0x33f9('0x46')](){const _0x4773bf=this['editor'],_0x5e46c5=_0x4773bf[_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0xc')),_0xb4328f=_0x4773bf[_0x33f9('0x57')][_0x33f9('0x51')]('Annotations'),_0x4a7f5d=_0x4773bf[_0x33f9('0x57')]['get'](_0x33f9('0x65')),_0x2ee8e0=_0x4773bf['plugins']['get']('CommentsRepository');_0x4773bf['ui']['componentFactory'][_0x33f9('0x22')](_0x33f9('0x31'),_0x405906=>this[_0x33f9('0xf')](_0x405906)),_0x4a7f5d['addSourceCollector'](()=>{const _0x1cb297=[];for(const [_0x92877e,_0x1aa675]of Array['from'](this[_0x33f9('0x14')])){const _0x20979b=_0x92877e[_0x33f9('0x10')](),_0x4a9050=[];for(const _0xe011f7 of _0x20979b){if(!_0xe011f7[_0x33f9('0x3b')])continue;if(_0xe011f7[_0x33f9('0x35')]){_0x4a9050[_0x33f9('0x3a')](..._0xe011f7[_0x33f9('0x64')]());continue;}const _0x31cc36=_0xe011f7['getFirstRange']();if(_0x4a9050[_0x33f9('0x6b')]>0x0){const _0x410fe0=_0x4a9050[0x0]['getJoined'](_0x31cc36);if(_0x410fe0){_0x4a9050[0x0]=_0x410fe0;continue;}}_0x4a9050[_0x33f9('0x3a')](_0x31cc36);}_0x1cb297[_0x33f9('0x3a')]([_0x1aa675['view'],_0x4a9050]);}return _0x1cb297;}),this[_0x33f9('0x19')](_0x5e46c5,_0x33f9('0x24'),(_0x19d32d,_0x456563)=>{this[_0x33f9('0x19')](_0x456563,'change:previous',(_0x44d842,_0x4ce4e7,_0x3ad81e,_0x3693d8)=>{_0x456563['isInContent']&&(null==_0x3ad81e?(this[_0x33f9('0x1f')](_0x3693d8[_0x33f9('0x49')]),this[_0x33f9('0x5d')](_0x456563,!0x1)):(this[_0x33f9('0x1f')](_0x3ad81e[_0x33f9('0x49')]),null==_0x3693d8&&this[_0x33f9('0x5d')](_0x456563,!0x0)));}),null!==_0x456563['previous']?this['_updateController'](_0x456563[_0x33f9('0x49')]):this[_0x33f9('0x5d')](_0x456563,!0x1);}),this[_0x33f9('0x19')](_0x5e46c5,_0x33f9('0x50'),(_0x2e0931,_0xd13cd3,_0x26740d)=>{this['stopListening'](_0xd13cd3,_0x33f9('0x5c')),this[_0x33f9('0x6')][_0x33f9('0x67')](_0xd13cd3),this[_0x33f9('0x14')][_0x33f9('0x23')](_0xd13cd3)&&this[_0x33f9('0x4e')](_0xd13cd3),_0x26740d&&this[_0x33f9('0x1f')](_0x26740d[_0x33f9('0x49')]);}),this['listenTo'](_0x5e46c5,'suggestionChanged',(_0x426ad8,_0x1290bd)=>{this[_0x33f9('0x1f')](_0x1290bd);}),this[_0x33f9('0x19')](_0xb4328f,_0x33f9('0x5a'),()=>{this[_0x33f9('0x15')]();}),this[_0x33f9('0x19')](_0x2ee8e0,_0x33f9('0x1b'),(_0x574621,{threadId:_0x1b87d3,isFromAdapter:_0x33e03c})=>{if(_0x33e03c||!_0x5e46c5[_0x33f9('0x2f')](_0x1b87d3))return;const _0x403a03=_0x5e46c5[_0x33f9('0x5f')](_0x1b87d3);this['_suggestionToController']['get'](_0x403a03)[_0x33f9('0x2a')][_0x33f9('0x3e')]();},{'priority':_0x33f9('0x56')});}[_0x33f9('0x15')](){const _0x21ad00=this[_0x33f9('0x2e')][_0x33f9('0x57')]['get'](_0x33f9('0x12')),_0xbe4e55=this[_0x33f9('0x2e')][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0xc')),_0x103d61=Array[_0x33f9('0x8')](_0x21ad00[_0x33f9('0x1c')],_0x54270b=>_0x54270b[_0x33f9('0x5e')])['filter'](_0x30ae27=>this[_0x33f9('0x27')]['has'](_0x30ae27)),_0x15bd3a=[];for(const _0x2c5e93 of _0x103d61){const _0x204772=this[_0x33f9('0x27')][_0x33f9('0x51')](_0x2c5e93)[_0x33f9('0x36')]['getAllAdjacentSuggestions']();_0x15bd3a[_0x33f9('0x3a')](..._0x204772[_0x33f9('0x13')]((_0x49fdee,_0x393592)=>[..._0x49fdee,..._0x393592[_0x33f9('0x59')]()],[]));}_0xbe4e55['activeMarkers']=_0x15bd3a;}[_0x33f9('0xf')](_0x3f476d){const _0x2317b5=_0x19158c(_0x3f476d,_0x352e67),_0x29834b=this[_0x33f9('0x2e')]['commands'][_0x33f9('0x51')](_0x33f9('0x31')),_0xb8d29b=_0x26bec0(_0x3f476d,_0x33f9('0x41'));_0x2317b5[_0x33f9('0x37')][_0x33f9('0x69')]({'tooltip':_0xb8d29b,'label':_0xb8d29b,'icon':_0x1a93c0}),_0x2317b5[_0x33f9('0x37')][_0x33f9('0x62')](_0x33f9('0x20'))['to'](_0x29834b,'value'),_0x2317b5['buttonView']['on'](_0x33f9('0xa'),()=>{_0x29834b[_0x33f9('0xa')](),this[_0x33f9('0x2e')][_0x33f9('0x30')][_0x33f9('0x2a')][_0x33f9('0x3e')]();});const _0x5265b5=new _0x200c37(),_0x17fbd3=[{'type':_0x33f9('0x4'),'model':{'withText':!0x0,'label':_0xb8d29b,'commandName':'trackChanges'}},{'type':_0x33f9('0x38')},{'type':_0x33f9('0x0'),'model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x4c')),'commandName':_0x33f9('0x16')}},{'type':_0x33f9('0x0'),'model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x9')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x3f')),'commandName':_0x33f9('0x39')}},{'type':_0x33f9('0x0'),'model':{'withText':!0x0,'label':_0x26bec0(_0x3f476d,_0x33f9('0x1d')),'commandName':_0x33f9('0x44')}}];for(const _0x5a6844 of _0x17fbd3){let _0x469b95={'type':'separator'};if(_0x5a6844[_0x33f9('0x36')]){const _0x9a4b51=new _0x32a2e1(_0x5a6844['model']),_0x27a18a=this[_0x33f9('0x2e')][_0x33f9('0x21')][_0x33f9('0x51')](_0x9a4b51[_0x33f9('0x52')]);_0x9a4b51[_0x33f9('0x62')](_0x33f9('0x20'),_0x33f9('0x53'))['to'](_0x27a18a,_0x33f9('0x5'),_0x33f9('0x53')),_0x469b95={'type':_0x5a6844[_0x33f9('0x4d')],'model':_0x9a4b51};}_0x5265b5[_0x33f9('0x22')](_0x469b95);}_0x50005e(_0x2317b5,_0x5265b5);const _0x387ad1=_0x17fbd3['filter'](_0x348b91=>null!=_0x348b91['model'])['map'](_0x4b4ab2=>this[_0x33f9('0x2e')]['commands'][_0x33f9('0x51')](_0x4b4ab2[_0x33f9('0x36')][_0x33f9('0x52')])),_0x325083=_0x2317b5[_0x33f9('0x37')];return _0x325083['actionView'][_0x33f9('0xb')](_0x33f9('0x53')),_0x325083[_0x33f9('0x66')][_0x33f9('0xb')]('isEnabled'),_0x325083[_0x33f9('0x47')][_0x33f9('0x62')]('isEnabled')['to'](_0x29834b,_0x33f9('0x53')),_0x325083[_0x33f9('0x66')]['bind'](_0x33f9('0x53'))['toMany'](_0x387ad1,_0x33f9('0x53'),(..._0x233bf0)=>_0x233bf0['some'](_0x2c560d=>_0x2c560d)),_0x2317b5['on'](_0x33f9('0xa'),_0x9cda2=>{this[_0x33f9('0x2e')]['execute'](_0x9cda2[_0x33f9('0x3c')][_0x33f9('0x52')]),this[_0x33f9('0x2e')][_0x33f9('0x30')][_0x33f9('0x2a')][_0x33f9('0x3e')]();}),_0x2317b5;}[_0x33f9('0x11')](_0x38ded2){const _0x52cf9f=this['editor'],_0x466485=_0x52cf9f[_0x33f9('0x48')],_0x1c16c0=_0x52cf9f['plugins'][_0x33f9('0x51')](_0x33f9('0x12')),_0x4ce567=_0x52cf9f[_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x1')),_0x54c7b1=_0x52cf9f[_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x65')),_0x3247f3=_0x52cf9f[_0x33f9('0x57')][_0x33f9('0x51')](_0x4f62c1)['me'],_0x54e1af=_0x466485[_0x33f9('0x51')]('trackChanges')[_0x33f9('0x6a')],{CommentsListView:_0x13e76c,CommentThreadInputView:_0x3aab30}=_0x52cf9f[_0x33f9('0x57')]['get'](_0x33f9('0x26'));let _0x10d261,_0x726370;this[_0x33f9('0x17')][_0x33f9('0x23')](_0x38ded2['id'])?(_0x726370=this[_0x33f9('0x17')][_0x33f9('0x51')](_0x38ded2['id']),_0x10d261=_0x726370[_0x33f9('0x7')]):(_0x10d261=new _0x54e1af(_0x52cf9f[_0x33f9('0x6c')],_0x38ded2,_0x3247f3,{'disableComments':this[_0x33f9('0x34')],'editorConfig':_0x466485[_0x33f9('0x51')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x466485[_0x33f9('0x51')](_0x33f9('0x1a')),'maxThreadTotalWeight':_0x466485['get'](_0x33f9('0x68')),'maxCommentCharsWhenCollapsed':_0x466485[_0x33f9('0x51')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2c3d68(_0x466485[_0x33f9('0x51')]('locale')),'CommentView':_0x466485[_0x33f9('0x51')](_0x33f9('0x3'))[_0x33f9('0x2d')],'CommentsListView':_0x13e76c,'CommentThreadInputView':_0x3aab30}),_0x10d261[_0x33f9('0x2')]['on'](_0x33f9('0xa'),()=>{_0x52cf9f['editing'][_0x33f9('0x2a')][_0x33f9('0x3e')]();}),_0x10d261['discardButton']['on'](_0x33f9('0xa'),()=>{_0x52cf9f['editing'][_0x33f9('0x2a')][_0x33f9('0x3e')]();}),_0x726370=_0x1c16c0[_0x33f9('0xe')](this[_0x33f9('0x2e')]['locale'],_0x10d261),_0x726370['bind'](_0x33f9('0x32'))['to'](_0x10d261,'isDirty'),_0x726370[_0x33f9('0x62')](_0x33f9('0x6b'))['to'](_0x10d261),_0x726370[_0x33f9('0x62')]('type')['to'](_0x10d261,_0x33f9('0x4d'),_0x51908e=>'suggestion-'+_0x51908e),this[_0x33f9('0x17')]['set'](_0x38ded2['id'],_0x726370));const _0x2c2359=_0x4ce567[_0x33f9('0x54')](_0x38ded2[_0x33f9('0x28')],_0x10d261),_0x181fca=new _0x1e7e20(_0x52cf9f,_0x38ded2,_0x10d261,_0x2c2359),_0xd7e10d=_0x38ded2[_0x33f9('0x10')]()['filter'](_0x5f0137=>_0x5f0137[_0x33f9('0x3b')]);_0x10d261[_0x33f9('0x2c')]=_0x52cf9f['plugins'][_0x33f9('0x51')](_0x33f9('0xc'))[_0x33f9('0x43')]['getDescriptions'](_0xd7e10d),this[_0x33f9('0x14')]['set'](_0x38ded2,_0x181fca),this[_0x33f9('0x27')]['set'](_0x10d261,_0x181fca);const _0x1f0bf8=_0x1c16c0[_0x33f9('0x55')]({'view':_0x726370,'target':()=>{const _0x3cbcd4=[],_0x412908=_0x38ded2[_0x33f9('0x10')]()[_0x33f9('0x1e')](_0x37f0f5=>_0x37f0f5['isInContent']);for(const _0x433d45 of _0x412908)_0x3cbcd4['push'](..._0x433d45[_0x33f9('0x63')]());return _0x4051da(_0x52cf9f['editing'],_0x3cbcd4);},'type':()=>_0x33f9('0x29')+_0x181fca['view'][_0x33f9('0x4d')]});_0x4ce567['_bindAnnotationToEditors'](_0x10d261,_0x1f0bf8),_0x1c16c0[_0x33f9('0x22')](_0x1f0bf8),_0x54c7b1[_0x33f9('0xd')](_0x1f0bf8);}[_0x33f9('0x4e')](_0x3fecdd){const _0x4c44b5=this[_0x33f9('0x2e')][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x1')),_0x33aa91=this['editor'][_0x33f9('0x57')][_0x33f9('0x51')](_0x33f9('0x12')),_0x1f6e61=this['_suggestionToController'][_0x33f9('0x51')](_0x3fecdd),_0x580cf1=_0x1f6e61['view'],_0x394283=_0x33aa91[_0x33f9('0x45')](_0x580cf1);_0x4c44b5[_0x33f9('0x61')](_0x580cf1),_0x394283&&_0x33aa91[_0x33f9('0x5b')](_0x394283),this[_0x33f9('0x14')][_0x33f9('0x67')](_0x3fecdd),this[_0x33f9('0x27')][_0x33f9('0x67')](_0x580cf1),_0x1f6e61[_0x33f9('0x60')]();}[_0x33f9('0x1f')](_0x4be8e0){if(!_0x4be8e0['isInContent']||!this[_0x33f9('0x14')][_0x33f9('0x23')](_0x4be8e0))return;const _0x1975f1=this[_0x33f9('0x2e')][_0x33f9('0x57')]['get'](_0x33f9('0xc')),_0x1a332b=this[_0x33f9('0x14')]['get'](_0x4be8e0),_0x4a1ddb=_0x4be8e0[_0x33f9('0x10')]();_0x1a332b['view'][_0x33f9('0x2c')]=_0x1975f1['_descriptionFactory'][_0x33f9('0x40')](_0x4a1ddb);}[_0x33f9('0x60')](){for(const _0x3566b8 of this[_0x33f9('0x14')][_0x33f9('0x18')]())this[_0x33f9('0x4e')](_0x3566b8);for(const _0x195550 of this[_0x33f9('0x17')][_0x33f9('0x3d')]())_0x195550[_0x33f9('0x7')]['destroy']();super[_0x33f9('0x60')]();}}
23
+ const _0x234f=['locale','_viewToController','get','descriptionParts','keys','getRanges','mainView','trackChanges.disableComments','isMultiRange','activeMarkers','getMarkerNames','init','editing','some','_disableComments','getAllAdjacentSuggestions','previous','suggestionUnloaded','discardAllSuggestions','discardButton','_createUIButton','discardSelectedSuggestions','Annotations','getJoined','from','length','_destroyController','getByInnerView','acceptSelectedSuggestions','comments.editorConfig','editor','comments.maxCommentsWhenCollapsed','pluginName','isInContent','plugins','TrackChangesEditing','lowest','size','_unbindEditors','Accept\x20all\x20selected\x20suggestions','view','registerAnnotation','getMarkers','CommentsUI','source','bind','define','_updateController','Discard\x20all\x20suggestions','CommentsRepository','filter','type','commandName','separator','Discard\x20all\x20selected\x20suggestions','componentFactory','_initializeController','listenTo','comments.maxThreadTotalWeight','unbind','config','addComment','_suggestionToController','comments','set','add','getDescriptions','refreshSelectedViews','clear','createCommentThreadController','model','change:previous','execute','isEnabled','stopListening','innerView','suggestionLoaded','push','value','_handleSuggestionControllerDelayed','destroy','head','acceptAllSuggestions','suggestion-','isDirty','has','commands','toMany','delete','CommentView','focus','getSuggestion','createAnnotation','_handleControllerBuffer','buttonView','arrowView','_bindAnnotationToEditors','reduce','acceptButton','_refreshActiveMarkers','values','Accept\x20all\x20suggestions','button','_annotationViews','trackChanges','commentThread','suggestionChanged','trackChanges.SuggestionThreadView','Track\x20changes','EditorAnnotations','_descriptionFactory','createAnnotationView'];(function(_0x177e9b,_0x234f12){const _0x20e334=function(_0x4a7a02){while(--_0x4a7a02){_0x177e9b['push'](_0x177e9b['shift']());}};_0x20e334(++_0x234f12);}(_0x234f,0xc6));const _0x20e3=function(_0x177e9b,_0x234f12){_0x177e9b=_0x177e9b-0x0;let _0x20e334=_0x234f[_0x177e9b];return _0x20e334;};import{Plugin as _0x569548}from'ckeditor5/src/core.js';import{Collection as _0x24fa53}from'ckeditor5/src/utils.js';import{Model as _0x4c1d70,SplitButtonView as _0x5a17d6,createDropdown as _0x4d1527,addListToDropdown as _0x414fc0}from'ckeditor5/src/ui.js';import{Users as _0x13e504,getDateTimeFormatter as _0x58ca79,getAllMarkersDomElementsSorted as _0x503df2}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3494a2 from'./trackchangesediting.js';import _0x2dee9c from'./ui/suggestioncontroller.js';import _0x42022d from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x3abc87}from'./utils/common-translations.js';import _0x111c21 from'../theme/icons/track-changes.svg';export default class d extends _0x569548{static get['requires'](){return[_0x3494a2,_0x13e504,_0x20e3('0x4b'),_0x20e3('0x30'),_0x20e3('0x17')];}static get[_0x20e3('0x3a')](){return'TrackChangesUI';}constructor(_0x4e8104){super(_0x4e8104),this['_suggestionToController']=new Map(),this[_0x20e3('0x1b')]=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x102f96=this['editor'][_0x20e3('0x56')];_0x102f96['define'](_0x20e3('0x15'),_0x42022d),_0x102f96[_0x20e3('0x48')](_0x20e3('0x21'),!0x1),this[_0x20e3('0x28')]=_0x102f96[_0x20e3('0x1c')](_0x20e3('0x21'));}[_0x20e3('0x69')](_0x9489ed,_0x127512){0x0===this[_0x20e3('0x7')][_0x20e3('0x3f')]&&setTimeout(()=>{for(const [_0x358f80,_0xe45e7b]of this[_0x20e3('0x7')]){const _0x2dfacd=this['_suggestionToController'][_0x20e3('0x6f')](_0x358f80);_0x2dfacd||_0xe45e7b?_0x2dfacd&&_0xe45e7b&&this['_destroyController'](_0x358f80):this[_0x20e3('0x52')](_0x358f80);}this[_0x20e3('0x38')]['plugins']['get'](_0x20e3('0x17'))[_0x20e3('0x5d')](),this[_0x20e3('0xd')](),this['_handleControllerBuffer'][_0x20e3('0x5e')]();},0xa),this[_0x20e3('0x7')]['set'](_0x9489ed,_0x127512);}[_0x20e3('0x25')](){const _0x3abd7d=this[_0x20e3('0x38')],_0x584370=_0x3abd7d['plugins']['get'](_0x20e3('0x3d')),_0x57c803=_0x3abd7d[_0x20e3('0x3c')]['get']('Annotations'),_0x3f979e=_0x3abd7d['plugins']['get'](_0x20e3('0x17')),_0x3130ee=_0x3abd7d['plugins']['get'](_0x20e3('0x4b'));_0x3abd7d['ui'][_0x20e3('0x51')][_0x20e3('0x5b')]('trackChanges',_0x3dc49a=>this[_0x20e3('0x2e')](_0x3dc49a)),_0x3f979e['addSourceCollector'](()=>{const _0x406fbf=[];for(const [_0x32b5ce,_0x578df5]of Array[_0x20e3('0x32')](this['_suggestionToController'])){const _0x1737e3=_0x32b5ce[_0x20e3('0x29')](),_0x52e76e=[];for(const _0x1c3a57 of _0x1737e3){if(!_0x1c3a57[_0x20e3('0x3b')])continue;if(_0x1c3a57[_0x20e3('0x22')]){_0x52e76e[_0x20e3('0x67')](..._0x1c3a57[_0x20e3('0x1f')]());continue;}const _0x2db665=_0x1c3a57['getFirstRange']();if(_0x52e76e[_0x20e3('0x33')]>0x0){const _0x32fd05=_0x52e76e[0x0][_0x20e3('0x31')](_0x2db665);if(_0x32fd05){_0x52e76e[0x0]=_0x32fd05;continue;}}_0x52e76e[_0x20e3('0x67')](_0x2db665);}_0x406fbf[_0x20e3('0x67')]([_0x578df5[_0x20e3('0x42')],_0x52e76e]);}return _0x406fbf;}),this[_0x20e3('0x53')](_0x584370,_0x20e3('0x66'),(_0x21f774,_0x4cb3fb)=>{this[_0x20e3('0x53')](_0x4cb3fb,_0x20e3('0x61'),(_0x20b0a3,_0xde08f4,_0x58e495,_0x2e08ad)=>{_0x4cb3fb[_0x20e3('0x3b')]&&(null==_0x58e495?(this[_0x20e3('0x49')](_0x2e08ad[_0x20e3('0x6b')]),this[_0x20e3('0x69')](_0x4cb3fb,!0x1)):(this['_updateController'](_0x58e495[_0x20e3('0x6b')]),null==_0x2e08ad&&this[_0x20e3('0x69')](_0x4cb3fb,!0x0)));}),null!==_0x4cb3fb[_0x20e3('0x2a')]?this[_0x20e3('0x49')](_0x4cb3fb[_0x20e3('0x6b')]):this[_0x20e3('0x69')](_0x4cb3fb,!0x1);}),this['listenTo'](_0x584370,_0x20e3('0x2b'),(_0xccd1c8,_0xb4e12,_0x23e496)=>{this[_0x20e3('0x64')](_0xb4e12,_0x20e3('0x61')),this[_0x20e3('0x7')][_0x20e3('0x2')](_0xb4e12),this['_suggestionToController'][_0x20e3('0x6f')](_0xb4e12)&&this[_0x20e3('0x34')](_0xb4e12),_0x23e496&&this[_0x20e3('0x49')](_0x23e496[_0x20e3('0x6b')]);}),this['listenTo'](_0x584370,_0x20e3('0x14'),(_0x41ba93,_0x47cf4e)=>{this[_0x20e3('0x49')](_0x47cf4e);}),this[_0x20e3('0x53')](_0x57c803,'change:activeAnnotations',()=>{this[_0x20e3('0xd')]();}),this[_0x20e3('0x53')](_0x3130ee,_0x20e3('0x57'),(_0x132d72,{threadId:_0x1ece76,isFromAdapter:_0x287b13})=>{if(_0x287b13||!_0x584370['hasSuggestion'](_0x1ece76))return;const _0x11a560=_0x584370[_0x20e3('0x5')](_0x1ece76);this[_0x20e3('0x58')][_0x20e3('0x1c')](_0x11a560)[_0x20e3('0x42')][_0x20e3('0x4')]();},{'priority':_0x20e3('0x3e')});}['_refreshActiveMarkers'](){const _0x4795e8=this[_0x20e3('0x38')][_0x20e3('0x3c')][_0x20e3('0x1c')](_0x20e3('0x30')),_0x123226=this['editor']['plugins'][_0x20e3('0x1c')](_0x20e3('0x3d')),_0x1aaffc=Array['from'](_0x4795e8['activeAnnotations'],_0x2cfcde=>_0x2cfcde[_0x20e3('0x65')])[_0x20e3('0x4c')](_0x4f6e50=>this[_0x20e3('0x1b')][_0x20e3('0x6f')](_0x4f6e50)),_0x4118a8=[];for(const _0x29ff91 of _0x1aaffc){const _0x2fbe2a=this[_0x20e3('0x1b')]['get'](_0x29ff91)[_0x20e3('0x60')][_0x20e3('0x29')]();_0x4118a8[_0x20e3('0x67')](..._0x2fbe2a[_0x20e3('0xb')]((_0x2fe5e5,_0xe123e3)=>[..._0x2fe5e5,..._0xe123e3[_0x20e3('0x24')]()],[]));}_0x123226[_0x20e3('0x23')]=_0x4118a8;}[_0x20e3('0x2e')](_0x149c77){const _0x558835=_0x4d1527(_0x149c77,_0x5a17d6),_0x2173d3=this['editor'][_0x20e3('0x0')][_0x20e3('0x1c')]('trackChanges'),_0x27ef2a=_0x3abc87(_0x149c77,_0x20e3('0x16'));_0x558835[_0x20e3('0x8')][_0x20e3('0x5a')]({'tooltip':_0x27ef2a,'label':_0x27ef2a,'icon':_0x111c21}),_0x558835[_0x20e3('0x8')][_0x20e3('0x47')]('isOn')['to'](_0x2173d3,_0x20e3('0x68')),_0x558835[_0x20e3('0x8')]['on'](_0x20e3('0x62'),()=>{_0x2173d3['execute'](),this[_0x20e3('0x38')][_0x20e3('0x26')][_0x20e3('0x42')][_0x20e3('0x4')]();});const _0x2a75fb=new _0x24fa53(),_0x1fa147=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x27ef2a,'commandName':_0x20e3('0x12')}},{'type':_0x20e3('0x4f')},{'type':_0x20e3('0x10'),'model':{'withText':!0x0,'label':_0x3abc87(_0x149c77,_0x20e3('0xf')),'commandName':_0x20e3('0x6c')}},{'type':_0x20e3('0x10'),'model':{'withText':!0x0,'label':_0x3abc87(_0x149c77,_0x20e3('0x41')),'commandName':_0x20e3('0x36')}},{'type':_0x20e3('0x10'),'model':{'withText':!0x0,'label':_0x3abc87(_0x149c77,_0x20e3('0x4a')),'commandName':_0x20e3('0x2c')}},{'type':_0x20e3('0x10'),'model':{'withText':!0x0,'label':_0x3abc87(_0x149c77,_0x20e3('0x50')),'commandName':_0x20e3('0x2f')}}];for(const _0x562712 of _0x1fa147){let _0x52c295={'type':_0x20e3('0x4f')};if(_0x562712[_0x20e3('0x60')]){const _0xa54539=new _0x4c1d70(_0x562712['model']),_0x2be28d=this['editor'][_0x20e3('0x0')][_0x20e3('0x1c')](_0xa54539['commandName']);_0xa54539['bind']('isOn',_0x20e3('0x63'))['to'](_0x2be28d,_0x20e3('0x68'),_0x20e3('0x63')),_0x52c295={'type':_0x562712[_0x20e3('0x4d')],'model':_0xa54539};}_0x2a75fb[_0x20e3('0x5b')](_0x52c295);}_0x414fc0(_0x558835,_0x2a75fb);const _0x562a25=_0x1fa147[_0x20e3('0x4c')](_0x4edd39=>null!=_0x4edd39[_0x20e3('0x60')])['map'](_0x24b130=>this[_0x20e3('0x38')][_0x20e3('0x0')][_0x20e3('0x1c')](_0x24b130[_0x20e3('0x60')][_0x20e3('0x4e')])),_0x47113a=_0x558835[_0x20e3('0x8')];return _0x47113a['actionView'][_0x20e3('0x55')](_0x20e3('0x63')),_0x47113a[_0x20e3('0x9')][_0x20e3('0x55')](_0x20e3('0x63')),_0x47113a['actionView']['bind'](_0x20e3('0x63'))['to'](_0x2173d3,_0x20e3('0x63')),_0x47113a[_0x20e3('0x9')][_0x20e3('0x47')](_0x20e3('0x63'))[_0x20e3('0x1')](_0x562a25,_0x20e3('0x63'),(..._0xb2ce45)=>_0xb2ce45[_0x20e3('0x27')](_0x17118d=>_0x17118d)),_0x558835['on']('execute',_0x350260=>{this[_0x20e3('0x38')][_0x20e3('0x62')](_0x350260[_0x20e3('0x46')][_0x20e3('0x4e')]),this[_0x20e3('0x38')][_0x20e3('0x26')][_0x20e3('0x42')]['focus']();}),_0x558835;}['_initializeController'](_0x500f96){const _0x5cf84d=this[_0x20e3('0x38')],_0x26690c=_0x5cf84d[_0x20e3('0x56')],_0x3e8bd3=_0x5cf84d['plugins'][_0x20e3('0x1c')]('Annotations'),_0x54a688=_0x5cf84d[_0x20e3('0x3c')][_0x20e3('0x1c')]('CommentsRepository'),_0x4ebc5f=_0x5cf84d[_0x20e3('0x3c')][_0x20e3('0x1c')](_0x20e3('0x17')),_0x203bce=_0x5cf84d['plugins']['get'](_0x13e504)['me'],_0x433818=_0x26690c[_0x20e3('0x1c')](_0x20e3('0x12'))['SuggestionThreadView'],{CommentsListView:_0x565112,CommentThreadInputView:_0x42799e}=_0x5cf84d[_0x20e3('0x3c')][_0x20e3('0x1c')](_0x20e3('0x45'));let _0x408867,_0x19d2ee;this[_0x20e3('0x11')]['has'](_0x500f96['id'])?(_0x19d2ee=this[_0x20e3('0x11')][_0x20e3('0x1c')](_0x500f96['id']),_0x408867=_0x19d2ee[_0x20e3('0x20')]):(_0x408867=new _0x433818(_0x5cf84d['locale'],_0x500f96,_0x203bce,{'disableComments':this[_0x20e3('0x28')],'editorConfig':_0x26690c[_0x20e3('0x1c')](_0x20e3('0x37')),'maxCommentsWhenCollapsed':_0x26690c[_0x20e3('0x1c')](_0x20e3('0x39')),'maxThreadTotalWeight':_0x26690c[_0x20e3('0x1c')](_0x20e3('0x54')),'maxCommentCharsWhenCollapsed':_0x26690c[_0x20e3('0x1c')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x58ca79(_0x26690c[_0x20e3('0x1c')](_0x20e3('0x1a'))),'CommentView':_0x26690c['get'](_0x20e3('0x59'))[_0x20e3('0x3')],'CommentsListView':_0x565112,'CommentThreadInputView':_0x42799e}),_0x408867[_0x20e3('0xc')]['on'](_0x20e3('0x62'),()=>{_0x5cf84d['editing']['view']['focus']();}),_0x408867[_0x20e3('0x2d')]['on']('execute',()=>{_0x5cf84d[_0x20e3('0x26')][_0x20e3('0x42')]['focus']();}),_0x19d2ee=_0x3e8bd3[_0x20e3('0x19')](this[_0x20e3('0x38')]['locale'],_0x408867),_0x19d2ee[_0x20e3('0x47')](_0x20e3('0x6e'))['to'](_0x408867,_0x20e3('0x6e')),_0x19d2ee[_0x20e3('0x47')](_0x20e3('0x33'))['to'](_0x408867),_0x19d2ee[_0x20e3('0x47')](_0x20e3('0x4d'))['to'](_0x408867,_0x20e3('0x4d'),_0x3c0e89=>_0x20e3('0x6d')+_0x3c0e89),this[_0x20e3('0x11')]['set'](_0x500f96['id'],_0x19d2ee));const _0x13d5d9=_0x54a688[_0x20e3('0x5f')](_0x500f96[_0x20e3('0x13')],_0x408867),_0x457c0a=new _0x2dee9c(_0x5cf84d,_0x500f96,_0x408867,_0x13d5d9),_0x3f7511=_0x500f96[_0x20e3('0x29')]()[_0x20e3('0x4c')](_0x14bf3a=>_0x14bf3a[_0x20e3('0x3b')]);_0x408867[_0x20e3('0x1d')]=_0x5cf84d[_0x20e3('0x3c')]['get'](_0x20e3('0x3d'))[_0x20e3('0x18')][_0x20e3('0x5c')](_0x3f7511),this[_0x20e3('0x58')]['set'](_0x500f96,_0x457c0a),this[_0x20e3('0x1b')][_0x20e3('0x5a')](_0x408867,_0x457c0a);const _0x57daa0=_0x3e8bd3[_0x20e3('0x6')]({'view':_0x19d2ee,'target':()=>{const _0x15dc7a=[],_0x128799=_0x500f96[_0x20e3('0x29')]()['filter'](_0x2fac14=>_0x2fac14[_0x20e3('0x3b')]);for(const _0x152acc of _0x128799)_0x15dc7a['push'](..._0x152acc[_0x20e3('0x44')]());return _0x503df2(_0x5cf84d['editing'],_0x15dc7a);},'type':()=>_0x20e3('0x6d')+_0x457c0a['view'][_0x20e3('0x4d')]});_0x54a688[_0x20e3('0xa')](_0x408867,_0x57daa0),_0x3e8bd3[_0x20e3('0x5b')](_0x57daa0),_0x4ebc5f[_0x20e3('0x43')](_0x57daa0);}[_0x20e3('0x34')](_0x350f9c){const _0x14ca91=this[_0x20e3('0x38')][_0x20e3('0x3c')]['get'](_0x20e3('0x4b')),_0x528c6a=this[_0x20e3('0x38')][_0x20e3('0x3c')][_0x20e3('0x1c')](_0x20e3('0x30')),_0x1d579a=this[_0x20e3('0x58')][_0x20e3('0x1c')](_0x350f9c),_0x2751c4=_0x1d579a['view'],_0x56a3d2=_0x528c6a[_0x20e3('0x35')](_0x2751c4);_0x14ca91[_0x20e3('0x40')](_0x2751c4),_0x56a3d2&&_0x528c6a['remove'](_0x56a3d2),this['_suggestionToController'][_0x20e3('0x2')](_0x350f9c),this[_0x20e3('0x1b')][_0x20e3('0x2')](_0x2751c4),_0x1d579a[_0x20e3('0x6a')]();}[_0x20e3('0x49')](_0x1c3fd6){if(!_0x1c3fd6[_0x20e3('0x3b')]||!this[_0x20e3('0x58')][_0x20e3('0x6f')](_0x1c3fd6))return;const _0x411d37=this[_0x20e3('0x38')][_0x20e3('0x3c')][_0x20e3('0x1c')](_0x20e3('0x3d')),_0x294460=this[_0x20e3('0x58')][_0x20e3('0x1c')](_0x1c3fd6),_0x35a671=_0x1c3fd6['getAllAdjacentSuggestions']();_0x294460['view']['descriptionParts']=_0x411d37[_0x20e3('0x18')]['getDescriptions'](_0x35a671);}['destroy'](){for(const _0x40dfee of this['_suggestionToController'][_0x20e3('0x1e')]())this[_0x20e3('0x34')](_0x40dfee);for(const _0x5920a4 of this['_annotationViews'][_0x20e3('0xe')]())_0x5920a4[_0x20e3('0x20')]['destroy']();super[_0x20e3('0x6a')]();}}
@@ -2,13 +2,13 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { Editor } from 'ckeditor5/src/core';
6
- import type Suggestion from '../suggestion';
7
- import type BaseSuggestionThreadView from './view/basesuggestionthreadview';
5
+ import type { Editor } from 'ckeditor5/src/core.js';
6
+ import type Suggestion from '../suggestion.js';
7
+ import type BaseSuggestionThreadView from './view/basesuggestionthreadview.js';
8
8
  import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
9
9
  declare const SuggestionController_base: {
10
- new (): import("ckeditor5/src/utils").Observable;
11
- prototype: import("ckeditor5/src/utils").Observable;
10
+ new (): import("ckeditor5/src/utils.js").Observable;
11
+ prototype: import("ckeditor5/src/utils.js").Observable;
12
12
  };
13
13
  /**
14
14
  * A controller for a suggestion.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5361=['discardSuggestion','_pendingAction','unbind','_setPendingAction','_removePendingAction','view','destroy','stopListening','isEnabled','_discardCommand','bind','get','model','PendingActions','listenTo','canDiscard','acceptSuggestion','canAccept','execute','plugins','commands','_editor','locale','canEditAt','remove','getRanges','PENDING_ACTION_SUGGESTION','isDirty','_acceptCommand','commentThreadController'];(function(_0x446b58,_0x5361b8){const _0x3c8094=function(_0x11609e){while(--_0x11609e){_0x446b58['push'](_0x446b58['shift']());}};_0x3c8094(++_0x5361b8);}(_0x5361,0x183));const _0x3c80=function(_0x446b58,_0x5361b8){_0x446b58=_0x446b58-0x0;let _0x3c8094=_0x5361[_0x446b58];return _0x3c8094;};import{ObservableMixin as _0x3082d2}from'ckeditor5/src/utils';import{getTranslation as _0x578e59}from'../utils/common-translations';export default class Qt extends _0x3082d2(){constructor(_0xbd3a30,_0xa14496,_0x3c9834,_0x4498cf){super(),this['model']=_0xa14496,this[_0x3c80('0x8')]=_0x3c9834,this[_0x3c80('0x2')]=_0x4498cf,this[_0x3c80('0x18')]=_0xbd3a30,this[_0x3c80('0x1')]=_0xbd3a30['commands'][_0x3c80('0xe')](_0x3c80('0x13')),this[_0x3c80('0xc')]=_0xbd3a30[_0x3c80('0x17')]['get'](_0x3c80('0x3')),this[_0x3c80('0x8')][_0x3c80('0xd')](_0x3c80('0xb'))['to'](this['_acceptCommand'],this[_0x3c80('0xc')],(_0x48bc2e,_0x3c9326)=>_0x48bc2e||_0x3c9326),this[_0x3c80('0x8')][_0x3c80('0xd')](_0x3c80('0x14'))['to'](this['_acceptCommand'],_0x3c80('0xb'),_0x41b121=>_0x41b121&&this['_editor'][_0x3c80('0xf')][_0x3c80('0x1a')](_0xa14496[_0x3c80('0x1c')]())),this[_0x3c80('0x8')][_0x3c80('0xd')](_0x3c80('0x12'))['to'](this['_discardCommand'],'isEnabled',_0x3d0351=>_0x3d0351&&this[_0x3c80('0x18')]['model'][_0x3c80('0x1a')](_0xa14496[_0x3c80('0x1c')]())),this['_pendingAction']=null,_0x3c9834['isDirty']&&this[_0x3c80('0x6')](),this['listenTo'](_0x3c9834,_0x3c80('0x13'),()=>this['acceptSuggestion']()),this[_0x3c80('0x11')](_0x3c9834,_0x3c80('0x3'),()=>this[_0x3c80('0x3')]()),this[_0x3c80('0x11')](_0x3c9834,'change:isDirty',()=>{_0x3c9834[_0x3c80('0x0')]?this[_0x3c80('0x6')]():this[_0x3c80('0x7')]();});}[_0x3c80('0x13')](){this['_acceptCommand'][_0x3c80('0x15')](this['model']['id']);}[_0x3c80('0x3')](){this[_0x3c80('0xc')][_0x3c80('0x15')](this['model']['id']);}[_0x3c80('0x9')](){this[_0x3c80('0x8')][_0x3c80('0x5')](_0x3c80('0xb')),this[_0x3c80('0x8')][_0x3c80('0x5')](_0x3c80('0x14')),this[_0x3c80('0x8')][_0x3c80('0x5')]('canDiscard'),this[_0x3c80('0xa')](),this['commentThreadController'][_0x3c80('0x9')](),this[_0x3c80('0x4')]&&this[_0x3c80('0x7')]();}[_0x3c80('0x6')](){const _0x3ff324=_0x578e59(this[_0x3c80('0x18')][_0x3c80('0x19')],_0x3c80('0x1d'));this['_pendingAction']=this[_0x3c80('0x18')][_0x3c80('0x16')][_0x3c80('0xe')](_0x3c80('0x10'))['add'](_0x3ff324);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x3c80('0x16')][_0x3c80('0xe')](_0x3c80('0x10'))[_0x3c80('0x1b')](this[_0x3c80('0x4')]),this[_0x3c80('0x4')]=null;}}
23
+ const _0x3464=['execute','_pendingAction','_acceptCommand','commentThreadController','canDiscard','remove','listenTo','PendingActions','unbind','isEnabled','commands','_setPendingAction','change:isDirty','get','canAccept','_discardCommand','getRanges','_editor','isDirty','model','destroy','_removePendingAction','discardSuggestion','view','acceptSuggestion','bind','add'];(function(_0x51e0d0,_0x34643d){const _0x1f8279=function(_0x35be6d){while(--_0x35be6d){_0x51e0d0['push'](_0x51e0d0['shift']());}};_0x1f8279(++_0x34643d);}(_0x3464,0x1bc));const _0x1f82=function(_0x51e0d0,_0x34643d){_0x51e0d0=_0x51e0d0-0x0;let _0x1f8279=_0x3464[_0x51e0d0];return _0x1f8279;};import{ObservableMixin as _0x1ac979}from'ckeditor5/src/utils.js';import{getTranslation as _0x46c68a}from'../utils/common-translations.js';export default class Qt extends _0x1ac979(){constructor(_0x1f3962,_0x4a4787,_0x5e8658,_0x455d89){super(),this[_0x1f82('0x7')]=_0x4a4787,this['view']=_0x5e8658,this[_0x1f82('0x12')]=_0x455d89,this[_0x1f82('0x5')]=_0x1f3962,this[_0x1f82('0x11')]=_0x1f3962[_0x1f82('0x19')][_0x1f82('0x1')](_0x1f82('0xc')),this[_0x1f82('0x3')]=_0x1f3962[_0x1f82('0x19')][_0x1f82('0x1')]('discardSuggestion'),this[_0x1f82('0xb')][_0x1f82('0xd')]('isEnabled')['to'](this[_0x1f82('0x11')],this[_0x1f82('0x3')],(_0x21149b,_0x2179d0)=>_0x21149b||_0x2179d0),this['view'][_0x1f82('0xd')](_0x1f82('0x2'))['to'](this[_0x1f82('0x11')],_0x1f82('0x18'),_0x24ca36=>_0x24ca36&&this[_0x1f82('0x5')][_0x1f82('0x7')]['canEditAt'](_0x4a4787[_0x1f82('0x4')]())),this[_0x1f82('0xb')][_0x1f82('0xd')](_0x1f82('0x13'))['to'](this[_0x1f82('0x3')],'isEnabled',_0x2cff80=>_0x2cff80&&this[_0x1f82('0x5')][_0x1f82('0x7')]['canEditAt'](_0x4a4787['getRanges']())),this[_0x1f82('0x10')]=null,_0x5e8658['isDirty']&&this[_0x1f82('0x1a')](),this['listenTo'](_0x5e8658,_0x1f82('0xc'),()=>this['acceptSuggestion']()),this[_0x1f82('0x15')](_0x5e8658,_0x1f82('0xa'),()=>this['discardSuggestion']()),this[_0x1f82('0x15')](_0x5e8658,_0x1f82('0x0'),()=>{_0x5e8658[_0x1f82('0x6')]?this['_setPendingAction']():this['_removePendingAction']();});}[_0x1f82('0xc')](){this[_0x1f82('0x11')][_0x1f82('0xf')](this[_0x1f82('0x7')]['id']);}['discardSuggestion'](){this[_0x1f82('0x3')][_0x1f82('0xf')](this[_0x1f82('0x7')]['id']);}[_0x1f82('0x8')](){this[_0x1f82('0xb')][_0x1f82('0x17')](_0x1f82('0x18')),this[_0x1f82('0xb')][_0x1f82('0x17')](_0x1f82('0x2')),this[_0x1f82('0xb')][_0x1f82('0x17')](_0x1f82('0x13')),this['stopListening'](),this[_0x1f82('0x12')][_0x1f82('0x8')](),this[_0x1f82('0x10')]&&this[_0x1f82('0x9')]();}[_0x1f82('0x1a')](){const _0x2a1f5a=_0x46c68a(this[_0x1f82('0x5')]['locale'],'PENDING_ACTION_SUGGESTION');this[_0x1f82('0x10')]=this[_0x1f82('0x5')]['plugins'][_0x1f82('0x1')](_0x1f82('0x16'))[_0x1f82('0xe')](_0x2a1f5a);}['_removePendingAction'](){null!==this[_0x1f82('0x10')]&&this[_0x1f82('0x5')]['plugins'][_0x1f82('0x1')](_0x1f82('0x16'))[_0x1f82('0x14')](this['_pendingAction']),this[_0x1f82('0x10')]=null;}}
@@ -6,13 +6,13 @@
6
6
  * @module track-changes/ui/view/basesuggestionthreadview
7
7
  * @publicApi
8
8
  */
9
- import { View } from 'ckeditor5/src/ui';
10
- import type { Locale } from 'ckeditor5/src/utils';
11
- import type { EditorConfig } from 'ckeditor5/src/core';
12
- import type Suggestion from '../../suggestion';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
+ import type { EditorConfig } from 'ckeditor5/src/core.js';
12
+ import type Suggestion from '../../suggestion.js';
13
13
  import type { CommentsListView, CommentThreadInputView, CommentView } from '@ckeditor/ckeditor5-comments';
14
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
15
- import type { Description } from '../../suggestiondescriptionfactory';
14
+ import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
15
+ import type { Description } from '../../suggestiondescriptionfactory.js';
16
16
  /**
17
17
  * An abstract suggestion thread view class that should be used as a base for suggestion thread view implementations.
18
18
  * It provides some behaviors, flags and building blocks to use when creating a custom suggestion thread view class.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x190b=['delegate','commentThread','isReadOnly','bind','setData','set','updateComment','submit','commentThreadInputView','removeComment','length','descriptionParts','destroy','authoredAt','cancel','disableComments','_config','assign','element','isActive','commentInputView','isDirty','locale','disabledSubmit','hasDirtyComment','showInput','commentsListView','value','isEnabled','_model','_localUser','focus','_createCommentThreadInputView','addComment','fire'];(function(_0x42bba5,_0x190be2){const _0x16e92b=function(_0xf236c1){while(--_0xf236c1){_0x42bba5['push'](_0x42bba5['shift']());}};_0x16e92b(++_0x190be2);}(_0x190b,0x17c));const _0x16e9=function(_0x42bba5,_0x190be2){_0x42bba5=_0x42bba5-0x0;let _0x16e92b=_0x190b[_0x42bba5];return _0x16e92b;};import{View as _0x3d4a86}from'ckeditor5/src/ui';export default class si extends _0x3d4a86{constructor(_0x3f83b3,_0x5dff47,_0x4a662b,_0x51148d){super(_0x3f83b3),this['commentsListView']=null,this[_0x16e9('0xd')]=null,this[_0x16e9('0xa')](_0x16e9('0x18'),!0x1),this[_0x16e9('0xa')]('authoredAt',_0x5dff47['authoredAt']),this[_0x16e9('0x8')](_0x16e9('0x12'))['to'](_0x5dff47),this['set'](_0x16e9('0x10'),[]),this[_0x16e9('0xa')](_0x16e9('0x1a'),!0x1),this[_0x16e9('0xa')](_0x16e9('0x21'),!0x1),this['set']('canAccept',!0x1),this[_0x16e9('0xa')]('canDiscard',!0x1),this[_0x16e9('0x22')]=_0x5dff47,this['_localUser']=_0x4a662b,this[_0x16e9('0x15')]=_0x51148d,_0x51148d[_0x16e9('0x14')]?this[_0x16e9('0xa')]('length',0x1):this['_createCommentViews']();}[_0x16e9('0x1')](){this[_0x16e9('0x17')][_0x16e9('0x1')]();}[_0x16e9('0x11')](){this[_0x16e9('0x1f')]&&this['commentsListView'][_0x16e9('0x11')](),this[_0x16e9('0xd')]&&this[_0x16e9('0xd')][_0x16e9('0x11')](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c1bf1}=this['_config'];this['commentsListView']=new _0x2c1bf1(this[_0x16e9('0x1b')],this[_0x16e9('0x22')][_0x16e9('0x6')],Object[_0x16e9('0x16')]({'CommentView':this['_config']['CommentView']},this['_config'])),this[_0x16e9('0x1f')][_0x16e9('0x5')](_0x16e9('0xe'))['to'](this),this[_0x16e9('0x1f')][_0x16e9('0x5')](_0x16e9('0xb'))['to'](this),this[_0x16e9('0x1f')]['bind'](_0x16e9('0x18'))['to'](this),this[_0x16e9('0xa')](_0x16e9('0xf'),this['commentsListView']['length']+0x1),this[_0x16e9('0x8')](_0x16e9('0xf'))['to'](this[_0x16e9('0x1f')],_0x16e9('0xf'),_0x49b927=>_0x49b927+0x1),this[_0x16e9('0xd')]=this['_createCommentThreadInputView'](),this['on'](_0x16e9('0xe'),()=>this[_0x16e9('0x1')]()),this[_0x16e9('0x8')](_0x16e9('0x1a'))['to'](this['commentsListView'],_0x16e9('0x1d'),this[_0x16e9('0xd')][_0x16e9('0x19')],_0x16e9('0x20'),(_0x510edb,_0x46190f)=>_0x510edb||!!_0x46190f);}[_0x16e9('0x2')](){const {CommentThreadInputView:_0x33afdb}=this[_0x16e9('0x15')],_0x13f8b4=new _0x33afdb(this['locale'],this[_0x16e9('0x0')],this[_0x16e9('0x15')]['editorConfig']),_0x4da567=_0x13f8b4[_0x16e9('0x19')];return _0x13f8b4[_0x16e9('0x8')](_0x16e9('0x1e'))['to'](this,'isActive',this[_0x16e9('0x22')][_0x16e9('0x6')],_0x16e9('0x7'),_0x4da567,'value',(_0x39199b,_0x40f8bb,_0x2a5061)=>!!_0x2a5061||_0x39199b&&!_0x40f8bb),_0x4da567['on'](_0x16e9('0xc'),(_0x1df78a,_0x1eae1a)=>{this[_0x16e9('0x4')](_0x16e9('0x3'),_0x1eae1a),_0x4da567['editor'][_0x16e9('0x9')]('');}),_0x4da567['on'](_0x16e9('0x13'),()=>this[_0x16e9('0x1')]()),_0x4da567[_0x16e9('0x8')](_0x16e9('0x1c'))['to'](this['_model'][_0x16e9('0x6')],_0x16e9('0x7')),_0x13f8b4;}}
23
+ const _0x3fe2=['isActive','disabledSubmit','length','isReadOnly','_localUser','isDirty','disableComments','showInput','bind','_createCommentThreadInputView','set','_model','assign','_config','descriptionParts','authoredAt','value','element','fire','locale','editor','canAccept','CommentView','commentThreadInputView','delegate','commentInputView','_createCommentViews','commentThread','canDiscard','focus','removeComment','hasDirtyComment','destroy','cancel','commentsListView','updateComment','editorConfig'];(function(_0x3cd240,_0x3fe290){const _0x75f1f4=function(_0x225962){while(--_0x225962){_0x3cd240['push'](_0x3cd240['shift']());}};_0x75f1f4(++_0x3fe290);}(_0x3fe2,0x163));const _0x75f1=function(_0x3cd240,_0x3fe290){_0x3cd240=_0x3cd240-0x0;let _0x75f1f4=_0x3fe2[_0x3cd240];return _0x75f1f4;};import{View as _0x55769d}from'ckeditor5/src/ui.js';export default class es extends _0x55769d{constructor(_0x20be75,_0x4ed053,_0x469c12,_0x5d1355){super(_0x20be75),this[_0x75f1('0xc')]=null,this[_0x75f1('0x1')]=null,this['set'](_0x75f1('0xf'),!0x1),this['set'](_0x75f1('0x1e'),_0x4ed053['authoredAt']),this['bind']('authoredAt')['to'](_0x4ed053),this[_0x75f1('0x19')](_0x75f1('0x1d'),[]),this[_0x75f1('0x19')](_0x75f1('0x14'),!0x1),this[_0x75f1('0x19')]('isEnabled',!0x1),this[_0x75f1('0x19')](_0x75f1('0x24'),!0x1),this[_0x75f1('0x19')](_0x75f1('0x6'),!0x1),this[_0x75f1('0x1a')]=_0x4ed053,this[_0x75f1('0x13')]=_0x469c12,this[_0x75f1('0x1c')]=_0x5d1355,_0x5d1355[_0x75f1('0x15')]?this[_0x75f1('0x19')](_0x75f1('0x11'),0x1):this[_0x75f1('0x4')]();}['focus'](){this[_0x75f1('0x20')][_0x75f1('0x7')]();}[_0x75f1('0xa')](){this['commentsListView']&&this[_0x75f1('0xc')][_0x75f1('0xa')](),this[_0x75f1('0x1')]&&this[_0x75f1('0x1')][_0x75f1('0xa')](),super[_0x75f1('0xa')]();}[_0x75f1('0x4')](){const {CommentsListView:_0x5b45c7}=this[_0x75f1('0x1c')];this[_0x75f1('0xc')]=new _0x5b45c7(this[_0x75f1('0x22')],this[_0x75f1('0x1a')][_0x75f1('0x5')],Object[_0x75f1('0x1b')]({'CommentView':this[_0x75f1('0x1c')][_0x75f1('0x0')]},this[_0x75f1('0x1c')])),this[_0x75f1('0xc')][_0x75f1('0x2')](_0x75f1('0x8'))['to'](this),this[_0x75f1('0xc')][_0x75f1('0x2')](_0x75f1('0xd'))['to'](this),this[_0x75f1('0xc')][_0x75f1('0x17')]('isActive')['to'](this),this[_0x75f1('0x19')](_0x75f1('0x11'),this['commentsListView'][_0x75f1('0x11')]+0x1),this[_0x75f1('0x17')](_0x75f1('0x11'))['to'](this[_0x75f1('0xc')],_0x75f1('0x11'),_0x12b046=>_0x12b046+0x1),this[_0x75f1('0x1')]=this['_createCommentThreadInputView'](),this['on'](_0x75f1('0x8'),()=>this['focus']()),this[_0x75f1('0x17')](_0x75f1('0x14'))['to'](this[_0x75f1('0xc')],_0x75f1('0x9'),this[_0x75f1('0x1')][_0x75f1('0x3')],_0x75f1('0x1f'),(_0x595271,_0x2d22a3)=>_0x595271||!!_0x2d22a3);}[_0x75f1('0x18')](){const {CommentThreadInputView:_0x5b02ee}=this[_0x75f1('0x1c')],_0x33ce7a=new _0x5b02ee(this[_0x75f1('0x22')],this['_localUser'],this['_config'][_0x75f1('0xe')]),_0x4a7299=_0x33ce7a[_0x75f1('0x3')];return _0x33ce7a[_0x75f1('0x17')](_0x75f1('0x16'))['to'](this,_0x75f1('0xf'),this[_0x75f1('0x1a')]['commentThread'],_0x75f1('0x12'),_0x4a7299,_0x75f1('0x1f'),(_0x17dc9c,_0x20709a,_0x7d2938)=>!!_0x7d2938||_0x17dc9c&&!_0x20709a),_0x4a7299['on']('submit',(_0x1b0840,_0x8af8bb)=>{this[_0x75f1('0x21')]('addComment',_0x8af8bb),_0x4a7299[_0x75f1('0x23')]['setData']('');}),_0x4a7299['on'](_0x75f1('0xb'),()=>this['focus']()),_0x4a7299[_0x75f1('0x17')](_0x75f1('0x10'))['to'](this[_0x75f1('0x1a')][_0x75f1('0x5')],_0x75f1('0x12')),_0x33ce7a;}}
@@ -2,11 +2,11 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { default as BaseSuggestionThreadView, type SuggestionThreadConfig } from './basesuggestionthreadview';
6
- import { ButtonView, type TemplateDefinition } from 'ckeditor5/src/ui';
7
- import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
8
- import type { Locale } from 'ckeditor5/src/utils';
9
- import type Suggestion from '../../suggestion';
5
+ import { default as BaseSuggestionThreadView, type SuggestionThreadConfig } from './basesuggestionthreadview.js';
6
+ import { ButtonView, type TemplateDefinition } from 'ckeditor5/src/ui.js';
7
+ import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ import type Suggestion from '../../suggestion.js';
10
10
  /**
11
11
  * The default view for a suggestion thread.
12
12
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5661=['formatDateTime','source','cancel','commentsListView','Accept\x20suggestion','name','locale','_createButton','userView','type','render','ck-annotation__user','extendTemplate','Discard\x20suggestion','</span>','description','editorDestroyed','ck-annotation__info-time','color','ck-suggestion__info','commentThreadInputView','_descriptionElement','editorReady','creator','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','author','time','canAccept','ck-annotation','commentThread','ck-suggestion-wrapper--active','set','fire','ck-suggestion--disabled-comments','ck-suggestion__main','ck-suggestion--accept','push','descriptionParts','ck-annotation__info-name','isExternal','acceptSuggestion','div','canDiscard','\x22\x20title=\x22','map','_config','setTemplate','EXTERNAL_IMPORT_WORD_AVATAR','ck-suggestion-wrapper','ck-annotation__actions','title','@external','_model','ck-suggestion-','ck-annotation__info','value','discardSuggestion','getUserViewNotificationText','innerText','bindTemplate','join','isEnabled','discardButton','getExternalSuggestionNote','element','attributes','.ck-annotation__content-wrapper','isActive','importWord','EXTERNAL_IMPORT_WORD_SUGGESTION','getTemplate','ck-suggestion__actions','disableComments','innerHTML','delegate','bind','ck-suggestion--discard','authoredAt','<p>','querySelector','</p>','<span\x20class=\x22ck-suggestion-type\x22>','acceptButton'];(function(_0x24cc35,_0x56610a){const _0x4a3f4c=function(_0x5236d0){while(--_0x5236d0){_0x24cc35['push'](_0x24cc35['shift']());}};_0x4a3f4c(++_0x56610a);}(_0x5661,0xfe));const _0x4a3f=function(_0x24cc35,_0x56610a){_0x24cc35=_0x24cc35-0x0;let _0x4a3f4c=_0x5661[_0x24cc35];return _0x4a3f4c;};import{getTranslation as _0x301fc1}from'../../utils/common-translations';import{default as _0x2d3aec}from'./basesuggestionthreadview';import{ButtonView as _0x862609}from'ckeditor5/src/ui';import{icons as _0x53a3d7}from'ckeditor5/src/core';import{trimHtml as _0x17b6ad,UserView as _0x5c3061}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0x2d3aec{constructor(_0x2cc577,_0x29ab85,_0x536975,_0x5921a3){super(_0x2cc577,_0x29ab85,_0x536975,_0x5921a3),this[_0x4a3f('0x1a')]('type',''),this['bind'](_0x4a3f('0x4'))['to'](this,_0x4a3f('0x20'),_0x2f7e35=>_0x2f7e35&&_0x2f7e35[0x0]?_0x2f7e35[0x0][_0x4a3f('0x4')]:''),this[_0x4a3f('0x46')](_0x4a3f('0xa'))['to'](this,_0x4a3f('0x20'),this,_0x4a3f('0x3e'),(_0x5920a0,_0x29ef83)=>{let _0x4c1191='';for(const _0x2c9865 of _0x5920a0)_0x4c1191+=_0x4a3f('0x49')+ci(_0x2c9865['content'],_0x2c9865[_0x4a3f('0xd')])+_0x4a3f('0x4b');return _0x29ef83?_0x4c1191:_0x17b6ad(_0x4c1191,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x4a3f('0x4d')]=this[_0x4a3f('0x2')](_0x301fc1(_0x2cc577,_0x4a3f('0x52')),_0x53a3d7['check'],_0x4a3f('0x1e'),_0x4a3f('0x23'),'sw'),this[_0x4a3f('0x4d')][_0x4a3f('0x46')]('isEnabled')['to'](this,_0x4a3f('0x16')),this['discardButton']=this[_0x4a3f('0x2')](_0x301fc1(_0x2cc577,_0x4a3f('0x8')),_0x53a3d7[_0x4a3f('0x50')],_0x4a3f('0x47'),_0x4a3f('0x33'),'sw'),this[_0x4a3f('0x39')][_0x4a3f('0x46')](_0x4a3f('0x38'))['to'](this,_0x4a3f('0x25')),this[_0x4a3f('0x3')]=new _0x5c3061(_0x2cc577,this['_model'][_0x4a3f('0x14')],this[_0x4a3f('0x34')]()),this[_0x4a3f('0x3')][_0x4a3f('0x7')]({'attributes':{'class':['ck-suggestion__user',_0x4a3f('0x6')]}}),this[_0x4a3f('0x29')](this[_0x4a3f('0x41')]());}['getTemplate'](){const _0x9eb2e7=this[_0x4a3f('0x36')],_0x1060d5=[{'tag':_0x4a3f('0x24'),'attributes':{'class':[_0x4a3f('0xe'),_0x4a3f('0x31')]},'children':[{'tag':'span','children':[{'text':this[_0x4a3f('0x3')][_0x4a3f('0x0')]}],'attributes':{'class':['ck-suggestion__info-name',_0x4a3f('0x21')]}},{'tag':_0x4a3f('0x15'),'attributes':{'datetime':_0x9eb2e7['to'](_0x4a3f('0x48')),'class':['ck-comment__info-time',_0x4a3f('0xc')]},'children':[{'text':_0x9eb2e7['to'](_0x4a3f('0x48'),_0x2f97c1=>this[_0x4a3f('0x28')][_0x4a3f('0x4e')](_0x2f97c1))}]}]},{'tag':_0x4a3f('0x24'),'attributes':{'class':[_0x4a3f('0x42'),_0x4a3f('0x2c')]},'children':[this[_0x4a3f('0x4d')],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x4a3f('0x2f')][_0x4a3f('0x22')]&&_0x1060d5['push']({'tag':_0x4a3f('0x24'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x4a3f('0x3a')]()}]});const _0x1ad069={'tag':_0x4a3f('0x24'),'attributes':{'class':[_0x4a3f('0x2b'),_0x9eb2e7['if'](_0x4a3f('0x3e'),_0x4a3f('0x19')),_0x9eb2e7['to'](_0x4a3f('0x4'),_0xd81aeb=>_0x4a3f('0x30')+_0xd81aeb),this[_0x4a3f('0x28')][_0x4a3f('0x43')]&&_0x4a3f('0x1c')],'data-suggestion-id':this[_0x4a3f('0x2f')]['id'],'data-thread-id':this[_0x4a3f('0x2f')][_0x4a3f('0x18')]['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x4a3f('0x24'),'attributes':{'class':['ck-suggestion',_0x4a3f('0x17')]},'children':[this[_0x4a3f('0x3')],{'tag':'div','attributes':{'class':[_0x4a3f('0x1d'),'ck-annotation__main']},'children':_0x1060d5}]}]};return this[_0x4a3f('0x51')]&&this[_0x4a3f('0xf')]&&(_0x1ad069['children'][_0x4a3f('0x1f')](this['commentsListView'],this['commentThreadInputView']),this[_0x4a3f('0x51')][_0x4a3f('0x45')](_0x4a3f('0x11'))['to'](this),this[_0x4a3f('0x51')][_0x4a3f('0x45')](_0x4a3f('0xb'))['to'](this),this[_0x4a3f('0xf')][_0x4a3f('0x45')](_0x4a3f('0x11'))['to'](this),this[_0x4a3f('0xf')]['delegate'](_0x4a3f('0xb'))['to'](this)),_0x1ad069;}[_0x4a3f('0x5')](){super[_0x4a3f('0x5')](),this[_0x4a3f('0x10')]=this[_0x4a3f('0x3b')][_0x4a3f('0x4a')](_0x4a3f('0x3d')),this[_0x4a3f('0x10')]['innerHTML']=this[_0x4a3f('0xa')],this['on']('change:description',(_0x25a02e,_0x44bb9e,_0xcfe0a3)=>{this['_descriptionElement'][_0x4a3f('0x44')]=_0xcfe0a3;});}[_0x4a3f('0x2')](_0xf0eacd,_0x343ab4,_0x52eb0b,_0x54c2a6,_0x7eff51){const _0xad5492=new _0x862609(this[_0x4a3f('0x1')]);return _0xad5492['set']({'label':_0xf0eacd,'icon':_0x343ab4,'tooltip':!0x0,'tooltipPosition':_0x7eff51}),_0xad5492['extendTemplate']({'attributes':{'class':_0x52eb0b}}),_0xad5492['on']('execute',()=>{this[_0x4a3f('0x1b')](_0x54c2a6,this['_model']['id']);}),_0xad5492;}['getExternalSuggestionNote'](){return _0x4a3f('0x3f')===this[_0x4a3f('0x2f')][_0x4a3f('0x3c')][_0x4a3f('0x2e')][_0x4a3f('0x4f')]?_0x301fc1(this[_0x4a3f('0x1')],_0x4a3f('0x40')):_0x301fc1(this[_0x4a3f('0x1')],'EXTERNAL_SUGGESTION');}[_0x4a3f('0x34')](){return this[_0x4a3f('0x2f')][_0x4a3f('0x22')]?_0x4a3f('0x3f')===this[_0x4a3f('0x2f')]['attributes'][_0x4a3f('0x2e')][_0x4a3f('0x4f')]?_0x301fc1(this[_0x4a3f('0x1')],_0x4a3f('0x2a'),this[_0x4a3f('0x2f')][_0x4a3f('0x12')][_0x4a3f('0x0')]):_0x301fc1(this[_0x4a3f('0x1')],'EXTERNAL_AVATAR',this[_0x4a3f('0x2f')][_0x4a3f('0x12')][_0x4a3f('0x0')]):null;}}function ci(_0x5afce8,_0x388aae){let _0x134d6e='';return _0x134d6e+=_0x5afce8['split']('*')[_0x4a3f('0x27')]((_0x2f2eb9,_0x7f2713)=>_0x7f2713%0x2!=0x0?_0x4a3f('0x4c')+ri(_0x2f2eb9)+_0x4a3f('0x9'):ri(_0x2f2eb9))[_0x4a3f('0x37')](''),_0x388aae&&(_0x134d6e+=_0x4a3f('0x13')+_0x388aae[_0x4a3f('0x32')]+_0x4a3f('0x26')+_0x388aae[_0x4a3f('0x2d')]+'\x22></span>'),_0x134d6e;}function ri(_0x14defb){const _0x36869d=document['createElement']('span');return _0x36869d[_0x4a3f('0x35')]=_0x14defb,_0x36869d[_0x4a3f('0x44')];}
23
+ const _0x3990=['execute','ck-suggestion__info-name','\x22\x20title=\x22','source','extendTemplate','getUserViewNotificationText','editorReady','ck-suggestion-','ck-annotation','innerText','userView','ck-annotation__info-time','ck-suggestion__user','span','_descriptionElement','getExternalSuggestionNote','ck-suggestion-wrapper--active','importWord','cancel','EXTERNAL_IMPORT_WORD_AVATAR','acceptSuggestion','time','isEnabled','render','.ck-annotation__content-wrapper','ck-annotation__actions','author','ck-annotation__content-wrapper','ck-annotation__info-name','split','discardButton','commentThreadInputView','ck-annotation__info','acceptButton','delegate','ck-suggestion__info','editorDestroyed','value','@external','check','isActive','ck-comment__info-time','children','descriptionParts','discardSuggestion','\x22></span>','set','ck-comment__external','type','div','isExternal','disableComments','EXTERNAL_SUGGESTION','<p>','commentsListView','name','bind','createElement','ck-annotation__main','innerHTML','querySelector','ck-annotation__user','description','canAccept','_createButton','canDiscard','title','content','_config','ck-suggestion__actions','_model','formatDateTime','<span\x20class=\x22ck-suggestion-type\x22>','join','EXTERNAL_AVATAR','locale','bindTemplate','authoredAt','change:description','color','push','creator'];(function(_0x5ee7de,_0x399047){const _0xdfa486=function(_0x17e055){while(--_0x17e055){_0x5ee7de['push'](_0x5ee7de['shift']());}};_0xdfa486(++_0x399047);}(_0x3990,0x1f3));const _0xdfa4=function(_0x5ee7de,_0x399047){_0x5ee7de=_0x5ee7de-0x0;let _0xdfa486=_0x3990[_0x5ee7de];return _0xdfa486;};import{getTranslation as _0x563922}from'../../utils/common-translations.js';import{default as _0x432bfd}from'./basesuggestionthreadview.js';import{ButtonView as _0x45e0e4}from'ckeditor5/src/ui.js';import{icons as _0x51f634}from'ckeditor5/src/core.js';import{trimHtml as _0x58011e,UserView as _0x5b1b4a}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Xt extends _0x432bfd{constructor(_0x19d75f,_0x56fb12,_0xa16002,_0x1c342b){super(_0x19d75f,_0x56fb12,_0xa16002,_0x1c342b),this['set'](_0xdfa4('0x29'),''),this[_0xdfa4('0x31')](_0xdfa4('0x29'))['to'](this,_0xdfa4('0x24'),_0x1ac608=>_0x1ac608&&_0x1ac608[0x0]?_0x1ac608[0x0][_0xdfa4('0x29')]:''),this[_0xdfa4('0x31')](_0xdfa4('0x37'))['to'](this,_0xdfa4('0x24'),this,_0xdfa4('0x21'),(_0x7e499c,_0x46b1cf)=>{let _0x9dae49='';for(const _0x2ec163 of _0x7e499c)_0x9dae49+=_0xdfa4('0x2e')+rs(_0x2ec163[_0xdfa4('0x3c')],_0x2ec163[_0xdfa4('0x48')])+'</p>';return _0x46b1cf?_0x9dae49:_0x58011e(_0x9dae49,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](_0x563922(_0x19d75f,'Accept\x20suggestion'),_0x51f634[_0xdfa4('0x20')],'ck-suggestion--accept',_0xdfa4('0xd'),'sw'),this['acceptButton'][_0xdfa4('0x31')](_0xdfa4('0xf'))['to'](this,_0xdfa4('0x38')),this[_0xdfa4('0x17')]=this[_0xdfa4('0x39')](_0x563922(_0x19d75f,'Discard\x20suggestion'),_0x51f634[_0xdfa4('0xb')],'ck-suggestion--discard',_0xdfa4('0x25'),'sw'),this[_0xdfa4('0x17')][_0xdfa4('0x31')](_0xdfa4('0xf'))['to'](this,_0xdfa4('0x3a')),this['userView']=new _0x5b1b4a(_0x19d75f,this[_0xdfa4('0x3f')][_0xdfa4('0x13')],this[_0xdfa4('0x50')]()),this[_0xdfa4('0x3')][_0xdfa4('0x4f')]({'attributes':{'class':[_0xdfa4('0x5'),_0xdfa4('0x36')]}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x22df39=this[_0xdfa4('0x45')],_0x530999=[{'tag':_0xdfa4('0x2a'),'attributes':{'class':[_0xdfa4('0x1c'),_0xdfa4('0x19')]},'children':[{'tag':'span','children':[{'text':this[_0xdfa4('0x3')][_0xdfa4('0x30')]}],'attributes':{'class':[_0xdfa4('0x4c'),_0xdfa4('0x15')]}},{'tag':_0xdfa4('0xe'),'attributes':{'datetime':_0x22df39['to'](_0xdfa4('0x46')),'class':[_0xdfa4('0x22'),_0xdfa4('0x4')]},'children':[{'text':_0x22df39['to'](_0xdfa4('0x46'),_0x267b4d=>this['_config'][_0xdfa4('0x40')](_0x267b4d))}]}]},{'tag':_0xdfa4('0x2a'),'attributes':{'class':[_0xdfa4('0x3e'),_0xdfa4('0x12')]},'children':[this[_0xdfa4('0x1a')],this['discardButton']]},{'tag':'div','attributes':{'class':[_0xdfa4('0x14')]}}];this[_0xdfa4('0x3f')]['isExternal']&&_0x530999[_0xdfa4('0x49')]({'tag':_0xdfa4('0x2a'),'attributes':{'class':[_0xdfa4('0x28')]},'children':[{'text':this[_0xdfa4('0x8')]()}]});const _0x6f3340={'tag':_0xdfa4('0x2a'),'attributes':{'class':['ck-suggestion-wrapper',_0x22df39['if'](_0xdfa4('0x21'),_0xdfa4('0x9')),_0x22df39['to'](_0xdfa4('0x29'),_0x40ff2f=>_0xdfa4('0x0')+_0x40ff2f),this[_0xdfa4('0x3d')][_0xdfa4('0x2c')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0xdfa4('0x3f')]['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this[_0xdfa4('0x3f')][_0xdfa4('0x13')]['id'],'tabindex':-0x1},'children':[{'tag':_0xdfa4('0x2a'),'attributes':{'class':['ck-suggestion',_0xdfa4('0x1')]},'children':[this[_0xdfa4('0x3')],{'tag':_0xdfa4('0x2a'),'attributes':{'class':['ck-suggestion__main',_0xdfa4('0x33')]},'children':_0x530999}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x6f3340[_0xdfa4('0x23')][_0xdfa4('0x49')](this[_0xdfa4('0x2f')],this[_0xdfa4('0x18')]),this['commentsListView'][_0xdfa4('0x1b')](_0xdfa4('0x51'))['to'](this),this[_0xdfa4('0x2f')]['delegate'](_0xdfa4('0x1d'))['to'](this),this[_0xdfa4('0x18')]['delegate'](_0xdfa4('0x51'))['to'](this),this['commentThreadInputView'][_0xdfa4('0x1b')](_0xdfa4('0x1d'))['to'](this)),_0x6f3340;}[_0xdfa4('0x10')](){super[_0xdfa4('0x10')](),this[_0xdfa4('0x7')]=this['element'][_0xdfa4('0x35')](_0xdfa4('0x11')),this['_descriptionElement'][_0xdfa4('0x34')]=this['description'],this['on'](_0xdfa4('0x47'),(_0x1e74bf,_0x18379e,_0x11b42b)=>{this[_0xdfa4('0x7')][_0xdfa4('0x34')]=_0x11b42b;});}['_createButton'](_0x4ec315,_0x328846,_0x4e66c2,_0x62e895,_0x5a988b){const _0x1cdf5d=new _0x45e0e4(this[_0xdfa4('0x44')]);return _0x1cdf5d[_0xdfa4('0x27')]({'label':_0x4ec315,'icon':_0x328846,'tooltip':!0x0,'tooltipPosition':_0x5a988b}),_0x1cdf5d[_0xdfa4('0x4f')]({'attributes':{'class':_0x4e66c2}}),_0x1cdf5d['on'](_0xdfa4('0x4b'),()=>{this['fire'](_0x62e895,this[_0xdfa4('0x3f')]['id']);}),_0x1cdf5d;}[_0xdfa4('0x8')](){return'importWord'===this[_0xdfa4('0x3f')]['attributes']['@external'][_0xdfa4('0x4e')]?_0x563922(this[_0xdfa4('0x44')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x563922(this[_0xdfa4('0x44')],_0xdfa4('0x2d'));}['getUserViewNotificationText'](){return this[_0xdfa4('0x3f')][_0xdfa4('0x2b')]?_0xdfa4('0xa')===this[_0xdfa4('0x3f')]['attributes'][_0xdfa4('0x1f')][_0xdfa4('0x4e')]?_0x563922(this[_0xdfa4('0x44')],_0xdfa4('0xc'),this[_0xdfa4('0x3f')][_0xdfa4('0x4a')]['name']):_0x563922(this['locale'],_0xdfa4('0x43'),this['_model'][_0xdfa4('0x4a')]['name']):null;}}function rs(_0x2922d0,_0xf05ef){let _0xac7637='';return _0xac7637+=_0x2922d0[_0xdfa4('0x16')]('*')['map']((_0x159233,_0x43ffc8)=>_0x43ffc8%0x2!=0x0?_0xdfa4('0x41')+ds(_0x159233)+'</span>':ds(_0x159233))[_0xdfa4('0x42')](''),_0xf05ef&&(_0xac7637+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xf05ef[_0xdfa4('0x1e')]+_0xdfa4('0x4d')+_0xf05ef[_0xdfa4('0x3b')]+_0xdfa4('0x26')),_0xac7637;}function ds(_0x1f5478){const _0x10817a=document[_0xdfa4('0x32')](_0xdfa4('0x6'));return _0x10817a[_0xdfa4('0x2')]=_0x1f5478,_0x10817a[_0xdfa4('0x34')];}
@@ -5,5 +5,5 @@
5
5
  /**
6
6
  * @module track-changes/utils/common-translations
7
7
  */
8
- import { type Locale } from 'ckeditor5/src/utils';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  export declare function getTranslation(locale: Locale, id: string, values?: number | string | ReadonlyArray<number | string>): string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1cd986,_0x3ccc1e,_0x4cdd74){const t=_0x1cd986['t'];switch(_0x3ccc1e){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4cdd74);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4cdd74);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4cdd74);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4cdd74);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4cdd74);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x4cdd74);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4cdd74);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4cdd74);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4cdd74);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4cdd74);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4cdd74);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4cdd74);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4cdd74);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4cdd74);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4cdd74);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4cdd74);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4cdd74);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4cdd74);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4cdd74);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4cdd74);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4cdd74);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4cdd74);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4cdd74);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x4cdd74);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4cdd74);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4cdd74);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4cdd74);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4cdd74);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4cdd74);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4cdd74);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4cdd74);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4cdd74);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4cdd74);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4cdd74);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4cdd74);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4cdd74);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x4cdd74);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4cdd74);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4cdd74);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x4cdd74);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4cdd74);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x4cdd74);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4cdd74);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4cdd74);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4cdd74);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4cdd74);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x3ccc1e;}}
23
+ export function getTranslation(_0x433b7b,_0x13e2cc,_0x52a623){const t=_0x433b7b['t'];switch(_0x13e2cc){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',_0x52a623);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x52a623);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x52a623);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x52a623);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x52a623);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',_0x52a623);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x52a623);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',_0x52a623);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x52a623);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x52a623);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x52a623);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x52a623);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x52a623);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x52a623);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x52a623);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x52a623);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x52a623);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x52a623);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x52a623);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x52a623);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x52a623);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x52a623);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x52a623);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'},_0x52a623);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x52a623);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x52a623);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x52a623);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x52a623);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x52a623);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'},_0x52a623);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x52a623);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x52a623);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x52a623);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x52a623);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'},_0x52a623);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x52a623);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'},_0x52a623);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'},_0x52a623);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x52a623);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'},_0x52a623);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x52a623);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'},_0x52a623);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x52a623);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x52a623);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'},_0x52a623);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'},_0x52a623);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 _0x13e2cc;}}
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module track-changes/utils/utils
7
7
  */
8
- import type { Command } from 'ckeditor5/src/core';
9
- import type { DocumentSelection, Model } from 'ckeditor5/src/engine';
10
- import type Suggestion from '../suggestion';
11
- import type { Description } from '../suggestiondescriptionfactory';
8
+ import type { Command } from 'ckeditor5/src/core.js';
9
+ import type { DocumentSelection, Model } from 'ckeditor5/src/engine.js';
10
+ import type Suggestion from '../suggestion.js';
11
+ import type { Description } from '../suggestiondescriptionfactory.js';
12
12
  /**
13
13
  * Used in tests for easy suggestion comparison.
14
14
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28b8=['isInContent','isCollapsed','deletion','isIntersecting','execute','isArray','from','color','end','createPositionAt','push','createRange','createPositionAfter','type','content','\x20[color\x20','splice','value','createPositionBefore','change','getRanges','start','next','length','map','isTouching'];(function(_0x462d4d,_0x28b83a){const _0x5168b8=function(_0x1b37c4){while(--_0x1b37c4){_0x462d4d['push'](_0x462d4d['shift']());}};_0x5168b8(++_0x28b83a);}(_0x28b8,0x18b));const _0x5168=function(_0x462d4d,_0x28b83a){_0x462d4d=_0x462d4d-0x0;let _0x5168b8=_0x28b8[_0x462d4d];return _0x5168b8;};export function normalizeDescription(_0x850d80){return Array[_0x5168('0x0')](_0x850d80)||(_0x850d80=[_0x850d80]),_0x850d80[_0x5168('0x13')](_0x5cdbaa=>{const _0x108939=_0x5cdbaa[_0x5168('0x9')]['replace'](/\*/g,''),_0x335094=_0x5cdbaa[_0x5168('0x2')]?_0x5168('0xa')+_0x5cdbaa['color'][_0x5168('0xc')]+']':'';return'['+_0x5cdbaa['type']+']\x20'+_0x108939+_0x335094;})['join'](';\x20');}export function sortSuggestions(_0x3812d7){return _0x3812d7['sort']((_0x2891f7,_0x3c7cbd)=>'deletion'==_0x2891f7[_0x5168('0x8')]&&'deletion'!=_0x3c7cbd[_0x5168('0x8')]?-0x1:_0x5168('0x17')!=_0x2891f7[_0x5168('0x8')]&&_0x5168('0x17')==_0x3c7cbd['type']?0x1:0x0);}export function getSelectedSuggestions(_0x1a1cb7,_0x50f63e){const _0x524cd1=Array[_0x5168('0x1')](_0x1a1cb7[_0x5168('0xf')]()),_0x4f29b9=new Set();for(const _0x56f415 of _0x50f63e)if(_0x56f415['isInContent'])for(const _0x25e9b1 of _0x524cd1)for(const _0x4d6eeb of _0x56f415[_0x5168('0xf')]())(_0x25e9b1[_0x5168('0x18')](_0x4d6eeb)||_0x1a1cb7[_0x5168('0x16')]&&!_0x56f415['isMultiRange']&&_0x56f415[_0x5168('0x11')]&&_0x4d6eeb[_0x5168('0x3')][_0x5168('0x14')](_0x25e9b1[_0x5168('0x10')]))&&_0x4f29b9['add'](_0x56f415);return _0x4f29b9;}export function getRangesOfBlockGroups(_0x2bd462,_0x4cf5bb){let _0x1b6fa0,_0x33a2e3=0x0;const _0x49f385=[],_0x3f74bf=_0x4cf5bb['schema'];for(;_0x33a2e3<_0x2bd462[_0x5168('0x12')];){const _0x53b806=_0x2bd462[_0x33a2e3],_0x2c7bba=_0x2bd462[_0x33a2e3+0x1];_0x1b6fa0||(_0x1b6fa0=_0x4cf5bb[_0x5168('0xd')](_0x53b806)),co(_0x4cf5bb,_0x53b806,_0x2c7bba)||(_0x49f385[_0x5168('0x5')](_0x4cf5bb[_0x5168('0x6')](_0x1b6fa0,_0x3f74bf['isObject'](_0x53b806)?_0x4cf5bb[_0x5168('0x7')](_0x53b806):_0x4cf5bb[_0x5168('0x4')](_0x53b806,_0x5168('0x3')))),_0x1b6fa0=null),_0x33a2e3++;}return _0x49f385;}function co(_0x47396c,_0x54503d,_0x33f9b4){if(!_0x33f9b4)return!0x1;const _0x1734c4=_0x47396c[_0x5168('0x7')](_0x54503d),_0x14eded=_0x47396c[_0x5168('0xd')](_0x33f9b4);return _0x1734c4[_0x5168('0x14')](_0x14eded);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x2268e3,_0x1d70bd,_0x997e6a){for(;_0x997e6a[_0x5168('0x12')];){const _0x4e7191=_0x997e6a[_0x5168('0xb')](0x0,0x64);_0x2268e3[_0x5168('0xe')](()=>{for(const _0x5e8a6d of _0x4e7191)_0x5e8a6d[_0x5168('0x15')]&&_0x1d70bd[_0x5168('0x19')](_0x5e8a6d['id']);});}}
23
+ const _0x3e97=['isInContent','end','deletion','map','execute','length','isArray','type','isCollapsed','isTouching','join','isObject','createPositionAt','\x20[color\x20','replace','createPositionBefore','content','start','value','createPositionAfter','add','isMultiRange','change','push','splice','getRanges','color','from','schema'];(function(_0x1d2203,_0x3e976c){const _0x961bb7=function(_0x2f8b55){while(--_0x2f8b55){_0x1d2203['push'](_0x1d2203['shift']());}};_0x961bb7(++_0x3e976c);}(_0x3e97,0xde));const _0x961b=function(_0x1d2203,_0x3e976c){_0x1d2203=_0x1d2203-0x0;let _0x961bb7=_0x3e97[_0x1d2203];return _0x961bb7;};export function normalizeDescription(_0x367599){return Array[_0x961b('0x10')](_0x367599)||(_0x367599=[_0x367599]),_0x367599[_0x961b('0xd')](_0x554fb5=>{const _0x154155=_0x554fb5[_0x961b('0x1a')][_0x961b('0x18')](/\*/g,''),_0x3e0ece=_0x554fb5['color']?_0x961b('0x17')+_0x554fb5[_0x961b('0x7')][_0x961b('0x1c')]+']':'';return'['+_0x554fb5['type']+']\x20'+_0x154155+_0x3e0ece;})[_0x961b('0x14')](';\x20');}export function sortSuggestions(_0x34de83){return _0x34de83['sort']((_0x54aa25,_0x42a126)=>_0x961b('0xc')==_0x54aa25[_0x961b('0x11')]&&_0x961b('0xc')!=_0x42a126[_0x961b('0x11')]?-0x1:_0x961b('0xc')!=_0x54aa25[_0x961b('0x11')]&&_0x961b('0xc')==_0x42a126['type']?0x1:0x0);}export function getSelectedSuggestions(_0x5c7848,_0x388aff){const _0x4a2591=Array[_0x961b('0x8')](_0x5c7848['getRanges']()),_0x407c6e=new Set();for(const _0x22893a of _0x388aff)if(_0x22893a[_0x961b('0xa')])for(const _0x4d6585 of _0x4a2591)for(const _0x1ff5ee of _0x22893a[_0x961b('0x6')]())(_0x4d6585['isIntersecting'](_0x1ff5ee)||_0x5c7848[_0x961b('0x12')]&&!_0x22893a[_0x961b('0x2')]&&_0x22893a['next']&&_0x1ff5ee[_0x961b('0xb')][_0x961b('0x13')](_0x4d6585[_0x961b('0x1b')]))&&_0x407c6e[_0x961b('0x1')](_0x22893a);return _0x407c6e;}export function getRangesOfBlockGroups(_0xcb9d3c,_0x2e3a2e){let _0x510ee2,_0x17ba3f=0x0;const _0x1dd9df=[],_0x8d9d9c=_0x2e3a2e[_0x961b('0x9')];for(;_0x17ba3f<_0xcb9d3c['length'];){const _0x24f3b0=_0xcb9d3c[_0x17ba3f],_0x56467e=_0xcb9d3c[_0x17ba3f+0x1];_0x510ee2||(_0x510ee2=_0x2e3a2e[_0x961b('0x19')](_0x24f3b0)),co(_0x2e3a2e,_0x24f3b0,_0x56467e)||(_0x1dd9df[_0x961b('0x4')](_0x2e3a2e['createRange'](_0x510ee2,_0x8d9d9c[_0x961b('0x15')](_0x24f3b0)?_0x2e3a2e[_0x961b('0x0')](_0x24f3b0):_0x2e3a2e[_0x961b('0x16')](_0x24f3b0,_0x961b('0xb')))),_0x510ee2=null),_0x17ba3f++;}return _0x1dd9df;}function co(_0x1158c6,_0x1e5405,_0x4e7d21){if(!_0x4e7d21)return!0x1;const _0x55a93c=_0x1158c6[_0x961b('0x0')](_0x1e5405),_0x4f6323=_0x1158c6[_0x961b('0x19')](_0x4e7d21);return _0x55a93c[_0x961b('0x13')](_0x4f6323);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x29bb84,_0x39c3bc,_0x3ed2fa){for(;_0x3ed2fa[_0x961b('0xf')];){const _0x49208d=_0x3ed2fa[_0x961b('0x5')](0x0,0x64);_0x29bb84[_0x961b('0x3')](()=>{for(const _0x408592 of _0x49208d)_0x408592[_0x961b('0xa')]&&_0x39c3bc[_0x961b('0xe')](_0x408592['id']);});}}