@ckeditor/ckeditor5-track-changes 37.0.0 → 37.0.1
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/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/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/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/tableproperties.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 _0x3452=['registerAnnotation','SuggestionThreadView','createAnnotationView','config','isOn','suggestionLoaded','commentThread','CommentView','commands','_refreshActiveMarkers','trackChanges.SuggestionThreadView','descriptionParts','editor','Discard\x20all\x20suggestions','Track\x20changes','focus','_handleControllerBuffer','_descriptionFactory','bind','comments.maxCommentsWhenCollapsed','locale','buttonView','activeMarkers','hasSuggestion','comments.maxThreadTotalWeight','isMultiRange','value','listenTo','define','editing','_handleSuggestionControllerDelayed','trackChanges.disableComments','discardAllSuggestions','view','_updateController','_createUIButton','unbind','_suggestionToController','pluginName','values','destroy','plugins','getSuggestion','source','getFirstRange','filter','comments','isInContent','add','getMarkerNames','acceptAllSuggestions','execute','some','innerView','delete','EditorAnnotations','_annotationViews','size','discardButton','componentFactory','button','suggestionChanged','stopListening','refreshSelectedViews','actionView','change:previous','model','createCommentThreadController','getByInnerView','init','type','TrackChangesEditing','_destroyController','acceptSelectedSuggestions','push','suggestion-','set','reduce','activeAnnotations','_disableComments','mainView','trackChanges','toMany','Annotations','addComment','getRanges','remove','previous','arrowView','Discard\x20all\x20selected\x20suggestions','from','getAllAdjacentSuggestions','isEnabled','_viewToController','has','addSourceCollector','Accept\x20all\x20suggestions','comments.maxCommentCharsWhenCollapsed','keys','CommentsUI','getJoined','switchbutton','commandName','get','isDirty','Accept\x20all\x20selected\x20suggestions','length','getDescriptions','head','separator','change:activeAnnotations','requires'];(function(_0x356f7e,_0x3452e8){const _0x3ce1bf=function(_0x50324b){while(--_0x50324b){_0x356f7e['push'](_0x356f7e['shift']());}};_0x3ce1bf(++_0x3452e8);}(_0x3452,0x72));const _0x3ce1=function(_0x356f7e,_0x3452e8){_0x356f7e=_0x356f7e-0x0;let _0x3ce1bf=_0x3452[_0x356f7e];return _0x3ce1bf;};import{Plugin as _0x327a75}from'ckeditor5/src/core';import{Collection as _0x5d3611}from'ckeditor5/src/utils';import{Model as _0x481a92,SplitButtonView as _0xc650fd,createDropdown as _0x228168,addListToDropdown as _0x36df0a}from'ckeditor5/src/ui';import{Users as _0x432f34,getDateTimeFormatter as _0x38e33a,getAllMarkersDomElementsSorted as _0x2ad89a}from'ckeditor5-collaboration/src/collaboration-core';import _0x4679e0 from'./trackchangesediting';import _0x34528f from'./ui/suggestioncontroller';import _0x44158d from'./ui/view/suggestionthreadview';import{getTranslation as _0x38b805}from'./utils/common-translations';import _0x478e96 from'../theme/icons/track-changes.svg';export default class d extends _0x327a75{static get[_0x3ce1('0x6d')](){return[_0x4679e0,_0x432f34,'CommentsRepository',_0x3ce1('0x51'),_0x3ce1('0x35')];}static get[_0x3ce1('0x24')](){return'TrackChangesUI';}constructor(_0x1a27c2){super(_0x1a27c2),this[_0x3ce1('0x23')]=new Map(),this[_0x3ce1('0x5b')]=new Map(),this[_0x3ce1('0x36')]=new Map(),this[_0x3ce1('0xe')]=new Map();const _0x262d97=this[_0x3ce1('0xa')][_0x3ce1('0x1')];_0x262d97[_0x3ce1('0x1a')](_0x3ce1('0x8'),_0x44158d),_0x262d97[_0x3ce1('0x1a')](_0x3ce1('0x1d'),!0x1),this[_0x3ce1('0x4d')]=_0x262d97[_0x3ce1('0x65')](_0x3ce1('0x1d'));}['_handleSuggestionControllerDelayed'](_0x4a0a2d,_0x2083ca){0x0===this['_handleControllerBuffer'][_0x3ce1('0x37')]&&setTimeout(()=>{for(const [_0x4489,_0x3c6db2]of this['_handleControllerBuffer']){const _0x31e7da=this[_0x3ce1('0x23')][_0x3ce1('0x5c')](_0x4489);_0x31e7da||_0x3c6db2?_0x31e7da&&_0x3c6db2&&this[_0x3ce1('0x46')](_0x4489):this['_initializeController'](_0x4489);}this[_0x3ce1('0xa')][_0x3ce1('0x27')]['get'](_0x3ce1('0x35'))[_0x3ce1('0x3d')](),this[_0x3ce1('0x7')](),this[_0x3ce1('0xe')]['clear']();},0xa),this['_handleControllerBuffer'][_0x3ce1('0x4a')](_0x4a0a2d,_0x2083ca);}[_0x3ce1('0x43')](){const _0x31ed48=this[_0x3ce1('0xa')],_0x29c090=_0x31ed48['plugins']['get'](_0x3ce1('0x45')),_0x1b4bca=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x51')),_0x4f4401=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x35')),_0x55e3a2=_0x31ed48[_0x3ce1('0x27')][_0x3ce1('0x65')]('CommentsRepository');_0x31ed48['ui'][_0x3ce1('0x39')][_0x3ce1('0x2e')](_0x3ce1('0x4f'),_0xdad239=>this['_createUIButton'](_0xdad239)),_0x4f4401[_0x3ce1('0x5d')](()=>{const _0x2f44ca=[];for(const [_0x517e4f,_0x189e53]of Array['from'](this[_0x3ce1('0x23')])){const _0x294f6a=_0x517e4f[_0x3ce1('0x59')](),_0x402acf=[];for(const _0x4e897a of _0x294f6a){if(!_0x4e897a['isInContent'])continue;if(_0x4e897a[_0x3ce1('0x17')]){_0x402acf[_0x3ce1('0x48')](..._0x4e897a[_0x3ce1('0x53')]());continue;}const _0x4d77b3=_0x4e897a[_0x3ce1('0x2a')]();if(_0x402acf[_0x3ce1('0x68')]>0x0){const _0x5962b1=_0x402acf[0x0][_0x3ce1('0x62')](_0x4d77b3);if(_0x5962b1){_0x402acf[0x0]=_0x5962b1;continue;}}_0x402acf[_0x3ce1('0x48')](_0x4d77b3);}_0x2f44ca[_0x3ce1('0x48')]([_0x189e53[_0x3ce1('0x1f')],_0x402acf]);}return _0x2f44ca;}),this[_0x3ce1('0x19')](_0x29c090,_0x3ce1('0x3'),(_0x3a977c,_0x372a98)=>{this[_0x3ce1('0x19')](_0x372a98,_0x3ce1('0x3f'),(_0x4b65e8,_0x39eddf,_0x19118e,_0x37c982)=>{_0x372a98[_0x3ce1('0x2d')]&&(null==_0x19118e?(this['_updateController'](_0x37c982[_0x3ce1('0x6a')]),this[_0x3ce1('0x1c')](_0x372a98,!0x1)):(this[_0x3ce1('0x20')](_0x19118e[_0x3ce1('0x6a')]),this[_0x3ce1('0x1c')](_0x372a98,!0x0)));}),null===_0x372a98[_0x3ce1('0x55')]?this[_0x3ce1('0x1c')](_0x372a98,!0x1):this[_0x3ce1('0x20')](_0x372a98[_0x3ce1('0x6a')]);}),this['listenTo'](_0x29c090,'suggestionUnloaded',(_0x50ef10,_0x386785,_0x169272)=>{this[_0x3ce1('0x3c')](_0x386785,_0x3ce1('0x3f')),this[_0x3ce1('0xe')][_0x3ce1('0x34')](_0x386785);const _0x3f279d=_0x169272?_0x169272[_0x3ce1('0x6a')]:_0x386785,_0x164a42=this[_0x3ce1('0x23')][_0x3ce1('0x65')](_0x3f279d);null!==_0x169272&&this[_0x3ce1('0x20')](_0x3f279d),null===_0x169272&&_0x164a42&&this[_0x3ce1('0x46')](_0x386785);}),this[_0x3ce1('0x19')](_0x29c090,_0x3ce1('0x3b'),(_0x5f302e,_0x2c1377)=>{this[_0x3ce1('0x20')](_0x2c1377);}),this[_0x3ce1('0x19')](_0x1b4bca,_0x3ce1('0x6c'),()=>{this['_refreshActiveMarkers']();}),this[_0x3ce1('0x19')](_0x55e3a2,_0x3ce1('0x52'),(_0x24e845,{threadId:_0x1ec517,isFromAdapter:_0x8998bd})=>{if(_0x8998bd||!_0x29c090[_0x3ce1('0x15')](_0x1ec517))return;const _0x410d1f=_0x29c090[_0x3ce1('0x28')](_0x1ec517);this['_suggestionToController'][_0x3ce1('0x65')](_0x410d1f)[_0x3ce1('0x1f')][_0x3ce1('0xd')]();},{'priority':'lowest'});}[_0x3ce1('0x7')](){const _0x24fd34=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x51')),_0xe5c419=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')]('TrackChangesEditing'),_0x1edf86=Array[_0x3ce1('0x58')](_0x24fd34[_0x3ce1('0x4c')],_0xfe41ba=>_0xfe41ba[_0x3ce1('0x33')])[_0x3ce1('0x2b')](_0x3fb3f5=>this[_0x3ce1('0x5b')]['has'](_0x3fb3f5)),_0xa6d1f3=[];for(const _0xb625ce of _0x1edf86){const _0x518d41=this['_viewToController'][_0x3ce1('0x65')](_0xb625ce)['model'][_0x3ce1('0x59')]();_0xa6d1f3[_0x3ce1('0x48')](..._0x518d41[_0x3ce1('0x4b')]((_0x4e2b7a,_0x16508b)=>[..._0x4e2b7a,..._0x16508b[_0x3ce1('0x2f')]()],[]));}_0xe5c419[_0x3ce1('0x14')]=_0xa6d1f3;}[_0x3ce1('0x21')](_0x24eeb0){const _0x2b68da=_0x228168(_0x24eeb0,_0xc650fd),_0x2b691d=this['editor']['commands'][_0x3ce1('0x65')](_0x3ce1('0x4f')),_0x228c1d=_0x38b805(_0x24eeb0,_0x3ce1('0xc'));_0x2b68da['buttonView']['set']({'tooltip':_0x228c1d,'label':_0x228c1d,'icon':_0x478e96}),_0x2b68da['buttonView']['bind'](_0x3ce1('0x2'))['to'](_0x2b691d,_0x3ce1('0x18')),_0x2b68da[_0x3ce1('0x13')]['on'](_0x3ce1('0x31'),()=>{_0x2b691d[_0x3ce1('0x31')](),this[_0x3ce1('0xa')][_0x3ce1('0x1b')]['view'][_0x3ce1('0xd')]();});const _0x2867c2=new _0x5d3611(),_0x471339=[{'type':_0x3ce1('0x63'),'model':{'withText':!0x0,'label':_0x228c1d,'commandName':_0x3ce1('0x4f')}},{'type':_0x3ce1('0x6b')},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x5e')),'commandName':_0x3ce1('0x30')}},{'type':'button','model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x67')),'commandName':_0x3ce1('0x47')}},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0xb')),'commandName':_0x3ce1('0x1e')}},{'type':_0x3ce1('0x3a'),'model':{'withText':!0x0,'label':_0x38b805(_0x24eeb0,_0x3ce1('0x57')),'commandName':'discardSelectedSuggestions'}}];for(const _0x24c495 of _0x471339){let _0x32d9e6={'type':_0x3ce1('0x6b')};if(_0x24c495[_0x3ce1('0x40')]){const _0xcaa9d2=new _0x481a92(_0x24c495[_0x3ce1('0x40')]),_0x1ce873=this[_0x3ce1('0xa')][_0x3ce1('0x6')]['get'](_0xcaa9d2[_0x3ce1('0x64')]);_0xcaa9d2[_0x3ce1('0x10')]('isOn',_0x3ce1('0x5a'))['to'](_0x1ce873,_0x3ce1('0x18'),_0x3ce1('0x5a')),_0x32d9e6={'type':_0x24c495[_0x3ce1('0x44')],'model':_0xcaa9d2};}_0x2867c2[_0x3ce1('0x2e')](_0x32d9e6);}_0x36df0a(_0x2b68da,_0x2867c2);const _0x1026be=_0x471339[_0x3ce1('0x2b')](_0x2b32a4=>null!=_0x2b32a4[_0x3ce1('0x40')])['map'](_0x3a9931=>this[_0x3ce1('0xa')]['commands'][_0x3ce1('0x65')](_0x3a9931['model'][_0x3ce1('0x64')])),_0x300543=_0x2b68da[_0x3ce1('0x13')];return _0x300543[_0x3ce1('0x3e')][_0x3ce1('0x22')](_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x56')]['unbind'](_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x3e')][_0x3ce1('0x10')](_0x3ce1('0x5a'))['to'](_0x2b691d,_0x3ce1('0x5a')),_0x300543[_0x3ce1('0x56')][_0x3ce1('0x10')]('isEnabled')[_0x3ce1('0x50')](_0x1026be,_0x3ce1('0x5a'),(..._0x4fcfd6)=>_0x4fcfd6[_0x3ce1('0x32')](_0x28b3c0=>_0x28b3c0)),_0x2b68da['on'](_0x3ce1('0x31'),_0x3b3b28=>{this[_0x3ce1('0xa')][_0x3ce1('0x31')](_0x3b3b28[_0x3ce1('0x29')][_0x3ce1('0x64')]),this['editor'][_0x3ce1('0x1b')]['view'][_0x3ce1('0xd')]();}),_0x2b68da;}['_initializeController'](_0x5e5923){const _0x18733c=this[_0x3ce1('0xa')],_0x2c0bcd=_0x18733c['config'],_0x17a94b=_0x18733c[_0x3ce1('0x27')]['get'](_0x3ce1('0x51')),_0x4523ba=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')]('CommentsRepository'),_0x3fe47b=_0x18733c[_0x3ce1('0x27')]['get'](_0x3ce1('0x35')),_0x43a9ae=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x432f34)['me'],_0x478ddc=_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x4f'))[_0x3ce1('0x6f')],{CommentsListView:_0x4731c9,CommentThreadInputView:_0x24d377}=_0x18733c[_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x61'));let _0x5c8225,_0x355feb;this[_0x3ce1('0x36')][_0x3ce1('0x5c')](_0x5e5923['id'])?(_0x355feb=this['_annotationViews'][_0x3ce1('0x65')](_0x5e5923['id']),_0x5c8225=_0x355feb['mainView']):(_0x5c8225=new _0x478ddc(_0x18733c[_0x3ce1('0x12')],_0x5e5923,_0x43a9ae,{'disableComments':this[_0x3ce1('0x4d')],'editorConfig':_0x2c0bcd[_0x3ce1('0x65')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2c0bcd['get'](_0x3ce1('0x11')),'maxThreadTotalWeight':_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x16')),'maxCommentCharsWhenCollapsed':_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x5f')),'formatDateTime':_0x38e33a(_0x2c0bcd[_0x3ce1('0x65')](_0x3ce1('0x12'))),'CommentView':_0x2c0bcd['get'](_0x3ce1('0x2c'))[_0x3ce1('0x5')],'CommentsListView':_0x4731c9,'CommentThreadInputView':_0x24d377}),_0x5c8225['acceptButton']['on']('execute',()=>{_0x18733c['editing'][_0x3ce1('0x1f')][_0x3ce1('0xd')]();}),_0x5c8225[_0x3ce1('0x38')]['on'](_0x3ce1('0x31'),()=>{_0x18733c[_0x3ce1('0x1b')][_0x3ce1('0x1f')][_0x3ce1('0xd')]();}),_0x355feb=_0x17a94b[_0x3ce1('0x0')](this[_0x3ce1('0xa')][_0x3ce1('0x12')],_0x5c8225),_0x355feb[_0x3ce1('0x10')]('isDirty')['to'](_0x5c8225,_0x3ce1('0x66')),_0x355feb[_0x3ce1('0x10')](_0x3ce1('0x68'))['to'](_0x5c8225),_0x355feb[_0x3ce1('0x10')](_0x3ce1('0x44'))['to'](_0x5c8225,_0x3ce1('0x44'),_0x2fea59=>_0x3ce1('0x49')+_0x2fea59),this[_0x3ce1('0x36')][_0x3ce1('0x4a')](_0x5e5923['id'],_0x355feb));const _0x4e9ac8=_0x4523ba[_0x3ce1('0x41')](_0x5e5923[_0x3ce1('0x4')],_0x5c8225),_0x39944f=new _0x34528f(_0x18733c,_0x5e5923,_0x5c8225,_0x4e9ac8),_0x1fa958=_0x5e5923[_0x3ce1('0x59')]()['filter'](_0x2a405a=>_0x2a405a['isInContent']);_0x5c8225['descriptionParts']=_0x18733c[_0x3ce1('0x27')]['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x1fa958),this[_0x3ce1('0x23')][_0x3ce1('0x4a')](_0x5e5923,_0x39944f),this[_0x3ce1('0x5b')][_0x3ce1('0x4a')](_0x5c8225,_0x39944f);const _0x36ef08=_0x17a94b['createAnnotation']({'view':_0x355feb,'target':()=>{const _0x250703=[],_0x5cbd1a=_0x5e5923[_0x3ce1('0x59')]()[_0x3ce1('0x2b')](_0x35b5ee=>_0x35b5ee[_0x3ce1('0x2d')]);for(const _0x2ca038 of _0x5cbd1a)_0x250703['push'](..._0x2ca038['getMarkers']());return _0x2ad89a(_0x18733c['editing'],_0x250703);},'type':()=>_0x3ce1('0x49')+_0x39944f[_0x3ce1('0x1f')][_0x3ce1('0x44')]});_0x17a94b[_0x3ce1('0x2e')](_0x36ef08),_0x3fe47b[_0x3ce1('0x6e')](_0x36ef08);}[_0x3ce1('0x46')](_0x27cd81){const _0x169528=this['editor'][_0x3ce1('0x27')][_0x3ce1('0x65')]('Annotations'),_0x18d8f2=this[_0x3ce1('0x23')][_0x3ce1('0x65')](_0x27cd81),_0x535a05=_0x18d8f2[_0x3ce1('0x1f')],_0x542f62=_0x169528[_0x3ce1('0x42')](_0x535a05);_0x542f62&&_0x169528[_0x3ce1('0x54')](_0x542f62),this[_0x3ce1('0x23')][_0x3ce1('0x34')](_0x27cd81),this[_0x3ce1('0x5b')][_0x3ce1('0x34')](_0x535a05),_0x18d8f2[_0x3ce1('0x26')]();}['_updateController'](_0x5c8fa7){if(!_0x5c8fa7[_0x3ce1('0x2d')]||!this[_0x3ce1('0x23')][_0x3ce1('0x5c')](_0x5c8fa7))return;const _0x4c1f09=this[_0x3ce1('0xa')][_0x3ce1('0x27')][_0x3ce1('0x65')](_0x3ce1('0x45')),_0x4eaeb5=this['_suggestionToController'][_0x3ce1('0x65')](_0x5c8fa7),_0xf128da=_0x5c8fa7['getAllAdjacentSuggestions']();_0x4eaeb5[_0x3ce1('0x1f')][_0x3ce1('0x9')]=_0x4c1f09[_0x3ce1('0xf')][_0x3ce1('0x69')](_0xf128da);}['destroy'](){for(const _0x48427d of this[_0x3ce1('0x23')][_0x3ce1('0x60')]())this[_0x3ce1('0x46')](_0x48427d);for(const _0x43422e of this[_0x3ce1('0x36')][_0x3ce1('0x25')]())_0x43422e[_0x3ce1('0x4e')][_0x3ce1('0x26')]();super[_0x3ce1('0x26')]();}}
|
|
23
|
+
const _0x36f4=['has','EditorAnnotations','registerAnnotation','CommentsUI','isOn','_initializeController','commandName','getSuggestion','isMultiRange','pluginName','requires','suggestion-','value','_suggestionToController','editor','stopListening','_updateController','from','isDirty','button','remove','getByInnerView','descriptionParts','isInContent','innerView','comments.editorConfig','size','buttonView','change:activeAnnotations','Discard\x20all\x20suggestions','CommentsRepository','actionView','CommentView','discardButton','getAllAdjacentSuggestions','editing','TrackChangesEditing','destroy','arrowView','delete','Track\x20changes','length','_destroyController','_descriptionFactory','define','comments.maxCommentsWhenCollapsed','createCommentThreadController','listenTo','commentThread','activeMarkers','addSourceCollector','change:previous','_viewToController','Accept\x20all\x20selected\x20suggestions','suggestionLoaded','comments.maxThreadTotalWeight','getDescriptions','addComment','_refreshActiveMarkers','separator','createAnnotation','isEnabled','view','Annotations','add','_handleSuggestionControllerDelayed','_createUIButton','activeAnnotations','TrackChangesUI','get','set','hasSuggestion','_handleControllerBuffer','getJoined','reduce','head','discardSelectedSuggestions','_disableComments','refreshSelectedViews','SuggestionThreadView','previous','map','unbind','init','suggestionChanged','locale','execute','keys','focus','switchbutton','values','suggestionUnloaded','getFirstRange','source','_annotationViews','bind','type','model','acceptSelectedSuggestions','trackChanges.SuggestionThreadView','commands','trackChanges','plugins','createAnnotationView','Accept\x20all\x20suggestions','push','toMany','getMarkers'];(function(_0x313d64,_0x36f45f){const _0x3f751f=function(_0xac24ac){while(--_0xac24ac){_0x313d64['push'](_0x313d64['shift']());}};_0x3f751f(++_0x36f45f);}(_0x36f4,0x133));const _0x3f75=function(_0x313d64,_0x36f45f){_0x313d64=_0x313d64-0x0;let _0x3f751f=_0x36f4[_0x313d64];return _0x3f751f;};import{Plugin as _0x22ce4c}from'ckeditor5/src/core';import{Collection as _0x3b1209}from'ckeditor5/src/utils';import{Model as _0xbc0774,SplitButtonView as _0x4181ce,createDropdown as _0xf6037a,addListToDropdown as _0x29c764}from'ckeditor5/src/ui';import{Users as _0xb86ca7,getDateTimeFormatter as _0x53a538,getAllMarkersDomElementsSorted as _0x53d969}from'ckeditor5-collaboration/src/collaboration-core';import _0x45e6f8 from'./trackchangesediting';import _0x2f353c from'./ui/suggestioncontroller';import _0x12a1da from'./ui/view/suggestionthreadview';import{getTranslation as _0xee3a58}from'./utils/common-translations';import _0x4a014a from'../theme/icons/track-changes.svg';export default class d extends _0x22ce4c{static get[_0x3f75('0x1b')](){return[_0x45e6f8,_0xb86ca7,_0x3f75('0x2f'),_0x3f75('0x50'),_0x3f75('0x12')];}static get[_0x3f75('0x1a')](){return _0x3f75('0x55');}constructor(_0x4126fa){super(_0x4126fa),this[_0x3f75('0x1e')]=new Map(),this[_0x3f75('0x45')]=new Map(),this[_0x3f75('0x3')]=new Map(),this[_0x3f75('0x59')]=new Map();const _0x588324=this['editor']['config'];_0x588324[_0x3f75('0x3d')](_0x3f75('0x8'),_0x12a1da),_0x588324[_0x3f75('0x3d')]('trackChanges.disableComments',!0x1),this[_0x3f75('0x5e')]=_0x588324[_0x3f75('0x56')]('trackChanges.disableComments');}[_0x3f75('0x52')](_0x741916,_0x4d082f){0x0===this[_0x3f75('0x59')][_0x3f75('0x2b')]&&setTimeout(()=>{for(const [_0x414b06,_0x4063eb]of this['_handleControllerBuffer']){const _0x1eb9c5=this[_0x3f75('0x1e')]['has'](_0x414b06);_0x1eb9c5||_0x4063eb?_0x1eb9c5&&_0x4063eb&&this['_destroyController'](_0x414b06):this[_0x3f75('0x16')](_0x414b06);}this[_0x3f75('0x1f')]['plugins'][_0x3f75('0x56')](_0x3f75('0x12'))[_0x3f75('0x5f')](),this['_refreshActiveMarkers'](),this[_0x3f75('0x59')]['clear']();},0xa),this[_0x3f75('0x59')]['set'](_0x741916,_0x4d082f);}[_0x3f75('0x64')](){const _0x49d757=this[_0x3f75('0x1f')],_0x543599=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x2be0a5=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x3d0dc3=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')]('EditorAnnotations'),_0x56e9f4=_0x49d757['plugins'][_0x3f75('0x56')](_0x3f75('0x2f'));_0x49d757['ui']['componentFactory']['add']('trackChanges',_0x47a898=>this[_0x3f75('0x53')](_0x47a898)),_0x3d0dc3[_0x3f75('0x43')](()=>{const _0x78e04=[];for(const [_0x2f77ba,_0x307b3f]of Array[_0x3f75('0x22')](this[_0x3f75('0x1e')])){const _0x502aa2=_0x2f77ba['getAllAdjacentSuggestions'](),_0x25c7e5=[];for(const _0x5de521 of _0x502aa2){if(!_0x5de521[_0x3f75('0x28')])continue;if(_0x5de521[_0x3f75('0x19')]){_0x25c7e5[_0x3f75('0xe')](..._0x5de521['getRanges']());continue;}const _0x34269e=_0x5de521[_0x3f75('0x1')]();if(_0x25c7e5[_0x3f75('0x3a')]>0x0){const _0x50b19b=_0x25c7e5[0x0][_0x3f75('0x5a')](_0x34269e);if(_0x50b19b){_0x25c7e5[0x0]=_0x50b19b;continue;}}_0x25c7e5[_0x3f75('0xe')](_0x34269e);}_0x78e04[_0x3f75('0xe')]([_0x307b3f[_0x3f75('0x4f')],_0x25c7e5]);}return _0x78e04;}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x47'),(_0x2615a1,_0x30ea28)=>{this[_0x3f75('0x40')](_0x30ea28,_0x3f75('0x44'),(_0x3eab2a,_0x1971af,_0x4e7247,_0x3fb13a)=>{_0x30ea28[_0x3f75('0x28')]&&(null==_0x4e7247?(this[_0x3f75('0x21')](_0x3fb13a['head']),this[_0x3f75('0x52')](_0x30ea28,!0x1)):(this[_0x3f75('0x21')](_0x4e7247[_0x3f75('0x5c')]),this[_0x3f75('0x52')](_0x30ea28,!0x0)));}),null===_0x30ea28[_0x3f75('0x61')]?this[_0x3f75('0x52')](_0x30ea28,!0x1):this[_0x3f75('0x21')](_0x30ea28[_0x3f75('0x5c')]);}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x0'),(_0x42e142,_0x195230,_0x150d51)=>{this[_0x3f75('0x20')](_0x195230,'change:previous'),this[_0x3f75('0x59')][_0x3f75('0x38')](_0x195230);const _0x45c745=_0x150d51?_0x150d51[_0x3f75('0x5c')]:_0x195230,_0x1135e0=this['_suggestionToController'][_0x3f75('0x56')](_0x45c745);null!==_0x150d51&&this[_0x3f75('0x21')](_0x45c745),null===_0x150d51&&_0x1135e0&&this[_0x3f75('0x3b')](_0x195230);}),this['listenTo'](_0x543599,_0x3f75('0x65'),(_0xe00b04,_0x50ab48)=>{this[_0x3f75('0x21')](_0x50ab48);}),this['listenTo'](_0x2be0a5,_0x3f75('0x2d'),()=>{this[_0x3f75('0x4b')]();}),this[_0x3f75('0x40')](_0x56e9f4,_0x3f75('0x4a'),(_0xd0f1fd,{threadId:_0x12a07a,isFromAdapter:_0x1f642b})=>{if(_0x1f642b||!_0x543599[_0x3f75('0x58')](_0x12a07a))return;const _0x538ae6=_0x543599[_0x3f75('0x18')](_0x12a07a);this[_0x3f75('0x1e')]['get'](_0x538ae6)[_0x3f75('0x4f')][_0x3f75('0x69')]();},{'priority':'lowest'});}[_0x3f75('0x4b')](){const _0x446d29=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x8fc63=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x43c26c=Array[_0x3f75('0x22')](_0x446d29[_0x3f75('0x54')],_0x1b108e=>_0x1b108e[_0x3f75('0x29')])['filter'](_0xaef36b=>this[_0x3f75('0x45')][_0x3f75('0x11')](_0xaef36b)),_0x260d98=[];for(const _0x1ab33c of _0x43c26c){const _0x58d3e8=this[_0x3f75('0x45')]['get'](_0x1ab33c)[_0x3f75('0x6')]['getAllAdjacentSuggestions']();_0x260d98[_0x3f75('0xe')](..._0x58d3e8[_0x3f75('0x5b')]((_0xbd6249,_0x41254d)=>[..._0xbd6249,..._0x41254d['getMarkerNames']()],[]));}_0x8fc63[_0x3f75('0x42')]=_0x260d98;}['_createUIButton'](_0xdf3e11){const _0x5829bd=_0xf6037a(_0xdf3e11,_0x4181ce),_0x2220cf=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0x3f75('0xa')),_0x456b36=_0xee3a58(_0xdf3e11,_0x3f75('0x39'));_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x57')]({'tooltip':_0x456b36,'label':_0x456b36,'icon':_0x4a014a}),_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x4')](_0x3f75('0x15'))['to'](_0x2220cf,_0x3f75('0x1d')),_0x5829bd[_0x3f75('0x2c')]['on'](_0x3f75('0x67'),()=>{_0x2220cf['execute'](),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();});const _0x46102a=new _0x3b1209(),_0x5508a2=[{'type':_0x3f75('0x6a'),'model':{'withText':!0x0,'label':_0x456b36,'commandName':_0x3f75('0xa')}},{'type':'separator'},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0xd')),'commandName':'acceptAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x46')),'commandName':_0x3f75('0x7')}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x2e')),'commandName':'discardAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3f75('0x5d')}}];for(const _0x45860c of _0x5508a2){let _0x55f4c1={'type':_0x3f75('0x4c')};if(_0x45860c[_0x3f75('0x6')]){const _0xb49240=new _0xbc0774(_0x45860c['model']),_0xdbe8c1=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0xb49240[_0x3f75('0x17')]);_0xb49240[_0x3f75('0x4')](_0x3f75('0x15'),'isEnabled')['to'](_0xdbe8c1,_0x3f75('0x1d'),_0x3f75('0x4e')),_0x55f4c1={'type':_0x45860c[_0x3f75('0x5')],'model':_0xb49240};}_0x46102a['add'](_0x55f4c1);}_0x29c764(_0x5829bd,_0x46102a);const _0x3058f3=_0x5508a2['filter'](_0xb49c06=>null!=_0xb49c06[_0x3f75('0x6')])[_0x3f75('0x62')](_0x4c13a4=>this[_0x3f75('0x1f')][_0x3f75('0x9')]['get'](_0x4c13a4[_0x3f75('0x6')][_0x3f75('0x17')])),_0x286117=_0x5829bd[_0x3f75('0x2c')];return _0x286117['actionView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117['arrowView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117[_0x3f75('0x30')]['bind']('isEnabled')['to'](_0x2220cf,'isEnabled'),_0x286117[_0x3f75('0x37')][_0x3f75('0x4')](_0x3f75('0x4e'))[_0x3f75('0xf')](_0x3058f3,_0x3f75('0x4e'),(..._0x154681)=>_0x154681['some'](_0x359252=>_0x359252)),_0x5829bd['on']('execute',_0x2267d3=>{this['editor'][_0x3f75('0x67')](_0x2267d3[_0x3f75('0x2')][_0x3f75('0x17')]),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();}),_0x5829bd;}['_initializeController'](_0x21b04a){const _0x2c3732=this[_0x3f75('0x1f')],_0x5e54dd=_0x2c3732['config'],_0x41a6c8=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')]('Annotations'),_0x4bd52a=_0x2c3732['plugins'][_0x3f75('0x56')](_0x3f75('0x2f')),_0x3f4280=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x12')),_0x566809=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0xb86ca7)['me'],_0x1b4d47=_0x5e54dd['get'](_0x3f75('0xa'))[_0x3f75('0x60')],{CommentsListView:_0x5a8c08,CommentThreadInputView:_0x572f5c}=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x14'));let _0x28c234,_0x353264;this[_0x3f75('0x3')][_0x3f75('0x11')](_0x21b04a['id'])?(_0x353264=this[_0x3f75('0x3')][_0x3f75('0x56')](_0x21b04a['id']),_0x28c234=_0x353264['mainView']):(_0x28c234=new _0x1b4d47(_0x2c3732[_0x3f75('0x66')],_0x21b04a,_0x566809,{'disableComments':this['_disableComments'],'editorConfig':_0x5e54dd['get'](_0x3f75('0x2a')),'maxCommentsWhenCollapsed':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x3e')),'maxThreadTotalWeight':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x48')),'maxCommentCharsWhenCollapsed':_0x5e54dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53a538(_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x66'))),'CommentView':_0x5e54dd['get']('comments')[_0x3f75('0x31')],'CommentsListView':_0x5a8c08,'CommentThreadInputView':_0x572f5c}),_0x28c234['acceptButton']['on'](_0x3f75('0x67'),()=>{_0x2c3732['editing'][_0x3f75('0x4f')]['focus']();}),_0x28c234[_0x3f75('0x32')]['on'](_0x3f75('0x67'),()=>{_0x2c3732[_0x3f75('0x34')]['view'][_0x3f75('0x69')]();}),_0x353264=_0x41a6c8[_0x3f75('0xc')](this[_0x3f75('0x1f')]['locale'],_0x28c234),_0x353264[_0x3f75('0x4')]('isDirty')['to'](_0x28c234,_0x3f75('0x23')),_0x353264[_0x3f75('0x4')](_0x3f75('0x3a'))['to'](_0x28c234),_0x353264['bind'](_0x3f75('0x5'))['to'](_0x28c234,'type',_0xe98f46=>_0x3f75('0x1c')+_0xe98f46),this[_0x3f75('0x3')][_0x3f75('0x57')](_0x21b04a['id'],_0x353264));const _0x4ca5f8=_0x4bd52a[_0x3f75('0x3f')](_0x21b04a[_0x3f75('0x41')],_0x28c234),_0x529ff2=new _0x2f353c(_0x2c3732,_0x21b04a,_0x28c234,_0x4ca5f8),_0x40771c=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x312f75=>_0x312f75[_0x3f75('0x28')]);_0x28c234[_0x3f75('0x27')]=_0x2c3732[_0x3f75('0xb')]['get'](_0x3f75('0x35'))[_0x3f75('0x3c')][_0x3f75('0x49')](_0x40771c),this[_0x3f75('0x1e')][_0x3f75('0x57')](_0x21b04a,_0x529ff2),this[_0x3f75('0x45')][_0x3f75('0x57')](_0x28c234,_0x529ff2);const _0x119c51=_0x41a6c8[_0x3f75('0x4d')]({'view':_0x353264,'target':()=>{const _0x398ce3=[],_0x58462d=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x576716=>_0x576716[_0x3f75('0x28')]);for(const _0x5e7984 of _0x58462d)_0x398ce3[_0x3f75('0xe')](..._0x5e7984[_0x3f75('0x10')]());return _0x53d969(_0x2c3732[_0x3f75('0x34')],_0x398ce3);},'type':()=>_0x3f75('0x1c')+_0x529ff2['view'][_0x3f75('0x5')]});_0x41a6c8[_0x3f75('0x51')](_0x119c51),_0x3f4280[_0x3f75('0x13')](_0x119c51);}['_destroyController'](_0x4cf77e){const _0x448e06=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x5d81b9=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x4cf77e),_0x4d7a1d=_0x5d81b9[_0x3f75('0x4f')],_0x56dcb0=_0x448e06[_0x3f75('0x26')](_0x4d7a1d);_0x56dcb0&&_0x448e06[_0x3f75('0x25')](_0x56dcb0),this[_0x3f75('0x1e')]['delete'](_0x4cf77e),this['_viewToController']['delete'](_0x4d7a1d),_0x5d81b9[_0x3f75('0x36')]();}[_0x3f75('0x21')](_0x5ec115){if(!_0x5ec115[_0x3f75('0x28')]||!this[_0x3f75('0x1e')][_0x3f75('0x11')](_0x5ec115))return;const _0x2beba1=this[_0x3f75('0x1f')]['plugins']['get']('TrackChangesEditing'),_0x1f9211=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x5ec115),_0x1ff358=_0x5ec115[_0x3f75('0x33')]();_0x1f9211[_0x3f75('0x4f')][_0x3f75('0x27')]=_0x2beba1[_0x3f75('0x3c')][_0x3f75('0x49')](_0x1ff358);}[_0x3f75('0x36')](){for(const _0x53bbbd of this[_0x3f75('0x1e')][_0x3f75('0x68')]())this[_0x3f75('0x3b')](_0x53bbbd);for(const _0x1b5636 of this[_0x3f75('0x3')][_0x3f75('0x6b')]())_0x1b5636['mainView']['destroy']();super[_0x3f75('0x36')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe9aa=['locale','view','unbind','_setPendingAction','isEnabled','canAccept','model','acceptSuggestion','commands','canDiscard','_pendingAction','listenTo','discardSuggestion','add','change:isDirty','_editor','_acceptCommand','isDirty','_removePendingAction','commentThreadController','get','execute','bind','stopListening','PendingActions','remove','destroy','plugins','_discardCommand'];(function(_0x4a37ab,_0xe9aae9){const _0x395e5b=function(_0x532d54){while(--_0x532d54){_0x4a37ab['push'](_0x4a37ab['shift']());}};_0x395e5b(++_0xe9aae9);}(_0xe9aa,0x19c));const _0x395e=function(_0x4a37ab,_0xe9aae9){_0x4a37ab=_0x4a37ab-0x0;let _0x395e5b=_0xe9aa[_0x4a37ab];return _0x395e5b;};import{ObservableMixin as _0x2a1998}from'ckeditor5/src/utils';import{getTranslation as _0x53fb1f}from'../utils/common-translations';export default class Lt extends _0x2a1998(){constructor(_0xa28128,_0x2f7d71,_0x2109fb,_0x39a8a0){super(),this[_0x395e('0x0')]=_0x2f7d71,this[_0x395e('0x18')]=_0x2109fb,this[_0x395e('0xd')]=_0x39a8a0,this[_0x395e('0x9')]=_0xa28128,this['_acceptCommand']=_0xa28128[_0x395e('0x2')][_0x395e('0xe')]('acceptSuggestion'),this['_discardCommand']=_0xa28128[_0x395e('0x2')][_0x395e('0xe')](_0x395e('0x6')),this['view'][_0x395e('0x10')](_0x395e('0x1b'))['to'](this[_0x395e('0xa')],this[_0x395e('0x16')],(_0x1b7579,_0x547d7b)=>_0x1b7579||_0x547d7b),this[_0x395e('0x18')][_0x395e('0x10')](_0x395e('0x1c'))['to'](this[_0x395e('0xa')],'isEnabled'),this['view']['bind'](_0x395e('0x3'))['to'](this[_0x395e('0x16')],_0x395e('0x1b')),this[_0x395e('0x4')]=null,_0x2109fb['isDirty']&&this['_setPendingAction'](),this[_0x395e('0x5')](_0x2109fb,_0x395e('0x1'),()=>this['acceptSuggestion']()),this[_0x395e('0x5')](_0x2109fb,_0x395e('0x6'),()=>this[_0x395e('0x6')]()),this[_0x395e('0x5')](_0x2109fb,_0x395e('0x8'),()=>{_0x2109fb[_0x395e('0xb')]?this['_setPendingAction']():this['_removePendingAction']();});}[_0x395e('0x1')](){this[_0x395e('0xa')][_0x395e('0xf')](this['model']['id']);}[_0x395e('0x6')](){this[_0x395e('0x16')][_0x395e('0xf')](this[_0x395e('0x0')]['id']);}[_0x395e('0x14')](){this[_0x395e('0x18')][_0x395e('0x19')]('isEnabled'),this['view'][_0x395e('0x19')](_0x395e('0x1c')),this[_0x395e('0x18')]['unbind'](_0x395e('0x3')),this[_0x395e('0x11')](),this[_0x395e('0xd')][_0x395e('0x14')](),this[_0x395e('0x4')]&&this['_removePendingAction']();}[_0x395e('0x1a')](){const _0x4feb8b=_0x53fb1f(this[_0x395e('0x9')][_0x395e('0x17')],'PENDING_ACTION_SUGGESTION');this[_0x395e('0x4')]=this[_0x395e('0x9')][_0x395e('0x15')][_0x395e('0xe')](_0x395e('0x12'))[_0x395e('0x7')](_0x4feb8b);}[_0x395e('0xc')](){null!==this[_0x395e('0x4')]&&this[_0x395e('0x9')][_0x395e('0x15')][_0x395e('0xe')](_0x395e('0x12'))[_0x395e('0x13')](this['_pendingAction']),this['_pendingAction']=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53c5=['canDiscard','value','bind','_model','editorConfig','isDirty','updateComment','delegate','commentsListView','destroy','length','_config','_createCommentThreadInputView','isEnabled','cancel','addComment','_localUser','authoredAt','commentThreadInputView','commentInputView','commentThread','showInput','assign','isReadOnly','canAccept','set','locale','isActive','focus','setData','element','_createCommentViews','removeComment'];(function(_0x3af7e8,_0x53c55b){const _0x92035e=function(_0x43c931){while(--_0x43c931){_0x3af7e8['push'](_0x3af7e8['shift']());}};_0x92035e(++_0x53c55b);}(_0x53c5,0x15b));const _0x9203=function(_0x3af7e8,_0x53c55b){_0x3af7e8=_0x3af7e8-0x0;let _0x92035e=_0x53c5[_0x3af7e8];return _0x92035e;};import{View as _0x42ff75}from'ckeditor5/src/ui';export default class ii extends _0x42ff75{constructor(_0x364550,_0x589e41,_0x47fb31,_0x342d82){super(_0x364550),this['commentsListView']=null,this[_0x9203('0x1')]=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x589e41[_0x9203('0x0')]),this['bind'](_0x9203('0x0'))['to'](_0x589e41),this[_0x9203('0x8')]('descriptionParts',[]),this['set'](_0x9203('0x15'),!0x1),this[_0x9203('0x8')](_0x9203('0x1d'),!0x1),this[_0x9203('0x8')](_0x9203('0x7'),!0x1),this['set'](_0x9203('0x10'),!0x1),this[_0x9203('0x13')]=_0x589e41,this[_0x9203('0x20')]=_0x47fb31,this[_0x9203('0x1b')]=_0x342d82,_0x342d82['disableComments']?this[_0x9203('0x8')]('length',0x1):this[_0x9203('0xe')]();}[_0x9203('0xb')](){this[_0x9203('0xd')]['focus']();}[_0x9203('0x19')](){this['commentsListView']&&this['commentsListView'][_0x9203('0x19')](),this['commentThreadInputView']&&this[_0x9203('0x1')]['destroy'](),super[_0x9203('0x19')]();}[_0x9203('0xe')](){const {CommentsListView:_0x2d151f}=this['_config'];this[_0x9203('0x18')]=new _0x2d151f(this[_0x9203('0x9')],this[_0x9203('0x13')]['commentThread'],Object[_0x9203('0x5')]({'CommentView':this[_0x9203('0x1b')]['CommentView']},this[_0x9203('0x1b')])),this['commentsListView'][_0x9203('0x17')](_0x9203('0xf'))['to'](this),this[_0x9203('0x18')][_0x9203('0x17')](_0x9203('0x16'))['to'](this),this[_0x9203('0x18')][_0x9203('0x12')](_0x9203('0xa'))['to'](this),this[_0x9203('0x8')](_0x9203('0x1a'),this['commentsListView']['length']+0x1),this['bind'](_0x9203('0x1a'))['to'](this[_0x9203('0x18')],'length',_0x508e82=>_0x508e82+0x1),this[_0x9203('0x1')]=this[_0x9203('0x1c')](),this['on'](_0x9203('0xf'),()=>this[_0x9203('0xb')]()),this['bind'](_0x9203('0x15'))['to'](this[_0x9203('0x18')],'hasDirtyComment',this[_0x9203('0x1')][_0x9203('0x2')],_0x9203('0x11'),(_0x383e79,_0x5d76e7)=>_0x383e79||!!_0x5d76e7);}[_0x9203('0x1c')](){const {CommentThreadInputView:_0x4a5dbc}=this[_0x9203('0x1b')],_0x7a0e9c=new _0x4a5dbc(this[_0x9203('0x9')],this['_localUser'],this[_0x9203('0x1b')][_0x9203('0x14')]),_0x34b97e=_0x7a0e9c[_0x9203('0x2')];return _0x7a0e9c[_0x9203('0x12')](_0x9203('0x4'))['to'](this,'isActive',this[_0x9203('0x13')][_0x9203('0x3')],_0x9203('0x6'),_0x34b97e,_0x9203('0x11'),(_0x5cf548,_0x4de9ee,_0x4cd5c4)=>!!_0x4cd5c4||_0x5cf548&&!_0x4de9ee),_0x34b97e['on']('submit',(_0x36ed64,_0x3b068e)=>{this['fire'](_0x9203('0x1f'),_0x3b068e),_0x34b97e['editor'][_0x9203('0xc')]('');}),_0x34b97e['on'](_0x9203('0x1e'),()=>this[_0x9203('0xb')]()),_0x34b97e['bind']('disabledSubmit')['to'](this[_0x9203('0x13')][_0x9203('0x3')],'isReadOnly'),_0x7a0e9c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45ac=['isEnabled','creator','locale','_createButton','ck-suggestion--disabled-comments','ck-suggestion__actions','acceptButton','check','Discard\x20suggestion','commentThreadInputView','ck-suggestion-','importWord','formatDateTime','source','getUserViewNotificationText','join','ck-annotation__main','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-suggestion-wrapper--active','createElement','discardSuggestion','EXTERNAL_IMPORT_WORD_AVATAR','author','bind','@external','ck-suggestion__user','span','getExternalSuggestionNote','EXTERNAL_SUGGESTION','_model','description','ck-annotation__info-time','canDiscard','querySelector','change:description','descriptionParts','ck-comment__external','execute','canAccept','_config','userView','<p>','ck-annotation__info-name','getTemplate','attributes','fire','<span\x20class=\x22ck-suggestion-type\x22>','type','</p>','authoredAt','ck-suggestion__info-name','ck-comment__info-time','</span>','title','ck-annotation__user','ck-suggestion__info','bindTemplate','div','isActive','ck-suggestion__main','render','discardButton','ck-suggestion--discard','push','value','ck-annotation__info','_descriptionElement','commentThread','set','\x22></span>','disableComments','time','cancel','color','isExternal','innerHTML','name','extendTemplate','content','split','children','element'];(function(_0x179b9a,_0x45ac07){const _0x4ce906=function(_0xa7a83){while(--_0xa7a83){_0x179b9a['push'](_0x179b9a['shift']());}};_0x4ce906(++_0x45ac07);}(_0x45ac,0xc7));const _0x4ce9=function(_0x179b9a,_0x45ac07){_0x179b9a=_0x179b9a-0x0;let _0x4ce906=_0x45ac[_0x179b9a];return _0x4ce906;};import{getTranslation as _0x5c72a7}from'../../utils/common-translations';import{default as _0x288fa3}from'./basesuggestionthreadview';import{ButtonView as _0x323952}from'ckeditor5/src/ui';import{icons as _0x37b5d1}from'ckeditor5/src/core';import{trimHtml as _0x537b48,UserView as _0x394743}from'ckeditor5-collaboration/src/collaboration-core';export default class Rt extends _0x288fa3{constructor(_0x1cefc2,_0x531c99,_0x343af6,_0x21776e){super(_0x1cefc2,_0x531c99,_0x343af6,_0x21776e),this[_0x4ce9('0x21')](_0x4ce9('0xc'),''),this[_0x4ce9('0x46')]('type')['to'](this,'descriptionParts',_0x186948=>_0x186948&&_0x186948[0x0]?_0x186948[0x0]['type']:''),this[_0x4ce9('0x46')]('description')['to'](this,_0x4ce9('0x0'),this,_0x4ce9('0x17'),(_0x5ac0ee,_0x34926f)=>{let _0x5733d4='';for(const _0x18fca6 of _0x5ac0ee)_0x5733d4+=_0x4ce9('0x6')+ns(_0x18fca6[_0x4ce9('0x2b')],_0x18fca6[_0x4ce9('0x26')])+_0x4ce9('0xd');return _0x34926f?_0x5733d4:_0x537b48(_0x5733d4,{'limit':0x8c});}),this[_0x4ce9('0x1f')]=null,this[_0x4ce9('0x35')]=this[_0x4ce9('0x32')](_0x5c72a7(_0x1cefc2,'Accept\x20suggestion'),_0x37b5d1[_0x4ce9('0x36')],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton'][_0x4ce9('0x46')](_0x4ce9('0x2f'))['to'](this,_0x4ce9('0x3')),this[_0x4ce9('0x1a')]=this[_0x4ce9('0x32')](_0x5c72a7(_0x1cefc2,_0x4ce9('0x37')),_0x37b5d1[_0x4ce9('0x25')],_0x4ce9('0x1b'),_0x4ce9('0x43'),'sw'),this[_0x4ce9('0x1a')][_0x4ce9('0x46')](_0x4ce9('0x2f'))['to'](this,_0x4ce9('0x4f')),this[_0x4ce9('0x5')]=new _0x394743(_0x1cefc2,this[_0x4ce9('0x4c')][_0x4ce9('0x45')],this[_0x4ce9('0x3d')]()),this['userView'][_0x4ce9('0x2a')]({'attributes':{'class':[_0x4ce9('0x48'),_0x4ce9('0x13')]}}),this['setTemplate'](this[_0x4ce9('0x8')]());}[_0x4ce9('0x8')](){const _0x1aa544=this[_0x4ce9('0x15')],_0x286dc6=[{'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x14'),_0x4ce9('0x1e')]},'children':[{'tag':_0x4ce9('0x49'),'children':[{'text':this[_0x4ce9('0x5')][_0x4ce9('0x29')]}],'attributes':{'class':[_0x4ce9('0xf'),_0x4ce9('0x7')]}},{'tag':_0x4ce9('0x24'),'attributes':{'datetime':_0x1aa544['to'](_0x4ce9('0xe')),'class':[_0x4ce9('0x10'),_0x4ce9('0x4e')]},'children':[{'text':_0x1aa544['to'](_0x4ce9('0xe'),_0x4499cd=>this[_0x4ce9('0x4')][_0x4ce9('0x3b')](_0x4499cd))}]}]},{'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x34'),'ck-annotation__actions']},'children':[this[_0x4ce9('0x35')],this['discardButton']]},{'tag':_0x4ce9('0x16'),'attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x4ce9('0x4c')][_0x4ce9('0x27')]&&_0x286dc6[_0x4ce9('0x1c')]({'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x1')]},'children':[{'text':this[_0x4ce9('0x4a')]()}]});const _0x36067a={'tag':_0x4ce9('0x16'),'attributes':{'class':['ck-suggestion-wrapper',_0x1aa544['if'](_0x4ce9('0x17'),_0x4ce9('0x41')),_0x1aa544['to']('type',_0x216759=>_0x4ce9('0x39')+_0x216759),this[_0x4ce9('0x4')][_0x4ce9('0x23')]&&_0x4ce9('0x33')],'data-suggestion-id':this[_0x4ce9('0x4c')]['id'],'data-thread-id':this[_0x4ce9('0x4c')][_0x4ce9('0x20')]['id'],'data-author-id':this[_0x4ce9('0x4c')]['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x4ce9('0x16'),'attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this[_0x4ce9('0x5')],{'tag':_0x4ce9('0x16'),'attributes':{'class':[_0x4ce9('0x18'),_0x4ce9('0x3f')]},'children':_0x286dc6}]}]};return this['commentsListView']&&this[_0x4ce9('0x38')]&&_0x36067a[_0x4ce9('0x2d')][_0x4ce9('0x1c')](this['commentsListView'],this[_0x4ce9('0x38')]),_0x36067a;}[_0x4ce9('0x19')](){super[_0x4ce9('0x19')](),this[_0x4ce9('0x1f')]=this[_0x4ce9('0x2e')][_0x4ce9('0x50')]('.ck-annotation__content-wrapper'),this[_0x4ce9('0x1f')][_0x4ce9('0x28')]=this[_0x4ce9('0x4d')],this['on'](_0x4ce9('0x51'),(_0x2b37be,_0x4fa139,_0x5ba9dc)=>{this[_0x4ce9('0x1f')][_0x4ce9('0x28')]=_0x5ba9dc;});}[_0x4ce9('0x32')](_0x4c152e,_0x233d1d,_0x460a0d,_0x188951,_0x1504e5){const _0x193723=new _0x323952(this[_0x4ce9('0x31')]);return _0x193723[_0x4ce9('0x21')]({'label':_0x4c152e,'icon':_0x233d1d,'tooltip':!0x0,'tooltipPosition':_0x1504e5}),_0x193723[_0x4ce9('0x2a')]({'attributes':{'class':_0x460a0d}}),_0x193723['on'](_0x4ce9('0x2'),()=>{this[_0x4ce9('0xa')](_0x188951,this[_0x4ce9('0x4c')]['id']);}),_0x193723;}[_0x4ce9('0x4a')](){return _0x4ce9('0x3a')===this['_model'][_0x4ce9('0x9')][_0x4ce9('0x47')][_0x4ce9('0x3c')]?_0x5c72a7(this[_0x4ce9('0x31')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x5c72a7(this[_0x4ce9('0x31')],_0x4ce9('0x4b'));}['getUserViewNotificationText'](){return this[_0x4ce9('0x4c')][_0x4ce9('0x27')]?_0x4ce9('0x3a')===this[_0x4ce9('0x4c')]['attributes'][_0x4ce9('0x47')][_0x4ce9('0x3c')]?_0x5c72a7(this[_0x4ce9('0x31')],_0x4ce9('0x44'),this[_0x4ce9('0x4c')][_0x4ce9('0x30')]['name']):_0x5c72a7(this[_0x4ce9('0x31')],'EXTERNAL_AVATAR',this['_model'][_0x4ce9('0x30')][_0x4ce9('0x29')]):null;}}function ns(_0x57a1dd,_0x5728de){let _0x4a85eb='';return _0x4a85eb+=_0x57a1dd[_0x4ce9('0x2c')]('*')['map']((_0x4e7833,_0x4b3986)=>_0x4b3986%0x2!=0x0?_0x4ce9('0xb')+os(_0x4e7833)+_0x4ce9('0x11'):os(_0x4e7833))[_0x4ce9('0x3e')](''),_0x5728de&&(_0x4a85eb+=_0x4ce9('0x40')+_0x5728de[_0x4ce9('0x1d')]+'\x22\x20title=\x22'+_0x5728de[_0x4ce9('0x12')]+_0x4ce9('0x22')),_0x4a85eb;}function os(_0x3866a1){const _0x20f131=document[_0x4ce9('0x42')](_0x4ce9('0x49'));return _0x20f131['innerText']=_0x3866a1,_0x20f131[_0x4ce9('0x28')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x523604,_0x5bdbd5,_0xd50920){const t=_0x523604['t'];switch(_0x5bdbd5){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',_0xd50920);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xd50920);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xd50920);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xd50920);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xd50920);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',_0xd50920);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xd50920);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\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',_0xd50920);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xd50920);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xd50920);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xd50920);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xd50920);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xd50920);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xd50920);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xd50920);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xd50920);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xd50920);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xd50920);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xd50920);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xd50920);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xd50920);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'},_0xd50920);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xd50920);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xd50920);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xd50920);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xd50920);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xd50920);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'},_0xd50920);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xd50920);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xd50920);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xd50920);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xd50920);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});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':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'},_0xd50920);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xd50920);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'},_0xd50920);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'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'},_0xd50920);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xd50920);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'},_0xd50920);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xd50920);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'},_0xd50920);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xd50920);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'},_0xd50920);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'},_0xd50920);default:return _0x5bdbd5;}}
|
|
23
|
+
export function getTranslation(_0x491287,_0x8406df,_0x5c0474){const t=_0x491287['t'];switch(_0x8406df){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',_0x5c0474);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5c0474);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5c0474);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5c0474);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5c0474);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',_0x5c0474);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5c0474);case'*Format:*\x20replace\x20image\x20URL':return t('*Format:*\x20replace\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',_0x5c0474);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5c0474);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5c0474);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5c0474);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5c0474);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5c0474);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5c0474);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5c0474);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5c0474);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5c0474);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5c0474);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5c0474);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5c0474);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5c0474);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'},_0x5c0474);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5c0474);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5c0474);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5c0474);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5c0474);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5c0474);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5c0474);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5c0474);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5c0474);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});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':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'},_0x5c0474);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5c0474);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'},_0x5c0474);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'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'},_0x5c0474);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5c0474);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'},_0x5c0474);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5c0474);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'},_0x5c0474);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'},_0x5c0474);default:return _0x8406df;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cb3=['add','length','createPositionAt','getRanges','from','isArray','isCollapsed','isTouching','start','deletion','value','isIntersecting','color','isInContent','execute','change','createPositionAfter','schema','getRange','next','isObject','end','sort','splice','type','content','createRange'];(function(_0x1212e5,_0x3cb3c5){const _0x7e7d16=function(_0x5ee4bd){while(--_0x5ee4bd){_0x1212e5['push'](_0x1212e5['shift']());}};_0x7e7d16(++_0x3cb3c5);}(_0x3cb3,0xaf));const _0x7e7d=function(_0x1212e5,_0x3cb3c5){_0x1212e5=_0x1212e5-0x0;let _0x7e7d16=_0x3cb3[_0x1212e5];return _0x7e7d16;};export function normalizeDescription(_0x41404a){return Array[_0x7e7d('0x13')](_0x41404a)||(_0x41404a=[_0x41404a]),_0x41404a['map'](_0x41d533=>{const _0x46ee69=_0x41d533[_0x7e7d('0xc')]['replace'](/\*/g,''),_0xf8a98=_0x41d533[_0x7e7d('0x1a')]?'\x20[color\x20'+_0x41d533[_0x7e7d('0x1a')][_0x7e7d('0x18')]+']':'';return'['+_0x41d533['type']+']\x20'+_0x46ee69+_0xf8a98;})['join'](';\x20');}export function sortSuggestions(_0x42abdb){return _0x42abdb[_0x7e7d('0x9')]((_0x2eb7c4,_0x4efb48)=>'deletion'==_0x2eb7c4[_0x7e7d('0xb')]&&'deletion'!=_0x4efb48[_0x7e7d('0xb')]?-0x1:_0x7e7d('0x17')!=_0x2eb7c4['type']&&_0x7e7d('0x17')==_0x4efb48[_0x7e7d('0xb')]?0x1:0x0);}export function getSelectedSuggestions(_0x1acb4f,_0x393b03){const _0x5a69b9=Array[_0x7e7d('0x12')](_0x1acb4f[_0x7e7d('0x11')]()),_0x1ad02c=new Set();for(const _0x5cc0b4 of _0x393b03)if(_0x5cc0b4[_0x7e7d('0x0')])for(const _0x42b7cd of _0x5a69b9)for(const _0x4d7019 of _0x5cc0b4['getMarkers']()){const _0x4e49d9=_0x4d7019[_0x7e7d('0x5')]();(_0x42b7cd[_0x7e7d('0x19')](_0x4e49d9)||_0x1acb4f[_0x7e7d('0x14')]&&!_0x5cc0b4['isMultiRange']&&_0x5cc0b4[_0x7e7d('0x6')]&&_0x4e49d9['end'][_0x7e7d('0x15')](_0x42b7cd[_0x7e7d('0x16')]))&&_0x1ad02c[_0x7e7d('0xe')](_0x5cc0b4);}return _0x1ad02c;}export function getRangesOfBlockGroups(_0x542c0f,_0x2fd32d){let _0x113883,_0x44a127=0x0;const _0x4e0399=[],_0x488269=_0x2fd32d[_0x7e7d('0x4')];for(;_0x44a127<_0x542c0f['length'];){const _0x407111=_0x542c0f[_0x44a127],_0xfbb01c=_0x542c0f[_0x44a127+0x1];_0x113883||(_0x113883=_0x2fd32d['createPositionBefore'](_0x407111)),oo(_0x2fd32d,_0x407111,_0xfbb01c)||(_0x4e0399['push'](_0x2fd32d[_0x7e7d('0xd')](_0x113883,_0x488269[_0x7e7d('0x7')](_0x407111)?_0x2fd32d['createPositionAfter'](_0x407111):_0x2fd32d[_0x7e7d('0x10')](_0x407111,_0x7e7d('0x8')))),_0x113883=null),_0x44a127++;}return _0x4e0399;}function oo(_0x1399fe,_0x3bbb3c,_0x4eb09f){if(!_0x4eb09f)return!0x1;const _0x2fa16d=_0x1399fe[_0x7e7d('0x3')](_0x3bbb3c),_0x5ec323=_0x1399fe['createPositionBefore'](_0x4eb09f);return _0x2fa16d['isTouching'](_0x5ec323);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x4e177a,_0x148492,_0x300a4e){for(;_0x300a4e[_0x7e7d('0xf')];){const _0x51cd4d=_0x300a4e[_0x7e7d('0xa')](0x0,0x64);_0x4e177a[_0x7e7d('0x2')](()=>{for(const _0x50bc38 of _0x51cd4d)_0x50bc38['isInContent']&&_0x148492[_0x7e7d('0x1')](_0x50bc38['id']);});}}
|