@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27cf=['isEmpty','markerAttributes','locale','column','stop','updateMarker','tablePasteRow','getRows','commands','containsRange','columnInsertionIndexes','document','tablePasteColumn','plugins','getSuggestionCallback','suggestionUnloaded','wrap','createRangeOn','startsWith','isInContent','return','has','tablePasteChainId','table','content','removeMarkers','markMultiRangeBlockFormat','markers','_tablePostFixingSubtypes','map','getColumnIndexes','registerCustomCallback','activeMarkers','createTableWalker','getSelectionAffectedTableCells','createRange','tableCellVerticalAlignment','nextSibling','createRangeIn','tableCellPadding','_descriptionFactory','getChangedMarkers','tablePasteCell','removeMarker','end','model','row','previousSibling','listenTo','trackChanges','unwrap','nodeAfter','options','subType','getTableIfOnlyTableInContent','reduce','getMarkers','from','previous','author','attributes','hasSuggestion','setAttributes','getChildren','getRange','push','isEqual','find','forceDefaultExecution','cells','_createdBatches','deletionRanges','getItems','tableCell','conversion','insertion','formatBlock','suggestion-td','removeColumns','oldRange','tableCellHorizontalAlignment','suggestionLoaded','remove','insert','change','for','tableCellBorderStyle','markerToHighlight','registerPostFixer','*Replace\x20table\x20cells*','endColumn','_suggestionFactory','position','editor','get','ck-suggestion-marker--active','markMultiRangeInsertion','markMultiRangeDeletion','name','differ','dataDowncast','fromEntries','filter','deletion','rowInsertionRanges','move','editing','suggestion','columnInsertionRanges','TableClipboard','includes','fill','insertContent','value','showSuggestionHighlights','requires','getRanges','insertColumns','removeRows','getContainedElement','tableCellBorderWidth','_getCoordsForCells','newRange','documentSelection','endRow','low','add','getChild','getRowIndexes','createElement','paragraph','length','discard','getAttributes','first','join','tablePaste','suggestion:formatBlock:tablePasteCell','accept','ck-suggestion-marker-insertion','getChanges','createPositionBefore','redo','ck-suggestion-marker','some','tableCellBorderColor','element','tableCellSuggestion','Users','_splitMarkerName','next','last','register','set','findAncestor','high','insertRows','getSuggestions','cell','columns','markerName'];(function(_0x1fe8da,_0x27cf86){const _0x297d79=function(_0x4af0be){while(--_0x4af0be){_0x1fe8da['push'](_0x1fe8da['shift']());}};_0x297d79(++_0x27cf86);}(_0x27cf,0xea));const _0x297d=function(_0x1fe8da,_0x27cf86){_0x1fe8da=_0x1fe8da-0x0;let _0x297d79=_0x27cf[_0x1fe8da];return _0x297d79;};import{getTranslation as _0x43fd15}from'../utils/common-translations.js';import{Plugin as _0x17ddcd}from'ckeditor5/src/core.js';import{uid as _0x19b912,priorities as _0x508eb9}from'ckeditor5/src/utils.js';import _0x217b34 from'./table.js';const fe=[_0x297d('0x2f'),_0x297d('0x48'),_0x297d('0xd'),_0x297d('0x7'),_0x297d('0x7c'),'tableCellBackgroundColor',_0x297d('0x7f')],be=Object[_0x297d('0x1c')](fe['map'](_0x38cc37=>[_0x38cc37,null]));export default class At extends _0x17ddcd{static get[_0x297d('0x2a')](){return[_0x217b34];}['afterInit'](){const _0x20fdd2=this[_0x297d('0x14')];if(!_0x20fdd2[_0x297d('0x65')]['has'](_0x297d('0x24')))return;const _0x4984c0=_0x20fdd2[_0x297d('0x65')][_0x297d('0x15')]('TrackChangesEditing'),_0x36c6e5=_0x20fdd2['plugins'][_0x297d('0x15')]('TableUtils'),_0x35413d=_0x20fdd2[_0x297d('0x65')][_0x297d('0x15')](_0x217b34),_0xfe7c84=_0x20fdd2[_0x297d('0x65')][_0x297d('0x15')]('TableClipboard');_0x35413d[_0x297d('0x74')][_0x297d('0x99')](_0x297d('0x5e'),'tablePasteColumn'),_0x20fdd2[_0x297d('0x85')]['schema'][_0x297d('0x4f')](_0x297d('0x4a'),{'allowIn':'tableCell','allowContentOf':_0x297d('0x0'),'isLimit':!0x0}),_0x20fdd2['conversion']['elementToElement']({'model':_0x297d('0x4a'),'view':'suggestion-td'});let _0x21ad02=null;_0x20fdd2[_0x297d('0x85')]['on'](_0x297d('0x27'),(_0x323c8c,_0x20f4dc)=>{const [_0x4fe976,_0x5f4cff]=_0x20f4dc,_0x1821e5=_0x20f4dc[_0x20f4dc[_0x297d('0x3a')]-0x1];_0x1821e5&&_0x1821e5[_0x297d('0x9c')]||_0x4984c0['_isForcedDefaultExecutionBlock']||this[_0x297d('0x14')]['commands']['get'](_0x297d('0x89'))[_0x297d('0x28')]&&function(_0x466509,_0x4a2750,_0x136e10,_0x4055d9,_0x324da4){if(_0x4a2750&&!_0x4a2750['is'](_0x297d('0x32')))return!0x1;const _0x53f738=_0x324da4[_0x297d('0x8e')](_0x466509,_0x136e10);if(!_0x53f738||!de(_0x53f738,void 0x0,_0x4055d9))return!0x1;const _0x2dfb9c=_0x4055d9[_0x297d('0x7a')](_0x136e10['document']['selection']);if(!_0x2dfb9c[_0x297d('0x3a')])return!0x1;const _0x432b23=_0x2dfb9c[0x0][_0x297d('0x51')](_0x297d('0x6f')),_0xdaf21a=_0x4055d9[_0x297d('0x37')](_0x2dfb9c),_0x9c90a4=_0x4055d9[_0x297d('0x76')](_0x2dfb9c),_0x560fdb={'startRow':_0xdaf21a[_0x297d('0x3d')],'endRow':_0xdaf21a[_0x297d('0x4e')],'startColumn':_0x9c90a4[_0x297d('0x3d')],'endColumn':_0x9c90a4[_0x297d('0x4e')]};return 0x1==_0x2dfb9c[_0x297d('0x3a')]&&(_0x560fdb[_0x297d('0x33')]+=_0x4055d9[_0x297d('0x5f')](_0x53f738)-0x1,_0x560fdb[_0x297d('0x11')]+=_0x4055d9['getColumns'](_0x53f738)-0x1),de(_0x432b23,_0x560fdb,_0x4055d9);}(_0x4fe976,_0x5f4cff,_0x20fdd2[_0x297d('0x85')],_0x36c6e5,_0xfe7c84)&&(_0x323c8c[_0x297d('0x5c')](),_0x21ad02={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20fdd2['model'][_0x297d('0xb')](()=>{_0x20fdd2[_0x297d('0x85')][_0x297d('0x27')](_0x20f4dc[0x0],_0x20f4dc[0x1],_0x20f4dc[0x2],{'forceDefaultExecution':!0x0});const _0x2c12a6=_0x19b912(),{rowInsertionRanges:_0x57f1fe,columnInsertionRanges:_0x288de4,insertionRanges:_0x4f9a2b,deletionRanges:_0x49bc90,cells:_0x48df83}=_0x21ad02;_0x57f1fe['length']&&_0x4984c0[_0x297d('0x17')](_0x57f1fe,'tablePasteRow',{'tablePasteChainId':_0x2c12a6}),_0x288de4[_0x297d('0x3a')]&&_0x4984c0[_0x297d('0x17')](_0x288de4,_0x297d('0x64'),{'tablePasteChainId':_0x2c12a6}),_0x4f9a2b[_0x297d('0x3a')]&&_0x4984c0['markMultiRangeInsertion'](_0x4f9a2b,_0x297d('0x3f'),{'tablePasteChainId':_0x2c12a6,'skipNestingCheck':!0x0}),_0x49bc90[_0x297d('0x3a')]&&_0x4984c0[_0x297d('0x18')](_0x49bc90,_0x297d('0x3f'),{'tablePasteChainId':_0x2c12a6,'skipNestingCheck':!0x0});const _0xd1d2a8=_0x4984c0[_0x297d('0x72')](_0x48df83['map'](({element:_0x53f88d})=>_0x53f88d),{'formatGroupId':_0x19b912()},[],_0x297d('0x82'),{'tablePasteChainId':_0x2c12a6});if(_0xd1d2a8){const _0xe01040=_0xd1d2a8[_0x297d('0x90')](),_0x4de3b2=[];for(const {element:_0x5e6eb2,attributes:_0x6e6f54}of _0x48df83){if(!_0x6e6f54)continue;const _0x83f097=_0x20fdd2[_0x297d('0x85')][_0x297d('0x69')](_0x5e6eb2),_0x220177=_0xe01040[_0x297d('0x9b')](_0xfbd187=>_0xfbd187[_0x297d('0x98')]()[_0x297d('0x9a')](_0x83f097));_0x220177&&_0x4de3b2['push']([_0x220177[_0x297d('0x19')],_0x6e6f54]);}_0x4de3b2[_0x297d('0x3a')]&&_0xd1d2a8['setAttribute'](_0x297d('0x59'),Object[_0x297d('0x1c')](_0x4de3b2));}_0x21ad02=null;}));},{'priority':_0x508eb9[_0x297d('0x52')]+0xa}),_0x20fdd2[_0x297d('0x65')][_0x297d('0x15')](_0x297d('0x24'))['on']('_replaceTableSlotCell',(_0x5e2a4a,_0x5aa18f)=>{const [_0x3dd14d,_0x66bd34,,_0x7f2898]=_0x5aa18f;if(!_0x21ad02)return;_0x5e2a4a[_0x297d('0x5c')]();const _0x327369=_0x3dd14d[_0x297d('0x55')],_0x4a7f11=_0x66bd34,_0xf8d098=ge(_0x327369),_0x4582d0=ge(_0x4a7f11);_0x5e2a4a[_0x297d('0x6c')]=_0x327369;let _0x44bfa6=null,_0x3fdd3a=null;if(_0x4582d0||_0xf8d098){if(_0xf8d098&&!_0x4582d0){_0x7f2898[_0x297d('0x9')](_0x327369[_0x297d('0x36')](0x0));for(const _0x575aa8 of Array[_0x297d('0x91')](_0x4a7f11['getChildren']()))_0x7f2898['insert'](_0x575aa8,_0x327369,_0x297d('0x84'));const _0x53214e=_0x21ad02['rowInsertionIndexes'][_0x297d('0x25')](_0x3dd14d[_0x297d('0x86')]),_0x1c6114=_0x21ad02['columnInsertionIndexes']['includes'](_0x3dd14d[_0x297d('0x5b')]);_0x53214e||_0x1c6114||(_0x44bfa6=_0x7f2898[_0x297d('0x7e')](_0x327369));}else _0x4582d0&&!_0xf8d098&&(_0x3fdd3a=_0x7f2898['createRangeIn'](_0x327369));}else{const _0x4878f7=_0x7f2898['createElement'](_0x297d('0x4a')),_0x2720e9=_0x7f2898[_0x297d('0x38')]('tableCellSuggestion');_0x7f2898[_0x297d('0x68')](_0x7f2898[_0x297d('0x7e')](_0x327369),_0x2720e9),_0x7f2898[_0x297d('0xa')](_0x4878f7,_0x327369,0x0);for(const _0x24caac of Array[_0x297d('0x91')](_0x4a7f11[_0x297d('0x97')]()))_0x7f2898['insert'](_0x24caac,_0x4878f7,_0x297d('0x84'));_0x44bfa6=_0x7f2898['createRangeOn'](_0x4878f7),_0x3fdd3a=_0x7f2898[_0x297d('0x69')](_0x2720e9);}const _0x2dd084=Array[_0x297d('0x91')](_0x4a7f11[_0x297d('0x3c')]())['filter'](([_0x316935])=>fe[_0x297d('0x25')](_0x316935));_0x21ad02['cells'][_0x297d('0x99')]({'element':_0x327369,'attributes':_0x2dd084['length']?Object[_0x297d('0x1c')](_0x2dd084):null}),_0x44bfa6&&_0x21ad02['insertionRanges'][_0x297d('0x99')](_0x44bfa6),_0x3fdd3a&&_0x21ad02[_0x297d('0x9f')][_0x297d('0x99')](_0x3fdd3a);},{'priority':_0x297d('0x52')}),_0x36c6e5['on'](_0x297d('0x2c'),(_0x5253d7,_0x3fe4cb)=>{const [_0x4dea96,_0x4b15d7={}]=_0x3fe4cb;if(!_0x21ad02)return;const _0x268134=_0x4b15d7['at']||0x0,_0x2f806a=_0x4b15d7[_0x297d('0x56')]||0x1;_0x21ad02[_0x297d('0x62')]=new Array(_0x2f806a)[_0x297d('0x26')](_0x268134)[_0x297d('0x75')]((_0x2c73b7,_0x452fa3)=>_0x2c73b7+_0x452fa3);for(const {cell:_0xde2241}of _0x36c6e5[_0x297d('0x79')](_0x4dea96,{'startColumn':_0x268134,'endColumn':_0x268134+_0x2f806a-0x1}))_0x21ad02[_0x297d('0x23')][_0x297d('0x99')](_0x20fdd2[_0x297d('0x85')][_0x297d('0x69')](_0xde2241));},{'priority':'low'}),_0x36c6e5['on'](_0x297d('0x53'),(_0x4622a9,_0x5bb1f1)=>{const [_0x31f6c9,_0x5ceefa={}]=_0x5bb1f1;if(!_0x21ad02)return;const _0x1987e8=_0x5ceefa['at']||0x0,_0x2d4cca=_0x5ceefa['rows']||0x1;_0x21ad02['rowInsertionIndexes']=new Array(_0x2d4cca)['fill'](_0x1987e8)['map']((_0x702264,_0x2b8a8f)=>_0x702264+_0x2b8a8f);for(const {cell:_0x2ec46e}of _0x36c6e5[_0x297d('0x79')](_0x31f6c9,{'startRow':_0x1987e8,'endRow':_0x1987e8+_0x2d4cca-0x1}))_0x21ad02[_0x297d('0x1f')]['push'](_0x20fdd2['model'][_0x297d('0x69')](_0x2ec46e));},{'priority':_0x297d('0x34')}),_0x4984c0[_0x297d('0x80')]['registerDescriptionCallback'](_0x9e01d0=>{if(_0x9e01d0[_0x297d('0x8d')]&&_0x9e01d0[_0x297d('0x8d')][_0x297d('0x6a')](_0x297d('0x3f')))return _0x9e01d0['previous']?{}:{'type':_0x297d('0x2'),'content':_0x43fd15(_0x20fdd2[_0x297d('0x5a')],_0x297d('0x10'))};});const _0x33067b=()=>!0x1;for(const _0x2f5c0c of['tablePaste','tablePasteColumn',_0x297d('0x5e'),_0x297d('0x82')])_0x4984c0[_0x297d('0x12')][_0x297d('0x77')](_0x297d('0x2'),_0x2f5c0c,_0x297d('0x3e'),_0x33067b),_0x4984c0[_0x297d('0x12')]['registerCustomCallback'](_0x297d('0x1e'),_0x2f5c0c,_0x297d('0x3e'),_0x33067b),_0x4984c0[_0x297d('0x12')]['registerCustomCallback'](_0x297d('0x3'),_0x2f5c0c,_0x297d('0x3e'),_0x33067b);_0x4984c0['_suggestionFactory'][_0x297d('0x77')]('formatBlock',_0x297d('0x82'),_0x297d('0x3b'),_0x33067b),_0x4984c0[_0x297d('0x12')][_0x297d('0x77')](_0x297d('0x3'),_0x297d('0x82'),_0x297d('0x41'),(_0x324840,_0x2eacf7,_0x8661f7)=>{const _0x3bc2de=_0x324840[_0x297d('0x75')](_0x4df520=>_0x4df520['getContainedElement']())[_0x297d('0x1d')](_0x1b1158=>_0x1b1158),_0x254203=new Map(_0x3bc2de[_0x297d('0x75')](_0x433619=>[_0x433619,null]));if(_0x21ad02)for(const {element:_0xe40d00,attributes:_0x68a39b}of _0x21ad02[_0x297d('0x9d')])_0x68a39b&&_0x254203['set'](_0xe40d00,_0x68a39b);else{if(_0x8661f7&&_0x8661f7[_0x297d('0x59')])for(const [_0x53f0fe,_0x471e1d]of Object['entries'](_0x8661f7[_0x297d('0x59')])){const _0x3d11ff=_0x20fdd2[_0x297d('0x85')][_0x297d('0x73')][_0x297d('0x15')](_0x53f0fe),_0x5df7af=_0x3d11ff?_0x3d11ff[_0x297d('0x98')]()[_0x297d('0x2e')]():null;_0x5df7af&&_0x254203[_0x297d('0x50')](_0x5df7af,_0x471e1d);}}_0x20fdd2['model'][_0x297d('0xb')](_0x382829=>{for(const [_0xda4c61,_0x33b7d8]of _0x254203)_0x382829[_0x297d('0x96')]({...be,..._0x33b7d8},_0xda4c61);});});const _0x1c20a3=(_0x23fd2e,_0x2472eb)=>{_0x4984c0[_0x297d('0x12')][_0x297d('0x77')](_0x23fd2e,'tablePaste',_0x2472eb,(_0x53baa3,_0x593e95,_0x3325b9)=>{_0x20fdd2[_0x297d('0x85')][_0x297d('0xb')](_0x5c9311=>{const _0x2247da=[];for(const _0x2782c0 of _0x53baa3){const _0x2ca88f=_0x2782c0['start'][_0x297d('0x8b')];_0x2ca88f['is'](_0x297d('0x49'),_0x297d('0x4a'))&&_0x2247da[_0x297d('0x99')](_0x2ca88f);}_0x4984c0[_0x297d('0x12')][_0x297d('0x66')](_0x23fd2e,null,_0x2472eb)(_0x53baa3,_0x593e95,_0x3325b9);for(const _0x4e7c97 of _0x2247da)'$graveyard'!=_0x4e7c97['root']['rootName']&&_0x5c9311['unwrap'](_0x4e7c97);});});};_0x1c20a3(_0x297d('0x2'),_0x297d('0x41')),_0x1c20a3(_0x297d('0x2'),_0x297d('0x3b')),_0x1c20a3(_0x297d('0x1e'),'accept'),_0x1c20a3(_0x297d('0x1e'),_0x297d('0x3b')),_0x4984c0['_suggestionFactory'][_0x297d('0x77')](_0x297d('0x2'),_0x297d('0x5e'),_0x297d('0x3b'),_0x2b6ae7=>{const _0x1c2d6c=_0x2b6ae7['map'](_0x3a285c=>_0x3a285c[_0x297d('0x2e')]()),_0x2df79a=_0x1c2d6c[0x0][_0x297d('0x51')](_0x297d('0x6f')),{minRow:_0x173a15,maxRow:_0x482a65}=_0x35413d[_0x297d('0x30')](_0x1c2d6c);_0x36c6e5[_0x297d('0x2d')](_0x2df79a,{'at':_0x173a15,'rows':_0x482a65-_0x173a15+0x1});}),_0x4984c0[_0x297d('0x12')][_0x297d('0x77')]('insertion',_0x297d('0x64'),_0x297d('0x3b'),_0x1ca089=>{const _0x5de882=_0x1ca089[_0x297d('0x75')](_0x54d541=>_0x54d541['getContainedElement']()),_0x56cc0f=_0x5de882[0x0][_0x297d('0x51')](_0x297d('0x6f')),{minColumn:_0x5006c0,maxColumn:_0x2d21a7}=_0x35413d['_getCoordsForCells'](_0x5de882);_0x36c6e5[_0x297d('0x5')](_0x56cc0f,{'at':_0x5006c0,'columns':_0x2d21a7-_0x5006c0+0x1});});const _0x42e7e9=(_0x4f67df,_0x430179)=>{if(!_0x430179[_0x297d('0x8d')]||!_0x430179[_0x297d('0x8d')][_0x297d('0x6a')](_0x297d('0x3f')))return;const _0x2e172a=_0x430179[_0x297d('0x94')][_0x297d('0x6e')],_0x4f326a=_0x4984c0[_0x297d('0x54')]()[_0x297d('0x1d')](_0x37efc7=>_0x37efc7[_0x297d('0x6b')]&&_0x37efc7[_0x297d('0x94')]&&_0x37efc7[_0x297d('0x94')][_0x297d('0x6e')]==_0x2e172a);_0x4f326a[_0x297d('0x3a')]&&_0x430179['getAllAdjacentSuggestions']()[_0x297d('0x3a')]!=_0x4f326a[_0x297d('0x3a')]&&_0x4f326a[_0x297d('0x8f')]((_0x54efa3,_0x37cbdb)=>(_0x54efa3[_0x297d('0x4d')]=_0x37cbdb,_0x37cbdb[_0x297d('0x92')]=_0x54efa3,_0x37cbdb));};function _0x32bb70(_0x32c371,_0x5539b4=!0x0){const {id:_0xcce05a}=_0x4984c0[_0x297d('0x4c')](_0x32c371[_0x297d('0x57')]),_0x4b0348=[_0x297d('0x46'),_0x297d('0x42')],_0x3de576=_0x4984c0[_0x297d('0x78')][_0x297d('0x25')](_0x32c371[_0x297d('0x57')]);return _0x3de576&&_0x4b0348[_0x297d('0x99')](_0x297d('0x16')),{'classes':_0x4b0348,'attributes':{'data-suggestion':_0xcce05a},'priority':_0x3de576&&_0x5539b4?0xbc2:0xbb8};}_0x4984c0['on'](_0x297d('0x8'),_0x42e7e9,{'priority':_0x297d('0x52')}),_0x4984c0['on'](_0x297d('0x67'),_0x42e7e9,{'priority':_0x297d('0x52')}),_0x20fdd2[_0x297d('0x85')][_0x297d('0x63')][_0x297d('0xf')](()=>{let _0xb05e73=!0x1;const _0x4f13fc=Array[_0x297d('0x91')](_0x20fdd2[_0x297d('0x85')][_0x297d('0x63')][_0x297d('0x1a')]['getChangedMarkers']());for(const {name:_0x57285f,data:_0x2cfdfa}of _0x4f13fc){const {group:_0x30f20a,type:_0x3130ac,id:_0x59a040}=_0x4984c0[_0x297d('0x4c')](_0x57285f);if(_0x297d('0x22')!=_0x30f20a||_0x297d('0x1e')!=_0x3130ac||_0x2cfdfa[_0x297d('0x6')])continue;if(!_0x4984c0[_0x297d('0x95')](_0x59a040))continue;const _0x56f936=_0x4984c0['getSuggestion'](_0x59a040)[_0x297d('0x2b')](),_0x197b4c=_0x20fdd2['plugins'][_0x297d('0x15')](_0x297d('0x4b'))['me'];for(const _0x5876f8 of _0x4984c0[_0x297d('0x54')]()){if(!_0x5876f8[_0x297d('0x6b')]||_0x5876f8[_0x297d('0x93')]!=_0x197b4c)continue;if('formatBlock'!=_0x5876f8['type']||'tablePasteCell'!=_0x5876f8['subType'])continue;if(_0x5876f8[_0x297d('0x2b')]()['every'](_0x19fa98=>_0x56f936[_0x297d('0x47')](_0x4e6696=>_0x4e6696[_0x297d('0x61')](_0x19fa98,!0x0))))for(const _0x5c6648 of _0x5876f8['getAllAdjacentSuggestions']())_0x5c6648[_0x297d('0x6b')]&&(_0x5c6648[_0x297d('0x3b')](),_0xb05e73=!0x0);}}return _0xb05e73;}),_0x20fdd2[_0x297d('0x85')][_0x297d('0x63')][_0x297d('0xf')](_0x4f1b5e=>{const _0x4fa65=_0x20fdd2[_0x297d('0x60')][_0x297d('0x15')](_0x297d('0x45'));if(!_0x4fa65||!_0x4fa65[_0x297d('0x9e')][_0x297d('0x6d')](_0x4f1b5e['batch']))return!0x1;let _0x612929=!0x1;const _0x147fcf=_0x20fdd2[_0x297d('0x65')][_0x297d('0x15')]('Users')['me'],_0x2f1eac=_0x20fdd2[_0x297d('0x85')][_0x297d('0x63')][_0x297d('0x1a')][_0x297d('0x43')](),_0x3bab6f=Array['from'](_0x20fdd2[_0x297d('0x85')][_0x297d('0x63')][_0x297d('0x1a')][_0x297d('0x81')]())['filter'](({name:_0x136f66,data:_0x324105})=>{const {group:_0x11fbef,subType:_0x2633d4,authorId:_0x322217}=_0x4984c0['_splitMarkerName'](_0x136f66);return _0x297d('0x22')==_0x11fbef&&_0x297d('0x3f')==_0x2633d4&&_0x322217==_0x147fcf['id']&&!_0x324105['oldRange'];});for(const _0xdc6597 of _0x2f1eac){if(_0x297d('0xa')!=_0xdc6597['type']||_0x297d('0x4a')!=_0xdc6597[_0x297d('0x19')]||0x1!=_0xdc6597[_0x297d('0x3a')])continue;const _0x37eb92=_0x4f1b5e[_0x297d('0x7b')](_0xdc6597['position'],_0xdc6597[_0x297d('0x13')]['getShiftedBy'](0x1));if(!_0x3bab6f[_0x297d('0x9b')](({data:_0x2d5829})=>_0x2d5829[_0x297d('0x31')][_0x297d('0x9a')](_0x37eb92)))for(const {name:_0xfb1638,data:_0x3ec005}of _0x3bab6f)if(_0x37eb92['containsRange'](_0x3ec005[_0x297d('0x31')])){_0x4f1b5e[_0x297d('0x5d')](_0xfb1638,{'range':_0x37eb92}),_0x612929=!0x0;break;}}return _0x612929;}),_0x20fdd2[_0x297d('0x85')][_0x297d('0x63')][_0x297d('0xf')](_0x5271ce=>{let _0x124e5e=!0x1;const _0x59fe81=_0x20fdd2['plugins']['get'](_0x297d('0x4b'))['me'],_0x4a6308=_0x4984c0[_0x297d('0x54')]()[_0x297d('0x1d')](_0x31a51b=>_0x31a51b[_0x297d('0x6b')]&&_0x31a51b[_0x297d('0x93')]==_0x59fe81),_0x4638cb=new Set(),_0x376e3b=new Set();for(const _0x53cc0f of _0x4a6308)if(_0x297d('0x3f')==_0x53cc0f['subType'])for(const _0x132f78 of _0x53cc0f[_0x297d('0x90')]()){const _0x301e7b=_0x132f78[_0x297d('0x98')]()[_0x297d('0x2e')]();if(_0x301e7b){if(_0x301e7b['is'](_0x297d('0x49'),_0x297d('0x4a'))&&ge(_0x301e7b)){_0x53cc0f[_0x297d('0x83')](_0x132f78[_0x297d('0x19')]),_0x4638cb['add'](_0x301e7b),_0x124e5e=!0x0;const _0x2070fc=_0x301e7b[_0x297d('0x7d')],_0x1ac05f=_0x301e7b[_0x297d('0x87')],_0x556019=_0x2070fc&&_0x2070fc['is']('element','tableCellSuggestion'),_0x181af4=_0x1ac05f&&_0x1ac05f['is'](_0x297d('0x49'),_0x297d('0x4a'));_0x556019&&!_0x4638cb[_0x297d('0x6d')](_0x2070fc)&&_0x376e3b[_0x297d('0x35')](_0x2070fc),_0x181af4&&!_0x4638cb[_0x297d('0x6d')](_0x1ac05f)&&_0x376e3b[_0x297d('0x35')](_0x1ac05f);}else _0x301e7b['is'](_0x297d('0x49'),'paragraph')&&_0x301e7b[_0x297d('0x58')]&&(_0x53cc0f[_0x297d('0x83')](_0x132f78[_0x297d('0x19')]),_0x124e5e=!0x0);}}else{if('tablePasteCell'==_0x53cc0f[_0x297d('0x8d')]){if(!_0x53cc0f['attributes']||!_0x53cc0f[_0x297d('0x94')][_0x297d('0x6e')])continue;const _0xcbb923=_0x53cc0f[_0x297d('0x94')][_0x297d('0x59')];if(_0xcbb923&&Object['keys'](_0xcbb923)[_0x297d('0x3a')])continue;const _0x1e16c6=_0x53cc0f['attributes']['tablePasteChainId'];let _0xdcf4b0=!0x0,_0x5f2d0f=!0x0;for(const _0x4093f0 of _0x4a6308)if(_0x4093f0[_0x297d('0x8d')]&&_0x4093f0['subType'][_0x297d('0x6a')](_0x297d('0x3f'))){if(!_0x4093f0['attributes'][_0x297d('0x6e')]){_0x5f2d0f=!0x1;break;}if(_0x4093f0['id']!=_0x53cc0f['id']&&_0x4093f0[_0x297d('0x94')][_0x297d('0x6e')]==_0x1e16c6){_0xdcf4b0=!0x1;break;}}_0x5f2d0f&&_0xdcf4b0&&(_0x53cc0f[_0x297d('0x71')](),_0x124e5e=!0x0);}}for(const _0x132cd0 of _0x4638cb)_0x5271ce[_0x297d('0x9')](_0x132cd0);for(const _0x2152d0 of _0x376e3b)_0x5271ce[_0x297d('0x8a')](_0x2152d0);return _0x124e5e;}),_0x20fdd2[_0x297d('0x1')][_0x297d('0xc')]('editingDowncast')[_0x297d('0xe')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34fbde,_0x89d486)=>_0x32bb70(_0x34fbde),'converterPriority':_0x297d('0x52')}),_0x20fdd2[_0x297d('0x1')][_0x297d('0xc')](_0x297d('0x1b'))[_0x297d('0xe')]({'model':_0x297d('0x40'),'view':(_0x1c9cce,_0x4616ed)=>_0x4616ed[_0x297d('0x8c')][_0x297d('0x29')]?_0x32bb70(_0x1c9cce,!0x1):null,'converterPriority':_0x297d('0x52')});const _0x129a54=_0x20fdd2[_0x297d('0x21')]['view'];this[_0x297d('0x88')](_0x129a54['document'],'clipboardOutput',(_0x16d9c2,_0x4ed73d)=>{const _0x262f06=[];for(const _0x221112 of _0x129a54[_0x297d('0x7e')](_0x4ed73d[_0x297d('0x70')])[_0x297d('0xa0')]())_0x221112['is'](_0x297d('0x49'),_0x297d('0x4'))&&_0x262f06[_0x297d('0x99')](_0x221112);_0x129a54[_0x297d('0xb')](_0x39362e=>{for(const _0x2e73f0 of _0x262f06)_0x39362e[_0x297d('0x20')](_0x39362e[_0x297d('0x7e')](_0x2e73f0),_0x39362e[_0x297d('0x44')](_0x2e73f0)),_0x39362e[_0x297d('0x9')](_0x2e73f0);});});}}function ge(_0xb6acf4){if(_0xb6acf4[_0x297d('0x58')])return!0x0;const _0x50db40=_0xb6acf4[_0x297d('0x36')](0x0);return _0x50db40['is']('element',_0x297d('0x39'))&&_0x50db40[_0x297d('0x58')];}function de(_0x22ca43,_0x4a420b={},_0x1023f8){for(const {isAnchor:_0x3c60e9,cellHeight:_0x37d6f0,cellWidth:_0x2eac85}of _0x1023f8[_0x297d('0x79')](_0x22ca43,{'includeAllSlots':!0x0,..._0x4a420b}))if(!_0x3c60e9||0x1!=_0x37d6f0||0x1!=_0x2eac85)return!0x1;return!0x0;}
|
|
23
|
+
const _0x58e1=['rowInsertionRanges','tablePasteRow','createTableWalker','start','return','afterInit','findAncestor','remove','model','getChild','batch','redo','tableCellBorderColor','$graveyard','insert','differ','fromEntries','getMarkers','includes','columnInsertionRanges','tableCellBorderStyle','_suggestionFactory','removeColumns','next','columnInsertionIndexes','unwrap','createElement','discard','column','deletion','options','getRange','reduce','entries','join','insertion','cells','tablePasteCell','tablePasteChainId','forceDefaultExecution','fill','newRange','isInContent','markerAttributes','every','end','createRangeOn','add','getRanges','isEmpty','createRange','tableCellHorizontalAlignment','getShiftedBy','root','endRow','commands','clipboardOutput','set','getSuggestion','tableCellVerticalAlignment','createPositionBefore','removeMarker','getChanges','registerDescriptionCallback','rowInsertionIndexes','getTableIfOnlyTableInContent','previousSibling','value','type','markerToHighlight','tableCellSuggestion','createRangeIn','insertRows','insertionRanges','insertColumns','removeMarkers','high','markers','_isForcedDefaultExecutionBlock','getSuggestionCallback','setAttribute','getContainedElement','markMultiRangeBlockFormat','getChangedMarkers','filter','formatBlock','nodeAfter','getRows','getColumns','tablePaste','editingDowncast','_getCoordsForCells','insertContent','registerPostFixer','keys','schema','name','TrackChangesEditing','markerName','cell','hasSuggestion','dataDowncast','selection','position','length','removeRows','startsWith','markMultiRangeInsertion','tableCellBorderWidth','getAllAdjacentSuggestions','wrap','get','change','tablePasteColumn','subType','ck-suggestion-marker-insertion','trackChanges','table','map','attributes','setAttributes','from','view','TableClipboard','low','previous','nextSibling','rootName','document','paragraph','Users','tableCellPadding','suggestion:formatBlock:tablePasteCell','content','element','rows','editing','author','getChildren','_replaceTableSlotCell','registerCustomCallback','editor','elementToElement','find','conversion','getColumnIndexes','*Replace\x20table\x20cells*','getSuggestions','tableCell','plugins','for','push','first','_splitMarkerName','stop','deletionRanges','isEqual','containsRange','move','some','oldRange','has','accept'];(function(_0x298184,_0x58e157){const _0x4ba91c=function(_0x3d220c){while(--_0x3d220c){_0x298184['push'](_0x298184['shift']());}};_0x4ba91c(++_0x58e157);}(_0x58e1,0x6e));const _0x4ba9=function(_0x298184,_0x58e157){_0x298184=_0x298184-0x0;let _0x4ba91c=_0x58e1[_0x298184];return _0x4ba91c;};import{getTranslation as _0x4f2f78}from'../utils/common-translations.js';import{Plugin as _0x15f2cf}from'ckeditor5/src/core.js';import{uid as _0x24c2df,priorities as _0x4894d5}from'ckeditor5/src/utils.js';import _0x3e7091 from'./table.js';const fe=[_0x4ba9('0xa1'),_0x4ba9('0x41'),_0x4ba9('0x49'),_0x4ba9('0x68'),_0x4ba9('0x70'),'tableCellBackgroundColor',_0x4ba9('0x15')],be=Object['fromEntries'](fe[_0x4ba9('0x8')](_0x2301dc=>[_0x2301dc,null]));export default class At extends _0x15f2cf{static get['requires'](){return[_0x3e7091];}[_0x4ba9('0x3a')](){const _0xaa1103=this[_0x4ba9('0x1f')];if(!_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x33')]('TableClipboard'))return;const _0x2370f0=_0xaa1103['plugins'][_0x4ba9('0x1')](_0x4ba9('0x96')),_0x14a392=_0xaa1103[_0x4ba9('0x27')]['get']('TableUtils'),_0x158ac9=_0xaa1103['plugins']['get'](_0x3e7091),_0x4a6f50=_0xaa1103['plugins']['get'](_0x4ba9('0xd'));_0x158ac9['_tablePostFixingSubtypes'][_0x4ba9('0x29')]('tablePasteRow',_0x4ba9('0x3')),_0xaa1103['model'][_0x4ba9('0x94')]['register']('tableCellSuggestion',{'allowIn':_0x4ba9('0x26'),'allowContentOf':_0x4ba9('0x26'),'isLimit':!0x0}),_0xaa1103['conversion'][_0x4ba9('0x20')]({'model':_0x4ba9('0x7b'),'view':'suggestion-td'});let _0x26f24c=null;_0xaa1103[_0x4ba9('0x3d')]['on'](_0x4ba9('0x91'),(_0x4da330,_0x517e35)=>{const [_0x57d6e1,_0x311c6d]=_0x517e35,_0x5073c6=_0x517e35[_0x517e35[_0x4ba9('0x9d')]-0x1];_0x5073c6&&_0x5073c6[_0x4ba9('0x5c')]||_0x2370f0[_0x4ba9('0x83')]||this[_0x4ba9('0x1f')][_0x4ba9('0x6c')][_0x4ba9('0x1')](_0x4ba9('0x6'))[_0x4ba9('0x78')]&&function(_0x400b74,_0x207114,_0x4b54ce,_0x994145,_0x104352){if(_0x207114&&!_0x207114['is']('documentSelection'))return!0x1;const _0x1879d6=_0x104352[_0x4ba9('0x76')](_0x400b74,_0x4b54ce);if(!_0x1879d6||!de(_0x1879d6,void 0x0,_0x994145))return!0x1;const _0x182b0f=_0x994145['getSelectionAffectedTableCells'](_0x4b54ce['document'][_0x4ba9('0x9b')]);if(!_0x182b0f[_0x4ba9('0x9d')])return!0x1;const _0x2e3c0a=_0x182b0f[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),_0x44f7fc=_0x994145['getRowIndexes'](_0x182b0f),_0x398a4d=_0x994145[_0x4ba9('0x23')](_0x182b0f),_0x4bae24={'startRow':_0x44f7fc[_0x4ba9('0x2a')],'endRow':_0x44f7fc['last'],'startColumn':_0x398a4d['first'],'endColumn':_0x398a4d['last']};return 0x1==_0x182b0f[_0x4ba9('0x9d')]&&(_0x4bae24[_0x4ba9('0x6b')]+=_0x994145[_0x4ba9('0x8c')](_0x1879d6)-0x1,_0x4bae24['endColumn']+=_0x994145[_0x4ba9('0x8d')](_0x1879d6)-0x1),de(_0x2e3c0a,_0x4bae24,_0x994145);}(_0x57d6e1,_0x311c6d,_0xaa1103['model'],_0x14a392,_0x4a6f50)&&(_0x4da330[_0x4ba9('0x2c')](),_0x26f24c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x2')](()=>{_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x91')](_0x517e35[0x0],_0x517e35[0x1],_0x517e35[0x2],{'forceDefaultExecution':!0x0});const _0x236bc7=_0x24c2df(),{rowInsertionRanges:_0x8c3cd7,columnInsertionRanges:_0x4310bc,insertionRanges:_0x526c8f,deletionRanges:_0x2adaa3,cells:_0x1d0520}=_0x26f24c;_0x8c3cd7[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x8c3cd7,_0x4ba9('0x36'),{'tablePasteChainId':_0x236bc7}),_0x4310bc[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x4310bc,'tablePasteColumn',{'tablePasteChainId':_0x236bc7}),_0x526c8f[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x526c8f,'tablePaste',{'tablePasteChainId':_0x236bc7,'skipNestingCheck':!0x0}),_0x2adaa3[_0x4ba9('0x9d')]&&_0x2370f0['markMultiRangeDeletion'](_0x2adaa3,'tablePaste',{'tablePasteChainId':_0x236bc7,'skipNestingCheck':!0x0});const _0x47c21f=_0x2370f0[_0x4ba9('0x87')](_0x1d0520[_0x4ba9('0x8')](({element:_0x3cb06d})=>_0x3cb06d),{'formatGroupId':_0x24c2df()},[],_0x4ba9('0x5a'),{'tablePasteChainId':_0x236bc7});if(_0x47c21f){const _0x13ecdd=_0x47c21f[_0x4ba9('0x46')](),_0x765625=[];for(const {element:_0x301b96,attributes:_0x361c4c}of _0x1d0520){if(!_0x361c4c)continue;const _0x3dcdb7=_0xaa1103[_0x4ba9('0x3d')]['createRangeOn'](_0x301b96),_0xe77d97=_0x13ecdd['find'](_0x261713=>_0x261713[_0x4ba9('0x54')]()[_0x4ba9('0x2e')](_0x3dcdb7));_0xe77d97&&_0x765625['push']([_0xe77d97[_0x4ba9('0x95')],_0x361c4c]);}_0x765625['length']&&_0x47c21f[_0x4ba9('0x85')](_0x4ba9('0x60'),Object[_0x4ba9('0x45')](_0x765625));}_0x26f24c=null;}));},{'priority':_0x4894d5[_0x4ba9('0x81')]+0xa}),_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')]('TableClipboard')['on'](_0x4ba9('0x1d'),(_0x4047b6,_0x2b67c7)=>{const [_0x1f6aac,_0x35b18e,,_0x3d0e4f]=_0x2b67c7;if(!_0x26f24c)return;_0x4047b6['stop']();const _0x5e5a53=_0x1f6aac[_0x4ba9('0x98')],_0x5403f0=_0x35b18e,_0x5b993b=ge(_0x5e5a53),_0x2fff65=ge(_0x5403f0);_0x4047b6[_0x4ba9('0x39')]=_0x5e5a53;let _0x5cee1e=null,_0x64127b=null;if(_0x2fff65||_0x5b993b){if(_0x5b993b&&!_0x2fff65){_0x3d0e4f['remove'](_0x5e5a53[_0x4ba9('0x3e')](0x0));for(const _0x36a117 of Array[_0x4ba9('0xb')](_0x5403f0[_0x4ba9('0x1c')]()))_0x3d0e4f[_0x4ba9('0x43')](_0x36a117,_0x5e5a53,_0x4ba9('0x62'));const _0x392332=_0x26f24c[_0x4ba9('0x75')]['includes'](_0x1f6aac['row']),_0x4ec1fe=_0x26f24c[_0x4ba9('0x4d')]['includes'](_0x1f6aac[_0x4ba9('0x51')]);_0x392332||_0x4ec1fe||(_0x5cee1e=_0x3d0e4f[_0x4ba9('0x7c')](_0x5e5a53));}else _0x2fff65&&!_0x5b993b&&(_0x64127b=_0x3d0e4f['createRangeIn'](_0x5e5a53));}else{const _0x33a491=_0x3d0e4f[_0x4ba9('0x4f')](_0x4ba9('0x7b')),_0x5eadfd=_0x3d0e4f[_0x4ba9('0x4f')](_0x4ba9('0x7b'));_0x3d0e4f[_0x4ba9('0x0')](_0x3d0e4f[_0x4ba9('0x7c')](_0x5e5a53),_0x5eadfd),_0x3d0e4f['insert'](_0x33a491,_0x5e5a53,0x0);for(const _0x442192 of Array['from'](_0x5403f0['getChildren']()))_0x3d0e4f['insert'](_0x442192,_0x33a491,_0x4ba9('0x62'));_0x5cee1e=_0x3d0e4f[_0x4ba9('0x63')](_0x33a491),_0x64127b=_0x3d0e4f['createRangeOn'](_0x5eadfd);}const _0xe9b6e0=Array['from'](_0x5403f0['getAttributes']())[_0x4ba9('0x89')](([_0x31f66e])=>fe[_0x4ba9('0x47')](_0x31f66e));_0x26f24c[_0x4ba9('0x59')][_0x4ba9('0x29')]({'element':_0x5e5a53,'attributes':_0xe9b6e0[_0x4ba9('0x9d')]?Object[_0x4ba9('0x45')](_0xe9b6e0):null}),_0x5cee1e&&_0x26f24c[_0x4ba9('0x7e')][_0x4ba9('0x29')](_0x5cee1e),_0x64127b&&_0x26f24c[_0x4ba9('0x2d')][_0x4ba9('0x29')](_0x64127b);},{'priority':'high'}),_0x14a392['on'](_0x4ba9('0x7f'),(_0x20f08f,_0x1c66a2)=>{const [_0x325868,_0x3a3d3b={}]=_0x1c66a2;if(!_0x26f24c)return;const _0xb70487=_0x3a3d3b['at']||0x0,_0x435f16=_0x3a3d3b['columns']||0x1;_0x26f24c[_0x4ba9('0x4d')]=new Array(_0x435f16)['fill'](_0xb70487)[_0x4ba9('0x8')]((_0x5171dc,_0x372176)=>_0x5171dc+_0x372176);for(const {cell:_0x419441}of _0x14a392[_0x4ba9('0x37')](_0x325868,{'startColumn':_0xb70487,'endColumn':_0xb70487+_0x435f16-0x1}))_0x26f24c[_0x4ba9('0x48')][_0x4ba9('0x29')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x63')](_0x419441));},{'priority':_0x4ba9('0xe')}),_0x14a392['on'](_0x4ba9('0x7d'),(_0x4830de,_0x5c3add)=>{const [_0x301a69,_0x2c35bd={}]=_0x5c3add;if(!_0x26f24c)return;const _0x144b77=_0x2c35bd['at']||0x0,_0x504d57=_0x2c35bd[_0x4ba9('0x19')]||0x1;_0x26f24c['rowInsertionIndexes']=new Array(_0x504d57)[_0x4ba9('0x5d')](_0x144b77)['map']((_0x876cf,_0x291ed3)=>_0x876cf+_0x291ed3);for(const {cell:_0x47ac2e}of _0x14a392[_0x4ba9('0x37')](_0x301a69,{'startRow':_0x144b77,'endRow':_0x144b77+_0x504d57-0x1}))_0x26f24c[_0x4ba9('0x35')][_0x4ba9('0x29')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x63')](_0x47ac2e));},{'priority':_0x4ba9('0xe')}),_0x2370f0['_descriptionFactory'][_0x4ba9('0x74')](_0x3c9b0a=>{if(_0x3c9b0a['subType']&&_0x3c9b0a[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e')))return _0x3c9b0a[_0x4ba9('0xf')]?{}:{'type':_0x4ba9('0x58'),'content':_0x4f2f78(_0xaa1103['locale'],_0x4ba9('0x24'))};});const _0x49f5ff=()=>!0x1;for(const _0x10b8a6 of['tablePaste','tablePasteColumn',_0x4ba9('0x36'),'tablePasteCell'])_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')]('insertion',_0x10b8a6,'join',_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')](_0x4ba9('0x52'),_0x10b8a6,_0x4ba9('0x57'),_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback'](_0x4ba9('0x8a'),_0x10b8a6,'join',_0x49f5ff);_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback']('formatBlock',_0x4ba9('0x5a'),'discard',_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')]('formatBlock',_0x4ba9('0x5a'),_0x4ba9('0x34'),(_0x552cab,_0x5e2d8c,_0x253b64)=>{const _0xe872b0=_0x552cab[_0x4ba9('0x8')](_0x2a4732=>_0x2a4732[_0x4ba9('0x86')]())[_0x4ba9('0x89')](_0x31bb4c=>_0x31bb4c),_0x566686=new Map(_0xe872b0[_0x4ba9('0x8')](_0x464ac2=>[_0x464ac2,null]));if(_0x26f24c)for(const {element:_0x4ce600,attributes:_0x5e64d3}of _0x26f24c[_0x4ba9('0x59')])_0x5e64d3&&_0x566686[_0x4ba9('0x6e')](_0x4ce600,_0x5e64d3);else{if(_0x253b64&&_0x253b64[_0x4ba9('0x60')])for(const [_0xbe4324,_0x5cfda0]of Object[_0x4ba9('0x56')](_0x253b64[_0x4ba9('0x60')])){const _0x295212=_0xaa1103['model'][_0x4ba9('0x82')][_0x4ba9('0x1')](_0xbe4324),_0x408092=_0x295212?_0x295212[_0x4ba9('0x54')]()[_0x4ba9('0x86')]():null;_0x408092&&_0x566686[_0x4ba9('0x6e')](_0x408092,_0x5cfda0);}}_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x2')](_0x321551=>{for(const [_0x15e9a7,_0x129eff]of _0x566686)_0x321551[_0x4ba9('0xa')]({...be,..._0x129eff},_0x15e9a7);});});const _0x1c9f57=(_0x2a445e,_0x4ebb01)=>{_0x2370f0['_suggestionFactory'][_0x4ba9('0x1e')](_0x2a445e,_0x4ba9('0x8e'),_0x4ebb01,(_0x4ce410,_0x3a3bd7,_0x4bdf61)=>{_0xaa1103['model'][_0x4ba9('0x2')](_0x1231a8=>{const _0x44c676=[];for(const _0x18812f of _0x4ce410){const _0x1ce102=_0x18812f[_0x4ba9('0x38')][_0x4ba9('0x8b')];_0x1ce102['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'))&&_0x44c676[_0x4ba9('0x29')](_0x1ce102);}_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x84')](_0x2a445e,null,_0x4ebb01)(_0x4ce410,_0x3a3bd7,_0x4bdf61);for(const _0x4c5a2d of _0x44c676)_0x4ba9('0x42')!=_0x4c5a2d[_0x4ba9('0x6a')][_0x4ba9('0x11')]&&_0x1231a8[_0x4ba9('0x4e')](_0x4c5a2d);});});};_0x1c9f57('insertion',_0x4ba9('0x34')),_0x1c9f57('insertion',_0x4ba9('0x50')),_0x1c9f57(_0x4ba9('0x52'),_0x4ba9('0x34')),_0x1c9f57('deletion','discard'),_0x2370f0['_suggestionFactory'][_0x4ba9('0x1e')](_0x4ba9('0x58'),_0x4ba9('0x36'),_0x4ba9('0x50'),_0x54a2d8=>{const _0x576dd0=_0x54a2d8[_0x4ba9('0x8')](_0x130bff=>_0x130bff['getContainedElement']()),_0x5a9fb0=_0x576dd0[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),{minRow:_0x4be408,maxRow:_0x546dac}=_0x158ac9['_getCoordsForCells'](_0x576dd0);_0x14a392[_0x4ba9('0x9e')](_0x5a9fb0,{'at':_0x4be408,'rows':_0x546dac-_0x4be408+0x1});}),_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback'](_0x4ba9('0x58'),_0x4ba9('0x3'),_0x4ba9('0x50'),_0x5a748e=>{const _0x139d6f=_0x5a748e[_0x4ba9('0x8')](_0x3ff9db=>_0x3ff9db[_0x4ba9('0x86')]()),_0x16bcfe=_0x139d6f[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),{minColumn:_0x526ddc,maxColumn:_0x22d4ee}=_0x158ac9[_0x4ba9('0x90')](_0x139d6f);_0x14a392[_0x4ba9('0x4b')](_0x16bcfe,{'at':_0x526ddc,'columns':_0x22d4ee-_0x526ddc+0x1});});const _0x354c57=(_0x35585a,_0x1112ab)=>{if(!_0x1112ab[_0x4ba9('0x4')]||!_0x1112ab[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e')))return;const _0x4a5971=_0x1112ab[_0x4ba9('0x9')]['tablePasteChainId'],_0x461b14=_0x2370f0['getSuggestions']()[_0x4ba9('0x89')](_0x4bbb34=>_0x4bbb34[_0x4ba9('0x5f')]&&_0x4bbb34[_0x4ba9('0x9')]&&_0x4bbb34[_0x4ba9('0x9')][_0x4ba9('0x5b')]==_0x4a5971);_0x461b14[_0x4ba9('0x9d')]&&_0x1112ab[_0x4ba9('0xa2')]()[_0x4ba9('0x9d')]!=_0x461b14[_0x4ba9('0x9d')]&&_0x461b14[_0x4ba9('0x55')]((_0x2bc539,_0x30330f)=>(_0x2bc539[_0x4ba9('0x4c')]=_0x30330f,_0x30330f[_0x4ba9('0xf')]=_0x2bc539,_0x30330f));};function _0x17e5dd(_0x4ac762,_0xb50a07=!0x0){const {id:_0x5aada0}=_0x2370f0[_0x4ba9('0x2b')](_0x4ac762[_0x4ba9('0x97')]),_0x35d5be=['ck-suggestion-marker',_0x4ba9('0x5')],_0x5abe89=_0x2370f0['activeMarkers']['includes'](_0x4ac762[_0x4ba9('0x97')]);return _0x5abe89&&_0x35d5be[_0x4ba9('0x29')]('ck-suggestion-marker--active'),{'classes':_0x35d5be,'attributes':{'data-suggestion':_0x5aada0},'priority':_0x5abe89&&_0xb50a07?0xbc2:0xbb8};}_0x2370f0['on']('suggestionLoaded',_0x354c57,{'priority':_0x4ba9('0x81')}),_0x2370f0['on']('suggestionUnloaded',_0x354c57,{'priority':_0x4ba9('0x81')}),_0xaa1103['model'][_0x4ba9('0x12')][_0x4ba9('0x92')](()=>{let _0x2d309a=!0x1;const _0x45e91e=Array[_0x4ba9('0xb')](_0xaa1103['model'][_0x4ba9('0x12')][_0x4ba9('0x44')][_0x4ba9('0x88')]());for(const {name:_0x56dabc,data:_0x121cea}of _0x45e91e){const {group:_0x40e9cc,type:_0x348f15,id:_0xba84b3}=_0x2370f0[_0x4ba9('0x2b')](_0x56dabc);if('suggestion'!=_0x40e9cc||'deletion'!=_0x348f15||_0x121cea['oldRange'])continue;if(!_0x2370f0[_0x4ba9('0x99')](_0xba84b3))continue;const _0x439d44=_0x2370f0[_0x4ba9('0x6f')](_0xba84b3)[_0x4ba9('0x65')](),_0x39ecbb=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'];for(const _0x4b988b of _0x2370f0[_0x4ba9('0x25')]()){if(!_0x4b988b[_0x4ba9('0x5f')]||_0x4b988b[_0x4ba9('0x1b')]!=_0x39ecbb)continue;if(_0x4ba9('0x8a')!=_0x4b988b[_0x4ba9('0x79')]||_0x4ba9('0x5a')!=_0x4b988b['subType'])continue;if(_0x4b988b[_0x4ba9('0x65')]()[_0x4ba9('0x61')](_0x151d66=>_0x439d44[_0x4ba9('0x31')](_0x88cd42=>_0x88cd42[_0x4ba9('0x2f')](_0x151d66,!0x0))))for(const _0x15dcf9 of _0x4b988b[_0x4ba9('0xa2')]())_0x15dcf9[_0x4ba9('0x5f')]&&(_0x15dcf9['discard'](),_0x2d309a=!0x0);}}return _0x2d309a;}),_0xaa1103[_0x4ba9('0x3d')]['document'][_0x4ba9('0x92')](_0x5703c2=>{const _0x582c7f=_0xaa1103[_0x4ba9('0x6c')][_0x4ba9('0x1')](_0x4ba9('0x40'));if(!_0x582c7f||!_0x582c7f['_createdBatches'][_0x4ba9('0x33')](_0x5703c2[_0x4ba9('0x3f')]))return!0x1;let _0x1700d7=!0x1;const _0x2a0861=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'],_0xd0a8f4=_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x12')][_0x4ba9('0x44')][_0x4ba9('0x73')](),_0x8d1550=Array[_0x4ba9('0xb')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x12')][_0x4ba9('0x44')]['getChangedMarkers']())[_0x4ba9('0x89')](({name:_0x4c533f,data:_0x4a5ead})=>{const {group:_0x5a9358,subType:_0x30b22d,authorId:_0x2d7c00}=_0x2370f0[_0x4ba9('0x2b')](_0x4c533f);return'suggestion'==_0x5a9358&&_0x4ba9('0x8e')==_0x30b22d&&_0x2d7c00==_0x2a0861['id']&&!_0x4a5ead[_0x4ba9('0x32')];});for(const _0x52b226 of _0xd0a8f4){if('insert'!=_0x52b226[_0x4ba9('0x79')]||_0x4ba9('0x7b')!=_0x52b226[_0x4ba9('0x95')]||0x1!=_0x52b226[_0x4ba9('0x9d')])continue;const _0x4fad56=_0x5703c2[_0x4ba9('0x67')](_0x52b226[_0x4ba9('0x9c')],_0x52b226[_0x4ba9('0x9c')][_0x4ba9('0x69')](0x1));if(!_0x8d1550[_0x4ba9('0x21')](({data:_0x565b2a})=>_0x565b2a[_0x4ba9('0x5e')][_0x4ba9('0x2e')](_0x4fad56)))for(const {name:_0x463a1b,data:_0xb8890}of _0x8d1550)if(_0x4fad56[_0x4ba9('0x2f')](_0xb8890[_0x4ba9('0x5e')])){_0x5703c2['updateMarker'](_0x463a1b,{'range':_0x4fad56}),_0x1700d7=!0x0;break;}}return _0x1700d7;}),_0xaa1103['model']['document'][_0x4ba9('0x92')](_0x453a32=>{let _0x2f4378=!0x1;const _0x36b49b=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'],_0x406cc9=_0x2370f0[_0x4ba9('0x25')]()[_0x4ba9('0x89')](_0x1a6af1=>_0x1a6af1[_0x4ba9('0x5f')]&&_0x1a6af1[_0x4ba9('0x1b')]==_0x36b49b),_0x4263ee=new Set(),_0x2b6ddd=new Set();for(const _0x10de84 of _0x406cc9)if(_0x4ba9('0x8e')==_0x10de84[_0x4ba9('0x4')])for(const _0x17c702 of _0x10de84[_0x4ba9('0x46')]()){const _0x525f5a=_0x17c702[_0x4ba9('0x54')]()[_0x4ba9('0x86')]();if(_0x525f5a){if(_0x525f5a['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'))&&ge(_0x525f5a)){_0x10de84[_0x4ba9('0x72')](_0x17c702[_0x4ba9('0x95')]),_0x4263ee[_0x4ba9('0x64')](_0x525f5a),_0x2f4378=!0x0;const _0x3e1219=_0x525f5a[_0x4ba9('0x10')],_0x3c4b8f=_0x525f5a[_0x4ba9('0x77')],_0x3d85e0=_0x3e1219&&_0x3e1219['is'](_0x4ba9('0x18'),_0x4ba9('0x7b')),_0x55ee58=_0x3c4b8f&&_0x3c4b8f['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'));_0x3d85e0&&!_0x4263ee[_0x4ba9('0x33')](_0x3e1219)&&_0x2b6ddd[_0x4ba9('0x64')](_0x3e1219),_0x55ee58&&!_0x4263ee['has'](_0x3c4b8f)&&_0x2b6ddd[_0x4ba9('0x64')](_0x3c4b8f);}else _0x525f5a['is'](_0x4ba9('0x18'),_0x4ba9('0x13'))&&_0x525f5a[_0x4ba9('0x66')]&&(_0x10de84[_0x4ba9('0x72')](_0x17c702[_0x4ba9('0x95')]),_0x2f4378=!0x0);}}else{if(_0x4ba9('0x5a')==_0x10de84[_0x4ba9('0x4')]){if(!_0x10de84[_0x4ba9('0x9')]||!_0x10de84[_0x4ba9('0x9')][_0x4ba9('0x5b')])continue;const _0x1473f4=_0x10de84[_0x4ba9('0x9')]['markerAttributes'];if(_0x1473f4&&Object[_0x4ba9('0x93')](_0x1473f4)[_0x4ba9('0x9d')])continue;const _0x4e33aa=_0x10de84['attributes'][_0x4ba9('0x5b')];let _0x1a3915=!0x0,_0x3329ae=!0x0;for(const _0x40fc6e of _0x406cc9)if(_0x40fc6e[_0x4ba9('0x4')]&&_0x40fc6e[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e'))){if(!_0x40fc6e[_0x4ba9('0x9')][_0x4ba9('0x5b')]){_0x3329ae=!0x1;break;}if(_0x40fc6e['id']!=_0x10de84['id']&&_0x40fc6e['attributes'][_0x4ba9('0x5b')]==_0x4e33aa){_0x1a3915=!0x1;break;}}_0x3329ae&&_0x1a3915&&(_0x10de84[_0x4ba9('0x80')](),_0x2f4378=!0x0);}}for(const _0x208541 of _0x4263ee)_0x453a32[_0x4ba9('0x3c')](_0x208541);for(const _0x3783bc of _0x2b6ddd)_0x453a32['unwrap'](_0x3783bc);return _0x2f4378;}),_0xaa1103[_0x4ba9('0x22')][_0x4ba9('0x28')](_0x4ba9('0x8f'))[_0x4ba9('0x7a')]({'model':_0x4ba9('0x16'),'view':(_0x523731,_0x1e637d)=>_0x17e5dd(_0x523731),'converterPriority':'high'}),_0xaa1103[_0x4ba9('0x22')][_0x4ba9('0x28')](_0x4ba9('0x9a'))['markerToHighlight']({'model':_0x4ba9('0x16'),'view':(_0x444580,_0x3e3b58)=>_0x3e3b58[_0x4ba9('0x53')]['showSuggestionHighlights']?_0x17e5dd(_0x444580,!0x1):null,'converterPriority':'high'});const _0x37ff70=_0xaa1103[_0x4ba9('0x1a')][_0x4ba9('0xc')];this['listenTo'](_0x37ff70[_0x4ba9('0x12')],_0x4ba9('0x6d'),(_0x4fdaee,_0x37e10c)=>{const _0x33d1cd=[];for(const _0x1e2e01 of _0x37ff70[_0x4ba9('0x7c')](_0x37e10c[_0x4ba9('0x17')])['getItems']())_0x1e2e01['is'](_0x4ba9('0x18'),'suggestion-td')&&_0x33d1cd[_0x4ba9('0x29')](_0x1e2e01);_0x37ff70[_0x4ba9('0x2')](_0x385b9c=>{for(const _0x214c1e of _0x33d1cd)_0x385b9c[_0x4ba9('0x30')](_0x385b9c[_0x4ba9('0x7c')](_0x214c1e),_0x385b9c[_0x4ba9('0x71')](_0x214c1e)),_0x385b9c[_0x4ba9('0x3c')](_0x214c1e);});});}}function ge(_0x19f644){if(_0x19f644[_0x4ba9('0x66')])return!0x0;const _0x4033aa=_0x19f644[_0x4ba9('0x3e')](0x0);return _0x4033aa['is'](_0x4ba9('0x18'),_0x4ba9('0x13'))&&_0x4033aa[_0x4ba9('0x66')];}function de(_0x54258f,_0x2072e8={},_0x443e19){for(const {isAnchor:_0x42799a,cellHeight:_0x31aa15,cellWidth:_0xda29c6}of _0x443e19[_0x4ba9('0x37')](_0x54258f,{'includeAllSlots':!0x0,..._0x2072e8}))if(!_0x42799a||0x1!=_0x31aa15||0x1!=_0xda29c6)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59d6=['afterInit','model','*Format:*\x20resize\x20table','formatBlock','type','getSuggestionCallback','handleSuggestionDescription','formatInline','plugins','bind','TableColumnResizeEditing','editor','format','has','registerCustomCallback','change','get','Users','registerDescriptionCallback','discard','_descriptionFactory','selection','resizeTable','table','getContainedElement','data','getTableColumnsWidths','getSuggestions','TrackChangesEditing','columnWidths','handleResizeTableWidthCommand','tableWidth','author','subType','accept','_suggestionFactory','formatGroupId'];(function(_0x372809,_0x59d6e4){const _0x45ad19=function(_0x476ede){while(--_0x476ede){_0x372809['push'](_0x372809['shift']());}};_0x45ad19(++_0x59d6e4);}(_0x59d6,0x14b));const _0x45ad=function(_0x372809,_0x59d6e4){_0x372809=_0x372809-0x0;let _0x45ad19=_0x59d6[_0x372809];return _0x45ad19;};import{Plugin as _0x1a0766}from'ckeditor5/src/core.js';import{getTranslation as _0x10c26e}from'../utils/common-translations.js';export default class It extends _0x1a0766{[_0x45ad('0x2')](){if(!this[_0x45ad('0xd')]['plugins'][_0x45ad('0xf')](_0x45ad('0xc')))return;const _0x17316d=this['editor'][_0x45ad('0xa')]['get'](_0x45ad('0x1e'));_0x17316d['enableCommand']('resizeTableWidth',this[_0x45ad('0x20')]['bind'](this)),_0x17316d[_0x45ad('0x0')][_0x45ad('0x10')](_0x45ad('0x5'),_0x45ad('0x18'),_0x45ad('0x24'),_0x17316d['_suggestionFactory'][_0x45ad('0x7')](_0x45ad('0x5'),null,_0x45ad('0x15'))),_0x17316d[_0x45ad('0x0')][_0x45ad('0x10')](_0x45ad('0x5'),'resizeTable',_0x45ad('0x15'),_0x17316d[_0x45ad('0x0')][_0x45ad('0x7')](_0x45ad('0x5'),null,_0x45ad('0x24'))),_0x17316d[_0x45ad('0x16')][_0x45ad('0x14')](this['handleSuggestionDescription'][_0x45ad('0xb')](this));}[_0x45ad('0x20')](_0x5294d6,_0x2271c6){const _0x3ad5ec=this[_0x45ad('0xd')][_0x45ad('0xa')]['get'](_0x45ad('0x1e')),_0x15a400=this[_0x45ad('0xd')][_0x45ad('0xa')][_0x45ad('0x12')]('TableColumnResizeEditing'),_0x1acc09=_0x2271c6[_0x45ad('0x19')]||this[_0x45ad('0xd')][_0x45ad('0x3')]['document'][_0x45ad('0x17')]['getSelectedElement']();this[_0x45ad('0xd')]['model'][_0x45ad('0x11')](()=>{const _0x55d44f=_0x15a400['getColumnGroupElement'](_0x1acc09);let _0x52c27e=_0x55d44f?_0x15a400[_0x45ad('0x1c')](_0x55d44f):null,_0x2c4ae3=_0x1acc09['getAttribute'](_0x45ad('0x21'))||null;const _0x1907d5=_0x2271c6[_0x45ad('0x21')]||_0x2c4ae3,_0x59892e=_0x2271c6[_0x45ad('0x1f')]||_0x52c27e,_0x2bb136=this[_0x45ad('0xd')][_0x45ad('0xa')][_0x45ad('0x12')](_0x45ad('0x13'))['me'];for(const _0x4cdf4f of _0x3ad5ec[_0x45ad('0x1d')]()){const _0x2083e2=_0x4cdf4f[_0x45ad('0x1a')]();if(_0x45ad('0x18')===_0x4cdf4f[_0x45ad('0x23')]&&_0x2083e2===_0x1acc09){_0x4cdf4f[_0x45ad('0x22')]!==_0x2bb136&&_0x4cdf4f[_0x45ad('0x15')]();const _0x131577=_0x4cdf4f[_0x45ad('0x1b')]['commandParams'];_0x2c4ae3=_0x131577[0x0][_0x45ad('0x21')],_0x52c27e=_0x131577[0x0]['columnWidths'];break;}}_0x5294d6({'table':_0x1acc09,'tableWidth':_0x1907d5,'columnWidths':_0x59892e}),_0x3ad5ec['markBlockFormat'](_0x1acc09,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c4ae3,'columnWidths':_0x52c27e}],'formatGroupId':_0x45ad('0x18')},[],'resizeTable');});}[_0x45ad('0x8')](_0x17ef26){if(_0x45ad('0x5')!=_0x17ef26[_0x45ad('0x6')]&&_0x45ad('0x9')!=_0x17ef26[_0x45ad('0x6')])return;const {data:_0x4c48dd}=_0x17ef26;if(_0x4c48dd&&_0x45ad('0x18')===_0x4c48dd[_0x45ad('0x1')]){const _0x4f5b98=_0x45ad('0x4');return{'type':_0x45ad('0xe'),'content':_0x10c26e(this[_0x45ad('0xd')]['locale'],_0x4f5b98)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x316d=['highest','downcastDispatcher','_handleLegacySuggestions','FORMAT_HEADER_ROW','addClass','bindElementToMarker','stop','headingRows','*Format:*\x20%0','registerDescriptionCallback','getSuggestion','nodeBefore','afterInit','plugins','locale','headingColumns','requires','forceValue','get','setTableColumnHeader','commandParams','setTableRowHeader','_splitMarkerName','_descriptionFactory','writer','addMarker:suggestion','FORMAT_HEADER_COLUMN','editing','nodeAfter','mapper','ck-suggestion-marker--active','cell','registerCustomCallback','name','activeMarkers','_suggestionFactory','parent','data-suggestion','commandName','has','type','removeMarker:suggestion','TrackChangesEditing','markerName','markerNameToElements','markerRange','_acceptFormatSuggestionCallbackFactory','accept','unbindElementFromMarkerName','_registerLegacyDescription','FORMAT_REGULAR_ROW','format','createTableWalker','registerAttributeLabel','ck-suggestion-marker-','getCellLocation','formatBlock','data','toViewElement','_enableDefaultAttributesIntegration','editor'];(function(_0x2536bc,_0x316d89){const _0x3697ba=function(_0x481ffc){while(--_0x481ffc){_0x2536bc['push'](_0x2536bc['shift']());}};_0x3697ba(++_0x316d89);}(_0x316d,0x100));const _0x3697=function(_0x2536bc,_0x316d89){_0x2536bc=_0x2536bc-0x0;let _0x3697ba=_0x316d[_0x2536bc];return _0x3697ba;};import{Plugin as _0x4f3581}from'ckeditor5/src/core.js';import _0x53a4a4 from'./table.js';import{getTranslation as _0x4af261}from'../utils/common-translations.js';export default class St extends _0x4f3581{static get[_0x3697('0x4')](){return[_0x53a4a4];}[_0x3697('0x0')](){const _0x2d7b10=this['editor'];if(!_0x2d7b10[_0x3697('0x1')][_0x3697('0x1b')]('TableEditing'))return;const _0x8af1ac=_0x2d7b10[_0x3697('0x2')],_0x181fdf=_0x2d7b10[_0x3697('0x1')]['get'](_0x3697('0x1e'));_0x181fdf[_0x3697('0x2f')]('setTableRowHeader',[],[_0x3697('0x38')]),_0x181fdf['_enableDefaultAttributesIntegration'](_0x3697('0x7'),[],[_0x3697('0x3')]),_0x181fdf['_descriptionFactory']['registerAttributeLabel'](_0x3697('0x38'),_0x4af261(_0x8af1ac,_0x3697('0x34'))),_0x181fdf[_0x3697('0xb')][_0x3697('0x29')](_0x3697('0x3'),_0x4af261(_0x8af1ac,_0x3697('0xe'))),this['_handleLegacySuggestions']();}[_0x3697('0x33')](){const _0x48dbd9=this[_0x3697('0x30')][_0x3697('0x1')][_0x3697('0x6')](_0x3697('0x1e')),_0x331c85=this[_0x3697('0x30')][_0x3697('0x1')][_0x3697('0x6')]('TableUtils'),_0x10e463=this[_0x3697('0x30')][_0x3697('0x1')][_0x3697('0x6')](_0x53a4a4)[_0x3697('0x22')]();function _0x572f20({showActiveMarker:_0x452f7d=!0x0,setDataAttribute:_0x2dd4ba=!0x0}={}){return(_0x5c22cc,_0x44fbcb,_0x5a36ba)=>{const {type:_0x5a640c,id:_0x2a3155}=_0x48dbd9[_0x3697('0xa')](_0x44fbcb[_0x3697('0x1f')]),_0x5ab3a7=_0x48dbd9[_0x3697('0x3b')](_0x2a3155),_0x310aaa=_0x5ab3a7[_0x3697('0x2d')];if('formatBlock'!=_0x5ab3a7['type']||!_0x310aaa||_0x3697('0x7')!=_0x310aaa[_0x3697('0x1a')])return;if(_0x44fbcb['item'])return void _0x5c22cc[_0x3697('0x37')]();if(!_0x5a36ba['consumable']['consume'](_0x44fbcb[_0x3697('0x21')],_0x5c22cc[_0x3697('0x15')]))return;const _0xa01702=_0x44fbcb[_0x3697('0x21')]['start'][_0x3697('0x10')],_0x1ff223=_0x44fbcb[_0x3697('0x21')]['end'][_0x3697('0x3c')],_0x487084=_0xa01702['parent'][_0x3697('0x18')],{column:_0x2c90d0}=_0x331c85['getCellLocation'](_0xa01702),{column:_0x4f2f95}=_0x331c85[_0x3697('0x2b')](_0x1ff223);for(let _0x19cfe7=_0x2c90d0;_0x19cfe7<=_0x4f2f95;_0x19cfe7++){const _0x498e8e=_0x331c85[_0x3697('0x28')](_0x487084,{'column':_0x19cfe7,'includeAllSlots':!0x1});for(const _0x1ff677 of _0x498e8e){const _0x3a4c7b=_0x1ff677[_0x3697('0x13')],_0x5455b6=_0x5a36ba[_0x3697('0x11')][_0x3697('0x2e')](_0x3a4c7b);_0x5a36ba[_0x3697('0xc')][_0x3697('0x35')](_0x3697('0x2a')+_0x5a640c,_0x5455b6),_0x2dd4ba&&_0x5a36ba['writer']['setAttribute'](_0x3697('0x19'),_0x2a3155,_0x5455b6),_0x5a36ba[_0x3697('0x11')][_0x3697('0x36')](_0x5455b6,_0x44fbcb[_0x3697('0x1f')]),_0x452f7d&&(_0x48dbd9[_0x3697('0x16')]['includes'](_0x44fbcb[_0x3697('0x1f')])?_0x5a36ba['writer'][_0x3697('0x35')](_0x3697('0x12'),_0x5455b6):_0x5a36ba['writer']['removeClass'](_0x3697('0x12'),_0x5455b6));}}};}_0x48dbd9[_0x3697('0x17')][_0x3697('0x14')]('formatBlock','setTableRowHeader',_0x3697('0x23'),_0x10e463),_0x48dbd9[_0x3697('0x17')]['registerCustomCallback'](_0x3697('0x2c'),_0x3697('0x7'),'accept',_0x10e463),this[_0x3697('0x30')][_0x3697('0xf')][_0x3697('0x32')]['on']('addMarker:suggestion',_0x572f20(),{'priority':_0x3697('0x31')}),this[_0x3697('0x30')][_0x3697('0x2d')]['downcastDispatcher']['on'](_0x3697('0xd'),(_0x4018e5,_0x2b0da2,_0x2ac1b1)=>{_0x2ac1b1['options']['showSuggestionHighlights']&&_0x572f20({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4018e5,_0x2b0da2,_0x2ac1b1);},{'priority':_0x3697('0x31')}),this['editor'][_0x3697('0xf')][_0x3697('0x32')]['on'](_0x3697('0x1d'),(_0x31440f,_0x4ca199,_0x38c271)=>{const {type:_0x346688,id:_0x550ee4}=_0x48dbd9['_splitMarkerName'](_0x4ca199[_0x3697('0x1f')]),_0x1f888f=_0x48dbd9['getSuggestion'](_0x550ee4),_0x2a41ce=_0x1f888f['data'];if(_0x3697('0x2c')!=_0x1f888f[_0x3697('0x1c')]||!_0x2a41ce||_0x3697('0x7')!=_0x2a41ce[_0x3697('0x1a')])return;const _0x5710fe=_0x38c271[_0x3697('0x11')][_0x3697('0x20')](_0x4ca199['markerName']);if(_0x5710fe)for(const _0x54ad6a of _0x5710fe)_0x38c271[_0x3697('0xc')]['removeClass']('ck-suggestion-marker-'+_0x346688,_0x54ad6a),_0x38c271[_0x3697('0xc')]['removeClass'](_0x3697('0x12'),_0x54ad6a),_0x38c271[_0x3697('0xc')]['removeAttribute'](_0x3697('0x19'),_0x54ad6a),_0x38c271[_0x3697('0x11')][_0x3697('0x24')](_0x54ad6a,_0x4ca199[_0x3697('0x1f')]);},{'priority':_0x3697('0x31')}),this[_0x3697('0x25')]();}[_0x3697('0x25')](){const _0xcc983b=this[_0x3697('0x30')],_0xe278fe=_0xcc983b['locale'];function _0x2745a6(_0xa3d5fa){return{'type':_0x3697('0x27'),'content':_0x4af261(_0xe278fe,_0x3697('0x39'),_0xa3d5fa)};}_0xcc983b[_0x3697('0x1')][_0x3697('0x6')](_0x3697('0x1e'))[_0x3697('0xb')][_0x3697('0x3a')](_0x1d957a=>{if(_0x3697('0x2c')!=_0x1d957a[_0x3697('0x1c')])return;const {data:_0xf6baaf}=_0x1d957a;if(_0xf6baaf){if(_0x3697('0x9')==_0xf6baaf[_0x3697('0x1a')]){const _0x3c150f=_0xf6baaf[_0x3697('0x8')][0x0]['forceValue'];return _0x2745a6(_0x4af261(_0xe278fe,_0x3c150f?_0x3697('0x34'):_0x3697('0x26')));}if(_0x3697('0x7')==_0xf6baaf[_0x3697('0x1a')]){const _0x4fd16f=_0xf6baaf[_0x3697('0x8')][0x0][_0x3697('0x5')];return _0x2745a6(_0x4af261(_0xe278fe,_0x4fd16f?_0x3697('0xe'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34fc=['element','findAncestor','length','mergeTableCellUp','rootName','cell','*Split\x20cell:*\x20horizontally','splitTableCellVertically','enableCommand','mergeTableCellRight','requires','low','document','getFirstPosition','detach','mergeTableCellLeft','afterInit','get','markMultiRangeBlockFormat','map','isInContent','setSelection','commands','splitTableCellHorizontally','_areMergableCells','value','_tablePostFixingSubtypes','root','fromRange','from','getSelectionAffectedTableCells','mergeTableCellDown','getCellLocation','createTableWalker','*Merge\x20cells*','refresh','getRanges','model','registerCustomCallback','locale','size','set:isEnabled','TableEditing','formatBlock','accept','isEnabled','markBlockFormat','stop','has','tableCell','_descriptionFactory','_isForcedDefaultExecutionBlock','add','_areSelectedCellsMergable','highest','change','format','author','type','push','plugins','TableUtils','forceDefaultExecution','commandName','TrackChangesEditing','execute','horizontally','table','formatInline','selection','createRangeOn','trackChanges','containsRange','editor','mergeTableCells','direction','_suggestionFactory','getAncestors'];(function(_0x232abd,_0x34fcc7){const _0x35f06e=function(_0x5aaedb){while(--_0x5aaedb){_0x232abd['push'](_0x232abd['shift']());}};_0x35f06e(++_0x34fcc7);}(_0x34fc,0xf7));const _0x35f0=function(_0x232abd,_0x34fcc7){_0x232abd=_0x232abd-0x0;let _0x35f06e=_0x34fc[_0x232abd];return _0x35f06e;};import{Plugin as _0x5695b0}from'ckeditor5/src/core.js';import _0x5d45f7 from'./table.js';import{LiveRange as _0x52eca2}from'ckeditor5/src/engine.js';import{getTranslation as _0x466484}from'../utils/common-translations.js';export default class jt extends _0x5695b0{static get[_0x35f0('0x4b')](){return[_0x5d45f7];}[_0x35f0('0x3')](){const _0x416bcc=this[_0x35f0('0x3c')],_0x1c8843=_0x416bcc[_0x35f0('0x18')][_0x35f0('0x4d')][_0x35f0('0x38')],_0x24c7e2=_0x416bcc[_0x35f0('0x1a')];if(!_0x416bcc['plugins'][_0x35f0('0x23')](_0x35f0('0x1d')))return;const _0x23edb3=_0x416bcc['plugins'][_0x35f0('0x4')](_0x35f0('0x33')),_0x3a6a9a=_0x416bcc[_0x35f0('0x2f')][_0x35f0('0x4')](_0x35f0('0x30')),_0x250cad=_0x416bcc[_0x35f0('0x2f')][_0x35f0('0x4')](_0x5d45f7);_0x250cad[_0x35f0('0xd')][_0x35f0('0x2e')](_0x35f0('0x3d')),_0x23edb3['enableCommand']('mergeTableCells',()=>{const _0xfb9f2b=_0x3a6a9a['getSelectionAffectedTableCells'](_0x416bcc[_0x35f0('0x18')]['document'][_0x35f0('0x38')]);_0x416bcc[_0x35f0('0x18')][_0x35f0('0x2a')](()=>{_0x23edb3[_0x35f0('0x5')](_0xfb9f2b,{'commandName':_0x35f0('0x3d'),'commandParams':[]},[],_0x35f0('0x3d'));});}),_0x416bcc[_0x35f0('0x9')][_0x35f0('0x4')](_0x35f0('0x3d'))['on'](_0x35f0('0x34'),(_0x222ec1,_0x54d7da)=>{_0x416bcc['commands'][_0x35f0('0x4')](_0x35f0('0x3a'))[_0x35f0('0xc')]&&(_0x54d7da[_0x35f0('0x43')]>0x0&&_0x54d7da[_0x54d7da['length']-0x1]&&_0x54d7da[_0x54d7da[_0x35f0('0x43')]-0x1][_0x35f0('0x31')]||_0x23edb3[_0x35f0('0x26')]||this[_0x35f0('0x28')]()||_0x222ec1[_0x35f0('0x22')]());},{'priority':_0x35f0('0x29')});for(const _0x15dd8e of[_0x35f0('0x44'),_0x35f0('0x4a'),_0x35f0('0x12'),_0x35f0('0x2')]){const _0x273251=_0x416bcc['commands']['get'](_0x15dd8e);_0x23edb3[_0x35f0('0x49')](_0x15dd8e,()=>{const _0x17f841=_0x416bcc[_0x35f0('0x18')][_0x35f0('0x4d')][_0x35f0('0x38')][_0x35f0('0x0')]()['getAncestors']()['find'](_0x4a6cfe=>_0x4a6cfe['is'](_0x35f0('0x41'),_0x35f0('0x24'))),_0xe70d1a=_0x273251[_0x35f0('0xc')];_0x416bcc[_0x35f0('0x18')]['change'](()=>{_0x23edb3[_0x35f0('0x5')]([_0x17f841,_0xe70d1a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x490799 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5cc797=_0x416bcc[_0x35f0('0x9')][_0x35f0('0x4')](_0x490799);_0x23edb3['enableCommand'](_0x490799,()=>{const _0x1e4ab5=_0x3a6a9a[_0x35f0('0x11')](_0x416bcc[_0x35f0('0x18')][_0x35f0('0x4d')][_0x35f0('0x38')])[0x0],_0xf63635=_0x1e4ab5[_0x35f0('0x42')](_0x35f0('0x36')),{column:_0x2bb00b,row:_0x4f027b}=_0x3a6a9a[_0x35f0('0x13')](_0x1e4ab5);let _0x557365=[];if(_0x35f0('0x35')==_0x5cc797[_0x35f0('0x3e')]){const _0x46d6f0=_0x3a6a9a[_0x35f0('0x14')](_0xf63635,{'startRow':_0x4f027b,'endRow':_0x4f027b,'includeAllSlots':!0x0});_0x557365=Array[_0x35f0('0x10')](_0x46d6f0)[_0x35f0('0x6')](_0x6eeb06=>_0x6eeb06[_0x35f0('0x46')]);}else{const _0x3f38bd=_0x3a6a9a[_0x35f0('0x14')](_0xf63635,{'column':_0x2bb00b,'includeAllSlots':!0x0});_0x557365=Array[_0x35f0('0x10')](_0x3f38bd)[_0x35f0('0x6')](_0x19942e=>_0x19942e[_0x35f0('0x46')]);}_0x416bcc[_0x35f0('0x18')][_0x35f0('0x2a')](_0x7fbbe4=>{_0x23edb3[_0x35f0('0x21')](_0x7fbbe4[_0x35f0('0x39')](_0x1e4ab5),{'commandName':_0x490799,'commandParams':[]},_0x557365,_0x490799);});});}_0x23edb3[_0x35f0('0x25')]['registerDescriptionCallback'](_0x2f6197=>{if(_0x35f0('0x1e')!=_0x2f6197[_0x35f0('0x2d')]&&'formatInline'!=_0x2f6197[_0x35f0('0x2d')])return;const {data:_0x5d4f86}=_0x2f6197;return _0x5d4f86&&_0x35f0('0x3d')==_0x5d4f86['commandName']?{'type':'format','content':_0x466484(_0x24c7e2,_0x35f0('0x15'))}:void 0x0;}),_0x23edb3[_0x35f0('0x25')]['registerDescriptionCallback'](_0x5797d7=>{if(_0x35f0('0x1e')!=_0x5797d7[_0x35f0('0x2d')]&&_0x35f0('0x37')!=_0x5797d7[_0x35f0('0x2d')])return;const {data:_0xae8b4}=_0x5797d7;return _0xae8b4?_0x35f0('0x48')==_0xae8b4['commandName']?{'type':_0x35f0('0x2b'),'content':_0x466484(_0x24c7e2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xae8b4[_0x35f0('0x32')]?{'type':'format','content':_0x466484(_0x24c7e2,_0x35f0('0x47'))}:void 0x0:void 0x0;});const _0x647eae=_0x250cad['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f58c0 of[_0x35f0('0x44'),_0x35f0('0x4a'),_0x35f0('0x12'),_0x35f0('0x2')])_0x23edb3['_suggestionFactory']['registerCustomCallback'](_0x35f0('0x1e'),_0x1f58c0,_0x35f0('0x1f'),_0x647eae);for(const _0x3181d2 of[_0x35f0('0x48'),_0x35f0('0xa')])_0x23edb3[_0x35f0('0x3f')][_0x35f0('0x19')](_0x35f0('0x1e'),_0x3181d2,_0x35f0('0x1f'),_0x647eae);_0x23edb3[_0x35f0('0x3f')]['registerCustomCallback'](_0x35f0('0x1e'),_0x35f0('0x3d'),_0x35f0('0x1f'),_0x409624=>{_0x416bcc[_0x35f0('0x18')][_0x35f0('0x2a')](_0x29cc48=>{const _0x36f473=Array[_0x35f0('0x10')](_0x1c8843[_0x35f0('0x17')]())[_0x35f0('0x6')](_0x340b31=>_0x52eca2[_0x35f0('0xf')](_0x340b31));_0x29cc48[_0x35f0('0x8')](_0x409624),_0x416bcc[_0x35f0('0x9')]['get']('mergeTableCells')[_0x35f0('0x16')](),_0x416bcc[_0x35f0('0x34')](_0x35f0('0x3d'),{'forceDefaultExecution':!0x0});const _0x5cea70=_0x36f473['filter'](_0x477ab1=>'$graveyard'!=_0x477ab1[_0x35f0('0xe')][_0x35f0('0x45')]);_0x5cea70['length']>0x0&&_0x29cc48['setSelection'](_0x5cea70);for(const _0x5a9dce of _0x36f473)_0x5a9dce[_0x35f0('0x1')]();});});for(const _0x538e30 of['mergeTableCellUp','mergeTableCellDown',_0x35f0('0x2'),'mergeTableCellRight']){const _0x575ea0=_0x416bcc[_0x35f0('0x9')][_0x35f0('0x4')](_0x538e30);_0x575ea0['on'](_0x35f0('0x1c'),(_0x39caab,_0x4696c4,_0x258b05)=>{if(_0x258b05){const _0x217761=_0x416bcc[_0x35f0('0x18')]['document'][_0x35f0('0x38')]['getFirstPosition']()[_0x35f0('0x40')]()['find'](_0x12e72b=>_0x12e72b['is']('element',_0x35f0('0x24')));this[_0x35f0('0xb')](_0x575ea0[_0x35f0('0xc')],_0x217761)||(_0x39caab['return']=!0x1,_0x39caab[_0x35f0('0x22')]());}},{'priority':_0x35f0('0x4c')});}}[_0x35f0('0x28')](){const _0x167b47=this[_0x35f0('0x3c')]['commands'][_0x35f0('0x4')](_0x35f0('0x3d')),_0x424aa9=this[_0x35f0('0x3c')]['plugins'][_0x35f0('0x4')](_0x35f0('0x30'));if(!_0x167b47[_0x35f0('0x20')])return!0x1;const _0x57fa7d=_0x424aa9[_0x35f0('0x11')](this[_0x35f0('0x3c')][_0x35f0('0x18')]['document']['selection']);for(const _0x4f4e4d of _0x57fa7d)for(const _0x327623 of _0x57fa7d)if(_0x4f4e4d!=_0x327623&&!this[_0x35f0('0xb')](_0x4f4e4d,_0x327623))return!0x1;return!0x0;}[_0x35f0('0xb')](_0x44b684,_0x264a62){const _0xd53e07=this[_0x35f0('0x3c')]['plugins'][_0x35f0('0x4')]('TrackChangesEditing'),_0x39bcf1=this[_0x35f0('0x3c')]['model'][_0x35f0('0x39')](_0x44b684),_0x332471=this[_0x35f0('0x3c')][_0x35f0('0x18')][_0x35f0('0x39')](_0x264a62),_0x9b6c51=new Set(),_0x531a80=new Set();for(const _0x299024 of _0xd53e07['getSuggestions']())if(('insertion'==_0x299024['type']||'deletion'==_0x299024['type']||'mergeTableCells'==_0x299024['subType'])&&_0x299024[_0x35f0('0x7')])for(const _0x1f9cea of _0x299024[_0x35f0('0x17')]())_0x1f9cea['containsRange'](_0x39bcf1,!0x0)&&_0x9b6c51[_0x35f0('0x27')](_0x299024['type']+':'+_0x299024[_0x35f0('0x2c')]['id']),_0x1f9cea[_0x35f0('0x3b')](_0x332471,!0x0)&&_0x531a80[_0x35f0('0x27')](_0x299024[_0x35f0('0x2d')]+':'+_0x299024[_0x35f0('0x2c')]['id']);if(_0x9b6c51[_0x35f0('0x1b')]!=_0x531a80[_0x35f0('0x1b')])return!0x1;for(const _0x4a29e6 of _0x9b6c51)if(!_0x531a80['has'](_0x4a29e6))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33ee=['insertTableOfContents','tableOfContents','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','afterInit','get','commands','locale','editor','TrackChangesEditing','_descriptionFactory','plugins'];(function(_0x5d2853,_0x33eeb7){const _0x296eef=function(_0x4f7500){while(--_0x4f7500){_0x5d2853['push'](_0x5d2853['shift']());}};_0x296eef(++_0x33eeb7);}(_0x33ee,0x1eb));const _0x296e=function(_0x5d2853,_0x33eeb7){_0x5d2853=_0x5d2853-0x0;let _0x296eef=_0x33ee[_0x5d2853];return _0x296eef;};import{Plugin as _0x143379}from'ckeditor5/src/core.js';import{getTranslation as _0x58d8ff}from'../utils/common-translations.js';export default class _t extends _0x143379{[_0x296e('0x5')](){const _0x28d3c3=this[_0x296e('0x9')];if(!_0x28d3c3[_0x296e('0x7')][_0x296e('0x6')](_0x296e('0x1')))return;_0x28d3c3[_0x296e('0x0')][_0x296e('0x6')](_0x296e('0xa'))['enableCommand'](_0x296e('0x1'));const _0x5cd46f=_0x28d3c3[_0x296e('0x0')]['get'](_0x296e('0xa')),_0x386df4=_0x28d3c3[_0x296e('0x8')];_0x5cd46f[_0x296e('0xb')][_0x296e('0x3')](_0x296e('0x2'),_0x181bd1=>_0x58d8ff(_0x386df4,_0x296e('0x4'),_0x181bd1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dc6=['tableProperties','_suggestionFactory','registerDescriptionCallback','change','join','*Format:*\x20change\x20table\x20cell\x20properties','formatBlock','tableCellBorderStyle','subType','_handlePropertyChange','getFirstPosition','getContainedElement','handleDiscardAction','tableWidth','plugins','has','markBlockFormat','tableBorderColor','format','afterInit','get','nodeAfter','document','findAncestor','enableCommand','model','*Format:*\x20change\x20table\x20properties','enqueueChange','tableCellProperties','registerCustomCallback','locale','tableBorderStyle','handleSuggestionDescription','setAttribute','tableCellPadding','_getSuggestion','selection','table','tableCellHorizontalAlignment','accept','discard','getSelectionAffectedTableCells','TrackChangesTableProperties','tableCellVerticalAlignment','TrackChangesEditing','tableHeight','editor','tableAlignment'];(function(_0x26adc6,_0x5dc6a9){const _0x2e5780=function(_0xb7de02){while(--_0xb7de02){_0x26adc6['push'](_0x26adc6['shift']());}};_0x2e5780(++_0x5dc6a9);}(_0x5dc6,0x106));const _0x2e57=function(_0x26adc6,_0x5dc6a9){_0x26adc6=_0x26adc6-0x0;let _0x2e5780=_0x5dc6[_0x26adc6];return _0x2e5780;};import{Plugin as _0xb197a4}from'ckeditor5/src/core.js';import{getTranslation as _0x1e7a29}from'../utils/common-translations.js';export default class Mt extends _0xb197a4{constructor(_0x23af2b){super(_0x23af2b),this[_0x2e57('0x1a')]=[_0x2e57('0x2b'),_0x2e57('0x9'),'tableBorderWidth',_0x2e57('0x19'),_0x2e57('0x27'),_0x2e57('0x17'),'tableBackgroundColor'],this[_0x2e57('0x6')]=['tableCellBorderColor',_0x2e57('0x21'),'tableCellBorderWidth',_0x2e57('0xc'),'tableCellWidth','tableCellHeight','tableCellBackgroundColor',_0x2e57('0x10'),_0x2e57('0x15')];}static get['pluginName'](){return _0x2e57('0x14');}[_0x2e57('0x2d')](){const _0x5eadfa=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')](_0x2e57('0x16'));if(this['editor']['plugins'][_0x2e57('0x29')]('TablePropertiesEditing')){for(const _0x57a09f of this[_0x2e57('0x1a')])_0x5eadfa[_0x2e57('0x2')](_0x57a09f,(_0x258a91,_0x5156aa)=>{const _0x19332a=this[_0x2e57('0x18')][_0x2e57('0x3')][_0x2e57('0x0')]['selection'][_0x2e57('0x24')]()[_0x2e57('0x1')](_0x2e57('0xf'));this[_0x2e57('0x23')](_0x57a09f,[_0x19332a],this[_0x2e57('0x1a')],'tableProperties',_0x258a91,_0x5156aa);});_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),'tableProperties',_0x2e57('0x11'),_0x5eadfa[_0x2e57('0x1b')]['getSuggestionCallback'](_0x2e57('0x20'),null,'discard')),_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x1a'),'discard',(_0x5324cc,_0xdc48e9)=>this['handleDiscardAction'](this['tableProperties'],_0x5324cc,_0xdc48e9)),_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x1a'),_0x2e57('0x1e'),()=>!0x1);}if(this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x29')]('TableCellPropertiesEditing')){for(const _0x1f07dc of this[_0x2e57('0x6')])_0x5eadfa[_0x2e57('0x2')](_0x1f07dc,(_0x3edd5d,_0x5f3b78)=>{const _0x2f4374=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')]('TableUtils')[_0x2e57('0x13')](this[_0x2e57('0x18')][_0x2e57('0x3')]['document'][_0x2e57('0xe')]);this[_0x2e57('0x23')](_0x1f07dc,_0x2f4374,this['tableCellProperties'],_0x2e57('0x6'),_0x3edd5d,_0x5f3b78);});_0x5eadfa['_suggestionFactory'][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x6'),_0x2e57('0x11'),_0x5eadfa[_0x2e57('0x1b')]['getSuggestionCallback'](_0x2e57('0x20'),null,_0x2e57('0x12'))),_0x5eadfa[_0x2e57('0x1b')][_0x2e57('0x7')](_0x2e57('0x20'),_0x2e57('0x6'),_0x2e57('0x12'),(_0x5a8139,_0x248d36)=>this[_0x2e57('0x26')](this[_0x2e57('0x6')],_0x5a8139,_0x248d36)),_0x5eadfa[_0x2e57('0x1b')]['registerCustomCallback'](_0x2e57('0x20'),_0x2e57('0x6'),_0x2e57('0x1e'),()=>!0x1);}_0x5eadfa['_descriptionFactory'][_0x2e57('0x1c')](_0x4d36ca=>this[_0x2e57('0xa')](_0x4d36ca));}[_0x2e57('0x23')](_0x37747e,_0x5a9dff,_0xfd93b0,_0x3cd52f,_0x3963eb,_0x41271e){const _0x2cbb2e=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')]('TrackChangesEditing');this[_0x2e57('0x18')]['model'][_0x2e57('0x5')](_0x41271e['batch'],()=>{for(const _0x12f053 of _0x5a9dff){if(this[_0x2e57('0xd')](_0x12f053,_0x3cd52f))_0x3963eb(_0x41271e);else{const _0x3964c4={};for(const _0x4eee8d of _0xfd93b0){const _0xef9843=_0x12f053['getAttribute'](_0x4eee8d);void 0x0!==_0xef9843&&(_0x3964c4[_0x4eee8d]=_0xef9843);}_0x3963eb(_0x41271e),_0x2cbb2e[_0x2e57('0x2a')](_0x12f053,{'commandParams':[_0x3964c4]},[],_0x3cd52f);}}});}[_0x2e57('0x26')](_0x591aae,_0x200ff0,_0x327120){const _0x190610=_0x200ff0[0x0]['start'][_0x2e57('0x2f')],_0x2c4c55=_0x327120['commandParams'][0x0];this[_0x2e57('0x18')][_0x2e57('0x3')][_0x2e57('0x1d')](_0x453142=>{for(const _0x2f586a of _0x591aae)void 0x0!==_0x2c4c55[_0x2f586a]?_0x453142[_0x2e57('0xb')](_0x2f586a,_0x2c4c55[_0x2f586a],_0x190610):_0x453142['removeAttribute'](_0x2f586a,_0x190610);});}[_0x2e57('0xa')](_0x7199bd){if(_0x7199bd['data'])switch(_0x7199bd[_0x2e57('0x22')]){case'tableProperties':return{'type':'format','content':_0x1e7a29(this['editor']['locale'],_0x2e57('0x4'))};case _0x2e57('0x6'):return{'type':_0x2e57('0x2c'),'content':_0x1e7a29(this[_0x2e57('0x18')][_0x2e57('0x8')],_0x2e57('0x1f'))};}}[_0x2e57('0xd')](_0x316863,_0x3bbcde){const _0x2df3e2=this[_0x2e57('0x18')][_0x2e57('0x28')][_0x2e57('0x2e')](_0x2e57('0x16'));for(const _0x5123ba of _0x2df3e2['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d4e17=_0x5123ba[_0x2e57('0x25')]();if(_0x5123ba[_0x2e57('0x22')]===_0x3bbcde&&_0x1d4e17===_0x316863)return _0x5123ba;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e52=['Template','insertTemplate','afterInit','get','TrackChangesEditing','enableCommand','plugins','editor'];(function(_0x4adf06,_0x4e5271){const _0x56f3f5=function(_0x1667a9){while(--_0x1667a9){_0x4adf06['push'](_0x4adf06['shift']());}};_0x56f3f5(++_0x4e5271);}(_0x4e52,0x19e));const _0x56f3=function(_0x4adf06,_0x4e5271){_0x4adf06=_0x4adf06-0x0;let _0x56f3f5=_0x4e52[_0x4adf06];return _0x56f3f5;};import{Plugin as _0x549ac2}from'ckeditor5/src/core.js';export default class vt extends _0x549ac2{[_0x56f3('0x4')](){const _0x9d28c5=this[_0x56f3('0x1')];_0x9d28c5[_0x56f3('0x0')]['has'](_0x56f3('0x2'))&&_0x9d28c5[_0x56f3('0x0')][_0x56f3('0x5')](_0x56f3('0x6'))[_0x56f3('0x7')](_0x56f3('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8b9b=['TrackChangesEditing','suggestion','title-content','plugins','locale','element','registerElementLabel','schema','getChangedMarkers','start','newRange','get','isEqual','model','nodeBefore','isCollapsed','Title','document','end','afterInit','createRange','editor','registerPostFixer','removeMarker','updateMarker','differ'];(function(_0x342d70,_0x8b9be3){const _0x2f2e7c=function(_0x5e4b00){while(--_0x5e4b00){_0x342d70['push'](_0x342d70['shift']());}};_0x2f2e7c(++_0x8b9be3);}(_0x8b9b,0x13f));const _0x2f2e=function(_0x342d70,_0x8b9be3){_0x342d70=_0x342d70-0x0;let _0x2f2e7c=_0x8b9b[_0x342d70];return _0x2f2e7c;};import{Plugin as _0x1306e8}from'ckeditor5/src/core.js';import{getTranslation as _0x150be8}from'../utils/common-translations.js';export default class Ct extends _0x1306e8{[_0x2f2e('0xc')](){const _0x574074=this[_0x2f2e('0xe')];if(!_0x574074[_0x2f2e('0x16')]['has'](_0x2f2e('0x9')))return;const _0x4476f0=_0x574074['plugins'][_0x2f2e('0x4')](_0x2f2e('0x13'));_0x4476f0['_descriptionFactory'][_0x2f2e('0x19')](_0x2f2e('0x15'),()=>_0x150be8(_0x574074[_0x2f2e('0x17')],'ELEMENT_TITLE')),_0x574074[_0x2f2e('0x6')][_0x2f2e('0xa')][_0x2f2e('0xf')](_0x452c07=>{let _0x31f9e2=!0x1;const _0x46093a=Array['from'](_0x574074[_0x2f2e('0x6')]['document'][_0x2f2e('0x12')][_0x2f2e('0x1')]());for(const {name:_0x2cc854,data:_0x4e312a}of _0x46093a){const {group:_0x55ab2a}=_0x4476f0['_splitMarkerName'](_0x2cc854);if(_0x2f2e('0x14')!==_0x55ab2a||!_0x4e312a[_0x2f2e('0x3')])continue;const _0x22d664=_0x4e312a[_0x2f2e('0x3')],_0x315078=_0x22d664['end'][_0x2f2e('0x7')];if(!_0x315078||!_0x315078['is'](_0x2f2e('0x18'),_0x2f2e('0x15')))continue;if(!_0x22d664[_0x2f2e('0x2')]['isTouching'](_0x22d664[_0x2f2e('0xb')]))continue;const _0x16d163=_0x574074[_0x2f2e('0x6')][_0x2f2e('0x0')]['getNearestSelectionRange'](_0x22d664[_0x2f2e('0xb')],'forward');if(_0x16d163&&_0x16d163[_0x2f2e('0x8')]){const _0x304ef3=_0x452c07[_0x2f2e('0xd')](_0x22d664[_0x2f2e('0x2')],_0x16d163[_0x2f2e('0x2')]);_0x304ef3[_0x2f2e('0x5')](_0x22d664)||(_0x452c07[_0x2f2e('0x11')](_0x2cc854,{'range':_0x304ef3}),_0x31f9e2=!0x0);}_0x31f9e2||(_0x452c07[_0x2f2e('0x10')](_0x2cc854),_0x31f9e2=!0x0);}return _0x31f9e2;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cba=['redo','editor','enableCommand','TrackChangesEditing','undo','plugins','has','UndoEditing'];(function(_0x1da82e,_0x3cbaa8){const _0x500e35=function(_0x5ad131){while(--_0x5ad131){_0x1da82e['push'](_0x1da82e['shift']());}};_0x500e35(++_0x3cbaa8);}(_0x3cba,0xe0));const _0x500e=function(_0x1da82e,_0x3cbaa8){_0x1da82e=_0x1da82e-0x0;let _0x500e35=_0x3cba[_0x1da82e];return _0x500e35;};import{Plugin as _0x13395a}from'ckeditor5/src/core.js';export default class Dt extends _0x13395a{['afterInit'](){const _0x42f0cf=this[_0x500e('0x1')],_0x480515=_0x42f0cf[_0x500e('0x5')]['get'](_0x500e('0x3'));_0x42f0cf['plugins'][_0x500e('0x6')](_0x500e('0x7'))&&(_0x480515[_0x500e('0x2')](_0x500e('0x4')),_0x480515[_0x500e('0x2')](_0x500e('0x0')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x418e=['span','mapper','element','includes','markerName','writer','isContent','markerRange','consumable','createUIElement','plugins','push','getItems','insert','getWalker','createRangeOn','parent','ck-suggestion-marker-','isAtEnd','model','getAttribute','previousPosition','start','item','ck-suggestion-marker--active','name','toViewElement','hasAttribute','getCustomProperty','addClass','listItem','get','TrackChangesEditing','nextSibling'];(function(_0x7a8864,_0x418e30){const _0xc5a004=function(_0x3f2892){while(--_0x3f2892){_0x7a8864['push'](_0x7a8864['shift']());}};_0xc5a004(++_0x418e30);}(_0x418e,0x84));const _0xc5a0=function(_0x7a8864,_0x418e30){_0x7a8864=_0x7a8864-0x0;let _0xc5a004=_0x418e[_0x7a8864];return _0xc5a004;};export function getRangesWithAttribute(_0x2f678c,_0x438002,_0x2b94f8){const _0x248432=[];for(const _0x4c83f8 of _0x438002[_0xc5a0('0x10')]())_0x4c83f8[_0xc5a0('0x1f')](_0x2f678c)&&_0x248432[_0xc5a0('0xf')](_0x2b94f8[_0xc5a0('0x13')](_0x4c83f8));return _0x248432;}export function getElementsAffectedByListItemRename(_0x15db71){const _0x5ad833=[];if(_0x15db71['is']('element',_0xc5a0('0x0'))){let _0x40110f=_0x15db71[_0xc5a0('0x3')];for(;_0x40110f&&_0x40110f['is'](_0xc5a0('0x6'),'listItem')&&_0x40110f[_0xc5a0('0x18')]('listIndent')>0x0;)_0x5ad833[_0xc5a0('0xf')](_0x40110f),_0x40110f=_0x40110f[_0xc5a0('0x3')];}return _0x5ad833;}export function downcastSplitMergeMarker(_0x27076f,_0x434834,{showActiveMarker:_0x130dc4=!0x0}={}){const _0x94c4c1=_0x27076f[_0xc5a0('0xe')][_0xc5a0('0x1')](_0xc5a0('0x2'));return(_0x193511,_0x1ca8b4,_0x4abbd4)=>{if(!_0x4abbd4[_0xc5a0('0xc')]['test'](_0x1ca8b4[_0xc5a0('0xb')],_0x193511[_0xc5a0('0x1d')]))return;const _0x17f7a6=_0x1ca8b4[_0xc5a0('0xb')][_0xc5a0('0x12')](),_0x3cc831=_0x1ca8b4['markerRange'][_0xc5a0('0x1a')],_0x398a43=_0x27076f[_0xc5a0('0x17')]['schema'];let _0x118ecb=null,_0x5542f0=null,_0x2a9f27=!0x1,_0x16d87c=!0x1;for(const _0x43f0ad of _0x17f7a6){const _0x5b6cbb=_0x43f0ad[_0xc5a0('0x1b')];_0x2a9f27=_0x2a9f27||_0x398a43[_0xc5a0('0xa')](_0x5b6cbb);const _0x3c2427=_0x4abbd4[_0xc5a0('0x5')][_0xc5a0('0x1e')](_0x5b6cbb);if(_0x3c2427&&_0x3c2427[_0xc5a0('0x20')]('addHighlight'))return;'elementEnd'==_0x43f0ad['type']&&(_0x398a43['isBlock'](_0x5b6cbb)&&!_0x398a43['isLimit'](_0x5b6cbb)&&(_0x5b6cbb[_0xc5a0('0x3')]||_0x3cc831[_0xc5a0('0x16')]?_0x118ecb&&_0x118ecb[_0xc5a0('0x14')]==_0x5b6cbb||(_0x118ecb=_0x5b6cbb,_0x400dab(_0x43f0ad[_0xc5a0('0x19')]),_0x16d87c=!0x0):_0x5542f0=_0x5542f0||_0x43f0ad[_0xc5a0('0x19')]));}function _0x400dab(_0x1c71a8){const _0x538d71=_0x4abbd4[_0xc5a0('0x9')][_0xc5a0('0xd')](_0xc5a0('0x4'),{'class':_0xc5a0('0x15')+_0x434834}),_0x211edf=_0x4abbd4[_0xc5a0('0x5')]['toViewPosition'](_0x1c71a8);_0x130dc4&&_0x94c4c1['activeMarkers'][_0xc5a0('0x7')](_0x1ca8b4['markerName'])&&_0x4abbd4['writer'][_0xc5a0('0x21')](_0xc5a0('0x1c'),_0x538d71),_0x4abbd4[_0xc5a0('0x9')][_0xc5a0('0x11')](_0x211edf,_0x538d71),_0x4abbd4[_0xc5a0('0x5')]['bindElementToMarker'](_0x538d71,_0x1ca8b4[_0xc5a0('0x8')]);}_0x2a9f27||_0x16d87c||!_0x5542f0||_0x400dab(_0x5542f0);};}
|