@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231008.0 → 0.0.0-nightly-20231010.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/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 _0x2e2f=['batch','filter','removeMarkers','markers','TrackChangesEditing','getSuggestion','Users','document','author','model','tableCellSuggestion','nodeAfter','element','map','previousSibling','accept','showSuggestionHighlights','newRange','row','getChangedMarkers','high','insertion','for','cells','formatBlock','isEmpty','columns','tableCellHorizontalAlignment','end','suggestionUnloaded','listenTo','ck-suggestion-marker','columnInsertionRanges','editing','editor','some','plugins','tablePasteColumn','length','name','getColumnIndexes','getChild','attributes','getChildren','startsWith','rowInsertionIndexes','tablePaste','oldRange','root','rows','containsRange','conversion','deletion','*Replace\x20table\x20cells*','tablePasteChainId','change','_suggestionFactory','columnInsertionIndexes','removeRows','createRange','view','elementToElement','getSelectionAffectedTableCells','setAttributes','tablePasteCell','editingDowncast','commands','markMultiRangeDeletion','getRanges','content','_createdBatches','last','$graveyard','schema','getTableIfOnlyTableInContent','keys','tableCellBorderColor','getAttributes','has','registerDescriptionCallback','value','getShiftedBy','type','suggestion','tableCellPadding','TableClipboard','_isForcedDefaultExecutionBlock','suggestion-td','get','locale','getChanges','deletionRanges','dataDowncast','insertColumns','activeMarkers','removeMarker','find','registerCustomCallback','from','subType','tablePasteRow','_descriptionFactory','markerToHighlight','tableCellBorderWidth','fromEntries','every','createRangeOn','includes','afterInit','selection','paragraph','_getCoordsForCells','getItems','insertContent','redo','getSuggestions','differ','getSuggestionCallback','position','createTableWalker','previous','getRange','first','next','forceDefaultExecution','markMultiRangeBlockFormat','insertRows','getRowIndexes','getAllAdjacentSuggestions','tableCell','getContainedElement','join','_splitMarkerName','low','getColumns','registerPostFixer','createPositionBefore','setAttribute','column','documentSelection','set','tableCellBorderStyle','insertionRanges','isEqual','remove','ck-suggestion-marker-insertion','markerAttributes','getRows','fill','markerName','table','stop','endColumn','suggestion:formatBlock:tablePasteCell','wrap','findAncestor','requires','tableCellBackgroundColor','options','_tablePostFixingSubtypes','add','TableUtils','updateMarker','isInContent','trackChanges','markMultiRangeInsertion','createRangeIn','unwrap','createElement','discard','removeColumns','endRow','push','insert'];(function(_0x5772ee,_0x2e2fa4){const _0x1adce8=function(_0xb83cb8){while(--_0xb83cb8){_0x5772ee['push'](_0x5772ee['shift']());}};_0x1adce8(++_0x2e2fa4);}(_0x2e2f,0x1d3));const _0x1adc=function(_0x5772ee,_0x2e2fa4){_0x5772ee=_0x5772ee-0x0;let _0x1adce8=_0x2e2f[_0x5772ee];return _0x1adce8;};import{getTranslation as _0xff4e7d}from'../utils/common-translations';import{Plugin as _0x5ac451}from'ckeditor5/src/core';import{uid as _0x39689b,priorities as _0x1ee6d8}from'ckeditor5/src/utils';import _0x1df8b0 from'./table';const le=[_0x1adc('0x9e'),_0x1adc('0x83'),_0x1adc('0x16'),_0x1adc('0x52'),'tableCellVerticalAlignment',_0x1adc('0x26'),_0x1adc('0x8b')],ae=Object[_0x1adc('0x9f')](le[_0x1adc('0x44')](_0x5185ad=>[_0x5185ad,null]));export default class wt extends _0x5ac451{static get[_0x1adc('0x25')](){return[_0x1df8b0];}[_0x1adc('0xa3')](){const _0x4a9fcb=this[_0x1adc('0x59')];if(!_0x4a9fcb['plugins'][_0x1adc('0x85')](_0x1adc('0x8c')))return;const _0x1f3d68=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x3b')),_0x4b7cd4=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x2a')),_0x5971b9=_0x4a9fcb['plugins']['get'](_0x1df8b0),_0x1c3c54=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x8c'));_0x5971b9[_0x1adc('0x28')][_0x1adc('0x35')](_0x1adc('0x9b'),_0x1adc('0x5c')),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x80')]['register'](_0x1adc('0x41'),{'allowIn':_0x1adc('0xa'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x4a9fcb['conversion'][_0x1adc('0x74')]({'model':_0x1adc('0x41'),'view':'suggestion-td'});let _0x233aca=null;_0x4a9fcb[_0x1adc('0x40')]['on'](_0x1adc('0xa8'),(_0x56e954,_0x126de3)=>{const [_0x19f19d,_0x3c8b48]=_0x126de3,_0x4c21c7=_0x126de3[_0x126de3[_0x1adc('0x5d')]-0x1];_0x4c21c7&&_0x4c21c7[_0x1adc('0x5')]||_0x1f3d68[_0x1adc('0x8d')]||this[_0x1adc('0x59')][_0x1adc('0x79')][_0x1adc('0x8f')](_0x1adc('0x2d'))[_0x1adc('0x87')]&&function(_0x60f368,_0x53ce33,_0x5f3ad9,_0x39407f,_0x22acfd){if(_0x53ce33&&!_0x53ce33['is'](_0x1adc('0x14')))return!0x1;const _0x530069=_0x22acfd[_0x1adc('0x81')](_0x60f368,_0x5f3ad9);if(!_0x530069||!fe(_0x530069,void 0x0,_0x39407f))return!0x1;const _0x484df8=_0x39407f[_0x1adc('0x75')](_0x5f3ad9[_0x1adc('0x3e')][_0x1adc('0xa4')]);if(!_0x484df8[_0x1adc('0x5d')])return!0x1;const _0x47dd51=_0x484df8[0x0][_0x1adc('0x24')](_0x1adc('0x1f')),_0x2cc69b=_0x39407f[_0x1adc('0x8')](_0x484df8),_0xda6bee=_0x39407f[_0x1adc('0x5f')](_0x484df8),_0x3315c8={'startRow':_0x2cc69b[_0x1adc('0x3')],'endRow':_0x2cc69b[_0x1adc('0x7e')],'startColumn':_0xda6bee[_0x1adc('0x3')],'endColumn':_0xda6bee[_0x1adc('0x7e')]};return 0x1==_0x484df8[_0x1adc('0x5d')]&&(_0x3315c8[_0x1adc('0x34')]+=_0x39407f[_0x1adc('0x1c')](_0x530069)-0x1,_0x3315c8[_0x1adc('0x21')]+=_0x39407f[_0x1adc('0xf')](_0x530069)-0x1),fe(_0x47dd51,_0x3315c8,_0x39407f);}(_0x19f19d,_0x3c8b48,_0x4a9fcb[_0x1adc('0x40')],_0x4b7cd4,_0x1c3c54)&&(_0x56e954[_0x1adc('0x20')](),_0x233aca={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x6e')](()=>{_0x4a9fcb['model'][_0x1adc('0xa8')](_0x126de3[0x0],_0x126de3[0x1],_0x126de3[0x2],{'forceDefaultExecution':!0x0});const _0x27654b=_0x39689b(),{rowInsertionRanges:_0x2ff95a,columnInsertionRanges:_0x6b9582,insertionRanges:_0x5623bf,deletionRanges:_0x50ba0b,cells:_0x185b59}=_0x233aca;_0x2ff95a['length']&&_0x1f3d68[_0x1adc('0x2e')](_0x2ff95a,_0x1adc('0x9b'),{'tablePasteChainId':_0x27654b}),_0x6b9582['length']&&_0x1f3d68[_0x1adc('0x2e')](_0x6b9582,_0x1adc('0x5c'),{'tablePasteChainId':_0x27654b}),_0x5623bf[_0x1adc('0x5d')]&&_0x1f3d68[_0x1adc('0x2e')](_0x5623bf,_0x1adc('0x65'),{'tablePasteChainId':_0x27654b,'skipNestingCheck':!0x0}),_0x50ba0b[_0x1adc('0x5d')]&&_0x1f3d68[_0x1adc('0x7a')](_0x50ba0b,_0x1adc('0x65'),{'tablePasteChainId':_0x27654b,'skipNestingCheck':!0x0});const _0x4f518b=_0x1f3d68[_0x1adc('0x6')](_0x185b59[_0x1adc('0x44')](({element:_0x3ac8e5})=>_0x3ac8e5),{'formatGroupId':_0x39689b()},[],_0x1adc('0x77'),{'tablePasteChainId':_0x27654b});if(_0x4f518b){const _0xa630f6=_0x4f518b['getMarkers'](),_0x634874=[];for(const {element:_0x29fe3b,attributes:_0x3a55d9}of _0x185b59){if(!_0x3a55d9)continue;const _0x3895dc=_0x4a9fcb['model']['createRangeOn'](_0x29fe3b),_0x134f54=_0xa630f6[_0x1adc('0x97')](_0x1ed158=>_0x1ed158['getRange']()[_0x1adc('0x18')](_0x3895dc));_0x134f54&&_0x634874[_0x1adc('0x35')]([_0x134f54['name'],_0x3a55d9]);}_0x634874[_0x1adc('0x5d')]&&_0x4f518b[_0x1adc('0x12')](_0x1adc('0x1b'),Object[_0x1adc('0x9f')](_0x634874));}_0x233aca=null;}));},{'priority':_0x1ee6d8['high']+0xa}),_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')](_0x1adc('0x8c'))['on']('_replaceTableSlotCell',(_0x2e3def,_0x4e9120)=>{const [_0x5f3cf0,_0x2a15d7,,_0x1dc8f9]=_0x4e9120;if(!_0x233aca)return;_0x2e3def['stop']();const _0x427d83=_0x5f3cf0['cell'],_0x39e311=_0x2a15d7,_0x1792ab=ce(_0x427d83),_0x6c802d=ce(_0x39e311);_0x2e3def['return']=_0x427d83;let _0x5e94e8=null,_0x21dafe=null;if(_0x6c802d||_0x1792ab){if(_0x1792ab&&!_0x6c802d){_0x1dc8f9[_0x1adc('0x19')](_0x427d83[_0x1adc('0x60')](0x0));for(const _0x174351 of Array['from'](_0x39e311[_0x1adc('0x62')]()))_0x1dc8f9[_0x1adc('0x36')](_0x174351,_0x427d83,_0x1adc('0x53'));const _0x3c8433=_0x233aca[_0x1adc('0x64')][_0x1adc('0xa2')](_0x5f3cf0[_0x1adc('0x49')]),_0x48a7a2=_0x233aca[_0x1adc('0x70')]['includes'](_0x5f3cf0[_0x1adc('0x13')]);_0x3c8433||_0x48a7a2||(_0x5e94e8=_0x1dc8f9[_0x1adc('0x2f')](_0x427d83));}else _0x6c802d&&!_0x1792ab&&(_0x21dafe=_0x1dc8f9['createRangeIn'](_0x427d83));}else{const _0x1e444e=_0x1dc8f9[_0x1adc('0x31')](_0x1adc('0x41')),_0x1215f7=_0x1dc8f9['createElement'](_0x1adc('0x41'));_0x1dc8f9[_0x1adc('0x23')](_0x1dc8f9['createRangeIn'](_0x427d83),_0x1215f7),_0x1dc8f9[_0x1adc('0x36')](_0x1e444e,_0x427d83,0x0);for(const _0x462f59 of Array[_0x1adc('0x99')](_0x39e311['getChildren']()))_0x1dc8f9[_0x1adc('0x36')](_0x462f59,_0x1e444e,_0x1adc('0x53'));_0x5e94e8=_0x1dc8f9[_0x1adc('0xa1')](_0x1e444e),_0x21dafe=_0x1dc8f9['createRangeOn'](_0x1215f7);}const _0x5b1492=Array[_0x1adc('0x99')](_0x39e311[_0x1adc('0x84')]())[_0x1adc('0x38')](([_0x599406])=>le[_0x1adc('0xa2')](_0x599406));_0x233aca[_0x1adc('0x4e')][_0x1adc('0x35')]({'element':_0x427d83,'attributes':_0x5b1492[_0x1adc('0x5d')]?Object[_0x1adc('0x9f')](_0x5b1492):null}),_0x5e94e8&&_0x233aca[_0x1adc('0x17')]['push'](_0x5e94e8),_0x21dafe&&_0x233aca[_0x1adc('0x92')][_0x1adc('0x35')](_0x21dafe);},{'priority':_0x1adc('0x4b')}),_0x4b7cd4['on'](_0x1adc('0x94'),(_0x3ddfed,_0x400011)=>{const [_0x13800b,_0x55a04e={}]=_0x400011;if(!_0x233aca)return;const _0x39b75b=_0x55a04e['at']||0x0,_0x1f5014=_0x55a04e[_0x1adc('0x51')]||0x1;_0x233aca['columnInsertionIndexes']=new Array(_0x1f5014)['fill'](_0x39b75b)['map']((_0x55d3c1,_0xb1a41b)=>_0x55d3c1+_0xb1a41b);for(const {cell:_0x3f9ba3}of _0x4b7cd4[_0x1adc('0x0')](_0x13800b,{'startColumn':_0x39b75b,'endColumn':_0x39b75b+_0x1f5014-0x1}))_0x233aca[_0x1adc('0x57')][_0x1adc('0x35')](_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0xa1')](_0x3f9ba3));},{'priority':'low'}),_0x4b7cd4['on'](_0x1adc('0x7'),(_0xbf12ca,_0x17aff1)=>{const [_0x51bae2,_0x226aa4={}]=_0x17aff1;if(!_0x233aca)return;const _0x50a392=_0x226aa4['at']||0x0,_0x23e66e=_0x226aa4[_0x1adc('0x68')]||0x1;_0x233aca[_0x1adc('0x64')]=new Array(_0x23e66e)[_0x1adc('0x1d')](_0x50a392)[_0x1adc('0x44')]((_0x50fb46,_0x1a9d00)=>_0x50fb46+_0x1a9d00);for(const {cell:_0x5f179d}of _0x4b7cd4['createTableWalker'](_0x51bae2,{'startRow':_0x50a392,'endRow':_0x50a392+_0x23e66e-0x1}))_0x233aca['rowInsertionRanges'][_0x1adc('0x35')](_0x4a9fcb['model'][_0x1adc('0xa1')](_0x5f179d));},{'priority':_0x1adc('0xe')}),_0x1f3d68[_0x1adc('0x9c')][_0x1adc('0x86')](_0x563053=>{if(_0x563053[_0x1adc('0x9a')]&&_0x563053[_0x1adc('0x9a')]['startsWith'](_0x1adc('0x65')))return _0x563053[_0x1adc('0x1')]?{}:{'type':_0x1adc('0x4c'),'content':_0xff4e7d(_0x4a9fcb[_0x1adc('0x90')],_0x1adc('0x6c'))};});const _0x4ffa76=()=>!0x1;for(const _0x6892ba of['tablePaste','tablePasteColumn',_0x1adc('0x9b'),_0x1adc('0x77')])_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4c'),_0x6892ba,_0x1adc('0xc'),_0x4ffa76),_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')]('deletion',_0x6892ba,_0x1adc('0xc'),_0x4ffa76),_0x1f3d68[_0x1adc('0x6f')]['registerCustomCallback']('formatBlock',_0x6892ba,_0x1adc('0xc'),_0x4ffa76);_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4f'),_0x1adc('0x77'),'discard',_0x4ffa76),_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4f'),_0x1adc('0x77'),_0x1adc('0x46'),(_0x2e3ba5,_0xef0d42,_0x3da03a)=>{const _0x45fa9a=_0x2e3ba5['map'](_0x21d7c5=>_0x21d7c5[_0x1adc('0xb')]())['filter'](_0x4fd37f=>_0x4fd37f),_0xd138be=new Map(_0x45fa9a[_0x1adc('0x44')](_0xca260=>[_0xca260,null]));if(_0x233aca)for(const {element:_0x4403c3,attributes:_0x15da57}of _0x233aca[_0x1adc('0x4e')])_0x15da57&&_0xd138be[_0x1adc('0x15')](_0x4403c3,_0x15da57);else{if(_0x3da03a&&_0x3da03a[_0x1adc('0x1b')])for(const [_0x2fff8e,_0x40f7a5]of Object['entries'](_0x3da03a[_0x1adc('0x1b')])){const _0x42a5a8=_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3a')][_0x1adc('0x8f')](_0x2fff8e),_0xc8a0c7=_0x42a5a8?_0x42a5a8['getRange']()[_0x1adc('0xb')]():null;_0xc8a0c7&&_0xd138be[_0x1adc('0x15')](_0xc8a0c7,_0x40f7a5);}}_0x4a9fcb[_0x1adc('0x40')]['change'](_0x638ffa=>{for(const [_0x442450,_0x648eaf]of _0xd138be)_0x638ffa[_0x1adc('0x76')]({...ae,..._0x648eaf},_0x442450);});});const _0x2a73bd=(_0x5aa627,_0x17cbc8)=>{_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x5aa627,'tablePaste',_0x17cbc8,(_0x397c59,_0x3faad7,_0x4eb2f2)=>{_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x6e')](_0x31df9d=>{const _0x5c2499=[];for(const _0x36f82c of _0x397c59){const _0x55a61b=_0x36f82c['start'][_0x1adc('0x42')];_0x55a61b['is'](_0x1adc('0x43'),_0x1adc('0x41'))&&_0x5c2499[_0x1adc('0x35')](_0x55a61b);}_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0xac')](_0x5aa627,null,_0x17cbc8)(_0x397c59,_0x3faad7,_0x4eb2f2);for(const _0x4010f7 of _0x5c2499)_0x1adc('0x7f')!=_0x4010f7[_0x1adc('0x67')]['rootName']&&_0x31df9d[_0x1adc('0x30')](_0x4010f7);});});};_0x2a73bd(_0x1adc('0x4c'),_0x1adc('0x46')),_0x2a73bd('insertion',_0x1adc('0x32')),_0x2a73bd(_0x1adc('0x6b'),_0x1adc('0x46')),_0x2a73bd(_0x1adc('0x6b'),_0x1adc('0x32')),_0x1f3d68[_0x1adc('0x6f')][_0x1adc('0x98')](_0x1adc('0x4c'),'tablePasteRow',_0x1adc('0x32'),_0x4f41af=>{const _0xb009f1=_0x4f41af['map'](_0x1dcdd8=>_0x1dcdd8[_0x1adc('0xb')]()),_0x2b6e1f=_0xb009f1[0x0][_0x1adc('0x24')](_0x1adc('0x1f')),{minRow:_0x11916d,maxRow:_0x4bee91}=_0x5971b9['_getCoordsForCells'](_0xb009f1);_0x4b7cd4[_0x1adc('0x71')](_0x2b6e1f,{'at':_0x11916d,'rows':_0x4bee91-_0x11916d+0x1});}),_0x1f3d68[_0x1adc('0x6f')]['registerCustomCallback'](_0x1adc('0x4c'),_0x1adc('0x5c'),_0x1adc('0x32'),_0x40d24d=>{const _0x4585e9=_0x40d24d['map'](_0x404cae=>_0x404cae['getContainedElement']()),_0x456e5f=_0x4585e9[0x0][_0x1adc('0x24')](_0x1adc('0x1f')),{minColumn:_0x56a860,maxColumn:_0x3816ba}=_0x5971b9[_0x1adc('0xa6')](_0x4585e9);_0x4b7cd4[_0x1adc('0x33')](_0x456e5f,{'at':_0x56a860,'columns':_0x3816ba-_0x56a860+0x1});});const _0x21ed4f=(_0x40f5bb,_0x1d4c11)=>{if(!_0x1d4c11['subType']||!_0x1d4c11[_0x1adc('0x9a')][_0x1adc('0x63')](_0x1adc('0x65')))return;const _0xc7f4ea=_0x1d4c11[_0x1adc('0x61')]['tablePasteChainId'],_0x37fe16=_0x1f3d68['getSuggestions']()[_0x1adc('0x38')](_0x4e2b0d=>_0x4e2b0d[_0x1adc('0x2c')]&&_0x4e2b0d[_0x1adc('0x61')]&&_0x4e2b0d[_0x1adc('0x61')][_0x1adc('0x6d')]==_0xc7f4ea);_0x37fe16[_0x1adc('0x5d')]&&_0x1d4c11['getAllAdjacentSuggestions']()[_0x1adc('0x5d')]!=_0x37fe16[_0x1adc('0x5d')]&&_0x37fe16['reduce']((_0x43f5e7,_0x1c30d3)=>(_0x43f5e7[_0x1adc('0x4')]=_0x1c30d3,_0x1c30d3[_0x1adc('0x1')]=_0x43f5e7,_0x1c30d3));};function _0x5439c8(_0x362810,_0x2be86d=!0x0){const {id:_0x3da367}=_0x1f3d68['_splitMarkerName'](_0x362810[_0x1adc('0x1e')]),_0x3e908b=[_0x1adc('0x56'),_0x1adc('0x1a')],_0x2f5704=_0x1f3d68[_0x1adc('0x95')]['includes'](_0x362810[_0x1adc('0x1e')]);return _0x2f5704&&_0x3e908b[_0x1adc('0x35')]('ck-suggestion-marker--active'),{'classes':_0x3e908b,'attributes':{'data-suggestion':_0x3da367},'priority':_0x2f5704&&_0x2be86d?0xbc2:0xbb8};}_0x1f3d68['on']('suggestionLoaded',_0x21ed4f,{'priority':_0x1adc('0x4b')}),_0x1f3d68['on'](_0x1adc('0x54'),_0x21ed4f,{'priority':_0x1adc('0x4b')}),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0x10')](()=>{let _0x257cb6=!0x1;const _0x4280ac=Array['from'](_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0xab')]['getChangedMarkers']());for(const {name:_0x5eb39e,data:_0x381abf}of _0x4280ac){const {group:_0x2b2cda,type:_0x56b0df,id:_0xe143ce}=_0x1f3d68['_splitMarkerName'](_0x5eb39e);if(_0x1adc('0x8a')!=_0x2b2cda||_0x1adc('0x6b')!=_0x56b0df||_0x381abf[_0x1adc('0x66')])continue;if(!_0x1f3d68['hasSuggestion'](_0xe143ce))continue;const _0x3cb616=_0x1f3d68[_0x1adc('0x3c')](_0xe143ce)[_0x1adc('0x7b')](),_0x339159=_0x4a9fcb['plugins']['get'](_0x1adc('0x3d'))['me'];for(const _0x5ba1d3 of _0x1f3d68[_0x1adc('0xaa')]()){if(!_0x5ba1d3['isInContent']||_0x5ba1d3[_0x1adc('0x3f')]!=_0x339159)continue;if('formatBlock'!=_0x5ba1d3[_0x1adc('0x89')]||_0x1adc('0x77')!=_0x5ba1d3['subType'])continue;if(_0x5ba1d3['getRanges']()[_0x1adc('0xa0')](_0x541939=>_0x3cb616[_0x1adc('0x5a')](_0xb7cda6=>_0xb7cda6[_0x1adc('0x69')](_0x541939,!0x0))))for(const _0x21e665 of _0x5ba1d3[_0x1adc('0x9')]())_0x21e665[_0x1adc('0x2c')]&&(_0x21e665[_0x1adc('0x32')](),_0x257cb6=!0x0);}}return _0x257cb6;}),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0x10')](_0x2b241d=>{const _0x7336cd=_0x4a9fcb[_0x1adc('0x79')]['get'](_0x1adc('0xa9'));if(!_0x7336cd||!_0x7336cd[_0x1adc('0x7d')]['has'](_0x2b241d[_0x1adc('0x37')]))return!0x1;let _0x561e57=!0x1;const _0x24e2ae=_0x4a9fcb[_0x1adc('0x5b')][_0x1adc('0x8f')]('Users')['me'],_0x108ee0=_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')][_0x1adc('0xab')][_0x1adc('0x91')](),_0x356de9=Array[_0x1adc('0x99')](_0x4a9fcb[_0x1adc('0x40')]['document'][_0x1adc('0xab')][_0x1adc('0x4a')]())['filter'](({name:_0x379c1e,data:_0x4e4fe9})=>{const {group:_0x44eeee,subType:_0x5e031c,authorId:_0x3c700e}=_0x1f3d68[_0x1adc('0xd')](_0x379c1e);return _0x1adc('0x8a')==_0x44eeee&&_0x1adc('0x65')==_0x5e031c&&_0x3c700e==_0x24e2ae['id']&&!_0x4e4fe9[_0x1adc('0x66')];});for(const _0x16b2ef of _0x108ee0){if(_0x1adc('0x36')!=_0x16b2ef[_0x1adc('0x89')]||_0x1adc('0x41')!=_0x16b2ef[_0x1adc('0x5e')]||0x1!=_0x16b2ef[_0x1adc('0x5d')])continue;const _0x2101d6=_0x2b241d[_0x1adc('0x72')](_0x16b2ef[_0x1adc('0xad')],_0x16b2ef[_0x1adc('0xad')][_0x1adc('0x88')](0x1));if(!_0x356de9[_0x1adc('0x97')](({data:_0x2307f5})=>_0x2307f5['newRange'][_0x1adc('0x18')](_0x2101d6)))for(const {name:_0x371a01,data:_0x204bc8}of _0x356de9)if(_0x2101d6['containsRange'](_0x204bc8[_0x1adc('0x48')])){_0x2b241d[_0x1adc('0x2b')](_0x371a01,{'range':_0x2101d6}),_0x561e57=!0x0;break;}}return _0x561e57;}),_0x4a9fcb[_0x1adc('0x40')][_0x1adc('0x3e')]['registerPostFixer'](_0x314b35=>{let _0x30bb79=!0x1;const _0x56620c=_0x4a9fcb[_0x1adc('0x5b')]['get'](_0x1adc('0x3d'))['me'],_0x10615a=_0x1f3d68[_0x1adc('0xaa')]()[_0x1adc('0x38')](_0x812498=>_0x812498[_0x1adc('0x2c')]&&_0x812498[_0x1adc('0x3f')]==_0x56620c),_0x8971f6=new Set(),_0x5d49a8=new Set();for(const _0x420375 of _0x10615a)if(_0x1adc('0x65')==_0x420375['subType'])for(const _0x48bd73 of _0x420375['getMarkers']()){const _0x24816f=_0x48bd73[_0x1adc('0x2')]()[_0x1adc('0xb')]();if(_0x24816f){if(_0x24816f['is'](_0x1adc('0x43'),_0x1adc('0x41'))&&ce(_0x24816f)){_0x420375[_0x1adc('0x96')](_0x48bd73[_0x1adc('0x5e')]),_0x8971f6[_0x1adc('0x29')](_0x24816f),_0x30bb79=!0x0;const _0x39d6b5=_0x24816f['nextSibling'],_0x529d80=_0x24816f[_0x1adc('0x45')],_0x305e6c=_0x39d6b5&&_0x39d6b5['is'](_0x1adc('0x43'),_0x1adc('0x41')),_0x5ccd51=_0x529d80&&_0x529d80['is'](_0x1adc('0x43'),_0x1adc('0x41'));_0x305e6c&&!_0x8971f6[_0x1adc('0x85')](_0x39d6b5)&&_0x5d49a8[_0x1adc('0x29')](_0x39d6b5),_0x5ccd51&&!_0x8971f6[_0x1adc('0x85')](_0x529d80)&&_0x5d49a8[_0x1adc('0x29')](_0x529d80);}else _0x24816f['is'](_0x1adc('0x43'),_0x1adc('0xa5'))&&_0x24816f[_0x1adc('0x50')]&&(_0x420375[_0x1adc('0x96')](_0x48bd73[_0x1adc('0x5e')]),_0x30bb79=!0x0);}}else{if(_0x1adc('0x77')==_0x420375[_0x1adc('0x9a')]){if(!_0x420375[_0x1adc('0x61')]||!_0x420375[_0x1adc('0x61')][_0x1adc('0x6d')])continue;const _0x578d69=_0x420375[_0x1adc('0x61')]['markerAttributes'];if(_0x578d69&&Object[_0x1adc('0x82')](_0x578d69)[_0x1adc('0x5d')])continue;const _0x2eb962=_0x420375['attributes'][_0x1adc('0x6d')];let _0xcb5041=!0x0,_0x3e7e68=!0x0;for(const _0x4aa98e of _0x10615a)if(_0x4aa98e['subType']&&_0x4aa98e[_0x1adc('0x9a')][_0x1adc('0x63')](_0x1adc('0x65'))){if(!_0x4aa98e[_0x1adc('0x61')][_0x1adc('0x6d')]){_0x3e7e68=!0x1;break;}if(_0x4aa98e['id']!=_0x420375['id']&&_0x4aa98e[_0x1adc('0x61')][_0x1adc('0x6d')]==_0x2eb962){_0xcb5041=!0x1;break;}}_0x3e7e68&&_0xcb5041&&(_0x420375[_0x1adc('0x39')](),_0x30bb79=!0x0);}}for(const _0x1260ac of _0x8971f6)_0x314b35['remove'](_0x1260ac);for(const _0x1dcf70 of _0x5d49a8)_0x314b35[_0x1adc('0x30')](_0x1dcf70);return _0x30bb79;}),_0x4a9fcb[_0x1adc('0x6a')][_0x1adc('0x4d')](_0x1adc('0x78'))[_0x1adc('0x9d')]({'model':_0x1adc('0x22'),'view':(_0x57aa0f,_0x53d42d)=>_0x5439c8(_0x57aa0f),'converterPriority':_0x1adc('0x4b')}),_0x4a9fcb[_0x1adc('0x6a')][_0x1adc('0x4d')](_0x1adc('0x93'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57eb0b,_0x343c42)=>_0x343c42[_0x1adc('0x27')][_0x1adc('0x47')]?_0x5439c8(_0x57eb0b,!0x1):null,'converterPriority':_0x1adc('0x4b')});const _0x1f79f7=_0x4a9fcb[_0x1adc('0x58')][_0x1adc('0x73')];this[_0x1adc('0x55')](_0x1f79f7[_0x1adc('0x3e')],'clipboardOutput',(_0x292b73,_0x251454)=>{const _0x5a2415=[];for(const _0x53cf7c of _0x1f79f7[_0x1adc('0x2f')](_0x251454[_0x1adc('0x7c')])[_0x1adc('0xa7')]())_0x53cf7c['is'](_0x1adc('0x43'),_0x1adc('0x8e'))&&_0x5a2415[_0x1adc('0x35')](_0x53cf7c);_0x1f79f7[_0x1adc('0x6e')](_0xcc597b=>{for(const _0x4aa90e of _0x5a2415)_0xcc597b['move'](_0xcc597b[_0x1adc('0x2f')](_0x4aa90e),_0xcc597b[_0x1adc('0x11')](_0x4aa90e)),_0xcc597b['remove'](_0x4aa90e);});});}}function ce(_0x1a5012){if(_0x1a5012['isEmpty'])return!0x0;const _0xb987b5=_0x1a5012[_0x1adc('0x60')](0x0);return _0xb987b5['is'](_0x1adc('0x43'),_0x1adc('0xa5'))&&_0xb987b5[_0x1adc('0x50')];}function fe(_0x4cbc72,_0x174179={},_0x548313){for(const {isAnchor:_0x35ce15,cellHeight:_0x886c96,cellWidth:_0x1f7035}of _0x548313[_0x1adc('0x0')](_0x4cbc72,{'includeAllSlots':!0x0,..._0x174179}))if(!_0x35ce15||0x1!=_0x886c96||0x1!=_0x1f7035)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4b01=['tablePasteRow','getColumnIndexes','startsWith','markerName','tableCellBorderWidth','from','editor','editing','_getCoordsForCells','endColumn','stop','TableUtils','value','keys','tableCellBackgroundColor','listenTo','for','trackChanges','high','discard','getAllAdjacentSuggestions','dataDowncast','_createdBatches','getChild','createRangeOn','cell','conversion','content','cells','set','document','register','createRangeIn','isEmpty','_suggestionFactory','getRanges','start','tableCellBorderColor','columns','suggestionUnloaded','position','ck-suggestion-marker-insertion','formatBlock','tablePasteColumn','deletion','_replaceTableSlotCell','insertColumns','last','rowInsertionIndexes','nodeAfter','containsRange','Users','markerToHighlight','createElement','removeColumns','columnInsertionRanges','getContainedElement','suggestion:formatBlock:tablePasteCell','getChildren','filter','*Replace\x20table\x20cells*','$graveyard','requires','TrackChangesEditing','tablePaste','first','getShiftedBy','find','insertionRanges','remove','removeMarkers','subType','plugins','registerCustomCallback','some','push','insert','map','differ','afterInit','tableCellHorizontalAlignment','join','removeRows','oldRange','getMarkers','getChangedMarkers','_splitMarkerName','element','end','add','author','registerDescriptionCallback','includes','column','get','model','length','table','tableCell','tableCellSuggestion','fromEntries','insertContent','batch','columnInsertionIndexes','ck-suggestion-marker--active','removeMarker','rootName','name','previousSibling','getSuggestions','markerAttributes','previous','tableCellPadding','commands','next','activeMarkers','rowInsertionRanges','getSuggestion','getRowIndexes','tablePasteCell','tableCellVerticalAlignment','type','fill','unwrap','every','getTableIfOnlyTableInContent','accept','updateMarker','getSuggestionCallback','registerPostFixer','isEqual','isInContent','entries','setAttributes','markMultiRangeInsertion','suggestion-td','move','view','schema','locale','getRows','tablePasteChainId','suggestionLoaded','tableCellBorderStyle','redo','insertion','wrap','createRange','findAncestor','getRange','deletionRanges','elementToElement','createTableWalker','newRange','attributes','clipboardOutput','return','insertRows','change','_tablePostFixingSubtypes','suggestion','has','TableClipboard'];(function(_0x6c9c25,_0x4b01d5){const _0x184da6=function(_0x10abfa){while(--_0x10abfa){_0x6c9c25['push'](_0x6c9c25['shift']());}};_0x184da6(++_0x4b01d5);}(_0x4b01,0x80));const _0x184d=function(_0x6c9c25,_0x4b01d5){_0x6c9c25=_0x6c9c25-0x0;let _0x184da6=_0x4b01[_0x6c9c25];return _0x184da6;};import{getTranslation as _0x38897b}from'../utils/common-translations';import{Plugin as _0x4ddeb8}from'ckeditor5/src/core';import{uid as _0x34be95,priorities as _0x481e82}from'ckeditor5/src/utils';import _0x1f9f87 from'./table';const le=[_0x184d('0x27'),_0x184d('0x48'),_0x184d('0xf'),_0x184d('0x73'),_0x184d('0x9b'),_0x184d('0x31'),_0x184d('0x93')],ae=Object[_0x184d('0x87')](le[_0x184d('0x70')](_0xac1943=>[_0xac1943,null]));export default class wt extends _0x4ddeb8{static get[_0x184d('0x61')](){return[_0x1f9f87];}[_0x184d('0x72')](){const _0xd4fad9=this[_0x184d('0x29')];if(!_0xd4fad9['plugins'][_0x184d('0x21')]('TableClipboard'))return;const _0x4e2471=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x184d('0x62')),_0x3f6e58=_0xd4fad9[_0x184d('0x6b')]['get'](_0x184d('0x2e')),_0x523495=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x1f9f87),_0x8c8a3a=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x184d('0x22'));_0x523495[_0x184d('0x1f')][_0x184d('0x6e')](_0x184d('0x23'),_0x184d('0x4e')),_0xd4fad9[_0x184d('0x82')][_0x184d('0xa')][_0x184d('0x42')]('tableCellSuggestion',{'allowIn':_0x184d('0x85'),'allowContentOf':'tableCell','isLimit':!0x0}),_0xd4fad9[_0x184d('0x3d')][_0x184d('0x17')]({'model':_0x184d('0x86'),'view':_0x184d('0x7')});let _0x265b82=null;_0xd4fad9['model']['on'](_0x184d('0x88'),(_0x203dce,_0x511b6d)=>{const [_0x1159ba,_0x92be55]=_0x511b6d,_0x94c313=_0x511b6d[_0x511b6d[_0x184d('0x83')]-0x1];_0x94c313&&_0x94c313['forceDefaultExecution']||_0x4e2471['_isForcedDefaultExecutionBlock']||this[_0x184d('0x29')][_0x184d('0x94')][_0x184d('0x81')](_0x184d('0x34'))[_0x184d('0x2f')]&&function(_0x4289a6,_0x4e8600,_0x114d45,_0xa15b59,_0x20d335){if(_0x4e8600&&!_0x4e8600['is']('documentSelection'))return!0x1;const _0xae13a2=_0x20d335[_0x184d('0xa0')](_0x4289a6,_0x114d45);if(!_0xae13a2||!fe(_0xae13a2,void 0x0,_0xa15b59))return!0x1;const _0xbb44c1=_0xa15b59['getSelectionAffectedTableCells'](_0x114d45['document']['selection']);if(!_0xbb44c1[_0x184d('0x83')])return!0x1;const _0x44780c=_0xbb44c1[0x0][_0x184d('0x14')](_0x184d('0x84')),_0x4a834f=_0xa15b59[_0x184d('0x99')](_0xbb44c1),_0x2de1d0=_0xa15b59[_0x184d('0x24')](_0xbb44c1),_0x12e68f={'startRow':_0x4a834f['first'],'endRow':_0x4a834f[_0x184d('0x52')],'startColumn':_0x2de1d0[_0x184d('0x64')],'endColumn':_0x2de1d0[_0x184d('0x52')]};return 0x1==_0xbb44c1[_0x184d('0x83')]&&(_0x12e68f['endRow']+=_0xa15b59[_0x184d('0xc')](_0xae13a2)-0x1,_0x12e68f[_0x184d('0x2c')]+=_0xa15b59['getColumns'](_0xae13a2)-0x1),fe(_0x44780c,_0x12e68f,_0xa15b59);}(_0x1159ba,_0x92be55,_0xd4fad9[_0x184d('0x82')],_0x3f6e58,_0x8c8a3a)&&(_0x203dce[_0x184d('0x2d')](),_0x265b82={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd4fad9[_0x184d('0x82')]['change'](()=>{_0xd4fad9['model'][_0x184d('0x88')](_0x511b6d[0x0],_0x511b6d[0x1],_0x511b6d[0x2],{'forceDefaultExecution':!0x0});const _0x198529=_0x34be95(),{rowInsertionRanges:_0x2f28eb,columnInsertionRanges:_0x26edba,insertionRanges:_0x5be680,deletionRanges:_0x50da88,cells:_0x157d5a}=_0x265b82;_0x2f28eb[_0x184d('0x83')]&&_0x4e2471['markMultiRangeInsertion'](_0x2f28eb,_0x184d('0x23'),{'tablePasteChainId':_0x198529}),_0x26edba['length']&&_0x4e2471['markMultiRangeInsertion'](_0x26edba,_0x184d('0x4e'),{'tablePasteChainId':_0x198529}),_0x5be680['length']&&_0x4e2471[_0x184d('0x6')](_0x5be680,'tablePaste',{'tablePasteChainId':_0x198529,'skipNestingCheck':!0x0}),_0x50da88['length']&&_0x4e2471['markMultiRangeDeletion'](_0x50da88,'tablePaste',{'tablePasteChainId':_0x198529,'skipNestingCheck':!0x0});const _0x1b505c=_0x4e2471['markMultiRangeBlockFormat'](_0x157d5a[_0x184d('0x70')](({element:_0x4c0e84})=>_0x4c0e84),{'formatGroupId':_0x34be95()},[],_0x184d('0x9a'),{'tablePasteChainId':_0x198529});if(_0x1b505c){const _0x5f181a=_0x1b505c[_0x184d('0x77')](),_0x47654a=[];for(const {element:_0x2c3732,attributes:_0x2d5cd8}of _0x157d5a){if(!_0x2d5cd8)continue;const _0xd91fb9=_0xd4fad9['model'][_0x184d('0x3b')](_0x2c3732),_0x39a470=_0x5f181a[_0x184d('0x66')](_0x503c86=>_0x503c86[_0x184d('0x15')]()[_0x184d('0x2')](_0xd91fb9));_0x39a470&&_0x47654a[_0x184d('0x6e')]([_0x39a470['name'],_0x2d5cd8]);}_0x47654a[_0x184d('0x83')]&&_0x1b505c['setAttribute'](_0x184d('0x91'),Object[_0x184d('0x87')](_0x47654a));}_0x265b82=null;}));},{'priority':_0x481e82[_0x184d('0x35')]+0xa}),_0xd4fad9['plugins'][_0x184d('0x81')](_0x184d('0x22'))['on'](_0x184d('0x50'),(_0x4aa292,_0x23d722)=>{const [_0xf0ffbe,_0x51fa1a,,_0x2c9485]=_0x23d722;if(!_0x265b82)return;_0x4aa292[_0x184d('0x2d')]();const _0xe9a789=_0xf0ffbe[_0x184d('0x3c')],_0x239f41=_0x51fa1a,_0x44789a=ce(_0xe9a789),_0x353310=ce(_0x239f41);_0x4aa292[_0x184d('0x1c')]=_0xe9a789;let _0x3b4640=null,_0x5eaa38=null;if(_0x353310||_0x44789a){if(_0x44789a&&!_0x353310){_0x2c9485[_0x184d('0x68')](_0xe9a789[_0x184d('0x3a')](0x0));for(const _0x3ba4c1 of Array[_0x184d('0x28')](_0x239f41[_0x184d('0x5d')]()))_0x2c9485[_0x184d('0x6f')](_0x3ba4c1,_0xe9a789,'end');const _0xf583f9=_0x265b82[_0x184d('0x53')][_0x184d('0x7f')](_0xf0ffbe['row']),_0x4f75e9=_0x265b82[_0x184d('0x8a')][_0x184d('0x7f')](_0xf0ffbe[_0x184d('0x80')]);_0xf583f9||_0x4f75e9||(_0x3b4640=_0x2c9485[_0x184d('0x43')](_0xe9a789));}else _0x353310&&!_0x44789a&&(_0x5eaa38=_0x2c9485[_0x184d('0x43')](_0xe9a789));}else{const _0x299c1f=_0x2c9485['createElement']('tableCellSuggestion'),_0x457f5f=_0x2c9485[_0x184d('0x58')](_0x184d('0x86'));_0x2c9485[_0x184d('0x12')](_0x2c9485['createRangeIn'](_0xe9a789),_0x457f5f),_0x2c9485[_0x184d('0x6f')](_0x299c1f,_0xe9a789,0x0);for(const _0x5d77b0 of Array[_0x184d('0x28')](_0x239f41[_0x184d('0x5d')]()))_0x2c9485[_0x184d('0x6f')](_0x5d77b0,_0x299c1f,_0x184d('0x7b'));_0x3b4640=_0x2c9485['createRangeOn'](_0x299c1f),_0x5eaa38=_0x2c9485[_0x184d('0x3b')](_0x457f5f);}const _0x419098=Array[_0x184d('0x28')](_0x239f41['getAttributes']())['filter'](([_0x5081ac])=>le[_0x184d('0x7f')](_0x5081ac));_0x265b82[_0x184d('0x3f')][_0x184d('0x6e')]({'element':_0xe9a789,'attributes':_0x419098[_0x184d('0x83')]?Object[_0x184d('0x87')](_0x419098):null}),_0x3b4640&&_0x265b82[_0x184d('0x67')][_0x184d('0x6e')](_0x3b4640),_0x5eaa38&&_0x265b82[_0x184d('0x16')]['push'](_0x5eaa38);},{'priority':_0x184d('0x35')}),_0x3f6e58['on'](_0x184d('0x51'),(_0x162296,_0x41ad7e)=>{const [_0x22833e,_0x4d1730={}]=_0x41ad7e;if(!_0x265b82)return;const _0x3cb664=_0x4d1730['at']||0x0,_0x42cec9=_0x4d1730[_0x184d('0x49')]||0x1;_0x265b82[_0x184d('0x8a')]=new Array(_0x42cec9)[_0x184d('0x9d')](_0x3cb664)[_0x184d('0x70')]((_0x57207b,_0x58fa54)=>_0x57207b+_0x58fa54);for(const {cell:_0x1ad320}of _0x3f6e58[_0x184d('0x18')](_0x22833e,{'startColumn':_0x3cb664,'endColumn':_0x3cb664+_0x42cec9-0x1}))_0x265b82[_0x184d('0x5a')][_0x184d('0x6e')](_0xd4fad9[_0x184d('0x82')]['createRangeOn'](_0x1ad320));},{'priority':'low'}),_0x3f6e58['on'](_0x184d('0x1d'),(_0x4f915f,_0x57a23d)=>{const [_0x2a5839,_0x24e40b={}]=_0x57a23d;if(!_0x265b82)return;const _0x3ac23c=_0x24e40b['at']||0x0,_0x30138f=_0x24e40b['rows']||0x1;_0x265b82[_0x184d('0x53')]=new Array(_0x30138f)[_0x184d('0x9d')](_0x3ac23c)['map']((_0x455d6f,_0x2077b1)=>_0x455d6f+_0x2077b1);for(const {cell:_0x50a8f7}of _0x3f6e58[_0x184d('0x18')](_0x2a5839,{'startRow':_0x3ac23c,'endRow':_0x3ac23c+_0x30138f-0x1}))_0x265b82[_0x184d('0x97')]['push'](_0xd4fad9[_0x184d('0x82')][_0x184d('0x3b')](_0x50a8f7));},{'priority':'low'}),_0x4e2471['_descriptionFactory'][_0x184d('0x7e')](_0x37320b=>{if(_0x37320b['subType']&&_0x37320b[_0x184d('0x6a')][_0x184d('0x25')](_0x184d('0x63')))return _0x37320b[_0x184d('0x92')]?{}:{'type':_0x184d('0x11'),'content':_0x38897b(_0xd4fad9[_0x184d('0xb')],_0x184d('0x5f'))};});const _0x3c40e5=()=>!0x1;for(const _0x3998e1 of[_0x184d('0x63'),_0x184d('0x4e'),_0x184d('0x23'),_0x184d('0x9a')])_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x184d('0x11'),_0x3998e1,_0x184d('0x74'),_0x3c40e5),_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x184d('0x4f'),_0x3998e1,_0x184d('0x74'),_0x3c40e5),_0x4e2471['_suggestionFactory'][_0x184d('0x6c')](_0x184d('0x4d'),_0x3998e1,_0x184d('0x74'),_0x3c40e5);_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')]('formatBlock',_0x184d('0x9a'),_0x184d('0x36'),_0x3c40e5),_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x184d('0x4d'),_0x184d('0x9a'),_0x184d('0xa1'),(_0x51f182,_0x15d7fd,_0x23098a)=>{const _0x3b17fa=_0x51f182['map'](_0x4f4b4c=>_0x4f4b4c['getContainedElement']())['filter'](_0xe3d0ca=>_0xe3d0ca),_0x3e2212=new Map(_0x3b17fa[_0x184d('0x70')](_0x5c320a=>[_0x5c320a,null]));if(_0x265b82)for(const {element:_0x1d9a21,attributes:_0x11ca34}of _0x265b82[_0x184d('0x3f')])_0x11ca34&&_0x3e2212[_0x184d('0x40')](_0x1d9a21,_0x11ca34);else{if(_0x23098a&&_0x23098a[_0x184d('0x91')])for(const [_0x349e64,_0x2641b3]of Object[_0x184d('0x4')](_0x23098a['markerAttributes'])){const _0x372eed=_0xd4fad9[_0x184d('0x82')]['markers'][_0x184d('0x81')](_0x349e64),_0x360db7=_0x372eed?_0x372eed[_0x184d('0x15')]()[_0x184d('0x5b')]():null;_0x360db7&&_0x3e2212['set'](_0x360db7,_0x2641b3);}}_0xd4fad9[_0x184d('0x82')][_0x184d('0x1e')](_0x2c9add=>{for(const [_0x1493a9,_0x56f5e1]of _0x3e2212)_0x2c9add[_0x184d('0x5')]({...ae,..._0x56f5e1},_0x1493a9);});});const _0xce662d=(_0x3b0240,_0x1777a6)=>{_0x4e2471[_0x184d('0x45')][_0x184d('0x6c')](_0x3b0240,_0x184d('0x63'),_0x1777a6,(_0x1bef7e,_0x1b2479,_0x368f43)=>{_0xd4fad9[_0x184d('0x82')][_0x184d('0x1e')](_0xa01bbd=>{const _0x50ca0f=[];for(const _0x484d0d of _0x1bef7e){const _0x55ae0c=_0x484d0d[_0x184d('0x47')][_0x184d('0x54')];_0x55ae0c['is'](_0x184d('0x7a'),_0x184d('0x86'))&&_0x50ca0f[_0x184d('0x6e')](_0x55ae0c);}_0x4e2471[_0x184d('0x45')][_0x184d('0x0')](_0x3b0240,null,_0x1777a6)(_0x1bef7e,_0x1b2479,_0x368f43);for(const _0x190e74 of _0x50ca0f)_0x184d('0x60')!=_0x190e74['root'][_0x184d('0x8d')]&&_0xa01bbd['unwrap'](_0x190e74);});});};_0xce662d(_0x184d('0x11'),_0x184d('0xa1')),_0xce662d(_0x184d('0x11'),_0x184d('0x36')),_0xce662d(_0x184d('0x4f'),_0x184d('0xa1')),_0xce662d(_0x184d('0x4f'),_0x184d('0x36')),_0x4e2471[_0x184d('0x45')]['registerCustomCallback'](_0x184d('0x11'),'tablePasteRow',_0x184d('0x36'),_0x398f67=>{const _0x167a72=_0x398f67[_0x184d('0x70')](_0x4244e9=>_0x4244e9[_0x184d('0x5b')]()),_0x418def=_0x167a72[0x0][_0x184d('0x14')](_0x184d('0x84')),{minRow:_0x257b4d,maxRow:_0x3dbb1b}=_0x523495[_0x184d('0x2b')](_0x167a72);_0x3f6e58[_0x184d('0x75')](_0x418def,{'at':_0x257b4d,'rows':_0x3dbb1b-_0x257b4d+0x1});}),_0x4e2471[_0x184d('0x45')]['registerCustomCallback'](_0x184d('0x11'),_0x184d('0x4e'),_0x184d('0x36'),_0x50c56e=>{const _0x109bc1=_0x50c56e[_0x184d('0x70')](_0x49eacb=>_0x49eacb[_0x184d('0x5b')]()),_0x17b6be=_0x109bc1[0x0]['findAncestor'](_0x184d('0x84')),{minColumn:_0x1513ae,maxColumn:_0x35a933}=_0x523495[_0x184d('0x2b')](_0x109bc1);_0x3f6e58[_0x184d('0x59')](_0x17b6be,{'at':_0x1513ae,'columns':_0x35a933-_0x1513ae+0x1});});const _0x495104=(_0x2aec1a,_0x2f3166)=>{if(!_0x2f3166[_0x184d('0x6a')]||!_0x2f3166[_0x184d('0x6a')][_0x184d('0x25')](_0x184d('0x63')))return;const _0xc9e099=_0x2f3166[_0x184d('0x1a')][_0x184d('0xd')],_0xbecfe=_0x4e2471[_0x184d('0x90')]()[_0x184d('0x5e')](_0x579be8=>_0x579be8[_0x184d('0x3')]&&_0x579be8[_0x184d('0x1a')]&&_0x579be8[_0x184d('0x1a')][_0x184d('0xd')]==_0xc9e099);_0xbecfe[_0x184d('0x83')]&&_0x2f3166[_0x184d('0x37')]()[_0x184d('0x83')]!=_0xbecfe[_0x184d('0x83')]&&_0xbecfe['reduce']((_0x25f3b3,_0x80583b)=>(_0x25f3b3[_0x184d('0x95')]=_0x80583b,_0x80583b['previous']=_0x25f3b3,_0x80583b));};function _0x36f288(_0x242c4d,_0x4061a8=!0x0){const {id:_0x57809e}=_0x4e2471[_0x184d('0x79')](_0x242c4d[_0x184d('0x26')]),_0x34c97d=['ck-suggestion-marker',_0x184d('0x4c')],_0xa34315=_0x4e2471[_0x184d('0x96')][_0x184d('0x7f')](_0x242c4d[_0x184d('0x26')]);return _0xa34315&&_0x34c97d[_0x184d('0x6e')](_0x184d('0x8b')),{'classes':_0x34c97d,'attributes':{'data-suggestion':_0x57809e},'priority':_0xa34315&&_0x4061a8?0xbc2:0xbb8};}_0x4e2471['on'](_0x184d('0xe'),_0x495104,{'priority':'high'}),_0x4e2471['on'](_0x184d('0x4a'),_0x495104,{'priority':'high'}),_0xd4fad9[_0x184d('0x82')]['document']['registerPostFixer'](()=>{let _0x3b2eb7=!0x1;const _0x361168=Array['from'](_0xd4fad9['model']['document'][_0x184d('0x71')][_0x184d('0x78')]());for(const {name:_0x1b6069,data:_0x4ee39c}of _0x361168){const {group:_0x2223b3,type:_0x287c8e,id:_0x5d7060}=_0x4e2471[_0x184d('0x79')](_0x1b6069);if(_0x184d('0x20')!=_0x2223b3||'deletion'!=_0x287c8e||_0x4ee39c['oldRange'])continue;if(!_0x4e2471['hasSuggestion'](_0x5d7060))continue;const _0x1c7220=_0x4e2471[_0x184d('0x98')](_0x5d7060)[_0x184d('0x46')](),_0x1b461c=_0xd4fad9[_0x184d('0x6b')]['get'](_0x184d('0x56'))['me'];for(const _0x2de52f of _0x4e2471[_0x184d('0x90')]()){if(!_0x2de52f[_0x184d('0x3')]||_0x2de52f['author']!=_0x1b461c)continue;if(_0x184d('0x4d')!=_0x2de52f[_0x184d('0x9c')]||'tablePasteCell'!=_0x2de52f[_0x184d('0x6a')])continue;if(_0x2de52f[_0x184d('0x46')]()[_0x184d('0x9f')](_0x4f8dfd=>_0x1c7220[_0x184d('0x6d')](_0x173de0=>_0x173de0[_0x184d('0x55')](_0x4f8dfd,!0x0))))for(const _0xaef2da of _0x2de52f[_0x184d('0x37')]())_0xaef2da[_0x184d('0x3')]&&(_0xaef2da['discard'](),_0x3b2eb7=!0x0);}}return _0x3b2eb7;}),_0xd4fad9[_0x184d('0x82')]['document'][_0x184d('0x1')](_0x4e901c=>{const _0x5e13ae=_0xd4fad9[_0x184d('0x94')][_0x184d('0x81')](_0x184d('0x10'));if(!_0x5e13ae||!_0x5e13ae[_0x184d('0x39')][_0x184d('0x21')](_0x4e901c[_0x184d('0x89')]))return!0x1;let _0x135ecf=!0x1;const _0x2cc81e=_0xd4fad9[_0x184d('0x6b')][_0x184d('0x81')](_0x184d('0x56'))['me'],_0x287397=_0xd4fad9[_0x184d('0x82')]['document']['differ']['getChanges'](),_0x54c62b=Array[_0x184d('0x28')](_0xd4fad9['model'][_0x184d('0x41')][_0x184d('0x71')][_0x184d('0x78')]())[_0x184d('0x5e')](({name:_0x4c5541,data:_0x328607})=>{const {group:_0xf824cb,subType:_0x418705,authorId:_0x5e5a31}=_0x4e2471[_0x184d('0x79')](_0x4c5541);return _0x184d('0x20')==_0xf824cb&&_0x184d('0x63')==_0x418705&&_0x5e5a31==_0x2cc81e['id']&&!_0x328607[_0x184d('0x76')];});for(const _0x321505 of _0x287397){if(_0x184d('0x6f')!=_0x321505[_0x184d('0x9c')]||_0x184d('0x86')!=_0x321505[_0x184d('0x8e')]||0x1!=_0x321505[_0x184d('0x83')])continue;const _0x399d68=_0x4e901c[_0x184d('0x13')](_0x321505['position'],_0x321505[_0x184d('0x4b')][_0x184d('0x65')](0x1));if(!_0x54c62b['find'](({data:_0x12ebc8})=>_0x12ebc8['newRange'][_0x184d('0x2')](_0x399d68)))for(const {name:_0xe36d9d,data:_0x106554}of _0x54c62b)if(_0x399d68['containsRange'](_0x106554[_0x184d('0x19')])){_0x4e901c[_0x184d('0xa2')](_0xe36d9d,{'range':_0x399d68}),_0x135ecf=!0x0;break;}}return _0x135ecf;}),_0xd4fad9['model'][_0x184d('0x41')][_0x184d('0x1')](_0x35aa14=>{let _0x55d2dc=!0x1;const _0x27625a=_0xd4fad9[_0x184d('0x6b')]['get'](_0x184d('0x56'))['me'],_0x5c8696=_0x4e2471['getSuggestions']()[_0x184d('0x5e')](_0x5c40cc=>_0x5c40cc[_0x184d('0x3')]&&_0x5c40cc[_0x184d('0x7d')]==_0x27625a),_0x3a0518=new Set(),_0x567c2f=new Set();for(const _0x39fb1c of _0x5c8696)if('tablePaste'==_0x39fb1c[_0x184d('0x6a')])for(const _0x3daad9 of _0x39fb1c[_0x184d('0x77')]()){const _0x1b3ab1=_0x3daad9[_0x184d('0x15')]()[_0x184d('0x5b')]();if(_0x1b3ab1){if(_0x1b3ab1['is'](_0x184d('0x7a'),'tableCellSuggestion')&&ce(_0x1b3ab1)){_0x39fb1c[_0x184d('0x8c')](_0x3daad9[_0x184d('0x8e')]),_0x3a0518[_0x184d('0x7c')](_0x1b3ab1),_0x55d2dc=!0x0;const _0x23c3ab=_0x1b3ab1['nextSibling'],_0x26a6a6=_0x1b3ab1[_0x184d('0x8f')],_0x4103a1=_0x23c3ab&&_0x23c3ab['is'](_0x184d('0x7a'),_0x184d('0x86')),_0xaa50d4=_0x26a6a6&&_0x26a6a6['is'](_0x184d('0x7a'),'tableCellSuggestion');_0x4103a1&&!_0x3a0518[_0x184d('0x21')](_0x23c3ab)&&_0x567c2f[_0x184d('0x7c')](_0x23c3ab),_0xaa50d4&&!_0x3a0518[_0x184d('0x21')](_0x26a6a6)&&_0x567c2f[_0x184d('0x7c')](_0x26a6a6);}else _0x1b3ab1['is'](_0x184d('0x7a'),'paragraph')&&_0x1b3ab1['isEmpty']&&(_0x39fb1c['removeMarker'](_0x3daad9[_0x184d('0x8e')]),_0x55d2dc=!0x0);}}else{if(_0x184d('0x9a')==_0x39fb1c['subType']){if(!_0x39fb1c[_0x184d('0x1a')]||!_0x39fb1c[_0x184d('0x1a')][_0x184d('0xd')])continue;const _0x5c0c28=_0x39fb1c['attributes'][_0x184d('0x91')];if(_0x5c0c28&&Object[_0x184d('0x30')](_0x5c0c28)[_0x184d('0x83')])continue;const _0x183c3c=_0x39fb1c[_0x184d('0x1a')][_0x184d('0xd')];let _0x41448b=!0x0,_0x5c5894=!0x0;for(const _0x3815e2 of _0x5c8696)if(_0x3815e2[_0x184d('0x6a')]&&_0x3815e2[_0x184d('0x6a')][_0x184d('0x25')]('tablePaste')){if(!_0x3815e2[_0x184d('0x1a')][_0x184d('0xd')]){_0x5c5894=!0x1;break;}if(_0x3815e2['id']!=_0x39fb1c['id']&&_0x3815e2[_0x184d('0x1a')][_0x184d('0xd')]==_0x183c3c){_0x41448b=!0x1;break;}}_0x5c5894&&_0x41448b&&(_0x39fb1c[_0x184d('0x69')](),_0x55d2dc=!0x0);}}for(const _0x47438d of _0x3a0518)_0x35aa14[_0x184d('0x68')](_0x47438d);for(const _0x3d7989 of _0x567c2f)_0x35aa14[_0x184d('0x9e')](_0x3d7989);return _0x55d2dc;}),_0xd4fad9['conversion'][_0x184d('0x33')]('editingDowncast')[_0x184d('0x57')]({'model':_0x184d('0x5c'),'view':(_0x27534e,_0x432ef7)=>_0x36f288(_0x27534e),'converterPriority':_0x184d('0x35')}),_0xd4fad9['conversion'][_0x184d('0x33')](_0x184d('0x38'))[_0x184d('0x57')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x195a9a,_0xe88f5d)=>_0xe88f5d['options']['showSuggestionHighlights']?_0x36f288(_0x195a9a,!0x1):null,'converterPriority':'high'});const _0x536271=_0xd4fad9[_0x184d('0x2a')][_0x184d('0x9')];this[_0x184d('0x32')](_0x536271[_0x184d('0x41')],_0x184d('0x1b'),(_0x3ab4d6,_0x1076ec)=>{const _0x276151=[];for(const _0x47d1da of _0x536271['createRangeIn'](_0x1076ec[_0x184d('0x3e')])['getItems']())_0x47d1da['is'](_0x184d('0x7a'),'suggestion-td')&&_0x276151[_0x184d('0x6e')](_0x47d1da);_0x536271[_0x184d('0x1e')](_0x584dd1=>{for(const _0x1359ef of _0x276151)_0x584dd1[_0x184d('0x8')](_0x584dd1['createRangeIn'](_0x1359ef),_0x584dd1['createPositionBefore'](_0x1359ef)),_0x584dd1[_0x184d('0x68')](_0x1359ef);});});}}function ce(_0x390952){if(_0x390952[_0x184d('0x44')])return!0x0;const _0x4670b6=_0x390952[_0x184d('0x3a')](0x0);return _0x4670b6['is'](_0x184d('0x7a'),'paragraph')&&_0x4670b6[_0x184d('0x44')];}function fe(_0x541746,_0x3e97c9={},_0x49bc39){for(const {isAnchor:_0x1adaf4,cellHeight:_0x3bb692,cellWidth:_0x2b8614}of _0x49bc39[_0x184d('0x18')](_0x541746,{'includeAllSlots':!0x0,..._0x3e97c9}))if(!_0x1adaf4||0x1!=_0x3bb692||0x1!=_0x2b8614)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa717=['registerCustomCallback','format','handleSuggestionDescription','commandParams','resizeTableWidth','get','resizeColumnWidths','discard','locale','selection','has','getTableColumnsWidths','*Format:*\x20resize\x20table','TrackChangesEditing','afterInit','accept','resizeTable','getSelectedElement','TableColumnResizeEditing','formatBlock','_descriptionFactory','getAttribute','registerDescriptionCallback','data','markBlockFormat','handleResizeTableWidthCommand','formatGroupId','model','_suggestionFactory','table','tableWidth','change','getSuggestions','bind','plugins','columnWidths','editor','enableCommand','getSuggestionCallback','Users','getColumnGroupElement'];(function(_0x285c96,_0xa717a1){const _0x16bf12=function(_0x330ab7){while(--_0x330ab7){_0x285c96['push'](_0x285c96['shift']());}};_0x16bf12(++_0xa717a1);}(_0xa717,0x10d));const _0x16bf=function(_0x285c96,_0xa717a1){_0x285c96=_0x285c96-0x0;let _0x16bf12=_0xa717[_0x285c96];return _0x16bf12;};import{Plugin as _0x1d8ef1}from'ckeditor5/src/core';import{getTranslation as _0x2e15d9}from'../utils/common-translations';export default class yt extends _0x1d8ef1{[_0x16bf('0x20')](){if(!this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x1c')](_0x16bf('0x24')))return;const _0x22c1f8=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')](_0x16bf('0x1f'));_0x22c1f8['enableCommand'](_0x16bf('0x16'),this[_0x16bf('0x2')][_0x16bf('0xa')](this)),_0x22c1f8[_0x16bf('0xe')](_0x16bf('0x18'),this['handleResizeTableWidthCommand'][_0x16bf('0xa')](this)),_0x22c1f8[_0x16bf('0x5')][_0x16bf('0x12')](_0x16bf('0x25'),'resizeTable','accept',_0x22c1f8[_0x16bf('0x5')][_0x16bf('0xf')](_0x16bf('0x25'),null,_0x16bf('0x19'))),_0x22c1f8[_0x16bf('0x5')][_0x16bf('0x12')](_0x16bf('0x25'),'resizeTable','discard',_0x22c1f8[_0x16bf('0x5')][_0x16bf('0xf')](_0x16bf('0x25'),null,_0x16bf('0x21'))),_0x22c1f8[_0x16bf('0x26')][_0x16bf('0x28')](this[_0x16bf('0x14')][_0x16bf('0xa')](this));}['handleResizeTableWidthCommand'](_0x387095,_0x53dc2e){const _0x19e294=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')](_0x16bf('0x1f')),_0x4ac5b2=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')]('TableColumnResizeEditing'),_0x1b4064=_0x53dc2e[_0x16bf('0x6')]||this['editor'][_0x16bf('0x4')]['document'][_0x16bf('0x1b')][_0x16bf('0x23')]();this[_0x16bf('0xd')][_0x16bf('0x4')][_0x16bf('0x8')](()=>{const _0x16e8a6=_0x4ac5b2[_0x16bf('0x11')](_0x1b4064);let _0x1e4b16=_0x16e8a6?_0x4ac5b2[_0x16bf('0x1d')](_0x16e8a6):null,_0x24a5d3=_0x1b4064[_0x16bf('0x27')](_0x16bf('0x7'))||null;const _0x961f4=_0x53dc2e[_0x16bf('0x7')]||_0x24a5d3,_0x57beea=_0x53dc2e[_0x16bf('0xc')]||_0x1e4b16,_0x53959d=this[_0x16bf('0xd')][_0x16bf('0xb')][_0x16bf('0x17')](_0x16bf('0x10'))['me'];for(const _0x2f99e6 of _0x19e294[_0x16bf('0x9')]()){const _0x18b5f2=_0x2f99e6['getContainedElement']();if(_0x16bf('0x22')===_0x2f99e6['subType']&&_0x18b5f2===_0x1b4064){_0x2f99e6['author']!==_0x53959d&&_0x2f99e6[_0x16bf('0x19')]();const _0xac7365=_0x2f99e6[_0x16bf('0x0')][_0x16bf('0x15')];_0x24a5d3=_0xac7365[0x0][_0x16bf('0x7')],_0x1e4b16=_0xac7365[0x0][_0x16bf('0xc')];break;}}_0x387095({'table':_0x1b4064,'tableWidth':_0x961f4,'columnWidths':_0x57beea}),_0x19e294[_0x16bf('0x1')](_0x1b4064,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x24a5d3,'columnWidths':_0x1e4b16}],'formatGroupId':_0x16bf('0x22')},[],_0x16bf('0x22'));});}[_0x16bf('0x14')](_0x4e6c02){const {data:_0x58a369}=_0x4e6c02;if(_0x58a369&&'resizeTable'===_0x58a369[_0x16bf('0x3')]){const _0x29a2bf=_0x16bf('0x1e');return{'type':_0x16bf('0x13'),'content':_0x2e15d9(this[_0x16bf('0xd')][_0x16bf('0x1a')],_0x29a2bf)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe822=['forceValue','findAncestor','consume','TableUtils','getSuggestion','addMarker:suggestion','enableCommand','_acceptFormatSuggestionCallbackFactory','stop','change','includes','ck-suggestion-marker--active','headingRows','accept','editing','createRange','addClass','document','_splitMarkerName','mapper','getCellLocation','FORMAT_HEADER_COLUMN','FORMAT_HEADER_ROW','selection','value','*Format:*\x20%0','cell','removeMarker:suggestion','ck-suggestion-marker-','setTableColumnHeader','TrackChangesEditing','options','createPositionAfter','end','_suggestionFactory','model','index','markerNameToElements','_descriptionFactory','FORMAT_REGULAR_ROW','afterInit','highest','getChild','removeClass','getAttribute','plugins','commandName','registerCustomCallback','getRowIndexes','parent','FORMAT_REGULAR_COLUMN','getSelectionAffectedTableCells','name','from','format','activeMarkers','item','markerRange','commandParams','markBlockFormat','formatBlock','getColumnIndexes','setTableRowHeader','toViewElement','registerDescriptionCallback','unbindElementFromMarkerName','headingColumns','downcastDispatcher','createTableWalker','data-suggestion','removeAttribute','nodeBefore','consumable','start','markerName','createPositionBefore','nodeAfter','writer','get','editor','data','commands'];(function(_0x2635e9,_0xe8221a){const _0x2cc73a=function(_0x397cd6){while(--_0x397cd6){_0x2635e9['push'](_0x2635e9['shift']());}};_0x2cc73a(++_0xe8221a);}(_0xe822,0x104));const _0x2cc7=function(_0x2635e9,_0xe8221a){_0x2635e9=_0x2635e9-0x0;let _0x2cc73a=_0xe822[_0x2635e9];return _0x2cc73a;};import{Plugin as _0x539ccb}from'ckeditor5/src/core';import _0x101b6e from'./table';import{getTranslation as _0x586ca8}from'../utils/common-translations';export default class kt extends _0x539ccb{static get['requires'](){return[_0x101b6e];}[_0x2cc7('0x1a')](){const _0x5a6fc5=this[_0x2cc7('0x41')];if(!_0x5a6fc5['plugins']['has']('TableEditing'))return;const _0x33f95c=_0x5a6fc5['locale'],_0x581ba7=_0x5a6fc5[_0x2cc7('0x1f')][_0x2cc7('0x40')](_0x2cc7('0x10')),_0xd1dbdd=_0x5a6fc5['plugins'][_0x2cc7('0x40')](_0x2cc7('0x47')),_0x268c15=_0x5a6fc5['plugins'][_0x2cc7('0x40')](_0x101b6e);function _0x266653({showActiveMarker:_0x118376=!0x0,setDataAttribute:_0x22230d=!0x0}={}){return(_0x5cb8ce,_0x418ac5,_0x5460cf)=>{const {type:_0x121453,id:_0x4907f6}=_0x581ba7[_0x2cc7('0x4')](_0x418ac5['markerName']),_0x5e36f6=_0x581ba7[_0x2cc7('0x48')](_0x4907f6);if(!_0x5e36f6[_0x2cc7('0x42')]||'setTableColumnHeader'!=_0x5e36f6[_0x2cc7('0x42')][_0x2cc7('0x20')])return;if(_0x418ac5[_0x2cc7('0x2a')])return void _0x5cb8ce[_0x2cc7('0x4c')]();if(!_0x5460cf[_0x2cc7('0x3a')][_0x2cc7('0x46')](_0x418ac5[_0x2cc7('0x2b')],_0x5cb8ce[_0x2cc7('0x26')]))return;const _0x10629d=_0x418ac5[_0x2cc7('0x2b')][_0x2cc7('0x3b')][_0x2cc7('0x3e')],_0x4f6991=_0x418ac5[_0x2cc7('0x2b')][_0x2cc7('0x13')][_0x2cc7('0x39')],_0x1a0257=_0x10629d['parent'][_0x2cc7('0x23')],{column:_0x562f7e}=_0xd1dbdd[_0x2cc7('0x6')](_0x10629d),{column:_0x2807c6}=_0xd1dbdd[_0x2cc7('0x6')](_0x4f6991);for(let _0x56084b=_0x562f7e;_0x56084b<=_0x2807c6;_0x56084b++){const _0xc96c31=_0xd1dbdd['createTableWalker'](_0x1a0257,{'column':_0x56084b,'includeAllSlots':!0x1});for(const _0x4a6322 of _0xc96c31){const _0x32e92a=_0x4a6322[_0x2cc7('0xc')],_0x3336cd=_0x5460cf['mapper'][_0x2cc7('0x31')](_0x32e92a);_0x5460cf[_0x2cc7('0x3f')]['addClass'](_0x2cc7('0xe')+_0x121453,_0x3336cd),_0x22230d&&_0x5460cf['writer']['setAttribute']('data-suggestion',_0x4907f6,_0x3336cd),_0x5460cf[_0x2cc7('0x5')]['bindElementToMarker'](_0x3336cd,_0x418ac5['markerName']),_0x118376&&(_0x581ba7[_0x2cc7('0x29')][_0x2cc7('0x4e')](_0x418ac5[_0x2cc7('0x3c')])?_0x5460cf[_0x2cc7('0x3f')][_0x2cc7('0x2')]('ck-suggestion-marker--active',_0x3336cd):_0x5460cf[_0x2cc7('0x3f')][_0x2cc7('0x1d')](_0x2cc7('0x4f'),_0x3336cd));}}};}_0x581ba7[_0x2cc7('0x4a')]('setTableRowHeader',(_0x5d2d54,_0x4c8dec)=>{const _0x799a82=_0xd1dbdd[_0x2cc7('0x25')](_0x5a6fc5['model']['document']['selection']),_0x526f04=_0xd1dbdd[_0x2cc7('0x22')](_0x799a82),_0xe8057f=_0x799a82[0x0][_0x2cc7('0x45')]('table'),_0x201d51=_0xe8057f['getAttribute'](_0x2cc7('0x50'))||0x0,_0x286405=_0x4c8dec&&null!==_0x4c8dec[_0x2cc7('0x44')]?_0x4c8dec[_0x2cc7('0x44')]:!_0x5a6fc5[_0x2cc7('0x43')][_0x2cc7('0x40')](_0x2cc7('0x30'))[_0x2cc7('0xa')],_0x20179d=_0x286405?_0x526f04['last']:_0x526f04['first'],_0x2e6a50=_0xe8057f[_0x2cc7('0x1c')](_0x20179d);let _0x465ed1;if(_0x286405){const _0x379667=_0xe8057f[_0x2cc7('0x1c')](_0x201d51);if(_0x2e6a50[_0x2cc7('0x16')]<_0x379667[_0x2cc7('0x16')])return;_0x465ed1=_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x1')](_0x5a6fc5['model']['createPositionBefore'](_0x379667[_0x2cc7('0x1c')](0x0)),_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x12')](_0x2e6a50[_0x2cc7('0x1c')](_0x2e6a50['childCount']-0x1)));}else{const _0xd9bcbd=_0xe8057f[_0x2cc7('0x1c')](_0x201d51-0x1);if(!_0xd9bcbd)return;_0x465ed1=_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x1')](_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x3d')](_0x2e6a50[_0x2cc7('0x1c')](0x0)),_0x5a6fc5['model'][_0x2cc7('0x12')](_0xd9bcbd['getChild'](_0xd9bcbd['childCount']-0x1)));}_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x4d')](()=>{_0x581ba7['markBlockFormat'](_0x465ed1,{'commandName':_0x2cc7('0x30'),'commandParams':[{'forceValue':_0x286405}]},[],'setTableRowHeader');});}),_0x581ba7[_0x2cc7('0x4a')](_0x2cc7('0xf'),(_0x875bbc,_0x4c7a7c)=>{const _0x4899cf=_0x5a6fc5[_0x2cc7('0x1f')][_0x2cc7('0x40')](_0x2cc7('0x47')),_0x209ec1=_0x4899cf['getSelectionAffectedTableCells'](_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x3')][_0x2cc7('0x9')]),_0x4f93b0=_0x4899cf[_0x2cc7('0x2f')](_0x209ec1),_0x486c36=_0x209ec1[0x0][_0x2cc7('0x45')]('table'),_0x9f7a6=_0x486c36[_0x2cc7('0x1e')](_0x2cc7('0x34'))||0x0,_0x297936=_0x4c7a7c&&null!==_0x4c7a7c[_0x2cc7('0x44')]?_0x4c7a7c['forceValue']:!_0x5a6fc5[_0x2cc7('0x43')]['get']('setTableColumnHeader')[_0x2cc7('0xa')];let _0x57e894;const _0x2171aa=_0x486c36['getChild'](0x0),_0x4adb68=_0x297936?_0x4f93b0['last']:_0x4f93b0['first'],_0xacd3f4=_0x4899cf[_0x2cc7('0x36')](_0x486c36,{'startRow':0x0,'column':_0x4adb68,'includeAllSlots':!0x1}),_0x4fff62=Array[_0x2cc7('0x27')](_0xacd3f4)[0x0]['cell'];if(_0x297936){const _0x3940ea=_0x2171aa[_0x2cc7('0x1c')](_0x9f7a6);if(_0x4fff62['isBefore'](_0x3940ea))return;_0x57e894=_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x1')](_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x3d')](_0x3940ea),_0x5a6fc5['model'][_0x2cc7('0x12')](_0x4fff62));}else{const _0x3e4ca4=_0x2171aa[_0x2cc7('0x1c')](_0x9f7a6-0x1);if(!_0x3e4ca4)return;_0x57e894=_0x5a6fc5[_0x2cc7('0x15')]['createRange'](_0x5a6fc5['model'][_0x2cc7('0x3d')](_0x4fff62),_0x5a6fc5[_0x2cc7('0x15')][_0x2cc7('0x12')](_0x3e4ca4));}_0x5a6fc5[_0x2cc7('0x15')]['change'](()=>{_0x581ba7[_0x2cc7('0x2d')](_0x57e894,{'commandName':_0x2cc7('0xf'),'commandParams':[{'forceValue':_0x297936}]},[],'setTableColumnHeader');});}),_0x5a6fc5[_0x2cc7('0x0')][_0x2cc7('0x35')]['on'](_0x2cc7('0x49'),_0x266653(),{'priority':_0x2cc7('0x1b')}),_0x5a6fc5[_0x2cc7('0x42')]['downcastDispatcher']['on'](_0x2cc7('0x49'),(_0x5ef988,_0x555014,_0x53b9ee)=>{_0x53b9ee[_0x2cc7('0x11')]['showSuggestionHighlights']&&_0x266653({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ef988,_0x555014,_0x53b9ee);},{'priority':'highest'}),_0x5a6fc5[_0x2cc7('0x0')][_0x2cc7('0x35')]['on'](_0x2cc7('0xd'),(_0xaa4358,_0x4a9ffe,_0x172c1c)=>{const {type:_0x45354c,id:_0x3fc5aa}=_0x581ba7[_0x2cc7('0x4')](_0x4a9ffe['markerName']),_0x42e207=_0x581ba7['getSuggestion'](_0x3fc5aa);if(!_0x42e207['data']||_0x2cc7('0xf')!=_0x42e207[_0x2cc7('0x42')][_0x2cc7('0x20')])return;const _0x1c44ad=_0x172c1c['mapper'][_0x2cc7('0x17')](_0x4a9ffe[_0x2cc7('0x3c')]);if(_0x1c44ad)for(const _0x175ac2 of _0x1c44ad)_0x172c1c[_0x2cc7('0x3f')][_0x2cc7('0x1d')](_0x2cc7('0xe')+_0x45354c,_0x175ac2),_0x172c1c[_0x2cc7('0x3f')][_0x2cc7('0x1d')](_0x2cc7('0x4f'),_0x175ac2),_0x172c1c[_0x2cc7('0x3f')][_0x2cc7('0x38')](_0x2cc7('0x37'),_0x175ac2),_0x172c1c[_0x2cc7('0x5')][_0x2cc7('0x33')](_0x175ac2,_0x4a9ffe['markerName']);},{'priority':_0x2cc7('0x1b')}),_0x581ba7[_0x2cc7('0x18')][_0x2cc7('0x32')](_0x466c90=>{const {data:_0x118902}=_0x466c90;if(_0x118902){if('setTableRowHeader'==_0x118902['commandName']){const _0xbf718e=_0x118902[_0x2cc7('0x2c')][0x0][_0x2cc7('0x44')];return _0x1f4e5e(_0x586ca8(_0x33f95c,_0xbf718e?_0x2cc7('0x8'):_0x2cc7('0x19')));}if('setTableColumnHeader'==_0x118902[_0x2cc7('0x20')]){const _0x5e7254=_0x118902[_0x2cc7('0x2c')][0x0]['forceValue'];return _0x1f4e5e(_0x586ca8(_0x33f95c,_0x5e7254?_0x2cc7('0x7'):_0x2cc7('0x24')));}}function _0x1f4e5e(_0x4864cb){return{'type':_0x2cc7('0x28'),'content':_0x586ca8(_0x33f95c,_0x2cc7('0xb'),_0x4864cb)};}});const _0xfadaf8=_0x268c15[_0x2cc7('0x4b')]();_0x581ba7[_0x2cc7('0x14')][_0x2cc7('0x21')](_0x2cc7('0x2e'),_0x2cc7('0x30'),'accept',_0xfadaf8),_0x581ba7['_suggestionFactory']['registerCustomCallback'](_0x2cc7('0x2e'),_0x2cc7('0xf'),_0x2cc7('0x51'),_0xfadaf8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f63=['type','push','_areMergableCells','TrackChangesEditing','tableCell','editor','createRangeOn','subType','findAncestor','getFirstPosition','rootName','containsRange','forceDefaultExecution','fromRange','selection','highest','horizontally','getRanges','afterInit','*Split\x20cell:*\x20vertically','createTableWalker','model','accept','mergeTableCellUp','root','change','cell','_suggestionFactory','markMultiRangeBlockFormat','author','plugins','size','direction','element','splitTableCellVertically','set:isEnabled','*Split\x20cell:*\x20horizontally','add','insertion','isInContent','refresh','deletion','detach','format','stop','_tablePostFixingSubtypes','registerCustomCallback','mergeTableCellLeft','TableEditing','requires','execute','enableCommand','return','TableUtils','has','document','getAncestors','mergeTableCellRight','isEnabled','markBlockFormat','value','mergeTableCells','length','registerDescriptionCallback','map','splitTableCellHorizontally','mergeTableCellDown','formatBlock','$graveyard','_acceptFormatSuggestionCallbackFactory','_areSelectedCellsMergable','commands','*Merge\x20cells*','commandName','from','_descriptionFactory','getSelectionAffectedTableCells','get'];(function(_0x1174b6,_0x4f6324){const _0x287e31=function(_0x49de4d){while(--_0x49de4d){_0x1174b6['push'](_0x1174b6['shift']());}};_0x287e31(++_0x4f6324);}(_0x4f63,0xad));const _0x287e=function(_0x1174b6,_0x4f6324){_0x1174b6=_0x1174b6-0x0;let _0x287e31=_0x4f63[_0x1174b6];return _0x287e31;};import{Plugin as _0x37d910}from'ckeditor5/src/core';import _0x549b01 from'./table';import{LiveRange as _0x1c885f}from'ckeditor5/src/engine';import{getTranslation as _0x1f7d08}from'../utils/common-translations';export default class pt extends _0x37d910{static get[_0x287e('0x20')](){return[_0x549b01];}[_0x287e('0x1')](){const _0xeb7e82=this[_0x287e('0x42')],_0x14b379=_0xeb7e82[_0x287e('0x4')][_0x287e('0x26')]['selection'],_0x24a4d7=_0xeb7e82['locale'];if(!_0xeb7e82[_0x287e('0xd')][_0x287e('0x25')](_0x287e('0x1f')))return;const _0x2a371b=_0xeb7e82['plugins'][_0x287e('0x3c')](_0x287e('0x40')),_0x6e8759=_0xeb7e82['plugins'][_0x287e('0x3c')](_0x287e('0x24')),_0x4a6a18=_0xeb7e82[_0x287e('0xd')][_0x287e('0x3c')](_0x549b01);_0x4a6a18[_0x287e('0x1c')][_0x287e('0x3e')]('mergeTableCells'),_0x2a371b[_0x287e('0x22')](_0x287e('0x2c'),()=>{const _0x5997a7=_0x6e8759['getSelectionAffectedTableCells'](_0xeb7e82['model'][_0x287e('0x26')]['selection']);_0xeb7e82[_0x287e('0x4')][_0x287e('0x8')](()=>{_0x2a371b[_0x287e('0xb')](_0x5997a7,{'commandName':_0x287e('0x2c'),'commandParams':[]},[],_0x287e('0x2c'));});}),_0xeb7e82[_0x287e('0x36')][_0x287e('0x3c')](_0x287e('0x2c'))['on']('execute',(_0x2b510e,_0x36b628)=>{_0xeb7e82['commands']['get']('trackChanges')[_0x287e('0x2b')]&&(_0x36b628['length']>0x0&&_0x36b628[_0x36b628[_0x287e('0x2d')]-0x1]&&_0x36b628[_0x36b628[_0x287e('0x2d')]-0x1][_0x287e('0x49')]||_0x2a371b['_isForcedDefaultExecutionBlock']||this[_0x287e('0x35')]()||_0x2b510e[_0x287e('0x1b')]());},{'priority':_0x287e('0x4c')});for(const _0x541afd of['mergeTableCellUp',_0x287e('0x28'),_0x287e('0x31'),_0x287e('0x1e')]){const _0x30bbca=_0xeb7e82[_0x287e('0x36')][_0x287e('0x3c')](_0x541afd);_0x2a371b[_0x287e('0x22')](_0x541afd,()=>{const _0x47302e=_0xeb7e82['model']['document'][_0x287e('0x4b')][_0x287e('0x46')]()[_0x287e('0x27')]()['find'](_0x25d0d4=>_0x25d0d4['is'](_0x287e('0x10'),_0x287e('0x41'))),_0x2bddc4=_0x30bbca[_0x287e('0x2b')];_0xeb7e82[_0x287e('0x4')]['change'](()=>{_0x2a371b[_0x287e('0xb')]([_0x47302e,_0x2bddc4],{'commandName':_0x287e('0x2c'),'commandParams':[]},[],_0x287e('0x2c'));});});}for(const _0x572fa3 of['splitTableCellVertically',_0x287e('0x30')]){const _0x524b9d=_0xeb7e82[_0x287e('0x36')][_0x287e('0x3c')](_0x572fa3);_0x2a371b[_0x287e('0x22')](_0x572fa3,()=>{const _0x1b417f=_0x6e8759[_0x287e('0x3b')](_0xeb7e82[_0x287e('0x4')][_0x287e('0x26')]['selection'])[0x0],_0x3c42d9=_0x1b417f[_0x287e('0x45')]('table'),{column:_0x30daef,row:_0x4da2fe}=_0x6e8759['getCellLocation'](_0x1b417f);let _0x4b5059=[];if(_0x287e('0x4d')==_0x524b9d[_0x287e('0xf')]){const _0x12a96b=_0x6e8759[_0x287e('0x3')](_0x3c42d9,{'startRow':_0x4da2fe,'endRow':_0x4da2fe,'includeAllSlots':!0x0});_0x4b5059=Array[_0x287e('0x39')](_0x12a96b)['map'](_0xf898cf=>_0xf898cf['cell']);}else{const _0x4ce764=_0x6e8759[_0x287e('0x3')](_0x3c42d9,{'column':_0x30daef,'includeAllSlots':!0x0});_0x4b5059=Array['from'](_0x4ce764)['map'](_0x1692e2=>_0x1692e2[_0x287e('0x9')]);}_0xeb7e82['model']['change'](_0x599631=>{_0x2a371b[_0x287e('0x2a')](_0x599631[_0x287e('0x43')](_0x1b417f),{'commandName':_0x572fa3,'commandParams':[]},_0x4b5059,_0x572fa3);});});}_0x2a371b[_0x287e('0x3a')][_0x287e('0x2e')](_0x32bc1d=>{const {data:_0x322bf8}=_0x32bc1d;if(_0x322bf8)return _0x287e('0x2c')==_0x322bf8['commandName']?{'type':_0x287e('0x1a'),'content':_0x1f7d08(_0x24a4d7,_0x287e('0x37'))}:void 0x0;}),_0x2a371b['_descriptionFactory'][_0x287e('0x2e')](_0x5a7ebf=>{const {data:_0x1a3949}=_0x5a7ebf;if(_0x1a3949)return'splitTableCellVertically'==_0x1a3949['commandName']?{'type':_0x287e('0x1a'),'content':_0x1f7d08(_0x24a4d7,_0x287e('0x2'))}:'splitTableCellHorizontally'==_0x1a3949[_0x287e('0x38')]?{'type':_0x287e('0x1a'),'content':_0x1f7d08(_0x24a4d7,_0x287e('0x13'))}:void 0x0;});const _0x2d1046=_0x4a6a18[_0x287e('0x34')]();for(const _0x325d74 of[_0x287e('0x6'),'mergeTableCellRight',_0x287e('0x31'),_0x287e('0x1e')])_0x2a371b['_suggestionFactory'][_0x287e('0x1d')](_0x287e('0x32'),_0x325d74,'accept',_0x2d1046);for(const _0x4d6c98 of[_0x287e('0x11'),_0x287e('0x30')])_0x2a371b[_0x287e('0xa')]['registerCustomCallback'](_0x287e('0x32'),_0x4d6c98,_0x287e('0x5'),_0x2d1046);_0x2a371b[_0x287e('0xa')][_0x287e('0x1d')](_0x287e('0x32'),_0x287e('0x2c'),'accept',_0x2c7d37=>{_0xeb7e82['model'][_0x287e('0x8')](_0x36ec98=>{const _0x29395b=Array[_0x287e('0x39')](_0x14b379[_0x287e('0x0')]())[_0x287e('0x2f')](_0x57abc5=>_0x1c885f[_0x287e('0x4a')](_0x57abc5));_0x36ec98['setSelection'](_0x2c7d37),_0xeb7e82['commands'][_0x287e('0x3c')]('mergeTableCells')[_0x287e('0x17')](),_0xeb7e82[_0x287e('0x21')](_0x287e('0x2c'),{'forceDefaultExecution':!0x0});const _0x18258b=_0x29395b['filter'](_0xc1374=>_0x287e('0x33')!=_0xc1374[_0x287e('0x7')][_0x287e('0x47')]);_0x18258b[_0x287e('0x2d')]>0x0&&_0x36ec98['setSelection'](_0x18258b);for(const _0x4b63e4 of _0x29395b)_0x4b63e4[_0x287e('0x19')]();});});for(const _0x31ba80 of[_0x287e('0x6'),'mergeTableCellDown','mergeTableCellLeft',_0x287e('0x28')]){const _0x8a3360=_0xeb7e82['commands']['get'](_0x31ba80);_0x8a3360['on'](_0x287e('0x12'),(_0x50a5ad,_0x2fa60a,_0x572ef5)=>{if(_0x572ef5){const _0x5c027c=_0xeb7e82[_0x287e('0x4')][_0x287e('0x26')][_0x287e('0x4b')][_0x287e('0x46')]()[_0x287e('0x27')]()['find'](_0x59f29f=>_0x59f29f['is'](_0x287e('0x10'),_0x287e('0x41')));this['_areMergableCells'](_0x8a3360[_0x287e('0x2b')],_0x5c027c)||(_0x50a5ad[_0x287e('0x23')]=!0x1,_0x50a5ad[_0x287e('0x1b')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd58051=this[_0x287e('0x42')][_0x287e('0x36')]['get'](_0x287e('0x2c')),_0x1ab389=this['editor'][_0x287e('0xd')]['get'](_0x287e('0x24'));if(!_0xd58051[_0x287e('0x29')])return!0x1;const _0x31995d=_0x1ab389['getSelectionAffectedTableCells'](this[_0x287e('0x42')][_0x287e('0x4')][_0x287e('0x26')]['selection']);for(const _0x1fc9ac of _0x31995d)for(const _0x213741 of _0x31995d)if(_0x1fc9ac!=_0x213741&&!this['_areMergableCells'](_0x1fc9ac,_0x213741))return!0x1;return!0x0;}[_0x287e('0x3f')](_0x7b7b59,_0x1e8575){const _0x55957f=this[_0x287e('0x42')]['plugins'][_0x287e('0x3c')](_0x287e('0x40')),_0x116477=this[_0x287e('0x42')][_0x287e('0x4')][_0x287e('0x43')](_0x7b7b59),_0x2e130c=this[_0x287e('0x42')][_0x287e('0x4')][_0x287e('0x43')](_0x1e8575),_0x5ac04e=new Set(),_0x10ca6c=new Set();for(const _0x269576 of _0x55957f['getSuggestions']())if((_0x287e('0x15')==_0x269576[_0x287e('0x3d')]||_0x287e('0x18')==_0x269576['type']||_0x287e('0x2c')==_0x269576[_0x287e('0x44')])&&_0x269576[_0x287e('0x16')])for(const _0x485420 of _0x269576[_0x287e('0x0')]())_0x485420[_0x287e('0x48')](_0x116477,!0x0)&&_0x5ac04e[_0x287e('0x14')](_0x269576[_0x287e('0x3d')]+':'+_0x269576['author']['id']),_0x485420['containsRange'](_0x2e130c,!0x0)&&_0x10ca6c[_0x287e('0x14')](_0x269576['type']+':'+_0x269576[_0x287e('0xc')]['id']);if(_0x5ac04e[_0x287e('0xe')]!=_0x10ca6c[_0x287e('0xe')])return!0x1;for(const _0x75de8 of _0x5ac04e)if(!_0x10ca6c['has'](_0x75de8))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1779=['editor','insertTableOfContents','tableOfContents','registerElementLabel','_descriptionFactory','locale','afterInit','commands','TrackChangesEditing','get','plugins','enableCommand'];(function(_0x58422b,_0x177926){const _0x36eee8=function(_0x2b0a45){while(--_0x2b0a45){_0x58422b['push'](_0x58422b['shift']());}};_0x36eee8(++_0x177926);}(_0x1779,0x1d7));const _0x36ee=function(_0x58422b,_0x177926){_0x58422b=_0x58422b-0x0;let _0x36eee8=_0x1779[_0x58422b];return _0x36eee8;};import{Plugin as _0x435035}from'ckeditor5/src/core';import{getTranslation as _0x1dca84}from'../utils/common-translations';export default class St extends _0x435035{[_0x36ee('0x3')](){const _0x178496=this[_0x36ee('0x9')];if(!_0x178496[_0x36ee('0x4')][_0x36ee('0x6')]('insertTableOfContents'))return;_0x178496['plugins'][_0x36ee('0x6')](_0x36ee('0x5'))[_0x36ee('0x8')](_0x36ee('0xa'));const _0x1adcdb=_0x178496[_0x36ee('0x7')][_0x36ee('0x6')]('TrackChangesEditing'),_0x5be082=_0x178496[_0x36ee('0x2')];_0x1adcdb[_0x36ee('0x1')][_0x36ee('0x0')](_0x36ee('0xb'),_0x40671=>_0x1dca84(_0x5be082,'ELEMENT_TABLE_OF_CONTENTS',_0x40671));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3398=['nodeAfter','findAncestor','editor','TableCellPropertiesEditing','tableCellBorderColor','tableCellHorizontalAlignment','*Format:*\x20change\x20table\x20properties','_handlePropertyChange','model','handleSuggestionDescription','TableUtils','document','tableProperties','registerCustomCallback','getSuggestions','tableAlignment','TablePropertiesEditing','tableBorderWidth','tableBackgroundColor','has','plugins','pluginName','tableCellBorderWidth','TrackChangesTableProperties','tableCellBackgroundColor','tableCellBorderStyle','getContainedElement','afterInit','getSuggestionCallback','TrackChangesEditing','table','removeAttribute','tableWidth','registerDescriptionCallback','discard','tableHeight','handleDiscardAction','selection','subType','tableCellProperties','locale','getAttribute','get','tableBorderColor','tableCellWidth','getSelectionAffectedTableCells','batch','tableCellVerticalAlignment','formatBlock','commandParams','start','data','_suggestionFactory','markBlockFormat','tableBorderStyle','format','enableCommand','accept','getFirstPosition','*Format:*\x20change\x20table\x20cell\x20properties','_getSuggestion'];(function(_0x52335b,_0x3398cc){const _0x5637c3=function(_0x221045){while(--_0x221045){_0x52335b['push'](_0x52335b['shift']());}};_0x5637c3(++_0x3398cc);}(_0x3398,0x1bd));const _0x5637=function(_0x52335b,_0x3398cc){_0x52335b=_0x52335b-0x0;let _0x5637c3=_0x3398[_0x52335b];return _0x5637c3;};import{Plugin as _0x46f0d7}from'ckeditor5/src/core';import{getTranslation as _0x4cb7e2}from'../utils/common-translations';export default class Dt extends _0x46f0d7{constructor(_0x59bfb){super(_0x59bfb),this[_0x5637('0x37')]=[_0x5637('0x19'),_0x5637('0x24'),_0x5637('0x3c'),_0x5637('0x3a'),_0x5637('0xe'),_0x5637('0x11'),_0x5637('0x0')],this['tableCellProperties']=[_0x5637('0x2f'),_0x5637('0x7'),_0x5637('0x4'),'tableCellPadding',_0x5637('0x1a'),'tableCellHeight',_0x5637('0x6'),_0x5637('0x30'),_0x5637('0x1d')];}static get[_0x5637('0x3')](){return _0x5637('0x5');}[_0x5637('0x9')](){const _0x5072f3=this[_0x5637('0x2d')][_0x5637('0x2')]['get']('TrackChangesEditing');if(this[_0x5637('0x2d')]['plugins'][_0x5637('0x1')](_0x5637('0x3b'))){for(const _0x3c28ae of this[_0x5637('0x37')])_0x5072f3[_0x5637('0x26')](_0x3c28ae,(_0x301af5,_0x4f0e26)=>{const _0x30e358=this[_0x5637('0x2d')][_0x5637('0x33')][_0x5637('0x36')][_0x5637('0x13')][_0x5637('0x28')]()[_0x5637('0x2c')](_0x5637('0xc'));this[_0x5637('0x32')](_0x3c28ae,[_0x30e358],this['tableProperties'],'tableProperties',_0x301af5,_0x4f0e26);});_0x5072f3[_0x5637('0x22')]['registerCustomCallback']('formatBlock',_0x5637('0x37'),_0x5637('0x27'),_0x5072f3['_suggestionFactory'][_0x5637('0xa')](_0x5637('0x1e'),null,'discard')),_0x5072f3[_0x5637('0x22')][_0x5637('0x38')](_0x5637('0x1e'),'tableProperties','discard',(_0x169593,_0x22e6af)=>this[_0x5637('0x12')](this['tableProperties'],_0x169593,_0x22e6af)),_0x5072f3[_0x5637('0x22')]['registerCustomCallback'](_0x5637('0x1e'),_0x5637('0x37'),'join',()=>!0x1);}if(this[_0x5637('0x2d')][_0x5637('0x2')][_0x5637('0x1')](_0x5637('0x2e'))){for(const _0x5c0c9a of this[_0x5637('0x15')])_0x5072f3[_0x5637('0x26')](_0x5c0c9a,(_0x13d71b,_0x37a999)=>{const _0x59be5d=this[_0x5637('0x2d')][_0x5637('0x2')][_0x5637('0x18')](_0x5637('0x35'))[_0x5637('0x1b')](this['editor'][_0x5637('0x33')]['document'][_0x5637('0x13')]);this[_0x5637('0x32')](_0x5c0c9a,_0x59be5d,this[_0x5637('0x15')],_0x5637('0x15'),_0x13d71b,_0x37a999);});_0x5072f3[_0x5637('0x22')][_0x5637('0x38')](_0x5637('0x1e'),_0x5637('0x15'),_0x5637('0x27'),_0x5072f3['_suggestionFactory']['getSuggestionCallback'](_0x5637('0x1e'),null,_0x5637('0x10'))),_0x5072f3[_0x5637('0x22')][_0x5637('0x38')](_0x5637('0x1e'),_0x5637('0x15'),'discard',(_0x3841ca,_0x3944fa)=>this[_0x5637('0x12')](this['tableCellProperties'],_0x3841ca,_0x3944fa)),_0x5072f3['_suggestionFactory'][_0x5637('0x38')](_0x5637('0x1e'),_0x5637('0x15'),'join',()=>!0x1);}_0x5072f3['_descriptionFactory'][_0x5637('0xf')](_0x20c6d6=>this[_0x5637('0x34')](_0x20c6d6));}['_handlePropertyChange'](_0x52d07f,_0x1b9029,_0x346371,_0x5c0768,_0x34b998,_0x33e1f4){const _0x2ae60e=this[_0x5637('0x2d')][_0x5637('0x2')]['get'](_0x5637('0xb'));this['editor'][_0x5637('0x33')]['enqueueChange'](_0x33e1f4[_0x5637('0x1c')],()=>{for(const _0x2a768a of _0x1b9029){if(this[_0x5637('0x2a')](_0x2a768a,_0x5c0768))_0x34b998(_0x33e1f4);else{const _0x3e6bdd={};for(const _0x5ce2f0 of _0x346371){const _0x4bd470=_0x2a768a[_0x5637('0x17')](_0x5ce2f0);void 0x0!==_0x4bd470&&(_0x3e6bdd[_0x5ce2f0]=_0x4bd470);}_0x34b998(_0x33e1f4),_0x2ae60e[_0x5637('0x23')](_0x2a768a,{'commandParams':[_0x3e6bdd]},[],_0x5c0768);}}});}[_0x5637('0x12')](_0x2c4d93,_0x25e255,_0x2cf579){const _0x234003=_0x25e255[0x0][_0x5637('0x20')][_0x5637('0x2b')],_0x1920b7=_0x2cf579[_0x5637('0x1f')][0x0];this[_0x5637('0x2d')][_0x5637('0x33')]['change'](_0x58fc56=>{for(const _0x318632 of _0x2c4d93)void 0x0!==_0x1920b7[_0x318632]?_0x58fc56['setAttribute'](_0x318632,_0x1920b7[_0x318632],_0x234003):_0x58fc56[_0x5637('0xd')](_0x318632,_0x234003);});}[_0x5637('0x34')](_0x35c1af){if(_0x35c1af[_0x5637('0x21')])switch(_0x35c1af[_0x5637('0x14')]){case _0x5637('0x37'):return{'type':_0x5637('0x25'),'content':_0x4cb7e2(this[_0x5637('0x2d')][_0x5637('0x16')],_0x5637('0x31'))};case _0x5637('0x15'):return{'type':_0x5637('0x25'),'content':_0x4cb7e2(this[_0x5637('0x2d')][_0x5637('0x16')],_0x5637('0x29'))};}}[_0x5637('0x2a')](_0xe43d5,_0x55bdbf){const _0x318b04=this[_0x5637('0x2d')]['plugins'][_0x5637('0x18')](_0x5637('0xb'));for(const _0x364390 of _0x318b04[_0x5637('0x39')]({'skipNotAttached':!0x0})){const _0x33784b=_0x364390[_0x5637('0x8')]();if(_0x364390[_0x5637('0x14')]===_0x55bdbf&&_0x33784b===_0xe43d5)return _0x364390;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x704c=['plugins','enableCommand','TrackChangesEditing','insertTemplate','has','editor'];(function(_0x42ddc4,_0x704c29){const _0x4a29a8=function(_0x1ce8bd){while(--_0x1ce8bd){_0x42ddc4['push'](_0x42ddc4['shift']());}};_0x4a29a8(++_0x704c29);}(_0x704c,0x17d));const _0x4a29=function(_0x42ddc4,_0x704c29){_0x42ddc4=_0x42ddc4-0x0;let _0x4a29a8=_0x704c[_0x42ddc4];return _0x4a29a8;};import{Plugin as _0x1e1648}from'ckeditor5/src/core';export default class bt extends _0x1e1648{['afterInit'](){const _0x308a6d=this[_0x4a29('0x2')];_0x308a6d['plugins'][_0x4a29('0x1')]('Template')&&_0x308a6d[_0x4a29('0x3')]['get'](_0x4a29('0x5'))[_0x4a29('0x4')](_0x4a29('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4572=['end','document','nodeBefore','isTouching','ELEMENT_TITLE','model','getChangedMarkers','locale','_descriptionFactory','get','start','afterInit','forward','title-content','newRange','createRange','removeMarker','suggestion','editor','getNearestSelectionRange','TrackChangesEditing','registerElementLabel','Title','isEqual','differ','from'];(function(_0xb88797,_0x4572cd){const _0x17440b=function(_0x502f5c){while(--_0x502f5c){_0xb88797['push'](_0xb88797['shift']());}};_0x17440b(++_0x4572cd);}(_0x4572,0x94));const _0x1744=function(_0xb88797,_0x4572cd){_0xb88797=_0xb88797-0x0;let _0x17440b=_0x4572[_0xb88797];return _0x17440b;};import{Plugin as _0x438acf}from'ckeditor5/src/core';import{getTranslation as _0x2e2481}from'../utils/common-translations';export default class It extends _0x438acf{[_0x1744('0x13')](){const _0x4899b5=this[_0x1744('0x0')];if(!_0x4899b5['plugins']['has'](_0x1744('0x4')))return;const _0xadbb63=_0x4899b5['plugins'][_0x1744('0x11')](_0x1744('0x2'));_0xadbb63[_0x1744('0x10')][_0x1744('0x3')]('title-content',()=>_0x2e2481(_0x4899b5[_0x1744('0xf')],_0x1744('0xc'))),_0x4899b5[_0x1744('0xd')]['document']['registerPostFixer'](_0x51bcf5=>{let _0x3194a3=!0x1;const _0x111b37=Array[_0x1744('0x7')](_0x4899b5[_0x1744('0xd')][_0x1744('0x9')][_0x1744('0x6')][_0x1744('0xe')]());for(const {name:_0x586ff6,data:_0x2e298a}of _0x111b37){const {group:_0x357221}=_0xadbb63['_splitMarkerName'](_0x586ff6);if(_0x1744('0x19')!==_0x357221||!_0x2e298a[_0x1744('0x16')])continue;const _0x243e87=_0x2e298a[_0x1744('0x16')],_0x4a2ce4=_0x243e87[_0x1744('0x8')][_0x1744('0xa')];if(!_0x4a2ce4||!_0x4a2ce4['is']('element',_0x1744('0x15')))continue;if(!_0x243e87[_0x1744('0x12')][_0x1744('0xb')](_0x243e87[_0x1744('0x8')]))continue;const _0x2d3eb2=_0x4899b5[_0x1744('0xd')]['schema'][_0x1744('0x1')](_0x243e87['end'],_0x1744('0x14'));if(_0x2d3eb2&&_0x2d3eb2['isCollapsed']){const _0x11a27c=_0x51bcf5[_0x1744('0x17')](_0x243e87[_0x1744('0x12')],_0x2d3eb2[_0x1744('0x12')]);_0x11a27c[_0x1744('0x5')](_0x243e87)||(_0x51bcf5['updateMarker'](_0x586ff6,{'range':_0x11a27c}),_0x3194a3=!0x0);}_0x3194a3||(_0x51bcf5[_0x1744('0x18')](_0x586ff6),_0x3194a3=!0x0);}return _0x3194a3;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4192=['afterInit','get','has','TrackChangesEditing','enableCommand'];(function(_0x3501bd,_0x41924b){const _0x2e084c=function(_0x1a44f4){while(--_0x1a44f4){_0x3501bd['push'](_0x3501bd['shift']());}};_0x2e084c(++_0x41924b);}(_0x4192,0x142));const _0x2e08=function(_0x3501bd,_0x41924b){_0x3501bd=_0x3501bd-0x0;let _0x2e084c=_0x4192[_0x3501bd];return _0x2e084c;};import{Plugin as _0x57d043}from'ckeditor5/src/core';export default class vt extends _0x57d043{[_0x2e08('0x3')](){const _0x515f71=this['editor'],_0x462730=_0x515f71['plugins'][_0x2e08('0x4')](_0x2e08('0x1'));_0x515f71['plugins'][_0x2e08('0x0')]('UndoEditing')&&(_0x462730[_0x2e08('0x2')]('undo'),_0x462730[_0x2e08('0x2')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f87=['isLimit','element','insert','consumable','activeMarkers','writer','previousPosition','push','includes','span','getWalker','ck-suggestion-marker--active','name','start','isAtEnd','mapper','toViewElement','listIndent','listItem','nextSibling','addClass','TrackChangesEditing','markerName','toViewPosition','hasAttribute','ck-suggestion-marker-','elementEnd','markerRange','getAttribute','schema','getItems','createRangeOn','isContent','model','createUIElement','plugins','get','item','type'];(function(_0xc344f6,_0x1f87fc){const _0x1fd5c7=function(_0xd3d162){while(--_0xd3d162){_0xc344f6['push'](_0xc344f6['shift']());}};_0x1fd5c7(++_0x1f87fc);}(_0x1f87,0x97));const _0x1fd5=function(_0xc344f6,_0x1f87fc){_0xc344f6=_0xc344f6-0x0;let _0x1fd5c7=_0x1f87[_0xc344f6];return _0x1fd5c7;};export function getRangesWithAttribute(_0x363ed3,_0x2b020b,_0x562092){const _0x145b2c=[];for(const _0x2618de of _0x2b020b[_0x1fd5('0x23')]())_0x2618de[_0x1fd5('0x1d')](_0x363ed3)&&_0x145b2c[_0x1fd5('0xc')](_0x562092[_0x1fd5('0x24')](_0x2618de));return _0x145b2c;}export function getElementsAffectedByListItemRename(_0x2d5324){const _0x511dcc=[];if(_0x2d5324['is']('element','listItem')){let _0x165e69=_0x2d5324['nextSibling'];for(;_0x165e69&&_0x165e69['is'](_0x1fd5('0x6'),_0x1fd5('0x17'))&&_0x165e69[_0x1fd5('0x21')](_0x1fd5('0x16'))>0x0;)_0x511dcc['push'](_0x165e69),_0x165e69=_0x165e69[_0x1fd5('0x18')];}return _0x511dcc;}export function downcastSplitMergeMarker(_0x3b1bfe,_0x28362b,{showActiveMarker:_0x3d3f4b=!0x0}={}){const _0xea9eaf=_0x3b1bfe[_0x1fd5('0x1')][_0x1fd5('0x2')](_0x1fd5('0x1a'));return(_0x56bcb6,_0x4296ee,_0x17f7f1)=>{if(!_0x17f7f1[_0x1fd5('0x8')]['test'](_0x4296ee['markerRange'],_0x56bcb6[_0x1fd5('0x11')]))return;const _0x966572=_0x4296ee['markerRange'][_0x1fd5('0xf')](),_0x24a5e1=_0x4296ee[_0x1fd5('0x20')][_0x1fd5('0x12')],_0x579957=_0x3b1bfe[_0x1fd5('0x26')][_0x1fd5('0x22')];let _0x448b7a=null,_0x2433c4=null,_0x5e4460=!0x1,_0x28e719=!0x1;for(const _0x248fbd of _0x966572){const _0x2ebeb6=_0x248fbd[_0x1fd5('0x3')];_0x5e4460=_0x5e4460||_0x579957[_0x1fd5('0x25')](_0x2ebeb6);const _0x2bcd1f=_0x17f7f1[_0x1fd5('0x14')][_0x1fd5('0x15')](_0x2ebeb6);if(_0x2bcd1f&&_0x2bcd1f['getCustomProperty']('addHighlight'))return;_0x1fd5('0x1f')==_0x248fbd[_0x1fd5('0x4')]&&(_0x579957['isBlock'](_0x2ebeb6)&&!_0x579957[_0x1fd5('0x5')](_0x2ebeb6)&&(_0x2ebeb6['nextSibling']||_0x24a5e1[_0x1fd5('0x13')]?_0x448b7a&&_0x448b7a['parent']==_0x2ebeb6||(_0x448b7a=_0x2ebeb6,_0x4ded04(_0x248fbd[_0x1fd5('0xb')]),_0x28e719=!0x0):_0x2433c4=_0x2433c4||_0x248fbd[_0x1fd5('0xb')]));}function _0x4ded04(_0x534644){const _0x57b785=_0x17f7f1[_0x1fd5('0xa')][_0x1fd5('0x0')](_0x1fd5('0xe'),{'class':_0x1fd5('0x1e')+_0x28362b}),_0xe61473=_0x17f7f1[_0x1fd5('0x14')][_0x1fd5('0x1c')](_0x534644);_0x3d3f4b&&_0xea9eaf[_0x1fd5('0x9')][_0x1fd5('0xd')](_0x4296ee[_0x1fd5('0x1b')])&&_0x17f7f1['writer'][_0x1fd5('0x19')](_0x1fd5('0x10'),_0x57b785),_0x17f7f1[_0x1fd5('0xa')][_0x1fd5('0x7')](_0xe61473,_0x57b785),_0x17f7f1[_0x1fd5('0x14')]['bindElementToMarker'](_0x57b785,_0x4296ee[_0x1fd5('0x1b')]);}_0x5e4460||_0x28e719||!_0x2433c4||_0x4ded04(_0x2433c4);};}
|