@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231124.0 → 0.0.0-nightly-20231125.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 _0x3730=['get','trackChanges.SuggestionThreadView','_descriptionFactory','define','comments.editorConfig','descriptionParts','refreshSelectedViews','head','_initializeController','getMarkerNames','lowest','length','Discard\x20all\x20selected\x20suggestions','SuggestionThreadView','commands','isEnabled','TrackChangesEditing','CommentView','trackChanges','editor','activeAnnotations','view','getFirstRange','locale','comments.maxCommentCharsWhenCollapsed','editing','change:previous','_viewToController','getDescriptions','isInContent','_annotationViews','getAllAdjacentSuggestions','_refreshActiveMarkers','getJoined','model','getSuggestion','add','source','has','mainView','listenTo','hasSuggestion','Track\x20changes','commandName','some','Accept\x20all\x20selected\x20suggestions','discardButton','isOn','_updateController','suggestion-','Annotations','previous','_handleControllerBuffer','_unbindEditors','keys','arrowView','plugins','acceptSelectedSuggestions','acceptButton','registerAnnotation','Accept\x20all\x20suggestions','destroy','comments.maxThreadTotalWeight','_disableComments','delete','toMany','remove','suggestionUnloaded','type','push','addSourceCollector','_handleSuggestionControllerDelayed','discardSelectedSuggestions','focus','comments.maxCommentsWhenCollapsed','filter','_createUIButton','value','CommentsRepository','bind','createAnnotationView','trackChanges.disableComments','set','getByInnerView','execute','pluginName','isDirty','isMultiRange','map','buttonView','_destroyController','createAnnotation','config','comments','actionView','button','_suggestionToController','suggestionLoaded','size','EditorAnnotations','init','componentFactory','from','switchbutton'];(function(_0x7a8829,_0x37309c){const _0x5abeae=function(_0x559b7a){while(--_0x559b7a){_0x7a8829['push'](_0x7a8829['shift']());}};_0x5abeae(++_0x37309c);}(_0x3730,0x84));const _0x5abe=function(_0x7a8829,_0x37309c){_0x7a8829=_0x7a8829-0x0;let _0x5abeae=_0x3730[_0x7a8829];return _0x5abeae;};import{Plugin as _0x444852}from'ckeditor5/src/core';import{Collection as _0x412a97}from'ckeditor5/src/utils';import{Model as _0x9851e1,SplitButtonView as _0x4ad176,createDropdown as _0x3cd96d,addListToDropdown as _0x18c0d1}from'ckeditor5/src/ui';import{Users as _0x2b8ab3,getDateTimeFormatter as _0x491975,getAllMarkersDomElementsSorted as _0x97c26b}from'ckeditor5-collaboration/src/collaboration-core';import _0x3670d4 from'./trackchangesediting';import _0x56c614 from'./ui/suggestioncontroller';import _0x49d7a3 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5a6852}from'./utils/common-translations';import _0x3e8bd5 from'../theme/icons/track-changes.svg';export default class d extends _0x444852{static get['requires'](){return[_0x3670d4,_0x2b8ab3,_0x5abe('0x32'),_0x5abe('0x16'),_0x5abe('0x47')];}static get[_0x5abe('0x39')](){return'TrackChangesUI';}constructor(_0x241bfd){super(_0x241bfd),this[_0x5abe('0x44')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x5abe('0x18')]=new Map();const _0x435b64=this['editor'][_0x5abe('0x40')];_0x435b64['define'](_0x5abe('0x4d'),_0x49d7a3),_0x435b64[_0x5abe('0x4f')](_0x5abe('0x35'),!0x1),this[_0x5abe('0x23')]=_0x435b64[_0x5abe('0x4c')](_0x5abe('0x35'));}[_0x5abe('0x2b')](_0x4aa810,_0x36abef){0x0===this[_0x5abe('0x18')][_0x5abe('0x46')]&&setTimeout(()=>{for(const [_0x44310d,_0x25a633]of this[_0x5abe('0x18')]){const _0x43bc7e=this[_0x5abe('0x44')]['has'](_0x44310d);_0x43bc7e||_0x25a633?_0x43bc7e&&_0x25a633&&this[_0x5abe('0x3e')](_0x44310d):this[_0x5abe('0x54')](_0x44310d);}this[_0x5abe('0x5f')][_0x5abe('0x1c')]['get'](_0x5abe('0x47'))[_0x5abe('0x52')](),this['_refreshActiveMarkers'](),this[_0x5abe('0x18')]['clear']();},0xa),this[_0x5abe('0x18')][_0x5abe('0x36')](_0x4aa810,_0x36abef);}[_0x5abe('0x48')](){const _0x9a30a8=this[_0x5abe('0x5f')],_0x265cdd=_0x9a30a8['plugins'][_0x5abe('0x4c')](_0x5abe('0x5c')),_0x209425=_0x9a30a8[_0x5abe('0x1c')][_0x5abe('0x4c')]('Annotations'),_0x20fd14=_0x9a30a8[_0x5abe('0x1c')][_0x5abe('0x4c')](_0x5abe('0x47')),_0xca892c=_0x9a30a8[_0x5abe('0x1c')][_0x5abe('0x4c')]('CommentsRepository');_0x9a30a8['ui'][_0x5abe('0x49')]['add'](_0x5abe('0x5e'),_0x77e540=>this[_0x5abe('0x30')](_0x77e540)),_0x20fd14[_0x5abe('0x2a')](()=>{const _0x40ead3=[];for(const [_0xb281b1,_0x23d9d6]of Array[_0x5abe('0x4a')](this[_0x5abe('0x44')])){const _0x40dcf7=_0xb281b1[_0x5abe('0x3')](),_0x187abe=[];for(const _0x15a080 of _0x40dcf7){if(!_0x15a080['isInContent'])continue;if(_0x15a080[_0x5abe('0x3b')]){_0x187abe[_0x5abe('0x29')](..._0x15a080['getRanges']());continue;}const _0x2b126d=_0x15a080[_0x5abe('0x62')]();if(_0x187abe[_0x5abe('0x57')]>0x0){const _0x677543=_0x187abe[0x0][_0x5abe('0x5')](_0x2b126d);if(_0x677543){_0x187abe[0x0]=_0x677543;continue;}}_0x187abe[_0x5abe('0x29')](_0x2b126d);}_0x40ead3['push']([_0x23d9d6[_0x5abe('0x61')],_0x187abe]);}return _0x40ead3;}),this[_0x5abe('0xc')](_0x265cdd,_0x5abe('0x45'),(_0xf3a0c7,_0x15d855)=>{this[_0x5abe('0xc')](_0x15d855,_0x5abe('0x66'),(_0x2a9751,_0x808db8,_0x8de2a,_0x5cb164)=>{_0x15d855[_0x5abe('0x1')]&&(null==_0x8de2a?(this[_0x5abe('0x14')](_0x5cb164[_0x5abe('0x53')]),this['_handleSuggestionControllerDelayed'](_0x15d855,!0x1)):(this['_updateController'](_0x8de2a[_0x5abe('0x53')]),null==_0x5cb164&&this[_0x5abe('0x2b')](_0x15d855,!0x0)));}),null!==_0x15d855[_0x5abe('0x17')]?this[_0x5abe('0x14')](_0x15d855[_0x5abe('0x53')]):this[_0x5abe('0x2b')](_0x15d855,!0x1);}),this[_0x5abe('0xc')](_0x265cdd,_0x5abe('0x27'),(_0x35b908,_0x2376dc,_0x1c7593)=>{this['stopListening'](_0x2376dc,_0x5abe('0x66')),this[_0x5abe('0x18')][_0x5abe('0x24')](_0x2376dc),this[_0x5abe('0x44')][_0x5abe('0xa')](_0x2376dc)&&this[_0x5abe('0x3e')](_0x2376dc),_0x1c7593&&this[_0x5abe('0x14')](_0x1c7593[_0x5abe('0x53')]);}),this[_0x5abe('0xc')](_0x265cdd,'suggestionChanged',(_0x322688,_0x39f5ad)=>{this[_0x5abe('0x14')](_0x39f5ad);}),this[_0x5abe('0xc')](_0x209425,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this[_0x5abe('0xc')](_0xca892c,'addComment',(_0x30f709,{threadId:_0x4c6a6b,isFromAdapter:_0x34d6ff})=>{if(_0x34d6ff||!_0x265cdd[_0x5abe('0xd')](_0x4c6a6b))return;const _0x2a290a=_0x265cdd[_0x5abe('0x7')](_0x4c6a6b);this[_0x5abe('0x44')]['get'](_0x2a290a)[_0x5abe('0x61')]['focus']();},{'priority':_0x5abe('0x56')});}[_0x5abe('0x4')](){const _0x1e17d9=this[_0x5abe('0x5f')]['plugins'][_0x5abe('0x4c')](_0x5abe('0x16')),_0x1e2a9b=this[_0x5abe('0x5f')]['plugins'][_0x5abe('0x4c')]('TrackChangesEditing'),_0x353adf=Array[_0x5abe('0x4a')](_0x1e17d9[_0x5abe('0x60')],_0x2c090b=>_0x2c090b['innerView'])[_0x5abe('0x2f')](_0x5dc869=>this[_0x5abe('0x67')][_0x5abe('0xa')](_0x5dc869)),_0x459fbb=[];for(const _0x281a1b of _0x353adf){const _0x2ae595=this[_0x5abe('0x67')][_0x5abe('0x4c')](_0x281a1b)[_0x5abe('0x6')][_0x5abe('0x3')]();_0x459fbb[_0x5abe('0x29')](..._0x2ae595['reduce']((_0x240daf,_0x1b7947)=>[..._0x240daf,..._0x1b7947[_0x5abe('0x55')]()],[]));}_0x1e2a9b['activeMarkers']=_0x459fbb;}[_0x5abe('0x30')](_0x3f2544){const _0x1b40db=_0x3cd96d(_0x3f2544,_0x4ad176),_0x34d251=this['editor'][_0x5abe('0x5a')]['get'](_0x5abe('0x5e')),_0x307aa2=_0x5a6852(_0x3f2544,_0x5abe('0xe'));_0x1b40db['buttonView'][_0x5abe('0x36')]({'tooltip':_0x307aa2,'label':_0x307aa2,'icon':_0x3e8bd5}),_0x1b40db[_0x5abe('0x3d')][_0x5abe('0x33')](_0x5abe('0x13'))['to'](_0x34d251,_0x5abe('0x31')),_0x1b40db[_0x5abe('0x3d')]['on'](_0x5abe('0x38'),()=>{_0x34d251['execute'](),this[_0x5abe('0x5f')][_0x5abe('0x65')][_0x5abe('0x61')][_0x5abe('0x2d')]();});const _0x3ccc7a=new _0x412a97(),_0x3f7d95=[{'type':_0x5abe('0x4b'),'model':{'withText':!0x0,'label':_0x307aa2,'commandName':_0x5abe('0x5e')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x5a6852(_0x3f2544,_0x5abe('0x20')),'commandName':'acceptAllSuggestions'}},{'type':_0x5abe('0x43'),'model':{'withText':!0x0,'label':_0x5a6852(_0x3f2544,_0x5abe('0x11')),'commandName':_0x5abe('0x1d')}},{'type':_0x5abe('0x43'),'model':{'withText':!0x0,'label':_0x5a6852(_0x3f2544,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x5abe('0x43'),'model':{'withText':!0x0,'label':_0x5a6852(_0x3f2544,_0x5abe('0x58')),'commandName':_0x5abe('0x2c')}}];for(const _0x47af67 of _0x3f7d95){let _0x3e7aea={'type':'separator'};if(_0x47af67[_0x5abe('0x6')]){const _0x212e63=new _0x9851e1(_0x47af67[_0x5abe('0x6')]),_0x17a227=this[_0x5abe('0x5f')][_0x5abe('0x5a')][_0x5abe('0x4c')](_0x212e63[_0x5abe('0xf')]);_0x212e63[_0x5abe('0x33')](_0x5abe('0x13'),_0x5abe('0x5b'))['to'](_0x17a227,_0x5abe('0x31'),'isEnabled'),_0x3e7aea={'type':_0x47af67[_0x5abe('0x28')],'model':_0x212e63};}_0x3ccc7a['add'](_0x3e7aea);}_0x18c0d1(_0x1b40db,_0x3ccc7a);const _0x2220cb=_0x3f7d95['filter'](_0x48b94f=>null!=_0x48b94f[_0x5abe('0x6')])[_0x5abe('0x3c')](_0x434622=>this['editor'][_0x5abe('0x5a')][_0x5abe('0x4c')](_0x434622[_0x5abe('0x6')][_0x5abe('0xf')])),_0x12c05d=_0x1b40db[_0x5abe('0x3d')];return _0x12c05d[_0x5abe('0x42')]['unbind']('isEnabled'),_0x12c05d[_0x5abe('0x1b')]['unbind'](_0x5abe('0x5b')),_0x12c05d[_0x5abe('0x42')][_0x5abe('0x33')](_0x5abe('0x5b'))['to'](_0x34d251,_0x5abe('0x5b')),_0x12c05d[_0x5abe('0x1b')][_0x5abe('0x33')]('isEnabled')[_0x5abe('0x25')](_0x2220cb,_0x5abe('0x5b'),(..._0x3f85d7)=>_0x3f85d7[_0x5abe('0x10')](_0x97ca03=>_0x97ca03)),_0x1b40db['on'](_0x5abe('0x38'),_0xcb46f8=>{this[_0x5abe('0x5f')]['execute'](_0xcb46f8[_0x5abe('0x9')][_0x5abe('0xf')]),this[_0x5abe('0x5f')][_0x5abe('0x65')][_0x5abe('0x61')][_0x5abe('0x2d')]();}),_0x1b40db;}[_0x5abe('0x54')](_0x322710){const _0x3ccf94=this[_0x5abe('0x5f')],_0x4cc868=_0x3ccf94[_0x5abe('0x40')],_0x38658e=_0x3ccf94[_0x5abe('0x1c')][_0x5abe('0x4c')](_0x5abe('0x16')),_0x118bdd=_0x3ccf94['plugins'][_0x5abe('0x4c')](_0x5abe('0x32')),_0x3b8050=_0x3ccf94[_0x5abe('0x1c')][_0x5abe('0x4c')](_0x5abe('0x47')),_0x9e7a4c=_0x3ccf94['plugins'][_0x5abe('0x4c')](_0x2b8ab3)['me'],_0x1104eb=_0x4cc868[_0x5abe('0x4c')]('trackChanges')[_0x5abe('0x59')],{CommentsListView:_0xab2787,CommentThreadInputView:_0x56115b}=_0x3ccf94['plugins'][_0x5abe('0x4c')]('CommentsUI');let _0x49078c,_0x1768cf;this[_0x5abe('0x2')][_0x5abe('0xa')](_0x322710['id'])?(_0x1768cf=this[_0x5abe('0x2')][_0x5abe('0x4c')](_0x322710['id']),_0x49078c=_0x1768cf[_0x5abe('0xb')]):(_0x49078c=new _0x1104eb(_0x3ccf94[_0x5abe('0x63')],_0x322710,_0x9e7a4c,{'disableComments':this[_0x5abe('0x23')],'editorConfig':_0x4cc868[_0x5abe('0x4c')](_0x5abe('0x50')),'maxCommentsWhenCollapsed':_0x4cc868[_0x5abe('0x4c')](_0x5abe('0x2e')),'maxThreadTotalWeight':_0x4cc868[_0x5abe('0x4c')](_0x5abe('0x22')),'maxCommentCharsWhenCollapsed':_0x4cc868[_0x5abe('0x4c')](_0x5abe('0x64')),'formatDateTime':_0x491975(_0x4cc868[_0x5abe('0x4c')](_0x5abe('0x63'))),'CommentView':_0x4cc868['get'](_0x5abe('0x41'))[_0x5abe('0x5d')],'CommentsListView':_0xab2787,'CommentThreadInputView':_0x56115b}),_0x49078c[_0x5abe('0x1e')]['on']('execute',()=>{_0x3ccf94['editing']['view'][_0x5abe('0x2d')]();}),_0x49078c[_0x5abe('0x12')]['on'](_0x5abe('0x38'),()=>{_0x3ccf94[_0x5abe('0x65')][_0x5abe('0x61')]['focus']();}),_0x1768cf=_0x38658e[_0x5abe('0x34')](this[_0x5abe('0x5f')][_0x5abe('0x63')],_0x49078c),_0x1768cf[_0x5abe('0x33')]('isDirty')['to'](_0x49078c,_0x5abe('0x3a')),_0x1768cf[_0x5abe('0x33')]('length')['to'](_0x49078c),_0x1768cf[_0x5abe('0x33')]('type')['to'](_0x49078c,'type',_0x2c0c36=>_0x5abe('0x15')+_0x2c0c36),this[_0x5abe('0x2')][_0x5abe('0x36')](_0x322710['id'],_0x1768cf));const _0x5bfa9d=_0x118bdd['createCommentThreadController'](_0x322710['commentThread'],_0x49078c),_0x4074b6=new _0x56c614(_0x3ccf94,_0x322710,_0x49078c,_0x5bfa9d),_0x3509f5=_0x322710[_0x5abe('0x3')]()[_0x5abe('0x2f')](_0x22eab1=>_0x22eab1[_0x5abe('0x1')]);_0x49078c[_0x5abe('0x51')]=_0x3ccf94['plugins'][_0x5abe('0x4c')](_0x5abe('0x5c'))[_0x5abe('0x4e')]['getDescriptions'](_0x3509f5),this[_0x5abe('0x44')][_0x5abe('0x36')](_0x322710,_0x4074b6),this[_0x5abe('0x67')]['set'](_0x49078c,_0x4074b6);const _0x46a41a=_0x38658e[_0x5abe('0x3f')]({'view':_0x1768cf,'target':()=>{const _0x47e7bf=[],_0x59dad0=_0x322710[_0x5abe('0x3')]()['filter'](_0x10a67d=>_0x10a67d['isInContent']);for(const _0x343fb1 of _0x59dad0)_0x47e7bf[_0x5abe('0x29')](..._0x343fb1['getMarkers']());return _0x97c26b(_0x3ccf94[_0x5abe('0x65')],_0x47e7bf);},'type':()=>_0x5abe('0x15')+_0x4074b6['view'][_0x5abe('0x28')]});_0x118bdd['_bindAnnotationToEditors'](_0x49078c,_0x46a41a),_0x38658e[_0x5abe('0x8')](_0x46a41a),_0x3b8050[_0x5abe('0x1f')](_0x46a41a);}[_0x5abe('0x3e')](_0x3af08d){const _0x4b0f27=this[_0x5abe('0x5f')][_0x5abe('0x1c')][_0x5abe('0x4c')]('CommentsRepository'),_0x2d7f9e=this['editor']['plugins'][_0x5abe('0x4c')](_0x5abe('0x16')),_0x55ad73=this[_0x5abe('0x44')][_0x5abe('0x4c')](_0x3af08d),_0x5ea915=_0x55ad73[_0x5abe('0x61')],_0x1b4252=_0x2d7f9e[_0x5abe('0x37')](_0x5ea915);_0x4b0f27[_0x5abe('0x19')](_0x5ea915),_0x1b4252&&_0x2d7f9e[_0x5abe('0x26')](_0x1b4252),this[_0x5abe('0x44')][_0x5abe('0x24')](_0x3af08d),this[_0x5abe('0x67')][_0x5abe('0x24')](_0x5ea915),_0x55ad73[_0x5abe('0x21')]();}[_0x5abe('0x14')](_0x44cc12){if(!_0x44cc12[_0x5abe('0x1')]||!this[_0x5abe('0x44')][_0x5abe('0xa')](_0x44cc12))return;const _0x3d64b6=this['editor'][_0x5abe('0x1c')]['get'](_0x5abe('0x5c')),_0x483785=this[_0x5abe('0x44')]['get'](_0x44cc12),_0x120e33=_0x44cc12[_0x5abe('0x3')]();_0x483785[_0x5abe('0x61')][_0x5abe('0x51')]=_0x3d64b6[_0x5abe('0x4e')][_0x5abe('0x0')](_0x120e33);}[_0x5abe('0x21')](){for(const _0x21d234 of this[_0x5abe('0x44')][_0x5abe('0x1a')]())this[_0x5abe('0x3e')](_0x21d234);for(const _0x11fd14 of this[_0x5abe('0x2')]['values']())_0x11fd14[_0x5abe('0xb')][_0x5abe('0x21')]();super[_0x5abe('0x21')]();}}
|
|
23
|
+
const _0x592a=['view','delete','add','comments.maxCommentsWhenCollapsed','getMarkers','refreshSelectedViews','innerView','commands','getDescriptions','acceptButton','actionView','separator','Discard\x20all\x20suggestions','getByInnerView','arrowView','values','TrackChangesEditing','_suggestionToController','comments.editorConfig','getMarkerNames','discardButton','isEnabled','discardAllSuggestions','get','EditorAnnotations','config','push','toMany','Annotations','some','TrackChangesUI','CommentsRepository','mainView','lowest','execute','createAnnotationView','reduce','acceptSelectedSuggestions','pluginName','clear','change:previous','isDirty','button','type','from','value','_descriptionFactory','Accept\x20all\x20selected\x20suggestions','init','addComment','suggestionChanged','comments.maxCommentCharsWhenCollapsed','isOn','keys','getJoined','trackChanges','SuggestionThreadView','plugins','getFirstRange','getSuggestion','filter','addSourceCollector','commandName','buttonView','has','_bindAnnotationToEditors','_handleControllerBuffer','unbind','_destroyController','comments.maxThreadTotalWeight','model','requires','listenTo','bind','_disableComments','suggestionLoaded','isMultiRange','length','activeAnnotations','componentFactory','acceptAllSuggestions','registerAnnotation','Accept\x20all\x20suggestions','_handleSuggestionControllerDelayed','_initializeController','_updateController','locale','commentThread','getAllAdjacentSuggestions','define','_annotationViews','suggestionUnloaded','focus','editor','_viewToController','suggestion-','_unbindEditors','createAnnotation','editing','discardSelectedSuggestions','map','isInContent','trackChanges.SuggestionThreadView','descriptionParts','set','size','CommentsUI','destroy','_createUIButton','head','createCommentThreadController','hasSuggestion','previous'];(function(_0x197371,_0x592a04){const _0xbe7a37=function(_0x3e9e90){while(--_0x3e9e90){_0x197371['push'](_0x197371['shift']());}};_0xbe7a37(++_0x592a04);}(_0x592a,0xce));const _0xbe7a=function(_0x197371,_0x592a04){_0x197371=_0x197371-0x0;let _0xbe7a37=_0x592a[_0x197371];return _0xbe7a37;};import{Plugin as _0x22275a}from'ckeditor5/src/core';import{Collection as _0x4977bf}from'ckeditor5/src/utils';import{Model as _0x1afa30,SplitButtonView as _0x53226b,createDropdown as _0xd36b33,addListToDropdown as _0x168423}from'ckeditor5/src/ui';import{Users as _0x3fd0b4,getDateTimeFormatter as _0x5bc3a0,getAllMarkersDomElementsSorted as _0x2501ea}from'ckeditor5-collaboration/src/collaboration-core';import _0x5f5cf4 from'./trackchangesediting';import _0x4ed2f2 from'./ui/suggestioncontroller';import _0x3c007d from'./ui/view/suggestionthreadview';import{getTranslation as _0x52fc07}from'./utils/common-translations';import _0x192b8a from'../theme/icons/track-changes.svg';export default class d extends _0x22275a{static get[_0xbe7a('0x5b')](){return[_0x5f5cf4,_0x3fd0b4,_0xbe7a('0x33'),_0xbe7a('0x30'),_0xbe7a('0x2c')];}static get[_0xbe7a('0x3a')](){return _0xbe7a('0x32');}constructor(_0x322b3c){super(_0x322b3c),this[_0xbe7a('0x25')]=new Map(),this[_0xbe7a('0x1')]=new Map(),this[_0xbe7a('0x6e')]=new Map(),this[_0xbe7a('0x56')]=new Map();const _0x1585ef=this[_0xbe7a('0x0')]['config'];_0x1585ef['define'](_0xbe7a('0x9'),_0x3c007d),_0x1585ef[_0xbe7a('0x6d')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1585ef[_0xbe7a('0x2b')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4e0825,_0x450384){0x0===this['_handleControllerBuffer'][_0xbe7a('0xc')]&&setTimeout(()=>{for(const [_0x3ae881,_0x3eff75]of this[_0xbe7a('0x56')]){const _0x4ed0eb=this[_0xbe7a('0x25')][_0xbe7a('0x54')](_0x3ae881);_0x4ed0eb||_0x3eff75?_0x4ed0eb&&_0x3eff75&&this[_0xbe7a('0x58')](_0x3ae881):this[_0xbe7a('0x68')](_0x3ae881);}this['editor'][_0xbe7a('0x4d')]['get'](_0xbe7a('0x2c'))[_0xbe7a('0x19')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0xbe7a('0x3b')]();},0xa),this[_0xbe7a('0x56')][_0xbe7a('0xb')](_0x4e0825,_0x450384);}[_0xbe7a('0x44')](){const _0x2ac7e6=this[_0xbe7a('0x0')],_0x2bb840=_0x2ac7e6[_0xbe7a('0x4d')]['get'](_0xbe7a('0x24')),_0xf5bb4c=_0x2ac7e6[_0xbe7a('0x4d')][_0xbe7a('0x2b')]('Annotations'),_0x52fead=_0x2ac7e6[_0xbe7a('0x4d')][_0xbe7a('0x2b')]('EditorAnnotations'),_0x120887=_0x2ac7e6[_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0xbe7a('0x33'));_0x2ac7e6['ui'][_0xbe7a('0x63')][_0xbe7a('0x16')](_0xbe7a('0x4b'),_0x33eaf9=>this['_createUIButton'](_0x33eaf9)),_0x52fead[_0xbe7a('0x51')](()=>{const _0x36ca0e=[];for(const [_0x288adb,_0x4a3e9d]of Array['from'](this[_0xbe7a('0x25')])){const _0x2c7380=_0x288adb[_0xbe7a('0x6c')](),_0x2e241f=[];for(const _0x71078c of _0x2c7380){if(!_0x71078c['isInContent'])continue;if(_0x71078c[_0xbe7a('0x60')]){_0x2e241f[_0xbe7a('0x2e')](..._0x71078c['getRanges']());continue;}const _0x16004b=_0x71078c[_0xbe7a('0x4e')]();if(_0x2e241f[_0xbe7a('0x61')]>0x0){const _0x246f10=_0x2e241f[0x0][_0xbe7a('0x4a')](_0x16004b);if(_0x246f10){_0x2e241f[0x0]=_0x246f10;continue;}}_0x2e241f['push'](_0x16004b);}_0x36ca0e[_0xbe7a('0x2e')]([_0x4a3e9d[_0xbe7a('0x14')],_0x2e241f]);}return _0x36ca0e;}),this[_0xbe7a('0x5c')](_0x2bb840,_0xbe7a('0x5f'),(_0x187f29,_0x193f27)=>{this[_0xbe7a('0x5c')](_0x193f27,_0xbe7a('0x3c'),(_0x46bc92,_0x172e54,_0xd95df7,_0x26a11c)=>{_0x193f27[_0xbe7a('0x8')]&&(null==_0xd95df7?(this['_updateController'](_0x26a11c['head']),this[_0xbe7a('0x67')](_0x193f27,!0x1)):(this[_0xbe7a('0x69')](_0xd95df7[_0xbe7a('0x10')]),null==_0x26a11c&&this[_0xbe7a('0x67')](_0x193f27,!0x0)));}),null!==_0x193f27[_0xbe7a('0x13')]?this[_0xbe7a('0x69')](_0x193f27[_0xbe7a('0x10')]):this[_0xbe7a('0x67')](_0x193f27,!0x1);}),this['listenTo'](_0x2bb840,_0xbe7a('0x6f'),(_0x31e625,_0x368af6,_0x4e305d)=>{this['stopListening'](_0x368af6,_0xbe7a('0x3c')),this['_handleControllerBuffer'][_0xbe7a('0x15')](_0x368af6),this[_0xbe7a('0x25')][_0xbe7a('0x54')](_0x368af6)&&this[_0xbe7a('0x58')](_0x368af6),_0x4e305d&&this[_0xbe7a('0x69')](_0x4e305d['head']);}),this[_0xbe7a('0x5c')](_0x2bb840,_0xbe7a('0x46'),(_0x5134e5,_0x4c5f1e)=>{this[_0xbe7a('0x69')](_0x4c5f1e);}),this['listenTo'](_0xf5bb4c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this[_0xbe7a('0x5c')](_0x120887,_0xbe7a('0x45'),(_0x58c7b6,{threadId:_0x293eb7,isFromAdapter:_0x21f47d})=>{if(_0x21f47d||!_0x2bb840[_0xbe7a('0x12')](_0x293eb7))return;const _0x2e81ed=_0x2bb840[_0xbe7a('0x4f')](_0x293eb7);this['_suggestionToController']['get'](_0x2e81ed)[_0xbe7a('0x14')]['focus']();},{'priority':_0xbe7a('0x35')});}['_refreshActiveMarkers'](){const _0x57a36e=this[_0xbe7a('0x0')][_0xbe7a('0x4d')][_0xbe7a('0x2b')]('Annotations'),_0x524312=this[_0xbe7a('0x0')][_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0xbe7a('0x24')),_0x5c71a7=Array[_0xbe7a('0x40')](_0x57a36e[_0xbe7a('0x62')],_0x11ab60=>_0x11ab60[_0xbe7a('0x1a')])[_0xbe7a('0x50')](_0x5ce936=>this[_0xbe7a('0x1')]['has'](_0x5ce936)),_0x17c3cf=[];for(const _0x21873d of _0x5c71a7){const _0x43782d=this['_viewToController'][_0xbe7a('0x2b')](_0x21873d)[_0xbe7a('0x5a')][_0xbe7a('0x6c')]();_0x17c3cf[_0xbe7a('0x2e')](..._0x43782d[_0xbe7a('0x38')]((_0xf8be54,_0x4e54bc)=>[..._0xf8be54,..._0x4e54bc[_0xbe7a('0x27')]()],[]));}_0x524312['activeMarkers']=_0x17c3cf;}[_0xbe7a('0xf')](_0xb448fc){const _0x31c3f2=_0xd36b33(_0xb448fc,_0x53226b),_0x5ebeb6=this[_0xbe7a('0x0')]['commands'][_0xbe7a('0x2b')](_0xbe7a('0x4b')),_0x3a041f=_0x52fc07(_0xb448fc,'Track\x20changes');_0x31c3f2[_0xbe7a('0x53')]['set']({'tooltip':_0x3a041f,'label':_0x3a041f,'icon':_0x192b8a}),_0x31c3f2[_0xbe7a('0x53')][_0xbe7a('0x5d')](_0xbe7a('0x48'))['to'](_0x5ebeb6,'value'),_0x31c3f2['buttonView']['on']('execute',()=>{_0x5ebeb6['execute'](),this[_0xbe7a('0x0')][_0xbe7a('0x5')][_0xbe7a('0x14')][_0xbe7a('0x70')]();});const _0x5e4680=new _0x4977bf(),_0x44bacf=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x3a041f,'commandName':_0xbe7a('0x4b')}},{'type':_0xbe7a('0x1f')},{'type':_0xbe7a('0x3e'),'model':{'withText':!0x0,'label':_0x52fc07(_0xb448fc,_0xbe7a('0x66')),'commandName':_0xbe7a('0x64')}},{'type':_0xbe7a('0x3e'),'model':{'withText':!0x0,'label':_0x52fc07(_0xb448fc,_0xbe7a('0x43')),'commandName':_0xbe7a('0x39')}},{'type':_0xbe7a('0x3e'),'model':{'withText':!0x0,'label':_0x52fc07(_0xb448fc,_0xbe7a('0x20')),'commandName':_0xbe7a('0x2a')}},{'type':'button','model':{'withText':!0x0,'label':_0x52fc07(_0xb448fc,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xbe7a('0x6')}}];for(const _0x1c3eb6 of _0x44bacf){let _0x5c3e19={'type':'separator'};if(_0x1c3eb6[_0xbe7a('0x5a')]){const _0x15b4a4=new _0x1afa30(_0x1c3eb6['model']),_0x330e14=this[_0xbe7a('0x0')][_0xbe7a('0x1b')][_0xbe7a('0x2b')](_0x15b4a4[_0xbe7a('0x52')]);_0x15b4a4[_0xbe7a('0x5d')](_0xbe7a('0x48'),_0xbe7a('0x29'))['to'](_0x330e14,_0xbe7a('0x41'),_0xbe7a('0x29')),_0x5c3e19={'type':_0x1c3eb6['type'],'model':_0x15b4a4};}_0x5e4680[_0xbe7a('0x16')](_0x5c3e19);}_0x168423(_0x31c3f2,_0x5e4680);const _0x57626c=_0x44bacf['filter'](_0x4589e4=>null!=_0x4589e4['model'])[_0xbe7a('0x7')](_0x45047b=>this[_0xbe7a('0x0')][_0xbe7a('0x1b')][_0xbe7a('0x2b')](_0x45047b[_0xbe7a('0x5a')][_0xbe7a('0x52')])),_0x32acac=_0x31c3f2['buttonView'];return _0x32acac[_0xbe7a('0x1e')][_0xbe7a('0x57')](_0xbe7a('0x29')),_0x32acac['arrowView'][_0xbe7a('0x57')](_0xbe7a('0x29')),_0x32acac[_0xbe7a('0x1e')][_0xbe7a('0x5d')](_0xbe7a('0x29'))['to'](_0x5ebeb6,'isEnabled'),_0x32acac[_0xbe7a('0x22')][_0xbe7a('0x5d')]('isEnabled')[_0xbe7a('0x2f')](_0x57626c,'isEnabled',(..._0x33233e)=>_0x33233e[_0xbe7a('0x31')](_0x53449c=>_0x53449c)),_0x31c3f2['on'](_0xbe7a('0x36'),_0x53dcc6=>{this[_0xbe7a('0x0')]['execute'](_0x53dcc6['source'][_0xbe7a('0x52')]),this['editor'][_0xbe7a('0x5')][_0xbe7a('0x14')][_0xbe7a('0x70')]();}),_0x31c3f2;}['_initializeController'](_0x342828){const _0x361735=this['editor'],_0x53af94=_0x361735[_0xbe7a('0x2d')],_0x4339fd=_0x361735[_0xbe7a('0x4d')]['get']('Annotations'),_0x1a404f=_0x361735[_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0xbe7a('0x33')),_0x18a72c=_0x361735['plugins'][_0xbe7a('0x2b')](_0xbe7a('0x2c')),_0x598e00=_0x361735[_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0x3fd0b4)['me'],_0x1a1692=_0x53af94[_0xbe7a('0x2b')](_0xbe7a('0x4b'))[_0xbe7a('0x4c')],{CommentsListView:_0x184a5b,CommentThreadInputView:_0x50a26f}=_0x361735[_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0xbe7a('0xd'));let _0x39d6ce,_0x24a3e9;this[_0xbe7a('0x6e')]['has'](_0x342828['id'])?(_0x24a3e9=this['_annotationViews']['get'](_0x342828['id']),_0x39d6ce=_0x24a3e9[_0xbe7a('0x34')]):(_0x39d6ce=new _0x1a1692(_0x361735[_0xbe7a('0x6a')],_0x342828,_0x598e00,{'disableComments':this[_0xbe7a('0x5e')],'editorConfig':_0x53af94[_0xbe7a('0x2b')](_0xbe7a('0x26')),'maxCommentsWhenCollapsed':_0x53af94['get'](_0xbe7a('0x17')),'maxThreadTotalWeight':_0x53af94['get'](_0xbe7a('0x59')),'maxCommentCharsWhenCollapsed':_0x53af94['get'](_0xbe7a('0x47')),'formatDateTime':_0x5bc3a0(_0x53af94['get'](_0xbe7a('0x6a'))),'CommentView':_0x53af94[_0xbe7a('0x2b')]('comments')['CommentView'],'CommentsListView':_0x184a5b,'CommentThreadInputView':_0x50a26f}),_0x39d6ce[_0xbe7a('0x1d')]['on'](_0xbe7a('0x36'),()=>{_0x361735['editing'][_0xbe7a('0x14')]['focus']();}),_0x39d6ce[_0xbe7a('0x28')]['on'](_0xbe7a('0x36'),()=>{_0x361735[_0xbe7a('0x5')]['view'][_0xbe7a('0x70')]();}),_0x24a3e9=_0x4339fd[_0xbe7a('0x37')](this[_0xbe7a('0x0')][_0xbe7a('0x6a')],_0x39d6ce),_0x24a3e9[_0xbe7a('0x5d')](_0xbe7a('0x3d'))['to'](_0x39d6ce,_0xbe7a('0x3d')),_0x24a3e9[_0xbe7a('0x5d')]('length')['to'](_0x39d6ce),_0x24a3e9[_0xbe7a('0x5d')](_0xbe7a('0x3f'))['to'](_0x39d6ce,_0xbe7a('0x3f'),_0x4f5cdf=>_0xbe7a('0x2')+_0x4f5cdf),this[_0xbe7a('0x6e')][_0xbe7a('0xb')](_0x342828['id'],_0x24a3e9));const _0x31a511=_0x1a404f[_0xbe7a('0x11')](_0x342828[_0xbe7a('0x6b')],_0x39d6ce),_0x2c581e=new _0x4ed2f2(_0x361735,_0x342828,_0x39d6ce,_0x31a511),_0x25ce55=_0x342828['getAllAdjacentSuggestions']()[_0xbe7a('0x50')](_0x2bc846=>_0x2bc846[_0xbe7a('0x8')]);_0x39d6ce['descriptionParts']=_0x361735[_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0xbe7a('0x24'))[_0xbe7a('0x42')][_0xbe7a('0x1c')](_0x25ce55),this['_suggestionToController'][_0xbe7a('0xb')](_0x342828,_0x2c581e),this[_0xbe7a('0x1')][_0xbe7a('0xb')](_0x39d6ce,_0x2c581e);const _0x39c98b=_0x4339fd[_0xbe7a('0x4')]({'view':_0x24a3e9,'target':()=>{const _0x1cbb2c=[],_0x129b26=_0x342828[_0xbe7a('0x6c')]()[_0xbe7a('0x50')](_0x35ba3b=>_0x35ba3b[_0xbe7a('0x8')]);for(const _0x4f93a3 of _0x129b26)_0x1cbb2c[_0xbe7a('0x2e')](..._0x4f93a3[_0xbe7a('0x18')]());return _0x2501ea(_0x361735[_0xbe7a('0x5')],_0x1cbb2c);},'type':()=>_0xbe7a('0x2')+_0x2c581e[_0xbe7a('0x14')]['type']});_0x1a404f[_0xbe7a('0x55')](_0x39d6ce,_0x39c98b),_0x4339fd[_0xbe7a('0x16')](_0x39c98b),_0x18a72c[_0xbe7a('0x65')](_0x39c98b);}['_destroyController'](_0x556c43){const _0x12e64c=this[_0xbe7a('0x0')][_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0xbe7a('0x33')),_0x1534b6=this[_0xbe7a('0x0')][_0xbe7a('0x4d')][_0xbe7a('0x2b')]('Annotations'),_0x108bb6=this[_0xbe7a('0x25')]['get'](_0x556c43),_0x2d937c=_0x108bb6['view'],_0x40caed=_0x1534b6[_0xbe7a('0x21')](_0x2d937c);_0x12e64c[_0xbe7a('0x3')](_0x2d937c),_0x40caed&&_0x1534b6['remove'](_0x40caed),this[_0xbe7a('0x25')][_0xbe7a('0x15')](_0x556c43),this[_0xbe7a('0x1')][_0xbe7a('0x15')](_0x2d937c),_0x108bb6[_0xbe7a('0xe')]();}[_0xbe7a('0x69')](_0x5ab40b){if(!_0x5ab40b['isInContent']||!this['_suggestionToController']['has'](_0x5ab40b))return;const _0x2ce220=this['editor'][_0xbe7a('0x4d')][_0xbe7a('0x2b')](_0xbe7a('0x24')),_0x47678d=this[_0xbe7a('0x25')][_0xbe7a('0x2b')](_0x5ab40b),_0x321aca=_0x5ab40b[_0xbe7a('0x6c')]();_0x47678d[_0xbe7a('0x14')][_0xbe7a('0xa')]=_0x2ce220[_0xbe7a('0x42')]['getDescriptions'](_0x321aca);}[_0xbe7a('0xe')](){for(const _0x2b4a82 of this[_0xbe7a('0x25')][_0xbe7a('0x49')]())this['_destroyController'](_0x2b4a82);for(const _0x4535a8 of this[_0xbe7a('0x6e')][_0xbe7a('0x23')]())_0x4535a8['mainView'][_0xbe7a('0xe')]();super[_0xbe7a('0xe')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c83=['remove','bind','commentThreadController','add','commands','acceptSuggestion','canEditAt','_pendingAction','view','model','destroy','_setPendingAction','canDiscard','listenTo','getRanges','get','execute','isEnabled','_editor','_discardCommand','discardSuggestion','unbind','plugins','locale','_acceptCommand','stopListening','canAccept','_removePendingAction','isDirty','PendingActions'];(function(_0xc14763,_0x1c838d){const _0x3078a2=function(_0x31ad89){while(--_0x31ad89){_0xc14763['push'](_0xc14763['shift']());}};_0x3078a2(++_0x1c838d);}(_0x1c83,0x96));const _0x3078=function(_0xc14763,_0x1c838d){_0xc14763=_0xc14763-0x0;let _0x3078a2=_0x1c83[_0xc14763];return _0x3078a2;};import{ObservableMixin as _0x197ab5}from'ckeditor5/src/utils';import{getTranslation as _0x7d8aa0}from'../utils/common-translations';export default class Pt extends _0x197ab5(){constructor(_0x36686f,_0x1a4847,_0x4fe2b2,_0x4c487c){super(),this['model']=_0x1a4847,this[_0x3078('0x8')]=_0x4fe2b2,this[_0x3078('0x2')]=_0x4c487c,this[_0x3078('0x12')]=_0x36686f,this['_acceptCommand']=_0x36686f[_0x3078('0x4')]['get']('acceptSuggestion'),this['_discardCommand']=_0x36686f[_0x3078('0x4')][_0x3078('0xf')](_0x3078('0x14')),this['view'][_0x3078('0x1')](_0x3078('0x11'))['to'](this[_0x3078('0x18')],this[_0x3078('0x13')],(_0x95fd24,_0x1b7d85)=>_0x95fd24||_0x1b7d85),this['view'][_0x3078('0x1')](_0x3078('0x1a'))['to'](this[_0x3078('0x18')],_0x3078('0x11'),_0x3ba8bf=>_0x3ba8bf&&this[_0x3078('0x12')]['model'][_0x3078('0x6')](_0x1a4847['getRanges']())),this[_0x3078('0x8')][_0x3078('0x1')](_0x3078('0xc'))['to'](this['_discardCommand'],'isEnabled',_0x35358f=>_0x35358f&&this['_editor'][_0x3078('0x9')][_0x3078('0x6')](_0x1a4847[_0x3078('0xe')]())),this['_pendingAction']=null,_0x4fe2b2['isDirty']&&this[_0x3078('0xb')](),this[_0x3078('0xd')](_0x4fe2b2,'acceptSuggestion',()=>this[_0x3078('0x5')]()),this['listenTo'](_0x4fe2b2,_0x3078('0x14'),()=>this[_0x3078('0x14')]()),this[_0x3078('0xd')](_0x4fe2b2,'change:isDirty',()=>{_0x4fe2b2[_0x3078('0x1c')]?this[_0x3078('0xb')]():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand'][_0x3078('0x10')](this['model']['id']);}[_0x3078('0x14')](){this['_discardCommand'][_0x3078('0x10')](this[_0x3078('0x9')]['id']);}[_0x3078('0xa')](){this[_0x3078('0x8')][_0x3078('0x15')](_0x3078('0x11')),this[_0x3078('0x8')][_0x3078('0x15')](_0x3078('0x1a')),this[_0x3078('0x8')]['unbind'](_0x3078('0xc')),this[_0x3078('0x19')](),this[_0x3078('0x2')][_0x3078('0xa')](),this['_pendingAction']&&this[_0x3078('0x1b')]();}['_setPendingAction'](){const _0x33fb73=_0x7d8aa0(this[_0x3078('0x12')][_0x3078('0x17')],'PENDING_ACTION_SUGGESTION');this[_0x3078('0x7')]=this['_editor'][_0x3078('0x16')][_0x3078('0xf')](_0x3078('0x1d'))[_0x3078('0x3')](_0x33fb73);}[_0x3078('0x1b')](){null!==this['_pendingAction']&&this[_0x3078('0x12')][_0x3078('0x16')][_0x3078('0xf')](_0x3078('0x1d'))[_0x3078('0x0')](this[_0x3078('0x7')]),this[_0x3078('0x7')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e63=['authoredAt','value','disabledSubmit','_createCommentThreadInputView','commentsListView','bind','canAccept','assign','addComment','setData','_createCommentViews','_config','fire','focus','delegate','set','_localUser','locale','_model','commentThreadInputView','isReadOnly','updateComment','editor','removeComment','destroy','isEnabled','CommentView','commentInputView','commentThread','disableComments','submit','length','isActive','isDirty','descriptionParts'];(function(_0x25cde3,_0x4e6362){const _0xb7f5cb=function(_0x137af3){while(--_0x137af3){_0x25cde3['push'](_0x25cde3['shift']());}};_0xb7f5cb(++_0x4e6362);}(_0x4e63,0x102));const _0xb7f5=function(_0x25cde3,_0x4e6362){_0x25cde3=_0x25cde3-0x0;let _0xb7f5cb=_0x4e63[_0x25cde3];return _0xb7f5cb;};import{View as _0x3acd2f}from'ckeditor5/src/ui';export default class si extends _0x3acd2f{constructor(_0x18fc9b,_0x4558ed,_0x1bb7de,_0x4793fd){super(_0x18fc9b),this[_0xb7f5('0x1a')]=null,this['commentThreadInputView']=null,this[_0xb7f5('0x2')](_0xb7f5('0x13'),!0x1),this['set']('authoredAt',_0x4558ed['authoredAt']),this[_0xb7f5('0x1b')](_0xb7f5('0x16'))['to'](_0x4558ed),this['set'](_0xb7f5('0x15'),[]),this[_0xb7f5('0x2')](_0xb7f5('0x14'),!0x1),this['set'](_0xb7f5('0xc'),!0x1),this[_0xb7f5('0x2')](_0xb7f5('0x1c'),!0x1),this['set']('canDiscard',!0x1),this[_0xb7f5('0x5')]=_0x4558ed,this['_localUser']=_0x1bb7de,this[_0xb7f5('0x21')]=_0x4793fd,_0x4793fd[_0xb7f5('0x10')]?this['set']('length',0x1):this['_createCommentViews']();}[_0xb7f5('0x0')](){this['element'][_0xb7f5('0x0')]();}[_0xb7f5('0xb')](){this['commentsListView']&&this[_0xb7f5('0x1a')][_0xb7f5('0xb')](),this['commentThreadInputView']&&this['commentThreadInputView'][_0xb7f5('0xb')](),super[_0xb7f5('0xb')]();}[_0xb7f5('0x20')](){const {CommentsListView:_0x5e4877}=this[_0xb7f5('0x21')];this[_0xb7f5('0x1a')]=new _0x5e4877(this[_0xb7f5('0x4')],this['_model'][_0xb7f5('0xf')],Object[_0xb7f5('0x1d')]({'CommentView':this['_config'][_0xb7f5('0xd')]},this[_0xb7f5('0x21')])),this[_0xb7f5('0x1a')][_0xb7f5('0x1')](_0xb7f5('0xa'))['to'](this),this['commentsListView'][_0xb7f5('0x1')](_0xb7f5('0x8'))['to'](this),this[_0xb7f5('0x1a')][_0xb7f5('0x1b')]('isActive')['to'](this),this[_0xb7f5('0x2')]('length',this[_0xb7f5('0x1a')][_0xb7f5('0x12')]+0x1),this['bind']('length')['to'](this[_0xb7f5('0x1a')],'length',_0x40f573=>_0x40f573+0x1),this[_0xb7f5('0x6')]=this[_0xb7f5('0x19')](),this['on'](_0xb7f5('0xa'),()=>this[_0xb7f5('0x0')]()),this[_0xb7f5('0x1b')](_0xb7f5('0x14'))['to'](this[_0xb7f5('0x1a')],'hasDirtyComment',this['commentThreadInputView'][_0xb7f5('0xe')],'value',(_0x192c28,_0x419e03)=>_0x192c28||!!_0x419e03);}[_0xb7f5('0x19')](){const {CommentThreadInputView:_0x545c7f}=this['_config'],_0x58dbee=new _0x545c7f(this['locale'],this[_0xb7f5('0x3')],this[_0xb7f5('0x21')]['editorConfig']),_0x5dd500=_0x58dbee[_0xb7f5('0xe')];return _0x58dbee[_0xb7f5('0x1b')]('showInput')['to'](this,'isActive',this['_model'][_0xb7f5('0xf')],_0xb7f5('0x7'),_0x5dd500,_0xb7f5('0x17'),(_0x35dcc3,_0x452327,_0xceba13)=>!!_0xceba13||_0x35dcc3&&!_0x452327),_0x5dd500['on'](_0xb7f5('0x11'),(_0x116fb0,_0x1eebba)=>{this[_0xb7f5('0x22')](_0xb7f5('0x1e'),_0x1eebba),_0x5dd500[_0xb7f5('0x9')][_0xb7f5('0x1f')]('');}),_0x5dd500['on']('cancel',()=>this[_0xb7f5('0x0')]()),_0x5dd500['bind'](_0xb7f5('0x18'))['to'](this[_0xb7f5('0x5')]['commentThread'],_0xb7f5('0x7')),_0x58dbee;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b90=['ck-annotation__info-name','join','ck-annotation__info-time','authoredAt','source','_config','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','check','ck-suggestion__info','span','commentThreadInputView','ck-annotation__user','attributes','bind','<p>','fire','ck-suggestion--disabled-comments','\x22\x20title=\x22','EXTERNAL_IMPORT_WORD_SUGGESTION','name','canDiscard','delegate','discardButton','locale','EXTERNAL_IMPORT_WORD_AVATAR','Discard\x20suggestion','ck-comment__external','editorDestroyed','getUserViewNotificationText','ck-suggestion__info-name','render','value','ck-suggestion__main','innerText','descriptionParts','disableComments','creator','extendTemplate','type','isEnabled','createElement','set','time','split','push','\x22></span>','commentsListView','acceptSuggestion','importWord','div','userView','discardSuggestion','color','description','</span>','ck-suggestion__user','bindTemplate','querySelector','ck-comment__info-time','EXTERNAL_AVATAR','isExternal','Accept\x20suggestion','children','editorReady','ck-annotation__actions','execute','_descriptionElement','ck-annotation__content-wrapper','ck-annotation','getTemplate','ck-suggestion-','acceptButton','author','map','commentThread','change:description','EXTERNAL_SUGGESTION','content','innerHTML','element','_model','_createButton','title'];(function(_0x30391d,_0x4b9049){const _0x498810=function(_0x71cbc3){while(--_0x71cbc3){_0x30391d['push'](_0x30391d['shift']());}};_0x498810(++_0x4b9049);}(_0x4b90,0x12e));const _0x4988=function(_0x30391d,_0x4b9049){_0x30391d=_0x30391d-0x0;let _0x498810=_0x4b90[_0x30391d];return _0x498810;};import{getTranslation as _0x5974c2}from'../../utils/common-translations';import{default as _0x45ebd8}from'./basesuggestionthreadview';import{ButtonView as _0x422af1}from'ckeditor5/src/ui';import{icons as _0x1a9ee2}from'ckeditor5/src/core';import{trimHtml as _0x532933,UserView as _0x69442e}from'ckeditor5-collaboration/src/collaboration-core';export default class Qt extends _0x45ebd8{constructor(_0xb5cb5e,_0x5276ff,_0xbb878d,_0x107ea2){super(_0xb5cb5e,_0x5276ff,_0xbb878d,_0x107ea2),this[_0x4988('0x47')](_0x4988('0x44'),''),this[_0x4988('0x2b')](_0x4988('0x44'))['to'](this,'descriptionParts',_0x277551=>_0x277551&&_0x277551[0x0]?_0x277551[0x0]['type']:''),this[_0x4988('0x2b')](_0x4988('0x0'))['to'](this,_0x4988('0x40'),this,'isActive',(_0x51dee6,_0x1219e8)=>{let _0xe40c28='';for(const _0x1e6543 of _0x51dee6)_0xe40c28+=_0x4988('0x2c')+ci(_0x1e6543[_0x4988('0x18')],_0x1e6543[_0x4988('0x52')])+'</p>';return _0x1219e8?_0xe40c28:_0x532933(_0xe40c28,{'limit':0x8c});}),this[_0x4988('0xd')]=null,this[_0x4988('0x12')]=this[_0x4988('0x1c')](_0x5974c2(_0xb5cb5e,_0x4988('0x8')),_0x1a9ee2[_0x4988('0x25')],'ck-suggestion--accept',_0x4988('0x4d'),'sw'),this['acceptButton'][_0x4988('0x2b')]('isEnabled')['to'](this,'canAccept'),this[_0x4988('0x34')]=this[_0x4988('0x1c')](_0x5974c2(_0xb5cb5e,_0x4988('0x37')),_0x1a9ee2['cancel'],'ck-suggestion--discard',_0x4988('0x51'),'sw'),this['discardButton']['bind'](_0x4988('0x45'))['to'](this,_0x4988('0x32')),this['userView']=new _0x69442e(_0xb5cb5e,this[_0x4988('0x1b')]['author'],this[_0x4988('0x3a')]()),this[_0x4988('0x50')][_0x4988('0x43')]({'attributes':{'class':[_0x4988('0x2'),_0x4988('0x29')]}}),this['setTemplate'](this[_0x4988('0x10')]());}[_0x4988('0x10')](){const _0x367621=this[_0x4988('0x3')],_0x512b0c=[{'tag':_0x4988('0x4f'),'attributes':{'class':[_0x4988('0x26'),'ck-annotation__info']},'children':[{'tag':_0x4988('0x27'),'children':[{'text':this[_0x4988('0x50')][_0x4988('0x31')]}],'attributes':{'class':[_0x4988('0x3b'),_0x4988('0x1e')]}},{'tag':_0x4988('0x48'),'attributes':{'datetime':_0x367621['to'](_0x4988('0x21')),'class':[_0x4988('0x5'),_0x4988('0x20')]},'children':[{'text':_0x367621['to'](_0x4988('0x21'),_0x38ff97=>this[_0x4988('0x23')]['formatDateTime'](_0x38ff97))}]}]},{'tag':_0x4988('0x4f'),'attributes':{'class':['ck-suggestion__actions',_0x4988('0xb')]},'children':[this['acceptButton'],this['discardButton']]},{'tag':_0x4988('0x4f'),'attributes':{'class':[_0x4988('0xe')]}}];this['_model'][_0x4988('0x7')]&&_0x512b0c[_0x4988('0x4a')]({'tag':_0x4988('0x4f'),'attributes':{'class':[_0x4988('0x38')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x40bdf8={'tag':_0x4988('0x4f'),'attributes':{'class':['ck-suggestion-wrapper',_0x367621['if']('isActive','ck-suggestion-wrapper--active'),_0x367621['to']('type',_0xdf3f31=>_0x4988('0x11')+_0xdf3f31),this[_0x4988('0x23')][_0x4988('0x41')]&&_0x4988('0x2e')],'data-suggestion-id':this[_0x4988('0x1b')]['id'],'data-thread-id':this[_0x4988('0x1b')][_0x4988('0x15')]['id'],'data-author-id':this[_0x4988('0x1b')][_0x4988('0x13')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4988('0x4f'),'attributes':{'class':['ck-suggestion',_0x4988('0xf')]},'children':[this[_0x4988('0x50')],{'tag':_0x4988('0x4f'),'attributes':{'class':[_0x4988('0x3e'),'ck-annotation__main']},'children':_0x512b0c}]}]};return this[_0x4988('0x4c')]&&this['commentThreadInputView']&&(_0x40bdf8[_0x4988('0x9')]['push'](this[_0x4988('0x4c')],this['commentThreadInputView']),this['commentsListView'][_0x4988('0x33')](_0x4988('0xa'))['to'](this),this['commentsListView'][_0x4988('0x33')](_0x4988('0x39'))['to'](this),this[_0x4988('0x28')][_0x4988('0x33')](_0x4988('0xa'))['to'](this),this[_0x4988('0x28')][_0x4988('0x33')](_0x4988('0x39'))['to'](this)),_0x40bdf8;}[_0x4988('0x3c')](){super[_0x4988('0x3c')](),this[_0x4988('0xd')]=this[_0x4988('0x1a')][_0x4988('0x4')]('.ck-annotation__content-wrapper'),this['_descriptionElement'][_0x4988('0x19')]=this[_0x4988('0x0')],this['on'](_0x4988('0x16'),(_0x161178,_0x17c98b,_0x3544e1)=>{this[_0x4988('0xd')][_0x4988('0x19')]=_0x3544e1;});}[_0x4988('0x1c')](_0x41ea37,_0xe74f71,_0x16734a,_0xf320b,_0x8b0b8e){const _0x17106c=new _0x422af1(this[_0x4988('0x35')]);return _0x17106c[_0x4988('0x47')]({'label':_0x41ea37,'icon':_0xe74f71,'tooltip':!0x0,'tooltipPosition':_0x8b0b8e}),_0x17106c[_0x4988('0x43')]({'attributes':{'class':_0x16734a}}),_0x17106c['on'](_0x4988('0xc'),()=>{this[_0x4988('0x2d')](_0xf320b,this[_0x4988('0x1b')]['id']);}),_0x17106c;}['getExternalSuggestionNote'](){return _0x4988('0x4e')===this[_0x4988('0x1b')][_0x4988('0x2a')]['@external'][_0x4988('0x22')]?_0x5974c2(this[_0x4988('0x35')],_0x4988('0x30')):_0x5974c2(this[_0x4988('0x35')],_0x4988('0x17'));}[_0x4988('0x3a')](){return this[_0x4988('0x1b')][_0x4988('0x7')]?_0x4988('0x4e')===this[_0x4988('0x1b')][_0x4988('0x2a')]['@external'][_0x4988('0x22')]?_0x5974c2(this[_0x4988('0x35')],_0x4988('0x36'),this['_model'][_0x4988('0x42')]['name']):_0x5974c2(this[_0x4988('0x35')],_0x4988('0x6'),this['_model'][_0x4988('0x42')][_0x4988('0x31')]):null;}}function ci(_0x335f8e,_0x4404c0){let _0x17bcb8='';return _0x17bcb8+=_0x335f8e[_0x4988('0x49')]('*')[_0x4988('0x14')]((_0x1c1f6d,_0x25c99d)=>_0x25c99d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+ri(_0x1c1f6d)+_0x4988('0x1'):ri(_0x1c1f6d))[_0x4988('0x1f')](''),_0x4404c0&&(_0x17bcb8+=_0x4988('0x24')+_0x4404c0[_0x4988('0x3d')]+_0x4988('0x2f')+_0x4404c0[_0x4988('0x1d')]+_0x4988('0x4b')),_0x17bcb8;}function ri(_0x4fe883){const _0x19453e=document[_0x4988('0x46')](_0x4988('0x27'));return _0x19453e[_0x4988('0x3f')]=_0x4fe883,_0x19453e['innerHTML'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x519172,_0x21af6e,_0x4265ea){const t=_0x519172['t'];switch(_0x21af6e){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',_0x4265ea);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4265ea);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4265ea);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4265ea);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4265ea);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',_0x4265ea);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4265ea);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',_0x4265ea);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4265ea);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4265ea);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4265ea);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4265ea);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4265ea);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4265ea);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4265ea);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4265ea);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4265ea);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4265ea);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4265ea);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4265ea);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4265ea);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4265ea);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4265ea);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'},_0x4265ea);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4265ea);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4265ea);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4265ea);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4265ea);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4265ea);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'},_0x4265ea);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4265ea);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4265ea);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4265ea);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4265ea);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'},_0x4265ea);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4265ea);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'},_0x4265ea);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'},_0x4265ea);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4265ea);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'},_0x4265ea);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4265ea);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'},_0x4265ea);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4265ea);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4265ea);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'},_0x4265ea);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'},_0x4265ea);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 _0x21af6e;}}
|
|
23
|
+
export function getTranslation(_0x1a93cd,_0xcaf4c9,_0x4aaeeb){const t=_0x1a93cd['t'];switch(_0xcaf4c9){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',_0x4aaeeb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4aaeeb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4aaeeb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4aaeeb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4aaeeb);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',_0x4aaeeb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4aaeeb);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',_0x4aaeeb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4aaeeb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4aaeeb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4aaeeb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4aaeeb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4aaeeb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4aaeeb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4aaeeb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4aaeeb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4aaeeb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4aaeeb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4aaeeb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4aaeeb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4aaeeb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4aaeeb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4aaeeb);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'},_0x4aaeeb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4aaeeb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4aaeeb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4aaeeb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4aaeeb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4aaeeb);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'},_0x4aaeeb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4aaeeb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4aaeeb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4aaeeb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4aaeeb);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'},_0x4aaeeb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4aaeeb);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'},_0x4aaeeb);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'},_0x4aaeeb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4aaeeb);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'},_0x4aaeeb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4aaeeb);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'},_0x4aaeeb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4aaeeb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4aaeeb);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'},_0x4aaeeb);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'},_0x4aaeeb);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 _0xcaf4c9;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ada=['isMultiRange','start','type','length','value','map','push','createPositionAt','isArray','join','deletion','next','schema','createPositionBefore','add','end','change','getRanges','color','splice','createPositionAfter','execute','isCollapsed','isObject','replace','from','isIntersecting'];(function(_0x3c014e,_0x4adaa3){const _0x37fd84=function(_0x5e6da8){while(--_0x5e6da8){_0x3c014e['push'](_0x3c014e['shift']());}};_0x37fd84(++_0x4adaa3);}(_0x4ada,0x160));const _0x37fd=function(_0x3c014e,_0x4adaa3){_0x3c014e=_0x3c014e-0x0;let _0x37fd84=_0x4ada[_0x3c014e];return _0x37fd84;};export function normalizeDescription(_0x31d19a){return Array[_0x37fd('0x7')](_0x31d19a)||(_0x31d19a=[_0x31d19a]),_0x31d19a[_0x37fd('0x4')](_0x29439f=>{const _0x167bef=_0x29439f['content'][_0x37fd('0x17')](/\*/g,''),_0x1b3177=_0x29439f[_0x37fd('0x11')]?'\x20[color\x20'+_0x29439f['color'][_0x37fd('0x3')]+']':'';return'['+_0x29439f[_0x37fd('0x1')]+']\x20'+_0x167bef+_0x1b3177;})[_0x37fd('0x8')](';\x20');}export function sortSuggestions(_0x3d3220){return _0x3d3220['sort']((_0x44ae78,_0x4ba7a2)=>'deletion'==_0x44ae78[_0x37fd('0x1')]&&_0x37fd('0x9')!=_0x4ba7a2[_0x37fd('0x1')]?-0x1:_0x37fd('0x9')!=_0x44ae78[_0x37fd('0x1')]&&_0x37fd('0x9')==_0x4ba7a2['type']?0x1:0x0);}export function getSelectedSuggestions(_0x24164f,_0x114dcc){const _0x3c9840=Array[_0x37fd('0x18')](_0x24164f['getRanges']()),_0x3c0d53=new Set();for(const _0x3f4847 of _0x114dcc)if(_0x3f4847['isInContent'])for(const _0x2e2b17 of _0x3c9840)for(const _0x1d33ff of _0x3f4847[_0x37fd('0x10')]())(_0x2e2b17[_0x37fd('0x19')](_0x1d33ff)||_0x24164f[_0x37fd('0x15')]&&!_0x3f4847[_0x37fd('0x1a')]&&_0x3f4847[_0x37fd('0xa')]&&_0x1d33ff[_0x37fd('0xe')]['isTouching'](_0x2e2b17[_0x37fd('0x0')]))&&_0x3c0d53[_0x37fd('0xd')](_0x3f4847);return _0x3c0d53;}export function getRangesOfBlockGroups(_0x74caa5,_0x20f1fa){let _0x114ee9,_0x39804f=0x0;const _0x462048=[],_0x1b75ae=_0x20f1fa[_0x37fd('0xb')];for(;_0x39804f<_0x74caa5[_0x37fd('0x2')];){const _0x38a801=_0x74caa5[_0x39804f],_0x222cde=_0x74caa5[_0x39804f+0x1];_0x114ee9||(_0x114ee9=_0x20f1fa[_0x37fd('0xc')](_0x38a801)),co(_0x20f1fa,_0x38a801,_0x222cde)||(_0x462048[_0x37fd('0x5')](_0x20f1fa['createRange'](_0x114ee9,_0x1b75ae[_0x37fd('0x16')](_0x38a801)?_0x20f1fa['createPositionAfter'](_0x38a801):_0x20f1fa[_0x37fd('0x6')](_0x38a801,_0x37fd('0xe')))),_0x114ee9=null),_0x39804f++;}return _0x462048;}function co(_0x4cea9f,_0x414166,_0x3a7f15){if(!_0x3a7f15)return!0x1;const _0x11a376=_0x4cea9f[_0x37fd('0x13')](_0x414166),_0x10c59f=_0x4cea9f[_0x37fd('0xc')](_0x3a7f15);return _0x11a376['isTouching'](_0x10c59f);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x544f4a,_0x232df4,_0x3d427d){for(;_0x3d427d[_0x37fd('0x2')];){const _0x34a75a=_0x3d427d[_0x37fd('0x12')](0x0,0x64);_0x544f4a[_0x37fd('0xf')](()=>{for(const _0x1c221b of _0x34a75a)_0x1c221b['isInContent']&&_0x232df4[_0x37fd('0x14')](_0x1c221b['id']);});}}
|