@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240131.0 → 0.0.0-nightly-20240202.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 (69) hide show
  1. package/build/track-changes.js +1 -1
  2. package/build/translations/ro.js +1 -1
  3. package/lang/translations/ro.po +1 -1
  4. package/package.json +3 -3
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.js +1 -1
  7. package/src/commands/executeonallsuggestionscommand.js +1 -1
  8. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  9. package/src/commands/trackchangescommand.js +1 -1
  10. package/src/integrations/aiassistant.js +1 -1
  11. package/src/integrations/alignment.js +1 -1
  12. package/src/integrations/basicstyles.js +1 -1
  13. package/src/integrations/blockquote.js +1 -1
  14. package/src/integrations/casechange.js +1 -1
  15. package/src/integrations/ckbox.js +1 -1
  16. package/src/integrations/codeblock.js +1 -1
  17. package/src/integrations/comments.js +1 -1
  18. package/src/integrations/deletecommand.js +1 -1
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/imagestyle.js +1 -1
  30. package/src/integrations/importword.js +1 -1
  31. package/src/integrations/indent.js +1 -1
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/legacylist.js +1 -1
  34. package/src/integrations/legacylistproperties.js +1 -1
  35. package/src/integrations/link.js +1 -1
  36. package/src/integrations/list.js +1 -1
  37. package/src/integrations/listproperties.js +1 -1
  38. package/src/integrations/mediaembed.js +1 -1
  39. package/src/integrations/mention.js +1 -1
  40. package/src/integrations/pagebreak.js +1 -1
  41. package/src/integrations/paragraph.js +1 -1
  42. package/src/integrations/removeformat.js +1 -1
  43. package/src/integrations/restrictededitingmode.js +1 -1
  44. package/src/integrations/shiftentercommand.js +1 -1
  45. package/src/integrations/standardeditingmode.js +1 -1
  46. package/src/integrations/style.js +1 -1
  47. package/src/integrations/table.js +1 -1
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.js +1 -1
  50. package/src/integrations/tablecolumnresize.js +1 -1
  51. package/src/integrations/tableheadings.js +1 -1
  52. package/src/integrations/tablemergesplit.js +1 -1
  53. package/src/integrations/tableofcontents.js +1 -1
  54. package/src/integrations/tableproperties.js +1 -1
  55. package/src/integrations/template.js +1 -1
  56. package/src/integrations/title.js +1 -1
  57. package/src/integrations/undo.js +1 -1
  58. package/src/integrations/utils.js +1 -1
  59. package/src/suggestion.js +1 -1
  60. package/src/suggestiondescriptionfactory.js +1 -1
  61. package/src/trackchanges.js +1 -1
  62. package/src/trackchangesdata.js +1 -1
  63. package/src/trackchangesediting.js +1 -1
  64. package/src/trackchangesui.js +1 -1
  65. package/src/ui/suggestioncontroller.js +1 -1
  66. package/src/ui/view/basesuggestionthreadview.js +1 -1
  67. package/src/ui/view/suggestionthreadview.js +1 -1
  68. package/src/utils/common-translations.js +1 -1
  69. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e09=['comments.maxThreadTotalWeight','getSuggestion','pluginName','commandName','arrowView','_destroyController','separator','_refreshActiveMarkers','Accept\x20all\x20suggestions','_suggestionToController','suggestion-','isOn','get','EditorAnnotations','_viewToController','trackChanges','change:previous','change:activeAnnotations','CommentView','add','editor','refreshSelectedViews','getRanges','execute','suggestionUnloaded','mainView','getAllAdjacentSuggestions','comments','lowest','comments.maxCommentCharsWhenCollapsed','getDescriptions','has','getJoined','comments.maxCommentsWhenCollapsed','type','filter','getByInnerView','previous','stopListening','addSourceCollector','discardSelectedSuggestions','focus','init','config','listenTo','_disableComments','set','TrackChangesEditing','getMarkerNames','source','head','remove','editing','_annotationViews','bind','trackChanges.disableComments','_initializeController','unbind','isMultiRange','isEnabled','_createUIButton','Discard\x20all\x20suggestions','view','CommentsUI','length','createAnnotation','_handleControllerBuffer','switchbutton','_descriptionFactory','delete','Discard\x20all\x20selected\x20suggestions','value','Accept\x20all\x20selected\x20suggestions','locale','requires','suggestionLoaded','Annotations','innerView','acceptButton','isInContent','commands','destroy','getFirstRange','createAnnotationView','actionView','toMany','_handleSuggestionControllerDelayed','plugins','from','registerAnnotation','button','suggestionChanged','acceptAllSuggestions','discardAllSuggestions','comments.editorConfig','isDirty','model','some','values','define','getMarkers','discardButton','push','descriptionParts','SuggestionThreadView','activeAnnotations','_updateController','CommentsRepository','buttonView'];(function(_0x38f5c4,_0x2e09e1){const _0x25e8ca=function(_0x304caf){while(--_0x304caf){_0x38f5c4['push'](_0x38f5c4['shift']());}};_0x25e8ca(++_0x2e09e1);}(_0x2e09,0x153));const _0x25e8=function(_0x38f5c4,_0x2e09e1){_0x38f5c4=_0x38f5c4-0x0;let _0x25e8ca=_0x2e09[_0x38f5c4];return _0x25e8ca;};import{Plugin as _0x21028f}from'ckeditor5/src/core.js';import{Collection as _0x42bfd9}from'ckeditor5/src/utils.js';import{ViewModel as _0x5a6305,SplitButtonView as _0x468002,createDropdown as _0x9f3a5a,addListToDropdown as _0x2bc9c3}from'ckeditor5/src/ui.js';import{Users as _0x155e95,getDateTimeFormatter as _0x257bbc,getAllMarkersDomElementsSorted as _0x31bd03}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1b53e1 from'./trackchangesediting.js';import _0x494ec1 from'./ui/suggestioncontroller.js';import _0x465874 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x21dd1a}from'./utils/common-translations.js';import _0x103d39 from'../theme/icons/track-changes.svg';export default class d extends _0x21028f{static get[_0x25e8('0x3e')](){return[_0x1b53e1,_0x155e95,_0x25e8('0x5f'),_0x25e8('0x40'),_0x25e8('0x1')];}static get[_0x25e8('0x63')](){return'TrackChangesUI';}constructor(_0x483548){super(_0x483548),this[_0x25e8('0x6a')]=new Map(),this[_0x25e8('0x2')]=new Map(),this[_0x25e8('0x29')]=new Map(),this[_0x25e8('0x36')]=new Map();const _0xaa357=this['editor'][_0x25e8('0x1f')];_0xaa357[_0x25e8('0x57')]('trackChanges.SuggestionThreadView',_0x465874),_0xaa357[_0x25e8('0x57')](_0x25e8('0x2b'),!0x1),this[_0x25e8('0x21')]=_0xaa357[_0x25e8('0x0')](_0x25e8('0x2b'));}[_0x25e8('0x4a')](_0x1de5d7,_0x409333){0x0===this[_0x25e8('0x36')]['size']&&setTimeout(()=>{for(const [_0x5ee9ac,_0x25bd98]of this[_0x25e8('0x36')]){const _0x2eb203=this['_suggestionToController'][_0x25e8('0x13')](_0x5ee9ac);_0x2eb203||_0x25bd98?_0x2eb203&&_0x25bd98&&this[_0x25e8('0x66')](_0x5ee9ac):this[_0x25e8('0x2c')](_0x5ee9ac);}this[_0x25e8('0x36')]['clear'](),this[_0x25e8('0x8')]['plugins'][_0x25e8('0x0')](_0x25e8('0x1'))[_0x25e8('0x9')](),this[_0x25e8('0x68')]();},0xa),this['_handleControllerBuffer']['set'](_0x1de5d7,_0x409333);}[_0x25e8('0x1e')](){const _0x303e0b=this[_0x25e8('0x8')],_0xe6fb5f=_0x303e0b[_0x25e8('0x4b')]['get'](_0x25e8('0x23')),_0x486283=_0x303e0b[_0x25e8('0x4b')][_0x25e8('0x0')](_0x25e8('0x40')),_0x3bd107=_0x303e0b['plugins'][_0x25e8('0x0')]('EditorAnnotations'),_0x174e27=_0x303e0b[_0x25e8('0x4b')]['get'](_0x25e8('0x5f'));_0x303e0b['ui']['componentFactory'][_0x25e8('0x7')](_0x25e8('0x3'),_0x1ebe18=>this[_0x25e8('0x30')](_0x1ebe18)),_0x3bd107[_0x25e8('0x1b')](()=>{const _0x31c179=[];for(const [_0x2d8777,_0x5e34e3]of Array[_0x25e8('0x4c')](this[_0x25e8('0x6a')])){const _0x6b5584=_0x2d8777[_0x25e8('0xe')](),_0x545716=[];for(const _0x5000d3 of _0x6b5584){if(!_0x5000d3[_0x25e8('0x43')])continue;if(_0x5000d3[_0x25e8('0x2e')]){_0x545716['push'](..._0x5000d3[_0x25e8('0xa')]());continue;}const _0x448475=_0x5000d3[_0x25e8('0x46')]();if(_0x545716[_0x25e8('0x34')]>0x0){const _0x6165a8=_0x545716[0x0][_0x25e8('0x14')](_0x448475);if(_0x6165a8){_0x545716[0x0]=_0x6165a8;continue;}}_0x545716['push'](_0x448475);}_0x31c179[_0x25e8('0x5a')]([_0x5e34e3[_0x25e8('0x32')],_0x545716]);}return _0x31c179;}),this['listenTo'](_0xe6fb5f,_0x25e8('0x3f'),(_0x1e4efc,_0x1f7d27)=>{this[_0x25e8('0x20')](_0x1f7d27,_0x25e8('0x4'),(_0x3e2777,_0x4d7086,_0x19fd58,_0x30702b)=>{_0x1f7d27[_0x25e8('0x43')]&&(null==_0x19fd58?(this[_0x25e8('0x5e')](_0x30702b[_0x25e8('0x26')]),this[_0x25e8('0x4a')](_0x1f7d27,!0x1)):(this[_0x25e8('0x5e')](_0x19fd58[_0x25e8('0x26')]),null==_0x30702b&&this[_0x25e8('0x4a')](_0x1f7d27,!0x0)));}),null!==_0x1f7d27[_0x25e8('0x19')]?this['_updateController'](_0x1f7d27[_0x25e8('0x26')]):this[_0x25e8('0x4a')](_0x1f7d27,!0x1);}),this[_0x25e8('0x20')](_0xe6fb5f,_0x25e8('0xc'),(_0xe9aa1,_0x2bf3db,_0x547d86)=>{this[_0x25e8('0x1a')](_0x2bf3db,_0x25e8('0x4')),this[_0x25e8('0x36')][_0x25e8('0x39')](_0x2bf3db),this[_0x25e8('0x6a')][_0x25e8('0x13')](_0x2bf3db)&&this['_destroyController'](_0x2bf3db),_0x547d86&&this[_0x25e8('0x5e')](_0x547d86['head']);}),this['listenTo'](_0xe6fb5f,_0x25e8('0x4f'),(_0x5a4afc,_0x3de91b)=>{this['_updateController'](_0x3de91b);}),this[_0x25e8('0x20')](_0x486283,_0x25e8('0x5'),()=>{this[_0x25e8('0x68')]();}),this[_0x25e8('0x20')](_0x174e27,'addComment',(_0x23215b,{threadId:_0x36b525,isFromAdapter:_0x4afe53})=>{if(_0x4afe53||!_0xe6fb5f['hasSuggestion'](_0x36b525))return;const _0x5bb851=_0xe6fb5f[_0x25e8('0x62')](_0x36b525);this['_suggestionToController'][_0x25e8('0x0')](_0x5bb851)[_0x25e8('0x32')][_0x25e8('0x1d')]();},{'priority':_0x25e8('0x10')});}[_0x25e8('0x68')](){const _0x44c91a=this[_0x25e8('0x8')][_0x25e8('0x4b')]['get'](_0x25e8('0x40')),_0x4d4afa=this[_0x25e8('0x8')][_0x25e8('0x4b')][_0x25e8('0x0')](_0x25e8('0x23')),_0x3a41f9=Array['from'](_0x44c91a[_0x25e8('0x5d')],_0x488431=>_0x488431[_0x25e8('0x41')])['filter'](_0x3da796=>this['_viewToController'][_0x25e8('0x13')](_0x3da796)),_0x2ecb88=[];for(const _0x5a63f2 of _0x3a41f9){const _0x2fed14=this['_viewToController'][_0x25e8('0x0')](_0x5a63f2)[_0x25e8('0x54')]['getAllAdjacentSuggestions']();_0x2ecb88[_0x25e8('0x5a')](..._0x2fed14['reduce']((_0x202bfd,_0x576e7c)=>[..._0x202bfd,..._0x576e7c[_0x25e8('0x24')]()],[]));}_0x4d4afa['activeMarkers']=_0x2ecb88;}[_0x25e8('0x30')](_0x2fb257){const _0x31cd77=_0x9f3a5a(_0x2fb257,_0x468002),_0x58929a=this[_0x25e8('0x8')]['commands']['get']('trackChanges'),_0x4fe014=_0x21dd1a(_0x2fb257,'Track\x20changes');_0x31cd77[_0x25e8('0x60')][_0x25e8('0x22')]({'tooltip':_0x4fe014,'label':_0x4fe014,'icon':_0x103d39}),_0x31cd77['buttonView'][_0x25e8('0x2a')](_0x25e8('0x6c'))['to'](_0x58929a,_0x25e8('0x3b')),_0x31cd77[_0x25e8('0x60')]['on'](_0x25e8('0xb'),()=>{_0x58929a['execute'](),this[_0x25e8('0x8')][_0x25e8('0x28')]['view'][_0x25e8('0x1d')]();});const _0x52c674=new _0x42bfd9(),_0x541ad4=[{'type':_0x25e8('0x37'),'model':{'withText':!0x0,'label':_0x4fe014,'commandName':_0x25e8('0x3')}},{'type':_0x25e8('0x67')},{'type':_0x25e8('0x4e'),'model':{'withText':!0x0,'label':_0x21dd1a(_0x2fb257,_0x25e8('0x69')),'commandName':_0x25e8('0x50')}},{'type':_0x25e8('0x4e'),'model':{'withText':!0x0,'label':_0x21dd1a(_0x2fb257,_0x25e8('0x3c')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x25e8('0x4e'),'model':{'withText':!0x0,'label':_0x21dd1a(_0x2fb257,_0x25e8('0x31')),'commandName':_0x25e8('0x51')}},{'type':'button','model':{'withText':!0x0,'label':_0x21dd1a(_0x2fb257,_0x25e8('0x3a')),'commandName':_0x25e8('0x1c')}}];for(const _0x39cc35 of _0x541ad4){let _0x22ee07={'type':_0x25e8('0x67')};if(_0x39cc35[_0x25e8('0x54')]){const _0x3416a8=new _0x5a6305(_0x39cc35[_0x25e8('0x54')]),_0x5ebc88=this[_0x25e8('0x8')][_0x25e8('0x44')]['get'](_0x3416a8[_0x25e8('0x64')]);_0x3416a8[_0x25e8('0x2a')](_0x25e8('0x6c'),'isEnabled')['to'](_0x5ebc88,_0x25e8('0x3b'),'isEnabled'),_0x22ee07={'type':_0x39cc35[_0x25e8('0x16')],'model':_0x3416a8};}_0x52c674[_0x25e8('0x7')](_0x22ee07);}_0x2bc9c3(_0x31cd77,_0x52c674);const _0x148d32=_0x541ad4['filter'](_0x55ce35=>null!=_0x55ce35[_0x25e8('0x54')])['map'](_0x327f7a=>this[_0x25e8('0x8')]['commands'][_0x25e8('0x0')](_0x327f7a[_0x25e8('0x54')][_0x25e8('0x64')])),_0x4f84b0=_0x31cd77[_0x25e8('0x60')];return _0x4f84b0['actionView'][_0x25e8('0x2d')](_0x25e8('0x2f')),_0x4f84b0[_0x25e8('0x65')][_0x25e8('0x2d')]('isEnabled'),_0x4f84b0[_0x25e8('0x48')][_0x25e8('0x2a')](_0x25e8('0x2f'))['to'](_0x58929a,_0x25e8('0x2f')),_0x4f84b0[_0x25e8('0x65')]['bind']('isEnabled')[_0x25e8('0x49')](_0x148d32,_0x25e8('0x2f'),(..._0x5df1b5)=>_0x5df1b5[_0x25e8('0x55')](_0x523843=>_0x523843)),_0x31cd77['on'](_0x25e8('0xb'),_0x1e13fd=>{this[_0x25e8('0x8')][_0x25e8('0xb')](_0x1e13fd[_0x25e8('0x25')][_0x25e8('0x64')]),this['editor']['editing'][_0x25e8('0x32')][_0x25e8('0x1d')]();}),_0x31cd77;}[_0x25e8('0x2c')](_0x5d6ebf){const _0x233fcc=this[_0x25e8('0x8')],_0x4616fc=_0x233fcc[_0x25e8('0x1f')],_0x1ae6c2=_0x233fcc['plugins'][_0x25e8('0x0')](_0x25e8('0x40')),_0x1cc792=_0x233fcc['plugins']['get'](_0x25e8('0x5f')),_0xe1ca5d=_0x233fcc[_0x25e8('0x4b')][_0x25e8('0x0')](_0x25e8('0x1')),_0x2fe81f=_0x233fcc['plugins'][_0x25e8('0x0')](_0x155e95)['me'],_0x2ec5a9=_0x4616fc[_0x25e8('0x0')]('trackChanges')[_0x25e8('0x5c')],{CommentsListView:_0x1e3505,CommentThreadInputView:_0x537286}=_0x233fcc['plugins']['get'](_0x25e8('0x33'));let _0x3f2396,_0x4b0f8f;this[_0x25e8('0x29')][_0x25e8('0x13')](_0x5d6ebf['id'])?(_0x4b0f8f=this[_0x25e8('0x29')]['get'](_0x5d6ebf['id']),_0x3f2396=_0x4b0f8f[_0x25e8('0xd')]):(_0x3f2396=new _0x2ec5a9(_0x233fcc['locale'],_0x5d6ebf,_0x2fe81f,{'disableComments':this[_0x25e8('0x21')],'editorConfig':_0x4616fc[_0x25e8('0x0')](_0x25e8('0x52')),'maxCommentsWhenCollapsed':_0x4616fc[_0x25e8('0x0')](_0x25e8('0x15')),'maxThreadTotalWeight':_0x4616fc[_0x25e8('0x0')](_0x25e8('0x61')),'maxCommentCharsWhenCollapsed':_0x4616fc[_0x25e8('0x0')](_0x25e8('0x11')),'formatDateTime':_0x257bbc(_0x4616fc['get'](_0x25e8('0x3d'))),'CommentView':_0x4616fc[_0x25e8('0x0')](_0x25e8('0xf'))[_0x25e8('0x6')],'CommentsListView':_0x1e3505,'CommentThreadInputView':_0x537286}),_0x3f2396[_0x25e8('0x42')]['on'](_0x25e8('0xb'),()=>{_0x233fcc[_0x25e8('0x28')][_0x25e8('0x32')][_0x25e8('0x1d')]();}),_0x3f2396[_0x25e8('0x59')]['on'](_0x25e8('0xb'),()=>{_0x233fcc[_0x25e8('0x28')][_0x25e8('0x32')][_0x25e8('0x1d')]();}),_0x4b0f8f=_0x1ae6c2[_0x25e8('0x47')](this[_0x25e8('0x8')][_0x25e8('0x3d')],_0x3f2396),_0x4b0f8f[_0x25e8('0x2a')](_0x25e8('0x53'))['to'](_0x3f2396,_0x25e8('0x53')),_0x4b0f8f[_0x25e8('0x2a')]('length')['to'](_0x3f2396),_0x4b0f8f[_0x25e8('0x2a')](_0x25e8('0x16'))['to'](_0x3f2396,_0x25e8('0x16'),_0x32fb1f=>_0x25e8('0x6b')+_0x32fb1f),this[_0x25e8('0x29')][_0x25e8('0x22')](_0x5d6ebf['id'],_0x4b0f8f));const _0x45e28d=_0x1cc792['createCommentThreadController'](_0x5d6ebf['commentThread'],_0x3f2396),_0x4bc1e5=new _0x494ec1(_0x233fcc,_0x5d6ebf,_0x3f2396,_0x45e28d),_0x509978=_0x5d6ebf[_0x25e8('0xe')]()['filter'](_0x3d700b=>_0x3d700b[_0x25e8('0x43')]);_0x3f2396['descriptionParts']=_0x233fcc[_0x25e8('0x4b')][_0x25e8('0x0')](_0x25e8('0x23'))[_0x25e8('0x38')][_0x25e8('0x12')](_0x509978),this[_0x25e8('0x6a')][_0x25e8('0x22')](_0x5d6ebf,_0x4bc1e5),this['_viewToController'][_0x25e8('0x22')](_0x3f2396,_0x4bc1e5);const _0x26c5a3=_0x1ae6c2[_0x25e8('0x35')]({'view':_0x4b0f8f,'target':()=>{const _0x9d096c=[],_0x17a36c=_0x5d6ebf[_0x25e8('0xe')]()[_0x25e8('0x17')](_0x5dc244=>_0x5dc244[_0x25e8('0x43')]);for(const _0x3b7fc2 of _0x17a36c)_0x9d096c[_0x25e8('0x5a')](..._0x3b7fc2[_0x25e8('0x58')]());return _0x31bd03(_0x233fcc[_0x25e8('0x28')],_0x9d096c);},'type':()=>_0x25e8('0x6b')+_0x4bc1e5[_0x25e8('0x32')]['type']});_0x1cc792['_bindAnnotationToEditors'](_0x3f2396,_0x26c5a3),_0x1ae6c2[_0x25e8('0x7')](_0x26c5a3),_0xe1ca5d[_0x25e8('0x4d')](_0x26c5a3);}[_0x25e8('0x66')](_0x289d55){const _0x5d7ed6=this['editor'][_0x25e8('0x4b')][_0x25e8('0x0')](_0x25e8('0x5f')),_0x5f14d6=this['editor']['plugins']['get']('Annotations'),_0x119063=this[_0x25e8('0x6a')]['get'](_0x289d55),_0x540b03=_0x119063[_0x25e8('0x32')],_0x201c8a=_0x5f14d6[_0x25e8('0x18')](_0x540b03);_0x5d7ed6['_unbindEditors'](_0x540b03),_0x201c8a&&_0x5f14d6[_0x25e8('0x27')](_0x201c8a),this[_0x25e8('0x6a')][_0x25e8('0x39')](_0x289d55),this['_viewToController'][_0x25e8('0x39')](_0x540b03),_0x119063[_0x25e8('0x45')]();}[_0x25e8('0x5e')](_0x39adb3){if(!_0x39adb3[_0x25e8('0x43')]||!this[_0x25e8('0x6a')][_0x25e8('0x13')](_0x39adb3))return;const _0x1da8ca=this['editor']['plugins']['get'](_0x25e8('0x23')),_0x4cc16a=this['_suggestionToController'][_0x25e8('0x0')](_0x39adb3),_0x125f6c=_0x39adb3[_0x25e8('0xe')]();_0x4cc16a[_0x25e8('0x32')][_0x25e8('0x5b')]=_0x1da8ca[_0x25e8('0x38')][_0x25e8('0x12')](_0x125f6c);}[_0x25e8('0x45')](){for(const _0x5c8917 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c8917);for(const _0x3b15ca of this[_0x25e8('0x29')][_0x25e8('0x56')]())_0x3b15ca['mainView'][_0x25e8('0x45')]();super['destroy']();}}
23
+ const _0x4604=['add','isDirty','addSourceCollector','_createUIButton','get','filter','_refreshActiveMarkers','head','comments','_initializeController','activeAnnotations','requires','previous','destroy','trackChanges.disableComments','comments.maxCommentCharsWhenCollapsed','suggestionChanged','isInContent','unbind','CommentsUI','execute','_disableComments','toMany','comments.maxCommentsWhenCollapsed','separator','Discard\x20all\x20selected\x20suggestions','_handleSuggestionControllerDelayed','hasSuggestion','pluginName','clear','source','focus','Annotations','acceptSelectedSuggestions','SuggestionThreadView','some','Discard\x20all\x20suggestions','commands','_destroyController','plugins','config','createAnnotation','editor','change:activeAnnotations','suggestionLoaded','_suggestionToController','trackChanges','value','keys','_annotationViews','init','TrackChangesEditing','delete','editing','getMarkers','_descriptionFactory','acceptButton','CommentsRepository','isMultiRange','change:previous','length','_viewToController','type','_handleControllerBuffer','switchbutton','map','CommentView','Accept\x20all\x20selected\x20suggestions','Track\x20changes','_bindAnnotationToEditors','from','locale','acceptAllSuggestions','lowest','commentThread','buttonView','push','set','descriptionParts','define','_updateController','button','EditorAnnotations','getFirstRange','suggestion-','Accept\x20all\x20suggestions','view','has','suggestionUnloaded','isEnabled','createCommentThreadController','getAllAdjacentSuggestions','comments.editorConfig','actionView','TrackChangesUI','activeMarkers','refreshSelectedViews','innerView','getSuggestion','commandName','comments.maxThreadTotalWeight','discardButton','addComment','bind','discardSelectedSuggestions','arrowView','createAnnotationView','listenTo','mainView','model'];(function(_0x4ecf7f,_0x460431){const _0xc614f8=function(_0x4a02a6){while(--_0x4a02a6){_0x4ecf7f['push'](_0x4ecf7f['shift']());}};_0xc614f8(++_0x460431);}(_0x4604,0x1af));const _0xc614=function(_0x4ecf7f,_0x460431){_0x4ecf7f=_0x4ecf7f-0x0;let _0xc614f8=_0x4604[_0x4ecf7f];return _0xc614f8;};import{Plugin as _0x52c656}from'ckeditor5/src/core.js';import{Collection as _0x1f0fc3}from'ckeditor5/src/utils.js';import{ViewModel as _0x1993ca,SplitButtonView as _0x486b07,createDropdown as _0x357a41,addListToDropdown as _0x5e1d4c}from'ckeditor5/src/ui.js';import{Users as _0x6c70ff,getDateTimeFormatter as _0x5bcc9d,getAllMarkersDomElementsSorted as _0x31d6c4}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4305af from'./trackchangesediting.js';import _0x1bf33a from'./ui/suggestioncontroller.js';import _0x573b6a from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x5f4257}from'./utils/common-translations.js';import _0x3790fb from'../theme/icons/track-changes.svg';export default class d extends _0x52c656{static get[_0xc614('0x14')](){return[_0x4305af,_0x6c70ff,_0xc614('0x42'),_0xc614('0x29'),_0xc614('0x5b')];}static get[_0xc614('0x25')](){return _0xc614('0x67');}constructor(_0x17cd31){super(_0x17cd31),this[_0xc614('0x36')]=new Map(),this['_viewToController']=new Map(),this[_0xc614('0x3a')]=new Map(),this[_0xc614('0x48')]=new Map();const _0xec8d39=this['editor'][_0xc614('0x31')];_0xec8d39[_0xc614('0x58')]('trackChanges.SuggestionThreadView',_0x573b6a),_0xec8d39[_0xc614('0x58')](_0xc614('0x17'),!0x1),this[_0xc614('0x1e')]=_0xec8d39['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x267b03,_0x2e9b64){0x0===this[_0xc614('0x48')]['size']&&setTimeout(()=>{for(const [_0x4fb9da,_0x54a5a3]of this[_0xc614('0x48')]){const _0xe7b768=this[_0xc614('0x36')]['has'](_0x4fb9da);_0xe7b768||_0x54a5a3?_0xe7b768&&_0x54a5a3&&this[_0xc614('0x2f')](_0x4fb9da):this[_0xc614('0x12')](_0x4fb9da);}this['_handleControllerBuffer'][_0xc614('0x26')](),this['editor'][_0xc614('0x30')][_0xc614('0xd')]('EditorAnnotations')[_0xc614('0x69')](),this[_0xc614('0xf')]();},0xa),this[_0xc614('0x48')]['set'](_0x267b03,_0x2e9b64);}[_0xc614('0x3b')](){const _0x41e501=this[_0xc614('0x33')],_0x551813=_0x41e501[_0xc614('0x30')][_0xc614('0xd')](_0xc614('0x3c')),_0x184c1c=_0x41e501[_0xc614('0x30')][_0xc614('0xd')]('Annotations'),_0x38b149=_0x41e501[_0xc614('0x30')][_0xc614('0xd')](_0xc614('0x5b')),_0x32b87c=_0x41e501[_0xc614('0x30')][_0xc614('0xd')]('CommentsRepository');_0x41e501['ui']['componentFactory']['add'](_0xc614('0x37'),_0x3cf0ea=>this[_0xc614('0xc')](_0x3cf0ea)),_0x38b149[_0xc614('0xb')](()=>{const _0x4b11d3=[];for(const [_0x1bd6e7,_0x311f68]of Array[_0xc614('0x4f')](this['_suggestionToController'])){const _0x14dea4=_0x1bd6e7[_0xc614('0x64')](),_0x35b440=[];for(const _0x153820 of _0x14dea4){if(!_0x153820[_0xc614('0x1a')])continue;if(_0x153820[_0xc614('0x43')]){_0x35b440['push'](..._0x153820['getRanges']());continue;}const _0x5d10b4=_0x153820[_0xc614('0x5c')]();if(_0x35b440['length']>0x0){const _0x138798=_0x35b440[0x0]['getJoined'](_0x5d10b4);if(_0x138798){_0x35b440[0x0]=_0x138798;continue;}}_0x35b440['push'](_0x5d10b4);}_0x4b11d3[_0xc614('0x55')]([_0x311f68[_0xc614('0x5f')],_0x35b440]);}return _0x4b11d3;}),this[_0xc614('0x6')](_0x551813,_0xc614('0x35'),(_0x48a6fc,_0x3711dd)=>{this[_0xc614('0x6')](_0x3711dd,'change:previous',(_0x1eeb17,_0x28d30c,_0xc2efe1,_0x202f33)=>{_0x3711dd[_0xc614('0x1a')]&&(null==_0xc2efe1?(this[_0xc614('0x59')](_0x202f33['head']),this[_0xc614('0x23')](_0x3711dd,!0x1)):(this['_updateController'](_0xc2efe1['head']),null==_0x202f33&&this[_0xc614('0x23')](_0x3711dd,!0x0)));}),null!==_0x3711dd[_0xc614('0x15')]?this[_0xc614('0x59')](_0x3711dd[_0xc614('0x10')]):this['_handleSuggestionControllerDelayed'](_0x3711dd,!0x1);}),this['listenTo'](_0x551813,_0xc614('0x61'),(_0x3154b8,_0xeb1886,_0x39f276)=>{this['stopListening'](_0xeb1886,_0xc614('0x44')),this[_0xc614('0x48')][_0xc614('0x3d')](_0xeb1886),this[_0xc614('0x36')][_0xc614('0x60')](_0xeb1886)&&this[_0xc614('0x2f')](_0xeb1886),_0x39f276&&this[_0xc614('0x59')](_0x39f276[_0xc614('0x10')]);}),this[_0xc614('0x6')](_0x551813,_0xc614('0x19'),(_0x5d96e1,_0x38fa8e)=>{this['_updateController'](_0x38fa8e);}),this[_0xc614('0x6')](_0x184c1c,_0xc614('0x34'),()=>{this[_0xc614('0xf')]();}),this[_0xc614('0x6')](_0x32b87c,_0xc614('0x1'),(_0x5b63f8,{threadId:_0x5d9d01,isFromAdapter:_0x131957})=>{if(_0x131957||!_0x551813[_0xc614('0x24')](_0x5d9d01))return;const _0x490046=_0x551813[_0xc614('0x6b')](_0x5d9d01);this['_suggestionToController'][_0xc614('0xd')](_0x490046)[_0xc614('0x5f')][_0xc614('0x28')]();},{'priority':_0xc614('0x52')});}['_refreshActiveMarkers'](){const _0x157c63=this['editor'][_0xc614('0x30')][_0xc614('0xd')](_0xc614('0x29')),_0x348ce7=this[_0xc614('0x33')][_0xc614('0x30')]['get'](_0xc614('0x3c')),_0x23bf9a=Array['from'](_0x157c63[_0xc614('0x13')],_0xd83da1=>_0xd83da1[_0xc614('0x6a')])['filter'](_0x19851b=>this[_0xc614('0x46')][_0xc614('0x60')](_0x19851b)),_0x2f6bf1=[];for(const _0x952db of _0x23bf9a){const _0x49d20e=this[_0xc614('0x46')]['get'](_0x952db)[_0xc614('0x8')][_0xc614('0x64')]();_0x2f6bf1['push'](..._0x49d20e['reduce']((_0x3296ff,_0x163d5e)=>[..._0x3296ff,..._0x163d5e['getMarkerNames']()],[]));}_0x348ce7[_0xc614('0x68')]=_0x2f6bf1;}[_0xc614('0xc')](_0x293919){const _0x499f5e=_0x357a41(_0x293919,_0x486b07),_0x55f6b0=this['editor'][_0xc614('0x2e')][_0xc614('0xd')](_0xc614('0x37')),_0x3c4b87=_0x5f4257(_0x293919,_0xc614('0x4d'));_0x499f5e[_0xc614('0x54')]['set']({'tooltip':_0x3c4b87,'label':_0x3c4b87,'icon':_0x3790fb}),_0x499f5e['buttonView']['bind']('isOn')['to'](_0x55f6b0,_0xc614('0x38')),_0x499f5e[_0xc614('0x54')]['on'](_0xc614('0x1d'),()=>{_0x55f6b0['execute'](),this[_0xc614('0x33')][_0xc614('0x3e')][_0xc614('0x5f')]['focus']();});const _0x15088a=new _0x1f0fc3(),_0x4c094f=[{'type':_0xc614('0x49'),'model':{'withText':!0x0,'label':_0x3c4b87,'commandName':_0xc614('0x37')}},{'type':'separator'},{'type':_0xc614('0x5a'),'model':{'withText':!0x0,'label':_0x5f4257(_0x293919,_0xc614('0x5e')),'commandName':_0xc614('0x51')}},{'type':_0xc614('0x5a'),'model':{'withText':!0x0,'label':_0x5f4257(_0x293919,_0xc614('0x4c')),'commandName':_0xc614('0x2a')}},{'type':_0xc614('0x5a'),'model':{'withText':!0x0,'label':_0x5f4257(_0x293919,_0xc614('0x2d')),'commandName':'discardAllSuggestions'}},{'type':_0xc614('0x5a'),'model':{'withText':!0x0,'label':_0x5f4257(_0x293919,_0xc614('0x22')),'commandName':_0xc614('0x3')}}];for(const _0x51c8d3 of _0x4c094f){let _0x1a9f15={'type':_0xc614('0x21')};if(_0x51c8d3['model']){const _0x2ffc7b=new _0x1993ca(_0x51c8d3[_0xc614('0x8')]),_0x46c4b0=this[_0xc614('0x33')][_0xc614('0x2e')]['get'](_0x2ffc7b[_0xc614('0x6c')]);_0x2ffc7b[_0xc614('0x2')]('isOn',_0xc614('0x62'))['to'](_0x46c4b0,_0xc614('0x38'),'isEnabled'),_0x1a9f15={'type':_0x51c8d3['type'],'model':_0x2ffc7b};}_0x15088a[_0xc614('0x9')](_0x1a9f15);}_0x5e1d4c(_0x499f5e,_0x15088a);const _0x2a16e8=_0x4c094f[_0xc614('0xe')](_0x429e02=>null!=_0x429e02['model'])[_0xc614('0x4a')](_0x1709ee=>this[_0xc614('0x33')][_0xc614('0x2e')][_0xc614('0xd')](_0x1709ee['model'][_0xc614('0x6c')])),_0x366a1a=_0x499f5e[_0xc614('0x54')];return _0x366a1a['actionView']['unbind']('isEnabled'),_0x366a1a[_0xc614('0x4')][_0xc614('0x1b')](_0xc614('0x62')),_0x366a1a[_0xc614('0x66')]['bind'](_0xc614('0x62'))['to'](_0x55f6b0,_0xc614('0x62')),_0x366a1a['arrowView'][_0xc614('0x2')](_0xc614('0x62'))[_0xc614('0x1f')](_0x2a16e8,_0xc614('0x62'),(..._0x576773)=>_0x576773[_0xc614('0x2c')](_0x215212=>_0x215212)),_0x499f5e['on'](_0xc614('0x1d'),_0x3435d2=>{this[_0xc614('0x33')]['execute'](_0x3435d2[_0xc614('0x27')][_0xc614('0x6c')]),this[_0xc614('0x33')][_0xc614('0x3e')][_0xc614('0x5f')]['focus']();}),_0x499f5e;}['_initializeController'](_0x4a998d){const _0x9ff8f8=this[_0xc614('0x33')],_0x2fb499=_0x9ff8f8[_0xc614('0x31')],_0x46f766=_0x9ff8f8['plugins'][_0xc614('0xd')](_0xc614('0x29')),_0x1c27be=_0x9ff8f8[_0xc614('0x30')][_0xc614('0xd')]('CommentsRepository'),_0x38f42a=_0x9ff8f8[_0xc614('0x30')][_0xc614('0xd')](_0xc614('0x5b')),_0x510fc4=_0x9ff8f8['plugins'][_0xc614('0xd')](_0x6c70ff)['me'],_0x22e12a=_0x2fb499[_0xc614('0xd')]('trackChanges')[_0xc614('0x2b')],{CommentsListView:_0xe20832,CommentThreadInputView:_0x32b630}=_0x9ff8f8[_0xc614('0x30')][_0xc614('0xd')](_0xc614('0x1c'));let _0x3ecc86,_0x2e837b;this[_0xc614('0x3a')][_0xc614('0x60')](_0x4a998d['id'])?(_0x2e837b=this[_0xc614('0x3a')][_0xc614('0xd')](_0x4a998d['id']),_0x3ecc86=_0x2e837b[_0xc614('0x7')]):(_0x3ecc86=new _0x22e12a(_0x9ff8f8['locale'],_0x4a998d,_0x510fc4,{'disableComments':this[_0xc614('0x1e')],'editorConfig':_0x2fb499[_0xc614('0xd')](_0xc614('0x65')),'maxCommentsWhenCollapsed':_0x2fb499[_0xc614('0xd')](_0xc614('0x20')),'maxThreadTotalWeight':_0x2fb499[_0xc614('0xd')](_0xc614('0x6d')),'maxCommentCharsWhenCollapsed':_0x2fb499[_0xc614('0xd')](_0xc614('0x18')),'formatDateTime':_0x5bcc9d(_0x2fb499[_0xc614('0xd')](_0xc614('0x50'))),'CommentView':_0x2fb499[_0xc614('0xd')](_0xc614('0x11'))[_0xc614('0x4b')],'CommentsListView':_0xe20832,'CommentThreadInputView':_0x32b630}),_0x3ecc86[_0xc614('0x41')]['on'](_0xc614('0x1d'),()=>{_0x9ff8f8[_0xc614('0x3e')][_0xc614('0x5f')][_0xc614('0x28')]();}),_0x3ecc86[_0xc614('0x0')]['on']('execute',()=>{_0x9ff8f8[_0xc614('0x3e')][_0xc614('0x5f')][_0xc614('0x28')]();}),_0x2e837b=_0x46f766[_0xc614('0x5')](this[_0xc614('0x33')]['locale'],_0x3ecc86),_0x2e837b['bind'](_0xc614('0xa'))['to'](_0x3ecc86,_0xc614('0xa')),_0x2e837b[_0xc614('0x2')](_0xc614('0x45'))['to'](_0x3ecc86),_0x2e837b[_0xc614('0x2')](_0xc614('0x47'))['to'](_0x3ecc86,'type',_0xee76fa=>_0xc614('0x5d')+_0xee76fa),this[_0xc614('0x3a')][_0xc614('0x56')](_0x4a998d['id'],_0x2e837b));const _0x4bee4c=_0x1c27be[_0xc614('0x63')](_0x4a998d[_0xc614('0x53')],_0x3ecc86),_0x1306fe=new _0x1bf33a(_0x9ff8f8,_0x4a998d,_0x3ecc86,_0x4bee4c),_0x1eea01=_0x4a998d[_0xc614('0x64')]()['filter'](_0x26d74d=>_0x26d74d['isInContent']);_0x3ecc86[_0xc614('0x57')]=_0x9ff8f8[_0xc614('0x30')][_0xc614('0xd')](_0xc614('0x3c'))[_0xc614('0x40')]['getDescriptions'](_0x1eea01),this[_0xc614('0x36')]['set'](_0x4a998d,_0x1306fe),this[_0xc614('0x46')][_0xc614('0x56')](_0x3ecc86,_0x1306fe);const _0x2670f0=_0x46f766[_0xc614('0x32')]({'view':_0x2e837b,'target':()=>{const _0xf9c18a=[],_0x2e47d1=_0x4a998d['getAllAdjacentSuggestions']()[_0xc614('0xe')](_0x41f3e6=>_0x41f3e6[_0xc614('0x1a')]);for(const _0x41538c of _0x2e47d1)_0xf9c18a[_0xc614('0x55')](..._0x41538c[_0xc614('0x3f')]());return _0x31d6c4(_0x9ff8f8[_0xc614('0x3e')],_0xf9c18a);},'type':()=>'suggestion-'+_0x1306fe[_0xc614('0x5f')][_0xc614('0x47')]});_0x1c27be[_0xc614('0x4e')](_0x3ecc86,_0x2670f0),_0x46f766[_0xc614('0x9')](_0x2670f0),_0x38f42a['registerAnnotation'](_0x2670f0);}[_0xc614('0x2f')](_0x2f7cbd){const _0x1387f4=this[_0xc614('0x33')][_0xc614('0x30')][_0xc614('0xd')](_0xc614('0x42')),_0x1fbe81=this[_0xc614('0x33')]['plugins']['get'](_0xc614('0x29')),_0x48f817=this[_0xc614('0x36')]['get'](_0x2f7cbd),_0x27a90e=_0x48f817['view'],_0x37ea12=_0x1fbe81['getByInnerView'](_0x27a90e);_0x1387f4['_unbindEditors'](_0x27a90e),_0x37ea12&&_0x1fbe81['remove'](_0x37ea12),this['_suggestionToController'][_0xc614('0x3d')](_0x2f7cbd),this[_0xc614('0x46')][_0xc614('0x3d')](_0x27a90e),_0x48f817[_0xc614('0x16')]();}[_0xc614('0x59')](_0x4e8010){if(!_0x4e8010[_0xc614('0x1a')]||!this[_0xc614('0x36')][_0xc614('0x60')](_0x4e8010))return;const _0x3501a7=this[_0xc614('0x33')][_0xc614('0x30')]['get']('TrackChangesEditing'),_0x1ccb6c=this[_0xc614('0x36')]['get'](_0x4e8010),_0x2dae65=_0x4e8010[_0xc614('0x64')]();_0x1ccb6c['view'][_0xc614('0x57')]=_0x3501a7[_0xc614('0x40')]['getDescriptions'](_0x2dae65);}[_0xc614('0x16')](){for(const _0x299667 of this[_0xc614('0x36')][_0xc614('0x39')]())this[_0xc614('0x2f')](_0x299667);for(const _0x21012a of this[_0xc614('0x3a')]['values']())_0x21012a[_0xc614('0x7')]['destroy']();super[_0xc614('0x16')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2820=['canAccept','canEditAt','locale','listenTo','acceptSuggestion','PendingActions','get','getRanges','_editor','PENDING_ACTION_SUGGESTION','isDirty','change:isDirty','plugins','discardSuggestion','view','_discardCommand','bind','_acceptCommand','commands','canDiscard','isEnabled','commentThreadController','_removePendingAction','model','remove','execute','destroy','_pendingAction','_setPendingAction'];(function(_0x1cc450,_0x28209f){const _0x2f763c=function(_0x2668ad){while(--_0x2668ad){_0x1cc450['push'](_0x1cc450['shift']());}};_0x2f763c(++_0x28209f);}(_0x2820,0xdc));const _0x2f76=function(_0x1cc450,_0x28209f){_0x1cc450=_0x1cc450-0x0;let _0x2f763c=_0x2820[_0x1cc450];return _0x2f763c;};import{ObservableMixin as _0x1b68f8}from'ckeditor5/src/utils.js';import{getTranslation as _0x3f298a}from'../utils/common-translations.js';export default class Xt extends _0x1b68f8(){constructor(_0x5bac03,_0x1cf959,_0x8afe86,_0x1d6c68){super(),this[_0x2f76('0x6')]=_0x1cf959,this['view']=_0x8afe86,this[_0x2f76('0x4')]=_0x1d6c68,this[_0x2f76('0x14')]=_0x5bac03,this[_0x2f76('0x0')]=_0x5bac03[_0x2f76('0x1')][_0x2f76('0x12')](_0x2f76('0x10')),this[_0x2f76('0x1b')]=_0x5bac03[_0x2f76('0x1')][_0x2f76('0x12')](_0x2f76('0x19')),this['view'][_0x2f76('0x1c')](_0x2f76('0x3'))['to'](this['_acceptCommand'],this[_0x2f76('0x1b')],(_0x4043f9,_0x397b09)=>_0x4043f9||_0x397b09),this[_0x2f76('0x1a')][_0x2f76('0x1c')](_0x2f76('0xc'))['to'](this[_0x2f76('0x0')],'isEnabled',_0x39dcd0=>_0x39dcd0&&this[_0x2f76('0x14')][_0x2f76('0x6')]['canEditAt'](_0x1cf959[_0x2f76('0x13')]())),this[_0x2f76('0x1a')][_0x2f76('0x1c')](_0x2f76('0x2'))['to'](this[_0x2f76('0x1b')],_0x2f76('0x3'),_0x12717a=>_0x12717a&&this[_0x2f76('0x14')][_0x2f76('0x6')][_0x2f76('0xd')](_0x1cf959[_0x2f76('0x13')]())),this[_0x2f76('0xa')]=null,_0x8afe86['isDirty']&&this[_0x2f76('0xb')](),this[_0x2f76('0xf')](_0x8afe86,_0x2f76('0x10'),()=>this['acceptSuggestion']()),this[_0x2f76('0xf')](_0x8afe86,_0x2f76('0x19'),()=>this[_0x2f76('0x19')]()),this[_0x2f76('0xf')](_0x8afe86,_0x2f76('0x17'),()=>{_0x8afe86[_0x2f76('0x16')]?this[_0x2f76('0xb')]():this[_0x2f76('0x5')]();});}[_0x2f76('0x10')](){this[_0x2f76('0x0')][_0x2f76('0x8')](this[_0x2f76('0x6')]['id']);}[_0x2f76('0x19')](){this[_0x2f76('0x1b')][_0x2f76('0x8')](this[_0x2f76('0x6')]['id']);}['destroy'](){this['view']['unbind'](_0x2f76('0x3')),this['view']['unbind']('canAccept'),this[_0x2f76('0x1a')]['unbind'](_0x2f76('0x2')),this['stopListening'](),this['commentThreadController'][_0x2f76('0x9')](),this['_pendingAction']&&this[_0x2f76('0x5')]();}[_0x2f76('0xb')](){const _0xaf38cf=_0x3f298a(this['_editor'][_0x2f76('0xe')],_0x2f76('0x15'));this[_0x2f76('0xa')]=this['_editor'][_0x2f76('0x18')][_0x2f76('0x12')](_0x2f76('0x11'))['add'](_0xaf38cf);}['_removePendingAction'](){null!==this[_0x2f76('0xa')]&&this[_0x2f76('0x14')]['plugins'][_0x2f76('0x12')](_0x2f76('0x11'))[_0x2f76('0x7')](this[_0x2f76('0xa')]),this['_pendingAction']=null;}}
23
+ const _0x1273=['commands','add','_pendingAction','destroy','_editor','listenTo','canAccept','plugins','model','unbind','_setPendingAction','canDiscard','acceptSuggestion','isDirty','discardSuggestion','_acceptCommand','PENDING_ACTION_SUGGESTION','view','_removePendingAction','commentThreadController','canEditAt','getRanges','_discardCommand','get','isEnabled','PendingActions','remove','execute','bind'];(function(_0x205599,_0x127374){const _0x1c6368=function(_0xc0ba4d){while(--_0xc0ba4d){_0x205599['push'](_0x205599['shift']());}};_0x1c6368(++_0x127374);}(_0x1273,0xeb));const _0x1c63=function(_0x205599,_0x127374){_0x205599=_0x205599-0x0;let _0x1c6368=_0x1273[_0x205599];return _0x1c6368;};import{ObservableMixin as _0x4de92a}from'ckeditor5/src/utils.js';import{getTranslation as _0x1fd06e}from'../utils/common-translations.js';export default class Xt extends _0x4de92a(){constructor(_0x4560e3,_0x47b889,_0x2edaa2,_0x16c807){super(),this[_0x1c63('0x5')]=_0x47b889,this[_0x1c63('0xe')]=_0x2edaa2,this['commentThreadController']=_0x16c807,this[_0x1c63('0x1')]=_0x4560e3,this[_0x1c63('0xc')]=_0x4560e3[_0x1c63('0x1a')][_0x1c63('0x14')](_0x1c63('0x9')),this['_discardCommand']=_0x4560e3[_0x1c63('0x1a')]['get']('discardSuggestion'),this[_0x1c63('0xe')]['bind']('isEnabled')['to'](this[_0x1c63('0xc')],this['_discardCommand'],(_0x311bd2,_0x3cca04)=>_0x311bd2||_0x3cca04),this[_0x1c63('0xe')][_0x1c63('0x19')](_0x1c63('0x3'))['to'](this['_acceptCommand'],_0x1c63('0x15'),_0x1d367a=>_0x1d367a&&this['_editor']['model'][_0x1c63('0x11')](_0x47b889[_0x1c63('0x12')]())),this['view'][_0x1c63('0x19')](_0x1c63('0x8'))['to'](this[_0x1c63('0x13')],_0x1c63('0x15'),_0x111476=>_0x111476&&this[_0x1c63('0x1')][_0x1c63('0x5')][_0x1c63('0x11')](_0x47b889[_0x1c63('0x12')]())),this['_pendingAction']=null,_0x2edaa2[_0x1c63('0xa')]&&this[_0x1c63('0x7')](),this[_0x1c63('0x2')](_0x2edaa2,'acceptSuggestion',()=>this[_0x1c63('0x9')]()),this[_0x1c63('0x2')](_0x2edaa2,_0x1c63('0xb'),()=>this[_0x1c63('0xb')]()),this['listenTo'](_0x2edaa2,'change:isDirty',()=>{_0x2edaa2['isDirty']?this[_0x1c63('0x7')]():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}[_0x1c63('0xb')](){this[_0x1c63('0x13')][_0x1c63('0x18')](this['model']['id']);}[_0x1c63('0x0')](){this[_0x1c63('0xe')]['unbind'](_0x1c63('0x15')),this[_0x1c63('0xe')][_0x1c63('0x6')](_0x1c63('0x3')),this[_0x1c63('0xe')]['unbind']('canDiscard'),this['stopListening'](),this[_0x1c63('0x10')]['destroy'](),this['_pendingAction']&&this[_0x1c63('0xf')]();}[_0x1c63('0x7')](){const _0x32dac4=_0x1fd06e(this[_0x1c63('0x1')]['locale'],_0x1c63('0xd'));this[_0x1c63('0x1c')]=this[_0x1c63('0x1')][_0x1c63('0x4')][_0x1c63('0x14')](_0x1c63('0x16'))[_0x1c63('0x1b')](_0x32dac4);}[_0x1c63('0xf')](){null!==this['_pendingAction']&&this[_0x1c63('0x1')]['plugins'][_0x1c63('0x14')]('PendingActions')[_0x1c63('0x17')](this[_0x1c63('0x1c')]),this['_pendingAction']=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2868=['commentsListView','locale','isDirty','commentInputView','bind','_localUser','descriptionParts','disableComments','editorConfig','element','addComment','isActive','destroy','removeComment','cancel','_createCommentViews','isReadOnly','focus','_model','hasDirtyComment','value','setData','commentThread','fire','commentThreadInputView','delegate','submit','set','CommentView','canDiscard','showInput','_config','authoredAt','assign','length'];(function(_0x1009c2,_0x286856){const _0x3fd5db=function(_0x7090bf){while(--_0x7090bf){_0x1009c2['push'](_0x1009c2['shift']());}};_0x3fd5db(++_0x286856);}(_0x2868,0xa7));const _0x3fd5=function(_0x1009c2,_0x286856){_0x1009c2=_0x1009c2-0x0;let _0x3fd5db=_0x2868[_0x1009c2];return _0x3fd5db;};import{View as _0x2f28e1}from'ckeditor5/src/ui.js';export default class es extends _0x2f28e1{constructor(_0x14d99f,_0x33b9e7,_0x45232b,_0x4b941a){super(_0x14d99f),this['commentsListView']=null,this[_0x3fd5('0x20')]=null,this['set'](_0x3fd5('0x13'),!0x1),this[_0x3fd5('0x0')](_0x3fd5('0x5'),_0x33b9e7[_0x3fd5('0x5')]),this[_0x3fd5('0xc')](_0x3fd5('0x5'))['to'](_0x33b9e7),this['set'](_0x3fd5('0xe'),[]),this['set'](_0x3fd5('0xa'),!0x1),this[_0x3fd5('0x0')]('isEnabled',!0x1),this['set']('canAccept',!0x1),this[_0x3fd5('0x0')](_0x3fd5('0x2'),!0x1),this[_0x3fd5('0x1a')]=_0x33b9e7,this[_0x3fd5('0xd')]=_0x45232b,this[_0x3fd5('0x4')]=_0x4b941a,_0x4b941a[_0x3fd5('0xf')]?this[_0x3fd5('0x0')](_0x3fd5('0x7'),0x1):this['_createCommentViews']();}[_0x3fd5('0x19')](){this[_0x3fd5('0x11')][_0x3fd5('0x19')]();}[_0x3fd5('0x14')](){this[_0x3fd5('0x8')]&&this[_0x3fd5('0x8')][_0x3fd5('0x14')](),this['commentThreadInputView']&&this[_0x3fd5('0x20')][_0x3fd5('0x14')](),super[_0x3fd5('0x14')]();}[_0x3fd5('0x17')](){const {CommentsListView:_0x107f1d}=this[_0x3fd5('0x4')];this['commentsListView']=new _0x107f1d(this[_0x3fd5('0x9')],this['_model']['commentThread'],Object[_0x3fd5('0x6')]({'CommentView':this[_0x3fd5('0x4')][_0x3fd5('0x1')]},this[_0x3fd5('0x4')])),this[_0x3fd5('0x8')]['delegate'](_0x3fd5('0x15'))['to'](this),this[_0x3fd5('0x8')][_0x3fd5('0x21')]('updateComment')['to'](this),this['commentsListView'][_0x3fd5('0xc')](_0x3fd5('0x13'))['to'](this),this[_0x3fd5('0x0')](_0x3fd5('0x7'),this[_0x3fd5('0x8')][_0x3fd5('0x7')]+0x1),this['bind'](_0x3fd5('0x7'))['to'](this[_0x3fd5('0x8')],_0x3fd5('0x7'),_0x382eaf=>_0x382eaf+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on'](_0x3fd5('0x15'),()=>this[_0x3fd5('0x19')]()),this['bind'](_0x3fd5('0xa'))['to'](this[_0x3fd5('0x8')],_0x3fd5('0x1b'),this['commentThreadInputView']['commentInputView'],_0x3fd5('0x1c'),(_0x5af4ba,_0xc7b322)=>_0x5af4ba||!!_0xc7b322);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28a753}=this[_0x3fd5('0x4')],_0x2252e2=new _0x28a753(this[_0x3fd5('0x9')],this[_0x3fd5('0xd')],this[_0x3fd5('0x4')][_0x3fd5('0x10')]),_0x4fd977=_0x2252e2[_0x3fd5('0xb')];return _0x2252e2[_0x3fd5('0xc')](_0x3fd5('0x3'))['to'](this,_0x3fd5('0x13'),this[_0x3fd5('0x1a')]['commentThread'],_0x3fd5('0x18'),_0x4fd977,'value',(_0x3f2067,_0x166b23,_0x3d8b09)=>!!_0x3d8b09||_0x3f2067&&!_0x166b23),_0x4fd977['on'](_0x3fd5('0x22'),(_0x2b432e,_0x16275c)=>{this[_0x3fd5('0x1f')](_0x3fd5('0x12'),_0x16275c),_0x4fd977['editor'][_0x3fd5('0x1d')]('');}),_0x4fd977['on'](_0x3fd5('0x16'),()=>this['focus']()),_0x4fd977[_0x3fd5('0xc')]('disabledSubmit')['to'](this[_0x3fd5('0x1a')][_0x3fd5('0x1e')],'isReadOnly'),_0x2252e2;}}
23
+ const _0x565d=['editor','isEnabled','bind','showInput','set','fire','isActive','setData','commentsListView','disabledSubmit','commentThreadInputView','length','commentInputView','removeComment','cancel','value','_localUser','isDirty','isReadOnly','destroy','addComment','_model','_createCommentViews','canDiscard','_createCommentThreadInputView','CommentView','focus','delegate','disableComments','hasDirtyComment','locale','editorConfig','commentThread','element','_config','authoredAt'];(function(_0x1d045f,_0x565d0a){const _0x48754c=function(_0x41c8a8){while(--_0x41c8a8){_0x1d045f['push'](_0x1d045f['shift']());}};_0x48754c(++_0x565d0a);}(_0x565d,0xdd));const _0x4875=function(_0x1d045f,_0x565d0a){_0x1d045f=_0x1d045f-0x0;let _0x48754c=_0x565d[_0x1d045f];return _0x48754c;};import{View as _0x59af8d}from'ckeditor5/src/ui.js';export default class es extends _0x59af8d{constructor(_0x3a0c8f,_0x4d05c3,_0x590367,_0x2b48c7){super(_0x3a0c8f),this['commentsListView']=null,this[_0x4875('0x5')]=null,this[_0x4875('0x23')](_0x4875('0x1'),!0x1),this['set'](_0x4875('0x1e'),_0x4d05c3[_0x4875('0x1e')]),this[_0x4875('0x21')](_0x4875('0x1e'))['to'](_0x4d05c3),this[_0x4875('0x23')]('descriptionParts',[]),this['set'](_0x4875('0xc'),!0x1),this['set'](_0x4875('0x20'),!0x1),this['set']('canAccept',!0x1),this['set'](_0x4875('0x12'),!0x1),this[_0x4875('0x10')]=_0x4d05c3,this['_localUser']=_0x590367,this[_0x4875('0x1d')]=_0x2b48c7,_0x2b48c7[_0x4875('0x17')]?this[_0x4875('0x23')]('length',0x1):this[_0x4875('0x11')]();}[_0x4875('0x15')](){this[_0x4875('0x1c')]['focus']();}['destroy'](){this['commentsListView']&&this[_0x4875('0x3')][_0x4875('0xe')](),this[_0x4875('0x5')]&&this[_0x4875('0x5')]['destroy'](),super['destroy']();}[_0x4875('0x11')](){const {CommentsListView:_0x4b6662}=this[_0x4875('0x1d')];this[_0x4875('0x3')]=new _0x4b6662(this[_0x4875('0x19')],this[_0x4875('0x10')][_0x4875('0x1b')],Object['assign']({'CommentView':this[_0x4875('0x1d')][_0x4875('0x14')]},this['_config'])),this[_0x4875('0x3')]['delegate'](_0x4875('0x8'))['to'](this),this[_0x4875('0x3')][_0x4875('0x16')]('updateComment')['to'](this),this[_0x4875('0x3')][_0x4875('0x21')](_0x4875('0x1'))['to'](this),this[_0x4875('0x23')](_0x4875('0x6'),this[_0x4875('0x3')][_0x4875('0x6')]+0x1),this['bind']('length')['to'](this[_0x4875('0x3')],_0x4875('0x6'),_0x29d590=>_0x29d590+0x1),this[_0x4875('0x5')]=this[_0x4875('0x13')](),this['on'](_0x4875('0x8'),()=>this[_0x4875('0x15')]()),this[_0x4875('0x21')](_0x4875('0xc'))['to'](this[_0x4875('0x3')],_0x4875('0x18'),this[_0x4875('0x5')]['commentInputView'],'value',(_0x29a0ab,_0x5ed8b8)=>_0x29a0ab||!!_0x5ed8b8);}[_0x4875('0x13')](){const {CommentThreadInputView:_0x2d04f1}=this[_0x4875('0x1d')],_0xf8c93f=new _0x2d04f1(this['locale'],this[_0x4875('0xb')],this[_0x4875('0x1d')][_0x4875('0x1a')]),_0x3dd78a=_0xf8c93f[_0x4875('0x7')];return _0xf8c93f['bind'](_0x4875('0x22'))['to'](this,_0x4875('0x1'),this['_model'][_0x4875('0x1b')],'isReadOnly',_0x3dd78a,_0x4875('0xa'),(_0x2b8837,_0x1ec1d3,_0x401914)=>!!_0x401914||_0x2b8837&&!_0x1ec1d3),_0x3dd78a['on']('submit',(_0x4d920b,_0x133bf3)=>{this[_0x4875('0x0')](_0x4875('0xf'),_0x133bf3),_0x3dd78a[_0x4875('0x1f')][_0x4875('0x2')]('');}),_0x3dd78a['on'](_0x4875('0x9'),()=>this[_0x4875('0x15')]()),_0x3dd78a[_0x4875('0x21')](_0x4875('0x4'))['to'](this['_model']['commentThread'],_0x4875('0xd')),_0xf8c93f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x471b=['innerText','ck-annotation__info','ck-comment__external','isExternal','getExternalSuggestionNote','bind','ck-annotation__actions','locale','importWord','attributes','\x22></span>','ck-suggestion__user','ck-suggestion__info','value','extendTemplate','render','div','ck-suggestion','commentsListView','span','getTemplate','<span\x20class=\x22ck-suggestion-type\x22>','title','map','ck-annotation__user','<p>','editorReady','descriptionParts','push','split','source','acceptButton','delegate','author','ck-suggestion__info-name','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','element','.ck-annotation__content-wrapper','join','Discard\x20suggestion','disableComments','ck-suggestion-','ck-annotation__info-name','EXTERNAL_AVATAR','ck-suggestion__main','_config','EXTERNAL_IMPORT_WORD_SUGGESTION','ck-suggestion--disabled-comments','set','time','type','name','userView','discardButton','check','@external','EXTERNAL_IMPORT_WORD_AVATAR','execute','commentThreadInputView','innerHTML','creator','commentThread','ck-suggestion--accept','Accept\x20suggestion','isActive','description','canDiscard','editorDestroyed','authoredAt','ck-comment__info-time','ck-suggestion-wrapper--active','_model','_createButton','ck-annotation','isEnabled','_descriptionElement','color','ck-annotation__content-wrapper','querySelector','ck-annotation__info-time','canAccept','ck-suggestion__actions'];(function(_0xa40f71,_0x471bfb){const _0x3c6330=function(_0xb4e7a4){while(--_0xb4e7a4){_0xa40f71['push'](_0xa40f71['shift']());}};_0x3c6330(++_0x471bfb);}(_0x471b,0x8f));const _0x3c63=function(_0xa40f71,_0x471bfb){_0xa40f71=_0xa40f71-0x0;let _0x3c6330=_0x471b[_0xa40f71];return _0x3c6330;};import{getTranslation as _0x19186c}from'../../utils/common-translations.js';import{default as _0x503be0}from'./basesuggestionthreadview.js';import{ButtonView as _0x4ac163}from'ckeditor5/src/ui.js';import{icons as _0x2a3360}from'ckeditor5/src/core.js';import{trimHtml as _0x40cf68,UserView as _0x42612e}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x503be0{constructor(_0x14ce0e,_0x30975c,_0x1e3efa,_0x3f0823){super(_0x14ce0e,_0x30975c,_0x1e3efa,_0x3f0823),this[_0x3c63('0x45')]('type',''),this[_0x3c63('0x1a')](_0x3c63('0x47'))['to'](this,_0x3c63('0x30'),_0x533fc8=>_0x533fc8&&_0x533fc8[0x0]?_0x533fc8[0x0][_0x3c63('0x47')]:''),this['bind'](_0x3c63('0x4'))['to'](this,_0x3c63('0x30'),this,_0x3c63('0x3'),(_0x51ed76,_0x31ee61)=>{let _0x575047='';for(const _0x5cb3af of _0x51ed76)_0x575047+=_0x3c63('0x2e')+ds(_0x5cb3af['content'],_0x5cb3af[_0x3c63('0xf')])+'</p>';return _0x31ee61?_0x575047:_0x40cf68(_0x575047,{'limit':0x8c});}),this[_0x3c63('0xe')]=null,this[_0x3c63('0x34')]=this[_0x3c63('0xb')](_0x19186c(_0x14ce0e,_0x3c63('0x2')),_0x2a3360[_0x3c63('0x4b')],_0x3c63('0x1'),'acceptSuggestion','sw'),this[_0x3c63('0x34')][_0x3c63('0x1a')](_0x3c63('0xd'))['to'](this,_0x3c63('0x13')),this[_0x3c63('0x4a')]=this[_0x3c63('0xb')](_0x19186c(_0x14ce0e,_0x3c63('0x3c')),_0x2a3360['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this[_0x3c63('0x4a')][_0x3c63('0x1a')](_0x3c63('0xd'))['to'](this,_0x3c63('0x5')),this['userView']=new _0x42612e(_0x14ce0e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView'][_0x3c63('0x23')]({'attributes':{'class':[_0x3c63('0x20'),_0x3c63('0x2d')]}}),this['setTemplate'](this['getTemplate']());}[_0x3c63('0x29')](){const _0x3e657a=this['bindTemplate'],_0x1e3cf1=[{'tag':_0x3c63('0x25'),'attributes':{'class':[_0x3c63('0x21'),_0x3c63('0x16')]},'children':[{'tag':_0x3c63('0x28'),'children':[{'text':this[_0x3c63('0x49')][_0x3c63('0x48')]}],'attributes':{'class':[_0x3c63('0x37'),_0x3c63('0x3f')]}},{'tag':_0x3c63('0x46'),'attributes':{'datetime':_0x3e657a['to'](_0x3c63('0x7')),'class':[_0x3c63('0x8'),_0x3c63('0x12')]},'children':[{'text':_0x3e657a['to']('authoredAt',_0x1cc39f=>this[_0x3c63('0x42')]['formatDateTime'](_0x1cc39f))}]}]},{'tag':_0x3c63('0x25'),'attributes':{'class':[_0x3c63('0x14'),_0x3c63('0x1b')]},'children':[this['acceptButton'],this[_0x3c63('0x4a')]]},{'tag':'div','attributes':{'class':[_0x3c63('0x10')]}}];this[_0x3c63('0xa')][_0x3c63('0x18')]&&_0x1e3cf1[_0x3c63('0x31')]({'tag':_0x3c63('0x25'),'attributes':{'class':[_0x3c63('0x17')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1dad84={'tag':_0x3c63('0x25'),'attributes':{'class':['ck-suggestion-wrapper',_0x3e657a['if']('isActive',_0x3c63('0x9')),_0x3e657a['to'](_0x3c63('0x47'),_0x39280b=>_0x3c63('0x3e')+_0x39280b),this['_config'][_0x3c63('0x3d')]&&_0x3c63('0x44')],'data-suggestion-id':this[_0x3c63('0xa')]['id'],'data-thread-id':this['_model'][_0x3c63('0x0')]['id'],'data-author-id':this[_0x3c63('0xa')][_0x3c63('0x36')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3c63('0x25'),'attributes':{'class':[_0x3c63('0x26'),_0x3c63('0xc')]},'children':[this[_0x3c63('0x49')],{'tag':_0x3c63('0x25'),'attributes':{'class':[_0x3c63('0x41'),'ck-annotation__main']},'children':_0x1e3cf1}]}]};return this[_0x3c63('0x27')]&&this['commentThreadInputView']&&(_0x1dad84['children']['push'](this[_0x3c63('0x27')],this[_0x3c63('0x4f')]),this[_0x3c63('0x27')][_0x3c63('0x35')](_0x3c63('0x2f'))['to'](this),this[_0x3c63('0x27')][_0x3c63('0x35')](_0x3c63('0x6'))['to'](this),this[_0x3c63('0x4f')][_0x3c63('0x35')]('editorReady')['to'](this),this[_0x3c63('0x4f')][_0x3c63('0x35')]('editorDestroyed')['to'](this)),_0x1dad84;}[_0x3c63('0x24')](){super[_0x3c63('0x24')](),this[_0x3c63('0xe')]=this[_0x3c63('0x39')][_0x3c63('0x11')](_0x3c63('0x3a')),this[_0x3c63('0xe')][_0x3c63('0x50')]=this[_0x3c63('0x4')],this['on']('change:description',(_0x5c7349,_0x47a73e,_0x2e01fb)=>{this[_0x3c63('0xe')]['innerHTML']=_0x2e01fb;});}[_0x3c63('0xb')](_0x5b7345,_0x41ec84,_0x49a4dd,_0x28e6ab,_0x9cbc4){const _0x2221b7=new _0x4ac163(this[_0x3c63('0x1c')]);return _0x2221b7[_0x3c63('0x45')]({'label':_0x5b7345,'icon':_0x41ec84,'tooltip':!0x0,'tooltipPosition':_0x9cbc4}),_0x2221b7[_0x3c63('0x23')]({'attributes':{'class':_0x49a4dd}}),_0x2221b7['on'](_0x3c63('0x4e'),()=>{this['fire'](_0x28e6ab,this[_0x3c63('0xa')]['id']);}),_0x2221b7;}[_0x3c63('0x19')](){return'importWord'===this[_0x3c63('0xa')][_0x3c63('0x1e')][_0x3c63('0x4c')][_0x3c63('0x33')]?_0x19186c(this[_0x3c63('0x1c')],_0x3c63('0x43')):_0x19186c(this[_0x3c63('0x1c')],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this[_0x3c63('0xa')][_0x3c63('0x18')]?_0x3c63('0x1d')===this[_0x3c63('0xa')][_0x3c63('0x1e')][_0x3c63('0x4c')][_0x3c63('0x33')]?_0x19186c(this['locale'],_0x3c63('0x4d'),this[_0x3c63('0xa')][_0x3c63('0x51')][_0x3c63('0x48')]):_0x19186c(this['locale'],_0x3c63('0x40'),this['_model']['creator']['name']):null;}}function ds(_0xc53cf,_0xb63128){let _0x453c5b='';return _0x453c5b+=_0xc53cf[_0x3c63('0x32')]('*')[_0x3c63('0x2c')]((_0x569498,_0x2ee193)=>_0x2ee193%0x2!=0x0?_0x3c63('0x2a')+us(_0x569498)+'</span>':us(_0x569498))[_0x3c63('0x3b')](''),_0xb63128&&(_0x453c5b+=_0x3c63('0x38')+_0xb63128[_0x3c63('0x22')]+'\x22\x20title=\x22'+_0xb63128[_0x3c63('0x2b')]+_0x3c63('0x1f')),_0x453c5b;}function us(_0x39b2bd){const _0x525a95=document['createElement']('span');return _0x525a95[_0x3c63('0x15')]=_0x39b2bd,_0x525a95[_0x3c63('0x50')];}
23
+ const _0x165d=['acceptSuggestion','source','isActive','@external','type','</p>','commentsListView','ck-suggestion-wrapper','join','innerText','canDiscard','ck-comment__info-time','children','getExternalSuggestionNote','ck-suggestion__user','ck-annotation','author','editorReady','render','\x22\x20title=\x22','set','_config','createElement','ck-comment__external','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-annotation__actions','change:description','_model','ck-suggestion--disabled-comments','map','div','Accept\x20suggestion','color','description','check','userView','ck-suggestion--accept','ck-suggestion__info-name','ck-suggestion-','push','acceptButton','importWord','ck-annotation__info','delegate','element','getUserViewNotificationText','locale','bind','.ck-annotation__content-wrapper','ck-suggestion__actions','discardSuggestion','discardButton','_createButton','getTemplate','commentThreadInputView','ck-annotation__user','ck-annotation__info-name','ck-suggestion-wrapper--active','name','commentThread','time','ck-suggestion--discard','Discard\x20suggestion','isExternal','innerHTML','setTemplate','attributes','ck-annotation__content-wrapper','EXTERNAL_IMPORT_WORD_SUGGESTION','isEnabled','ck-annotation__info-time','EXTERNAL_IMPORT_WORD_AVATAR','fire','formatDateTime','ck-annotation__main','editorDestroyed','descriptionParts','\x22></span>','value','EXTERNAL_AVATAR','span','_descriptionElement','EXTERNAL_SUGGESTION','content','creator','extendTemplate','<p>'];(function(_0xed53fb,_0x165d62){const _0xdf3356=function(_0x18c13d){while(--_0x18c13d){_0xed53fb['push'](_0xed53fb['shift']());}};_0xdf3356(++_0x165d62);}(_0x165d,0xa2));const _0xdf33=function(_0xed53fb,_0x165d62){_0xed53fb=_0xed53fb-0x0;let _0xdf3356=_0x165d[_0xed53fb];return _0xdf3356;};import{getTranslation as _0x13f2c8}from'../../utils/common-translations.js';import{default as _0x1e34aa}from'./basesuggestionthreadview.js';import{ButtonView as _0x5bec47}from'ckeditor5/src/ui.js';import{icons as _0x780ca7}from'ckeditor5/src/core.js';import{trimHtml as _0x2da700,UserView as _0xe81be9}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x1e34aa{constructor(_0x4f9a35,_0x5349bb,_0x1c44cb,_0x1662e1){super(_0x4f9a35,_0x5349bb,_0x1c44cb,_0x1662e1),this[_0xdf33('0x20')]('type',''),this[_0xdf33('0x3b')]('type')['to'](this,_0xdf33('0x1'),_0x4542c5=>_0x4542c5&&_0x4542c5[0x0]?_0x4542c5[0x0][_0xdf33('0x10')]:''),this[_0xdf33('0x3b')](_0xdf33('0x2d'))['to'](this,_0xdf33('0x1'),this,_0xdf33('0xe'),(_0x526187,_0x216c7e)=>{let _0x13db92='';for(const _0x17e0af of _0x526187)_0x13db92+=_0xdf33('0xb')+ds(_0x17e0af[_0xdf33('0x8')],_0x17e0af[_0xdf33('0x2c')])+_0xdf33('0x11');return _0x216c7e?_0x13db92:_0x2da700(_0x13db92,{'limit':0x8c});}),this[_0xdf33('0x6')]=null,this['acceptButton']=this['_createButton'](_0x13f2c8(_0x4f9a35,_0xdf33('0x2b')),_0x780ca7[_0xdf33('0x2e')],_0xdf33('0x30'),_0xdf33('0xc'),'sw'),this[_0xdf33('0x34')][_0xdf33('0x3b')](_0xdf33('0x51'))['to'](this,'canAccept'),this[_0xdf33('0x3f')]=this[_0xdf33('0x40')](_0x13f2c8(_0x4f9a35,_0xdf33('0x4a')),_0x780ca7['cancel'],_0xdf33('0x49'),_0xdf33('0x3e'),'sw'),this['discardButton'][_0xdf33('0x3b')](_0xdf33('0x51'))['to'](this,_0xdf33('0x16')),this[_0xdf33('0x2f')]=new _0xe81be9(_0x4f9a35,this['_model'][_0xdf33('0x1c')],this[_0xdf33('0x39')]()),this[_0xdf33('0x2f')][_0xdf33('0xa')]({'attributes':{'class':[_0xdf33('0x1a'),_0xdf33('0x43')]}}),this[_0xdf33('0x4d')](this['getTemplate']());}[_0xdf33('0x41')](){const _0x4ca0ee=this['bindTemplate'],_0x2dda27=[{'tag':'div','attributes':{'class':['ck-suggestion__info',_0xdf33('0x36')]},'children':[{'tag':_0xdf33('0x5'),'children':[{'text':this[_0xdf33('0x2f')]['name']}],'attributes':{'class':[_0xdf33('0x31'),_0xdf33('0x44')]}},{'tag':_0xdf33('0x48'),'attributes':{'datetime':_0x4ca0ee['to']('authoredAt'),'class':[_0xdf33('0x17'),_0xdf33('0x52')]},'children':[{'text':_0x4ca0ee['to']('authoredAt',_0x39d80d=>this[_0xdf33('0x21')][_0xdf33('0x55')](_0x39d80d))}]}]},{'tag':_0xdf33('0x2a'),'attributes':{'class':[_0xdf33('0x3d'),_0xdf33('0x25')]},'children':[this['acceptButton'],this[_0xdf33('0x3f')]]},{'tag':_0xdf33('0x2a'),'attributes':{'class':[_0xdf33('0x4f')]}}];this[_0xdf33('0x27')][_0xdf33('0x4b')]&&_0x2dda27[_0xdf33('0x33')]({'tag':_0xdf33('0x2a'),'attributes':{'class':[_0xdf33('0x23')]},'children':[{'text':this[_0xdf33('0x19')]()}]});const _0x37b107={'tag':_0xdf33('0x2a'),'attributes':{'class':[_0xdf33('0x13'),_0x4ca0ee['if'](_0xdf33('0xe'),_0xdf33('0x45')),_0x4ca0ee['to'](_0xdf33('0x10'),_0x2b23b5=>_0xdf33('0x32')+_0x2b23b5),this[_0xdf33('0x21')]['disableComments']&&_0xdf33('0x28')],'data-suggestion-id':this[_0xdf33('0x27')]['id'],'data-thread-id':this[_0xdf33('0x27')][_0xdf33('0x47')]['id'],'data-author-id':this[_0xdf33('0x27')][_0xdf33('0x1c')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion',_0xdf33('0x1b')]},'children':[this['userView'],{'tag':_0xdf33('0x2a'),'attributes':{'class':['ck-suggestion__main',_0xdf33('0x56')]},'children':_0x2dda27}]}]};return this[_0xdf33('0x12')]&&this[_0xdf33('0x42')]&&(_0x37b107[_0xdf33('0x18')][_0xdf33('0x33')](this['commentsListView'],this[_0xdf33('0x42')]),this[_0xdf33('0x12')]['delegate'](_0xdf33('0x1d'))['to'](this),this['commentsListView'][_0xdf33('0x37')](_0xdf33('0x0'))['to'](this),this[_0xdf33('0x42')]['delegate']('editorReady')['to'](this),this[_0xdf33('0x42')][_0xdf33('0x37')]('editorDestroyed')['to'](this)),_0x37b107;}[_0xdf33('0x1e')](){super['render'](),this[_0xdf33('0x6')]=this[_0xdf33('0x38')]['querySelector'](_0xdf33('0x3c')),this['_descriptionElement'][_0xdf33('0x4c')]=this[_0xdf33('0x2d')],this['on'](_0xdf33('0x26'),(_0x282fa9,_0xcfab53,_0x2d2f43)=>{this[_0xdf33('0x6')][_0xdf33('0x4c')]=_0x2d2f43;});}[_0xdf33('0x40')](_0x1fef6f,_0x4a92cb,_0x4880de,_0x673e78,_0x3b34a2){const _0x5affa5=new _0x5bec47(this[_0xdf33('0x3a')]);return _0x5affa5['set']({'label':_0x1fef6f,'icon':_0x4a92cb,'tooltip':!0x0,'tooltipPosition':_0x3b34a2}),_0x5affa5[_0xdf33('0xa')]({'attributes':{'class':_0x4880de}}),_0x5affa5['on']('execute',()=>{this[_0xdf33('0x54')](_0x673e78,this[_0xdf33('0x27')]['id']);}),_0x5affa5;}[_0xdf33('0x19')](){return _0xdf33('0x35')===this['_model'][_0xdf33('0x4e')][_0xdf33('0xf')][_0xdf33('0xd')]?_0x13f2c8(this[_0xdf33('0x3a')],_0xdf33('0x50')):_0x13f2c8(this[_0xdf33('0x3a')],_0xdf33('0x7'));}[_0xdf33('0x39')](){return this[_0xdf33('0x27')][_0xdf33('0x4b')]?_0xdf33('0x35')===this[_0xdf33('0x27')][_0xdf33('0x4e')][_0xdf33('0xf')][_0xdf33('0xd')]?_0x13f2c8(this[_0xdf33('0x3a')],_0xdf33('0x53'),this[_0xdf33('0x27')][_0xdf33('0x9')][_0xdf33('0x46')]):_0x13f2c8(this['locale'],_0xdf33('0x4'),this[_0xdf33('0x27')]['creator']['name']):null;}}function ds(_0x40e13b,_0x1106e8){let _0x40a33e='';return _0x40a33e+=_0x40e13b['split']('*')[_0xdf33('0x29')]((_0x5c5f74,_0x59d784)=>_0x59d784%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5c5f74)+'</span>':us(_0x5c5f74))[_0xdf33('0x14')](''),_0x1106e8&&(_0x40a33e+=_0xdf33('0x24')+_0x1106e8[_0xdf33('0x3')]+_0xdf33('0x1f')+_0x1106e8['title']+_0xdf33('0x2')),_0x40a33e;}function us(_0x37b537){const _0x59ba47=document[_0xdf33('0x22')]('span');return _0x59ba47[_0xdf33('0x15')]=_0x37b537,_0x59ba47[_0xdf33('0x4c')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x14de55,_0x4f54f6,_0x4f4a9f){const t=_0x14de55['t'];switch(_0x4f54f6){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',_0x4f4a9f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4f4a9f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4f4a9f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4f4a9f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4f4a9f);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',_0x4f4a9f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4f4a9f);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',_0x4f4a9f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4f4a9f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4f4a9f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4f4a9f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4f4a9f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4f4a9f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4f4a9f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4f4a9f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4f4a9f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4f4a9f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4f4a9f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4f4a9f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4f4a9f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4f4a9f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4f4a9f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4f4a9f);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'},_0x4f4a9f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4f4a9f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4f4a9f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4f4a9f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4f4a9f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4f4a9f);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'},_0x4f4a9f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4f4a9f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4f4a9f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4f4a9f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4f4a9f);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'},_0x4f4a9f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4f4a9f);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'},_0x4f4a9f);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'},_0x4f4a9f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4f4a9f);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'},_0x4f4a9f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4f4a9f);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'},_0x4f4a9f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4f4a9f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4f4a9f);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'},_0x4f4a9f);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'},_0x4f4a9f);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 _0x4f54f6;}}
23
+ export function getTranslation(_0x54450d,_0x3429df,_0x20ef44){const t=_0x54450d['t'];switch(_0x3429df){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',_0x20ef44);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x20ef44);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x20ef44);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x20ef44);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x20ef44);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',_0x20ef44);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x20ef44);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',_0x20ef44);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x20ef44);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x20ef44);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x20ef44);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x20ef44);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x20ef44);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x20ef44);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x20ef44);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x20ef44);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x20ef44);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x20ef44);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x20ef44);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x20ef44);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x20ef44);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x20ef44);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x20ef44);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'},_0x20ef44);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x20ef44);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x20ef44);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x20ef44);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x20ef44);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x20ef44);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'},_0x20ef44);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x20ef44);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x20ef44);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x20ef44);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x20ef44);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'},_0x20ef44);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x20ef44);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'},_0x20ef44);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'},_0x20ef44);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x20ef44);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'},_0x20ef44);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x20ef44);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'},_0x20ef44);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x20ef44);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x20ef44);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'},_0x20ef44);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'},_0x20ef44);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 _0x3429df;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28a5=['createPositionBefore','color','next','type','deletion','sort','end','execute','from','map','isTouching','isArray','createRange','start','replace','isMultiRange','add','content','length','isCollapsed','splice','push','isInContent','\x20[color\x20'];(function(_0x224627,_0x28a545){const _0x4c1d79=function(_0x33a032){while(--_0x33a032){_0x224627['push'](_0x224627['shift']());}};_0x4c1d79(++_0x28a545);}(_0x28a5,0xf4));const _0x4c1d=function(_0x224627,_0x28a545){_0x224627=_0x224627-0x0;let _0x4c1d79=_0x28a5[_0x224627];return _0x4c1d79;};export function normalizeDescription(_0x49d1ad){return Array[_0x4c1d('0x7')](_0x49d1ad)||(_0x49d1ad=[_0x49d1ad]),_0x49d1ad[_0x4c1d('0x5')](_0x59e9b3=>{const _0x265c7b=_0x59e9b3[_0x4c1d('0xd')][_0x4c1d('0xa')](/\*/g,''),_0x1fc4c6=_0x59e9b3[_0x4c1d('0x15')]?_0x4c1d('0x13')+_0x59e9b3[_0x4c1d('0x15')]['value']+']':'';return'['+_0x59e9b3[_0x4c1d('0x17')]+']\x20'+_0x265c7b+_0x1fc4c6;})['join'](';\x20');}export function sortSuggestions(_0x4fd024){return _0x4fd024[_0x4c1d('0x1')]((_0x3bddce,_0x43247d)=>_0x4c1d('0x0')==_0x3bddce[_0x4c1d('0x17')]&&_0x4c1d('0x0')!=_0x43247d['type']?-0x1:'deletion'!=_0x3bddce['type']&&'deletion'==_0x43247d['type']?0x1:0x0);}export function getSelectedSuggestions(_0x5a346e,_0x3e0744){const _0x2c9b70=Array[_0x4c1d('0x4')](_0x5a346e['getRanges']()),_0x40d62a=new Set();for(const _0x26d881 of _0x3e0744)if(_0x26d881[_0x4c1d('0x12')])for(const _0x34d727 of _0x2c9b70)for(const _0x42923f of _0x26d881['getRanges']())(_0x34d727['isIntersecting'](_0x42923f)||_0x5a346e[_0x4c1d('0xf')]&&!_0x26d881[_0x4c1d('0xb')]&&_0x26d881[_0x4c1d('0x16')]&&_0x42923f['end'][_0x4c1d('0x6')](_0x34d727[_0x4c1d('0x9')]))&&_0x40d62a[_0x4c1d('0xc')](_0x26d881);return _0x40d62a;}export function getRangesOfBlockGroups(_0x5d33ea,_0x2601ad){let _0x44656f,_0x3247a9=0x0;const _0x3ce3dc=[],_0x39e3c0=_0x2601ad['schema'];for(;_0x3247a9<_0x5d33ea[_0x4c1d('0xe')];){const _0x33f0ba=_0x5d33ea[_0x3247a9],_0x49cdf5=_0x5d33ea[_0x3247a9+0x1];_0x44656f||(_0x44656f=_0x2601ad[_0x4c1d('0x14')](_0x33f0ba)),co(_0x2601ad,_0x33f0ba,_0x49cdf5)||(_0x3ce3dc[_0x4c1d('0x11')](_0x2601ad[_0x4c1d('0x8')](_0x44656f,_0x39e3c0['isObject'](_0x33f0ba)?_0x2601ad['createPositionAfter'](_0x33f0ba):_0x2601ad['createPositionAt'](_0x33f0ba,_0x4c1d('0x2')))),_0x44656f=null),_0x3247a9++;}return _0x3ce3dc;}function co(_0x4e2edf,_0x3ae667,_0x489caa){if(!_0x489caa)return!0x1;const _0x363f98=_0x4e2edf['createPositionAfter'](_0x3ae667),_0x432e46=_0x4e2edf[_0x4c1d('0x14')](_0x489caa);return _0x363f98['isTouching'](_0x432e46);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x45266e,_0x10e981,_0x26e97c){for(;_0x26e97c['length'];){const _0x4b93cd=_0x26e97c[_0x4c1d('0x10')](0x0,0x64);_0x45266e['change'](()=>{for(const _0x346e98 of _0x4b93cd)_0x346e98[_0x4c1d('0x12')]&&_0x10e981[_0x4c1d('0x3')](_0x346e98['id']);});}}
23
+ const _0x15e0=['from','map','next','type','color','getRanges','isObject','isInContent','isCollapsed','isTouching','schema','splice','replace','createRange','add','length','createPositionAt','start','deletion','createPositionBefore','execute','push','createPositionAfter','isIntersecting','\x20[color\x20','end'];(function(_0x3fc419,_0x15e032){const _0x71ecb8=function(_0x1a915e){while(--_0x1a915e){_0x3fc419['push'](_0x3fc419['shift']());}};_0x71ecb8(++_0x15e032);}(_0x15e0,0x170));const _0x71ec=function(_0x3fc419,_0x15e032){_0x3fc419=_0x3fc419-0x0;let _0x71ecb8=_0x15e0[_0x3fc419];return _0x71ecb8;};export function normalizeDescription(_0x342ab7){return Array['isArray'](_0x342ab7)||(_0x342ab7=[_0x342ab7]),_0x342ab7[_0x71ec('0x17')](_0x2340e5=>{const _0x1343e1=_0x2340e5['content'][_0x71ec('0x8')](/\*/g,''),_0x2ea2b8=_0x2340e5[_0x71ec('0x0')]?_0x71ec('0x14')+_0x2340e5[_0x71ec('0x0')]['value']+']':'';return'['+_0x2340e5[_0x71ec('0x19')]+']\x20'+_0x1343e1+_0x2ea2b8;})['join'](';\x20');}export function sortSuggestions(_0x4b7dd0){return _0x4b7dd0['sort']((_0x445720,_0x482655)=>'deletion'==_0x445720[_0x71ec('0x19')]&&_0x71ec('0xe')!=_0x482655[_0x71ec('0x19')]?-0x1:'deletion'!=_0x445720[_0x71ec('0x19')]&&_0x71ec('0xe')==_0x482655[_0x71ec('0x19')]?0x1:0x0);}export function getSelectedSuggestions(_0x4e904f,_0x44a05a){const _0x30e30e=Array[_0x71ec('0x16')](_0x4e904f[_0x71ec('0x1')]()),_0x561ae4=new Set();for(const _0xb31a0 of _0x44a05a)if(_0xb31a0[_0x71ec('0x3')])for(const _0xf33f82 of _0x30e30e)for(const _0x503770 of _0xb31a0[_0x71ec('0x1')]())(_0xf33f82[_0x71ec('0x13')](_0x503770)||_0x4e904f[_0x71ec('0x4')]&&!_0xb31a0['isMultiRange']&&_0xb31a0[_0x71ec('0x18')]&&_0x503770[_0x71ec('0x15')][_0x71ec('0x5')](_0xf33f82[_0x71ec('0xd')]))&&_0x561ae4[_0x71ec('0xa')](_0xb31a0);return _0x561ae4;}export function getRangesOfBlockGroups(_0x312382,_0x33b687){let _0x44c790,_0x3ae2dc=0x0;const _0x206e9e=[],_0x5ce926=_0x33b687[_0x71ec('0x6')];for(;_0x3ae2dc<_0x312382['length'];){const _0x2cffcb=_0x312382[_0x3ae2dc],_0x4c7eb5=_0x312382[_0x3ae2dc+0x1];_0x44c790||(_0x44c790=_0x33b687[_0x71ec('0xf')](_0x2cffcb)),co(_0x33b687,_0x2cffcb,_0x4c7eb5)||(_0x206e9e[_0x71ec('0x11')](_0x33b687[_0x71ec('0x9')](_0x44c790,_0x5ce926[_0x71ec('0x2')](_0x2cffcb)?_0x33b687[_0x71ec('0x12')](_0x2cffcb):_0x33b687[_0x71ec('0xc')](_0x2cffcb,_0x71ec('0x15')))),_0x44c790=null),_0x3ae2dc++;}return _0x206e9e;}function co(_0x4ecbc7,_0x740d39,_0xd433e9){if(!_0xd433e9)return!0x1;const _0x536380=_0x4ecbc7[_0x71ec('0x12')](_0x740d39),_0x5ec07b=_0x4ecbc7['createPositionBefore'](_0xd433e9);return _0x536380[_0x71ec('0x5')](_0x5ec07b);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x394b31,_0x422934,_0x50f734){for(;_0x50f734[_0x71ec('0xb')];){const _0x30e2d9=_0x50f734[_0x71ec('0x7')](0x0,0x64);_0x394b31['change'](()=>{for(const _0x29198e of _0x30e2d9)_0x29198e[_0x71ec('0x3')]&&_0x422934[_0x71ec('0x10')](_0x29198e['id']);});}}