@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230814.0 → 0.0.0-nightly-20230816.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 _0x4198=['newRange','length','elementToElement','isEmpty','cells','endColumn','columnInsertionRanges','*Replace\x20table\x20cells*','markMultiRangeDeletion','updateMarker','insert','tablePasteColumn','remove','deletion','createRange','suggestion:formatBlock:tablePasteCell','activeMarkers','name','ck-suggestion-marker-insertion','suggestion-td','markerToHighlight','editingDowncast','getItems','push','reduce','previous','TableClipboard','tableCellBorderColor','register','tableCellSuggestion','commands','element','markerName','subType','suggestionUnloaded','insertion','view','first','tableCellHorizontalAlignment','some','rows','suggestion','removeMarkers','getSuggestion','removeMarker','tablePaste','tableCellVerticalAlignment','createElement','cell','removeColumns','high','map','getRowIndexes','model','removeRows','end','registerPostFixer','editor','getAllAdjacentSuggestions','next','get','find','_getCoordsForCells','getContainedElement','deletionRanges','tableCell','differ','requires','table','getChanges','_descriptionFactory','stop','batch','ck-suggestion-marker','createRangeOn','columns','add','getRange','root','start','nodeAfter','change','join','_suggestionFactory','isEqual','markMultiRangeInsertion','discard','getTableIfOnlyTableInContent','insertColumns','fill','getSuggestions','isInContent','Users','tablePasteRow','conversion','tableCellBorderWidth','type','low','getRows','containsRange','rowInsertionRanges','_tablePostFixingSubtypes','every','createRangeIn','position','from','rowInsertionIndexes','registerCustomCallback','startsWith','fromEntries','set','unwrap','setAttributes','afterInit','getColumnIndexes','markerAttributes','columnInsertionIndexes','getChangedMarkers','getSelectionAffectedTableCells','tablePasteChainId','document','forceDefaultExecution','_replaceTableSlotCell','includes','insertContent','getMarkers','_splitMarkerName','_isForcedDefaultExecutionBlock','$graveyard','getColumns','entries','plugins','_createdBatches','keys','tablePasteCell','tableCellBorderStyle','getRanges','for','getChild','findAncestor','getAttributes','accept','dataDowncast','filter','getChildren','has','wrap','formatBlock','tableCellBackgroundColor','paragraph','oldRange','createTableWalker','insertionRanges','attributes','locale','setAttribute'];(function(_0x437add,_0x419833){const _0x3900c5=function(_0x2731d2){while(--_0x2731d2){_0x437add['push'](_0x437add['shift']());}};_0x3900c5(++_0x419833);}(_0x4198,0x17f));const _0x3900=function(_0x437add,_0x419833){_0x437add=_0x437add-0x0;let _0x3900c5=_0x4198[_0x437add];return _0x3900c5;};import{getTranslation as _0x3f2121}from'../utils/common-translations';import{Plugin as _0x4e6504}from'ckeditor5/src/core';import{uid as _0x3dfb24,priorities as _0x4e4404}from'ckeditor5/src/utils';import _0x2ea1bd from'./table';const le=[_0x3900('0x18'),_0x3900('0x70'),_0x3900('0x40'),_0x3900('0x7b'),_0x3900('0x83'),_0x3900('0x4d'),'tableCellPadding'],ae=Object['fromEntries'](le[_0x3900('0x88')](_0x4e79ed=>[_0x4e79ed,null]));export default class kt extends _0x4e6504{static get[_0x3900('0x98')](){return[_0x2ea1bd];}[_0x3900('0x2a')](){const _0x613aa1=this[_0x3900('0x8e')];if(!_0x613aa1[_0x3900('0x3c')][_0x3900('0x4a')](_0x3900('0x6f')))return;const _0x4cf0b7=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')]('TrackChangesEditing'),_0x5d12fe=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')]('TableUtils'),_0x4329d2=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x2ea1bd),_0x28a4c0=_0x613aa1[_0x3900('0x3c')]['get'](_0x3900('0x6f'));_0x4329d2[_0x3900('0x1e')]['push'](_0x3900('0x16'),_0x3900('0x60')),_0x613aa1['model']['schema'][_0x3900('0x71')](_0x3900('0x72'),{'allowIn':_0x3900('0x96'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x613aa1[_0x3900('0x17')][_0x3900('0x57')]({'model':_0x3900('0x72'),'view':_0x3900('0x68')});let _0xb48b64=null;_0x613aa1[_0x3900('0x8a')]['on'](_0x3900('0x35'),(_0x54c404,_0x1fa016)=>{const [_0x3f699d,_0x4c7d2e]=_0x1fa016,_0xef005f=_0x1fa016[_0x1fa016[_0x3900('0x56')]-0x1];_0xef005f&&_0xef005f[_0x3900('0x32')]||_0x4cf0b7[_0x3900('0x38')]||this[_0x3900('0x8e')][_0x3900('0x73')]['get']('trackChanges')['value']&&function(_0x453b11,_0x40b5d2,_0x12eb7d,_0x3f2a4f,_0x5a1f80){if(_0x40b5d2&&!_0x40b5d2['is']('documentSelection'))return!0x1;const _0x18320b=_0x5a1f80[_0x3900('0x10')](_0x453b11,_0x12eb7d);if(!_0x18320b||!fe(_0x18320b,void 0x0,_0x3f2a4f))return!0x1;const _0x45c33a=_0x3f2a4f[_0x3900('0x2f')](_0x12eb7d[_0x3900('0x31')]['selection']);if(!_0x45c33a[_0x3900('0x56')])return!0x1;const _0x4ddcb1=_0x45c33a[0x0]['findAncestor'](_0x3900('0x99')),_0x2ca3d1=_0x3f2a4f[_0x3900('0x89')](_0x45c33a),_0x1c232d=_0x3f2a4f[_0x3900('0x2b')](_0x45c33a),_0x5f4406={'startRow':_0x2ca3d1[_0x3900('0x7a')],'endRow':_0x2ca3d1['last'],'startColumn':_0x1c232d[_0x3900('0x7a')],'endColumn':_0x1c232d['last']};return 0x1==_0x45c33a['length']&&(_0x5f4406['endRow']+=_0x3f2a4f[_0x3900('0x1b')](_0x18320b)-0x1,_0x5f4406[_0x3900('0x5a')]+=_0x3f2a4f[_0x3900('0x3a')](_0x18320b)-0x1),fe(_0x4ddcb1,_0x5f4406,_0x3f2a4f);}(_0x3f699d,_0x4c7d2e,_0x613aa1[_0x3900('0x8a')],_0x5d12fe,_0x28a4c0)&&(_0x54c404[_0x3900('0x0')](),_0xb48b64={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x613aa1[_0x3900('0x8a')]['change'](()=>{_0x613aa1[_0x3900('0x8a')]['insertContent'](_0x1fa016[0x0],_0x1fa016[0x1],_0x1fa016[0x2],{'forceDefaultExecution':!0x0});const _0x4bc30a=_0x3dfb24(),{rowInsertionRanges:_0x46a8a1,columnInsertionRanges:_0x40196e,insertionRanges:_0x511df2,deletionRanges:_0xe152f7,cells:_0x2d5970}=_0xb48b64;_0x46a8a1['length']&&_0x4cf0b7[_0x3900('0xe')](_0x46a8a1,'tablePasteRow',{'tablePasteChainId':_0x4bc30a}),_0x40196e[_0x3900('0x56')]&&_0x4cf0b7[_0x3900('0xe')](_0x40196e,_0x3900('0x60'),{'tablePasteChainId':_0x4bc30a}),_0x511df2[_0x3900('0x56')]&&_0x4cf0b7[_0x3900('0xe')](_0x511df2,_0x3900('0x82'),{'tablePasteChainId':_0x4bc30a,'skipNestingCheck':!0x0}),_0xe152f7['length']&&_0x4cf0b7[_0x3900('0x5d')](_0xe152f7,_0x3900('0x82'),{'tablePasteChainId':_0x4bc30a,'skipNestingCheck':!0x0});const _0x3f35ec=_0x4cf0b7['markMultiRangeBlockFormat'](_0x2d5970[_0x3900('0x88')](({element:_0x410a2d})=>_0x410a2d),{'formatGroupId':_0x3dfb24()},[],_0x3900('0x3f'),{'tablePasteChainId':_0x4bc30a});if(_0x3f35ec){const _0xcead39=_0x3f35ec['getMarkers'](),_0x174a45=[];for(const {element:_0x5cd268,attributes:_0x930110}of _0x2d5970){if(!_0x930110)continue;const _0x3fa58a=_0x613aa1[_0x3900('0x8a')][_0x3900('0x3')](_0x5cd268),_0x5549dc=_0xcead39[_0x3900('0x92')](_0x46c520=>_0x46c520['getRange']()['isEqual'](_0x3fa58a));_0x5549dc&&_0x174a45[_0x3900('0x6c')]([_0x5549dc[_0x3900('0x66')],_0x930110]);}_0x174a45[_0x3900('0x56')]&&_0x3f35ec[_0x3900('0x54')](_0x3900('0x2c'),Object[_0x3900('0x26')](_0x174a45));}_0xb48b64=null;}));},{'priority':_0x4e4404[_0x3900('0x87')]+0xa}),_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x3900('0x6f'))['on'](_0x3900('0x33'),(_0x5515e8,_0x45bd95)=>{const [_0x21a6d2,_0x443422,,_0x252cc2]=_0x45bd95;if(!_0xb48b64)return;_0x5515e8['stop']();const _0x13f020=_0x21a6d2[_0x3900('0x85')],_0x2f5bc3=_0x443422,_0x5586e3=ce(_0x13f020),_0xf3c014=ce(_0x2f5bc3);_0x5515e8['return']=_0x13f020;let _0x1a1b6e=null,_0x33e4ae=null;if(_0xf3c014||_0x5586e3){if(_0x5586e3&&!_0xf3c014){_0x252cc2[_0x3900('0x61')](_0x13f020[_0x3900('0x43')](0x0));for(const _0x36541a of Array['from'](_0x2f5bc3[_0x3900('0x49')]()))_0x252cc2[_0x3900('0x5f')](_0x36541a,_0x13f020,'end');const _0x57c493=_0xb48b64['rowInsertionIndexes']['includes'](_0x21a6d2['row']),_0x416ef7=_0xb48b64[_0x3900('0x2d')][_0x3900('0x34')](_0x21a6d2['column']);_0x57c493||_0x416ef7||(_0x1a1b6e=_0x252cc2['createRangeIn'](_0x13f020));}else _0xf3c014&&!_0x5586e3&&(_0x33e4ae=_0x252cc2[_0x3900('0x20')](_0x13f020));}else{const _0x5c8d76=_0x252cc2[_0x3900('0x84')](_0x3900('0x72')),_0x318704=_0x252cc2[_0x3900('0x84')](_0x3900('0x72'));_0x252cc2[_0x3900('0x4b')](_0x252cc2[_0x3900('0x20')](_0x13f020),_0x318704),_0x252cc2[_0x3900('0x5f')](_0x5c8d76,_0x13f020,0x0);for(const _0x4ac561 of Array['from'](_0x2f5bc3['getChildren']()))_0x252cc2[_0x3900('0x5f')](_0x4ac561,_0x5c8d76,_0x3900('0x8c'));_0x1a1b6e=_0x252cc2[_0x3900('0x3')](_0x5c8d76),_0x33e4ae=_0x252cc2[_0x3900('0x3')](_0x318704);}const _0x47da70=Array[_0x3900('0x22')](_0x2f5bc3[_0x3900('0x45')]())[_0x3900('0x48')](([_0x10038c])=>le[_0x3900('0x34')](_0x10038c));_0xb48b64[_0x3900('0x59')][_0x3900('0x6c')]({'element':_0x13f020,'attributes':_0x47da70[_0x3900('0x56')]?Object['fromEntries'](_0x47da70):null}),_0x1a1b6e&&_0xb48b64[_0x3900('0x51')][_0x3900('0x6c')](_0x1a1b6e),_0x33e4ae&&_0xb48b64[_0x3900('0x95')][_0x3900('0x6c')](_0x33e4ae);},{'priority':_0x3900('0x87')}),_0x5d12fe['on'](_0x3900('0x11'),(_0x574625,_0x1eb86a)=>{const [_0x42401e,_0x143421={}]=_0x1eb86a;if(!_0xb48b64)return;const _0xf91f97=_0x143421['at']||0x0,_0x579ef3=_0x143421[_0x3900('0x4')]||0x1;_0xb48b64[_0x3900('0x2d')]=new Array(_0x579ef3)['fill'](_0xf91f97)[_0x3900('0x88')]((_0x40cb7d,_0x369209)=>_0x40cb7d+_0x369209);for(const {cell:_0x3db806}of _0x5d12fe['createTableWalker'](_0x42401e,{'startColumn':_0xf91f97,'endColumn':_0xf91f97+_0x579ef3-0x1}))_0xb48b64[_0x3900('0x5b')]['push'](_0x613aa1[_0x3900('0x8a')][_0x3900('0x3')](_0x3db806));},{'priority':_0x3900('0x1a')}),_0x5d12fe['on']('insertRows',(_0x308965,_0x4bbbd5)=>{const [_0x112154,_0x17987f={}]=_0x4bbbd5;if(!_0xb48b64)return;const _0x499356=_0x17987f['at']||0x0,_0x3530a2=_0x17987f[_0x3900('0x7d')]||0x1;_0xb48b64[_0x3900('0x23')]=new Array(_0x3530a2)[_0x3900('0x12')](_0x499356)[_0x3900('0x88')]((_0x50bcb3,_0x5bcbc2)=>_0x50bcb3+_0x5bcbc2);for(const {cell:_0x1ad4ab}of _0x5d12fe[_0x3900('0x50')](_0x112154,{'startRow':_0x499356,'endRow':_0x499356+_0x3530a2-0x1}))_0xb48b64[_0x3900('0x1d')]['push'](_0x613aa1[_0x3900('0x8a')]['createRangeOn'](_0x1ad4ab));},{'priority':_0x3900('0x1a')}),_0x4cf0b7[_0x3900('0x9b')]['registerDescriptionCallback'](_0x263cd0=>{if(_0x263cd0[_0x3900('0x76')]&&_0x263cd0[_0x3900('0x76')][_0x3900('0x25')](_0x3900('0x82')))return _0x263cd0[_0x3900('0x6e')]?{}:{'type':_0x3900('0x78'),'content':_0x3f2121(_0x613aa1[_0x3900('0x53')],_0x3900('0x5c'))};});const _0x491fc0=()=>{};for(const _0x5c9ddd of[_0x3900('0x82'),_0x3900('0x60'),_0x3900('0x16'),_0x3900('0x3f')])_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x78'),_0x5c9ddd,_0x3900('0xb'),_0x491fc0),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x62'),_0x5c9ddd,_0x3900('0xb'),_0x491fc0);_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x4c'),_0x3900('0x3f'),'discard',_0x491fc0),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x4c'),'tablePasteCell',_0x3900('0x46'),(_0x38b5ff,_0x2e8693,_0x29cc47)=>{const _0x434c21=_0x38b5ff[_0x3900('0x88')](_0x415e60=>_0x415e60[_0x3900('0x94')]())[_0x3900('0x48')](_0x4528ef=>_0x4528ef),_0x20a7c9=new Map(_0x434c21['map'](_0x335df8=>[_0x335df8,null]));if(_0xb48b64)for(const {element:_0x239ad4,attributes:_0xdcab87}of _0xb48b64[_0x3900('0x59')])_0xdcab87&&_0x20a7c9[_0x3900('0x27')](_0x239ad4,_0xdcab87);else{if(_0x29cc47&&_0x29cc47[_0x3900('0x2c')])for(const [_0x3a8daa,_0x2ada45]of Object[_0x3900('0x3b')](_0x29cc47['markerAttributes'])){const _0x481a1d=_0x613aa1[_0x3900('0x8a')]['markers'][_0x3900('0x91')](_0x3a8daa),_0x1267c3=_0x481a1d?_0x481a1d[_0x3900('0x6')]()[_0x3900('0x94')]():null;_0x1267c3&&_0x20a7c9['set'](_0x1267c3,_0x2ada45);}}_0x613aa1[_0x3900('0x8a')]['change'](_0x1a4e90=>{for(const [_0x4b797e,_0x4bd8d0]of _0x20a7c9)_0x1a4e90[_0x3900('0x29')]({...ae,..._0x4bd8d0},_0x4b797e);});});const _0x358e21=(_0x427271,_0x47f82c)=>{_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x427271,_0x3900('0x82'),_0x47f82c,(_0x27656d,_0x99ba82,_0x506472)=>{_0x613aa1[_0x3900('0x8a')][_0x3900('0xa')](_0x26b130=>{const _0x36d62c=[];for(const _0x522a62 of _0x27656d){const _0x54c185=_0x522a62[_0x3900('0x8')][_0x3900('0x9')];_0x54c185['is']('element',_0x3900('0x72'))&&_0x36d62c[_0x3900('0x6c')](_0x54c185);}_0x4cf0b7[_0x3900('0xc')]['getSuggestionCallback'](_0x427271,null,_0x47f82c)(_0x27656d,_0x99ba82,_0x506472);for(const _0x127b8b of _0x36d62c)_0x3900('0x39')!=_0x127b8b[_0x3900('0x7')]['rootName']&&_0x26b130['unwrap'](_0x127b8b);});});};_0x358e21(_0x3900('0x78'),_0x3900('0x46')),_0x358e21(_0x3900('0x78'),_0x3900('0xf')),_0x358e21(_0x3900('0x62'),_0x3900('0x46')),_0x358e21(_0x3900('0x62'),_0x3900('0xf')),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x78'),_0x3900('0x16'),_0x3900('0xf'),_0x3af99b=>{const _0x458294=_0x3af99b[_0x3900('0x88')](_0x3fc212=>_0x3fc212[_0x3900('0x94')]()),_0x424717=_0x458294[0x0]['findAncestor']('table'),{minRow:_0xfd4fe0,maxRow:_0x5d32b7}=_0x4329d2['_getCoordsForCells'](_0x458294);_0x5d12fe[_0x3900('0x8b')](_0x424717,{'at':_0xfd4fe0,'rows':_0x5d32b7-_0xfd4fe0+0x1});}),_0x4cf0b7[_0x3900('0xc')][_0x3900('0x24')](_0x3900('0x78'),_0x3900('0x60'),_0x3900('0xf'),_0x4e10de=>{const _0x492b6c=_0x4e10de[_0x3900('0x88')](_0x241807=>_0x241807[_0x3900('0x94')]()),_0x3d8423=_0x492b6c[0x0][_0x3900('0x44')](_0x3900('0x99')),{minColumn:_0x5acef1,maxColumn:_0x5ceb02}=_0x4329d2[_0x3900('0x93')](_0x492b6c);_0x5d12fe[_0x3900('0x86')](_0x3d8423,{'at':_0x5acef1,'columns':_0x5ceb02-_0x5acef1+0x1});});const _0xca429f=(_0x3be7c1,_0x2b61ca)=>{if(!_0x2b61ca[_0x3900('0x76')]||!_0x2b61ca[_0x3900('0x76')][_0x3900('0x25')](_0x3900('0x82')))return;const _0x1eebd3=_0x2b61ca[_0x3900('0x52')][_0x3900('0x30')],_0x4f6ae6=_0x4cf0b7[_0x3900('0x13')]()['filter'](_0x3c8f4b=>_0x3c8f4b[_0x3900('0x14')]&&_0x3c8f4b[_0x3900('0x52')]&&_0x3c8f4b[_0x3900('0x52')][_0x3900('0x30')]==_0x1eebd3);_0x4f6ae6[_0x3900('0x56')]&&_0x2b61ca['getAllAdjacentSuggestions']()[_0x3900('0x56')]!=_0x4f6ae6['length']&&_0x4f6ae6[_0x3900('0x6d')]((_0x460438,_0x53b46b)=>(_0x460438[_0x3900('0x90')]=_0x53b46b,_0x53b46b[_0x3900('0x6e')]=_0x460438,_0x53b46b));};function _0x16105f(_0x19e750,_0xd8803f=!0x0){const {id:_0x2054da}=_0x4cf0b7[_0x3900('0x37')](_0x19e750[_0x3900('0x75')]),_0x420855=[_0x3900('0x2'),_0x3900('0x67')],_0x261fac=_0x4cf0b7[_0x3900('0x65')]['includes'](_0x19e750['markerName']);return _0x261fac&&_0x420855[_0x3900('0x6c')]('ck-suggestion-marker--active'),{'classes':_0x420855,'attributes':{'data-suggestion':_0x2054da},'priority':_0x261fac&&_0xd8803f?0xbc2:0xbb8};}_0x4cf0b7['on']('suggestionLoaded',_0xca429f,{'priority':_0x3900('0x87')}),_0x4cf0b7['on'](_0x3900('0x77'),_0xca429f,{'priority':_0x3900('0x87')}),_0x613aa1[_0x3900('0x8a')][_0x3900('0x31')]['registerPostFixer'](()=>{let _0x3fb490=!0x1;const _0x186838=Array[_0x3900('0x22')](_0x613aa1[_0x3900('0x8a')][_0x3900('0x31')][_0x3900('0x97')]['getChangedMarkers']());for(const {name:_0x1d3e1b,data:_0x2f48d8}of _0x186838){const {group:_0x2b8b4b,type:_0x34affc,id:_0x280f5e}=_0x4cf0b7[_0x3900('0x37')](_0x1d3e1b);if('suggestion'!=_0x2b8b4b||'deletion'!=_0x34affc||_0x2f48d8[_0x3900('0x4f')])continue;if(!_0x4cf0b7['hasSuggestion'](_0x280f5e))continue;const _0x311d2d=_0x4cf0b7[_0x3900('0x80')](_0x280f5e)[_0x3900('0x41')](),_0x1a9013=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x3900('0x15'))['me'];for(const _0x2607da of _0x4cf0b7[_0x3900('0x13')]()){if(!_0x2607da[_0x3900('0x14')]||_0x2607da['author']!=_0x1a9013)continue;if('formatBlock'!=_0x2607da[_0x3900('0x19')]||_0x3900('0x3f')!=_0x2607da[_0x3900('0x76')])continue;if(_0x2607da[_0x3900('0x41')]()[_0x3900('0x1f')](_0x1e92a6=>_0x311d2d[_0x3900('0x7c')](_0x51a511=>_0x51a511[_0x3900('0x1c')](_0x1e92a6,!0x0))))for(const _0x3e31d9 of _0x2607da[_0x3900('0x8f')]())_0x3e31d9[_0x3900('0x14')]&&(_0x3e31d9[_0x3900('0xf')](),_0x3fb490=!0x0);}}return _0x3fb490;}),_0x613aa1[_0x3900('0x8a')][_0x3900('0x31')]['registerPostFixer'](_0xfce64c=>{const _0x2424bd=_0x613aa1['commands'][_0x3900('0x91')]('redo');if(!_0x2424bd||!_0x2424bd[_0x3900('0x3d')][_0x3900('0x4a')](_0xfce64c[_0x3900('0x1')]))return!0x1;let _0x1b51d8=!0x1;const _0x176a6a=_0x613aa1[_0x3900('0x3c')][_0x3900('0x91')](_0x3900('0x15'))['me'],_0x2b08e4=_0x613aa1[_0x3900('0x8a')]['document']['differ'][_0x3900('0x9a')](),_0x54728c=Array[_0x3900('0x22')](_0x613aa1[_0x3900('0x8a')]['document']['differ'][_0x3900('0x2e')]())[_0x3900('0x48')](({name:_0x38c14c,data:_0x457de1})=>{const {group:_0x471ed8,subType:_0x54730d,authorId:_0x59ee03}=_0x4cf0b7[_0x3900('0x37')](_0x38c14c);return _0x3900('0x7e')==_0x471ed8&&_0x3900('0x82')==_0x54730d&&_0x59ee03==_0x176a6a['id']&&!_0x457de1[_0x3900('0x4f')];});for(const _0x4d8b83 of _0x2b08e4){if(_0x3900('0x5f')!=_0x4d8b83['type']||_0x3900('0x72')!=_0x4d8b83[_0x3900('0x66')]||0x1!=_0x4d8b83[_0x3900('0x56')])continue;const _0x4481f6=_0xfce64c[_0x3900('0x63')](_0x4d8b83[_0x3900('0x21')],_0x4d8b83[_0x3900('0x21')]['getShiftedBy'](0x1));if(!_0x54728c['find'](({data:_0x29ffba})=>_0x29ffba[_0x3900('0x55')][_0x3900('0xd')](_0x4481f6)))for(const {name:_0x17500c,data:_0xa2ee6d}of _0x54728c)if(_0x4481f6['containsRange'](_0xa2ee6d['newRange'])){_0xfce64c[_0x3900('0x5e')](_0x17500c,{'range':_0x4481f6}),_0x1b51d8=!0x0;break;}}return _0x1b51d8;}),_0x613aa1['model'][_0x3900('0x31')][_0x3900('0x8d')](_0x4c5d8e=>{let _0x40166f=!0x1;const _0x21f3ef=_0x613aa1[_0x3900('0x3c')]['get'](_0x3900('0x15'))['me'],_0x5dc783=_0x4cf0b7[_0x3900('0x13')]()[_0x3900('0x48')](_0x4c5f87=>_0x4c5f87[_0x3900('0x14')]&&_0x4c5f87['author']==_0x21f3ef),_0x7e9986=new Set(),_0x5bb872=new Set();for(const _0x4364a5 of _0x5dc783)if(_0x3900('0x82')==_0x4364a5[_0x3900('0x76')])for(const _0x44e451 of _0x4364a5[_0x3900('0x36')]()){const _0xd70895=_0x44e451[_0x3900('0x6')]()[_0x3900('0x94')]();if(_0xd70895){if(_0xd70895['is'](_0x3900('0x74'),'tableCellSuggestion')&&ce(_0xd70895)){_0x4364a5['removeMarker'](_0x44e451[_0x3900('0x66')]),_0x7e9986['add'](_0xd70895),_0x40166f=!0x0;const _0x5b83d8=_0xd70895['nextSibling'],_0x7b7f70=_0xd70895['previousSibling'],_0x550d61=_0x5b83d8&&_0x5b83d8['is'](_0x3900('0x74'),_0x3900('0x72')),_0x41d8bd=_0x7b7f70&&_0x7b7f70['is'](_0x3900('0x74'),_0x3900('0x72'));_0x550d61&&!_0x7e9986[_0x3900('0x4a')](_0x5b83d8)&&_0x5bb872[_0x3900('0x5')](_0x5b83d8),_0x41d8bd&&!_0x7e9986['has'](_0x7b7f70)&&_0x5bb872[_0x3900('0x5')](_0x7b7f70);}else _0xd70895['is'](_0x3900('0x74'),_0x3900('0x4e'))&&_0xd70895[_0x3900('0x58')]&&(_0x4364a5[_0x3900('0x81')](_0x44e451['name']),_0x40166f=!0x0);}}else{if(_0x3900('0x3f')==_0x4364a5[_0x3900('0x76')]){if(!_0x4364a5[_0x3900('0x52')]||!_0x4364a5['attributes'][_0x3900('0x30')])continue;const _0x22614f=_0x4364a5['attributes'][_0x3900('0x2c')];if(_0x22614f&&Object[_0x3900('0x3e')](_0x22614f)[_0x3900('0x56')])continue;const _0x27f221=_0x4364a5['attributes'][_0x3900('0x30')];let _0x23d2cf=!0x0,_0x204076=!0x0;for(const _0x557b96 of _0x5dc783)if(_0x557b96[_0x3900('0x76')]&&_0x557b96[_0x3900('0x76')][_0x3900('0x25')]('tablePaste')){if(!_0x557b96['attributes'][_0x3900('0x30')]){_0x204076=!0x1;break;}if(_0x557b96['id']!=_0x4364a5['id']&&_0x557b96[_0x3900('0x52')][_0x3900('0x30')]==_0x27f221){_0x23d2cf=!0x1;break;}}_0x204076&&_0x23d2cf&&(_0x4364a5[_0x3900('0x7f')](),_0x40166f=!0x0);}}for(const _0x5f40d4 of _0x7e9986)_0x4c5d8e['remove'](_0x5f40d4);for(const _0x339cc5 of _0x5bb872)_0x4c5d8e[_0x3900('0x28')](_0x339cc5);return _0x40166f;}),_0x613aa1[_0x3900('0x17')][_0x3900('0x42')](_0x3900('0x6a'))[_0x3900('0x69')]({'model':_0x3900('0x64'),'view':(_0x10e2a6,_0x4b470c)=>_0x16105f(_0x10e2a6),'converterPriority':_0x3900('0x87')}),_0x613aa1[_0x3900('0x17')][_0x3900('0x42')](_0x3900('0x47'))[_0x3900('0x69')]({'model':_0x3900('0x64'),'view':(_0x2a6413,_0x3faf59)=>_0x3faf59['options']['showSuggestionHighlights']?_0x16105f(_0x2a6413,!0x1):null,'converterPriority':'high'});const _0x468c41=_0x613aa1['editing'][_0x3900('0x79')];this['listenTo'](_0x468c41[_0x3900('0x31')],'clipboardOutput',(_0x54d50e,_0x4f9c55)=>{const _0x2b5c1d=[];for(const _0x3dc497 of _0x468c41[_0x3900('0x20')](_0x4f9c55['content'])[_0x3900('0x6b')]())_0x3dc497['is'](_0x3900('0x74'),_0x3900('0x68'))&&_0x2b5c1d[_0x3900('0x6c')](_0x3dc497);_0x468c41[_0x3900('0xa')](_0x401df2=>{for(const _0x492856 of _0x2b5c1d)_0x401df2['move'](_0x401df2[_0x3900('0x20')](_0x492856),_0x401df2['createPositionBefore'](_0x492856)),_0x401df2[_0x3900('0x61')](_0x492856);});});}}function ce(_0x16f8ac){if(_0x16f8ac['isEmpty'])return!0x0;const _0x13be3e=_0x16f8ac[_0x3900('0x43')](0x0);return _0x13be3e['is']('element','paragraph')&&_0x13be3e[_0x3900('0x58')];}function fe(_0x7e67c0,_0x118092={},_0x20ff0b){for(const {isAnchor:_0x447dd3,cellHeight:_0x1aa8e3,cellWidth:_0x5792a1}of _0x20ff0b[_0x3900('0x50')](_0x7e67c0,{'includeAllSlots':!0x0,..._0x118092}))if(!_0x447dd3||0x1!=_0x1aa8e3||0x1!=_0x5792a1)return!0x1;return!0x0;}
|
|
23
|
+
const _0x36b4=['end','setAttribute','getSelectionAffectedTableCells','add','row','discard','entries','createRangeIn','push','includes','fill','documentSelection','getItems','_getCoordsForCells','insertion','get','ck-suggestion-marker','rowInsertionIndexes','return','_splitMarkerName','model','suggestion-td','last','_createdBatches','columns','insertionRanges','newRange','getRows','tableCellBorderColor','plugins','differ','getSuggestions','ck-suggestion-marker-insertion','name','unwrap','getSuggestionCallback','tablePasteColumn','activeMarkers','element','findAncestor','suggestionUnloaded','commands','getColumns','registerDescriptionCallback','filter','tablePasteChainId','next','type','tableCellBorderWidth','tableCellSuggestion','paragraph','getContainedElement','ck-suggestion-marker--active','createElement','view','fromEntries','remove','isEqual','markerAttributes','first','move','endRow','high','subType','deletion','insertContent','_isForcedDefaultExecutionBlock','attributes','insert','getAllAdjacentSuggestions','tablePasteRow','createRangeOn','_replaceTableSlotCell','rootName','trackChanges','accept','isEmpty','registerPostFixer','_suggestionFactory','tablePaste','markMultiRangeInsertion','getMarkers','getSuggestion','start','getTableIfOnlyTableInContent','rowInsertionRanges','tableCell','createTableWalker','containsRange','low','position','redo','schema','author','reduce','table','find','join','afterInit','previousSibling','createPositionBefore','removeColumns','markerName','for','register','getChangedMarkers','some','registerCustomCallback','suggestionLoaded','from','insertColumns','change','getRanges','previous','updateMarker','deletionRanges','listenTo','content','every','options','elementToElement','columnInsertionRanges','tableCellHorizontalAlignment','startsWith','cells','TrackChangesEditing','value','setAttributes','document','has','column','Users','showSuggestionHighlights','markerToHighlight','map','isInContent','formatBlock','removeRows','getChildren','requires','tablePasteCell','getRowIndexes','getChild','stop','columnInsertionIndexes','keys','insertRows','suggestion','getShiftedBy','set','getRange','removeMarker','oldRange','markers','length','_tablePostFixingSubtypes','TableClipboard','endColumn','wrap'];(function(_0x3b4c08,_0x36b4a4){const _0xcc8f2b=function(_0x57ac78){while(--_0x57ac78){_0x3b4c08['push'](_0x3b4c08['shift']());}};_0xcc8f2b(++_0x36b4a4);}(_0x36b4,0x15d));const _0xcc8f=function(_0x3b4c08,_0x36b4a4){_0x3b4c08=_0x3b4c08-0x0;let _0xcc8f2b=_0x36b4[_0x3b4c08];return _0xcc8f2b;};import{getTranslation as _0x34a40d}from'../utils/common-translations';import{Plugin as _0x3d7833}from'ckeditor5/src/core';import{uid as _0x308946,priorities as _0x18ed9a}from'ckeditor5/src/utils';import _0x157772 from'./table';const le=[_0xcc8f('0x11'),_0xcc8f('0x9c'),'tableCellBorderStyle',_0xcc8f('0x5b'),'tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ae=Object['fromEntries'](le['map'](_0x5550e6=>[_0x5550e6,null]));export default class kt extends _0x3d7833{static get[_0xcc8f('0x6c')](){return[_0x157772];}[_0xcc8f('0x43')](){const _0x4c76a5=this['editor'];if(!_0x4c76a5[_0xcc8f('0x9d')][_0xcc8f('0x62')](_0xcc8f('0x7d')))return;const _0x36b1f4=_0x4c76a5[_0xcc8f('0x9d')][_0xcc8f('0x8f')](_0xcc8f('0x5e')),_0x1c6dda=_0x4c76a5[_0xcc8f('0x9d')]['get']('TableUtils'),_0x25d3d1=_0x4c76a5['plugins'][_0xcc8f('0x8f')](_0x157772),_0x3e6b21=_0x4c76a5['plugins'][_0xcc8f('0x8f')](_0xcc8f('0x7d'));_0x25d3d1[_0xcc8f('0x7c')][_0xcc8f('0x88')](_0xcc8f('0x27'),_0xcc8f('0x5')),_0x4c76a5[_0xcc8f('0x94')][_0xcc8f('0x3d')][_0xcc8f('0x49')]('tableCellSuggestion',{'allowIn':_0xcc8f('0x37'),'allowContentOf':_0xcc8f('0x37'),'isLimit':!0x0}),_0x4c76a5['conversion'][_0xcc8f('0x59')]({'model':_0xcc8f('0x12'),'view':_0xcc8f('0x95')});let _0xa7158f=null;_0x4c76a5[_0xcc8f('0x94')]['on'](_0xcc8f('0x22'),(_0x488876,_0x5ae0f5)=>{const [_0x2d1862,_0x33f10f]=_0x5ae0f5,_0x345f2d=_0x5ae0f5[_0x5ae0f5[_0xcc8f('0x7b')]-0x1];_0x345f2d&&_0x345f2d['forceDefaultExecution']||_0x36b1f4[_0xcc8f('0x23')]||this['editor'][_0xcc8f('0xa')][_0xcc8f('0x8f')](_0xcc8f('0x2b'))[_0xcc8f('0x5f')]&&function(_0x995551,_0x2e5aa8,_0x47881b,_0x218947,_0x587947){if(_0x2e5aa8&&!_0x2e5aa8['is'](_0xcc8f('0x8b')))return!0x1;const _0x565c45=_0x587947[_0xcc8f('0x35')](_0x995551,_0x47881b);if(!_0x565c45||!fe(_0x565c45,void 0x0,_0x218947))return!0x1;const _0x4011d5=_0x218947[_0xcc8f('0x82')](_0x47881b[_0xcc8f('0x61')]['selection']);if(!_0x4011d5[_0xcc8f('0x7b')])return!0x1;const _0x3f01b7=_0x4011d5[0x0]['findAncestor'](_0xcc8f('0x40')),_0x54c329=_0x218947[_0xcc8f('0x6e')](_0x4011d5),_0x28a199=_0x218947['getColumnIndexes'](_0x4011d5),_0x19ef31={'startRow':_0x54c329[_0xcc8f('0x1c')],'endRow':_0x54c329[_0xcc8f('0x96')],'startColumn':_0x28a199[_0xcc8f('0x1c')],'endColumn':_0x28a199['last']};return 0x1==_0x4011d5['length']&&(_0x19ef31[_0xcc8f('0x1e')]+=_0x218947[_0xcc8f('0x9b')](_0x565c45)-0x1,_0x19ef31[_0xcc8f('0x7e')]+=_0x218947[_0xcc8f('0xb')](_0x565c45)-0x1),fe(_0x3f01b7,_0x19ef31,_0x218947);}(_0x2d1862,_0x33f10f,_0x4c76a5[_0xcc8f('0x94')],_0x1c6dda,_0x3e6b21)&&(_0x488876[_0xcc8f('0x70')](),_0xa7158f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4c76a5[_0xcc8f('0x94')][_0xcc8f('0x50')](()=>{_0x4c76a5[_0xcc8f('0x94')]['insertContent'](_0x5ae0f5[0x0],_0x5ae0f5[0x1],_0x5ae0f5[0x2],{'forceDefaultExecution':!0x0});const _0x16b52d=_0x308946(),{rowInsertionRanges:_0x4d4384,columnInsertionRanges:_0x3b08f1,insertionRanges:_0xc0ea40,deletionRanges:_0x26eb30,cells:_0x52abac}=_0xa7158f;_0x4d4384[_0xcc8f('0x7b')]&&_0x36b1f4[_0xcc8f('0x31')](_0x4d4384,_0xcc8f('0x27'),{'tablePasteChainId':_0x16b52d}),_0x3b08f1[_0xcc8f('0x7b')]&&_0x36b1f4[_0xcc8f('0x31')](_0x3b08f1,_0xcc8f('0x5'),{'tablePasteChainId':_0x16b52d}),_0xc0ea40[_0xcc8f('0x7b')]&&_0x36b1f4[_0xcc8f('0x31')](_0xc0ea40,_0xcc8f('0x30'),{'tablePasteChainId':_0x16b52d,'skipNestingCheck':!0x0}),_0x26eb30[_0xcc8f('0x7b')]&&_0x36b1f4['markMultiRangeDeletion'](_0x26eb30,_0xcc8f('0x30'),{'tablePasteChainId':_0x16b52d,'skipNestingCheck':!0x0});const _0x69a947=_0x36b1f4['markMultiRangeBlockFormat'](_0x52abac[_0xcc8f('0x67')](({element:_0x22c14d})=>_0x22c14d),{'formatGroupId':_0x308946()},[],_0xcc8f('0x6d'),{'tablePasteChainId':_0x16b52d});if(_0x69a947){const _0xeda1c8=_0x69a947[_0xcc8f('0x32')](),_0x209468=[];for(const {element:_0x49fb9e,attributes:_0x420e4b}of _0x52abac){if(!_0x420e4b)continue;const _0x33096d=_0x4c76a5['model']['createRangeOn'](_0x49fb9e),_0x11d7fc=_0xeda1c8[_0xcc8f('0x41')](_0x398685=>_0x398685['getRange']()[_0xcc8f('0x1a')](_0x33096d));_0x11d7fc&&_0x209468[_0xcc8f('0x88')]([_0x11d7fc[_0xcc8f('0x2')],_0x420e4b]);}_0x209468[_0xcc8f('0x7b')]&&_0x69a947[_0xcc8f('0x81')](_0xcc8f('0x1b'),Object[_0xcc8f('0x18')](_0x209468));}_0xa7158f=null;}));},{'priority':_0x18ed9a[_0xcc8f('0x1f')]+0xa}),_0x4c76a5[_0xcc8f('0x9d')][_0xcc8f('0x8f')]('TableClipboard')['on'](_0xcc8f('0x29'),(_0x4f38ad,_0x42c9e9)=>{const [_0x5c4282,_0x49f768,,_0x1cda3c]=_0x42c9e9;if(!_0xa7158f)return;_0x4f38ad[_0xcc8f('0x70')]();const _0x55cb73=_0x5c4282['cell'],_0x5a4489=_0x49f768,_0x4d431e=ce(_0x55cb73),_0x56fa4a=ce(_0x5a4489);_0x4f38ad[_0xcc8f('0x92')]=_0x55cb73;let _0x517312=null,_0x377734=null;if(_0x56fa4a||_0x4d431e){if(_0x4d431e&&!_0x56fa4a){_0x1cda3c['remove'](_0x55cb73[_0xcc8f('0x6f')](0x0));for(const _0x264013 of Array['from'](_0x5a4489['getChildren']()))_0x1cda3c[_0xcc8f('0x25')](_0x264013,_0x55cb73,'end');const _0x28cbd5=_0xa7158f[_0xcc8f('0x91')][_0xcc8f('0x89')](_0x5c4282[_0xcc8f('0x84')]),_0x40f5ad=_0xa7158f['columnInsertionIndexes'][_0xcc8f('0x89')](_0x5c4282[_0xcc8f('0x63')]);_0x28cbd5||_0x40f5ad||(_0x517312=_0x1cda3c[_0xcc8f('0x87')](_0x55cb73));}else _0x56fa4a&&!_0x4d431e&&(_0x377734=_0x1cda3c[_0xcc8f('0x87')](_0x55cb73));}else{const _0x47bf52=_0x1cda3c[_0xcc8f('0x16')](_0xcc8f('0x12')),_0xdf2686=_0x1cda3c[_0xcc8f('0x16')](_0xcc8f('0x12'));_0x1cda3c[_0xcc8f('0x7f')](_0x1cda3c[_0xcc8f('0x87')](_0x55cb73),_0xdf2686),_0x1cda3c[_0xcc8f('0x25')](_0x47bf52,_0x55cb73,0x0);for(const _0x854068 of Array[_0xcc8f('0x4e')](_0x5a4489[_0xcc8f('0x6b')]()))_0x1cda3c[_0xcc8f('0x25')](_0x854068,_0x47bf52,_0xcc8f('0x80'));_0x517312=_0x1cda3c[_0xcc8f('0x28')](_0x47bf52),_0x377734=_0x1cda3c['createRangeOn'](_0xdf2686);}const _0x3bb260=Array[_0xcc8f('0x4e')](_0x5a4489['getAttributes']())[_0xcc8f('0xd')](([_0x3c56ee])=>le[_0xcc8f('0x89')](_0x3c56ee));_0xa7158f['cells'][_0xcc8f('0x88')]({'element':_0x55cb73,'attributes':_0x3bb260[_0xcc8f('0x7b')]?Object[_0xcc8f('0x18')](_0x3bb260):null}),_0x517312&&_0xa7158f[_0xcc8f('0x99')]['push'](_0x517312),_0x377734&&_0xa7158f[_0xcc8f('0x54')][_0xcc8f('0x88')](_0x377734);},{'priority':_0xcc8f('0x1f')}),_0x1c6dda['on'](_0xcc8f('0x4f'),(_0x1066db,_0x3fc360)=>{const [_0x3a00a7,_0x1e8a70={}]=_0x3fc360;if(!_0xa7158f)return;const _0x11c890=_0x1e8a70['at']||0x0,_0x3f7b64=_0x1e8a70[_0xcc8f('0x98')]||0x1;_0xa7158f[_0xcc8f('0x71')]=new Array(_0x3f7b64)[_0xcc8f('0x8a')](_0x11c890)[_0xcc8f('0x67')]((_0x153fe9,_0x30ef82)=>_0x153fe9+_0x30ef82);for(const {cell:_0x2fbe8c}of _0x1c6dda[_0xcc8f('0x38')](_0x3a00a7,{'startColumn':_0x11c890,'endColumn':_0x11c890+_0x3f7b64-0x1}))_0xa7158f[_0xcc8f('0x5a')][_0xcc8f('0x88')](_0x4c76a5[_0xcc8f('0x94')][_0xcc8f('0x28')](_0x2fbe8c));},{'priority':_0xcc8f('0x3a')}),_0x1c6dda['on'](_0xcc8f('0x73'),(_0x51c577,_0x59ce60)=>{const [_0x1f6b31,_0x1b17ed={}]=_0x59ce60;if(!_0xa7158f)return;const _0x5f0c1b=_0x1b17ed['at']||0x0,_0x541a7c=_0x1b17ed['rows']||0x1;_0xa7158f[_0xcc8f('0x91')]=new Array(_0x541a7c)[_0xcc8f('0x8a')](_0x5f0c1b)['map']((_0x317993,_0x1008cc)=>_0x317993+_0x1008cc);for(const {cell:_0x3f4d4e}of _0x1c6dda['createTableWalker'](_0x1f6b31,{'startRow':_0x5f0c1b,'endRow':_0x5f0c1b+_0x541a7c-0x1}))_0xa7158f[_0xcc8f('0x36')]['push'](_0x4c76a5[_0xcc8f('0x94')]['createRangeOn'](_0x3f4d4e));},{'priority':_0xcc8f('0x3a')}),_0x36b1f4['_descriptionFactory'][_0xcc8f('0xc')](_0x3c8a51=>{if(_0x3c8a51[_0xcc8f('0x20')]&&_0x3c8a51[_0xcc8f('0x20')][_0xcc8f('0x5c')]('tablePaste'))return _0x3c8a51[_0xcc8f('0x52')]?{}:{'type':'insertion','content':_0x34a40d(_0x4c76a5['locale'],'*Replace\x20table\x20cells*')};});const _0x53528a=()=>{};for(const _0x1ccb80 of[_0xcc8f('0x30'),_0xcc8f('0x5'),_0xcc8f('0x27'),'tablePasteCell'])_0x36b1f4[_0xcc8f('0x2f')][_0xcc8f('0x4c')]('insertion',_0x1ccb80,_0xcc8f('0x42'),_0x53528a),_0x36b1f4[_0xcc8f('0x2f')][_0xcc8f('0x4c')]('deletion',_0x1ccb80,_0xcc8f('0x42'),_0x53528a);_0x36b1f4[_0xcc8f('0x2f')][_0xcc8f('0x4c')](_0xcc8f('0x69'),_0xcc8f('0x6d'),_0xcc8f('0x85'),_0x53528a),_0x36b1f4[_0xcc8f('0x2f')][_0xcc8f('0x4c')](_0xcc8f('0x69'),_0xcc8f('0x6d'),'accept',(_0x245850,_0x3c571a,_0x104b5c)=>{const _0x1e15fb=_0x245850['map'](_0x26dd0d=>_0x26dd0d[_0xcc8f('0x14')]())[_0xcc8f('0xd')](_0x124af7=>_0x124af7),_0x456f7f=new Map(_0x1e15fb[_0xcc8f('0x67')](_0x50c338=>[_0x50c338,null]));if(_0xa7158f)for(const {element:_0x2ac957,attributes:_0xaa0f30}of _0xa7158f[_0xcc8f('0x5d')])_0xaa0f30&&_0x456f7f['set'](_0x2ac957,_0xaa0f30);else{if(_0x104b5c&&_0x104b5c[_0xcc8f('0x1b')])for(const [_0x27c8ee,_0x3ef5ad]of Object[_0xcc8f('0x86')](_0x104b5c['markerAttributes'])){const _0x22d486=_0x4c76a5[_0xcc8f('0x94')][_0xcc8f('0x7a')][_0xcc8f('0x8f')](_0x27c8ee),_0x314e1d=_0x22d486?_0x22d486['getRange']()[_0xcc8f('0x14')]():null;_0x314e1d&&_0x456f7f[_0xcc8f('0x76')](_0x314e1d,_0x3ef5ad);}}_0x4c76a5[_0xcc8f('0x94')]['change'](_0x279f4c=>{for(const [_0x4354b3,_0x2bd124]of _0x456f7f)_0x279f4c[_0xcc8f('0x60')]({...ae,..._0x2bd124},_0x4354b3);});});const _0x33f049=(_0x3676f4,_0x2010f0)=>{_0x36b1f4[_0xcc8f('0x2f')][_0xcc8f('0x4c')](_0x3676f4,_0xcc8f('0x30'),_0x2010f0,(_0x332b0b,_0x396e69,_0x1dbd32)=>{_0x4c76a5[_0xcc8f('0x94')]['change'](_0x15175d=>{const _0x2b5e48=[];for(const _0x14f5a7 of _0x332b0b){const _0x41889b=_0x14f5a7[_0xcc8f('0x34')]['nodeAfter'];_0x41889b['is'](_0xcc8f('0x7'),'tableCellSuggestion')&&_0x2b5e48['push'](_0x41889b);}_0x36b1f4[_0xcc8f('0x2f')][_0xcc8f('0x4')](_0x3676f4,null,_0x2010f0)(_0x332b0b,_0x396e69,_0x1dbd32);for(const _0x5efab0 of _0x2b5e48)'$graveyard'!=_0x5efab0['root'][_0xcc8f('0x2a')]&&_0x15175d[_0xcc8f('0x3')](_0x5efab0);});});};_0x33f049(_0xcc8f('0x8e'),_0xcc8f('0x2c')),_0x33f049(_0xcc8f('0x8e'),'discard'),_0x33f049(_0xcc8f('0x21'),_0xcc8f('0x2c')),_0x33f049('deletion',_0xcc8f('0x85')),_0x36b1f4[_0xcc8f('0x2f')][_0xcc8f('0x4c')](_0xcc8f('0x8e'),_0xcc8f('0x27'),_0xcc8f('0x85'),_0x3f0101=>{const _0x45be96=_0x3f0101['map'](_0x55cd61=>_0x55cd61[_0xcc8f('0x14')]()),_0x2dabcc=_0x45be96[0x0]['findAncestor'](_0xcc8f('0x40')),{minRow:_0x3c1ec3,maxRow:_0x1af1e7}=_0x25d3d1[_0xcc8f('0x8d')](_0x45be96);_0x1c6dda[_0xcc8f('0x6a')](_0x2dabcc,{'at':_0x3c1ec3,'rows':_0x1af1e7-_0x3c1ec3+0x1});}),_0x36b1f4['_suggestionFactory']['registerCustomCallback'](_0xcc8f('0x8e'),_0xcc8f('0x5'),_0xcc8f('0x85'),_0x3a89c1=>{const _0x4b0fd2=_0x3a89c1[_0xcc8f('0x67')](_0xa4f5b0=>_0xa4f5b0[_0xcc8f('0x14')]()),_0x4f0c72=_0x4b0fd2[0x0][_0xcc8f('0x8')](_0xcc8f('0x40')),{minColumn:_0x3247ba,maxColumn:_0x565c33}=_0x25d3d1[_0xcc8f('0x8d')](_0x4b0fd2);_0x1c6dda[_0xcc8f('0x46')](_0x4f0c72,{'at':_0x3247ba,'columns':_0x565c33-_0x3247ba+0x1});});const _0x484efa=(_0x291641,_0x2b2c7a)=>{if(!_0x2b2c7a[_0xcc8f('0x20')]||!_0x2b2c7a['subType']['startsWith'](_0xcc8f('0x30')))return;const _0x1a2ec8=_0x2b2c7a['attributes'][_0xcc8f('0xe')],_0x49eed7=_0x36b1f4[_0xcc8f('0x0')]()[_0xcc8f('0xd')](_0x4cb1ff=>_0x4cb1ff['isInContent']&&_0x4cb1ff[_0xcc8f('0x24')]&&_0x4cb1ff[_0xcc8f('0x24')][_0xcc8f('0xe')]==_0x1a2ec8);_0x49eed7[_0xcc8f('0x7b')]&&_0x2b2c7a[_0xcc8f('0x26')]()[_0xcc8f('0x7b')]!=_0x49eed7['length']&&_0x49eed7[_0xcc8f('0x3f')]((_0x567e62,_0x29da68)=>(_0x567e62[_0xcc8f('0xf')]=_0x29da68,_0x29da68[_0xcc8f('0x52')]=_0x567e62,_0x29da68));};function _0x4f75a4(_0x53ebcd,_0xdb7960=!0x0){const {id:_0x29503b}=_0x36b1f4[_0xcc8f('0x93')](_0x53ebcd[_0xcc8f('0x47')]),_0x5a1b02=[_0xcc8f('0x90'),_0xcc8f('0x1')],_0x2705b0=_0x36b1f4[_0xcc8f('0x6')]['includes'](_0x53ebcd[_0xcc8f('0x47')]);return _0x2705b0&&_0x5a1b02[_0xcc8f('0x88')](_0xcc8f('0x15')),{'classes':_0x5a1b02,'attributes':{'data-suggestion':_0x29503b},'priority':_0x2705b0&&_0xdb7960?0xbc2:0xbb8};}_0x36b1f4['on'](_0xcc8f('0x4d'),_0x484efa,{'priority':_0xcc8f('0x1f')}),_0x36b1f4['on'](_0xcc8f('0x9'),_0x484efa,{'priority':_0xcc8f('0x1f')}),_0x4c76a5[_0xcc8f('0x94')][_0xcc8f('0x61')]['registerPostFixer'](()=>{let _0x5d2bda=!0x1;const _0x903e8a=Array[_0xcc8f('0x4e')](_0x4c76a5[_0xcc8f('0x94')][_0xcc8f('0x61')][_0xcc8f('0x9e')][_0xcc8f('0x4a')]());for(const {name:_0x55716a,data:_0x3923a5}of _0x903e8a){const {group:_0x1d291d,type:_0x454732,id:_0x3e5423}=_0x36b1f4[_0xcc8f('0x93')](_0x55716a);if(_0xcc8f('0x74')!=_0x1d291d||'deletion'!=_0x454732||_0x3923a5['oldRange'])continue;if(!_0x36b1f4['hasSuggestion'](_0x3e5423))continue;const _0x51a7ed=_0x36b1f4[_0xcc8f('0x33')](_0x3e5423)[_0xcc8f('0x51')](),_0x511246=_0x4c76a5[_0xcc8f('0x9d')][_0xcc8f('0x8f')]('Users')['me'];for(const _0x2c51da of _0x36b1f4[_0xcc8f('0x0')]()){if(!_0x2c51da[_0xcc8f('0x68')]||_0x2c51da[_0xcc8f('0x3e')]!=_0x511246)continue;if(_0xcc8f('0x69')!=_0x2c51da[_0xcc8f('0x10')]||_0xcc8f('0x6d')!=_0x2c51da['subType'])continue;if(_0x2c51da['getRanges']()[_0xcc8f('0x57')](_0x580892=>_0x51a7ed[_0xcc8f('0x4b')](_0x49acc4=>_0x49acc4[_0xcc8f('0x39')](_0x580892,!0x0))))for(const _0x55851e of _0x2c51da[_0xcc8f('0x26')]())_0x55851e[_0xcc8f('0x68')]&&(_0x55851e['discard'](),_0x5d2bda=!0x0);}}return _0x5d2bda;}),_0x4c76a5[_0xcc8f('0x94')][_0xcc8f('0x61')][_0xcc8f('0x2e')](_0x2c2f33=>{const _0x5b0695=_0x4c76a5[_0xcc8f('0xa')][_0xcc8f('0x8f')](_0xcc8f('0x3c'));if(!_0x5b0695||!_0x5b0695[_0xcc8f('0x97')][_0xcc8f('0x62')](_0x2c2f33['batch']))return!0x1;let _0x30db29=!0x1;const _0x74a11b=_0x4c76a5['plugins'][_0xcc8f('0x8f')](_0xcc8f('0x64'))['me'],_0x5c3e9a=_0x4c76a5['model'][_0xcc8f('0x61')][_0xcc8f('0x9e')]['getChanges'](),_0x41255d=Array[_0xcc8f('0x4e')](_0x4c76a5[_0xcc8f('0x94')]['document'][_0xcc8f('0x9e')]['getChangedMarkers']())[_0xcc8f('0xd')](({name:_0x37bd0d,data:_0x1f3c7c})=>{const {group:_0x3b7add,subType:_0x3fca49,authorId:_0x197428}=_0x36b1f4[_0xcc8f('0x93')](_0x37bd0d);return _0xcc8f('0x74')==_0x3b7add&&_0xcc8f('0x30')==_0x3fca49&&_0x197428==_0x74a11b['id']&&!_0x1f3c7c[_0xcc8f('0x79')];});for(const _0x1a7d98 of _0x5c3e9a){if(_0xcc8f('0x25')!=_0x1a7d98[_0xcc8f('0x10')]||_0xcc8f('0x12')!=_0x1a7d98['name']||0x1!=_0x1a7d98[_0xcc8f('0x7b')])continue;const _0x4ad072=_0x2c2f33['createRange'](_0x1a7d98[_0xcc8f('0x3b')],_0x1a7d98[_0xcc8f('0x3b')][_0xcc8f('0x75')](0x1));if(!_0x41255d[_0xcc8f('0x41')](({data:_0x694413})=>_0x694413[_0xcc8f('0x9a')][_0xcc8f('0x1a')](_0x4ad072)))for(const {name:_0x4cb95c,data:_0x5585fb}of _0x41255d)if(_0x4ad072[_0xcc8f('0x39')](_0x5585fb[_0xcc8f('0x9a')])){_0x2c2f33[_0xcc8f('0x53')](_0x4cb95c,{'range':_0x4ad072}),_0x30db29=!0x0;break;}}return _0x30db29;}),_0x4c76a5[_0xcc8f('0x94')]['document']['registerPostFixer'](_0x54206d=>{let _0x41f781=!0x1;const _0x58b079=_0x4c76a5['plugins'][_0xcc8f('0x8f')](_0xcc8f('0x64'))['me'],_0x408ae7=_0x36b1f4[_0xcc8f('0x0')]()[_0xcc8f('0xd')](_0x30ea25=>_0x30ea25['isInContent']&&_0x30ea25[_0xcc8f('0x3e')]==_0x58b079),_0x1b6eb2=new Set(),_0x2d0c15=new Set();for(const _0x23fefd of _0x408ae7)if('tablePaste'==_0x23fefd[_0xcc8f('0x20')])for(const _0x13cde8 of _0x23fefd[_0xcc8f('0x32')]()){const _0x36b618=_0x13cde8[_0xcc8f('0x77')]()['getContainedElement']();if(_0x36b618){if(_0x36b618['is'](_0xcc8f('0x7'),_0xcc8f('0x12'))&&ce(_0x36b618)){_0x23fefd[_0xcc8f('0x78')](_0x13cde8[_0xcc8f('0x2')]),_0x1b6eb2[_0xcc8f('0x83')](_0x36b618),_0x41f781=!0x0;const _0x117a06=_0x36b618['nextSibling'],_0x543ad0=_0x36b618[_0xcc8f('0x44')],_0x346a63=_0x117a06&&_0x117a06['is'](_0xcc8f('0x7'),'tableCellSuggestion'),_0x4e009=_0x543ad0&&_0x543ad0['is'](_0xcc8f('0x7'),'tableCellSuggestion');_0x346a63&&!_0x1b6eb2[_0xcc8f('0x62')](_0x117a06)&&_0x2d0c15[_0xcc8f('0x83')](_0x117a06),_0x4e009&&!_0x1b6eb2[_0xcc8f('0x62')](_0x543ad0)&&_0x2d0c15['add'](_0x543ad0);}else _0x36b618['is'](_0xcc8f('0x7'),'paragraph')&&_0x36b618[_0xcc8f('0x2d')]&&(_0x23fefd[_0xcc8f('0x78')](_0x13cde8[_0xcc8f('0x2')]),_0x41f781=!0x0);}}else{if(_0xcc8f('0x6d')==_0x23fefd[_0xcc8f('0x20')]){if(!_0x23fefd[_0xcc8f('0x24')]||!_0x23fefd[_0xcc8f('0x24')][_0xcc8f('0xe')])continue;const _0x4f0cb4=_0x23fefd[_0xcc8f('0x24')]['markerAttributes'];if(_0x4f0cb4&&Object[_0xcc8f('0x72')](_0x4f0cb4)['length'])continue;const _0x302250=_0x23fefd[_0xcc8f('0x24')][_0xcc8f('0xe')];let _0x3ca97e=!0x0,_0x1a5bd4=!0x0;for(const _0x54d591 of _0x408ae7)if(_0x54d591['subType']&&_0x54d591[_0xcc8f('0x20')]['startsWith'](_0xcc8f('0x30'))){if(!_0x54d591[_0xcc8f('0x24')][_0xcc8f('0xe')]){_0x1a5bd4=!0x1;break;}if(_0x54d591['id']!=_0x23fefd['id']&&_0x54d591[_0xcc8f('0x24')][_0xcc8f('0xe')]==_0x302250){_0x3ca97e=!0x1;break;}}_0x1a5bd4&&_0x3ca97e&&(_0x23fefd['removeMarkers'](),_0x41f781=!0x0);}}for(const _0x4eaa12 of _0x1b6eb2)_0x54206d[_0xcc8f('0x19')](_0x4eaa12);for(const _0x1aa66f of _0x2d0c15)_0x54206d[_0xcc8f('0x3')](_0x1aa66f);return _0x41f781;}),_0x4c76a5['conversion'][_0xcc8f('0x48')]('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2455a1,_0xcf9831)=>_0x4f75a4(_0x2455a1),'converterPriority':_0xcc8f('0x1f')}),_0x4c76a5['conversion'][_0xcc8f('0x48')]('dataDowncast')[_0xcc8f('0x66')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x52c277,_0x5c0cfe)=>_0x5c0cfe[_0xcc8f('0x58')][_0xcc8f('0x65')]?_0x4f75a4(_0x52c277,!0x1):null,'converterPriority':_0xcc8f('0x1f')});const _0x179949=_0x4c76a5['editing'][_0xcc8f('0x17')];this[_0xcc8f('0x55')](_0x179949[_0xcc8f('0x61')],'clipboardOutput',(_0x1eb2a7,_0x3ceebb)=>{const _0x3f3e86=[];for(const _0x290ef2 of _0x179949[_0xcc8f('0x87')](_0x3ceebb[_0xcc8f('0x56')])[_0xcc8f('0x8c')]())_0x290ef2['is'](_0xcc8f('0x7'),_0xcc8f('0x95'))&&_0x3f3e86['push'](_0x290ef2);_0x179949['change'](_0x96220=>{for(const _0x31fb87 of _0x3f3e86)_0x96220[_0xcc8f('0x1d')](_0x96220['createRangeIn'](_0x31fb87),_0x96220[_0xcc8f('0x45')](_0x31fb87)),_0x96220[_0xcc8f('0x19')](_0x31fb87);});});}}function ce(_0x44bc76){if(_0x44bc76[_0xcc8f('0x2d')])return!0x0;const _0xee658=_0x44bc76[_0xcc8f('0x6f')](0x0);return _0xee658['is']('element',_0xcc8f('0x13'))&&_0xee658[_0xcc8f('0x2d')];}function fe(_0x2282fa,_0xc2b72b={},_0x512a3a){for(const {isAnchor:_0x238cb2,cellHeight:_0x89cbb7,cellWidth:_0xaef13b}of _0x512a3a[_0xcc8f('0x38')](_0x2282fa,{'includeAllSlots':!0x0,..._0xc2b72b}))if(!_0x238cb2||0x1!=_0x89cbb7||0x1!=_0xaef13b)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3836=['plugins','columnWidths','resizeTable','get','Users','handleSuggestionDescription','_suggestionFactory','getContainedElement','formatGroupId','subType','getTableColumnsWidths','TrackChangesEditing','locale','TableColumnResizeEditing','getAttribute','registerCustomCallback','selection','*Format:*\x20resize\x20table','formatBlock','bind','_descriptionFactory','data','discard','table','model','change','commandParams','resizeColumnWidths','editor','resizeTableWidth','handleResizeTableWidthCommand','accept','tableWidth','getSelectedElement','enableCommand'];(function(_0x167f0c,_0x383660){const _0x2db146=function(_0x5e1325){while(--_0x5e1325){_0x167f0c['push'](_0x167f0c['shift']());}};_0x2db146(++_0x383660);}(_0x3836,0xc2));const _0x2db1=function(_0x167f0c,_0x383660){_0x167f0c=_0x167f0c-0x0;let _0x2db146=_0x3836[_0x167f0c];return _0x2db146;};import{Plugin as _0x5f0bb4}from'ckeditor5/src/core';import{getTranslation as _0x3a7b60}from'../utils/common-translations';export default class wt extends _0x5f0bb4{['afterInit'](){if(!this[_0x2db1('0x9')][_0x2db1('0x10')]['has']('TableColumnResizeEditing'))return;const _0x32ab85=this[_0x2db1('0x9')][_0x2db1('0x10')][_0x2db1('0x13')](_0x2db1('0x1b'));_0x32ab85[_0x2db1('0xf')]('resizeTableWidth',this[_0x2db1('0xb')]['bind'](this)),_0x32ab85[_0x2db1('0xf')](_0x2db1('0x8'),this[_0x2db1('0xb')][_0x2db1('0x0')](this)),_0x32ab85[_0x2db1('0x16')][_0x2db1('0x1f')](_0x2db1('0x22'),_0x2db1('0x12'),_0x2db1('0xc'),_0x32ab85[_0x2db1('0x16')]['getSuggestionCallback'](_0x2db1('0x22'),null,'discard')),_0x32ab85[_0x2db1('0x16')][_0x2db1('0x1f')](_0x2db1('0x22'),'resizeTable','discard',_0x32ab85[_0x2db1('0x16')]['getSuggestionCallback'](_0x2db1('0x22'),null,_0x2db1('0xc'))),_0x32ab85[_0x2db1('0x1')]['registerDescriptionCallback'](this[_0x2db1('0x15')][_0x2db1('0x0')](this));}['handleResizeTableWidthCommand'](_0xa65db7,_0x579753){const _0x1779ae=this['editor'][_0x2db1('0x10')][_0x2db1('0x13')]('TrackChangesEditing'),_0x52943e=this[_0x2db1('0x9')][_0x2db1('0x10')][_0x2db1('0x13')](_0x2db1('0x1d')),_0x18c782=_0x579753[_0x2db1('0x4')]||this[_0x2db1('0x9')][_0x2db1('0x5')]['document'][_0x2db1('0x20')][_0x2db1('0xe')]();this[_0x2db1('0x9')][_0x2db1('0x5')][_0x2db1('0x6')](()=>{const _0x3087bf=_0x52943e['getColumnGroupElement'](_0x18c782);let _0x4c7474=_0x3087bf?_0x52943e[_0x2db1('0x1a')](_0x3087bf):null,_0x54089c=_0x18c782[_0x2db1('0x1e')](_0x2db1('0xd'))||null;const _0x57a92d=_0x579753[_0x2db1('0xd')]||_0x54089c,_0x276c7f=_0x579753[_0x2db1('0x11')]||_0x4c7474,_0x3eaae9=this['editor']['plugins'][_0x2db1('0x13')](_0x2db1('0x14'))['me'];for(const _0x46d2f6 of _0x1779ae['getSuggestions']()){const _0x16e9fc=_0x46d2f6[_0x2db1('0x17')]();if(_0x2db1('0x12')===_0x46d2f6[_0x2db1('0x19')]&&_0x16e9fc===_0x18c782){_0x46d2f6['author']!==_0x3eaae9&&_0x46d2f6[_0x2db1('0x3')]();const _0x3f84cb=_0x46d2f6[_0x2db1('0x2')][_0x2db1('0x7')];_0x54089c=_0x3f84cb[0x0][_0x2db1('0xd')],_0x4c7474=_0x3f84cb[0x0][_0x2db1('0x11')];break;}}_0xa65db7({'table':_0x18c782,'tableWidth':_0x57a92d,'columnWidths':_0x276c7f}),_0x1779ae['markBlockFormat'](_0x18c782,{'commandName':_0x2db1('0xa'),'commandParams':[{'tableWidth':_0x54089c,'columnWidths':_0x4c7474}],'formatGroupId':_0x2db1('0x12')},[],_0x2db1('0x12'));});}['handleSuggestionDescription'](_0x350cfb){const {data:_0x3309e8}=_0x350cfb;if(_0x3309e8&&_0x2db1('0x12')===_0x3309e8[_0x2db1('0x18')]){const _0x354cb5=_0x2db1('0x21');return{'type':'format','content':_0x3a7b60(this['editor'][_0x2db1('0x1c')],_0x354cb5)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6672=['ck-suggestion-marker-','locale','data-suggestion','start','createPositionBefore','consume','has','markerRange','nodeBefore','markerName','TableEditing','FORMAT_REGULAR_ROW','registerDescriptionCallback','data','markerNameToElements','_suggestionFactory','editor','commandName','formatBlock','document','toViewElement','FORMAT_HEADER_COLUMN','getSuggestion','stop','model','nodeAfter','setTableColumnHeader','table','forceValue','getCellLocation','findAncestor','get','index','TableUtils','commandParams','parent','setTableRowHeader','afterInit','childCount','FORMAT_REGULAR_COLUMN','last','editing','activeMarkers','isBefore','TrackChangesEditing','getRowIndexes','change','value','markBlockFormat','selection','getChild','createRange','*Format:*\x20%0','end','headingRows','removeClass','plugins','cell','registerCustomCallback','addClass','getSelectionAffectedTableCells','options','addMarker:suggestion','removeAttribute','accept','highest','showSuggestionHighlights','headingColumns','setAttribute','name','getAttribute','createPositionAfter','createTableWalker','downcastDispatcher','_acceptFormatSuggestionCallbackFactory','mapper','writer','enableCommand','unbindElementFromMarkerName'];(function(_0x136454,_0x66728f){const _0x597470=function(_0x2d6a1e){while(--_0x2d6a1e){_0x136454['push'](_0x136454['shift']());}};_0x597470(++_0x66728f);}(_0x6672,0xb5));const _0x5974=function(_0x136454,_0x66728f){_0x136454=_0x136454-0x0;let _0x597470=_0x6672[_0x136454];return _0x597470;};import{Plugin as _0x419a5f}from'ckeditor5/src/core';import _0x59cc61 from'./table';import{getTranslation as _0x1d570c}from'../utils/common-translations';export default class pt extends _0x419a5f{static get['requires'](){return[_0x59cc61];}[_0x5974('0xe')](){const _0x286395=this[_0x5974('0x48')];if(!_0x286395[_0x5974('0x21')][_0x5974('0x3e')](_0x5974('0x42')))return;const _0x19753e=_0x286395[_0x5974('0x39')],_0x59ba61=_0x286395[_0x5974('0x21')]['get'](_0x5974('0x15')),_0x256893=_0x286395[_0x5974('0x21')][_0x5974('0x8')](_0x5974('0xa')),_0x2d4043=_0x286395[_0x5974('0x21')][_0x5974('0x8')](_0x59cc61);function _0xf5cd34({showActiveMarker:_0x206850=!0x0,setDataAttribute:_0x446f45=!0x0}={}){return(_0x517ba5,_0x4ebbf0,_0x117190)=>{const {type:_0x6dc98c,id:_0x4d3e61}=_0x59ba61['_splitMarkerName'](_0x4ebbf0[_0x5974('0x41')]),_0x4c60a8=_0x59ba61['getSuggestion'](_0x4d3e61);if(!_0x4c60a8[_0x5974('0x45')]||'setTableColumnHeader'!=_0x4c60a8[_0x5974('0x45')][_0x5974('0x49')])return;if(_0x4ebbf0['item'])return void _0x517ba5[_0x5974('0x0')]();if(!_0x117190['consumable'][_0x5974('0x3d')](_0x4ebbf0[_0x5974('0x3f')],_0x517ba5[_0x5974('0x2e')]))return;const _0x3d4b1a=_0x4ebbf0[_0x5974('0x3f')][_0x5974('0x3b')][_0x5974('0x2')],_0xcc7870=_0x4ebbf0[_0x5974('0x3f')][_0x5974('0x1e')][_0x5974('0x40')],_0x563bc9=_0x3d4b1a[_0x5974('0xc')][_0x5974('0xc')],{column:_0x806a6}=_0x256893[_0x5974('0x6')](_0x3d4b1a),{column:_0x39be36}=_0x256893[_0x5974('0x6')](_0xcc7870);for(let _0x1deee7=_0x806a6;_0x1deee7<=_0x39be36;_0x1deee7++){const _0x5a4dfc=_0x256893[_0x5974('0x31')](_0x563bc9,{'column':_0x1deee7,'includeAllSlots':!0x1});for(const _0x58b9f of _0x5a4dfc){const _0x147357=_0x58b9f[_0x5974('0x22')],_0x11fb31=_0x117190[_0x5974('0x34')][_0x5974('0x4c')](_0x147357);_0x117190['writer']['addClass']('ck-suggestion-marker-'+_0x6dc98c,_0x11fb31),_0x446f45&&_0x117190[_0x5974('0x35')][_0x5974('0x2d')](_0x5974('0x3a'),_0x4d3e61,_0x11fb31),_0x117190[_0x5974('0x34')]['bindElementToMarker'](_0x11fb31,_0x4ebbf0['markerName']),_0x206850&&(_0x59ba61[_0x5974('0x13')]['includes'](_0x4ebbf0[_0x5974('0x41')])?_0x117190[_0x5974('0x35')][_0x5974('0x24')]('ck-suggestion-marker--active',_0x11fb31):_0x117190[_0x5974('0x35')][_0x5974('0x20')]('ck-suggestion-marker--active',_0x11fb31));}}};}_0x59ba61[_0x5974('0x36')](_0x5974('0xd'),(_0x4d9a2a,_0x3dbb31)=>{const _0x5146c8=_0x256893[_0x5974('0x25')](_0x286395[_0x5974('0x1')][_0x5974('0x4b')][_0x5974('0x1a')]),_0x762510=_0x256893[_0x5974('0x16')](_0x5146c8),_0x1d03ed=_0x5146c8[0x0][_0x5974('0x7')](_0x5974('0x4')),_0x3fbcaa=_0x1d03ed[_0x5974('0x2f')](_0x5974('0x1f'))||0x0,_0x5d3f0d=_0x3dbb31&&null!==_0x3dbb31[_0x5974('0x5')]?_0x3dbb31[_0x5974('0x5')]:!_0x286395['commands'][_0x5974('0x8')]('setTableRowHeader')[_0x5974('0x18')],_0x32978d=_0x5d3f0d?_0x762510[_0x5974('0x11')]:_0x762510['first'],_0x4db051=_0x1d03ed[_0x5974('0x1b')](_0x32978d);let _0x584a09;if(_0x5d3f0d){const _0x1404cb=_0x1d03ed['getChild'](_0x3fbcaa);if(_0x4db051[_0x5974('0x9')]<_0x1404cb['index'])return;_0x584a09=_0x286395['model'][_0x5974('0x1c')](_0x286395[_0x5974('0x1')][_0x5974('0x3c')](_0x1404cb[_0x5974('0x1b')](0x0)),_0x286395[_0x5974('0x1')][_0x5974('0x30')](_0x4db051['getChild'](_0x4db051[_0x5974('0xf')]-0x1)));}else{const _0x3a295d=_0x1d03ed[_0x5974('0x1b')](_0x3fbcaa-0x1);if(!_0x3a295d)return;_0x584a09=_0x286395[_0x5974('0x1')]['createRange'](_0x286395[_0x5974('0x1')][_0x5974('0x3c')](_0x4db051['getChild'](0x0)),_0x286395[_0x5974('0x1')][_0x5974('0x30')](_0x3a295d[_0x5974('0x1b')](_0x3a295d[_0x5974('0xf')]-0x1)));}_0x286395[_0x5974('0x1')]['change'](()=>{_0x59ba61[_0x5974('0x19')](_0x584a09,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x5d3f0d}]},[],_0x5974('0xd'));});}),_0x59ba61[_0x5974('0x36')](_0x5974('0x3'),(_0x256f93,_0x47b378)=>{const _0x280bbf=_0x286395[_0x5974('0x21')][_0x5974('0x8')](_0x5974('0xa')),_0xf0fbb=_0x280bbf[_0x5974('0x25')](_0x286395[_0x5974('0x1')]['document'][_0x5974('0x1a')]),_0x579517=_0x280bbf['getColumnIndexes'](_0xf0fbb),_0x93dc9a=_0xf0fbb[0x0][_0x5974('0x7')]('table'),_0x402233=_0x93dc9a[_0x5974('0x2f')](_0x5974('0x2c'))||0x0,_0x42c395=_0x47b378&&null!==_0x47b378[_0x5974('0x5')]?_0x47b378[_0x5974('0x5')]:!_0x286395['commands'][_0x5974('0x8')]('setTableColumnHeader')[_0x5974('0x18')];let _0xe956e9;const _0x26e871=_0x93dc9a[_0x5974('0x1b')](0x0),_0x3e96b8=_0x42c395?_0x579517[_0x5974('0x11')]:_0x579517['first'],_0xd3bdc5=_0x280bbf[_0x5974('0x31')](_0x93dc9a,{'startRow':0x0,'column':_0x3e96b8,'includeAllSlots':!0x1}),_0x21d16b=Array['from'](_0xd3bdc5)[0x0]['cell'];if(_0x42c395){const _0x585d72=_0x26e871[_0x5974('0x1b')](_0x402233);if(_0x21d16b[_0x5974('0x14')](_0x585d72))return;_0xe956e9=_0x286395[_0x5974('0x1')][_0x5974('0x1c')](_0x286395[_0x5974('0x1')][_0x5974('0x3c')](_0x585d72),_0x286395['model'][_0x5974('0x30')](_0x21d16b));}else{const _0x4d9322=_0x26e871[_0x5974('0x1b')](_0x402233-0x1);if(!_0x4d9322)return;_0xe956e9=_0x286395[_0x5974('0x1')][_0x5974('0x1c')](_0x286395['model']['createPositionBefore'](_0x21d16b),_0x286395[_0x5974('0x1')][_0x5974('0x30')](_0x4d9322));}_0x286395[_0x5974('0x1')][_0x5974('0x17')](()=>{_0x59ba61[_0x5974('0x19')](_0xe956e9,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x42c395}]},[],'setTableColumnHeader');});}),_0x286395[_0x5974('0x12')][_0x5974('0x32')]['on'](_0x5974('0x27'),_0xf5cd34(),{'priority':'highest'}),_0x286395[_0x5974('0x45')][_0x5974('0x32')]['on'](_0x5974('0x27'),(_0x1e4fa4,_0x5f0b9b,_0x382279)=>{_0x382279[_0x5974('0x26')][_0x5974('0x2b')]&&_0xf5cd34({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e4fa4,_0x5f0b9b,_0x382279);},{'priority':'highest'}),_0x286395[_0x5974('0x12')]['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e8678,_0x51a868,_0x3c4df7)=>{const {type:_0x21dea6,id:_0x4b168c}=_0x59ba61['_splitMarkerName'](_0x51a868[_0x5974('0x41')]),_0xe75909=_0x59ba61[_0x5974('0x4e')](_0x4b168c);if(!_0xe75909[_0x5974('0x45')]||_0x5974('0x3')!=_0xe75909['data'][_0x5974('0x49')])return;const _0x51a278=_0x3c4df7[_0x5974('0x34')][_0x5974('0x46')](_0x51a868[_0x5974('0x41')]);if(_0x51a278)for(const _0x353d9b of _0x51a278)_0x3c4df7[_0x5974('0x35')][_0x5974('0x20')](_0x5974('0x38')+_0x21dea6,_0x353d9b),_0x3c4df7[_0x5974('0x35')][_0x5974('0x20')]('ck-suggestion-marker--active',_0x353d9b),_0x3c4df7[_0x5974('0x35')][_0x5974('0x28')](_0x5974('0x3a'),_0x353d9b),_0x3c4df7[_0x5974('0x34')][_0x5974('0x37')](_0x353d9b,_0x51a868[_0x5974('0x41')]);},{'priority':_0x5974('0x2a')}),_0x59ba61['_descriptionFactory'][_0x5974('0x44')](_0x6f891f=>{const {data:_0x3023e7}=_0x6f891f;if(_0x3023e7){if(_0x5974('0xd')==_0x3023e7[_0x5974('0x49')]){const _0x4c1f85=_0x3023e7[_0x5974('0xb')][0x0][_0x5974('0x5')];return _0x6a65b2(_0x1d570c(_0x19753e,_0x4c1f85?'FORMAT_HEADER_ROW':_0x5974('0x43')));}if('setTableColumnHeader'==_0x3023e7[_0x5974('0x49')]){const _0x5023d3=_0x3023e7['commandParams'][0x0][_0x5974('0x5')];return _0x6a65b2(_0x1d570c(_0x19753e,_0x5023d3?_0x5974('0x4d'):_0x5974('0x10')));}}function _0x6a65b2(_0x46181f){return{'type':'format','content':_0x1d570c(_0x19753e,_0x5974('0x1d'),_0x46181f)};}});const _0x189b00=_0x2d4043[_0x5974('0x33')]();_0x59ba61[_0x5974('0x47')][_0x5974('0x23')](_0x5974('0x4a'),_0x5974('0xd'),_0x5974('0x29'),_0x189b00),_0x59ba61['_suggestionFactory'][_0x5974('0x23')](_0x5974('0x4a'),_0x5974('0x3'),_0x5974('0x29'),_0x189b00);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27b7=['_suggestionFactory','push','length','createRangeOn','trackChanges','registerDescriptionCallback','setSelection','low','accept','highest','TrackChangesEditing','commandName','element','afterInit','size','execute','*Split\x20cell:*\x20horizontally','selection','mergeTableCellRight','change','_tablePostFixingSubtypes','document','insertion','formatBlock','set:isEnabled','getAncestors','getSelectionAffectedTableCells','registerCustomCallback','mergeTableCellDown','requires','cell','$graveyard','forceDefaultExecution','return','has','mergeTableCells','mergeTableCellUp','refresh','format','enableCommand','fromRange','_areSelectedCellsMergable','createTableWalker','detach','add','_isForcedDefaultExecutionBlock','tableCell','plugins','root','from','getSuggestions','findAncestor','mergeTableCellLeft','stop','splitTableCellHorizontally','get','_areMergableCells','*Split\x20cell:*\x20vertically','containsRange','rootName','getFirstPosition','type','_descriptionFactory','isEnabled','find','deletion','markBlockFormat','TableUtils','commands','splitTableCellVertically','getCellLocation','_acceptFormatSuggestionCallbackFactory','getRanges','direction','horizontally','value','model','author','table','editor','locale','filter','map'];(function(_0x2c4bce,_0x27b70c){const _0x2e1be4=function(_0x44d47e){while(--_0x44d47e){_0x2c4bce['push'](_0x2c4bce['shift']());}};_0x2e1be4(++_0x27b70c);}(_0x27b7,0x11e));const _0x2e1b=function(_0x2c4bce,_0x27b70c){_0x2c4bce=_0x2c4bce-0x0;let _0x2e1be4=_0x27b7[_0x2c4bce];return _0x2e1be4;};import{Plugin as _0x13d5a1}from'ckeditor5/src/core';import _0x359feb from'./table';import{LiveRange as _0x7c9dc5}from'ckeditor5/src/engine';import{getTranslation as _0x40a93d}from'../utils/common-translations';export default class dt extends _0x13d5a1{static get[_0x2e1b('0x4b')](){return[_0x359feb];}[_0x2e1b('0x3b')](){const _0x59600b=this[_0x2e1b('0x2a')],_0x37327f=_0x59600b[_0x2e1b('0x27')][_0x2e1b('0x43')][_0x2e1b('0x3f')],_0x56ed64=_0x59600b[_0x2e1b('0x2b')];if(!_0x59600b[_0x2e1b('0xa')][_0x2e1b('0x50')]('TableEditing'))return;const _0x190945=_0x59600b[_0x2e1b('0xa')][_0x2e1b('0x12')](_0x2e1b('0x38')),_0x16c981=_0x59600b['plugins'][_0x2e1b('0x12')]('TableUtils'),_0x11e821=_0x59600b[_0x2e1b('0xa')][_0x2e1b('0x12')](_0x359feb);_0x11e821[_0x2e1b('0x42')][_0x2e1b('0x2f')]('mergeTableCells'),_0x190945[_0x2e1b('0x2')](_0x2e1b('0x51'),()=>{const _0x314ec9=_0x16c981[_0x2e1b('0x48')](_0x59600b[_0x2e1b('0x27')]['document']['selection']);_0x59600b[_0x2e1b('0x27')]['change'](()=>{_0x190945['markMultiRangeBlockFormat'](_0x314ec9,{'commandName':_0x2e1b('0x51'),'commandParams':[]},[],_0x2e1b('0x51'));});}),_0x59600b[_0x2e1b('0x1f')][_0x2e1b('0x12')]('mergeTableCells')['on'](_0x2e1b('0x3d'),(_0x54d7d3,_0x4a80d0)=>{_0x59600b['commands'][_0x2e1b('0x12')](_0x2e1b('0x32'))[_0x2e1b('0x26')]&&(_0x4a80d0[_0x2e1b('0x30')]>0x0&&_0x4a80d0[_0x4a80d0['length']-0x1]&&_0x4a80d0[_0x4a80d0['length']-0x1][_0x2e1b('0x4e')]||_0x190945[_0x2e1b('0x8')]||this['_areSelectedCellsMergable']()||_0x54d7d3[_0x2e1b('0x10')]());},{'priority':_0x2e1b('0x37')});for(const _0xc3b865 of[_0x2e1b('0x52'),_0x2e1b('0x40'),'mergeTableCellDown','mergeTableCellLeft']){const _0x3aa062=_0x59600b[_0x2e1b('0x1f')]['get'](_0xc3b865);_0x190945[_0x2e1b('0x2')](_0xc3b865,()=>{const _0x4ddb0b=_0x59600b['model'][_0x2e1b('0x43')][_0x2e1b('0x3f')]['getFirstPosition']()[_0x2e1b('0x47')]()[_0x2e1b('0x1b')](_0x4501ab=>_0x4501ab['is'](_0x2e1b('0x3a'),_0x2e1b('0x9'))),_0x19ed0a=_0x3aa062[_0x2e1b('0x26')];_0x59600b['model'][_0x2e1b('0x41')](()=>{_0x190945['markMultiRangeBlockFormat']([_0x4ddb0b,_0x19ed0a],{'commandName':'mergeTableCells','commandParams':[]},[],_0x2e1b('0x51'));});});}for(const _0x1c2a8f of[_0x2e1b('0x20'),_0x2e1b('0x11')]){const _0x4927b0=_0x59600b[_0x2e1b('0x1f')]['get'](_0x1c2a8f);_0x190945[_0x2e1b('0x2')](_0x1c2a8f,()=>{const _0x5272c6=_0x16c981['getSelectionAffectedTableCells'](_0x59600b[_0x2e1b('0x27')]['document'][_0x2e1b('0x3f')])[0x0],_0x21ff8c=_0x5272c6[_0x2e1b('0xe')](_0x2e1b('0x29')),{column:_0x2642bc,row:_0x1a1038}=_0x16c981[_0x2e1b('0x21')](_0x5272c6);let _0x294fe5=[];if(_0x2e1b('0x25')==_0x4927b0[_0x2e1b('0x24')]){const _0x44cdfb=_0x16c981[_0x2e1b('0x5')](_0x21ff8c,{'startRow':_0x1a1038,'endRow':_0x1a1038,'includeAllSlots':!0x0});_0x294fe5=Array[_0x2e1b('0xc')](_0x44cdfb)[_0x2e1b('0x2d')](_0xbfd74f=>_0xbfd74f['cell']);}else{const _0x3155f9=_0x16c981[_0x2e1b('0x5')](_0x21ff8c,{'column':_0x2642bc,'includeAllSlots':!0x0});_0x294fe5=Array[_0x2e1b('0xc')](_0x3155f9)[_0x2e1b('0x2d')](_0x47612a=>_0x47612a[_0x2e1b('0x4c')]);}_0x59600b['model']['change'](_0x3e369d=>{_0x190945[_0x2e1b('0x1d')](_0x3e369d[_0x2e1b('0x31')](_0x5272c6),{'commandName':_0x1c2a8f,'commandParams':[]},_0x294fe5,_0x1c2a8f);});});}_0x190945['_descriptionFactory'][_0x2e1b('0x33')](_0x264214=>{const {data:_0x5c3d86}=_0x264214;if(_0x5c3d86)return'mergeTableCells'==_0x5c3d86[_0x2e1b('0x39')]?{'type':_0x2e1b('0x1'),'content':_0x40a93d(_0x56ed64,'*Merge\x20cells*')}:void 0x0;}),_0x190945[_0x2e1b('0x19')][_0x2e1b('0x33')](_0x1fbdd1=>{const {data:_0x2a8398}=_0x1fbdd1;if(_0x2a8398)return _0x2e1b('0x20')==_0x2a8398[_0x2e1b('0x39')]?{'type':_0x2e1b('0x1'),'content':_0x40a93d(_0x56ed64,_0x2e1b('0x14'))}:_0x2e1b('0x11')==_0x2a8398[_0x2e1b('0x39')]?{'type':'format','content':_0x40a93d(_0x56ed64,_0x2e1b('0x3e'))}:void 0x0;});const _0x3281a6=_0x11e821[_0x2e1b('0x22')]();for(const _0xfb1ceb of[_0x2e1b('0x52'),_0x2e1b('0x40'),_0x2e1b('0x4a'),'mergeTableCellLeft'])_0x190945[_0x2e1b('0x2e')]['registerCustomCallback'](_0x2e1b('0x45'),_0xfb1ceb,_0x2e1b('0x36'),_0x3281a6);for(const _0xab41fa of[_0x2e1b('0x20'),_0x2e1b('0x11')])_0x190945['_suggestionFactory'][_0x2e1b('0x49')](_0x2e1b('0x45'),_0xab41fa,_0x2e1b('0x36'),_0x3281a6);_0x190945[_0x2e1b('0x2e')][_0x2e1b('0x49')](_0x2e1b('0x45'),_0x2e1b('0x51'),'accept',_0x55c572=>{_0x59600b[_0x2e1b('0x27')][_0x2e1b('0x41')](_0x319d70=>{const _0x5c3446=Array[_0x2e1b('0xc')](_0x37327f['getRanges']())[_0x2e1b('0x2d')](_0x252d62=>_0x7c9dc5[_0x2e1b('0x3')](_0x252d62));_0x319d70['setSelection'](_0x55c572),_0x59600b[_0x2e1b('0x1f')][_0x2e1b('0x12')]('mergeTableCells')[_0x2e1b('0x0')](),_0x59600b[_0x2e1b('0x3d')](_0x2e1b('0x51'),{'forceDefaultExecution':!0x0});const _0x2f4b55=_0x5c3446[_0x2e1b('0x2c')](_0x56900c=>_0x2e1b('0x4d')!=_0x56900c[_0x2e1b('0xb')][_0x2e1b('0x16')]);_0x2f4b55[_0x2e1b('0x30')]>0x0&&_0x319d70[_0x2e1b('0x34')](_0x2f4b55);for(const _0x913375 of _0x5c3446)_0x913375[_0x2e1b('0x6')]();});});for(const _0x36981f of['mergeTableCellUp',_0x2e1b('0x4a'),_0x2e1b('0xf'),_0x2e1b('0x40')]){const _0x1a64df=_0x59600b[_0x2e1b('0x1f')][_0x2e1b('0x12')](_0x36981f);_0x1a64df['on'](_0x2e1b('0x46'),(_0x123df2,_0x1bf8d4,_0x52648f)=>{if(_0x52648f){const _0x3e6e0b=_0x59600b[_0x2e1b('0x27')][_0x2e1b('0x43')][_0x2e1b('0x3f')][_0x2e1b('0x17')]()[_0x2e1b('0x47')]()[_0x2e1b('0x1b')](_0x5f092e=>_0x5f092e['is'](_0x2e1b('0x3a'),_0x2e1b('0x9')));this[_0x2e1b('0x13')](_0x1a64df[_0x2e1b('0x26')],_0x3e6e0b)||(_0x123df2[_0x2e1b('0x4f')]=!0x1,_0x123df2[_0x2e1b('0x10')]());}},{'priority':_0x2e1b('0x35')});}}[_0x2e1b('0x4')](){const _0xd03d44=this['editor'][_0x2e1b('0x1f')][_0x2e1b('0x12')](_0x2e1b('0x51')),_0x303549=this[_0x2e1b('0x2a')][_0x2e1b('0xa')][_0x2e1b('0x12')](_0x2e1b('0x1e'));if(!_0xd03d44[_0x2e1b('0x1a')])return!0x1;const _0x4ee715=_0x303549[_0x2e1b('0x48')](this[_0x2e1b('0x2a')][_0x2e1b('0x27')][_0x2e1b('0x43')][_0x2e1b('0x3f')]);for(const _0x22daf7 of _0x4ee715)for(const _0x5b8048 of _0x4ee715)if(_0x22daf7!=_0x5b8048&&!this[_0x2e1b('0x13')](_0x22daf7,_0x5b8048))return!0x1;return!0x0;}['_areMergableCells'](_0x40a8c2,_0x33aee5){const _0x3dc846=this[_0x2e1b('0x2a')][_0x2e1b('0xa')][_0x2e1b('0x12')](_0x2e1b('0x38')),_0x527e95=this['editor'][_0x2e1b('0x27')][_0x2e1b('0x31')](_0x40a8c2),_0x54fed9=this[_0x2e1b('0x2a')]['model']['createRangeOn'](_0x33aee5),_0x4dc37e=new Set(),_0x38d0d3=new Set();for(const _0x465145 of _0x3dc846[_0x2e1b('0xd')]())if((_0x2e1b('0x44')==_0x465145['type']||_0x2e1b('0x1c')==_0x465145['type']||_0x2e1b('0x51')==_0x465145['subType'])&&_0x465145['isInContent'])for(const _0x11e455 of _0x465145[_0x2e1b('0x23')]())_0x11e455[_0x2e1b('0x15')](_0x527e95,!0x0)&&_0x4dc37e[_0x2e1b('0x7')](_0x465145[_0x2e1b('0x18')]+':'+_0x465145['author']['id']),_0x11e455[_0x2e1b('0x15')](_0x54fed9,!0x0)&&_0x38d0d3[_0x2e1b('0x7')](_0x465145['type']+':'+_0x465145[_0x2e1b('0x28')]['id']);if(_0x4dc37e[_0x2e1b('0x3c')]!=_0x38d0d3[_0x2e1b('0x3c')])return!0x1;for(const _0x245da6 of _0x4dc37e)if(!_0x38d0d3[_0x2e1b('0x50')](_0x245da6))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2da4=['plugins','commands','ELEMENT_TABLE_OF_CONTENTS','afterInit','insertTableOfContents','get','tableOfContents','locale','_descriptionFactory','enableCommand','registerElementLabel'];(function(_0xc20978,_0x2da494){const _0x19237b=function(_0x10cf9c){while(--_0x10cf9c){_0xc20978['push'](_0xc20978['shift']());}};_0x19237b(++_0x2da494);}(_0x2da4,0x96));const _0x1923=function(_0xc20978,_0x2da494){_0xc20978=_0xc20978-0x0;let _0x19237b=_0x2da4[_0xc20978];return _0x19237b;};import{Plugin as _0xa3367a}from'ckeditor5/src/core';import{getTranslation as _0x48ae06}from'../utils/common-translations';export default class bt extends _0xa3367a{[_0x1923('0x7')](){const _0x108b29=this['editor'];if(!_0x108b29[_0x1923('0x5')][_0x1923('0x9')](_0x1923('0x8')))return;_0x108b29['plugins']['get']('TrackChangesEditing')[_0x1923('0x2')](_0x1923('0x8'));const _0x26eeea=_0x108b29[_0x1923('0x4')][_0x1923('0x9')]('TrackChangesEditing'),_0x320408=_0x108b29[_0x1923('0x0')];_0x26eeea[_0x1923('0x1')][_0x1923('0x3')](_0x1923('0xa'),_0x5cab16=>_0x48ae06(_0x320408,_0x1923('0x6'),_0x5cab16));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x211a=['tableBorderWidth','getAttribute','tableCellPadding','tableWidth','format','tableHeight','getSuggestionCallback','tableCellBorderStyle','editor','get','join','enqueueChange','nodeAfter','discard','handleDiscardAction','registerCustomCallback','_suggestionFactory','getSuggestions','removeAttribute','data','commandParams','tableCellProperties','registerDescriptionCallback','selection','tableCellBorderColor','tableCellHeight','TrackChangesTableProperties','enableCommand','TablePropertiesEditing','tableProperties','afterInit','_handlePropertyChange','model','TableCellPropertiesEditing','table','tableCellWidth','tableBackgroundColor','locale','getFirstPosition','tableBorderStyle','*Format:*\x20change\x20table\x20cell\x20properties','start','_getSuggestion','tableCellBorderWidth','has','accept','plugins','markBlockFormat','subType','formatBlock','document','tableCellVerticalAlignment','change','pluginName','tableCellBackgroundColor'];(function(_0x525bee,_0x211ad7){const _0x335f67=function(_0x5b119a){while(--_0x5b119a){_0x525bee['push'](_0x525bee['shift']());}};_0x335f67(++_0x211ad7);}(_0x211a,0x1be));const _0x335f=function(_0x525bee,_0x211ad7){_0x525bee=_0x525bee-0x0;let _0x335f67=_0x211a[_0x525bee];return _0x335f67;};import{Plugin as _0x3dd014}from'ckeditor5/src/core';import{getTranslation as _0x3ea840}from'../utils/common-translations';export default class Ct extends _0x3dd014{constructor(_0x5b7250){super(_0x5b7250),this[_0x335f('0x17')]=['tableBorderColor',_0x335f('0x21'),_0x335f('0x31'),'tableAlignment',_0x335f('0x34'),_0x335f('0x36'),_0x335f('0x1e')],this[_0x335f('0xf')]=[_0x335f('0x12'),_0x335f('0x1'),_0x335f('0x25'),_0x335f('0x33'),_0x335f('0x1d'),_0x335f('0x13'),_0x335f('0x30'),'tableCellHorizontalAlignment',_0x335f('0x2d')];}static get[_0x335f('0x2f')](){return _0x335f('0x14');}[_0x335f('0x18')](){const _0x1fed04=this['editor'][_0x335f('0x28')][_0x335f('0x3')]('TrackChangesEditing');if(this[_0x335f('0x2')][_0x335f('0x28')][_0x335f('0x26')](_0x335f('0x16'))){for(const _0x225252 of this[_0x335f('0x17')])_0x1fed04[_0x335f('0x15')](_0x225252,(_0x406ff9,_0x1abab0)=>{const _0x242480=this['editor'][_0x335f('0x1a')]['document']['selection'][_0x335f('0x20')]()['findAncestor'](_0x335f('0x1c'));this[_0x335f('0x19')](_0x225252,[_0x242480],this['tableProperties'],_0x335f('0x17'),_0x406ff9,_0x1abab0);});_0x1fed04[_0x335f('0xa')][_0x335f('0x9')](_0x335f('0x2b'),'tableProperties','accept',_0x1fed04[_0x335f('0xa')]['getSuggestionCallback'](_0x335f('0x2b'),null,'discard')),_0x1fed04[_0x335f('0xa')]['registerCustomCallback'](_0x335f('0x2b'),_0x335f('0x17'),_0x335f('0x7'),(_0x69d846,_0x34bd9f)=>this[_0x335f('0x8')](this[_0x335f('0x17')],_0x69d846,_0x34bd9f)),_0x1fed04[_0x335f('0xa')][_0x335f('0x9')]('formatBlock',_0x335f('0x17'),_0x335f('0x4'),()=>!0x1);}if(this[_0x335f('0x2')][_0x335f('0x28')][_0x335f('0x26')](_0x335f('0x1b'))){for(const _0x1bdc62 of this[_0x335f('0xf')])_0x1fed04['enableCommand'](_0x1bdc62,(_0x2911c1,_0x1057ed)=>{const _0x2b6824=this[_0x335f('0x2')][_0x335f('0x28')]['get']('TableUtils')['getSelectionAffectedTableCells'](this[_0x335f('0x2')][_0x335f('0x1a')][_0x335f('0x2c')][_0x335f('0x11')]);this[_0x335f('0x19')](_0x1bdc62,_0x2b6824,this[_0x335f('0xf')],_0x335f('0xf'),_0x2911c1,_0x1057ed);});_0x1fed04[_0x335f('0xa')][_0x335f('0x9')](_0x335f('0x2b'),'tableCellProperties',_0x335f('0x27'),_0x1fed04[_0x335f('0xa')][_0x335f('0x0')](_0x335f('0x2b'),null,'discard')),_0x1fed04['_suggestionFactory'][_0x335f('0x9')](_0x335f('0x2b'),'tableCellProperties','discard',(_0x24e8db,_0x42c000)=>this['handleDiscardAction'](this[_0x335f('0xf')],_0x24e8db,_0x42c000)),_0x1fed04['_suggestionFactory'][_0x335f('0x9')](_0x335f('0x2b'),_0x335f('0xf'),_0x335f('0x4'),()=>!0x1);}_0x1fed04['_descriptionFactory'][_0x335f('0x10')](_0x20db43=>this['handleSuggestionDescription'](_0x20db43));}[_0x335f('0x19')](_0x47eadb,_0x31cbaa,_0x56a995,_0x21a5b9,_0x2a12a6,_0x5807e3){const _0x16790b=this[_0x335f('0x2')][_0x335f('0x28')][_0x335f('0x3')]('TrackChangesEditing');this[_0x335f('0x2')]['model'][_0x335f('0x5')](_0x5807e3['batch'],()=>{for(const _0x246608 of _0x31cbaa){if(this['_getSuggestion'](_0x246608,_0x21a5b9))_0x2a12a6(_0x5807e3);else{const _0x1c21ce={};for(const _0x4b0d2d of _0x56a995){const _0x46d03b=_0x246608[_0x335f('0x32')](_0x4b0d2d);void 0x0!==_0x46d03b&&(_0x1c21ce[_0x4b0d2d]=_0x46d03b);}_0x2a12a6(_0x5807e3),_0x16790b[_0x335f('0x29')](_0x246608,{'commandParams':[_0x1c21ce]},[],_0x21a5b9);}}});}[_0x335f('0x8')](_0x325ad5,_0x2dc63d,_0x4dc3a3){const _0x57bc37=_0x2dc63d[0x0][_0x335f('0x23')][_0x335f('0x6')],_0x3d6996=_0x4dc3a3[_0x335f('0xe')][0x0];this[_0x335f('0x2')]['model'][_0x335f('0x2e')](_0x39bdb7=>{for(const _0x1ace60 of _0x325ad5)void 0x0!==_0x3d6996[_0x1ace60]?_0x39bdb7['setAttribute'](_0x1ace60,_0x3d6996[_0x1ace60],_0x57bc37):_0x39bdb7[_0x335f('0xc')](_0x1ace60,_0x57bc37);});}['handleSuggestionDescription'](_0x1e1b0f){if(_0x1e1b0f[_0x335f('0xd')])switch(_0x1e1b0f[_0x335f('0x2a')]){case _0x335f('0x17'):return{'type':_0x335f('0x35'),'content':_0x3ea840(this[_0x335f('0x2')][_0x335f('0x1f')],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':_0x335f('0x35'),'content':_0x3ea840(this[_0x335f('0x2')][_0x335f('0x1f')],_0x335f('0x22'))};}}[_0x335f('0x24')](_0x4d1db5,_0x994221){const _0x23d153=this[_0x335f('0x2')][_0x335f('0x28')][_0x335f('0x3')]('TrackChangesEditing');for(const _0x13f957 of _0x23d153[_0x335f('0xb')]({'skipNotAttached':!0x0})){const _0xb5eb5e=_0x13f957['getContainedElement']();if(_0x13f957['subType']===_0x994221&&_0xb5eb5e===_0x4d1db5)return _0x13f957;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5043=['TrackChangesEditing','insertTemplate','get','editor','plugins','has','afterInit'];(function(_0x127743,_0x504377){const _0x370065=function(_0x34dfe4){while(--_0x34dfe4){_0x127743['push'](_0x127743['shift']());}};_0x370065(++_0x504377);}(_0x5043,0xb1));const _0x3700=function(_0x127743,_0x504377){_0x127743=_0x127743-0x0;let _0x370065=_0x5043[_0x127743];return _0x370065;};import{Plugin as _0x9d0f0b}from'ckeditor5/src/core';export default class yt extends _0x9d0f0b{[_0x3700('0x4')](){const _0x33905b=this[_0x3700('0x1')];_0x33905b['plugins'][_0x3700('0x3')]('Template')&&_0x33905b[_0x3700('0x2')][_0x3700('0x0')](_0x3700('0x5'))['enableCommand'](_0x3700('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15a5=['editor','createRange','_splitMarkerName','plugins','getChangedMarkers','updateMarker','TrackChangesEditing','document','suggestion','_descriptionFactory','removeMarker','newRange','start','model','differ','from','registerElementLabel','getNearestSelectionRange','schema','get','locale','isCollapsed','registerPostFixer','end','isEqual','title-content'];(function(_0xb6369b,_0x15a534){const _0x54b4e4=function(_0xe5c7fa){while(--_0xe5c7fa){_0xb6369b['push'](_0xb6369b['shift']());}};_0x54b4e4(++_0x15a534);}(_0x15a5,0x93));const _0x54b4=function(_0xb6369b,_0x15a534){_0xb6369b=_0xb6369b-0x0;let _0x54b4e4=_0x15a5[_0xb6369b];return _0x54b4e4;};import{Plugin as _0x483e3b}from'ckeditor5/src/core';import{getTranslation as _0x26384d}from'../utils/common-translations';export default class St extends _0x483e3b{['afterInit'](){const _0x486900=this[_0x54b4('0x9')];if(!_0x486900['plugins']['has']('Title'))return;const _0x2da380=_0x486900[_0x54b4('0xc')][_0x54b4('0x2')](_0x54b4('0xf'));_0x2da380[_0x54b4('0x12')][_0x54b4('0x19')]('title-content',()=>_0x26384d(_0x486900[_0x54b4('0x3')],'ELEMENT_TITLE')),_0x486900[_0x54b4('0x16')][_0x54b4('0x10')][_0x54b4('0x5')](_0x127055=>{let _0x1152d7=!0x1;const _0x12d371=Array[_0x54b4('0x18')](_0x486900['model'][_0x54b4('0x10')][_0x54b4('0x17')][_0x54b4('0xd')]());for(const {name:_0xd6bbd5,data:_0x26a625}of _0x12d371){const {group:_0x4dc33c}=_0x2da380[_0x54b4('0xb')](_0xd6bbd5);if(_0x54b4('0x11')!==_0x4dc33c||!_0x26a625[_0x54b4('0x14')])continue;const _0x3b9f32=_0x26a625[_0x54b4('0x14')],_0x17f42f=_0x3b9f32[_0x54b4('0x6')]['nodeBefore'];if(!_0x17f42f||!_0x17f42f['is']('element',_0x54b4('0x8')))continue;if(!_0x3b9f32['start']['isTouching'](_0x3b9f32[_0x54b4('0x6')]))continue;const _0x2149b5=_0x486900[_0x54b4('0x16')][_0x54b4('0x1')][_0x54b4('0x0')](_0x3b9f32[_0x54b4('0x6')],'forward');if(_0x2149b5&&_0x2149b5[_0x54b4('0x4')]){const _0x2cab58=_0x127055[_0x54b4('0xa')](_0x3b9f32[_0x54b4('0x15')],_0x2149b5['start']);_0x2cab58[_0x54b4('0x7')](_0x3b9f32)||(_0x127055[_0x54b4('0xe')](_0xd6bbd5,{'range':_0x2cab58}),_0x1152d7=!0x0);}_0x1152d7||(_0x127055[_0x54b4('0x13')](_0xd6bbd5),_0x1152d7=!0x0);}return _0x1152d7;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44bf=['has','editor','plugins','redo','afterInit','get','enableCommand'];(function(_0x540a08,_0x44bffa){const _0x4c6cf7=function(_0x258d3a){while(--_0x258d3a){_0x540a08['push'](_0x540a08['shift']());}};_0x4c6cf7(++_0x44bffa);}(_0x44bf,0x1c5));const _0x4c6c=function(_0x540a08,_0x44bffa){_0x540a08=_0x540a08-0x0;let _0x4c6cf7=_0x44bf[_0x540a08];return _0x4c6cf7;};import{Plugin as _0x573b37}from'ckeditor5/src/core';export default class It extends _0x573b37{[_0x4c6c('0x6')](){const _0x55dcdc=this[_0x4c6c('0x3')],_0x250069=_0x55dcdc[_0x4c6c('0x4')][_0x4c6c('0x0')]('TrackChangesEditing');_0x55dcdc[_0x4c6c('0x4')][_0x4c6c('0x2')]('UndoEditing')&&(_0x250069[_0x4c6c('0x1')]('undo'),_0x250069[_0x4c6c('0x1')](_0x4c6c('0x5')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57c4=['mapper','toViewElement','isAtEnd','writer','previousPosition','includes','elementEnd','getItems','nextSibling','addClass','start','hasAttribute','consumable','insert','model','push','get','activeMarkers','ck-suggestion-marker-','TrackChangesEditing','listItem','listIndent','element','markerRange','name','isContent','test','type','plugins','span','parent','bindElementToMarker','schema','getWalker'];(function(_0x48e9fa,_0x57c4ef){const _0x209fb0=function(_0x13427e){while(--_0x13427e){_0x48e9fa['push'](_0x48e9fa['shift']());}};_0x209fb0(++_0x57c4ef);}(_0x57c4,0x196));const _0x209f=function(_0x48e9fa,_0x57c4ef){_0x48e9fa=_0x48e9fa-0x0;let _0x209fb0=_0x57c4[_0x48e9fa];return _0x209fb0;};export function getRangesWithAttribute(_0x577a44,_0x18445a,_0x3c9c17){const _0x4956d0=[];for(const _0x475490 of _0x18445a[_0x209f('0x9')]())_0x475490[_0x209f('0xd')](_0x577a44)&&_0x4956d0[_0x209f('0x11')](_0x3c9c17['createRangeOn'](_0x475490));return _0x4956d0;}export function getElementsAffectedByListItemRename(_0x3d4c3d){const _0x55469f=[];if(_0x3d4c3d['is'](_0x209f('0x18'),_0x209f('0x16'))){let _0x753bff=_0x3d4c3d[_0x209f('0xa')];for(;_0x753bff&&_0x753bff['is'](_0x209f('0x18'),_0x209f('0x16'))&&_0x753bff['getAttribute'](_0x209f('0x17'))>0x0;)_0x55469f['push'](_0x753bff),_0x753bff=_0x753bff[_0x209f('0xa')];}return _0x55469f;}export function downcastSplitMergeMarker(_0x2638df,_0x1164d0,{showActiveMarker:_0x35945e=!0x0}={}){const _0x122efb=_0x2638df[_0x209f('0x1e')][_0x209f('0x12')](_0x209f('0x15'));return(_0x2e38f8,_0x4d4f14,_0xb0fa19)=>{if(!_0xb0fa19[_0x209f('0xe')][_0x209f('0x1c')](_0x4d4f14['markerRange'],_0x2e38f8[_0x209f('0x1a')]))return;const _0x82d2f1=_0x4d4f14['markerRange'][_0x209f('0x1')](),_0x523e75=_0x4d4f14[_0x209f('0x19')][_0x209f('0xc')],_0x30ee7f=_0x2638df[_0x209f('0x10')][_0x209f('0x0')];let _0x2282a8=null,_0x397718=null,_0x5693d6=!0x1,_0x2f8d80=!0x1;for(const _0x8ec43a of _0x82d2f1){const _0x2a217c=_0x8ec43a['item'];_0x5693d6=_0x5693d6||_0x30ee7f[_0x209f('0x1b')](_0x2a217c);const _0x7f4ff1=_0xb0fa19[_0x209f('0x2')][_0x209f('0x3')](_0x2a217c);if(_0x7f4ff1&&_0x7f4ff1['getCustomProperty']('addHighlight'))return;_0x209f('0x8')==_0x8ec43a[_0x209f('0x1d')]&&(_0x30ee7f['isBlock'](_0x2a217c)&&!_0x30ee7f['isLimit'](_0x2a217c)&&(_0x2a217c[_0x209f('0xa')]||_0x523e75[_0x209f('0x4')]?_0x2282a8&&_0x2282a8[_0x209f('0x20')]==_0x2a217c||(_0x2282a8=_0x2a217c,_0x9dfdcf(_0x8ec43a[_0x209f('0x6')]),_0x2f8d80=!0x0):_0x397718=_0x397718||_0x8ec43a['previousPosition']));}function _0x9dfdcf(_0xcd76f9){const _0x8a94da=_0xb0fa19['writer']['createUIElement'](_0x209f('0x1f'),{'class':_0x209f('0x14')+_0x1164d0}),_0x504c98=_0xb0fa19[_0x209f('0x2')]['toViewPosition'](_0xcd76f9);_0x35945e&&_0x122efb[_0x209f('0x13')][_0x209f('0x7')](_0x4d4f14['markerName'])&&_0xb0fa19[_0x209f('0x5')][_0x209f('0xb')]('ck-suggestion-marker--active',_0x8a94da),_0xb0fa19[_0x209f('0x5')][_0x209f('0xf')](_0x504c98,_0x8a94da),_0xb0fa19[_0x209f('0x2')][_0x209f('0x21')](_0x8a94da,_0x4d4f14['markerName']);}_0x5693d6||_0x2f8d80||!_0x397718||_0x9dfdcf(_0x397718);};}
|