@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231004.0 → 0.0.0-nightly-20231006.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 (65) 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/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.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/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a55=['commentsListView','authoredAt','updateComment','isDirty','showInput','assign','disabledSubmit','addComment','_model','isActive','destroy','_config','isReadOnly','_createCommentViews','value','element','locale','_createCommentThreadInputView','isEnabled','descriptionParts','canAccept','_localUser','canDiscard','fire','commentThreadInputView','set','focus','hasDirtyComment','removeComment','editor','CommentView','editorConfig','length','bind','commentThread','setData','delegate','submit'];(function(_0x128faa,_0x4a5583){const _0x2610fa=function(_0x17f4ce){while(--_0x17f4ce){_0x128faa['push'](_0x128faa['shift']());}};_0x2610fa(++_0x4a5583);}(_0x4a55,0xb2));const _0x2610=function(_0x128faa,_0x4a5583){_0x128faa=_0x128faa-0x0;let _0x2610fa=_0x4a55[_0x128faa];return _0x2610fa;};import{View as _0xb10f13}from'ckeditor5/src/ui';export default class ii extends _0xb10f13{constructor(_0x9ad370,_0x517a90,_0x4c68bd,_0x40cc5b){super(_0x9ad370),this[_0x2610('0xc')]=null,this[_0x2610('0x24')]=null,this[_0x2610('0x25')]('isActive',!0x1),this[_0x2610('0x25')](_0x2610('0xd'),_0x517a90[_0x2610('0xd')]),this['bind'](_0x2610('0xd'))['to'](_0x517a90),this[_0x2610('0x25')](_0x2610('0x1f'),[]),this[_0x2610('0x25')](_0x2610('0xf'),!0x1),this['set'](_0x2610('0x1e'),!0x1),this[_0x2610('0x25')](_0x2610('0x20'),!0x1),this[_0x2610('0x25')](_0x2610('0x22'),!0x1),this['_model']=_0x517a90,this[_0x2610('0x21')]=_0x4c68bd,this[_0x2610('0x17')]=_0x40cc5b,_0x40cc5b['disableComments']?this[_0x2610('0x25')](_0x2610('0x6'),0x1):this[_0x2610('0x19')]();}[_0x2610('0x0')](){this[_0x2610('0x1b')][_0x2610('0x0')]();}[_0x2610('0x16')](){this['commentsListView']&&this[_0x2610('0xc')]['destroy'](),this[_0x2610('0x24')]&&this[_0x2610('0x24')]['destroy'](),super[_0x2610('0x16')]();}[_0x2610('0x19')](){const {CommentsListView:_0x5356b1}=this[_0x2610('0x17')];this[_0x2610('0xc')]=new _0x5356b1(this[_0x2610('0x1c')],this[_0x2610('0x14')][_0x2610('0x8')],Object[_0x2610('0x11')]({'CommentView':this['_config'][_0x2610('0x4')]},this[_0x2610('0x17')])),this[_0x2610('0xc')][_0x2610('0xa')](_0x2610('0x2'))['to'](this),this[_0x2610('0xc')]['delegate'](_0x2610('0xe'))['to'](this),this[_0x2610('0xc')]['bind']('isActive')['to'](this),this['set'](_0x2610('0x6'),this[_0x2610('0xc')]['length']+0x1),this[_0x2610('0x7')]('length')['to'](this['commentsListView'],_0x2610('0x6'),_0x4ecc9a=>_0x4ecc9a+0x1),this[_0x2610('0x24')]=this[_0x2610('0x1d')](),this['on']('removeComment',()=>this['focus']()),this[_0x2610('0x7')](_0x2610('0xf'))['to'](this[_0x2610('0xc')],_0x2610('0x1'),this[_0x2610('0x24')]['commentInputView'],'value',(_0x2ff1af,_0x11169a)=>_0x2ff1af||!!_0x11169a);}[_0x2610('0x1d')](){const {CommentThreadInputView:_0x150052}=this[_0x2610('0x17')],_0x3433e1=new _0x150052(this['locale'],this[_0x2610('0x21')],this['_config'][_0x2610('0x5')]),_0x5c7923=_0x3433e1['commentInputView'];return _0x3433e1[_0x2610('0x7')](_0x2610('0x10'))['to'](this,_0x2610('0x15'),this[_0x2610('0x14')]['commentThread'],_0x2610('0x18'),_0x5c7923,_0x2610('0x1a'),(_0x57575d,_0xa8efa3,_0x4ba573)=>!!_0x4ba573||_0x57575d&&!_0xa8efa3),_0x5c7923['on'](_0x2610('0xb'),(_0x1c4e90,_0x5b3128)=>{this[_0x2610('0x23')](_0x2610('0x13'),_0x5b3128),_0x5c7923[_0x2610('0x3')][_0x2610('0x9')]('');}),_0x5c7923['on']('cancel',()=>this['focus']()),_0x5c7923['bind'](_0x2610('0x12'))['to'](this[_0x2610('0x14')][_0x2610('0x8')],_0x2610('0x18')),_0x3433e1;}}
23
+ const _0x1e74=['editorConfig','removeComment','disableComments','destroy','descriptionParts','submit','canDiscard','delegate','authoredAt','focus','_createCommentThreadInputView','canAccept','commentsListView','value','disabledSubmit','updateComment','_config','set','element','commentThread','commentInputView','CommentView','isActive','length','_localUser','commentThreadInputView','_createCommentViews','locale','showInput','setData','fire','isReadOnly','_model','isDirty','bind'];(function(_0x457811,_0x1e74a9){const _0x43d516=function(_0x3bf5c4){while(--_0x3bf5c4){_0x457811['push'](_0x457811['shift']());}};_0x43d516(++_0x1e74a9);}(_0x1e74,0x188));const _0x43d5=function(_0x457811,_0x1e74a9){_0x457811=_0x457811-0x0;let _0x43d516=_0x1e74[_0x457811];return _0x43d516;};import{View as _0x1c1415}from'ckeditor5/src/ui';export default class ii extends _0x1c1415{constructor(_0x33667c,_0x1ca488,_0x324341,_0x691437){super(_0x33667c),this[_0x43d5('0x5')]=null,this['commentThreadInputView']=null,this['set'](_0x43d5('0xf'),!0x1),this[_0x43d5('0xa')](_0x43d5('0x1'),_0x1ca488[_0x43d5('0x1')]),this[_0x43d5('0x1b')](_0x43d5('0x1'))['to'](_0x1ca488),this[_0x43d5('0xa')](_0x43d5('0x20'),[]),this['set'](_0x43d5('0x1a'),!0x1),this['set']('isEnabled',!0x1),this[_0x43d5('0xa')](_0x43d5('0x4'),!0x1),this[_0x43d5('0xa')](_0x43d5('0x22'),!0x1),this[_0x43d5('0x19')]=_0x1ca488,this[_0x43d5('0x11')]=_0x324341,this[_0x43d5('0x9')]=_0x691437,_0x691437[_0x43d5('0x1e')]?this['set']('length',0x1):this[_0x43d5('0x13')]();}[_0x43d5('0x2')](){this[_0x43d5('0xb')]['focus']();}['destroy'](){this[_0x43d5('0x5')]&&this['commentsListView'][_0x43d5('0x1f')](),this['commentThreadInputView']&&this[_0x43d5('0x12')]['destroy'](),super[_0x43d5('0x1f')]();}['_createCommentViews'](){const {CommentsListView:_0x350f0a}=this[_0x43d5('0x9')];this[_0x43d5('0x5')]=new _0x350f0a(this['locale'],this[_0x43d5('0x19')][_0x43d5('0xc')],Object['assign']({'CommentView':this[_0x43d5('0x9')][_0x43d5('0xe')]},this[_0x43d5('0x9')])),this[_0x43d5('0x5')]['delegate'](_0x43d5('0x1d'))['to'](this),this[_0x43d5('0x5')][_0x43d5('0x0')](_0x43d5('0x8'))['to'](this),this[_0x43d5('0x5')][_0x43d5('0x1b')]('isActive')['to'](this),this['set'](_0x43d5('0x10'),this[_0x43d5('0x5')][_0x43d5('0x10')]+0x1),this[_0x43d5('0x1b')](_0x43d5('0x10'))['to'](this[_0x43d5('0x5')],'length',_0x1d5504=>_0x1d5504+0x1),this[_0x43d5('0x12')]=this[_0x43d5('0x3')](),this['on'](_0x43d5('0x1d'),()=>this[_0x43d5('0x2')]()),this[_0x43d5('0x1b')]('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView'][_0x43d5('0xd')],_0x43d5('0x6'),(_0x325d15,_0x2e3b26)=>_0x325d15||!!_0x2e3b26);}[_0x43d5('0x3')](){const {CommentThreadInputView:_0x33692f}=this[_0x43d5('0x9')],_0x4c01ad=new _0x33692f(this[_0x43d5('0x14')],this['_localUser'],this['_config'][_0x43d5('0x1c')]),_0x17d2f2=_0x4c01ad[_0x43d5('0xd')];return _0x4c01ad[_0x43d5('0x1b')](_0x43d5('0x15'))['to'](this,'isActive',this[_0x43d5('0x19')][_0x43d5('0xc')],_0x43d5('0x18'),_0x17d2f2,'value',(_0x1c3d65,_0x1dfa6d,_0x279fed)=>!!_0x279fed||_0x1c3d65&&!_0x1dfa6d),_0x17d2f2['on'](_0x43d5('0x21'),(_0x3fa426,_0x1ec996)=>{this[_0x43d5('0x17')]('addComment',_0x1ec996),_0x17d2f2['editor'][_0x43d5('0x16')]('');}),_0x17d2f2['on']('cancel',()=>this[_0x43d5('0x2')]()),_0x17d2f2[_0x43d5('0x1b')](_0x43d5('0x7'))['to'](this[_0x43d5('0x19')]['commentThread'],_0x43d5('0x18')),_0x4c01ad;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18a5=['EXTERNAL_SUGGESTION','push','userView','join','authoredAt','ck-annotation__actions','ck-comment__info-time','ck-annotation__info-time','ck-annotation__content-wrapper','execute','ck-suggestion__actions','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-suggestion__info','getExternalSuggestionNote','split','Discard\x20suggestion','ck-annotation__user','ck-suggestion-wrapper','ck-annotation__main','canAccept','content','ck-suggestion__user','map','fire','EXTERNAL_IMPORT_WORD_SUGGESTION','canDiscard','locale','getUserViewNotificationText','author','name','bindTemplate','ck-suggestion-','children','\x22></span>','title','time','ck-comment__external','commentThread','delegate','acceptButton','ck-annotation__info-name','discardButton','commentThreadInputView','check','element','acceptSuggestion','ck-suggestion','attributes','<span\x20class=\x22ck-suggestion-type\x22>','ck-suggestion--disabled-comments','.ck-annotation__content-wrapper','_descriptionElement','importWord','setTemplate','extendTemplate','bind','_config','div','EXTERNAL_AVATAR','</span>','isEnabled','source','innerHTML','render','set','formatDateTime','span','disableComments','type','_model','description','getTemplate','_createButton','cancel','isActive','ck-annotation','<p>','@external','editorDestroyed','color','value','discardSuggestion','innerText','descriptionParts','commentsListView','change:description','editorReady'];(function(_0x446f6e,_0x18a5b7){const _0x3794e1=function(_0x3de098){while(--_0x3de098){_0x446f6e['push'](_0x446f6e['shift']());}};_0x3794e1(++_0x18a5b7);}(_0x18a5,0x183));const _0x3794=function(_0x446f6e,_0x18a5b7){_0x446f6e=_0x446f6e-0x0;let _0x3794e1=_0x18a5[_0x446f6e];return _0x3794e1;};import{getTranslation as _0x26acf9}from'../../utils/common-translations';import{default as _0x4ff9b4}from'./basesuggestionthreadview';import{ButtonView as _0x29b375}from'ckeditor5/src/ui';import{icons as _0x3766f9}from'ckeditor5/src/core';import{trimHtml as _0x2bf4cc,UserView as _0x3a44d2}from'ckeditor5-collaboration/src/collaboration-core';export default class Ht extends _0x4ff9b4{constructor(_0xf79782,_0x96aebc,_0x5d56a3,_0x26f915){super(_0xf79782,_0x96aebc,_0x5d56a3,_0x26f915),this['set'](_0x3794('0x1d'),''),this['bind'](_0x3794('0x1d'))['to'](this,'descriptionParts',_0x447076=>_0x447076&&_0x447076[0x0]?_0x447076[0x0][_0x3794('0x1d')]:''),this[_0x3794('0x10')](_0x3794('0x1f'))['to'](this,_0x3794('0x2c'),this,_0x3794('0x23'),(_0x2f05e7,_0x16443b)=>{let _0x1d6562='';for(const _0x8e534b of _0x2f05e7)_0x1d6562+=_0x3794('0x25')+ai(_0x8e534b[_0x3794('0x44')],_0x8e534b[_0x3794('0x28')])+'</p>';return _0x16443b?_0x1d6562:_0x2bf4cc(_0x1d6562,{'limit':0x8c});}),this[_0x3794('0xc')]=null,this[_0x3794('0x0')]=this['_createButton'](_0x26acf9(_0xf79782,'Accept\x20suggestion'),_0x3766f9[_0x3794('0x4')],'ck-suggestion--accept',_0x3794('0x6'),'sw'),this['acceptButton']['bind'](_0x3794('0x15'))['to'](this,_0x3794('0x43')),this['discardButton']=this[_0x3794('0x21')](_0x26acf9(_0xf79782,_0x3794('0x3f')),_0x3766f9[_0x3794('0x22')],'ck-suggestion--discard',_0x3794('0x2a'),'sw'),this[_0x3794('0x2')][_0x3794('0x10')](_0x3794('0x15'))['to'](this,_0x3794('0x49')),this[_0x3794('0x32')]=new _0x3a44d2(_0xf79782,this[_0x3794('0x1e')]['author'],this[_0x3794('0x4b')]()),this[_0x3794('0x32')]['extendTemplate']({'attributes':{'class':[_0x3794('0x45'),_0x3794('0x40')]}}),this[_0x3794('0xe')](this[_0x3794('0x20')]());}['getTemplate'](){const _0xd0d227=this[_0x3794('0x4e')],_0x56ca92=[{'tag':_0x3794('0x12'),'attributes':{'class':[_0x3794('0x3c'),'ck-annotation__info']},'children':[{'tag':_0x3794('0x1b'),'children':[{'text':this['userView'][_0x3794('0x4d')]}],'attributes':{'class':['ck-suggestion__info-name',_0x3794('0x1')]}},{'tag':_0x3794('0x53'),'attributes':{'datetime':_0xd0d227['to'](_0x3794('0x34')),'class':[_0x3794('0x36'),_0x3794('0x37')]},'children':[{'text':_0xd0d227['to']('authoredAt',_0x2d6ec8=>this[_0x3794('0x11')][_0x3794('0x1a')](_0x2d6ec8))}]}]},{'tag':'div','attributes':{'class':[_0x3794('0x3a'),_0x3794('0x35')]},'children':[this[_0x3794('0x0')],this[_0x3794('0x2')]]},{'tag':_0x3794('0x12'),'attributes':{'class':[_0x3794('0x38')]}}];this[_0x3794('0x1e')]['isExternal']&&_0x56ca92['push']({'tag':_0x3794('0x12'),'attributes':{'class':[_0x3794('0x54')]},'children':[{'text':this[_0x3794('0x3d')]()}]});const _0x4f155f={'tag':_0x3794('0x12'),'attributes':{'class':[_0x3794('0x41'),_0xd0d227['if']('isActive','ck-suggestion-wrapper--active'),_0xd0d227['to'](_0x3794('0x1d'),_0x4f4d74=>_0x3794('0x4f')+_0x4f4d74),this['_config'][_0x3794('0x1c')]&&_0x3794('0xa')],'data-suggestion-id':this[_0x3794('0x1e')]['id'],'data-thread-id':this[_0x3794('0x1e')][_0x3794('0x55')]['id'],'data-author-id':this['_model'][_0x3794('0x4c')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3794('0x12'),'attributes':{'class':[_0x3794('0x7'),_0x3794('0x24')]},'children':[this['userView'],{'tag':_0x3794('0x12'),'attributes':{'class':['ck-suggestion__main',_0x3794('0x42')]},'children':_0x56ca92}]}]};return this[_0x3794('0x2d')]&&this[_0x3794('0x3')]&&(_0x4f155f[_0x3794('0x50')][_0x3794('0x31')](this['commentsListView'],this[_0x3794('0x3')]),this[_0x3794('0x2d')][_0x3794('0x56')](_0x3794('0x2f'))['to'](this),this[_0x3794('0x2d')][_0x3794('0x56')](_0x3794('0x27'))['to'](this),this[_0x3794('0x3')][_0x3794('0x56')]('editorReady')['to'](this),this[_0x3794('0x3')][_0x3794('0x56')](_0x3794('0x27'))['to'](this)),_0x4f155f;}['render'](){super[_0x3794('0x18')](),this[_0x3794('0xc')]=this[_0x3794('0x5')]['querySelector'](_0x3794('0xb')),this['_descriptionElement'][_0x3794('0x17')]=this[_0x3794('0x1f')],this['on'](_0x3794('0x2e'),(_0x183006,_0x7ea3ca,_0x322adf)=>{this['_descriptionElement'][_0x3794('0x17')]=_0x322adf;});}[_0x3794('0x21')](_0x13e93d,_0x466122,_0x484b64,_0x35e942,_0x2f5b42){const _0x4af197=new _0x29b375(this[_0x3794('0x4a')]);return _0x4af197[_0x3794('0x19')]({'label':_0x13e93d,'icon':_0x466122,'tooltip':!0x0,'tooltipPosition':_0x2f5b42}),_0x4af197[_0x3794('0xf')]({'attributes':{'class':_0x484b64}}),_0x4af197['on'](_0x3794('0x39'),()=>{this[_0x3794('0x47')](_0x35e942,this[_0x3794('0x1e')]['id']);}),_0x4af197;}[_0x3794('0x3d')](){return _0x3794('0xd')===this[_0x3794('0x1e')][_0x3794('0x8')][_0x3794('0x26')][_0x3794('0x16')]?_0x26acf9(this[_0x3794('0x4a')],_0x3794('0x48')):_0x26acf9(this[_0x3794('0x4a')],_0x3794('0x30'));}['getUserViewNotificationText'](){return this['_model']['isExternal']?_0x3794('0xd')===this[_0x3794('0x1e')][_0x3794('0x8')][_0x3794('0x26')]['source']?_0x26acf9(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x3794('0x1e')]['creator'][_0x3794('0x4d')]):_0x26acf9(this[_0x3794('0x4a')],_0x3794('0x13'),this[_0x3794('0x1e')]['creator'][_0x3794('0x4d')]):null;}}function ai(_0x52818f,_0x3481d5){let _0x487034='';return _0x487034+=_0x52818f[_0x3794('0x3e')]('*')[_0x3794('0x46')]((_0x1f59e,_0x49792c)=>_0x49792c%0x2!=0x0?_0x3794('0x9')+ci(_0x1f59e)+_0x3794('0x14'):ci(_0x1f59e))[_0x3794('0x33')](''),_0x3481d5&&(_0x487034+=_0x3794('0x3b')+_0x3481d5[_0x3794('0x29')]+'\x22\x20title=\x22'+_0x3481d5[_0x3794('0x52')]+_0x3794('0x51')),_0x487034;}function ci(_0x4d5792){const _0x4110fe=document['createElement'](_0x3794('0x1b'));return _0x4110fe[_0x3794('0x2b')]=_0x4d5792,_0x4110fe[_0x3794('0x17')];}
23
+ const _0x1aab=['isEnabled','ck-annotation__user','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','editorReady','fire','ck-suggestion__main','map','commentThread','ck-comment__external','EXTERNAL_AVATAR','title','importWord','getUserViewNotificationText','ck-annotation__info','description','extendTemplate','ck-suggestion__user','time','delegate','bind','\x22\x20title=\x22','descriptionParts','execute','@external','EXTERNAL_SUGGESTION','userView','getExternalSuggestionNote','_descriptionElement','_config','attributes','set','discardSuggestion','ck-comment__info-time','_model','formatDateTime','source','ck-suggestion-wrapper--active','element','acceptButton','div','getTemplate','canDiscard','check','<span\x20class=\x22ck-suggestion-type\x22>','isExternal','ck-annotation__main','creator','bindTemplate','querySelector','type','_createButton','children','authoredAt','ck-suggestion__info-name','acceptSuggestion','createElement','cancel','locale','commentsListView','push','content','</p>','ck-suggestion__actions','render','ck-suggestion--disabled-comments','Discard\x20suggestion','name','<p>','ck-suggestion','ck-suggestion__info','innerHTML','editorDestroyed','ck-annotation__info-time','innerText','span','commentThreadInputView','disableComments','ck-annotation__actions','ck-annotation','ck-suggestion-wrapper','Accept\x20suggestion','EXTERNAL_IMPORT_WORD_SUGGESTION','value','author','discardButton','isActive','setTemplate'];(function(_0x5e61c7,_0x1aab88){const _0x46132e=function(_0x5b0a2e){while(--_0x5b0a2e){_0x5e61c7['push'](_0x5e61c7['shift']());}};_0x46132e(++_0x1aab88);}(_0x1aab,0x1f0));const _0x4613=function(_0x5e61c7,_0x1aab88){_0x5e61c7=_0x5e61c7-0x0;let _0x46132e=_0x1aab[_0x5e61c7];return _0x46132e;};import{getTranslation as _0x227f1f}from'../../utils/common-translations';import{default as _0xa94c28}from'./basesuggestionthreadview';import{ButtonView as _0x4f78b8}from'ckeditor5/src/ui';import{icons as _0x2ea996}from'ckeditor5/src/core';import{trimHtml as _0x5f513d,UserView as _0xbf339a}from'ckeditor5-collaboration/src/collaboration-core';export default class Ht extends _0xa94c28{constructor(_0x5881a2,_0x26c30a,_0x311588,_0x544716){super(_0x5881a2,_0x26c30a,_0x311588,_0x544716),this[_0x4613('0x38')](_0x4613('0x4b'),''),this[_0x4613('0x2d')](_0x4613('0x4b'))['to'](this,_0x4613('0x2f'),_0x57c5c8=>_0x57c5c8&&_0x57c5c8[0x0]?_0x57c5c8[0x0][_0x4613('0x4b')]:''),this[_0x4613('0x2d')](_0x4613('0x28'))['to'](this,_0x4613('0x2f'),this,_0x4613('0x18'),(_0x324bbf,_0xabbc75)=>{let _0x4a4aa='';for(const _0x13350d of _0x324bbf)_0x4a4aa+=_0x4613('0x6')+ai(_0x13350d[_0x4613('0x56')],_0x13350d['color'])+_0x4613('0x0');return _0xabbc75?_0x4a4aa:_0x5f513d(_0x4a4aa,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this[_0x4613('0x4c')](_0x227f1f(_0x5881a2,_0x4613('0x13')),_0x2ea996[_0x4613('0x44')],'ck-suggestion--accept',_0x4613('0x50'),'sw'),this['acceptButton'][_0x4613('0x2d')](_0x4613('0x1a'))['to'](this,'canAccept'),this[_0x4613('0x17')]=this['_createButton'](_0x227f1f(_0x5881a2,_0x4613('0x4')),_0x2ea996[_0x4613('0x52')],'ck-suggestion--discard',_0x4613('0x39'),'sw'),this[_0x4613('0x17')][_0x4613('0x2d')](_0x4613('0x1a'))['to'](this,_0x4613('0x43')),this['userView']=new _0xbf339a(_0x5881a2,this[_0x4613('0x3b')][_0x4613('0x16')],this['getUserViewNotificationText']()),this[_0x4613('0x33')][_0x4613('0x29')]({'attributes':{'class':[_0x4613('0x2a'),_0x4613('0x1b')]}}),this[_0x4613('0x19')](this['getTemplate']());}[_0x4613('0x42')](){const _0x4e6acd=this[_0x4613('0x49')],_0x7d31ca=[{'tag':_0x4613('0x41'),'attributes':{'class':[_0x4613('0x8'),_0x4613('0x27')]},'children':[{'tag':_0x4613('0xd'),'children':[{'text':this[_0x4613('0x33')][_0x4613('0x5')]}],'attributes':{'class':[_0x4613('0x4f'),'ck-annotation__info-name']}},{'tag':_0x4613('0x2b'),'attributes':{'datetime':_0x4e6acd['to'](_0x4613('0x4e')),'class':[_0x4613('0x3a'),_0x4613('0xb')]},'children':[{'text':_0x4e6acd['to'](_0x4613('0x4e'),_0x3d3ef0=>this[_0x4613('0x36')][_0x4613('0x3c')](_0x3d3ef0))}]}]},{'tag':'div','attributes':{'class':[_0x4613('0x1'),_0x4613('0x10')]},'children':[this[_0x4613('0x40')],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x4613('0x3b')][_0x4613('0x46')]&&_0x7d31ca[_0x4613('0x55')]({'tag':_0x4613('0x41'),'attributes':{'class':[_0x4613('0x22')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5bf0d1={'tag':_0x4613('0x41'),'attributes':{'class':[_0x4613('0x12'),_0x4e6acd['if'](_0x4613('0x18'),_0x4613('0x3e')),_0x4e6acd['to'](_0x4613('0x4b'),_0x9c40d8=>'ck-suggestion-'+_0x9c40d8),this[_0x4613('0x36')][_0x4613('0xf')]&&_0x4613('0x3')],'data-suggestion-id':this[_0x4613('0x3b')]['id'],'data-thread-id':this[_0x4613('0x3b')][_0x4613('0x21')]['id'],'data-author-id':this['_model'][_0x4613('0x16')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4613('0x41'),'attributes':{'class':[_0x4613('0x7'),_0x4613('0x11')]},'children':[this[_0x4613('0x33')],{'tag':_0x4613('0x41'),'attributes':{'class':[_0x4613('0x1f'),_0x4613('0x47')]},'children':_0x7d31ca}]}]};return this[_0x4613('0x54')]&&this[_0x4613('0xe')]&&(_0x5bf0d1[_0x4613('0x4d')][_0x4613('0x55')](this[_0x4613('0x54')],this[_0x4613('0xe')]),this[_0x4613('0x54')][_0x4613('0x2c')](_0x4613('0x1d'))['to'](this),this[_0x4613('0x54')][_0x4613('0x2c')](_0x4613('0xa'))['to'](this),this[_0x4613('0xe')][_0x4613('0x2c')](_0x4613('0x1d'))['to'](this),this[_0x4613('0xe')][_0x4613('0x2c')](_0x4613('0xa'))['to'](this)),_0x5bf0d1;}[_0x4613('0x2')](){super['render'](),this['_descriptionElement']=this[_0x4613('0x3f')][_0x4613('0x4a')]('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this[_0x4613('0x28')],this['on']('change:description',(_0x3e93f9,_0x1fa01b,_0x2b413c)=>{this[_0x4613('0x35')][_0x4613('0x9')]=_0x2b413c;});}[_0x4613('0x4c')](_0x35ccf3,_0x251e02,_0x22abad,_0x2955a0,_0x48ae9b){const _0x38912e=new _0x4f78b8(this[_0x4613('0x53')]);return _0x38912e[_0x4613('0x38')]({'label':_0x35ccf3,'icon':_0x251e02,'tooltip':!0x0,'tooltipPosition':_0x48ae9b}),_0x38912e[_0x4613('0x29')]({'attributes':{'class':_0x22abad}}),_0x38912e['on'](_0x4613('0x30'),()=>{this[_0x4613('0x1e')](_0x2955a0,this[_0x4613('0x3b')]['id']);}),_0x38912e;}[_0x4613('0x34')](){return _0x4613('0x25')===this[_0x4613('0x3b')][_0x4613('0x37')][_0x4613('0x31')]['source']?_0x227f1f(this[_0x4613('0x53')],_0x4613('0x14')):_0x227f1f(this[_0x4613('0x53')],_0x4613('0x32'));}[_0x4613('0x26')](){return this[_0x4613('0x3b')][_0x4613('0x46')]?_0x4613('0x25')===this[_0x4613('0x3b')]['attributes'][_0x4613('0x31')][_0x4613('0x3d')]?_0x227f1f(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x4613('0x3b')][_0x4613('0x48')]['name']):_0x227f1f(this[_0x4613('0x53')],_0x4613('0x23'),this[_0x4613('0x3b')]['creator']['name']):null;}}function ai(_0x5d3a0a,_0x1f60fb){let _0x384445='';return _0x384445+=_0x5d3a0a['split']('*')[_0x4613('0x20')]((_0x1b1ce8,_0x4ec6c9)=>_0x4ec6c9%0x2!=0x0?_0x4613('0x45')+ci(_0x1b1ce8)+'</span>':ci(_0x1b1ce8))['join'](''),_0x1f60fb&&(_0x384445+=_0x4613('0x1c')+_0x1f60fb[_0x4613('0x15')]+_0x4613('0x2e')+_0x1f60fb[_0x4613('0x24')]+'\x22></span>'),_0x384445;}function ci(_0x3b8bfd){const _0x1d869e=document[_0x4613('0x51')]('span');return _0x1d869e[_0x4613('0xc')]=_0x3b8bfd,_0x1d869e[_0x4613('0x9')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5edf0b,_0x10cae3,_0x22a390){const t=_0x5edf0b['t'];switch(_0x10cae3){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',_0x22a390);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x22a390);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x22a390);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x22a390);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x22a390);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',_0x22a390);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x22a390);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\x20image\x20URL');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22a390);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x22a390);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x22a390);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x22a390);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x22a390);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x22a390);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x22a390);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x22a390);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x22a390);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x22a390);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x22a390);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x22a390);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x22a390);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x22a390);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x22a390);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'},_0x22a390);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x22a390);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x22a390);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x22a390);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x22a390);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x22a390);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'},_0x22a390);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x22a390);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x22a390);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x22a390);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x22a390);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x22a390);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x22a390);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'},_0x22a390);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x22a390);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x22a390);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'},_0x22a390);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x22a390);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'},_0x22a390);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x22a390);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x22a390);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'},_0x22a390);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'},_0x22a390);default:return _0x10cae3;}}
23
+ export function getTranslation(_0x20beb5,_0x2c81c0,_0x172a8f){const t=_0x20beb5['t'];switch(_0x2c81c0){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',_0x172a8f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x172a8f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x172a8f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x172a8f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x172a8f);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',_0x172a8f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x172a8f);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\x20image\x20URL');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x172a8f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x172a8f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x172a8f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x172a8f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x172a8f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x172a8f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x172a8f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x172a8f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x172a8f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x172a8f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x172a8f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x172a8f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x172a8f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x172a8f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x172a8f);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'},_0x172a8f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x172a8f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x172a8f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x172a8f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x172a8f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x172a8f);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'},_0x172a8f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x172a8f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x172a8f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x172a8f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x172a8f);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x172a8f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x172a8f);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'},_0x172a8f);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x172a8f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x172a8f);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'},_0x172a8f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x172a8f);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'},_0x172a8f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x172a8f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x172a8f);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'},_0x172a8f);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'},_0x172a8f);default:return _0x2c81c0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc295=['splice','isInContent','isIntersecting','add','createRange','isMultiRange','next','from','push','value','content','getRanges','createPositionBefore','color','schema','sort','change','type','isTouching','length','start','isArray','deletion','end','createPositionAt','isCollapsed'];(function(_0x1f244f,_0xc295b5){const _0x4b6743=function(_0xf2a49e){while(--_0xf2a49e){_0x1f244f['push'](_0x1f244f['shift']());}};_0x4b6743(++_0xc295b5);}(_0xc295,0xe6));const _0x4b67=function(_0x1f244f,_0xc295b5){_0x1f244f=_0x1f244f-0x0;let _0x4b6743=_0xc295[_0x1f244f];return _0x4b6743;};export function normalizeDescription(_0x42ade3){return Array[_0x4b67('0x19')](_0x42ade3)||(_0x42ade3=[_0x42ade3]),_0x42ade3['map'](_0x2d236e=>{const _0x7014d3=_0x2d236e[_0x4b67('0xe')]['replace'](/\*/g,''),_0xf879d9=_0x2d236e[_0x4b67('0x11')]?'\x20[color\x20'+_0x2d236e[_0x4b67('0x11')][_0x4b67('0xd')]+']':'';return'['+_0x2d236e[_0x4b67('0x15')]+']\x20'+_0x7014d3+_0xf879d9;})['join'](';\x20');}export function sortSuggestions(_0x4e90e6){return _0x4e90e6[_0x4b67('0x13')]((_0x38bc9a,_0x243f11)=>_0x4b67('0x0')==_0x38bc9a[_0x4b67('0x15')]&&'deletion'!=_0x243f11[_0x4b67('0x15')]?-0x1:'deletion'!=_0x38bc9a[_0x4b67('0x15')]&&_0x4b67('0x0')==_0x243f11[_0x4b67('0x15')]?0x1:0x0);}export function getSelectedSuggestions(_0x492e5f,_0x2c4aa7){const _0xf6cacb=Array[_0x4b67('0xb')](_0x492e5f[_0x4b67('0xf')]()),_0x13f9bd=new Set();for(const _0x5a5ffc of _0x2c4aa7)if(_0x5a5ffc[_0x4b67('0x5')])for(const _0x55ccc8 of _0xf6cacb)for(const _0x25bbba of _0x5a5ffc[_0x4b67('0xf')]())(_0x55ccc8[_0x4b67('0x6')](_0x25bbba)||_0x492e5f[_0x4b67('0x3')]&&!_0x5a5ffc[_0x4b67('0x9')]&&_0x5a5ffc[_0x4b67('0xa')]&&_0x25bbba[_0x4b67('0x1')][_0x4b67('0x16')](_0x55ccc8[_0x4b67('0x18')]))&&_0x13f9bd[_0x4b67('0x7')](_0x5a5ffc);return _0x13f9bd;}export function getRangesOfBlockGroups(_0x3b2a48,_0x2fd1da){let _0x4458ca,_0x4b3c67=0x0;const _0x4f3aa6=[],_0x54797f=_0x2fd1da[_0x4b67('0x12')];for(;_0x4b3c67<_0x3b2a48[_0x4b67('0x17')];){const _0x571a49=_0x3b2a48[_0x4b3c67],_0x3338d2=_0x3b2a48[_0x4b3c67+0x1];_0x4458ca||(_0x4458ca=_0x2fd1da['createPositionBefore'](_0x571a49)),fo(_0x2fd1da,_0x571a49,_0x3338d2)||(_0x4f3aa6[_0x4b67('0xc')](_0x2fd1da[_0x4b67('0x8')](_0x4458ca,_0x54797f['isObject'](_0x571a49)?_0x2fd1da['createPositionAfter'](_0x571a49):_0x2fd1da[_0x4b67('0x2')](_0x571a49,_0x4b67('0x1')))),_0x4458ca=null),_0x4b3c67++;}return _0x4f3aa6;}function fo(_0x4af973,_0x18f323,_0x15bc90){if(!_0x15bc90)return!0x1;const _0x4f105c=_0x4af973['createPositionAfter'](_0x18f323),_0x38c565=_0x4af973[_0x4b67('0x10')](_0x15bc90);return _0x4f105c[_0x4b67('0x16')](_0x38c565);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x39ca53,_0x19deff,_0x3ed3bf){for(;_0x3ed3bf['length'];){const _0x3414c7=_0x3ed3bf[_0x4b67('0x4')](0x0,0x64);_0x39ca53[_0x4b67('0x14')](()=>{for(const _0x213f28 of _0x3414c7)_0x213f28['isInContent']&&_0x19deff['execute'](_0x213f28['id']);});}}
23
+ const _0x27a5=['createRange','content','from','createPositionAt','next','isMultiRange','execute','getRanges','push','isCollapsed','color','type','join','length','deletion','isArray','isIntersecting','isObject','add','isInContent','change','map','start','end','createPositionAfter','createPositionBefore'];(function(_0x536f24,_0x27a5ad){const _0x15310a=function(_0x3af738){while(--_0x3af738){_0x536f24['push'](_0x536f24['shift']());}};_0x15310a(++_0x27a5ad);}(_0x27a5,0x1c2));const _0x1531=function(_0x536f24,_0x27a5ad){_0x536f24=_0x536f24-0x0;let _0x15310a=_0x27a5[_0x536f24];return _0x15310a;};export function normalizeDescription(_0x41bc69){return Array[_0x1531('0x7')](_0x41bc69)||(_0x41bc69=[_0x41bc69]),_0x41bc69[_0x1531('0xd')](_0x127c73=>{const _0x33971e=_0x127c73[_0x1531('0x13')]['replace'](/\*/g,''),_0x4b4846=_0x127c73[_0x1531('0x2')]?'\x20[color\x20'+_0x127c73[_0x1531('0x2')]['value']+']':'';return'['+_0x127c73['type']+']\x20'+_0x33971e+_0x4b4846;})[_0x1531('0x4')](';\x20');}export function sortSuggestions(_0x221069){return _0x221069['sort']((_0x4b4f1a,_0x59be53)=>_0x1531('0x6')==_0x4b4f1a[_0x1531('0x3')]&&_0x1531('0x6')!=_0x59be53[_0x1531('0x3')]?-0x1:'deletion'!=_0x4b4f1a['type']&&'deletion'==_0x59be53[_0x1531('0x3')]?0x1:0x0);}export function getSelectedSuggestions(_0x3392ca,_0x1f3dd1){const _0x8dcc3d=Array[_0x1531('0x14')](_0x3392ca['getRanges']()),_0xcd9e82=new Set();for(const _0xfb4689 of _0x1f3dd1)if(_0xfb4689['isInContent'])for(const _0xc674f6 of _0x8dcc3d)for(const _0x2b4e48 of _0xfb4689[_0x1531('0x19')]())(_0xc674f6[_0x1531('0x8')](_0x2b4e48)||_0x3392ca[_0x1531('0x1')]&&!_0xfb4689[_0x1531('0x17')]&&_0xfb4689[_0x1531('0x16')]&&_0x2b4e48[_0x1531('0xf')]['isTouching'](_0xc674f6[_0x1531('0xe')]))&&_0xcd9e82[_0x1531('0xa')](_0xfb4689);return _0xcd9e82;}export function getRangesOfBlockGroups(_0x5a5cf7,_0x18b441){let _0x335714,_0x60ce75=0x0;const _0xdac110=[],_0x16b5f5=_0x18b441['schema'];for(;_0x60ce75<_0x5a5cf7[_0x1531('0x5')];){const _0x14b50d=_0x5a5cf7[_0x60ce75],_0x1bd05b=_0x5a5cf7[_0x60ce75+0x1];_0x335714||(_0x335714=_0x18b441['createPositionBefore'](_0x14b50d)),fo(_0x18b441,_0x14b50d,_0x1bd05b)||(_0xdac110[_0x1531('0x0')](_0x18b441[_0x1531('0x12')](_0x335714,_0x16b5f5[_0x1531('0x9')](_0x14b50d)?_0x18b441[_0x1531('0x10')](_0x14b50d):_0x18b441[_0x1531('0x15')](_0x14b50d,_0x1531('0xf')))),_0x335714=null),_0x60ce75++;}return _0xdac110;}function fo(_0x307ed6,_0x29615f,_0x506c58){if(!_0x506c58)return!0x1;const _0x32c413=_0x307ed6['createPositionAfter'](_0x29615f),_0x11e3c0=_0x307ed6[_0x1531('0x11')](_0x506c58);return _0x32c413['isTouching'](_0x11e3c0);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x358c6b,_0xdd7abb,_0x39e3c6){for(;_0x39e3c6[_0x1531('0x5')];){const _0x48de69=_0x39e3c6['splice'](0x0,0x64);_0x358c6b[_0x1531('0xc')](()=>{for(const _0x505382 of _0x48de69)_0x505382[_0x1531('0xb')]&&_0xdd7abb[_0x1531('0x18')](_0x505382['id']);});}}