@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231221.0 → 0.0.0-nightly-20231223.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 _0x39ad=['trackChanges','execute','mainView','getSuggestion','filter','button','_suggestionToController','clear','value','pluginName','discardButton','length','_bindAnnotationToEditors','createCommentThreadController','isInContent','getMarkers','_handleSuggestionControllerDelayed','createAnnotation','isMultiRange','_annotationViews','getRanges','_handleControllerBuffer','addSourceCollector','get','view','head','change:previous','bind','activeAnnotations','values','define','set','suggestionUnloaded','from','acceptAllSuggestions','getDescriptions','separator','componentFactory','buttonView','EditorAnnotations','getAllAdjacentSuggestions','getMarkerNames','discardSelectedSuggestions','TrackChangesUI','_refreshActiveMarkers','descriptionParts','actionView','registerAnnotation','comments.maxCommentCharsWhenCollapsed','SuggestionThreadView','hasSuggestion','trackChanges.disableComments','comments','TrackChangesEditing','init','discardAllSuggestions','_descriptionFactory','trackChanges.SuggestionThreadView','_viewToController','acceptSelectedSuggestions','toMany','listenTo','previous','comments.maxCommentsWhenCollapsed','CommentView','has','isEnabled','commandName','createAnnotationView','delete','Accept\x20all\x20selected\x20suggestions','stopListening','Track\x20changes','type','requires','push','editing','destroy','acceptButton','config','Accept\x20all\x20suggestions','activeMarkers','CommentsUI','reduce','plugins','remove','unbind','arrowView','getFirstRange','comments.editorConfig','commands','_initializeController','_unbindEditors','Annotations','refreshSelectedViews','editor','_disableComments','Discard\x20all\x20suggestions','suggestionChanged','addComment','add','_updateController','suggestionLoaded','focus','change:activeAnnotations','_destroyController','model','isOn','CommentsRepository','locale'];(function(_0x5119df,_0x39ad21){const _0x1d0616=function(_0x54259a){while(--_0x54259a){_0x5119df['push'](_0x5119df['shift']());}};_0x1d0616(++_0x39ad21);}(_0x39ad,0x79));const _0x1d06=function(_0x5119df,_0x39ad21){_0x5119df=_0x5119df-0x0;let _0x1d0616=_0x39ad[_0x5119df];return _0x1d0616;};import{Plugin as _0x241846}from'ckeditor5/src/core.js';import{Collection as _0x5849a6}from'ckeditor5/src/utils.js';import{Model as _0x17ff90,SplitButtonView as _0x14e668,createDropdown as _0x484002,addListToDropdown as _0x3fc2f3}from'ckeditor5/src/ui.js';import{Users as _0x70872a,getDateTimeFormatter as _0xead570,getAllMarkersDomElementsSorted as _0x177496}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5b74b8 from'./trackchangesediting.js';import _0x223c6b from'./ui/suggestioncontroller.js';import _0x5650f9 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x59f0ce}from'./utils/common-translations.js';import _0x331975 from'../theme/icons/track-changes.svg';export default class d extends _0x241846{static get[_0x1d06('0x3f')](){return[_0x5b74b8,_0x70872a,_0x1d06('0x61'),_0x1d06('0x52'),_0x1d06('0x1c')];}static get[_0x1d06('0x6c')](){return _0x1d06('0x20');}constructor(_0x24ac98){super(_0x24ac98),this[_0x1d06('0x69')]=new Map(),this['_viewToController']=new Map(),this[_0x1d06('0x8')]=new Map(),this[_0x1d06('0xa')]=new Map();const _0x308672=this[_0x1d06('0x54')][_0x1d06('0x44')];_0x308672[_0x1d06('0x13')](_0x1d06('0x2e'),_0x5650f9),_0x308672[_0x1d06('0x13')]('trackChanges.disableComments',!0x1),this[_0x1d06('0x55')]=_0x308672[_0x1d06('0xc')](_0x1d06('0x28'));}[_0x1d06('0x5')](_0x98ebaf,_0x3e22dd){0x0===this[_0x1d06('0xa')]['size']&&setTimeout(()=>{for(const [_0x28b12c,_0x1cfc90]of this[_0x1d06('0xa')]){const _0x4c47e0=this[_0x1d06('0x69')][_0x1d06('0x36')](_0x28b12c);_0x4c47e0||_0x1cfc90?_0x4c47e0&&_0x1cfc90&&this[_0x1d06('0x5e')](_0x28b12c):this[_0x1d06('0x50')](_0x28b12c);}this[_0x1d06('0x54')][_0x1d06('0x49')][_0x1d06('0xc')](_0x1d06('0x1c'))[_0x1d06('0x53')](),this[_0x1d06('0x21')](),this[_0x1d06('0xa')][_0x1d06('0x6a')]();},0xa),this[_0x1d06('0xa')][_0x1d06('0x14')](_0x98ebaf,_0x3e22dd);}[_0x1d06('0x2b')](){const _0x5a1cb9=this[_0x1d06('0x54')],_0x24ccbb=_0x5a1cb9[_0x1d06('0x49')][_0x1d06('0xc')](_0x1d06('0x2a')),_0x2ce562=_0x5a1cb9[_0x1d06('0x49')][_0x1d06('0xc')]('Annotations'),_0x57858e=_0x5a1cb9[_0x1d06('0x49')][_0x1d06('0xc')](_0x1d06('0x1c')),_0x368bb5=_0x5a1cb9[_0x1d06('0x49')][_0x1d06('0xc')]('CommentsRepository');_0x5a1cb9['ui'][_0x1d06('0x1a')][_0x1d06('0x59')](_0x1d06('0x63'),_0x45c874=>this['_createUIButton'](_0x45c874)),_0x57858e[_0x1d06('0xb')](()=>{const _0x5be2e8=[];for(const [_0x33a73b,_0x40a751]of Array[_0x1d06('0x16')](this['_suggestionToController'])){const _0x44ddd6=_0x33a73b[_0x1d06('0x1d')](),_0x37d4c0=[];for(const _0x19e363 of _0x44ddd6){if(!_0x19e363[_0x1d06('0x3')])continue;if(_0x19e363[_0x1d06('0x7')]){_0x37d4c0['push'](..._0x19e363[_0x1d06('0x9')]());continue;}const _0x51a8d=_0x19e363[_0x1d06('0x4d')]();if(_0x37d4c0[_0x1d06('0x0')]>0x0){const _0x4ea201=_0x37d4c0[0x0]['getJoined'](_0x51a8d);if(_0x4ea201){_0x37d4c0[0x0]=_0x4ea201;continue;}}_0x37d4c0[_0x1d06('0x40')](_0x51a8d);}_0x5be2e8[_0x1d06('0x40')]([_0x40a751[_0x1d06('0xd')],_0x37d4c0]);}return _0x5be2e8;}),this[_0x1d06('0x32')](_0x24ccbb,_0x1d06('0x5b'),(_0xcdd1e2,_0x575c55)=>{this[_0x1d06('0x32')](_0x575c55,'change:previous',(_0x4a1de6,_0xbb827e,_0x4269d2,_0x54929b)=>{_0x575c55[_0x1d06('0x3')]&&(null==_0x4269d2?(this[_0x1d06('0x5a')](_0x54929b[_0x1d06('0xe')]),this[_0x1d06('0x5')](_0x575c55,!0x1)):(this[_0x1d06('0x5a')](_0x4269d2[_0x1d06('0xe')]),null==_0x54929b&&this[_0x1d06('0x5')](_0x575c55,!0x0)));}),null!==_0x575c55[_0x1d06('0x33')]?this[_0x1d06('0x5a')](_0x575c55[_0x1d06('0xe')]):this[_0x1d06('0x5')](_0x575c55,!0x1);}),this[_0x1d06('0x32')](_0x24ccbb,_0x1d06('0x15'),(_0x4f4776,_0x3c8dd2,_0x27c1d6)=>{this[_0x1d06('0x3c')](_0x3c8dd2,_0x1d06('0xf')),this[_0x1d06('0xa')][_0x1d06('0x3a')](_0x3c8dd2),this[_0x1d06('0x69')][_0x1d06('0x36')](_0x3c8dd2)&&this['_destroyController'](_0x3c8dd2),_0x27c1d6&&this['_updateController'](_0x27c1d6['head']);}),this[_0x1d06('0x32')](_0x24ccbb,_0x1d06('0x57'),(_0x124c45,_0x163b5b)=>{this[_0x1d06('0x5a')](_0x163b5b);}),this[_0x1d06('0x32')](_0x2ce562,_0x1d06('0x5d'),()=>{this[_0x1d06('0x21')]();}),this[_0x1d06('0x32')](_0x368bb5,_0x1d06('0x58'),(_0x209f47,{threadId:_0x3e646d,isFromAdapter:_0x9aa0c9})=>{if(_0x9aa0c9||!_0x24ccbb[_0x1d06('0x27')](_0x3e646d))return;const _0x4d6264=_0x24ccbb[_0x1d06('0x66')](_0x3e646d);this[_0x1d06('0x69')][_0x1d06('0xc')](_0x4d6264)['view']['focus']();},{'priority':'lowest'});}[_0x1d06('0x21')](){const _0x1518a2=this[_0x1d06('0x54')][_0x1d06('0x49')][_0x1d06('0xc')]('Annotations'),_0x34063e=this[_0x1d06('0x54')][_0x1d06('0x49')]['get'](_0x1d06('0x2a')),_0x43a0c2=Array['from'](_0x1518a2[_0x1d06('0x11')],_0xabc0f3=>_0xabc0f3['innerView'])['filter'](_0x4d7612=>this[_0x1d06('0x2f')][_0x1d06('0x36')](_0x4d7612)),_0x2a5d5a=[];for(const _0x3d4846 of _0x43a0c2){const _0x11d854=this[_0x1d06('0x2f')][_0x1d06('0xc')](_0x3d4846)[_0x1d06('0x5f')][_0x1d06('0x1d')]();_0x2a5d5a[_0x1d06('0x40')](..._0x11d854[_0x1d06('0x48')]((_0x25e9c2,_0x264075)=>[..._0x25e9c2,..._0x264075[_0x1d06('0x1e')]()],[]));}_0x34063e[_0x1d06('0x46')]=_0x2a5d5a;}['_createUIButton'](_0x48c749){const _0x2cb833=_0x484002(_0x48c749,_0x14e668),_0x4d4f58=this['editor'][_0x1d06('0x4f')]['get'](_0x1d06('0x63')),_0x1b5b9f=_0x59f0ce(_0x48c749,_0x1d06('0x3d'));_0x2cb833[_0x1d06('0x1b')][_0x1d06('0x14')]({'tooltip':_0x1b5b9f,'label':_0x1b5b9f,'icon':_0x331975}),_0x2cb833['buttonView'][_0x1d06('0x10')](_0x1d06('0x60'))['to'](_0x4d4f58,_0x1d06('0x6b')),_0x2cb833['buttonView']['on'](_0x1d06('0x64'),()=>{_0x4d4f58[_0x1d06('0x64')](),this[_0x1d06('0x54')][_0x1d06('0x41')][_0x1d06('0xd')][_0x1d06('0x5c')]();});const _0x46af90=new _0x5849a6(),_0x3146ad=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x1b5b9f,'commandName':_0x1d06('0x63')}},{'type':_0x1d06('0x19')},{'type':_0x1d06('0x68'),'model':{'withText':!0x0,'label':_0x59f0ce(_0x48c749,_0x1d06('0x45')),'commandName':_0x1d06('0x17')}},{'type':_0x1d06('0x68'),'model':{'withText':!0x0,'label':_0x59f0ce(_0x48c749,_0x1d06('0x3b')),'commandName':_0x1d06('0x30')}},{'type':_0x1d06('0x68'),'model':{'withText':!0x0,'label':_0x59f0ce(_0x48c749,_0x1d06('0x56')),'commandName':_0x1d06('0x2c')}},{'type':_0x1d06('0x68'),'model':{'withText':!0x0,'label':_0x59f0ce(_0x48c749,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x1d06('0x1f')}}];for(const _0x3aaf89 of _0x3146ad){let _0x10b794={'type':_0x1d06('0x19')};if(_0x3aaf89[_0x1d06('0x5f')]){const _0xd9620=new _0x17ff90(_0x3aaf89[_0x1d06('0x5f')]),_0x2bd660=this[_0x1d06('0x54')]['commands'][_0x1d06('0xc')](_0xd9620['commandName']);_0xd9620[_0x1d06('0x10')]('isOn',_0x1d06('0x37'))['to'](_0x2bd660,_0x1d06('0x6b'),_0x1d06('0x37')),_0x10b794={'type':_0x3aaf89['type'],'model':_0xd9620};}_0x46af90[_0x1d06('0x59')](_0x10b794);}_0x3fc2f3(_0x2cb833,_0x46af90);const _0x2eb5dd=_0x3146ad[_0x1d06('0x67')](_0x11536e=>null!=_0x11536e[_0x1d06('0x5f')])['map'](_0x1c78ca=>this[_0x1d06('0x54')]['commands'][_0x1d06('0xc')](_0x1c78ca['model'][_0x1d06('0x38')])),_0x2a962c=_0x2cb833[_0x1d06('0x1b')];return _0x2a962c[_0x1d06('0x23')][_0x1d06('0x4b')](_0x1d06('0x37')),_0x2a962c[_0x1d06('0x4c')][_0x1d06('0x4b')](_0x1d06('0x37')),_0x2a962c[_0x1d06('0x23')]['bind'](_0x1d06('0x37'))['to'](_0x4d4f58,_0x1d06('0x37')),_0x2a962c['arrowView']['bind'](_0x1d06('0x37'))[_0x1d06('0x31')](_0x2eb5dd,_0x1d06('0x37'),(..._0x4d4f8d)=>_0x4d4f8d['some'](_0x13e320=>_0x13e320)),_0x2cb833['on'](_0x1d06('0x64'),_0x270b48=>{this['editor'][_0x1d06('0x64')](_0x270b48['source']['commandName']),this[_0x1d06('0x54')][_0x1d06('0x41')][_0x1d06('0xd')][_0x1d06('0x5c')]();}),_0x2cb833;}[_0x1d06('0x50')](_0x58ae7c){const _0x4b31bc=this[_0x1d06('0x54')],_0x2202bc=_0x4b31bc['config'],_0x31f3c5=_0x4b31bc[_0x1d06('0x49')][_0x1d06('0xc')](_0x1d06('0x52')),_0x4983d6=_0x4b31bc[_0x1d06('0x49')][_0x1d06('0xc')](_0x1d06('0x61')),_0x551dca=_0x4b31bc[_0x1d06('0x49')]['get']('EditorAnnotations'),_0x224969=_0x4b31bc[_0x1d06('0x49')][_0x1d06('0xc')](_0x70872a)['me'],_0x5a810c=_0x2202bc[_0x1d06('0xc')](_0x1d06('0x63'))[_0x1d06('0x26')],{CommentsListView:_0x445d67,CommentThreadInputView:_0x5cb27b}=_0x4b31bc[_0x1d06('0x49')]['get'](_0x1d06('0x47'));let _0x4d6f21,_0x3a26ee;this[_0x1d06('0x8')][_0x1d06('0x36')](_0x58ae7c['id'])?(_0x3a26ee=this[_0x1d06('0x8')][_0x1d06('0xc')](_0x58ae7c['id']),_0x4d6f21=_0x3a26ee[_0x1d06('0x65')]):(_0x4d6f21=new _0x5a810c(_0x4b31bc[_0x1d06('0x62')],_0x58ae7c,_0x224969,{'disableComments':this['_disableComments'],'editorConfig':_0x2202bc[_0x1d06('0xc')](_0x1d06('0x4e')),'maxCommentsWhenCollapsed':_0x2202bc['get'](_0x1d06('0x34')),'maxThreadTotalWeight':_0x2202bc[_0x1d06('0xc')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2202bc[_0x1d06('0xc')](_0x1d06('0x25')),'formatDateTime':_0xead570(_0x2202bc[_0x1d06('0xc')]('locale')),'CommentView':_0x2202bc[_0x1d06('0xc')](_0x1d06('0x29'))[_0x1d06('0x35')],'CommentsListView':_0x445d67,'CommentThreadInputView':_0x5cb27b}),_0x4d6f21[_0x1d06('0x43')]['on'](_0x1d06('0x64'),()=>{_0x4b31bc[_0x1d06('0x41')][_0x1d06('0xd')][_0x1d06('0x5c')]();}),_0x4d6f21[_0x1d06('0x6d')]['on']('execute',()=>{_0x4b31bc['editing']['view'][_0x1d06('0x5c')]();}),_0x3a26ee=_0x31f3c5[_0x1d06('0x39')](this[_0x1d06('0x54')][_0x1d06('0x62')],_0x4d6f21),_0x3a26ee[_0x1d06('0x10')]('isDirty')['to'](_0x4d6f21,'isDirty'),_0x3a26ee['bind'](_0x1d06('0x0'))['to'](_0x4d6f21),_0x3a26ee['bind'](_0x1d06('0x3e'))['to'](_0x4d6f21,_0x1d06('0x3e'),_0x4e5cdb=>'suggestion-'+_0x4e5cdb),this[_0x1d06('0x8')][_0x1d06('0x14')](_0x58ae7c['id'],_0x3a26ee));const _0x59d747=_0x4983d6[_0x1d06('0x2')](_0x58ae7c['commentThread'],_0x4d6f21),_0x3c4c3d=new _0x223c6b(_0x4b31bc,_0x58ae7c,_0x4d6f21,_0x59d747),_0x3ccc9f=_0x58ae7c[_0x1d06('0x1d')]()[_0x1d06('0x67')](_0x2a072b=>_0x2a072b[_0x1d06('0x3')]);_0x4d6f21[_0x1d06('0x22')]=_0x4b31bc['plugins'][_0x1d06('0xc')]('TrackChangesEditing')[_0x1d06('0x2d')][_0x1d06('0x18')](_0x3ccc9f),this[_0x1d06('0x69')][_0x1d06('0x14')](_0x58ae7c,_0x3c4c3d),this['_viewToController']['set'](_0x4d6f21,_0x3c4c3d);const _0x6e5678=_0x31f3c5[_0x1d06('0x6')]({'view':_0x3a26ee,'target':()=>{const _0x3706a3=[],_0x21dd8f=_0x58ae7c[_0x1d06('0x1d')]()[_0x1d06('0x67')](_0x342c56=>_0x342c56[_0x1d06('0x3')]);for(const _0x3fc31c of _0x21dd8f)_0x3706a3['push'](..._0x3fc31c[_0x1d06('0x4')]());return _0x177496(_0x4b31bc[_0x1d06('0x41')],_0x3706a3);},'type':()=>'suggestion-'+_0x3c4c3d[_0x1d06('0xd')][_0x1d06('0x3e')]});_0x4983d6[_0x1d06('0x1')](_0x4d6f21,_0x6e5678),_0x31f3c5[_0x1d06('0x59')](_0x6e5678),_0x551dca[_0x1d06('0x24')](_0x6e5678);}[_0x1d06('0x5e')](_0x55a430){const _0x409d78=this[_0x1d06('0x54')][_0x1d06('0x49')]['get'](_0x1d06('0x61')),_0x1bcdbc=this[_0x1d06('0x54')][_0x1d06('0x49')][_0x1d06('0xc')]('Annotations'),_0x3efc0e=this[_0x1d06('0x69')][_0x1d06('0xc')](_0x55a430),_0xc3e174=_0x3efc0e[_0x1d06('0xd')],_0x1bb894=_0x1bcdbc['getByInnerView'](_0xc3e174);_0x409d78[_0x1d06('0x51')](_0xc3e174),_0x1bb894&&_0x1bcdbc[_0x1d06('0x4a')](_0x1bb894),this['_suggestionToController']['delete'](_0x55a430),this[_0x1d06('0x2f')][_0x1d06('0x3a')](_0xc3e174),_0x3efc0e[_0x1d06('0x42')]();}[_0x1d06('0x5a')](_0x52c942){if(!_0x52c942[_0x1d06('0x3')]||!this['_suggestionToController'][_0x1d06('0x36')](_0x52c942))return;const _0x143a6f=this[_0x1d06('0x54')][_0x1d06('0x49')][_0x1d06('0xc')](_0x1d06('0x2a')),_0x4210ab=this['_suggestionToController'][_0x1d06('0xc')](_0x52c942),_0x443c48=_0x52c942[_0x1d06('0x1d')]();_0x4210ab[_0x1d06('0xd')][_0x1d06('0x22')]=_0x143a6f[_0x1d06('0x2d')][_0x1d06('0x18')](_0x443c48);}[_0x1d06('0x42')](){for(const _0x38f68e of this['_suggestionToController']['keys']())this[_0x1d06('0x5e')](_0x38f68e);for(const _0x1fdbf4 of this[_0x1d06('0x8')][_0x1d06('0x12')]())_0x1fdbf4['mainView'][_0x1d06('0x42')]();super[_0x1d06('0x42')]();}}
|
|
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')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21cf=['_editor','getRanges','remove','_setPendingAction','execute','add','destroy','PENDING_ACTION_SUGGESTION','get','discardSuggestion','bind','change:isDirty','commands','_discardCommand','stopListening','canAccept','_pendingAction','_acceptCommand','isDirty','canDiscard','model','unbind','canEditAt','_removePendingAction','isEnabled','commentThreadController','acceptSuggestion','PendingActions','view','listenTo'];(function(_0x13ae44,_0x21cfd4){const _0x2c2d00=function(_0x5cb506){while(--_0x5cb506){_0x13ae44['push'](_0x13ae44['shift']());}};_0x2c2d00(++_0x21cfd4);}(_0x21cf,0xb6));const _0x2c2d=function(_0x13ae44,_0x21cfd4){_0x13ae44=_0x13ae44-0x0;let _0x2c2d00=_0x21cf[_0x13ae44];return _0x2c2d00;};import{ObservableMixin as _0x25459b}from'ckeditor5/src/utils.js';import{getTranslation as _0x26af78}from'../utils/common-translations.js';export default class Qt extends _0x25459b(){constructor(_0x3186d4,_0x20bb10,_0x4cab06,_0x46c250){super(),this[_0x2c2d('0x12')]=_0x20bb10,this[_0x2c2d('0x1a')]=_0x4cab06,this[_0x2c2d('0x17')]=_0x46c250,this['_editor']=_0x3186d4,this[_0x2c2d('0xf')]=_0x3186d4[_0x2c2d('0xa')][_0x2c2d('0x6')](_0x2c2d('0x18')),this[_0x2c2d('0xb')]=_0x3186d4[_0x2c2d('0xa')][_0x2c2d('0x6')](_0x2c2d('0x7')),this[_0x2c2d('0x1a')][_0x2c2d('0x8')](_0x2c2d('0x16'))['to'](this[_0x2c2d('0xf')],this[_0x2c2d('0xb')],(_0x27ce18,_0x46261e)=>_0x27ce18||_0x46261e),this[_0x2c2d('0x1a')][_0x2c2d('0x8')](_0x2c2d('0xd'))['to'](this[_0x2c2d('0xf')],'isEnabled',_0x85f806=>_0x85f806&&this[_0x2c2d('0x1c')]['model']['canEditAt'](_0x20bb10['getRanges']())),this[_0x2c2d('0x1a')]['bind'](_0x2c2d('0x11'))['to'](this['_discardCommand'],'isEnabled',_0x55d4d3=>_0x55d4d3&&this['_editor'][_0x2c2d('0x12')][_0x2c2d('0x14')](_0x20bb10[_0x2c2d('0x1d')]())),this[_0x2c2d('0xe')]=null,_0x4cab06[_0x2c2d('0x10')]&&this[_0x2c2d('0x1')](),this[_0x2c2d('0x1b')](_0x4cab06,_0x2c2d('0x18'),()=>this['acceptSuggestion']()),this[_0x2c2d('0x1b')](_0x4cab06,'discardSuggestion',()=>this[_0x2c2d('0x7')]()),this[_0x2c2d('0x1b')](_0x4cab06,_0x2c2d('0x9'),()=>{_0x4cab06['isDirty']?this['_setPendingAction']():this[_0x2c2d('0x15')]();});}[_0x2c2d('0x18')](){this[_0x2c2d('0xf')][_0x2c2d('0x2')](this['model']['id']);}[_0x2c2d('0x7')](){this[_0x2c2d('0xb')][_0x2c2d('0x2')](this[_0x2c2d('0x12')]['id']);}['destroy'](){this[_0x2c2d('0x1a')]['unbind']('isEnabled'),this[_0x2c2d('0x1a')][_0x2c2d('0x13')]('canAccept'),this[_0x2c2d('0x1a')][_0x2c2d('0x13')]('canDiscard'),this[_0x2c2d('0xc')](),this[_0x2c2d('0x17')][_0x2c2d('0x4')](),this[_0x2c2d('0xe')]&&this[_0x2c2d('0x15')]();}['_setPendingAction'](){const _0x34f322=_0x26af78(this[_0x2c2d('0x1c')]['locale'],_0x2c2d('0x5'));this[_0x2c2d('0xe')]=this[_0x2c2d('0x1c')]['plugins'][_0x2c2d('0x6')](_0x2c2d('0x19'))[_0x2c2d('0x3')](_0x34f322);}['_removePendingAction'](){null!==this[_0x2c2d('0xe')]&&this[_0x2c2d('0x1c')]['plugins'][_0x2c2d('0x6')](_0x2c2d('0x19'))[_0x2c2d('0x0')](this[_0x2c2d('0xe')]),this[_0x2c2d('0xe')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3592=['focus','removeComment','isReadOnly','isActive','editor','element','_model','authoredAt','length','commentsListView','destroy','showInput','updateComment','_config','_createCommentViews','fire','editorConfig','isEnabled','hasDirtyComment','commentInputView','delegate','descriptionParts','addComment','cancel','_localUser','bind','submit','commentThreadInputView','disabledSubmit','locale','isDirty','commentThread','value','_createCommentThreadInputView','canAccept','assign','disableComments','set'];(function(_0xd16db9,_0x359291){const _0x42fddf=function(_0x5dfe7d){while(--_0x5dfe7d){_0xd16db9['push'](_0xd16db9['shift']());}};_0x42fddf(++_0x359291);}(_0x3592,0x9b));const _0x42fd=function(_0xd16db9,_0x359291){_0xd16db9=_0xd16db9-0x0;let _0x42fddf=_0x3592[_0xd16db9];return _0x42fddf;};import{View as _0x491acb}from'ckeditor5/src/ui.js';export default class es extends _0x491acb{constructor(_0x3576e1,_0x2a36df,_0x290485,_0x1d1a50){super(_0x3576e1),this['commentsListView']=null,this['commentThreadInputView']=null,this[_0x42fd('0x22')](_0x42fd('0x0'),!0x1),this['set'](_0x42fd('0x4'),_0x2a36df[_0x42fd('0x4')]),this[_0x42fd('0x16')]('authoredAt')['to'](_0x2a36df),this['set'](_0x42fd('0x12'),[]),this[_0x42fd('0x22')](_0x42fd('0x1b'),!0x1),this['set'](_0x42fd('0xe'),!0x1),this['set'](_0x42fd('0x1f'),!0x1),this['set']('canDiscard',!0x1),this[_0x42fd('0x3')]=_0x2a36df,this[_0x42fd('0x15')]=_0x290485,this[_0x42fd('0xa')]=_0x1d1a50,_0x1d1a50[_0x42fd('0x21')]?this['set'](_0x42fd('0x5'),0x1):this[_0x42fd('0xb')]();}['focus'](){this[_0x42fd('0x2')][_0x42fd('0x23')]();}[_0x42fd('0x7')](){this[_0x42fd('0x6')]&&this[_0x42fd('0x6')][_0x42fd('0x7')](),this[_0x42fd('0x18')]&&this[_0x42fd('0x18')][_0x42fd('0x7')](),super[_0x42fd('0x7')]();}[_0x42fd('0xb')](){const {CommentsListView:_0x3de420}=this['_config'];this[_0x42fd('0x6')]=new _0x3de420(this[_0x42fd('0x1a')],this['_model'][_0x42fd('0x1c')],Object[_0x42fd('0x20')]({'CommentView':this[_0x42fd('0xa')]['CommentView']},this[_0x42fd('0xa')])),this[_0x42fd('0x6')][_0x42fd('0x11')]('removeComment')['to'](this),this['commentsListView'][_0x42fd('0x11')](_0x42fd('0x9'))['to'](this),this[_0x42fd('0x6')][_0x42fd('0x16')](_0x42fd('0x0'))['to'](this),this['set'](_0x42fd('0x5'),this[_0x42fd('0x6')]['length']+0x1),this[_0x42fd('0x16')](_0x42fd('0x5'))['to'](this[_0x42fd('0x6')],'length',_0x3a8a21=>_0x3a8a21+0x1),this['commentThreadInputView']=this[_0x42fd('0x1e')](),this['on'](_0x42fd('0x24'),()=>this['focus']()),this['bind'](_0x42fd('0x1b'))['to'](this['commentsListView'],_0x42fd('0xf'),this[_0x42fd('0x18')]['commentInputView'],_0x42fd('0x1d'),(_0x1b4fab,_0x8cf2ca)=>_0x1b4fab||!!_0x8cf2ca);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c21d4}=this[_0x42fd('0xa')],_0x3394f0=new _0x2c21d4(this[_0x42fd('0x1a')],this[_0x42fd('0x15')],this[_0x42fd('0xa')][_0x42fd('0xd')]),_0x1998f6=_0x3394f0[_0x42fd('0x10')];return _0x3394f0[_0x42fd('0x16')](_0x42fd('0x8'))['to'](this,_0x42fd('0x0'),this['_model'][_0x42fd('0x1c')],_0x42fd('0x25'),_0x1998f6,_0x42fd('0x1d'),(_0x3aa610,_0x1d5077,_0x273339)=>!!_0x273339||_0x3aa610&&!_0x1d5077),_0x1998f6['on'](_0x42fd('0x17'),(_0x427f88,_0x40056b)=>{this[_0x42fd('0xc')](_0x42fd('0x13'),_0x40056b),_0x1998f6[_0x42fd('0x1')]['setData']('');}),_0x1998f6['on'](_0x42fd('0x14'),()=>this['focus']()),_0x1998f6[_0x42fd('0x16')](_0x42fd('0x19'))['to'](this[_0x42fd('0x3')][_0x42fd('0x1c')],_0x42fd('0x25')),_0x3394f0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11c6=['createElement','canDiscard','commentThreadInputView','EXTERNAL_SUGGESTION','creator','acceptSuggestion','getTemplate','canAccept','time','children','ck-suggestion--accept','div','disableComments','ck-annotation__main','isEnabled','push','@external','EXTERNAL_IMPORT_WORD_SUGGESTION','content','element','ck-suggestion','ck-suggestion-','author','setTemplate','isActive','split','ck-annotation__info-time','_config','<p>','type','\x22\x20title=\x22','change:description','userView','fire','ck-suggestion-wrapper--active','querySelector','map','getUserViewNotificationText','locale','description','EXTERNAL_IMPORT_WORD_AVATAR','innerHTML','extendTemplate','getExternalSuggestionNote','title','render','color','ck-suggestion--disabled-comments','ck-annotation__actions','acceptButton','ck-suggestion-wrapper','importWord','_createButton','span','value','discardButton','editorDestroyed','join','bind','Accept\x20suggestion','EXTERNAL_AVATAR','isExternal','delegate','cancel','set','name','formatDateTime','attributes','commentsListView','ck-annotation__content-wrapper','ck-suggestion__main','editorReady','commentThread','_descriptionElement','</p>','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-comment__info-time','ck-annotation__info-name','ck-annotation__info','_model','source','authoredAt','ck-suggestion__info'];(function(_0x4aa21e,_0x11c6d1){const _0x2db657=function(_0xf332d2){while(--_0xf332d2){_0x4aa21e['push'](_0x4aa21e['shift']());}};_0x2db657(++_0x11c6d1);}(_0x11c6,0x19d));const _0x2db6=function(_0x4aa21e,_0x11c6d1){_0x4aa21e=_0x4aa21e-0x0;let _0x2db657=_0x11c6[_0x4aa21e];return _0x2db657;};import{getTranslation as _0x42bdb3}from'../../utils/common-translations.js';import{default as _0x395dba}from'./basesuggestionthreadview.js';import{ButtonView as _0x4ad598}from'ckeditor5/src/ui.js';import{icons as _0x2a3237}from'ckeditor5/src/core.js';import{trimHtml as _0x3f8738,UserView as _0x321f8e}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Xt extends _0x395dba{constructor(_0x5c0124,_0x3851be,_0x124595,_0x3b5502){super(_0x5c0124,_0x3851be,_0x124595,_0x3b5502),this[_0x2db6('0x42')](_0x2db6('0x1f'),''),this[_0x2db6('0x3c')](_0x2db6('0x1f'))['to'](this,'descriptionParts',_0x3b1500=>_0x3b1500&&_0x3b1500[0x0]?_0x3b1500[0x0]['type']:''),this[_0x2db6('0x3c')](_0x2db6('0x29'))['to'](this,'descriptionParts',this,_0x2db6('0x1a'),(_0x29f975,_0x9f09b2)=>{let _0x57c607='';for(const _0x52eae3 of _0x29f975)_0x57c607+=_0x2db6('0x1e')+rs(_0x52eae3[_0x2db6('0x14')],_0x52eae3[_0x2db6('0x30')])+_0x2db6('0x4c');return _0x9f09b2?_0x57c607:_0x3f8738(_0x57c607,{'limit':0x8c});}),this[_0x2db6('0x4b')]=null,this[_0x2db6('0x33')]=this['_createButton'](_0x42bdb3(_0x5c0124,_0x2db6('0x3d')),_0x2a3237['check'],_0x2db6('0xc'),_0x2db6('0x7'),'sw'),this[_0x2db6('0x33')]['bind'](_0x2db6('0x10'))['to'](this,_0x2db6('0x9')),this['discardButton']=this[_0x2db6('0x36')](_0x42bdb3(_0x5c0124,'Discard\x20suggestion'),_0x2a3237[_0x2db6('0x41')],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton'][_0x2db6('0x3c')](_0x2db6('0x10'))['to'](this,_0x2db6('0x3')),this[_0x2db6('0x22')]=new _0x321f8e(_0x5c0124,this[_0x2db6('0x51')][_0x2db6('0x18')],this[_0x2db6('0x27')]()),this[_0x2db6('0x22')]['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this[_0x2db6('0x19')](this[_0x2db6('0x8')]());}['getTemplate'](){const _0x3c022d=this['bindTemplate'],_0x258d3d=[{'tag':_0x2db6('0xd'),'attributes':{'class':[_0x2db6('0x1'),_0x2db6('0x50')]},'children':[{'tag':_0x2db6('0x37'),'children':[{'text':this[_0x2db6('0x22')][_0x2db6('0x43')]}],'attributes':{'class':['ck-suggestion__info-name',_0x2db6('0x4f')]}},{'tag':_0x2db6('0xa'),'attributes':{'datetime':_0x3c022d['to'](_0x2db6('0x0')),'class':[_0x2db6('0x4e'),_0x2db6('0x1c')]},'children':[{'text':_0x3c022d['to']('authoredAt',_0x58d265=>this[_0x2db6('0x1d')][_0x2db6('0x44')](_0x58d265))}]}]},{'tag':_0x2db6('0xd'),'attributes':{'class':['ck-suggestion__actions',_0x2db6('0x32')]},'children':[this[_0x2db6('0x33')],this[_0x2db6('0x39')]]},{'tag':_0x2db6('0xd'),'attributes':{'class':[_0x2db6('0x47')]}}];this[_0x2db6('0x51')][_0x2db6('0x3f')]&&_0x258d3d[_0x2db6('0x11')]({'tag':_0x2db6('0xd'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x2db6('0x2d')]()}]});const _0x39fe32={'tag':'div','attributes':{'class':[_0x2db6('0x34'),_0x3c022d['if'](_0x2db6('0x1a'),_0x2db6('0x24')),_0x3c022d['to'](_0x2db6('0x1f'),_0x4d97a5=>_0x2db6('0x17')+_0x4d97a5),this['_config'][_0x2db6('0xe')]&&_0x2db6('0x31')],'data-suggestion-id':this[_0x2db6('0x51')]['id'],'data-thread-id':this[_0x2db6('0x51')][_0x2db6('0x4a')]['id'],'data-author-id':this[_0x2db6('0x51')][_0x2db6('0x18')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2db6('0xd'),'attributes':{'class':[_0x2db6('0x16'),'ck-annotation']},'children':[this['userView'],{'tag':_0x2db6('0xd'),'attributes':{'class':[_0x2db6('0x48'),_0x2db6('0xf')]},'children':_0x258d3d}]}]};return this[_0x2db6('0x46')]&&this[_0x2db6('0x4')]&&(_0x39fe32[_0x2db6('0xb')][_0x2db6('0x11')](this['commentsListView'],this[_0x2db6('0x4')]),this[_0x2db6('0x46')][_0x2db6('0x40')](_0x2db6('0x49'))['to'](this),this[_0x2db6('0x46')][_0x2db6('0x40')](_0x2db6('0x3a'))['to'](this),this[_0x2db6('0x4')][_0x2db6('0x40')]('editorReady')['to'](this),this[_0x2db6('0x4')][_0x2db6('0x40')](_0x2db6('0x3a'))['to'](this)),_0x39fe32;}[_0x2db6('0x2f')](){super['render'](),this['_descriptionElement']=this[_0x2db6('0x15')][_0x2db6('0x25')]('.ck-annotation__content-wrapper'),this[_0x2db6('0x4b')][_0x2db6('0x2b')]=this['description'],this['on'](_0x2db6('0x21'),(_0x53764d,_0x58547d,_0x206e42)=>{this[_0x2db6('0x4b')][_0x2db6('0x2b')]=_0x206e42;});}[_0x2db6('0x36')](_0x4e47b5,_0x10d58a,_0x250759,_0xc8858b,_0x4173af){const _0x9071ea=new _0x4ad598(this[_0x2db6('0x28')]);return _0x9071ea[_0x2db6('0x42')]({'label':_0x4e47b5,'icon':_0x10d58a,'tooltip':!0x0,'tooltipPosition':_0x4173af}),_0x9071ea[_0x2db6('0x2c')]({'attributes':{'class':_0x250759}}),_0x9071ea['on']('execute',()=>{this[_0x2db6('0x23')](_0xc8858b,this[_0x2db6('0x51')]['id']);}),_0x9071ea;}[_0x2db6('0x2d')](){return'importWord'===this[_0x2db6('0x51')]['attributes'][_0x2db6('0x12')][_0x2db6('0x52')]?_0x42bdb3(this[_0x2db6('0x28')],_0x2db6('0x13')):_0x42bdb3(this[_0x2db6('0x28')],_0x2db6('0x5'));}[_0x2db6('0x27')](){return this[_0x2db6('0x51')][_0x2db6('0x3f')]?_0x2db6('0x35')===this[_0x2db6('0x51')][_0x2db6('0x45')][_0x2db6('0x12')][_0x2db6('0x52')]?_0x42bdb3(this[_0x2db6('0x28')],_0x2db6('0x2a'),this[_0x2db6('0x51')][_0x2db6('0x6')]['name']):_0x42bdb3(this[_0x2db6('0x28')],_0x2db6('0x3e'),this[_0x2db6('0x51')][_0x2db6('0x6')][_0x2db6('0x43')]):null;}}function rs(_0x4ab58f,_0x92004d){let _0x4923a9='';return _0x4923a9+=_0x4ab58f[_0x2db6('0x1b')]('*')[_0x2db6('0x26')]((_0x53770a,_0x208070)=>_0x208070%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+ds(_0x53770a)+'</span>':ds(_0x53770a))[_0x2db6('0x3b')](''),_0x92004d&&(_0x4923a9+=_0x2db6('0x4d')+_0x92004d[_0x2db6('0x38')]+_0x2db6('0x20')+_0x92004d[_0x2db6('0x2e')]+'\x22></span>'),_0x4923a9;}function ds(_0x205fcc){const _0x21e425=document[_0x2db6('0x2')](_0x2db6('0x37'));return _0x21e425['innerText']=_0x205fcc,_0x21e425[_0x2db6('0x2b')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x4774d1,_0x123a38,_0xf840fb){const t=_0x4774d1['t'];switch(_0x123a38){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',_0xf840fb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xf840fb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xf840fb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xf840fb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xf840fb);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',_0xf840fb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xf840fb);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',_0xf840fb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xf840fb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xf840fb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xf840fb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xf840fb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xf840fb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xf840fb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xf840fb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xf840fb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xf840fb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xf840fb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xf840fb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xf840fb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xf840fb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xf840fb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xf840fb);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'},_0xf840fb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xf840fb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xf840fb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xf840fb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xf840fb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xf840fb);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'},_0xf840fb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xf840fb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xf840fb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xf840fb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xf840fb);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'},_0xf840fb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xf840fb);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'},_0xf840fb);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'},_0xf840fb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xf840fb);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'},_0xf840fb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xf840fb);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'},_0xf840fb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xf840fb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xf840fb);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'},_0xf840fb);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'},_0xf840fb);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 _0x123a38;}}
|
|
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;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a2e=['isCollapsed','isTouching','type','push','execute','from','createRange','createPositionAfter','join','getRanges','isObject','content','length','splice','schema','color','deletion','isInContent','isMultiRange','change','isIntersecting','end','isArray','\x20[color\x20','start','sort'];(function(_0x140621,_0x5a2e97){const _0x5818e6=function(_0x532e74){while(--_0x532e74){_0x140621['push'](_0x140621['shift']());}};_0x5818e6(++_0x5a2e97);}(_0x5a2e,0xb8));const _0x5818=function(_0x140621,_0x5a2e97){_0x140621=_0x140621-0x0;let _0x5818e6=_0x5a2e[_0x140621];return _0x5818e6;};export function normalizeDescription(_0x10f026){return Array[_0x5818('0x14')](_0x10f026)||(_0x10f026=[_0x10f026]),_0x10f026['map'](_0x5a64a0=>{const _0x358215=_0x5a64a0[_0x5818('0x9')]['replace'](/\*/g,''),_0x22649f=_0x5a64a0[_0x5818('0xd')]?_0x5818('0x15')+_0x5a64a0[_0x5818('0xd')]['value']+']':'';return'['+_0x5a64a0[_0x5818('0x0')]+']\x20'+_0x358215+_0x22649f;})[_0x5818('0x6')](';\x20');}export function sortSuggestions(_0x55e652){return _0x55e652[_0x5818('0x17')]((_0x23e3d4,_0x2d6c15)=>_0x5818('0xe')==_0x23e3d4[_0x5818('0x0')]&&_0x5818('0xe')!=_0x2d6c15[_0x5818('0x0')]?-0x1:_0x5818('0xe')!=_0x23e3d4[_0x5818('0x0')]&&_0x5818('0xe')==_0x2d6c15['type']?0x1:0x0);}export function getSelectedSuggestions(_0x46968e,_0x1b4be8){const _0x527b32=Array[_0x5818('0x3')](_0x46968e[_0x5818('0x7')]()),_0x14c3c7=new Set();for(const _0x2d2f7f of _0x1b4be8)if(_0x2d2f7f['isInContent'])for(const _0x5f1ce4 of _0x527b32)for(const _0x445dec of _0x2d2f7f[_0x5818('0x7')]())(_0x5f1ce4[_0x5818('0x12')](_0x445dec)||_0x46968e[_0x5818('0x18')]&&!_0x2d2f7f[_0x5818('0x10')]&&_0x2d2f7f['next']&&_0x445dec[_0x5818('0x13')][_0x5818('0x19')](_0x5f1ce4[_0x5818('0x16')]))&&_0x14c3c7['add'](_0x2d2f7f);return _0x14c3c7;}export function getRangesOfBlockGroups(_0xe1c179,_0x5ee1e7){let _0x5d5102,_0x510fdc=0x0;const _0x78c348=[],_0x3d4f11=_0x5ee1e7[_0x5818('0xc')];for(;_0x510fdc<_0xe1c179['length'];){const _0x2c38b0=_0xe1c179[_0x510fdc],_0x2b8053=_0xe1c179[_0x510fdc+0x1];_0x5d5102||(_0x5d5102=_0x5ee1e7['createPositionBefore'](_0x2c38b0)),co(_0x5ee1e7,_0x2c38b0,_0x2b8053)||(_0x78c348[_0x5818('0x1')](_0x5ee1e7[_0x5818('0x4')](_0x5d5102,_0x3d4f11[_0x5818('0x8')](_0x2c38b0)?_0x5ee1e7['createPositionAfter'](_0x2c38b0):_0x5ee1e7['createPositionAt'](_0x2c38b0,_0x5818('0x13')))),_0x5d5102=null),_0x510fdc++;}return _0x78c348;}function co(_0xa69a03,_0x44af6f,_0x250348){if(!_0x250348)return!0x1;const _0x4a74e0=_0xa69a03[_0x5818('0x5')](_0x44af6f),_0x1b91ec=_0xa69a03['createPositionBefore'](_0x250348);return _0x4a74e0[_0x5818('0x19')](_0x1b91ec);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x65a0ac,_0x2e04a0,_0x5a28b6){for(;_0x5a28b6[_0x5818('0xa')];){const _0x4e314e=_0x5a28b6[_0x5818('0xb')](0x0,0x64);_0x65a0ac[_0x5818('0x11')](()=>{for(const _0x1fc3f2 of _0x4e314e)_0x1fc3f2[_0x5818('0xf')]&&_0x2e04a0[_0x5818('0x2')](_0x1fc3f2['id']);});}}
|