@ckeditor/ckeditor5-track-changes 40.1.0 → 40.2.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 +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +5 -5
- package/lang/translations/az.po +4 -4
- package/lang/translations/bg.po +5 -5
- package/lang/translations/bn.po +5 -5
- package/lang/translations/ca.po +5 -5
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +5 -5
- package/lang/translations/de.po +5 -5
- package/lang/translations/el.po +5 -5
- package/lang/translations/en-au.po +5 -5
- package/lang/translations/en.po +5 -5
- package/lang/translations/es.po +5 -5
- package/lang/translations/et.po +5 -5
- package/lang/translations/fi.po +5 -5
- package/lang/translations/fr.po +5 -5
- package/lang/translations/gl.po +36 -36
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +5 -5
- package/lang/translations/hr.po +5 -5
- package/lang/translations/hu.po +5 -5
- package/lang/translations/id.po +5 -5
- package/lang/translations/it.po +5 -5
- package/lang/translations/ja.po +5 -5
- package/lang/translations/ko.po +5 -5
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +5 -5
- package/lang/translations/ms.po +5 -5
- package/lang/translations/nl.po +5 -5
- package/lang/translations/no.po +5 -5
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +5 -5
- package/lang/translations/pt.po +5 -5
- package/lang/translations/ro.po +5 -5
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sq.po +4 -4
- package/lang/translations/sr-latn.po +24 -24
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +5 -5
- package/lang/translations/th.po +5 -5
- package/lang/translations/tk.po +4 -4
- package/lang/translations/tr.po +5 -5
- package/lang/translations/tt.po +4 -4
- package/lang/translations/uk.po +5 -5
- package/lang/translations/ur.po +4 -4
- package/lang/translations/vi.po +5 -5
- package/lang/translations/zh-cn.po +5 -5
- package/lang/translations/zh.po +5 -5
- 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 _0x4ef8=['createAnnotation','push','execute','locale','separator','define','SuggestionThreadView','type','acceptSelectedSuggestions','componentFactory','TrackChangesEditing','Annotations','acceptAllSuggestions','acceptButton','EditorAnnotations','Discard\x20all\x20suggestions','getSuggestion','set','CommentsRepository','some','refreshSelectedViews','buttonView','_disableComments','addSourceCollector','isDirty','bind','editing','_initializeController','change:previous','head','discardSelectedSuggestions','_descriptionFactory','_viewToController','Accept\x20all\x20selected\x20suggestions','commands','add','button','editor','plugins','reduce','values','isMultiRange','focus','_handleControllerBuffer','createAnnotationView','trackChanges.SuggestionThreadView','source','keys','TrackChangesUI','CommentsUI','previous','length','_bindAnnotationToEditors','suggestionUnloaded','trackChanges','suggestionLoaded','get','commandName','_updateController','map','getRanges','_suggestionToController','model','remove','config','isInContent','clear','destroy','_createUIButton','size','lowest','view','value','_unbindEditors','getAllAdjacentSuggestions','Accept\x20all\x20suggestions','has','switchbutton','hasSuggestion','change:activeAnnotations','suggestion-','createCommentThreadController','arrowView','discardAllSuggestions','delete','activeAnnotations','_refreshActiveMarkers','filter','comments.maxCommentCharsWhenCollapsed','requires','getMarkers','isEnabled','comments.maxThreadTotalWeight','suggestionChanged','_annotationViews','comments.editorConfig','unbind','trackChanges.disableComments','mainView','commentThread','_destroyController','_handleSuggestionControllerDelayed','listenTo','init','from','actionView','innerView','toMany','descriptionParts','discardButton','getDescriptions','getMarkerNames'];(function(_0x15a6bc,_0x4ef8be){const _0x11d050=function(_0x5b168a){while(--_0x5b168a){_0x15a6bc['push'](_0x15a6bc['shift']());}};_0x11d050(++_0x4ef8be);}(_0x4ef8,0xbf));const _0x11d0=function(_0x15a6bc,_0x4ef8be){_0x15a6bc=_0x15a6bc-0x0;let _0x11d050=_0x4ef8[_0x15a6bc];return _0x11d050;};import{Plugin as _0x57140e}from'ckeditor5/src/core';import{Collection as _0x2f5dc9}from'ckeditor5/src/utils';import{Model as _0x988443,SplitButtonView as _0x5323c1,createDropdown as _0x5d1d5f,addListToDropdown as _0x2284d9}from'ckeditor5/src/ui';import{Users as _0x4272aa,getDateTimeFormatter as _0x32e184,getAllMarkersDomElementsSorted as _0x240d7a}from'ckeditor5-collaboration/src/collaboration-core';import _0x24cd78 from'./trackchangesediting';import _0x52ca5b from'./ui/suggestioncontroller';import _0x42fe38 from'./ui/view/suggestionthreadview';import{getTranslation as _0x57d9ab}from'./utils/common-translations';import _0x12c1dc from'../theme/icons/track-changes.svg';export default class d extends _0x57140e{static get[_0x11d0('0xa')](){return[_0x24cd78,_0x4272aa,_0x11d0('0x33'),_0x11d0('0x2c'),'EditorAnnotations'];}static get['pluginName'](){return _0x11d0('0x51');}constructor(_0x962bf2){super(_0x962bf2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x11d0('0xf')]=new Map(),this[_0x11d0('0x4c')]=new Map();const _0x271309=this[_0x11d0('0x46')][_0x11d0('0x61')];_0x271309[_0x11d0('0x26')](_0x11d0('0x4e'),_0x42fe38),_0x271309[_0x11d0('0x26')](_0x11d0('0x12'),!0x1),this[_0x11d0('0x37')]=_0x271309[_0x11d0('0x59')](_0x11d0('0x12'));}[_0x11d0('0x16')](_0x2663b1,_0x9ec40a){0x0===this[_0x11d0('0x4c')][_0x11d0('0x66')]&&setTimeout(()=>{for(const [_0x2c43fa,_0xbfaa2b]of this[_0x11d0('0x4c')]){const _0x4f24a8=this[_0x11d0('0x5e')]['has'](_0x2c43fa);_0x4f24a8||_0xbfaa2b?_0x4f24a8&&_0xbfaa2b&&this[_0x11d0('0x15')](_0x2c43fa):this[_0x11d0('0x3c')](_0x2c43fa);}this[_0x11d0('0x46')][_0x11d0('0x47')]['get']('EditorAnnotations')[_0x11d0('0x35')](),this[_0x11d0('0x7')](),this['_handleControllerBuffer'][_0x11d0('0x63')]();},0xa),this[_0x11d0('0x4c')][_0x11d0('0x32')](_0x2663b1,_0x9ec40a);}[_0x11d0('0x18')](){const _0x2331e6=this[_0x11d0('0x46')],_0x3b896d=_0x2331e6[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2b')),_0x356779=_0x2331e6[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x2643d9=_0x2331e6[_0x11d0('0x47')]['get'](_0x11d0('0x2f')),_0x3a9d9e=_0x2331e6[_0x11d0('0x47')]['get']('CommentsRepository');_0x2331e6['ui'][_0x11d0('0x2a')][_0x11d0('0x44')]('trackChanges',_0x8081e9=>this[_0x11d0('0x65')](_0x8081e9)),_0x2643d9[_0x11d0('0x38')](()=>{const _0x230de6=[];for(const [_0x2536e7,_0x1631c0]of Array[_0x11d0('0x19')](this[_0x11d0('0x5e')])){const _0x3cd721=_0x2536e7[_0x11d0('0x6b')](),_0x35e33c=[];for(const _0x2c62e9 of _0x3cd721){if(!_0x2c62e9[_0x11d0('0x62')])continue;if(_0x2c62e9[_0x11d0('0x4a')]){_0x35e33c[_0x11d0('0x22')](..._0x2c62e9[_0x11d0('0x5d')]());continue;}const _0x2d7337=_0x2c62e9['getFirstRange']();if(_0x35e33c[_0x11d0('0x54')]>0x0){const _0x234816=_0x35e33c[0x0]['getJoined'](_0x2d7337);if(_0x234816){_0x35e33c[0x0]=_0x234816;continue;}}_0x35e33c[_0x11d0('0x22')](_0x2d7337);}_0x230de6['push']([_0x1631c0[_0x11d0('0x68')],_0x35e33c]);}return _0x230de6;}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0x58'),(_0x594123,_0x1ef054)=>{this[_0x11d0('0x17')](_0x1ef054,_0x11d0('0x3d'),(_0x3e915c,_0x55448a,_0x9d23f2,_0x1e898e)=>{_0x1ef054['isInContent']&&(null==_0x9d23f2?(this['_updateController'](_0x1e898e[_0x11d0('0x3e')]),this[_0x11d0('0x16')](_0x1ef054,!0x1)):(this['_updateController'](_0x9d23f2[_0x11d0('0x3e')]),null==_0x1e898e&&this[_0x11d0('0x16')](_0x1ef054,!0x0)));}),null!==_0x1ef054[_0x11d0('0x53')]?this['_updateController'](_0x1ef054[_0x11d0('0x3e')]):this[_0x11d0('0x16')](_0x1ef054,!0x1);}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0x56'),(_0x3c0fe8,_0x2f2d6b,_0x5789b0)=>{this['stopListening'](_0x2f2d6b,_0x11d0('0x3d')),this[_0x11d0('0x4c')]['delete'](_0x2f2d6b),this[_0x11d0('0x5e')][_0x11d0('0x6d')](_0x2f2d6b)&&this[_0x11d0('0x15')](_0x2f2d6b),_0x5789b0&&this[_0x11d0('0x5b')](_0x5789b0[_0x11d0('0x3e')]);}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0xe'),(_0x32d525,_0x30e48d)=>{this['_updateController'](_0x30e48d);}),this['listenTo'](_0x356779,_0x11d0('0x0'),()=>{this[_0x11d0('0x7')]();}),this[_0x11d0('0x17')](_0x3a9d9e,'addComment',(_0x48423b,{threadId:_0x4ec39c,isFromAdapter:_0xedea6d})=>{if(_0xedea6d||!_0x3b896d[_0x11d0('0x6f')](_0x4ec39c))return;const _0x50cc52=_0x3b896d[_0x11d0('0x31')](_0x4ec39c);this[_0x11d0('0x5e')][_0x11d0('0x59')](_0x50cc52)['view']['focus']();},{'priority':_0x11d0('0x67')});}[_0x11d0('0x7')](){const _0x2a299e=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x1b6595=this[_0x11d0('0x46')]['plugins'][_0x11d0('0x59')](_0x11d0('0x2b')),_0x47d7d8=Array['from'](_0x2a299e[_0x11d0('0x6')],_0x37c922=>_0x37c922[_0x11d0('0x1b')])['filter'](_0x3362ac=>this[_0x11d0('0x41')][_0x11d0('0x6d')](_0x3362ac)),_0x2fc59e=[];for(const _0x2d10f4 of _0x47d7d8){const _0x3d9698=this[_0x11d0('0x41')][_0x11d0('0x59')](_0x2d10f4)[_0x11d0('0x5f')][_0x11d0('0x6b')]();_0x2fc59e[_0x11d0('0x22')](..._0x3d9698[_0x11d0('0x48')]((_0x4aa9e9,_0x4c1854)=>[..._0x4aa9e9,..._0x4c1854[_0x11d0('0x20')]()],[]));}_0x1b6595['activeMarkers']=_0x2fc59e;}[_0x11d0('0x65')](_0x2d3a32){const _0x14669c=_0x5d1d5f(_0x2d3a32,_0x5323c1),_0x4a8e8d=this[_0x11d0('0x46')][_0x11d0('0x43')][_0x11d0('0x59')](_0x11d0('0x57')),_0x9fb8ab=_0x57d9ab(_0x2d3a32,'Track\x20changes');_0x14669c['buttonView']['set']({'tooltip':_0x9fb8ab,'label':_0x9fb8ab,'icon':_0x12c1dc}),_0x14669c[_0x11d0('0x36')][_0x11d0('0x3a')]('isOn')['to'](_0x4a8e8d,_0x11d0('0x69')),_0x14669c[_0x11d0('0x36')]['on']('execute',()=>{_0x4a8e8d[_0x11d0('0x23')](),this[_0x11d0('0x46')][_0x11d0('0x3b')][_0x11d0('0x68')]['focus']();});const _0xf0450e=new _0x2f5dc9(),_0x2f9063=[{'type':_0x11d0('0x6e'),'model':{'withText':!0x0,'label':_0x9fb8ab,'commandName':_0x11d0('0x57')}},{'type':_0x11d0('0x25')},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x6c')),'commandName':_0x11d0('0x2d')}},{'type':'button','model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x42')),'commandName':_0x11d0('0x29')}},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x30')),'commandName':_0x11d0('0x4')}},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x11d0('0x3f')}}];for(const _0x34ebd8 of _0x2f9063){let _0x1624dc={'type':_0x11d0('0x25')};if(_0x34ebd8[_0x11d0('0x5f')]){const _0x2ce9ad=new _0x988443(_0x34ebd8[_0x11d0('0x5f')]),_0x184b57=this[_0x11d0('0x46')][_0x11d0('0x43')]['get'](_0x2ce9ad[_0x11d0('0x5a')]);_0x2ce9ad['bind']('isOn','isEnabled')['to'](_0x184b57,'value',_0x11d0('0xc')),_0x1624dc={'type':_0x34ebd8[_0x11d0('0x28')],'model':_0x2ce9ad};}_0xf0450e['add'](_0x1624dc);}_0x2284d9(_0x14669c,_0xf0450e);const _0x4a5572=_0x2f9063['filter'](_0x25d7e8=>null!=_0x25d7e8[_0x11d0('0x5f')])[_0x11d0('0x5c')](_0x53c3c4=>this['editor'][_0x11d0('0x43')][_0x11d0('0x59')](_0x53c3c4[_0x11d0('0x5f')][_0x11d0('0x5a')])),_0x3e64ae=_0x14669c[_0x11d0('0x36')];return _0x3e64ae[_0x11d0('0x1a')][_0x11d0('0x11')](_0x11d0('0xc')),_0x3e64ae[_0x11d0('0x3')][_0x11d0('0x11')](_0x11d0('0xc')),_0x3e64ae[_0x11d0('0x1a')][_0x11d0('0x3a')](_0x11d0('0xc'))['to'](_0x4a8e8d,'isEnabled'),_0x3e64ae['arrowView'][_0x11d0('0x3a')](_0x11d0('0xc'))[_0x11d0('0x1c')](_0x4a5572,_0x11d0('0xc'),(..._0x2df0a0)=>_0x2df0a0[_0x11d0('0x34')](_0x3cd8e6=>_0x3cd8e6)),_0x14669c['on']('execute',_0x1ad835=>{this[_0x11d0('0x46')][_0x11d0('0x23')](_0x1ad835[_0x11d0('0x4f')][_0x11d0('0x5a')]),this[_0x11d0('0x46')]['editing']['view'][_0x11d0('0x4b')]();}),_0x14669c;}['_initializeController'](_0x4c960d){const _0x35de1f=this[_0x11d0('0x46')],_0x186dc1=_0x35de1f['config'],_0x44a9ee=_0x35de1f[_0x11d0('0x47')]['get']('Annotations'),_0x4bef0a=_0x35de1f[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x33')),_0x2f258c=_0x35de1f['plugins'][_0x11d0('0x59')](_0x11d0('0x2f')),_0x133ec2=_0x35de1f[_0x11d0('0x47')][_0x11d0('0x59')](_0x4272aa)['me'],_0x46a48c=_0x186dc1[_0x11d0('0x59')](_0x11d0('0x57'))[_0x11d0('0x27')],{CommentsListView:_0x5105b4,CommentThreadInputView:_0x4b213b}=_0x35de1f[_0x11d0('0x47')]['get'](_0x11d0('0x52'));let _0x547f9f,_0x3c7b38;this[_0x11d0('0xf')][_0x11d0('0x6d')](_0x4c960d['id'])?(_0x3c7b38=this[_0x11d0('0xf')][_0x11d0('0x59')](_0x4c960d['id']),_0x547f9f=_0x3c7b38[_0x11d0('0x13')]):(_0x547f9f=new _0x46a48c(_0x35de1f[_0x11d0('0x24')],_0x4c960d,_0x133ec2,{'disableComments':this[_0x11d0('0x37')],'editorConfig':_0x186dc1[_0x11d0('0x59')](_0x11d0('0x10')),'maxCommentsWhenCollapsed':_0x186dc1[_0x11d0('0x59')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x186dc1[_0x11d0('0x59')](_0x11d0('0xd')),'maxCommentCharsWhenCollapsed':_0x186dc1[_0x11d0('0x59')](_0x11d0('0x9')),'formatDateTime':_0x32e184(_0x186dc1[_0x11d0('0x59')](_0x11d0('0x24'))),'CommentView':_0x186dc1[_0x11d0('0x59')]('comments')['CommentView'],'CommentsListView':_0x5105b4,'CommentThreadInputView':_0x4b213b}),_0x547f9f[_0x11d0('0x2e')]['on'](_0x11d0('0x23'),()=>{_0x35de1f[_0x11d0('0x3b')][_0x11d0('0x68')][_0x11d0('0x4b')]();}),_0x547f9f[_0x11d0('0x1e')]['on'](_0x11d0('0x23'),()=>{_0x35de1f[_0x11d0('0x3b')][_0x11d0('0x68')]['focus']();}),_0x3c7b38=_0x44a9ee[_0x11d0('0x4d')](this[_0x11d0('0x46')][_0x11d0('0x24')],_0x547f9f),_0x3c7b38['bind'](_0x11d0('0x39'))['to'](_0x547f9f,'isDirty'),_0x3c7b38[_0x11d0('0x3a')](_0x11d0('0x54'))['to'](_0x547f9f),_0x3c7b38[_0x11d0('0x3a')](_0x11d0('0x28'))['to'](_0x547f9f,_0x11d0('0x28'),_0x11b978=>'suggestion-'+_0x11b978),this['_annotationViews'][_0x11d0('0x32')](_0x4c960d['id'],_0x3c7b38));const _0xc7d8bf=_0x4bef0a[_0x11d0('0x2')](_0x4c960d[_0x11d0('0x14')],_0x547f9f),_0x54f9cd=new _0x52ca5b(_0x35de1f,_0x4c960d,_0x547f9f,_0xc7d8bf),_0x4d5d5e=_0x4c960d['getAllAdjacentSuggestions']()['filter'](_0x4240b2=>_0x4240b2[_0x11d0('0x62')]);_0x547f9f[_0x11d0('0x1d')]=_0x35de1f['plugins']['get'](_0x11d0('0x2b'))[_0x11d0('0x40')]['getDescriptions'](_0x4d5d5e),this[_0x11d0('0x5e')][_0x11d0('0x32')](_0x4c960d,_0x54f9cd),this['_viewToController'][_0x11d0('0x32')](_0x547f9f,_0x54f9cd);const _0x2e24d3=_0x44a9ee[_0x11d0('0x21')]({'view':_0x3c7b38,'target':()=>{const _0x167dd1=[],_0x2bed70=_0x4c960d[_0x11d0('0x6b')]()[_0x11d0('0x8')](_0x451bfa=>_0x451bfa[_0x11d0('0x62')]);for(const _0x124122 of _0x2bed70)_0x167dd1[_0x11d0('0x22')](..._0x124122[_0x11d0('0xb')]());return _0x240d7a(_0x35de1f[_0x11d0('0x3b')],_0x167dd1);},'type':()=>_0x11d0('0x1')+_0x54f9cd['view'][_0x11d0('0x28')]});_0x4bef0a[_0x11d0('0x55')](_0x547f9f,_0x2e24d3),_0x44a9ee[_0x11d0('0x44')](_0x2e24d3),_0x2f258c['registerAnnotation'](_0x2e24d3);}['_destroyController'](_0x2d8791){const _0x228e03=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')]('CommentsRepository'),_0x8c2f9=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x28433c=this[_0x11d0('0x5e')]['get'](_0x2d8791),_0xaf5c50=_0x28433c[_0x11d0('0x68')],_0x38a0fb=_0x8c2f9['getByInnerView'](_0xaf5c50);_0x228e03[_0x11d0('0x6a')](_0xaf5c50),_0x38a0fb&&_0x8c2f9[_0x11d0('0x60')](_0x38a0fb),this[_0x11d0('0x5e')][_0x11d0('0x5')](_0x2d8791),this['_viewToController'][_0x11d0('0x5')](_0xaf5c50),_0x28433c[_0x11d0('0x64')]();}[_0x11d0('0x5b')](_0x3c0671){if(!_0x3c0671[_0x11d0('0x62')]||!this['_suggestionToController']['has'](_0x3c0671))return;const _0x248762=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2b')),_0x5c7d18=this[_0x11d0('0x5e')][_0x11d0('0x59')](_0x3c0671),_0x287fff=_0x3c0671[_0x11d0('0x6b')]();_0x5c7d18[_0x11d0('0x68')][_0x11d0('0x1d')]=_0x248762[_0x11d0('0x40')][_0x11d0('0x1f')](_0x287fff);}['destroy'](){for(const _0x48bd4d of this[_0x11d0('0x5e')][_0x11d0('0x50')]())this[_0x11d0('0x15')](_0x48bd4d);for(const _0x283d40 of this['_annotationViews'][_0x11d0('0x49')]())_0x283d40[_0x11d0('0x13')]['destroy']();super[_0x11d0('0x64')]();}}
|
|
23
|
+
const _0x14a3=['focus','delete','isInContent','separator','size','keys','getFirstRange','getByInnerView','_annotationViews','reduce','listenTo','_disableComments','locale','suggestionChanged','values','buttonView','destroy','comments.editorConfig','unbind','getAllAdjacentSuggestions','isDirty','has','editor','getSuggestion','Discard\x20all\x20selected\x20suggestions','requires','_createUIButton','CommentView','previous','push','bind','define','execute','config','_handleControllerBuffer','Accept\x20all\x20suggestions','add','length','_viewToController','comments.maxThreadTotalWeight','isOn','_bindAnnotationToEditors','TrackChangesEditing','SuggestionThreadView','clear','getDescriptions','filter','remove','comments','some','descriptionParts','change:previous','getMarkerNames','_handleSuggestionControllerDelayed','_updateController','editing','addSourceCollector','plugins','from','CommentsUI','lowest','stopListening','actionView','value','discardSelectedSuggestions','getRanges','type','getJoined','EditorAnnotations','Discard\x20all\x20suggestions','isMultiRange','trackChanges','arrowView','discardButton','commands','Accept\x20all\x20selected\x20suggestions','get','_destroyController','_suggestionToController','suggestion-','set','acceptButton','createAnnotation','discardAllSuggestions','acceptAllSuggestions','view','trackChanges.disableComments','button','_initializeController','pluginName','change:activeAnnotations','suggestionLoaded','mainView','Annotations','toMany','_descriptionFactory','model','commandName','activeMarkers','_refreshActiveMarkers','isEnabled','head','registerAnnotation','CommentsRepository','comments.maxCommentsWhenCollapsed'];(function(_0x4ef4c1,_0x14a37f){const _0x34bfb6=function(_0x431644){while(--_0x431644){_0x4ef4c1['push'](_0x4ef4c1['shift']());}};_0x34bfb6(++_0x14a37f);}(_0x14a3,0x78));const _0x34bf=function(_0x4ef4c1,_0x14a37f){_0x4ef4c1=_0x4ef4c1-0x0;let _0x34bfb6=_0x14a3[_0x4ef4c1];return _0x34bfb6;};import{Plugin as _0x215801}from'ckeditor5/src/core';import{Collection as _0x5b36d7}from'ckeditor5/src/utils';import{Model as _0x3231d7,SplitButtonView as _0x1af109,createDropdown as _0x196dd1,addListToDropdown as _0x3bab50}from'ckeditor5/src/ui';import{Users as _0x31dd3b,getDateTimeFormatter as _0x48750a,getAllMarkersDomElementsSorted as _0x23ad5c}from'ckeditor5-collaboration/src/collaboration-core';import _0x43c73a from'./trackchangesediting';import _0x6fd6e2 from'./ui/suggestioncontroller';import _0x6f8056 from'./ui/view/suggestionthreadview';import{getTranslation as _0x570380}from'./utils/common-translations';import _0x2f1a9a from'../theme/icons/track-changes.svg';export default class d extends _0x215801{static get[_0x34bf('0xa')](){return[_0x43c73a,_0x31dd3b,'CommentsRepository',_0x34bf('0x4e'),_0x34bf('0x35')];}static get[_0x34bf('0x4a')](){return'TrackChangesUI';}constructor(_0x22cd31){super(_0x22cd31),this[_0x34bf('0x3f')]=new Map(),this[_0x34bf('0x17')]=new Map(),this[_0x34bf('0x62')]=new Map(),this[_0x34bf('0x13')]=new Map();const _0x56b7ba=this[_0x34bf('0x7')][_0x34bf('0x12')];_0x56b7ba['define']('trackChanges.SuggestionThreadView',_0x6f8056),_0x56b7ba[_0x34bf('0x10')](_0x34bf('0x47'),!0x1),this[_0x34bf('0x65')]=_0x56b7ba['get'](_0x34bf('0x47'));}[_0x34bf('0x26')](_0x5d729f,_0x496bb8){0x0===this[_0x34bf('0x13')][_0x34bf('0x5e')]&&setTimeout(()=>{for(const [_0x454152,_0xce4028]of this[_0x34bf('0x13')]){const _0x48593c=this[_0x34bf('0x3f')]['has'](_0x454152);_0x48593c||_0xce4028?_0x48593c&&_0xce4028&&this[_0x34bf('0x3e')](_0x454152):this[_0x34bf('0x49')](_0x454152);}this['editor'][_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x35'))['refreshSelectedViews'](),this[_0x34bf('0x54')](),this['_handleControllerBuffer'][_0x34bf('0x1d')]();},0xa),this[_0x34bf('0x13')][_0x34bf('0x41')](_0x5d729f,_0x496bb8);}['init'](){const _0x1be094=this[_0x34bf('0x7')],_0xc0c198=_0x1be094[_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x1b')),_0x445c5d=_0x1be094[_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x4e')),_0x14cb86=_0x1be094[_0x34bf('0x2a')]['get'](_0x34bf('0x35')),_0x2875dc=_0x1be094[_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x58'));_0x1be094['ui']['componentFactory'][_0x34bf('0x15')](_0x34bf('0x38'),_0x334a42=>this[_0x34bf('0xb')](_0x334a42)),_0x14cb86[_0x34bf('0x29')](()=>{const _0x1e53b2=[];for(const [_0x1a09fe,_0x58d022]of Array[_0x34bf('0x2b')](this[_0x34bf('0x3f')])){const _0x1b96d6=_0x1a09fe[_0x34bf('0x4')](),_0x1b7473=[];for(const _0x303e92 of _0x1b96d6){if(!_0x303e92['isInContent'])continue;if(_0x303e92[_0x34bf('0x37')]){_0x1b7473[_0x34bf('0xe')](..._0x303e92[_0x34bf('0x32')]());continue;}const _0x1573ca=_0x303e92[_0x34bf('0x60')]();if(_0x1b7473[_0x34bf('0x16')]>0x0){const _0x13499b=_0x1b7473[0x0][_0x34bf('0x34')](_0x1573ca);if(_0x13499b){_0x1b7473[0x0]=_0x13499b;continue;}}_0x1b7473[_0x34bf('0xe')](_0x1573ca);}_0x1e53b2[_0x34bf('0xe')]([_0x58d022['view'],_0x1b7473]);}return _0x1e53b2;}),this['listenTo'](_0xc0c198,_0x34bf('0x4c'),(_0x300fbc,_0x324d94)=>{this[_0x34bf('0x64')](_0x324d94,_0x34bf('0x24'),(_0x16c607,_0x571e4f,_0x457761,_0x24c85a)=>{_0x324d94[_0x34bf('0x5c')]&&(null==_0x457761?(this[_0x34bf('0x27')](_0x24c85a[_0x34bf('0x56')]),this[_0x34bf('0x26')](_0x324d94,!0x1)):(this[_0x34bf('0x27')](_0x457761['head']),null==_0x24c85a&&this[_0x34bf('0x26')](_0x324d94,!0x0)));}),null!==_0x324d94[_0x34bf('0xd')]?this[_0x34bf('0x27')](_0x324d94[_0x34bf('0x56')]):this[_0x34bf('0x26')](_0x324d94,!0x1);}),this['listenTo'](_0xc0c198,'suggestionUnloaded',(_0x4d5f5e,_0x2ae818,_0x32d8af)=>{this[_0x34bf('0x2e')](_0x2ae818,_0x34bf('0x24')),this[_0x34bf('0x13')]['delete'](_0x2ae818),this['_suggestionToController'][_0x34bf('0x6')](_0x2ae818)&&this['_destroyController'](_0x2ae818),_0x32d8af&&this['_updateController'](_0x32d8af[_0x34bf('0x56')]);}),this[_0x34bf('0x64')](_0xc0c198,_0x34bf('0x67'),(_0x3730f8,_0x403d11)=>{this['_updateController'](_0x403d11);}),this[_0x34bf('0x64')](_0x445c5d,_0x34bf('0x4b'),()=>{this['_refreshActiveMarkers']();}),this[_0x34bf('0x64')](_0x2875dc,'addComment',(_0x2fd7f4,{threadId:_0x5c2686,isFromAdapter:_0x490e88})=>{if(_0x490e88||!_0xc0c198['hasSuggestion'](_0x5c2686))return;const _0x2332d1=_0xc0c198[_0x34bf('0x8')](_0x5c2686);this['_suggestionToController'][_0x34bf('0x3d')](_0x2332d1)[_0x34bf('0x46')]['focus']();},{'priority':_0x34bf('0x2d')});}[_0x34bf('0x54')](){const _0x1ece8a=this[_0x34bf('0x7')][_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x4e')),_0x335f75=this['editor'][_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x1b')),_0x4cbb50=Array['from'](_0x1ece8a['activeAnnotations'],_0x496358=>_0x496358['innerView'])[_0x34bf('0x1f')](_0x5312db=>this[_0x34bf('0x17')][_0x34bf('0x6')](_0x5312db)),_0x3680b0=[];for(const _0x45ac9a of _0x4cbb50){const _0x583eca=this[_0x34bf('0x17')][_0x34bf('0x3d')](_0x45ac9a)[_0x34bf('0x51')][_0x34bf('0x4')]();_0x3680b0[_0x34bf('0xe')](..._0x583eca[_0x34bf('0x63')]((_0x5ac680,_0x28d3b3)=>[..._0x5ac680,..._0x28d3b3[_0x34bf('0x25')]()],[]));}_0x335f75[_0x34bf('0x53')]=_0x3680b0;}[_0x34bf('0xb')](_0xbc930){const _0x26f3db=_0x196dd1(_0xbc930,_0x1af109),_0x4e7c8c=this['editor']['commands'][_0x34bf('0x3d')](_0x34bf('0x38')),_0x126db3=_0x570380(_0xbc930,'Track\x20changes');_0x26f3db[_0x34bf('0x0')][_0x34bf('0x41')]({'tooltip':_0x126db3,'label':_0x126db3,'icon':_0x2f1a9a}),_0x26f3db[_0x34bf('0x0')]['bind'](_0x34bf('0x19'))['to'](_0x4e7c8c,_0x34bf('0x30')),_0x26f3db['buttonView']['on'](_0x34bf('0x11'),()=>{_0x4e7c8c[_0x34bf('0x11')](),this[_0x34bf('0x7')][_0x34bf('0x28')]['view']['focus']();});const _0x479abf=new _0x5b36d7(),_0x5d95e4=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x126db3,'commandName':'trackChanges'}},{'type':_0x34bf('0x5d')},{'type':_0x34bf('0x48'),'model':{'withText':!0x0,'label':_0x570380(_0xbc930,_0x34bf('0x14')),'commandName':_0x34bf('0x45')}},{'type':_0x34bf('0x48'),'model':{'withText':!0x0,'label':_0x570380(_0xbc930,_0x34bf('0x3c')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x34bf('0x48'),'model':{'withText':!0x0,'label':_0x570380(_0xbc930,_0x34bf('0x36')),'commandName':_0x34bf('0x44')}},{'type':'button','model':{'withText':!0x0,'label':_0x570380(_0xbc930,_0x34bf('0x9')),'commandName':_0x34bf('0x31')}}];for(const _0x56148c of _0x5d95e4){let _0x15cb24={'type':_0x34bf('0x5d')};if(_0x56148c[_0x34bf('0x51')]){const _0x5aff15=new _0x3231d7(_0x56148c[_0x34bf('0x51')]),_0x2c86ad=this[_0x34bf('0x7')][_0x34bf('0x3b')][_0x34bf('0x3d')](_0x5aff15[_0x34bf('0x52')]);_0x5aff15[_0x34bf('0xf')](_0x34bf('0x19'),_0x34bf('0x55'))['to'](_0x2c86ad,'value',_0x34bf('0x55')),_0x15cb24={'type':_0x56148c[_0x34bf('0x33')],'model':_0x5aff15};}_0x479abf[_0x34bf('0x15')](_0x15cb24);}_0x3bab50(_0x26f3db,_0x479abf);const _0x7cd279=_0x5d95e4[_0x34bf('0x1f')](_0x3df3a0=>null!=_0x3df3a0[_0x34bf('0x51')])['map'](_0x4d1d25=>this[_0x34bf('0x7')][_0x34bf('0x3b')][_0x34bf('0x3d')](_0x4d1d25['model'][_0x34bf('0x52')])),_0x189e2d=_0x26f3db['buttonView'];return _0x189e2d[_0x34bf('0x2f')][_0x34bf('0x3')]('isEnabled'),_0x189e2d['arrowView']['unbind'](_0x34bf('0x55')),_0x189e2d[_0x34bf('0x2f')][_0x34bf('0xf')](_0x34bf('0x55'))['to'](_0x4e7c8c,_0x34bf('0x55')),_0x189e2d[_0x34bf('0x39')][_0x34bf('0xf')](_0x34bf('0x55'))[_0x34bf('0x4f')](_0x7cd279,'isEnabled',(..._0x215972)=>_0x215972[_0x34bf('0x22')](_0x1a049e=>_0x1a049e)),_0x26f3db['on'](_0x34bf('0x11'),_0x4a429c=>{this['editor'][_0x34bf('0x11')](_0x4a429c['source'][_0x34bf('0x52')]),this['editor'][_0x34bf('0x28')][_0x34bf('0x46')][_0x34bf('0x5a')]();}),_0x26f3db;}[_0x34bf('0x49')](_0x388fcf){const _0x23c679=this['editor'],_0x233ef0=_0x23c679[_0x34bf('0x12')],_0x2b9519=_0x23c679['plugins'][_0x34bf('0x3d')](_0x34bf('0x4e')),_0x507fa2=_0x23c679[_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x58')),_0x413b98=_0x23c679[_0x34bf('0x2a')]['get']('EditorAnnotations'),_0x5ab403=_0x23c679[_0x34bf('0x2a')][_0x34bf('0x3d')](_0x31dd3b)['me'],_0x1fca25=_0x233ef0['get'](_0x34bf('0x38'))[_0x34bf('0x1c')],{CommentsListView:_0x13323c,CommentThreadInputView:_0x151b30}=_0x23c679['plugins'][_0x34bf('0x3d')](_0x34bf('0x2c'));let _0x11dae7,_0x5e5d91;this[_0x34bf('0x62')][_0x34bf('0x6')](_0x388fcf['id'])?(_0x5e5d91=this[_0x34bf('0x62')][_0x34bf('0x3d')](_0x388fcf['id']),_0x11dae7=_0x5e5d91[_0x34bf('0x4d')]):(_0x11dae7=new _0x1fca25(_0x23c679[_0x34bf('0x66')],_0x388fcf,_0x5ab403,{'disableComments':this['_disableComments'],'editorConfig':_0x233ef0[_0x34bf('0x3d')](_0x34bf('0x2')),'maxCommentsWhenCollapsed':_0x233ef0[_0x34bf('0x3d')](_0x34bf('0x59')),'maxThreadTotalWeight':_0x233ef0[_0x34bf('0x3d')](_0x34bf('0x18')),'maxCommentCharsWhenCollapsed':_0x233ef0[_0x34bf('0x3d')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x48750a(_0x233ef0[_0x34bf('0x3d')](_0x34bf('0x66'))),'CommentView':_0x233ef0[_0x34bf('0x3d')](_0x34bf('0x21'))[_0x34bf('0xc')],'CommentsListView':_0x13323c,'CommentThreadInputView':_0x151b30}),_0x11dae7[_0x34bf('0x42')]['on'](_0x34bf('0x11'),()=>{_0x23c679['editing'][_0x34bf('0x46')][_0x34bf('0x5a')]();}),_0x11dae7[_0x34bf('0x3a')]['on'](_0x34bf('0x11'),()=>{_0x23c679[_0x34bf('0x28')][_0x34bf('0x46')][_0x34bf('0x5a')]();}),_0x5e5d91=_0x2b9519['createAnnotationView'](this[_0x34bf('0x7')][_0x34bf('0x66')],_0x11dae7),_0x5e5d91['bind'](_0x34bf('0x5'))['to'](_0x11dae7,_0x34bf('0x5')),_0x5e5d91[_0x34bf('0xf')]('length')['to'](_0x11dae7),_0x5e5d91[_0x34bf('0xf')]('type')['to'](_0x11dae7,_0x34bf('0x33'),_0x27a5d4=>_0x34bf('0x40')+_0x27a5d4),this['_annotationViews'][_0x34bf('0x41')](_0x388fcf['id'],_0x5e5d91));const _0x158fb2=_0x507fa2['createCommentThreadController'](_0x388fcf['commentThread'],_0x11dae7),_0x1a4446=new _0x6fd6e2(_0x23c679,_0x388fcf,_0x11dae7,_0x158fb2),_0x24f1f3=_0x388fcf[_0x34bf('0x4')]()[_0x34bf('0x1f')](_0x797993=>_0x797993[_0x34bf('0x5c')]);_0x11dae7[_0x34bf('0x23')]=_0x23c679['plugins']['get']('TrackChangesEditing')[_0x34bf('0x50')][_0x34bf('0x1e')](_0x24f1f3),this[_0x34bf('0x3f')][_0x34bf('0x41')](_0x388fcf,_0x1a4446),this[_0x34bf('0x17')][_0x34bf('0x41')](_0x11dae7,_0x1a4446);const _0x5e481c=_0x2b9519[_0x34bf('0x43')]({'view':_0x5e5d91,'target':()=>{const _0x13b13b=[],_0xf2de65=_0x388fcf[_0x34bf('0x4')]()[_0x34bf('0x1f')](_0x4dff2f=>_0x4dff2f[_0x34bf('0x5c')]);for(const _0x39f36a of _0xf2de65)_0x13b13b[_0x34bf('0xe')](..._0x39f36a['getMarkers']());return _0x23ad5c(_0x23c679[_0x34bf('0x28')],_0x13b13b);},'type':()=>_0x34bf('0x40')+_0x1a4446[_0x34bf('0x46')]['type']});_0x507fa2[_0x34bf('0x1a')](_0x11dae7,_0x5e481c),_0x2b9519[_0x34bf('0x15')](_0x5e481c),_0x413b98[_0x34bf('0x57')](_0x5e481c);}[_0x34bf('0x3e')](_0x345924){const _0x28cfd9=this[_0x34bf('0x7')][_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x58')),_0x15b335=this['editor'][_0x34bf('0x2a')][_0x34bf('0x3d')](_0x34bf('0x4e')),_0x1b9fdd=this[_0x34bf('0x3f')][_0x34bf('0x3d')](_0x345924),_0x3e95c6=_0x1b9fdd[_0x34bf('0x46')],_0x3b69dc=_0x15b335[_0x34bf('0x61')](_0x3e95c6);_0x28cfd9['_unbindEditors'](_0x3e95c6),_0x3b69dc&&_0x15b335[_0x34bf('0x20')](_0x3b69dc),this['_suggestionToController']['delete'](_0x345924),this[_0x34bf('0x17')][_0x34bf('0x5b')](_0x3e95c6),_0x1b9fdd[_0x34bf('0x1')]();}[_0x34bf('0x27')](_0x569be8){if(!_0x569be8['isInContent']||!this['_suggestionToController'][_0x34bf('0x6')](_0x569be8))return;const _0x5fd338=this[_0x34bf('0x7')][_0x34bf('0x2a')][_0x34bf('0x3d')]('TrackChangesEditing'),_0x3b895b=this[_0x34bf('0x3f')][_0x34bf('0x3d')](_0x569be8),_0x1f497c=_0x569be8[_0x34bf('0x4')]();_0x3b895b[_0x34bf('0x46')][_0x34bf('0x23')]=_0x5fd338[_0x34bf('0x50')][_0x34bf('0x1e')](_0x1f497c);}[_0x34bf('0x1')](){for(const _0x1a798e of this[_0x34bf('0x3f')][_0x34bf('0x5f')]())this[_0x34bf('0x3e')](_0x1a798e);for(const _0x57260d of this['_annotationViews'][_0x34bf('0x68')]())_0x57260d[_0x34bf('0x4d')][_0x34bf('0x1')]();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cdc=['_removePendingAction','_pendingAction','acceptSuggestion','canDiscard','canEditAt','_discardCommand','isEnabled','commentThreadController','add','view','getRanges','PENDING_ACTION_SUGGESTION','remove','canAccept','listenTo','model','PendingActions','isDirty','get','discardSuggestion','_acceptCommand','_editor','change:isDirty','locale','plugins','execute','unbind','_setPendingAction','destroy','stopListening','bind'];(function(_0x3d3c0c,_0x3cdc74){const _0x1b1a43=function(_0x34d89d){while(--_0x34d89d){_0x3d3c0c['push'](_0x3d3c0c['shift']());}};_0x1b1a43(++_0x3cdc74);}(_0x3cdc,0x165));const _0x1b1a=function(_0x3d3c0c,_0x3cdc74){_0x3d3c0c=_0x3d3c0c-0x0;let _0x1b1a43=_0x3cdc[_0x3d3c0c];return _0x1b1a43;};import{ObservableMixin as _0x5817e6}from'ckeditor5/src/utils';import{getTranslation as _0x5af9bc}from'../utils/common-translations';export default class Qt extends _0x5817e6(){constructor(_0x2f2e73,_0x62132a,_0x55f8e8,_0x4d6f91){super(),this[_0x1b1a('0x1e')]=_0x62132a,this[_0x1b1a('0x18')]=_0x55f8e8,this[_0x1b1a('0x16')]=_0x4d6f91,this[_0x1b1a('0x5')]=_0x2f2e73,this[_0x1b1a('0x4')]=_0x2f2e73['commands'][_0x1b1a('0x2')]('acceptSuggestion'),this[_0x1b1a('0x14')]=_0x2f2e73['commands'][_0x1b1a('0x2')](_0x1b1a('0x3')),this['view']['bind'](_0x1b1a('0x15'))['to'](this[_0x1b1a('0x4')],this[_0x1b1a('0x14')],(_0x595758,_0x4ab9a6)=>_0x595758||_0x4ab9a6),this[_0x1b1a('0x18')]['bind']('canAccept')['to'](this[_0x1b1a('0x4')],'isEnabled',_0x3fb4f2=>_0x3fb4f2&&this[_0x1b1a('0x5')][_0x1b1a('0x1e')][_0x1b1a('0x13')](_0x62132a[_0x1b1a('0x19')]())),this[_0x1b1a('0x18')][_0x1b1a('0xe')](_0x1b1a('0x12'))['to'](this[_0x1b1a('0x14')],'isEnabled',_0x47b17d=>_0x47b17d&&this[_0x1b1a('0x5')][_0x1b1a('0x1e')][_0x1b1a('0x13')](_0x62132a[_0x1b1a('0x19')]())),this[_0x1b1a('0x10')]=null,_0x55f8e8[_0x1b1a('0x1')]&&this[_0x1b1a('0xb')](),this[_0x1b1a('0x1d')](_0x55f8e8,_0x1b1a('0x11'),()=>this[_0x1b1a('0x11')]()),this[_0x1b1a('0x1d')](_0x55f8e8,_0x1b1a('0x3'),()=>this[_0x1b1a('0x3')]()),this[_0x1b1a('0x1d')](_0x55f8e8,_0x1b1a('0x6'),()=>{_0x55f8e8[_0x1b1a('0x1')]?this[_0x1b1a('0xb')]():this['_removePendingAction']();});}[_0x1b1a('0x11')](){this[_0x1b1a('0x4')][_0x1b1a('0x9')](this[_0x1b1a('0x1e')]['id']);}[_0x1b1a('0x3')](){this['_discardCommand'][_0x1b1a('0x9')](this['model']['id']);}[_0x1b1a('0xc')](){this[_0x1b1a('0x18')]['unbind']('isEnabled'),this[_0x1b1a('0x18')]['unbind'](_0x1b1a('0x1c')),this[_0x1b1a('0x18')][_0x1b1a('0xa')](_0x1b1a('0x12')),this[_0x1b1a('0xd')](),this['commentThreadController'][_0x1b1a('0xc')](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x32af96=_0x5af9bc(this[_0x1b1a('0x5')][_0x1b1a('0x7')],_0x1b1a('0x1a'));this[_0x1b1a('0x10')]=this[_0x1b1a('0x5')][_0x1b1a('0x8')][_0x1b1a('0x2')](_0x1b1a('0x0'))[_0x1b1a('0x17')](_0x32af96);}[_0x1b1a('0xf')](){null!==this[_0x1b1a('0x10')]&&this[_0x1b1a('0x5')][_0x1b1a('0x8')][_0x1b1a('0x2')](_0x1b1a('0x0'))[_0x1b1a('0x1b')](this[_0x1b1a('0x10')]),this[_0x1b1a('0x10')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41f8=['_createCommentViews','showInput','locale','cancel','addComment','CommentView','_localUser','isEnabled','hasDirtyComment','focus','_config','canDiscard','removeComment','set','commentInputView','length','commentThread','delegate','fire','isReadOnly','editor','_model','authoredAt','destroy','_createCommentThreadInputView','commentsListView','commentThreadInputView','disabledSubmit','updateComment','value','isActive','isDirty','bind','descriptionParts'];(function(_0x10e553,_0x41f80a){const _0x38577c=function(_0x3a85f0){while(--_0x3a85f0){_0x10e553['push'](_0x10e553['shift']());}};_0x38577c(++_0x41f80a);}(_0x41f8,0xab));const _0x3857=function(_0x10e553,_0x41f80a){_0x10e553=_0x10e553-0x0;let _0x38577c=_0x41f8[_0x10e553];return _0x38577c;};import{View as _0x6b3e06}from'ckeditor5/src/ui';export default class si extends _0x6b3e06{constructor(_0x59b49a,_0x3cf086,_0x2331c5,_0x38f05d){super(_0x59b49a),this['commentsListView']=null,this[_0x3857('0x19')]=null,this['set'](_0x3857('0x1d'),!0x1),this[_0x3857('0xc')](_0x3857('0x15'),_0x3cf086[_0x3857('0x15')]),this[_0x3857('0x1f')](_0x3857('0x15'))['to'](_0x3cf086),this[_0x3857('0xc')](_0x3857('0x20'),[]),this[_0x3857('0xc')](_0x3857('0x1e'),!0x1),this['set'](_0x3857('0x6'),!0x1),this['set']('canAccept',!0x1),this[_0x3857('0xc')](_0x3857('0xa'),!0x1),this[_0x3857('0x14')]=_0x3cf086,this[_0x3857('0x5')]=_0x2331c5,this[_0x3857('0x9')]=_0x38f05d,_0x38f05d['disableComments']?this[_0x3857('0xc')](_0x3857('0xe'),0x1):this['_createCommentViews']();}[_0x3857('0x8')](){this['element'][_0x3857('0x8')]();}['destroy'](){this[_0x3857('0x18')]&&this['commentsListView'][_0x3857('0x16')](),this[_0x3857('0x19')]&&this[_0x3857('0x19')][_0x3857('0x16')](),super[_0x3857('0x16')]();}[_0x3857('0x21')](){const {CommentsListView:_0x4c5df3}=this['_config'];this[_0x3857('0x18')]=new _0x4c5df3(this[_0x3857('0x1')],this[_0x3857('0x14')][_0x3857('0xf')],Object['assign']({'CommentView':this[_0x3857('0x9')][_0x3857('0x4')]},this[_0x3857('0x9')])),this[_0x3857('0x18')]['delegate'](_0x3857('0xb'))['to'](this),this['commentsListView'][_0x3857('0x10')](_0x3857('0x1b'))['to'](this),this['commentsListView'][_0x3857('0x1f')](_0x3857('0x1d'))['to'](this),this[_0x3857('0xc')](_0x3857('0xe'),this[_0x3857('0x18')][_0x3857('0xe')]+0x1),this[_0x3857('0x1f')](_0x3857('0xe'))['to'](this['commentsListView'],'length',_0x5b09d3=>_0x5b09d3+0x1),this[_0x3857('0x19')]=this['_createCommentThreadInputView'](),this['on'](_0x3857('0xb'),()=>this[_0x3857('0x8')]()),this[_0x3857('0x1f')](_0x3857('0x1e'))['to'](this[_0x3857('0x18')],_0x3857('0x7'),this[_0x3857('0x19')][_0x3857('0xd')],'value',(_0x4af6a6,_0x54e6e9)=>_0x4af6a6||!!_0x54e6e9);}[_0x3857('0x17')](){const {CommentThreadInputView:_0x3c2def}=this['_config'],_0x5c5b4b=new _0x3c2def(this[_0x3857('0x1')],this[_0x3857('0x5')],this[_0x3857('0x9')]['editorConfig']),_0x3de0cf=_0x5c5b4b[_0x3857('0xd')];return _0x5c5b4b[_0x3857('0x1f')](_0x3857('0x0'))['to'](this,_0x3857('0x1d'),this[_0x3857('0x14')][_0x3857('0xf')],_0x3857('0x12'),_0x3de0cf,_0x3857('0x1c'),(_0x53243d,_0x482d31,_0x5894e1)=>!!_0x5894e1||_0x53243d&&!_0x482d31),_0x3de0cf['on']('submit',(_0x11aa58,_0x5e8694)=>{this[_0x3857('0x11')](_0x3857('0x3'),_0x5e8694),_0x3de0cf[_0x3857('0x13')]['setData']('');}),_0x3de0cf['on'](_0x3857('0x2'),()=>this['focus']()),_0x3de0cf[_0x3857('0x1f')](_0x3857('0x1a'))['to'](this[_0x3857('0x14')][_0x3857('0xf')],_0x3857('0x12')),_0x5c5b4b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3829=['value','ck-suggestion__actions','canDiscard','ck-suggestion__info-name','isEnabled','bind','ck-suggestion__user','discardSuggestion','ck-suggestion__main','EXTERNAL_AVATAR','innerText','isActive','content','discardButton','ck-annotation__actions','fire','importWord','acceptButton','ck-comment__external','_createButton','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','disableComments','ck-suggestion--disabled-comments','editorReady','set','span','<span\x20class=\x22ck-suggestion-type\x22>','delegate','ck-suggestion__info','_descriptionElement','userView','innerHTML','setTemplate','formatDateTime','locale','push','ck-annotation__main','source','commentThreadInputView','EXTERNAL_IMPORT_WORD_SUGGESTION','getExternalSuggestionNote','bindTemplate','ck-annotation__info-name','getTemplate','ck-suggestion','ck-comment__info-time','_config','commentsListView','ck-suggestion--accept','author','attributes','creator','name','color','ck-annotation__info','join','render','time','element','ck-suggestion-wrapper','commentThread','ck-suggestion-wrapper--active','Discard\x20suggestion','getUserViewNotificationText','isExternal','ck-annotation__content-wrapper','authoredAt','check','Accept\x20suggestion','</span>','_model','@external','acceptSuggestion','\x22></span>','EXTERNAL_IMPORT_WORD_AVATAR','type','ck-annotation','div','editorDestroyed','split','ck-annotation__info-time','extendTemplate','description','descriptionParts','<p>'];(function(_0x5a09f1,_0x382987){const _0xa8b6ef=function(_0x196ad8){while(--_0x196ad8){_0x5a09f1['push'](_0x5a09f1['shift']());}};_0xa8b6ef(++_0x382987);}(_0x3829,0x1de));const _0xa8b6=function(_0x5a09f1,_0x382987){_0x5a09f1=_0x5a09f1-0x0;let _0xa8b6ef=_0x3829[_0x5a09f1];return _0xa8b6ef;};import{getTranslation as _0x3d49b8}from'../../utils/common-translations';import{default as _0x5c230f}from'./basesuggestionthreadview';import{ButtonView as _0xb48877}from'ckeditor5/src/ui';import{icons as _0x1d4fe4}from'ckeditor5/src/core';import{trimHtml as _0x772657,UserView as _0xf421c6}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0x5c230f{constructor(_0x5166e5,_0x553ecf,_0x5dbeb9,_0xce98f8){super(_0x5166e5,_0x553ecf,_0x5dbeb9,_0xce98f8),this[_0xa8b6('0x38')](_0xa8b6('0x16'),''),this[_0xa8b6('0x25')]('type')['to'](this,_0xa8b6('0x1e'),_0x3a0e31=>_0x3a0e31&&_0x3a0e31[0x0]?_0x3a0e31[0x0][_0xa8b6('0x16')]:''),this[_0xa8b6('0x25')](_0xa8b6('0x1d'))['to'](this,'descriptionParts',this,_0xa8b6('0x2b'),(_0x5b6157,_0x533f1d)=>{let _0x36c982='';for(const _0x86e119 of _0x5b6157)_0x36c982+=_0xa8b6('0x1f')+ci(_0x86e119[_0xa8b6('0x2c')],_0x86e119[_0xa8b6('0x0')])+'</p>';return _0x533f1d?_0x36c982:_0x772657(_0x36c982,{'limit':0x8c});}),this[_0xa8b6('0x3d')]=null,this[_0xa8b6('0x31')]=this[_0xa8b6('0x33')](_0x3d49b8(_0x5166e5,_0xa8b6('0xf')),_0x1d4fe4[_0xa8b6('0xe')],_0xa8b6('0x50'),_0xa8b6('0x13'),'sw'),this[_0xa8b6('0x31')][_0xa8b6('0x25')](_0xa8b6('0x24'))['to'](this,'canAccept'),this[_0xa8b6('0x2d')]=this[_0xa8b6('0x33')](_0x3d49b8(_0x5166e5,_0xa8b6('0x9')),_0x1d4fe4['cancel'],'ck-suggestion--discard',_0xa8b6('0x27'),'sw'),this[_0xa8b6('0x2d')]['bind'](_0xa8b6('0x24'))['to'](this,_0xa8b6('0x22')),this[_0xa8b6('0x3e')]=new _0xf421c6(_0x5166e5,this[_0xa8b6('0x11')][_0xa8b6('0x51')],this[_0xa8b6('0xa')]()),this[_0xa8b6('0x3e')][_0xa8b6('0x1c')]({'attributes':{'class':[_0xa8b6('0x26'),'ck-annotation__user']}}),this[_0xa8b6('0x40')](this[_0xa8b6('0x4b')]());}[_0xa8b6('0x4b')](){const _0x3fc950=this[_0xa8b6('0x49')],_0x470725=[{'tag':_0xa8b6('0x18'),'attributes':{'class':[_0xa8b6('0x3c'),_0xa8b6('0x1')]},'children':[{'tag':_0xa8b6('0x39'),'children':[{'text':this[_0xa8b6('0x3e')][_0xa8b6('0x54')]}],'attributes':{'class':[_0xa8b6('0x23'),_0xa8b6('0x4a')]}},{'tag':_0xa8b6('0x4'),'attributes':{'datetime':_0x3fc950['to'](_0xa8b6('0xd')),'class':[_0xa8b6('0x4d'),_0xa8b6('0x1b')]},'children':[{'text':_0x3fc950['to'](_0xa8b6('0xd'),_0x2a376f=>this['_config'][_0xa8b6('0x41')](_0x2a376f))}]}]},{'tag':_0xa8b6('0x18'),'attributes':{'class':[_0xa8b6('0x21'),_0xa8b6('0x2e')]},'children':[this[_0xa8b6('0x31')],this[_0xa8b6('0x2d')]]},{'tag':_0xa8b6('0x18'),'attributes':{'class':[_0xa8b6('0xc')]}}];this['_model'][_0xa8b6('0xb')]&&_0x470725['push']({'tag':_0xa8b6('0x18'),'attributes':{'class':[_0xa8b6('0x32')]},'children':[{'text':this[_0xa8b6('0x48')]()}]});const _0x2c7c6c={'tag':_0xa8b6('0x18'),'attributes':{'class':[_0xa8b6('0x6'),_0x3fc950['if'](_0xa8b6('0x2b'),_0xa8b6('0x8')),_0x3fc950['to'](_0xa8b6('0x16'),_0xeeeffd=>'ck-suggestion-'+_0xeeeffd),this[_0xa8b6('0x4e')][_0xa8b6('0x35')]&&_0xa8b6('0x36')],'data-suggestion-id':this[_0xa8b6('0x11')]['id'],'data-thread-id':this[_0xa8b6('0x11')][_0xa8b6('0x7')]['id'],'data-author-id':this[_0xa8b6('0x11')][_0xa8b6('0x51')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0xa8b6('0x4c'),_0xa8b6('0x17')]},'children':[this[_0xa8b6('0x3e')],{'tag':'div','attributes':{'class':[_0xa8b6('0x28'),_0xa8b6('0x44')]},'children':_0x470725}]}]};return this[_0xa8b6('0x4f')]&&this[_0xa8b6('0x46')]&&(_0x2c7c6c['children'][_0xa8b6('0x43')](this[_0xa8b6('0x4f')],this[_0xa8b6('0x46')]),this[_0xa8b6('0x4f')][_0xa8b6('0x3b')](_0xa8b6('0x37'))['to'](this),this['commentsListView'][_0xa8b6('0x3b')](_0xa8b6('0x19'))['to'](this),this[_0xa8b6('0x46')][_0xa8b6('0x3b')](_0xa8b6('0x37'))['to'](this),this[_0xa8b6('0x46')][_0xa8b6('0x3b')](_0xa8b6('0x19'))['to'](this)),_0x2c7c6c;}[_0xa8b6('0x3')](){super[_0xa8b6('0x3')](),this['_descriptionElement']=this[_0xa8b6('0x5')]['querySelector']('.ck-annotation__content-wrapper'),this[_0xa8b6('0x3d')][_0xa8b6('0x3f')]=this[_0xa8b6('0x1d')],this['on']('change:description',(_0x41b411,_0x3a8bbe,_0x874452)=>{this[_0xa8b6('0x3d')][_0xa8b6('0x3f')]=_0x874452;});}['_createButton'](_0x183a7e,_0x360b21,_0x5d3d72,_0x332fa8,_0x1a2782){const _0x389cbf=new _0xb48877(this[_0xa8b6('0x42')]);return _0x389cbf[_0xa8b6('0x38')]({'label':_0x183a7e,'icon':_0x360b21,'tooltip':!0x0,'tooltipPosition':_0x1a2782}),_0x389cbf[_0xa8b6('0x1c')]({'attributes':{'class':_0x5d3d72}}),_0x389cbf['on']('execute',()=>{this[_0xa8b6('0x2f')](_0x332fa8,this[_0xa8b6('0x11')]['id']);}),_0x389cbf;}[_0xa8b6('0x48')](){return _0xa8b6('0x30')===this[_0xa8b6('0x11')][_0xa8b6('0x52')][_0xa8b6('0x12')][_0xa8b6('0x45')]?_0x3d49b8(this[_0xa8b6('0x42')],_0xa8b6('0x47')):_0x3d49b8(this['locale'],'EXTERNAL_SUGGESTION');}[_0xa8b6('0xa')](){return this['_model'][_0xa8b6('0xb')]?_0xa8b6('0x30')===this[_0xa8b6('0x11')][_0xa8b6('0x52')][_0xa8b6('0x12')][_0xa8b6('0x45')]?_0x3d49b8(this[_0xa8b6('0x42')],_0xa8b6('0x15'),this[_0xa8b6('0x11')][_0xa8b6('0x53')][_0xa8b6('0x54')]):_0x3d49b8(this[_0xa8b6('0x42')],_0xa8b6('0x29'),this[_0xa8b6('0x11')][_0xa8b6('0x53')][_0xa8b6('0x54')]):null;}}function ci(_0x8e7f5d,_0x1f39c7){let _0x25981c='';return _0x25981c+=_0x8e7f5d[_0xa8b6('0x1a')]('*')['map']((_0x43b58c,_0x3af496)=>_0x3af496%0x2!=0x0?_0xa8b6('0x3a')+ri(_0x43b58c)+_0xa8b6('0x10'):ri(_0x43b58c))[_0xa8b6('0x2')](''),_0x1f39c7&&(_0x25981c+=_0xa8b6('0x34')+_0x1f39c7[_0xa8b6('0x20')]+'\x22\x20title=\x22'+_0x1f39c7['title']+_0xa8b6('0x14')),_0x25981c;}function ri(_0x31fd0f){const _0x53a8de=document['createElement'](_0xa8b6('0x39'));return _0x53a8de[_0xa8b6('0x2a')]=_0x31fd0f,_0x53a8de['innerHTML'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x2c2388,_0x5a9d7a,_0x2cc9de){const t=_0x2c2388['t'];switch(_0x5a9d7a){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',_0x2cc9de);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2cc9de);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2cc9de);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2cc9de);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2cc9de);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',_0x2cc9de);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2cc9de);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',_0x2cc9de);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2cc9de);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2cc9de);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2cc9de);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2cc9de);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2cc9de);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2cc9de);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2cc9de);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2cc9de);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2cc9de);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2cc9de);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2cc9de);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2cc9de);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2cc9de);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2cc9de);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2cc9de);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'},_0x2cc9de);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2cc9de);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2cc9de);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2cc9de);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2cc9de);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2cc9de);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'},_0x2cc9de);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2cc9de);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2cc9de);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2cc9de);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2cc9de);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'},_0x2cc9de);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2cc9de);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'},_0x2cc9de);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'},_0x2cc9de);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2cc9de);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'},_0x2cc9de);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2cc9de);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'},_0x2cc9de);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2cc9de);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2cc9de);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'},_0x2cc9de);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'},_0x2cc9de);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 _0x5a9d7a;}}
|
|
23
|
+
export function getTranslation(_0x141fba,_0x4d397a,_0xf9cadc){const t=_0x141fba['t'];switch(_0x4d397a){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',_0xf9cadc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xf9cadc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xf9cadc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xf9cadc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xf9cadc);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',_0xf9cadc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xf9cadc);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',_0xf9cadc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xf9cadc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xf9cadc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xf9cadc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xf9cadc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xf9cadc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xf9cadc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xf9cadc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xf9cadc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xf9cadc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xf9cadc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xf9cadc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xf9cadc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xf9cadc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xf9cadc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xf9cadc);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'},_0xf9cadc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xf9cadc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xf9cadc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xf9cadc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xf9cadc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xf9cadc);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'},_0xf9cadc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xf9cadc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xf9cadc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xf9cadc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xf9cadc);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'},_0xf9cadc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xf9cadc);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'},_0xf9cadc);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'},_0xf9cadc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xf9cadc);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'},_0xf9cadc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xf9cadc);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'},_0xf9cadc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xf9cadc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xf9cadc);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'},_0xf9cadc);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'},_0xf9cadc);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 _0x4d397a;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa23=['end','from','isMultiRange','color','length','isObject','getRanges','add','isIntersecting','createRange','isInContent','value','execute','map','change','createPositionAfter','deletion','createPositionAt','sort','type','replace','isCollapsed','createPositionBefore','start','push'];(function(_0x107140,_0xfa2365){const _0x15e866=function(_0x31ba04){while(--_0x31ba04){_0x107140['push'](_0x107140['shift']());}};_0x15e866(++_0xfa2365);}(_0xfa23,0xa9));const _0x15e8=function(_0x107140,_0xfa2365){_0x107140=_0x107140-0x0;let _0x15e866=_0xfa23[_0x107140];return _0x15e866;};export function normalizeDescription(_0x570a4e){return Array['isArray'](_0x570a4e)||(_0x570a4e=[_0x570a4e]),_0x570a4e[_0x15e8('0x13')](_0x305d65=>{const _0x1eae7c=_0x305d65['content'][_0x15e8('0x1')](/\*/g,''),_0xff6d99=_0x305d65['color']?'\x20[color\x20'+_0x305d65[_0x15e8('0x9')][_0x15e8('0x11')]+']':'';return'['+_0x305d65['type']+']\x20'+_0x1eae7c+_0xff6d99;})['join'](';\x20');}export function sortSuggestions(_0x56ee49){return _0x56ee49[_0x15e8('0x18')]((_0x2292bb,_0x1cfae3)=>_0x15e8('0x16')==_0x2292bb[_0x15e8('0x0')]&&_0x15e8('0x16')!=_0x1cfae3['type']?-0x1:_0x15e8('0x16')!=_0x2292bb[_0x15e8('0x0')]&&_0x15e8('0x16')==_0x1cfae3[_0x15e8('0x0')]?0x1:0x0);}export function getSelectedSuggestions(_0x2ee703,_0x2bbc1e){const _0x4dd8f8=Array[_0x15e8('0x7')](_0x2ee703[_0x15e8('0xc')]()),_0x5ed676=new Set();for(const _0xb4b940 of _0x2bbc1e)if(_0xb4b940[_0x15e8('0x10')])for(const _0x2224f4 of _0x4dd8f8)for(const _0x522c75 of _0xb4b940[_0x15e8('0xc')]())(_0x2224f4[_0x15e8('0xe')](_0x522c75)||_0x2ee703[_0x15e8('0x2')]&&!_0xb4b940[_0x15e8('0x8')]&&_0xb4b940['next']&&_0x522c75[_0x15e8('0x6')]['isTouching'](_0x2224f4[_0x15e8('0x4')]))&&_0x5ed676[_0x15e8('0xd')](_0xb4b940);return _0x5ed676;}export function getRangesOfBlockGroups(_0x2209ed,_0x2be4ea){let _0x5ac5e2,_0x17484c=0x0;const _0x276500=[],_0x14d1f3=_0x2be4ea['schema'];for(;_0x17484c<_0x2209ed[_0x15e8('0xa')];){const _0x34c4dc=_0x2209ed[_0x17484c],_0x105bf8=_0x2209ed[_0x17484c+0x1];_0x5ac5e2||(_0x5ac5e2=_0x2be4ea['createPositionBefore'](_0x34c4dc)),co(_0x2be4ea,_0x34c4dc,_0x105bf8)||(_0x276500[_0x15e8('0x5')](_0x2be4ea[_0x15e8('0xf')](_0x5ac5e2,_0x14d1f3[_0x15e8('0xb')](_0x34c4dc)?_0x2be4ea[_0x15e8('0x15')](_0x34c4dc):_0x2be4ea[_0x15e8('0x17')](_0x34c4dc,_0x15e8('0x6')))),_0x5ac5e2=null),_0x17484c++;}return _0x276500;}function co(_0x184a0e,_0x9fcc79,_0xc038ce){if(!_0xc038ce)return!0x1;const _0x5f57e9=_0x184a0e['createPositionAfter'](_0x9fcc79),_0x1ca2fe=_0x184a0e[_0x15e8('0x3')](_0xc038ce);return _0x5f57e9['isTouching'](_0x1ca2fe);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x4d863d,_0x1cac75,_0x3b4537){for(;_0x3b4537['length'];){const _0x62ec89=_0x3b4537['splice'](0x0,0x64);_0x4d863d[_0x15e8('0x14')](()=>{for(const _0x1f153a of _0x62ec89)_0x1f153a[_0x15e8('0x10')]&&_0x1cac75[_0x15e8('0x12')](_0x1f153a['id']);});}}
|