@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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 (67) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f63=['_destroyController','commentThread','execute','_descriptionFactory','mainView','bind','addSourceCollector','keys','values','model','EditorAnnotations','reduce','comments','get','lowest','type','set','arrowView','size','createAnnotationView','_initializeController','Annotations','change:previous','editing','_suggestionToController','destroy','CommentView','registerAnnotation','config','discardAllSuggestions','Discard\x20all\x20selected\x20suggestions','init','editor','acceptSelectedSuggestions','actionView','trackChanges','Accept\x20all\x20suggestions','_viewToController','getMarkerNames','isDirty','pluginName','commands','_handleSuggestionControllerDelayed','getAllAdjacentSuggestions','filter','toMany','innerView','TrackChangesEditing','getJoined','_createUIButton','head','some','separator','change:activeAnnotations','suggestionLoaded','activeAnnotations','map','has','trackChanges.disableComments','suggestionUnloaded','getSuggestion','unbind','define','activeMarkers','value','focus','isInContent','suggestion-','discardSelectedSuggestions','_updateController','push','_handleControllerBuffer','view','from','locale','requires','add','addComment','getRanges','getMarkers','length','Discard\x20all\x20suggestions','getFirstRange','source','listenTo','suggestionChanged','plugins','acceptButton','descriptionParts','buttonView','comments.maxCommentCharsWhenCollapsed','isMultiRange','getByInnerView','getDescriptions','delete','CommentsUI','createCommentThreadController','_disableComments','CommentsRepository','_annotationViews','isEnabled','TrackChangesUI','switchbutton','Accept\x20all\x20selected\x20suggestions','isOn','remove','button','_refreshActiveMarkers','commandName'];(function(_0x2e47e7,_0x2f6382){const _0x12f675=function(_0x36f415){while(--_0x36f415){_0x2e47e7['push'](_0x2e47e7['shift']());}};_0x12f675(++_0x2f6382);}(_0x2f63,0x70));const _0x12f6=function(_0x2e47e7,_0x2f6382){_0x2e47e7=_0x2e47e7-0x0;let _0x12f675=_0x2f63[_0x2e47e7];return _0x12f675;};import{Plugin as _0x59f62f}from'ckeditor5/src/core.js';import{Collection as _0x1eec43}from'ckeditor5/src/utils.js';import{ViewModel as _0x350361,SplitButtonView as _0x57739c,createDropdown as _0x13e623,addListToDropdown as _0x3a9532}from'ckeditor5/src/ui.js';import{Users as _0x2ac73d,getDateTimeFormatter as _0x135cb0,getAllMarkersDomElementsSorted as _0x459733}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2376f0 from'./trackchangesediting.js';import _0x537e07 from'./ui/suggestioncontroller.js';import _0x4b228e from'./ui/view/suggestionthreadview.js';import{getTranslation as _0xc1833f}from'./utils/common-translations.js';import _0x13afa6 from'../theme/icons/track-changes.svg';export default class d extends _0x59f62f{static get[_0x12f6('0x48')](){return[_0x2376f0,_0x2ac73d,_0x12f6('0x5f'),'Annotations','EditorAnnotations'];}static get[_0x12f6('0x25')](){return _0x12f6('0x62');}constructor(_0xfceeb2){super(_0xfceeb2),this[_0x12f6('0x15')]=new Map(),this[_0x12f6('0x22')]=new Map(),this[_0x12f6('0x60')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x239418=this[_0x12f6('0x1d')][_0x12f6('0x19')];_0x239418[_0x12f6('0x3b')]('trackChanges.SuggestionThreadView',_0x4b228e),_0x239418[_0x12f6('0x3b')](_0x12f6('0x37'),!0x1),this[_0x12f6('0x5e')]=_0x239418['get'](_0x12f6('0x37'));}['_handleSuggestionControllerDelayed'](_0x386469,_0x278c78){0x0===this[_0x12f6('0x44')][_0x12f6('0xf')]&&setTimeout(()=>{for(const [_0x261502,_0x427079]of this[_0x12f6('0x44')]){const _0x3914b1=this['_suggestionToController'][_0x12f6('0x36')](_0x261502);_0x3914b1||_0x427079?_0x3914b1&&_0x427079&&this[_0x12f6('0x6a')](_0x261502):this[_0x12f6('0x11')](_0x261502);}this[_0x12f6('0x44')]['clear'](),this['editor']['plugins'][_0x12f6('0xa')](_0x12f6('0x7'))['refreshSelectedViews'](),this[_0x12f6('0x68')]();},0xa),this[_0x12f6('0x44')][_0x12f6('0xd')](_0x386469,_0x278c78);}[_0x12f6('0x1c')](){const _0x293b7b=this[_0x12f6('0x1d')],_0xc8a9f6=_0x293b7b[_0x12f6('0x53')][_0x12f6('0xa')](_0x12f6('0x2c')),_0x51b963=_0x293b7b[_0x12f6('0x53')][_0x12f6('0xa')]('Annotations'),_0x3c550b=_0x293b7b['plugins']['get'](_0x12f6('0x7')),_0xf6b107=_0x293b7b[_0x12f6('0x53')]['get']('CommentsRepository');_0x293b7b['ui']['componentFactory'][_0x12f6('0x49')](_0x12f6('0x20'),_0x147e46=>this['_createUIButton'](_0x147e46)),_0x3c550b[_0x12f6('0x3')](()=>{const _0x1ad769=[];for(const [_0x1bc2e3,_0x200ed5]of Array[_0x12f6('0x46')](this['_suggestionToController'])){const _0x5904f3=_0x1bc2e3['getAllAdjacentSuggestions'](),_0x59c3af=[];for(const _0x14ab7c of _0x5904f3){if(!_0x14ab7c[_0x12f6('0x3f')])continue;if(_0x14ab7c[_0x12f6('0x58')]){_0x59c3af[_0x12f6('0x43')](..._0x14ab7c[_0x12f6('0x4b')]());continue;}const _0x3a826d=_0x14ab7c[_0x12f6('0x4f')]();if(_0x59c3af[_0x12f6('0x4d')]>0x0){const _0x2459c3=_0x59c3af[0x0][_0x12f6('0x2d')](_0x3a826d);if(_0x2459c3){_0x59c3af[0x0]=_0x2459c3;continue;}}_0x59c3af[_0x12f6('0x43')](_0x3a826d);}_0x1ad769[_0x12f6('0x43')]([_0x200ed5[_0x12f6('0x45')],_0x59c3af]);}return _0x1ad769;}),this['listenTo'](_0xc8a9f6,_0x12f6('0x33'),(_0x24fb78,_0x51c0f6)=>{this['listenTo'](_0x51c0f6,_0x12f6('0x13'),(_0x2a8e6e,_0x134104,_0x4e78d5,_0x22a26)=>{_0x51c0f6['isInContent']&&(null==_0x4e78d5?(this['_updateController'](_0x22a26[_0x12f6('0x2f')]),this['_handleSuggestionControllerDelayed'](_0x51c0f6,!0x1)):(this['_updateController'](_0x4e78d5[_0x12f6('0x2f')]),null==_0x22a26&&this[_0x12f6('0x27')](_0x51c0f6,!0x0)));}),null!==_0x51c0f6['previous']?this['_updateController'](_0x51c0f6[_0x12f6('0x2f')]):this[_0x12f6('0x27')](_0x51c0f6,!0x1);}),this[_0x12f6('0x51')](_0xc8a9f6,_0x12f6('0x38'),(_0x3f4be3,_0x58af62,_0x385cce)=>{this['stopListening'](_0x58af62,'change:previous'),this[_0x12f6('0x44')][_0x12f6('0x5b')](_0x58af62),this[_0x12f6('0x15')][_0x12f6('0x36')](_0x58af62)&&this['_destroyController'](_0x58af62),_0x385cce&&this['_updateController'](_0x385cce[_0x12f6('0x2f')]);}),this[_0x12f6('0x51')](_0xc8a9f6,_0x12f6('0x52'),(_0x7996fb,_0x38d9ff)=>{this[_0x12f6('0x42')](_0x38d9ff);}),this['listenTo'](_0x51b963,_0x12f6('0x32'),()=>{this[_0x12f6('0x68')]();}),this['listenTo'](_0xf6b107,_0x12f6('0x4a'),(_0x57e14b,{threadId:_0x4b93cb,isFromAdapter:_0x3296ae})=>{if(_0x3296ae||!_0xc8a9f6['hasSuggestion'](_0x4b93cb))return;const _0x5c90fd=_0xc8a9f6[_0x12f6('0x39')](_0x4b93cb);this['_suggestionToController'][_0x12f6('0xa')](_0x5c90fd)[_0x12f6('0x45')]['focus']();},{'priority':_0x12f6('0xb')});}[_0x12f6('0x68')](){const _0x13018f=this['editor'][_0x12f6('0x53')][_0x12f6('0xa')](_0x12f6('0x12')),_0x3ba46f=this['editor'][_0x12f6('0x53')][_0x12f6('0xa')](_0x12f6('0x2c')),_0x696f21=Array[_0x12f6('0x46')](_0x13018f[_0x12f6('0x34')],_0x53fe05=>_0x53fe05[_0x12f6('0x2b')])[_0x12f6('0x29')](_0x5a2653=>this['_viewToController'][_0x12f6('0x36')](_0x5a2653)),_0x1c96cd=[];for(const _0x44414b of _0x696f21){const _0x25bd3e=this['_viewToController'][_0x12f6('0xa')](_0x44414b)[_0x12f6('0x6')][_0x12f6('0x28')]();_0x1c96cd[_0x12f6('0x43')](..._0x25bd3e[_0x12f6('0x8')]((_0x16fb05,_0x32d674)=>[..._0x16fb05,..._0x32d674[_0x12f6('0x23')]()],[]));}_0x3ba46f[_0x12f6('0x3c')]=_0x1c96cd;}[_0x12f6('0x2e')](_0x2f15c9){const _0x40a5b7=_0x13e623(_0x2f15c9,_0x57739c),_0x1b2b24=this[_0x12f6('0x1d')][_0x12f6('0x26')][_0x12f6('0xa')](_0x12f6('0x20')),_0x3f3c53=_0xc1833f(_0x2f15c9,'Track\x20changes');_0x40a5b7['buttonView'][_0x12f6('0xd')]({'tooltip':_0x3f3c53,'label':_0x3f3c53,'icon':_0x13afa6}),_0x40a5b7[_0x12f6('0x56')][_0x12f6('0x2')](_0x12f6('0x65'))['to'](_0x1b2b24,'value'),_0x40a5b7[_0x12f6('0x56')]['on'](_0x12f6('0x6c'),()=>{_0x1b2b24['execute'](),this[_0x12f6('0x1d')]['editing'][_0x12f6('0x45')][_0x12f6('0x3e')]();});const _0x971dc1=new _0x1eec43(),_0x1d313b=[{'type':_0x12f6('0x63'),'model':{'withText':!0x0,'label':_0x3f3c53,'commandName':_0x12f6('0x20')}},{'type':_0x12f6('0x31')},{'type':_0x12f6('0x67'),'model':{'withText':!0x0,'label':_0xc1833f(_0x2f15c9,_0x12f6('0x21')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0xc1833f(_0x2f15c9,_0x12f6('0x64')),'commandName':_0x12f6('0x1e')}},{'type':_0x12f6('0x67'),'model':{'withText':!0x0,'label':_0xc1833f(_0x2f15c9,_0x12f6('0x4e')),'commandName':_0x12f6('0x1a')}},{'type':_0x12f6('0x67'),'model':{'withText':!0x0,'label':_0xc1833f(_0x2f15c9,_0x12f6('0x1b')),'commandName':_0x12f6('0x41')}}];for(const _0x201e48 of _0x1d313b){let _0x1afea2={'type':_0x12f6('0x31')};if(_0x201e48['model']){const _0x9fce70=new _0x350361(_0x201e48['model']),_0xeb7044=this['editor'][_0x12f6('0x26')][_0x12f6('0xa')](_0x9fce70[_0x12f6('0x69')]);_0x9fce70['bind']('isOn',_0x12f6('0x61'))['to'](_0xeb7044,_0x12f6('0x3d'),_0x12f6('0x61')),_0x1afea2={'type':_0x201e48[_0x12f6('0xc')],'model':_0x9fce70};}_0x971dc1[_0x12f6('0x49')](_0x1afea2);}_0x3a9532(_0x40a5b7,_0x971dc1);const _0xbd9b14=_0x1d313b[_0x12f6('0x29')](_0x47f6d5=>null!=_0x47f6d5[_0x12f6('0x6')])[_0x12f6('0x35')](_0x2a16cd=>this[_0x12f6('0x1d')][_0x12f6('0x26')][_0x12f6('0xa')](_0x2a16cd[_0x12f6('0x6')][_0x12f6('0x69')])),_0x4ed91e=_0x40a5b7[_0x12f6('0x56')];return _0x4ed91e[_0x12f6('0x1f')][_0x12f6('0x3a')]('isEnabled'),_0x4ed91e[_0x12f6('0xe')][_0x12f6('0x3a')](_0x12f6('0x61')),_0x4ed91e['actionView'][_0x12f6('0x2')]('isEnabled')['to'](_0x1b2b24,_0x12f6('0x61')),_0x4ed91e['arrowView'][_0x12f6('0x2')](_0x12f6('0x61'))[_0x12f6('0x2a')](_0xbd9b14,_0x12f6('0x61'),(..._0x2af1db)=>_0x2af1db[_0x12f6('0x30')](_0x3860d1=>_0x3860d1)),_0x40a5b7['on'](_0x12f6('0x6c'),_0x40c17c=>{this[_0x12f6('0x1d')][_0x12f6('0x6c')](_0x40c17c[_0x12f6('0x50')][_0x12f6('0x69')]),this[_0x12f6('0x1d')][_0x12f6('0x14')][_0x12f6('0x45')]['focus']();}),_0x40a5b7;}[_0x12f6('0x11')](_0x3b28d1){const _0x41fd0c=this[_0x12f6('0x1d')],_0x5efb46=_0x41fd0c['config'],_0x429730=_0x41fd0c[_0x12f6('0x53')]['get'](_0x12f6('0x12')),_0x1b6f7f=_0x41fd0c[_0x12f6('0x53')][_0x12f6('0xa')]('CommentsRepository'),_0x1728df=_0x41fd0c[_0x12f6('0x53')][_0x12f6('0xa')](_0x12f6('0x7')),_0x13b994=_0x41fd0c[_0x12f6('0x53')][_0x12f6('0xa')](_0x2ac73d)['me'],_0x1a3bde=_0x5efb46['get'](_0x12f6('0x20'))['SuggestionThreadView'],{CommentsListView:_0x4ee1d0,CommentThreadInputView:_0x4c63e1}=_0x41fd0c[_0x12f6('0x53')]['get'](_0x12f6('0x5c'));let _0x210a42,_0x3e828a;this['_annotationViews'][_0x12f6('0x36')](_0x3b28d1['id'])?(_0x3e828a=this[_0x12f6('0x60')][_0x12f6('0xa')](_0x3b28d1['id']),_0x210a42=_0x3e828a[_0x12f6('0x1')]):(_0x210a42=new _0x1a3bde(_0x41fd0c['locale'],_0x3b28d1,_0x13b994,{'disableComments':this['_disableComments'],'editorConfig':_0x5efb46[_0x12f6('0xa')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5efb46['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5efb46['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5efb46[_0x12f6('0xa')](_0x12f6('0x57')),'formatDateTime':_0x135cb0(_0x5efb46[_0x12f6('0xa')](_0x12f6('0x47'))),'CommentView':_0x5efb46[_0x12f6('0xa')](_0x12f6('0x9'))[_0x12f6('0x17')],'CommentsListView':_0x4ee1d0,'CommentThreadInputView':_0x4c63e1}),_0x210a42[_0x12f6('0x54')]['on'](_0x12f6('0x6c'),()=>{_0x41fd0c[_0x12f6('0x14')]['view'][_0x12f6('0x3e')]();}),_0x210a42['discardButton']['on']('execute',()=>{_0x41fd0c['editing'][_0x12f6('0x45')][_0x12f6('0x3e')]();}),_0x3e828a=_0x429730[_0x12f6('0x10')](this[_0x12f6('0x1d')][_0x12f6('0x47')],_0x210a42),_0x3e828a[_0x12f6('0x2')](_0x12f6('0x24'))['to'](_0x210a42,_0x12f6('0x24')),_0x3e828a[_0x12f6('0x2')](_0x12f6('0x4d'))['to'](_0x210a42),_0x3e828a[_0x12f6('0x2')](_0x12f6('0xc'))['to'](_0x210a42,_0x12f6('0xc'),_0x4560e9=>_0x12f6('0x40')+_0x4560e9),this[_0x12f6('0x60')][_0x12f6('0xd')](_0x3b28d1['id'],_0x3e828a));const _0x43c581=_0x1b6f7f[_0x12f6('0x5d')](_0x3b28d1[_0x12f6('0x6b')],_0x210a42),_0x1d93e8=new _0x537e07(_0x41fd0c,_0x3b28d1,_0x210a42,_0x43c581),_0x469a29=_0x3b28d1[_0x12f6('0x28')]()[_0x12f6('0x29')](_0x36869d=>_0x36869d[_0x12f6('0x3f')]);_0x210a42[_0x12f6('0x55')]=_0x41fd0c['plugins']['get']('TrackChangesEditing')[_0x12f6('0x0')]['getDescriptions'](_0x469a29),this[_0x12f6('0x15')]['set'](_0x3b28d1,_0x1d93e8),this[_0x12f6('0x22')][_0x12f6('0xd')](_0x210a42,_0x1d93e8);const _0x778da9=_0x429730['createAnnotation']({'view':_0x3e828a,'target':()=>{const _0x15d803=[],_0x1dd60d=_0x3b28d1[_0x12f6('0x28')]()[_0x12f6('0x29')](_0x23203f=>_0x23203f[_0x12f6('0x3f')]);for(const _0x5e96b7 of _0x1dd60d)_0x15d803[_0x12f6('0x43')](..._0x5e96b7[_0x12f6('0x4c')]());return _0x459733(_0x41fd0c[_0x12f6('0x14')],_0x15d803);},'type':()=>_0x12f6('0x40')+_0x1d93e8[_0x12f6('0x45')][_0x12f6('0xc')]});_0x1b6f7f['_bindAnnotationToEditors'](_0x210a42,_0x778da9),_0x429730['add'](_0x778da9),_0x1728df[_0x12f6('0x18')](_0x778da9);}['_destroyController'](_0x2807c5){const _0x592f4f=this[_0x12f6('0x1d')][_0x12f6('0x53')]['get']('CommentsRepository'),_0x4f749a=this[_0x12f6('0x1d')][_0x12f6('0x53')][_0x12f6('0xa')](_0x12f6('0x12')),_0x43fb3b=this[_0x12f6('0x15')][_0x12f6('0xa')](_0x2807c5),_0x2b133c=_0x43fb3b['view'],_0x394ab0=_0x4f749a[_0x12f6('0x59')](_0x2b133c);_0x592f4f['_unbindEditors'](_0x2b133c),_0x394ab0&&_0x4f749a[_0x12f6('0x66')](_0x394ab0),this[_0x12f6('0x15')]['delete'](_0x2807c5),this[_0x12f6('0x22')][_0x12f6('0x5b')](_0x2b133c),_0x43fb3b['destroy']();}['_updateController'](_0x59aeac){if(!_0x59aeac[_0x12f6('0x3f')]||!this[_0x12f6('0x15')][_0x12f6('0x36')](_0x59aeac))return;const _0x41ccdb=this[_0x12f6('0x1d')][_0x12f6('0x53')]['get']('TrackChangesEditing'),_0x53eab1=this[_0x12f6('0x15')][_0x12f6('0xa')](_0x59aeac),_0x23c988=_0x59aeac['getAllAdjacentSuggestions']();_0x53eab1[_0x12f6('0x45')][_0x12f6('0x55')]=_0x41ccdb['_descriptionFactory'][_0x12f6('0x5a')](_0x23c988);}[_0x12f6('0x16')](){for(const _0x1ab21f of this[_0x12f6('0x15')][_0x12f6('0x4')]())this['_destroyController'](_0x1ab21f);for(const _0x2354d5 of this[_0x12f6('0x60')][_0x12f6('0x5')]())_0x2354d5[_0x12f6('0x1')][_0x12f6('0x16')]();super['destroy']();}}
23
+ const _0x9212=['acceptAllSuggestions','plugins','config','descriptionParts','getAllAdjacentSuggestions','comments','switchbutton','_initializeController','TrackChangesEditing','trackChanges','model','SuggestionThreadView','refreshSelectedViews','actionView','activeMarkers','acceptButton','init','map','CommentView','Discard\x20all\x20suggestions','change:previous','editor','_suggestionToController','_refreshActiveMarkers','getMarkerNames','stopListening','comments.maxCommentsWhenCollapsed','get','acceptSelectedSuggestions','getJoined','values','getDescriptions','isEnabled','listenTo','size','suggestionChanged','isInContent','toMany','getByInnerView','comments.maxThreadTotalWeight','mainView','editing','_descriptionFactory','destroy','isDirty','_destroyController','comments.maxCommentCharsWhenCollapsed','define','previous','getMarkers','createAnnotationView','type','_updateController','_handleControllerBuffer','head','push','_handleSuggestionControllerDelayed','_annotationViews','set','add','source','filter','comments.editorConfig','length','commandName','getRanges','CommentsRepository','_unbindEditors','view','trackChanges.disableComments','EditorAnnotations','_viewToController','clear','reduce','getSuggestion','createAnnotation','createCommentThreadController','TrackChangesUI','requires','focus','bind','commands','commentThread','hasSuggestion','isMultiRange','Accept\x20all\x20selected\x20suggestions','_disableComments','from','discardAllSuggestions','delete','locale','button','separator','Discard\x20all\x20selected\x20suggestions','Annotations','unbind','has','isOn','execute','_createUIButton','innerView','addComment','getFirstRange','buttonView','some','arrowView'];(function(_0x750d01,_0x921297){const _0x17fa38=function(_0x50cc8){while(--_0x50cc8){_0x750d01['push'](_0x750d01['shift']());}};_0x17fa38(++_0x921297);}(_0x9212,0x82));const _0x17fa=function(_0x750d01,_0x921297){_0x750d01=_0x750d01-0x0;let _0x17fa38=_0x9212[_0x750d01];return _0x17fa38;};import{Plugin as _0x3e8140}from'ckeditor5/src/core.js';import{Collection as _0x15f26e}from'ckeditor5/src/utils.js';import{ViewModel as _0x4ef234,SplitButtonView as _0x58bf0d,createDropdown as _0x2e3f7f,addListToDropdown as _0x11cdf1}from'ckeditor5/src/ui.js';import{Users as _0x6039c4,getDateTimeFormatter as _0xfeeb32,getAllMarkersDomElementsSorted as _0x53db84}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5bef55 from'./trackchangesediting.js';import _0x5e541d from'./ui/suggestioncontroller.js';import _0x54b5ce from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x439660}from'./utils/common-translations.js';import _0x200bdc from'../theme/icons/track-changes.svg';export default class d extends _0x3e8140{static get[_0x17fa('0x36')](){return[_0x5bef55,_0x6039c4,'CommentsRepository',_0x17fa('0x46'),_0x17fa('0x2e')];}static get['pluginName'](){return _0x17fa('0x35');}constructor(_0x4485d){super(_0x4485d),this[_0x17fa('0x68')]=new Map(),this[_0x17fa('0x2f')]=new Map(),this[_0x17fa('0x21')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x4b573e=this[_0x17fa('0x67')][_0x17fa('0x54')];_0x4b573e[_0x17fa('0x17')]('trackChanges.SuggestionThreadView',_0x54b5ce),_0x4b573e['define'](_0x17fa('0x2d'),!0x1),this[_0x17fa('0x3e')]=_0x4b573e['get'](_0x17fa('0x2d'));}[_0x17fa('0x20')](_0x512286,_0x5d0d49){0x0===this['_handleControllerBuffer'][_0x17fa('0xa')]&&setTimeout(()=>{for(const [_0x2d395f,_0x5cf490]of this[_0x17fa('0x1d')]){const _0x21a349=this[_0x17fa('0x68')][_0x17fa('0x48')](_0x2d395f);_0x21a349||_0x5cf490?_0x21a349&&_0x5cf490&&this[_0x17fa('0x15')](_0x2d395f):this[_0x17fa('0x59')](_0x2d395f);}this[_0x17fa('0x1d')][_0x17fa('0x30')](),this[_0x17fa('0x67')][_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x2e'))[_0x17fa('0x5e')](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer'][_0x17fa('0x22')](_0x512286,_0x5d0d49);}[_0x17fa('0x62')](){const _0x20131d=this['editor'],_0x4e7589=_0x20131d[_0x17fa('0x53')]['get']('TrackChangesEditing'),_0x5f25f4=_0x20131d[_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x46')),_0x522c1d=_0x20131d[_0x17fa('0x53')][_0x17fa('0x3')]('EditorAnnotations'),_0x4504ba=_0x20131d[_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x2a'));_0x20131d['ui']['componentFactory'][_0x17fa('0x23')](_0x17fa('0x5b'),_0x5ba3a6=>this[_0x17fa('0x4b')](_0x5ba3a6)),_0x522c1d['addSourceCollector'](()=>{const _0x456c98=[];for(const [_0x3a1fd8,_0x55dc82]of Array[_0x17fa('0x3f')](this['_suggestionToController'])){const _0x4ec77a=_0x3a1fd8[_0x17fa('0x56')](),_0xf15a30=[];for(const _0x1bd935 of _0x4ec77a){if(!_0x1bd935['isInContent'])continue;if(_0x1bd935[_0x17fa('0x3c')]){_0xf15a30[_0x17fa('0x1f')](..._0x1bd935[_0x17fa('0x29')]());continue;}const _0x25ad8c=_0x1bd935[_0x17fa('0x4e')]();if(_0xf15a30[_0x17fa('0x27')]>0x0){const _0x1c74c3=_0xf15a30[0x0][_0x17fa('0x5')](_0x25ad8c);if(_0x1c74c3){_0xf15a30[0x0]=_0x1c74c3;continue;}}_0xf15a30[_0x17fa('0x1f')](_0x25ad8c);}_0x456c98['push']([_0x55dc82[_0x17fa('0x2c')],_0xf15a30]);}return _0x456c98;}),this['listenTo'](_0x4e7589,'suggestionLoaded',(_0x908779,_0x6f70b3)=>{this[_0x17fa('0x9')](_0x6f70b3,'change:previous',(_0x32707d,_0x1a4c03,_0x3ebf3f,_0x2c11a8)=>{_0x6f70b3[_0x17fa('0xc')]&&(null==_0x3ebf3f?(this[_0x17fa('0x1c')](_0x2c11a8[_0x17fa('0x1e')]),this['_handleSuggestionControllerDelayed'](_0x6f70b3,!0x1)):(this[_0x17fa('0x1c')](_0x3ebf3f[_0x17fa('0x1e')]),null==_0x2c11a8&&this[_0x17fa('0x20')](_0x6f70b3,!0x0)));}),null!==_0x6f70b3[_0x17fa('0x18')]?this[_0x17fa('0x1c')](_0x6f70b3[_0x17fa('0x1e')]):this[_0x17fa('0x20')](_0x6f70b3,!0x1);}),this[_0x17fa('0x9')](_0x4e7589,'suggestionUnloaded',(_0x13babc,_0x3f3000,_0xec31f)=>{this[_0x17fa('0x1')](_0x3f3000,_0x17fa('0x66')),this[_0x17fa('0x1d')][_0x17fa('0x41')](_0x3f3000),this[_0x17fa('0x68')][_0x17fa('0x48')](_0x3f3000)&&this['_destroyController'](_0x3f3000),_0xec31f&&this[_0x17fa('0x1c')](_0xec31f[_0x17fa('0x1e')]);}),this['listenTo'](_0x4e7589,_0x17fa('0xb'),(_0x4b13d3,_0x502326)=>{this[_0x17fa('0x1c')](_0x502326);}),this[_0x17fa('0x9')](_0x5f25f4,'change:activeAnnotations',()=>{this[_0x17fa('0x69')]();}),this[_0x17fa('0x9')](_0x4504ba,_0x17fa('0x4d'),(_0x12ac31,{threadId:_0x174456,isFromAdapter:_0x1b3ccc})=>{if(_0x1b3ccc||!_0x4e7589[_0x17fa('0x3b')](_0x174456))return;const _0x5cb927=_0x4e7589[_0x17fa('0x32')](_0x174456);this[_0x17fa('0x68')]['get'](_0x5cb927)['view'][_0x17fa('0x37')]();},{'priority':'lowest'});}[_0x17fa('0x69')](){const _0x2544f1=this[_0x17fa('0x67')][_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x46')),_0x59afe1=this[_0x17fa('0x67')]['plugins']['get']('TrackChangesEditing'),_0x303e2c=Array[_0x17fa('0x3f')](_0x2544f1['activeAnnotations'],_0x37c4c2=>_0x37c4c2[_0x17fa('0x4c')])[_0x17fa('0x25')](_0x511038=>this[_0x17fa('0x2f')][_0x17fa('0x48')](_0x511038)),_0x136142=[];for(const _0x35b41a of _0x303e2c){const _0x4e45f4=this[_0x17fa('0x2f')]['get'](_0x35b41a)['model'][_0x17fa('0x56')]();_0x136142[_0x17fa('0x1f')](..._0x4e45f4[_0x17fa('0x31')]((_0x437c43,_0x255b03)=>[..._0x437c43,..._0x255b03[_0x17fa('0x0')]()],[]));}_0x59afe1[_0x17fa('0x60')]=_0x136142;}[_0x17fa('0x4b')](_0x4c721a){const _0x1ff159=_0x2e3f7f(_0x4c721a,_0x58bf0d),_0x2c0ca1=this['editor']['commands']['get']('trackChanges'),_0x5e06a6=_0x439660(_0x4c721a,'Track\x20changes');_0x1ff159[_0x17fa('0x4f')]['set']({'tooltip':_0x5e06a6,'label':_0x5e06a6,'icon':_0x200bdc}),_0x1ff159[_0x17fa('0x4f')][_0x17fa('0x38')](_0x17fa('0x49'))['to'](_0x2c0ca1,'value'),_0x1ff159[_0x17fa('0x4f')]['on']('execute',()=>{_0x2c0ca1[_0x17fa('0x4a')](),this[_0x17fa('0x67')][_0x17fa('0x11')][_0x17fa('0x2c')][_0x17fa('0x37')]();});const _0x5e75d3=new _0x15f26e(),_0x985ba8=[{'type':_0x17fa('0x58'),'model':{'withText':!0x0,'label':_0x5e06a6,'commandName':_0x17fa('0x5b')}},{'type':_0x17fa('0x44')},{'type':_0x17fa('0x43'),'model':{'withText':!0x0,'label':_0x439660(_0x4c721a,'Accept\x20all\x20suggestions'),'commandName':_0x17fa('0x52')}},{'type':_0x17fa('0x43'),'model':{'withText':!0x0,'label':_0x439660(_0x4c721a,_0x17fa('0x3d')),'commandName':_0x17fa('0x4')}},{'type':'button','model':{'withText':!0x0,'label':_0x439660(_0x4c721a,_0x17fa('0x65')),'commandName':_0x17fa('0x40')}},{'type':_0x17fa('0x43'),'model':{'withText':!0x0,'label':_0x439660(_0x4c721a,_0x17fa('0x45')),'commandName':'discardSelectedSuggestions'}}];for(const _0x2af232 of _0x985ba8){let _0x547f45={'type':'separator'};if(_0x2af232[_0x17fa('0x5c')]){const _0x1e38e9=new _0x4ef234(_0x2af232[_0x17fa('0x5c')]),_0x314843=this[_0x17fa('0x67')][_0x17fa('0x39')][_0x17fa('0x3')](_0x1e38e9[_0x17fa('0x28')]);_0x1e38e9[_0x17fa('0x38')](_0x17fa('0x49'),_0x17fa('0x8'))['to'](_0x314843,'value','isEnabled'),_0x547f45={'type':_0x2af232[_0x17fa('0x1b')],'model':_0x1e38e9};}_0x5e75d3[_0x17fa('0x23')](_0x547f45);}_0x11cdf1(_0x1ff159,_0x5e75d3);const _0x3bd6c5=_0x985ba8[_0x17fa('0x25')](_0x4efeaa=>null!=_0x4efeaa[_0x17fa('0x5c')])[_0x17fa('0x63')](_0x4a841f=>this[_0x17fa('0x67')]['commands'][_0x17fa('0x3')](_0x4a841f['model']['commandName'])),_0x1afa02=_0x1ff159[_0x17fa('0x4f')];return _0x1afa02['actionView']['unbind'](_0x17fa('0x8')),_0x1afa02[_0x17fa('0x51')][_0x17fa('0x47')](_0x17fa('0x8')),_0x1afa02[_0x17fa('0x5f')][_0x17fa('0x38')]('isEnabled')['to'](_0x2c0ca1,_0x17fa('0x8')),_0x1afa02['arrowView'][_0x17fa('0x38')](_0x17fa('0x8'))[_0x17fa('0xd')](_0x3bd6c5,_0x17fa('0x8'),(..._0x56e613)=>_0x56e613[_0x17fa('0x50')](_0x2cd824=>_0x2cd824)),_0x1ff159['on'](_0x17fa('0x4a'),_0x49bc27=>{this[_0x17fa('0x67')][_0x17fa('0x4a')](_0x49bc27[_0x17fa('0x24')][_0x17fa('0x28')]),this[_0x17fa('0x67')][_0x17fa('0x11')][_0x17fa('0x2c')][_0x17fa('0x37')]();}),_0x1ff159;}[_0x17fa('0x59')](_0x3b2b90){const _0xf8249d=this[_0x17fa('0x67')],_0x3f5b1a=_0xf8249d[_0x17fa('0x54')],_0x321f40=_0xf8249d[_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x46')),_0x19e3d7=_0xf8249d[_0x17fa('0x53')][_0x17fa('0x3')]('CommentsRepository'),_0x2368d7=_0xf8249d[_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x2e')),_0x4eda06=_0xf8249d['plugins'][_0x17fa('0x3')](_0x6039c4)['me'],_0x4b4fa9=_0x3f5b1a[_0x17fa('0x3')](_0x17fa('0x5b'))[_0x17fa('0x5d')],{CommentsListView:_0x46676e,CommentThreadInputView:_0x2e9229}=_0xf8249d[_0x17fa('0x53')]['get']('CommentsUI');let _0x37ffcb,_0x46fd3c;this[_0x17fa('0x21')][_0x17fa('0x48')](_0x3b2b90['id'])?(_0x46fd3c=this[_0x17fa('0x21')][_0x17fa('0x3')](_0x3b2b90['id']),_0x37ffcb=_0x46fd3c[_0x17fa('0x10')]):(_0x37ffcb=new _0x4b4fa9(_0xf8249d[_0x17fa('0x42')],_0x3b2b90,_0x4eda06,{'disableComments':this['_disableComments'],'editorConfig':_0x3f5b1a[_0x17fa('0x3')](_0x17fa('0x26')),'maxCommentsWhenCollapsed':_0x3f5b1a['get'](_0x17fa('0x2')),'maxThreadTotalWeight':_0x3f5b1a[_0x17fa('0x3')](_0x17fa('0xf')),'maxCommentCharsWhenCollapsed':_0x3f5b1a[_0x17fa('0x3')](_0x17fa('0x16')),'formatDateTime':_0xfeeb32(_0x3f5b1a[_0x17fa('0x3')]('locale')),'CommentView':_0x3f5b1a[_0x17fa('0x3')](_0x17fa('0x57'))[_0x17fa('0x64')],'CommentsListView':_0x46676e,'CommentThreadInputView':_0x2e9229}),_0x37ffcb[_0x17fa('0x61')]['on'](_0x17fa('0x4a'),()=>{_0xf8249d[_0x17fa('0x11')]['view']['focus']();}),_0x37ffcb['discardButton']['on']('execute',()=>{_0xf8249d[_0x17fa('0x11')][_0x17fa('0x2c')][_0x17fa('0x37')]();}),_0x46fd3c=_0x321f40[_0x17fa('0x1a')](this[_0x17fa('0x67')][_0x17fa('0x42')],_0x37ffcb),_0x46fd3c[_0x17fa('0x38')]('isDirty')['to'](_0x37ffcb,_0x17fa('0x14')),_0x46fd3c[_0x17fa('0x38')](_0x17fa('0x27'))['to'](_0x37ffcb),_0x46fd3c[_0x17fa('0x38')]('type')['to'](_0x37ffcb,_0x17fa('0x1b'),_0x27de7a=>'suggestion-'+_0x27de7a),this['_annotationViews'][_0x17fa('0x22')](_0x3b2b90['id'],_0x46fd3c));const _0x10ecbf=_0x19e3d7[_0x17fa('0x34')](_0x3b2b90[_0x17fa('0x3a')],_0x37ffcb),_0x170984=new _0x5e541d(_0xf8249d,_0x3b2b90,_0x37ffcb,_0x10ecbf),_0x30fd16=_0x3b2b90[_0x17fa('0x56')]()[_0x17fa('0x25')](_0x4a03b7=>_0x4a03b7['isInContent']);_0x37ffcb[_0x17fa('0x55')]=_0xf8249d[_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x5a'))['_descriptionFactory']['getDescriptions'](_0x30fd16),this[_0x17fa('0x68')][_0x17fa('0x22')](_0x3b2b90,_0x170984),this['_viewToController'][_0x17fa('0x22')](_0x37ffcb,_0x170984);const _0x3f8493=_0x321f40[_0x17fa('0x33')]({'view':_0x46fd3c,'target':()=>{const _0x5d0379=[],_0x1a9e4c=_0x3b2b90[_0x17fa('0x56')]()[_0x17fa('0x25')](_0x2803c7=>_0x2803c7['isInContent']);for(const _0x4e8102 of _0x1a9e4c)_0x5d0379[_0x17fa('0x1f')](..._0x4e8102[_0x17fa('0x19')]());return _0x53db84(_0xf8249d[_0x17fa('0x11')],_0x5d0379);},'type':()=>'suggestion-'+_0x170984['view']['type']});_0x19e3d7['_bindAnnotationToEditors'](_0x37ffcb,_0x3f8493),_0x321f40[_0x17fa('0x23')](_0x3f8493),_0x2368d7['registerAnnotation'](_0x3f8493);}[_0x17fa('0x15')](_0x46d803){const _0x12485e=this[_0x17fa('0x67')][_0x17fa('0x53')][_0x17fa('0x3')](_0x17fa('0x2a')),_0x272298=this[_0x17fa('0x67')][_0x17fa('0x53')][_0x17fa('0x3')]('Annotations'),_0x10692b=this[_0x17fa('0x68')][_0x17fa('0x3')](_0x46d803),_0x1c42d=_0x10692b[_0x17fa('0x2c')],_0x3ceab9=_0x272298[_0x17fa('0xe')](_0x1c42d);_0x12485e[_0x17fa('0x2b')](_0x1c42d),_0x3ceab9&&_0x272298['remove'](_0x3ceab9),this['_suggestionToController']['delete'](_0x46d803),this[_0x17fa('0x2f')][_0x17fa('0x41')](_0x1c42d),_0x10692b[_0x17fa('0x13')]();}[_0x17fa('0x1c')](_0x4ac97b){if(!_0x4ac97b[_0x17fa('0xc')]||!this[_0x17fa('0x68')][_0x17fa('0x48')](_0x4ac97b))return;const _0xa7b9c4=this[_0x17fa('0x67')]['plugins'][_0x17fa('0x3')](_0x17fa('0x5a')),_0x5be4f6=this[_0x17fa('0x68')][_0x17fa('0x3')](_0x4ac97b),_0x30c113=_0x4ac97b[_0x17fa('0x56')]();_0x5be4f6[_0x17fa('0x2c')]['descriptionParts']=_0xa7b9c4[_0x17fa('0x12')][_0x17fa('0x7')](_0x30c113);}[_0x17fa('0x13')](){for(const _0x3869a8 of this['_suggestionToController']['keys']())this[_0x17fa('0x15')](_0x3869a8);for(const _0x228376 of this[_0x17fa('0x21')][_0x17fa('0x6')]())_0x228376[_0x17fa('0x10')]['destroy']();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x135d=['bind','get','_discardCommand','model','discardSuggestion','acceptSuggestion','_removePendingAction','canDiscard','canEditAt','view','_acceptCommand','unbind','_editor','commands','commentThreadController','_pendingAction','isEnabled','destroy','_setPendingAction','PendingActions','change:isDirty','isDirty','execute','canAccept','plugins','getRanges','listenTo','remove','PENDING_ACTION_SUGGESTION','locale'];(function(_0x551303,_0x135db0){const _0x217e5e=function(_0x123000){while(--_0x123000){_0x551303['push'](_0x551303['shift']());}};_0x217e5e(++_0x135db0);}(_0x135d,0x1c9));const _0x217e=function(_0x551303,_0x135db0){_0x551303=_0x551303-0x0;let _0x217e5e=_0x135d[_0x551303];return _0x217e5e;};import{ObservableMixin as _0x479486}from'ckeditor5/src/utils.js';import{getTranslation as _0x58e9a5}from'../utils/common-translations.js';export default class Xt extends _0x479486(){constructor(_0x2c128e,_0x44944b,_0x77a40d,_0x39535f){super(),this[_0x217e('0x1a')]=_0x44944b,this['view']=_0x77a40d,this[_0x217e('0x7')]=_0x39535f,this[_0x217e('0x5')]=_0x2c128e,this['_acceptCommand']=_0x2c128e[_0x217e('0x6')]['get'](_0x217e('0x1c')),this['_discardCommand']=_0x2c128e[_0x217e('0x6')][_0x217e('0x18')](_0x217e('0x1b')),this[_0x217e('0x2')][_0x217e('0x17')]('isEnabled')['to'](this[_0x217e('0x3')],this[_0x217e('0x19')],(_0xdfab81,_0x1006fb)=>_0xdfab81||_0x1006fb),this[_0x217e('0x2')][_0x217e('0x17')]('canAccept')['to'](this['_acceptCommand'],_0x217e('0x9'),_0x379f7a=>_0x379f7a&&this[_0x217e('0x5')]['model'][_0x217e('0x1')](_0x44944b[_0x217e('0x12')]())),this[_0x217e('0x2')][_0x217e('0x17')]('canDiscard')['to'](this[_0x217e('0x19')],_0x217e('0x9'),_0x2997e=>_0x2997e&&this['_editor'][_0x217e('0x1a')][_0x217e('0x1')](_0x44944b['getRanges']())),this[_0x217e('0x8')]=null,_0x77a40d[_0x217e('0xe')]&&this[_0x217e('0xb')](),this[_0x217e('0x13')](_0x77a40d,'acceptSuggestion',()=>this[_0x217e('0x1c')]()),this[_0x217e('0x13')](_0x77a40d,_0x217e('0x1b'),()=>this['discardSuggestion']()),this['listenTo'](_0x77a40d,_0x217e('0xd'),()=>{_0x77a40d[_0x217e('0xe')]?this['_setPendingAction']():this[_0x217e('0x1d')]();});}['acceptSuggestion'](){this[_0x217e('0x3')][_0x217e('0xf')](this['model']['id']);}[_0x217e('0x1b')](){this[_0x217e('0x19')]['execute'](this[_0x217e('0x1a')]['id']);}[_0x217e('0xa')](){this[_0x217e('0x2')][_0x217e('0x4')](_0x217e('0x9')),this[_0x217e('0x2')]['unbind'](_0x217e('0x10')),this[_0x217e('0x2')][_0x217e('0x4')](_0x217e('0x0')),this['stopListening'](),this['commentThreadController'][_0x217e('0xa')](),this[_0x217e('0x8')]&&this[_0x217e('0x1d')]();}['_setPendingAction'](){const _0x5b2487=_0x58e9a5(this[_0x217e('0x5')][_0x217e('0x16')],_0x217e('0x15'));this['_pendingAction']=this[_0x217e('0x5')][_0x217e('0x11')][_0x217e('0x18')](_0x217e('0xc'))['add'](_0x5b2487);}[_0x217e('0x1d')](){null!==this[_0x217e('0x8')]&&this['_editor'][_0x217e('0x11')][_0x217e('0x18')](_0x217e('0xc'))[_0x217e('0x14')](this[_0x217e('0x8')]),this['_pendingAction']=null;}}
23
+ const _0x507c=['view','acceptSuggestion','execute','listenTo','getRanges','locale','_discardCommand','isEnabled','commands','_setPendingAction','canAccept','unbind','canEditAt','_removePendingAction','_acceptCommand','_pendingAction','model','plugins','discardSuggestion','destroy','PendingActions','bind','_editor','commentThreadController','canDiscard','change:isDirty','get','add','isDirty'];(function(_0x1f7248,_0x507c91){const _0x1718dd=function(_0x378a7b){while(--_0x378a7b){_0x1f7248['push'](_0x1f7248['shift']());}};_0x1718dd(++_0x507c91);}(_0x507c,0xe8));const _0x1718=function(_0x1f7248,_0x507c91){_0x1f7248=_0x1f7248-0x0;let _0x1718dd=_0x507c[_0x1f7248];return _0x1718dd;};import{ObservableMixin as _0x5cce81}from'ckeditor5/src/utils.js';import{getTranslation as _0x471556}from'../utils/common-translations.js';export default class Xt extends _0x5cce81(){constructor(_0x5d837e,_0x3d8ba8,_0x509170,_0x4773a4){super(),this['model']=_0x3d8ba8,this[_0x1718('0x0')]=_0x509170,this[_0x1718('0x17')]=_0x4773a4,this[_0x1718('0x16')]=_0x5d837e,this[_0x1718('0xe')]=_0x5d837e[_0x1718('0x8')][_0x1718('0x1a')](_0x1718('0x1')),this['_discardCommand']=_0x5d837e[_0x1718('0x8')][_0x1718('0x1a')](_0x1718('0x12')),this[_0x1718('0x0')]['bind'](_0x1718('0x7'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x38c174,_0x4ff68d)=>_0x38c174||_0x4ff68d),this[_0x1718('0x0')][_0x1718('0x15')](_0x1718('0xa'))['to'](this[_0x1718('0xe')],'isEnabled',_0xb2bad0=>_0xb2bad0&&this[_0x1718('0x16')]['model'][_0x1718('0xc')](_0x3d8ba8['getRanges']())),this[_0x1718('0x0')][_0x1718('0x15')](_0x1718('0x18'))['to'](this[_0x1718('0x6')],_0x1718('0x7'),_0xfb62e3=>_0xfb62e3&&this[_0x1718('0x16')][_0x1718('0x10')][_0x1718('0xc')](_0x3d8ba8[_0x1718('0x4')]())),this[_0x1718('0xf')]=null,_0x509170[_0x1718('0x1c')]&&this[_0x1718('0x9')](),this['listenTo'](_0x509170,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x1718('0x3')](_0x509170,_0x1718('0x12'),()=>this['discardSuggestion']()),this[_0x1718('0x3')](_0x509170,_0x1718('0x19'),()=>{_0x509170[_0x1718('0x1c')]?this[_0x1718('0x9')]():this[_0x1718('0xd')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1718('0x2')](this[_0x1718('0x10')]['id']);}['discardSuggestion'](){this['_discardCommand'][_0x1718('0x2')](this[_0x1718('0x10')]['id']);}[_0x1718('0x13')](){this[_0x1718('0x0')][_0x1718('0xb')](_0x1718('0x7')),this[_0x1718('0x0')]['unbind']('canAccept'),this[_0x1718('0x0')][_0x1718('0xb')](_0x1718('0x18')),this['stopListening'](),this['commentThreadController']['destroy'](),this[_0x1718('0xf')]&&this[_0x1718('0xd')]();}[_0x1718('0x9')](){const _0x52883f=_0x471556(this[_0x1718('0x16')][_0x1718('0x5')],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor'][_0x1718('0x11')][_0x1718('0x1a')](_0x1718('0x14'))[_0x1718('0x1b')](_0x52883f);}[_0x1718('0xd')](){null!==this[_0x1718('0xf')]&&this[_0x1718('0x16')][_0x1718('0x11')]['get']('PendingActions')['remove'](this[_0x1718('0xf')]),this[_0x1718('0xf')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d47=['_config','submit','fire','isEnabled','delegate','updateComment','isReadOnly','assign','canAccept','_localUser','hasDirtyComment','isDirty','commentInputView','_model','descriptionParts','commentThreadInputView','removeComment','_createCommentViews','focus','bind','cancel','addComment','showInput','locale','isActive','commentsListView','disabledSubmit','_createCommentThreadInputView','element','disableComments','length','set','commentThread','value','editor','destroy','authoredAt'];(function(_0x5ac706,_0x3d4761){const _0x1bd2d3=function(_0x4a579d){while(--_0x4a579d){_0x5ac706['push'](_0x5ac706['shift']());}};_0x1bd2d3(++_0x3d4761);}(_0x3d47,0x7b));const _0x1bd2=function(_0x5ac706,_0x3d4761){_0x5ac706=_0x5ac706-0x0;let _0x1bd2d3=_0x3d47[_0x5ac706];return _0x1bd2d3;};import{View as _0x3dcdc3}from'ckeditor5/src/ui.js';export default class es extends _0x3dcdc3{constructor(_0x100dfa,_0x32042a,_0x35303f,_0x4e700f){super(_0x100dfa),this[_0x1bd2('0xd')]=null,this[_0x1bd2('0x3')]=null,this[_0x1bd2('0x13')](_0x1bd2('0xc'),!0x1),this[_0x1bd2('0x13')]('authoredAt',_0x32042a[_0x1bd2('0x18')]),this['bind'](_0x1bd2('0x18'))['to'](_0x32042a),this[_0x1bd2('0x13')](_0x1bd2('0x2'),[]),this['set'](_0x1bd2('0x24'),!0x1),this[_0x1bd2('0x13')](_0x1bd2('0x1c'),!0x1),this[_0x1bd2('0x13')](_0x1bd2('0x21'),!0x1),this['set']('canDiscard',!0x1),this[_0x1bd2('0x1')]=_0x32042a,this['_localUser']=_0x35303f,this[_0x1bd2('0x19')]=_0x4e700f,_0x4e700f[_0x1bd2('0x11')]?this[_0x1bd2('0x13')](_0x1bd2('0x12'),0x1):this[_0x1bd2('0x5')]();}[_0x1bd2('0x6')](){this[_0x1bd2('0x10')][_0x1bd2('0x6')]();}[_0x1bd2('0x17')](){this['commentsListView']&&this[_0x1bd2('0xd')][_0x1bd2('0x17')](),this[_0x1bd2('0x3')]&&this[_0x1bd2('0x3')]['destroy'](),super[_0x1bd2('0x17')]();}['_createCommentViews'](){const {CommentsListView:_0x35e38e}=this['_config'];this['commentsListView']=new _0x35e38e(this['locale'],this[_0x1bd2('0x1')][_0x1bd2('0x14')],Object[_0x1bd2('0x20')]({'CommentView':this[_0x1bd2('0x19')]['CommentView']},this[_0x1bd2('0x19')])),this[_0x1bd2('0xd')][_0x1bd2('0x1d')](_0x1bd2('0x4'))['to'](this),this[_0x1bd2('0xd')][_0x1bd2('0x1d')](_0x1bd2('0x1e'))['to'](this),this[_0x1bd2('0xd')][_0x1bd2('0x7')]('isActive')['to'](this),this[_0x1bd2('0x13')]('length',this[_0x1bd2('0xd')]['length']+0x1),this['bind'](_0x1bd2('0x12'))['to'](this[_0x1bd2('0xd')],_0x1bd2('0x12'),_0x30c4b8=>_0x30c4b8+0x1),this[_0x1bd2('0x3')]=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this[_0x1bd2('0x7')]('isDirty')['to'](this[_0x1bd2('0xd')],_0x1bd2('0x23'),this[_0x1bd2('0x3')][_0x1bd2('0x0')],_0x1bd2('0x15'),(_0x450680,_0x9a3d39)=>_0x450680||!!_0x9a3d39);}[_0x1bd2('0xf')](){const {CommentThreadInputView:_0x4dcd48}=this[_0x1bd2('0x19')],_0x43132a=new _0x4dcd48(this[_0x1bd2('0xb')],this[_0x1bd2('0x22')],this[_0x1bd2('0x19')]['editorConfig']),_0x173edd=_0x43132a[_0x1bd2('0x0')];return _0x43132a['bind'](_0x1bd2('0xa'))['to'](this,_0x1bd2('0xc'),this[_0x1bd2('0x1')][_0x1bd2('0x14')],_0x1bd2('0x1f'),_0x173edd,_0x1bd2('0x15'),(_0x5bf977,_0x49cdc3,_0x252163)=>!!_0x252163||_0x5bf977&&!_0x49cdc3),_0x173edd['on'](_0x1bd2('0x1a'),(_0x5a2374,_0x4459c7)=>{this[_0x1bd2('0x1b')](_0x1bd2('0x9'),_0x4459c7),_0x173edd[_0x1bd2('0x16')]['setData']('');}),_0x173edd['on'](_0x1bd2('0x8'),()=>this['focus']()),_0x173edd[_0x1bd2('0x7')](_0x1bd2('0xe'))['to'](this[_0x1bd2('0x1')][_0x1bd2('0x14')],_0x1bd2('0x1f')),_0x43132a;}}
23
+ const _0x273c=['CommentView','showInput','delegate','canDiscard','editor','isReadOnly','updateComment','length','hasDirtyComment','_model','submit','commentThreadInputView','commentsListView','_createCommentThreadInputView','_createCommentViews','isActive','descriptionParts','element','destroy','set','assign','_config','commentThread','_localUser','removeComment','commentInputView','isDirty','locale','addComment','disableComments','authoredAt','focus','canAccept','bind','setData','value'];(function(_0x5682aa,_0x273c7f){const _0x2fb13e=function(_0x160591){while(--_0x160591){_0x5682aa['push'](_0x5682aa['shift']());}};_0x2fb13e(++_0x273c7f);}(_0x273c,0x1cf));const _0x2fb1=function(_0x5682aa,_0x273c7f){_0x5682aa=_0x5682aa-0x0;let _0x2fb13e=_0x273c[_0x5682aa];return _0x2fb13e;};import{View as _0x4fbcb3}from'ckeditor5/src/ui.js';export default class es extends _0x4fbcb3{constructor(_0x504f11,_0x24510c,_0x29c596,_0x37f1ec){super(_0x504f11),this[_0x2fb1('0x11')]=null,this[_0x2fb1('0x10')]=null,this['set'](_0x2fb1('0x14'),!0x1),this[_0x2fb1('0x18')](_0x2fb1('0x23'),_0x24510c['authoredAt']),this[_0x2fb1('0x2')](_0x2fb1('0x23'))['to'](_0x24510c),this[_0x2fb1('0x18')](_0x2fb1('0x15'),[]),this['set'](_0x2fb1('0x1f'),!0x1),this[_0x2fb1('0x18')]('isEnabled',!0x1),this[_0x2fb1('0x18')](_0x2fb1('0x1'),!0x1),this['set'](_0x2fb1('0x8'),!0x1),this['_model']=_0x24510c,this[_0x2fb1('0x1c')]=_0x29c596,this[_0x2fb1('0x1a')]=_0x37f1ec,_0x37f1ec[_0x2fb1('0x22')]?this['set'](_0x2fb1('0xc'),0x1):this[_0x2fb1('0x13')]();}[_0x2fb1('0x0')](){this[_0x2fb1('0x16')][_0x2fb1('0x0')]();}['destroy'](){this[_0x2fb1('0x11')]&&this[_0x2fb1('0x11')][_0x2fb1('0x17')](),this[_0x2fb1('0x10')]&&this[_0x2fb1('0x10')][_0x2fb1('0x17')](),super[_0x2fb1('0x17')]();}[_0x2fb1('0x13')](){const {CommentsListView:_0x43ff3c}=this['_config'];this[_0x2fb1('0x11')]=new _0x43ff3c(this[_0x2fb1('0x20')],this[_0x2fb1('0xe')][_0x2fb1('0x1b')],Object[_0x2fb1('0x19')]({'CommentView':this[_0x2fb1('0x1a')][_0x2fb1('0x5')]},this['_config'])),this['commentsListView'][_0x2fb1('0x7')](_0x2fb1('0x1d'))['to'](this),this['commentsListView'][_0x2fb1('0x7')](_0x2fb1('0xb'))['to'](this),this[_0x2fb1('0x11')]['bind'](_0x2fb1('0x14'))['to'](this),this['set'](_0x2fb1('0xc'),this[_0x2fb1('0x11')][_0x2fb1('0xc')]+0x1),this[_0x2fb1('0x2')](_0x2fb1('0xc'))['to'](this[_0x2fb1('0x11')],'length',_0x254574=>_0x254574+0x1),this[_0x2fb1('0x10')]=this['_createCommentThreadInputView'](),this['on'](_0x2fb1('0x1d'),()=>this['focus']()),this[_0x2fb1('0x2')](_0x2fb1('0x1f'))['to'](this[_0x2fb1('0x11')],_0x2fb1('0xd'),this[_0x2fb1('0x10')][_0x2fb1('0x1e')],_0x2fb1('0x4'),(_0x58c853,_0x9e6f13)=>_0x58c853||!!_0x9e6f13);}[_0x2fb1('0x12')](){const {CommentThreadInputView:_0x72e154}=this[_0x2fb1('0x1a')],_0x392968=new _0x72e154(this[_0x2fb1('0x20')],this[_0x2fb1('0x1c')],this['_config']['editorConfig']),_0x5e40fb=_0x392968['commentInputView'];return _0x392968[_0x2fb1('0x2')](_0x2fb1('0x6'))['to'](this,_0x2fb1('0x14'),this[_0x2fb1('0xe')][_0x2fb1('0x1b')],'isReadOnly',_0x5e40fb,'value',(_0x6710bc,_0x5c1319,_0xa2472)=>!!_0xa2472||_0x6710bc&&!_0x5c1319),_0x5e40fb['on'](_0x2fb1('0xf'),(_0xc4ef8b,_0x3fe934)=>{this['fire'](_0x2fb1('0x21'),_0x3fe934),_0x5e40fb[_0x2fb1('0x9')][_0x2fb1('0x3')]('');}),_0x5e40fb['on']('cancel',()=>this[_0x2fb1('0x0')]()),_0x5e40fb[_0x2fb1('0x2')]('disabledSubmit')['to'](this[_0x2fb1('0xe')][_0x2fb1('0x1b')],_0x2fb1('0xa')),_0x392968;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35bc=['isEnabled','bind','ck-suggestion__actions','_descriptionElement','</span>','\x22></span>','ck-suggestion__user','createElement','title','ck-suggestion--disabled-comments','children','ck-suggestion-wrapper--active','ck-annotation','split','value','ck-suggestion--accept','render','formatDateTime','push','descriptionParts','extendTemplate','check','.ck-annotation__content-wrapper','EXTERNAL_IMPORT_WORD_AVATAR','innerText','ck-annotation__info-name','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','bindTemplate','<p>','authoredAt','_createButton','querySelector','cancel','acceptButton','EXTERNAL_IMPORT_WORD_SUGGESTION','change:description','isActive','ck-suggestion--discard','discardButton','map','ck-annotation__info','delegate','\x22\x20title=\x22','_config','locale','ck-annotation__content-wrapper','_model','importWord','source','time','ck-suggestion__main','canAccept','userView','attributes','ck-comment__external','ck-suggestion','span','</p>','ck-annotation__main','getTemplate','isExternal','author','EXTERNAL_AVATAR','commentThreadInputView','join','ck-suggestion-','getExternalSuggestionNote','getUserViewNotificationText','ck-suggestion-wrapper','disableComments','div','editorReady','innerHTML','fire','type','ck-annotation__actions','ck-suggestion__info-name','setTemplate','name','content','commentsListView','creator','description','@external','commentThread','set','ck-suggestion__info','Discard\x20suggestion'];(function(_0x2df914,_0x35bc97){const _0x37d8d8=function(_0x1848ec){while(--_0x1848ec){_0x2df914['push'](_0x2df914['shift']());}};_0x37d8d8(++_0x35bc97);}(_0x35bc,0x125));const _0x37d8=function(_0x2df914,_0x35bc97){_0x2df914=_0x2df914-0x0;let _0x37d8d8=_0x35bc[_0x2df914];return _0x37d8d8;};import{getTranslation as _0x3f4352}from'../../utils/common-translations.js';import{default as _0x3be941}from'./basesuggestionthreadview.js';import{ButtonView as _0x5a4d02}from'ckeditor5/src/ui.js';import{icons as _0x75d74b}from'ckeditor5/src/core.js';import{trimHtml as _0x5c524d,UserView as _0x18968d}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x3be941{constructor(_0x41afc5,_0x49060a,_0xb057a7,_0x126068){super(_0x41afc5,_0x49060a,_0xb057a7,_0x126068),this['set'](_0x37d8('0x2d'),''),this[_0x37d8('0x3c')]('type')['to'](this,_0x37d8('0x4e'),_0x12b69d=>_0x12b69d&&_0x12b69d[0x0]?_0x12b69d[0x0][_0x37d8('0x2d')]:''),this[_0x37d8('0x3c')](_0x37d8('0x35'))['to'](this,_0x37d8('0x4e'),this,_0x37d8('0x7'),(_0x29198f,_0x8191fb)=>{let _0x9df188='';for(const _0x153894 of _0x29198f)_0x9df188+=_0x37d8('0x57')+ds(_0x153894[_0x37d8('0x32')],_0x153894['color'])+_0x37d8('0x1c');return _0x8191fb?_0x9df188:_0x5c524d(_0x9df188,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x37d8('0x4')]=this['_createButton'](_0x3f4352(_0x41afc5,'Accept\x20suggestion'),_0x75d74b[_0x37d8('0x50')],_0x37d8('0x4a'),'acceptSuggestion','sw'),this[_0x37d8('0x4')][_0x37d8('0x3c')](_0x37d8('0x3b'))['to'](this,_0x37d8('0x16')),this[_0x37d8('0x9')]=this[_0x37d8('0x1')](_0x3f4352(_0x41afc5,_0x37d8('0x3a')),_0x75d74b[_0x37d8('0x3')],_0x37d8('0x8'),'discardSuggestion','sw'),this['discardButton']['bind'](_0x37d8('0x3b'))['to'](this,'canDiscard'),this[_0x37d8('0x17')]=new _0x18968d(_0x41afc5,this[_0x37d8('0x11')][_0x37d8('0x20')],this[_0x37d8('0x26')]()),this[_0x37d8('0x17')][_0x37d8('0x4f')]({'attributes':{'class':[_0x37d8('0x41'),'ck-annotation__user']}}),this[_0x37d8('0x30')](this['getTemplate']());}[_0x37d8('0x1e')](){const _0x23e2d8=this[_0x37d8('0x56')],_0x316c95=[{'tag':_0x37d8('0x29'),'attributes':{'class':[_0x37d8('0x39'),_0x37d8('0xb')]},'children':[{'tag':_0x37d8('0x1b'),'children':[{'text':this[_0x37d8('0x17')][_0x37d8('0x31')]}],'attributes':{'class':[_0x37d8('0x2f'),_0x37d8('0x54')]}},{'tag':_0x37d8('0x14'),'attributes':{'datetime':_0x23e2d8['to'](_0x37d8('0x0')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23e2d8['to'](_0x37d8('0x0'),_0x9b34d3=>this[_0x37d8('0xe')][_0x37d8('0x4c')](_0x9b34d3))}]}]},{'tag':'div','attributes':{'class':[_0x37d8('0x3d'),_0x37d8('0x2e')]},'children':[this[_0x37d8('0x4')],this[_0x37d8('0x9')]]},{'tag':_0x37d8('0x29'),'attributes':{'class':[_0x37d8('0x10')]}}];this[_0x37d8('0x11')][_0x37d8('0x1f')]&&_0x316c95[_0x37d8('0x4d')]({'tag':'div','attributes':{'class':[_0x37d8('0x19')]},'children':[{'text':this[_0x37d8('0x25')]()}]});const _0x286d58={'tag':'div','attributes':{'class':[_0x37d8('0x27'),_0x23e2d8['if'](_0x37d8('0x7'),_0x37d8('0x46')),_0x23e2d8['to'](_0x37d8('0x2d'),_0x50bbed=>_0x37d8('0x24')+_0x50bbed),this[_0x37d8('0xe')][_0x37d8('0x28')]&&_0x37d8('0x44')],'data-suggestion-id':this[_0x37d8('0x11')]['id'],'data-thread-id':this[_0x37d8('0x11')][_0x37d8('0x37')]['id'],'data-author-id':this[_0x37d8('0x11')][_0x37d8('0x20')]['id'],'tabindex':-0x1},'children':[{'tag':_0x37d8('0x29'),'attributes':{'class':[_0x37d8('0x1a'),_0x37d8('0x47')]},'children':[this[_0x37d8('0x17')],{'tag':_0x37d8('0x29'),'attributes':{'class':[_0x37d8('0x15'),_0x37d8('0x1d')]},'children':_0x316c95}]}]};return this[_0x37d8('0x33')]&&this[_0x37d8('0x22')]&&(_0x286d58[_0x37d8('0x45')][_0x37d8('0x4d')](this[_0x37d8('0x33')],this[_0x37d8('0x22')]),this['commentsListView']['delegate'](_0x37d8('0x2a'))['to'](this),this[_0x37d8('0x33')]['delegate']('editorDestroyed')['to'](this),this[_0x37d8('0x22')][_0x37d8('0xc')](_0x37d8('0x2a'))['to'](this),this['commentThreadInputView'][_0x37d8('0xc')]('editorDestroyed')['to'](this)),_0x286d58;}[_0x37d8('0x4b')](){super[_0x37d8('0x4b')](),this[_0x37d8('0x3e')]=this['element'][_0x37d8('0x2')](_0x37d8('0x51')),this[_0x37d8('0x3e')][_0x37d8('0x2b')]=this[_0x37d8('0x35')],this['on'](_0x37d8('0x6'),(_0x475c50,_0x2eb0b4,_0x2ef9b3)=>{this[_0x37d8('0x3e')][_0x37d8('0x2b')]=_0x2ef9b3;});}['_createButton'](_0x451954,_0x18ee5f,_0x147230,_0x13598a,_0x141a5a){const _0x388b6e=new _0x5a4d02(this['locale']);return _0x388b6e[_0x37d8('0x38')]({'label':_0x451954,'icon':_0x18ee5f,'tooltip':!0x0,'tooltipPosition':_0x141a5a}),_0x388b6e[_0x37d8('0x4f')]({'attributes':{'class':_0x147230}}),_0x388b6e['on']('execute',()=>{this[_0x37d8('0x2c')](_0x13598a,this[_0x37d8('0x11')]['id']);}),_0x388b6e;}['getExternalSuggestionNote'](){return _0x37d8('0x12')===this[_0x37d8('0x11')][_0x37d8('0x18')][_0x37d8('0x36')][_0x37d8('0x13')]?_0x3f4352(this[_0x37d8('0xf')],_0x37d8('0x5')):_0x3f4352(this['locale'],'EXTERNAL_SUGGESTION');}[_0x37d8('0x26')](){return this[_0x37d8('0x11')][_0x37d8('0x1f')]?_0x37d8('0x12')===this[_0x37d8('0x11')]['attributes'][_0x37d8('0x36')][_0x37d8('0x13')]?_0x3f4352(this[_0x37d8('0xf')],_0x37d8('0x52'),this[_0x37d8('0x11')][_0x37d8('0x34')]['name']):_0x3f4352(this['locale'],_0x37d8('0x21'),this['_model']['creator'][_0x37d8('0x31')]):null;}}function ds(_0x479f3d,_0x1878fc){let _0x2154a9='';return _0x2154a9+=_0x479f3d[_0x37d8('0x48')]('*')[_0x37d8('0xa')]((_0x9b5741,_0x28ac6d)=>_0x28ac6d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x9b5741)+_0x37d8('0x3f'):us(_0x9b5741))[_0x37d8('0x23')](''),_0x1878fc&&(_0x2154a9+=_0x37d8('0x55')+_0x1878fc[_0x37d8('0x49')]+_0x37d8('0xd')+_0x1878fc[_0x37d8('0x43')]+_0x37d8('0x40')),_0x2154a9;}function us(_0x1f168f){const _0x5f23e9=document[_0x37d8('0x42')](_0x37d8('0x1b'));return _0x5f23e9[_0x37d8('0x53')]=_0x1f168f,_0x5f23e9[_0x37d8('0x2b')];}
23
+ const _0x5a4b=['source','isActive','color','ck-annotation','extendTemplate','locale','push','@external','<p>','type','getExternalSuggestionNote','description','delegate','commentsListView','editorDestroyed','discardSuggestion','join','getTemplate','isEnabled','_model','setTemplate','span','bindTemplate','innerHTML','formatDateTime','querySelector','.ck-annotation__content-wrapper','importWord','Accept\x20suggestion','content','ck-annotation__info-time','commentThread','EXTERNAL_AVATAR','\x22\x20title=\x22','Discard\x20suggestion','cancel','editorReady','execute','_createButton','creator','element','ck-annotation__content-wrapper','title','descriptionParts','render','disableComments','acceptButton','attributes','ck-annotation__info-name','value','author','ck-suggestion__user','ck-annotation__info','discardButton','ck-suggestion-','createElement','userView','\x22></span>','getUserViewNotificationText','authoredAt','ck-suggestion__actions','name','canAccept','ck-suggestion-wrapper','isExternal','_config','ck-suggestion-wrapper--active','_descriptionElement','commentThreadInputView','split','children','div','ck-suggestion','ck-annotation__main','</span>','set','bind','ck-suggestion__main','ck-comment__external','ck-suggestion__info','fire'];(function(_0xac9b18,_0x5a4bf8){const _0x408434=function(_0x5c2e41){while(--_0x5c2e41){_0xac9b18['push'](_0xac9b18['shift']());}};_0x408434(++_0x5a4bf8);}(_0x5a4b,0x91));const _0x4084=function(_0xac9b18,_0x5a4bf8){_0xac9b18=_0xac9b18-0x0;let _0x408434=_0x5a4b[_0xac9b18];return _0x408434;};import{getTranslation as _0x1d055a}from'../../utils/common-translations.js';import{default as _0x228046}from'./basesuggestionthreadview.js';import{ButtonView as _0x19ca88}from'ckeditor5/src/ui.js';import{icons as _0x54929b}from'ckeditor5/src/core.js';import{trimHtml as _0x43cd20,UserView as _0x50ecb2}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x228046{constructor(_0x5b8c65,_0x4f5dcf,_0x50bb8c,_0x1a3e66){super(_0x5b8c65,_0x4f5dcf,_0x50bb8c,_0x1a3e66),this[_0x4084('0xb')](_0x4084('0x1a'),''),this['bind'](_0x4084('0x1a'))['to'](this,_0x4084('0x3c'),_0x4c10e6=>_0x4c10e6&&_0x4c10e6[0x0]?_0x4c10e6[0x0][_0x4084('0x1a')]:''),this[_0x4084('0xc')](_0x4084('0x1c'))['to'](this,_0x4084('0x3c'),this,'isActive',(_0x1e0f8a,_0x51cb63)=>{let _0x5f3168='';for(const _0x1562c0 of _0x1e0f8a)_0x5f3168+=_0x4084('0x19')+ds(_0x1562c0[_0x4084('0x2e')],_0x1562c0[_0x4084('0x13')])+'</p>';return _0x51cb63?_0x5f3168:_0x43cd20(_0x5f3168,{'limit':0x8c});}),this[_0x4084('0x3')]=null,this[_0x4084('0x3f')]=this[_0x4084('0x37')](_0x1d055a(_0x5b8c65,_0x4084('0x2d')),_0x54929b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton'][_0x4084('0xc')]('isEnabled')['to'](this,_0x4084('0x4f')),this[_0x4084('0x46')]=this[_0x4084('0x37')](_0x1d055a(_0x5b8c65,_0x4084('0x33')),_0x54929b[_0x4084('0x34')],'ck-suggestion--discard',_0x4084('0x20'),'sw'),this['discardButton'][_0x4084('0xc')](_0x4084('0x23'))['to'](this,'canDiscard'),this[_0x4084('0x49')]=new _0x50ecb2(_0x5b8c65,this['_model'][_0x4084('0x43')],this[_0x4084('0x4b')]()),this[_0x4084('0x49')][_0x4084('0x15')]({'attributes':{'class':[_0x4084('0x44'),'ck-annotation__user']}}),this[_0x4084('0x25')](this[_0x4084('0x22')]());}[_0x4084('0x22')](){const _0x52479c=this[_0x4084('0x27')],_0x32f3b3=[{'tag':_0x4084('0x7'),'attributes':{'class':[_0x4084('0xf'),_0x4084('0x45')]},'children':[{'tag':_0x4084('0x26'),'children':[{'text':this[_0x4084('0x49')]['name']}],'attributes':{'class':['ck-suggestion__info-name',_0x4084('0x41')]}},{'tag':'time','attributes':{'datetime':_0x52479c['to'](_0x4084('0x4c')),'class':['ck-comment__info-time',_0x4084('0x2f')]},'children':[{'text':_0x52479c['to'](_0x4084('0x4c'),_0x1c1ad6=>this['_config'][_0x4084('0x29')](_0x1c1ad6))}]}]},{'tag':_0x4084('0x7'),'attributes':{'class':[_0x4084('0x4d'),'ck-annotation__actions']},'children':[this[_0x4084('0x3f')],this[_0x4084('0x46')]]},{'tag':_0x4084('0x7'),'attributes':{'class':[_0x4084('0x3a')]}}];this[_0x4084('0x24')]['isExternal']&&_0x32f3b3[_0x4084('0x17')]({'tag':_0x4084('0x7'),'attributes':{'class':[_0x4084('0xe')]},'children':[{'text':this[_0x4084('0x1b')]()}]});const _0x285afc={'tag':_0x4084('0x7'),'attributes':{'class':[_0x4084('0x50'),_0x52479c['if'](_0x4084('0x12'),_0x4084('0x2')),_0x52479c['to'](_0x4084('0x1a'),_0x4797f0=>_0x4084('0x47')+_0x4797f0),this[_0x4084('0x1')][_0x4084('0x3e')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0x4084('0x24')]['id'],'data-thread-id':this[_0x4084('0x24')][_0x4084('0x30')]['id'],'data-author-id':this[_0x4084('0x24')][_0x4084('0x43')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x4084('0x8'),_0x4084('0x14')]},'children':[this[_0x4084('0x49')],{'tag':_0x4084('0x7'),'attributes':{'class':[_0x4084('0xd'),_0x4084('0x9')]},'children':_0x32f3b3}]}]};return this[_0x4084('0x1e')]&&this[_0x4084('0x4')]&&(_0x285afc[_0x4084('0x6')][_0x4084('0x17')](this[_0x4084('0x1e')],this[_0x4084('0x4')]),this['commentsListView'][_0x4084('0x1d')](_0x4084('0x35'))['to'](this),this[_0x4084('0x1e')][_0x4084('0x1d')]('editorDestroyed')['to'](this),this[_0x4084('0x4')][_0x4084('0x1d')](_0x4084('0x35'))['to'](this),this[_0x4084('0x4')][_0x4084('0x1d')](_0x4084('0x1f'))['to'](this)),_0x285afc;}[_0x4084('0x3d')](){super[_0x4084('0x3d')](),this[_0x4084('0x3')]=this[_0x4084('0x39')][_0x4084('0x2a')](_0x4084('0x2b')),this['_descriptionElement'][_0x4084('0x28')]=this[_0x4084('0x1c')],this['on']('change:description',(_0x1c301c,_0x1e4a1d,_0x2c9e5b)=>{this['_descriptionElement'][_0x4084('0x28')]=_0x2c9e5b;});}['_createButton'](_0x1d632d,_0xc92a0a,_0x51cd21,_0x2c1f31,_0x3f482e){const _0x4c7878=new _0x19ca88(this['locale']);return _0x4c7878[_0x4084('0xb')]({'label':_0x1d632d,'icon':_0xc92a0a,'tooltip':!0x0,'tooltipPosition':_0x3f482e}),_0x4c7878[_0x4084('0x15')]({'attributes':{'class':_0x51cd21}}),_0x4c7878['on'](_0x4084('0x36'),()=>{this[_0x4084('0x10')](_0x2c1f31,this[_0x4084('0x24')]['id']);}),_0x4c7878;}[_0x4084('0x1b')](){return _0x4084('0x2c')===this['_model']['attributes'][_0x4084('0x18')][_0x4084('0x11')]?_0x1d055a(this[_0x4084('0x16')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x1d055a(this[_0x4084('0x16')],'EXTERNAL_SUGGESTION');}[_0x4084('0x4b')](){return this[_0x4084('0x24')][_0x4084('0x0')]?_0x4084('0x2c')===this[_0x4084('0x24')][_0x4084('0x40')]['@external']['source']?_0x1d055a(this[_0x4084('0x16')],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model'][_0x4084('0x38')]['name']):_0x1d055a(this[_0x4084('0x16')],_0x4084('0x31'),this['_model'][_0x4084('0x38')][_0x4084('0x4e')]):null;}}function ds(_0xa5a554,_0x1b30f8){let _0x2e7eba='';return _0x2e7eba+=_0xa5a554[_0x4084('0x5')]('*')['map']((_0x33d244,_0x134e92)=>_0x134e92%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x33d244)+_0x4084('0xa'):us(_0x33d244))[_0x4084('0x21')](''),_0x1b30f8&&(_0x2e7eba+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1b30f8[_0x4084('0x42')]+_0x4084('0x32')+_0x1b30f8[_0x4084('0x3b')]+_0x4084('0x4a')),_0x2e7eba;}function us(_0x50014e){const _0x1b806d=document[_0x4084('0x48')](_0x4084('0x26'));return _0x1b806d['innerText']=_0x50014e,_0x1b806d[_0x4084('0x28')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x40a561,_0x797977,_0x47e82a){const t=_0x40a561['t'];switch(_0x797977){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',_0x47e82a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x47e82a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x47e82a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x47e82a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x47e82a);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',_0x47e82a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x47e82a);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',_0x47e82a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x47e82a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x47e82a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x47e82a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x47e82a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x47e82a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x47e82a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x47e82a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x47e82a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x47e82a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x47e82a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x47e82a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x47e82a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x47e82a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x47e82a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x47e82a);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'},_0x47e82a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x47e82a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x47e82a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x47e82a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x47e82a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x47e82a);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'},_0x47e82a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x47e82a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x47e82a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x47e82a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x47e82a);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'},_0x47e82a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x47e82a);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'},_0x47e82a);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'},_0x47e82a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x47e82a);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'},_0x47e82a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x47e82a);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'},_0x47e82a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x47e82a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x47e82a);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'},_0x47e82a);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'},_0x47e82a);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 _0x797977;}}
23
+ export function getTranslation(_0x23ea33,_0xe6c406,_0x377f6c){const t=_0x23ea33['t'];switch(_0xe6c406){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',_0x377f6c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x377f6c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x377f6c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x377f6c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x377f6c);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',_0x377f6c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x377f6c);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',_0x377f6c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x377f6c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x377f6c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x377f6c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x377f6c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x377f6c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x377f6c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x377f6c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x377f6c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x377f6c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x377f6c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x377f6c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x377f6c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x377f6c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x377f6c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x377f6c);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'},_0x377f6c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x377f6c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x377f6c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x377f6c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x377f6c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x377f6c);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'},_0x377f6c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x377f6c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x377f6c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x377f6c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x377f6c);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'},_0x377f6c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x377f6c);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'},_0x377f6c);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'},_0x377f6c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x377f6c);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'},_0x377f6c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x377f6c);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'},_0x377f6c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x377f6c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x377f6c);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'},_0x377f6c);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'},_0x377f6c);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 _0xe6c406;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1153=['\x20[color\x20','next','join','from','isIntersecting','isArray','type','createPositionBefore','content','isMultiRange','add','length','sort','replace','deletion','isTouching','execute','value','createRange','isInContent','push','getRanges','createPositionAfter','color','start','createPositionAt','end','isObject'];(function(_0x36791a,_0x115375){const _0x7ae815=function(_0x2ab43a){while(--_0x2ab43a){_0x36791a['push'](_0x36791a['shift']());}};_0x7ae815(++_0x115375);}(_0x1153,0x149));const _0x7ae8=function(_0x36791a,_0x115375){_0x36791a=_0x36791a-0x0;let _0x7ae815=_0x1153[_0x36791a];return _0x7ae815;};export function normalizeDescription(_0x50271b){return Array[_0x7ae8('0xc')](_0x50271b)||(_0x50271b=[_0x50271b]),_0x50271b['map'](_0x574694=>{const _0x3dd833=_0x574694[_0x7ae8('0xf')][_0x7ae8('0x14')](/\*/g,''),_0x26f39a=_0x574694[_0x7ae8('0x2')]?_0x7ae8('0x7')+_0x574694[_0x7ae8('0x2')][_0x7ae8('0x18')]+']':'';return'['+_0x574694[_0x7ae8('0xd')]+']\x20'+_0x3dd833+_0x26f39a;})[_0x7ae8('0x9')](';\x20');}export function sortSuggestions(_0xcd312d){return _0xcd312d[_0x7ae8('0x13')]((_0x72b1a6,_0x165162)=>'deletion'==_0x72b1a6[_0x7ae8('0xd')]&&'deletion'!=_0x165162[_0x7ae8('0xd')]?-0x1:_0x7ae8('0x15')!=_0x72b1a6[_0x7ae8('0xd')]&&_0x7ae8('0x15')==_0x165162[_0x7ae8('0xd')]?0x1:0x0);}export function getSelectedSuggestions(_0x12726e,_0x1e24cd){const _0xb79933=Array[_0x7ae8('0xa')](_0x12726e['getRanges']()),_0x35b86a=new Set();for(const _0x24dde3 of _0x1e24cd)if(_0x24dde3[_0x7ae8('0x1a')])for(const _0x2c849f of _0xb79933)for(const _0x3cb5c0 of _0x24dde3[_0x7ae8('0x0')]())(_0x2c849f[_0x7ae8('0xb')](_0x3cb5c0)||_0x12726e['isCollapsed']&&!_0x24dde3[_0x7ae8('0x10')]&&_0x24dde3[_0x7ae8('0x8')]&&_0x3cb5c0[_0x7ae8('0x5')][_0x7ae8('0x16')](_0x2c849f[_0x7ae8('0x3')]))&&_0x35b86a[_0x7ae8('0x11')](_0x24dde3);return _0x35b86a;}export function getRangesOfBlockGroups(_0x5456df,_0x50477e){let _0x40dfe0,_0x16288e=0x0;const _0x9ca1a9=[],_0x178203=_0x50477e['schema'];for(;_0x16288e<_0x5456df[_0x7ae8('0x12')];){const _0x3e7f2d=_0x5456df[_0x16288e],_0x627c68=_0x5456df[_0x16288e+0x1];_0x40dfe0||(_0x40dfe0=_0x50477e[_0x7ae8('0xe')](_0x3e7f2d)),co(_0x50477e,_0x3e7f2d,_0x627c68)||(_0x9ca1a9[_0x7ae8('0x1b')](_0x50477e[_0x7ae8('0x19')](_0x40dfe0,_0x178203[_0x7ae8('0x6')](_0x3e7f2d)?_0x50477e['createPositionAfter'](_0x3e7f2d):_0x50477e[_0x7ae8('0x4')](_0x3e7f2d,_0x7ae8('0x5')))),_0x40dfe0=null),_0x16288e++;}return _0x9ca1a9;}function co(_0x2a8237,_0x3079f2,_0x1dae87){if(!_0x1dae87)return!0x1;const _0x14a5a8=_0x2a8237[_0x7ae8('0x1')](_0x3079f2),_0x3ab3a9=_0x2a8237[_0x7ae8('0xe')](_0x1dae87);return _0x14a5a8[_0x7ae8('0x16')](_0x3ab3a9);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x915cd0,_0x8c4921,_0xdbe1a7){for(;_0xdbe1a7['length'];){const _0x457c55=_0xdbe1a7['splice'](0x0,0x64);_0x915cd0['change'](()=>{for(const _0x1d571d of _0x457c55)_0x1d571d[_0x7ae8('0x1a')]&&_0x8c4921[_0x7ae8('0x17')](_0x1d571d['id']);});}}
23
+ const _0x137e=['value','color','length','execute','from','getRanges','splice','isIntersecting','push','\x20[color\x20','next','isInContent','createPositionAt','type','isMultiRange','sort','content','join','createPositionAfter','change','end','map','createRange','isArray','createPositionBefore'];(function(_0x232405,_0x137e8e){const _0x28ffe9=function(_0x4db618){while(--_0x4db618){_0x232405['push'](_0x232405['shift']());}};_0x28ffe9(++_0x137e8e);}(_0x137e,0xf7));const _0x28ff=function(_0x232405,_0x137e8e){_0x232405=_0x232405-0x0;let _0x28ffe9=_0x137e[_0x232405];return _0x28ffe9;};export function normalizeDescription(_0x8f423c){return Array[_0x28ff('0x1')](_0x8f423c)||(_0x8f423c=[_0x8f423c]),_0x8f423c[_0x28ff('0x18')](_0x4b389b=>{const _0x12c0c0=_0x4b389b[_0x28ff('0x13')]['replace'](/\*/g,''),_0x2c68c4=_0x4b389b[_0x28ff('0x4')]?_0x28ff('0xc')+_0x4b389b['color'][_0x28ff('0x3')]+']':'';return'['+_0x4b389b['type']+']\x20'+_0x12c0c0+_0x2c68c4;})[_0x28ff('0x14')](';\x20');}export function sortSuggestions(_0x21fdd2){return _0x21fdd2[_0x28ff('0x12')]((_0xce13f2,_0x3023e9)=>'deletion'==_0xce13f2['type']&&'deletion'!=_0x3023e9[_0x28ff('0x10')]?-0x1:'deletion'!=_0xce13f2[_0x28ff('0x10')]&&'deletion'==_0x3023e9['type']?0x1:0x0);}export function getSelectedSuggestions(_0x3d1997,_0x1a31c6){const _0x4ab97e=Array[_0x28ff('0x7')](_0x3d1997[_0x28ff('0x8')]()),_0x1c8569=new Set();for(const _0x650353 of _0x1a31c6)if(_0x650353['isInContent'])for(const _0x16d03c of _0x4ab97e)for(const _0x373f12 of _0x650353[_0x28ff('0x8')]())(_0x16d03c[_0x28ff('0xa')](_0x373f12)||_0x3d1997['isCollapsed']&&!_0x650353[_0x28ff('0x11')]&&_0x650353[_0x28ff('0xd')]&&_0x373f12[_0x28ff('0x17')]['isTouching'](_0x16d03c['start']))&&_0x1c8569['add'](_0x650353);return _0x1c8569;}export function getRangesOfBlockGroups(_0x19c024,_0x3e0d7a){let _0x341cd9,_0x184e8d=0x0;const _0x58740b=[],_0x4b29fb=_0x3e0d7a['schema'];for(;_0x184e8d<_0x19c024[_0x28ff('0x5')];){const _0x22173b=_0x19c024[_0x184e8d],_0x5563e8=_0x19c024[_0x184e8d+0x1];_0x341cd9||(_0x341cd9=_0x3e0d7a[_0x28ff('0x2')](_0x22173b)),co(_0x3e0d7a,_0x22173b,_0x5563e8)||(_0x58740b[_0x28ff('0xb')](_0x3e0d7a[_0x28ff('0x0')](_0x341cd9,_0x4b29fb['isObject'](_0x22173b)?_0x3e0d7a['createPositionAfter'](_0x22173b):_0x3e0d7a[_0x28ff('0xf')](_0x22173b,'end'))),_0x341cd9=null),_0x184e8d++;}return _0x58740b;}function co(_0x3080a3,_0x33525e,_0x4e7827){if(!_0x4e7827)return!0x1;const _0xb266a4=_0x3080a3[_0x28ff('0x15')](_0x33525e),_0x36559a=_0x3080a3[_0x28ff('0x2')](_0x4e7827);return _0xb266a4['isTouching'](_0x36559a);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x477a3a,_0x5dd2ac,_0x4108c6){for(;_0x4108c6[_0x28ff('0x5')];){const _0x1af9aa=_0x4108c6[_0x28ff('0x9')](0x0,0x64);_0x477a3a[_0x28ff('0x16')](()=>{for(const _0x36fbce of _0x1af9aa)_0x36fbce[_0x28ff('0xe')]&&_0x5dd2ac[_0x28ff('0x6')](_0x36fbce['id']);});}}