@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230809.0 → 0.0.0-nightly-20230811.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 _0x1f11=['type','nextSibling','editingDowncast','endRow','tableCellBorderColor','markMultiRangeInsertion','unwrap','start','document','markers','rowInsertionIndexes','_splitMarkerName','previous','_replaceTableSlotCell','tableCellSuggestion','tableCellHorizontalAlignment','tableCellPadding','_suggestionFactory','suggestion-td','tableCellBorderWidth','trackChanges','tablePasteChainId','editing','element','getColumns','fromEntries','join','register','dataDowncast','content','columnInsertionRanges','$graveyard','createRange','suggestion:formatBlock:tablePasteCell','registerCustomCallback','getTableIfOnlyTableInContent','differ','tablePasteRow','commands','tablePaste','for','tableCellBorderStyle','schema','markMultiRangeBlockFormat','removeColumns','isInContent','Users','tableCell','editor','includes','rowInsertionRanges','suggestion','tablePasteColumn','length','row','accept','low','add','registerPostFixer','redo','from','tableCellBackgroundColor','getContainedElement','locale','findAncestor','position','tablePasteCell','startsWith','setAttribute','get','stop','selection','getSelectionAffectedTableCells','previousSibling','ck-suggestion-marker--active','_getCoordsForCells','return','createRangeIn','getRows','some','getChild','set','getSuggestion','insertContent','setAttributes','columnInsertionIndexes','cell','batch','removeMarker','insertColumns','deletion','getSuggestions','getChanges','formatBlock','registerDescriptionCallback','ck-suggestion-marker','removeMarkers','clipboardOutput','first','map','value','move','containsRange','markerAttributes','getRanges','last','_createdBatches','elementToElement','getRange','insert','hasSuggestion','removeRows','forceDefaultExecution','createTableWalker','every','name','getAttributes','insertionRanges','rows','createRangeOn','getChildren','newRange','plugins','filter','model','afterInit','getSuggestionCallback','subType','remove','fill','markerName','getColumnIndexes','high','markMultiRangeDeletion','TableUtils','isEqual','documentSelection','push','reduce','_isForcedDefaultExecutionBlock','createElement','next','paragraph','showSuggestionHighlights','getChangedMarkers','requires','getMarkers','getShiftedBy','endColumn','*Replace\x20table\x20cells*','TableClipboard','find','change','oldRange','attributes','discard','has','insertion','isEmpty','_descriptionFactory','cells','table','markerToHighlight'];(function(_0x41da1a,_0x1f11cf){const _0x47e194=function(_0x5f20f1){while(--_0x5f20f1){_0x41da1a['push'](_0x41da1a['shift']());}};_0x47e194(++_0x1f11cf);}(_0x1f11,0x178));const _0x47e1=function(_0x41da1a,_0x1f11cf){_0x41da1a=_0x41da1a-0x0;let _0x47e194=_0x1f11[_0x41da1a];return _0x47e194;};import{getTranslation as _0xafdc07}from'../utils/common-translations';import{Plugin as _0x41864d}from'ckeditor5/src/core';import{uid as _0x32119c,priorities as _0x3e8157}from'ckeditor5/src/utils';import _0x560d41 from'./table';const le=[_0x47e1('0x84'),_0x47e1('0x75'),_0x47e1('0x9a'),_0x47e1('0x80'),'tableCellVerticalAlignment',_0x47e1('0xb'),_0x47e1('0x81')],ae=Object[_0x47e1('0x8a')](le['map'](_0x3de32d=>[_0x3de32d,null]));export default class kt extends _0x41864d{static get[_0x47e1('0x5f')](){return[_0x560d41];}[_0x47e1('0x4b')](){const _0x3f86f7=this[_0x47e1('0xa1')];if(!_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x6a')](_0x47e1('0x64')))return;const _0x474843=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')]('TrackChangesEditing'),_0xf83e42=_0x3f86f7['plugins']['get'](_0x47e1('0x54')),_0xbc6d28=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x560d41),_0x443261=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x47e1('0x64'));_0xbc6d28['_tablePostFixingSubtypes'][_0x47e1('0x57')](_0x47e1('0x96'),_0x47e1('0x2')),_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x9b')][_0x47e1('0x8c')](_0x47e1('0x7f'),{'allowIn':_0x47e1('0xa0'),'allowContentOf':_0x47e1('0xa0'),'isLimit':!0x0}),_0x3f86f7['conversion'][_0x47e1('0x39')]({'model':'tableCellSuggestion','view':_0x47e1('0x83')});let _0x524490=null;_0x3f86f7[_0x47e1('0x4a')]['on'](_0x47e1('0x21'),(_0x47f63b,_0x444c56)=>{const [_0x4f82ca,_0x326c3b]=_0x444c56,_0x4f36f9=_0x444c56[_0x444c56['length']-0x1];_0x4f36f9&&_0x4f36f9[_0x47e1('0x3e')]||_0x474843[_0x47e1('0x59')]||this[_0x47e1('0xa1')][_0x47e1('0x97')][_0x47e1('0x13')](_0x47e1('0x85'))[_0x47e1('0x32')]&&function(_0x1f4709,_0x5d8201,_0x19b456,_0x210bca,_0x2a6bd2){if(_0x5d8201&&!_0x5d8201['is'](_0x47e1('0x56')))return!0x1;const _0x5b0edd=_0x2a6bd2[_0x47e1('0x94')](_0x1f4709,_0x19b456);if(!_0x5b0edd||!fe(_0x5b0edd,void 0x0,_0x210bca))return!0x1;const _0x1b0f1a=_0x210bca[_0x47e1('0x16')](_0x19b456['document'][_0x47e1('0x15')]);if(!_0x1b0f1a[_0x47e1('0x3')])return!0x1;const _0xd9c70f=_0x1b0f1a[0x0][_0x47e1('0xe')](_0x47e1('0x6f')),_0x21b29f=_0x210bca['getRowIndexes'](_0x1b0f1a),_0x2c5262=_0x210bca[_0x47e1('0x51')](_0x1b0f1a),_0x2d9091={'startRow':_0x21b29f['first'],'endRow':_0x21b29f[_0x47e1('0x37')],'startColumn':_0x2c5262[_0x47e1('0x30')],'endColumn':_0x2c5262[_0x47e1('0x37')]};return 0x1==_0x1b0f1a['length']&&(_0x2d9091[_0x47e1('0x74')]+=_0x210bca[_0x47e1('0x1c')](_0x5b0edd)-0x1,_0x2d9091[_0x47e1('0x62')]+=_0x210bca[_0x47e1('0x89')](_0x5b0edd)-0x1),fe(_0xd9c70f,_0x2d9091,_0x210bca);}(_0x4f82ca,_0x326c3b,_0x3f86f7[_0x47e1('0x4a')],_0xf83e42,_0x443261)&&(_0x47f63b[_0x47e1('0x14')](),_0x524490={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x66')](()=>{_0x3f86f7['model'][_0x47e1('0x21')](_0x444c56[0x0],_0x444c56[0x1],_0x444c56[0x2],{'forceDefaultExecution':!0x0});const _0x1acaeb=_0x32119c(),{rowInsertionRanges:_0x390982,columnInsertionRanges:_0x3c5ae7,insertionRanges:_0x1c7295,deletionRanges:_0x41ba9a,cells:_0x3732b7}=_0x524490;_0x390982[_0x47e1('0x3')]&&_0x474843[_0x47e1('0x76')](_0x390982,_0x47e1('0x96'),{'tablePasteChainId':_0x1acaeb}),_0x3c5ae7[_0x47e1('0x3')]&&_0x474843[_0x47e1('0x76')](_0x3c5ae7,_0x47e1('0x2'),{'tablePasteChainId':_0x1acaeb}),_0x1c7295[_0x47e1('0x3')]&&_0x474843['markMultiRangeInsertion'](_0x1c7295,_0x47e1('0x98'),{'tablePasteChainId':_0x1acaeb,'skipNestingCheck':!0x0}),_0x41ba9a[_0x47e1('0x3')]&&_0x474843[_0x47e1('0x53')](_0x41ba9a,'tablePaste',{'tablePasteChainId':_0x1acaeb,'skipNestingCheck':!0x0});const _0x3a6eba=_0x474843[_0x47e1('0x9c')](_0x3732b7[_0x47e1('0x31')](({element:_0x17b477})=>_0x17b477),{'formatGroupId':_0x32119c()},[],_0x47e1('0x10'),{'tablePasteChainId':_0x1acaeb});if(_0x3a6eba){const _0x66c4a6=_0x3a6eba[_0x47e1('0x60')](),_0x2e2e55=[];for(const {element:_0x5cffd5,attributes:_0xc79d1e}of _0x3732b7){if(!_0xc79d1e)continue;const _0x5782fa=_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x45')](_0x5cffd5),_0x2c1e3b=_0x66c4a6[_0x47e1('0x65')](_0x2035ba=>_0x2035ba[_0x47e1('0x3a')]()[_0x47e1('0x55')](_0x5782fa));_0x2c1e3b&&_0x2e2e55[_0x47e1('0x57')]([_0x2c1e3b['name'],_0xc79d1e]);}_0x2e2e55[_0x47e1('0x3')]&&_0x3a6eba[_0x47e1('0x12')](_0x47e1('0x35'),Object[_0x47e1('0x8a')](_0x2e2e55));}_0x524490=null;}));},{'priority':_0x3e8157[_0x47e1('0x52')]+0xa}),_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x47e1('0x64'))['on'](_0x47e1('0x7e'),(_0x5ef8b6,_0x73fdf7)=>{const [_0x23c6c7,_0x18b7cd,,_0x1f72b9]=_0x73fdf7;if(!_0x524490)return;_0x5ef8b6[_0x47e1('0x14')]();const _0x59082a=_0x23c6c7[_0x47e1('0x24')],_0x498ad3=_0x18b7cd,_0x3a7883=ce(_0x59082a),_0x5c137c=ce(_0x498ad3);_0x5ef8b6[_0x47e1('0x1a')]=_0x59082a;let _0x1eb836=null,_0x2d6f8f=null;if(_0x5c137c||_0x3a7883){if(_0x3a7883&&!_0x5c137c){_0x1f72b9[_0x47e1('0x4e')](_0x59082a[_0x47e1('0x1e')](0x0));for(const _0x5df523 of Array[_0x47e1('0xa')](_0x498ad3['getChildren']()))_0x1f72b9[_0x47e1('0x3b')](_0x5df523,_0x59082a,'end');const _0x507b73=_0x524490[_0x47e1('0x7b')][_0x47e1('0xa2')](_0x23c6c7[_0x47e1('0x4')]),_0x2fd2db=_0x524490[_0x47e1('0x23')]['includes'](_0x23c6c7['column']);_0x507b73||_0x2fd2db||(_0x1eb836=_0x1f72b9[_0x47e1('0x1b')](_0x59082a));}else _0x5c137c&&!_0x3a7883&&(_0x2d6f8f=_0x1f72b9[_0x47e1('0x1b')](_0x59082a));}else{const _0x3708c2=_0x1f72b9[_0x47e1('0x5a')]('tableCellSuggestion'),_0x36ae08=_0x1f72b9['createElement'](_0x47e1('0x7f'));_0x1f72b9['wrap'](_0x1f72b9[_0x47e1('0x1b')](_0x59082a),_0x36ae08),_0x1f72b9[_0x47e1('0x3b')](_0x3708c2,_0x59082a,0x0);for(const _0x2e2f1f of Array[_0x47e1('0xa')](_0x498ad3[_0x47e1('0x46')]()))_0x1f72b9['insert'](_0x2e2f1f,_0x3708c2,'end');_0x1eb836=_0x1f72b9[_0x47e1('0x45')](_0x3708c2),_0x2d6f8f=_0x1f72b9['createRangeOn'](_0x36ae08);}const _0x35bb73=Array[_0x47e1('0xa')](_0x498ad3[_0x47e1('0x42')]())['filter'](([_0x53d0ea])=>le[_0x47e1('0xa2')](_0x53d0ea));_0x524490[_0x47e1('0x6e')]['push']({'element':_0x59082a,'attributes':_0x35bb73[_0x47e1('0x3')]?Object[_0x47e1('0x8a')](_0x35bb73):null}),_0x1eb836&&_0x524490[_0x47e1('0x43')][_0x47e1('0x57')](_0x1eb836),_0x2d6f8f&&_0x524490['deletionRanges'][_0x47e1('0x57')](_0x2d6f8f);},{'priority':_0x47e1('0x52')}),_0xf83e42['on'](_0x47e1('0x27'),(_0x510dfe,_0x19e399)=>{const [_0x25af0c,_0x5e90f6={}]=_0x19e399;if(!_0x524490)return;const _0x21e9b7=_0x5e90f6['at']||0x0,_0x2c574e=_0x5e90f6['columns']||0x1;_0x524490[_0x47e1('0x23')]=new Array(_0x2c574e)[_0x47e1('0x4f')](_0x21e9b7)[_0x47e1('0x31')]((_0x2c8015,_0x49487f)=>_0x2c8015+_0x49487f);for(const {cell:_0x15540b}of _0xf83e42[_0x47e1('0x3f')](_0x25af0c,{'startColumn':_0x21e9b7,'endColumn':_0x21e9b7+_0x2c574e-0x1}))_0x524490[_0x47e1('0x8f')][_0x47e1('0x57')](_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x45')](_0x15540b));},{'priority':_0x47e1('0x6')}),_0xf83e42['on']('insertRows',(_0x313218,_0x6ccf8b)=>{const [_0x1a6675,_0x3a7b16={}]=_0x6ccf8b;if(!_0x524490)return;const _0x58cbd3=_0x3a7b16['at']||0x0,_0x323d80=_0x3a7b16[_0x47e1('0x44')]||0x1;_0x524490[_0x47e1('0x7b')]=new Array(_0x323d80)[_0x47e1('0x4f')](_0x58cbd3)[_0x47e1('0x31')]((_0x4eebeb,_0x30f510)=>_0x4eebeb+_0x30f510);for(const {cell:_0x244886}of _0xf83e42[_0x47e1('0x3f')](_0x1a6675,{'startRow':_0x58cbd3,'endRow':_0x58cbd3+_0x323d80-0x1}))_0x524490[_0x47e1('0x0')][_0x47e1('0x57')](_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x45')](_0x244886));},{'priority':_0x47e1('0x6')}),_0x474843[_0x47e1('0x6d')][_0x47e1('0x2c')](_0x173e1c=>{if(_0x173e1c[_0x47e1('0x4d')]&&_0x173e1c[_0x47e1('0x4d')][_0x47e1('0x11')](_0x47e1('0x98')))return _0x173e1c[_0x47e1('0x7d')]?{}:{'type':_0x47e1('0x6b'),'content':_0xafdc07(_0x3f86f7[_0x47e1('0xd')],_0x47e1('0x63'))};});const _0x30fb29=()=>{};for(const _0x1c6b48 of['tablePaste',_0x47e1('0x2'),'tablePasteRow',_0x47e1('0x10')])_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x47e1('0x6b'),_0x1c6b48,_0x47e1('0x8b'),_0x30fb29),_0x474843['_suggestionFactory'][_0x47e1('0x93')](_0x47e1('0x28'),_0x1c6b48,'join',_0x30fb29);_0x474843['_suggestionFactory'][_0x47e1('0x93')](_0x47e1('0x2b'),_0x47e1('0x10'),_0x47e1('0x69'),_0x30fb29),_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x47e1('0x2b'),_0x47e1('0x10'),_0x47e1('0x5'),(_0x1192d7,_0x44377b,_0x418715)=>{const _0x5e14e4=_0x1192d7[_0x47e1('0x31')](_0x338c1e=>_0x338c1e[_0x47e1('0xc')]())['filter'](_0x3d7b77=>_0x3d7b77),_0x23bd65=new Map(_0x5e14e4[_0x47e1('0x31')](_0x18c138=>[_0x18c138,null]));if(_0x524490)for(const {element:_0x214799,attributes:_0x5db7d2}of _0x524490[_0x47e1('0x6e')])_0x5db7d2&&_0x23bd65[_0x47e1('0x1f')](_0x214799,_0x5db7d2);else{if(_0x418715&&_0x418715[_0x47e1('0x35')])for(const [_0x50fc7d,_0x40fd47]of Object['entries'](_0x418715[_0x47e1('0x35')])){const _0xd49fc4=_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x7a')][_0x47e1('0x13')](_0x50fc7d),_0x16dafb=_0xd49fc4?_0xd49fc4[_0x47e1('0x3a')]()[_0x47e1('0xc')]():null;_0x16dafb&&_0x23bd65[_0x47e1('0x1f')](_0x16dafb,_0x40fd47);}}_0x3f86f7['model'][_0x47e1('0x66')](_0x2b0d0f=>{for(const [_0x3bda71,_0x2b5dc6]of _0x23bd65)_0x2b0d0f[_0x47e1('0x22')]({...ae,..._0x2b5dc6},_0x3bda71);});});const _0x2878ad=(_0x4f887b,_0x92d517)=>{_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x4f887b,'tablePaste',_0x92d517,(_0x1d777b,_0xef10e6,_0x19768b)=>{_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x66')](_0x359876=>{const _0x19771e=[];for(const _0x4343ca of _0x1d777b){const _0x121755=_0x4343ca[_0x47e1('0x78')]['nodeAfter'];_0x121755['is'](_0x47e1('0x88'),_0x47e1('0x7f'))&&_0x19771e[_0x47e1('0x57')](_0x121755);}_0x474843[_0x47e1('0x82')][_0x47e1('0x4c')](_0x4f887b,null,_0x92d517)(_0x1d777b,_0xef10e6,_0x19768b);for(const _0x4ead0c of _0x19771e)_0x47e1('0x90')!=_0x4ead0c['root']['rootName']&&_0x359876[_0x47e1('0x77')](_0x4ead0c);});});};_0x2878ad(_0x47e1('0x6b'),_0x47e1('0x5')),_0x2878ad(_0x47e1('0x6b'),_0x47e1('0x69')),_0x2878ad(_0x47e1('0x28'),'accept'),_0x2878ad(_0x47e1('0x28'),_0x47e1('0x69')),_0x474843[_0x47e1('0x82')][_0x47e1('0x93')](_0x47e1('0x6b'),_0x47e1('0x96'),_0x47e1('0x69'),_0x4a27f8=>{const _0x5aa7fa=_0x4a27f8[_0x47e1('0x31')](_0x493cc4=>_0x493cc4[_0x47e1('0xc')]()),_0x37d793=_0x5aa7fa[0x0][_0x47e1('0xe')](_0x47e1('0x6f')),{minRow:_0x49fbd5,maxRow:_0x87cdd5}=_0xbc6d28[_0x47e1('0x19')](_0x5aa7fa);_0xf83e42[_0x47e1('0x3d')](_0x37d793,{'at':_0x49fbd5,'rows':_0x87cdd5-_0x49fbd5+0x1});}),_0x474843[_0x47e1('0x82')]['registerCustomCallback'](_0x47e1('0x6b'),_0x47e1('0x2'),_0x47e1('0x69'),_0x42496c=>{const _0x268446=_0x42496c[_0x47e1('0x31')](_0x4911fa=>_0x4911fa['getContainedElement']()),_0x447987=_0x268446[0x0][_0x47e1('0xe')](_0x47e1('0x6f')),{minColumn:_0x497fc3,maxColumn:_0x12bfba}=_0xbc6d28[_0x47e1('0x19')](_0x268446);_0xf83e42[_0x47e1('0x9d')](_0x447987,{'at':_0x497fc3,'columns':_0x12bfba-_0x497fc3+0x1});});const _0x19e624=(_0x1da252,_0x1d3f8d)=>{if(!_0x1d3f8d[_0x47e1('0x4d')]||!_0x1d3f8d[_0x47e1('0x4d')][_0x47e1('0x11')](_0x47e1('0x98')))return;const _0x48e1ec=_0x1d3f8d[_0x47e1('0x68')][_0x47e1('0x86')],_0x4c5f3f=_0x474843[_0x47e1('0x29')]()['filter'](_0x4cf6ed=>_0x4cf6ed[_0x47e1('0x9e')]&&_0x4cf6ed['attributes']&&_0x4cf6ed[_0x47e1('0x68')][_0x47e1('0x86')]==_0x48e1ec);_0x4c5f3f[_0x47e1('0x3')]&&_0x1d3f8d['getAllAdjacentSuggestions']()[_0x47e1('0x3')]!=_0x4c5f3f[_0x47e1('0x3')]&&_0x4c5f3f[_0x47e1('0x58')]((_0x1cb8fa,_0x3e7a81)=>(_0x1cb8fa[_0x47e1('0x5b')]=_0x3e7a81,_0x3e7a81[_0x47e1('0x7d')]=_0x1cb8fa,_0x3e7a81));};function _0x22b68d(_0x1b9ed7,_0x5308a1=!0x0){const {id:_0x2dc0a7}=_0x474843[_0x47e1('0x7c')](_0x1b9ed7[_0x47e1('0x50')]),_0x3b62e3=[_0x47e1('0x2d'),'ck-suggestion-marker-insertion'],_0x2b3d1b=_0x474843['activeMarkers']['includes'](_0x1b9ed7['markerName']);return _0x2b3d1b&&_0x3b62e3[_0x47e1('0x57')](_0x47e1('0x18')),{'classes':_0x3b62e3,'attributes':{'data-suggestion':_0x2dc0a7},'priority':_0x2b3d1b&&_0x5308a1?0xbc2:0xbb8};}_0x474843['on']('suggestionLoaded',_0x19e624,{'priority':_0x47e1('0x52')}),_0x474843['on']('suggestionUnloaded',_0x19e624,{'priority':'high'}),_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x79')]['registerPostFixer'](()=>{let _0x36ba82=!0x1;const _0x27840b=Array['from'](_0x3f86f7[_0x47e1('0x4a')]['document']['differ'][_0x47e1('0x5e')]());for(const {name:_0x544bcd,data:_0xd52747}of _0x27840b){const {group:_0x400977,type:_0x10cf15,id:_0x5f3956}=_0x474843['_splitMarkerName'](_0x544bcd);if(_0x47e1('0x1')!=_0x400977||_0x47e1('0x28')!=_0x10cf15||_0xd52747[_0x47e1('0x67')])continue;if(!_0x474843[_0x47e1('0x3c')](_0x5f3956))continue;const _0x3283d8=_0x474843[_0x47e1('0x20')](_0x5f3956)['getRanges'](),_0x376996=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')](_0x47e1('0x9f'))['me'];for(const _0x579e9a of _0x474843[_0x47e1('0x29')]()){if(!_0x579e9a[_0x47e1('0x9e')]||_0x579e9a['author']!=_0x376996)continue;if('formatBlock'!=_0x579e9a[_0x47e1('0x71')]||'tablePasteCell'!=_0x579e9a[_0x47e1('0x4d')])continue;if(_0x579e9a[_0x47e1('0x36')]()[_0x47e1('0x40')](_0x19634d=>_0x3283d8[_0x47e1('0x1d')](_0x49ab06=>_0x49ab06['containsRange'](_0x19634d,!0x0))))for(const _0x382825 of _0x579e9a['getAllAdjacentSuggestions']())_0x382825[_0x47e1('0x9e')]&&(_0x382825['discard'](),_0x36ba82=!0x0);}}return _0x36ba82;}),_0x3f86f7[_0x47e1('0x4a')]['document']['registerPostFixer'](_0x5ba19a=>{const _0x2720a6=_0x3f86f7['commands']['get'](_0x47e1('0x9'));if(!_0x2720a6||!_0x2720a6[_0x47e1('0x38')][_0x47e1('0x6a')](_0x5ba19a[_0x47e1('0x25')]))return!0x1;let _0x2e64fb=!0x1;const _0x54516f=_0x3f86f7[_0x47e1('0x48')][_0x47e1('0x13')]('Users')['me'],_0x323673=_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x79')][_0x47e1('0x95')][_0x47e1('0x2a')](),_0x2bc9aa=Array[_0x47e1('0xa')](_0x3f86f7[_0x47e1('0x4a')]['document'][_0x47e1('0x95')][_0x47e1('0x5e')]())['filter'](({name:_0x15539f,data:_0x38635f})=>{const {group:_0x4af825,subType:_0x3ad807,authorId:_0x53737e}=_0x474843[_0x47e1('0x7c')](_0x15539f);return'suggestion'==_0x4af825&&_0x47e1('0x98')==_0x3ad807&&_0x53737e==_0x54516f['id']&&!_0x38635f[_0x47e1('0x67')];});for(const _0x5020e5 of _0x323673){if('insert'!=_0x5020e5['type']||_0x47e1('0x7f')!=_0x5020e5[_0x47e1('0x41')]||0x1!=_0x5020e5['length'])continue;const _0x455d7e=_0x5ba19a[_0x47e1('0x91')](_0x5020e5['position'],_0x5020e5[_0x47e1('0xf')][_0x47e1('0x61')](0x1));if(!_0x2bc9aa['find'](({data:_0x4e4e72})=>_0x4e4e72[_0x47e1('0x47')][_0x47e1('0x55')](_0x455d7e)))for(const {name:_0x3d7e31,data:_0x55bdef}of _0x2bc9aa)if(_0x455d7e[_0x47e1('0x34')](_0x55bdef[_0x47e1('0x47')])){_0x5ba19a['updateMarker'](_0x3d7e31,{'range':_0x455d7e}),_0x2e64fb=!0x0;break;}}return _0x2e64fb;}),_0x3f86f7[_0x47e1('0x4a')][_0x47e1('0x79')][_0x47e1('0x8')](_0x122231=>{let _0x559e47=!0x1;const _0x3e6fcd=_0x3f86f7['plugins']['get'](_0x47e1('0x9f'))['me'],_0xb885d6=_0x474843[_0x47e1('0x29')]()[_0x47e1('0x49')](_0x5ab112=>_0x5ab112['isInContent']&&_0x5ab112['author']==_0x3e6fcd),_0x24e942=new Set(),_0x2f6a80=new Set();for(const _0x3c1a76 of _0xb885d6)if(_0x47e1('0x98')==_0x3c1a76['subType'])for(const _0x4f5dae of _0x3c1a76['getMarkers']()){const _0x5ac266=_0x4f5dae[_0x47e1('0x3a')]()['getContainedElement']();if(_0x5ac266){if(_0x5ac266['is'](_0x47e1('0x88'),_0x47e1('0x7f'))&&ce(_0x5ac266)){_0x3c1a76['removeMarker'](_0x4f5dae[_0x47e1('0x41')]),_0x24e942[_0x47e1('0x7')](_0x5ac266),_0x559e47=!0x0;const _0x35730d=_0x5ac266[_0x47e1('0x72')],_0xb30c61=_0x5ac266[_0x47e1('0x17')],_0x5dc347=_0x35730d&&_0x35730d['is'](_0x47e1('0x88'),_0x47e1('0x7f')),_0x1d383e=_0xb30c61&&_0xb30c61['is']('element','tableCellSuggestion');_0x5dc347&&!_0x24e942['has'](_0x35730d)&&_0x2f6a80[_0x47e1('0x7')](_0x35730d),_0x1d383e&&!_0x24e942[_0x47e1('0x6a')](_0xb30c61)&&_0x2f6a80[_0x47e1('0x7')](_0xb30c61);}else _0x5ac266['is'](_0x47e1('0x88'),_0x47e1('0x5c'))&&_0x5ac266[_0x47e1('0x6c')]&&(_0x3c1a76[_0x47e1('0x26')](_0x4f5dae['name']),_0x559e47=!0x0);}}else{if(_0x47e1('0x10')==_0x3c1a76[_0x47e1('0x4d')]){if(!_0x3c1a76[_0x47e1('0x68')]||!_0x3c1a76[_0x47e1('0x68')][_0x47e1('0x86')])continue;const _0x1df176=_0x3c1a76['attributes'][_0x47e1('0x35')];if(_0x1df176&&Object['keys'](_0x1df176)['length'])continue;const _0x43ee1f=_0x3c1a76[_0x47e1('0x68')][_0x47e1('0x86')];let _0x2e4548=!0x0,_0x1364f8=!0x0;for(const _0x565121 of _0xb885d6)if(_0x565121[_0x47e1('0x4d')]&&_0x565121[_0x47e1('0x4d')][_0x47e1('0x11')](_0x47e1('0x98'))){if(!_0x565121[_0x47e1('0x68')]['tablePasteChainId']){_0x1364f8=!0x1;break;}if(_0x565121['id']!=_0x3c1a76['id']&&_0x565121['attributes'][_0x47e1('0x86')]==_0x43ee1f){_0x2e4548=!0x1;break;}}_0x1364f8&&_0x2e4548&&(_0x3c1a76[_0x47e1('0x2e')](),_0x559e47=!0x0);}}for(const _0x3ae28c of _0x24e942)_0x122231['remove'](_0x3ae28c);for(const _0xc827cc of _0x2f6a80)_0x122231['unwrap'](_0xc827cc);return _0x559e47;}),_0x3f86f7['conversion']['for'](_0x47e1('0x73'))[_0x47e1('0x70')]({'model':_0x47e1('0x92'),'view':(_0x683a58,_0x2324b3)=>_0x22b68d(_0x683a58),'converterPriority':'high'}),_0x3f86f7['conversion'][_0x47e1('0x99')](_0x47e1('0x8d'))[_0x47e1('0x70')]({'model':_0x47e1('0x92'),'view':(_0x3b6b5a,_0x3953c0)=>_0x3953c0['options'][_0x47e1('0x5d')]?_0x22b68d(_0x3b6b5a,!0x1):null,'converterPriority':_0x47e1('0x52')});const _0x4bd61a=_0x3f86f7[_0x47e1('0x87')]['view'];this['listenTo'](_0x4bd61a[_0x47e1('0x79')],_0x47e1('0x2f'),(_0x4e357a,_0x3c806c)=>{const _0x3a02fc=[];for(const _0x204a59 of _0x4bd61a['createRangeIn'](_0x3c806c[_0x47e1('0x8e')])['getItems']())_0x204a59['is'](_0x47e1('0x88'),_0x47e1('0x83'))&&_0x3a02fc[_0x47e1('0x57')](_0x204a59);_0x4bd61a['change'](_0x451c51=>{for(const _0x523360 of _0x3a02fc)_0x451c51[_0x47e1('0x33')](_0x451c51[_0x47e1('0x1b')](_0x523360),_0x451c51['createPositionBefore'](_0x523360)),_0x451c51['remove'](_0x523360);});});}}function ce(_0xd216df){if(_0xd216df[_0x47e1('0x6c')])return!0x0;const _0x3339d1=_0xd216df[_0x47e1('0x1e')](0x0);return _0x3339d1['is'](_0x47e1('0x88'),_0x47e1('0x5c'))&&_0x3339d1[_0x47e1('0x6c')];}function fe(_0x3552ae,_0x2bc982={},_0xf3da21){for(const {isAnchor:_0x2cf0f2,cellHeight:_0x4b5c11,cellWidth:_0x27e5a3}of _0xf3da21[_0x47e1('0x3f')](_0x3552ae,{'includeAllSlots':!0x0,..._0x2bc982}))if(!_0x2cf0f2||0x1!=_0x4b5c11||0x1!=_0x27e5a3)return!0x1;return!0x0;}
|
|
23
|
+
const _0x10a2=['editingDowncast','schema','markers','insertion','rows','markerAttributes','editing','wrap','change','getRanges','position','registerCustomCallback','fill','tableCell','getAllAdjacentSuggestions','unwrap','markMultiRangeInsertion','element','getAttributes','getRowIndexes','markerToHighlight','getChildren','start','value','listenTo','getRows','endColumn','registerDescriptionCallback','redo','createTableWalker','paragraph','columnInsertionRanges','model','suggestion:formatBlock:tablePasteCell','last','TrackChangesEditing','nextSibling','insert','cells','Users','row','reduce','getMarkers','deletionRanges','getColumnIndexes','some','getChild','tablePasteCell','suggestionLoaded','getTableIfOnlyTableInContent','createRangeIn','ck-suggestion-marker-insertion','column','remove','tableCellSuggestion','selection','deletion','setAttributes','isEmpty','previous','clipboardOutput','options','createElement','attributes','findAncestor','getShiftedBy','length','cell','from','tablePasteRow','insertColumns','containsRange','set','elementToElement','getRange','rootName','tablePaste','suggestionUnloaded','discard','rowInsertionIndexes','trackChanges','tableCellBorderColor','ck-suggestion-marker--active','$graveyard','_replaceTableSlotCell','formatBlock','fromEntries','hasSuggestion','endRow','add','type','filter','forceDefaultExecution','get','getSuggestion','root','join','tableCellVerticalAlignment','afterInit','subType','stop','tablePasteColumn','table','tableCellBorderStyle','isInContent','createRangeOn','first','has','view','newRange','author','suggestion','removeMarker','return','getColumns','ck-suggestion-marker','columnInsertionIndexes','end','activeMarkers','getContainedElement','getItems','tableCellHorizontalAlignment','createRange','every','differ','getChangedMarkers','removeMarkers','commands','plugins','getSuggestionCallback','_createdBatches','_tablePostFixingSubtypes','tablePasteChainId','registerPostFixer','getChanges','getSuggestions','markMultiRangeDeletion','nodeAfter','low','accept','getSelectionAffectedTableCells','push','for','map','oldRange','_splitMarkerName','tableCellBackgroundColor','high','includes','TableClipboard','suggestion-td','startsWith','document','name','_getCoordsForCells','markerName','rowInsertionRanges','entries','find','showSuggestionHighlights','documentSelection','setAttribute','_suggestionFactory','_descriptionFactory'];(function(_0x4ae7a0,_0x10a26d){const _0x55d570=function(_0x16d821){while(--_0x16d821){_0x4ae7a0['push'](_0x4ae7a0['shift']());}};_0x55d570(++_0x10a26d);}(_0x10a2,0x19e));const _0x55d5=function(_0x4ae7a0,_0x10a26d){_0x4ae7a0=_0x4ae7a0-0x0;let _0x55d570=_0x10a2[_0x4ae7a0];return _0x55d570;};import{getTranslation as _0x267cd4}from'../utils/common-translations';import{Plugin as _0x39a7e8}from'ckeditor5/src/core';import{uid as _0x19ee79,priorities as _0x303a0d}from'ckeditor5/src/utils';import _0x1e97d2 from'./table';const le=['tableCellBorderWidth',_0x55d5('0x9f'),_0x55d5('0x11'),_0x55d5('0x23'),_0x55d5('0xb'),_0x55d5('0x3c'),'tableCellPadding'],ae=Object[_0x55d5('0x0')](le[_0x55d5('0x39')](_0x5c1c01=>[_0x5c1c01,null]));export default class kt extends _0x39a7e8{static get['requires'](){return[_0x1e97d2];}[_0x55d5('0xc')](){const _0x1297a7=this['editor'];if(!_0x1297a7['plugins'][_0x55d5('0x15')](_0x55d5('0x3f')))return;const _0x28e8f2=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x71')),_0x282a12=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')]('TableUtils'),_0x3301fd=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')](_0x1e97d2),_0x10c6e1=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')]('TableClipboard');_0x3301fd[_0x55d5('0x2d')][_0x55d5('0x37')]('tablePasteRow','tablePasteColumn'),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x4f')]['register']('tableCellSuggestion',{'allowIn':_0x55d5('0x5b'),'allowContentOf':_0x55d5('0x5b'),'isLimit':!0x0}),_0x1297a7['conversion'][_0x55d5('0x97')]({'model':'tableCellSuggestion','view':_0x55d5('0x40')});let _0x54c1b9=null;_0x1297a7[_0x55d5('0x6e')]['on']('insertContent',(_0x451c8c,_0x46a0fb)=>{const [_0x5c7577,_0x5681a8]=_0x46a0fb,_0x769460=_0x46a0fb[_0x46a0fb[_0x55d5('0x90')]-0x1];_0x769460&&_0x769460[_0x55d5('0x6')]||_0x28e8f2['_isForcedDefaultExecutionBlock']||this['editor'][_0x55d5('0x29')][_0x55d5('0x7')](_0x55d5('0x9e'))[_0x55d5('0x65')]&&function(_0x2b38df,_0x32054f,_0x5ef307,_0x37eb9a,_0x45317e){if(_0x32054f&&!_0x32054f['is'](_0x55d5('0x4a')))return!0x1;const _0x58d7d3=_0x45317e[_0x55d5('0x7f')](_0x2b38df,_0x5ef307);if(!_0x58d7d3||!fe(_0x58d7d3,void 0x0,_0x37eb9a))return!0x1;const _0x45b9bd=_0x37eb9a[_0x55d5('0x36')](_0x5ef307[_0x55d5('0x42')][_0x55d5('0x85')]);if(!_0x45b9bd[_0x55d5('0x90')])return!0x1;const _0x164f33=_0x45b9bd[0x0]['findAncestor'](_0x55d5('0x10')),_0x5c5c18=_0x37eb9a[_0x55d5('0x61')](_0x45b9bd),_0x19adab=_0x37eb9a[_0x55d5('0x7a')](_0x45b9bd),_0x239b05={'startRow':_0x5c5c18[_0x55d5('0x14')],'endRow':_0x5c5c18[_0x55d5('0x70')],'startColumn':_0x19adab[_0x55d5('0x14')],'endColumn':_0x19adab[_0x55d5('0x70')]};return 0x1==_0x45b9bd[_0x55d5('0x90')]&&(_0x239b05[_0x55d5('0x2')]+=_0x37eb9a[_0x55d5('0x67')](_0x58d7d3)-0x1,_0x239b05[_0x55d5('0x68')]+=_0x37eb9a[_0x55d5('0x1c')](_0x58d7d3)-0x1),fe(_0x164f33,_0x239b05,_0x37eb9a);}(_0x5c7577,_0x5681a8,_0x1297a7['model'],_0x282a12,_0x10c6e1)&&(_0x451c8c[_0x55d5('0xe')](),_0x54c1b9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1297a7[_0x55d5('0x6e')]['change'](()=>{_0x1297a7[_0x55d5('0x6e')]['insertContent'](_0x46a0fb[0x0],_0x46a0fb[0x1],_0x46a0fb[0x2],{'forceDefaultExecution':!0x0});const _0x3a5b6a=_0x19ee79(),{rowInsertionRanges:_0x16146f,columnInsertionRanges:_0x4f17c4,insertionRanges:_0x2497ac,deletionRanges:_0x5496ce,cells:_0x32a737}=_0x54c1b9;_0x16146f[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x16146f,_0x55d5('0x93'),{'tablePasteChainId':_0x3a5b6a}),_0x4f17c4[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x4f17c4,_0x55d5('0xf'),{'tablePasteChainId':_0x3a5b6a}),_0x2497ac[_0x55d5('0x90')]&&_0x28e8f2[_0x55d5('0x5e')](_0x2497ac,_0x55d5('0x9a'),{'tablePasteChainId':_0x3a5b6a,'skipNestingCheck':!0x0}),_0x5496ce['length']&&_0x28e8f2[_0x55d5('0x32')](_0x5496ce,_0x55d5('0x9a'),{'tablePasteChainId':_0x3a5b6a,'skipNestingCheck':!0x0});const _0x2a62f2=_0x28e8f2['markMultiRangeBlockFormat'](_0x32a737[_0x55d5('0x39')](({element:_0x55771c})=>_0x55771c),{'formatGroupId':_0x19ee79()},[],_0x55d5('0x7d'),{'tablePasteChainId':_0x3a5b6a});if(_0x2a62f2){const _0x200fa1=_0x2a62f2[_0x55d5('0x78')](),_0x2b7425=[];for(const {element:_0x380544,attributes:_0x5c917f}of _0x32a737){if(!_0x5c917f)continue;const _0x42049b=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x13')](_0x380544),_0x524d33=_0x200fa1[_0x55d5('0x48')](_0x3d8815=>_0x3d8815[_0x55d5('0x98')]()['isEqual'](_0x42049b));_0x524d33&&_0x2b7425[_0x55d5('0x37')]([_0x524d33['name'],_0x5c917f]);}_0x2b7425[_0x55d5('0x90')]&&_0x2a62f2[_0x55d5('0x4b')]('markerAttributes',Object[_0x55d5('0x0')](_0x2b7425));}_0x54c1b9=null;}));},{'priority':_0x303a0d[_0x55d5('0x3d')]+0xa}),_0x1297a7[_0x55d5('0x2a')]['get'](_0x55d5('0x3f'))['on'](_0x55d5('0xa2'),(_0x444a0a,_0x4e5515)=>{const [_0x4f04f2,_0x4d08a1,,_0x458626]=_0x4e5515;if(!_0x54c1b9)return;_0x444a0a['stop']();const _0x3dd11d=_0x4f04f2[_0x55d5('0x91')],_0x47ca07=_0x4d08a1,_0x3ea340=ce(_0x3dd11d),_0x40526b=ce(_0x47ca07);_0x444a0a[_0x55d5('0x1b')]=_0x3dd11d;let _0x7cb6e5=null,_0x376bd7=null;if(_0x40526b||_0x3ea340){if(_0x3ea340&&!_0x40526b){_0x458626['remove'](_0x3dd11d[_0x55d5('0x7c')](0x0));for(const _0x2534dc of Array[_0x55d5('0x92')](_0x47ca07['getChildren']()))_0x458626[_0x55d5('0x73')](_0x2534dc,_0x3dd11d,_0x55d5('0x1f'));const _0x3f0eff=_0x54c1b9[_0x55d5('0x9d')][_0x55d5('0x3e')](_0x4f04f2[_0x55d5('0x76')]),_0x1945a2=_0x54c1b9[_0x55d5('0x1e')][_0x55d5('0x3e')](_0x4f04f2[_0x55d5('0x82')]);_0x3f0eff||_0x1945a2||(_0x7cb6e5=_0x458626[_0x55d5('0x80')](_0x3dd11d));}else _0x40526b&&!_0x3ea340&&(_0x376bd7=_0x458626[_0x55d5('0x80')](_0x3dd11d));}else{const _0xb68f=_0x458626['createElement'](_0x55d5('0x84')),_0x157ad6=_0x458626[_0x55d5('0x8c')](_0x55d5('0x84'));_0x458626[_0x55d5('0x55')](_0x458626['createRangeIn'](_0x3dd11d),_0x157ad6),_0x458626[_0x55d5('0x73')](_0xb68f,_0x3dd11d,0x0);for(const _0x5161c5 of Array[_0x55d5('0x92')](_0x47ca07[_0x55d5('0x63')]()))_0x458626[_0x55d5('0x73')](_0x5161c5,_0xb68f,_0x55d5('0x1f'));_0x7cb6e5=_0x458626[_0x55d5('0x13')](_0xb68f),_0x376bd7=_0x458626['createRangeOn'](_0x157ad6);}const _0x5ad7d9=Array[_0x55d5('0x92')](_0x47ca07[_0x55d5('0x60')]())[_0x55d5('0x5')](([_0x3f20fb])=>le[_0x55d5('0x3e')](_0x3f20fb));_0x54c1b9[_0x55d5('0x74')][_0x55d5('0x37')]({'element':_0x3dd11d,'attributes':_0x5ad7d9[_0x55d5('0x90')]?Object[_0x55d5('0x0')](_0x5ad7d9):null}),_0x7cb6e5&&_0x54c1b9['insertionRanges']['push'](_0x7cb6e5),_0x376bd7&&_0x54c1b9[_0x55d5('0x79')][_0x55d5('0x37')](_0x376bd7);},{'priority':_0x55d5('0x3d')}),_0x282a12['on'](_0x55d5('0x94'),(_0x3f8117,_0x2eec42)=>{const [_0x515ce5,_0x46d5cf={}]=_0x2eec42;if(!_0x54c1b9)return;const _0x510bca=_0x46d5cf['at']||0x0,_0xba4f05=_0x46d5cf['columns']||0x1;_0x54c1b9[_0x55d5('0x1e')]=new Array(_0xba4f05)[_0x55d5('0x5a')](_0x510bca)[_0x55d5('0x39')]((_0x3e819e,_0x5db857)=>_0x3e819e+_0x5db857);for(const {cell:_0x59d7a0}of _0x282a12[_0x55d5('0x6b')](_0x515ce5,{'startColumn':_0x510bca,'endColumn':_0x510bca+_0xba4f05-0x1}))_0x54c1b9[_0x55d5('0x6d')]['push'](_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x13')](_0x59d7a0));},{'priority':_0x55d5('0x34')}),_0x282a12['on']('insertRows',(_0x5a1764,_0x3acb1a)=>{const [_0x4d19f3,_0x24ba60={}]=_0x3acb1a;if(!_0x54c1b9)return;const _0x5327f1=_0x24ba60['at']||0x0,_0x50f849=_0x24ba60[_0x55d5('0x52')]||0x1;_0x54c1b9[_0x55d5('0x9d')]=new Array(_0x50f849)[_0x55d5('0x5a')](_0x5327f1)[_0x55d5('0x39')]((_0x2da548,_0x2623ed)=>_0x2da548+_0x2623ed);for(const {cell:_0x1d1298}of _0x282a12[_0x55d5('0x6b')](_0x4d19f3,{'startRow':_0x5327f1,'endRow':_0x5327f1+_0x50f849-0x1}))_0x54c1b9[_0x55d5('0x46')][_0x55d5('0x37')](_0x1297a7['model'][_0x55d5('0x13')](_0x1d1298));},{'priority':_0x55d5('0x34')}),_0x28e8f2[_0x55d5('0x4d')][_0x55d5('0x69')](_0x4033aa=>{if(_0x4033aa[_0x55d5('0xd')]&&_0x4033aa[_0x55d5('0xd')][_0x55d5('0x41')]('tablePaste'))return _0x4033aa['previous']?{}:{'type':_0x55d5('0x51'),'content':_0x267cd4(_0x1297a7['locale'],'*Replace\x20table\x20cells*')};});const _0x5b52b3=()=>{};for(const _0x21a9ed of[_0x55d5('0x9a'),_0x55d5('0xf'),'tablePasteRow',_0x55d5('0x7d')])_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),_0x21a9ed,_0x55d5('0xa'),_0x5b52b3),_0x28e8f2[_0x55d5('0x4c')]['registerCustomCallback'](_0x55d5('0x86'),_0x21a9ed,'join',_0x5b52b3);_0x28e8f2[_0x55d5('0x4c')]['registerCustomCallback'](_0x55d5('0xa3'),_0x55d5('0x7d'),_0x55d5('0x9c'),_0x5b52b3),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0xa3'),_0x55d5('0x7d'),_0x55d5('0x35'),(_0xa12438,_0x1465ee,_0x2a5cf2)=>{const _0x35a9a6=_0xa12438['map'](_0x3680c2=>_0x3680c2['getContainedElement']())[_0x55d5('0x5')](_0x48aa34=>_0x48aa34),_0x5496bc=new Map(_0x35a9a6['map'](_0x38a915=>[_0x38a915,null]));if(_0x54c1b9)for(const {element:_0x20378d,attributes:_0x3443f1}of _0x54c1b9[_0x55d5('0x74')])_0x3443f1&&_0x5496bc[_0x55d5('0x96')](_0x20378d,_0x3443f1);else{if(_0x2a5cf2&&_0x2a5cf2[_0x55d5('0x53')])for(const [_0x393d4e,_0x350e22]of Object[_0x55d5('0x47')](_0x2a5cf2[_0x55d5('0x53')])){const _0x7fb2aa=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x50')][_0x55d5('0x7')](_0x393d4e),_0xa71d0b=_0x7fb2aa?_0x7fb2aa[_0x55d5('0x98')]()[_0x55d5('0x21')]():null;_0xa71d0b&&_0x5496bc['set'](_0xa71d0b,_0x350e22);}}_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x56')](_0xfd918b=>{for(const [_0x16a108,_0x48ba2f]of _0x5496bc)_0xfd918b[_0x55d5('0x87')]({...ae,..._0x48ba2f},_0x16a108);});});const _0x5b28aa=(_0x61772e,_0x158f80)=>{_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x61772e,_0x55d5('0x9a'),_0x158f80,(_0x3c2dea,_0x35af6a,_0x6a3604)=>{_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x56')](_0x2d39fe=>{const _0x2f8fc=[];for(const _0x250407 of _0x3c2dea){const _0x57920d=_0x250407[_0x55d5('0x64')][_0x55d5('0x33')];_0x57920d['is'](_0x55d5('0x5f'),_0x55d5('0x84'))&&_0x2f8fc['push'](_0x57920d);}_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x2b')](_0x61772e,null,_0x158f80)(_0x3c2dea,_0x35af6a,_0x6a3604);for(const _0x3d9b92 of _0x2f8fc)_0x55d5('0xa1')!=_0x3d9b92[_0x55d5('0x9')][_0x55d5('0x99')]&&_0x2d39fe[_0x55d5('0x5d')](_0x3d9b92);});});};_0x5b28aa(_0x55d5('0x51'),_0x55d5('0x35')),_0x5b28aa(_0x55d5('0x51'),_0x55d5('0x9c')),_0x5b28aa(_0x55d5('0x86'),_0x55d5('0x35')),_0x5b28aa(_0x55d5('0x86'),_0x55d5('0x9c')),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),'tablePasteRow',_0x55d5('0x9c'),_0x90e4fc=>{const _0x350ccb=_0x90e4fc[_0x55d5('0x39')](_0x189eac=>_0x189eac[_0x55d5('0x21')]()),_0x90e887=_0x350ccb[0x0][_0x55d5('0x8e')]('table'),{minRow:_0x28be8e,maxRow:_0x5bdd17}=_0x3301fd[_0x55d5('0x44')](_0x350ccb);_0x282a12['removeRows'](_0x90e887,{'at':_0x28be8e,'rows':_0x5bdd17-_0x28be8e+0x1});}),_0x28e8f2[_0x55d5('0x4c')][_0x55d5('0x59')](_0x55d5('0x51'),_0x55d5('0xf'),_0x55d5('0x9c'),_0x52b452=>{const _0x210faa=_0x52b452[_0x55d5('0x39')](_0x5cdbab=>_0x5cdbab['getContainedElement']()),_0x1d5df3=_0x210faa[0x0][_0x55d5('0x8e')]('table'),{minColumn:_0x14d627,maxColumn:_0x12c4c5}=_0x3301fd[_0x55d5('0x44')](_0x210faa);_0x282a12['removeColumns'](_0x1d5df3,{'at':_0x14d627,'columns':_0x12c4c5-_0x14d627+0x1});});const _0xba96f0=(_0x32ac5b,_0x5752d1)=>{if(!_0x5752d1[_0x55d5('0xd')]||!_0x5752d1['subType']['startsWith'](_0x55d5('0x9a')))return;const _0x3a0d97=_0x5752d1[_0x55d5('0x8d')][_0x55d5('0x2e')],_0x33f435=_0x28e8f2[_0x55d5('0x31')]()['filter'](_0x5de553=>_0x5de553[_0x55d5('0x12')]&&_0x5de553[_0x55d5('0x8d')]&&_0x5de553[_0x55d5('0x8d')][_0x55d5('0x2e')]==_0x3a0d97);_0x33f435['length']&&_0x5752d1[_0x55d5('0x5c')]()[_0x55d5('0x90')]!=_0x33f435[_0x55d5('0x90')]&&_0x33f435[_0x55d5('0x77')]((_0x2df3f9,_0x4fdf62)=>(_0x2df3f9['next']=_0x4fdf62,_0x4fdf62[_0x55d5('0x89')]=_0x2df3f9,_0x4fdf62));};function _0xd6468f(_0x5f2000,_0x2851ea=!0x0){const {id:_0x1fdce6}=_0x28e8f2[_0x55d5('0x3b')](_0x5f2000['markerName']),_0x141240=[_0x55d5('0x1d'),_0x55d5('0x81')],_0x3d6465=_0x28e8f2[_0x55d5('0x20')]['includes'](_0x5f2000[_0x55d5('0x45')]);return _0x3d6465&&_0x141240[_0x55d5('0x37')](_0x55d5('0xa0')),{'classes':_0x141240,'attributes':{'data-suggestion':_0x1fdce6},'priority':_0x3d6465&&_0x2851ea?0xbc2:0xbb8};}_0x28e8f2['on'](_0x55d5('0x7e'),_0xba96f0,{'priority':_0x55d5('0x3d')}),_0x28e8f2['on'](_0x55d5('0x9b'),_0xba96f0,{'priority':_0x55d5('0x3d')}),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x2f')](()=>{let _0x5d28a3=!0x1;const _0x3678f6=Array['from'](_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x26')][_0x55d5('0x27')]());for(const {name:_0xdcdbb4,data:_0x1c23d9}of _0x3678f6){const {group:_0x4c6d1d,type:_0x4ef505,id:_0x31e52e}=_0x28e8f2['_splitMarkerName'](_0xdcdbb4);if(_0x55d5('0x19')!=_0x4c6d1d||_0x55d5('0x86')!=_0x4ef505||_0x1c23d9[_0x55d5('0x3a')])continue;if(!_0x28e8f2[_0x55d5('0x1')](_0x31e52e))continue;const _0x116e75=_0x28e8f2[_0x55d5('0x8')](_0x31e52e)[_0x55d5('0x57')](),_0x3fcd60=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x75'))['me'];for(const _0x20953d of _0x28e8f2[_0x55d5('0x31')]()){if(!_0x20953d['isInContent']||_0x20953d[_0x55d5('0x18')]!=_0x3fcd60)continue;if('formatBlock'!=_0x20953d[_0x55d5('0x4')]||_0x55d5('0x7d')!=_0x20953d[_0x55d5('0xd')])continue;if(_0x20953d['getRanges']()[_0x55d5('0x25')](_0x592b1c=>_0x116e75[_0x55d5('0x7b')](_0x3ad641=>_0x3ad641[_0x55d5('0x95')](_0x592b1c,!0x0))))for(const _0x486407 of _0x20953d[_0x55d5('0x5c')]())_0x486407[_0x55d5('0x12')]&&(_0x486407[_0x55d5('0x9c')](),_0x5d28a3=!0x0);}}return _0x5d28a3;}),_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')][_0x55d5('0x2f')](_0x16d9e9=>{const _0x33c825=_0x1297a7['commands'][_0x55d5('0x7')](_0x55d5('0x6a'));if(!_0x33c825||!_0x33c825[_0x55d5('0x2c')]['has'](_0x16d9e9['batch']))return!0x1;let _0x2f6db7=!0x1;const _0xadaa4e=_0x1297a7['plugins'][_0x55d5('0x7')](_0x55d5('0x75'))['me'],_0x336c11=_0x1297a7[_0x55d5('0x6e')][_0x55d5('0x42')]['differ'][_0x55d5('0x30')](),_0x3aa14c=Array[_0x55d5('0x92')](_0x1297a7[_0x55d5('0x6e')]['document'][_0x55d5('0x26')][_0x55d5('0x27')]())[_0x55d5('0x5')](({name:_0x1242ab,data:_0x10f602})=>{const {group:_0x255c6a,subType:_0x3b44d1,authorId:_0x22f425}=_0x28e8f2['_splitMarkerName'](_0x1242ab);return _0x55d5('0x19')==_0x255c6a&&_0x55d5('0x9a')==_0x3b44d1&&_0x22f425==_0xadaa4e['id']&&!_0x10f602[_0x55d5('0x3a')];});for(const _0x118754 of _0x336c11){if(_0x55d5('0x73')!=_0x118754[_0x55d5('0x4')]||'tableCellSuggestion'!=_0x118754[_0x55d5('0x43')]||0x1!=_0x118754[_0x55d5('0x90')])continue;const _0x5ccc93=_0x16d9e9[_0x55d5('0x24')](_0x118754['position'],_0x118754[_0x55d5('0x58')][_0x55d5('0x8f')](0x1));if(!_0x3aa14c[_0x55d5('0x48')](({data:_0x241839})=>_0x241839[_0x55d5('0x17')]['isEqual'](_0x5ccc93)))for(const {name:_0x3e07c3,data:_0x31a5e9}of _0x3aa14c)if(_0x5ccc93[_0x55d5('0x95')](_0x31a5e9[_0x55d5('0x17')])){_0x16d9e9['updateMarker'](_0x3e07c3,{'range':_0x5ccc93}),_0x2f6db7=!0x0;break;}}return _0x2f6db7;}),_0x1297a7['model'][_0x55d5('0x42')][_0x55d5('0x2f')](_0x586cff=>{let _0x35fa3d=!0x1;const _0x10ed07=_0x1297a7[_0x55d5('0x2a')][_0x55d5('0x7')](_0x55d5('0x75'))['me'],_0x1cdec0=_0x28e8f2['getSuggestions']()[_0x55d5('0x5')](_0x29b98a=>_0x29b98a[_0x55d5('0x12')]&&_0x29b98a[_0x55d5('0x18')]==_0x10ed07),_0x4a96d7=new Set(),_0x1be6d9=new Set();for(const _0x3b47e5 of _0x1cdec0)if('tablePaste'==_0x3b47e5[_0x55d5('0xd')])for(const _0x11d17c of _0x3b47e5[_0x55d5('0x78')]()){const _0x3a2d6a=_0x11d17c['getRange']()[_0x55d5('0x21')]();if(_0x3a2d6a){if(_0x3a2d6a['is'](_0x55d5('0x5f'),'tableCellSuggestion')&&ce(_0x3a2d6a)){_0x3b47e5['removeMarker'](_0x11d17c['name']),_0x4a96d7[_0x55d5('0x3')](_0x3a2d6a),_0x35fa3d=!0x0;const _0x10efa9=_0x3a2d6a[_0x55d5('0x72')],_0x3ce23c=_0x3a2d6a['previousSibling'],_0x2d5d0c=_0x10efa9&&_0x10efa9['is']('element','tableCellSuggestion'),_0x4bf0bd=_0x3ce23c&&_0x3ce23c['is'](_0x55d5('0x5f'),_0x55d5('0x84'));_0x2d5d0c&&!_0x4a96d7['has'](_0x10efa9)&&_0x1be6d9[_0x55d5('0x3')](_0x10efa9),_0x4bf0bd&&!_0x4a96d7[_0x55d5('0x15')](_0x3ce23c)&&_0x1be6d9[_0x55d5('0x3')](_0x3ce23c);}else _0x3a2d6a['is'](_0x55d5('0x5f'),_0x55d5('0x6c'))&&_0x3a2d6a[_0x55d5('0x88')]&&(_0x3b47e5[_0x55d5('0x1a')](_0x11d17c[_0x55d5('0x43')]),_0x35fa3d=!0x0);}}else{if('tablePasteCell'==_0x3b47e5[_0x55d5('0xd')]){if(!_0x3b47e5[_0x55d5('0x8d')]||!_0x3b47e5[_0x55d5('0x8d')][_0x55d5('0x2e')])continue;const _0x4b5df1=_0x3b47e5[_0x55d5('0x8d')][_0x55d5('0x53')];if(_0x4b5df1&&Object['keys'](_0x4b5df1)['length'])continue;const _0x42865e=_0x3b47e5['attributes']['tablePasteChainId'];let _0x5dcb89=!0x0,_0x45da5a=!0x0;for(const _0x287a87 of _0x1cdec0)if(_0x287a87['subType']&&_0x287a87[_0x55d5('0xd')]['startsWith'](_0x55d5('0x9a'))){if(!_0x287a87[_0x55d5('0x8d')][_0x55d5('0x2e')]){_0x45da5a=!0x1;break;}if(_0x287a87['id']!=_0x3b47e5['id']&&_0x287a87[_0x55d5('0x8d')][_0x55d5('0x2e')]==_0x42865e){_0x5dcb89=!0x1;break;}}_0x45da5a&&_0x5dcb89&&(_0x3b47e5[_0x55d5('0x28')](),_0x35fa3d=!0x0);}}for(const _0x31cc06 of _0x4a96d7)_0x586cff['remove'](_0x31cc06);for(const _0x201904 of _0x1be6d9)_0x586cff[_0x55d5('0x5d')](_0x201904);return _0x35fa3d;}),_0x1297a7['conversion'][_0x55d5('0x38')](_0x55d5('0x4e'))[_0x55d5('0x62')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x9852f1,_0x3a73b9)=>_0xd6468f(_0x9852f1),'converterPriority':_0x55d5('0x3d')}),_0x1297a7['conversion'][_0x55d5('0x38')]('dataDowncast')[_0x55d5('0x62')]({'model':_0x55d5('0x6f'),'view':(_0x202bec,_0x261773)=>_0x261773[_0x55d5('0x8b')][_0x55d5('0x49')]?_0xd6468f(_0x202bec,!0x1):null,'converterPriority':'high'});const _0x2ce9cf=_0x1297a7[_0x55d5('0x54')][_0x55d5('0x16')];this[_0x55d5('0x66')](_0x2ce9cf[_0x55d5('0x42')],_0x55d5('0x8a'),(_0x19be88,_0x54b7ac)=>{const _0x54056a=[];for(const _0x5487e8 of _0x2ce9cf[_0x55d5('0x80')](_0x54b7ac['content'])[_0x55d5('0x22')]())_0x5487e8['is']('element',_0x55d5('0x40'))&&_0x54056a[_0x55d5('0x37')](_0x5487e8);_0x2ce9cf[_0x55d5('0x56')](_0x5aa57d=>{for(const _0x2691c0 of _0x54056a)_0x5aa57d['move'](_0x5aa57d[_0x55d5('0x80')](_0x2691c0),_0x5aa57d['createPositionBefore'](_0x2691c0)),_0x5aa57d[_0x55d5('0x83')](_0x2691c0);});});}}function ce(_0x389333){if(_0x389333['isEmpty'])return!0x0;const _0x390d47=_0x389333[_0x55d5('0x7c')](0x0);return _0x390d47['is'](_0x55d5('0x5f'),'paragraph')&&_0x390d47['isEmpty'];}function fe(_0x489bc8,_0x287095={},_0x4f27e8){for(const {isAnchor:_0x389923,cellHeight:_0x46e769,cellWidth:_0x563b43}of _0x4f27e8[_0x55d5('0x6b')](_0x489bc8,{'includeAllSlots':!0x0,..._0x287095}))if(!_0x389923||0x1!=_0x46e769||0x1!=_0x563b43)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54e7=['registerCustomCallback','resizeTable','selection','columnWidths','handleResizeTableWidthCommand','editor','registerDescriptionCallback','TrackChangesEditing','model','_suggestionFactory','plugins','getSuggestionCallback','*Format:*\x20resize\x20table','getAttribute','has','getTableColumnsWidths','change','handleSuggestionDescription','afterInit','commandParams','enableCommand','document','getSuggestions','get','getContainedElement','getSelectedElement','TableColumnResizeEditing','formatBlock','tableWidth','resizeColumnWidths','markBlockFormat','data','bind','subType','resizeTableWidth','discard','getColumnGroupElement'];(function(_0x405035,_0x54e710){const _0x5e3520=function(_0x2d8d48){while(--_0x2d8d48){_0x405035['push'](_0x405035['shift']());}};_0x5e3520(++_0x54e710);}(_0x54e7,0x172));const _0x5e35=function(_0x405035,_0x54e710){_0x405035=_0x405035-0x0;let _0x5e3520=_0x54e7[_0x405035];return _0x5e3520;};import{Plugin as _0x838046}from'ckeditor5/src/core';import{getTranslation as _0x3a66f8}from'../utils/common-translations';export default class wt extends _0x838046{[_0x5e35('0x12')](){if(!this['editor'][_0x5e35('0xa')][_0x5e35('0xe')](_0x5e35('0x1a')))return;const _0x1be7e9=this[_0x5e35('0x5')][_0x5e35('0xa')][_0x5e35('0x17')](_0x5e35('0x7'));_0x1be7e9[_0x5e35('0x14')](_0x5e35('0x22'),this[_0x5e35('0x4')][_0x5e35('0x20')](this)),_0x1be7e9[_0x5e35('0x14')](_0x5e35('0x1d'),this[_0x5e35('0x4')][_0x5e35('0x20')](this)),_0x1be7e9[_0x5e35('0x9')][_0x5e35('0x0')](_0x5e35('0x1b'),_0x5e35('0x1'),'accept',_0x1be7e9[_0x5e35('0x9')][_0x5e35('0xb')]('formatBlock',null,_0x5e35('0x23'))),_0x1be7e9[_0x5e35('0x9')][_0x5e35('0x0')](_0x5e35('0x1b'),_0x5e35('0x1'),_0x5e35('0x23'),_0x1be7e9['_suggestionFactory'][_0x5e35('0xb')](_0x5e35('0x1b'),null,'accept')),_0x1be7e9['_descriptionFactory'][_0x5e35('0x6')](this['handleSuggestionDescription']['bind'](this));}[_0x5e35('0x4')](_0x382aba,_0x425083){const _0x3460cd=this[_0x5e35('0x5')][_0x5e35('0xa')][_0x5e35('0x17')]('TrackChangesEditing'),_0x52aa34=this[_0x5e35('0x5')][_0x5e35('0xa')][_0x5e35('0x17')]('TableColumnResizeEditing'),_0x4a390b=_0x425083['table']||this[_0x5e35('0x5')][_0x5e35('0x8')][_0x5e35('0x15')][_0x5e35('0x2')][_0x5e35('0x19')]();this[_0x5e35('0x5')][_0x5e35('0x8')][_0x5e35('0x10')](()=>{const _0x234a80=_0x52aa34[_0x5e35('0x24')](_0x4a390b);let _0x17c438=_0x234a80?_0x52aa34[_0x5e35('0xf')](_0x234a80):null,_0x5ee53b=_0x4a390b[_0x5e35('0xd')](_0x5e35('0x1c'))||null;const _0x201415=_0x425083[_0x5e35('0x1c')]||_0x5ee53b,_0x5ac243=_0x425083[_0x5e35('0x3')]||_0x17c438,_0x4455bb=this[_0x5e35('0x5')][_0x5e35('0xa')]['get']('Users')['me'];for(const _0x54b2cd of _0x3460cd[_0x5e35('0x16')]()){const _0x3f4798=_0x54b2cd[_0x5e35('0x18')]();if(_0x5e35('0x1')===_0x54b2cd[_0x5e35('0x21')]&&_0x3f4798===_0x4a390b){_0x54b2cd['author']!==_0x4455bb&&_0x54b2cd[_0x5e35('0x23')]();const _0x35e0c3=_0x54b2cd[_0x5e35('0x1f')][_0x5e35('0x13')];_0x5ee53b=_0x35e0c3[0x0][_0x5e35('0x1c')],_0x17c438=_0x35e0c3[0x0][_0x5e35('0x3')];break;}}_0x382aba({'table':_0x4a390b,'tableWidth':_0x201415,'columnWidths':_0x5ac243}),_0x3460cd[_0x5e35('0x1e')](_0x4a390b,{'commandName':_0x5e35('0x22'),'commandParams':[{'tableWidth':_0x5ee53b,'columnWidths':_0x17c438}],'formatGroupId':'resizeTable'},[],_0x5e35('0x1'));});}[_0x5e35('0x11')](_0x2479f2){const {data:_0x181d05}=_0x2479f2;if(_0x181d05&&_0x5e35('0x1')===_0x181d05['formatGroupId']){const _0x4cc6a7=_0x5e35('0xc');return{'type':'format','content':_0x3a66f8(this[_0x5e35('0x5')]['locale'],_0x4cc6a7)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3132=['editing','removeAttribute','createPositionBefore','getColumnIndexes','markerRange','start','showSuggestionHighlights','setTableColumnHeader','data','TableEditing','getSuggestion','FORMAT_HEADER_ROW','index','consumable','name','findAncestor','change','getAttribute','addMarker:suggestion','ck-suggestion-marker-','model','getChild','commandName','formatBlock','getCellLocation','afterInit','getSelectionAffectedTableCells','_suggestionFactory','end','requires','locale','setTableRowHeader','commands','stop','item','removeClass','addClass','childCount','ck-suggestion-marker--active','data-suggestion','_splitMarkerName','headingRows','TableUtils','FORMAT_REGULAR_COLUMN','toViewElement','createPositionAfter','activeMarkers','TrackChangesEditing','document','get','bindElementToMarker','consume','unbindElementFromMarkerName','writer','selection','mapper','from','cell','_acceptFormatSuggestionCallbackFactory','markerName','downcastDispatcher','registerCustomCallback','highest','forceValue','value','last','format','FORMAT_HEADER_COLUMN','parent','commandParams','nodeBefore','first','editor','_descriptionFactory','enableCommand','includes','options','markBlockFormat','markerNameToElements','plugins','createRange','nodeAfter','createTableWalker','*Format:*\x20%0','accept'];(function(_0x583c56,_0x3132a5){const _0x1f6f8b=function(_0x4343e5){while(--_0x4343e5){_0x583c56['push'](_0x583c56['shift']());}};_0x1f6f8b(++_0x3132a5);}(_0x3132,0x1d7));const _0x1f6f=function(_0x583c56,_0x3132a5){_0x583c56=_0x583c56-0x0;let _0x1f6f8b=_0x3132[_0x583c56];return _0x1f6f8b;};import{Plugin as _0x24e192}from'ckeditor5/src/core';import _0x439b83 from'./table';import{getTranslation as _0x365a08}from'../utils/common-translations';export default class pt extends _0x24e192{static get[_0x1f6f('0x44')](){return[_0x439b83];}[_0x1f6f('0x40')](){const _0x52429f=this[_0x1f6f('0x1a')];if(!_0x52429f[_0x1f6f('0x21')]['has'](_0x1f6f('0x30')))return;const _0x520b0f=_0x52429f[_0x1f6f('0x45')],_0x4f0b9b=_0x52429f['plugins']['get'](_0x1f6f('0x1')),_0x4b195d=_0x52429f['plugins'][_0x1f6f('0x3')](_0x1f6f('0x51')),_0x48f4ed=_0x52429f[_0x1f6f('0x21')][_0x1f6f('0x3')](_0x439b83);function _0x5f588b({showActiveMarker:_0x18dd47=!0x0,setDataAttribute:_0x476333=!0x0}={}){return(_0x2e44cf,_0x1ec14a,_0x143e67)=>{const {type:_0x2cb368,id:_0x47e7d5}=_0x4f0b9b['_splitMarkerName'](_0x1ec14a[_0x1f6f('0xd')]),_0x380d3e=_0x4f0b9b[_0x1f6f('0x31')](_0x47e7d5);if(!_0x380d3e['data']||_0x1f6f('0x2e')!=_0x380d3e[_0x1f6f('0x2f')]['commandName'])return;if(_0x1ec14a[_0x1f6f('0x49')])return void _0x2e44cf[_0x1f6f('0x48')]();if(!_0x143e67[_0x1f6f('0x34')][_0x1f6f('0x5')](_0x1ec14a[_0x1f6f('0x2b')],_0x2e44cf[_0x1f6f('0x35')]))return;const _0x4a6268=_0x1ec14a[_0x1f6f('0x2b')][_0x1f6f('0x2c')][_0x1f6f('0x23')],_0x564181=_0x1ec14a[_0x1f6f('0x2b')][_0x1f6f('0x43')][_0x1f6f('0x18')],_0x6efe1=_0x4a6268[_0x1f6f('0x16')][_0x1f6f('0x16')],{column:_0x2dd45b}=_0x4b195d[_0x1f6f('0x3f')](_0x4a6268),{column:_0x610125}=_0x4b195d['getCellLocation'](_0x564181);for(let _0x58bbf2=_0x2dd45b;_0x58bbf2<=_0x610125;_0x58bbf2++){const _0x24c2c4=_0x4b195d[_0x1f6f('0x24')](_0x6efe1,{'column':_0x58bbf2,'includeAllSlots':!0x1});for(const _0x1142b0 of _0x24c2c4){const _0x5729e8=_0x1142b0[_0x1f6f('0xb')],_0x3dfab9=_0x143e67[_0x1f6f('0x9')][_0x1f6f('0x53')](_0x5729e8);_0x143e67[_0x1f6f('0x7')][_0x1f6f('0x4b')]('ck-suggestion-marker-'+_0x2cb368,_0x3dfab9),_0x476333&&_0x143e67[_0x1f6f('0x7')]['setAttribute'](_0x1f6f('0x4e'),_0x47e7d5,_0x3dfab9),_0x143e67[_0x1f6f('0x9')][_0x1f6f('0x4')](_0x3dfab9,_0x1ec14a[_0x1f6f('0xd')]),_0x18dd47&&(_0x4f0b9b[_0x1f6f('0x0')][_0x1f6f('0x1d')](_0x1ec14a[_0x1f6f('0xd')])?_0x143e67[_0x1f6f('0x7')][_0x1f6f('0x4b')](_0x1f6f('0x4d'),_0x3dfab9):_0x143e67[_0x1f6f('0x7')]['removeClass']('ck-suggestion-marker--active',_0x3dfab9));}}};}_0x4f0b9b[_0x1f6f('0x1c')](_0x1f6f('0x46'),(_0x19809c,_0x42503c)=>{const _0x4eeb5f=_0x4b195d[_0x1f6f('0x41')](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x2')][_0x1f6f('0x8')]),_0x1ca2c5=_0x4b195d['getRowIndexes'](_0x4eeb5f),_0x19b760=_0x4eeb5f[0x0][_0x1f6f('0x36')]('table'),_0x546e19=_0x19b760[_0x1f6f('0x38')](_0x1f6f('0x50'))||0x0,_0x4aa9da=_0x42503c&&null!==_0x42503c[_0x1f6f('0x11')]?_0x42503c[_0x1f6f('0x11')]:!_0x52429f[_0x1f6f('0x47')][_0x1f6f('0x3')](_0x1f6f('0x46'))[_0x1f6f('0x12')],_0x4bd9e8=_0x4aa9da?_0x1ca2c5[_0x1f6f('0x13')]:_0x1ca2c5[_0x1f6f('0x19')],_0x39f757=_0x19b760[_0x1f6f('0x3c')](_0x4bd9e8);let _0x5e31e5;if(_0x4aa9da){const _0x535a1c=_0x19b760[_0x1f6f('0x3c')](_0x546e19);if(_0x39f757[_0x1f6f('0x33')]<_0x535a1c[_0x1f6f('0x33')])return;_0x5e31e5=_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x22')](_0x52429f[_0x1f6f('0x3b')]['createPositionBefore'](_0x535a1c[_0x1f6f('0x3c')](0x0)),_0x52429f['model']['createPositionAfter'](_0x39f757[_0x1f6f('0x3c')](_0x39f757[_0x1f6f('0x4c')]-0x1)));}else{const _0x17884a=_0x19b760[_0x1f6f('0x3c')](_0x546e19-0x1);if(!_0x17884a)return;_0x5e31e5=_0x52429f[_0x1f6f('0x3b')]['createRange'](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x29')](_0x39f757[_0x1f6f('0x3c')](0x0)),_0x52429f[_0x1f6f('0x3b')]['createPositionAfter'](_0x17884a[_0x1f6f('0x3c')](_0x17884a[_0x1f6f('0x4c')]-0x1)));}_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x37')](()=>{_0x4f0b9b['markBlockFormat'](_0x5e31e5,{'commandName':_0x1f6f('0x46'),'commandParams':[{'forceValue':_0x4aa9da}]},[],'setTableRowHeader');});}),_0x4f0b9b[_0x1f6f('0x1c')](_0x1f6f('0x2e'),(_0x1221a0,_0x4c5b87)=>{const _0x47ee10=_0x52429f[_0x1f6f('0x21')][_0x1f6f('0x3')](_0x1f6f('0x51')),_0x1269b9=_0x47ee10['getSelectionAffectedTableCells'](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x2')][_0x1f6f('0x8')]),_0x4d38b6=_0x47ee10[_0x1f6f('0x2a')](_0x1269b9),_0x3a1d25=_0x1269b9[0x0][_0x1f6f('0x36')]('table'),_0x30e3c0=_0x3a1d25['getAttribute']('headingColumns')||0x0,_0x42e7a1=_0x4c5b87&&null!==_0x4c5b87['forceValue']?_0x4c5b87[_0x1f6f('0x11')]:!_0x52429f['commands'][_0x1f6f('0x3')]('setTableColumnHeader')['value'];let _0x39cc63;const _0x2abf0c=_0x3a1d25[_0x1f6f('0x3c')](0x0),_0x3a56b7=_0x42e7a1?_0x4d38b6[_0x1f6f('0x13')]:_0x4d38b6['first'],_0x30ca9b=_0x47ee10[_0x1f6f('0x24')](_0x3a1d25,{'startRow':0x0,'column':_0x3a56b7,'includeAllSlots':!0x1}),_0x374322=Array[_0x1f6f('0xa')](_0x30ca9b)[0x0][_0x1f6f('0xb')];if(_0x42e7a1){const _0x9c9192=_0x2abf0c['getChild'](_0x30e3c0);if(_0x374322['isBefore'](_0x9c9192))return;_0x39cc63=_0x52429f[_0x1f6f('0x3b')]['createRange'](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x29')](_0x9c9192),_0x52429f[_0x1f6f('0x3b')]['createPositionAfter'](_0x374322));}else{const _0x43b67d=_0x2abf0c[_0x1f6f('0x3c')](_0x30e3c0-0x1);if(!_0x43b67d)return;_0x39cc63=_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x22')](_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x29')](_0x374322),_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x54')](_0x43b67d));}_0x52429f[_0x1f6f('0x3b')][_0x1f6f('0x37')](()=>{_0x4f0b9b[_0x1f6f('0x1f')](_0x39cc63,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x42e7a1}]},[],_0x1f6f('0x2e'));});}),_0x52429f['editing'][_0x1f6f('0xe')]['on']('addMarker:suggestion',_0x5f588b(),{'priority':_0x1f6f('0x10')}),_0x52429f[_0x1f6f('0x2f')][_0x1f6f('0xe')]['on'](_0x1f6f('0x39'),(_0x159834,_0x37b160,_0x2d2288)=>{_0x2d2288[_0x1f6f('0x1e')][_0x1f6f('0x2d')]&&_0x5f588b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x159834,_0x37b160,_0x2d2288);},{'priority':_0x1f6f('0x10')}),_0x52429f[_0x1f6f('0x27')][_0x1f6f('0xe')]['on']('removeMarker:suggestion',(_0x4a7f0e,_0x4c24ef,_0xc09efb)=>{const {type:_0x514489,id:_0x1deb46}=_0x4f0b9b[_0x1f6f('0x4f')](_0x4c24ef[_0x1f6f('0xd')]),_0x5e4028=_0x4f0b9b['getSuggestion'](_0x1deb46);if(!_0x5e4028[_0x1f6f('0x2f')]||'setTableColumnHeader'!=_0x5e4028[_0x1f6f('0x2f')]['commandName'])return;const _0x4c4832=_0xc09efb['mapper'][_0x1f6f('0x20')](_0x4c24ef['markerName']);if(_0x4c4832)for(const _0x563444 of _0x4c4832)_0xc09efb[_0x1f6f('0x7')][_0x1f6f('0x4a')](_0x1f6f('0x3a')+_0x514489,_0x563444),_0xc09efb[_0x1f6f('0x7')][_0x1f6f('0x4a')](_0x1f6f('0x4d'),_0x563444),_0xc09efb[_0x1f6f('0x7')][_0x1f6f('0x28')](_0x1f6f('0x4e'),_0x563444),_0xc09efb['mapper'][_0x1f6f('0x6')](_0x563444,_0x4c24ef[_0x1f6f('0xd')]);},{'priority':_0x1f6f('0x10')}),_0x4f0b9b[_0x1f6f('0x1b')]['registerDescriptionCallback'](_0x512d65=>{const {data:_0x41d0b1}=_0x512d65;if(_0x41d0b1){if('setTableRowHeader'==_0x41d0b1[_0x1f6f('0x3d')]){const _0x2b254f=_0x41d0b1[_0x1f6f('0x17')][0x0][_0x1f6f('0x11')];return _0xad887e(_0x365a08(_0x520b0f,_0x2b254f?_0x1f6f('0x32'):'FORMAT_REGULAR_ROW'));}if(_0x1f6f('0x2e')==_0x41d0b1[_0x1f6f('0x3d')]){const _0x368c5f=_0x41d0b1[_0x1f6f('0x17')][0x0]['forceValue'];return _0xad887e(_0x365a08(_0x520b0f,_0x368c5f?_0x1f6f('0x15'):_0x1f6f('0x52')));}}function _0xad887e(_0x27087f){return{'type':_0x1f6f('0x14'),'content':_0x365a08(_0x520b0f,_0x1f6f('0x25'),_0x27087f)};}});const _0x3d059e=_0x48f4ed[_0x1f6f('0xc')]();_0x4f0b9b[_0x1f6f('0x42')]['registerCustomCallback']('formatBlock',_0x1f6f('0x46'),_0x1f6f('0x26'),_0x3d059e),_0x4f0b9b['_suggestionFactory'][_0x1f6f('0xf')](_0x1f6f('0x3e'),_0x1f6f('0x2e'),_0x1f6f('0x26'),_0x3d059e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4747=['getRanges','_suggestionFactory','forceDefaultExecution','cell','splitTableCellHorizontally','$graveyard','commandName','_isForcedDefaultExecutionBlock','afterInit','getCellLocation','getSelectionAffectedTableCells','createTableWalker','getAncestors','find','element','_areSelectedCellsMergable','getFirstPosition','commands','containsRange','accept','markMultiRangeBlockFormat','mergeTableCellDown','*Merge\x20cells*','mergeTableCellLeft','value','filter','return','rootName','fromRange','table','from','selection','add','mergeTableCellRight','trackChanges','_tablePostFixingSubtypes','execute','push','createRangeOn','formatBlock','detach','get','TrackChangesEditing','refresh','requires','document','isInContent','getSuggestions','size','length','TableEditing','enableCommand','_descriptionFactory','plugins','mergeTableCellUp','type','isEnabled','format','mergeTableCells','markBlockFormat','locale','TableUtils','editor','registerDescriptionCallback','model','low','horizontally','author','_areMergableCells','subType','registerCustomCallback','highest','has','change','tableCell','map','splitTableCellVertically','stop','_acceptFormatSuggestionCallbackFactory'];(function(_0x4f27b3,_0x474763){const _0x3dd97d=function(_0x420112){while(--_0x420112){_0x4f27b3['push'](_0x4f27b3['shift']());}};_0x3dd97d(++_0x474763);}(_0x4747,0x1b0));const _0x3dd9=function(_0x4f27b3,_0x474763){_0x4f27b3=_0x4f27b3-0x0;let _0x3dd97d=_0x4747[_0x4f27b3];return _0x3dd97d;};import{Plugin as _0x228159}from'ckeditor5/src/core';import _0x3bbed6 from'./table';import{LiveRange as _0x83d1f9}from'ckeditor5/src/engine';import{getTranslation as _0x396791}from'../utils/common-translations';export default class dt extends _0x228159{static get[_0x3dd9('0x7')](){return[_0x3bbed6];}[_0x3dd9('0x32')](){const _0x508b18=this['editor'],_0x35a947=_0x508b18[_0x3dd9('0x1b')]['document'][_0x3dd9('0x49')],_0xf5fe57=_0x508b18[_0x3dd9('0x17')];if(!_0x508b18[_0x3dd9('0x10')][_0x3dd9('0x23')](_0x3dd9('0xd')))return;const _0x289ac6=_0x508b18[_0x3dd9('0x10')][_0x3dd9('0x4')](_0x3dd9('0x5')),_0x1584a1=_0x508b18['plugins']['get'](_0x3dd9('0x18')),_0x1814d9=_0x508b18[_0x3dd9('0x10')][_0x3dd9('0x4')](_0x3bbed6);_0x1814d9[_0x3dd9('0x4d')][_0x3dd9('0x0')](_0x3dd9('0x15')),_0x289ac6['enableCommand']('mergeTableCells',()=>{const _0x42efc8=_0x1584a1[_0x3dd9('0x34')](_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x8')][_0x3dd9('0x49')]);_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x24')](()=>{_0x289ac6[_0x3dd9('0x3e')](_0x42efc8,{'commandName':_0x3dd9('0x15'),'commandParams':[]},[],_0x3dd9('0x15'));});}),_0x508b18[_0x3dd9('0x3b')]['get'](_0x3dd9('0x15'))['on'](_0x3dd9('0x4e'),(_0xb24a47,_0x55987c)=>{_0x508b18['commands'][_0x3dd9('0x4')](_0x3dd9('0x4c'))[_0x3dd9('0x42')]&&(_0x55987c['length']>0x0&&_0x55987c[_0x55987c[_0x3dd9('0xc')]-0x1]&&_0x55987c[_0x55987c['length']-0x1][_0x3dd9('0x2c')]||_0x289ac6[_0x3dd9('0x31')]||this[_0x3dd9('0x39')]()||_0xb24a47[_0x3dd9('0x28')]());},{'priority':_0x3dd9('0x22')});for(const _0x5948a3 of[_0x3dd9('0x11'),_0x3dd9('0x4b'),_0x3dd9('0x3f'),_0x3dd9('0x41')]){const _0x48c749=_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x5948a3);_0x289ac6[_0x3dd9('0xe')](_0x5948a3,()=>{const _0x2d1824=_0x508b18['model'][_0x3dd9('0x8')][_0x3dd9('0x49')][_0x3dd9('0x3a')]()[_0x3dd9('0x36')]()['find'](_0x342542=>_0x342542['is'](_0x3dd9('0x38'),_0x3dd9('0x25'))),_0xb7d53b=_0x48c749[_0x3dd9('0x42')];_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x24')](()=>{_0x289ac6[_0x3dd9('0x3e')]([_0x2d1824,_0xb7d53b],{'commandName':_0x3dd9('0x15'),'commandParams':[]},[],_0x3dd9('0x15'));});});}for(const _0x58284 of[_0x3dd9('0x27'),'splitTableCellHorizontally']){const _0xa43472=_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x58284);_0x289ac6['enableCommand'](_0x58284,()=>{const _0x341e5c=_0x1584a1['getSelectionAffectedTableCells'](_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x8')]['selection'])[0x0],_0x4c6835=_0x341e5c['findAncestor'](_0x3dd9('0x47')),{column:_0x25317a,row:_0x4f0a71}=_0x1584a1[_0x3dd9('0x33')](_0x341e5c);let _0x2398d5=[];if(_0x3dd9('0x1d')==_0xa43472['direction']){const _0x12dadf=_0x1584a1[_0x3dd9('0x35')](_0x4c6835,{'startRow':_0x4f0a71,'endRow':_0x4f0a71,'includeAllSlots':!0x0});_0x2398d5=Array[_0x3dd9('0x48')](_0x12dadf)['map'](_0x1c4670=>_0x1c4670['cell']);}else{const _0x2ad345=_0x1584a1[_0x3dd9('0x35')](_0x4c6835,{'column':_0x25317a,'includeAllSlots':!0x0});_0x2398d5=Array[_0x3dd9('0x48')](_0x2ad345)['map'](_0x552efd=>_0x552efd[_0x3dd9('0x2d')]);}_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x24')](_0x34b82e=>{_0x289ac6[_0x3dd9('0x16')](_0x34b82e[_0x3dd9('0x1')](_0x341e5c),{'commandName':_0x58284,'commandParams':[]},_0x2398d5,_0x58284);});});}_0x289ac6[_0x3dd9('0xf')][_0x3dd9('0x1a')](_0xa716d1=>{const {data:_0x4908e8}=_0xa716d1;if(_0x4908e8)return'mergeTableCells'==_0x4908e8[_0x3dd9('0x30')]?{'type':_0x3dd9('0x14'),'content':_0x396791(_0xf5fe57,_0x3dd9('0x40'))}:void 0x0;}),_0x289ac6[_0x3dd9('0xf')][_0x3dd9('0x1a')](_0x57ea6c=>{const {data:_0x3fcdfd}=_0x57ea6c;if(_0x3fcdfd)return _0x3dd9('0x27')==_0x3fcdfd[_0x3dd9('0x30')]?{'type':_0x3dd9('0x14'),'content':_0x396791(_0xf5fe57,'*Split\x20cell:*\x20vertically')}:_0x3dd9('0x2e')==_0x3fcdfd[_0x3dd9('0x30')]?{'type':_0x3dd9('0x14'),'content':_0x396791(_0xf5fe57,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x3cf79b=_0x1814d9[_0x3dd9('0x29')]();for(const _0x2aa85d of[_0x3dd9('0x11'),_0x3dd9('0x4b'),_0x3dd9('0x3f'),_0x3dd9('0x41')])_0x289ac6[_0x3dd9('0x2b')][_0x3dd9('0x21')](_0x3dd9('0x2'),_0x2aa85d,'accept',_0x3cf79b);for(const _0x315607 of[_0x3dd9('0x27'),'splitTableCellHorizontally'])_0x289ac6['_suggestionFactory']['registerCustomCallback'](_0x3dd9('0x2'),_0x315607,_0x3dd9('0x3d'),_0x3cf79b);_0x289ac6[_0x3dd9('0x2b')]['registerCustomCallback'](_0x3dd9('0x2'),_0x3dd9('0x15'),_0x3dd9('0x3d'),_0x58bf6c=>{_0x508b18[_0x3dd9('0x1b')]['change'](_0x5d27f3=>{const _0x4a6905=Array[_0x3dd9('0x48')](_0x35a947[_0x3dd9('0x2a')]())[_0x3dd9('0x26')](_0x85e349=>_0x83d1f9[_0x3dd9('0x46')](_0x85e349));_0x5d27f3['setSelection'](_0x58bf6c),_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')]('mergeTableCells')[_0x3dd9('0x6')](),_0x508b18['execute'](_0x3dd9('0x15'),{'forceDefaultExecution':!0x0});const _0x4c6567=_0x4a6905[_0x3dd9('0x43')](_0xb5d1da=>_0x3dd9('0x2f')!=_0xb5d1da['root'][_0x3dd9('0x45')]);_0x4c6567['length']>0x0&&_0x5d27f3['setSelection'](_0x4c6567);for(const _0x43fbbd of _0x4a6905)_0x43fbbd[_0x3dd9('0x3')]();});});for(const _0x335748 of[_0x3dd9('0x11'),'mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x236fcf=_0x508b18[_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x335748);_0x236fcf['on']('set:isEnabled',(_0x3706ac,_0x50fcc2,_0x3448d0)=>{if(_0x3448d0){const _0x219c8e=_0x508b18[_0x3dd9('0x1b')][_0x3dd9('0x8')][_0x3dd9('0x49')][_0x3dd9('0x3a')]()['getAncestors']()[_0x3dd9('0x37')](_0x3d0e55=>_0x3d0e55['is'](_0x3dd9('0x38'),_0x3dd9('0x25')));this[_0x3dd9('0x1f')](_0x236fcf[_0x3dd9('0x42')],_0x219c8e)||(_0x3706ac[_0x3dd9('0x44')]=!0x1,_0x3706ac[_0x3dd9('0x28')]());}},{'priority':_0x3dd9('0x1c')});}}[_0x3dd9('0x39')](){const _0x22d0c2=this[_0x3dd9('0x19')][_0x3dd9('0x3b')][_0x3dd9('0x4')](_0x3dd9('0x15')),_0x5ed4bb=this['editor'][_0x3dd9('0x10')][_0x3dd9('0x4')](_0x3dd9('0x18'));if(!_0x22d0c2[_0x3dd9('0x13')])return!0x1;const _0x51a384=_0x5ed4bb[_0x3dd9('0x34')](this[_0x3dd9('0x19')][_0x3dd9('0x1b')][_0x3dd9('0x8')][_0x3dd9('0x49')]);for(const _0x281aa8 of _0x51a384)for(const _0xcdef9e of _0x51a384)if(_0x281aa8!=_0xcdef9e&&!this[_0x3dd9('0x1f')](_0x281aa8,_0xcdef9e))return!0x1;return!0x0;}['_areMergableCells'](_0x52f404,_0x28a34f){const _0x18cb91=this[_0x3dd9('0x19')][_0x3dd9('0x10')]['get'](_0x3dd9('0x5')),_0x1c09bd=this[_0x3dd9('0x19')]['model']['createRangeOn'](_0x52f404),_0x451ebc=this[_0x3dd9('0x19')][_0x3dd9('0x1b')][_0x3dd9('0x1')](_0x28a34f),_0x30410b=new Set(),_0x446cb9=new Set();for(const _0x10d1ac of _0x18cb91[_0x3dd9('0xa')]())if(('insertion'==_0x10d1ac['type']||'deletion'==_0x10d1ac['type']||_0x3dd9('0x15')==_0x10d1ac[_0x3dd9('0x20')])&&_0x10d1ac[_0x3dd9('0x9')])for(const _0x1d92b8 of _0x10d1ac[_0x3dd9('0x2a')]())_0x1d92b8[_0x3dd9('0x3c')](_0x1c09bd,!0x0)&&_0x30410b[_0x3dd9('0x4a')](_0x10d1ac[_0x3dd9('0x12')]+':'+_0x10d1ac[_0x3dd9('0x1e')]['id']),_0x1d92b8[_0x3dd9('0x3c')](_0x451ebc,!0x0)&&_0x446cb9['add'](_0x10d1ac['type']+':'+_0x10d1ac['author']['id']);if(_0x30410b[_0x3dd9('0xb')]!=_0x446cb9['size'])return!0x1;for(const _0x1667a4 of _0x30410b)if(!_0x446cb9[_0x3dd9('0x23')](_0x1667a4))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55e8=['insertTableOfContents','afterInit','TrackChangesEditing','get','commands','ELEMENT_TABLE_OF_CONTENTS','registerElementLabel','locale','_descriptionFactory','plugins'];(function(_0x206ae8,_0x55e808){const _0x220add=function(_0x4920fd){while(--_0x4920fd){_0x206ae8['push'](_0x206ae8['shift']());}};_0x220add(++_0x55e808);}(_0x55e8,0xec));const _0x220a=function(_0x206ae8,_0x55e808){_0x206ae8=_0x206ae8-0x0;let _0x220add=_0x55e8[_0x206ae8];return _0x220add;};import{Plugin as _0x520eb1}from'ckeditor5/src/core';import{getTranslation as _0x5a8c49}from'../utils/common-translations';export default class bt extends _0x520eb1{[_0x220a('0x5')](){const _0x24c56c=this['editor'];if(!_0x24c56c[_0x220a('0x8')]['get'](_0x220a('0x4')))return;_0x24c56c[_0x220a('0x3')]['get'](_0x220a('0x6'))['enableCommand'](_0x220a('0x4'));const _0x534f80=_0x24c56c[_0x220a('0x3')][_0x220a('0x7')](_0x220a('0x6')),_0x39db1c=_0x24c56c[_0x220a('0x1')];_0x534f80[_0x220a('0x2')][_0x220a('0x0')]('tableOfContents',_0x51b3d6=>_0x5a8c49(_0x39db1c,_0x220a('0x9'),_0x51b3d6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24d0=['nodeAfter','getSuggestions','accept','afterInit','batch','has','tableCellBorderWidth','tableAlignment','*Format:*\x20change\x20table\x20properties','handleDiscardAction','tableHeight','tableCellPadding','registerCustomCallback','_getSuggestion','subType','getSelectionAffectedTableCells','TrackChangesEditing','start','setAttribute','tableProperties','tableCellHeight','tableCellProperties','getSuggestionCallback','TablePropertiesEditing','findAncestor','tableCellBackgroundColor','tableWidth','getFirstPosition','join','data','*Format:*\x20change\x20table\x20cell\x20properties','format','tableBorderColor','tableBorderWidth','discard','handleSuggestionDescription','commandParams','get','table','TableCellPropertiesEditing','selection','enableCommand','TrackChangesTableProperties','plugins','document','_suggestionFactory','model','tableBackgroundColor','editor','formatBlock','_handlePropertyChange','tableBorderStyle','locale'];(function(_0x231a96,_0x24d0eb){const _0xe30b9b=function(_0x58affc){while(--_0x58affc){_0x231a96['push'](_0x231a96['shift']());}};_0xe30b9b(++_0x24d0eb);}(_0x24d0,0xf7));const _0xe30b=function(_0x231a96,_0x24d0eb){_0x231a96=_0x231a96-0x0;let _0xe30b9b=_0x24d0[_0x231a96];return _0xe30b9b;};import{Plugin as _0x43bcbd}from'ckeditor5/src/core';import{getTranslation as _0x4b85af}from'../utils/common-translations';export default class Ct extends _0x43bcbd{constructor(_0xdb1dc0){super(_0xdb1dc0),this[_0xe30b('0x25')]=[_0xe30b('0x32'),_0xe30b('0x10'),_0xe30b('0x33'),_0xe30b('0x19'),_0xe30b('0x2c'),_0xe30b('0x1c'),_0xe30b('0xc')],this[_0xe30b('0x27')]=['tableCellBorderColor','tableCellBorderStyle',_0xe30b('0x18'),_0xe30b('0x1d'),'tableCellWidth',_0xe30b('0x26'),_0xe30b('0x2b'),'tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return _0xe30b('0x7');}[_0xe30b('0x15')](){const _0x2fbb05=this['editor'][_0xe30b('0x8')][_0xe30b('0x2')](_0xe30b('0x22'));if(this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x17')](_0xe30b('0x29'))){for(const _0x104fac of this['tableProperties'])_0x2fbb05[_0xe30b('0x6')](_0x104fac,(_0x5c298e,_0x307a8c)=>{const _0x26efed=this[_0xe30b('0xd')]['model'][_0xe30b('0x9')][_0xe30b('0x5')][_0xe30b('0x2d')]()[_0xe30b('0x2a')](_0xe30b('0x3'));this['_handlePropertyChange'](_0x104fac,[_0x26efed],this[_0xe30b('0x25')],_0xe30b('0x25'),_0x5c298e,_0x307a8c);});_0x2fbb05[_0xe30b('0xa')]['registerCustomCallback'](_0xe30b('0xe'),_0xe30b('0x25'),_0xe30b('0x14'),_0x2fbb05[_0xe30b('0xa')]['getSuggestionCallback']('formatBlock',null,_0xe30b('0x34'))),_0x2fbb05['_suggestionFactory'][_0xe30b('0x1e')]('formatBlock',_0xe30b('0x25'),_0xe30b('0x34'),(_0x27778b,_0xa63104)=>this[_0xe30b('0x1b')](this['tableProperties'],_0x27778b,_0xa63104)),_0x2fbb05[_0xe30b('0xa')]['registerCustomCallback'](_0xe30b('0xe'),_0xe30b('0x25'),_0xe30b('0x2e'),()=>!0x1);}if(this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x17')](_0xe30b('0x4'))){for(const _0x16258c of this[_0xe30b('0x27')])_0x2fbb05[_0xe30b('0x6')](_0x16258c,(_0x50134d,_0x4cde94)=>{const _0x545ccf=this['editor'][_0xe30b('0x8')][_0xe30b('0x2')]('TableUtils')[_0xe30b('0x21')](this[_0xe30b('0xd')][_0xe30b('0xb')][_0xe30b('0x9')][_0xe30b('0x5')]);this['_handlePropertyChange'](_0x16258c,_0x545ccf,this[_0xe30b('0x27')],_0xe30b('0x27'),_0x50134d,_0x4cde94);});_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x1e')](_0xe30b('0xe'),_0xe30b('0x27'),'accept',_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x28')]('formatBlock',null,'discard')),_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x1e')](_0xe30b('0xe'),_0xe30b('0x27'),_0xe30b('0x34'),(_0x1b32dd,_0x27e7fb)=>this[_0xe30b('0x1b')](this[_0xe30b('0x27')],_0x1b32dd,_0x27e7fb)),_0x2fbb05[_0xe30b('0xa')][_0xe30b('0x1e')](_0xe30b('0xe'),_0xe30b('0x27'),_0xe30b('0x2e'),()=>!0x1);}_0x2fbb05['_descriptionFactory']['registerDescriptionCallback'](_0x3144f6=>this[_0xe30b('0x0')](_0x3144f6));}[_0xe30b('0xf')](_0x12cccd,_0x4de93b,_0x3496a4,_0x2d4319,_0x561b77,_0x17e321){const _0x307e6b=this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x2')](_0xe30b('0x22'));this['editor'][_0xe30b('0xb')]['enqueueChange'](_0x17e321[_0xe30b('0x16')],()=>{for(const _0x53fe32 of _0x4de93b){if(this[_0xe30b('0x1f')](_0x53fe32,_0x2d4319))_0x561b77(_0x17e321);else{const _0x3fd4f5={};for(const _0x106278 of _0x3496a4){const _0x301511=_0x53fe32['getAttribute'](_0x106278);void 0x0!==_0x301511&&(_0x3fd4f5[_0x106278]=_0x301511);}_0x561b77(_0x17e321),_0x307e6b['markBlockFormat'](_0x53fe32,{'commandParams':[_0x3fd4f5]},[],_0x2d4319);}}});}[_0xe30b('0x1b')](_0x3a4d3a,_0x286595,_0x46fd6a){const _0x5ce795=_0x286595[0x0][_0xe30b('0x23')][_0xe30b('0x12')],_0x3387fe=_0x46fd6a[_0xe30b('0x1')][0x0];this[_0xe30b('0xd')][_0xe30b('0xb')]['change'](_0x4a6e41=>{for(const _0x7fcbd2 of _0x3a4d3a)void 0x0!==_0x3387fe[_0x7fcbd2]?_0x4a6e41[_0xe30b('0x24')](_0x7fcbd2,_0x3387fe[_0x7fcbd2],_0x5ce795):_0x4a6e41['removeAttribute'](_0x7fcbd2,_0x5ce795);});}[_0xe30b('0x0')](_0x35a350){if(_0x35a350[_0xe30b('0x2f')])switch(_0x35a350[_0xe30b('0x20')]){case'tableProperties':return{'type':_0xe30b('0x31'),'content':_0x4b85af(this[_0xe30b('0xd')][_0xe30b('0x11')],_0xe30b('0x1a'))};case _0xe30b('0x27'):return{'type':_0xe30b('0x31'),'content':_0x4b85af(this[_0xe30b('0xd')][_0xe30b('0x11')],_0xe30b('0x30'))};}}[_0xe30b('0x1f')](_0x4386dc,_0x3dbe81){const _0x7c515d=this[_0xe30b('0xd')][_0xe30b('0x8')][_0xe30b('0x2')]('TrackChangesEditing');for(const _0x30a2ba of _0x7c515d[_0xe30b('0x13')]({'skipNotAttached':!0x0})){const _0x262a6a=_0x30a2ba['getContainedElement']();if(_0x30a2ba[_0xe30b('0x20')]===_0x3dbe81&&_0x262a6a===_0x4386dc)return _0x30a2ba;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b72=['insertTemplate','get','Template','plugins','enableCommand','editor','has','afterInit'];(function(_0x4a6e08,_0x3b72b2){const _0x498be0=function(_0x54cf59){while(--_0x54cf59){_0x4a6e08['push'](_0x4a6e08['shift']());}};_0x498be0(++_0x3b72b2);}(_0x3b72,0x19c));const _0x498b=function(_0x4a6e08,_0x3b72b2){_0x4a6e08=_0x4a6e08-0x0;let _0x498be0=_0x3b72[_0x4a6e08];return _0x498be0;};import{Plugin as _0x2d8cd3}from'ckeditor5/src/core';export default class yt extends _0x2d8cd3{[_0x498b('0x3')](){const _0x590e98=this[_0x498b('0x1')];_0x590e98['plugins'][_0x498b('0x2')](_0x498b('0x6'))&&_0x590e98[_0x498b('0x7')][_0x498b('0x5')]('TrackChangesEditing')[_0x498b('0x0')](_0x498b('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4043=['document','nodeBefore','createRange','end','isEqual','from','title-content','getNearestSelectionRange','model','ELEMENT_TITLE','element','Title','newRange','_descriptionFactory','get','getChangedMarkers','isTouching','_splitMarkerName','plugins','locale','editor','schema','start','TrackChangesEditing'];(function(_0x4b08aa,_0x40438d){const _0x489bb6=function(_0x309d21){while(--_0x309d21){_0x4b08aa['push'](_0x4b08aa['shift']());}};_0x489bb6(++_0x40438d);}(_0x4043,0x19f));const _0x489b=function(_0x4b08aa,_0x40438d){_0x4b08aa=_0x4b08aa-0x0;let _0x489bb6=_0x4043[_0x4b08aa];return _0x489bb6;};import{Plugin as _0x113493}from'ckeditor5/src/core';import{getTranslation as _0x16fa6d}from'../utils/common-translations';export default class St extends _0x113493{['afterInit'](){const _0x29a2e8=this[_0x489b('0xd')];if(!_0x29a2e8['plugins']['has'](_0x489b('0x4')))return;const _0x446a9b=_0x29a2e8[_0x489b('0xb')][_0x489b('0x7')](_0x489b('0x10'));_0x446a9b[_0x489b('0x6')]['registerElementLabel'](_0x489b('0x17'),()=>_0x16fa6d(_0x29a2e8[_0x489b('0xc')],_0x489b('0x2'))),_0x29a2e8[_0x489b('0x1')][_0x489b('0x11')]['registerPostFixer'](_0x81582=>{let _0x4c66d2=!0x1;const _0x4d6966=Array[_0x489b('0x16')](_0x29a2e8[_0x489b('0x1')][_0x489b('0x11')]['differ'][_0x489b('0x8')]());for(const {name:_0x38fad0,data:_0x4dd0f0}of _0x4d6966){const {group:_0x11d500}=_0x446a9b[_0x489b('0xa')](_0x38fad0);if('suggestion'!==_0x11d500||!_0x4dd0f0[_0x489b('0x5')])continue;const _0x43bf4f=_0x4dd0f0[_0x489b('0x5')],_0x1c0a23=_0x43bf4f[_0x489b('0x14')][_0x489b('0x12')];if(!_0x1c0a23||!_0x1c0a23['is'](_0x489b('0x3'),_0x489b('0x17')))continue;if(!_0x43bf4f[_0x489b('0xf')][_0x489b('0x9')](_0x43bf4f['end']))continue;const _0x3bc0dc=_0x29a2e8[_0x489b('0x1')][_0x489b('0xe')][_0x489b('0x0')](_0x43bf4f[_0x489b('0x14')],'forward');if(_0x3bc0dc&&_0x3bc0dc['isCollapsed']){const _0x15602e=_0x81582[_0x489b('0x13')](_0x43bf4f['start'],_0x3bc0dc['start']);_0x15602e[_0x489b('0x15')](_0x43bf4f)||(_0x81582['updateMarker'](_0x38fad0,{'range':_0x15602e}),_0x4c66d2=!0x0);}_0x4c66d2||(_0x81582['removeMarker'](_0x38fad0),_0x4c66d2=!0x0);}return _0x4c66d2;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25fa=['undo','UndoEditing','editor','redo','has','enableCommand','TrackChangesEditing','plugins'];(function(_0x25c28f,_0x25fa33){const _0x5e757c=function(_0x26c234){while(--_0x26c234){_0x25c28f['push'](_0x25c28f['shift']());}};_0x5e757c(++_0x25fa33);}(_0x25fa,0x102));const _0x5e75=function(_0x25c28f,_0x25fa33){_0x25c28f=_0x25c28f-0x0;let _0x5e757c=_0x25fa[_0x25c28f];return _0x5e757c;};import{Plugin as _0x2f95fb}from'ckeditor5/src/core';export default class It extends _0x2f95fb{['afterInit'](){const _0x2ae2b7=this[_0x5e75('0x0')],_0x23070e=_0x2ae2b7[_0x5e75('0x5')]['get'](_0x5e75('0x4'));_0x2ae2b7[_0x5e75('0x5')][_0x5e75('0x2')](_0x5e75('0x7'))&&(_0x23070e['enableCommand'](_0x5e75('0x6')),_0x23070e[_0x5e75('0x3')](_0x5e75('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcb48=['previousPosition','addHighlight','activeMarkers','element','markerRange','test','includes','type','schema','isBlock','elementEnd','item','plugins','writer','isContent','createRangeOn','isLimit','span','ck-suggestion-marker--active','toViewElement','bindElementToMarker','ck-suggestion-marker-','getItems','listIndent','consumable','isAtEnd','mapper','TrackChangesEditing','getWalker','toViewPosition','listItem','start','get','nextSibling','push'];(function(_0x42eada,_0xcb48c9){const _0x547600=function(_0x5129b2){while(--_0x5129b2){_0x42eada['push'](_0x42eada['shift']());}};_0x547600(++_0xcb48c9);}(_0xcb48,0x17d));const _0x5476=function(_0x42eada,_0xcb48c9){_0x42eada=_0x42eada-0x0;let _0x547600=_0xcb48[_0x42eada];return _0x547600;};export function getRangesWithAttribute(_0x4637a2,_0x1942c5,_0x4fb4c6){const _0x26eeab=[];for(const _0x55e4e0 of _0x1942c5[_0x5476('0x1a')]())_0x55e4e0['hasAttribute'](_0x4637a2)&&_0x26eeab[_0x5476('0x3')](_0x4fb4c6[_0x5476('0x13')](_0x55e4e0));return _0x26eeab;}export function getElementsAffectedByListItemRename(_0x3719c5){const _0xe54f52=[];if(_0x3719c5['is']('element',_0x5476('0x22'))){let _0x3abc08=_0x3719c5[_0x5476('0x2')];for(;_0x3abc08&&_0x3abc08['is'](_0x5476('0x7'),_0x5476('0x22'))&&_0x3abc08['getAttribute'](_0x5476('0x1b'))>0x0;)_0xe54f52[_0x5476('0x3')](_0x3abc08),_0x3abc08=_0x3abc08[_0x5476('0x2')];}return _0xe54f52;}export function downcastSplitMergeMarker(_0x2cae1a,_0x761380,{showActiveMarker:_0x2ea9ba=!0x0}={}){const _0x3192ca=_0x2cae1a[_0x5476('0x10')][_0x5476('0x1')](_0x5476('0x1f'));return(_0x40765e,_0x5d2671,_0x2ce115)=>{if(!_0x2ce115[_0x5476('0x1c')][_0x5476('0x9')](_0x5d2671['markerRange'],_0x40765e['name']))return;const _0x4ace30=_0x5d2671[_0x5476('0x8')][_0x5476('0x20')](),_0x230bd9=_0x5d2671[_0x5476('0x8')][_0x5476('0x0')],_0x28b0e2=_0x2cae1a['model'][_0x5476('0xc')];let _0x5df2e5=null,_0x1484a8=null,_0x162846=!0x1,_0xb8da47=!0x1;for(const _0x1ed1bd of _0x4ace30){const _0x2ba894=_0x1ed1bd[_0x5476('0xf')];_0x162846=_0x162846||_0x28b0e2[_0x5476('0x12')](_0x2ba894);const _0x555afa=_0x2ce115[_0x5476('0x1e')][_0x5476('0x17')](_0x2ba894);if(_0x555afa&&_0x555afa['getCustomProperty'](_0x5476('0x5')))return;_0x5476('0xe')==_0x1ed1bd[_0x5476('0xb')]&&(_0x28b0e2[_0x5476('0xd')](_0x2ba894)&&!_0x28b0e2[_0x5476('0x14')](_0x2ba894)&&(_0x2ba894[_0x5476('0x2')]||_0x230bd9[_0x5476('0x1d')]?_0x5df2e5&&_0x5df2e5['parent']==_0x2ba894||(_0x5df2e5=_0x2ba894,_0x5dd5d2(_0x1ed1bd['previousPosition']),_0xb8da47=!0x0):_0x1484a8=_0x1484a8||_0x1ed1bd[_0x5476('0x4')]));}function _0x5dd5d2(_0x18da39){const _0x2793af=_0x2ce115[_0x5476('0x11')]['createUIElement'](_0x5476('0x15'),{'class':_0x5476('0x19')+_0x761380}),_0x508b12=_0x2ce115['mapper'][_0x5476('0x21')](_0x18da39);_0x2ea9ba&&_0x3192ca[_0x5476('0x6')][_0x5476('0xa')](_0x5d2671['markerName'])&&_0x2ce115[_0x5476('0x11')]['addClass'](_0x5476('0x16'),_0x2793af),_0x2ce115['writer']['insert'](_0x508b12,_0x2793af),_0x2ce115[_0x5476('0x1e')][_0x5476('0x18')](_0x2793af,_0x5d2671['markerName']);}_0x162846||_0xb8da47||!_0x1484a8||_0x5dd5d2(_0x1484a8);};}
|