@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230825.0 → 0.0.0-nightly-20230827.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x545a=['high','includes','getSuggestionCallback','wrap','batch','fill','insertionRanges','options','tableCellBackgroundColor','tablePasteRow','containsRange','nodeAfter','getColumns','getRange','removeColumns','clipboardOutput','has','accept','cell','tablePasteCell','map','createPositionBefore','markMultiRangeInsertion','reduce','filter','attributes','suggestionUnloaded','name','getRowIndexes','insertContent','dataDowncast','oldRange','activeMarkers','getShiftedBy','add','length','createElement','conversion','getChildren','editor','next','tablePasteChainId','author','type','position','get','deletionRanges','getTableIfOnlyTableInContent','getAllAdjacentSuggestions','stop','endRow','getRows','Users','columns','registerPostFixer','getItems','rowInsertionIndexes','ck-suggestion-marker','rows','first','deletion','previous','element','columnInsertionRanges','schema','createTableWalker','for','end','requires','low','isInContent','isEmpty','row','tableCell','differ','join','getAttributes','insert','_getCoordsForCells','previousSibling','return','from','set','forceDefaultExecution','suggestion-td','root','every','push','_suggestionFactory','getMarkers','startsWith','tablePasteColumn','getChangedMarkers','setAttributes','value','hasSuggestion','getSuggestions','getSuggestion','remove','documentSelection','getContainedElement','content','model','discard','markerAttributes','editingDowncast','move','getRanges','cells','createRangeIn','markers','editing','plugins','insertRows','getColumnIndexes','nextSibling','suggestion','commands','markerToHighlight','_splitMarkerName','tableCellSuggestion','listenTo','_isForcedDefaultExecutionBlock','trackChanges','markerName','subType','registerCustomCallback','createRange','afterInit','getChanges','isEqual','tableCellBorderColor','fromEntries','suggestion:formatBlock:tablePasteCell','tableCellHorizontalAlignment','markMultiRangeBlockFormat','insertion','table','tablePaste','removeMarker','getSelectionAffectedTableCells','register','createRangeOn','getChild','paragraph','TableClipboard','document','keys','change','registerDescriptionCallback','*Replace\x20table\x20cells*','last','newRange','locale','findAncestor','formatBlock','ck-suggestion-marker--active'];(function(_0x4a14bc,_0x545a49){const _0x47e8fa=function(_0x46fdfd){while(--_0x46fdfd){_0x4a14bc['push'](_0x4a14bc['shift']());}};_0x47e8fa(++_0x545a49);}(_0x545a,0x19b));const _0x47e8=function(_0x4a14bc,_0x545a49){_0x4a14bc=_0x4a14bc-0x0;let _0x47e8fa=_0x545a[_0x4a14bc];return _0x47e8fa;};import{getTranslation as _0x14b018}from'../utils/common-translations';import{Plugin as _0xc6a820}from'ckeditor5/src/core';import{uid as _0x41e5ee,priorities as _0x50c6ed}from'ckeditor5/src/utils';import _0x123988 from'./table';const le=['tableCellBorderWidth',_0x47e8('0x22'),'tableCellBorderStyle',_0x47e8('0x25'),'tableCellVerticalAlignment',_0x47e8('0x44'),'tableCellPadding'],ae=Object['fromEntries'](le[_0x47e8('0x50')](_0x2c7e69=>[_0x2c7e69,null]));export default class kt extends _0xc6a820{static get[_0x47e8('0x80')](){return[_0x123988];}[_0x47e8('0x1f')](){const _0x501cf0=this[_0x47e8('0x63')];if(!_0x501cf0[_0x47e8('0xf')][_0x47e8('0x4c')]('TableClipboard'))return;const _0x1f93d0=_0x501cf0[_0x47e8('0xf')][_0x47e8('0x69')]('TrackChangesEditing'),_0x3ca7ef=_0x501cf0[_0x47e8('0xf')][_0x47e8('0x69')]('TableUtils'),_0x2b5a3b=_0x501cf0[_0x47e8('0xf')][_0x47e8('0x69')](_0x123988),_0x547183=_0x501cf0[_0x47e8('0xf')][_0x47e8('0x69')](_0x47e8('0x30'));_0x2b5a3b['_tablePostFixingSubtypes'][_0x47e8('0x93')](_0x47e8('0x45'),_0x47e8('0x97')),_0x501cf0[_0x47e8('0x5')][_0x47e8('0x7c')][_0x47e8('0x2c')](_0x47e8('0x17'),{'allowIn':_0x47e8('0x85'),'allowContentOf':_0x47e8('0x85'),'isLimit':!0x0}),_0x501cf0[_0x47e8('0x61')]['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x43ed3b=null;_0x501cf0[_0x47e8('0x5')]['on'](_0x47e8('0x59'),(_0x34dbb8,_0x5aab53)=>{const [_0x35b63a,_0xeb5ad8]=_0x5aab53,_0x109a43=_0x5aab53[_0x5aab53['length']-0x1];_0x109a43&&_0x109a43[_0x47e8('0x8f')]||_0x1f93d0[_0x47e8('0x19')]||this[_0x47e8('0x63')][_0x47e8('0x14')][_0x47e8('0x69')](_0x47e8('0x1a'))[_0x47e8('0x9a')]&&function(_0x2c2cb6,_0x57553d,_0x29d204,_0x202365,_0x1205c2){if(_0x57553d&&!_0x57553d['is'](_0x47e8('0x2')))return!0x1;const _0x208b24=_0x1205c2[_0x47e8('0x6b')](_0x2c2cb6,_0x29d204);if(!_0x208b24||!fe(_0x208b24,void 0x0,_0x202365))return!0x1;const _0x4a7a62=_0x202365[_0x47e8('0x2b')](_0x29d204[_0x47e8('0x31')]['selection']);if(!_0x4a7a62[_0x47e8('0x5f')])return!0x1;const _0x52ad81=_0x4a7a62[0x0][_0x47e8('0x39')](_0x47e8('0x28')),_0x30fcba=_0x202365[_0x47e8('0x58')](_0x4a7a62),_0x5e6019=_0x202365[_0x47e8('0x11')](_0x4a7a62),_0x4ba9a2={'startRow':_0x30fcba[_0x47e8('0x77')],'endRow':_0x30fcba['last'],'startColumn':_0x5e6019[_0x47e8('0x77')],'endColumn':_0x5e6019[_0x47e8('0x36')]};return 0x1==_0x4a7a62[_0x47e8('0x5f')]&&(_0x4ba9a2[_0x47e8('0x6e')]+=_0x202365[_0x47e8('0x6f')](_0x208b24)-0x1,_0x4ba9a2['endColumn']+=_0x202365[_0x47e8('0x48')](_0x208b24)-0x1),fe(_0x52ad81,_0x4ba9a2,_0x202365);}(_0x35b63a,_0xeb5ad8,_0x501cf0[_0x47e8('0x5')],_0x3ca7ef,_0x547183)&&(_0x34dbb8[_0x47e8('0x6d')](),_0x43ed3b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x501cf0[_0x47e8('0x5')]['change'](()=>{_0x501cf0['model']['insertContent'](_0x5aab53[0x0],_0x5aab53[0x1],_0x5aab53[0x2],{'forceDefaultExecution':!0x0});const _0xacff93=_0x41e5ee(),{rowInsertionRanges:_0x39973c,columnInsertionRanges:_0x48ddd8,insertionRanges:_0x2ed44d,deletionRanges:_0x120b20,cells:_0x40f9b8}=_0x43ed3b;_0x39973c[_0x47e8('0x5f')]&&_0x1f93d0['markMultiRangeInsertion'](_0x39973c,'tablePasteRow',{'tablePasteChainId':_0xacff93}),_0x48ddd8[_0x47e8('0x5f')]&&_0x1f93d0[_0x47e8('0x52')](_0x48ddd8,'tablePasteColumn',{'tablePasteChainId':_0xacff93}),_0x2ed44d[_0x47e8('0x5f')]&&_0x1f93d0['markMultiRangeInsertion'](_0x2ed44d,'tablePaste',{'tablePasteChainId':_0xacff93,'skipNestingCheck':!0x0}),_0x120b20[_0x47e8('0x5f')]&&_0x1f93d0['markMultiRangeDeletion'](_0x120b20,'tablePaste',{'tablePasteChainId':_0xacff93,'skipNestingCheck':!0x0});const _0x5ca5ab=_0x1f93d0[_0x47e8('0x26')](_0x40f9b8[_0x47e8('0x50')](({element:_0x198558})=>_0x198558),{'formatGroupId':_0x41e5ee()},[],_0x47e8('0x4f'),{'tablePasteChainId':_0xacff93});if(_0x5ca5ab){const _0x554990=_0x5ca5ab[_0x47e8('0x95')](),_0x404eb2=[];for(const {element:_0x1c750b,attributes:_0x42eae5}of _0x40f9b8){if(!_0x42eae5)continue;const _0x28eaab=_0x501cf0['model']['createRangeOn'](_0x1c750b),_0x5c71eb=_0x554990['find'](_0x5082a2=>_0x5082a2['getRange']()[_0x47e8('0x21')](_0x28eaab));_0x5c71eb&&_0x404eb2[_0x47e8('0x93')]([_0x5c71eb[_0x47e8('0x57')],_0x42eae5]);}_0x404eb2[_0x47e8('0x5f')]&&_0x5ca5ab['setAttribute'](_0x47e8('0x7'),Object[_0x47e8('0x23')](_0x404eb2));}_0x43ed3b=null;}));},{'priority':_0x50c6ed[_0x47e8('0x3c')]+0xa}),_0x501cf0[_0x47e8('0xf')]['get'](_0x47e8('0x30'))['on']('_replaceTableSlotCell',(_0x1e88f6,_0x5b14ff)=>{const [_0x1191d6,_0x506b38,,_0x23bbbc]=_0x5b14ff;if(!_0x43ed3b)return;_0x1e88f6[_0x47e8('0x6d')]();const _0x1fc3d2=_0x1191d6[_0x47e8('0x4e')],_0x4db623=_0x506b38,_0x56770b=ce(_0x1fc3d2),_0x5f97cd=ce(_0x4db623);_0x1e88f6[_0x47e8('0x8c')]=_0x1fc3d2;let _0x579f84=null,_0x37d4c8=null;if(_0x5f97cd||_0x56770b){if(_0x56770b&&!_0x5f97cd){_0x23bbbc[_0x47e8('0x1')](_0x1fc3d2[_0x47e8('0x2e')](0x0));for(const _0x1efe06 of Array[_0x47e8('0x8d')](_0x4db623['getChildren']()))_0x23bbbc['insert'](_0x1efe06,_0x1fc3d2,_0x47e8('0x7f'));const _0x4a3010=_0x43ed3b[_0x47e8('0x74')][_0x47e8('0x3d')](_0x1191d6[_0x47e8('0x84')]),_0x4f9a87=_0x43ed3b['columnInsertionIndexes']['includes'](_0x1191d6['column']);_0x4a3010||_0x4f9a87||(_0x579f84=_0x23bbbc['createRangeIn'](_0x1fc3d2));}else _0x5f97cd&&!_0x56770b&&(_0x37d4c8=_0x23bbbc[_0x47e8('0xc')](_0x1fc3d2));}else{const _0x34729f=_0x23bbbc[_0x47e8('0x60')]('tableCellSuggestion'),_0x201e7c=_0x23bbbc[_0x47e8('0x60')](_0x47e8('0x17'));_0x23bbbc[_0x47e8('0x3f')](_0x23bbbc[_0x47e8('0xc')](_0x1fc3d2),_0x201e7c),_0x23bbbc[_0x47e8('0x89')](_0x34729f,_0x1fc3d2,0x0);for(const _0x26913c of Array[_0x47e8('0x8d')](_0x4db623[_0x47e8('0x62')]()))_0x23bbbc[_0x47e8('0x89')](_0x26913c,_0x34729f,'end');_0x579f84=_0x23bbbc[_0x47e8('0x2d')](_0x34729f),_0x37d4c8=_0x23bbbc[_0x47e8('0x2d')](_0x201e7c);}const _0x38c48c=Array[_0x47e8('0x8d')](_0x4db623[_0x47e8('0x88')]())[_0x47e8('0x54')](([_0x180da4])=>le[_0x47e8('0x3d')](_0x180da4));_0x43ed3b[_0x47e8('0xb')][_0x47e8('0x93')]({'element':_0x1fc3d2,'attributes':_0x38c48c[_0x47e8('0x5f')]?Object[_0x47e8('0x23')](_0x38c48c):null}),_0x579f84&&_0x43ed3b[_0x47e8('0x42')]['push'](_0x579f84),_0x37d4c8&&_0x43ed3b[_0x47e8('0x6a')][_0x47e8('0x93')](_0x37d4c8);},{'priority':'high'}),_0x3ca7ef['on']('insertColumns',(_0x3c9cb2,_0x1832e3)=>{const [_0x435966,_0x28f460={}]=_0x1832e3;if(!_0x43ed3b)return;const _0x480735=_0x28f460['at']||0x0,_0x46f0fe=_0x28f460[_0x47e8('0x71')]||0x1;_0x43ed3b['columnInsertionIndexes']=new Array(_0x46f0fe)[_0x47e8('0x41')](_0x480735)[_0x47e8('0x50')]((_0x1683db,_0x549b1c)=>_0x1683db+_0x549b1c);for(const {cell:_0x1a425e}of _0x3ca7ef[_0x47e8('0x7d')](_0x435966,{'startColumn':_0x480735,'endColumn':_0x480735+_0x46f0fe-0x1}))_0x43ed3b[_0x47e8('0x7b')]['push'](_0x501cf0[_0x47e8('0x5')][_0x47e8('0x2d')](_0x1a425e));},{'priority':'low'}),_0x3ca7ef['on'](_0x47e8('0x10'),(_0x3f51a7,_0x5b7eb0)=>{const [_0x3af9f3,_0x47e5f4={}]=_0x5b7eb0;if(!_0x43ed3b)return;const _0x353e49=_0x47e5f4['at']||0x0,_0x5c17f2=_0x47e5f4[_0x47e8('0x76')]||0x1;_0x43ed3b[_0x47e8('0x74')]=new Array(_0x5c17f2)['fill'](_0x353e49)[_0x47e8('0x50')]((_0x1c2429,_0x35fc59)=>_0x1c2429+_0x35fc59);for(const {cell:_0x1e4ef8}of _0x3ca7ef[_0x47e8('0x7d')](_0x3af9f3,{'startRow':_0x353e49,'endRow':_0x353e49+_0x5c17f2-0x1}))_0x43ed3b['rowInsertionRanges'][_0x47e8('0x93')](_0x501cf0[_0x47e8('0x5')][_0x47e8('0x2d')](_0x1e4ef8));},{'priority':_0x47e8('0x81')}),_0x1f93d0['_descriptionFactory'][_0x47e8('0x34')](_0x135468=>{if(_0x135468[_0x47e8('0x1c')]&&_0x135468[_0x47e8('0x1c')][_0x47e8('0x96')]('tablePaste'))return _0x135468[_0x47e8('0x79')]?{}:{'type':_0x47e8('0x27'),'content':_0x14b018(_0x501cf0[_0x47e8('0x38')],_0x47e8('0x35'))};});const _0x3741dd=()=>{};for(const _0x23bbe1 of[_0x47e8('0x29'),_0x47e8('0x97'),_0x47e8('0x45'),'tablePasteCell'])_0x1f93d0[_0x47e8('0x94')][_0x47e8('0x1d')](_0x47e8('0x27'),_0x23bbe1,'join',_0x3741dd),_0x1f93d0[_0x47e8('0x94')][_0x47e8('0x1d')](_0x47e8('0x78'),_0x23bbe1,_0x47e8('0x87'),_0x3741dd);_0x1f93d0[_0x47e8('0x94')]['registerCustomCallback'](_0x47e8('0x3a'),_0x47e8('0x4f'),_0x47e8('0x6'),_0x3741dd),_0x1f93d0[_0x47e8('0x94')]['registerCustomCallback'](_0x47e8('0x3a'),_0x47e8('0x4f'),_0x47e8('0x4d'),(_0x5dbdd8,_0x46916b,_0x3b79d3)=>{const _0x141d59=_0x5dbdd8[_0x47e8('0x50')](_0x1732c7=>_0x1732c7['getContainedElement']())['filter'](_0x4779f6=>_0x4779f6),_0x3ce536=new Map(_0x141d59[_0x47e8('0x50')](_0x4c020c=>[_0x4c020c,null]));if(_0x43ed3b)for(const {element:_0x189744,attributes:_0x299220}of _0x43ed3b['cells'])_0x299220&&_0x3ce536['set'](_0x189744,_0x299220);else{if(_0x3b79d3&&_0x3b79d3[_0x47e8('0x7')])for(const [_0x2ab001,_0x44f3c0]of Object['entries'](_0x3b79d3[_0x47e8('0x7')])){const _0x409553=_0x501cf0[_0x47e8('0x5')][_0x47e8('0xd')][_0x47e8('0x69')](_0x2ab001),_0x20055f=_0x409553?_0x409553[_0x47e8('0x49')]()[_0x47e8('0x3')]():null;_0x20055f&&_0x3ce536[_0x47e8('0x8e')](_0x20055f,_0x44f3c0);}}_0x501cf0[_0x47e8('0x5')][_0x47e8('0x33')](_0xd2708d=>{for(const [_0x48040c,_0x543d43]of _0x3ce536)_0xd2708d[_0x47e8('0x99')]({...ae,..._0x543d43},_0x48040c);});});const _0x574254=(_0x1d2cf2,_0x344d40)=>{_0x1f93d0[_0x47e8('0x94')][_0x47e8('0x1d')](_0x1d2cf2,_0x47e8('0x29'),_0x344d40,(_0xb260c8,_0xab2e4a,_0x140a2f)=>{_0x501cf0[_0x47e8('0x5')][_0x47e8('0x33')](_0x15360d=>{const _0x2bea41=[];for(const _0x19c601 of _0xb260c8){const _0x431a99=_0x19c601['start'][_0x47e8('0x47')];_0x431a99['is'](_0x47e8('0x7a'),'tableCellSuggestion')&&_0x2bea41[_0x47e8('0x93')](_0x431a99);}_0x1f93d0[_0x47e8('0x94')][_0x47e8('0x3e')](_0x1d2cf2,null,_0x344d40)(_0xb260c8,_0xab2e4a,_0x140a2f);for(const _0xb264bb of _0x2bea41)'$graveyard'!=_0xb264bb[_0x47e8('0x91')]['rootName']&&_0x15360d['unwrap'](_0xb264bb);});});};_0x574254(_0x47e8('0x27'),_0x47e8('0x4d')),_0x574254(_0x47e8('0x27'),'discard'),_0x574254(_0x47e8('0x78'),_0x47e8('0x4d')),_0x574254(_0x47e8('0x78'),_0x47e8('0x6')),_0x1f93d0[_0x47e8('0x94')][_0x47e8('0x1d')](_0x47e8('0x27'),_0x47e8('0x45'),'discard',_0x149855=>{const _0x4cc7fa=_0x149855['map'](_0x4f3576=>_0x4f3576['getContainedElement']()),_0x1050d1=_0x4cc7fa[0x0]['findAncestor'](_0x47e8('0x28')),{minRow:_0x4df88c,maxRow:_0x24d7d5}=_0x2b5a3b['_getCoordsForCells'](_0x4cc7fa);_0x3ca7ef['removeRows'](_0x1050d1,{'at':_0x4df88c,'rows':_0x24d7d5-_0x4df88c+0x1});}),_0x1f93d0[_0x47e8('0x94')]['registerCustomCallback'](_0x47e8('0x27'),'tablePasteColumn',_0x47e8('0x6'),_0x44ef82=>{const _0x5a5e19=_0x44ef82[_0x47e8('0x50')](_0x2d5928=>_0x2d5928[_0x47e8('0x3')]()),_0x2dfaf0=_0x5a5e19[0x0][_0x47e8('0x39')](_0x47e8('0x28')),{minColumn:_0x2ae917,maxColumn:_0x3cb27e}=_0x2b5a3b[_0x47e8('0x8a')](_0x5a5e19);_0x3ca7ef[_0x47e8('0x4a')](_0x2dfaf0,{'at':_0x2ae917,'columns':_0x3cb27e-_0x2ae917+0x1});});const _0x466a3d=(_0xb8d547,_0x1d7bae)=>{if(!_0x1d7bae['subType']||!_0x1d7bae[_0x47e8('0x1c')][_0x47e8('0x96')](_0x47e8('0x29')))return;const _0x26f83d=_0x1d7bae[_0x47e8('0x55')][_0x47e8('0x65')],_0x179610=_0x1f93d0[_0x47e8('0x9c')]()[_0x47e8('0x54')](_0x398502=>_0x398502[_0x47e8('0x82')]&&_0x398502[_0x47e8('0x55')]&&_0x398502[_0x47e8('0x55')][_0x47e8('0x65')]==_0x26f83d);_0x179610[_0x47e8('0x5f')]&&_0x1d7bae[_0x47e8('0x6c')]()[_0x47e8('0x5f')]!=_0x179610[_0x47e8('0x5f')]&&_0x179610[_0x47e8('0x53')]((_0x28e605,_0x2b7083)=>(_0x28e605[_0x47e8('0x64')]=_0x2b7083,_0x2b7083[_0x47e8('0x79')]=_0x28e605,_0x2b7083));};function _0x572a6d(_0x33b3bc,_0x1b3a86=!0x0){const {id:_0x48ef77}=_0x1f93d0['_splitMarkerName'](_0x33b3bc[_0x47e8('0x1b')]),_0x4ca3d8=[_0x47e8('0x75'),'ck-suggestion-marker-insertion'],_0x313ef7=_0x1f93d0[_0x47e8('0x5c')]['includes'](_0x33b3bc[_0x47e8('0x1b')]);return _0x313ef7&&_0x4ca3d8[_0x47e8('0x93')](_0x47e8('0x3b')),{'classes':_0x4ca3d8,'attributes':{'data-suggestion':_0x48ef77},'priority':_0x313ef7&&_0x1b3a86?0xbc2:0xbb8};}_0x1f93d0['on']('suggestionLoaded',_0x466a3d,{'priority':'high'}),_0x1f93d0['on'](_0x47e8('0x56'),_0x466a3d,{'priority':'high'}),_0x501cf0[_0x47e8('0x5')]['document'][_0x47e8('0x72')](()=>{let _0x4528d5=!0x1;const _0x3317fb=Array[_0x47e8('0x8d')](_0x501cf0['model'][_0x47e8('0x31')][_0x47e8('0x86')][_0x47e8('0x98')]());for(const {name:_0x14b7d8,data:_0x1f2735}of _0x3317fb){const {group:_0x6a915a,type:_0x5b2b78,id:_0x9b6af}=_0x1f93d0[_0x47e8('0x16')](_0x14b7d8);if(_0x47e8('0x13')!=_0x6a915a||'deletion'!=_0x5b2b78||_0x1f2735[_0x47e8('0x5b')])continue;if(!_0x1f93d0[_0x47e8('0x9b')](_0x9b6af))continue;const _0x22847c=_0x1f93d0[_0x47e8('0x0')](_0x9b6af)[_0x47e8('0xa')](),_0x127106=_0x501cf0[_0x47e8('0xf')][_0x47e8('0x69')](_0x47e8('0x70'))['me'];for(const _0x2f3f18 of _0x1f93d0[_0x47e8('0x9c')]()){if(!_0x2f3f18[_0x47e8('0x82')]||_0x2f3f18[_0x47e8('0x66')]!=_0x127106)continue;if('formatBlock'!=_0x2f3f18[_0x47e8('0x67')]||_0x47e8('0x4f')!=_0x2f3f18[_0x47e8('0x1c')])continue;if(_0x2f3f18[_0x47e8('0xa')]()[_0x47e8('0x92')](_0x4da56e=>_0x22847c['some'](_0x5db03b=>_0x5db03b[_0x47e8('0x46')](_0x4da56e,!0x0))))for(const _0x27c252 of _0x2f3f18[_0x47e8('0x6c')]())_0x27c252[_0x47e8('0x82')]&&(_0x27c252[_0x47e8('0x6')](),_0x4528d5=!0x0);}}return _0x4528d5;}),_0x501cf0['model'][_0x47e8('0x31')]['registerPostFixer'](_0x3e773d=>{const _0x481301=_0x501cf0[_0x47e8('0x14')][_0x47e8('0x69')]('redo');if(!_0x481301||!_0x481301['_createdBatches'][_0x47e8('0x4c')](_0x3e773d[_0x47e8('0x40')]))return!0x1;let _0x6a18ec=!0x1;const _0x2fb19e=_0x501cf0[_0x47e8('0xf')][_0x47e8('0x69')]('Users')['me'],_0x589e29=_0x501cf0[_0x47e8('0x5')][_0x47e8('0x31')]['differ'][_0x47e8('0x20')](),_0x2ef01a=Array[_0x47e8('0x8d')](_0x501cf0[_0x47e8('0x5')][_0x47e8('0x31')]['differ'][_0x47e8('0x98')]())[_0x47e8('0x54')](({name:_0x5471c6,data:_0x56f52e})=>{const {group:_0x44e118,subType:_0x9391a,authorId:_0x5e8102}=_0x1f93d0[_0x47e8('0x16')](_0x5471c6);return'suggestion'==_0x44e118&&_0x47e8('0x29')==_0x9391a&&_0x5e8102==_0x2fb19e['id']&&!_0x56f52e[_0x47e8('0x5b')];});for(const _0x3e3f6c of _0x589e29){if(_0x47e8('0x89')!=_0x3e3f6c[_0x47e8('0x67')]||_0x47e8('0x17')!=_0x3e3f6c[_0x47e8('0x57')]||0x1!=_0x3e3f6c['length'])continue;const _0x3b60fb=_0x3e773d[_0x47e8('0x1e')](_0x3e3f6c['position'],_0x3e3f6c[_0x47e8('0x68')][_0x47e8('0x5d')](0x1));if(!_0x2ef01a['find'](({data:_0x356409})=>_0x356409[_0x47e8('0x37')][_0x47e8('0x21')](_0x3b60fb)))for(const {name:_0x4f8f91,data:_0xd7095a}of _0x2ef01a)if(_0x3b60fb[_0x47e8('0x46')](_0xd7095a[_0x47e8('0x37')])){_0x3e773d['updateMarker'](_0x4f8f91,{'range':_0x3b60fb}),_0x6a18ec=!0x0;break;}}return _0x6a18ec;}),_0x501cf0['model'][_0x47e8('0x31')]['registerPostFixer'](_0x25c6c9=>{let _0x1d5c16=!0x1;const _0x196523=_0x501cf0[_0x47e8('0xf')][_0x47e8('0x69')]('Users')['me'],_0x49eec3=_0x1f93d0[_0x47e8('0x9c')]()[_0x47e8('0x54')](_0x83212=>_0x83212[_0x47e8('0x82')]&&_0x83212[_0x47e8('0x66')]==_0x196523),_0x32ff72=new Set(),_0x46b1b3=new Set();for(const _0x2f67dd of _0x49eec3)if(_0x47e8('0x29')==_0x2f67dd['subType'])for(const _0x32cfda of _0x2f67dd[_0x47e8('0x95')]()){const _0x44120d=_0x32cfda[_0x47e8('0x49')]()[_0x47e8('0x3')]();if(_0x44120d){if(_0x44120d['is'](_0x47e8('0x7a'),_0x47e8('0x17'))&&ce(_0x44120d)){_0x2f67dd[_0x47e8('0x2a')](_0x32cfda[_0x47e8('0x57')]),_0x32ff72[_0x47e8('0x5e')](_0x44120d),_0x1d5c16=!0x0;const _0x2bda10=_0x44120d[_0x47e8('0x12')],_0x53fcb7=_0x44120d[_0x47e8('0x8b')],_0x2bfe46=_0x2bda10&&_0x2bda10['is'](_0x47e8('0x7a'),_0x47e8('0x17')),_0x16bf7d=_0x53fcb7&&_0x53fcb7['is'](_0x47e8('0x7a'),_0x47e8('0x17'));_0x2bfe46&&!_0x32ff72['has'](_0x2bda10)&&_0x46b1b3['add'](_0x2bda10),_0x16bf7d&&!_0x32ff72[_0x47e8('0x4c')](_0x53fcb7)&&_0x46b1b3[_0x47e8('0x5e')](_0x53fcb7);}else _0x44120d['is'](_0x47e8('0x7a'),_0x47e8('0x2f'))&&_0x44120d[_0x47e8('0x83')]&&(_0x2f67dd[_0x47e8('0x2a')](_0x32cfda[_0x47e8('0x57')]),_0x1d5c16=!0x0);}}else{if(_0x47e8('0x4f')==_0x2f67dd[_0x47e8('0x1c')]){if(!_0x2f67dd['attributes']||!_0x2f67dd['attributes'][_0x47e8('0x65')])continue;const _0x2aefcc=_0x2f67dd['attributes'][_0x47e8('0x7')];if(_0x2aefcc&&Object[_0x47e8('0x32')](_0x2aefcc)[_0x47e8('0x5f')])continue;const _0x40ab17=_0x2f67dd[_0x47e8('0x55')]['tablePasteChainId'];let _0x36effc=!0x0,_0x4f7e61=!0x0;for(const _0x21e0da of _0x49eec3)if(_0x21e0da[_0x47e8('0x1c')]&&_0x21e0da[_0x47e8('0x1c')][_0x47e8('0x96')](_0x47e8('0x29'))){if(!_0x21e0da[_0x47e8('0x55')]['tablePasteChainId']){_0x4f7e61=!0x1;break;}if(_0x21e0da['id']!=_0x2f67dd['id']&&_0x21e0da['attributes'][_0x47e8('0x65')]==_0x40ab17){_0x36effc=!0x1;break;}}_0x4f7e61&&_0x36effc&&(_0x2f67dd['removeMarkers'](),_0x1d5c16=!0x0);}}for(const _0x46d34a of _0x32ff72)_0x25c6c9[_0x47e8('0x1')](_0x46d34a);for(const _0x118fb0 of _0x46b1b3)_0x25c6c9['unwrap'](_0x118fb0);return _0x1d5c16;}),_0x501cf0['conversion']['for'](_0x47e8('0x8'))[_0x47e8('0x15')]({'model':_0x47e8('0x24'),'view':(_0xa701fb,_0x5ae63a)=>_0x572a6d(_0xa701fb),'converterPriority':_0x47e8('0x3c')}),_0x501cf0['conversion'][_0x47e8('0x7e')](_0x47e8('0x5a'))[_0x47e8('0x15')]({'model':_0x47e8('0x24'),'view':(_0x19e8df,_0x21f4fc)=>_0x21f4fc[_0x47e8('0x43')]['showSuggestionHighlights']?_0x572a6d(_0x19e8df,!0x1):null,'converterPriority':'high'});const _0x13f01e=_0x501cf0[_0x47e8('0xe')]['view'];this[_0x47e8('0x18')](_0x13f01e[_0x47e8('0x31')],_0x47e8('0x4b'),(_0x2efcc9,_0x527a30)=>{const _0x49173a=[];for(const _0x11251c of _0x13f01e['createRangeIn'](_0x527a30[_0x47e8('0x4')])[_0x47e8('0x73')]())_0x11251c['is'](_0x47e8('0x7a'),_0x47e8('0x90'))&&_0x49173a[_0x47e8('0x93')](_0x11251c);_0x13f01e[_0x47e8('0x33')](_0x73178f=>{for(const _0x43e53c of _0x49173a)_0x73178f[_0x47e8('0x9')](_0x73178f[_0x47e8('0xc')](_0x43e53c),_0x73178f[_0x47e8('0x51')](_0x43e53c)),_0x73178f['remove'](_0x43e53c);});});}}function ce(_0xe524f5){if(_0xe524f5[_0x47e8('0x83')])return!0x0;const _0xe7d66f=_0xe524f5[_0x47e8('0x2e')](0x0);return _0xe7d66f['is']('element',_0x47e8('0x2f'))&&_0xe7d66f[_0x47e8('0x83')];}function fe(_0x51a46a,_0x4f1f28={},_0x175924){for(const {isAnchor:_0x424a82,cellHeight:_0x1b3c52,cellWidth:_0x5981b4}of _0x175924[_0x47e8('0x7d')](_0x51a46a,{'includeAllSlots':!0x0,..._0x4f1f28}))if(!_0x424a82||0x1!=_0x1b3c52||0x1!=_0x5981b4)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3cc4=['getChildren','selection','endColumn','getRanges','createRange','nodeAfter','createElement','plugins','TableUtils','getRows','cells','commands','_getCoordsForCells','columns','tablePasteRow','deletion','options','locale','deletionRanges','registerCustomCallback','content','getSuggestionCallback','last','isEmpty','newRange','dataDowncast','schema','insertion','removeMarker','row','markerName','startsWith','markMultiRangeBlockFormat','length','_splitMarkerName','$graveyard','getChangedMarkers','getTableIfOnlyTableInContent','suggestion','view','tablePasteChainId','table','setAttributes','next','ck-suggestion-marker-insertion','suggestion:formatBlock:tablePasteCell','tableCellBorderColor','for','getAllAdjacentSuggestions','activeMarkers','end','editingDowncast','change','join','editing','fromEntries','first','insertColumns','TableClipboard','hasSuggestion','forceDefaultExecution','getRange','formatBlock','position','paragraph','_isForcedDefaultExecutionBlock','has','tablePasteColumn','removeRows','createTableWalker','author','insertContent','differ','remove','_replaceTableSlotCell','model','ck-suggestion-marker--active','suggestion-td','element','oldRange','includes','findAncestor','register','rowInsertionIndexes','getSelectionAffectedTableCells','getRowIndexes','get','document','elementToElement','redo','getContainedElement','unwrap','insertionRanges','tablePaste','markerAttributes','type','getColumnIndexes','isInContent','name','add','suggestionLoaded','showSuggestionHighlights','batch','registerPostFixer','requires','rootName','listenTo','find','_descriptionFactory','fill','getMarkers','containsRange','map','afterInit','stop','getColumns','previousSibling','set','attributes','tableCellPadding','getSuggestions','editor','tableCellBorderStyle','clipboardOutput','createRangeIn','accept','rowInsertionRanges','tableCellSuggestion','getSuggestion','createRangeOn','start','reduce','setAttribute','filter','column','high','markerToHighlight','getChild','subType','isEqual','keys','insert','return','getAttributes','previous','tableCellBackgroundColor','_suggestionFactory','discard','conversion','every','markMultiRangeInsertion','columnInsertionRanges','tablePasteCell','push','Users','move','documentSelection','tableCell','endRow','root'];(function(_0x4f6c14,_0x3cc442){const _0x44ef49=function(_0x4111dc){while(--_0x4111dc){_0x4f6c14['push'](_0x4f6c14['shift']());}};_0x44ef49(++_0x3cc442);}(_0x3cc4,0x1b1));const _0x44ef=function(_0x4f6c14,_0x3cc442){_0x4f6c14=_0x4f6c14-0x0;let _0x44ef49=_0x3cc4[_0x4f6c14];return _0x44ef49;};import{getTranslation as _0xb8ca73}from'../utils/common-translations';import{Plugin as _0x59aaaf}from'ckeditor5/src/core';import{uid as _0x339c67,priorities as _0x24d7b4}from'ckeditor5/src/utils';import _0x4c4f6a from'./table';const le=['tableCellBorderWidth',_0x44ef('0x5d'),_0x44ef('0x9'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x44ef('0x20'),_0x44ef('0x6')],ae=Object[_0x44ef('0x66')](le['map'](_0x79b13b=>[_0x79b13b,null]));export default class kt extends _0x59aaaf{static get[_0x44ef('0x97')](){return[_0x4c4f6a];}[_0x44ef('0x0')](){const _0x325541=this[_0x44ef('0x8')];if(!_0x325541['plugins']['has']('TableClipboard'))return;const _0x4fbe1a=_0x325541['plugins'][_0x44ef('0x85')]('TrackChangesEditing'),_0x483d1f=_0x325541['plugins'][_0x44ef('0x85')](_0x44ef('0x37')),_0x3fe309=_0x325541[_0x44ef('0x36')][_0x44ef('0x85')](_0x4c4f6a),_0x1ba4e2=_0x325541[_0x44ef('0x36')][_0x44ef('0x85')](_0x44ef('0x69'));_0x3fe309['_tablePostFixingSubtypes'][_0x44ef('0x28')](_0x44ef('0x3d'),'tablePasteColumn'),_0x325541[_0x44ef('0x7a')][_0x44ef('0x49')][_0x44ef('0x81')](_0x44ef('0xe'),{'allowIn':_0x44ef('0x2c'),'allowContentOf':_0x44ef('0x2c'),'isLimit':!0x0}),_0x325541[_0x44ef('0x23')][_0x44ef('0x87')]({'model':_0x44ef('0xe'),'view':_0x44ef('0x7c')});let _0x2128fa=null;_0x325541[_0x44ef('0x7a')]['on']('insertContent',(_0x518430,_0x3aae15)=>{const [_0x337326,_0x3629b8]=_0x3aae15,_0x43d822=_0x3aae15[_0x3aae15['length']-0x1];_0x43d822&&_0x43d822[_0x44ef('0x6b')]||_0x4fbe1a[_0x44ef('0x70')]||this['editor'][_0x44ef('0x3a')][_0x44ef('0x85')]('trackChanges')['value']&&function(_0x32fac3,_0x9c7854,_0x4fd0b3,_0x5f3481,_0x2c1731){if(_0x9c7854&&!_0x9c7854['is'](_0x44ef('0x2b')))return!0x1;const _0x1acad6=_0x2c1731[_0x44ef('0x54')](_0x32fac3,_0x4fd0b3);if(!_0x1acad6||!fe(_0x1acad6,void 0x0,_0x5f3481))return!0x1;const _0x31aafc=_0x5f3481[_0x44ef('0x83')](_0x4fd0b3[_0x44ef('0x86')][_0x44ef('0x30')]);if(!_0x31aafc['length'])return!0x1;const _0x16ad9c=_0x31aafc[0x0]['findAncestor'](_0x44ef('0x58')),_0x453b5a=_0x5f3481[_0x44ef('0x84')](_0x31aafc),_0xee3aeb=_0x5f3481[_0x44ef('0x8f')](_0x31aafc),_0x4e973d={'startRow':_0x453b5a[_0x44ef('0x67')],'endRow':_0x453b5a['last'],'startColumn':_0xee3aeb[_0x44ef('0x67')],'endColumn':_0xee3aeb[_0x44ef('0x45')]};return 0x1==_0x31aafc[_0x44ef('0x50')]&&(_0x4e973d[_0x44ef('0x2d')]+=_0x5f3481[_0x44ef('0x38')](_0x1acad6)-0x1,_0x4e973d[_0x44ef('0x31')]+=_0x5f3481[_0x44ef('0x2')](_0x1acad6)-0x1),fe(_0x16ad9c,_0x4e973d,_0x5f3481);}(_0x337326,_0x3629b8,_0x325541['model'],_0x483d1f,_0x1ba4e2)&&(_0x518430[_0x44ef('0x1')](),_0x2128fa={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x325541[_0x44ef('0x7a')][_0x44ef('0x63')](()=>{_0x325541[_0x44ef('0x7a')][_0x44ef('0x76')](_0x3aae15[0x0],_0x3aae15[0x1],_0x3aae15[0x2],{'forceDefaultExecution':!0x0});const _0x16de3c=_0x339c67(),{rowInsertionRanges:_0xc1350,columnInsertionRanges:_0x1b7a23,insertionRanges:_0x563712,deletionRanges:_0x3678c7,cells:_0x4eef24}=_0x2128fa;_0xc1350[_0x44ef('0x50')]&&_0x4fbe1a[_0x44ef('0x25')](_0xc1350,_0x44ef('0x3d'),{'tablePasteChainId':_0x16de3c}),_0x1b7a23[_0x44ef('0x50')]&&_0x4fbe1a[_0x44ef('0x25')](_0x1b7a23,_0x44ef('0x72'),{'tablePasteChainId':_0x16de3c}),_0x563712['length']&&_0x4fbe1a[_0x44ef('0x25')](_0x563712,_0x44ef('0x8c'),{'tablePasteChainId':_0x16de3c,'skipNestingCheck':!0x0}),_0x3678c7[_0x44ef('0x50')]&&_0x4fbe1a['markMultiRangeDeletion'](_0x3678c7,'tablePaste',{'tablePasteChainId':_0x16de3c,'skipNestingCheck':!0x0});const _0x4d4366=_0x4fbe1a[_0x44ef('0x4f')](_0x4eef24[_0x44ef('0x9f')](({element:_0x4ccffb})=>_0x4ccffb),{'formatGroupId':_0x339c67()},[],'tablePasteCell',{'tablePasteChainId':_0x16de3c});if(_0x4d4366){const _0x438f13=_0x4d4366[_0x44ef('0x9d')](),_0x2fd229=[];for(const {element:_0x258411,attributes:_0x4b1cf9}of _0x4eef24){if(!_0x4b1cf9)continue;const _0x420108=_0x325541[_0x44ef('0x7a')]['createRangeOn'](_0x258411),_0x4c2302=_0x438f13[_0x44ef('0x9a')](_0xad0860=>_0xad0860[_0x44ef('0x6c')]()[_0x44ef('0x1a')](_0x420108));_0x4c2302&&_0x2fd229[_0x44ef('0x28')]([_0x4c2302[_0x44ef('0x91')],_0x4b1cf9]);}_0x2fd229[_0x44ef('0x50')]&&_0x4d4366[_0x44ef('0x13')](_0x44ef('0x8d'),Object[_0x44ef('0x66')](_0x2fd229));}_0x2128fa=null;}));},{'priority':_0x24d7b4[_0x44ef('0x16')]+0xa}),_0x325541[_0x44ef('0x36')]['get'](_0x44ef('0x69'))['on'](_0x44ef('0x79'),(_0x583065,_0x2cb1cc)=>{const [_0x321115,_0x150dd2,,_0xfe1747]=_0x2cb1cc;if(!_0x2128fa)return;_0x583065['stop']();const _0x49d1f9=_0x321115['cell'],_0x4f8944=_0x150dd2,_0x5dad55=ce(_0x49d1f9),_0x3f12de=ce(_0x4f8944);_0x583065[_0x44ef('0x1d')]=_0x49d1f9;let _0x22c25f=null,_0x2805f0=null;if(_0x3f12de||_0x5dad55){if(_0x5dad55&&!_0x3f12de){_0xfe1747['remove'](_0x49d1f9[_0x44ef('0x18')](0x0));for(const _0x23d960 of Array['from'](_0x4f8944[_0x44ef('0x2f')]()))_0xfe1747[_0x44ef('0x1c')](_0x23d960,_0x49d1f9,'end');const _0x21ae8a=_0x2128fa[_0x44ef('0x82')]['includes'](_0x321115[_0x44ef('0x4c')]),_0x1bbe34=_0x2128fa['columnInsertionIndexes'][_0x44ef('0x7f')](_0x321115[_0x44ef('0x15')]);_0x21ae8a||_0x1bbe34||(_0x22c25f=_0xfe1747[_0x44ef('0xb')](_0x49d1f9));}else _0x3f12de&&!_0x5dad55&&(_0x2805f0=_0xfe1747[_0x44ef('0xb')](_0x49d1f9));}else{const _0x18da22=_0xfe1747[_0x44ef('0x35')]('tableCellSuggestion'),_0x5ac908=_0xfe1747[_0x44ef('0x35')](_0x44ef('0xe'));_0xfe1747['wrap'](_0xfe1747[_0x44ef('0xb')](_0x49d1f9),_0x5ac908),_0xfe1747['insert'](_0x18da22,_0x49d1f9,0x0);for(const _0x1b22e8 of Array['from'](_0x4f8944['getChildren']()))_0xfe1747[_0x44ef('0x1c')](_0x1b22e8,_0x18da22,_0x44ef('0x61'));_0x22c25f=_0xfe1747[_0x44ef('0x10')](_0x18da22),_0x2805f0=_0xfe1747[_0x44ef('0x10')](_0x5ac908);}const _0x5065d3=Array['from'](_0x4f8944[_0x44ef('0x1e')]())[_0x44ef('0x14')](([_0x48c39a])=>le['includes'](_0x48c39a));_0x2128fa[_0x44ef('0x39')]['push']({'element':_0x49d1f9,'attributes':_0x5065d3['length']?Object[_0x44ef('0x66')](_0x5065d3):null}),_0x22c25f&&_0x2128fa[_0x44ef('0x8b')][_0x44ef('0x28')](_0x22c25f),_0x2805f0&&_0x2128fa[_0x44ef('0x41')][_0x44ef('0x28')](_0x2805f0);},{'priority':_0x44ef('0x16')}),_0x483d1f['on'](_0x44ef('0x68'),(_0x531d09,_0x403699)=>{const [_0x3217b7,_0x48ffe2={}]=_0x403699;if(!_0x2128fa)return;const _0x4bfecf=_0x48ffe2['at']||0x0,_0x44b8b4=_0x48ffe2[_0x44ef('0x3c')]||0x1;_0x2128fa['columnInsertionIndexes']=new Array(_0x44b8b4)['fill'](_0x4bfecf)[_0x44ef('0x9f')]((_0x326f49,_0x19c40a)=>_0x326f49+_0x19c40a);for(const {cell:_0x40c4de}of _0x483d1f[_0x44ef('0x74')](_0x3217b7,{'startColumn':_0x4bfecf,'endColumn':_0x4bfecf+_0x44b8b4-0x1}))_0x2128fa[_0x44ef('0x26')][_0x44ef('0x28')](_0x325541['model'][_0x44ef('0x10')](_0x40c4de));},{'priority':'low'}),_0x483d1f['on']('insertRows',(_0x402792,_0x288b0b)=>{const [_0x4af727,_0x3868ab={}]=_0x288b0b;if(!_0x2128fa)return;const _0x5132a5=_0x3868ab['at']||0x0,_0x480b37=_0x3868ab['rows']||0x1;_0x2128fa[_0x44ef('0x82')]=new Array(_0x480b37)[_0x44ef('0x9c')](_0x5132a5)[_0x44ef('0x9f')]((_0x5cc3a9,_0xb5e981)=>_0x5cc3a9+_0xb5e981);for(const {cell:_0x2e8d90}of _0x483d1f[_0x44ef('0x74')](_0x4af727,{'startRow':_0x5132a5,'endRow':_0x5132a5+_0x480b37-0x1}))_0x2128fa[_0x44ef('0xd')][_0x44ef('0x28')](_0x325541[_0x44ef('0x7a')][_0x44ef('0x10')](_0x2e8d90));},{'priority':'low'}),_0x4fbe1a[_0x44ef('0x9b')]['registerDescriptionCallback'](_0x137a92=>{if(_0x137a92[_0x44ef('0x19')]&&_0x137a92['subType'][_0x44ef('0x4e')]('tablePaste'))return _0x137a92['previous']?{}:{'type':_0x44ef('0x4a'),'content':_0xb8ca73(_0x325541[_0x44ef('0x40')],'*Replace\x20table\x20cells*')};});const _0x553209=()=>{};for(const _0x464403 of['tablePaste',_0x44ef('0x72'),_0x44ef('0x3d'),_0x44ef('0x27')])_0x4fbe1a[_0x44ef('0x21')]['registerCustomCallback'](_0x44ef('0x4a'),_0x464403,_0x44ef('0x64'),_0x553209),_0x4fbe1a['_suggestionFactory'][_0x44ef('0x42')](_0x44ef('0x3e'),_0x464403,_0x44ef('0x64'),_0x553209);_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')](_0x44ef('0x6d'),_0x44ef('0x27'),_0x44ef('0x22'),_0x553209),_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')]('formatBlock',_0x44ef('0x27'),_0x44ef('0xc'),(_0xb32d7c,_0x5575df,_0x54a7a7)=>{const _0x1c307e=_0xb32d7c['map'](_0x530110=>_0x530110[_0x44ef('0x89')]())[_0x44ef('0x14')](_0xd0bf76=>_0xd0bf76),_0x22cdda=new Map(_0x1c307e[_0x44ef('0x9f')](_0x2e1d88=>[_0x2e1d88,null]));if(_0x2128fa)for(const {element:_0x4407e6,attributes:_0x3c4ea3}of _0x2128fa[_0x44ef('0x39')])_0x3c4ea3&&_0x22cdda[_0x44ef('0x4')](_0x4407e6,_0x3c4ea3);else{if(_0x54a7a7&&_0x54a7a7['markerAttributes'])for(const [_0x2008f1,_0x32d6c3]of Object['entries'](_0x54a7a7['markerAttributes'])){const _0x461da8=_0x325541[_0x44ef('0x7a')]['markers'][_0x44ef('0x85')](_0x2008f1),_0x146fee=_0x461da8?_0x461da8[_0x44ef('0x6c')]()[_0x44ef('0x89')]():null;_0x146fee&&_0x22cdda[_0x44ef('0x4')](_0x146fee,_0x32d6c3);}}_0x325541[_0x44ef('0x7a')][_0x44ef('0x63')](_0x46ab0a=>{for(const [_0x5068d3,_0x3d87e4]of _0x22cdda)_0x46ab0a[_0x44ef('0x59')]({...ae,..._0x3d87e4},_0x5068d3);});});const _0x1d65a9=(_0x5a5869,_0x32e419)=>{_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')](_0x5a5869,_0x44ef('0x8c'),_0x32e419,(_0x59df04,_0x2b50e2,_0x47d915)=>{_0x325541[_0x44ef('0x7a')][_0x44ef('0x63')](_0x417c83=>{const _0x58caea=[];for(const _0x46d34a of _0x59df04){const _0x4fa86a=_0x46d34a[_0x44ef('0x11')][_0x44ef('0x34')];_0x4fa86a['is'](_0x44ef('0x7d'),_0x44ef('0xe'))&&_0x58caea[_0x44ef('0x28')](_0x4fa86a);}_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x44')](_0x5a5869,null,_0x32e419)(_0x59df04,_0x2b50e2,_0x47d915);for(const _0x3e4c01 of _0x58caea)_0x44ef('0x52')!=_0x3e4c01[_0x44ef('0x2e')][_0x44ef('0x98')]&&_0x417c83[_0x44ef('0x8a')](_0x3e4c01);});});};_0x1d65a9(_0x44ef('0x4a'),'accept'),_0x1d65a9(_0x44ef('0x4a'),_0x44ef('0x22')),_0x1d65a9(_0x44ef('0x3e'),_0x44ef('0xc')),_0x1d65a9(_0x44ef('0x3e'),'discard'),_0x4fbe1a[_0x44ef('0x21')][_0x44ef('0x42')](_0x44ef('0x4a'),_0x44ef('0x3d'),_0x44ef('0x22'),_0x476037=>{const _0x263194=_0x476037[_0x44ef('0x9f')](_0x387f5d=>_0x387f5d[_0x44ef('0x89')]()),_0x3e7022=_0x263194[0x0]['findAncestor'](_0x44ef('0x58')),{minRow:_0x5b253e,maxRow:_0x37f4c9}=_0x3fe309[_0x44ef('0x3b')](_0x263194);_0x483d1f[_0x44ef('0x73')](_0x3e7022,{'at':_0x5b253e,'rows':_0x37f4c9-_0x5b253e+0x1});}),_0x4fbe1a['_suggestionFactory'][_0x44ef('0x42')]('insertion',_0x44ef('0x72'),_0x44ef('0x22'),_0x158620=>{const _0x349ea5=_0x158620[_0x44ef('0x9f')](_0x41b901=>_0x41b901[_0x44ef('0x89')]()),_0x17694a=_0x349ea5[0x0][_0x44ef('0x80')](_0x44ef('0x58')),{minColumn:_0x556d45,maxColumn:_0xef3b9b}=_0x3fe309[_0x44ef('0x3b')](_0x349ea5);_0x483d1f['removeColumns'](_0x17694a,{'at':_0x556d45,'columns':_0xef3b9b-_0x556d45+0x1});});const _0x44e124=(_0x1d44da,_0x3cd8ec)=>{if(!_0x3cd8ec[_0x44ef('0x19')]||!_0x3cd8ec[_0x44ef('0x19')][_0x44ef('0x4e')](_0x44ef('0x8c')))return;const _0x34eeb4=_0x3cd8ec[_0x44ef('0x5')][_0x44ef('0x57')],_0x4f9694=_0x4fbe1a[_0x44ef('0x7')]()['filter'](_0x4ecbc4=>_0x4ecbc4[_0x44ef('0x90')]&&_0x4ecbc4[_0x44ef('0x5')]&&_0x4ecbc4['attributes'][_0x44ef('0x57')]==_0x34eeb4);_0x4f9694['length']&&_0x3cd8ec[_0x44ef('0x5f')]()['length']!=_0x4f9694[_0x44ef('0x50')]&&_0x4f9694[_0x44ef('0x12')]((_0x250785,_0x26adff)=>(_0x250785[_0x44ef('0x5a')]=_0x26adff,_0x26adff[_0x44ef('0x1f')]=_0x250785,_0x26adff));};function _0x52aa9e(_0x554622,_0x57bfaa=!0x0){const {id:_0x32b34b}=_0x4fbe1a[_0x44ef('0x51')](_0x554622[_0x44ef('0x4d')]),_0x2bbd27=['ck-suggestion-marker',_0x44ef('0x5b')],_0x3cdfe0=_0x4fbe1a[_0x44ef('0x60')][_0x44ef('0x7f')](_0x554622[_0x44ef('0x4d')]);return _0x3cdfe0&&_0x2bbd27['push'](_0x44ef('0x7b')),{'classes':_0x2bbd27,'attributes':{'data-suggestion':_0x32b34b},'priority':_0x3cdfe0&&_0x57bfaa?0xbc2:0xbb8};}_0x4fbe1a['on'](_0x44ef('0x93'),_0x44e124,{'priority':_0x44ef('0x16')}),_0x4fbe1a['on']('suggestionUnloaded',_0x44e124,{'priority':_0x44ef('0x16')}),_0x325541[_0x44ef('0x7a')][_0x44ef('0x86')][_0x44ef('0x96')](()=>{let _0x285f0c=!0x1;const _0x395dce=Array['from'](_0x325541[_0x44ef('0x7a')][_0x44ef('0x86')][_0x44ef('0x77')][_0x44ef('0x53')]());for(const {name:_0x234dd5,data:_0x53c2e0}of _0x395dce){const {group:_0x3a3083,type:_0x1b0c71,id:_0x126dfb}=_0x4fbe1a[_0x44ef('0x51')](_0x234dd5);if(_0x44ef('0x55')!=_0x3a3083||'deletion'!=_0x1b0c71||_0x53c2e0[_0x44ef('0x7e')])continue;if(!_0x4fbe1a[_0x44ef('0x6a')](_0x126dfb))continue;const _0x423ddd=_0x4fbe1a[_0x44ef('0xf')](_0x126dfb)[_0x44ef('0x32')](),_0x25846d=_0x325541[_0x44ef('0x36')]['get'](_0x44ef('0x29'))['me'];for(const _0x2f8467 of _0x4fbe1a['getSuggestions']()){if(!_0x2f8467[_0x44ef('0x90')]||_0x2f8467[_0x44ef('0x75')]!=_0x25846d)continue;if(_0x44ef('0x6d')!=_0x2f8467[_0x44ef('0x8e')]||_0x44ef('0x27')!=_0x2f8467[_0x44ef('0x19')])continue;if(_0x2f8467['getRanges']()[_0x44ef('0x24')](_0xd7a619=>_0x423ddd['some'](_0x3cd272=>_0x3cd272['containsRange'](_0xd7a619,!0x0))))for(const _0x5017fb of _0x2f8467[_0x44ef('0x5f')]())_0x5017fb[_0x44ef('0x90')]&&(_0x5017fb[_0x44ef('0x22')](),_0x285f0c=!0x0);}}return _0x285f0c;}),_0x325541[_0x44ef('0x7a')]['document'][_0x44ef('0x96')](_0x167b49=>{const _0x546f29=_0x325541['commands'][_0x44ef('0x85')](_0x44ef('0x88'));if(!_0x546f29||!_0x546f29['_createdBatches'][_0x44ef('0x71')](_0x167b49[_0x44ef('0x95')]))return!0x1;let _0x250993=!0x1;const _0x45e427=_0x325541['plugins'][_0x44ef('0x85')](_0x44ef('0x29'))['me'],_0x39d4d7=_0x325541['model'][_0x44ef('0x86')][_0x44ef('0x77')]['getChanges'](),_0x42d7e8=Array['from'](_0x325541[_0x44ef('0x7a')][_0x44ef('0x86')]['differ']['getChangedMarkers']())[_0x44ef('0x14')](({name:_0x38de11,data:_0x178b57})=>{const {group:_0x331ffc,subType:_0x428dbb,authorId:_0x50f509}=_0x4fbe1a[_0x44ef('0x51')](_0x38de11);return _0x44ef('0x55')==_0x331ffc&&'tablePaste'==_0x428dbb&&_0x50f509==_0x45e427['id']&&!_0x178b57[_0x44ef('0x7e')];});for(const _0x438268 of _0x39d4d7){if(_0x44ef('0x1c')!=_0x438268[_0x44ef('0x8e')]||_0x44ef('0xe')!=_0x438268[_0x44ef('0x91')]||0x1!=_0x438268['length'])continue;const _0x20d2b7=_0x167b49[_0x44ef('0x33')](_0x438268[_0x44ef('0x6e')],_0x438268['position']['getShiftedBy'](0x1));if(!_0x42d7e8['find'](({data:_0x476658})=>_0x476658[_0x44ef('0x47')][_0x44ef('0x1a')](_0x20d2b7)))for(const {name:_0x2b5c6e,data:_0x1f0ee9}of _0x42d7e8)if(_0x20d2b7[_0x44ef('0x9e')](_0x1f0ee9['newRange'])){_0x167b49['updateMarker'](_0x2b5c6e,{'range':_0x20d2b7}),_0x250993=!0x0;break;}}return _0x250993;}),_0x325541['model'][_0x44ef('0x86')][_0x44ef('0x96')](_0xda7546=>{let _0x4bef5d=!0x1;const _0x59c660=_0x325541[_0x44ef('0x36')]['get']('Users')['me'],_0xc59cd2=_0x4fbe1a[_0x44ef('0x7')]()['filter'](_0x2f3682=>_0x2f3682['isInContent']&&_0x2f3682[_0x44ef('0x75')]==_0x59c660),_0x5a7678=new Set(),_0x177ba5=new Set();for(const _0xa31d3d of _0xc59cd2)if(_0x44ef('0x8c')==_0xa31d3d[_0x44ef('0x19')])for(const _0x30a975 of _0xa31d3d[_0x44ef('0x9d')]()){const _0x3e8adf=_0x30a975['getRange']()[_0x44ef('0x89')]();if(_0x3e8adf){if(_0x3e8adf['is'](_0x44ef('0x7d'),_0x44ef('0xe'))&&ce(_0x3e8adf)){_0xa31d3d[_0x44ef('0x4b')](_0x30a975[_0x44ef('0x91')]),_0x5a7678['add'](_0x3e8adf),_0x4bef5d=!0x0;const _0x1b96ce=_0x3e8adf['nextSibling'],_0x4b9742=_0x3e8adf[_0x44ef('0x3')],_0x36ca94=_0x1b96ce&&_0x1b96ce['is'](_0x44ef('0x7d'),'tableCellSuggestion'),_0x3d8775=_0x4b9742&&_0x4b9742['is'](_0x44ef('0x7d'),_0x44ef('0xe'));_0x36ca94&&!_0x5a7678[_0x44ef('0x71')](_0x1b96ce)&&_0x177ba5['add'](_0x1b96ce),_0x3d8775&&!_0x5a7678['has'](_0x4b9742)&&_0x177ba5[_0x44ef('0x92')](_0x4b9742);}else _0x3e8adf['is'](_0x44ef('0x7d'),_0x44ef('0x6f'))&&_0x3e8adf['isEmpty']&&(_0xa31d3d['removeMarker'](_0x30a975[_0x44ef('0x91')]),_0x4bef5d=!0x0);}}else{if('tablePasteCell'==_0xa31d3d[_0x44ef('0x19')]){if(!_0xa31d3d[_0x44ef('0x5')]||!_0xa31d3d[_0x44ef('0x5')][_0x44ef('0x57')])continue;const _0x2612dc=_0xa31d3d[_0x44ef('0x5')][_0x44ef('0x8d')];if(_0x2612dc&&Object[_0x44ef('0x1b')](_0x2612dc)[_0x44ef('0x50')])continue;const _0x13a444=_0xa31d3d[_0x44ef('0x5')][_0x44ef('0x57')];let _0x3f3a0e=!0x0,_0x144f6c=!0x0;for(const _0x45858e of _0xc59cd2)if(_0x45858e['subType']&&_0x45858e[_0x44ef('0x19')][_0x44ef('0x4e')](_0x44ef('0x8c'))){if(!_0x45858e[_0x44ef('0x5')][_0x44ef('0x57')]){_0x144f6c=!0x1;break;}if(_0x45858e['id']!=_0xa31d3d['id']&&_0x45858e[_0x44ef('0x5')][_0x44ef('0x57')]==_0x13a444){_0x3f3a0e=!0x1;break;}}_0x144f6c&&_0x3f3a0e&&(_0xa31d3d['removeMarkers'](),_0x4bef5d=!0x0);}}for(const _0x2b0611 of _0x5a7678)_0xda7546[_0x44ef('0x78')](_0x2b0611);for(const _0x1a0630 of _0x177ba5)_0xda7546[_0x44ef('0x8a')](_0x1a0630);return _0x4bef5d;}),_0x325541[_0x44ef('0x23')]['for'](_0x44ef('0x62'))[_0x44ef('0x17')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c844c,_0x1fb2e1)=>_0x52aa9e(_0x2c844c),'converterPriority':'high'}),_0x325541['conversion'][_0x44ef('0x5e')](_0x44ef('0x48'))[_0x44ef('0x17')]({'model':_0x44ef('0x5c'),'view':(_0x4288b3,_0x1372b6)=>_0x1372b6[_0x44ef('0x3f')][_0x44ef('0x94')]?_0x52aa9e(_0x4288b3,!0x1):null,'converterPriority':_0x44ef('0x16')});const _0x561570=_0x325541[_0x44ef('0x65')][_0x44ef('0x56')];this[_0x44ef('0x99')](_0x561570[_0x44ef('0x86')],_0x44ef('0xa'),(_0x574fb9,_0x52c3c9)=>{const _0x35c4a0=[];for(const _0xe17daa of _0x561570[_0x44ef('0xb')](_0x52c3c9[_0x44ef('0x43')])['getItems']())_0xe17daa['is'](_0x44ef('0x7d'),_0x44ef('0x7c'))&&_0x35c4a0[_0x44ef('0x28')](_0xe17daa);_0x561570[_0x44ef('0x63')](_0x4c6acc=>{for(const _0x4808c8 of _0x35c4a0)_0x4c6acc[_0x44ef('0x2a')](_0x4c6acc[_0x44ef('0xb')](_0x4808c8),_0x4c6acc['createPositionBefore'](_0x4808c8)),_0x4c6acc[_0x44ef('0x78')](_0x4808c8);});});}}function ce(_0x53b8b9){if(_0x53b8b9[_0x44ef('0x46')])return!0x0;const _0x1dc368=_0x53b8b9[_0x44ef('0x18')](0x0);return _0x1dc368['is'](_0x44ef('0x7d'),_0x44ef('0x6f'))&&_0x1dc368[_0x44ef('0x46')];}function fe(_0x1a361d,_0x16c6b2={},_0x8e3cd8){for(const {isAnchor:_0x58d8fa,cellHeight:_0x200707,cellWidth:_0x28cbcb}of _0x8e3cd8[_0x44ef('0x74')](_0x1a361d,{'includeAllSlots':!0x0,..._0x16c6b2}))if(!_0x58d8fa||0x1!=_0x200707||0x1!=_0x28cbcb)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5568=['get','formatBlock','getSuggestionCallback','resizeTableWidth','model','_suggestionFactory','discard','handleResizeTableWidthCommand','tableWidth','columnWidths','enableCommand','registerCustomCallback','getColumnGroupElement','plugins','resizeColumnWidths','locale','editor','subType','Users','getAttribute','handleSuggestionDescription','bind','getSuggestions','getSelectedElement','document','registerDescriptionCallback','selection','change','TrackChangesEditing','getContainedElement','TableColumnResizeEditing','resizeTable','getTableColumnsWidths'];(function(_0x182c8d,_0x556832){const _0x38cc10=function(_0x4a6bba){while(--_0x4a6bba){_0x182c8d['push'](_0x182c8d['shift']());}};_0x38cc10(++_0x556832);}(_0x5568,0xc9));const _0x38cc=function(_0x182c8d,_0x556832){_0x182c8d=_0x182c8d-0x0;let _0x38cc10=_0x5568[_0x182c8d];return _0x38cc10;};import{Plugin as _0x4001e7}from'ckeditor5/src/core';import{getTranslation as _0x355f65}from'../utils/common-translations';export default class wt extends _0x4001e7{['afterInit'](){if(!this[_0x38cc('0xd')][_0x38cc('0xa')]['has'](_0x38cc('0x1b')))return;const _0x3c0818=this[_0x38cc('0xd')][_0x38cc('0xa')]['get'](_0x38cc('0x19'));_0x3c0818[_0x38cc('0x7')](_0x38cc('0x0'),this[_0x38cc('0x4')][_0x38cc('0x12')](this)),_0x3c0818['enableCommand'](_0x38cc('0xb'),this[_0x38cc('0x4')][_0x38cc('0x12')](this)),_0x3c0818[_0x38cc('0x2')][_0x38cc('0x8')]('formatBlock',_0x38cc('0x1c'),'accept',_0x3c0818[_0x38cc('0x2')][_0x38cc('0x20')](_0x38cc('0x1f'),null,_0x38cc('0x3'))),_0x3c0818['_suggestionFactory'][_0x38cc('0x8')](_0x38cc('0x1f'),_0x38cc('0x1c'),'discard',_0x3c0818[_0x38cc('0x2')][_0x38cc('0x20')]('formatBlock',null,'accept')),_0x3c0818['_descriptionFactory'][_0x38cc('0x16')](this[_0x38cc('0x11')][_0x38cc('0x12')](this));}[_0x38cc('0x4')](_0x129574,_0x4d3795){const _0x503af3=this[_0x38cc('0xd')][_0x38cc('0xa')][_0x38cc('0x1e')]('TrackChangesEditing'),_0x400bc3=this[_0x38cc('0xd')][_0x38cc('0xa')][_0x38cc('0x1e')]('TableColumnResizeEditing'),_0x38e924=_0x4d3795['table']||this[_0x38cc('0xd')][_0x38cc('0x1')][_0x38cc('0x15')][_0x38cc('0x17')][_0x38cc('0x14')]();this[_0x38cc('0xd')][_0x38cc('0x1')][_0x38cc('0x18')](()=>{const _0x37cce7=_0x400bc3[_0x38cc('0x9')](_0x38e924);let _0x3caec1=_0x37cce7?_0x400bc3[_0x38cc('0x1d')](_0x37cce7):null,_0x3e7908=_0x38e924[_0x38cc('0x10')]('tableWidth')||null;const _0x3832f1=_0x4d3795[_0x38cc('0x5')]||_0x3e7908,_0x27a82a=_0x4d3795[_0x38cc('0x6')]||_0x3caec1,_0x3fd706=this['editor']['plugins'][_0x38cc('0x1e')](_0x38cc('0xf'))['me'];for(const _0x2663e4 of _0x503af3[_0x38cc('0x13')]()){const _0x3afe90=_0x2663e4[_0x38cc('0x1a')]();if(_0x38cc('0x1c')===_0x2663e4[_0x38cc('0xe')]&&_0x3afe90===_0x38e924){_0x2663e4['author']!==_0x3fd706&&_0x2663e4[_0x38cc('0x3')]();const _0x18ae79=_0x2663e4['data']['commandParams'];_0x3e7908=_0x18ae79[0x0][_0x38cc('0x5')],_0x3caec1=_0x18ae79[0x0]['columnWidths'];break;}}_0x129574({'table':_0x38e924,'tableWidth':_0x3832f1,'columnWidths':_0x27a82a}),_0x503af3['markBlockFormat'](_0x38e924,{'commandName':_0x38cc('0x0'),'commandParams':[{'tableWidth':_0x3e7908,'columnWidths':_0x3caec1}],'formatGroupId':_0x38cc('0x1c')},[],_0x38cc('0x1c'));});}['handleSuggestionDescription'](_0x4f0abb){const {data:_0x5f04d3}=_0x4f0abb;if(_0x5f04d3&&_0x38cc('0x1c')===_0x5f04d3['formatGroupId']){const _0x327194='*Format:*\x20resize\x20table';return{'type':'format','content':_0x355f65(this['editor'][_0x38cc('0xc')],_0x327194)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d2a=['createPositionBefore','*Format:*\x20%0','removeMarker:suggestion','getChild','_acceptFormatSuggestionCallbackFactory','editor','setTableRowHeader','markerRange','locale','createTableWalker','activeMarkers','consumable','table','parent','formatBlock','editing','commands','FORMAT_HEADER_ROW','removeClass','end','stop','downcastDispatcher','accept','createPositionAfter','writer','selection','TableUtils','data','setTableColumnHeader','unbindElementFromMarkerName','FORMAT_HEADER_COLUMN','cell','createRange','registerCustomCallback','TableEditing','forceValue','getAttribute','ck-suggestion-marker--active','includes','document','get','commandParams','getRowIndexes','markBlockFormat','addClass','showSuggestionHighlights','data-suggestion','TrackChangesEditing','change','model','toViewElement','start','headingRows','childCount','markerNameToElements','mapper','getSelectionAffectedTableCells','enableCommand','options','requires','value','_splitMarkerName','findAncestor','commandName','registerDescriptionCallback','bindElementToMarker','_descriptionFactory','first','format','setAttribute','markerName','addMarker:suggestion','highest','getColumnIndexes','last','ck-suggestion-marker-','isBefore','getSuggestion','nodeAfter','plugins','_suggestionFactory','headingColumns','FORMAT_REGULAR_ROW','index','getCellLocation','item','from'];(function(_0x530356,_0x5d2ace){const _0x2a9970=function(_0x37c897){while(--_0x37c897){_0x530356['push'](_0x530356['shift']());}};_0x2a9970(++_0x5d2ace);}(_0x5d2a,0x1c1));const _0x2a99=function(_0x530356,_0x5d2ace){_0x530356=_0x530356-0x0;let _0x2a9970=_0x5d2a[_0x530356];return _0x2a9970;};import{Plugin as _0x286842}from'ckeditor5/src/core';import _0x7357ae from'./table';import{getTranslation as _0xa730be}from'../utils/common-translations';export default class pt extends _0x286842{static get[_0x2a99('0x2d')](){return[_0x7357ae];}['afterInit'](){const _0xb569ba=this[_0x2a99('0x4e')];if(!_0xb569ba[_0x2a99('0x41')]['has'](_0x2a99('0x14')))return;const _0x36f9ed=_0xb569ba[_0x2a99('0x51')],_0x49ef2f=_0xb569ba[_0x2a99('0x41')][_0x2a99('0x1a')](_0x2a99('0x21')),_0x55ddff=_0xb569ba[_0x2a99('0x41')][_0x2a99('0x1a')]('TableUtils'),_0x401555=_0xb569ba[_0x2a99('0x41')][_0x2a99('0x1a')](_0x7357ae);function _0x342d38({showActiveMarker:_0x16cc2c=!0x0,setDataAttribute:_0x261828=!0x0}={}){return(_0x3c0b91,_0x251660,_0x1fe2e4)=>{const {type:_0x3aa8b9,id:_0x4406a8}=_0x49ef2f[_0x2a99('0x2f')](_0x251660[_0x2a99('0x38')]),_0x22797c=_0x49ef2f[_0x2a99('0x3f')](_0x4406a8);if(!_0x22797c['data']||_0x2a99('0xe')!=_0x22797c[_0x2a99('0xd')][_0x2a99('0x31')])return;if(_0x251660[_0x2a99('0x47')])return void _0x3c0b91[_0x2a99('0x6')]();if(!_0x1fe2e4[_0x2a99('0x54')]['consume'](_0x251660['markerRange'],_0x3c0b91['name']))return;const _0x169359=_0x251660[_0x2a99('0x50')][_0x2a99('0x25')][_0x2a99('0x40')],_0xe41956=_0x251660[_0x2a99('0x50')][_0x2a99('0x5')]['nodeBefore'],_0x593080=_0x169359[_0x2a99('0x56')][_0x2a99('0x56')],{column:_0x4c7556}=_0x55ddff[_0x2a99('0x46')](_0x169359),{column:_0x174b6a}=_0x55ddff[_0x2a99('0x46')](_0xe41956);for(let _0x232417=_0x4c7556;_0x232417<=_0x174b6a;_0x232417++){const _0x8d9931=_0x55ddff[_0x2a99('0x52')](_0x593080,{'column':_0x232417,'includeAllSlots':!0x1});for(const _0x15c02c of _0x8d9931){const _0x4da92a=_0x15c02c['cell'],_0x5ee208=_0x1fe2e4[_0x2a99('0x29')][_0x2a99('0x24')](_0x4da92a);_0x1fe2e4[_0x2a99('0xa')][_0x2a99('0x1e')]('ck-suggestion-marker-'+_0x3aa8b9,_0x5ee208),_0x261828&&_0x1fe2e4[_0x2a99('0xa')][_0x2a99('0x37')](_0x2a99('0x20'),_0x4406a8,_0x5ee208),_0x1fe2e4[_0x2a99('0x29')][_0x2a99('0x33')](_0x5ee208,_0x251660[_0x2a99('0x38')]),_0x16cc2c&&(_0x49ef2f[_0x2a99('0x53')][_0x2a99('0x18')](_0x251660[_0x2a99('0x38')])?_0x1fe2e4['writer'][_0x2a99('0x1e')](_0x2a99('0x17'),_0x5ee208):_0x1fe2e4[_0x2a99('0xa')][_0x2a99('0x4')](_0x2a99('0x17'),_0x5ee208));}}};}_0x49ef2f[_0x2a99('0x2b')]('setTableRowHeader',(_0x66c54c,_0x2854c3)=>{const _0x1065d9=_0x55ddff[_0x2a99('0x2a')](_0xb569ba[_0x2a99('0x23')][_0x2a99('0x19')]['selection']),_0x4655a2=_0x55ddff[_0x2a99('0x1c')](_0x1065d9),_0x415fcb=_0x1065d9[0x0][_0x2a99('0x30')](_0x2a99('0x55')),_0x32671f=_0x415fcb[_0x2a99('0x16')](_0x2a99('0x26'))||0x0,_0x185435=_0x2854c3&&null!==_0x2854c3[_0x2a99('0x15')]?_0x2854c3['forceValue']:!_0xb569ba[_0x2a99('0x2')]['get'](_0x2a99('0x4f'))['value'],_0x4cb389=_0x185435?_0x4655a2[_0x2a99('0x3c')]:_0x4655a2[_0x2a99('0x35')],_0x10089b=_0x415fcb[_0x2a99('0x4c')](_0x4cb389);let _0x571389;if(_0x185435){const _0x40d5ee=_0x415fcb[_0x2a99('0x4c')](_0x32671f);if(_0x10089b[_0x2a99('0x45')]<_0x40d5ee[_0x2a99('0x45')])return;_0x571389=_0xb569ba['model']['createRange'](_0xb569ba[_0x2a99('0x23')][_0x2a99('0x49')](_0x40d5ee[_0x2a99('0x4c')](0x0)),_0xb569ba[_0x2a99('0x23')]['createPositionAfter'](_0x10089b[_0x2a99('0x4c')](_0x10089b['childCount']-0x1)));}else{const _0x56becd=_0x415fcb[_0x2a99('0x4c')](_0x32671f-0x1);if(!_0x56becd)return;_0x571389=_0xb569ba['model'][_0x2a99('0x12')](_0xb569ba['model']['createPositionBefore'](_0x10089b[_0x2a99('0x4c')](0x0)),_0xb569ba[_0x2a99('0x23')][_0x2a99('0x9')](_0x56becd['getChild'](_0x56becd[_0x2a99('0x27')]-0x1)));}_0xb569ba[_0x2a99('0x23')]['change'](()=>{_0x49ef2f[_0x2a99('0x1d')](_0x571389,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x185435}]},[],'setTableRowHeader');});}),_0x49ef2f[_0x2a99('0x2b')](_0x2a99('0xe'),(_0x3bfcee,_0x106728)=>{const _0xa2dc5a=_0xb569ba[_0x2a99('0x41')]['get'](_0x2a99('0xc')),_0x42d42d=_0xa2dc5a[_0x2a99('0x2a')](_0xb569ba[_0x2a99('0x23')][_0x2a99('0x19')][_0x2a99('0xb')]),_0x46be64=_0xa2dc5a[_0x2a99('0x3b')](_0x42d42d),_0x30bc8c=_0x42d42d[0x0][_0x2a99('0x30')](_0x2a99('0x55')),_0x3ec483=_0x30bc8c[_0x2a99('0x16')](_0x2a99('0x43'))||0x0,_0x1c7f70=_0x106728&&null!==_0x106728[_0x2a99('0x15')]?_0x106728[_0x2a99('0x15')]:!_0xb569ba[_0x2a99('0x2')][_0x2a99('0x1a')](_0x2a99('0xe'))[_0x2a99('0x2e')];let _0x2a2832;const _0x3a34e3=_0x30bc8c[_0x2a99('0x4c')](0x0),_0x20b50b=_0x1c7f70?_0x46be64[_0x2a99('0x3c')]:_0x46be64[_0x2a99('0x35')],_0x557130=_0xa2dc5a['createTableWalker'](_0x30bc8c,{'startRow':0x0,'column':_0x20b50b,'includeAllSlots':!0x1}),_0x26f9ea=Array[_0x2a99('0x48')](_0x557130)[0x0][_0x2a99('0x11')];if(_0x1c7f70){const _0x363ac5=_0x3a34e3[_0x2a99('0x4c')](_0x3ec483);if(_0x26f9ea[_0x2a99('0x3e')](_0x363ac5))return;_0x2a2832=_0xb569ba[_0x2a99('0x23')][_0x2a99('0x12')](_0xb569ba['model']['createPositionBefore'](_0x363ac5),_0xb569ba[_0x2a99('0x23')][_0x2a99('0x9')](_0x26f9ea));}else{const _0xd01433=_0x3a34e3['getChild'](_0x3ec483-0x1);if(!_0xd01433)return;_0x2a2832=_0xb569ba[_0x2a99('0x23')][_0x2a99('0x12')](_0xb569ba['model']['createPositionBefore'](_0x26f9ea),_0xb569ba[_0x2a99('0x23')][_0x2a99('0x9')](_0xd01433));}_0xb569ba[_0x2a99('0x23')][_0x2a99('0x22')](()=>{_0x49ef2f['markBlockFormat'](_0x2a2832,{'commandName':_0x2a99('0xe'),'commandParams':[{'forceValue':_0x1c7f70}]},[],_0x2a99('0xe'));});}),_0xb569ba[_0x2a99('0x1')]['downcastDispatcher']['on'](_0x2a99('0x39'),_0x342d38(),{'priority':_0x2a99('0x3a')}),_0xb569ba['data'][_0x2a99('0x7')]['on'](_0x2a99('0x39'),(_0x47abf8,_0x5b7a47,_0x3c1225)=>{_0x3c1225[_0x2a99('0x2c')][_0x2a99('0x1f')]&&_0x342d38({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47abf8,_0x5b7a47,_0x3c1225);},{'priority':_0x2a99('0x3a')}),_0xb569ba['editing'][_0x2a99('0x7')]['on'](_0x2a99('0x4b'),(_0x50e825,_0x3fac84,_0x249867)=>{const {type:_0x4ce40c,id:_0x3c350d}=_0x49ef2f[_0x2a99('0x2f')](_0x3fac84[_0x2a99('0x38')]),_0x6db37a=_0x49ef2f[_0x2a99('0x3f')](_0x3c350d);if(!_0x6db37a[_0x2a99('0xd')]||_0x2a99('0xe')!=_0x6db37a[_0x2a99('0xd')][_0x2a99('0x31')])return;const _0x213c32=_0x249867[_0x2a99('0x29')][_0x2a99('0x28')](_0x3fac84[_0x2a99('0x38')]);if(_0x213c32)for(const _0x3f9d3f of _0x213c32)_0x249867[_0x2a99('0xa')][_0x2a99('0x4')](_0x2a99('0x3d')+_0x4ce40c,_0x3f9d3f),_0x249867[_0x2a99('0xa')][_0x2a99('0x4')](_0x2a99('0x17'),_0x3f9d3f),_0x249867[_0x2a99('0xa')]['removeAttribute']('data-suggestion',_0x3f9d3f),_0x249867[_0x2a99('0x29')][_0x2a99('0xf')](_0x3f9d3f,_0x3fac84['markerName']);},{'priority':'highest'}),_0x49ef2f[_0x2a99('0x34')][_0x2a99('0x32')](_0x3b130d=>{const {data:_0x6e00d7}=_0x3b130d;if(_0x6e00d7){if(_0x2a99('0x4f')==_0x6e00d7['commandName']){const _0x2411d3=_0x6e00d7['commandParams'][0x0]['forceValue'];return _0x45fcd2(_0xa730be(_0x36f9ed,_0x2411d3?_0x2a99('0x3'):_0x2a99('0x44')));}if('setTableColumnHeader'==_0x6e00d7[_0x2a99('0x31')]){const _0x1e49f5=_0x6e00d7[_0x2a99('0x1b')][0x0]['forceValue'];return _0x45fcd2(_0xa730be(_0x36f9ed,_0x1e49f5?_0x2a99('0x10'):'FORMAT_REGULAR_COLUMN'));}}function _0x45fcd2(_0x23a1b5){return{'type':_0x2a99('0x36'),'content':_0xa730be(_0x36f9ed,_0x2a99('0x4a'),_0x23a1b5)};}});const _0x5f2db7=_0x401555[_0x2a99('0x4d')]();_0x49ef2f[_0x2a99('0x42')][_0x2a99('0x13')](_0x2a99('0x0'),_0x2a99('0x4f'),_0x2a99('0x8'),_0x5f2db7),_0x49ef2f['_suggestionFactory'][_0x2a99('0x13')](_0x2a99('0x0'),_0x2a99('0xe'),'accept',_0x5f2db7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2952=['stop','_areSelectedCellsMergable','_descriptionFactory','TrackChangesEditing','from','registerDescriptionCallback','mergeTableCellLeft','direction','change','tableCell','plugins','length','isEnabled','markMultiRangeBlockFormat','get','element','find','deletion','*Split\x20cell:*\x20vertically','mergeTableCells','getRanges','map','selection','afterInit','_areMergableCells','fromRange','model','commandName','_isForcedDefaultExecutionBlock','registerCustomCallback','rootName','enableCommand','author','getFirstPosition','refresh','mergeTableCellUp','insertion','subType','getSelectionAffectedTableCells','size','mergeTableCellRight','getSuggestions','editor','value','has','document','splitTableCellVertically','splitTableCellHorizontally','getCellLocation','markBlockFormat','createTableWalker','*Merge\x20cells*','cell','type','$graveyard','add','table','containsRange','TableEditing','push','detach','commands','set:isEnabled','mergeTableCellDown','createRangeOn','accept','format','low','TableUtils','setSelection','_tablePostFixingSubtypes','formatBlock','forceDefaultExecution','execute','_suggestionFactory','trackChanges','highest'];(function(_0x11b85b,_0x2952e9){const _0x1f9a7e=function(_0x393ba2){while(--_0x393ba2){_0x11b85b['push'](_0x11b85b['shift']());}};_0x1f9a7e(++_0x2952e9);}(_0x2952,0xae));const _0x1f9a=function(_0x11b85b,_0x2952e9){_0x11b85b=_0x11b85b-0x0;let _0x1f9a7e=_0x2952[_0x11b85b];return _0x1f9a7e;};import{Plugin as _0x20a908}from'ckeditor5/src/core';import _0x4c485b from'./table';import{LiveRange as _0x4886ef}from'ckeditor5/src/engine';import{getTranslation as _0x1bb42b}from'../utils/common-translations';export default class dt extends _0x20a908{static get['requires'](){return[_0x4c485b];}[_0x1f9a('0x3')](){const _0x5bfd0b=this[_0x1f9a('0x16')],_0x25b128=_0x5bfd0b['model'][_0x1f9a('0x19')]['selection'],_0x4688b3=_0x5bfd0b['locale'];if(!_0x5bfd0b[_0x1f9a('0x43')][_0x1f9a('0x18')](_0x1f9a('0x26')))return;const _0x2cf435=_0x5bfd0b['plugins'][_0x1f9a('0x47')](_0x1f9a('0x3c')),_0x1b94ba=_0x5bfd0b[_0x1f9a('0x43')][_0x1f9a('0x47')](_0x1f9a('0x30')),_0x1b978d=_0x5bfd0b[_0x1f9a('0x43')][_0x1f9a('0x47')](_0x4c485b);_0x1b978d[_0x1f9a('0x32')][_0x1f9a('0x27')](_0x1f9a('0x4c')),_0x2cf435[_0x1f9a('0xb')]('mergeTableCells',()=>{const _0x1a3d5f=_0x1b94ba[_0x1f9a('0x12')](_0x5bfd0b[_0x1f9a('0x6')][_0x1f9a('0x19')][_0x1f9a('0x2')]);_0x5bfd0b['model']['change'](()=>{_0x2cf435['markMultiRangeBlockFormat'](_0x1a3d5f,{'commandName':'mergeTableCells','commandParams':[]},[],_0x1f9a('0x4c'));});}),_0x5bfd0b[_0x1f9a('0x29')]['get'](_0x1f9a('0x4c'))['on'](_0x1f9a('0x35'),(_0x56ec04,_0x37faef)=>{_0x5bfd0b['commands'][_0x1f9a('0x47')](_0x1f9a('0x37'))[_0x1f9a('0x17')]&&(_0x37faef[_0x1f9a('0x44')]>0x0&&_0x37faef[_0x37faef['length']-0x1]&&_0x37faef[_0x37faef['length']-0x1][_0x1f9a('0x34')]||_0x2cf435[_0x1f9a('0x8')]||this[_0x1f9a('0x3a')]()||_0x56ec04[_0x1f9a('0x39')]());},{'priority':_0x1f9a('0x38')});for(const _0x2fe3e4 of[_0x1f9a('0xf'),_0x1f9a('0x14'),_0x1f9a('0x2b'),_0x1f9a('0x3f')]){const _0x1de26d=_0x5bfd0b[_0x1f9a('0x29')][_0x1f9a('0x47')](_0x2fe3e4);_0x2cf435['enableCommand'](_0x2fe3e4,()=>{const _0x2a48de=_0x5bfd0b[_0x1f9a('0x6')][_0x1f9a('0x19')][_0x1f9a('0x2')][_0x1f9a('0xd')]()['getAncestors']()[_0x1f9a('0x49')](_0x4570a9=>_0x4570a9['is'](_0x1f9a('0x48'),_0x1f9a('0x42'))),_0x5f576b=_0x1de26d[_0x1f9a('0x17')];_0x5bfd0b[_0x1f9a('0x6')]['change'](()=>{_0x2cf435[_0x1f9a('0x46')]([_0x2a48de,_0x5f576b],{'commandName':_0x1f9a('0x4c'),'commandParams':[]},[],_0x1f9a('0x4c'));});});}for(const _0x58a641 of[_0x1f9a('0x1a'),'splitTableCellHorizontally']){const _0x55016a=_0x5bfd0b[_0x1f9a('0x29')]['get'](_0x58a641);_0x2cf435['enableCommand'](_0x58a641,()=>{const _0x518d93=_0x1b94ba[_0x1f9a('0x12')](_0x5bfd0b[_0x1f9a('0x6')][_0x1f9a('0x19')][_0x1f9a('0x2')])[0x0],_0x500b94=_0x518d93['findAncestor'](_0x1f9a('0x24')),{column:_0x13d207,row:_0x1f770b}=_0x1b94ba[_0x1f9a('0x1c')](_0x518d93);let _0x1e1189=[];if('horizontally'==_0x55016a[_0x1f9a('0x40')]){const _0x340701=_0x1b94ba[_0x1f9a('0x1e')](_0x500b94,{'startRow':_0x1f770b,'endRow':_0x1f770b,'includeAllSlots':!0x0});_0x1e1189=Array[_0x1f9a('0x3d')](_0x340701)['map'](_0x4336ac=>_0x4336ac[_0x1f9a('0x20')]);}else{const _0x3cffff=_0x1b94ba[_0x1f9a('0x1e')](_0x500b94,{'column':_0x13d207,'includeAllSlots':!0x0});_0x1e1189=Array[_0x1f9a('0x3d')](_0x3cffff)['map'](_0x2f6319=>_0x2f6319[_0x1f9a('0x20')]);}_0x5bfd0b[_0x1f9a('0x6')]['change'](_0x19c05a=>{_0x2cf435[_0x1f9a('0x1d')](_0x19c05a['createRangeOn'](_0x518d93),{'commandName':_0x58a641,'commandParams':[]},_0x1e1189,_0x58a641);});});}_0x2cf435[_0x1f9a('0x3b')]['registerDescriptionCallback'](_0x38dd08=>{const {data:_0x4e2f8a}=_0x38dd08;if(_0x4e2f8a)return _0x1f9a('0x4c')==_0x4e2f8a['commandName']?{'type':_0x1f9a('0x2e'),'content':_0x1bb42b(_0x4688b3,_0x1f9a('0x1f'))}:void 0x0;}),_0x2cf435[_0x1f9a('0x3b')][_0x1f9a('0x3e')](_0x246a2b=>{const {data:_0x14c48c}=_0x246a2b;if(_0x14c48c)return _0x1f9a('0x1a')==_0x14c48c[_0x1f9a('0x7')]?{'type':_0x1f9a('0x2e'),'content':_0x1bb42b(_0x4688b3,_0x1f9a('0x4b'))}:_0x1f9a('0x1b')==_0x14c48c[_0x1f9a('0x7')]?{'type':_0x1f9a('0x2e'),'content':_0x1bb42b(_0x4688b3,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x1710b2=_0x1b978d['_acceptFormatSuggestionCallbackFactory']();for(const _0x555db0 of['mergeTableCellUp','mergeTableCellRight',_0x1f9a('0x2b'),_0x1f9a('0x3f')])_0x2cf435[_0x1f9a('0x36')][_0x1f9a('0x9')](_0x1f9a('0x33'),_0x555db0,'accept',_0x1710b2);for(const _0xfdbaf0 of['splitTableCellVertically',_0x1f9a('0x1b')])_0x2cf435[_0x1f9a('0x36')][_0x1f9a('0x9')](_0x1f9a('0x33'),_0xfdbaf0,_0x1f9a('0x2d'),_0x1710b2);_0x2cf435[_0x1f9a('0x36')][_0x1f9a('0x9')](_0x1f9a('0x33'),_0x1f9a('0x4c'),_0x1f9a('0x2d'),_0x5e4e6c=>{_0x5bfd0b['model'][_0x1f9a('0x41')](_0x4fd50d=>{const _0x11018f=Array[_0x1f9a('0x3d')](_0x25b128[_0x1f9a('0x0')]())[_0x1f9a('0x1')](_0x18d8bc=>_0x4886ef[_0x1f9a('0x5')](_0x18d8bc));_0x4fd50d[_0x1f9a('0x31')](_0x5e4e6c),_0x5bfd0b[_0x1f9a('0x29')][_0x1f9a('0x47')](_0x1f9a('0x4c'))[_0x1f9a('0xe')](),_0x5bfd0b[_0x1f9a('0x35')](_0x1f9a('0x4c'),{'forceDefaultExecution':!0x0});const _0x2cf4f7=_0x11018f['filter'](_0x1e9f4e=>_0x1f9a('0x22')!=_0x1e9f4e['root'][_0x1f9a('0xa')]);_0x2cf4f7[_0x1f9a('0x44')]>0x0&&_0x4fd50d[_0x1f9a('0x31')](_0x2cf4f7);for(const _0x2e9a15 of _0x11018f)_0x2e9a15[_0x1f9a('0x28')]();});});for(const _0x1aca9b of[_0x1f9a('0xf'),_0x1f9a('0x2b'),_0x1f9a('0x3f'),_0x1f9a('0x14')]){const _0x31d631=_0x5bfd0b[_0x1f9a('0x29')][_0x1f9a('0x47')](_0x1aca9b);_0x31d631['on'](_0x1f9a('0x2a'),(_0x38918b,_0x38fed3,_0x17d5e1)=>{if(_0x17d5e1){const _0x420a22=_0x5bfd0b[_0x1f9a('0x6')][_0x1f9a('0x19')][_0x1f9a('0x2')][_0x1f9a('0xd')]()['getAncestors']()[_0x1f9a('0x49')](_0x1c4ba6=>_0x1c4ba6['is']('element',_0x1f9a('0x42')));this[_0x1f9a('0x4')](_0x31d631[_0x1f9a('0x17')],_0x420a22)||(_0x38918b['return']=!0x1,_0x38918b[_0x1f9a('0x39')]());}},{'priority':_0x1f9a('0x2f')});}}['_areSelectedCellsMergable'](){const _0x513da0=this[_0x1f9a('0x16')][_0x1f9a('0x29')][_0x1f9a('0x47')](_0x1f9a('0x4c')),_0x326e2b=this[_0x1f9a('0x16')][_0x1f9a('0x43')][_0x1f9a('0x47')]('TableUtils');if(!_0x513da0[_0x1f9a('0x45')])return!0x1;const _0x191d67=_0x326e2b['getSelectionAffectedTableCells'](this[_0x1f9a('0x16')]['model']['document'][_0x1f9a('0x2')]);for(const _0x13c468 of _0x191d67)for(const _0x2bb7c1 of _0x191d67)if(_0x13c468!=_0x2bb7c1&&!this[_0x1f9a('0x4')](_0x13c468,_0x2bb7c1))return!0x1;return!0x0;}['_areMergableCells'](_0x39d812,_0x5e12d6){const _0x482c9c=this[_0x1f9a('0x16')][_0x1f9a('0x43')][_0x1f9a('0x47')](_0x1f9a('0x3c')),_0x41fc03=this[_0x1f9a('0x16')][_0x1f9a('0x6')][_0x1f9a('0x2c')](_0x39d812),_0x5f43e0=this['editor'][_0x1f9a('0x6')][_0x1f9a('0x2c')](_0x5e12d6),_0x3f8d2b=new Set(),_0x38b359=new Set();for(const _0x4b2357 of _0x482c9c[_0x1f9a('0x15')]())if((_0x1f9a('0x10')==_0x4b2357[_0x1f9a('0x21')]||_0x1f9a('0x4a')==_0x4b2357[_0x1f9a('0x21')]||_0x1f9a('0x4c')==_0x4b2357[_0x1f9a('0x11')])&&_0x4b2357['isInContent'])for(const _0x2bb60d of _0x4b2357[_0x1f9a('0x0')]())_0x2bb60d['containsRange'](_0x41fc03,!0x0)&&_0x3f8d2b[_0x1f9a('0x23')](_0x4b2357[_0x1f9a('0x21')]+':'+_0x4b2357[_0x1f9a('0xc')]['id']),_0x2bb60d[_0x1f9a('0x25')](_0x5f43e0,!0x0)&&_0x38b359[_0x1f9a('0x23')](_0x4b2357[_0x1f9a('0x21')]+':'+_0x4b2357[_0x1f9a('0xc')]['id']);if(_0x3f8d2b[_0x1f9a('0x13')]!=_0x38b359[_0x1f9a('0x13')])return!0x1;for(const _0x25297b of _0x3f8d2b)if(!_0x38b359[_0x1f9a('0x18')](_0x25297b))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4769=['afterInit','insertTableOfContents','locale','plugins','get','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','editor','commands','TrackChangesEditing'];(function(_0x570ec9,_0x476917){const _0x348716=function(_0x51902a){while(--_0x51902a){_0x570ec9['push'](_0x570ec9['shift']());}};_0x348716(++_0x476917);}(_0x4769,0x1d2));const _0x3487=function(_0x570ec9,_0x476917){_0x570ec9=_0x570ec9-0x0;let _0x348716=_0x4769[_0x570ec9];return _0x348716;};import{Plugin as _0x54782a}from'ckeditor5/src/core';import{getTranslation as _0x36bf93}from'../utils/common-translations';export default class bt extends _0x54782a{[_0x3487('0x4')](){const _0x170f34=this[_0x3487('0x1')];if(!_0x170f34[_0x3487('0x2')][_0x3487('0x8')]('insertTableOfContents'))return;_0x170f34[_0x3487('0x7')][_0x3487('0x8')](_0x3487('0x3'))['enableCommand'](_0x3487('0x5'));const _0x5e514e=_0x170f34['plugins'][_0x3487('0x8')]('TrackChangesEditing'),_0x3400f7=_0x170f34[_0x3487('0x6')];_0x5e514e['_descriptionFactory'][_0x3487('0x9')]('tableOfContents',_0x3babdc=>_0x36bf93(_0x3400f7,_0x3487('0x0'),_0x3babdc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fc6=['getFirstPosition','format','_getSuggestion','nodeAfter','registerDescriptionCallback','discard','enableCommand','tableAlignment','getSuggestionCallback','tableBackgroundColor','tableBorderColor','removeAttribute','locale','_handlePropertyChange','tableProperties','tableCellProperties','table','document','registerCustomCallback','data','tableCellBorderStyle','tableCellVerticalAlignment','setAttribute','tableCellPadding','batch','_suggestionFactory','markBlockFormat','tableHeight','selection','has','tableWidth','getContainedElement','tableCellBorderColor','tableCellBorderWidth','enqueueChange','get','formatBlock','_descriptionFactory','plugins','getAttribute','editor','join','TableUtils','handleDiscardAction','*Format:*\x20change\x20table\x20properties','accept','findAncestor','TableCellPropertiesEditing','tableCellHeight','start','model','tableBorderStyle','subType'];(function(_0x23dbaf,_0x4fc69d){const _0x5f388f=function(_0x616220){while(--_0x616220){_0x23dbaf['push'](_0x23dbaf['shift']());}};_0x5f388f(++_0x4fc69d);}(_0x4fc6,0xfa));const _0x5f38=function(_0x23dbaf,_0x4fc69d){_0x23dbaf=_0x23dbaf-0x0;let _0x5f388f=_0x4fc6[_0x23dbaf];return _0x5f388f;};import{Plugin as _0xc2befd}from'ckeditor5/src/core';import{getTranslation as _0x2ed0f2}from'../utils/common-translations';export default class Ct extends _0xc2befd{constructor(_0x15b7ce){super(_0x15b7ce),this['tableProperties']=[_0x5f38('0x19'),_0x5f38('0xd'),'tableBorderWidth',_0x5f38('0x16'),_0x5f38('0x2d'),_0x5f38('0x2a'),_0x5f38('0x18')],this[_0x5f38('0x1e')]=[_0x5f38('0x2f'),_0x5f38('0x23'),_0x5f38('0x30'),_0x5f38('0x26'),'tableCellWidth',_0x5f38('0xa'),'tableCellBackgroundColor','tableCellHorizontalAlignment',_0x5f38('0x24')];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x533e94=this[_0x5f38('0x2')][_0x5f38('0x0')][_0x5f38('0x32')]('TrackChangesEditing');if(this[_0x5f38('0x2')][_0x5f38('0x0')][_0x5f38('0x2c')]('TablePropertiesEditing')){for(const _0x1eb46b of this['tableProperties'])_0x533e94[_0x5f38('0x15')](_0x1eb46b,(_0x33d401,_0x56a750)=>{const _0x21a7a7=this[_0x5f38('0x2')][_0x5f38('0xc')][_0x5f38('0x20')][_0x5f38('0x2b')][_0x5f38('0xf')]()[_0x5f38('0x8')](_0x5f38('0x1f'));this['_handlePropertyChange'](_0x1eb46b,[_0x21a7a7],this[_0x5f38('0x1d')],_0x5f38('0x1d'),_0x33d401,_0x56a750);});_0x533e94['_suggestionFactory'][_0x5f38('0x21')](_0x5f38('0x33'),_0x5f38('0x1d'),'accept',_0x533e94[_0x5f38('0x28')][_0x5f38('0x17')](_0x5f38('0x33'),null,'discard')),_0x533e94['_suggestionFactory'][_0x5f38('0x21')]('formatBlock',_0x5f38('0x1d'),'discard',(_0x323cd5,_0x4dfaf2)=>this[_0x5f38('0x5')](this['tableProperties'],_0x323cd5,_0x4dfaf2)),_0x533e94['_suggestionFactory']['registerCustomCallback'](_0x5f38('0x33'),_0x5f38('0x1d'),'join',()=>!0x1);}if(this[_0x5f38('0x2')][_0x5f38('0x0')][_0x5f38('0x2c')](_0x5f38('0x9'))){for(const _0x2408f8 of this[_0x5f38('0x1e')])_0x533e94[_0x5f38('0x15')](_0x2408f8,(_0x33b161,_0x14164a)=>{const _0x458265=this['editor'][_0x5f38('0x0')][_0x5f38('0x32')](_0x5f38('0x4'))['getSelectionAffectedTableCells'](this['editor']['model'][_0x5f38('0x20')][_0x5f38('0x2b')]);this[_0x5f38('0x1c')](_0x2408f8,_0x458265,this['tableCellProperties'],_0x5f38('0x1e'),_0x33b161,_0x14164a);});_0x533e94['_suggestionFactory'][_0x5f38('0x21')]('formatBlock',_0x5f38('0x1e'),_0x5f38('0x7'),_0x533e94['_suggestionFactory'][_0x5f38('0x17')]('formatBlock',null,'discard')),_0x533e94[_0x5f38('0x28')]['registerCustomCallback']('formatBlock',_0x5f38('0x1e'),_0x5f38('0x14'),(_0x1cc0d4,_0x4e3434)=>this[_0x5f38('0x5')](this[_0x5f38('0x1e')],_0x1cc0d4,_0x4e3434)),_0x533e94[_0x5f38('0x28')]['registerCustomCallback']('formatBlock',_0x5f38('0x1e'),_0x5f38('0x3'),()=>!0x1);}_0x533e94[_0x5f38('0x34')][_0x5f38('0x13')](_0x14fab0=>this['handleSuggestionDescription'](_0x14fab0));}[_0x5f38('0x1c')](_0x1d4837,_0x2795a0,_0x2f70d2,_0x4f0914,_0x227969,_0x345ec5){const _0x4dd63f=this[_0x5f38('0x2')]['plugins'][_0x5f38('0x32')]('TrackChangesEditing');this[_0x5f38('0x2')][_0x5f38('0xc')][_0x5f38('0x31')](_0x345ec5[_0x5f38('0x27')],()=>{for(const _0x4501d3 of _0x2795a0){if(this['_getSuggestion'](_0x4501d3,_0x4f0914))_0x227969(_0x345ec5);else{const _0x1bfcc9={};for(const _0x738bd7 of _0x2f70d2){const _0x3be8cd=_0x4501d3[_0x5f38('0x1')](_0x738bd7);void 0x0!==_0x3be8cd&&(_0x1bfcc9[_0x738bd7]=_0x3be8cd);}_0x227969(_0x345ec5),_0x4dd63f[_0x5f38('0x29')](_0x4501d3,{'commandParams':[_0x1bfcc9]},[],_0x4f0914);}}});}[_0x5f38('0x5')](_0x5dde73,_0x1b8b74,_0xc316bf){const _0x4d5e98=_0x1b8b74[0x0][_0x5f38('0xb')][_0x5f38('0x12')],_0x89cf68=_0xc316bf['commandParams'][0x0];this[_0x5f38('0x2')][_0x5f38('0xc')]['change'](_0x4fd3d6=>{for(const _0x1dd7f0 of _0x5dde73)void 0x0!==_0x89cf68[_0x1dd7f0]?_0x4fd3d6[_0x5f38('0x25')](_0x1dd7f0,_0x89cf68[_0x1dd7f0],_0x4d5e98):_0x4fd3d6[_0x5f38('0x1a')](_0x1dd7f0,_0x4d5e98);});}['handleSuggestionDescription'](_0x360fb0){if(_0x360fb0[_0x5f38('0x22')])switch(_0x360fb0[_0x5f38('0xe')]){case _0x5f38('0x1d'):return{'type':_0x5f38('0x10'),'content':_0x2ed0f2(this[_0x5f38('0x2')][_0x5f38('0x1b')],_0x5f38('0x6'))};case _0x5f38('0x1e'):return{'type':_0x5f38('0x10'),'content':_0x2ed0f2(this[_0x5f38('0x2')][_0x5f38('0x1b')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x5f38('0x11')](_0x3f0a2c,_0x52e5ea){const _0x5f232f=this[_0x5f38('0x2')][_0x5f38('0x0')][_0x5f38('0x32')]('TrackChangesEditing');for(const _0x4c0acd of _0x5f232f['getSuggestions']({'skipNotAttached':!0x0})){const _0x4cc36a=_0x4c0acd[_0x5f38('0x2e')]();if(_0x4c0acd[_0x5f38('0xe')]===_0x52e5ea&&_0x4cc36a===_0x3f0a2c)return _0x4c0acd;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x134c=['Template','afterInit','get','has','enableCommand','insertTemplate','editor','TrackChangesEditing','plugins'];(function(_0x388d51,_0x134cac){const _0x2cae25=function(_0x37a521){while(--_0x37a521){_0x388d51['push'](_0x388d51['shift']());}};_0x2cae25(++_0x134cac);}(_0x134c,0x151));const _0x2cae=function(_0x388d51,_0x134cac){_0x388d51=_0x388d51-0x0;let _0x2cae25=_0x134c[_0x388d51];return _0x2cae25;};import{Plugin as _0x2f4b14}from'ckeditor5/src/core';export default class yt extends _0x2f4b14{[_0x2cae('0x6')](){const _0x5bb2b1=this[_0x2cae('0x2')];_0x5bb2b1[_0x2cae('0x4')][_0x2cae('0x8')](_0x2cae('0x5'))&&_0x5bb2b1[_0x2cae('0x4')][_0x2cae('0x7')](_0x2cae('0x3'))[_0x2cae('0x0')](_0x2cae('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fd4=['Title','isCollapsed','locale','_descriptionFactory','nodeBefore','element','title-content','getChangedMarkers','get','end','schema','suggestion','updateMarker','model','registerElementLabel','document','plugins','_splitMarkerName','isEqual','registerPostFixer','has','start','newRange','getNearestSelectionRange'];(function(_0x20decc,_0x2fd436){const _0x2a48eb=function(_0x5d7caa){while(--_0x5d7caa){_0x20decc['push'](_0x20decc['shift']());}};_0x2a48eb(++_0x2fd436);}(_0x2fd4,0x6c));const _0x2a48=function(_0x20decc,_0x2fd436){_0x20decc=_0x20decc-0x0;let _0x2a48eb=_0x2fd4[_0x20decc];return _0x2a48eb;};import{Plugin as _0x44792d}from'ckeditor5/src/core';import{getTranslation as _0x583708}from'../utils/common-translations';export default class St extends _0x44792d{['afterInit'](){const _0x107c17=this['editor'];if(!_0x107c17[_0x2a48('0x4')][_0x2a48('0x8')](_0x2a48('0xc')))return;const _0x22540a=_0x107c17[_0x2a48('0x4')][_0x2a48('0x14')]('TrackChangesEditing');_0x22540a[_0x2a48('0xf')][_0x2a48('0x2')](_0x2a48('0x12'),()=>_0x583708(_0x107c17[_0x2a48('0xe')],'ELEMENT_TITLE')),_0x107c17[_0x2a48('0x1')][_0x2a48('0x3')][_0x2a48('0x7')](_0x205579=>{let _0x2a7153=!0x1;const _0x4af6d3=Array['from'](_0x107c17[_0x2a48('0x1')][_0x2a48('0x3')]['differ'][_0x2a48('0x13')]());for(const {name:_0x9c200,data:_0x294db4}of _0x4af6d3){const {group:_0x38f28b}=_0x22540a[_0x2a48('0x5')](_0x9c200);if(_0x2a48('0x17')!==_0x38f28b||!_0x294db4[_0x2a48('0xa')])continue;const _0x2e872a=_0x294db4[_0x2a48('0xa')],_0x15c4fd=_0x2e872a[_0x2a48('0x15')][_0x2a48('0x10')];if(!_0x15c4fd||!_0x15c4fd['is'](_0x2a48('0x11'),_0x2a48('0x12')))continue;if(!_0x2e872a[_0x2a48('0x9')]['isTouching'](_0x2e872a[_0x2a48('0x15')]))continue;const _0x155502=_0x107c17['model'][_0x2a48('0x16')][_0x2a48('0xb')](_0x2e872a['end'],'forward');if(_0x155502&&_0x155502[_0x2a48('0xd')]){const _0x44f0fe=_0x205579['createRange'](_0x2e872a[_0x2a48('0x9')],_0x155502[_0x2a48('0x9')]);_0x44f0fe[_0x2a48('0x6')](_0x2e872a)||(_0x205579[_0x2a48('0x0')](_0x9c200,{'range':_0x44f0fe}),_0x2a7153=!0x0);}_0x2a7153||(_0x205579['removeMarker'](_0x9c200),_0x2a7153=!0x0);}return _0x2a7153;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x253e=['afterInit','editor','TrackChangesEditing','undo','UndoEditing','plugins','redo','enableCommand'];(function(_0x44efdc,_0x253e34){const _0x2b4500=function(_0x47f3ad){while(--_0x47f3ad){_0x44efdc['push'](_0x44efdc['shift']());}};_0x2b4500(++_0x253e34);}(_0x253e,0x185));const _0x2b45=function(_0x44efdc,_0x253e34){_0x44efdc=_0x44efdc-0x0;let _0x2b4500=_0x253e[_0x44efdc];return _0x2b4500;};import{Plugin as _0x14b892}from'ckeditor5/src/core';export default class It extends _0x14b892{[_0x2b45('0x3')](){const _0x47fe19=this[_0x2b45('0x4')],_0x23e656=_0x47fe19[_0x2b45('0x0')]['get'](_0x2b45('0x5'));_0x47fe19[_0x2b45('0x0')]['has'](_0x2b45('0x7'))&&(_0x23e656[_0x2b45('0x2')](_0x2b45('0x6')),_0x23e656[_0x2b45('0x2')](_0x2b45('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7c46=['ck-suggestion-marker-','bindElementToMarker','writer','listItem','element','getCustomProperty','schema','isContent','previousPosition','TrackChangesEditing','get','mapper','item','nextSibling','isLimit','getWalker','isBlock','addClass','name','includes','parent','getAttribute','test','push','isAtEnd','markerRange','createRangeOn','activeMarkers','elementEnd','consumable','toViewElement','hasAttribute','span','addHighlight','createUIElement','start','model','markerName'];(function(_0x1299fe,_0x7c46e){const _0x4bf5b0=function(_0x3b7586){while(--_0x3b7586){_0x1299fe['push'](_0x1299fe['shift']());}};_0x4bf5b0(++_0x7c46e);}(_0x7c46,0xb2));const _0x4bf5=function(_0x1299fe,_0x7c46e){_0x1299fe=_0x1299fe-0x0;let _0x4bf5b0=_0x7c46[_0x1299fe];return _0x4bf5b0;};export function getRangesWithAttribute(_0x32de97,_0x576000,_0x3679cd){const _0x25551c=[];for(const _0x306a2e of _0x576000['getItems']())_0x306a2e[_0x4bf5('0x5')](_0x32de97)&&_0x25551c[_0x4bf5('0x23')](_0x3679cd[_0x4bf5('0x0')](_0x306a2e));return _0x25551c;}export function getElementsAffectedByListItemRename(_0x4c34b6){const _0x51943f=[];if(_0x4c34b6['is'](_0x4bf5('0x10'),_0x4bf5('0xf'))){let _0x403d60=_0x4c34b6['nextSibling'];for(;_0x403d60&&_0x403d60['is'](_0x4bf5('0x10'),'listItem')&&_0x403d60[_0x4bf5('0x21')]('listIndent')>0x0;)_0x51943f[_0x4bf5('0x23')](_0x403d60),_0x403d60=_0x403d60['nextSibling'];}return _0x51943f;}export function downcastSplitMergeMarker(_0x23f3e2,_0x4d79a2,{showActiveMarker:_0x4736e5=!0x0}={}){const _0x1d3859=_0x23f3e2['plugins'][_0x4bf5('0x16')](_0x4bf5('0x15'));return(_0x3756ce,_0x57c424,_0x44de11)=>{if(!_0x44de11[_0x4bf5('0x3')][_0x4bf5('0x22')](_0x57c424['markerRange'],_0x3756ce[_0x4bf5('0x1e')]))return;const _0x100a5a=_0x57c424[_0x4bf5('0x25')][_0x4bf5('0x1b')](),_0x2ec3b3=_0x57c424[_0x4bf5('0x25')][_0x4bf5('0x9')],_0x31ecbd=_0x23f3e2[_0x4bf5('0xa')][_0x4bf5('0x12')];let _0x10b2a7=null,_0x4c29de=null,_0x32c123=!0x1,_0x7809b6=!0x1;for(const _0x50a91f of _0x100a5a){const _0x4bca57=_0x50a91f[_0x4bf5('0x18')];_0x32c123=_0x32c123||_0x31ecbd[_0x4bf5('0x13')](_0x4bca57);const _0x4d4cb1=_0x44de11[_0x4bf5('0x17')][_0x4bf5('0x4')](_0x4bca57);if(_0x4d4cb1&&_0x4d4cb1[_0x4bf5('0x11')](_0x4bf5('0x7')))return;_0x4bf5('0x2')==_0x50a91f['type']&&(_0x31ecbd[_0x4bf5('0x1c')](_0x4bca57)&&!_0x31ecbd[_0x4bf5('0x1a')](_0x4bca57)&&(_0x4bca57[_0x4bf5('0x19')]||_0x2ec3b3[_0x4bf5('0x24')]?_0x10b2a7&&_0x10b2a7[_0x4bf5('0x20')]==_0x4bca57||(_0x10b2a7=_0x4bca57,_0x4850b4(_0x50a91f[_0x4bf5('0x14')]),_0x7809b6=!0x0):_0x4c29de=_0x4c29de||_0x50a91f[_0x4bf5('0x14')]));}function _0x4850b4(_0x14f14a){const _0x3fc465=_0x44de11[_0x4bf5('0xe')][_0x4bf5('0x8')](_0x4bf5('0x6'),{'class':_0x4bf5('0xc')+_0x4d79a2}),_0x34e0a5=_0x44de11['mapper']['toViewPosition'](_0x14f14a);_0x4736e5&&_0x1d3859[_0x4bf5('0x1')][_0x4bf5('0x1f')](_0x57c424[_0x4bf5('0xb')])&&_0x44de11['writer'][_0x4bf5('0x1d')]('ck-suggestion-marker--active',_0x3fc465),_0x44de11[_0x4bf5('0xe')]['insert'](_0x34e0a5,_0x3fc465),_0x44de11['mapper'][_0x4bf5('0xd')](_0x3fc465,_0x57c424[_0x4bf5('0xb')]);}_0x32c123||_0x7809b6||!_0x4c29de||_0x4850b4(_0x4c29de);};}
|