@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230901.0 → 0.0.0-nightly-20230903.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/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.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 _0x1fe8=['createRange','showSuggestionHighlights','table','getChild','row','dataDowncast','root','insertContent','unwrap','_tablePostFixingSubtypes','forceDefaultExecution','commands','nodeAfter','first','differ','filter','getChangedMarkers','length','_descriptionFactory','getAttributes','getRanges','TableClipboard','last','getColumnIndexes','fromEntries','previous','editingDowncast','getTableIfOnlyTableInContent','author','tableCell','registerCustomCallback','getSuggestion','tablePasteRow','tablePasteColumn','$graveyard','trackChanges','value','Users','map','rootName','endColumn','getAllAdjacentSuggestions','tablePasteChainId','next','_createdBatches','markMultiRangeInsertion','plugins','registerPostFixer','cells','ck-suggestion-marker--active','tableCellHorizontalAlignment','type','editor','suggestion:formatBlock:tablePasteCell','name','getMarkers','deletion','insertion','end','keys','getContainedElement','getRows','batch','find','paragraph','_suggestionFactory','view','isInContent','redo','markMultiRangeDeletion','createRangeIn','content','_getCoordsForCells','getRowIndexes','insert','removeMarkers','_isForcedDefaultExecutionBlock','editing','move','startsWith','stop','set','createPositionBefore','getChildren','ck-suggestion-marker','rows','updateMarker','oldRange','return','low','*Replace\x20table\x20cells*','tablePasteCell','get','createElement','isEmpty','_replaceTableSlotCell','has','markerAttributes','options','for','tableCellSuggestion','suggestion','setAttribute','attributes','registerDescriptionCallback','columnInsertionIndexes','element','cell','subType','markerName','documentSelection','change','remove','join','rowInsertionIndexes','getColumns','position','model','high','insertRows','createTableWalker','TableUtils','suggestionLoaded','selection','findAncestor','tableCellBorderStyle','document','getRange','includes','getChanges','tableCellBorderWidth','tableCellBackgroundColor','push','removeMarker','accept','insertionRanges','endRow','TrackChangesEditing','elementToElement','getSuggestions','rowInsertionRanges','_splitMarkerName','discard','getSelectionAffectedTableCells','formatBlock','add','reduce','from','createRangeOn','tablePaste','markerToHighlight','some','tableCellPadding','every','newRange','previousSibling','fill','conversion','columns','entries','afterInit','isEqual'];(function(_0x55e265,_0x1fe84d){const _0x435ff7=function(_0x8cf407){while(--_0x8cf407){_0x55e265['push'](_0x55e265['shift']());}};_0x435ff7(++_0x1fe84d);}(_0x1fe8,0x1cd));const _0x435f=function(_0x55e265,_0x1fe84d){_0x55e265=_0x55e265-0x0;let _0x435ff7=_0x1fe8[_0x55e265];return _0x435ff7;};import{getTranslation as _0x1bd165}from'../utils/common-translations';import{Plugin as _0xcddf64}from'ckeditor5/src/core';import{uid as _0x440aad,priorities as _0x3a0753}from'ckeditor5/src/utils';import _0x43c387 from'./table';const le=[_0x435f('0x9b'),'tableCellBorderColor',_0x435f('0x96'),_0x435f('0x4b'),'tableCellVerticalAlignment',_0x435f('0x9c'),_0x435f('0xf')],ae=Object[_0x435f('0x31')](le[_0x435f('0x3f')](_0x14789c=>[_0x14789c,null]));export default class kt extends _0xcddf64{static get['requires'](){return[_0x43c387];}[_0x435f('0x17')](){const _0xdb6f27=this['editor'];if(!_0xdb6f27[_0x435f('0x47')]['has'](_0x435f('0x2e')))return;const _0xa387f1=_0xdb6f27[_0x435f('0x47')]['get'](_0x435f('0x0')),_0x109d0e=_0xdb6f27[_0x435f('0x47')][_0x435f('0x75')](_0x435f('0x92')),_0x4d90f3=_0xdb6f27[_0x435f('0x47')]['get'](_0x43c387),_0x5ea625=_0xdb6f27[_0x435f('0x47')][_0x435f('0x75')]('TableClipboard');_0x4d90f3[_0x435f('0x22')][_0x435f('0x9d')](_0x435f('0x39'),_0x435f('0x3a')),_0xdb6f27[_0x435f('0x8e')]['schema']['register'](_0x435f('0x7d'),{'allowIn':_0x435f('0x36'),'allowContentOf':_0x435f('0x36'),'isLimit':!0x0}),_0xdb6f27['conversion'][_0x435f('0x1')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1067c9=null;_0xdb6f27[_0x435f('0x8e')]['on'](_0x435f('0x20'),(_0x7960,_0x102870)=>{const [_0x5bc77f,_0x47b010]=_0x102870,_0x10ecdc=_0x102870[_0x102870['length']-0x1];_0x10ecdc&&_0x10ecdc[_0x435f('0x23')]||_0xa387f1[_0x435f('0x65')]||this[_0x435f('0x4d')][_0x435f('0x24')][_0x435f('0x75')](_0x435f('0x3c'))[_0x435f('0x3d')]&&function(_0x3340ef,_0x342ae1,_0x2c73f6,_0x5d4c5a,_0x7c9764){if(_0x342ae1&&!_0x342ae1['is'](_0x435f('0x87')))return!0x1;const _0x484d15=_0x7c9764[_0x435f('0x34')](_0x3340ef,_0x2c73f6);if(!_0x484d15||!fe(_0x484d15,void 0x0,_0x5d4c5a))return!0x1;const _0x533ba6=_0x5d4c5a[_0x435f('0x6')](_0x2c73f6[_0x435f('0x97')][_0x435f('0x94')]);if(!_0x533ba6['length'])return!0x1;const _0x33ac0d=_0x533ba6[0x0][_0x435f('0x95')](_0x435f('0x1b')),_0x1bb137=_0x5d4c5a[_0x435f('0x62')](_0x533ba6),_0x111d94=_0x5d4c5a[_0x435f('0x30')](_0x533ba6),_0x39bed7={'startRow':_0x1bb137[_0x435f('0x26')],'endRow':_0x1bb137['last'],'startColumn':_0x111d94['first'],'endColumn':_0x111d94[_0x435f('0x2f')]};return 0x1==_0x533ba6[_0x435f('0x2a')]&&(_0x39bed7[_0x435f('0xa1')]+=_0x5d4c5a[_0x435f('0x56')](_0x484d15)-0x1,_0x39bed7[_0x435f('0x41')]+=_0x5d4c5a[_0x435f('0x8c')](_0x484d15)-0x1),fe(_0x33ac0d,_0x39bed7,_0x5d4c5a);}(_0x5bc77f,_0x47b010,_0xdb6f27['model'],_0x109d0e,_0x5ea625)&&(_0x7960[_0x435f('0x69')](),_0x1067c9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xdb6f27[_0x435f('0x8e')]['change'](()=>{_0xdb6f27[_0x435f('0x8e')][_0x435f('0x20')](_0x102870[0x0],_0x102870[0x1],_0x102870[0x2],{'forceDefaultExecution':!0x0});const _0x1beb1d=_0x440aad(),{rowInsertionRanges:_0x3df75c,columnInsertionRanges:_0x2d3f43,insertionRanges:_0x1320e7,deletionRanges:_0x351bc9,cells:_0x1b18e9}=_0x1067c9;_0x3df75c['length']&&_0xa387f1[_0x435f('0x46')](_0x3df75c,'tablePasteRow',{'tablePasteChainId':_0x1beb1d}),_0x2d3f43[_0x435f('0x2a')]&&_0xa387f1[_0x435f('0x46')](_0x2d3f43,_0x435f('0x3a'),{'tablePasteChainId':_0x1beb1d}),_0x1320e7[_0x435f('0x2a')]&&_0xa387f1[_0x435f('0x46')](_0x1320e7,_0x435f('0xc'),{'tablePasteChainId':_0x1beb1d,'skipNestingCheck':!0x0}),_0x351bc9[_0x435f('0x2a')]&&_0xa387f1[_0x435f('0x5e')](_0x351bc9,_0x435f('0xc'),{'tablePasteChainId':_0x1beb1d,'skipNestingCheck':!0x0});const _0x5e95af=_0xa387f1['markMultiRangeBlockFormat'](_0x1b18e9[_0x435f('0x3f')](({element:_0x3518cc})=>_0x3518cc),{'formatGroupId':_0x440aad()},[],_0x435f('0x74'),{'tablePasteChainId':_0x1beb1d});if(_0x5e95af){const _0x8eab65=_0x5e95af[_0x435f('0x50')](),_0x2b77e0=[];for(const {element:_0x42bf81,attributes:_0x2f2d2f}of _0x1b18e9){if(!_0x2f2d2f)continue;const _0x32eb17=_0xdb6f27['model']['createRangeOn'](_0x42bf81),_0x3c5a75=_0x8eab65[_0x435f('0x58')](_0x38fd70=>_0x38fd70[_0x435f('0x98')]()['isEqual'](_0x32eb17));_0x3c5a75&&_0x2b77e0[_0x435f('0x9d')]([_0x3c5a75[_0x435f('0x4f')],_0x2f2d2f]);}_0x2b77e0[_0x435f('0x2a')]&&_0x5e95af[_0x435f('0x7f')]('markerAttributes',Object[_0x435f('0x31')](_0x2b77e0));}_0x1067c9=null;}));},{'priority':_0x3a0753['high']+0xa}),_0xdb6f27['plugins'][_0x435f('0x75')]('TableClipboard')['on'](_0x435f('0x78'),(_0x5f54c0,_0x32430a)=>{const [_0x16606e,_0xc8f9e2,,_0x3fecbe]=_0x32430a;if(!_0x1067c9)return;_0x5f54c0['stop']();const _0x3a7606=_0x16606e[_0x435f('0x84')],_0x3d18e0=_0xc8f9e2,_0x555d4f=ce(_0x3a7606),_0x46c961=ce(_0x3d18e0);_0x5f54c0[_0x435f('0x71')]=_0x3a7606;let _0x1545f6=null,_0x174fa0=null;if(_0x46c961||_0x555d4f){if(_0x555d4f&&!_0x46c961){_0x3fecbe[_0x435f('0x89')](_0x3a7606[_0x435f('0x1c')](0x0));for(const _0x5e5abd of Array[_0x435f('0xa')](_0x3d18e0[_0x435f('0x6c')]()))_0x3fecbe['insert'](_0x5e5abd,_0x3a7606,_0x435f('0x53'));const _0x21ce06=_0x1067c9[_0x435f('0x8b')][_0x435f('0x99')](_0x16606e[_0x435f('0x1d')]),_0x381e04=_0x1067c9['columnInsertionIndexes'][_0x435f('0x99')](_0x16606e['column']);_0x21ce06||_0x381e04||(_0x1545f6=_0x3fecbe[_0x435f('0x5f')](_0x3a7606));}else _0x46c961&&!_0x555d4f&&(_0x174fa0=_0x3fecbe[_0x435f('0x5f')](_0x3a7606));}else{const _0x50fd5c=_0x3fecbe[_0x435f('0x76')](_0x435f('0x7d')),_0x500d0e=_0x3fecbe[_0x435f('0x76')](_0x435f('0x7d'));_0x3fecbe['wrap'](_0x3fecbe[_0x435f('0x5f')](_0x3a7606),_0x500d0e),_0x3fecbe['insert'](_0x50fd5c,_0x3a7606,0x0);for(const _0x570ec6 of Array[_0x435f('0xa')](_0x3d18e0[_0x435f('0x6c')]()))_0x3fecbe[_0x435f('0x63')](_0x570ec6,_0x50fd5c,'end');_0x1545f6=_0x3fecbe[_0x435f('0xb')](_0x50fd5c),_0x174fa0=_0x3fecbe[_0x435f('0xb')](_0x500d0e);}const _0xe72c49=Array[_0x435f('0xa')](_0x3d18e0[_0x435f('0x2c')]())[_0x435f('0x28')](([_0x384e6d])=>le['includes'](_0x384e6d));_0x1067c9['cells'][_0x435f('0x9d')]({'element':_0x3a7606,'attributes':_0xe72c49[_0x435f('0x2a')]?Object[_0x435f('0x31')](_0xe72c49):null}),_0x1545f6&&_0x1067c9[_0x435f('0xa0')][_0x435f('0x9d')](_0x1545f6),_0x174fa0&&_0x1067c9['deletionRanges'][_0x435f('0x9d')](_0x174fa0);},{'priority':_0x435f('0x8f')}),_0x109d0e['on']('insertColumns',(_0x29c98e,_0x7abaf1)=>{const [_0xc93982,_0x2a3097={}]=_0x7abaf1;if(!_0x1067c9)return;const _0x205537=_0x2a3097['at']||0x0,_0x35ded4=_0x2a3097[_0x435f('0x15')]||0x1;_0x1067c9[_0x435f('0x82')]=new Array(_0x35ded4)[_0x435f('0x13')](_0x205537)['map']((_0x5ea651,_0x1b63a3)=>_0x5ea651+_0x1b63a3);for(const {cell:_0x35e7b6}of _0x109d0e[_0x435f('0x91')](_0xc93982,{'startColumn':_0x205537,'endColumn':_0x205537+_0x35ded4-0x1}))_0x1067c9['columnInsertionRanges'][_0x435f('0x9d')](_0xdb6f27['model'][_0x435f('0xb')](_0x35e7b6));},{'priority':_0x435f('0x72')}),_0x109d0e['on'](_0x435f('0x90'),(_0x184354,_0x29ec7e)=>{const [_0x3cf695,_0x232e5d={}]=_0x29ec7e;if(!_0x1067c9)return;const _0x159736=_0x232e5d['at']||0x0,_0x421717=_0x232e5d[_0x435f('0x6e')]||0x1;_0x1067c9[_0x435f('0x8b')]=new Array(_0x421717)['fill'](_0x159736)[_0x435f('0x3f')]((_0x17e1f3,_0x596332)=>_0x17e1f3+_0x596332);for(const {cell:_0x44f6de}of _0x109d0e[_0x435f('0x91')](_0x3cf695,{'startRow':_0x159736,'endRow':_0x159736+_0x421717-0x1}))_0x1067c9[_0x435f('0x3')][_0x435f('0x9d')](_0xdb6f27[_0x435f('0x8e')]['createRangeOn'](_0x44f6de));},{'priority':_0x435f('0x72')}),_0xa387f1[_0x435f('0x2b')][_0x435f('0x81')](_0x7beb55=>{if(_0x7beb55[_0x435f('0x85')]&&_0x7beb55[_0x435f('0x85')][_0x435f('0x68')](_0x435f('0xc')))return _0x7beb55[_0x435f('0x32')]?{}:{'type':_0x435f('0x52'),'content':_0x1bd165(_0xdb6f27['locale'],_0x435f('0x73'))};});const _0x13e269=()=>!0x1;for(const _0x2b9a12 of[_0x435f('0xc'),_0x435f('0x3a'),'tablePasteRow','tablePasteCell'])_0xa387f1[_0x435f('0x5a')][_0x435f('0x37')](_0x435f('0x52'),_0x2b9a12,_0x435f('0x8a'),_0x13e269),_0xa387f1['_suggestionFactory'][_0x435f('0x37')](_0x435f('0x51'),_0x2b9a12,_0x435f('0x8a'),_0x13e269),_0xa387f1[_0x435f('0x5a')][_0x435f('0x37')](_0x435f('0x7'),_0x2b9a12,_0x435f('0x8a'),_0x13e269);_0xa387f1['_suggestionFactory']['registerCustomCallback'](_0x435f('0x7'),_0x435f('0x74'),_0x435f('0x5'),_0x13e269),_0xa387f1[_0x435f('0x5a')][_0x435f('0x37')]('formatBlock',_0x435f('0x74'),_0x435f('0x9f'),(_0x1d4cf5,_0x1adfaf,_0x50d098)=>{const _0x3fe494=_0x1d4cf5[_0x435f('0x3f')](_0x371092=>_0x371092[_0x435f('0x55')]())[_0x435f('0x28')](_0x5a65f8=>_0x5a65f8),_0x2fad3f=new Map(_0x3fe494[_0x435f('0x3f')](_0x10ab23=>[_0x10ab23,null]));if(_0x1067c9)for(const {element:_0x3b8eb1,attributes:_0x139ece}of _0x1067c9[_0x435f('0x49')])_0x139ece&&_0x2fad3f['set'](_0x3b8eb1,_0x139ece);else{if(_0x50d098&&_0x50d098[_0x435f('0x7a')])for(const [_0x39c1f1,_0xb21342]of Object[_0x435f('0x16')](_0x50d098['markerAttributes'])){const _0x1b2795=_0xdb6f27[_0x435f('0x8e')]['markers'][_0x435f('0x75')](_0x39c1f1),_0x3fd229=_0x1b2795?_0x1b2795[_0x435f('0x98')]()['getContainedElement']():null;_0x3fd229&&_0x2fad3f[_0x435f('0x6a')](_0x3fd229,_0xb21342);}}_0xdb6f27[_0x435f('0x8e')][_0x435f('0x88')](_0xd60ae=>{for(const [_0x55b8fb,_0xaeab13]of _0x2fad3f)_0xd60ae['setAttributes']({...ae,..._0xaeab13},_0x55b8fb);});});const _0xd64e8f=(_0x26d048,_0x14adbf)=>{_0xa387f1[_0x435f('0x5a')]['registerCustomCallback'](_0x26d048,_0x435f('0xc'),_0x14adbf,(_0x170543,_0x218c86,_0x24f32d)=>{_0xdb6f27[_0x435f('0x8e')][_0x435f('0x88')](_0x467b31=>{const _0x3a0cfa=[];for(const _0x35bf5b of _0x170543){const _0xb5d955=_0x35bf5b['start'][_0x435f('0x25')];_0xb5d955['is'](_0x435f('0x83'),_0x435f('0x7d'))&&_0x3a0cfa['push'](_0xb5d955);}_0xa387f1[_0x435f('0x5a')]['getSuggestionCallback'](_0x26d048,null,_0x14adbf)(_0x170543,_0x218c86,_0x24f32d);for(const _0x8721cb of _0x3a0cfa)_0x435f('0x3b')!=_0x8721cb[_0x435f('0x1f')][_0x435f('0x40')]&&_0x467b31[_0x435f('0x21')](_0x8721cb);});});};_0xd64e8f(_0x435f('0x52'),_0x435f('0x9f')),_0xd64e8f('insertion',_0x435f('0x5')),_0xd64e8f(_0x435f('0x51'),_0x435f('0x9f')),_0xd64e8f(_0x435f('0x51'),_0x435f('0x5')),_0xa387f1[_0x435f('0x5a')][_0x435f('0x37')](_0x435f('0x52'),_0x435f('0x39'),_0x435f('0x5'),_0x5b7245=>{const _0x245379=_0x5b7245[_0x435f('0x3f')](_0x3d292e=>_0x3d292e[_0x435f('0x55')]()),_0x41e1e8=_0x245379[0x0][_0x435f('0x95')]('table'),{minRow:_0x191c0b,maxRow:_0x431736}=_0x4d90f3[_0x435f('0x61')](_0x245379);_0x109d0e['removeRows'](_0x41e1e8,{'at':_0x191c0b,'rows':_0x431736-_0x191c0b+0x1});}),_0xa387f1[_0x435f('0x5a')]['registerCustomCallback'](_0x435f('0x52'),_0x435f('0x3a'),_0x435f('0x5'),_0x323ad3=>{const _0x33f9f5=_0x323ad3['map'](_0x424377=>_0x424377['getContainedElement']()),_0x13e7fe=_0x33f9f5[0x0][_0x435f('0x95')]('table'),{minColumn:_0x4f1f6e,maxColumn:_0x59e7c0}=_0x4d90f3[_0x435f('0x61')](_0x33f9f5);_0x109d0e['removeColumns'](_0x13e7fe,{'at':_0x4f1f6e,'columns':_0x59e7c0-_0x4f1f6e+0x1});});const _0x7a65a3=(_0x5630d9,_0x3a624d)=>{if(!_0x3a624d['subType']||!_0x3a624d['subType'][_0x435f('0x68')](_0x435f('0xc')))return;const _0x4b221e=_0x3a624d[_0x435f('0x80')][_0x435f('0x43')],_0x564287=_0xa387f1[_0x435f('0x2')]()[_0x435f('0x28')](_0x5c5491=>_0x5c5491[_0x435f('0x5c')]&&_0x5c5491['attributes']&&_0x5c5491[_0x435f('0x80')][_0x435f('0x43')]==_0x4b221e);_0x564287[_0x435f('0x2a')]&&_0x3a624d[_0x435f('0x42')]()[_0x435f('0x2a')]!=_0x564287[_0x435f('0x2a')]&&_0x564287[_0x435f('0x9')]((_0x427cbf,_0x3721c7)=>(_0x427cbf[_0x435f('0x44')]=_0x3721c7,_0x3721c7[_0x435f('0x32')]=_0x427cbf,_0x3721c7));};function _0x28c3a0(_0x392fce,_0x441812=!0x0){const {id:_0x32e2ad}=_0xa387f1[_0x435f('0x4')](_0x392fce[_0x435f('0x86')]),_0x44fa56=[_0x435f('0x6d'),'ck-suggestion-marker-insertion'],_0x3491ba=_0xa387f1['activeMarkers'][_0x435f('0x99')](_0x392fce[_0x435f('0x86')]);return _0x3491ba&&_0x44fa56['push'](_0x435f('0x4a')),{'classes':_0x44fa56,'attributes':{'data-suggestion':_0x32e2ad},'priority':_0x3491ba&&_0x441812?0xbc2:0xbb8};}_0xa387f1['on'](_0x435f('0x93'),_0x7a65a3,{'priority':_0x435f('0x8f')}),_0xa387f1['on']('suggestionUnloaded',_0x7a65a3,{'priority':_0x435f('0x8f')}),_0xdb6f27[_0x435f('0x8e')]['document'][_0x435f('0x48')](()=>{let _0x39aa2b=!0x1;const _0x5e1284=Array['from'](_0xdb6f27[_0x435f('0x8e')]['document'][_0x435f('0x27')][_0x435f('0x29')]());for(const {name:_0x2c0bf4,data:_0x454f3d}of _0x5e1284){const {group:_0x45ce43,type:_0x4b0556,id:_0x5461bf}=_0xa387f1[_0x435f('0x4')](_0x2c0bf4);if(_0x435f('0x7e')!=_0x45ce43||'deletion'!=_0x4b0556||_0x454f3d[_0x435f('0x70')])continue;if(!_0xa387f1['hasSuggestion'](_0x5461bf))continue;const _0x5313e3=_0xa387f1[_0x435f('0x38')](_0x5461bf)[_0x435f('0x2d')](),_0x78917d=_0xdb6f27['plugins'][_0x435f('0x75')](_0x435f('0x3e'))['me'];for(const _0x265670 of _0xa387f1[_0x435f('0x2')]()){if(!_0x265670[_0x435f('0x5c')]||_0x265670[_0x435f('0x35')]!=_0x78917d)continue;if('formatBlock'!=_0x265670[_0x435f('0x4c')]||_0x435f('0x74')!=_0x265670['subType'])continue;if(_0x265670['getRanges']()[_0x435f('0x10')](_0x4f0798=>_0x5313e3[_0x435f('0xe')](_0x14bbad=>_0x14bbad['containsRange'](_0x4f0798,!0x0))))for(const _0x55e874 of _0x265670[_0x435f('0x42')]())_0x55e874[_0x435f('0x5c')]&&(_0x55e874[_0x435f('0x5')](),_0x39aa2b=!0x0);}}return _0x39aa2b;}),_0xdb6f27[_0x435f('0x8e')][_0x435f('0x97')]['registerPostFixer'](_0x452d0a=>{const _0x2de8b3=_0xdb6f27[_0x435f('0x24')][_0x435f('0x75')](_0x435f('0x5d'));if(!_0x2de8b3||!_0x2de8b3[_0x435f('0x45')][_0x435f('0x79')](_0x452d0a[_0x435f('0x57')]))return!0x1;let _0x5d9768=!0x1;const _0x1ef2b0=_0xdb6f27[_0x435f('0x47')][_0x435f('0x75')](_0x435f('0x3e'))['me'],_0x4426d3=_0xdb6f27[_0x435f('0x8e')][_0x435f('0x97')][_0x435f('0x27')][_0x435f('0x9a')](),_0x33bbf9=Array['from'](_0xdb6f27[_0x435f('0x8e')][_0x435f('0x97')][_0x435f('0x27')][_0x435f('0x29')]())[_0x435f('0x28')](({name:_0x83e9a5,data:_0x45e9f5})=>{const {group:_0xf05f1e,subType:_0x347097,authorId:_0x5bd9b4}=_0xa387f1[_0x435f('0x4')](_0x83e9a5);return _0x435f('0x7e')==_0xf05f1e&&_0x435f('0xc')==_0x347097&&_0x5bd9b4==_0x1ef2b0['id']&&!_0x45e9f5[_0x435f('0x70')];});for(const _0x32d6f0 of _0x4426d3){if('insert'!=_0x32d6f0[_0x435f('0x4c')]||_0x435f('0x7d')!=_0x32d6f0[_0x435f('0x4f')]||0x1!=_0x32d6f0['length'])continue;const _0x42bc62=_0x452d0a[_0x435f('0x19')](_0x32d6f0[_0x435f('0x8d')],_0x32d6f0[_0x435f('0x8d')]['getShiftedBy'](0x1));if(!_0x33bbf9[_0x435f('0x58')](({data:_0x3c597c})=>_0x3c597c['newRange'][_0x435f('0x18')](_0x42bc62)))for(const {name:_0x465a1e,data:_0x52c718}of _0x33bbf9)if(_0x42bc62['containsRange'](_0x52c718[_0x435f('0x11')])){_0x452d0a[_0x435f('0x6f')](_0x465a1e,{'range':_0x42bc62}),_0x5d9768=!0x0;break;}}return _0x5d9768;}),_0xdb6f27['model'][_0x435f('0x97')][_0x435f('0x48')](_0x1937a4=>{let _0x4e6400=!0x1;const _0x2cd515=_0xdb6f27[_0x435f('0x47')][_0x435f('0x75')](_0x435f('0x3e'))['me'],_0x30bb96=_0xa387f1[_0x435f('0x2')]()[_0x435f('0x28')](_0x54c5c4=>_0x54c5c4[_0x435f('0x5c')]&&_0x54c5c4['author']==_0x2cd515),_0x2ead19=new Set(),_0x5d4452=new Set();for(const _0x2914ec of _0x30bb96)if(_0x435f('0xc')==_0x2914ec[_0x435f('0x85')])for(const _0x22fdbd of _0x2914ec[_0x435f('0x50')]()){const _0x20ba8d=_0x22fdbd[_0x435f('0x98')]()['getContainedElement']();if(_0x20ba8d){if(_0x20ba8d['is'](_0x435f('0x83'),_0x435f('0x7d'))&&ce(_0x20ba8d)){_0x2914ec[_0x435f('0x9e')](_0x22fdbd['name']),_0x2ead19[_0x435f('0x8')](_0x20ba8d),_0x4e6400=!0x0;const _0x34e86d=_0x20ba8d['nextSibling'],_0x56f90f=_0x20ba8d[_0x435f('0x12')],_0x197754=_0x34e86d&&_0x34e86d['is'](_0x435f('0x83'),'tableCellSuggestion'),_0x47d134=_0x56f90f&&_0x56f90f['is'](_0x435f('0x83'),_0x435f('0x7d'));_0x197754&&!_0x2ead19[_0x435f('0x79')](_0x34e86d)&&_0x5d4452[_0x435f('0x8')](_0x34e86d),_0x47d134&&!_0x2ead19[_0x435f('0x79')](_0x56f90f)&&_0x5d4452[_0x435f('0x8')](_0x56f90f);}else _0x20ba8d['is']('element',_0x435f('0x59'))&&_0x20ba8d[_0x435f('0x77')]&&(_0x2914ec[_0x435f('0x9e')](_0x22fdbd['name']),_0x4e6400=!0x0);}}else{if(_0x435f('0x74')==_0x2914ec[_0x435f('0x85')]){if(!_0x2914ec[_0x435f('0x80')]||!_0x2914ec[_0x435f('0x80')]['tablePasteChainId'])continue;const _0x4fdcc0=_0x2914ec['attributes'][_0x435f('0x7a')];if(_0x4fdcc0&&Object[_0x435f('0x54')](_0x4fdcc0)[_0x435f('0x2a')])continue;const _0x4fe99d=_0x2914ec['attributes'][_0x435f('0x43')];let _0x560f44=!0x0,_0x202bfd=!0x0;for(const _0x58ca66 of _0x30bb96)if(_0x58ca66[_0x435f('0x85')]&&_0x58ca66[_0x435f('0x85')][_0x435f('0x68')](_0x435f('0xc'))){if(!_0x58ca66[_0x435f('0x80')]['tablePasteChainId']){_0x202bfd=!0x1;break;}if(_0x58ca66['id']!=_0x2914ec['id']&&_0x58ca66[_0x435f('0x80')][_0x435f('0x43')]==_0x4fe99d){_0x560f44=!0x1;break;}}_0x202bfd&&_0x560f44&&(_0x2914ec[_0x435f('0x64')](),_0x4e6400=!0x0);}}for(const _0x87637a of _0x2ead19)_0x1937a4[_0x435f('0x89')](_0x87637a);for(const _0x565238 of _0x5d4452)_0x1937a4[_0x435f('0x21')](_0x565238);return _0x4e6400;}),_0xdb6f27[_0x435f('0x14')][_0x435f('0x7c')](_0x435f('0x33'))[_0x435f('0xd')]({'model':_0x435f('0x4e'),'view':(_0x3f1294,_0x3ad058)=>_0x28c3a0(_0x3f1294),'converterPriority':_0x435f('0x8f')}),_0xdb6f27[_0x435f('0x14')][_0x435f('0x7c')](_0x435f('0x1e'))[_0x435f('0xd')]({'model':_0x435f('0x4e'),'view':(_0x4e1d84,_0x22040a)=>_0x22040a[_0x435f('0x7b')][_0x435f('0x1a')]?_0x28c3a0(_0x4e1d84,!0x1):null,'converterPriority':_0x435f('0x8f')});const _0x1f814d=_0xdb6f27[_0x435f('0x66')][_0x435f('0x5b')];this['listenTo'](_0x1f814d[_0x435f('0x97')],'clipboardOutput',(_0x1b5608,_0x25760d)=>{const _0x241e8f=[];for(const _0xc4defb of _0x1f814d[_0x435f('0x5f')](_0x25760d[_0x435f('0x60')])['getItems']())_0xc4defb['is']('element','suggestion-td')&&_0x241e8f['push'](_0xc4defb);_0x1f814d['change'](_0x32c665=>{for(const _0x5941ac of _0x241e8f)_0x32c665[_0x435f('0x67')](_0x32c665[_0x435f('0x5f')](_0x5941ac),_0x32c665[_0x435f('0x6b')](_0x5941ac)),_0x32c665['remove'](_0x5941ac);});});}}function ce(_0x1c5b6f){if(_0x1c5b6f[_0x435f('0x77')])return!0x0;const _0xa543f5=_0x1c5b6f[_0x435f('0x1c')](0x0);return _0xa543f5['is']('element',_0x435f('0x59'))&&_0xa543f5[_0x435f('0x77')];}function fe(_0x9bc77a,_0x4a47cd={},_0x548e8f){for(const {isAnchor:_0x349f1d,cellHeight:_0x2bebf7,cellWidth:_0x215770}of _0x548e8f[_0x435f('0x91')](_0x9bc77a,{'includeAllSlots':!0x0,..._0x4a47cd}))if(!_0x349f1d||0x1!=_0x2bebf7||0x1!=_0x215770)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3e9d=['getChanges','markerToHighlight','insert','TableClipboard','updateMarker','newRange','tablePasteRow','view','document','column','move','oldRange','entries','wrap','join','getMarkers','paragraph','includes','tableCellBackgroundColor','unwrap','activeMarkers','stop','$graveyard','name','content','getChild','push','documentSelection','registerDescriptionCallback','removeRows','markMultiRangeBlockFormat','showSuggestionHighlights','position','previousSibling','plugins','containsRange','low','cell','map','endColumn','fill','row','tableCellVerticalAlignment','endRow','discard','_descriptionFactory','table','accept','registerPostFixer','suggestionLoaded','tableCellHorizontalAlignment','editingDowncast','markMultiRangeInsertion','editor','forceDefaultExecution','listenTo','_splitMarkerName','_createdBatches','nextSibling','_getCoordsForCells','reduce','attributes','tablePasteColumn','formatBlock','markerName','tableCell','schema','tablePasteChainId','some','getShiftedBy','isInContent','getSuggestionCallback','ck-suggestion-marker-insertion','last','from','tablePasteCell','removeColumns','has','options','rows','elementToElement','subType','tableCellBorderWidth','change','insertion','createRangeIn','columns','add','startsWith','Users','insertColumns','trackChanges','conversion','createRangeOn','isEmpty','markMultiRangeDeletion','insertionRanges','dataDowncast','high','createElement','nodeAfter','columnInsertionIndexes','find','get','markerAttributes','suggestion:formatBlock:tablePasteCell','getChangedMarkers','deletion','set','filter','findAncestor','batch','getAllAdjacentSuggestions','markers','first','TableUtils','getSuggestion','getRanges','element','tableCellSuggestion','model','createPositionBefore','end','tablePaste','author','setAttributes','_isForcedDefaultExecutionBlock','afterInit','commands','register','getAttributes','value','createTableWalker','type','getColumns','getSuggestions','ck-suggestion-marker--active','registerCustomCallback','suggestionUnloaded','_suggestionFactory','getItems','getRange','hasSuggestion','getContainedElement','suggestion','getChildren','length','rootName','for','fromEntries','remove','requires','removeMarker','cells','insertContent','differ','createRange','redo','suggestion-td','isEqual'];(function(_0x57a2f2,_0x3e9de6){const _0x968fae=function(_0x4d5197){while(--_0x4d5197){_0x57a2f2['push'](_0x57a2f2['shift']());}};_0x968fae(++_0x3e9de6);}(_0x3e9d,0x1d4));const _0x968f=function(_0x57a2f2,_0x3e9de6){_0x57a2f2=_0x57a2f2-0x0;let _0x968fae=_0x3e9d[_0x57a2f2];return _0x968fae;};import{getTranslation as _0x37a12d}from'../utils/common-translations';import{Plugin as _0x47374a}from'ckeditor5/src/core';import{uid as _0x57d4f4,priorities as _0x181102}from'ckeditor5/src/utils';import _0x4cd645 from'./table';const le=[_0x968f('0x5e'),'tableCellBorderColor','tableCellBorderStyle',_0x968f('0x3e'),_0x968f('0x36'),_0x968f('0x1e'),'tableCellPadding'],ae=Object[_0x968f('0x1')](le[_0x968f('0x32')](_0x49c8fc=>[_0x49c8fc,null]));export default class kt extends _0x47374a{static get[_0x968f('0x3')](){return[_0x4cd645];}[_0x968f('0x8b')](){const _0x5cc319=this[_0x968f('0x41')];if(!_0x5cc319[_0x968f('0x2e')][_0x968f('0x59')]('TableClipboard'))return;const _0x56410a=_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')]('TrackChangesEditing'),_0x10f88b=_0x5cc319['plugins'][_0x968f('0x73')](_0x968f('0x7f')),_0x354a66=_0x5cc319['plugins']['get'](_0x4cd645),_0x5aabb2=_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')](_0x968f('0xf'));_0x354a66['_tablePostFixingSubtypes']['push'](_0x968f('0x12'),_0x968f('0x4a')),_0x5cc319['model'][_0x968f('0x4e')][_0x968f('0x8d')](_0x968f('0x83'),{'allowIn':_0x968f('0x4d'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x5cc319[_0x968f('0x68')][_0x968f('0x5c')]({'model':'tableCellSuggestion','view':_0x968f('0xa')});let _0x2e0f01=null;_0x5cc319[_0x968f('0x84')]['on'](_0x968f('0x6'),(_0x3bd453,_0x4ea9e8)=>{const [_0x1066e2,_0x32e112]=_0x4ea9e8,_0x440224=_0x4ea9e8[_0x4ea9e8[_0x968f('0x9e')]-0x1];_0x440224&&_0x440224[_0x968f('0x42')]||_0x56410a[_0x968f('0x8a')]||this[_0x968f('0x41')][_0x968f('0x8c')][_0x968f('0x73')](_0x968f('0x67'))[_0x968f('0x8f')]&&function(_0xbcf82b,_0x4e70c0,_0x209e31,_0x24652b,_0xdc79c6){if(_0x4e70c0&&!_0x4e70c0['is'](_0x968f('0x27')))return!0x1;const _0x4c2633=_0xdc79c6['getTableIfOnlyTableInContent'](_0xbcf82b,_0x209e31);if(!_0x4c2633||!fe(_0x4c2633,void 0x0,_0x24652b))return!0x1;const _0x597614=_0x24652b['getSelectionAffectedTableCells'](_0x209e31[_0x968f('0x14')]['selection']);if(!_0x597614[_0x968f('0x9e')])return!0x1;const _0x20bdc0=_0x597614[0x0][_0x968f('0x7a')](_0x968f('0x3a')),_0x346936=_0x24652b['getRowIndexes'](_0x597614),_0x304445=_0x24652b['getColumnIndexes'](_0x597614),_0x56b318={'startRow':_0x346936['first'],'endRow':_0x346936['last'],'startColumn':_0x304445[_0x968f('0x7e')],'endColumn':_0x304445[_0x968f('0x55')]};return 0x1==_0x597614['length']&&(_0x56b318[_0x968f('0x37')]+=_0x24652b['getRows'](_0x4c2633)-0x1,_0x56b318[_0x968f('0x33')]+=_0x24652b[_0x968f('0x92')](_0x4c2633)-0x1),fe(_0x20bdc0,_0x56b318,_0x24652b);}(_0x1066e2,_0x32e112,_0x5cc319[_0x968f('0x84')],_0x10f88b,_0x5aabb2)&&(_0x3bd453[_0x968f('0x21')](),_0x2e0f01={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5cc319['model']['change'](()=>{_0x5cc319[_0x968f('0x84')][_0x968f('0x6')](_0x4ea9e8[0x0],_0x4ea9e8[0x1],_0x4ea9e8[0x2],{'forceDefaultExecution':!0x0});const _0x41889f=_0x57d4f4(),{rowInsertionRanges:_0x18fb56,columnInsertionRanges:_0x17f030,insertionRanges:_0x3f47e3,deletionRanges:_0x28c49d,cells:_0x24f754}=_0x2e0f01;_0x18fb56[_0x968f('0x9e')]&&_0x56410a['markMultiRangeInsertion'](_0x18fb56,_0x968f('0x12'),{'tablePasteChainId':_0x41889f}),_0x17f030[_0x968f('0x9e')]&&_0x56410a[_0x968f('0x40')](_0x17f030,_0x968f('0x4a'),{'tablePasteChainId':_0x41889f}),_0x3f47e3[_0x968f('0x9e')]&&_0x56410a[_0x968f('0x40')](_0x3f47e3,_0x968f('0x87'),{'tablePasteChainId':_0x41889f,'skipNestingCheck':!0x0}),_0x28c49d[_0x968f('0x9e')]&&_0x56410a[_0x968f('0x6b')](_0x28c49d,'tablePaste',{'tablePasteChainId':_0x41889f,'skipNestingCheck':!0x0});const _0x446f05=_0x56410a[_0x968f('0x2a')](_0x24f754[_0x968f('0x32')](({element:_0x30109f})=>_0x30109f),{'formatGroupId':_0x57d4f4()},[],_0x968f('0x57'),{'tablePasteChainId':_0x41889f});if(_0x446f05){const _0x52a56e=_0x446f05[_0x968f('0x1b')](),_0x4efb47=[];for(const {element:_0x988057,attributes:_0x3ab8c5}of _0x24f754){if(!_0x3ab8c5)continue;const _0x91808f=_0x5cc319[_0x968f('0x84')][_0x968f('0x69')](_0x988057),_0x50f2a2=_0x52a56e[_0x968f('0x72')](_0x24e1c7=>_0x24e1c7[_0x968f('0x99')]()[_0x968f('0xb')](_0x91808f));_0x50f2a2&&_0x4efb47[_0x968f('0x26')]([_0x50f2a2[_0x968f('0x23')],_0x3ab8c5]);}_0x4efb47[_0x968f('0x9e')]&&_0x446f05['setAttribute'](_0x968f('0x74'),Object[_0x968f('0x1')](_0x4efb47));}_0x2e0f01=null;}));},{'priority':_0x181102[_0x968f('0x6e')]+0xa}),_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')](_0x968f('0xf'))['on']('_replaceTableSlotCell',(_0x1c1cac,_0xec5cac)=>{const [_0x9fffe5,_0x42e526,,_0x2c353e]=_0xec5cac;if(!_0x2e0f01)return;_0x1c1cac['stop']();const _0x16de52=_0x9fffe5[_0x968f('0x31')],_0x5a7d4c=_0x42e526,_0x318de1=ce(_0x16de52),_0x1655b2=ce(_0x5a7d4c);_0x1c1cac['return']=_0x16de52;let _0x269eb8=null,_0x41d9e1=null;if(_0x1655b2||_0x318de1){if(_0x318de1&&!_0x1655b2){_0x2c353e[_0x968f('0x2')](_0x16de52[_0x968f('0x25')](0x0));for(const _0x130a34 of Array[_0x968f('0x56')](_0x5a7d4c['getChildren']()))_0x2c353e[_0x968f('0xe')](_0x130a34,_0x16de52,'end');const _0x2b13b4=_0x2e0f01['rowInsertionIndexes'][_0x968f('0x1d')](_0x9fffe5[_0x968f('0x35')]),_0x3dd977=_0x2e0f01[_0x968f('0x71')][_0x968f('0x1d')](_0x9fffe5[_0x968f('0x15')]);_0x2b13b4||_0x3dd977||(_0x269eb8=_0x2c353e[_0x968f('0x61')](_0x16de52));}else _0x1655b2&&!_0x318de1&&(_0x41d9e1=_0x2c353e['createRangeIn'](_0x16de52));}else{const _0x2a88ae=_0x2c353e[_0x968f('0x6f')](_0x968f('0x83')),_0x2c8ec6=_0x2c353e[_0x968f('0x6f')]('tableCellSuggestion');_0x2c353e[_0x968f('0x19')](_0x2c353e[_0x968f('0x61')](_0x16de52),_0x2c8ec6),_0x2c353e['insert'](_0x2a88ae,_0x16de52,0x0);for(const _0x49c232 of Array[_0x968f('0x56')](_0x5a7d4c[_0x968f('0x9d')]()))_0x2c353e[_0x968f('0xe')](_0x49c232,_0x2a88ae,_0x968f('0x86'));_0x269eb8=_0x2c353e[_0x968f('0x69')](_0x2a88ae),_0x41d9e1=_0x2c353e[_0x968f('0x69')](_0x2c8ec6);}const _0x2aada8=Array[_0x968f('0x56')](_0x5a7d4c[_0x968f('0x8e')]())['filter'](([_0x3e8076])=>le['includes'](_0x3e8076));_0x2e0f01[_0x968f('0x5')]['push']({'element':_0x16de52,'attributes':_0x2aada8[_0x968f('0x9e')]?Object[_0x968f('0x1')](_0x2aada8):null}),_0x269eb8&&_0x2e0f01[_0x968f('0x6c')]['push'](_0x269eb8),_0x41d9e1&&_0x2e0f01['deletionRanges'][_0x968f('0x26')](_0x41d9e1);},{'priority':_0x968f('0x6e')}),_0x10f88b['on'](_0x968f('0x66'),(_0x4dc50f,_0x13477e)=>{const [_0x102d92,_0x40f7da={}]=_0x13477e;if(!_0x2e0f01)return;const _0x598410=_0x40f7da['at']||0x0,_0x21b35d=_0x40f7da[_0x968f('0x62')]||0x1;_0x2e0f01[_0x968f('0x71')]=new Array(_0x21b35d)['fill'](_0x598410)[_0x968f('0x32')]((_0x147dea,_0x3eeedf)=>_0x147dea+_0x3eeedf);for(const {cell:_0x12e0ef}of _0x10f88b[_0x968f('0x90')](_0x102d92,{'startColumn':_0x598410,'endColumn':_0x598410+_0x21b35d-0x1}))_0x2e0f01['columnInsertionRanges']['push'](_0x5cc319[_0x968f('0x84')][_0x968f('0x69')](_0x12e0ef));},{'priority':_0x968f('0x30')}),_0x10f88b['on']('insertRows',(_0x20e79f,_0x5c2426)=>{const [_0x527c3c,_0x56b536={}]=_0x5c2426;if(!_0x2e0f01)return;const _0x2ebf39=_0x56b536['at']||0x0,_0xd69070=_0x56b536[_0x968f('0x5b')]||0x1;_0x2e0f01['rowInsertionIndexes']=new Array(_0xd69070)[_0x968f('0x34')](_0x2ebf39)[_0x968f('0x32')]((_0x4dc593,_0x4008c9)=>_0x4dc593+_0x4008c9);for(const {cell:_0x1e3e3d}of _0x10f88b['createTableWalker'](_0x527c3c,{'startRow':_0x2ebf39,'endRow':_0x2ebf39+_0xd69070-0x1}))_0x2e0f01['rowInsertionRanges'][_0x968f('0x26')](_0x5cc319[_0x968f('0x84')][_0x968f('0x69')](_0x1e3e3d));},{'priority':'low'}),_0x56410a[_0x968f('0x39')][_0x968f('0x28')](_0x207bf0=>{if(_0x207bf0[_0x968f('0x5d')]&&_0x207bf0[_0x968f('0x5d')][_0x968f('0x64')](_0x968f('0x87')))return _0x207bf0['previous']?{}:{'type':_0x968f('0x60'),'content':_0x37a12d(_0x5cc319['locale'],'*Replace\x20table\x20cells*')};});const _0xce9d33=()=>!0x1;for(const _0x565c13 of[_0x968f('0x87'),_0x968f('0x4a'),_0x968f('0x12'),_0x968f('0x57')])_0x56410a[_0x968f('0x97')][_0x968f('0x95')](_0x968f('0x60'),_0x565c13,_0x968f('0x1a'),_0xce9d33),_0x56410a['_suggestionFactory']['registerCustomCallback'](_0x968f('0x77'),_0x565c13,_0x968f('0x1a'),_0xce9d33),_0x56410a[_0x968f('0x97')][_0x968f('0x95')](_0x968f('0x4b'),_0x565c13,_0x968f('0x1a'),_0xce9d33);_0x56410a[_0x968f('0x97')][_0x968f('0x95')]('formatBlock',_0x968f('0x57'),_0x968f('0x38'),_0xce9d33),_0x56410a['_suggestionFactory'][_0x968f('0x95')](_0x968f('0x4b'),'tablePasteCell',_0x968f('0x3b'),(_0x4c473d,_0x2dbe05,_0x11e45a)=>{const _0x1d4981=_0x4c473d['map'](_0x57f5b4=>_0x57f5b4['getContainedElement']())[_0x968f('0x79')](_0x1c9f76=>_0x1c9f76),_0x7aaf31=new Map(_0x1d4981[_0x968f('0x32')](_0x243b6f=>[_0x243b6f,null]));if(_0x2e0f01)for(const {element:_0x31bb60,attributes:_0x1925e8}of _0x2e0f01[_0x968f('0x5')])_0x1925e8&&_0x7aaf31['set'](_0x31bb60,_0x1925e8);else{if(_0x11e45a&&_0x11e45a[_0x968f('0x74')])for(const [_0x473899,_0xe193ff]of Object[_0x968f('0x18')](_0x11e45a[_0x968f('0x74')])){const _0x86ca3=_0x5cc319[_0x968f('0x84')][_0x968f('0x7d')]['get'](_0x473899),_0xde3acc=_0x86ca3?_0x86ca3[_0x968f('0x99')]()['getContainedElement']():null;_0xde3acc&&_0x7aaf31[_0x968f('0x78')](_0xde3acc,_0xe193ff);}}_0x5cc319['model'][_0x968f('0x5f')](_0x490c6e=>{for(const [_0x1a92ef,_0x386747]of _0x7aaf31)_0x490c6e[_0x968f('0x89')]({...ae,..._0x386747},_0x1a92ef);});});const _0x3a1e80=(_0x435504,_0x3bbf21)=>{_0x56410a[_0x968f('0x97')][_0x968f('0x95')](_0x435504,_0x968f('0x87'),_0x3bbf21,(_0x19ebcf,_0x1932f8,_0x575380)=>{_0x5cc319['model'][_0x968f('0x5f')](_0x12e030=>{const _0x257d0b=[];for(const _0x5ae869 of _0x19ebcf){const _0x5885f9=_0x5ae869['start'][_0x968f('0x70')];_0x5885f9['is']('element',_0x968f('0x83'))&&_0x257d0b[_0x968f('0x26')](_0x5885f9);}_0x56410a[_0x968f('0x97')][_0x968f('0x53')](_0x435504,null,_0x3bbf21)(_0x19ebcf,_0x1932f8,_0x575380);for(const _0x58f886 of _0x257d0b)_0x968f('0x22')!=_0x58f886['root'][_0x968f('0x9f')]&&_0x12e030[_0x968f('0x1f')](_0x58f886);});});};_0x3a1e80('insertion',_0x968f('0x3b')),_0x3a1e80(_0x968f('0x60'),_0x968f('0x38')),_0x3a1e80(_0x968f('0x77'),_0x968f('0x3b')),_0x3a1e80(_0x968f('0x77'),_0x968f('0x38')),_0x56410a[_0x968f('0x97')]['registerCustomCallback'](_0x968f('0x60'),_0x968f('0x12'),_0x968f('0x38'),_0x4f0793=>{const _0x280418=_0x4f0793[_0x968f('0x32')](_0x28bcb7=>_0x28bcb7['getContainedElement']()),_0x4477e4=_0x280418[0x0][_0x968f('0x7a')](_0x968f('0x3a')),{minRow:_0x5b8da2,maxRow:_0x32214b}=_0x354a66[_0x968f('0x47')](_0x280418);_0x10f88b[_0x968f('0x29')](_0x4477e4,{'at':_0x5b8da2,'rows':_0x32214b-_0x5b8da2+0x1});}),_0x56410a['_suggestionFactory'][_0x968f('0x95')](_0x968f('0x60'),'tablePasteColumn',_0x968f('0x38'),_0x5a5a3b=>{const _0x450263=_0x5a5a3b[_0x968f('0x32')](_0x32c5b3=>_0x32c5b3[_0x968f('0x9b')]()),_0x1e9c07=_0x450263[0x0][_0x968f('0x7a')](_0x968f('0x3a')),{minColumn:_0x95cf60,maxColumn:_0x629a96}=_0x354a66['_getCoordsForCells'](_0x450263);_0x10f88b[_0x968f('0x58')](_0x1e9c07,{'at':_0x95cf60,'columns':_0x629a96-_0x95cf60+0x1});});const _0x40ce05=(_0x271353,_0x481304)=>{if(!_0x481304['subType']||!_0x481304['subType'][_0x968f('0x64')](_0x968f('0x87')))return;const _0x36ea78=_0x481304[_0x968f('0x49')][_0x968f('0x4f')],_0x295698=_0x56410a['getSuggestions']()[_0x968f('0x79')](_0x189134=>_0x189134['isInContent']&&_0x189134[_0x968f('0x49')]&&_0x189134[_0x968f('0x49')]['tablePasteChainId']==_0x36ea78);_0x295698[_0x968f('0x9e')]&&_0x481304[_0x968f('0x7c')]()[_0x968f('0x9e')]!=_0x295698['length']&&_0x295698[_0x968f('0x48')]((_0x5b6dd4,_0x61cf9a)=>(_0x5b6dd4['next']=_0x61cf9a,_0x61cf9a['previous']=_0x5b6dd4,_0x61cf9a));};function _0xd6adf0(_0x3fa99f,_0xf55ac4=!0x0){const {id:_0x284aed}=_0x56410a['_splitMarkerName'](_0x3fa99f[_0x968f('0x4c')]),_0x2f3b55=['ck-suggestion-marker',_0x968f('0x54')],_0x920b4d=_0x56410a[_0x968f('0x20')][_0x968f('0x1d')](_0x3fa99f['markerName']);return _0x920b4d&&_0x2f3b55[_0x968f('0x26')](_0x968f('0x94')),{'classes':_0x2f3b55,'attributes':{'data-suggestion':_0x284aed},'priority':_0x920b4d&&_0xf55ac4?0xbc2:0xbb8};}_0x56410a['on'](_0x968f('0x3d'),_0x40ce05,{'priority':_0x968f('0x6e')}),_0x56410a['on'](_0x968f('0x96'),_0x40ce05,{'priority':_0x968f('0x6e')}),_0x5cc319['model']['document'][_0x968f('0x3c')](()=>{let _0x13589f=!0x1;const _0x53322c=Array['from'](_0x5cc319[_0x968f('0x84')][_0x968f('0x14')]['differ'][_0x968f('0x76')]());for(const {name:_0x1577d0,data:_0xd33708}of _0x53322c){const {group:_0x2ff107,type:_0x1ecef2,id:_0x829656}=_0x56410a['_splitMarkerName'](_0x1577d0);if('suggestion'!=_0x2ff107||_0x968f('0x77')!=_0x1ecef2||_0xd33708[_0x968f('0x17')])continue;if(!_0x56410a[_0x968f('0x9a')](_0x829656))continue;const _0x1f53e8=_0x56410a[_0x968f('0x80')](_0x829656)[_0x968f('0x81')](),_0x1f5fda=_0x5cc319[_0x968f('0x2e')][_0x968f('0x73')](_0x968f('0x65'))['me'];for(const _0xfff99 of _0x56410a[_0x968f('0x93')]()){if(!_0xfff99[_0x968f('0x52')]||_0xfff99[_0x968f('0x88')]!=_0x1f5fda)continue;if(_0x968f('0x4b')!=_0xfff99['type']||'tablePasteCell'!=_0xfff99['subType'])continue;if(_0xfff99[_0x968f('0x81')]()['every'](_0x543bea=>_0x1f53e8[_0x968f('0x50')](_0x37f44b=>_0x37f44b[_0x968f('0x2f')](_0x543bea,!0x0))))for(const _0x5499f3 of _0xfff99[_0x968f('0x7c')]())_0x5499f3[_0x968f('0x52')]&&(_0x5499f3[_0x968f('0x38')](),_0x13589f=!0x0);}}return _0x13589f;}),_0x5cc319[_0x968f('0x84')][_0x968f('0x14')][_0x968f('0x3c')](_0x5c2758=>{const _0x260c79=_0x5cc319[_0x968f('0x8c')][_0x968f('0x73')](_0x968f('0x9'));if(!_0x260c79||!_0x260c79[_0x968f('0x45')][_0x968f('0x59')](_0x5c2758[_0x968f('0x7b')]))return!0x1;let _0x4290b3=!0x1;const _0x1112d0=_0x5cc319[_0x968f('0x2e')]['get']('Users')['me'],_0x4d1c43=_0x5cc319[_0x968f('0x84')]['document']['differ'][_0x968f('0xc')](),_0x18049c=Array[_0x968f('0x56')](_0x5cc319[_0x968f('0x84')][_0x968f('0x14')][_0x968f('0x7')][_0x968f('0x76')]())[_0x968f('0x79')](({name:_0x5f413e,data:_0x46a473})=>{const {group:_0x3d1714,subType:_0x48901b,authorId:_0x42d972}=_0x56410a[_0x968f('0x44')](_0x5f413e);return _0x968f('0x9c')==_0x3d1714&&_0x968f('0x87')==_0x48901b&&_0x42d972==_0x1112d0['id']&&!_0x46a473['oldRange'];});for(const _0x42e34b of _0x4d1c43){if(_0x968f('0xe')!=_0x42e34b[_0x968f('0x91')]||_0x968f('0x83')!=_0x42e34b[_0x968f('0x23')]||0x1!=_0x42e34b[_0x968f('0x9e')])continue;const _0x4c54c4=_0x5c2758[_0x968f('0x8')](_0x42e34b[_0x968f('0x2c')],_0x42e34b['position'][_0x968f('0x51')](0x1));if(!_0x18049c['find'](({data:_0x2171f5})=>_0x2171f5[_0x968f('0x11')]['isEqual'](_0x4c54c4)))for(const {name:_0x240e44,data:_0x3829b3}of _0x18049c)if(_0x4c54c4[_0x968f('0x2f')](_0x3829b3[_0x968f('0x11')])){_0x5c2758[_0x968f('0x10')](_0x240e44,{'range':_0x4c54c4}),_0x4290b3=!0x0;break;}}return _0x4290b3;}),_0x5cc319['model'][_0x968f('0x14')][_0x968f('0x3c')](_0x2b9663=>{let _0x277e78=!0x1;const _0x159a28=_0x5cc319[_0x968f('0x2e')]['get'](_0x968f('0x65'))['me'],_0x2fda28=_0x56410a['getSuggestions']()['filter'](_0x58472c=>_0x58472c[_0x968f('0x52')]&&_0x58472c[_0x968f('0x88')]==_0x159a28),_0x3c5cd6=new Set(),_0x25209a=new Set();for(const _0xba76cd of _0x2fda28)if(_0x968f('0x87')==_0xba76cd['subType'])for(const _0x12085c of _0xba76cd[_0x968f('0x1b')]()){const _0x12f37b=_0x12085c['getRange']()[_0x968f('0x9b')]();if(_0x12f37b){if(_0x12f37b['is']('element','tableCellSuggestion')&&ce(_0x12f37b)){_0xba76cd[_0x968f('0x4')](_0x12085c['name']),_0x3c5cd6[_0x968f('0x63')](_0x12f37b),_0x277e78=!0x0;const _0xeb2f6a=_0x12f37b[_0x968f('0x46')],_0x199029=_0x12f37b[_0x968f('0x2d')],_0x411165=_0xeb2f6a&&_0xeb2f6a['is']('element',_0x968f('0x83')),_0x296393=_0x199029&&_0x199029['is'](_0x968f('0x82'),_0x968f('0x83'));_0x411165&&!_0x3c5cd6[_0x968f('0x59')](_0xeb2f6a)&&_0x25209a[_0x968f('0x63')](_0xeb2f6a),_0x296393&&!_0x3c5cd6[_0x968f('0x59')](_0x199029)&&_0x25209a[_0x968f('0x63')](_0x199029);}else _0x12f37b['is'](_0x968f('0x82'),_0x968f('0x1c'))&&_0x12f37b[_0x968f('0x6a')]&&(_0xba76cd[_0x968f('0x4')](_0x12085c[_0x968f('0x23')]),_0x277e78=!0x0);}}else{if(_0x968f('0x57')==_0xba76cd[_0x968f('0x5d')]){if(!_0xba76cd['attributes']||!_0xba76cd[_0x968f('0x49')]['tablePasteChainId'])continue;const _0x43ad09=_0xba76cd[_0x968f('0x49')][_0x968f('0x74')];if(_0x43ad09&&Object['keys'](_0x43ad09)[_0x968f('0x9e')])continue;const _0x2932aa=_0xba76cd[_0x968f('0x49')][_0x968f('0x4f')];let _0x22fae1=!0x0,_0x3b7880=!0x0;for(const _0x239cb1 of _0x2fda28)if(_0x239cb1[_0x968f('0x5d')]&&_0x239cb1[_0x968f('0x5d')]['startsWith']('tablePaste')){if(!_0x239cb1['attributes'][_0x968f('0x4f')]){_0x3b7880=!0x1;break;}if(_0x239cb1['id']!=_0xba76cd['id']&&_0x239cb1[_0x968f('0x49')][_0x968f('0x4f')]==_0x2932aa){_0x22fae1=!0x1;break;}}_0x3b7880&&_0x22fae1&&(_0xba76cd['removeMarkers'](),_0x277e78=!0x0);}}for(const _0x4c13af of _0x3c5cd6)_0x2b9663[_0x968f('0x2')](_0x4c13af);for(const _0x2eb049 of _0x25209a)_0x2b9663['unwrap'](_0x2eb049);return _0x277e78;}),_0x5cc319['conversion']['for'](_0x968f('0x3f'))[_0x968f('0xd')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e23de,_0x19f8b1)=>_0xd6adf0(_0x2e23de),'converterPriority':_0x968f('0x6e')}),_0x5cc319['conversion'][_0x968f('0x0')](_0x968f('0x6d'))[_0x968f('0xd')]({'model':_0x968f('0x75'),'view':(_0x2a41ed,_0xa387d5)=>_0xa387d5[_0x968f('0x5a')][_0x968f('0x2b')]?_0xd6adf0(_0x2a41ed,!0x1):null,'converterPriority':_0x968f('0x6e')});const _0x4ce2c7=_0x5cc319['editing'][_0x968f('0x13')];this[_0x968f('0x43')](_0x4ce2c7[_0x968f('0x14')],'clipboardOutput',(_0x538120,_0x4ba672)=>{const _0x3fdcf0=[];for(const _0x4801fd of _0x4ce2c7[_0x968f('0x61')](_0x4ba672[_0x968f('0x24')])[_0x968f('0x98')]())_0x4801fd['is'](_0x968f('0x82'),_0x968f('0xa'))&&_0x3fdcf0[_0x968f('0x26')](_0x4801fd);_0x4ce2c7[_0x968f('0x5f')](_0x200ba9=>{for(const _0x104d90 of _0x3fdcf0)_0x200ba9[_0x968f('0x16')](_0x200ba9[_0x968f('0x61')](_0x104d90),_0x200ba9[_0x968f('0x85')](_0x104d90)),_0x200ba9[_0x968f('0x2')](_0x104d90);});});}}function ce(_0x3df2db){if(_0x3df2db[_0x968f('0x6a')])return!0x0;const _0x2b7d34=_0x3df2db[_0x968f('0x25')](0x0);return _0x2b7d34['is'](_0x968f('0x82'),_0x968f('0x1c'))&&_0x2b7d34[_0x968f('0x6a')];}function fe(_0x42cf8e,_0x329b1b={},_0x51f203){for(const {isAnchor:_0x42dc91,cellHeight:_0x265697,cellWidth:_0xfbf2e6}of _0x51f203['createTableWalker'](_0x42cf8e,{'includeAllSlots':!0x0,..._0x329b1b}))if(!_0x42dc91||0x1!=_0x265697||0x1!=_0xfbf2e6)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d38=['columnWidths','commandParams','model','resizeColumnWidths','registerCustomCallback','*Format:*\x20resize\x20table','_suggestionFactory','get','editor','change','getAttribute','locale','registerDescriptionCallback','TrackChangesEditing','afterInit','formatGroupId','handleSuggestionDescription','formatBlock','Users','data','_descriptionFactory','tableWidth','resizeTable','TableColumnResizeEditing','handleResizeTableWidthCommand','accept','discard','markBlockFormat','bind','getSuggestionCallback','getSelectedElement','enableCommand','document','resizeTableWidth','plugins','selection'];(function(_0x2d2389,_0x1d38e8){const _0xf59d7c=function(_0x31f9e1){while(--_0x31f9e1){_0x2d2389['push'](_0x2d2389['shift']());}};_0xf59d7c(++_0x1d38e8);}(_0x1d38,0x121));const _0xf59d=function(_0x2d2389,_0x1d38e8){_0x2d2389=_0x2d2389-0x0;let _0xf59d7c=_0x1d38[_0x2d2389];return _0xf59d7c;};import{Plugin as _0x3f4473}from'ckeditor5/src/core';import{getTranslation as _0x59afc7}from'../utils/common-translations';export default class wt extends _0x3f4473{[_0xf59d('0xd')](){if(!this[_0xf59d('0x7')][_0xf59d('0x21')]['has'](_0xf59d('0x16')))return;const _0x5701e3=this[_0xf59d('0x7')]['plugins']['get']('TrackChangesEditing');_0x5701e3[_0xf59d('0x1e')](_0xf59d('0x20'),this[_0xf59d('0x17')][_0xf59d('0x1b')](this)),_0x5701e3[_0xf59d('0x1e')](_0xf59d('0x2'),this['handleResizeTableWidthCommand'][_0xf59d('0x1b')](this)),_0x5701e3[_0xf59d('0x5')][_0xf59d('0x3')]('formatBlock',_0xf59d('0x15'),_0xf59d('0x18'),_0x5701e3['_suggestionFactory'][_0xf59d('0x1c')](_0xf59d('0x10'),null,'discard')),_0x5701e3[_0xf59d('0x5')][_0xf59d('0x3')](_0xf59d('0x10'),_0xf59d('0x15'),_0xf59d('0x19'),_0x5701e3[_0xf59d('0x5')][_0xf59d('0x1c')](_0xf59d('0x10'),null,_0xf59d('0x18'))),_0x5701e3[_0xf59d('0x13')][_0xf59d('0xb')](this[_0xf59d('0xf')]['bind'](this));}['handleResizeTableWidthCommand'](_0x47c5ad,_0x4a8844){const _0x43ed09=this[_0xf59d('0x7')][_0xf59d('0x21')]['get'](_0xf59d('0xc')),_0x43b005=this['editor'][_0xf59d('0x21')][_0xf59d('0x6')](_0xf59d('0x16')),_0x2d424f=_0x4a8844['table']||this[_0xf59d('0x7')]['model'][_0xf59d('0x1f')][_0xf59d('0x22')][_0xf59d('0x1d')]();this[_0xf59d('0x7')][_0xf59d('0x1')][_0xf59d('0x8')](()=>{const _0x23108d=_0x43b005['getColumnGroupElement'](_0x2d424f);let _0x563302=_0x23108d?_0x43b005['getTableColumnsWidths'](_0x23108d):null,_0x116f82=_0x2d424f[_0xf59d('0x9')]('tableWidth')||null;const _0x2a35aa=_0x4a8844[_0xf59d('0x14')]||_0x116f82,_0x4e9e87=_0x4a8844[_0xf59d('0x23')]||_0x563302,_0x10a903=this[_0xf59d('0x7')]['plugins'][_0xf59d('0x6')](_0xf59d('0x11'))['me'];for(const _0x3a3a2b of _0x43ed09['getSuggestions']()){const _0x4fa4a4=_0x3a3a2b['getContainedElement']();if(_0xf59d('0x15')===_0x3a3a2b['subType']&&_0x4fa4a4===_0x2d424f){_0x3a3a2b['author']!==_0x10a903&&_0x3a3a2b[_0xf59d('0x19')]();const _0x22dbe0=_0x3a3a2b[_0xf59d('0x12')][_0xf59d('0x0')];_0x116f82=_0x22dbe0[0x0]['tableWidth'],_0x563302=_0x22dbe0[0x0][_0xf59d('0x23')];break;}}_0x47c5ad({'table':_0x2d424f,'tableWidth':_0x2a35aa,'columnWidths':_0x4e9e87}),_0x43ed09[_0xf59d('0x1a')](_0x2d424f,{'commandName':_0xf59d('0x20'),'commandParams':[{'tableWidth':_0x116f82,'columnWidths':_0x563302}],'formatGroupId':'resizeTable'},[],_0xf59d('0x15'));});}['handleSuggestionDescription'](_0x2bd7c3){const {data:_0x3d1256}=_0x2bd7c3;if(_0x3d1256&&'resizeTable'===_0x3d1256[_0xf59d('0xe')]){const _0x47380e=_0xf59d('0x4');return{'type':'format','content':_0x59afc7(this['editor'][_0xf59d('0xa')],_0x47380e)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cc6=['editing','document','createPositionAfter','_suggestionFactory','FORMAT_HEADER_ROW','from','mapper','getRowIndexes','table','_descriptionFactory','getChild','format','first','formatBlock','index','name','unbindElementFromMarkerName','removeAttribute','parent','*Format:*\x20%0','writer','editor','headingRows','createRange','consumable','forceValue','FORMAT_REGULAR_COLUMN','commands','ck-suggestion-marker-','getSelectionAffectedTableCells','item','ck-suggestion-marker--active','registerCustomCallback','_acceptFormatSuggestionCallbackFactory','findAncestor','removeClass','last','addMarker:suggestion','_splitMarkerName','createPositionBefore','options','start','markerRange','selection','nodeAfter','addClass','change','getAttribute','locale','removeMarker:suggestion','model','headingColumns','childCount','markerName','registerDescriptionCallback','plugins','createTableWalker','setTableRowHeader','commandName','isBefore','includes','enableCommand','get','markBlockFormat','accept','consume','commandParams','showSuggestionHighlights','setTableColumnHeader','data','TableUtils','value','requires','end','cell','downcastDispatcher','FORMAT_HEADER_COLUMN','getColumnIndexes','getCellLocation','highest','toViewElement'];(function(_0x55bba1,_0x2cc6fa){const _0x339a85=function(_0x52eac6){while(--_0x52eac6){_0x55bba1['push'](_0x55bba1['shift']());}};_0x339a85(++_0x2cc6fa);}(_0x2cc6,0x1cc));const _0x339a=function(_0x55bba1,_0x2cc6fa){_0x55bba1=_0x55bba1-0x0;let _0x339a85=_0x2cc6[_0x55bba1];return _0x339a85;};import{Plugin as _0x39e7f9}from'ckeditor5/src/core';import _0x1c5826 from'./table';import{getTranslation as _0xe3887e}from'../utils/common-translations';export default class pt extends _0x39e7f9{static get[_0x339a('0x11')](){return[_0x1c5826];}['afterInit'](){const _0x573e50=this[_0x339a('0x2f')];if(!_0x573e50[_0x339a('0x0')]['has']('TableEditing'))return;const _0x591eef=_0x573e50[_0x339a('0x4a')],_0x5bb721=_0x573e50[_0x339a('0x0')][_0x339a('0x7')]('TrackChangesEditing'),_0x314161=_0x573e50[_0x339a('0x0')][_0x339a('0x7')](_0x339a('0xf')),_0x48bbe6=_0x573e50['plugins'][_0x339a('0x7')](_0x1c5826);function _0x4f646d({showActiveMarker:_0x1d6ca6=!0x0,setDataAttribute:_0x259008=!0x0}={}){return(_0xd54b,_0x53205c,_0x3ecc52)=>{const {type:_0x2828e2,id:_0x354e93}=_0x5bb721[_0x339a('0x40')](_0x53205c[_0x339a('0x4f')]),_0x5b67d4=_0x5bb721['getSuggestion'](_0x354e93);if(!_0x5b67d4[_0x339a('0xe')]||_0x339a('0xd')!=_0x5b67d4[_0x339a('0xe')]['commandName'])return;if(_0x53205c[_0x339a('0x38')])return void _0xd54b['stop']();if(!_0x3ecc52[_0x339a('0x32')][_0x339a('0xa')](_0x53205c[_0x339a('0x44')],_0xd54b[_0x339a('0x29')]))return;const _0x5ee395=_0x53205c['markerRange'][_0x339a('0x43')][_0x339a('0x46')],_0x58c11f=_0x53205c[_0x339a('0x44')][_0x339a('0x12')]['nodeBefore'],_0x297151=_0x5ee395[_0x339a('0x2c')][_0x339a('0x2c')],{column:_0x45ca20}=_0x314161[_0x339a('0x17')](_0x5ee395),{column:_0x24c393}=_0x314161['getCellLocation'](_0x58c11f);for(let _0x115c7a=_0x45ca20;_0x115c7a<=_0x24c393;_0x115c7a++){const _0x5b134c=_0x314161[_0x339a('0x1')](_0x297151,{'column':_0x115c7a,'includeAllSlots':!0x1});for(const _0x206be4 of _0x5b134c){const _0xfdc03d=_0x206be4[_0x339a('0x13')],_0x3e4931=_0x3ecc52[_0x339a('0x20')][_0x339a('0x19')](_0xfdc03d);_0x3ecc52[_0x339a('0x2e')][_0x339a('0x47')](_0x339a('0x36')+_0x2828e2,_0x3e4931),_0x259008&&_0x3ecc52[_0x339a('0x2e')]['setAttribute']('data-suggestion',_0x354e93,_0x3e4931),_0x3ecc52[_0x339a('0x20')]['bindElementToMarker'](_0x3e4931,_0x53205c[_0x339a('0x4f')]),_0x1d6ca6&&(_0x5bb721['activeMarkers'][_0x339a('0x5')](_0x53205c[_0x339a('0x4f')])?_0x3ecc52[_0x339a('0x2e')][_0x339a('0x47')](_0x339a('0x39'),_0x3e4931):_0x3ecc52['writer'][_0x339a('0x3d')](_0x339a('0x39'),_0x3e4931));}}};}_0x5bb721[_0x339a('0x6')](_0x339a('0x2'),(_0x33824d,_0x4fac68)=>{const _0x5003a7=_0x314161[_0x339a('0x37')](_0x573e50[_0x339a('0x4c')][_0x339a('0x1b')][_0x339a('0x45')]),_0x56774c=_0x314161[_0x339a('0x21')](_0x5003a7),_0x2b1f20=_0x5003a7[0x0]['findAncestor'](_0x339a('0x22')),_0x1e9b5e=_0x2b1f20[_0x339a('0x49')](_0x339a('0x30'))||0x0,_0x106826=_0x4fac68&&null!==_0x4fac68[_0x339a('0x33')]?_0x4fac68[_0x339a('0x33')]:!_0x573e50[_0x339a('0x35')][_0x339a('0x7')](_0x339a('0x2'))[_0x339a('0x10')],_0x15753d=_0x106826?_0x56774c[_0x339a('0x3e')]:_0x56774c[_0x339a('0x26')],_0x87ad8c=_0x2b1f20[_0x339a('0x24')](_0x15753d);let _0x255243;if(_0x106826){const _0x471a60=_0x2b1f20['getChild'](_0x1e9b5e);if(_0x87ad8c[_0x339a('0x28')]<_0x471a60['index'])return;_0x255243=_0x573e50[_0x339a('0x4c')][_0x339a('0x31')](_0x573e50['model'][_0x339a('0x41')](_0x471a60[_0x339a('0x24')](0x0)),_0x573e50[_0x339a('0x4c')][_0x339a('0x1c')](_0x87ad8c['getChild'](_0x87ad8c[_0x339a('0x4e')]-0x1)));}else{const _0xffc903=_0x2b1f20[_0x339a('0x24')](_0x1e9b5e-0x1);if(!_0xffc903)return;_0x255243=_0x573e50['model']['createRange'](_0x573e50[_0x339a('0x4c')][_0x339a('0x41')](_0x87ad8c[_0x339a('0x24')](0x0)),_0x573e50[_0x339a('0x4c')]['createPositionAfter'](_0xffc903[_0x339a('0x24')](_0xffc903[_0x339a('0x4e')]-0x1)));}_0x573e50[_0x339a('0x4c')]['change'](()=>{_0x5bb721[_0x339a('0x8')](_0x255243,{'commandName':_0x339a('0x2'),'commandParams':[{'forceValue':_0x106826}]},[],'setTableRowHeader');});}),_0x5bb721['enableCommand']('setTableColumnHeader',(_0x3f5ea6,_0x264fab)=>{const _0x57641d=_0x573e50[_0x339a('0x0')]['get'](_0x339a('0xf')),_0x58c0de=_0x57641d[_0x339a('0x37')](_0x573e50[_0x339a('0x4c')][_0x339a('0x1b')][_0x339a('0x45')]),_0x289627=_0x57641d[_0x339a('0x16')](_0x58c0de),_0x13c75e=_0x58c0de[0x0][_0x339a('0x3c')]('table'),_0xde7103=_0x13c75e[_0x339a('0x49')](_0x339a('0x4d'))||0x0,_0x4d3336=_0x264fab&&null!==_0x264fab[_0x339a('0x33')]?_0x264fab[_0x339a('0x33')]:!_0x573e50[_0x339a('0x35')]['get'](_0x339a('0xd'))[_0x339a('0x10')];let _0x168d67;const _0x3944eb=_0x13c75e[_0x339a('0x24')](0x0),_0xba15ec=_0x4d3336?_0x289627['last']:_0x289627[_0x339a('0x26')],_0x372464=_0x57641d[_0x339a('0x1')](_0x13c75e,{'startRow':0x0,'column':_0xba15ec,'includeAllSlots':!0x1}),_0x3ed715=Array[_0x339a('0x1f')](_0x372464)[0x0][_0x339a('0x13')];if(_0x4d3336){const _0xd438=_0x3944eb[_0x339a('0x24')](_0xde7103);if(_0x3ed715[_0x339a('0x4')](_0xd438))return;_0x168d67=_0x573e50['model'][_0x339a('0x31')](_0x573e50['model']['createPositionBefore'](_0xd438),_0x573e50['model'][_0x339a('0x1c')](_0x3ed715));}else{const _0x44701d=_0x3944eb[_0x339a('0x24')](_0xde7103-0x1);if(!_0x44701d)return;_0x168d67=_0x573e50[_0x339a('0x4c')][_0x339a('0x31')](_0x573e50[_0x339a('0x4c')][_0x339a('0x41')](_0x3ed715),_0x573e50[_0x339a('0x4c')]['createPositionAfter'](_0x44701d));}_0x573e50[_0x339a('0x4c')][_0x339a('0x48')](()=>{_0x5bb721[_0x339a('0x8')](_0x168d67,{'commandName':_0x339a('0xd'),'commandParams':[{'forceValue':_0x4d3336}]},[],_0x339a('0xd'));});}),_0x573e50[_0x339a('0x1a')][_0x339a('0x14')]['on'](_0x339a('0x3f'),_0x4f646d(),{'priority':_0x339a('0x18')}),_0x573e50[_0x339a('0xe')][_0x339a('0x14')]['on']('addMarker:suggestion',(_0x4f2f51,_0x12ef2a,_0x5ce783)=>{_0x5ce783[_0x339a('0x42')][_0x339a('0xc')]&&_0x4f646d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f2f51,_0x12ef2a,_0x5ce783);},{'priority':_0x339a('0x18')}),_0x573e50[_0x339a('0x1a')][_0x339a('0x14')]['on'](_0x339a('0x4b'),(_0x235931,_0x4244b1,_0x46a456)=>{const {type:_0x54f7ab,id:_0x41399e}=_0x5bb721['_splitMarkerName'](_0x4244b1[_0x339a('0x4f')]),_0x409502=_0x5bb721['getSuggestion'](_0x41399e);if(!_0x409502[_0x339a('0xe')]||_0x339a('0xd')!=_0x409502[_0x339a('0xe')][_0x339a('0x3')])return;const _0x1e6556=_0x46a456[_0x339a('0x20')]['markerNameToElements'](_0x4244b1[_0x339a('0x4f')]);if(_0x1e6556)for(const _0x3b6848 of _0x1e6556)_0x46a456['writer']['removeClass'](_0x339a('0x36')+_0x54f7ab,_0x3b6848),_0x46a456[_0x339a('0x2e')][_0x339a('0x3d')](_0x339a('0x39'),_0x3b6848),_0x46a456['writer'][_0x339a('0x2b')]('data-suggestion',_0x3b6848),_0x46a456[_0x339a('0x20')][_0x339a('0x2a')](_0x3b6848,_0x4244b1[_0x339a('0x4f')]);},{'priority':_0x339a('0x18')}),_0x5bb721[_0x339a('0x23')][_0x339a('0x50')](_0x3d0410=>{const {data:_0x5ee018}=_0x3d0410;if(_0x5ee018){if(_0x339a('0x2')==_0x5ee018['commandName']){const _0x1a7adc=_0x5ee018['commandParams'][0x0][_0x339a('0x33')];return _0x522d90(_0xe3887e(_0x591eef,_0x1a7adc?_0x339a('0x1e'):'FORMAT_REGULAR_ROW'));}if(_0x339a('0xd')==_0x5ee018['commandName']){const _0x3070bf=_0x5ee018[_0x339a('0xb')][0x0][_0x339a('0x33')];return _0x522d90(_0xe3887e(_0x591eef,_0x3070bf?_0x339a('0x15'):_0x339a('0x34')));}}function _0x522d90(_0x2531a4){return{'type':_0x339a('0x25'),'content':_0xe3887e(_0x591eef,_0x339a('0x2d'),_0x2531a4)};}});const _0x43e990=_0x48bbe6[_0x339a('0x3b')]();_0x5bb721['_suggestionFactory']['registerCustomCallback'](_0x339a('0x27'),'setTableRowHeader',_0x339a('0x9'),_0x43e990),_0x5bb721[_0x339a('0x1d')][_0x339a('0x3a')](_0x339a('0x27'),_0x339a('0xd'),_0x339a('0x9'),_0x43e990);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c3d=['element','createTableWalker','stop','table','$graveyard','format','requires','_descriptionFactory','accept','mergeTableCellUp','selection','mergeTableCellLeft','mergeTableCellRight','get','formatBlock','fromRange','getSelectionAffectedTableCells','execute','return','author','push','commandName','_tablePostFixingSubtypes','*Split\x20cell:*\x20vertically','length','find','set:isEnabled','refresh','containsRange','commands','locale','markBlockFormat','afterInit','has','insertion','from','enableCommand','createRangeOn','change','getCellLocation','_areMergableCells','TableUtils','forceDefaultExecution','tableCell','low','add','direction','_areSelectedCellsMergable','_suggestionFactory','highest','rootName','registerCustomCallback','document','mergeTableCellDown','getAncestors','deletion','model','plugins','*Merge\x20cells*','detach','mergeTableCells','findAncestor','markMultiRangeBlockFormat','isEnabled','editor','splitTableCellVertically','cell','splitTableCellHorizontally','getRanges','TrackChangesEditing','getFirstPosition','map','value','_acceptFormatSuggestionCallbackFactory','setSelection','root','type'];(function(_0xbe64,_0x4c3dc4){const _0x15cc04=function(_0x4da1c4){while(--_0x4da1c4){_0xbe64['push'](_0xbe64['shift']());}};_0x15cc04(++_0x4c3dc4);}(_0x4c3d,0x64));const _0x15cc=function(_0xbe64,_0x4c3dc4){_0xbe64=_0xbe64-0x0;let _0x15cc04=_0x4c3d[_0xbe64];return _0x15cc04;};import{Plugin as _0xa1e051}from'ckeditor5/src/core';import _0x1f608a from'./table';import{LiveRange as _0x56071b}from'ckeditor5/src/engine';import{getTranslation as _0x10f305}from'../utils/common-translations';export default class dt extends _0xa1e051{static get[_0x15cc('0x3c')](){return[_0x1f608a];}[_0x15cc('0x9')](){const _0x30c2aa=this['editor'],_0x57ce9a=_0x30c2aa['model'][_0x15cc('0x1d')][_0x15cc('0x40')],_0xbc6eed=_0x30c2aa[_0x15cc('0x7')];if(!_0x30c2aa[_0x15cc('0x22')][_0x15cc('0xa')]('TableEditing'))return;const _0x2c0493=_0x30c2aa[_0x15cc('0x22')][_0x15cc('0x43')](_0x15cc('0x2e')),_0x15d3bc=_0x30c2aa[_0x15cc('0x22')]['get'](_0x15cc('0x12')),_0x1aa0ab=_0x30c2aa[_0x15cc('0x22')][_0x15cc('0x43')](_0x1f608a);_0x1aa0ab[_0x15cc('0x4c')][_0x15cc('0x4a')](_0x15cc('0x25')),_0x2c0493[_0x15cc('0xd')](_0x15cc('0x25'),()=>{const _0x48f7f8=_0x15d3bc[_0x15cc('0x46')](_0x30c2aa[_0x15cc('0x21')][_0x15cc('0x1d')][_0x15cc('0x40')]);_0x30c2aa[_0x15cc('0x21')][_0x15cc('0xf')](()=>{_0x2c0493[_0x15cc('0x27')](_0x48f7f8,{'commandName':_0x15cc('0x25'),'commandParams':[]},[],_0x15cc('0x25'));});}),_0x30c2aa[_0x15cc('0x6')]['get']('mergeTableCells')['on'](_0x15cc('0x47'),(_0x339940,_0x14ac94)=>{_0x30c2aa[_0x15cc('0x6')][_0x15cc('0x43')]('trackChanges')['value']&&(_0x14ac94[_0x15cc('0x1')]>0x0&&_0x14ac94[_0x14ac94[_0x15cc('0x1')]-0x1]&&_0x14ac94[_0x14ac94[_0x15cc('0x1')]-0x1][_0x15cc('0x13')]||_0x2c0493['_isForcedDefaultExecutionBlock']||this[_0x15cc('0x18')]()||_0x339940[_0x15cc('0x38')]());},{'priority':_0x15cc('0x1a')});for(const _0x374853 of[_0x15cc('0x3f'),_0x15cc('0x42'),'mergeTableCellDown',_0x15cc('0x41')]){const _0x5c9b1d=_0x30c2aa[_0x15cc('0x6')]['get'](_0x374853);_0x2c0493['enableCommand'](_0x374853,()=>{const _0x3b772e=_0x30c2aa['model']['document']['selection'][_0x15cc('0x2f')]()['getAncestors']()[_0x15cc('0x2')](_0x11ea1a=>_0x11ea1a['is']('element','tableCell')),_0xeb7ef5=_0x5c9b1d[_0x15cc('0x31')];_0x30c2aa[_0x15cc('0x21')][_0x15cc('0xf')](()=>{_0x2c0493[_0x15cc('0x27')]([_0x3b772e,_0xeb7ef5],{'commandName':_0x15cc('0x25'),'commandParams':[]},[],_0x15cc('0x25'));});});}for(const _0x36e475 of[_0x15cc('0x2a'),_0x15cc('0x2c')]){const _0x2808b3=_0x30c2aa['commands']['get'](_0x36e475);_0x2c0493[_0x15cc('0xd')](_0x36e475,()=>{const _0x45f0fa=_0x15d3bc['getSelectionAffectedTableCells'](_0x30c2aa[_0x15cc('0x21')][_0x15cc('0x1d')]['selection'])[0x0],_0x222ef7=_0x45f0fa[_0x15cc('0x26')](_0x15cc('0x39')),{column:_0x281f6e,row:_0x174872}=_0x15d3bc[_0x15cc('0x10')](_0x45f0fa);let _0x266f81=[];if('horizontally'==_0x2808b3[_0x15cc('0x17')]){const _0x22eb46=_0x15d3bc[_0x15cc('0x37')](_0x222ef7,{'startRow':_0x174872,'endRow':_0x174872,'includeAllSlots':!0x0});_0x266f81=Array[_0x15cc('0xc')](_0x22eb46)[_0x15cc('0x30')](_0x8bda9=>_0x8bda9[_0x15cc('0x2b')]);}else{const _0x5ba632=_0x15d3bc['createTableWalker'](_0x222ef7,{'column':_0x281f6e,'includeAllSlots':!0x0});_0x266f81=Array[_0x15cc('0xc')](_0x5ba632)[_0x15cc('0x30')](_0x3666e5=>_0x3666e5[_0x15cc('0x2b')]);}_0x30c2aa['model'][_0x15cc('0xf')](_0x72991a=>{_0x2c0493[_0x15cc('0x8')](_0x72991a[_0x15cc('0xe')](_0x45f0fa),{'commandName':_0x36e475,'commandParams':[]},_0x266f81,_0x36e475);});});}_0x2c0493[_0x15cc('0x3d')]['registerDescriptionCallback'](_0x135ae6=>{const {data:_0xab81d9}=_0x135ae6;if(_0xab81d9)return _0x15cc('0x25')==_0xab81d9['commandName']?{'type':_0x15cc('0x3b'),'content':_0x10f305(_0xbc6eed,_0x15cc('0x23'))}:void 0x0;}),_0x2c0493[_0x15cc('0x3d')]['registerDescriptionCallback'](_0x5e6adf=>{const {data:_0x4b54c9}=_0x5e6adf;if(_0x4b54c9)return _0x15cc('0x2a')==_0x4b54c9[_0x15cc('0x4b')]?{'type':'format','content':_0x10f305(_0xbc6eed,_0x15cc('0x0'))}:_0x15cc('0x2c')==_0x4b54c9[_0x15cc('0x4b')]?{'type':'format','content':_0x10f305(_0xbc6eed,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x43299b=_0x1aa0ab[_0x15cc('0x32')]();for(const _0x15ed8f of['mergeTableCellUp','mergeTableCellRight',_0x15cc('0x1e'),'mergeTableCellLeft'])_0x2c0493[_0x15cc('0x19')][_0x15cc('0x1c')](_0x15cc('0x44'),_0x15ed8f,_0x15cc('0x3e'),_0x43299b);for(const _0x444812 of[_0x15cc('0x2a'),'splitTableCellHorizontally'])_0x2c0493[_0x15cc('0x19')][_0x15cc('0x1c')](_0x15cc('0x44'),_0x444812,'accept',_0x43299b);_0x2c0493[_0x15cc('0x19')][_0x15cc('0x1c')](_0x15cc('0x44'),'mergeTableCells',_0x15cc('0x3e'),_0x40616b=>{_0x30c2aa['model']['change'](_0x522496=>{const _0x230aae=Array[_0x15cc('0xc')](_0x57ce9a[_0x15cc('0x2d')]())['map'](_0x2638df=>_0x56071b[_0x15cc('0x45')](_0x2638df));_0x522496[_0x15cc('0x33')](_0x40616b),_0x30c2aa[_0x15cc('0x6')]['get'](_0x15cc('0x25'))[_0x15cc('0x4')](),_0x30c2aa[_0x15cc('0x47')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1a5129=_0x230aae['filter'](_0x41df5e=>_0x15cc('0x3a')!=_0x41df5e[_0x15cc('0x34')][_0x15cc('0x1b')]);_0x1a5129[_0x15cc('0x1')]>0x0&&_0x522496[_0x15cc('0x33')](_0x1a5129);for(const _0x5c0e2f of _0x230aae)_0x5c0e2f[_0x15cc('0x24')]();});});for(const _0x5a7d3b of[_0x15cc('0x3f'),_0x15cc('0x1e'),_0x15cc('0x41'),'mergeTableCellRight']){const _0x2c75ec=_0x30c2aa[_0x15cc('0x6')][_0x15cc('0x43')](_0x5a7d3b);_0x2c75ec['on'](_0x15cc('0x3'),(_0x3ae6f0,_0x1d9107,_0xe9be21)=>{if(_0xe9be21){const _0x379cf3=_0x30c2aa[_0x15cc('0x21')]['document'][_0x15cc('0x40')][_0x15cc('0x2f')]()[_0x15cc('0x1f')]()[_0x15cc('0x2')](_0x49a4bd=>_0x49a4bd['is'](_0x15cc('0x36'),_0x15cc('0x14')));this['_areMergableCells'](_0x2c75ec[_0x15cc('0x31')],_0x379cf3)||(_0x3ae6f0[_0x15cc('0x48')]=!0x1,_0x3ae6f0[_0x15cc('0x38')]());}},{'priority':_0x15cc('0x15')});}}['_areSelectedCellsMergable'](){const _0x5d78a5=this[_0x15cc('0x29')][_0x15cc('0x6')]['get'](_0x15cc('0x25')),_0x2c7d74=this['editor'][_0x15cc('0x22')][_0x15cc('0x43')](_0x15cc('0x12'));if(!_0x5d78a5[_0x15cc('0x28')])return!0x1;const _0x1f4aa9=_0x2c7d74[_0x15cc('0x46')](this['editor'][_0x15cc('0x21')][_0x15cc('0x1d')]['selection']);for(const _0x177387 of _0x1f4aa9)for(const _0x2d941b of _0x1f4aa9)if(_0x177387!=_0x2d941b&&!this[_0x15cc('0x11')](_0x177387,_0x2d941b))return!0x1;return!0x0;}[_0x15cc('0x11')](_0x427951,_0x5a4a3c){const _0x361435=this[_0x15cc('0x29')]['plugins'][_0x15cc('0x43')](_0x15cc('0x2e')),_0xaad7a=this[_0x15cc('0x29')][_0x15cc('0x21')][_0x15cc('0xe')](_0x427951),_0x54fd2f=this[_0x15cc('0x29')][_0x15cc('0x21')]['createRangeOn'](_0x5a4a3c),_0x190ab8=new Set(),_0x5adaf9=new Set();for(const _0x91be80 of _0x361435['getSuggestions']())if((_0x15cc('0xb')==_0x91be80[_0x15cc('0x35')]||_0x15cc('0x20')==_0x91be80[_0x15cc('0x35')]||_0x15cc('0x25')==_0x91be80['subType'])&&_0x91be80['isInContent'])for(const _0x3df2a6 of _0x91be80[_0x15cc('0x2d')]())_0x3df2a6[_0x15cc('0x5')](_0xaad7a,!0x0)&&_0x190ab8[_0x15cc('0x16')](_0x91be80[_0x15cc('0x35')]+':'+_0x91be80['author']['id']),_0x3df2a6['containsRange'](_0x54fd2f,!0x0)&&_0x5adaf9[_0x15cc('0x16')](_0x91be80[_0x15cc('0x35')]+':'+_0x91be80[_0x15cc('0x49')]['id']);if(_0x190ab8['size']!=_0x5adaf9['size'])return!0x1;for(const _0xddb49b of _0x190ab8)if(!_0x5adaf9[_0x15cc('0xa')](_0xddb49b))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34cf=['get','insertTableOfContents','enableCommand','locale','TrackChangesEditing','commands','_descriptionFactory','afterInit','plugins','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x4402e0,_0x34cf70){const _0x2afdd6=function(_0x2557e9){while(--_0x2557e9){_0x4402e0['push'](_0x4402e0['shift']());}};_0x2afdd6(++_0x34cf70);}(_0x34cf,0x181));const _0x2afd=function(_0x4402e0,_0x34cf70){_0x4402e0=_0x4402e0-0x0;let _0x2afdd6=_0x34cf[_0x4402e0];return _0x2afdd6;};import{Plugin as _0x3d4522}from'ckeditor5/src/core';import{getTranslation as _0x359c73}from'../utils/common-translations';export default class bt extends _0x3d4522{[_0x2afd('0x7')](){const _0x32e882=this['editor'];if(!_0x32e882[_0x2afd('0x5')][_0x2afd('0x0')](_0x2afd('0x1')))return;_0x32e882[_0x2afd('0x8')][_0x2afd('0x0')](_0x2afd('0x4'))[_0x2afd('0x2')](_0x2afd('0x1'));const _0x1ffba6=_0x32e882[_0x2afd('0x8')][_0x2afd('0x0')]('TrackChangesEditing'),_0x420562=_0x32e882[_0x2afd('0x3')];_0x1ffba6[_0x2afd('0x6')][_0x2afd('0x9')]('tableOfContents',_0x76c5bd=>_0x359c73(_0x420562,_0x2afd('0xa'),_0x76c5bd));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x517a=['_suggestionFactory','getSuggestions','discard','document','data','tableCellWidth','getAttribute','getFirstPosition','selection','tableAlignment','registerCustomCallback','tableCellPadding','tableCellVerticalAlignment','formatBlock','handleSuggestionDescription','join','removeAttribute','tableCellHorizontalAlignment','tableProperties','markBlockFormat','tableCellHeight','model','locale','TableCellPropertiesEditing','*Format:*\x20change\x20table\x20properties','get','tableCellBorderColor','getSuggestionCallback','has','tableBorderStyle','*Format:*\x20change\x20table\x20cell\x20properties','findAncestor','_handlePropertyChange','start','subType','_getSuggestion','tableBorderWidth','TrackChangesEditing','getSelectionAffectedTableCells','enqueueChange','accept','tableCellProperties','plugins','TableUtils','format','TrackChangesTableProperties','editor','enableCommand','registerDescriptionCallback','_descriptionFactory','tableCellBorderWidth','tableCellBorderStyle','handleDiscardAction','tableBackgroundColor'];(function(_0x41a6ba,_0x517a04){const _0x383f03=function(_0x3f1580){while(--_0x3f1580){_0x41a6ba['push'](_0x41a6ba['shift']());}};_0x383f03(++_0x517a04);}(_0x517a,0x178));const _0x383f=function(_0x41a6ba,_0x517a04){_0x41a6ba=_0x41a6ba-0x0;let _0x383f03=_0x517a[_0x41a6ba];return _0x383f03;};import{Plugin as _0x32a304}from'ckeditor5/src/core';import{getTranslation as _0x333a65}from'../utils/common-translations';export default class Ct extends _0x32a304{constructor(_0x386495){super(_0x386495),this[_0x383f('0x14')]=['tableBorderColor',_0x383f('0x1f'),_0x383f('0x26'),_0x383f('0xb'),'tableWidth','tableHeight',_0x383f('0x1')],this[_0x383f('0x2b')]=[_0x383f('0x1c'),_0x383f('0x35'),_0x383f('0x34'),_0x383f('0xd'),_0x383f('0x7'),_0x383f('0x16'),'tableCellBackgroundColor',_0x383f('0x13'),_0x383f('0xe')];}static get['pluginName'](){return _0x383f('0x2f');}['afterInit'](){const _0x14d164=this[_0x383f('0x30')][_0x383f('0x2c')][_0x383f('0x1b')]('TrackChangesEditing');if(this[_0x383f('0x30')][_0x383f('0x2c')]['has']('TablePropertiesEditing')){for(const _0x3be516 of this['tableProperties'])_0x14d164['enableCommand'](_0x3be516,(_0x1f3c9c,_0x426dc4)=>{const _0x2312bf=this[_0x383f('0x30')][_0x383f('0x17')][_0x383f('0x5')]['selection'][_0x383f('0x9')]()[_0x383f('0x21')]('table');this[_0x383f('0x22')](_0x3be516,[_0x2312bf],this[_0x383f('0x14')],_0x383f('0x14'),_0x1f3c9c,_0x426dc4);});_0x14d164['_suggestionFactory'][_0x383f('0xc')](_0x383f('0xf'),_0x383f('0x14'),'accept',_0x14d164[_0x383f('0x2')][_0x383f('0x1d')](_0x383f('0xf'),null,_0x383f('0x4'))),_0x14d164[_0x383f('0x2')][_0x383f('0xc')](_0x383f('0xf'),'tableProperties','discard',(_0x513afd,_0x552739)=>this['handleDiscardAction'](this[_0x383f('0x14')],_0x513afd,_0x552739)),_0x14d164[_0x383f('0x2')]['registerCustomCallback']('formatBlock',_0x383f('0x14'),_0x383f('0x11'),()=>!0x1);}if(this[_0x383f('0x30')][_0x383f('0x2c')][_0x383f('0x1e')](_0x383f('0x19'))){for(const _0x39526f of this[_0x383f('0x2b')])_0x14d164[_0x383f('0x31')](_0x39526f,(_0x3cd6bd,_0x38a02d)=>{const _0x303eec=this[_0x383f('0x30')]['plugins']['get'](_0x383f('0x2d'))[_0x383f('0x28')](this[_0x383f('0x30')][_0x383f('0x17')][_0x383f('0x5')][_0x383f('0xa')]);this[_0x383f('0x22')](_0x39526f,_0x303eec,this[_0x383f('0x2b')],'tableCellProperties',_0x3cd6bd,_0x38a02d);});_0x14d164[_0x383f('0x2')]['registerCustomCallback']('formatBlock',_0x383f('0x2b'),_0x383f('0x2a'),_0x14d164['_suggestionFactory']['getSuggestionCallback'](_0x383f('0xf'),null,_0x383f('0x4'))),_0x14d164['_suggestionFactory']['registerCustomCallback'](_0x383f('0xf'),_0x383f('0x2b'),_0x383f('0x4'),(_0x9037f0,_0x400136)=>this[_0x383f('0x0')](this[_0x383f('0x2b')],_0x9037f0,_0x400136)),_0x14d164[_0x383f('0x2')][_0x383f('0xc')](_0x383f('0xf'),_0x383f('0x2b'),'join',()=>!0x1);}_0x14d164[_0x383f('0x33')][_0x383f('0x32')](_0x1d8c2d=>this[_0x383f('0x10')](_0x1d8c2d));}[_0x383f('0x22')](_0x1c5b31,_0x5092e8,_0x39a625,_0xadc5eb,_0x313b9d,_0x3403df){const _0x15bd75=this[_0x383f('0x30')][_0x383f('0x2c')][_0x383f('0x1b')](_0x383f('0x27'));this[_0x383f('0x30')][_0x383f('0x17')][_0x383f('0x29')](_0x3403df['batch'],()=>{for(const _0x1a8d82 of _0x5092e8){if(this[_0x383f('0x25')](_0x1a8d82,_0xadc5eb))_0x313b9d(_0x3403df);else{const _0xef9fb4={};for(const _0x21c0c5 of _0x39a625){const _0x1b021a=_0x1a8d82[_0x383f('0x8')](_0x21c0c5);void 0x0!==_0x1b021a&&(_0xef9fb4[_0x21c0c5]=_0x1b021a);}_0x313b9d(_0x3403df),_0x15bd75[_0x383f('0x15')](_0x1a8d82,{'commandParams':[_0xef9fb4]},[],_0xadc5eb);}}});}['handleDiscardAction'](_0x378f1b,_0x59e0bb,_0x30efea){const _0x59c824=_0x59e0bb[0x0][_0x383f('0x23')]['nodeAfter'],_0x425207=_0x30efea['commandParams'][0x0];this[_0x383f('0x30')][_0x383f('0x17')]['change'](_0x236a53=>{for(const _0x5b27c0 of _0x378f1b)void 0x0!==_0x425207[_0x5b27c0]?_0x236a53['setAttribute'](_0x5b27c0,_0x425207[_0x5b27c0],_0x59c824):_0x236a53[_0x383f('0x12')](_0x5b27c0,_0x59c824);});}[_0x383f('0x10')](_0x58421a){if(_0x58421a[_0x383f('0x6')])switch(_0x58421a[_0x383f('0x24')]){case _0x383f('0x14'):return{'type':_0x383f('0x2e'),'content':_0x333a65(this[_0x383f('0x30')][_0x383f('0x18')],_0x383f('0x1a'))};case _0x383f('0x2b'):return{'type':_0x383f('0x2e'),'content':_0x333a65(this[_0x383f('0x30')]['locale'],_0x383f('0x20'))};}}[_0x383f('0x25')](_0xf21fdf,_0x3b742b){const _0x184155=this[_0x383f('0x30')][_0x383f('0x2c')][_0x383f('0x1b')](_0x383f('0x27'));for(const _0x45ca2d of _0x184155[_0x383f('0x3')]({'skipNotAttached':!0x0})){const _0x47b175=_0x45ca2d['getContainedElement']();if(_0x45ca2d['subType']===_0x3b742b&&_0x47b175===_0xf21fdf)return _0x45ca2d;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x308b=['Template','afterInit','insertTemplate','plugins','has','editor','enableCommand'];(function(_0xb74e1a,_0x308bbc){const _0x4f41d5=function(_0x2ad693){while(--_0x2ad693){_0xb74e1a['push'](_0xb74e1a['shift']());}};_0x4f41d5(++_0x308bbc);}(_0x308b,0x94));const _0x4f41=function(_0xb74e1a,_0x308bbc){_0xb74e1a=_0xb74e1a-0x0;let _0x4f41d5=_0x308b[_0xb74e1a];return _0x4f41d5;};import{Plugin as _0x419787}from'ckeditor5/src/core';export default class yt extends _0x419787{[_0x4f41('0x0')](){const _0x338c85=this[_0x4f41('0x4')];_0x338c85['plugins'][_0x4f41('0x3')](_0x4f41('0x6'))&&_0x338c85[_0x4f41('0x2')]['get']('TrackChangesEditing')[_0x4f41('0x5')](_0x4f41('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x63bb=['isTouching','has','updateMarker','afterInit','from','forward','document','differ','TrackChangesEditing','isEqual','registerPostFixer','plugins','suggestion','createRange','start','title-content','schema','newRange','model','editor','end','nodeBefore','removeMarker','registerElementLabel','_descriptionFactory','ELEMENT_TITLE','element','get'];(function(_0x345f3e,_0x63bb06){const _0x4a9adb=function(_0x3309c1){while(--_0x3309c1){_0x345f3e['push'](_0x345f3e['shift']());}};_0x4a9adb(++_0x63bb06);}(_0x63bb,0x140));const _0x4a9a=function(_0x345f3e,_0x63bb06){_0x345f3e=_0x345f3e-0x0;let _0x4a9adb=_0x63bb[_0x345f3e];return _0x4a9adb;};import{Plugin as _0x2212b7}from'ckeditor5/src/core';import{getTranslation as _0x54effb}from'../utils/common-translations';export default class St extends _0x2212b7{[_0x4a9a('0x13')](){const _0x563efe=this[_0x4a9a('0x7')];if(!_0x563efe[_0x4a9a('0x1b')][_0x4a9a('0x11')]('Title'))return;const _0x17cc8b=_0x563efe[_0x4a9a('0x1b')][_0x4a9a('0xf')](_0x4a9a('0x18'));_0x17cc8b[_0x4a9a('0xc')][_0x4a9a('0xb')](_0x4a9a('0x3'),()=>_0x54effb(_0x563efe['locale'],_0x4a9a('0xd'))),_0x563efe[_0x4a9a('0x6')][_0x4a9a('0x16')][_0x4a9a('0x1a')](_0x3be086=>{let _0x198668=!0x1;const _0xb9112=Array[_0x4a9a('0x14')](_0x563efe[_0x4a9a('0x6')][_0x4a9a('0x16')][_0x4a9a('0x17')]['getChangedMarkers']());for(const {name:_0x473b7b,data:_0x3cc74a}of _0xb9112){const {group:_0xf7d9f2}=_0x17cc8b['_splitMarkerName'](_0x473b7b);if(_0x4a9a('0x0')!==_0xf7d9f2||!_0x3cc74a[_0x4a9a('0x5')])continue;const _0xe71a4a=_0x3cc74a[_0x4a9a('0x5')],_0x4cb907=_0xe71a4a[_0x4a9a('0x8')][_0x4a9a('0x9')];if(!_0x4cb907||!_0x4cb907['is'](_0x4a9a('0xe'),_0x4a9a('0x3')))continue;if(!_0xe71a4a['start'][_0x4a9a('0x10')](_0xe71a4a[_0x4a9a('0x8')]))continue;const _0x2e16e1=_0x563efe[_0x4a9a('0x6')][_0x4a9a('0x4')]['getNearestSelectionRange'](_0xe71a4a[_0x4a9a('0x8')],_0x4a9a('0x15'));if(_0x2e16e1&&_0x2e16e1['isCollapsed']){const _0x14711d=_0x3be086[_0x4a9a('0x1')](_0xe71a4a['start'],_0x2e16e1[_0x4a9a('0x2')]);_0x14711d[_0x4a9a('0x19')](_0xe71a4a)||(_0x3be086[_0x4a9a('0x12')](_0x473b7b,{'range':_0x14711d}),_0x198668=!0x0);}_0x198668||(_0x3be086[_0x4a9a('0xa')](_0x473b7b),_0x198668=!0x0);}return _0x198668;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x537c=['editor','enableCommand','afterInit','undo','has','plugins','TrackChangesEditing','UndoEditing'];(function(_0x4eb240,_0x537c33){const _0x1e77d8=function(_0xd4a43d){while(--_0xd4a43d){_0x4eb240['push'](_0x4eb240['shift']());}};_0x1e77d8(++_0x537c33);}(_0x537c,0x1ae));const _0x1e77=function(_0x4eb240,_0x537c33){_0x4eb240=_0x4eb240-0x0;let _0x1e77d8=_0x537c[_0x4eb240];return _0x1e77d8;};import{Plugin as _0x1cceed}from'ckeditor5/src/core';export default class It extends _0x1cceed{[_0x1e77('0x4')](){const _0x377208=this[_0x1e77('0x2')],_0x30b7c4=_0x377208[_0x1e77('0x7')]['get'](_0x1e77('0x0'));_0x377208[_0x1e77('0x7')][_0x1e77('0x6')](_0x1e77('0x1'))&&(_0x30b7c4[_0x1e77('0x3')](_0x1e77('0x5')),_0x30b7c4['enableCommand']('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36b7=['createRangeOn','hasAttribute','mapper','getCustomProperty','markerName','isAtEnd','item','span','name','writer','getItems','insert','toViewElement','start','ck-suggestion-marker-','includes','push','isBlock','consumable','element','previousPosition','listIndent','addHighlight','markerRange','toViewPosition','nextSibling','createUIElement','ck-suggestion-marker--active','bindElementToMarker','isContent','listItem','test','model','type','parent','elementEnd'];(function(_0x412feb,_0x36b713){const _0x49f5a4=function(_0x3b17d1){while(--_0x3b17d1){_0x412feb['push'](_0x412feb['shift']());}};_0x49f5a4(++_0x36b713);}(_0x36b7,0x176));const _0x49f5=function(_0x412feb,_0x36b713){_0x412feb=_0x412feb-0x0;let _0x49f5a4=_0x36b7[_0x412feb];return _0x49f5a4;};export function getRangesWithAttribute(_0x5186fe,_0x3007a3,_0x2c8865){const _0x2363ad=[];for(const _0x157c63 of _0x3007a3[_0x49f5('0x20')]())_0x157c63[_0x49f5('0x17')](_0x5186fe)&&_0x2363ad[_0x49f5('0x2')](_0x2c8865[_0x49f5('0x16')](_0x157c63));return _0x2363ad;}export function getElementsAffectedByListItemRename(_0x51d158){const _0x14c0d3=[];if(_0x51d158['is']('element',_0x49f5('0x10'))){let _0x5861e7=_0x51d158[_0x49f5('0xb')];for(;_0x5861e7&&_0x5861e7['is'](_0x49f5('0x5'),_0x49f5('0x10'))&&_0x5861e7['getAttribute'](_0x49f5('0x7'))>0x0;)_0x14c0d3['push'](_0x5861e7),_0x5861e7=_0x5861e7[_0x49f5('0xb')];}return _0x14c0d3;}export function downcastSplitMergeMarker(_0x7c207,_0x4ef7e1,{showActiveMarker:_0x2427a3=!0x0}={}){const _0x36343f=_0x7c207['plugins']['get']('TrackChangesEditing');return(_0x217d0c,_0x29eaa9,_0x5c66c6)=>{if(!_0x5c66c6[_0x49f5('0x4')][_0x49f5('0x11')](_0x29eaa9['markerRange'],_0x217d0c[_0x49f5('0x1e')]))return;const _0x23b4f2=_0x29eaa9[_0x49f5('0x9')]['getWalker'](),_0x49035c=_0x29eaa9[_0x49f5('0x9')][_0x49f5('0x23')],_0x3cfb29=_0x7c207[_0x49f5('0x12')]['schema'];let _0x59e85b=null,_0x2c33cf=null,_0x1397c5=!0x1,_0x58e964=!0x1;for(const _0x4c2b8c of _0x23b4f2){const _0x116e86=_0x4c2b8c[_0x49f5('0x1c')];_0x1397c5=_0x1397c5||_0x3cfb29[_0x49f5('0xf')](_0x116e86);const _0xea6172=_0x5c66c6[_0x49f5('0x18')][_0x49f5('0x22')](_0x116e86);if(_0xea6172&&_0xea6172[_0x49f5('0x19')](_0x49f5('0x8')))return;_0x49f5('0x15')==_0x4c2b8c[_0x49f5('0x13')]&&(_0x3cfb29[_0x49f5('0x3')](_0x116e86)&&!_0x3cfb29['isLimit'](_0x116e86)&&(_0x116e86['nextSibling']||_0x49035c[_0x49f5('0x1b')]?_0x59e85b&&_0x59e85b[_0x49f5('0x14')]==_0x116e86||(_0x59e85b=_0x116e86,_0x4a0a15(_0x4c2b8c[_0x49f5('0x6')]),_0x58e964=!0x0):_0x2c33cf=_0x2c33cf||_0x4c2b8c['previousPosition']));}function _0x4a0a15(_0xf660a6){const _0x2075e9=_0x5c66c6[_0x49f5('0x1f')][_0x49f5('0xc')](_0x49f5('0x1d'),{'class':_0x49f5('0x0')+_0x4ef7e1}),_0x352bd6=_0x5c66c6['mapper'][_0x49f5('0xa')](_0xf660a6);_0x2427a3&&_0x36343f['activeMarkers'][_0x49f5('0x1')](_0x29eaa9[_0x49f5('0x1a')])&&_0x5c66c6['writer']['addClass'](_0x49f5('0xd'),_0x2075e9),_0x5c66c6[_0x49f5('0x1f')][_0x49f5('0x21')](_0x352bd6,_0x2075e9),_0x5c66c6['mapper'][_0x49f5('0xe')](_0x2075e9,_0x29eaa9['markerName']);}_0x1397c5||_0x58e964||!_0x2c33cf||_0x4a0a15(_0x2c33cf);};}
|