@ckeditor/ckeditor5-track-changes 37.1.0 → 38.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/ar.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/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/tr.js +1 -1
- package/build/translations/uk.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/translations/ar.po +7 -7
- package/lang/translations/bg.po +3 -3
- package/lang/translations/bn.po +3 -3
- package/lang/translations/ca.po +3 -3
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +3 -3
- package/lang/translations/de.po +3 -3
- package/lang/translations/el.po +3 -3
- package/lang/translations/en-au.po +23 -23
- package/lang/translations/es.po +4 -4
- package/lang/translations/et.po +3 -3
- package/lang/translations/fi.po +3 -3
- package/lang/translations/fr.po +4 -4
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +3 -3
- package/lang/translations/hr.po +26 -26
- package/lang/translations/hu.po +3 -3
- package/lang/translations/id.po +2 -2
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +2 -2
- package/lang/translations/ko.po +2 -2
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +4 -4
- package/lang/translations/ms.po +2 -2
- package/lang/translations/nl.po +3 -3
- package/lang/translations/no.po +3 -3
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +4 -4
- package/lang/translations/ro.po +4 -4
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sr-latn.po +4 -4
- package/lang/translations/sr.po +4 -4
- package/lang/translations/sv.po +3 -3
- package/lang/translations/th.po +2 -2
- package/lang/translations/tr.po +3 -3
- package/lang/translations/uk.po +5 -5
- package/lang/translations/vi.po +2 -2
- package/lang/translations/zh-cn.po +2 -2
- package/lang/translations/zh.po +2 -2
- package/package.json +2 -2
- 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.d.ts +23 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +23 -5
- 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 _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')]();}}
|
|
23
|
+
const _0x4502=['actionView','_viewToController','view','CommentsUI','size','listenTo','value','stopListening','Accept\x20all\x20selected\x20suggestions','_refreshActiveMarkers','refreshSelectedViews','comments','getRanges','commandName','addSourceCollector','trackChanges.SuggestionThreadView','mainView','getMarkerNames','getSuggestion','from','bind','TrackChangesEditing','trackChanges.disableComments','commands','acceptSelectedSuggestions','_suggestionToController','plugins','unbind','model','isDirty','comments.maxCommentCharsWhenCollapsed','discardSelectedSuggestions','getDescriptions','CommentView','arrowView','suggestion-','_destroyController','activeAnnotations','commentThread','_annotationViews','CommentsRepository','change:previous','getAllAdjacentSuggestions','hasSuggestion','change:activeAnnotations','Track\x20changes','editor','trackChanges','descriptionParts','pluginName','_updateController','editing','activeMarkers','set','source','previous','registerAnnotation','clear','isInContent','map','getByInnerView','type','_createUIButton','discardButton','getFirstRange','push','init','_descriptionFactory','length','separator','add','EditorAnnotations','filter','focus','locale','discardAllSuggestions','SuggestionThreadView','buttonView','TrackChangesUI','some','createAnnotation','delete','remove','execute','acceptButton','acceptAllSuggestions','_disableComments','suggestionLoaded','_handleControllerBuffer','has','getMarkers','_handleSuggestionControllerDelayed','head','button','Annotations','Discard\x20all\x20suggestions','createAnnotationView','config','reduce','get','destroy','Discard\x20all\x20selected\x20suggestions','isOn','requires','isEnabled'];(function(_0x255373,_0x4502f7){const _0x32a6a5=function(_0x5344df){while(--_0x5344df){_0x255373['push'](_0x255373['shift']());}};_0x32a6a5(++_0x4502f7);}(_0x4502,0x100));const _0x32a6=function(_0x255373,_0x4502f7){_0x255373=_0x255373-0x0;let _0x32a6a5=_0x4502[_0x255373];return _0x32a6a5;};import{Plugin as _0x13c441}from'ckeditor5/src/core';import{Collection as _0x183a29}from'ckeditor5/src/utils';import{Model as _0x37948f,SplitButtonView as _0x5b0198,createDropdown as _0x4a8cb6,addListToDropdown as _0x16928e}from'ckeditor5/src/ui';import{Users as _0x2c4607,getDateTimeFormatter as _0x16caa2,getAllMarkersDomElementsSorted as _0x5733e2}from'ckeditor5-collaboration/src/collaboration-core';import _0x527497 from'./trackchangesediting';import _0x2467c3 from'./ui/suggestioncontroller';import _0x4e61ed from'./ui/view/suggestionthreadview';import{getTranslation as _0x11ec67}from'./utils/common-translations';import _0x37287c from'../theme/icons/track-changes.svg';export default class d extends _0x13c441{static get[_0x32a6('0x39')](){return[_0x527497,_0x2c4607,'CommentsRepository',_0x32a6('0x30'),_0x32a6('0x19')];}static get[_0x32a6('0x3')](){return _0x32a6('0x20');}constructor(_0x31b728){super(_0x31b728),this[_0x32a6('0x54')]=new Map(),this[_0x32a6('0x3c')]=new Map(),this[_0x32a6('0x62')]=new Map(),this[_0x32a6('0x2a')]=new Map();const _0x92abcc=this[_0x32a6('0x0')]['config'];_0x92abcc['define'](_0x32a6('0x4a'),_0x4e61ed),_0x92abcc['define'](_0x32a6('0x51'),!0x1),this[_0x32a6('0x28')]=_0x92abcc[_0x32a6('0x35')](_0x32a6('0x51'));}['_handleSuggestionControllerDelayed'](_0x15dc2a,_0x3a1522){0x0===this['_handleControllerBuffer'][_0x32a6('0x3f')]&&setTimeout(()=>{for(const [_0x26bd7f,_0x13b8b8]of this[_0x32a6('0x2a')]){const _0x81c740=this[_0x32a6('0x54')][_0x32a6('0x2b')](_0x26bd7f);_0x81c740||_0x13b8b8?_0x81c740&&_0x13b8b8&&this[_0x32a6('0x5f')](_0x26bd7f):this['_initializeController'](_0x26bd7f);}this[_0x32a6('0x0')]['plugins']['get'](_0x32a6('0x19'))[_0x32a6('0x45')](),this[_0x32a6('0x44')](),this[_0x32a6('0x2a')][_0x32a6('0xb')]();},0xa),this[_0x32a6('0x2a')][_0x32a6('0x7')](_0x15dc2a,_0x3a1522);}[_0x32a6('0x14')](){const _0x50774c=this[_0x32a6('0x0')],_0x278bfa=_0x50774c['plugins'][_0x32a6('0x35')]('TrackChangesEditing'),_0x4a00dd=_0x50774c[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x30')),_0x2c8ceb=_0x50774c[_0x32a6('0x55')][_0x32a6('0x35')]('EditorAnnotations'),_0x4e78ec=_0x50774c[_0x32a6('0x55')]['get'](_0x32a6('0x63'));_0x50774c['ui']['componentFactory'][_0x32a6('0x18')]('trackChanges',_0x331415=>this[_0x32a6('0x10')](_0x331415)),_0x2c8ceb[_0x32a6('0x49')](()=>{const _0x4b50a5=[];for(const [_0x48d725,_0x57c0a3]of Array[_0x32a6('0x4e')](this['_suggestionToController'])){const _0x1d80bc=_0x48d725['getAllAdjacentSuggestions'](),_0x39e7ed=[];for(const _0x155b47 of _0x1d80bc){if(!_0x155b47['isInContent'])continue;if(_0x155b47['isMultiRange']){_0x39e7ed[_0x32a6('0x13')](..._0x155b47[_0x32a6('0x47')]());continue;}const _0x23e92d=_0x155b47[_0x32a6('0x12')]();if(_0x39e7ed[_0x32a6('0x16')]>0x0){const _0x4827c9=_0x39e7ed[0x0]['getJoined'](_0x23e92d);if(_0x4827c9){_0x39e7ed[0x0]=_0x4827c9;continue;}}_0x39e7ed[_0x32a6('0x13')](_0x23e92d);}_0x4b50a5['push']([_0x57c0a3[_0x32a6('0x3d')],_0x39e7ed]);}return _0x4b50a5;}),this[_0x32a6('0x40')](_0x278bfa,_0x32a6('0x29'),(_0x5db185,_0x17cc34)=>{this[_0x32a6('0x40')](_0x17cc34,'change:previous',(_0x30e0d9,_0x4bbdaf,_0x41c727,_0x44c8b4)=>{_0x17cc34[_0x32a6('0xc')]&&(null==_0x41c727?(this[_0x32a6('0x4')](_0x44c8b4[_0x32a6('0x2e')]),this['_handleSuggestionControllerDelayed'](_0x17cc34,!0x1)):(this[_0x32a6('0x4')](_0x41c727[_0x32a6('0x2e')]),this[_0x32a6('0x2d')](_0x17cc34,!0x0)));}),null===_0x17cc34[_0x32a6('0x9')]?this[_0x32a6('0x2d')](_0x17cc34,!0x1):this['_updateController'](_0x17cc34['head']);}),this[_0x32a6('0x40')](_0x278bfa,'suggestionUnloaded',(_0x56bcad,_0x427394,_0x5a09c4)=>{this[_0x32a6('0x42')](_0x427394,_0x32a6('0x64')),this[_0x32a6('0x2a')]['delete'](_0x427394);const _0x5441ea=_0x5a09c4?_0x5a09c4['head']:_0x427394,_0x23ee2f=this[_0x32a6('0x54')]['get'](_0x5441ea);null!==_0x5a09c4&&this['_updateController'](_0x5441ea),null===_0x5a09c4&&_0x23ee2f&&this[_0x32a6('0x5f')](_0x427394);}),this[_0x32a6('0x40')](_0x278bfa,'suggestionChanged',(_0x3d825e,_0x183dfa)=>{this['_updateController'](_0x183dfa);}),this[_0x32a6('0x40')](_0x4a00dd,_0x32a6('0x67'),()=>{this[_0x32a6('0x44')]();}),this[_0x32a6('0x40')](_0x4e78ec,'addComment',(_0x329f5a,{threadId:_0x3e728b,isFromAdapter:_0x30353d})=>{if(_0x30353d||!_0x278bfa[_0x32a6('0x66')](_0x3e728b))return;const _0x2d74b3=_0x278bfa[_0x32a6('0x4d')](_0x3e728b);this[_0x32a6('0x54')][_0x32a6('0x35')](_0x2d74b3)[_0x32a6('0x3d')][_0x32a6('0x1b')]();},{'priority':'lowest'});}[_0x32a6('0x44')](){const _0x30c865=this[_0x32a6('0x0')]['plugins']['get'](_0x32a6('0x30')),_0x37fef9=this['editor'][_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x50')),_0x210528=Array[_0x32a6('0x4e')](_0x30c865[_0x32a6('0x60')],_0x733f41=>_0x733f41['innerView'])[_0x32a6('0x1a')](_0x4488b5=>this[_0x32a6('0x3c')]['has'](_0x4488b5)),_0x510e17=[];for(const _0x5c4419 of _0x210528){const _0xe1115a=this[_0x32a6('0x3c')][_0x32a6('0x35')](_0x5c4419)[_0x32a6('0x57')]['getAllAdjacentSuggestions']();_0x510e17[_0x32a6('0x13')](..._0xe1115a[_0x32a6('0x34')]((_0x24cb4e,_0x3f6921)=>[..._0x24cb4e,..._0x3f6921[_0x32a6('0x4c')]()],[]));}_0x37fef9[_0x32a6('0x6')]=_0x510e17;}[_0x32a6('0x10')](_0x3d30d6){const _0x5c98af=_0x4a8cb6(_0x3d30d6,_0x5b0198),_0x7c4b78=this[_0x32a6('0x0')]['commands']['get'](_0x32a6('0x1')),_0x175542=_0x11ec67(_0x3d30d6,_0x32a6('0x68'));_0x5c98af[_0x32a6('0x1f')]['set']({'tooltip':_0x175542,'label':_0x175542,'icon':_0x37287c}),_0x5c98af[_0x32a6('0x1f')][_0x32a6('0x4f')](_0x32a6('0x38'))['to'](_0x7c4b78,_0x32a6('0x41')),_0x5c98af['buttonView']['on'](_0x32a6('0x25'),()=>{_0x7c4b78['execute'](),this['editor'][_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();});const _0x1465ad=new _0x183a29(),_0x43effe=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x175542,'commandName':_0x32a6('0x1')}},{'type':_0x32a6('0x17')},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,'Accept\x20all\x20suggestions'),'commandName':_0x32a6('0x27')}},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,_0x32a6('0x43')),'commandName':_0x32a6('0x53')}},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,_0x32a6('0x31')),'commandName':_0x32a6('0x1d')}},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,_0x32a6('0x37')),'commandName':_0x32a6('0x5a')}}];for(const _0x537cf8 of _0x43effe){let _0x63ad92={'type':_0x32a6('0x17')};if(_0x537cf8['model']){const _0x100425=new _0x37948f(_0x537cf8[_0x32a6('0x57')]),_0x2dbc75=this['editor'][_0x32a6('0x52')]['get'](_0x100425[_0x32a6('0x48')]);_0x100425[_0x32a6('0x4f')](_0x32a6('0x38'),'isEnabled')['to'](_0x2dbc75,'value',_0x32a6('0x3a')),_0x63ad92={'type':_0x537cf8['type'],'model':_0x100425};}_0x1465ad['add'](_0x63ad92);}_0x16928e(_0x5c98af,_0x1465ad);const _0x49ffcc=_0x43effe[_0x32a6('0x1a')](_0x47332d=>null!=_0x47332d[_0x32a6('0x57')])[_0x32a6('0xd')](_0x2584aa=>this[_0x32a6('0x0')]['commands'][_0x32a6('0x35')](_0x2584aa[_0x32a6('0x57')][_0x32a6('0x48')])),_0x4dae76=_0x5c98af['buttonView'];return _0x4dae76[_0x32a6('0x3b')][_0x32a6('0x56')](_0x32a6('0x3a')),_0x4dae76[_0x32a6('0x5d')][_0x32a6('0x56')]('isEnabled'),_0x4dae76['actionView'][_0x32a6('0x4f')]('isEnabled')['to'](_0x7c4b78,_0x32a6('0x3a')),_0x4dae76[_0x32a6('0x5d')][_0x32a6('0x4f')]('isEnabled')['toMany'](_0x49ffcc,_0x32a6('0x3a'),(..._0x416cf7)=>_0x416cf7[_0x32a6('0x21')](_0x3d7042=>_0x3d7042)),_0x5c98af['on'](_0x32a6('0x25'),_0x4b58ab=>{this[_0x32a6('0x0')][_0x32a6('0x25')](_0x4b58ab[_0x32a6('0x8')]['commandName']),this[_0x32a6('0x0')][_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();}),_0x5c98af;}['_initializeController'](_0x338ab6){const _0x524191=this[_0x32a6('0x0')],_0xf49b10=_0x524191[_0x32a6('0x33')],_0x37126f=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x30')),_0x4d7005=_0x524191['plugins'][_0x32a6('0x35')]('CommentsRepository'),_0x3156b2=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x19')),_0x3ce164=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x2c4607)['me'],_0x48e170=_0xf49b10[_0x32a6('0x35')](_0x32a6('0x1'))[_0x32a6('0x1e')],{CommentsListView:_0x2eab5a,CommentThreadInputView:_0x86a00b}=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x3e'));let _0x5ad982,_0x2d1151;this['_annotationViews'][_0x32a6('0x2b')](_0x338ab6['id'])?(_0x2d1151=this['_annotationViews'][_0x32a6('0x35')](_0x338ab6['id']),_0x5ad982=_0x2d1151[_0x32a6('0x4b')]):(_0x5ad982=new _0x48e170(_0x524191[_0x32a6('0x1c')],_0x338ab6,_0x3ce164,{'disableComments':this['_disableComments'],'editorConfig':_0xf49b10['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xf49b10[_0x32a6('0x35')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf49b10[_0x32a6('0x35')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf49b10[_0x32a6('0x35')](_0x32a6('0x59')),'formatDateTime':_0x16caa2(_0xf49b10[_0x32a6('0x35')](_0x32a6('0x1c'))),'CommentView':_0xf49b10['get'](_0x32a6('0x46'))[_0x32a6('0x5c')],'CommentsListView':_0x2eab5a,'CommentThreadInputView':_0x86a00b}),_0x5ad982[_0x32a6('0x26')]['on'](_0x32a6('0x25'),()=>{_0x524191[_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();}),_0x5ad982[_0x32a6('0x11')]['on']('execute',()=>{_0x524191[_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();}),_0x2d1151=_0x37126f[_0x32a6('0x32')](this['editor'][_0x32a6('0x1c')],_0x5ad982),_0x2d1151[_0x32a6('0x4f')]('isDirty')['to'](_0x5ad982,_0x32a6('0x58')),_0x2d1151[_0x32a6('0x4f')]('length')['to'](_0x5ad982),_0x2d1151[_0x32a6('0x4f')](_0x32a6('0xf'))['to'](_0x5ad982,_0x32a6('0xf'),_0x249f9e=>'suggestion-'+_0x249f9e),this[_0x32a6('0x62')]['set'](_0x338ab6['id'],_0x2d1151));const _0x178b10=_0x4d7005['createCommentThreadController'](_0x338ab6[_0x32a6('0x61')],_0x5ad982),_0x424ebb=new _0x2467c3(_0x524191,_0x338ab6,_0x5ad982,_0x178b10),_0xd35b04=_0x338ab6[_0x32a6('0x65')]()['filter'](_0x5906cf=>_0x5906cf[_0x32a6('0xc')]);_0x5ad982['descriptionParts']=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x50'))[_0x32a6('0x15')]['getDescriptions'](_0xd35b04),this[_0x32a6('0x54')]['set'](_0x338ab6,_0x424ebb),this[_0x32a6('0x3c')][_0x32a6('0x7')](_0x5ad982,_0x424ebb);const _0x518531=_0x37126f[_0x32a6('0x22')]({'view':_0x2d1151,'target':()=>{const _0x3dd843=[],_0x1eb39b=_0x338ab6[_0x32a6('0x65')]()[_0x32a6('0x1a')](_0xf5a886=>_0xf5a886[_0x32a6('0xc')]);for(const _0x4f4ba4 of _0x1eb39b)_0x3dd843[_0x32a6('0x13')](..._0x4f4ba4[_0x32a6('0x2c')]());return _0x5733e2(_0x524191[_0x32a6('0x5')],_0x3dd843);},'type':()=>_0x32a6('0x5e')+_0x424ebb['view'][_0x32a6('0xf')]});_0x37126f['add'](_0x518531),_0x3156b2[_0x32a6('0xa')](_0x518531);}[_0x32a6('0x5f')](_0x5e79e1){const _0x229cd2=this[_0x32a6('0x0')][_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x30')),_0x5d7cf7=this[_0x32a6('0x54')][_0x32a6('0x35')](_0x5e79e1),_0x482841=_0x5d7cf7[_0x32a6('0x3d')],_0x37cbd7=_0x229cd2[_0x32a6('0xe')](_0x482841);_0x37cbd7&&_0x229cd2[_0x32a6('0x24')](_0x37cbd7),this[_0x32a6('0x54')][_0x32a6('0x23')](_0x5e79e1),this['_viewToController']['delete'](_0x482841),_0x5d7cf7[_0x32a6('0x36')]();}[_0x32a6('0x4')](_0x3c7971){if(!_0x3c7971[_0x32a6('0xc')]||!this['_suggestionToController'][_0x32a6('0x2b')](_0x3c7971))return;const _0x9bccb7=this[_0x32a6('0x0')][_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x50')),_0x16cc37=this[_0x32a6('0x54')][_0x32a6('0x35')](_0x3c7971),_0x339d5b=_0x3c7971[_0x32a6('0x65')]();_0x16cc37[_0x32a6('0x3d')][_0x32a6('0x2')]=_0x9bccb7[_0x32a6('0x15')][_0x32a6('0x5b')](_0x339d5b);}[_0x32a6('0x36')](){for(const _0x5e7807 of this[_0x32a6('0x54')]['keys']())this['_destroyController'](_0x5e7807);for(const _0x32e08b of this['_annotationViews']['values']())_0x32e08b[_0x32a6('0x4b')][_0x32a6('0x36')]();super[_0x32a6('0x36')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4725=['execute','destroy','view','_setPendingAction','get','stopListening','acceptSuggestion','_pendingAction','plugins','discardSuggestion','commands','PendingActions','_removePendingAction','canDiscard','bind','_editor','unbind','isDirty','_discardCommand','isEnabled','change:isDirty','canAccept','PENDING_ACTION_SUGGESTION','model','commentThreadController','canEditAt','listenTo','_acceptCommand','getRanges','remove','add','locale'];(function(_0x1f7aa0,_0x4725af){const _0x1fad2a=function(_0x82e83a){while(--_0x82e83a){_0x1f7aa0['push'](_0x1f7aa0['shift']());}};_0x1fad2a(++_0x4725af);}(_0x4725,0xe8));const _0x1fad=function(_0x1f7aa0,_0x4725af){_0x1f7aa0=_0x1f7aa0-0x0;let _0x1fad2a=_0x4725[_0x1f7aa0];return _0x1fad2a;};import{ObservableMixin as _0x5bbbab}from'ckeditor5/src/utils';import{getTranslation as _0x1ff2ab}from'../utils/common-translations';export default class qt extends _0x5bbbab(){constructor(_0x5475c0,_0x2028ac,_0x571a31,_0x4e7aa4){super(),this['model']=_0x2028ac,this['view']=_0x571a31,this[_0x1fad('0x10')]=_0x4e7aa4,this[_0x1fad('0x7')]=_0x5475c0,this['_acceptCommand']=_0x5475c0[_0x1fad('0x2')]['get'](_0x1fad('0x1e')),this[_0x1fad('0xa')]=_0x5475c0[_0x1fad('0x2')][_0x1fad('0x1c')](_0x1fad('0x1')),this[_0x1fad('0x1a')]['bind'](_0x1fad('0xb'))['to'](this[_0x1fad('0x13')],this['_discardCommand'],(_0x21020e,_0x4c9475)=>_0x21020e||_0x4c9475),this[_0x1fad('0x1a')][_0x1fad('0x6')](_0x1fad('0xd'))['to'](this[_0x1fad('0x13')],_0x1fad('0xb'),_0x306761=>_0x306761&&this[_0x1fad('0x7')][_0x1fad('0xf')]['canEditAt'](_0x2028ac['getRanges']())),this[_0x1fad('0x1a')][_0x1fad('0x6')](_0x1fad('0x5'))['to'](this['_discardCommand'],_0x1fad('0xb'),_0x1e2ad1=>_0x1e2ad1&&this['_editor']['model'][_0x1fad('0x11')](_0x2028ac[_0x1fad('0x14')]())),this[_0x1fad('0x1f')]=null,_0x571a31[_0x1fad('0x9')]&&this[_0x1fad('0x1b')](),this[_0x1fad('0x12')](_0x571a31,_0x1fad('0x1e'),()=>this[_0x1fad('0x1e')]()),this[_0x1fad('0x12')](_0x571a31,_0x1fad('0x1'),()=>this[_0x1fad('0x1')]()),this[_0x1fad('0x12')](_0x571a31,_0x1fad('0xc'),()=>{_0x571a31[_0x1fad('0x9')]?this[_0x1fad('0x1b')]():this['_removePendingAction']();});}[_0x1fad('0x1e')](){this[_0x1fad('0x13')][_0x1fad('0x18')](this[_0x1fad('0xf')]['id']);}[_0x1fad('0x1')](){this[_0x1fad('0xa')]['execute'](this[_0x1fad('0xf')]['id']);}[_0x1fad('0x19')](){this[_0x1fad('0x1a')][_0x1fad('0x8')]('isEnabled'),this[_0x1fad('0x1a')][_0x1fad('0x8')](_0x1fad('0xd')),this['view'][_0x1fad('0x8')](_0x1fad('0x5')),this[_0x1fad('0x1d')](),this[_0x1fad('0x10')][_0x1fad('0x19')](),this['_pendingAction']&&this['_removePendingAction']();}[_0x1fad('0x1b')](){const _0x44eb68=_0x1ff2ab(this[_0x1fad('0x7')][_0x1fad('0x17')],_0x1fad('0xe'));this['_pendingAction']=this[_0x1fad('0x7')][_0x1fad('0x0')][_0x1fad('0x1c')](_0x1fad('0x3'))[_0x1fad('0x16')](_0x44eb68);}[_0x1fad('0x4')](){null!==this[_0x1fad('0x1f')]&&this['_editor']['plugins']['get'](_0x1fad('0x3'))[_0x1fad('0x15')](this[_0x1fad('0x1f')]),this['_pendingAction']=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5722=['length','destroy','submit','authoredAt','descriptionParts','editor','disabledSubmit','canDiscard','updateComment','CommentView','isEnabled','value','isDirty','_createCommentThreadInputView','commentThreadInputView','isActive','fire','cancel','commentThread','_model','set','addComment','delegate','focus','locale','canAccept','bind','commentsListView','isReadOnly','_localUser','showInput','_config','commentInputView','removeComment'];(function(_0x5b3f6a,_0x57227b){const _0x499cb2=function(_0x3eef53){while(--_0x3eef53){_0x5b3f6a['push'](_0x5b3f6a['shift']());}};_0x499cb2(++_0x57227b);}(_0x5722,0x1e3));const _0x499c=function(_0x5b3f6a,_0x57227b){_0x5b3f6a=_0x5b3f6a-0x0;let _0x499cb2=_0x5722[_0x5b3f6a];return _0x499cb2;};import{View as _0x2215c4}from'ckeditor5/src/ui';export default class ii extends _0x2215c4{constructor(_0x5a7c05,_0x4a5f2e,_0x12cbf8,_0x1bc43c){super(_0x5a7c05),this[_0x499c('0x14')]=null,this[_0x499c('0x7')]=null,this['set'](_0x499c('0x8'),!0x1),this[_0x499c('0xd')](_0x499c('0x1e'),_0x4a5f2e[_0x499c('0x1e')]),this[_0x499c('0x13')]('authoredAt')['to'](_0x4a5f2e),this[_0x499c('0xd')](_0x499c('0x1f'),[]),this[_0x499c('0xd')](_0x499c('0x5'),!0x1),this[_0x499c('0xd')](_0x499c('0x3'),!0x1),this[_0x499c('0xd')](_0x499c('0x12'),!0x1),this[_0x499c('0xd')](_0x499c('0x0'),!0x1),this['_model']=_0x4a5f2e,this[_0x499c('0x16')]=_0x12cbf8,this[_0x499c('0x18')]=_0x1bc43c,_0x1bc43c['disableComments']?this[_0x499c('0xd')](_0x499c('0x1b'),0x1):this['_createCommentViews']();}[_0x499c('0x10')](){this['element']['focus']();}['destroy'](){this[_0x499c('0x14')]&&this['commentsListView'][_0x499c('0x1c')](),this['commentThreadInputView']&&this[_0x499c('0x7')][_0x499c('0x1c')](),super[_0x499c('0x1c')]();}['_createCommentViews'](){const {CommentsListView:_0x5f2c0d}=this[_0x499c('0x18')];this[_0x499c('0x14')]=new _0x5f2c0d(this[_0x499c('0x11')],this[_0x499c('0xc')][_0x499c('0xb')],Object['assign']({'CommentView':this[_0x499c('0x18')][_0x499c('0x2')]},this[_0x499c('0x18')])),this[_0x499c('0x14')]['delegate'](_0x499c('0x1a'))['to'](this),this['commentsListView'][_0x499c('0xf')](_0x499c('0x1'))['to'](this),this[_0x499c('0x14')][_0x499c('0x13')](_0x499c('0x8'))['to'](this),this[_0x499c('0xd')](_0x499c('0x1b'),this['commentsListView'][_0x499c('0x1b')]+0x1),this[_0x499c('0x13')](_0x499c('0x1b'))['to'](this[_0x499c('0x14')],_0x499c('0x1b'),_0x2f440c=>_0x2f440c+0x1),this[_0x499c('0x7')]=this[_0x499c('0x6')](),this['on']('removeComment',()=>this[_0x499c('0x10')]()),this['bind'](_0x499c('0x5'))['to'](this[_0x499c('0x14')],'hasDirtyComment',this[_0x499c('0x7')][_0x499c('0x19')],_0x499c('0x4'),(_0x1c0ebf,_0x3e4869)=>_0x1c0ebf||!!_0x3e4869);}[_0x499c('0x6')](){const {CommentThreadInputView:_0x5b8055}=this[_0x499c('0x18')],_0x595926=new _0x5b8055(this[_0x499c('0x11')],this[_0x499c('0x16')],this[_0x499c('0x18')]['editorConfig']),_0x1ef65e=_0x595926[_0x499c('0x19')];return _0x595926[_0x499c('0x13')](_0x499c('0x17'))['to'](this,'isActive',this['_model'][_0x499c('0xb')],_0x499c('0x15'),_0x1ef65e,'value',(_0x287c8f,_0x267ea8,_0x5910d3)=>!!_0x5910d3||_0x287c8f&&!_0x267ea8),_0x1ef65e['on'](_0x499c('0x1d'),(_0x56ab12,_0x300ca3)=>{this[_0x499c('0x9')](_0x499c('0xe'),_0x300ca3),_0x1ef65e[_0x499c('0x20')]['setData']('');}),_0x1ef65e['on'](_0x499c('0xa'),()=>this[_0x499c('0x10')]()),_0x1ef65e['bind'](_0x499c('0x21'))['to'](this[_0x499c('0xc')]['commentThread'],_0x499c('0x15')),_0x595926;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc442=['disableComments','ck-comment__external','ck-suggestion-wrapper','locale','innerHTML','children','<span\x20class=\x22ck-suggestion-type\x22>','\x22></span>','discardSuggestion','title','description','fire','getTemplate','descriptionParts','ck-annotation__info-time','ck-suggestion-','name','_model','importWord','acceptButton','join','EXTERNAL_AVATAR','ck-annotation__info','Accept\x20suggestion','</p>','EXTERNAL_IMPORT_WORD_SUGGESTION','</span>','cancel','@external','source','span','ck-suggestion','type','isExternal','getExternalSuggestionNote','render','commentThreadInputView','change:description','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__user','ck-annotation','Discard\x20suggestion','creator','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','.ck-annotation__content-wrapper','div','setTemplate','set','ck-suggestion__main','element','acceptSuggestion','\x22\x20title=\x22','discardButton','ck-suggestion__actions','createElement','check','push','userView','isActive','ck-annotation__info-name','commentsListView','attributes','time','ck-suggestion-wrapper--active','querySelector','bind','_createButton','value','isEnabled','execute','_config','canAccept','extendTemplate','_descriptionElement','authoredAt','color'];(function(_0x438851,_0xc4420c){const _0x5f0eda=function(_0x56ef18){while(--_0x56ef18){_0x438851['push'](_0x438851['shift']());}};_0x5f0eda(++_0xc4420c);}(_0xc442,0x17f));const _0x5f0e=function(_0x438851,_0xc4420c){_0x438851=_0x438851-0x0;let _0x5f0eda=_0xc442[_0x438851];return _0x5f0eda;};import{getTranslation as _0x4b3f98}from'../../utils/common-translations';import{default as _0x4357b8}from'./basesuggestionthreadview';import{ButtonView as _0x230ac1}from'ckeditor5/src/ui';import{icons as _0x4c4a76}from'ckeditor5/src/core';import{trimHtml as _0x3ba423,UserView as _0x4f6c26}from'ckeditor5-collaboration/src/collaboration-core';export default class zt extends _0x4357b8{constructor(_0x449a7f,_0x52cecc,_0x183c2b,_0x4a7c62){super(_0x449a7f,_0x52cecc,_0x183c2b,_0x4a7c62),this[_0x5f0e('0x2c')](_0x5f0e('0x1d'),''),this[_0x5f0e('0x3e')](_0x5f0e('0x1d'))['to'](this,_0x5f0e('0xa'),_0x45aefe=>_0x45aefe&&_0x45aefe[0x0]?_0x45aefe[0x0][_0x5f0e('0x1d')]:''),this[_0x5f0e('0x3e')](_0x5f0e('0x7'))['to'](this,_0x5f0e('0xa'),this,_0x5f0e('0x37'),(_0x5b3963,_0x5155fa)=>{let _0x17dd8e='';for(const _0x36804f of _0x5b3963)_0x17dd8e+='<p>'+ns(_0x36804f['content'],_0x36804f[_0x5f0e('0x48')])+_0x5f0e('0x15');return _0x5155fa?_0x17dd8e:_0x3ba423(_0x17dd8e,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x5f0e('0x10')]=this[_0x5f0e('0x3f')](_0x4b3f98(_0x449a7f,_0x5f0e('0x14')),_0x4c4a76[_0x5f0e('0x34')],'ck-suggestion--accept',_0x5f0e('0x2f'),'sw'),this['acceptButton'][_0x5f0e('0x3e')]('isEnabled')['to'](this,_0x5f0e('0x44')),this[_0x5f0e('0x31')]=this[_0x5f0e('0x3f')](_0x4b3f98(_0x449a7f,_0x5f0e('0x26')),_0x4c4a76[_0x5f0e('0x18')],'ck-suggestion--discard',_0x5f0e('0x5'),'sw'),this[_0x5f0e('0x31')]['bind'](_0x5f0e('0x41'))['to'](this,'canDiscard'),this[_0x5f0e('0x36')]=new _0x4f6c26(_0x449a7f,this[_0x5f0e('0xe')]['author'],this['getUserViewNotificationText']()),this['userView'][_0x5f0e('0x45')]({'attributes':{'class':['ck-suggestion__user',_0x5f0e('0x24')]}}),this[_0x5f0e('0x2b')](this[_0x5f0e('0x9')]());}[_0x5f0e('0x9')](){const _0x8c8bdc=this['bindTemplate'],_0x5d5ec5=[{'tag':_0x5f0e('0x2a'),'attributes':{'class':['ck-suggestion__info',_0x5f0e('0x13')]},'children':[{'tag':'span','children':[{'text':this[_0x5f0e('0x36')][_0x5f0e('0xd')]}],'attributes':{'class':['ck-suggestion__info-name',_0x5f0e('0x38')]}},{'tag':_0x5f0e('0x3b'),'attributes':{'datetime':_0x8c8bdc['to'](_0x5f0e('0x47')),'class':['ck-comment__info-time',_0x5f0e('0xb')]},'children':[{'text':_0x8c8bdc['to'](_0x5f0e('0x47'),_0x13eb79=>this[_0x5f0e('0x43')]['formatDateTime'](_0x13eb79))}]}]},{'tag':'div','attributes':{'class':[_0x5f0e('0x32'),'ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this[_0x5f0e('0xe')][_0x5f0e('0x1e')]&&_0x5d5ec5[_0x5f0e('0x35')]({'tag':_0x5f0e('0x2a'),'attributes':{'class':[_0x5f0e('0x4a')]},'children':[{'text':this[_0x5f0e('0x1f')]()}]});const _0x1a4c90={'tag':'div','attributes':{'class':[_0x5f0e('0x4b'),_0x8c8bdc['if'](_0x5f0e('0x37'),_0x5f0e('0x3c')),_0x8c8bdc['to'](_0x5f0e('0x1d'),_0x41c272=>_0x5f0e('0xc')+_0x41c272),this['_config'][_0x5f0e('0x49')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0x5f0e('0xe')]['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this[_0x5f0e('0xe')]['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x5f0e('0x1c'),_0x5f0e('0x25')]},'children':[this[_0x5f0e('0x36')],{'tag':_0x5f0e('0x2a'),'attributes':{'class':[_0x5f0e('0x2d'),'ck-annotation__main']},'children':_0x5d5ec5}]}]};return this[_0x5f0e('0x39')]&&this[_0x5f0e('0x21')]&&_0x1a4c90[_0x5f0e('0x2')][_0x5f0e('0x35')](this[_0x5f0e('0x39')],this[_0x5f0e('0x21')]),_0x1a4c90;}['render'](){super[_0x5f0e('0x20')](),this[_0x5f0e('0x46')]=this[_0x5f0e('0x2e')][_0x5f0e('0x3d')](_0x5f0e('0x29')),this[_0x5f0e('0x46')][_0x5f0e('0x1')]=this[_0x5f0e('0x7')],this['on'](_0x5f0e('0x22'),(_0x1229b6,_0x15ec60,_0x92291b)=>{this[_0x5f0e('0x46')][_0x5f0e('0x1')]=_0x92291b;});}[_0x5f0e('0x3f')](_0x4f8a4f,_0x433c5d,_0x3e770d,_0x2829c0,_0x281e88){const _0x202bdf=new _0x230ac1(this[_0x5f0e('0x0')]);return _0x202bdf[_0x5f0e('0x2c')]({'label':_0x4f8a4f,'icon':_0x433c5d,'tooltip':!0x0,'tooltipPosition':_0x281e88}),_0x202bdf['extendTemplate']({'attributes':{'class':_0x3e770d}}),_0x202bdf['on'](_0x5f0e('0x42'),()=>{this[_0x5f0e('0x8')](_0x2829c0,this['_model']['id']);}),_0x202bdf;}[_0x5f0e('0x1f')](){return _0x5f0e('0xf')===this[_0x5f0e('0xe')][_0x5f0e('0x3a')][_0x5f0e('0x19')]['source']?_0x4b3f98(this[_0x5f0e('0x0')],_0x5f0e('0x16')):_0x4b3f98(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this[_0x5f0e('0xe')][_0x5f0e('0x1e')]?_0x5f0e('0xf')===this['_model'][_0x5f0e('0x3a')]['@external'][_0x5f0e('0x1a')]?_0x4b3f98(this['locale'],_0x5f0e('0x23'),this[_0x5f0e('0xe')][_0x5f0e('0x27')][_0x5f0e('0xd')]):_0x4b3f98(this['locale'],_0x5f0e('0x12'),this[_0x5f0e('0xe')]['creator']['name']):null;}}function ns(_0x2b6d75,_0x27aa12){let _0x2fc55d='';return _0x2fc55d+=_0x2b6d75['split']('*')['map']((_0x171578,_0x490e2f)=>_0x490e2f%0x2!=0x0?_0x5f0e('0x3')+os(_0x171578)+_0x5f0e('0x17'):os(_0x171578))[_0x5f0e('0x11')](''),_0x27aa12&&(_0x2fc55d+=_0x5f0e('0x28')+_0x27aa12[_0x5f0e('0x40')]+_0x5f0e('0x30')+_0x27aa12[_0x5f0e('0x6')]+_0x5f0e('0x4')),_0x2fc55d;}function os(_0x1455bd){const _0x3600c6=document[_0x5f0e('0x33')](_0x5f0e('0x1b'));return _0x3600c6['innerText']=_0x1455bd,_0x3600c6[_0x5f0e('0x1')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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;}}
|
|
23
|
+
export function getTranslation(_0x264eae,_0x2dff1a,_0x146380){const t=_0x264eae['t'];switch(_0x2dff1a){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',_0x146380);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x146380);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x146380);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x146380);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x146380);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',_0x146380);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x146380);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',_0x146380);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x146380);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x146380);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x146380);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x146380);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x146380);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x146380);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x146380);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x146380);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x146380);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x146380);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x146380);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x146380);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x146380);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x146380);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'},_0x146380);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x146380);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x146380);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x146380);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x146380);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x146380);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'},_0x146380);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x146380);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x146380);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x146380);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x146380);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'},_0x146380);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x146380);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'},_0x146380);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'},_0x146380);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x146380);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'},_0x146380);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x146380);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'},_0x146380);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x146380);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x146380);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'},_0x146380);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'},_0x146380);default:return _0x2dff1a;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45b3=['isInContent','value','add','type','splice','\x20[color\x20','isArray','isTouching','schema','color','replace','join','next','getMarkers','content','isCollapsed','sort','createPositionBefore','from','createRange','start','createPositionAfter','end','deletion','map','getRanges','getRange'];(function(_0x92763a,_0x45b38d){const _0x2622fd=function(_0x5949ec){while(--_0x5949ec){_0x92763a['push'](_0x92763a['shift']());}};_0x2622fd(++_0x45b38d);}(_0x45b3,0x8a));const _0x2622=function(_0x92763a,_0x45b38d){_0x92763a=_0x92763a-0x0;let _0x2622fd=_0x45b3[_0x92763a];return _0x2622fd;};export function normalizeDescription(_0x4227c3){return Array[_0x2622('0x3')](_0x4227c3)||(_0x4227c3=[_0x4227c3]),_0x4227c3[_0x2622('0x15')](_0x3206b7=>{const _0x3fedfd=_0x3206b7[_0x2622('0xb')][_0x2622('0x7')](/\*/g,''),_0x1c88d6=_0x3206b7[_0x2622('0x6')]?_0x2622('0x2')+_0x3206b7[_0x2622('0x6')][_0x2622('0x19')]+']':'';return'['+_0x3206b7['type']+']\x20'+_0x3fedfd+_0x1c88d6;})[_0x2622('0x8')](';\x20');}export function sortSuggestions(_0x52956c){return _0x52956c[_0x2622('0xd')]((_0x2e534d,_0x575abd)=>'deletion'==_0x2e534d['type']&&_0x2622('0x14')!=_0x575abd[_0x2622('0x0')]?-0x1:_0x2622('0x14')!=_0x2e534d[_0x2622('0x0')]&&_0x2622('0x14')==_0x575abd[_0x2622('0x0')]?0x1:0x0);}export function getSelectedSuggestions(_0x39b3a5,_0x32ddd9){const _0x284ff0=Array[_0x2622('0xf')](_0x39b3a5[_0x2622('0x16')]()),_0x4e724f=new Set();for(const _0xf1af33 of _0x32ddd9)if(_0xf1af33[_0x2622('0x18')])for(const _0xf61df8 of _0x284ff0)for(const _0x527941 of _0xf1af33[_0x2622('0xa')]()){const _0x3c3b51=_0x527941[_0x2622('0x17')]();(_0xf61df8['isIntersecting'](_0x3c3b51)||_0x39b3a5[_0x2622('0xc')]&&!_0xf1af33['isMultiRange']&&_0xf1af33[_0x2622('0x9')]&&_0x3c3b51[_0x2622('0x13')][_0x2622('0x4')](_0xf61df8[_0x2622('0x11')]))&&_0x4e724f[_0x2622('0x1a')](_0xf1af33);}return _0x4e724f;}export function getRangesOfBlockGroups(_0x15dd21,_0x1316a4){let _0x4f1f3c,_0x42e7b9=0x0;const _0x526015=[],_0x1167b0=_0x1316a4[_0x2622('0x5')];for(;_0x42e7b9<_0x15dd21['length'];){const _0x569b9c=_0x15dd21[_0x42e7b9],_0x467c3f=_0x15dd21[_0x42e7b9+0x1];_0x4f1f3c||(_0x4f1f3c=_0x1316a4[_0x2622('0xe')](_0x569b9c)),co(_0x1316a4,_0x569b9c,_0x467c3f)||(_0x526015['push'](_0x1316a4[_0x2622('0x10')](_0x4f1f3c,_0x1167b0['isObject'](_0x569b9c)?_0x1316a4['createPositionAfter'](_0x569b9c):_0x1316a4['createPositionAt'](_0x569b9c,'end'))),_0x4f1f3c=null),_0x42e7b9++;}return _0x526015;}function co(_0x843ba6,_0x57aea9,_0x3d77e8){if(!_0x3d77e8)return!0x1;const _0x33ddd9=_0x843ba6[_0x2622('0x12')](_0x57aea9),_0x4954ae=_0x843ba6['createPositionBefore'](_0x3d77e8);return _0x33ddd9['isTouching'](_0x4954ae);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x3fdb3,_0x15352a,_0x16fad5){for(;_0x16fad5['length'];){const _0x5cbf64=_0x16fad5[_0x2622('0x1')](0x0,0x64);_0x3fdb3['change'](()=>{for(const _0x58da4b of _0x5cbf64)_0x58da4b['isInContent']&&_0x15352a['execute'](_0x58da4b['id']);});}}
|