@ckeditor/ckeditor5-track-changes 37.1.0 → 38.0.0-rc.1

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 (148) hide show
  1. package/build/track-changes.js +2 -2
  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/en-au.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/he.js +1 -1
  16. package/build/translations/hi.js +1 -1
  17. package/build/translations/hr.js +1 -1
  18. package/build/translations/hu.js +1 -1
  19. package/build/translations/id.js +1 -1
  20. package/build/translations/it.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/lv.js +1 -1
  25. package/build/translations/ms.js +1 -1
  26. package/build/translations/nl.js +1 -1
  27. package/build/translations/no.js +1 -1
  28. package/build/translations/pl.js +1 -1
  29. package/build/translations/pt-br.js +1 -1
  30. package/build/translations/pt.js +1 -1
  31. package/build/translations/ro.js +1 -1
  32. package/build/translations/ru.js +1 -1
  33. package/build/translations/sk.js +1 -1
  34. package/build/translations/sr-latn.js +1 -1
  35. package/build/translations/sr.js +1 -1
  36. package/build/translations/sv.js +1 -1
  37. package/build/translations/th.js +1 -1
  38. package/build/translations/tr.js +1 -1
  39. package/build/translations/uk.js +1 -1
  40. package/build/translations/vi.js +1 -1
  41. package/build/translations/zh-cn.js +1 -1
  42. package/build/translations/zh.js +1 -1
  43. package/lang/translations/ar.po +7 -7
  44. package/lang/translations/bg.po +3 -3
  45. package/lang/translations/bn.po +3 -3
  46. package/lang/translations/ca.po +3 -3
  47. package/lang/translations/cs.po +5 -5
  48. package/lang/translations/da.po +3 -3
  49. package/lang/translations/de.po +3 -3
  50. package/lang/translations/el.po +3 -3
  51. package/lang/translations/en-au.po +23 -23
  52. package/lang/translations/es.po +4 -4
  53. package/lang/translations/et.po +3 -3
  54. package/lang/translations/fi.po +3 -3
  55. package/lang/translations/fr.po +4 -4
  56. package/lang/translations/he.po +5 -5
  57. package/lang/translations/hi.po +3 -3
  58. package/lang/translations/hr.po +26 -26
  59. package/lang/translations/hu.po +3 -3
  60. package/lang/translations/id.po +2 -2
  61. package/lang/translations/it.po +4 -4
  62. package/lang/translations/ja.po +2 -2
  63. package/lang/translations/ko.po +2 -2
  64. package/lang/translations/lt.po +5 -5
  65. package/lang/translations/lv.po +4 -4
  66. package/lang/translations/ms.po +2 -2
  67. package/lang/translations/nl.po +3 -3
  68. package/lang/translations/no.po +3 -3
  69. package/lang/translations/pl.po +5 -5
  70. package/lang/translations/pt-br.po +4 -4
  71. package/lang/translations/pt.po +4 -4
  72. package/lang/translations/ro.po +4 -4
  73. package/lang/translations/ru.po +5 -5
  74. package/lang/translations/sk.po +5 -5
  75. package/lang/translations/sr-latn.po +4 -4
  76. package/lang/translations/sr.po +4 -4
  77. package/lang/translations/sv.po +3 -3
  78. package/lang/translations/th.po +2 -2
  79. package/lang/translations/tr.po +3 -3
  80. package/lang/translations/uk.po +5 -5
  81. package/lang/translations/vi.po +2 -2
  82. package/lang/translations/zh-cn.po +2 -2
  83. package/lang/translations/zh.po +2 -2
  84. package/package.json +3 -3
  85. package/src/commands/acceptsuggestioncommand.js +1 -1
  86. package/src/commands/discardsuggestioncommand.js +1 -1
  87. package/src/commands/executeonallsuggestionscommand.js +1 -1
  88. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  89. package/src/commands/trackchangescommand.js +1 -1
  90. package/src/integrations/alignment.js +1 -1
  91. package/src/integrations/basicstyles.js +1 -1
  92. package/src/integrations/blockquote.js +1 -1
  93. package/src/integrations/ckbox.js +1 -1
  94. package/src/integrations/codeblock.js +1 -1
  95. package/src/integrations/comments.js +1 -1
  96. package/src/integrations/deletecommand.js +1 -1
  97. package/src/integrations/documentlist.js +1 -1
  98. package/src/integrations/documentlistproperties.js +1 -1
  99. package/src/integrations/entercommand.js +1 -1
  100. package/src/integrations/findandreplace.js +1 -1
  101. package/src/integrations/font.js +1 -1
  102. package/src/integrations/formatpainter.js +1 -1
  103. package/src/integrations/heading.js +1 -1
  104. package/src/integrations/highlight.js +1 -1
  105. package/src/integrations/horizontalline.js +1 -1
  106. package/src/integrations/htmlembed.js +1 -1
  107. package/src/integrations/image.js +1 -1
  108. package/src/integrations/imagereplace.js +1 -1
  109. package/src/integrations/importword.js +1 -1
  110. package/src/integrations/indent.js +1 -1
  111. package/src/integrations/inputcommand.js +1 -1
  112. package/src/integrations/link.js +1 -1
  113. package/src/integrations/list.js +1 -1
  114. package/src/integrations/listproperties.js +1 -1
  115. package/src/integrations/mediaembed.js +1 -1
  116. package/src/integrations/mention.js +1 -1
  117. package/src/integrations/pagebreak.js +1 -1
  118. package/src/integrations/paragraph.js +1 -1
  119. package/src/integrations/removeformat.js +1 -1
  120. package/src/integrations/restrictededitingmode.js +1 -1
  121. package/src/integrations/shiftentercommand.js +1 -1
  122. package/src/integrations/standardeditingmode.js +1 -1
  123. package/src/integrations/style.js +1 -1
  124. package/src/integrations/table.js +1 -1
  125. package/src/integrations/tablecaption.js +1 -1
  126. package/src/integrations/tableclipboard.js +1 -1
  127. package/src/integrations/tablecolumnresize.js +1 -1
  128. package/src/integrations/tableheadings.js +1 -1
  129. package/src/integrations/tablemergesplit.js +1 -1
  130. package/src/integrations/tableofcontents.js +1 -1
  131. package/src/integrations/tableproperties.js +1 -1
  132. package/src/integrations/template.js +1 -1
  133. package/src/integrations/title.js +1 -1
  134. package/src/integrations/undo.js +1 -1
  135. package/src/integrations/utils.js +1 -1
  136. package/src/suggestion.js +1 -1
  137. package/src/suggestiondescriptionfactory.js +1 -1
  138. package/src/trackchanges.d.ts +23 -5
  139. package/src/trackchanges.js +1 -1
  140. package/src/trackchangesconfig.d.ts +23 -5
  141. package/src/trackchangesdata.js +1 -1
  142. package/src/trackchangesediting.js +1 -1
  143. package/src/trackchangesui.js +1 -1
  144. package/src/ui/suggestioncontroller.js +1 -1
  145. package/src/ui/view/basesuggestionthreadview.js +1 -1
  146. package/src/ui/view/suggestionthreadview.js +1 -1
  147. package/src/utils/common-translations.js +1 -1
  148. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x314a=['suggestion-','suggestionLoaded','stopListening','add','Accept\x20all\x20suggestions','has','switchbutton','set','suggestionUnloaded','editor','Discard\x20all\x20selected\x20suggestions','getAllAdjacentSuggestions','separator','getJoined','_updateController','delete','componentFactory','_initializeController','mainView','isMultiRange','registerAnnotation','value','keys','getSuggestion','activeMarkers','focus','config','_viewToController','CommentsUI','_createUIButton','values','EditorAnnotations','Annotations','comments.maxThreadTotalWeight','editing','trackChanges','CommentsRepository','acceptButton','actionView','isOn','_handleControllerBuffer','unbind','trackChanges.disableComments','getFirstRange','discardSelectedSuggestions','clear','source','view','commentThread','createAnnotationView','change:activeAnnotations','isEnabled','getMarkers','map','_refreshActiveMarkers','remove','reduce','button','some','init','model','requires','Track\x20changes','length','TrackChangesEditing','_annotationViews','change:previous','comments.maxCommentCharsWhenCollapsed','_disableComments','isInContent','Accept\x20all\x20selected\x20suggestions','getByInnerView','comments.maxCommentsWhenCollapsed','_destroyController','arrowView','discardAllSuggestions','push','commandName','discardButton','commands','isDirty','SuggestionThreadView','suggestionChanged','getMarkerNames','addComment','from','_handleSuggestionControllerDelayed','destroy','listenTo','buttonView','acceptAllSuggestions','locale','_suggestionToController','activeAnnotations','plugins','size','comments.editorConfig','_descriptionFactory','descriptionParts','type','get','head','execute','define','createAnnotation','filter','hasSuggestion','getRanges','getDescriptions','bind'];(function(_0x4af0d2,_0x314ade){const _0x2c3358=function(_0x532520){while(--_0x532520){_0x4af0d2['push'](_0x4af0d2['shift']());}};_0x2c3358(++_0x314ade);}(_0x314a,0x19f));const _0x2c33=function(_0x4af0d2,_0x314ade){_0x4af0d2=_0x4af0d2-0x0;let _0x2c3358=_0x314a[_0x4af0d2];return _0x2c3358;};import{Plugin as _0x46bf41}from'ckeditor5/src/core';import{Collection as _0x14b3b9}from'ckeditor5/src/utils';import{Model as _0x3e9d15,SplitButtonView as _0x2a5631,createDropdown as _0x1e9d51,addListToDropdown as _0x46aa93}from'ckeditor5/src/ui';import{Users as _0x4e7ee8,getDateTimeFormatter as _0x23102c,getAllMarkersDomElementsSorted as _0x319b1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x55094a from'./trackchangesediting';import _0x20fdc3 from'./ui/suggestioncontroller';import _0x59372c from'./ui/view/suggestionthreadview';import{getTranslation as _0x11c724}from'./utils/common-translations';import _0x1dbc08 from'../theme/icons/track-changes.svg';export default class d extends _0x46bf41{static get[_0x2c33('0x56')](){return[_0x55094a,_0x4e7ee8,_0x2c33('0x3d'),_0x2c33('0x39'),_0x2c33('0x38')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x410ac0){super(_0x410ac0),this[_0x2c33('0x7')]=new Map(),this[_0x2c33('0x34')]=new Map(),this[_0x2c33('0x5a')]=new Map(),this[_0x2c33('0x41')]=new Map();const _0xb723b6=this['editor'][_0x2c33('0x33')];_0xb723b6['define']('trackChanges.SuggestionThreadView',_0x59372c),_0xb723b6[_0x2c33('0x12')]('trackChanges.disableComments',!0x1),this[_0x2c33('0x5d')]=_0xb723b6[_0x2c33('0xf')](_0x2c33('0x43'));}['_handleSuggestionControllerDelayed'](_0x17c74b,_0x342faf){0x0===this[_0x2c33('0x41')][_0x2c33('0xa')]&&setTimeout(()=>{for(const [_0x418d97,_0x124dac]of this['_handleControllerBuffer']){const _0x1372fc=this[_0x2c33('0x7')][_0x2c33('0x1e')](_0x418d97);_0x1372fc||_0x124dac?_0x1372fc&&_0x124dac&&this[_0x2c33('0x62')](_0x418d97):this[_0x2c33('0x2a')](_0x418d97);}this[_0x2c33('0x22')][_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x38'))['refreshSelectedViews'](),this[_0x2c33('0x4f')](),this[_0x2c33('0x41')][_0x2c33('0x46')]();},0xa),this[_0x2c33('0x41')][_0x2c33('0x20')](_0x17c74b,_0x342faf);}[_0x2c33('0x54')](){const _0x4335e5=this[_0x2c33('0x22')],_0x52859d=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')]('TrackChangesEditing'),_0x29a21e=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x39')),_0x429d3a=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x38')),_0x59411a=_0x4335e5[_0x2c33('0x9')]['get']('CommentsRepository');_0x4335e5['ui'][_0x2c33('0x29')][_0x2c33('0x1c')]('trackChanges',_0x3ed7d5=>this[_0x2c33('0x36')](_0x3ed7d5)),_0x429d3a['addSourceCollector'](()=>{const _0x177e06=[];for(const [_0x3e1c26,_0x49a5bf]of Array[_0x2c33('0x0')](this[_0x2c33('0x7')])){const _0x2fd1c5=_0x3e1c26[_0x2c33('0x24')](),_0x14f6e4=[];for(const _0x41cbff of _0x2fd1c5){if(!_0x41cbff['isInContent'])continue;if(_0x41cbff[_0x2c33('0x2c')]){_0x14f6e4[_0x2c33('0x65')](..._0x41cbff[_0x2c33('0x16')]());continue;}const _0x457c7f=_0x41cbff[_0x2c33('0x44')]();if(_0x14f6e4[_0x2c33('0x58')]>0x0){const _0x4b983d=_0x14f6e4[0x0][_0x2c33('0x26')](_0x457c7f);if(_0x4b983d){_0x14f6e4[0x0]=_0x4b983d;continue;}}_0x14f6e4[_0x2c33('0x65')](_0x457c7f);}_0x177e06[_0x2c33('0x65')]([_0x49a5bf[_0x2c33('0x48')],_0x14f6e4]);}return _0x177e06;}),this['listenTo'](_0x52859d,_0x2c33('0x1a'),(_0x537078,_0x414e47)=>{this[_0x2c33('0x3')](_0x414e47,_0x2c33('0x5b'),(_0x5971ed,_0x6d58b4,_0x3826c0,_0x2e2e35)=>{_0x414e47[_0x2c33('0x5e')]&&(null==_0x3826c0?(this[_0x2c33('0x27')](_0x2e2e35[_0x2c33('0x10')]),this[_0x2c33('0x1')](_0x414e47,!0x1)):(this['_updateController'](_0x3826c0['head']),this[_0x2c33('0x1')](_0x414e47,!0x0)));}),null===_0x414e47['previous']?this['_handleSuggestionControllerDelayed'](_0x414e47,!0x1):this[_0x2c33('0x27')](_0x414e47['head']);}),this[_0x2c33('0x3')](_0x52859d,_0x2c33('0x21'),(_0x2e5582,_0x561da5,_0x488073)=>{this[_0x2c33('0x1b')](_0x561da5,'change:previous'),this[_0x2c33('0x41')][_0x2c33('0x28')](_0x561da5);const _0x28bd10=_0x488073?_0x488073[_0x2c33('0x10')]:_0x561da5,_0x1de983=this[_0x2c33('0x7')][_0x2c33('0xf')](_0x28bd10);null!==_0x488073&&this[_0x2c33('0x27')](_0x28bd10),null===_0x488073&&_0x1de983&&this[_0x2c33('0x62')](_0x561da5);}),this[_0x2c33('0x3')](_0x52859d,_0x2c33('0x6b'),(_0x54aed6,_0x86e1dd)=>{this[_0x2c33('0x27')](_0x86e1dd);}),this['listenTo'](_0x29a21e,_0x2c33('0x4b'),()=>{this[_0x2c33('0x4f')]();}),this['listenTo'](_0x59411a,_0x2c33('0x6d'),(_0x27372f,{threadId:_0x55226c,isFromAdapter:_0xfa6bb8})=>{if(_0xfa6bb8||!_0x52859d[_0x2c33('0x15')](_0x55226c))return;const _0x3640a8=_0x52859d[_0x2c33('0x30')](_0x55226c);this[_0x2c33('0x7')][_0x2c33('0xf')](_0x3640a8)[_0x2c33('0x48')][_0x2c33('0x32')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42f47f=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x39')),_0x2658f7=this['editor'][_0x2c33('0x9')]['get'](_0x2c33('0x59')),_0x502da8=Array[_0x2c33('0x0')](_0x42f47f[_0x2c33('0x8')],_0x3522d6=>_0x3522d6['innerView'])[_0x2c33('0x14')](_0x55c7a8=>this['_viewToController'][_0x2c33('0x1e')](_0x55c7a8)),_0x4e069d=[];for(const _0x3ae3c3 of _0x502da8){const _0x4272a4=this[_0x2c33('0x34')]['get'](_0x3ae3c3)[_0x2c33('0x55')][_0x2c33('0x24')]();_0x4e069d[_0x2c33('0x65')](..._0x4272a4[_0x2c33('0x51')]((_0xeacbae,_0x22735f)=>[..._0xeacbae,..._0x22735f[_0x2c33('0x6c')]()],[]));}_0x2658f7[_0x2c33('0x31')]=_0x4e069d;}[_0x2c33('0x36')](_0x347d98){const _0x1879f6=_0x1e9d51(_0x347d98,_0x2a5631),_0x2a3edc=this[_0x2c33('0x22')][_0x2c33('0x68')]['get'](_0x2c33('0x3c')),_0x56220e=_0x11c724(_0x347d98,_0x2c33('0x57'));_0x1879f6[_0x2c33('0x4')][_0x2c33('0x20')]({'tooltip':_0x56220e,'label':_0x56220e,'icon':_0x1dbc08}),_0x1879f6[_0x2c33('0x4')][_0x2c33('0x18')]('isOn')['to'](_0x2a3edc,_0x2c33('0x2e')),_0x1879f6['buttonView']['on'](_0x2c33('0x11'),()=>{_0x2a3edc[_0x2c33('0x11')](),this['editor'][_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();});const _0x5e4bbe=new _0x14b3b9(),_0x5810ef=[{'type':_0x2c33('0x1f'),'model':{'withText':!0x0,'label':_0x56220e,'commandName':_0x2c33('0x3c')}},{'type':_0x2c33('0x25')},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x1d')),'commandName':_0x2c33('0x5')}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x5f')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,'Discard\x20all\x20suggestions'),'commandName':_0x2c33('0x64')}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x23')),'commandName':_0x2c33('0x45')}}];for(const _0x13a67f of _0x5810ef){let _0x19fd06={'type':_0x2c33('0x25')};if(_0x13a67f[_0x2c33('0x55')]){const _0x3a083f=new _0x3e9d15(_0x13a67f[_0x2c33('0x55')]),_0x522e13=this[_0x2c33('0x22')][_0x2c33('0x68')][_0x2c33('0xf')](_0x3a083f['commandName']);_0x3a083f[_0x2c33('0x18')](_0x2c33('0x40'),'isEnabled')['to'](_0x522e13,'value','isEnabled'),_0x19fd06={'type':_0x13a67f[_0x2c33('0xe')],'model':_0x3a083f};}_0x5e4bbe['add'](_0x19fd06);}_0x46aa93(_0x1879f6,_0x5e4bbe);const _0x1f6f35=_0x5810ef['filter'](_0x55a90d=>null!=_0x55a90d[_0x2c33('0x55')])[_0x2c33('0x4e')](_0x26f513=>this[_0x2c33('0x22')][_0x2c33('0x68')][_0x2c33('0xf')](_0x26f513[_0x2c33('0x55')][_0x2c33('0x66')])),_0x5be2db=_0x1879f6[_0x2c33('0x4')];return _0x5be2db[_0x2c33('0x3f')][_0x2c33('0x42')](_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x63')]['unbind'](_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x3f')]['bind'](_0x2c33('0x4c'))['to'](_0x2a3edc,_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x63')][_0x2c33('0x18')](_0x2c33('0x4c'))['toMany'](_0x1f6f35,'isEnabled',(..._0x27ebe1)=>_0x27ebe1[_0x2c33('0x53')](_0x4e258c=>_0x4e258c)),_0x1879f6['on'](_0x2c33('0x11'),_0x3f4473=>{this['editor']['execute'](_0x3f4473[_0x2c33('0x47')]['commandName']),this[_0x2c33('0x22')]['editing']['view'][_0x2c33('0x32')]();}),_0x1879f6;}[_0x2c33('0x2a')](_0x4a2306){const _0x509fb6=this['editor'],_0x13f96e=_0x509fb6[_0x2c33('0x33')],_0x1bde4f=_0x509fb6['plugins']['get'](_0x2c33('0x39')),_0x5427c1=_0x509fb6[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x3d')),_0x2163d2=_0x509fb6['plugins']['get'](_0x2c33('0x38')),_0x579ffd=_0x509fb6['plugins'][_0x2c33('0xf')](_0x4e7ee8)['me'],_0xccc4e5=_0x13f96e['get'](_0x2c33('0x3c'))[_0x2c33('0x6a')],{CommentsListView:_0x577341,CommentThreadInputView:_0x15748e}=_0x509fb6[_0x2c33('0x9')]['get'](_0x2c33('0x35'));let _0x5086c2,_0xf8c7b9;this[_0x2c33('0x5a')]['has'](_0x4a2306['id'])?(_0xf8c7b9=this['_annotationViews'][_0x2c33('0xf')](_0x4a2306['id']),_0x5086c2=_0xf8c7b9[_0x2c33('0x2b')]):(_0x5086c2=new _0xccc4e5(_0x509fb6[_0x2c33('0x6')],_0x4a2306,_0x579ffd,{'disableComments':this[_0x2c33('0x5d')],'editorConfig':_0x13f96e[_0x2c33('0xf')](_0x2c33('0xb')),'maxCommentsWhenCollapsed':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x61')),'maxThreadTotalWeight':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x3a')),'maxCommentCharsWhenCollapsed':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x5c')),'formatDateTime':_0x23102c(_0x13f96e['get'](_0x2c33('0x6'))),'CommentView':_0x13f96e[_0x2c33('0xf')]('comments')['CommentView'],'CommentsListView':_0x577341,'CommentThreadInputView':_0x15748e}),_0x5086c2[_0x2c33('0x3e')]['on']('execute',()=>{_0x509fb6[_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();}),_0x5086c2[_0x2c33('0x67')]['on'](_0x2c33('0x11'),()=>{_0x509fb6[_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();}),_0xf8c7b9=_0x1bde4f[_0x2c33('0x4a')](this[_0x2c33('0x22')][_0x2c33('0x6')],_0x5086c2),_0xf8c7b9[_0x2c33('0x18')](_0x2c33('0x69'))['to'](_0x5086c2,_0x2c33('0x69')),_0xf8c7b9['bind'](_0x2c33('0x58'))['to'](_0x5086c2),_0xf8c7b9['bind']('type')['to'](_0x5086c2,_0x2c33('0xe'),_0x2ededc=>'suggestion-'+_0x2ededc),this[_0x2c33('0x5a')][_0x2c33('0x20')](_0x4a2306['id'],_0xf8c7b9));const _0x4def72=_0x5427c1['createCommentThreadController'](_0x4a2306[_0x2c33('0x49')],_0x5086c2),_0x1b0859=new _0x20fdc3(_0x509fb6,_0x4a2306,_0x5086c2,_0x4def72),_0x264da1=_0x4a2306[_0x2c33('0x24')]()[_0x2c33('0x14')](_0x1eb431=>_0x1eb431['isInContent']);_0x5086c2[_0x2c33('0xd')]=_0x509fb6['plugins']['get'](_0x2c33('0x59'))[_0x2c33('0xc')][_0x2c33('0x17')](_0x264da1),this['_suggestionToController'][_0x2c33('0x20')](_0x4a2306,_0x1b0859),this[_0x2c33('0x34')][_0x2c33('0x20')](_0x5086c2,_0x1b0859);const _0x344628=_0x1bde4f[_0x2c33('0x13')]({'view':_0xf8c7b9,'target':()=>{const _0x4a2650=[],_0x27d72c=_0x4a2306[_0x2c33('0x24')]()['filter'](_0x498679=>_0x498679['isInContent']);for(const _0xf5d4b2 of _0x27d72c)_0x4a2650[_0x2c33('0x65')](..._0xf5d4b2[_0x2c33('0x4d')]());return _0x319b1f(_0x509fb6[_0x2c33('0x3b')],_0x4a2650);},'type':()=>_0x2c33('0x19')+_0x1b0859[_0x2c33('0x48')][_0x2c33('0xe')]});_0x1bde4f[_0x2c33('0x1c')](_0x344628),_0x2163d2[_0x2c33('0x2d')](_0x344628);}[_0x2c33('0x62')](_0x17e484){const _0x4b251f=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x39')),_0x25eede=this[_0x2c33('0x7')][_0x2c33('0xf')](_0x17e484),_0x36d19f=_0x25eede[_0x2c33('0x48')],_0x2e21c8=_0x4b251f[_0x2c33('0x60')](_0x36d19f);_0x2e21c8&&_0x4b251f[_0x2c33('0x50')](_0x2e21c8),this[_0x2c33('0x7')][_0x2c33('0x28')](_0x17e484),this[_0x2c33('0x34')]['delete'](_0x36d19f),_0x25eede[_0x2c33('0x2')]();}[_0x2c33('0x27')](_0x34027b){if(!_0x34027b[_0x2c33('0x5e')]||!this[_0x2c33('0x7')][_0x2c33('0x1e')](_0x34027b))return;const _0x6e597c=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x59')),_0x867320=this[_0x2c33('0x7')]['get'](_0x34027b),_0x18f10d=_0x34027b[_0x2c33('0x24')]();_0x867320[_0x2c33('0x48')][_0x2c33('0xd')]=_0x6e597c[_0x2c33('0xc')][_0x2c33('0x17')](_0x18f10d);}[_0x2c33('0x2')](){for(const _0x2b8648 of this[_0x2c33('0x7')][_0x2c33('0x2f')]())this[_0x2c33('0x62')](_0x2b8648);for(const _0xa0f6c3 of this[_0x2c33('0x5a')][_0x2c33('0x37')]())_0xa0f6c3[_0x2c33('0x2b')][_0x2c33('0x2')]();super[_0x2c33('0x2')]();}}
23
+ const _0x4032=['trackChanges.disableComments','change:activeAnnotations','arrowView','source','actionView','_updateController','config','separator','_createUIButton','_disableComments','some','mainView','comments.maxCommentsWhenCollapsed','editor','comments','buttonView','trackChanges.SuggestionThreadView','init','editing','_handleSuggestionControllerDelayed','define','Discard\x20all\x20suggestions','getJoined','addSourceCollector','_initializeController','_refreshActiveMarkers','discardAllSuggestions','CommentsUI','change:previous','acceptAllSuggestions','set','bind','from','requires','model','comments.editorConfig','Track\x20changes','getDescriptions','_viewToController','head','trackChanges','focus','createAnnotationView','execute','componentFactory','isDirty','CommentView','pluginName','map','Annotations','commandName','getSuggestion','value','comments.maxCommentCharsWhenCollapsed','EditorAnnotations','_suggestionToController','previous','delete','isEnabled','listenTo','activeAnnotations','isOn','add','filter','getByInnerView','unbind','Accept\x20all\x20suggestions','TrackChangesUI','has','commands','TrackChangesEditing','registerAnnotation','button','_destroyController','createAnnotation','acceptSelectedSuggestions','push','commentThread','_handleControllerBuffer','type','length','getRanges','hasSuggestion','locale','CommentsRepository','_descriptionFactory','refreshSelectedViews','_annotationViews','get','discardButton','destroy','getAllAdjacentSuggestions','reduce','isInContent','discardSelectedSuggestions','descriptionParts','suggestionLoaded','createCommentThreadController','suggestion-','clear','values','view','plugins','remove'];(function(_0x4cd4f8,_0x403221){const _0x28dd65=function(_0x52a6e8){while(--_0x52a6e8){_0x4cd4f8['push'](_0x4cd4f8['shift']());}};_0x28dd65(++_0x403221);}(_0x4032,0x1a7));const _0x28dd=function(_0x4cd4f8,_0x403221){_0x4cd4f8=_0x4cd4f8-0x0;let _0x28dd65=_0x4032[_0x4cd4f8];return _0x28dd65;};import{Plugin as _0x1a325c}from'ckeditor5/src/core';import{Collection as _0x366def}from'ckeditor5/src/utils';import{Model as _0x5b396e,SplitButtonView as _0x15920c,createDropdown as _0x3737c1,addListToDropdown as _0x4494e1}from'ckeditor5/src/ui';import{Users as _0x4af76d,getDateTimeFormatter as _0x35ef80,getAllMarkersDomElementsSorted as _0x13b4a7}from'ckeditor5-collaboration/src/collaboration-core';import _0x14e263 from'./trackchangesediting';import _0x4c9ef1 from'./ui/suggestioncontroller';import _0x568453 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1c9bbc}from'./utils/common-translations';import _0x4d9558 from'../theme/icons/track-changes.svg';export default class d extends _0x1a325c{static get[_0x28dd('0x1a')](){return[_0x14e263,_0x4af76d,'CommentsRepository',_0x28dd('0x2a'),_0x28dd('0x2f')];}static get[_0x28dd('0x28')](){return _0x28dd('0x3c');}constructor(_0x5589c6){super(_0x5589c6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x28dd('0x50')]=new Map(),this[_0x28dd('0x47')]=new Map();const _0xd547f=this[_0x28dd('0x6')]['config'];_0xd547f[_0x28dd('0xd')](_0x28dd('0x9'),_0x568453),_0xd547f[_0x28dd('0xd')]('trackChanges.disableComments',!0x1),this[_0x28dd('0x2')]=_0xd547f['get'](_0x28dd('0x61'));}[_0x28dd('0xc')](_0x1cbc2b,_0x4dee53){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f2312,_0x4f1a93]of this[_0x28dd('0x47')]){const _0x2a2768=this[_0x28dd('0x30')][_0x28dd('0x3d')](_0x3f2312);_0x2a2768||_0x4f1a93?_0x2a2768&&_0x4f1a93&&this[_0x28dd('0x42')](_0x3f2312):this[_0x28dd('0x11')](_0x3f2312);}this['editor'][_0x28dd('0x5f')][_0x28dd('0x51')](_0x28dd('0x2f'))[_0x28dd('0x4f')](),this[_0x28dd('0x12')](),this[_0x28dd('0x47')][_0x28dd('0x5c')]();},0xa),this['_handleControllerBuffer'][_0x28dd('0x17')](_0x1cbc2b,_0x4dee53);}[_0x28dd('0xa')](){const _0x2f7142=this[_0x28dd('0x6')],_0x144a1b=_0x2f7142[_0x28dd('0x5f')][_0x28dd('0x51')]('TrackChangesEditing'),_0x18fda5=_0x2f7142[_0x28dd('0x5f')][_0x28dd('0x51')]('Annotations'),_0xac7df2=_0x2f7142[_0x28dd('0x5f')]['get'](_0x28dd('0x2f')),_0x367be3=_0x2f7142[_0x28dd('0x5f')][_0x28dd('0x51')](_0x28dd('0x4d'));_0x2f7142['ui'][_0x28dd('0x25')][_0x28dd('0x37')]('trackChanges',_0x1026da=>this[_0x28dd('0x1')](_0x1026da)),_0xac7df2[_0x28dd('0x10')](()=>{const _0x357bda=[];for(const [_0x56f22c,_0x423596]of Array[_0x28dd('0x19')](this[_0x28dd('0x30')])){const _0x537f40=_0x56f22c[_0x28dd('0x54')](),_0x3b6071=[];for(const _0x599d2c of _0x537f40){if(!_0x599d2c[_0x28dd('0x56')])continue;if(_0x599d2c['isMultiRange']){_0x3b6071[_0x28dd('0x45')](..._0x599d2c[_0x28dd('0x4a')]());continue;}const _0x2d3383=_0x599d2c['getFirstRange']();if(_0x3b6071[_0x28dd('0x49')]>0x0){const _0x593810=_0x3b6071[0x0][_0x28dd('0xf')](_0x2d3383);if(_0x593810){_0x3b6071[0x0]=_0x593810;continue;}}_0x3b6071[_0x28dd('0x45')](_0x2d3383);}_0x357bda[_0x28dd('0x45')]([_0x423596[_0x28dd('0x5e')],_0x3b6071]);}return _0x357bda;}),this[_0x28dd('0x34')](_0x144a1b,_0x28dd('0x59'),(_0x5315fe,_0x3d139f)=>{this[_0x28dd('0x34')](_0x3d139f,_0x28dd('0x15'),(_0x44d5a5,_0x4c9ea6,_0x97f548,_0x1e1ed9)=>{_0x3d139f['isInContent']&&(null==_0x97f548?(this['_updateController'](_0x1e1ed9[_0x28dd('0x20')]),this[_0x28dd('0xc')](_0x3d139f,!0x1)):(this[_0x28dd('0x66')](_0x97f548[_0x28dd('0x20')]),this['_handleSuggestionControllerDelayed'](_0x3d139f,!0x0)));}),null===_0x3d139f[_0x28dd('0x31')]?this[_0x28dd('0xc')](_0x3d139f,!0x1):this[_0x28dd('0x66')](_0x3d139f[_0x28dd('0x20')]);}),this[_0x28dd('0x34')](_0x144a1b,'suggestionUnloaded',(_0x92e1b1,_0x255970,_0x3382e3)=>{this['stopListening'](_0x255970,_0x28dd('0x15')),this[_0x28dd('0x47')][_0x28dd('0x32')](_0x255970);const _0x379691=_0x3382e3?_0x3382e3['head']:_0x255970,_0x335dd8=this['_suggestionToController']['get'](_0x379691);null!==_0x3382e3&&this[_0x28dd('0x66')](_0x379691),null===_0x3382e3&&_0x335dd8&&this['_destroyController'](_0x255970);}),this[_0x28dd('0x34')](_0x144a1b,'suggestionChanged',(_0x4c876b,_0x2d7f09)=>{this[_0x28dd('0x66')](_0x2d7f09);}),this['listenTo'](_0x18fda5,_0x28dd('0x62'),()=>{this[_0x28dd('0x12')]();}),this['listenTo'](_0x367be3,'addComment',(_0x3d9341,{threadId:_0x470e6d,isFromAdapter:_0x4b8b35})=>{if(_0x4b8b35||!_0x144a1b[_0x28dd('0x4b')](_0x470e6d))return;const _0x3dfadb=_0x144a1b[_0x28dd('0x2c')](_0x470e6d);this[_0x28dd('0x30')][_0x28dd('0x51')](_0x3dfadb)[_0x28dd('0x5e')][_0x28dd('0x22')]();},{'priority':'lowest'});}[_0x28dd('0x12')](){const _0x241acd=this['editor'][_0x28dd('0x5f')][_0x28dd('0x51')]('Annotations'),_0x853efc=this[_0x28dd('0x6')]['plugins']['get'](_0x28dd('0x3f')),_0x7598d6=Array[_0x28dd('0x19')](_0x241acd[_0x28dd('0x35')],_0x1fc63f=>_0x1fc63f['innerView'])[_0x28dd('0x38')](_0x10c6fe=>this[_0x28dd('0x1f')]['has'](_0x10c6fe)),_0x394591=[];for(const _0x239d3f of _0x7598d6){const _0x4f037e=this[_0x28dd('0x1f')][_0x28dd('0x51')](_0x239d3f)[_0x28dd('0x1b')][_0x28dd('0x54')]();_0x394591[_0x28dd('0x45')](..._0x4f037e[_0x28dd('0x55')]((_0x558593,_0x35fa74)=>[..._0x558593,..._0x35fa74['getMarkerNames']()],[]));}_0x853efc['activeMarkers']=_0x394591;}['_createUIButton'](_0x3d5d34){const _0x213622=_0x3737c1(_0x3d5d34,_0x15920c),_0x3d654d=this[_0x28dd('0x6')]['commands'][_0x28dd('0x51')](_0x28dd('0x21')),_0x3a83d4=_0x1c9bbc(_0x3d5d34,_0x28dd('0x1d'));_0x213622[_0x28dd('0x8')][_0x28dd('0x17')]({'tooltip':_0x3a83d4,'label':_0x3a83d4,'icon':_0x4d9558}),_0x213622[_0x28dd('0x8')][_0x28dd('0x18')](_0x28dd('0x36'))['to'](_0x3d654d,_0x28dd('0x2d')),_0x213622[_0x28dd('0x8')]['on'](_0x28dd('0x24'),()=>{_0x3d654d['execute'](),this[_0x28dd('0x6')][_0x28dd('0xb')][_0x28dd('0x5e')][_0x28dd('0x22')]();});const _0x37d682=new _0x366def(),_0x5c916d=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x3a83d4,'commandName':_0x28dd('0x21')}},{'type':_0x28dd('0x0')},{'type':_0x28dd('0x41'),'model':{'withText':!0x0,'label':_0x1c9bbc(_0x3d5d34,_0x28dd('0x3b')),'commandName':_0x28dd('0x16')}},{'type':_0x28dd('0x41'),'model':{'withText':!0x0,'label':_0x1c9bbc(_0x3d5d34,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x28dd('0x44')}},{'type':_0x28dd('0x41'),'model':{'withText':!0x0,'label':_0x1c9bbc(_0x3d5d34,_0x28dd('0xe')),'commandName':_0x28dd('0x13')}},{'type':_0x28dd('0x41'),'model':{'withText':!0x0,'label':_0x1c9bbc(_0x3d5d34,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x28dd('0x57')}}];for(const _0x965ad6 of _0x5c916d){let _0x53e97c={'type':'separator'};if(_0x965ad6['model']){const _0x1bb07e=new _0x5b396e(_0x965ad6[_0x28dd('0x1b')]),_0x5123a1=this[_0x28dd('0x6')][_0x28dd('0x3e')]['get'](_0x1bb07e[_0x28dd('0x2b')]);_0x1bb07e[_0x28dd('0x18')]('isOn',_0x28dd('0x33'))['to'](_0x5123a1,_0x28dd('0x2d'),_0x28dd('0x33')),_0x53e97c={'type':_0x965ad6['type'],'model':_0x1bb07e};}_0x37d682['add'](_0x53e97c);}_0x4494e1(_0x213622,_0x37d682);const _0x4717a4=_0x5c916d['filter'](_0x5e43ac=>null!=_0x5e43ac[_0x28dd('0x1b')])[_0x28dd('0x29')](_0x335ea8=>this[_0x28dd('0x6')][_0x28dd('0x3e')][_0x28dd('0x51')](_0x335ea8[_0x28dd('0x1b')]['commandName'])),_0x405399=_0x213622[_0x28dd('0x8')];return _0x405399['actionView'][_0x28dd('0x3a')](_0x28dd('0x33')),_0x405399[_0x28dd('0x63')]['unbind'](_0x28dd('0x33')),_0x405399[_0x28dd('0x65')][_0x28dd('0x18')]('isEnabled')['to'](_0x3d654d,_0x28dd('0x33')),_0x405399[_0x28dd('0x63')][_0x28dd('0x18')](_0x28dd('0x33'))['toMany'](_0x4717a4,_0x28dd('0x33'),(..._0x1b2b99)=>_0x1b2b99[_0x28dd('0x3')](_0x27c1fc=>_0x27c1fc)),_0x213622['on']('execute',_0x329e37=>{this[_0x28dd('0x6')]['execute'](_0x329e37[_0x28dd('0x64')][_0x28dd('0x2b')]),this[_0x28dd('0x6')]['editing'][_0x28dd('0x5e')][_0x28dd('0x22')]();}),_0x213622;}[_0x28dd('0x11')](_0x28bee5){const _0x27a058=this[_0x28dd('0x6')],_0x31a24b=_0x27a058[_0x28dd('0x67')],_0x25738d=_0x27a058[_0x28dd('0x5f')][_0x28dd('0x51')]('Annotations'),_0x47e7db=_0x27a058[_0x28dd('0x5f')]['get']('CommentsRepository'),_0x15a6da=_0x27a058['plugins'][_0x28dd('0x51')]('EditorAnnotations'),_0xb7e23f=_0x27a058['plugins'][_0x28dd('0x51')](_0x4af76d)['me'],_0xaed52f=_0x31a24b[_0x28dd('0x51')](_0x28dd('0x21'))['SuggestionThreadView'],{CommentsListView:_0x3f5a10,CommentThreadInputView:_0xedd1ff}=_0x27a058[_0x28dd('0x5f')][_0x28dd('0x51')](_0x28dd('0x14'));let _0x6bf719,_0x801656;this[_0x28dd('0x50')][_0x28dd('0x3d')](_0x28bee5['id'])?(_0x801656=this['_annotationViews']['get'](_0x28bee5['id']),_0x6bf719=_0x801656[_0x28dd('0x4')]):(_0x6bf719=new _0xaed52f(_0x27a058[_0x28dd('0x4c')],_0x28bee5,_0xb7e23f,{'disableComments':this[_0x28dd('0x2')],'editorConfig':_0x31a24b[_0x28dd('0x51')](_0x28dd('0x1c')),'maxCommentsWhenCollapsed':_0x31a24b[_0x28dd('0x51')](_0x28dd('0x5')),'maxThreadTotalWeight':_0x31a24b[_0x28dd('0x51')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x31a24b[_0x28dd('0x51')](_0x28dd('0x2e')),'formatDateTime':_0x35ef80(_0x31a24b['get'](_0x28dd('0x4c'))),'CommentView':_0x31a24b[_0x28dd('0x51')](_0x28dd('0x7'))[_0x28dd('0x27')],'CommentsListView':_0x3f5a10,'CommentThreadInputView':_0xedd1ff}),_0x6bf719['acceptButton']['on'](_0x28dd('0x24'),()=>{_0x27a058['editing']['view'][_0x28dd('0x22')]();}),_0x6bf719[_0x28dd('0x52')]['on'](_0x28dd('0x24'),()=>{_0x27a058['editing'][_0x28dd('0x5e')][_0x28dd('0x22')]();}),_0x801656=_0x25738d[_0x28dd('0x23')](this[_0x28dd('0x6')]['locale'],_0x6bf719),_0x801656['bind'](_0x28dd('0x26'))['to'](_0x6bf719,_0x28dd('0x26')),_0x801656[_0x28dd('0x18')](_0x28dd('0x49'))['to'](_0x6bf719),_0x801656[_0x28dd('0x18')]('type')['to'](_0x6bf719,_0x28dd('0x48'),_0x3c4f41=>'suggestion-'+_0x3c4f41),this[_0x28dd('0x50')][_0x28dd('0x17')](_0x28bee5['id'],_0x801656));const _0x228b22=_0x47e7db[_0x28dd('0x5a')](_0x28bee5[_0x28dd('0x46')],_0x6bf719),_0x47e2cc=new _0x4c9ef1(_0x27a058,_0x28bee5,_0x6bf719,_0x228b22),_0x59e50e=_0x28bee5['getAllAdjacentSuggestions']()[_0x28dd('0x38')](_0x6ce524=>_0x6ce524[_0x28dd('0x56')]);_0x6bf719[_0x28dd('0x58')]=_0x27a058[_0x28dd('0x5f')][_0x28dd('0x51')](_0x28dd('0x3f'))[_0x28dd('0x4e')][_0x28dd('0x1e')](_0x59e50e),this['_suggestionToController'][_0x28dd('0x17')](_0x28bee5,_0x47e2cc),this['_viewToController'][_0x28dd('0x17')](_0x6bf719,_0x47e2cc);const _0x23cc8d=_0x25738d[_0x28dd('0x43')]({'view':_0x801656,'target':()=>{const _0x5b6e35=[],_0x365409=_0x28bee5[_0x28dd('0x54')]()[_0x28dd('0x38')](_0x43643f=>_0x43643f[_0x28dd('0x56')]);for(const _0x437b35 of _0x365409)_0x5b6e35['push'](..._0x437b35['getMarkers']());return _0x13b4a7(_0x27a058[_0x28dd('0xb')],_0x5b6e35);},'type':()=>_0x28dd('0x5b')+_0x47e2cc[_0x28dd('0x5e')]['type']});_0x25738d[_0x28dd('0x37')](_0x23cc8d),_0x15a6da[_0x28dd('0x40')](_0x23cc8d);}[_0x28dd('0x42')](_0x1a0578){const _0x3910a5=this['editor'][_0x28dd('0x5f')][_0x28dd('0x51')](_0x28dd('0x2a')),_0xf22dde=this[_0x28dd('0x30')][_0x28dd('0x51')](_0x1a0578),_0x1d991a=_0xf22dde['view'],_0x5b2b73=_0x3910a5[_0x28dd('0x39')](_0x1d991a);_0x5b2b73&&_0x3910a5[_0x28dd('0x60')](_0x5b2b73),this[_0x28dd('0x30')][_0x28dd('0x32')](_0x1a0578),this[_0x28dd('0x1f')]['delete'](_0x1d991a),_0xf22dde[_0x28dd('0x53')]();}[_0x28dd('0x66')](_0x191c91){if(!_0x191c91[_0x28dd('0x56')]||!this[_0x28dd('0x30')][_0x28dd('0x3d')](_0x191c91))return;const _0x34d222=this['editor']['plugins'][_0x28dd('0x51')](_0x28dd('0x3f')),_0x52924=this[_0x28dd('0x30')][_0x28dd('0x51')](_0x191c91),_0x20254a=_0x191c91[_0x28dd('0x54')]();_0x52924['view'][_0x28dd('0x58')]=_0x34d222[_0x28dd('0x4e')]['getDescriptions'](_0x20254a);}[_0x28dd('0x53')](){for(const _0x1d6205 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d6205);for(const _0x440671 of this[_0x28dd('0x50')][_0x28dd('0x5d')]())_0x440671[_0x28dd('0x4')]['destroy']();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bf9=['_pendingAction','isEnabled','bind','get','_setPendingAction','execute','unbind','acceptSuggestion','destroy','view','PENDING_ACTION_SUGGESTION','model','PendingActions','canAccept','discardSuggestion','canDiscard','listenTo','_removePendingAction','remove','commands','add','change:isDirty','_discardCommand','plugins','commentThreadController','_editor','_acceptCommand'];(function(_0x3683fb,_0x3bf9d9){const _0x20b07a=function(_0x55febd){while(--_0x55febd){_0x3683fb['push'](_0x3683fb['shift']());}};_0x20b07a(++_0x3bf9d9);}(_0x3bf9,0x149));const _0x20b0=function(_0x3683fb,_0x3bf9d9){_0x3683fb=_0x3683fb-0x0;let _0x20b07a=_0x3bf9[_0x3683fb];return _0x20b07a;};import{ObservableMixin as _0x1c68b3}from'ckeditor5/src/utils';import{getTranslation as _0x4b4758}from'../utils/common-translations';export default class qt extends _0x1c68b3(){constructor(_0x44985b,_0x4620c5,_0xde16b2,_0x30bf46){super(),this[_0x20b0('0x6')]=_0x4620c5,this[_0x20b0('0x4')]=_0xde16b2,this[_0x20b0('0x13')]=_0x30bf46,this[_0x20b0('0x14')]=_0x44985b,this[_0x20b0('0x15')]=_0x44985b[_0x20b0('0xe')][_0x20b0('0x19')]('acceptSuggestion'),this[_0x20b0('0x11')]=_0x44985b[_0x20b0('0xe')][_0x20b0('0x19')](_0x20b0('0x9')),this[_0x20b0('0x4')][_0x20b0('0x18')](_0x20b0('0x17'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x17afdd,_0x4d8528)=>_0x17afdd||_0x4d8528),this['view']['bind'](_0x20b0('0x8'))['to'](this[_0x20b0('0x15')],'isEnabled'),this[_0x20b0('0x4')][_0x20b0('0x18')](_0x20b0('0xa'))['to'](this[_0x20b0('0x11')],_0x20b0('0x17')),this['_pendingAction']=null,_0xde16b2['isDirty']&&this['_setPendingAction'](),this[_0x20b0('0xb')](_0xde16b2,_0x20b0('0x2'),()=>this[_0x20b0('0x2')]()),this[_0x20b0('0xb')](_0xde16b2,_0x20b0('0x9'),()=>this[_0x20b0('0x9')]()),this[_0x20b0('0xb')](_0xde16b2,_0x20b0('0x10'),()=>{_0xde16b2['isDirty']?this[_0x20b0('0x1a')]():this[_0x20b0('0xc')]();});}['acceptSuggestion'](){this[_0x20b0('0x15')][_0x20b0('0x0')](this[_0x20b0('0x6')]['id']);}['discardSuggestion'](){this[_0x20b0('0x11')][_0x20b0('0x0')](this[_0x20b0('0x6')]['id']);}[_0x20b0('0x3')](){this['view'][_0x20b0('0x1')](_0x20b0('0x17')),this[_0x20b0('0x4')][_0x20b0('0x1')](_0x20b0('0x8')),this[_0x20b0('0x4')]['unbind'](_0x20b0('0xa')),this['stopListening'](),this[_0x20b0('0x13')][_0x20b0('0x3')](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x3636ed=_0x4b4758(this[_0x20b0('0x14')]['locale'],_0x20b0('0x5'));this[_0x20b0('0x16')]=this[_0x20b0('0x14')][_0x20b0('0x12')][_0x20b0('0x19')](_0x20b0('0x7'))[_0x20b0('0xf')](_0x3636ed);}[_0x20b0('0xc')](){null!==this[_0x20b0('0x16')]&&this['_editor'][_0x20b0('0x12')][_0x20b0('0x19')](_0x20b0('0x7'))[_0x20b0('0xd')](this[_0x20b0('0x16')]),this[_0x20b0('0x16')]=null;}}
23
+ const _0x57f6=['view','bind','discardSuggestion','_editor','locale','change:isDirty','plugins','destroy','_setPendingAction','canDiscard','_pendingAction','model','_discardCommand','isDirty','add','PENDING_ACTION_SUGGESTION','listenTo','isEnabled','getRanges','commentThreadController','execute','remove','unbind','canEditAt','_acceptCommand','acceptSuggestion','PendingActions','_removePendingAction','get','canAccept','commands'];(function(_0x2ba05d,_0x57f6ba){const _0x3468dc=function(_0x1a84e1){while(--_0x1a84e1){_0x2ba05d['push'](_0x2ba05d['shift']());}};_0x3468dc(++_0x57f6ba);}(_0x57f6,0x11b));const _0x3468=function(_0x2ba05d,_0x57f6ba){_0x2ba05d=_0x2ba05d-0x0;let _0x3468dc=_0x57f6[_0x2ba05d];return _0x3468dc;};import{ObservableMixin as _0x3c51da}from'ckeditor5/src/utils';import{getTranslation as _0x1823d0}from'../utils/common-translations';export default class qt extends _0x3c51da(){constructor(_0x5817ff,_0x26c595,_0x1a464e,_0x1d50da){super(),this[_0x3468('0x7')]=_0x26c595,this['view']=_0x1a464e,this['commentThreadController']=_0x1d50da,this[_0x3468('0x1e')]=_0x5817ff,this[_0x3468('0x14')]=_0x5817ff[_0x3468('0x1a')][_0x3468('0x18')](_0x3468('0x15')),this[_0x3468('0x8')]=_0x5817ff[_0x3468('0x1a')][_0x3468('0x18')](_0x3468('0x1d')),this['view'][_0x3468('0x1c')](_0x3468('0xd'))['to'](this[_0x3468('0x14')],this['_discardCommand'],(_0x27703b,_0xa9e439)=>_0x27703b||_0xa9e439),this[_0x3468('0x1b')]['bind'](_0x3468('0x19'))['to'](this[_0x3468('0x14')],_0x3468('0xd'),_0x5ba93d=>_0x5ba93d&&this['_editor'][_0x3468('0x7')]['canEditAt'](_0x26c595[_0x3468('0xe')]())),this[_0x3468('0x1b')][_0x3468('0x1c')]('canDiscard')['to'](this[_0x3468('0x8')],_0x3468('0xd'),_0x272770=>_0x272770&&this[_0x3468('0x1e')][_0x3468('0x7')][_0x3468('0x13')](_0x26c595[_0x3468('0xe')]())),this[_0x3468('0x6')]=null,_0x1a464e[_0x3468('0x9')]&&this['_setPendingAction'](),this[_0x3468('0xc')](_0x1a464e,_0x3468('0x15'),()=>this[_0x3468('0x15')]()),this['listenTo'](_0x1a464e,'discardSuggestion',()=>this[_0x3468('0x1d')]()),this['listenTo'](_0x1a464e,_0x3468('0x1'),()=>{_0x1a464e['isDirty']?this['_setPendingAction']():this[_0x3468('0x17')]();});}[_0x3468('0x15')](){this[_0x3468('0x14')][_0x3468('0x10')](this[_0x3468('0x7')]['id']);}[_0x3468('0x1d')](){this[_0x3468('0x8')][_0x3468('0x10')](this[_0x3468('0x7')]['id']);}[_0x3468('0x3')](){this[_0x3468('0x1b')][_0x3468('0x12')](_0x3468('0xd')),this[_0x3468('0x1b')][_0x3468('0x12')](_0x3468('0x19')),this['view'][_0x3468('0x12')](_0x3468('0x5')),this['stopListening'](),this[_0x3468('0xf')]['destroy'](),this[_0x3468('0x6')]&&this[_0x3468('0x17')]();}[_0x3468('0x4')](){const _0x58754e=_0x1823d0(this[_0x3468('0x1e')][_0x3468('0x0')],_0x3468('0xb'));this[_0x3468('0x6')]=this[_0x3468('0x1e')][_0x3468('0x2')][_0x3468('0x18')](_0x3468('0x16'))[_0x3468('0xa')](_0x58754e);}[_0x3468('0x17')](){null!==this[_0x3468('0x6')]&&this['_editor'][_0x3468('0x2')]['get'](_0x3468('0x16'))[_0x3468('0x11')](this[_0x3468('0x6')]),this[_0x3468('0x6')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xeeee=['set','_model','setData','isDirty','locale','_localUser','CommentView','element','authoredAt','canAccept','_config','fire','isEnabled','bind','delegate','disabledSubmit','commentThreadInputView','cancel','hasDirtyComment','focus','value','removeComment','destroy','commentsListView','_createCommentThreadInputView','disableComments','commentInputView','addComment','commentThread','submit','_createCommentViews','showInput','isActive','canDiscard','isReadOnly','length'];(function(_0x2a4d6f,_0xeeee96){const _0x5da339=function(_0x2c26ce){while(--_0x2c26ce){_0x2a4d6f['push'](_0x2a4d6f['shift']());}};_0x5da339(++_0xeeee96);}(_0xeeee,0x115));const _0x5da3=function(_0x2a4d6f,_0xeeee96){_0x2a4d6f=_0x2a4d6f-0x0;let _0x5da339=_0xeeee[_0x2a4d6f];return _0x5da339;};import{View as _0xc162d7}from'ckeditor5/src/ui';export default class ii extends _0xc162d7{constructor(_0x3a9d20,_0xa4010a,_0xa22ee,_0x3b163e){super(_0x3a9d20),this[_0x5da3('0x22')]=null,this['commentThreadInputView']=null,this[_0x5da3('0xb')]('isActive',!0x1),this['set'](_0x5da3('0x13'),_0xa4010a['authoredAt']),this['bind'](_0x5da3('0x13'))['to'](_0xa4010a),this[_0x5da3('0xb')]('descriptionParts',[]),this[_0x5da3('0xb')](_0x5da3('0xe'),!0x1),this[_0x5da3('0xb')](_0x5da3('0x17'),!0x1),this[_0x5da3('0xb')](_0x5da3('0x14'),!0x1),this['set'](_0x5da3('0x8'),!0x1),this[_0x5da3('0xc')]=_0xa4010a,this[_0x5da3('0x10')]=_0xa22ee,this[_0x5da3('0x15')]=_0x3b163e,_0x3b163e[_0x5da3('0x0')]?this[_0x5da3('0xb')]('length',0x1):this['_createCommentViews']();}[_0x5da3('0x1e')](){this[_0x5da3('0x12')][_0x5da3('0x1e')]();}[_0x5da3('0x21')](){this['commentsListView']&&this['commentsListView'][_0x5da3('0x21')](),this[_0x5da3('0x1b')]&&this['commentThreadInputView'][_0x5da3('0x21')](),super['destroy']();}[_0x5da3('0x5')](){const {CommentsListView:_0x51fca0}=this[_0x5da3('0x15')];this[_0x5da3('0x22')]=new _0x51fca0(this[_0x5da3('0xf')],this[_0x5da3('0xc')]['commentThread'],Object['assign']({'CommentView':this[_0x5da3('0x15')][_0x5da3('0x11')]},this['_config'])),this[_0x5da3('0x22')][_0x5da3('0x19')](_0x5da3('0x20'))['to'](this),this[_0x5da3('0x22')][_0x5da3('0x19')]('updateComment')['to'](this),this['commentsListView'][_0x5da3('0x18')]('isActive')['to'](this),this['set'](_0x5da3('0xa'),this[_0x5da3('0x22')][_0x5da3('0xa')]+0x1),this['bind'](_0x5da3('0xa'))['to'](this[_0x5da3('0x22')],_0x5da3('0xa'),_0xcdbc52=>_0xcdbc52+0x1),this[_0x5da3('0x1b')]=this[_0x5da3('0x23')](),this['on'](_0x5da3('0x20'),()=>this['focus']()),this[_0x5da3('0x18')](_0x5da3('0xe'))['to'](this[_0x5da3('0x22')],_0x5da3('0x1d'),this['commentThreadInputView']['commentInputView'],_0x5da3('0x1f'),(_0x24e32c,_0x2a26ea)=>_0x24e32c||!!_0x2a26ea);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x49f5a1}=this[_0x5da3('0x15')],_0x225a57=new _0x49f5a1(this[_0x5da3('0xf')],this[_0x5da3('0x10')],this[_0x5da3('0x15')]['editorConfig']),_0x1e7819=_0x225a57[_0x5da3('0x1')];return _0x225a57[_0x5da3('0x18')](_0x5da3('0x6'))['to'](this,_0x5da3('0x7'),this[_0x5da3('0xc')][_0x5da3('0x3')],_0x5da3('0x9'),_0x1e7819,_0x5da3('0x1f'),(_0x5bf770,_0x2ec4b7,_0x3f8820)=>!!_0x3f8820||_0x5bf770&&!_0x2ec4b7),_0x1e7819['on'](_0x5da3('0x4'),(_0x144c0b,_0xdfc9b8)=>{this[_0x5da3('0x16')](_0x5da3('0x2'),_0xdfc9b8),_0x1e7819['editor'][_0x5da3('0xd')]('');}),_0x1e7819['on'](_0x5da3('0x1c'),()=>this['focus']()),_0x1e7819[_0x5da3('0x18')](_0x5da3('0x1a'))['to'](this[_0x5da3('0xc')][_0x5da3('0x3')],'isReadOnly'),_0x225a57;}}
23
+ const _0x20c0=['authoredAt','isDirty','canAccept','commentThread','commentsListView','canDiscard','isActive','descriptionParts','CommentView','element','delegate','_createCommentThreadInputView','length','_localUser','showInput','locale','removeComment','_model','fire','_createCommentViews','commentInputView','bind','destroy','hasDirtyComment','disableComments','addComment','editorConfig','value','focus','submit','isEnabled','commentThreadInputView','set','disabledSubmit','_config','isReadOnly'];(function(_0x5dc590,_0x20c066){const _0x428bf6=function(_0x14ebb0){while(--_0x14ebb0){_0x5dc590['push'](_0x5dc590['shift']());}};_0x428bf6(++_0x20c066);}(_0x20c0,0x1ee));const _0x428b=function(_0x5dc590,_0x20c066){_0x5dc590=_0x5dc590-0x0;let _0x428bf6=_0x20c0[_0x5dc590];return _0x428bf6;};import{View as _0x2b208d}from'ckeditor5/src/ui';export default class ii extends _0x2b208d{constructor(_0x10eaa3,_0x4050c5,_0x57f398,_0x2d5c60){super(_0x10eaa3),this[_0x428b('0xe')]=null,this[_0x428b('0x5')]=null,this['set'](_0x428b('0x10'),!0x1),this[_0x428b('0x6')](_0x428b('0xa'),_0x4050c5['authoredAt']),this[_0x428b('0x1f')](_0x428b('0xa'))['to'](_0x4050c5),this[_0x428b('0x6')](_0x428b('0x11'),[]),this['set']('isDirty',!0x1),this['set'](_0x428b('0x4'),!0x1),this['set'](_0x428b('0xc'),!0x1),this['set'](_0x428b('0xf'),!0x1),this[_0x428b('0x1b')]=_0x4050c5,this[_0x428b('0x17')]=_0x57f398,this[_0x428b('0x8')]=_0x2d5c60,_0x2d5c60[_0x428b('0x22')]?this['set']('length',0x1):this[_0x428b('0x1d')]();}[_0x428b('0x2')](){this[_0x428b('0x13')]['focus']();}[_0x428b('0x20')](){this[_0x428b('0xe')]&&this['commentsListView'][_0x428b('0x20')](),this[_0x428b('0x5')]&&this[_0x428b('0x5')][_0x428b('0x20')](),super[_0x428b('0x20')]();}['_createCommentViews'](){const {CommentsListView:_0x17c519}=this[_0x428b('0x8')];this[_0x428b('0xe')]=new _0x17c519(this['locale'],this[_0x428b('0x1b')][_0x428b('0xd')],Object['assign']({'CommentView':this[_0x428b('0x8')][_0x428b('0x12')]},this[_0x428b('0x8')])),this[_0x428b('0xe')]['delegate'](_0x428b('0x1a'))['to'](this),this['commentsListView'][_0x428b('0x14')]('updateComment')['to'](this),this[_0x428b('0xe')]['bind'](_0x428b('0x10'))['to'](this),this[_0x428b('0x6')]('length',this['commentsListView'][_0x428b('0x16')]+0x1),this[_0x428b('0x1f')]('length')['to'](this[_0x428b('0xe')],_0x428b('0x16'),_0x4d8cc1=>_0x4d8cc1+0x1),this[_0x428b('0x5')]=this[_0x428b('0x15')](),this['on'](_0x428b('0x1a'),()=>this['focus']()),this[_0x428b('0x1f')](_0x428b('0xb'))['to'](this['commentsListView'],_0x428b('0x21'),this[_0x428b('0x5')]['commentInputView'],_0x428b('0x1'),(_0x591e93,_0x16966c)=>_0x591e93||!!_0x16966c);}[_0x428b('0x15')](){const {CommentThreadInputView:_0x396b69}=this[_0x428b('0x8')],_0xe08127=new _0x396b69(this[_0x428b('0x19')],this[_0x428b('0x17')],this[_0x428b('0x8')][_0x428b('0x0')]),_0x4bc3d5=_0xe08127[_0x428b('0x1e')];return _0xe08127[_0x428b('0x1f')](_0x428b('0x18'))['to'](this,_0x428b('0x10'),this[_0x428b('0x1b')][_0x428b('0xd')],_0x428b('0x9'),_0x4bc3d5,'value',(_0x1592cc,_0x2546b4,_0x3ae3a3)=>!!_0x3ae3a3||_0x1592cc&&!_0x2546b4),_0x4bc3d5['on'](_0x428b('0x3'),(_0x58c7d0,_0x5decf1)=>{this[_0x428b('0x1c')](_0x428b('0x23'),_0x5decf1),_0x4bc3d5['editor']['setData']('');}),_0x4bc3d5['on']('cancel',()=>this['focus']()),_0x4bc3d5[_0x428b('0x1f')](_0x428b('0x7'))['to'](this[_0x428b('0x1b')][_0x428b('0xd')],_0x428b('0x9')),_0xe08127;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7afd=['</p>','name','EXTERNAL_IMPORT_WORD_SUGGESTION','ck-annotation__content-wrapper','check','ck-suggestion__user','formatDateTime','getTemplate','getExternalSuggestionNote','change:description','render','\x22\x20title=\x22','ck-comment__info-time','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','discardButton','ck-suggestion--accept','ck-annotation__info-time','<p>','title','set','isExternal','userView','EXTERNAL_AVATAR','ck-annotation__user','creator','attributes','\x22></span>','ck-suggestion-wrapper','ck-suggestion-wrapper--active','acceptButton','innerHTML','EXTERNAL_IMPORT_WORD_AVATAR','@external','ck-suggestion','span','ck-suggestion__info','cancel','ck-suggestion__info-name','discardSuggestion','canDiscard','<span\x20class=\x22ck-suggestion-type\x22>','fire','_descriptionElement','ck-annotation','type','Accept\x20suggestion','_config','innerText','execute','</span>','content','authoredAt','isEnabled','setTemplate','acceptSuggestion','author','extendTemplate','ck-suggestion--discard','ck-annotation__info-name','color','children','commentsListView','getUserViewNotificationText','descriptionParts','commentThreadInputView','element','ck-suggestion__main','_createButton','push','bindTemplate','querySelector','.ck-annotation__content-wrapper','map','_model','locale','bind','ck-suggestion-','source','disableComments','Discard\x20suggestion','description','div','split','ck-suggestion--disabled-comments','ck-suggestion__actions'];(function(_0x2fe544,_0x7afda5){const _0x236f0c=function(_0xeaa964){while(--_0xeaa964){_0x2fe544['push'](_0x2fe544['shift']());}};_0x236f0c(++_0x7afda5);}(_0x7afd,0x70));const _0x236f=function(_0x2fe544,_0x7afda5){_0x2fe544=_0x2fe544-0x0;let _0x236f0c=_0x7afd[_0x2fe544];return _0x236f0c;};import{getTranslation as _0x49b905}from'../../utils/common-translations';import{default as _0x5730da}from'./basesuggestionthreadview';import{ButtonView as _0x405611}from'ckeditor5/src/ui';import{icons as _0x33766e}from'ckeditor5/src/core';import{trimHtml as _0x4f9042,UserView as _0x68a9f3}from'ckeditor5-collaboration/src/collaboration-core';export default class zt extends _0x5730da{constructor(_0x20efca,_0x32f6ec,_0x52adcf,_0x3776cb){super(_0x20efca,_0x32f6ec,_0x52adcf,_0x3776cb),this[_0x236f('0x4d')](_0x236f('0x11'),''),this[_0x236f('0x30')](_0x236f('0x11'))['to'](this,_0x236f('0x24'),_0x5d2e5c=>_0x5d2e5c&&_0x5d2e5c[0x0]?_0x5d2e5c[0x0][_0x236f('0x11')]:''),this[_0x236f('0x30')](_0x236f('0x35'))['to'](this,_0x236f('0x24'),this,'isActive',(_0x1de2d5,_0x2b9f1d)=>{let _0x501665='';for(const _0x4bce85 of _0x1de2d5)_0x501665+=_0x236f('0x4b')+ns(_0x4bce85[_0x236f('0x17')],_0x4bce85[_0x236f('0x20')])+_0x236f('0x3a');return _0x2b9f1d?_0x501665:_0x4f9042(_0x501665,{'limit':0x8c});}),this[_0x236f('0xf')]=null,this['acceptButton']=this[_0x236f('0x28')](_0x49b905(_0x20efca,_0x236f('0x12')),_0x33766e[_0x236f('0x3e')],_0x236f('0x49'),_0x236f('0x1b'),'sw'),this[_0x236f('0x2')]['bind'](_0x236f('0x19'))['to'](this,'canAccept'),this[_0x236f('0x48')]=this[_0x236f('0x28')](_0x49b905(_0x20efca,_0x236f('0x34')),_0x33766e[_0x236f('0x9')],_0x236f('0x1e'),_0x236f('0xb'),'sw'),this['discardButton']['bind'](_0x236f('0x19'))['to'](this,_0x236f('0xc')),this[_0x236f('0x4f')]=new _0x68a9f3(_0x20efca,this[_0x236f('0x2e')]['author'],this[_0x236f('0x23')]()),this[_0x236f('0x4f')][_0x236f('0x1d')]({'attributes':{'class':[_0x236f('0x3f'),_0x236f('0x51')]}}),this[_0x236f('0x1a')](this[_0x236f('0x41')]());}[_0x236f('0x41')](){const _0x48f40c=this[_0x236f('0x2a')],_0x5b9e50=[{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x8'),'ck-annotation__info']},'children':[{'tag':_0x236f('0x7'),'children':[{'text':this[_0x236f('0x4f')][_0x236f('0x3b')]}],'attributes':{'class':[_0x236f('0xa'),_0x236f('0x1f')]}},{'tag':'time','attributes':{'datetime':_0x48f40c['to'](_0x236f('0x18')),'class':[_0x236f('0x46'),_0x236f('0x4a')]},'children':[{'text':_0x48f40c['to'](_0x236f('0x18'),_0x205eb9=>this['_config'][_0x236f('0x40')](_0x205eb9))}]}]},{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x39'),'ck-annotation__actions']},'children':[this['acceptButton'],this[_0x236f('0x48')]]},{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x3d')]}}];this[_0x236f('0x2e')][_0x236f('0x4e')]&&_0x5b9e50[_0x236f('0x29')]({'tag':_0x236f('0x36'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x236f('0x42')]()}]});const _0x4c7edf={'tag':'div','attributes':{'class':[_0x236f('0x0'),_0x48f40c['if']('isActive',_0x236f('0x1')),_0x48f40c['to']('type',_0x1a505e=>_0x236f('0x31')+_0x1a505e),this[_0x236f('0x13')][_0x236f('0x33')]&&_0x236f('0x38')],'data-suggestion-id':this[_0x236f('0x2e')]['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this[_0x236f('0x2e')][_0x236f('0x1c')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x236f('0x6'),_0x236f('0x10')]},'children':[this[_0x236f('0x4f')],{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x27'),'ck-annotation__main']},'children':_0x5b9e50}]}]};return this['commentsListView']&&this[_0x236f('0x25')]&&_0x4c7edf[_0x236f('0x21')][_0x236f('0x29')](this[_0x236f('0x22')],this[_0x236f('0x25')]),_0x4c7edf;}[_0x236f('0x44')](){super[_0x236f('0x44')](),this['_descriptionElement']=this[_0x236f('0x26')][_0x236f('0x2b')](_0x236f('0x2c')),this[_0x236f('0xf')]['innerHTML']=this[_0x236f('0x35')],this['on'](_0x236f('0x43'),(_0x5b03a6,_0x4f0c0d,_0x4e073e)=>{this[_0x236f('0xf')][_0x236f('0x3')]=_0x4e073e;});}[_0x236f('0x28')](_0x22f424,_0x36471e,_0x27a390,_0x7a9e93,_0x5d4ea0){const _0x487151=new _0x405611(this[_0x236f('0x2f')]);return _0x487151[_0x236f('0x4d')]({'label':_0x22f424,'icon':_0x36471e,'tooltip':!0x0,'tooltipPosition':_0x5d4ea0}),_0x487151[_0x236f('0x1d')]({'attributes':{'class':_0x27a390}}),_0x487151['on'](_0x236f('0x15'),()=>{this[_0x236f('0xe')](_0x7a9e93,this[_0x236f('0x2e')]['id']);}),_0x487151;}['getExternalSuggestionNote'](){return'importWord'===this['_model'][_0x236f('0x53')][_0x236f('0x5')][_0x236f('0x32')]?_0x49b905(this[_0x236f('0x2f')],_0x236f('0x3c')):_0x49b905(this[_0x236f('0x2f')],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this[_0x236f('0x2e')][_0x236f('0x4e')]?'importWord'===this[_0x236f('0x2e')][_0x236f('0x53')]['@external'][_0x236f('0x32')]?_0x49b905(this[_0x236f('0x2f')],_0x236f('0x4'),this[_0x236f('0x2e')][_0x236f('0x52')][_0x236f('0x3b')]):_0x49b905(this[_0x236f('0x2f')],_0x236f('0x50'),this[_0x236f('0x2e')]['creator'][_0x236f('0x3b')]):null;}}function ns(_0x1bf2da,_0x44b841){let _0x55184c='';return _0x55184c+=_0x1bf2da[_0x236f('0x37')]('*')[_0x236f('0x2d')]((_0x3e9f27,_0x35ea65)=>_0x35ea65%0x2!=0x0?_0x236f('0xd')+os(_0x3e9f27)+_0x236f('0x16'):os(_0x3e9f27))['join'](''),_0x44b841&&(_0x55184c+=_0x236f('0x47')+_0x44b841['value']+_0x236f('0x45')+_0x44b841[_0x236f('0x4c')]+_0x236f('0x54')),_0x55184c;}function os(_0x41f3e3){const _0x13c567=document['createElement']('span');return _0x13c567[_0x236f('0x14')]=_0x41f3e3,_0x13c567[_0x236f('0x3')];}
23
+ const _0x8163=['innerHTML','ck-suggestion-wrapper','push','ck-annotation__content-wrapper','bindTemplate','ck-comment__info-time','extendTemplate','creator','getTemplate','commentThreadInputView','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','getExternalSuggestionNote','locale','ck-annotation__main','description','Discard\x20suggestion','discardButton','children','ck-suggestion__main','ck-suggestion','ck-suggestion__info-name','<p>','authoredAt','ck-suggestion__info','ck-annotation__info-name','innerText','getUserViewNotificationText','bind','ck-suggestion__actions','ck-annotation__info','attributes','ck-annotation__actions','@external','execute','ck-suggestion--accept','type','setTemplate','name','canDiscard','Accept\x20suggestion','ck-annotation__user','isExternal','importWord','EXTERNAL_IMPORT_WORD_AVATAR','div','source','_descriptionElement','join','_model','ck-suggestion-wrapper--active','element','.ck-annotation__content-wrapper','ck-suggestion__user','createElement','ck-suggestion--discard','_createButton','EXTERNAL_AVATAR','EXTERNAL_SUGGESTION','acceptButton','commentThread','span','isEnabled','isActive','commentsListView','userView','ck-suggestion-','querySelector','discardSuggestion','\x22></span>','\x22\x20title=\x22','fire','<span\x20class=\x22ck-suggestion-type\x22>','cancel','render','ck-annotation','descriptionParts'];(function(_0x12d9a5,_0x8163ca){const _0x17a0d2=function(_0x37fff2){while(--_0x37fff2){_0x12d9a5['push'](_0x12d9a5['shift']());}};_0x17a0d2(++_0x8163ca);}(_0x8163,0xb3));const _0x17a0=function(_0x12d9a5,_0x8163ca){_0x12d9a5=_0x12d9a5-0x0;let _0x17a0d2=_0x8163[_0x12d9a5];return _0x17a0d2;};import{getTranslation as _0x3872ee}from'../../utils/common-translations';import{default as _0x4b1fc4}from'./basesuggestionthreadview';import{ButtonView as _0x188bbe}from'ckeditor5/src/ui';import{icons as _0x2e58eb}from'ckeditor5/src/core';import{trimHtml as _0x2ccb36,UserView as _0x352621}from'ckeditor5-collaboration/src/collaboration-core';export default class zt extends _0x4b1fc4{constructor(_0x4650ef,_0x47430a,_0x508af8,_0x1fdf8d){super(_0x4650ef,_0x47430a,_0x508af8,_0x1fdf8d),this['set'](_0x17a0('0x8'),''),this['bind'](_0x17a0('0x8'))['to'](this,_0x17a0('0x30'),_0x3cbf7f=>_0x3cbf7f&&_0x3cbf7f[0x0]?_0x3cbf7f[0x0][_0x17a0('0x8')]:''),this[_0x17a0('0x0')](_0x17a0('0x3f'))['to'](this,'descriptionParts',this,_0x17a0('0x23'),(_0x54d030,_0x54a02d)=>{let _0x319d36='';for(const _0x17591b of _0x54d030)_0x319d36+=_0x17a0('0x46')+ns(_0x17591b['content'],_0x17591b['color'])+'</p>';return _0x54a02d?_0x319d36:_0x2ccb36(_0x319d36,{'limit':0x8c});}),this[_0x17a0('0x13')]=null,this[_0x17a0('0x1f')]=this[_0x17a0('0x1c')](_0x3872ee(_0x4650ef,_0x17a0('0xc')),_0x2e58eb['check'],_0x17a0('0x7'),'acceptSuggestion','sw'),this[_0x17a0('0x1f')]['bind'](_0x17a0('0x22'))['to'](this,'canAccept'),this['discardButton']=this[_0x17a0('0x1c')](_0x3872ee(_0x4650ef,_0x17a0('0x40')),_0x2e58eb[_0x17a0('0x2d')],_0x17a0('0x1b'),_0x17a0('0x28'),'sw'),this[_0x17a0('0x41')][_0x17a0('0x0')]('isEnabled')['to'](this,_0x17a0('0xb')),this[_0x17a0('0x25')]=new _0x352621(_0x4650ef,this['_model']['author'],this[_0x17a0('0x4b')]()),this[_0x17a0('0x25')][_0x17a0('0x37')]({'attributes':{'class':[_0x17a0('0x19'),_0x17a0('0xd')]}}),this[_0x17a0('0x9')](this[_0x17a0('0x39')]());}[_0x17a0('0x39')](){const _0x3d2254=this[_0x17a0('0x35')],_0x3e1a4d=[{'tag':_0x17a0('0x11'),'attributes':{'class':[_0x17a0('0x48'),_0x17a0('0x2')]},'children':[{'tag':_0x17a0('0x21'),'children':[{'text':this[_0x17a0('0x25')]['name']}],'attributes':{'class':[_0x17a0('0x45'),_0x17a0('0x49')]}},{'tag':'time','attributes':{'datetime':_0x3d2254['to'](_0x17a0('0x47')),'class':[_0x17a0('0x36'),'ck-annotation__info-time']},'children':[{'text':_0x3d2254['to'](_0x17a0('0x47'),_0x479602=>this['_config']['formatDateTime'](_0x479602))}]}]},{'tag':'div','attributes':{'class':[_0x17a0('0x1'),_0x17a0('0x4')]},'children':[this['acceptButton'],this[_0x17a0('0x41')]]},{'tag':_0x17a0('0x11'),'attributes':{'class':[_0x17a0('0x34')]}}];this[_0x17a0('0x15')]['isExternal']&&_0x3e1a4d['push']({'tag':_0x17a0('0x11'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x17a0('0x3c')]()}]});const _0x275be2={'tag':'div','attributes':{'class':[_0x17a0('0x32'),_0x3d2254['if']('isActive',_0x17a0('0x16')),_0x3d2254['to'](_0x17a0('0x8'),_0x2c4a69=>_0x17a0('0x26')+_0x2c4a69),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0x17a0('0x15')]['id'],'data-thread-id':this[_0x17a0('0x15')][_0x17a0('0x20')]['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x17a0('0x44'),_0x17a0('0x2f')]},'children':[this[_0x17a0('0x25')],{'tag':'div','attributes':{'class':[_0x17a0('0x43'),_0x17a0('0x3e')]},'children':_0x3e1a4d}]}]};return this[_0x17a0('0x24')]&&this['commentThreadInputView']&&_0x275be2[_0x17a0('0x42')][_0x17a0('0x33')](this['commentsListView'],this[_0x17a0('0x3a')]),_0x275be2;}[_0x17a0('0x2e')](){super[_0x17a0('0x2e')](),this[_0x17a0('0x13')]=this[_0x17a0('0x17')][_0x17a0('0x27')](_0x17a0('0x18')),this[_0x17a0('0x13')][_0x17a0('0x31')]=this[_0x17a0('0x3f')],this['on']('change:description',(_0x2f0f1c,_0x15d741,_0x17b2ea)=>{this[_0x17a0('0x13')][_0x17a0('0x31')]=_0x17b2ea;});}[_0x17a0('0x1c')](_0x57fc46,_0x3e5f68,_0x428757,_0x2d58e0,_0x547f31){const _0x4e8f22=new _0x188bbe(this[_0x17a0('0x3d')]);return _0x4e8f22['set']({'label':_0x57fc46,'icon':_0x3e5f68,'tooltip':!0x0,'tooltipPosition':_0x547f31}),_0x4e8f22[_0x17a0('0x37')]({'attributes':{'class':_0x428757}}),_0x4e8f22['on'](_0x17a0('0x6'),()=>{this[_0x17a0('0x2b')](_0x2d58e0,this[_0x17a0('0x15')]['id']);}),_0x4e8f22;}[_0x17a0('0x3c')](){return _0x17a0('0xf')===this['_model'][_0x17a0('0x3')]['@external']['source']?_0x3872ee(this[_0x17a0('0x3d')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x3872ee(this['locale'],_0x17a0('0x1e'));}[_0x17a0('0x4b')](){return this[_0x17a0('0x15')][_0x17a0('0xe')]?_0x17a0('0xf')===this[_0x17a0('0x15')]['attributes'][_0x17a0('0x5')][_0x17a0('0x12')]?_0x3872ee(this['locale'],_0x17a0('0x10'),this[_0x17a0('0x15')][_0x17a0('0x38')][_0x17a0('0xa')]):_0x3872ee(this[_0x17a0('0x3d')],_0x17a0('0x1d'),this[_0x17a0('0x15')][_0x17a0('0x38')]['name']):null;}}function ns(_0x20da25,_0x2cd3a5){let _0x286bcd='';return _0x286bcd+=_0x20da25['split']('*')['map']((_0x20e0fb,_0x54b07d)=>_0x54b07d%0x2!=0x0?_0x17a0('0x2c')+os(_0x20e0fb)+'</span>':os(_0x20e0fb))[_0x17a0('0x14')](''),_0x2cd3a5&&(_0x286bcd+=_0x17a0('0x3b')+_0x2cd3a5['value']+_0x17a0('0x2a')+_0x2cd3a5['title']+_0x17a0('0x29')),_0x286bcd;}function os(_0x1719d6){const _0x2682c4=document[_0x17a0('0x1a')](_0x17a0('0x21'));return _0x2682c4[_0x17a0('0x4a')]=_0x1719d6,_0x2682c4[_0x17a0('0x31')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x22567f,_0x560900,_0x1a3774){const t=_0x22567f['t'];switch(_0x560900){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',_0x1a3774);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1a3774);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1a3774);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1a3774);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1a3774);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',_0x1a3774);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1a3774);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\x20image\x20URL');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a3774);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1a3774);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1a3774);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1a3774);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1a3774);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1a3774);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1a3774);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1a3774);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1a3774);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1a3774);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1a3774);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1a3774);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1a3774);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1a3774);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1a3774);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'},_0x1a3774);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1a3774);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1a3774);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1a3774);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1a3774);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1a3774);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1a3774);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1a3774);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1a3774);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1a3774);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1a3774);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'},_0x1a3774);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1a3774);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1a3774);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1a3774);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'},_0x1a3774);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'},_0x1a3774);default:return _0x560900;}}
23
+ export function getTranslation(_0x4281af,_0x2e31f7,_0xd1f61b){const t=_0x4281af['t'];switch(_0x2e31f7){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',_0xd1f61b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xd1f61b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xd1f61b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xd1f61b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xd1f61b);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',_0xd1f61b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xd1f61b);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\x20image\x20URL');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd1f61b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xd1f61b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xd1f61b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xd1f61b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xd1f61b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xd1f61b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xd1f61b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xd1f61b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xd1f61b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xd1f61b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xd1f61b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xd1f61b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xd1f61b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xd1f61b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xd1f61b);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'},_0xd1f61b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xd1f61b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xd1f61b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xd1f61b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xd1f61b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xd1f61b);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'},_0xd1f61b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xd1f61b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xd1f61b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xd1f61b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xd1f61b);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xd1f61b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xd1f61b);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'},_0xd1f61b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xd1f61b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xd1f61b);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'},_0xd1f61b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xd1f61b);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'},_0xd1f61b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xd1f61b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xd1f61b);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'},_0xd1f61b);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'},_0xd1f61b);default:return _0x2e31f7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b34=['getRange','schema','from','change','next','replace','push','length','splice','map','getMarkers','isMultiRange','value','isArray','type','end','execute','sort','isTouching','color','createPositionAt','isInContent','isCollapsed','createRange','createPositionAfter','createPositionBefore','deletion','\x20[color\x20','getRanges','join','add'];(function(_0x50ffab,_0x4b3491){const _0x272258=function(_0x17863d){while(--_0x17863d){_0x50ffab['push'](_0x50ffab['shift']());}};_0x272258(++_0x4b3491);}(_0x4b34,0x1b8));const _0x2722=function(_0x50ffab,_0x4b3491){_0x50ffab=_0x50ffab-0x0;let _0x272258=_0x4b34[_0x50ffab];return _0x272258;};export function normalizeDescription(_0x23f8e4){return Array[_0x2722('0x7')](_0x23f8e4)||(_0x23f8e4=[_0x23f8e4]),_0x23f8e4[_0x2722('0x3')](_0xc8184d=>{const _0x8b1e91=_0xc8184d['content'][_0x2722('0x1e')](/\*/g,''),_0x19b2ff=_0xc8184d[_0x2722('0xd')]?_0x2722('0x15')+_0xc8184d[_0x2722('0xd')][_0x2722('0x6')]+']':'';return'['+_0xc8184d['type']+']\x20'+_0x8b1e91+_0x19b2ff;})[_0x2722('0x17')](';\x20');}export function sortSuggestions(_0x184c22){return _0x184c22[_0x2722('0xb')]((_0x338a3b,_0x3554e5)=>_0x2722('0x14')==_0x338a3b['type']&&_0x2722('0x14')!=_0x3554e5[_0x2722('0x8')]?-0x1:_0x2722('0x14')!=_0x338a3b[_0x2722('0x8')]&&_0x2722('0x14')==_0x3554e5['type']?0x1:0x0);}export function getSelectedSuggestions(_0x17ca23,_0x19c14e){const _0x56155c=Array[_0x2722('0x1b')](_0x17ca23[_0x2722('0x16')]()),_0x3b6489=new Set();for(const _0x4b4c31 of _0x19c14e)if(_0x4b4c31[_0x2722('0xf')])for(const _0x223a79 of _0x56155c)for(const _0x229a1e of _0x4b4c31[_0x2722('0x4')]()){const _0x38a5e1=_0x229a1e[_0x2722('0x19')]();(_0x223a79['isIntersecting'](_0x38a5e1)||_0x17ca23[_0x2722('0x10')]&&!_0x4b4c31[_0x2722('0x5')]&&_0x4b4c31[_0x2722('0x1d')]&&_0x38a5e1[_0x2722('0x9')][_0x2722('0xc')](_0x223a79['start']))&&_0x3b6489[_0x2722('0x18')](_0x4b4c31);}return _0x3b6489;}export function getRangesOfBlockGroups(_0x266476,_0x3303dc){let _0x2d8ef6,_0xd1329=0x0;const _0x39e541=[],_0x577129=_0x3303dc[_0x2722('0x1a')];for(;_0xd1329<_0x266476[_0x2722('0x1')];){const _0x3fb3d3=_0x266476[_0xd1329],_0x148c20=_0x266476[_0xd1329+0x1];_0x2d8ef6||(_0x2d8ef6=_0x3303dc[_0x2722('0x13')](_0x3fb3d3)),oo(_0x3303dc,_0x3fb3d3,_0x148c20)||(_0x39e541[_0x2722('0x0')](_0x3303dc[_0x2722('0x11')](_0x2d8ef6,_0x577129['isObject'](_0x3fb3d3)?_0x3303dc[_0x2722('0x12')](_0x3fb3d3):_0x3303dc[_0x2722('0xe')](_0x3fb3d3,_0x2722('0x9')))),_0x2d8ef6=null),_0xd1329++;}return _0x39e541;}function oo(_0x1b48ab,_0x20c93e,_0x5a8263){if(!_0x5a8263)return!0x1;const _0x1a3203=_0x1b48ab[_0x2722('0x12')](_0x20c93e),_0x27e89e=_0x1b48ab[_0x2722('0x13')](_0x5a8263);return _0x1a3203[_0x2722('0xc')](_0x27e89e);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x482fc4,_0x58d63f,_0x40bb4c){for(;_0x40bb4c[_0x2722('0x1')];){const _0x5c617b=_0x40bb4c[_0x2722('0x2')](0x0,0x64);_0x482fc4[_0x2722('0x1c')](()=>{for(const _0x303db3 of _0x5c617b)_0x303db3['isInContent']&&_0x58d63f[_0x2722('0xa')](_0x303db3['id']);});}}
23
+ const _0x12ff=['deletion','from','push','\x20[color\x20','map','isIntersecting','add','createRange','replace','join','isObject','content','type','createPositionAfter','createPositionBefore','schema','isInContent','isArray','start','sort','length','getRanges','getRange','execute','color','value','end','isTouching'];(function(_0xa9b196,_0x12ffa){const _0x2c9ea4=function(_0x253332){while(--_0x253332){_0xa9b196['push'](_0xa9b196['shift']());}};_0x2c9ea4(++_0x12ffa);}(_0x12ff,0x90));const _0x2c9e=function(_0xa9b196,_0x12ffa){_0xa9b196=_0xa9b196-0x0;let _0x2c9ea4=_0x12ff[_0xa9b196];return _0x2c9ea4;};export function normalizeDescription(_0x287038){return Array[_0x2c9e('0xd')](_0x287038)||(_0x287038=[_0x287038]),_0x287038[_0x2c9e('0x0')](_0x2be3b6=>{const _0x24467e=_0x2be3b6[_0x2c9e('0x7')][_0x2c9e('0x4')](/\*/g,''),_0x1132a5=_0x2be3b6[_0x2c9e('0x14')]?_0x2c9e('0x1b')+_0x2be3b6[_0x2c9e('0x14')][_0x2c9e('0x15')]+']':'';return'['+_0x2be3b6['type']+']\x20'+_0x24467e+_0x1132a5;})[_0x2c9e('0x5')](';\x20');}export function sortSuggestions(_0x2ce008){return _0x2ce008[_0x2c9e('0xf')]((_0x48fb18,_0x13c543)=>'deletion'==_0x48fb18[_0x2c9e('0x8')]&&_0x2c9e('0x18')!=_0x13c543[_0x2c9e('0x8')]?-0x1:'deletion'!=_0x48fb18[_0x2c9e('0x8')]&&_0x2c9e('0x18')==_0x13c543[_0x2c9e('0x8')]?0x1:0x0);}export function getSelectedSuggestions(_0x7d5bcd,_0x2f4884){const _0x872516=Array[_0x2c9e('0x19')](_0x7d5bcd[_0x2c9e('0x11')]()),_0x4aae94=new Set();for(const _0x5f0386 of _0x2f4884)if(_0x5f0386['isInContent'])for(const _0x3fca66 of _0x872516)for(const _0x2714d0 of _0x5f0386['getMarkers']()){const _0x37c8a2=_0x2714d0[_0x2c9e('0x12')]();(_0x3fca66[_0x2c9e('0x1')](_0x37c8a2)||_0x7d5bcd['isCollapsed']&&!_0x5f0386['isMultiRange']&&_0x5f0386['next']&&_0x37c8a2[_0x2c9e('0x16')][_0x2c9e('0x17')](_0x3fca66[_0x2c9e('0xe')]))&&_0x4aae94[_0x2c9e('0x2')](_0x5f0386);}return _0x4aae94;}export function getRangesOfBlockGroups(_0x5ab5d8,_0x5371be){let _0x3f22a7,_0x36e940=0x0;const _0x4f76ff=[],_0x4206f3=_0x5371be[_0x2c9e('0xb')];for(;_0x36e940<_0x5ab5d8[_0x2c9e('0x10')];){const _0x16c3d2=_0x5ab5d8[_0x36e940],_0x488d86=_0x5ab5d8[_0x36e940+0x1];_0x3f22a7||(_0x3f22a7=_0x5371be[_0x2c9e('0xa')](_0x16c3d2)),co(_0x5371be,_0x16c3d2,_0x488d86)||(_0x4f76ff[_0x2c9e('0x1a')](_0x5371be[_0x2c9e('0x3')](_0x3f22a7,_0x4206f3[_0x2c9e('0x6')](_0x16c3d2)?_0x5371be[_0x2c9e('0x9')](_0x16c3d2):_0x5371be['createPositionAt'](_0x16c3d2,'end'))),_0x3f22a7=null),_0x36e940++;}return _0x4f76ff;}function co(_0x2402cc,_0x257cc7,_0xabd50c){if(!_0xabd50c)return!0x1;const _0x10a482=_0x2402cc[_0x2c9e('0x9')](_0x257cc7),_0x1ab8c2=_0x2402cc[_0x2c9e('0xa')](_0xabd50c);return _0x10a482[_0x2c9e('0x17')](_0x1ab8c2);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x1d4e13,_0x160176,_0x32ee98){for(;_0x32ee98[_0x2c9e('0x10')];){const _0x26adfe=_0x32ee98['splice'](0x0,0x64);_0x1d4e13['change'](()=>{for(const _0x34ddb0 of _0x26adfe)_0x34ddb0[_0x2c9e('0xc')]&&_0x160176[_0x2c9e('0x13')](_0x34ddb0['id']);});}}