@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231206.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x195f=['_destroyController','TrackChangesUI','change:activeAnnotations','editing','keys','some','add','filter','separator','value','type','Accept\x20all\x20suggestions','isDirty','pluginName','define','isEnabled','length','editor','buttonView','remove','comments','registerAnnotation','get','Annotations','from','size','locale','_annotationViews','_bindAnnotationToEditors','getAllAdjacentSuggestions','suggestion-','componentFactory','has','Accept\x20all\x20selected\x20suggestions','actionView','suggestionUnloaded','plugins','CommentsRepository','unbind','isOn','EditorAnnotations','_viewToController','push','_handleSuggestionControllerDelayed','isMultiRange','change:previous','_descriptionFactory','comments.maxThreadTotalWeight','trackChanges.SuggestionThreadView','commandName','discardAllSuggestions','_refreshActiveMarkers','isInContent','listenTo','Discard\x20all\x20selected\x20suggestions','Track\x20changes','innerView','trackChanges','_initializeController','destroy','acceptSelectedSuggestions','getJoined','getDescriptions','TrackChangesEditing','discardButton','comments.maxCommentsWhenCollapsed','acceptButton','mainView','focus','stopListening','getSuggestion','init','acceptAllSuggestions','commands','model','values','lowest','toMany','_handleControllerBuffer','getByInnerView','CommentsUI','view','execute','trackChanges.disableComments','discardSelectedSuggestions','_unbindEditors','switchbutton','refreshSelectedViews','source','addSourceCollector','set','activeMarkers','_suggestionToController','requires','arrowView','_updateController','_disableComments','addComment','SuggestionThreadView','descriptionParts','commentThread','createAnnotation','delete','bind','getFirstRange','CommentView','Discard\x20all\x20suggestions','comments.editorConfig','head','button'];(function(_0x58c6dc,_0x195f54){const _0x5bab5e=function(_0x4204d6){while(--_0x4204d6){_0x58c6dc['push'](_0x58c6dc['shift']());}};_0x5bab5e(++_0x195f54);}(_0x195f,0x1d9));const _0x5bab=function(_0x58c6dc,_0x195f54){_0x58c6dc=_0x58c6dc-0x0;let _0x5bab5e=_0x195f[_0x58c6dc];return _0x5bab5e;};import{Plugin as _0x3221e0}from'ckeditor5/src/core';import{Collection as _0x289dbb}from'ckeditor5/src/utils';import{Model as _0x7fcd52,SplitButtonView as _0x19af82,createDropdown as _0x3ac393,addListToDropdown as _0x37e21d}from'ckeditor5/src/ui';import{Users as _0x5f0d7f,getDateTimeFormatter as _0x50226e,getAllMarkersDomElementsSorted as _0x302d69}from'ckeditor5-collaboration/src/collaboration-core';import _0x147ff3 from'./trackchangesediting';import _0x13c1ad from'./ui/suggestioncontroller';import _0x362e7b from'./ui/view/suggestionthreadview';import{getTranslation as _0x57169b}from'./utils/common-translations';import _0x243a82 from'../theme/icons/track-changes.svg';export default class d extends _0x3221e0{static get[_0x5bab('0x3c')](){return[_0x147ff3,_0x5f0d7f,'CommentsRepository',_0x5bab('0x64'),_0x5bab('0x7')];}static get[_0x5bab('0x5a')](){return _0x5bab('0x4e');}constructor(_0x4fdad8){super(_0x4fdad8),this[_0x5bab('0x3b')]=new Map(),this[_0x5bab('0x8')]=new Map(),this['_annotationViews']=new Map(),this[_0x5bab('0x2d')]=new Map();const _0x107222=this[_0x5bab('0x5e')]['config'];_0x107222[_0x5bab('0x5b')](_0x5bab('0xf'),_0x362e7b),_0x107222['define']('trackChanges.disableComments',!0x1),this[_0x5bab('0x3f')]=_0x107222['get'](_0x5bab('0x32'));}[_0x5bab('0xa')](_0x46aab9,_0x329dd7){0x0===this[_0x5bab('0x2d')][_0x5bab('0x66')]&&setTimeout(()=>{for(const [_0x16badd,_0x552e4a]of this['_handleControllerBuffer']){const _0x2a870a=this[_0x5bab('0x3b')][_0x5bab('0x6d')](_0x16badd);_0x2a870a||_0x552e4a?_0x2a870a&&_0x552e4a&&this['_destroyController'](_0x16badd):this[_0x5bab('0x19')](_0x16badd);}this[_0x5bab('0x5e')][_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x7'))[_0x5bab('0x36')](),this[_0x5bab('0x12')](),this['_handleControllerBuffer']['clear']();},0xa),this[_0x5bab('0x2d')][_0x5bab('0x39')](_0x46aab9,_0x329dd7);}[_0x5bab('0x26')](){const _0x3fd465=this[_0x5bab('0x5e')],_0x250eff=_0x3fd465[_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x1e')),_0x33d722=_0x3fd465['plugins'][_0x5bab('0x63')](_0x5bab('0x64')),_0x4e394f=_0x3fd465[_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x7')),_0x25ba6e=_0x3fd465[_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x4'));_0x3fd465['ui'][_0x5bab('0x6c')][_0x5bab('0x53')]('trackChanges',_0x1e07e5=>this['_createUIButton'](_0x1e07e5)),_0x4e394f[_0x5bab('0x38')](()=>{const _0x108568=[];for(const [_0x1d61be,_0x57a4d7]of Array[_0x5bab('0x65')](this['_suggestionToController'])){const _0xcf5e5=_0x1d61be[_0x5bab('0x6a')](),_0x5ea7bf=[];for(const _0x2c1005 of _0xcf5e5){if(!_0x2c1005[_0x5bab('0x13')])continue;if(_0x2c1005[_0x5bab('0xb')]){_0x5ea7bf[_0x5bab('0x9')](..._0x2c1005['getRanges']());continue;}const _0x38c71d=_0x2c1005[_0x5bab('0x47')]();if(_0x5ea7bf['length']>0x0){const _0x4590bf=_0x5ea7bf[0x0][_0x5bab('0x1c')](_0x38c71d);if(_0x4590bf){_0x5ea7bf[0x0]=_0x4590bf;continue;}}_0x5ea7bf['push'](_0x38c71d);}_0x108568[_0x5bab('0x9')]([_0x57a4d7[_0x5bab('0x30')],_0x5ea7bf]);}return _0x108568;}),this[_0x5bab('0x14')](_0x250eff,'suggestionLoaded',(_0xd5bc7f,_0x264e3f)=>{this['listenTo'](_0x264e3f,'change:previous',(_0x3a8e33,_0x37d9f0,_0x382a17,_0x274858)=>{_0x264e3f[_0x5bab('0x13')]&&(null==_0x382a17?(this[_0x5bab('0x3e')](_0x274858[_0x5bab('0x4b')]),this[_0x5bab('0xa')](_0x264e3f,!0x1)):(this[_0x5bab('0x3e')](_0x382a17[_0x5bab('0x4b')]),null==_0x274858&&this[_0x5bab('0xa')](_0x264e3f,!0x0)));}),null!==_0x264e3f['previous']?this['_updateController'](_0x264e3f[_0x5bab('0x4b')]):this[_0x5bab('0xa')](_0x264e3f,!0x1);}),this[_0x5bab('0x14')](_0x250eff,_0x5bab('0x2'),(_0x232e5d,_0x4b4e1d,_0x1c98cb)=>{this[_0x5bab('0x24')](_0x4b4e1d,_0x5bab('0xc')),this[_0x5bab('0x2d')][_0x5bab('0x45')](_0x4b4e1d),this[_0x5bab('0x3b')][_0x5bab('0x6d')](_0x4b4e1d)&&this[_0x5bab('0x4d')](_0x4b4e1d),_0x1c98cb&&this['_updateController'](_0x1c98cb['head']);}),this[_0x5bab('0x14')](_0x250eff,'suggestionChanged',(_0xffc62a,_0x1fb98b)=>{this['_updateController'](_0x1fb98b);}),this[_0x5bab('0x14')](_0x33d722,_0x5bab('0x4f'),()=>{this[_0x5bab('0x12')]();}),this[_0x5bab('0x14')](_0x25ba6e,_0x5bab('0x40'),(_0x323aa9,{threadId:_0x129ae9,isFromAdapter:_0x185334})=>{if(_0x185334||!_0x250eff['hasSuggestion'](_0x129ae9))return;const _0x171d7b=_0x250eff[_0x5bab('0x25')](_0x129ae9);this['_suggestionToController'][_0x5bab('0x63')](_0x171d7b)[_0x5bab('0x30')][_0x5bab('0x23')]();},{'priority':_0x5bab('0x2b')});}['_refreshActiveMarkers'](){const _0x398ae0=this[_0x5bab('0x5e')]['plugins'][_0x5bab('0x63')](_0x5bab('0x64')),_0x32f5cf=this[_0x5bab('0x5e')]['plugins'][_0x5bab('0x63')]('TrackChangesEditing'),_0x4a9414=Array[_0x5bab('0x65')](_0x398ae0['activeAnnotations'],_0x12c1b4=>_0x12c1b4[_0x5bab('0x17')])[_0x5bab('0x54')](_0x2bb542=>this['_viewToController'][_0x5bab('0x6d')](_0x2bb542)),_0x43e734=[];for(const _0x227c78 of _0x4a9414){const _0x4b6851=this[_0x5bab('0x8')][_0x5bab('0x63')](_0x227c78)[_0x5bab('0x29')][_0x5bab('0x6a')]();_0x43e734[_0x5bab('0x9')](..._0x4b6851['reduce']((_0x146f40,_0x27a626)=>[..._0x146f40,..._0x27a626['getMarkerNames']()],[]));}_0x32f5cf[_0x5bab('0x3a')]=_0x43e734;}['_createUIButton'](_0x38c6dd){const _0x549df8=_0x3ac393(_0x38c6dd,_0x19af82),_0x19e2e5=this[_0x5bab('0x5e')][_0x5bab('0x28')][_0x5bab('0x63')](_0x5bab('0x18')),_0x1bec80=_0x57169b(_0x38c6dd,_0x5bab('0x16'));_0x549df8[_0x5bab('0x5f')][_0x5bab('0x39')]({'tooltip':_0x1bec80,'label':_0x1bec80,'icon':_0x243a82}),_0x549df8[_0x5bab('0x5f')][_0x5bab('0x46')](_0x5bab('0x6'))['to'](_0x19e2e5,'value'),_0x549df8['buttonView']['on'](_0x5bab('0x31'),()=>{_0x19e2e5[_0x5bab('0x31')](),this['editor'][_0x5bab('0x50')][_0x5bab('0x30')]['focus']();});const _0x13d3e3=new _0x289dbb(),_0x330426=[{'type':_0x5bab('0x35'),'model':{'withText':!0x0,'label':_0x1bec80,'commandName':_0x5bab('0x18')}},{'type':_0x5bab('0x55')},{'type':'button','model':{'withText':!0x0,'label':_0x57169b(_0x38c6dd,_0x5bab('0x58')),'commandName':_0x5bab('0x27')}},{'type':_0x5bab('0x4c'),'model':{'withText':!0x0,'label':_0x57169b(_0x38c6dd,_0x5bab('0x0')),'commandName':_0x5bab('0x1b')}},{'type':_0x5bab('0x4c'),'model':{'withText':!0x0,'label':_0x57169b(_0x38c6dd,_0x5bab('0x49')),'commandName':_0x5bab('0x11')}},{'type':'button','model':{'withText':!0x0,'label':_0x57169b(_0x38c6dd,_0x5bab('0x15')),'commandName':_0x5bab('0x33')}}];for(const _0x5326a8 of _0x330426){let _0x9999a4={'type':'separator'};if(_0x5326a8[_0x5bab('0x29')]){const _0x9ced19=new _0x7fcd52(_0x5326a8[_0x5bab('0x29')]),_0x32babd=this[_0x5bab('0x5e')]['commands'][_0x5bab('0x63')](_0x9ced19['commandName']);_0x9ced19[_0x5bab('0x46')](_0x5bab('0x6'),_0x5bab('0x5c'))['to'](_0x32babd,_0x5bab('0x56'),_0x5bab('0x5c')),_0x9999a4={'type':_0x5326a8[_0x5bab('0x57')],'model':_0x9ced19};}_0x13d3e3[_0x5bab('0x53')](_0x9999a4);}_0x37e21d(_0x549df8,_0x13d3e3);const _0xdd25bd=_0x330426[_0x5bab('0x54')](_0x21dfde=>null!=_0x21dfde[_0x5bab('0x29')])['map'](_0x22001f=>this[_0x5bab('0x5e')]['commands'][_0x5bab('0x63')](_0x22001f[_0x5bab('0x29')]['commandName'])),_0x3b65a5=_0x549df8[_0x5bab('0x5f')];return _0x3b65a5['actionView'][_0x5bab('0x5')](_0x5bab('0x5c')),_0x3b65a5[_0x5bab('0x3d')]['unbind'](_0x5bab('0x5c')),_0x3b65a5[_0x5bab('0x1')]['bind'](_0x5bab('0x5c'))['to'](_0x19e2e5,_0x5bab('0x5c')),_0x3b65a5[_0x5bab('0x3d')]['bind'](_0x5bab('0x5c'))[_0x5bab('0x2c')](_0xdd25bd,'isEnabled',(..._0x4bb124)=>_0x4bb124[_0x5bab('0x52')](_0x413e6e=>_0x413e6e)),_0x549df8['on'](_0x5bab('0x31'),_0x12d75f=>{this['editor'][_0x5bab('0x31')](_0x12d75f[_0x5bab('0x37')][_0x5bab('0x10')]),this[_0x5bab('0x5e')][_0x5bab('0x50')][_0x5bab('0x30')][_0x5bab('0x23')]();}),_0x549df8;}[_0x5bab('0x19')](_0x284f34){const _0x59a132=this[_0x5bab('0x5e')],_0x2493fa=_0x59a132['config'],_0xf80c7f=_0x59a132[_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x64')),_0x1a77a7=_0x59a132[_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x4')),_0x34bd8e=_0x59a132['plugins'][_0x5bab('0x63')](_0x5bab('0x7')),_0x2ca049=_0x59a132[_0x5bab('0x3')][_0x5bab('0x63')](_0x5f0d7f)['me'],_0xf4e822=_0x2493fa[_0x5bab('0x63')]('trackChanges')[_0x5bab('0x41')],{CommentsListView:_0x5d2869,CommentThreadInputView:_0x3e60eb}=_0x59a132[_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x2f'));let _0x5e3c56,_0x2cafb8;this[_0x5bab('0x68')][_0x5bab('0x6d')](_0x284f34['id'])?(_0x2cafb8=this[_0x5bab('0x68')][_0x5bab('0x63')](_0x284f34['id']),_0x5e3c56=_0x2cafb8['mainView']):(_0x5e3c56=new _0xf4e822(_0x59a132[_0x5bab('0x67')],_0x284f34,_0x2ca049,{'disableComments':this['_disableComments'],'editorConfig':_0x2493fa[_0x5bab('0x63')](_0x5bab('0x4a')),'maxCommentsWhenCollapsed':_0x2493fa[_0x5bab('0x63')](_0x5bab('0x20')),'maxThreadTotalWeight':_0x2493fa[_0x5bab('0x63')](_0x5bab('0xe')),'maxCommentCharsWhenCollapsed':_0x2493fa[_0x5bab('0x63')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x50226e(_0x2493fa[_0x5bab('0x63')](_0x5bab('0x67'))),'CommentView':_0x2493fa[_0x5bab('0x63')](_0x5bab('0x61'))[_0x5bab('0x48')],'CommentsListView':_0x5d2869,'CommentThreadInputView':_0x3e60eb}),_0x5e3c56[_0x5bab('0x21')]['on'](_0x5bab('0x31'),()=>{_0x59a132[_0x5bab('0x50')][_0x5bab('0x30')][_0x5bab('0x23')]();}),_0x5e3c56[_0x5bab('0x1f')]['on']('execute',()=>{_0x59a132['editing'][_0x5bab('0x30')][_0x5bab('0x23')]();}),_0x2cafb8=_0xf80c7f['createAnnotationView'](this['editor'][_0x5bab('0x67')],_0x5e3c56),_0x2cafb8['bind'](_0x5bab('0x59'))['to'](_0x5e3c56,_0x5bab('0x59')),_0x2cafb8['bind'](_0x5bab('0x5d'))['to'](_0x5e3c56),_0x2cafb8[_0x5bab('0x46')]('type')['to'](_0x5e3c56,_0x5bab('0x57'),_0x10128a=>_0x5bab('0x6b')+_0x10128a),this['_annotationViews']['set'](_0x284f34['id'],_0x2cafb8));const _0x457dce=_0x1a77a7['createCommentThreadController'](_0x284f34[_0x5bab('0x43')],_0x5e3c56),_0xcf37f9=new _0x13c1ad(_0x59a132,_0x284f34,_0x5e3c56,_0x457dce),_0x23d1cb=_0x284f34[_0x5bab('0x6a')]()[_0x5bab('0x54')](_0x3fa9b8=>_0x3fa9b8['isInContent']);_0x5e3c56[_0x5bab('0x42')]=_0x59a132[_0x5bab('0x3')]['get'](_0x5bab('0x1e'))[_0x5bab('0xd')]['getDescriptions'](_0x23d1cb),this[_0x5bab('0x3b')][_0x5bab('0x39')](_0x284f34,_0xcf37f9),this['_viewToController'][_0x5bab('0x39')](_0x5e3c56,_0xcf37f9);const _0x145168=_0xf80c7f[_0x5bab('0x44')]({'view':_0x2cafb8,'target':()=>{const _0x3cd626=[],_0x24ceff=_0x284f34[_0x5bab('0x6a')]()[_0x5bab('0x54')](_0x372bfd=>_0x372bfd[_0x5bab('0x13')]);for(const _0x2617e8 of _0x24ceff)_0x3cd626['push'](..._0x2617e8['getMarkers']());return _0x302d69(_0x59a132[_0x5bab('0x50')],_0x3cd626);},'type':()=>'suggestion-'+_0xcf37f9[_0x5bab('0x30')][_0x5bab('0x57')]});_0x1a77a7[_0x5bab('0x69')](_0x5e3c56,_0x145168),_0xf80c7f[_0x5bab('0x53')](_0x145168),_0x34bd8e[_0x5bab('0x62')](_0x145168);}[_0x5bab('0x4d')](_0x41e21a){const _0xdc8a02=this['editor'][_0x5bab('0x3')]['get']('CommentsRepository'),_0xd17164=this[_0x5bab('0x5e')][_0x5bab('0x3')]['get'](_0x5bab('0x64')),_0x3b8404=this[_0x5bab('0x3b')]['get'](_0x41e21a),_0x5f5c85=_0x3b8404[_0x5bab('0x30')],_0x414515=_0xd17164[_0x5bab('0x2e')](_0x5f5c85);_0xdc8a02[_0x5bab('0x34')](_0x5f5c85),_0x414515&&_0xd17164[_0x5bab('0x60')](_0x414515),this[_0x5bab('0x3b')][_0x5bab('0x45')](_0x41e21a),this[_0x5bab('0x8')][_0x5bab('0x45')](_0x5f5c85),_0x3b8404[_0x5bab('0x1a')]();}[_0x5bab('0x3e')](_0x200384){if(!_0x200384[_0x5bab('0x13')]||!this['_suggestionToController'][_0x5bab('0x6d')](_0x200384))return;const _0x26e66c=this[_0x5bab('0x5e')][_0x5bab('0x3')][_0x5bab('0x63')](_0x5bab('0x1e')),_0x333f72=this[_0x5bab('0x3b')][_0x5bab('0x63')](_0x200384),_0x551acc=_0x200384[_0x5bab('0x6a')]();_0x333f72[_0x5bab('0x30')][_0x5bab('0x42')]=_0x26e66c[_0x5bab('0xd')][_0x5bab('0x1d')](_0x551acc);}['destroy'](){for(const _0x286b1c of this[_0x5bab('0x3b')][_0x5bab('0x51')]())this[_0x5bab('0x4d')](_0x286b1c);for(const _0x51a104 of this['_annotationViews'][_0x5bab('0x2a')]())_0x51a104[_0x5bab('0x22')][_0x5bab('0x1a')]();super[_0x5bab('0x1a')]();}}
|
|
23
|
+
const _0x2350=['value','TrackChangesUI','length','model','buttonView','editing','discardButton','descriptionParts','createAnnotation','some','has','unbind','bind','EditorAnnotations','activeAnnotations','getMarkerNames','type','comments.maxCommentCharsWhenCollapsed','comments.editorConfig','_disableComments','activeMarkers','CommentsRepository','isEnabled','suggestion-','listenTo','hasSuggestion','SuggestionThreadView','_initializeController','separator','Annotations','Accept\x20all\x20selected\x20suggestions','_destroyController','getDescriptions','comments.maxCommentsWhenCollapsed','createCommentThreadController','Discard\x20all\x20suggestions','suggestionLoaded','_updateController','execute','trackChanges.disableComments','getFirstRange','actionView','from','get','getRanges','_createUIButton','plugins','filter','getJoined','TrackChangesEditing','_handleSuggestionControllerDelayed','comments','getAllAdjacentSuggestions','_suggestionToController','createAnnotationView','Discard\x20all\x20selected\x20suggestions','getByInnerView','locale','define','addComment','stopListening','editor','delete','componentFactory','suggestionUnloaded','trackChanges','values','_handleControllerBuffer','isMultiRange','innerView','commentThread','reduce','commandName','toMany','source','getMarkers','CommentView','addSourceCollector','keys','discardAllSuggestions','_annotationViews','size','arrowView','add','head','previous','_viewToController','isInContent','button','set','switchbutton','getSuggestion','_bindAnnotationToEditors','view','change:previous','mainView','registerAnnotation','config','acceptButton','destroy','acceptSelectedSuggestions','requires','focus','push','commands','_descriptionFactory','_refreshActiveMarkers','change:activeAnnotations','Track\x20changes','isDirty','trackChanges.SuggestionThreadView','isOn'];(function(_0x4a8d71,_0x23503a){const _0x500fb4=function(_0x1de53c){while(--_0x1de53c){_0x4a8d71['push'](_0x4a8d71['shift']());}};_0x500fb4(++_0x23503a);}(_0x2350,0x19d));const _0x500f=function(_0x4a8d71,_0x23503a){_0x4a8d71=_0x4a8d71-0x0;let _0x500fb4=_0x2350[_0x4a8d71];return _0x500fb4;};import{Plugin as _0x2a3711}from'ckeditor5/src/core';import{Collection as _0x1b6729}from'ckeditor5/src/utils';import{Model as _0x4123ee,SplitButtonView as _0x34fdeb,createDropdown as _0x499e8b,addListToDropdown as _0x17d4f3}from'ckeditor5/src/ui';import{Users as _0x8ee2f9,getDateTimeFormatter as _0x43088f,getAllMarkersDomElementsSorted as _0x2fcb46}from'ckeditor5-collaboration/src/collaboration-core';import _0xdba3a4 from'./trackchangesediting';import _0x2c2a87 from'./ui/suggestioncontroller';import _0x135a7f from'./ui/view/suggestionthreadview';import{getTranslation as _0x1ff144}from'./utils/common-translations';import _0x655be0 from'../theme/icons/track-changes.svg';export default class d extends _0x2a3711{static get[_0x500f('0x18')](){return[_0xdba3a4,_0x8ee2f9,_0x500f('0x38'),_0x500f('0x40'),'EditorAnnotations'];}static get['pluginName'](){return _0x500f('0x24');}constructor(_0x34bccb){super(_0x34bccb),this['_suggestionToController']=new Map(),this[_0x500f('0x9')]=new Map(),this[_0x500f('0x3')]=new Map(),this[_0x500f('0x66')]=new Map();const _0x3eb372=this['editor']['config'];_0x3eb372[_0x500f('0x5d')](_0x500f('0x21'),_0x135a7f),_0x3eb372['define'](_0x500f('0x4a'),!0x1),this[_0x500f('0x36')]=_0x3eb372[_0x500f('0x4e')](_0x500f('0x4a'));}[_0x500f('0x55')](_0x620e8e,_0x432965){0x0===this[_0x500f('0x66')][_0x500f('0x4')]&&setTimeout(()=>{for(const [_0x34afc6,_0x4f79c3]of this[_0x500f('0x66')]){const _0x2cc00a=this[_0x500f('0x58')][_0x500f('0x2d')](_0x34afc6);_0x2cc00a||_0x4f79c3?_0x2cc00a&&_0x4f79c3&&this[_0x500f('0x42')](_0x34afc6):this[_0x500f('0x3e')](_0x34afc6);}this[_0x500f('0x60')][_0x500f('0x51')][_0x500f('0x4e')](_0x500f('0x30'))['refreshSelectedViews'](),this[_0x500f('0x1d')](),this['_handleControllerBuffer']['clear']();},0xa),this[_0x500f('0x66')][_0x500f('0xc')](_0x620e8e,_0x432965);}['init'](){const _0x60256b=this[_0x500f('0x60')],_0x1eb8ab=_0x60256b['plugins'][_0x500f('0x4e')]('TrackChangesEditing'),_0x51757f=_0x60256b[_0x500f('0x51')][_0x500f('0x4e')](_0x500f('0x40')),_0x1df8d7=_0x60256b[_0x500f('0x51')][_0x500f('0x4e')](_0x500f('0x30')),_0x4fae0a=_0x60256b[_0x500f('0x51')][_0x500f('0x4e')]('CommentsRepository');_0x60256b['ui'][_0x500f('0x62')][_0x500f('0x6')](_0x500f('0x64'),_0xfcf894=>this[_0x500f('0x50')](_0xfcf894)),_0x1df8d7[_0x500f('0x0')](()=>{const _0x589060=[];for(const [_0x5bc582,_0x5de209]of Array[_0x500f('0x4d')](this[_0x500f('0x58')])){const _0x1a6ed0=_0x5bc582[_0x500f('0x57')](),_0xd5c4da=[];for(const _0x53c906 of _0x1a6ed0){if(!_0x53c906['isInContent'])continue;if(_0x53c906[_0x500f('0x67')]){_0xd5c4da[_0x500f('0x1a')](..._0x53c906[_0x500f('0x4f')]());continue;}const _0x483918=_0x53c906[_0x500f('0x4b')]();if(_0xd5c4da[_0x500f('0x25')]>0x0){const _0x8d455=_0xd5c4da[0x0][_0x500f('0x53')](_0x483918);if(_0x8d455){_0xd5c4da[0x0]=_0x8d455;continue;}}_0xd5c4da[_0x500f('0x1a')](_0x483918);}_0x589060['push']([_0x5de209[_0x500f('0x10')],_0xd5c4da]);}return _0x589060;}),this[_0x500f('0x3b')](_0x1eb8ab,_0x500f('0x47'),(_0x4924ed,_0x5316df)=>{this[_0x500f('0x3b')](_0x5316df,_0x500f('0x11'),(_0x5af1c7,_0x2b75b2,_0x3ce401,_0x11f342)=>{_0x5316df[_0x500f('0xa')]&&(null==_0x3ce401?(this['_updateController'](_0x11f342[_0x500f('0x7')]),this['_handleSuggestionControllerDelayed'](_0x5316df,!0x1)):(this[_0x500f('0x48')](_0x3ce401[_0x500f('0x7')]),null==_0x11f342&&this[_0x500f('0x55')](_0x5316df,!0x0)));}),null!==_0x5316df[_0x500f('0x8')]?this[_0x500f('0x48')](_0x5316df[_0x500f('0x7')]):this[_0x500f('0x55')](_0x5316df,!0x1);}),this[_0x500f('0x3b')](_0x1eb8ab,_0x500f('0x63'),(_0x12dafc,_0x4b01c1,_0xcff742)=>{this[_0x500f('0x5f')](_0x4b01c1,_0x500f('0x11')),this[_0x500f('0x66')][_0x500f('0x61')](_0x4b01c1),this['_suggestionToController'][_0x500f('0x2d')](_0x4b01c1)&&this[_0x500f('0x42')](_0x4b01c1),_0xcff742&&this[_0x500f('0x48')](_0xcff742[_0x500f('0x7')]);}),this[_0x500f('0x3b')](_0x1eb8ab,'suggestionChanged',(_0x462b81,_0x283ff8)=>{this[_0x500f('0x48')](_0x283ff8);}),this[_0x500f('0x3b')](_0x51757f,_0x500f('0x1e'),()=>{this[_0x500f('0x1d')]();}),this['listenTo'](_0x4fae0a,_0x500f('0x5e'),(_0x4a67cd,{threadId:_0x17cfa1,isFromAdapter:_0x321c69})=>{if(_0x321c69||!_0x1eb8ab[_0x500f('0x3c')](_0x17cfa1))return;const _0x56a62d=_0x1eb8ab[_0x500f('0xe')](_0x17cfa1);this[_0x500f('0x58')][_0x500f('0x4e')](_0x56a62d)[_0x500f('0x10')][_0x500f('0x19')]();},{'priority':'lowest'});}[_0x500f('0x1d')](){const _0x3ea8d0=this[_0x500f('0x60')][_0x500f('0x51')][_0x500f('0x4e')](_0x500f('0x40')),_0x882fdc=this[_0x500f('0x60')]['plugins'][_0x500f('0x4e')](_0x500f('0x54')),_0xe39a01=Array[_0x500f('0x4d')](_0x3ea8d0[_0x500f('0x31')],_0x5073a2=>_0x5073a2[_0x500f('0x68')])[_0x500f('0x52')](_0x21611b=>this['_viewToController']['has'](_0x21611b)),_0x4b89d9=[];for(const _0x587c16 of _0xe39a01){const _0x3e66c4=this[_0x500f('0x9')][_0x500f('0x4e')](_0x587c16)[_0x500f('0x26')]['getAllAdjacentSuggestions']();_0x4b89d9[_0x500f('0x1a')](..._0x3e66c4[_0x500f('0x6a')]((_0x496a11,_0xc8d9f3)=>[..._0x496a11,..._0xc8d9f3[_0x500f('0x32')]()],[]));}_0x882fdc[_0x500f('0x37')]=_0x4b89d9;}[_0x500f('0x50')](_0x5148ca){const _0x222857=_0x499e8b(_0x5148ca,_0x34fdeb),_0xf4aa28=this[_0x500f('0x60')][_0x500f('0x1b')]['get']('trackChanges'),_0x31e285=_0x1ff144(_0x5148ca,_0x500f('0x1f'));_0x222857[_0x500f('0x27')][_0x500f('0xc')]({'tooltip':_0x31e285,'label':_0x31e285,'icon':_0x655be0}),_0x222857['buttonView']['bind']('isOn')['to'](_0xf4aa28,_0x500f('0x23')),_0x222857[_0x500f('0x27')]['on']('execute',()=>{_0xf4aa28[_0x500f('0x49')](),this['editor']['editing'][_0x500f('0x10')]['focus']();});const _0x157ef7=new _0x1b6729(),_0xc2b69a=[{'type':_0x500f('0xd'),'model':{'withText':!0x0,'label':_0x31e285,'commandName':_0x500f('0x64')}},{'type':_0x500f('0x3f')},{'type':_0x500f('0xb'),'model':{'withText':!0x0,'label':_0x1ff144(_0x5148ca,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x500f('0xb'),'model':{'withText':!0x0,'label':_0x1ff144(_0x5148ca,_0x500f('0x41')),'commandName':_0x500f('0x17')}},{'type':_0x500f('0xb'),'model':{'withText':!0x0,'label':_0x1ff144(_0x5148ca,_0x500f('0x46')),'commandName':_0x500f('0x2')}},{'type':_0x500f('0xb'),'model':{'withText':!0x0,'label':_0x1ff144(_0x5148ca,_0x500f('0x5a')),'commandName':'discardSelectedSuggestions'}}];for(const _0x2a1acc of _0xc2b69a){let _0x6926a2={'type':_0x500f('0x3f')};if(_0x2a1acc[_0x500f('0x26')]){const _0x115409=new _0x4123ee(_0x2a1acc[_0x500f('0x26')]),_0x1017d9=this['editor'][_0x500f('0x1b')][_0x500f('0x4e')](_0x115409[_0x500f('0x6b')]);_0x115409[_0x500f('0x2f')](_0x500f('0x22'),'isEnabled')['to'](_0x1017d9,_0x500f('0x23'),_0x500f('0x39')),_0x6926a2={'type':_0x2a1acc['type'],'model':_0x115409};}_0x157ef7[_0x500f('0x6')](_0x6926a2);}_0x17d4f3(_0x222857,_0x157ef7);const _0x3f7fa0=_0xc2b69a[_0x500f('0x52')](_0x4c9a70=>null!=_0x4c9a70[_0x500f('0x26')])['map'](_0x462506=>this[_0x500f('0x60')][_0x500f('0x1b')][_0x500f('0x4e')](_0x462506[_0x500f('0x26')][_0x500f('0x6b')])),_0x42dd13=_0x222857[_0x500f('0x27')];return _0x42dd13['actionView'][_0x500f('0x2e')](_0x500f('0x39')),_0x42dd13['arrowView'][_0x500f('0x2e')]('isEnabled'),_0x42dd13[_0x500f('0x4c')][_0x500f('0x2f')](_0x500f('0x39'))['to'](_0xf4aa28,_0x500f('0x39')),_0x42dd13[_0x500f('0x5')]['bind'](_0x500f('0x39'))[_0x500f('0x6c')](_0x3f7fa0,'isEnabled',(..._0x13969e)=>_0x13969e[_0x500f('0x2c')](_0x40dcff=>_0x40dcff)),_0x222857['on'](_0x500f('0x49'),_0x277f7f=>{this[_0x500f('0x60')][_0x500f('0x49')](_0x277f7f[_0x500f('0x6d')]['commandName']),this['editor'][_0x500f('0x28')][_0x500f('0x10')][_0x500f('0x19')]();}),_0x222857;}[_0x500f('0x3e')](_0x557edf){const _0xca8795=this[_0x500f('0x60')],_0x480c04=_0xca8795[_0x500f('0x14')],_0x179678=_0xca8795[_0x500f('0x51')][_0x500f('0x4e')]('Annotations'),_0x2545db=_0xca8795['plugins'][_0x500f('0x4e')](_0x500f('0x38')),_0x7fd64e=_0xca8795[_0x500f('0x51')][_0x500f('0x4e')](_0x500f('0x30')),_0x30e9cf=_0xca8795['plugins']['get'](_0x8ee2f9)['me'],_0x5f1170=_0x480c04['get'](_0x500f('0x64'))[_0x500f('0x3d')],{CommentsListView:_0x5506d5,CommentThreadInputView:_0x4f7d1c}=_0xca8795[_0x500f('0x51')]['get']('CommentsUI');let _0x4bcda1,_0x350f5a;this[_0x500f('0x3')]['has'](_0x557edf['id'])?(_0x350f5a=this[_0x500f('0x3')][_0x500f('0x4e')](_0x557edf['id']),_0x4bcda1=_0x350f5a[_0x500f('0x12')]):(_0x4bcda1=new _0x5f1170(_0xca8795[_0x500f('0x5c')],_0x557edf,_0x30e9cf,{'disableComments':this['_disableComments'],'editorConfig':_0x480c04[_0x500f('0x4e')](_0x500f('0x35')),'maxCommentsWhenCollapsed':_0x480c04['get'](_0x500f('0x44')),'maxThreadTotalWeight':_0x480c04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x480c04['get'](_0x500f('0x34')),'formatDateTime':_0x43088f(_0x480c04[_0x500f('0x4e')](_0x500f('0x5c'))),'CommentView':_0x480c04[_0x500f('0x4e')](_0x500f('0x56'))[_0x500f('0x6f')],'CommentsListView':_0x5506d5,'CommentThreadInputView':_0x4f7d1c}),_0x4bcda1[_0x500f('0x15')]['on']('execute',()=>{_0xca8795[_0x500f('0x28')][_0x500f('0x10')][_0x500f('0x19')]();}),_0x4bcda1[_0x500f('0x29')]['on']('execute',()=>{_0xca8795[_0x500f('0x28')][_0x500f('0x10')][_0x500f('0x19')]();}),_0x350f5a=_0x179678[_0x500f('0x59')](this[_0x500f('0x60')][_0x500f('0x5c')],_0x4bcda1),_0x350f5a[_0x500f('0x2f')](_0x500f('0x20'))['to'](_0x4bcda1,_0x500f('0x20')),_0x350f5a[_0x500f('0x2f')](_0x500f('0x25'))['to'](_0x4bcda1),_0x350f5a[_0x500f('0x2f')]('type')['to'](_0x4bcda1,'type',_0x51d923=>_0x500f('0x3a')+_0x51d923),this[_0x500f('0x3')]['set'](_0x557edf['id'],_0x350f5a));const _0x3f29f5=_0x2545db[_0x500f('0x45')](_0x557edf[_0x500f('0x69')],_0x4bcda1),_0x4713aa=new _0x2c2a87(_0xca8795,_0x557edf,_0x4bcda1,_0x3f29f5),_0x522868=_0x557edf[_0x500f('0x57')]()[_0x500f('0x52')](_0x55897a=>_0x55897a[_0x500f('0xa')]);_0x4bcda1[_0x500f('0x2a')]=_0xca8795['plugins'][_0x500f('0x4e')](_0x500f('0x54'))[_0x500f('0x1c')]['getDescriptions'](_0x522868),this['_suggestionToController'][_0x500f('0xc')](_0x557edf,_0x4713aa),this['_viewToController'][_0x500f('0xc')](_0x4bcda1,_0x4713aa);const _0x1c10bb=_0x179678[_0x500f('0x2b')]({'view':_0x350f5a,'target':()=>{const _0x24d533=[],_0x5a6859=_0x557edf[_0x500f('0x57')]()[_0x500f('0x52')](_0x5e8614=>_0x5e8614[_0x500f('0xa')]);for(const _0x1fce22 of _0x5a6859)_0x24d533[_0x500f('0x1a')](..._0x1fce22[_0x500f('0x6e')]());return _0x2fcb46(_0xca8795[_0x500f('0x28')],_0x24d533);},'type':()=>'suggestion-'+_0x4713aa['view'][_0x500f('0x33')]});_0x2545db[_0x500f('0xf')](_0x4bcda1,_0x1c10bb),_0x179678['add'](_0x1c10bb),_0x7fd64e[_0x500f('0x13')](_0x1c10bb);}[_0x500f('0x42')](_0x220a25){const _0x5bd00b=this[_0x500f('0x60')][_0x500f('0x51')]['get'](_0x500f('0x38')),_0x2abbde=this[_0x500f('0x60')][_0x500f('0x51')][_0x500f('0x4e')]('Annotations'),_0xbc5fe6=this['_suggestionToController'][_0x500f('0x4e')](_0x220a25),_0x44c33c=_0xbc5fe6['view'],_0x2136c3=_0x2abbde[_0x500f('0x5b')](_0x44c33c);_0x5bd00b['_unbindEditors'](_0x44c33c),_0x2136c3&&_0x2abbde['remove'](_0x2136c3),this[_0x500f('0x58')][_0x500f('0x61')](_0x220a25),this[_0x500f('0x9')][_0x500f('0x61')](_0x44c33c),_0xbc5fe6[_0x500f('0x16')]();}['_updateController'](_0x2dcf49){if(!_0x2dcf49[_0x500f('0xa')]||!this[_0x500f('0x58')][_0x500f('0x2d')](_0x2dcf49))return;const _0x7bce98=this[_0x500f('0x60')][_0x500f('0x51')][_0x500f('0x4e')](_0x500f('0x54')),_0x19061d=this[_0x500f('0x58')]['get'](_0x2dcf49),_0x18b769=_0x2dcf49[_0x500f('0x57')]();_0x19061d['view'][_0x500f('0x2a')]=_0x7bce98['_descriptionFactory'][_0x500f('0x43')](_0x18b769);}[_0x500f('0x16')](){for(const _0x11906b of this[_0x500f('0x58')][_0x500f('0x1')]())this[_0x500f('0x42')](_0x11906b);for(const _0x7d0fa4 of this['_annotationViews'][_0x500f('0x65')]())_0x7d0fa4['mainView'][_0x500f('0x16')]();super[_0x500f('0x16')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x228b=['model','remove','commentThreadController','canDiscard','view','get','locale','unbind','stopListening','_removePendingAction','_editor','canAccept','isDirty','getRanges','commands','destroy','canEditAt','add','isEnabled','change:isDirty','_acceptCommand','_discardCommand','_setPendingAction','execute','discardSuggestion','PENDING_ACTION_SUGGESTION','bind','acceptSuggestion','PendingActions','plugins','_pendingAction'];(function(_0x581700,_0x228b13){const _0x1ab7cd=function(_0x2b10a3){while(--_0x2b10a3){_0x581700['push'](_0x581700['shift']());}};_0x1ab7cd(++_0x228b13);}(_0x228b,0x1d6));const _0x1ab7=function(_0x581700,_0x228b13){_0x581700=_0x581700-0x0;let _0x1ab7cd=_0x228b[_0x581700];return _0x1ab7cd;};import{ObservableMixin as _0x1d1d96}from'ckeditor5/src/utils';import{getTranslation as _0x40872b}from'../utils/common-translations';export default class Qt extends _0x1d1d96(){constructor(_0x13cf07,_0x2447ae,_0x5bd908,_0x92eac2){super(),this[_0x1ab7('0x1a')]=_0x2447ae,this[_0x1ab7('0x1e')]=_0x5bd908,this[_0x1ab7('0x1c')]=_0x92eac2,this[_0x1ab7('0x5')]=_0x13cf07,this[_0x1ab7('0xf')]=_0x13cf07[_0x1ab7('0x9')]['get'](_0x1ab7('0x16')),this[_0x1ab7('0x10')]=_0x13cf07[_0x1ab7('0x9')][_0x1ab7('0x0')](_0x1ab7('0x13')),this[_0x1ab7('0x1e')][_0x1ab7('0x15')]('isEnabled')['to'](this[_0x1ab7('0xf')],this[_0x1ab7('0x10')],(_0x322d0b,_0x491c8f)=>_0x322d0b||_0x491c8f),this['view'][_0x1ab7('0x15')](_0x1ab7('0x6'))['to'](this[_0x1ab7('0xf')],_0x1ab7('0xd'),_0x4d4d2f=>_0x4d4d2f&&this[_0x1ab7('0x5')][_0x1ab7('0x1a')][_0x1ab7('0xb')](_0x2447ae[_0x1ab7('0x8')]())),this['view']['bind'](_0x1ab7('0x1d'))['to'](this[_0x1ab7('0x10')],_0x1ab7('0xd'),_0x37ab02=>_0x37ab02&&this['_editor'][_0x1ab7('0x1a')][_0x1ab7('0xb')](_0x2447ae[_0x1ab7('0x8')]())),this[_0x1ab7('0x19')]=null,_0x5bd908[_0x1ab7('0x7')]&&this['_setPendingAction'](),this['listenTo'](_0x5bd908,'acceptSuggestion',()=>this[_0x1ab7('0x16')]()),this['listenTo'](_0x5bd908,_0x1ab7('0x13'),()=>this[_0x1ab7('0x13')]()),this['listenTo'](_0x5bd908,_0x1ab7('0xe'),()=>{_0x5bd908[_0x1ab7('0x7')]?this[_0x1ab7('0x11')]():this[_0x1ab7('0x4')]();});}[_0x1ab7('0x16')](){this[_0x1ab7('0xf')][_0x1ab7('0x12')](this[_0x1ab7('0x1a')]['id']);}[_0x1ab7('0x13')](){this[_0x1ab7('0x10')][_0x1ab7('0x12')](this['model']['id']);}[_0x1ab7('0xa')](){this[_0x1ab7('0x1e')]['unbind'](_0x1ab7('0xd')),this['view'][_0x1ab7('0x2')](_0x1ab7('0x6')),this[_0x1ab7('0x1e')][_0x1ab7('0x2')]('canDiscard'),this[_0x1ab7('0x3')](),this[_0x1ab7('0x1c')][_0x1ab7('0xa')](),this[_0x1ab7('0x19')]&&this['_removePendingAction']();}['_setPendingAction'](){const _0x5bb2c2=_0x40872b(this[_0x1ab7('0x5')][_0x1ab7('0x1')],_0x1ab7('0x14'));this[_0x1ab7('0x19')]=this[_0x1ab7('0x5')]['plugins'][_0x1ab7('0x0')](_0x1ab7('0x17'))[_0x1ab7('0xc')](_0x5bb2c2);}[_0x1ab7('0x4')](){null!==this['_pendingAction']&&this[_0x1ab7('0x5')][_0x1ab7('0x18')]['get'](_0x1ab7('0x17'))[_0x1ab7('0x1b')](this['_pendingAction']),this['_pendingAction']=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f10=['submit','commentsListView','hasDirtyComment','value','_createCommentThreadInputView','isDirty','destroy','CommentView','focus','disabledSubmit','assign','updateComment','removeComment','delegate','set','commentThread','disableComments','isReadOnly','canDiscard','_localUser','addComment','_config','locale','_createCommentViews','fire','cancel','commentInputView','bind','authoredAt','commentThreadInputView','_model','isActive','length'];(function(_0x3259d7,_0x1f1076){const _0x194792=function(_0x1487df){while(--_0x1487df){_0x3259d7['push'](_0x3259d7['shift']());}};_0x194792(++_0x1f1076);}(_0x1f10,0x137));const _0x1947=function(_0x3259d7,_0x1f1076){_0x3259d7=_0x3259d7-0x0;let _0x194792=_0x1f10[_0x3259d7];return _0x194792;};import{View as _0x16b162}from'ckeditor5/src/ui';export default class si extends _0x16b162{constructor(_0x854e0b,_0x321ab6,_0x1210dd,_0x47b1c2){super(_0x854e0b),this[_0x1947('0x14')]=null,this[_0x1947('0xf')]=null,this['set'](_0x1947('0x11'),!0x1),this['set'](_0x1947('0xe'),_0x321ab6['authoredAt']),this[_0x1947('0xd')](_0x1947('0xe'))['to'](_0x321ab6),this['set']('descriptionParts',[]),this[_0x1947('0x0')](_0x1947('0x18'),!0x1),this[_0x1947('0x0')]('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set'](_0x1947('0x4'),!0x1),this['_model']=_0x321ab6,this['_localUser']=_0x1210dd,this[_0x1947('0x7')]=_0x47b1c2,_0x47b1c2[_0x1947('0x2')]?this[_0x1947('0x0')](_0x1947('0x12'),0x1):this[_0x1947('0x9')]();}[_0x1947('0x1b')](){this['element'][_0x1947('0x1b')]();}[_0x1947('0x19')](){this[_0x1947('0x14')]&&this[_0x1947('0x14')]['destroy'](),this[_0x1947('0xf')]&&this[_0x1947('0xf')][_0x1947('0x19')](),super['destroy']();}[_0x1947('0x9')](){const {CommentsListView:_0x4fa77e}=this['_config'];this[_0x1947('0x14')]=new _0x4fa77e(this[_0x1947('0x8')],this['_model'][_0x1947('0x1')],Object[_0x1947('0x1d')]({'CommentView':this[_0x1947('0x7')][_0x1947('0x1a')]},this[_0x1947('0x7')])),this[_0x1947('0x14')][_0x1947('0x20')](_0x1947('0x1f'))['to'](this),this[_0x1947('0x14')][_0x1947('0x20')](_0x1947('0x1e'))['to'](this),this[_0x1947('0x14')][_0x1947('0xd')]('isActive')['to'](this),this[_0x1947('0x0')](_0x1947('0x12'),this[_0x1947('0x14')][_0x1947('0x12')]+0x1),this[_0x1947('0xd')](_0x1947('0x12'))['to'](this[_0x1947('0x14')],_0x1947('0x12'),_0x108794=>_0x108794+0x1),this[_0x1947('0xf')]=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this[_0x1947('0x1b')]()),this[_0x1947('0xd')](_0x1947('0x18'))['to'](this[_0x1947('0x14')],_0x1947('0x15'),this[_0x1947('0xf')][_0x1947('0xc')],_0x1947('0x16'),(_0x501c07,_0x4919c0)=>_0x501c07||!!_0x4919c0);}[_0x1947('0x17')](){const {CommentThreadInputView:_0x3cbc51}=this[_0x1947('0x7')],_0x3bc088=new _0x3cbc51(this['locale'],this[_0x1947('0x5')],this[_0x1947('0x7')]['editorConfig']),_0x16443c=_0x3bc088[_0x1947('0xc')];return _0x3bc088[_0x1947('0xd')]('showInput')['to'](this,'isActive',this[_0x1947('0x10')][_0x1947('0x1')],'isReadOnly',_0x16443c,_0x1947('0x16'),(_0x2159b6,_0x2b6b7a,_0x562bf8)=>!!_0x562bf8||_0x2159b6&&!_0x2b6b7a),_0x16443c['on'](_0x1947('0x13'),(_0x3a5582,_0x56f85b)=>{this[_0x1947('0xa')](_0x1947('0x6'),_0x56f85b),_0x16443c['editor']['setData']('');}),_0x16443c['on'](_0x1947('0xb'),()=>this['focus']()),_0x16443c[_0x1947('0xd')](_0x1947('0x1c'))['to'](this[_0x1947('0x10')][_0x1947('0x1')],_0x1947('0x3')),_0x3bc088;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bcf=['cancel','authoredAt','createElement','acceptButton','ck-annotation__info','children','ck-suggestion-wrapper','fire','EXTERNAL_AVATAR','EXTERNAL_IMPORT_WORD_SUGGESTION','set','attributes','ck-suggestion-wrapper--active','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','</p>','change:description','_createButton','render','commentThread','EXTERNAL_SUGGESTION','ck-suggestion__info-name','div','innerText','bind','ck-annotation__info-name','description','editorDestroyed','discardSuggestion','canAccept','ck-suggestion','element','canDiscard','disableComments','author','acceptSuggestion','ck-annotation','discardButton','setTemplate','creator','color','value','ck-suggestion__user','<span\x20class=\x22ck-suggestion-type\x22>','execute','.ck-annotation__content-wrapper','ck-annotation__content-wrapper','ck-annotation__main','push','ck-comment__external','ck-suggestion__actions','ck-suggestion-','span','_descriptionElement','getExternalSuggestionNote','type','source','name','map','_config','</span>','\x22></span>','editorReady','_model','ck-suggestion--discard','Discard\x20suggestion','ck-annotation__actions','commentThreadInputView','isExternal','join','isActive','getUserViewNotificationText','innerHTML','title','ck-suggestion--accept','commentsListView','extendTemplate','descriptionParts','<p>','locale','isEnabled','delegate','importWord','EXTERNAL_IMPORT_WORD_AVATAR','userView','@external'];(function(_0x14f5c8,_0x5bcfd5){const _0x1bdc9e=function(_0x3f24ab){while(--_0x3f24ab){_0x14f5c8['push'](_0x14f5c8['shift']());}};_0x1bdc9e(++_0x5bcfd5);}(_0x5bcf,0xbc));const _0x1bdc=function(_0x14f5c8,_0x5bcfd5){_0x14f5c8=_0x14f5c8-0x0;let _0x1bdc9e=_0x5bcf[_0x14f5c8];return _0x1bdc9e;};import{getTranslation as _0x5ae40a}from'../../utils/common-translations';import{default as _0x20f4b3}from'./basesuggestionthreadview';import{ButtonView as _0x5831e8}from'ckeditor5/src/ui';import{icons as _0x3d73b4}from'ckeditor5/src/core';import{trimHtml as _0x183472,UserView as _0x3b77cf}from'ckeditor5-collaboration/src/collaboration-core';export default class Xt extends _0x20f4b3{constructor(_0x5ed200,_0x5cbde6,_0x3e6a17,_0x28f04d){super(_0x5ed200,_0x5cbde6,_0x3e6a17,_0x28f04d),this[_0x1bdc('0x4d')](_0x1bdc('0x24'),''),this[_0x1bdc('0x5')](_0x1bdc('0x24'))['to'](this,_0x1bdc('0x3a'),_0x1d47e4=>_0x1d47e4&&_0x1d47e4[0x0]?_0x1d47e4[0x0][_0x1bdc('0x24')]:''),this[_0x1bdc('0x5')](_0x1bdc('0x7'))['to'](this,_0x1bdc('0x3a'),this,_0x1bdc('0x33'),(_0x135125,_0x35d4ca)=>{let _0x334862='';for(const _0x3b557f of _0x135125)_0x334862+=_0x1bdc('0x3b')+ci(_0x3b557f['content'],_0x3b557f[_0x1bdc('0x15')])+_0x1bdc('0x51');return _0x35d4ca?_0x334862:_0x183472(_0x334862,{'limit':0x8c});}),this[_0x1bdc('0x22')]=null,this[_0x1bdc('0x46')]=this[_0x1bdc('0x53')](_0x5ae40a(_0x5ed200,'Accept\x20suggestion'),_0x3d73b4['check'],_0x1bdc('0x37'),_0x1bdc('0x10'),'sw'),this[_0x1bdc('0x46')][_0x1bdc('0x5')]('isEnabled')['to'](this,_0x1bdc('0xa')),this['discardButton']=this['_createButton'](_0x5ae40a(_0x5ed200,_0x1bdc('0x2e')),_0x3d73b4[_0x1bdc('0x43')],_0x1bdc('0x2d'),_0x1bdc('0x9'),'sw'),this[_0x1bdc('0x12')][_0x1bdc('0x5')](_0x1bdc('0x3d'))['to'](this,_0x1bdc('0xd')),this['userView']=new _0x3b77cf(_0x5ed200,this['_model']['author'],this[_0x1bdc('0x34')]()),this[_0x1bdc('0x41')]['extendTemplate']({'attributes':{'class':[_0x1bdc('0x17'),'ck-annotation__user']}}),this[_0x1bdc('0x13')](this['getTemplate']());}['getTemplate'](){const _0x165321=this['bindTemplate'],_0x42f140=[{'tag':'div','attributes':{'class':['ck-suggestion__info',_0x1bdc('0x47')]},'children':[{'tag':_0x1bdc('0x21'),'children':[{'text':this[_0x1bdc('0x41')][_0x1bdc('0x26')]}],'attributes':{'class':[_0x1bdc('0x2'),_0x1bdc('0x6')]}},{'tag':'time','attributes':{'datetime':_0x165321['to'](_0x1bdc('0x44')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x165321['to'](_0x1bdc('0x44'),_0x287136=>this['_config']['formatDateTime'](_0x287136))}]}]},{'tag':'div','attributes':{'class':[_0x1bdc('0x1f'),_0x1bdc('0x2f')]},'children':[this[_0x1bdc('0x46')],this['discardButton']]},{'tag':'div','attributes':{'class':[_0x1bdc('0x1b')]}}];this[_0x1bdc('0x2c')]['isExternal']&&_0x42f140[_0x1bdc('0x1d')]({'tag':_0x1bdc('0x3'),'attributes':{'class':[_0x1bdc('0x1e')]},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1a9b8d={'tag':'div','attributes':{'class':[_0x1bdc('0x49'),_0x165321['if'](_0x1bdc('0x33'),_0x1bdc('0x4f')),_0x165321['to']('type',_0xb67a0=>_0x1bdc('0x20')+_0xb67a0),this[_0x1bdc('0x28')][_0x1bdc('0xe')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x1bdc('0x2c')][_0x1bdc('0x0')]['id'],'data-author-id':this[_0x1bdc('0x2c')][_0x1bdc('0xf')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1bdc('0x3'),'attributes':{'class':[_0x1bdc('0xb'),_0x1bdc('0x11')]},'children':[this[_0x1bdc('0x41')],{'tag':_0x1bdc('0x3'),'attributes':{'class':['ck-suggestion__main',_0x1bdc('0x1c')]},'children':_0x42f140}]}]};return this[_0x1bdc('0x38')]&&this['commentThreadInputView']&&(_0x1a9b8d[_0x1bdc('0x48')]['push'](this[_0x1bdc('0x38')],this[_0x1bdc('0x30')]),this[_0x1bdc('0x38')][_0x1bdc('0x3e')](_0x1bdc('0x2b'))['to'](this),this[_0x1bdc('0x38')][_0x1bdc('0x3e')](_0x1bdc('0x8'))['to'](this),this['commentThreadInputView']['delegate'](_0x1bdc('0x2b'))['to'](this),this[_0x1bdc('0x30')][_0x1bdc('0x3e')](_0x1bdc('0x8'))['to'](this)),_0x1a9b8d;}[_0x1bdc('0x54')](){super[_0x1bdc('0x54')](),this[_0x1bdc('0x22')]=this[_0x1bdc('0xc')]['querySelector'](_0x1bdc('0x1a')),this[_0x1bdc('0x22')][_0x1bdc('0x35')]=this[_0x1bdc('0x7')],this['on'](_0x1bdc('0x52'),(_0x5e5b99,_0x98ca62,_0x43ecb7)=>{this[_0x1bdc('0x22')][_0x1bdc('0x35')]=_0x43ecb7;});}[_0x1bdc('0x53')](_0x2f51db,_0x34e395,_0x233bbd,_0x5b8df4,_0xf5f994){const _0x4e5882=new _0x5831e8(this['locale']);return _0x4e5882[_0x1bdc('0x4d')]({'label':_0x2f51db,'icon':_0x34e395,'tooltip':!0x0,'tooltipPosition':_0xf5f994}),_0x4e5882[_0x1bdc('0x39')]({'attributes':{'class':_0x233bbd}}),_0x4e5882['on'](_0x1bdc('0x19'),()=>{this[_0x1bdc('0x4a')](_0x5b8df4,this[_0x1bdc('0x2c')]['id']);}),_0x4e5882;}[_0x1bdc('0x23')](){return _0x1bdc('0x3f')===this[_0x1bdc('0x2c')][_0x1bdc('0x4e')]['@external'][_0x1bdc('0x25')]?_0x5ae40a(this[_0x1bdc('0x3c')],_0x1bdc('0x4c')):_0x5ae40a(this['locale'],_0x1bdc('0x1'));}[_0x1bdc('0x34')](){return this[_0x1bdc('0x2c')][_0x1bdc('0x31')]?_0x1bdc('0x3f')===this[_0x1bdc('0x2c')][_0x1bdc('0x4e')][_0x1bdc('0x42')]['source']?_0x5ae40a(this[_0x1bdc('0x3c')],_0x1bdc('0x40'),this[_0x1bdc('0x2c')][_0x1bdc('0x14')][_0x1bdc('0x26')]):_0x5ae40a(this[_0x1bdc('0x3c')],_0x1bdc('0x4b'),this[_0x1bdc('0x2c')][_0x1bdc('0x14')][_0x1bdc('0x26')]):null;}}function ci(_0x86dd8b,_0x2634cc){let _0x1f43b5='';return _0x1f43b5+=_0x86dd8b['split']('*')[_0x1bdc('0x27')]((_0x164261,_0x3bce72)=>_0x3bce72%0x2!=0x0?_0x1bdc('0x18')+ri(_0x164261)+_0x1bdc('0x29'):ri(_0x164261))[_0x1bdc('0x32')](''),_0x2634cc&&(_0x1f43b5+=_0x1bdc('0x50')+_0x2634cc[_0x1bdc('0x16')]+'\x22\x20title=\x22'+_0x2634cc[_0x1bdc('0x36')]+_0x1bdc('0x2a')),_0x1f43b5;}function ri(_0x748004){const _0x4a3744=document[_0x1bdc('0x45')](_0x1bdc('0x21'));return _0x4a3744[_0x1bdc('0x4')]=_0x748004,_0x4a3744[_0x1bdc('0x35')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0xccf1c0,_0x48b909,_0x5ef4c2){const t=_0xccf1c0['t'];switch(_0x48b909){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',_0x5ef4c2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5ef4c2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5ef4c2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5ef4c2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5ef4c2);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',_0x5ef4c2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5ef4c2);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',_0x5ef4c2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5ef4c2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5ef4c2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5ef4c2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5ef4c2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5ef4c2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5ef4c2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5ef4c2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5ef4c2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5ef4c2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5ef4c2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5ef4c2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5ef4c2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5ef4c2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5ef4c2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5ef4c2);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'},_0x5ef4c2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5ef4c2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5ef4c2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5ef4c2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5ef4c2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5ef4c2);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'},_0x5ef4c2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5ef4c2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5ef4c2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5ef4c2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5ef4c2);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'},_0x5ef4c2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5ef4c2);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'},_0x5ef4c2);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'},_0x5ef4c2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5ef4c2);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'},_0x5ef4c2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5ef4c2);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'},_0x5ef4c2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5ef4c2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5ef4c2);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'},_0x5ef4c2);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'},_0x5ef4c2);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 _0x48b909;}}
|
|
23
|
+
export function getTranslation(_0x2f513a,_0x456e59,_0x90755a){const t=_0x2f513a['t'];switch(_0x456e59){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',_0x90755a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x90755a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x90755a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x90755a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x90755a);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',_0x90755a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x90755a);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',_0x90755a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x90755a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x90755a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x90755a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x90755a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x90755a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x90755a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x90755a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x90755a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x90755a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x90755a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x90755a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x90755a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x90755a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x90755a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x90755a);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'},_0x90755a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x90755a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x90755a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x90755a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x90755a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x90755a);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'},_0x90755a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x90755a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x90755a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x90755a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x90755a);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'},_0x90755a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x90755a);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'},_0x90755a);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'},_0x90755a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x90755a);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'},_0x90755a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x90755a);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'},_0x90755a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x90755a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x90755a);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'},_0x90755a);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'},_0x90755a);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 _0x456e59;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4abc=['execute','type','isIntersecting','replace','isArray','getRanges','end','change','deletion','length','createPositionAt','isTouching','isCollapsed','from','createPositionAfter','value','push','next','content','\x20[color\x20','isMultiRange','isInContent','createPositionBefore','start','isObject','schema','color','splice','createRange'];(function(_0x4d7b88,_0x4abc7b){const _0x5e4235=function(_0x15797f){while(--_0x15797f){_0x4d7b88['push'](_0x4d7b88['shift']());}};_0x5e4235(++_0x4abc7b);}(_0x4abc,0x1a9));const _0x5e42=function(_0x4d7b88,_0x4abc7b){_0x4d7b88=_0x4d7b88-0x0;let _0x5e4235=_0x4abc[_0x4d7b88];return _0x5e4235;};export function normalizeDescription(_0x505f99){return Array[_0x5e42('0xe')](_0x505f99)||(_0x505f99=[_0x505f99]),_0x505f99['map'](_0x5a9ecf=>{const _0x539b7c=_0x5a9ecf[_0x5e42('0x1c')][_0x5e42('0xd')](/\*/g,''),_0x10adcc=_0x5a9ecf[_0x5e42('0x7')]?_0x5e42('0x0')+_0x5a9ecf[_0x5e42('0x7')][_0x5e42('0x19')]+']':'';return'['+_0x5a9ecf[_0x5e42('0xb')]+']\x20'+_0x539b7c+_0x10adcc;})['join'](';\x20');}export function sortSuggestions(_0xd35da2){return _0xd35da2['sort']((_0x1573f4,_0x2f07c9)=>_0x5e42('0x12')==_0x1573f4[_0x5e42('0xb')]&&_0x5e42('0x12')!=_0x2f07c9[_0x5e42('0xb')]?-0x1:_0x5e42('0x12')!=_0x1573f4['type']&&_0x5e42('0x12')==_0x2f07c9[_0x5e42('0xb')]?0x1:0x0);}export function getSelectedSuggestions(_0x13e037,_0x50e48a){const _0xc97c6=Array[_0x5e42('0x17')](_0x13e037[_0x5e42('0xf')]()),_0x34601d=new Set();for(const _0x28a765 of _0x50e48a)if(_0x28a765[_0x5e42('0x2')])for(const _0x361e30 of _0xc97c6)for(const _0xca8e2e of _0x28a765[_0x5e42('0xf')]())(_0x361e30[_0x5e42('0xc')](_0xca8e2e)||_0x13e037[_0x5e42('0x16')]&&!_0x28a765[_0x5e42('0x1')]&&_0x28a765[_0x5e42('0x1b')]&&_0xca8e2e[_0x5e42('0x10')][_0x5e42('0x15')](_0x361e30[_0x5e42('0x4')]))&&_0x34601d['add'](_0x28a765);return _0x34601d;}export function getRangesOfBlockGroups(_0x879bbf,_0x3d20a7){let _0x1d4b2a,_0x424fe6=0x0;const _0x2661d8=[],_0x520469=_0x3d20a7[_0x5e42('0x6')];for(;_0x424fe6<_0x879bbf['length'];){const _0x2c7790=_0x879bbf[_0x424fe6],_0x5afcf1=_0x879bbf[_0x424fe6+0x1];_0x1d4b2a||(_0x1d4b2a=_0x3d20a7[_0x5e42('0x3')](_0x2c7790)),co(_0x3d20a7,_0x2c7790,_0x5afcf1)||(_0x2661d8[_0x5e42('0x1a')](_0x3d20a7[_0x5e42('0x9')](_0x1d4b2a,_0x520469[_0x5e42('0x5')](_0x2c7790)?_0x3d20a7['createPositionAfter'](_0x2c7790):_0x3d20a7[_0x5e42('0x14')](_0x2c7790,_0x5e42('0x10')))),_0x1d4b2a=null),_0x424fe6++;}return _0x2661d8;}function co(_0x435ba0,_0x5057cb,_0x1606e6){if(!_0x1606e6)return!0x1;const _0x36bf8c=_0x435ba0[_0x5e42('0x18')](_0x5057cb),_0xe3dba5=_0x435ba0[_0x5e42('0x3')](_0x1606e6);return _0x36bf8c['isTouching'](_0xe3dba5);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x41b32c,_0x542e8f,_0x1b6fa9){for(;_0x1b6fa9[_0x5e42('0x13')];){const _0x59dcaa=_0x1b6fa9[_0x5e42('0x8')](0x0,0x64);_0x41b32c[_0x5e42('0x11')](()=>{for(const _0x3852f5 of _0x59dcaa)_0x3852f5[_0x5e42('0x2')]&&_0x542e8f[_0x5e42('0xa')](_0x3852f5['id']);});}}
|