@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230829.0 → 0.0.0-nightly-20230831.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 (113) hide show
  1. package/build/track-changes.js +1 -1
  2. package/lang/translations/ar.po +1 -0
  3. package/lang/translations/az.po +1 -0
  4. package/lang/translations/bg.po +1 -0
  5. package/lang/translations/bn.po +1 -0
  6. package/lang/translations/ca.po +1 -0
  7. package/lang/translations/cs.po +1 -0
  8. package/lang/translations/da.po +1 -0
  9. package/lang/translations/de.po +1 -0
  10. package/lang/translations/el.po +1 -0
  11. package/lang/translations/en-au.po +1 -0
  12. package/lang/translations/en.po +1 -0
  13. package/lang/translations/es.po +1 -0
  14. package/lang/translations/et.po +1 -0
  15. package/lang/translations/fi.po +1 -0
  16. package/lang/translations/fr.po +1 -0
  17. package/lang/translations/gl.po +1 -0
  18. package/lang/translations/he.po +1 -0
  19. package/lang/translations/hi.po +1 -0
  20. package/lang/translations/hr.po +1 -0
  21. package/lang/translations/hu.po +1 -0
  22. package/lang/translations/id.po +1 -0
  23. package/lang/translations/it.po +1 -0
  24. package/lang/translations/ja.po +1 -0
  25. package/lang/translations/ko.po +1 -0
  26. package/lang/translations/lt.po +1 -0
  27. package/lang/translations/lv.po +1 -0
  28. package/lang/translations/ms.po +1 -0
  29. package/lang/translations/nl.po +1 -0
  30. package/lang/translations/no.po +1 -0
  31. package/lang/translations/pl.po +1 -0
  32. package/lang/translations/pt-br.po +1 -0
  33. package/lang/translations/pt.po +1 -0
  34. package/lang/translations/ro.po +1 -0
  35. package/lang/translations/ru.po +1 -0
  36. package/lang/translations/sk.po +1 -0
  37. package/lang/translations/sq.po +1 -0
  38. package/lang/translations/sr-latn.po +1 -0
  39. package/lang/translations/sr.po +1 -0
  40. package/lang/translations/sv.po +1 -0
  41. package/lang/translations/th.po +1 -0
  42. package/lang/translations/tk.po +1 -0
  43. package/lang/translations/tr.po +1 -0
  44. package/lang/translations/tt.po +1 -0
  45. package/lang/translations/uk.po +1 -0
  46. package/lang/translations/ur.po +1 -0
  47. package/lang/translations/vi.po +1 -0
  48. package/lang/translations/zh-cn.po +1 -0
  49. package/lang/translations/zh.po +1 -0
  50. package/package.json +3 -3
  51. package/src/commands/acceptsuggestioncommand.js +1 -1
  52. package/src/commands/discardsuggestioncommand.js +1 -1
  53. package/src/commands/executeonallsuggestionscommand.js +1 -1
  54. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  55. package/src/commands/trackchangescommand.js +1 -1
  56. package/src/integrations/alignment.js +1 -1
  57. package/src/integrations/basicstyles.js +1 -1
  58. package/src/integrations/blockquote.js +1 -1
  59. package/src/integrations/ckbox.js +1 -1
  60. package/src/integrations/codeblock.js +1 -1
  61. package/src/integrations/comments.js +1 -1
  62. package/src/integrations/deletecommand.js +1 -1
  63. package/src/integrations/documentlist.js +1 -1
  64. package/src/integrations/documentlistproperties.js +1 -1
  65. package/src/integrations/entercommand.js +1 -1
  66. package/src/integrations/findandreplace.js +1 -1
  67. package/src/integrations/font.js +1 -1
  68. package/src/integrations/formatpainter.js +1 -1
  69. package/src/integrations/heading.js +1 -1
  70. package/src/integrations/highlight.js +1 -1
  71. package/src/integrations/horizontalline.js +1 -1
  72. package/src/integrations/htmlembed.js +1 -1
  73. package/src/integrations/image.js +1 -1
  74. package/src/integrations/imagereplace.js +1 -1
  75. package/src/integrations/importword.js +1 -1
  76. package/src/integrations/indent.js +1 -1
  77. package/src/integrations/inputcommand.js +1 -1
  78. package/src/integrations/link.js +1 -1
  79. package/src/integrations/list.js +1 -1
  80. package/src/integrations/listproperties.js +1 -1
  81. package/src/integrations/mediaembed.js +1 -1
  82. package/src/integrations/mention.js +1 -1
  83. package/src/integrations/pagebreak.js +1 -1
  84. package/src/integrations/paragraph.js +1 -1
  85. package/src/integrations/removeformat.js +1 -1
  86. package/src/integrations/restrictededitingmode.js +1 -1
  87. package/src/integrations/shiftentercommand.js +1 -1
  88. package/src/integrations/standardeditingmode.js +1 -1
  89. package/src/integrations/style.js +1 -1
  90. package/src/integrations/table.js +1 -1
  91. package/src/integrations/tablecaption.js +1 -1
  92. package/src/integrations/tableclipboard.js +1 -1
  93. package/src/integrations/tablecolumnresize.js +1 -1
  94. package/src/integrations/tableheadings.js +1 -1
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableofcontents.js +1 -1
  97. package/src/integrations/tableproperties.js +1 -1
  98. package/src/integrations/template.js +1 -1
  99. package/src/integrations/title.js +1 -1
  100. package/src/integrations/undo.js +1 -1
  101. package/src/integrations/utils.js +1 -1
  102. package/src/suggestion.js +1 -1
  103. package/src/suggestiondescriptionfactory.js +1 -1
  104. package/src/trackchanges.js +1 -1
  105. package/src/trackchangesdata.js +1 -1
  106. package/src/trackchangesediting.d.ts +29 -1
  107. package/src/trackchangesediting.js +1 -1
  108. package/src/trackchangesui.js +1 -1
  109. package/src/ui/suggestioncontroller.js +1 -1
  110. package/src/ui/view/basesuggestionthreadview.js +1 -1
  111. package/src/ui/view/suggestionthreadview.js +1 -1
  112. package/src/utils/common-translations.js +1 -1
  113. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ae6=['button','createAnnotationView','CommentsRepository','change:activeAnnotations','init','_descriptionFactory','_createUIButton','buttonView','_disableComments','registerAnnotation','head','bind','trackChanges.disableComments','set','_viewToController','push','unbind','activeMarkers','actionView','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','editor','getMarkers','activeAnnotations','isDirty','_handleControllerBuffer','values','requires','createCommentThreadController','separator','config','change:previous','_refreshActiveMarkers','suggestionUnloaded','getJoined','get','commentThread','isOn','comments.maxCommentCharsWhenCollapsed','locale','suggestionLoaded','Accept\x20all\x20selected\x20suggestions','descriptionParts','delete','CommentView','toMany','_annotationViews','add','filter','discardButton','from','map','commands','TrackChangesEditing','Accept\x20all\x20suggestions','size','value','Track\x20changes','view','acceptAllSuggestions','comments.editorConfig','reduce','Discard\x20all\x20suggestions','source','Annotations','destroy','length','suggestion-','acceptButton','_destroyController','suggestionChanged','comments','EditorAnnotations','execute','trackChanges.SuggestionThreadView','plugins','_bindAnnotationToEditors','_handleSuggestionControllerDelayed','remove','arrowView','isInContent','refreshSelectedViews','comments.maxCommentsWhenCollapsed','_initializeController','model','_updateController','trackChanges','getFirstRange','previous','switchbutton','clear','getAllAdjacentSuggestions','acceptSelectedSuggestions','define','getSuggestion','discardAllSuggestions','focus','lowest','type','mainView','editing','has','keys','_suggestionToController','innerView','CommentsUI','commandName','listenTo','componentFactory','getMarkerNames','isEnabled'];(function(_0x34d9a5,_0x4ae6f6){const _0x39eed5=function(_0x4daa1b){while(--_0x4daa1b){_0x34d9a5['push'](_0x34d9a5['shift']());}};_0x39eed5(++_0x4ae6f6);}(_0x4ae6,0x142));const _0x39ee=function(_0x34d9a5,_0x4ae6f6){_0x34d9a5=_0x34d9a5-0x0;let _0x39eed5=_0x4ae6[_0x34d9a5];return _0x39eed5;};import{Plugin as _0x3b50cf}from'ckeditor5/src/core';import{Collection as _0x2c5c98}from'ckeditor5/src/utils';import{Model as _0x4b52de,SplitButtonView as _0x344626,createDropdown as _0x4220ef,addListToDropdown as _0x272ddf}from'ckeditor5/src/ui';import{Users as _0x13e270,getDateTimeFormatter as _0x317fdb,getAllMarkersDomElementsSorted as _0x1a882d}from'ckeditor5-collaboration/src/collaboration-core';import _0x128a46 from'./trackchangesediting';import _0x3f9a11 from'./ui/suggestioncontroller';import _0x241d9c from'./ui/view/suggestionthreadview';import{getTranslation as _0x2ac648}from'./utils/common-translations';import _0x49ff55 from'../theme/icons/track-changes.svg';export default class d extends _0x3b50cf{static get[_0x39ee('0x26')](){return[_0x128a46,_0x13e270,_0x39ee('0xd'),_0x39ee('0x4b'),_0x39ee('0x53')];}static get['pluginName'](){return _0x39ee('0x1e');}constructor(_0x5cc2e1){super(_0x5cc2e1),this[_0x39ee('0x3')]=new Map(),this[_0x39ee('0x19')]=new Map(),this[_0x39ee('0x39')]=new Map(),this[_0x39ee('0x24')]=new Map();const _0x3804b8=this['editor'][_0x39ee('0x29')];_0x3804b8[_0x39ee('0x68')](_0x39ee('0x55'),_0x241d9c),_0x3804b8['define'](_0x39ee('0x17'),!0x1),this[_0x39ee('0x13')]=_0x3804b8[_0x39ee('0x2e')]('trackChanges.disableComments');}[_0x39ee('0x58')](_0x5b6586,_0x5358fc){0x0===this[_0x39ee('0x24')][_0x39ee('0x42')]&&setTimeout(()=>{for(const [_0x575ae2,_0x3731f0]of this[_0x39ee('0x24')]){const _0x31885c=this[_0x39ee('0x3')]['has'](_0x575ae2);_0x31885c||_0x3731f0?_0x31885c&&_0x3731f0&&this[_0x39ee('0x50')](_0x575ae2):this[_0x39ee('0x5e')](_0x575ae2);}this[_0x39ee('0x20')]['plugins'][_0x39ee('0x2e')](_0x39ee('0x53'))[_0x39ee('0x5c')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x39ee('0x65')]();},0xa),this[_0x39ee('0x24')][_0x39ee('0x18')](_0x5b6586,_0x5358fc);}[_0x39ee('0xf')](){const _0xa4a85a=this['editor'],_0x2fa0ec=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x40')),_0x15f7a6=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')]('Annotations'),_0x26a738=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x53')),_0x159913=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0xd'));_0xa4a85a['ui'][_0x39ee('0x8')][_0x39ee('0x3a')](_0x39ee('0x61'),_0x2f8129=>this[_0x39ee('0x11')](_0x2f8129)),_0x26a738['addSourceCollector'](()=>{const _0x260756=[];for(const [_0x2d191c,_0x2bdf8b]of Array[_0x39ee('0x3d')](this['_suggestionToController'])){const _0xe18db7=_0x2d191c[_0x39ee('0x66')](),_0x4a4315=[];for(const _0x15930a of _0xe18db7){if(!_0x15930a[_0x39ee('0x5b')])continue;if(_0x15930a['isMultiRange']){_0x4a4315['push'](..._0x15930a['getRanges']());continue;}const _0x3e55fd=_0x15930a[_0x39ee('0x62')]();if(_0x4a4315[_0x39ee('0x4d')]>0x0){const _0x53d1da=_0x4a4315[0x0][_0x39ee('0x2d')](_0x3e55fd);if(_0x53d1da){_0x4a4315[0x0]=_0x53d1da;continue;}}_0x4a4315['push'](_0x3e55fd);}_0x260756[_0x39ee('0x1a')]([_0x2bdf8b[_0x39ee('0x45')],_0x4a4315]);}return _0x260756;}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x33'),(_0x18bde1,_0x2f9404)=>{this['listenTo'](_0x2f9404,_0x39ee('0x2a'),(_0xe16ec0,_0x367bc3,_0x3402e0,_0x30695e)=>{_0x2f9404['isInContent']&&(null==_0x3402e0?(this[_0x39ee('0x60')](_0x30695e[_0x39ee('0x15')]),this[_0x39ee('0x58')](_0x2f9404,!0x1)):(this[_0x39ee('0x60')](_0x3402e0[_0x39ee('0x15')]),this[_0x39ee('0x58')](_0x2f9404,!0x0)));}),null===_0x2f9404[_0x39ee('0x63')]?this['_handleSuggestionControllerDelayed'](_0x2f9404,!0x1):this[_0x39ee('0x60')](_0x2f9404[_0x39ee('0x15')]);}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x2c'),(_0x68aee4,_0x41f42e,_0x163e5b)=>{this['stopListening'](_0x41f42e,_0x39ee('0x2a')),this['_handleControllerBuffer'][_0x39ee('0x36')](_0x41f42e);const _0x4a459e=_0x163e5b?_0x163e5b['head']:_0x41f42e,_0x4dbdb7=this['_suggestionToController'][_0x39ee('0x2e')](_0x4a459e);null!==_0x163e5b&&this[_0x39ee('0x60')](_0x4a459e),null===_0x163e5b&&_0x4dbdb7&&this[_0x39ee('0x50')](_0x41f42e);}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x51'),(_0x147c40,_0x2672b8)=>{this['_updateController'](_0x2672b8);}),this[_0x39ee('0x7')](_0x15f7a6,_0x39ee('0xe'),()=>{this['_refreshActiveMarkers']();}),this[_0x39ee('0x7')](_0x159913,'addComment',(_0x5f0dce,{threadId:_0x4d00fd,isFromAdapter:_0x3dd5f4})=>{if(_0x3dd5f4||!_0x2fa0ec['hasSuggestion'](_0x4d00fd))return;const _0x4d6b58=_0x2fa0ec[_0x39ee('0x69')](_0x4d00fd);this[_0x39ee('0x3')][_0x39ee('0x2e')](_0x4d6b58)[_0x39ee('0x45')][_0x39ee('0x6b')]();},{'priority':_0x39ee('0x6c')});}[_0x39ee('0x2b')](){const _0x56722a=this[_0x39ee('0x20')][_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x4b')),_0x22c037=this[_0x39ee('0x20')]['plugins'][_0x39ee('0x2e')]('TrackChangesEditing'),_0x345ba6=Array[_0x39ee('0x3d')](_0x56722a[_0x39ee('0x22')],_0x45b6a8=>_0x45b6a8[_0x39ee('0x4')])['filter'](_0x19eeef=>this[_0x39ee('0x19')][_0x39ee('0x1')](_0x19eeef)),_0x5a555d=[];for(const _0x2d4d52 of _0x345ba6){const _0x107c06=this[_0x39ee('0x19')][_0x39ee('0x2e')](_0x2d4d52)[_0x39ee('0x5f')]['getAllAdjacentSuggestions']();_0x5a555d['push'](..._0x107c06[_0x39ee('0x48')]((_0x1af418,_0x1d4b77)=>[..._0x1af418,..._0x1d4b77[_0x39ee('0x9')]()],[]));}_0x22c037[_0x39ee('0x1c')]=_0x5a555d;}[_0x39ee('0x11')](_0x2ff9a6){const _0x139dfd=_0x4220ef(_0x2ff9a6,_0x344626),_0x28c9ca=this[_0x39ee('0x20')][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x39ee('0x61')),_0x43a850=_0x2ac648(_0x2ff9a6,_0x39ee('0x44'));_0x139dfd[_0x39ee('0x12')][_0x39ee('0x18')]({'tooltip':_0x43a850,'label':_0x43a850,'icon':_0x49ff55}),_0x139dfd[_0x39ee('0x12')][_0x39ee('0x16')](_0x39ee('0x30'))['to'](_0x28c9ca,_0x39ee('0x43')),_0x139dfd[_0x39ee('0x12')]['on'](_0x39ee('0x54'),()=>{_0x28c9ca['execute'](),this[_0x39ee('0x20')][_0x39ee('0x0')][_0x39ee('0x45')]['focus']();});const _0x24b477=new _0x2c5c98(),_0x35b674=[{'type':_0x39ee('0x64'),'model':{'withText':!0x0,'label':_0x43a850,'commandName':_0x39ee('0x61')}},{'type':_0x39ee('0x28')},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x41')),'commandName':_0x39ee('0x46')}},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x34')),'commandName':_0x39ee('0x67')}},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x49')),'commandName':_0x39ee('0x6a')}},{'type':'button','model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x1f')),'commandName':'discardSelectedSuggestions'}}];for(const _0x219de7 of _0x35b674){let _0x5c11c7={'type':_0x39ee('0x28')};if(_0x219de7[_0x39ee('0x5f')]){const _0x10ed13=new _0x4b52de(_0x219de7[_0x39ee('0x5f')]),_0x4b3740=this[_0x39ee('0x20')][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x10ed13[_0x39ee('0x6')]);_0x10ed13['bind']('isOn','isEnabled')['to'](_0x4b3740,_0x39ee('0x43'),_0x39ee('0xa')),_0x5c11c7={'type':_0x219de7[_0x39ee('0x6d')],'model':_0x10ed13};}_0x24b477['add'](_0x5c11c7);}_0x272ddf(_0x139dfd,_0x24b477);const _0x3bfb09=_0x35b674[_0x39ee('0x3b')](_0x4a9c2b=>null!=_0x4a9c2b[_0x39ee('0x5f')])[_0x39ee('0x3e')](_0x5c36c7=>this['editor'][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x5c36c7['model'][_0x39ee('0x6')])),_0x5a7d17=_0x139dfd[_0x39ee('0x12')];return _0x5a7d17[_0x39ee('0x1d')][_0x39ee('0x1b')]('isEnabled'),_0x5a7d17[_0x39ee('0x5a')][_0x39ee('0x1b')](_0x39ee('0xa')),_0x5a7d17['actionView']['bind']('isEnabled')['to'](_0x28c9ca,_0x39ee('0xa')),_0x5a7d17[_0x39ee('0x5a')][_0x39ee('0x16')](_0x39ee('0xa'))[_0x39ee('0x38')](_0x3bfb09,_0x39ee('0xa'),(..._0x17606b)=>_0x17606b['some'](_0x544be2=>_0x544be2)),_0x139dfd['on']('execute',_0x5796fe=>{this[_0x39ee('0x20')][_0x39ee('0x54')](_0x5796fe[_0x39ee('0x4a')]['commandName']),this[_0x39ee('0x20')][_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0x139dfd;}['_initializeController'](_0x121b1c){const _0x585e8f=this[_0x39ee('0x20')],_0x5f49b4=_0x585e8f[_0x39ee('0x29')],_0x11090e=_0x585e8f[_0x39ee('0x56')][_0x39ee('0x2e')]('Annotations'),_0x39b16a=_0x585e8f['plugins'][_0x39ee('0x2e')](_0x39ee('0xd')),_0x226814=_0x585e8f[_0x39ee('0x56')]['get'](_0x39ee('0x53')),_0x1edee1=_0x585e8f[_0x39ee('0x56')]['get'](_0x13e270)['me'],_0x499a36=_0x5f49b4['get'](_0x39ee('0x61'))['SuggestionThreadView'],{CommentsListView:_0xb24366,CommentThreadInputView:_0x5bc51d}=_0x585e8f[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x5'));let _0x12cd29,_0xbbe3e9;this['_annotationViews']['has'](_0x121b1c['id'])?(_0xbbe3e9=this[_0x39ee('0x39')][_0x39ee('0x2e')](_0x121b1c['id']),_0x12cd29=_0xbbe3e9[_0x39ee('0x6e')]):(_0x12cd29=new _0x499a36(_0x585e8f[_0x39ee('0x32')],_0x121b1c,_0x1edee1,{'disableComments':this[_0x39ee('0x13')],'editorConfig':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x47')),'maxCommentsWhenCollapsed':_0x5f49b4['get'](_0x39ee('0x5d')),'maxThreadTotalWeight':_0x5f49b4[_0x39ee('0x2e')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x31')),'formatDateTime':_0x317fdb(_0x5f49b4['get'](_0x39ee('0x32'))),'CommentView':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x52'))[_0x39ee('0x37')],'CommentsListView':_0xb24366,'CommentThreadInputView':_0x5bc51d}),_0x12cd29[_0x39ee('0x4f')]['on'](_0x39ee('0x54'),()=>{_0x585e8f[_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0x12cd29[_0x39ee('0x3c')]['on']('execute',()=>{_0x585e8f[_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0xbbe3e9=_0x11090e[_0x39ee('0xc')](this[_0x39ee('0x20')][_0x39ee('0x32')],_0x12cd29),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x23'))['to'](_0x12cd29,'isDirty'),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x4d'))['to'](_0x12cd29),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x6d'))['to'](_0x12cd29,'type',_0x336d8f=>_0x39ee('0x4e')+_0x336d8f),this[_0x39ee('0x39')][_0x39ee('0x18')](_0x121b1c['id'],_0xbbe3e9));const _0x1af3c6=_0x39b16a[_0x39ee('0x27')](_0x121b1c[_0x39ee('0x2f')],_0x12cd29),_0x5ef201=new _0x3f9a11(_0x585e8f,_0x121b1c,_0x12cd29,_0x1af3c6),_0x131699=_0x121b1c['getAllAdjacentSuggestions']()[_0x39ee('0x3b')](_0x5921c9=>_0x5921c9[_0x39ee('0x5b')]);_0x12cd29['descriptionParts']=_0x585e8f[_0x39ee('0x56')]['get'](_0x39ee('0x40'))[_0x39ee('0x10')]['getDescriptions'](_0x131699),this[_0x39ee('0x3')]['set'](_0x121b1c,_0x5ef201),this[_0x39ee('0x19')]['set'](_0x12cd29,_0x5ef201);const _0x50ef7a=_0x11090e['createAnnotation']({'view':_0xbbe3e9,'target':()=>{const _0x5b4015=[],_0x3e624c=_0x121b1c['getAllAdjacentSuggestions']()[_0x39ee('0x3b')](_0x692759=>_0x692759['isInContent']);for(const _0x3fa12c of _0x3e624c)_0x5b4015[_0x39ee('0x1a')](..._0x3fa12c[_0x39ee('0x21')]());return _0x1a882d(_0x585e8f[_0x39ee('0x0')],_0x5b4015);},'type':()=>'suggestion-'+_0x5ef201[_0x39ee('0x45')]['type']});_0x39b16a[_0x39ee('0x57')](_0x12cd29,_0x50ef7a),_0x11090e[_0x39ee('0x3a')](_0x50ef7a),_0x226814[_0x39ee('0x14')](_0x50ef7a);}[_0x39ee('0x50')](_0x162d64){const _0x48d820=this['editor'][_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x4b')),_0x401a52=this[_0x39ee('0x3')][_0x39ee('0x2e')](_0x162d64),_0x514b54=_0x401a52['view'],_0x179ef6=_0x48d820['getByInnerView'](_0x514b54);_0x179ef6&&_0x48d820[_0x39ee('0x59')](_0x179ef6),this[_0x39ee('0x3')][_0x39ee('0x36')](_0x162d64),this[_0x39ee('0x19')]['delete'](_0x514b54),_0x401a52[_0x39ee('0x4c')]();}[_0x39ee('0x60')](_0x4d4d60){if(!_0x4d4d60[_0x39ee('0x5b')]||!this[_0x39ee('0x3')]['has'](_0x4d4d60))return;const _0xec84c1=this[_0x39ee('0x20')][_0x39ee('0x56')]['get']('TrackChangesEditing'),_0x2aba3f=this['_suggestionToController'][_0x39ee('0x2e')](_0x4d4d60),_0x915fcc=_0x4d4d60[_0x39ee('0x66')]();_0x2aba3f[_0x39ee('0x45')][_0x39ee('0x35')]=_0xec84c1[_0x39ee('0x10')]['getDescriptions'](_0x915fcc);}[_0x39ee('0x4c')](){for(const _0x5e9bb9 of this[_0x39ee('0x3')][_0x39ee('0x2')]())this['_destroyController'](_0x5e9bb9);for(const _0x1c0e17 of this[_0x39ee('0x39')][_0x39ee('0x25')]())_0x1c0e17[_0x39ee('0x6e')][_0x39ee('0x4c')]();super[_0x39ee('0x4c')]();}}
23
+ const _0x3dfe=['CommentsUI','innerView','length','set','execute','Annotations','isDirty','locale','actionView','from','addSourceCollector','_bindAnnotationToEditors','previous','isInContent','model','change:previous','commands','acceptSelectedSuggestions','add','_annotationViews','comments','CommentView','Accept\x20all\x20selected\x20suggestions','head','suggestionLoaded','_suggestionToController','_descriptionFactory','type','bind','activeAnnotations','_updateController','toMany','createAnnotation','Accept\x20all\x20suggestions','remove','createCommentThreadController','arrowView','pluginName','acceptAllSuggestions','separator','switchbutton','view','init','suggestionChanged','define','getAllAdjacentSuggestions','Track\x20changes','_handleControllerBuffer','plugins','CommentsRepository','trackChanges.disableComments','isMultiRange','activeMarkers','comments.maxThreadTotalWeight','getByInnerView','_viewToController','commandName','editor','buttonView','keys','Discard\x20all\x20suggestions','discardSelectedSuggestions','stopListening','destroy','editing','suggestion-','trackChanges','unbind','get','getSuggestion','getDescriptions','delete','_disableComments','focus','button','getMarkers','mainView','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','reduce','isOn','lowest','refreshSelectedViews','comments.editorConfig','listenTo','_destroyController','push','isEnabled','source','_refreshActiveMarkers','filter','trackChanges.SuggestionThreadView','value','TrackChangesEditing','_createUIButton','comments.maxCommentsWhenCollapsed','acceptButton','has','getFirstRange','change:activeAnnotations','requires','hasSuggestion','_handleSuggestionControllerDelayed','componentFactory','descriptionParts','size'];(function(_0x5c644f,_0x3dfecd){const _0x5d01aa=function(_0x510228){while(--_0x510228){_0x5c644f['push'](_0x5c644f['shift']());}};_0x5d01aa(++_0x3dfecd);}(_0x3dfe,0x1e8));const _0x5d01=function(_0x5c644f,_0x3dfecd){_0x5c644f=_0x5c644f-0x0;let _0x5d01aa=_0x3dfe[_0x5c644f];return _0x5d01aa;};import{Plugin as _0xa84909}from'ckeditor5/src/core';import{Collection as _0x199267}from'ckeditor5/src/utils';import{Model as _0x31fa69,SplitButtonView as _0x2ede9c,createDropdown as _0x500b77,addListToDropdown as _0x4dc9b1}from'ckeditor5/src/ui';import{Users as _0x212378,getDateTimeFormatter as _0x26d530,getAllMarkersDomElementsSorted as _0x2e1fc5}from'ckeditor5-collaboration/src/collaboration-core';import _0x313b0a from'./trackchangesediting';import _0x4bf90f from'./ui/suggestioncontroller';import _0x107e2a from'./ui/view/suggestionthreadview';import{getTranslation as _0x22c608}from'./utils/common-translations';import _0x188be6 from'../theme/icons/track-changes.svg';export default class d extends _0xa84909{static get[_0x5d01('0x24')](){return[_0x313b0a,_0x212378,_0x5d01('0x5b'),_0x5d01('0x2f'),_0x5d01('0xd')];}static get[_0x5d01('0x4f')](){return'TrackChangesUI';}constructor(_0x144d09){super(_0x144d09),this[_0x5d01('0x43')]=new Map(),this[_0x5d01('0x61')]=new Map(),this[_0x5d01('0x3d')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x31252f=this[_0x5d01('0x63')]['config'];_0x31252f['define'](_0x5d01('0x1b'),_0x107e2a),_0x31252f[_0x5d01('0x56')](_0x5d01('0x5c'),!0x1),this[_0x5d01('0x8')]=_0x31252f[_0x5d01('0x4')]('trackChanges.disableComments');}[_0x5d01('0x26')](_0x4950e8,_0x49848a){0x0===this[_0x5d01('0x59')][_0x5d01('0x29')]&&setTimeout(()=>{for(const [_0x1e7f86,_0x200404]of this['_handleControllerBuffer']){const _0x198b4f=this[_0x5d01('0x43')][_0x5d01('0x21')](_0x1e7f86);_0x198b4f||_0x200404?_0x198b4f&&_0x200404&&this[_0x5d01('0x15')](_0x1e7f86):this['_initializeController'](_0x1e7f86);}this[_0x5d01('0x63')]['plugins'][_0x5d01('0x4')](_0x5d01('0xd'))[_0x5d01('0x12')](),this[_0x5d01('0x19')](),this[_0x5d01('0x59')]['clear']();},0xa),this[_0x5d01('0x59')]['set'](_0x4950e8,_0x49848a);}[_0x5d01('0x54')](){const _0x3b6fec=this[_0x5d01('0x63')],_0x12d2f6=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x1d')),_0x1117c4=_0x3b6fec['plugins']['get'](_0x5d01('0x2f')),_0x168f68=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0xd')),_0xc6c41f=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x5b'));_0x3b6fec['ui'][_0x5d01('0x27')]['add'](_0x5d01('0x2'),_0x286700=>this[_0x5d01('0x1e')](_0x286700)),_0x168f68[_0x5d01('0x34')](()=>{const _0x2b2a2=[];for(const [_0x2a28dc,_0x3edc2e]of Array[_0x5d01('0x33')](this['_suggestionToController'])){const _0x32ed1d=_0x2a28dc[_0x5d01('0x57')](),_0x287ba3=[];for(const _0x4732cc of _0x32ed1d){if(!_0x4732cc['isInContent'])continue;if(_0x4732cc[_0x5d01('0x5d')]){_0x287ba3[_0x5d01('0x16')](..._0x4732cc['getRanges']());continue;}const _0x24259c=_0x4732cc[_0x5d01('0x22')]();if(_0x287ba3[_0x5d01('0x2c')]>0x0){const _0x1dfee7=_0x287ba3[0x0]['getJoined'](_0x24259c);if(_0x1dfee7){_0x287ba3[0x0]=_0x1dfee7;continue;}}_0x287ba3['push'](_0x24259c);}_0x2b2a2[_0x5d01('0x16')]([_0x3edc2e['view'],_0x287ba3]);}return _0x2b2a2;}),this[_0x5d01('0x14')](_0x12d2f6,_0x5d01('0x42'),(_0x26ff5c,_0x2cf2f4)=>{this[_0x5d01('0x14')](_0x2cf2f4,_0x5d01('0x39'),(_0x5971e7,_0x8b5268,_0x51cddb,_0x2618bf)=>{_0x2cf2f4['isInContent']&&(null==_0x51cddb?(this[_0x5d01('0x48')](_0x2618bf['head']),this[_0x5d01('0x26')](_0x2cf2f4,!0x1)):(this[_0x5d01('0x48')](_0x51cddb[_0x5d01('0x41')]),this[_0x5d01('0x26')](_0x2cf2f4,!0x0)));}),null===_0x2cf2f4[_0x5d01('0x36')]?this['_handleSuggestionControllerDelayed'](_0x2cf2f4,!0x1):this['_updateController'](_0x2cf2f4[_0x5d01('0x41')]);}),this[_0x5d01('0x14')](_0x12d2f6,'suggestionUnloaded',(_0x15b28c,_0x339544,_0x2e3239)=>{this[_0x5d01('0x68')](_0x339544,_0x5d01('0x39')),this[_0x5d01('0x59')][_0x5d01('0x7')](_0x339544);const _0x27cddc=_0x2e3239?_0x2e3239[_0x5d01('0x41')]:_0x339544,_0x5a6829=this[_0x5d01('0x43')][_0x5d01('0x4')](_0x27cddc);null!==_0x2e3239&&this['_updateController'](_0x27cddc),null===_0x2e3239&&_0x5a6829&&this[_0x5d01('0x15')](_0x339544);}),this['listenTo'](_0x12d2f6,_0x5d01('0x55'),(_0x56780c,_0xb29059)=>{this[_0x5d01('0x48')](_0xb29059);}),this[_0x5d01('0x14')](_0x1117c4,_0x5d01('0x23'),()=>{this['_refreshActiveMarkers']();}),this[_0x5d01('0x14')](_0xc6c41f,'addComment',(_0x10a034,{threadId:_0x56c1f0,isFromAdapter:_0x1c3496})=>{if(_0x1c3496||!_0x12d2f6[_0x5d01('0x25')](_0x56c1f0))return;const _0x44f2ee=_0x12d2f6[_0x5d01('0x5')](_0x56c1f0);this[_0x5d01('0x43')][_0x5d01('0x4')](_0x44f2ee)['view']['focus']();},{'priority':_0x5d01('0x11')});}[_0x5d01('0x19')](){const _0x715cbe=this['editor'][_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x2f')),_0x1d467b=this[_0x5d01('0x63')][_0x5d01('0x5a')][_0x5d01('0x4')]('TrackChangesEditing'),_0x3d3c7f=Array[_0x5d01('0x33')](_0x715cbe[_0x5d01('0x47')],_0x202ee6=>_0x202ee6[_0x5d01('0x2b')])[_0x5d01('0x1a')](_0x4d54d5=>this[_0x5d01('0x61')][_0x5d01('0x21')](_0x4d54d5)),_0x182f88=[];for(const _0x15ac73 of _0x3d3c7f){const _0x5f37d1=this[_0x5d01('0x61')][_0x5d01('0x4')](_0x15ac73)[_0x5d01('0x38')][_0x5d01('0x57')]();_0x182f88[_0x5d01('0x16')](..._0x5f37d1[_0x5d01('0xf')]((_0x384614,_0x1ad9e4)=>[..._0x384614,..._0x1ad9e4['getMarkerNames']()],[]));}_0x1d467b[_0x5d01('0x5e')]=_0x182f88;}[_0x5d01('0x1e')](_0x1d693b){const _0x11e7c9=_0x500b77(_0x1d693b,_0x2ede9c),_0xd77e98=this['editor'][_0x5d01('0x3a')][_0x5d01('0x4')]('trackChanges'),_0x443497=_0x22c608(_0x1d693b,_0x5d01('0x58'));_0x11e7c9[_0x5d01('0x64')][_0x5d01('0x2d')]({'tooltip':_0x443497,'label':_0x443497,'icon':_0x188be6}),_0x11e7c9[_0x5d01('0x64')]['bind'](_0x5d01('0x10'))['to'](_0xd77e98,_0x5d01('0x1c')),_0x11e7c9['buttonView']['on'](_0x5d01('0x2e'),()=>{_0xd77e98['execute'](),this['editor'][_0x5d01('0x0')][_0x5d01('0x53')][_0x5d01('0x9')]();});const _0xc7ac6f=new _0x199267(),_0x2d8446=[{'type':_0x5d01('0x52'),'model':{'withText':!0x0,'label':_0x443497,'commandName':_0x5d01('0x2')}},{'type':_0x5d01('0x51')},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x4b')),'commandName':_0x5d01('0x50')}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x40')),'commandName':_0x5d01('0x3b')}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x66')),'commandName':'discardAllSuggestions'}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0xe')),'commandName':_0x5d01('0x67')}}];for(const _0x1aec46 of _0x2d8446){let _0x5e1203={'type':'separator'};if(_0x1aec46[_0x5d01('0x38')]){const _0x1a5359=new _0x31fa69(_0x1aec46['model']),_0x2fbdfb=this[_0x5d01('0x63')][_0x5d01('0x3a')]['get'](_0x1a5359[_0x5d01('0x62')]);_0x1a5359['bind'](_0x5d01('0x10'),_0x5d01('0x17'))['to'](_0x2fbdfb,_0x5d01('0x1c'),'isEnabled'),_0x5e1203={'type':_0x1aec46[_0x5d01('0x45')],'model':_0x1a5359};}_0xc7ac6f['add'](_0x5e1203);}_0x4dc9b1(_0x11e7c9,_0xc7ac6f);const _0x46a172=_0x2d8446['filter'](_0x166051=>null!=_0x166051[_0x5d01('0x38')])['map'](_0x313c88=>this[_0x5d01('0x63')][_0x5d01('0x3a')]['get'](_0x313c88[_0x5d01('0x38')][_0x5d01('0x62')])),_0x7fa68=_0x11e7c9[_0x5d01('0x64')];return _0x7fa68[_0x5d01('0x32')][_0x5d01('0x3')](_0x5d01('0x17')),_0x7fa68[_0x5d01('0x4e')][_0x5d01('0x3')](_0x5d01('0x17')),_0x7fa68[_0x5d01('0x32')]['bind']('isEnabled')['to'](_0xd77e98,_0x5d01('0x17')),_0x7fa68[_0x5d01('0x4e')][_0x5d01('0x46')](_0x5d01('0x17'))[_0x5d01('0x49')](_0x46a172,_0x5d01('0x17'),(..._0x2b36c5)=>_0x2b36c5['some'](_0xd34a97=>_0xd34a97)),_0x11e7c9['on'](_0x5d01('0x2e'),_0x4d8a83=>{this[_0x5d01('0x63')][_0x5d01('0x2e')](_0x4d8a83[_0x5d01('0x18')]['commandName']),this[_0x5d01('0x63')][_0x5d01('0x0')][_0x5d01('0x53')]['focus']();}),_0x11e7c9;}['_initializeController'](_0x5eafae){const _0x3e71b4=this[_0x5d01('0x63')],_0xf3d7f1=_0x3e71b4['config'],_0x155f5b=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x2f')),_0x17ce0d=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x5b')),_0xe99a43=_0x3e71b4[_0x5d01('0x5a')][_0x5d01('0x4')]('EditorAnnotations'),_0x50f35c=_0x3e71b4[_0x5d01('0x5a')][_0x5d01('0x4')](_0x212378)['me'],_0x2f4cfe=_0xf3d7f1['get'](_0x5d01('0x2'))['SuggestionThreadView'],{CommentsListView:_0x22abf5,CommentThreadInputView:_0x1873ba}=_0x3e71b4[_0x5d01('0x5a')]['get'](_0x5d01('0x2a'));let _0x1d8276,_0x517d0d;this[_0x5d01('0x3d')][_0x5d01('0x21')](_0x5eafae['id'])?(_0x517d0d=this['_annotationViews']['get'](_0x5eafae['id']),_0x1d8276=_0x517d0d[_0x5d01('0xc')]):(_0x1d8276=new _0x2f4cfe(_0x3e71b4[_0x5d01('0x31')],_0x5eafae,_0x50f35c,{'disableComments':this[_0x5d01('0x8')],'editorConfig':_0xf3d7f1['get'](_0x5d01('0x13')),'maxCommentsWhenCollapsed':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x1f')),'maxThreadTotalWeight':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x5f')),'maxCommentCharsWhenCollapsed':_0xf3d7f1[_0x5d01('0x4')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x26d530(_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x31'))),'CommentView':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x3e'))[_0x5d01('0x3f')],'CommentsListView':_0x22abf5,'CommentThreadInputView':_0x1873ba}),_0x1d8276[_0x5d01('0x20')]['on'](_0x5d01('0x2e'),()=>{_0x3e71b4[_0x5d01('0x0')]['view'][_0x5d01('0x9')]();}),_0x1d8276['discardButton']['on'](_0x5d01('0x2e'),()=>{_0x3e71b4['editing'][_0x5d01('0x53')]['focus']();}),_0x517d0d=_0x155f5b['createAnnotationView'](this[_0x5d01('0x63')]['locale'],_0x1d8276),_0x517d0d['bind'](_0x5d01('0x30'))['to'](_0x1d8276,_0x5d01('0x30')),_0x517d0d['bind'](_0x5d01('0x2c'))['to'](_0x1d8276),_0x517d0d[_0x5d01('0x46')](_0x5d01('0x45'))['to'](_0x1d8276,_0x5d01('0x45'),_0x2940e5=>_0x5d01('0x1')+_0x2940e5),this['_annotationViews'][_0x5d01('0x2d')](_0x5eafae['id'],_0x517d0d));const _0x4c1c4c=_0x17ce0d[_0x5d01('0x4d')](_0x5eafae['commentThread'],_0x1d8276),_0x2d395f=new _0x4bf90f(_0x3e71b4,_0x5eafae,_0x1d8276,_0x4c1c4c),_0x3ca3e7=_0x5eafae[_0x5d01('0x57')]()[_0x5d01('0x1a')](_0x40e83f=>_0x40e83f[_0x5d01('0x37')]);_0x1d8276[_0x5d01('0x28')]=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x1d'))[_0x5d01('0x44')]['getDescriptions'](_0x3ca3e7),this[_0x5d01('0x43')][_0x5d01('0x2d')](_0x5eafae,_0x2d395f),this[_0x5d01('0x61')][_0x5d01('0x2d')](_0x1d8276,_0x2d395f);const _0x3b68a7=_0x155f5b[_0x5d01('0x4a')]({'view':_0x517d0d,'target':()=>{const _0x11cd9c=[],_0x12b3ba=_0x5eafae[_0x5d01('0x57')]()[_0x5d01('0x1a')](_0x20e528=>_0x20e528['isInContent']);for(const _0x5cda34 of _0x12b3ba)_0x11cd9c['push'](..._0x5cda34[_0x5d01('0xb')]());return _0x2e1fc5(_0x3e71b4['editing'],_0x11cd9c);},'type':()=>_0x5d01('0x1')+_0x2d395f[_0x5d01('0x53')][_0x5d01('0x45')]});_0x17ce0d[_0x5d01('0x35')](_0x1d8276,_0x3b68a7),_0x155f5b[_0x5d01('0x3c')](_0x3b68a7),_0xe99a43['registerAnnotation'](_0x3b68a7);}['_destroyController'](_0x455df0){const _0x14d2d5=this[_0x5d01('0x63')][_0x5d01('0x5a')]['get'](_0x5d01('0x2f')),_0x1bdeb5=this['_suggestionToController'][_0x5d01('0x4')](_0x455df0),_0x5d3148=_0x1bdeb5[_0x5d01('0x53')],_0x1e3c9e=_0x14d2d5[_0x5d01('0x60')](_0x5d3148);_0x1e3c9e&&_0x14d2d5[_0x5d01('0x4c')](_0x1e3c9e),this[_0x5d01('0x43')][_0x5d01('0x7')](_0x455df0),this[_0x5d01('0x61')]['delete'](_0x5d3148),_0x1bdeb5[_0x5d01('0x69')]();}[_0x5d01('0x48')](_0x59bcdd){if(!_0x59bcdd['isInContent']||!this[_0x5d01('0x43')][_0x5d01('0x21')](_0x59bcdd))return;const _0x4508a3=this[_0x5d01('0x63')]['plugins']['get'](_0x5d01('0x1d')),_0x55a6f7=this[_0x5d01('0x43')]['get'](_0x59bcdd),_0x514a51=_0x59bcdd['getAllAdjacentSuggestions']();_0x55a6f7[_0x5d01('0x53')]['descriptionParts']=_0x4508a3[_0x5d01('0x44')][_0x5d01('0x6')](_0x514a51);}[_0x5d01('0x69')](){for(const _0x1f3d4e of this[_0x5d01('0x43')][_0x5d01('0x65')]())this[_0x5d01('0x15')](_0x1f3d4e);for(const _0x229e66 of this[_0x5d01('0x3d')]['values']())_0x229e66[_0x5d01('0xc')]['destroy']();super[_0x5d01('0x69')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3080=['_pendingAction','canAccept','stopListening','PENDING_ACTION_SUGGESTION','get','model','getRanges','bind','canEditAt','isDirty','isEnabled','_discardCommand','commentThreadController','discardSuggestion','canDiscard','commands','unbind','_acceptCommand','PendingActions','listenTo','destroy','plugins','_removePendingAction','execute','add','locale','acceptSuggestion','remove','view','_editor','_setPendingAction'];(function(_0x25737e,_0x30803d){const _0x2cc0c3=function(_0x1663f2){while(--_0x1663f2){_0x25737e['push'](_0x25737e['shift']());}};_0x2cc0c3(++_0x30803d);}(_0x3080,0x101));const _0x2cc0=function(_0x25737e,_0x30803d){_0x25737e=_0x25737e-0x0;let _0x2cc0c3=_0x3080[_0x25737e];return _0x2cc0c3;};import{ObservableMixin as _0x3ff8cc}from'ckeditor5/src/utils';import{getTranslation as _0x1e699f}from'../utils/common-translations';export default class qt extends _0x3ff8cc(){constructor(_0x14b9a0,_0x26ac70,_0x5b72be,_0xb08f1a){super(),this['model']=_0x26ac70,this[_0x2cc0('0x13')]=_0x5b72be,this[_0x2cc0('0x3')]=_0xb08f1a,this['_editor']=_0x14b9a0,this[_0x2cc0('0x8')]=_0x14b9a0[_0x2cc0('0x6')][_0x2cc0('0x1a')](_0x2cc0('0x11')),this['_discardCommand']=_0x14b9a0[_0x2cc0('0x6')][_0x2cc0('0x1a')](_0x2cc0('0x4')),this[_0x2cc0('0x13')][_0x2cc0('0x1d')]('isEnabled')['to'](this['_acceptCommand'],this[_0x2cc0('0x2')],(_0x43c87f,_0x4ec340)=>_0x43c87f||_0x4ec340),this[_0x2cc0('0x13')][_0x2cc0('0x1d')]('canAccept')['to'](this[_0x2cc0('0x8')],_0x2cc0('0x1'),_0x233fb6=>_0x233fb6&&this['_editor']['model'][_0x2cc0('0x1e')](_0x26ac70[_0x2cc0('0x1c')]())),this[_0x2cc0('0x13')][_0x2cc0('0x1d')](_0x2cc0('0x5'))['to'](this[_0x2cc0('0x2')],'isEnabled',_0x2a0f5b=>_0x2a0f5b&&this[_0x2cc0('0x14')][_0x2cc0('0x1b')][_0x2cc0('0x1e')](_0x26ac70[_0x2cc0('0x1c')]())),this['_pendingAction']=null,_0x5b72be[_0x2cc0('0x0')]&&this[_0x2cc0('0x15')](),this[_0x2cc0('0xa')](_0x5b72be,_0x2cc0('0x11'),()=>this[_0x2cc0('0x11')]()),this['listenTo'](_0x5b72be,_0x2cc0('0x4'),()=>this['discardSuggestion']()),this[_0x2cc0('0xa')](_0x5b72be,'change:isDirty',()=>{_0x5b72be[_0x2cc0('0x0')]?this[_0x2cc0('0x15')]():this['_removePendingAction']();});}[_0x2cc0('0x11')](){this[_0x2cc0('0x8')]['execute'](this[_0x2cc0('0x1b')]['id']);}[_0x2cc0('0x4')](){this['_discardCommand'][_0x2cc0('0xe')](this[_0x2cc0('0x1b')]['id']);}[_0x2cc0('0xb')](){this['view'][_0x2cc0('0x7')](_0x2cc0('0x1')),this['view']['unbind'](_0x2cc0('0x17')),this[_0x2cc0('0x13')][_0x2cc0('0x7')](_0x2cc0('0x5')),this[_0x2cc0('0x18')](),this[_0x2cc0('0x3')][_0x2cc0('0xb')](),this['_pendingAction']&&this[_0x2cc0('0xd')]();}[_0x2cc0('0x15')](){const _0x2667de=_0x1e699f(this['_editor'][_0x2cc0('0x10')],_0x2cc0('0x19'));this[_0x2cc0('0x16')]=this[_0x2cc0('0x14')][_0x2cc0('0xc')][_0x2cc0('0x1a')](_0x2cc0('0x9'))[_0x2cc0('0xf')](_0x2667de);}[_0x2cc0('0xd')](){null!==this[_0x2cc0('0x16')]&&this[_0x2cc0('0x14')][_0x2cc0('0xc')]['get'](_0x2cc0('0x9'))[_0x2cc0('0x12')](this[_0x2cc0('0x16')]),this[_0x2cc0('0x16')]=null;}}
23
+ const _0xc712=['commands','_setPendingAction','stopListening','listenTo','acceptSuggestion','unbind','isDirty','bind','getRanges','view','get','discardSuggestion','model','_discardCommand','_removePendingAction','canAccept','execute','_pendingAction','_acceptCommand','canDiscard','isEnabled','locale','plugins','PendingActions','canEditAt','_editor','destroy','commentThreadController'];(function(_0x11c311,_0xc712c8){const _0x409ce7=function(_0x7ff658){while(--_0x7ff658){_0x11c311['push'](_0x11c311['shift']());}};_0x409ce7(++_0xc712c8);}(_0xc712,0xae));const _0x409c=function(_0x11c311,_0xc712c8){_0x11c311=_0x11c311-0x0;let _0x409ce7=_0xc712[_0x11c311];return _0x409ce7;};import{ObservableMixin as _0x3311b3}from'ckeditor5/src/utils';import{getTranslation as _0x546045}from'../utils/common-translations';export default class Ft extends _0x3311b3(){constructor(_0x319567,_0x5ba8a2,_0xd1d871,_0x1ffe71){super(),this[_0x409c('0x6')]=_0x5ba8a2,this[_0x409c('0x3')]=_0xd1d871,this[_0x409c('0x15')]=_0x1ffe71,this[_0x409c('0x13')]=_0x319567,this[_0x409c('0xc')]=_0x319567[_0x409c('0x16')][_0x409c('0x4')]('acceptSuggestion'),this[_0x409c('0x7')]=_0x319567['commands'][_0x409c('0x4')](_0x409c('0x5')),this[_0x409c('0x3')]['bind'](_0x409c('0xe'))['to'](this[_0x409c('0xc')],this[_0x409c('0x7')],(_0x238b3a,_0x842a4a)=>_0x238b3a||_0x842a4a),this[_0x409c('0x3')][_0x409c('0x1')](_0x409c('0x9'))['to'](this[_0x409c('0xc')],_0x409c('0xe'),_0x5232c1=>_0x5232c1&&this[_0x409c('0x13')][_0x409c('0x6')][_0x409c('0x12')](_0x5ba8a2[_0x409c('0x2')]())),this[_0x409c('0x3')]['bind'](_0x409c('0xd'))['to'](this['_discardCommand'],_0x409c('0xe'),_0x2e4e79=>_0x2e4e79&&this[_0x409c('0x13')]['model'][_0x409c('0x12')](_0x5ba8a2[_0x409c('0x2')]())),this[_0x409c('0xb')]=null,_0xd1d871['isDirty']&&this[_0x409c('0x17')](),this[_0x409c('0x19')](_0xd1d871,'acceptSuggestion',()=>this[_0x409c('0x1a')]()),this[_0x409c('0x19')](_0xd1d871,_0x409c('0x5'),()=>this[_0x409c('0x5')]()),this[_0x409c('0x19')](_0xd1d871,'change:isDirty',()=>{_0xd1d871[_0x409c('0x0')]?this[_0x409c('0x17')]():this['_removePendingAction']();});}[_0x409c('0x1a')](){this[_0x409c('0xc')][_0x409c('0xa')](this['model']['id']);}['discardSuggestion'](){this[_0x409c('0x7')][_0x409c('0xa')](this[_0x409c('0x6')]['id']);}['destroy'](){this[_0x409c('0x3')][_0x409c('0x1b')](_0x409c('0xe')),this[_0x409c('0x3')]['unbind']('canAccept'),this[_0x409c('0x3')][_0x409c('0x1b')](_0x409c('0xd')),this[_0x409c('0x18')](),this[_0x409c('0x15')][_0x409c('0x14')](),this[_0x409c('0xb')]&&this[_0x409c('0x8')]();}[_0x409c('0x17')](){const _0x5dba2e=_0x546045(this['_editor'][_0x409c('0xf')],'PENDING_ACTION_SUGGESTION');this[_0x409c('0xb')]=this[_0x409c('0x13')][_0x409c('0x10')][_0x409c('0x4')](_0x409c('0x11'))['add'](_0x5dba2e);}[_0x409c('0x8')](){null!==this[_0x409c('0xb')]&&this[_0x409c('0x13')][_0x409c('0x10')][_0x409c('0x4')]('PendingActions')['remove'](this['_pendingAction']),this[_0x409c('0xb')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1950=['hasDirtyComment','removeComment','isReadOnly','descriptionParts','commentThreadInputView','_localUser','CommentView','authoredAt','commentsListView','canDiscard','showInput','canAccept','focus','locale','delegate','cancel','value','bind','disabledSubmit','_createCommentThreadInputView','fire','isDirty','editorConfig','updateComment','isActive','isEnabled','assign','destroy','editor','commentInputView','setData','_model','length','commentThread','addComment','element','_config','set'];(function(_0x12e439,_0x19502e){const _0x1e96c5=function(_0xd027ce){while(--_0xd027ce){_0x12e439['push'](_0x12e439['shift']());}};_0x1e96c5(++_0x19502e);}(_0x1950,0x68));const _0x1e96=function(_0x12e439,_0x19502e){_0x12e439=_0x12e439-0x0;let _0x1e96c5=_0x1950[_0x12e439];return _0x1e96c5;};import{View as _0xe21e23}from'ckeditor5/src/ui';export default class ii extends _0xe21e23{constructor(_0x2afc3b,_0x779b9f,_0xcc4f05,_0x17177e){super(_0x2afc3b),this[_0x1e96('0x12')]=null,this['commentThreadInputView']=null,this[_0x1e96('0x9')](_0x1e96('0x22'),!0x1),this['set'](_0x1e96('0x11'),_0x779b9f[_0x1e96('0x11')]),this[_0x1e96('0x1b')](_0x1e96('0x11'))['to'](_0x779b9f),this[_0x1e96('0x9')](_0x1e96('0xd'),[]),this[_0x1e96('0x9')](_0x1e96('0x1f'),!0x1),this[_0x1e96('0x9')](_0x1e96('0x23'),!0x1),this[_0x1e96('0x9')](_0x1e96('0x15'),!0x1),this[_0x1e96('0x9')](_0x1e96('0x13'),!0x1),this[_0x1e96('0x3')]=_0x779b9f,this[_0x1e96('0xf')]=_0xcc4f05,this[_0x1e96('0x8')]=_0x17177e,_0x17177e['disableComments']?this[_0x1e96('0x9')]('length',0x1):this['_createCommentViews']();}['focus'](){this[_0x1e96('0x7')][_0x1e96('0x16')]();}[_0x1e96('0x25')](){this[_0x1e96('0x12')]&&this[_0x1e96('0x12')][_0x1e96('0x25')](),this[_0x1e96('0xe')]&&this[_0x1e96('0xe')][_0x1e96('0x25')](),super[_0x1e96('0x25')]();}['_createCommentViews'](){const {CommentsListView:_0x7b8032}=this[_0x1e96('0x8')];this[_0x1e96('0x12')]=new _0x7b8032(this[_0x1e96('0x17')],this[_0x1e96('0x3')][_0x1e96('0x5')],Object[_0x1e96('0x24')]({'CommentView':this[_0x1e96('0x8')][_0x1e96('0x10')]},this[_0x1e96('0x8')])),this[_0x1e96('0x12')][_0x1e96('0x18')]('removeComment')['to'](this),this[_0x1e96('0x12')][_0x1e96('0x18')](_0x1e96('0x21'))['to'](this),this[_0x1e96('0x12')]['bind'](_0x1e96('0x22'))['to'](this),this[_0x1e96('0x9')]('length',this[_0x1e96('0x12')][_0x1e96('0x4')]+0x1),this[_0x1e96('0x1b')](_0x1e96('0x4'))['to'](this['commentsListView'],'length',_0x1e8709=>_0x1e8709+0x1),this[_0x1e96('0xe')]=this[_0x1e96('0x1d')](),this['on'](_0x1e96('0xb'),()=>this[_0x1e96('0x16')]()),this[_0x1e96('0x1b')]('isDirty')['to'](this[_0x1e96('0x12')],_0x1e96('0xa'),this[_0x1e96('0xe')][_0x1e96('0x1')],_0x1e96('0x1a'),(_0x2c4259,_0x8bd9ca)=>_0x2c4259||!!_0x8bd9ca);}[_0x1e96('0x1d')](){const {CommentThreadInputView:_0x16a2e3}=this[_0x1e96('0x8')],_0x337ef7=new _0x16a2e3(this[_0x1e96('0x17')],this['_localUser'],this[_0x1e96('0x8')][_0x1e96('0x20')]),_0x76601f=_0x337ef7[_0x1e96('0x1')];return _0x337ef7[_0x1e96('0x1b')](_0x1e96('0x14'))['to'](this,_0x1e96('0x22'),this[_0x1e96('0x3')][_0x1e96('0x5')],_0x1e96('0xc'),_0x76601f,'value',(_0x4523d4,_0x1b78e6,_0xfe91e7)=>!!_0xfe91e7||_0x4523d4&&!_0x1b78e6),_0x76601f['on']('submit',(_0x25d887,_0x54c083)=>{this[_0x1e96('0x1e')](_0x1e96('0x6'),_0x54c083),_0x76601f[_0x1e96('0x0')][_0x1e96('0x2')]('');}),_0x76601f['on'](_0x1e96('0x19'),()=>this[_0x1e96('0x16')]()),_0x76601f['bind'](_0x1e96('0x1c'))['to'](this['_model']['commentThread'],_0x1e96('0xc')),_0x337ef7;}}
23
+ const _0xfee9=['editorConfig','isEnabled','canDiscard','_config','addComment','_model','canAccept','isActive','submit','element','descriptionParts','isReadOnly','destroy','value','hasDirtyComment','focus','cancel','_createCommentViews','commentInputView','bind','_createCommentThreadInputView','editor','updateComment','setData','length','commentThreadInputView','commentThread','disabledSubmit','authoredAt','CommentView','fire','locale','isDirty','_localUser','set','commentsListView'];(function(_0x107af3,_0xfee940){const _0x4e4272=function(_0x28f9de){while(--_0x28f9de){_0x107af3['push'](_0x107af3['shift']());}};_0x4e4272(++_0xfee940);}(_0xfee9,0xa9));const _0x4e42=function(_0x107af3,_0xfee940){_0x107af3=_0x107af3-0x0;let _0x4e4272=_0xfee9[_0x107af3];return _0x4e4272;};import{View as _0x1dced1}from'ckeditor5/src/ui';export default class ii extends _0x1dced1{constructor(_0x2cc495,_0x2c3cb4,_0x49d9f4,_0xa6ef8){super(_0x2cc495),this[_0x4e42('0xa')]=null,this[_0x4e42('0x0')]=null,this[_0x4e42('0x9')](_0x4e42('0x12'),!0x1),this['set'](_0x4e42('0x3'),_0x2c3cb4[_0x4e42('0x3')]),this['bind'](_0x4e42('0x3'))['to'](_0x2c3cb4),this['set'](_0x4e42('0x15'),[]),this['set'](_0x4e42('0x7'),!0x1),this[_0x4e42('0x9')](_0x4e42('0xc'),!0x1),this[_0x4e42('0x9')](_0x4e42('0x11'),!0x1),this['set'](_0x4e42('0xd'),!0x1),this[_0x4e42('0x10')]=_0x2c3cb4,this[_0x4e42('0x8')]=_0x49d9f4,this['_config']=_0xa6ef8,_0xa6ef8['disableComments']?this[_0x4e42('0x9')]('length',0x1):this[_0x4e42('0x1c')]();}['focus'](){this[_0x4e42('0x14')]['focus']();}['destroy'](){this[_0x4e42('0xa')]&&this['commentsListView']['destroy'](),this[_0x4e42('0x0')]&&this[_0x4e42('0x0')][_0x4e42('0x17')](),super['destroy']();}[_0x4e42('0x1c')](){const {CommentsListView:_0x58406c}=this[_0x4e42('0xe')];this[_0x4e42('0xa')]=new _0x58406c(this[_0x4e42('0x6')],this[_0x4e42('0x10')][_0x4e42('0x1')],Object['assign']({'CommentView':this['_config'][_0x4e42('0x4')]},this[_0x4e42('0xe')])),this[_0x4e42('0xa')]['delegate']('removeComment')['to'](this),this[_0x4e42('0xa')]['delegate'](_0x4e42('0x21'))['to'](this),this[_0x4e42('0xa')][_0x4e42('0x1e')](_0x4e42('0x12'))['to'](this),this[_0x4e42('0x9')](_0x4e42('0x23'),this[_0x4e42('0xa')][_0x4e42('0x23')]+0x1),this[_0x4e42('0x1e')](_0x4e42('0x23'))['to'](this[_0x4e42('0xa')],_0x4e42('0x23'),_0xba5d50=>_0xba5d50+0x1),this['commentThreadInputView']=this[_0x4e42('0x1f')](),this['on']('removeComment',()=>this[_0x4e42('0x1a')]()),this[_0x4e42('0x1e')](_0x4e42('0x7'))['to'](this['commentsListView'],_0x4e42('0x19'),this['commentThreadInputView'][_0x4e42('0x1d')],_0x4e42('0x18'),(_0x58e75a,_0x4e1070)=>_0x58e75a||!!_0x4e1070);}[_0x4e42('0x1f')](){const {CommentThreadInputView:_0x38d972}=this[_0x4e42('0xe')],_0x473183=new _0x38d972(this[_0x4e42('0x6')],this['_localUser'],this[_0x4e42('0xe')][_0x4e42('0xb')]),_0x935558=_0x473183[_0x4e42('0x1d')];return _0x473183[_0x4e42('0x1e')]('showInput')['to'](this,_0x4e42('0x12'),this[_0x4e42('0x10')]['commentThread'],_0x4e42('0x16'),_0x935558,'value',(_0x1cf6bd,_0x4b2ed9,_0x18a123)=>!!_0x18a123||_0x1cf6bd&&!_0x4b2ed9),_0x935558['on'](_0x4e42('0x13'),(_0xfee066,_0x1345f2)=>{this[_0x4e42('0x5')](_0x4e42('0xf'),_0x1345f2),_0x935558[_0x4e42('0x20')][_0x4e42('0x22')]('');}),_0x935558['on'](_0x4e42('0x1b'),()=>this[_0x4e42('0x1a')]()),_0x935558[_0x4e42('0x1e')](_0x4e42('0x2'))['to'](this[_0x4e42('0x10')][_0x4e42('0x1')],'isReadOnly'),_0x473183;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f42=['source','@external','span','value','discardButton','commentThread','attributes','delegate','ck-suggestion-wrapper--active','innerText','isExternal','formatDateTime','\x22></span>','ck-suggestion__user','content','ck-comment__external','setTemplate','importWord','render','extendTemplate','locale','createElement','Accept\x20suggestion','change:description','ck-suggestion','isActive','_createButton','_model','ck-annotation__main','EXTERNAL_SUGGESTION','ck-annotation__info-name','ck-suggestion__actions','push','getUserViewNotificationText','EXTERNAL_IMPORT_WORD_SUGGESTION','Discard\x20suggestion','EXTERNAL_AVATAR','time','commentThreadInputView','innerHTML','ck-annotation','disableComments','acceptSuggestion','ck-suggestion-','ck-suggestion__info-name','getExternalSuggestionNote','ck-suggestion-wrapper','div','canAccept','bind','isEnabled','color','map','bindTemplate','acceptButton','discardSuggestion','<p>','_descriptionElement','_config','name','</p>','editorReady','authoredAt','execute','ck-annotation__content-wrapper','</span>','set','editorDestroyed','fire','author','ck-annotation__actions','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','commentsListView','descriptionParts','userView','description','ck-suggestion--discard','getTemplate','ck-annotation__user','type'];(function(_0x283a12,_0x5f4222){const _0x10a3e7=function(_0x179534){while(--_0x179534){_0x283a12['push'](_0x283a12['shift']());}};_0x10a3e7(++_0x5f4222);}(_0x5f42,0x10d));const _0x10a3=function(_0x283a12,_0x5f4222){_0x283a12=_0x283a12-0x0;let _0x10a3e7=_0x5f42[_0x283a12];return _0x10a3e7;};import{getTranslation as _0x2f3217}from'../../utils/common-translations';import{default as _0x231b35}from'./basesuggestionthreadview';import{ButtonView as _0x4d72f4}from'ckeditor5/src/ui';import{icons as _0x442a22}from'ckeditor5/src/core';import{trimHtml as _0x34ae1c,UserView as _0x304142}from'ckeditor5-collaboration/src/collaboration-core';export default class zt extends _0x231b35{constructor(_0x18230e,_0x4c6f83,_0x13d33d,_0x5ccfa8){super(_0x18230e,_0x4c6f83,_0x13d33d,_0x5ccfa8),this[_0x10a3('0x25')](_0x10a3('0x32'),''),this[_0x10a3('0x14')](_0x10a3('0x32'))['to'](this,_0x10a3('0x2c'),_0x2697a1=>_0x2697a1&&_0x2697a1[0x0]?_0x2697a1[0x0]['type']:''),this[_0x10a3('0x14')](_0x10a3('0x2e'))['to'](this,_0x10a3('0x2c'),this,_0x10a3('0x4c'),(_0xf70cc7,_0x5c4c82)=>{let _0x335542='';for(const _0x1ca0a6 of _0xf70cc7)_0x335542+=_0x10a3('0x1b')+ai(_0x1ca0a6[_0x10a3('0x41')],_0x1ca0a6[_0x10a3('0x16')])+_0x10a3('0x1f');return _0x5c4c82?_0x335542:_0x34ae1c(_0x335542,{'limit':0x8c});}),this[_0x10a3('0x1c')]=null,this[_0x10a3('0x19')]=this[_0x10a3('0x4d')](_0x2f3217(_0x18230e,_0x10a3('0x49')),_0x442a22['check'],'ck-suggestion--accept',_0x10a3('0xd'),'sw'),this['acceptButton'][_0x10a3('0x14')](_0x10a3('0x15'))['to'](this,_0x10a3('0x13')),this[_0x10a3('0x37')]=this['_createButton'](_0x2f3217(_0x18230e,_0x10a3('0x6')),_0x442a22['cancel'],_0x10a3('0x2f'),_0x10a3('0x1a'),'sw'),this[_0x10a3('0x37')][_0x10a3('0x14')](_0x10a3('0x15'))['to'](this,'canDiscard'),this[_0x10a3('0x2d')]=new _0x304142(_0x18230e,this[_0x10a3('0x4e')][_0x10a3('0x28')],this[_0x10a3('0x4')]()),this[_0x10a3('0x2d')]['extendTemplate']({'attributes':{'class':[_0x10a3('0x40'),_0x10a3('0x31')]}}),this[_0x10a3('0x43')](this[_0x10a3('0x30')]());}[_0x10a3('0x30')](){const _0x2ecd6c=this[_0x10a3('0x18')],_0x11062a=[{'tag':_0x10a3('0x12'),'attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':_0x10a3('0x35'),'children':[{'text':this[_0x10a3('0x2d')][_0x10a3('0x1e')]}],'attributes':{'class':[_0x10a3('0xf'),_0x10a3('0x1')]}},{'tag':_0x10a3('0x8'),'attributes':{'datetime':_0x2ecd6c['to'](_0x10a3('0x21')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ecd6c['to'](_0x10a3('0x21'),_0x158723=>this['_config'][_0x10a3('0x3e')](_0x158723))}]}]},{'tag':_0x10a3('0x12'),'attributes':{'class':[_0x10a3('0x2'),_0x10a3('0x29')]},'children':[this['acceptButton'],this[_0x10a3('0x37')]]},{'tag':_0x10a3('0x12'),'attributes':{'class':[_0x10a3('0x23')]}}];this[_0x10a3('0x4e')][_0x10a3('0x3d')]&&_0x11062a[_0x10a3('0x3')]({'tag':_0x10a3('0x12'),'attributes':{'class':[_0x10a3('0x42')]},'children':[{'text':this[_0x10a3('0x10')]()}]});const _0x587c24={'tag':_0x10a3('0x12'),'attributes':{'class':[_0x10a3('0x11'),_0x2ecd6c['if'](_0x10a3('0x4c'),_0x10a3('0x3b')),_0x2ecd6c['to'](_0x10a3('0x32'),_0x5f3a4f=>_0x10a3('0xe')+_0x5f3a4f),this[_0x10a3('0x1d')][_0x10a3('0xc')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0x10a3('0x4e')]['id'],'data-thread-id':this[_0x10a3('0x4e')][_0x10a3('0x38')]['id'],'data-author-id':this[_0x10a3('0x4e')][_0x10a3('0x28')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x10a3('0x4b'),_0x10a3('0xb')]},'children':[this['userView'],{'tag':_0x10a3('0x12'),'attributes':{'class':['ck-suggestion__main',_0x10a3('0x4f')]},'children':_0x11062a}]}]};return this[_0x10a3('0x2b')]&&this[_0x10a3('0x9')]&&(_0x587c24['children'][_0x10a3('0x3')](this['commentsListView'],this[_0x10a3('0x9')]),this[_0x10a3('0x2b')]['delegate'](_0x10a3('0x20'))['to'](this),this['commentsListView'][_0x10a3('0x3a')](_0x10a3('0x26'))['to'](this),this[_0x10a3('0x9')][_0x10a3('0x3a')](_0x10a3('0x20'))['to'](this),this[_0x10a3('0x9')][_0x10a3('0x3a')](_0x10a3('0x26'))['to'](this)),_0x587c24;}[_0x10a3('0x45')](){super[_0x10a3('0x45')](),this[_0x10a3('0x1c')]=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement'][_0x10a3('0xa')]=this[_0x10a3('0x2e')],this['on'](_0x10a3('0x4a'),(_0x458c11,_0x4ee348,_0x10320a)=>{this['_descriptionElement'][_0x10a3('0xa')]=_0x10320a;});}[_0x10a3('0x4d')](_0x5ed645,_0x3e6bde,_0x4ec317,_0x386d5f,_0x422ece){const _0xe8897c=new _0x4d72f4(this[_0x10a3('0x47')]);return _0xe8897c[_0x10a3('0x25')]({'label':_0x5ed645,'icon':_0x3e6bde,'tooltip':!0x0,'tooltipPosition':_0x422ece}),_0xe8897c[_0x10a3('0x46')]({'attributes':{'class':_0x4ec317}}),_0xe8897c['on'](_0x10a3('0x22'),()=>{this[_0x10a3('0x27')](_0x386d5f,this[_0x10a3('0x4e')]['id']);}),_0xe8897c;}[_0x10a3('0x10')](){return _0x10a3('0x44')===this[_0x10a3('0x4e')][_0x10a3('0x39')][_0x10a3('0x34')]['source']?_0x2f3217(this['locale'],_0x10a3('0x5')):_0x2f3217(this[_0x10a3('0x47')],_0x10a3('0x0'));}[_0x10a3('0x4')](){return this[_0x10a3('0x4e')][_0x10a3('0x3d')]?_0x10a3('0x44')===this[_0x10a3('0x4e')][_0x10a3('0x39')][_0x10a3('0x34')][_0x10a3('0x33')]?_0x2f3217(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x10a3('0x4e')]['creator'][_0x10a3('0x1e')]):_0x2f3217(this[_0x10a3('0x47')],_0x10a3('0x7'),this[_0x10a3('0x4e')]['creator'][_0x10a3('0x1e')]):null;}}function ai(_0x5f4bb2,_0x3c51b9){let _0x178cbd='';return _0x178cbd+=_0x5f4bb2['split']('*')[_0x10a3('0x17')]((_0x210734,_0x1d3309)=>_0x1d3309%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+ci(_0x210734)+_0x10a3('0x24'):ci(_0x210734))['join'](''),_0x3c51b9&&(_0x178cbd+=_0x10a3('0x2a')+_0x3c51b9[_0x10a3('0x36')]+'\x22\x20title=\x22'+_0x3c51b9['title']+_0x10a3('0x3f')),_0x178cbd;}function ci(_0x5b9e49){const _0x248315=document[_0x10a3('0x48')](_0x10a3('0x35'));return _0x248315[_0x10a3('0x3c')]=_0x5b9e49,_0x248315['innerHTML'];}
23
+ const _0x3e79=['isExternal','commentThread','ck-suggestion-','</p>','commentsListView','_config','source','ck-annotation__info-name','canAccept','_descriptionElement','ck-suggestion__user','editorDestroyed','importWord','EXTERNAL_AVATAR','children','_model','ck-suggestion__info-name','ck-suggestion-wrapper','ck-suggestion-wrapper--active','setTemplate','bind','change:description','check','descriptionParts','type','delegate','ck-annotation__info','ck-suggestion--disabled-comments','description','.ck-annotation__content-wrapper','value','author','color','EXTERNAL_IMPORT_WORD_SUGGESTION','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','acceptSuggestion','push','creator','name','ck-annotation','_createButton','authoredAt','innerHTML','ck-annotation__user','getExternalSuggestionNote','getUserViewNotificationText','ck-suggestion__actions','ck-annotation__main','ck-comment__external','<span\x20class=\x22ck-suggestion-type\x22>','commentThreadInputView','Discard\x20suggestion','set','getTemplate','\x22\x20title=\x22','extendTemplate','userView','\x22></span>','ck-suggestion--accept','ck-annotation__content-wrapper','ck-suggestion','ck-annotation__info-time','render','bindTemplate','formatDateTime','attributes','cancel','ck-suggestion--discard','isEnabled','join','disableComments','editorReady','Accept\x20suggestion','execute','span','@external','locale','div','EXTERNAL_SUGGESTION','ck-comment__info-time','</span>','EXTERNAL_IMPORT_WORD_AVATAR','<p>','time','acceptButton'];(function(_0x5e534e,_0x3e7906){const _0x2ae43a=function(_0x378bb9){while(--_0x378bb9){_0x5e534e['push'](_0x5e534e['shift']());}};_0x2ae43a(++_0x3e7906);}(_0x3e79,0x1f0));const _0x2ae4=function(_0x5e534e,_0x3e7906){_0x5e534e=_0x5e534e-0x0;let _0x2ae43a=_0x3e79[_0x5e534e];return _0x2ae43a;};import{getTranslation as _0x59a205}from'../../utils/common-translations';import{default as _0x55318f}from'./basesuggestionthreadview';import{ButtonView as _0x530fc7}from'ckeditor5/src/ui';import{icons as _0x2be17c}from'ckeditor5/src/core';import{trimHtml as _0x568509,UserView as _0x306f5a}from'ckeditor5-collaboration/src/collaboration-core';export default class Gt extends _0x55318f{constructor(_0x90ae08,_0x114ecb,_0xa63fc6,_0x71c76d){super(_0x90ae08,_0x114ecb,_0xa63fc6,_0x71c76d),this[_0x2ae4('0x42')]('type',''),this[_0x2ae4('0x22')](_0x2ae4('0x26'))['to'](this,_0x2ae4('0x25'),_0x26e1c4=>_0x26e1c4&&_0x26e1c4[0x0]?_0x26e1c4[0x0][_0x2ae4('0x26')]:''),this[_0x2ae4('0x22')](_0x2ae4('0x2a'))['to'](this,'descriptionParts',this,'isActive',(_0x376211,_0x3604d5)=>{let _0x4c4bfa='';for(const _0xe6eb27 of _0x376211)_0x4c4bfa+=_0x2ae4('0xb')+ai(_0xe6eb27['content'],_0xe6eb27[_0x2ae4('0x2e')])+_0x2ae4('0x11');return _0x3604d5?_0x4c4bfa:_0x568509(_0x4c4bfa,{'limit':0x8c});}),this[_0x2ae4('0x17')]=null,this[_0x2ae4('0xd')]=this[_0x2ae4('0x36')](_0x59a205(_0x90ae08,_0x2ae4('0x1')),_0x2be17c[_0x2ae4('0x24')],_0x2ae4('0x48'),_0x2ae4('0x31'),'sw'),this['acceptButton'][_0x2ae4('0x22')](_0x2ae4('0x52'))['to'](this,_0x2ae4('0x16')),this['discardButton']=this['_createButton'](_0x59a205(_0x90ae08,_0x2ae4('0x41')),_0x2be17c[_0x2ae4('0x50')],_0x2ae4('0x51'),'discardSuggestion','sw'),this['discardButton'][_0x2ae4('0x22')](_0x2ae4('0x52'))['to'](this,'canDiscard'),this[_0x2ae4('0x46')]=new _0x306f5a(_0x90ae08,this[_0x2ae4('0x1d')][_0x2ae4('0x2d')],this[_0x2ae4('0x3b')]()),this[_0x2ae4('0x46')][_0x2ae4('0x45')]({'attributes':{'class':[_0x2ae4('0x18'),_0x2ae4('0x39')]}}),this[_0x2ae4('0x21')](this[_0x2ae4('0x43')]());}[_0x2ae4('0x43')](){const _0x1c5232=this[_0x2ae4('0x4d')],_0x34e396=[{'tag':_0x2ae4('0x6'),'attributes':{'class':['ck-suggestion__info',_0x2ae4('0x28')]},'children':[{'tag':_0x2ae4('0x3'),'children':[{'text':this[_0x2ae4('0x46')][_0x2ae4('0x34')]}],'attributes':{'class':[_0x2ae4('0x1e'),_0x2ae4('0x15')]}},{'tag':_0x2ae4('0xc'),'attributes':{'datetime':_0x1c5232['to']('authoredAt'),'class':[_0x2ae4('0x8'),_0x2ae4('0x4b')]},'children':[{'text':_0x1c5232['to'](_0x2ae4('0x37'),_0x3034b4=>this[_0x2ae4('0x13')][_0x2ae4('0x4e')](_0x3034b4))}]}]},{'tag':_0x2ae4('0x6'),'attributes':{'class':[_0x2ae4('0x3c'),'ck-annotation__actions']},'children':[this[_0x2ae4('0xd')],this['discardButton']]},{'tag':_0x2ae4('0x6'),'attributes':{'class':[_0x2ae4('0x49')]}}];this['_model'][_0x2ae4('0xe')]&&_0x34e396[_0x2ae4('0x32')]({'tag':_0x2ae4('0x6'),'attributes':{'class':[_0x2ae4('0x3e')]},'children':[{'text':this[_0x2ae4('0x3a')]()}]});const _0x177fa9={'tag':_0x2ae4('0x6'),'attributes':{'class':[_0x2ae4('0x1f'),_0x1c5232['if']('isActive',_0x2ae4('0x20')),_0x1c5232['to'](_0x2ae4('0x26'),_0x2e89f0=>_0x2ae4('0x10')+_0x2e89f0),this['_config'][_0x2ae4('0x54')]&&_0x2ae4('0x29')],'data-suggestion-id':this[_0x2ae4('0x1d')]['id'],'data-thread-id':this['_model'][_0x2ae4('0xf')]['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x2ae4('0x4a'),_0x2ae4('0x35')]},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main',_0x2ae4('0x3d')]},'children':_0x34e396}]}]};return this[_0x2ae4('0x12')]&&this[_0x2ae4('0x40')]&&(_0x177fa9[_0x2ae4('0x1c')][_0x2ae4('0x32')](this[_0x2ae4('0x12')],this[_0x2ae4('0x40')]),this['commentsListView'][_0x2ae4('0x27')](_0x2ae4('0x0'))['to'](this),this['commentsListView']['delegate'](_0x2ae4('0x19'))['to'](this),this[_0x2ae4('0x40')][_0x2ae4('0x27')](_0x2ae4('0x0'))['to'](this),this[_0x2ae4('0x40')][_0x2ae4('0x27')](_0x2ae4('0x19'))['to'](this)),_0x177fa9;}[_0x2ae4('0x4c')](){super[_0x2ae4('0x4c')](),this[_0x2ae4('0x17')]=this['element']['querySelector'](_0x2ae4('0x2b')),this[_0x2ae4('0x17')][_0x2ae4('0x38')]=this['description'],this['on'](_0x2ae4('0x23'),(_0x26e52a,_0x1c6284,_0x78191f)=>{this['_descriptionElement'][_0x2ae4('0x38')]=_0x78191f;});}['_createButton'](_0x12f072,_0x574156,_0x1c48f7,_0x2c098d,_0x33008a){const _0x37c460=new _0x530fc7(this[_0x2ae4('0x5')]);return _0x37c460[_0x2ae4('0x42')]({'label':_0x12f072,'icon':_0x574156,'tooltip':!0x0,'tooltipPosition':_0x33008a}),_0x37c460['extendTemplate']({'attributes':{'class':_0x1c48f7}}),_0x37c460['on'](_0x2ae4('0x2'),()=>{this['fire'](_0x2c098d,this['_model']['id']);}),_0x37c460;}[_0x2ae4('0x3a')](){return _0x2ae4('0x1a')===this[_0x2ae4('0x1d')][_0x2ae4('0x4f')][_0x2ae4('0x4')][_0x2ae4('0x14')]?_0x59a205(this['locale'],_0x2ae4('0x2f')):_0x59a205(this[_0x2ae4('0x5')],_0x2ae4('0x7'));}[_0x2ae4('0x3b')](){return this[_0x2ae4('0x1d')][_0x2ae4('0xe')]?_0x2ae4('0x1a')===this[_0x2ae4('0x1d')][_0x2ae4('0x4f')][_0x2ae4('0x4')][_0x2ae4('0x14')]?_0x59a205(this[_0x2ae4('0x5')],_0x2ae4('0xa'),this[_0x2ae4('0x1d')]['creator']['name']):_0x59a205(this[_0x2ae4('0x5')],_0x2ae4('0x1b'),this[_0x2ae4('0x1d')][_0x2ae4('0x33')][_0x2ae4('0x34')]):null;}}function ai(_0x4395cb,_0xe91ca8){let _0x37c4ac='';return _0x37c4ac+=_0x4395cb['split']('*')['map']((_0x29caee,_0x9c7f5b)=>_0x9c7f5b%0x2!=0x0?_0x2ae4('0x3f')+ci(_0x29caee)+_0x2ae4('0x9'):ci(_0x29caee))[_0x2ae4('0x53')](''),_0xe91ca8&&(_0x37c4ac+=_0x2ae4('0x30')+_0xe91ca8[_0x2ae4('0x2c')]+_0x2ae4('0x44')+_0xe91ca8['title']+_0x2ae4('0x47')),_0x37c4ac;}function ci(_0x5e7431){const _0x41226a=document['createElement'](_0x2ae4('0x3'));return _0x41226a['innerText']=_0x5e7431,_0x41226a[_0x2ae4('0x38')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4e28fd,_0x5547c2,_0x5f264d){const t=_0x4e28fd['t'];switch(_0x5547c2){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',_0x5f264d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f264d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f264d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f264d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f264d);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',_0x5f264d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f264d);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',_0x5f264d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f264d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f264d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f264d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f264d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f264d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f264d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f264d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f264d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f264d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f264d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f264d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f264d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f264d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f264d);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'},_0x5f264d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f264d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f264d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f264d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f264d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f264d);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'},_0x5f264d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f264d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f264d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f264d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f264d);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'},_0x5f264d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f264d);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'},_0x5f264d);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'},_0x5f264d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f264d);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'},_0x5f264d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f264d);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'},_0x5f264d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f264d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f264d);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'},_0x5f264d);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'},_0x5f264d);default:return _0x5547c2;}}
23
+ export function getTranslation(_0x21fdc0,_0x361281,_0x6e852b){const t=_0x21fdc0['t'];switch(_0x361281){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',_0x6e852b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x6e852b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x6e852b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x6e852b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x6e852b);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',_0x6e852b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x6e852b);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',_0x6e852b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x6e852b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x6e852b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x6e852b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x6e852b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x6e852b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x6e852b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x6e852b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x6e852b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x6e852b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x6e852b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x6e852b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x6e852b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x6e852b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x6e852b);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'},_0x6e852b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x6e852b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x6e852b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x6e852b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x6e852b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x6e852b);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'},_0x6e852b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x6e852b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x6e852b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x6e852b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x6e852b);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'},_0x6e852b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x6e852b);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'},_0x6e852b);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'},_0x6e852b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x6e852b);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'},_0x6e852b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x6e852b);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'},_0x6e852b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x6e852b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x6e852b);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'},_0x6e852b);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'},_0x6e852b);default:return _0x361281;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3226=['change','getRanges','isTouching','value','content','\x20[color\x20','end','type','deletion','map','isMultiRange','isArray','replace','splice','start','createPositionBefore','isCollapsed','isInContent','createRange','color','createPositionAfter','createPositionAt'];(function(_0x2fab36,_0x3226ad){const _0x643534=function(_0x2eaf6f){while(--_0x2eaf6f){_0x2fab36['push'](_0x2fab36['shift']());}};_0x643534(++_0x3226ad);}(_0x3226,0x12c));const _0x6435=function(_0x2fab36,_0x3226ad){_0x2fab36=_0x2fab36-0x0;let _0x643534=_0x3226[_0x2fab36];return _0x643534;};export function normalizeDescription(_0x17fc03){return Array[_0x6435('0x13')](_0x17fc03)||(_0x17fc03=[_0x17fc03]),_0x17fc03[_0x6435('0x11')](_0x4c877e=>{const _0x1fc044=_0x4c877e[_0x6435('0xc')][_0x6435('0x14')](/\*/g,''),_0x14501b=_0x4c877e[_0x6435('0x5')]?_0x6435('0xd')+_0x4c877e[_0x6435('0x5')][_0x6435('0xb')]+']':'';return'['+_0x4c877e[_0x6435('0xf')]+']\x20'+_0x1fc044+_0x14501b;})['join'](';\x20');}export function sortSuggestions(_0x481aaa){return _0x481aaa['sort']((_0x10d9f6,_0x1558a9)=>_0x6435('0x10')==_0x10d9f6[_0x6435('0xf')]&&_0x6435('0x10')!=_0x1558a9[_0x6435('0xf')]?-0x1:_0x6435('0x10')!=_0x10d9f6[_0x6435('0xf')]&&_0x6435('0x10')==_0x1558a9[_0x6435('0xf')]?0x1:0x0);}export function getSelectedSuggestions(_0x432cfa,_0x180bbe){const _0x592de2=Array['from'](_0x432cfa[_0x6435('0x9')]()),_0x29004c=new Set();for(const _0x215283 of _0x180bbe)if(_0x215283[_0x6435('0x3')])for(const _0x5ebd21 of _0x592de2)for(const _0xe33c06 of _0x215283['getMarkers']()){const _0x4f548c=_0xe33c06['getRange']();(_0x5ebd21['isIntersecting'](_0x4f548c)||_0x432cfa[_0x6435('0x2')]&&!_0x215283[_0x6435('0x12')]&&_0x215283['next']&&_0x4f548c[_0x6435('0xe')][_0x6435('0xa')](_0x5ebd21[_0x6435('0x0')]))&&_0x29004c['add'](_0x215283);}return _0x29004c;}export function getRangesOfBlockGroups(_0x50de69,_0x201eed){let _0x307ded,_0x22c02d=0x0;const _0x416be6=[],_0x4c673e=_0x201eed['schema'];for(;_0x22c02d<_0x50de69['length'];){const _0x9559b2=_0x50de69[_0x22c02d],_0x8f939a=_0x50de69[_0x22c02d+0x1];_0x307ded||(_0x307ded=_0x201eed[_0x6435('0x1')](_0x9559b2)),co(_0x201eed,_0x9559b2,_0x8f939a)||(_0x416be6['push'](_0x201eed[_0x6435('0x4')](_0x307ded,_0x4c673e['isObject'](_0x9559b2)?_0x201eed[_0x6435('0x6')](_0x9559b2):_0x201eed[_0x6435('0x7')](_0x9559b2,_0x6435('0xe')))),_0x307ded=null),_0x22c02d++;}return _0x416be6;}function co(_0x112f64,_0x167b54,_0x956a53){if(!_0x956a53)return!0x1;const _0x5ddf86=_0x112f64[_0x6435('0x6')](_0x167b54),_0x4fe68d=_0x112f64['createPositionBefore'](_0x956a53);return _0x5ddf86['isTouching'](_0x4fe68d);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x4fddd1,_0x3ba8a3,_0x5523e3){for(;_0x5523e3['length'];){const _0x505efb=_0x5523e3[_0x6435('0x15')](0x0,0x64);_0x4fddd1[_0x6435('0x8')](()=>{for(const _0x326791 of _0x505efb)_0x326791['isInContent']&&_0x3ba8a3['execute'](_0x326791['id']);});}}
23
+ const _0x422c=['deletion','schema','length','from','value','splice','createPositionAfter','color','createRange','getRanges','createPositionBefore','execute','isArray','map','content','createPositionAt','isInContent','end','isTouching','type','replace','start','isIntersecting'];(function(_0x4399aa,_0x422c15){const _0x4f786f=function(_0x5ad25f){while(--_0x5ad25f){_0x4399aa['push'](_0x4399aa['shift']());}};_0x4f786f(++_0x422c15);}(_0x422c,0x180));const _0x4f78=function(_0x4399aa,_0x422c15){_0x4399aa=_0x4399aa-0x0;let _0x4f786f=_0x422c[_0x4399aa];return _0x4f786f;};export function normalizeDescription(_0x32d266){return Array[_0x4f78('0x13')](_0x32d266)||(_0x32d266=[_0x32d266]),_0x32d266[_0x4f78('0x14')](_0x577dab=>{const _0xf2aea9=_0x577dab[_0x4f78('0x15')][_0x4f78('0x4')](/\*/g,''),_0x728ecd=_0x577dab[_0x4f78('0xe')]?'\x20[color\x20'+_0x577dab[_0x4f78('0xe')][_0x4f78('0xb')]+']':'';return'['+_0x577dab[_0x4f78('0x3')]+']\x20'+_0xf2aea9+_0x728ecd;})['join'](';\x20');}export function sortSuggestions(_0x3070c9){return _0x3070c9['sort']((_0x566f96,_0x4bb2ab)=>_0x4f78('0x7')==_0x566f96['type']&&_0x4f78('0x7')!=_0x4bb2ab[_0x4f78('0x3')]?-0x1:_0x4f78('0x7')!=_0x566f96['type']&&_0x4f78('0x7')==_0x4bb2ab[_0x4f78('0x3')]?0x1:0x0);}export function getSelectedSuggestions(_0x526042,_0x1bd8fc){const _0x96bcf2=Array[_0x4f78('0xa')](_0x526042[_0x4f78('0x10')]()),_0x1a985a=new Set();for(const _0x17bd1f of _0x1bd8fc)if(_0x17bd1f['isInContent'])for(const _0x5eab95 of _0x96bcf2)for(const _0x3c878c of _0x17bd1f[_0x4f78('0x10')]())(_0x5eab95[_0x4f78('0x6')](_0x3c878c)||_0x526042['isCollapsed']&&!_0x17bd1f['isMultiRange']&&_0x17bd1f['next']&&_0x3c878c['end']['isTouching'](_0x5eab95[_0x4f78('0x5')]))&&_0x1a985a['add'](_0x17bd1f);return _0x1a985a;}export function getRangesOfBlockGroups(_0x34602d,_0x402e95){let _0x4c6cb8,_0x1fcd0e=0x0;const _0x217a9c=[],_0x4ab5fe=_0x402e95[_0x4f78('0x8')];for(;_0x1fcd0e<_0x34602d[_0x4f78('0x9')];){const _0x50a8cb=_0x34602d[_0x1fcd0e],_0x2e1bdd=_0x34602d[_0x1fcd0e+0x1];_0x4c6cb8||(_0x4c6cb8=_0x402e95[_0x4f78('0x11')](_0x50a8cb)),so(_0x402e95,_0x50a8cb,_0x2e1bdd)||(_0x217a9c['push'](_0x402e95[_0x4f78('0xf')](_0x4c6cb8,_0x4ab5fe['isObject'](_0x50a8cb)?_0x402e95[_0x4f78('0xd')](_0x50a8cb):_0x402e95[_0x4f78('0x16')](_0x50a8cb,_0x4f78('0x1')))),_0x4c6cb8=null),_0x1fcd0e++;}return _0x217a9c;}function so(_0x1a141b,_0x1fd684,_0x4e5d61){if(!_0x4e5d61)return!0x1;const _0x2ac695=_0x1a141b[_0x4f78('0xd')](_0x1fd684),_0x2041fd=_0x1a141b['createPositionBefore'](_0x4e5d61);return _0x2ac695[_0x4f78('0x2')](_0x2041fd);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x17272e,_0x238f89,_0xb3989a){for(;_0xb3989a[_0x4f78('0x9')];){const _0x4c39cb=_0xb3989a[_0x4f78('0xc')](0x0,0x64);_0x17272e['change'](()=>{for(const _0x5b6053 of _0x4c39cb)_0x5b6053[_0x4f78('0x0')]&&_0x238f89[_0x4f78('0x12')](_0x5b6053['id']);});}}