@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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 _0x3789=['registerPostFixer','_getCoordsForCells','reduce','from','tableCellBorderStyle','newRange','createTableWalker','cell','columnInsertionRanges','getMarkers','type','element','row','requires','formatBlock','every','insertContent','markers','setAttributes','getChild','startsWith','insertionRanges','unwrap','getRanges','activeMarkers','join','markerToHighlight','fill','end','map','getColumns','TrackChangesEditing','ck-suggestion-marker','fromEntries','getSuggestion','for','entries','tableCellBorderWidth','plugins','tableCellSuggestion','root','document','createElement','tablePasteRow','tablePasteCell','editor','schema','endColumn','ck-suggestion-marker--active','Users','insertColumns','find','TableClipboard','tableCellHorizontalAlignment','markMultiRangeInsertion','insertRows','high','removeRows','last','low','first','_tablePostFixingSubtypes','documentSelection','attributes','getSuggestionCallback','view','add','conversion','get','getSelectionAffectedTableCells','length','registerDescriptionCallback','set','removeColumns','getTableIfOnlyTableInContent','cells','filter','getAttributes','$graveyard','tablePasteChainId','suggestionLoaded','change','getChanges','author','paragraph','insertion','options','insert','setAttribute','discard','oldRange','registerCustomCallback','editingDowncast','move','getSuggestions','markerName','position','keys','table','listenTo','rowInsertionIndexes','_descriptionFactory','getColumnIndexes','start','trackChanges','redo','remove','tablePasteColumn','suggestionUnloaded','suggestion:formatBlock:tablePasteCell','*Replace\x20table\x20cells*','_isForcedDefaultExecutionBlock','push','tablePaste','columns','tableCellPadding','content','afterInit','markMultiRangeDeletion','model','previous','tableCellBorderColor','stop','getItems','_createdBatches','return','accept','rowInsertionRanges','createRangeOn','getRange','commands','has','isEmpty','getChildren','deletionRanges','nextSibling','isInContent','_suggestionFactory','getAllAdjacentSuggestions','getContainedElement','batch','differ','elementToElement','findAncestor','createPositionBefore','includes','hasSuggestion','getRows','tableCellBackgroundColor','ck-suggestion-marker-insertion','previousSibling','markerAttributes','next','_replaceTableSlotCell','removeMarkers','_splitMarkerName','editing','deletion','isEqual','suggestion','getChangedMarkers','endRow','createRangeIn','register','removeMarker','dataDowncast','updateMarker','tableCell','tableCellVerticalAlignment','nodeAfter','subType','columnInsertionIndexes','suggestion-td','name','selection'];(function(_0x2b5fa4,_0x37894e){const _0x3331d3=function(_0x2c4b99){while(--_0x2c4b99){_0x2b5fa4['push'](_0x2b5fa4['shift']());}};_0x3331d3(++_0x37894e);}(_0x3789,0x11a));const _0x3331=function(_0x2b5fa4,_0x37894e){_0x2b5fa4=_0x2b5fa4-0x0;let _0x3331d3=_0x3789[_0x2b5fa4];return _0x3331d3;};import{getTranslation as _0x2d5d59}from'../utils/common-translations';import{Plugin as _0xa64c90}from'ckeditor5/src/core';import{uid as _0x4d2a50,priorities as _0x25db8e}from'ckeditor5/src/utils';import _0x523f05 from'./table';const le=[_0x3331('0x69'),_0x3331('0xe'),_0x3331('0x48'),_0x3331('0x79'),_0x3331('0x3d'),_0x3331('0x29'),_0x3331('0x8')],ae=Object[_0x3331('0x65')](le[_0x3331('0x61')](_0x3ce8c5=>[_0x3ce8c5,null]));export default class kt extends _0xa64c90{static get[_0x3331('0x51')](){return[_0x523f05];}[_0x3331('0xa')](){const _0x1be1f8=this[_0x3331('0x71')];if(!_0x1be1f8[_0x3331('0x6a')]['has'](_0x3331('0x78')))return;const _0x41963f=_0x1be1f8[_0x3331('0x6a')][_0x3331('0x88')](_0x3331('0x63')),_0x5f0e6d=_0x1be1f8[_0x3331('0x6a')][_0x3331('0x88')]('TableUtils'),_0x4ca314=_0x1be1f8['plugins']['get'](_0x523f05),_0x4530fc=_0x1be1f8[_0x3331('0x6a')][_0x3331('0x88')](_0x3331('0x78'));_0x4ca314[_0x3331('0x81')]['push'](_0x3331('0x6f'),'tablePasteColumn'),_0x1be1f8['model'][_0x3331('0x72')][_0x3331('0x38')](_0x3331('0x6b'),{'allowIn':_0x3331('0x3c'),'allowContentOf':_0x3331('0x3c'),'isLimit':!0x0}),_0x1be1f8['conversion'][_0x3331('0x23')]({'model':_0x3331('0x6b'),'view':_0x3331('0x41')});let _0x2ae133=null;_0x1be1f8['model']['on'](_0x3331('0x54'),(_0x1f92d8,_0x3571de)=>{const [_0x4393d4,_0x3ba189]=_0x3571de,_0x43cb97=_0x3571de[_0x3571de[_0x3331('0x8a')]-0x1];_0x43cb97&&_0x43cb97['forceDefaultExecution']||_0x41963f[_0x3331('0x4')]||this[_0x3331('0x71')][_0x3331('0x17')]['get'](_0x3331('0xac'))['value']&&function(_0x1e55af,_0x2eaa2a,_0x2a58ec,_0x35ea5d,_0x1d5a00){if(_0x2eaa2a&&!_0x2eaa2a['is'](_0x3331('0x82')))return!0x1;const _0x174770=_0x1d5a00[_0x3331('0x8e')](_0x1e55af,_0x2a58ec);if(!_0x174770||!fe(_0x174770,void 0x0,_0x35ea5d))return!0x1;const _0x31ce8e=_0x35ea5d[_0x3331('0x89')](_0x2a58ec[_0x3331('0x6d')][_0x3331('0x43')]);if(!_0x31ce8e['length'])return!0x1;const _0x5a9359=_0x31ce8e[0x0][_0x3331('0x24')]('table'),_0x210cb7=_0x35ea5d['getRowIndexes'](_0x31ce8e),_0x55f02d=_0x35ea5d[_0x3331('0xaa')](_0x31ce8e),_0x30fe5f={'startRow':_0x210cb7[_0x3331('0x80')],'endRow':_0x210cb7['last'],'startColumn':_0x55f02d[_0x3331('0x80')],'endColumn':_0x55f02d[_0x3331('0x7e')]};return 0x1==_0x31ce8e[_0x3331('0x8a')]&&(_0x30fe5f[_0x3331('0x36')]+=_0x35ea5d[_0x3331('0x28')](_0x174770)-0x1,_0x30fe5f[_0x3331('0x73')]+=_0x35ea5d[_0x3331('0x62')](_0x174770)-0x1),fe(_0x5a9359,_0x30fe5f,_0x35ea5d);}(_0x4393d4,_0x3ba189,_0x1be1f8['model'],_0x5f0e6d,_0x4530fc)&&(_0x1f92d8[_0x3331('0xf')](),_0x2ae133={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1be1f8['model']['change'](()=>{_0x1be1f8[_0x3331('0xc')][_0x3331('0x54')](_0x3571de[0x0],_0x3571de[0x1],_0x3571de[0x2],{'forceDefaultExecution':!0x0});const _0x3dd128=_0x4d2a50(),{rowInsertionRanges:_0xf2da47,columnInsertionRanges:_0x307e00,insertionRanges:_0x477ae8,deletionRanges:_0x54a39b,cells:_0x4323c8}=_0x2ae133;_0xf2da47[_0x3331('0x8a')]&&_0x41963f[_0x3331('0x7a')](_0xf2da47,_0x3331('0x6f'),{'tablePasteChainId':_0x3dd128}),_0x307e00[_0x3331('0x8a')]&&_0x41963f[_0x3331('0x7a')](_0x307e00,'tablePasteColumn',{'tablePasteChainId':_0x3dd128}),_0x477ae8[_0x3331('0x8a')]&&_0x41963f[_0x3331('0x7a')](_0x477ae8,_0x3331('0x6'),{'tablePasteChainId':_0x3dd128,'skipNestingCheck':!0x0}),_0x54a39b['length']&&_0x41963f[_0x3331('0xb')](_0x54a39b,_0x3331('0x6'),{'tablePasteChainId':_0x3dd128,'skipNestingCheck':!0x0});const _0x586a22=_0x41963f['markMultiRangeBlockFormat'](_0x4323c8[_0x3331('0x61')](({element:_0x3dd7e8})=>_0x3dd7e8),{'formatGroupId':_0x4d2a50()},[],_0x3331('0x70'),{'tablePasteChainId':_0x3dd128});if(_0x586a22){const _0x376d9a=_0x586a22[_0x3331('0x4d')](),_0x484d37=[];for(const {element:_0x3814e7,attributes:_0x3bee3c}of _0x4323c8){if(!_0x3bee3c)continue;const _0x5c016d=_0x1be1f8[_0x3331('0xc')][_0x3331('0x15')](_0x3814e7),_0x1ad220=_0x376d9a[_0x3331('0x77')](_0xd9aa3=>_0xd9aa3[_0x3331('0x16')]()['isEqual'](_0x5c016d));_0x1ad220&&_0x484d37['push']([_0x1ad220[_0x3331('0x42')],_0x3bee3c]);}_0x484d37[_0x3331('0x8a')]&&_0x586a22[_0x3331('0x9c')]('markerAttributes',Object[_0x3331('0x65')](_0x484d37));}_0x2ae133=null;}));},{'priority':_0x25db8e[_0x3331('0x7c')]+0xa}),_0x1be1f8['plugins'][_0x3331('0x88')](_0x3331('0x78'))['on'](_0x3331('0x2e'),(_0x5e9150,_0x147962)=>{const [_0x4a2369,_0x53a4c9,,_0x4fcbca]=_0x147962;if(!_0x2ae133)return;_0x5e9150['stop']();const _0x44bf5a=_0x4a2369[_0x3331('0x4b')],_0x417a97=_0x53a4c9,_0x4a35f3=ce(_0x44bf5a),_0x2d35a3=ce(_0x417a97);_0x5e9150[_0x3331('0x12')]=_0x44bf5a;let _0x33e493=null,_0x45e066=null;if(_0x2d35a3||_0x4a35f3){if(_0x4a35f3&&!_0x2d35a3){_0x4fcbca[_0x3331('0xae')](_0x44bf5a[_0x3331('0x57')](0x0));for(const _0xefe8ec of Array[_0x3331('0x47')](_0x417a97[_0x3331('0x1a')]()))_0x4fcbca['insert'](_0xefe8ec,_0x44bf5a,_0x3331('0x60'));const _0x58bc66=_0x2ae133[_0x3331('0xa8')]['includes'](_0x4a2369[_0x3331('0x50')]),_0x436c9d=_0x2ae133[_0x3331('0x40')][_0x3331('0x26')](_0x4a2369['column']);_0x58bc66||_0x436c9d||(_0x33e493=_0x4fcbca[_0x3331('0x37')](_0x44bf5a));}else _0x2d35a3&&!_0x4a35f3&&(_0x45e066=_0x4fcbca[_0x3331('0x37')](_0x44bf5a));}else{const _0x33dee5=_0x4fcbca[_0x3331('0x6e')](_0x3331('0x6b')),_0x5d4aad=_0x4fcbca['createElement']('tableCellSuggestion');_0x4fcbca['wrap'](_0x4fcbca[_0x3331('0x37')](_0x44bf5a),_0x5d4aad),_0x4fcbca[_0x3331('0x9b')](_0x33dee5,_0x44bf5a,0x0);for(const _0x4cb0a9 of Array[_0x3331('0x47')](_0x417a97[_0x3331('0x1a')]()))_0x4fcbca['insert'](_0x4cb0a9,_0x33dee5,_0x3331('0x60'));_0x33e493=_0x4fcbca[_0x3331('0x15')](_0x33dee5),_0x45e066=_0x4fcbca['createRangeOn'](_0x5d4aad);}const _0x1fe99e=Array[_0x3331('0x47')](_0x417a97[_0x3331('0x91')]())[_0x3331('0x90')](([_0xb19faf])=>le[_0x3331('0x26')](_0xb19faf));_0x2ae133['cells'][_0x3331('0x5')]({'element':_0x44bf5a,'attributes':_0x1fe99e[_0x3331('0x8a')]?Object[_0x3331('0x65')](_0x1fe99e):null}),_0x33e493&&_0x2ae133[_0x3331('0x59')][_0x3331('0x5')](_0x33e493),_0x45e066&&_0x2ae133[_0x3331('0x1b')][_0x3331('0x5')](_0x45e066);},{'priority':_0x3331('0x7c')}),_0x5f0e6d['on'](_0x3331('0x76'),(_0x3880cf,_0x2b0eb9)=>{const [_0x200524,_0x28a450={}]=_0x2b0eb9;if(!_0x2ae133)return;const _0x3994d0=_0x28a450['at']||0x0,_0x22ab4f=_0x28a450[_0x3331('0x7')]||0x1;_0x2ae133[_0x3331('0x40')]=new Array(_0x22ab4f)['fill'](_0x3994d0)[_0x3331('0x61')]((_0x592b1f,_0x457b03)=>_0x592b1f+_0x457b03);for(const {cell:_0xc9d322}of _0x5f0e6d[_0x3331('0x4a')](_0x200524,{'startColumn':_0x3994d0,'endColumn':_0x3994d0+_0x22ab4f-0x1}))_0x2ae133[_0x3331('0x4c')][_0x3331('0x5')](_0x1be1f8[_0x3331('0xc')][_0x3331('0x15')](_0xc9d322));},{'priority':'low'}),_0x5f0e6d['on'](_0x3331('0x7b'),(_0x581e75,_0x39ff32)=>{const [_0x3bd2d4,_0x57471d={}]=_0x39ff32;if(!_0x2ae133)return;const _0x3f8e73=_0x57471d['at']||0x0,_0x480768=_0x57471d['rows']||0x1;_0x2ae133['rowInsertionIndexes']=new Array(_0x480768)[_0x3331('0x5f')](_0x3f8e73)['map']((_0x2cdb81,_0x4289e2)=>_0x2cdb81+_0x4289e2);for(const {cell:_0x15ac76}of _0x5f0e6d[_0x3331('0x4a')](_0x3bd2d4,{'startRow':_0x3f8e73,'endRow':_0x3f8e73+_0x480768-0x1}))_0x2ae133[_0x3331('0x14')][_0x3331('0x5')](_0x1be1f8[_0x3331('0xc')][_0x3331('0x15')](_0x15ac76));},{'priority':_0x3331('0x7f')}),_0x41963f[_0x3331('0xa9')][_0x3331('0x8b')](_0x88aa72=>{if(_0x88aa72[_0x3331('0x3f')]&&_0x88aa72[_0x3331('0x3f')][_0x3331('0x58')]('tablePaste'))return _0x88aa72[_0x3331('0xd')]?{}:{'type':_0x3331('0x99'),'content':_0x2d5d59(_0x1be1f8['locale'],_0x3331('0x3'))};});const _0x2da9d0=()=>{};for(const _0x44721a of[_0x3331('0x6'),'tablePasteColumn',_0x3331('0x6f'),_0x3331('0x70')])_0x41963f['_suggestionFactory'][_0x3331('0x9f')](_0x3331('0x99'),_0x44721a,_0x3331('0x5d'),_0x2da9d0),_0x41963f['_suggestionFactory'][_0x3331('0x9f')]('deletion',_0x44721a,_0x3331('0x5d'),_0x2da9d0);_0x41963f[_0x3331('0x1e')]['registerCustomCallback']('formatBlock','tablePasteCell',_0x3331('0x9d'),_0x2da9d0),_0x41963f[_0x3331('0x1e')]['registerCustomCallback'](_0x3331('0x52'),_0x3331('0x70'),_0x3331('0x13'),(_0x4c2d7e,_0x28aeb5,_0x2939f7)=>{const _0x5b8769=_0x4c2d7e['map'](_0x59c65e=>_0x59c65e[_0x3331('0x20')]())[_0x3331('0x90')](_0x54c4d3=>_0x54c4d3),_0x58d486=new Map(_0x5b8769[_0x3331('0x61')](_0x23f1e3=>[_0x23f1e3,null]));if(_0x2ae133)for(const {element:_0x3d89d3,attributes:_0x4e2950}of _0x2ae133[_0x3331('0x8f')])_0x4e2950&&_0x58d486['set'](_0x3d89d3,_0x4e2950);else{if(_0x2939f7&&_0x2939f7['markerAttributes'])for(const [_0x135f79,_0x18fa4e]of Object[_0x3331('0x68')](_0x2939f7[_0x3331('0x2c')])){const _0x3cd177=_0x1be1f8['model'][_0x3331('0x55')]['get'](_0x135f79),_0x513180=_0x3cd177?_0x3cd177[_0x3331('0x16')]()[_0x3331('0x20')]():null;_0x513180&&_0x58d486[_0x3331('0x8c')](_0x513180,_0x18fa4e);}}_0x1be1f8[_0x3331('0xc')][_0x3331('0x95')](_0x1b2e45=>{for(const [_0x4703b8,_0x1cd12a]of _0x58d486)_0x1b2e45[_0x3331('0x56')]({...ae,..._0x1cd12a},_0x4703b8);});});const _0x31c7ff=(_0xe758d8,_0x21f29d)=>{_0x41963f[_0x3331('0x1e')][_0x3331('0x9f')](_0xe758d8,'tablePaste',_0x21f29d,(_0x1b5c53,_0x361ae0,_0x59db61)=>{_0x1be1f8[_0x3331('0xc')][_0x3331('0x95')](_0x22e8f5=>{const _0x41fd67=[];for(const _0x52d504 of _0x1b5c53){const _0x222a1b=_0x52d504[_0x3331('0xab')][_0x3331('0x3e')];_0x222a1b['is']('element',_0x3331('0x6b'))&&_0x41fd67[_0x3331('0x5')](_0x222a1b);}_0x41963f[_0x3331('0x1e')][_0x3331('0x84')](_0xe758d8,null,_0x21f29d)(_0x1b5c53,_0x361ae0,_0x59db61);for(const _0x49ed68 of _0x41fd67)_0x3331('0x92')!=_0x49ed68[_0x3331('0x6c')]['rootName']&&_0x22e8f5[_0x3331('0x5a')](_0x49ed68);});});};_0x31c7ff(_0x3331('0x99'),'accept'),_0x31c7ff('insertion',_0x3331('0x9d')),_0x31c7ff(_0x3331('0x32'),_0x3331('0x13')),_0x31c7ff('deletion','discard'),_0x41963f[_0x3331('0x1e')][_0x3331('0x9f')](_0x3331('0x99'),_0x3331('0x6f'),_0x3331('0x9d'),_0x4c31a7=>{const _0x326605=_0x4c31a7[_0x3331('0x61')](_0x29ec21=>_0x29ec21[_0x3331('0x20')]()),_0x297eed=_0x326605[0x0][_0x3331('0x24')](_0x3331('0xa6')),{minRow:_0x5ec879,maxRow:_0x4af109}=_0x4ca314['_getCoordsForCells'](_0x326605);_0x5f0e6d[_0x3331('0x7d')](_0x297eed,{'at':_0x5ec879,'rows':_0x4af109-_0x5ec879+0x1});}),_0x41963f[_0x3331('0x1e')][_0x3331('0x9f')](_0x3331('0x99'),_0x3331('0x0'),'discard',_0x1e955c=>{const _0x45b93a=_0x1e955c[_0x3331('0x61')](_0x128392=>_0x128392[_0x3331('0x20')]()),_0x15d4a2=_0x45b93a[0x0][_0x3331('0x24')](_0x3331('0xa6')),{minColumn:_0x2d5f99,maxColumn:_0x40a376}=_0x4ca314[_0x3331('0x45')](_0x45b93a);_0x5f0e6d[_0x3331('0x8d')](_0x15d4a2,{'at':_0x2d5f99,'columns':_0x40a376-_0x2d5f99+0x1});});const _0x52a520=(_0x39dd2b,_0xe0e35a)=>{if(!_0xe0e35a[_0x3331('0x3f')]||!_0xe0e35a[_0x3331('0x3f')][_0x3331('0x58')](_0x3331('0x6')))return;const _0xaf947c=_0xe0e35a[_0x3331('0x83')][_0x3331('0x93')],_0x5600d5=_0x41963f[_0x3331('0xa2')]()[_0x3331('0x90')](_0xbd2075=>_0xbd2075[_0x3331('0x1d')]&&_0xbd2075[_0x3331('0x83')]&&_0xbd2075['attributes']['tablePasteChainId']==_0xaf947c);_0x5600d5['length']&&_0xe0e35a['getAllAdjacentSuggestions']()[_0x3331('0x8a')]!=_0x5600d5[_0x3331('0x8a')]&&_0x5600d5[_0x3331('0x46')]((_0x48616f,_0xe9b7ac)=>(_0x48616f[_0x3331('0x2d')]=_0xe9b7ac,_0xe9b7ac[_0x3331('0xd')]=_0x48616f,_0xe9b7ac));};function _0x52724b(_0x5cfef5,_0x578957=!0x0){const {id:_0x2eaab2}=_0x41963f[_0x3331('0x30')](_0x5cfef5['markerName']),_0x20998b=[_0x3331('0x64'),_0x3331('0x2a')],_0x2e46d8=_0x41963f[_0x3331('0x5c')][_0x3331('0x26')](_0x5cfef5[_0x3331('0xa3')]);return _0x2e46d8&&_0x20998b[_0x3331('0x5')](_0x3331('0x74')),{'classes':_0x20998b,'attributes':{'data-suggestion':_0x2eaab2},'priority':_0x2e46d8&&_0x578957?0xbc2:0xbb8};}_0x41963f['on'](_0x3331('0x94'),_0x52a520,{'priority':_0x3331('0x7c')}),_0x41963f['on'](_0x3331('0x1'),_0x52a520,{'priority':_0x3331('0x7c')}),_0x1be1f8[_0x3331('0xc')][_0x3331('0x6d')]['registerPostFixer'](()=>{let _0xef31ba=!0x1;const _0x27d61f=Array[_0x3331('0x47')](_0x1be1f8[_0x3331('0xc')][_0x3331('0x6d')][_0x3331('0x22')][_0x3331('0x35')]());for(const {name:_0x57f5e9,data:_0x46e625}of _0x27d61f){const {group:_0x238df0,type:_0x58d8e1,id:_0x76ddad}=_0x41963f[_0x3331('0x30')](_0x57f5e9);if(_0x3331('0x34')!=_0x238df0||'deletion'!=_0x58d8e1||_0x46e625[_0x3331('0x9e')])continue;if(!_0x41963f[_0x3331('0x27')](_0x76ddad))continue;const _0x991e5e=_0x41963f[_0x3331('0x66')](_0x76ddad)[_0x3331('0x5b')](),_0x1c4d24=_0x1be1f8[_0x3331('0x6a')]['get']('Users')['me'];for(const _0x30ca16 of _0x41963f[_0x3331('0xa2')]()){if(!_0x30ca16[_0x3331('0x1d')]||_0x30ca16[_0x3331('0x97')]!=_0x1c4d24)continue;if(_0x3331('0x52')!=_0x30ca16[_0x3331('0x4e')]||_0x3331('0x70')!=_0x30ca16['subType'])continue;if(_0x30ca16['getRanges']()[_0x3331('0x53')](_0x5b686f=>_0x991e5e['some'](_0x1453e8=>_0x1453e8['containsRange'](_0x5b686f,!0x0))))for(const _0x1ee39b of _0x30ca16[_0x3331('0x1f')]())_0x1ee39b[_0x3331('0x1d')]&&(_0x1ee39b['discard'](),_0xef31ba=!0x0);}}return _0xef31ba;}),_0x1be1f8[_0x3331('0xc')][_0x3331('0x6d')][_0x3331('0x44')](_0x3fe7c5=>{const _0x53cf6b=_0x1be1f8[_0x3331('0x17')][_0x3331('0x88')](_0x3331('0xad'));if(!_0x53cf6b||!_0x53cf6b[_0x3331('0x11')][_0x3331('0x18')](_0x3fe7c5[_0x3331('0x21')]))return!0x1;let _0xa935b4=!0x1;const _0x448e28=_0x1be1f8[_0x3331('0x6a')][_0x3331('0x88')](_0x3331('0x75'))['me'],_0x3e704e=_0x1be1f8['model'][_0x3331('0x6d')][_0x3331('0x22')][_0x3331('0x96')](),_0xff84cc=Array[_0x3331('0x47')](_0x1be1f8['model']['document'][_0x3331('0x22')][_0x3331('0x35')]())[_0x3331('0x90')](({name:_0x2d6584,data:_0x1f2062})=>{const {group:_0x243510,subType:_0x5b42d9,authorId:_0xb297e0}=_0x41963f[_0x3331('0x30')](_0x2d6584);return _0x3331('0x34')==_0x243510&&_0x3331('0x6')==_0x5b42d9&&_0xb297e0==_0x448e28['id']&&!_0x1f2062[_0x3331('0x9e')];});for(const _0x572a70 of _0x3e704e){if(_0x3331('0x9b')!=_0x572a70[_0x3331('0x4e')]||_0x3331('0x6b')!=_0x572a70['name']||0x1!=_0x572a70['length'])continue;const _0x531165=_0x3fe7c5['createRange'](_0x572a70[_0x3331('0xa4')],_0x572a70[_0x3331('0xa4')]['getShiftedBy'](0x1));if(!_0xff84cc['find'](({data:_0x46b824})=>_0x46b824[_0x3331('0x49')][_0x3331('0x33')](_0x531165)))for(const {name:_0x51e175,data:_0x265d62}of _0xff84cc)if(_0x531165['containsRange'](_0x265d62[_0x3331('0x49')])){_0x3fe7c5[_0x3331('0x3b')](_0x51e175,{'range':_0x531165}),_0xa935b4=!0x0;break;}}return _0xa935b4;}),_0x1be1f8['model'][_0x3331('0x6d')]['registerPostFixer'](_0xc1c2e2=>{let _0x49596d=!0x1;const _0x4170ac=_0x1be1f8[_0x3331('0x6a')]['get'](_0x3331('0x75'))['me'],_0x4dce32=_0x41963f[_0x3331('0xa2')]()[_0x3331('0x90')](_0x442419=>_0x442419['isInContent']&&_0x442419[_0x3331('0x97')]==_0x4170ac),_0x59bf5c=new Set(),_0x43f791=new Set();for(const _0x35198c of _0x4dce32)if(_0x3331('0x6')==_0x35198c[_0x3331('0x3f')])for(const _0x4eea82 of _0x35198c['getMarkers']()){const _0x91df53=_0x4eea82['getRange']()[_0x3331('0x20')]();if(_0x91df53){if(_0x91df53['is'](_0x3331('0x4f'),'tableCellSuggestion')&&ce(_0x91df53)){_0x35198c[_0x3331('0x39')](_0x4eea82[_0x3331('0x42')]),_0x59bf5c[_0x3331('0x86')](_0x91df53),_0x49596d=!0x0;const _0x5c8a0e=_0x91df53[_0x3331('0x1c')],_0x13cd7e=_0x91df53[_0x3331('0x2b')],_0x1e0174=_0x5c8a0e&&_0x5c8a0e['is'](_0x3331('0x4f'),_0x3331('0x6b')),_0x6fe74d=_0x13cd7e&&_0x13cd7e['is'](_0x3331('0x4f'),_0x3331('0x6b'));_0x1e0174&&!_0x59bf5c[_0x3331('0x18')](_0x5c8a0e)&&_0x43f791[_0x3331('0x86')](_0x5c8a0e),_0x6fe74d&&!_0x59bf5c[_0x3331('0x18')](_0x13cd7e)&&_0x43f791['add'](_0x13cd7e);}else _0x91df53['is'](_0x3331('0x4f'),_0x3331('0x98'))&&_0x91df53[_0x3331('0x19')]&&(_0x35198c['removeMarker'](_0x4eea82['name']),_0x49596d=!0x0);}}else{if('tablePasteCell'==_0x35198c[_0x3331('0x3f')]){if(!_0x35198c[_0x3331('0x83')]||!_0x35198c[_0x3331('0x83')][_0x3331('0x93')])continue;const _0x40bcd3=_0x35198c[_0x3331('0x83')][_0x3331('0x2c')];if(_0x40bcd3&&Object[_0x3331('0xa5')](_0x40bcd3)['length'])continue;const _0x52711e=_0x35198c[_0x3331('0x83')][_0x3331('0x93')];let _0xb4699c=!0x0,_0x169f24=!0x0;for(const _0x11f130 of _0x4dce32)if(_0x11f130[_0x3331('0x3f')]&&_0x11f130[_0x3331('0x3f')][_0x3331('0x58')]('tablePaste')){if(!_0x11f130[_0x3331('0x83')][_0x3331('0x93')]){_0x169f24=!0x1;break;}if(_0x11f130['id']!=_0x35198c['id']&&_0x11f130[_0x3331('0x83')][_0x3331('0x93')]==_0x52711e){_0xb4699c=!0x1;break;}}_0x169f24&&_0xb4699c&&(_0x35198c[_0x3331('0x2f')](),_0x49596d=!0x0);}}for(const _0x38c43a of _0x59bf5c)_0xc1c2e2['remove'](_0x38c43a);for(const _0x3b5e11 of _0x43f791)_0xc1c2e2[_0x3331('0x5a')](_0x3b5e11);return _0x49596d;}),_0x1be1f8[_0x3331('0x87')][_0x3331('0x67')](_0x3331('0xa0'))['markerToHighlight']({'model':_0x3331('0x2'),'view':(_0x19f34a,_0x35d953)=>_0x52724b(_0x19f34a),'converterPriority':'high'}),_0x1be1f8[_0x3331('0x87')][_0x3331('0x67')](_0x3331('0x3a'))[_0x3331('0x5e')]({'model':_0x3331('0x2'),'view':(_0xdd62e4,_0x1b110b)=>_0x1b110b[_0x3331('0x9a')]['showSuggestionHighlights']?_0x52724b(_0xdd62e4,!0x1):null,'converterPriority':_0x3331('0x7c')});const _0x5b763a=_0x1be1f8[_0x3331('0x31')][_0x3331('0x85')];this[_0x3331('0xa7')](_0x5b763a[_0x3331('0x6d')],'clipboardOutput',(_0x294140,_0x54cf5f)=>{const _0x31885f=[];for(const _0x2826b5 of _0x5b763a[_0x3331('0x37')](_0x54cf5f[_0x3331('0x9')])[_0x3331('0x10')]())_0x2826b5['is'](_0x3331('0x4f'),_0x3331('0x41'))&&_0x31885f[_0x3331('0x5')](_0x2826b5);_0x5b763a[_0x3331('0x95')](_0x3576d3=>{for(const _0x393953 of _0x31885f)_0x3576d3[_0x3331('0xa1')](_0x3576d3[_0x3331('0x37')](_0x393953),_0x3576d3[_0x3331('0x25')](_0x393953)),_0x3576d3[_0x3331('0xae')](_0x393953);});});}}function ce(_0x558694){if(_0x558694[_0x3331('0x19')])return!0x0;const _0x16e66a=_0x558694['getChild'](0x0);return _0x16e66a['is']('element','paragraph')&&_0x16e66a[_0x3331('0x19')];}function fe(_0x1203ed,_0x5662f5={},_0x4e9173){for(const {isAnchor:_0x3e9e24,cellHeight:_0x49141c,cellWidth:_0x471779}of _0x4e9173['createTableWalker'](_0x1203ed,{'includeAllSlots':!0x0,..._0x5662f5}))if(!_0x3e9e24||0x1!=_0x49141c||0x1!=_0x471779)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4ce8=['some','tableCellHorizontalAlignment','for','low','$graveyard','subType','requires','fill','createPositionBefore','getRanges','removeColumns','insertion','setAttributes','getRange','getContainedElement','markers','tablePasteRow','deletion','showSuggestionHighlights','suggestion-td','conversion','name','elementToElement','insert','cell','startsWith','TrackChangesEditing','columnInsertionIndexes','formatBlock','getItems','forceDefaultExecution','unwrap','removeMarker','tableCellBorderWidth','getSuggestions','rowInsertionIndexes','Users','discard','suggestion','selection','join','createElement','updateMarker','ck-suggestion-marker--active','column','registerCustomCallback','getChild','insertionRanges','has','markerToHighlight','getSelectionAffectedTableCells','getChangedMarkers','attributes','batch','register','end','createTableWalker','move','_getCoordsForCells','redo','newRange','locale','TableClipboard','_suggestionFactory','from','fromEntries','tableCellBorderColor','createRangeOn','tablePasteCell','tableCellSuggestion','stop','commands','get','getTableIfOnlyTableInContent','suggestion:formatBlock:tablePasteCell','insertContent','clipboardOutput','createRangeIn','paragraph','endRow','change','author','findAncestor','getRowIndexes','accept','getAllAdjacentSuggestions','editor','columns','content','keys','find','tablePasteChainId','getChildren','every','position','rowInsertionRanges','isInContent','push','TableUtils','listenTo','suggestionUnloaded','previous','high','remove','markMultiRangeBlockFormat','markMultiRangeInsertion','getShiftedBy','first','hasSuggestion','getChanges','*Replace\x20table\x20cells*','cells','documentSelection','tablePaste','oldRange','filter','isEmpty','tableCell','tableCellBorderStyle','type','createRange','markerAttributes','tableCellPadding','tableCellBackgroundColor','markMultiRangeDeletion','includes','wrap','table','getMarkers','setAttribute','trackChanges','_isForcedDefaultExecutionBlock','document','tablePasteColumn','removeMarkers','model','add','map','length','isEqual','plugins','insertColumns','registerPostFixer','_splitMarkerName','ck-suggestion-marker-insertion','last','reduce','suggestionLoaded','getColumns','row','deletionRanges','element','previousSibling','ck-suggestion-marker','afterInit','rows','differ','set','columnInsertionRanges','getAttributes','markerName'];(function(_0x5bd0a8,_0x4ce873){const _0xa19b0e=function(_0x4cf426){while(--_0x4cf426){_0x5bd0a8['push'](_0x5bd0a8['shift']());}};_0xa19b0e(++_0x4ce873);}(_0x4ce8,0x1e6));const _0xa19b=function(_0x5bd0a8,_0x4ce873){_0x5bd0a8=_0x5bd0a8-0x0;let _0xa19b0e=_0x4ce8[_0x5bd0a8];return _0xa19b0e;};import{getTranslation as _0x1ead58}from'../utils/common-translations';import{Plugin as _0x11cc24}from'ckeditor5/src/core';import{uid as _0x8218da,priorities as _0xa863c5}from'ckeditor5/src/utils';import _0x434306 from'./table';const le=[_0xa19b('0x1e'),_0xa19b('0x3f'),_0xa19b('0x73'),_0xa19b('0x9f'),'tableCellVerticalAlignment',_0xa19b('0x78'),_0xa19b('0x77')],ae=Object[_0xa19b('0x3e')](le[_0xa19b('0x86')](_0x1b67fb=>[_0x1b67fb,null]));export default class kt extends _0x11cc24{static get[_0xa19b('0x3')](){return[_0x434306];}[_0xa19b('0x97')](){const _0x41d380=this[_0xa19b('0x53')];if(!_0x41d380[_0xa19b('0x89')][_0xa19b('0x2d')]('TableClipboard'))return;const _0x3bad02=_0x41d380[_0xa19b('0x89')][_0xa19b('0x45')](_0xa19b('0x17')),_0x28ba8b=_0x41d380[_0xa19b('0x89')][_0xa19b('0x45')](_0xa19b('0x5f')),_0x38f2ba=_0x41d380[_0xa19b('0x89')]['get'](_0x434306),_0xb0d2e8=_0x41d380[_0xa19b('0x89')][_0xa19b('0x45')](_0xa19b('0x3b'));_0x38f2ba['_tablePostFixingSubtypes']['push']('tablePasteRow',_0xa19b('0x82')),_0x41d380['model']['schema'][_0xa19b('0x33')](_0xa19b('0x42'),{'allowIn':_0xa19b('0x72'),'allowContentOf':_0xa19b('0x72'),'isLimit':!0x0}),_0x41d380['conversion'][_0xa19b('0x13')]({'model':'tableCellSuggestion','view':_0xa19b('0x10')});let _0x4dc28f=null;_0x41d380[_0xa19b('0x84')]['on'](_0xa19b('0x48'),(_0x54c81e,_0x5638e6)=>{const [_0x53773d,_0x370adb]=_0x5638e6,_0x17b4c1=_0x5638e6[_0x5638e6[_0xa19b('0x87')]-0x1];_0x17b4c1&&_0x17b4c1[_0xa19b('0x1b')]||_0x3bad02[_0xa19b('0x80')]||this[_0xa19b('0x53')][_0xa19b('0x44')][_0xa19b('0x45')](_0xa19b('0x7f'))['value']&&function(_0x3ca60a,_0x1a4208,_0x4b7b19,_0x7a291e,_0x401e61){if(_0x1a4208&&!_0x1a4208['is'](_0xa19b('0x6d')))return!0x1;const _0x150ae4=_0x401e61[_0xa19b('0x46')](_0x3ca60a,_0x4b7b19);if(!_0x150ae4||!fe(_0x150ae4,void 0x0,_0x7a291e))return!0x1;const _0x790baf=_0x7a291e[_0xa19b('0x2f')](_0x4b7b19['document'][_0xa19b('0x24')]);if(!_0x790baf[_0xa19b('0x87')])return!0x1;const _0x2d015d=_0x790baf[0x0][_0xa19b('0x4f')](_0xa19b('0x7c')),_0x2f2e7d=_0x7a291e[_0xa19b('0x50')](_0x790baf),_0x1aacdd=_0x7a291e['getColumnIndexes'](_0x790baf),_0x1423ae={'startRow':_0x2f2e7d[_0xa19b('0x68')],'endRow':_0x2f2e7d['last'],'startColumn':_0x1aacdd[_0xa19b('0x68')],'endColumn':_0x1aacdd[_0xa19b('0x8e')]};return 0x1==_0x790baf[_0xa19b('0x87')]&&(_0x1423ae[_0xa19b('0x4c')]+=_0x7a291e['getRows'](_0x150ae4)-0x1,_0x1423ae['endColumn']+=_0x7a291e[_0xa19b('0x91')](_0x150ae4)-0x1),fe(_0x2d015d,_0x1423ae,_0x7a291e);}(_0x53773d,_0x370adb,_0x41d380[_0xa19b('0x84')],_0x28ba8b,_0xb0d2e8)&&(_0x54c81e[_0xa19b('0x43')](),_0x4dc28f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41d380[_0xa19b('0x84')]['change'](()=>{_0x41d380[_0xa19b('0x84')][_0xa19b('0x48')](_0x5638e6[0x0],_0x5638e6[0x1],_0x5638e6[0x2],{'forceDefaultExecution':!0x0});const _0x222ff0=_0x8218da(),{rowInsertionRanges:_0x4e5dc8,columnInsertionRanges:_0x5172c8,insertionRanges:_0x5f15ce,deletionRanges:_0x2b2c08,cells:_0x33d1f7}=_0x4dc28f;_0x4e5dc8[_0xa19b('0x87')]&&_0x3bad02[_0xa19b('0x66')](_0x4e5dc8,_0xa19b('0xd'),{'tablePasteChainId':_0x222ff0}),_0x5172c8[_0xa19b('0x87')]&&_0x3bad02[_0xa19b('0x66')](_0x5172c8,_0xa19b('0x82'),{'tablePasteChainId':_0x222ff0}),_0x5f15ce[_0xa19b('0x87')]&&_0x3bad02[_0xa19b('0x66')](_0x5f15ce,'tablePaste',{'tablePasteChainId':_0x222ff0,'skipNestingCheck':!0x0}),_0x2b2c08[_0xa19b('0x87')]&&_0x3bad02[_0xa19b('0x79')](_0x2b2c08,_0xa19b('0x6e'),{'tablePasteChainId':_0x222ff0,'skipNestingCheck':!0x0});const _0x3dd199=_0x3bad02[_0xa19b('0x65')](_0x33d1f7[_0xa19b('0x86')](({element:_0x149d50})=>_0x149d50),{'formatGroupId':_0x8218da()},[],_0xa19b('0x41'),{'tablePasteChainId':_0x222ff0});if(_0x3dd199){const _0x586124=_0x3dd199[_0xa19b('0x7d')](),_0x56b34d=[];for(const {element:_0x58dfb3,attributes:_0x40691a}of _0x33d1f7){if(!_0x40691a)continue;const _0x2ed30a=_0x41d380[_0xa19b('0x84')]['createRangeOn'](_0x58dfb3),_0x317327=_0x586124['find'](_0x51873d=>_0x51873d['getRange']()[_0xa19b('0x88')](_0x2ed30a));_0x317327&&_0x56b34d['push']([_0x317327[_0xa19b('0x12')],_0x40691a]);}_0x56b34d[_0xa19b('0x87')]&&_0x3dd199[_0xa19b('0x7e')](_0xa19b('0x76'),Object[_0xa19b('0x3e')](_0x56b34d));}_0x4dc28f=null;}));},{'priority':_0xa863c5[_0xa19b('0x63')]+0xa}),_0x41d380[_0xa19b('0x89')][_0xa19b('0x45')](_0xa19b('0x3b'))['on']('_replaceTableSlotCell',(_0x11ffb6,_0x26084a)=>{const [_0x1fd881,_0x344d37,,_0x1b4300]=_0x26084a;if(!_0x4dc28f)return;_0x11ffb6[_0xa19b('0x43')]();const _0x17dea2=_0x1fd881[_0xa19b('0x15')],_0x408f17=_0x344d37,_0x18dc8b=ce(_0x17dea2),_0x4effb3=ce(_0x408f17);_0x11ffb6['return']=_0x17dea2;let _0x3e7950=null,_0x639052=null;if(_0x4effb3||_0x18dc8b){if(_0x18dc8b&&!_0x4effb3){_0x1b4300[_0xa19b('0x64')](_0x17dea2[_0xa19b('0x2b')](0x0));for(const _0x106f47 of Array[_0xa19b('0x3d')](_0x408f17[_0xa19b('0x59')]()))_0x1b4300[_0xa19b('0x14')](_0x106f47,_0x17dea2,_0xa19b('0x34'));const _0x3bf04f=_0x4dc28f[_0xa19b('0x20')][_0xa19b('0x7a')](_0x1fd881[_0xa19b('0x92')]),_0x377027=_0x4dc28f[_0xa19b('0x18')][_0xa19b('0x7a')](_0x1fd881[_0xa19b('0x29')]);_0x3bf04f||_0x377027||(_0x3e7950=_0x1b4300['createRangeIn'](_0x17dea2));}else _0x4effb3&&!_0x18dc8b&&(_0x639052=_0x1b4300[_0xa19b('0x4a')](_0x17dea2));}else{const _0x25396f=_0x1b4300['createElement'](_0xa19b('0x42')),_0x34bc8c=_0x1b4300[_0xa19b('0x26')]('tableCellSuggestion');_0x1b4300[_0xa19b('0x7b')](_0x1b4300[_0xa19b('0x4a')](_0x17dea2),_0x34bc8c),_0x1b4300[_0xa19b('0x14')](_0x25396f,_0x17dea2,0x0);for(const _0x1e426c of Array['from'](_0x408f17[_0xa19b('0x59')]()))_0x1b4300[_0xa19b('0x14')](_0x1e426c,_0x25396f,_0xa19b('0x34'));_0x3e7950=_0x1b4300['createRangeOn'](_0x25396f),_0x639052=_0x1b4300[_0xa19b('0x40')](_0x34bc8c);}const _0x4467b4=Array[_0xa19b('0x3d')](_0x408f17[_0xa19b('0x9c')]())[_0xa19b('0x70')](([_0x33dbe5])=>le[_0xa19b('0x7a')](_0x33dbe5));_0x4dc28f[_0xa19b('0x6c')]['push']({'element':_0x17dea2,'attributes':_0x4467b4[_0xa19b('0x87')]?Object[_0xa19b('0x3e')](_0x4467b4):null}),_0x3e7950&&_0x4dc28f[_0xa19b('0x2c')][_0xa19b('0x5e')](_0x3e7950),_0x639052&&_0x4dc28f[_0xa19b('0x93')]['push'](_0x639052);},{'priority':'high'}),_0x28ba8b['on'](_0xa19b('0x8a'),(_0x178c83,_0x4ed503)=>{const [_0x3d86ef,_0x4fe36b={}]=_0x4ed503;if(!_0x4dc28f)return;const _0x3523d7=_0x4fe36b['at']||0x0,_0x141a98=_0x4fe36b[_0xa19b('0x54')]||0x1;_0x4dc28f[_0xa19b('0x18')]=new Array(_0x141a98)['fill'](_0x3523d7)[_0xa19b('0x86')]((_0x267b99,_0xd42c14)=>_0x267b99+_0xd42c14);for(const {cell:_0x461c2d}of _0x28ba8b['createTableWalker'](_0x3d86ef,{'startColumn':_0x3523d7,'endColumn':_0x3523d7+_0x141a98-0x1}))_0x4dc28f[_0xa19b('0x9b')][_0xa19b('0x5e')](_0x41d380[_0xa19b('0x84')]['createRangeOn'](_0x461c2d));},{'priority':_0xa19b('0x0')}),_0x28ba8b['on']('insertRows',(_0x2d9cdd,_0x498889)=>{const [_0x264a0b,_0x47a70f={}]=_0x498889;if(!_0x4dc28f)return;const _0x4bf9e2=_0x47a70f['at']||0x0,_0x5e4dc4=_0x47a70f[_0xa19b('0x98')]||0x1;_0x4dc28f[_0xa19b('0x20')]=new Array(_0x5e4dc4)[_0xa19b('0x4')](_0x4bf9e2)[_0xa19b('0x86')]((_0x368b2d,_0x178a5f)=>_0x368b2d+_0x178a5f);for(const {cell:_0x534c5f}of _0x28ba8b[_0xa19b('0x35')](_0x264a0b,{'startRow':_0x4bf9e2,'endRow':_0x4bf9e2+_0x5e4dc4-0x1}))_0x4dc28f[_0xa19b('0x5c')][_0xa19b('0x5e')](_0x41d380[_0xa19b('0x84')][_0xa19b('0x40')](_0x534c5f));},{'priority':_0xa19b('0x0')}),_0x3bad02['_descriptionFactory']['registerDescriptionCallback'](_0x2f1fda=>{if(_0x2f1fda[_0xa19b('0x2')]&&_0x2f1fda['subType'][_0xa19b('0x16')](_0xa19b('0x6e')))return _0x2f1fda[_0xa19b('0x62')]?{}:{'type':_0xa19b('0x8'),'content':_0x1ead58(_0x41d380[_0xa19b('0x3a')],_0xa19b('0x6b'))};});const _0x4ce3f9=()=>{};for(const _0x23c704 of[_0xa19b('0x6e'),'tablePasteColumn','tablePasteRow',_0xa19b('0x41')])_0x3bad02[_0xa19b('0x3c')][_0xa19b('0x2a')]('insertion',_0x23c704,'join',_0x4ce3f9),_0x3bad02['_suggestionFactory'][_0xa19b('0x2a')](_0xa19b('0xe'),_0x23c704,_0xa19b('0x25'),_0x4ce3f9);_0x3bad02[_0xa19b('0x3c')][_0xa19b('0x2a')](_0xa19b('0x19'),'tablePasteCell','discard',_0x4ce3f9),_0x3bad02[_0xa19b('0x3c')][_0xa19b('0x2a')](_0xa19b('0x19'),_0xa19b('0x41'),'accept',(_0x5dd476,_0x45ad8f,_0x5bb545)=>{const _0x49a73e=_0x5dd476[_0xa19b('0x86')](_0x226ef4=>_0x226ef4[_0xa19b('0xb')]())[_0xa19b('0x70')](_0x6ab9b=>_0x6ab9b),_0x2a836c=new Map(_0x49a73e['map'](_0x2146a7=>[_0x2146a7,null]));if(_0x4dc28f)for(const {element:_0x1a0fb0,attributes:_0x44413b}of _0x4dc28f['cells'])_0x44413b&&_0x2a836c[_0xa19b('0x9a')](_0x1a0fb0,_0x44413b);else{if(_0x5bb545&&_0x5bb545[_0xa19b('0x76')])for(const [_0x264454,_0x14cbb5]of Object['entries'](_0x5bb545[_0xa19b('0x76')])){const _0x3abf7d=_0x41d380[_0xa19b('0x84')][_0xa19b('0xc')][_0xa19b('0x45')](_0x264454),_0x584538=_0x3abf7d?_0x3abf7d[_0xa19b('0xa')]()[_0xa19b('0xb')]():null;_0x584538&&_0x2a836c[_0xa19b('0x9a')](_0x584538,_0x14cbb5);}}_0x41d380[_0xa19b('0x84')][_0xa19b('0x4d')](_0xd58ebd=>{for(const [_0x2baf3d,_0x2e1724]of _0x2a836c)_0xd58ebd[_0xa19b('0x9')]({...ae,..._0x2e1724},_0x2baf3d);});});const _0x5af705=(_0x31e5f4,_0x10f8ce)=>{_0x3bad02[_0xa19b('0x3c')][_0xa19b('0x2a')](_0x31e5f4,_0xa19b('0x6e'),_0x10f8ce,(_0x405fb3,_0x474558,_0x4e4509)=>{_0x41d380[_0xa19b('0x84')][_0xa19b('0x4d')](_0x5d41ba=>{const _0x2c9c89=[];for(const _0x235588 of _0x405fb3){const _0x3626a8=_0x235588['start']['nodeAfter'];_0x3626a8['is']('element',_0xa19b('0x42'))&&_0x2c9c89[_0xa19b('0x5e')](_0x3626a8);}_0x3bad02[_0xa19b('0x3c')]['getSuggestionCallback'](_0x31e5f4,null,_0x10f8ce)(_0x405fb3,_0x474558,_0x4e4509);for(const _0x1d3137 of _0x2c9c89)_0xa19b('0x1')!=_0x1d3137['root']['rootName']&&_0x5d41ba[_0xa19b('0x1c')](_0x1d3137);});});};_0x5af705(_0xa19b('0x8'),_0xa19b('0x51')),_0x5af705(_0xa19b('0x8'),_0xa19b('0x22')),_0x5af705('deletion','accept'),_0x5af705(_0xa19b('0xe'),'discard'),_0x3bad02[_0xa19b('0x3c')][_0xa19b('0x2a')]('insertion',_0xa19b('0xd'),'discard',_0x5310ac=>{const _0x3526e3=_0x5310ac['map'](_0x1ec4c1=>_0x1ec4c1[_0xa19b('0xb')]()),_0x23d54e=_0x3526e3[0x0]['findAncestor'](_0xa19b('0x7c')),{minRow:_0x4ca47c,maxRow:_0x10969f}=_0x38f2ba[_0xa19b('0x37')](_0x3526e3);_0x28ba8b['removeRows'](_0x23d54e,{'at':_0x4ca47c,'rows':_0x10969f-_0x4ca47c+0x1});}),_0x3bad02['_suggestionFactory'][_0xa19b('0x2a')]('insertion','tablePasteColumn','discard',_0x5d5840=>{const _0x24c6c6=_0x5d5840['map'](_0x20e02a=>_0x20e02a[_0xa19b('0xb')]()),_0x2226f1=_0x24c6c6[0x0][_0xa19b('0x4f')](_0xa19b('0x7c')),{minColumn:_0x1d58d8,maxColumn:_0x4b0aba}=_0x38f2ba[_0xa19b('0x37')](_0x24c6c6);_0x28ba8b[_0xa19b('0x7')](_0x2226f1,{'at':_0x1d58d8,'columns':_0x4b0aba-_0x1d58d8+0x1});});const _0x1e4e4c=(_0x1ef885,_0xd9cf29)=>{if(!_0xd9cf29[_0xa19b('0x2')]||!_0xd9cf29['subType'][_0xa19b('0x16')](_0xa19b('0x6e')))return;const _0x461d1b=_0xd9cf29[_0xa19b('0x31')][_0xa19b('0x58')],_0x1ee082=_0x3bad02[_0xa19b('0x1f')]()[_0xa19b('0x70')](_0x1fa5ea=>_0x1fa5ea[_0xa19b('0x5d')]&&_0x1fa5ea['attributes']&&_0x1fa5ea[_0xa19b('0x31')][_0xa19b('0x58')]==_0x461d1b);_0x1ee082[_0xa19b('0x87')]&&_0xd9cf29[_0xa19b('0x52')]()[_0xa19b('0x87')]!=_0x1ee082[_0xa19b('0x87')]&&_0x1ee082[_0xa19b('0x8f')]((_0x16e669,_0x5dce40)=>(_0x16e669['next']=_0x5dce40,_0x5dce40['previous']=_0x16e669,_0x5dce40));};function _0x2ea0df(_0x4af9cf,_0x21c49c=!0x0){const {id:_0x33c698}=_0x3bad02[_0xa19b('0x8c')](_0x4af9cf[_0xa19b('0x9d')]),_0x274a87=[_0xa19b('0x96'),_0xa19b('0x8d')],_0x489472=_0x3bad02['activeMarkers'][_0xa19b('0x7a')](_0x4af9cf[_0xa19b('0x9d')]);return _0x489472&&_0x274a87[_0xa19b('0x5e')](_0xa19b('0x28')),{'classes':_0x274a87,'attributes':{'data-suggestion':_0x33c698},'priority':_0x489472&&_0x21c49c?0xbc2:0xbb8};}_0x3bad02['on'](_0xa19b('0x90'),_0x1e4e4c,{'priority':_0xa19b('0x63')}),_0x3bad02['on'](_0xa19b('0x61'),_0x1e4e4c,{'priority':_0xa19b('0x63')}),_0x41d380['model'][_0xa19b('0x81')][_0xa19b('0x8b')](()=>{let _0x4a3ed9=!0x1;const _0xabbff6=Array[_0xa19b('0x3d')](_0x41d380[_0xa19b('0x84')]['document']['differ'][_0xa19b('0x30')]());for(const {name:_0x57a8d5,data:_0x6fd9c1}of _0xabbff6){const {group:_0x1481d4,type:_0x2ac072,id:_0x8ef4a4}=_0x3bad02[_0xa19b('0x8c')](_0x57a8d5);if(_0xa19b('0x23')!=_0x1481d4||_0xa19b('0xe')!=_0x2ac072||_0x6fd9c1['oldRange'])continue;if(!_0x3bad02[_0xa19b('0x69')](_0x8ef4a4))continue;const _0x145e56=_0x3bad02['getSuggestion'](_0x8ef4a4)[_0xa19b('0x6')](),_0x4baaba=_0x41d380[_0xa19b('0x89')][_0xa19b('0x45')](_0xa19b('0x21'))['me'];for(const _0x42f4b3 of _0x3bad02[_0xa19b('0x1f')]()){if(!_0x42f4b3[_0xa19b('0x5d')]||_0x42f4b3[_0xa19b('0x4e')]!=_0x4baaba)continue;if(_0xa19b('0x19')!=_0x42f4b3['type']||_0xa19b('0x41')!=_0x42f4b3[_0xa19b('0x2')])continue;if(_0x42f4b3['getRanges']()[_0xa19b('0x5a')](_0x49a1d8=>_0x145e56[_0xa19b('0x9e')](_0x410f21=>_0x410f21['containsRange'](_0x49a1d8,!0x0))))for(const _0x2ba9fa of _0x42f4b3[_0xa19b('0x52')]())_0x2ba9fa[_0xa19b('0x5d')]&&(_0x2ba9fa[_0xa19b('0x22')](),_0x4a3ed9=!0x0);}}return _0x4a3ed9;}),_0x41d380['model'][_0xa19b('0x81')]['registerPostFixer'](_0x3c81d9=>{const _0x29ab09=_0x41d380[_0xa19b('0x44')][_0xa19b('0x45')](_0xa19b('0x38'));if(!_0x29ab09||!_0x29ab09['_createdBatches'][_0xa19b('0x2d')](_0x3c81d9[_0xa19b('0x32')]))return!0x1;let _0x2e1070=!0x1;const _0x365d29=_0x41d380[_0xa19b('0x89')][_0xa19b('0x45')](_0xa19b('0x21'))['me'],_0x276505=_0x41d380['model']['document'][_0xa19b('0x99')][_0xa19b('0x6a')](),_0x2d30c9=Array[_0xa19b('0x3d')](_0x41d380[_0xa19b('0x84')][_0xa19b('0x81')]['differ'][_0xa19b('0x30')]())[_0xa19b('0x70')](({name:_0x276e71,data:_0x3c5317})=>{const {group:_0x43eee6,subType:_0x3956df,authorId:_0x3b987e}=_0x3bad02[_0xa19b('0x8c')](_0x276e71);return _0xa19b('0x23')==_0x43eee6&&_0xa19b('0x6e')==_0x3956df&&_0x3b987e==_0x365d29['id']&&!_0x3c5317[_0xa19b('0x6f')];});for(const _0x387714 of _0x276505){if(_0xa19b('0x14')!=_0x387714[_0xa19b('0x74')]||_0xa19b('0x42')!=_0x387714[_0xa19b('0x12')]||0x1!=_0x387714['length'])continue;const _0x3d66e2=_0x3c81d9[_0xa19b('0x75')](_0x387714[_0xa19b('0x5b')],_0x387714[_0xa19b('0x5b')][_0xa19b('0x67')](0x1));if(!_0x2d30c9[_0xa19b('0x57')](({data:_0x4f1817})=>_0x4f1817[_0xa19b('0x39')][_0xa19b('0x88')](_0x3d66e2)))for(const {name:_0x97f1b6,data:_0x169c53}of _0x2d30c9)if(_0x3d66e2['containsRange'](_0x169c53['newRange'])){_0x3c81d9[_0xa19b('0x27')](_0x97f1b6,{'range':_0x3d66e2}),_0x2e1070=!0x0;break;}}return _0x2e1070;}),_0x41d380[_0xa19b('0x84')]['document'][_0xa19b('0x8b')](_0x498de7=>{let _0x42c48e=!0x1;const _0x4b7229=_0x41d380['plugins']['get']('Users')['me'],_0x554d2f=_0x3bad02[_0xa19b('0x1f')]()[_0xa19b('0x70')](_0x350ebb=>_0x350ebb['isInContent']&&_0x350ebb[_0xa19b('0x4e')]==_0x4b7229),_0x5f02a9=new Set(),_0x1b949c=new Set();for(const _0x30e2df of _0x554d2f)if(_0xa19b('0x6e')==_0x30e2df['subType'])for(const _0xca443c of _0x30e2df['getMarkers']()){const _0x463b12=_0xca443c[_0xa19b('0xa')]()[_0xa19b('0xb')]();if(_0x463b12){if(_0x463b12['is'](_0xa19b('0x94'),'tableCellSuggestion')&&ce(_0x463b12)){_0x30e2df[_0xa19b('0x1d')](_0xca443c[_0xa19b('0x12')]),_0x5f02a9[_0xa19b('0x85')](_0x463b12),_0x42c48e=!0x0;const _0x18ad39=_0x463b12['nextSibling'],_0x587a00=_0x463b12[_0xa19b('0x95')],_0x192014=_0x18ad39&&_0x18ad39['is'](_0xa19b('0x94'),_0xa19b('0x42')),_0x1c68a9=_0x587a00&&_0x587a00['is']('element',_0xa19b('0x42'));_0x192014&&!_0x5f02a9['has'](_0x18ad39)&&_0x1b949c[_0xa19b('0x85')](_0x18ad39),_0x1c68a9&&!_0x5f02a9[_0xa19b('0x2d')](_0x587a00)&&_0x1b949c[_0xa19b('0x85')](_0x587a00);}else _0x463b12['is'](_0xa19b('0x94'),_0xa19b('0x4b'))&&_0x463b12[_0xa19b('0x71')]&&(_0x30e2df['removeMarker'](_0xca443c[_0xa19b('0x12')]),_0x42c48e=!0x0);}}else{if(_0xa19b('0x41')==_0x30e2df['subType']){if(!_0x30e2df['attributes']||!_0x30e2df[_0xa19b('0x31')][_0xa19b('0x58')])continue;const _0x4630c6=_0x30e2df[_0xa19b('0x31')][_0xa19b('0x76')];if(_0x4630c6&&Object[_0xa19b('0x56')](_0x4630c6)[_0xa19b('0x87')])continue;const _0x15fd3a=_0x30e2df[_0xa19b('0x31')][_0xa19b('0x58')];let _0x22afb5=!0x0,_0x3cc3ec=!0x0;for(const _0x3c1375 of _0x554d2f)if(_0x3c1375['subType']&&_0x3c1375[_0xa19b('0x2')]['startsWith'](_0xa19b('0x6e'))){if(!_0x3c1375[_0xa19b('0x31')]['tablePasteChainId']){_0x3cc3ec=!0x1;break;}if(_0x3c1375['id']!=_0x30e2df['id']&&_0x3c1375['attributes'][_0xa19b('0x58')]==_0x15fd3a){_0x22afb5=!0x1;break;}}_0x3cc3ec&&_0x22afb5&&(_0x30e2df[_0xa19b('0x83')](),_0x42c48e=!0x0);}}for(const _0x1190eb of _0x5f02a9)_0x498de7[_0xa19b('0x64')](_0x1190eb);for(const _0x210a08 of _0x1b949c)_0x498de7[_0xa19b('0x1c')](_0x210a08);return _0x42c48e;}),_0x41d380['conversion'][_0xa19b('0xa0')]('editingDowncast')[_0xa19b('0x2e')]({'model':_0xa19b('0x47'),'view':(_0x3656c1,_0x259d71)=>_0x2ea0df(_0x3656c1),'converterPriority':_0xa19b('0x63')}),_0x41d380[_0xa19b('0x11')][_0xa19b('0xa0')]('dataDowncast')[_0xa19b('0x2e')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x512492,_0x2df6f7)=>_0x2df6f7['options'][_0xa19b('0xf')]?_0x2ea0df(_0x512492,!0x1):null,'converterPriority':_0xa19b('0x63')});const _0x683a63=_0x41d380['editing']['view'];this[_0xa19b('0x60')](_0x683a63[_0xa19b('0x81')],_0xa19b('0x49'),(_0x2f0fc5,_0x4ba26b)=>{const _0x5e220f=[];for(const _0x203a0b of _0x683a63[_0xa19b('0x4a')](_0x4ba26b[_0xa19b('0x55')])[_0xa19b('0x1a')]())_0x203a0b['is'](_0xa19b('0x94'),_0xa19b('0x10'))&&_0x5e220f[_0xa19b('0x5e')](_0x203a0b);_0x683a63[_0xa19b('0x4d')](_0x2fa60b=>{for(const _0x5acf4b of _0x5e220f)_0x2fa60b[_0xa19b('0x36')](_0x2fa60b[_0xa19b('0x4a')](_0x5acf4b),_0x2fa60b[_0xa19b('0x5')](_0x5acf4b)),_0x2fa60b[_0xa19b('0x64')](_0x5acf4b);});});}}function ce(_0x25ea7b){if(_0x25ea7b[_0xa19b('0x71')])return!0x0;const _0x526a4e=_0x25ea7b[_0xa19b('0x2b')](0x0);return _0x526a4e['is'](_0xa19b('0x94'),_0xa19b('0x4b'))&&_0x526a4e[_0xa19b('0x71')];}function fe(_0x11ed63,_0x53a4cf={},_0x5d9dc4){for(const {isAnchor:_0x33c667,cellHeight:_0x2a515b,cellWidth:_0x52e822}of _0x5d9dc4['createTableWalker'](_0x11ed63,{'includeAllSlots':!0x0,..._0x53a4cf}))if(!_0x33c667||0x1!=_0x2a515b||0x1!=_0x52e822)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37cd=['bind','resizeColumnWidths','accept','table','Users','plugins','locale','enableCommand','selection','commandParams','subType','formatGroupId','document','handleSuggestionDescription','registerCustomCallback','getColumnGroupElement','discard','getContainedElement','resizeTable','getSuggestionCallback','*Format:*\x20resize\x20table','markBlockFormat','TrackChangesEditing','_suggestionFactory','data','tableWidth','TableColumnResizeEditing','editor','change','afterInit','has','resizeTableWidth','formatBlock','author','model','get','columnWidths'];(function(_0x375923,_0x37cdf3){const _0x1d7bfe=function(_0x489e60){while(--_0x489e60){_0x375923['push'](_0x375923['shift']());}};_0x1d7bfe(++_0x37cdf3);}(_0x37cd,0x14c));const _0x1d7b=function(_0x375923,_0x37cdf3){_0x375923=_0x375923-0x0;let _0x1d7bfe=_0x37cd[_0x375923];return _0x1d7bfe;};import{Plugin as _0x557547}from'ckeditor5/src/core';import{getTranslation as _0x41c6f4}from'../utils/common-translations';export default class wt extends _0x557547{[_0x1d7b('0x1e')](){if(!this[_0x1d7b('0x1c')][_0x1d7b('0x6')][_0x1d7b('0x1f')]('TableColumnResizeEditing'))return;const _0x41d828=this[_0x1d7b('0x1c')][_0x1d7b('0x6')]['get'](_0x1d7b('0x17'));_0x41d828[_0x1d7b('0x8')](_0x1d7b('0x20'),this['handleResizeTableWidthCommand'][_0x1d7b('0x1')](this)),_0x41d828[_0x1d7b('0x8')](_0x1d7b('0x2'),this['handleResizeTableWidthCommand'][_0x1d7b('0x1')](this)),_0x41d828[_0x1d7b('0x18')][_0x1d7b('0xf')]('formatBlock',_0x1d7b('0x13'),_0x1d7b('0x3'),_0x41d828['_suggestionFactory'][_0x1d7b('0x14')](_0x1d7b('0x21'),null,'discard')),_0x41d828[_0x1d7b('0x18')][_0x1d7b('0xf')](_0x1d7b('0x21'),_0x1d7b('0x13'),_0x1d7b('0x11'),_0x41d828[_0x1d7b('0x18')][_0x1d7b('0x14')](_0x1d7b('0x21'),null,_0x1d7b('0x3'))),_0x41d828['_descriptionFactory']['registerDescriptionCallback'](this[_0x1d7b('0xe')]['bind'](this));}['handleResizeTableWidthCommand'](_0x166d06,_0x1aed26){const _0x35bb94=this[_0x1d7b('0x1c')]['plugins'][_0x1d7b('0x24')](_0x1d7b('0x17')),_0x4e77c2=this[_0x1d7b('0x1c')]['plugins']['get'](_0x1d7b('0x1b')),_0x2bd579=_0x1aed26[_0x1d7b('0x4')]||this[_0x1d7b('0x1c')][_0x1d7b('0x23')][_0x1d7b('0xd')][_0x1d7b('0x9')]['getSelectedElement']();this['editor'][_0x1d7b('0x23')][_0x1d7b('0x1d')](()=>{const _0x313060=_0x4e77c2[_0x1d7b('0x10')](_0x2bd579);let _0x182d3b=_0x313060?_0x4e77c2['getTableColumnsWidths'](_0x313060):null,_0x4cd54f=_0x2bd579['getAttribute'](_0x1d7b('0x1a'))||null;const _0x1b2bb4=_0x1aed26[_0x1d7b('0x1a')]||_0x4cd54f,_0x2e4062=_0x1aed26[_0x1d7b('0x0')]||_0x182d3b,_0x22c574=this[_0x1d7b('0x1c')][_0x1d7b('0x6')][_0x1d7b('0x24')](_0x1d7b('0x5'))['me'];for(const _0x4f880c of _0x35bb94['getSuggestions']()){const _0x4d06a4=_0x4f880c[_0x1d7b('0x12')]();if(_0x1d7b('0x13')===_0x4f880c[_0x1d7b('0xb')]&&_0x4d06a4===_0x2bd579){_0x4f880c[_0x1d7b('0x22')]!==_0x22c574&&_0x4f880c['discard']();const _0x3dbb06=_0x4f880c[_0x1d7b('0x19')][_0x1d7b('0xa')];_0x4cd54f=_0x3dbb06[0x0][_0x1d7b('0x1a')],_0x182d3b=_0x3dbb06[0x0][_0x1d7b('0x0')];break;}}_0x166d06({'table':_0x2bd579,'tableWidth':_0x1b2bb4,'columnWidths':_0x2e4062}),_0x35bb94[_0x1d7b('0x16')](_0x2bd579,{'commandName':_0x1d7b('0x20'),'commandParams':[{'tableWidth':_0x4cd54f,'columnWidths':_0x182d3b}],'formatGroupId':_0x1d7b('0x13')},[],_0x1d7b('0x13'));});}[_0x1d7b('0xe')](_0x341ca5){const {data:_0x90b6b6}=_0x341ca5;if(_0x90b6b6&&'resizeTable'===_0x90b6b6[_0x1d7b('0xc')]){const _0x39d69b=_0x1d7b('0x15');return{'type':'format','content':_0x41c6f4(this[_0x1d7b('0x1c')][_0x1d7b('0x7')],_0x39d69b)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5399=['consumable','TableUtils','markerRange','createPositionAfter','commandName','value','FORMAT_HEADER_ROW','commandParams','formatBlock','createRange','setTableColumnHeader','toViewElement','commands','data','headingRows','get','activeMarkers','markerName','editing','setAttribute','highest','markBlockFormat','enableCommand','accept','nodeAfter','removeClass','isBefore','change','getAttribute','from','ck-suggestion-marker-','parent','createPositionBefore','ck-suggestion-marker--active','last','format','unbindElementFromMarkerName','_splitMarkerName','model','bindElementToMarker','markerNameToElements','addMarker:suggestion','forceValue','getSelectionAffectedTableCells','FORMAT_REGULAR_COLUMN','first','getChild','FORMAT_REGULAR_ROW','createTableWalker','index','writer','nodeBefore','name','editor','removeAttribute','addClass','has','*Format:*\x20%0','TrackChangesEditing','selection','includes','_suggestionFactory','findAncestor','table','document','mapper','FORMAT_HEADER_COLUMN','getSuggestion','getCellLocation','cell','getColumnIndexes','options','plugins','setTableRowHeader','downcastDispatcher','item','_descriptionFactory','removeMarker:suggestion','headingColumns'];(function(_0x48d1ea,_0x5399bd){const _0x31bbbe=function(_0x95058e){while(--_0x95058e){_0x48d1ea['push'](_0x48d1ea['shift']());}};_0x31bbbe(++_0x5399bd);}(_0x5399,0x196));const _0x31bb=function(_0x48d1ea,_0x5399bd){_0x48d1ea=_0x48d1ea-0x0;let _0x31bbbe=_0x5399[_0x48d1ea];return _0x31bbbe;};import{Plugin as _0x3bf425}from'ckeditor5/src/core';import _0x402b38 from'./table';import{getTranslation as _0x6e20b}from'../utils/common-translations';export default class pt extends _0x3bf425{static get['requires'](){return[_0x402b38];}['afterInit'](){const _0x4d1f4d=this[_0x31bb('0x2a')];if(!_0x4d1f4d[_0x31bb('0x3d')][_0x31bb('0x2d')]('TableEditing'))return;const _0x2eccec=_0x4d1f4d['locale'],_0x3bb69e=_0x4d1f4d[_0x31bb('0x3d')][_0x31bb('0x4')](_0x31bb('0x2f')),_0x51116b=_0x4d1f4d[_0x31bb('0x3d')][_0x31bb('0x4')](_0x31bb('0x45')),_0x5c25f2=_0x4d1f4d[_0x31bb('0x3d')]['get'](_0x402b38);function _0x43b66a({showActiveMarker:_0x519a9e=!0x0,setDataAttribute:_0x1b77bf=!0x0}={}){return(_0x4fc224,_0x2b022f,_0x1e9561)=>{const {type:_0x3e18cc,id:_0x57a7e8}=_0x3bb69e[_0x31bb('0x1a')](_0x2b022f['markerName']),_0xe1b965=_0x3bb69e['getSuggestion'](_0x57a7e8);if(!_0xe1b965[_0x31bb('0x2')]||_0x31bb('0x4e')!=_0xe1b965[_0x31bb('0x2')][_0x31bb('0x48')])return;if(_0x2b022f[_0x31bb('0x40')])return void _0x4fc224['stop']();if(!_0x1e9561[_0x31bb('0x44')]['consume'](_0x2b022f[_0x31bb('0x46')],_0x4fc224[_0x31bb('0x29')]))return;const _0x2ad75b=_0x2b022f[_0x31bb('0x46')]['start'][_0x31bb('0xd')],_0x309b23=_0x2b022f[_0x31bb('0x46')]['end'][_0x31bb('0x28')],_0x27ba63=_0x2ad75b['parent'][_0x31bb('0x14')],{column:_0x5bee33}=_0x51116b[_0x31bb('0x39')](_0x2ad75b),{column:_0x30c07c}=_0x51116b['getCellLocation'](_0x309b23);for(let _0x40d76c=_0x5bee33;_0x40d76c<=_0x30c07c;_0x40d76c++){const _0x125e39=_0x51116b[_0x31bb('0x25')](_0x27ba63,{'column':_0x40d76c,'includeAllSlots':!0x1});for(const _0x31a3fe of _0x125e39){const _0xca2077=_0x31a3fe[_0x31bb('0x3a')],_0x5803c9=_0x1e9561[_0x31bb('0x36')][_0x31bb('0x0')](_0xca2077);_0x1e9561[_0x31bb('0x27')][_0x31bb('0x2c')](_0x31bb('0x13')+_0x3e18cc,_0x5803c9),_0x1b77bf&&_0x1e9561[_0x31bb('0x27')][_0x31bb('0x8')]('data-suggestion',_0x57a7e8,_0x5803c9),_0x1e9561[_0x31bb('0x36')][_0x31bb('0x1c')](_0x5803c9,_0x2b022f['markerName']),_0x519a9e&&(_0x3bb69e[_0x31bb('0x5')][_0x31bb('0x31')](_0x2b022f[_0x31bb('0x6')])?_0x1e9561[_0x31bb('0x27')]['addClass']('ck-suggestion-marker--active',_0x5803c9):_0x1e9561[_0x31bb('0x27')][_0x31bb('0xe')]('ck-suggestion-marker--active',_0x5803c9));}}};}_0x3bb69e[_0x31bb('0xb')](_0x31bb('0x3e'),(_0x4f3e32,_0x1c8f1d)=>{const _0x180735=_0x51116b[_0x31bb('0x20')](_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x35')][_0x31bb('0x30')]),_0x10ed88=_0x51116b['getRowIndexes'](_0x180735),_0x32def1=_0x180735[0x0][_0x31bb('0x33')](_0x31bb('0x34')),_0x263df3=_0x32def1[_0x31bb('0x11')](_0x31bb('0x3'))||0x0,_0x22d357=_0x1c8f1d&&null!==_0x1c8f1d[_0x31bb('0x1f')]?_0x1c8f1d[_0x31bb('0x1f')]:!_0x4d1f4d[_0x31bb('0x1')]['get'](_0x31bb('0x3e'))[_0x31bb('0x49')],_0x46f11c=_0x22d357?_0x10ed88[_0x31bb('0x17')]:_0x10ed88[_0x31bb('0x22')],_0x3b3d05=_0x32def1['getChild'](_0x46f11c);let _0x13e215;if(_0x22d357){const _0x38d67d=_0x32def1[_0x31bb('0x23')](_0x263df3);if(_0x3b3d05[_0x31bb('0x26')]<_0x38d67d[_0x31bb('0x26')])return;_0x13e215=_0x4d1f4d['model'][_0x31bb('0x4d')](_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x15')](_0x38d67d['getChild'](0x0)),_0x4d1f4d[_0x31bb('0x1b')]['createPositionAfter'](_0x3b3d05[_0x31bb('0x23')](_0x3b3d05['childCount']-0x1)));}else{const _0x5b185a=_0x32def1[_0x31bb('0x23')](_0x263df3-0x1);if(!_0x5b185a)return;_0x13e215=_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x4d')](_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x15')](_0x3b3d05[_0x31bb('0x23')](0x0)),_0x4d1f4d[_0x31bb('0x1b')]['createPositionAfter'](_0x5b185a[_0x31bb('0x23')](_0x5b185a['childCount']-0x1)));}_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x10')](()=>{_0x3bb69e[_0x31bb('0xa')](_0x13e215,{'commandName':_0x31bb('0x3e'),'commandParams':[{'forceValue':_0x22d357}]},[],'setTableRowHeader');});}),_0x3bb69e[_0x31bb('0xb')](_0x31bb('0x4e'),(_0x3083cb,_0x39d78e)=>{const _0x1b8a90=_0x4d1f4d[_0x31bb('0x3d')]['get'](_0x31bb('0x45')),_0x32d9d7=_0x1b8a90[_0x31bb('0x20')](_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x35')]['selection']),_0x44867f=_0x1b8a90[_0x31bb('0x3b')](_0x32d9d7),_0x33974e=_0x32d9d7[0x0][_0x31bb('0x33')]('table'),_0x7d3f4e=_0x33974e[_0x31bb('0x11')](_0x31bb('0x43'))||0x0,_0x1c08ee=_0x39d78e&&null!==_0x39d78e[_0x31bb('0x1f')]?_0x39d78e[_0x31bb('0x1f')]:!_0x4d1f4d['commands'][_0x31bb('0x4')]('setTableColumnHeader')[_0x31bb('0x49')];let _0x5da4f9;const _0x4a3e03=_0x33974e[_0x31bb('0x23')](0x0),_0x1fd25d=_0x1c08ee?_0x44867f[_0x31bb('0x17')]:_0x44867f[_0x31bb('0x22')],_0xb4cab6=_0x1b8a90[_0x31bb('0x25')](_0x33974e,{'startRow':0x0,'column':_0x1fd25d,'includeAllSlots':!0x1}),_0x2f6307=Array[_0x31bb('0x12')](_0xb4cab6)[0x0][_0x31bb('0x3a')];if(_0x1c08ee){const _0x1cc46e=_0x4a3e03[_0x31bb('0x23')](_0x7d3f4e);if(_0x2f6307[_0x31bb('0xf')](_0x1cc46e))return;_0x5da4f9=_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x4d')](_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x15')](_0x1cc46e),_0x4d1f4d['model'][_0x31bb('0x47')](_0x2f6307));}else{const _0x4a62e1=_0x4a3e03['getChild'](_0x7d3f4e-0x1);if(!_0x4a62e1)return;_0x5da4f9=_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x4d')](_0x4d1f4d[_0x31bb('0x1b')]['createPositionBefore'](_0x2f6307),_0x4d1f4d[_0x31bb('0x1b')][_0x31bb('0x47')](_0x4a62e1));}_0x4d1f4d['model'][_0x31bb('0x10')](()=>{_0x3bb69e[_0x31bb('0xa')](_0x5da4f9,{'commandName':_0x31bb('0x4e'),'commandParams':[{'forceValue':_0x1c08ee}]},[],_0x31bb('0x4e'));});}),_0x4d1f4d[_0x31bb('0x7')][_0x31bb('0x3f')]['on'](_0x31bb('0x1e'),_0x43b66a(),{'priority':'highest'}),_0x4d1f4d['data'][_0x31bb('0x3f')]['on']('addMarker:suggestion',(_0x2bad26,_0x3dd7fb,_0x29140e)=>{_0x29140e[_0x31bb('0x3c')]['showSuggestionHighlights']&&_0x43b66a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2bad26,_0x3dd7fb,_0x29140e);},{'priority':'highest'}),_0x4d1f4d[_0x31bb('0x7')]['downcastDispatcher']['on'](_0x31bb('0x42'),(_0x1dd02a,_0x118dd4,_0x520295)=>{const {type:_0x1ab9f7,id:_0x4d7213}=_0x3bb69e['_splitMarkerName'](_0x118dd4[_0x31bb('0x6')]),_0x14797d=_0x3bb69e[_0x31bb('0x38')](_0x4d7213);if(!_0x14797d['data']||_0x31bb('0x4e')!=_0x14797d['data'][_0x31bb('0x48')])return;const _0x456484=_0x520295['mapper'][_0x31bb('0x1d')](_0x118dd4[_0x31bb('0x6')]);if(_0x456484)for(const _0x2ec85d of _0x456484)_0x520295[_0x31bb('0x27')]['removeClass'](_0x31bb('0x13')+_0x1ab9f7,_0x2ec85d),_0x520295['writer'][_0x31bb('0xe')](_0x31bb('0x16'),_0x2ec85d),_0x520295[_0x31bb('0x27')][_0x31bb('0x2b')]('data-suggestion',_0x2ec85d),_0x520295[_0x31bb('0x36')][_0x31bb('0x19')](_0x2ec85d,_0x118dd4['markerName']);},{'priority':_0x31bb('0x9')}),_0x3bb69e[_0x31bb('0x41')]['registerDescriptionCallback'](_0x3132d2=>{const {data:_0xc14892}=_0x3132d2;if(_0xc14892){if(_0x31bb('0x3e')==_0xc14892[_0x31bb('0x48')]){const _0x6cef=_0xc14892[_0x31bb('0x4b')][0x0][_0x31bb('0x1f')];return _0x8815b8(_0x6e20b(_0x2eccec,_0x6cef?_0x31bb('0x4a'):_0x31bb('0x24')));}if(_0x31bb('0x4e')==_0xc14892[_0x31bb('0x48')]){const _0x4de54c=_0xc14892[_0x31bb('0x4b')][0x0][_0x31bb('0x1f')];return _0x8815b8(_0x6e20b(_0x2eccec,_0x4de54c?_0x31bb('0x37'):_0x31bb('0x21')));}}function _0x8815b8(_0x2e351b){return{'type':_0x31bb('0x18'),'content':_0x6e20b(_0x2eccec,_0x31bb('0x2e'),_0x2e351b)};}});const _0x44b1e5=_0x5c25f2['_acceptFormatSuggestionCallbackFactory']();_0x3bb69e['_suggestionFactory']['registerCustomCallback'](_0x31bb('0x4c'),_0x31bb('0x3e'),_0x31bb('0xc'),_0x44b1e5),_0x3bb69e[_0x31bb('0x32')]['registerCustomCallback']('formatBlock',_0x31bb('0x4e'),_0x31bb('0xc'),_0x44b1e5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1361=['format','change','subType','document','from','splitTableCellHorizontally','execute','horizontally','map','*Split\x20cell:*\x20horizontally','registerCustomCallback','find','stop','commandName','_areMergableCells','registerDescriptionCallback','requires','locale','model','_descriptionFactory','author','low','has','rootName','mergeTableCellDown','value','mergeTableCells','deletion','setSelection','enableCommand','getSuggestions','markBlockFormat','filter','type','get','set:isEnabled','getAncestors','editor','formatBlock','mergeTableCellLeft','size','getSelectionAffectedTableCells','splitTableCellVertically','refresh','_suggestionFactory','cell','createRangeOn','createTableWalker','containsRange','$graveyard','getFirstPosition','mergeTableCellRight','TrackChangesEditing','_acceptFormatSuggestionCallbackFactory','getCellLocation','table','markMultiRangeBlockFormat','commands','findAncestor','getRanges','length','detach','accept','TableUtils','return','element','*Merge\x20cells*','mergeTableCellUp','plugins','selection'];(function(_0x275209,_0x1361c6){const _0x814b96=function(_0x427117){while(--_0x427117){_0x275209['push'](_0x275209['shift']());}};_0x814b96(++_0x1361c6);}(_0x1361,0x109));const _0x814b=function(_0x275209,_0x1361c6){_0x275209=_0x275209-0x0;let _0x814b96=_0x1361[_0x275209];return _0x814b96;};import{Plugin as _0x4c5eb4}from'ckeditor5/src/core';import _0x2e0454 from'./table';import{LiveRange as _0x83ce77}from'ckeditor5/src/engine';import{getTranslation as _0x12e85b}from'../utils/common-translations';export default class dt extends _0x4c5eb4{static get[_0x814b('0x1f')](){return[_0x2e0454];}['afterInit'](){const _0x88add5=this[_0x814b('0x34')],_0x17c541=_0x88add5[_0x814b('0x21')][_0x814b('0x12')]['selection'],_0x541e1b=_0x88add5[_0x814b('0x20')];if(!_0x88add5['plugins'][_0x814b('0x25')]('TableEditing'))return;const _0x402e15=_0x88add5['plugins'][_0x814b('0x31')]('TrackChangesEditing'),_0x19d543=_0x88add5[_0x814b('0xd')][_0x814b('0x31')](_0x814b('0x8')),_0x26eae3=_0x88add5[_0x814b('0xd')][_0x814b('0x31')](_0x2e0454);_0x26eae3['_tablePostFixingSubtypes']['push'](_0x814b('0x29')),_0x402e15[_0x814b('0x2c')](_0x814b('0x29'),()=>{const _0x4b4d61=_0x19d543['getSelectionAffectedTableCells'](_0x88add5[_0x814b('0x21')][_0x814b('0x12')]['selection']);_0x88add5[_0x814b('0x21')][_0x814b('0x10')](()=>{_0x402e15['markMultiRangeBlockFormat'](_0x4b4d61,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x88add5[_0x814b('0x2')]['get'](_0x814b('0x29'))['on'](_0x814b('0x15'),(_0x3a1872,_0x28d644)=>{_0x88add5['commands'][_0x814b('0x31')]('trackChanges')['value']&&(_0x28d644['length']>0x0&&_0x28d644[_0x28d644[_0x814b('0x5')]-0x1]&&_0x28d644[_0x28d644['length']-0x1]['forceDefaultExecution']||_0x402e15['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a1872[_0x814b('0x1b')]());},{'priority':'highest'});for(const _0x36d065 of[_0x814b('0xc'),'mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x41f876=_0x88add5[_0x814b('0x2')][_0x814b('0x31')](_0x36d065);_0x402e15[_0x814b('0x2c')](_0x36d065,()=>{const _0xd598bc=_0x88add5[_0x814b('0x21')][_0x814b('0x12')][_0x814b('0xe')][_0x814b('0x41')]()[_0x814b('0x33')]()[_0x814b('0x1a')](_0x4e10f3=>_0x4e10f3['is']('element','tableCell')),_0x2a562f=_0x41f876[_0x814b('0x28')];_0x88add5[_0x814b('0x21')][_0x814b('0x10')](()=>{_0x402e15[_0x814b('0x1')]([_0xd598bc,_0x2a562f],{'commandName':_0x814b('0x29'),'commandParams':[]},[],_0x814b('0x29'));});});}for(const _0x4cffbd of[_0x814b('0x39'),'splitTableCellHorizontally']){const _0x22de99=_0x88add5[_0x814b('0x2')][_0x814b('0x31')](_0x4cffbd);_0x402e15['enableCommand'](_0x4cffbd,()=>{const _0x47ebb3=_0x19d543[_0x814b('0x38')](_0x88add5[_0x814b('0x21')]['document']['selection'])[0x0],_0x56f8d8=_0x47ebb3[_0x814b('0x3')](_0x814b('0x0')),{column:_0x4a1ce5,row:_0x523b75}=_0x19d543[_0x814b('0x45')](_0x47ebb3);let _0x1a3c88=[];if(_0x814b('0x16')==_0x22de99['direction']){const _0x51aded=_0x19d543[_0x814b('0x3e')](_0x56f8d8,{'startRow':_0x523b75,'endRow':_0x523b75,'includeAllSlots':!0x0});_0x1a3c88=Array['from'](_0x51aded)['map'](_0x56001b=>_0x56001b[_0x814b('0x3c')]);}else{const _0x4d7393=_0x19d543[_0x814b('0x3e')](_0x56f8d8,{'column':_0x4a1ce5,'includeAllSlots':!0x0});_0x1a3c88=Array[_0x814b('0x13')](_0x4d7393)[_0x814b('0x17')](_0x4c3e4e=>_0x4c3e4e['cell']);}_0x88add5[_0x814b('0x21')][_0x814b('0x10')](_0x292c8b=>{_0x402e15[_0x814b('0x2e')](_0x292c8b['createRangeOn'](_0x47ebb3),{'commandName':_0x4cffbd,'commandParams':[]},_0x1a3c88,_0x4cffbd);});});}_0x402e15[_0x814b('0x22')][_0x814b('0x1e')](_0x4b9add=>{const {data:_0x1c7507}=_0x4b9add;if(_0x1c7507)return'mergeTableCells'==_0x1c7507[_0x814b('0x1c')]?{'type':_0x814b('0xf'),'content':_0x12e85b(_0x541e1b,_0x814b('0xb'))}:void 0x0;}),_0x402e15['_descriptionFactory'][_0x814b('0x1e')](_0x3e2979=>{const {data:_0x3d4c6d}=_0x3e2979;if(_0x3d4c6d)return'splitTableCellVertically'==_0x3d4c6d[_0x814b('0x1c')]?{'type':_0x814b('0xf'),'content':_0x12e85b(_0x541e1b,'*Split\x20cell:*\x20vertically')}:_0x814b('0x14')==_0x3d4c6d[_0x814b('0x1c')]?{'type':'format','content':_0x12e85b(_0x541e1b,_0x814b('0x18'))}:void 0x0;});const _0x174521=_0x26eae3[_0x814b('0x44')]();for(const _0xa22845 of[_0x814b('0xc'),_0x814b('0x42'),_0x814b('0x27'),_0x814b('0x36')])_0x402e15[_0x814b('0x3b')]['registerCustomCallback'](_0x814b('0x35'),_0xa22845,'accept',_0x174521);for(const _0x39afa5 of[_0x814b('0x39'),_0x814b('0x14')])_0x402e15['_suggestionFactory'][_0x814b('0x19')](_0x814b('0x35'),_0x39afa5,_0x814b('0x7'),_0x174521);_0x402e15[_0x814b('0x3b')]['registerCustomCallback'](_0x814b('0x35'),'mergeTableCells',_0x814b('0x7'),_0x262d54=>{_0x88add5[_0x814b('0x21')][_0x814b('0x10')](_0x23afe8=>{const _0x238250=Array[_0x814b('0x13')](_0x17c541[_0x814b('0x4')]())[_0x814b('0x17')](_0xdb925b=>_0x83ce77['fromRange'](_0xdb925b));_0x23afe8[_0x814b('0x2b')](_0x262d54),_0x88add5[_0x814b('0x2')]['get'](_0x814b('0x29'))[_0x814b('0x3a')](),_0x88add5[_0x814b('0x15')](_0x814b('0x29'),{'forceDefaultExecution':!0x0});const _0x2bc7ac=_0x238250[_0x814b('0x2f')](_0x3aaef3=>_0x814b('0x40')!=_0x3aaef3['root'][_0x814b('0x26')]);_0x2bc7ac[_0x814b('0x5')]>0x0&&_0x23afe8['setSelection'](_0x2bc7ac);for(const _0x25df12 of _0x238250)_0x25df12[_0x814b('0x6')]();});});for(const _0x23c961 of[_0x814b('0xc'),_0x814b('0x27'),'mergeTableCellLeft',_0x814b('0x42')]){const _0x17fa1a=_0x88add5[_0x814b('0x2')][_0x814b('0x31')](_0x23c961);_0x17fa1a['on'](_0x814b('0x32'),(_0x2f387b,_0x1aa9b7,_0x2f7731)=>{if(_0x2f7731){const _0x30db02=_0x88add5[_0x814b('0x21')][_0x814b('0x12')][_0x814b('0xe')]['getFirstPosition']()[_0x814b('0x33')]()['find'](_0x4b62c2=>_0x4b62c2['is'](_0x814b('0xa'),'tableCell'));this[_0x814b('0x1d')](_0x17fa1a['value'],_0x30db02)||(_0x2f387b[_0x814b('0x9')]=!0x1,_0x2f387b[_0x814b('0x1b')]());}},{'priority':_0x814b('0x24')});}}['_areSelectedCellsMergable'](){const _0x297f65=this[_0x814b('0x34')][_0x814b('0x2')][_0x814b('0x31')](_0x814b('0x29')),_0x3dca7b=this['editor']['plugins'][_0x814b('0x31')](_0x814b('0x8'));if(!_0x297f65['isEnabled'])return!0x1;const _0x18d41=_0x3dca7b['getSelectionAffectedTableCells'](this['editor'][_0x814b('0x21')][_0x814b('0x12')][_0x814b('0xe')]);for(const _0x2d950c of _0x18d41)for(const _0x43d1a0 of _0x18d41)if(_0x2d950c!=_0x43d1a0&&!this[_0x814b('0x1d')](_0x2d950c,_0x43d1a0))return!0x1;return!0x0;}[_0x814b('0x1d')](_0x5cbf00,_0x24345e){const _0x557393=this[_0x814b('0x34')][_0x814b('0xd')][_0x814b('0x31')](_0x814b('0x43')),_0x787a0=this[_0x814b('0x34')][_0x814b('0x21')][_0x814b('0x3d')](_0x5cbf00),_0x334861=this['editor'][_0x814b('0x21')][_0x814b('0x3d')](_0x24345e),_0x348d6f=new Set(),_0x8effe1=new Set();for(const _0x4ff584 of _0x557393[_0x814b('0x2d')]())if(('insertion'==_0x4ff584[_0x814b('0x30')]||_0x814b('0x2a')==_0x4ff584[_0x814b('0x30')]||_0x814b('0x29')==_0x4ff584[_0x814b('0x11')])&&_0x4ff584['isInContent'])for(const _0x2fd861 of _0x4ff584[_0x814b('0x4')]())_0x2fd861[_0x814b('0x3f')](_0x787a0,!0x0)&&_0x348d6f['add'](_0x4ff584['type']+':'+_0x4ff584[_0x814b('0x23')]['id']),_0x2fd861['containsRange'](_0x334861,!0x0)&&_0x8effe1['add'](_0x4ff584[_0x814b('0x30')]+':'+_0x4ff584[_0x814b('0x23')]['id']);if(_0x348d6f[_0x814b('0x37')]!=_0x8effe1[_0x814b('0x37')])return!0x1;for(const _0x25e401 of _0x348d6f)if(!_0x8effe1[_0x814b('0x25')](_0x25e401))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fb7=['editor','get','plugins','tableOfContents','_descriptionFactory','enableCommand','ELEMENT_TABLE_OF_CONTENTS','TrackChangesEditing','insertTableOfContents','locale','registerElementLabel'];(function(_0x3b8846,_0x2fb71d){const _0x3c857d=function(_0x335f88){while(--_0x335f88){_0x3b8846['push'](_0x3b8846['shift']());}};_0x3c857d(++_0x2fb71d);}(_0x2fb7,0x15e));const _0x3c85=function(_0x3b8846,_0x2fb71d){_0x3b8846=_0x3b8846-0x0;let _0x3c857d=_0x2fb7[_0x3b8846];return _0x3c857d;};import{Plugin as _0x4a4b1c}from'ckeditor5/src/core';import{getTranslation as _0x491ce9}from'../utils/common-translations';export default class bt extends _0x4a4b1c{['afterInit'](){const _0x44779d=this[_0x3c85('0x2')];if(!_0x44779d['commands'][_0x3c85('0x3')](_0x3c85('0xa')))return;_0x44779d[_0x3c85('0x4')][_0x3c85('0x3')]('TrackChangesEditing')[_0x3c85('0x7')](_0x3c85('0xa'));const _0x4b9eef=_0x44779d[_0x3c85('0x4')][_0x3c85('0x3')](_0x3c85('0x9')),_0x49b4ba=_0x44779d[_0x3c85('0x0')];_0x4b9eef[_0x3c85('0x6')][_0x3c85('0x1')](_0x3c85('0x5'),_0x297eef=>_0x491ce9(_0x49b4ba,_0x3c85('0x8'),_0x297eef));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cd4=['registerDescriptionCallback','_handlePropertyChange','data','table','enqueueChange','tableCellWidth','plugins','_suggestionFactory','formatBlock','tableCellPadding','removeAttribute','format','has','getSuggestionCallback','tableBackgroundColor','afterInit','tableCellBackgroundColor','change','_getSuggestion','TrackChangesEditing','locale','subType','tableBorderColor','*Format:*\x20change\x20table\x20properties','*Format:*\x20change\x20table\x20cell\x20properties','document','tableHeight','registerCustomCallback','getSelectionAffectedTableCells','join','markBlockFormat','tableBorderStyle','pluginName','model','handleDiscardAction','editor','start','setAttribute','findAncestor','tableCellBorderColor','nodeAfter','tableWidth','getAttribute','get','tableCellHeight','tableProperties','selection','getFirstPosition','handleSuggestionDescription','commandParams','TablePropertiesEditing','getSuggestions','enableCommand','discard','accept','tableCellHorizontalAlignment','TrackChangesTableProperties','getContainedElement','tableCellBorderWidth','tableCellProperties'];(function(_0x3b5214,_0x1cd4d9){const _0x1e6775=function(_0x567fcf){while(--_0x567fcf){_0x3b5214['push'](_0x3b5214['shift']());}};_0x1e6775(++_0x1cd4d9);}(_0x1cd4,0x15d));const _0x1e67=function(_0x3b5214,_0x1cd4d9){_0x3b5214=_0x3b5214-0x0;let _0x1e6775=_0x1cd4[_0x3b5214];return _0x1e6775;};import{Plugin as _0x2f7324}from'ckeditor5/src/core';import{getTranslation as _0x535a52}from'../utils/common-translations';export default class Ct extends _0x2f7324{constructor(_0x4d8cb0){super(_0x4d8cb0),this[_0x1e67('0x38')]=[_0x1e67('0x21'),_0x1e67('0x2a'),'tableBorderWidth','tableAlignment',_0x1e67('0x34'),_0x1e67('0x25'),_0x1e67('0x19')],this[_0x1e67('0xa')]=[_0x1e67('0x32'),'tableCellBorderStyle',_0x1e67('0x9'),_0x1e67('0x14'),_0x1e67('0x10'),_0x1e67('0x37'),_0x1e67('0x1b'),_0x1e67('0x6'),'tableCellVerticalAlignment'];}static get[_0x1e67('0x2b')](){return _0x1e67('0x7');}[_0x1e67('0x1a')](){const _0x16f126=this[_0x1e67('0x2e')][_0x1e67('0x11')][_0x1e67('0x36')](_0x1e67('0x1e'));if(this[_0x1e67('0x2e')][_0x1e67('0x11')][_0x1e67('0x17')](_0x1e67('0x1'))){for(const _0x1dd773 of this[_0x1e67('0x38')])_0x16f126[_0x1e67('0x3')](_0x1dd773,(_0x1e38d0,_0x16c083)=>{const _0x2fc11d=this['editor'][_0x1e67('0x2c')][_0x1e67('0x24')][_0x1e67('0x39')][_0x1e67('0x3a')]()[_0x1e67('0x31')](_0x1e67('0xe'));this[_0x1e67('0xc')](_0x1dd773,[_0x2fc11d],this[_0x1e67('0x38')],_0x1e67('0x38'),_0x1e38d0,_0x16c083);});_0x16f126[_0x1e67('0x12')]['registerCustomCallback'](_0x1e67('0x13'),'tableProperties',_0x1e67('0x5'),_0x16f126['_suggestionFactory'][_0x1e67('0x18')]('formatBlock',null,_0x1e67('0x4'))),_0x16f126[_0x1e67('0x12')]['registerCustomCallback']('formatBlock','tableProperties',_0x1e67('0x4'),(_0x40b83b,_0x587a2c)=>this[_0x1e67('0x2d')](this[_0x1e67('0x38')],_0x40b83b,_0x587a2c)),_0x16f126[_0x1e67('0x12')][_0x1e67('0x26')](_0x1e67('0x13'),_0x1e67('0x38'),'join',()=>!0x1);}if(this[_0x1e67('0x2e')]['plugins'][_0x1e67('0x17')]('TableCellPropertiesEditing')){for(const _0x10e284 of this[_0x1e67('0xa')])_0x16f126[_0x1e67('0x3')](_0x10e284,(_0x25cbcf,_0x5e3e4c)=>{const _0x39f5f4=this[_0x1e67('0x2e')][_0x1e67('0x11')]['get']('TableUtils')[_0x1e67('0x27')](this[_0x1e67('0x2e')][_0x1e67('0x2c')][_0x1e67('0x24')]['selection']);this[_0x1e67('0xc')](_0x10e284,_0x39f5f4,this[_0x1e67('0xa')],_0x1e67('0xa'),_0x25cbcf,_0x5e3e4c);});_0x16f126[_0x1e67('0x12')]['registerCustomCallback'](_0x1e67('0x13'),_0x1e67('0xa'),_0x1e67('0x5'),_0x16f126[_0x1e67('0x12')]['getSuggestionCallback'](_0x1e67('0x13'),null,'discard')),_0x16f126['_suggestionFactory'][_0x1e67('0x26')](_0x1e67('0x13'),_0x1e67('0xa'),_0x1e67('0x4'),(_0x17c050,_0x1c7224)=>this['handleDiscardAction'](this[_0x1e67('0xa')],_0x17c050,_0x1c7224)),_0x16f126[_0x1e67('0x12')]['registerCustomCallback'](_0x1e67('0x13'),'tableCellProperties',_0x1e67('0x28'),()=>!0x1);}_0x16f126['_descriptionFactory'][_0x1e67('0xb')](_0x4ad144=>this[_0x1e67('0x3b')](_0x4ad144));}[_0x1e67('0xc')](_0x49a331,_0x5b2db2,_0x5ce028,_0x9dc9c2,_0x24bbf1,_0x4414c6){const _0x5d53d3=this[_0x1e67('0x2e')][_0x1e67('0x11')][_0x1e67('0x36')](_0x1e67('0x1e'));this[_0x1e67('0x2e')]['model'][_0x1e67('0xf')](_0x4414c6['batch'],()=>{for(const _0x58f46f of _0x5b2db2){if(this[_0x1e67('0x1d')](_0x58f46f,_0x9dc9c2))_0x24bbf1(_0x4414c6);else{const _0x2475a3={};for(const _0x31f91a of _0x5ce028){const _0x38d794=_0x58f46f[_0x1e67('0x35')](_0x31f91a);void 0x0!==_0x38d794&&(_0x2475a3[_0x31f91a]=_0x38d794);}_0x24bbf1(_0x4414c6),_0x5d53d3[_0x1e67('0x29')](_0x58f46f,{'commandParams':[_0x2475a3]},[],_0x9dc9c2);}}});}[_0x1e67('0x2d')](_0x109b08,_0x2872a2,_0x504d55){const _0x409413=_0x2872a2[0x0][_0x1e67('0x2f')][_0x1e67('0x33')],_0xd15525=_0x504d55[_0x1e67('0x0')][0x0];this[_0x1e67('0x2e')][_0x1e67('0x2c')][_0x1e67('0x1c')](_0x384169=>{for(const _0x38419c of _0x109b08)void 0x0!==_0xd15525[_0x38419c]?_0x384169[_0x1e67('0x30')](_0x38419c,_0xd15525[_0x38419c],_0x409413):_0x384169[_0x1e67('0x15')](_0x38419c,_0x409413);});}['handleSuggestionDescription'](_0x583d4b){if(_0x583d4b[_0x1e67('0xd')])switch(_0x583d4b[_0x1e67('0x20')]){case _0x1e67('0x38'):return{'type':_0x1e67('0x16'),'content':_0x535a52(this[_0x1e67('0x2e')][_0x1e67('0x1f')],_0x1e67('0x22'))};case'tableCellProperties':return{'type':_0x1e67('0x16'),'content':_0x535a52(this[_0x1e67('0x2e')][_0x1e67('0x1f')],_0x1e67('0x23'))};}}[_0x1e67('0x1d')](_0x139bcc,_0x12f2e1){const _0x29a8f3=this[_0x1e67('0x2e')]['plugins'][_0x1e67('0x36')](_0x1e67('0x1e'));for(const _0x532859 of _0x29a8f3[_0x1e67('0x2')]({'skipNotAttached':!0x0})){const _0x1d5c98=_0x532859[_0x1e67('0x8')]();if(_0x532859[_0x1e67('0x20')]===_0x12f2e1&&_0x1d5c98===_0x139bcc)return _0x532859;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3419=['TrackChangesEditing','has','afterInit','plugins','get','Template','insertTemplate'];(function(_0x32d5e5,_0x3419bb){const _0x50da6f=function(_0x3e4117){while(--_0x3e4117){_0x32d5e5['push'](_0x32d5e5['shift']());}};_0x50da6f(++_0x3419bb);}(_0x3419,0x139));const _0x50da=function(_0x32d5e5,_0x3419bb){_0x32d5e5=_0x32d5e5-0x0;let _0x50da6f=_0x3419[_0x32d5e5];return _0x50da6f;};import{Plugin as _0x2d4e6b}from'ckeditor5/src/core';export default class yt extends _0x2d4e6b{[_0x50da('0x4')](){const _0x1281e4=this['editor'];_0x1281e4[_0x50da('0x5')][_0x50da('0x3')](_0x50da('0x0'))&&_0x1281e4[_0x50da('0x5')][_0x50da('0x6')](_0x50da('0x2'))['enableCommand'](_0x50da('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2111=['locale','ELEMENT_TITLE','_splitMarkerName','end','schema','removeMarker','registerPostFixer','start','editor','get','model','has','newRange','suggestion','getChangedMarkers','isTouching','document','element','_descriptionFactory','forward','from','Title','nodeBefore','TrackChangesEditing','title-content','getNearestSelectionRange','plugins','afterInit','registerElementLabel'];(function(_0x4c6f21,_0x211192){const _0x36983c=function(_0x1dfdcb){while(--_0x1dfdcb){_0x4c6f21['push'](_0x4c6f21['shift']());}};_0x36983c(++_0x211192);}(_0x2111,0x1a5));const _0x3698=function(_0x4c6f21,_0x211192){_0x4c6f21=_0x4c6f21-0x0;let _0x36983c=_0x2111[_0x4c6f21];return _0x36983c;};import{Plugin as _0x2991a9}from'ckeditor5/src/core';import{getTranslation as _0x10309b}from'../utils/common-translations';export default class St extends _0x2991a9{[_0x3698('0xc')](){const _0x2f39c6=this[_0x3698('0x16')];if(!_0x2f39c6[_0x3698('0xb')][_0x3698('0x19')](_0x3698('0x6')))return;const _0x338f5c=_0x2f39c6[_0x3698('0xb')][_0x3698('0x17')](_0x3698('0x8'));_0x338f5c[_0x3698('0x3')][_0x3698('0xd')](_0x3698('0x9'),()=>_0x10309b(_0x2f39c6[_0x3698('0xe')],_0x3698('0xf'))),_0x2f39c6[_0x3698('0x18')][_0x3698('0x1')][_0x3698('0x14')](_0x519713=>{let _0x159377=!0x1;const _0x43e653=Array[_0x3698('0x5')](_0x2f39c6[_0x3698('0x18')][_0x3698('0x1')]['differ'][_0x3698('0x1c')]());for(const {name:_0x501b02,data:_0x404c08}of _0x43e653){const {group:_0x56685b}=_0x338f5c[_0x3698('0x10')](_0x501b02);if(_0x3698('0x1b')!==_0x56685b||!_0x404c08[_0x3698('0x1a')])continue;const _0x1ac543=_0x404c08['newRange'],_0x4f2e1a=_0x1ac543[_0x3698('0x11')][_0x3698('0x7')];if(!_0x4f2e1a||!_0x4f2e1a['is'](_0x3698('0x2'),_0x3698('0x9')))continue;if(!_0x1ac543[_0x3698('0x15')][_0x3698('0x0')](_0x1ac543[_0x3698('0x11')]))continue;const _0x4eddf1=_0x2f39c6[_0x3698('0x18')][_0x3698('0x12')][_0x3698('0xa')](_0x1ac543[_0x3698('0x11')],_0x3698('0x4'));if(_0x4eddf1&&_0x4eddf1['isCollapsed']){const _0x3af595=_0x519713['createRange'](_0x1ac543['start'],_0x4eddf1[_0x3698('0x15')]);_0x3af595['isEqual'](_0x1ac543)||(_0x519713['updateMarker'](_0x501b02,{'range':_0x3af595}),_0x159377=!0x0);}_0x159377||(_0x519713[_0x3698('0x13')](_0x501b02),_0x159377=!0x0);}return _0x159377;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cb5=['enableCommand','TrackChangesEditing','redo','get','undo','UndoEditing','plugins'];(function(_0x4c7d46,_0x1cb5d0){const _0x43996d=function(_0xbaa02){while(--_0xbaa02){_0x4c7d46['push'](_0x4c7d46['shift']());}};_0x43996d(++_0x1cb5d0);}(_0x1cb5,0x1a5));const _0x4399=function(_0x4c7d46,_0x1cb5d0){_0x4c7d46=_0x4c7d46-0x0;let _0x43996d=_0x1cb5[_0x4c7d46];return _0x43996d;};import{Plugin as _0x5ef7cb}from'ckeditor5/src/core';export default class It extends _0x5ef7cb{['afterInit'](){const _0x2ef029=this['editor'],_0x5ccad6=_0x2ef029[_0x4399('0x5')][_0x4399('0x2')](_0x4399('0x0'));_0x2ef029[_0x4399('0x5')]['has'](_0x4399('0x4'))&&(_0x5ccad6[_0x4399('0x6')](_0x4399('0x3')),_0x5ccad6[_0x4399('0x6')](_0x4399('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45e4=['elementEnd','span','addHighlight','activeMarkers','consumable','model','plugins','ck-suggestion-marker--active','item','markerRange','createRangeOn','listItem','hasAttribute','getAttribute','nextSibling','mapper','isAtEnd','name','isBlock','schema','previousPosition','getItems','parent','push','ck-suggestion-marker-','start','bindElementToMarker','element','insert','isContent','createUIElement','writer','test','markerName','listIndent','getWalker'];(function(_0x47ab26,_0x45e42a){const _0x2cd235=function(_0x349771){while(--_0x349771){_0x47ab26['push'](_0x47ab26['shift']());}};_0x2cd235(++_0x45e42a);}(_0x45e4,0x191));const _0x2cd2=function(_0x47ab26,_0x45e42a){_0x47ab26=_0x47ab26-0x0;let _0x2cd235=_0x45e4[_0x47ab26];return _0x2cd235;};export function getRangesWithAttribute(_0x4768f9,_0x70d0f5,_0x4eb7b4){const _0x6c5813=[];for(const _0x1203a4 of _0x70d0f5[_0x2cd2('0x10')]())_0x1203a4[_0x2cd2('0x7')](_0x4768f9)&&_0x6c5813[_0x2cd2('0x12')](_0x4eb7b4[_0x2cd2('0x5')](_0x1203a4));return _0x6c5813;}export function getElementsAffectedByListItemRename(_0x410088){const _0x5e7644=[];if(_0x410088['is'](_0x2cd2('0x16'),'listItem')){let _0x525a5c=_0x410088[_0x2cd2('0x9')];for(;_0x525a5c&&_0x525a5c['is'](_0x2cd2('0x16'),_0x2cd2('0x6'))&&_0x525a5c[_0x2cd2('0x8')](_0x2cd2('0x1d'))>0x0;)_0x5e7644['push'](_0x525a5c),_0x525a5c=_0x525a5c[_0x2cd2('0x9')];}return _0x5e7644;}export function downcastSplitMergeMarker(_0x101166,_0x2c374e,{showActiveMarker:_0x8058df=!0x0}={}){const _0x51e6d2=_0x101166[_0x2cd2('0x1')]['get']('TrackChangesEditing');return(_0x4880fe,_0x89eb61,_0x152955)=>{if(!_0x152955[_0x2cd2('0x23')][_0x2cd2('0x1b')](_0x89eb61[_0x2cd2('0x4')],_0x4880fe[_0x2cd2('0xc')]))return;const _0x3d7945=_0x89eb61[_0x2cd2('0x4')][_0x2cd2('0x1e')](),_0x56f71b=_0x89eb61['markerRange'][_0x2cd2('0x14')],_0x4bb976=_0x101166[_0x2cd2('0x0')][_0x2cd2('0xe')];let _0x5013f0=null,_0x45829c=null,_0x38fc1e=!0x1,_0x357033=!0x1;for(const _0x5caabc of _0x3d7945){const _0xcbbab=_0x5caabc[_0x2cd2('0x3')];_0x38fc1e=_0x38fc1e||_0x4bb976[_0x2cd2('0x18')](_0xcbbab);const _0xb2fbee=_0x152955['mapper']['toViewElement'](_0xcbbab);if(_0xb2fbee&&_0xb2fbee['getCustomProperty'](_0x2cd2('0x21')))return;_0x2cd2('0x1f')==_0x5caabc['type']&&(_0x4bb976[_0x2cd2('0xd')](_0xcbbab)&&!_0x4bb976['isLimit'](_0xcbbab)&&(_0xcbbab[_0x2cd2('0x9')]||_0x56f71b[_0x2cd2('0xb')]?_0x5013f0&&_0x5013f0[_0x2cd2('0x11')]==_0xcbbab||(_0x5013f0=_0xcbbab,_0x39d470(_0x5caabc[_0x2cd2('0xf')]),_0x357033=!0x0):_0x45829c=_0x45829c||_0x5caabc[_0x2cd2('0xf')]));}function _0x39d470(_0x27bc9d){const _0x100c2d=_0x152955[_0x2cd2('0x1a')][_0x2cd2('0x19')](_0x2cd2('0x20'),{'class':_0x2cd2('0x13')+_0x2c374e}),_0x1d6f5f=_0x152955['mapper']['toViewPosition'](_0x27bc9d);_0x8058df&&_0x51e6d2[_0x2cd2('0x22')]['includes'](_0x89eb61[_0x2cd2('0x1c')])&&_0x152955[_0x2cd2('0x1a')]['addClass'](_0x2cd2('0x2'),_0x100c2d),_0x152955[_0x2cd2('0x1a')][_0x2cd2('0x17')](_0x1d6f5f,_0x100c2d),_0x152955[_0x2cd2('0xa')][_0x2cd2('0x15')](_0x100c2d,_0x89eb61[_0x2cd2('0x1c')]);}_0x38fc1e||_0x357033||!_0x45829c||_0x39d470(_0x45829c);};}
|