@ckeditor/ckeditor5-track-changes 39.0.0 → 39.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- 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/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/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.d.ts +29 -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 _0x52c8=['getSuggestion','CommentsUI','separator','createCommentThreadController','registerAnnotation','getAllAdjacentSuggestions','_bindAnnotationToEditors','clear','commentThread','_descriptionFactory','map','head','plugins','filter','add','comments.maxThreadTotalWeight','comments.editorConfig','value','mainView','suggestion-','activeMarkers','Accept\x20all\x20suggestions','focus','bind','trackChanges','_handleSuggestionControllerDelayed','change:activeAnnotations','addSourceCollector','isEnabled','from','CommentView','_destroyController','size','button','isMultiRange','commands','length','comments.maxCommentCharsWhenCollapsed','execute','_createUIButton','_handleControllerBuffer','previous','isOn','EditorAnnotations','Accept\x20all\x20selected\x20suggestions','componentFactory','Discard\x20all\x20suggestions','discardSelectedSuggestions','_updateController','discardAllSuggestions','Track\x20changes','_refreshActiveMarkers','suggestionChanged','actionView','arrowView','buttonView','_disableComments','getJoined','getDescriptions','isInContent','TrackChangesEditing','editing','Discard\x20all\x20selected\x20suggestions','activeAnnotations','remove','createAnnotationView','push','getMarkerNames','unbind','_viewToController','acceptSelectedSuggestions','destroy','stopListening','lowest','trackChanges.SuggestionThreadView','pluginName','reduce','view','model','refreshSelectedViews','comments.maxCommentsWhenCollapsed','keys','listenTo','descriptionParts','source','createAnnotation','delete','commandName','CommentsRepository','toMany','get','Annotations','hasSuggestion','getRanges','innerView','config','isDirty','has','acceptButton','editor','locale','_suggestionToController','trackChanges.disableComments','_annotationViews','define','getMarkers','_initializeController','type','set','suggestionUnloaded'];(function(_0x41bbad,_0x52c86c){const _0x306685=function(_0x3d795a){while(--_0x3d795a){_0x41bbad['push'](_0x41bbad['shift']());}};_0x306685(++_0x52c86c);}(_0x52c8,0x178));const _0x3066=function(_0x41bbad,_0x52c86c){_0x41bbad=_0x41bbad-0x0;let _0x306685=_0x52c8[_0x41bbad];return _0x306685;};import{Plugin as _0x150f8e}from'ckeditor5/src/core';import{Collection as _0x105231}from'ckeditor5/src/utils';import{Model as _0x57de1c,SplitButtonView as _0x2310fa,createDropdown as _0xc09fa7,addListToDropdown as _0x488754}from'ckeditor5/src/ui';import{Users as _0x58949e,getDateTimeFormatter as _0x5c812c,getAllMarkersDomElementsSorted as _0x21dc61}from'ckeditor5-collaboration/src/collaboration-core';import _0x5eba2c from'./trackchangesediting';import _0x31106f from'./ui/suggestioncontroller';import _0x9b6e8e from'./ui/view/suggestionthreadview';import{getTranslation as _0x222207}from'./utils/common-translations';import _0x2f83d9 from'../theme/icons/track-changes.svg';export default class d extends _0x150f8e{static get['requires'](){return[_0x5eba2c,_0x58949e,'CommentsRepository','Annotations','EditorAnnotations'];}static get[_0x3066('0x1d')](){return'TrackChangesUI';}constructor(_0x42e4d6){super(_0x42e4d6),this[_0x3066('0x37')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x3066('0x68')]=new Map();const _0x5cd72e=this['editor'][_0x3066('0x31')];_0x5cd72e[_0x3066('0x3a')](_0x3066('0x1c'),_0x9b6e8e),_0x5cd72e['define']('trackChanges.disableComments',!0x1),this[_0x3066('0xa')]=_0x5cd72e[_0x3066('0x2c')](_0x3066('0x38'));}[_0x3066('0x59')](_0x25c8a5,_0x35505e){0x0===this['_handleControllerBuffer'][_0x3066('0x60')]&&setTimeout(()=>{for(const [_0x3e5db5,_0x1b509d]of this[_0x3066('0x68')]){const _0x32544a=this[_0x3066('0x37')][_0x3066('0x33')](_0x3e5db5);_0x32544a||_0x1b509d?_0x32544a&&_0x1b509d&&this[_0x3066('0x5f')](_0x3e5db5):this[_0x3066('0x3c')](_0x3e5db5);}this[_0x3066('0x35')]['plugins']['get'](_0x3066('0x6b'))[_0x3066('0x21')](),this[_0x3066('0x5')](),this['_handleControllerBuffer'][_0x3066('0x47')]();},0xa),this[_0x3066('0x68')][_0x3066('0x3e')](_0x25c8a5,_0x35505e);}['init'](){const _0x5a21e4=this[_0x3066('0x35')],_0x2831c6=_0x5a21e4['plugins'][_0x3066('0x2c')](_0x3066('0xe')),_0x1042ff=_0x5a21e4[_0x3066('0x4c')]['get']('Annotations'),_0x300203=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')]('EditorAnnotations'),_0x8a483d=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a'));_0x5a21e4['ui'][_0x3066('0x6d')][_0x3066('0x4e')]('trackChanges',_0x16a0e2=>this['_createUIButton'](_0x16a0e2)),_0x300203[_0x3066('0x5b')](()=>{const _0x471a5a=[];for(const [_0x5cbc80,_0x1db24d]of Array[_0x3066('0x5d')](this['_suggestionToController'])){const _0x4e19da=_0x5cbc80[_0x3066('0x45')](),_0x44b122=[];for(const _0x501800 of _0x4e19da){if(!_0x501800[_0x3066('0xd')])continue;if(_0x501800[_0x3066('0x62')]){_0x44b122[_0x3066('0x14')](..._0x501800[_0x3066('0x2f')]());continue;}const _0xce4225=_0x501800['getFirstRange']();if(_0x44b122['length']>0x0){const _0x3e6235=_0x44b122[0x0][_0x3066('0xb')](_0xce4225);if(_0x3e6235){_0x44b122[0x0]=_0x3e6235;continue;}}_0x44b122['push'](_0xce4225);}_0x471a5a[_0x3066('0x14')]([_0x1db24d[_0x3066('0x1f')],_0x44b122]);}return _0x471a5a;}),this[_0x3066('0x24')](_0x2831c6,'suggestionLoaded',(_0x418bbc,_0x18ee7f)=>{this[_0x3066('0x24')](_0x18ee7f,'change:previous',(_0x1f9327,_0x3c7178,_0x29399c,_0x1b1877)=>{_0x18ee7f[_0x3066('0xd')]&&(null==_0x29399c?(this[_0x3066('0x2')](_0x1b1877['head']),this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1)):(this[_0x3066('0x2')](_0x29399c['head']),this[_0x3066('0x59')](_0x18ee7f,!0x0)));}),null===_0x18ee7f[_0x3066('0x69')]?this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1):this[_0x3066('0x2')](_0x18ee7f[_0x3066('0x4b')]);}),this['listenTo'](_0x2831c6,_0x3066('0x3f'),(_0x25f1cf,_0x1e2fa4,_0x13cfbb)=>{this[_0x3066('0x1a')](_0x1e2fa4,'change:previous'),this['_handleControllerBuffer'][_0x3066('0x28')](_0x1e2fa4);const _0x69abc7=_0x13cfbb?_0x13cfbb[_0x3066('0x4b')]:_0x1e2fa4,_0x3558f0=this['_suggestionToController'][_0x3066('0x2c')](_0x69abc7);null!==_0x13cfbb&&this[_0x3066('0x2')](_0x69abc7),null===_0x13cfbb&&_0x3558f0&&this[_0x3066('0x5f')](_0x1e2fa4);}),this[_0x3066('0x24')](_0x2831c6,_0x3066('0x6'),(_0x3dba31,_0x4a5c43)=>{this[_0x3066('0x2')](_0x4a5c43);}),this[_0x3066('0x24')](_0x1042ff,_0x3066('0x5a'),()=>{this['_refreshActiveMarkers']();}),this[_0x3066('0x24')](_0x8a483d,'addComment',(_0x13d8a6,{threadId:_0x3a75ce,isFromAdapter:_0x12a120})=>{if(_0x12a120||!_0x2831c6[_0x3066('0x2e')](_0x3a75ce))return;const _0x368224=_0x2831c6[_0x3066('0x40')](_0x3a75ce);this[_0x3066('0x37')]['get'](_0x368224)['view'][_0x3066('0x56')]();},{'priority':_0x3066('0x1b')});}[_0x3066('0x5')](){const _0x3cb2c0=this[_0x3066('0x35')][_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5da5b1=this['editor']['plugins'][_0x3066('0x2c')]('TrackChangesEditing'),_0x941e10=Array['from'](_0x3cb2c0[_0x3066('0x11')],_0x6a992=>_0x6a992[_0x3066('0x30')])[_0x3066('0x4d')](_0x1d7e9f=>this[_0x3066('0x17')][_0x3066('0x33')](_0x1d7e9f)),_0x430920=[];for(const _0x3856c3 of _0x941e10){const _0x505988=this[_0x3066('0x17')][_0x3066('0x2c')](_0x3856c3)[_0x3066('0x20')][_0x3066('0x45')]();_0x430920[_0x3066('0x14')](..._0x505988[_0x3066('0x1e')]((_0x17680f,_0x132404)=>[..._0x17680f,..._0x132404[_0x3066('0x15')]()],[]));}_0x5da5b1[_0x3066('0x54')]=_0x430920;}[_0x3066('0x67')](_0x4a444f){const _0x19dbec=_0xc09fa7(_0x4a444f,_0x2310fa),_0x13d132=this['editor']['commands'][_0x3066('0x2c')]('trackChanges'),_0x4b4456=_0x222207(_0x4a444f,_0x3066('0x4'));_0x19dbec[_0x3066('0x9')][_0x3066('0x3e')]({'tooltip':_0x4b4456,'label':_0x4b4456,'icon':_0x2f83d9}),_0x19dbec[_0x3066('0x9')][_0x3066('0x57')](_0x3066('0x6a'))['to'](_0x13d132,_0x3066('0x51')),_0x19dbec[_0x3066('0x9')]['on'](_0x3066('0x66'),()=>{_0x13d132[_0x3066('0x66')](),this[_0x3066('0x35')][_0x3066('0xf')][_0x3066('0x1f')]['focus']();});const _0x35edcf=new _0x105231(),_0x26714e=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4b4456,'commandName':_0x3066('0x58')}},{'type':_0x3066('0x42')},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x55')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x6c')),'commandName':_0x3066('0x18')}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x0')),'commandName':_0x3066('0x3')}},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x10')),'commandName':_0x3066('0x1')}}];for(const _0x37c8a7 of _0x26714e){let _0x1498ab={'type':'separator'};if(_0x37c8a7[_0x3066('0x20')]){const _0x492cd9=new _0x57de1c(_0x37c8a7['model']),_0x1dccf8=this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x492cd9[_0x3066('0x29')]);_0x492cd9[_0x3066('0x57')](_0x3066('0x6a'),'isEnabled')['to'](_0x1dccf8,_0x3066('0x51'),_0x3066('0x5c')),_0x1498ab={'type':_0x37c8a7[_0x3066('0x3d')],'model':_0x492cd9};}_0x35edcf[_0x3066('0x4e')](_0x1498ab);}_0x488754(_0x19dbec,_0x35edcf);const _0xfb7c45=_0x26714e[_0x3066('0x4d')](_0x2ae6f0=>null!=_0x2ae6f0[_0x3066('0x20')])[_0x3066('0x4a')](_0x35a5f6=>this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x35a5f6[_0x3066('0x20')]['commandName'])),_0x459904=_0x19dbec[_0x3066('0x9')];return _0x459904[_0x3066('0x7')]['unbind']('isEnabled'),_0x459904['arrowView'][_0x3066('0x16')](_0x3066('0x5c')),_0x459904[_0x3066('0x7')][_0x3066('0x57')]('isEnabled')['to'](_0x13d132,_0x3066('0x5c')),_0x459904[_0x3066('0x8')]['bind'](_0x3066('0x5c'))[_0x3066('0x2b')](_0xfb7c45,_0x3066('0x5c'),(..._0x567b44)=>_0x567b44['some'](_0x2ec89f=>_0x2ec89f)),_0x19dbec['on'](_0x3066('0x66'),_0x5d9bdb=>{this[_0x3066('0x35')][_0x3066('0x66')](_0x5d9bdb[_0x3066('0x26')][_0x3066('0x29')]),this[_0x3066('0x35')]['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x19dbec;}[_0x3066('0x3c')](_0x2ca4d9){const _0x3ae8bb=this[_0x3066('0x35')],_0x361edb=_0x3ae8bb[_0x3066('0x31')],_0x99b80a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5784a1=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a')),_0x56d27a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x6b')),_0x18556c=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x58949e)['me'],_0x30d073=_0x361edb['get'](_0x3066('0x58'))['SuggestionThreadView'],{CommentsListView:_0x48f4c4,CommentThreadInputView:_0x559f8f}=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x41'));let _0x72d1a4,_0x4be4fb;this['_annotationViews'][_0x3066('0x33')](_0x2ca4d9['id'])?(_0x4be4fb=this['_annotationViews'][_0x3066('0x2c')](_0x2ca4d9['id']),_0x72d1a4=_0x4be4fb[_0x3066('0x52')]):(_0x72d1a4=new _0x30d073(_0x3ae8bb[_0x3066('0x36')],_0x2ca4d9,_0x18556c,{'disableComments':this[_0x3066('0xa')],'editorConfig':_0x361edb[_0x3066('0x2c')](_0x3066('0x50')),'maxCommentsWhenCollapsed':_0x361edb['get'](_0x3066('0x22')),'maxThreadTotalWeight':_0x361edb[_0x3066('0x2c')](_0x3066('0x4f')),'maxCommentCharsWhenCollapsed':_0x361edb[_0x3066('0x2c')](_0x3066('0x65')),'formatDateTime':_0x5c812c(_0x361edb[_0x3066('0x2c')](_0x3066('0x36'))),'CommentView':_0x361edb[_0x3066('0x2c')]('comments')[_0x3066('0x5e')],'CommentsListView':_0x48f4c4,'CommentThreadInputView':_0x559f8f}),_0x72d1a4[_0x3066('0x34')]['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x72d1a4['discardButton']['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x4be4fb=_0x99b80a[_0x3066('0x13')](this[_0x3066('0x35')][_0x3066('0x36')],_0x72d1a4),_0x4be4fb[_0x3066('0x57')](_0x3066('0x32'))['to'](_0x72d1a4,_0x3066('0x32')),_0x4be4fb[_0x3066('0x57')](_0x3066('0x64'))['to'](_0x72d1a4),_0x4be4fb[_0x3066('0x57')]('type')['to'](_0x72d1a4,'type',_0x2630af=>_0x3066('0x53')+_0x2630af),this[_0x3066('0x39')][_0x3066('0x3e')](_0x2ca4d9['id'],_0x4be4fb));const _0x5dea67=_0x5784a1[_0x3066('0x43')](_0x2ca4d9[_0x3066('0x48')],_0x72d1a4),_0x341dda=new _0x31106f(_0x3ae8bb,_0x2ca4d9,_0x72d1a4,_0x5dea67),_0x3afac1=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x3d5e91=>_0x3d5e91[_0x3066('0xd')]);_0x72d1a4[_0x3066('0x25')]=_0x3ae8bb[_0x3066('0x4c')]['get'](_0x3066('0xe'))[_0x3066('0x49')][_0x3066('0xc')](_0x3afac1),this['_suggestionToController']['set'](_0x2ca4d9,_0x341dda),this[_0x3066('0x17')][_0x3066('0x3e')](_0x72d1a4,_0x341dda);const _0x322422=_0x99b80a[_0x3066('0x27')]({'view':_0x4be4fb,'target':()=>{const _0x2deffa=[],_0x3b3b42=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x5e5b9c=>_0x5e5b9c[_0x3066('0xd')]);for(const _0x2599ff of _0x3b3b42)_0x2deffa[_0x3066('0x14')](..._0x2599ff[_0x3066('0x3b')]());return _0x21dc61(_0x3ae8bb['editing'],_0x2deffa);},'type':()=>'suggestion-'+_0x341dda[_0x3066('0x1f')][_0x3066('0x3d')]});_0x5784a1[_0x3066('0x46')](_0x72d1a4,_0x322422),_0x99b80a[_0x3066('0x4e')](_0x322422),_0x56d27a[_0x3066('0x44')](_0x322422);}[_0x3066('0x5f')](_0x11324b){const _0x33152a=this[_0x3066('0x35')]['plugins'][_0x3066('0x2c')](_0x3066('0x2d')),_0x5652d1=this[_0x3066('0x37')][_0x3066('0x2c')](_0x11324b),_0x5904e9=_0x5652d1[_0x3066('0x1f')],_0xc23a27=_0x33152a['getByInnerView'](_0x5904e9);_0xc23a27&&_0x33152a[_0x3066('0x12')](_0xc23a27),this[_0x3066('0x37')][_0x3066('0x28')](_0x11324b),this[_0x3066('0x17')][_0x3066('0x28')](_0x5904e9),_0x5652d1[_0x3066('0x19')]();}[_0x3066('0x2')](_0x4df611){if(!_0x4df611[_0x3066('0xd')]||!this[_0x3066('0x37')][_0x3066('0x33')](_0x4df611))return;const _0x1cfb40=this['editor'][_0x3066('0x4c')][_0x3066('0x2c')]('TrackChangesEditing'),_0x2b8b4e=this[_0x3066('0x37')]['get'](_0x4df611),_0x22f1f8=_0x4df611[_0x3066('0x45')]();_0x2b8b4e[_0x3066('0x1f')][_0x3066('0x25')]=_0x1cfb40['_descriptionFactory'][_0x3066('0xc')](_0x22f1f8);}[_0x3066('0x19')](){for(const _0x4d06f0 of this[_0x3066('0x37')][_0x3066('0x23')]())this['_destroyController'](_0x4d06f0);for(const _0x430378 of this[_0x3066('0x39')]['values']())_0x430378[_0x3066('0x52')][_0x3066('0x19')]();super[_0x3066('0x19')]();}}
|
|
23
|
+
const _0x8d8a=['some','addComment','arrowView','size','listenTo','CommentsUI','TrackChangesEditing','Discard\x20all\x20suggestions','getDescriptions','switchbutton','mainView','plugins','_unbindEditors','getMarkerNames','editing','getByInnerView','stopListening','push','createAnnotation','isInContent','Discard\x20all\x20selected\x20suggestions','getRanges','SuggestionThreadView','_handleSuggestionControllerDelayed','hasSuggestion','isDirty','suggestion-','suggestionLoaded','bind','_handleControllerBuffer','destroy','suggestionChanged','buttonView','EditorAnnotations','length','config','_suggestionToController','comments.editorConfig','delete','Track\x20changes','_annotationViews','activeAnnotations','define','lowest','focus','view','_updateController','actionView','type','_initializeController','commands','innerView','value','add','comments','head','map','toMany','separator','execute','acceptSelectedSuggestions','change:previous','TrackChangesUI','isOn','descriptionParts','addSourceCollector','createCommentThreadController','has','editor','discardButton','discardAllSuggestions','discardSelectedSuggestions','from','comments.maxThreadTotalWeight','unbind','commentThread','Accept\x20all\x20selected\x20suggestions','source','Annotations','get','CommentsRepository','trackChanges.disableComments','trackChanges','getJoined','_destroyController','_refreshActiveMarkers','keys','filter','locale','_descriptionFactory','componentFactory','refreshSelectedViews','registerAnnotation','getAllAdjacentSuggestions','model','button','getMarkers','commandName','_viewToController','activeMarkers','set','previous','isEnabled','_createUIButton'];(function(_0x37bf01,_0x8d8ad5){const _0x4ee02d=function(_0x263487){while(--_0x263487){_0x37bf01['push'](_0x37bf01['shift']());}};_0x4ee02d(++_0x8d8ad5);}(_0x8d8a,0x14e));const _0x4ee0=function(_0x37bf01,_0x8d8ad5){_0x37bf01=_0x37bf01-0x0;let _0x4ee02d=_0x8d8a[_0x37bf01];return _0x4ee02d;};import{Plugin as _0xbaaed1}from'ckeditor5/src/core';import{Collection as _0x3cf74f}from'ckeditor5/src/utils';import{Model as _0x326b34,SplitButtonView as _0x525d9f,createDropdown as _0x5373c7,addListToDropdown as _0x329a8a}from'ckeditor5/src/ui';import{Users as _0xf90181,getDateTimeFormatter as _0x5e25f7,getAllMarkersDomElementsSorted as _0x3ccda7}from'ckeditor5-collaboration/src/collaboration-core';import _0x5afaf1 from'./trackchangesediting';import _0x5e206b from'./ui/suggestioncontroller';import _0x55a6e2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5a85b5}from'./utils/common-translations';import _0x2365d0 from'../theme/icons/track-changes.svg';export default class d extends _0xbaaed1{static get['requires'](){return[_0x5afaf1,_0xf90181,_0x4ee0('0x3a'),_0x4ee0('0x38'),_0x4ee0('0xb')];}static get['pluginName'](){return _0x4ee0('0x28');}constructor(_0x460511){super(_0x460511),this[_0x4ee0('0xe')]=new Map(),this[_0x4ee0('0x4c')]=new Map(),this[_0x4ee0('0x12')]=new Map(),this[_0x4ee0('0x7')]=new Map();const _0x188681=this[_0x4ee0('0x2e')][_0x4ee0('0xd')];_0x188681[_0x4ee0('0x14')]('trackChanges.SuggestionThreadView',_0x55a6e2),_0x188681[_0x4ee0('0x14')](_0x4ee0('0x3b'),!0x1),this['_disableComments']=_0x188681[_0x4ee0('0x39')](_0x4ee0('0x3b'));}['_handleSuggestionControllerDelayed'](_0x559e4c,_0xe3dab0){0x0===this[_0x4ee0('0x7')][_0x4ee0('0x55')]&&setTimeout(()=>{for(const [_0x6713fb,_0x228290]of this['_handleControllerBuffer']){const _0x20b590=this['_suggestionToController'][_0x4ee0('0x2d')](_0x6713fb);_0x20b590||_0x228290?_0x20b590&&_0x228290&&this['_destroyController'](_0x6713fb):this[_0x4ee0('0x1b')](_0x6713fb);}this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0xb'))[_0x4ee0('0x45')](),this[_0x4ee0('0x3f')](),this[_0x4ee0('0x7')]['clear']();},0xa),this[_0x4ee0('0x7')]['set'](_0x559e4c,_0xe3dab0);}['init'](){const _0x20c4f8=this[_0x4ee0('0x2e')],_0x48f899=_0x20c4f8[_0x4ee0('0x5d')]['get'](_0x4ee0('0x58')),_0x5d486f=_0x20c4f8[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x38')),_0x257be5=_0x20c4f8['plugins'][_0x4ee0('0x39')](_0x4ee0('0xb')),_0x4d3c42=_0x20c4f8[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x3a'));_0x20c4f8['ui'][_0x4ee0('0x44')][_0x4ee0('0x1f')](_0x4ee0('0x3c'),_0x8cce95=>this[_0x4ee0('0x51')](_0x8cce95)),_0x257be5[_0x4ee0('0x2b')](()=>{const _0x1df0f7=[];for(const [_0x1f0008,_0x496d3b]of Array[_0x4ee0('0x32')](this[_0x4ee0('0xe')])){const _0x27ecfc=_0x1f0008['getAllAdjacentSuggestions'](),_0x8f12e6=[];for(const _0x5c30dd of _0x27ecfc){if(!_0x5c30dd[_0x4ee0('0x65')])continue;if(_0x5c30dd['isMultiRange']){_0x8f12e6['push'](..._0x5c30dd[_0x4ee0('0x67')]());continue;}const _0x58a724=_0x5c30dd['getFirstRange']();if(_0x8f12e6['length']>0x0){const _0x5f5ac0=_0x8f12e6[0x0][_0x4ee0('0x3d')](_0x58a724);if(_0x5f5ac0){_0x8f12e6[0x0]=_0x5f5ac0;continue;}}_0x8f12e6[_0x4ee0('0x63')](_0x58a724);}_0x1df0f7[_0x4ee0('0x63')]([_0x496d3b[_0x4ee0('0x17')],_0x8f12e6]);}return _0x1df0f7;}),this[_0x4ee0('0x56')](_0x48f899,_0x4ee0('0x5'),(_0x6586f4,_0x21192e)=>{this[_0x4ee0('0x56')](_0x21192e,_0x4ee0('0x27'),(_0x30a7b0,_0xae2e66,_0x3aacde,_0x510c64)=>{_0x21192e['isInContent']&&(null==_0x3aacde?(this['_updateController'](_0x510c64[_0x4ee0('0x21')]),this[_0x4ee0('0x1')](_0x21192e,!0x1)):(this[_0x4ee0('0x18')](_0x3aacde['head']),this['_handleSuggestionControllerDelayed'](_0x21192e,!0x0)));}),null===_0x21192e[_0x4ee0('0x4f')]?this['_handleSuggestionControllerDelayed'](_0x21192e,!0x1):this[_0x4ee0('0x18')](_0x21192e[_0x4ee0('0x21')]);}),this[_0x4ee0('0x56')](_0x48f899,'suggestionUnloaded',(_0x23a6fc,_0x1fac39,_0xa9d706)=>{this[_0x4ee0('0x62')](_0x1fac39,_0x4ee0('0x27')),this[_0x4ee0('0x7')][_0x4ee0('0x10')](_0x1fac39);const _0x2a5278=_0xa9d706?_0xa9d706[_0x4ee0('0x21')]:_0x1fac39,_0x1e0c21=this[_0x4ee0('0xe')][_0x4ee0('0x39')](_0x2a5278);null!==_0xa9d706&&this[_0x4ee0('0x18')](_0x2a5278),null===_0xa9d706&&_0x1e0c21&&this[_0x4ee0('0x3e')](_0x1fac39);}),this['listenTo'](_0x48f899,_0x4ee0('0x9'),(_0x42c964,_0x1c5c2a)=>{this[_0x4ee0('0x18')](_0x1c5c2a);}),this[_0x4ee0('0x56')](_0x5d486f,'change:activeAnnotations',()=>{this[_0x4ee0('0x3f')]();}),this[_0x4ee0('0x56')](_0x4d3c42,_0x4ee0('0x53'),(_0x470bfe,{threadId:_0x38be82,isFromAdapter:_0x1cc0b5})=>{if(_0x1cc0b5||!_0x48f899[_0x4ee0('0x2')](_0x38be82))return;const _0x3ba74b=_0x48f899['getSuggestion'](_0x38be82);this['_suggestionToController'][_0x4ee0('0x39')](_0x3ba74b)['view'][_0x4ee0('0x16')]();},{'priority':_0x4ee0('0x15')});}[_0x4ee0('0x3f')](){const _0x2851e6=this[_0x4ee0('0x2e')]['plugins'][_0x4ee0('0x39')](_0x4ee0('0x38')),_0x64fa03=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x58')),_0x2a4822=Array['from'](_0x2851e6[_0x4ee0('0x13')],_0xd6dd4=>_0xd6dd4[_0x4ee0('0x1d')])[_0x4ee0('0x41')](_0x2d227e=>this[_0x4ee0('0x4c')][_0x4ee0('0x2d')](_0x2d227e)),_0x1373cf=[];for(const _0x241bee of _0x2a4822){const _0x4730d2=this['_viewToController']['get'](_0x241bee)[_0x4ee0('0x48')][_0x4ee0('0x47')]();_0x1373cf['push'](..._0x4730d2['reduce']((_0x129f2c,_0x32b8fa)=>[..._0x129f2c,..._0x32b8fa[_0x4ee0('0x5f')]()],[]));}_0x64fa03[_0x4ee0('0x4d')]=_0x1373cf;}[_0x4ee0('0x51')](_0x2a3630){const _0x571220=_0x5373c7(_0x2a3630,_0x525d9f),_0x5de9a8=this['editor'][_0x4ee0('0x1c')][_0x4ee0('0x39')]('trackChanges'),_0x6549ff=_0x5a85b5(_0x2a3630,_0x4ee0('0x11'));_0x571220['buttonView']['set']({'tooltip':_0x6549ff,'label':_0x6549ff,'icon':_0x2365d0}),_0x571220[_0x4ee0('0xa')]['bind'](_0x4ee0('0x29'))['to'](_0x5de9a8,_0x4ee0('0x1e')),_0x571220[_0x4ee0('0xa')]['on']('execute',()=>{_0x5de9a8['execute'](),this[_0x4ee0('0x2e')][_0x4ee0('0x60')][_0x4ee0('0x17')]['focus']();});const _0x16085b=new _0x3cf74f(),_0x59a733=[{'type':_0x4ee0('0x5b'),'model':{'withText':!0x0,'label':_0x6549ff,'commandName':'trackChanges'}},{'type':_0x4ee0('0x24')},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x36')),'commandName':_0x4ee0('0x26')}},{'type':'button','model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x59')),'commandName':_0x4ee0('0x30')}},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x66')),'commandName':_0x4ee0('0x31')}}];for(const _0x28463e of _0x59a733){let _0x368197={'type':_0x4ee0('0x24')};if(_0x28463e[_0x4ee0('0x48')]){const _0x4af64f=new _0x326b34(_0x28463e[_0x4ee0('0x48')]),_0x50ade5=this[_0x4ee0('0x2e')][_0x4ee0('0x1c')][_0x4ee0('0x39')](_0x4af64f['commandName']);_0x4af64f['bind'](_0x4ee0('0x29'),_0x4ee0('0x50'))['to'](_0x50ade5,_0x4ee0('0x1e'),_0x4ee0('0x50')),_0x368197={'type':_0x28463e[_0x4ee0('0x1a')],'model':_0x4af64f};}_0x16085b[_0x4ee0('0x1f')](_0x368197);}_0x329a8a(_0x571220,_0x16085b);const _0x4ebc6e=_0x59a733[_0x4ee0('0x41')](_0x26a363=>null!=_0x26a363[_0x4ee0('0x48')])[_0x4ee0('0x22')](_0x51008a=>this['editor']['commands'][_0x4ee0('0x39')](_0x51008a[_0x4ee0('0x48')][_0x4ee0('0x4b')])),_0x4e7223=_0x571220[_0x4ee0('0xa')];return _0x4e7223[_0x4ee0('0x19')]['unbind'](_0x4ee0('0x50')),_0x4e7223['arrowView'][_0x4ee0('0x34')](_0x4ee0('0x50')),_0x4e7223['actionView']['bind'](_0x4ee0('0x50'))['to'](_0x5de9a8,_0x4ee0('0x50')),_0x4e7223[_0x4ee0('0x54')][_0x4ee0('0x6')](_0x4ee0('0x50'))[_0x4ee0('0x23')](_0x4ebc6e,_0x4ee0('0x50'),(..._0xb93840)=>_0xb93840[_0x4ee0('0x52')](_0xce44ce=>_0xce44ce)),_0x571220['on'](_0x4ee0('0x25'),_0x484897=>{this['editor'][_0x4ee0('0x25')](_0x484897[_0x4ee0('0x37')][_0x4ee0('0x4b')]),this[_0x4ee0('0x2e')][_0x4ee0('0x60')]['view']['focus']();}),_0x571220;}[_0x4ee0('0x1b')](_0x505b18){const _0x34da10=this[_0x4ee0('0x2e')],_0x2c6b29=_0x34da10['config'],_0x5d61ed=_0x34da10[_0x4ee0('0x5d')]['get'](_0x4ee0('0x38')),_0x255c42=_0x34da10['plugins'][_0x4ee0('0x39')]('CommentsRepository'),_0x36a63c=_0x34da10[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0xb')),_0x4d9b92=_0x34da10[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0xf90181)['me'],_0x2888d4=_0x2c6b29[_0x4ee0('0x39')]('trackChanges')[_0x4ee0('0x0')],{CommentsListView:_0x278154,CommentThreadInputView:_0x430d92}=_0x34da10['plugins'][_0x4ee0('0x39')](_0x4ee0('0x57'));let _0x1cf409,_0x1091f4;this[_0x4ee0('0x12')]['has'](_0x505b18['id'])?(_0x1091f4=this[_0x4ee0('0x12')][_0x4ee0('0x39')](_0x505b18['id']),_0x1cf409=_0x1091f4[_0x4ee0('0x5c')]):(_0x1cf409=new _0x2888d4(_0x34da10[_0x4ee0('0x42')],_0x505b18,_0x4d9b92,{'disableComments':this['_disableComments'],'editorConfig':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0xf')),'maxCommentsWhenCollapsed':_0x2c6b29[_0x4ee0('0x39')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x33')),'maxCommentCharsWhenCollapsed':_0x2c6b29[_0x4ee0('0x39')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e25f7(_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x42'))),'CommentView':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x20'))['CommentView'],'CommentsListView':_0x278154,'CommentThreadInputView':_0x430d92}),_0x1cf409['acceptButton']['on'](_0x4ee0('0x25'),()=>{_0x34da10[_0x4ee0('0x60')][_0x4ee0('0x17')]['focus']();}),_0x1cf409[_0x4ee0('0x2f')]['on']('execute',()=>{_0x34da10[_0x4ee0('0x60')][_0x4ee0('0x17')][_0x4ee0('0x16')]();}),_0x1091f4=_0x5d61ed['createAnnotationView'](this['editor'][_0x4ee0('0x42')],_0x1cf409),_0x1091f4['bind'](_0x4ee0('0x3'))['to'](_0x1cf409,'isDirty'),_0x1091f4[_0x4ee0('0x6')](_0x4ee0('0xc'))['to'](_0x1cf409),_0x1091f4[_0x4ee0('0x6')]('type')['to'](_0x1cf409,_0x4ee0('0x1a'),_0x367f54=>_0x4ee0('0x4')+_0x367f54),this[_0x4ee0('0x12')]['set'](_0x505b18['id'],_0x1091f4));const _0x79c1b8=_0x255c42[_0x4ee0('0x2c')](_0x505b18[_0x4ee0('0x35')],_0x1cf409),_0x72d30b=new _0x5e206b(_0x34da10,_0x505b18,_0x1cf409,_0x79c1b8),_0x22e066=_0x505b18[_0x4ee0('0x47')]()[_0x4ee0('0x41')](_0x39e136=>_0x39e136[_0x4ee0('0x65')]);_0x1cf409[_0x4ee0('0x2a')]=_0x34da10['plugins'][_0x4ee0('0x39')]('TrackChangesEditing')[_0x4ee0('0x43')][_0x4ee0('0x5a')](_0x22e066),this[_0x4ee0('0xe')][_0x4ee0('0x4e')](_0x505b18,_0x72d30b),this[_0x4ee0('0x4c')][_0x4ee0('0x4e')](_0x1cf409,_0x72d30b);const _0x1940e8=_0x5d61ed[_0x4ee0('0x64')]({'view':_0x1091f4,'target':()=>{const _0x296fde=[],_0x38a0dd=_0x505b18[_0x4ee0('0x47')]()['filter'](_0x4e2a8e=>_0x4e2a8e[_0x4ee0('0x65')]);for(const _0x5af694 of _0x38a0dd)_0x296fde[_0x4ee0('0x63')](..._0x5af694[_0x4ee0('0x4a')]());return _0x3ccda7(_0x34da10[_0x4ee0('0x60')],_0x296fde);},'type':()=>_0x4ee0('0x4')+_0x72d30b[_0x4ee0('0x17')]['type']});_0x255c42['_bindAnnotationToEditors'](_0x1cf409,_0x1940e8),_0x5d61ed[_0x4ee0('0x1f')](_0x1940e8),_0x36a63c[_0x4ee0('0x46')](_0x1940e8);}[_0x4ee0('0x3e')](_0x195488){const _0x44db2b=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x3a')),_0x119bc6=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')]['get'](_0x4ee0('0x38')),_0x2e4b18=this['_suggestionToController'][_0x4ee0('0x39')](_0x195488),_0x3d1b52=_0x2e4b18[_0x4ee0('0x17')],_0x2dd69c=_0x119bc6[_0x4ee0('0x61')](_0x3d1b52);_0x44db2b[_0x4ee0('0x5e')](_0x3d1b52),_0x2dd69c&&_0x119bc6['remove'](_0x2dd69c),this[_0x4ee0('0xe')][_0x4ee0('0x10')](_0x195488),this['_viewToController'][_0x4ee0('0x10')](_0x3d1b52),_0x2e4b18[_0x4ee0('0x8')]();}[_0x4ee0('0x18')](_0x27df8a){if(!_0x27df8a[_0x4ee0('0x65')]||!this[_0x4ee0('0xe')][_0x4ee0('0x2d')](_0x27df8a))return;const _0x164afa=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')]('TrackChangesEditing'),_0x56d3f=this[_0x4ee0('0xe')][_0x4ee0('0x39')](_0x27df8a),_0x36277c=_0x27df8a[_0x4ee0('0x47')]();_0x56d3f[_0x4ee0('0x17')][_0x4ee0('0x2a')]=_0x164afa[_0x4ee0('0x43')][_0x4ee0('0x5a')](_0x36277c);}[_0x4ee0('0x8')](){for(const _0x23a002 of this[_0x4ee0('0xe')][_0x4ee0('0x40')]())this['_destroyController'](_0x23a002);for(const _0x2cc824 of this['_annotationViews']['values']())_0x2cc824[_0x4ee0('0x5c')][_0x4ee0('0x8')]();super[_0x4ee0('0x8')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcdd6=['model','PENDING_ACTION_SUGGESTION','discardSuggestion','canAccept','locale','plugins','unbind','get','execute','_setPendingAction','_removePendingAction','remove','canDiscard','getRanges','commands','_discardCommand','add','destroy','_editor','change:isDirty','_acceptCommand','listenTo','acceptSuggestion','_pendingAction','canEditAt','isDirty','view','PendingActions','bind','isEnabled','commentThreadController'];(function(_0xb8834c,_0xcdd636){const _0x386b26=function(_0x1e70d2){while(--_0x1e70d2){_0xb8834c['push'](_0xb8834c['shift']());}};_0x386b26(++_0xcdd636);}(_0xcdd6,0x94));const _0x386b=function(_0xb8834c,_0xcdd636){_0xb8834c=_0xb8834c-0x0;let _0x386b26=_0xcdd6[_0xb8834c];return _0x386b26;};import{ObservableMixin as _0x3ab58e}from'ckeditor5/src/utils';import{getTranslation as _0x36c737}from'../utils/common-translations';export default class Ft extends _0x3ab58e(){constructor(_0x29fc81,_0x2e5429,_0xf503eb,_0x53795e){super(),this[_0x386b('0x7')]=_0x2e5429,this[_0x386b('0x2')]=_0xf503eb,this[_0x386b('0x6')]=_0x53795e,this[_0x386b('0x19')]=_0x29fc81,this[_0x386b('0x1b')]=_0x29fc81[_0x386b('0x15')][_0x386b('0xe')](_0x386b('0x1d')),this[_0x386b('0x16')]=_0x29fc81[_0x386b('0x15')][_0x386b('0xe')]('discardSuggestion'),this[_0x386b('0x2')][_0x386b('0x4')]('isEnabled')['to'](this['_acceptCommand'],this[_0x386b('0x16')],(_0x5e2c77,_0x3326c2)=>_0x5e2c77||_0x3326c2),this[_0x386b('0x2')]['bind'](_0x386b('0xa'))['to'](this[_0x386b('0x1b')],_0x386b('0x5'),_0xd5a11a=>_0xd5a11a&&this[_0x386b('0x19')]['model']['canEditAt'](_0x2e5429['getRanges']())),this['view'][_0x386b('0x4')](_0x386b('0x13'))['to'](this[_0x386b('0x16')],'isEnabled',_0x41b76a=>_0x41b76a&&this['_editor'][_0x386b('0x7')][_0x386b('0x0')](_0x2e5429[_0x386b('0x14')]())),this[_0x386b('0x1e')]=null,_0xf503eb[_0x386b('0x1')]&&this[_0x386b('0x10')](),this[_0x386b('0x1c')](_0xf503eb,'acceptSuggestion',()=>this[_0x386b('0x1d')]()),this['listenTo'](_0xf503eb,_0x386b('0x9'),()=>this[_0x386b('0x9')]()),this[_0x386b('0x1c')](_0xf503eb,_0x386b('0x1a'),()=>{_0xf503eb['isDirty']?this[_0x386b('0x10')]():this[_0x386b('0x11')]();});}[_0x386b('0x1d')](){this[_0x386b('0x1b')]['execute'](this['model']['id']);}[_0x386b('0x9')](){this[_0x386b('0x16')][_0x386b('0xf')](this[_0x386b('0x7')]['id']);}[_0x386b('0x18')](){this['view']['unbind'](_0x386b('0x5')),this[_0x386b('0x2')][_0x386b('0xd')]('canAccept'),this[_0x386b('0x2')][_0x386b('0xd')]('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this[_0x386b('0x1e')]&&this[_0x386b('0x11')]();}[_0x386b('0x10')](){const _0x48d3b0=_0x36c737(this[_0x386b('0x19')][_0x386b('0xb')],_0x386b('0x8'));this[_0x386b('0x1e')]=this[_0x386b('0x19')][_0x386b('0xc')][_0x386b('0xe')](_0x386b('0x3'))[_0x386b('0x17')](_0x48d3b0);}[_0x386b('0x11')](){null!==this['_pendingAction']&&this['_editor'][_0x386b('0xc')][_0x386b('0xe')](_0x386b('0x3'))[_0x386b('0x12')](this['_pendingAction']),this[_0x386b('0x1e')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2288=['CommentView','assign','_createCommentViews','bind','set','destroy','locale','_model','isReadOnly','_localUser','commentThread','isActive','value','commentsListView','cancel','fire','isDirty','updateComment','commentThreadInputView','commentInputView','setData','hasDirtyComment','focus','canDiscard','showInput','descriptionParts','editorConfig','submit','delegate','disabledSubmit','authoredAt','addComment','_createCommentThreadInputView','editor','_config','length'];(function(_0x4c932d,_0x228810){const _0x33d973=function(_0xfb8802){while(--_0xfb8802){_0x4c932d['push'](_0x4c932d['shift']());}};_0x33d973(++_0x228810);}(_0x2288,0x1a5));const _0x33d9=function(_0x4c932d,_0x228810){_0x4c932d=_0x4c932d-0x0;let _0x33d973=_0x2288[_0x4c932d];return _0x33d973;};import{View as _0x40159f}from'ckeditor5/src/ui';export default class ii extends _0x40159f{constructor(_0x429a1d,_0x37a1f1,_0x5436c9,_0x354402){super(_0x429a1d),this['commentsListView']=null,this['commentThreadInputView']=null,this[_0x33d9('0xf')](_0x33d9('0x16'),!0x1),this['set'](_0x33d9('0x5'),_0x37a1f1[_0x33d9('0x5')]),this[_0x33d9('0xe')]('authoredAt')['to'](_0x37a1f1),this[_0x33d9('0xf')](_0x33d9('0x0'),[]),this[_0x33d9('0xf')]('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this[_0x33d9('0xf')](_0x33d9('0x22'),!0x1),this[_0x33d9('0x12')]=_0x37a1f1,this[_0x33d9('0x14')]=_0x5436c9,this[_0x33d9('0x9')]=_0x354402,_0x354402['disableComments']?this[_0x33d9('0xf')](_0x33d9('0xa'),0x1):this[_0x33d9('0xd')]();}[_0x33d9('0x21')](){this['element'][_0x33d9('0x21')]();}['destroy'](){this[_0x33d9('0x18')]&&this[_0x33d9('0x18')][_0x33d9('0x10')](),this[_0x33d9('0x1d')]&&this[_0x33d9('0x1d')]['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x332bca}=this['_config'];this[_0x33d9('0x18')]=new _0x332bca(this[_0x33d9('0x11')],this[_0x33d9('0x12')][_0x33d9('0x15')],Object[_0x33d9('0xc')]({'CommentView':this[_0x33d9('0x9')][_0x33d9('0xb')]},this['_config'])),this[_0x33d9('0x18')][_0x33d9('0x3')]('removeComment')['to'](this),this[_0x33d9('0x18')][_0x33d9('0x3')](_0x33d9('0x1c'))['to'](this),this[_0x33d9('0x18')][_0x33d9('0xe')](_0x33d9('0x16'))['to'](this),this[_0x33d9('0xf')](_0x33d9('0xa'),this[_0x33d9('0x18')][_0x33d9('0xa')]+0x1),this[_0x33d9('0xe')]('length')['to'](this[_0x33d9('0x18')],_0x33d9('0xa'),_0x586d41=>_0x586d41+0x1),this[_0x33d9('0x1d')]=this[_0x33d9('0x7')](),this['on']('removeComment',()=>this['focus']()),this[_0x33d9('0xe')](_0x33d9('0x1b'))['to'](this[_0x33d9('0x18')],_0x33d9('0x20'),this['commentThreadInputView'][_0x33d9('0x1e')],_0x33d9('0x17'),(_0x4f8fd4,_0x21f964)=>_0x4f8fd4||!!_0x21f964);}[_0x33d9('0x7')](){const {CommentThreadInputView:_0x4fc70f}=this[_0x33d9('0x9')],_0x29a906=new _0x4fc70f(this[_0x33d9('0x11')],this[_0x33d9('0x14')],this['_config'][_0x33d9('0x1')]),_0x30972d=_0x29a906[_0x33d9('0x1e')];return _0x29a906[_0x33d9('0xe')](_0x33d9('0x23'))['to'](this,'isActive',this[_0x33d9('0x12')][_0x33d9('0x15')],_0x33d9('0x13'),_0x30972d,_0x33d9('0x17'),(_0x299bec,_0x458dd0,_0x417617)=>!!_0x417617||_0x299bec&&!_0x458dd0),_0x30972d['on'](_0x33d9('0x2'),(_0x510a90,_0x30fd4c)=>{this[_0x33d9('0x1a')](_0x33d9('0x6'),_0x30fd4c),_0x30972d[_0x33d9('0x8')][_0x33d9('0x1f')]('');}),_0x30972d['on'](_0x33d9('0x19'),()=>this[_0x33d9('0x21')]()),_0x30972d[_0x33d9('0xe')](_0x33d9('0x4'))['to'](this['_model'][_0x33d9('0x15')],_0x33d9('0x13')),_0x29a906;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19d0=['commentThreadInputView','join','split','discardButton','isExternal','canDiscard','_config','ck-suggestion__info-name','ck-annotation__actions','commentsListView','.ck-annotation__content-wrapper','execute','_createButton','attributes','acceptButton','@external','ck-suggestion--discard','setTemplate','ck-suggestion--accept','ck-suggestion--disabled-comments','ck-suggestion-wrapper--active','author','ck-suggestion-wrapper','ck-suggestion__user','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','editorDestroyed','ck-suggestion__actions','render','delegate','innerHTML','\x22></span>','check','isActive','Accept\x20suggestion','\x22\x20title=\x22','_model','span','</p>','ck-suggestion','editorReady','map','getUserViewNotificationText','ck-annotation','extendTemplate','time','_descriptionElement','change:description','locale','bind','color','authoredAt','children','formatDateTime','ck-annotation__user','ck-suggestion__info','set','acceptSuggestion','getExternalSuggestionNote','bindTemplate','<span\x20class=\x22ck-suggestion-type\x22>','EXTERNAL_AVATAR','ck-comment__external','title','<p>','ck-suggestion__main','descriptionParts','description','content','Discard\x20suggestion','importWord','source','div','element','cancel','ck-suggestion-','userView','type','ck-annotation__info-name','ck-annotation__main','name','push','creator','ck-annotation__content-wrapper','isEnabled'];(function(_0x39ba2a,_0x19d0da){const _0x1bb44c=function(_0xbc0dbd){while(--_0xbc0dbd){_0x39ba2a['push'](_0x39ba2a['shift']());}};_0x1bb44c(++_0x19d0da);}(_0x19d0,0x156));const _0x1bb4=function(_0x39ba2a,_0x19d0da){_0x39ba2a=_0x39ba2a-0x0;let _0x1bb44c=_0x19d0[_0x39ba2a];return _0x1bb44c;};import{getTranslation as _0x48ab23}from'../../utils/common-translations';import{default as _0x135a1e}from'./basesuggestionthreadview';import{ButtonView as _0x419e17}from'ckeditor5/src/ui';import{icons as _0x5d2163}from'ckeditor5/src/core';import{trimHtml as _0x4fcc8c,UserView as _0x550f88}from'ckeditor5-collaboration/src/collaboration-core';export default class Gt extends _0x135a1e{constructor(_0x2a13b7,_0x4c1cac,_0x299d91,_0x59373b){super(_0x2a13b7,_0x4c1cac,_0x299d91,_0x59373b),this[_0x1bb4('0x31')](_0x1bb4('0x46'),''),this[_0x1bb4('0x2a')]('type')['to'](this,_0x1bb4('0x3b'),_0x406440=>_0x406440&&_0x406440[0x0]?_0x406440[0x0][_0x1bb4('0x46')]:''),this['bind'](_0x1bb4('0x3c'))['to'](this,_0x1bb4('0x3b'),this,_0x1bb4('0x1a'),(_0xa751c1,_0x5dcb10)=>{let _0x213a6d='';for(const _0x3dd230 of _0xa751c1)_0x213a6d+=_0x1bb4('0x39')+ai(_0x3dd230[_0x1bb4('0x3d')],_0x3dd230[_0x1bb4('0x2b')])+_0x1bb4('0x1f');return _0x5dcb10?_0x213a6d:_0x4fcc8c(_0x213a6d,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x1bb4('0x8')]=this[_0x1bb4('0x6')](_0x48ab23(_0x2a13b7,_0x1bb4('0x1b')),_0x5d2163[_0x1bb4('0x19')],_0x1bb4('0xc'),_0x1bb4('0x32'),'sw'),this[_0x1bb4('0x8')]['bind'](_0x1bb4('0x4d'))['to'](this,'canAccept'),this['discardButton']=this[_0x1bb4('0x6')](_0x48ab23(_0x2a13b7,_0x1bb4('0x3e')),_0x5d2163[_0x1bb4('0x43')],_0x1bb4('0xa'),'discardSuggestion','sw'),this[_0x1bb4('0x51')][_0x1bb4('0x2a')]('isEnabled')['to'](this,_0x1bb4('0x53')),this[_0x1bb4('0x45')]=new _0x550f88(_0x2a13b7,this[_0x1bb4('0x1d')]['author'],this[_0x1bb4('0x23')]()),this[_0x1bb4('0x45')][_0x1bb4('0x25')]({'attributes':{'class':[_0x1bb4('0x11'),_0x1bb4('0x2f')]}}),this[_0x1bb4('0xb')](this['getTemplate']());}['getTemplate'](){const _0x504ac9=this[_0x1bb4('0x34')],_0x53f31c=[{'tag':_0x1bb4('0x41'),'attributes':{'class':[_0x1bb4('0x30'),'ck-annotation__info']},'children':[{'tag':_0x1bb4('0x1e'),'children':[{'text':this[_0x1bb4('0x45')][_0x1bb4('0x49')]}],'attributes':{'class':[_0x1bb4('0x1'),_0x1bb4('0x47')]}},{'tag':_0x1bb4('0x26'),'attributes':{'datetime':_0x504ac9['to'](_0x1bb4('0x2c')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x504ac9['to'](_0x1bb4('0x2c'),_0x23cd3d=>this['_config'][_0x1bb4('0x2e')](_0x23cd3d))}]}]},{'tag':'div','attributes':{'class':[_0x1bb4('0x14'),_0x1bb4('0x2')]},'children':[this['acceptButton'],this['discardButton']]},{'tag':_0x1bb4('0x41'),'attributes':{'class':[_0x1bb4('0x4c')]}}];this[_0x1bb4('0x1d')][_0x1bb4('0x52')]&&_0x53f31c[_0x1bb4('0x4a')]({'tag':'div','attributes':{'class':[_0x1bb4('0x37')]},'children':[{'text':this[_0x1bb4('0x33')]()}]});const _0x2893ae={'tag':'div','attributes':{'class':[_0x1bb4('0x10'),_0x504ac9['if'](_0x1bb4('0x1a'),_0x1bb4('0xe')),_0x504ac9['to']('type',_0x34fee9=>_0x1bb4('0x44')+_0x34fee9),this[_0x1bb4('0x0')]['disableComments']&&_0x1bb4('0xd')],'data-suggestion-id':this[_0x1bb4('0x1d')]['id'],'data-thread-id':this[_0x1bb4('0x1d')]['commentThread']['id'],'data-author-id':this['_model'][_0x1bb4('0xf')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1bb4('0x41'),'attributes':{'class':[_0x1bb4('0x20'),_0x1bb4('0x24')]},'children':[this[_0x1bb4('0x45')],{'tag':'div','attributes':{'class':[_0x1bb4('0x3a'),_0x1bb4('0x48')]},'children':_0x53f31c}]}]};return this['commentsListView']&&this[_0x1bb4('0x4e')]&&(_0x2893ae[_0x1bb4('0x2d')][_0x1bb4('0x4a')](this['commentsListView'],this['commentThreadInputView']),this[_0x1bb4('0x3')][_0x1bb4('0x16')](_0x1bb4('0x21'))['to'](this),this[_0x1bb4('0x3')][_0x1bb4('0x16')](_0x1bb4('0x13'))['to'](this),this['commentThreadInputView'][_0x1bb4('0x16')]('editorReady')['to'](this),this[_0x1bb4('0x4e')][_0x1bb4('0x16')]('editorDestroyed')['to'](this)),_0x2893ae;}['render'](){super[_0x1bb4('0x15')](),this[_0x1bb4('0x27')]=this[_0x1bb4('0x42')]['querySelector'](_0x1bb4('0x4')),this['_descriptionElement'][_0x1bb4('0x17')]=this[_0x1bb4('0x3c')],this['on'](_0x1bb4('0x28'),(_0x407d8b,_0x182607,_0x1c604e)=>{this[_0x1bb4('0x27')][_0x1bb4('0x17')]=_0x1c604e;});}['_createButton'](_0x33aee9,_0x578ff3,_0x1951f3,_0x2483a6,_0x56a659){const _0x658503=new _0x419e17(this[_0x1bb4('0x29')]);return _0x658503[_0x1bb4('0x31')]({'label':_0x33aee9,'icon':_0x578ff3,'tooltip':!0x0,'tooltipPosition':_0x56a659}),_0x658503[_0x1bb4('0x25')]({'attributes':{'class':_0x1951f3}}),_0x658503['on'](_0x1bb4('0x5'),()=>{this['fire'](_0x2483a6,this[_0x1bb4('0x1d')]['id']);}),_0x658503;}[_0x1bb4('0x33')](){return _0x1bb4('0x3f')===this[_0x1bb4('0x1d')][_0x1bb4('0x7')][_0x1bb4('0x9')]['source']?_0x48ab23(this[_0x1bb4('0x29')],'EXTERNAL_IMPORT_WORD_SUGGESTION'):_0x48ab23(this[_0x1bb4('0x29')],'EXTERNAL_SUGGESTION');}[_0x1bb4('0x23')](){return this['_model'][_0x1bb4('0x52')]?_0x1bb4('0x3f')===this[_0x1bb4('0x1d')][_0x1bb4('0x7')][_0x1bb4('0x9')][_0x1bb4('0x40')]?_0x48ab23(this[_0x1bb4('0x29')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x1bb4('0x1d')][_0x1bb4('0x4b')]['name']):_0x48ab23(this[_0x1bb4('0x29')],_0x1bb4('0x36'),this['_model']['creator'][_0x1bb4('0x49')]):null;}}function ai(_0x51d37a,_0x134ede){let _0x58601a='';return _0x58601a+=_0x51d37a[_0x1bb4('0x50')]('*')[_0x1bb4('0x22')]((_0x2f1992,_0x162482)=>_0x162482%0x2!=0x0?_0x1bb4('0x35')+ci(_0x2f1992)+'</span>':ci(_0x2f1992))[_0x1bb4('0x4f')](''),_0x134ede&&(_0x58601a+=_0x1bb4('0x12')+_0x134ede['value']+_0x1bb4('0x1c')+_0x134ede[_0x1bb4('0x38')]+_0x1bb4('0x18')),_0x58601a;}function ci(_0x46a1ba){const _0x35ff3e=document['createElement'](_0x1bb4('0x1e'));return _0x35ff3e['innerText']=_0x46a1ba,_0x35ff3e['innerHTML'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x2d470b,_0x627ee2,_0x21c48e){const t=_0x2d470b['t'];switch(_0x627ee2){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',_0x21c48e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x21c48e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x21c48e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x21c48e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x21c48e);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',_0x21c48e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x21c48e);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',_0x21c48e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x21c48e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x21c48e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x21c48e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x21c48e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x21c48e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x21c48e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x21c48e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x21c48e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x21c48e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x21c48e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x21c48e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x21c48e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x21c48e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x21c48e);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'},_0x21c48e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x21c48e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x21c48e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x21c48e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x21c48e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x21c48e);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'},_0x21c48e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x21c48e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x21c48e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x21c48e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x21c48e);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'},_0x21c48e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x21c48e);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'},_0x21c48e);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'},_0x21c48e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x21c48e);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'},_0x21c48e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x21c48e);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'},_0x21c48e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x21c48e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x21c48e);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'},_0x21c48e);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'},_0x21c48e);default:return _0x627ee2;}}
|
|
23
|
+
export function getTranslation(_0x377075,_0x5b6b1a,_0x375a59){const t=_0x377075['t'];switch(_0x5b6b1a){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',_0x375a59);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x375a59);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x375a59);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x375a59);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x375a59);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',_0x375a59);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x375a59);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',_0x375a59);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x375a59);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x375a59);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x375a59);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x375a59);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x375a59);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x375a59);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x375a59);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x375a59);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x375a59);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x375a59);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x375a59);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x375a59);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x375a59);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x375a59);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'},_0x375a59);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x375a59);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x375a59);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x375a59);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x375a59);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x375a59);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'},_0x375a59);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x375a59);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x375a59);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x375a59);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x375a59);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'},_0x375a59);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x375a59);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'},_0x375a59);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'},_0x375a59);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x375a59);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'},_0x375a59);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x375a59);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'},_0x375a59);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x375a59);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x375a59);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'},_0x375a59);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'},_0x375a59);default:return _0x5b6b1a;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7b3b=['sort','isInContent','schema','getRanges','change','isObject','value','splice','createPositionBefore','deletion','isTouching','start','color','execute','length','replace','type','\x20[color\x20','isMultiRange','join','createPositionAfter','isIntersecting','content','map','push','next','end','add'];(function(_0x14c2c2,_0x7b3b5c){const _0x42cb9a=function(_0x3f2f38){while(--_0x3f2f38){_0x14c2c2['push'](_0x14c2c2['shift']());}};_0x42cb9a(++_0x7b3b5c);}(_0x7b3b,0x69));const _0x42cb=function(_0x14c2c2,_0x7b3b5c){_0x14c2c2=_0x14c2c2-0x0;let _0x42cb9a=_0x7b3b[_0x14c2c2];return _0x42cb9a;};export function normalizeDescription(_0x52b25a){return Array['isArray'](_0x52b25a)||(_0x52b25a=[_0x52b25a]),_0x52b25a[_0x42cb('0x2')](_0x179dda=>{const _0x53f766=_0x179dda[_0x42cb('0x1')][_0x42cb('0x16')](/\*/g,''),_0x3575f0=_0x179dda[_0x42cb('0x13')]?_0x42cb('0x18')+_0x179dda[_0x42cb('0x13')][_0x42cb('0xd')]+']':'';return'['+_0x179dda[_0x42cb('0x17')]+']\x20'+_0x53f766+_0x3575f0;})[_0x42cb('0x1a')](';\x20');}export function sortSuggestions(_0x206d4e){return _0x206d4e[_0x42cb('0x7')]((_0x2b0163,_0x31d7a4)=>'deletion'==_0x2b0163[_0x42cb('0x17')]&&'deletion'!=_0x31d7a4[_0x42cb('0x17')]?-0x1:_0x42cb('0x10')!=_0x2b0163[_0x42cb('0x17')]&&'deletion'==_0x31d7a4[_0x42cb('0x17')]?0x1:0x0);}export function getSelectedSuggestions(_0x991480,_0x27c334){const _0x44705d=Array['from'](_0x991480[_0x42cb('0xa')]()),_0x8eeef0=new Set();for(const _0x7a9249 of _0x27c334)if(_0x7a9249[_0x42cb('0x8')])for(const _0x2f379c of _0x44705d)for(const _0x1e36ad of _0x7a9249[_0x42cb('0xa')]())(_0x2f379c[_0x42cb('0x0')](_0x1e36ad)||_0x991480['isCollapsed']&&!_0x7a9249[_0x42cb('0x19')]&&_0x7a9249[_0x42cb('0x4')]&&_0x1e36ad['end'][_0x42cb('0x11')](_0x2f379c[_0x42cb('0x12')]))&&_0x8eeef0[_0x42cb('0x6')](_0x7a9249);return _0x8eeef0;}export function getRangesOfBlockGroups(_0x142f9a,_0x490ef8){let _0x14d0af,_0x3e263b=0x0;const _0xbdd604=[],_0xa7916=_0x490ef8[_0x42cb('0x9')];for(;_0x3e263b<_0x142f9a['length'];){const _0xf9e5db=_0x142f9a[_0x3e263b],_0x2c171b=_0x142f9a[_0x3e263b+0x1];_0x14d0af||(_0x14d0af=_0x490ef8[_0x42cb('0xf')](_0xf9e5db)),so(_0x490ef8,_0xf9e5db,_0x2c171b)||(_0xbdd604[_0x42cb('0x3')](_0x490ef8['createRange'](_0x14d0af,_0xa7916[_0x42cb('0xc')](_0xf9e5db)?_0x490ef8['createPositionAfter'](_0xf9e5db):_0x490ef8['createPositionAt'](_0xf9e5db,_0x42cb('0x5')))),_0x14d0af=null),_0x3e263b++;}return _0xbdd604;}function so(_0x34e1e2,_0x479dc2,_0x3ee17d){if(!_0x3ee17d)return!0x1;const _0x15142b=_0x34e1e2[_0x42cb('0x1b')](_0x479dc2),_0x254814=_0x34e1e2['createPositionBefore'](_0x3ee17d);return _0x15142b[_0x42cb('0x11')](_0x254814);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x45721f,_0x390dc8,_0x4de039){for(;_0x4de039[_0x42cb('0x15')];){const _0x250758=_0x4de039[_0x42cb('0xe')](0x0,0x64);_0x45721f[_0x42cb('0xb')](()=>{for(const _0x8db942 of _0x250758)_0x8db942[_0x42cb('0x8')]&&_0x390dc8[_0x42cb('0x14')](_0x8db942['id']);});}}
|