@ckeditor/ckeditor5-track-changes 37.0.0 → 37.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/ar.po +15 -1
- package/lang/translations/az.po +11 -1
- package/lang/translations/bg.po +11 -1
- package/lang/translations/bn.po +11 -1
- package/lang/translations/ca.po +11 -1
- package/lang/translations/cs.po +13 -1
- package/lang/translations/da.po +11 -1
- package/lang/translations/de.po +11 -1
- package/lang/translations/el.po +11 -1
- package/lang/translations/en-au.po +11 -1
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +12 -1
- package/lang/translations/et.po +11 -1
- package/lang/translations/fi.po +11 -1
- package/lang/translations/fr.po +12 -1
- package/lang/translations/gl.po +11 -1
- package/lang/translations/he.po +13 -1
- package/lang/translations/hi.po +11 -1
- package/lang/translations/hr.po +12 -1
- package/lang/translations/hu.po +11 -1
- package/lang/translations/id.po +10 -1
- package/lang/translations/it.po +12 -1
- package/lang/translations/ja.po +10 -1
- package/lang/translations/ko.po +10 -1
- package/lang/translations/lt.po +13 -1
- package/lang/translations/lv.po +12 -1
- package/lang/translations/ms.po +10 -1
- package/lang/translations/nl.po +11 -1
- package/lang/translations/no.po +11 -1
- package/lang/translations/pl.po +13 -1
- package/lang/translations/pt-br.po +12 -1
- package/lang/translations/pt.po +12 -1
- package/lang/translations/ro.po +12 -1
- package/lang/translations/ru.po +13 -1
- package/lang/translations/sk.po +13 -1
- package/lang/translations/sr-latn.po +12 -1
- package/lang/translations/sr.po +33 -22
- package/lang/translations/sv.po +11 -1
- package/lang/translations/th.po +10 -1
- package/lang/translations/tk.po +11 -1
- package/lang/translations/tr.po +11 -1
- package/lang/translations/tt.po +10 -1
- package/lang/translations/uk.po +13 -1
- package/lang/translations/ur.po +11 -1
- package/lang/translations/vi.po +10 -1
- package/lang/translations/zh-cn.po +10 -1
- package/lang/translations/zh.po +10 -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/index.d.ts +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.d.ts +13 -0
- package/src/integrations/formatpainter.js +23 -0
- 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.d.ts +13 -0
- package/src/integrations/tableofcontents.js +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -0
- package/src/integrations/template.js +23 -0
- 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 _0x314a=['suggestion-','suggestionLoaded','stopListening','add','Accept\x20all\x20suggestions','has','switchbutton','set','suggestionUnloaded','editor','Discard\x20all\x20selected\x20suggestions','getAllAdjacentSuggestions','separator','getJoined','_updateController','delete','componentFactory','_initializeController','mainView','isMultiRange','registerAnnotation','value','keys','getSuggestion','activeMarkers','focus','config','_viewToController','CommentsUI','_createUIButton','values','EditorAnnotations','Annotations','comments.maxThreadTotalWeight','editing','trackChanges','CommentsRepository','acceptButton','actionView','isOn','_handleControllerBuffer','unbind','trackChanges.disableComments','getFirstRange','discardSelectedSuggestions','clear','source','view','commentThread','createAnnotationView','change:activeAnnotations','isEnabled','getMarkers','map','_refreshActiveMarkers','remove','reduce','button','some','init','model','requires','Track\x20changes','length','TrackChangesEditing','_annotationViews','change:previous','comments.maxCommentCharsWhenCollapsed','_disableComments','isInContent','Accept\x20all\x20selected\x20suggestions','getByInnerView','comments.maxCommentsWhenCollapsed','_destroyController','arrowView','discardAllSuggestions','push','commandName','discardButton','commands','isDirty','SuggestionThreadView','suggestionChanged','getMarkerNames','addComment','from','_handleSuggestionControllerDelayed','destroy','listenTo','buttonView','acceptAllSuggestions','locale','_suggestionToController','activeAnnotations','plugins','size','comments.editorConfig','_descriptionFactory','descriptionParts','type','get','head','execute','define','createAnnotation','filter','hasSuggestion','getRanges','getDescriptions','bind'];(function(_0x4af0d2,_0x314ade){const _0x2c3358=function(_0x532520){while(--_0x532520){_0x4af0d2['push'](_0x4af0d2['shift']());}};_0x2c3358(++_0x314ade);}(_0x314a,0x19f));const _0x2c33=function(_0x4af0d2,_0x314ade){_0x4af0d2=_0x4af0d2-0x0;let _0x2c3358=_0x314a[_0x4af0d2];return _0x2c3358;};import{Plugin as _0x46bf41}from'ckeditor5/src/core';import{Collection as _0x14b3b9}from'ckeditor5/src/utils';import{Model as _0x3e9d15,SplitButtonView as _0x2a5631,createDropdown as _0x1e9d51,addListToDropdown as _0x46aa93}from'ckeditor5/src/ui';import{Users as _0x4e7ee8,getDateTimeFormatter as _0x23102c,getAllMarkersDomElementsSorted as _0x319b1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x55094a from'./trackchangesediting';import _0x20fdc3 from'./ui/suggestioncontroller';import _0x59372c from'./ui/view/suggestionthreadview';import{getTranslation as _0x11c724}from'./utils/common-translations';import _0x1dbc08 from'../theme/icons/track-changes.svg';export default class d extends _0x46bf41{static get[_0x2c33('0x56')](){return[_0x55094a,_0x4e7ee8,_0x2c33('0x3d'),_0x2c33('0x39'),_0x2c33('0x38')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x410ac0){super(_0x410ac0),this[_0x2c33('0x7')]=new Map(),this[_0x2c33('0x34')]=new Map(),this[_0x2c33('0x5a')]=new Map(),this[_0x2c33('0x41')]=new Map();const _0xb723b6=this['editor'][_0x2c33('0x33')];_0xb723b6['define']('trackChanges.SuggestionThreadView',_0x59372c),_0xb723b6[_0x2c33('0x12')]('trackChanges.disableComments',!0x1),this[_0x2c33('0x5d')]=_0xb723b6[_0x2c33('0xf')](_0x2c33('0x43'));}['_handleSuggestionControllerDelayed'](_0x17c74b,_0x342faf){0x0===this[_0x2c33('0x41')][_0x2c33('0xa')]&&setTimeout(()=>{for(const [_0x418d97,_0x124dac]of this['_handleControllerBuffer']){const _0x1372fc=this[_0x2c33('0x7')][_0x2c33('0x1e')](_0x418d97);_0x1372fc||_0x124dac?_0x1372fc&&_0x124dac&&this[_0x2c33('0x62')](_0x418d97):this[_0x2c33('0x2a')](_0x418d97);}this[_0x2c33('0x22')][_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x38'))['refreshSelectedViews'](),this[_0x2c33('0x4f')](),this[_0x2c33('0x41')][_0x2c33('0x46')]();},0xa),this[_0x2c33('0x41')][_0x2c33('0x20')](_0x17c74b,_0x342faf);}[_0x2c33('0x54')](){const _0x4335e5=this[_0x2c33('0x22')],_0x52859d=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')]('TrackChangesEditing'),_0x29a21e=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x39')),_0x429d3a=_0x4335e5[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x38')),_0x59411a=_0x4335e5[_0x2c33('0x9')]['get']('CommentsRepository');_0x4335e5['ui'][_0x2c33('0x29')][_0x2c33('0x1c')]('trackChanges',_0x3ed7d5=>this[_0x2c33('0x36')](_0x3ed7d5)),_0x429d3a['addSourceCollector'](()=>{const _0x177e06=[];for(const [_0x3e1c26,_0x49a5bf]of Array[_0x2c33('0x0')](this[_0x2c33('0x7')])){const _0x2fd1c5=_0x3e1c26[_0x2c33('0x24')](),_0x14f6e4=[];for(const _0x41cbff of _0x2fd1c5){if(!_0x41cbff['isInContent'])continue;if(_0x41cbff[_0x2c33('0x2c')]){_0x14f6e4[_0x2c33('0x65')](..._0x41cbff[_0x2c33('0x16')]());continue;}const _0x457c7f=_0x41cbff[_0x2c33('0x44')]();if(_0x14f6e4[_0x2c33('0x58')]>0x0){const _0x4b983d=_0x14f6e4[0x0][_0x2c33('0x26')](_0x457c7f);if(_0x4b983d){_0x14f6e4[0x0]=_0x4b983d;continue;}}_0x14f6e4[_0x2c33('0x65')](_0x457c7f);}_0x177e06[_0x2c33('0x65')]([_0x49a5bf[_0x2c33('0x48')],_0x14f6e4]);}return _0x177e06;}),this['listenTo'](_0x52859d,_0x2c33('0x1a'),(_0x537078,_0x414e47)=>{this[_0x2c33('0x3')](_0x414e47,_0x2c33('0x5b'),(_0x5971ed,_0x6d58b4,_0x3826c0,_0x2e2e35)=>{_0x414e47[_0x2c33('0x5e')]&&(null==_0x3826c0?(this[_0x2c33('0x27')](_0x2e2e35[_0x2c33('0x10')]),this[_0x2c33('0x1')](_0x414e47,!0x1)):(this['_updateController'](_0x3826c0['head']),this[_0x2c33('0x1')](_0x414e47,!0x0)));}),null===_0x414e47['previous']?this['_handleSuggestionControllerDelayed'](_0x414e47,!0x1):this[_0x2c33('0x27')](_0x414e47['head']);}),this[_0x2c33('0x3')](_0x52859d,_0x2c33('0x21'),(_0x2e5582,_0x561da5,_0x488073)=>{this[_0x2c33('0x1b')](_0x561da5,'change:previous'),this[_0x2c33('0x41')][_0x2c33('0x28')](_0x561da5);const _0x28bd10=_0x488073?_0x488073[_0x2c33('0x10')]:_0x561da5,_0x1de983=this[_0x2c33('0x7')][_0x2c33('0xf')](_0x28bd10);null!==_0x488073&&this[_0x2c33('0x27')](_0x28bd10),null===_0x488073&&_0x1de983&&this[_0x2c33('0x62')](_0x561da5);}),this[_0x2c33('0x3')](_0x52859d,_0x2c33('0x6b'),(_0x54aed6,_0x86e1dd)=>{this[_0x2c33('0x27')](_0x86e1dd);}),this['listenTo'](_0x29a21e,_0x2c33('0x4b'),()=>{this[_0x2c33('0x4f')]();}),this['listenTo'](_0x59411a,_0x2c33('0x6d'),(_0x27372f,{threadId:_0x55226c,isFromAdapter:_0xfa6bb8})=>{if(_0xfa6bb8||!_0x52859d[_0x2c33('0x15')](_0x55226c))return;const _0x3640a8=_0x52859d[_0x2c33('0x30')](_0x55226c);this[_0x2c33('0x7')][_0x2c33('0xf')](_0x3640a8)[_0x2c33('0x48')][_0x2c33('0x32')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42f47f=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x39')),_0x2658f7=this['editor'][_0x2c33('0x9')]['get'](_0x2c33('0x59')),_0x502da8=Array[_0x2c33('0x0')](_0x42f47f[_0x2c33('0x8')],_0x3522d6=>_0x3522d6['innerView'])[_0x2c33('0x14')](_0x55c7a8=>this['_viewToController'][_0x2c33('0x1e')](_0x55c7a8)),_0x4e069d=[];for(const _0x3ae3c3 of _0x502da8){const _0x4272a4=this[_0x2c33('0x34')]['get'](_0x3ae3c3)[_0x2c33('0x55')][_0x2c33('0x24')]();_0x4e069d[_0x2c33('0x65')](..._0x4272a4[_0x2c33('0x51')]((_0xeacbae,_0x22735f)=>[..._0xeacbae,..._0x22735f[_0x2c33('0x6c')]()],[]));}_0x2658f7[_0x2c33('0x31')]=_0x4e069d;}[_0x2c33('0x36')](_0x347d98){const _0x1879f6=_0x1e9d51(_0x347d98,_0x2a5631),_0x2a3edc=this[_0x2c33('0x22')][_0x2c33('0x68')]['get'](_0x2c33('0x3c')),_0x56220e=_0x11c724(_0x347d98,_0x2c33('0x57'));_0x1879f6[_0x2c33('0x4')][_0x2c33('0x20')]({'tooltip':_0x56220e,'label':_0x56220e,'icon':_0x1dbc08}),_0x1879f6[_0x2c33('0x4')][_0x2c33('0x18')]('isOn')['to'](_0x2a3edc,_0x2c33('0x2e')),_0x1879f6['buttonView']['on'](_0x2c33('0x11'),()=>{_0x2a3edc[_0x2c33('0x11')](),this['editor'][_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();});const _0x5e4bbe=new _0x14b3b9(),_0x5810ef=[{'type':_0x2c33('0x1f'),'model':{'withText':!0x0,'label':_0x56220e,'commandName':_0x2c33('0x3c')}},{'type':_0x2c33('0x25')},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x1d')),'commandName':_0x2c33('0x5')}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x5f')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,'Discard\x20all\x20suggestions'),'commandName':_0x2c33('0x64')}},{'type':_0x2c33('0x52'),'model':{'withText':!0x0,'label':_0x11c724(_0x347d98,_0x2c33('0x23')),'commandName':_0x2c33('0x45')}}];for(const _0x13a67f of _0x5810ef){let _0x19fd06={'type':_0x2c33('0x25')};if(_0x13a67f[_0x2c33('0x55')]){const _0x3a083f=new _0x3e9d15(_0x13a67f[_0x2c33('0x55')]),_0x522e13=this[_0x2c33('0x22')][_0x2c33('0x68')][_0x2c33('0xf')](_0x3a083f['commandName']);_0x3a083f[_0x2c33('0x18')](_0x2c33('0x40'),'isEnabled')['to'](_0x522e13,'value','isEnabled'),_0x19fd06={'type':_0x13a67f[_0x2c33('0xe')],'model':_0x3a083f};}_0x5e4bbe['add'](_0x19fd06);}_0x46aa93(_0x1879f6,_0x5e4bbe);const _0x1f6f35=_0x5810ef['filter'](_0x55a90d=>null!=_0x55a90d[_0x2c33('0x55')])[_0x2c33('0x4e')](_0x26f513=>this[_0x2c33('0x22')][_0x2c33('0x68')][_0x2c33('0xf')](_0x26f513[_0x2c33('0x55')][_0x2c33('0x66')])),_0x5be2db=_0x1879f6[_0x2c33('0x4')];return _0x5be2db[_0x2c33('0x3f')][_0x2c33('0x42')](_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x63')]['unbind'](_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x3f')]['bind'](_0x2c33('0x4c'))['to'](_0x2a3edc,_0x2c33('0x4c')),_0x5be2db[_0x2c33('0x63')][_0x2c33('0x18')](_0x2c33('0x4c'))['toMany'](_0x1f6f35,'isEnabled',(..._0x27ebe1)=>_0x27ebe1[_0x2c33('0x53')](_0x4e258c=>_0x4e258c)),_0x1879f6['on'](_0x2c33('0x11'),_0x3f4473=>{this['editor']['execute'](_0x3f4473[_0x2c33('0x47')]['commandName']),this[_0x2c33('0x22')]['editing']['view'][_0x2c33('0x32')]();}),_0x1879f6;}[_0x2c33('0x2a')](_0x4a2306){const _0x509fb6=this['editor'],_0x13f96e=_0x509fb6[_0x2c33('0x33')],_0x1bde4f=_0x509fb6['plugins']['get'](_0x2c33('0x39')),_0x5427c1=_0x509fb6[_0x2c33('0x9')][_0x2c33('0xf')](_0x2c33('0x3d')),_0x2163d2=_0x509fb6['plugins']['get'](_0x2c33('0x38')),_0x579ffd=_0x509fb6['plugins'][_0x2c33('0xf')](_0x4e7ee8)['me'],_0xccc4e5=_0x13f96e['get'](_0x2c33('0x3c'))[_0x2c33('0x6a')],{CommentsListView:_0x577341,CommentThreadInputView:_0x15748e}=_0x509fb6[_0x2c33('0x9')]['get'](_0x2c33('0x35'));let _0x5086c2,_0xf8c7b9;this[_0x2c33('0x5a')]['has'](_0x4a2306['id'])?(_0xf8c7b9=this['_annotationViews'][_0x2c33('0xf')](_0x4a2306['id']),_0x5086c2=_0xf8c7b9[_0x2c33('0x2b')]):(_0x5086c2=new _0xccc4e5(_0x509fb6[_0x2c33('0x6')],_0x4a2306,_0x579ffd,{'disableComments':this[_0x2c33('0x5d')],'editorConfig':_0x13f96e[_0x2c33('0xf')](_0x2c33('0xb')),'maxCommentsWhenCollapsed':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x61')),'maxThreadTotalWeight':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x3a')),'maxCommentCharsWhenCollapsed':_0x13f96e[_0x2c33('0xf')](_0x2c33('0x5c')),'formatDateTime':_0x23102c(_0x13f96e['get'](_0x2c33('0x6'))),'CommentView':_0x13f96e[_0x2c33('0xf')]('comments')['CommentView'],'CommentsListView':_0x577341,'CommentThreadInputView':_0x15748e}),_0x5086c2[_0x2c33('0x3e')]['on']('execute',()=>{_0x509fb6[_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();}),_0x5086c2[_0x2c33('0x67')]['on'](_0x2c33('0x11'),()=>{_0x509fb6[_0x2c33('0x3b')][_0x2c33('0x48')][_0x2c33('0x32')]();}),_0xf8c7b9=_0x1bde4f[_0x2c33('0x4a')](this[_0x2c33('0x22')][_0x2c33('0x6')],_0x5086c2),_0xf8c7b9[_0x2c33('0x18')](_0x2c33('0x69'))['to'](_0x5086c2,_0x2c33('0x69')),_0xf8c7b9['bind'](_0x2c33('0x58'))['to'](_0x5086c2),_0xf8c7b9['bind']('type')['to'](_0x5086c2,_0x2c33('0xe'),_0x2ededc=>'suggestion-'+_0x2ededc),this[_0x2c33('0x5a')][_0x2c33('0x20')](_0x4a2306['id'],_0xf8c7b9));const _0x4def72=_0x5427c1['createCommentThreadController'](_0x4a2306[_0x2c33('0x49')],_0x5086c2),_0x1b0859=new _0x20fdc3(_0x509fb6,_0x4a2306,_0x5086c2,_0x4def72),_0x264da1=_0x4a2306[_0x2c33('0x24')]()[_0x2c33('0x14')](_0x1eb431=>_0x1eb431['isInContent']);_0x5086c2[_0x2c33('0xd')]=_0x509fb6['plugins']['get'](_0x2c33('0x59'))[_0x2c33('0xc')][_0x2c33('0x17')](_0x264da1),this['_suggestionToController'][_0x2c33('0x20')](_0x4a2306,_0x1b0859),this[_0x2c33('0x34')][_0x2c33('0x20')](_0x5086c2,_0x1b0859);const _0x344628=_0x1bde4f[_0x2c33('0x13')]({'view':_0xf8c7b9,'target':()=>{const _0x4a2650=[],_0x27d72c=_0x4a2306[_0x2c33('0x24')]()['filter'](_0x498679=>_0x498679['isInContent']);for(const _0xf5d4b2 of _0x27d72c)_0x4a2650[_0x2c33('0x65')](..._0xf5d4b2[_0x2c33('0x4d')]());return _0x319b1f(_0x509fb6[_0x2c33('0x3b')],_0x4a2650);},'type':()=>_0x2c33('0x19')+_0x1b0859[_0x2c33('0x48')][_0x2c33('0xe')]});_0x1bde4f[_0x2c33('0x1c')](_0x344628),_0x2163d2[_0x2c33('0x2d')](_0x344628);}[_0x2c33('0x62')](_0x17e484){const _0x4b251f=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x39')),_0x25eede=this[_0x2c33('0x7')][_0x2c33('0xf')](_0x17e484),_0x36d19f=_0x25eede[_0x2c33('0x48')],_0x2e21c8=_0x4b251f[_0x2c33('0x60')](_0x36d19f);_0x2e21c8&&_0x4b251f[_0x2c33('0x50')](_0x2e21c8),this[_0x2c33('0x7')][_0x2c33('0x28')](_0x17e484),this[_0x2c33('0x34')]['delete'](_0x36d19f),_0x25eede[_0x2c33('0x2')]();}[_0x2c33('0x27')](_0x34027b){if(!_0x34027b[_0x2c33('0x5e')]||!this[_0x2c33('0x7')][_0x2c33('0x1e')](_0x34027b))return;const _0x6e597c=this[_0x2c33('0x22')]['plugins'][_0x2c33('0xf')](_0x2c33('0x59')),_0x867320=this[_0x2c33('0x7')]['get'](_0x34027b),_0x18f10d=_0x34027b[_0x2c33('0x24')]();_0x867320[_0x2c33('0x48')][_0x2c33('0xd')]=_0x6e597c[_0x2c33('0xc')][_0x2c33('0x17')](_0x18f10d);}[_0x2c33('0x2')](){for(const _0x2b8648 of this[_0x2c33('0x7')][_0x2c33('0x2f')]())this[_0x2c33('0x62')](_0x2b8648);for(const _0xa0f6c3 of this[_0x2c33('0x5a')][_0x2c33('0x37')]())_0xa0f6c3[_0x2c33('0x2b')][_0x2c33('0x2')]();super[_0x2c33('0x2')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bf9=['_pendingAction','isEnabled','bind','get','_setPendingAction','execute','unbind','acceptSuggestion','destroy','view','PENDING_ACTION_SUGGESTION','model','PendingActions','canAccept','discardSuggestion','canDiscard','listenTo','_removePendingAction','remove','commands','add','change:isDirty','_discardCommand','plugins','commentThreadController','_editor','_acceptCommand'];(function(_0x3683fb,_0x3bf9d9){const _0x20b07a=function(_0x55febd){while(--_0x55febd){_0x3683fb['push'](_0x3683fb['shift']());}};_0x20b07a(++_0x3bf9d9);}(_0x3bf9,0x149));const _0x20b0=function(_0x3683fb,_0x3bf9d9){_0x3683fb=_0x3683fb-0x0;let _0x20b07a=_0x3bf9[_0x3683fb];return _0x20b07a;};import{ObservableMixin as _0x1c68b3}from'ckeditor5/src/utils';import{getTranslation as _0x4b4758}from'../utils/common-translations';export default class qt extends _0x1c68b3(){constructor(_0x44985b,_0x4620c5,_0xde16b2,_0x30bf46){super(),this[_0x20b0('0x6')]=_0x4620c5,this[_0x20b0('0x4')]=_0xde16b2,this[_0x20b0('0x13')]=_0x30bf46,this[_0x20b0('0x14')]=_0x44985b,this[_0x20b0('0x15')]=_0x44985b[_0x20b0('0xe')][_0x20b0('0x19')]('acceptSuggestion'),this[_0x20b0('0x11')]=_0x44985b[_0x20b0('0xe')][_0x20b0('0x19')](_0x20b0('0x9')),this[_0x20b0('0x4')][_0x20b0('0x18')](_0x20b0('0x17'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x17afdd,_0x4d8528)=>_0x17afdd||_0x4d8528),this['view']['bind'](_0x20b0('0x8'))['to'](this[_0x20b0('0x15')],'isEnabled'),this[_0x20b0('0x4')][_0x20b0('0x18')](_0x20b0('0xa'))['to'](this[_0x20b0('0x11')],_0x20b0('0x17')),this['_pendingAction']=null,_0xde16b2['isDirty']&&this['_setPendingAction'](),this[_0x20b0('0xb')](_0xde16b2,_0x20b0('0x2'),()=>this[_0x20b0('0x2')]()),this[_0x20b0('0xb')](_0xde16b2,_0x20b0('0x9'),()=>this[_0x20b0('0x9')]()),this[_0x20b0('0xb')](_0xde16b2,_0x20b0('0x10'),()=>{_0xde16b2['isDirty']?this[_0x20b0('0x1a')]():this[_0x20b0('0xc')]();});}['acceptSuggestion'](){this[_0x20b0('0x15')][_0x20b0('0x0')](this[_0x20b0('0x6')]['id']);}['discardSuggestion'](){this[_0x20b0('0x11')][_0x20b0('0x0')](this[_0x20b0('0x6')]['id']);}[_0x20b0('0x3')](){this['view'][_0x20b0('0x1')](_0x20b0('0x17')),this[_0x20b0('0x4')][_0x20b0('0x1')](_0x20b0('0x8')),this[_0x20b0('0x4')]['unbind'](_0x20b0('0xa')),this['stopListening'](),this[_0x20b0('0x13')][_0x20b0('0x3')](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x3636ed=_0x4b4758(this[_0x20b0('0x14')]['locale'],_0x20b0('0x5'));this[_0x20b0('0x16')]=this[_0x20b0('0x14')][_0x20b0('0x12')][_0x20b0('0x19')](_0x20b0('0x7'))[_0x20b0('0xf')](_0x3636ed);}[_0x20b0('0xc')](){null!==this[_0x20b0('0x16')]&&this['_editor'][_0x20b0('0x12')][_0x20b0('0x19')](_0x20b0('0x7'))[_0x20b0('0xd')](this[_0x20b0('0x16')]),this[_0x20b0('0x16')]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeeee=['set','_model','setData','isDirty','locale','_localUser','CommentView','element','authoredAt','canAccept','_config','fire','isEnabled','bind','delegate','disabledSubmit','commentThreadInputView','cancel','hasDirtyComment','focus','value','removeComment','destroy','commentsListView','_createCommentThreadInputView','disableComments','commentInputView','addComment','commentThread','submit','_createCommentViews','showInput','isActive','canDiscard','isReadOnly','length'];(function(_0x2a4d6f,_0xeeee96){const _0x5da339=function(_0x2c26ce){while(--_0x2c26ce){_0x2a4d6f['push'](_0x2a4d6f['shift']());}};_0x5da339(++_0xeeee96);}(_0xeeee,0x115));const _0x5da3=function(_0x2a4d6f,_0xeeee96){_0x2a4d6f=_0x2a4d6f-0x0;let _0x5da339=_0xeeee[_0x2a4d6f];return _0x5da339;};import{View as _0xc162d7}from'ckeditor5/src/ui';export default class ii extends _0xc162d7{constructor(_0x3a9d20,_0xa4010a,_0xa22ee,_0x3b163e){super(_0x3a9d20),this[_0x5da3('0x22')]=null,this['commentThreadInputView']=null,this[_0x5da3('0xb')]('isActive',!0x1),this['set'](_0x5da3('0x13'),_0xa4010a['authoredAt']),this['bind'](_0x5da3('0x13'))['to'](_0xa4010a),this[_0x5da3('0xb')]('descriptionParts',[]),this[_0x5da3('0xb')](_0x5da3('0xe'),!0x1),this[_0x5da3('0xb')](_0x5da3('0x17'),!0x1),this[_0x5da3('0xb')](_0x5da3('0x14'),!0x1),this['set'](_0x5da3('0x8'),!0x1),this[_0x5da3('0xc')]=_0xa4010a,this[_0x5da3('0x10')]=_0xa22ee,this[_0x5da3('0x15')]=_0x3b163e,_0x3b163e[_0x5da3('0x0')]?this[_0x5da3('0xb')]('length',0x1):this['_createCommentViews']();}[_0x5da3('0x1e')](){this[_0x5da3('0x12')][_0x5da3('0x1e')]();}[_0x5da3('0x21')](){this['commentsListView']&&this['commentsListView'][_0x5da3('0x21')](),this[_0x5da3('0x1b')]&&this['commentThreadInputView'][_0x5da3('0x21')](),super['destroy']();}[_0x5da3('0x5')](){const {CommentsListView:_0x51fca0}=this[_0x5da3('0x15')];this[_0x5da3('0x22')]=new _0x51fca0(this[_0x5da3('0xf')],this[_0x5da3('0xc')]['commentThread'],Object['assign']({'CommentView':this[_0x5da3('0x15')][_0x5da3('0x11')]},this['_config'])),this[_0x5da3('0x22')][_0x5da3('0x19')](_0x5da3('0x20'))['to'](this),this[_0x5da3('0x22')][_0x5da3('0x19')]('updateComment')['to'](this),this['commentsListView'][_0x5da3('0x18')]('isActive')['to'](this),this['set'](_0x5da3('0xa'),this[_0x5da3('0x22')][_0x5da3('0xa')]+0x1),this['bind'](_0x5da3('0xa'))['to'](this[_0x5da3('0x22')],_0x5da3('0xa'),_0xcdbc52=>_0xcdbc52+0x1),this[_0x5da3('0x1b')]=this[_0x5da3('0x23')](),this['on'](_0x5da3('0x20'),()=>this['focus']()),this[_0x5da3('0x18')](_0x5da3('0xe'))['to'](this[_0x5da3('0x22')],_0x5da3('0x1d'),this['commentThreadInputView']['commentInputView'],_0x5da3('0x1f'),(_0x24e32c,_0x2a26ea)=>_0x24e32c||!!_0x2a26ea);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x49f5a1}=this[_0x5da3('0x15')],_0x225a57=new _0x49f5a1(this[_0x5da3('0xf')],this[_0x5da3('0x10')],this[_0x5da3('0x15')]['editorConfig']),_0x1e7819=_0x225a57[_0x5da3('0x1')];return _0x225a57[_0x5da3('0x18')](_0x5da3('0x6'))['to'](this,_0x5da3('0x7'),this[_0x5da3('0xc')][_0x5da3('0x3')],_0x5da3('0x9'),_0x1e7819,_0x5da3('0x1f'),(_0x5bf770,_0x2ec4b7,_0x3f8820)=>!!_0x3f8820||_0x5bf770&&!_0x2ec4b7),_0x1e7819['on'](_0x5da3('0x4'),(_0x144c0b,_0xdfc9b8)=>{this[_0x5da3('0x16')](_0x5da3('0x2'),_0xdfc9b8),_0x1e7819['editor'][_0x5da3('0xd')]('');}),_0x1e7819['on'](_0x5da3('0x1c'),()=>this['focus']()),_0x1e7819[_0x5da3('0x18')](_0x5da3('0x1a'))['to'](this[_0x5da3('0xc')][_0x5da3('0x3')],'isReadOnly'),_0x225a57;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7afd=['</p>','name','EXTERNAL_IMPORT_WORD_SUGGESTION','ck-annotation__content-wrapper','check','ck-suggestion__user','formatDateTime','getTemplate','getExternalSuggestionNote','change:description','render','\x22\x20title=\x22','ck-comment__info-time','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','discardButton','ck-suggestion--accept','ck-annotation__info-time','<p>','title','set','isExternal','userView','EXTERNAL_AVATAR','ck-annotation__user','creator','attributes','\x22></span>','ck-suggestion-wrapper','ck-suggestion-wrapper--active','acceptButton','innerHTML','EXTERNAL_IMPORT_WORD_AVATAR','@external','ck-suggestion','span','ck-suggestion__info','cancel','ck-suggestion__info-name','discardSuggestion','canDiscard','<span\x20class=\x22ck-suggestion-type\x22>','fire','_descriptionElement','ck-annotation','type','Accept\x20suggestion','_config','innerText','execute','</span>','content','authoredAt','isEnabled','setTemplate','acceptSuggestion','author','extendTemplate','ck-suggestion--discard','ck-annotation__info-name','color','children','commentsListView','getUserViewNotificationText','descriptionParts','commentThreadInputView','element','ck-suggestion__main','_createButton','push','bindTemplate','querySelector','.ck-annotation__content-wrapper','map','_model','locale','bind','ck-suggestion-','source','disableComments','Discard\x20suggestion','description','div','split','ck-suggestion--disabled-comments','ck-suggestion__actions'];(function(_0x2fe544,_0x7afda5){const _0x236f0c=function(_0xeaa964){while(--_0xeaa964){_0x2fe544['push'](_0x2fe544['shift']());}};_0x236f0c(++_0x7afda5);}(_0x7afd,0x70));const _0x236f=function(_0x2fe544,_0x7afda5){_0x2fe544=_0x2fe544-0x0;let _0x236f0c=_0x7afd[_0x2fe544];return _0x236f0c;};import{getTranslation as _0x49b905}from'../../utils/common-translations';import{default as _0x5730da}from'./basesuggestionthreadview';import{ButtonView as _0x405611}from'ckeditor5/src/ui';import{icons as _0x33766e}from'ckeditor5/src/core';import{trimHtml as _0x4f9042,UserView as _0x68a9f3}from'ckeditor5-collaboration/src/collaboration-core';export default class zt extends _0x5730da{constructor(_0x20efca,_0x32f6ec,_0x52adcf,_0x3776cb){super(_0x20efca,_0x32f6ec,_0x52adcf,_0x3776cb),this[_0x236f('0x4d')](_0x236f('0x11'),''),this[_0x236f('0x30')](_0x236f('0x11'))['to'](this,_0x236f('0x24'),_0x5d2e5c=>_0x5d2e5c&&_0x5d2e5c[0x0]?_0x5d2e5c[0x0][_0x236f('0x11')]:''),this[_0x236f('0x30')](_0x236f('0x35'))['to'](this,_0x236f('0x24'),this,'isActive',(_0x1de2d5,_0x2b9f1d)=>{let _0x501665='';for(const _0x4bce85 of _0x1de2d5)_0x501665+=_0x236f('0x4b')+ns(_0x4bce85[_0x236f('0x17')],_0x4bce85[_0x236f('0x20')])+_0x236f('0x3a');return _0x2b9f1d?_0x501665:_0x4f9042(_0x501665,{'limit':0x8c});}),this[_0x236f('0xf')]=null,this['acceptButton']=this[_0x236f('0x28')](_0x49b905(_0x20efca,_0x236f('0x12')),_0x33766e[_0x236f('0x3e')],_0x236f('0x49'),_0x236f('0x1b'),'sw'),this[_0x236f('0x2')]['bind'](_0x236f('0x19'))['to'](this,'canAccept'),this[_0x236f('0x48')]=this[_0x236f('0x28')](_0x49b905(_0x20efca,_0x236f('0x34')),_0x33766e[_0x236f('0x9')],_0x236f('0x1e'),_0x236f('0xb'),'sw'),this['discardButton']['bind'](_0x236f('0x19'))['to'](this,_0x236f('0xc')),this[_0x236f('0x4f')]=new _0x68a9f3(_0x20efca,this[_0x236f('0x2e')]['author'],this[_0x236f('0x23')]()),this[_0x236f('0x4f')][_0x236f('0x1d')]({'attributes':{'class':[_0x236f('0x3f'),_0x236f('0x51')]}}),this[_0x236f('0x1a')](this[_0x236f('0x41')]());}[_0x236f('0x41')](){const _0x48f40c=this[_0x236f('0x2a')],_0x5b9e50=[{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x8'),'ck-annotation__info']},'children':[{'tag':_0x236f('0x7'),'children':[{'text':this[_0x236f('0x4f')][_0x236f('0x3b')]}],'attributes':{'class':[_0x236f('0xa'),_0x236f('0x1f')]}},{'tag':'time','attributes':{'datetime':_0x48f40c['to'](_0x236f('0x18')),'class':[_0x236f('0x46'),_0x236f('0x4a')]},'children':[{'text':_0x48f40c['to'](_0x236f('0x18'),_0x205eb9=>this['_config'][_0x236f('0x40')](_0x205eb9))}]}]},{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x39'),'ck-annotation__actions']},'children':[this['acceptButton'],this[_0x236f('0x48')]]},{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x3d')]}}];this[_0x236f('0x2e')][_0x236f('0x4e')]&&_0x5b9e50[_0x236f('0x29')]({'tag':_0x236f('0x36'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x236f('0x42')]()}]});const _0x4c7edf={'tag':'div','attributes':{'class':[_0x236f('0x0'),_0x48f40c['if']('isActive',_0x236f('0x1')),_0x48f40c['to']('type',_0x1a505e=>_0x236f('0x31')+_0x1a505e),this[_0x236f('0x13')][_0x236f('0x33')]&&_0x236f('0x38')],'data-suggestion-id':this[_0x236f('0x2e')]['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this[_0x236f('0x2e')][_0x236f('0x1c')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x236f('0x6'),_0x236f('0x10')]},'children':[this[_0x236f('0x4f')],{'tag':_0x236f('0x36'),'attributes':{'class':[_0x236f('0x27'),'ck-annotation__main']},'children':_0x5b9e50}]}]};return this['commentsListView']&&this[_0x236f('0x25')]&&_0x4c7edf[_0x236f('0x21')][_0x236f('0x29')](this[_0x236f('0x22')],this[_0x236f('0x25')]),_0x4c7edf;}[_0x236f('0x44')](){super[_0x236f('0x44')](),this['_descriptionElement']=this[_0x236f('0x26')][_0x236f('0x2b')](_0x236f('0x2c')),this[_0x236f('0xf')]['innerHTML']=this[_0x236f('0x35')],this['on'](_0x236f('0x43'),(_0x5b03a6,_0x4f0c0d,_0x4e073e)=>{this[_0x236f('0xf')][_0x236f('0x3')]=_0x4e073e;});}[_0x236f('0x28')](_0x22f424,_0x36471e,_0x27a390,_0x7a9e93,_0x5d4ea0){const _0x487151=new _0x405611(this[_0x236f('0x2f')]);return _0x487151[_0x236f('0x4d')]({'label':_0x22f424,'icon':_0x36471e,'tooltip':!0x0,'tooltipPosition':_0x5d4ea0}),_0x487151[_0x236f('0x1d')]({'attributes':{'class':_0x27a390}}),_0x487151['on'](_0x236f('0x15'),()=>{this[_0x236f('0xe')](_0x7a9e93,this[_0x236f('0x2e')]['id']);}),_0x487151;}['getExternalSuggestionNote'](){return'importWord'===this['_model'][_0x236f('0x53')][_0x236f('0x5')][_0x236f('0x32')]?_0x49b905(this[_0x236f('0x2f')],_0x236f('0x3c')):_0x49b905(this[_0x236f('0x2f')],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this[_0x236f('0x2e')][_0x236f('0x4e')]?'importWord'===this[_0x236f('0x2e')][_0x236f('0x53')]['@external'][_0x236f('0x32')]?_0x49b905(this[_0x236f('0x2f')],_0x236f('0x4'),this[_0x236f('0x2e')][_0x236f('0x52')][_0x236f('0x3b')]):_0x49b905(this[_0x236f('0x2f')],_0x236f('0x50'),this[_0x236f('0x2e')]['creator'][_0x236f('0x3b')]):null;}}function ns(_0x1bf2da,_0x44b841){let _0x55184c='';return _0x55184c+=_0x1bf2da[_0x236f('0x37')]('*')[_0x236f('0x2d')]((_0x3e9f27,_0x35ea65)=>_0x35ea65%0x2!=0x0?_0x236f('0xd')+os(_0x3e9f27)+_0x236f('0x16'):os(_0x3e9f27))['join'](''),_0x44b841&&(_0x55184c+=_0x236f('0x47')+_0x44b841['value']+_0x236f('0x45')+_0x44b841[_0x236f('0x4c')]+_0x236f('0x54')),_0x55184c;}function os(_0x41f3e3){const _0x13c567=document['createElement']('span');return _0x13c567[_0x236f('0x14')]=_0x41f3e3,_0x13c567[_0x236f('0x3')];}
|
|
@@ -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(_0x22567f,_0x560900,_0x1a3774){const t=_0x22567f['t'];switch(_0x560900){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',_0x1a3774);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1a3774);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1a3774);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1a3774);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1a3774);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',_0x1a3774);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1a3774);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',_0x1a3774);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1a3774);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1a3774);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1a3774);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1a3774);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1a3774);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1a3774);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1a3774);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1a3774);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1a3774);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1a3774);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1a3774);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1a3774);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1a3774);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1a3774);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'},_0x1a3774);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1a3774);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1a3774);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1a3774);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1a3774);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1a3774);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1a3774);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1a3774);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1a3774);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'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1a3774);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'},_0x1a3774);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1a3774);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1a3774);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'},_0x1a3774);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'},_0x1a3774);default:return _0x560900;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b34=['getRange','schema','from','change','next','replace','push','length','splice','map','getMarkers','isMultiRange','value','isArray','type','end','execute','sort','isTouching','color','createPositionAt','isInContent','isCollapsed','createRange','createPositionAfter','createPositionBefore','deletion','\x20[color\x20','getRanges','join','add'];(function(_0x50ffab,_0x4b3491){const _0x272258=function(_0x17863d){while(--_0x17863d){_0x50ffab['push'](_0x50ffab['shift']());}};_0x272258(++_0x4b3491);}(_0x4b34,0x1b8));const _0x2722=function(_0x50ffab,_0x4b3491){_0x50ffab=_0x50ffab-0x0;let _0x272258=_0x4b34[_0x50ffab];return _0x272258;};export function normalizeDescription(_0x23f8e4){return Array[_0x2722('0x7')](_0x23f8e4)||(_0x23f8e4=[_0x23f8e4]),_0x23f8e4[_0x2722('0x3')](_0xc8184d=>{const _0x8b1e91=_0xc8184d['content'][_0x2722('0x1e')](/\*/g,''),_0x19b2ff=_0xc8184d[_0x2722('0xd')]?_0x2722('0x15')+_0xc8184d[_0x2722('0xd')][_0x2722('0x6')]+']':'';return'['+_0xc8184d['type']+']\x20'+_0x8b1e91+_0x19b2ff;})[_0x2722('0x17')](';\x20');}export function sortSuggestions(_0x184c22){return _0x184c22[_0x2722('0xb')]((_0x338a3b,_0x3554e5)=>_0x2722('0x14')==_0x338a3b['type']&&_0x2722('0x14')!=_0x3554e5[_0x2722('0x8')]?-0x1:_0x2722('0x14')!=_0x338a3b[_0x2722('0x8')]&&_0x2722('0x14')==_0x3554e5['type']?0x1:0x0);}export function getSelectedSuggestions(_0x17ca23,_0x19c14e){const _0x56155c=Array[_0x2722('0x1b')](_0x17ca23[_0x2722('0x16')]()),_0x3b6489=new Set();for(const _0x4b4c31 of _0x19c14e)if(_0x4b4c31[_0x2722('0xf')])for(const _0x223a79 of _0x56155c)for(const _0x229a1e of _0x4b4c31[_0x2722('0x4')]()){const _0x38a5e1=_0x229a1e[_0x2722('0x19')]();(_0x223a79['isIntersecting'](_0x38a5e1)||_0x17ca23[_0x2722('0x10')]&&!_0x4b4c31[_0x2722('0x5')]&&_0x4b4c31[_0x2722('0x1d')]&&_0x38a5e1[_0x2722('0x9')][_0x2722('0xc')](_0x223a79['start']))&&_0x3b6489[_0x2722('0x18')](_0x4b4c31);}return _0x3b6489;}export function getRangesOfBlockGroups(_0x266476,_0x3303dc){let _0x2d8ef6,_0xd1329=0x0;const _0x39e541=[],_0x577129=_0x3303dc[_0x2722('0x1a')];for(;_0xd1329<_0x266476[_0x2722('0x1')];){const _0x3fb3d3=_0x266476[_0xd1329],_0x148c20=_0x266476[_0xd1329+0x1];_0x2d8ef6||(_0x2d8ef6=_0x3303dc[_0x2722('0x13')](_0x3fb3d3)),oo(_0x3303dc,_0x3fb3d3,_0x148c20)||(_0x39e541[_0x2722('0x0')](_0x3303dc[_0x2722('0x11')](_0x2d8ef6,_0x577129['isObject'](_0x3fb3d3)?_0x3303dc[_0x2722('0x12')](_0x3fb3d3):_0x3303dc[_0x2722('0xe')](_0x3fb3d3,_0x2722('0x9')))),_0x2d8ef6=null),_0xd1329++;}return _0x39e541;}function oo(_0x1b48ab,_0x20c93e,_0x5a8263){if(!_0x5a8263)return!0x1;const _0x1a3203=_0x1b48ab[_0x2722('0x12')](_0x20c93e),_0x27e89e=_0x1b48ab[_0x2722('0x13')](_0x5a8263);return _0x1a3203[_0x2722('0xc')](_0x27e89e);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x482fc4,_0x58d63f,_0x40bb4c){for(;_0x40bb4c[_0x2722('0x1')];){const _0x5c617b=_0x40bb4c[_0x2722('0x2')](0x0,0x64);_0x482fc4[_0x2722('0x1c')](()=>{for(const _0x303db3 of _0x5c617b)_0x303db3['isInContent']&&_0x58d63f[_0x2722('0xa')](_0x303db3['id']);});}}
|