@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231212.0 → 0.0.0-nightly-20231214.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 (142) hide show
  1. package/build/track-changes.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/he.po +1 -1
  53. package/lang/translations/hi.po +1 -1
  54. package/lang/translations/hu.po +1 -1
  55. package/lang/translations/id.po +1 -1
  56. package/lang/translations/it.po +1 -1
  57. package/lang/translations/ja.po +1 -1
  58. package/lang/translations/ko.po +1 -1
  59. package/lang/translations/lt.po +1 -1
  60. package/lang/translations/lv.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt-br.po +1 -1
  66. package/lang/translations/pt.po +1 -1
  67. package/lang/translations/ro.po +1 -1
  68. package/lang/translations/ru.po +1 -1
  69. package/lang/translations/sk.po +1 -1
  70. package/lang/translations/sr.po +1 -1
  71. package/lang/translations/sv.po +1 -1
  72. package/lang/translations/th.po +1 -1
  73. package/lang/translations/tr.po +1 -1
  74. package/lang/translations/uk.po +1 -1
  75. package/lang/translations/vi.po +1 -1
  76. package/lang/translations/zh-cn.po +1 -1
  77. package/lang/translations/zh.po +1 -1
  78. package/package.json +3 -3
  79. package/src/commands/acceptsuggestioncommand.js +1 -1
  80. package/src/commands/discardsuggestioncommand.js +1 -1
  81. package/src/commands/executeonallsuggestionscommand.js +1 -1
  82. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  83. package/src/commands/trackchangescommand.js +1 -1
  84. package/src/integrations/aiassistant.js +1 -1
  85. package/src/integrations/alignment.js +1 -1
  86. package/src/integrations/basicstyles.js +1 -1
  87. package/src/integrations/blockquote.js +1 -1
  88. package/src/integrations/ckbox.js +1 -1
  89. package/src/integrations/codeblock.js +1 -1
  90. package/src/integrations/comments.js +1 -1
  91. package/src/integrations/deletecommand.js +1 -1
  92. package/src/integrations/documentlist.js +1 -1
  93. package/src/integrations/documentlistproperties.js +1 -1
  94. package/src/integrations/entercommand.js +1 -1
  95. package/src/integrations/findandreplace.js +1 -1
  96. package/src/integrations/font.js +1 -1
  97. package/src/integrations/formatpainter.js +1 -1
  98. package/src/integrations/heading.js +1 -1
  99. package/src/integrations/highlight.js +1 -1
  100. package/src/integrations/horizontalline.js +1 -1
  101. package/src/integrations/htmlembed.js +1 -1
  102. package/src/integrations/image.js +1 -1
  103. package/src/integrations/imagereplace.js +1 -1
  104. package/src/integrations/imagestyle.js +1 -1
  105. package/src/integrations/importword.js +1 -1
  106. package/src/integrations/indent.js +1 -1
  107. package/src/integrations/inputcommand.js +1 -1
  108. package/src/integrations/link.js +1 -1
  109. package/src/integrations/list.js +1 -1
  110. package/src/integrations/listproperties.js +1 -1
  111. package/src/integrations/mediaembed.js +1 -1
  112. package/src/integrations/mention.js +1 -1
  113. package/src/integrations/pagebreak.js +1 -1
  114. package/src/integrations/paragraph.js +1 -1
  115. package/src/integrations/removeformat.js +1 -1
  116. package/src/integrations/restrictededitingmode.js +1 -1
  117. package/src/integrations/shiftentercommand.js +1 -1
  118. package/src/integrations/standardeditingmode.js +1 -1
  119. package/src/integrations/style.js +1 -1
  120. package/src/integrations/table.js +1 -1
  121. package/src/integrations/tablecaption.js +1 -1
  122. package/src/integrations/tableclipboard.js +1 -1
  123. package/src/integrations/tablecolumnresize.js +1 -1
  124. package/src/integrations/tableheadings.js +1 -1
  125. package/src/integrations/tablemergesplit.js +1 -1
  126. package/src/integrations/tableofcontents.js +1 -1
  127. package/src/integrations/tableproperties.js +1 -1
  128. package/src/integrations/template.js +1 -1
  129. package/src/integrations/title.js +1 -1
  130. package/src/integrations/undo.js +1 -1
  131. package/src/integrations/utils.js +1 -1
  132. package/src/suggestion.js +1 -1
  133. package/src/suggestiondescriptionfactory.js +1 -1
  134. package/src/trackchanges.js +1 -1
  135. package/src/trackchangesdata.js +1 -1
  136. package/src/trackchangesediting.js +1 -1
  137. package/src/trackchangesui.js +1 -1
  138. package/src/ui/suggestioncontroller.js +1 -1
  139. package/src/ui/view/basesuggestionthreadview.js +1 -1
  140. package/src/ui/view/suggestionthreadview.js +1 -1
  141. package/src/utils/common-translations.js +1 -1
  142. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x477b=['change:previous','getDescriptions','getSuggestion','descriptionParts','getByInnerView','stopListening','isInContent','getRanges','acceptButton','_annotationViews','value','isDirty','trackChanges.SuggestionThreadView','editor','get','view','destroy','comments.maxCommentsWhenCollapsed','separator','SuggestionThreadView','commandName','reduce','CommentsRepository','_handleSuggestionControllerDelayed','Discard\x20all\x20selected\x20suggestions','push','Accept\x20all\x20selected\x20suggestions','from','_suggestionToController','isMultiRange','head','suggestionUnloaded','getMarkers','acceptSelectedSuggestions','Accept\x20all\x20suggestions','change:activeAnnotations','getMarkerNames','set','editing','createAnnotation','_updateController','suggestionLoaded','acceptAllSuggestions','listenTo','delete','trackChanges','filter','getAllAdjacentSuggestions','CommentView','values','type','bind','Annotations','EditorAnnotations','_descriptionFactory','mainView','TrackChangesEditing','trackChanges.disableComments','remove','registerAnnotation','_createUIButton','init','isOn','comments.maxThreadTotalWeight','lowest','activeAnnotations','locale','Discard\x20all\x20suggestions','buttonView','model','createCommentThreadController','has','toMany','isEnabled','keys','componentFactory','arrowView','add','source','comments.maxCommentCharsWhenCollapsed','suggestion-','config','_refreshActiveMarkers','actionView','_destroyController','comments','focus','clear','execute','size','some','discardSelectedSuggestions','pluginName','discardButton','commentThread','createAnnotationView','CommentsUI','unbind','getJoined','_bindAnnotationToEditors','addComment','commands','previous','_disableComments','button','_handleControllerBuffer','TrackChangesUI','_viewToController','discardAllSuggestions','_initializeController','plugins','_unbindEditors'];(function(_0x5936ad,_0x477b4d){const _0x224259=function(_0x5df559){while(--_0x5df559){_0x5936ad['push'](_0x5936ad['shift']());}};_0x224259(++_0x477b4d);}(_0x477b,0x1db));const _0x2242=function(_0x5936ad,_0x477b4d){_0x5936ad=_0x5936ad-0x0;let _0x224259=_0x477b[_0x5936ad];return _0x224259;};import{Plugin as _0x122e10}from'ckeditor5/src/core';import{Collection as _0x2e1fd7}from'ckeditor5/src/utils';import{Model as _0x31c54f,SplitButtonView as _0x5be723,createDropdown as _0x47c0d1,addListToDropdown as _0x216183}from'ckeditor5/src/ui';import{Users as _0x277c2f,getDateTimeFormatter as _0xeb957,getAllMarkersDomElementsSorted as _0x25a346}from'ckeditor5-collaboration/src/collaboration-core';import _0x3b9553 from'./trackchangesediting';import _0x121240 from'./ui/suggestioncontroller';import _0x2b594a from'./ui/view/suggestionthreadview';import{getTranslation as _0x514eb5}from'./utils/common-translations';import _0x244844 from'../theme/icons/track-changes.svg';export default class d extends _0x122e10{static get['requires'](){return[_0x3b9553,_0x277c2f,'CommentsRepository','Annotations','EditorAnnotations'];}static get[_0x2242('0x41')](){return _0x2242('0x4f');}constructor(_0x1495ee){super(_0x1495ee),this[_0x2242('0x1')]=new Map(),this[_0x2242('0x50')]=new Map(),this[_0x2242('0x5e')]=new Map(),this[_0x2242('0x4e')]=new Map();const _0x296dee=this[_0x2242('0x62')]['config'];_0x296dee['define'](_0x2242('0x61'),_0x2b594a),_0x296dee['define']('trackChanges.disableComments',!0x1),this[_0x2242('0x4c')]=_0x296dee[_0x2242('0x63')](_0x2242('0x1e'));}[_0x2242('0x6c')](_0xce580f,_0x1dd1e3){0x0===this[_0x2242('0x4e')][_0x2242('0x3e')]&&setTimeout(()=>{for(const [_0x5f367d,_0x132fd0]of this[_0x2242('0x4e')]){const _0x5572b9=this['_suggestionToController'][_0x2242('0x2c')](_0x5f367d);_0x5572b9||_0x132fd0?_0x5572b9&&_0x132fd0&&this[_0x2242('0x39')](_0x5f367d):this['_initializeController'](_0x5f367d);}this['editor'][_0x2242('0x53')]['get'](_0x2242('0x1a'))['refreshSelectedViews'](),this[_0x2242('0x37')](),this[_0x2242('0x4e')][_0x2242('0x3c')]();},0xa),this['_handleControllerBuffer']['set'](_0xce580f,_0x1dd1e3);}[_0x2242('0x22')](){const _0x3a26b9=this[_0x2242('0x62')],_0x287db2=_0x3a26b9[_0x2242('0x53')][_0x2242('0x63')]('TrackChangesEditing'),_0x692f82=_0x3a26b9[_0x2242('0x53')]['get']('Annotations'),_0xbd2be4=_0x3a26b9[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x1a')),_0x322872=_0x3a26b9[_0x2242('0x53')]['get'](_0x2242('0x6b'));_0x3a26b9['ui'][_0x2242('0x30')][_0x2242('0x32')]('trackChanges',_0x58052b=>this[_0x2242('0x21')](_0x58052b)),_0xbd2be4['addSourceCollector'](()=>{const _0x4feafc=[];for(const [_0x49792d,_0x20a3b9]of Array['from'](this[_0x2242('0x1')])){const _0x50d1ed=_0x49792d[_0x2242('0x14')](),_0x479d95=[];for(const _0x4b2ef2 of _0x50d1ed){if(!_0x4b2ef2[_0x2242('0x5b')])continue;if(_0x4b2ef2[_0x2242('0x2')]){_0x479d95[_0x2242('0x6e')](..._0x4b2ef2[_0x2242('0x5c')]());continue;}const _0x18cd4d=_0x4b2ef2['getFirstRange']();if(_0x479d95['length']>0x0){const _0x369402=_0x479d95[0x0][_0x2242('0x47')](_0x18cd4d);if(_0x369402){_0x479d95[0x0]=_0x369402;continue;}}_0x479d95[_0x2242('0x6e')](_0x18cd4d);}_0x4feafc[_0x2242('0x6e')]([_0x20a3b9['view'],_0x479d95]);}return _0x4feafc;}),this['listenTo'](_0x287db2,_0x2242('0xe'),(_0x4a346a,_0x21ed29)=>{this['listenTo'](_0x21ed29,'change:previous',(_0x2e585e,_0x3600e6,_0x302165,_0x221717)=>{_0x21ed29[_0x2242('0x5b')]&&(null==_0x302165?(this['_updateController'](_0x221717[_0x2242('0x3')]),this[_0x2242('0x6c')](_0x21ed29,!0x1)):(this[_0x2242('0xd')](_0x302165['head']),null==_0x221717&&this['_handleSuggestionControllerDelayed'](_0x21ed29,!0x0)));}),null!==_0x21ed29[_0x2242('0x4b')]?this['_updateController'](_0x21ed29[_0x2242('0x3')]):this['_handleSuggestionControllerDelayed'](_0x21ed29,!0x1);}),this[_0x2242('0x10')](_0x287db2,_0x2242('0x4'),(_0x2d26b7,_0x3eb5e7,_0x58d2c3)=>{this[_0x2242('0x5a')](_0x3eb5e7,_0x2242('0x55')),this[_0x2242('0x4e')][_0x2242('0x11')](_0x3eb5e7),this['_suggestionToController'][_0x2242('0x2c')](_0x3eb5e7)&&this[_0x2242('0x39')](_0x3eb5e7),_0x58d2c3&&this['_updateController'](_0x58d2c3['head']);}),this['listenTo'](_0x287db2,'suggestionChanged',(_0x1a3181,_0x1f28fc)=>{this[_0x2242('0xd')](_0x1f28fc);}),this[_0x2242('0x10')](_0x692f82,_0x2242('0x8'),()=>{this[_0x2242('0x37')]();}),this['listenTo'](_0x322872,_0x2242('0x49'),(_0x2f7137,{threadId:_0xbafb20,isFromAdapter:_0x1aaead})=>{if(_0x1aaead||!_0x287db2['hasSuggestion'](_0xbafb20))return;const _0x4550fe=_0x287db2[_0x2242('0x57')](_0xbafb20);this[_0x2242('0x1')][_0x2242('0x63')](_0x4550fe)[_0x2242('0x64')][_0x2242('0x3b')]();},{'priority':_0x2242('0x25')});}[_0x2242('0x37')](){const _0x10a4c0=this[_0x2242('0x62')][_0x2242('0x53')]['get'](_0x2242('0x19')),_0x596a1f=this['editor']['plugins'][_0x2242('0x63')]('TrackChangesEditing'),_0x3ce1b1=Array[_0x2242('0x0')](_0x10a4c0[_0x2242('0x26')],_0x2e2f50=>_0x2e2f50['innerView'])[_0x2242('0x13')](_0x2186cd=>this[_0x2242('0x50')]['has'](_0x2186cd)),_0x2cb5e9=[];for(const _0x148209 of _0x3ce1b1){const _0x967b39=this['_viewToController']['get'](_0x148209)[_0x2242('0x2a')][_0x2242('0x14')]();_0x2cb5e9['push'](..._0x967b39[_0x2242('0x6a')]((_0x31e189,_0x22cd22)=>[..._0x31e189,..._0x22cd22[_0x2242('0x9')]()],[]));}_0x596a1f['activeMarkers']=_0x2cb5e9;}[_0x2242('0x21')](_0x39a000){const _0x4340ec=_0x47c0d1(_0x39a000,_0x5be723),_0x8839ea=this['editor'][_0x2242('0x4a')][_0x2242('0x63')](_0x2242('0x12')),_0x4f1663=_0x514eb5(_0x39a000,'Track\x20changes');_0x4340ec[_0x2242('0x29')]['set']({'tooltip':_0x4f1663,'label':_0x4f1663,'icon':_0x244844}),_0x4340ec[_0x2242('0x29')][_0x2242('0x18')]('isOn')['to'](_0x8839ea,_0x2242('0x5f')),_0x4340ec[_0x2242('0x29')]['on'](_0x2242('0x3d'),()=>{_0x8839ea['execute'](),this[_0x2242('0x62')][_0x2242('0xb')][_0x2242('0x64')]['focus']();});const _0x2af166=new _0x2e1fd7(),_0x291c21=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4f1663,'commandName':_0x2242('0x12')}},{'type':_0x2242('0x67')},{'type':_0x2242('0x4d'),'model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x7')),'commandName':_0x2242('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x6f')),'commandName':_0x2242('0x6')}},{'type':_0x2242('0x4d'),'model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x28')),'commandName':_0x2242('0x51')}},{'type':'button','model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x6d')),'commandName':_0x2242('0x40')}}];for(const _0x44be34 of _0x291c21){let _0x3b0b0e={'type':'separator'};if(_0x44be34[_0x2242('0x2a')]){const _0x15e3c6=new _0x31c54f(_0x44be34['model']),_0x126099=this['editor'][_0x2242('0x4a')][_0x2242('0x63')](_0x15e3c6[_0x2242('0x69')]);_0x15e3c6['bind'](_0x2242('0x23'),'isEnabled')['to'](_0x126099,_0x2242('0x5f'),_0x2242('0x2e')),_0x3b0b0e={'type':_0x44be34[_0x2242('0x17')],'model':_0x15e3c6};}_0x2af166[_0x2242('0x32')](_0x3b0b0e);}_0x216183(_0x4340ec,_0x2af166);const _0x41d546=_0x291c21[_0x2242('0x13')](_0x41d732=>null!=_0x41d732[_0x2242('0x2a')])['map'](_0x17bbbd=>this[_0x2242('0x62')]['commands']['get'](_0x17bbbd[_0x2242('0x2a')][_0x2242('0x69')])),_0x47eddd=_0x4340ec[_0x2242('0x29')];return _0x47eddd['actionView']['unbind'](_0x2242('0x2e')),_0x47eddd['arrowView'][_0x2242('0x46')](_0x2242('0x2e')),_0x47eddd[_0x2242('0x38')][_0x2242('0x18')]('isEnabled')['to'](_0x8839ea,_0x2242('0x2e')),_0x47eddd[_0x2242('0x31')][_0x2242('0x18')](_0x2242('0x2e'))[_0x2242('0x2d')](_0x41d546,'isEnabled',(..._0x4c9299)=>_0x4c9299[_0x2242('0x3f')](_0x4f203b=>_0x4f203b)),_0x4340ec['on']('execute',_0xba25b3=>{this[_0x2242('0x62')]['execute'](_0xba25b3[_0x2242('0x33')][_0x2242('0x69')]),this[_0x2242('0x62')][_0x2242('0xb')][_0x2242('0x64')][_0x2242('0x3b')]();}),_0x4340ec;}[_0x2242('0x52')](_0x42ccff){const _0xdd05aa=this[_0x2242('0x62')],_0x6dcbff=_0xdd05aa[_0x2242('0x36')],_0x263719=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x19')),_0x28c836=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x6b')),_0x1c13cf=_0xdd05aa['plugins'][_0x2242('0x63')](_0x2242('0x1a')),_0x27ad4b=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x277c2f)['me'],_0x48d512=_0x6dcbff['get'](_0x2242('0x12'))[_0x2242('0x68')],{CommentsListView:_0x247148,CommentThreadInputView:_0x572d10}=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x45'));let _0x187fc2,_0x1c11f7;this['_annotationViews']['has'](_0x42ccff['id'])?(_0x1c11f7=this[_0x2242('0x5e')][_0x2242('0x63')](_0x42ccff['id']),_0x187fc2=_0x1c11f7[_0x2242('0x1c')]):(_0x187fc2=new _0x48d512(_0xdd05aa[_0x2242('0x27')],_0x42ccff,_0x27ad4b,{'disableComments':this[_0x2242('0x4c')],'editorConfig':_0x6dcbff['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x6dcbff[_0x2242('0x63')](_0x2242('0x66')),'maxThreadTotalWeight':_0x6dcbff[_0x2242('0x63')](_0x2242('0x24')),'maxCommentCharsWhenCollapsed':_0x6dcbff[_0x2242('0x63')](_0x2242('0x34')),'formatDateTime':_0xeb957(_0x6dcbff[_0x2242('0x63')](_0x2242('0x27'))),'CommentView':_0x6dcbff[_0x2242('0x63')](_0x2242('0x3a'))[_0x2242('0x15')],'CommentsListView':_0x247148,'CommentThreadInputView':_0x572d10}),_0x187fc2[_0x2242('0x5d')]['on']('execute',()=>{_0xdd05aa[_0x2242('0xb')][_0x2242('0x64')]['focus']();}),_0x187fc2[_0x2242('0x42')]['on'](_0x2242('0x3d'),()=>{_0xdd05aa[_0x2242('0xb')][_0x2242('0x64')][_0x2242('0x3b')]();}),_0x1c11f7=_0x263719[_0x2242('0x44')](this['editor']['locale'],_0x187fc2),_0x1c11f7[_0x2242('0x18')](_0x2242('0x60'))['to'](_0x187fc2,_0x2242('0x60')),_0x1c11f7[_0x2242('0x18')]('length')['to'](_0x187fc2),_0x1c11f7[_0x2242('0x18')]('type')['to'](_0x187fc2,'type',_0x15d34c=>'suggestion-'+_0x15d34c),this['_annotationViews'][_0x2242('0xa')](_0x42ccff['id'],_0x1c11f7));const _0x4be4dc=_0x28c836[_0x2242('0x2b')](_0x42ccff[_0x2242('0x43')],_0x187fc2),_0x542571=new _0x121240(_0xdd05aa,_0x42ccff,_0x187fc2,_0x4be4dc),_0x641be7=_0x42ccff['getAllAdjacentSuggestions']()[_0x2242('0x13')](_0x5df7ad=>_0x5df7ad[_0x2242('0x5b')]);_0x187fc2['descriptionParts']=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x1d'))[_0x2242('0x1b')][_0x2242('0x56')](_0x641be7),this[_0x2242('0x1')][_0x2242('0xa')](_0x42ccff,_0x542571),this[_0x2242('0x50')][_0x2242('0xa')](_0x187fc2,_0x542571);const _0x7cf7f8=_0x263719[_0x2242('0xc')]({'view':_0x1c11f7,'target':()=>{const _0xa25e93=[],_0x4414dd=_0x42ccff['getAllAdjacentSuggestions']()[_0x2242('0x13')](_0x4c74f8=>_0x4c74f8[_0x2242('0x5b')]);for(const _0x8c875c of _0x4414dd)_0xa25e93[_0x2242('0x6e')](..._0x8c875c[_0x2242('0x5')]());return _0x25a346(_0xdd05aa[_0x2242('0xb')],_0xa25e93);},'type':()=>_0x2242('0x35')+_0x542571['view'][_0x2242('0x17')]});_0x28c836[_0x2242('0x48')](_0x187fc2,_0x7cf7f8),_0x263719[_0x2242('0x32')](_0x7cf7f8),_0x1c13cf[_0x2242('0x20')](_0x7cf7f8);}[_0x2242('0x39')](_0x399a25){const _0x296dc6=this[_0x2242('0x62')][_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x6b')),_0x30e90b=this[_0x2242('0x62')][_0x2242('0x53')]['get']('Annotations'),_0x74c440=this['_suggestionToController'][_0x2242('0x63')](_0x399a25),_0x296db2=_0x74c440[_0x2242('0x64')],_0x5730fc=_0x30e90b[_0x2242('0x59')](_0x296db2);_0x296dc6[_0x2242('0x54')](_0x296db2),_0x5730fc&&_0x30e90b[_0x2242('0x1f')](_0x5730fc),this['_suggestionToController'][_0x2242('0x11')](_0x399a25),this[_0x2242('0x50')][_0x2242('0x11')](_0x296db2),_0x74c440[_0x2242('0x65')]();}[_0x2242('0xd')](_0x181e8c){if(!_0x181e8c[_0x2242('0x5b')]||!this[_0x2242('0x1')]['has'](_0x181e8c))return;const _0x3e856b=this[_0x2242('0x62')][_0x2242('0x53')]['get'](_0x2242('0x1d')),_0xb7b6f2=this['_suggestionToController'][_0x2242('0x63')](_0x181e8c),_0x219e3b=_0x181e8c[_0x2242('0x14')]();_0xb7b6f2[_0x2242('0x64')][_0x2242('0x58')]=_0x3e856b[_0x2242('0x1b')][_0x2242('0x56')](_0x219e3b);}[_0x2242('0x65')](){for(const _0x3202a3 of this[_0x2242('0x1')][_0x2242('0x2f')]())this[_0x2242('0x39')](_0x3202a3);for(const _0x54d721 of this[_0x2242('0x5e')][_0x2242('0x16')]())_0x54d721[_0x2242('0x1c')]['destroy']();super['destroy']();}}
23
+ const _0x1351=['has','mainView','_bindAnnotationToEditors','view','createAnnotationView','innerView','getByInnerView','comments.maxThreadTotalWeight','acceptSelectedSuggestions','model','comments.maxCommentCharsWhenCollapsed','source','_viewToController','init','execute','editing','some','hasSuggestion','EditorAnnotations','descriptionParts','_destroyController','trackChanges','_updateController','toMany','_descriptionFactory','_disableComments','Discard\x20all\x20suggestions','editor','push','unbind','stopListening','getRanges','_handleControllerBuffer','acceptButton','bind','_createUIButton','trackChanges.SuggestionThreadView','button','value','CommentsRepository','filter','define','type','getMarkers','_initializeController','focus','TrackChangesEditing','buttonView','getFirstRange','Accept\x20all\x20selected\x20suggestions','suggestionUnloaded','_suggestionToController','addSourceCollector','plugins','suggestionLoaded','getMarkerNames','Track\x20changes','CommentView','commands','activeMarkers','add','destroy','_handleSuggestionControllerDelayed','isOn','refreshSelectedViews','discardAllSuggestions','from','change:activeAnnotations','delete','discardButton','getJoined','actionView','CommentsUI','comments','discardSelectedSuggestions','commandName','acceptAllSuggestions','commentThread','comments.editorConfig','get','suggestionChanged','change:previous','reduce','previous','componentFactory','separator','locale','getSuggestion','listenTo','set','_annotationViews','Accept\x20all\x20suggestions','Annotations','activeAnnotations','isInContent','arrowView','SuggestionThreadView','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','isEnabled','length','clear','_unbindEditors','createCommentThreadController','head','getDescriptions','map','_refreshActiveMarkers'];(function(_0x3a85a0,_0x1351d7){const _0x4a59fa=function(_0x567a1d){while(--_0x567a1d){_0x3a85a0['push'](_0x3a85a0['shift']());}};_0x4a59fa(++_0x1351d7);}(_0x1351,0x15a));const _0x4a59=function(_0x3a85a0,_0x1351d7){_0x3a85a0=_0x3a85a0-0x0;let _0x4a59fa=_0x1351[_0x3a85a0];return _0x4a59fa;};import{Plugin as _0x179c75}from'ckeditor5/src/core';import{Collection as _0x55f475}from'ckeditor5/src/utils';import{Model as _0x4d828c,SplitButtonView as _0x4b4919,createDropdown as _0x2ae876,addListToDropdown as _0x5c5488}from'ckeditor5/src/ui';import{Users as _0x56aa66,getDateTimeFormatter as _0x484a42,getAllMarkersDomElementsSorted as _0x745c32}from'ckeditor5-collaboration/src/collaboration-core';import _0x4fba90 from'./trackchangesediting';import _0x1b3cda from'./ui/suggestioncontroller';import _0x3e3bf4 from'./ui/view/suggestionthreadview';import{getTranslation as _0x2fcd51}from'./utils/common-translations';import _0x48cb6a from'../theme/icons/track-changes.svg';export default class d extends _0x179c75{static get['requires'](){return[_0x4fba90,_0x56aa66,'CommentsRepository',_0x4a59('0x46'),_0x4a59('0x68')];}static get['pluginName'](){return _0x4a59('0x4b');}constructor(_0x27eba9){super(_0x27eba9),this[_0x4a59('0x1d')]=new Map(),this[_0x4a59('0x62')]=new Map(),this[_0x4a59('0x44')]=new Map(),this[_0x4a59('0xa')]=new Map();const _0x27e2c0=this[_0x4a59('0x5')]['config'];_0x27e2c0[_0x4a59('0x13')](_0x4a59('0xe'),_0x3e3bf4),_0x27e2c0[_0x4a59('0x13')]('trackChanges.disableComments',!0x1),this[_0x4a59('0x3')]=_0x27e2c0['get']('trackChanges.disableComments');}[_0x4a59('0x28')](_0x3ad8b6,_0xf95421){0x0===this[_0x4a59('0xa')]['size']&&setTimeout(()=>{for(const [_0x9508f5,_0x13805d]of this[_0x4a59('0xa')]){const _0xb73b69=this[_0x4a59('0x1d')][_0x4a59('0x56')](_0x9508f5);_0xb73b69||_0x13805d?_0xb73b69&&_0x13805d&&this['_destroyController'](_0x9508f5):this[_0x4a59('0x16')](_0x9508f5);}this[_0x4a59('0x5')][_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x68'))[_0x4a59('0x2a')](),this[_0x4a59('0x55')](),this['_handleControllerBuffer'][_0x4a59('0x4f')]();},0xa),this[_0x4a59('0xa')]['set'](_0x3ad8b6,_0xf95421);}[_0x4a59('0x63')](){const _0x472411=this[_0x4a59('0x5')],_0x3206e1=_0x472411[_0x4a59('0x1f')]['get'](_0x4a59('0x18')),_0x587591=_0x472411[_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x46')),_0x4c6408=_0x472411[_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x68')),_0x1d8fc4=_0x472411['plugins']['get'](_0x4a59('0x11'));_0x472411['ui'][_0x4a59('0x3e')]['add']('trackChanges',_0x199020=>this[_0x4a59('0xd')](_0x199020)),_0x4c6408[_0x4a59('0x1e')](()=>{const _0x2485b4=[];for(const [_0x673c0b,_0x7208be]of Array[_0x4a59('0x2c')](this[_0x4a59('0x1d')])){const _0x4010fd=_0x673c0b['getAllAdjacentSuggestions'](),_0x570084=[];for(const _0x50e9c0 of _0x4010fd){if(!_0x50e9c0[_0x4a59('0x48')])continue;if(_0x50e9c0['isMultiRange']){_0x570084[_0x4a59('0x6')](..._0x50e9c0[_0x4a59('0x9')]());continue;}const _0x51218f=_0x50e9c0[_0x4a59('0x1a')]();if(_0x570084[_0x4a59('0x4e')]>0x0){const _0x3eba36=_0x570084[0x0][_0x4a59('0x30')](_0x51218f);if(_0x3eba36){_0x570084[0x0]=_0x3eba36;continue;}}_0x570084[_0x4a59('0x6')](_0x51218f);}_0x2485b4['push']([_0x7208be[_0x4a59('0x59')],_0x570084]);}return _0x2485b4;}),this[_0x4a59('0x42')](_0x3206e1,_0x4a59('0x20'),(_0x333d32,_0x56746e)=>{this[_0x4a59('0x42')](_0x56746e,_0x4a59('0x3b'),(_0x3ce291,_0x30d427,_0x37ce62,_0x35eeda)=>{_0x56746e[_0x4a59('0x48')]&&(null==_0x37ce62?(this[_0x4a59('0x0')](_0x35eeda[_0x4a59('0x52')]),this['_handleSuggestionControllerDelayed'](_0x56746e,!0x1)):(this[_0x4a59('0x0')](_0x37ce62[_0x4a59('0x52')]),null==_0x35eeda&&this[_0x4a59('0x28')](_0x56746e,!0x0)));}),null!==_0x56746e[_0x4a59('0x3d')]?this[_0x4a59('0x0')](_0x56746e[_0x4a59('0x52')]):this[_0x4a59('0x28')](_0x56746e,!0x1);}),this['listenTo'](_0x3206e1,_0x4a59('0x1c'),(_0x504dd6,_0x13f0f1,_0x7473e1)=>{this[_0x4a59('0x8')](_0x13f0f1,_0x4a59('0x3b')),this[_0x4a59('0xa')]['delete'](_0x13f0f1),this[_0x4a59('0x1d')]['has'](_0x13f0f1)&&this['_destroyController'](_0x13f0f1),_0x7473e1&&this[_0x4a59('0x0')](_0x7473e1['head']);}),this[_0x4a59('0x42')](_0x3206e1,_0x4a59('0x3a'),(_0x197e78,_0x81c2b8)=>{this[_0x4a59('0x0')](_0x81c2b8);}),this[_0x4a59('0x42')](_0x587591,_0x4a59('0x2d'),()=>{this[_0x4a59('0x55')]();}),this[_0x4a59('0x42')](_0x1d8fc4,'addComment',(_0x5434e9,{threadId:_0xf973e4,isFromAdapter:_0x453532})=>{if(_0x453532||!_0x3206e1[_0x4a59('0x67')](_0xf973e4))return;const _0x906610=_0x3206e1[_0x4a59('0x41')](_0xf973e4);this[_0x4a59('0x1d')][_0x4a59('0x39')](_0x906610)[_0x4a59('0x59')][_0x4a59('0x17')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x14a96=this[_0x4a59('0x5')]['plugins'][_0x4a59('0x39')](_0x4a59('0x46')),_0x40059c=this['editor'][_0x4a59('0x1f')]['get']('TrackChangesEditing'),_0x53d085=Array[_0x4a59('0x2c')](_0x14a96[_0x4a59('0x47')],_0x506e97=>_0x506e97[_0x4a59('0x5b')])['filter'](_0x255863=>this['_viewToController']['has'](_0x255863)),_0x2c1e1a=[];for(const _0x51815e of _0x53d085){const _0x335544=this[_0x4a59('0x62')][_0x4a59('0x39')](_0x51815e)[_0x4a59('0x5f')]['getAllAdjacentSuggestions']();_0x2c1e1a[_0x4a59('0x6')](..._0x335544[_0x4a59('0x3c')]((_0xb6f80d,_0x2d795a)=>[..._0xb6f80d,..._0x2d795a[_0x4a59('0x21')]()],[]));}_0x40059c[_0x4a59('0x25')]=_0x2c1e1a;}[_0x4a59('0xd')](_0x12eecb){const _0x3ac94c=_0x2ae876(_0x12eecb,_0x4b4919),_0x73d5d6=this[_0x4a59('0x5')]['commands'][_0x4a59('0x39')](_0x4a59('0x6b')),_0x373866=_0x2fcd51(_0x12eecb,_0x4a59('0x22'));_0x3ac94c[_0x4a59('0x19')][_0x4a59('0x43')]({'tooltip':_0x373866,'label':_0x373866,'icon':_0x48cb6a}),_0x3ac94c['buttonView'][_0x4a59('0xc')](_0x4a59('0x29'))['to'](_0x73d5d6,_0x4a59('0x10')),_0x3ac94c[_0x4a59('0x19')]['on'](_0x4a59('0x64'),()=>{_0x73d5d6[_0x4a59('0x64')](),this[_0x4a59('0x5')][_0x4a59('0x65')][_0x4a59('0x59')][_0x4a59('0x17')]();});const _0x1c0a96=new _0x55f475(),_0x39644f=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x373866,'commandName':_0x4a59('0x6b')}},{'type':_0x4a59('0x3f')},{'type':'button','model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x45')),'commandName':_0x4a59('0x36')}},{'type':_0x4a59('0xf'),'model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x1b')),'commandName':_0x4a59('0x5e')}},{'type':_0x4a59('0xf'),'model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x4')),'commandName':_0x4a59('0x2b')}},{'type':_0x4a59('0xf'),'model':{'withText':!0x0,'label':_0x2fcd51(_0x12eecb,_0x4a59('0x4c')),'commandName':_0x4a59('0x34')}}];for(const _0xdd0eb0 of _0x39644f){let _0x42ed53={'type':_0x4a59('0x3f')};if(_0xdd0eb0[_0x4a59('0x5f')]){const _0x3acbe3=new _0x4d828c(_0xdd0eb0['model']),_0x4fdcb8=this[_0x4a59('0x5')]['commands'][_0x4a59('0x39')](_0x3acbe3[_0x4a59('0x35')]);_0x3acbe3[_0x4a59('0xc')](_0x4a59('0x29'),'isEnabled')['to'](_0x4fdcb8,_0x4a59('0x10'),_0x4a59('0x4d')),_0x42ed53={'type':_0xdd0eb0[_0x4a59('0x14')],'model':_0x3acbe3};}_0x1c0a96[_0x4a59('0x26')](_0x42ed53);}_0x5c5488(_0x3ac94c,_0x1c0a96);const _0x3c87f7=_0x39644f[_0x4a59('0x12')](_0x5607dc=>null!=_0x5607dc[_0x4a59('0x5f')])[_0x4a59('0x54')](_0x5edf03=>this[_0x4a59('0x5')][_0x4a59('0x24')]['get'](_0x5edf03[_0x4a59('0x5f')][_0x4a59('0x35')])),_0x16f3a1=_0x3ac94c[_0x4a59('0x19')];return _0x16f3a1[_0x4a59('0x31')][_0x4a59('0x7')](_0x4a59('0x4d')),_0x16f3a1[_0x4a59('0x49')][_0x4a59('0x7')]('isEnabled'),_0x16f3a1[_0x4a59('0x31')][_0x4a59('0xc')](_0x4a59('0x4d'))['to'](_0x73d5d6,_0x4a59('0x4d')),_0x16f3a1[_0x4a59('0x49')]['bind'](_0x4a59('0x4d'))[_0x4a59('0x1')](_0x3c87f7,_0x4a59('0x4d'),(..._0x172257)=>_0x172257[_0x4a59('0x66')](_0x3e9f41=>_0x3e9f41)),_0x3ac94c['on'](_0x4a59('0x64'),_0x3c1a86=>{this['editor'][_0x4a59('0x64')](_0x3c1a86[_0x4a59('0x61')][_0x4a59('0x35')]),this['editor'][_0x4a59('0x65')][_0x4a59('0x59')]['focus']();}),_0x3ac94c;}[_0x4a59('0x16')](_0x49ccce){const _0x3efdc3=this[_0x4a59('0x5')],_0x44521c=_0x3efdc3['config'],_0x5ee2a8=_0x3efdc3['plugins'][_0x4a59('0x39')](_0x4a59('0x46')),_0xb08e53=_0x3efdc3['plugins'][_0x4a59('0x39')]('CommentsRepository'),_0x4563db=_0x3efdc3[_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x68')),_0x2e3202=_0x3efdc3[_0x4a59('0x1f')][_0x4a59('0x39')](_0x56aa66)['me'],_0x5d5c66=_0x44521c[_0x4a59('0x39')](_0x4a59('0x6b'))[_0x4a59('0x4a')],{CommentsListView:_0xf2eee2,CommentThreadInputView:_0x5805aa}=_0x3efdc3['plugins'][_0x4a59('0x39')](_0x4a59('0x32'));let _0x5e9752,_0x340a22;this[_0x4a59('0x44')][_0x4a59('0x56')](_0x49ccce['id'])?(_0x340a22=this[_0x4a59('0x44')][_0x4a59('0x39')](_0x49ccce['id']),_0x5e9752=_0x340a22[_0x4a59('0x57')]):(_0x5e9752=new _0x5d5c66(_0x3efdc3['locale'],_0x49ccce,_0x2e3202,{'disableComments':this['_disableComments'],'editorConfig':_0x44521c['get'](_0x4a59('0x38')),'maxCommentsWhenCollapsed':_0x44521c[_0x4a59('0x39')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x44521c[_0x4a59('0x39')](_0x4a59('0x5d')),'maxCommentCharsWhenCollapsed':_0x44521c[_0x4a59('0x39')](_0x4a59('0x60')),'formatDateTime':_0x484a42(_0x44521c[_0x4a59('0x39')]('locale')),'CommentView':_0x44521c[_0x4a59('0x39')](_0x4a59('0x33'))[_0x4a59('0x23')],'CommentsListView':_0xf2eee2,'CommentThreadInputView':_0x5805aa}),_0x5e9752[_0x4a59('0xb')]['on']('execute',()=>{_0x3efdc3['editing']['view'][_0x4a59('0x17')]();}),_0x5e9752[_0x4a59('0x2f')]['on'](_0x4a59('0x64'),()=>{_0x3efdc3[_0x4a59('0x65')][_0x4a59('0x59')]['focus']();}),_0x340a22=_0x5ee2a8[_0x4a59('0x5a')](this[_0x4a59('0x5')][_0x4a59('0x40')],_0x5e9752),_0x340a22[_0x4a59('0xc')]('isDirty')['to'](_0x5e9752,'isDirty'),_0x340a22[_0x4a59('0xc')](_0x4a59('0x4e'))['to'](_0x5e9752),_0x340a22[_0x4a59('0xc')](_0x4a59('0x14'))['to'](_0x5e9752,_0x4a59('0x14'),_0x3f8653=>'suggestion-'+_0x3f8653),this[_0x4a59('0x44')][_0x4a59('0x43')](_0x49ccce['id'],_0x340a22));const _0x170c93=_0xb08e53[_0x4a59('0x51')](_0x49ccce[_0x4a59('0x37')],_0x5e9752),_0x4ec4c1=new _0x1b3cda(_0x3efdc3,_0x49ccce,_0x5e9752,_0x170c93),_0x4c88ac=_0x49ccce['getAllAdjacentSuggestions']()[_0x4a59('0x12')](_0x5a030b=>_0x5a030b[_0x4a59('0x48')]);_0x5e9752[_0x4a59('0x69')]=_0x3efdc3[_0x4a59('0x1f')][_0x4a59('0x39')]('TrackChangesEditing')[_0x4a59('0x2')][_0x4a59('0x53')](_0x4c88ac),this[_0x4a59('0x1d')][_0x4a59('0x43')](_0x49ccce,_0x4ec4c1),this['_viewToController'][_0x4a59('0x43')](_0x5e9752,_0x4ec4c1);const _0x412a7d=_0x5ee2a8['createAnnotation']({'view':_0x340a22,'target':()=>{const _0x596106=[],_0x43e6a0=_0x49ccce['getAllAdjacentSuggestions']()[_0x4a59('0x12')](_0x5f179d=>_0x5f179d[_0x4a59('0x48')]);for(const _0x12c05e of _0x43e6a0)_0x596106[_0x4a59('0x6')](..._0x12c05e[_0x4a59('0x15')]());return _0x745c32(_0x3efdc3[_0x4a59('0x65')],_0x596106);},'type':()=>'suggestion-'+_0x4ec4c1['view'][_0x4a59('0x14')]});_0xb08e53[_0x4a59('0x58')](_0x5e9752,_0x412a7d),_0x5ee2a8[_0x4a59('0x26')](_0x412a7d),_0x4563db['registerAnnotation'](_0x412a7d);}[_0x4a59('0x6a')](_0x15f5e1){const _0x39a060=this[_0x4a59('0x5')][_0x4a59('0x1f')][_0x4a59('0x39')](_0x4a59('0x11')),_0x2c2c2c=this[_0x4a59('0x5')]['plugins'][_0x4a59('0x39')](_0x4a59('0x46')),_0x98857=this[_0x4a59('0x1d')]['get'](_0x15f5e1),_0x33b028=_0x98857['view'],_0x5a054a=_0x2c2c2c[_0x4a59('0x5c')](_0x33b028);_0x39a060[_0x4a59('0x50')](_0x33b028),_0x5a054a&&_0x2c2c2c['remove'](_0x5a054a),this[_0x4a59('0x1d')][_0x4a59('0x2e')](_0x15f5e1),this[_0x4a59('0x62')]['delete'](_0x33b028),_0x98857[_0x4a59('0x27')]();}[_0x4a59('0x0')](_0x4562f5){if(!_0x4562f5[_0x4a59('0x48')]||!this[_0x4a59('0x1d')][_0x4a59('0x56')](_0x4562f5))return;const _0x1f52b1=this[_0x4a59('0x5')][_0x4a59('0x1f')][_0x4a59('0x39')]('TrackChangesEditing'),_0x435488=this[_0x4a59('0x1d')][_0x4a59('0x39')](_0x4562f5),_0x240351=_0x4562f5['getAllAdjacentSuggestions']();_0x435488['view'][_0x4a59('0x69')]=_0x1f52b1[_0x4a59('0x2')]['getDescriptions'](_0x240351);}[_0x4a59('0x27')](){for(const _0x39d97f of this[_0x4a59('0x1d')]['keys']())this[_0x4a59('0x6a')](_0x39d97f);for(const _0x25a807 of this['_annotationViews']['values']())_0x25a807[_0x4a59('0x57')][_0x4a59('0x27')]();super[_0x4a59('0x27')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bf0=['_removePendingAction','unbind','plugins','canDiscard','_setPendingAction','isEnabled','destroy','isDirty','change:isDirty','add','model','_discardCommand','bind','stopListening','listenTo','_acceptCommand','remove','view','canEditAt','acceptSuggestion','_pendingAction','canAccept','get','commands','discardSuggestion','_editor','commentThreadController','locale','PendingActions'];(function(_0x5f311a,_0x1bf09d){const _0x37db99=function(_0xef2771){while(--_0xef2771){_0x5f311a['push'](_0x5f311a['shift']());}};_0x37db99(++_0x1bf09d);}(_0x1bf0,0x1f4));const _0x37db=function(_0x5f311a,_0x1bf09d){_0x5f311a=_0x5f311a-0x0;let _0x37db99=_0x1bf0[_0x5f311a];return _0x37db99;};import{ObservableMixin as _0x4e5362}from'ckeditor5/src/utils';import{getTranslation as _0x4092e4}from'../utils/common-translations';export default class Qt extends _0x4e5362(){constructor(_0x5f31f0,_0x241d08,_0x5608d5,_0x29d3a4){super(),this[_0x37db('0x3')]=_0x241d08,this[_0x37db('0xa')]=_0x5608d5,this[_0x37db('0x13')]=_0x29d3a4,this['_editor']=_0x5f31f0,this['_acceptCommand']=_0x5f31f0[_0x37db('0x10')][_0x37db('0xf')]('acceptSuggestion'),this['_discardCommand']=_0x5f31f0['commands'][_0x37db('0xf')](_0x37db('0x11')),this[_0x37db('0xa')][_0x37db('0x5')](_0x37db('0x1b'))['to'](this[_0x37db('0x8')],this['_discardCommand'],(_0x3c1b8b,_0x1fce99)=>_0x3c1b8b||_0x1fce99),this[_0x37db('0xa')][_0x37db('0x5')](_0x37db('0xe'))['to'](this[_0x37db('0x8')],_0x37db('0x1b'),_0x24a006=>_0x24a006&&this[_0x37db('0x12')][_0x37db('0x3')]['canEditAt'](_0x241d08['getRanges']())),this[_0x37db('0xa')][_0x37db('0x5')](_0x37db('0x19'))['to'](this[_0x37db('0x4')],'isEnabled',_0x2b7c06=>_0x2b7c06&&this['_editor'][_0x37db('0x3')][_0x37db('0xb')](_0x241d08['getRanges']())),this[_0x37db('0xd')]=null,_0x5608d5[_0x37db('0x0')]&&this['_setPendingAction'](),this['listenTo'](_0x5608d5,_0x37db('0xc'),()=>this[_0x37db('0xc')]()),this[_0x37db('0x7')](_0x5608d5,_0x37db('0x11'),()=>this[_0x37db('0x11')]()),this[_0x37db('0x7')](_0x5608d5,_0x37db('0x1'),()=>{_0x5608d5[_0x37db('0x0')]?this[_0x37db('0x1a')]():this[_0x37db('0x16')]();});}[_0x37db('0xc')](){this[_0x37db('0x8')]['execute'](this['model']['id']);}[_0x37db('0x11')](){this[_0x37db('0x4')]['execute'](this[_0x37db('0x3')]['id']);}[_0x37db('0x1c')](){this[_0x37db('0xa')]['unbind'](_0x37db('0x1b')),this[_0x37db('0xa')][_0x37db('0x17')](_0x37db('0xe')),this[_0x37db('0xa')][_0x37db('0x17')]('canDiscard'),this[_0x37db('0x6')](),this[_0x37db('0x13')]['destroy'](),this[_0x37db('0xd')]&&this[_0x37db('0x16')]();}['_setPendingAction'](){const _0x2e8499=_0x4092e4(this[_0x37db('0x12')][_0x37db('0x14')],'PENDING_ACTION_SUGGESTION');this[_0x37db('0xd')]=this[_0x37db('0x12')]['plugins']['get'](_0x37db('0x15'))[_0x37db('0x2')](_0x2e8499);}[_0x37db('0x16')](){null!==this[_0x37db('0xd')]&&this[_0x37db('0x12')][_0x37db('0x18')]['get'](_0x37db('0x15'))[_0x37db('0x9')](this[_0x37db('0xd')]),this[_0x37db('0xd')]=null;}}
23
+ const _0x5f5b=['get','stopListening','acceptSuggestion','_acceptCommand','destroy','change:isDirty','_setPendingAction','add','_pendingAction','listenTo','canAccept','model','canDiscard','isDirty','locale','PendingActions','_editor','unbind','execute','canEditAt','_removePendingAction','_discardCommand','commands','bind','getRanges','discardSuggestion','plugins','commentThreadController','isEnabled','view'];(function(_0x4c1612,_0x5f5bc8){const _0xfff22a=function(_0x536fe9){while(--_0x536fe9){_0x4c1612['push'](_0x4c1612['shift']());}};_0xfff22a(++_0x5f5bc8);}(_0x5f5b,0x1a3));const _0xfff2=function(_0x4c1612,_0x5f5bc8){_0x4c1612=_0x4c1612-0x0;let _0xfff22a=_0x5f5b[_0x4c1612];return _0xfff22a;};import{ObservableMixin as _0x473345}from'ckeditor5/src/utils';import{getTranslation as _0x725524}from'../utils/common-translations';export default class Qt extends _0x473345(){constructor(_0x1c6bb3,_0x1ea632,_0xe1d162,_0x306177){super(),this[_0xfff2('0xc')]=_0x1ea632,this[_0xfff2('0x0')]=_0xe1d162,this[_0xfff2('0x1c')]=_0x306177,this[_0xfff2('0x11')]=_0x1c6bb3,this[_0xfff2('0x4')]=_0x1c6bb3[_0xfff2('0x17')][_0xfff2('0x1')](_0xfff2('0x3')),this[_0xfff2('0x16')]=_0x1c6bb3[_0xfff2('0x17')]['get'](_0xfff2('0x1a')),this['view']['bind'](_0xfff2('0x1d'))['to'](this[_0xfff2('0x4')],this[_0xfff2('0x16')],(_0x295005,_0x19edb9)=>_0x295005||_0x19edb9),this[_0xfff2('0x0')][_0xfff2('0x18')](_0xfff2('0xb'))['to'](this[_0xfff2('0x4')],_0xfff2('0x1d'),_0x85abbc=>_0x85abbc&&this[_0xfff2('0x11')][_0xfff2('0xc')][_0xfff2('0x14')](_0x1ea632[_0xfff2('0x19')]())),this[_0xfff2('0x0')][_0xfff2('0x18')](_0xfff2('0xd'))['to'](this[_0xfff2('0x16')],'isEnabled',_0x95d351=>_0x95d351&&this[_0xfff2('0x11')][_0xfff2('0xc')]['canEditAt'](_0x1ea632['getRanges']())),this[_0xfff2('0x9')]=null,_0xe1d162[_0xfff2('0xe')]&&this['_setPendingAction'](),this[_0xfff2('0xa')](_0xe1d162,_0xfff2('0x3'),()=>this[_0xfff2('0x3')]()),this[_0xfff2('0xa')](_0xe1d162,_0xfff2('0x1a'),()=>this['discardSuggestion']()),this[_0xfff2('0xa')](_0xe1d162,_0xfff2('0x6'),()=>{_0xe1d162[_0xfff2('0xe')]?this[_0xfff2('0x7')]():this[_0xfff2('0x15')]();});}[_0xfff2('0x3')](){this['_acceptCommand'][_0xfff2('0x13')](this[_0xfff2('0xc')]['id']);}[_0xfff2('0x1a')](){this[_0xfff2('0x16')][_0xfff2('0x13')](this[_0xfff2('0xc')]['id']);}[_0xfff2('0x5')](){this[_0xfff2('0x0')][_0xfff2('0x12')](_0xfff2('0x1d')),this[_0xfff2('0x0')][_0xfff2('0x12')]('canAccept'),this[_0xfff2('0x0')][_0xfff2('0x12')](_0xfff2('0xd')),this[_0xfff2('0x2')](),this[_0xfff2('0x1c')]['destroy'](),this['_pendingAction']&&this[_0xfff2('0x15')]();}[_0xfff2('0x7')](){const _0x3a29f6=_0x725524(this['_editor'][_0xfff2('0xf')],'PENDING_ACTION_SUGGESTION');this[_0xfff2('0x9')]=this[_0xfff2('0x11')][_0xfff2('0x1b')]['get'](_0xfff2('0x10'))[_0xfff2('0x8')](_0x3a29f6);}[_0xfff2('0x15')](){null!==this[_0xfff2('0x9')]&&this[_0xfff2('0x11')][_0xfff2('0x1b')]['get']('PendingActions')['remove'](this[_0xfff2('0x9')]),this['_pendingAction']=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x72ed=['length','setData','_createCommentViews','_localUser','commentThread','isDirty','commentInputView','editorConfig','authoredAt','commentsListView','element','value','locale','canDiscard','_model','isActive','disableComments','delegate','assign','updateComment','removeComment','_config','disabledSubmit','commentThreadInputView','submit','cancel','set','destroy','isReadOnly','showInput','focus','bind','descriptionParts','CommentView'];(function(_0x17e51f,_0x72edf8){const _0x2924b0=function(_0x4d2b18){while(--_0x4d2b18){_0x17e51f['push'](_0x17e51f['shift']());}};_0x2924b0(++_0x72edf8);}(_0x72ed,0xc8));const _0x2924=function(_0x17e51f,_0x72edf8){_0x17e51f=_0x17e51f-0x0;let _0x2924b0=_0x72ed[_0x17e51f];return _0x2924b0;};import{View as _0x2ec66a}from'ckeditor5/src/ui';export default class si extends _0x2ec66a{constructor(_0x2a1769,_0xde1b7,_0x5e6a1b,_0x1c0ae9){super(_0x2a1769),this['commentsListView']=null,this[_0x2924('0x1b')]=null,this[_0x2924('0x1e')]('isActive',!0x1),this[_0x2924('0x1e')](_0x2924('0xc'),_0xde1b7['authoredAt']),this[_0x2924('0x1')](_0x2924('0xc'))['to'](_0xde1b7),this[_0x2924('0x1e')](_0x2924('0x2'),[]),this[_0x2924('0x1e')](_0x2924('0x9'),!0x1),this['set']('isEnabled',!0x1),this[_0x2924('0x1e')]('canAccept',!0x1),this[_0x2924('0x1e')](_0x2924('0x11'),!0x1),this[_0x2924('0x12')]=_0xde1b7,this[_0x2924('0x7')]=_0x5e6a1b,this[_0x2924('0x19')]=_0x1c0ae9,_0x1c0ae9[_0x2924('0x14')]?this[_0x2924('0x1e')](_0x2924('0x4'),0x1):this[_0x2924('0x6')]();}[_0x2924('0x0')](){this[_0x2924('0xe')][_0x2924('0x0')]();}[_0x2924('0x1f')](){this[_0x2924('0xd')]&&this[_0x2924('0xd')]['destroy'](),this[_0x2924('0x1b')]&&this['commentThreadInputView'][_0x2924('0x1f')](),super[_0x2924('0x1f')]();}[_0x2924('0x6')](){const {CommentsListView:_0x37b770}=this[_0x2924('0x19')];this['commentsListView']=new _0x37b770(this[_0x2924('0x10')],this[_0x2924('0x12')][_0x2924('0x8')],Object[_0x2924('0x16')]({'CommentView':this[_0x2924('0x19')][_0x2924('0x3')]},this[_0x2924('0x19')])),this[_0x2924('0xd')][_0x2924('0x15')](_0x2924('0x18'))['to'](this),this[_0x2924('0xd')][_0x2924('0x15')](_0x2924('0x17'))['to'](this),this[_0x2924('0xd')][_0x2924('0x1')](_0x2924('0x13'))['to'](this),this[_0x2924('0x1e')](_0x2924('0x4'),this[_0x2924('0xd')]['length']+0x1),this['bind']('length')['to'](this[_0x2924('0xd')],_0x2924('0x4'),_0x303f3c=>_0x303f3c+0x1),this[_0x2924('0x1b')]=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this[_0x2924('0x0')]()),this[_0x2924('0x1')](_0x2924('0x9'))['to'](this[_0x2924('0xd')],'hasDirtyComment',this[_0x2924('0x1b')][_0x2924('0xa')],_0x2924('0xf'),(_0x300d35,_0xd0439d)=>_0x300d35||!!_0xd0439d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x50417c}=this[_0x2924('0x19')],_0x4ca76a=new _0x50417c(this[_0x2924('0x10')],this['_localUser'],this[_0x2924('0x19')][_0x2924('0xb')]),_0x36c29b=_0x4ca76a[_0x2924('0xa')];return _0x4ca76a[_0x2924('0x1')](_0x2924('0x21'))['to'](this,_0x2924('0x13'),this[_0x2924('0x12')]['commentThread'],_0x2924('0x20'),_0x36c29b,_0x2924('0xf'),(_0xe1244b,_0x1d96f0,_0x3529ba)=>!!_0x3529ba||_0xe1244b&&!_0x1d96f0),_0x36c29b['on'](_0x2924('0x1c'),(_0x4db0c0,_0x1524ac)=>{this['fire']('addComment',_0x1524ac),_0x36c29b['editor'][_0x2924('0x5')]('');}),_0x36c29b['on'](_0x2924('0x1d'),()=>this['focus']()),_0x36c29b[_0x2924('0x1')](_0x2924('0x1a'))['to'](this[_0x2924('0x12')][_0x2924('0x8')],'isReadOnly'),_0x4ca76a;}}
23
+ const _0x42f5=['isActive','updateComment','_createCommentViews','commentThread','removeComment','isReadOnly','descriptionParts','commentThreadInputView','bind','fire','canDiscard','_createCommentThreadInputView','cancel','editor','length','isDirty','disabledSubmit','commentsListView','focus','locale','set','isEnabled','canAccept','showInput','_config','value','_model','hasDirtyComment','delegate','setData','commentInputView','addComment','destroy','_localUser','editorConfig','authoredAt'];(function(_0xc74231,_0x42f5e9){const _0x4bdbdf=function(_0x4de26){while(--_0x4de26){_0xc74231['push'](_0xc74231['shift']());}};_0x4bdbdf(++_0x42f5e9);}(_0x42f5,0x98));const _0x4bdb=function(_0xc74231,_0x42f5e9){_0xc74231=_0xc74231-0x0;let _0x4bdbdf=_0x42f5[_0xc74231];return _0x4bdbdf;};import{View as _0x9aadd7}from'ckeditor5/src/ui';export default class si extends _0x9aadd7{constructor(_0xd784ae,_0x19ae03,_0x4cd09a,_0x299bc8){super(_0xd784ae),this[_0x4bdb('0x9')]=null,this[_0x4bdb('0x23')]=null,this[_0x4bdb('0xc')](_0x4bdb('0x1c'),!0x1),this['set'](_0x4bdb('0x1b'),_0x19ae03[_0x4bdb('0x1b')]),this[_0x4bdb('0x0')](_0x4bdb('0x1b'))['to'](_0x19ae03),this[_0x4bdb('0xc')](_0x4bdb('0x22'),[]),this[_0x4bdb('0xc')]('isDirty',!0x1),this[_0x4bdb('0xc')](_0x4bdb('0xd'),!0x1),this[_0x4bdb('0xc')](_0x4bdb('0xe'),!0x1),this[_0x4bdb('0xc')](_0x4bdb('0x2'),!0x1),this[_0x4bdb('0x12')]=_0x19ae03,this[_0x4bdb('0x19')]=_0x4cd09a,this[_0x4bdb('0x10')]=_0x299bc8,_0x299bc8['disableComments']?this[_0x4bdb('0xc')](_0x4bdb('0x6'),0x1):this[_0x4bdb('0x1e')]();}[_0x4bdb('0xa')](){this['element'][_0x4bdb('0xa')]();}[_0x4bdb('0x18')](){this[_0x4bdb('0x9')]&&this[_0x4bdb('0x9')][_0x4bdb('0x18')](),this['commentThreadInputView']&&this[_0x4bdb('0x23')]['destroy'](),super[_0x4bdb('0x18')]();}[_0x4bdb('0x1e')](){const {CommentsListView:_0x23c1f4}=this[_0x4bdb('0x10')];this['commentsListView']=new _0x23c1f4(this[_0x4bdb('0xb')],this[_0x4bdb('0x12')]['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this[_0x4bdb('0x9')][_0x4bdb('0x14')](_0x4bdb('0x20'))['to'](this),this[_0x4bdb('0x9')][_0x4bdb('0x14')](_0x4bdb('0x1d'))['to'](this),this[_0x4bdb('0x9')][_0x4bdb('0x0')](_0x4bdb('0x1c'))['to'](this),this[_0x4bdb('0xc')](_0x4bdb('0x6'),this[_0x4bdb('0x9')][_0x4bdb('0x6')]+0x1),this[_0x4bdb('0x0')](_0x4bdb('0x6'))['to'](this[_0x4bdb('0x9')],_0x4bdb('0x6'),_0x4e53a5=>_0x4e53a5+0x1),this['commentThreadInputView']=this[_0x4bdb('0x3')](),this['on'](_0x4bdb('0x20'),()=>this[_0x4bdb('0xa')]()),this[_0x4bdb('0x0')](_0x4bdb('0x7'))['to'](this[_0x4bdb('0x9')],_0x4bdb('0x13'),this[_0x4bdb('0x23')]['commentInputView'],_0x4bdb('0x11'),(_0x5dd46e,_0x24490d)=>_0x5dd46e||!!_0x24490d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x33c698}=this[_0x4bdb('0x10')],_0x5b350c=new _0x33c698(this['locale'],this[_0x4bdb('0x19')],this[_0x4bdb('0x10')][_0x4bdb('0x1a')]),_0x39d4fe=_0x5b350c[_0x4bdb('0x16')];return _0x5b350c[_0x4bdb('0x0')](_0x4bdb('0xf'))['to'](this,_0x4bdb('0x1c'),this[_0x4bdb('0x12')][_0x4bdb('0x1f')],'isReadOnly',_0x39d4fe,_0x4bdb('0x11'),(_0x3051f1,_0x83e03f,_0xec2bde)=>!!_0xec2bde||_0x3051f1&&!_0x83e03f),_0x39d4fe['on']('submit',(_0x430285,_0x1624b1)=>{this[_0x4bdb('0x1')](_0x4bdb('0x17'),_0x1624b1),_0x39d4fe[_0x4bdb('0x5')][_0x4bdb('0x15')]('');}),_0x39d4fe['on'](_0x4bdb('0x4'),()=>this[_0x4bdb('0xa')]()),_0x39d4fe['bind'](_0x4bdb('0x8'))['to'](this[_0x4bdb('0x12')][_0x4bdb('0x1f')],_0x4bdb('0x21')),_0x5b350c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c79=['cancel','ck-annotation','bindTemplate','ck-suggestion-wrapper--active','getExternalSuggestionNote','commentsListView','EXTERNAL_AVATAR','ck-annotation__info-time','color','EXTERNAL_SUGGESTION','getTemplate','\x22\x20title=\x22','innerHTML','locale','map','_descriptionElement','description','ck-suggestion--disabled-comments','authoredAt','commentThread','ck-comment__external','innerText','@external','ck-suggestion__main','importWord','commentThreadInputView','_createButton','disableComments','render','<p>','ck-annotation__info-name','extendTemplate','fire','ck-suggestion','querySelector','element','_config','author','EXTERNAL_IMPORT_WORD_AVATAR','attributes','EXTERNAL_IMPORT_WORD_SUGGESTION','acceptButton','createElement','ck-suggestion--discard','discardSuggestion','check','bind','discardButton','setTemplate','Accept\x20suggestion','ck-suggestion__info','userView','execute','name','<span\x20class=\x22ck-suggestion-type\x22>','time','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','_model','canAccept','.ck-annotation__content-wrapper','delegate','ck-suggestion--accept','editorDestroyed','div','ck-comment__info-time','isActive','Discard\x20suggestion','span','content','split','source','ck-suggestion-wrapper','set','descriptionParts','creator','editorReady','title','formatDateTime','type','push','isEnabled','ck-annotation__actions','canDiscard','getUserViewNotificationText','children'];(function(_0x4128e9,_0x2c793f){const _0x1152fd=function(_0x43c3c3){while(--_0x43c3c3){_0x4128e9['push'](_0x4128e9['shift']());}};_0x1152fd(++_0x2c793f);}(_0x2c79,0x175));const _0x1152=function(_0x4128e9,_0x2c793f){_0x4128e9=_0x4128e9-0x0;let _0x1152fd=_0x2c79[_0x4128e9];return _0x1152fd;};import{getTranslation as _0x35b461}from'../../utils/common-translations';import{default as _0xa17426}from'./basesuggestionthreadview';import{ButtonView as _0x293d1c}from'ckeditor5/src/ui';import{icons as _0x419bac}from'ckeditor5/src/core';import{trimHtml as _0x42e3e3,UserView as _0x25a7b1}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0xa17426{constructor(_0x3ae3b4,_0x1ea225,_0x4a9e93,_0x213676){super(_0x3ae3b4,_0x1ea225,_0x4a9e93,_0x213676),this[_0x1152('0x27')](_0x1152('0x2d'),''),this[_0x1152('0xd')](_0x1152('0x2d'))['to'](this,_0x1152('0x28'),_0x29bfd9=>_0x29bfd9&&_0x29bfd9[0x0]?_0x29bfd9[0x0][_0x1152('0x2d')]:''),this[_0x1152('0xd')](_0x1152('0x44'))['to'](this,'descriptionParts',this,_0x1152('0x20'),(_0x2a99e9,_0x34a89c)=>{let _0x530aa8='';for(const _0x10384a of _0x2a99e9)_0x530aa8+=_0x1152('0x51')+ci(_0x10384a[_0x1152('0x23')],_0x10384a[_0x1152('0x3c')])+'</p>';return _0x34a89c?_0x530aa8:_0x42e3e3(_0x530aa8,{'limit':0x8c});}),this[_0x1152('0x43')]=null,this[_0x1152('0x8')]=this[_0x1152('0x4e')](_0x35b461(_0x3ae3b4,_0x1152('0x10')),_0x419bac[_0x1152('0xc')],_0x1152('0x1c'),'acceptSuggestion','sw'),this[_0x1152('0x8')]['bind'](_0x1152('0x2f'))['to'](this,_0x1152('0x19')),this[_0x1152('0xe')]=this[_0x1152('0x4e')](_0x35b461(_0x3ae3b4,_0x1152('0x21')),_0x419bac[_0x1152('0x34')],_0x1152('0xa'),_0x1152('0xb'),'sw'),this[_0x1152('0xe')][_0x1152('0xd')](_0x1152('0x2f'))['to'](this,_0x1152('0x31')),this[_0x1152('0x12')]=new _0x25a7b1(_0x3ae3b4,this[_0x1152('0x18')][_0x1152('0x4')],this[_0x1152('0x32')]()),this[_0x1152('0x12')][_0x1152('0x53')]({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this[_0x1152('0xf')](this[_0x1152('0x3e')]());}[_0x1152('0x3e')](){const _0x1ae01c=this[_0x1152('0x36')],_0x43ce6e=[{'tag':_0x1152('0x1e'),'attributes':{'class':[_0x1152('0x11'),'ck-annotation__info']},'children':[{'tag':_0x1152('0x22'),'children':[{'text':this['userView'][_0x1152('0x14')]}],'attributes':{'class':['ck-suggestion__info-name',_0x1152('0x52')]}},{'tag':_0x1152('0x16'),'attributes':{'datetime':_0x1ae01c['to']('authoredAt'),'class':[_0x1152('0x1f'),_0x1152('0x3b')]},'children':[{'text':_0x1ae01c['to'](_0x1152('0x46'),_0x40ed3e=>this['_config'][_0x1152('0x2c')](_0x40ed3e))}]}]},{'tag':_0x1152('0x1e'),'attributes':{'class':['ck-suggestion__actions',_0x1152('0x30')]},'children':[this[_0x1152('0x8')],this[_0x1152('0xe')]]},{'tag':_0x1152('0x1e'),'attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x1152('0x18')]['isExternal']&&_0x43ce6e['push']({'tag':_0x1152('0x1e'),'attributes':{'class':[_0x1152('0x48')]},'children':[{'text':this[_0x1152('0x38')]()}]});const _0x144110={'tag':'div','attributes':{'class':[_0x1152('0x26'),_0x1ae01c['if'](_0x1152('0x20'),_0x1152('0x37')),_0x1ae01c['to'](_0x1152('0x2d'),_0x3aa9c0=>'ck-suggestion-'+_0x3aa9c0),this[_0x1152('0x3')][_0x1152('0x4f')]&&_0x1152('0x45')],'data-suggestion-id':this[_0x1152('0x18')]['id'],'data-thread-id':this[_0x1152('0x18')][_0x1152('0x47')]['id'],'data-author-id':this['_model'][_0x1152('0x4')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1152('0x1e'),'attributes':{'class':[_0x1152('0x0'),_0x1152('0x35')]},'children':[this[_0x1152('0x12')],{'tag':'div','attributes':{'class':[_0x1152('0x4b'),'ck-annotation__main']},'children':_0x43ce6e}]}]};return this[_0x1152('0x39')]&&this[_0x1152('0x4d')]&&(_0x144110[_0x1152('0x33')][_0x1152('0x2e')](this[_0x1152('0x39')],this['commentThreadInputView']),this[_0x1152('0x39')][_0x1152('0x1b')]('editorReady')['to'](this),this[_0x1152('0x39')][_0x1152('0x1b')](_0x1152('0x1d'))['to'](this),this[_0x1152('0x4d')][_0x1152('0x1b')](_0x1152('0x2a'))['to'](this),this[_0x1152('0x4d')][_0x1152('0x1b')](_0x1152('0x1d'))['to'](this)),_0x144110;}[_0x1152('0x50')](){super[_0x1152('0x50')](),this[_0x1152('0x43')]=this[_0x1152('0x2')][_0x1152('0x1')](_0x1152('0x1a')),this[_0x1152('0x43')][_0x1152('0x40')]=this[_0x1152('0x44')],this['on']('change:description',(_0x26c43a,_0x454a88,_0x16c6c8)=>{this[_0x1152('0x43')]['innerHTML']=_0x16c6c8;});}[_0x1152('0x4e')](_0x42be5f,_0x26d2b6,_0x1d5abc,_0x5acee2,_0x3d89b5){const _0x845454=new _0x293d1c(this[_0x1152('0x41')]);return _0x845454[_0x1152('0x27')]({'label':_0x42be5f,'icon':_0x26d2b6,'tooltip':!0x0,'tooltipPosition':_0x3d89b5}),_0x845454[_0x1152('0x53')]({'attributes':{'class':_0x1d5abc}}),_0x845454['on'](_0x1152('0x13'),()=>{this[_0x1152('0x54')](_0x5acee2,this[_0x1152('0x18')]['id']);}),_0x845454;}[_0x1152('0x38')](){return _0x1152('0x4c')===this[_0x1152('0x18')]['attributes'][_0x1152('0x4a')][_0x1152('0x25')]?_0x35b461(this[_0x1152('0x41')],_0x1152('0x7')):_0x35b461(this[_0x1152('0x41')],_0x1152('0x3d'));}[_0x1152('0x32')](){return this[_0x1152('0x18')]['isExternal']?'importWord'===this[_0x1152('0x18')][_0x1152('0x6')][_0x1152('0x4a')]['source']?_0x35b461(this[_0x1152('0x41')],_0x1152('0x5'),this[_0x1152('0x18')][_0x1152('0x29')][_0x1152('0x14')]):_0x35b461(this[_0x1152('0x41')],_0x1152('0x3a'),this[_0x1152('0x18')]['creator'][_0x1152('0x14')]):null;}}function ci(_0x4e4c4d,_0x4d1989){let _0x226264='';return _0x226264+=_0x4e4c4d[_0x1152('0x24')]('*')[_0x1152('0x42')]((_0x3e0ee5,_0x41ab59)=>_0x41ab59%0x2!=0x0?_0x1152('0x15')+ri(_0x3e0ee5)+'</span>':ri(_0x3e0ee5))['join'](''),_0x4d1989&&(_0x226264+=_0x1152('0x17')+_0x4d1989['value']+_0x1152('0x3f')+_0x4d1989[_0x1152('0x2b')]+'\x22></span>'),_0x226264;}function ri(_0x5b41dd){const _0xf6b235=document[_0x1152('0x9')](_0x1152('0x22'));return _0xf6b235[_0x1152('0x49')]=_0x5b41dd,_0xf6b235[_0x1152('0x40')];}
23
+ const _0x2c96=['ck-suggestion--discard','description','EXTERNAL_SUGGESTION','color','canDiscard','ck-suggestion__info','time','extendTemplate','cancel','EXTERNAL_IMPORT_WORD_SUGGESTION','createElement','_config','ck-comment__info-time','ck-annotation__content-wrapper','attributes','discardButton','querySelector','formatDateTime','discardSuggestion','delegate','</span>','ck-annotation__main','ck-suggestion--disabled-comments','\x22></span>','EXTERNAL_IMPORT_WORD_AVATAR','render','element','ck-comment__external','push','ck-annotation__info-time','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','bindTemplate','ck-suggestion__user','source','\x22\x20title=\x22','editorDestroyed','_descriptionElement','fire','innerText','check','innerHTML','Accept\x20suggestion','isActive','commentsListView','_model','userView','join','content','isEnabled','change:description','authoredAt','editorReady','set','title','ck-suggestion__main','@external','getTemplate','<p>','ck-suggestion-wrapper','setTemplate','name','canAccept','execute','span','_createButton','bind','Discard\x20suggestion','ck-annotation','.ck-annotation__content-wrapper','commentThreadInputView','ck-annotation__user','importWord','ck-suggestion__actions','creator','div','split','value','acceptButton','getUserViewNotificationText','ck-annotation__actions','<span\x20class=\x22ck-suggestion-type\x22>','ck-annotation__info-name','type','author','locale','ck-suggestion__info-name','getExternalSuggestionNote'];(function(_0x274256,_0x2c9648){const _0x2c9d37=function(_0x14f124){while(--_0x14f124){_0x274256['push'](_0x274256['shift']());}};_0x2c9d37(++_0x2c9648);}(_0x2c96,0x109));const _0x2c9d=function(_0x274256,_0x2c9648){_0x274256=_0x274256-0x0;let _0x2c9d37=_0x2c96[_0x274256];return _0x2c9d37;};import{getTranslation as _0x31ac67}from'../../utils/common-translations';import{default as _0x4e872f}from'./basesuggestionthreadview';import{ButtonView as _0x12abfc}from'ckeditor5/src/ui';import{icons as _0x2bf9b9}from'ckeditor5/src/core';import{trimHtml as _0x27e63e,UserView as _0x1de39f}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0x4e872f{constructor(_0x17f7e5,_0x28a177,_0x3481be,_0x6a893a){super(_0x17f7e5,_0x28a177,_0x3481be,_0x6a893a),this[_0x2c9d('0x30')]('type',''),this['bind'](_0x2c9d('0x4e'))['to'](this,'descriptionParts',_0x27423f=>_0x27423f&&_0x27423f[0x0]?_0x27423f[0x0][_0x2c9d('0x4e')]:''),this[_0x2c9d('0x3d')](_0x2c9d('0x54'))['to'](this,'descriptionParts',this,_0x2c9d('0x26'),(_0x3c82a7,_0x3bcdf6)=>{let _0x4ee177='';for(const _0x441abd of _0x3c82a7)_0x4ee177+=_0x2c9d('0x35')+ci(_0x441abd[_0x2c9d('0x2b')],_0x441abd[_0x2c9d('0x56')])+'</p>';return _0x3bcdf6?_0x4ee177:_0x27e63e(_0x4ee177,{'limit':0x8c});}),this[_0x2c9d('0x20')]=null,this[_0x2c9d('0x49')]=this[_0x2c9d('0x3c')](_0x31ac67(_0x17f7e5,_0x2c9d('0x25')),_0x2bf9b9[_0x2c9d('0x23')],'ck-suggestion--accept','acceptSuggestion','sw'),this[_0x2c9d('0x49')]['bind']('isEnabled')['to'](this,_0x2c9d('0x39')),this[_0x2c9d('0xb')]=this[_0x2c9d('0x3c')](_0x31ac67(_0x17f7e5,_0x2c9d('0x3e')),_0x2bf9b9[_0x2c9d('0x4')],_0x2c9d('0x53'),_0x2c9d('0xe'),'sw'),this[_0x2c9d('0xb')][_0x2c9d('0x3d')](_0x2c9d('0x2c'))['to'](this,_0x2c9d('0x0')),this[_0x2c9d('0x29')]=new _0x1de39f(_0x17f7e5,this[_0x2c9d('0x28')][_0x2c9d('0x4f')],this[_0x2c9d('0x4a')]()),this[_0x2c9d('0x29')][_0x2c9d('0x3')]({'attributes':{'class':[_0x2c9d('0x1c'),_0x2c9d('0x42')]}}),this[_0x2c9d('0x37')](this[_0x2c9d('0x34')]());}['getTemplate'](){const _0x1edb1d=this[_0x2c9d('0x1b')],_0x3bbfab=[{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x1'),'ck-annotation__info']},'children':[{'tag':_0x2c9d('0x3b'),'children':[{'text':this[_0x2c9d('0x29')][_0x2c9d('0x38')]}],'attributes':{'class':[_0x2c9d('0x51'),_0x2c9d('0x4d')]}},{'tag':_0x2c9d('0x2'),'attributes':{'datetime':_0x1edb1d['to'](_0x2c9d('0x2e')),'class':[_0x2c9d('0x8'),_0x2c9d('0x19')]},'children':[{'text':_0x1edb1d['to']('authoredAt',_0x4cc62f=>this[_0x2c9d('0x7')][_0x2c9d('0xd')](_0x4cc62f))}]}]},{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x44'),_0x2c9d('0x4b')]},'children':[this[_0x2c9d('0x49')],this[_0x2c9d('0xb')]]},{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x9')]}}];this[_0x2c9d('0x28')]['isExternal']&&_0x3bbfab[_0x2c9d('0x18')]({'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x17')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x312a38={'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x36'),_0x1edb1d['if']('isActive','ck-suggestion-wrapper--active'),_0x1edb1d['to'](_0x2c9d('0x4e'),_0x452984=>'ck-suggestion-'+_0x452984),this[_0x2c9d('0x7')]['disableComments']&&_0x2c9d('0x12')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x2c9d('0x28')]['commentThread']['id'],'data-author-id':this[_0x2c9d('0x28')]['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion',_0x2c9d('0x3f')]},'children':[this['userView'],{'tag':_0x2c9d('0x46'),'attributes':{'class':[_0x2c9d('0x32'),_0x2c9d('0x11')]},'children':_0x3bbfab}]}]};return this[_0x2c9d('0x27')]&&this['commentThreadInputView']&&(_0x312a38['children'][_0x2c9d('0x18')](this[_0x2c9d('0x27')],this[_0x2c9d('0x41')]),this[_0x2c9d('0x27')][_0x2c9d('0xf')](_0x2c9d('0x2f'))['to'](this),this[_0x2c9d('0x27')]['delegate'](_0x2c9d('0x1f'))['to'](this),this[_0x2c9d('0x41')]['delegate'](_0x2c9d('0x2f'))['to'](this),this[_0x2c9d('0x41')]['delegate'](_0x2c9d('0x1f'))['to'](this)),_0x312a38;}[_0x2c9d('0x15')](){super['render'](),this[_0x2c9d('0x20')]=this[_0x2c9d('0x16')][_0x2c9d('0xc')](_0x2c9d('0x40')),this['_descriptionElement'][_0x2c9d('0x24')]=this[_0x2c9d('0x54')],this['on'](_0x2c9d('0x2d'),(_0x283ed8,_0x4c2373,_0x1c92ed)=>{this[_0x2c9d('0x20')][_0x2c9d('0x24')]=_0x1c92ed;});}[_0x2c9d('0x3c')](_0x479538,_0x38c7e2,_0x1cc5b6,_0x5a2efd,_0x1aff8b){const _0x4c56dd=new _0x12abfc(this['locale']);return _0x4c56dd[_0x2c9d('0x30')]({'label':_0x479538,'icon':_0x38c7e2,'tooltip':!0x0,'tooltipPosition':_0x1aff8b}),_0x4c56dd[_0x2c9d('0x3')]({'attributes':{'class':_0x1cc5b6}}),_0x4c56dd['on'](_0x2c9d('0x3a'),()=>{this[_0x2c9d('0x21')](_0x5a2efd,this['_model']['id']);}),_0x4c56dd;}[_0x2c9d('0x52')](){return _0x2c9d('0x43')===this[_0x2c9d('0x28')]['attributes'][_0x2c9d('0x33')][_0x2c9d('0x1d')]?_0x31ac67(this[_0x2c9d('0x50')],_0x2c9d('0x5')):_0x31ac67(this[_0x2c9d('0x50')],_0x2c9d('0x55'));}[_0x2c9d('0x4a')](){return this[_0x2c9d('0x28')]['isExternal']?_0x2c9d('0x43')===this['_model'][_0x2c9d('0xa')][_0x2c9d('0x33')][_0x2c9d('0x1d')]?_0x31ac67(this[_0x2c9d('0x50')],_0x2c9d('0x14'),this[_0x2c9d('0x28')][_0x2c9d('0x45')]['name']):_0x31ac67(this[_0x2c9d('0x50')],'EXTERNAL_AVATAR',this[_0x2c9d('0x28')][_0x2c9d('0x45')]['name']):null;}}function ci(_0x1cb151,_0x1f7d0d){let _0xa4bddb='';return _0xa4bddb+=_0x1cb151[_0x2c9d('0x47')]('*')['map']((_0x569988,_0x23e99f)=>_0x23e99f%0x2!=0x0?_0x2c9d('0x4c')+ri(_0x569988)+_0x2c9d('0x10'):ri(_0x569988))[_0x2c9d('0x2a')](''),_0x1f7d0d&&(_0xa4bddb+=_0x2c9d('0x1a')+_0x1f7d0d[_0x2c9d('0x48')]+_0x2c9d('0x1e')+_0x1f7d0d[_0x2c9d('0x31')]+_0x2c9d('0x13')),_0xa4bddb;}function ri(_0x3b9f17){const _0xb40010=document[_0x2c9d('0x6')](_0x2c9d('0x3b'));return _0xb40010[_0x2c9d('0x22')]=_0x3b9f17,_0xb40010[_0x2c9d('0x24')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0xb5ed8d,_0x3af2f8,_0x3a0e4e){const t=_0xb5ed8d['t'];switch(_0x3af2f8){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',_0x3a0e4e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a0e4e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a0e4e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a0e4e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a0e4e);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',_0x3a0e4e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a0e4e);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',_0x3a0e4e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a0e4e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a0e4e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a0e4e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a0e4e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a0e4e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a0e4e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a0e4e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a0e4e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a0e4e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a0e4e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a0e4e);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'},_0x3a0e4e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a0e4e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a0e4e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a0e4e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a0e4e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a0e4e);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'},_0x3a0e4e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a0e4e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a0e4e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a0e4e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a0e4e);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'},_0x3a0e4e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a0e4e);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'},_0x3a0e4e);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'},_0x3a0e4e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a0e4e);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'},_0x3a0e4e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a0e4e);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'},_0x3a0e4e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a0e4e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a0e4e);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'},_0x3a0e4e);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'},_0x3a0e4e);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 _0x3af2f8;}}
23
+ export function getTranslation(_0x597971,_0x47b15e,_0x268e8d){const t=_0x597971['t'];switch(_0x47b15e){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',_0x268e8d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x268e8d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x268e8d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x268e8d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x268e8d);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',_0x268e8d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x268e8d);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',_0x268e8d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x268e8d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x268e8d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x268e8d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x268e8d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x268e8d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x268e8d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x268e8d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x268e8d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x268e8d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x268e8d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x268e8d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x268e8d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x268e8d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x268e8d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x268e8d);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'},_0x268e8d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x268e8d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x268e8d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x268e8d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x268e8d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x268e8d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x268e8d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x268e8d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x268e8d);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'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x268e8d);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'},_0x268e8d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x268e8d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x268e8d);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'},_0x268e8d);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'},_0x268e8d);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 _0x47b15e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd2b9=['getRanges','createPositionBefore','isTouching','length','next','from','isIntersecting','splice','value','createPositionAfter','isMultiRange','createPositionAt','isObject','isArray','sort','end','type','createRange','deletion','schema','replace','execute','isInContent','color','map'];(function(_0x599680,_0xd2b948){const _0x3e5e32=function(_0x251706){while(--_0x251706){_0x599680['push'](_0x599680['shift']());}};_0x3e5e32(++_0xd2b948);}(_0xd2b9,0x1dc));const _0x3e5e=function(_0x599680,_0xd2b948){_0x599680=_0x599680-0x0;let _0x3e5e32=_0xd2b9[_0x599680];return _0x3e5e32;};export function normalizeDescription(_0x186d9a){return Array[_0x3e5e('0xc')](_0x186d9a)||(_0x186d9a=[_0x186d9a]),_0x186d9a[_0x3e5e('0x17')](_0x49ec3c=>{const _0x3fd46a=_0x49ec3c['content'][_0x3e5e('0x13')](/\*/g,''),_0x3d3e98=_0x49ec3c['color']?'\x20[color\x20'+_0x49ec3c[_0x3e5e('0x16')][_0x3e5e('0x7')]+']':'';return'['+_0x49ec3c['type']+']\x20'+_0x3fd46a+_0x3d3e98;})['join'](';\x20');}export function sortSuggestions(_0x143f1c){return _0x143f1c[_0x3e5e('0xd')]((_0x4b4307,_0xd20c38)=>_0x3e5e('0x11')==_0x4b4307[_0x3e5e('0xf')]&&'deletion'!=_0xd20c38[_0x3e5e('0xf')]?-0x1:_0x3e5e('0x11')!=_0x4b4307[_0x3e5e('0xf')]&&'deletion'==_0xd20c38[_0x3e5e('0xf')]?0x1:0x0);}export function getSelectedSuggestions(_0x485648,_0x420f9f){const _0x388274=Array[_0x3e5e('0x4')](_0x485648['getRanges']()),_0x43aec7=new Set();for(const _0xd24628 of _0x420f9f)if(_0xd24628[_0x3e5e('0x15')])for(const _0x138874 of _0x388274)for(const _0x3f9af7 of _0xd24628[_0x3e5e('0x18')]())(_0x138874[_0x3e5e('0x5')](_0x3f9af7)||_0x485648['isCollapsed']&&!_0xd24628[_0x3e5e('0x9')]&&_0xd24628[_0x3e5e('0x3')]&&_0x3f9af7['end'][_0x3e5e('0x1')](_0x138874['start']))&&_0x43aec7['add'](_0xd24628);return _0x43aec7;}export function getRangesOfBlockGroups(_0x533627,_0x54045e){let _0x193b7f,_0x440303=0x0;const _0x357e11=[],_0x40511e=_0x54045e[_0x3e5e('0x12')];for(;_0x440303<_0x533627[_0x3e5e('0x2')];){const _0x63cace=_0x533627[_0x440303],_0x37543b=_0x533627[_0x440303+0x1];_0x193b7f||(_0x193b7f=_0x54045e[_0x3e5e('0x0')](_0x63cace)),co(_0x54045e,_0x63cace,_0x37543b)||(_0x357e11['push'](_0x54045e[_0x3e5e('0x10')](_0x193b7f,_0x40511e[_0x3e5e('0xb')](_0x63cace)?_0x54045e[_0x3e5e('0x8')](_0x63cace):_0x54045e[_0x3e5e('0xa')](_0x63cace,_0x3e5e('0xe')))),_0x193b7f=null),_0x440303++;}return _0x357e11;}function co(_0x42258e,_0x3749ec,_0x40ff5f){if(!_0x40ff5f)return!0x1;const _0x351e50=_0x42258e[_0x3e5e('0x8')](_0x3749ec),_0x3b3cbf=_0x42258e[_0x3e5e('0x0')](_0x40ff5f);return _0x351e50[_0x3e5e('0x1')](_0x3b3cbf);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x2b9394,_0x24f30d,_0x514352){for(;_0x514352[_0x3e5e('0x2')];){const _0x5c5df4=_0x514352[_0x3e5e('0x6')](0x0,0x64);_0x2b9394['change'](()=>{for(const _0x5e721d of _0x5c5df4)_0x5e721d[_0x3e5e('0x15')]&&_0x24f30d[_0x3e5e('0x14')](_0x5e721d['id']);});}}
23
+ const _0x9592=['next','push','getRanges','add','execute','splice','type','isTouching','length','content','isObject','isIntersecting','createPositionBefore','from','end','deletion','isArray','\x20[color\x20','replace','isInContent','isMultiRange','map','createPositionAfter'];(function(_0x20653f,_0x959296){const _0x2d0898=function(_0x20ee19){while(--_0x20ee19){_0x20653f['push'](_0x20653f['shift']());}};_0x2d0898(++_0x959296);}(_0x9592,0xec));const _0x2d08=function(_0x20653f,_0x959296){_0x20653f=_0x20653f-0x0;let _0x2d0898=_0x9592[_0x20653f];return _0x2d0898;};export function normalizeDescription(_0x21a96f){return Array[_0x2d08('0xa')](_0x21a96f)||(_0x21a96f=[_0x21a96f]),_0x21a96f[_0x2d08('0xf')](_0x2a22b7=>{const _0x57b5cb=_0x2a22b7[_0x2d08('0x3')][_0x2d08('0xc')](/\*/g,''),_0x20953f=_0x2a22b7['color']?_0x2d08('0xb')+_0x2a22b7['color']['value']+']':'';return'['+_0x2a22b7[_0x2d08('0x0')]+']\x20'+_0x57b5cb+_0x20953f;})['join'](';\x20');}export function sortSuggestions(_0x2a7804){return _0x2a7804['sort']((_0x350b17,_0x4d1a04)=>_0x2d08('0x9')==_0x350b17[_0x2d08('0x0')]&&_0x2d08('0x9')!=_0x4d1a04[_0x2d08('0x0')]?-0x1:'deletion'!=_0x350b17[_0x2d08('0x0')]&&_0x2d08('0x9')==_0x4d1a04[_0x2d08('0x0')]?0x1:0x0);}export function getSelectedSuggestions(_0x30ff60,_0x3669eb){const _0x53f80e=Array[_0x2d08('0x7')](_0x30ff60[_0x2d08('0x13')]()),_0xfb3e99=new Set();for(const _0x10c4cc of _0x3669eb)if(_0x10c4cc[_0x2d08('0xd')])for(const _0x2f19df of _0x53f80e)for(const _0x99b698 of _0x10c4cc['getRanges']())(_0x2f19df[_0x2d08('0x5')](_0x99b698)||_0x30ff60['isCollapsed']&&!_0x10c4cc[_0x2d08('0xe')]&&_0x10c4cc[_0x2d08('0x11')]&&_0x99b698[_0x2d08('0x8')]['isTouching'](_0x2f19df['start']))&&_0xfb3e99[_0x2d08('0x14')](_0x10c4cc);return _0xfb3e99;}export function getRangesOfBlockGroups(_0xa071a3,_0x2bc758){let _0x464e3e,_0x582164=0x0;const _0x37f58f=[],_0x2eba54=_0x2bc758['schema'];for(;_0x582164<_0xa071a3[_0x2d08('0x2')];){const _0xfba0f1=_0xa071a3[_0x582164],_0x425e7d=_0xa071a3[_0x582164+0x1];_0x464e3e||(_0x464e3e=_0x2bc758[_0x2d08('0x6')](_0xfba0f1)),co(_0x2bc758,_0xfba0f1,_0x425e7d)||(_0x37f58f[_0x2d08('0x12')](_0x2bc758['createRange'](_0x464e3e,_0x2eba54[_0x2d08('0x4')](_0xfba0f1)?_0x2bc758[_0x2d08('0x10')](_0xfba0f1):_0x2bc758['createPositionAt'](_0xfba0f1,_0x2d08('0x8')))),_0x464e3e=null),_0x582164++;}return _0x37f58f;}function co(_0x4e682d,_0x46fe73,_0x12f731){if(!_0x12f731)return!0x1;const _0x32b79d=_0x4e682d[_0x2d08('0x10')](_0x46fe73),_0x3d7695=_0x4e682d['createPositionBefore'](_0x12f731);return _0x32b79d[_0x2d08('0x1')](_0x3d7695);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x581978,_0x12d720,_0x5bf253){for(;_0x5bf253[_0x2d08('0x2')];){const _0x48667f=_0x5bf253[_0x2d08('0x16')](0x0,0x64);_0x581978['change'](()=>{for(const _0x5b5c9e of _0x48667f)_0x5b5c9e['isInContent']&&_0x12d720[_0x2d08('0x15')](_0x5b5c9e['id']);});}}