@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231130.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/CHANGELOG.md +15 -15
- package/README.md +1 -1
- 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 _0x4072=['_disableComments','plugins','TrackChangesEditing','_suggestionToController','size','commandName','unbind','Track\x20changes','some','_handleSuggestionControllerDelayed','switchbutton','Accept\x20all\x20suggestions','getAllAdjacentSuggestions','execute','_initializeController','createAnnotationView','getJoined','Discard\x20all\x20selected\x20suggestions','define','isDirty','innerView','_destroyController','trackChanges','head','config','stopListening','change:previous','push','lowest','getDescriptions','editing','trackChanges.disableComments','Discard\x20all\x20suggestions','delete','_descriptionFactory','buttonView','componentFactory','reduce','separator','actionView','createAnnotation','add','pluginName','_bindAnnotationToEditors','isEnabled','comments.maxCommentsWhenCollapsed','_handleControllerBuffer','CommentsRepository','suggestion-','addSourceCollector','type','value','TrackChangesUI','destroy','length','mainView','Accept\x20all\x20selected\x20suggestions','editor','discardButton','init','bind','get','acceptAllSuggestions','SuggestionThreadView','discardSelectedSuggestions','_refreshActiveMarkers','view','refreshSelectedViews','isOn','_createUIButton','button','Annotations','getByInnerView','clear','toMany','getFirstRange','getMarkers','filter','source','values','suggestionChanged','hasSuggestion','has','createCommentThreadController','acceptSelectedSuggestions','listenTo','_updateController','activeMarkers','descriptionParts','isMultiRange','locale','arrowView','model','set','CommentView','comments','commentThread','isInContent','from','previous','comments.maxCommentCharsWhenCollapsed','getRanges','requires','commands','EditorAnnotations','_viewToController','acceptButton','comments.editorConfig','_annotationViews','focus','CommentsUI'];(function(_0x43bd06,_0x4072d6){const _0xbf916c=function(_0x1a289c){while(--_0x1a289c){_0x43bd06['push'](_0x43bd06['shift']());}};_0xbf916c(++_0x4072d6);}(_0x4072,0x180));const _0xbf91=function(_0x43bd06,_0x4072d6){_0x43bd06=_0x43bd06-0x0;let _0xbf916c=_0x4072[_0x43bd06];return _0xbf916c;};import{Plugin as _0x1870fb}from'ckeditor5/src/core';import{Collection as _0x2ffbf7}from'ckeditor5/src/utils';import{Model as _0x45152c,SplitButtonView as _0x327629,createDropdown as _0xb5fecf,addListToDropdown as _0x319c63}from'ckeditor5/src/ui';import{Users as _0x2509e0,getDateTimeFormatter as _0x25d439,getAllMarkersDomElementsSorted as _0x6a4851}from'ckeditor5-collaboration/src/collaboration-core';import _0x565b17 from'./trackchangesediting';import _0x1c758c from'./ui/suggestioncontroller';import _0x39307a from'./ui/view/suggestionthreadview';import{getTranslation as _0x47ca74}from'./utils/common-translations';import _0x4f7eba from'../theme/icons/track-changes.svg';export default class d extends _0x1870fb{static get[_0xbf91('0x33')](){return[_0x565b17,_0x2509e0,_0xbf91('0x6b'),_0xbf91('0x14'),_0xbf91('0x35')];}static get[_0xbf91('0x66')](){return _0xbf91('0x1');}constructor(_0x17767d){super(_0x17767d),this[_0xbf91('0x3f')]=new Map(),this[_0xbf91('0x36')]=new Map(),this[_0xbf91('0x39')]=new Map(),this[_0xbf91('0x6a')]=new Map();const _0x131942=this[_0xbf91('0x6')][_0xbf91('0x54')];_0x131942[_0xbf91('0x4e')]('trackChanges.SuggestionThreadView',_0x39307a),_0x131942[_0xbf91('0x4e')](_0xbf91('0x5b'),!0x1),this[_0xbf91('0x3c')]=_0x131942[_0xbf91('0xa')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xba97c9,_0x2b4509){0x0===this['_handleControllerBuffer'][_0xbf91('0x40')]&&setTimeout(()=>{for(const [_0x2d9ded,_0x47cd1b]of this[_0xbf91('0x6a')]){const _0x1b81fd=this['_suggestionToController'][_0xbf91('0x1f')](_0x2d9ded);_0x1b81fd||_0x47cd1b?_0x1b81fd&&_0x47cd1b&&this[_0xbf91('0x51')](_0x2d9ded):this[_0xbf91('0x4a')](_0x2d9ded);}this[_0xbf91('0x6')][_0xbf91('0x3d')]['get']('EditorAnnotations')[_0xbf91('0x10')](),this[_0xbf91('0xe')](),this[_0xbf91('0x6a')][_0xbf91('0x16')]();},0xa),this[_0xbf91('0x6a')][_0xbf91('0x2a')](_0xba97c9,_0x2b4509);}[_0xbf91('0x8')](){const _0x40dc46=this['editor'],_0x547f9e=_0x40dc46[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e')),_0x48be0f=_0x40dc46['plugins']['get'](_0xbf91('0x14')),_0x4abfb4=_0x40dc46[_0xbf91('0x3d')][_0xbf91('0xa')]('EditorAnnotations'),_0x4e06ad=_0x40dc46['plugins']['get'](_0xbf91('0x6b'));_0x40dc46['ui'][_0xbf91('0x60')]['add'](_0xbf91('0x52'),_0x482412=>this['_createUIButton'](_0x482412)),_0x4abfb4[_0xbf91('0x6d')](()=>{const _0x433c09=[];for(const [_0x1bfc24,_0x206dda]of Array[_0xbf91('0x2f')](this[_0xbf91('0x3f')])){const _0x23ff33=_0x1bfc24[_0xbf91('0x48')](),_0x492866=[];for(const _0x3cac1f of _0x23ff33){if(!_0x3cac1f[_0xbf91('0x2e')])continue;if(_0x3cac1f[_0xbf91('0x26')]){_0x492866['push'](..._0x3cac1f[_0xbf91('0x32')]());continue;}const _0x3522f8=_0x3cac1f[_0xbf91('0x18')]();if(_0x492866[_0xbf91('0x3')]>0x0){const _0x36d090=_0x492866[0x0][_0xbf91('0x4c')](_0x3522f8);if(_0x36d090){_0x492866[0x0]=_0x36d090;continue;}}_0x492866[_0xbf91('0x57')](_0x3522f8);}_0x433c09[_0xbf91('0x57')]([_0x206dda[_0xbf91('0xf')],_0x492866]);}return _0x433c09;}),this[_0xbf91('0x22')](_0x547f9e,'suggestionLoaded',(_0x493769,_0x350b68)=>{this[_0xbf91('0x22')](_0x350b68,_0xbf91('0x56'),(_0x2cc045,_0x4dbe35,_0x2b4429,_0x38587a)=>{_0x350b68[_0xbf91('0x2e')]&&(null==_0x2b4429?(this[_0xbf91('0x23')](_0x38587a[_0xbf91('0x53')]),this[_0xbf91('0x45')](_0x350b68,!0x1)):(this[_0xbf91('0x23')](_0x2b4429[_0xbf91('0x53')]),null==_0x38587a&&this['_handleSuggestionControllerDelayed'](_0x350b68,!0x0)));}),null!==_0x350b68[_0xbf91('0x30')]?this[_0xbf91('0x23')](_0x350b68['head']):this[_0xbf91('0x45')](_0x350b68,!0x1);}),this['listenTo'](_0x547f9e,'suggestionUnloaded',(_0x343a1c,_0x3fe60a,_0x1c87ad)=>{this[_0xbf91('0x55')](_0x3fe60a,_0xbf91('0x56')),this[_0xbf91('0x6a')][_0xbf91('0x5d')](_0x3fe60a),this[_0xbf91('0x3f')][_0xbf91('0x1f')](_0x3fe60a)&&this[_0xbf91('0x51')](_0x3fe60a),_0x1c87ad&&this['_updateController'](_0x1c87ad[_0xbf91('0x53')]);}),this['listenTo'](_0x547f9e,_0xbf91('0x1d'),(_0x494de1,_0x327d2e)=>{this[_0xbf91('0x23')](_0x327d2e);}),this['listenTo'](_0x48be0f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this[_0xbf91('0x22')](_0x4e06ad,'addComment',(_0x1ff507,{threadId:_0x5805cc,isFromAdapter:_0x22aebd})=>{if(_0x22aebd||!_0x547f9e[_0xbf91('0x1e')](_0x5805cc))return;const _0x33e1d3=_0x547f9e['getSuggestion'](_0x5805cc);this[_0xbf91('0x3f')]['get'](_0x33e1d3)[_0xbf91('0xf')][_0xbf91('0x3a')]();},{'priority':_0xbf91('0x58')});}['_refreshActiveMarkers'](){const _0xa8b915=this[_0xbf91('0x6')]['plugins'][_0xbf91('0xa')](_0xbf91('0x14')),_0x1ac754=this[_0xbf91('0x6')][_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e')),_0x3b0bc2=Array[_0xbf91('0x2f')](_0xa8b915['activeAnnotations'],_0x637727=>_0x637727[_0xbf91('0x50')])[_0xbf91('0x1a')](_0x1c5f30=>this['_viewToController'][_0xbf91('0x1f')](_0x1c5f30)),_0x2d2484=[];for(const _0x16281d of _0x3b0bc2){const _0x35576a=this['_viewToController'][_0xbf91('0xa')](_0x16281d)['model'][_0xbf91('0x48')]();_0x2d2484['push'](..._0x35576a[_0xbf91('0x61')]((_0x552242,_0x2ada02)=>[..._0x552242,..._0x2ada02['getMarkerNames']()],[]));}_0x1ac754[_0xbf91('0x24')]=_0x2d2484;}[_0xbf91('0x12')](_0x1c9bdb){const _0x332930=_0xb5fecf(_0x1c9bdb,_0x327629),_0xf15727=this[_0xbf91('0x6')][_0xbf91('0x34')][_0xbf91('0xa')]('trackChanges'),_0x20f1a8=_0x47ca74(_0x1c9bdb,_0xbf91('0x43'));_0x332930[_0xbf91('0x5f')][_0xbf91('0x2a')]({'tooltip':_0x20f1a8,'label':_0x20f1a8,'icon':_0x4f7eba}),_0x332930['buttonView'][_0xbf91('0x9')](_0xbf91('0x11'))['to'](_0xf15727,_0xbf91('0x0')),_0x332930[_0xbf91('0x5f')]['on'](_0xbf91('0x49'),()=>{_0xf15727[_0xbf91('0x49')](),this[_0xbf91('0x6')][_0xbf91('0x5a')][_0xbf91('0xf')]['focus']();});const _0x3b25cb=new _0x2ffbf7(),_0x3cadaf=[{'type':_0xbf91('0x46'),'model':{'withText':!0x0,'label':_0x20f1a8,'commandName':_0xbf91('0x52')}},{'type':_0xbf91('0x62')},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x47')),'commandName':_0xbf91('0xb')}},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x5')),'commandName':_0xbf91('0x21')}},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x5c')),'commandName':'discardAllSuggestions'}},{'type':_0xbf91('0x13'),'model':{'withText':!0x0,'label':_0x47ca74(_0x1c9bdb,_0xbf91('0x4d')),'commandName':_0xbf91('0xd')}}];for(const _0x2ec66d of _0x3cadaf){let _0x51efd0={'type':_0xbf91('0x62')};if(_0x2ec66d[_0xbf91('0x29')]){const _0x2e71c0=new _0x45152c(_0x2ec66d['model']),_0x2c3bb8=this[_0xbf91('0x6')][_0xbf91('0x34')]['get'](_0x2e71c0['commandName']);_0x2e71c0['bind'](_0xbf91('0x11'),_0xbf91('0x68'))['to'](_0x2c3bb8,_0xbf91('0x0'),_0xbf91('0x68')),_0x51efd0={'type':_0x2ec66d[_0xbf91('0x6e')],'model':_0x2e71c0};}_0x3b25cb[_0xbf91('0x65')](_0x51efd0);}_0x319c63(_0x332930,_0x3b25cb);const _0x15da49=_0x3cadaf['filter'](_0x4759ed=>null!=_0x4759ed[_0xbf91('0x29')])['map'](_0x344317=>this['editor'][_0xbf91('0x34')][_0xbf91('0xa')](_0x344317[_0xbf91('0x29')][_0xbf91('0x41')])),_0x4c78f3=_0x332930[_0xbf91('0x5f')];return _0x4c78f3[_0xbf91('0x63')][_0xbf91('0x42')]('isEnabled'),_0x4c78f3['arrowView'][_0xbf91('0x42')](_0xbf91('0x68')),_0x4c78f3[_0xbf91('0x63')][_0xbf91('0x9')](_0xbf91('0x68'))['to'](_0xf15727,_0xbf91('0x68')),_0x4c78f3[_0xbf91('0x28')][_0xbf91('0x9')](_0xbf91('0x68'))[_0xbf91('0x17')](_0x15da49,_0xbf91('0x68'),(..._0x18c311)=>_0x18c311[_0xbf91('0x44')](_0x44b954=>_0x44b954)),_0x332930['on'](_0xbf91('0x49'),_0x5c3169=>{this[_0xbf91('0x6')]['execute'](_0x5c3169[_0xbf91('0x1b')]['commandName']),this[_0xbf91('0x6')]['editing']['view'][_0xbf91('0x3a')]();}),_0x332930;}['_initializeController'](_0x402ef7){const _0x2c4a4f=this[_0xbf91('0x6')],_0x346360=_0x2c4a4f['config'],_0x25ad5c=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x14')),_0x1aee1d=_0x2c4a4f['plugins']['get']('CommentsRepository'),_0x3e1187=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')]('EditorAnnotations'),_0x352af0=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0x2509e0)['me'],_0x494ace=_0x346360['get'](_0xbf91('0x52'))[_0xbf91('0xc')],{CommentsListView:_0x23726f,CommentThreadInputView:_0x2d5c5e}=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3b'));let _0x362a82,_0xed0bfc;this['_annotationViews'][_0xbf91('0x1f')](_0x402ef7['id'])?(_0xed0bfc=this[_0xbf91('0x39')][_0xbf91('0xa')](_0x402ef7['id']),_0x362a82=_0xed0bfc[_0xbf91('0x4')]):(_0x362a82=new _0x494ace(_0x2c4a4f[_0xbf91('0x27')],_0x402ef7,_0x352af0,{'disableComments':this[_0xbf91('0x3c')],'editorConfig':_0x346360[_0xbf91('0xa')](_0xbf91('0x38')),'maxCommentsWhenCollapsed':_0x346360[_0xbf91('0xa')](_0xbf91('0x69')),'maxThreadTotalWeight':_0x346360[_0xbf91('0xa')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x346360[_0xbf91('0xa')](_0xbf91('0x31')),'formatDateTime':_0x25d439(_0x346360['get'](_0xbf91('0x27'))),'CommentView':_0x346360[_0xbf91('0xa')](_0xbf91('0x2c'))[_0xbf91('0x2b')],'CommentsListView':_0x23726f,'CommentThreadInputView':_0x2d5c5e}),_0x362a82[_0xbf91('0x37')]['on'](_0xbf91('0x49'),()=>{_0x2c4a4f[_0xbf91('0x5a')][_0xbf91('0xf')]['focus']();}),_0x362a82[_0xbf91('0x7')]['on'](_0xbf91('0x49'),()=>{_0x2c4a4f[_0xbf91('0x5a')][_0xbf91('0xf')][_0xbf91('0x3a')]();}),_0xed0bfc=_0x25ad5c[_0xbf91('0x4b')](this[_0xbf91('0x6')][_0xbf91('0x27')],_0x362a82),_0xed0bfc[_0xbf91('0x9')](_0xbf91('0x4f'))['to'](_0x362a82,'isDirty'),_0xed0bfc[_0xbf91('0x9')]('length')['to'](_0x362a82),_0xed0bfc[_0xbf91('0x9')](_0xbf91('0x6e'))['to'](_0x362a82,_0xbf91('0x6e'),_0x50433c=>_0xbf91('0x6c')+_0x50433c),this[_0xbf91('0x39')][_0xbf91('0x2a')](_0x402ef7['id'],_0xed0bfc));const _0x5ef444=_0x1aee1d[_0xbf91('0x20')](_0x402ef7[_0xbf91('0x2d')],_0x362a82),_0x5068da=new _0x1c758c(_0x2c4a4f,_0x402ef7,_0x362a82,_0x5ef444),_0x27ebeb=_0x402ef7['getAllAdjacentSuggestions']()[_0xbf91('0x1a')](_0x406f0d=>_0x406f0d[_0xbf91('0x2e')]);_0x362a82['descriptionParts']=_0x2c4a4f[_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e'))['_descriptionFactory'][_0xbf91('0x59')](_0x27ebeb),this[_0xbf91('0x3f')]['set'](_0x402ef7,_0x5068da),this['_viewToController']['set'](_0x362a82,_0x5068da);const _0x1350de=_0x25ad5c[_0xbf91('0x64')]({'view':_0xed0bfc,'target':()=>{const _0x5e3054=[],_0x221456=_0x402ef7[_0xbf91('0x48')]()[_0xbf91('0x1a')](_0x587a3e=>_0x587a3e['isInContent']);for(const _0x214bad of _0x221456)_0x5e3054[_0xbf91('0x57')](..._0x214bad[_0xbf91('0x19')]());return _0x6a4851(_0x2c4a4f[_0xbf91('0x5a')],_0x5e3054);},'type':()=>_0xbf91('0x6c')+_0x5068da[_0xbf91('0xf')][_0xbf91('0x6e')]});_0x1aee1d[_0xbf91('0x67')](_0x362a82,_0x1350de),_0x25ad5c['add'](_0x1350de),_0x3e1187['registerAnnotation'](_0x1350de);}['_destroyController'](_0x155674){const _0x24f051=this[_0xbf91('0x6')][_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x6b')),_0x2eb0bf=this[_0xbf91('0x6')]['plugins'][_0xbf91('0xa')]('Annotations'),_0x519d1b=this[_0xbf91('0x3f')]['get'](_0x155674),_0x276a23=_0x519d1b[_0xbf91('0xf')],_0x289191=_0x2eb0bf[_0xbf91('0x15')](_0x276a23);_0x24f051['_unbindEditors'](_0x276a23),_0x289191&&_0x2eb0bf['remove'](_0x289191),this[_0xbf91('0x3f')][_0xbf91('0x5d')](_0x155674),this['_viewToController'][_0xbf91('0x5d')](_0x276a23),_0x519d1b[_0xbf91('0x2')]();}[_0xbf91('0x23')](_0x3aac47){if(!_0x3aac47[_0xbf91('0x2e')]||!this['_suggestionToController'][_0xbf91('0x1f')](_0x3aac47))return;const _0x224db2=this[_0xbf91('0x6')][_0xbf91('0x3d')][_0xbf91('0xa')](_0xbf91('0x3e')),_0x1bcc93=this['_suggestionToController'][_0xbf91('0xa')](_0x3aac47),_0x2f062c=_0x3aac47[_0xbf91('0x48')]();_0x1bcc93[_0xbf91('0xf')][_0xbf91('0x25')]=_0x224db2[_0xbf91('0x5e')][_0xbf91('0x59')](_0x2f062c);}[_0xbf91('0x2')](){for(const _0x1ac099 of this['_suggestionToController']['keys']())this[_0xbf91('0x51')](_0x1ac099);for(const _0x36d644 of this[_0xbf91('0x39')][_0xbf91('0x1c')]())_0x36d644[_0xbf91('0x4')]['destroy']();super['destroy']();}}
|
|
23
|
+
const _0x5a48=['delete','filter','addSourceCollector','_handleControllerBuffer','set','suggestionChanged','acceptSelectedSuggestions','push','focus','isInContent','createAnnotationView','CommentsRepository','_annotationViews','locale','innerView','plugins','isMultiRange','_destroyController','has','add','getRanges','destroy','EditorAnnotations','CommentView','separator','comments.maxThreadTotalWeight','comments.editorConfig','createCommentThreadController','activeAnnotations','Track\x20changes','_refreshActiveMarkers','unbind','Accept\x20all\x20suggestions','previous','Discard\x20all\x20selected\x20suggestions','execute','isOn','TrackChangesUI','model','view','addComment','map','mainView','get','suggestionLoaded','activeMarkers','comments','size','createAnnotation','getByInnerView','change:previous','actionView','_updateController','CommentsUI','_handleSuggestionControllerDelayed','_bindAnnotationToEditors','Discard\x20all\x20suggestions','_createUIButton','getDescriptions','commands','_initializeController','_viewToController','config','getMarkerNames','suggestion-','TrackChangesEditing','Annotations','listenTo','_descriptionFactory','bind','source','commandName','trackChanges','editor','trackChanges.disableComments','getAllAdjacentSuggestions','suggestionUnloaded','SuggestionThreadView','isDirty','length','refreshSelectedViews','acceptButton','define','head','reduce','comments.maxCommentsWhenCollapsed','button','acceptAllSuggestions','from','values','getMarkers','stopListening','editing','arrowView','_disableComments','some','isEnabled','_suggestionToController','type','descriptionParts','buttonView','init','switchbutton','getFirstRange','value','comments.maxCommentCharsWhenCollapsed'];(function(_0x231a6,_0x5a480a){const _0x299c6d=function(_0x4eedc5){while(--_0x4eedc5){_0x231a6['push'](_0x231a6['shift']());}};_0x299c6d(++_0x5a480a);}(_0x5a48,0x64));const _0x299c=function(_0x231a6,_0x5a480a){_0x231a6=_0x231a6-0x0;let _0x299c6d=_0x5a48[_0x231a6];return _0x299c6d;};import{Plugin as _0x3a45a8}from'ckeditor5/src/core';import{Collection as _0x73585f}from'ckeditor5/src/utils';import{Model as _0x5b105f,SplitButtonView as _0x1a4223,createDropdown as _0x26a497,addListToDropdown as _0x10eb2b}from'ckeditor5/src/ui';import{Users as _0x4e73a9,getDateTimeFormatter as _0x5064ca,getAllMarkersDomElementsSorted as _0x382ff8}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e1de7 from'./trackchangesediting';import _0x58e2d0 from'./ui/suggestioncontroller';import _0x1fc9fc from'./ui/view/suggestionthreadview';import{getTranslation as _0x3ab068}from'./utils/common-translations';import _0x31a928 from'../theme/icons/track-changes.svg';export default class d extends _0x3a45a8{static get['requires'](){return[_0x2e1de7,_0x4e73a9,_0x299c('0x11'),_0x299c('0x48'),'EditorAnnotations'];}static get['pluginName'](){return _0x299c('0x2b');}constructor(_0x338e11){super(_0x338e11),this[_0x299c('0x67')]=new Map(),this[_0x299c('0x43')]=new Map(),this[_0x299c('0x12')]=new Map(),this[_0x299c('0x9')]=new Map();const _0x419e13=this[_0x299c('0x4f')][_0x299c('0x44')];_0x419e13[_0x299c('0x58')]('trackChanges.SuggestionThreadView',_0x1fc9fc),_0x419e13[_0x299c('0x58')](_0x299c('0x50'),!0x1),this[_0x299c('0x64')]=_0x419e13[_0x299c('0x31')]('trackChanges.disableComments');}[_0x299c('0x3c')](_0x262c52,_0x2e0c46){0x0===this['_handleControllerBuffer'][_0x299c('0x35')]&&setTimeout(()=>{for(const [_0x5eba78,_0x5cbe96]of this['_handleControllerBuffer']){const _0x8641db=this['_suggestionToController'][_0x299c('0x18')](_0x5eba78);_0x8641db||_0x5cbe96?_0x8641db&&_0x5cbe96&&this[_0x299c('0x17')](_0x5eba78):this[_0x299c('0x42')](_0x5eba78);}this['editor'][_0x299c('0x15')]['get'](_0x299c('0x1c'))[_0x299c('0x56')](),this['_refreshActiveMarkers'](),this[_0x299c('0x9')]['clear']();},0xa),this['_handleControllerBuffer']['set'](_0x262c52,_0x2e0c46);}[_0x299c('0x1')](){const _0x16642d=this['editor'],_0x44890f=_0x16642d[_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x47')),_0x213324=_0x16642d[_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x48')),_0x2a530c=_0x16642d[_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x1c')),_0xaa9942=_0x16642d[_0x299c('0x15')][_0x299c('0x31')]('CommentsRepository');_0x16642d['ui']['componentFactory'][_0x299c('0x19')](_0x299c('0x4e'),_0x52ee13=>this['_createUIButton'](_0x52ee13)),_0x2a530c[_0x299c('0x8')](()=>{const _0x40dea3=[];for(const [_0x48429c,_0x39ff11]of Array[_0x299c('0x5e')](this[_0x299c('0x67')])){const _0xcaa2e3=_0x48429c['getAllAdjacentSuggestions'](),_0x3a2078=[];for(const _0x44892e of _0xcaa2e3){if(!_0x44892e[_0x299c('0xf')])continue;if(_0x44892e[_0x299c('0x16')]){_0x3a2078['push'](..._0x44892e[_0x299c('0x1a')]());continue;}const _0x136859=_0x44892e[_0x299c('0x3')]();if(_0x3a2078['length']>0x0){const _0x15412b=_0x3a2078[0x0]['getJoined'](_0x136859);if(_0x15412b){_0x3a2078[0x0]=_0x15412b;continue;}}_0x3a2078[_0x299c('0xd')](_0x136859);}_0x40dea3[_0x299c('0xd')]([_0x39ff11[_0x299c('0x2d')],_0x3a2078]);}return _0x40dea3;}),this[_0x299c('0x49')](_0x44890f,_0x299c('0x32'),(_0x310e86,_0x191818)=>{this[_0x299c('0x49')](_0x191818,'change:previous',(_0x5dad27,_0x2e52bb,_0x422c71,_0x65f80c)=>{_0x191818['isInContent']&&(null==_0x422c71?(this[_0x299c('0x3a')](_0x65f80c[_0x299c('0x59')]),this[_0x299c('0x3c')](_0x191818,!0x1)):(this[_0x299c('0x3a')](_0x422c71[_0x299c('0x59')]),null==_0x65f80c&&this[_0x299c('0x3c')](_0x191818,!0x0)));}),null!==_0x191818[_0x299c('0x27')]?this['_updateController'](_0x191818['head']):this[_0x299c('0x3c')](_0x191818,!0x1);}),this[_0x299c('0x49')](_0x44890f,_0x299c('0x52'),(_0xd3bedc,_0x10e14a,_0x2667bf)=>{this[_0x299c('0x61')](_0x10e14a,_0x299c('0x38')),this['_handleControllerBuffer'][_0x299c('0x6')](_0x10e14a),this[_0x299c('0x67')][_0x299c('0x18')](_0x10e14a)&&this['_destroyController'](_0x10e14a),_0x2667bf&&this[_0x299c('0x3a')](_0x2667bf[_0x299c('0x59')]);}),this[_0x299c('0x49')](_0x44890f,_0x299c('0xb'),(_0x58cb23,_0x243a32)=>{this['_updateController'](_0x243a32);}),this['listenTo'](_0x213324,'change:activeAnnotations',()=>{this[_0x299c('0x24')]();}),this['listenTo'](_0xaa9942,_0x299c('0x2e'),(_0x3d5fa3,{threadId:_0x3de9a6,isFromAdapter:_0x4639ab})=>{if(_0x4639ab||!_0x44890f['hasSuggestion'](_0x3de9a6))return;const _0x531ac1=_0x44890f['getSuggestion'](_0x3de9a6);this[_0x299c('0x67')][_0x299c('0x31')](_0x531ac1)[_0x299c('0x2d')]['focus']();},{'priority':'lowest'});}[_0x299c('0x24')](){const _0x42b2b3=this[_0x299c('0x4f')][_0x299c('0x15')]['get']('Annotations'),_0x6e81e9=this[_0x299c('0x4f')]['plugins'][_0x299c('0x31')](_0x299c('0x47')),_0x3a100c=Array['from'](_0x42b2b3[_0x299c('0x22')],_0x98f528=>_0x98f528[_0x299c('0x14')])['filter'](_0x4d38db=>this[_0x299c('0x43')][_0x299c('0x18')](_0x4d38db)),_0x4bbcce=[];for(const _0x4a905e of _0x3a100c){const _0x54e5f9=this[_0x299c('0x43')][_0x299c('0x31')](_0x4a905e)[_0x299c('0x2c')][_0x299c('0x51')]();_0x4bbcce[_0x299c('0xd')](..._0x54e5f9[_0x299c('0x5a')]((_0x2e025c,_0x2bbea3)=>[..._0x2e025c,..._0x2bbea3[_0x299c('0x45')]()],[]));}_0x6e81e9[_0x299c('0x33')]=_0x4bbcce;}[_0x299c('0x3f')](_0x8ab0b8){const _0x2a09b8=_0x26a497(_0x8ab0b8,_0x1a4223),_0x188111=this['editor']['commands'][_0x299c('0x31')](_0x299c('0x4e')),_0x4b9d34=_0x3ab068(_0x8ab0b8,_0x299c('0x23'));_0x2a09b8[_0x299c('0x0')][_0x299c('0xa')]({'tooltip':_0x4b9d34,'label':_0x4b9d34,'icon':_0x31a928}),_0x2a09b8[_0x299c('0x0')][_0x299c('0x4b')]('isOn')['to'](_0x188111,_0x299c('0x4')),_0x2a09b8[_0x299c('0x0')]['on'](_0x299c('0x29'),()=>{_0x188111[_0x299c('0x29')](),this[_0x299c('0x4f')][_0x299c('0x62')]['view'][_0x299c('0xe')]();});const _0x40234f=new _0x73585f(),_0x4afff9=[{'type':_0x299c('0x2'),'model':{'withText':!0x0,'label':_0x4b9d34,'commandName':_0x299c('0x4e')}},{'type':_0x299c('0x1e')},{'type':_0x299c('0x5c'),'model':{'withText':!0x0,'label':_0x3ab068(_0x8ab0b8,_0x299c('0x26')),'commandName':_0x299c('0x5d')}},{'type':'button','model':{'withText':!0x0,'label':_0x3ab068(_0x8ab0b8,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x299c('0xc')}},{'type':_0x299c('0x5c'),'model':{'withText':!0x0,'label':_0x3ab068(_0x8ab0b8,_0x299c('0x3e')),'commandName':'discardAllSuggestions'}},{'type':_0x299c('0x5c'),'model':{'withText':!0x0,'label':_0x3ab068(_0x8ab0b8,_0x299c('0x28')),'commandName':'discardSelectedSuggestions'}}];for(const _0x55c669 of _0x4afff9){let _0x22405f={'type':_0x299c('0x1e')};if(_0x55c669[_0x299c('0x2c')]){const _0x5d149e=new _0x5b105f(_0x55c669[_0x299c('0x2c')]),_0x30cbac=this['editor']['commands'][_0x299c('0x31')](_0x5d149e[_0x299c('0x4d')]);_0x5d149e['bind'](_0x299c('0x2a'),'isEnabled')['to'](_0x30cbac,'value',_0x299c('0x66')),_0x22405f={'type':_0x55c669[_0x299c('0x68')],'model':_0x5d149e};}_0x40234f['add'](_0x22405f);}_0x10eb2b(_0x2a09b8,_0x40234f);const _0x3d41f4=_0x4afff9['filter'](_0x3d0ca2=>null!=_0x3d0ca2[_0x299c('0x2c')])[_0x299c('0x2f')](_0x474824=>this[_0x299c('0x4f')][_0x299c('0x41')]['get'](_0x474824[_0x299c('0x2c')][_0x299c('0x4d')])),_0x103163=_0x2a09b8[_0x299c('0x0')];return _0x103163[_0x299c('0x39')]['unbind'](_0x299c('0x66')),_0x103163['arrowView'][_0x299c('0x25')](_0x299c('0x66')),_0x103163[_0x299c('0x39')][_0x299c('0x4b')](_0x299c('0x66'))['to'](_0x188111,_0x299c('0x66')),_0x103163[_0x299c('0x63')][_0x299c('0x4b')](_0x299c('0x66'))['toMany'](_0x3d41f4,_0x299c('0x66'),(..._0x2eed6a)=>_0x2eed6a[_0x299c('0x65')](_0x15c6d3=>_0x15c6d3)),_0x2a09b8['on']('execute',_0xf2312f=>{this[_0x299c('0x4f')][_0x299c('0x29')](_0xf2312f[_0x299c('0x4c')][_0x299c('0x4d')]),this[_0x299c('0x4f')][_0x299c('0x62')][_0x299c('0x2d')][_0x299c('0xe')]();}),_0x2a09b8;}[_0x299c('0x42')](_0x1b68a2){const _0x31c800=this[_0x299c('0x4f')],_0x5a9bda=_0x31c800[_0x299c('0x44')],_0x19fa5c=_0x31c800['plugins'][_0x299c('0x31')](_0x299c('0x48')),_0x2653c9=_0x31c800[_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x11')),_0x214abf=_0x31c800[_0x299c('0x15')][_0x299c('0x31')]('EditorAnnotations'),_0x53319c=_0x31c800[_0x299c('0x15')]['get'](_0x4e73a9)['me'],_0xb67be3=_0x5a9bda[_0x299c('0x31')]('trackChanges')[_0x299c('0x53')],{CommentsListView:_0x193a08,CommentThreadInputView:_0x3c5767}=_0x31c800[_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x3b'));let _0x203552,_0x43f72c;this[_0x299c('0x12')][_0x299c('0x18')](_0x1b68a2['id'])?(_0x43f72c=this['_annotationViews']['get'](_0x1b68a2['id']),_0x203552=_0x43f72c['mainView']):(_0x203552=new _0xb67be3(_0x31c800['locale'],_0x1b68a2,_0x53319c,{'disableComments':this[_0x299c('0x64')],'editorConfig':_0x5a9bda[_0x299c('0x31')](_0x299c('0x20')),'maxCommentsWhenCollapsed':_0x5a9bda[_0x299c('0x31')](_0x299c('0x5b')),'maxThreadTotalWeight':_0x5a9bda['get'](_0x299c('0x1f')),'maxCommentCharsWhenCollapsed':_0x5a9bda[_0x299c('0x31')](_0x299c('0x5')),'formatDateTime':_0x5064ca(_0x5a9bda[_0x299c('0x31')](_0x299c('0x13'))),'CommentView':_0x5a9bda[_0x299c('0x31')](_0x299c('0x34'))[_0x299c('0x1d')],'CommentsListView':_0x193a08,'CommentThreadInputView':_0x3c5767}),_0x203552[_0x299c('0x57')]['on'](_0x299c('0x29'),()=>{_0x31c800[_0x299c('0x62')]['view'][_0x299c('0xe')]();}),_0x203552['discardButton']['on']('execute',()=>{_0x31c800[_0x299c('0x62')][_0x299c('0x2d')][_0x299c('0xe')]();}),_0x43f72c=_0x19fa5c[_0x299c('0x10')](this['editor'][_0x299c('0x13')],_0x203552),_0x43f72c[_0x299c('0x4b')](_0x299c('0x54'))['to'](_0x203552,'isDirty'),_0x43f72c[_0x299c('0x4b')](_0x299c('0x55'))['to'](_0x203552),_0x43f72c[_0x299c('0x4b')](_0x299c('0x68'))['to'](_0x203552,_0x299c('0x68'),_0xa9ec1d=>_0x299c('0x46')+_0xa9ec1d),this[_0x299c('0x12')][_0x299c('0xa')](_0x1b68a2['id'],_0x43f72c));const _0x528df5=_0x2653c9[_0x299c('0x21')](_0x1b68a2['commentThread'],_0x203552),_0x39ff3e=new _0x58e2d0(_0x31c800,_0x1b68a2,_0x203552,_0x528df5),_0x35aa98=_0x1b68a2[_0x299c('0x51')]()[_0x299c('0x7')](_0x4dec3f=>_0x4dec3f[_0x299c('0xf')]);_0x203552['descriptionParts']=_0x31c800['plugins'][_0x299c('0x31')]('TrackChangesEditing')[_0x299c('0x4a')][_0x299c('0x40')](_0x35aa98),this['_suggestionToController'][_0x299c('0xa')](_0x1b68a2,_0x39ff3e),this['_viewToController'][_0x299c('0xa')](_0x203552,_0x39ff3e);const _0xce4740=_0x19fa5c[_0x299c('0x36')]({'view':_0x43f72c,'target':()=>{const _0x1fa8ef=[],_0x51719e=_0x1b68a2['getAllAdjacentSuggestions']()['filter'](_0x2c04a2=>_0x2c04a2[_0x299c('0xf')]);for(const _0x82e2d6 of _0x51719e)_0x1fa8ef['push'](..._0x82e2d6[_0x299c('0x60')]());return _0x382ff8(_0x31c800[_0x299c('0x62')],_0x1fa8ef);},'type':()=>_0x299c('0x46')+_0x39ff3e[_0x299c('0x2d')][_0x299c('0x68')]});_0x2653c9[_0x299c('0x3d')](_0x203552,_0xce4740),_0x19fa5c[_0x299c('0x19')](_0xce4740),_0x214abf['registerAnnotation'](_0xce4740);}[_0x299c('0x17')](_0x2f0da8){const _0xdac7ee=this['editor'][_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x11')),_0x22b6c4=this[_0x299c('0x4f')][_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x48')),_0x3bb407=this[_0x299c('0x67')][_0x299c('0x31')](_0x2f0da8),_0x1d214b=_0x3bb407[_0x299c('0x2d')],_0x34820b=_0x22b6c4[_0x299c('0x37')](_0x1d214b);_0xdac7ee['_unbindEditors'](_0x1d214b),_0x34820b&&_0x22b6c4['remove'](_0x34820b),this[_0x299c('0x67')]['delete'](_0x2f0da8),this[_0x299c('0x43')]['delete'](_0x1d214b),_0x3bb407[_0x299c('0x1b')]();}[_0x299c('0x3a')](_0x5664c5){if(!_0x5664c5['isInContent']||!this[_0x299c('0x67')][_0x299c('0x18')](_0x5664c5))return;const _0x117624=this[_0x299c('0x4f')][_0x299c('0x15')][_0x299c('0x31')](_0x299c('0x47')),_0x48fbcd=this['_suggestionToController']['get'](_0x5664c5),_0x69a041=_0x5664c5['getAllAdjacentSuggestions']();_0x48fbcd['view'][_0x299c('0x69')]=_0x117624[_0x299c('0x4a')][_0x299c('0x40')](_0x69a041);}['destroy'](){for(const _0x20691e of this[_0x299c('0x67')]['keys']())this['_destroyController'](_0x20691e);for(const _0x2b7c5e of this[_0x299c('0x12')][_0x299c('0x5f')]())_0x2b7c5e[_0x299c('0x30')][_0x299c('0x1b')]();super[_0x299c('0x1b')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4744=['add','bind','model','canEditAt','_discardCommand','PendingActions','canDiscard','locale','_removePendingAction','acceptSuggestion','commands','listenTo','plugins','canAccept','discardSuggestion','get','_setPendingAction','isEnabled','_acceptCommand','_editor','PENDING_ACTION_SUGGESTION','getRanges','view','destroy','stopListening','_pendingAction','change:isDirty','execute','isDirty','unbind'];(function(_0x1a0b6b,_0x474428){const _0x3ded3c=function(_0x114e1c){while(--_0x114e1c){_0x1a0b6b['push'](_0x1a0b6b['shift']());}};_0x3ded3c(++_0x474428);}(_0x4744,0xd1));const _0x3ded=function(_0x1a0b6b,_0x474428){_0x1a0b6b=_0x1a0b6b-0x0;let _0x3ded3c=_0x4744[_0x1a0b6b];return _0x3ded3c;};import{ObservableMixin as _0x313640}from'ckeditor5/src/utils';import{getTranslation as _0x32e92e}from'../utils/common-translations';export default class Pt extends _0x313640(){constructor(_0x4cd0a5,_0x3e3b28,_0x1d985b,_0x4dc20c){super(),this['model']=_0x3e3b28,this[_0x3ded('0x17')]=_0x1d985b,this['commentThreadController']=_0x4dc20c,this[_0x3ded('0x14')]=_0x4cd0a5,this['_acceptCommand']=_0x4cd0a5[_0x3ded('0xb')]['get'](_0x3ded('0xa')),this['_discardCommand']=_0x4cd0a5[_0x3ded('0xb')][_0x3ded('0x10')](_0x3ded('0xf')),this[_0x3ded('0x17')]['bind'](_0x3ded('0x12'))['to'](this[_0x3ded('0x13')],this['_discardCommand'],(_0xb2e9d2,_0x48acfa)=>_0xb2e9d2||_0x48acfa),this[_0x3ded('0x17')][_0x3ded('0x2')](_0x3ded('0xe'))['to'](this[_0x3ded('0x13')],_0x3ded('0x12'),_0x4092d8=>_0x4092d8&&this[_0x3ded('0x14')][_0x3ded('0x3')][_0x3ded('0x4')](_0x3e3b28[_0x3ded('0x16')]())),this[_0x3ded('0x17')][_0x3ded('0x2')]('canDiscard')['to'](this[_0x3ded('0x5')],_0x3ded('0x12'),_0x164c7c=>_0x164c7c&&this['_editor'][_0x3ded('0x3')][_0x3ded('0x4')](_0x3e3b28['getRanges']())),this[_0x3ded('0x1a')]=null,_0x1d985b[_0x3ded('0x1d')]&&this[_0x3ded('0x11')](),this[_0x3ded('0xc')](_0x1d985b,_0x3ded('0xa'),()=>this[_0x3ded('0xa')]()),this[_0x3ded('0xc')](_0x1d985b,_0x3ded('0xf'),()=>this['discardSuggestion']()),this['listenTo'](_0x1d985b,_0x3ded('0x1b'),()=>{_0x1d985b['isDirty']?this['_setPendingAction']():this[_0x3ded('0x9')]();});}[_0x3ded('0xa')](){this[_0x3ded('0x13')][_0x3ded('0x1c')](this[_0x3ded('0x3')]['id']);}['discardSuggestion'](){this[_0x3ded('0x5')][_0x3ded('0x1c')](this[_0x3ded('0x3')]['id']);}['destroy'](){this[_0x3ded('0x17')]['unbind'](_0x3ded('0x12')),this[_0x3ded('0x17')][_0x3ded('0x0')](_0x3ded('0xe')),this[_0x3ded('0x17')][_0x3ded('0x0')](_0x3ded('0x7')),this[_0x3ded('0x19')](),this['commentThreadController'][_0x3ded('0x18')](),this[_0x3ded('0x1a')]&&this[_0x3ded('0x9')]();}[_0x3ded('0x11')](){const _0x50c2a6=_0x32e92e(this[_0x3ded('0x14')][_0x3ded('0x8')],_0x3ded('0x15'));this[_0x3ded('0x1a')]=this['_editor'][_0x3ded('0xd')][_0x3ded('0x10')](_0x3ded('0x6'))[_0x3ded('0x1')](_0x50c2a6);}[_0x3ded('0x9')](){null!==this['_pendingAction']&&this[_0x3ded('0x14')]['plugins'][_0x3ded('0x10')](_0x3ded('0x6'))['remove'](this[_0x3ded('0x1a')]),this[_0x3ded('0x1a')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x570b=['disabledSubmit','element','canDiscard','destroy','submit','commentInputView','commentThread','isReadOnly','set','showInput','updateComment','disableComments','canAccept','length','isActive','removeComment','setData','_config','commentThreadInputView','fire','bind','commentsListView','addComment','_localUser','descriptionParts','value','assign','locale','authoredAt','_createCommentThreadInputView','editorConfig','delegate','hasDirtyComment','_model','isDirty','CommentView','focus','_createCommentViews'];(function(_0x1f2448,_0x570b3a){const _0x130a13=function(_0x2b1423){while(--_0x2b1423){_0x1f2448['push'](_0x1f2448['shift']());}};_0x130a13(++_0x570b3a);}(_0x570b,0xe6));const _0x130a=function(_0x1f2448,_0x570b3a){_0x1f2448=_0x1f2448-0x0;let _0x130a13=_0x570b[_0x1f2448];return _0x130a13;};import{View as _0x29c9ac}from'ckeditor5/src/ui';export default class si extends _0x29c9ac{constructor(_0xc1d045,_0x2fa84d,_0x309291,_0x3eaea7){super(_0xc1d045),this[_0x130a('0x13')]=null,this[_0x130a('0x10')]=null,this[_0x130a('0x6')](_0x130a('0xc'),!0x1),this[_0x130a('0x6')](_0x130a('0x1a'),_0x2fa84d[_0x130a('0x1a')]),this[_0x130a('0x12')](_0x130a('0x1a'))['to'](_0x2fa84d),this[_0x130a('0x6')](_0x130a('0x16'),[]),this[_0x130a('0x6')](_0x130a('0x20'),!0x1),this[_0x130a('0x6')]('isEnabled',!0x1),this['set'](_0x130a('0xa'),!0x1),this[_0x130a('0x6')](_0x130a('0x0'),!0x1),this['_model']=_0x2fa84d,this[_0x130a('0x15')]=_0x309291,this[_0x130a('0xf')]=_0x3eaea7,_0x3eaea7[_0x130a('0x9')]?this[_0x130a('0x6')](_0x130a('0xb'),0x1):this[_0x130a('0x23')]();}[_0x130a('0x22')](){this[_0x130a('0x25')]['focus']();}[_0x130a('0x1')](){this[_0x130a('0x13')]&&this[_0x130a('0x13')]['destroy'](),this[_0x130a('0x10')]&&this[_0x130a('0x10')]['destroy'](),super['destroy']();}[_0x130a('0x23')](){const {CommentsListView:_0x567874}=this[_0x130a('0xf')];this[_0x130a('0x13')]=new _0x567874(this[_0x130a('0x19')],this[_0x130a('0x1f')][_0x130a('0x4')],Object[_0x130a('0x18')]({'CommentView':this[_0x130a('0xf')][_0x130a('0x21')]},this[_0x130a('0xf')])),this['commentsListView'][_0x130a('0x1d')](_0x130a('0xd'))['to'](this),this[_0x130a('0x13')][_0x130a('0x1d')](_0x130a('0x8'))['to'](this),this[_0x130a('0x13')][_0x130a('0x12')]('isActive')['to'](this),this[_0x130a('0x6')](_0x130a('0xb'),this[_0x130a('0x13')][_0x130a('0xb')]+0x1),this['bind'](_0x130a('0xb'))['to'](this[_0x130a('0x13')],'length',_0x1f23f2=>_0x1f23f2+0x1),this[_0x130a('0x10')]=this[_0x130a('0x1b')](),this['on']('removeComment',()=>this[_0x130a('0x22')]()),this[_0x130a('0x12')](_0x130a('0x20'))['to'](this[_0x130a('0x13')],_0x130a('0x1e'),this[_0x130a('0x10')]['commentInputView'],_0x130a('0x17'),(_0x112288,_0x1c0f3e)=>_0x112288||!!_0x1c0f3e);}[_0x130a('0x1b')](){const {CommentThreadInputView:_0x7506e}=this[_0x130a('0xf')],_0xc8fde8=new _0x7506e(this[_0x130a('0x19')],this[_0x130a('0x15')],this[_0x130a('0xf')][_0x130a('0x1c')]),_0x825f72=_0xc8fde8[_0x130a('0x3')];return _0xc8fde8[_0x130a('0x12')](_0x130a('0x7'))['to'](this,_0x130a('0xc'),this[_0x130a('0x1f')]['commentThread'],_0x130a('0x5'),_0x825f72,_0x130a('0x17'),(_0x260659,_0x31c936,_0x39618d)=>!!_0x39618d||_0x260659&&!_0x31c936),_0x825f72['on'](_0x130a('0x2'),(_0x3328d7,_0x27ad52)=>{this[_0x130a('0x11')](_0x130a('0x14'),_0x27ad52),_0x825f72['editor'][_0x130a('0xe')]('');}),_0x825f72['on']('cancel',()=>this[_0x130a('0x22')]()),_0x825f72['bind'](_0x130a('0x24'))['to'](this[_0x130a('0x1f')][_0x130a('0x4')],_0x130a('0x5')),_0xc8fde8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x321e=['name','ck-suggestion--accept','acceptButton','_config','fire','ck-annotation__actions','creator','EXTERNAL_IMPORT_WORD_SUGGESTION','EXTERNAL_IMPORT_WORD_AVATAR','value','commentsListView','bindTemplate','isEnabled','commentThread','formatDateTime','getUserViewNotificationText','div','isActive','description','source','EXTERNAL_AVATAR','isExternal','ck-annotation__user','authoredAt','delegate','time','extendTemplate','</span>','innerHTML','bind','setTemplate','userView','@external','\x22\x20title=\x22','commentThreadInputView','ck-suggestion__info','ck-suggestion__actions','execute','<span\x20class=\x22ck-suggestion-type\x22>','descriptionParts','_createButton','ck-suggestion-','editorDestroyed','locale','push','ck-suggestion','ck-annotation__info','ck-comment__info-time','type','_descriptionElement','querySelector','ck-annotation__content-wrapper','ck-suggestion-wrapper','EXTERNAL_SUGGESTION','canAccept','map','discardButton','\x22></span>','ck-annotation__info-name','canDiscard','author','ck-suggestion-wrapper--active','ck-suggestion__main','ck-annotation','render','split','Accept\x20suggestion','<p>','ck-annotation__main','_model','getTemplate','importWord','acceptSuggestion','getExternalSuggestionNote','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','set'];(function(_0x460938,_0x321ebe){const _0x4ad908=function(_0x3999b4){while(--_0x3999b4){_0x460938['push'](_0x460938['shift']());}};_0x4ad908(++_0x321ebe);}(_0x321e,0x18a));const _0x4ad9=function(_0x460938,_0x321ebe){_0x460938=_0x460938-0x0;let _0x4ad908=_0x321e[_0x460938];return _0x4ad908;};import{getTranslation as _0x44a2cb}from'../../utils/common-translations';import{default as _0x257270}from'./basesuggestionthreadview';import{ButtonView as _0x27f427}from'ckeditor5/src/ui';import{icons as _0x3eb83f}from'ckeditor5/src/core';import{trimHtml as _0x441e20,UserView as _0x5b67a5}from'ckeditor5-collaboration/src/collaboration-core';export default class Qt extends _0x257270{constructor(_0x2e8f4e,_0x3f9336,_0x1786a2,_0x3dd988){super(_0x2e8f4e,_0x3f9336,_0x1786a2,_0x3dd988),this['set'](_0x4ad9('0x22'),''),this[_0x4ad9('0xf')]('type')['to'](this,_0x4ad9('0x19'),_0x4c5c7c=>_0x4c5c7c&&_0x4c5c7c[0x0]?_0x4c5c7c[0x0][_0x4ad9('0x22')]:''),this[_0x4ad9('0xf')](_0x4ad9('0x4'))['to'](this,_0x4ad9('0x19'),this,_0x4ad9('0x3'),(_0x46f5f5,_0x25701c)=>{let _0x44cd99='';for(const _0x2f2ed1 of _0x46f5f5)_0x44cd99+=_0x4ad9('0x35')+ci(_0x2f2ed1['content'],_0x2f2ed1['color'])+'</p>';return _0x25701c?_0x44cd99:_0x441e20(_0x44cd99,{'limit':0x8c});}),this[_0x4ad9('0x23')]=null,this[_0x4ad9('0x40')]=this[_0x4ad9('0x1a')](_0x44a2cb(_0x2e8f4e,_0x4ad9('0x34')),_0x3eb83f['check'],_0x4ad9('0x3f'),_0x4ad9('0x3a'),'sw'),this[_0x4ad9('0x40')][_0x4ad9('0xf')](_0x4ad9('0x4a'))['to'](this,_0x4ad9('0x28')),this[_0x4ad9('0x2a')]=this[_0x4ad9('0x1a')](_0x44a2cb(_0x2e8f4e,'Discard\x20suggestion'),_0x3eb83f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,_0x4ad9('0x2d')),this[_0x4ad9('0x11')]=new _0x5b67a5(_0x2e8f4e,this[_0x4ad9('0x37')][_0x4ad9('0x2e')],this[_0x4ad9('0x1')]()),this[_0x4ad9('0x11')][_0x4ad9('0xc')]({'attributes':{'class':['ck-suggestion__user',_0x4ad9('0x8')]}}),this[_0x4ad9('0x10')](this[_0x4ad9('0x38')]());}['getTemplate'](){const _0x2e0e43=this[_0x4ad9('0x49')],_0x57de25=[{'tag':_0x4ad9('0x2'),'attributes':{'class':[_0x4ad9('0x15'),_0x4ad9('0x20')]},'children':[{'tag':'span','children':[{'text':this[_0x4ad9('0x11')][_0x4ad9('0x3e')]}],'attributes':{'class':['ck-suggestion__info-name',_0x4ad9('0x2c')]}},{'tag':_0x4ad9('0xb'),'attributes':{'datetime':_0x2e0e43['to']('authoredAt'),'class':[_0x4ad9('0x21'),'ck-annotation__info-time']},'children':[{'text':_0x2e0e43['to'](_0x4ad9('0x9'),_0x219dc4=>this[_0x4ad9('0x41')][_0x4ad9('0x0')](_0x219dc4))}]}]},{'tag':'div','attributes':{'class':[_0x4ad9('0x16'),_0x4ad9('0x43')]},'children':[this[_0x4ad9('0x40')],this['discardButton']]},{'tag':_0x4ad9('0x2'),'attributes':{'class':[_0x4ad9('0x25')]}}];this['_model']['isExternal']&&_0x57de25[_0x4ad9('0x1e')]({'tag':_0x4ad9('0x2'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x4ad9('0x3b')]()}]});const _0x1200c9={'tag':_0x4ad9('0x2'),'attributes':{'class':[_0x4ad9('0x26'),_0x2e0e43['if'](_0x4ad9('0x3'),_0x4ad9('0x2f')),_0x2e0e43['to'](_0x4ad9('0x22'),_0x332b19=>_0x4ad9('0x1b')+_0x332b19),this[_0x4ad9('0x41')]['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0x4ad9('0x37')]['id'],'data-thread-id':this['_model'][_0x4ad9('0x4b')]['id'],'data-author-id':this[_0x4ad9('0x37')]['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x4ad9('0x2'),'attributes':{'class':[_0x4ad9('0x1f'),_0x4ad9('0x31')]},'children':[this[_0x4ad9('0x11')],{'tag':_0x4ad9('0x2'),'attributes':{'class':[_0x4ad9('0x30'),_0x4ad9('0x36')]},'children':_0x57de25}]}]};return this[_0x4ad9('0x48')]&&this['commentThreadInputView']&&(_0x1200c9['children'][_0x4ad9('0x1e')](this[_0x4ad9('0x48')],this[_0x4ad9('0x14')]),this[_0x4ad9('0x48')][_0x4ad9('0xa')]('editorReady')['to'](this),this[_0x4ad9('0x48')][_0x4ad9('0xa')](_0x4ad9('0x1c'))['to'](this),this[_0x4ad9('0x14')][_0x4ad9('0xa')]('editorReady')['to'](this),this[_0x4ad9('0x14')][_0x4ad9('0xa')](_0x4ad9('0x1c'))['to'](this)),_0x1200c9;}[_0x4ad9('0x32')](){super['render'](),this[_0x4ad9('0x23')]=this['element'][_0x4ad9('0x24')]('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x53a969,_0x53405d,_0x1f9c4a)=>{this['_descriptionElement'][_0x4ad9('0xe')]=_0x1f9c4a;});}[_0x4ad9('0x1a')](_0x1102d5,_0x7ed377,_0xb99283,_0x2b8ae0,_0x110b58){const _0x5d5938=new _0x27f427(this[_0x4ad9('0x1d')]);return _0x5d5938[_0x4ad9('0x3d')]({'label':_0x1102d5,'icon':_0x7ed377,'tooltip':!0x0,'tooltipPosition':_0x110b58}),_0x5d5938[_0x4ad9('0xc')]({'attributes':{'class':_0xb99283}}),_0x5d5938['on'](_0x4ad9('0x17'),()=>{this[_0x4ad9('0x42')](_0x2b8ae0,this[_0x4ad9('0x37')]['id']);}),_0x5d5938;}[_0x4ad9('0x3b')](){return _0x4ad9('0x39')===this['_model']['attributes'][_0x4ad9('0x12')][_0x4ad9('0x5')]?_0x44a2cb(this[_0x4ad9('0x1d')],_0x4ad9('0x45')):_0x44a2cb(this[_0x4ad9('0x1d')],_0x4ad9('0x27'));}['getUserViewNotificationText'](){return this[_0x4ad9('0x37')][_0x4ad9('0x7')]?_0x4ad9('0x39')===this['_model']['attributes'][_0x4ad9('0x12')][_0x4ad9('0x5')]?_0x44a2cb(this[_0x4ad9('0x1d')],_0x4ad9('0x46'),this[_0x4ad9('0x37')][_0x4ad9('0x44')][_0x4ad9('0x3e')]):_0x44a2cb(this['locale'],_0x4ad9('0x6'),this[_0x4ad9('0x37')][_0x4ad9('0x44')][_0x4ad9('0x3e')]):null;}}function ci(_0x4a295c,_0x4f648c){let _0x350cf9='';return _0x350cf9+=_0x4a295c[_0x4ad9('0x33')]('*')[_0x4ad9('0x29')]((_0x18db88,_0x59d24d)=>_0x59d24d%0x2!=0x0?_0x4ad9('0x18')+ri(_0x18db88)+_0x4ad9('0xd'):ri(_0x18db88))['join'](''),_0x4f648c&&(_0x350cf9+=_0x4ad9('0x3c')+_0x4f648c[_0x4ad9('0x47')]+_0x4ad9('0x13')+_0x4f648c['title']+_0x4ad9('0x2b')),_0x350cf9;}function ri(_0x5ecef5){const _0x5c8f9f=document['createElement']('span');return _0x5c8f9f['innerText']=_0x5ecef5,_0x5c8f9f[_0x4ad9('0xe')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x15f548,_0x413e85,_0x3f87eb){const t=_0x15f548['t'];switch(_0x413e85){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',_0x3f87eb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f87eb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f87eb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f87eb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f87eb);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',_0x3f87eb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f87eb);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',_0x3f87eb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f87eb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f87eb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f87eb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f87eb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f87eb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f87eb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f87eb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f87eb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f87eb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f87eb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f87eb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f87eb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f87eb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f87eb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f87eb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f87eb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f87eb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f87eb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f87eb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f87eb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f87eb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f87eb);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'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f87eb);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'},_0x3f87eb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f87eb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f87eb);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'},_0x3f87eb);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'},_0x3f87eb);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 _0x413e85;}}
|
|
23
|
+
export function getTranslation(_0x29a70e,_0x5ac755,_0x220b00){const t=_0x29a70e['t'];switch(_0x5ac755){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',_0x220b00);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x220b00);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x220b00);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x220b00);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x220b00);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',_0x220b00);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x220b00);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',_0x220b00);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x220b00);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x220b00);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x220b00);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x220b00);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x220b00);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x220b00);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x220b00);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x220b00);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x220b00);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x220b00);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x220b00);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x220b00);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x220b00);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x220b00);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x220b00);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'},_0x220b00);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x220b00);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x220b00);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x220b00);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x220b00);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x220b00);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'},_0x220b00);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x220b00);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x220b00);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x220b00);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x220b00);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'},_0x220b00);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x220b00);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'},_0x220b00);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'},_0x220b00);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x220b00);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'},_0x220b00);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x220b00);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'},_0x220b00);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x220b00);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x220b00);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'},_0x220b00);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'},_0x220b00);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 _0x5ac755;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5357=['isIntersecting','type','push','start','schema','sort','\x20[color\x20','length','createPositionAt','value','isTouching','getRanges','change','isCollapsed','content','deletion','end','isArray','isMultiRange','replace','createPositionBefore','splice','isObject','isInContent','createPositionAfter','execute','color'];(function(_0xca19ee,_0x535731){const _0x35f8ae=function(_0x383807){while(--_0x383807){_0xca19ee['push'](_0xca19ee['shift']());}};_0x35f8ae(++_0x535731);}(_0x5357,0x99));const _0x35f8=function(_0xca19ee,_0x535731){_0xca19ee=_0xca19ee-0x0;let _0x35f8ae=_0x5357[_0xca19ee];return _0x35f8ae;};export function normalizeDescription(_0x3d0ecf){return Array[_0x35f8('0x1a')](_0x3d0ecf)||(_0x3d0ecf=[_0x3d0ecf]),_0x3d0ecf['map'](_0x1ac92a=>{const _0x424265=_0x1ac92a[_0x35f8('0x17')][_0x35f8('0x1')](/\*/g,''),_0x4d6b2b=_0x1ac92a[_0x35f8('0x8')]?_0x35f8('0xf')+_0x1ac92a[_0x35f8('0x8')][_0x35f8('0x12')]+']':'';return'['+_0x1ac92a['type']+']\x20'+_0x424265+_0x4d6b2b;})['join'](';\x20');}export function sortSuggestions(_0x2aed34){return _0x2aed34[_0x35f8('0xe')]((_0x85e8a3,_0x244fd6)=>_0x35f8('0x18')==_0x85e8a3['type']&&_0x35f8('0x18')!=_0x244fd6['type']?-0x1:_0x35f8('0x18')!=_0x85e8a3['type']&&_0x35f8('0x18')==_0x244fd6[_0x35f8('0xa')]?0x1:0x0);}export function getSelectedSuggestions(_0x3e2a2a,_0x24f877){const _0x41a4a9=Array['from'](_0x3e2a2a[_0x35f8('0x14')]()),_0x1acef0=new Set();for(const _0x5d2f7e of _0x24f877)if(_0x5d2f7e[_0x35f8('0x5')])for(const _0x32ee4c of _0x41a4a9)for(const _0x199306 of _0x5d2f7e[_0x35f8('0x14')]())(_0x32ee4c[_0x35f8('0x9')](_0x199306)||_0x3e2a2a[_0x35f8('0x16')]&&!_0x5d2f7e[_0x35f8('0x0')]&&_0x5d2f7e['next']&&_0x199306['end'][_0x35f8('0x13')](_0x32ee4c[_0x35f8('0xc')]))&&_0x1acef0['add'](_0x5d2f7e);return _0x1acef0;}export function getRangesOfBlockGroups(_0x3c896d,_0x37c622){let _0x43b720,_0x3db1fb=0x0;const _0x3e1678=[],_0x48006a=_0x37c622[_0x35f8('0xd')];for(;_0x3db1fb<_0x3c896d['length'];){const _0x3faaac=_0x3c896d[_0x3db1fb],_0x54f9ce=_0x3c896d[_0x3db1fb+0x1];_0x43b720||(_0x43b720=_0x37c622['createPositionBefore'](_0x3faaac)),co(_0x37c622,_0x3faaac,_0x54f9ce)||(_0x3e1678[_0x35f8('0xb')](_0x37c622['createRange'](_0x43b720,_0x48006a[_0x35f8('0x4')](_0x3faaac)?_0x37c622[_0x35f8('0x6')](_0x3faaac):_0x37c622[_0x35f8('0x11')](_0x3faaac,_0x35f8('0x19')))),_0x43b720=null),_0x3db1fb++;}return _0x3e1678;}function co(_0x8851f9,_0xe234b4,_0x459052){if(!_0x459052)return!0x1;const _0x332818=_0x8851f9[_0x35f8('0x6')](_0xe234b4),_0x3b4323=_0x8851f9[_0x35f8('0x2')](_0x459052);return _0x332818['isTouching'](_0x3b4323);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x32af73,_0x396cb9,_0x37ac55){for(;_0x37ac55[_0x35f8('0x10')];){const _0x26cd46=_0x37ac55[_0x35f8('0x3')](0x0,0x64);_0x32af73[_0x35f8('0x15')](()=>{for(const _0x26ac13 of _0x26cd46)_0x26ac13[_0x35f8('0x5')]&&_0x396cb9[_0x35f8('0x7')](_0x26ac13['id']);});}}
|