@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231119.0 → 0.0.0-nightly-20231121.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 _0x5acb=['_viewToController','_unbindEditors','comments.maxCommentCharsWhenCollapsed','listenTo','editor','getAllAdjacentSuggestions','head','createCommentThreadController','descriptionParts','Accept\x20all\x20suggestions','length','commandName','map','_handleSuggestionControllerDelayed','actionView','createAnnotationView','change:activeAnnotations','separator','activeAnnotations','isInContent','arrowView','isEnabled','discardButton','CommentsUI','values','_handleControllerBuffer','comments.editorConfig','editing','trackChanges','model','acceptSelectedSuggestions','discardSelectedSuggestions','isOn','comments','getByInnerView','filter','isDirty','_bindAnnotationToEditors','destroy','_disableComments','type','_initializeController','clear','_annotationViews','commentThread','_descriptionFactory','Track\x20changes','_createUIButton','hasSuggestion','bind','plugins','Discard\x20all\x20selected\x20suggestions','TrackChangesUI','pluginName','suggestionLoaded','get','_suggestionToController','define','activeMarkers','EditorAnnotations','keys','comments.maxThreadTotalWeight','previous','addSourceCollector','suggestion-','has','config','isMultiRange','_refreshActiveMarkers','buttonView','from','set','stopListening','mainView','view','componentFactory','createAnnotation','focus','delete','some','remove','getJoined','execute','add','reduce','trackChanges.SuggestionThreadView','locale','getSuggestion','size','comments.maxCommentsWhenCollapsed','getDescriptions','CommentsRepository','push','refreshSelectedViews','change:previous','innerView','SuggestionThreadView','suggestionChanged','Accept\x20all\x20selected\x20suggestions','CommentView','button','Annotations','trackChanges.disableComments','_updateController','Discard\x20all\x20suggestions','commands','unbind','_destroyController','acceptAllSuggestions','TrackChangesEditing'];(function(_0x350081,_0x5acb96){const _0x548185=function(_0x301815){while(--_0x301815){_0x350081['push'](_0x350081['shift']());}};_0x548185(++_0x5acb96);}(_0x5acb,0x142));const _0x5481=function(_0x350081,_0x5acb96){_0x350081=_0x350081-0x0;let _0x548185=_0x5acb[_0x350081];return _0x548185;};import{Plugin as _0x4244ba}from'ckeditor5/src/core';import{Collection as _0x23779b}from'ckeditor5/src/utils';import{Model as _0x269b41,SplitButtonView as _0x364fb8,createDropdown as _0x40b253,addListToDropdown as _0xf2d630}from'ckeditor5/src/ui';import{Users as _0x4f1c50,getDateTimeFormatter as _0x449b04,getAllMarkersDomElementsSorted as _0x53ea58}from'ckeditor5-collaboration/src/collaboration-core';import _0x3aa484 from'./trackchangesediting';import _0x5b6e45 from'./ui/suggestioncontroller';import _0x4f133a from'./ui/view/suggestionthreadview';import{getTranslation as _0x256c74}from'./utils/common-translations';import _0x13e732 from'../theme/icons/track-changes.svg';export default class d extends _0x4244ba{static get['requires'](){return[_0x3aa484,_0x4f1c50,_0x5481('0x63'),'Annotations',_0x5481('0x43')];}static get[_0x5481('0x3d')](){return _0x5481('0x3c');}constructor(_0x12d922){super(_0x12d922),this['_suggestionToController']=new Map(),this[_0x5481('0x8')]=new Map(),this['_annotationViews']=new Map(),this[_0x5481('0x21')]=new Map();const _0x776b3c=this[_0x5481('0xc')][_0x5481('0x4a')];_0x776b3c[_0x5481('0x41')](_0x5481('0x5d'),_0x4f133a),_0x776b3c[_0x5481('0x41')]('trackChanges.disableComments',!0x1),this[_0x5481('0x2f')]=_0x776b3c[_0x5481('0x3f')](_0x5481('0x0'));}[_0x5481('0x15')](_0x5220fe,_0x4807c9){0x0===this[_0x5481('0x21')][_0x5481('0x60')]&&setTimeout(()=>{for(const [_0x34e077,_0x5850b8]of this[_0x5481('0x21')]){const _0x2a09cc=this[_0x5481('0x40')]['has'](_0x34e077);_0x2a09cc||_0x5850b8?_0x2a09cc&&_0x5850b8&&this[_0x5481('0x5')](_0x34e077):this['_initializeController'](_0x34e077);}this[_0x5481('0xc')][_0x5481('0x3a')][_0x5481('0x3f')]('EditorAnnotations')[_0x5481('0x65')](),this[_0x5481('0x4c')](),this[_0x5481('0x21')][_0x5481('0x32')]();},0xa),this[_0x5481('0x21')][_0x5481('0x4f')](_0x5220fe,_0x4807c9);}['init'](){const _0x2edf88=this[_0x5481('0xc')],_0x23835e=_0x2edf88['plugins'][_0x5481('0x3f')](_0x5481('0x7')),_0x14518f=_0x2edf88[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x6d')),_0x12390e=_0x2edf88[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x43')),_0x293346=_0x2edf88['plugins'][_0x5481('0x3f')](_0x5481('0x63'));_0x2edf88['ui'][_0x5481('0x53')][_0x5481('0x5b')]('trackChanges',_0x2ed75c=>this[_0x5481('0x37')](_0x2ed75c)),_0x12390e[_0x5481('0x47')](()=>{const _0x107faa=[];for(const [_0x4a81a3,_0x2a2a27]of Array[_0x5481('0x4e')](this['_suggestionToController'])){const _0x497112=_0x4a81a3['getAllAdjacentSuggestions'](),_0xa89797=[];for(const _0x18dc74 of _0x497112){if(!_0x18dc74[_0x5481('0x1b')])continue;if(_0x18dc74[_0x5481('0x4b')]){_0xa89797[_0x5481('0x64')](..._0x18dc74['getRanges']());continue;}const _0xde34dd=_0x18dc74['getFirstRange']();if(_0xa89797[_0x5481('0x12')]>0x0){const _0x7670d6=_0xa89797[0x0][_0x5481('0x59')](_0xde34dd);if(_0x7670d6){_0xa89797[0x0]=_0x7670d6;continue;}}_0xa89797[_0x5481('0x64')](_0xde34dd);}_0x107faa[_0x5481('0x64')]([_0x2a2a27[_0x5481('0x52')],_0xa89797]);}return _0x107faa;}),this[_0x5481('0xb')](_0x23835e,_0x5481('0x3e'),(_0x27e48a,_0x32aa41)=>{this[_0x5481('0xb')](_0x32aa41,_0x5481('0x66'),(_0x3af69a,_0x5a4c9e,_0x2ff5ee,_0x2a86a5)=>{_0x32aa41[_0x5481('0x1b')]&&(null==_0x2ff5ee?(this[_0x5481('0x1')](_0x2a86a5['head']),this['_handleSuggestionControllerDelayed'](_0x32aa41,!0x1)):(this['_updateController'](_0x2ff5ee['head']),null==_0x2a86a5&&this[_0x5481('0x15')](_0x32aa41,!0x0)));}),null!==_0x32aa41[_0x5481('0x46')]?this['_updateController'](_0x32aa41[_0x5481('0xe')]):this[_0x5481('0x15')](_0x32aa41,!0x1);}),this[_0x5481('0xb')](_0x23835e,'suggestionUnloaded',(_0x285593,_0x1223e2,_0x57b593)=>{this[_0x5481('0x50')](_0x1223e2,_0x5481('0x66')),this[_0x5481('0x21')][_0x5481('0x56')](_0x1223e2),this[_0x5481('0x40')][_0x5481('0x49')](_0x1223e2)&&this[_0x5481('0x5')](_0x1223e2),_0x57b593&&this['_updateController'](_0x57b593[_0x5481('0xe')]);}),this[_0x5481('0xb')](_0x23835e,_0x5481('0x69'),(_0x81d8de,_0x54f93c)=>{this[_0x5481('0x1')](_0x54f93c);}),this['listenTo'](_0x14518f,_0x5481('0x18'),()=>{this[_0x5481('0x4c')]();}),this[_0x5481('0xb')](_0x293346,'addComment',(_0x134286,{threadId:_0x193345,isFromAdapter:_0xa35ca})=>{if(_0xa35ca||!_0x23835e[_0x5481('0x38')](_0x193345))return;const _0x31ac23=_0x23835e[_0x5481('0x5f')](_0x193345);this['_suggestionToController'][_0x5481('0x3f')](_0x31ac23)[_0x5481('0x52')][_0x5481('0x55')]();},{'priority':'lowest'});}[_0x5481('0x4c')](){const _0x153afe=this['editor']['plugins']['get'](_0x5481('0x6d')),_0xd641d1=this[_0x5481('0xc')][_0x5481('0x3a')][_0x5481('0x3f')]('TrackChangesEditing'),_0x227f9e=Array[_0x5481('0x4e')](_0x153afe[_0x5481('0x1a')],_0xf77eae=>_0xf77eae[_0x5481('0x67')])[_0x5481('0x2b')](_0x455349=>this[_0x5481('0x8')]['has'](_0x455349)),_0x15c5a0=[];for(const _0x39453a of _0x227f9e){const _0x66acfa=this[_0x5481('0x8')][_0x5481('0x3f')](_0x39453a)[_0x5481('0x25')]['getAllAdjacentSuggestions']();_0x15c5a0[_0x5481('0x64')](..._0x66acfa[_0x5481('0x5c')]((_0x585e55,_0x43629e)=>[..._0x585e55,..._0x43629e['getMarkerNames']()],[]));}_0xd641d1[_0x5481('0x42')]=_0x15c5a0;}['_createUIButton'](_0xa9c885){const _0x22f709=_0x40b253(_0xa9c885,_0x364fb8),_0x3c7433=this['editor'][_0x5481('0x3')][_0x5481('0x3f')](_0x5481('0x24')),_0x1e0eda=_0x256c74(_0xa9c885,_0x5481('0x36'));_0x22f709[_0x5481('0x4d')][_0x5481('0x4f')]({'tooltip':_0x1e0eda,'label':_0x1e0eda,'icon':_0x13e732}),_0x22f709['buttonView']['bind'](_0x5481('0x28'))['to'](_0x3c7433,'value'),_0x22f709['buttonView']['on']('execute',()=>{_0x3c7433[_0x5481('0x5a')](),this['editor']['editing'][_0x5481('0x52')][_0x5481('0x55')]();});const _0xa95aa5=new _0x23779b(),_0x3e1d4c=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x1e0eda,'commandName':'trackChanges'}},{'type':_0x5481('0x19')},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x11')),'commandName':_0x5481('0x6')}},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x6a')),'commandName':_0x5481('0x26')}},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x2')),'commandName':'discardAllSuggestions'}},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x3b')),'commandName':_0x5481('0x27')}}];for(const _0x254bc8 of _0x3e1d4c){let _0x1cae1d={'type':_0x5481('0x19')};if(_0x254bc8[_0x5481('0x25')]){const _0x53a318=new _0x269b41(_0x254bc8[_0x5481('0x25')]),_0x20fd8e=this[_0x5481('0xc')][_0x5481('0x3')][_0x5481('0x3f')](_0x53a318[_0x5481('0x13')]);_0x53a318[_0x5481('0x39')]('isOn',_0x5481('0x1d'))['to'](_0x20fd8e,'value',_0x5481('0x1d')),_0x1cae1d={'type':_0x254bc8[_0x5481('0x30')],'model':_0x53a318};}_0xa95aa5[_0x5481('0x5b')](_0x1cae1d);}_0xf2d630(_0x22f709,_0xa95aa5);const _0x268a39=_0x3e1d4c[_0x5481('0x2b')](_0x1ddd63=>null!=_0x1ddd63[_0x5481('0x25')])[_0x5481('0x14')](_0x2df541=>this[_0x5481('0xc')]['commands'][_0x5481('0x3f')](_0x2df541[_0x5481('0x25')]['commandName'])),_0xdfa29c=_0x22f709[_0x5481('0x4d')];return _0xdfa29c[_0x5481('0x16')]['unbind'](_0x5481('0x1d')),_0xdfa29c[_0x5481('0x1c')][_0x5481('0x4')](_0x5481('0x1d')),_0xdfa29c['actionView'][_0x5481('0x39')](_0x5481('0x1d'))['to'](_0x3c7433,_0x5481('0x1d')),_0xdfa29c[_0x5481('0x1c')][_0x5481('0x39')](_0x5481('0x1d'))['toMany'](_0x268a39,_0x5481('0x1d'),(..._0x3d55aa)=>_0x3d55aa[_0x5481('0x57')](_0x2668cf=>_0x2668cf)),_0x22f709['on'](_0x5481('0x5a'),_0xdefa07=>{this[_0x5481('0xc')][_0x5481('0x5a')](_0xdefa07['source']['commandName']),this['editor'][_0x5481('0x23')][_0x5481('0x52')]['focus']();}),_0x22f709;}[_0x5481('0x31')](_0x4aa3b3){const _0x290c45=this[_0x5481('0xc')],_0x28a163=_0x290c45[_0x5481('0x4a')],_0x16fc88=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x6d')),_0x13c2c7=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x63')),_0x41fb4a=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x43')),_0x233bf0=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x4f1c50)['me'],_0x1085ee=_0x28a163[_0x5481('0x3f')](_0x5481('0x24'))[_0x5481('0x68')],{CommentsListView:_0x523461,CommentThreadInputView:_0x2c0ee2}=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x1f'));let _0x3b7d83,_0x3e1294;this[_0x5481('0x33')][_0x5481('0x49')](_0x4aa3b3['id'])?(_0x3e1294=this[_0x5481('0x33')][_0x5481('0x3f')](_0x4aa3b3['id']),_0x3b7d83=_0x3e1294['mainView']):(_0x3b7d83=new _0x1085ee(_0x290c45['locale'],_0x4aa3b3,_0x233bf0,{'disableComments':this['_disableComments'],'editorConfig':_0x28a163['get'](_0x5481('0x22')),'maxCommentsWhenCollapsed':_0x28a163[_0x5481('0x3f')](_0x5481('0x61')),'maxThreadTotalWeight':_0x28a163[_0x5481('0x3f')](_0x5481('0x45')),'maxCommentCharsWhenCollapsed':_0x28a163[_0x5481('0x3f')](_0x5481('0xa')),'formatDateTime':_0x449b04(_0x28a163['get'](_0x5481('0x5e'))),'CommentView':_0x28a163[_0x5481('0x3f')](_0x5481('0x29'))[_0x5481('0x6b')],'CommentsListView':_0x523461,'CommentThreadInputView':_0x2c0ee2}),_0x3b7d83['acceptButton']['on'](_0x5481('0x5a'),()=>{_0x290c45[_0x5481('0x23')][_0x5481('0x52')][_0x5481('0x55')]();}),_0x3b7d83[_0x5481('0x1e')]['on'](_0x5481('0x5a'),()=>{_0x290c45['editing'][_0x5481('0x52')][_0x5481('0x55')]();}),_0x3e1294=_0x16fc88[_0x5481('0x17')](this[_0x5481('0xc')][_0x5481('0x5e')],_0x3b7d83),_0x3e1294['bind'](_0x5481('0x2c'))['to'](_0x3b7d83,'isDirty'),_0x3e1294[_0x5481('0x39')](_0x5481('0x12'))['to'](_0x3b7d83),_0x3e1294[_0x5481('0x39')](_0x5481('0x30'))['to'](_0x3b7d83,'type',_0x1a5329=>_0x5481('0x48')+_0x1a5329),this[_0x5481('0x33')][_0x5481('0x4f')](_0x4aa3b3['id'],_0x3e1294));const _0x372747=_0x13c2c7[_0x5481('0xf')](_0x4aa3b3[_0x5481('0x34')],_0x3b7d83),_0x2d5805=new _0x5b6e45(_0x290c45,_0x4aa3b3,_0x3b7d83,_0x372747),_0x4ef1eb=_0x4aa3b3[_0x5481('0xd')]()['filter'](_0x5f2221=>_0x5f2221[_0x5481('0x1b')]);_0x3b7d83[_0x5481('0x10')]=_0x290c45['plugins'][_0x5481('0x3f')](_0x5481('0x7'))[_0x5481('0x35')][_0x5481('0x62')](_0x4ef1eb),this[_0x5481('0x40')][_0x5481('0x4f')](_0x4aa3b3,_0x2d5805),this[_0x5481('0x8')]['set'](_0x3b7d83,_0x2d5805);const _0x36b640=_0x16fc88[_0x5481('0x54')]({'view':_0x3e1294,'target':()=>{const _0x48d74c=[],_0x21a35a=_0x4aa3b3[_0x5481('0xd')]()[_0x5481('0x2b')](_0x11327e=>_0x11327e[_0x5481('0x1b')]);for(const _0x34aa33 of _0x21a35a)_0x48d74c[_0x5481('0x64')](..._0x34aa33['getMarkers']());return _0x53ea58(_0x290c45['editing'],_0x48d74c);},'type':()=>'suggestion-'+_0x2d5805[_0x5481('0x52')][_0x5481('0x30')]});_0x13c2c7[_0x5481('0x2d')](_0x3b7d83,_0x36b640),_0x16fc88[_0x5481('0x5b')](_0x36b640),_0x41fb4a['registerAnnotation'](_0x36b640);}[_0x5481('0x5')](_0x48b510){const _0x2516f9=this[_0x5481('0xc')][_0x5481('0x3a')]['get']('CommentsRepository'),_0xb5cf6a=this[_0x5481('0xc')][_0x5481('0x3a')]['get']('Annotations'),_0x54f931=this[_0x5481('0x40')][_0x5481('0x3f')](_0x48b510),_0x58e7cc=_0x54f931[_0x5481('0x52')],_0x2302ef=_0xb5cf6a[_0x5481('0x2a')](_0x58e7cc);_0x2516f9[_0x5481('0x9')](_0x58e7cc),_0x2302ef&&_0xb5cf6a[_0x5481('0x58')](_0x2302ef),this[_0x5481('0x40')][_0x5481('0x56')](_0x48b510),this[_0x5481('0x8')][_0x5481('0x56')](_0x58e7cc),_0x54f931[_0x5481('0x2e')]();}[_0x5481('0x1')](_0x37dce1){if(!_0x37dce1['isInContent']||!this['_suggestionToController'][_0x5481('0x49')](_0x37dce1))return;const _0x17b8f5=this[_0x5481('0xc')][_0x5481('0x3a')]['get'](_0x5481('0x7')),_0x56b9e8=this[_0x5481('0x40')][_0x5481('0x3f')](_0x37dce1),_0x2cc399=_0x37dce1[_0x5481('0xd')]();_0x56b9e8[_0x5481('0x52')][_0x5481('0x10')]=_0x17b8f5[_0x5481('0x35')][_0x5481('0x62')](_0x2cc399);}[_0x5481('0x2e')](){for(const _0x2be68b of this['_suggestionToController'][_0x5481('0x44')]())this[_0x5481('0x5')](_0x2be68b);for(const _0x4635b0 of this[_0x5481('0x33')][_0x5481('0x20')]())_0x4635b0[_0x5481('0x51')][_0x5481('0x2e')]();super[_0x5481('0x2e')]();}}
|
|
23
|
+
const _0x1ce5=['getFirstRange','push','editing','TrackChangesEditing','discardSelectedSuggestions','add','clear','locale','focus','_handleSuggestionControllerDelayed','_annotationViews','isOn','values','refreshSelectedViews','_viewToController','activeAnnotations','_initializeController','suggestionChanged','from','switchbutton','editor','createCommentThreadController','change:previous','_createUIButton','button','acceptSelectedSuggestions','Accept\x20all\x20suggestions','type','Annotations','define','_destroyController','bind','isMultiRange','descriptionParts','pluginName','_descriptionFactory','model','value','actionView','getDescriptions','isDirty','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','_updateController','execute','delete','getAllAdjacentSuggestions','suggestion-','comments.maxCommentsWhenCollapsed','_unbindEditors','CommentsRepository','getByInnerView','commands','unbind','separator','filter','comments.editorConfig','Track\x20changes','Discard\x20all\x20suggestions','_refreshActiveMarkers','size','_disableComments','commandName','getMarkerNames','innerView','suggestionLoaded','comments.maxCommentCharsWhenCollapsed','stopListening','registerAnnotation','buttonView','TrackChangesUI','remove','getJoined','discardButton','CommentsUI','plugins','discardAllSuggestions','requires','get','_bindAnnotationToEditors','some','trackChanges.disableComments','keys','isInContent','CommentView','change:activeAnnotations','_handleControllerBuffer','acceptButton','trackChanges','previous','Accept\x20all\x20selected\x20suggestions','mainView','head','componentFactory','arrowView','suggestionUnloaded','config','destroy','_suggestionToController','listenTo','hasSuggestion','set','has','isEnabled','map','length','view'];(function(_0x2e831d,_0x1ce5b1){const _0x59a352=function(_0x4c41da){while(--_0x4c41da){_0x2e831d['push'](_0x2e831d['shift']());}};_0x59a352(++_0x1ce5b1);}(_0x1ce5,0x127));const _0x59a3=function(_0x2e831d,_0x1ce5b1){_0x2e831d=_0x2e831d-0x0;let _0x59a352=_0x1ce5[_0x2e831d];return _0x59a352;};import{Plugin as _0x36f12d}from'ckeditor5/src/core';import{Collection as _0x270df7}from'ckeditor5/src/utils';import{Model as _0x56de85,SplitButtonView as _0xa54fc6,createDropdown as _0xce1be9,addListToDropdown as _0x3db859}from'ckeditor5/src/ui';import{Users as _0x2b7640,getDateTimeFormatter as _0x2be588,getAllMarkersDomElementsSorted as _0x31c1d8}from'ckeditor5-collaboration/src/collaboration-core';import _0x2073d6 from'./trackchangesediting';import _0x2b52a5 from'./ui/suggestioncontroller';import _0x47fc8f from'./ui/view/suggestionthreadview';import{getTranslation as _0x3bc4e8}from'./utils/common-translations';import _0x1e19a9 from'../theme/icons/track-changes.svg';export default class d extends _0x36f12d{static get[_0x59a3('0x67')](){return[_0x2073d6,_0x2b7640,_0x59a3('0x4c'),_0x59a3('0x36'),_0x59a3('0x43')];}static get[_0x59a3('0x3c')](){return _0x59a3('0x60');}constructor(_0x3264cf){super(_0x3264cf),this[_0x59a3('0x11')]=new Map(),this[_0x59a3('0x28')]=new Map(),this[_0x59a3('0x24')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x10bb36=this[_0x59a3('0x2e')][_0x59a3('0xf')];_0x10bb36['define']('trackChanges.SuggestionThreadView',_0x47fc8f),_0x10bb36[_0x59a3('0x37')]('trackChanges.disableComments',!0x1),this[_0x59a3('0x57')]=_0x10bb36[_0x59a3('0x68')](_0x59a3('0x0'));}[_0x59a3('0x23')](_0x374204,_0x28f99b){0x0===this[_0x59a3('0x5')][_0x59a3('0x56')]&&setTimeout(()=>{for(const [_0x2ca1b4,_0x2775e1]of this['_handleControllerBuffer']){const _0x4b969a=this[_0x59a3('0x11')]['has'](_0x2ca1b4);_0x4b969a||_0x2775e1?_0x4b969a&&_0x2775e1&&this[_0x59a3('0x38')](_0x2ca1b4):this[_0x59a3('0x2a')](_0x2ca1b4);}this[_0x59a3('0x2e')][_0x59a3('0x65')]['get'](_0x59a3('0x43'))[_0x59a3('0x27')](),this[_0x59a3('0x55')](),this[_0x59a3('0x5')][_0x59a3('0x20')]();},0xa),this[_0x59a3('0x5')][_0x59a3('0x14')](_0x374204,_0x28f99b);}['init'](){const _0x4d8503=this[_0x59a3('0x2e')],_0x5e2f1d=_0x4d8503['plugins'][_0x59a3('0x68')](_0x59a3('0x1d')),_0x2150b1=_0x4d8503[_0x59a3('0x65')][_0x59a3('0x68')]('Annotations'),_0x351ba1=_0x4d8503['plugins']['get']('EditorAnnotations'),_0x41b9ff=_0x4d8503[_0x59a3('0x65')][_0x59a3('0x68')](_0x59a3('0x4c'));_0x4d8503['ui'][_0x59a3('0xc')][_0x59a3('0x1f')](_0x59a3('0x7'),_0x5f1713=>this[_0x59a3('0x31')](_0x5f1713)),_0x351ba1['addSourceCollector'](()=>{const _0x4300cf=[];for(const [_0x2b0059,_0x5f4d24]of Array[_0x59a3('0x2c')](this[_0x59a3('0x11')])){const _0xaa7b88=_0x2b0059[_0x59a3('0x48')](),_0x50c56c=[];for(const _0x48ca2a of _0xaa7b88){if(!_0x48ca2a['isInContent'])continue;if(_0x48ca2a[_0x59a3('0x3a')]){_0x50c56c['push'](..._0x48ca2a['getRanges']());continue;}const _0x32911a=_0x48ca2a[_0x59a3('0x1a')]();if(_0x50c56c[_0x59a3('0x18')]>0x0){const _0x206c7a=_0x50c56c[0x0][_0x59a3('0x62')](_0x32911a);if(_0x206c7a){_0x50c56c[0x0]=_0x206c7a;continue;}}_0x50c56c[_0x59a3('0x1b')](_0x32911a);}_0x4300cf['push']([_0x5f4d24[_0x59a3('0x19')],_0x50c56c]);}return _0x4300cf;}),this[_0x59a3('0x12')](_0x5e2f1d,_0x59a3('0x5b'),(_0x199687,_0x36df79)=>{this[_0x59a3('0x12')](_0x36df79,_0x59a3('0x30'),(_0x576fc2,_0x4f25c0,_0x4a83f8,_0x3bb106)=>{_0x36df79[_0x59a3('0x2')]&&(null==_0x4a83f8?(this['_updateController'](_0x3bb106['head']),this[_0x59a3('0x23')](_0x36df79,!0x1)):(this[_0x59a3('0x45')](_0x4a83f8[_0x59a3('0xb')]),null==_0x3bb106&&this[_0x59a3('0x23')](_0x36df79,!0x0)));}),null!==_0x36df79[_0x59a3('0x8')]?this['_updateController'](_0x36df79[_0x59a3('0xb')]):this[_0x59a3('0x23')](_0x36df79,!0x1);}),this[_0x59a3('0x12')](_0x5e2f1d,_0x59a3('0xe'),(_0x82b882,_0x33e50a,_0x42e340)=>{this[_0x59a3('0x5d')](_0x33e50a,_0x59a3('0x30')),this['_handleControllerBuffer'][_0x59a3('0x47')](_0x33e50a),this[_0x59a3('0x11')][_0x59a3('0x15')](_0x33e50a)&&this[_0x59a3('0x38')](_0x33e50a),_0x42e340&&this['_updateController'](_0x42e340[_0x59a3('0xb')]);}),this['listenTo'](_0x5e2f1d,_0x59a3('0x2b'),(_0x2c7642,_0x10d049)=>{this[_0x59a3('0x45')](_0x10d049);}),this[_0x59a3('0x12')](_0x2150b1,_0x59a3('0x4'),()=>{this[_0x59a3('0x55')]();}),this[_0x59a3('0x12')](_0x41b9ff,'addComment',(_0x2627d6,{threadId:_0x4927c9,isFromAdapter:_0x5f242f})=>{if(_0x5f242f||!_0x5e2f1d[_0x59a3('0x13')](_0x4927c9))return;const _0x1e400c=_0x5e2f1d['getSuggestion'](_0x4927c9);this[_0x59a3('0x11')]['get'](_0x1e400c)[_0x59a3('0x19')][_0x59a3('0x22')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xf88357=this[_0x59a3('0x2e')]['plugins'][_0x59a3('0x68')]('Annotations'),_0x3ad640=this[_0x59a3('0x2e')][_0x59a3('0x65')][_0x59a3('0x68')](_0x59a3('0x1d')),_0xe05933=Array[_0x59a3('0x2c')](_0xf88357[_0x59a3('0x29')],_0x433cde=>_0x433cde[_0x59a3('0x5a')])[_0x59a3('0x51')](_0x4e9cb9=>this[_0x59a3('0x28')][_0x59a3('0x15')](_0x4e9cb9)),_0x54c7fa=[];for(const _0x5e05f2 of _0xe05933){const _0x2a6431=this['_viewToController'][_0x59a3('0x68')](_0x5e05f2)['model'][_0x59a3('0x48')]();_0x54c7fa[_0x59a3('0x1b')](..._0x2a6431['reduce']((_0x23f649,_0x268cdc)=>[..._0x23f649,..._0x268cdc[_0x59a3('0x59')]()],[]));}_0x3ad640['activeMarkers']=_0x54c7fa;}['_createUIButton'](_0x732a81){const _0x11384b=_0xce1be9(_0x732a81,_0xa54fc6),_0x1cee7d=this[_0x59a3('0x2e')][_0x59a3('0x4e')][_0x59a3('0x68')](_0x59a3('0x7')),_0x14df6b=_0x3bc4e8(_0x732a81,_0x59a3('0x53'));_0x11384b[_0x59a3('0x5f')][_0x59a3('0x14')]({'tooltip':_0x14df6b,'label':_0x14df6b,'icon':_0x1e19a9}),_0x11384b[_0x59a3('0x5f')][_0x59a3('0x39')](_0x59a3('0x25'))['to'](_0x1cee7d,'value'),_0x11384b[_0x59a3('0x5f')]['on'](_0x59a3('0x46'),()=>{_0x1cee7d[_0x59a3('0x46')](),this['editor'][_0x59a3('0x1c')][_0x59a3('0x19')][_0x59a3('0x22')]();});const _0x6ba3e5=new _0x270df7(),_0x355a15=[{'type':_0x59a3('0x2d'),'model':{'withText':!0x0,'label':_0x14df6b,'commandName':'trackChanges'}},{'type':_0x59a3('0x50')},{'type':_0x59a3('0x32'),'model':{'withText':!0x0,'label':_0x3bc4e8(_0x732a81,_0x59a3('0x34')),'commandName':'acceptAllSuggestions'}},{'type':_0x59a3('0x32'),'model':{'withText':!0x0,'label':_0x3bc4e8(_0x732a81,_0x59a3('0x9')),'commandName':_0x59a3('0x33')}},{'type':'button','model':{'withText':!0x0,'label':_0x3bc4e8(_0x732a81,_0x59a3('0x54')),'commandName':_0x59a3('0x66')}},{'type':'button','model':{'withText':!0x0,'label':_0x3bc4e8(_0x732a81,_0x59a3('0x44')),'commandName':_0x59a3('0x1e')}}];for(const _0x4b2d81 of _0x355a15){let _0x25e889={'type':_0x59a3('0x50')};if(_0x4b2d81[_0x59a3('0x3e')]){const _0x32f1b8=new _0x56de85(_0x4b2d81[_0x59a3('0x3e')]),_0x4fa58c=this['editor'][_0x59a3('0x4e')][_0x59a3('0x68')](_0x32f1b8[_0x59a3('0x58')]);_0x32f1b8[_0x59a3('0x39')](_0x59a3('0x25'),_0x59a3('0x16'))['to'](_0x4fa58c,_0x59a3('0x3f'),_0x59a3('0x16')),_0x25e889={'type':_0x4b2d81[_0x59a3('0x35')],'model':_0x32f1b8};}_0x6ba3e5[_0x59a3('0x1f')](_0x25e889);}_0x3db859(_0x11384b,_0x6ba3e5);const _0x392ed0=_0x355a15[_0x59a3('0x51')](_0x3f99e5=>null!=_0x3f99e5['model'])[_0x59a3('0x17')](_0x5f5040=>this[_0x59a3('0x2e')][_0x59a3('0x4e')][_0x59a3('0x68')](_0x5f5040[_0x59a3('0x3e')][_0x59a3('0x58')])),_0x441750=_0x11384b[_0x59a3('0x5f')];return _0x441750[_0x59a3('0x40')][_0x59a3('0x4f')](_0x59a3('0x16')),_0x441750[_0x59a3('0xd')][_0x59a3('0x4f')](_0x59a3('0x16')),_0x441750[_0x59a3('0x40')]['bind'](_0x59a3('0x16'))['to'](_0x1cee7d,_0x59a3('0x16')),_0x441750['arrowView'][_0x59a3('0x39')]('isEnabled')['toMany'](_0x392ed0,_0x59a3('0x16'),(..._0x32069a)=>_0x32069a[_0x59a3('0x6a')](_0xbe0fae=>_0xbe0fae)),_0x11384b['on']('execute',_0xb12149=>{this[_0x59a3('0x2e')][_0x59a3('0x46')](_0xb12149['source'][_0x59a3('0x58')]),this[_0x59a3('0x2e')]['editing'][_0x59a3('0x19')]['focus']();}),_0x11384b;}[_0x59a3('0x2a')](_0x5713d0){const _0x351b3d=this['editor'],_0x52ecd0=_0x351b3d['config'],_0x2d5bc0=_0x351b3d[_0x59a3('0x65')][_0x59a3('0x68')](_0x59a3('0x36')),_0x230459=_0x351b3d[_0x59a3('0x65')][_0x59a3('0x68')](_0x59a3('0x4c')),_0x2bda89=_0x351b3d[_0x59a3('0x65')][_0x59a3('0x68')](_0x59a3('0x43')),_0xc01301=_0x351b3d['plugins'][_0x59a3('0x68')](_0x2b7640)['me'],_0x3cc204=_0x52ecd0['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x26ab6a,CommentThreadInputView:_0x5504e3}=_0x351b3d['plugins'][_0x59a3('0x68')](_0x59a3('0x64'));let _0x12a801,_0x512c11;this['_annotationViews'][_0x59a3('0x15')](_0x5713d0['id'])?(_0x512c11=this[_0x59a3('0x24')]['get'](_0x5713d0['id']),_0x12a801=_0x512c11[_0x59a3('0xa')]):(_0x12a801=new _0x3cc204(_0x351b3d['locale'],_0x5713d0,_0xc01301,{'disableComments':this[_0x59a3('0x57')],'editorConfig':_0x52ecd0[_0x59a3('0x68')](_0x59a3('0x52')),'maxCommentsWhenCollapsed':_0x52ecd0[_0x59a3('0x68')](_0x59a3('0x4a')),'maxThreadTotalWeight':_0x52ecd0[_0x59a3('0x68')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52ecd0[_0x59a3('0x68')](_0x59a3('0x5c')),'formatDateTime':_0x2be588(_0x52ecd0[_0x59a3('0x68')](_0x59a3('0x21'))),'CommentView':_0x52ecd0[_0x59a3('0x68')]('comments')[_0x59a3('0x3')],'CommentsListView':_0x26ab6a,'CommentThreadInputView':_0x5504e3}),_0x12a801[_0x59a3('0x6')]['on'](_0x59a3('0x46'),()=>{_0x351b3d['editing'][_0x59a3('0x19')][_0x59a3('0x22')]();}),_0x12a801[_0x59a3('0x63')]['on'](_0x59a3('0x46'),()=>{_0x351b3d[_0x59a3('0x1c')][_0x59a3('0x19')][_0x59a3('0x22')]();}),_0x512c11=_0x2d5bc0['createAnnotationView'](this[_0x59a3('0x2e')][_0x59a3('0x21')],_0x12a801),_0x512c11[_0x59a3('0x39')]('isDirty')['to'](_0x12a801,_0x59a3('0x42')),_0x512c11[_0x59a3('0x39')]('length')['to'](_0x12a801),_0x512c11['bind']('type')['to'](_0x12a801,_0x59a3('0x35'),_0x2657ad=>_0x59a3('0x49')+_0x2657ad),this[_0x59a3('0x24')][_0x59a3('0x14')](_0x5713d0['id'],_0x512c11));const _0x44c7a4=_0x230459[_0x59a3('0x2f')](_0x5713d0['commentThread'],_0x12a801),_0x2c0efe=new _0x2b52a5(_0x351b3d,_0x5713d0,_0x12a801,_0x44c7a4),_0x5c7b07=_0x5713d0[_0x59a3('0x48')]()[_0x59a3('0x51')](_0x5db33b=>_0x5db33b[_0x59a3('0x2')]);_0x12a801[_0x59a3('0x3b')]=_0x351b3d[_0x59a3('0x65')][_0x59a3('0x68')]('TrackChangesEditing')[_0x59a3('0x3d')][_0x59a3('0x41')](_0x5c7b07),this[_0x59a3('0x11')][_0x59a3('0x14')](_0x5713d0,_0x2c0efe),this[_0x59a3('0x28')][_0x59a3('0x14')](_0x12a801,_0x2c0efe);const _0x323dfa=_0x2d5bc0['createAnnotation']({'view':_0x512c11,'target':()=>{const _0x30b9e3=[],_0x1f462d=_0x5713d0['getAllAdjacentSuggestions']()[_0x59a3('0x51')](_0x28f1a5=>_0x28f1a5[_0x59a3('0x2')]);for(const _0x3a6716 of _0x1f462d)_0x30b9e3['push'](..._0x3a6716['getMarkers']());return _0x31c1d8(_0x351b3d[_0x59a3('0x1c')],_0x30b9e3);},'type':()=>'suggestion-'+_0x2c0efe[_0x59a3('0x19')]['type']});_0x230459[_0x59a3('0x69')](_0x12a801,_0x323dfa),_0x2d5bc0[_0x59a3('0x1f')](_0x323dfa),_0x2bda89[_0x59a3('0x5e')](_0x323dfa);}[_0x59a3('0x38')](_0x200cea){const _0x6fa7fb=this[_0x59a3('0x2e')][_0x59a3('0x65')]['get'](_0x59a3('0x4c')),_0x2c37e7=this[_0x59a3('0x2e')]['plugins'][_0x59a3('0x68')](_0x59a3('0x36')),_0x47727e=this[_0x59a3('0x11')][_0x59a3('0x68')](_0x200cea),_0x554195=_0x47727e[_0x59a3('0x19')],_0x50c7c4=_0x2c37e7[_0x59a3('0x4d')](_0x554195);_0x6fa7fb[_0x59a3('0x4b')](_0x554195),_0x50c7c4&&_0x2c37e7[_0x59a3('0x61')](_0x50c7c4),this[_0x59a3('0x11')][_0x59a3('0x47')](_0x200cea),this[_0x59a3('0x28')][_0x59a3('0x47')](_0x554195),_0x47727e[_0x59a3('0x10')]();}['_updateController'](_0xdc18db){if(!_0xdc18db['isInContent']||!this[_0x59a3('0x11')]['has'](_0xdc18db))return;const _0x579b8c=this['editor'][_0x59a3('0x65')][_0x59a3('0x68')](_0x59a3('0x1d')),_0x2f00a9=this[_0x59a3('0x11')][_0x59a3('0x68')](_0xdc18db),_0xd0d316=_0xdc18db[_0x59a3('0x48')]();_0x2f00a9[_0x59a3('0x19')]['descriptionParts']=_0x579b8c['_descriptionFactory'][_0x59a3('0x41')](_0xd0d316);}[_0x59a3('0x10')](){for(const _0x56e66f of this[_0x59a3('0x11')][_0x59a3('0x1')]())this[_0x59a3('0x38')](_0x56e66f);for(const _0x5e883d of this[_0x59a3('0x24')][_0x59a3('0x26')]())_0x5e883d[_0x59a3('0xa')][_0x59a3('0x10')]();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d04=['canEditAt','_editor','listenTo','isDirty','PENDING_ACTION_SUGGESTION','get','isEnabled','execute','_discardCommand','discardSuggestion','getRanges','add','PendingActions','remove','model','plugins','canAccept','locale','canDiscard','destroy','_setPendingAction','change:isDirty','_acceptCommand','_pendingAction','commentThreadController','acceptSuggestion','view','bind','unbind','_removePendingAction'];(function(_0x48383d,_0x4d0440){const _0x1c9462=function(_0x20ef5b){while(--_0x20ef5b){_0x48383d['push'](_0x48383d['shift']());}};_0x1c9462(++_0x4d0440);}(_0x4d04,0x193));const _0x1c94=function(_0x48383d,_0x4d0440){_0x48383d=_0x48383d-0x0;let _0x1c9462=_0x4d04[_0x48383d];return _0x1c9462;};import{ObservableMixin as _0x661fc2}from'ckeditor5/src/utils';import{getTranslation as _0xcc12b5}from'../utils/common-translations';export default class Pt extends _0x661fc2(){constructor(_0x40421b,_0x5a5834,_0x7cdb52,_0x35584a){super(),this[_0x1c94('0x1')]=_0x5a5834,this['view']=_0x7cdb52,this[_0x1c94('0xb')]=_0x35584a,this[_0x1c94('0x12')]=_0x40421b,this[_0x1c94('0x9')]=_0x40421b['commands']['get'](_0x1c94('0xc')),this['_discardCommand']=_0x40421b['commands'][_0x1c94('0x16')](_0x1c94('0x1a')),this['view'][_0x1c94('0xe')](_0x1c94('0x17'))['to'](this[_0x1c94('0x9')],this[_0x1c94('0x19')],(_0x45a276,_0x28f487)=>_0x45a276||_0x28f487),this[_0x1c94('0xd')][_0x1c94('0xe')](_0x1c94('0x3'))['to'](this[_0x1c94('0x9')],_0x1c94('0x17'),_0x2578f4=>_0x2578f4&&this[_0x1c94('0x12')]['model'][_0x1c94('0x11')](_0x5a5834['getRanges']())),this[_0x1c94('0xd')][_0x1c94('0xe')]('canDiscard')['to'](this[_0x1c94('0x19')],'isEnabled',_0x3732c8=>_0x3732c8&&this['_editor'][_0x1c94('0x1')][_0x1c94('0x11')](_0x5a5834[_0x1c94('0x1b')]())),this['_pendingAction']=null,_0x7cdb52[_0x1c94('0x14')]&&this[_0x1c94('0x7')](),this[_0x1c94('0x13')](_0x7cdb52,_0x1c94('0xc'),()=>this[_0x1c94('0xc')]()),this['listenTo'](_0x7cdb52,_0x1c94('0x1a'),()=>this['discardSuggestion']()),this[_0x1c94('0x13')](_0x7cdb52,_0x1c94('0x8'),()=>{_0x7cdb52['isDirty']?this[_0x1c94('0x7')]():this[_0x1c94('0x10')]();});}[_0x1c94('0xc')](){this[_0x1c94('0x9')]['execute'](this[_0x1c94('0x1')]['id']);}[_0x1c94('0x1a')](){this['_discardCommand'][_0x1c94('0x18')](this['model']['id']);}[_0x1c94('0x6')](){this['view']['unbind'](_0x1c94('0x17')),this[_0x1c94('0xd')][_0x1c94('0xf')](_0x1c94('0x3')),this[_0x1c94('0xd')][_0x1c94('0xf')](_0x1c94('0x5')),this['stopListening'](),this[_0x1c94('0xb')][_0x1c94('0x6')](),this['_pendingAction']&&this[_0x1c94('0x10')]();}['_setPendingAction'](){const _0x26dcb2=_0xcc12b5(this[_0x1c94('0x12')][_0x1c94('0x4')],_0x1c94('0x15'));this[_0x1c94('0xa')]=this['_editor'][_0x1c94('0x2')][_0x1c94('0x16')](_0x1c94('0x1d'))[_0x1c94('0x1c')](_0x26dcb2);}[_0x1c94('0x10')](){null!==this[_0x1c94('0xa')]&&this[_0x1c94('0x12')]['plugins'][_0x1c94('0x16')](_0x1c94('0x1d'))[_0x1c94('0x0')](this[_0x1c94('0xa')]),this[_0x1c94('0xa')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5914=['isDirty','destroy','assign','updateComment','focus','fire','commentInputView','showInput','canAccept','_createCommentThreadInputView','canDiscard','isEnabled','_model','setData','length','submit','value','delegate','isReadOnly','CommentView','editor','cancel','bind','_config','commentThread','set','authoredAt','_createCommentViews','editorConfig','commentsListView','_localUser','locale','hasDirtyComment','isActive','addComment','descriptionParts','commentThreadInputView','element'];(function(_0x182800,_0x59141a){const _0x283cc6=function(_0x40e197){while(--_0x40e197){_0x182800['push'](_0x182800['shift']());}};_0x283cc6(++_0x59141a);}(_0x5914,0xc9));const _0x283c=function(_0x182800,_0x59141a){_0x182800=_0x182800-0x0;let _0x283cc6=_0x5914[_0x182800];return _0x283cc6;};import{View as _0x260338}from'ckeditor5/src/ui';export default class si extends _0x260338{constructor(_0x444caa,_0x450101,_0x50761c,_0x3cf9c8){super(_0x444caa),this[_0x283c('0x12')]=null,this[_0x283c('0x19')]=null,this['set'](_0x283c('0x16'),!0x1),this[_0x283c('0xe')]('authoredAt',_0x450101['authoredAt']),this[_0x283c('0xb')](_0x283c('0xf'))['to'](_0x450101),this[_0x283c('0xe')](_0x283c('0x18'),[]),this[_0x283c('0xe')](_0x283c('0x1b'),!0x1),this[_0x283c('0xe')](_0x283c('0x0'),!0x1),this[_0x283c('0xe')](_0x283c('0x23'),!0x1),this[_0x283c('0xe')](_0x283c('0x25'),!0x1),this[_0x283c('0x1')]=_0x450101,this['_localUser']=_0x50761c,this['_config']=_0x3cf9c8,_0x3cf9c8['disableComments']?this[_0x283c('0xe')](_0x283c('0x3'),0x1):this[_0x283c('0x10')]();}[_0x283c('0x1f')](){this[_0x283c('0x1a')]['focus']();}[_0x283c('0x1c')](){this[_0x283c('0x12')]&&this['commentsListView'][_0x283c('0x1c')](),this[_0x283c('0x19')]&&this[_0x283c('0x19')][_0x283c('0x1c')](),super[_0x283c('0x1c')]();}[_0x283c('0x10')](){const {CommentsListView:_0x52867f}=this[_0x283c('0xc')];this[_0x283c('0x12')]=new _0x52867f(this[_0x283c('0x14')],this[_0x283c('0x1')]['commentThread'],Object[_0x283c('0x1d')]({'CommentView':this[_0x283c('0xc')][_0x283c('0x8')]},this[_0x283c('0xc')])),this[_0x283c('0x12')]['delegate']('removeComment')['to'](this),this[_0x283c('0x12')][_0x283c('0x6')](_0x283c('0x1e'))['to'](this),this[_0x283c('0x12')][_0x283c('0xb')]('isActive')['to'](this),this['set'](_0x283c('0x3'),this[_0x283c('0x12')][_0x283c('0x3')]+0x1),this[_0x283c('0xb')]('length')['to'](this[_0x283c('0x12')],'length',_0x27274f=>_0x27274f+0x1),this[_0x283c('0x19')]=this[_0x283c('0x24')](),this['on']('removeComment',()=>this[_0x283c('0x1f')]()),this['bind'](_0x283c('0x1b'))['to'](this[_0x283c('0x12')],_0x283c('0x15'),this[_0x283c('0x19')][_0x283c('0x21')],_0x283c('0x5'),(_0x2a5128,_0x3df296)=>_0x2a5128||!!_0x3df296);}[_0x283c('0x24')](){const {CommentThreadInputView:_0x205cda}=this[_0x283c('0xc')],_0xf8d006=new _0x205cda(this[_0x283c('0x14')],this[_0x283c('0x13')],this[_0x283c('0xc')][_0x283c('0x11')]),_0x4ebb81=_0xf8d006[_0x283c('0x21')];return _0xf8d006[_0x283c('0xb')](_0x283c('0x22'))['to'](this,'isActive',this[_0x283c('0x1')]['commentThread'],_0x283c('0x7'),_0x4ebb81,_0x283c('0x5'),(_0xb16129,_0x298aa7,_0x15b68a)=>!!_0x15b68a||_0xb16129&&!_0x298aa7),_0x4ebb81['on'](_0x283c('0x4'),(_0x2300f6,_0x12228a)=>{this[_0x283c('0x20')](_0x283c('0x17'),_0x12228a),_0x4ebb81[_0x283c('0x9')][_0x283c('0x2')]('');}),_0x4ebb81['on'](_0x283c('0xa'),()=>this[_0x283c('0x1f')]()),_0x4ebb81['bind']('disabledSubmit')['to'](this[_0x283c('0x1')][_0x283c('0xd')],_0x283c('0x7')),_0xf8d006;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1372=['_createButton','discardSuggestion','element','Accept\x20suggestion','map','commentThreadInputView','split','ck-annotation__info','bindTemplate','name','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-suggestion__main','userView','createElement','_descriptionElement','value','importWord','creator','bind','discardButton','editorDestroyed','color','commentsListView','_config','attributes','disableComments','isActive','_model','push','EXTERNAL_SUGGESTION','getUserViewNotificationText','ck-annotation__info-name','getTemplate','ck-annotation__main','</span>','ck-annotation__actions','delegate','formatDateTime','content','ck-suggestion-','children','acceptSuggestion','div','EXTERNAL_IMPORT_WORD_AVATAR','title','ck-suggestion__info-name','@external','ck-comment__external','render','ck-suggestion-wrapper--active','type','EXTERNAL_IMPORT_WORD_SUGGESTION','querySelector','extendTemplate','.ck-annotation__content-wrapper','check','</p>','<span\x20class=\x22ck-suggestion-type\x22>','locale','time','acceptButton','\x22\x20title=\x22','cancel','canAccept','canDiscard','span','author','commentThread','ck-suggestion--discard','EXTERNAL_AVATAR','innerHTML','ck-suggestion','descriptionParts','authoredAt','innerText','description','<p>','ck-suggestion--disabled-comments','fire','getExternalSuggestionNote','ck-suggestion__actions','ck-annotation__info-time','ck-suggestion-wrapper','ck-suggestion--accept','ck-annotation__content-wrapper','source','setTemplate','ck-annotation__user','isEnabled'];(function(_0x1a30db,_0x13726c){const _0x3115b8=function(_0x53f733){while(--_0x53f733){_0x1a30db['push'](_0x1a30db['shift']());}};_0x3115b8(++_0x13726c);}(_0x1372,0xd2));const _0x3115=function(_0x1a30db,_0x13726c){_0x1a30db=_0x1a30db-0x0;let _0x3115b8=_0x1372[_0x1a30db];return _0x3115b8;};import{getTranslation as _0x368cdf}from'../../utils/common-translations';import{default as _0xb7dd29}from'./basesuggestionthreadview';import{ButtonView as _0x3563a3}from'ckeditor5/src/ui';import{icons as _0x414450}from'ckeditor5/src/core';import{trimHtml as _0x25344a,UserView as _0x54db77}from'ckeditor5-collaboration/src/collaboration-core';export default class Qt extends _0xb7dd29{constructor(_0x58342a,_0x35769d,_0x24bf6e,_0x5f3d90){super(_0x58342a,_0x35769d,_0x24bf6e,_0x5f3d90),this['set'](_0x3115('0x12'),''),this[_0x3115('0x4b')](_0x3115('0x12'))['to'](this,_0x3115('0x28'),_0x375cc0=>_0x375cc0&&_0x375cc0[0x0]?_0x375cc0[0x0]['type']:''),this[_0x3115('0x4b')](_0x3115('0x2b'))['to'](this,_0x3115('0x28'),this,_0x3115('0x53'),(_0x426fd7,_0x268270)=>{let _0x5b5d49='';for(const _0x5d5668 of _0x426fd7)_0x5b5d49+=_0x3115('0x2c')+ci(_0x5d5668[_0x3115('0x6')],_0x5d5668[_0x3115('0x4e')])+_0x3115('0x18');return _0x268270?_0x5b5d49:_0x25344a(_0x5b5d49,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x3115('0x1c')]=this['_createButton'](_0x368cdf(_0x58342a,_0x3115('0x3c')),_0x414450[_0x3115('0x17')],_0x3115('0x33'),_0x3115('0x9'),'sw'),this[_0x3115('0x1c')]['bind'](_0x3115('0x38'))['to'](this,_0x3115('0x1f')),this[_0x3115('0x4c')]=this[_0x3115('0x39')](_0x368cdf(_0x58342a,'Discard\x20suggestion'),_0x414450[_0x3115('0x1e')],_0x3115('0x24'),_0x3115('0x3a'),'sw'),this['discardButton'][_0x3115('0x4b')](_0x3115('0x38'))['to'](this,_0x3115('0x20')),this[_0x3115('0x45')]=new _0x54db77(_0x58342a,this[_0x3115('0x54')]['author'],this[_0x3115('0x57')]()),this[_0x3115('0x45')]['extendTemplate']({'attributes':{'class':['ck-suggestion__user',_0x3115('0x37')]}}),this[_0x3115('0x36')](this[_0x3115('0x0')]());}[_0x3115('0x0')](){const _0x1b50b5=this[_0x3115('0x41')],_0x849da6=[{'tag':_0x3115('0xa'),'attributes':{'class':['ck-suggestion__info',_0x3115('0x40')]},'children':[{'tag':_0x3115('0x21'),'children':[{'text':this[_0x3115('0x45')][_0x3115('0x42')]}],'attributes':{'class':[_0x3115('0xd'),_0x3115('0x58')]}},{'tag':_0x3115('0x1b'),'attributes':{'datetime':_0x1b50b5['to'](_0x3115('0x29')),'class':['ck-comment__info-time',_0x3115('0x31')]},'children':[{'text':_0x1b50b5['to']('authoredAt',_0x1a901b=>this[_0x3115('0x50')][_0x3115('0x5')](_0x1a901b))}]}]},{'tag':_0x3115('0xa'),'attributes':{'class':[_0x3115('0x30'),_0x3115('0x3')]},'children':[this['acceptButton'],this[_0x3115('0x4c')]]},{'tag':_0x3115('0xa'),'attributes':{'class':[_0x3115('0x34')]}}];this[_0x3115('0x54')]['isExternal']&&_0x849da6[_0x3115('0x55')]({'tag':_0x3115('0xa'),'attributes':{'class':[_0x3115('0xf')]},'children':[{'text':this[_0x3115('0x2f')]()}]});const _0x1e7409={'tag':_0x3115('0xa'),'attributes':{'class':[_0x3115('0x32'),_0x1b50b5['if'](_0x3115('0x53'),_0x3115('0x11')),_0x1b50b5['to'](_0x3115('0x12'),_0x270b63=>_0x3115('0x7')+_0x270b63),this[_0x3115('0x50')][_0x3115('0x52')]&&_0x3115('0x2d')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x3115('0x54')][_0x3115('0x23')]['id'],'data-author-id':this['_model'][_0x3115('0x22')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3115('0xa'),'attributes':{'class':[_0x3115('0x27'),'ck-annotation']},'children':[this[_0x3115('0x45')],{'tag':_0x3115('0xa'),'attributes':{'class':[_0x3115('0x44'),_0x3115('0x1')]},'children':_0x849da6}]}]};return this[_0x3115('0x4f')]&&this[_0x3115('0x3e')]&&(_0x1e7409[_0x3115('0x8')][_0x3115('0x55')](this[_0x3115('0x4f')],this['commentThreadInputView']),this[_0x3115('0x4f')][_0x3115('0x4')]('editorReady')['to'](this),this['commentsListView'][_0x3115('0x4')]('editorDestroyed')['to'](this),this['commentThreadInputView'][_0x3115('0x4')]('editorReady')['to'](this),this[_0x3115('0x3e')]['delegate'](_0x3115('0x4d'))['to'](this)),_0x1e7409;}[_0x3115('0x10')](){super[_0x3115('0x10')](),this['_descriptionElement']=this[_0x3115('0x3b')][_0x3115('0x14')](_0x3115('0x16')),this[_0x3115('0x47')][_0x3115('0x26')]=this[_0x3115('0x2b')],this['on']('change:description',(_0x48e473,_0x40ae45,_0x34bee9)=>{this[_0x3115('0x47')][_0x3115('0x26')]=_0x34bee9;});}[_0x3115('0x39')](_0x557640,_0x2dae11,_0x4a9ed6,_0x5a8ca8,_0x46f2a7){const _0x4968bb=new _0x3563a3(this[_0x3115('0x1a')]);return _0x4968bb['set']({'label':_0x557640,'icon':_0x2dae11,'tooltip':!0x0,'tooltipPosition':_0x46f2a7}),_0x4968bb[_0x3115('0x15')]({'attributes':{'class':_0x4a9ed6}}),_0x4968bb['on']('execute',()=>{this[_0x3115('0x2e')](_0x5a8ca8,this[_0x3115('0x54')]['id']);}),_0x4968bb;}['getExternalSuggestionNote'](){return _0x3115('0x49')===this[_0x3115('0x54')]['attributes'][_0x3115('0xe')][_0x3115('0x35')]?_0x368cdf(this[_0x3115('0x1a')],_0x3115('0x13')):_0x368cdf(this[_0x3115('0x1a')],_0x3115('0x56'));}['getUserViewNotificationText'](){return this[_0x3115('0x54')]['isExternal']?_0x3115('0x49')===this[_0x3115('0x54')][_0x3115('0x51')][_0x3115('0xe')][_0x3115('0x35')]?_0x368cdf(this[_0x3115('0x1a')],_0x3115('0xb'),this[_0x3115('0x54')][_0x3115('0x4a')][_0x3115('0x42')]):_0x368cdf(this[_0x3115('0x1a')],_0x3115('0x25'),this[_0x3115('0x54')][_0x3115('0x4a')][_0x3115('0x42')]):null;}}function ci(_0x4917fd,_0x9bf697){let _0x1bc67a='';return _0x1bc67a+=_0x4917fd[_0x3115('0x3f')]('*')[_0x3115('0x3d')]((_0x3882a0,_0xecdbeb)=>_0xecdbeb%0x2!=0x0?_0x3115('0x19')+ri(_0x3882a0)+_0x3115('0x2'):ri(_0x3882a0))['join'](''),_0x9bf697&&(_0x1bc67a+=_0x3115('0x43')+_0x9bf697[_0x3115('0x48')]+_0x3115('0x1d')+_0x9bf697[_0x3115('0xc')]+'\x22></span>'),_0x1bc67a;}function ri(_0xc1c08e){const _0x3bb329=document[_0x3115('0x46')](_0x3115('0x21'));return _0x3bb329[_0x3115('0x2a')]=_0xc1c08e,_0x3bb329[_0x3115('0x26')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x4179cf,_0xbde6d,_0x55900d){const t=_0x4179cf['t'];switch(_0xbde6d){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',_0x55900d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x55900d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x55900d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x55900d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x55900d);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',_0x55900d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x55900d);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',_0x55900d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x55900d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x55900d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x55900d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x55900d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x55900d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x55900d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x55900d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x55900d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x55900d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x55900d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x55900d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x55900d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x55900d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x55900d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x55900d);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'},_0x55900d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x55900d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x55900d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x55900d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x55900d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x55900d);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'},_0x55900d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x55900d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x55900d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x55900d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x55900d);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'},_0x55900d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x55900d);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'},_0x55900d);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'},_0x55900d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x55900d);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'},_0x55900d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x55900d);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'},_0x55900d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x55900d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x55900d);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'},_0x55900d);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'},_0x55900d);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 _0xbde6d;}}
|
|
23
|
+
export function getTranslation(_0xc3f4e0,_0x5ef668,_0x4b5026){const t=_0xc3f4e0['t'];switch(_0x5ef668){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',_0x4b5026);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b5026);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b5026);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b5026);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b5026);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',_0x4b5026);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b5026);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',_0x4b5026);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b5026);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b5026);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b5026);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b5026);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b5026);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b5026);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b5026);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b5026);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b5026);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b5026);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b5026);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b5026);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b5026);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b5026);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b5026);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'},_0x4b5026);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b5026);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b5026);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b5026);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b5026);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b5026);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'},_0x4b5026);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b5026);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b5026);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b5026);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b5026);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'},_0x4b5026);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b5026);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'},_0x4b5026);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'},_0x4b5026);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b5026);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'},_0x4b5026);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b5026);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'},_0x4b5026);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b5026);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b5026);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'},_0x4b5026);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'},_0x4b5026);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 _0x5ef668;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x417e=['isInContent','createPositionAt','map','add','color','isIntersecting','push','sort','length','createPositionBefore','replace','from','isMultiRange','next','schema','value','type','change','createRange','start','isArray','isTouching','\x20[color\x20','getRanges','createPositionAfter','isObject','deletion','content'];(function(_0x20e4b1,_0x417ee8){const _0x19ebe2=function(_0x37e496){while(--_0x37e496){_0x20e4b1['push'](_0x20e4b1['shift']());}};_0x19ebe2(++_0x417ee8);}(_0x417e,0xee));const _0x19eb=function(_0x20e4b1,_0x417ee8){_0x20e4b1=_0x20e4b1-0x0;let _0x19ebe2=_0x417e[_0x20e4b1];return _0x19ebe2;};export function normalizeDescription(_0x2c8ec2){return Array[_0x19eb('0x6')](_0x2c8ec2)||(_0x2c8ec2=[_0x2c8ec2]),_0x2c8ec2[_0x19eb('0x10')](_0x2fbdd5=>{const _0x208338=_0x2fbdd5[_0x19eb('0xd')][_0x19eb('0x18')](/\*/g,''),_0x3eda78=_0x2fbdd5[_0x19eb('0x12')]?_0x19eb('0x8')+_0x2fbdd5[_0x19eb('0x12')][_0x19eb('0x1')]+']':'';return'['+_0x2fbdd5['type']+']\x20'+_0x208338+_0x3eda78;})['join'](';\x20');}export function sortSuggestions(_0x592069){return _0x592069[_0x19eb('0x15')]((_0x2778b3,_0x444944)=>'deletion'==_0x2778b3[_0x19eb('0x2')]&&_0x19eb('0xc')!=_0x444944[_0x19eb('0x2')]?-0x1:_0x19eb('0xc')!=_0x2778b3['type']&&'deletion'==_0x444944['type']?0x1:0x0);}export function getSelectedSuggestions(_0x352cec,_0x232aa2){const _0x457ec8=Array[_0x19eb('0x19')](_0x352cec['getRanges']()),_0x3c6a0a=new Set();for(const _0x579453 of _0x232aa2)if(_0x579453[_0x19eb('0xe')])for(const _0x1e9d89 of _0x457ec8)for(const _0x408248 of _0x579453[_0x19eb('0x9')]())(_0x1e9d89[_0x19eb('0x13')](_0x408248)||_0x352cec['isCollapsed']&&!_0x579453[_0x19eb('0x1a')]&&_0x579453[_0x19eb('0x1b')]&&_0x408248['end'][_0x19eb('0x7')](_0x1e9d89[_0x19eb('0x5')]))&&_0x3c6a0a[_0x19eb('0x11')](_0x579453);return _0x3c6a0a;}export function getRangesOfBlockGroups(_0x21b48d,_0x295d3b){let _0x68eb2b,_0x1e5a34=0x0;const _0x59aed7=[],_0x23b7b5=_0x295d3b[_0x19eb('0x0')];for(;_0x1e5a34<_0x21b48d[_0x19eb('0x16')];){const _0x3d4f61=_0x21b48d[_0x1e5a34],_0x5b9716=_0x21b48d[_0x1e5a34+0x1];_0x68eb2b||(_0x68eb2b=_0x295d3b[_0x19eb('0x17')](_0x3d4f61)),co(_0x295d3b,_0x3d4f61,_0x5b9716)||(_0x59aed7[_0x19eb('0x14')](_0x295d3b[_0x19eb('0x4')](_0x68eb2b,_0x23b7b5[_0x19eb('0xb')](_0x3d4f61)?_0x295d3b[_0x19eb('0xa')](_0x3d4f61):_0x295d3b[_0x19eb('0xf')](_0x3d4f61,'end'))),_0x68eb2b=null),_0x1e5a34++;}return _0x59aed7;}function co(_0x2f770a,_0x520eea,_0x11ebd5){if(!_0x11ebd5)return!0x1;const _0x57e2ff=_0x2f770a[_0x19eb('0xa')](_0x520eea),_0x41cab2=_0x2f770a[_0x19eb('0x17')](_0x11ebd5);return _0x57e2ff[_0x19eb('0x7')](_0x41cab2);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x14c3bb,_0x232c74,_0x1f11a3){for(;_0x1f11a3[_0x19eb('0x16')];){const _0x3554ab=_0x1f11a3['splice'](0x0,0x64);_0x14c3bb[_0x19eb('0x3')](()=>{for(const _0x1cd64e of _0x3554ab)_0x1cd64e['isInContent']&&_0x232c74['execute'](_0x1cd64e['id']);});}}
|