@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231013.0 → 0.0.0-nightly-20231015.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.d.ts +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 _0xb46e=['suggestionLoaded','dataDowncast','tableCell','reduce','content','editing','getAllAdjacentSuggestions','model','high','conversion','next','subType','tableCellBorderWidth','_getCoordsForCells','getColumnIndexes','options','tablePasteRow','endColumn','ck-suggestion-marker--active','start','getChanges','accept','editor','stop','last','tablePaste','createRangeIn','*Replace\x20table\x20cells*','every','rowInsertionRanges','Users','cells','type','name','getSuggestionCallback','isEqual','isEmpty','getRows','editingDowncast','elementToElement','requires','keys','getSuggestions','oldRange','rows','from','wrap','containsRange','TrackChangesEditing','ck-suggestion-marker-insertion','createElement','get','tablePasteCell','endRow','suggestionUnloaded','getRowIndexes','insertRows','has','commands','previousSibling','tableCellHorizontalAlignment','getTableIfOnlyTableInContent','getChildren','TableClipboard','removeRows','getContainedElement','some','rowInsertionIndexes','add','low','markerName','listenTo','tableCellBackgroundColor','selection','register','getAttributes','createPositionBefore','table','columns','change','_suggestionFactory','$graveyard','tableCellSuggestion','insert','markerToHighlight','updateMarker','createRange','discard','view','isInContent','_splitMarkerName','nodeAfter','_createdBatches','columnInsertionIndexes','getSuggestion','fromEntries','return','markers','tableCellPadding','forceDefaultExecution','insertColumns','fill','deletion','removeMarker','createRangeOn','previous','_descriptionFactory','suggestion:formatBlock:tablePasteCell','registerPostFixer','documentSelection','createTableWalker','insertionRanges','getShiftedBy','newRange','schema','startsWith','formatBlock','position','getRanges','attributes','move','getChild','ck-suggestion-marker','differ','paragraph','getItems','locale','map','tablePasteChainId','suggestion-td','clipboardOutput','author','entries','redo','filter','remove','deletionRanges','push','getMarkers','findAncestor','nextSibling','afterInit','insertion','showSuggestionHighlights','TableUtils','end','tablePasteColumn','join','document','removeMarkers','markerAttributes','tableCellVerticalAlignment','removeColumns','getColumns','row','markMultiRangeInsertion','find','setAttributes','set','registerCustomCallback','for','rootName','suggestion','plugins','insertContent','element','unwrap','length','activeMarkers','root','_tablePostFixingSubtypes','getRange','includes','markMultiRangeDeletion','hasSuggestion','getChangedMarkers','first'];(function(_0x59e450,_0xb46e21){const _0x25503f=function(_0x177fe1){while(--_0x177fe1){_0x59e450['push'](_0x59e450['shift']());}};_0x25503f(++_0xb46e21);}(_0xb46e,0x1dd));const _0x2550=function(_0x59e450,_0xb46e21){_0x59e450=_0x59e450-0x0;let _0x25503f=_0xb46e[_0x59e450];return _0x25503f;};import{getTranslation as _0x3d3207}from'../utils/common-translations';import{Plugin as _0x216e94}from'ckeditor5/src/core';import{uid as _0x29b8fb,priorities as _0x3c6e04}from'ckeditor5/src/utils';import _0x548c0e from'./table';const le=[_0x2550('0x42'),'tableCellBorderColor','tableCellBorderStyle',_0x2550('0x72'),_0x2550('0x1c'),_0x2550('0x7e'),_0x2550('0x98')],ae=Object[_0x2550('0x95')](le[_0x2550('0x4')](_0x31c0c4=>[_0x31c0c4,null]));export default class wt extends _0x216e94{static get[_0x2550('0x5e')](){return[_0x548c0e];}[_0x2550('0x12')](){const _0x1e6eba=this[_0x2550('0x4c')];if(!_0x1e6eba[_0x2550('0x28')][_0x2550('0x6f')]('TableClipboard'))return;const _0x27a4e0=_0x1e6eba['plugins'][_0x2550('0x69')](_0x2550('0x66')),_0x3c77dd=_0x1e6eba[_0x2550('0x28')]['get'](_0x2550('0x15')),_0x166730=_0x1e6eba[_0x2550('0x28')]['get'](_0x548c0e),_0x97b7f=_0x1e6eba['plugins']['get'](_0x2550('0x75'));_0x166730[_0x2550('0x2f')]['push']('tablePasteRow',_0x2550('0x17')),_0x1e6eba[_0x2550('0x3d')][_0x2550('0xa8')][_0x2550('0x80')]('tableCellSuggestion',{'allowIn':_0x2550('0x38'),'allowContentOf':_0x2550('0x38'),'isLimit':!0x0}),_0x1e6eba[_0x2550('0x3f')][_0x2550('0x5d')]({'model':'tableCellSuggestion','view':_0x2550('0x6')});let _0x565eca=null;_0x1e6eba['model']['on'](_0x2550('0x29'),(_0x291d83,_0x4ab97e)=>{const [_0x5c16b0,_0x130f0f]=_0x4ab97e,_0x5bcc79=_0x4ab97e[_0x4ab97e['length']-0x1];_0x5bcc79&&_0x5bcc79[_0x2550('0x99')]||_0x27a4e0['_isForcedDefaultExecutionBlock']||this[_0x2550('0x4c')][_0x2550('0x70')]['get']('trackChanges')['value']&&function(_0x4dc8f5,_0x287f3d,_0x1153dd,_0x329f55,_0x3283df){if(_0x287f3d&&!_0x287f3d['is'](_0x2550('0xa3')))return!0x1;const _0xeebf1b=_0x3283df[_0x2550('0x73')](_0x4dc8f5,_0x1153dd);if(!_0xeebf1b||!fe(_0xeebf1b,void 0x0,_0x329f55))return!0x1;const _0x50c66b=_0x329f55['getSelectionAffectedTableCells'](_0x1153dd['document'][_0x2550('0x7f')]);if(!_0x50c66b[_0x2550('0x2c')])return!0x1;const _0x1c5863=_0x50c66b[0x0]['findAncestor'](_0x2550('0x83')),_0x4c0c0a=_0x329f55[_0x2550('0x6d')](_0x50c66b),_0x17d009=_0x329f55[_0x2550('0x44')](_0x50c66b),_0x2f4725={'startRow':_0x4c0c0a['first'],'endRow':_0x4c0c0a[_0x2550('0x4e')],'startColumn':_0x17d009[_0x2550('0x35')],'endColumn':_0x17d009[_0x2550('0x4e')]};return 0x1==_0x50c66b[_0x2550('0x2c')]&&(_0x2f4725[_0x2550('0x6b')]+=_0x329f55[_0x2550('0x5b')](_0xeebf1b)-0x1,_0x2f4725[_0x2550('0x47')]+=_0x329f55[_0x2550('0x1e')](_0xeebf1b)-0x1),fe(_0x1c5863,_0x2f4725,_0x329f55);}(_0x5c16b0,_0x130f0f,_0x1e6eba[_0x2550('0x3d')],_0x3c77dd,_0x97b7f)&&(_0x291d83[_0x2550('0x4d')](),_0x565eca={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1e6eba[_0x2550('0x3d')][_0x2550('0x85')](()=>{_0x1e6eba[_0x2550('0x3d')][_0x2550('0x29')](_0x4ab97e[0x0],_0x4ab97e[0x1],_0x4ab97e[0x2],{'forceDefaultExecution':!0x0});const _0x53dbf7=_0x29b8fb(),{rowInsertionRanges:_0x6477d4,columnInsertionRanges:_0x47a058,insertionRanges:_0x31b93a,deletionRanges:_0x5f1dc9,cells:_0x29ca33}=_0x565eca;_0x6477d4[_0x2550('0x2c')]&&_0x27a4e0[_0x2550('0x20')](_0x6477d4,_0x2550('0x46'),{'tablePasteChainId':_0x53dbf7}),_0x47a058[_0x2550('0x2c')]&&_0x27a4e0[_0x2550('0x20')](_0x47a058,_0x2550('0x17'),{'tablePasteChainId':_0x53dbf7}),_0x31b93a['length']&&_0x27a4e0['markMultiRangeInsertion'](_0x31b93a,_0x2550('0x4f'),{'tablePasteChainId':_0x53dbf7,'skipNestingCheck':!0x0}),_0x5f1dc9[_0x2550('0x2c')]&&_0x27a4e0[_0x2550('0x32')](_0x5f1dc9,_0x2550('0x4f'),{'tablePasteChainId':_0x53dbf7,'skipNestingCheck':!0x0});const _0x30cf18=_0x27a4e0['markMultiRangeBlockFormat'](_0x29ca33[_0x2550('0x4')](({element:_0x21dce1})=>_0x21dce1),{'formatGroupId':_0x29b8fb()},[],_0x2550('0x6a'),{'tablePasteChainId':_0x53dbf7});if(_0x30cf18){const _0x3d7ace=_0x30cf18['getMarkers'](),_0x206bdb=[];for(const {element:_0x40f24b,attributes:_0x20658e}of _0x29ca33){if(!_0x20658e)continue;const _0x2acfb2=_0x1e6eba[_0x2550('0x3d')][_0x2550('0x9e')](_0x40f24b),_0x2211f0=_0x3d7ace[_0x2550('0x21')](_0x246ab3=>_0x246ab3[_0x2550('0x30')]()[_0x2550('0x59')](_0x2acfb2));_0x2211f0&&_0x206bdb[_0x2550('0xe')]([_0x2211f0[_0x2550('0x57')],_0x20658e]);}_0x206bdb[_0x2550('0x2c')]&&_0x30cf18['setAttribute']('markerAttributes',Object[_0x2550('0x95')](_0x206bdb));}_0x565eca=null;}));},{'priority':_0x3c6e04['high']+0xa}),_0x1e6eba[_0x2550('0x28')][_0x2550('0x69')](_0x2550('0x75'))['on']('_replaceTableSlotCell',(_0x5c1ef9,_0x596d61)=>{const [_0x4e337d,_0x2ca1b4,,_0x14ed06]=_0x596d61;if(!_0x565eca)return;_0x5c1ef9['stop']();const _0x4c634a=_0x4e337d['cell'],_0x3f4c9b=_0x2ca1b4,_0x294b27=ce(_0x4c634a),_0x47787c=ce(_0x3f4c9b);_0x5c1ef9[_0x2550('0x96')]=_0x4c634a;let _0x4a7d1=null,_0x19b48a=null;if(_0x47787c||_0x294b27){if(_0x294b27&&!_0x47787c){_0x14ed06[_0x2550('0xc')](_0x4c634a[_0x2550('0xaf')](0x0));for(const _0x3f6d5f of Array['from'](_0x3f4c9b[_0x2550('0x74')]()))_0x14ed06[_0x2550('0x89')](_0x3f6d5f,_0x4c634a,_0x2550('0x16'));const _0x21ed7f=_0x565eca[_0x2550('0x79')][_0x2550('0x31')](_0x4e337d[_0x2550('0x1f')]),_0x960a45=_0x565eca[_0x2550('0x93')]['includes'](_0x4e337d['column']);_0x21ed7f||_0x960a45||(_0x4a7d1=_0x14ed06[_0x2550('0x50')](_0x4c634a));}else _0x47787c&&!_0x294b27&&(_0x19b48a=_0x14ed06['createRangeIn'](_0x4c634a));}else{const _0x475af9=_0x14ed06[_0x2550('0x68')]('tableCellSuggestion'),_0x267c22=_0x14ed06[_0x2550('0x68')](_0x2550('0x88'));_0x14ed06[_0x2550('0x64')](_0x14ed06['createRangeIn'](_0x4c634a),_0x267c22),_0x14ed06[_0x2550('0x89')](_0x475af9,_0x4c634a,0x0);for(const _0x7cf5e2 of Array['from'](_0x3f4c9b[_0x2550('0x74')]()))_0x14ed06[_0x2550('0x89')](_0x7cf5e2,_0x475af9,'end');_0x4a7d1=_0x14ed06['createRangeOn'](_0x475af9),_0x19b48a=_0x14ed06[_0x2550('0x9e')](_0x267c22);}const _0x4c1e26=Array[_0x2550('0x63')](_0x3f4c9b[_0x2550('0x81')]())['filter'](([_0x49b1c8])=>le[_0x2550('0x31')](_0x49b1c8));_0x565eca[_0x2550('0x55')]['push']({'element':_0x4c634a,'attributes':_0x4c1e26[_0x2550('0x2c')]?Object[_0x2550('0x95')](_0x4c1e26):null}),_0x4a7d1&&_0x565eca[_0x2550('0xa5')][_0x2550('0xe')](_0x4a7d1),_0x19b48a&&_0x565eca[_0x2550('0xd')]['push'](_0x19b48a);},{'priority':_0x2550('0x3e')}),_0x3c77dd['on'](_0x2550('0x9a'),(_0x45058f,_0x551cc6)=>{const [_0x3e9552,_0x32aa22={}]=_0x551cc6;if(!_0x565eca)return;const _0x14176d=_0x32aa22['at']||0x0,_0x5e376b=_0x32aa22[_0x2550('0x84')]||0x1;_0x565eca['columnInsertionIndexes']=new Array(_0x5e376b)['fill'](_0x14176d)[_0x2550('0x4')]((_0x581558,_0xb50f07)=>_0x581558+_0xb50f07);for(const {cell:_0x156971}of _0x3c77dd[_0x2550('0xa4')](_0x3e9552,{'startColumn':_0x14176d,'endColumn':_0x14176d+_0x5e376b-0x1}))_0x565eca['columnInsertionRanges']['push'](_0x1e6eba['model'][_0x2550('0x9e')](_0x156971));},{'priority':_0x2550('0x7b')}),_0x3c77dd['on'](_0x2550('0x6e'),(_0x635eba,_0x185fee)=>{const [_0x1dc8ab,_0x5c0344={}]=_0x185fee;if(!_0x565eca)return;const _0x1c7dcf=_0x5c0344['at']||0x0,_0x2ac4b8=_0x5c0344[_0x2550('0x62')]||0x1;_0x565eca[_0x2550('0x79')]=new Array(_0x2ac4b8)[_0x2550('0x9b')](_0x1c7dcf)[_0x2550('0x4')]((_0x4b7d01,_0x19f8c0)=>_0x4b7d01+_0x19f8c0);for(const {cell:_0x1e26e4}of _0x3c77dd[_0x2550('0xa4')](_0x1dc8ab,{'startRow':_0x1c7dcf,'endRow':_0x1c7dcf+_0x2ac4b8-0x1}))_0x565eca[_0x2550('0x53')]['push'](_0x1e6eba[_0x2550('0x3d')][_0x2550('0x9e')](_0x1e26e4));},{'priority':_0x2550('0x7b')}),_0x27a4e0[_0x2550('0xa0')]['registerDescriptionCallback'](_0x26210e=>{if(_0x26210e[_0x2550('0x41')]&&_0x26210e[_0x2550('0x41')][_0x2550('0xa9')](_0x2550('0x4f')))return _0x26210e['previous']?{}:{'type':_0x2550('0x13'),'content':_0x3d3207(_0x1e6eba[_0x2550('0x3')],_0x2550('0x51'))};});const _0x55bca8=()=>!0x1;for(const _0x2e6843 of[_0x2550('0x4f'),_0x2550('0x17'),_0x2550('0x46'),_0x2550('0x6a')])_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')](_0x2550('0x13'),_0x2e6843,_0x2550('0x18'),_0x55bca8),_0x27a4e0[_0x2550('0x86')]['registerCustomCallback']('deletion',_0x2e6843,_0x2550('0x18'),_0x55bca8),_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')](_0x2550('0xaa'),_0x2e6843,_0x2550('0x18'),_0x55bca8);_0x27a4e0['_suggestionFactory'][_0x2550('0x24')]('formatBlock',_0x2550('0x6a'),_0x2550('0x8d'),_0x55bca8),_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')](_0x2550('0xaa'),'tablePasteCell',_0x2550('0x4b'),(_0x1c0098,_0x33b2e1,_0xa63ffb)=>{const _0xcb52b3=_0x1c0098[_0x2550('0x4')](_0x1b34a6=>_0x1b34a6[_0x2550('0x77')]())[_0x2550('0xb')](_0x4a046e=>_0x4a046e),_0x2f98d1=new Map(_0xcb52b3['map'](_0xe5e363=>[_0xe5e363,null]));if(_0x565eca)for(const {element:_0x58bd6d,attributes:_0x4f8800}of _0x565eca[_0x2550('0x55')])_0x4f8800&&_0x2f98d1[_0x2550('0x23')](_0x58bd6d,_0x4f8800);else{if(_0xa63ffb&&_0xa63ffb[_0x2550('0x1b')])for(const [_0x55deac,_0x860947]of Object[_0x2550('0x9')](_0xa63ffb[_0x2550('0x1b')])){const _0x437b55=_0x1e6eba[_0x2550('0x3d')][_0x2550('0x97')]['get'](_0x55deac),_0x37b358=_0x437b55?_0x437b55[_0x2550('0x30')]()[_0x2550('0x77')]():null;_0x37b358&&_0x2f98d1['set'](_0x37b358,_0x860947);}}_0x1e6eba['model'][_0x2550('0x85')](_0x3a645e=>{for(const [_0x4b900a,_0x40e07f]of _0x2f98d1)_0x3a645e[_0x2550('0x22')]({...ae,..._0x40e07f},_0x4b900a);});});const _0x4abec6=(_0x4f87ec,_0x2d4a42)=>{_0x27a4e0['_suggestionFactory'][_0x2550('0x24')](_0x4f87ec,_0x2550('0x4f'),_0x2d4a42,(_0xbd4275,_0x50aef2,_0x85edd1)=>{_0x1e6eba['model'][_0x2550('0x85')](_0xe11760=>{const _0x8eff68=[];for(const _0x27746d of _0xbd4275){const _0x1dc15a=_0x27746d[_0x2550('0x49')][_0x2550('0x91')];_0x1dc15a['is'](_0x2550('0x2a'),'tableCellSuggestion')&&_0x8eff68[_0x2550('0xe')](_0x1dc15a);}_0x27a4e0[_0x2550('0x86')][_0x2550('0x58')](_0x4f87ec,null,_0x2d4a42)(_0xbd4275,_0x50aef2,_0x85edd1);for(const _0x2ee752 of _0x8eff68)_0x2550('0x87')!=_0x2ee752[_0x2550('0x2e')][_0x2550('0x26')]&&_0xe11760[_0x2550('0x2b')](_0x2ee752);});});};_0x4abec6(_0x2550('0x13'),_0x2550('0x4b')),_0x4abec6(_0x2550('0x13'),_0x2550('0x8d')),_0x4abec6(_0x2550('0x9c'),'accept'),_0x4abec6('deletion','discard'),_0x27a4e0[_0x2550('0x86')][_0x2550('0x24')]('insertion','tablePasteRow','discard',_0x43acf7=>{const _0x2be8b3=_0x43acf7[_0x2550('0x4')](_0x41337f=>_0x41337f[_0x2550('0x77')]()),_0x1a0bcd=_0x2be8b3[0x0][_0x2550('0x10')]('table'),{minRow:_0x247d8e,maxRow:_0x4cb1af}=_0x166730[_0x2550('0x43')](_0x2be8b3);_0x3c77dd[_0x2550('0x76')](_0x1a0bcd,{'at':_0x247d8e,'rows':_0x4cb1af-_0x247d8e+0x1});}),_0x27a4e0[_0x2550('0x86')]['registerCustomCallback'](_0x2550('0x13'),'tablePasteColumn','discard',_0x653510=>{const _0x1c91c1=_0x653510['map'](_0x59a3e9=>_0x59a3e9['getContainedElement']()),_0x351b20=_0x1c91c1[0x0][_0x2550('0x10')](_0x2550('0x83')),{minColumn:_0x5dfa1b,maxColumn:_0x1c751f}=_0x166730[_0x2550('0x43')](_0x1c91c1);_0x3c77dd[_0x2550('0x1d')](_0x351b20,{'at':_0x5dfa1b,'columns':_0x1c751f-_0x5dfa1b+0x1});});const _0x35ef51=(_0x135077,_0x2e091b)=>{if(!_0x2e091b[_0x2550('0x41')]||!_0x2e091b['subType'][_0x2550('0xa9')](_0x2550('0x4f')))return;const _0x3a9ff6=_0x2e091b[_0x2550('0xad')][_0x2550('0x5')],_0x4941b1=_0x27a4e0[_0x2550('0x60')]()[_0x2550('0xb')](_0x1c3b6d=>_0x1c3b6d['isInContent']&&_0x1c3b6d[_0x2550('0xad')]&&_0x1c3b6d[_0x2550('0xad')]['tablePasteChainId']==_0x3a9ff6);_0x4941b1[_0x2550('0x2c')]&&_0x2e091b[_0x2550('0x3c')]()[_0x2550('0x2c')]!=_0x4941b1[_0x2550('0x2c')]&&_0x4941b1[_0x2550('0x39')]((_0x213f33,_0xadd2b1)=>(_0x213f33[_0x2550('0x40')]=_0xadd2b1,_0xadd2b1[_0x2550('0x9f')]=_0x213f33,_0xadd2b1));};function _0x1e5ca3(_0x5379a1,_0x50262d=!0x0){const {id:_0x20bb5c}=_0x27a4e0[_0x2550('0x90')](_0x5379a1[_0x2550('0x7c')]),_0x2ed97c=[_0x2550('0xb0'),_0x2550('0x67')],_0x1b43e4=_0x27a4e0[_0x2550('0x2d')][_0x2550('0x31')](_0x5379a1[_0x2550('0x7c')]);return _0x1b43e4&&_0x2ed97c[_0x2550('0xe')](_0x2550('0x48')),{'classes':_0x2ed97c,'attributes':{'data-suggestion':_0x20bb5c},'priority':_0x1b43e4&&_0x50262d?0xbc2:0xbb8};}_0x27a4e0['on'](_0x2550('0x36'),_0x35ef51,{'priority':_0x2550('0x3e')}),_0x27a4e0['on'](_0x2550('0x6c'),_0x35ef51,{'priority':'high'}),_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')][_0x2550('0xa2')](()=>{let _0x1bf8bb=!0x1;const _0x206808=Array['from'](_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')]['differ'][_0x2550('0x34')]());for(const {name:_0x2f2ea8,data:_0x4f3992}of _0x206808){const {group:_0xf8bb9c,type:_0x2724b0,id:_0x323f50}=_0x27a4e0[_0x2550('0x90')](_0x2f2ea8);if(_0x2550('0x27')!=_0xf8bb9c||_0x2550('0x9c')!=_0x2724b0||_0x4f3992[_0x2550('0x61')])continue;if(!_0x27a4e0[_0x2550('0x33')](_0x323f50))continue;const _0x2d6196=_0x27a4e0[_0x2550('0x94')](_0x323f50)[_0x2550('0xac')](),_0x4809cd=_0x1e6eba[_0x2550('0x28')][_0x2550('0x69')](_0x2550('0x54'))['me'];for(const _0x4f6e92 of _0x27a4e0['getSuggestions']()){if(!_0x4f6e92[_0x2550('0x8f')]||_0x4f6e92[_0x2550('0x8')]!=_0x4809cd)continue;if(_0x2550('0xaa')!=_0x4f6e92['type']||_0x2550('0x6a')!=_0x4f6e92[_0x2550('0x41')])continue;if(_0x4f6e92[_0x2550('0xac')]()[_0x2550('0x52')](_0x37cc35=>_0x2d6196[_0x2550('0x78')](_0x4fa8e9=>_0x4fa8e9[_0x2550('0x65')](_0x37cc35,!0x0))))for(const _0xaec62f of _0x4f6e92['getAllAdjacentSuggestions']())_0xaec62f['isInContent']&&(_0xaec62f[_0x2550('0x8d')](),_0x1bf8bb=!0x0);}}return _0x1bf8bb;}),_0x1e6eba[_0x2550('0x3d')]['document']['registerPostFixer'](_0x554424=>{const _0x39f77e=_0x1e6eba['commands'][_0x2550('0x69')](_0x2550('0xa'));if(!_0x39f77e||!_0x39f77e[_0x2550('0x92')][_0x2550('0x6f')](_0x554424['batch']))return!0x1;let _0x33ef3a=!0x1;const _0x4d9c15=_0x1e6eba['plugins'][_0x2550('0x69')](_0x2550('0x54'))['me'],_0x53b083=_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')][_0x2550('0x0')][_0x2550('0x4a')](),_0x3769bd=Array[_0x2550('0x63')](_0x1e6eba['model']['document'][_0x2550('0x0')][_0x2550('0x34')]())['filter'](({name:_0x50f035,data:_0x49fcf3})=>{const {group:_0x56e4d1,subType:_0x17155d,authorId:_0x173647}=_0x27a4e0[_0x2550('0x90')](_0x50f035);return _0x2550('0x27')==_0x56e4d1&&'tablePaste'==_0x17155d&&_0x173647==_0x4d9c15['id']&&!_0x49fcf3[_0x2550('0x61')];});for(const _0x380c1f of _0x53b083){if(_0x2550('0x89')!=_0x380c1f[_0x2550('0x56')]||_0x2550('0x88')!=_0x380c1f[_0x2550('0x57')]||0x1!=_0x380c1f['length'])continue;const _0x2ad17d=_0x554424[_0x2550('0x8c')](_0x380c1f[_0x2550('0xab')],_0x380c1f[_0x2550('0xab')][_0x2550('0xa6')](0x1));if(!_0x3769bd[_0x2550('0x21')](({data:_0x3cb492})=>_0x3cb492[_0x2550('0xa7')][_0x2550('0x59')](_0x2ad17d)))for(const {name:_0x5c853d,data:_0x444a15}of _0x3769bd)if(_0x2ad17d[_0x2550('0x65')](_0x444a15[_0x2550('0xa7')])){_0x554424[_0x2550('0x8b')](_0x5c853d,{'range':_0x2ad17d}),_0x33ef3a=!0x0;break;}}return _0x33ef3a;}),_0x1e6eba[_0x2550('0x3d')][_0x2550('0x19')][_0x2550('0xa2')](_0x173995=>{let _0x3a44a6=!0x1;const _0x208684=_0x1e6eba[_0x2550('0x28')][_0x2550('0x69')](_0x2550('0x54'))['me'],_0x3cc2a4=_0x27a4e0[_0x2550('0x60')]()[_0x2550('0xb')](_0x464082=>_0x464082['isInContent']&&_0x464082['author']==_0x208684),_0x173506=new Set(),_0x34fded=new Set();for(const _0x30eadd of _0x3cc2a4)if(_0x2550('0x4f')==_0x30eadd['subType'])for(const _0x46294e of _0x30eadd[_0x2550('0xf')]()){const _0x4ba4cf=_0x46294e['getRange']()[_0x2550('0x77')]();if(_0x4ba4cf){if(_0x4ba4cf['is'](_0x2550('0x2a'),_0x2550('0x88'))&&ce(_0x4ba4cf)){_0x30eadd[_0x2550('0x9d')](_0x46294e['name']),_0x173506['add'](_0x4ba4cf),_0x3a44a6=!0x0;const _0x2de238=_0x4ba4cf[_0x2550('0x11')],_0x5a8c50=_0x4ba4cf[_0x2550('0x71')],_0x3f9b8e=_0x2de238&&_0x2de238['is'](_0x2550('0x2a'),_0x2550('0x88')),_0x2fcfc1=_0x5a8c50&&_0x5a8c50['is'](_0x2550('0x2a'),_0x2550('0x88'));_0x3f9b8e&&!_0x173506[_0x2550('0x6f')](_0x2de238)&&_0x34fded[_0x2550('0x7a')](_0x2de238),_0x2fcfc1&&!_0x173506[_0x2550('0x6f')](_0x5a8c50)&&_0x34fded[_0x2550('0x7a')](_0x5a8c50);}else _0x4ba4cf['is'](_0x2550('0x2a'),_0x2550('0x1'))&&_0x4ba4cf[_0x2550('0x5a')]&&(_0x30eadd['removeMarker'](_0x46294e[_0x2550('0x57')]),_0x3a44a6=!0x0);}}else{if(_0x2550('0x6a')==_0x30eadd[_0x2550('0x41')]){if(!_0x30eadd['attributes']||!_0x30eadd[_0x2550('0xad')]['tablePasteChainId'])continue;const _0x2f5cfd=_0x30eadd[_0x2550('0xad')][_0x2550('0x1b')];if(_0x2f5cfd&&Object[_0x2550('0x5f')](_0x2f5cfd)[_0x2550('0x2c')])continue;const _0x382b09=_0x30eadd[_0x2550('0xad')]['tablePasteChainId'];let _0x27a187=!0x0,_0xaa81bb=!0x0;for(const _0x277b6a of _0x3cc2a4)if(_0x277b6a[_0x2550('0x41')]&&_0x277b6a[_0x2550('0x41')]['startsWith'](_0x2550('0x4f'))){if(!_0x277b6a[_0x2550('0xad')][_0x2550('0x5')]){_0xaa81bb=!0x1;break;}if(_0x277b6a['id']!=_0x30eadd['id']&&_0x277b6a[_0x2550('0xad')][_0x2550('0x5')]==_0x382b09){_0x27a187=!0x1;break;}}_0xaa81bb&&_0x27a187&&(_0x30eadd[_0x2550('0x1a')](),_0x3a44a6=!0x0);}}for(const _0x24655e of _0x173506)_0x173995['remove'](_0x24655e);for(const _0x2c2b85 of _0x34fded)_0x173995['unwrap'](_0x2c2b85);return _0x3a44a6;}),_0x1e6eba[_0x2550('0x3f')][_0x2550('0x25')](_0x2550('0x5c'))[_0x2550('0x8a')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x107dfc,_0x98fcc7)=>_0x1e5ca3(_0x107dfc),'converterPriority':'high'}),_0x1e6eba[_0x2550('0x3f')][_0x2550('0x25')](_0x2550('0x37'))[_0x2550('0x8a')]({'model':_0x2550('0xa1'),'view':(_0x3c1284,_0x704da9)=>_0x704da9[_0x2550('0x45')][_0x2550('0x14')]?_0x1e5ca3(_0x3c1284,!0x1):null,'converterPriority':_0x2550('0x3e')});const _0x1c5bf6=_0x1e6eba[_0x2550('0x3b')][_0x2550('0x8e')];this[_0x2550('0x7d')](_0x1c5bf6['document'],_0x2550('0x7'),(_0x41ecde,_0x145b16)=>{const _0x3c70ca=[];for(const _0x33d6eb of _0x1c5bf6[_0x2550('0x50')](_0x145b16[_0x2550('0x3a')])[_0x2550('0x2')]())_0x33d6eb['is'](_0x2550('0x2a'),_0x2550('0x6'))&&_0x3c70ca[_0x2550('0xe')](_0x33d6eb);_0x1c5bf6[_0x2550('0x85')](_0x483768=>{for(const _0x5c0d93 of _0x3c70ca)_0x483768[_0x2550('0xae')](_0x483768[_0x2550('0x50')](_0x5c0d93),_0x483768[_0x2550('0x82')](_0x5c0d93)),_0x483768['remove'](_0x5c0d93);});});}}function ce(_0x49b1f2){if(_0x49b1f2[_0x2550('0x5a')])return!0x0;const _0xf9390b=_0x49b1f2[_0x2550('0xaf')](0x0);return _0xf9390b['is'](_0x2550('0x2a'),'paragraph')&&_0xf9390b[_0x2550('0x5a')];}function fe(_0x164bfa,_0x210a81={},_0x4b6faa){for(const {isAnchor:_0x490533,cellHeight:_0x2d27a3,cellWidth:_0x53f4f2}of _0x4b6faa[_0x2550('0xa4')](_0x164bfa,{'includeAllSlots':!0x0,..._0x210a81}))if(!_0x490533||0x1!=_0x2d27a3||0x1!=_0x53f4f2)return!0x1;return!0x0;}
|
|
23
|
+
const _0x9511=['*Replace\x20table\x20cells*','set','getRanges','nodeAfter','insertion','forceDefaultExecution','has','length','cell','containsRange','deletion','getRowIndexes','getColumns','getChildren','batch','options','isEqual','insertRows','for','getSuggestions','end','getContainedElement','insert','findAncestor','documentSelection','position','removeRows','isEmpty','selection','nextSibling','createRangeIn','editing','some','getShiftedBy','getSuggestion','_replaceTableSlotCell','find','element','reduce','markMultiRangeBlockFormat','paragraph','getAttributes','endColumn','every','activeMarkers','listenTo','add','row','keys','dataDowncast','join','insertColumns','getChild','ck-suggestion-marker','cells','_splitMarkerName','document','change','tablePasteChainId','trackChanges','removeMarkers','tableCellVerticalAlignment','plugins','remove','return','accept','high','previous','markerName','showSuggestionHighlights','subType','markMultiRangeInsertion','content','table','markerAttributes','newRange','setAttributes','TableClipboard','fromEntries','tablePaste','columnInsertionIndexes','discard','registerDescriptionCallback','_createdBatches','createPositionBefore','isInContent','suggestion:formatBlock:tablePasteCell','getChangedMarkers','rowInsertionIndexes','tableCellSuggestion','formatBlock','suggestion-td','_suggestionFactory','getRange','tableCellBorderColor','registerPostFixer','view','updateMarker','markerToHighlight','push','name','hasSuggestion','createTableWalker','last','unwrap','conversion','insertContent','createRangeOn','getSelectionAffectedTableCells','locale','getItems','_isForcedDefaultExecutionBlock','attributes','column','model','insertionRanges','_tablePostFixingSubtypes','start','first','suggestion','register','map','differ','tablePasteCell','_getCoordsForCells','tablePasteRow','rows','tableCellBorderWidth','author','fill','removeMarker','columnInsertionRanges','commands','tableCell','createElement','entries','getMarkers','from','editingDowncast','removeColumns','tablePasteColumn','schema','low','move','previousSibling','tableCellBorderStyle','Users','filter','get','requires','setAttribute','ck-suggestion-marker-insertion','includes','registerCustomCallback','startsWith','ck-suggestion-marker--active','getRows','createRange','TrackChangesEditing'];(function(_0x4c3e95,_0x9511b4){const _0x5d2820=function(_0x33f5db){while(--_0x33f5db){_0x4c3e95['push'](_0x4c3e95['shift']());}};_0x5d2820(++_0x9511b4);}(_0x9511,0x1a4));const _0x5d28=function(_0x4c3e95,_0x9511b4){_0x4c3e95=_0x4c3e95-0x0;let _0x5d2820=_0x9511[_0x4c3e95];return _0x5d2820;};import{getTranslation as _0xe96f5a}from'../utils/common-translations';import{Plugin as _0x391802}from'ckeditor5/src/core';import{uid as _0x18679f,priorities as _0x1d4a25}from'ckeditor5/src/utils';import _0x51b5d9 from'./table';const le=[_0x5d28('0x19'),_0x5d28('0x97'),_0x5d28('0x2b'),'tableCellHorizontalAlignment',_0x5d28('0x76'),'tableCellBackgroundColor','tableCellPadding'],ae=Object['fromEntries'](le[_0x5d28('0x13')](_0x266ac1=>[_0x266ac1,null]));export default class wt extends _0x391802{static get[_0x5d28('0x2f')](){return[_0x51b5d9];}['afterInit'](){const _0x11c7b2=this['editor'];if(!_0x11c7b2['plugins'][_0x5d28('0x3f')](_0x5d28('0x86')))return;const _0x21f132=_0x11c7b2[_0x5d28('0x77')][_0x5d28('0x2e')](_0x5d28('0x38')),_0x103b2b=_0x11c7b2['plugins'][_0x5d28('0x2e')]('TableUtils'),_0x461620=_0x11c7b2['plugins'][_0x5d28('0x2e')](_0x51b5d9),_0x5b0dff=_0x11c7b2[_0x5d28('0x77')][_0x5d28('0x2e')](_0x5d28('0x86'));_0x461620[_0x5d28('0xe')][_0x5d28('0x9c')]('tablePasteRow','tablePasteColumn'),_0x11c7b2['model'][_0x5d28('0x27')][_0x5d28('0x12')](_0x5d28('0x92'),{'allowIn':_0x5d28('0x1f'),'allowContentOf':_0x5d28('0x1f'),'isLimit':!0x0}),_0x11c7b2[_0x5d28('0x3')]['elementToElement']({'model':'tableCellSuggestion','view':_0x5d28('0x94')});let _0x1eeafd=null;_0x11c7b2[_0x5d28('0xc')]['on'](_0x5d28('0x4'),(_0x198f6c,_0x598fa7)=>{const [_0x398d24,_0x1aff5f]=_0x598fa7,_0x181ec5=_0x598fa7[_0x598fa7[_0x5d28('0x40')]-0x1];_0x181ec5&&_0x181ec5[_0x5d28('0x3e')]||_0x21f132[_0x5d28('0x9')]||this['editor'][_0x5d28('0x1e')][_0x5d28('0x2e')](_0x5d28('0x74'))['value']&&function(_0x3311e3,_0xec1823,_0x2db8e6,_0x19241b,_0x397582){if(_0xec1823&&!_0xec1823['is'](_0x5d28('0x51')))return!0x1;const _0x5d9ee2=_0x397582['getTableIfOnlyTableInContent'](_0x3311e3,_0x2db8e6);if(!_0x5d9ee2||!fe(_0x5d9ee2,void 0x0,_0x19241b))return!0x1;const _0x1e4f4b=_0x19241b[_0x5d28('0x6')](_0x2db8e6[_0x5d28('0x71')][_0x5d28('0x55')]);if(!_0x1e4f4b[_0x5d28('0x40')])return!0x1;const _0x58fc3f=_0x1e4f4b[0x0][_0x5d28('0x50')](_0x5d28('0x82')),_0x1db4d7=_0x19241b[_0x5d28('0x44')](_0x1e4f4b),_0x506e39=_0x19241b['getColumnIndexes'](_0x1e4f4b),_0x406373={'startRow':_0x1db4d7[_0x5d28('0x10')],'endRow':_0x1db4d7[_0x5d28('0x1')],'startColumn':_0x506e39[_0x5d28('0x10')],'endColumn':_0x506e39['last']};return 0x1==_0x1e4f4b[_0x5d28('0x40')]&&(_0x406373['endRow']+=_0x19241b[_0x5d28('0x36')](_0x5d9ee2)-0x1,_0x406373[_0x5d28('0x63')]+=_0x19241b[_0x5d28('0x45')](_0x5d9ee2)-0x1),fe(_0x58fc3f,_0x406373,_0x19241b);}(_0x398d24,_0x1aff5f,_0x11c7b2[_0x5d28('0xc')],_0x103b2b,_0x5b0dff)&&(_0x198f6c['stop'](),_0x1eeafd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x11c7b2[_0x5d28('0xc')]['change'](()=>{_0x11c7b2[_0x5d28('0xc')][_0x5d28('0x4')](_0x598fa7[0x0],_0x598fa7[0x1],_0x598fa7[0x2],{'forceDefaultExecution':!0x0});const _0x4ab914=_0x18679f(),{rowInsertionRanges:_0x4f2451,columnInsertionRanges:_0x4d0f37,insertionRanges:_0x1a372f,deletionRanges:_0x12d71e,cells:_0x39ae92}=_0x1eeafd;_0x4f2451['length']&&_0x21f132['markMultiRangeInsertion'](_0x4f2451,_0x5d28('0x17'),{'tablePasteChainId':_0x4ab914}),_0x4d0f37['length']&&_0x21f132['markMultiRangeInsertion'](_0x4d0f37,_0x5d28('0x26'),{'tablePasteChainId':_0x4ab914}),_0x1a372f[_0x5d28('0x40')]&&_0x21f132[_0x5d28('0x80')](_0x1a372f,_0x5d28('0x88'),{'tablePasteChainId':_0x4ab914,'skipNestingCheck':!0x0}),_0x12d71e[_0x5d28('0x40')]&&_0x21f132['markMultiRangeDeletion'](_0x12d71e,'tablePaste',{'tablePasteChainId':_0x4ab914,'skipNestingCheck':!0x0});const _0x2059b5=_0x21f132[_0x5d28('0x60')](_0x39ae92['map'](({element:_0x4093e1})=>_0x4093e1),{'formatGroupId':_0x18679f()},[],_0x5d28('0x15'),{'tablePasteChainId':_0x4ab914});if(_0x2059b5){const _0x5b9cfc=_0x2059b5['getMarkers'](),_0x2abaa3=[];for(const {element:_0x44b3ee,attributes:_0x53759c}of _0x39ae92){if(!_0x53759c)continue;const _0x206430=_0x11c7b2['model'][_0x5d28('0x5')](_0x44b3ee),_0x26b138=_0x5b9cfc[_0x5d28('0x5d')](_0x56302a=>_0x56302a[_0x5d28('0x96')]()[_0x5d28('0x49')](_0x206430));_0x26b138&&_0x2abaa3[_0x5d28('0x9c')]([_0x26b138['name'],_0x53759c]);}_0x2abaa3[_0x5d28('0x40')]&&_0x2059b5[_0x5d28('0x30')](_0x5d28('0x83'),Object[_0x5d28('0x87')](_0x2abaa3));}_0x1eeafd=null;}));},{'priority':_0x1d4a25[_0x5d28('0x7b')]+0xa}),_0x11c7b2[_0x5d28('0x77')][_0x5d28('0x2e')](_0x5d28('0x86'))['on'](_0x5d28('0x5c'),(_0x34f966,_0x31235b)=>{const [_0x513e68,_0x3d7c95,,_0x478e5f]=_0x31235b;if(!_0x1eeafd)return;_0x34f966['stop']();const _0x6286f9=_0x513e68[_0x5d28('0x41')],_0x49165d=_0x3d7c95,_0x3463c3=ce(_0x6286f9),_0x307cc7=ce(_0x49165d);_0x34f966[_0x5d28('0x79')]=_0x6286f9;let _0xdfcf92=null,_0x10d8f6=null;if(_0x307cc7||_0x3463c3){if(_0x3463c3&&!_0x307cc7){_0x478e5f[_0x5d28('0x78')](_0x6286f9[_0x5d28('0x6d')](0x0));for(const _0x588e7c of Array['from'](_0x49165d[_0x5d28('0x46')]()))_0x478e5f[_0x5d28('0x4f')](_0x588e7c,_0x6286f9,_0x5d28('0x4d'));const _0x2311f7=_0x1eeafd[_0x5d28('0x91')][_0x5d28('0x32')](_0x513e68[_0x5d28('0x68')]),_0x186648=_0x1eeafd[_0x5d28('0x89')][_0x5d28('0x32')](_0x513e68[_0x5d28('0xb')]);_0x2311f7||_0x186648||(_0xdfcf92=_0x478e5f[_0x5d28('0x57')](_0x6286f9));}else _0x307cc7&&!_0x3463c3&&(_0x10d8f6=_0x478e5f[_0x5d28('0x57')](_0x6286f9));}else{const _0x1ac4cf=_0x478e5f[_0x5d28('0x20')](_0x5d28('0x92')),_0x5a7c4c=_0x478e5f['createElement'](_0x5d28('0x92'));_0x478e5f['wrap'](_0x478e5f[_0x5d28('0x57')](_0x6286f9),_0x5a7c4c),_0x478e5f[_0x5d28('0x4f')](_0x1ac4cf,_0x6286f9,0x0);for(const _0x50e3cd of Array[_0x5d28('0x23')](_0x49165d['getChildren']()))_0x478e5f[_0x5d28('0x4f')](_0x50e3cd,_0x1ac4cf,_0x5d28('0x4d'));_0xdfcf92=_0x478e5f[_0x5d28('0x5')](_0x1ac4cf),_0x10d8f6=_0x478e5f['createRangeOn'](_0x5a7c4c);}const _0x13edba=Array[_0x5d28('0x23')](_0x49165d[_0x5d28('0x62')]())[_0x5d28('0x2d')](([_0x2db1a7])=>le[_0x5d28('0x32')](_0x2db1a7));_0x1eeafd[_0x5d28('0x6f')][_0x5d28('0x9c')]({'element':_0x6286f9,'attributes':_0x13edba[_0x5d28('0x40')]?Object[_0x5d28('0x87')](_0x13edba):null}),_0xdfcf92&&_0x1eeafd[_0x5d28('0xd')][_0x5d28('0x9c')](_0xdfcf92),_0x10d8f6&&_0x1eeafd['deletionRanges'][_0x5d28('0x9c')](_0x10d8f6);},{'priority':_0x5d28('0x7b')}),_0x103b2b['on'](_0x5d28('0x6c'),(_0x4a7f69,_0x5ad8e0)=>{const [_0x5ceb95,_0x5c4758={}]=_0x5ad8e0;if(!_0x1eeafd)return;const _0x4e97ef=_0x5c4758['at']||0x0,_0x3d79cc=_0x5c4758['columns']||0x1;_0x1eeafd['columnInsertionIndexes']=new Array(_0x3d79cc)[_0x5d28('0x1b')](_0x4e97ef)[_0x5d28('0x13')]((_0x4e13ea,_0x3c0285)=>_0x4e13ea+_0x3c0285);for(const {cell:_0x3d92b6}of _0x103b2b[_0x5d28('0x0')](_0x5ceb95,{'startColumn':_0x4e97ef,'endColumn':_0x4e97ef+_0x3d79cc-0x1}))_0x1eeafd[_0x5d28('0x1d')]['push'](_0x11c7b2['model'][_0x5d28('0x5')](_0x3d92b6));},{'priority':_0x5d28('0x28')}),_0x103b2b['on'](_0x5d28('0x4a'),(_0x2a2270,_0x3326f9)=>{const [_0x1593a7,_0x567eca={}]=_0x3326f9;if(!_0x1eeafd)return;const _0x420de7=_0x567eca['at']||0x0,_0x4cffa9=_0x567eca[_0x5d28('0x18')]||0x1;_0x1eeafd[_0x5d28('0x91')]=new Array(_0x4cffa9)[_0x5d28('0x1b')](_0x420de7)[_0x5d28('0x13')]((_0x1308a5,_0x45eb4f)=>_0x1308a5+_0x45eb4f);for(const {cell:_0x4bf159}of _0x103b2b['createTableWalker'](_0x1593a7,{'startRow':_0x420de7,'endRow':_0x420de7+_0x4cffa9-0x1}))_0x1eeafd['rowInsertionRanges']['push'](_0x11c7b2[_0x5d28('0xc')]['createRangeOn'](_0x4bf159));},{'priority':_0x5d28('0x28')}),_0x21f132['_descriptionFactory'][_0x5d28('0x8b')](_0x2c592f=>{if(_0x2c592f['subType']&&_0x2c592f[_0x5d28('0x7f')][_0x5d28('0x34')](_0x5d28('0x88')))return _0x2c592f[_0x5d28('0x7c')]?{}:{'type':_0x5d28('0x3d'),'content':_0xe96f5a(_0x11c7b2[_0x5d28('0x7')],_0x5d28('0x39'))};});const _0x8d0617=()=>!0x1;for(const _0x5444ca of['tablePaste',_0x5d28('0x26'),_0x5d28('0x17'),'tablePasteCell'])_0x21f132[_0x5d28('0x95')][_0x5d28('0x33')](_0x5d28('0x3d'),_0x5444ca,_0x5d28('0x6b'),_0x8d0617),_0x21f132['_suggestionFactory'][_0x5d28('0x33')](_0x5d28('0x43'),_0x5444ca,_0x5d28('0x6b'),_0x8d0617),_0x21f132['_suggestionFactory'][_0x5d28('0x33')](_0x5d28('0x93'),_0x5444ca,'join',_0x8d0617);_0x21f132[_0x5d28('0x95')]['registerCustomCallback'](_0x5d28('0x93'),_0x5d28('0x15'),_0x5d28('0x8a'),_0x8d0617),_0x21f132['_suggestionFactory'][_0x5d28('0x33')]('formatBlock',_0x5d28('0x15'),_0x5d28('0x7a'),(_0x206e5f,_0x54355d,_0xa5bd3c)=>{const _0x53e95e=_0x206e5f[_0x5d28('0x13')](_0x270045=>_0x270045['getContainedElement']())[_0x5d28('0x2d')](_0x5059e5=>_0x5059e5),_0x1d4905=new Map(_0x53e95e['map'](_0x2ef944=>[_0x2ef944,null]));if(_0x1eeafd)for(const {element:_0x1d4f08,attributes:_0x29c187}of _0x1eeafd[_0x5d28('0x6f')])_0x29c187&&_0x1d4905[_0x5d28('0x3a')](_0x1d4f08,_0x29c187);else{if(_0xa5bd3c&&_0xa5bd3c[_0x5d28('0x83')])for(const [_0x158a9b,_0x3c0dc0]of Object[_0x5d28('0x21')](_0xa5bd3c[_0x5d28('0x83')])){const _0x3d5e0f=_0x11c7b2['model']['markers'][_0x5d28('0x2e')](_0x158a9b),_0x2a790b=_0x3d5e0f?_0x3d5e0f['getRange']()[_0x5d28('0x4e')]():null;_0x2a790b&&_0x1d4905[_0x5d28('0x3a')](_0x2a790b,_0x3c0dc0);}}_0x11c7b2[_0x5d28('0xc')][_0x5d28('0x72')](_0x292890=>{for(const [_0x41b442,_0x56ae33]of _0x1d4905)_0x292890[_0x5d28('0x85')]({...ae,..._0x56ae33},_0x41b442);});});const _0x12e718=(_0x54947e,_0x22a3a8)=>{_0x21f132[_0x5d28('0x95')][_0x5d28('0x33')](_0x54947e,_0x5d28('0x88'),_0x22a3a8,(_0x49d624,_0x29970e,_0xf85bf9)=>{_0x11c7b2[_0x5d28('0xc')]['change'](_0x41e590=>{const _0x494bc8=[];for(const _0x122740 of _0x49d624){const _0xe59388=_0x122740[_0x5d28('0xf')][_0x5d28('0x3c')];_0xe59388['is'](_0x5d28('0x5e'),_0x5d28('0x92'))&&_0x494bc8[_0x5d28('0x9c')](_0xe59388);}_0x21f132[_0x5d28('0x95')]['getSuggestionCallback'](_0x54947e,null,_0x22a3a8)(_0x49d624,_0x29970e,_0xf85bf9);for(const _0x3747c0 of _0x494bc8)'$graveyard'!=_0x3747c0['root']['rootName']&&_0x41e590[_0x5d28('0x2')](_0x3747c0);});});};_0x12e718(_0x5d28('0x3d'),_0x5d28('0x7a')),_0x12e718(_0x5d28('0x3d'),_0x5d28('0x8a')),_0x12e718(_0x5d28('0x43'),'accept'),_0x12e718(_0x5d28('0x43'),_0x5d28('0x8a')),_0x21f132[_0x5d28('0x95')]['registerCustomCallback']('insertion',_0x5d28('0x17'),_0x5d28('0x8a'),_0x435b87=>{const _0x52a8d5=_0x435b87[_0x5d28('0x13')](_0x55d8dd=>_0x55d8dd['getContainedElement']()),_0x3e7a90=_0x52a8d5[0x0][_0x5d28('0x50')]('table'),{minRow:_0x15a630,maxRow:_0x3ef067}=_0x461620[_0x5d28('0x16')](_0x52a8d5);_0x103b2b[_0x5d28('0x53')](_0x3e7a90,{'at':_0x15a630,'rows':_0x3ef067-_0x15a630+0x1});}),_0x21f132[_0x5d28('0x95')][_0x5d28('0x33')](_0x5d28('0x3d'),_0x5d28('0x26'),_0x5d28('0x8a'),_0xa6717f=>{const _0x460ec7=_0xa6717f['map'](_0x446fa2=>_0x446fa2['getContainedElement']()),_0x545341=_0x460ec7[0x0][_0x5d28('0x50')](_0x5d28('0x82')),{minColumn:_0x172b3d,maxColumn:_0xda6b2e}=_0x461620[_0x5d28('0x16')](_0x460ec7);_0x103b2b[_0x5d28('0x25')](_0x545341,{'at':_0x172b3d,'columns':_0xda6b2e-_0x172b3d+0x1});});const _0x4f24c8=(_0x48c086,_0x2f6a26)=>{if(!_0x2f6a26[_0x5d28('0x7f')]||!_0x2f6a26['subType'][_0x5d28('0x34')]('tablePaste'))return;const _0xb2d14a=_0x2f6a26['attributes'][_0x5d28('0x73')],_0x57d7a4=_0x21f132['getSuggestions']()[_0x5d28('0x2d')](_0x53968a=>_0x53968a[_0x5d28('0x8e')]&&_0x53968a['attributes']&&_0x53968a[_0x5d28('0xa')][_0x5d28('0x73')]==_0xb2d14a);_0x57d7a4[_0x5d28('0x40')]&&_0x2f6a26['getAllAdjacentSuggestions']()[_0x5d28('0x40')]!=_0x57d7a4['length']&&_0x57d7a4[_0x5d28('0x5f')]((_0x12ea6b,_0x397369)=>(_0x12ea6b['next']=_0x397369,_0x397369[_0x5d28('0x7c')]=_0x12ea6b,_0x397369));};function _0x4a3344(_0x34c9d8,_0x431a61=!0x0){const {id:_0xba99c9}=_0x21f132[_0x5d28('0x70')](_0x34c9d8[_0x5d28('0x7d')]),_0x56698a=[_0x5d28('0x6e'),_0x5d28('0x31')],_0x222431=_0x21f132[_0x5d28('0x65')][_0x5d28('0x32')](_0x34c9d8[_0x5d28('0x7d')]);return _0x222431&&_0x56698a[_0x5d28('0x9c')](_0x5d28('0x35')),{'classes':_0x56698a,'attributes':{'data-suggestion':_0xba99c9},'priority':_0x222431&&_0x431a61?0xbc2:0xbb8};}_0x21f132['on']('suggestionLoaded',_0x4f24c8,{'priority':_0x5d28('0x7b')}),_0x21f132['on']('suggestionUnloaded',_0x4f24c8,{'priority':_0x5d28('0x7b')}),_0x11c7b2['model']['document'][_0x5d28('0x98')](()=>{let _0x15ed1c=!0x1;const _0xb7990e=Array[_0x5d28('0x23')](_0x11c7b2[_0x5d28('0xc')][_0x5d28('0x71')][_0x5d28('0x14')][_0x5d28('0x90')]());for(const {name:_0x1f7aba,data:_0x4f445b}of _0xb7990e){const {group:_0x3c3fbf,type:_0x517156,id:_0xb6977}=_0x21f132[_0x5d28('0x70')](_0x1f7aba);if(_0x5d28('0x11')!=_0x3c3fbf||_0x5d28('0x43')!=_0x517156||_0x4f445b['oldRange'])continue;if(!_0x21f132[_0x5d28('0x9e')](_0xb6977))continue;const _0x349d49=_0x21f132[_0x5d28('0x5b')](_0xb6977)[_0x5d28('0x3b')](),_0x82b7f9=_0x11c7b2[_0x5d28('0x77')][_0x5d28('0x2e')](_0x5d28('0x2c'))['me'];for(const _0x2c0d33 of _0x21f132[_0x5d28('0x4c')]()){if(!_0x2c0d33[_0x5d28('0x8e')]||_0x2c0d33['author']!=_0x82b7f9)continue;if('formatBlock'!=_0x2c0d33['type']||'tablePasteCell'!=_0x2c0d33[_0x5d28('0x7f')])continue;if(_0x2c0d33[_0x5d28('0x3b')]()[_0x5d28('0x64')](_0x28cf34=>_0x349d49[_0x5d28('0x59')](_0x2756fe=>_0x2756fe[_0x5d28('0x42')](_0x28cf34,!0x0))))for(const _0xfa9a17 of _0x2c0d33['getAllAdjacentSuggestions']())_0xfa9a17[_0x5d28('0x8e')]&&(_0xfa9a17[_0x5d28('0x8a')](),_0x15ed1c=!0x0);}}return _0x15ed1c;}),_0x11c7b2['model'][_0x5d28('0x71')][_0x5d28('0x98')](_0x5d6b3e=>{const _0x7056a5=_0x11c7b2['commands'][_0x5d28('0x2e')]('redo');if(!_0x7056a5||!_0x7056a5[_0x5d28('0x8c')]['has'](_0x5d6b3e[_0x5d28('0x47')]))return!0x1;let _0x1228b7=!0x1;const _0x13470d=_0x11c7b2[_0x5d28('0x77')][_0x5d28('0x2e')](_0x5d28('0x2c'))['me'],_0x5ca8fd=_0x11c7b2[_0x5d28('0xc')][_0x5d28('0x71')][_0x5d28('0x14')]['getChanges'](),_0x1cc11b=Array[_0x5d28('0x23')](_0x11c7b2[_0x5d28('0xc')]['document'][_0x5d28('0x14')][_0x5d28('0x90')]())[_0x5d28('0x2d')](({name:_0x17e7ab,data:_0x85be7e})=>{const {group:_0x3bea8c,subType:_0x58448e,authorId:_0x4a7398}=_0x21f132['_splitMarkerName'](_0x17e7ab);return'suggestion'==_0x3bea8c&&'tablePaste'==_0x58448e&&_0x4a7398==_0x13470d['id']&&!_0x85be7e['oldRange'];});for(const _0x2f124e of _0x5ca8fd){if(_0x5d28('0x4f')!=_0x2f124e['type']||'tableCellSuggestion'!=_0x2f124e[_0x5d28('0x9d')]||0x1!=_0x2f124e['length'])continue;const _0x4f562f=_0x5d6b3e[_0x5d28('0x37')](_0x2f124e[_0x5d28('0x52')],_0x2f124e[_0x5d28('0x52')][_0x5d28('0x5a')](0x1));if(!_0x1cc11b['find'](({data:_0x39b5f0})=>_0x39b5f0[_0x5d28('0x84')][_0x5d28('0x49')](_0x4f562f)))for(const {name:_0xf2ac94,data:_0x23464a}of _0x1cc11b)if(_0x4f562f[_0x5d28('0x42')](_0x23464a[_0x5d28('0x84')])){_0x5d6b3e[_0x5d28('0x9a')](_0xf2ac94,{'range':_0x4f562f}),_0x1228b7=!0x0;break;}}return _0x1228b7;}),_0x11c7b2['model'][_0x5d28('0x71')]['registerPostFixer'](_0x7dd41a=>{let _0x147f1c=!0x1;const _0xcc5e02=_0x11c7b2[_0x5d28('0x77')][_0x5d28('0x2e')](_0x5d28('0x2c'))['me'],_0x4b8a22=_0x21f132['getSuggestions']()['filter'](_0x5547f9=>_0x5547f9['isInContent']&&_0x5547f9[_0x5d28('0x1a')]==_0xcc5e02),_0x194070=new Set(),_0x1ec611=new Set();for(const _0x4c03a5 of _0x4b8a22)if(_0x5d28('0x88')==_0x4c03a5['subType'])for(const _0x146d29 of _0x4c03a5[_0x5d28('0x22')]()){const _0x4ce357=_0x146d29[_0x5d28('0x96')]()[_0x5d28('0x4e')]();if(_0x4ce357){if(_0x4ce357['is'](_0x5d28('0x5e'),_0x5d28('0x92'))&&ce(_0x4ce357)){_0x4c03a5[_0x5d28('0x1c')](_0x146d29['name']),_0x194070[_0x5d28('0x67')](_0x4ce357),_0x147f1c=!0x0;const _0x53e479=_0x4ce357[_0x5d28('0x56')],_0x58a12f=_0x4ce357[_0x5d28('0x2a')],_0x501bfa=_0x53e479&&_0x53e479['is'](_0x5d28('0x5e'),_0x5d28('0x92')),_0x424ef6=_0x58a12f&&_0x58a12f['is']('element',_0x5d28('0x92'));_0x501bfa&&!_0x194070[_0x5d28('0x3f')](_0x53e479)&&_0x1ec611[_0x5d28('0x67')](_0x53e479),_0x424ef6&&!_0x194070['has'](_0x58a12f)&&_0x1ec611[_0x5d28('0x67')](_0x58a12f);}else _0x4ce357['is'](_0x5d28('0x5e'),_0x5d28('0x61'))&&_0x4ce357['isEmpty']&&(_0x4c03a5['removeMarker'](_0x146d29[_0x5d28('0x9d')]),_0x147f1c=!0x0);}}else{if(_0x5d28('0x15')==_0x4c03a5[_0x5d28('0x7f')]){if(!_0x4c03a5[_0x5d28('0xa')]||!_0x4c03a5['attributes'][_0x5d28('0x73')])continue;const _0x1f7048=_0x4c03a5['attributes'][_0x5d28('0x83')];if(_0x1f7048&&Object[_0x5d28('0x69')](_0x1f7048)[_0x5d28('0x40')])continue;const _0x18e8e2=_0x4c03a5[_0x5d28('0xa')][_0x5d28('0x73')];let _0x510c58=!0x0,_0x3afe1c=!0x0;for(const _0x295fbb of _0x4b8a22)if(_0x295fbb[_0x5d28('0x7f')]&&_0x295fbb['subType'][_0x5d28('0x34')]('tablePaste')){if(!_0x295fbb[_0x5d28('0xa')][_0x5d28('0x73')]){_0x3afe1c=!0x1;break;}if(_0x295fbb['id']!=_0x4c03a5['id']&&_0x295fbb['attributes'][_0x5d28('0x73')]==_0x18e8e2){_0x510c58=!0x1;break;}}_0x3afe1c&&_0x510c58&&(_0x4c03a5[_0x5d28('0x75')](),_0x147f1c=!0x0);}}for(const _0x3fa87c of _0x194070)_0x7dd41a[_0x5d28('0x78')](_0x3fa87c);for(const _0x5a1b24 of _0x1ec611)_0x7dd41a[_0x5d28('0x2')](_0x5a1b24);return _0x147f1c;}),_0x11c7b2[_0x5d28('0x3')][_0x5d28('0x4b')](_0x5d28('0x24'))[_0x5d28('0x9b')]({'model':_0x5d28('0x8f'),'view':(_0x310496,_0x50818f)=>_0x4a3344(_0x310496),'converterPriority':_0x5d28('0x7b')}),_0x11c7b2[_0x5d28('0x3')]['for'](_0x5d28('0x6a'))[_0x5d28('0x9b')]({'model':_0x5d28('0x8f'),'view':(_0x9c3170,_0x25abc2)=>_0x25abc2[_0x5d28('0x48')][_0x5d28('0x7e')]?_0x4a3344(_0x9c3170,!0x1):null,'converterPriority':_0x5d28('0x7b')});const _0x39c378=_0x11c7b2[_0x5d28('0x58')][_0x5d28('0x99')];this[_0x5d28('0x66')](_0x39c378[_0x5d28('0x71')],'clipboardOutput',(_0x551283,_0x28da99)=>{const _0x263858=[];for(const _0x23fb62 of _0x39c378['createRangeIn'](_0x28da99[_0x5d28('0x81')])[_0x5d28('0x8')]())_0x23fb62['is'](_0x5d28('0x5e'),_0x5d28('0x94'))&&_0x263858['push'](_0x23fb62);_0x39c378[_0x5d28('0x72')](_0x3e63a4=>{for(const _0x3763da of _0x263858)_0x3e63a4[_0x5d28('0x29')](_0x3e63a4[_0x5d28('0x57')](_0x3763da),_0x3e63a4[_0x5d28('0x8d')](_0x3763da)),_0x3e63a4[_0x5d28('0x78')](_0x3763da);});});}}function ce(_0x30bac4){if(_0x30bac4[_0x5d28('0x54')])return!0x0;const _0x270e15=_0x30bac4[_0x5d28('0x6d')](0x0);return _0x270e15['is'](_0x5d28('0x5e'),_0x5d28('0x61'))&&_0x270e15[_0x5d28('0x54')];}function fe(_0x414f13,_0x5964c5={},_0x5bb7e5){for(const {isAnchor:_0x2f010e,cellHeight:_0x370fc9,cellWidth:_0x4cc1a5}of _0x5bb7e5[_0x5d28('0x0')](_0x414f13,{'includeAllSlots':!0x0,..._0x5964c5}))if(!_0x2f010e||0x1!=_0x370fc9||0x1!=_0x4cc1a5)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37c9=['document','format','formatGroupId','model','getSelectedElement','locale','accept','afterInit','editor','resizeColumnWidths','registerCustomCallback','get','resizeTableWidth','tableWidth','getAttribute','discard','commandParams','*Format:*\x20resize\x20table','selection','_descriptionFactory','getColumnGroupElement','data','getTableColumnsWidths','TrackChangesEditing','TableColumnResizeEditing','getContainedElement','bind','_suggestionFactory','author','formatBlock','handleSuggestionDescription','handleResizeTableWidthCommand','columnWidths','has','registerDescriptionCallback','table','plugins','getSuggestionCallback','getSuggestions','enableCommand','resizeTable'];(function(_0x174adf,_0x37c9b1){const _0x2b7161=function(_0x5b96ae){while(--_0x5b96ae){_0x174adf['push'](_0x174adf['shift']());}};_0x2b7161(++_0x37c9b1);}(_0x37c9,0xc5));const _0x2b71=function(_0x174adf,_0x37c9b1){_0x174adf=_0x174adf-0x0;let _0x2b7161=_0x37c9[_0x174adf];return _0x2b7161;};import{Plugin as _0x39071c}from'ckeditor5/src/core';import{getTranslation as _0x58660b}from'../utils/common-translations';export default class yt extends _0x39071c{[_0x2b71('0xf')](){if(!this[_0x2b71('0x10')]['plugins'][_0x2b71('0x0')](_0x2b71('0x20')))return;const _0x432f6c=this[_0x2b71('0x10')][_0x2b71('0x3')]['get']('TrackChangesEditing');_0x432f6c[_0x2b71('0x6')]('resizeTableWidth',this[_0x2b71('0x27')][_0x2b71('0x22')](this)),_0x432f6c['enableCommand'](_0x2b71('0x11'),this['handleResizeTableWidthCommand']['bind'](this)),_0x432f6c[_0x2b71('0x23')]['registerCustomCallback'](_0x2b71('0x25'),_0x2b71('0x7'),_0x2b71('0xe'),_0x432f6c['_suggestionFactory']['getSuggestionCallback'](_0x2b71('0x25'),null,'discard')),_0x432f6c[_0x2b71('0x23')][_0x2b71('0x12')]('formatBlock',_0x2b71('0x7'),_0x2b71('0x17'),_0x432f6c[_0x2b71('0x23')][_0x2b71('0x4')](_0x2b71('0x25'),null,_0x2b71('0xe'))),_0x432f6c[_0x2b71('0x1b')][_0x2b71('0x1')](this['handleSuggestionDescription'][_0x2b71('0x22')](this));}[_0x2b71('0x27')](_0x5898ee,_0x13610a){const _0x5dbcfb=this[_0x2b71('0x10')][_0x2b71('0x3')][_0x2b71('0x13')](_0x2b71('0x1f')),_0x5e1b70=this[_0x2b71('0x10')]['plugins'][_0x2b71('0x13')](_0x2b71('0x20')),_0x553be6=_0x13610a[_0x2b71('0x2')]||this[_0x2b71('0x10')][_0x2b71('0xb')][_0x2b71('0x8')][_0x2b71('0x1a')][_0x2b71('0xc')]();this[_0x2b71('0x10')]['model']['change'](()=>{const _0x4c7237=_0x5e1b70[_0x2b71('0x1c')](_0x553be6);let _0x3a54a4=_0x4c7237?_0x5e1b70[_0x2b71('0x1e')](_0x4c7237):null,_0x8df29e=_0x553be6[_0x2b71('0x16')](_0x2b71('0x15'))||null;const _0x4fdc5c=_0x13610a[_0x2b71('0x15')]||_0x8df29e,_0x34e3f1=_0x13610a[_0x2b71('0x28')]||_0x3a54a4,_0x35dfb3=this[_0x2b71('0x10')][_0x2b71('0x3')]['get']('Users')['me'];for(const _0x5629bb of _0x5dbcfb[_0x2b71('0x5')]()){const _0x3fbbe9=_0x5629bb[_0x2b71('0x21')]();if(_0x2b71('0x7')===_0x5629bb['subType']&&_0x3fbbe9===_0x553be6){_0x5629bb[_0x2b71('0x24')]!==_0x35dfb3&&_0x5629bb[_0x2b71('0x17')]();const _0x34e507=_0x5629bb[_0x2b71('0x1d')][_0x2b71('0x18')];_0x8df29e=_0x34e507[0x0][_0x2b71('0x15')],_0x3a54a4=_0x34e507[0x0]['columnWidths'];break;}}_0x5898ee({'table':_0x553be6,'tableWidth':_0x4fdc5c,'columnWidths':_0x34e3f1}),_0x5dbcfb['markBlockFormat'](_0x553be6,{'commandName':_0x2b71('0x14'),'commandParams':[{'tableWidth':_0x8df29e,'columnWidths':_0x3a54a4}],'formatGroupId':_0x2b71('0x7')},[],_0x2b71('0x7'));});}[_0x2b71('0x26')](_0x473b65){const {data:_0x16ed92}=_0x473b65;if(_0x16ed92&&_0x2b71('0x7')===_0x16ed92[_0x2b71('0xa')]){const _0x30ab7c=_0x2b71('0x19');return{'type':_0x2b71('0x9'),'content':_0x58660b(this[_0x2b71('0x10')][_0x2b71('0xd')],_0x30ab7c)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf2fc=['getAttribute','addMarker:suggestion','nodeAfter','_splitMarkerName','headingColumns','_suggestionFactory','afterInit','createTableWalker','FORMAT_HEADER_ROW','markerName','removeAttribute','downcastDispatcher','model','highest','TrackChangesEditing','item','getSelectionAffectedTableCells','document','TableUtils','childCount','getCellLocation','name','stop','activeMarkers','addClass','cell','removeMarker:suggestion','ck-suggestion-marker-','table','selection','ck-suggestion-marker--active','getChild','toViewElement','mapper','accept','nodeBefore','formatBlock','bindElementToMarker','_descriptionFactory','has','_acceptFormatSuggestionCallbackFactory','createPositionAfter','value','get','getRowIndexes','data','FORMAT_REGULAR_COLUMN','registerCustomCallback','commands','getSuggestion','editor','headingRows','change','forceValue','markBlockFormat','getColumnIndexes','options','commandName','removeClass','FORMAT_HEADER_COLUMN','index','setAttribute','parent','registerDescriptionCallback','unbindElementFromMarkerName','plugins','findAncestor','markerRange','commandParams','enableCommand','FORMAT_REGULAR_ROW','setTableRowHeader','createRange','consume','writer','setTableColumnHeader','createPositionBefore','*Format:*\x20%0'];(function(_0x433f89,_0xf2fc67){const _0x321905=function(_0x471ff7){while(--_0x471ff7){_0x433f89['push'](_0x433f89['shift']());}};_0x321905(++_0xf2fc67);}(_0xf2fc,0x17e));const _0x3219=function(_0x433f89,_0xf2fc67){_0x433f89=_0x433f89-0x0;let _0x321905=_0xf2fc[_0x433f89];return _0x321905;};import{Plugin as _0x3e8512}from'ckeditor5/src/core';import _0x478536 from'./table';import{getTranslation as _0xe28486}from'../utils/common-translations';export default class kt extends _0x3e8512{static get['requires'](){return[_0x478536];}[_0x3219('0xe')](){const _0x3487fe=this[_0x3219('0x3a')];if(!_0x3487fe[_0x3219('0x49')][_0x3219('0x2f')]('TableEditing'))return;const _0x48b9d6=_0x3487fe['locale'],_0x3c51a2=_0x3487fe[_0x3219('0x49')][_0x3219('0x33')](_0x3219('0x16')),_0x47bfb9=_0x3487fe[_0x3219('0x49')][_0x3219('0x33')](_0x3219('0x1a')),_0x404d31=_0x3487fe[_0x3219('0x49')][_0x3219('0x33')](_0x478536);function _0xb7caa6({showActiveMarker:_0x5d61db=!0x0,setDataAttribute:_0x109ab6=!0x0}={}){return(_0x38e754,_0x90aa46,_0x264512)=>{const {type:_0x4571d7,id:_0x13c758}=_0x3c51a2[_0x3219('0xb')](_0x90aa46[_0x3219('0x11')]),_0x1e8dab=_0x3c51a2[_0x3219('0x39')](_0x13c758);if(!_0x1e8dab['data']||_0x3219('0x5')!=_0x1e8dab[_0x3219('0x35')][_0x3219('0x41')])return;if(_0x90aa46[_0x3219('0x17')])return void _0x38e754[_0x3219('0x1e')]();if(!_0x264512['consumable'][_0x3219('0x3')](_0x90aa46[_0x3219('0x4b')],_0x38e754[_0x3219('0x1d')]))return;const _0x594905=_0x90aa46[_0x3219('0x4b')]['start'][_0x3219('0xa')],_0x53b852=_0x90aa46[_0x3219('0x4b')]['end'][_0x3219('0x2b')],_0x1b05a4=_0x594905[_0x3219('0x46')][_0x3219('0x46')],{column:_0x3530e6}=_0x47bfb9[_0x3219('0x1c')](_0x594905),{column:_0x31f1e2}=_0x47bfb9[_0x3219('0x1c')](_0x53b852);for(let _0x440c15=_0x3530e6;_0x440c15<=_0x31f1e2;_0x440c15++){const _0x4a3b5e=_0x47bfb9[_0x3219('0xf')](_0x1b05a4,{'column':_0x440c15,'includeAllSlots':!0x1});for(const _0x3360a6 of _0x4a3b5e){const _0x5404ea=_0x3360a6[_0x3219('0x21')],_0x5d1dd8=_0x264512[_0x3219('0x29')][_0x3219('0x28')](_0x5404ea);_0x264512['writer'][_0x3219('0x20')](_0x3219('0x23')+_0x4571d7,_0x5d1dd8),_0x109ab6&&_0x264512[_0x3219('0x4')][_0x3219('0x45')]('data-suggestion',_0x13c758,_0x5d1dd8),_0x264512[_0x3219('0x29')][_0x3219('0x2d')](_0x5d1dd8,_0x90aa46[_0x3219('0x11')]),_0x5d61db&&(_0x3c51a2[_0x3219('0x1f')]['includes'](_0x90aa46[_0x3219('0x11')])?_0x264512[_0x3219('0x4')][_0x3219('0x20')](_0x3219('0x26'),_0x5d1dd8):_0x264512['writer']['removeClass']('ck-suggestion-marker--active',_0x5d1dd8));}}};}_0x3c51a2['enableCommand'](_0x3219('0x1'),(_0x4fb3a0,_0x4aed1a)=>{const _0x1d24de=_0x47bfb9['getSelectionAffectedTableCells'](_0x3487fe[_0x3219('0x14')][_0x3219('0x19')][_0x3219('0x25')]),_0x1bebfa=_0x47bfb9[_0x3219('0x34')](_0x1d24de),_0x2846c5=_0x1d24de[0x0][_0x3219('0x4a')]('table'),_0x52031e=_0x2846c5[_0x3219('0x8')](_0x3219('0x3b'))||0x0,_0x1dd272=_0x4aed1a&&null!==_0x4aed1a[_0x3219('0x3d')]?_0x4aed1a['forceValue']:!_0x3487fe['commands'][_0x3219('0x33')]('setTableRowHeader')[_0x3219('0x32')],_0x4e24ee=_0x1dd272?_0x1bebfa['last']:_0x1bebfa['first'],_0x56f85a=_0x2846c5[_0x3219('0x27')](_0x4e24ee);let _0x483a8a;if(_0x1dd272){const _0x473e35=_0x2846c5['getChild'](_0x52031e);if(_0x56f85a[_0x3219('0x44')]<_0x473e35['index'])return;_0x483a8a=_0x3487fe[_0x3219('0x14')][_0x3219('0x2')](_0x3487fe['model'][_0x3219('0x6')](_0x473e35[_0x3219('0x27')](0x0)),_0x3487fe[_0x3219('0x14')][_0x3219('0x31')](_0x56f85a[_0x3219('0x27')](_0x56f85a[_0x3219('0x1b')]-0x1)));}else{const _0x3ce963=_0x2846c5[_0x3219('0x27')](_0x52031e-0x1);if(!_0x3ce963)return;_0x483a8a=_0x3487fe[_0x3219('0x14')][_0x3219('0x2')](_0x3487fe[_0x3219('0x14')][_0x3219('0x6')](_0x56f85a[_0x3219('0x27')](0x0)),_0x3487fe[_0x3219('0x14')][_0x3219('0x31')](_0x3ce963[_0x3219('0x27')](_0x3ce963[_0x3219('0x1b')]-0x1)));}_0x3487fe[_0x3219('0x14')][_0x3219('0x3c')](()=>{_0x3c51a2[_0x3219('0x3e')](_0x483a8a,{'commandName':_0x3219('0x1'),'commandParams':[{'forceValue':_0x1dd272}]},[],_0x3219('0x1'));});}),_0x3c51a2[_0x3219('0x4d')](_0x3219('0x5'),(_0x4feb48,_0x435104)=>{const _0x24f0f2=_0x3487fe[_0x3219('0x49')][_0x3219('0x33')](_0x3219('0x1a')),_0x3bf102=_0x24f0f2[_0x3219('0x18')](_0x3487fe[_0x3219('0x14')][_0x3219('0x19')][_0x3219('0x25')]),_0x2ac1a0=_0x24f0f2[_0x3219('0x3f')](_0x3bf102),_0x1fd171=_0x3bf102[0x0][_0x3219('0x4a')](_0x3219('0x24')),_0x4fa056=_0x1fd171[_0x3219('0x8')](_0x3219('0xc'))||0x0,_0x4758a3=_0x435104&&null!==_0x435104['forceValue']?_0x435104['forceValue']:!_0x3487fe[_0x3219('0x38')][_0x3219('0x33')]('setTableColumnHeader')[_0x3219('0x32')];let _0x256eba;const _0x17f3d9=_0x1fd171['getChild'](0x0),_0x57b7b6=_0x4758a3?_0x2ac1a0['last']:_0x2ac1a0['first'],_0x3c1506=_0x24f0f2[_0x3219('0xf')](_0x1fd171,{'startRow':0x0,'column':_0x57b7b6,'includeAllSlots':!0x1}),_0x2450ca=Array['from'](_0x3c1506)[0x0][_0x3219('0x21')];if(_0x4758a3){const _0xed25c7=_0x17f3d9[_0x3219('0x27')](_0x4fa056);if(_0x2450ca['isBefore'](_0xed25c7))return;_0x256eba=_0x3487fe[_0x3219('0x14')][_0x3219('0x2')](_0x3487fe['model'][_0x3219('0x6')](_0xed25c7),_0x3487fe[_0x3219('0x14')][_0x3219('0x31')](_0x2450ca));}else{const _0x47eb02=_0x17f3d9[_0x3219('0x27')](_0x4fa056-0x1);if(!_0x47eb02)return;_0x256eba=_0x3487fe[_0x3219('0x14')][_0x3219('0x2')](_0x3487fe['model'][_0x3219('0x6')](_0x2450ca),_0x3487fe[_0x3219('0x14')][_0x3219('0x31')](_0x47eb02));}_0x3487fe[_0x3219('0x14')]['change'](()=>{_0x3c51a2[_0x3219('0x3e')](_0x256eba,{'commandName':_0x3219('0x5'),'commandParams':[{'forceValue':_0x4758a3}]},[],'setTableColumnHeader');});}),_0x3487fe['editing'][_0x3219('0x13')]['on'](_0x3219('0x9'),_0xb7caa6(),{'priority':_0x3219('0x15')}),_0x3487fe[_0x3219('0x35')]['downcastDispatcher']['on'](_0x3219('0x9'),(_0x37a2d2,_0xe1c05a,_0x4bb106)=>{_0x4bb106[_0x3219('0x40')]['showSuggestionHighlights']&&_0xb7caa6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37a2d2,_0xe1c05a,_0x4bb106);},{'priority':'highest'}),_0x3487fe['editing']['downcastDispatcher']['on'](_0x3219('0x22'),(_0xc0cfb1,_0x54d0e7,_0x566026)=>{const {type:_0x2ebc81,id:_0x2d819a}=_0x3c51a2[_0x3219('0xb')](_0x54d0e7[_0x3219('0x11')]),_0x2671f8=_0x3c51a2[_0x3219('0x39')](_0x2d819a);if(!_0x2671f8['data']||_0x3219('0x5')!=_0x2671f8[_0x3219('0x35')][_0x3219('0x41')])return;const _0x4b34f1=_0x566026[_0x3219('0x29')]['markerNameToElements'](_0x54d0e7[_0x3219('0x11')]);if(_0x4b34f1)for(const _0x37cef9 of _0x4b34f1)_0x566026['writer'][_0x3219('0x42')](_0x3219('0x23')+_0x2ebc81,_0x37cef9),_0x566026[_0x3219('0x4')][_0x3219('0x42')](_0x3219('0x26'),_0x37cef9),_0x566026['writer'][_0x3219('0x12')]('data-suggestion',_0x37cef9),_0x566026[_0x3219('0x29')][_0x3219('0x48')](_0x37cef9,_0x54d0e7[_0x3219('0x11')]);},{'priority':_0x3219('0x15')}),_0x3c51a2[_0x3219('0x2e')][_0x3219('0x47')](_0x75f0d8=>{const {data:_0x3fae0f}=_0x75f0d8;if(_0x3fae0f){if(_0x3219('0x1')==_0x3fae0f[_0x3219('0x41')]){const _0x1341d6=_0x3fae0f[_0x3219('0x4c')][0x0][_0x3219('0x3d')];return _0x1e815c(_0xe28486(_0x48b9d6,_0x1341d6?_0x3219('0x10'):_0x3219('0x0')));}if(_0x3219('0x5')==_0x3fae0f[_0x3219('0x41')]){const _0x1b88fc=_0x3fae0f[_0x3219('0x4c')][0x0]['forceValue'];return _0x1e815c(_0xe28486(_0x48b9d6,_0x1b88fc?_0x3219('0x43'):_0x3219('0x36')));}}function _0x1e815c(_0x278821){return{'type':'format','content':_0xe28486(_0x48b9d6,_0x3219('0x7'),_0x278821)};}});const _0x4b16c0=_0x404d31[_0x3219('0x30')]();_0x3c51a2[_0x3219('0xd')][_0x3219('0x37')](_0x3219('0x2c'),_0x3219('0x1'),_0x3219('0x2a'),_0x4b16c0),_0x3c51a2['_suggestionFactory'][_0x3219('0x37')]('formatBlock','setTableColumnHeader',_0x3219('0x2a'),_0x4b16c0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcd5e=['map','low','_tablePostFixingSubtypes','direction','subType','_areSelectedCellsMergable','TableEditing','author','formatBlock','_descriptionFactory','mergeTableCellUp','mergeTableCellRight','_areMergableCells','getSuggestions','registerCustomCallback','$graveyard','containsRange','commandName','type','editor','mergeTableCellLeft','return','getSelectionAffectedTableCells','filter','enableCommand','from','selection','plugins','detach','markBlockFormat','stop','root','_acceptFormatSuggestionCallbackFactory','element','locale','mergeTableCellDown','setSelection','tableCell','refresh','value','deletion','*Split\x20cell:*\x20horizontally','getCellLocation','get','has','insertion','getRanges','table','size','createRangeOn','getAncestors','createTableWalker','length','add','TrackChangesEditing','format','rootName','fromRange','findAncestor','commands','mergeTableCells','execute','TableUtils','markMultiRangeBlockFormat','splitTableCellHorizontally','getFirstPosition','model','_suggestionFactory','push','_isForcedDefaultExecutionBlock','accept','registerDescriptionCallback','cell','set:isEnabled','trackChanges','isInContent','splitTableCellVertically','requires','change','document','highest','isEnabled','*Merge\x20cells*'];(function(_0x4f7147,_0xcd5eec){const _0x9a3c8f=function(_0x33fe7c){while(--_0x33fe7c){_0x4f7147['push'](_0x4f7147['shift']());}};_0x9a3c8f(++_0xcd5eec);}(_0xcd5e,0x1b2));const _0x9a3c=function(_0x4f7147,_0xcd5eec){_0x4f7147=_0x4f7147-0x0;let _0x9a3c8f=_0xcd5e[_0x4f7147];return _0x9a3c8f;};import{Plugin as _0x3c7328}from'ckeditor5/src/core';import _0x2033a9 from'./table';import{LiveRange as _0x53ee66}from'ckeditor5/src/engine';import{getTranslation as _0x16f459}from'../utils/common-translations';export default class pt extends _0x3c7328{static get[_0x9a3c('0x3a')](){return[_0x2033a9];}['afterInit'](){const _0x44789d=this[_0x9a3c('0x0')],_0xb35277=_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3c')][_0x9a3c('0x7')],_0x4776ee=_0x44789d[_0x9a3c('0xf')];if(!_0x44789d[_0x9a3c('0x8')][_0x9a3c('0x19')](_0x9a3c('0x46')))return;const _0x19c74e=_0x44789d['plugins'][_0x9a3c('0x18')](_0x9a3c('0x23')),_0xebde4=_0x44789d[_0x9a3c('0x8')][_0x9a3c('0x18')](_0x9a3c('0x2b')),_0x53d4d2=_0x44789d[_0x9a3c('0x8')]['get'](_0x2033a9);_0x53d4d2[_0x9a3c('0x42')][_0x9a3c('0x31')]('mergeTableCells'),_0x19c74e[_0x9a3c('0x5')](_0x9a3c('0x29'),()=>{const _0x5c59a0=_0xebde4[_0x9a3c('0x3')](_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3c')][_0x9a3c('0x7')]);_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3b')](()=>{_0x19c74e[_0x9a3c('0x2c')](_0x5c59a0,{'commandName':'mergeTableCells','commandParams':[]},[],_0x9a3c('0x29'));});}),_0x44789d[_0x9a3c('0x28')][_0x9a3c('0x18')](_0x9a3c('0x29'))['on'](_0x9a3c('0x2a'),(_0x1a6ebc,_0x18da9b)=>{_0x44789d[_0x9a3c('0x28')]['get'](_0x9a3c('0x37'))[_0x9a3c('0x14')]&&(_0x18da9b[_0x9a3c('0x21')]>0x0&&_0x18da9b[_0x18da9b[_0x9a3c('0x21')]-0x1]&&_0x18da9b[_0x18da9b[_0x9a3c('0x21')]-0x1]['forceDefaultExecution']||_0x19c74e[_0x9a3c('0x32')]||this[_0x9a3c('0x45')]()||_0x1a6ebc[_0x9a3c('0xb')]());},{'priority':_0x9a3c('0x3d')});for(const _0x298cb9 of['mergeTableCellUp',_0x9a3c('0x4b'),_0x9a3c('0x10'),_0x9a3c('0x1')]){const _0x427901=_0x44789d[_0x9a3c('0x28')][_0x9a3c('0x18')](_0x298cb9);_0x19c74e[_0x9a3c('0x5')](_0x298cb9,()=>{const _0x4d6eea=_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3c')][_0x9a3c('0x7')]['getFirstPosition']()[_0x9a3c('0x1f')]()['find'](_0xcb83ee=>_0xcb83ee['is'](_0x9a3c('0xe'),_0x9a3c('0x12'))),_0x2e7658=_0x427901[_0x9a3c('0x14')];_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3b')](()=>{_0x19c74e['markMultiRangeBlockFormat']([_0x4d6eea,_0x2e7658],{'commandName':_0x9a3c('0x29'),'commandParams':[]},[],_0x9a3c('0x29'));});});}for(const _0x3c28c4 of['splitTableCellVertically',_0x9a3c('0x2d')]){const _0x4a2f37=_0x44789d['commands']['get'](_0x3c28c4);_0x19c74e[_0x9a3c('0x5')](_0x3c28c4,()=>{const _0x33db87=_0xebde4[_0x9a3c('0x3')](_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3c')][_0x9a3c('0x7')])[0x0],_0x50c124=_0x33db87[_0x9a3c('0x27')](_0x9a3c('0x1c')),{column:_0x914710,row:_0x3d3453}=_0xebde4[_0x9a3c('0x17')](_0x33db87);let _0x15550c=[];if('horizontally'==_0x4a2f37[_0x9a3c('0x43')]){const _0x4731ff=_0xebde4[_0x9a3c('0x20')](_0x50c124,{'startRow':_0x3d3453,'endRow':_0x3d3453,'includeAllSlots':!0x0});_0x15550c=Array[_0x9a3c('0x6')](_0x4731ff)[_0x9a3c('0x40')](_0x5894f6=>_0x5894f6[_0x9a3c('0x35')]);}else{const _0x347c58=_0xebde4['createTableWalker'](_0x50c124,{'column':_0x914710,'includeAllSlots':!0x0});_0x15550c=Array[_0x9a3c('0x6')](_0x347c58)['map'](_0xe56327=>_0xe56327['cell']);}_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3b')](_0x3b354e=>{_0x19c74e[_0x9a3c('0xa')](_0x3b354e['createRangeOn'](_0x33db87),{'commandName':_0x3c28c4,'commandParams':[]},_0x15550c,_0x3c28c4);});});}_0x19c74e[_0x9a3c('0x49')][_0x9a3c('0x34')](_0x15e471=>{const {data:_0x384d02}=_0x15e471;if(_0x384d02)return _0x9a3c('0x29')==_0x384d02[_0x9a3c('0x51')]?{'type':_0x9a3c('0x24'),'content':_0x16f459(_0x4776ee,_0x9a3c('0x3f'))}:void 0x0;}),_0x19c74e[_0x9a3c('0x49')][_0x9a3c('0x34')](_0x39dd91=>{const {data:_0x2fcdf7}=_0x39dd91;if(_0x2fcdf7)return _0x9a3c('0x39')==_0x2fcdf7[_0x9a3c('0x51')]?{'type':_0x9a3c('0x24'),'content':_0x16f459(_0x4776ee,'*Split\x20cell:*\x20vertically')}:_0x9a3c('0x2d')==_0x2fcdf7[_0x9a3c('0x51')]?{'type':_0x9a3c('0x24'),'content':_0x16f459(_0x4776ee,_0x9a3c('0x16'))}:void 0x0;});const _0x1efccc=_0x53d4d2[_0x9a3c('0xd')]();for(const _0x184076 of[_0x9a3c('0x4a'),_0x9a3c('0x4b'),_0x9a3c('0x10'),'mergeTableCellLeft'])_0x19c74e[_0x9a3c('0x30')][_0x9a3c('0x4e')](_0x9a3c('0x48'),_0x184076,'accept',_0x1efccc);for(const _0x2b44e8 of[_0x9a3c('0x39'),_0x9a3c('0x2d')])_0x19c74e[_0x9a3c('0x30')]['registerCustomCallback']('formatBlock',_0x2b44e8,_0x9a3c('0x33'),_0x1efccc);_0x19c74e['_suggestionFactory'][_0x9a3c('0x4e')](_0x9a3c('0x48'),_0x9a3c('0x29'),_0x9a3c('0x33'),_0x35e070=>{_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3b')](_0x1beb1f=>{const _0x8dc34c=Array[_0x9a3c('0x6')](_0xb35277[_0x9a3c('0x1b')]())['map'](_0x429b08=>_0x53ee66[_0x9a3c('0x26')](_0x429b08));_0x1beb1f[_0x9a3c('0x11')](_0x35e070),_0x44789d[_0x9a3c('0x28')][_0x9a3c('0x18')](_0x9a3c('0x29'))[_0x9a3c('0x13')](),_0x44789d[_0x9a3c('0x2a')](_0x9a3c('0x29'),{'forceDefaultExecution':!0x0});const _0x29d58d=_0x8dc34c[_0x9a3c('0x4')](_0x49b4a9=>_0x9a3c('0x4f')!=_0x49b4a9[_0x9a3c('0xc')][_0x9a3c('0x25')]);_0x29d58d['length']>0x0&&_0x1beb1f[_0x9a3c('0x11')](_0x29d58d);for(const _0x148a39 of _0x8dc34c)_0x148a39[_0x9a3c('0x9')]();});});for(const _0x45246b of['mergeTableCellUp',_0x9a3c('0x10'),_0x9a3c('0x1'),_0x9a3c('0x4b')]){const _0x34f36f=_0x44789d[_0x9a3c('0x28')][_0x9a3c('0x18')](_0x45246b);_0x34f36f['on'](_0x9a3c('0x36'),(_0x5794c0,_0x3980cd,_0x2c0c42)=>{if(_0x2c0c42){const _0x14fc45=_0x44789d[_0x9a3c('0x2f')][_0x9a3c('0x3c')][_0x9a3c('0x7')][_0x9a3c('0x2e')]()[_0x9a3c('0x1f')]()['find'](_0x5d3b1f=>_0x5d3b1f['is'](_0x9a3c('0xe'),'tableCell'));this['_areMergableCells'](_0x34f36f['value'],_0x14fc45)||(_0x5794c0[_0x9a3c('0x2')]=!0x1,_0x5794c0[_0x9a3c('0xb')]());}},{'priority':_0x9a3c('0x41')});}}[_0x9a3c('0x45')](){const _0x1f7b79=this[_0x9a3c('0x0')][_0x9a3c('0x28')][_0x9a3c('0x18')](_0x9a3c('0x29')),_0x3420f3=this[_0x9a3c('0x0')][_0x9a3c('0x8')]['get'](_0x9a3c('0x2b'));if(!_0x1f7b79[_0x9a3c('0x3e')])return!0x1;const _0x5b8aaf=_0x3420f3[_0x9a3c('0x3')](this['editor'][_0x9a3c('0x2f')][_0x9a3c('0x3c')][_0x9a3c('0x7')]);for(const _0x2d6ffa of _0x5b8aaf)for(const _0x46c126 of _0x5b8aaf)if(_0x2d6ffa!=_0x46c126&&!this[_0x9a3c('0x4c')](_0x2d6ffa,_0x46c126))return!0x1;return!0x0;}[_0x9a3c('0x4c')](_0x52d272,_0x48dff0){const _0x44ef5e=this[_0x9a3c('0x0')][_0x9a3c('0x8')][_0x9a3c('0x18')]('TrackChangesEditing'),_0x2f8e3e=this[_0x9a3c('0x0')][_0x9a3c('0x2f')]['createRangeOn'](_0x52d272),_0x4ef0f8=this['editor'][_0x9a3c('0x2f')][_0x9a3c('0x1e')](_0x48dff0),_0x469491=new Set(),_0x42aaf2=new Set();for(const _0x243308 of _0x44ef5e[_0x9a3c('0x4d')]())if((_0x9a3c('0x1a')==_0x243308[_0x9a3c('0x52')]||_0x9a3c('0x15')==_0x243308['type']||_0x9a3c('0x29')==_0x243308[_0x9a3c('0x44')])&&_0x243308[_0x9a3c('0x38')])for(const _0xfcb99d of _0x243308[_0x9a3c('0x1b')]())_0xfcb99d[_0x9a3c('0x50')](_0x2f8e3e,!0x0)&&_0x469491[_0x9a3c('0x22')](_0x243308[_0x9a3c('0x52')]+':'+_0x243308[_0x9a3c('0x47')]['id']),_0xfcb99d[_0x9a3c('0x50')](_0x4ef0f8,!0x0)&&_0x42aaf2[_0x9a3c('0x22')](_0x243308['type']+':'+_0x243308['author']['id']);if(_0x469491['size']!=_0x42aaf2[_0x9a3c('0x1d')])return!0x1;for(const _0x125421 of _0x469491)if(!_0x42aaf2[_0x9a3c('0x19')](_0x125421))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28bc=['enableCommand','TrackChangesEditing','get','_descriptionFactory','locale','registerElementLabel','insertTableOfContents','plugins','ELEMENT_TABLE_OF_CONTENTS','commands'];(function(_0x35314c,_0x28bc73){const _0x4834fd=function(_0x1472d1){while(--_0x1472d1){_0x35314c['push'](_0x35314c['shift']());}};_0x4834fd(++_0x28bc73);}(_0x28bc,0x143));const _0x4834=function(_0x35314c,_0x28bc73){_0x35314c=_0x35314c-0x0;let _0x4834fd=_0x28bc[_0x35314c];return _0x4834fd;};import{Plugin as _0x126256}from'ckeditor5/src/core';import{getTranslation as _0x59a325}from'../utils/common-translations';export default class St extends _0x126256{['afterInit'](){const _0x35760c=this['editor'];if(!_0x35760c[_0x4834('0x6')][_0x4834('0x9')](_0x4834('0x3')))return;_0x35760c[_0x4834('0x4')][_0x4834('0x9')]('TrackChangesEditing')[_0x4834('0x7')]('insertTableOfContents');const _0x29ebda=_0x35760c[_0x4834('0x4')][_0x4834('0x9')](_0x4834('0x8')),_0x23bfc3=_0x35760c[_0x4834('0x1')];_0x29ebda[_0x4834('0x0')][_0x4834('0x2')]('tableOfContents',_0x25d5c0=>_0x59a325(_0x23bfc3,_0x4834('0x5'),_0x25d5c0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c35=['registerDescriptionCallback','tableBorderWidth','batch','has','tableHeight','_handlePropertyChange','tableCellPadding','tableCellProperties','tableCellBorderColor','discard','registerCustomCallback','commandParams','model','join','start','tableBorderStyle','_getSuggestion','afterInit','document','markBlockFormat','TableCellPropertiesEditing','get','plugins','getSelectionAffectedTableCells','_descriptionFactory','accept','TableUtils','enqueueChange','_suggestionFactory','TrackChangesEditing','pluginName','data','tableAlignment','handleDiscardAction','tableCellWidth','getSuggestionCallback','nodeAfter','handleSuggestionDescription','TrackChangesTableProperties','enableCommand','tableProperties','findAncestor','subType','table','tableCellBorderStyle','removeAttribute','format','locale','tableCellBackgroundColor','getContainedElement','tableCellVerticalAlignment','selection','formatBlock','editor','getSuggestions'];(function(_0x471d33,_0x1c359c){const _0x160ca8=function(_0x105b9a){while(--_0x105b9a){_0x471d33['push'](_0x471d33['shift']());}};_0x160ca8(++_0x1c359c);}(_0x1c35,0x18f));const _0x160c=function(_0x471d33,_0x1c359c){_0x471d33=_0x471d33-0x0;let _0x160ca8=_0x1c35[_0x471d33];return _0x160ca8;};import{Plugin as _0x14590e}from'ckeditor5/src/core';import{getTranslation as _0x1bff59}from'../utils/common-translations';export default class Dt extends _0x14590e{constructor(_0x1a785c){super(_0x1a785c),this[_0x160c('0x1a')]=['tableBorderColor',_0x160c('0x1'),_0x160c('0x2a'),_0x160c('0x12'),'tableWidth',_0x160c('0x2d'),'tableBackgroundColor'],this[_0x160c('0x30')]=[_0x160c('0x31'),_0x160c('0x1e'),'tableCellBorderWidth',_0x160c('0x2f'),_0x160c('0x14'),'tableCellHeight',_0x160c('0x22'),'tableCellHorizontalAlignment',_0x160c('0x24')];}static get[_0x160c('0x10')](){return _0x160c('0x18');}[_0x160c('0x3')](){const _0x1b2d78=this[_0x160c('0x27')][_0x160c('0x8')][_0x160c('0x7')]('TrackChangesEditing');if(this[_0x160c('0x27')]['plugins'][_0x160c('0x2c')]('TablePropertiesEditing')){for(const _0x4097d9 of this[_0x160c('0x1a')])_0x1b2d78[_0x160c('0x19')](_0x4097d9,(_0x10fd39,_0x23c3dd)=>{const _0x4a4007=this[_0x160c('0x27')][_0x160c('0x35')][_0x160c('0x4')][_0x160c('0x25')]['getFirstPosition']()[_0x160c('0x1b')](_0x160c('0x1d'));this[_0x160c('0x2e')](_0x4097d9,[_0x4a4007],this[_0x160c('0x1a')],'tableProperties',_0x10fd39,_0x23c3dd);});_0x1b2d78[_0x160c('0xe')][_0x160c('0x33')](_0x160c('0x26'),'tableProperties','accept',_0x1b2d78[_0x160c('0xe')][_0x160c('0x15')](_0x160c('0x26'),null,_0x160c('0x32'))),_0x1b2d78[_0x160c('0xe')][_0x160c('0x33')](_0x160c('0x26'),_0x160c('0x1a'),_0x160c('0x32'),(_0xb8a0c3,_0x1fa9a4)=>this[_0x160c('0x13')](this[_0x160c('0x1a')],_0xb8a0c3,_0x1fa9a4)),_0x1b2d78[_0x160c('0xe')][_0x160c('0x33')]('formatBlock',_0x160c('0x1a'),'join',()=>!0x1);}if(this[_0x160c('0x27')]['plugins'][_0x160c('0x2c')](_0x160c('0x6'))){for(const _0x4af110 of this['tableCellProperties'])_0x1b2d78[_0x160c('0x19')](_0x4af110,(_0x3611da,_0x21bcbe)=>{const _0x2888df=this[_0x160c('0x27')][_0x160c('0x8')][_0x160c('0x7')](_0x160c('0xc'))[_0x160c('0x9')](this[_0x160c('0x27')]['model'][_0x160c('0x4')]['selection']);this[_0x160c('0x2e')](_0x4af110,_0x2888df,this[_0x160c('0x30')],_0x160c('0x30'),_0x3611da,_0x21bcbe);});_0x1b2d78['_suggestionFactory'][_0x160c('0x33')](_0x160c('0x26'),_0x160c('0x30'),_0x160c('0xb'),_0x1b2d78[_0x160c('0xe')][_0x160c('0x15')](_0x160c('0x26'),null,_0x160c('0x32'))),_0x1b2d78[_0x160c('0xe')][_0x160c('0x33')](_0x160c('0x26'),_0x160c('0x30'),_0x160c('0x32'),(_0x3ec836,_0x4d68da)=>this[_0x160c('0x13')](this[_0x160c('0x30')],_0x3ec836,_0x4d68da)),_0x1b2d78[_0x160c('0xe')]['registerCustomCallback'](_0x160c('0x26'),'tableCellProperties',_0x160c('0x36'),()=>!0x1);}_0x1b2d78[_0x160c('0xa')][_0x160c('0x29')](_0x41f9b1=>this[_0x160c('0x17')](_0x41f9b1));}[_0x160c('0x2e')](_0x4b5b7b,_0x2696e0,_0x2b8fba,_0x154c2c,_0x5aa4a7,_0x3c82e4){const _0x2ebc1c=this[_0x160c('0x27')][_0x160c('0x8')][_0x160c('0x7')]('TrackChangesEditing');this[_0x160c('0x27')][_0x160c('0x35')][_0x160c('0xd')](_0x3c82e4[_0x160c('0x2b')],()=>{for(const _0x29b4ad of _0x2696e0){if(this['_getSuggestion'](_0x29b4ad,_0x154c2c))_0x5aa4a7(_0x3c82e4);else{const _0x5c3c25={};for(const _0x53f07f of _0x2b8fba){const _0x203fbb=_0x29b4ad['getAttribute'](_0x53f07f);void 0x0!==_0x203fbb&&(_0x5c3c25[_0x53f07f]=_0x203fbb);}_0x5aa4a7(_0x3c82e4),_0x2ebc1c[_0x160c('0x5')](_0x29b4ad,{'commandParams':[_0x5c3c25]},[],_0x154c2c);}}});}[_0x160c('0x13')](_0xd6d10c,_0x394ae7,_0x25adfc){const _0xc8232e=_0x394ae7[0x0][_0x160c('0x0')][_0x160c('0x16')],_0x4d2381=_0x25adfc[_0x160c('0x34')][0x0];this['editor'][_0x160c('0x35')]['change'](_0x215f0e=>{for(const _0x2a1936 of _0xd6d10c)void 0x0!==_0x4d2381[_0x2a1936]?_0x215f0e['setAttribute'](_0x2a1936,_0x4d2381[_0x2a1936],_0xc8232e):_0x215f0e[_0x160c('0x1f')](_0x2a1936,_0xc8232e);});}[_0x160c('0x17')](_0x3b686c){if(_0x3b686c[_0x160c('0x11')])switch(_0x3b686c[_0x160c('0x1c')]){case _0x160c('0x1a'):return{'type':_0x160c('0x20'),'content':_0x1bff59(this[_0x160c('0x27')]['locale'],'*Format:*\x20change\x20table\x20properties')};case _0x160c('0x30'):return{'type':'format','content':_0x1bff59(this['editor'][_0x160c('0x21')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x160c('0x2')](_0xd9dd94,_0x1a58e9){const _0x4b700f=this[_0x160c('0x27')][_0x160c('0x8')][_0x160c('0x7')](_0x160c('0xf'));for(const _0x205415 of _0x4b700f[_0x160c('0x28')]({'skipNotAttached':!0x0})){const _0xe9a53a=_0x205415[_0x160c('0x23')]();if(_0x205415[_0x160c('0x1c')]===_0x1a58e9&&_0xe9a53a===_0xd9dd94)return _0x205415;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38da=['Template','insertTemplate','has','editor','plugins','afterInit','get'];(function(_0x3b06c0,_0x38daec){const _0x1443be=function(_0x43c21c){while(--_0x43c21c){_0x3b06c0['push'](_0x3b06c0['shift']());}};_0x1443be(++_0x38daec);}(_0x38da,0x15c));const _0x1443=function(_0x3b06c0,_0x38daec){_0x3b06c0=_0x3b06c0-0x0;let _0x1443be=_0x38da[_0x3b06c0];return _0x1443be;};import{Plugin as _0x269175}from'ckeditor5/src/core';export default class bt extends _0x269175{[_0x1443('0x0')](){const _0x1e78d9=this[_0x1443('0x5')];_0x1e78d9[_0x1443('0x6')][_0x1443('0x4')](_0x1443('0x2'))&&_0x1e78d9['plugins'][_0x1443('0x1')]('TrackChangesEditing')['enableCommand'](_0x1443('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f8a=['end','document','ELEMENT_TITLE','_descriptionFactory','createRange','locale','isTouching','editor','getChangedMarkers','updateMarker','element','get','title-content','start','afterInit','schema','Title','plugins','_splitMarkerName','suggestion','differ','getNearestSelectionRange','registerElementLabel','registerPostFixer','from','newRange','isCollapsed','model'];(function(_0x322e76,_0x2f8a80){const _0x3fcd0f=function(_0x970ddd){while(--_0x970ddd){_0x322e76['push'](_0x322e76['shift']());}};_0x3fcd0f(++_0x2f8a80);}(_0x2f8a,0x136));const _0x3fcd=function(_0x322e76,_0x2f8a80){_0x322e76=_0x322e76-0x0;let _0x3fcd0f=_0x2f8a[_0x322e76];return _0x3fcd0f;};import{Plugin as _0x189bf8}from'ckeditor5/src/core';import{getTranslation as _0x11643c}from'../utils/common-translations';export default class It extends _0x189bf8{[_0x3fcd('0xc')](){const _0x19d7bb=this[_0x3fcd('0x5')];if(!_0x19d7bb[_0x3fcd('0xf')]['has'](_0x3fcd('0xe')))return;const _0x7d9fef=_0x19d7bb[_0x3fcd('0xf')][_0x3fcd('0x9')]('TrackChangesEditing');_0x7d9fef[_0x3fcd('0x1')][_0x3fcd('0x14')](_0x3fcd('0xa'),()=>_0x11643c(_0x19d7bb[_0x3fcd('0x3')],_0x3fcd('0x0'))),_0x19d7bb[_0x3fcd('0x19')][_0x3fcd('0x1b')][_0x3fcd('0x15')](_0x52c033=>{let _0x2ce73d=!0x1;const _0x233159=Array[_0x3fcd('0x16')](_0x19d7bb[_0x3fcd('0x19')]['document'][_0x3fcd('0x12')][_0x3fcd('0x6')]());for(const {name:_0x3ea9ac,data:_0x1cd3b7}of _0x233159){const {group:_0x41b0a4}=_0x7d9fef[_0x3fcd('0x10')](_0x3ea9ac);if(_0x3fcd('0x11')!==_0x41b0a4||!_0x1cd3b7[_0x3fcd('0x17')])continue;const _0x29bd96=_0x1cd3b7['newRange'],_0x57e6ff=_0x29bd96[_0x3fcd('0x1a')]['nodeBefore'];if(!_0x57e6ff||!_0x57e6ff['is'](_0x3fcd('0x8'),_0x3fcd('0xa')))continue;if(!_0x29bd96[_0x3fcd('0xb')][_0x3fcd('0x4')](_0x29bd96[_0x3fcd('0x1a')]))continue;const _0x3b4d5a=_0x19d7bb[_0x3fcd('0x19')][_0x3fcd('0xd')][_0x3fcd('0x13')](_0x29bd96['end'],'forward');if(_0x3b4d5a&&_0x3b4d5a[_0x3fcd('0x18')]){const _0x184fe0=_0x52c033[_0x3fcd('0x2')](_0x29bd96[_0x3fcd('0xb')],_0x3b4d5a[_0x3fcd('0xb')]);_0x184fe0['isEqual'](_0x29bd96)||(_0x52c033[_0x3fcd('0x7')](_0x3ea9ac,{'range':_0x184fe0}),_0x2ce73d=!0x0);}_0x2ce73d||(_0x52c033['removeMarker'](_0x3ea9ac),_0x2ce73d=!0x0);}return _0x2ce73d;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47e1=['plugins','editor','has','get','afterInit','undo','redo','TrackChangesEditing','enableCommand','UndoEditing'];(function(_0x2779bc,_0x47e125){const _0x22d781=function(_0x4ac3dc){while(--_0x4ac3dc){_0x2779bc['push'](_0x2779bc['shift']());}};_0x22d781(++_0x47e125);}(_0x47e1,0x109));const _0x22d7=function(_0x2779bc,_0x47e125){_0x2779bc=_0x2779bc-0x0;let _0x22d781=_0x47e1[_0x2779bc];return _0x22d781;};import{Plugin as _0x371c5f}from'ckeditor5/src/core';export default class vt extends _0x371c5f{[_0x22d7('0x9')](){const _0x200db6=this[_0x22d7('0x6')],_0x840b21=_0x200db6[_0x22d7('0x5')][_0x22d7('0x8')](_0x22d7('0x2'));_0x200db6[_0x22d7('0x5')][_0x22d7('0x7')](_0x22d7('0x4'))&&(_0x840b21[_0x22d7('0x3')](_0x22d7('0x0')),_0x840b21[_0x22d7('0x3')](_0x22d7('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cc5=['addClass','insert','previousPosition','span','push','listIndent','item','markerName','includes','createRangeOn','nextSibling','test','bindElementToMarker','TrackChangesEditing','listItem','ck-suggestion-marker-','parent','name','hasAttribute','elementEnd','isAtEnd','writer','type','ck-suggestion-marker--active','element','mapper','getItems','schema','getWalker','isLimit','plugins','get','getCustomProperty','model','start','createUIElement','markerRange'];(function(_0x429192,_0x5cc5f){const _0x11de2c=function(_0x47d6df){while(--_0x47d6df){_0x429192['push'](_0x429192['shift']());}};_0x11de2c(++_0x5cc5f);}(_0x5cc5,0x17b));const _0x11de=function(_0x429192,_0x5cc5f){_0x429192=_0x429192-0x0;let _0x11de2c=_0x5cc5[_0x429192];return _0x11de2c;};export function getRangesWithAttribute(_0x2ca228,_0x3daaa8,_0x5b7912){const _0x4140e4=[];for(const _0x5da0f6 of _0x3daaa8[_0x11de('0x11')]())_0x5da0f6[_0x11de('0x9')](_0x2ca228)&&_0x4140e4[_0x11de('0x20')](_0x5b7912[_0x11de('0x0')](_0x5da0f6));return _0x4140e4;}export function getElementsAffectedByListItemRename(_0x54397d){const _0x22ff48=[];if(_0x54397d['is'](_0x11de('0xf'),_0x11de('0x5'))){let _0x3d33e3=_0x54397d['nextSibling'];for(;_0x3d33e3&&_0x3d33e3['is'](_0x11de('0xf'),_0x11de('0x5'))&&_0x3d33e3['getAttribute'](_0x11de('0x21'))>0x0;)_0x22ff48[_0x11de('0x20')](_0x3d33e3),_0x3d33e3=_0x3d33e3['nextSibling'];}return _0x22ff48;}export function downcastSplitMergeMarker(_0x423c90,_0x4b953a,{showActiveMarker:_0x30fa05=!0x0}={}){const _0x5d50d6=_0x423c90[_0x11de('0x15')][_0x11de('0x16')](_0x11de('0x4'));return(_0x1bca2e,_0x160772,_0x51e5aa)=>{if(!_0x51e5aa['consumable'][_0x11de('0x2')](_0x160772[_0x11de('0x1b')],_0x1bca2e[_0x11de('0x8')]))return;const _0x4a4819=_0x160772[_0x11de('0x1b')][_0x11de('0x13')](),_0x1c1cac=_0x160772[_0x11de('0x1b')][_0x11de('0x19')],_0x1f0c40=_0x423c90[_0x11de('0x18')][_0x11de('0x12')];let _0x1574f2=null,_0x5352db=null,_0x517f9b=!0x1,_0x4ce2d2=!0x1;for(const _0x853ca4 of _0x4a4819){const _0x4423c9=_0x853ca4[_0x11de('0x22')];_0x517f9b=_0x517f9b||_0x1f0c40['isContent'](_0x4423c9);const _0x190109=_0x51e5aa[_0x11de('0x10')]['toViewElement'](_0x4423c9);if(_0x190109&&_0x190109[_0x11de('0x17')]('addHighlight'))return;_0x11de('0xa')==_0x853ca4[_0x11de('0xd')]&&(_0x1f0c40['isBlock'](_0x4423c9)&&!_0x1f0c40[_0x11de('0x14')](_0x4423c9)&&(_0x4423c9[_0x11de('0x1')]||_0x1c1cac[_0x11de('0xb')]?_0x1574f2&&_0x1574f2[_0x11de('0x7')]==_0x4423c9||(_0x1574f2=_0x4423c9,_0x5bbb28(_0x853ca4[_0x11de('0x1e')]),_0x4ce2d2=!0x0):_0x5352db=_0x5352db||_0x853ca4[_0x11de('0x1e')]));}function _0x5bbb28(_0xedf838){const _0x2733cd=_0x51e5aa[_0x11de('0xc')][_0x11de('0x1a')](_0x11de('0x1f'),{'class':_0x11de('0x6')+_0x4b953a}),_0x43c3a0=_0x51e5aa['mapper']['toViewPosition'](_0xedf838);_0x30fa05&&_0x5d50d6['activeMarkers'][_0x11de('0x24')](_0x160772[_0x11de('0x23')])&&_0x51e5aa['writer'][_0x11de('0x1c')](_0x11de('0xe'),_0x2733cd),_0x51e5aa['writer'][_0x11de('0x1d')](_0x43c3a0,_0x2733cd),_0x51e5aa[_0x11de('0x10')][_0x11de('0x3')](_0x2733cd,_0x160772[_0x11de('0x23')]);}_0x517f9b||_0x4ce2d2||!_0x5352db||_0x5bbb28(_0x5352db);};}
|