@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231207.0 → 0.0.0-nightly-20231209.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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x41ca=['CommentsRepository','commandName','isMultiRange','registerAnnotation','Annotations','reduce','some','button','activeAnnotations','size','createCommentThreadController','_initializeController','comments','_updateController','arrowView','getFirstRange','addComment','values','getRanges','push','getMarkerNames','length','Accept\x20all\x20suggestions','comments.maxCommentCharsWhenCollapsed','CommentView','_unbindEditors','source','isDirty','mainView','EditorAnnotations','getDescriptions','view','locale','pluginName','isEnabled','change:activeAnnotations','innerView','discardAllSuggestions','Accept\x20all\x20selected\x20suggestions','listenTo','commentThread','suggestion-','_handleSuggestionControllerDelayed','get','keys','separator','model','plugins','add','map','remove','switchbutton','value','_handleControllerBuffer','getMarkers','toMany','buttonView','comments.maxCommentsWhenCollapsed','commands','Discard\x20all\x20selected\x20suggestions','trackChanges.SuggestionThreadView','execute','componentFactory','clear','TrackChangesEditing','editing','_suggestionToController','getAllAdjacentSuggestions','comments.editorConfig','requires','descriptionParts','acceptSelectedSuggestions','init','actionView','suggestionLoaded','_disableComments','config','focus','getSuggestion','createAnnotation','type','Discard\x20all\x20suggestions','editor','unbind','TrackChangesUI','trackChanges.disableComments','isOn','activeMarkers','destroy','filter','has','getByInnerView','lowest','_annotationViews','change:previous','discardSelectedSuggestions','suggestionUnloaded','suggestionChanged','isInContent','set','_viewToController','trackChanges','_destroyController','define','_refreshActiveMarkers','bind','head','_bindAnnotationToEditors','_descriptionFactory','createAnnotationView'];(function(_0x521207,_0x41cabf){const _0x1f2f62=function(_0x5ed43){while(--_0x5ed43){_0x521207['push'](_0x521207['shift']());}};_0x1f2f62(++_0x41cabf);}(_0x41ca,0x1bd));const _0x1f2f=function(_0x521207,_0x41cabf){_0x521207=_0x521207-0x0;let _0x1f2f62=_0x41ca[_0x521207];return _0x1f2f62;};import{Plugin as _0x38ba67}from'ckeditor5/src/core';import{Collection as _0x4ddcfa}from'ckeditor5/src/utils';import{Model as _0x3f2ace,SplitButtonView as _0x2660b6,createDropdown as _0x1d95ba,addListToDropdown as _0x2e5c24}from'ckeditor5/src/ui';import{Users as _0x5c70cf,getDateTimeFormatter as _0x3794ac,getAllMarkersDomElementsSorted as _0x17d8ab}from'ckeditor5-collaboration/src/collaboration-core';import _0x5173a7 from'./trackchangesediting';import _0x568dd8 from'./ui/suggestioncontroller';import _0xa30a6 from'./ui/view/suggestionthreadview';import{getTranslation as _0x48585b}from'./utils/common-translations';import _0x3e4ad2 from'../theme/icons/track-changes.svg';export default class d extends _0x38ba67{static get[_0x1f2f('0x40')](){return[_0x5173a7,_0x5c70cf,_0x1f2f('0x69'),_0x1f2f('0x6d'),_0x1f2f('0x18')];}static get[_0x1f2f('0x1c')](){return _0x1f2f('0x4f');}constructor(_0x4f1911){super(_0x4f1911),this[_0x1f2f('0x3d')]=new Map(),this[_0x1f2f('0x5f')]=new Map(),this['_annotationViews']=new Map(),this[_0x1f2f('0x30')]=new Map();const _0x180494=this['editor'][_0x1f2f('0x47')];_0x180494['define'](_0x1f2f('0x37'),_0xa30a6),_0x180494[_0x1f2f('0x62')](_0x1f2f('0x50'),!0x1),this[_0x1f2f('0x46')]=_0x180494[_0x1f2f('0x26')]('trackChanges.disableComments');}[_0x1f2f('0x25')](_0x36064b,_0x432e6b){0x0===this['_handleControllerBuffer'][_0x1f2f('0x4')]&&setTimeout(()=>{for(const [_0x461874,_0x416991]of this[_0x1f2f('0x30')]){const _0x5701f0=this['_suggestionToController'][_0x1f2f('0x55')](_0x461874);_0x5701f0||_0x416991?_0x5701f0&&_0x416991&&this[_0x1f2f('0x61')](_0x461874):this[_0x1f2f('0x6')](_0x461874);}this[_0x1f2f('0x4d')][_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x18'))['refreshSelectedViews'](),this[_0x1f2f('0x63')](),this['_handleControllerBuffer'][_0x1f2f('0x3a')]();},0xa),this['_handleControllerBuffer'][_0x1f2f('0x5e')](_0x36064b,_0x432e6b);}[_0x1f2f('0x43')](){const _0x15e745=this[_0x1f2f('0x4d')],_0xc9e2a3=_0x15e745['plugins'][_0x1f2f('0x26')]('TrackChangesEditing'),_0x4bd4f1=_0x15e745[_0x1f2f('0x2a')][_0x1f2f('0x26')]('Annotations'),_0x4b5069=_0x15e745[_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x18')),_0x4ea40a=_0x15e745[_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x69'));_0x15e745['ui'][_0x1f2f('0x39')][_0x1f2f('0x2b')](_0x1f2f('0x60'),_0x499932=>this['_createUIButton'](_0x499932)),_0x4b5069['addSourceCollector'](()=>{const _0x464386=[];for(const [_0x49ac0c,_0x50f1fb]of Array['from'](this[_0x1f2f('0x3d')])){const _0x15f786=_0x49ac0c[_0x1f2f('0x3e')](),_0x9a25b0=[];for(const _0x2427c7 of _0x15f786){if(!_0x2427c7[_0x1f2f('0x5d')])continue;if(_0x2427c7[_0x1f2f('0x6b')]){_0x9a25b0[_0x1f2f('0xe')](..._0x2427c7[_0x1f2f('0xd')]());continue;}const _0x2bf1a7=_0x2427c7[_0x1f2f('0xa')]();if(_0x9a25b0['length']>0x0){const _0x4662b6=_0x9a25b0[0x0]['getJoined'](_0x2bf1a7);if(_0x4662b6){_0x9a25b0[0x0]=_0x4662b6;continue;}}_0x9a25b0[_0x1f2f('0xe')](_0x2bf1a7);}_0x464386[_0x1f2f('0xe')]([_0x50f1fb[_0x1f2f('0x1a')],_0x9a25b0]);}return _0x464386;}),this['listenTo'](_0xc9e2a3,_0x1f2f('0x45'),(_0x3c5664,_0x49dc09)=>{this['listenTo'](_0x49dc09,_0x1f2f('0x59'),(_0x1965a4,_0x26a0e0,_0x5264a7,_0x25f927)=>{_0x49dc09['isInContent']&&(null==_0x5264a7?(this[_0x1f2f('0x8')](_0x25f927[_0x1f2f('0x65')]),this[_0x1f2f('0x25')](_0x49dc09,!0x1)):(this[_0x1f2f('0x8')](_0x5264a7['head']),null==_0x25f927&&this[_0x1f2f('0x25')](_0x49dc09,!0x0)));}),null!==_0x49dc09['previous']?this[_0x1f2f('0x8')](_0x49dc09['head']):this[_0x1f2f('0x25')](_0x49dc09,!0x1);}),this['listenTo'](_0xc9e2a3,_0x1f2f('0x5b'),(_0xd9e2e6,_0x4d6408,_0x42535c)=>{this['stopListening'](_0x4d6408,_0x1f2f('0x59')),this[_0x1f2f('0x30')]['delete'](_0x4d6408),this[_0x1f2f('0x3d')][_0x1f2f('0x55')](_0x4d6408)&&this[_0x1f2f('0x61')](_0x4d6408),_0x42535c&&this[_0x1f2f('0x8')](_0x42535c[_0x1f2f('0x65')]);}),this[_0x1f2f('0x22')](_0xc9e2a3,_0x1f2f('0x5c'),(_0x5d9a21,_0x6d14ce)=>{this['_updateController'](_0x6d14ce);}),this[_0x1f2f('0x22')](_0x4bd4f1,_0x1f2f('0x1e'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ea40a,_0x1f2f('0xb'),(_0x5197cb,{threadId:_0x43ba0d,isFromAdapter:_0x109987})=>{if(_0x109987||!_0xc9e2a3['hasSuggestion'](_0x43ba0d))return;const _0x544e83=_0xc9e2a3[_0x1f2f('0x49')](_0x43ba0d);this[_0x1f2f('0x3d')]['get'](_0x544e83)[_0x1f2f('0x1a')][_0x1f2f('0x48')]();},{'priority':_0x1f2f('0x57')});}[_0x1f2f('0x63')](){const _0x3aa900=this[_0x1f2f('0x4d')][_0x1f2f('0x2a')]['get'](_0x1f2f('0x6d')),_0x3f2d94=this['editor'][_0x1f2f('0x2a')]['get'](_0x1f2f('0x3b')),_0x462640=Array['from'](_0x3aa900[_0x1f2f('0x3')],_0x1a2e8d=>_0x1a2e8d[_0x1f2f('0x1f')])[_0x1f2f('0x54')](_0x1ea6d6=>this['_viewToController']['has'](_0x1ea6d6)),_0x57970c=[];for(const _0x77122f of _0x462640){const _0x15f623=this['_viewToController']['get'](_0x77122f)[_0x1f2f('0x29')][_0x1f2f('0x3e')]();_0x57970c[_0x1f2f('0xe')](..._0x15f623[_0x1f2f('0x0')]((_0x128cff,_0x1bedf0)=>[..._0x128cff,..._0x1bedf0[_0x1f2f('0xf')]()],[]));}_0x3f2d94[_0x1f2f('0x52')]=_0x57970c;}['_createUIButton'](_0xd75a16){const _0x4d865a=_0x1d95ba(_0xd75a16,_0x2660b6),_0x598f0f=this['editor'][_0x1f2f('0x35')][_0x1f2f('0x26')](_0x1f2f('0x60')),_0x5948cd=_0x48585b(_0xd75a16,'Track\x20changes');_0x4d865a['buttonView'][_0x1f2f('0x5e')]({'tooltip':_0x5948cd,'label':_0x5948cd,'icon':_0x3e4ad2}),_0x4d865a['buttonView'][_0x1f2f('0x64')](_0x1f2f('0x51'))['to'](_0x598f0f,_0x1f2f('0x2f')),_0x4d865a['buttonView']['on']('execute',()=>{_0x598f0f[_0x1f2f('0x38')](),this[_0x1f2f('0x4d')][_0x1f2f('0x3c')][_0x1f2f('0x1a')][_0x1f2f('0x48')]();});const _0x53fd26=new _0x4ddcfa(),_0x6f8bf=[{'type':_0x1f2f('0x2e'),'model':{'withText':!0x0,'label':_0x5948cd,'commandName':_0x1f2f('0x60')}},{'type':_0x1f2f('0x28')},{'type':_0x1f2f('0x2'),'model':{'withText':!0x0,'label':_0x48585b(_0xd75a16,_0x1f2f('0x11')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x48585b(_0xd75a16,_0x1f2f('0x21')),'commandName':_0x1f2f('0x42')}},{'type':'button','model':{'withText':!0x0,'label':_0x48585b(_0xd75a16,_0x1f2f('0x4c')),'commandName':_0x1f2f('0x20')}},{'type':_0x1f2f('0x2'),'model':{'withText':!0x0,'label':_0x48585b(_0xd75a16,_0x1f2f('0x36')),'commandName':_0x1f2f('0x5a')}}];for(const _0x1809fc of _0x6f8bf){let _0x4de6a5={'type':_0x1f2f('0x28')};if(_0x1809fc[_0x1f2f('0x29')]){const _0x2a05c1=new _0x3f2ace(_0x1809fc[_0x1f2f('0x29')]),_0x5c0f60=this[_0x1f2f('0x4d')][_0x1f2f('0x35')]['get'](_0x2a05c1[_0x1f2f('0x6a')]);_0x2a05c1['bind'](_0x1f2f('0x51'),_0x1f2f('0x1d'))['to'](_0x5c0f60,_0x1f2f('0x2f'),'isEnabled'),_0x4de6a5={'type':_0x1809fc[_0x1f2f('0x4b')],'model':_0x2a05c1};}_0x53fd26[_0x1f2f('0x2b')](_0x4de6a5);}_0x2e5c24(_0x4d865a,_0x53fd26);const _0x41d153=_0x6f8bf[_0x1f2f('0x54')](_0x3c9050=>null!=_0x3c9050[_0x1f2f('0x29')])[_0x1f2f('0x2c')](_0xa8971d=>this[_0x1f2f('0x4d')][_0x1f2f('0x35')][_0x1f2f('0x26')](_0xa8971d[_0x1f2f('0x29')]['commandName'])),_0x175bbe=_0x4d865a[_0x1f2f('0x33')];return _0x175bbe[_0x1f2f('0x44')][_0x1f2f('0x4e')]('isEnabled'),_0x175bbe[_0x1f2f('0x9')][_0x1f2f('0x4e')](_0x1f2f('0x1d')),_0x175bbe[_0x1f2f('0x44')][_0x1f2f('0x64')](_0x1f2f('0x1d'))['to'](_0x598f0f,'isEnabled'),_0x175bbe[_0x1f2f('0x9')]['bind'](_0x1f2f('0x1d'))[_0x1f2f('0x32')](_0x41d153,_0x1f2f('0x1d'),(..._0x4c3313)=>_0x4c3313[_0x1f2f('0x1')](_0x44040c=>_0x44040c)),_0x4d865a['on'](_0x1f2f('0x38'),_0x2db7b1=>{this['editor']['execute'](_0x2db7b1[_0x1f2f('0x15')]['commandName']),this['editor'][_0x1f2f('0x3c')][_0x1f2f('0x1a')][_0x1f2f('0x48')]();}),_0x4d865a;}[_0x1f2f('0x6')](_0x346be1){const _0x18ed6f=this['editor'],_0x41a2fd=_0x18ed6f[_0x1f2f('0x47')],_0x2ecef6=_0x18ed6f[_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x6d')),_0x380e62=_0x18ed6f[_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x69')),_0x53ab20=_0x18ed6f[_0x1f2f('0x2a')]['get'](_0x1f2f('0x18')),_0x4fcd6d=_0x18ed6f[_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x5c70cf)['me'],_0x54d96b=_0x41a2fd['get'](_0x1f2f('0x60'))['SuggestionThreadView'],{CommentsListView:_0x1bb8a3,CommentThreadInputView:_0x43b76e}=_0x18ed6f[_0x1f2f('0x2a')]['get']('CommentsUI');let _0x57bd38,_0x842590;this['_annotationViews'][_0x1f2f('0x55')](_0x346be1['id'])?(_0x842590=this['_annotationViews'][_0x1f2f('0x26')](_0x346be1['id']),_0x57bd38=_0x842590[_0x1f2f('0x17')]):(_0x57bd38=new _0x54d96b(_0x18ed6f[_0x1f2f('0x1b')],_0x346be1,_0x4fcd6d,{'disableComments':this[_0x1f2f('0x46')],'editorConfig':_0x41a2fd[_0x1f2f('0x26')](_0x1f2f('0x3f')),'maxCommentsWhenCollapsed':_0x41a2fd[_0x1f2f('0x26')](_0x1f2f('0x34')),'maxThreadTotalWeight':_0x41a2fd[_0x1f2f('0x26')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x41a2fd[_0x1f2f('0x26')](_0x1f2f('0x12')),'formatDateTime':_0x3794ac(_0x41a2fd[_0x1f2f('0x26')]('locale')),'CommentView':_0x41a2fd[_0x1f2f('0x26')](_0x1f2f('0x7'))[_0x1f2f('0x13')],'CommentsListView':_0x1bb8a3,'CommentThreadInputView':_0x43b76e}),_0x57bd38['acceptButton']['on'](_0x1f2f('0x38'),()=>{_0x18ed6f[_0x1f2f('0x3c')][_0x1f2f('0x1a')][_0x1f2f('0x48')]();}),_0x57bd38['discardButton']['on']('execute',()=>{_0x18ed6f[_0x1f2f('0x3c')][_0x1f2f('0x1a')]['focus']();}),_0x842590=_0x2ecef6[_0x1f2f('0x68')](this[_0x1f2f('0x4d')][_0x1f2f('0x1b')],_0x57bd38),_0x842590[_0x1f2f('0x64')]('isDirty')['to'](_0x57bd38,_0x1f2f('0x16')),_0x842590[_0x1f2f('0x64')](_0x1f2f('0x10'))['to'](_0x57bd38),_0x842590['bind']('type')['to'](_0x57bd38,_0x1f2f('0x4b'),_0x220dfe=>_0x1f2f('0x24')+_0x220dfe),this[_0x1f2f('0x58')][_0x1f2f('0x5e')](_0x346be1['id'],_0x842590));const _0x536974=_0x380e62[_0x1f2f('0x5')](_0x346be1[_0x1f2f('0x23')],_0x57bd38),_0x4b896d=new _0x568dd8(_0x18ed6f,_0x346be1,_0x57bd38,_0x536974),_0x19a582=_0x346be1['getAllAdjacentSuggestions']()['filter'](_0x5b238f=>_0x5b238f['isInContent']);_0x57bd38[_0x1f2f('0x41')]=_0x18ed6f[_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x3b'))['_descriptionFactory'][_0x1f2f('0x19')](_0x19a582),this[_0x1f2f('0x3d')][_0x1f2f('0x5e')](_0x346be1,_0x4b896d),this[_0x1f2f('0x5f')]['set'](_0x57bd38,_0x4b896d);const _0x5bd904=_0x2ecef6[_0x1f2f('0x4a')]({'view':_0x842590,'target':()=>{const _0x4bd12c=[],_0x4b288a=_0x346be1[_0x1f2f('0x3e')]()[_0x1f2f('0x54')](_0x113cd7=>_0x113cd7[_0x1f2f('0x5d')]);for(const _0x574bd7 of _0x4b288a)_0x4bd12c[_0x1f2f('0xe')](..._0x574bd7[_0x1f2f('0x31')]());return _0x17d8ab(_0x18ed6f[_0x1f2f('0x3c')],_0x4bd12c);},'type':()=>_0x1f2f('0x24')+_0x4b896d[_0x1f2f('0x1a')]['type']});_0x380e62[_0x1f2f('0x66')](_0x57bd38,_0x5bd904),_0x2ecef6[_0x1f2f('0x2b')](_0x5bd904),_0x53ab20[_0x1f2f('0x6c')](_0x5bd904);}['_destroyController'](_0x38908f){const _0x47be7c=this[_0x1f2f('0x4d')][_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x69')),_0x2df341=this['editor']['plugins'][_0x1f2f('0x26')](_0x1f2f('0x6d')),_0x29e916=this[_0x1f2f('0x3d')][_0x1f2f('0x26')](_0x38908f),_0x196aab=_0x29e916[_0x1f2f('0x1a')],_0x42e8d6=_0x2df341[_0x1f2f('0x56')](_0x196aab);_0x47be7c[_0x1f2f('0x14')](_0x196aab),_0x42e8d6&&_0x2df341[_0x1f2f('0x2d')](_0x42e8d6),this[_0x1f2f('0x3d')]['delete'](_0x38908f),this[_0x1f2f('0x5f')]['delete'](_0x196aab),_0x29e916[_0x1f2f('0x53')]();}[_0x1f2f('0x8')](_0x452e30){if(!_0x452e30[_0x1f2f('0x5d')]||!this[_0x1f2f('0x3d')][_0x1f2f('0x55')](_0x452e30))return;const _0x5b5173=this[_0x1f2f('0x4d')][_0x1f2f('0x2a')][_0x1f2f('0x26')](_0x1f2f('0x3b')),_0x51baf0=this['_suggestionToController'][_0x1f2f('0x26')](_0x452e30),_0x31eabc=_0x452e30['getAllAdjacentSuggestions']();_0x51baf0[_0x1f2f('0x1a')][_0x1f2f('0x41')]=_0x5b5173[_0x1f2f('0x67')][_0x1f2f('0x19')](_0x31eabc);}[_0x1f2f('0x53')](){for(const _0x37d412 of this[_0x1f2f('0x3d')][_0x1f2f('0x27')]())this['_destroyController'](_0x37d412);for(const _0x4e2758 of this[_0x1f2f('0x58')][_0x1f2f('0xc')]())_0x4e2758[_0x1f2f('0x17')][_0x1f2f('0x53')]();super['destroy']();}}
|
|
23
|
+
const _0x477b=['change:previous','getDescriptions','getSuggestion','descriptionParts','getByInnerView','stopListening','isInContent','getRanges','acceptButton','_annotationViews','value','isDirty','trackChanges.SuggestionThreadView','editor','get','view','destroy','comments.maxCommentsWhenCollapsed','separator','SuggestionThreadView','commandName','reduce','CommentsRepository','_handleSuggestionControllerDelayed','Discard\x20all\x20selected\x20suggestions','push','Accept\x20all\x20selected\x20suggestions','from','_suggestionToController','isMultiRange','head','suggestionUnloaded','getMarkers','acceptSelectedSuggestions','Accept\x20all\x20suggestions','change:activeAnnotations','getMarkerNames','set','editing','createAnnotation','_updateController','suggestionLoaded','acceptAllSuggestions','listenTo','delete','trackChanges','filter','getAllAdjacentSuggestions','CommentView','values','type','bind','Annotations','EditorAnnotations','_descriptionFactory','mainView','TrackChangesEditing','trackChanges.disableComments','remove','registerAnnotation','_createUIButton','init','isOn','comments.maxThreadTotalWeight','lowest','activeAnnotations','locale','Discard\x20all\x20suggestions','buttonView','model','createCommentThreadController','has','toMany','isEnabled','keys','componentFactory','arrowView','add','source','comments.maxCommentCharsWhenCollapsed','suggestion-','config','_refreshActiveMarkers','actionView','_destroyController','comments','focus','clear','execute','size','some','discardSelectedSuggestions','pluginName','discardButton','commentThread','createAnnotationView','CommentsUI','unbind','getJoined','_bindAnnotationToEditors','addComment','commands','previous','_disableComments','button','_handleControllerBuffer','TrackChangesUI','_viewToController','discardAllSuggestions','_initializeController','plugins','_unbindEditors'];(function(_0x5936ad,_0x477b4d){const _0x224259=function(_0x5df559){while(--_0x5df559){_0x5936ad['push'](_0x5936ad['shift']());}};_0x224259(++_0x477b4d);}(_0x477b,0x1db));const _0x2242=function(_0x5936ad,_0x477b4d){_0x5936ad=_0x5936ad-0x0;let _0x224259=_0x477b[_0x5936ad];return _0x224259;};import{Plugin as _0x122e10}from'ckeditor5/src/core';import{Collection as _0x2e1fd7}from'ckeditor5/src/utils';import{Model as _0x31c54f,SplitButtonView as _0x5be723,createDropdown as _0x47c0d1,addListToDropdown as _0x216183}from'ckeditor5/src/ui';import{Users as _0x277c2f,getDateTimeFormatter as _0xeb957,getAllMarkersDomElementsSorted as _0x25a346}from'ckeditor5-collaboration/src/collaboration-core';import _0x3b9553 from'./trackchangesediting';import _0x121240 from'./ui/suggestioncontroller';import _0x2b594a from'./ui/view/suggestionthreadview';import{getTranslation as _0x514eb5}from'./utils/common-translations';import _0x244844 from'../theme/icons/track-changes.svg';export default class d extends _0x122e10{static get['requires'](){return[_0x3b9553,_0x277c2f,'CommentsRepository','Annotations','EditorAnnotations'];}static get[_0x2242('0x41')](){return _0x2242('0x4f');}constructor(_0x1495ee){super(_0x1495ee),this[_0x2242('0x1')]=new Map(),this[_0x2242('0x50')]=new Map(),this[_0x2242('0x5e')]=new Map(),this[_0x2242('0x4e')]=new Map();const _0x296dee=this[_0x2242('0x62')]['config'];_0x296dee['define'](_0x2242('0x61'),_0x2b594a),_0x296dee['define']('trackChanges.disableComments',!0x1),this[_0x2242('0x4c')]=_0x296dee[_0x2242('0x63')](_0x2242('0x1e'));}[_0x2242('0x6c')](_0xce580f,_0x1dd1e3){0x0===this[_0x2242('0x4e')][_0x2242('0x3e')]&&setTimeout(()=>{for(const [_0x5f367d,_0x132fd0]of this[_0x2242('0x4e')]){const _0x5572b9=this['_suggestionToController'][_0x2242('0x2c')](_0x5f367d);_0x5572b9||_0x132fd0?_0x5572b9&&_0x132fd0&&this[_0x2242('0x39')](_0x5f367d):this['_initializeController'](_0x5f367d);}this['editor'][_0x2242('0x53')]['get'](_0x2242('0x1a'))['refreshSelectedViews'](),this[_0x2242('0x37')](),this[_0x2242('0x4e')][_0x2242('0x3c')]();},0xa),this['_handleControllerBuffer']['set'](_0xce580f,_0x1dd1e3);}[_0x2242('0x22')](){const _0x3a26b9=this[_0x2242('0x62')],_0x287db2=_0x3a26b9[_0x2242('0x53')][_0x2242('0x63')]('TrackChangesEditing'),_0x692f82=_0x3a26b9[_0x2242('0x53')]['get']('Annotations'),_0xbd2be4=_0x3a26b9[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x1a')),_0x322872=_0x3a26b9[_0x2242('0x53')]['get'](_0x2242('0x6b'));_0x3a26b9['ui'][_0x2242('0x30')][_0x2242('0x32')]('trackChanges',_0x58052b=>this[_0x2242('0x21')](_0x58052b)),_0xbd2be4['addSourceCollector'](()=>{const _0x4feafc=[];for(const [_0x49792d,_0x20a3b9]of Array['from'](this[_0x2242('0x1')])){const _0x50d1ed=_0x49792d[_0x2242('0x14')](),_0x479d95=[];for(const _0x4b2ef2 of _0x50d1ed){if(!_0x4b2ef2[_0x2242('0x5b')])continue;if(_0x4b2ef2[_0x2242('0x2')]){_0x479d95[_0x2242('0x6e')](..._0x4b2ef2[_0x2242('0x5c')]());continue;}const _0x18cd4d=_0x4b2ef2['getFirstRange']();if(_0x479d95['length']>0x0){const _0x369402=_0x479d95[0x0][_0x2242('0x47')](_0x18cd4d);if(_0x369402){_0x479d95[0x0]=_0x369402;continue;}}_0x479d95[_0x2242('0x6e')](_0x18cd4d);}_0x4feafc[_0x2242('0x6e')]([_0x20a3b9['view'],_0x479d95]);}return _0x4feafc;}),this['listenTo'](_0x287db2,_0x2242('0xe'),(_0x4a346a,_0x21ed29)=>{this['listenTo'](_0x21ed29,'change:previous',(_0x2e585e,_0x3600e6,_0x302165,_0x221717)=>{_0x21ed29[_0x2242('0x5b')]&&(null==_0x302165?(this['_updateController'](_0x221717[_0x2242('0x3')]),this[_0x2242('0x6c')](_0x21ed29,!0x1)):(this[_0x2242('0xd')](_0x302165['head']),null==_0x221717&&this['_handleSuggestionControllerDelayed'](_0x21ed29,!0x0)));}),null!==_0x21ed29[_0x2242('0x4b')]?this['_updateController'](_0x21ed29[_0x2242('0x3')]):this['_handleSuggestionControllerDelayed'](_0x21ed29,!0x1);}),this[_0x2242('0x10')](_0x287db2,_0x2242('0x4'),(_0x2d26b7,_0x3eb5e7,_0x58d2c3)=>{this[_0x2242('0x5a')](_0x3eb5e7,_0x2242('0x55')),this[_0x2242('0x4e')][_0x2242('0x11')](_0x3eb5e7),this['_suggestionToController'][_0x2242('0x2c')](_0x3eb5e7)&&this[_0x2242('0x39')](_0x3eb5e7),_0x58d2c3&&this['_updateController'](_0x58d2c3['head']);}),this['listenTo'](_0x287db2,'suggestionChanged',(_0x1a3181,_0x1f28fc)=>{this[_0x2242('0xd')](_0x1f28fc);}),this[_0x2242('0x10')](_0x692f82,_0x2242('0x8'),()=>{this[_0x2242('0x37')]();}),this['listenTo'](_0x322872,_0x2242('0x49'),(_0x2f7137,{threadId:_0xbafb20,isFromAdapter:_0x1aaead})=>{if(_0x1aaead||!_0x287db2['hasSuggestion'](_0xbafb20))return;const _0x4550fe=_0x287db2[_0x2242('0x57')](_0xbafb20);this[_0x2242('0x1')][_0x2242('0x63')](_0x4550fe)[_0x2242('0x64')][_0x2242('0x3b')]();},{'priority':_0x2242('0x25')});}[_0x2242('0x37')](){const _0x10a4c0=this[_0x2242('0x62')][_0x2242('0x53')]['get'](_0x2242('0x19')),_0x596a1f=this['editor']['plugins'][_0x2242('0x63')]('TrackChangesEditing'),_0x3ce1b1=Array[_0x2242('0x0')](_0x10a4c0[_0x2242('0x26')],_0x2e2f50=>_0x2e2f50['innerView'])[_0x2242('0x13')](_0x2186cd=>this[_0x2242('0x50')]['has'](_0x2186cd)),_0x2cb5e9=[];for(const _0x148209 of _0x3ce1b1){const _0x967b39=this['_viewToController']['get'](_0x148209)[_0x2242('0x2a')][_0x2242('0x14')]();_0x2cb5e9['push'](..._0x967b39[_0x2242('0x6a')]((_0x31e189,_0x22cd22)=>[..._0x31e189,..._0x22cd22[_0x2242('0x9')]()],[]));}_0x596a1f['activeMarkers']=_0x2cb5e9;}[_0x2242('0x21')](_0x39a000){const _0x4340ec=_0x47c0d1(_0x39a000,_0x5be723),_0x8839ea=this['editor'][_0x2242('0x4a')][_0x2242('0x63')](_0x2242('0x12')),_0x4f1663=_0x514eb5(_0x39a000,'Track\x20changes');_0x4340ec[_0x2242('0x29')]['set']({'tooltip':_0x4f1663,'label':_0x4f1663,'icon':_0x244844}),_0x4340ec[_0x2242('0x29')][_0x2242('0x18')]('isOn')['to'](_0x8839ea,_0x2242('0x5f')),_0x4340ec[_0x2242('0x29')]['on'](_0x2242('0x3d'),()=>{_0x8839ea['execute'](),this[_0x2242('0x62')][_0x2242('0xb')][_0x2242('0x64')]['focus']();});const _0x2af166=new _0x2e1fd7(),_0x291c21=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4f1663,'commandName':_0x2242('0x12')}},{'type':_0x2242('0x67')},{'type':_0x2242('0x4d'),'model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x7')),'commandName':_0x2242('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x6f')),'commandName':_0x2242('0x6')}},{'type':_0x2242('0x4d'),'model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x28')),'commandName':_0x2242('0x51')}},{'type':'button','model':{'withText':!0x0,'label':_0x514eb5(_0x39a000,_0x2242('0x6d')),'commandName':_0x2242('0x40')}}];for(const _0x44be34 of _0x291c21){let _0x3b0b0e={'type':'separator'};if(_0x44be34[_0x2242('0x2a')]){const _0x15e3c6=new _0x31c54f(_0x44be34['model']),_0x126099=this['editor'][_0x2242('0x4a')][_0x2242('0x63')](_0x15e3c6[_0x2242('0x69')]);_0x15e3c6['bind'](_0x2242('0x23'),'isEnabled')['to'](_0x126099,_0x2242('0x5f'),_0x2242('0x2e')),_0x3b0b0e={'type':_0x44be34[_0x2242('0x17')],'model':_0x15e3c6};}_0x2af166[_0x2242('0x32')](_0x3b0b0e);}_0x216183(_0x4340ec,_0x2af166);const _0x41d546=_0x291c21[_0x2242('0x13')](_0x41d732=>null!=_0x41d732[_0x2242('0x2a')])['map'](_0x17bbbd=>this[_0x2242('0x62')]['commands']['get'](_0x17bbbd[_0x2242('0x2a')][_0x2242('0x69')])),_0x47eddd=_0x4340ec[_0x2242('0x29')];return _0x47eddd['actionView']['unbind'](_0x2242('0x2e')),_0x47eddd['arrowView'][_0x2242('0x46')](_0x2242('0x2e')),_0x47eddd[_0x2242('0x38')][_0x2242('0x18')]('isEnabled')['to'](_0x8839ea,_0x2242('0x2e')),_0x47eddd[_0x2242('0x31')][_0x2242('0x18')](_0x2242('0x2e'))[_0x2242('0x2d')](_0x41d546,'isEnabled',(..._0x4c9299)=>_0x4c9299[_0x2242('0x3f')](_0x4f203b=>_0x4f203b)),_0x4340ec['on']('execute',_0xba25b3=>{this[_0x2242('0x62')]['execute'](_0xba25b3[_0x2242('0x33')][_0x2242('0x69')]),this[_0x2242('0x62')][_0x2242('0xb')][_0x2242('0x64')][_0x2242('0x3b')]();}),_0x4340ec;}[_0x2242('0x52')](_0x42ccff){const _0xdd05aa=this[_0x2242('0x62')],_0x6dcbff=_0xdd05aa[_0x2242('0x36')],_0x263719=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x19')),_0x28c836=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x6b')),_0x1c13cf=_0xdd05aa['plugins'][_0x2242('0x63')](_0x2242('0x1a')),_0x27ad4b=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x277c2f)['me'],_0x48d512=_0x6dcbff['get'](_0x2242('0x12'))[_0x2242('0x68')],{CommentsListView:_0x247148,CommentThreadInputView:_0x572d10}=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x45'));let _0x187fc2,_0x1c11f7;this['_annotationViews']['has'](_0x42ccff['id'])?(_0x1c11f7=this[_0x2242('0x5e')][_0x2242('0x63')](_0x42ccff['id']),_0x187fc2=_0x1c11f7[_0x2242('0x1c')]):(_0x187fc2=new _0x48d512(_0xdd05aa[_0x2242('0x27')],_0x42ccff,_0x27ad4b,{'disableComments':this[_0x2242('0x4c')],'editorConfig':_0x6dcbff['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x6dcbff[_0x2242('0x63')](_0x2242('0x66')),'maxThreadTotalWeight':_0x6dcbff[_0x2242('0x63')](_0x2242('0x24')),'maxCommentCharsWhenCollapsed':_0x6dcbff[_0x2242('0x63')](_0x2242('0x34')),'formatDateTime':_0xeb957(_0x6dcbff[_0x2242('0x63')](_0x2242('0x27'))),'CommentView':_0x6dcbff[_0x2242('0x63')](_0x2242('0x3a'))[_0x2242('0x15')],'CommentsListView':_0x247148,'CommentThreadInputView':_0x572d10}),_0x187fc2[_0x2242('0x5d')]['on']('execute',()=>{_0xdd05aa[_0x2242('0xb')][_0x2242('0x64')]['focus']();}),_0x187fc2[_0x2242('0x42')]['on'](_0x2242('0x3d'),()=>{_0xdd05aa[_0x2242('0xb')][_0x2242('0x64')][_0x2242('0x3b')]();}),_0x1c11f7=_0x263719[_0x2242('0x44')](this['editor']['locale'],_0x187fc2),_0x1c11f7[_0x2242('0x18')](_0x2242('0x60'))['to'](_0x187fc2,_0x2242('0x60')),_0x1c11f7[_0x2242('0x18')]('length')['to'](_0x187fc2),_0x1c11f7[_0x2242('0x18')]('type')['to'](_0x187fc2,'type',_0x15d34c=>'suggestion-'+_0x15d34c),this['_annotationViews'][_0x2242('0xa')](_0x42ccff['id'],_0x1c11f7));const _0x4be4dc=_0x28c836[_0x2242('0x2b')](_0x42ccff[_0x2242('0x43')],_0x187fc2),_0x542571=new _0x121240(_0xdd05aa,_0x42ccff,_0x187fc2,_0x4be4dc),_0x641be7=_0x42ccff['getAllAdjacentSuggestions']()[_0x2242('0x13')](_0x5df7ad=>_0x5df7ad[_0x2242('0x5b')]);_0x187fc2['descriptionParts']=_0xdd05aa[_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x1d'))[_0x2242('0x1b')][_0x2242('0x56')](_0x641be7),this[_0x2242('0x1')][_0x2242('0xa')](_0x42ccff,_0x542571),this[_0x2242('0x50')][_0x2242('0xa')](_0x187fc2,_0x542571);const _0x7cf7f8=_0x263719[_0x2242('0xc')]({'view':_0x1c11f7,'target':()=>{const _0xa25e93=[],_0x4414dd=_0x42ccff['getAllAdjacentSuggestions']()[_0x2242('0x13')](_0x4c74f8=>_0x4c74f8[_0x2242('0x5b')]);for(const _0x8c875c of _0x4414dd)_0xa25e93[_0x2242('0x6e')](..._0x8c875c[_0x2242('0x5')]());return _0x25a346(_0xdd05aa[_0x2242('0xb')],_0xa25e93);},'type':()=>_0x2242('0x35')+_0x542571['view'][_0x2242('0x17')]});_0x28c836[_0x2242('0x48')](_0x187fc2,_0x7cf7f8),_0x263719[_0x2242('0x32')](_0x7cf7f8),_0x1c13cf[_0x2242('0x20')](_0x7cf7f8);}[_0x2242('0x39')](_0x399a25){const _0x296dc6=this[_0x2242('0x62')][_0x2242('0x53')][_0x2242('0x63')](_0x2242('0x6b')),_0x30e90b=this[_0x2242('0x62')][_0x2242('0x53')]['get']('Annotations'),_0x74c440=this['_suggestionToController'][_0x2242('0x63')](_0x399a25),_0x296db2=_0x74c440[_0x2242('0x64')],_0x5730fc=_0x30e90b[_0x2242('0x59')](_0x296db2);_0x296dc6[_0x2242('0x54')](_0x296db2),_0x5730fc&&_0x30e90b[_0x2242('0x1f')](_0x5730fc),this['_suggestionToController'][_0x2242('0x11')](_0x399a25),this[_0x2242('0x50')][_0x2242('0x11')](_0x296db2),_0x74c440[_0x2242('0x65')]();}[_0x2242('0xd')](_0x181e8c){if(!_0x181e8c[_0x2242('0x5b')]||!this[_0x2242('0x1')]['has'](_0x181e8c))return;const _0x3e856b=this[_0x2242('0x62')][_0x2242('0x53')]['get'](_0x2242('0x1d')),_0xb7b6f2=this['_suggestionToController'][_0x2242('0x63')](_0x181e8c),_0x219e3b=_0x181e8c[_0x2242('0x14')]();_0xb7b6f2[_0x2242('0x64')][_0x2242('0x58')]=_0x3e856b[_0x2242('0x1b')][_0x2242('0x56')](_0x219e3b);}[_0x2242('0x65')](){for(const _0x3202a3 of this[_0x2242('0x1')][_0x2242('0x2f')]())this[_0x2242('0x39')](_0x3202a3);for(const _0x54d721 of this[_0x2242('0x5e')][_0x2242('0x16')]())_0x54d721[_0x2242('0x1c')]['destroy']();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bf0=['_removePendingAction','unbind','plugins','canDiscard','_setPendingAction','isEnabled','destroy','isDirty','change:isDirty','add','model','_discardCommand','bind','stopListening','listenTo','_acceptCommand','remove','view','canEditAt','acceptSuggestion','_pendingAction','canAccept','get','commands','discardSuggestion','_editor','commentThreadController','locale','PendingActions'];(function(_0x5f311a,_0x1bf09d){const _0x37db99=function(_0xef2771){while(--_0xef2771){_0x5f311a['push'](_0x5f311a['shift']());}};_0x37db99(++_0x1bf09d);}(_0x1bf0,0x1f4));const _0x37db=function(_0x5f311a,_0x1bf09d){_0x5f311a=_0x5f311a-0x0;let _0x37db99=_0x1bf0[_0x5f311a];return _0x37db99;};import{ObservableMixin as _0x4e5362}from'ckeditor5/src/utils';import{getTranslation as _0x4092e4}from'../utils/common-translations';export default class Qt extends _0x4e5362(){constructor(_0x5f31f0,_0x241d08,_0x5608d5,_0x29d3a4){super(),this[_0x37db('0x3')]=_0x241d08,this[_0x37db('0xa')]=_0x5608d5,this[_0x37db('0x13')]=_0x29d3a4,this['_editor']=_0x5f31f0,this['_acceptCommand']=_0x5f31f0[_0x37db('0x10')][_0x37db('0xf')]('acceptSuggestion'),this['_discardCommand']=_0x5f31f0['commands'][_0x37db('0xf')](_0x37db('0x11')),this[_0x37db('0xa')][_0x37db('0x5')](_0x37db('0x1b'))['to'](this[_0x37db('0x8')],this['_discardCommand'],(_0x3c1b8b,_0x1fce99)=>_0x3c1b8b||_0x1fce99),this[_0x37db('0xa')][_0x37db('0x5')](_0x37db('0xe'))['to'](this[_0x37db('0x8')],_0x37db('0x1b'),_0x24a006=>_0x24a006&&this[_0x37db('0x12')][_0x37db('0x3')]['canEditAt'](_0x241d08['getRanges']())),this[_0x37db('0xa')][_0x37db('0x5')](_0x37db('0x19'))['to'](this[_0x37db('0x4')],'isEnabled',_0x2b7c06=>_0x2b7c06&&this['_editor'][_0x37db('0x3')][_0x37db('0xb')](_0x241d08['getRanges']())),this[_0x37db('0xd')]=null,_0x5608d5[_0x37db('0x0')]&&this['_setPendingAction'](),this['listenTo'](_0x5608d5,_0x37db('0xc'),()=>this[_0x37db('0xc')]()),this[_0x37db('0x7')](_0x5608d5,_0x37db('0x11'),()=>this[_0x37db('0x11')]()),this[_0x37db('0x7')](_0x5608d5,_0x37db('0x1'),()=>{_0x5608d5[_0x37db('0x0')]?this[_0x37db('0x1a')]():this[_0x37db('0x16')]();});}[_0x37db('0xc')](){this[_0x37db('0x8')]['execute'](this['model']['id']);}[_0x37db('0x11')](){this[_0x37db('0x4')]['execute'](this[_0x37db('0x3')]['id']);}[_0x37db('0x1c')](){this[_0x37db('0xa')]['unbind'](_0x37db('0x1b')),this[_0x37db('0xa')][_0x37db('0x17')](_0x37db('0xe')),this[_0x37db('0xa')][_0x37db('0x17')]('canDiscard'),this[_0x37db('0x6')](),this[_0x37db('0x13')]['destroy'](),this[_0x37db('0xd')]&&this[_0x37db('0x16')]();}['_setPendingAction'](){const _0x2e8499=_0x4092e4(this[_0x37db('0x12')][_0x37db('0x14')],'PENDING_ACTION_SUGGESTION');this[_0x37db('0xd')]=this[_0x37db('0x12')]['plugins']['get'](_0x37db('0x15'))[_0x37db('0x2')](_0x2e8499);}[_0x37db('0x16')](){null!==this[_0x37db('0xd')]&&this[_0x37db('0x12')][_0x37db('0x18')]['get'](_0x37db('0x15'))[_0x37db('0x9')](this[_0x37db('0xd')]),this[_0x37db('0xd')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x72ed=['length','setData','_createCommentViews','_localUser','commentThread','isDirty','commentInputView','editorConfig','authoredAt','commentsListView','element','value','locale','canDiscard','_model','isActive','disableComments','delegate','assign','updateComment','removeComment','_config','disabledSubmit','commentThreadInputView','submit','cancel','set','destroy','isReadOnly','showInput','focus','bind','descriptionParts','CommentView'];(function(_0x17e51f,_0x72edf8){const _0x2924b0=function(_0x4d2b18){while(--_0x4d2b18){_0x17e51f['push'](_0x17e51f['shift']());}};_0x2924b0(++_0x72edf8);}(_0x72ed,0xc8));const _0x2924=function(_0x17e51f,_0x72edf8){_0x17e51f=_0x17e51f-0x0;let _0x2924b0=_0x72ed[_0x17e51f];return _0x2924b0;};import{View as _0x2ec66a}from'ckeditor5/src/ui';export default class si extends _0x2ec66a{constructor(_0x2a1769,_0xde1b7,_0x5e6a1b,_0x1c0ae9){super(_0x2a1769),this['commentsListView']=null,this[_0x2924('0x1b')]=null,this[_0x2924('0x1e')]('isActive',!0x1),this[_0x2924('0x1e')](_0x2924('0xc'),_0xde1b7['authoredAt']),this[_0x2924('0x1')](_0x2924('0xc'))['to'](_0xde1b7),this[_0x2924('0x1e')](_0x2924('0x2'),[]),this[_0x2924('0x1e')](_0x2924('0x9'),!0x1),this['set']('isEnabled',!0x1),this[_0x2924('0x1e')]('canAccept',!0x1),this[_0x2924('0x1e')](_0x2924('0x11'),!0x1),this[_0x2924('0x12')]=_0xde1b7,this[_0x2924('0x7')]=_0x5e6a1b,this[_0x2924('0x19')]=_0x1c0ae9,_0x1c0ae9[_0x2924('0x14')]?this[_0x2924('0x1e')](_0x2924('0x4'),0x1):this[_0x2924('0x6')]();}[_0x2924('0x0')](){this[_0x2924('0xe')][_0x2924('0x0')]();}[_0x2924('0x1f')](){this[_0x2924('0xd')]&&this[_0x2924('0xd')]['destroy'](),this[_0x2924('0x1b')]&&this['commentThreadInputView'][_0x2924('0x1f')](),super[_0x2924('0x1f')]();}[_0x2924('0x6')](){const {CommentsListView:_0x37b770}=this[_0x2924('0x19')];this['commentsListView']=new _0x37b770(this[_0x2924('0x10')],this[_0x2924('0x12')][_0x2924('0x8')],Object[_0x2924('0x16')]({'CommentView':this[_0x2924('0x19')][_0x2924('0x3')]},this[_0x2924('0x19')])),this[_0x2924('0xd')][_0x2924('0x15')](_0x2924('0x18'))['to'](this),this[_0x2924('0xd')][_0x2924('0x15')](_0x2924('0x17'))['to'](this),this[_0x2924('0xd')][_0x2924('0x1')](_0x2924('0x13'))['to'](this),this[_0x2924('0x1e')](_0x2924('0x4'),this[_0x2924('0xd')]['length']+0x1),this['bind']('length')['to'](this[_0x2924('0xd')],_0x2924('0x4'),_0x303f3c=>_0x303f3c+0x1),this[_0x2924('0x1b')]=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this[_0x2924('0x0')]()),this[_0x2924('0x1')](_0x2924('0x9'))['to'](this[_0x2924('0xd')],'hasDirtyComment',this[_0x2924('0x1b')][_0x2924('0xa')],_0x2924('0xf'),(_0x300d35,_0xd0439d)=>_0x300d35||!!_0xd0439d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x50417c}=this[_0x2924('0x19')],_0x4ca76a=new _0x50417c(this[_0x2924('0x10')],this['_localUser'],this[_0x2924('0x19')][_0x2924('0xb')]),_0x36c29b=_0x4ca76a[_0x2924('0xa')];return _0x4ca76a[_0x2924('0x1')](_0x2924('0x21'))['to'](this,_0x2924('0x13'),this[_0x2924('0x12')]['commentThread'],_0x2924('0x20'),_0x36c29b,_0x2924('0xf'),(_0xe1244b,_0x1d96f0,_0x3529ba)=>!!_0x3529ba||_0xe1244b&&!_0x1d96f0),_0x36c29b['on'](_0x2924('0x1c'),(_0x4db0c0,_0x1524ac)=>{this['fire']('addComment',_0x1524ac),_0x36c29b['editor'][_0x2924('0x5')]('');}),_0x36c29b['on'](_0x2924('0x1d'),()=>this['focus']()),_0x36c29b[_0x2924('0x1')](_0x2924('0x1a'))['to'](this[_0x2924('0x12')][_0x2924('0x8')],'isReadOnly'),_0x4ca76a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c79=['cancel','ck-annotation','bindTemplate','ck-suggestion-wrapper--active','getExternalSuggestionNote','commentsListView','EXTERNAL_AVATAR','ck-annotation__info-time','color','EXTERNAL_SUGGESTION','getTemplate','\x22\x20title=\x22','innerHTML','locale','map','_descriptionElement','description','ck-suggestion--disabled-comments','authoredAt','commentThread','ck-comment__external','innerText','@external','ck-suggestion__main','importWord','commentThreadInputView','_createButton','disableComments','render','<p>','ck-annotation__info-name','extendTemplate','fire','ck-suggestion','querySelector','element','_config','author','EXTERNAL_IMPORT_WORD_AVATAR','attributes','EXTERNAL_IMPORT_WORD_SUGGESTION','acceptButton','createElement','ck-suggestion--discard','discardSuggestion','check','bind','discardButton','setTemplate','Accept\x20suggestion','ck-suggestion__info','userView','execute','name','<span\x20class=\x22ck-suggestion-type\x22>','time','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','_model','canAccept','.ck-annotation__content-wrapper','delegate','ck-suggestion--accept','editorDestroyed','div','ck-comment__info-time','isActive','Discard\x20suggestion','span','content','split','source','ck-suggestion-wrapper','set','descriptionParts','creator','editorReady','title','formatDateTime','type','push','isEnabled','ck-annotation__actions','canDiscard','getUserViewNotificationText','children'];(function(_0x4128e9,_0x2c793f){const _0x1152fd=function(_0x43c3c3){while(--_0x43c3c3){_0x4128e9['push'](_0x4128e9['shift']());}};_0x1152fd(++_0x2c793f);}(_0x2c79,0x175));const _0x1152=function(_0x4128e9,_0x2c793f){_0x4128e9=_0x4128e9-0x0;let _0x1152fd=_0x2c79[_0x4128e9];return _0x1152fd;};import{getTranslation as _0x35b461}from'../../utils/common-translations';import{default as _0xa17426}from'./basesuggestionthreadview';import{ButtonView as _0x293d1c}from'ckeditor5/src/ui';import{icons as _0x419bac}from'ckeditor5/src/core';import{trimHtml as _0x42e3e3,UserView as _0x25a7b1}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0xa17426{constructor(_0x3ae3b4,_0x1ea225,_0x4a9e93,_0x213676){super(_0x3ae3b4,_0x1ea225,_0x4a9e93,_0x213676),this[_0x1152('0x27')](_0x1152('0x2d'),''),this[_0x1152('0xd')](_0x1152('0x2d'))['to'](this,_0x1152('0x28'),_0x29bfd9=>_0x29bfd9&&_0x29bfd9[0x0]?_0x29bfd9[0x0][_0x1152('0x2d')]:''),this[_0x1152('0xd')](_0x1152('0x44'))['to'](this,'descriptionParts',this,_0x1152('0x20'),(_0x2a99e9,_0x34a89c)=>{let _0x530aa8='';for(const _0x10384a of _0x2a99e9)_0x530aa8+=_0x1152('0x51')+ci(_0x10384a[_0x1152('0x23')],_0x10384a[_0x1152('0x3c')])+'</p>';return _0x34a89c?_0x530aa8:_0x42e3e3(_0x530aa8,{'limit':0x8c});}),this[_0x1152('0x43')]=null,this[_0x1152('0x8')]=this[_0x1152('0x4e')](_0x35b461(_0x3ae3b4,_0x1152('0x10')),_0x419bac[_0x1152('0xc')],_0x1152('0x1c'),'acceptSuggestion','sw'),this[_0x1152('0x8')]['bind'](_0x1152('0x2f'))['to'](this,_0x1152('0x19')),this[_0x1152('0xe')]=this[_0x1152('0x4e')](_0x35b461(_0x3ae3b4,_0x1152('0x21')),_0x419bac[_0x1152('0x34')],_0x1152('0xa'),_0x1152('0xb'),'sw'),this[_0x1152('0xe')][_0x1152('0xd')](_0x1152('0x2f'))['to'](this,_0x1152('0x31')),this[_0x1152('0x12')]=new _0x25a7b1(_0x3ae3b4,this[_0x1152('0x18')][_0x1152('0x4')],this[_0x1152('0x32')]()),this[_0x1152('0x12')][_0x1152('0x53')]({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this[_0x1152('0xf')](this[_0x1152('0x3e')]());}[_0x1152('0x3e')](){const _0x1ae01c=this[_0x1152('0x36')],_0x43ce6e=[{'tag':_0x1152('0x1e'),'attributes':{'class':[_0x1152('0x11'),'ck-annotation__info']},'children':[{'tag':_0x1152('0x22'),'children':[{'text':this['userView'][_0x1152('0x14')]}],'attributes':{'class':['ck-suggestion__info-name',_0x1152('0x52')]}},{'tag':_0x1152('0x16'),'attributes':{'datetime':_0x1ae01c['to']('authoredAt'),'class':[_0x1152('0x1f'),_0x1152('0x3b')]},'children':[{'text':_0x1ae01c['to'](_0x1152('0x46'),_0x40ed3e=>this['_config'][_0x1152('0x2c')](_0x40ed3e))}]}]},{'tag':_0x1152('0x1e'),'attributes':{'class':['ck-suggestion__actions',_0x1152('0x30')]},'children':[this[_0x1152('0x8')],this[_0x1152('0xe')]]},{'tag':_0x1152('0x1e'),'attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x1152('0x18')]['isExternal']&&_0x43ce6e['push']({'tag':_0x1152('0x1e'),'attributes':{'class':[_0x1152('0x48')]},'children':[{'text':this[_0x1152('0x38')]()}]});const _0x144110={'tag':'div','attributes':{'class':[_0x1152('0x26'),_0x1ae01c['if'](_0x1152('0x20'),_0x1152('0x37')),_0x1ae01c['to'](_0x1152('0x2d'),_0x3aa9c0=>'ck-suggestion-'+_0x3aa9c0),this[_0x1152('0x3')][_0x1152('0x4f')]&&_0x1152('0x45')],'data-suggestion-id':this[_0x1152('0x18')]['id'],'data-thread-id':this[_0x1152('0x18')][_0x1152('0x47')]['id'],'data-author-id':this['_model'][_0x1152('0x4')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1152('0x1e'),'attributes':{'class':[_0x1152('0x0'),_0x1152('0x35')]},'children':[this[_0x1152('0x12')],{'tag':'div','attributes':{'class':[_0x1152('0x4b'),'ck-annotation__main']},'children':_0x43ce6e}]}]};return this[_0x1152('0x39')]&&this[_0x1152('0x4d')]&&(_0x144110[_0x1152('0x33')][_0x1152('0x2e')](this[_0x1152('0x39')],this['commentThreadInputView']),this[_0x1152('0x39')][_0x1152('0x1b')]('editorReady')['to'](this),this[_0x1152('0x39')][_0x1152('0x1b')](_0x1152('0x1d'))['to'](this),this[_0x1152('0x4d')][_0x1152('0x1b')](_0x1152('0x2a'))['to'](this),this[_0x1152('0x4d')][_0x1152('0x1b')](_0x1152('0x1d'))['to'](this)),_0x144110;}[_0x1152('0x50')](){super[_0x1152('0x50')](),this[_0x1152('0x43')]=this[_0x1152('0x2')][_0x1152('0x1')](_0x1152('0x1a')),this[_0x1152('0x43')][_0x1152('0x40')]=this[_0x1152('0x44')],this['on']('change:description',(_0x26c43a,_0x454a88,_0x16c6c8)=>{this[_0x1152('0x43')]['innerHTML']=_0x16c6c8;});}[_0x1152('0x4e')](_0x42be5f,_0x26d2b6,_0x1d5abc,_0x5acee2,_0x3d89b5){const _0x845454=new _0x293d1c(this[_0x1152('0x41')]);return _0x845454[_0x1152('0x27')]({'label':_0x42be5f,'icon':_0x26d2b6,'tooltip':!0x0,'tooltipPosition':_0x3d89b5}),_0x845454[_0x1152('0x53')]({'attributes':{'class':_0x1d5abc}}),_0x845454['on'](_0x1152('0x13'),()=>{this[_0x1152('0x54')](_0x5acee2,this[_0x1152('0x18')]['id']);}),_0x845454;}[_0x1152('0x38')](){return _0x1152('0x4c')===this[_0x1152('0x18')]['attributes'][_0x1152('0x4a')][_0x1152('0x25')]?_0x35b461(this[_0x1152('0x41')],_0x1152('0x7')):_0x35b461(this[_0x1152('0x41')],_0x1152('0x3d'));}[_0x1152('0x32')](){return this[_0x1152('0x18')]['isExternal']?'importWord'===this[_0x1152('0x18')][_0x1152('0x6')][_0x1152('0x4a')]['source']?_0x35b461(this[_0x1152('0x41')],_0x1152('0x5'),this[_0x1152('0x18')][_0x1152('0x29')][_0x1152('0x14')]):_0x35b461(this[_0x1152('0x41')],_0x1152('0x3a'),this[_0x1152('0x18')]['creator'][_0x1152('0x14')]):null;}}function ci(_0x4e4c4d,_0x4d1989){let _0x226264='';return _0x226264+=_0x4e4c4d[_0x1152('0x24')]('*')[_0x1152('0x42')]((_0x3e0ee5,_0x41ab59)=>_0x41ab59%0x2!=0x0?_0x1152('0x15')+ri(_0x3e0ee5)+'</span>':ri(_0x3e0ee5))['join'](''),_0x4d1989&&(_0x226264+=_0x1152('0x17')+_0x4d1989['value']+_0x1152('0x3f')+_0x4d1989[_0x1152('0x2b')]+'\x22></span>'),_0x226264;}function ri(_0x5b41dd){const _0xf6b235=document[_0x1152('0x9')](_0x1152('0x22'));return _0xf6b235[_0x1152('0x49')]=_0x5b41dd,_0xf6b235[_0x1152('0x40')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x33bee7,_0x599bd0,_0x3f5e57){const t=_0x33bee7['t'];switch(_0x599bd0){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',_0x3f5e57);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f5e57);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f5e57);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f5e57);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f5e57);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',_0x3f5e57);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f5e57);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',_0x3f5e57);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f5e57);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f5e57);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f5e57);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f5e57);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f5e57);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f5e57);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f5e57);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f5e57);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f5e57);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f5e57);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f5e57);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f5e57);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f5e57);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f5e57);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f5e57);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'},_0x3f5e57);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f5e57);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f5e57);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f5e57);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f5e57);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f5e57);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'},_0x3f5e57);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f5e57);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f5e57);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f5e57);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f5e57);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'},_0x3f5e57);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f5e57);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'},_0x3f5e57);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'},_0x3f5e57);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f5e57);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'},_0x3f5e57);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f5e57);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'},_0x3f5e57);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f5e57);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f5e57);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'},_0x3f5e57);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'},_0x3f5e57);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 _0x599bd0;}}
|
|
23
|
+
export function getTranslation(_0xb5ed8d,_0x3af2f8,_0x3a0e4e){const t=_0xb5ed8d['t'];switch(_0x3af2f8){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3a0e4e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a0e4e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a0e4e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a0e4e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a0e4e);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x3a0e4e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a0e4e);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a0e4e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a0e4e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a0e4e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a0e4e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a0e4e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a0e4e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a0e4e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a0e4e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a0e4e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a0e4e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a0e4e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a0e4e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a0e4e);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x3a0e4e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a0e4e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a0e4e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a0e4e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a0e4e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a0e4e);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x3a0e4e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a0e4e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a0e4e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a0e4e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a0e4e);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3a0e4e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a0e4e);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x3a0e4e);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3a0e4e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a0e4e);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x3a0e4e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a0e4e);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x3a0e4e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a0e4e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a0e4e);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a0e4e);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a0e4e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x3af2f8;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd2b9=['getRanges','createPositionBefore','isTouching','length','next','from','isIntersecting','splice','value','createPositionAfter','isMultiRange','createPositionAt','isObject','isArray','sort','end','type','createRange','deletion','schema','replace','execute','isInContent','color','map'];(function(_0x599680,_0xd2b948){const _0x3e5e32=function(_0x251706){while(--_0x251706){_0x599680['push'](_0x599680['shift']());}};_0x3e5e32(++_0xd2b948);}(_0xd2b9,0x1dc));const _0x3e5e=function(_0x599680,_0xd2b948){_0x599680=_0x599680-0x0;let _0x3e5e32=_0xd2b9[_0x599680];return _0x3e5e32;};export function normalizeDescription(_0x186d9a){return Array[_0x3e5e('0xc')](_0x186d9a)||(_0x186d9a=[_0x186d9a]),_0x186d9a[_0x3e5e('0x17')](_0x49ec3c=>{const _0x3fd46a=_0x49ec3c['content'][_0x3e5e('0x13')](/\*/g,''),_0x3d3e98=_0x49ec3c['color']?'\x20[color\x20'+_0x49ec3c[_0x3e5e('0x16')][_0x3e5e('0x7')]+']':'';return'['+_0x49ec3c['type']+']\x20'+_0x3fd46a+_0x3d3e98;})['join'](';\x20');}export function sortSuggestions(_0x143f1c){return _0x143f1c[_0x3e5e('0xd')]((_0x4b4307,_0xd20c38)=>_0x3e5e('0x11')==_0x4b4307[_0x3e5e('0xf')]&&'deletion'!=_0xd20c38[_0x3e5e('0xf')]?-0x1:_0x3e5e('0x11')!=_0x4b4307[_0x3e5e('0xf')]&&'deletion'==_0xd20c38[_0x3e5e('0xf')]?0x1:0x0);}export function getSelectedSuggestions(_0x485648,_0x420f9f){const _0x388274=Array[_0x3e5e('0x4')](_0x485648['getRanges']()),_0x43aec7=new Set();for(const _0xd24628 of _0x420f9f)if(_0xd24628[_0x3e5e('0x15')])for(const _0x138874 of _0x388274)for(const _0x3f9af7 of _0xd24628[_0x3e5e('0x18')]())(_0x138874[_0x3e5e('0x5')](_0x3f9af7)||_0x485648['isCollapsed']&&!_0xd24628[_0x3e5e('0x9')]&&_0xd24628[_0x3e5e('0x3')]&&_0x3f9af7['end'][_0x3e5e('0x1')](_0x138874['start']))&&_0x43aec7['add'](_0xd24628);return _0x43aec7;}export function getRangesOfBlockGroups(_0x533627,_0x54045e){let _0x193b7f,_0x440303=0x0;const _0x357e11=[],_0x40511e=_0x54045e[_0x3e5e('0x12')];for(;_0x440303<_0x533627[_0x3e5e('0x2')];){const _0x63cace=_0x533627[_0x440303],_0x37543b=_0x533627[_0x440303+0x1];_0x193b7f||(_0x193b7f=_0x54045e[_0x3e5e('0x0')](_0x63cace)),co(_0x54045e,_0x63cace,_0x37543b)||(_0x357e11['push'](_0x54045e[_0x3e5e('0x10')](_0x193b7f,_0x40511e[_0x3e5e('0xb')](_0x63cace)?_0x54045e[_0x3e5e('0x8')](_0x63cace):_0x54045e[_0x3e5e('0xa')](_0x63cace,_0x3e5e('0xe')))),_0x193b7f=null),_0x440303++;}return _0x357e11;}function co(_0x42258e,_0x3749ec,_0x40ff5f){if(!_0x40ff5f)return!0x1;const _0x351e50=_0x42258e[_0x3e5e('0x8')](_0x3749ec),_0x3b3cbf=_0x42258e[_0x3e5e('0x0')](_0x40ff5f);return _0x351e50[_0x3e5e('0x1')](_0x3b3cbf);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x2b9394,_0x24f30d,_0x514352){for(;_0x514352[_0x3e5e('0x2')];){const _0x5c5df4=_0x514352[_0x3e5e('0x6')](0x0,0x64);_0x2b9394['change'](()=>{for(const _0x5e721d of _0x5c5df4)_0x5e721d[_0x3e5e('0x15')]&&_0x24f30d[_0x3e5e('0x14')](_0x5e721d['id']);});}}
|