@ckeditor/ckeditor5-track-changes 36.0.0 → 36.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cdc=['model','commands','writer','showSuggestionHighlights','locale','toViewElement','ck-suggestion-marker--active','FORMAT_REGULAR_ROW','getSelectionAffectedTableCells','TableEditing','getRowIndexes','childCount','commandParams','_descriptionFactory','commandName','removeMarker:suggestion','editing','getCellLocation','selection','TrackChangesEditing','data-suggestion','nodeBefore','parent','highest','table','_acceptFormatSuggestionCallbackFactory','afterInit','formatBlock','_suggestionFactory','has','setTableColumnHeader','document','consumable','index','first','createRange','last','createPositionBefore','markerName','removeAttribute','unbindElementFromMarkerName','item','getChild','cell','forceValue','getColumnIndexes','addClass','setTableRowHeader','nodeAfter','start','*Format:*\x20%0','from','_splitMarkerName','markBlockFormat','findAncestor','TableUtils','options','mapper','change','headingRows','markerRange','ck-suggestion-marker-','data','addMarker:suggestion','downcastDispatcher','consume','removeClass','accept','requires','registerCustomCallback','FORMAT_HEADER_COLUMN','createTableWalker','plugins','get','format','getAttribute','end','enableCommand','createPositionAfter'];(function(_0x5da4d4,_0x3cdc69){const _0x59adae=function(_0xca8152){while(--_0xca8152){_0x5da4d4['push'](_0x5da4d4['shift']());}};_0x59adae(++_0x3cdc69);}(_0x3cdc,0x1ed));const _0x59ad=function(_0x5da4d4,_0x3cdc69){_0x5da4d4=_0x5da4d4-0x0;let _0x59adae=_0x3cdc[_0x5da4d4];return _0x59adae;};import{Plugin as _0x23c83d}from'ckeditor5/src/core';import _0x24665a from'./table';import{getTranslation as _0x30453a}from'../utils/common-translations';export default class kt extends _0x23c83d{static get[_0x59ad('0x31')](){return[_0x24665a];}[_0x59ad('0x7')](){const _0x13f52d=this['editor'];if(!_0x13f52d[_0x59ad('0x35')][_0x59ad('0xa')](_0x59ad('0x45')))return;const _0x345d82=_0x13f52d[_0x59ad('0x40')],_0x3b93d0=_0x13f52d['plugins']['get'](_0x59ad('0x0')),_0x5087c3=_0x13f52d[_0x59ad('0x35')][_0x59ad('0x36')](_0x59ad('0x24')),_0x4a3a8d=_0x13f52d[_0x59ad('0x35')][_0x59ad('0x36')](_0x24665a);function _0x10e92b({showActiveMarker:_0x3b6187=!0x0,setDataAttribute:_0xf90456=!0x0}={}){return(_0x34188b,_0x55bfe7,_0x710d68)=>{const {type:_0xd7411,id:_0x4fd88c}=_0x3b93d0[_0x59ad('0x21')](_0x55bfe7[_0x59ad('0x13')]),_0x3607bb=_0x3b93d0['getSuggestion'](_0x4fd88c);if(!_0x3607bb[_0x59ad('0x2b')]||_0x59ad('0xb')!=_0x3607bb[_0x59ad('0x2b')][_0x59ad('0x4a')])return;if(_0x55bfe7[_0x59ad('0x16')])return void _0x34188b['stop']();if(!_0x710d68[_0x59ad('0xd')][_0x59ad('0x2e')](_0x55bfe7['markerRange'],_0x34188b['name']))return;const _0xb20f3b=_0x55bfe7[_0x59ad('0x29')][_0x59ad('0x1e')][_0x59ad('0x1d')],_0x51adeb=_0x55bfe7[_0x59ad('0x29')][_0x59ad('0x39')][_0x59ad('0x2')],_0x5a7d86=_0xb20f3b[_0x59ad('0x3')][_0x59ad('0x3')],{column:_0x399e44}=_0x5087c3[_0x59ad('0x4d')](_0xb20f3b),{column:_0x304bbd}=_0x5087c3[_0x59ad('0x4d')](_0x51adeb);for(let _0x58baea=_0x399e44;_0x58baea<=_0x304bbd;_0x58baea++){const _0x1bd00a=_0x5087c3[_0x59ad('0x34')](_0x5a7d86,{'column':_0x58baea,'includeAllSlots':!0x1});for(const _0x39e73a of _0x1bd00a){const _0x210e0e=_0x39e73a[_0x59ad('0x18')],_0xa0cb16=_0x710d68[_0x59ad('0x26')][_0x59ad('0x41')](_0x210e0e);_0x710d68[_0x59ad('0x3e')]['addClass'](_0x59ad('0x2a')+_0xd7411,_0xa0cb16),_0xf90456&&_0x710d68[_0x59ad('0x3e')]['setAttribute'](_0x59ad('0x1'),_0x4fd88c,_0xa0cb16),_0x710d68['mapper']['bindElementToMarker'](_0xa0cb16,_0x55bfe7[_0x59ad('0x13')]),_0x3b6187&&(_0x3b93d0['activeMarkers']['includes'](_0x55bfe7['markerName'])?_0x710d68[_0x59ad('0x3e')][_0x59ad('0x1b')](_0x59ad('0x42'),_0xa0cb16):_0x710d68[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x42'),_0xa0cb16));}}};}_0x3b93d0['enableCommand']('setTableRowHeader',(_0x24b98e,_0x6dbf80)=>{const _0x2fa6e7=_0x5087c3[_0x59ad('0x44')](_0x13f52d[_0x59ad('0x3c')][_0x59ad('0xc')][_0x59ad('0x4e')]),_0xcb5de7=_0x5087c3[_0x59ad('0x46')](_0x2fa6e7),_0x124b0a=_0x2fa6e7[0x0]['findAncestor']('table'),_0x51239a=_0x124b0a[_0x59ad('0x38')](_0x59ad('0x28'))||0x0,_0x3ff18f=_0x6dbf80&&null!==_0x6dbf80['forceValue']?_0x6dbf80[_0x59ad('0x19')]:!_0x13f52d[_0x59ad('0x3d')]['get'](_0x59ad('0x1c'))['value'],_0x2a288a=_0x3ff18f?_0xcb5de7[_0x59ad('0x11')]:_0xcb5de7[_0x59ad('0xf')],_0x5a9f9b=_0x124b0a[_0x59ad('0x17')](_0x2a288a);let _0x5731ed;if(_0x3ff18f){const _0x31a04b=_0x124b0a[_0x59ad('0x17')](_0x51239a);if(_0x5a9f9b['index']<_0x31a04b[_0x59ad('0xe')])return;_0x5731ed=_0x13f52d[_0x59ad('0x3c')]['createRange'](_0x13f52d['model'][_0x59ad('0x12')](_0x31a04b[_0x59ad('0x17')](0x0)),_0x13f52d[_0x59ad('0x3c')]['createPositionAfter'](_0x5a9f9b[_0x59ad('0x17')](_0x5a9f9b[_0x59ad('0x47')]-0x1)));}else{const _0x516654=_0x124b0a[_0x59ad('0x17')](_0x51239a-0x1);if(!_0x516654)return;_0x5731ed=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x12')](_0x5a9f9b[_0x59ad('0x17')](0x0)),_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x3b')](_0x516654[_0x59ad('0x17')](_0x516654[_0x59ad('0x47')]-0x1)));}_0x13f52d[_0x59ad('0x3c')]['change'](()=>{_0x3b93d0[_0x59ad('0x22')](_0x5731ed,{'commandName':_0x59ad('0x1c'),'commandParams':[{'forceValue':_0x3ff18f}]},[],_0x59ad('0x1c'));});}),_0x3b93d0[_0x59ad('0x3a')]('setTableColumnHeader',(_0x1270b2,_0x536b24)=>{const _0x5096ef=_0x13f52d['plugins'][_0x59ad('0x36')](_0x59ad('0x24')),_0x36fef1=_0x5096ef['getSelectionAffectedTableCells'](_0x13f52d['model']['document'][_0x59ad('0x4e')]),_0x4915dc=_0x5096ef[_0x59ad('0x1a')](_0x36fef1),_0x38473b=_0x36fef1[0x0][_0x59ad('0x23')](_0x59ad('0x5')),_0x3a01a6=_0x38473b[_0x59ad('0x38')]('headingColumns')||0x0,_0x5a2141=_0x536b24&&null!==_0x536b24['forceValue']?_0x536b24[_0x59ad('0x19')]:!_0x13f52d[_0x59ad('0x3d')][_0x59ad('0x36')](_0x59ad('0xb'))['value'];let _0xf4f402;const _0x44fe3a=_0x38473b[_0x59ad('0x17')](0x0),_0x2201d2=_0x5a2141?_0x4915dc[_0x59ad('0x11')]:_0x4915dc[_0x59ad('0xf')],_0x25f5f8=_0x5096ef[_0x59ad('0x34')](_0x38473b,{'startRow':0x0,'column':_0x2201d2,'includeAllSlots':!0x1}),_0xb2d6dc=Array[_0x59ad('0x20')](_0x25f5f8)[0x0][_0x59ad('0x18')];if(_0x5a2141){const _0x6b7d1d=_0x44fe3a[_0x59ad('0x17')](_0x3a01a6);if(_0xb2d6dc['isBefore'](_0x6b7d1d))return;_0xf4f402=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d['model'][_0x59ad('0x12')](_0x6b7d1d),_0x13f52d[_0x59ad('0x3c')]['createPositionAfter'](_0xb2d6dc));}else{const _0x4833d5=_0x44fe3a[_0x59ad('0x17')](_0x3a01a6-0x1);if(!_0x4833d5)return;_0xf4f402=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d['model']['createPositionBefore'](_0xb2d6dc),_0x13f52d['model'][_0x59ad('0x3b')](_0x4833d5));}_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x27')](()=>{_0x3b93d0['markBlockFormat'](_0xf4f402,{'commandName':_0x59ad('0xb'),'commandParams':[{'forceValue':_0x5a2141}]},[],'setTableColumnHeader');});}),_0x13f52d[_0x59ad('0x4c')][_0x59ad('0x2d')]['on']('addMarker:suggestion',_0x10e92b(),{'priority':_0x59ad('0x4')}),_0x13f52d[_0x59ad('0x2b')]['downcastDispatcher']['on'](_0x59ad('0x2c'),(_0x16718b,_0x5703c9,_0x23d265)=>{_0x23d265[_0x59ad('0x25')][_0x59ad('0x3f')]&&_0x10e92b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16718b,_0x5703c9,_0x23d265);},{'priority':_0x59ad('0x4')}),_0x13f52d[_0x59ad('0x4c')][_0x59ad('0x2d')]['on'](_0x59ad('0x4b'),(_0x3e108c,_0x1458d4,_0x15f012)=>{const {type:_0x23b8b3,id:_0x37fbb3}=_0x3b93d0['_splitMarkerName'](_0x1458d4['markerName']),_0x4321a9=_0x3b93d0['getSuggestion'](_0x37fbb3);if(!_0x4321a9[_0x59ad('0x2b')]||_0x59ad('0xb')!=_0x4321a9[_0x59ad('0x2b')][_0x59ad('0x4a')])return;const _0x55386d=_0x15f012[_0x59ad('0x26')]['markerNameToElements'](_0x1458d4[_0x59ad('0x13')]);if(_0x55386d)for(const _0x44e75e of _0x55386d)_0x15f012[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x2a')+_0x23b8b3,_0x44e75e),_0x15f012[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x42'),_0x44e75e),_0x15f012[_0x59ad('0x3e')][_0x59ad('0x14')](_0x59ad('0x1'),_0x44e75e),_0x15f012[_0x59ad('0x26')][_0x59ad('0x15')](_0x44e75e,_0x1458d4[_0x59ad('0x13')]);},{'priority':_0x59ad('0x4')}),_0x3b93d0[_0x59ad('0x49')]['registerDescriptionCallback'](_0xbb0653=>{const {data:_0x2149c0}=_0xbb0653;if(_0x2149c0){if(_0x59ad('0x1c')==_0x2149c0[_0x59ad('0x4a')]){const _0x3475f5=_0x2149c0[_0x59ad('0x48')][0x0]['forceValue'];return _0x2f357e(_0x30453a(_0x345d82,_0x3475f5?'FORMAT_HEADER_ROW':_0x59ad('0x43')));}if(_0x59ad('0xb')==_0x2149c0[_0x59ad('0x4a')]){const _0x4c96e7=_0x2149c0[_0x59ad('0x48')][0x0][_0x59ad('0x19')];return _0x2f357e(_0x30453a(_0x345d82,_0x4c96e7?_0x59ad('0x33'):'FORMAT_REGULAR_COLUMN'));}}function _0x2f357e(_0x22f8a5){return{'type':_0x59ad('0x37'),'content':_0x30453a(_0x345d82,_0x59ad('0x1f'),_0x22f8a5)};}});const _0x514528=_0x4a3a8d[_0x59ad('0x6')]();_0x3b93d0['_suggestionFactory']['registerCustomCallback'](_0x59ad('0x8'),_0x59ad('0x1c'),'accept',_0x514528),_0x3b93d0[_0x59ad('0x9')][_0x59ad('0x32')](_0x59ad('0x8'),_0x59ad('0xb'),_0x59ad('0x30'),_0x514528);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a6f=['_suggestionFactory','element','selection','splitTableCellVertically','mergeTableCells','*Split\x20cell:*\x20horizontally','model','getAncestors','length','filter','getFirstPosition','getRanges','isEnabled','mergeTableCellDown','detach','insertion','from','value','registerCustomCallback','commands','getSelectionAffectedTableCells','deletion','has','plugins','containsRange','stop','splitTableCellHorizontally','isInContent','return','subType','document','TableEditing','*Merge\x20cells*','push','format','formatBlock','_acceptFormatSuggestionCallbackFactory','_areMergableCells','low','mergeTableCellUp','TableUtils','*Split\x20cell:*\x20vertically','author','getSuggestions','createRangeOn','_tablePostFixingSubtypes','execute','mergeTableCellRight','tableCell','markMultiRangeBlockFormat','findAncestor','commandName','change','requires','enableCommand','createTableWalker','setSelection','mergeTableCellLeft','registerDescriptionCallback','_areSelectedCellsMergable','size','type','editor','locale','highest','getCellLocation','find','trackChanges','_descriptionFactory','set:isEnabled','_isForcedDefaultExecutionBlock','add','accept','rootName','map','TrackChangesEditing','refresh','forceDefaultExecution','get'];(function(_0x24ae89,_0x4a6f49){const _0x5e584b=function(_0x3be160){while(--_0x3be160){_0x24ae89['push'](_0x24ae89['shift']());}};_0x5e584b(++_0x4a6f49);}(_0x4a6f,0xfe));const _0x5e58=function(_0x24ae89,_0x4a6f49){_0x24ae89=_0x24ae89-0x0;let _0x5e584b=_0x4a6f[_0x24ae89];return _0x5e584b;};import{Plugin as _0x23d60f}from'ckeditor5/src/core';import _0x4cfd16 from'./table';import{LiveRange as _0x139f32}from'ckeditor5/src/engine';import{getTranslation as _0x20df93}from'../utils/common-translations';export default class pt extends _0x23d60f{static get[_0x5e58('0x24')](){return[_0x4cfd16];}['afterInit'](){const _0x376557=this['editor'],_0x2892e3=_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')],_0x2053e4=_0x376557[_0x5e58('0x2e')];if(!_0x376557[_0x5e58('0x6')]['has'](_0x5e58('0xe')))return;const _0x388f1f=_0x376557['plugins'][_0x5e58('0x3d')](_0x5e58('0x3a')),_0x484bbb=_0x376557[_0x5e58('0x6')][_0x5e58('0x3d')](_0x5e58('0x17')),_0x542b50=_0x376557[_0x5e58('0x6')][_0x5e58('0x3d')](_0x4cfd16);_0x542b50[_0x5e58('0x1c')][_0x5e58('0x10')](_0x5e58('0x42')),_0x388f1f[_0x5e58('0x25')]('mergeTableCells',()=>{const _0x36e511=_0x484bbb[_0x5e58('0x3')](_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')]);_0x376557[_0x5e58('0x44')][_0x5e58('0x23')](()=>{_0x388f1f['markMultiRangeBlockFormat'](_0x36e511,{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e58('0x42'));});}),_0x376557['commands'][_0x5e58('0x3d')](_0x5e58('0x42'))['on'](_0x5e58('0x1d'),(_0x3431f9,_0x4cfa7a)=>{_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x5e58('0x32'))[_0x5e58('0x0')]&&(_0x4cfa7a[_0x5e58('0x46')]>0x0&&_0x4cfa7a[_0x4cfa7a['length']-0x1]&&_0x4cfa7a[_0x4cfa7a[_0x5e58('0x46')]-0x1][_0x5e58('0x3c')]||_0x388f1f[_0x5e58('0x35')]||this[_0x5e58('0x2a')]()||_0x3431f9[_0x5e58('0x8')]());},{'priority':_0x5e58('0x2f')});for(const _0x1ab8ed of[_0x5e58('0x16'),'mergeTableCellRight',_0x5e58('0x4b'),'mergeTableCellLeft']){const _0x5e9474=_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x1ab8ed);_0x388f1f[_0x5e58('0x25')](_0x1ab8ed,()=>{const _0x26155a=_0x376557[_0x5e58('0x44')][_0x5e58('0xd')]['selection'][_0x5e58('0x48')]()['getAncestors']()[_0x5e58('0x31')](_0x3e72fd=>_0x3e72fd['is'](_0x5e58('0x3f'),_0x5e58('0x1f'))),_0x3cbbad=_0x5e9474[_0x5e58('0x0')];_0x376557[_0x5e58('0x44')]['change'](()=>{_0x388f1f[_0x5e58('0x20')]([_0x26155a,_0x3cbbad],{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e58('0x42'));});});}for(const _0x40ddc6 of[_0x5e58('0x41'),'splitTableCellHorizontally']){const _0x257a71=_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x40ddc6);_0x388f1f['enableCommand'](_0x40ddc6,()=>{const _0x499b58=_0x484bbb[_0x5e58('0x3')](_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')])[0x0],_0x3ac638=_0x499b58[_0x5e58('0x21')]('table'),{column:_0x4b3ffd,row:_0x522de5}=_0x484bbb[_0x5e58('0x30')](_0x499b58);let _0x176f74=[];if('horizontally'==_0x257a71['direction']){const _0x21d53a=_0x484bbb[_0x5e58('0x26')](_0x3ac638,{'startRow':_0x522de5,'endRow':_0x522de5,'includeAllSlots':!0x0});_0x176f74=Array[_0x5e58('0x4e')](_0x21d53a)['map'](_0xda637f=>_0xda637f['cell']);}else{const _0x160997=_0x484bbb['createTableWalker'](_0x3ac638,{'column':_0x4b3ffd,'includeAllSlots':!0x0});_0x176f74=Array[_0x5e58('0x4e')](_0x160997)[_0x5e58('0x39')](_0x2109d9=>_0x2109d9['cell']);}_0x376557[_0x5e58('0x44')][_0x5e58('0x23')](_0x15cc27=>{_0x388f1f['markBlockFormat'](_0x15cc27[_0x5e58('0x1b')](_0x499b58),{'commandName':_0x40ddc6,'commandParams':[]},_0x176f74,_0x40ddc6);});});}_0x388f1f['_descriptionFactory'][_0x5e58('0x29')](_0x5119f7=>{const {data:_0x40c3ea}=_0x5119f7;if(_0x40c3ea)return _0x5e58('0x42')==_0x40c3ea['commandName']?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0xf'))}:void 0x0;}),_0x388f1f[_0x5e58('0x33')][_0x5e58('0x29')](_0x53fd1c=>{const {data:_0x1b4031}=_0x53fd1c;if(_0x1b4031)return _0x5e58('0x41')==_0x1b4031[_0x5e58('0x22')]?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0x18'))}:_0x5e58('0x9')==_0x1b4031[_0x5e58('0x22')]?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0x43'))}:void 0x0;});const _0x2dc878=_0x542b50[_0x5e58('0x13')]();for(const _0x5861d8 of[_0x5e58('0x16'),_0x5e58('0x1e'),_0x5e58('0x4b'),_0x5e58('0x28')])_0x388f1f[_0x5e58('0x3e')]['registerCustomCallback'](_0x5e58('0x12'),_0x5861d8,_0x5e58('0x37'),_0x2dc878);for(const _0x19a9bf of[_0x5e58('0x41'),_0x5e58('0x9')])_0x388f1f[_0x5e58('0x3e')][_0x5e58('0x1')]('formatBlock',_0x19a9bf,'accept',_0x2dc878);_0x388f1f[_0x5e58('0x3e')][_0x5e58('0x1')]('formatBlock',_0x5e58('0x42'),_0x5e58('0x37'),_0x1a819f=>{_0x376557['model'][_0x5e58('0x23')](_0xd4ec68=>{const _0x3022f5=Array[_0x5e58('0x4e')](_0x2892e3['getRanges']())[_0x5e58('0x39')](_0x4852ff=>_0x139f32['fromRange'](_0x4852ff));_0xd4ec68[_0x5e58('0x27')](_0x1a819f),_0x376557['commands']['get'](_0x5e58('0x42'))[_0x5e58('0x3b')](),_0x376557[_0x5e58('0x1d')](_0x5e58('0x42'),{'forceDefaultExecution':!0x0});const _0x207275=_0x3022f5[_0x5e58('0x47')](_0x4d1fb5=>'$graveyard'!=_0x4d1fb5['root'][_0x5e58('0x38')]);_0x207275[_0x5e58('0x46')]>0x0&&_0xd4ec68[_0x5e58('0x27')](_0x207275);for(const _0x322272 of _0x3022f5)_0x322272[_0x5e58('0x4c')]();});});for(const _0x397ef1 of[_0x5e58('0x16'),_0x5e58('0x4b'),_0x5e58('0x28'),'mergeTableCellRight']){const _0x3acd6c=_0x376557[_0x5e58('0x2')]['get'](_0x397ef1);_0x3acd6c['on'](_0x5e58('0x34'),(_0x255e8c,_0x1211a3,_0x19145a)=>{if(_0x19145a){const _0xe4a7ce=_0x376557[_0x5e58('0x44')]['document']['selection'][_0x5e58('0x48')]()[_0x5e58('0x45')]()[_0x5e58('0x31')](_0x446c19=>_0x446c19['is'](_0x5e58('0x3f'),_0x5e58('0x1f')));this[_0x5e58('0x14')](_0x3acd6c[_0x5e58('0x0')],_0xe4a7ce)||(_0x255e8c[_0x5e58('0xb')]=!0x1,_0x255e8c['stop']());}},{'priority':_0x5e58('0x15')});}}[_0x5e58('0x2a')](){const _0x2646e8=this[_0x5e58('0x2d')][_0x5e58('0x2')]['get'](_0x5e58('0x42')),_0x3d5e28=this[_0x5e58('0x2d')][_0x5e58('0x6')]['get'](_0x5e58('0x17'));if(!_0x2646e8[_0x5e58('0x4a')])return!0x1;const _0x2169fd=_0x3d5e28[_0x5e58('0x3')](this['editor'][_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')]);for(const _0x323cd5 of _0x2169fd)for(const _0x3265b2 of _0x2169fd)if(_0x323cd5!=_0x3265b2&&!this['_areMergableCells'](_0x323cd5,_0x3265b2))return!0x1;return!0x0;}[_0x5e58('0x14')](_0x2d751a,_0x1f2a67){const _0x238d4a=this[_0x5e58('0x2d')][_0x5e58('0x6')]['get'](_0x5e58('0x3a')),_0x51a8db=this[_0x5e58('0x2d')]['model'][_0x5e58('0x1b')](_0x2d751a),_0x5a7da6=this[_0x5e58('0x2d')][_0x5e58('0x44')][_0x5e58('0x1b')](_0x1f2a67),_0x261ca8=new Set(),_0x3a87a4=new Set();for(const _0x940ffd of _0x238d4a[_0x5e58('0x1a')]())if((_0x5e58('0x4d')==_0x940ffd['type']||_0x5e58('0x4')==_0x940ffd['type']||_0x5e58('0x42')==_0x940ffd[_0x5e58('0xc')])&&_0x940ffd[_0x5e58('0xa')])for(const _0x14cf83 of _0x940ffd[_0x5e58('0x49')]())_0x14cf83['containsRange'](_0x51a8db,!0x0)&&_0x261ca8[_0x5e58('0x36')](_0x940ffd[_0x5e58('0x2c')]+':'+_0x940ffd['author']['id']),_0x14cf83[_0x5e58('0x7')](_0x5a7da6,!0x0)&&_0x3a87a4['add'](_0x940ffd[_0x5e58('0x2c')]+':'+_0x940ffd[_0x5e58('0x19')]['id']);if(_0x261ca8[_0x5e58('0x2b')]!=_0x3a87a4[_0x5e58('0x2b')])return!0x1;for(const _0x1417d4 of _0x261ca8)if(!_0x3a87a4[_0x5e58('0x5')](_0x1417d4))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdaf2=['tableCellHeight','handleDiscardAction','_descriptionFactory','enableCommand','registerCustomCallback','has','tableProperties','_suggestionFactory','document','tableCellProperties','TrackChangesTableProperties','*Format:*\x20change\x20table\x20properties','findAncestor','discard','tableCellPadding','data','subType','registerDescriptionCallback','table','tableWidth','get','*Format:*\x20change\x20table\x20cell\x20properties','getSelectionAffectedTableCells','TrackChangesEditing','TableUtils','tableBorderStyle','locale','editor','afterInit','tableBackgroundColor','tableCellBorderColor','formatBlock','_getSuggestion','plugins','getSuggestions','tableCellBorderStyle','getContainedElement','handleSuggestionDescription','tableCellHorizontalAlignment','change','getSuggestionCallback','accept','tableCellVerticalAlignment','enqueueChange','removeAttribute','batch','tableBorderWidth','selection','commandParams','tableCellBorderWidth','join','start','_handlePropertyChange','pluginName','format','model'];(function(_0xaa8fef,_0xdaf2a){const _0x4c2759=function(_0x49cabf){while(--_0x49cabf){_0xaa8fef['push'](_0xaa8fef['shift']());}};_0x4c2759(++_0xdaf2a);}(_0xdaf2,0x90));const _0x4c27=function(_0xaa8fef,_0xdaf2a){_0xaa8fef=_0xaa8fef-0x0;let _0x4c2759=_0xdaf2[_0xaa8fef];return _0x4c2759;};import{Plugin as _0x3e12c3}from'ckeditor5/src/core';import{getTranslation as _0x587493}from'../utils/common-translations';export default class At extends _0x3e12c3{static get[_0x4c27('0x15')](){return _0x4c27('0x22');}[_0x4c27('0x34')](){const _0x183051=this[_0x4c27('0x33')][_0x4c27('0x1')][_0x4c27('0x2c')]('TrackChangesEditing');if(this[_0x4c27('0x33')]['plugins'][_0x4c27('0x1d')]('TablePropertiesEditing')){this[_0x4c27('0x1e')]=['tableBorderColor',_0x4c27('0x31'),_0x4c27('0xe'),'tableAlignment',_0x4c27('0x2b'),'tableHeight',_0x4c27('0x35')];for(const _0x2a6797 of this[_0x4c27('0x1e')])_0x183051[_0x4c27('0x1b')](_0x2a6797,(_0x3355bc,_0x4503fb)=>{const _0x1307c5=this[_0x4c27('0x33')]['model'][_0x4c27('0x20')][_0x4c27('0xf')]['getFirstPosition']()[_0x4c27('0x24')](_0x4c27('0x2a'));this[_0x4c27('0x14')](_0x2a6797,[_0x1307c5],this[_0x4c27('0x1e')],_0x4c27('0x1e'),_0x3355bc,_0x4503fb);});_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')]('formatBlock',_0x4c27('0x1e'),_0x4c27('0x9'),_0x183051[_0x4c27('0x1f')][_0x4c27('0x8')]('formatBlock',null,_0x4c27('0x25'))),_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')](_0x4c27('0x37'),_0x4c27('0x1e'),_0x4c27('0x25'),(_0x2a65e6,_0x361c41)=>this[_0x4c27('0x19')](this['tableProperties'],_0x2a65e6,_0x361c41)),_0x183051['_suggestionFactory'][_0x4c27('0x1c')](_0x4c27('0x37'),_0x4c27('0x1e'),_0x4c27('0x12'),()=>!0x1);}if(this[_0x4c27('0x33')][_0x4c27('0x1')]['has']('TableCellPropertiesEditing')){this[_0x4c27('0x21')]=[_0x4c27('0x36'),_0x4c27('0x3'),_0x4c27('0x11'),_0x4c27('0x26'),'tableCellWidth',_0x4c27('0x18'),'tableCellBackgroundColor',_0x4c27('0x6'),_0x4c27('0xa')];for(const _0x437c95 of this['tableCellProperties'])_0x183051['enableCommand'](_0x437c95,(_0x3ef7dd,_0x31b7ec)=>{const _0xb2cdfe=this[_0x4c27('0x33')]['plugins'][_0x4c27('0x2c')](_0x4c27('0x30'))[_0x4c27('0x2e')](this[_0x4c27('0x33')][_0x4c27('0x17')]['document']['selection']);this[_0x4c27('0x14')](_0x437c95,_0xb2cdfe,this[_0x4c27('0x21')],_0x4c27('0x21'),_0x3ef7dd,_0x31b7ec);});_0x183051[_0x4c27('0x1f')]['registerCustomCallback'](_0x4c27('0x37'),_0x4c27('0x21'),_0x4c27('0x9'),_0x183051[_0x4c27('0x1f')][_0x4c27('0x8')](_0x4c27('0x37'),null,_0x4c27('0x25'))),_0x183051['_suggestionFactory']['registerCustomCallback'](_0x4c27('0x37'),'tableCellProperties',_0x4c27('0x25'),(_0x47365f,_0x599671)=>this[_0x4c27('0x19')](this[_0x4c27('0x21')],_0x47365f,_0x599671)),_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')](_0x4c27('0x37'),'tableCellProperties',_0x4c27('0x12'),()=>!0x1);}_0x183051[_0x4c27('0x1a')][_0x4c27('0x29')](_0x13b878=>this[_0x4c27('0x5')](_0x13b878));}[_0x4c27('0x14')](_0x4850d1,_0x1b0219,_0x568eaf,_0x413390,_0x345dfc,_0x3e3cbe){const _0x1c09e8=this[_0x4c27('0x33')]['plugins'][_0x4c27('0x2c')]('TrackChangesEditing');this[_0x4c27('0x33')][_0x4c27('0x17')][_0x4c27('0xb')](_0x3e3cbe[_0x4c27('0xd')],()=>{for(const _0x5ce8f2 of _0x1b0219){if(this[_0x4c27('0x0')](_0x5ce8f2,_0x413390))_0x345dfc(_0x3e3cbe);else{const _0x5adb1a={};for(const _0x2d8a82 of _0x568eaf){const _0x373d59=_0x5ce8f2['getAttribute'](_0x2d8a82);void 0x0!==_0x373d59&&(_0x5adb1a[_0x2d8a82]=_0x373d59);}_0x345dfc(_0x3e3cbe),_0x1c09e8['markBlockFormat'](_0x5ce8f2,{'commandParams':[_0x5adb1a]},[],_0x413390);}}});}[_0x4c27('0x19')](_0xd0d5ba,_0x1c91aa,_0x383945){const _0x5ad2de=_0x1c91aa[0x0][_0x4c27('0x13')]['nodeAfter'],_0x127e0e=_0x383945[_0x4c27('0x10')][0x0];this[_0x4c27('0x33')]['model'][_0x4c27('0x7')](_0x34aced=>{for(const _0x5b87c1 of _0xd0d5ba)void 0x0!==_0x127e0e[_0x5b87c1]?_0x34aced['setAttribute'](_0x5b87c1,_0x127e0e[_0x5b87c1],_0x5ad2de):_0x34aced[_0x4c27('0xc')](_0x5b87c1,_0x5ad2de);});}[_0x4c27('0x5')](_0x4281e0){if(_0x4281e0[_0x4c27('0x27')])switch(_0x4281e0[_0x4c27('0x28')]){case _0x4c27('0x1e'):return{'type':_0x4c27('0x16'),'content':_0x587493(this[_0x4c27('0x33')][_0x4c27('0x32')],_0x4c27('0x23'))};case _0x4c27('0x21'):return{'type':_0x4c27('0x16'),'content':_0x587493(this['editor'][_0x4c27('0x32')],_0x4c27('0x2d'))};}}[_0x4c27('0x0')](_0x1d3716,_0x333038){const _0x1a4121=this[_0x4c27('0x33')][_0x4c27('0x1')][_0x4c27('0x2c')](_0x4c27('0x2f'));for(const _0x282a6e of _0x1a4121[_0x4c27('0x2')]({'skipNotAttached':!0x0})){const _0x275ced=_0x282a6e[_0x4c27('0x4')]();if(_0x282a6e[_0x4c27('0x28')]===_0x333038&&_0x275ced===_0x1d3716)return _0x282a6e;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dc9=['locale','removeMarker','title-content','registerElementLabel','_splitMarkerName','forward','ELEMENT_TITLE','getChangedMarkers','nodeBefore','isEqual','isTouching','plugins','differ','model','getNearestSelectionRange','end','document','isCollapsed','newRange','TrackChangesEditing','editor','_descriptionFactory','start','schema','from','updateMarker','Title','afterInit','element','suggestion'];(function(_0x1d09f1,_0x2dc93c){const _0x32340b=function(_0x56a993){while(--_0x56a993){_0x1d09f1['push'](_0x1d09f1['shift']());}};_0x32340b(++_0x2dc93c);}(_0x2dc9,0xde));const _0x3234=function(_0x1d09f1,_0x2dc93c){_0x1d09f1=_0x1d09f1-0x0;let _0x32340b=_0x2dc9[_0x1d09f1];return _0x32340b;};import{Plugin as _0x2405a0}from'ckeditor5/src/core';import{getTranslation as _0x1b6562}from'../utils/common-translations';export default class bt extends _0x2405a0{[_0x3234('0xf')](){const _0x3d14bd=this[_0x3234('0x8')];if(!_0x3d14bd[_0x3234('0x1d')]['has'](_0x3234('0xe')))return;const _0xd0febb=_0x3d14bd[_0x3234('0x1d')]['get'](_0x3234('0x7'));_0xd0febb[_0x3234('0x9')][_0x3234('0x15')](_0x3234('0x14'),()=>_0x1b6562(_0x3d14bd[_0x3234('0x12')],_0x3234('0x18'))),_0x3d14bd['model'][_0x3234('0x4')]['registerPostFixer'](_0x20ef4c=>{let _0x41fbf0=!0x1;const _0x210ecf=Array[_0x3234('0xc')](_0x3d14bd[_0x3234('0x1')][_0x3234('0x4')][_0x3234('0x0')][_0x3234('0x19')]());for(const {name:_0x38fefc,data:_0x3b6360}of _0x210ecf){const {group:_0x53e1fb}=_0xd0febb[_0x3234('0x16')](_0x38fefc);if(_0x3234('0x11')!==_0x53e1fb||!_0x3b6360[_0x3234('0x6')])continue;const _0x26d851=_0x3b6360[_0x3234('0x6')],_0x395f5c=_0x26d851[_0x3234('0x3')][_0x3234('0x1a')];if(!_0x395f5c||!_0x395f5c['is'](_0x3234('0x10'),_0x3234('0x14')))continue;if(!_0x26d851['start'][_0x3234('0x1c')](_0x26d851[_0x3234('0x3')]))continue;const _0x55c810=_0x3d14bd['model'][_0x3234('0xb')][_0x3234('0x2')](_0x26d851['end'],_0x3234('0x17'));if(_0x55c810&&_0x55c810[_0x3234('0x5')]){const _0x34b0ca=_0x20ef4c['createRange'](_0x26d851[_0x3234('0xa')],_0x55c810[_0x3234('0xa')]);_0x34b0ca[_0x3234('0x1b')](_0x26d851)||(_0x20ef4c[_0x3234('0xd')](_0x38fefc,{'range':_0x34b0ca}),_0x41fbf0=!0x0);}_0x41fbf0||(_0x20ef4c[_0x3234('0x13')](_0x38fefc),_0x41fbf0=!0x0);}return _0x41fbf0;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b21=['has','TrackChangesEditing','redo','undo','afterInit','plugins','editor'];(function(_0x4bc2cc,_0x2b21cc){const _0x2d878b=function(_0x339d9d){while(--_0x339d9d){_0x4bc2cc['push'](_0x4bc2cc['shift']());}};_0x2d878b(++_0x2b21cc);}(_0x2b21,0x1a2));const _0x2d87=function(_0x4bc2cc,_0x2b21cc){_0x4bc2cc=_0x4bc2cc-0x0;let _0x2d878b=_0x2b21[_0x4bc2cc];return _0x2d878b;};import{Plugin as _0x232324}from'ckeditor5/src/core';export default class St extends _0x232324{[_0x2d87('0x6')](){const _0x1549a8=this[_0x2d87('0x1')],_0x161b8a=_0x1549a8[_0x2d87('0x0')]['get'](_0x2d87('0x3'));_0x1549a8[_0x2d87('0x0')][_0x2d87('0x2')]('UndoEditing')&&(_0x161b8a['enableCommand'](_0x2d87('0x5')),_0x161b8a['enableCommand'](_0x2d87('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xae45=['isBlock','isLimit','getCustomProperty','schema','get','ck-suggestion-marker--active','markerName','isContent','getItems','hasAttribute','span','isAtEnd','toViewElement','consumable','addClass','push','elementEnd','parent','previousPosition','markerRange','writer','mapper','TrackChangesEditing','model','nextSibling','ck-suggestion-marker-','test','item','type','listIndent','name','element','addHighlight','getWalker','bindElementToMarker','toViewPosition','listItem','activeMarkers','plugins','getAttribute'];(function(_0x3e62f5,_0xae457d){const _0xd59cef=function(_0x3e762f){while(--_0x3e762f){_0x3e62f5['push'](_0x3e62f5['shift']());}};_0xd59cef(++_0xae457d);}(_0xae45,0x16a));const _0xd59c=function(_0x3e62f5,_0xae457d){_0x3e62f5=_0x3e62f5-0x0;let _0xd59cef=_0xae45[_0x3e62f5];return _0xd59cef;};export function getRangesWithAttribute(_0x48a801,_0x2f35cb,_0x4e4c52){const _0x147dcb=[];for(const _0x23e393 of _0x2f35cb[_0xd59c('0x6')]())_0x23e393[_0xd59c('0x7')](_0x48a801)&&_0x147dcb[_0xd59c('0xd')](_0x4e4c52['createRangeOn'](_0x23e393));return _0x147dcb;}export function getElementsAffectedByListItemRename(_0x2c5e2d){const _0x475a01=[];if(_0x2c5e2d['is']('element','listItem')){let _0x46f24=_0x2c5e2d[_0xd59c('0x16')];for(;_0x46f24&&_0x46f24['is'](_0xd59c('0x1d'),_0xd59c('0x22'))&&_0x46f24[_0xd59c('0x25')](_0xd59c('0x1b'))>0x0;)_0x475a01[_0xd59c('0xd')](_0x46f24),_0x46f24=_0x46f24[_0xd59c('0x16')];}return _0x475a01;}export function downcastSplitMergeMarker(_0x201e20,_0x3717c3,{showActiveMarker:_0x2679e7=!0x0}={}){const _0x51d26e=_0x201e20[_0xd59c('0x24')][_0xd59c('0x2')](_0xd59c('0x14'));return(_0x5c1c47,_0x476159,_0x2f1bd7)=>{if(!_0x2f1bd7[_0xd59c('0xb')][_0xd59c('0x18')](_0x476159['markerRange'],_0x5c1c47[_0xd59c('0x1c')]))return;const _0x1e38c5=_0x476159[_0xd59c('0x11')][_0xd59c('0x1f')](),_0xa83910=_0x476159[_0xd59c('0x11')]['start'],_0x5ac129=_0x201e20[_0xd59c('0x15')][_0xd59c('0x1')];let _0x39cff5=null,_0x129210=null,_0x3b4ba0=!0x1,_0x5b2a47=!0x1;for(const _0x15e761 of _0x1e38c5){const _0x4a0e82=_0x15e761[_0xd59c('0x19')];_0x3b4ba0=_0x3b4ba0||_0x5ac129[_0xd59c('0x5')](_0x4a0e82);const _0x4b0157=_0x2f1bd7['mapper'][_0xd59c('0xa')](_0x4a0e82);if(_0x4b0157&&_0x4b0157[_0xd59c('0x0')](_0xd59c('0x1e')))return;_0xd59c('0xe')==_0x15e761[_0xd59c('0x1a')]&&(_0x5ac129[_0xd59c('0x26')](_0x4a0e82)&&!_0x5ac129[_0xd59c('0x27')](_0x4a0e82)&&(_0x4a0e82[_0xd59c('0x16')]||_0xa83910[_0xd59c('0x9')]?_0x39cff5&&_0x39cff5[_0xd59c('0xf')]==_0x4a0e82||(_0x39cff5=_0x4a0e82,_0x1497b7(_0x15e761[_0xd59c('0x10')]),_0x5b2a47=!0x0):_0x129210=_0x129210||_0x15e761[_0xd59c('0x10')]));}function _0x1497b7(_0x5bc430){const _0x2e0f8c=_0x2f1bd7[_0xd59c('0x12')]['createUIElement'](_0xd59c('0x8'),{'class':_0xd59c('0x17')+_0x3717c3}),_0xac336f=_0x2f1bd7[_0xd59c('0x13')][_0xd59c('0x21')](_0x5bc430);_0x2679e7&&_0x51d26e[_0xd59c('0x23')]['includes'](_0x476159[_0xd59c('0x4')])&&_0x2f1bd7[_0xd59c('0x12')][_0xd59c('0xc')](_0xd59c('0x3'),_0x2e0f8c),_0x2f1bd7[_0xd59c('0x12')]['insert'](_0xac336f,_0x2e0f8c),_0x2f1bd7[_0xd59c('0x13')][_0xd59c('0x20')](_0x2e0f8c,_0x476159[_0xd59c('0x4')]);}_0x3b4ba0||_0x5b2a47||!_0x129210||_0x1497b7(_0x129210);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3209=['isIntersecting','size','getMultiRangeId','head','end','decorate','map','getRanges','add','_onAccept','subType','removeMarker','getMarkers','nodeBefore','getItems','_saved','@external','getMarkerNames','author','isMultiRange','commentThread','from','removeAttribute','getAllAdjacentSuggestions','start','change','_model','getFirstMarker','data','setAttribute','next','delete','get','discard','isIntersectingWithRange','getRange','filter','attributes','removeMarkers','createdAt','set','split','previous','clear','_onAttributesChange','nodeAfter','creator','onAttributesChange','hasComments','isInContent','onAccept','_markerNames','push','_onDiscard','type','getFirstRange','substr','authoredAt','addMarkerName','accept'];(function(_0x289cc0,_0x320919){const _0x3ef90a=function(_0x45c2e5){while(--_0x45c2e5){_0x289cc0['push'](_0x289cc0['shift']());}};_0x3ef90a(++_0x320919);}(_0x3209,0x6e));const _0x3ef9=function(_0x289cc0,_0x320919){_0x289cc0=_0x289cc0-0x0;let _0x3ef90a=_0x3209[_0x289cc0];return _0x3ef90a;};import{Element as _0x73cfc3}from'ckeditor5/src/engine';import{ObservableMixin as _0x5ca108,mix as _0x63632,uid as _0x1adafa}from'ckeditor5/src/utils';import{cloneDeep as _0x255cac,isEqual as _0x1ce58c,set as _0x2aeae1,unset as _0x50b38e}from'lodash-es';export default class o{constructor(_0x351fbc,_0xe08bdb){this['id']=_0xe08bdb['id'],this[_0x3ef9('0x4')]=_0xe08bdb[_0x3ef9('0x4')],this[_0x3ef9('0x14')]=_0xe08bdb[_0x3ef9('0x14')]||null,this[_0x3ef9('0x1c')]=_0xe08bdb[_0x3ef9('0x1c')],this[_0x3ef9('0x38')]=_0xe08bdb[_0x3ef9('0x38')]||_0xe08bdb['author'],this['isExternal']=Boolean(_0xe08bdb[_0x3ef9('0x2f')]&&_0xe08bdb[_0x3ef9('0x2f')][_0x3ef9('0x1a')]),this[_0x3ef9('0x26')]=null,this[_0x3ef9('0x24')]=_0x351fbc,this[_0x3ef9('0x13')]=_0xe08bdb[_0x3ef9('0x0')],this[_0x3ef9('0x3')]=_0xe08bdb['onDiscard'],this[_0x3ef9('0x36')]=_0xe08bdb[_0x3ef9('0x39')],this['_markerNames']=new Set(),this[_0x3ef9('0x31')]=null,this[_0x3ef9('0x32')](_0x3ef9('0x7'),null),this[_0x3ef9('0x32')](_0x3ef9('0x2f'),_0xe08bdb[_0x3ef9('0x2f')]||{}),this[_0x3ef9('0x32')](_0x3ef9('0x34'),null),this[_0x3ef9('0x32')](_0x3ef9('0x28'),null),this[_0x3ef9('0x32')](_0x3ef9('0x1e'),null),this['set'](_0x3ef9('0x19'),!0x1),this[_0x3ef9('0xf')](_0x3ef9('0x9')),this[_0x3ef9('0xf')]('discard');}get[_0x3ef9('0xd')](){let _0x53a211=this;for(;_0x53a211[_0x3ef9('0x34')];)_0x53a211=_0x53a211[_0x3ef9('0x34')];return _0x53a211;}get[_0x3ef9('0x3a')](){return!!this['commentThread']&&this[_0x3ef9('0x1e')]['length']>0x0;}get[_0x3ef9('0x1d')](){if(0x0==this[_0x3ef9('0x1')][_0x3ef9('0xb')])return!0x1;return 0x6==Array[_0x3ef9('0x1f')](this[_0x3ef9('0x1')])[0x0][_0x3ef9('0x33')](':')['length'];}get[_0x3ef9('0x3b')](){return null!==this[_0x3ef9('0x25')]();}[_0x3ef9('0x8')](_0xc64907){this[_0x3ef9('0x1')][_0x3ef9('0x12')](_0xc64907);}[_0x3ef9('0x1b')](){return Array[_0x3ef9('0x1f')](this['_markerNames']);}[_0x3ef9('0x16')](){return this['getMarkerNames']()['map'](_0x4c9856=>this[_0x3ef9('0x24')]['markers'][_0x3ef9('0x2a')](_0x4c9856))[_0x3ef9('0x2e')](_0x75c6e2=>_0x75c6e2);}['getFirstMarker'](){return this[_0x3ef9('0x16')]()[0x0]||null;}[_0x3ef9('0x30')](){this[_0x3ef9('0x24')][_0x3ef9('0x23')](_0x4c9699=>{for(const _0xfea378 of this['getMarkers']())_0x4c9699['removeMarker'](_0xfea378);}),this[_0x3ef9('0x1')][_0x3ef9('0x35')]();}[_0x3ef9('0x15')](_0x40a733){this[_0x3ef9('0x24')][_0x3ef9('0x23')](_0x4ad4f7=>{_0x4ad4f7[_0x3ef9('0x15')](_0x40a733);}),this['_markerNames'][_0x3ef9('0x29')](_0x40a733);}['addRange'](_0x135d0a){const _0x48a71b='suggestion:'+this[_0x3ef9('0x4')]+':'+this['subType']+':'+this['id']+':'+this[_0x3ef9('0x38')]['id']+':'+o[_0x3ef9('0xc')]();this[_0x3ef9('0x8')](_0x48a71b),this['_model'][_0x3ef9('0x23')](_0xf4fd43=>{_0xf4fd43['addMarker'](_0x48a71b,{'range':_0x135d0a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ef9('0x2c')](_0x5b4e3d){for(const _0x106506 of this['getRanges']())if(_0x106506[_0x3ef9('0xa')](_0x5b4e3d))return!0x0;return!0x1;}[_0x3ef9('0x11')](){return this['getMarkers']()[_0x3ef9('0x10')](_0xa6ba9a=>_0xa6ba9a[_0x3ef9('0x2d')]());}['getItems'](){return this[_0x3ef9('0x11')]()['reduce']((_0x1a77b7,_0x3cc473)=>[..._0x1a77b7,..._0x3cc473[_0x3ef9('0x18')]()],[]);}[_0x3ef9('0x5')](){return this[_0x3ef9('0x25')]()[_0x3ef9('0x2d')]();}['getContainedElement'](){const _0x3bcefd=this['getRanges']();if(0x1!=_0x3bcefd['length'])return null;const _0x51d73a=_0x3bcefd[0x0],_0x28eb66=_0x51d73a[_0x3ef9('0x22')][_0x3ef9('0x37')],_0x4d1e33=_0x51d73a[_0x3ef9('0xe')][_0x3ef9('0x17')];return _0x28eb66 instanceof _0x73cfc3?_0x28eb66!=_0x4d1e33?null:_0x28eb66:null;}[_0x3ef9('0x9')](){this[_0x3ef9('0x13')](this[_0x3ef9('0x11')](),this[_0x3ef9('0x26')],this[_0x3ef9('0x2f')]),this[_0x3ef9('0x30')]();}[_0x3ef9('0x2b')](){this[_0x3ef9('0x3')](this[_0x3ef9('0x11')](),this[_0x3ef9('0x26')],this[_0x3ef9('0x2f')]),this[_0x3ef9('0x30')]();}[_0x3ef9('0x21')](){const _0x25063d=[];let _0x29bad8=this[_0x3ef9('0xd')];for(;_0x29bad8;)_0x25063d[_0x3ef9('0x2')](_0x29bad8),_0x29bad8=_0x29bad8[_0x3ef9('0x28')];return _0x25063d;}[_0x3ef9('0x27')](_0x16f2e2,_0xd30006){const _0x29b8d9=_0x255cac(this[_0x3ef9('0x2f')]);_0x2aeae1(_0x29b8d9,_0x16f2e2,_0xd30006),_0x1ce58c(_0x29b8d9,this[_0x3ef9('0x2f')])||(this[_0x3ef9('0x2f')]=_0x29b8d9,this[_0x3ef9('0x36')](_0x29b8d9));}[_0x3ef9('0x20')](_0x59a2b3){const _0x3db005=_0x255cac(this['attributes']);_0x50b38e(_0x3db005,_0x59a2b3),_0x1ce58c(_0x3db005,this[_0x3ef9('0x2f')])||(this[_0x3ef9('0x2f')]=_0x3db005,this[_0x3ef9('0x36')](this[_0x3ef9('0x2f')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x3ef9('0x14')]?this['type']+':'+this[_0x3ef9('0x14')]:this[_0x3ef9('0x4')],'authorId':this['creator']['id'],'createdAt':this[_0x3ef9('0x31')],'hasComments':this[_0x3ef9('0x3a')],'data':this[_0x3ef9('0x26')],'attributes':this[_0x3ef9('0x2f')]};}static['getMultiRangeId'](){return _0x1adafa()[_0x3ef9('0x6')](0x1,0x5);}}_0x63632(o,_0x5ca108);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d89=['$1\x20$2','registerDescriptionCallback','push','*Split:*\x20%0','textProxy','Container','isEmpty','start','addObject','_resolveDescriptionItems','elementEnd','get','_customCallbacks','checkChild','getFirstRange','getItemLabel','data','ELEMENT_SPACE','name','_schema','REPLACE_TEXT','match','insertion','function','*Remove:*\x20%0','length','elementStart','removeContainer','Object','getDescriptions','element','text','isEqual','isObject','_itemLabels','end','item','remove','removeEmptyContainer','*Merge:*\x20%0','EmptyContainer','*Insert:*\x20%0','type','softBreak','indexOf','removeObject','quantity','registerElementLabel','_locale','nextSibling','add','_addDescriptionItems','addEmptyContainer','getWalker','matchingCallback','replace','previousSibling','_itemLabelsCallbacks','deletion','$text'];(function(_0x308abe,_0x5d8932){const _0x1610dc=function(_0x51e90a){while(--_0x51e90a){_0x308abe['push'](_0x308abe['shift']());}};_0x1610dc(++_0x5d8932);}(_0x5d89,0x130));const _0x1610=function(_0x308abe,_0x5d8932){_0x308abe=_0x308abe-0x0;let _0x1610dc=_0x5d89[_0x308abe];return _0x1610dc;};import{getTranslation as _0x26adf6}from'./utils/common-translations';import{priorities as _0x272fb0,insertToPriorityArray as _0x16b162}from'ckeditor5/src/utils';export default class f{constructor(_0x5313c2,_0x1871d5){this[_0x1610('0x8')]=[],this[_0x1610('0x1e')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x1610('0xf')]=_0x5313c2,this['_locale']=_0x1871d5;}[_0x1610('0x19')](_0x4f6e08){const _0x153de1=[];for(let _0x1f3bec=0x0;_0x1f3bec<_0x4f6e08[_0x1610('0x15')];_0x1f3bec++){const _0x3bdd8c=_0x4f6e08[_0x1f3bec];if(!_0x3bdd8c['isInContent'])continue;let _0x743f5e=!0x1;for(const _0x2324e7 of this[_0x1610('0x8')]){const _0x3685fe=_0x2324e7(_0x3bdd8c);if(_0x3685fe){_0x3685fe[_0x1610('0x26')]&&_0x153de1[_0x1610('0x3a')](_0x3685fe),_0x743f5e=!0x0;break;}}if(!_0x743f5e){this[_0x1610('0x2f')](_0x153de1,_0x3bdd8c);const _0x265c0f=_0x4f6e08[_0x1f3bec+0x1];if(_0x265c0f&&!_0x3bdd8c[_0x1610('0xa')]()[_0x1610('0x1f')][_0x1610('0x1c')](_0x265c0f[_0x1610('0xa')]()[_0x1610('0x3')])){const _0x4aaf97=_0x153de1[_0x153de1[_0x1610('0x15')]-0x1],_0x4dc529=_0x1610('0x12')==_0x3bdd8c[_0x1610('0x26')]?_0x1610('0x2e'):'remove';_0x4aaf97&&'text'==_0x4aaf97[_0x1610('0x26')]&&(_0x4aaf97[_0x4dc529]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x153de1);}[_0x1610('0x39')](_0x57424b){this[_0x1610('0x8')][_0x1610('0x3a')](_0x57424b);}[_0x1610('0x2b')](_0x30491e,_0x54386a,_0x2eaae9=_0x272fb0['normal']){_0x1610('0x13')==typeof _0x30491e?_0x16b162(this[_0x1610('0x35')],{'matchingCallback':_0x30491e,'label':_0x54386a,'priority':_0x2eaae9}):this[_0x1610('0x1e')]['set'](_0x30491e,_0x54386a);}[_0x1610('0xb')](_0x5bf834,_0x10643d=0x1){let _0x57c73e;for(const _0x4b0abd of this[_0x1610('0x35')])if(_0x4b0abd[_0x1610('0x32')](_0x5bf834)){_0x57c73e=_0x4b0abd['label'];break;}return _0x57c73e||(_0x57c73e=this[_0x1610('0x1e')][_0x1610('0x7')](_0x5bf834[_0x1610('0xe')])),_0x57c73e?_0x57c73e(_0x10643d):0x1!==_0x10643d?_0x10643d+'\x20'+_0x5bf834[_0x1610('0xe')]+'s':''+_0x5bf834[_0x1610('0xe')];}['_addDescriptionItems'](_0x5141d6,_0x12abf3){const _0x3f270c=_0x12abf3[_0x1610('0xa')]()[_0x1610('0x31')](),_0x23841d=_0x1610('0x12')==_0x12abf3[_0x1610('0x26')]?_0x1610('0x2e'):'remove';for(const _0x309a33 of _0x3f270c){const _0x1e9bea=_0x309a33['item'],_0x1b1e35=_0x5141d6[_0x5141d6[_0x1610('0x15')]-0x1];if(_0x1e9bea['is'](_0x1610('0x0')))_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]['indexOf']('Container')>-0x1&&_0x5141d6['pop'](),_0x1b1e35&&_0x1610('0x1b')==_0x1b1e35[_0x1610('0x26')]?_0x1b1e35[_0x23841d]+=_0x1e9bea[_0x1610('0xc')]:_0x5141d6[_0x1610('0x3a')]({'type':_0x1610('0x1b'),'add':_0x1610('0x2e')==_0x23841d?_0x1e9bea[_0x1610('0xc')]:'','remove':_0x1610('0x21')==_0x23841d?_0x1e9bea['data']:''});else{if(this['_schema']['isObject'](_0x1e9bea)){if(_0x1b1e35&&_0x1b1e35['type'][_0x1610('0x28')](_0x1610('0x1'))>-0x1&&_0x5141d6['pop'](),_0x1610('0x6')==_0x309a33[_0x1610('0x26')])continue;_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]==_0x23841d+_0x1610('0x18')&&_0x1b1e35[_0x1610('0x1a')]['name']==_0x1e9bea[_0x1610('0xe')]?_0x1b1e35[_0x1610('0x2a')]++:_0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x18'),'element':_0x1e9bea,'quantity':0x1}),_0x3f270c['skip'](_0x3961cf=>!(_0x1610('0x6')==_0x3961cf[_0x1610('0x26')]&&_0x3961cf[_0x1610('0x20')]==_0x1e9bea));}else{if(this['_schema'][_0x1610('0x9')](_0x1e9bea,_0x1610('0x37'))||_0x1e9bea['is']('element',_0x1610('0x27'))){if(_0x1610('0x2e')==_0x23841d&&_0x1610('0x16')==_0x309a33[_0x1610('0x26')]||_0x1610('0x21')==_0x23841d&&'elementEnd'==_0x309a33[_0x1610('0x26')])continue;if(_0x1b1e35&&-0x1==_0x1b1e35[_0x1610('0x26')][_0x1610('0x28')](_0x1610('0x1'))){_0x1610('0x1b')==_0x1b1e35[_0x1610('0x26')]&&(_0x1b1e35[_0x23841d]+='\x0a');continue;}let _0x53b9a2;if(_0x53b9a2=_0x1610('0x2e')==_0x23841d?_0x1e9bea[_0x1610('0x2d')]&&!this['_schema']['isObject'](_0x1e9bea['nextSibling'])?_0x1e9bea['nextSibling']:null:_0x1e9bea[_0x1610('0x34')]&&!this[_0x1610('0xf')][_0x1610('0x1d')](_0x1e9bea[_0x1610('0x34')])?_0x1e9bea[_0x1610('0x34')]:null,_0x1e9bea[_0x1610('0x2')]||_0x53b9a2&&_0x53b9a2['isEmpty']){const _0x2cb29d=_0x53b9a2&&_0x53b9a2['isEmpty']?_0x53b9a2:_0x1e9bea;_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]==_0x23841d+_0x1610('0x24')&&_0x1b1e35[_0x1610('0x1a')][_0x1610('0xe')]==_0x2cb29d['name']?_0x1b1e35['quantity']++:_0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x24'),'element':_0x2cb29d,'quantity':0x1});}else _0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x1'),'element':_0x1e9bea});}}}}}[_0x1610('0x5')](_0x707ccb){const _0x4530e7=this[_0x1610('0x2c')],_0x40e093=[];for(const _0x1b3ea of _0x707ccb){switch(_0x1b3ea[_0x1610('0x26')]){case _0x1610('0x1b'):if(_0x1b3ea[_0x1610('0x2e')]=_0x1b3ea['add'][_0x1610('0x33')](/(\S)\u000A+(\S)/g,_0x1610('0x38'))[_0x1610('0x33')](/\u000A/g,''),_0x1b3ea[_0x1610('0x21')]=_0x1b3ea[_0x1610('0x21')][_0x1610('0x33')](/(\S)\u000A+(\S)/g,_0x1610('0x38'))['replace'](/\u000A/g,''),''!=_0x1b3ea[_0x1610('0x2e')]&&''!=_0x1b3ea['remove']){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x33'),'content':_0x26adf6(_0x4530e7,_0x1610('0x10'),['\x22'+_0x1b3ea[_0x1610('0x21')]+'\x22','\x22'+_0x1b3ea[_0x1610('0x2e')]+'\x22'])});continue;}if(null!=_0x1b3ea[_0x1610('0x2e')][_0x1610('0x11')](/^ +$/)){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x25'),_0x26adf6(_0x4530e7,_0x1610('0xd'),_0x1b3ea[_0x1610('0x2e')][_0x1610('0x15')]))});continue;}if(null!=_0x1b3ea['remove'][_0x1610('0x11')](/^ +$/)){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,'*Remove:*\x20%0',_0x26adf6(_0x4530e7,'ELEMENT_SPACE',_0x1b3ea[_0x1610('0x21')][_0x1610('0x15')]))});continue;}if(''!=_0x1b3ea['add']){_0x40e093['push']({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x25'),'\x22'+_0x1b3ea[_0x1610('0x2e')]+'\x22')});continue;}_0x40e093['push']({'type':'deletion','content':_0x26adf6(_0x4530e7,'*Remove:*\x20%0','\x22'+_0x1b3ea[_0x1610('0x21')]+'\x22')});continue;case _0x1610('0x30'):case _0x1610('0x4'):_0x40e093[_0x1610('0x3a')]({'type':'insertion','content':_0x26adf6(_0x4530e7,_0x1610('0x25'),this[_0x1610('0xb')](_0x1b3ea[_0x1610('0x1a')],_0x1b3ea['quantity']))});continue;case _0x1610('0x22'):case _0x1610('0x29'):_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,_0x1610('0x14'),this[_0x1610('0xb')](_0x1b3ea[_0x1610('0x1a')],_0x1b3ea[_0x1610('0x2a')]))});continue;case'addContainer':_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x3b'),this[_0x1610('0xb')](_0x1b3ea['element'],_0x1b3ea[_0x1610('0x2a')]))});continue;case _0x1610('0x17'):_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,_0x1610('0x23'),this[_0x1610('0xb')](_0x1b3ea['element'],_0x1b3ea[_0x1610('0x2a')]))});continue;}_0x40e093['push'](_0x1b3ea);}return _0x40e093;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3401=['getSuggestions','getSuggestion','Comments','get','pluginName','addSuggestionData','addSuggestion','adapter','plugins','editor'];(function(_0x3bb1b8,_0x3401ae){var _0x3bab64=function(_0x404868){while(--_0x404868){_0x3bb1b8['push'](_0x3bb1b8['shift']());}};_0x3bab64(++_0x3401ae);}(_0x3401,0x15e));var _0x3bab=function(_0x3bb1b8,_0x3401ae){_0x3bb1b8=_0x3bb1b8-0x0;var _0x3bab64=_0x3401[_0x3bb1b8];return _0x3bab64;};import{Plugin as _0x124aff}from'ckeditor5/src/core';import _0x4d11d2 from'./trackchangesui';import _0x5176dc from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x124aff{static get['requires'](){return[_0x5176dc,_0x4d11d2,_0x3bab('0x2')];}static get[_0x3bab('0x4')](){return'TrackChanges';}set[_0x3bab('0x7')](_0xc716fc){this[_0x3bab('0x9')]['plugins'][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x7')]=_0xc716fc;}get[_0x3bab('0x7')](){return this[_0x3bab('0x9')]['plugins']['get'](_0x5176dc)[_0x3bab('0x7')];}[_0x3bab('0x6')](_0x50421d){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x5')](_0x50421d);}['getSuggestions'](_0x137c0b){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x0')](_0x137c0b);}[_0x3bab('0x1')](_0x1b667a){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x1')](_0x1b667a);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf511=['TrackChangesData','discardAllSuggestions','requires','acceptAllSuggestions','CommentsRepository','string','_adapter','config','appendChild','from','TrackChangesEditing','filter','WebSocketGateway','get','trackChangesData','plugins','addUser','every','getUser','WordCount','create','map','data','has','find','context','includes','reduce','result','pluginName','useAnonymousUser','editorCreator','addSuggestionData','Autosave','editor','Pagination','execute','track-changes-data-invalid-editor-creator','concat','constructor','function','users','name','extraPlugins','TrackChangesDataGetter','createDocumentFragment','model','set','Users','destroy'];(function(_0x8ec17b,_0xf511ab){const _0x54db7c=function(_0x1a8d53){while(--_0x1a8d53){_0x8ec17b['push'](_0x8ec17b['shift']());}};_0x54db7c(++_0xf511ab);}(_0xf511,0x89));const _0x54db=function(_0x8ec17b,_0xf511ab){_0x8ec17b=_0x8ec17b-0x0;let _0x54db7c=_0xf511[_0x8ec17b];return _0x54db7c;};import{Plugin as _0x320580}from'ckeditor5/src/core';import{CKEditorError as _0x1c27c4}from'ckeditor5/src/utils';import _0x4945ad from'./trackchangesediting';const D=['initialData',_0x54db('0x26'),'toolbar'],w=[_0x54db('0x19'),'RevisionTracker',_0x54db('0x2e'),_0x54db('0x20'),_0x54db('0x30')];export default class y extends _0x320580{static get[_0x54db('0xf')](){return[_0x4945ad];}static get[_0x54db('0x2a')](){return _0x54db('0xd');}['init'](){const _0x4723c7=this['editor'];if(_0x4723c7[_0x54db('0x14')]['define']('trackChangesData.editorCreator',_0x453200=>_0x4723c7[_0x54db('0x2')][_0x54db('0x21')]('',_0x453200)),_0x54db('0x3')!=typeof _0x4723c7[_0x54db('0x14')][_0x54db('0x1a')](_0x54db('0x1b'))[_0x54db('0x2c')])throw new _0x1c27c4(_0x54db('0x0'));}['getDataWithAcceptedSuggestions'](_0x762390){return T(this[_0x54db('0x2f')],!0x0,_0x762390);}['getDataWithDiscardedSuggestions'](_0x69f9d2){return T(this[_0x54db('0x2f')],!0x1,_0x69f9d2);}}class S extends _0x320580{static get[_0x54db('0x2a')](){return _0x54db('0x7');}['init'](){this[_0x54db('0x29')]='end',this['editor']['plugins']['get'](_0x54db('0x11'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this['editor'][_0x54db('0x1c')][_0x54db('0x1a')](_0x54db('0x17'))[_0x54db('0x13')]=null;}}async function T(_0x4ad6e1,_0x2b5529,_0x4b05b3){const _0x25641d=function(_0x3cecb3){const _0x55b307={};for(const _0x280b30 of _0x3cecb3[_0x54db('0x14')]['names']())D[_0x54db('0x27')](_0x280b30)||(_0x55b307[_0x280b30]=_0x3cecb3[_0x54db('0x14')]['get'](_0x280b30));const _0x2c2918=_0x3cecb3[_0x54db('0x2')]['builtinPlugins']||[],_0x17449e=_0x55b307[_0x54db('0x6')]||[];delete _0x55b307[_0x54db('0x6')];const _0x33ac38=_0x2c2918['concat'](_0x55b307['plugins'])[_0x54db('0x1')](_0x17449e)[_0x54db('0x22')](_0x25f5dc=>_0x54db('0x12')==typeof _0x25f5dc?_0x2c2918[_0x54db('0x25')](_0x222157=>_0x222157[_0x54db('0x2a')]==_0x25f5dc):_0x25f5dc),_0x1e51f0=Array[_0x54db('0x16')](new Set(_0x33ac38)),_0x10928b=new Map();return _0x55b307[_0x54db('0x1c')]=_0x1e51f0[_0x54db('0x18')](_0x35b005=>A(_0x35b005,_0x10928b)),_0x55b307[_0x54db('0x1c')]['push'](S),_0x55b307[_0x54db('0x1c')]['push'](_0x4945ad),_0x55b307;}(_0x4ad6e1),_0x64854=document[_0x54db('0x8')](),_0x1e385d=_0x4ad6e1[_0x54db('0x14')][_0x54db('0x1a')](_0x54db('0x1b'))['editorCreator'],_0x29c268=await _0x1e385d(_0x25641d,()=>function(_0x31ebfb){const _0x363502=document['createElement']('div');return _0x31ebfb[_0x54db('0x15')](_0x363502),_0x363502;}(_0x64854));!function(_0x4d446c,_0x1729da){const _0x225d72=_0x4d446c[_0x54db('0x9')]['document']['getRootNames']()[_0x54db('0x28')]((_0x399952,_0x5c5740)=>(_0x399952[_0x5c5740]=_0x4d446c['data'][_0x54db('0x1a')]({'rootName':_0x5c5740}),_0x399952),{}),_0x46988f=_0x4d446c[_0x54db('0x1c')][_0x54db('0x1a')]('Users')[_0x54db('0x4')]['map'](_0x393f6d=>({'id':_0x393f6d['id']})),_0x36639a=_0x4d446c[_0x54db('0x1c')][_0x54db('0x1a')](_0x54db('0x17'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24ff73=_0x1729da[_0x54db('0x1c')]['get'](_0x54db('0xb')),_0x23dca6=_0x1729da[_0x54db('0x1c')][_0x54db('0x1a')]('TrackChangesEditing');for(const _0x566d66 of _0x46988f)_0x24ff73[_0x54db('0x1f')](_0x566d66['id'])||_0x24ff73[_0x54db('0x1d')](_0x566d66);_0x24ff73['me']||_0x24ff73[_0x54db('0x2b')]();for(const _0xd9a01 of _0x36639a)_0x23dca6[_0x54db('0x2d')](_0xd9a01);_0x1729da['data'][_0x54db('0xa')](_0x225d72);}(_0x4ad6e1,_0x29c268),_0x29c268[_0x54db('0x31')](_0x2b5529?_0x54db('0x10'):_0x54db('0xe'));const _0x340e84=_0x29c268[_0x54db('0x23')][_0x54db('0x1a')](_0x4b05b3);return await _0x29c268[_0x54db('0xc')](),_0x340e84;}function A(_0x7b2a16,_0x2ec9ee){const _0x34d999=_0x54db('0x3')==typeof _0x7b2a16?_0x7b2a16[_0x54db('0x2a')]||_0x7b2a16[_0x54db('0x5')]:_0x7b2a16;if(_0x2ec9ee[_0x54db('0x24')](_0x34d999))return _0x2ec9ee[_0x54db('0x1a')](_0x34d999);if(_0x2ec9ee['set'](_0x34d999,!0x0),_0x34d999&&w[_0x54db('0x27')](_0x34d999))return _0x2ec9ee[_0x54db('0xa')](_0x34d999,!0x1),!0x1;if(!_0x7b2a16[_0x54db('0xf')])return _0x2ec9ee[_0x54db('0xa')](_0x34d999,!0x0),!0x0;const _0x4d1b7d=_0x7b2a16[_0x54db('0xf')][_0x54db('0x1e')](_0x251bc6=>A(_0x251bc6,_0x2ec9ee));return _0x2ec9ee[_0x54db('0xa')](_0x34d999,_0x4d1b7d),_0x4d1b7d;}
|