@ckeditor/ckeditor5-track-changes 39.0.1 → 39.0.2

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 (116) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/track-changes.js +1 -1
  5. package/lang/translations/ar.po +1 -0
  6. package/lang/translations/az.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de.po +1 -0
  13. package/lang/translations/el.po +1 -0
  14. package/lang/translations/en-au.po +1 -0
  15. package/lang/translations/en.po +1 -0
  16. package/lang/translations/es.po +1 -0
  17. package/lang/translations/et.po +1 -0
  18. package/lang/translations/fi.po +1 -0
  19. package/lang/translations/fr.po +1 -0
  20. package/lang/translations/gl.po +1 -0
  21. package/lang/translations/he.po +1 -0
  22. package/lang/translations/hi.po +1 -0
  23. package/lang/translations/hr.po +1 -0
  24. package/lang/translations/hu.po +1 -0
  25. package/lang/translations/id.po +1 -0
  26. package/lang/translations/it.po +1 -0
  27. package/lang/translations/ja.po +1 -0
  28. package/lang/translations/ko.po +1 -0
  29. package/lang/translations/lt.po +1 -0
  30. package/lang/translations/lv.po +1 -0
  31. package/lang/translations/ms.po +1 -0
  32. package/lang/translations/nl.po +1 -0
  33. package/lang/translations/no.po +1 -0
  34. package/lang/translations/pl.po +1 -0
  35. package/lang/translations/pt-br.po +1 -0
  36. package/lang/translations/pt.po +1 -0
  37. package/lang/translations/ro.po +1 -0
  38. package/lang/translations/ru.po +1 -0
  39. package/lang/translations/sk.po +1 -0
  40. package/lang/translations/sq.po +1 -0
  41. package/lang/translations/sr-latn.po +1 -0
  42. package/lang/translations/sr.po +1 -0
  43. package/lang/translations/sv.po +1 -0
  44. package/lang/translations/th.po +1 -0
  45. package/lang/translations/tk.po +1 -0
  46. package/lang/translations/tr.po +1 -0
  47. package/lang/translations/tt.po +1 -0
  48. package/lang/translations/uk.po +1 -0
  49. package/lang/translations/ur.po +1 -0
  50. package/lang/translations/vi.po +1 -0
  51. package/lang/translations/zh-cn.po +1 -0
  52. package/lang/translations/zh.po +1 -0
  53. package/package.json +3 -7
  54. package/src/commands/acceptsuggestioncommand.js +1 -1
  55. package/src/commands/discardsuggestioncommand.js +1 -1
  56. package/src/commands/executeonallsuggestionscommand.js +1 -1
  57. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  58. package/src/commands/trackchangescommand.js +1 -1
  59. package/src/integrations/alignment.js +1 -1
  60. package/src/integrations/basicstyles.js +1 -1
  61. package/src/integrations/blockquote.js +1 -1
  62. package/src/integrations/ckbox.js +1 -1
  63. package/src/integrations/codeblock.js +1 -1
  64. package/src/integrations/comments.js +1 -1
  65. package/src/integrations/deletecommand.js +1 -1
  66. package/src/integrations/documentlist.js +1 -1
  67. package/src/integrations/documentlistproperties.js +1 -1
  68. package/src/integrations/entercommand.js +1 -1
  69. package/src/integrations/findandreplace.js +1 -1
  70. package/src/integrations/font.js +1 -1
  71. package/src/integrations/formatpainter.js +1 -1
  72. package/src/integrations/heading.js +1 -1
  73. package/src/integrations/highlight.js +1 -1
  74. package/src/integrations/horizontalline.js +1 -1
  75. package/src/integrations/htmlembed.js +1 -1
  76. package/src/integrations/image.js +1 -1
  77. package/src/integrations/imagereplace.js +1 -1
  78. package/src/integrations/importword.js +1 -1
  79. package/src/integrations/indent.js +1 -1
  80. package/src/integrations/inputcommand.js +1 -1
  81. package/src/integrations/link.js +1 -1
  82. package/src/integrations/list.js +1 -1
  83. package/src/integrations/listproperties.js +1 -1
  84. package/src/integrations/mediaembed.js +1 -1
  85. package/src/integrations/mention.js +1 -1
  86. package/src/integrations/pagebreak.js +1 -1
  87. package/src/integrations/paragraph.js +1 -1
  88. package/src/integrations/removeformat.js +1 -1
  89. package/src/integrations/restrictededitingmode.js +1 -1
  90. package/src/integrations/shiftentercommand.js +1 -1
  91. package/src/integrations/standardeditingmode.js +1 -1
  92. package/src/integrations/style.js +1 -1
  93. package/src/integrations/table.js +1 -1
  94. package/src/integrations/tablecaption.js +1 -1
  95. package/src/integrations/tableclipboard.js +1 -1
  96. package/src/integrations/tablecolumnresize.js +1 -1
  97. package/src/integrations/tableheadings.js +1 -1
  98. package/src/integrations/tablemergesplit.js +1 -1
  99. package/src/integrations/tableofcontents.js +1 -1
  100. package/src/integrations/tableproperties.js +1 -1
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.js +1 -1
  103. package/src/integrations/undo.js +1 -1
  104. package/src/integrations/utils.js +1 -1
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.js +1 -1
  107. package/src/trackchanges.js +1 -1
  108. package/src/trackchangesdata.js +1 -1
  109. package/src/trackchangesediting.d.ts +29 -1
  110. package/src/trackchangesediting.js +1 -1
  111. package/src/trackchangesui.js +1 -1
  112. package/src/ui/suggestioncontroller.js +1 -1
  113. package/src/ui/view/basesuggestionthreadview.js +1 -1
  114. package/src/ui/view/suggestionthreadview.js +1 -1
  115. package/src/utils/common-translations.js +1 -1
  116. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x384c=['_suggestionToController','acceptSelectedSuggestions','destroy','Track\x20changes','separator','_disableComments','TrackChangesUI','comments','_viewToController','button','SuggestionThreadView','value','clear','suggestionLoaded','listenTo','registerAnnotation','discardAllSuggestions','commandName','filter','getSuggestion','getMarkers','delete','config','commentThread','discardButton','has','innerView','model','lowest','activeAnnotations','comments.maxThreadTotalWeight','EditorAnnotations','set','keys','define','init','CommentView','add','isInContent','actionView','_initializeController','Annotations','_annotationViews','stopListening','editor','CommentsRepository','trackChanges.disableComments','switchbutton','_refreshActiveMarkers','commands','reduce','trackChanges','TrackChangesEditing','isDirty','Accept\x20all\x20selected\x20suggestions','hasSuggestion','pluginName','remove','size','requires','plugins','getJoined','view','_handleSuggestionControllerDelayed','Discard\x20all\x20selected\x20suggestions','isOn','type','length','get','descriptionParts','isEnabled','editing','acceptAllSuggestions','unbind','_handleControllerBuffer','_descriptionFactory','createAnnotation','activeMarkers','mainView','_updateController','map','refreshSelectedViews','suggestionChanged','componentFactory','getDescriptions','createCommentThreadController','_bindAnnotationToEditors','acceptButton','change:previous','previous','comments.editorConfig','Discard\x20all\x20suggestions','locale','getRanges','bind','_createUIButton','trackChanges.SuggestionThreadView','values','push','comments.maxCommentsWhenCollapsed','execute','addSourceCollector','_destroyController','toMany','head','focus','buttonView','arrowView','suggestionUnloaded','getAllAdjacentSuggestions','discardSelectedSuggestions','isMultiRange','getFirstRange','suggestion-','from','some'];(function(_0xe12b4f,_0x384ccc){const _0x2f584b=function(_0xca69c6){while(--_0xca69c6){_0xe12b4f['push'](_0xe12b4f['shift']());}};_0x2f584b(++_0x384ccc);}(_0x384c,0x9f));const _0x2f58=function(_0xe12b4f,_0x384ccc){_0xe12b4f=_0xe12b4f-0x0;let _0x2f584b=_0x384c[_0xe12b4f];return _0x2f584b;};import{Plugin as _0x352bc5}from'ckeditor5/src/core';import{Collection as _0x56b27d}from'ckeditor5/src/utils';import{Model as _0xf1cec8,SplitButtonView as _0x267fb8,createDropdown as _0x238ea0,addListToDropdown as _0x4db84a}from'ckeditor5/src/ui';import{Users as _0x32a995,getDateTimeFormatter as _0x570f7c,getAllMarkersDomElementsSorted as _0x42ea1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x40c609 from'./trackchangesediting';import _0x2fd209 from'./ui/suggestioncontroller';import _0xc7883f from'./ui/view/suggestionthreadview';import{getTranslation as _0x4d7042}from'./utils/common-translations';import _0x24f261 from'../theme/icons/track-changes.svg';export default class d extends _0x352bc5{static get[_0x2f58('0x10')](){return[_0x40c609,_0x32a995,_0x2f58('0x2'),_0x2f58('0x72'),_0x2f58('0x68')];}static get[_0x2f58('0xd')](){return _0x2f58('0x4f');}constructor(_0x1d19ff){super(_0x1d19ff),this['_suggestionToController']=new Map(),this[_0x2f58('0x51')]=new Map(),this[_0x2f58('0x73')]=new Map(),this[_0x2f58('0x1f')]=new Map();const _0x10f5ac=this[_0x2f58('0x1')][_0x2f58('0x5f')];_0x10f5ac[_0x2f58('0x6b')](_0x2f58('0x35'),_0xc7883f),_0x10f5ac[_0x2f58('0x6b')](_0x2f58('0x3'),!0x1),this[_0x2f58('0x4e')]=_0x10f5ac[_0x2f58('0x19')](_0x2f58('0x3'));}['_handleSuggestionControllerDelayed'](_0x92d7a5,_0x9fcdef){0x0===this[_0x2f58('0x1f')][_0x2f58('0xf')]&&setTimeout(()=>{for(const [_0xcec82b,_0x55b5b9]of this[_0x2f58('0x1f')]){const _0x120bdd=this[_0x2f58('0x49')][_0x2f58('0x62')](_0xcec82b);_0x120bdd||_0x55b5b9?_0x120bdd&&_0x55b5b9&&this['_destroyController'](_0xcec82b):this['_initializeController'](_0xcec82b);}this[_0x2f58('0x1')]['plugins'][_0x2f58('0x19')](_0x2f58('0x68'))[_0x2f58('0x26')](),this[_0x2f58('0x5')](),this[_0x2f58('0x1f')][_0x2f58('0x55')]();},0xa),this[_0x2f58('0x1f')]['set'](_0x92d7a5,_0x9fcdef);}[_0x2f58('0x6c')](){const _0x36edf6=this['editor'],_0x1499d4=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x2aac33=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')]('Annotations'),_0x924406=_0x36edf6[_0x2f58('0x11')]['get'](_0x2f58('0x68')),_0x3b0ed9=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')]('CommentsRepository');_0x36edf6['ui'][_0x2f58('0x28')][_0x2f58('0x6e')](_0x2f58('0x8'),_0x2feab1=>this[_0x2f58('0x34')](_0x2feab1)),_0x924406[_0x2f58('0x3a')](()=>{const _0xbf56e6=[];for(const [_0x1c2416,_0xd38811]of Array[_0x2f58('0x47')](this[_0x2f58('0x49')])){const _0x1e7cb5=_0x1c2416[_0x2f58('0x42')](),_0x4e871a=[];for(const _0x14ffd0 of _0x1e7cb5){if(!_0x14ffd0['isInContent'])continue;if(_0x14ffd0[_0x2f58('0x44')]){_0x4e871a[_0x2f58('0x37')](..._0x14ffd0[_0x2f58('0x32')]());continue;}const _0x487bfd=_0x14ffd0[_0x2f58('0x45')]();if(_0x4e871a[_0x2f58('0x18')]>0x0){const _0xf8a29=_0x4e871a[0x0][_0x2f58('0x12')](_0x487bfd);if(_0xf8a29){_0x4e871a[0x0]=_0xf8a29;continue;}}_0x4e871a[_0x2f58('0x37')](_0x487bfd);}_0xbf56e6[_0x2f58('0x37')]([_0xd38811['view'],_0x4e871a]);}return _0xbf56e6;}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x56'),(_0x400a8b,_0x220501)=>{this[_0x2f58('0x57')](_0x220501,_0x2f58('0x2d'),(_0x3143db,_0x2e22b7,_0x31c91b,_0x3fa04b)=>{_0x220501[_0x2f58('0x6f')]&&(null==_0x31c91b?(this[_0x2f58('0x24')](_0x3fa04b['head']),this[_0x2f58('0x14')](_0x220501,!0x1)):(this[_0x2f58('0x24')](_0x31c91b[_0x2f58('0x3d')]),this[_0x2f58('0x14')](_0x220501,!0x0)));}),null===_0x220501[_0x2f58('0x2e')]?this[_0x2f58('0x14')](_0x220501,!0x1):this[_0x2f58('0x24')](_0x220501[_0x2f58('0x3d')]);}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x41'),(_0x119e22,_0x53d92a,_0x1274ee)=>{this[_0x2f58('0x0')](_0x53d92a,'change:previous'),this['_handleControllerBuffer'][_0x2f58('0x5e')](_0x53d92a);const _0x4a0d46=_0x1274ee?_0x1274ee[_0x2f58('0x3d')]:_0x53d92a,_0x21baa5=this['_suggestionToController'][_0x2f58('0x19')](_0x4a0d46);null!==_0x1274ee&&this[_0x2f58('0x24')](_0x4a0d46),null===_0x1274ee&&_0x21baa5&&this[_0x2f58('0x3b')](_0x53d92a);}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x27'),(_0x3a36d2,_0x25b856)=>{this[_0x2f58('0x24')](_0x25b856);}),this[_0x2f58('0x57')](_0x2aac33,'change:activeAnnotations',()=>{this[_0x2f58('0x5')]();}),this[_0x2f58('0x57')](_0x3b0ed9,'addComment',(_0x392348,{threadId:_0x5e32e6,isFromAdapter:_0x7743fb})=>{if(_0x7743fb||!_0x1499d4[_0x2f58('0xc')](_0x5e32e6))return;const _0x1d4fa4=_0x1499d4[_0x2f58('0x5c')](_0x5e32e6);this['_suggestionToController']['get'](_0x1d4fa4)[_0x2f58('0x13')][_0x2f58('0x3e')]();},{'priority':_0x2f58('0x65')});}[_0x2f58('0x5')](){const _0x1cb937=this['editor'][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x72')),_0x31a986=this['editor'][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x5202ae=Array[_0x2f58('0x47')](_0x1cb937[_0x2f58('0x66')],_0xa32b67=>_0xa32b67[_0x2f58('0x63')])[_0x2f58('0x5b')](_0x3fdefb=>this['_viewToController'][_0x2f58('0x62')](_0x3fdefb)),_0x178377=[];for(const _0x6997ce of _0x5202ae){const _0x389e63=this[_0x2f58('0x51')][_0x2f58('0x19')](_0x6997ce)['model'][_0x2f58('0x42')]();_0x178377[_0x2f58('0x37')](..._0x389e63[_0x2f58('0x7')]((_0x4156fa,_0x2c8156)=>[..._0x4156fa,..._0x2c8156['getMarkerNames']()],[]));}_0x31a986[_0x2f58('0x22')]=_0x178377;}[_0x2f58('0x34')](_0x9dd5a1){const _0x508906=_0x238ea0(_0x9dd5a1,_0x267fb8),_0x4889a8=this[_0x2f58('0x1')][_0x2f58('0x6')]['get'](_0x2f58('0x8')),_0x5b5190=_0x4d7042(_0x9dd5a1,_0x2f58('0x4c'));_0x508906['buttonView'][_0x2f58('0x69')]({'tooltip':_0x5b5190,'label':_0x5b5190,'icon':_0x24f261}),_0x508906[_0x2f58('0x3f')][_0x2f58('0x33')](_0x2f58('0x16'))['to'](_0x4889a8,_0x2f58('0x54')),_0x508906[_0x2f58('0x3f')]['on'](_0x2f58('0x39'),()=>{_0x4889a8[_0x2f58('0x39')](),this[_0x2f58('0x1')][_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();});const _0x1a7883=new _0x56b27d(),_0x1cb9a6=[{'type':_0x2f58('0x4'),'model':{'withText':!0x0,'label':_0x5b5190,'commandName':_0x2f58('0x8')}},{'type':_0x2f58('0x4d')},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,'Accept\x20all\x20suggestions'),'commandName':_0x2f58('0x1d')}},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0xb')),'commandName':_0x2f58('0x4a')}},{'type':'button','model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0x30')),'commandName':_0x2f58('0x59')}},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0x15')),'commandName':_0x2f58('0x43')}}];for(const _0x1df81a of _0x1cb9a6){let _0x1ce192={'type':_0x2f58('0x4d')};if(_0x1df81a[_0x2f58('0x64')]){const _0x5e4517=new _0xf1cec8(_0x1df81a[_0x2f58('0x64')]),_0x2cca1d=this['editor'][_0x2f58('0x6')][_0x2f58('0x19')](_0x5e4517[_0x2f58('0x5a')]);_0x5e4517[_0x2f58('0x33')](_0x2f58('0x16'),_0x2f58('0x1b'))['to'](_0x2cca1d,'value',_0x2f58('0x1b')),_0x1ce192={'type':_0x1df81a[_0x2f58('0x17')],'model':_0x5e4517};}_0x1a7883['add'](_0x1ce192);}_0x4db84a(_0x508906,_0x1a7883);const _0x51eae4=_0x1cb9a6[_0x2f58('0x5b')](_0xd07a55=>null!=_0xd07a55[_0x2f58('0x64')])[_0x2f58('0x25')](_0x4e7baf=>this[_0x2f58('0x1')][_0x2f58('0x6')][_0x2f58('0x19')](_0x4e7baf[_0x2f58('0x64')]['commandName'])),_0x169135=_0x508906['buttonView'];return _0x169135['actionView'][_0x2f58('0x1e')](_0x2f58('0x1b')),_0x169135[_0x2f58('0x40')][_0x2f58('0x1e')](_0x2f58('0x1b')),_0x169135[_0x2f58('0x70')][_0x2f58('0x33')](_0x2f58('0x1b'))['to'](_0x4889a8,'isEnabled'),_0x169135[_0x2f58('0x40')]['bind'](_0x2f58('0x1b'))[_0x2f58('0x3c')](_0x51eae4,_0x2f58('0x1b'),(..._0x4cf9a0)=>_0x4cf9a0[_0x2f58('0x48')](_0x177677=>_0x177677)),_0x508906['on'](_0x2f58('0x39'),_0x27d77b=>{this[_0x2f58('0x1')][_0x2f58('0x39')](_0x27d77b['source'][_0x2f58('0x5a')]),this[_0x2f58('0x1')][_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x508906;}[_0x2f58('0x71')](_0x87eb07){const _0x469882=this[_0x2f58('0x1')],_0x6ddc1b=_0x469882[_0x2f58('0x5f')],_0x51b615=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x72')),_0x2e131e=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x2')),_0x5dd44e=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x68')),_0x5f1d70=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x32a995)['me'],_0x581c50=_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x8'))[_0x2f58('0x53')],{CommentsListView:_0x37d678,CommentThreadInputView:_0x5087ce}=_0x469882[_0x2f58('0x11')]['get']('CommentsUI');let _0x1accf3,_0x874de8;this[_0x2f58('0x73')]['has'](_0x87eb07['id'])?(_0x874de8=this[_0x2f58('0x73')][_0x2f58('0x19')](_0x87eb07['id']),_0x1accf3=_0x874de8['mainView']):(_0x1accf3=new _0x581c50(_0x469882[_0x2f58('0x31')],_0x87eb07,_0x5f1d70,{'disableComments':this[_0x2f58('0x4e')],'editorConfig':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x2f')),'maxCommentsWhenCollapsed':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x38')),'maxThreadTotalWeight':_0x6ddc1b['get'](_0x2f58('0x67')),'maxCommentCharsWhenCollapsed':_0x6ddc1b[_0x2f58('0x19')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x570f7c(_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x31'))),'CommentView':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x50'))[_0x2f58('0x6d')],'CommentsListView':_0x37d678,'CommentThreadInputView':_0x5087ce}),_0x1accf3[_0x2f58('0x2c')]['on'](_0x2f58('0x39'),()=>{_0x469882['editing'][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x1accf3[_0x2f58('0x61')]['on']('execute',()=>{_0x469882[_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x874de8=_0x51b615['createAnnotationView'](this[_0x2f58('0x1')][_0x2f58('0x31')],_0x1accf3),_0x874de8[_0x2f58('0x33')](_0x2f58('0xa'))['to'](_0x1accf3,_0x2f58('0xa')),_0x874de8['bind']('length')['to'](_0x1accf3),_0x874de8[_0x2f58('0x33')]('type')['to'](_0x1accf3,_0x2f58('0x17'),_0x5c27a7=>_0x2f58('0x46')+_0x5c27a7),this[_0x2f58('0x73')][_0x2f58('0x69')](_0x87eb07['id'],_0x874de8));const _0x2af094=_0x2e131e[_0x2f58('0x2a')](_0x87eb07[_0x2f58('0x60')],_0x1accf3),_0x1ebfc3=new _0x2fd209(_0x469882,_0x87eb07,_0x1accf3,_0x2af094),_0x305a39=_0x87eb07[_0x2f58('0x42')]()['filter'](_0x15ecbf=>_0x15ecbf[_0x2f58('0x6f')]);_0x1accf3[_0x2f58('0x1a')]=_0x469882[_0x2f58('0x11')]['get'](_0x2f58('0x9'))['_descriptionFactory'][_0x2f58('0x29')](_0x305a39),this[_0x2f58('0x49')][_0x2f58('0x69')](_0x87eb07,_0x1ebfc3),this[_0x2f58('0x51')][_0x2f58('0x69')](_0x1accf3,_0x1ebfc3);const _0x44687c=_0x51b615[_0x2f58('0x21')]({'view':_0x874de8,'target':()=>{const _0x3c65d2=[],_0x1aa527=_0x87eb07['getAllAdjacentSuggestions']()[_0x2f58('0x5b')](_0x410500=>_0x410500[_0x2f58('0x6f')]);for(const _0x32c0c7 of _0x1aa527)_0x3c65d2['push'](..._0x32c0c7[_0x2f58('0x5d')]());return _0x42ea1f(_0x469882[_0x2f58('0x1c')],_0x3c65d2);},'type':()=>_0x2f58('0x46')+_0x1ebfc3['view'][_0x2f58('0x17')]});_0x2e131e[_0x2f58('0x2b')](_0x1accf3,_0x44687c),_0x51b615['add'](_0x44687c),_0x5dd44e[_0x2f58('0x58')](_0x44687c);}[_0x2f58('0x3b')](_0x17eb75){const _0x3f7789=this['editor']['plugins'][_0x2f58('0x19')](_0x2f58('0x72')),_0x12fe5d=this['_suggestionToController'][_0x2f58('0x19')](_0x17eb75),_0x1d6c09=_0x12fe5d[_0x2f58('0x13')],_0xebf044=_0x3f7789['getByInnerView'](_0x1d6c09);_0xebf044&&_0x3f7789[_0x2f58('0xe')](_0xebf044),this[_0x2f58('0x49')][_0x2f58('0x5e')](_0x17eb75),this['_viewToController'][_0x2f58('0x5e')](_0x1d6c09),_0x12fe5d[_0x2f58('0x4b')]();}[_0x2f58('0x24')](_0x5676f9){if(!_0x5676f9['isInContent']||!this['_suggestionToController'][_0x2f58('0x62')](_0x5676f9))return;const _0x1a8f51=this[_0x2f58('0x1')][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x32e70d=this['_suggestionToController'][_0x2f58('0x19')](_0x5676f9),_0x114916=_0x5676f9[_0x2f58('0x42')]();_0x32e70d[_0x2f58('0x13')][_0x2f58('0x1a')]=_0x1a8f51[_0x2f58('0x20')][_0x2f58('0x29')](_0x114916);}['destroy'](){for(const _0xa72cea of this[_0x2f58('0x49')][_0x2f58('0x6a')]())this[_0x2f58('0x3b')](_0xa72cea);for(const _0x4b00fb of this[_0x2f58('0x73')][_0x2f58('0x36')]())_0x4b00fb[_0x2f58('0x23')][_0x2f58('0x4b')]();super[_0x2f58('0x4b')]();}}
23
+ const _0x8d8a=['some','addComment','arrowView','size','listenTo','CommentsUI','TrackChangesEditing','Discard\x20all\x20suggestions','getDescriptions','switchbutton','mainView','plugins','_unbindEditors','getMarkerNames','editing','getByInnerView','stopListening','push','createAnnotation','isInContent','Discard\x20all\x20selected\x20suggestions','getRanges','SuggestionThreadView','_handleSuggestionControllerDelayed','hasSuggestion','isDirty','suggestion-','suggestionLoaded','bind','_handleControllerBuffer','destroy','suggestionChanged','buttonView','EditorAnnotations','length','config','_suggestionToController','comments.editorConfig','delete','Track\x20changes','_annotationViews','activeAnnotations','define','lowest','focus','view','_updateController','actionView','type','_initializeController','commands','innerView','value','add','comments','head','map','toMany','separator','execute','acceptSelectedSuggestions','change:previous','TrackChangesUI','isOn','descriptionParts','addSourceCollector','createCommentThreadController','has','editor','discardButton','discardAllSuggestions','discardSelectedSuggestions','from','comments.maxThreadTotalWeight','unbind','commentThread','Accept\x20all\x20selected\x20suggestions','source','Annotations','get','CommentsRepository','trackChanges.disableComments','trackChanges','getJoined','_destroyController','_refreshActiveMarkers','keys','filter','locale','_descriptionFactory','componentFactory','refreshSelectedViews','registerAnnotation','getAllAdjacentSuggestions','model','button','getMarkers','commandName','_viewToController','activeMarkers','set','previous','isEnabled','_createUIButton'];(function(_0x37bf01,_0x8d8ad5){const _0x4ee02d=function(_0x263487){while(--_0x263487){_0x37bf01['push'](_0x37bf01['shift']());}};_0x4ee02d(++_0x8d8ad5);}(_0x8d8a,0x14e));const _0x4ee0=function(_0x37bf01,_0x8d8ad5){_0x37bf01=_0x37bf01-0x0;let _0x4ee02d=_0x8d8a[_0x37bf01];return _0x4ee02d;};import{Plugin as _0xbaaed1}from'ckeditor5/src/core';import{Collection as _0x3cf74f}from'ckeditor5/src/utils';import{Model as _0x326b34,SplitButtonView as _0x525d9f,createDropdown as _0x5373c7,addListToDropdown as _0x329a8a}from'ckeditor5/src/ui';import{Users as _0xf90181,getDateTimeFormatter as _0x5e25f7,getAllMarkersDomElementsSorted as _0x3ccda7}from'ckeditor5-collaboration/src/collaboration-core';import _0x5afaf1 from'./trackchangesediting';import _0x5e206b from'./ui/suggestioncontroller';import _0x55a6e2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5a85b5}from'./utils/common-translations';import _0x2365d0 from'../theme/icons/track-changes.svg';export default class d extends _0xbaaed1{static get['requires'](){return[_0x5afaf1,_0xf90181,_0x4ee0('0x3a'),_0x4ee0('0x38'),_0x4ee0('0xb')];}static get['pluginName'](){return _0x4ee0('0x28');}constructor(_0x460511){super(_0x460511),this[_0x4ee0('0xe')]=new Map(),this[_0x4ee0('0x4c')]=new Map(),this[_0x4ee0('0x12')]=new Map(),this[_0x4ee0('0x7')]=new Map();const _0x188681=this[_0x4ee0('0x2e')][_0x4ee0('0xd')];_0x188681[_0x4ee0('0x14')]('trackChanges.SuggestionThreadView',_0x55a6e2),_0x188681[_0x4ee0('0x14')](_0x4ee0('0x3b'),!0x1),this['_disableComments']=_0x188681[_0x4ee0('0x39')](_0x4ee0('0x3b'));}['_handleSuggestionControllerDelayed'](_0x559e4c,_0xe3dab0){0x0===this[_0x4ee0('0x7')][_0x4ee0('0x55')]&&setTimeout(()=>{for(const [_0x6713fb,_0x228290]of this['_handleControllerBuffer']){const _0x20b590=this['_suggestionToController'][_0x4ee0('0x2d')](_0x6713fb);_0x20b590||_0x228290?_0x20b590&&_0x228290&&this['_destroyController'](_0x6713fb):this[_0x4ee0('0x1b')](_0x6713fb);}this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0xb'))[_0x4ee0('0x45')](),this[_0x4ee0('0x3f')](),this[_0x4ee0('0x7')]['clear']();},0xa),this[_0x4ee0('0x7')]['set'](_0x559e4c,_0xe3dab0);}['init'](){const _0x20c4f8=this[_0x4ee0('0x2e')],_0x48f899=_0x20c4f8[_0x4ee0('0x5d')]['get'](_0x4ee0('0x58')),_0x5d486f=_0x20c4f8[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x38')),_0x257be5=_0x20c4f8['plugins'][_0x4ee0('0x39')](_0x4ee0('0xb')),_0x4d3c42=_0x20c4f8[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x3a'));_0x20c4f8['ui'][_0x4ee0('0x44')][_0x4ee0('0x1f')](_0x4ee0('0x3c'),_0x8cce95=>this[_0x4ee0('0x51')](_0x8cce95)),_0x257be5[_0x4ee0('0x2b')](()=>{const _0x1df0f7=[];for(const [_0x1f0008,_0x496d3b]of Array[_0x4ee0('0x32')](this[_0x4ee0('0xe')])){const _0x27ecfc=_0x1f0008['getAllAdjacentSuggestions'](),_0x8f12e6=[];for(const _0x5c30dd of _0x27ecfc){if(!_0x5c30dd[_0x4ee0('0x65')])continue;if(_0x5c30dd['isMultiRange']){_0x8f12e6['push'](..._0x5c30dd[_0x4ee0('0x67')]());continue;}const _0x58a724=_0x5c30dd['getFirstRange']();if(_0x8f12e6['length']>0x0){const _0x5f5ac0=_0x8f12e6[0x0][_0x4ee0('0x3d')](_0x58a724);if(_0x5f5ac0){_0x8f12e6[0x0]=_0x5f5ac0;continue;}}_0x8f12e6[_0x4ee0('0x63')](_0x58a724);}_0x1df0f7[_0x4ee0('0x63')]([_0x496d3b[_0x4ee0('0x17')],_0x8f12e6]);}return _0x1df0f7;}),this[_0x4ee0('0x56')](_0x48f899,_0x4ee0('0x5'),(_0x6586f4,_0x21192e)=>{this[_0x4ee0('0x56')](_0x21192e,_0x4ee0('0x27'),(_0x30a7b0,_0xae2e66,_0x3aacde,_0x510c64)=>{_0x21192e['isInContent']&&(null==_0x3aacde?(this['_updateController'](_0x510c64[_0x4ee0('0x21')]),this[_0x4ee0('0x1')](_0x21192e,!0x1)):(this[_0x4ee0('0x18')](_0x3aacde['head']),this['_handleSuggestionControllerDelayed'](_0x21192e,!0x0)));}),null===_0x21192e[_0x4ee0('0x4f')]?this['_handleSuggestionControllerDelayed'](_0x21192e,!0x1):this[_0x4ee0('0x18')](_0x21192e[_0x4ee0('0x21')]);}),this[_0x4ee0('0x56')](_0x48f899,'suggestionUnloaded',(_0x23a6fc,_0x1fac39,_0xa9d706)=>{this[_0x4ee0('0x62')](_0x1fac39,_0x4ee0('0x27')),this[_0x4ee0('0x7')][_0x4ee0('0x10')](_0x1fac39);const _0x2a5278=_0xa9d706?_0xa9d706[_0x4ee0('0x21')]:_0x1fac39,_0x1e0c21=this[_0x4ee0('0xe')][_0x4ee0('0x39')](_0x2a5278);null!==_0xa9d706&&this[_0x4ee0('0x18')](_0x2a5278),null===_0xa9d706&&_0x1e0c21&&this[_0x4ee0('0x3e')](_0x1fac39);}),this['listenTo'](_0x48f899,_0x4ee0('0x9'),(_0x42c964,_0x1c5c2a)=>{this[_0x4ee0('0x18')](_0x1c5c2a);}),this[_0x4ee0('0x56')](_0x5d486f,'change:activeAnnotations',()=>{this[_0x4ee0('0x3f')]();}),this[_0x4ee0('0x56')](_0x4d3c42,_0x4ee0('0x53'),(_0x470bfe,{threadId:_0x38be82,isFromAdapter:_0x1cc0b5})=>{if(_0x1cc0b5||!_0x48f899[_0x4ee0('0x2')](_0x38be82))return;const _0x3ba74b=_0x48f899['getSuggestion'](_0x38be82);this['_suggestionToController'][_0x4ee0('0x39')](_0x3ba74b)['view'][_0x4ee0('0x16')]();},{'priority':_0x4ee0('0x15')});}[_0x4ee0('0x3f')](){const _0x2851e6=this[_0x4ee0('0x2e')]['plugins'][_0x4ee0('0x39')](_0x4ee0('0x38')),_0x64fa03=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x58')),_0x2a4822=Array['from'](_0x2851e6[_0x4ee0('0x13')],_0xd6dd4=>_0xd6dd4[_0x4ee0('0x1d')])[_0x4ee0('0x41')](_0x2d227e=>this[_0x4ee0('0x4c')][_0x4ee0('0x2d')](_0x2d227e)),_0x1373cf=[];for(const _0x241bee of _0x2a4822){const _0x4730d2=this['_viewToController']['get'](_0x241bee)[_0x4ee0('0x48')][_0x4ee0('0x47')]();_0x1373cf['push'](..._0x4730d2['reduce']((_0x129f2c,_0x32b8fa)=>[..._0x129f2c,..._0x32b8fa[_0x4ee0('0x5f')]()],[]));}_0x64fa03[_0x4ee0('0x4d')]=_0x1373cf;}[_0x4ee0('0x51')](_0x2a3630){const _0x571220=_0x5373c7(_0x2a3630,_0x525d9f),_0x5de9a8=this['editor'][_0x4ee0('0x1c')][_0x4ee0('0x39')]('trackChanges'),_0x6549ff=_0x5a85b5(_0x2a3630,_0x4ee0('0x11'));_0x571220['buttonView']['set']({'tooltip':_0x6549ff,'label':_0x6549ff,'icon':_0x2365d0}),_0x571220[_0x4ee0('0xa')]['bind'](_0x4ee0('0x29'))['to'](_0x5de9a8,_0x4ee0('0x1e')),_0x571220[_0x4ee0('0xa')]['on']('execute',()=>{_0x5de9a8['execute'](),this[_0x4ee0('0x2e')][_0x4ee0('0x60')][_0x4ee0('0x17')]['focus']();});const _0x16085b=new _0x3cf74f(),_0x59a733=[{'type':_0x4ee0('0x5b'),'model':{'withText':!0x0,'label':_0x6549ff,'commandName':'trackChanges'}},{'type':_0x4ee0('0x24')},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x36')),'commandName':_0x4ee0('0x26')}},{'type':'button','model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x59')),'commandName':_0x4ee0('0x30')}},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x66')),'commandName':_0x4ee0('0x31')}}];for(const _0x28463e of _0x59a733){let _0x368197={'type':_0x4ee0('0x24')};if(_0x28463e[_0x4ee0('0x48')]){const _0x4af64f=new _0x326b34(_0x28463e[_0x4ee0('0x48')]),_0x50ade5=this[_0x4ee0('0x2e')][_0x4ee0('0x1c')][_0x4ee0('0x39')](_0x4af64f['commandName']);_0x4af64f['bind'](_0x4ee0('0x29'),_0x4ee0('0x50'))['to'](_0x50ade5,_0x4ee0('0x1e'),_0x4ee0('0x50')),_0x368197={'type':_0x28463e[_0x4ee0('0x1a')],'model':_0x4af64f};}_0x16085b[_0x4ee0('0x1f')](_0x368197);}_0x329a8a(_0x571220,_0x16085b);const _0x4ebc6e=_0x59a733[_0x4ee0('0x41')](_0x26a363=>null!=_0x26a363[_0x4ee0('0x48')])[_0x4ee0('0x22')](_0x51008a=>this['editor']['commands'][_0x4ee0('0x39')](_0x51008a[_0x4ee0('0x48')][_0x4ee0('0x4b')])),_0x4e7223=_0x571220[_0x4ee0('0xa')];return _0x4e7223[_0x4ee0('0x19')]['unbind'](_0x4ee0('0x50')),_0x4e7223['arrowView'][_0x4ee0('0x34')](_0x4ee0('0x50')),_0x4e7223['actionView']['bind'](_0x4ee0('0x50'))['to'](_0x5de9a8,_0x4ee0('0x50')),_0x4e7223[_0x4ee0('0x54')][_0x4ee0('0x6')](_0x4ee0('0x50'))[_0x4ee0('0x23')](_0x4ebc6e,_0x4ee0('0x50'),(..._0xb93840)=>_0xb93840[_0x4ee0('0x52')](_0xce44ce=>_0xce44ce)),_0x571220['on'](_0x4ee0('0x25'),_0x484897=>{this['editor'][_0x4ee0('0x25')](_0x484897[_0x4ee0('0x37')][_0x4ee0('0x4b')]),this[_0x4ee0('0x2e')][_0x4ee0('0x60')]['view']['focus']();}),_0x571220;}[_0x4ee0('0x1b')](_0x505b18){const _0x34da10=this[_0x4ee0('0x2e')],_0x2c6b29=_0x34da10['config'],_0x5d61ed=_0x34da10[_0x4ee0('0x5d')]['get'](_0x4ee0('0x38')),_0x255c42=_0x34da10['plugins'][_0x4ee0('0x39')]('CommentsRepository'),_0x36a63c=_0x34da10[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0xb')),_0x4d9b92=_0x34da10[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0xf90181)['me'],_0x2888d4=_0x2c6b29[_0x4ee0('0x39')]('trackChanges')[_0x4ee0('0x0')],{CommentsListView:_0x278154,CommentThreadInputView:_0x430d92}=_0x34da10['plugins'][_0x4ee0('0x39')](_0x4ee0('0x57'));let _0x1cf409,_0x1091f4;this[_0x4ee0('0x12')]['has'](_0x505b18['id'])?(_0x1091f4=this[_0x4ee0('0x12')][_0x4ee0('0x39')](_0x505b18['id']),_0x1cf409=_0x1091f4[_0x4ee0('0x5c')]):(_0x1cf409=new _0x2888d4(_0x34da10[_0x4ee0('0x42')],_0x505b18,_0x4d9b92,{'disableComments':this['_disableComments'],'editorConfig':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0xf')),'maxCommentsWhenCollapsed':_0x2c6b29[_0x4ee0('0x39')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x33')),'maxCommentCharsWhenCollapsed':_0x2c6b29[_0x4ee0('0x39')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e25f7(_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x42'))),'CommentView':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x20'))['CommentView'],'CommentsListView':_0x278154,'CommentThreadInputView':_0x430d92}),_0x1cf409['acceptButton']['on'](_0x4ee0('0x25'),()=>{_0x34da10[_0x4ee0('0x60')][_0x4ee0('0x17')]['focus']();}),_0x1cf409[_0x4ee0('0x2f')]['on']('execute',()=>{_0x34da10[_0x4ee0('0x60')][_0x4ee0('0x17')][_0x4ee0('0x16')]();}),_0x1091f4=_0x5d61ed['createAnnotationView'](this['editor'][_0x4ee0('0x42')],_0x1cf409),_0x1091f4['bind'](_0x4ee0('0x3'))['to'](_0x1cf409,'isDirty'),_0x1091f4[_0x4ee0('0x6')](_0x4ee0('0xc'))['to'](_0x1cf409),_0x1091f4[_0x4ee0('0x6')]('type')['to'](_0x1cf409,_0x4ee0('0x1a'),_0x367f54=>_0x4ee0('0x4')+_0x367f54),this[_0x4ee0('0x12')]['set'](_0x505b18['id'],_0x1091f4));const _0x79c1b8=_0x255c42[_0x4ee0('0x2c')](_0x505b18[_0x4ee0('0x35')],_0x1cf409),_0x72d30b=new _0x5e206b(_0x34da10,_0x505b18,_0x1cf409,_0x79c1b8),_0x22e066=_0x505b18[_0x4ee0('0x47')]()[_0x4ee0('0x41')](_0x39e136=>_0x39e136[_0x4ee0('0x65')]);_0x1cf409[_0x4ee0('0x2a')]=_0x34da10['plugins'][_0x4ee0('0x39')]('TrackChangesEditing')[_0x4ee0('0x43')][_0x4ee0('0x5a')](_0x22e066),this[_0x4ee0('0xe')][_0x4ee0('0x4e')](_0x505b18,_0x72d30b),this[_0x4ee0('0x4c')][_0x4ee0('0x4e')](_0x1cf409,_0x72d30b);const _0x1940e8=_0x5d61ed[_0x4ee0('0x64')]({'view':_0x1091f4,'target':()=>{const _0x296fde=[],_0x38a0dd=_0x505b18[_0x4ee0('0x47')]()['filter'](_0x4e2a8e=>_0x4e2a8e[_0x4ee0('0x65')]);for(const _0x5af694 of _0x38a0dd)_0x296fde[_0x4ee0('0x63')](..._0x5af694[_0x4ee0('0x4a')]());return _0x3ccda7(_0x34da10[_0x4ee0('0x60')],_0x296fde);},'type':()=>_0x4ee0('0x4')+_0x72d30b[_0x4ee0('0x17')]['type']});_0x255c42['_bindAnnotationToEditors'](_0x1cf409,_0x1940e8),_0x5d61ed[_0x4ee0('0x1f')](_0x1940e8),_0x36a63c[_0x4ee0('0x46')](_0x1940e8);}[_0x4ee0('0x3e')](_0x195488){const _0x44db2b=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x3a')),_0x119bc6=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')]['get'](_0x4ee0('0x38')),_0x2e4b18=this['_suggestionToController'][_0x4ee0('0x39')](_0x195488),_0x3d1b52=_0x2e4b18[_0x4ee0('0x17')],_0x2dd69c=_0x119bc6[_0x4ee0('0x61')](_0x3d1b52);_0x44db2b[_0x4ee0('0x5e')](_0x3d1b52),_0x2dd69c&&_0x119bc6['remove'](_0x2dd69c),this[_0x4ee0('0xe')][_0x4ee0('0x10')](_0x195488),this['_viewToController'][_0x4ee0('0x10')](_0x3d1b52),_0x2e4b18[_0x4ee0('0x8')]();}[_0x4ee0('0x18')](_0x27df8a){if(!_0x27df8a[_0x4ee0('0x65')]||!this[_0x4ee0('0xe')][_0x4ee0('0x2d')](_0x27df8a))return;const _0x164afa=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')]('TrackChangesEditing'),_0x56d3f=this[_0x4ee0('0xe')][_0x4ee0('0x39')](_0x27df8a),_0x36277c=_0x27df8a[_0x4ee0('0x47')]();_0x56d3f[_0x4ee0('0x17')][_0x4ee0('0x2a')]=_0x164afa[_0x4ee0('0x43')][_0x4ee0('0x5a')](_0x36277c);}[_0x4ee0('0x8')](){for(const _0x23a002 of this[_0x4ee0('0xe')][_0x4ee0('0x40')]())this['_destroyController'](_0x23a002);for(const _0x2cc824 of this['_annotationViews']['values']())_0x2cc824[_0x4ee0('0x5c')][_0x4ee0('0x8')]();super[_0x4ee0('0x8')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5296=['commands','acceptSuggestion','execute','listenTo','_pendingAction','unbind','commentThreadController','model','add','remove','PendingActions','_removePendingAction','_editor','_discardCommand','canEditAt','locale','canAccept','plugins','_setPendingAction','discardSuggestion','get','change:isDirty','isDirty','destroy','canDiscard','bind','_acceptCommand','getRanges','view','isEnabled','PENDING_ACTION_SUGGESTION'];(function(_0x181e37,_0x52960c){const _0x161798=function(_0x556e26){while(--_0x556e26){_0x181e37['push'](_0x181e37['shift']());}};_0x161798(++_0x52960c);}(_0x5296,0xc9));const _0x1617=function(_0x181e37,_0x52960c){_0x181e37=_0x181e37-0x0;let _0x161798=_0x5296[_0x181e37];return _0x161798;};import{ObservableMixin as _0x52f326}from'ckeditor5/src/utils';import{getTranslation as _0x5abf55}from'../utils/common-translations';export default class qt extends _0x52f326(){constructor(_0x16c196,_0x3078e2,_0x566aba,_0x104de8){super(),this[_0x1617('0x17')]=_0x3078e2,this[_0x1617('0xd')]=_0x566aba,this[_0x1617('0x16')]=_0x104de8,this[_0x1617('0x1c')]=_0x16c196,this[_0x1617('0xb')]=_0x16c196[_0x1617('0x10')][_0x1617('0x5')](_0x1617('0x11')),this[_0x1617('0x1d')]=_0x16c196['commands'][_0x1617('0x5')]('discardSuggestion'),this[_0x1617('0xd')][_0x1617('0xa')](_0x1617('0xe'))['to'](this[_0x1617('0xb')],this[_0x1617('0x1d')],(_0x2d5aa4,_0x209423)=>_0x2d5aa4||_0x209423),this[_0x1617('0xd')][_0x1617('0xa')]('canAccept')['to'](this[_0x1617('0xb')],_0x1617('0xe'),_0x5b2e86=>_0x5b2e86&&this[_0x1617('0x1c')]['model'][_0x1617('0x1e')](_0x3078e2[_0x1617('0xc')]())),this[_0x1617('0xd')][_0x1617('0xa')]('canDiscard')['to'](this[_0x1617('0x1d')],_0x1617('0xe'),_0x4124fc=>_0x4124fc&&this[_0x1617('0x1c')]['model']['canEditAt'](_0x3078e2['getRanges']())),this['_pendingAction']=null,_0x566aba[_0x1617('0x7')]&&this[_0x1617('0x3')](),this['listenTo'](_0x566aba,_0x1617('0x11'),()=>this[_0x1617('0x11')]()),this['listenTo'](_0x566aba,_0x1617('0x4'),()=>this['discardSuggestion']()),this[_0x1617('0x13')](_0x566aba,_0x1617('0x6'),()=>{_0x566aba[_0x1617('0x7')]?this[_0x1617('0x3')]():this[_0x1617('0x1b')]();});}[_0x1617('0x11')](){this[_0x1617('0xb')][_0x1617('0x12')](this[_0x1617('0x17')]['id']);}[_0x1617('0x4')](){this[_0x1617('0x1d')][_0x1617('0x12')](this['model']['id']);}['destroy'](){this['view']['unbind'](_0x1617('0xe')),this[_0x1617('0xd')][_0x1617('0x15')](_0x1617('0x1')),this[_0x1617('0xd')][_0x1617('0x15')](_0x1617('0x9')),this['stopListening'](),this[_0x1617('0x16')][_0x1617('0x8')](),this[_0x1617('0x14')]&&this[_0x1617('0x1b')]();}[_0x1617('0x3')](){const _0x46d54b=_0x5abf55(this['_editor'][_0x1617('0x0')],_0x1617('0xf'));this['_pendingAction']=this['_editor'][_0x1617('0x2')][_0x1617('0x5')]('PendingActions')[_0x1617('0x18')](_0x46d54b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x1617('0x2')]['get'](_0x1617('0x1a'))[_0x1617('0x19')](this[_0x1617('0x14')]),this[_0x1617('0x14')]=null;}}
23
+ const _0xcdd6=['model','PENDING_ACTION_SUGGESTION','discardSuggestion','canAccept','locale','plugins','unbind','get','execute','_setPendingAction','_removePendingAction','remove','canDiscard','getRanges','commands','_discardCommand','add','destroy','_editor','change:isDirty','_acceptCommand','listenTo','acceptSuggestion','_pendingAction','canEditAt','isDirty','view','PendingActions','bind','isEnabled','commentThreadController'];(function(_0xb8834c,_0xcdd636){const _0x386b26=function(_0x1e70d2){while(--_0x1e70d2){_0xb8834c['push'](_0xb8834c['shift']());}};_0x386b26(++_0xcdd636);}(_0xcdd6,0x94));const _0x386b=function(_0xb8834c,_0xcdd636){_0xb8834c=_0xb8834c-0x0;let _0x386b26=_0xcdd6[_0xb8834c];return _0x386b26;};import{ObservableMixin as _0x3ab58e}from'ckeditor5/src/utils';import{getTranslation as _0x36c737}from'../utils/common-translations';export default class Ft extends _0x3ab58e(){constructor(_0x29fc81,_0x2e5429,_0xf503eb,_0x53795e){super(),this[_0x386b('0x7')]=_0x2e5429,this[_0x386b('0x2')]=_0xf503eb,this[_0x386b('0x6')]=_0x53795e,this[_0x386b('0x19')]=_0x29fc81,this[_0x386b('0x1b')]=_0x29fc81[_0x386b('0x15')][_0x386b('0xe')](_0x386b('0x1d')),this[_0x386b('0x16')]=_0x29fc81[_0x386b('0x15')][_0x386b('0xe')]('discardSuggestion'),this[_0x386b('0x2')][_0x386b('0x4')]('isEnabled')['to'](this['_acceptCommand'],this[_0x386b('0x16')],(_0x5e2c77,_0x3326c2)=>_0x5e2c77||_0x3326c2),this[_0x386b('0x2')]['bind'](_0x386b('0xa'))['to'](this[_0x386b('0x1b')],_0x386b('0x5'),_0xd5a11a=>_0xd5a11a&&this[_0x386b('0x19')]['model']['canEditAt'](_0x2e5429['getRanges']())),this['view'][_0x386b('0x4')](_0x386b('0x13'))['to'](this[_0x386b('0x16')],'isEnabled',_0x41b76a=>_0x41b76a&&this['_editor'][_0x386b('0x7')][_0x386b('0x0')](_0x2e5429[_0x386b('0x14')]())),this[_0x386b('0x1e')]=null,_0xf503eb[_0x386b('0x1')]&&this[_0x386b('0x10')](),this[_0x386b('0x1c')](_0xf503eb,'acceptSuggestion',()=>this[_0x386b('0x1d')]()),this['listenTo'](_0xf503eb,_0x386b('0x9'),()=>this[_0x386b('0x9')]()),this[_0x386b('0x1c')](_0xf503eb,_0x386b('0x1a'),()=>{_0xf503eb['isDirty']?this[_0x386b('0x10')]():this[_0x386b('0x11')]();});}[_0x386b('0x1d')](){this[_0x386b('0x1b')]['execute'](this['model']['id']);}[_0x386b('0x9')](){this[_0x386b('0x16')][_0x386b('0xf')](this[_0x386b('0x7')]['id']);}[_0x386b('0x18')](){this['view']['unbind'](_0x386b('0x5')),this[_0x386b('0x2')][_0x386b('0xd')]('canAccept'),this[_0x386b('0x2')][_0x386b('0xd')]('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this[_0x386b('0x1e')]&&this[_0x386b('0x11')]();}[_0x386b('0x10')](){const _0x48d3b0=_0x36c737(this[_0x386b('0x19')][_0x386b('0xb')],_0x386b('0x8'));this[_0x386b('0x1e')]=this[_0x386b('0x19')][_0x386b('0xc')][_0x386b('0xe')](_0x386b('0x3'))[_0x386b('0x17')](_0x48d3b0);}[_0x386b('0x11')](){null!==this['_pendingAction']&&this['_editor'][_0x386b('0xc')][_0x386b('0xe')](_0x386b('0x3'))[_0x386b('0x12')](this['_pendingAction']),this[_0x386b('0x1e')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cd4=['removeComment','commentThread','isEnabled','bind','isReadOnly','disableComments','isDirty','_localUser','length','showInput','authoredAt','_model','_config','descriptionParts','canAccept','_createCommentViews','destroy','editorConfig','setData','hasDirtyComment','locale','commentsListView','submit','set','commentThreadInputView','isActive','value','delegate','focus','editor','assign','commentInputView','disabledSubmit'];(function(_0x56bda4,_0x4cd470){const _0x3a3bde=function(_0x2c501e){while(--_0x2c501e){_0x56bda4['push'](_0x56bda4['shift']());}};_0x3a3bde(++_0x4cd470);}(_0x4cd4,0x1d0));const _0x3a3b=function(_0x56bda4,_0x4cd470){_0x56bda4=_0x56bda4-0x0;let _0x3a3bde=_0x4cd4[_0x56bda4];return _0x3a3bde;};import{View as _0x25b166}from'ckeditor5/src/ui';export default class ii extends _0x25b166{constructor(_0x1e7cff,_0x2de4b8,_0x3c5db3,_0x423990){super(_0x1e7cff),this[_0x3a3b('0x13')]=null,this[_0x3a3b('0x16')]=null,this[_0x3a3b('0x15')]('isActive',!0x1),this[_0x3a3b('0x15')](_0x3a3b('0x8'),_0x2de4b8[_0x3a3b('0x8')]),this[_0x3a3b('0x1')]('authoredAt')['to'](_0x2de4b8),this['set'](_0x3a3b('0xb'),[]),this[_0x3a3b('0x15')](_0x3a3b('0x4'),!0x1),this[_0x3a3b('0x15')](_0x3a3b('0x0'),!0x1),this[_0x3a3b('0x15')](_0x3a3b('0xc'),!0x1),this['set']('canDiscard',!0x1),this[_0x3a3b('0x9')]=_0x2de4b8,this[_0x3a3b('0x5')]=_0x3c5db3,this['_config']=_0x423990,_0x423990[_0x3a3b('0x3')]?this[_0x3a3b('0x15')]('length',0x1):this[_0x3a3b('0xd')]();}[_0x3a3b('0x1a')](){this['element'][_0x3a3b('0x1a')]();}[_0x3a3b('0xe')](){this[_0x3a3b('0x13')]&&this[_0x3a3b('0x13')][_0x3a3b('0xe')](),this[_0x3a3b('0x16')]&&this[_0x3a3b('0x16')][_0x3a3b('0xe')](),super[_0x3a3b('0xe')]();}['_createCommentViews'](){const {CommentsListView:_0x2c59c9}=this['_config'];this[_0x3a3b('0x13')]=new _0x2c59c9(this[_0x3a3b('0x12')],this['_model'][_0x3a3b('0x20')],Object[_0x3a3b('0x1c')]({'CommentView':this[_0x3a3b('0xa')]['CommentView']},this[_0x3a3b('0xa')])),this[_0x3a3b('0x13')][_0x3a3b('0x19')](_0x3a3b('0x1f'))['to'](this),this[_0x3a3b('0x13')][_0x3a3b('0x19')]('updateComment')['to'](this),this[_0x3a3b('0x13')][_0x3a3b('0x1')](_0x3a3b('0x17'))['to'](this),this['set'](_0x3a3b('0x6'),this['commentsListView']['length']+0x1),this[_0x3a3b('0x1')](_0x3a3b('0x6'))['to'](this[_0x3a3b('0x13')],_0x3a3b('0x6'),_0xb71376=>_0xb71376+0x1),this[_0x3a3b('0x16')]=this['_createCommentThreadInputView'](),this['on'](_0x3a3b('0x1f'),()=>this[_0x3a3b('0x1a')]()),this['bind'](_0x3a3b('0x4'))['to'](this['commentsListView'],_0x3a3b('0x11'),this[_0x3a3b('0x16')][_0x3a3b('0x1d')],_0x3a3b('0x18'),(_0x5463a8,_0x237809)=>_0x5463a8||!!_0x237809);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xd41b3b}=this['_config'],_0x4a0203=new _0xd41b3b(this[_0x3a3b('0x12')],this['_localUser'],this[_0x3a3b('0xa')][_0x3a3b('0xf')]),_0x33b849=_0x4a0203[_0x3a3b('0x1d')];return _0x4a0203[_0x3a3b('0x1')](_0x3a3b('0x7'))['to'](this,_0x3a3b('0x17'),this['_model']['commentThread'],_0x3a3b('0x2'),_0x33b849,'value',(_0x15ef5e,_0x54a8bf,_0x3d99df)=>!!_0x3d99df||_0x15ef5e&&!_0x54a8bf),_0x33b849['on'](_0x3a3b('0x14'),(_0x45071c,_0x5dcf45)=>{this['fire']('addComment',_0x5dcf45),_0x33b849[_0x3a3b('0x1b')][_0x3a3b('0x10')]('');}),_0x33b849['on']('cancel',()=>this['focus']()),_0x33b849[_0x3a3b('0x1')](_0x3a3b('0x1e'))['to'](this[_0x3a3b('0x9')]['commentThread'],'isReadOnly'),_0x4a0203;}}
23
+ const _0x2288=['CommentView','assign','_createCommentViews','bind','set','destroy','locale','_model','isReadOnly','_localUser','commentThread','isActive','value','commentsListView','cancel','fire','isDirty','updateComment','commentThreadInputView','commentInputView','setData','hasDirtyComment','focus','canDiscard','showInput','descriptionParts','editorConfig','submit','delegate','disabledSubmit','authoredAt','addComment','_createCommentThreadInputView','editor','_config','length'];(function(_0x4c932d,_0x228810){const _0x33d973=function(_0xfb8802){while(--_0xfb8802){_0x4c932d['push'](_0x4c932d['shift']());}};_0x33d973(++_0x228810);}(_0x2288,0x1a5));const _0x33d9=function(_0x4c932d,_0x228810){_0x4c932d=_0x4c932d-0x0;let _0x33d973=_0x2288[_0x4c932d];return _0x33d973;};import{View as _0x40159f}from'ckeditor5/src/ui';export default class ii extends _0x40159f{constructor(_0x429a1d,_0x37a1f1,_0x5436c9,_0x354402){super(_0x429a1d),this['commentsListView']=null,this['commentThreadInputView']=null,this[_0x33d9('0xf')](_0x33d9('0x16'),!0x1),this['set'](_0x33d9('0x5'),_0x37a1f1[_0x33d9('0x5')]),this[_0x33d9('0xe')]('authoredAt')['to'](_0x37a1f1),this[_0x33d9('0xf')](_0x33d9('0x0'),[]),this[_0x33d9('0xf')]('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this[_0x33d9('0xf')](_0x33d9('0x22'),!0x1),this[_0x33d9('0x12')]=_0x37a1f1,this[_0x33d9('0x14')]=_0x5436c9,this[_0x33d9('0x9')]=_0x354402,_0x354402['disableComments']?this[_0x33d9('0xf')](_0x33d9('0xa'),0x1):this[_0x33d9('0xd')]();}[_0x33d9('0x21')](){this['element'][_0x33d9('0x21')]();}['destroy'](){this[_0x33d9('0x18')]&&this[_0x33d9('0x18')][_0x33d9('0x10')](),this[_0x33d9('0x1d')]&&this[_0x33d9('0x1d')]['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x332bca}=this['_config'];this[_0x33d9('0x18')]=new _0x332bca(this[_0x33d9('0x11')],this[_0x33d9('0x12')][_0x33d9('0x15')],Object[_0x33d9('0xc')]({'CommentView':this[_0x33d9('0x9')][_0x33d9('0xb')]},this['_config'])),this[_0x33d9('0x18')][_0x33d9('0x3')]('removeComment')['to'](this),this[_0x33d9('0x18')][_0x33d9('0x3')](_0x33d9('0x1c'))['to'](this),this[_0x33d9('0x18')][_0x33d9('0xe')](_0x33d9('0x16'))['to'](this),this[_0x33d9('0xf')](_0x33d9('0xa'),this[_0x33d9('0x18')][_0x33d9('0xa')]+0x1),this[_0x33d9('0xe')]('length')['to'](this[_0x33d9('0x18')],_0x33d9('0xa'),_0x586d41=>_0x586d41+0x1),this[_0x33d9('0x1d')]=this[_0x33d9('0x7')](),this['on']('removeComment',()=>this['focus']()),this[_0x33d9('0xe')](_0x33d9('0x1b'))['to'](this[_0x33d9('0x18')],_0x33d9('0x20'),this['commentThreadInputView'][_0x33d9('0x1e')],_0x33d9('0x17'),(_0x4f8fd4,_0x21f964)=>_0x4f8fd4||!!_0x21f964);}[_0x33d9('0x7')](){const {CommentThreadInputView:_0x4fc70f}=this[_0x33d9('0x9')],_0x29a906=new _0x4fc70f(this[_0x33d9('0x11')],this[_0x33d9('0x14')],this['_config'][_0x33d9('0x1')]),_0x30972d=_0x29a906[_0x33d9('0x1e')];return _0x29a906[_0x33d9('0xe')](_0x33d9('0x23'))['to'](this,'isActive',this[_0x33d9('0x12')][_0x33d9('0x15')],_0x33d9('0x13'),_0x30972d,_0x33d9('0x17'),(_0x299bec,_0x458dd0,_0x417617)=>!!_0x417617||_0x299bec&&!_0x458dd0),_0x30972d['on'](_0x33d9('0x2'),(_0x510a90,_0x30fd4c)=>{this[_0x33d9('0x1a')](_0x33d9('0x6'),_0x30fd4c),_0x30972d[_0x33d9('0x8')][_0x33d9('0x1f')]('');}),_0x30972d['on'](_0x33d9('0x19'),()=>this[_0x33d9('0x21')]()),_0x30972d[_0x33d9('0xe')](_0x33d9('0x4'))['to'](this['_model'][_0x33d9('0x15')],_0x33d9('0x13')),_0x29a906;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a3d=['ck-suggestion-wrapper','acceptSuggestion','editorDestroyed','span','importWord','isExternal','disableComments','\x22\x20title=\x22','ck-comment__info-time','ck-annotation__info-name','creator','ck-comment__external','<p>','content','userView','_descriptionElement','bindTemplate','set','ck-annotation__info','ck-suggestion--discard','locale','innerHTML','description','editorReady','attributes','</span>','getTemplate','\x22></span>','ck-annotation','cancel','descriptionParts','authoredAt','EXTERNAL_SUGGESTION','div','getExternalSuggestionNote','EXTERNAL_AVATAR','title','<span\x20class=\x22ck-suggestion-type\x22>','acceptButton','push','@external','ck-suggestion__main','commentThread','source','ck-suggestion__info-name','_model','ck-annotation__info-time','Discard\x20suggestion','delegate','ck-annotation__user','innerText','formatDateTime','render','Accept\x20suggestion','fire','author','name','ck-suggestion-','ck-suggestion--disabled-comments','createElement','ck-annotation__main','element','_createButton','extendTemplate','EXTERNAL_IMPORT_WORD_SUGGESTION','canAccept','isEnabled','commentsListView','execute','commentThreadInputView','value','join','isActive','canDiscard','map','querySelector','</p>','type','ck-suggestion__user','bind','discardButton','_config','ck-suggestion__actions','ck-annotation__actions','getUserViewNotificationText','EXTERNAL_IMPORT_WORD_AVATAR'];(function(_0x25ec18,_0x4a3dea){const _0x12d3e3=function(_0x55a429){while(--_0x55a429){_0x25ec18['push'](_0x25ec18['shift']());}};_0x12d3e3(++_0x4a3dea);}(_0x4a3d,0x103));const _0x12d3=function(_0x25ec18,_0x4a3dea){_0x25ec18=_0x25ec18-0x0;let _0x12d3e3=_0x4a3d[_0x25ec18];return _0x12d3e3;};import{getTranslation as _0x59cb21}from'../../utils/common-translations';import{default as _0x1aab80}from'./basesuggestionthreadview';import{ButtonView as _0x21a99c}from'ckeditor5/src/ui';import{icons as _0x330b90}from'ckeditor5/src/core';import{trimHtml as _0x1a3e54,UserView as _0x12e6d9}from'ckeditor5-collaboration/src/collaboration-core';export default class zt extends _0x1aab80{constructor(_0x3c7403,_0x38df84,_0x3c98f7,_0x3a95b1){super(_0x3c7403,_0x38df84,_0x3c98f7,_0x3a95b1),this[_0x12d3('0x10')](_0x12d3('0x4c'),''),this[_0x12d3('0x4e')](_0x12d3('0x4c'))['to'](this,_0x12d3('0x1d'),_0x3106e5=>_0x3106e5&&_0x3106e5[0x0]?_0x3106e5[0x0][_0x12d3('0x4c')]:''),this[_0x12d3('0x4e')](_0x12d3('0x15'))['to'](this,'descriptionParts',this,_0x12d3('0x47'),(_0xd3cfde,_0x496c84)=>{let _0x4e49cb='';for(const _0x4d0bd6 of _0xd3cfde)_0x4e49cb+=_0x12d3('0xb')+ai(_0x4d0bd6[_0x12d3('0xc')],_0x4d0bd6['color'])+_0x12d3('0x4b');return _0x496c84?_0x4e49cb:_0x1a3e54(_0x4e49cb,{'limit':0x8c});}),this[_0x12d3('0xe')]=null,this['acceptButton']=this['_createButton'](_0x59cb21(_0x3c7403,_0x12d3('0x34')),_0x330b90['check'],'ck-suggestion--accept',_0x12d3('0x0'),'sw'),this['acceptButton'][_0x12d3('0x4e')](_0x12d3('0x41'))['to'](this,_0x12d3('0x40')),this['discardButton']=this['_createButton'](_0x59cb21(_0x3c7403,_0x12d3('0x2e')),_0x330b90[_0x12d3('0x1c')],_0x12d3('0x12'),'discardSuggestion','sw'),this[_0x12d3('0x4f')][_0x12d3('0x4e')](_0x12d3('0x41'))['to'](this,_0x12d3('0x48')),this[_0x12d3('0xd')]=new _0x12e6d9(_0x3c7403,this[_0x12d3('0x2c')][_0x12d3('0x36')],this[_0x12d3('0x53')]()),this['userView'][_0x12d3('0x3e')]({'attributes':{'class':[_0x12d3('0x4d'),_0x12d3('0x30')]}}),this['setTemplate'](this['getTemplate']());}[_0x12d3('0x19')](){const _0x3190d1=this[_0x12d3('0xf')],_0x5c0ef8=[{'tag':_0x12d3('0x20'),'attributes':{'class':['ck-suggestion__info',_0x12d3('0x11')]},'children':[{'tag':_0x12d3('0x2'),'children':[{'text':this[_0x12d3('0xd')][_0x12d3('0x37')]}],'attributes':{'class':[_0x12d3('0x2b'),_0x12d3('0x8')]}},{'tag':'time','attributes':{'datetime':_0x3190d1['to'](_0x12d3('0x1e')),'class':[_0x12d3('0x7'),_0x12d3('0x2d')]},'children':[{'text':_0x3190d1['to']('authoredAt',_0x3d02d2=>this['_config'][_0x12d3('0x32')](_0x3d02d2))}]}]},{'tag':'div','attributes':{'class':[_0x12d3('0x51'),_0x12d3('0x52')]},'children':[this[_0x12d3('0x25')],this['discardButton']]},{'tag':_0x12d3('0x20'),'attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x12d3('0x2c')][_0x12d3('0x4')]&&_0x5c0ef8['push']({'tag':_0x12d3('0x20'),'attributes':{'class':[_0x12d3('0xa')]},'children':[{'text':this[_0x12d3('0x21')]()}]});const _0x507026={'tag':'div','attributes':{'class':[_0x12d3('0x55'),_0x3190d1['if'](_0x12d3('0x47'),'ck-suggestion-wrapper--active'),_0x3190d1['to'](_0x12d3('0x4c'),_0x3111f3=>_0x12d3('0x38')+_0x3111f3),this[_0x12d3('0x50')][_0x12d3('0x5')]&&_0x12d3('0x39')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model'][_0x12d3('0x29')]['id'],'data-author-id':this[_0x12d3('0x2c')][_0x12d3('0x36')]['id'],'tabindex':-0x1},'children':[{'tag':_0x12d3('0x20'),'attributes':{'class':['ck-suggestion',_0x12d3('0x1b')]},'children':[this[_0x12d3('0xd')],{'tag':'div','attributes':{'class':[_0x12d3('0x28'),_0x12d3('0x3b')]},'children':_0x5c0ef8}]}]};return this[_0x12d3('0x42')]&&this[_0x12d3('0x44')]&&(_0x507026['children'][_0x12d3('0x26')](this[_0x12d3('0x42')],this[_0x12d3('0x44')]),this['commentsListView'][_0x12d3('0x2f')](_0x12d3('0x16'))['to'](this),this[_0x12d3('0x42')][_0x12d3('0x2f')](_0x12d3('0x1'))['to'](this),this[_0x12d3('0x44')]['delegate']('editorReady')['to'](this),this[_0x12d3('0x44')]['delegate'](_0x12d3('0x1'))['to'](this)),_0x507026;}[_0x12d3('0x33')](){super['render'](),this['_descriptionElement']=this[_0x12d3('0x3c')][_0x12d3('0x4a')]('.ck-annotation__content-wrapper'),this[_0x12d3('0xe')][_0x12d3('0x14')]=this[_0x12d3('0x15')],this['on']('change:description',(_0x8c2e6c,_0x5c0596,_0xc77dcb)=>{this['_descriptionElement'][_0x12d3('0x14')]=_0xc77dcb;});}[_0x12d3('0x3d')](_0x305feb,_0x163d27,_0x1acbdb,_0x17b894,_0x3eb04c){const _0x23c060=new _0x21a99c(this[_0x12d3('0x13')]);return _0x23c060['set']({'label':_0x305feb,'icon':_0x163d27,'tooltip':!0x0,'tooltipPosition':_0x3eb04c}),_0x23c060[_0x12d3('0x3e')]({'attributes':{'class':_0x1acbdb}}),_0x23c060['on'](_0x12d3('0x43'),()=>{this[_0x12d3('0x35')](_0x17b894,this[_0x12d3('0x2c')]['id']);}),_0x23c060;}['getExternalSuggestionNote'](){return _0x12d3('0x3')===this[_0x12d3('0x2c')]['attributes']['@external'][_0x12d3('0x2a')]?_0x59cb21(this[_0x12d3('0x13')],_0x12d3('0x3f')):_0x59cb21(this[_0x12d3('0x13')],_0x12d3('0x1f'));}[_0x12d3('0x53')](){return this[_0x12d3('0x2c')]['isExternal']?_0x12d3('0x3')===this[_0x12d3('0x2c')][_0x12d3('0x17')][_0x12d3('0x27')][_0x12d3('0x2a')]?_0x59cb21(this[_0x12d3('0x13')],_0x12d3('0x54'),this[_0x12d3('0x2c')][_0x12d3('0x9')][_0x12d3('0x37')]):_0x59cb21(this[_0x12d3('0x13')],_0x12d3('0x22'),this['_model'][_0x12d3('0x9')][_0x12d3('0x37')]):null;}}function ai(_0x10badd,_0x1ed6ec){let _0x2ed117='';return _0x2ed117+=_0x10badd['split']('*')[_0x12d3('0x49')]((_0xec1396,_0x31811b)=>_0x31811b%0x2!=0x0?_0x12d3('0x24')+ci(_0xec1396)+_0x12d3('0x18'):ci(_0xec1396))[_0x12d3('0x46')](''),_0x1ed6ec&&(_0x2ed117+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1ed6ec[_0x12d3('0x45')]+_0x12d3('0x6')+_0x1ed6ec[_0x12d3('0x23')]+_0x12d3('0x1a')),_0x2ed117;}function ci(_0x2072ab){const _0x14389b=document[_0x12d3('0x3a')](_0x12d3('0x2'));return _0x14389b[_0x12d3('0x31')]=_0x2072ab,_0x14389b[_0x12d3('0x14')];}
23
+ const _0x19d0=['commentThreadInputView','join','split','discardButton','isExternal','canDiscard','_config','ck-suggestion__info-name','ck-annotation__actions','commentsListView','.ck-annotation__content-wrapper','execute','_createButton','attributes','acceptButton','@external','ck-suggestion--discard','setTemplate','ck-suggestion--accept','ck-suggestion--disabled-comments','ck-suggestion-wrapper--active','author','ck-suggestion-wrapper','ck-suggestion__user','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','editorDestroyed','ck-suggestion__actions','render','delegate','innerHTML','\x22></span>','check','isActive','Accept\x20suggestion','\x22\x20title=\x22','_model','span','</p>','ck-suggestion','editorReady','map','getUserViewNotificationText','ck-annotation','extendTemplate','time','_descriptionElement','change:description','locale','bind','color','authoredAt','children','formatDateTime','ck-annotation__user','ck-suggestion__info','set','acceptSuggestion','getExternalSuggestionNote','bindTemplate','<span\x20class=\x22ck-suggestion-type\x22>','EXTERNAL_AVATAR','ck-comment__external','title','<p>','ck-suggestion__main','descriptionParts','description','content','Discard\x20suggestion','importWord','source','div','element','cancel','ck-suggestion-','userView','type','ck-annotation__info-name','ck-annotation__main','name','push','creator','ck-annotation__content-wrapper','isEnabled'];(function(_0x39ba2a,_0x19d0da){const _0x1bb44c=function(_0xbc0dbd){while(--_0xbc0dbd){_0x39ba2a['push'](_0x39ba2a['shift']());}};_0x1bb44c(++_0x19d0da);}(_0x19d0,0x156));const _0x1bb4=function(_0x39ba2a,_0x19d0da){_0x39ba2a=_0x39ba2a-0x0;let _0x1bb44c=_0x19d0[_0x39ba2a];return _0x1bb44c;};import{getTranslation as _0x48ab23}from'../../utils/common-translations';import{default as _0x135a1e}from'./basesuggestionthreadview';import{ButtonView as _0x419e17}from'ckeditor5/src/ui';import{icons as _0x5d2163}from'ckeditor5/src/core';import{trimHtml as _0x4fcc8c,UserView as _0x550f88}from'ckeditor5-collaboration/src/collaboration-core';export default class Gt extends _0x135a1e{constructor(_0x2a13b7,_0x4c1cac,_0x299d91,_0x59373b){super(_0x2a13b7,_0x4c1cac,_0x299d91,_0x59373b),this[_0x1bb4('0x31')](_0x1bb4('0x46'),''),this[_0x1bb4('0x2a')]('type')['to'](this,_0x1bb4('0x3b'),_0x406440=>_0x406440&&_0x406440[0x0]?_0x406440[0x0][_0x1bb4('0x46')]:''),this['bind'](_0x1bb4('0x3c'))['to'](this,_0x1bb4('0x3b'),this,_0x1bb4('0x1a'),(_0xa751c1,_0x5dcb10)=>{let _0x213a6d='';for(const _0x3dd230 of _0xa751c1)_0x213a6d+=_0x1bb4('0x39')+ai(_0x3dd230[_0x1bb4('0x3d')],_0x3dd230[_0x1bb4('0x2b')])+_0x1bb4('0x1f');return _0x5dcb10?_0x213a6d:_0x4fcc8c(_0x213a6d,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x1bb4('0x8')]=this[_0x1bb4('0x6')](_0x48ab23(_0x2a13b7,_0x1bb4('0x1b')),_0x5d2163[_0x1bb4('0x19')],_0x1bb4('0xc'),_0x1bb4('0x32'),'sw'),this[_0x1bb4('0x8')]['bind'](_0x1bb4('0x4d'))['to'](this,'canAccept'),this['discardButton']=this[_0x1bb4('0x6')](_0x48ab23(_0x2a13b7,_0x1bb4('0x3e')),_0x5d2163[_0x1bb4('0x43')],_0x1bb4('0xa'),'discardSuggestion','sw'),this[_0x1bb4('0x51')][_0x1bb4('0x2a')]('isEnabled')['to'](this,_0x1bb4('0x53')),this[_0x1bb4('0x45')]=new _0x550f88(_0x2a13b7,this[_0x1bb4('0x1d')]['author'],this[_0x1bb4('0x23')]()),this[_0x1bb4('0x45')][_0x1bb4('0x25')]({'attributes':{'class':[_0x1bb4('0x11'),_0x1bb4('0x2f')]}}),this[_0x1bb4('0xb')](this['getTemplate']());}['getTemplate'](){const _0x504ac9=this[_0x1bb4('0x34')],_0x53f31c=[{'tag':_0x1bb4('0x41'),'attributes':{'class':[_0x1bb4('0x30'),'ck-annotation__info']},'children':[{'tag':_0x1bb4('0x1e'),'children':[{'text':this[_0x1bb4('0x45')][_0x1bb4('0x49')]}],'attributes':{'class':[_0x1bb4('0x1'),_0x1bb4('0x47')]}},{'tag':_0x1bb4('0x26'),'attributes':{'datetime':_0x504ac9['to'](_0x1bb4('0x2c')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x504ac9['to'](_0x1bb4('0x2c'),_0x23cd3d=>this['_config'][_0x1bb4('0x2e')](_0x23cd3d))}]}]},{'tag':'div','attributes':{'class':[_0x1bb4('0x14'),_0x1bb4('0x2')]},'children':[this['acceptButton'],this['discardButton']]},{'tag':_0x1bb4('0x41'),'attributes':{'class':[_0x1bb4('0x4c')]}}];this[_0x1bb4('0x1d')][_0x1bb4('0x52')]&&_0x53f31c[_0x1bb4('0x4a')]({'tag':'div','attributes':{'class':[_0x1bb4('0x37')]},'children':[{'text':this[_0x1bb4('0x33')]()}]});const _0x2893ae={'tag':'div','attributes':{'class':[_0x1bb4('0x10'),_0x504ac9['if'](_0x1bb4('0x1a'),_0x1bb4('0xe')),_0x504ac9['to']('type',_0x34fee9=>_0x1bb4('0x44')+_0x34fee9),this[_0x1bb4('0x0')]['disableComments']&&_0x1bb4('0xd')],'data-suggestion-id':this[_0x1bb4('0x1d')]['id'],'data-thread-id':this[_0x1bb4('0x1d')]['commentThread']['id'],'data-author-id':this['_model'][_0x1bb4('0xf')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1bb4('0x41'),'attributes':{'class':[_0x1bb4('0x20'),_0x1bb4('0x24')]},'children':[this[_0x1bb4('0x45')],{'tag':'div','attributes':{'class':[_0x1bb4('0x3a'),_0x1bb4('0x48')]},'children':_0x53f31c}]}]};return this['commentsListView']&&this[_0x1bb4('0x4e')]&&(_0x2893ae[_0x1bb4('0x2d')][_0x1bb4('0x4a')](this['commentsListView'],this['commentThreadInputView']),this[_0x1bb4('0x3')][_0x1bb4('0x16')](_0x1bb4('0x21'))['to'](this),this[_0x1bb4('0x3')][_0x1bb4('0x16')](_0x1bb4('0x13'))['to'](this),this['commentThreadInputView'][_0x1bb4('0x16')]('editorReady')['to'](this),this[_0x1bb4('0x4e')][_0x1bb4('0x16')]('editorDestroyed')['to'](this)),_0x2893ae;}['render'](){super[_0x1bb4('0x15')](),this[_0x1bb4('0x27')]=this[_0x1bb4('0x42')]['querySelector'](_0x1bb4('0x4')),this['_descriptionElement'][_0x1bb4('0x17')]=this[_0x1bb4('0x3c')],this['on'](_0x1bb4('0x28'),(_0x407d8b,_0x182607,_0x1c604e)=>{this[_0x1bb4('0x27')][_0x1bb4('0x17')]=_0x1c604e;});}['_createButton'](_0x33aee9,_0x578ff3,_0x1951f3,_0x2483a6,_0x56a659){const _0x658503=new _0x419e17(this[_0x1bb4('0x29')]);return _0x658503[_0x1bb4('0x31')]({'label':_0x33aee9,'icon':_0x578ff3,'tooltip':!0x0,'tooltipPosition':_0x56a659}),_0x658503[_0x1bb4('0x25')]({'attributes':{'class':_0x1951f3}}),_0x658503['on'](_0x1bb4('0x5'),()=>{this['fire'](_0x2483a6,this[_0x1bb4('0x1d')]['id']);}),_0x658503;}[_0x1bb4('0x33')](){return _0x1bb4('0x3f')===this[_0x1bb4('0x1d')][_0x1bb4('0x7')][_0x1bb4('0x9')]['source']?_0x48ab23(this[_0x1bb4('0x29')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x48ab23(this[_0x1bb4('0x29')],'EXTERNAL_SUGGESTION');}[_0x1bb4('0x23')](){return this['_model'][_0x1bb4('0x52')]?_0x1bb4('0x3f')===this[_0x1bb4('0x1d')][_0x1bb4('0x7')][_0x1bb4('0x9')][_0x1bb4('0x40')]?_0x48ab23(this[_0x1bb4('0x29')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x1bb4('0x1d')][_0x1bb4('0x4b')]['name']):_0x48ab23(this[_0x1bb4('0x29')],_0x1bb4('0x36'),this['_model']['creator'][_0x1bb4('0x49')]):null;}}function ai(_0x51d37a,_0x134ede){let _0x58601a='';return _0x58601a+=_0x51d37a[_0x1bb4('0x50')]('*')[_0x1bb4('0x22')]((_0x2f1992,_0x162482)=>_0x162482%0x2!=0x0?_0x1bb4('0x35')+ci(_0x2f1992)+'</span>':ci(_0x2f1992))[_0x1bb4('0x4f')](''),_0x134ede&&(_0x58601a+=_0x1bb4('0x12')+_0x134ede['value']+_0x1bb4('0x1c')+_0x134ede[_0x1bb4('0x38')]+_0x1bb4('0x18')),_0x58601a;}function ci(_0x46a1ba){const _0x35ff3e=document['createElement'](_0x1bb4('0x1e'));return _0x35ff3e['innerText']=_0x46a1ba,_0x35ff3e['innerHTML'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x309c7e,_0x41ce18,_0x2851a4){const t=_0x309c7e['t'];switch(_0x41ce18){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',_0x2851a4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2851a4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2851a4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2851a4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2851a4);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',_0x2851a4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2851a4);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\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',_0x2851a4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2851a4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2851a4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2851a4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2851a4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2851a4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2851a4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2851a4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2851a4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2851a4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2851a4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2851a4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2851a4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2851a4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2851a4);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'},_0x2851a4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2851a4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2851a4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2851a4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2851a4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2851a4);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'},_0x2851a4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2851a4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2851a4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2851a4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2851a4);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});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':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'},_0x2851a4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2851a4);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'},_0x2851a4);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'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'},_0x2851a4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2851a4);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'},_0x2851a4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2851a4);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'},_0x2851a4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2851a4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2851a4);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'},_0x2851a4);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'},_0x2851a4);default:return _0x41ce18;}}
23
+ export function getTranslation(_0x377075,_0x5b6b1a,_0x375a59){const t=_0x377075['t'];switch(_0x5b6b1a){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',_0x375a59);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x375a59);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x375a59);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x375a59);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x375a59);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',_0x375a59);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x375a59);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\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',_0x375a59);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x375a59);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x375a59);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x375a59);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x375a59);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x375a59);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x375a59);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x375a59);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x375a59);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x375a59);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x375a59);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x375a59);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x375a59);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x375a59);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x375a59);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'},_0x375a59);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x375a59);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x375a59);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x375a59);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x375a59);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x375a59);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'},_0x375a59);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x375a59);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x375a59);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x375a59);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x375a59);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});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':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'},_0x375a59);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x375a59);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'},_0x375a59);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'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'},_0x375a59);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x375a59);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'},_0x375a59);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x375a59);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'},_0x375a59);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x375a59);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x375a59);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'},_0x375a59);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'},_0x375a59);default:return _0x5b6b1a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3466=['length','getRange','getRanges','replace','isMultiRange','createPositionBefore','join','isInContent','type','splice','isTouching','createRange','isIntersecting','end','deletion','\x20[color\x20','schema','getMarkers','color','createPositionAfter','push','next','add','change','value'];(function(_0x260f3b,_0x3466d3){const _0xa70be8=function(_0x4a67dc){while(--_0x4a67dc){_0x260f3b['push'](_0x260f3b['shift']());}};_0xa70be8(++_0x3466d3);}(_0x3466,0x104));const _0xa70b=function(_0x260f3b,_0x3466d3){_0x260f3b=_0x260f3b-0x0;let _0xa70be8=_0x3466[_0x260f3b];return _0xa70be8;};export function normalizeDescription(_0x10536a){return Array['isArray'](_0x10536a)||(_0x10536a=[_0x10536a]),_0x10536a['map'](_0x3a4c70=>{const _0x276e73=_0x3a4c70['content'][_0xa70b('0x12')](/\*/g,''),_0x1e86a2=_0x3a4c70[_0xa70b('0x8')]?_0xa70b('0x5')+_0x3a4c70[_0xa70b('0x8')][_0xa70b('0xe')]+']':'';return'['+_0x3a4c70[_0xa70b('0x17')]+']\x20'+_0x276e73+_0x1e86a2;})[_0xa70b('0x15')](';\x20');}export function sortSuggestions(_0x3af57d){return _0x3af57d['sort']((_0x3f5f53,_0x124428)=>_0xa70b('0x4')==_0x3f5f53[_0xa70b('0x17')]&&_0xa70b('0x4')!=_0x124428[_0xa70b('0x17')]?-0x1:_0xa70b('0x4')!=_0x3f5f53[_0xa70b('0x17')]&&'deletion'==_0x124428[_0xa70b('0x17')]?0x1:0x0);}export function getSelectedSuggestions(_0x284a1b,_0x31be46){const _0xcedf25=Array['from'](_0x284a1b[_0xa70b('0x11')]()),_0x518c60=new Set();for(const _0x38b4b5 of _0x31be46)if(_0x38b4b5[_0xa70b('0x16')])for(const _0x22b8b6 of _0xcedf25)for(const _0x301a86 of _0x38b4b5[_0xa70b('0x7')]()){const _0x1e4ad8=_0x301a86[_0xa70b('0x10')]();(_0x22b8b6[_0xa70b('0x2')](_0x1e4ad8)||_0x284a1b['isCollapsed']&&!_0x38b4b5[_0xa70b('0x13')]&&_0x38b4b5[_0xa70b('0xb')]&&_0x1e4ad8[_0xa70b('0x3')][_0xa70b('0x0')](_0x22b8b6['start']))&&_0x518c60[_0xa70b('0xc')](_0x38b4b5);}return _0x518c60;}export function getRangesOfBlockGroups(_0x5f4a66,_0x411b23){let _0x17a006,_0x2d64e4=0x0;const _0x127551=[],_0x40b404=_0x411b23[_0xa70b('0x6')];for(;_0x2d64e4<_0x5f4a66['length'];){const _0x5e807d=_0x5f4a66[_0x2d64e4],_0x134153=_0x5f4a66[_0x2d64e4+0x1];_0x17a006||(_0x17a006=_0x411b23['createPositionBefore'](_0x5e807d)),oo(_0x411b23,_0x5e807d,_0x134153)||(_0x127551[_0xa70b('0xa')](_0x411b23[_0xa70b('0x1')](_0x17a006,_0x40b404['isObject'](_0x5e807d)?_0x411b23['createPositionAfter'](_0x5e807d):_0x411b23['createPositionAt'](_0x5e807d,_0xa70b('0x3')))),_0x17a006=null),_0x2d64e4++;}return _0x127551;}function oo(_0xd80866,_0x5d19ef,_0x10aa98){if(!_0x10aa98)return!0x1;const _0x2e6f73=_0xd80866[_0xa70b('0x9')](_0x5d19ef),_0x21a361=_0xd80866[_0xa70b('0x14')](_0x10aa98);return _0x2e6f73[_0xa70b('0x0')](_0x21a361);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x249c3a,_0x18f13a,_0x3ae812){for(;_0x3ae812[_0xa70b('0xf')];){const _0x43f8d1=_0x3ae812[_0xa70b('0x18')](0x0,0x64);_0x249c3a[_0xa70b('0xd')](()=>{for(const _0x942c31 of _0x43f8d1)_0x942c31[_0xa70b('0x16')]&&_0x18f13a['execute'](_0x942c31['id']);});}}
23
+ const _0x7b3b=['sort','isInContent','schema','getRanges','change','isObject','value','splice','createPositionBefore','deletion','isTouching','start','color','execute','length','replace','type','\x20[color\x20','isMultiRange','join','createPositionAfter','isIntersecting','content','map','push','next','end','add'];(function(_0x14c2c2,_0x7b3b5c){const _0x42cb9a=function(_0x3f2f38){while(--_0x3f2f38){_0x14c2c2['push'](_0x14c2c2['shift']());}};_0x42cb9a(++_0x7b3b5c);}(_0x7b3b,0x69));const _0x42cb=function(_0x14c2c2,_0x7b3b5c){_0x14c2c2=_0x14c2c2-0x0;let _0x42cb9a=_0x7b3b[_0x14c2c2];return _0x42cb9a;};export function normalizeDescription(_0x52b25a){return Array['isArray'](_0x52b25a)||(_0x52b25a=[_0x52b25a]),_0x52b25a[_0x42cb('0x2')](_0x179dda=>{const _0x53f766=_0x179dda[_0x42cb('0x1')][_0x42cb('0x16')](/\*/g,''),_0x3575f0=_0x179dda[_0x42cb('0x13')]?_0x42cb('0x18')+_0x179dda[_0x42cb('0x13')][_0x42cb('0xd')]+']':'';return'['+_0x179dda[_0x42cb('0x17')]+']\x20'+_0x53f766+_0x3575f0;})[_0x42cb('0x1a')](';\x20');}export function sortSuggestions(_0x206d4e){return _0x206d4e[_0x42cb('0x7')]((_0x2b0163,_0x31d7a4)=>'deletion'==_0x2b0163[_0x42cb('0x17')]&&'deletion'!=_0x31d7a4[_0x42cb('0x17')]?-0x1:_0x42cb('0x10')!=_0x2b0163[_0x42cb('0x17')]&&'deletion'==_0x31d7a4[_0x42cb('0x17')]?0x1:0x0);}export function getSelectedSuggestions(_0x991480,_0x27c334){const _0x44705d=Array['from'](_0x991480[_0x42cb('0xa')]()),_0x8eeef0=new Set();for(const _0x7a9249 of _0x27c334)if(_0x7a9249[_0x42cb('0x8')])for(const _0x2f379c of _0x44705d)for(const _0x1e36ad of _0x7a9249[_0x42cb('0xa')]())(_0x2f379c[_0x42cb('0x0')](_0x1e36ad)||_0x991480['isCollapsed']&&!_0x7a9249[_0x42cb('0x19')]&&_0x7a9249[_0x42cb('0x4')]&&_0x1e36ad['end'][_0x42cb('0x11')](_0x2f379c[_0x42cb('0x12')]))&&_0x8eeef0[_0x42cb('0x6')](_0x7a9249);return _0x8eeef0;}export function getRangesOfBlockGroups(_0x142f9a,_0x490ef8){let _0x14d0af,_0x3e263b=0x0;const _0xbdd604=[],_0xa7916=_0x490ef8[_0x42cb('0x9')];for(;_0x3e263b<_0x142f9a['length'];){const _0xf9e5db=_0x142f9a[_0x3e263b],_0x2c171b=_0x142f9a[_0x3e263b+0x1];_0x14d0af||(_0x14d0af=_0x490ef8[_0x42cb('0xf')](_0xf9e5db)),so(_0x490ef8,_0xf9e5db,_0x2c171b)||(_0xbdd604[_0x42cb('0x3')](_0x490ef8['createRange'](_0x14d0af,_0xa7916[_0x42cb('0xc')](_0xf9e5db)?_0x490ef8['createPositionAfter'](_0xf9e5db):_0x490ef8['createPositionAt'](_0xf9e5db,_0x42cb('0x5')))),_0x14d0af=null),_0x3e263b++;}return _0xbdd604;}function so(_0x34e1e2,_0x479dc2,_0x3ee17d){if(!_0x3ee17d)return!0x1;const _0x15142b=_0x34e1e2[_0x42cb('0x1b')](_0x479dc2),_0x254814=_0x34e1e2['createPositionBefore'](_0x3ee17d);return _0x15142b[_0x42cb('0x11')](_0x254814);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x45721f,_0x390dc8,_0x4de039){for(;_0x4de039[_0x42cb('0x15')];){const _0x250758=_0x4de039[_0x42cb('0xe')](0x0,0x64);_0x45721f[_0x42cb('0xb')](()=>{for(const _0x8db942 of _0x250758)_0x8db942[_0x42cb('0x8')]&&_0x390dc8[_0x42cb('0x14')](_0x8db942['id']);});}}