@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231114.0 → 0.0.0-nightly-20231116.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 (159) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sq.js +1 -1
  37. package/build/translations/sr-latn.js +1 -1
  38. package/build/translations/sr.js +1 -1
  39. package/build/translations/sv.js +1 -1
  40. package/build/translations/th.js +1 -1
  41. package/build/translations/tk.js +1 -1
  42. package/build/translations/tr.js +1 -1
  43. package/build/translations/tt.js +1 -1
  44. package/build/translations/uk.js +1 -1
  45. package/build/translations/ur.js +1 -1
  46. package/build/translations/vi.js +1 -1
  47. package/build/translations/zh-cn.js +1 -1
  48. package/build/translations/zh.js +1 -1
  49. package/lang/contexts.json +3 -3
  50. package/lang/translations/ar.po +19 -19
  51. package/lang/translations/bg.po +19 -19
  52. package/lang/translations/bn.po +19 -19
  53. package/lang/translations/ca.po +19 -19
  54. package/lang/translations/cs.po +19 -19
  55. package/lang/translations/da.po +19 -19
  56. package/lang/translations/de.po +19 -19
  57. package/lang/translations/el.po +19 -19
  58. package/lang/translations/es.po +19 -19
  59. package/lang/translations/et.po +19 -19
  60. package/lang/translations/fi.po +19 -19
  61. package/lang/translations/fr.po +19 -19
  62. package/lang/translations/he.po +19 -19
  63. package/lang/translations/hi.po +19 -19
  64. package/lang/translations/hu.po +19 -19
  65. package/lang/translations/id.po +19 -19
  66. package/lang/translations/it.po +19 -19
  67. package/lang/translations/ja.po +19 -19
  68. package/lang/translations/ko.po +19 -19
  69. package/lang/translations/lt.po +19 -19
  70. package/lang/translations/lv.po +19 -19
  71. package/lang/translations/ms.po +19 -19
  72. package/lang/translations/nl.po +19 -19
  73. package/lang/translations/no.po +19 -19
  74. package/lang/translations/pl.po +19 -19
  75. package/lang/translations/pt-br.po +19 -19
  76. package/lang/translations/pt.po +19 -19
  77. package/lang/translations/ro.po +19 -19
  78. package/lang/translations/ru.po +19 -19
  79. package/lang/translations/sk.po +19 -19
  80. package/lang/translations/sr.po +19 -19
  81. package/lang/translations/sv.po +19 -19
  82. package/lang/translations/th.po +19 -19
  83. package/lang/translations/tr.po +19 -19
  84. package/lang/translations/uk.po +19 -19
  85. package/lang/translations/vi.po +19 -19
  86. package/lang/translations/zh-cn.po +19 -19
  87. package/lang/translations/zh.po +19 -19
  88. package/package.json +3 -3
  89. package/src/commands/acceptsuggestioncommand.js +1 -1
  90. package/src/commands/discardsuggestioncommand.js +1 -1
  91. package/src/commands/executeonallsuggestionscommand.js +1 -1
  92. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  93. package/src/commands/trackchangescommand.js +1 -1
  94. package/src/index.d.ts +1 -1
  95. package/src/integrations/aiassistant.js +1 -1
  96. package/src/integrations/alignment.js +1 -1
  97. package/src/integrations/basicstyles.js +1 -1
  98. package/src/integrations/blockquote.js +1 -1
  99. package/src/integrations/ckbox.js +1 -1
  100. package/src/integrations/codeblock.js +1 -1
  101. package/src/integrations/comments.js +1 -1
  102. package/src/integrations/deletecommand.js +1 -1
  103. package/src/integrations/documentlist.js +1 -1
  104. package/src/integrations/documentlistproperties.js +1 -1
  105. package/src/integrations/entercommand.js +1 -1
  106. package/src/integrations/findandreplace.js +1 -1
  107. package/src/integrations/font.js +1 -1
  108. package/src/integrations/formatpainter.js +1 -1
  109. package/src/integrations/heading.js +1 -1
  110. package/src/integrations/highlight.js +1 -1
  111. package/src/integrations/horizontalline.js +1 -1
  112. package/src/integrations/htmlembed.js +1 -1
  113. package/src/integrations/image.js +1 -1
  114. package/src/integrations/imagereplace.js +1 -1
  115. package/src/integrations/imagestyle.js +1 -1
  116. package/src/integrations/importword.js +1 -1
  117. package/src/integrations/indent.js +1 -1
  118. package/src/integrations/inputcommand.js +1 -1
  119. package/src/integrations/link.js +1 -1
  120. package/src/integrations/list.js +1 -1
  121. package/src/integrations/listproperties.js +1 -1
  122. package/src/integrations/mediaembed.js +1 -1
  123. package/src/integrations/mention.js +1 -1
  124. package/src/integrations/pagebreak.js +1 -1
  125. package/src/integrations/paragraph.js +1 -1
  126. package/src/integrations/removeformat.js +1 -1
  127. package/src/integrations/restrictededitingmode.js +1 -1
  128. package/src/integrations/shiftentercommand.js +1 -1
  129. package/src/integrations/standardeditingmode.js +1 -1
  130. package/src/integrations/style.d.ts +0 -1
  131. package/src/integrations/style.js +1 -1
  132. package/src/integrations/table.js +1 -1
  133. package/src/integrations/tablecaption.js +1 -1
  134. package/src/integrations/tableclipboard.js +1 -1
  135. package/src/integrations/tablecolumnresize.js +1 -1
  136. package/src/integrations/tableheadings.js +1 -1
  137. package/src/integrations/tablemergesplit.js +1 -1
  138. package/src/integrations/tableofcontents.js +1 -1
  139. package/src/integrations/tableproperties.js +1 -1
  140. package/src/integrations/template.js +1 -1
  141. package/src/integrations/title.js +1 -1
  142. package/src/integrations/undo.js +1 -1
  143. package/src/integrations/utils.js +1 -1
  144. package/src/suggestion.js +1 -1
  145. package/src/suggestiondescriptionfactory.d.ts +7 -4
  146. package/src/suggestiondescriptionfactory.js +1 -1
  147. package/src/trackchanges.d.ts +0 -67
  148. package/src/trackchanges.js +1 -1
  149. package/src/trackchangesconfig.d.ts +22 -19
  150. package/src/trackchangesdata.js +1 -1
  151. package/src/trackchangesediting.d.ts +14 -23
  152. package/src/trackchangesediting.js +1 -1
  153. package/src/trackchangesui.js +1 -1
  154. package/src/ui/suggestioncontroller.js +1 -1
  155. package/src/ui/view/basesuggestionthreadview.js +1 -1
  156. package/src/ui/view/suggestionthreadview.d.ts +1 -1
  157. package/src/ui/view/suggestionthreadview.js +1 -1
  158. package/src/utils/common-translations.js +1 -1
  159. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7a23=['unbind','head','getByInnerView','change:previous','Track\x20changes','acceptSelectedSuggestions','createAnnotation','suggestionLoaded','arrowView','discardAllSuggestions','CommentView','activeAnnotations','_initializeController','separator','focus','Discard\x20all\x20suggestions','innerView','getJoined','SuggestionThreadView','comments.maxCommentCharsWhenCollapsed','editor','CommentsRepository','toMany','Accept\x20all\x20selected\x20suggestions','push','_refreshActiveMarkers','getDescriptions','_annotationViews','plugins','_unbindEditors','commandName','CommentsUI','suggestionChanged','_destroyController','execute','get','getSuggestion','_viewToController','isInContent','_handleControllerBuffer','_suggestionToController','_descriptionFactory','from','commentThread','values','remove','value','Discard\x20all\x20selected\x20suggestions','discardSelectedSuggestions','_handleSuggestionControllerDelayed','comments.maxThreadTotalWeight','getMarkers','listenTo','isEnabled','buttonView','refreshSelectedViews','_updateController','lowest','suggestionUnloaded','descriptionParts','view','trackChanges.disableComments','comments.maxCommentsWhenCollapsed','size','keys','has','Annotations','define','commands','type','EditorAnnotations','comments','destroy','suggestion-','filter','addComment','isDirty','model','pluginName','discardButton','isMultiRange','registerAnnotation','createAnnotationView','comments.editorConfig','length','_disableComments','mainView','_bindAnnotationToEditors','actionView','getMarkerNames','button','add','trackChanges','some','isOn','_createUIButton','stopListening','activeMarkers','set','getAllAdjacentSuggestions','locale','reduce','bind','init','editing','switchbutton','requires','delete','source','TrackChangesEditing'];(function(_0x33d293,_0x7a23c4){const _0x28da1f=function(_0x19f007){while(--_0x19f007){_0x33d293['push'](_0x33d293['shift']());}};_0x28da1f(++_0x7a23c4);}(_0x7a23,0x13d));const _0x28da=function(_0x33d293,_0x7a23c4){_0x33d293=_0x33d293-0x0;let _0x28da1f=_0x7a23[_0x33d293];return _0x28da1f;};import{Plugin as _0x471623}from'ckeditor5/src/core';import{Collection as _0x527d22}from'ckeditor5/src/utils';import{Model as _0x43c8bf,SplitButtonView as _0x4f38b4,createDropdown as _0x38fd01,addListToDropdown as _0x42c9b7}from'ckeditor5/src/ui';import{Users as _0x442939,getDateTimeFormatter as _0x4521bf,getAllMarkersDomElementsSorted as _0x419326}from'ckeditor5-collaboration/src/collaboration-core';import _0x257428 from'./trackchangesediting';import _0xe0b8a4 from'./ui/suggestioncontroller';import _0x109b5d from'./ui/view/suggestionthreadview';import{getTranslation as _0x58bf61}from'./utils/common-translations';import _0x4d704b from'../theme/icons/track-changes.svg';export default class d extends _0x471623{static get[_0x28da('0x9')](){return[_0x257428,_0x442939,_0x28da('0x22'),_0x28da('0x4f'),_0x28da('0x53')];}static get[_0x28da('0x5b')](){return'TrackChangesUI';}constructor(_0x2c7748){super(_0x2c7748),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x28da('0x28')]=new Map(),this[_0x28da('0x34')]=new Map();const _0x59c010=this[_0x28da('0x21')]['config'];_0x59c010[_0x28da('0x50')]('trackChanges.SuggestionThreadView',_0x109b5d),_0x59c010['define'](_0x28da('0x4a'),!0x1),this[_0x28da('0x62')]=_0x59c010['get']('trackChanges.disableComments');}[_0x28da('0x3e')](_0xc5590d,_0x284541){0x0===this[_0x28da('0x34')][_0x28da('0x4c')]&&setTimeout(()=>{for(const [_0x51a392,_0x19d2e4]of this['_handleControllerBuffer']){const _0x462850=this[_0x28da('0x35')][_0x28da('0x4e')](_0x51a392);_0x462850||_0x19d2e4?_0x462850&&_0x19d2e4&&this[_0x28da('0x2e')](_0x51a392):this[_0x28da('0x19')](_0x51a392);}this['editor']['plugins'][_0x28da('0x30')](_0x28da('0x53'))[_0x28da('0x44')](),this[_0x28da('0x26')](),this['_handleControllerBuffer']['clear']();},0xa),this['_handleControllerBuffer'][_0x28da('0x1')](_0xc5590d,_0x284541);}[_0x28da('0x6')](){const _0x21b7d5=this[_0x28da('0x21')],_0x87053d=_0x21b7d5[_0x28da('0x29')][_0x28da('0x30')]('TrackChangesEditing'),_0x3bed10=_0x21b7d5['plugins'][_0x28da('0x30')](_0x28da('0x4f')),_0xcf88a8=_0x21b7d5[_0x28da('0x29')][_0x28da('0x30')](_0x28da('0x53')),_0x1db6d4=_0x21b7d5[_0x28da('0x29')][_0x28da('0x30')]('CommentsRepository');_0x21b7d5['ui']['componentFactory'][_0x28da('0x68')]('trackChanges',_0x44d463=>this['_createUIButton'](_0x44d463)),_0xcf88a8['addSourceCollector'](()=>{const _0x34c15c=[];for(const [_0x14f2d5,_0x5a9794]of Array[_0x28da('0x37')](this[_0x28da('0x35')])){const _0x5a2f4f=_0x14f2d5[_0x28da('0x2')](),_0x248249=[];for(const _0x3f4c2f of _0x5a2f4f){if(!_0x3f4c2f['isInContent'])continue;if(_0x3f4c2f[_0x28da('0x5d')]){_0x248249[_0x28da('0x25')](..._0x3f4c2f['getRanges']());continue;}const _0x4db804=_0x3f4c2f['getFirstRange']();if(_0x248249['length']>0x0){const _0x46fba4=_0x248249[0x0][_0x28da('0x1e')](_0x4db804);if(_0x46fba4){_0x248249[0x0]=_0x46fba4;continue;}}_0x248249['push'](_0x4db804);}_0x34c15c[_0x28da('0x25')]([_0x5a9794[_0x28da('0x49')],_0x248249]);}return _0x34c15c;}),this['listenTo'](_0x87053d,_0x28da('0x14'),(_0x9913a9,_0x3af1d5)=>{this['listenTo'](_0x3af1d5,_0x28da('0x10'),(_0x33ebd0,_0x194c24,_0x7c1616,_0x54e8f9)=>{_0x3af1d5[_0x28da('0x33')]&&(null==_0x7c1616?(this['_updateController'](_0x54e8f9[_0x28da('0xe')]),this[_0x28da('0x3e')](_0x3af1d5,!0x1)):(this[_0x28da('0x45')](_0x7c1616[_0x28da('0xe')]),null==_0x54e8f9&&this[_0x28da('0x3e')](_0x3af1d5,!0x0)));}),null!==_0x3af1d5['previous']?this[_0x28da('0x45')](_0x3af1d5[_0x28da('0xe')]):this[_0x28da('0x3e')](_0x3af1d5,!0x1);}),this[_0x28da('0x41')](_0x87053d,_0x28da('0x47'),(_0x41d698,_0x51dbcd,_0x31d8eb)=>{this[_0x28da('0x6d')](_0x51dbcd,'change:previous'),this['_handleControllerBuffer'][_0x28da('0xa')](_0x51dbcd),this['_suggestionToController']['has'](_0x51dbcd)&&this['_destroyController'](_0x51dbcd),_0x31d8eb&&this[_0x28da('0x45')](_0x31d8eb[_0x28da('0xe')]);}),this[_0x28da('0x41')](_0x87053d,_0x28da('0x2d'),(_0x15fe8e,_0x4cb62a)=>{this[_0x28da('0x45')](_0x4cb62a);}),this[_0x28da('0x41')](_0x3bed10,'change:activeAnnotations',()=>{this[_0x28da('0x26')]();}),this[_0x28da('0x41')](_0x1db6d4,_0x28da('0x58'),(_0xa673c6,{threadId:_0x4ab077,isFromAdapter:_0x1b5aad})=>{if(_0x1b5aad||!_0x87053d['hasSuggestion'](_0x4ab077))return;const _0x313d3b=_0x87053d[_0x28da('0x31')](_0x4ab077);this[_0x28da('0x35')][_0x28da('0x30')](_0x313d3b)[_0x28da('0x49')][_0x28da('0x1b')]();},{'priority':_0x28da('0x46')});}[_0x28da('0x26')](){const _0xa7ac3=this[_0x28da('0x21')][_0x28da('0x29')][_0x28da('0x30')](_0x28da('0x4f')),_0x91e164=this[_0x28da('0x21')][_0x28da('0x29')][_0x28da('0x30')](_0x28da('0xc')),_0x2e7f26=Array[_0x28da('0x37')](_0xa7ac3[_0x28da('0x18')],_0x4d77f2=>_0x4d77f2[_0x28da('0x1d')])['filter'](_0xf248e=>this['_viewToController']['has'](_0xf248e)),_0x5765e4=[];for(const _0x5caa1e of _0x2e7f26){const _0x11bf39=this[_0x28da('0x32')]['get'](_0x5caa1e)[_0x28da('0x5a')][_0x28da('0x2')]();_0x5765e4['push'](..._0x11bf39[_0x28da('0x4')]((_0x125a7b,_0xcf5203)=>[..._0x125a7b,..._0xcf5203[_0x28da('0x66')]()],[]));}_0x91e164[_0x28da('0x0')]=_0x5765e4;}[_0x28da('0x6c')](_0xd2dc1f){const _0x5e9879=_0x38fd01(_0xd2dc1f,_0x4f38b4),_0x403884=this[_0x28da('0x21')]['commands'][_0x28da('0x30')]('trackChanges'),_0x78865c=_0x58bf61(_0xd2dc1f,_0x28da('0x11'));_0x5e9879[_0x28da('0x43')][_0x28da('0x1')]({'tooltip':_0x78865c,'label':_0x78865c,'icon':_0x4d704b}),_0x5e9879[_0x28da('0x43')][_0x28da('0x5')](_0x28da('0x6b'))['to'](_0x403884,_0x28da('0x3b')),_0x5e9879[_0x28da('0x43')]['on'](_0x28da('0x2f'),()=>{_0x403884[_0x28da('0x2f')](),this[_0x28da('0x21')][_0x28da('0x7')][_0x28da('0x49')][_0x28da('0x1b')]();});const _0x1670ab=new _0x527d22(),_0x4739ac=[{'type':_0x28da('0x8'),'model':{'withText':!0x0,'label':_0x78865c,'commandName':_0x28da('0x69')}},{'type':_0x28da('0x1a')},{'type':_0x28da('0x67'),'model':{'withText':!0x0,'label':_0x58bf61(_0xd2dc1f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x28da('0x67'),'model':{'withText':!0x0,'label':_0x58bf61(_0xd2dc1f,_0x28da('0x24')),'commandName':_0x28da('0x12')}},{'type':_0x28da('0x67'),'model':{'withText':!0x0,'label':_0x58bf61(_0xd2dc1f,_0x28da('0x1c')),'commandName':_0x28da('0x16')}},{'type':'button','model':{'withText':!0x0,'label':_0x58bf61(_0xd2dc1f,_0x28da('0x3c')),'commandName':_0x28da('0x3d')}}];for(const _0x158a3b of _0x4739ac){let _0x2b15fb={'type':_0x28da('0x1a')};if(_0x158a3b[_0x28da('0x5a')]){const _0x3d1f33=new _0x43c8bf(_0x158a3b[_0x28da('0x5a')]),_0xf7a724=this[_0x28da('0x21')][_0x28da('0x51')][_0x28da('0x30')](_0x3d1f33[_0x28da('0x2b')]);_0x3d1f33[_0x28da('0x5')]('isOn',_0x28da('0x42'))['to'](_0xf7a724,_0x28da('0x3b'),_0x28da('0x42')),_0x2b15fb={'type':_0x158a3b['type'],'model':_0x3d1f33};}_0x1670ab[_0x28da('0x68')](_0x2b15fb);}_0x42c9b7(_0x5e9879,_0x1670ab);const _0x55ab08=_0x4739ac['filter'](_0x3bb45f=>null!=_0x3bb45f['model'])['map'](_0x3f1c7c=>this[_0x28da('0x21')][_0x28da('0x51')][_0x28da('0x30')](_0x3f1c7c[_0x28da('0x5a')][_0x28da('0x2b')])),_0x3b996b=_0x5e9879['buttonView'];return _0x3b996b[_0x28da('0x65')][_0x28da('0xd')]('isEnabled'),_0x3b996b[_0x28da('0x15')][_0x28da('0xd')](_0x28da('0x42')),_0x3b996b[_0x28da('0x65')][_0x28da('0x5')]('isEnabled')['to'](_0x403884,_0x28da('0x42')),_0x3b996b[_0x28da('0x15')][_0x28da('0x5')](_0x28da('0x42'))[_0x28da('0x23')](_0x55ab08,_0x28da('0x42'),(..._0x1b307d)=>_0x1b307d[_0x28da('0x6a')](_0x7569e2=>_0x7569e2)),_0x5e9879['on'](_0x28da('0x2f'),_0x509826=>{this['editor'][_0x28da('0x2f')](_0x509826[_0x28da('0xb')]['commandName']),this['editor'][_0x28da('0x7')][_0x28da('0x49')]['focus']();}),_0x5e9879;}[_0x28da('0x19')](_0x36f4fe){const _0x33648c=this[_0x28da('0x21')],_0x4cd30e=_0x33648c['config'],_0x36aa17=_0x33648c[_0x28da('0x29')][_0x28da('0x30')](_0x28da('0x4f')),_0x4b3a35=_0x33648c[_0x28da('0x29')]['get']('CommentsRepository'),_0xdb4dfa=_0x33648c[_0x28da('0x29')][_0x28da('0x30')]('EditorAnnotations'),_0x456bce=_0x33648c[_0x28da('0x29')][_0x28da('0x30')](_0x442939)['me'],_0x162203=_0x4cd30e[_0x28da('0x30')](_0x28da('0x69'))[_0x28da('0x1f')],{CommentsListView:_0x588b18,CommentThreadInputView:_0x39d50b}=_0x33648c[_0x28da('0x29')][_0x28da('0x30')](_0x28da('0x2c'));let _0x3bd407,_0x40a52d;this[_0x28da('0x28')][_0x28da('0x4e')](_0x36f4fe['id'])?(_0x40a52d=this[_0x28da('0x28')]['get'](_0x36f4fe['id']),_0x3bd407=_0x40a52d[_0x28da('0x63')]):(_0x3bd407=new _0x162203(_0x33648c[_0x28da('0x3')],_0x36f4fe,_0x456bce,{'disableComments':this['_disableComments'],'editorConfig':_0x4cd30e[_0x28da('0x30')](_0x28da('0x60')),'maxCommentsWhenCollapsed':_0x4cd30e[_0x28da('0x30')](_0x28da('0x4b')),'maxThreadTotalWeight':_0x4cd30e[_0x28da('0x30')](_0x28da('0x3f')),'maxCommentCharsWhenCollapsed':_0x4cd30e[_0x28da('0x30')](_0x28da('0x20')),'formatDateTime':_0x4521bf(_0x4cd30e[_0x28da('0x30')]('locale')),'CommentView':_0x4cd30e[_0x28da('0x30')](_0x28da('0x54'))[_0x28da('0x17')],'CommentsListView':_0x588b18,'CommentThreadInputView':_0x39d50b}),_0x3bd407['acceptButton']['on']('execute',()=>{_0x33648c['editing'][_0x28da('0x49')][_0x28da('0x1b')]();}),_0x3bd407[_0x28da('0x5c')]['on']('execute',()=>{_0x33648c[_0x28da('0x7')]['view'][_0x28da('0x1b')]();}),_0x40a52d=_0x36aa17[_0x28da('0x5f')](this[_0x28da('0x21')][_0x28da('0x3')],_0x3bd407),_0x40a52d[_0x28da('0x5')](_0x28da('0x59'))['to'](_0x3bd407,_0x28da('0x59')),_0x40a52d[_0x28da('0x5')](_0x28da('0x61'))['to'](_0x3bd407),_0x40a52d[_0x28da('0x5')](_0x28da('0x52'))['to'](_0x3bd407,'type',_0x331454=>_0x28da('0x56')+_0x331454),this[_0x28da('0x28')][_0x28da('0x1')](_0x36f4fe['id'],_0x40a52d));const _0x47430e=_0x4b3a35['createCommentThreadController'](_0x36f4fe[_0x28da('0x38')],_0x3bd407),_0x2b0979=new _0xe0b8a4(_0x33648c,_0x36f4fe,_0x3bd407,_0x47430e),_0x545c05=_0x36f4fe[_0x28da('0x2')]()[_0x28da('0x57')](_0x561ceb=>_0x561ceb['isInContent']);_0x3bd407[_0x28da('0x48')]=_0x33648c[_0x28da('0x29')][_0x28da('0x30')](_0x28da('0xc'))[_0x28da('0x36')][_0x28da('0x27')](_0x545c05),this[_0x28da('0x35')]['set'](_0x36f4fe,_0x2b0979),this[_0x28da('0x32')]['set'](_0x3bd407,_0x2b0979);const _0x53cf67=_0x36aa17[_0x28da('0x13')]({'view':_0x40a52d,'target':()=>{const _0x3f5c3f=[],_0x5e4f28=_0x36f4fe[_0x28da('0x2')]()[_0x28da('0x57')](_0x4639d9=>_0x4639d9[_0x28da('0x33')]);for(const _0x319b05 of _0x5e4f28)_0x3f5c3f['push'](..._0x319b05[_0x28da('0x40')]());return _0x419326(_0x33648c['editing'],_0x3f5c3f);},'type':()=>_0x28da('0x56')+_0x2b0979[_0x28da('0x49')][_0x28da('0x52')]});_0x4b3a35[_0x28da('0x64')](_0x3bd407,_0x53cf67),_0x36aa17[_0x28da('0x68')](_0x53cf67),_0xdb4dfa[_0x28da('0x5e')](_0x53cf67);}[_0x28da('0x2e')](_0x4f18f2){const _0x50e9ed=this[_0x28da('0x21')]['plugins'][_0x28da('0x30')]('CommentsRepository'),_0x1110cb=this[_0x28da('0x21')][_0x28da('0x29')]['get'](_0x28da('0x4f')),_0x1298f6=this['_suggestionToController']['get'](_0x4f18f2),_0xe29c16=_0x1298f6[_0x28da('0x49')],_0x41dd4e=_0x1110cb[_0x28da('0xf')](_0xe29c16);_0x50e9ed[_0x28da('0x2a')](_0xe29c16),_0x41dd4e&&_0x1110cb[_0x28da('0x3a')](_0x41dd4e),this['_suggestionToController'][_0x28da('0xa')](_0x4f18f2),this['_viewToController']['delete'](_0xe29c16),_0x1298f6[_0x28da('0x55')]();}[_0x28da('0x45')](_0x11e2d8){if(!_0x11e2d8[_0x28da('0x33')]||!this[_0x28da('0x35')]['has'](_0x11e2d8))return;const _0x231409=this[_0x28da('0x21')][_0x28da('0x29')]['get'](_0x28da('0xc')),_0x582371=this[_0x28da('0x35')][_0x28da('0x30')](_0x11e2d8),_0x1193c8=_0x11e2d8[_0x28da('0x2')]();_0x582371[_0x28da('0x49')]['descriptionParts']=_0x231409[_0x28da('0x36')][_0x28da('0x27')](_0x1193c8);}['destroy'](){for(const _0x5d6536 of this[_0x28da('0x35')][_0x28da('0x4d')]())this[_0x28da('0x2e')](_0x5d6536);for(const _0x2191e8 of this['_annotationViews'][_0x28da('0x39')]())_0x2191e8[_0x28da('0x63')][_0x28da('0x55')]();super[_0x28da('0x55')]();}}
23
+ const _0x2e81=['descriptionParts','CommentView','reduce','comments','push','_destroyController','button','getFirstRange','map','_refreshActiveMarkers','suggestion-','keys','mainView','change:activeAnnotations','isMultiRange','getRanges','EditorAnnotations','getByInnerView','source','Accept\x20all\x20suggestions','config','execute','previous','trackChanges.SuggestionThreadView','toMany','_annotationViews','editing','createCommentThreadController','_handleControllerBuffer','unbind','trackChanges','discardSelectedSuggestions','editor','add','bind','createAnnotation','hasSuggestion','SuggestionThreadView','_initializeController','size','discardButton','isInContent','has','head','discardAllSuggestions','from','Accept\x20all\x20selected\x20suggestions','getJoined','_descriptionFactory','_updateController','get','getDescriptions','clear','suggestionChanged','CommentsRepository','destroy','_unbindEditors','trackChanges.disableComments','refreshSelectedViews','acceptButton','delete','isDirty','filter','isEnabled','_handleSuggestionControllerDelayed','stopListening','activeAnnotations','acceptAllSuggestions','TrackChangesEditing','values','view','Discard\x20all\x20selected\x20suggestions','plugins','componentFactory','listenTo','_createUIButton','change:previous','requires','Annotations','isOn','define','Track\x20changes','getMarkerNames','TrackChangesUI','focus','arrowView','set','buttonView','type','length','_viewToController','_disableComments','value','_suggestionToController','commandName','getAllAdjacentSuggestions','comments.editorConfig','locale','commands','model','separator','_bindAnnotationToEditors','commentThread'];(function(_0x323283,_0x2e816d){const _0x38c151=function(_0x18688a){while(--_0x18688a){_0x323283['push'](_0x323283['shift']());}};_0x38c151(++_0x2e816d);}(_0x2e81,0x137));const _0x38c1=function(_0x323283,_0x2e816d){_0x323283=_0x323283-0x0;let _0x38c151=_0x2e81[_0x323283];return _0x38c151;};import{Plugin as _0x652446}from'ckeditor5/src/core';import{Collection as _0x5bb66b}from'ckeditor5/src/utils';import{Model as _0x5547dd,SplitButtonView as _0x535c04,createDropdown as _0x1aefcd,addListToDropdown as _0x125222}from'ckeditor5/src/ui';import{Users as _0xcbc512,getDateTimeFormatter as _0x4387aa,getAllMarkersDomElementsSorted as _0x490012}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f957e from'./trackchangesediting';import _0x3c56e3 from'./ui/suggestioncontroller';import _0x156e52 from'./ui/view/suggestionthreadview';import{getTranslation as _0x362674}from'./utils/common-translations';import _0x1f070c from'../theme/icons/track-changes.svg';export default class d extends _0x652446{static get[_0x38c1('0x4b')](){return[_0x1f957e,_0xcbc512,_0x38c1('0x34'),_0x38c1('0x4c'),_0x38c1('0xe')];}static get['pluginName'](){return _0x38c1('0x51');}constructor(_0x360789){super(_0x360789),this['_suggestionToController']=new Map(),this[_0x38c1('0x58')]=new Map(),this['_annotationViews']=new Map(),this[_0x38c1('0x1a')]=new Map();const _0x417a73=this[_0x38c1('0x1e')][_0x38c1('0x12')];_0x417a73['define'](_0x38c1('0x15'),_0x156e52),_0x417a73[_0x38c1('0x4e')](_0x38c1('0x37'),!0x1),this['_disableComments']=_0x417a73['get'](_0x38c1('0x37'));}[_0x38c1('0x3e')](_0x51d982,_0x4d6dc2){0x0===this[_0x38c1('0x1a')][_0x38c1('0x25')]&&setTimeout(()=>{for(const [_0x4858b2,_0x25f5dd]of this['_handleControllerBuffer']){const _0x1c9c8e=this['_suggestionToController']['has'](_0x4858b2);_0x1c9c8e||_0x25f5dd?_0x1c9c8e&&_0x25f5dd&&this[_0x38c1('0x3')](_0x4858b2):this[_0x38c1('0x24')](_0x4858b2);}this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0xe'))[_0x38c1('0x38')](),this[_0x38c1('0x7')](),this[_0x38c1('0x1a')][_0x38c1('0x32')]();},0xa),this[_0x38c1('0x1a')][_0x38c1('0x54')](_0x51d982,_0x4d6dc2);}['init'](){const _0x5091c8=this[_0x38c1('0x1e')],_0x2c81ed=_0x5091c8[_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x42')),_0x41f222=_0x5091c8['plugins'][_0x38c1('0x30')](_0x38c1('0x4c')),_0x5952c9=_0x5091c8['plugins'][_0x38c1('0x30')](_0x38c1('0xe')),_0x18f62d=_0x5091c8[_0x38c1('0x46')][_0x38c1('0x30')]('CommentsRepository');_0x5091c8['ui'][_0x38c1('0x47')][_0x38c1('0x1f')](_0x38c1('0x1c'),_0x599914=>this[_0x38c1('0x49')](_0x599914)),_0x5952c9['addSourceCollector'](()=>{const _0x4e2cc5=[];for(const [_0x32cc8e,_0x36c141]of Array[_0x38c1('0x2b')](this['_suggestionToController'])){const _0xb9a509=_0x32cc8e['getAllAdjacentSuggestions'](),_0x40a647=[];for(const _0x22d14d of _0xb9a509){if(!_0x22d14d[_0x38c1('0x27')])continue;if(_0x22d14d[_0x38c1('0xc')]){_0x40a647['push'](..._0x22d14d[_0x38c1('0xd')]());continue;}const _0x439172=_0x22d14d[_0x38c1('0x5')]();if(_0x40a647[_0x38c1('0x57')]>0x0){const _0x460b9b=_0x40a647[0x0][_0x38c1('0x2d')](_0x439172);if(_0x460b9b){_0x40a647[0x0]=_0x460b9b;continue;}}_0x40a647[_0x38c1('0x2')](_0x439172);}_0x4e2cc5[_0x38c1('0x2')]([_0x36c141[_0x38c1('0x44')],_0x40a647]);}return _0x4e2cc5;}),this[_0x38c1('0x48')](_0x2c81ed,'suggestionLoaded',(_0x4b876b,_0x339b90)=>{this[_0x38c1('0x48')](_0x339b90,_0x38c1('0x4a'),(_0x185db6,_0x1de544,_0x5d03df,_0x4145c8)=>{_0x339b90[_0x38c1('0x27')]&&(null==_0x5d03df?(this['_updateController'](_0x4145c8['head']),this['_handleSuggestionControllerDelayed'](_0x339b90,!0x1)):(this[_0x38c1('0x2f')](_0x5d03df[_0x38c1('0x29')]),null==_0x4145c8&&this[_0x38c1('0x3e')](_0x339b90,!0x0)));}),null!==_0x339b90[_0x38c1('0x14')]?this[_0x38c1('0x2f')](_0x339b90[_0x38c1('0x29')]):this[_0x38c1('0x3e')](_0x339b90,!0x1);}),this['listenTo'](_0x2c81ed,'suggestionUnloaded',(_0x435a75,_0x4ccb06,_0xb20472)=>{this[_0x38c1('0x3f')](_0x4ccb06,_0x38c1('0x4a')),this[_0x38c1('0x1a')]['delete'](_0x4ccb06),this[_0x38c1('0x5b')][_0x38c1('0x28')](_0x4ccb06)&&this['_destroyController'](_0x4ccb06),_0xb20472&&this[_0x38c1('0x2f')](_0xb20472[_0x38c1('0x29')]);}),this[_0x38c1('0x48')](_0x2c81ed,_0x38c1('0x33'),(_0x2e17e6,_0x432b6c)=>{this[_0x38c1('0x2f')](_0x432b6c);}),this['listenTo'](_0x41f222,_0x38c1('0xb'),()=>{this[_0x38c1('0x7')]();}),this[_0x38c1('0x48')](_0x18f62d,'addComment',(_0x3828d0,{threadId:_0x519dbe,isFromAdapter:_0x519d86})=>{if(_0x519d86||!_0x2c81ed[_0x38c1('0x22')](_0x519dbe))return;const _0x10640d=_0x2c81ed['getSuggestion'](_0x519dbe);this[_0x38c1('0x5b')][_0x38c1('0x30')](_0x10640d)[_0x38c1('0x44')][_0x38c1('0x52')]();},{'priority':'lowest'});}[_0x38c1('0x7')](){const _0x51eea9=this['editor'][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x4c')),_0x39329a=this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')]('TrackChangesEditing'),_0x14206a=Array[_0x38c1('0x2b')](_0x51eea9[_0x38c1('0x40')],_0x243373=>_0x243373['innerView'])[_0x38c1('0x3c')](_0x2c8283=>this[_0x38c1('0x58')][_0x38c1('0x28')](_0x2c8283)),_0x3d9a90=[];for(const _0x3bfd11 of _0x14206a){const _0x1b4a26=this[_0x38c1('0x58')][_0x38c1('0x30')](_0x3bfd11)[_0x38c1('0x61')][_0x38c1('0x5d')]();_0x3d9a90['push'](..._0x1b4a26[_0x38c1('0x0')]((_0x3be6ec,_0x438a2b)=>[..._0x3be6ec,..._0x438a2b[_0x38c1('0x50')]()],[]));}_0x39329a['activeMarkers']=_0x3d9a90;}['_createUIButton'](_0x5cf69f){const _0x181885=_0x1aefcd(_0x5cf69f,_0x535c04),_0x1af3a9=this['editor'][_0x38c1('0x60')][_0x38c1('0x30')](_0x38c1('0x1c')),_0x4ca329=_0x362674(_0x5cf69f,_0x38c1('0x4f'));_0x181885[_0x38c1('0x55')][_0x38c1('0x54')]({'tooltip':_0x4ca329,'label':_0x4ca329,'icon':_0x1f070c}),_0x181885[_0x38c1('0x55')][_0x38c1('0x20')](_0x38c1('0x4d'))['to'](_0x1af3a9,_0x38c1('0x5a')),_0x181885[_0x38c1('0x55')]['on'](_0x38c1('0x13'),()=>{_0x1af3a9[_0x38c1('0x13')](),this[_0x38c1('0x1e')]['editing'][_0x38c1('0x44')][_0x38c1('0x52')]();});const _0x261510=new _0x5bb66b(),_0x169578=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4ca329,'commandName':_0x38c1('0x1c')}},{'type':'separator'},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,_0x38c1('0x11')),'commandName':_0x38c1('0x41')}},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,_0x38c1('0x2c')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,'Discard\x20all\x20suggestions'),'commandName':_0x38c1('0x2a')}},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,_0x38c1('0x45')),'commandName':_0x38c1('0x1d')}}];for(const _0x4cf2b1 of _0x169578){let _0x37668c={'type':_0x38c1('0x62')};if(_0x4cf2b1['model']){const _0x33b33f=new _0x5547dd(_0x4cf2b1[_0x38c1('0x61')]),_0xae0b03=this['editor'][_0x38c1('0x60')][_0x38c1('0x30')](_0x33b33f[_0x38c1('0x5c')]);_0x33b33f[_0x38c1('0x20')](_0x38c1('0x4d'),_0x38c1('0x3d'))['to'](_0xae0b03,'value',_0x38c1('0x3d')),_0x37668c={'type':_0x4cf2b1[_0x38c1('0x56')],'model':_0x33b33f};}_0x261510[_0x38c1('0x1f')](_0x37668c);}_0x125222(_0x181885,_0x261510);const _0x411e7d=_0x169578[_0x38c1('0x3c')](_0x54f56c=>null!=_0x54f56c[_0x38c1('0x61')])[_0x38c1('0x6')](_0x5a03d8=>this[_0x38c1('0x1e')][_0x38c1('0x60')]['get'](_0x5a03d8['model']['commandName'])),_0x851db9=_0x181885[_0x38c1('0x55')];return _0x851db9['actionView'][_0x38c1('0x1b')]('isEnabled'),_0x851db9['arrowView'][_0x38c1('0x1b')](_0x38c1('0x3d')),_0x851db9['actionView'][_0x38c1('0x20')](_0x38c1('0x3d'))['to'](_0x1af3a9,_0x38c1('0x3d')),_0x851db9[_0x38c1('0x53')]['bind'](_0x38c1('0x3d'))[_0x38c1('0x16')](_0x411e7d,_0x38c1('0x3d'),(..._0x2f0165)=>_0x2f0165['some'](_0x5077ac=>_0x5077ac)),_0x181885['on'](_0x38c1('0x13'),_0x17199a=>{this['editor'][_0x38c1('0x13')](_0x17199a[_0x38c1('0x10')][_0x38c1('0x5c')]),this[_0x38c1('0x1e')]['editing'][_0x38c1('0x44')][_0x38c1('0x52')]();}),_0x181885;}[_0x38c1('0x24')](_0x3a72c3){const _0x4a25f5=this['editor'],_0x2752eb=_0x4a25f5[_0x38c1('0x12')],_0x5493c2=_0x4a25f5[_0x38c1('0x46')]['get'](_0x38c1('0x4c')),_0x192187=_0x4a25f5['plugins'][_0x38c1('0x30')]('CommentsRepository'),_0x1930b5=_0x4a25f5['plugins'][_0x38c1('0x30')](_0x38c1('0xe')),_0x192af9=_0x4a25f5[_0x38c1('0x46')][_0x38c1('0x30')](_0xcbc512)['me'],_0x30bcc9=_0x2752eb[_0x38c1('0x30')](_0x38c1('0x1c'))[_0x38c1('0x23')],{CommentsListView:_0x4db1f0,CommentThreadInputView:_0x2c7d40}=_0x4a25f5[_0x38c1('0x46')][_0x38c1('0x30')]('CommentsUI');let _0x2be41b,_0x2bca63;this['_annotationViews'][_0x38c1('0x28')](_0x3a72c3['id'])?(_0x2bca63=this[_0x38c1('0x17')][_0x38c1('0x30')](_0x3a72c3['id']),_0x2be41b=_0x2bca63[_0x38c1('0xa')]):(_0x2be41b=new _0x30bcc9(_0x4a25f5[_0x38c1('0x5f')],_0x3a72c3,_0x192af9,{'disableComments':this[_0x38c1('0x59')],'editorConfig':_0x2752eb[_0x38c1('0x30')](_0x38c1('0x5e')),'maxCommentsWhenCollapsed':_0x2752eb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2752eb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2752eb[_0x38c1('0x30')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4387aa(_0x2752eb[_0x38c1('0x30')]('locale')),'CommentView':_0x2752eb[_0x38c1('0x30')](_0x38c1('0x1'))[_0x38c1('0x66')],'CommentsListView':_0x4db1f0,'CommentThreadInputView':_0x2c7d40}),_0x2be41b[_0x38c1('0x39')]['on'](_0x38c1('0x13'),()=>{_0x4a25f5[_0x38c1('0x18')][_0x38c1('0x44')][_0x38c1('0x52')]();}),_0x2be41b[_0x38c1('0x26')]['on'](_0x38c1('0x13'),()=>{_0x4a25f5[_0x38c1('0x18')][_0x38c1('0x44')][_0x38c1('0x52')]();}),_0x2bca63=_0x5493c2['createAnnotationView'](this[_0x38c1('0x1e')][_0x38c1('0x5f')],_0x2be41b),_0x2bca63[_0x38c1('0x20')](_0x38c1('0x3b'))['to'](_0x2be41b,_0x38c1('0x3b')),_0x2bca63[_0x38c1('0x20')](_0x38c1('0x57'))['to'](_0x2be41b),_0x2bca63[_0x38c1('0x20')](_0x38c1('0x56'))['to'](_0x2be41b,_0x38c1('0x56'),_0x154119=>_0x38c1('0x8')+_0x154119),this[_0x38c1('0x17')]['set'](_0x3a72c3['id'],_0x2bca63));const _0x28bb4f=_0x192187[_0x38c1('0x19')](_0x3a72c3[_0x38c1('0x64')],_0x2be41b),_0x27fe14=new _0x3c56e3(_0x4a25f5,_0x3a72c3,_0x2be41b,_0x28bb4f),_0x2c37e7=_0x3a72c3['getAllAdjacentSuggestions']()[_0x38c1('0x3c')](_0x72fe80=>_0x72fe80[_0x38c1('0x27')]);_0x2be41b[_0x38c1('0x65')]=_0x4a25f5['plugins'][_0x38c1('0x30')](_0x38c1('0x42'))[_0x38c1('0x2e')][_0x38c1('0x31')](_0x2c37e7),this[_0x38c1('0x5b')][_0x38c1('0x54')](_0x3a72c3,_0x27fe14),this[_0x38c1('0x58')]['set'](_0x2be41b,_0x27fe14);const _0x387b87=_0x5493c2[_0x38c1('0x21')]({'view':_0x2bca63,'target':()=>{const _0x2e94ab=[],_0x30747d=_0x3a72c3[_0x38c1('0x5d')]()['filter'](_0x22f1d8=>_0x22f1d8['isInContent']);for(const _0xc062f8 of _0x30747d)_0x2e94ab[_0x38c1('0x2')](..._0xc062f8['getMarkers']());return _0x490012(_0x4a25f5[_0x38c1('0x18')],_0x2e94ab);},'type':()=>_0x38c1('0x8')+_0x27fe14[_0x38c1('0x44')][_0x38c1('0x56')]});_0x192187[_0x38c1('0x63')](_0x2be41b,_0x387b87),_0x5493c2[_0x38c1('0x1f')](_0x387b87),_0x1930b5['registerAnnotation'](_0x387b87);}[_0x38c1('0x3')](_0x39c623){const _0x30130b=this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x34')),_0x12068a=this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x4c')),_0x4fed32=this[_0x38c1('0x5b')][_0x38c1('0x30')](_0x39c623),_0x5dd404=_0x4fed32['view'],_0x383822=_0x12068a[_0x38c1('0xf')](_0x5dd404);_0x30130b[_0x38c1('0x36')](_0x5dd404),_0x383822&&_0x12068a['remove'](_0x383822),this[_0x38c1('0x5b')][_0x38c1('0x3a')](_0x39c623),this[_0x38c1('0x58')][_0x38c1('0x3a')](_0x5dd404),_0x4fed32[_0x38c1('0x35')]();}[_0x38c1('0x2f')](_0x3af71d){if(!_0x3af71d['isInContent']||!this['_suggestionToController'][_0x38c1('0x28')](_0x3af71d))return;const _0x1040ab=this['editor'][_0x38c1('0x46')][_0x38c1('0x30')]('TrackChangesEditing'),_0x4ab2c8=this['_suggestionToController'][_0x38c1('0x30')](_0x3af71d),_0x5b5f1e=_0x3af71d['getAllAdjacentSuggestions']();_0x4ab2c8[_0x38c1('0x44')][_0x38c1('0x65')]=_0x1040ab[_0x38c1('0x2e')]['getDescriptions'](_0x5b5f1e);}[_0x38c1('0x35')](){for(const _0x23aef8 of this[_0x38c1('0x5b')][_0x38c1('0x9')]())this[_0x38c1('0x3')](_0x23aef8);for(const _0xcdeff4 of this[_0x38c1('0x17')][_0x38c1('0x43')]())_0xcdeff4[_0x38c1('0xa')][_0x38c1('0x35')]();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c7d=['PendingActions','_pendingAction','_editor','add','discardSuggestion','commands','destroy','getRanges','plugins','unbind','_removePendingAction','listenTo','bind','isEnabled','_discardCommand','_setPendingAction','view','stopListening','model','PENDING_ACTION_SUGGESTION','get','execute','commentThreadController','canDiscard','_acceptCommand','isDirty','change:isDirty','locale','canAccept','canEditAt','acceptSuggestion'];(function(_0x55084f,_0x1c7d4b){const _0x1660cb=function(_0x392550){while(--_0x392550){_0x55084f['push'](_0x55084f['shift']());}};_0x1660cb(++_0x1c7d4b);}(_0x1c7d,0x1c9));const _0x1660=function(_0x55084f,_0x1c7d4b){_0x55084f=_0x55084f-0x0;let _0x1660cb=_0x1c7d[_0x55084f];return _0x1660cb;};import{ObservableMixin as _0x2c905c}from'ckeditor5/src/utils';import{getTranslation as _0x4a3b35}from'../utils/common-translations';export default class Kt extends _0x2c905c(){constructor(_0x20a774,_0x4aa7a7,_0x510725,_0x25ef98){super(),this[_0x1660('0x1a')]=_0x4aa7a7,this['view']=_0x510725,this[_0x1660('0x1e')]=_0x25ef98,this['_editor']=_0x20a774,this[_0x1660('0x1')]=_0x20a774[_0x1660('0xd')]['get']('acceptSuggestion'),this[_0x1660('0x16')]=_0x20a774['commands']['get']('discardSuggestion'),this[_0x1660('0x18')][_0x1660('0x14')](_0x1660('0x15'))['to'](this[_0x1660('0x1')],this[_0x1660('0x16')],(_0x39f19d,_0x28e1a7)=>_0x39f19d||_0x28e1a7),this[_0x1660('0x18')][_0x1660('0x14')](_0x1660('0x5'))['to'](this['_acceptCommand'],_0x1660('0x15'),_0x20159b=>_0x20159b&&this[_0x1660('0xa')][_0x1660('0x1a')][_0x1660('0x6')](_0x4aa7a7[_0x1660('0xf')]())),this[_0x1660('0x18')][_0x1660('0x14')](_0x1660('0x0'))['to'](this[_0x1660('0x16')],_0x1660('0x15'),_0xb7e366=>_0xb7e366&&this['_editor'][_0x1660('0x1a')][_0x1660('0x6')](_0x4aa7a7[_0x1660('0xf')]())),this[_0x1660('0x9')]=null,_0x510725[_0x1660('0x2')]&&this[_0x1660('0x17')](),this[_0x1660('0x13')](_0x510725,'acceptSuggestion',()=>this[_0x1660('0x7')]()),this[_0x1660('0x13')](_0x510725,_0x1660('0xc'),()=>this['discardSuggestion']()),this[_0x1660('0x13')](_0x510725,_0x1660('0x3'),()=>{_0x510725[_0x1660('0x2')]?this[_0x1660('0x17')]():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1660('0x1d')](this[_0x1660('0x1a')]['id']);}[_0x1660('0xc')](){this[_0x1660('0x16')][_0x1660('0x1d')](this['model']['id']);}[_0x1660('0xe')](){this['view'][_0x1660('0x11')](_0x1660('0x15')),this[_0x1660('0x18')]['unbind'](_0x1660('0x5')),this[_0x1660('0x18')][_0x1660('0x11')](_0x1660('0x0')),this[_0x1660('0x19')](),this['commentThreadController'][_0x1660('0xe')](),this[_0x1660('0x9')]&&this[_0x1660('0x12')]();}[_0x1660('0x17')](){const _0x286450=_0x4a3b35(this[_0x1660('0xa')][_0x1660('0x4')],_0x1660('0x1b'));this[_0x1660('0x9')]=this[_0x1660('0xa')][_0x1660('0x10')][_0x1660('0x1c')](_0x1660('0x8'))[_0x1660('0xb')](_0x286450);}[_0x1660('0x12')](){null!==this[_0x1660('0x9')]&&this[_0x1660('0xa')][_0x1660('0x10')][_0x1660('0x1c')]('PendingActions')['remove'](this[_0x1660('0x9')]),this['_pendingAction']=null;}}
23
+ const _0x4826=['_acceptCommand','add','_setPendingAction','listenTo','view','commentThreadController','remove','canEditAt','_editor','discardSuggestion','canDiscard','get','model','_discardCommand','getRanges','bind','acceptSuggestion','destroy','_pendingAction','PENDING_ACTION_SUGGESTION','isEnabled','execute','commands','stopListening','plugins','locale','isDirty','canAccept','unbind','PendingActions','_removePendingAction'];(function(_0x1f0c84,_0x482612){const _0x24bdba=function(_0x21f373){while(--_0x21f373){_0x1f0c84['push'](_0x1f0c84['shift']());}};_0x24bdba(++_0x482612);}(_0x4826,0xe6));const _0x24bd=function(_0x1f0c84,_0x482612){_0x1f0c84=_0x1f0c84-0x0;let _0x24bdba=_0x4826[_0x1f0c84];return _0x24bdba;};import{ObservableMixin as _0x129394}from'ckeditor5/src/utils';import{getTranslation as _0x576f3f}from'../utils/common-translations';export default class Pt extends _0x129394(){constructor(_0xbc1720,_0x3b901d,_0x48a821,_0x46b814){super(),this['model']=_0x3b901d,this['view']=_0x48a821,this[_0x24bd('0x17')]=_0x46b814,this[_0x24bd('0x1a')]=_0xbc1720,this[_0x24bd('0x12')]=_0xbc1720[_0x24bd('0x9')]['get']('acceptSuggestion'),this['_discardCommand']=_0xbc1720[_0x24bd('0x9')][_0x24bd('0x1d')]('discardSuggestion'),this[_0x24bd('0x16')][_0x24bd('0x2')]('isEnabled')['to'](this[_0x24bd('0x12')],this[_0x24bd('0x0')],(_0x3a0178,_0x1253ca)=>_0x3a0178||_0x1253ca),this[_0x24bd('0x16')][_0x24bd('0x2')](_0x24bd('0xe'))['to'](this[_0x24bd('0x12')],_0x24bd('0x7'),_0xbd8ce2=>_0xbd8ce2&&this['_editor'][_0x24bd('0x1e')]['canEditAt'](_0x3b901d['getRanges']())),this['view'][_0x24bd('0x2')]('canDiscard')['to'](this[_0x24bd('0x0')],'isEnabled',_0x1c35f5=>_0x1c35f5&&this[_0x24bd('0x1a')][_0x24bd('0x1e')][_0x24bd('0x19')](_0x3b901d[_0x24bd('0x1')]())),this[_0x24bd('0x5')]=null,_0x48a821[_0x24bd('0xd')]&&this[_0x24bd('0x14')](),this[_0x24bd('0x15')](_0x48a821,_0x24bd('0x3'),()=>this[_0x24bd('0x3')]()),this[_0x24bd('0x15')](_0x48a821,_0x24bd('0x1b'),()=>this[_0x24bd('0x1b')]()),this['listenTo'](_0x48a821,'change:isDirty',()=>{_0x48a821[_0x24bd('0xd')]?this[_0x24bd('0x14')]():this['_removePendingAction']();});}['acceptSuggestion'](){this[_0x24bd('0x12')][_0x24bd('0x8')](this[_0x24bd('0x1e')]['id']);}[_0x24bd('0x1b')](){this[_0x24bd('0x0')]['execute'](this['model']['id']);}[_0x24bd('0x4')](){this[_0x24bd('0x16')][_0x24bd('0xf')](_0x24bd('0x7')),this['view'][_0x24bd('0xf')](_0x24bd('0xe')),this[_0x24bd('0x16')][_0x24bd('0xf')](_0x24bd('0x1c')),this[_0x24bd('0xa')](),this[_0x24bd('0x17')][_0x24bd('0x4')](),this[_0x24bd('0x5')]&&this[_0x24bd('0x11')]();}[_0x24bd('0x14')](){const _0x50651b=_0x576f3f(this['_editor'][_0x24bd('0xc')],_0x24bd('0x6'));this['_pendingAction']=this[_0x24bd('0x1a')][_0x24bd('0xb')]['get'](_0x24bd('0x10'))[_0x24bd('0x13')](_0x50651b);}['_removePendingAction'](){null!==this[_0x24bd('0x5')]&&this[_0x24bd('0x1a')][_0x24bd('0xb')]['get'](_0x24bd('0x10'))[_0x24bd('0x18')](this[_0x24bd('0x5')]),this[_0x24bd('0x5')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5979=['_createCommentThreadInputView','locale','isDirty','editor','setData','_config','authoredAt','addComment','CommentView','commentThread','cancel','value','element','commentsListView','descriptionParts','assign','removeComment','commentInputView','isReadOnly','updateComment','_model','fire','length','delegate','showInput','bind','set','destroy','canDiscard','isEnabled','focus','_createCommentViews','commentThreadInputView','submit','_localUser','disabledSubmit','disableComments','isActive'];(function(_0x59502e,_0x597919){const _0x131c32=function(_0x4ba55a){while(--_0x4ba55a){_0x59502e['push'](_0x59502e['shift']());}};_0x131c32(++_0x597919);}(_0x5979,0x1db));const _0x131c=function(_0x59502e,_0x597919){_0x59502e=_0x59502e-0x0;let _0x131c32=_0x5979[_0x59502e];return _0x131c32;};import{View as _0x5683f4}from'ckeditor5/src/ui';export default class si extends _0x5683f4{constructor(_0x13f0b6,_0x4f63de,_0x3425e6,_0x585871){super(_0x13f0b6),this[_0x131c('0x20')]=null,this[_0x131c('0xd')]=null,this[_0x131c('0x7')](_0x131c('0x12'),!0x1),this['set'](_0x131c('0x19'),_0x4f63de[_0x131c('0x19')]),this[_0x131c('0x6')](_0x131c('0x19'))['to'](_0x4f63de),this[_0x131c('0x7')](_0x131c('0x21'),[]),this[_0x131c('0x7')](_0x131c('0x15'),!0x1),this['set'](_0x131c('0xa'),!0x1),this[_0x131c('0x7')]('canAccept',!0x1),this[_0x131c('0x7')](_0x131c('0x9'),!0x1),this[_0x131c('0x1')]=_0x4f63de,this[_0x131c('0xf')]=_0x3425e6,this[_0x131c('0x18')]=_0x585871,_0x585871[_0x131c('0x11')]?this['set'](_0x131c('0x3'),0x1):this[_0x131c('0xc')]();}[_0x131c('0xb')](){this[_0x131c('0x1f')]['focus']();}[_0x131c('0x8')](){this[_0x131c('0x20')]&&this['commentsListView']['destroy'](),this[_0x131c('0xd')]&&this[_0x131c('0xd')][_0x131c('0x8')](),super[_0x131c('0x8')]();}[_0x131c('0xc')](){const {CommentsListView:_0x320bad}=this[_0x131c('0x18')];this[_0x131c('0x20')]=new _0x320bad(this[_0x131c('0x14')],this[_0x131c('0x1')]['commentThread'],Object[_0x131c('0x22')]({'CommentView':this[_0x131c('0x18')][_0x131c('0x1b')]},this['_config'])),this['commentsListView']['delegate'](_0x131c('0x23'))['to'](this),this[_0x131c('0x20')][_0x131c('0x4')](_0x131c('0x0'))['to'](this),this['commentsListView'][_0x131c('0x6')](_0x131c('0x12'))['to'](this),this[_0x131c('0x7')](_0x131c('0x3'),this[_0x131c('0x20')][_0x131c('0x3')]+0x1),this[_0x131c('0x6')](_0x131c('0x3'))['to'](this[_0x131c('0x20')],'length',_0x34fed3=>_0x34fed3+0x1),this[_0x131c('0xd')]=this[_0x131c('0x13')](),this['on'](_0x131c('0x23'),()=>this[_0x131c('0xb')]()),this[_0x131c('0x6')]('isDirty')['to'](this[_0x131c('0x20')],'hasDirtyComment',this[_0x131c('0xd')][_0x131c('0x24')],'value',(_0x3a8396,_0x276965)=>_0x3a8396||!!_0x276965);}[_0x131c('0x13')](){const {CommentThreadInputView:_0x12e3ac}=this[_0x131c('0x18')],_0x3eab05=new _0x12e3ac(this[_0x131c('0x14')],this[_0x131c('0xf')],this[_0x131c('0x18')]['editorConfig']),_0x359f5c=_0x3eab05[_0x131c('0x24')];return _0x3eab05[_0x131c('0x6')](_0x131c('0x5'))['to'](this,_0x131c('0x12'),this[_0x131c('0x1')][_0x131c('0x1c')],_0x131c('0x25'),_0x359f5c,_0x131c('0x1e'),(_0x4323c5,_0x340ac3,_0x4ad3e6)=>!!_0x4ad3e6||_0x4323c5&&!_0x340ac3),_0x359f5c['on'](_0x131c('0xe'),(_0x4ef92e,_0x5aa31e)=>{this[_0x131c('0x2')](_0x131c('0x1a'),_0x5aa31e),_0x359f5c[_0x131c('0x16')][_0x131c('0x17')]('');}),_0x359f5c['on'](_0x131c('0x1d'),()=>this[_0x131c('0xb')]()),_0x359f5c[_0x131c('0x6')](_0x131c('0x10'))['to'](this[_0x131c('0x1')][_0x131c('0x1c')],_0x131c('0x25')),_0x3eab05;}}
23
+ const _0x64f4=['CommentView','_model','editor','addComment','commentThreadInputView','commentInputView','descriptionParts','delegate','disabledSubmit','locale','isActive','_config','_createCommentViews','value','showInput','_localUser','length','canAccept','commentThread','assign','set','commentsListView','isReadOnly','hasDirtyComment','editorConfig','setData','isEnabled','authoredAt','bind','destroy','_createCommentThreadInputView','isDirty','focus','disableComments','submit','removeComment'];(function(_0x80069,_0x64f412){const _0x57f5ca=function(_0x12770d){while(--_0x12770d){_0x80069['push'](_0x80069['shift']());}};_0x57f5ca(++_0x64f412);}(_0x64f4,0x66));const _0x57f5=function(_0x80069,_0x64f412){_0x80069=_0x80069-0x0;let _0x57f5ca=_0x64f4[_0x80069];return _0x57f5ca;};import{View as _0x59b50d}from'ckeditor5/src/ui';export default class si extends _0x59b50d{constructor(_0x2de8e2,_0x3143cf,_0x2297af,_0x45c43d){super(_0x2de8e2),this[_0x57f5('0x1b')]=null,this[_0x57f5('0xa')]=null,this[_0x57f5('0x1a')](_0x57f5('0x10'),!0x1),this['set'](_0x57f5('0x21'),_0x3143cf[_0x57f5('0x21')]),this[_0x57f5('0x22')](_0x57f5('0x21'))['to'](_0x3143cf),this[_0x57f5('0x1a')](_0x57f5('0xc'),[]),this[_0x57f5('0x1a')](_0x57f5('0x1'),!0x1),this[_0x57f5('0x1a')](_0x57f5('0x20'),!0x1),this[_0x57f5('0x1a')](_0x57f5('0x17'),!0x1),this[_0x57f5('0x1a')]('canDiscard',!0x1),this[_0x57f5('0x7')]=_0x3143cf,this['_localUser']=_0x2297af,this[_0x57f5('0x11')]=_0x45c43d,_0x45c43d[_0x57f5('0x3')]?this[_0x57f5('0x1a')]('length',0x1):this['_createCommentViews']();}[_0x57f5('0x2')](){this['element']['focus']();}[_0x57f5('0x23')](){this[_0x57f5('0x1b')]&&this[_0x57f5('0x1b')][_0x57f5('0x23')](),this[_0x57f5('0xa')]&&this[_0x57f5('0xa')][_0x57f5('0x23')](),super['destroy']();}[_0x57f5('0x12')](){const {CommentsListView:_0x47ce80}=this['_config'];this[_0x57f5('0x1b')]=new _0x47ce80(this['locale'],this[_0x57f5('0x7')]['commentThread'],Object[_0x57f5('0x19')]({'CommentView':this['_config'][_0x57f5('0x6')]},this['_config'])),this[_0x57f5('0x1b')][_0x57f5('0xd')](_0x57f5('0x5'))['to'](this),this['commentsListView'][_0x57f5('0xd')]('updateComment')['to'](this),this[_0x57f5('0x1b')][_0x57f5('0x22')]('isActive')['to'](this),this[_0x57f5('0x1a')](_0x57f5('0x16'),this[_0x57f5('0x1b')][_0x57f5('0x16')]+0x1),this[_0x57f5('0x22')](_0x57f5('0x16'))['to'](this[_0x57f5('0x1b')],_0x57f5('0x16'),_0x40c05d=>_0x40c05d+0x1),this['commentThreadInputView']=this[_0x57f5('0x0')](),this['on']('removeComment',()=>this[_0x57f5('0x2')]()),this['bind'](_0x57f5('0x1'))['to'](this['commentsListView'],_0x57f5('0x1d'),this['commentThreadInputView'][_0x57f5('0xb')],_0x57f5('0x13'),(_0x360ba8,_0x2796bf)=>_0x360ba8||!!_0x2796bf);}[_0x57f5('0x0')](){const {CommentThreadInputView:_0x29788d}=this[_0x57f5('0x11')],_0x152adb=new _0x29788d(this[_0x57f5('0xf')],this[_0x57f5('0x15')],this['_config'][_0x57f5('0x1e')]),_0x3a0e6e=_0x152adb['commentInputView'];return _0x152adb[_0x57f5('0x22')](_0x57f5('0x14'))['to'](this,_0x57f5('0x10'),this[_0x57f5('0x7')][_0x57f5('0x18')],_0x57f5('0x1c'),_0x3a0e6e,'value',(_0x42c0b7,_0x45a3ea,_0x36f382)=>!!_0x36f382||_0x42c0b7&&!_0x45a3ea),_0x3a0e6e['on'](_0x57f5('0x4'),(_0x15f5cc,_0x444791)=>{this['fire'](_0x57f5('0x9'),_0x444791),_0x3a0e6e[_0x57f5('0x8')][_0x57f5('0x1f')]('');}),_0x3a0e6e['on']('cancel',()=>this[_0x57f5('0x2')]()),_0x3a0e6e['bind'](_0x57f5('0xe'))['to'](this[_0x57f5('0x7')][_0x57f5('0x18')],_0x57f5('0x1c')),_0x152adb;}}
@@ -11,7 +11,7 @@ import type Suggestion from '../../suggestion';
11
11
  * The default view for a suggestion thread.
12
12
  *
13
13
  * This view can be replaced by other view by overwriting the
14
- * {@link module:track-changes/trackchanges~TrackChangesConfig#SuggestionThreadView} configuration.
14
+ * {@link module:track-changes/trackchangesconfig~TrackChangesConfig#SuggestionThreadView} configuration.
15
15
  */
16
16
  export default class SuggestionThreadView extends BaseSuggestionThreadView {
17
17
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dfa=['ck-annotation','getTemplate','_descriptionElement','description','join','cancel','commentThreadInputView','author','name','ck-annotation__main','fire','importWord','disableComments','.ck-annotation__content-wrapper','innerHTML','querySelector','ck-annotation__info','bind','ck-comment__external','delegate','ck-suggestion__info','EXTERNAL_SUGGESTION','descriptionParts','editorDestroyed','span','isExternal','source','acceptButton','ck-suggestion__info-name','Discard\x20suggestion','isActive','ck-suggestion','formatDateTime','getExternalSuggestionNote','authoredAt','attributes','ck-annotation__content-wrapper','ck-suggestion-wrapper--active','render','ck-annotation__user','_config','\x22\x20title=\x22','discardSuggestion','@external','</p>','isEnabled','Accept\x20suggestion','type','getUserViewNotificationText','ck-annotation__actions','_model','div','EXTERNAL_IMPORT_WORD_SUGGESTION','commentsListView','extendTemplate','ck-comment__info-time','userView','ck-annotation__info-time','ck-suggestion-wrapper','ck-suggestion--discard','check','title','canDiscard','bindTemplate','acceptSuggestion','execute','_createButton','ck-suggestion__main','push','time','set','setTemplate','ck-suggestion__actions','editorReady','locale','\x22></span>','creator','createElement','commentThread','</span>','<p>'];(function(_0x2ddb52,_0x4dfa18){const _0x3f2624=function(_0x49a404){while(--_0x49a404){_0x2ddb52['push'](_0x2ddb52['shift']());}};_0x3f2624(++_0x4dfa18);}(_0x4dfa,0x124));const _0x3f26=function(_0x2ddb52,_0x4dfa18){_0x2ddb52=_0x2ddb52-0x0;let _0x3f2624=_0x4dfa[_0x2ddb52];return _0x3f2624;};import{getTranslation as _0x1d1fb9}from'../../utils/common-translations';import{default as _0x5e0765}from'./basesuggestionthreadview';import{ButtonView as _0x55cb0e}from'ckeditor5/src/ui';import{icons as _0x37119b}from'ckeditor5/src/core';import{trimHtml as _0x56e8c3,UserView as _0x126158}from'ckeditor5-collaboration/src/collaboration-core';export default class Pt extends _0x5e0765{constructor(_0x4aec0f,_0x91c7c0,_0x50a5af,_0x197deb){super(_0x4aec0f,_0x91c7c0,_0x50a5af,_0x197deb),this[_0x3f26('0x15')]('type',''),this[_0x3f26('0x31')](_0x3f26('0x4f'))['to'](this,_0x3f26('0x36'),_0x5da6ed=>_0x5da6ed&&_0x5da6ed[0x0]?_0x5da6ed[0x0][_0x3f26('0x4f')]:''),this['bind'](_0x3f26('0x23'))['to'](this,_0x3f26('0x36'),this,_0x3f26('0x3e'),(_0x5dafeb,_0x3b8809)=>{let _0x42416b='';for(const _0x5bf97e of _0x5dafeb)_0x42416b+=_0x3f26('0x1f')+ci(_0x5bf97e['content'],_0x5bf97e['color'])+_0x3f26('0x4c');return _0x3b8809?_0x42416b:_0x56e8c3(_0x42416b,{'limit':0x8c});}),this[_0x3f26('0x22')]=null,this[_0x3f26('0x3b')]=this[_0x3f26('0x11')](_0x1d1fb9(_0x4aec0f,_0x3f26('0x4e')),_0x37119b[_0x3f26('0xb')],'ck-suggestion--accept',_0x3f26('0xf'),'sw'),this[_0x3f26('0x3b')][_0x3f26('0x31')](_0x3f26('0x4d'))['to'](this,'canAccept'),this['discardButton']=this[_0x3f26('0x11')](_0x1d1fb9(_0x4aec0f,_0x3f26('0x3d')),_0x37119b[_0x3f26('0x25')],_0x3f26('0xa'),_0x3f26('0x4a'),'sw'),this['discardButton']['bind'](_0x3f26('0x4d'))['to'](this,_0x3f26('0xd')),this[_0x3f26('0x7')]=new _0x126158(_0x4aec0f,this[_0x3f26('0x1')]['author'],this[_0x3f26('0x50')]()),this[_0x3f26('0x7')]['extendTemplate']({'attributes':{'class':['ck-suggestion__user',_0x3f26('0x47')]}}),this[_0x3f26('0x16')](this[_0x3f26('0x21')]());}['getTemplate'](){const _0x37156a=this[_0x3f26('0xe')],_0xeabe90=[{'tag':_0x3f26('0x2'),'attributes':{'class':[_0x3f26('0x34'),_0x3f26('0x30')]},'children':[{'tag':_0x3f26('0x38'),'children':[{'text':this[_0x3f26('0x7')][_0x3f26('0x28')]}],'attributes':{'class':[_0x3f26('0x3c'),'ck-annotation__info-name']}},{'tag':_0x3f26('0x14'),'attributes':{'datetime':_0x37156a['to'](_0x3f26('0x42')),'class':[_0x3f26('0x6'),_0x3f26('0x8')]},'children':[{'text':_0x37156a['to'](_0x3f26('0x42'),_0xdde49=>this[_0x3f26('0x48')][_0x3f26('0x40')](_0xdde49))}]}]},{'tag':'div','attributes':{'class':[_0x3f26('0x17'),_0x3f26('0x0')]},'children':[this[_0x3f26('0x3b')],this['discardButton']]},{'tag':'div','attributes':{'class':[_0x3f26('0x44')]}}];this[_0x3f26('0x1')][_0x3f26('0x39')]&&_0xeabe90[_0x3f26('0x13')]({'tag':'div','attributes':{'class':[_0x3f26('0x32')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x201736={'tag':_0x3f26('0x2'),'attributes':{'class':[_0x3f26('0x9'),_0x37156a['if'](_0x3f26('0x3e'),_0x3f26('0x45')),_0x37156a['to'](_0x3f26('0x4f'),_0xf5a312=>'ck-suggestion-'+_0xf5a312),this[_0x3f26('0x48')][_0x3f26('0x2c')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0x3f26('0x1')]['id'],'data-thread-id':this['_model'][_0x3f26('0x1d')]['id'],'data-author-id':this['_model'][_0x3f26('0x27')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3f26('0x2'),'attributes':{'class':[_0x3f26('0x3f'),_0x3f26('0x20')]},'children':[this[_0x3f26('0x7')],{'tag':'div','attributes':{'class':[_0x3f26('0x12'),_0x3f26('0x29')]},'children':_0xeabe90}]}]};return this[_0x3f26('0x4')]&&this[_0x3f26('0x26')]&&(_0x201736['children'][_0x3f26('0x13')](this[_0x3f26('0x4')],this[_0x3f26('0x26')]),this[_0x3f26('0x4')][_0x3f26('0x33')](_0x3f26('0x18'))['to'](this),this[_0x3f26('0x4')][_0x3f26('0x33')](_0x3f26('0x37'))['to'](this),this[_0x3f26('0x26')]['delegate'](_0x3f26('0x18'))['to'](this),this[_0x3f26('0x26')][_0x3f26('0x33')](_0x3f26('0x37'))['to'](this)),_0x201736;}[_0x3f26('0x46')](){super[_0x3f26('0x46')](),this[_0x3f26('0x22')]=this['element'][_0x3f26('0x2f')](_0x3f26('0x2d')),this[_0x3f26('0x22')]['innerHTML']=this['description'],this['on']('change:description',(_0x4e5c19,_0x16ae28,_0x1c715c)=>{this['_descriptionElement']['innerHTML']=_0x1c715c;});}['_createButton'](_0x3bd708,_0x2ebb58,_0x5eb2c1,_0x5002b6,_0x61d737){const _0x4c2ecb=new _0x55cb0e(this['locale']);return _0x4c2ecb[_0x3f26('0x15')]({'label':_0x3bd708,'icon':_0x2ebb58,'tooltip':!0x0,'tooltipPosition':_0x61d737}),_0x4c2ecb[_0x3f26('0x5')]({'attributes':{'class':_0x5eb2c1}}),_0x4c2ecb['on'](_0x3f26('0x10'),()=>{this[_0x3f26('0x2a')](_0x5002b6,this['_model']['id']);}),_0x4c2ecb;}[_0x3f26('0x41')](){return'importWord'===this[_0x3f26('0x1')]['attributes'][_0x3f26('0x4b')][_0x3f26('0x3a')]?_0x1d1fb9(this[_0x3f26('0x19')],_0x3f26('0x3')):_0x1d1fb9(this[_0x3f26('0x19')],_0x3f26('0x35'));}[_0x3f26('0x50')](){return this['_model'][_0x3f26('0x39')]?_0x3f26('0x2b')===this['_model'][_0x3f26('0x43')][_0x3f26('0x4b')]['source']?_0x1d1fb9(this[_0x3f26('0x19')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x3f26('0x1')][_0x3f26('0x1b')][_0x3f26('0x28')]):_0x1d1fb9(this[_0x3f26('0x19')],'EXTERNAL_AVATAR',this[_0x3f26('0x1')][_0x3f26('0x1b')]['name']):null;}}function ci(_0x1873eb,_0x14aa85){let _0x5103a6='';return _0x5103a6+=_0x1873eb['split']('*')['map']((_0x360229,_0x48b036)=>_0x48b036%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+ri(_0x360229)+_0x3f26('0x1e'):ri(_0x360229))[_0x3f26('0x24')](''),_0x14aa85&&(_0x5103a6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x14aa85['value']+_0x3f26('0x49')+_0x14aa85[_0x3f26('0xc')]+_0x3f26('0x1a')),_0x5103a6;}function ri(_0xf91e7f){const _0x141b7f=document[_0x3f26('0x1c')](_0x3f26('0x38'));return _0x141b7f['innerText']=_0xf91e7f,_0x141b7f[_0x3f26('0x2e')];}
23
+ const _0x282e=['ck-annotation__info-time','span','push','getUserViewNotificationText','extendTemplate','editorReady','ck-suggestion-wrapper','createElement','ck-annotation__main','commentThreadInputView','join','<span\x20class=\x22ck-suggestion-type\x22>','ck-suggestion__info-name','\x22\x20title=\x22','ck-suggestion','editorDestroyed','source','acceptButton','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-annotation__info','commentThread','children','authoredAt','bind','canAccept','type','ck-suggestion-wrapper--active','bindTemplate','ck-annotation','@external','change:description','attributes','ck-annotation__actions','execute','cancel','userView','importWord','_descriptionElement','delegate','getTemplate','EXTERNAL_AVATAR','EXTERNAL_IMPORT_WORD_SUGGESTION','ck-suggestion__actions','setTemplate','<p>','element','ck-suggestion--discard','ck-suggestion--accept','acceptSuggestion','ck-comment__info-time','canDiscard','content','isEnabled','description','Accept\x20suggestion','descriptionParts','.ck-annotation__content-wrapper','innerText','locale','check','innerHTML','_config','isExternal','</p>','time','discardSuggestion','ck-suggestion-','render','_createButton','getExternalSuggestionNote','div','isActive','formatDateTime','discardButton','creator','</span>','commentsListView','_model','EXTERNAL_SUGGESTION','set','ck-annotation__user','ck-suggestion--disabled-comments','author','name','ck-suggestion__info','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__content-wrapper','fire'];(function(_0x279392,_0x282e16){const _0x580b24=function(_0x38184a){while(--_0x38184a){_0x279392['push'](_0x279392['shift']());}};_0x580b24(++_0x282e16);}(_0x282e,0x10a));const _0x580b=function(_0x279392,_0x282e16){_0x279392=_0x279392-0x0;let _0x580b24=_0x282e[_0x279392];return _0x580b24;};import{getTranslation as _0x89e6e1}from'../../utils/common-translations';import{default as _0x5a3e07}from'./basesuggestionthreadview';import{ButtonView as _0x24401e}from'ckeditor5/src/ui';import{icons as _0xcc0a5e}from'ckeditor5/src/core';import{trimHtml as _0x3b73f7,UserView as _0x4dbce8}from'ckeditor5-collaboration/src/collaboration-core';export default class Qt extends _0x5a3e07{constructor(_0x18d66e,_0x2d6e31,_0x102a74,_0x301169){super(_0x18d66e,_0x2d6e31,_0x102a74,_0x301169),this[_0x580b('0x4d')]('type',''),this[_0x580b('0x15')](_0x580b('0x17'))['to'](this,_0x580b('0x35'),_0x3b3cfe=>_0x3b3cfe&&_0x3b3cfe[0x0]?_0x3b3cfe[0x0]['type']:''),this[_0x580b('0x15')]('description')['to'](this,_0x580b('0x35'),this,_0x580b('0x45'),(_0x8b8abe,_0x29e0d6)=>{let _0x5e7235='';for(const _0x2cbb68 of _0x8b8abe)_0x5e7235+=_0x580b('0x2a')+ci(_0x2cbb68[_0x580b('0x31')],_0x2cbb68['color'])+_0x580b('0x3d');return _0x29e0d6?_0x5e7235:_0x3b73f7(_0x5e7235,{'limit':0x8c});}),this[_0x580b('0x23')]=null,this[_0x580b('0xf')]=this['_createButton'](_0x89e6e1(_0x18d66e,_0x580b('0x34')),_0xcc0a5e[_0x580b('0x39')],_0x580b('0x2d'),_0x580b('0x2e'),'sw'),this[_0x580b('0xf')][_0x580b('0x15')](_0x580b('0x32'))['to'](this,_0x580b('0x16')),this[_0x580b('0x47')]=this[_0x580b('0x42')](_0x89e6e1(_0x18d66e,'Discard\x20suggestion'),_0xcc0a5e[_0x580b('0x20')],_0x580b('0x2c'),_0x580b('0x3f'),'sw'),this['discardButton']['bind'](_0x580b('0x32'))['to'](this,_0x580b('0x30')),this[_0x580b('0x21')]=new _0x4dbce8(_0x18d66e,this[_0x580b('0x4b')][_0x580b('0x50')],this[_0x580b('0x1')]()),this[_0x580b('0x21')][_0x580b('0x2')]({'attributes':{'class':['ck-suggestion__user',_0x580b('0x4e')]}}),this[_0x580b('0x29')](this[_0x580b('0x25')]());}[_0x580b('0x25')](){const _0x3f25a5=this[_0x580b('0x19')],_0x31eb92=[{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0x52'),_0x580b('0x11')]},'children':[{'tag':_0x580b('0x57'),'children':[{'text':this[_0x580b('0x21')][_0x580b('0x51')]}],'attributes':{'class':[_0x580b('0xa'),'ck-annotation__info-name']}},{'tag':_0x580b('0x3e'),'attributes':{'datetime':_0x3f25a5['to'](_0x580b('0x14')),'class':[_0x580b('0x2f'),_0x580b('0x56')]},'children':[{'text':_0x3f25a5['to'](_0x580b('0x14'),_0x47c33b=>this[_0x580b('0x3b')][_0x580b('0x46')](_0x47c33b))}]}]},{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0x28'),_0x580b('0x1e')]},'children':[this[_0x580b('0xf')],this[_0x580b('0x47')]]},{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0x54')]}}];this[_0x580b('0x4b')]['isExternal']&&_0x31eb92[_0x580b('0x0')]({'tag':_0x580b('0x44'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x580b('0x43')]()}]});const _0x4cb304={'tag':'div','attributes':{'class':[_0x580b('0x4'),_0x3f25a5['if'](_0x580b('0x45'),_0x580b('0x18')),_0x3f25a5['to'](_0x580b('0x17'),_0x2cfffa=>_0x580b('0x40')+_0x2cfffa),this['_config']['disableComments']&&_0x580b('0x4f')],'data-suggestion-id':this[_0x580b('0x4b')]['id'],'data-thread-id':this['_model'][_0x580b('0x12')]['id'],'data-author-id':this[_0x580b('0x4b')]['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0xc'),_0x580b('0x1a')]},'children':[this[_0x580b('0x21')],{'tag':_0x580b('0x44'),'attributes':{'class':['ck-suggestion__main',_0x580b('0x6')]},'children':_0x31eb92}]}]};return this[_0x580b('0x4a')]&&this[_0x580b('0x7')]&&(_0x4cb304[_0x580b('0x13')][_0x580b('0x0')](this[_0x580b('0x4a')],this[_0x580b('0x7')]),this[_0x580b('0x4a')][_0x580b('0x24')](_0x580b('0x3'))['to'](this),this[_0x580b('0x4a')]['delegate']('editorDestroyed')['to'](this),this[_0x580b('0x7')][_0x580b('0x24')](_0x580b('0x3'))['to'](this),this[_0x580b('0x7')][_0x580b('0x24')](_0x580b('0xd'))['to'](this)),_0x4cb304;}['render'](){super[_0x580b('0x41')](),this[_0x580b('0x23')]=this[_0x580b('0x2b')]['querySelector'](_0x580b('0x36')),this[_0x580b('0x23')]['innerHTML']=this[_0x580b('0x33')],this['on'](_0x580b('0x1c'),(_0x998c48,_0x3ecfcc,_0x4000c8)=>{this[_0x580b('0x23')][_0x580b('0x3a')]=_0x4000c8;});}['_createButton'](_0x24d0fc,_0xaa23,_0x2c2b14,_0x2e9ba2,_0x2967c2){const _0x4885e7=new _0x24401e(this[_0x580b('0x38')]);return _0x4885e7[_0x580b('0x4d')]({'label':_0x24d0fc,'icon':_0xaa23,'tooltip':!0x0,'tooltipPosition':_0x2967c2}),_0x4885e7[_0x580b('0x2')]({'attributes':{'class':_0x2c2b14}}),_0x4885e7['on'](_0x580b('0x1f'),()=>{this[_0x580b('0x55')](_0x2e9ba2,this[_0x580b('0x4b')]['id']);}),_0x4885e7;}[_0x580b('0x43')](){return'importWord'===this[_0x580b('0x4b')][_0x580b('0x1d')]['@external'][_0x580b('0xe')]?_0x89e6e1(this[_0x580b('0x38')],_0x580b('0x27')):_0x89e6e1(this['locale'],_0x580b('0x4c'));}[_0x580b('0x1')](){return this['_model'][_0x580b('0x3c')]?_0x580b('0x22')===this['_model'][_0x580b('0x1d')][_0x580b('0x1b')][_0x580b('0xe')]?_0x89e6e1(this[_0x580b('0x38')],_0x580b('0x53'),this[_0x580b('0x4b')][_0x580b('0x48')]['name']):_0x89e6e1(this[_0x580b('0x38')],_0x580b('0x26'),this['_model'][_0x580b('0x48')][_0x580b('0x51')]):null;}}function ci(_0x31b5bd,_0x30fdcc){let _0x285dd7='';return _0x285dd7+=_0x31b5bd['split']('*')['map']((_0x118a20,_0x5a98dc)=>_0x5a98dc%0x2!=0x0?_0x580b('0x9')+ri(_0x118a20)+_0x580b('0x49'):ri(_0x118a20))[_0x580b('0x8')](''),_0x30fdcc&&(_0x285dd7+=_0x580b('0x10')+_0x30fdcc['value']+_0x580b('0xb')+_0x30fdcc['title']+'\x22></span>'),_0x285dd7;}function ri(_0x5a7690){const _0xed6edf=document[_0x580b('0x5')](_0x580b('0x57'));return _0xed6edf[_0x580b('0x37')]=_0x5a7690,_0xed6edf[_0x580b('0x3a')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x258f73,_0x417bd6,_0x2def28){const t=_0x258f73['t'];switch(_0x417bd6){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',_0x2def28);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2def28);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2def28);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2def28);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2def28);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',_0x2def28);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2def28);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',_0x2def28);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2def28);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2def28);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2def28);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2def28);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2def28);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2def28);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2def28);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2def28);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2def28);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2def28);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2def28);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2def28);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2def28);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2def28);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2def28);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'},_0x2def28);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2def28);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2def28);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2def28);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2def28);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2def28);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'},_0x2def28);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2def28);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2def28);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2def28);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2def28);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2def28);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2def28);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2def28);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_WIDTH':return t({'string':'image\x20size','id':'FORMAT_IMAGE_WIDTH'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2def28);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2def28);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'},_0x2def28);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2def28);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'},_0x2def28);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2def28);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2def28);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'},_0x2def28);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'},_0x2def28);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x417bd6;}}
23
+ export function getTranslation(_0x2dfb90,_0x2aecc8,_0x514ce9){const t=_0x2dfb90['t'];switch(_0x2aecc8){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',_0x514ce9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x514ce9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x514ce9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x514ce9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x514ce9);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',_0x514ce9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x514ce9);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x514ce9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x514ce9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x514ce9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x514ce9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x514ce9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x514ce9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x514ce9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x514ce9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x514ce9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x514ce9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x514ce9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x514ce9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x514ce9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x514ce9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x514ce9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x514ce9);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'},_0x514ce9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x514ce9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x514ce9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x514ce9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x514ce9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x514ce9);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'},_0x514ce9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x514ce9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x514ce9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x514ce9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x514ce9);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x514ce9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x514ce9);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x514ce9);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x514ce9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x514ce9);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'},_0x514ce9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x514ce9);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'},_0x514ce9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x514ce9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x514ce9);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'},_0x514ce9);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'},_0x514ce9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x2aecc8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x561a=['createRange','end','createPositionAt','deletion','add','isCollapsed','replace','type','isInContent','schema','splice','getRanges','isArray','push','isObject','length','color','sort','change','createPositionAfter','from','createPositionBefore','\x20[color\x20','next','join','value','isIntersecting','isMultiRange'];(function(_0x131153,_0x561a20){const _0x5d79f3=function(_0x4367d3){while(--_0x4367d3){_0x131153['push'](_0x131153['shift']());}};_0x5d79f3(++_0x561a20);}(_0x561a,0xb4));const _0x5d79=function(_0x131153,_0x561a20){_0x131153=_0x131153-0x0;let _0x5d79f3=_0x561a[_0x131153];return _0x5d79f3;};export function normalizeDescription(_0x5e26c1){return Array[_0x5d79('0x0')](_0x5e26c1)||(_0x5e26c1=[_0x5e26c1]),_0x5e26c1['map'](_0x12601c=>{const _0x17569a=_0x12601c['content'][_0x5d79('0x16')](/\*/g,''),_0x2ed3a8=_0x12601c['color']?_0x5d79('0xa')+_0x12601c[_0x5d79('0x4')][_0x5d79('0xd')]+']':'';return'['+_0x12601c[_0x5d79('0x17')]+']\x20'+_0x17569a+_0x2ed3a8;})[_0x5d79('0xc')](';\x20');}export function sortSuggestions(_0x15db55){return _0x15db55[_0x5d79('0x5')]((_0x3ff18d,_0x333ab4)=>'deletion'==_0x3ff18d[_0x5d79('0x17')]&&_0x5d79('0x13')!=_0x333ab4[_0x5d79('0x17')]?-0x1:_0x5d79('0x13')!=_0x3ff18d[_0x5d79('0x17')]&&'deletion'==_0x333ab4['type']?0x1:0x0);}export function getSelectedSuggestions(_0x57a105,_0x2f904a){const _0x1f6a89=Array[_0x5d79('0x8')](_0x57a105[_0x5d79('0x1b')]()),_0x42f344=new Set();for(const _0x51a4c0 of _0x2f904a)if(_0x51a4c0[_0x5d79('0x18')])for(const _0x37ce34 of _0x1f6a89)for(const _0x3a1ba5 of _0x51a4c0[_0x5d79('0x1b')]())(_0x37ce34[_0x5d79('0xe')](_0x3a1ba5)||_0x57a105[_0x5d79('0x15')]&&!_0x51a4c0[_0x5d79('0xf')]&&_0x51a4c0[_0x5d79('0xb')]&&_0x3a1ba5[_0x5d79('0x11')]['isTouching'](_0x37ce34['start']))&&_0x42f344[_0x5d79('0x14')](_0x51a4c0);return _0x42f344;}export function getRangesOfBlockGroups(_0x52f1f7,_0x41e7c3){let _0x18292e,_0xd270a7=0x0;const _0x427bad=[],_0x6cef55=_0x41e7c3[_0x5d79('0x19')];for(;_0xd270a7<_0x52f1f7[_0x5d79('0x3')];){const _0xfc77c4=_0x52f1f7[_0xd270a7],_0x10c798=_0x52f1f7[_0xd270a7+0x1];_0x18292e||(_0x18292e=_0x41e7c3['createPositionBefore'](_0xfc77c4)),co(_0x41e7c3,_0xfc77c4,_0x10c798)||(_0x427bad[_0x5d79('0x1')](_0x41e7c3[_0x5d79('0x10')](_0x18292e,_0x6cef55[_0x5d79('0x2')](_0xfc77c4)?_0x41e7c3[_0x5d79('0x7')](_0xfc77c4):_0x41e7c3[_0x5d79('0x12')](_0xfc77c4,_0x5d79('0x11')))),_0x18292e=null),_0xd270a7++;}return _0x427bad;}function co(_0x34d170,_0x4899ee,_0x49e56b){if(!_0x49e56b)return!0x1;const _0x4dfda4=_0x34d170[_0x5d79('0x7')](_0x4899ee),_0x127cac=_0x34d170[_0x5d79('0x9')](_0x49e56b);return _0x4dfda4['isTouching'](_0x127cac);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x5f95a,_0x946be,_0xb33ad5){for(;_0xb33ad5[_0x5d79('0x3')];){const _0x32caf7=_0xb33ad5[_0x5d79('0x1a')](0x0,0x64);_0x5f95a[_0x5d79('0x6')](()=>{for(const _0xe4f556 of _0x32caf7)_0xe4f556['isInContent']&&_0x946be['execute'](_0xe4f556['id']);});}}
23
+ const _0x82fa=['deletion','isMultiRange','color','length','isObject','createPositionAfter','isInContent','end','from','createRange','isArray','createPositionBefore','getRanges','replace','\x20[color\x20','type','start','execute','change','value','map','next','schema','push','isTouching'];(function(_0x238e3a,_0x82faa2){const _0x38e1cc=function(_0x4776d3){while(--_0x4776d3){_0x238e3a['push'](_0x238e3a['shift']());}};_0x38e1cc(++_0x82faa2);}(_0x82fa,0xf9));const _0x38e1=function(_0x238e3a,_0x82faa2){_0x238e3a=_0x238e3a-0x0;let _0x38e1cc=_0x82fa[_0x238e3a];return _0x38e1cc;};export function normalizeDescription(_0x6cabad){return Array[_0x38e1('0xb')](_0x6cabad)||(_0x6cabad=[_0x6cabad]),_0x6cabad[_0x38e1('0x15')](_0x5ddb06=>{const _0x273fd7=_0x5ddb06['content'][_0x38e1('0xe')](/\*/g,''),_0x2eb155=_0x5ddb06[_0x38e1('0x3')]?_0x38e1('0xf')+_0x5ddb06[_0x38e1('0x3')][_0x38e1('0x14')]+']':'';return'['+_0x5ddb06[_0x38e1('0x10')]+']\x20'+_0x273fd7+_0x2eb155;})['join'](';\x20');}export function sortSuggestions(_0x3a9c5c){return _0x3a9c5c['sort']((_0x5a3346,_0x5915b1)=>'deletion'==_0x5a3346[_0x38e1('0x10')]&&_0x38e1('0x1')!=_0x5915b1[_0x38e1('0x10')]?-0x1:_0x38e1('0x1')!=_0x5a3346['type']&&_0x38e1('0x1')==_0x5915b1[_0x38e1('0x10')]?0x1:0x0);}export function getSelectedSuggestions(_0x1e0ffa,_0x7a9367){const _0x2ad3a1=Array[_0x38e1('0x9')](_0x1e0ffa[_0x38e1('0xd')]()),_0x117e42=new Set();for(const _0x573f41 of _0x7a9367)if(_0x573f41['isInContent'])for(const _0x22ed89 of _0x2ad3a1)for(const _0x144674 of _0x573f41[_0x38e1('0xd')]())(_0x22ed89['isIntersecting'](_0x144674)||_0x1e0ffa['isCollapsed']&&!_0x573f41[_0x38e1('0x2')]&&_0x573f41[_0x38e1('0x16')]&&_0x144674[_0x38e1('0x8')]['isTouching'](_0x22ed89[_0x38e1('0x11')]))&&_0x117e42['add'](_0x573f41);return _0x117e42;}export function getRangesOfBlockGroups(_0x54505d,_0x23dd4d){let _0x51abee,_0x23a07f=0x0;const _0x48915e=[],_0x3aab07=_0x23dd4d[_0x38e1('0x17')];for(;_0x23a07f<_0x54505d[_0x38e1('0x4')];){const _0x3013b6=_0x54505d[_0x23a07f],_0x5b92ce=_0x54505d[_0x23a07f+0x1];_0x51abee||(_0x51abee=_0x23dd4d[_0x38e1('0xc')](_0x3013b6)),co(_0x23dd4d,_0x3013b6,_0x5b92ce)||(_0x48915e[_0x38e1('0x18')](_0x23dd4d[_0x38e1('0xa')](_0x51abee,_0x3aab07[_0x38e1('0x5')](_0x3013b6)?_0x23dd4d[_0x38e1('0x6')](_0x3013b6):_0x23dd4d['createPositionAt'](_0x3013b6,'end'))),_0x51abee=null),_0x23a07f++;}return _0x48915e;}function co(_0x2cdac4,_0x2a1bb0,_0x82c417){if(!_0x82c417)return!0x1;const _0x1b5866=_0x2cdac4[_0x38e1('0x6')](_0x2a1bb0),_0x4c85bd=_0x2cdac4[_0x38e1('0xc')](_0x82c417);return _0x1b5866[_0x38e1('0x0')](_0x4c85bd);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0xf296ee,_0x2ffda1,_0x143fd7){for(;_0x143fd7['length'];){const _0x3e931b=_0x143fd7['splice'](0x0,0x64);_0xf296ee[_0x38e1('0x13')](()=>{for(const _0x1d773d of _0x3e931b)_0x1d773d[_0x38e1('0x7')]&&_0x2ffda1[_0x38e1('0x12')](_0x1d773d['id']);});}}