@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 38.2.0-alpha.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 +2 -2
- package/package.json +3 -3
- package/src/augmentation.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +2 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +3 -3
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +2 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +3 -3
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +2 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +3 -3
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +2 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -4
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -4
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +3 -3
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +5 -5
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +15 -3
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +1 -1
- package/src/trackchangesdata.d.ts +4 -4
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +51 -51
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +3 -3
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +5 -5
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +5 -5
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -4
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bef=['writer','get','document','format','plugins','filter','getItemLabel','locale','nodeAfter','isLimit','showSuggestionHighlights','isBlock','*Insert:*\x20%0','*Change\x20to:*\x20%0','editing','getFirstRange','start','createUIElement','addMarker:suggestion:insertion','span','markerRange','_descriptionFactory','bindElementToMarker','options','name','checkChild','includes','enableCommand','registerDescriptionCallback','insertion','data','TrackChangesEditing','type','registerElementLabel','has','insert','isObject','$text','end','selection','isTouching','consumable','paragraph','blockName','ELEMENT_PARAGRAPH','toViewPosition','markBlockFormat','consume','editor','downcastDispatcher','addClass','mapper','schema','markerName','model'];(function(_0x309dcb,_0x3bef0e){const _0x5a72a6=function(_0x3e6ad6){while(--_0x3e6ad6){_0x309dcb['push'](_0x309dcb['shift']());}};_0x5a72a6(++_0x3bef0e);}(_0x3bef,0x130));const _0x5a72=function(_0x309dcb,_0x3bef0e){_0x309dcb=_0x309dcb-0x0;let _0x5a72a6=_0x3bef[_0x309dcb];return _0x5a72a6;};import{Plugin as _0x442265}from'ckeditor5/src/core.js';import{getElementsAffectedByListItemRename as _0x131a96}from'./utils.js';import{getTranslation as _0x4052d0}from'../utils/common-translations.js';export default class ct extends _0x442265{['afterInit'](){const _0x3dd162=this[_0x5a72('0x13')];if(!_0x3dd162['plugins'][_0x5a72('0x5')]('Paragraph'))return;const _0x28f234=_0x3dd162[_0x5a72('0x21')],_0x51ff73=_0x3dd162[_0x5a72('0x1e')][_0x5a72('0x1b')](_0x5a72('0x2'));_0x51ff73[_0x5a72('0x2f')][_0x5a72('0x4')](_0x5a72('0xd'),_0x5e1993=>_0x4052d0(_0x28f234,_0x5a72('0xf'),_0x5e1993)),_0x51ff73[_0x5a72('0x35')](_0x5a72('0xd'),(_0xfa105e,_0x11b7ae={})=>{const _0x207c54=_0x3dd162[_0x5a72('0x19')][_0x5a72('0x1c')],_0x4e7105=_0x11b7ae[_0x5a72('0xa')]||_0x207c54[_0x5a72('0xa')],_0x4315ba=Array['from'](_0x4e7105['getSelectedBlocks']())[_0x5a72('0x1f')](_0x6cda97=>function(_0x5ae765,_0x372c0f){return _0x372c0f[_0x5a72('0x33')](_0x5ae765['parent'],_0x5a72('0xd'))&&!_0x372c0f[_0x5a72('0x7')](_0x5ae765)&&_0x5a72('0xd')!=_0x5ae765[_0x5a72('0x32')];}(_0x6cda97,this[_0x5a72('0x13')][_0x5a72('0x19')]['schema']));_0x3dd162[_0x5a72('0x19')]['change'](()=>{for(const _0x3d5bb7 of _0x4315ba)_0x51ff73[_0x5a72('0x11')](_0x3d5bb7,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x5a72('0xe')},_0x131a96(_0x3d5bb7));});}),_0x51ff73[_0x5a72('0x2f')]['registerDescriptionCallback'](_0xc76886=>{const {data:_0x11961f}=_0xc76886;if(_0x11961f&&'paragraph'==_0x11961f['commandName'])return{'type':_0x5a72('0x1d'),'content':_0x4052d0(_0x28f234,_0x5a72('0x27'),_0x4052d0(_0x28f234,_0x5a72('0xf')))};}),_0x51ff73['enableCommand']('insertParagraph'),_0x3dd162[_0x5a72('0x28')][_0x5a72('0x14')]['on'](_0x5a72('0x2c'),ar(_0x3dd162),{'priority':'highest'}),_0x3dd162[_0x5a72('0x1')]['downcastDispatcher']['on'](_0x5a72('0x2c'),(_0x5c592d,_0x274fbb,_0x4b360a)=>{_0x4b360a[_0x5a72('0x31')][_0x5a72('0x24')]&&ar(_0x3dd162,{'showActiveMarker':!0x1})(_0x5c592d,_0x274fbb,_0x4b360a);},{'priority':'highest'});const _0x577f9d=_0x51ff73['_descriptionFactory'];_0x577f9d[_0x5a72('0x36')](_0x4f3ca4=>{if(_0x5a72('0x0')!==_0x4f3ca4[_0x5a72('0x3')])return;const {start:_0xb052ad,end:_0x3c1b96}=_0x4f3ca4[_0x5a72('0x29')]();if(!_0xb052ad['isTouching'](_0x3c1b96)||!_0xb052ad[_0x5a72('0x22')])return;const _0x38ee6c=_0x3dd162[_0x5a72('0x19')][_0x5a72('0x17')],_0x41f211=_0xb052ad[_0x5a72('0x22')];return _0x38ee6c['isBlock'](_0x41f211)&&!_0x38ee6c['isLimit'](_0x41f211)&&_0x38ee6c[_0x5a72('0x33')](_0x41f211,_0x5a72('0x8'))?{'type':_0x5a72('0x0'),'content':_0x4052d0(_0x28f234,_0x5a72('0x26'),_0x577f9d[_0x5a72('0x20')](_0x41f211,0x1))}:void 0x0;});}}function ar(_0x5a4c70,{showActiveMarker:_0x173c90=!0x0}={}){return(_0xd7d902,_0x378db2,_0x3b9975)=>{const _0x4b83fd=_0x5a4c70[_0x5a72('0x1e')][_0x5a72('0x1b')](_0x5a72('0x2')),_0x37db82=_0x378db2[_0x5a72('0x2e')][_0x5a72('0x2a')],_0x38c135=_0x378db2[_0x5a72('0x2e')][_0x5a72('0x9')],_0x701ab4=_0x5a4c70['model'][_0x5a72('0x17')];if(!_0x37db82[_0x5a72('0xb')](_0x38c135)||!_0x37db82[_0x5a72('0x22')])return;const _0x6b28a2=_0x37db82[_0x5a72('0x22')];if(_0x701ab4[_0x5a72('0x25')](_0x6b28a2)&&!_0x701ab4[_0x5a72('0x23')](_0x6b28a2)&&_0x701ab4[_0x5a72('0x33')](_0x6b28a2,_0x5a72('0x8'))){if(!_0x3b9975[_0x5a72('0xc')][_0x5a72('0x12')](_0x378db2['markerRange'],_0xd7d902[_0x5a72('0x32')]))return;const _0x3a1303=_0x3b9975['writer'][_0x5a72('0x2b')](_0x5a72('0x2d'),{'class':'ck-suggestion-marker-split'}),_0x278862=_0x3b9975[_0x5a72('0x16')][_0x5a72('0x10')](_0x38c135);_0x173c90&&_0x4b83fd['activeMarkers'][_0x5a72('0x34')](_0x378db2[_0x5a72('0x18')])&&_0x3b9975[_0x5a72('0x1a')][_0x5a72('0x15')]('ck-suggestion-marker--active',_0x3a1303),_0x3b9975['writer'][_0x5a72('0x6')](_0x278862,_0x3a1303),_0x3b9975[_0x5a72('0x16')][_0x5a72('0x30')](_0x3a1303,_0x378db2['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4494=['editor','getItems','format','removeFormat','get','plugins','TrackChangesEditing','model','getRanges','afterInit','RemoveFormatEditing','createRangeOn','*Remove\x20all\x20formatting*','schema','has','from','enableCommand','isFormatting','markInlineFormat','selection'];(function(_0x385993,_0x4494e5){const _0x964059=function(_0x34789f){while(--_0x34789f){_0x385993['push'](_0x385993['shift']());}};_0x964059(++_0x4494e5);}(_0x4494,0x150));const _0x9640=function(_0x385993,_0x4494e5){_0x385993=_0x385993-0x0;let _0x964059=_0x4494[_0x385993];return _0x964059;};import{Plugin as _0x5ae6a4}from'ckeditor5/src/core.js';import{getTranslation as _0x23fb3f}from'../utils/common-translations.js';export default class ht extends _0x5ae6a4{[_0x9640('0xd')](){const _0x20ccc5=this[_0x9640('0x4')];if(!_0x20ccc5[_0x9640('0x9')][_0x9640('0x12')](_0x9640('0xe')))return;const _0x131940=_0x20ccc5['plugins'][_0x9640('0x8')](_0x9640('0xa'));_0x131940[_0x9640('0x0')](_0x9640('0x7'),_0x78c50=>{const _0x3e132f=_0x20ccc5[_0x9640('0xb')]['document'][_0x9640('0x3')];_0x3e132f['isCollapsed']?_0x78c50():_0x20ccc5[_0x9640('0xb')]['change'](()=>{const _0x42b556=Array[_0x9640('0x13')](_0x3e132f[_0x9640('0xc')]());for(const _0x24bfba of _0x42b556)for(const _0x2dc617 of _0x24bfba[_0x9640('0x5')]())eo(_0x2dc617,_0x20ccc5[_0x9640('0xb')][_0x9640('0x11')])&&_0x131940[_0x9640('0x2')](_0x20ccc5['model'][_0x9640('0xf')](_0x2dc617),{'commandName':_0x9640('0x7'),'commandParams':[]});});}),_0x131940['_descriptionFactory']['registerDescriptionCallback'](_0x525cc2=>{const {data:_0x2ac86c}=_0x525cc2;if(_0x2ac86c&&_0x9640('0x7')==_0x2ac86c['commandName'])return{'type':_0x9640('0x6'),'content':_0x23fb3f(_0x20ccc5['locale'],_0x9640('0x10'))};});}}function eo(_0x19de8f,_0xd120ff){for(const [_0x4a64e0]of _0x19de8f['getAttributes']()){const _0x484f58=_0xd120ff['getAttributeProperties'](_0x4a64e0);if(_0x484f58&&_0x484f58[_0x9640('0x1')])return!0x0;}return!0x1;}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/mention
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
5
|
/**
|
|
6
6
|
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
7
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12d9=['acceptSuggestion','acceptAllSuggestions','discardSuggestion','trackChanges','RestrictedEditingModeEditing','get','plugins','enableCommand','acceptSelectedSuggestions','goToPreviousRestrictedEditingException','afterInit','discardAllSuggestions','TrackChangesEditing','editor'];(function(_0x18ba7f,_0x12d911){const _0xd56ecf=function(_0x1e6fdd){while(--_0x1e6fdd){_0x18ba7f['push'](_0x18ba7f['shift']());}};_0xd56ecf(++_0x12d911);}(_0x12d9,0xcb));const _0xd56e=function(_0x18ba7f,_0x12d911){_0x18ba7f=_0x18ba7f-0x0;let _0xd56ecf=_0x12d9[_0x18ba7f];return _0xd56ecf;};import{Plugin as _0x5b47af}from'ckeditor5/src/core.js';export default class ut extends _0x5b47af{[_0xd56e('0x3')](){const _0x204b02=this[_0xd56e('0x6')];if(!_0x204b02[_0xd56e('0xd')]['has'](_0xd56e('0xb')))return;const _0x3ba674=_0x204b02[_0xd56e('0xd')]['get'](_0xd56e('0x5'));_0x3ba674[_0xd56e('0x0')](_0xd56e('0x2')),_0x3ba674[_0xd56e('0x0')]('goToNextRestrictedEditingException');const _0x4db8d4=_0x204b02[_0xd56e('0xd')][_0xd56e('0xc')](_0xd56e('0xb'));_0x4db8d4[_0xd56e('0x0')](_0xd56e('0xa')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x7')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x9')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x8')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x4')),_0x4db8d4[_0xd56e('0x0')](_0xd56e('0x1')),_0x4db8d4[_0xd56e('0x0')]('discardSelectedSuggestions');}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/shiftentercommand
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import { ShiftEnter } from 'ckeditor5/src/enter.js';
|
|
6
6
|
/**
|
|
7
7
|
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
8
8
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b3c=['markerName','ck-suggestion-marker-','ck-suggestion-marker--active','get','merge','data','span','TrackChangesEditing','editor','editing','_descriptionFactory','createUIElement','enableCommand','toViewPosition','writer','high','model','downcastDispatcher','showSuggestionHighlights','markerRange','test','split','locale','activeMarkers','name','element','plugins','mapper','softBreak','includes','requires','shiftEnter','createPositionBefore'];(function(_0x528d6f,_0x3b3c55){const _0x3202c2=function(_0x115fcf){while(--_0x115fcf){_0x528d6f['push'](_0x528d6f['shift']());}};_0x3202c2(++_0x3b3c55);}(_0x3b3c,0x1bf));const _0x3202=function(_0x528d6f,_0x3b3c55){_0x528d6f=_0x528d6f-0x0;let _0x3202c2=_0x3b3c[_0x528d6f];return _0x3202c2;};import{Plugin as _0x319e3a}from'ckeditor5/src/core.js';import{ShiftEnter as _0x218ea9}from'ckeditor5/src/enter.js';import{getTranslation as _0x4a64f4}from'../utils/common-translations.js';export default class ft extends _0x319e3a{static get[_0x3202('0xc')](){return[_0x218ea9];}['init'](){const _0x272453=this[_0x3202('0x17')],_0x29c658=_0x272453['plugins'][_0x3202('0x12')](_0x3202('0x16'));_0x29c658[_0x3202('0x1b')](_0x3202('0xd')),_0x272453[_0x3202('0x18')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0x272453),{'priority':_0x3202('0x1e')}),_0x272453[_0x3202('0x18')][_0x3202('0x20')]['on']('addMarker:suggestion:deletion',re(_0x272453),{'priority':_0x3202('0x1e')}),_0x272453[_0x3202('0x14')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x247d4d,_0x1fbc66,_0x32e1d0)=>{_0x32e1d0['options'][_0x3202('0x0')]&&re(_0x272453,{'showActiveMarker':!0x1})(_0x247d4d,_0x1fbc66,_0x32e1d0);}),_0x29c658[_0x3202('0x19')]['registerElementLabel']('softBreak',_0x2814e3=>_0x4a64f4(_0x272453[_0x3202('0x4')],'ELEMENT_LINE_BREAK',_0x2814e3));}}function re(_0x2a9283,{showActiveMarker:_0x7767c8=!0x0}={}){return(_0x316bf3,_0x39a9e9,_0x4d4158)=>{const _0xd504cc=_0x2a9283[_0x3202('0x8')]['get']('TrackChangesEditing');if(!_0x4d4158['consumable'][_0x3202('0x2')](_0x39a9e9[_0x3202('0x1')],_0x316bf3[_0x3202('0x6')]))return;const _0x2db179=_0x2a9283[_0x3202('0x1f')];for(const _0x4313f3 of _0x39a9e9['markerRange']['getItems']()){if(!_0x4313f3['is'](_0x3202('0x7'),_0x3202('0xa')))continue;const _0xbc91de='deletion'==_0x39a9e9[_0x3202('0xf')][_0x3202('0x3')](':')[0x1]?_0x3202('0x13'):_0x3202('0x3'),_0x2151e5=_0x4d4158[_0x3202('0x1d')][_0x3202('0x1a')](_0x3202('0x15'),{'class':_0x3202('0x10')+_0xbc91de}),_0x386d84=_0x4d4158[_0x3202('0x9')][_0x3202('0x1c')](_0x2db179[_0x3202('0xe')](_0x4313f3));_0x7767c8&&_0xd504cc[_0x3202('0x5')][_0x3202('0xb')](_0x39a9e9[_0x3202('0xf')])&&_0x4d4158[_0x3202('0x1d')]['addClass'](_0x3202('0x11'),_0x2151e5),_0x4d4158['writer']['insert'](_0x386d84,_0x2151e5),_0x4d4158[_0x3202('0x9')]['bindElementToMarker'](_0x2151e5,_0x39a9e9['markerName']);}};}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/mention
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
5
|
/**
|
|
6
6
|
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
7
7
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10fc=['change','markInlineFormat','get','enableCommand','document','selection','isCollapsed','forceValue','editor','registerDescriptionCallback','has','FORMAT_RESTRICTED_ENABLED','model','afterInit','plugins','commandName','from','restrictedEditingException','commands','TrackChangesEditing','commandParams','_descriptionFactory','getRanges'];(function(_0x1124f0,_0x10fcd2){const _0x510784=function(_0x52b73e){while(--_0x52b73e){_0x1124f0['push'](_0x1124f0['shift']());}};_0x510784(++_0x10fcd2);}(_0x10fc,0xac));const _0x5107=function(_0x1124f0,_0x10fcd2){_0x1124f0=_0x1124f0-0x0;let _0x510784=_0x10fc[_0x1124f0];return _0x510784;};import{Plugin as _0x169456}from'ckeditor5/src/core.js';import{getRangesWithAttribute as _0x39fe83}from'./utils.js';import{getTranslation as _0x5409a7}from'../utils/common-translations.js';export default class lt extends _0x169456{[_0x5107('0x2')](){const _0xf5cd25=this[_0x5107('0x14')],_0x355811=_0xf5cd25[_0x5107('0x1')],_0x1639e9=_0xf5cd25['locale'];if(!_0xf5cd25[_0x5107('0x3')][_0x5107('0x16')]('StandardEditingModeEditing'))return;const _0x3f2aef=_0xf5cd25[_0x5107('0x3')][_0x5107('0xe')](_0x5107('0x8')),_0xed5aac=_0x5107('0x6'),_0x1981d9=_0xf5cd25[_0x5107('0x7')][_0x5107('0xe')](_0xed5aac);_0x3f2aef[_0x5107('0xf')](_0xed5aac,(_0x330be3,_0x33ae70={})=>{const _0x83010=_0x355811[_0x5107('0x10')][_0x5107('0x11')];if(_0x83010[_0x5107('0x12')])return void _0x330be3(_0x33ae70);const _0x2c97ec=void 0x0!==_0x33ae70['forceValue']?_0x33ae70[_0x5107('0x13')]:!_0x1981d9['value'];_0x355811[_0x5107('0xc')](()=>{const _0x15d4e9=Array[_0x5107('0x5')](_0x83010[_0x5107('0xb')]());for(const _0x403272 of _0x15d4e9){const _0x43e8d0=_0x2c97ec?[_0x403272]:_0x39fe83(_0xed5aac,_0x403272,_0x355811);for(const _0x3bb978 of _0x43e8d0)_0x3f2aef[_0x5107('0xd')](_0x3bb978,{'commandName':_0xed5aac,'commandParams':[{'forceValue':_0x2c97ec}]});}});}),_0x3f2aef[_0x5107('0xa')][_0x5107('0x15')](_0x2ea096=>{const {data:_0x2b6197}=_0x2ea096;if(_0x2b6197&&_0x2b6197[_0x5107('0x4')]==_0xed5aac)return _0x2b6197[_0x5107('0x9')][0x0][_0x5107('0x13')]?{'type':'format','content':_0x5409a7(_0x1639e9,_0x5107('0x0'))}:{'type':'format','content':_0x5409a7(_0x1639e9,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/style
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
5
|
/**
|
|
6
6
|
* Provides track changes plugin integration for styles dropdown feature.
|
|
7
7
|
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41f4=['*Format:*\x20%0','add','classes','block','TrackChangesEditing','locale','getAncestors','enableCommand','modelElements','getDefinitionsForView','value','Style','getRanges','normalizeConfig','every','isCollapsed','enabledStyles','styleName','includes','getSelectedBlocks','editor','model','format','document','toLowerCase','name','_getRangesWithClasses','commands','*Remove\x20format:*\x20%0','isBlock','markInlineFormat','_getStyleDefinition','find','markBlockFormat','style','style.definitions','get','plugins','afterInit','selection','has','commandName','change','push','commandParams'];(function(_0x273118,_0x41f45b){const _0x262c1e=function(_0x483dda){while(--_0x483dda){_0x273118['push'](_0x273118['shift']());}};_0x262c1e(++_0x41f45b);}(_0x41f4,0x108));const _0x262c=function(_0x273118,_0x41f45b){_0x273118=_0x273118-0x0;let _0x262c1e=_0x41f4[_0x273118];return _0x262c1e;};import{Plugin as _0x12eb29}from'ckeditor5/src/core.js';import{getTranslation as _0x1947ba}from'../utils/common-translations.js';export default class gt extends _0x12eb29{[_0x262c('0x2c')](){const _0x1fb51f=this[_0x262c('0x1a')];if(!_0x1fb51f['plugins'][_0x262c('0x1')](_0x262c('0x11')))return;const _0x245ec0=_0x1fb51f[_0x262c('0x21')][_0x262c('0x2a')](_0x262c('0x28')),_0x47f9b6=_0x1fb51f[_0x262c('0x2b')][_0x262c('0x2a')](_0x262c('0xa')),_0x104a8e=_0x1fb51f[_0x262c('0xb')],_0x50a235=_0x1fb51f[_0x262c('0x2b')]['get']('DataSchema'),_0x147b08=_0x1fb51f['plugins'][_0x262c('0x2a')]('StyleUtils')[_0x262c('0x13')](_0x50a235,_0x1fb51f['config'][_0x262c('0x2a')](_0x262c('0x29')));_0x47f9b6[_0x262c('0xd')]('style',(_0x4ad1a0,{styleName:_0x2cd0d1})=>{const _0xaecd70=_0x1fb51f[_0x262c('0x1b')][_0x262c('0x1d')][_0x262c('0x0')],_0x5528c0=this[_0x262c('0x25')](_0x2cd0d1,_0x147b08);if(!_0x5528c0)return;if(!_0x245ec0[_0x262c('0x16')][_0x262c('0x18')](_0x2cd0d1))return;if(_0xaecd70[_0x262c('0x15')]&&!_0x5528c0[_0x262c('0x23')])return void _0x4ad1a0({'styleName':_0x2cd0d1});const _0xe62b4b=!_0x245ec0[_0x262c('0x10')]['includes'](_0x5528c0[_0x262c('0x1f')]);if(_0x5528c0['isBlock']){const _0x2bb852=function(_0x1c4a07,_0x5066c8){const _0x2e6bc5=new Set();for(const _0x422156 of _0x1c4a07){const _0x40275f=_0x422156[_0x262c('0xc')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x44cd9b of _0x40275f)if(_0x5066c8[_0x262c('0x18')](_0x44cd9b[_0x262c('0x1f')])){_0x2e6bc5[_0x262c('0x7')](_0x44cd9b);break;}}return _0x2e6bc5;}(_0xaecd70[_0x262c('0x19')](),_0x5528c0[_0x262c('0xe')]);_0x1fb51f['model'][_0x262c('0x3')](()=>{for(const _0x2cbc96 of _0x2bb852)_0x47f9b6[_0x262c('0x27')](_0x2cbc96,{'commandName':_0x262c('0x28'),'commandParams':[{'styleName':_0x2cd0d1,'forceValue':_0xe62b4b}],'formatGroupId':'style:'+_0x2cd0d1});});}else{let _0x5c01c8=Array['from'](_0xaecd70[_0x262c('0x12')]());if(!_0xe62b4b){const _0x38b4fc=Array['from'](_0x50a235[_0x262c('0xf')](_0x5528c0['element'],!0x1))[0x0][_0x262c('0x1b')],_0x5be7c4=[];for(const _0x23eca5 of _0x5c01c8){const _0x583053=this[_0x262c('0x20')](_0x1fb51f[_0x262c('0x1b')],_0x23eca5,_0x5528c0[_0x262c('0x8')],_0x38b4fc);_0x5be7c4[_0x262c('0x4')](..._0x583053);}_0x5c01c8=_0x5be7c4;}_0x1fb51f[_0x262c('0x1b')][_0x262c('0x3')](()=>{for(const _0x259c0c of _0x5c01c8)_0x47f9b6[_0x262c('0x24')](_0x259c0c,{'commandName':_0x262c('0x28'),'commandParams':[{'styleName':_0x2cd0d1,'forceValue':_0xe62b4b}]});});}}),_0x47f9b6['_descriptionFactory']['registerDescriptionCallback'](_0x282d50=>{const {data:_0x1692ec}=_0x282d50;if(_0x1692ec&&_0x262c('0x28')===_0x1692ec[_0x262c('0x2')])return _0x1692ec[_0x262c('0x5')][0x0]['forceValue']?{'type':_0x262c('0x1c'),'content':_0x1947ba(_0x104a8e,_0x262c('0x6'),_0x1692ec[_0x262c('0x5')][0x0][_0x262c('0x17')][_0x262c('0x1e')]())}:{'type':_0x262c('0x1c'),'content':_0x1947ba(_0x104a8e,_0x262c('0x22'),_0x1692ec['commandParams'][0x0][_0x262c('0x17')][_0x262c('0x1e')]())};});}[_0x262c('0x25')](_0x40577f,_0x3f2a2b){let _0x4f3cdc=_0x3f2a2b[_0x262c('0x9')][_0x262c('0x26')](_0x5e6476=>_0x5e6476[_0x262c('0x1f')]===_0x40577f);return _0x4f3cdc||(_0x4f3cdc=_0x3f2a2b['inline'][_0x262c('0x26')](_0x5e9c82=>_0x5e9c82['name']===_0x40577f)),_0x4f3cdc;}[_0x262c('0x20')](_0x3732bd,_0x1d7737,_0x4224c7,_0x3ea085){const _0x34def2=[];for(const _0x44227b of _0x1d7737['getItems']()){const _0x51f5c9=_0x44227b['getAttribute'](_0x3ea085);_0x51f5c9&&(_0x4224c7[_0x262c('0x14')](_0x54488f=>_0x51f5c9[_0x262c('0x8')][_0x262c('0x18')](_0x54488f))&&_0x34def2[_0x262c('0x4')](_0x3732bd['createRangeOn'](_0x44227b)));}return _0x34def2;}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/table
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
5
5
|
/**
|
|
6
6
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
7
7
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4839=['_getSuggestionCoords','addRange','removeTableRow','$graveyard','toLowerCase','selectTableRow','from','ELEMENT_TABLE_WITH_TEXT','detach','markMultiRangeInsertion','createRangeIn','substr','markMultiRangeDeletion','getItems','ELEMENT_TABLE_ROW','document','start','locale','TableUtils','insertion','getColumnIndexes','deletion','editor','plugins','MIN_SAFE_INTEGER','root','includes','ELEMENT_TABLE_ROW_WITH_TEXT','max','last','get','push','fromRange','selection','subType','hasAttribute','maxColumn','_tableSuggestions','*Remove:*\x20%0','getAttribute','tableCell','addMarker:suggestion','ELEMENT_TABLE','isArray','ELEMENT_TABLE_COLUMN','insert','*Insert:*\x20%0','getContainedElement','discard','rootName','getChildren','getSuggestion','nodeAfter','createPositionAt','createTableWalker','getSelectionAffectedTableCells','data','suggestion','has','_splitMarkerName','_setupColumnsRowsFixing','isEqual','refresh','tableColumn','span','order','change','mapper','classes','accept','name','differ','table','insertTable','oldRange','values','position','_tablePostFixingSubtypes','type','min','_acceptFormatSuggestionCallbackFactory','selectTableColumn','low','join','getCellLocation','tablePaste','registerPostFixer','maxRow','options','showSuggestionHighlights','afterInit','item','colspan','insertTableColumnRight','isInContent','model','end','enqueueChange','removeTableColumn','downcastDispatcher','_suggestionFactory','getRanges','registerElementLabel','findAncestor','length','tableRow','writer','change:data','_getCoordsForCells','registerDescriptionCallback','first','toViewElement','commands','$textProxy','filter','setSelection','some','registerCustomCallback','every','_descriptionFactory','insertTableRowAbove','rowspan','createRangeOn','TableEditing','insertTableColumnLeft','map','getFirstRange','execute','getChangedMarkers','enableCommand'];(function(_0x384fd1,_0x483994){const _0x34af0b=function(_0x5beea8){while(--_0x5beea8){_0x384fd1['push'](_0x384fd1['shift']());}};_0x34af0b(++_0x483994);}(_0x4839,0x72));const _0x34af=function(_0x384fd1,_0x483994){_0x384fd1=_0x384fd1-0x0;let _0x34af0b=_0x4839[_0x384fd1];return _0x34af0b;};import{Plugin as _0xf30e0e}from'ckeditor5/src/core';import{LiveRange as _0x20005b}from'ckeditor5/src/engine';import{setHighlightHandling as _0x1e1a10}from'ckeditor5/src/widget';import{getTranslation as _0x283a1f}from'../utils/common-translations';export default class mt extends _0xf30e0e{constructor(_0x595851){super(_0x595851),this[_0x34af('0x5d')]=[_0x34af('0x79'),_0x34af('0x4f')],this[_0x34af('0x35')]=new Set();}[_0x34af('0x6a')](){const _0x4139e0=this[_0x34af('0x26')],_0x598c61=_0x4139e0['model'][_0x34af('0x1f')][_0x34af('0x31')];if(!_0x4139e0[_0x34af('0x27')][_0x34af('0x4a')](_0x34af('0x9')))return;const _0x3b8215=_0x4139e0[_0x34af('0x21')],_0x2d2043=_0x4139e0[_0x34af('0x27')]['get']('TrackChangesEditing'),_0x2f648a=_0x4139e0[_0x34af('0x27')][_0x34af('0x2e')](_0x34af('0x22'));_0x2d2043[_0x34af('0x5')][_0x34af('0x76')](_0x34af('0x58'),_0x4e888f=>_0x283a1f(_0x3b8215,_0x34af('0x3a'),_0x4e888f)),this[_0x34af('0x4c')](),_0x2d2043[_0x34af('0xf')](_0x34af('0x59')),_0x2d2043[_0x34af('0xf')](_0x34af('0x15')),_0x2d2043[_0x34af('0xf')](_0x34af('0x61'));for(const _0xc0a786 of[_0x34af('0x6'),'insertTableRowBelow']){const _0x3ca9bf=_0x4139e0['commands'][_0x34af('0x2e')](_0xc0a786);_0x2d2043[_0x34af('0xf')](_0xc0a786,_0x28dc69=>{_0x4139e0[_0x34af('0x6f')][_0x34af('0x52')](_0x58df9c=>{_0x28dc69();const _0x5aa9a6='above'===_0x3ca9bf[_0x34af('0x51')],_0x47d412=_0x2f648a[_0x34af('0x47')](_0x598c61),_0xd509a2=_0x2f648a['getRowIndexes'](_0x47d412),_0x5c6f28=_0x5aa9a6?_0xd509a2[_0x34af('0x7e')]-0x1:_0xd509a2[_0x34af('0x2d')]+0x1,_0x401c3c=_0x47d412[0x0][_0x34af('0x77')]('table'),_0x34176e=_0x2f648a['createTableWalker'](_0x401c3c,{'startRow':_0x5c6f28,'endRow':_0x5c6f28}),_0x2a1c82=Array['from'](_0x34176e)[_0x34af('0xb')](_0x24e2ef=>_0x58df9c[_0x34af('0x8')](_0x24e2ef['cell']));_0x2d2043[_0x34af('0x19')](_0x2a1c82,_0x34af('0x79'));});});}for(const _0x555021 of[_0x34af('0xa'),_0x34af('0x6d')]){const _0x33a41b=_0x4139e0['commands'][_0x34af('0x2e')](_0x555021);_0x2d2043[_0x34af('0xf')](_0x555021,_0x404a62=>{_0x4139e0['model'][_0x34af('0x52')](_0x3838c2=>{_0x404a62();const _0x395d92='left'===_0x33a41b[_0x34af('0x51')],_0x14ba46=_0x2f648a[_0x34af('0x47')](_0x598c61),_0x163dd7=_0x2f648a[_0x34af('0x24')](_0x14ba46),_0x41f8d7=_0x395d92?_0x163dd7['first']-0x1:_0x163dd7[_0x34af('0x2d')]+0x1,_0x89d8=_0x14ba46[0x0]['findAncestor'](_0x34af('0x58')),_0x31c0fe=_0x2f648a[_0x34af('0x46')](_0x89d8,{'startRow':0x0,'column':_0x41f8d7,'includeAllSlots':!0x1}),_0x495098=Array[_0x34af('0x16')](_0x31c0fe)[_0x34af('0xb')](_0x105b22=>_0x3838c2[_0x34af('0x8')](_0x105b22['cell']));_0x2d2043['markMultiRangeInsertion'](_0x495098,'tableColumn');});});}for(const _0x5e29d9 of[_0x34af('0x12'),_0x34af('0x72')]){const _0xf86ca7=_0x5e29d9['substr'](0xb),_0x500d73=_0xf86ca7[_0x34af('0x14')](),_0xa5cf62=_0x500d73['substr'](0x0,0x3)+_0x34af('0x50'),_0x14e6bf='table'+_0xf86ca7,_0x128895=_0x34af('0x5f')+_0xf86ca7,_0x3add37=_0x34af('0x2c')+_0xf86ca7;_0x2d2043[_0x34af('0xf')](_0x5e29d9,()=>{_0x4139e0[_0x34af('0x6f')][_0x34af('0x52')](_0x41a479=>{const _0xcb4283=_0x2f648a[_0x34af('0x47')](_0x598c61),_0x329548=_0xcb4283[0x0][_0x34af('0x77')](_0x34af('0x58'));let _0x40d25f;if(_0x34af('0x12')==_0x5e29d9){const _0x1f98ed=_0x2f648a['getRowIndexes'](_0xcb4283);_0x40d25f={'startRow':_0x1f98ed[_0x34af('0x7e')],'endRow':_0x1f98ed['last'],'includeAllSlots':!0x0};}else{const _0x14b140=_0x2f648a[_0x34af('0x24')](_0xcb4283);_0x40d25f={'startColumn':_0x14b140[_0x34af('0x7e')],'endColumn':_0x14b140['last'],'includeAllSlots':!0x0};}const _0x40869e=_0x2f648a[_0x34af('0x46')](_0x329548,_0x40d25f),_0x5344f1=Array[_0x34af('0x16')](_0x40869e)['map'](({cell:_0x138297})=>_0x138297),_0x2289ef=se(_0x5344f1[_0x34af('0x0')](_0x359d88=>_0x359d88['hasAttribute'](_0xa5cf62))),_0xb214fc=se(_0x5344f1['filter'](_0x497c67=>!_0x497c67[_0x34af('0x33')](_0xa5cf62)))[_0x34af('0xb')](_0x31b982=>_0x41a479['createRangeOn'](_0x31b982)),_0x5b2342=_0x2d2043[_0x34af('0x1c')](_0xb214fc,_0x14e6bf);if(_0x5b2342&&(_0x34af('0x79')==_0x5b2342[_0x34af('0x32')]||_0x34af('0x4f')==_0x5b2342['subType'])){const _0x3c90e2=this[_0x34af('0x10')](_0x5b2342);for(const _0x4d7e08 of _0x2289ef){const _0x495712=_0x41a479['createRangeOn'](_0x4d7e08),_0x4b0000=_0x2f648a[_0x34af('0x64')](_0x4d7e08),_0x47ab3a=_0x4d7e08[_0x34af('0x37')](_0xa5cf62)-0x1,_0x57090e=_0x3c90e2[_0x128895],_0x15390c=_0x3c90e2[_0x3add37];_0x57090e<=_0x4b0000[_0x500d73]&&_0x4b0000[_0x500d73]+_0x47ab3a<=_0x15390c&&_0x5b2342[_0x34af('0x11')](_0x495712);}}});});}function _0x288208(_0x11e568){const _0x790519=Array['from'](_0x598c61[_0x34af('0x75')]())[_0x34af('0xb')](_0x2aa08b=>_0x20005b[_0x34af('0x30')](_0x2aa08b));_0x4139e0[_0x34af('0x6f')]['change'](_0x50afa1=>{const _0x1d38a3=_0x50afa1['batch'];_0x11e568=_0x11e568[_0x34af('0x0')](_0x5d660d=>_0x34af('0x13')!=_0x5d660d[_0x34af('0x29')][_0x34af('0x41')]),_0x50afa1['setSelection'](_0x11e568),_0x4139e0[_0x34af('0x80')]['get']('removeTableRow')['refresh'](),_0x4139e0[_0x34af('0xd')](_0x34af('0x12'),{'forceDefaultExecution':!0x0}),_0x4139e0['model'][_0x34af('0x71')](()=>{_0x4139e0['model'][_0x34af('0x71')](_0x1d38a3,_0x428d89=>{const _0x3cd214=_0x790519[_0x34af('0x0')](_0x21abbc=>_0x34af('0x13')!=_0x21abbc[_0x34af('0x29')][_0x34af('0x41')]);_0x3cd214[_0x34af('0x78')]>0x0&&_0x428d89['setSelection'](_0x3cd214);for(const _0xed2aa9 of _0x790519)_0xed2aa9[_0x34af('0x18')]();});});});}function _0x5d511f(_0x27a943){_0x4139e0[_0x34af('0x6f')][_0x34af('0x52')](_0x11f179=>{const _0x347e7b=Array[_0x34af('0x16')](_0x598c61[_0x34af('0x75')]())[_0x34af('0xb')](_0x332a1e=>_0x20005b[_0x34af('0x30')](_0x332a1e)),_0x48f706=[];for(const _0x28ee00 of _0x27a943)for(const _0x211ff4 of _0x28ee00[_0x34af('0x1d')]({'shallow':!0x0}))_0x48f706[_0x34af('0x2f')](_0x211ff4);for(const _0x2bb653 of _0x48f706)_0x34af('0x13')!=_0x2bb653[_0x34af('0x29')][_0x34af('0x41')]&&(_0x11f179[_0x34af('0x1')](_0x11f179[_0x34af('0x45')](_0x2bb653,0x0)),_0x4139e0[_0x34af('0x80')][_0x34af('0x2e')](_0x34af('0x72'))['refresh'](),_0x4139e0[_0x34af('0xd')](_0x34af('0x72'),{'forceDefaultExecution':!0x0}));const _0x5da3b2=_0x347e7b[_0x34af('0x0')](_0x6b24a8=>_0x34af('0x13')!=_0x6b24a8[_0x34af('0x29')][_0x34af('0x41')]);_0x5da3b2[_0x34af('0x78')]>0x0&&_0x11f179[_0x34af('0x1')](_0x5da3b2);for(const _0x5343b4 of _0x347e7b)_0x5343b4[_0x34af('0x18')]();});}function _0x4e13a4(_0x51e6ac,_0x25d759){return _0x25d759[_0x34af('0x4')](_0x5657ac=>_0x51e6ac[_0x34af('0x2')](_0x1629e1=>_0x1629e1[_0x34af('0x70')][_0x34af('0x4d')](_0x5657ac['start'])||_0x5657ac[_0x34af('0x70')]['isEqual'](_0x1629e1['start'])));}function _0x4ebf9a(_0x5dff00,_0x4d5ce3){return _0x5dff00[_0x34af('0x2')](_0x2c46b0=>_0x4d5ce3[_0x34af('0x2')](_0x5d1218=>_0x2c46b0[_0x34af('0x70')]['isTouching'](_0x5d1218[_0x34af('0x20')])));}_0x4139e0[_0x34af('0x48')][_0x34af('0x73')]['on'](_0x34af('0x39'),(_0x2e8071,_0xafe828,_0x4a5c21)=>{if(!_0x4a5c21[_0x34af('0x68')][_0x34af('0x69')])return;const _0x45e51e=_0xafe828[_0x34af('0x6b')];if(!_0x45e51e)return;const _0x89a20=_0x4a5c21[_0x34af('0x53')][_0x34af('0x7f')](_0x45e51e);function _0x1981d5(_0x3263a1){return Array[_0x34af('0x3b')](_0x3263a1)?_0x3263a1:[_0x3263a1];}_0x89a20&&_0x34af('0x38')===_0x45e51e[_0x34af('0x56')]&&_0x1e1a10(_0x89a20,_0x4a5c21[_0x34af('0x7a')],(_0x5d5d8a,_0x7f7c66,_0x19580e)=>_0x19580e['addClass'](_0x1981d5(_0x7f7c66[_0x34af('0x54')]),_0x5d5d8a),(_0x336a7f,_0x5384fe,_0x31073f)=>_0x31073f['removeClass'](_0x1981d5(_0x5384fe[_0x34af('0x54')]),_0x336a7f));},{'priority':'highest'}),_0x2d2043[_0x34af('0x5')][_0x34af('0x7d')](_0xa17637=>{if(_0x34af('0x23')!=_0xa17637[_0x34af('0x5e')]&&_0x34af('0x25')!=_0xa17637[_0x34af('0x5e')])return;const _0x287591=_0xa17637[_0x34af('0x3f')]();if(null!=_0x287591&&_0x287591['is']('element',_0x34af('0x58'))){if('insertion'==_0xa17637[_0x34af('0x5e')]){const _0x39b7f5=_0xa17637[_0x34af('0x1d')]()[_0x34af('0x0')](_0x30124a=>_0x30124a['is'](_0x34af('0x81')))[_0x34af('0xb')](_0x277613=>_0x277613[_0x34af('0x48')]);if(_0x39b7f5[_0x34af('0x78')])return{'type':'insertion','content':_0x283a1f(_0x3b8215,_0x34af('0x3e'),_0x283a1f(_0x3b8215,_0x34af('0x17'),'\x22'+_0x39b7f5['join']('\x20')+'\x22'))};}if(_0x34af('0x25')==_0xa17637['type']){const _0x20af95=_0xa17637[_0x34af('0x1d')]()[_0x34af('0x0')](_0x3e99a7=>_0x3e99a7['is'](_0x34af('0x81')))['map'](_0x31bf0=>_0x31bf0[_0x34af('0x48')]);if(_0x20af95[_0x34af('0x78')])return{'type':'deletion','content':_0x283a1f(_0x3b8215,_0x34af('0x36'),_0x283a1f(_0x3b8215,_0x34af('0x17'),'\x22'+_0x20af95[_0x34af('0x63')]('\x20')+'\x22'))};}}}),_0x2d2043[_0x34af('0x5')]['registerDescriptionCallback'](_0xa1f06f=>{if(_0x34af('0x79')==_0xa1f06f[_0x34af('0x32')]){const _0x269f4a=_0xa1f06f[_0x34af('0x1d')]()[_0x34af('0x0')](_0x2187d1=>_0x2187d1['is'](_0x34af('0x81')))[_0x34af('0xb')](_0x55bb96=>_0x55bb96[_0x34af('0x48')]),_0x123b99=this['_getSuggestionCoords'](_0xa1f06f),_0x424de4=_0x123b99[_0x34af('0x67')]-_0x123b99['minRow']+0x1;if(_0x34af('0x23')==_0xa1f06f[_0x34af('0x5e')])return _0x269f4a['length']?{'type':_0x34af('0x23'),'content':_0x283a1f(_0x3b8215,'*Insert:*\x20%0',_0x283a1f(_0x3b8215,_0x34af('0x2b'),[_0x424de4,'\x22'+_0x269f4a['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x283a1f(_0x3b8215,'*Insert:*\x20%0',_0x283a1f(_0x3b8215,_0x34af('0x1e'),_0x424de4))};if(_0x34af('0x25')==_0xa1f06f[_0x34af('0x5e')])return _0x269f4a['length']?{'type':_0x34af('0x25'),'content':_0x283a1f(_0x3b8215,_0x34af('0x36'),_0x283a1f(_0x3b8215,_0x34af('0x2b'),[_0x424de4,'\x22'+_0x269f4a[_0x34af('0x63')]('\x20')+'\x22']))}:{'type':_0x34af('0x25'),'content':_0x283a1f(_0x3b8215,'*Remove:*\x20%0',_0x283a1f(_0x3b8215,'ELEMENT_TABLE_ROW',_0x424de4))};}if('tableColumn'==_0xa1f06f[_0x34af('0x32')]){const _0x260f87=_0xa1f06f['getItems']()[_0x34af('0x0')](_0x155cb0=>_0x155cb0['is'](_0x34af('0x81')))[_0x34af('0xb')](_0x44f88d=>_0x44f88d['data']),_0x52be51=this[_0x34af('0x10')](_0xa1f06f),_0xbca23e=_0x52be51[_0x34af('0x34')]-_0x52be51['minColumn']+0x1;if('insertion'==_0xa1f06f['type'])return _0x260f87[_0x34af('0x78')]?{'type':_0x34af('0x23'),'content':_0x283a1f(_0x3b8215,_0x34af('0x3e'),_0x283a1f(_0x3b8215,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbca23e,'\x22'+_0x260f87['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x283a1f(_0x3b8215,_0x34af('0x3e'),_0x283a1f(_0x3b8215,_0x34af('0x3c'),_0xbca23e))};if('deletion'==_0xa1f06f[_0x34af('0x5e')])return _0x260f87['length']?{'type':_0x34af('0x25'),'content':_0x283a1f(_0x3b8215,_0x34af('0x36'),_0x283a1f(_0x3b8215,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbca23e,'\x22'+_0x260f87[_0x34af('0x63')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x283a1f(_0x3b8215,'*Remove:*\x20%0',_0x283a1f(_0x3b8215,_0x34af('0x3c'),_0xbca23e))};}}),_0x2d2043[_0x34af('0x74')]['registerCustomCallback']('insertion','tableRow',_0x34af('0x40'),_0x288208),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x25'),_0x34af('0x79'),_0x34af('0x55'),_0x288208),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x23'),_0x34af('0x4f'),_0x34af('0x40'),_0x5d511f),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x25'),_0x34af('0x4f'),_0x34af('0x55'),_0x5d511f),_0x2d2043[_0x34af('0x74')]['registerCustomCallback']('insertion',_0x34af('0x4f'),_0x34af('0x63'),_0x4e13a4),_0x2d2043['_suggestionFactory'][_0x34af('0x3')](_0x34af('0x25'),_0x34af('0x4f'),'join',_0x4e13a4),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x23'),_0x34af('0x79'),_0x34af('0x63'),_0x4ebf9a),_0x2d2043[_0x34af('0x74')][_0x34af('0x3')](_0x34af('0x25'),_0x34af('0x79'),_0x34af('0x63'),_0x4ebf9a);}[_0x34af('0x60')](){const _0x411ea4=this[_0x34af('0x26')],_0x5d14ee=_0x411ea4[_0x34af('0x6f')][_0x34af('0x1f')][_0x34af('0x31')];return(_0x5b7797,_0x47cbec)=>{_0x411ea4[_0x34af('0x6f')][_0x34af('0x52')](_0x352470=>{const {commandName:_0x591c9f,commandParams:_0x407782}=_0x47cbec;let _0x567f7c=_0x5b7797[0x0]['end']['nodeBefore'];_0x407782&&_0x407782[0x0]&&!0x1===_0x407782[0x0]['forceValue']&&(_0x567f7c=_0x5b7797[0x0]['start']['nodeAfter']);const _0x51435a=_0x352470[_0x34af('0x1a')](_0x567f7c);if(_0x34af('0x13')==_0x51435a[_0x34af('0x29')][_0x34af('0x41')])return;const _0x1eaf8a=Array[_0x34af('0x16')](_0x5d14ee['getRanges']())[_0x34af('0xb')](_0x360bc9=>_0x20005b[_0x34af('0x30')](_0x360bc9));_0x352470[_0x34af('0x1')](_0x51435a),_0x411ea4[_0x34af('0x80')][_0x34af('0x2e')](_0x591c9f)[_0x34af('0x4e')](),_0x407782[_0x34af('0x2f')]({'forceDefaultExecution':!0x0}),_0x411ea4[_0x34af('0xd')](_0x591c9f,..._0x407782);const _0x30dcc3=_0x1eaf8a[_0x34af('0x0')](_0x1745a5=>'$graveyard'!=_0x1745a5[_0x34af('0x29')][_0x34af('0x41')]);_0x30dcc3[_0x34af('0x78')]>0x0&&_0x352470[_0x34af('0x1')](_0x30dcc3);for(const _0x2dca44 of _0x1eaf8a)_0x2dca44[_0x34af('0x18')]();});};}['_getCoordsForCells'](_0x1772b3){const _0x2c2b3d=this[_0x34af('0x26')]['plugins'][_0x34af('0x2e')](_0x34af('0x22'));let _0x3abc8c=Number['MAX_SAFE_INTEGER'],_0x4ce771=Number[_0x34af('0x28')],_0x548043=Number['MAX_SAFE_INTEGER'],_0x10f60a=Number[_0x34af('0x28')];for(const _0x18da17 of _0x1772b3){if(_0x34af('0x13')==_0x18da17['root'][_0x34af('0x41')])continue;const {row:_0x392e10,column:_0x4f3bb0}=_0x2c2b3d[_0x34af('0x64')](_0x18da17),_0x357bf9=_0x18da17[_0x34af('0x33')](_0x34af('0x7'))?_0x18da17[_0x34af('0x37')](_0x34af('0x7'))-0x1:0x0,_0x16af61=_0x18da17[_0x34af('0x33')](_0x34af('0x6c'))?_0x18da17['getAttribute'](_0x34af('0x6c'))-0x1:0x0;_0x3abc8c=_0x392e10<_0x3abc8c?_0x392e10:_0x3abc8c,_0x4ce771=_0x392e10+_0x357bf9>_0x4ce771?_0x392e10+_0x357bf9:_0x4ce771,_0x548043=_0x4f3bb0<_0x548043?_0x4f3bb0:_0x548043,_0x10f60a=_0x4f3bb0+_0x16af61>_0x10f60a?_0x4f3bb0+_0x16af61:_0x10f60a;}return{'minRow':_0x3abc8c,'maxRow':_0x4ce771,'minColumn':_0x548043,'maxColumn':_0x10f60a};}[_0x34af('0x4c')](){const _0x475996=this[_0x34af('0x26')],_0x1b95c2=_0x475996[_0x34af('0x27')][_0x34af('0x2e')]('TrackChangesEditing'),_0x334909=_0x475996['plugins']['get'](_0x34af('0x22'));_0x475996['model'][_0x34af('0x1f')]['on'](_0x34af('0x7b'),()=>{const _0x2620e3=Array['from'](_0x475996[_0x34af('0x6f')]['document'][_0x34af('0x57')][_0x34af('0xe')]());for(const {name:_0x540372,data:_0xc3c667}of _0x2620e3){const {group:_0x28f69a,id:_0x36f5c7,subType:_0x5d0951}=_0x1b95c2[_0x34af('0x4b')](_0x540372);if(_0x34af('0x49')!=_0x28f69a)continue;if(null!=_0xc3c667[_0x34af('0x5a')])continue;const _0x5c1bb3=_0x1b95c2[_0x34af('0x43')](_0x36f5c7);this[_0x34af('0x5d')][_0x34af('0x2a')](_0x5d0951)&&this[_0x34af('0x35')]['add'](_0x5c1bb3);}},{'priority':_0x34af('0x62')});const _0x54cae1=(_0x390240,_0x5e1cd4)=>{let _0x8ec33f=!0x1;const _0x3a4502=_0x5e1cd4[_0x34af('0x8')](_0x390240),_0x3d054c=_0x390240[_0x34af('0x77')]('table'),_0x40ace7=_0x334909[_0x34af('0x64')](_0x390240);for(const _0xf61127 of this['_tableSuggestions']){const _0x4ba632=_0xf61127[_0x34af('0x32')],_0x2a536d=_0x4ba632['startsWith'](_0x34af('0x65')),_0x19c53d=_0x4ba632[_0x34af('0x1b')](_0x2a536d?0xa:0x5),_0x4e0517=_0x19c53d['toLowerCase'](),_0x155f92=_0x4e0517[_0x34af('0x1b')](0x0,0x3)+_0x34af('0x50'),_0x1bdd87=_0x34af('0x5f')+_0x19c53d,_0x164e93=_0x34af('0x2c')+_0x19c53d;if(!_0xf61127[_0x34af('0x6e')])continue;if(_0x3d054c!=_0xf61127[_0x34af('0xc')]()['start'][_0x34af('0x77')](_0x34af('0x58')))continue;if(_0xf61127['isIntersectingWithRange'](_0x3a4502))continue;const _0x2dbb67=_0x390240['hasAttribute'](_0x155f92)?_0x390240[_0x34af('0x37')](_0x155f92)-0x1:0x0,_0x4ae8dc=this[_0x34af('0x10')](_0xf61127),_0x36bb8b=_0x4ae8dc[_0x1bdd87],_0x4ed9ae=_0x4ae8dc[_0x164e93];_0x36bb8b<=_0x40ace7[_0x4e0517]&&_0x40ace7[_0x4e0517]+_0x2dbb67<=_0x4ed9ae&&(_0xf61127['addRange'](_0x3a4502),_0x8ec33f=!0x0);}return _0x8ec33f;};_0x475996[_0x34af('0x6f')][_0x34af('0x1f')][_0x34af('0x66')](_0xe2019=>{let _0x193d0d=!0x1;for(const _0x18abb9 of _0x475996['model']['document'][_0x34af('0x57')]['getChanges']())if(_0x34af('0x3d')==_0x18abb9[_0x34af('0x5e')]){if('tableRow'==_0x18abb9['name'])for(const _0x285436 of _0x18abb9[_0x34af('0x5c')]['nodeAfter'][_0x34af('0x42')]())_0x193d0d=_0x193d0d||_0x54cae1(_0x285436,_0xe2019);else _0x34af('0x38')==_0x18abb9[_0x34af('0x56')]&&(_0x193d0d=_0x193d0d||_0x54cae1(_0x18abb9['position'][_0x34af('0x44')],_0xe2019));}return _0x193d0d;});}[_0x34af('0x10')](_0x5b3856){return this[_0x34af('0x7c')](_0x5b3856[_0x34af('0x75')]()['map'](_0x3cfeb8=>_0x3cfeb8[_0x34af('0x20')][_0x34af('0x44')]));}}function se(_0x2b78fc){return Array[_0x34af('0x16')](new Set(_0x2b78fc)[_0x34af('0x5b')]());}
|
|
23
|
+
const _0xb443=['_descriptionFactory','registerDescriptionCallback','map','markMultiRangeInsertion','enqueueChange','item','isArray','getCellLocation','min','removeTableColumn','afterInit','from','_acceptFormatSuggestionCallbackFactory','addRange','differ','markMultiRangeDeletion','isInContent','refresh','editor','discard','every','selectTableColumn','getItems','isEqual','insertTableColumnLeft','$textProxy','insert','low','cell','classes','toViewElement','removeClass','startsWith','findAncestor','MAX_SAFE_INTEGER','*Insert:*\x20%0','addClass','selection','enableCommand','ELEMENT_TABLE_COLUMN_WITH_TEXT','length','downcastDispatcher','insertTableColumnRight','createRangeOn','ELEMENT_TABLE_COLUMN','ELEMENT_TABLE_ROW_WITH_TEXT','getSuggestion','name','colspan','$graveyard','has','mapper','toLowerCase','batch','*Remove:*\x20%0','hasAttribute','model','deletion','MIN_SAFE_INTEGER','ELEMENT_TABLE','detach','nodeBefore','createRangeIn','some','data','minRow','_getCoordsForCells','values','setSelection','registerCustomCallback','ELEMENT_TABLE_WITH_TEXT','substr','change','_getSuggestionCoords','fromRange','isIntersectingWithRange','end','get','push','rootName','insertTable','type','getColumnIndexes','_tableSuggestions','highest','nodeAfter','root','span','filter','first','getChangedMarkers','execute','oldRange','includes','tableRow','join','rowspan','plugins','position','insertTableRowAbove','locale','insertTableRowBelow','getRowIndexes','selectTableRow','TrackChangesEditing','ELEMENT_TABLE_ROW','element','createPositionAt','accept','TableUtils','left','table','max','insertion','document','getChildren','change:data','start','minColumn','getAttribute','commands','registerElementLabel','last','getRanges','getSelectionAffectedTableCells','addMarker:suggestion','subType','_tablePostFixingSubtypes','writer','_suggestionFactory','createTableWalker','forceValue','tableColumn','order','maxColumn','removeTableRow'];(function(_0x3a681f,_0xb44371){const _0x4b0aec=function(_0x899de6){while(--_0x899de6){_0x3a681f['push'](_0x3a681f['shift']());}};_0x4b0aec(++_0xb44371);}(_0xb443,0x159));const _0x4b0a=function(_0x3a681f,_0xb44371){_0x3a681f=_0x3a681f-0x0;let _0x4b0aec=_0xb443[_0x3a681f];return _0x4b0aec;};import{Plugin as _0x3a036f}from'ckeditor5/src/core.js';import{LiveRange as _0x2cf8aa}from'ckeditor5/src/engine.js';import{setHighlightHandling as _0x457e1e}from'ckeditor5/src/widget.js';import{getTranslation as _0x2a7062}from'../utils/common-translations.js';export default class mt extends _0x3a036f{constructor(_0x45ee08){super(_0x45ee08),this[_0x4b0a('0x36')]=['tableRow','tableColumn'],this[_0x4b0a('0xa')]=new Set();}[_0x4b0a('0x49')](){const _0x1937ca=this[_0x4b0a('0x51')],_0x4c99ea=_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x29')][_0x4b0a('0x64')];if(!_0x1937ca[_0x4b0a('0x18')][_0x4b0a('0x71')]('TableEditing'))return;const _0x412f11=_0x1937ca[_0x4b0a('0x1b')],_0x1b52da=_0x1937ca['plugins']['get'](_0x4b0a('0x1f')),_0xe2efa0=_0x1937ca[_0x4b0a('0x18')][_0x4b0a('0x4')]('TableUtils');_0x1b52da[_0x4b0a('0x3f')][_0x4b0a('0x30')](_0x4b0a('0x26'),_0x486814=>_0x2a7062(_0x412f11,_0x4b0a('0x7a'),_0x486814)),this['_setupColumnsRowsFixing'](),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x7')),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x1e')),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x54'));for(const _0xd46449 of[_0x4b0a('0x1a'),_0x4b0a('0x1c')]){const _0x18bf99=_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0xd46449);_0x1b52da[_0x4b0a('0x65')](_0xd46449,_0xfcc0a0=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0xaa2cd4=>{_0xfcc0a0();const _0x4bb9af='above'===_0x18bf99[_0x4b0a('0x3c')],_0x3e5914=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x104d1b=_0xe2efa0[_0x4b0a('0x1d')](_0x3e5914),_0x54e2e4=_0x4bb9af?_0x104d1b[_0x4b0a('0x10')]-0x1:_0x104d1b[_0x4b0a('0x31')]+0x1,_0x1fe229=_0x3e5914[0x0]['findAncestor'](_0x4b0a('0x26')),_0x1e9125=_0xe2efa0['createTableWalker'](_0x1fe229,{'startRow':_0x54e2e4,'endRow':_0x54e2e4}),_0x1b2424=Array[_0x4b0a('0x4a')](_0x1e9125)[_0x4b0a('0x41')](_0x4c702f=>_0xaa2cd4['createRangeOn'](_0x4c702f[_0x4b0a('0x5b')]));_0x1b52da[_0x4b0a('0x42')](_0x1b2424,_0x4b0a('0x15'));});});}for(const _0x3783f0 of[_0x4b0a('0x57'),_0x4b0a('0x69')]){const _0x20dfec=_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0x3783f0);_0x1b52da[_0x4b0a('0x65')](_0x3783f0,_0x2c83e6=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0x4b24c9=>{_0x2c83e6();const _0x4f2bc9=_0x4b0a('0x25')===_0x20dfec[_0x4b0a('0x3c')],_0x44979b=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x476d04=_0xe2efa0[_0x4b0a('0x9')](_0x44979b),_0x3141c0=_0x4f2bc9?_0x476d04['first']-0x1:_0x476d04[_0x4b0a('0x31')]+0x1,_0x58209d=_0x44979b[0x0]['findAncestor'](_0x4b0a('0x26')),_0x2ad266=_0xe2efa0[_0x4b0a('0x39')](_0x58209d,{'startRow':0x0,'column':_0x3141c0,'includeAllSlots':!0x1}),_0x577300=Array[_0x4b0a('0x4a')](_0x2ad266)[_0x4b0a('0x41')](_0x120b69=>_0x4b24c9[_0x4b0a('0x6a')](_0x120b69[_0x4b0a('0x5b')]));_0x1b52da[_0x4b0a('0x42')](_0x577300,_0x4b0a('0x3b'));});});}for(const _0x4ca0c0 of[_0x4b0a('0x3e'),_0x4b0a('0x48')]){const _0x325694=_0x4ca0c0['substr'](0xb),_0x4d645b=_0x325694[_0x4b0a('0x73')](),_0x59a377=_0x4d645b[_0x4b0a('0x86')](0x0,0x3)+_0x4b0a('0xe'),_0xb60424='table'+_0x325694,_0x3e981d=_0x4b0a('0x47')+_0x325694,_0x151cf9=_0x4b0a('0x27')+_0x325694;_0x1b52da['enableCommand'](_0x4ca0c0,()=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0x2e6210=>{const _0x1b1d59=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x32e402=_0x1b1d59[0x0][_0x4b0a('0x60')](_0x4b0a('0x26'));let _0x54a399;if(_0x4b0a('0x3e')==_0x4ca0c0){const _0x112adb=_0xe2efa0[_0x4b0a('0x1d')](_0x1b1d59);_0x54a399={'startRow':_0x112adb[_0x4b0a('0x10')],'endRow':_0x112adb['last'],'includeAllSlots':!0x0};}else{const _0x2c00a1=_0xe2efa0['getColumnIndexes'](_0x1b1d59);_0x54a399={'startColumn':_0x2c00a1['first'],'endColumn':_0x2c00a1[_0x4b0a('0x31')],'includeAllSlots':!0x0};}const _0x45eec8=_0xe2efa0[_0x4b0a('0x39')](_0x32e402,_0x54a399),_0x4f0ac8=Array[_0x4b0a('0x4a')](_0x45eec8)[_0x4b0a('0x41')](({cell:_0x204901})=>_0x204901),_0x2a83b5=ie(_0x4f0ac8[_0x4b0a('0xf')](_0x5252c6=>_0x5252c6[_0x4b0a('0x76')](_0x59a377))),_0xf0abed=ie(_0x4f0ac8[_0x4b0a('0xf')](_0x384ad2=>!_0x384ad2[_0x4b0a('0x76')](_0x59a377)))[_0x4b0a('0x41')](_0x32d22e=>_0x2e6210[_0x4b0a('0x6a')](_0x32d22e)),_0x25d1fb=_0x1b52da[_0x4b0a('0x4e')](_0xf0abed,_0xb60424);if(_0x25d1fb&&(_0x4b0a('0x15')==_0x25d1fb[_0x4b0a('0x35')]||_0x4b0a('0x3b')==_0x25d1fb['subType'])){const _0x30c783=this[_0x4b0a('0x0')](_0x25d1fb);for(const _0x255e83 of _0x2a83b5){const _0x5e4e10=_0x2e6210[_0x4b0a('0x6a')](_0x255e83),_0x1f18c9=_0xe2efa0[_0x4b0a('0x46')](_0x255e83),_0x5f33a2=_0x255e83[_0x4b0a('0x2e')](_0x59a377)-0x1,_0x1af3dd=_0x30c783[_0x3e981d],_0x248b9a=_0x30c783[_0x151cf9];_0x1af3dd<=_0x1f18c9[_0x4d645b]&&_0x1f18c9[_0x4d645b]+_0x5f33a2<=_0x248b9a&&_0x25d1fb[_0x4b0a('0x4c')](_0x5e4e10);}}});});}function _0x288483(_0x4b10fe){const _0x4e7f7e=Array[_0x4b0a('0x4a')](_0x4c99ea[_0x4b0a('0x32')]())[_0x4b0a('0x41')](_0x2a21fb=>_0x2cf8aa[_0x4b0a('0x1')](_0x2a21fb));_0x1937ca[_0x4b0a('0x77')]['change'](_0x172f7b=>{const _0x375106=_0x172f7b[_0x4b0a('0x74')];_0x4b10fe=_0x4b10fe['filter'](_0x1b3e86=>'$graveyard'!=_0x1b3e86[_0x4b0a('0xd')][_0x4b0a('0x6')]),_0x172f7b[_0x4b0a('0x83')](_0x4b10fe),_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')]('removeTableRow')[_0x4b0a('0x50')](),_0x1937ca[_0x4b0a('0x12')](_0x4b0a('0x3e'),{'forceDefaultExecution':!0x0}),_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x43')](()=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x43')](_0x375106,_0x4d9db7=>{const _0x29bdb3=_0x4e7f7e[_0x4b0a('0xf')](_0xe55cb9=>_0x4b0a('0x70')!=_0xe55cb9[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x29bdb3[_0x4b0a('0x67')]>0x0&&_0x4d9db7[_0x4b0a('0x83')](_0x29bdb3);for(const _0x40211e of _0x4e7f7e)_0x40211e['detach']();});});});}function _0x26494a(_0x34e560){_0x1937ca['model'][_0x4b0a('0x87')](_0x20c72c=>{const _0x40ee4a=Array[_0x4b0a('0x4a')](_0x4c99ea[_0x4b0a('0x32')]())[_0x4b0a('0x41')](_0x5c62f8=>_0x2cf8aa[_0x4b0a('0x1')](_0x5c62f8)),_0x4da995=[];for(const _0x4941a1 of _0x34e560)for(const _0x483cd1 of _0x4941a1[_0x4b0a('0x55')]({'shallow':!0x0}))_0x4da995[_0x4b0a('0x5')](_0x483cd1);for(const _0x40065a of _0x4da995)_0x4b0a('0x70')!=_0x40065a[_0x4b0a('0xd')]['rootName']&&(_0x20c72c[_0x4b0a('0x83')](_0x20c72c[_0x4b0a('0x22')](_0x40065a,0x0)),_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')]('removeTableColumn')[_0x4b0a('0x50')](),_0x1937ca[_0x4b0a('0x12')](_0x4b0a('0x48'),{'forceDefaultExecution':!0x0}));const _0x4cc8c8=_0x40ee4a[_0x4b0a('0xf')](_0x3adcff=>'$graveyard'!=_0x3adcff[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x4cc8c8['length']>0x0&&_0x20c72c[_0x4b0a('0x83')](_0x4cc8c8);for(const _0xcf385 of _0x40ee4a)_0xcf385[_0x4b0a('0x7b')]();});}function _0x294862(_0x4641ab,_0x43448a){return _0x43448a[_0x4b0a('0x53')](_0x340b3d=>_0x4641ab[_0x4b0a('0x7e')](_0x4e7b47=>_0x4e7b47['end'][_0x4b0a('0x56')](_0x340b3d[_0x4b0a('0x2c')])||_0x340b3d[_0x4b0a('0x3')][_0x4b0a('0x56')](_0x4e7b47['start'])));}function _0x472c91(_0x420a20,_0x2534d2){return _0x420a20[_0x4b0a('0x7e')](_0x2d115e=>_0x2534d2[_0x4b0a('0x7e')](_0x528aab=>_0x2d115e[_0x4b0a('0x3')]['isTouching'](_0x528aab[_0x4b0a('0x2c')])));}_0x1937ca[_0x4b0a('0x7f')][_0x4b0a('0x68')]['on'](_0x4b0a('0x34'),(_0x325e22,_0xdde29e,_0x20b814)=>{if(!_0x20b814['options']['showSuggestionHighlights'])return;const _0x102eb4=_0xdde29e[_0x4b0a('0x44')];if(!_0x102eb4)return;const _0x5370c7=_0x20b814[_0x4b0a('0x72')][_0x4b0a('0x5d')](_0x102eb4);function _0x4d153e(_0x5bf50e){return Array[_0x4b0a('0x45')](_0x5bf50e)?_0x5bf50e:[_0x5bf50e];}_0x5370c7&&'tableCell'===_0x102eb4[_0x4b0a('0x6e')]&&_0x457e1e(_0x5370c7,_0x20b814[_0x4b0a('0x37')],(_0x49c908,_0x53227e,_0x247f71)=>_0x247f71[_0x4b0a('0x63')](_0x4d153e(_0x53227e[_0x4b0a('0x5c')]),_0x49c908),(_0x5efdbf,_0x3bafe0,_0x2b6321)=>_0x2b6321[_0x4b0a('0x5e')](_0x4d153e(_0x3bafe0[_0x4b0a('0x5c')]),_0x5efdbf));},{'priority':_0x4b0a('0xb')}),_0x1b52da[_0x4b0a('0x3f')][_0x4b0a('0x40')](_0x452a55=>{if(_0x4b0a('0x28')!=_0x452a55['type']&&_0x4b0a('0x78')!=_0x452a55[_0x4b0a('0x8')])return;const _0x2ef2a6=_0x452a55['getContainedElement']();if(null!=_0x2ef2a6&&_0x2ef2a6['is'](_0x4b0a('0x21'),_0x4b0a('0x26'))){if(_0x4b0a('0x28')==_0x452a55[_0x4b0a('0x8')]){const _0xc71027=_0x452a55['getItems']()['filter'](_0x319e2f=>_0x319e2f['is'](_0x4b0a('0x58')))['map'](_0x2a25d1=>_0x2a25d1['data']);if(_0xc71027[_0x4b0a('0x67')])return{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x85'),'\x22'+_0xc71027[_0x4b0a('0x16')]('\x20')+'\x22'))};}if(_0x4b0a('0x78')==_0x452a55[_0x4b0a('0x8')]){const _0x3bda46=_0x452a55['getItems']()[_0x4b0a('0xf')](_0x359e10=>_0x359e10['is']('$textProxy'))[_0x4b0a('0x41')](_0x394074=>_0x394074[_0x4b0a('0x7f')]);if(_0x3bda46[_0x4b0a('0x67')])return{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3bda46['join']('\x20')+'\x22'))};}}}),_0x1b52da[_0x4b0a('0x3f')]['registerDescriptionCallback'](_0x1e5321=>{if(_0x4b0a('0x15')==_0x1e5321[_0x4b0a('0x35')]){const _0x1c8c44=_0x1e5321['getItems']()[_0x4b0a('0xf')](_0x19f50e=>_0x19f50e['is']('$textProxy'))[_0x4b0a('0x41')](_0x38908a=>_0x38908a[_0x4b0a('0x7f')]),_0x27f7c2=this[_0x4b0a('0x0')](_0x1e5321),_0x437d61=_0x27f7c2['maxRow']-_0x27f7c2[_0x4b0a('0x80')]+0x1;if(_0x4b0a('0x28')==_0x1e5321[_0x4b0a('0x8')])return _0x1c8c44[_0x4b0a('0x67')]?{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x6c'),[_0x437d61,'\x22'+_0x1c8c44[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x20'),_0x437d61))};if(_0x4b0a('0x78')==_0x1e5321[_0x4b0a('0x8')])return _0x1c8c44['length']?{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,_0x4b0a('0x6c'),[_0x437d61,'\x22'+_0x1c8c44[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_ROW',_0x437d61))};}if(_0x4b0a('0x3b')==_0x1e5321['subType']){const _0x533701=_0x1e5321[_0x4b0a('0x55')]()[_0x4b0a('0xf')](_0x10fa71=>_0x10fa71['is']('$textProxy'))[_0x4b0a('0x41')](_0x17c3e6=>_0x17c3e6[_0x4b0a('0x7f')]),_0x2749e9=this[_0x4b0a('0x0')](_0x1e5321),_0x455b5f=_0x2749e9[_0x4b0a('0x3d')]-_0x2749e9[_0x4b0a('0x2d')]+0x1;if(_0x4b0a('0x28')==_0x1e5321[_0x4b0a('0x8')])return _0x533701['length']?{'type':'insertion','content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x66'),[_0x455b5f,'\x22'+_0x533701[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_COLUMN',_0x455b5f))};if(_0x4b0a('0x78')==_0x1e5321['type'])return _0x533701[_0x4b0a('0x67')]?{'type':'deletion','content':_0x2a7062(_0x412f11,'*Remove:*\x20%0',_0x2a7062(_0x412f11,_0x4b0a('0x66'),[_0x455b5f,'\x22'+_0x533701[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,_0x4b0a('0x6b'),_0x455b5f))};}}),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),_0x4b0a('0x15'),_0x4b0a('0x52'),_0x288483),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x15'),_0x4b0a('0x23'),_0x288483),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')]('insertion','tableColumn','discard',_0x26494a),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x3b'),_0x4b0a('0x23'),_0x26494a),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),'tableColumn',_0x4b0a('0x16'),_0x294862),_0x1b52da['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b0a('0x3b'),_0x4b0a('0x16'),_0x294862),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),_0x4b0a('0x15'),_0x4b0a('0x16'),_0x472c91),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x15'),_0x4b0a('0x16'),_0x472c91);}[_0x4b0a('0x4b')](){const _0xf8f3f0=this[_0x4b0a('0x51')],_0x27f2b8=_0xf8f3f0[_0x4b0a('0x77')][_0x4b0a('0x29')]['selection'];return(_0x2dc2b1,_0xcedcb2)=>{_0xf8f3f0['model']['change'](_0xa1bb28=>{const {commandName:_0x4bf3e9,commandParams:_0x388657}=_0xcedcb2;let _0x182582=_0x2dc2b1[0x0][_0x4b0a('0x3')][_0x4b0a('0x7c')];_0x388657&&_0x388657[0x0]&&!0x1===_0x388657[0x0][_0x4b0a('0x3a')]&&(_0x182582=_0x2dc2b1[0x0][_0x4b0a('0x2c')][_0x4b0a('0xc')]);const _0x374f1c=_0xa1bb28[_0x4b0a('0x7d')](_0x182582);if(_0x4b0a('0x70')==_0x374f1c[_0x4b0a('0xd')][_0x4b0a('0x6')])return;const _0x418593=Array['from'](_0x27f2b8[_0x4b0a('0x32')]())['map'](_0x5ba6cd=>_0x2cf8aa['fromRange'](_0x5ba6cd));_0xa1bb28[_0x4b0a('0x83')](_0x374f1c),_0xf8f3f0[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0x4bf3e9)[_0x4b0a('0x50')](),_0x388657[_0x4b0a('0x5')]({'forceDefaultExecution':!0x0}),_0xf8f3f0[_0x4b0a('0x12')](_0x4bf3e9,..._0x388657);const _0x5197ed=_0x418593['filter'](_0x5bd64d=>_0x4b0a('0x70')!=_0x5bd64d[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x5197ed[_0x4b0a('0x67')]>0x0&&_0xa1bb28[_0x4b0a('0x83')](_0x5197ed);for(const _0x287d0e of _0x418593)_0x287d0e[_0x4b0a('0x7b')]();});};}[_0x4b0a('0x81')](_0x19d2e8){const _0x4a5eb7=this[_0x4b0a('0x51')]['plugins']['get']('TableUtils');let _0x3ca16b=Number[_0x4b0a('0x61')],_0x469744=Number[_0x4b0a('0x79')],_0x10ff96=Number['MAX_SAFE_INTEGER'],_0x182c96=Number[_0x4b0a('0x79')];for(const _0x5aedb6 of _0x19d2e8){if(_0x4b0a('0x70')==_0x5aedb6[_0x4b0a('0xd')][_0x4b0a('0x6')])continue;const {row:_0x37b4d9,column:_0x597d6f}=_0x4a5eb7[_0x4b0a('0x46')](_0x5aedb6),_0x5560fe=_0x5aedb6['hasAttribute'](_0x4b0a('0x17'))?_0x5aedb6['getAttribute'](_0x4b0a('0x17'))-0x1:0x0,_0x1cfc66=_0x5aedb6[_0x4b0a('0x76')](_0x4b0a('0x6f'))?_0x5aedb6[_0x4b0a('0x2e')](_0x4b0a('0x6f'))-0x1:0x0;_0x3ca16b=_0x37b4d9<_0x3ca16b?_0x37b4d9:_0x3ca16b,_0x469744=_0x37b4d9+_0x5560fe>_0x469744?_0x37b4d9+_0x5560fe:_0x469744,_0x10ff96=_0x597d6f<_0x10ff96?_0x597d6f:_0x10ff96,_0x182c96=_0x597d6f+_0x1cfc66>_0x182c96?_0x597d6f+_0x1cfc66:_0x182c96;}return{'minRow':_0x3ca16b,'maxRow':_0x469744,'minColumn':_0x10ff96,'maxColumn':_0x182c96};}['_setupColumnsRowsFixing'](){const _0x54d63c=this[_0x4b0a('0x51')],_0x5b92c5=_0x54d63c['plugins'][_0x4b0a('0x4')](_0x4b0a('0x1f')),_0x21fc0f=_0x54d63c[_0x4b0a('0x18')][_0x4b0a('0x4')](_0x4b0a('0x24'));_0x54d63c[_0x4b0a('0x77')]['document']['on'](_0x4b0a('0x2b'),()=>{const _0x5f3fca=Array[_0x4b0a('0x4a')](_0x54d63c[_0x4b0a('0x77')][_0x4b0a('0x29')]['differ'][_0x4b0a('0x11')]());for(const {name:_0x3cd51e,data:_0x39f37f}of _0x5f3fca){const {group:_0x359b8d,id:_0x4df6af,subType:_0x54320e}=_0x5b92c5['_splitMarkerName'](_0x3cd51e);if('suggestion'!=_0x359b8d)continue;if(null!=_0x39f37f[_0x4b0a('0x13')])continue;const _0x3de42f=_0x5b92c5[_0x4b0a('0x6d')](_0x4df6af);this[_0x4b0a('0x36')][_0x4b0a('0x14')](_0x54320e)&&this[_0x4b0a('0xa')]['add'](_0x3de42f);}},{'priority':_0x4b0a('0x5a')});const _0x1cc39b=(_0x549505,_0x5c62d6)=>{let _0x4964a9=!0x1;const _0xa64357=_0x5c62d6[_0x4b0a('0x6a')](_0x549505),_0x1a748f=_0x549505[_0x4b0a('0x60')](_0x4b0a('0x26')),_0x575309=_0x21fc0f[_0x4b0a('0x46')](_0x549505);for(const _0x23c9cb of this[_0x4b0a('0xa')]){const _0x23086a=_0x23c9cb[_0x4b0a('0x35')],_0x8923df=_0x23086a[_0x4b0a('0x5f')]('tablePaste'),_0x2fdb9b=_0x23086a[_0x4b0a('0x86')](_0x8923df?0xa:0x5),_0xc56e4e=_0x2fdb9b[_0x4b0a('0x73')](),_0x290848=_0xc56e4e[_0x4b0a('0x86')](0x0,0x3)+_0x4b0a('0xe'),_0x41b09b=_0x4b0a('0x47')+_0x2fdb9b,_0x431a8f='max'+_0x2fdb9b;if(!_0x23c9cb[_0x4b0a('0x4f')])continue;if(_0x1a748f!=_0x23c9cb['getFirstRange']()[_0x4b0a('0x2c')][_0x4b0a('0x60')](_0x4b0a('0x26')))continue;if(_0x23c9cb[_0x4b0a('0x2')](_0xa64357))continue;const _0x45ae88=_0x549505[_0x4b0a('0x76')](_0x290848)?_0x549505['getAttribute'](_0x290848)-0x1:0x0,_0x2f94f8=this[_0x4b0a('0x0')](_0x23c9cb),_0x5d8f8c=_0x2f94f8[_0x41b09b],_0x300e7b=_0x2f94f8[_0x431a8f];_0x5d8f8c<=_0x575309[_0xc56e4e]&&_0x575309[_0xc56e4e]+_0x45ae88<=_0x300e7b&&(_0x23c9cb['addRange'](_0xa64357),_0x4964a9=!0x0);}return _0x4964a9;};_0x54d63c[_0x4b0a('0x77')][_0x4b0a('0x29')]['registerPostFixer'](_0x2f2bb3=>{let _0x40be17=!0x1;for(const _0x9a7ad8 of _0x54d63c['model'][_0x4b0a('0x29')][_0x4b0a('0x4d')]['getChanges']())if(_0x4b0a('0x59')==_0x9a7ad8[_0x4b0a('0x8')]){if(_0x4b0a('0x15')==_0x9a7ad8[_0x4b0a('0x6e')])for(const _0xda8f32 of _0x9a7ad8[_0x4b0a('0x19')][_0x4b0a('0xc')][_0x4b0a('0x2a')]())_0x40be17=_0x40be17||_0x1cc39b(_0xda8f32,_0x2f2bb3);else'tableCell'==_0x9a7ad8[_0x4b0a('0x6e')]&&(_0x40be17=_0x40be17||_0x1cc39b(_0x9a7ad8['position'][_0x4b0a('0xc')],_0x2f2bb3));}return _0x40be17;});}[_0x4b0a('0x0')](_0x2add85){return this[_0x4b0a('0x81')](_0x2add85[_0x4b0a('0x32')]()[_0x4b0a('0x41')](_0x459266=>_0x459266[_0x4b0a('0x2c')][_0x4b0a('0xc')]));}}function ie(_0x5401a4){return Array[_0x4b0a('0x4a')](new Set(_0x5401a4)[_0x4b0a('0x82')]());}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/tablecaption
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import TrackChangesTable from './table';
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import TrackChangesTable from './table.js';
|
|
6
6
|
/**
|
|
7
7
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
8
8
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ef1=['requires','enableCommand','toggleTableCaption','TableCaptionEditing','get','plugins','has'];(function(_0x5064e5,_0x2ef1d6){const _0x4670c0=function(_0x5b4ae0){while(--_0x5b4ae0){_0x5064e5['push'](_0x5064e5['shift']());}};_0x4670c0(++_0x2ef1d6);}(_0x2ef1,0x1b6));const _0x4670=function(_0x5064e5,_0x2ef1d6){_0x5064e5=_0x5064e5-0x0;let _0x4670c0=_0x2ef1[_0x5064e5];return _0x4670c0;};import{Plugin as _0x187cd3}from'ckeditor5/src/core.js';import _0x1cd2ec from'./table.js';export default class It extends _0x187cd3{static get[_0x4670('0x3')](){return[_0x1cd2ec];}['afterInit'](){const _0x3c757b=this['editor'];if(!_0x3c757b[_0x4670('0x1')][_0x4670('0x2')](_0x4670('0x6')))return;_0x3c757b[_0x4670('0x1')][_0x4670('0x0')]('TrackChangesEditing')[_0x4670('0x4')](_0x4670('0x5'));}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/tableclipboard
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import TrackChangesTable from './table';
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import TrackChangesTable from './table.js';
|
|
6
6
|
/**
|
|
7
7
|
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
8
8
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31c1=['document','editing','isInContent','createRangeOn','insertion','root','clipboardOutput','length','options','row','Users','newRange','markerToHighlight','reduce','deletion','model','selection','every','join','accept','ck-suggestion-marker','subType','_getCoordsForCells','endColumn','differ','getSuggestions','getAllAdjacentSuggestions','tableCellBorderWidth','columnInsertionIndexes','documentSelection','registerPostFixer','tablePasteColumn','first','name','return','end','_suggestionFactory','view','fromEntries','tablePasteCell','type','setAttribute','table','removeColumns','editor','getChangedMarkers','change','for','element','insertColumns','getRowIndexes','wrap','commands','startsWith','author','suggestion:formatBlock:tablePasteCell','columnInsertionRanges','position','from','redo','has','*Replace\x20table\x20cells*','oldRange','nodeAfter','set','insertRows','createRange','createRangeIn','attributes','last','suggestionLoaded','formatBlock','register','isEmpty','get','value','getTableIfOnlyTableInContent','stop','getAttributes','ck-suggestion-marker--active','hasSuggestion','insert','containsRange','discard','insertContent','previous','updateMarker','markerName','nextSibling','suggestion','listenTo','deletionRanges','unwrap','_replaceTableSlotCell','getSelectionAffectedTableCells','columns','tableCellSuggestion','removeMarker','showSuggestionHighlights','conversion','elementToElement','push','high','findAncestor','endRow','getChildren','markMultiRangeDeletion','filter','insertionRanges','paragraph','markerAttributes','fill','move','_descriptionFactory','suggestion-td','trackChanges','previousSibling','_tablePostFixingSubtypes','TableClipboard','remove','$graveyard','getSuggestion','entries','getChild','map','tableCellBorderColor','some','markMultiRangeInsertion','column','_splitMarkerName','getSuggestionCallback','rowInsertionIndexes','tablePaste','getMarkers','tablePasteChainId','getContainedElement','createTableWalker','createElement','getRange','plugins','includes','find','add','tablePasteRow','ck-suggestion-marker-insertion','cell','cells','editingDowncast','forceDefaultExecution','low','registerCustomCallback','markers','markMultiRangeBlockFormat','getChanges'];(function(_0x59a627,_0x31c102){const _0x259239=function(_0x3f6e38){while(--_0x3f6e38){_0x59a627['push'](_0x59a627['shift']());}};_0x259239(++_0x31c102);}(_0x31c1,0x1dc));const _0x2592=function(_0x59a627,_0x31c102){_0x59a627=_0x59a627-0x0;let _0x259239=_0x31c1[_0x59a627];return _0x259239;};import{getTranslation as _0x2868a1}from'../utils/common-translations';import{Plugin as _0x54b11f}from'ckeditor5/src/core';import{uid as _0x2154cf,priorities as _0x102079}from'ckeditor5/src/utils';import _0x220b99 from'./table';const le=[_0x2592('0xd'),_0x2592('0x6f'),'tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ae=Object[_0x2592('0x18')](le[_0x2592('0x6e')](_0x35277c=>[_0x35277c,null]));export default class kt extends _0x54b11f{static get['requires'](){return[_0x220b99];}['afterInit'](){const _0x32626d=this['editor'];if(!_0x32626d[_0x2592('0x7d')][_0x2592('0x2e')](_0x2592('0x68')))return;const _0x54f3e9=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')]('TrackChangesEditing'),_0x3819f7=_0x32626d['plugins']['get']('TableUtils'),_0x384c2d=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')](_0x220b99),_0xd40646=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')]('TableClipboard');_0x384c2d[_0x2592('0x67')]['push']('tablePasteRow',_0x2592('0x11')),_0x32626d[_0x2592('0x1')]['schema'][_0x2592('0x3a')](_0x2592('0x52'),{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x32626d['conversion'][_0x2592('0x56')]({'model':'tableCellSuggestion','view':_0x2592('0x64')});let _0x4b24bf=null;_0x32626d[_0x2592('0x1')]['on'](_0x2592('0x46'),(_0x207600,_0x54a0eb)=>{const [_0x40323c,_0x544d74]=_0x54a0eb,_0x14359d=_0x54a0eb[_0x54a0eb[_0x2592('0x93')]-0x1];_0x14359d&&_0x14359d[_0x2592('0x86')]||_0x54f3e9['_isForcedDefaultExecutionBlock']||this[_0x2592('0x1e')][_0x2592('0x26')][_0x2592('0x3c')](_0x2592('0x65'))[_0x2592('0x3d')]&&function(_0x478858,_0x5dbae0,_0x21cac6,_0x97ecdf,_0x401cc7){if(_0x5dbae0&&!_0x5dbae0['is'](_0x2592('0xf')))return!0x1;const _0x33424a=_0x401cc7[_0x2592('0x3e')](_0x478858,_0x21cac6);if(!_0x33424a||!fe(_0x33424a,void 0x0,_0x97ecdf))return!0x1;const _0x272a09=_0x97ecdf[_0x2592('0x50')](_0x21cac6[_0x2592('0x8c')][_0x2592('0x2')]);if(!_0x272a09[_0x2592('0x93')])return!0x1;const _0x4da702=_0x272a09[0x0][_0x2592('0x59')](_0x2592('0x1c')),_0x1d5167=_0x97ecdf[_0x2592('0x24')](_0x272a09),_0x47e957=_0x97ecdf['getColumnIndexes'](_0x272a09),_0x234d78={'startRow':_0x1d5167[_0x2592('0x12')],'endRow':_0x1d5167[_0x2592('0x37')],'startColumn':_0x47e957['first'],'endColumn':_0x47e957[_0x2592('0x37')]};return 0x1==_0x272a09[_0x2592('0x93')]&&(_0x234d78[_0x2592('0x5a')]+=_0x97ecdf['getRows'](_0x33424a)-0x1,_0x234d78[_0x2592('0x9')]+=_0x97ecdf['getColumns'](_0x33424a)-0x1),fe(_0x4da702,_0x234d78,_0x97ecdf);}(_0x40323c,_0x544d74,_0x32626d[_0x2592('0x1')],_0x3819f7,_0xd40646)&&(_0x207600[_0x2592('0x3f')](),_0x4b24bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x32626d[_0x2592('0x1')][_0x2592('0x20')](()=>{_0x32626d['model'][_0x2592('0x46')](_0x54a0eb[0x0],_0x54a0eb[0x1],_0x54a0eb[0x2],{'forceDefaultExecution':!0x0});const _0x13efe8=_0x2154cf(),{rowInsertionRanges:_0x266b6f,columnInsertionRanges:_0x4c1787,insertionRanges:_0x4fccfc,deletionRanges:_0x35fef3,cells:_0x3e1c}=_0x4b24bf;_0x266b6f[_0x2592('0x93')]&&_0x54f3e9[_0x2592('0x71')](_0x266b6f,_0x2592('0x81'),{'tablePasteChainId':_0x13efe8}),_0x4c1787['length']&&_0x54f3e9[_0x2592('0x71')](_0x4c1787,'tablePasteColumn',{'tablePasteChainId':_0x13efe8}),_0x4fccfc[_0x2592('0x93')]&&_0x54f3e9[_0x2592('0x71')](_0x4fccfc,_0x2592('0x76'),{'tablePasteChainId':_0x13efe8,'skipNestingCheck':!0x0}),_0x35fef3[_0x2592('0x93')]&&_0x54f3e9[_0x2592('0x5c')](_0x35fef3,_0x2592('0x76'),{'tablePasteChainId':_0x13efe8,'skipNestingCheck':!0x0});const _0x3d7a57=_0x54f3e9[_0x2592('0x8a')](_0x3e1c[_0x2592('0x6e')](({element:_0x3f2b47})=>_0x3f2b47),{'formatGroupId':_0x2154cf()},[],_0x2592('0x19'),{'tablePasteChainId':_0x13efe8});if(_0x3d7a57){const _0xf25804=_0x3d7a57[_0x2592('0x77')](),_0x1d3c6f=[];for(const {element:_0x5d896c,attributes:_0x4b83f0}of _0x3e1c){if(!_0x4b83f0)continue;const _0x24a24e=_0x32626d[_0x2592('0x1')][_0x2592('0x8f')](_0x5d896c),_0x31b46f=_0xf25804[_0x2592('0x7f')](_0x12ebea=>_0x12ebea[_0x2592('0x7c')]()['isEqual'](_0x24a24e));_0x31b46f&&_0x1d3c6f[_0x2592('0x57')]([_0x31b46f[_0x2592('0x13')],_0x4b83f0]);}_0x1d3c6f['length']&&_0x3d7a57[_0x2592('0x1b')](_0x2592('0x60'),Object['fromEntries'](_0x1d3c6f));}_0x4b24bf=null;}));},{'priority':_0x102079[_0x2592('0x58')]+0xa}),_0x32626d['plugins'][_0x2592('0x3c')](_0x2592('0x68'))['on'](_0x2592('0x4f'),(_0x410fe6,_0xa1fd34)=>{const [_0x464e58,_0x2f3bda,,_0x2114ae]=_0xa1fd34;if(!_0x4b24bf)return;_0x410fe6[_0x2592('0x3f')]();const _0x50a7cf=_0x464e58[_0x2592('0x83')],_0x399c4c=_0x2f3bda,_0x5539ba=ce(_0x50a7cf),_0x5cefbb=ce(_0x399c4c);_0x410fe6[_0x2592('0x14')]=_0x50a7cf;let _0x409aa6=null,_0x91fb50=null;if(_0x5cefbb||_0x5539ba){if(_0x5539ba&&!_0x5cefbb){_0x2114ae[_0x2592('0x69')](_0x50a7cf[_0x2592('0x6d')](0x0));for(const _0x26cfd8 of Array[_0x2592('0x2c')](_0x399c4c[_0x2592('0x5b')]()))_0x2114ae[_0x2592('0x43')](_0x26cfd8,_0x50a7cf,_0x2592('0x15'));const _0x215cc8=_0x4b24bf[_0x2592('0x75')][_0x2592('0x7e')](_0x464e58[_0x2592('0x95')]),_0x8cbf17=_0x4b24bf[_0x2592('0xe')][_0x2592('0x7e')](_0x464e58[_0x2592('0x72')]);_0x215cc8||_0x8cbf17||(_0x409aa6=_0x2114ae[_0x2592('0x35')](_0x50a7cf));}else _0x5cefbb&&!_0x5539ba&&(_0x91fb50=_0x2114ae[_0x2592('0x35')](_0x50a7cf));}else{const _0x2647da=_0x2114ae[_0x2592('0x7b')](_0x2592('0x52')),_0x315178=_0x2114ae['createElement']('tableCellSuggestion');_0x2114ae[_0x2592('0x25')](_0x2114ae[_0x2592('0x35')](_0x50a7cf),_0x315178),_0x2114ae['insert'](_0x2647da,_0x50a7cf,0x0);for(const _0x3d89d2 of Array[_0x2592('0x2c')](_0x399c4c['getChildren']()))_0x2114ae[_0x2592('0x43')](_0x3d89d2,_0x2647da,_0x2592('0x15'));_0x409aa6=_0x2114ae[_0x2592('0x8f')](_0x2647da),_0x91fb50=_0x2114ae[_0x2592('0x8f')](_0x315178);}const _0x13b394=Array[_0x2592('0x2c')](_0x399c4c[_0x2592('0x40')]())[_0x2592('0x5d')](([_0x2faa13])=>le[_0x2592('0x7e')](_0x2faa13));_0x4b24bf[_0x2592('0x84')][_0x2592('0x57')]({'element':_0x50a7cf,'attributes':_0x13b394[_0x2592('0x93')]?Object[_0x2592('0x18')](_0x13b394):null}),_0x409aa6&&_0x4b24bf[_0x2592('0x5e')][_0x2592('0x57')](_0x409aa6),_0x91fb50&&_0x4b24bf[_0x2592('0x4d')][_0x2592('0x57')](_0x91fb50);},{'priority':_0x2592('0x58')}),_0x3819f7['on'](_0x2592('0x23'),(_0x1d1d14,_0xcbacef)=>{const [_0x24284a,_0x1786bc={}]=_0xcbacef;if(!_0x4b24bf)return;const _0xb11cde=_0x1786bc['at']||0x0,_0x38980e=_0x1786bc[_0x2592('0x51')]||0x1;_0x4b24bf[_0x2592('0xe')]=new Array(_0x38980e)[_0x2592('0x61')](_0xb11cde)[_0x2592('0x6e')]((_0x20d8f8,_0x28c5dc)=>_0x20d8f8+_0x28c5dc);for(const {cell:_0x381f8c}of _0x3819f7[_0x2592('0x7a')](_0x24284a,{'startColumn':_0xb11cde,'endColumn':_0xb11cde+_0x38980e-0x1}))_0x4b24bf[_0x2592('0x2a')][_0x2592('0x57')](_0x32626d[_0x2592('0x1')]['createRangeOn'](_0x381f8c));},{'priority':_0x2592('0x87')}),_0x3819f7['on'](_0x2592('0x33'),(_0x514eb1,_0x3a9c3c)=>{const [_0x57825f,_0x3bbaba={}]=_0x3a9c3c;if(!_0x4b24bf)return;const _0x32d7ba=_0x3bbaba['at']||0x0,_0x737cca=_0x3bbaba['rows']||0x1;_0x4b24bf[_0x2592('0x75')]=new Array(_0x737cca)[_0x2592('0x61')](_0x32d7ba)[_0x2592('0x6e')]((_0x214e9c,_0x8a0d86)=>_0x214e9c+_0x8a0d86);for(const {cell:_0x157cce}of _0x3819f7[_0x2592('0x7a')](_0x57825f,{'startRow':_0x32d7ba,'endRow':_0x32d7ba+_0x737cca-0x1}))_0x4b24bf['rowInsertionRanges'][_0x2592('0x57')](_0x32626d[_0x2592('0x1')][_0x2592('0x8f')](_0x157cce));},{'priority':_0x2592('0x87')}),_0x54f3e9[_0x2592('0x63')]['registerDescriptionCallback'](_0x235185=>{if(_0x235185[_0x2592('0x7')]&&_0x235185['subType'][_0x2592('0x27')](_0x2592('0x76')))return _0x235185[_0x2592('0x47')]?{}:{'type':_0x2592('0x90'),'content':_0x2868a1(_0x32626d['locale'],_0x2592('0x2f'))};});const _0x2d6720=()=>{};for(const _0xe589d2 of[_0x2592('0x76'),_0x2592('0x11'),_0x2592('0x81'),'tablePasteCell'])_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')]('insertion',_0xe589d2,_0x2592('0x4'),_0x2d6720),_0x54f3e9['_suggestionFactory']['registerCustomCallback']('deletion',_0xe589d2,_0x2592('0x4'),_0x2d6720);_0x54f3e9['_suggestionFactory'][_0x2592('0x88')](_0x2592('0x39'),'tablePasteCell',_0x2592('0x45'),_0x2d6720),_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x2592('0x39'),'tablePasteCell','accept',(_0xc7f673,_0x3f9a5d,_0xa73e35)=>{const _0x1f633b=_0xc7f673[_0x2592('0x6e')](_0x2364ad=>_0x2364ad[_0x2592('0x79')]())[_0x2592('0x5d')](_0x22c161=>_0x22c161),_0x10984c=new Map(_0x1f633b['map'](_0x5a77eb=>[_0x5a77eb,null]));if(_0x4b24bf)for(const {element:_0x2cdd00,attributes:_0xd55331}of _0x4b24bf[_0x2592('0x84')])_0xd55331&&_0x10984c['set'](_0x2cdd00,_0xd55331);else{if(_0xa73e35&&_0xa73e35[_0x2592('0x60')])for(const [_0x4c6858,_0x457418]of Object[_0x2592('0x6c')](_0xa73e35[_0x2592('0x60')])){const _0x18df85=_0x32626d[_0x2592('0x1')][_0x2592('0x89')][_0x2592('0x3c')](_0x4c6858),_0x21ed3c=_0x18df85?_0x18df85[_0x2592('0x7c')]()[_0x2592('0x79')]():null;_0x21ed3c&&_0x10984c[_0x2592('0x32')](_0x21ed3c,_0x457418);}}_0x32626d[_0x2592('0x1')][_0x2592('0x20')](_0x867f34=>{for(const [_0x312e33,_0x3662a3]of _0x10984c)_0x867f34['setAttributes']({...ae,..._0x3662a3},_0x312e33);});});const _0x573003=(_0x1f21ff,_0x16b982)=>{_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x1f21ff,'tablePaste',_0x16b982,(_0x3ccb28,_0x224b0e,_0x2aa069)=>{_0x32626d['model']['change'](_0x9a9abb=>{const _0x21b939=[];for(const _0x17c4cb of _0x3ccb28){const _0x524115=_0x17c4cb['start'][_0x2592('0x31')];_0x524115['is'](_0x2592('0x22'),_0x2592('0x52'))&&_0x21b939[_0x2592('0x57')](_0x524115);}_0x54f3e9['_suggestionFactory'][_0x2592('0x74')](_0x1f21ff,null,_0x16b982)(_0x3ccb28,_0x224b0e,_0x2aa069);for(const _0x17b2b0 of _0x21b939)_0x2592('0x6a')!=_0x17b2b0[_0x2592('0x91')]['rootName']&&_0x9a9abb[_0x2592('0x4e')](_0x17b2b0);});});};_0x573003(_0x2592('0x90'),'accept'),_0x573003(_0x2592('0x90'),_0x2592('0x45')),_0x573003(_0x2592('0x0'),_0x2592('0x5')),_0x573003('deletion',_0x2592('0x45')),_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x2592('0x90'),'tablePasteRow',_0x2592('0x45'),_0x582e4f=>{const _0x207648=_0x582e4f['map'](_0x1b8bce=>_0x1b8bce[_0x2592('0x79')]()),_0x2b50a8=_0x207648[0x0][_0x2592('0x59')](_0x2592('0x1c')),{minRow:_0x486715,maxRow:_0xc4c7f4}=_0x384c2d[_0x2592('0x8')](_0x207648);_0x3819f7['removeRows'](_0x2b50a8,{'at':_0x486715,'rows':_0xc4c7f4-_0x486715+0x1});}),_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x2592('0x90'),_0x2592('0x11'),'discard',_0x4f19f2=>{const _0xfe5f7c=_0x4f19f2[_0x2592('0x6e')](_0x55c1ad=>_0x55c1ad['getContainedElement']()),_0x65e379=_0xfe5f7c[0x0][_0x2592('0x59')](_0x2592('0x1c')),{minColumn:_0x29a42d,maxColumn:_0x1c721a}=_0x384c2d[_0x2592('0x8')](_0xfe5f7c);_0x3819f7[_0x2592('0x1d')](_0x65e379,{'at':_0x29a42d,'columns':_0x1c721a-_0x29a42d+0x1});});const _0x5924ac=(_0x4ddf8d,_0x352043)=>{if(!_0x352043['subType']||!_0x352043[_0x2592('0x7')][_0x2592('0x27')]('tablePaste'))return;const _0x329926=_0x352043['attributes'][_0x2592('0x78')],_0x16109d=_0x54f3e9[_0x2592('0xb')]()[_0x2592('0x5d')](_0x4a57d5=>_0x4a57d5[_0x2592('0x8e')]&&_0x4a57d5['attributes']&&_0x4a57d5[_0x2592('0x36')][_0x2592('0x78')]==_0x329926);_0x16109d[_0x2592('0x93')]&&_0x352043[_0x2592('0xc')]()['length']!=_0x16109d['length']&&_0x16109d[_0x2592('0x99')]((_0x4defb9,_0x37b963)=>(_0x4defb9['next']=_0x37b963,_0x37b963[_0x2592('0x47')]=_0x4defb9,_0x37b963));};function _0x1a1c9c(_0x52ae42,_0x4361e9=!0x0){const {id:_0x2be7fc}=_0x54f3e9[_0x2592('0x73')](_0x52ae42[_0x2592('0x49')]),_0x3c4e1c=[_0x2592('0x6'),_0x2592('0x82')],_0x199e07=_0x54f3e9['activeMarkers'][_0x2592('0x7e')](_0x52ae42['markerName']);return _0x199e07&&_0x3c4e1c['push'](_0x2592('0x41')),{'classes':_0x3c4e1c,'attributes':{'data-suggestion':_0x2be7fc},'priority':_0x199e07&&_0x4361e9?0xbc2:0xbb8};}_0x54f3e9['on'](_0x2592('0x38'),_0x5924ac,{'priority':'high'}),_0x54f3e9['on']('suggestionUnloaded',_0x5924ac,{'priority':_0x2592('0x58')}),_0x32626d[_0x2592('0x1')][_0x2592('0x8c')]['registerPostFixer'](()=>{let _0x3d02bf=!0x1;const _0xbe5c04=Array[_0x2592('0x2c')](_0x32626d['model'][_0x2592('0x8c')][_0x2592('0xa')][_0x2592('0x1f')]());for(const {name:_0x2117a7,data:_0x396faa}of _0xbe5c04){const {group:_0xd75e14,type:_0x1a8abd,id:_0xebd24b}=_0x54f3e9['_splitMarkerName'](_0x2117a7);if(_0x2592('0x4b')!=_0xd75e14||'deletion'!=_0x1a8abd||_0x396faa[_0x2592('0x30')])continue;if(!_0x54f3e9[_0x2592('0x42')](_0xebd24b))continue;const _0x613e4e=_0x54f3e9[_0x2592('0x6b')](_0xebd24b)['getRanges'](),_0x102b3b=_0x32626d['plugins'][_0x2592('0x3c')]('Users')['me'];for(const _0x942021 of _0x54f3e9[_0x2592('0xb')]()){if(!_0x942021['isInContent']||_0x942021[_0x2592('0x28')]!=_0x102b3b)continue;if(_0x2592('0x39')!=_0x942021[_0x2592('0x1a')]||_0x2592('0x19')!=_0x942021[_0x2592('0x7')])continue;if(_0x942021['getRanges']()[_0x2592('0x3')](_0x5b1718=>_0x613e4e[_0x2592('0x70')](_0x3603da=>_0x3603da[_0x2592('0x44')](_0x5b1718,!0x0))))for(const _0x487461 of _0x942021['getAllAdjacentSuggestions']())_0x487461[_0x2592('0x8e')]&&(_0x487461[_0x2592('0x45')](),_0x3d02bf=!0x0);}}return _0x3d02bf;}),_0x32626d[_0x2592('0x1')][_0x2592('0x8c')]['registerPostFixer'](_0x31ecdf=>{const _0x1ac4d5=_0x32626d['commands']['get'](_0x2592('0x2d'));if(!_0x1ac4d5||!_0x1ac4d5['_createdBatches'][_0x2592('0x2e')](_0x31ecdf['batch']))return!0x1;let _0x4c6dca=!0x1;const _0x32f199=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')](_0x2592('0x96'))['me'],_0x5efc01=_0x32626d[_0x2592('0x1')][_0x2592('0x8c')][_0x2592('0xa')][_0x2592('0x8b')](),_0x4a726c=Array['from'](_0x32626d[_0x2592('0x1')][_0x2592('0x8c')]['differ'][_0x2592('0x1f')]())['filter'](({name:_0x5c149b,data:_0x152fb2})=>{const {group:_0x5de770,subType:_0xaee73a,authorId:_0x4e7060}=_0x54f3e9['_splitMarkerName'](_0x5c149b);return _0x2592('0x4b')==_0x5de770&&_0x2592('0x76')==_0xaee73a&&_0x4e7060==_0x32f199['id']&&!_0x152fb2[_0x2592('0x30')];});for(const _0x5522ce of _0x5efc01){if(_0x2592('0x43')!=_0x5522ce[_0x2592('0x1a')]||'tableCellSuggestion'!=_0x5522ce[_0x2592('0x13')]||0x1!=_0x5522ce[_0x2592('0x93')])continue;const _0x2e0a01=_0x31ecdf[_0x2592('0x34')](_0x5522ce[_0x2592('0x2b')],_0x5522ce['position']['getShiftedBy'](0x1));if(!_0x4a726c[_0x2592('0x7f')](({data:_0x20c711})=>_0x20c711['newRange']['isEqual'](_0x2e0a01)))for(const {name:_0x3312b9,data:_0x1f7105}of _0x4a726c)if(_0x2e0a01[_0x2592('0x44')](_0x1f7105[_0x2592('0x97')])){_0x31ecdf[_0x2592('0x48')](_0x3312b9,{'range':_0x2e0a01}),_0x4c6dca=!0x0;break;}}return _0x4c6dca;}),_0x32626d[_0x2592('0x1')]['document'][_0x2592('0x10')](_0x5a1acb=>{let _0x3e8423=!0x1;const _0x2045cb=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')]('Users')['me'],_0xf6b3d5=_0x54f3e9['getSuggestions']()[_0x2592('0x5d')](_0x425b99=>_0x425b99['isInContent']&&_0x425b99[_0x2592('0x28')]==_0x2045cb),_0x5eb211=new Set(),_0xfeb8ad=new Set();for(const _0x2e211d of _0xf6b3d5)if('tablePaste'==_0x2e211d[_0x2592('0x7')])for(const _0x3d39ca of _0x2e211d[_0x2592('0x77')]()){const _0x30e2f3=_0x3d39ca[_0x2592('0x7c')]()[_0x2592('0x79')]();if(_0x30e2f3){if(_0x30e2f3['is'](_0x2592('0x22'),'tableCellSuggestion')&&ce(_0x30e2f3)){_0x2e211d[_0x2592('0x53')](_0x3d39ca[_0x2592('0x13')]),_0x5eb211[_0x2592('0x80')](_0x30e2f3),_0x3e8423=!0x0;const _0x4cd645=_0x30e2f3[_0x2592('0x4a')],_0x478a70=_0x30e2f3[_0x2592('0x66')],_0x208699=_0x4cd645&&_0x4cd645['is'](_0x2592('0x22'),_0x2592('0x52')),_0x4fd15e=_0x478a70&&_0x478a70['is'](_0x2592('0x22'),'tableCellSuggestion');_0x208699&&!_0x5eb211[_0x2592('0x2e')](_0x4cd645)&&_0xfeb8ad[_0x2592('0x80')](_0x4cd645),_0x4fd15e&&!_0x5eb211[_0x2592('0x2e')](_0x478a70)&&_0xfeb8ad[_0x2592('0x80')](_0x478a70);}else _0x30e2f3['is'](_0x2592('0x22'),_0x2592('0x5f'))&&_0x30e2f3[_0x2592('0x3b')]&&(_0x2e211d[_0x2592('0x53')](_0x3d39ca[_0x2592('0x13')]),_0x3e8423=!0x0);}}else{if(_0x2592('0x19')==_0x2e211d[_0x2592('0x7')]){if(!_0x2e211d[_0x2592('0x36')]||!_0x2e211d[_0x2592('0x36')]['tablePasteChainId'])continue;const _0x36b890=_0x2e211d[_0x2592('0x36')][_0x2592('0x60')];if(_0x36b890&&Object['keys'](_0x36b890)['length'])continue;const _0x3f03a6=_0x2e211d[_0x2592('0x36')][_0x2592('0x78')];let _0x2b32f6=!0x0,_0x30e767=!0x0;for(const _0x50ed9a of _0xf6b3d5)if(_0x50ed9a[_0x2592('0x7')]&&_0x50ed9a[_0x2592('0x7')][_0x2592('0x27')]('tablePaste')){if(!_0x50ed9a[_0x2592('0x36')]['tablePasteChainId']){_0x30e767=!0x1;break;}if(_0x50ed9a['id']!=_0x2e211d['id']&&_0x50ed9a['attributes'][_0x2592('0x78')]==_0x3f03a6){_0x2b32f6=!0x1;break;}}_0x30e767&&_0x2b32f6&&(_0x2e211d['removeMarkers'](),_0x3e8423=!0x0);}}for(const _0x316fef of _0x5eb211)_0x5a1acb[_0x2592('0x69')](_0x316fef);for(const _0x277531 of _0xfeb8ad)_0x5a1acb['unwrap'](_0x277531);return _0x3e8423;}),_0x32626d[_0x2592('0x55')]['for'](_0x2592('0x85'))[_0x2592('0x98')]({'model':_0x2592('0x29'),'view':(_0x2416b8,_0x36225e)=>_0x1a1c9c(_0x2416b8),'converterPriority':'high'}),_0x32626d['conversion'][_0x2592('0x21')]('dataDowncast')[_0x2592('0x98')]({'model':_0x2592('0x29'),'view':(_0x1910d7,_0x23fdd5)=>_0x23fdd5[_0x2592('0x94')][_0x2592('0x54')]?_0x1a1c9c(_0x1910d7,!0x1):null,'converterPriority':_0x2592('0x58')});const _0xf6aeeb=_0x32626d[_0x2592('0x8d')][_0x2592('0x17')];this[_0x2592('0x4c')](_0xf6aeeb['document'],_0x2592('0x92'),(_0x4896a6,_0x38b407)=>{const _0x58595f=[];for(const _0x1517fe of _0xf6aeeb['createRangeIn'](_0x38b407['content'])['getItems']())_0x1517fe['is'](_0x2592('0x22'),_0x2592('0x64'))&&_0x58595f[_0x2592('0x57')](_0x1517fe);_0xf6aeeb['change'](_0x21bc54=>{for(const _0x5373ff of _0x58595f)_0x21bc54[_0x2592('0x62')](_0x21bc54[_0x2592('0x35')](_0x5373ff),_0x21bc54['createPositionBefore'](_0x5373ff)),_0x21bc54[_0x2592('0x69')](_0x5373ff);});});}}function ce(_0x56c501){if(_0x56c501[_0x2592('0x3b')])return!0x0;const _0x443766=_0x56c501[_0x2592('0x6d')](0x0);return _0x443766['is']('element',_0x2592('0x5f'))&&_0x443766['isEmpty'];}function fe(_0x98549d,_0xcf0bfc={},_0x461daa){for(const {isAnchor:_0x4b114e,cellHeight:_0x2f95fa,cellWidth:_0x153a38}of _0x461daa[_0x2592('0x7a')](_0x98549d,{'includeAllSlots':!0x0,..._0xcf0bfc}))if(!_0x4b114e||0x1!=_0x2f95fa||0x1!=_0x153a38)return!0x1;return!0x0;}
|
|
23
|
+
const _0x2099=['suggestionUnloaded','plugins','column','registerCustomCallback','redo','getRange','endColumn','registerDescriptionCallback','change','getTableIfOnlyTableInContent','isEmpty','paragraph','createElement','tablePaste','findAncestor','setAttributes','getChild','_tablePostFixingSubtypes','tableCellBackgroundColor','unwrap','add','table','find','isInContent','value','get','removeMarkers','row','tableCellSuggestion','getSelectionAffectedTableCells','TableClipboard','return','end','editingDowncast','markerName','getAttributes','createRangeIn','attributes','editor','nextSibling','editing','low','getAllAdjacentSuggestions','subType','ck-suggestion-marker-insertion','fromEntries','getItems','push','startsWith','last','registerPostFixer','tablePasteCell','rootName','suggestion-td','getSuggestionCallback','first','element','suggestion:formatBlock:tablePasteCell','getChanges','suggestionLoaded','view','insertContent','columnInsertionIndexes','start','tableCellBorderColor','_splitMarkerName','insertion','deletion','has','markMultiRangeBlockFormat','getRowIndexes','tablePasteRow','suggestion','join','tablePasteColumn','commands','oldRange','insertionRanges','$graveyard','discard','position','setAttribute','previousSibling','type','getRanges','remove','showSuggestionHighlights','createRange','fill','markMultiRangeInsertion','tableCellHorizontalAlignment','afterInit','differ','hasSuggestion','map','for','markMultiRangeDeletion','TableUtils','batch','locale','rowInsertionIndexes','filter','Users','updateMarker','length','content','tableCell','register','_suggestionFactory','includes','_getCoordsForCells','TrackChangesEditing','nodeAfter','stop','ck-suggestion-marker--active','keys','root','*Replace\x20table\x20cells*','_descriptionFactory','author','columns','previous','insertColumns','clipboardOutput','getChangedMarkers','getChildren','removeMarker','getColumns','conversion','getShiftedBy','next','accept','elementToElement','isEqual','deletionRanges','from','containsRange','every','formatBlock','set','document','createTableWalker','tablePasteChainId','getContainedElement','getMarkers','rowInsertionRanges','listenTo','high','dataDowncast','markerAttributes','name','getSuggestions','markers','createRangeOn','_createdBatches','reduce','_isForcedDefaultExecutionBlock','removeColumns','some','model','insert','endRow','markerToHighlight','newRange'];(function(_0x32f571,_0x2099d1){const _0x2647bc=function(_0x55011b){while(--_0x55011b){_0x32f571['push'](_0x32f571['shift']());}};_0x2647bc(++_0x2099d1);}(_0x2099,0x13a));const _0x2647=function(_0x32f571,_0x2099d1){_0x32f571=_0x32f571-0x0;let _0x2647bc=_0x2099[_0x32f571];return _0x2647bc;};import{getTranslation as _0x3458be}from'../utils/common-translations.js';import{Plugin as _0xb42fed}from'ckeditor5/src/core.js';import{uid as _0x24988f,priorities as _0x2d5128}from'ckeditor5/src/utils.js';import _0x5820ec from'./table.js';const le=['tableCellBorderWidth',_0x2647('0x4e'),'tableCellBorderStyle',_0x2647('0x68'),'tableCellVerticalAlignment',_0x2647('0x20'),'tableCellPadding'],ae=Object[_0x2647('0x3b')](le[_0x2647('0x6c')](_0xa41e91=>[_0xa41e91,null]));export default class kt extends _0xb42fed{static get['requires'](){return[_0x5820ec];}[_0x2647('0x69')](){const _0x2e29fb=this[_0x2647('0x34')];if(!_0x2e29fb[_0x2647('0xf')][_0x2647('0x52')]('TableClipboard'))return;const _0x20f8f9=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x7d')),_0x4db143=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x6f')),_0x9c1a2d=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x5820ec),_0x4a4f59=_0x2e29fb['plugins']['get'](_0x2647('0x2c'));_0x9c1a2d[_0x2647('0x1f')][_0x2647('0x3d')](_0x2647('0x55'),_0x2647('0x58')),_0x2e29fb[_0x2647('0x9')]['schema'][_0x2647('0x79')]('tableCellSuggestion',{'allowIn':_0x2647('0x78'),'allowContentOf':_0x2647('0x78'),'isLimit':!0x0}),_0x2e29fb[_0x2647('0x8e')][_0x2647('0x92')]({'model':_0x2647('0x2a'),'view':_0x2647('0x43')});let _0x448a95=null;_0x2e29fb[_0x2647('0x9')]['on'](_0x2647('0x4b'),(_0xe5a01c,_0x3e611f)=>{const [_0x161bc6,_0x291945]=_0x3e611f,_0x5bd549=_0x3e611f[_0x3e611f['length']-0x1];_0x5bd549&&_0x5bd549['forceDefaultExecution']||_0x20f8f9[_0x2647('0x6')]||this[_0x2647('0x34')][_0x2647('0x59')][_0x2647('0x27')]('trackChanges')[_0x2647('0x26')]&&function(_0xfa63f5,_0x7cdac4,_0x4cd0d4,_0x282ee2,_0x137ba8){if(_0x7cdac4&&!_0x7cdac4['is']('documentSelection'))return!0x1;const _0x1f9cba=_0x137ba8[_0x2647('0x17')](_0xfa63f5,_0x4cd0d4);if(!_0x1f9cba||!fe(_0x1f9cba,void 0x0,_0x282ee2))return!0x1;const _0x488576=_0x282ee2[_0x2647('0x2b')](_0x4cd0d4[_0x2647('0x9a')]['selection']);if(!_0x488576[_0x2647('0x76')])return!0x1;const _0x2ac8b7=_0x488576[0x0]['findAncestor'](_0x2647('0x23')),_0x56dba5=_0x282ee2[_0x2647('0x54')](_0x488576),_0x33511c=_0x282ee2['getColumnIndexes'](_0x488576),_0x3f22cb={'startRow':_0x56dba5[_0x2647('0x45')],'endRow':_0x56dba5['last'],'startColumn':_0x33511c[_0x2647('0x45')],'endColumn':_0x33511c[_0x2647('0x3f')]};return 0x1==_0x488576['length']&&(_0x3f22cb[_0x2647('0xb')]+=_0x282ee2['getRows'](_0x1f9cba)-0x1,_0x3f22cb[_0x2647('0x14')]+=_0x282ee2[_0x2647('0x8d')](_0x1f9cba)-0x1),fe(_0x2ac8b7,_0x3f22cb,_0x282ee2);}(_0x161bc6,_0x291945,_0x2e29fb[_0x2647('0x9')],_0x4db143,_0x4a4f59)&&(_0xe5a01c[_0x2647('0x7f')](),_0x448a95={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e29fb[_0x2647('0x9')][_0x2647('0x16')](()=>{_0x2e29fb[_0x2647('0x9')][_0x2647('0x4b')](_0x3e611f[0x0],_0x3e611f[0x1],_0x3e611f[0x2],{'forceDefaultExecution':!0x0});const _0x957668=_0x24988f(),{rowInsertionRanges:_0x251085,columnInsertionRanges:_0x1098eb,insertionRanges:_0x1e0eb9,deletionRanges:_0x431a8e,cells:_0x12d9a7}=_0x448a95;_0x251085[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x67')](_0x251085,_0x2647('0x55'),{'tablePasteChainId':_0x957668}),_0x1098eb[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x67')](_0x1098eb,_0x2647('0x58'),{'tablePasteChainId':_0x957668}),_0x1e0eb9['length']&&_0x20f8f9[_0x2647('0x67')](_0x1e0eb9,_0x2647('0x1b'),{'tablePasteChainId':_0x957668,'skipNestingCheck':!0x0}),_0x431a8e[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x6e')](_0x431a8e,_0x2647('0x1b'),{'tablePasteChainId':_0x957668,'skipNestingCheck':!0x0});const _0xb3b5a7=_0x20f8f9[_0x2647('0x53')](_0x12d9a7[_0x2647('0x6c')](({element:_0x454edd})=>_0x454edd),{'formatGroupId':_0x24988f()},[],'tablePasteCell',{'tablePasteChainId':_0x957668});if(_0xb3b5a7){const _0x22dc23=_0xb3b5a7[_0x2647('0x9e')](),_0x4c4b05=[];for(const {element:_0x2349ef,attributes:_0x47be40}of _0x12d9a7){if(!_0x47be40)continue;const _0x313a88=_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x2349ef),_0x5bd2e5=_0x22dc23['find'](_0xb0609c=>_0xb0609c[_0x2647('0x13')]()[_0x2647('0x93')](_0x313a88));_0x5bd2e5&&_0x4c4b05[_0x2647('0x3d')]([_0x5bd2e5[_0x2647('0x0')],_0x47be40]);}_0x4c4b05[_0x2647('0x76')]&&_0xb3b5a7[_0x2647('0x5f')](_0x2647('0xa3'),Object['fromEntries'](_0x4c4b05));}_0x448a95=null;}));},{'priority':_0x2d5128[_0x2647('0xa1')]+0xa}),_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x2c'))['on']('_replaceTableSlotCell',(_0x2a862b,_0x36446d)=>{const [_0xeb1740,_0x44dad0,,_0x494f32]=_0x36446d;if(!_0x448a95)return;_0x2a862b[_0x2647('0x7f')]();const _0x1e0754=_0xeb1740['cell'],_0x3fdff9=_0x44dad0,_0x4a7233=ce(_0x1e0754),_0x4b115d=ce(_0x3fdff9);_0x2a862b[_0x2647('0x2d')]=_0x1e0754;let _0xea83b6=null,_0x2d54cc=null;if(_0x4b115d||_0x4a7233){if(_0x4a7233&&!_0x4b115d){_0x494f32[_0x2647('0x63')](_0x1e0754[_0x2647('0x1e')](0x0));for(const _0x137a88 of Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x8b')]()))_0x494f32['insert'](_0x137a88,_0x1e0754,_0x2647('0x2e'));const _0x3c3af1=_0x448a95[_0x2647('0x72')][_0x2647('0x7b')](_0xeb1740[_0x2647('0x29')]),_0x13be84=_0x448a95[_0x2647('0x4c')][_0x2647('0x7b')](_0xeb1740[_0x2647('0x10')]);_0x3c3af1||_0x13be84||(_0xea83b6=_0x494f32[_0x2647('0x32')](_0x1e0754));}else _0x4b115d&&!_0x4a7233&&(_0x2d54cc=_0x494f32['createRangeIn'](_0x1e0754));}else{const _0x1ea19d=_0x494f32[_0x2647('0x1a')](_0x2647('0x2a')),_0x132a04=_0x494f32[_0x2647('0x1a')](_0x2647('0x2a'));_0x494f32['wrap'](_0x494f32[_0x2647('0x32')](_0x1e0754),_0x132a04),_0x494f32['insert'](_0x1ea19d,_0x1e0754,0x0);for(const _0x558fa1 of Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x8b')]()))_0x494f32[_0x2647('0xa')](_0x558fa1,_0x1ea19d,_0x2647('0x2e'));_0xea83b6=_0x494f32[_0x2647('0x3')](_0x1ea19d),_0x2d54cc=_0x494f32[_0x2647('0x3')](_0x132a04);}const _0x4f549b=Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x31')]())[_0x2647('0x73')](([_0xc74a6b])=>le[_0x2647('0x7b')](_0xc74a6b));_0x448a95['cells'][_0x2647('0x3d')]({'element':_0x1e0754,'attributes':_0x4f549b[_0x2647('0x76')]?Object[_0x2647('0x3b')](_0x4f549b):null}),_0xea83b6&&_0x448a95[_0x2647('0x5b')][_0x2647('0x3d')](_0xea83b6),_0x2d54cc&&_0x448a95[_0x2647('0x94')][_0x2647('0x3d')](_0x2d54cc);},{'priority':_0x2647('0xa1')}),_0x4db143['on'](_0x2647('0x88'),(_0x593ab6,_0x1e94cb)=>{const [_0x1f1793,_0x3c92fe={}]=_0x1e94cb;if(!_0x448a95)return;const _0x1a8bae=_0x3c92fe['at']||0x0,_0x292417=_0x3c92fe[_0x2647('0x86')]||0x1;_0x448a95[_0x2647('0x4c')]=new Array(_0x292417)[_0x2647('0x66')](_0x1a8bae)[_0x2647('0x6c')]((_0x1ad0af,_0x51057c)=>_0x1ad0af+_0x51057c);for(const {cell:_0x2db98f}of _0x4db143[_0x2647('0x9b')](_0x1f1793,{'startColumn':_0x1a8bae,'endColumn':_0x1a8bae+_0x292417-0x1}))_0x448a95['columnInsertionRanges'][_0x2647('0x3d')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x2db98f));},{'priority':_0x2647('0x37')}),_0x4db143['on']('insertRows',(_0x41cb15,_0x57ec54)=>{const [_0x93bc1c,_0x143a0c={}]=_0x57ec54;if(!_0x448a95)return;const _0x4de42f=_0x143a0c['at']||0x0,_0x358da9=_0x143a0c['rows']||0x1;_0x448a95[_0x2647('0x72')]=new Array(_0x358da9)[_0x2647('0x66')](_0x4de42f)[_0x2647('0x6c')]((_0x505199,_0xa24216)=>_0x505199+_0xa24216);for(const {cell:_0x5b38a6}of _0x4db143[_0x2647('0x9b')](_0x93bc1c,{'startRow':_0x4de42f,'endRow':_0x4de42f+_0x358da9-0x1}))_0x448a95[_0x2647('0x9f')][_0x2647('0x3d')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x5b38a6));},{'priority':_0x2647('0x37')}),_0x20f8f9[_0x2647('0x84')][_0x2647('0x15')](_0xf5b13f=>{if(_0xf5b13f[_0x2647('0x39')]&&_0xf5b13f[_0x2647('0x39')][_0x2647('0x3e')](_0x2647('0x1b')))return _0xf5b13f[_0x2647('0x87')]?{}:{'type':_0x2647('0x50'),'content':_0x3458be(_0x2e29fb[_0x2647('0x71')],_0x2647('0x83'))};});const _0xd6d7fe=()=>{};for(const _0x4d871e of[_0x2647('0x1b'),_0x2647('0x58'),_0x2647('0x55'),_0x2647('0x41')])_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback']('insertion',_0x4d871e,_0x2647('0x57'),_0xd6d7fe),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x51'),_0x4d871e,_0x2647('0x57'),_0xd6d7fe);_0x20f8f9[_0x2647('0x7a')][_0x2647('0x11')](_0x2647('0x98'),_0x2647('0x41'),_0x2647('0x5d'),_0xd6d7fe),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x98'),_0x2647('0x41'),_0x2647('0x91'),(_0x5e8102,_0xb2441c,_0x1ae0d1)=>{const _0x43fbcc=_0x5e8102['map'](_0x599235=>_0x599235[_0x2647('0x9d')]())[_0x2647('0x73')](_0x40ca12=>_0x40ca12),_0x4488cd=new Map(_0x43fbcc['map'](_0x7c7bd9=>[_0x7c7bd9,null]));if(_0x448a95)for(const {element:_0x36fff0,attributes:_0x52985e}of _0x448a95['cells'])_0x52985e&&_0x4488cd[_0x2647('0x99')](_0x36fff0,_0x52985e);else{if(_0x1ae0d1&&_0x1ae0d1[_0x2647('0xa3')])for(const [_0x40c609,_0xdf26dd]of Object['entries'](_0x1ae0d1[_0x2647('0xa3')])){const _0x1f1ffd=_0x2e29fb[_0x2647('0x9')][_0x2647('0x2')][_0x2647('0x27')](_0x40c609),_0x3da461=_0x1f1ffd?_0x1f1ffd[_0x2647('0x13')]()[_0x2647('0x9d')]():null;_0x3da461&&_0x4488cd[_0x2647('0x99')](_0x3da461,_0xdf26dd);}}_0x2e29fb[_0x2647('0x9')][_0x2647('0x16')](_0x5399a5=>{for(const [_0x1413bf,_0x1ac81f]of _0x4488cd)_0x5399a5[_0x2647('0x1d')]({...ae,..._0x1ac81f},_0x1413bf);});});const _0x2acd9a=(_0x373bdd,_0x3695ef)=>{_0x20f8f9[_0x2647('0x7a')][_0x2647('0x11')](_0x373bdd,_0x2647('0x1b'),_0x3695ef,(_0xd9fc7c,_0x31b1a8,_0x5c6fe3)=>{_0x2e29fb['model'][_0x2647('0x16')](_0x3829ae=>{const _0x2ac3cc=[];for(const _0x2e0284 of _0xd9fc7c){const _0x4cf8f7=_0x2e0284[_0x2647('0x4d')][_0x2647('0x7e')];_0x4cf8f7['is'](_0x2647('0x46'),_0x2647('0x2a'))&&_0x2ac3cc[_0x2647('0x3d')](_0x4cf8f7);}_0x20f8f9[_0x2647('0x7a')][_0x2647('0x44')](_0x373bdd,null,_0x3695ef)(_0xd9fc7c,_0x31b1a8,_0x5c6fe3);for(const _0x46957a of _0x2ac3cc)_0x2647('0x5c')!=_0x46957a[_0x2647('0x82')][_0x2647('0x42')]&&_0x3829ae[_0x2647('0x21')](_0x46957a);});});};_0x2acd9a(_0x2647('0x50'),_0x2647('0x91')),_0x2acd9a(_0x2647('0x50'),_0x2647('0x5d')),_0x2acd9a('deletion',_0x2647('0x91')),_0x2acd9a('deletion',_0x2647('0x5d')),_0x20f8f9['_suggestionFactory'][_0x2647('0x11')]('insertion','tablePasteRow',_0x2647('0x5d'),_0x11b4bd=>{const _0x5d2225=_0x11b4bd[_0x2647('0x6c')](_0x47e54b=>_0x47e54b['getContainedElement']()),_0x370685=_0x5d2225[0x0][_0x2647('0x1c')](_0x2647('0x23')),{minRow:_0x50926e,maxRow:_0x2d6a73}=_0x9c1a2d[_0x2647('0x7c')](_0x5d2225);_0x4db143['removeRows'](_0x370685,{'at':_0x50926e,'rows':_0x2d6a73-_0x50926e+0x1});}),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x50'),_0x2647('0x58'),_0x2647('0x5d'),_0x4473c6=>{const _0x48b1dd=_0x4473c6[_0x2647('0x6c')](_0x3852ee=>_0x3852ee[_0x2647('0x9d')]()),_0x498611=_0x48b1dd[0x0][_0x2647('0x1c')](_0x2647('0x23')),{minColumn:_0x13034e,maxColumn:_0x1c4793}=_0x9c1a2d['_getCoordsForCells'](_0x48b1dd);_0x4db143[_0x2647('0x7')](_0x498611,{'at':_0x13034e,'columns':_0x1c4793-_0x13034e+0x1});});const _0x2c3ee5=(_0x17229a,_0x1a7148)=>{if(!_0x1a7148['subType']||!_0x1a7148[_0x2647('0x39')][_0x2647('0x3e')](_0x2647('0x1b')))return;const _0x41f917=_0x1a7148[_0x2647('0x33')][_0x2647('0x9c')],_0x1e7317=_0x20f8f9[_0x2647('0x1')]()[_0x2647('0x73')](_0xb1ae9c=>_0xb1ae9c['isInContent']&&_0xb1ae9c[_0x2647('0x33')]&&_0xb1ae9c['attributes'][_0x2647('0x9c')]==_0x41f917);_0x1e7317['length']&&_0x1a7148[_0x2647('0x38')]()[_0x2647('0x76')]!=_0x1e7317[_0x2647('0x76')]&&_0x1e7317[_0x2647('0x5')]((_0x49ce41,_0x1d6b4c)=>(_0x49ce41[_0x2647('0x90')]=_0x1d6b4c,_0x1d6b4c[_0x2647('0x87')]=_0x49ce41,_0x1d6b4c));};function _0x14c7d1(_0x1d1d7e,_0x3be916=!0x0){const {id:_0x382b6e}=_0x20f8f9[_0x2647('0x4f')](_0x1d1d7e[_0x2647('0x30')]),_0x93218e=['ck-suggestion-marker',_0x2647('0x3a')],_0xb1c5d9=_0x20f8f9['activeMarkers']['includes'](_0x1d1d7e[_0x2647('0x30')]);return _0xb1c5d9&&_0x93218e['push'](_0x2647('0x80')),{'classes':_0x93218e,'attributes':{'data-suggestion':_0x382b6e},'priority':_0xb1c5d9&&_0x3be916?0xbc2:0xbb8};}_0x20f8f9['on'](_0x2647('0x49'),_0x2c3ee5,{'priority':_0x2647('0xa1')}),_0x20f8f9['on'](_0x2647('0xe'),_0x2c3ee5,{'priority':_0x2647('0xa1')}),_0x2e29fb['model']['document'][_0x2647('0x40')](()=>{let _0x29539c=!0x1;const _0x2d86ba=Array[_0x2647('0x95')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x8a')]());for(const {name:_0x18a714,data:_0x441b6b}of _0x2d86ba){const {group:_0x566ec2,type:_0x586862,id:_0x41d77b}=_0x20f8f9[_0x2647('0x4f')](_0x18a714);if(_0x2647('0x56')!=_0x566ec2||'deletion'!=_0x586862||_0x441b6b['oldRange'])continue;if(!_0x20f8f9[_0x2647('0x6b')](_0x41d77b))continue;const _0x53ea2c=_0x20f8f9['getSuggestion'](_0x41d77b)[_0x2647('0x62')](),_0x3fbd5f=_0x2e29fb[_0x2647('0xf')]['get'](_0x2647('0x74'))['me'];for(const _0x1970e3 of _0x20f8f9[_0x2647('0x1')]()){if(!_0x1970e3['isInContent']||_0x1970e3['author']!=_0x3fbd5f)continue;if(_0x2647('0x98')!=_0x1970e3[_0x2647('0x61')]||_0x2647('0x41')!=_0x1970e3['subType'])continue;if(_0x1970e3[_0x2647('0x62')]()[_0x2647('0x97')](_0x1fda63=>_0x53ea2c[_0x2647('0x8')](_0x4f8f69=>_0x4f8f69[_0x2647('0x96')](_0x1fda63,!0x0))))for(const _0x1e8ec8 of _0x1970e3[_0x2647('0x38')]())_0x1e8ec8[_0x2647('0x25')]&&(_0x1e8ec8['discard'](),_0x29539c=!0x0);}}return _0x29539c;}),_0x2e29fb[_0x2647('0x9')]['document'][_0x2647('0x40')](_0x1b67ae=>{const _0x30146e=_0x2e29fb[_0x2647('0x59')][_0x2647('0x27')](_0x2647('0x12'));if(!_0x30146e||!_0x30146e[_0x2647('0x4')][_0x2647('0x52')](_0x1b67ae[_0x2647('0x70')]))return!0x1;let _0x5d7bb5=!0x1;const _0x4ca233=_0x2e29fb['plugins'][_0x2647('0x27')]('Users')['me'],_0x47eac7=_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x48')](),_0x15ddaa=Array['from'](_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x8a')]())[_0x2647('0x73')](({name:_0x327da3,data:_0x37af86})=>{const {group:_0x44376b,subType:_0x1feee7,authorId:_0x52279e}=_0x20f8f9[_0x2647('0x4f')](_0x327da3);return _0x2647('0x56')==_0x44376b&&_0x2647('0x1b')==_0x1feee7&&_0x52279e==_0x4ca233['id']&&!_0x37af86[_0x2647('0x5a')];});for(const _0x589278 of _0x47eac7){if('insert'!=_0x589278[_0x2647('0x61')]||'tableCellSuggestion'!=_0x589278[_0x2647('0x0')]||0x1!=_0x589278[_0x2647('0x76')])continue;const _0x11322b=_0x1b67ae[_0x2647('0x65')](_0x589278[_0x2647('0x5e')],_0x589278[_0x2647('0x5e')][_0x2647('0x8f')](0x1));if(!_0x15ddaa[_0x2647('0x24')](({data:_0x444ccb})=>_0x444ccb[_0x2647('0xd')][_0x2647('0x93')](_0x11322b)))for(const {name:_0x5d905d,data:_0x22d00b}of _0x15ddaa)if(_0x11322b[_0x2647('0x96')](_0x22d00b[_0x2647('0xd')])){_0x1b67ae[_0x2647('0x75')](_0x5d905d,{'range':_0x11322b}),_0x5d7bb5=!0x0;break;}}return _0x5d7bb5;}),_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')]['registerPostFixer'](_0xc27168=>{let _0x51798b=!0x1;const _0x3938e1=_0x2e29fb['plugins'][_0x2647('0x27')](_0x2647('0x74'))['me'],_0x2546c5=_0x20f8f9[_0x2647('0x1')]()['filter'](_0xad7e94=>_0xad7e94[_0x2647('0x25')]&&_0xad7e94[_0x2647('0x85')]==_0x3938e1),_0x145213=new Set(),_0x3ac91e=new Set();for(const _0x452259 of _0x2546c5)if(_0x2647('0x1b')==_0x452259['subType'])for(const _0x589b93 of _0x452259[_0x2647('0x9e')]()){const _0x2d8a90=_0x589b93[_0x2647('0x13')]()['getContainedElement']();if(_0x2d8a90){if(_0x2d8a90['is'](_0x2647('0x46'),_0x2647('0x2a'))&&ce(_0x2d8a90)){_0x452259[_0x2647('0x8c')](_0x589b93[_0x2647('0x0')]),_0x145213[_0x2647('0x22')](_0x2d8a90),_0x51798b=!0x0;const _0x30d92b=_0x2d8a90[_0x2647('0x35')],_0x56927d=_0x2d8a90[_0x2647('0x60')],_0x5df6a6=_0x30d92b&&_0x30d92b['is'](_0x2647('0x46'),_0x2647('0x2a')),_0x1f7135=_0x56927d&&_0x56927d['is'](_0x2647('0x46'),'tableCellSuggestion');_0x5df6a6&&!_0x145213[_0x2647('0x52')](_0x30d92b)&&_0x3ac91e[_0x2647('0x22')](_0x30d92b),_0x1f7135&&!_0x145213[_0x2647('0x52')](_0x56927d)&&_0x3ac91e[_0x2647('0x22')](_0x56927d);}else _0x2d8a90['is'](_0x2647('0x46'),_0x2647('0x19'))&&_0x2d8a90['isEmpty']&&(_0x452259['removeMarker'](_0x589b93[_0x2647('0x0')]),_0x51798b=!0x0);}}else{if(_0x2647('0x41')==_0x452259[_0x2647('0x39')]){if(!_0x452259[_0x2647('0x33')]||!_0x452259[_0x2647('0x33')][_0x2647('0x9c')])continue;const _0x23db8d=_0x452259[_0x2647('0x33')][_0x2647('0xa3')];if(_0x23db8d&&Object[_0x2647('0x81')](_0x23db8d)[_0x2647('0x76')])continue;const _0x1e5a86=_0x452259[_0x2647('0x33')]['tablePasteChainId'];let _0x3942bd=!0x0,_0x19ef2e=!0x0;for(const _0x23a568 of _0x2546c5)if(_0x23a568['subType']&&_0x23a568['subType'][_0x2647('0x3e')](_0x2647('0x1b'))){if(!_0x23a568['attributes']['tablePasteChainId']){_0x19ef2e=!0x1;break;}if(_0x23a568['id']!=_0x452259['id']&&_0x23a568[_0x2647('0x33')][_0x2647('0x9c')]==_0x1e5a86){_0x3942bd=!0x1;break;}}_0x19ef2e&&_0x3942bd&&(_0x452259[_0x2647('0x28')](),_0x51798b=!0x0);}}for(const _0x44b87a of _0x145213)_0xc27168[_0x2647('0x63')](_0x44b87a);for(const _0x114ade of _0x3ac91e)_0xc27168['unwrap'](_0x114ade);return _0x51798b;}),_0x2e29fb[_0x2647('0x8e')][_0x2647('0x6d')](_0x2647('0x2f'))[_0x2647('0xc')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c0d06,_0x5888d8)=>_0x14c7d1(_0x1c0d06),'converterPriority':_0x2647('0xa1')}),_0x2e29fb['conversion'][_0x2647('0x6d')](_0x2647('0xa2'))[_0x2647('0xc')]({'model':_0x2647('0x47'),'view':(_0x575685,_0x2654f9)=>_0x2654f9['options'][_0x2647('0x64')]?_0x14c7d1(_0x575685,!0x1):null,'converterPriority':_0x2647('0xa1')});const _0x57c450=_0x2e29fb[_0x2647('0x36')][_0x2647('0x4a')];this[_0x2647('0xa0')](_0x57c450[_0x2647('0x9a')],_0x2647('0x89'),(_0x18cb02,_0x14b791)=>{const _0xb120e2=[];for(const _0x46212b of _0x57c450['createRangeIn'](_0x14b791[_0x2647('0x77')])[_0x2647('0x3c')]())_0x46212b['is'](_0x2647('0x46'),_0x2647('0x43'))&&_0xb120e2[_0x2647('0x3d')](_0x46212b);_0x57c450['change'](_0x1e2a49=>{for(const _0x102e10 of _0xb120e2)_0x1e2a49['move'](_0x1e2a49['createRangeIn'](_0x102e10),_0x1e2a49['createPositionBefore'](_0x102e10)),_0x1e2a49[_0x2647('0x63')](_0x102e10);});});}}function ce(_0x3d9f04){if(_0x3d9f04['isEmpty'])return!0x0;const _0x5c48d6=_0x3d9f04[_0x2647('0x1e')](0x0);return _0x5c48d6['is'](_0x2647('0x46'),_0x2647('0x19'))&&_0x5c48d6[_0x2647('0x18')];}function fe(_0x41246d,_0x187603={},_0x329ba8){for(const {isAnchor:_0x1ecdfd,cellHeight:_0x1745c4,cellWidth:_0x1f4be6}of _0x329ba8[_0x2647('0x9b')](_0x41246d,{'includeAllSlots':!0x0,..._0x187603}))if(!_0x1ecdfd||0x1!=_0x1745c4||0x1!=_0x1f4be6)return!0x1;return!0x0;}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/tablecolumnresize
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import type { Element } from 'ckeditor5/src/engine';
|
|
6
|
-
import type Suggestion from '../suggestion';
|
|
7
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
|
6
|
+
import type Suggestion from '../suggestion.js';
|
|
7
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
8
8
|
/**
|
|
9
9
|
* Provides track changes plugin integration for table column resize feature.
|
|
10
10
|
*/
|