@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231227.0 → 0.0.0-nightly-20231228.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 _0x4701=['getDescriptions','buttonView','descriptionParts','trackChanges.disableComments','push','registerAnnotation','get','addComment','value','commands','discardSelectedSuggestions','_handleControllerBuffer','size','separator','editing','_suggestionToController','_viewToController','getSuggestion','config','comments.maxCommentCharsWhenCollapsed','map','innerView','locale','getAllAdjacentSuggestions','createAnnotationView','switchbutton','acceptAllSuggestions','componentFactory','_unbindEditors','isMultiRange','isInContent','has','actionView','head','some','_descriptionFactory','init','suggestion-','comments.editorConfig','add','Annotations','filter','SuggestionThreadView','suggestionChanged','execute','getMarkers','EditorAnnotations','values','mainView','editor','suggestionLoaded','destroy','define','reduce','_createUIButton','from','_disableComments','_destroyController','lowest','isEnabled','activeAnnotations','listenTo','arrowView','discardButton','comments.maxCommentsWhenCollapsed','CommentsUI','_updateController','Discard\x20all\x20suggestions','hasSuggestion','pluginName','_handleSuggestionControllerDelayed','getFirstRange','getRanges','focus','delete','_bindAnnotationToEditors','unbind','commandName','bind','CommentsRepository','set','length','toMany','change:previous','isOn','getMarkerNames','_refreshActiveMarkers','trackChanges','isDirty','_annotationViews','TrackChangesEditing','_initializeController','type','model','suggestionUnloaded','previous','refreshSelectedViews','getJoined','createCommentThreadController','clear','stopListening','plugins','button','view','comments'];(function(_0x21b818,_0x470119){const _0x5a0642=function(_0x408c52){while(--_0x408c52){_0x21b818['push'](_0x21b818['shift']());}};_0x5a0642(++_0x470119);}(_0x4701,0xf1));const _0x5a06=function(_0x21b818,_0x470119){_0x21b818=_0x21b818-0x0;let _0x5a0642=_0x4701[_0x21b818];return _0x5a0642;};import{Plugin as _0x2ab02f}from'ckeditor5/src/core.js';import{Collection as _0x51bd4b}from'ckeditor5/src/utils.js';import{Model as _0x1e10b1,SplitButtonView as _0x21aae2,createDropdown as _0x1399a5,addListToDropdown as _0x19f8c2}from'ckeditor5/src/ui.js';import{Users as _0x1e0633,getDateTimeFormatter as _0x32063c,getAllMarkersDomElementsSorted as _0x589aab}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1a9c05 from'./trackchangesediting.js';import _0x305423 from'./ui/suggestioncontroller.js';import _0x3dc9cc from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x554c42}from'./utils/common-translations.js';import _0x190b51 from'../theme/icons/track-changes.svg';export default class d extends _0x2ab02f{static get['requires'](){return[_0x1a9c05,_0x1e0633,_0x5a06('0x30'),_0x5a06('0x9'),_0x5a06('0xf')];}static get[_0x5a06('0x26')](){return'TrackChangesUI';}constructor(_0x4175a9){super(_0x4175a9),this[_0x5a06('0x59')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x5a06('0x55')]=new Map();const _0x1fce86=this[_0x5a06('0x12')][_0x5a06('0x5c')];_0x1fce86[_0x5a06('0x15')]('trackChanges.SuggestionThreadView',_0x3dc9cc),_0x1fce86['define'](_0x5a06('0x4d'),!0x1),this['_disableComments']=_0x1fce86['get'](_0x5a06('0x4d'));}['_handleSuggestionControllerDelayed'](_0x3e3074,_0x3e1369){0x0===this['_handleControllerBuffer'][_0x5a06('0x56')]&&setTimeout(()=>{for(const [_0x46a706,_0x2f3c1e]of this['_handleControllerBuffer']){const _0x3d6916=this[_0x5a06('0x59')][_0x5a06('0x0')](_0x46a706);_0x3d6916||_0x2f3c1e?_0x3d6916&&_0x2f3c1e&&this[_0x5a06('0x1a')](_0x46a706):this[_0x5a06('0x3c')](_0x46a706);}this['editor'][_0x5a06('0x46')][_0x5a06('0x50')](_0x5a06('0xf'))[_0x5a06('0x41')](),this[_0x5a06('0x37')](),this[_0x5a06('0x55')][_0x5a06('0x44')]();},0xa),this[_0x5a06('0x55')]['set'](_0x3e3074,_0x3e1369);}[_0x5a06('0x5')](){const _0x3df092=this[_0x5a06('0x12')],_0x59b1f0=_0x3df092[_0x5a06('0x46')]['get']('TrackChangesEditing'),_0x24fb62=_0x3df092['plugins'][_0x5a06('0x50')](_0x5a06('0x9')),_0x3250ff=_0x3df092[_0x5a06('0x46')][_0x5a06('0x50')](_0x5a06('0xf')),_0xa07bec=_0x3df092['plugins'][_0x5a06('0x50')](_0x5a06('0x30'));_0x3df092['ui'][_0x5a06('0x65')][_0x5a06('0x8')](_0x5a06('0x38'),_0x2b2e86=>this[_0x5a06('0x17')](_0x2b2e86)),_0x3250ff['addSourceCollector'](()=>{const _0x4898a6=[];for(const [_0x5d6830,_0x338e3f]of Array[_0x5a06('0x18')](this[_0x5a06('0x59')])){const _0x1f4bab=_0x5d6830[_0x5a06('0x61')](),_0xb32032=[];for(const _0x26dde8 of _0x1f4bab){if(!_0x26dde8[_0x5a06('0x68')])continue;if(_0x26dde8[_0x5a06('0x67')]){_0xb32032['push'](..._0x26dde8[_0x5a06('0x29')]());continue;}const _0x2bffa5=_0x26dde8[_0x5a06('0x28')]();if(_0xb32032[_0x5a06('0x32')]>0x0){const _0x1db1ca=_0xb32032[0x0][_0x5a06('0x42')](_0x2bffa5);if(_0x1db1ca){_0xb32032[0x0]=_0x1db1ca;continue;}}_0xb32032[_0x5a06('0x4e')](_0x2bffa5);}_0x4898a6[_0x5a06('0x4e')]([_0x338e3f['view'],_0xb32032]);}return _0x4898a6;}),this[_0x5a06('0x1e')](_0x59b1f0,_0x5a06('0x13'),(_0x3aed46,_0x55f797)=>{this[_0x5a06('0x1e')](_0x55f797,_0x5a06('0x34'),(_0x35c157,_0x1a41e1,_0x436975,_0x4adcb6)=>{_0x55f797[_0x5a06('0x68')]&&(null==_0x436975?(this[_0x5a06('0x23')](_0x4adcb6['head']),this['_handleSuggestionControllerDelayed'](_0x55f797,!0x1)):(this[_0x5a06('0x23')](_0x436975[_0x5a06('0x2')]),null==_0x4adcb6&&this['_handleSuggestionControllerDelayed'](_0x55f797,!0x0)));}),null!==_0x55f797[_0x5a06('0x40')]?this[_0x5a06('0x23')](_0x55f797[_0x5a06('0x2')]):this[_0x5a06('0x27')](_0x55f797,!0x1);}),this[_0x5a06('0x1e')](_0x59b1f0,_0x5a06('0x3f'),(_0x3888e1,_0x178b82,_0x1d0b1a)=>{this[_0x5a06('0x45')](_0x178b82,_0x5a06('0x34')),this[_0x5a06('0x55')]['delete'](_0x178b82),this[_0x5a06('0x59')][_0x5a06('0x0')](_0x178b82)&&this[_0x5a06('0x1a')](_0x178b82),_0x1d0b1a&&this[_0x5a06('0x23')](_0x1d0b1a[_0x5a06('0x2')]);}),this[_0x5a06('0x1e')](_0x59b1f0,_0x5a06('0xc'),(_0x13c5d3,_0x331c18)=>{this[_0x5a06('0x23')](_0x331c18);}),this[_0x5a06('0x1e')](_0x24fb62,'change:activeAnnotations',()=>{this[_0x5a06('0x37')]();}),this[_0x5a06('0x1e')](_0xa07bec,_0x5a06('0x51'),(_0x434c58,{threadId:_0x391a8b,isFromAdapter:_0x46094c})=>{if(_0x46094c||!_0x59b1f0[_0x5a06('0x25')](_0x391a8b))return;const _0x23eb84=_0x59b1f0[_0x5a06('0x5b')](_0x391a8b);this[_0x5a06('0x59')]['get'](_0x23eb84)['view'][_0x5a06('0x2a')]();},{'priority':_0x5a06('0x1b')});}[_0x5a06('0x37')](){const _0x4e2898=this[_0x5a06('0x12')][_0x5a06('0x46')][_0x5a06('0x50')]('Annotations'),_0x1d1989=this['editor']['plugins']['get'](_0x5a06('0x3b')),_0x3872cf=Array[_0x5a06('0x18')](_0x4e2898[_0x5a06('0x1d')],_0x39a40a=>_0x39a40a[_0x5a06('0x5f')])[_0x5a06('0xa')](_0x40f536=>this[_0x5a06('0x5a')][_0x5a06('0x0')](_0x40f536)),_0x5e37fc=[];for(const _0x2421b4 of _0x3872cf){const _0x4c73a9=this['_viewToController']['get'](_0x2421b4)[_0x5a06('0x3e')][_0x5a06('0x61')]();_0x5e37fc[_0x5a06('0x4e')](..._0x4c73a9[_0x5a06('0x16')]((_0x70e1aa,_0x27daed)=>[..._0x70e1aa,..._0x27daed[_0x5a06('0x36')]()],[]));}_0x1d1989['activeMarkers']=_0x5e37fc;}[_0x5a06('0x17')](_0x5186c6){const _0x46ef1b=_0x1399a5(_0x5186c6,_0x21aae2),_0x2c5b15=this[_0x5a06('0x12')][_0x5a06('0x53')][_0x5a06('0x50')]('trackChanges'),_0x3bc4f2=_0x554c42(_0x5186c6,'Track\x20changes');_0x46ef1b[_0x5a06('0x4b')][_0x5a06('0x31')]({'tooltip':_0x3bc4f2,'label':_0x3bc4f2,'icon':_0x190b51}),_0x46ef1b[_0x5a06('0x4b')][_0x5a06('0x2f')]('isOn')['to'](_0x2c5b15,_0x5a06('0x52')),_0x46ef1b['buttonView']['on'](_0x5a06('0xd'),()=>{_0x2c5b15[_0x5a06('0xd')](),this['editor'][_0x5a06('0x58')][_0x5a06('0x48')]['focus']();});const _0x45f566=new _0x51bd4b(),_0x42c3cc=[{'type':_0x5a06('0x63'),'model':{'withText':!0x0,'label':_0x3bc4f2,'commandName':_0x5a06('0x38')}},{'type':_0x5a06('0x57')},{'type':_0x5a06('0x47'),'model':{'withText':!0x0,'label':_0x554c42(_0x5186c6,'Accept\x20all\x20suggestions'),'commandName':_0x5a06('0x64')}},{'type':'button','model':{'withText':!0x0,'label':_0x554c42(_0x5186c6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':_0x5a06('0x47'),'model':{'withText':!0x0,'label':_0x554c42(_0x5186c6,_0x5a06('0x24')),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x554c42(_0x5186c6,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x5a06('0x54')}}];for(const _0x502f88 of _0x42c3cc){let _0x597c50={'type':_0x5a06('0x57')};if(_0x502f88[_0x5a06('0x3e')]){const _0xa8aa8e=new _0x1e10b1(_0x502f88['model']),_0x257976=this[_0x5a06('0x12')][_0x5a06('0x53')][_0x5a06('0x50')](_0xa8aa8e[_0x5a06('0x2e')]);_0xa8aa8e['bind'](_0x5a06('0x35'),_0x5a06('0x1c'))['to'](_0x257976,_0x5a06('0x52'),_0x5a06('0x1c')),_0x597c50={'type':_0x502f88['type'],'model':_0xa8aa8e};}_0x45f566[_0x5a06('0x8')](_0x597c50);}_0x19f8c2(_0x46ef1b,_0x45f566);const _0x21ed3e=_0x42c3cc[_0x5a06('0xa')](_0x474022=>null!=_0x474022['model'])[_0x5a06('0x5e')](_0x2d4c7a=>this['editor'][_0x5a06('0x53')]['get'](_0x2d4c7a[_0x5a06('0x3e')]['commandName'])),_0x5e6fcb=_0x46ef1b[_0x5a06('0x4b')];return _0x5e6fcb[_0x5a06('0x1')][_0x5a06('0x2d')](_0x5a06('0x1c')),_0x5e6fcb[_0x5a06('0x1f')]['unbind']('isEnabled'),_0x5e6fcb[_0x5a06('0x1')][_0x5a06('0x2f')](_0x5a06('0x1c'))['to'](_0x2c5b15,'isEnabled'),_0x5e6fcb[_0x5a06('0x1f')][_0x5a06('0x2f')](_0x5a06('0x1c'))[_0x5a06('0x33')](_0x21ed3e,_0x5a06('0x1c'),(..._0x597db6)=>_0x597db6[_0x5a06('0x3')](_0x3f47fd=>_0x3f47fd)),_0x46ef1b['on'](_0x5a06('0xd'),_0x3b5d50=>{this['editor'][_0x5a06('0xd')](_0x3b5d50['source'][_0x5a06('0x2e')]),this['editor'][_0x5a06('0x58')]['view'][_0x5a06('0x2a')]();}),_0x46ef1b;}['_initializeController'](_0x11970d){const _0x4521ca=this['editor'],_0x2526fa=_0x4521ca[_0x5a06('0x5c')],_0x1968f5=_0x4521ca[_0x5a06('0x46')][_0x5a06('0x50')]('Annotations'),_0x386e1d=_0x4521ca[_0x5a06('0x46')][_0x5a06('0x50')](_0x5a06('0x30')),_0xc5c8ca=_0x4521ca[_0x5a06('0x46')]['get']('EditorAnnotations'),_0x3beaf2=_0x4521ca[_0x5a06('0x46')][_0x5a06('0x50')](_0x1e0633)['me'],_0x46d0c4=_0x2526fa[_0x5a06('0x50')](_0x5a06('0x38'))[_0x5a06('0xb')],{CommentsListView:_0x5a3c85,CommentThreadInputView:_0x3358d0}=_0x4521ca[_0x5a06('0x46')][_0x5a06('0x50')](_0x5a06('0x22'));let _0x4c6bbc,_0x7ba437;this[_0x5a06('0x3a')][_0x5a06('0x0')](_0x11970d['id'])?(_0x7ba437=this['_annotationViews'][_0x5a06('0x50')](_0x11970d['id']),_0x4c6bbc=_0x7ba437[_0x5a06('0x11')]):(_0x4c6bbc=new _0x46d0c4(_0x4521ca[_0x5a06('0x60')],_0x11970d,_0x3beaf2,{'disableComments':this[_0x5a06('0x19')],'editorConfig':_0x2526fa['get'](_0x5a06('0x7')),'maxCommentsWhenCollapsed':_0x2526fa[_0x5a06('0x50')](_0x5a06('0x21')),'maxThreadTotalWeight':_0x2526fa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2526fa[_0x5a06('0x50')](_0x5a06('0x5d')),'formatDateTime':_0x32063c(_0x2526fa['get'](_0x5a06('0x60'))),'CommentView':_0x2526fa['get'](_0x5a06('0x49'))['CommentView'],'CommentsListView':_0x5a3c85,'CommentThreadInputView':_0x3358d0}),_0x4c6bbc['acceptButton']['on'](_0x5a06('0xd'),()=>{_0x4521ca['editing']['view'][_0x5a06('0x2a')]();}),_0x4c6bbc[_0x5a06('0x20')]['on'](_0x5a06('0xd'),()=>{_0x4521ca[_0x5a06('0x58')][_0x5a06('0x48')][_0x5a06('0x2a')]();}),_0x7ba437=_0x1968f5[_0x5a06('0x62')](this['editor'][_0x5a06('0x60')],_0x4c6bbc),_0x7ba437['bind'](_0x5a06('0x39'))['to'](_0x4c6bbc,'isDirty'),_0x7ba437[_0x5a06('0x2f')](_0x5a06('0x32'))['to'](_0x4c6bbc),_0x7ba437['bind']('type')['to'](_0x4c6bbc,'type',_0x51656a=>_0x5a06('0x6')+_0x51656a),this['_annotationViews']['set'](_0x11970d['id'],_0x7ba437));const _0x34f065=_0x386e1d[_0x5a06('0x43')](_0x11970d['commentThread'],_0x4c6bbc),_0x18a5de=new _0x305423(_0x4521ca,_0x11970d,_0x4c6bbc,_0x34f065),_0x42c408=_0x11970d[_0x5a06('0x61')]()[_0x5a06('0xa')](_0x178be6=>_0x178be6['isInContent']);_0x4c6bbc[_0x5a06('0x4c')]=_0x4521ca[_0x5a06('0x46')]['get'](_0x5a06('0x3b'))[_0x5a06('0x4')][_0x5a06('0x4a')](_0x42c408),this[_0x5a06('0x59')][_0x5a06('0x31')](_0x11970d,_0x18a5de),this[_0x5a06('0x5a')][_0x5a06('0x31')](_0x4c6bbc,_0x18a5de);const _0x962c82=_0x1968f5['createAnnotation']({'view':_0x7ba437,'target':()=>{const _0xb0a9aa=[],_0x229570=_0x11970d[_0x5a06('0x61')]()[_0x5a06('0xa')](_0x1f4a7c=>_0x1f4a7c[_0x5a06('0x68')]);for(const _0x5e4ab9 of _0x229570)_0xb0a9aa['push'](..._0x5e4ab9[_0x5a06('0xe')]());return _0x589aab(_0x4521ca['editing'],_0xb0a9aa);},'type':()=>_0x5a06('0x6')+_0x18a5de[_0x5a06('0x48')][_0x5a06('0x3d')]});_0x386e1d[_0x5a06('0x2c')](_0x4c6bbc,_0x962c82),_0x1968f5[_0x5a06('0x8')](_0x962c82),_0xc5c8ca[_0x5a06('0x4f')](_0x962c82);}[_0x5a06('0x1a')](_0x1d4ca3){const _0x185d5f=this[_0x5a06('0x12')][_0x5a06('0x46')][_0x5a06('0x50')](_0x5a06('0x30')),_0x2cf623=this[_0x5a06('0x12')][_0x5a06('0x46')][_0x5a06('0x50')](_0x5a06('0x9')),_0x52e11c=this['_suggestionToController'][_0x5a06('0x50')](_0x1d4ca3),_0x1bd11b=_0x52e11c[_0x5a06('0x48')],_0x51ba0b=_0x2cf623['getByInnerView'](_0x1bd11b);_0x185d5f[_0x5a06('0x66')](_0x1bd11b),_0x51ba0b&&_0x2cf623['remove'](_0x51ba0b),this[_0x5a06('0x59')][_0x5a06('0x2b')](_0x1d4ca3),this[_0x5a06('0x5a')]['delete'](_0x1bd11b),_0x52e11c[_0x5a06('0x14')]();}['_updateController'](_0x2640ca){if(!_0x2640ca[_0x5a06('0x68')]||!this[_0x5a06('0x59')][_0x5a06('0x0')](_0x2640ca))return;const _0x40ddfd=this[_0x5a06('0x12')][_0x5a06('0x46')][_0x5a06('0x50')]('TrackChangesEditing'),_0x31330=this[_0x5a06('0x59')][_0x5a06('0x50')](_0x2640ca),_0x40fc5c=_0x2640ca[_0x5a06('0x61')]();_0x31330['view'][_0x5a06('0x4c')]=_0x40ddfd['_descriptionFactory'][_0x5a06('0x4a')](_0x40fc5c);}[_0x5a06('0x14')](){for(const _0x19deca of this[_0x5a06('0x59')]['keys']())this[_0x5a06('0x1a')](_0x19deca);for(const _0x90290f of this[_0x5a06('0x3a')][_0x5a06('0x10')]())_0x90290f[_0x5a06('0x11')][_0x5a06('0x14')]();super[_0x5a06('0x14')]();}}
|
|
23
|
+
const _0x3d3d=['trackChanges.disableComments','commandName','keys','_createUIButton','config','refreshSelectedViews','CommentsRepository','createCommentThreadController','destroy','isEnabled','change:activeAnnotations','requires','_updateController','getAllAdjacentSuggestions','type','isOn','_handleControllerBuffer','createAnnotation','reduce','Accept\x20all\x20suggestions','getRanges','filter','_initializeController','locale','commands','_destroyController','pluginName','descriptionParts','acceptAllSuggestions','unbind','Discard\x20all\x20suggestions','view','Annotations','isInContent','clear','_descriptionFactory','createAnnotationView','_disableComments','get','getJoined','suggestionLoaded','arrowView','addComment','hasSuggestion','editor','_refreshActiveMarkers','componentFactory','set','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','source','model','TrackChangesEditing','size','acceptButton','mainView','plugins','delete','focus','Accept\x20all\x20selected\x20suggestions','execute','bind','CommentsUI','SuggestionThreadView','getMarkers','trackChanges','buttonView','getDescriptions','editing','activeMarkers','previous','comments.maxThreadTotalWeight','remove','lowest','isDirty','length','suggestionChanged','discardAllSuggestions','some','EditorAnnotations','has','change:previous','head','suggestion-','comments.maxCommentCharsWhenCollapsed','separator','init','push','_viewToController','switchbutton','from','_handleSuggestionControllerDelayed','_annotationViews','map','listenTo','button','discardSelectedSuggestions','_suggestionToController'];(function(_0x31619f,_0x3d3d34){const _0x3305d0=function(_0x3c9c9c){while(--_0x3c9c9c){_0x31619f['push'](_0x31619f['shift']());}};_0x3305d0(++_0x3d3d34);}(_0x3d3d,0x133));const _0x3305=function(_0x31619f,_0x3d3d34){_0x31619f=_0x31619f-0x0;let _0x3305d0=_0x3d3d[_0x31619f];return _0x3305d0;};import{Plugin as _0x351028}from'ckeditor5/src/core.js';import{Collection as _0x1173f1}from'ckeditor5/src/utils.js';import{Model as _0x799070,SplitButtonView as _0x2e3977,createDropdown as _0x387b54,addListToDropdown as _0x59012f}from'ckeditor5/src/ui.js';import{Users as _0x5d513c,getDateTimeFormatter as _0x522703,getAllMarkersDomElementsSorted as _0x21a213}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x857675 from'./trackchangesediting.js';import _0x516dc6 from'./ui/suggestioncontroller.js';import _0x13fb69 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x1162fc}from'./utils/common-translations.js';import _0x43f046 from'../theme/icons/track-changes.svg';export default class d extends _0x351028{static get[_0x3305('0x60')](){return[_0x857675,_0x5d513c,_0x3305('0x5b'),'Annotations','EditorAnnotations'];}static get[_0x3305('0xd')](){return _0x3305('0x23');}constructor(_0x1415c8){super(_0x1415c8),this[_0x3305('0x54')]=new Map(),this[_0x3305('0x4b')]=new Map(),this[_0x3305('0x4f')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x24481c=this['editor'][_0x3305('0x59')];_0x24481c['define']('trackChanges.SuggestionThreadView',_0x13fb69),_0x24481c['define']('trackChanges.disableComments',!0x1),this[_0x3305('0x18')]=_0x24481c[_0x3305('0x19')](_0x3305('0x55'));}[_0x3305('0x4e')](_0x207587,_0x381ad5){0x0===this['_handleControllerBuffer'][_0x3305('0x28')]&&setTimeout(()=>{for(const [_0x596aea,_0x3b6de4]of this[_0x3305('0x3')]){const _0x258fc3=this[_0x3305('0x54')][_0x3305('0x43')](_0x596aea);_0x258fc3||_0x3b6de4?_0x258fc3&&_0x3b6de4&&this['_destroyController'](_0x596aea):this[_0x3305('0x9')](_0x596aea);}this[_0x3305('0x1f')][_0x3305('0x2b')]['get']('EditorAnnotations')[_0x3305('0x5a')](),this['_refreshActiveMarkers'](),this[_0x3305('0x3')][_0x3305('0x15')]();},0xa),this[_0x3305('0x3')][_0x3305('0x22')](_0x207587,_0x381ad5);}[_0x3305('0x49')](){const _0x27aaef=this[_0x3305('0x1f')],_0x2479ed=_0x27aaef[_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x27')),_0x427112=_0x27aaef[_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x13')),_0x1d4747=_0x27aaef['plugins'][_0x3305('0x19')](_0x3305('0x42')),_0x443b07=_0x27aaef[_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x5b'));_0x27aaef['ui'][_0x3305('0x21')]['add']('trackChanges',_0x288f15=>this[_0x3305('0x58')](_0x288f15)),_0x1d4747['addSourceCollector'](()=>{const _0x531eb7=[];for(const [_0xf4161e,_0x3c4b1f]of Array[_0x3305('0x4d')](this[_0x3305('0x54')])){const _0xff07a2=_0xf4161e[_0x3305('0x0')](),_0x8eca30=[];for(const _0x5502dc of _0xff07a2){if(!_0x5502dc['isInContent'])continue;if(_0x5502dc['isMultiRange']){_0x8eca30['push'](..._0x5502dc[_0x3305('0x7')]());continue;}const _0x28a2ec=_0x5502dc['getFirstRange']();if(_0x8eca30['length']>0x0){const _0x3445b0=_0x8eca30[0x0][_0x3305('0x1a')](_0x28a2ec);if(_0x3445b0){_0x8eca30[0x0]=_0x3445b0;continue;}}_0x8eca30['push'](_0x28a2ec);}_0x531eb7[_0x3305('0x4a')]([_0x3c4b1f[_0x3305('0x12')],_0x8eca30]);}return _0x531eb7;}),this[_0x3305('0x51')](_0x2479ed,_0x3305('0x1b'),(_0x289d50,_0x3e7274)=>{this[_0x3305('0x51')](_0x3e7274,_0x3305('0x44'),(_0x517251,_0x26de54,_0xc1eea1,_0x123f05)=>{_0x3e7274[_0x3305('0x14')]&&(null==_0xc1eea1?(this[_0x3305('0x61')](_0x123f05['head']),this[_0x3305('0x4e')](_0x3e7274,!0x1)):(this[_0x3305('0x61')](_0xc1eea1[_0x3305('0x45')]),null==_0x123f05&&this[_0x3305('0x4e')](_0x3e7274,!0x0)));}),null!==_0x3e7274[_0x3305('0x39')]?this[_0x3305('0x61')](_0x3e7274[_0x3305('0x45')]):this[_0x3305('0x4e')](_0x3e7274,!0x1);}),this[_0x3305('0x51')](_0x2479ed,'suggestionUnloaded',(_0x2ef7f7,_0x1dc6e1,_0x1f3855)=>{this['stopListening'](_0x1dc6e1,_0x3305('0x44')),this[_0x3305('0x3')][_0x3305('0x2c')](_0x1dc6e1),this[_0x3305('0x54')]['has'](_0x1dc6e1)&&this[_0x3305('0xc')](_0x1dc6e1),_0x1f3855&&this[_0x3305('0x61')](_0x1f3855[_0x3305('0x45')]);}),this[_0x3305('0x51')](_0x2479ed,_0x3305('0x3f'),(_0x2c605f,_0x1983d9)=>{this['_updateController'](_0x1983d9);}),this['listenTo'](_0x427112,_0x3305('0x5f'),()=>{this[_0x3305('0x20')]();}),this[_0x3305('0x51')](_0x443b07,_0x3305('0x1d'),(_0x8ccaf9,{threadId:_0x1d2e84,isFromAdapter:_0x4618b8})=>{if(_0x4618b8||!_0x2479ed[_0x3305('0x1e')](_0x1d2e84))return;const _0x3bc1ec=_0x2479ed['getSuggestion'](_0x1d2e84);this[_0x3305('0x54')][_0x3305('0x19')](_0x3bc1ec)[_0x3305('0x12')][_0x3305('0x2d')]();},{'priority':_0x3305('0x3c')});}[_0x3305('0x20')](){const _0x3c781b=this['editor'][_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x13')),_0xf1dc84=this[_0x3305('0x1f')][_0x3305('0x2b')][_0x3305('0x19')]('TrackChangesEditing'),_0x212173=Array[_0x3305('0x4d')](_0x3c781b['activeAnnotations'],_0x2288da=>_0x2288da['innerView'])['filter'](_0x52a912=>this[_0x3305('0x4b')][_0x3305('0x43')](_0x52a912)),_0x3cc36a=[];for(const _0x4d98b7 of _0x212173){const _0x5f5272=this[_0x3305('0x4b')][_0x3305('0x19')](_0x4d98b7)[_0x3305('0x26')][_0x3305('0x0')]();_0x3cc36a[_0x3305('0x4a')](..._0x5f5272[_0x3305('0x5')]((_0x4c281b,_0x38e48e)=>[..._0x4c281b,..._0x38e48e['getMarkerNames']()],[]));}_0xf1dc84[_0x3305('0x38')]=_0x3cc36a;}['_createUIButton'](_0x29ba2){const _0x28df99=_0x387b54(_0x29ba2,_0x2e3977),_0x2a2544=this[_0x3305('0x1f')][_0x3305('0xb')]['get']('trackChanges'),_0x3c90fb=_0x1162fc(_0x29ba2,'Track\x20changes');_0x28df99[_0x3305('0x35')][_0x3305('0x22')]({'tooltip':_0x3c90fb,'label':_0x3c90fb,'icon':_0x43f046}),_0x28df99[_0x3305('0x35')][_0x3305('0x30')](_0x3305('0x2'))['to'](_0x2a2544,'value'),_0x28df99[_0x3305('0x35')]['on'](_0x3305('0x2f'),()=>{_0x2a2544[_0x3305('0x2f')](),this[_0x3305('0x1f')][_0x3305('0x37')]['view'][_0x3305('0x2d')]();});const _0x42c73c=new _0x1173f1(),_0x48129d=[{'type':_0x3305('0x4c'),'model':{'withText':!0x0,'label':_0x3c90fb,'commandName':_0x3305('0x34')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x1162fc(_0x29ba2,_0x3305('0x6')),'commandName':_0x3305('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x1162fc(_0x29ba2,_0x3305('0x2e')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x3305('0x52'),'model':{'withText':!0x0,'label':_0x1162fc(_0x29ba2,_0x3305('0x11')),'commandName':_0x3305('0x40')}},{'type':_0x3305('0x52'),'model':{'withText':!0x0,'label':_0x1162fc(_0x29ba2,_0x3305('0x24')),'commandName':_0x3305('0x53')}}];for(const _0x1bae0c of _0x48129d){let _0x415482={'type':_0x3305('0x48')};if(_0x1bae0c[_0x3305('0x26')]){const _0x5dfe18=new _0x799070(_0x1bae0c[_0x3305('0x26')]),_0x5e41d0=this[_0x3305('0x1f')][_0x3305('0xb')][_0x3305('0x19')](_0x5dfe18['commandName']);_0x5dfe18[_0x3305('0x30')]('isOn',_0x3305('0x5e'))['to'](_0x5e41d0,'value','isEnabled'),_0x415482={'type':_0x1bae0c['type'],'model':_0x5dfe18};}_0x42c73c['add'](_0x415482);}_0x59012f(_0x28df99,_0x42c73c);const _0x33e062=_0x48129d[_0x3305('0x8')](_0x40a975=>null!=_0x40a975[_0x3305('0x26')])[_0x3305('0x50')](_0x439d2c=>this[_0x3305('0x1f')]['commands']['get'](_0x439d2c[_0x3305('0x26')][_0x3305('0x56')])),_0x26e171=_0x28df99[_0x3305('0x35')];return _0x26e171['actionView']['unbind'](_0x3305('0x5e')),_0x26e171[_0x3305('0x1c')][_0x3305('0x10')]('isEnabled'),_0x26e171['actionView'][_0x3305('0x30')]('isEnabled')['to'](_0x2a2544,_0x3305('0x5e')),_0x26e171['arrowView'][_0x3305('0x30')](_0x3305('0x5e'))['toMany'](_0x33e062,'isEnabled',(..._0x27447e)=>_0x27447e[_0x3305('0x41')](_0x29cefb=>_0x29cefb)),_0x28df99['on'](_0x3305('0x2f'),_0x452eaf=>{this['editor'][_0x3305('0x2f')](_0x452eaf[_0x3305('0x25')][_0x3305('0x56')]),this[_0x3305('0x1f')]['editing'][_0x3305('0x12')][_0x3305('0x2d')]();}),_0x28df99;}[_0x3305('0x9')](_0x4b494b){const _0x52dc5b=this['editor'],_0x418a41=_0x52dc5b['config'],_0x332293=_0x52dc5b['plugins'][_0x3305('0x19')](_0x3305('0x13')),_0x49f0dc=_0x52dc5b[_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x5b')),_0x2078dd=_0x52dc5b['plugins'][_0x3305('0x19')](_0x3305('0x42')),_0x207bd1=_0x52dc5b[_0x3305('0x2b')][_0x3305('0x19')](_0x5d513c)['me'],_0x1c6b82=_0x418a41['get']('trackChanges')[_0x3305('0x32')],{CommentsListView:_0x3a952a,CommentThreadInputView:_0xf28250}=_0x52dc5b[_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x31'));let _0x29bb3f,_0xb38230;this['_annotationViews']['has'](_0x4b494b['id'])?(_0xb38230=this['_annotationViews']['get'](_0x4b494b['id']),_0x29bb3f=_0xb38230[_0x3305('0x2a')]):(_0x29bb3f=new _0x1c6b82(_0x52dc5b[_0x3305('0xa')],_0x4b494b,_0x207bd1,{'disableComments':this[_0x3305('0x18')],'editorConfig':_0x418a41[_0x3305('0x19')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x418a41[_0x3305('0x19')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x418a41['get'](_0x3305('0x3a')),'maxCommentCharsWhenCollapsed':_0x418a41['get'](_0x3305('0x47')),'formatDateTime':_0x522703(_0x418a41[_0x3305('0x19')]('locale')),'CommentView':_0x418a41['get']('comments')['CommentView'],'CommentsListView':_0x3a952a,'CommentThreadInputView':_0xf28250}),_0x29bb3f[_0x3305('0x29')]['on']('execute',()=>{_0x52dc5b[_0x3305('0x37')][_0x3305('0x12')]['focus']();}),_0x29bb3f['discardButton']['on'](_0x3305('0x2f'),()=>{_0x52dc5b[_0x3305('0x37')][_0x3305('0x12')][_0x3305('0x2d')]();}),_0xb38230=_0x332293[_0x3305('0x17')](this[_0x3305('0x1f')][_0x3305('0xa')],_0x29bb3f),_0xb38230['bind'](_0x3305('0x3d'))['to'](_0x29bb3f,_0x3305('0x3d')),_0xb38230['bind'](_0x3305('0x3e'))['to'](_0x29bb3f),_0xb38230[_0x3305('0x30')](_0x3305('0x1'))['to'](_0x29bb3f,'type',_0x23d8dc=>_0x3305('0x46')+_0x23d8dc),this[_0x3305('0x4f')][_0x3305('0x22')](_0x4b494b['id'],_0xb38230));const _0x38edf9=_0x49f0dc[_0x3305('0x5c')](_0x4b494b['commentThread'],_0x29bb3f),_0x14a1fa=new _0x516dc6(_0x52dc5b,_0x4b494b,_0x29bb3f,_0x38edf9),_0x42364c=_0x4b494b['getAllAdjacentSuggestions']()[_0x3305('0x8')](_0x1ecb75=>_0x1ecb75[_0x3305('0x14')]);_0x29bb3f[_0x3305('0xe')]=_0x52dc5b[_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x27'))[_0x3305('0x16')][_0x3305('0x36')](_0x42364c),this[_0x3305('0x54')]['set'](_0x4b494b,_0x14a1fa),this[_0x3305('0x4b')][_0x3305('0x22')](_0x29bb3f,_0x14a1fa);const _0x36ec10=_0x332293[_0x3305('0x4')]({'view':_0xb38230,'target':()=>{const _0x5c5e42=[],_0x6b383e=_0x4b494b[_0x3305('0x0')]()[_0x3305('0x8')](_0x10f83e=>_0x10f83e[_0x3305('0x14')]);for(const _0x1176a6 of _0x6b383e)_0x5c5e42['push'](..._0x1176a6[_0x3305('0x33')]());return _0x21a213(_0x52dc5b[_0x3305('0x37')],_0x5c5e42);},'type':()=>_0x3305('0x46')+_0x14a1fa[_0x3305('0x12')]['type']});_0x49f0dc['_bindAnnotationToEditors'](_0x29bb3f,_0x36ec10),_0x332293['add'](_0x36ec10),_0x2078dd['registerAnnotation'](_0x36ec10);}[_0x3305('0xc')](_0x5c8bea){const _0x3522f7=this['editor']['plugins'][_0x3305('0x19')](_0x3305('0x5b')),_0x1c09e=this[_0x3305('0x1f')][_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x13')),_0x4c5d1a=this['_suggestionToController']['get'](_0x5c8bea),_0x58fd52=_0x4c5d1a[_0x3305('0x12')],_0x49d9fc=_0x1c09e['getByInnerView'](_0x58fd52);_0x3522f7['_unbindEditors'](_0x58fd52),_0x49d9fc&&_0x1c09e[_0x3305('0x3b')](_0x49d9fc),this[_0x3305('0x54')][_0x3305('0x2c')](_0x5c8bea),this[_0x3305('0x4b')]['delete'](_0x58fd52),_0x4c5d1a['destroy']();}[_0x3305('0x61')](_0x1d6033){if(!_0x1d6033[_0x3305('0x14')]||!this[_0x3305('0x54')][_0x3305('0x43')](_0x1d6033))return;const _0x364e84=this[_0x3305('0x1f')][_0x3305('0x2b')][_0x3305('0x19')](_0x3305('0x27')),_0x5b8b4f=this[_0x3305('0x54')][_0x3305('0x19')](_0x1d6033),_0x414783=_0x1d6033[_0x3305('0x0')]();_0x5b8b4f[_0x3305('0x12')][_0x3305('0xe')]=_0x364e84[_0x3305('0x16')][_0x3305('0x36')](_0x414783);}[_0x3305('0x5d')](){for(const _0x229388 of this[_0x3305('0x54')][_0x3305('0x57')]())this['_destroyController'](_0x229388);for(const _0x1293ea of this[_0x3305('0x4f')]['values']())_0x1293ea[_0x3305('0x2a')][_0x3305('0x5d')]();super[_0x3305('0x5d')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cb0=['_editor','add','discardSuggestion','model','get','_removePendingAction','commands','acceptSuggestion','getRanges','view','unbind','PENDING_ACTION_SUGGESTION','destroy','PendingActions','bind','canEditAt','_setPendingAction','execute','_acceptCommand','isEnabled','commentThreadController','isDirty','canDiscard','locale','listenTo','_pendingAction','plugins','stopListening','remove','_discardCommand'];(function(_0x422ac5,_0x2cb06e){const _0x1888b4=function(_0x5e900f){while(--_0x5e900f){_0x422ac5['push'](_0x422ac5['shift']());}};_0x1888b4(++_0x2cb06e);}(_0x2cb0,0x17a));const _0x1888=function(_0x422ac5,_0x2cb06e){_0x422ac5=_0x422ac5-0x0;let _0x1888b4=_0x2cb0[_0x422ac5];return _0x1888b4;};import{ObservableMixin as _0x25e9b4}from'ckeditor5/src/utils.js';import{getTranslation as _0x4a82c8}from'../utils/common-translations.js';export default class Qt extends _0x25e9b4(){constructor(_0x45a228,_0x25a003,_0x4eb7ae,_0x12c5b2){super(),this[_0x1888('0xf')]=_0x25a003,this[_0x1888('0x15')]=_0x4eb7ae,this['commentThreadController']=_0x12c5b2,this['_editor']=_0x45a228,this[_0x1888('0x0')]=_0x45a228[_0x1888('0x12')][_0x1888('0x10')]('acceptSuggestion'),this[_0x1888('0xb')]=_0x45a228[_0x1888('0x12')]['get'](_0x1888('0xe')),this[_0x1888('0x15')]['bind']('isEnabled')['to'](this['_acceptCommand'],this[_0x1888('0xb')],(_0x3c9110,_0x1f27fd)=>_0x3c9110||_0x1f27fd),this[_0x1888('0x15')][_0x1888('0x1a')]('canAccept')['to'](this[_0x1888('0x0')],_0x1888('0x1'),_0x8ac19d=>_0x8ac19d&&this['_editor']['model'][_0x1888('0x1b')](_0x25a003[_0x1888('0x14')]())),this[_0x1888('0x15')][_0x1888('0x1a')](_0x1888('0x4'))['to'](this[_0x1888('0xb')],'isEnabled',_0x452a07=>_0x452a07&&this[_0x1888('0xc')][_0x1888('0xf')][_0x1888('0x1b')](_0x25a003[_0x1888('0x14')]())),this['_pendingAction']=null,_0x4eb7ae['isDirty']&&this[_0x1888('0x1c')](),this[_0x1888('0x6')](_0x4eb7ae,'acceptSuggestion',()=>this[_0x1888('0x13')]()),this[_0x1888('0x6')](_0x4eb7ae,_0x1888('0xe'),()=>this['discardSuggestion']()),this[_0x1888('0x6')](_0x4eb7ae,'change:isDirty',()=>{_0x4eb7ae[_0x1888('0x3')]?this['_setPendingAction']():this[_0x1888('0x11')]();});}['acceptSuggestion'](){this[_0x1888('0x0')][_0x1888('0x1d')](this[_0x1888('0xf')]['id']);}['discardSuggestion'](){this[_0x1888('0xb')][_0x1888('0x1d')](this[_0x1888('0xf')]['id']);}['destroy'](){this['view'][_0x1888('0x16')]('isEnabled'),this['view'][_0x1888('0x16')]('canAccept'),this[_0x1888('0x15')][_0x1888('0x16')](_0x1888('0x4')),this[_0x1888('0x9')](),this[_0x1888('0x2')][_0x1888('0x18')](),this[_0x1888('0x7')]&&this[_0x1888('0x11')]();}[_0x1888('0x1c')](){const _0x5eefdd=_0x4a82c8(this[_0x1888('0xc')][_0x1888('0x5')],_0x1888('0x17'));this[_0x1888('0x7')]=this[_0x1888('0xc')]['plugins'][_0x1888('0x10')](_0x1888('0x19'))[_0x1888('0xd')](_0x5eefdd);}[_0x1888('0x11')](){null!==this[_0x1888('0x7')]&&this[_0x1888('0xc')][_0x1888('0x8')][_0x1888('0x10')](_0x1888('0x19'))[_0x1888('0xa')](this['_pendingAction']),this['_pendingAction']=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e4c=['focus','fire','submit','cancel','authoredAt','isReadOnly','commentThreadInputView','commentThread','bind','editor','commentInputView','set','delegate','_config','canDiscard','disabledSubmit','value','isEnabled','canAccept','destroy','updateComment','_localUser','CommentView','_createCommentThreadInputView','setData','removeComment','_createCommentViews','disableComments','_model','commentsListView','hasDirtyComment','isActive','element','isDirty','length','assign'];(function(_0x177b29,_0x4e4c71){const _0x58a6bc=function(_0x257b83){while(--_0x257b83){_0x177b29['push'](_0x177b29['shift']());}};_0x58a6bc(++_0x4e4c71);}(_0x4e4c,0xc6));const _0x58a6=function(_0x177b29,_0x4e4c71){_0x177b29=_0x177b29-0x0;let _0x58a6bc=_0x4e4c[_0x177b29];return _0x58a6bc;};import{View as _0x46fa19}from'ckeditor5/src/ui.js';export default class es extends _0x46fa19{constructor(_0x35cff7,_0x28a8c8,_0x30a186,_0x5a9aa1){super(_0x35cff7),this[_0x58a6('0xb')]=null,this[_0x58a6('0x18')]=null,this[_0x58a6('0x1d')](_0x58a6('0xd'),!0x1),this['set'](_0x58a6('0x16'),_0x28a8c8[_0x58a6('0x16')]),this['bind'](_0x58a6('0x16'))['to'](_0x28a8c8),this[_0x58a6('0x1d')]('descriptionParts',[]),this['set'](_0x58a6('0xf'),!0x1),this[_0x58a6('0x1d')](_0x58a6('0x23'),!0x1),this[_0x58a6('0x1d')](_0x58a6('0x0'),!0x1),this[_0x58a6('0x1d')](_0x58a6('0x20'),!0x1),this[_0x58a6('0xa')]=_0x28a8c8,this[_0x58a6('0x3')]=_0x30a186,this['_config']=_0x5a9aa1,_0x5a9aa1[_0x58a6('0x9')]?this[_0x58a6('0x1d')](_0x58a6('0x10'),0x1):this[_0x58a6('0x8')]();}[_0x58a6('0x12')](){this[_0x58a6('0xe')][_0x58a6('0x12')]();}[_0x58a6('0x1')](){this['commentsListView']&&this[_0x58a6('0xb')][_0x58a6('0x1')](),this[_0x58a6('0x18')]&&this[_0x58a6('0x18')][_0x58a6('0x1')](),super[_0x58a6('0x1')]();}[_0x58a6('0x8')](){const {CommentsListView:_0x4f6a9d}=this[_0x58a6('0x1f')];this['commentsListView']=new _0x4f6a9d(this['locale'],this[_0x58a6('0xa')][_0x58a6('0x19')],Object[_0x58a6('0x11')]({'CommentView':this[_0x58a6('0x1f')][_0x58a6('0x4')]},this[_0x58a6('0x1f')])),this[_0x58a6('0xb')]['delegate']('removeComment')['to'](this),this['commentsListView'][_0x58a6('0x1e')](_0x58a6('0x2'))['to'](this),this[_0x58a6('0xb')][_0x58a6('0x1a')]('isActive')['to'](this),this[_0x58a6('0x1d')]('length',this['commentsListView'][_0x58a6('0x10')]+0x1),this['bind'](_0x58a6('0x10'))['to'](this[_0x58a6('0xb')],'length',_0x4b54c6=>_0x4b54c6+0x1),this[_0x58a6('0x18')]=this[_0x58a6('0x5')](),this['on'](_0x58a6('0x7'),()=>this[_0x58a6('0x12')]()),this[_0x58a6('0x1a')](_0x58a6('0xf'))['to'](this[_0x58a6('0xb')],_0x58a6('0xc'),this[_0x58a6('0x18')][_0x58a6('0x1c')],'value',(_0x156203,_0x5ee7b1)=>_0x156203||!!_0x5ee7b1);}[_0x58a6('0x5')](){const {CommentThreadInputView:_0xd7718c}=this['_config'],_0x49fca8=new _0xd7718c(this['locale'],this[_0x58a6('0x3')],this[_0x58a6('0x1f')]['editorConfig']),_0x454fcd=_0x49fca8[_0x58a6('0x1c')];return _0x49fca8[_0x58a6('0x1a')]('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x454fcd,_0x58a6('0x22'),(_0x1c0473,_0x38102c,_0x420166)=>!!_0x420166||_0x1c0473&&!_0x38102c),_0x454fcd['on'](_0x58a6('0x14'),(_0x238d76,_0x2ee0de)=>{this[_0x58a6('0x13')]('addComment',_0x2ee0de),_0x454fcd[_0x58a6('0x1b')][_0x58a6('0x6')]('');}),_0x454fcd['on'](_0x58a6('0x15'),()=>this[_0x58a6('0x12')]()),_0x454fcd[_0x58a6('0x1a')](_0x58a6('0x21'))['to'](this['_model']['commentThread'],_0x58a6('0x17')),_0x49fca8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b9c=['discardButton','_descriptionElement','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','querySelector','EXTERNAL_IMPORT_WORD_SUGGESTION','setTemplate','extendTemplate','execute','_model','split','formatDateTime','ck-annotation__info-time','render','editorReady','innerHTML','getUserViewNotificationText','getExternalSuggestionNote','div','bind','commentThread','ck-suggestion','editorDestroyed','type','set','map','commentThreadInputView','check','value','acceptSuggestion','content','userView','delegate','isEnabled','descriptionParts','creator','ck-suggestion__info-name','ck-comment__info-time','getTemplate','ck-suggestion-wrapper','isActive','createElement','name','push','ck-suggestion__actions','element','<span\x20class=\x22ck-suggestion-type\x22>','@external','ck-annotation__info-name','ck-suggestion-wrapper--active','ck-annotation__user','children','Discard\x20suggestion','isExternal','acceptButton','commentsListView','\x22></span>','span','</p>','locale','ck-annotation__info','attributes','canAccept','innerText','join','author','time','.ck-annotation__content-wrapper','<p>','authoredAt','ck-suggestion--accept','ck-suggestion--disabled-comments','color','discardSuggestion','ck-comment__external','canDiscard','Accept\x20suggestion','ck-suggestion__main','EXTERNAL_SUGGESTION','_config','source','ck-annotation','title','cancel','_createButton','</span>'];(function(_0x592b17,_0x2b9c8f){const _0x4cad0e=function(_0x323550){while(--_0x323550){_0x592b17['push'](_0x592b17['shift']());}};_0x4cad0e(++_0x2b9c8f);}(_0x2b9c,0x1da));const _0x4cad=function(_0x592b17,_0x2b9c8f){_0x592b17=_0x592b17-0x0;let _0x4cad0e=_0x2b9c[_0x592b17];return _0x4cad0e;};import{getTranslation as _0x1bafd3}from'../../utils/common-translations.js';import{default as _0x4572e3}from'./basesuggestionthreadview.js';import{ButtonView as _0x3c90fd}from'ckeditor5/src/ui.js';import{icons as _0x2bdb84}from'ckeditor5/src/core.js';import{trimHtml as _0x51d98e,UserView as _0x5e3482}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Xt extends _0x4572e3{constructor(_0x5e9d2f,_0x267db2,_0x5c91c3,_0x73a17d){super(_0x5e9d2f,_0x267db2,_0x5c91c3,_0x73a17d),this[_0x4cad('0x3b')](_0x4cad('0x3a'),''),this[_0x4cad('0x36')](_0x4cad('0x3a'))['to'](this,_0x4cad('0x45'),_0x3c0612=>_0x3c0612&&_0x3c0612[0x0]?_0x3c0612[0x0][_0x4cad('0x3a')]:''),this['bind']('description')['to'](this,_0x4cad('0x45'),this,_0x4cad('0x4b'),(_0x10a15d,_0x2c4b7a)=>{let _0xf4673f='';for(const _0x2f7624 of _0x10a15d)_0xf4673f+=_0x4cad('0x12')+rs(_0x2f7624[_0x4cad('0x41')],_0x2f7624[_0x4cad('0x16')])+_0x4cad('0x8');return _0x2c4b7a?_0xf4673f:_0x51d98e(_0xf4673f,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x4cad('0x4')]=this[_0x4cad('0x22')](_0x1bafd3(_0x5e9d2f,_0x4cad('0x1a')),_0x2bdb84[_0x4cad('0x3e')],_0x4cad('0x14'),_0x4cad('0x40'),'sw'),this['acceptButton'][_0x4cad('0x36')](_0x4cad('0x44'))['to'](this,_0x4cad('0xc')),this['discardButton']=this[_0x4cad('0x22')](_0x1bafd3(_0x5e9d2f,_0x4cad('0x2')),_0x2bdb84[_0x4cad('0x21')],'ck-suggestion--discard',_0x4cad('0x17'),'sw'),this[_0x4cad('0x24')][_0x4cad('0x36')](_0x4cad('0x44'))['to'](this,_0x4cad('0x19')),this['userView']=new _0x5e3482(_0x5e9d2f,this[_0x4cad('0x2c')][_0x4cad('0xf')],this[_0x4cad('0x33')]()),this[_0x4cad('0x42')][_0x4cad('0x2a')]({'attributes':{'class':['ck-suggestion__user',_0x4cad('0x0')]}}),this[_0x4cad('0x29')](this[_0x4cad('0x49')]());}[_0x4cad('0x49')](){const _0x1c036a=this['bindTemplate'],_0x2c5c38=[{'tag':_0x4cad('0x35'),'attributes':{'class':['ck-suggestion__info',_0x4cad('0xa')]},'children':[{'tag':_0x4cad('0x7'),'children':[{'text':this['userView'][_0x4cad('0x4d')]}],'attributes':{'class':[_0x4cad('0x47'),_0x4cad('0x53')]}},{'tag':_0x4cad('0x10'),'attributes':{'datetime':_0x1c036a['to'](_0x4cad('0x13')),'class':[_0x4cad('0x48'),_0x4cad('0x2f')]},'children':[{'text':_0x1c036a['to']('authoredAt',_0x506423=>this['_config'][_0x4cad('0x2e')](_0x506423))}]}]},{'tag':_0x4cad('0x35'),'attributes':{'class':[_0x4cad('0x4f'),'ck-annotation__actions']},'children':[this[_0x4cad('0x4')],this[_0x4cad('0x24')]]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x2c5c38[_0x4cad('0x4e')]({'tag':_0x4cad('0x35'),'attributes':{'class':[_0x4cad('0x18')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x211b77={'tag':_0x4cad('0x35'),'attributes':{'class':[_0x4cad('0x4a'),_0x1c036a['if'](_0x4cad('0x4b'),_0x4cad('0x54')),_0x1c036a['to'](_0x4cad('0x3a'),_0x5ea484=>'ck-suggestion-'+_0x5ea484),this[_0x4cad('0x1d')]['disableComments']&&_0x4cad('0x15')],'data-suggestion-id':this[_0x4cad('0x2c')]['id'],'data-thread-id':this[_0x4cad('0x2c')][_0x4cad('0x37')]['id'],'data-author-id':this[_0x4cad('0x2c')][_0x4cad('0xf')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4cad('0x35'),'attributes':{'class':[_0x4cad('0x38'),_0x4cad('0x1f')]},'children':[this[_0x4cad('0x42')],{'tag':'div','attributes':{'class':[_0x4cad('0x1b'),'ck-annotation__main']},'children':_0x2c5c38}]}]};return this[_0x4cad('0x5')]&&this['commentThreadInputView']&&(_0x211b77[_0x4cad('0x1')][_0x4cad('0x4e')](this[_0x4cad('0x5')],this[_0x4cad('0x3d')]),this[_0x4cad('0x5')][_0x4cad('0x43')](_0x4cad('0x31'))['to'](this),this[_0x4cad('0x5')][_0x4cad('0x43')]('editorDestroyed')['to'](this),this['commentThreadInputView'][_0x4cad('0x43')](_0x4cad('0x31'))['to'](this),this[_0x4cad('0x3d')][_0x4cad('0x43')](_0x4cad('0x39'))['to'](this)),_0x211b77;}[_0x4cad('0x30')](){super[_0x4cad('0x30')](),this['_descriptionElement']=this[_0x4cad('0x50')][_0x4cad('0x27')](_0x4cad('0x11')),this[_0x4cad('0x25')][_0x4cad('0x32')]=this['description'],this['on']('change:description',(_0x1201b3,_0x132fe0,_0x51295a)=>{this[_0x4cad('0x25')][_0x4cad('0x32')]=_0x51295a;});}['_createButton'](_0x2cc4f1,_0x4d3841,_0x2277a8,_0x11cd47,_0x537e82){const _0x281a59=new _0x3c90fd(this[_0x4cad('0x9')]);return _0x281a59[_0x4cad('0x3b')]({'label':_0x2cc4f1,'icon':_0x4d3841,'tooltip':!0x0,'tooltipPosition':_0x537e82}),_0x281a59[_0x4cad('0x2a')]({'attributes':{'class':_0x2277a8}}),_0x281a59['on'](_0x4cad('0x2b'),()=>{this['fire'](_0x11cd47,this['_model']['id']);}),_0x281a59;}[_0x4cad('0x34')](){return'importWord'===this[_0x4cad('0x2c')][_0x4cad('0xb')]['@external'][_0x4cad('0x1e')]?_0x1bafd3(this[_0x4cad('0x9')],_0x4cad('0x28')):_0x1bafd3(this[_0x4cad('0x9')],_0x4cad('0x1c'));}[_0x4cad('0x33')](){return this[_0x4cad('0x2c')][_0x4cad('0x3')]?'importWord'===this[_0x4cad('0x2c')]['attributes'][_0x4cad('0x52')][_0x4cad('0x1e')]?_0x1bafd3(this[_0x4cad('0x9')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x4cad('0x2c')][_0x4cad('0x46')][_0x4cad('0x4d')]):_0x1bafd3(this[_0x4cad('0x9')],'EXTERNAL_AVATAR',this['_model'][_0x4cad('0x46')]['name']):null;}}function rs(_0x566e92,_0x52e050){let _0x9c0ead='';return _0x9c0ead+=_0x566e92[_0x4cad('0x2d')]('*')[_0x4cad('0x3c')]((_0x33d361,_0x2623c4)=>_0x2623c4%0x2!=0x0?_0x4cad('0x51')+ds(_0x33d361)+_0x4cad('0x23'):ds(_0x33d361))[_0x4cad('0xe')](''),_0x52e050&&(_0x9c0ead+=_0x4cad('0x26')+_0x52e050[_0x4cad('0x3f')]+'\x22\x20title=\x22'+_0x52e050[_0x4cad('0x20')]+_0x4cad('0x6')),_0x9c0ead;}function ds(_0x5e61f8){const _0x23aa64=document[_0x4cad('0x4c')](_0x4cad('0x7'));return _0x23aa64[_0x4cad('0xd')]=_0x5e61f8,_0x23aa64[_0x4cad('0x32')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x2b6159,_0x330c0b,_0x236f35){const t=_0x2b6159['t'];switch(_0x330c0b){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',_0x236f35);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x236f35);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x236f35);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x236f35);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x236f35);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',_0x236f35);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x236f35);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',_0x236f35);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x236f35);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x236f35);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x236f35);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x236f35);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x236f35);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x236f35);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x236f35);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x236f35);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x236f35);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x236f35);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x236f35);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x236f35);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x236f35);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x236f35);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x236f35);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'},_0x236f35);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x236f35);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x236f35);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x236f35);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x236f35);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x236f35);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'},_0x236f35);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x236f35);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x236f35);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x236f35);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x236f35);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'},_0x236f35);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x236f35);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'},_0x236f35);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'},_0x236f35);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x236f35);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'},_0x236f35);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x236f35);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'},_0x236f35);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x236f35);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x236f35);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'},_0x236f35);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'},_0x236f35);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 _0x330c0b;}}
|
|
23
|
+
export function getTranslation(_0x2d89dc,_0x471d97,_0xb5d91d){const t=_0x2d89dc['t'];switch(_0x471d97){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',_0xb5d91d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xb5d91d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xb5d91d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xb5d91d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xb5d91d);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',_0xb5d91d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xb5d91d);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',_0xb5d91d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xb5d91d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xb5d91d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xb5d91d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xb5d91d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xb5d91d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xb5d91d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xb5d91d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xb5d91d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xb5d91d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xb5d91d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xb5d91d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xb5d91d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xb5d91d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xb5d91d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xb5d91d);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'},_0xb5d91d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xb5d91d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xb5d91d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xb5d91d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xb5d91d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xb5d91d);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'},_0xb5d91d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xb5d91d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xb5d91d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xb5d91d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xb5d91d);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'},_0xb5d91d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xb5d91d);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'},_0xb5d91d);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'},_0xb5d91d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xb5d91d);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'},_0xb5d91d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xb5d91d);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'},_0xb5d91d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xb5d91d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xb5d91d);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'},_0xb5d91d);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'},_0xb5d91d);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 _0x471d97;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x564b=['createPositionAfter','deletion','sort','length','createPositionAt','push','content','\x20[color\x20','change','next','add','end','isInContent','color','start','isObject','isCollapsed','join','isTouching','execute','from','value','createRange','map','createPositionBefore','type','splice'];(function(_0x1f62a3,_0x564b14){const _0x1aaf8c=function(_0x2b3f2c){while(--_0x2b3f2c){_0x1f62a3['push'](_0x1f62a3['shift']());}};_0x1aaf8c(++_0x564b14);}(_0x564b,0xe7));const _0x1aaf=function(_0x1f62a3,_0x564b14){_0x1f62a3=_0x1f62a3-0x0;let _0x1aaf8c=_0x564b[_0x1f62a3];return _0x1aaf8c;};export function normalizeDescription(_0x1c5e16){return Array['isArray'](_0x1c5e16)||(_0x1c5e16=[_0x1c5e16]),_0x1c5e16[_0x1aaf('0x8')](_0xc64c95=>{const _0xab4686=_0xc64c95[_0x1aaf('0x12')]['replace'](/\*/g,''),_0x5c3455=_0xc64c95[_0x1aaf('0x19')]?_0x1aaf('0x13')+_0xc64c95['color'][_0x1aaf('0x6')]+']':'';return'['+_0xc64c95[_0x1aaf('0xa')]+']\x20'+_0xab4686+_0x5c3455;})[_0x1aaf('0x2')](';\x20');}export function sortSuggestions(_0x5ced4b){return _0x5ced4b[_0x1aaf('0xe')]((_0x28cfee,_0x3a63db)=>'deletion'==_0x28cfee[_0x1aaf('0xa')]&&_0x1aaf('0xd')!=_0x3a63db[_0x1aaf('0xa')]?-0x1:_0x1aaf('0xd')!=_0x28cfee[_0x1aaf('0xa')]&&_0x1aaf('0xd')==_0x3a63db['type']?0x1:0x0);}export function getSelectedSuggestions(_0x572c97,_0x1b1181){const _0x3a84b9=Array[_0x1aaf('0x5')](_0x572c97['getRanges']()),_0x3998c6=new Set();for(const _0x480e59 of _0x1b1181)if(_0x480e59[_0x1aaf('0x18')])for(const _0x4a0846 of _0x3a84b9)for(const _0x591a81 of _0x480e59['getRanges']())(_0x4a0846['isIntersecting'](_0x591a81)||_0x572c97[_0x1aaf('0x1')]&&!_0x480e59['isMultiRange']&&_0x480e59[_0x1aaf('0x15')]&&_0x591a81['end'][_0x1aaf('0x3')](_0x4a0846[_0x1aaf('0x1a')]))&&_0x3998c6[_0x1aaf('0x16')](_0x480e59);return _0x3998c6;}export function getRangesOfBlockGroups(_0x3af8c4,_0x42ddd4){let _0x51db4d,_0x5b13d0=0x0;const _0x52ee9c=[],_0x2aa2f7=_0x42ddd4['schema'];for(;_0x5b13d0<_0x3af8c4['length'];){const _0x54734b=_0x3af8c4[_0x5b13d0],_0x3a9ee7=_0x3af8c4[_0x5b13d0+0x1];_0x51db4d||(_0x51db4d=_0x42ddd4[_0x1aaf('0x9')](_0x54734b)),co(_0x42ddd4,_0x54734b,_0x3a9ee7)||(_0x52ee9c[_0x1aaf('0x11')](_0x42ddd4[_0x1aaf('0x7')](_0x51db4d,_0x2aa2f7[_0x1aaf('0x0')](_0x54734b)?_0x42ddd4[_0x1aaf('0xc')](_0x54734b):_0x42ddd4[_0x1aaf('0x10')](_0x54734b,_0x1aaf('0x17')))),_0x51db4d=null),_0x5b13d0++;}return _0x52ee9c;}function co(_0x5df92e,_0x32d12c,_0x2feca7){if(!_0x2feca7)return!0x1;const _0x5e5a79=_0x5df92e[_0x1aaf('0xc')](_0x32d12c),_0x1a0e8e=_0x5df92e['createPositionBefore'](_0x2feca7);return _0x5e5a79['isTouching'](_0x1a0e8e);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x39616f,_0x4981e1,_0x23dff1){for(;_0x23dff1[_0x1aaf('0xf')];){const _0x201c97=_0x23dff1[_0x1aaf('0xb')](0x0,0x64);_0x39616f[_0x1aaf('0x14')](()=>{for(const _0x2099bf of _0x201c97)_0x2099bf[_0x1aaf('0x18')]&&_0x4981e1[_0x1aaf('0x4')](_0x2099bf['id']);});}}
|