@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231130.0 → 0.0.0-nightly-20231202.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/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/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 _0xb39d=['deletionRanges','endColumn','suggestionUnloaded','trackChanges','getChanges','getChildren','columnInsertionIndexes','set','schema','elementToElement','getColumnIndexes','insertColumns','remove','low','getShiftedBy','options','isEmpty','value','getMarkers','registerDescriptionCallback','rows','wrap','_isForcedDefaultExecutionBlock','has','register','join','tableCellBorderColor','filter','getAllAdjacentSuggestions','locale','end','unwrap','activeMarkers','row','push','markerAttributes','root','markMultiRangeDeletion','cells','registerCustomCallback','get','getSuggestions','model','previous','hasSuggestion','_splitMarkerName','newRange','_suggestionFactory','_getCoordsForCells','getTableIfOnlyTableInContent','some','suggestion-td','tableCellBackgroundColor','tableCellVerticalAlignment','removeColumns','getContainedElement','markers','name','from','clipboardOutput','tablePasteRow','createElement','entries','tablePasteColumn','_tablePostFixingSubtypes','previousSibling','findAncestor','rootName','oldRange','author','move','createTableWalker','listenTo','getRanges','getRange','insertion','containsRange','last','tablePaste','ck-suggestion-marker-insertion','selection','cell','length','insertRows','TrackChangesEditing','tableCellPadding','dataDowncast','suggestion','tablePasteCell','includes','setAttributes','columnInsertionRanges','removeMarker','plugins','isInContent','rowInsertionRanges','conversion','column','paragraph','insertionRanges','_createdBatches','type','subType','requires','getItems','TableClipboard','TableUtils','removeRows','next','discard','stop','markerName','tablePasteChainId','tableCell','insert','endRow','createPositionBefore','updateMarker','getRows','createRangeIn','getSuggestionCallback','differ','fill','start','commands','attributes','getAttributes','change','first','suggestion:formatBlock:tablePasteCell','editor','add','fromEntries','editing','keys','for','Users','_replaceTableSlotCell','ck-suggestion-marker--active','tableCellSuggestion','insertContent','reduce','showSuggestionHighlights','removeMarkers','accept','registerPostFixer','startsWith','deletion','table','createRangeOn','map','position','editingDowncast','getSelectionAffectedTableCells','element','document','forceDefaultExecution','high','isEqual','batch','redo','nextSibling','nodeAfter','formatBlock','getChild'];(function(_0x9bbdf8,_0xb39dec){const _0xf81448=function(_0x3ad426){while(--_0x3ad426){_0x9bbdf8['push'](_0x9bbdf8['shift']());}};_0xf81448(++_0xb39dec);}(_0xb39d,0x8c));const _0xf814=function(_0x9bbdf8,_0xb39dec){_0x9bbdf8=_0x9bbdf8-0x0;let _0xf81448=_0xb39d[_0x9bbdf8];return _0xf81448;};import{getTranslation as _0x369705}from'../utils/common-translations';import{Plugin as _0x1a1d97}from'ckeditor5/src/core';import{uid as _0xd02e8e,priorities as _0x2df47b}from'ckeditor5/src/utils';import _0x303f88 from'./table';const le=['tableCellBorderWidth',_0xf814('0x33'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0xf814('0x4e'),_0xf814('0x4d'),_0xf814('0x6e')],ae=Object[_0xf814('0x9d')](le['map'](_0x158289=>[_0x158289,null]));export default class At extends _0x1a1d97{static get[_0xf814('0x80')](){return[_0x303f88];}['afterInit'](){const _0x10345f=this[_0xf814('0x9b')];if(!_0x10345f[_0xf814('0x76')][_0xf814('0x30')](_0xf814('0x82')))return;const _0x192601=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0x6d')),_0x57b270=_0x10345f['plugins'][_0xf814('0x41')](_0xf814('0x83')),_0x157393=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0x303f88),_0x138959=_0x10345f[_0xf814('0x76')][_0xf814('0x41')]('TableClipboard');_0x157393[_0xf814('0x59')][_0xf814('0x3b')](_0xf814('0x55'),_0xf814('0x58')),_0x10345f['model'][_0xf814('0x21')][_0xf814('0x31')](_0xf814('0xa4'),{'allowIn':_0xf814('0x8a'),'allowContentOf':_0xf814('0x8a'),'isLimit':!0x0}),_0x10345f['conversion'][_0xf814('0x22')]({'model':_0xf814('0xa4'),'view':_0xf814('0x4c')});let _0x4bd469=null;_0x10345f[_0xf814('0x43')]['on'](_0xf814('0x0'),(_0x23fa6c,_0x59e65a)=>{const [_0x155b40,_0x36e395]=_0x59e65a,_0x37ae3c=_0x59e65a[_0x59e65a[_0xf814('0x6b')]-0x1];_0x37ae3c&&_0x37ae3c[_0xf814('0x10')]||_0x192601[_0xf814('0x2f')]||this[_0xf814('0x9b')][_0xf814('0x95')][_0xf814('0x41')](_0xf814('0x1c'))[_0xf814('0x2a')]&&function(_0x11586a,_0x3f3369,_0x1c4dd4,_0x3365d3,_0x1d215f){if(_0x3f3369&&!_0x3f3369['is']('documentSelection'))return!0x1;const _0x2f4e6f=_0x1d215f[_0xf814('0x4a')](_0x11586a,_0x1c4dd4);if(!_0x2f4e6f||!fe(_0x2f4e6f,void 0x0,_0x3365d3))return!0x1;const _0x438bdd=_0x3365d3[_0xf814('0xd')](_0x1c4dd4[_0xf814('0xf')][_0xf814('0x69')]);if(!_0x438bdd['length'])return!0x1;const _0x15f694=_0x438bdd[0x0][_0xf814('0x5b')]('table'),_0x2085af=_0x3365d3['getRowIndexes'](_0x438bdd),_0x37365b=_0x3365d3[_0xf814('0x23')](_0x438bdd),_0xafa7bc={'startRow':_0x2085af[_0xf814('0x99')],'endRow':_0x2085af[_0xf814('0x66')],'startColumn':_0x37365b[_0xf814('0x99')],'endColumn':_0x37365b[_0xf814('0x66')]};return 0x1==_0x438bdd[_0xf814('0x6b')]&&(_0xafa7bc[_0xf814('0x8c')]+=_0x3365d3[_0xf814('0x8f')](_0x2f4e6f)-0x1,_0xafa7bc[_0xf814('0x1a')]+=_0x3365d3['getColumns'](_0x2f4e6f)-0x1),fe(_0x15f694,_0xafa7bc,_0x3365d3);}(_0x155b40,_0x36e395,_0x10345f[_0xf814('0x43')],_0x57b270,_0x138959)&&(_0x23fa6c[_0xf814('0x87')](),_0x4bd469={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x10345f[_0xf814('0x43')]['change'](()=>{_0x10345f['model'][_0xf814('0x0')](_0x59e65a[0x0],_0x59e65a[0x1],_0x59e65a[0x2],{'forceDefaultExecution':!0x0});const _0x34aa56=_0xd02e8e(),{rowInsertionRanges:_0x1845f0,columnInsertionRanges:_0x5b6a70,insertionRanges:_0x315958,deletionRanges:_0x4696f6,cells:_0x4a4cd3}=_0x4bd469;_0x1845f0[_0xf814('0x6b')]&&_0x192601['markMultiRangeInsertion'](_0x1845f0,_0xf814('0x55'),{'tablePasteChainId':_0x34aa56}),_0x5b6a70[_0xf814('0x6b')]&&_0x192601['markMultiRangeInsertion'](_0x5b6a70,_0xf814('0x58'),{'tablePasteChainId':_0x34aa56}),_0x315958['length']&&_0x192601['markMultiRangeInsertion'](_0x315958,_0xf814('0x67'),{'tablePasteChainId':_0x34aa56,'skipNestingCheck':!0x0}),_0x4696f6[_0xf814('0x6b')]&&_0x192601[_0xf814('0x3e')](_0x4696f6,_0xf814('0x67'),{'tablePasteChainId':_0x34aa56,'skipNestingCheck':!0x0});const _0x38cf89=_0x192601['markMultiRangeBlockFormat'](_0x4a4cd3[_0xf814('0xa')](({element:_0x96247})=>_0x96247),{'formatGroupId':_0xd02e8e()},[],'tablePasteCell',{'tablePasteChainId':_0x34aa56});if(_0x38cf89){const _0x108091=_0x38cf89[_0xf814('0x2b')](),_0x44331d=[];for(const {element:_0x17a87d,attributes:_0x13f98b}of _0x4a4cd3){if(!_0x13f98b)continue;const _0x4e7c35=_0x10345f['model'][_0xf814('0x9')](_0x17a87d),_0x2c7a46=_0x108091['find'](_0x2e987e=>_0x2e987e[_0xf814('0x63')]()[_0xf814('0x12')](_0x4e7c35));_0x2c7a46&&_0x44331d[_0xf814('0x3b')]([_0x2c7a46[_0xf814('0x52')],_0x13f98b]);}_0x44331d[_0xf814('0x6b')]&&_0x38cf89['setAttribute'](_0xf814('0x3c'),Object['fromEntries'](_0x44331d));}_0x4bd469=null;}));},{'priority':_0x2df47b[_0xf814('0x11')]+0xa}),_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0x82'))['on'](_0xf814('0xa2'),(_0x5a809e,_0x5ede0c)=>{const [_0x3bcf88,_0x23e9f2,,_0x5cec51]=_0x5ede0c;if(!_0x4bd469)return;_0x5a809e['stop']();const _0x2b76f0=_0x3bcf88[_0xf814('0x6a')],_0x378a5c=_0x23e9f2,_0x4bd5e7=ce(_0x2b76f0),_0x16bce4=ce(_0x378a5c);_0x5a809e['return']=_0x2b76f0;let _0x32b4d8=null,_0x534602=null;if(_0x16bce4||_0x4bd5e7){if(_0x4bd5e7&&!_0x16bce4){_0x5cec51[_0xf814('0x25')](_0x2b76f0[_0xf814('0x18')](0x0));for(const _0x47ed5e of Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x1e')]()))_0x5cec51[_0xf814('0x8b')](_0x47ed5e,_0x2b76f0,_0xf814('0x37'));const _0x5d06e9=_0x4bd469['rowInsertionIndexes'][_0xf814('0x72')](_0x3bcf88[_0xf814('0x3a')]),_0x840d50=_0x4bd469[_0xf814('0x1f')][_0xf814('0x72')](_0x3bcf88[_0xf814('0x7a')]);_0x5d06e9||_0x840d50||(_0x32b4d8=_0x5cec51['createRangeIn'](_0x2b76f0));}else _0x16bce4&&!_0x4bd5e7&&(_0x534602=_0x5cec51['createRangeIn'](_0x2b76f0));}else{const _0x4b7282=_0x5cec51[_0xf814('0x56')]('tableCellSuggestion'),_0x117ec5=_0x5cec51[_0xf814('0x56')](_0xf814('0xa4'));_0x5cec51[_0xf814('0x2e')](_0x5cec51[_0xf814('0x90')](_0x2b76f0),_0x117ec5),_0x5cec51['insert'](_0x4b7282,_0x2b76f0,0x0);for(const _0x3ab8f2 of Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x1e')]()))_0x5cec51[_0xf814('0x8b')](_0x3ab8f2,_0x4b7282,'end');_0x32b4d8=_0x5cec51[_0xf814('0x9')](_0x4b7282),_0x534602=_0x5cec51[_0xf814('0x9')](_0x117ec5);}const _0x11ab94=Array[_0xf814('0x53')](_0x378a5c[_0xf814('0x97')]())['filter'](([_0x2fdd67])=>le[_0xf814('0x72')](_0x2fdd67));_0x4bd469[_0xf814('0x3f')][_0xf814('0x3b')]({'element':_0x2b76f0,'attributes':_0x11ab94[_0xf814('0x6b')]?Object[_0xf814('0x9d')](_0x11ab94):null}),_0x32b4d8&&_0x4bd469[_0xf814('0x7c')][_0xf814('0x3b')](_0x32b4d8),_0x534602&&_0x4bd469[_0xf814('0x19')][_0xf814('0x3b')](_0x534602);},{'priority':_0xf814('0x11')}),_0x57b270['on'](_0xf814('0x24'),(_0x186b3b,_0x559207)=>{const [_0x4ef6db,_0x131b4b={}]=_0x559207;if(!_0x4bd469)return;const _0x41e3c1=_0x131b4b['at']||0x0,_0x760e3b=_0x131b4b['columns']||0x1;_0x4bd469[_0xf814('0x1f')]=new Array(_0x760e3b)[_0xf814('0x93')](_0x41e3c1)[_0xf814('0xa')]((_0x17a92c,_0x428137)=>_0x17a92c+_0x428137);for(const {cell:_0xe5fb14}of _0x57b270[_0xf814('0x60')](_0x4ef6db,{'startColumn':_0x41e3c1,'endColumn':_0x41e3c1+_0x760e3b-0x1}))_0x4bd469[_0xf814('0x74')][_0xf814('0x3b')](_0x10345f[_0xf814('0x43')][_0xf814('0x9')](_0xe5fb14));},{'priority':_0xf814('0x26')}),_0x57b270['on'](_0xf814('0x6c'),(_0x26d5fd,_0x2d5eb3)=>{const [_0x2fb40e,_0x1b1b10={}]=_0x2d5eb3;if(!_0x4bd469)return;const _0x448653=_0x1b1b10['at']||0x0,_0x15a99b=_0x1b1b10[_0xf814('0x2d')]||0x1;_0x4bd469['rowInsertionIndexes']=new Array(_0x15a99b)[_0xf814('0x93')](_0x448653)[_0xf814('0xa')]((_0x44a289,_0x28d53d)=>_0x44a289+_0x28d53d);for(const {cell:_0x498498}of _0x57b270[_0xf814('0x60')](_0x2fb40e,{'startRow':_0x448653,'endRow':_0x448653+_0x15a99b-0x1}))_0x4bd469[_0xf814('0x78')][_0xf814('0x3b')](_0x10345f[_0xf814('0x43')][_0xf814('0x9')](_0x498498));},{'priority':_0xf814('0x26')}),_0x192601['_descriptionFactory'][_0xf814('0x2c')](_0x1fc670=>{if(_0x1fc670[_0xf814('0x7f')]&&_0x1fc670[_0xf814('0x7f')]['startsWith'](_0xf814('0x67')))return _0x1fc670[_0xf814('0x44')]?{}:{'type':_0xf814('0x64'),'content':_0x369705(_0x10345f[_0xf814('0x36')],'*Replace\x20table\x20cells*')};});const _0x10ad01=()=>!0x1;for(const _0x34de02 of['tablePaste',_0xf814('0x58'),'tablePasteRow',_0xf814('0x71')])_0x192601[_0xf814('0x48')][_0xf814('0x40')]('insertion',_0x34de02,_0xf814('0x32'),_0x10ad01),_0x192601['_suggestionFactory'][_0xf814('0x40')](_0xf814('0x7'),_0x34de02,_0xf814('0x32'),_0x10ad01),_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xf814('0x17'),_0x34de02,_0xf814('0x32'),_0x10ad01);_0x192601[_0xf814('0x48')]['registerCustomCallback'](_0xf814('0x17'),'tablePasteCell',_0xf814('0x86'),_0x10ad01),_0x192601[_0xf814('0x48')]['registerCustomCallback'](_0xf814('0x17'),_0xf814('0x71'),_0xf814('0x4'),(_0x412d29,_0x11e5db,_0x18b4a8)=>{const _0x4d3978=_0x412d29[_0xf814('0xa')](_0x20e472=>_0x20e472[_0xf814('0x50')]())[_0xf814('0x34')](_0x14eedf=>_0x14eedf),_0x589d59=new Map(_0x4d3978[_0xf814('0xa')](_0x30452e=>[_0x30452e,null]));if(_0x4bd469)for(const {element:_0x17f436,attributes:_0x2158ed}of _0x4bd469[_0xf814('0x3f')])_0x2158ed&&_0x589d59[_0xf814('0x20')](_0x17f436,_0x2158ed);else{if(_0x18b4a8&&_0x18b4a8['markerAttributes'])for(const [_0x15a1e7,_0x55fd53]of Object[_0xf814('0x57')](_0x18b4a8[_0xf814('0x3c')])){const _0x178c74=_0x10345f[_0xf814('0x43')][_0xf814('0x51')][_0xf814('0x41')](_0x15a1e7),_0x5157d5=_0x178c74?_0x178c74[_0xf814('0x63')]()['getContainedElement']():null;_0x5157d5&&_0x589d59['set'](_0x5157d5,_0x55fd53);}}_0x10345f[_0xf814('0x43')][_0xf814('0x98')](_0x4fd847=>{for(const [_0x57c704,_0x385451]of _0x589d59)_0x4fd847[_0xf814('0x73')]({...ae,..._0x385451},_0x57c704);});});const _0x656a7d=(_0xec2045,_0x20f81a)=>{_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xec2045,'tablePaste',_0x20f81a,(_0x22698c,_0x5a498e,_0x330b6c)=>{_0x10345f[_0xf814('0x43')]['change'](_0x35ae5a=>{const _0x22ba13=[];for(const _0x2a1063 of _0x22698c){const _0xec5c3e=_0x2a1063[_0xf814('0x94')][_0xf814('0x16')];_0xec5c3e['is']('element',_0xf814('0xa4'))&&_0x22ba13[_0xf814('0x3b')](_0xec5c3e);}_0x192601[_0xf814('0x48')][_0xf814('0x91')](_0xec2045,null,_0x20f81a)(_0x22698c,_0x5a498e,_0x330b6c);for(const _0x87c420 of _0x22ba13)'$graveyard'!=_0x87c420[_0xf814('0x3d')][_0xf814('0x5c')]&&_0x35ae5a[_0xf814('0x38')](_0x87c420);});});};_0x656a7d('insertion',_0xf814('0x4')),_0x656a7d('insertion',_0xf814('0x86')),_0x656a7d(_0xf814('0x7'),_0xf814('0x4')),_0x656a7d(_0xf814('0x7'),_0xf814('0x86')),_0x192601[_0xf814('0x48')][_0xf814('0x40')](_0xf814('0x64'),'tablePasteRow',_0xf814('0x86'),_0x289226=>{const _0x5674e7=_0x289226[_0xf814('0xa')](_0x2833b1=>_0x2833b1['getContainedElement']()),_0x6dca29=_0x5674e7[0x0][_0xf814('0x5b')](_0xf814('0x8')),{minRow:_0x379748,maxRow:_0x4957fd}=_0x157393[_0xf814('0x49')](_0x5674e7);_0x57b270[_0xf814('0x84')](_0x6dca29,{'at':_0x379748,'rows':_0x4957fd-_0x379748+0x1});}),_0x192601[_0xf814('0x48')][_0xf814('0x40')]('insertion',_0xf814('0x58'),_0xf814('0x86'),_0x22a0a1=>{const _0x1d013c=_0x22a0a1[_0xf814('0xa')](_0x493134=>_0x493134[_0xf814('0x50')]()),_0x2c13c7=_0x1d013c[0x0][_0xf814('0x5b')]('table'),{minColumn:_0x1c448b,maxColumn:_0x2e000d}=_0x157393['_getCoordsForCells'](_0x1d013c);_0x57b270[_0xf814('0x4f')](_0x2c13c7,{'at':_0x1c448b,'columns':_0x2e000d-_0x1c448b+0x1});});const _0x1154b1=(_0x5d99c6,_0x1d5b8d)=>{if(!_0x1d5b8d[_0xf814('0x7f')]||!_0x1d5b8d['subType']['startsWith']('tablePaste'))return;const _0x59fc89=_0x1d5b8d[_0xf814('0x96')][_0xf814('0x89')],_0x48a0cb=_0x192601['getSuggestions']()[_0xf814('0x34')](_0xcdceb8=>_0xcdceb8[_0xf814('0x77')]&&_0xcdceb8['attributes']&&_0xcdceb8[_0xf814('0x96')][_0xf814('0x89')]==_0x59fc89);_0x48a0cb['length']&&_0x1d5b8d[_0xf814('0x35')]()['length']!=_0x48a0cb[_0xf814('0x6b')]&&_0x48a0cb[_0xf814('0x1')]((_0x314282,_0x88cd7)=>(_0x314282[_0xf814('0x85')]=_0x88cd7,_0x88cd7[_0xf814('0x44')]=_0x314282,_0x88cd7));};function _0x320187(_0x4ad8c9,_0x839237=!0x0){const {id:_0x39fb45}=_0x192601[_0xf814('0x46')](_0x4ad8c9['markerName']),_0x5323f0=['ck-suggestion-marker',_0xf814('0x68')],_0x37fc07=_0x192601[_0xf814('0x39')]['includes'](_0x4ad8c9[_0xf814('0x88')]);return _0x37fc07&&_0x5323f0['push'](_0xf814('0xa3')),{'classes':_0x5323f0,'attributes':{'data-suggestion':_0x39fb45},'priority':_0x37fc07&&_0x839237?0xbc2:0xbb8};}_0x192601['on']('suggestionLoaded',_0x1154b1,{'priority':'high'}),_0x192601['on'](_0xf814('0x1b'),_0x1154b1,{'priority':_0xf814('0x11')}),_0x10345f[_0xf814('0x43')]['document'][_0xf814('0x5')](()=>{let _0x3add41=!0x1;const _0x10f7c7=Array[_0xf814('0x53')](_0x10345f[_0xf814('0x43')][_0xf814('0xf')]['differ']['getChangedMarkers']());for(const {name:_0x22f0b4,data:_0x38f986}of _0x10f7c7){const {group:_0x460cf1,type:_0x18caa6,id:_0x3262b1}=_0x192601[_0xf814('0x46')](_0x22f0b4);if(_0xf814('0x70')!=_0x460cf1||_0xf814('0x7')!=_0x18caa6||_0x38f986[_0xf814('0x5d')])continue;if(!_0x192601[_0xf814('0x45')](_0x3262b1))continue;const _0x257ccf=_0x192601['getSuggestion'](_0x3262b1)[_0xf814('0x62')](),_0x4d297d=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0xa1'))['me'];for(const _0x2c42f7 of _0x192601['getSuggestions']()){if(!_0x2c42f7[_0xf814('0x77')]||_0x2c42f7[_0xf814('0x5e')]!=_0x4d297d)continue;if(_0xf814('0x17')!=_0x2c42f7[_0xf814('0x7e')]||_0xf814('0x71')!=_0x2c42f7['subType'])continue;if(_0x2c42f7[_0xf814('0x62')]()['every'](_0x43708c=>_0x257ccf[_0xf814('0x4b')](_0x9cb2ee=>_0x9cb2ee[_0xf814('0x65')](_0x43708c,!0x0))))for(const _0x58b598 of _0x2c42f7[_0xf814('0x35')]())_0x58b598[_0xf814('0x77')]&&(_0x58b598['discard'](),_0x3add41=!0x0);}}return _0x3add41;}),_0x10345f['model'][_0xf814('0xf')][_0xf814('0x5')](_0x3a9508=>{const _0x3aaa01=_0x10345f[_0xf814('0x95')][_0xf814('0x41')](_0xf814('0x14'));if(!_0x3aaa01||!_0x3aaa01[_0xf814('0x7d')][_0xf814('0x30')](_0x3a9508[_0xf814('0x13')]))return!0x1;let _0x2d18a0=!0x1;const _0x4bee1c=_0x10345f[_0xf814('0x76')][_0xf814('0x41')]('Users')['me'],_0x5393e6=_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x92')][_0xf814('0x1d')](),_0x4de3c9=Array[_0xf814('0x53')](_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x92')]['getChangedMarkers']())[_0xf814('0x34')](({name:_0x5e9c7d,data:_0x5baab7})=>{const {group:_0x5146a4,subType:_0x2dfb2c,authorId:_0x2a57b7}=_0x192601[_0xf814('0x46')](_0x5e9c7d);return'suggestion'==_0x5146a4&&_0xf814('0x67')==_0x2dfb2c&&_0x2a57b7==_0x4bee1c['id']&&!_0x5baab7[_0xf814('0x5d')];});for(const _0x1c3d09 of _0x5393e6){if(_0xf814('0x8b')!=_0x1c3d09['type']||_0xf814('0xa4')!=_0x1c3d09[_0xf814('0x52')]||0x1!=_0x1c3d09[_0xf814('0x6b')])continue;const _0x5ce1e5=_0x3a9508['createRange'](_0x1c3d09[_0xf814('0xb')],_0x1c3d09[_0xf814('0xb')][_0xf814('0x27')](0x1));if(!_0x4de3c9['find'](({data:_0x5a4575})=>_0x5a4575['newRange'][_0xf814('0x12')](_0x5ce1e5)))for(const {name:_0xeeeae3,data:_0x2e4861}of _0x4de3c9)if(_0x5ce1e5['containsRange'](_0x2e4861[_0xf814('0x47')])){_0x3a9508[_0xf814('0x8e')](_0xeeeae3,{'range':_0x5ce1e5}),_0x2d18a0=!0x0;break;}}return _0x2d18a0;}),_0x10345f[_0xf814('0x43')][_0xf814('0xf')][_0xf814('0x5')](_0x341c18=>{let _0x447977=!0x1;const _0x4d304b=_0x10345f[_0xf814('0x76')][_0xf814('0x41')](_0xf814('0xa1'))['me'],_0x27430a=_0x192601[_0xf814('0x42')]()[_0xf814('0x34')](_0x348d34=>_0x348d34[_0xf814('0x77')]&&_0x348d34['author']==_0x4d304b),_0x332214=new Set(),_0x148137=new Set();for(const _0x4582dd of _0x27430a)if(_0xf814('0x67')==_0x4582dd[_0xf814('0x7f')])for(const _0x5bcd24 of _0x4582dd[_0xf814('0x2b')]()){const _0x293be8=_0x5bcd24[_0xf814('0x63')]()[_0xf814('0x50')]();if(_0x293be8){if(_0x293be8['is'](_0xf814('0xe'),_0xf814('0xa4'))&&ce(_0x293be8)){_0x4582dd[_0xf814('0x75')](_0x5bcd24[_0xf814('0x52')]),_0x332214[_0xf814('0x9c')](_0x293be8),_0x447977=!0x0;const _0x5be2e3=_0x293be8[_0xf814('0x15')],_0x2041d6=_0x293be8[_0xf814('0x5a')],_0x163a4b=_0x5be2e3&&_0x5be2e3['is'](_0xf814('0xe'),'tableCellSuggestion'),_0x53f4b4=_0x2041d6&&_0x2041d6['is']('element',_0xf814('0xa4'));_0x163a4b&&!_0x332214[_0xf814('0x30')](_0x5be2e3)&&_0x148137[_0xf814('0x9c')](_0x5be2e3),_0x53f4b4&&!_0x332214[_0xf814('0x30')](_0x2041d6)&&_0x148137[_0xf814('0x9c')](_0x2041d6);}else _0x293be8['is'](_0xf814('0xe'),_0xf814('0x7b'))&&_0x293be8[_0xf814('0x29')]&&(_0x4582dd['removeMarker'](_0x5bcd24[_0xf814('0x52')]),_0x447977=!0x0);}}else{if(_0xf814('0x71')==_0x4582dd[_0xf814('0x7f')]){if(!_0x4582dd[_0xf814('0x96')]||!_0x4582dd[_0xf814('0x96')]['tablePasteChainId'])continue;const _0x49e0ca=_0x4582dd['attributes'][_0xf814('0x3c')];if(_0x49e0ca&&Object[_0xf814('0x9f')](_0x49e0ca)['length'])continue;const _0x2fb172=_0x4582dd[_0xf814('0x96')][_0xf814('0x89')];let _0x5cd6e7=!0x0,_0x5012de=!0x0;for(const _0x2fd222 of _0x27430a)if(_0x2fd222[_0xf814('0x7f')]&&_0x2fd222[_0xf814('0x7f')][_0xf814('0x6')](_0xf814('0x67'))){if(!_0x2fd222[_0xf814('0x96')]['tablePasteChainId']){_0x5012de=!0x1;break;}if(_0x2fd222['id']!=_0x4582dd['id']&&_0x2fd222[_0xf814('0x96')][_0xf814('0x89')]==_0x2fb172){_0x5cd6e7=!0x1;break;}}_0x5012de&&_0x5cd6e7&&(_0x4582dd[_0xf814('0x3')](),_0x447977=!0x0);}}for(const _0x4c6c21 of _0x332214)_0x341c18['remove'](_0x4c6c21);for(const _0x2a178c of _0x148137)_0x341c18[_0xf814('0x38')](_0x2a178c);return _0x447977;}),_0x10345f['conversion'][_0xf814('0xa0')](_0xf814('0xc'))['markerToHighlight']({'model':_0xf814('0x9a'),'view':(_0x2f09c3,_0x1635ff)=>_0x320187(_0x2f09c3),'converterPriority':_0xf814('0x11')}),_0x10345f[_0xf814('0x79')]['for'](_0xf814('0x6f'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xdc5f2a,_0x588cb1)=>_0x588cb1[_0xf814('0x28')][_0xf814('0x2')]?_0x320187(_0xdc5f2a,!0x1):null,'converterPriority':_0xf814('0x11')});const _0x1def38=_0x10345f[_0xf814('0x9e')]['view'];this[_0xf814('0x61')](_0x1def38['document'],_0xf814('0x54'),(_0x4142e5,_0x1141ea)=>{const _0x2403a4=[];for(const _0x1f1691 of _0x1def38['createRangeIn'](_0x1141ea['content'])[_0xf814('0x81')]())_0x1f1691['is'](_0xf814('0xe'),_0xf814('0x4c'))&&_0x2403a4[_0xf814('0x3b')](_0x1f1691);_0x1def38[_0xf814('0x98')](_0x2b41a4=>{for(const _0x1618e1 of _0x2403a4)_0x2b41a4[_0xf814('0x5f')](_0x2b41a4[_0xf814('0x90')](_0x1618e1),_0x2b41a4[_0xf814('0x8d')](_0x1618e1)),_0x2b41a4[_0xf814('0x25')](_0x1618e1);});});}}function ce(_0x355e89){if(_0x355e89[_0xf814('0x29')])return!0x0;const _0x2df947=_0x355e89[_0xf814('0x18')](0x0);return _0x2df947['is'](_0xf814('0xe'),_0xf814('0x7b'))&&_0x2df947['isEmpty'];}function fe(_0x192cef,_0x2f8967={},_0x5a25ac){for(const {isAnchor:_0x3ca2d3,cellHeight:_0x3f80a3,cellWidth:_0x266fda}of _0x5a25ac[_0xf814('0x60')](_0x192cef,{'includeAllSlots':!0x0,..._0x2f8967}))if(!_0x3ca2d3||0x1!=_0x3f80a3||0x1!=_0x266fda)return!0x1;return!0x0;}
|
|
23
|
+
const _0x30a0=['join','getSuggestion','containsRange','afterInit','unwrap','name','commands','*Replace\x20table\x20cells*','activeMarkers','_getCoordsForCells','low','tableCellHorizontalAlignment','getChild','getItems','trackChanges','getAllAdjacentSuggestions','createRangeIn','showSuggestionHighlights','createPositionBefore','from','markMultiRangeDeletion','editor','cell','_suggestionFactory','getRowIndexes','getChildren','getShiftedBy','TableUtils','suggestion-td','createRangeOn','subType','markers','root','getSuggestions','keys','cells','markerAttributes','getRanges','view','getRows','nextSibling','length','nodeAfter','createElement','tableCellBorderColor','insert','tablePasteRow','tableCellSuggestion','tablePasteColumn','editingDowncast','wrap','insertContent','getMarkers','deletion','markMultiRangeInsertion','stop','reduce','rowInsertionRanges','tablePasteChainId','removeMarker','find','table','author','formatBlock','_isForcedDefaultExecutionBlock','last','push','suggestionUnloaded','for','removeColumns','options','TrackChangesEditing','suggestion:formatBlock:tablePasteCell','tableCellPadding','setAttribute','getContainedElement','position','startsWith','insertion','content','ck-suggestion-marker','tablePasteCell','newRange','getTableIfOnlyTableInContent','listenTo','has','attributes','createTableWalker','rowInsertionIndexes','removeRows','isInContent','getChanges','isEqual','move','registerPostFixer','createRange','tableCellBorderStyle','elementToElement','fill','_descriptionFactory','getSuggestionCallback','tableCellBackgroundColor','dataDowncast','next','registerCustomCallback','registerDescriptionCallback','suggestion','getChangedMarkers','markMultiRangeBlockFormat','return','insertionRanges','row','forceDefaultExecution','tablePaste','some','get','differ','register','findAncestor','redo','updateMarker','getColumnIndexes','change','tableCellBorderWidth','includes','paragraph','map','markerName','set','conversion','oldRange','isEmpty','plugins','type','rootName','endRow','accept','previous','model','end','high','getRange','value','add','insertColumns','discard','documentSelection','previousSibling','remove','column','suggestionLoaded','filter','hasSuggestion','TableClipboard','clipboardOutput','locale','markerToHighlight','Users','columnInsertionIndexes','document','element','start','getColumns','_splitMarkerName','setAttributes','_replaceTableSlotCell'];(function(_0x2f29a6,_0x30a0a8){const _0x4ea457=function(_0x4bc26b){while(--_0x4bc26b){_0x2f29a6['push'](_0x2f29a6['shift']());}};_0x4ea457(++_0x30a0a8);}(_0x30a0,0x12a));const _0x4ea4=function(_0x2f29a6,_0x30a0a8){_0x2f29a6=_0x2f29a6-0x0;let _0x4ea457=_0x30a0[_0x2f29a6];return _0x4ea457;};import{getTranslation as _0x172592}from'../utils/common-translations';import{Plugin as _0x4b384}from'ckeditor5/src/core';import{uid as _0x12082c,priorities as _0x4c9fc6}from'ckeditor5/src/utils';import _0x3a8c82 from'./table';const le=[_0x4ea4('0x9d'),_0x4ea4('0x4e'),_0x4ea4('0x82'),_0x4ea4('0x2d'),'tableCellVerticalAlignment',_0x4ea4('0x87'),_0x4ea4('0x6b')],ae=Object['fromEntries'](le['map'](_0x590507=>[_0x590507,null]));export default class At extends _0x4b384{static get['requires'](){return[_0x3a8c82];}[_0x4ea4('0x25')](){const _0x198b86=this[_0x4ea4('0x37')];if(!_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x77')]('TableClipboard'))return;const _0x4f05d4=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x69')),_0x339be0=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x3d')),_0xac261b=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x3a8c82),_0x2ceade=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x15'));_0xac261b['_tablePostFixingSubtypes'][_0x4ea4('0x64')]('tablePasteRow','tablePasteColumn'),_0x198b86[_0x4ea4('0x6')]['schema'][_0x4ea4('0x97')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x198b86[_0x4ea4('0xa3')][_0x4ea4('0x83')]({'model':_0x4ea4('0x51'),'view':'suggestion-td'});let _0x34b6c7=null;_0x198b86[_0x4ea4('0x6')]['on'](_0x4ea4('0x55'),(_0x10eab5,_0x42e1ee)=>{const [_0x2c9d9d,_0xf035cd]=_0x42e1ee,_0x5e5978=_0x42e1ee[_0x42e1ee['length']-0x1];_0x5e5978&&_0x5e5978[_0x4ea4('0x92')]||_0x4f05d4[_0x4ea4('0x62')]||this['editor'][_0x4ea4('0x28')][_0x4ea4('0x95')](_0x4ea4('0x30'))[_0x4ea4('0xa')]&&function(_0x21f233,_0x145925,_0x100a6c,_0x1fa9e6,_0xda9b7){if(_0x145925&&!_0x145925['is'](_0x4ea4('0xe')))return!0x1;const _0x1a2aa0=_0xda9b7[_0x4ea4('0x75')](_0x21f233,_0x100a6c);if(!_0x1a2aa0||!fe(_0x1a2aa0,void 0x0,_0x1fa9e6))return!0x1;const _0x22d727=_0x1fa9e6['getSelectionAffectedTableCells'](_0x100a6c[_0x4ea4('0x1b')]['selection']);if(!_0x22d727[_0x4ea4('0x4b')])return!0x1;const _0x370d67=_0x22d727[0x0]['findAncestor']('table'),_0x90d2d3=_0x1fa9e6[_0x4ea4('0x3a')](_0x22d727),_0x270941=_0x1fa9e6[_0x4ea4('0x9b')](_0x22d727),_0x16a5f6={'startRow':_0x90d2d3['first'],'endRow':_0x90d2d3[_0x4ea4('0x63')],'startColumn':_0x270941['first'],'endColumn':_0x270941['last']};return 0x1==_0x22d727[_0x4ea4('0x4b')]&&(_0x16a5f6[_0x4ea4('0x3')]+=_0x1fa9e6[_0x4ea4('0x49')](_0x1a2aa0)-0x1,_0x16a5f6['endColumn']+=_0x1fa9e6[_0x4ea4('0x1e')](_0x1a2aa0)-0x1),fe(_0x370d67,_0x16a5f6,_0x1fa9e6);}(_0x2c9d9d,_0xf035cd,_0x198b86[_0x4ea4('0x6')],_0x339be0,_0x2ceade)&&(_0x10eab5[_0x4ea4('0x59')](),_0x34b6c7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x9c')](()=>{_0x198b86['model'][_0x4ea4('0x55')](_0x42e1ee[0x0],_0x42e1ee[0x1],_0x42e1ee[0x2],{'forceDefaultExecution':!0x0});const _0x120f16=_0x12082c(),{rowInsertionRanges:_0x1c7878,columnInsertionRanges:_0x3017f0,insertionRanges:_0x2598cd,deletionRanges:_0x18e035,cells:_0x115dd2}=_0x34b6c7;_0x1c7878['length']&&_0x4f05d4[_0x4ea4('0x58')](_0x1c7878,_0x4ea4('0x50'),{'tablePasteChainId':_0x120f16}),_0x3017f0['length']&&_0x4f05d4[_0x4ea4('0x58')](_0x3017f0,_0x4ea4('0x52'),{'tablePasteChainId':_0x120f16}),_0x2598cd[_0x4ea4('0x4b')]&&_0x4f05d4[_0x4ea4('0x58')](_0x2598cd,_0x4ea4('0x93'),{'tablePasteChainId':_0x120f16,'skipNestingCheck':!0x0}),_0x18e035[_0x4ea4('0x4b')]&&_0x4f05d4[_0x4ea4('0x36')](_0x18e035,_0x4ea4('0x93'),{'tablePasteChainId':_0x120f16,'skipNestingCheck':!0x0});const _0x279b55=_0x4f05d4[_0x4ea4('0x8e')](_0x115dd2[_0x4ea4('0xa0')](({element:_0x599400})=>_0x599400),{'formatGroupId':_0x12082c()},[],_0x4ea4('0x73'),{'tablePasteChainId':_0x120f16});if(_0x279b55){const _0x514b75=_0x279b55[_0x4ea4('0x56')](),_0x3da021=[];for(const {element:_0xe1a574,attributes:_0x236ee8}of _0x115dd2){if(!_0x236ee8)continue;const _0x5902d6=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x3f')](_0xe1a574),_0x106988=_0x514b75[_0x4ea4('0x5e')](_0x480091=>_0x480091[_0x4ea4('0x9')]()[_0x4ea4('0x7e')](_0x5902d6));_0x106988&&_0x3da021['push']([_0x106988['name'],_0x236ee8]);}_0x3da021[_0x4ea4('0x4b')]&&_0x279b55[_0x4ea4('0x6c')](_0x4ea4('0x46'),Object['fromEntries'](_0x3da021));}_0x34b6c7=null;}));},{'priority':_0x4c9fc6[_0x4ea4('0x8')]+0xa}),_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')]('TableClipboard')['on'](_0x4ea4('0x21'),(_0x1e9a34,_0x44c7f3)=>{const [_0x4267ad,_0x7e2476,,_0x8378ea]=_0x44c7f3;if(!_0x34b6c7)return;_0x1e9a34[_0x4ea4('0x59')]();const _0x12f85f=_0x4267ad[_0x4ea4('0x38')],_0x1bcbf0=_0x7e2476,_0x267e8d=ce(_0x12f85f),_0x5509e6=ce(_0x1bcbf0);_0x1e9a34[_0x4ea4('0x8f')]=_0x12f85f;let _0x1fd70f=null,_0x27595f=null;if(_0x5509e6||_0x267e8d){if(_0x267e8d&&!_0x5509e6){_0x8378ea['remove'](_0x12f85f[_0x4ea4('0x2e')](0x0));for(const _0x213653 of Array['from'](_0x1bcbf0[_0x4ea4('0x3b')]()))_0x8378ea['insert'](_0x213653,_0x12f85f,'end');const _0x50f935=_0x34b6c7[_0x4ea4('0x7a')]['includes'](_0x4267ad[_0x4ea4('0x91')]),_0x67e50c=_0x34b6c7[_0x4ea4('0x1a')]['includes'](_0x4267ad[_0x4ea4('0x11')]);_0x50f935||_0x67e50c||(_0x1fd70f=_0x8378ea[_0x4ea4('0x32')](_0x12f85f));}else _0x5509e6&&!_0x267e8d&&(_0x27595f=_0x8378ea[_0x4ea4('0x32')](_0x12f85f));}else{const _0x4344e2=_0x8378ea[_0x4ea4('0x4d')](_0x4ea4('0x51')),_0x536ca1=_0x8378ea[_0x4ea4('0x4d')]('tableCellSuggestion');_0x8378ea[_0x4ea4('0x54')](_0x8378ea['createRangeIn'](_0x12f85f),_0x536ca1),_0x8378ea['insert'](_0x4344e2,_0x12f85f,0x0);for(const _0x4a4dc8 of Array[_0x4ea4('0x35')](_0x1bcbf0[_0x4ea4('0x3b')]()))_0x8378ea[_0x4ea4('0x4f')](_0x4a4dc8,_0x4344e2,_0x4ea4('0x7'));_0x1fd70f=_0x8378ea[_0x4ea4('0x3f')](_0x4344e2),_0x27595f=_0x8378ea[_0x4ea4('0x3f')](_0x536ca1);}const _0x3724dd=Array[_0x4ea4('0x35')](_0x1bcbf0['getAttributes']())[_0x4ea4('0x13')](([_0x187df0])=>le[_0x4ea4('0x9e')](_0x187df0));_0x34b6c7[_0x4ea4('0x45')][_0x4ea4('0x64')]({'element':_0x12f85f,'attributes':_0x3724dd['length']?Object['fromEntries'](_0x3724dd):null}),_0x1fd70f&&_0x34b6c7[_0x4ea4('0x90')][_0x4ea4('0x64')](_0x1fd70f),_0x27595f&&_0x34b6c7['deletionRanges'][_0x4ea4('0x64')](_0x27595f);},{'priority':_0x4ea4('0x8')}),_0x339be0['on'](_0x4ea4('0xc'),(_0x1d03dd,_0x4c53ae)=>{const [_0x411c7e,_0x4ddb0b={}]=_0x4c53ae;if(!_0x34b6c7)return;const _0x1bbf0f=_0x4ddb0b['at']||0x0,_0x2c1179=_0x4ddb0b['columns']||0x1;_0x34b6c7[_0x4ea4('0x1a')]=new Array(_0x2c1179)['fill'](_0x1bbf0f)['map']((_0x5ccbc8,_0x4f365d)=>_0x5ccbc8+_0x4f365d);for(const {cell:_0x565d08}of _0x339be0['createTableWalker'](_0x411c7e,{'startColumn':_0x1bbf0f,'endColumn':_0x1bbf0f+_0x2c1179-0x1}))_0x34b6c7['columnInsertionRanges']['push'](_0x198b86['model'][_0x4ea4('0x3f')](_0x565d08));},{'priority':_0x4ea4('0x2c')}),_0x339be0['on']('insertRows',(_0x37310c,_0x321c96)=>{const [_0x35c003,_0x1c8221={}]=_0x321c96;if(!_0x34b6c7)return;const _0x18cd18=_0x1c8221['at']||0x0,_0x107534=_0x1c8221['rows']||0x1;_0x34b6c7[_0x4ea4('0x7a')]=new Array(_0x107534)[_0x4ea4('0x84')](_0x18cd18)[_0x4ea4('0xa0')]((_0x427816,_0x265540)=>_0x427816+_0x265540);for(const {cell:_0x462471}of _0x339be0[_0x4ea4('0x79')](_0x35c003,{'startRow':_0x18cd18,'endRow':_0x18cd18+_0x107534-0x1}))_0x34b6c7[_0x4ea4('0x5b')][_0x4ea4('0x64')](_0x198b86['model']['createRangeOn'](_0x462471));},{'priority':_0x4ea4('0x2c')}),_0x4f05d4[_0x4ea4('0x85')][_0x4ea4('0x8b')](_0x4f7c82=>{if(_0x4f7c82[_0x4ea4('0x40')]&&_0x4f7c82[_0x4ea4('0x40')][_0x4ea4('0x6f')]('tablePaste'))return _0x4f7c82['previous']?{}:{'type':_0x4ea4('0x70'),'content':_0x172592(_0x198b86[_0x4ea4('0x17')],_0x4ea4('0x29'))};});const _0x471bf1=()=>!0x1;for(const _0x4faa5a of[_0x4ea4('0x93'),_0x4ea4('0x52'),_0x4ea4('0x50'),_0x4ea4('0x73')])_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1),_0x4f05d4['_suggestionFactory']['registerCustomCallback'](_0x4ea4('0x57'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x61'),_0x4faa5a,_0x4ea4('0x22'),_0x471bf1);_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x61'),'tablePasteCell',_0x4ea4('0xd'),_0x471bf1),_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')]('formatBlock','tablePasteCell',_0x4ea4('0x4'),(_0x2b8e8b,_0x2121bf,_0x5bb026)=>{const _0x5bc613=_0x2b8e8b[_0x4ea4('0xa0')](_0x319ec7=>_0x319ec7[_0x4ea4('0x6d')]())[_0x4ea4('0x13')](_0x59e89b=>_0x59e89b),_0x257a9f=new Map(_0x5bc613['map'](_0x1bd78a=>[_0x1bd78a,null]));if(_0x34b6c7)for(const {element:_0x271a3e,attributes:_0x10e981}of _0x34b6c7[_0x4ea4('0x45')])_0x10e981&&_0x257a9f['set'](_0x271a3e,_0x10e981);else{if(_0x5bb026&&_0x5bb026['markerAttributes'])for(const [_0x285669,_0x3ce442]of Object['entries'](_0x5bb026[_0x4ea4('0x46')])){const _0xf7f741=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x41')][_0x4ea4('0x95')](_0x285669),_0x3da1bd=_0xf7f741?_0xf7f741[_0x4ea4('0x9')]()['getContainedElement']():null;_0x3da1bd&&_0x257a9f[_0x4ea4('0xa2')](_0x3da1bd,_0x3ce442);}}_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x9c')](_0x2ab06f=>{for(const [_0x5e304f,_0x176ae8]of _0x257a9f)_0x2ab06f[_0x4ea4('0x20')]({...ae,..._0x176ae8},_0x5e304f);});});const _0x74d5bf=(_0x12afd2,_0x1e70ad)=>{_0x4f05d4['_suggestionFactory'][_0x4ea4('0x8a')](_0x12afd2,_0x4ea4('0x93'),_0x1e70ad,(_0x2e7b87,_0x46a731,_0x5c87d4)=>{_0x198b86['model'][_0x4ea4('0x9c')](_0x3e5dcd=>{const _0x2ff19a=[];for(const _0x13dcfd of _0x2e7b87){const _0x37a41a=_0x13dcfd[_0x4ea4('0x1d')][_0x4ea4('0x4c')];_0x37a41a['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'))&&_0x2ff19a['push'](_0x37a41a);}_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x86')](_0x12afd2,null,_0x1e70ad)(_0x2e7b87,_0x46a731,_0x5c87d4);for(const _0x5ce2a3 of _0x2ff19a)'$graveyard'!=_0x5ce2a3[_0x4ea4('0x42')][_0x4ea4('0x2')]&&_0x3e5dcd[_0x4ea4('0x26')](_0x5ce2a3);});});};_0x74d5bf(_0x4ea4('0x70'),_0x4ea4('0x4')),_0x74d5bf(_0x4ea4('0x70'),_0x4ea4('0xd')),_0x74d5bf(_0x4ea4('0x57'),_0x4ea4('0x4')),_0x74d5bf('deletion',_0x4ea4('0xd')),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4ea4('0x50'),_0x4ea4('0xd'),_0x8a1bee=>{const _0x3c5520=_0x8a1bee[_0x4ea4('0xa0')](_0x19c383=>_0x19c383[_0x4ea4('0x6d')]()),_0x3585cc=_0x3c5520[0x0][_0x4ea4('0x98')](_0x4ea4('0x5f')),{minRow:_0xbc71cb,maxRow:_0x55e05a}=_0xac261b['_getCoordsForCells'](_0x3c5520);_0x339be0[_0x4ea4('0x7b')](_0x3585cc,{'at':_0xbc71cb,'rows':_0x55e05a-_0xbc71cb+0x1});}),_0x4f05d4[_0x4ea4('0x39')][_0x4ea4('0x8a')](_0x4ea4('0x70'),_0x4ea4('0x52'),_0x4ea4('0xd'),_0x527b8f=>{const _0x9193fa=_0x527b8f[_0x4ea4('0xa0')](_0x184c28=>_0x184c28[_0x4ea4('0x6d')]()),_0x34956c=_0x9193fa[0x0][_0x4ea4('0x98')](_0x4ea4('0x5f')),{minColumn:_0x19c1aa,maxColumn:_0x16d71a}=_0xac261b[_0x4ea4('0x2b')](_0x9193fa);_0x339be0[_0x4ea4('0x67')](_0x34956c,{'at':_0x19c1aa,'columns':_0x16d71a-_0x19c1aa+0x1});});const _0x1117e6=(_0x47ac72,_0x1cb554)=>{if(!_0x1cb554[_0x4ea4('0x40')]||!_0x1cb554[_0x4ea4('0x40')]['startsWith']('tablePaste'))return;const _0x25079e=_0x1cb554['attributes'][_0x4ea4('0x5c')],_0x8d7975=_0x4f05d4[_0x4ea4('0x43')]()[_0x4ea4('0x13')](_0x5527d6=>_0x5527d6[_0x4ea4('0x7c')]&&_0x5527d6[_0x4ea4('0x78')]&&_0x5527d6['attributes'][_0x4ea4('0x5c')]==_0x25079e);_0x8d7975['length']&&_0x1cb554[_0x4ea4('0x31')]()[_0x4ea4('0x4b')]!=_0x8d7975['length']&&_0x8d7975[_0x4ea4('0x5a')]((_0x48d739,_0x3f1915)=>(_0x48d739[_0x4ea4('0x89')]=_0x3f1915,_0x3f1915[_0x4ea4('0x5')]=_0x48d739,_0x3f1915));};function _0x1a9f59(_0x3ae76c,_0x16d791=!0x0){const {id:_0x195439}=_0x4f05d4[_0x4ea4('0x1f')](_0x3ae76c[_0x4ea4('0xa1')]),_0x4fed6c=[_0x4ea4('0x72'),'ck-suggestion-marker-insertion'],_0x1bdc81=_0x4f05d4[_0x4ea4('0x2a')]['includes'](_0x3ae76c[_0x4ea4('0xa1')]);return _0x1bdc81&&_0x4fed6c[_0x4ea4('0x64')]('ck-suggestion-marker--active'),{'classes':_0x4fed6c,'attributes':{'data-suggestion':_0x195439},'priority':_0x1bdc81&&_0x16d791?0xbc2:0xbb8};}_0x4f05d4['on'](_0x4ea4('0x12'),_0x1117e6,{'priority':'high'}),_0x4f05d4['on'](_0x4ea4('0x65'),_0x1117e6,{'priority':'high'}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](()=>{let _0x5b4552=!0x1;const _0x4c1138=Array[_0x4ea4('0x35')](_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x96')]['getChangedMarkers']());for(const {name:_0x40d0e0,data:_0x480f47}of _0x4c1138){const {group:_0x4335eb,type:_0x356fe9,id:_0x48f34a}=_0x4f05d4[_0x4ea4('0x1f')](_0x40d0e0);if(_0x4ea4('0x8c')!=_0x4335eb||_0x4ea4('0x57')!=_0x356fe9||_0x480f47['oldRange'])continue;if(!_0x4f05d4[_0x4ea4('0x14')](_0x48f34a))continue;const _0x442bf9=_0x4f05d4[_0x4ea4('0x23')](_0x48f34a)[_0x4ea4('0x47')](),_0x485816=_0x198b86[_0x4ea4('0x0')][_0x4ea4('0x95')](_0x4ea4('0x19'))['me'];for(const _0x313b75 of _0x4f05d4['getSuggestions']()){if(!_0x313b75[_0x4ea4('0x7c')]||_0x313b75[_0x4ea4('0x60')]!=_0x485816)continue;if(_0x4ea4('0x61')!=_0x313b75[_0x4ea4('0x1')]||_0x4ea4('0x73')!=_0x313b75[_0x4ea4('0x40')])continue;if(_0x313b75['getRanges']()['every'](_0x53e68d=>_0x442bf9[_0x4ea4('0x94')](_0x5b6dff=>_0x5b6dff[_0x4ea4('0x24')](_0x53e68d,!0x0))))for(const _0x323d15 of _0x313b75[_0x4ea4('0x31')]())_0x323d15[_0x4ea4('0x7c')]&&(_0x323d15[_0x4ea4('0xd')](),_0x5b4552=!0x0);}}return _0x5b4552;}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](_0xe6d26=>{const _0x3abe8f=_0x198b86['commands'][_0x4ea4('0x95')](_0x4ea4('0x99'));if(!_0x3abe8f||!_0x3abe8f['_createdBatches'][_0x4ea4('0x77')](_0xe6d26['batch']))return!0x1;let _0x21f62c=!0x1;const _0x49a95b=_0x198b86['plugins'][_0x4ea4('0x95')]('Users')['me'],_0x515c14=_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x96')][_0x4ea4('0x7d')](),_0x3f8ff0=Array[_0x4ea4('0x35')](_0x198b86[_0x4ea4('0x6')]['document'][_0x4ea4('0x96')][_0x4ea4('0x8d')]())[_0x4ea4('0x13')](({name:_0x202d89,data:_0x198801})=>{const {group:_0x6e57f8,subType:_0x54a9fb,authorId:_0x3039f2}=_0x4f05d4[_0x4ea4('0x1f')](_0x202d89);return _0x4ea4('0x8c')==_0x6e57f8&&_0x4ea4('0x93')==_0x54a9fb&&_0x3039f2==_0x49a95b['id']&&!_0x198801[_0x4ea4('0xa4')];});for(const _0x782542 of _0x515c14){if(_0x4ea4('0x4f')!=_0x782542[_0x4ea4('0x1')]||_0x4ea4('0x51')!=_0x782542[_0x4ea4('0x27')]||0x1!=_0x782542[_0x4ea4('0x4b')])continue;const _0x10e7c9=_0xe6d26[_0x4ea4('0x81')](_0x782542[_0x4ea4('0x6e')],_0x782542[_0x4ea4('0x6e')][_0x4ea4('0x3c')](0x1));if(!_0x3f8ff0['find'](({data:_0x3d6b31})=>_0x3d6b31[_0x4ea4('0x74')][_0x4ea4('0x7e')](_0x10e7c9)))for(const {name:_0x263a59,data:_0x111b7a}of _0x3f8ff0)if(_0x10e7c9['containsRange'](_0x111b7a[_0x4ea4('0x74')])){_0xe6d26[_0x4ea4('0x9a')](_0x263a59,{'range':_0x10e7c9}),_0x21f62c=!0x0;break;}}return _0x21f62c;}),_0x198b86[_0x4ea4('0x6')][_0x4ea4('0x1b')][_0x4ea4('0x80')](_0x5850fa=>{let _0x2da760=!0x1;const _0x591fbe=_0x198b86[_0x4ea4('0x0')]['get'](_0x4ea4('0x19'))['me'],_0x5a2e60=_0x4f05d4[_0x4ea4('0x43')]()[_0x4ea4('0x13')](_0x294cc5=>_0x294cc5[_0x4ea4('0x7c')]&&_0x294cc5['author']==_0x591fbe),_0x2aa10a=new Set(),_0xd9985=new Set();for(const _0x2ab9db of _0x5a2e60)if(_0x4ea4('0x93')==_0x2ab9db[_0x4ea4('0x40')])for(const _0x340262 of _0x2ab9db[_0x4ea4('0x56')]()){const _0x52a074=_0x340262[_0x4ea4('0x9')]()[_0x4ea4('0x6d')]();if(_0x52a074){if(_0x52a074['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'))&&ce(_0x52a074)){_0x2ab9db[_0x4ea4('0x5d')](_0x340262[_0x4ea4('0x27')]),_0x2aa10a[_0x4ea4('0xb')](_0x52a074),_0x2da760=!0x0;const _0xd793d=_0x52a074[_0x4ea4('0x4a')],_0x39514b=_0x52a074[_0x4ea4('0xf')],_0x516b6d=_0xd793d&&_0xd793d['is'](_0x4ea4('0x1c'),_0x4ea4('0x51')),_0x58d126=_0x39514b&&_0x39514b['is'](_0x4ea4('0x1c'),_0x4ea4('0x51'));_0x516b6d&&!_0x2aa10a[_0x4ea4('0x77')](_0xd793d)&&_0xd9985[_0x4ea4('0xb')](_0xd793d),_0x58d126&&!_0x2aa10a[_0x4ea4('0x77')](_0x39514b)&&_0xd9985['add'](_0x39514b);}else _0x52a074['is']('element',_0x4ea4('0x9f'))&&_0x52a074[_0x4ea4('0xa5')]&&(_0x2ab9db['removeMarker'](_0x340262['name']),_0x2da760=!0x0);}}else{if('tablePasteCell'==_0x2ab9db[_0x4ea4('0x40')]){if(!_0x2ab9db[_0x4ea4('0x78')]||!_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x5c')])continue;const _0x128f1a=_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x46')];if(_0x128f1a&&Object[_0x4ea4('0x44')](_0x128f1a)[_0x4ea4('0x4b')])continue;const _0x4e91a0=_0x2ab9db[_0x4ea4('0x78')][_0x4ea4('0x5c')];let _0x3225aa=!0x0,_0x43c2d8=!0x0;for(const _0x6b9afb of _0x5a2e60)if(_0x6b9afb['subType']&&_0x6b9afb['subType']['startsWith']('tablePaste')){if(!_0x6b9afb[_0x4ea4('0x78')][_0x4ea4('0x5c')]){_0x43c2d8=!0x1;break;}if(_0x6b9afb['id']!=_0x2ab9db['id']&&_0x6b9afb[_0x4ea4('0x78')]['tablePasteChainId']==_0x4e91a0){_0x3225aa=!0x1;break;}}_0x43c2d8&&_0x3225aa&&(_0x2ab9db['removeMarkers'](),_0x2da760=!0x0);}}for(const _0x4c2029 of _0x2aa10a)_0x5850fa['remove'](_0x4c2029);for(const _0xa2145f of _0xd9985)_0x5850fa[_0x4ea4('0x26')](_0xa2145f);return _0x2da760;}),_0x198b86[_0x4ea4('0xa3')][_0x4ea4('0x66')](_0x4ea4('0x53'))[_0x4ea4('0x18')]({'model':_0x4ea4('0x6a'),'view':(_0x33cdb7,_0xef0f91)=>_0x1a9f59(_0x33cdb7),'converterPriority':_0x4ea4('0x8')}),_0x198b86['conversion'][_0x4ea4('0x66')](_0x4ea4('0x88'))[_0x4ea4('0x18')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24487e,_0x7faa4a)=>_0x7faa4a[_0x4ea4('0x68')][_0x4ea4('0x33')]?_0x1a9f59(_0x24487e,!0x1):null,'converterPriority':_0x4ea4('0x8')});const _0x4325c4=_0x198b86['editing'][_0x4ea4('0x48')];this[_0x4ea4('0x76')](_0x4325c4[_0x4ea4('0x1b')],_0x4ea4('0x16'),(_0x182b93,_0x3fc0c2)=>{const _0x2034f3=[];for(const _0x584613 of _0x4325c4[_0x4ea4('0x32')](_0x3fc0c2[_0x4ea4('0x71')])[_0x4ea4('0x2f')]())_0x584613['is']('element',_0x4ea4('0x3e'))&&_0x2034f3['push'](_0x584613);_0x4325c4[_0x4ea4('0x9c')](_0x5962ab=>{for(const _0x3c4954 of _0x2034f3)_0x5962ab[_0x4ea4('0x7f')](_0x5962ab['createRangeIn'](_0x3c4954),_0x5962ab[_0x4ea4('0x34')](_0x3c4954)),_0x5962ab[_0x4ea4('0x10')](_0x3c4954);});});}}function ce(_0x2b3338){if(_0x2b3338[_0x4ea4('0xa5')])return!0x0;const _0x574b16=_0x2b3338[_0x4ea4('0x2e')](0x0);return _0x574b16['is']('element',_0x4ea4('0x9f'))&&_0x574b16['isEmpty'];}function fe(_0x1dcc18,_0x531104={},_0x202689){for(const {isAnchor:_0x4f56a2,cellHeight:_0x2b2752,cellWidth:_0x53b588}of _0x202689[_0x4ea4('0x79')](_0x1dcc18,{'includeAllSlots':!0x0,..._0x531104}))if(!_0x4f56a2||0x1!=_0x2b2752||0x1!=_0x53b588)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e44=['type','handleResizeTableWidthCommand','formatInline','tableWidth','columnWidths','plugins','formatBlock','TrackChangesEditing','getContainedElement','getSelectedElement','document','editor','get','table','accept','formatGroupId','locale','bind','registerCustomCallback','resizeTable','enableCommand','getSuggestions','handleSuggestionDescription','getSuggestionCallback','afterInit','Users','subType','TableColumnResizeEditing','model','discard','_descriptionFactory','author','has','commandParams','data','selection','getAttribute','_suggestionFactory','markBlockFormat'];(function(_0x550891,_0x5e4424){const _0x600e64=function(_0x5cec83){while(--_0x5cec83){_0x550891['push'](_0x550891['shift']());}};_0x600e64(++_0x5e4424);}(_0x5e44,0x1c9));const _0x600e=function(_0x550891,_0x5e4424){_0x550891=_0x550891-0x0;let _0x600e64=_0x5e44[_0x550891];return _0x600e64;};import{Plugin as _0x4433bb}from'ckeditor5/src/core';import{getTranslation as _0x2ede41}from'../utils/common-translations';export default class It extends _0x4433bb{[_0x600e('0x23')](){if(!this[_0x600e('0x16')]['plugins'][_0x600e('0x4')]('TableColumnResizeEditing'))return;const _0x430b3a=this[_0x600e('0x16')][_0x600e('0x10')][_0x600e('0x17')](_0x600e('0x12'));_0x430b3a[_0x600e('0x1f')]('resizeTableWidth',this[_0x600e('0xc')][_0x600e('0x1c')](this)),_0x430b3a[_0x600e('0x9')][_0x600e('0x1d')]('formatBlock',_0x600e('0x1e'),_0x600e('0x19'),_0x430b3a['_suggestionFactory']['getSuggestionCallback'](_0x600e('0x11'),null,_0x600e('0x1'))),_0x430b3a[_0x600e('0x9')][_0x600e('0x1d')](_0x600e('0x11'),'resizeTable',_0x600e('0x1'),_0x430b3a[_0x600e('0x9')][_0x600e('0x22')](_0x600e('0x11'),null,_0x600e('0x19'))),_0x430b3a[_0x600e('0x2')]['registerDescriptionCallback'](this['handleSuggestionDescription'][_0x600e('0x1c')](this));}[_0x600e('0xc')](_0x39e28c,_0x34a41c){const _0x427b0b=this['editor'][_0x600e('0x10')]['get'](_0x600e('0x12')),_0x2b9df9=this[_0x600e('0x16')][_0x600e('0x10')][_0x600e('0x17')](_0x600e('0x26')),_0x1b516e=_0x34a41c[_0x600e('0x18')]||this[_0x600e('0x16')][_0x600e('0x0')][_0x600e('0x15')][_0x600e('0x7')][_0x600e('0x14')]();this[_0x600e('0x16')]['model']['change'](()=>{const _0x5ccc0c=_0x2b9df9['getColumnGroupElement'](_0x1b516e);let _0x26729a=_0x5ccc0c?_0x2b9df9['getTableColumnsWidths'](_0x5ccc0c):null,_0x4c39f1=_0x1b516e[_0x600e('0x8')](_0x600e('0xe'))||null;const _0x4da8c5=_0x34a41c['tableWidth']||_0x4c39f1,_0x5d5600=_0x34a41c[_0x600e('0xf')]||_0x26729a,_0x3b00f3=this[_0x600e('0x16')][_0x600e('0x10')][_0x600e('0x17')](_0x600e('0x24'))['me'];for(const _0xdc24fb of _0x427b0b[_0x600e('0x20')]()){const _0x2c0b6d=_0xdc24fb[_0x600e('0x13')]();if(_0x600e('0x1e')===_0xdc24fb[_0x600e('0x25')]&&_0x2c0b6d===_0x1b516e){_0xdc24fb[_0x600e('0x3')]!==_0x3b00f3&&_0xdc24fb['discard']();const _0x37e49c=_0xdc24fb[_0x600e('0x6')][_0x600e('0x5')];_0x4c39f1=_0x37e49c[0x0][_0x600e('0xe')],_0x26729a=_0x37e49c[0x0][_0x600e('0xf')];break;}}_0x39e28c({'table':_0x1b516e,'tableWidth':_0x4da8c5,'columnWidths':_0x5d5600}),_0x427b0b[_0x600e('0xa')](_0x1b516e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4c39f1,'columnWidths':_0x26729a}],'formatGroupId':_0x600e('0x1e')},[],_0x600e('0x1e'));});}[_0x600e('0x21')](_0x283c74){if(_0x600e('0x11')!=_0x283c74[_0x600e('0xb')]&&_0x600e('0xd')!=_0x283c74[_0x600e('0xb')])return;const {data:_0x50fdd5}=_0x283c74;if(_0x50fdd5&&_0x600e('0x1e')===_0x50fdd5[_0x600e('0x1a')]){const _0x22d92a='*Format:*\x20resize\x20table';return{'type':'format','content':_0x2ede41(this[_0x600e('0x16')][_0x600e('0x1b')],_0x22d92a)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x658a=['getCellLocation','consumable','setAttribute','data','addMarker:suggestion','consume','registerDescriptionCallback','ck-suggestion-marker--active','get','markerName','parent','start','registerAttributeLabel','data-suggestion','registerCustomCallback','FORMAT_HEADER_ROW','commandName','FORMAT_HEADER_COLUMN','has','createTableWalker','removeAttribute','setTableColumnHeader','formatBlock','options','type','headingRows','cell','format','accept','end','requires','TrackChangesEditing','writer','removeClass','showSuggestionHighlights','_handleLegacySuggestions','_descriptionFactory','forceValue','plugins','TableEditing','locale','_splitMarkerName','*Format:*\x20%0','commandParams','_registerLegacyDescription','mapper','markerRange','_enableDefaultAttributesIntegration','_acceptFormatSuggestionCallbackFactory','editing','unbindElementFromMarkerName','FORMAT_REGULAR_COLUMN','nodeAfter','editor','highest','ck-suggestion-marker-','headingColumns','setTableRowHeader','addClass','getSuggestion','downcastDispatcher','_suggestionFactory','item','markerNameToElements'];(function(_0x557257,_0x658a03){const _0x3b0aef=function(_0x5f10a2){while(--_0x5f10a2){_0x557257['push'](_0x557257['shift']());}};_0x3b0aef(++_0x658a03);}(_0x658a,0x1cb));const _0x3b0a=function(_0x557257,_0x658a03){_0x557257=_0x557257-0x0;let _0x3b0aef=_0x658a[_0x557257];return _0x3b0aef;};import{Plugin as _0x416f40}from'ckeditor5/src/core';import _0x3b7b4d from'./table';import{getTranslation as _0x483588}from'../utils/common-translations';export default class St extends _0x416f40{static get[_0x3b0a('0x13')](){return[_0x3b7b4d];}['afterInit'](){const _0x5c5928=this['editor'];if(!_0x5c5928['plugins'][_0x3b0a('0x7')](_0x3b0a('0x1c')))return;const _0x4edb3f=_0x5c5928['locale'],_0x37369e=_0x5c5928['plugins'][_0x3b0a('0x3d')](_0x3b0a('0x14'));_0x37369e['_enableDefaultAttributesIntegration'](_0x3b0a('0x2e'),[],[_0x3b0a('0xe')]),_0x37369e[_0x3b0a('0x24')](_0x3b0a('0xa'),[],[_0x3b0a('0x2d')]),_0x37369e[_0x3b0a('0x19')]['registerAttributeLabel'](_0x3b0a('0xe'),_0x483588(_0x4edb3f,_0x3b0a('0x4'))),_0x37369e[_0x3b0a('0x19')][_0x3b0a('0x1')](_0x3b0a('0x2d'),_0x483588(_0x4edb3f,'FORMAT_HEADER_COLUMN')),this[_0x3b0a('0x18')]();}[_0x3b0a('0x18')](){const _0x5e761f=this['editor']['plugins'][_0x3b0a('0x3d')](_0x3b0a('0x14')),_0x28ae2b=this[_0x3b0a('0x2a')][_0x3b0a('0x1b')]['get']('TableUtils'),_0x158e82=this[_0x3b0a('0x2a')][_0x3b0a('0x1b')][_0x3b0a('0x3d')](_0x3b7b4d)[_0x3b0a('0x25')]();function _0x55866a({showActiveMarker:_0x2c08ae=!0x0,setDataAttribute:_0x9a5c58=!0x0}={}){return(_0x258b36,_0x2f43c9,_0x57a79b)=>{const {type:_0x5c2e8b,id:_0x3ba981}=_0x5e761f[_0x3b0a('0x1e')](_0x2f43c9['markerName']),_0x509f01=_0x5e761f[_0x3b0a('0x30')](_0x3ba981),_0x30595f=_0x509f01[_0x3b0a('0x38')];if(_0x3b0a('0xb')!=_0x509f01[_0x3b0a('0xd')]||!_0x30595f||'setTableColumnHeader'!=_0x30595f[_0x3b0a('0x5')])return;if(_0x2f43c9[_0x3b0a('0x33')])return void _0x258b36['stop']();if(!_0x57a79b[_0x3b0a('0x36')][_0x3b0a('0x3a')](_0x2f43c9['markerRange'],_0x258b36['name']))return;const _0x49df6f=_0x2f43c9[_0x3b0a('0x23')][_0x3b0a('0x0')][_0x3b0a('0x29')],_0x1f2be3=_0x2f43c9[_0x3b0a('0x23')][_0x3b0a('0x12')]['nodeBefore'],_0x4c0802=_0x49df6f[_0x3b0a('0x3f')][_0x3b0a('0x3f')],{column:_0x39e7c2}=_0x28ae2b[_0x3b0a('0x35')](_0x49df6f),{column:_0x1fcac7}=_0x28ae2b[_0x3b0a('0x35')](_0x1f2be3);for(let _0x392793=_0x39e7c2;_0x392793<=_0x1fcac7;_0x392793++){const _0x419935=_0x28ae2b[_0x3b0a('0x8')](_0x4c0802,{'column':_0x392793,'includeAllSlots':!0x1});for(const _0x3e82ff of _0x419935){const _0x344f9b=_0x3e82ff[_0x3b0a('0xf')],_0x18420d=_0x57a79b[_0x3b0a('0x22')]['toViewElement'](_0x344f9b);_0x57a79b[_0x3b0a('0x15')][_0x3b0a('0x2f')](_0x3b0a('0x2c')+_0x5c2e8b,_0x18420d),_0x9a5c58&&_0x57a79b[_0x3b0a('0x15')][_0x3b0a('0x37')](_0x3b0a('0x2'),_0x3ba981,_0x18420d),_0x57a79b['mapper']['bindElementToMarker'](_0x18420d,_0x2f43c9[_0x3b0a('0x3e')]),_0x2c08ae&&(_0x5e761f['activeMarkers']['includes'](_0x2f43c9[_0x3b0a('0x3e')])?_0x57a79b['writer'][_0x3b0a('0x2f')](_0x3b0a('0x3c'),_0x18420d):_0x57a79b[_0x3b0a('0x15')][_0x3b0a('0x16')]('ck-suggestion-marker--active',_0x18420d));}}};}_0x5e761f[_0x3b0a('0x32')][_0x3b0a('0x3')](_0x3b0a('0xb'),'setTableRowHeader',_0x3b0a('0x11'),_0x158e82),_0x5e761f[_0x3b0a('0x32')][_0x3b0a('0x3')](_0x3b0a('0xb'),'setTableColumnHeader','accept',_0x158e82),this[_0x3b0a('0x2a')][_0x3b0a('0x26')][_0x3b0a('0x31')]['on'](_0x3b0a('0x39'),_0x55866a(),{'priority':_0x3b0a('0x2b')}),this[_0x3b0a('0x2a')][_0x3b0a('0x38')]['downcastDispatcher']['on'](_0x3b0a('0x39'),(_0x2ec8f3,_0x53aa12,_0x5b1037)=>{_0x5b1037[_0x3b0a('0xc')][_0x3b0a('0x17')]&&_0x55866a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ec8f3,_0x53aa12,_0x5b1037);},{'priority':_0x3b0a('0x2b')}),this[_0x3b0a('0x2a')][_0x3b0a('0x26')][_0x3b0a('0x31')]['on']('removeMarker:suggestion',(_0x20611d,_0x4f65d6,_0x388413)=>{const {type:_0x2b88e2,id:_0xedce51}=_0x5e761f[_0x3b0a('0x1e')](_0x4f65d6[_0x3b0a('0x3e')]),_0x398eae=_0x5e761f['getSuggestion'](_0xedce51),_0x192797=_0x398eae['data'];if(_0x3b0a('0xb')!=_0x398eae['type']||!_0x192797||'setTableColumnHeader'!=_0x192797[_0x3b0a('0x5')])return;const _0x2ed0a6=_0x388413[_0x3b0a('0x22')][_0x3b0a('0x34')](_0x4f65d6[_0x3b0a('0x3e')]);if(_0x2ed0a6)for(const _0x3aef44 of _0x2ed0a6)_0x388413[_0x3b0a('0x15')]['removeClass'](_0x3b0a('0x2c')+_0x2b88e2,_0x3aef44),_0x388413[_0x3b0a('0x15')][_0x3b0a('0x16')](_0x3b0a('0x3c'),_0x3aef44),_0x388413[_0x3b0a('0x15')][_0x3b0a('0x9')](_0x3b0a('0x2'),_0x3aef44),_0x388413[_0x3b0a('0x22')][_0x3b0a('0x27')](_0x3aef44,_0x4f65d6[_0x3b0a('0x3e')]);},{'priority':_0x3b0a('0x2b')}),this[_0x3b0a('0x21')]();}[_0x3b0a('0x21')](){const _0x258dac=this[_0x3b0a('0x2a')],_0x2cb7f7=_0x258dac[_0x3b0a('0x1d')];function _0x532c62(_0x3c147b){return{'type':_0x3b0a('0x10'),'content':_0x483588(_0x2cb7f7,_0x3b0a('0x1f'),_0x3c147b)};}_0x258dac[_0x3b0a('0x1b')][_0x3b0a('0x3d')](_0x3b0a('0x14'))[_0x3b0a('0x19')][_0x3b0a('0x3b')](_0x659276=>{if(_0x3b0a('0xb')!=_0x659276[_0x3b0a('0xd')])return;const {data:_0x143ef1}=_0x659276;if(_0x143ef1){if('setTableRowHeader'==_0x143ef1[_0x3b0a('0x5')]){const _0x20ffe7=_0x143ef1[_0x3b0a('0x20')][0x0]['forceValue'];return _0x532c62(_0x483588(_0x2cb7f7,_0x20ffe7?_0x3b0a('0x4'):'FORMAT_REGULAR_ROW'));}if(_0x3b0a('0xa')==_0x143ef1['commandName']){const _0x38b25d=_0x143ef1[_0x3b0a('0x20')][0x0][_0x3b0a('0x1a')];return _0x532c62(_0x483588(_0x2cb7f7,_0x38b25d?_0x3b0a('0x6'):_0x3b0a('0x28')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11d1=['find','push','getFirstPosition','filter','selection','mergeTableCellRight','document','return','length','refresh','mergeTableCells','element','mergeTableCellUp','_suggestionFactory','splitTableCellVertically','set:isEnabled','author','type','registerDescriptionCallback','trackChanges','markBlockFormat','model','registerCustomCallback','TableUtils','from','getRanges','execute','commandName','root','locale','map','getCellLocation','add','deletion','mergeTableCellDown','markMultiRangeBlockFormat','direction','forceDefaultExecution','horizontally','_areMergableCells','containsRange','setSelection','getSuggestions','findAncestor','fromRange','getSelectionAffectedTableCells','value','enableCommand','requires','tableCell','*Split\x20cell:*\x20vertically','editor','_tablePostFixingSubtypes','TableEditing','accept','change','_acceptFormatSuggestionCallbackFactory','getAncestors','rootName','detach','isInContent','stop','plugins','format','cell','mergeTableCellLeft','size','table','createRangeOn','_descriptionFactory','TrackChangesEditing','_isForcedDefaultExecutionBlock','splitTableCellHorizontally','commands','get','formatBlock','has'];(function(_0x7f6b48,_0x11d118){const _0x294c14=function(_0x1d575c){while(--_0x1d575c){_0x7f6b48['push'](_0x7f6b48['shift']());}};_0x294c14(++_0x11d118);}(_0x11d1,0x85));const _0x294c=function(_0x7f6b48,_0x11d118){_0x7f6b48=_0x7f6b48-0x0;let _0x294c14=_0x11d1[_0x7f6b48];return _0x294c14;};import{Plugin as _0x24dea5}from'ckeditor5/src/core';import _0x2f087d from'./table';import{LiveRange as _0x1ffb43}from'ckeditor5/src/engine';import{getTranslation as _0x448751}from'../utils/common-translations';export default class yt extends _0x24dea5{static get[_0x294c('0x45')](){return[_0x2f087d];}['afterInit'](){const _0x2d7def=this['editor'],_0x5e2edc=_0x2d7def[_0x294c('0x2a')]['document']['selection'],_0xd8bf6=_0x2d7def[_0x294c('0x32')];if(!_0x2d7def[_0x294c('0x6')]['has'](_0x294c('0x4a')))return;const _0x2f7661=_0x2d7def[_0x294c('0x6')]['get']('TrackChangesEditing'),_0x1edd77=_0x2d7def[_0x294c('0x6')][_0x294c('0x12')]('TableUtils'),_0x517260=_0x2d7def[_0x294c('0x6')][_0x294c('0x12')](_0x2f087d);_0x517260[_0x294c('0x49')][_0x294c('0x16')](_0x294c('0x1f')),_0x2f7661[_0x294c('0x44')](_0x294c('0x1f'),()=>{const _0x31757a=_0x1edd77[_0x294c('0x42')](_0x2d7def[_0x294c('0x2a')][_0x294c('0x1b')]['selection']);_0x2d7def['model'][_0x294c('0x4c')](()=>{_0x2f7661[_0x294c('0x38')](_0x31757a,{'commandName':'mergeTableCells','commandParams':[]},[],_0x294c('0x1f'));});}),_0x2d7def['commands']['get'](_0x294c('0x1f'))['on'](_0x294c('0x2f'),(_0x3e83d2,_0x100ed4)=>{_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x294c('0x28'))['value']&&(_0x100ed4[_0x294c('0x1d')]>0x0&&_0x100ed4[_0x100ed4['length']-0x1]&&_0x100ed4[_0x100ed4[_0x294c('0x1d')]-0x1][_0x294c('0x3a')]||_0x2f7661[_0x294c('0xf')]||this['_areSelectedCellsMergable']()||_0x3e83d2[_0x294c('0x5')]());},{'priority':'highest'});for(const _0x145b69 of['mergeTableCellUp','mergeTableCellRight',_0x294c('0x37'),_0x294c('0x9')]){const _0x5aeb43=_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x145b69);_0x2f7661[_0x294c('0x44')](_0x145b69,()=>{const _0x36910b=_0x2d7def[_0x294c('0x2a')][_0x294c('0x1b')]['selection'][_0x294c('0x17')]()['getAncestors']()[_0x294c('0x15')](_0x270cd1=>_0x270cd1['is'](_0x294c('0x20'),'tableCell')),_0x1087a1=_0x5aeb43[_0x294c('0x43')];_0x2d7def[_0x294c('0x2a')][_0x294c('0x4c')](()=>{_0x2f7661[_0x294c('0x38')]([_0x36910b,_0x1087a1],{'commandName':_0x294c('0x1f'),'commandParams':[]},[],_0x294c('0x1f'));});});}for(const _0x2fe3b5 of[_0x294c('0x23'),_0x294c('0x10')]){const _0x1a7632=_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x2fe3b5);_0x2f7661[_0x294c('0x44')](_0x2fe3b5,()=>{const _0x2b2b03=_0x1edd77[_0x294c('0x42')](_0x2d7def[_0x294c('0x2a')][_0x294c('0x1b')][_0x294c('0x19')])[0x0],_0x561c04=_0x2b2b03[_0x294c('0x40')](_0x294c('0xb')),{column:_0x3d3d3f,row:_0x5563cd}=_0x1edd77[_0x294c('0x34')](_0x2b2b03);let _0x1bb5f9=[];if(_0x294c('0x3b')==_0x1a7632[_0x294c('0x39')]){const _0x4475c1=_0x1edd77['createTableWalker'](_0x561c04,{'startRow':_0x5563cd,'endRow':_0x5563cd,'includeAllSlots':!0x0});_0x1bb5f9=Array[_0x294c('0x2d')](_0x4475c1)[_0x294c('0x33')](_0x344ff2=>_0x344ff2[_0x294c('0x8')]);}else{const _0x73cba8=_0x1edd77['createTableWalker'](_0x561c04,{'column':_0x3d3d3f,'includeAllSlots':!0x0});_0x1bb5f9=Array[_0x294c('0x2d')](_0x73cba8)[_0x294c('0x33')](_0x1f6228=>_0x1f6228[_0x294c('0x8')]);}_0x2d7def[_0x294c('0x2a')][_0x294c('0x4c')](_0x5f19a2=>{_0x2f7661[_0x294c('0x29')](_0x5f19a2[_0x294c('0xc')](_0x2b2b03),{'commandName':_0x2fe3b5,'commandParams':[]},_0x1bb5f9,_0x2fe3b5);});});}_0x2f7661['_descriptionFactory'][_0x294c('0x27')](_0x389e92=>{if(_0x294c('0x13')!=_0x389e92[_0x294c('0x26')]&&'formatInline'!=_0x389e92[_0x294c('0x26')])return;const {data:_0x5f0b67}=_0x389e92;return _0x5f0b67&&_0x294c('0x1f')==_0x5f0b67[_0x294c('0x30')]?{'type':_0x294c('0x7'),'content':_0x448751(_0xd8bf6,'*Merge\x20cells*')}:void 0x0;}),_0x2f7661[_0x294c('0xd')][_0x294c('0x27')](_0xd5fb2f=>{if(_0x294c('0x13')!=_0xd5fb2f[_0x294c('0x26')]&&'formatInline'!=_0xd5fb2f[_0x294c('0x26')])return;const {data:_0x22b457}=_0xd5fb2f;return _0x22b457?_0x294c('0x23')==_0x22b457['commandName']?{'type':_0x294c('0x7'),'content':_0x448751(_0xd8bf6,_0x294c('0x47'))}:'splitTableCellHorizontally'==_0x22b457[_0x294c('0x30')]?{'type':_0x294c('0x7'),'content':_0x448751(_0xd8bf6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x362252=_0x517260[_0x294c('0x0')]();for(const _0x2ef732 of[_0x294c('0x21'),_0x294c('0x1a'),'mergeTableCellDown',_0x294c('0x9')])_0x2f7661[_0x294c('0x22')][_0x294c('0x2b')](_0x294c('0x13'),_0x2ef732,_0x294c('0x4b'),_0x362252);for(const _0x4e442b of[_0x294c('0x23'),_0x294c('0x10')])_0x2f7661[_0x294c('0x22')][_0x294c('0x2b')](_0x294c('0x13'),_0x4e442b,_0x294c('0x4b'),_0x362252);_0x2f7661[_0x294c('0x22')]['registerCustomCallback'](_0x294c('0x13'),_0x294c('0x1f'),'accept',_0x568431=>{_0x2d7def[_0x294c('0x2a')][_0x294c('0x4c')](_0x2cbafc=>{const _0x8b8b2=Array[_0x294c('0x2d')](_0x5e2edc[_0x294c('0x2e')]())[_0x294c('0x33')](_0x30ae0d=>_0x1ffb43[_0x294c('0x41')](_0x30ae0d));_0x2cbafc[_0x294c('0x3e')](_0x568431),_0x2d7def['commands'][_0x294c('0x12')]('mergeTableCells')[_0x294c('0x1e')](),_0x2d7def[_0x294c('0x2f')](_0x294c('0x1f'),{'forceDefaultExecution':!0x0});const _0x289a59=_0x8b8b2[_0x294c('0x18')](_0x2d035b=>'$graveyard'!=_0x2d035b[_0x294c('0x31')][_0x294c('0x2')]);_0x289a59[_0x294c('0x1d')]>0x0&&_0x2cbafc['setSelection'](_0x289a59);for(const _0x22d244 of _0x8b8b2)_0x22d244[_0x294c('0x3')]();});});for(const _0x5d6b48 of[_0x294c('0x21'),_0x294c('0x37'),'mergeTableCellLeft',_0x294c('0x1a')]){const _0x397590=_0x2d7def[_0x294c('0x11')][_0x294c('0x12')](_0x5d6b48);_0x397590['on'](_0x294c('0x24'),(_0x662d3b,_0x3a5235,_0x7d4cd8)=>{if(_0x7d4cd8){const _0xded0e6=_0x2d7def['model']['document'][_0x294c('0x19')][_0x294c('0x17')]()[_0x294c('0x1')]()[_0x294c('0x15')](_0x25e64b=>_0x25e64b['is']('element',_0x294c('0x46')));this[_0x294c('0x3c')](_0x397590[_0x294c('0x43')],_0xded0e6)||(_0x662d3b[_0x294c('0x1c')]=!0x1,_0x662d3b[_0x294c('0x5')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xc139c8=this[_0x294c('0x48')]['commands'][_0x294c('0x12')](_0x294c('0x1f')),_0x24c383=this[_0x294c('0x48')][_0x294c('0x6')][_0x294c('0x12')](_0x294c('0x2c'));if(!_0xc139c8['isEnabled'])return!0x1;const _0x4c1886=_0x24c383[_0x294c('0x42')](this[_0x294c('0x48')][_0x294c('0x2a')][_0x294c('0x1b')][_0x294c('0x19')]);for(const _0x416e2f of _0x4c1886)for(const _0x27a0ad of _0x4c1886)if(_0x416e2f!=_0x27a0ad&&!this[_0x294c('0x3c')](_0x416e2f,_0x27a0ad))return!0x1;return!0x0;}[_0x294c('0x3c')](_0x2eff1a,_0xceb98d){const _0x4926e2=this[_0x294c('0x48')][_0x294c('0x6')][_0x294c('0x12')](_0x294c('0xe')),_0x51063f=this[_0x294c('0x48')][_0x294c('0x2a')][_0x294c('0xc')](_0x2eff1a),_0x4b33bd=this[_0x294c('0x48')]['model'][_0x294c('0xc')](_0xceb98d),_0x4a95f5=new Set(),_0x33efb8=new Set();for(const _0x2aaa20 of _0x4926e2[_0x294c('0x3f')]())if(('insertion'==_0x2aaa20['type']||_0x294c('0x36')==_0x2aaa20[_0x294c('0x26')]||_0x294c('0x1f')==_0x2aaa20['subType'])&&_0x2aaa20[_0x294c('0x4')])for(const _0x24321b of _0x2aaa20['getRanges']())_0x24321b[_0x294c('0x3d')](_0x51063f,!0x0)&&_0x4a95f5[_0x294c('0x35')](_0x2aaa20[_0x294c('0x26')]+':'+_0x2aaa20[_0x294c('0x25')]['id']),_0x24321b[_0x294c('0x3d')](_0x4b33bd,!0x0)&&_0x33efb8['add'](_0x2aaa20[_0x294c('0x26')]+':'+_0x2aaa20['author']['id']);if(_0x4a95f5[_0x294c('0xa')]!=_0x33efb8['size'])return!0x1;for(const _0x25b9bc of _0x4a95f5)if(!_0x33efb8[_0x294c('0x14')](_0x25b9bc))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ee2=['insertTableOfContents','enableCommand','get','TrackChangesEditing','afterInit','ELEMENT_TABLE_OF_CONTENTS','locale','editor','_descriptionFactory'];(function(_0x521373,_0x1ee20a){const _0x4dbd26=function(_0x446623){while(--_0x446623){_0x521373['push'](_0x521373['shift']());}};_0x4dbd26(++_0x1ee20a);}(_0x1ee2,0x1bd));const _0x4dbd=function(_0x521373,_0x1ee20a){_0x521373=_0x521373-0x0;let _0x4dbd26=_0x1ee2[_0x521373];return _0x4dbd26;};import{Plugin as _0xbfc170}from'ckeditor5/src/core';import{getTranslation as _0x4d68b0}from'../utils/common-translations';export default class Ct extends _0xbfc170{[_0x4dbd('0x0')](){const _0x390871=this[_0x4dbd('0x3')];if(!_0x390871['commands']['get'](_0x4dbd('0x5')))return;_0x390871['plugins'][_0x4dbd('0x7')]('TrackChangesEditing')[_0x4dbd('0x6')](_0x4dbd('0x5'));const _0x1cdb00=_0x390871['plugins'][_0x4dbd('0x7')](_0x4dbd('0x8')),_0x63e8a3=_0x390871[_0x4dbd('0x2')];_0x1cdb00[_0x4dbd('0x4')]['registerElementLabel']('tableOfContents',_0x30e46d=>_0x4d68b0(_0x63e8a3,_0x4dbd('0x1'),_0x30e46d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x347b=['afterInit','getAttribute','document','join','nodeAfter','handleSuggestionDescription','tableCellProperties','handleDiscardAction','_handlePropertyChange','data','getSuggestionCallback','getSelectionAffectedTableCells','getContainedElement','_descriptionFactory','TrackChangesEditing','has','_suggestionFactory','registerDescriptionCallback','TableCellPropertiesEditing','registerCustomCallback','*Format:*\x20change\x20table\x20properties','table','tableCellHeight','_getSuggestion','tableBorderStyle','accept','findAncestor','tableAlignment','TableUtils','locale','editor','subType','plugins','TrackChangesTableProperties','commandParams','start','tableProperties','tableCellBorderStyle','tableBorderColor','selection','tableCellPadding','tableCellBorderWidth','getFirstPosition','tableCellBackgroundColor','format','discard','pluginName','tableBorderWidth','removeAttribute','batch','model','get','enableCommand','formatBlock'];(function(_0x3694e4,_0x347b29){const _0x5836fd=function(_0xeb62eb){while(--_0xeb62eb){_0x3694e4['push'](_0x3694e4['shift']());}};_0x5836fd(++_0x347b29);}(_0x347b,0x149));const _0x5836=function(_0x3694e4,_0x347b29){_0x3694e4=_0x3694e4-0x0;let _0x5836fd=_0x347b[_0x3694e4];return _0x5836fd;};import{Plugin as _0x32d83e}from'ckeditor5/src/core';import{getTranslation as _0x263be7}from'../utils/common-translations';export default class Mt extends _0x32d83e{constructor(_0x8721d1){super(_0x8721d1),this[_0x5836('0x1f')]=[_0x5836('0x21'),_0x5836('0x13'),_0x5836('0x2a'),_0x5836('0x16'),'tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor',_0x5836('0x20'),_0x5836('0x24'),_0x5836('0x23'),'tableCellWidth',_0x5836('0x11'),_0x5836('0x26'),'tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get[_0x5836('0x29')](){return _0x5836('0x1c');}[_0x5836('0x31')](){const _0x55e926=this[_0x5836('0x19')][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x9'));if(this['editor']['plugins'][_0x5836('0xa')]('TablePropertiesEditing')){for(const _0x7cb007 of this[_0x5836('0x1f')])_0x55e926['enableCommand'](_0x7cb007,(_0x30cd3f,_0x42e492)=>{const _0x3fea73=this[_0x5836('0x19')]['model'][_0x5836('0x33')][_0x5836('0x22')][_0x5836('0x25')]()[_0x5836('0x15')](_0x5836('0x10'));this[_0x5836('0x3')](_0x7cb007,[_0x3fea73],this[_0x5836('0x1f')],_0x5836('0x1f'),_0x30cd3f,_0x42e492);});_0x55e926[_0x5836('0xb')][_0x5836('0xe')](_0x5836('0x30'),_0x5836('0x1f'),'accept',_0x55e926[_0x5836('0xb')][_0x5836('0x5')](_0x5836('0x30'),null,_0x5836('0x28'))),_0x55e926[_0x5836('0xb')][_0x5836('0xe')]('formatBlock',_0x5836('0x1f'),_0x5836('0x28'),(_0x1f8975,_0x36a0de)=>this['handleDiscardAction'](this['tableProperties'],_0x1f8975,_0x36a0de)),_0x55e926[_0x5836('0xb')][_0x5836('0xe')](_0x5836('0x30'),_0x5836('0x1f'),_0x5836('0x34'),()=>!0x1);}if(this['editor'][_0x5836('0x1b')]['has'](_0x5836('0xd'))){for(const _0x34f679 of this[_0x5836('0x1')])_0x55e926[_0x5836('0x2f')](_0x34f679,(_0x1bfee9,_0x2bf0eb)=>{const _0x3a6b6c=this[_0x5836('0x19')][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x17'))[_0x5836('0x6')](this[_0x5836('0x19')][_0x5836('0x2d')][_0x5836('0x33')]['selection']);this[_0x5836('0x3')](_0x34f679,_0x3a6b6c,this['tableCellProperties'],_0x5836('0x1'),_0x1bfee9,_0x2bf0eb);});_0x55e926['_suggestionFactory'][_0x5836('0xe')]('formatBlock',_0x5836('0x1'),_0x5836('0x14'),_0x55e926[_0x5836('0xb')]['getSuggestionCallback']('formatBlock',null,'discard')),_0x55e926['_suggestionFactory'][_0x5836('0xe')]('formatBlock',_0x5836('0x1'),_0x5836('0x28'),(_0x1449a7,_0x5c3f33)=>this[_0x5836('0x2')](this['tableCellProperties'],_0x1449a7,_0x5c3f33)),_0x55e926[_0x5836('0xb')]['registerCustomCallback'](_0x5836('0x30'),'tableCellProperties',_0x5836('0x34'),()=>!0x1);}_0x55e926[_0x5836('0x8')][_0x5836('0xc')](_0x31eba6=>this[_0x5836('0x0')](_0x31eba6));}[_0x5836('0x3')](_0x422d72,_0x140ddf,_0x3de706,_0x3f684d,_0x42a780,_0x4d5cc8){const _0x1806da=this['editor'][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x9'));this[_0x5836('0x19')][_0x5836('0x2d')]['enqueueChange'](_0x4d5cc8[_0x5836('0x2c')],()=>{for(const _0x5f0492 of _0x140ddf){if(this[_0x5836('0x12')](_0x5f0492,_0x3f684d))_0x42a780(_0x4d5cc8);else{const _0x460255={};for(const _0x2600a5 of _0x3de706){const _0x1a23c7=_0x5f0492[_0x5836('0x32')](_0x2600a5);void 0x0!==_0x1a23c7&&(_0x460255[_0x2600a5]=_0x1a23c7);}_0x42a780(_0x4d5cc8),_0x1806da['markBlockFormat'](_0x5f0492,{'commandParams':[_0x460255]},[],_0x3f684d);}}});}[_0x5836('0x2')](_0x13c121,_0x4ac0aa,_0x169d85){const _0xffc340=_0x4ac0aa[0x0][_0x5836('0x1e')][_0x5836('0x35')],_0x5dd144=_0x169d85[_0x5836('0x1d')][0x0];this['editor'][_0x5836('0x2d')]['change'](_0x22f9c6=>{for(const _0x5a0590 of _0x13c121)void 0x0!==_0x5dd144[_0x5a0590]?_0x22f9c6['setAttribute'](_0x5a0590,_0x5dd144[_0x5a0590],_0xffc340):_0x22f9c6[_0x5836('0x2b')](_0x5a0590,_0xffc340);});}['handleSuggestionDescription'](_0x38bc11){if(_0x38bc11[_0x5836('0x4')])switch(_0x38bc11[_0x5836('0x1a')]){case _0x5836('0x1f'):return{'type':_0x5836('0x27'),'content':_0x263be7(this[_0x5836('0x19')]['locale'],_0x5836('0xf'))};case _0x5836('0x1'):return{'type':_0x5836('0x27'),'content':_0x263be7(this[_0x5836('0x19')][_0x5836('0x18')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x5836('0x12')](_0x471b83,_0x448d4d){const _0x484591=this[_0x5836('0x19')][_0x5836('0x1b')][_0x5836('0x2e')](_0x5836('0x9'));for(const _0x14654b of _0x484591['getSuggestions']({'skipNotAttached':!0x0})){const _0x2be58c=_0x14654b[_0x5836('0x7')]();if(_0x14654b[_0x5836('0x1a')]===_0x448d4d&&_0x2be58c===_0x471b83)return _0x14654b;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcbd4=['TrackChangesEditing','plugins','afterInit','insertTemplate','Template','enableCommand','get'];(function(_0x18306e,_0xcbd4f4){const _0x49b433=function(_0x49fd52){while(--_0x49fd52){_0x18306e['push'](_0x18306e['shift']());}};_0x49b433(++_0xcbd4f4);}(_0xcbd4,0xc9));const _0x49b4=function(_0x18306e,_0xcbd4f4){_0x18306e=_0x18306e-0x0;let _0x49b433=_0xcbd4[_0x18306e];return _0x49b433;};import{Plugin as _0x42eedf}from'ckeditor5/src/core';export default class vt extends _0x42eedf{[_0x49b4('0x4')](){const _0x386419=this['editor'];_0x386419['plugins']['has'](_0x49b4('0x6'))&&_0x386419[_0x49b4('0x3')][_0x49b4('0x1')](_0x49b4('0x2'))[_0x49b4('0x0')](_0x49b4('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3535=['newRange','locale','has','Title','from','start','editor','createRange','isEqual','schema','registerPostFixer','document','suggestion','model','updateMarker','title-content','end','differ','getNearestSelectionRange','removeMarker','registerElementLabel','afterInit','_splitMarkerName','isTouching','plugins','ELEMENT_TITLE'];(function(_0xaf6f38,_0x35351e){const _0x2b2e1a=function(_0x165250){while(--_0x165250){_0xaf6f38['push'](_0xaf6f38['shift']());}};_0x2b2e1a(++_0x35351e);}(_0x3535,0x92));const _0x2b2e=function(_0xaf6f38,_0x35351e){_0xaf6f38=_0xaf6f38-0x0;let _0x2b2e1a=_0x3535[_0xaf6f38];return _0x2b2e1a;};import{Plugin as _0xfc5858}from'ckeditor5/src/core';import{getTranslation as _0x4b6839}from'../utils/common-translations';export default class _t extends _0xfc5858{[_0x2b2e('0x5')](){const _0x258312=this[_0x2b2e('0x10')];if(!_0x258312[_0x2b2e('0x8')][_0x2b2e('0xc')](_0x2b2e('0xd')))return;const _0x16e161=_0x258312[_0x2b2e('0x8')]['get']('TrackChangesEditing');_0x16e161['_descriptionFactory'][_0x2b2e('0x4')](_0x2b2e('0x19'),()=>_0x4b6839(_0x258312[_0x2b2e('0xb')],_0x2b2e('0x9'))),_0x258312[_0x2b2e('0x17')][_0x2b2e('0x15')][_0x2b2e('0x14')](_0x4ccd1f=>{let _0x485239=!0x1;const _0x34529e=Array[_0x2b2e('0xe')](_0x258312[_0x2b2e('0x17')][_0x2b2e('0x15')][_0x2b2e('0x1')]['getChangedMarkers']());for(const {name:_0x1bc738,data:_0x3df91a}of _0x34529e){const {group:_0x33a55f}=_0x16e161[_0x2b2e('0x6')](_0x1bc738);if(_0x2b2e('0x16')!==_0x33a55f||!_0x3df91a[_0x2b2e('0xa')])continue;const _0x5dfe0e=_0x3df91a[_0x2b2e('0xa')],_0x474d00=_0x5dfe0e[_0x2b2e('0x0')]['nodeBefore'];if(!_0x474d00||!_0x474d00['is']('element','title-content'))continue;if(!_0x5dfe0e[_0x2b2e('0xf')][_0x2b2e('0x7')](_0x5dfe0e[_0x2b2e('0x0')]))continue;const _0x1cff2c=_0x258312[_0x2b2e('0x17')][_0x2b2e('0x13')][_0x2b2e('0x2')](_0x5dfe0e['end'],'forward');if(_0x1cff2c&&_0x1cff2c['isCollapsed']){const _0x1e1243=_0x4ccd1f[_0x2b2e('0x11')](_0x5dfe0e[_0x2b2e('0xf')],_0x1cff2c[_0x2b2e('0xf')]);_0x1e1243[_0x2b2e('0x12')](_0x5dfe0e)||(_0x4ccd1f[_0x2b2e('0x18')](_0x1bc738,{'range':_0x1e1243}),_0x485239=!0x0);}_0x485239||(_0x4ccd1f[_0x2b2e('0x3')](_0x1bc738),_0x485239=!0x0);}return _0x485239;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1753=['undo','afterInit','plugins','editor','UndoEditing','redo','TrackChangesEditing','enableCommand'];(function(_0x5e0523,_0x17532e){const _0x358a9d=function(_0x11e05d){while(--_0x11e05d){_0x5e0523['push'](_0x5e0523['shift']());}};_0x358a9d(++_0x17532e);}(_0x1753,0x1ef));const _0x358a=function(_0x5e0523,_0x17532e){_0x5e0523=_0x5e0523-0x0;let _0x358a9d=_0x1753[_0x5e0523];return _0x358a9d;};import{Plugin as _0x32914e}from'ckeditor5/src/core';export default class Dt extends _0x32914e{[_0x358a('0x2')](){const _0x15f040=this[_0x358a('0x4')],_0x411f33=_0x15f040[_0x358a('0x3')]['get'](_0x358a('0x7'));_0x15f040[_0x358a('0x3')]['has'](_0x358a('0x5'))&&(_0x411f33[_0x358a('0x0')](_0x358a('0x1')),_0x411f33[_0x358a('0x0')](_0x358a('0x6')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40fd=['getCustomProperty','createUIElement','activeMarkers','hasAttribute','element','name','getWalker','consumable','parent','previousPosition','markerRange','push','listItem','mapper','toViewPosition','getAttribute','type','getItems','plugins','isAtEnd','schema','ck-suggestion-marker--active','isBlock','get','writer','isLimit','markerName','span','bindElementToMarker','nextSibling','addClass','isContent'];(function(_0x29f6d6,_0x40fde1){const _0xebcd22=function(_0x662b08){while(--_0x662b08){_0x29f6d6['push'](_0x29f6d6['shift']());}};_0xebcd22(++_0x40fde1);}(_0x40fd,0x114));const _0xebcd=function(_0x29f6d6,_0x40fde1){_0x29f6d6=_0x29f6d6-0x0;let _0xebcd22=_0x40fd[_0x29f6d6];return _0xebcd22;};export function getRangesWithAttribute(_0x4690e9,_0x36ece8,_0x3afd99){const _0x3627e4=[];for(const _0x4f5d53 of _0x36ece8[_0xebcd('0x1d')]())_0x4f5d53[_0xebcd('0xf')](_0x4690e9)&&_0x3627e4[_0xebcd('0x17')](_0x3afd99['createRangeOn'](_0x4f5d53));return _0x3627e4;}export function getElementsAffectedByListItemRename(_0x2c96d5){const _0x3c0b4b=[];if(_0x2c96d5['is']('element','listItem')){let _0x2a71f3=_0x2c96d5[_0xebcd('0x9')];for(;_0x2a71f3&&_0x2a71f3['is'](_0xebcd('0x10'),_0xebcd('0x18'))&&_0x2a71f3[_0xebcd('0x1b')]('listIndent')>0x0;)_0x3c0b4b['push'](_0x2a71f3),_0x2a71f3=_0x2a71f3[_0xebcd('0x9')];}return _0x3c0b4b;}export function downcastSplitMergeMarker(_0x1f331d,_0x56ddf6,{showActiveMarker:_0x42c93c=!0x0}={}){const _0x349470=_0x1f331d[_0xebcd('0x1e')][_0xebcd('0x3')]('TrackChangesEditing');return(_0xfdf28b,_0x25d8b7,_0x9eaf67)=>{if(!_0x9eaf67[_0xebcd('0x13')]['test'](_0x25d8b7[_0xebcd('0x16')],_0xfdf28b[_0xebcd('0x11')]))return;const _0xe9304b=_0x25d8b7['markerRange'][_0xebcd('0x12')](),_0x4a9a14=_0x25d8b7[_0xebcd('0x16')]['start'],_0x418651=_0x1f331d['model'][_0xebcd('0x0')];let _0x518755=null,_0x50c635=null,_0x45fc2c=!0x1,_0x465e59=!0x1;for(const _0x4470dd of _0xe9304b){const _0x5688d1=_0x4470dd['item'];_0x45fc2c=_0x45fc2c||_0x418651[_0xebcd('0xb')](_0x5688d1);const _0x5ec63d=_0x9eaf67['mapper']['toViewElement'](_0x5688d1);if(_0x5ec63d&&_0x5ec63d[_0xebcd('0xc')]('addHighlight'))return;'elementEnd'==_0x4470dd[_0xebcd('0x1c')]&&(_0x418651[_0xebcd('0x2')](_0x5688d1)&&!_0x418651[_0xebcd('0x5')](_0x5688d1)&&(_0x5688d1['nextSibling']||_0x4a9a14[_0xebcd('0x1f')]?_0x518755&&_0x518755[_0xebcd('0x14')]==_0x5688d1||(_0x518755=_0x5688d1,_0x23b519(_0x4470dd[_0xebcd('0x15')]),_0x465e59=!0x0):_0x50c635=_0x50c635||_0x4470dd[_0xebcd('0x15')]));}function _0x23b519(_0x59ed6d){const _0x273bf9=_0x9eaf67[_0xebcd('0x4')][_0xebcd('0xd')](_0xebcd('0x7'),{'class':'ck-suggestion-marker-'+_0x56ddf6}),_0x138e8=_0x9eaf67['mapper'][_0xebcd('0x1a')](_0x59ed6d);_0x42c93c&&_0x349470[_0xebcd('0xe')]['includes'](_0x25d8b7[_0xebcd('0x6')])&&_0x9eaf67[_0xebcd('0x4')][_0xebcd('0xa')](_0xebcd('0x1'),_0x273bf9),_0x9eaf67[_0xebcd('0x4')]['insert'](_0x138e8,_0x273bf9),_0x9eaf67[_0xebcd('0x19')][_0xebcd('0x8')](_0x273bf9,_0x25d8b7[_0xebcd('0x6')]);}_0x45fc2c||_0x465e59||!_0x50c635||_0x23b519(_0x50c635);};}
|