@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231219.0 → 0.0.0-nightly-20231221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x33a5=['isEmpty','first','push','registerCustomCallback','wrap','change','tablePasteCell','_descriptionFactory','suggestionLoaded','createRangeIn','for','trackChanges','getSuggestions','schema','return','markMultiRangeInsertion','markerAttributes','low','getTableIfOnlyTableInContent','nodeAfter','get','_tablePostFixingSubtypes','remove','tableCellVerticalAlignment','_createdBatches','elementToElement','hasSuggestion','_getCoordsForCells','tableCellBorderColor','createTableWalker','add','tablePasteColumn','createRange','join','columnInsertionRanges','rowInsertionIndexes','Users','markerName','insertRows','tableCellBackgroundColor','tableCellBorderStyle','registerPostFixer','differ','TableClipboard','insertColumns','end','content','columns','tablePasteChainId','length','formatBlock','tableCellSuggestion','unwrap','editor','tablePasteRow','removeColumns','redo','nextSibling','getChanges','element','subType','fromEntries','previous','fill','getChangedMarkers','afterInit','getRowIndexes','getContainedElement','set','rowInsertionRanges','_suggestionFactory','startsWith','createRangeOn','conversion','rows','cells','deletion','insert','tableCell','from','_replaceTableSlotCell','insertContent','suggestion','markers','containsRange','setAttributes','tableCellPadding','findAncestor','paragraph','ck-suggestion-marker-insertion','insertion','getColumnIndexes','plugins','registerDescriptionCallback','getAttributes','suggestion-td','isEqual','batch','getShiftedBy','*Replace\x20table\x20cells*','TableUtils','move','getSuggestionCallback','name','rootName','locale','markerToHighlight','tablePaste','entries','$graveyard','getMarkers','author','suggestion:formatBlock:tablePasteCell','position','endColumn','createPositionBefore','showSuggestionHighlights','includes','getRange','removeMarker','isInContent','filter','has','TrackChangesEditing','removeRows','_splitMarkerName','documentSelection','model','forceDefaultExecution','markMultiRangeBlockFormat','getChildren','cell','editing','columnInsertionIndexes','document','discard','getAllAdjacentSuggestions','createElement','oldRange','commands','getColumns','type','editingDowncast','start','endRow','table','getRows','getSelectionAffectedTableCells','getSuggestion','newRange','map','high','column','attributes','next','getRanges','removeMarkers','row','ck-suggestion-marker--active','reduce','find','getChild','clipboardOutput'];(function(_0x3b2610,_0x33a55b){const _0x4c0c17=function(_0x4bd2f9){while(--_0x4bd2f9){_0x3b2610['push'](_0x3b2610['shift']());}};_0x4c0c17(++_0x33a55b);}(_0x33a5,0x15c));const _0x4c0c=function(_0x3b2610,_0x33a55b){_0x3b2610=_0x3b2610-0x0;let _0x4c0c17=_0x33a5[_0x3b2610];return _0x4c0c17;};import{getTranslation as _0x5e1a6d}from'../utils/common-translations.js';import{Plugin as _0x70ac4b}from'ckeditor5/src/core.js';import{uid as _0x1b5486,priorities as _0x424f3f}from'ckeditor5/src/utils.js';import _0x2f170d from'./table.js';const le=['tableCellBorderWidth',_0x4c0c('0x6'),_0x4c0c('0x12'),'tableCellHorizontalAlignment',_0x4c0c('0x1'),_0x4c0c('0x11'),_0x4c0c('0x40')],ae=Object['fromEntries'](le[_0x4c0c('0x80')](_0x30f35d=>[_0x30f35d,null]));export default class St extends _0x70ac4b{static get['requires'](){return[_0x2f170d];}[_0x4c0c('0x2b')](){const _0x4a28fc=this[_0x4c0c('0x1f')];if(!_0x4a28fc[_0x4c0c('0x46')]['has'](_0x4c0c('0x15')))return;const _0x1472ed=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0x65')),_0x4fb501=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0x4e')),_0x2c7f85=_0x4a28fc[_0x4c0c('0x46')]['get'](_0x2f170d),_0x3d0422=_0x4a28fc[_0x4c0c('0x46')]['get']('TableClipboard');_0x2c7f85[_0x4c0c('0xa2')][_0x4c0c('0x8f')]('tablePasteRow',_0x4c0c('0x9')),_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x9a')]['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':_0x4c0c('0x38'),'isLimit':!0x0}),_0x4a28fc['conversion'][_0x4c0c('0x3')]({'model':'tableCellSuggestion','view':_0x4c0c('0x49')});let _0x1d699f=null;_0x4a28fc[_0x4c0c('0x69')]['on'](_0x4c0c('0x3b'),(_0x134697,_0x47fc6f)=>{const [_0x16a01e,_0x3b583f]=_0x47fc6f,_0xc86bf6=_0x47fc6f[_0x47fc6f[_0x4c0c('0x1b')]-0x1];_0xc86bf6&&_0xc86bf6[_0x4c0c('0x6a')]||_0x1472ed['_isForcedDefaultExecutionBlock']||this['editor'][_0x4c0c('0x75')][_0x4c0c('0xa1')](_0x4c0c('0x98'))['value']&&function(_0xc2fb78,_0x5191ae,_0x34b02c,_0x5bab82,_0x3e4cc8){if(_0x5191ae&&!_0x5191ae['is'](_0x4c0c('0x68')))return!0x1;const _0x334226=_0x3e4cc8[_0x4c0c('0x9f')](_0xc2fb78,_0x34b02c);if(!_0x334226||!fe(_0x334226,void 0x0,_0x5bab82))return!0x1;const _0x4f23c6=_0x5bab82[_0x4c0c('0x7d')](_0x34b02c[_0x4c0c('0x70')]['selection']);if(!_0x4f23c6['length'])return!0x1;const _0x76b256=_0x4f23c6[0x0][_0x4c0c('0x41')](_0x4c0c('0x7b')),_0x254b8d=_0x5bab82[_0x4c0c('0x2c')](_0x4f23c6),_0x5bdc73=_0x5bab82[_0x4c0c('0x45')](_0x4f23c6),_0x4ea06d={'startRow':_0x254b8d[_0x4c0c('0x8e')],'endRow':_0x254b8d['last'],'startColumn':_0x5bdc73[_0x4c0c('0x8e')],'endColumn':_0x5bdc73['last']};return 0x1==_0x4f23c6[_0x4c0c('0x1b')]&&(_0x4ea06d[_0x4c0c('0x7a')]+=_0x5bab82[_0x4c0c('0x7c')](_0x334226)-0x1,_0x4ea06d[_0x4c0c('0x5c')]+=_0x5bab82[_0x4c0c('0x76')](_0x334226)-0x1),fe(_0x76b256,_0x4ea06d,_0x5bab82);}(_0x16a01e,_0x3b583f,_0x4a28fc['model'],_0x4fb501,_0x3d0422)&&(_0x134697['stop'](),_0x1d699f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a28fc['model'][_0x4c0c('0x92')](()=>{_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x3b')](_0x47fc6f[0x0],_0x47fc6f[0x1],_0x47fc6f[0x2],{'forceDefaultExecution':!0x0});const _0x4640b0=_0x1b5486(),{rowInsertionRanges:_0x40b182,columnInsertionRanges:_0x32d37a,insertionRanges:_0x5cbc81,deletionRanges:_0x4652ce,cells:_0x2d9235}=_0x1d699f;_0x40b182['length']&&_0x1472ed['markMultiRangeInsertion'](_0x40b182,_0x4c0c('0x20'),{'tablePasteChainId':_0x4640b0}),_0x32d37a['length']&&_0x1472ed[_0x4c0c('0x9c')](_0x32d37a,_0x4c0c('0x9'),{'tablePasteChainId':_0x4640b0}),_0x5cbc81[_0x4c0c('0x1b')]&&_0x1472ed[_0x4c0c('0x9c')](_0x5cbc81,_0x4c0c('0x55'),{'tablePasteChainId':_0x4640b0,'skipNestingCheck':!0x0}),_0x4652ce[_0x4c0c('0x1b')]&&_0x1472ed['markMultiRangeDeletion'](_0x4652ce,_0x4c0c('0x55'),{'tablePasteChainId':_0x4640b0,'skipNestingCheck':!0x0});const _0x855f1d=_0x1472ed[_0x4c0c('0x6b')](_0x2d9235[_0x4c0c('0x80')](({element:_0x2b7541})=>_0x2b7541),{'formatGroupId':_0x1b5486()},[],_0x4c0c('0x93'),{'tablePasteChainId':_0x4640b0});if(_0x855f1d){const _0x10bf9a=_0x855f1d[_0x4c0c('0x58')](),_0xf8a4c1=[];for(const {element:_0x7183bc,attributes:_0x45d30c}of _0x2d9235){if(!_0x45d30c)continue;const _0x20a1e0=_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x32')](_0x7183bc),_0x11727d=_0x10bf9a[_0x4c0c('0x8a')](_0xcb0a5c=>_0xcb0a5c[_0x4c0c('0x60')]()[_0x4c0c('0x4a')](_0x20a1e0));_0x11727d&&_0xf8a4c1[_0x4c0c('0x8f')]([_0x11727d['name'],_0x45d30c]);}_0xf8a4c1[_0x4c0c('0x1b')]&&_0x855f1d['setAttribute'](_0x4c0c('0x9d'),Object['fromEntries'](_0xf8a4c1));}_0x1d699f=null;}));},{'priority':_0x424f3f[_0x4c0c('0x81')]+0xa}),_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0x15'))['on'](_0x4c0c('0x3a'),(_0x2499d2,_0x40d039)=>{const [_0xc333d7,_0x665ee1,,_0x4f7155]=_0x40d039;if(!_0x1d699f)return;_0x2499d2['stop']();const _0x1121a6=_0xc333d7[_0x4c0c('0x6d')],_0x36fe70=_0x665ee1,_0x5269e4=ce(_0x1121a6),_0x4c537f=ce(_0x36fe70);_0x2499d2[_0x4c0c('0x9b')]=_0x1121a6;let _0x34acb9=null,_0x33296e=null;if(_0x4c537f||_0x5269e4){if(_0x5269e4&&!_0x4c537f){_0x4f7155[_0x4c0c('0x0')](_0x1121a6[_0x4c0c('0x8b')](0x0));for(const _0x506f29 of Array[_0x4c0c('0x39')](_0x36fe70[_0x4c0c('0x6c')]()))_0x4f7155[_0x4c0c('0x37')](_0x506f29,_0x1121a6,'end');const _0x4db6f3=_0x1d699f[_0x4c0c('0xd')][_0x4c0c('0x5f')](_0xc333d7[_0x4c0c('0x87')]),_0x421796=_0x1d699f[_0x4c0c('0x6f')][_0x4c0c('0x5f')](_0xc333d7[_0x4c0c('0x82')]);_0x4db6f3||_0x421796||(_0x34acb9=_0x4f7155[_0x4c0c('0x96')](_0x1121a6));}else _0x4c537f&&!_0x5269e4&&(_0x33296e=_0x4f7155[_0x4c0c('0x96')](_0x1121a6));}else{const _0xe8143f=_0x4f7155[_0x4c0c('0x73')]('tableCellSuggestion'),_0x47da3c=_0x4f7155['createElement'](_0x4c0c('0x1d'));_0x4f7155[_0x4c0c('0x91')](_0x4f7155['createRangeIn'](_0x1121a6),_0x47da3c),_0x4f7155['insert'](_0xe8143f,_0x1121a6,0x0);for(const _0x2020d4 of Array[_0x4c0c('0x39')](_0x36fe70[_0x4c0c('0x6c')]()))_0x4f7155[_0x4c0c('0x37')](_0x2020d4,_0xe8143f,_0x4c0c('0x17'));_0x34acb9=_0x4f7155[_0x4c0c('0x32')](_0xe8143f),_0x33296e=_0x4f7155['createRangeOn'](_0x47da3c);}const _0x7eca43=Array[_0x4c0c('0x39')](_0x36fe70[_0x4c0c('0x48')]())['filter'](([_0x127be6])=>le[_0x4c0c('0x5f')](_0x127be6));_0x1d699f[_0x4c0c('0x35')][_0x4c0c('0x8f')]({'element':_0x1121a6,'attributes':_0x7eca43[_0x4c0c('0x1b')]?Object[_0x4c0c('0x27')](_0x7eca43):null}),_0x34acb9&&_0x1d699f['insertionRanges'][_0x4c0c('0x8f')](_0x34acb9),_0x33296e&&_0x1d699f['deletionRanges'][_0x4c0c('0x8f')](_0x33296e);},{'priority':_0x4c0c('0x81')}),_0x4fb501['on'](_0x4c0c('0x16'),(_0x5de0bf,_0x23f283)=>{const [_0x4c7ae8,_0x214c96={}]=_0x23f283;if(!_0x1d699f)return;const _0x5a6aea=_0x214c96['at']||0x0,_0x5e7dbb=_0x214c96[_0x4c0c('0x19')]||0x1;_0x1d699f[_0x4c0c('0x6f')]=new Array(_0x5e7dbb)[_0x4c0c('0x29')](_0x5a6aea)[_0x4c0c('0x80')]((_0x2242f9,_0x5e71e6)=>_0x2242f9+_0x5e71e6);for(const {cell:_0x1e7576}of _0x4fb501['createTableWalker'](_0x4c7ae8,{'startColumn':_0x5a6aea,'endColumn':_0x5a6aea+_0x5e7dbb-0x1}))_0x1d699f[_0x4c0c('0xc')]['push'](_0x4a28fc['model'][_0x4c0c('0x32')](_0x1e7576));},{'priority':'low'}),_0x4fb501['on'](_0x4c0c('0x10'),(_0x61402,_0x481e2)=>{const [_0x65d7c3,_0x2187d9={}]=_0x481e2;if(!_0x1d699f)return;const _0x596955=_0x2187d9['at']||0x0,_0xd4def3=_0x2187d9[_0x4c0c('0x34')]||0x1;_0x1d699f[_0x4c0c('0xd')]=new Array(_0xd4def3)[_0x4c0c('0x29')](_0x596955)[_0x4c0c('0x80')]((_0x1e094d,_0x3ebb72)=>_0x1e094d+_0x3ebb72);for(const {cell:_0x51a2bc}of _0x4fb501['createTableWalker'](_0x65d7c3,{'startRow':_0x596955,'endRow':_0x596955+_0xd4def3-0x1}))_0x1d699f[_0x4c0c('0x2f')][_0x4c0c('0x8f')](_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x32')](_0x51a2bc));},{'priority':_0x4c0c('0x9e')}),_0x1472ed[_0x4c0c('0x94')][_0x4c0c('0x47')](_0x1f6a8b=>{if(_0x1f6a8b['subType']&&_0x1f6a8b[_0x4c0c('0x26')][_0x4c0c('0x31')](_0x4c0c('0x55')))return _0x1f6a8b[_0x4c0c('0x28')]?{}:{'type':_0x4c0c('0x44'),'content':_0x5e1a6d(_0x4a28fc[_0x4c0c('0x53')],_0x4c0c('0x4d'))};});const _0x4e6a8f=()=>!0x1;for(const _0x2f09f1 of['tablePaste',_0x4c0c('0x9'),_0x4c0c('0x20'),_0x4c0c('0x93')])_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x44'),_0x2f09f1,_0x4c0c('0xb'),_0x4e6a8f),_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x36'),_0x2f09f1,_0x4c0c('0xb'),_0x4e6a8f),_0x1472ed[_0x4c0c('0x30')]['registerCustomCallback']('formatBlock',_0x2f09f1,'join',_0x4e6a8f);_0x1472ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c0c('0x93'),_0x4c0c('0x71'),_0x4e6a8f),_0x1472ed[_0x4c0c('0x30')]['registerCustomCallback'](_0x4c0c('0x1c'),'tablePasteCell','accept',(_0x22bc07,_0x36cf24,_0x1e409d)=>{const _0x2529ec=_0x22bc07[_0x4c0c('0x80')](_0x34c9d2=>_0x34c9d2[_0x4c0c('0x2d')]())[_0x4c0c('0x63')](_0x361972=>_0x361972),_0xe80992=new Map(_0x2529ec[_0x4c0c('0x80')](_0xc3144f=>[_0xc3144f,null]));if(_0x1d699f)for(const {element:_0x2050ae,attributes:_0x1f60a7}of _0x1d699f[_0x4c0c('0x35')])_0x1f60a7&&_0xe80992[_0x4c0c('0x2e')](_0x2050ae,_0x1f60a7);else{if(_0x1e409d&&_0x1e409d[_0x4c0c('0x9d')])for(const [_0x42fcc9,_0x221e9b]of Object[_0x4c0c('0x56')](_0x1e409d[_0x4c0c('0x9d')])){const _0x3a6fb7=_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x3d')][_0x4c0c('0xa1')](_0x42fcc9),_0x2eed2f=_0x3a6fb7?_0x3a6fb7[_0x4c0c('0x60')]()[_0x4c0c('0x2d')]():null;_0x2eed2f&&_0xe80992['set'](_0x2eed2f,_0x221e9b);}}_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x92')](_0x2dac92=>{for(const [_0x20d2ea,_0x848438]of _0xe80992)_0x2dac92[_0x4c0c('0x3f')]({...ae,..._0x848438},_0x20d2ea);});});const _0xabb209=(_0x43d995,_0x5db9d5)=>{_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x43d995,_0x4c0c('0x55'),_0x5db9d5,(_0x926d4,_0x546fa4,_0x3deb34)=>{_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x92')](_0x32c92e=>{const _0x26f8cc=[];for(const _0x287038 of _0x926d4){const _0x469e93=_0x287038[_0x4c0c('0x79')][_0x4c0c('0xa0')];_0x469e93['is'](_0x4c0c('0x25'),_0x4c0c('0x1d'))&&_0x26f8cc[_0x4c0c('0x8f')](_0x469e93);}_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x50')](_0x43d995,null,_0x5db9d5)(_0x926d4,_0x546fa4,_0x3deb34);for(const _0x348bbe of _0x26f8cc)_0x4c0c('0x57')!=_0x348bbe['root'][_0x4c0c('0x52')]&&_0x32c92e[_0x4c0c('0x1e')](_0x348bbe);});});};_0xabb209(_0x4c0c('0x44'),'accept'),_0xabb209(_0x4c0c('0x44'),_0x4c0c('0x71')),_0xabb209(_0x4c0c('0x36'),'accept'),_0xabb209(_0x4c0c('0x36'),'discard'),_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x44'),_0x4c0c('0x20'),_0x4c0c('0x71'),_0x5c5a34=>{const _0x50d268=_0x5c5a34[_0x4c0c('0x80')](_0x5d77ec=>_0x5d77ec[_0x4c0c('0x2d')]()),_0x517cb3=_0x50d268[0x0]['findAncestor']('table'),{minRow:_0x2cf1a0,maxRow:_0xd56623}=_0x2c7f85[_0x4c0c('0x5')](_0x50d268);_0x4fb501[_0x4c0c('0x66')](_0x517cb3,{'at':_0x2cf1a0,'rows':_0xd56623-_0x2cf1a0+0x1});}),_0x1472ed[_0x4c0c('0x30')][_0x4c0c('0x90')](_0x4c0c('0x44'),_0x4c0c('0x9'),_0x4c0c('0x71'),_0x449bfc=>{const _0x1a49da=_0x449bfc['map'](_0x1c61ae=>_0x1c61ae[_0x4c0c('0x2d')]()),_0x5efdc5=_0x1a49da[0x0][_0x4c0c('0x41')](_0x4c0c('0x7b')),{minColumn:_0xbcd466,maxColumn:_0x4cc64f}=_0x2c7f85['_getCoordsForCells'](_0x1a49da);_0x4fb501[_0x4c0c('0x21')](_0x5efdc5,{'at':_0xbcd466,'columns':_0x4cc64f-_0xbcd466+0x1});});const _0x375a30=(_0x3f7f75,_0x2faa15)=>{if(!_0x2faa15[_0x4c0c('0x26')]||!_0x2faa15[_0x4c0c('0x26')][_0x4c0c('0x31')](_0x4c0c('0x55')))return;const _0x1dc78a=_0x2faa15[_0x4c0c('0x83')]['tablePasteChainId'],_0x4ae317=_0x1472ed[_0x4c0c('0x99')]()['filter'](_0x99d2bb=>_0x99d2bb[_0x4c0c('0x62')]&&_0x99d2bb['attributes']&&_0x99d2bb[_0x4c0c('0x83')][_0x4c0c('0x1a')]==_0x1dc78a);_0x4ae317[_0x4c0c('0x1b')]&&_0x2faa15['getAllAdjacentSuggestions']()['length']!=_0x4ae317[_0x4c0c('0x1b')]&&_0x4ae317[_0x4c0c('0x89')]((_0x5913dc,_0x5b10ba)=>(_0x5913dc[_0x4c0c('0x84')]=_0x5b10ba,_0x5b10ba[_0x4c0c('0x28')]=_0x5913dc,_0x5b10ba));};function _0x100e2a(_0x2aa8af,_0x1e6f7a=!0x0){const {id:_0x2db02d}=_0x1472ed[_0x4c0c('0x67')](_0x2aa8af[_0x4c0c('0xf')]),_0x5230ad=['ck-suggestion-marker',_0x4c0c('0x43')],_0x5ab2ea=_0x1472ed['activeMarkers'][_0x4c0c('0x5f')](_0x2aa8af[_0x4c0c('0xf')]);return _0x5ab2ea&&_0x5230ad[_0x4c0c('0x8f')](_0x4c0c('0x88')),{'classes':_0x5230ad,'attributes':{'data-suggestion':_0x2db02d},'priority':_0x5ab2ea&&_0x1e6f7a?0xbc2:0xbb8};}_0x1472ed['on'](_0x4c0c('0x95'),_0x375a30,{'priority':'high'}),_0x1472ed['on']('suggestionUnloaded',_0x375a30,{'priority':_0x4c0c('0x81')}),_0x4a28fc['model'][_0x4c0c('0x70')][_0x4c0c('0x13')](()=>{let _0x4280f1=!0x1;const _0x30711e=Array['from'](_0x4a28fc[_0x4c0c('0x69')][_0x4c0c('0x70')]['differ']['getChangedMarkers']());for(const {name:_0x49ed0b,data:_0x30f5d7}of _0x30711e){const {group:_0x59c2f5,type:_0x5f4d8d,id:_0x2b1017}=_0x1472ed['_splitMarkerName'](_0x49ed0b);if('suggestion'!=_0x59c2f5||'deletion'!=_0x5f4d8d||_0x30f5d7[_0x4c0c('0x74')])continue;if(!_0x1472ed[_0x4c0c('0x4')](_0x2b1017))continue;const _0x44a722=_0x1472ed[_0x4c0c('0x7e')](_0x2b1017)[_0x4c0c('0x85')](),_0x1dd0f0=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0xe'))['me'];for(const _0x5e4466 of _0x1472ed[_0x4c0c('0x99')]()){if(!_0x5e4466['isInContent']||_0x5e4466[_0x4c0c('0x59')]!=_0x1dd0f0)continue;if(_0x4c0c('0x1c')!=_0x5e4466[_0x4c0c('0x77')]||_0x4c0c('0x93')!=_0x5e4466[_0x4c0c('0x26')])continue;if(_0x5e4466[_0x4c0c('0x85')]()['every'](_0x2fd723=>_0x44a722['some'](_0xcb00d7=>_0xcb00d7[_0x4c0c('0x3e')](_0x2fd723,!0x0))))for(const _0x42e408 of _0x5e4466[_0x4c0c('0x72')]())_0x42e408[_0x4c0c('0x62')]&&(_0x42e408[_0x4c0c('0x71')](),_0x4280f1=!0x0);}}return _0x4280f1;}),_0x4a28fc['model']['document'][_0x4c0c('0x13')](_0x482abf=>{const _0x3f9aa4=_0x4a28fc[_0x4c0c('0x75')][_0x4c0c('0xa1')](_0x4c0c('0x22'));if(!_0x3f9aa4||!_0x3f9aa4[_0x4c0c('0x2')][_0x4c0c('0x64')](_0x482abf[_0x4c0c('0x4b')]))return!0x1;let _0xc228af=!0x1;const _0x5a5056=_0x4a28fc[_0x4c0c('0x46')][_0x4c0c('0xa1')](_0x4c0c('0xe'))['me'],_0x5bdbac=_0x4a28fc['model'][_0x4c0c('0x70')][_0x4c0c('0x14')][_0x4c0c('0x24')](),_0x5c3541=Array[_0x4c0c('0x39')](_0x4a28fc['model'][_0x4c0c('0x70')]['differ'][_0x4c0c('0x2a')]())[_0x4c0c('0x63')](({name:_0xe1de3d,data:_0x3bcfae})=>{const {group:_0x1ee037,subType:_0x2a71ff,authorId:_0x57a174}=_0x1472ed[_0x4c0c('0x67')](_0xe1de3d);return _0x4c0c('0x3c')==_0x1ee037&&_0x4c0c('0x55')==_0x2a71ff&&_0x57a174==_0x5a5056['id']&&!_0x3bcfae[_0x4c0c('0x74')];});for(const _0x4a1524 of _0x5bdbac){if('insert'!=_0x4a1524[_0x4c0c('0x77')]||'tableCellSuggestion'!=_0x4a1524[_0x4c0c('0x51')]||0x1!=_0x4a1524[_0x4c0c('0x1b')])continue;const _0x2e967c=_0x482abf[_0x4c0c('0xa')](_0x4a1524[_0x4c0c('0x5b')],_0x4a1524[_0x4c0c('0x5b')][_0x4c0c('0x4c')](0x1));if(!_0x5c3541[_0x4c0c('0x8a')](({data:_0x551636})=>_0x551636['newRange'][_0x4c0c('0x4a')](_0x2e967c)))for(const {name:_0x369c1b,data:_0x4b190b}of _0x5c3541)if(_0x2e967c[_0x4c0c('0x3e')](_0x4b190b[_0x4c0c('0x7f')])){_0x482abf['updateMarker'](_0x369c1b,{'range':_0x2e967c}),_0xc228af=!0x0;break;}}return _0xc228af;}),_0x4a28fc['model'][_0x4c0c('0x70')][_0x4c0c('0x13')](_0x5e3516=>{let _0x3d6c98=!0x1;const _0x527121=_0x4a28fc['plugins'][_0x4c0c('0xa1')](_0x4c0c('0xe'))['me'],_0x3f6fdd=_0x1472ed[_0x4c0c('0x99')]()[_0x4c0c('0x63')](_0x236318=>_0x236318[_0x4c0c('0x62')]&&_0x236318[_0x4c0c('0x59')]==_0x527121),_0x2bed1f=new Set(),_0x23cab3=new Set();for(const _0x34a0a0 of _0x3f6fdd)if(_0x4c0c('0x55')==_0x34a0a0['subType'])for(const _0x2ca86c of _0x34a0a0[_0x4c0c('0x58')]()){const _0x4d34c9=_0x2ca86c[_0x4c0c('0x60')]()[_0x4c0c('0x2d')]();if(_0x4d34c9){if(_0x4d34c9['is']('element','tableCellSuggestion')&&ce(_0x4d34c9)){_0x34a0a0[_0x4c0c('0x61')](_0x2ca86c[_0x4c0c('0x51')]),_0x2bed1f[_0x4c0c('0x8')](_0x4d34c9),_0x3d6c98=!0x0;const _0x545e05=_0x4d34c9[_0x4c0c('0x23')],_0x25a66f=_0x4d34c9['previousSibling'],_0x2a78d4=_0x545e05&&_0x545e05['is']('element','tableCellSuggestion'),_0x458af4=_0x25a66f&&_0x25a66f['is'](_0x4c0c('0x25'),_0x4c0c('0x1d'));_0x2a78d4&&!_0x2bed1f[_0x4c0c('0x64')](_0x545e05)&&_0x23cab3[_0x4c0c('0x8')](_0x545e05),_0x458af4&&!_0x2bed1f[_0x4c0c('0x64')](_0x25a66f)&&_0x23cab3['add'](_0x25a66f);}else _0x4d34c9['is']('element','paragraph')&&_0x4d34c9[_0x4c0c('0x8d')]&&(_0x34a0a0[_0x4c0c('0x61')](_0x2ca86c[_0x4c0c('0x51')]),_0x3d6c98=!0x0);}}else{if(_0x4c0c('0x93')==_0x34a0a0['subType']){if(!_0x34a0a0[_0x4c0c('0x83')]||!_0x34a0a0[_0x4c0c('0x83')][_0x4c0c('0x1a')])continue;const _0x5017fc=_0x34a0a0['attributes']['markerAttributes'];if(_0x5017fc&&Object['keys'](_0x5017fc)[_0x4c0c('0x1b')])continue;const _0x58bf8c=_0x34a0a0[_0x4c0c('0x83')][_0x4c0c('0x1a')];let _0xe23325=!0x0,_0x15d2a1=!0x0;for(const _0x3fa0cb of _0x3f6fdd)if(_0x3fa0cb[_0x4c0c('0x26')]&&_0x3fa0cb[_0x4c0c('0x26')]['startsWith'](_0x4c0c('0x55'))){if(!_0x3fa0cb[_0x4c0c('0x83')][_0x4c0c('0x1a')]){_0x15d2a1=!0x1;break;}if(_0x3fa0cb['id']!=_0x34a0a0['id']&&_0x3fa0cb[_0x4c0c('0x83')][_0x4c0c('0x1a')]==_0x58bf8c){_0xe23325=!0x1;break;}}_0x15d2a1&&_0xe23325&&(_0x34a0a0[_0x4c0c('0x86')](),_0x3d6c98=!0x0);}}for(const _0x581695 of _0x2bed1f)_0x5e3516[_0x4c0c('0x0')](_0x581695);for(const _0x41c92f of _0x23cab3)_0x5e3516[_0x4c0c('0x1e')](_0x41c92f);return _0x3d6c98;}),_0x4a28fc[_0x4c0c('0x33')][_0x4c0c('0x97')](_0x4c0c('0x78'))[_0x4c0c('0x54')]({'model':_0x4c0c('0x5a'),'view':(_0x1fdc1f,_0x374ad2)=>_0x100e2a(_0x1fdc1f),'converterPriority':_0x4c0c('0x81')}),_0x4a28fc[_0x4c0c('0x33')]['for']('dataDowncast')[_0x4c0c('0x54')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4d65a9,_0x9fc6d2)=>_0x9fc6d2['options'][_0x4c0c('0x5e')]?_0x100e2a(_0x4d65a9,!0x1):null,'converterPriority':_0x4c0c('0x81')});const _0x5f3f5c=_0x4a28fc[_0x4c0c('0x6e')]['view'];this['listenTo'](_0x5f3f5c[_0x4c0c('0x70')],_0x4c0c('0x8c'),(_0xf1a00f,_0x3cb3fb)=>{const _0x1adfa7=[];for(const _0xdac48c of _0x5f3f5c[_0x4c0c('0x96')](_0x3cb3fb[_0x4c0c('0x18')])['getItems']())_0xdac48c['is'](_0x4c0c('0x25'),_0x4c0c('0x49'))&&_0x1adfa7[_0x4c0c('0x8f')](_0xdac48c);_0x5f3f5c[_0x4c0c('0x92')](_0x3269b7=>{for(const _0x39cb6c of _0x1adfa7)_0x3269b7[_0x4c0c('0x4f')](_0x3269b7[_0x4c0c('0x96')](_0x39cb6c),_0x3269b7[_0x4c0c('0x5d')](_0x39cb6c)),_0x3269b7['remove'](_0x39cb6c);});});}}function ce(_0x124734){if(_0x124734[_0x4c0c('0x8d')])return!0x0;const _0x54a262=_0x124734[_0x4c0c('0x8b')](0x0);return _0x54a262['is'](_0x4c0c('0x25'),_0x4c0c('0x42'))&&_0x54a262[_0x4c0c('0x8d')];}function fe(_0x3b8b5c,_0x59a9c8={},_0x4b0a3e){for(const {isAnchor:_0x18c4e0,cellHeight:_0x591605,cellWidth:_0x370dce}of _0x4b0a3e[_0x4c0c('0x7')](_0x3b8b5c,{'includeAllSlots':!0x0,..._0x59a9c8}))if(!_0x18c4e0||0x1!=_0x591605||0x1!=_0x370dce)return!0x1;return!0x0;}
|
|
23
|
+
const _0xf308=['markers','getRanges','getAttributes','table','low','stop','markerAttributes','return','model','get','from','clipboardOutput','tablePasteCell','requires','find','_descriptionFactory','registerCustomCallback','paragraph','attributes','move','batch','showSuggestionHighlights','remove','markMultiRangeDeletion','getShiftedBy','root','removeRows','columnInsertionIndexes','previous','for','findAncestor','ck-suggestion-marker-insertion','registerPostFixer','createPositionBefore','_suggestionFactory','removeColumns','accept','discard','TableClipboard','insertContent','isInContent','getMarkers','getColumnIndexes','forceDefaultExecution','fill','some','type','setAttributes','document','map','unwrap','value','dataDowncast','rowInsertionRanges','fromEntries','getChangedMarkers','_splitMarkerName','plugins','TableUtils','editingDowncast','_replaceTableSlotCell','push','insertColumns','createRangeOn','differ','suggestion','markerName','tableCellPadding','listenTo','elementToElement','conversion','element','createRangeIn','markerToHighlight','oldRange','startsWith','join','row','options','length','endRow','Users','getRows','getSuggestion','tableCellVerticalAlignment','removeMarkers','getSelectionAffectedTableCells','tableCellBorderColor','name','isEmpty','position','subType','formatBlock','insertionRanges','insertRows','locale','change','createElement','registerDescriptionCallback','getContainedElement','getChildren','getTableIfOnlyTableInContent','tablePasteColumn','newRange','_getCoordsForCells','isEqual','schema','includes','rowInsertionIndexes','author','TrackChangesEditing','editor','endColumn','end','createTableWalker','filter','register','documentSelection','set','removeMarker','activeMarkers','tableCellBorderWidth','tableCellSuggestion','markMultiRangeInsertion','suggestion:formatBlock:tablePasteCell','tablePasteRow','updateMarker','tablePaste','insert','cells','getChanges','rows','containsRange','deletionRanges','selection','high','tablePasteChainId','getRange','suggestion-td','tableCellBackgroundColor','markMultiRangeBlockFormat','deletion','columnInsertionRanges','first','_tablePostFixingSubtypes','previousSibling','setAttribute','last','redo','getAllAdjacentSuggestions','getChild','tableCellBorderStyle','add','has','commands','nextSibling','every','suggestionLoaded','keys','getSuggestions','insertion','hasSuggestion','columns'];(function(_0x48baef,_0xf3088c){const _0xa9ef8c=function(_0x22b785){while(--_0x22b785){_0x48baef['push'](_0x48baef['shift']());}};_0xa9ef8c(++_0xf3088c);}(_0xf308,0x195));const _0xa9ef=function(_0x48baef,_0xf3088c){_0x48baef=_0x48baef-0x0;let _0xa9ef8c=_0xf308[_0x48baef];return _0xa9ef8c;};import{getTranslation as _0x10dc85}from'../utils/common-translations.js';import{Plugin as _0x3ec56a}from'ckeditor5/src/core.js';import{uid as _0x5764c9,priorities as _0x3ace7b}from'ckeditor5/src/utils.js';import _0x548bed from'./table.js';const le=[_0xa9ef('0x2a'),_0xa9ef('0x8'),_0xa9ef('0x48'),'tableCellHorizontalAlignment',_0xa9ef('0x5'),_0xa9ef('0x3c'),_0xa9ef('0x97')],ae=Object[_0xa9ef('0x8a')](le[_0xa9ef('0x85')](_0x3289dd=>[_0x3289dd,null]));export default class St extends _0x3ec56a{static get[_0xa9ef('0x61')](){return[_0x548bed];}['afterInit'](){const _0x48376b=this[_0xa9ef('0x20')];if(!_0x48376b[_0xa9ef('0x8d')]['has'](_0xa9ef('0x7a')))return;const _0x40ae9d=_0x48376b[_0xa9ef('0x8d')]['get'](_0xa9ef('0x1f')),_0x3c1006=_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0xa9ef('0x8e')),_0x4fc7c0=_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0x548bed),_0xc2a76c=_0x48376b['plugins'][_0xa9ef('0x5d')](_0xa9ef('0x7a'));_0x4fc7c0[_0xa9ef('0x41')][_0xa9ef('0x91')]('tablePasteRow',_0xa9ef('0x17')),_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x1b')][_0xa9ef('0x25')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x48376b[_0xa9ef('0x9a')][_0xa9ef('0x99')]({'model':_0xa9ef('0x2b'),'view':'suggestion-td'});let _0x58cf89=null;_0x48376b[_0xa9ef('0x5c')]['on'](_0xa9ef('0x7b'),(_0x582071,_0x53f456)=>{const [_0x264da6,_0x358aef]=_0x53f456,_0x2f2ab7=_0x53f456[_0x53f456[_0xa9ef('0x0')]-0x1];_0x2f2ab7&&_0x2f2ab7[_0xa9ef('0x7f')]||_0x40ae9d['_isForcedDefaultExecutionBlock']||this[_0xa9ef('0x20')][_0xa9ef('0x4b')][_0xa9ef('0x5d')]('trackChanges')[_0xa9ef('0x87')]&&function(_0x50ff4a,_0xe6b05,_0x25fe02,_0x3c2dfa,_0x385855){if(_0xe6b05&&!_0xe6b05['is'](_0xa9ef('0x26')))return!0x1;const _0x258dc6=_0x385855[_0xa9ef('0x16')](_0x50ff4a,_0x25fe02);if(!_0x258dc6||!fe(_0x258dc6,void 0x0,_0x3c2dfa))return!0x1;const _0x599ec4=_0x3c2dfa[_0xa9ef('0x7')](_0x25fe02[_0xa9ef('0x84')][_0xa9ef('0x37')]);if(!_0x599ec4['length'])return!0x1;const _0x315da1=_0x599ec4[0x0][_0xa9ef('0x72')](_0xa9ef('0x57')),_0x2febaf=_0x3c2dfa['getRowIndexes'](_0x599ec4),_0x4796b1=_0x3c2dfa[_0xa9ef('0x7e')](_0x599ec4),_0x1b0a88={'startRow':_0x2febaf[_0xa9ef('0x40')],'endRow':_0x2febaf[_0xa9ef('0x44')],'startColumn':_0x4796b1['first'],'endColumn':_0x4796b1[_0xa9ef('0x44')]};return 0x1==_0x599ec4[_0xa9ef('0x0')]&&(_0x1b0a88[_0xa9ef('0x1')]+=_0x3c2dfa[_0xa9ef('0x3')](_0x258dc6)-0x1,_0x1b0a88[_0xa9ef('0x21')]+=_0x3c2dfa['getColumns'](_0x258dc6)-0x1),fe(_0x315da1,_0x1b0a88,_0x3c2dfa);}(_0x264da6,_0x358aef,_0x48376b[_0xa9ef('0x5c')],_0x3c1006,_0xc2a76c)&&(_0x582071[_0xa9ef('0x59')](),_0x58cf89={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x48376b[_0xa9ef('0x5c')]['change'](()=>{_0x48376b['model']['insertContent'](_0x53f456[0x0],_0x53f456[0x1],_0x53f456[0x2],{'forceDefaultExecution':!0x0});const _0x181562=_0x5764c9(),{rowInsertionRanges:_0x5b40dc,columnInsertionRanges:_0x4e5b46,insertionRanges:_0xe96fcc,deletionRanges:_0x3bbef8,cells:_0x37bc0c}=_0x58cf89;_0x5b40dc[_0xa9ef('0x0')]&&_0x40ae9d[_0xa9ef('0x2c')](_0x5b40dc,_0xa9ef('0x2e'),{'tablePasteChainId':_0x181562}),_0x4e5b46[_0xa9ef('0x0')]&&_0x40ae9d['markMultiRangeInsertion'](_0x4e5b46,'tablePasteColumn',{'tablePasteChainId':_0x181562}),_0xe96fcc[_0xa9ef('0x0')]&&_0x40ae9d[_0xa9ef('0x2c')](_0xe96fcc,_0xa9ef('0x30'),{'tablePasteChainId':_0x181562,'skipNestingCheck':!0x0}),_0x3bbef8[_0xa9ef('0x0')]&&_0x40ae9d[_0xa9ef('0x6b')](_0x3bbef8,'tablePaste',{'tablePasteChainId':_0x181562,'skipNestingCheck':!0x0});const _0x52d57d=_0x40ae9d[_0xa9ef('0x3d')](_0x37bc0c[_0xa9ef('0x85')](({element:_0xe8341f})=>_0xe8341f),{'formatGroupId':_0x5764c9()},[],'tablePasteCell',{'tablePasteChainId':_0x181562});if(_0x52d57d){const _0x410ffc=_0x52d57d['getMarkers'](),_0x138e36=[];for(const {element:_0x4562ca,attributes:_0x14dad8}of _0x37bc0c){if(!_0x14dad8)continue;const _0x309be1=_0x48376b[_0xa9ef('0x5c')]['createRangeOn'](_0x4562ca),_0x53bf80=_0x410ffc[_0xa9ef('0x62')](_0x27802a=>_0x27802a[_0xa9ef('0x3a')]()['isEqual'](_0x309be1));_0x53bf80&&_0x138e36['push']([_0x53bf80[_0xa9ef('0x9')],_0x14dad8]);}_0x138e36[_0xa9ef('0x0')]&&_0x52d57d[_0xa9ef('0x43')]('markerAttributes',Object['fromEntries'](_0x138e36));}_0x58cf89=null;}));},{'priority':_0x3ace7b[_0xa9ef('0x38')]+0xa}),_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0xa9ef('0x7a'))['on'](_0xa9ef('0x90'),(_0x1b7801,_0x56e8ee)=>{const [_0x49f807,_0x83262f,,_0x3bb463]=_0x56e8ee;if(!_0x58cf89)return;_0x1b7801[_0xa9ef('0x59')]();const _0x1a5ce6=_0x49f807['cell'],_0x26e810=_0x83262f,_0x5cd97c=ce(_0x1a5ce6),_0x22499c=ce(_0x26e810);_0x1b7801[_0xa9ef('0x5b')]=_0x1a5ce6;let _0xafade4=null,_0x423269=null;if(_0x22499c||_0x5cd97c){if(_0x5cd97c&&!_0x22499c){_0x3bb463[_0xa9ef('0x6a')](_0x1a5ce6[_0xa9ef('0x47')](0x0));for(const _0x4c32c8 of Array[_0xa9ef('0x5e')](_0x26e810['getChildren']()))_0x3bb463['insert'](_0x4c32c8,_0x1a5ce6,_0xa9ef('0x22'));const _0x10e33a=_0x58cf89[_0xa9ef('0x1d')][_0xa9ef('0x1c')](_0x49f807[_0xa9ef('0xa1')]),_0x3e4973=_0x58cf89['columnInsertionIndexes'][_0xa9ef('0x1c')](_0x49f807['column']);_0x10e33a||_0x3e4973||(_0xafade4=_0x3bb463[_0xa9ef('0x9c')](_0x1a5ce6));}else _0x22499c&&!_0x5cd97c&&(_0x423269=_0x3bb463[_0xa9ef('0x9c')](_0x1a5ce6));}else{const _0x3a5846=_0x3bb463['createElement'](_0xa9ef('0x2b')),_0x576b3d=_0x3bb463[_0xa9ef('0x12')]('tableCellSuggestion');_0x3bb463['wrap'](_0x3bb463[_0xa9ef('0x9c')](_0x1a5ce6),_0x576b3d),_0x3bb463[_0xa9ef('0x31')](_0x3a5846,_0x1a5ce6,0x0);for(const _0x969446 of Array[_0xa9ef('0x5e')](_0x26e810[_0xa9ef('0x15')]()))_0x3bb463[_0xa9ef('0x31')](_0x969446,_0x3a5846,'end');_0xafade4=_0x3bb463[_0xa9ef('0x93')](_0x3a5846),_0x423269=_0x3bb463[_0xa9ef('0x93')](_0x576b3d);}const _0x600e88=Array['from'](_0x26e810[_0xa9ef('0x56')]())['filter'](([_0x382190])=>le[_0xa9ef('0x1c')](_0x382190));_0x58cf89['cells'][_0xa9ef('0x91')]({'element':_0x1a5ce6,'attributes':_0x600e88[_0xa9ef('0x0')]?Object[_0xa9ef('0x8a')](_0x600e88):null}),_0xafade4&&_0x58cf89[_0xa9ef('0xe')]['push'](_0xafade4),_0x423269&&_0x58cf89[_0xa9ef('0x36')][_0xa9ef('0x91')](_0x423269);},{'priority':'high'}),_0x3c1006['on'](_0xa9ef('0x92'),(_0x451b96,_0x49d005)=>{const [_0x159d52,_0x40f5b7={}]=_0x49d005;if(!_0x58cf89)return;const _0x5aa40f=_0x40f5b7['at']||0x0,_0x26f518=_0x40f5b7[_0xa9ef('0x53')]||0x1;_0x58cf89[_0xa9ef('0x6f')]=new Array(_0x26f518)[_0xa9ef('0x80')](_0x5aa40f)['map']((_0x26f3a1,_0x3f1968)=>_0x26f3a1+_0x3f1968);for(const {cell:_0x113177}of _0x3c1006[_0xa9ef('0x23')](_0x159d52,{'startColumn':_0x5aa40f,'endColumn':_0x5aa40f+_0x26f518-0x1}))_0x58cf89[_0xa9ef('0x3f')][_0xa9ef('0x91')](_0x48376b[_0xa9ef('0x5c')]['createRangeOn'](_0x113177));},{'priority':_0xa9ef('0x58')}),_0x3c1006['on'](_0xa9ef('0xf'),(_0x5750dc,_0xabe28f)=>{const [_0x4acce6,_0x9c4f75={}]=_0xabe28f;if(!_0x58cf89)return;const _0x5384b8=_0x9c4f75['at']||0x0,_0x5d4688=_0x9c4f75[_0xa9ef('0x34')]||0x1;_0x58cf89['rowInsertionIndexes']=new Array(_0x5d4688)[_0xa9ef('0x80')](_0x5384b8)[_0xa9ef('0x85')]((_0x27148,_0x246f45)=>_0x27148+_0x246f45);for(const {cell:_0x56026d}of _0x3c1006[_0xa9ef('0x23')](_0x4acce6,{'startRow':_0x5384b8,'endRow':_0x5384b8+_0x5d4688-0x1}))_0x58cf89[_0xa9ef('0x89')][_0xa9ef('0x91')](_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x93')](_0x56026d));},{'priority':_0xa9ef('0x58')}),_0x40ae9d[_0xa9ef('0x63')][_0xa9ef('0x13')](_0xee3bbc=>{if(_0xee3bbc[_0xa9ef('0xc')]&&_0xee3bbc[_0xa9ef('0xc')][_0xa9ef('0x9f')]('tablePaste'))return _0xee3bbc[_0xa9ef('0x70')]?{}:{'type':_0xa9ef('0x51'),'content':_0x10dc85(_0x48376b[_0xa9ef('0x10')],'*Replace\x20table\x20cells*')};});const _0x531ce6=()=>!0x1;for(const _0x3ae08e of[_0xa9ef('0x30'),_0xa9ef('0x17'),_0xa9ef('0x2e'),_0xa9ef('0x60')])_0x40ae9d[_0xa9ef('0x76')][_0xa9ef('0x64')](_0xa9ef('0x51'),_0x3ae08e,_0xa9ef('0xa0'),_0x531ce6),_0x40ae9d[_0xa9ef('0x76')]['registerCustomCallback'](_0xa9ef('0x3e'),_0x3ae08e,_0xa9ef('0xa0'),_0x531ce6),_0x40ae9d['_suggestionFactory'][_0xa9ef('0x64')](_0xa9ef('0xd'),_0x3ae08e,_0xa9ef('0xa0'),_0x531ce6);_0x40ae9d[_0xa9ef('0x76')]['registerCustomCallback']('formatBlock',_0xa9ef('0x60'),_0xa9ef('0x79'),_0x531ce6),_0x40ae9d['_suggestionFactory'][_0xa9ef('0x64')](_0xa9ef('0xd'),_0xa9ef('0x60'),_0xa9ef('0x78'),(_0x343db2,_0x1b310b,_0x4df5a4)=>{const _0x1b481d=_0x343db2[_0xa9ef('0x85')](_0x2d523e=>_0x2d523e[_0xa9ef('0x14')]())[_0xa9ef('0x24')](_0x324e43=>_0x324e43),_0x4e8c39=new Map(_0x1b481d['map'](_0x1182c7=>[_0x1182c7,null]));if(_0x58cf89)for(const {element:_0x218d03,attributes:_0x322cf5}of _0x58cf89[_0xa9ef('0x32')])_0x322cf5&&_0x4e8c39[_0xa9ef('0x27')](_0x218d03,_0x322cf5);else{if(_0x4df5a4&&_0x4df5a4['markerAttributes'])for(const [_0x189161,_0x20ecb2]of Object['entries'](_0x4df5a4[_0xa9ef('0x5a')])){const _0x48dd79=_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x54')][_0xa9ef('0x5d')](_0x189161),_0x1f9820=_0x48dd79?_0x48dd79[_0xa9ef('0x3a')]()[_0xa9ef('0x14')]():null;_0x1f9820&&_0x4e8c39['set'](_0x1f9820,_0x20ecb2);}}_0x48376b[_0xa9ef('0x5c')]['change'](_0x85c012=>{for(const [_0x33b84c,_0x2c177f]of _0x4e8c39)_0x85c012[_0xa9ef('0x83')]({...ae,..._0x2c177f},_0x33b84c);});});const _0x7e155=(_0x26bffb,_0x362c75)=>{_0x40ae9d['_suggestionFactory'][_0xa9ef('0x64')](_0x26bffb,_0xa9ef('0x30'),_0x362c75,(_0x14ff44,_0x1b0160,_0x5f4c07)=>{_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x11')](_0x43e25f=>{const _0x3ba0f0=[];for(const _0x1db2b2 of _0x14ff44){const _0xcb2d7c=_0x1db2b2['start']['nodeAfter'];_0xcb2d7c['is'](_0xa9ef('0x9b'),'tableCellSuggestion')&&_0x3ba0f0['push'](_0xcb2d7c);}_0x40ae9d['_suggestionFactory']['getSuggestionCallback'](_0x26bffb,null,_0x362c75)(_0x14ff44,_0x1b0160,_0x5f4c07);for(const _0x33dcad of _0x3ba0f0)'$graveyard'!=_0x33dcad[_0xa9ef('0x6d')]['rootName']&&_0x43e25f['unwrap'](_0x33dcad);});});};_0x7e155('insertion','accept'),_0x7e155(_0xa9ef('0x51'),_0xa9ef('0x79')),_0x7e155(_0xa9ef('0x3e'),_0xa9ef('0x78')),_0x7e155(_0xa9ef('0x3e'),_0xa9ef('0x79')),_0x40ae9d[_0xa9ef('0x76')][_0xa9ef('0x64')](_0xa9ef('0x51'),'tablePasteRow',_0xa9ef('0x79'),_0x3822f9=>{const _0x1294c5=_0x3822f9[_0xa9ef('0x85')](_0x3f6d23=>_0x3f6d23['getContainedElement']()),_0x332459=_0x1294c5[0x0][_0xa9ef('0x72')](_0xa9ef('0x57')),{minRow:_0x31004c,maxRow:_0x3f5673}=_0x4fc7c0[_0xa9ef('0x19')](_0x1294c5);_0x3c1006[_0xa9ef('0x6e')](_0x332459,{'at':_0x31004c,'rows':_0x3f5673-_0x31004c+0x1});}),_0x40ae9d[_0xa9ef('0x76')][_0xa9ef('0x64')](_0xa9ef('0x51'),_0xa9ef('0x17'),'discard',_0x49e730=>{const _0x2fde89=_0x49e730['map'](_0x35c580=>_0x35c580[_0xa9ef('0x14')]()),_0x421824=_0x2fde89[0x0]['findAncestor'](_0xa9ef('0x57')),{minColumn:_0x44238b,maxColumn:_0x789911}=_0x4fc7c0[_0xa9ef('0x19')](_0x2fde89);_0x3c1006[_0xa9ef('0x77')](_0x421824,{'at':_0x44238b,'columns':_0x789911-_0x44238b+0x1});});const _0x35990d=(_0x72cecf,_0x56bd8b)=>{if(!_0x56bd8b[_0xa9ef('0xc')]||!_0x56bd8b[_0xa9ef('0xc')][_0xa9ef('0x9f')](_0xa9ef('0x30')))return;const _0x142180=_0x56bd8b[_0xa9ef('0x66')]['tablePasteChainId'],_0x2be94a=_0x40ae9d[_0xa9ef('0x50')]()[_0xa9ef('0x24')](_0x1db594=>_0x1db594[_0xa9ef('0x7c')]&&_0x1db594[_0xa9ef('0x66')]&&_0x1db594[_0xa9ef('0x66')][_0xa9ef('0x39')]==_0x142180);_0x2be94a[_0xa9ef('0x0')]&&_0x56bd8b[_0xa9ef('0x46')]()[_0xa9ef('0x0')]!=_0x2be94a[_0xa9ef('0x0')]&&_0x2be94a['reduce']((_0x4de3d2,_0x5a54ba)=>(_0x4de3d2['next']=_0x5a54ba,_0x5a54ba['previous']=_0x4de3d2,_0x5a54ba));};function _0x78876b(_0x552655,_0x2f5140=!0x0){const {id:_0x35a4e8}=_0x40ae9d['_splitMarkerName'](_0x552655[_0xa9ef('0x96')]),_0x3eb2b5=['ck-suggestion-marker',_0xa9ef('0x73')],_0x5e5fa1=_0x40ae9d[_0xa9ef('0x29')][_0xa9ef('0x1c')](_0x552655[_0xa9ef('0x96')]);return _0x5e5fa1&&_0x3eb2b5['push']('ck-suggestion-marker--active'),{'classes':_0x3eb2b5,'attributes':{'data-suggestion':_0x35a4e8},'priority':_0x5e5fa1&&_0x2f5140?0xbc2:0xbb8};}_0x40ae9d['on'](_0xa9ef('0x4e'),_0x35990d,{'priority':'high'}),_0x40ae9d['on']('suggestionUnloaded',_0x35990d,{'priority':'high'}),_0x48376b['model'][_0xa9ef('0x84')][_0xa9ef('0x74')](()=>{let _0x207516=!0x1;const _0x205b1d=Array[_0xa9ef('0x5e')](_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x84')][_0xa9ef('0x94')]['getChangedMarkers']());for(const {name:_0xa340f,data:_0x167d34}of _0x205b1d){const {group:_0x57272e,type:_0x4ae68d,id:_0x11af83}=_0x40ae9d[_0xa9ef('0x8c')](_0xa340f);if(_0xa9ef('0x95')!=_0x57272e||_0xa9ef('0x3e')!=_0x4ae68d||_0x167d34[_0xa9ef('0x9e')])continue;if(!_0x40ae9d[_0xa9ef('0x52')](_0x11af83))continue;const _0x2ad637=_0x40ae9d[_0xa9ef('0x4')](_0x11af83)[_0xa9ef('0x55')](),_0x3071d6=_0x48376b[_0xa9ef('0x8d')]['get'](_0xa9ef('0x2'))['me'];for(const _0x1c5e03 of _0x40ae9d[_0xa9ef('0x50')]()){if(!_0x1c5e03[_0xa9ef('0x7c')]||_0x1c5e03[_0xa9ef('0x1e')]!=_0x3071d6)continue;if(_0xa9ef('0xd')!=_0x1c5e03[_0xa9ef('0x82')]||_0xa9ef('0x60')!=_0x1c5e03['subType'])continue;if(_0x1c5e03[_0xa9ef('0x55')]()[_0xa9ef('0x4d')](_0x41d4f7=>_0x2ad637[_0xa9ef('0x81')](_0x942411=>_0x942411[_0xa9ef('0x35')](_0x41d4f7,!0x0))))for(const _0x438157 of _0x1c5e03[_0xa9ef('0x46')]())_0x438157[_0xa9ef('0x7c')]&&(_0x438157[_0xa9ef('0x79')](),_0x207516=!0x0);}}return _0x207516;}),_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x84')]['registerPostFixer'](_0x5e2a6b=>{const _0x43ca4e=_0x48376b[_0xa9ef('0x4b')][_0xa9ef('0x5d')](_0xa9ef('0x45'));if(!_0x43ca4e||!_0x43ca4e['_createdBatches'][_0xa9ef('0x4a')](_0x5e2a6b[_0xa9ef('0x68')]))return!0x1;let _0x1bb746=!0x1;const _0x1d1cf4=_0x48376b[_0xa9ef('0x8d')]['get'](_0xa9ef('0x2'))['me'],_0x33081a=_0x48376b[_0xa9ef('0x5c')][_0xa9ef('0x84')][_0xa9ef('0x94')][_0xa9ef('0x33')](),_0x217b83=Array[_0xa9ef('0x5e')](_0x48376b['model'][_0xa9ef('0x84')][_0xa9ef('0x94')][_0xa9ef('0x8b')]())[_0xa9ef('0x24')](({name:_0x9caee6,data:_0x1e97b3})=>{const {group:_0x201b43,subType:_0x579549,authorId:_0x4b474e}=_0x40ae9d[_0xa9ef('0x8c')](_0x9caee6);return'suggestion'==_0x201b43&&_0xa9ef('0x30')==_0x579549&&_0x4b474e==_0x1d1cf4['id']&&!_0x1e97b3[_0xa9ef('0x9e')];});for(const _0xdb098c of _0x33081a){if(_0xa9ef('0x31')!=_0xdb098c['type']||_0xa9ef('0x2b')!=_0xdb098c['name']||0x1!=_0xdb098c[_0xa9ef('0x0')])continue;const _0x423058=_0x5e2a6b['createRange'](_0xdb098c[_0xa9ef('0xb')],_0xdb098c[_0xa9ef('0xb')][_0xa9ef('0x6c')](0x1));if(!_0x217b83['find'](({data:_0x174666})=>_0x174666[_0xa9ef('0x18')][_0xa9ef('0x1a')](_0x423058)))for(const {name:_0x49b8c0,data:_0x50aacb}of _0x217b83)if(_0x423058[_0xa9ef('0x35')](_0x50aacb[_0xa9ef('0x18')])){_0x5e2a6b[_0xa9ef('0x2f')](_0x49b8c0,{'range':_0x423058}),_0x1bb746=!0x0;break;}}return _0x1bb746;}),_0x48376b[_0xa9ef('0x5c')]['document'][_0xa9ef('0x74')](_0x36c2d2=>{let _0x4bc6d9=!0x1;const _0x151a29=_0x48376b[_0xa9ef('0x8d')][_0xa9ef('0x5d')](_0xa9ef('0x2'))['me'],_0x1d45a1=_0x40ae9d['getSuggestions']()[_0xa9ef('0x24')](_0x42dd07=>_0x42dd07[_0xa9ef('0x7c')]&&_0x42dd07[_0xa9ef('0x1e')]==_0x151a29),_0xe767bc=new Set(),_0x53af04=new Set();for(const _0x13b455 of _0x1d45a1)if('tablePaste'==_0x13b455[_0xa9ef('0xc')])for(const _0x491486 of _0x13b455[_0xa9ef('0x7d')]()){const _0x77f8e2=_0x491486['getRange']()[_0xa9ef('0x14')]();if(_0x77f8e2){if(_0x77f8e2['is'](_0xa9ef('0x9b'),'tableCellSuggestion')&&ce(_0x77f8e2)){_0x13b455['removeMarker'](_0x491486[_0xa9ef('0x9')]),_0xe767bc[_0xa9ef('0x49')](_0x77f8e2),_0x4bc6d9=!0x0;const _0x3188fa=_0x77f8e2[_0xa9ef('0x4c')],_0x54e9ef=_0x77f8e2[_0xa9ef('0x42')],_0x52e887=_0x3188fa&&_0x3188fa['is'](_0xa9ef('0x9b'),'tableCellSuggestion'),_0x393a82=_0x54e9ef&&_0x54e9ef['is'](_0xa9ef('0x9b'),_0xa9ef('0x2b'));_0x52e887&&!_0xe767bc[_0xa9ef('0x4a')](_0x3188fa)&&_0x53af04[_0xa9ef('0x49')](_0x3188fa),_0x393a82&&!_0xe767bc[_0xa9ef('0x4a')](_0x54e9ef)&&_0x53af04[_0xa9ef('0x49')](_0x54e9ef);}else _0x77f8e2['is'](_0xa9ef('0x9b'),_0xa9ef('0x65'))&&_0x77f8e2['isEmpty']&&(_0x13b455[_0xa9ef('0x28')](_0x491486[_0xa9ef('0x9')]),_0x4bc6d9=!0x0);}}else{if(_0xa9ef('0x60')==_0x13b455['subType']){if(!_0x13b455[_0xa9ef('0x66')]||!_0x13b455[_0xa9ef('0x66')][_0xa9ef('0x39')])continue;const _0x1e316b=_0x13b455['attributes'][_0xa9ef('0x5a')];if(_0x1e316b&&Object[_0xa9ef('0x4f')](_0x1e316b)[_0xa9ef('0x0')])continue;const _0x52be8d=_0x13b455[_0xa9ef('0x66')][_0xa9ef('0x39')];let _0x5379d5=!0x0,_0x2e499f=!0x0;for(const _0x3da309 of _0x1d45a1)if(_0x3da309[_0xa9ef('0xc')]&&_0x3da309[_0xa9ef('0xc')][_0xa9ef('0x9f')](_0xa9ef('0x30'))){if(!_0x3da309[_0xa9ef('0x66')][_0xa9ef('0x39')]){_0x2e499f=!0x1;break;}if(_0x3da309['id']!=_0x13b455['id']&&_0x3da309['attributes'][_0xa9ef('0x39')]==_0x52be8d){_0x5379d5=!0x1;break;}}_0x2e499f&&_0x5379d5&&(_0x13b455[_0xa9ef('0x6')](),_0x4bc6d9=!0x0);}}for(const _0x53cbfb of _0xe767bc)_0x36c2d2[_0xa9ef('0x6a')](_0x53cbfb);for(const _0x221f0c of _0x53af04)_0x36c2d2[_0xa9ef('0x86')](_0x221f0c);return _0x4bc6d9;}),_0x48376b[_0xa9ef('0x9a')][_0xa9ef('0x71')](_0xa9ef('0x8f'))[_0xa9ef('0x9d')]({'model':_0xa9ef('0x2d'),'view':(_0x3392e8,_0x59026d)=>_0x78876b(_0x3392e8),'converterPriority':_0xa9ef('0x38')}),_0x48376b[_0xa9ef('0x9a')][_0xa9ef('0x71')](_0xa9ef('0x88'))[_0xa9ef('0x9d')]({'model':_0xa9ef('0x2d'),'view':(_0x382946,_0x4e5695)=>_0x4e5695[_0xa9ef('0xa2')][_0xa9ef('0x69')]?_0x78876b(_0x382946,!0x1):null,'converterPriority':_0xa9ef('0x38')});const _0x434b1f=_0x48376b['editing']['view'];this[_0xa9ef('0x98')](_0x434b1f[_0xa9ef('0x84')],_0xa9ef('0x5f'),(_0x23dbf9,_0x1245a9)=>{const _0x563a98=[];for(const _0x3b573c of _0x434b1f[_0xa9ef('0x9c')](_0x1245a9['content'])['getItems']())_0x3b573c['is'](_0xa9ef('0x9b'),_0xa9ef('0x3b'))&&_0x563a98[_0xa9ef('0x91')](_0x3b573c);_0x434b1f[_0xa9ef('0x11')](_0x25c519=>{for(const _0xb76fb3 of _0x563a98)_0x25c519[_0xa9ef('0x67')](_0x25c519[_0xa9ef('0x9c')](_0xb76fb3),_0x25c519[_0xa9ef('0x75')](_0xb76fb3)),_0x25c519['remove'](_0xb76fb3);});});}}function ce(_0x1fa930){if(_0x1fa930[_0xa9ef('0xa')])return!0x0;const _0x1605bd=_0x1fa930[_0xa9ef('0x47')](0x0);return _0x1605bd['is'](_0xa9ef('0x9b'),'paragraph')&&_0x1605bd[_0xa9ef('0xa')];}function fe(_0x5a30a1,_0x3b951d={},_0x46e6fb){for(const {isAnchor:_0x448b00,cellHeight:_0x27fd37,cellWidth:_0x25fc20}of _0x46e6fb[_0xa9ef('0x23')](_0x5a30a1,{'includeAllSlots':!0x0,..._0x3b951d}))if(!_0x448b00||0x1!=_0x27fd37||0x1!=_0x25fc20)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x260f=['getTableColumnsWidths','accept','handleSuggestionDescription','*Format:*\x20resize\x20table','tableWidth','getColumnGroupElement','_descriptionFactory','discard','getSelectedElement','bind','plugins','has','commandParams','registerDescriptionCallback','formatGroupId','_suggestionFactory','editor','author','subType','resizeTable','model','columnWidths','format','registerCustomCallback','formatBlock','getSuggestionCallback','resizeTableWidth','type','TrackChangesEditing','change','table','formatInline','Users','get','handleResizeTableWidthCommand','enableCommand'];(function(_0x2235f3,_0x260feb){const _0x264a50=function(_0x37312b){while(--_0x37312b){_0x2235f3['push'](_0x2235f3['shift']());}};_0x264a50(++_0x260feb);}(_0x260f,0xf3));const _0x264a=function(_0x2235f3,_0x260feb){_0x2235f3=_0x2235f3-0x0;let _0x264a50=_0x260f[_0x2235f3];return _0x264a50;};import{Plugin as _0x3120d8}from'ckeditor5/src/core.js';import{getTranslation as _0xebc853}from'../utils/common-translations.js';export default class At extends _0x3120d8{['afterInit'](){if(!this[_0x264a('0x19')][_0x264a('0x13')][_0x264a('0x14')]('TableColumnResizeEditing'))return;const _0x1f34f0=this[_0x264a('0x19')][_0x264a('0x13')][_0x264a('0x6')]('TrackChangesEditing');_0x1f34f0[_0x264a('0x8')](_0x264a('0x23'),this[_0x264a('0x7')][_0x264a('0x12')](this)),_0x1f34f0[_0x264a('0x18')][_0x264a('0x20')](_0x264a('0x21'),'resizeTable',_0x264a('0xa'),_0x1f34f0[_0x264a('0x18')][_0x264a('0x22')](_0x264a('0x21'),null,'discard')),_0x1f34f0[_0x264a('0x18')]['registerCustomCallback'](_0x264a('0x21'),_0x264a('0x1c'),'discard',_0x1f34f0[_0x264a('0x18')]['getSuggestionCallback']('formatBlock',null,_0x264a('0xa'))),_0x1f34f0[_0x264a('0xf')][_0x264a('0x16')](this[_0x264a('0xb')][_0x264a('0x12')](this));}['handleResizeTableWidthCommand'](_0x25a88d,_0x2e734a){const _0x408e73=this[_0x264a('0x19')][_0x264a('0x13')][_0x264a('0x6')](_0x264a('0x1')),_0x55922d=this[_0x264a('0x19')][_0x264a('0x13')][_0x264a('0x6')]('TableColumnResizeEditing'),_0x4dbfc0=_0x2e734a[_0x264a('0x3')]||this[_0x264a('0x19')][_0x264a('0x1d')]['document']['selection'][_0x264a('0x11')]();this[_0x264a('0x19')][_0x264a('0x1d')][_0x264a('0x2')](()=>{const _0x9a6e7b=_0x55922d[_0x264a('0xe')](_0x4dbfc0);let _0x11f573=_0x9a6e7b?_0x55922d[_0x264a('0x9')](_0x9a6e7b):null,_0x3734ae=_0x4dbfc0['getAttribute']('tableWidth')||null;const _0x17a9c9=_0x2e734a[_0x264a('0xd')]||_0x3734ae,_0x4a0051=_0x2e734a[_0x264a('0x1e')]||_0x11f573,_0x44f9d9=this[_0x264a('0x19')][_0x264a('0x13')]['get'](_0x264a('0x5'))['me'];for(const _0x4d4b90 of _0x408e73['getSuggestions']()){const _0x378b0c=_0x4d4b90['getContainedElement']();if(_0x264a('0x1c')===_0x4d4b90[_0x264a('0x1b')]&&_0x378b0c===_0x4dbfc0){_0x4d4b90[_0x264a('0x1a')]!==_0x44f9d9&&_0x4d4b90[_0x264a('0x10')]();const _0x315f46=_0x4d4b90['data'][_0x264a('0x15')];_0x3734ae=_0x315f46[0x0]['tableWidth'],_0x11f573=_0x315f46[0x0][_0x264a('0x1e')];break;}}_0x25a88d({'table':_0x4dbfc0,'tableWidth':_0x17a9c9,'columnWidths':_0x4a0051}),_0x408e73['markBlockFormat'](_0x4dbfc0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3734ae,'columnWidths':_0x11f573}],'formatGroupId':_0x264a('0x1c')},[],_0x264a('0x1c'));});}[_0x264a('0xb')](_0x48ee27){if('formatBlock'!=_0x48ee27[_0x264a('0x0')]&&_0x264a('0x4')!=_0x48ee27[_0x264a('0x0')])return;const {data:_0x285d7f}=_0x48ee27;if(_0x285d7f&&'resizeTable'===_0x285d7f[_0x264a('0x17')]){const _0x3cba36=_0x264a('0xc');return{'type':_0x264a('0x1f'),'content':_0xebc853(this[_0x264a('0x19')]['locale'],_0x3cba36)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53ce=['registerCustomCallback','setTableRowHeader','FORMAT_REGULAR_COLUMN','type','removeClass','locale','commandName','commandParams','TableUtils','registerAttributeLabel','headingRows','cell','writer','_suggestionFactory','plugins','headingColumns','consume','TrackChangesEditing','TableEditing','forceValue','FORMAT_REGULAR_ROW','item','bindElementToMarker','formatBlock','FORMAT_HEADER_COLUMN','setTableColumnHeader','options','_acceptFormatSuggestionCallbackFactory','activeMarkers','createTableWalker','format','nodeBefore','_registerLegacyDescription','nodeAfter','FORMAT_HEADER_ROW','includes','data','registerDescriptionCallback','downcastDispatcher','get','data-suggestion','_splitMarkerName','_handleLegacySuggestions','showSuggestionHighlights','requires','markerRange','ck-suggestion-marker-','addClass','parent','stop','markerNameToElements','has','mapper','getCellLocation','editing','addMarker:suggestion','editor','end','*Format:*\x20%0','ck-suggestion-marker--active','_enableDefaultAttributesIntegration','name','accept','_descriptionFactory','afterInit','highest','toViewElement','getSuggestion','markerName'];(function(_0x261a48,_0x53cef1){const _0x10a4a9=function(_0x42cd7c){while(--_0x42cd7c){_0x261a48['push'](_0x261a48['shift']());}};_0x10a4a9(++_0x53cef1);}(_0x53ce,0x104));const _0x10a4=function(_0x261a48,_0x53cef1){_0x261a48=_0x261a48-0x0;let _0x10a4a9=_0x53ce[_0x261a48];return _0x10a4a9;};import{Plugin as _0x2f4da6}from'ckeditor5/src/core.js';import _0x28588 from'./table.js';import{getTranslation as _0x414dbf}from'../utils/common-translations.js';export default class jt extends _0x2f4da6{static get[_0x10a4('0x3c')](){return[_0x28588];}[_0x10a4('0xb')](){const _0x42f53c=this[_0x10a4('0x3')];if(!_0x42f53c['plugins'][_0x10a4('0x43')](_0x10a4('0x22')))return;const _0x1448b9=_0x42f53c[_0x10a4('0x15')],_0x39cb41=_0x42f53c[_0x10a4('0x1e')][_0x10a4('0x37')](_0x10a4('0x21'));_0x39cb41[_0x10a4('0x7')]('setTableRowHeader',[],[_0x10a4('0x1a')]),_0x39cb41[_0x10a4('0x7')](_0x10a4('0x29'),[],[_0x10a4('0x1f')]),_0x39cb41[_0x10a4('0xa')]['registerAttributeLabel'](_0x10a4('0x1a'),_0x414dbf(_0x1448b9,'FORMAT_HEADER_ROW')),_0x39cb41[_0x10a4('0xa')][_0x10a4('0x19')]('headingColumns',_0x414dbf(_0x1448b9,_0x10a4('0x28'))),this[_0x10a4('0x3a')]();}[_0x10a4('0x3a')](){const _0x3441c1=this[_0x10a4('0x3')][_0x10a4('0x1e')][_0x10a4('0x37')](_0x10a4('0x21')),_0x3848c8=this[_0x10a4('0x3')]['plugins'][_0x10a4('0x37')](_0x10a4('0x18')),_0x14da5d=this[_0x10a4('0x3')][_0x10a4('0x1e')][_0x10a4('0x37')](_0x28588)[_0x10a4('0x2b')]();function _0x3b0667({showActiveMarker:_0x4f097e=!0x0,setDataAttribute:_0x167ca6=!0x0}={}){return(_0x748896,_0x1bf8b1,_0x252129)=>{const {type:_0x2c391e,id:_0x4a9230}=_0x3441c1[_0x10a4('0x39')](_0x1bf8b1['markerName']),_0x266599=_0x3441c1['getSuggestion'](_0x4a9230),_0x4b4590=_0x266599['data'];if('formatBlock'!=_0x266599['type']||!_0x4b4590||_0x10a4('0x29')!=_0x4b4590[_0x10a4('0x16')])return;if(_0x1bf8b1[_0x10a4('0x25')])return void _0x748896[_0x10a4('0x41')]();if(!_0x252129['consumable'][_0x10a4('0x20')](_0x1bf8b1[_0x10a4('0x3d')],_0x748896[_0x10a4('0x8')]))return;const _0x5bcba0=_0x1bf8b1[_0x10a4('0x3d')]['start'][_0x10a4('0x31')],_0x4c502a=_0x1bf8b1[_0x10a4('0x3d')][_0x10a4('0x4')][_0x10a4('0x2f')],_0x5c9889=_0x5bcba0[_0x10a4('0x40')][_0x10a4('0x40')],{column:_0x21422d}=_0x3848c8[_0x10a4('0x0')](_0x5bcba0),{column:_0x3259a3}=_0x3848c8[_0x10a4('0x0')](_0x4c502a);for(let _0x478efc=_0x21422d;_0x478efc<=_0x3259a3;_0x478efc++){const _0x12331a=_0x3848c8[_0x10a4('0x2d')](_0x5c9889,{'column':_0x478efc,'includeAllSlots':!0x1});for(const _0x166e70 of _0x12331a){const _0x176aa3=_0x166e70[_0x10a4('0x1b')],_0x24a0fd=_0x252129[_0x10a4('0x44')][_0x10a4('0xd')](_0x176aa3);_0x252129[_0x10a4('0x1c')]['addClass'](_0x10a4('0x3e')+_0x2c391e,_0x24a0fd),_0x167ca6&&_0x252129[_0x10a4('0x1c')]['setAttribute'](_0x10a4('0x38'),_0x4a9230,_0x24a0fd),_0x252129[_0x10a4('0x44')][_0x10a4('0x26')](_0x24a0fd,_0x1bf8b1[_0x10a4('0xf')]),_0x4f097e&&(_0x3441c1[_0x10a4('0x2c')][_0x10a4('0x33')](_0x1bf8b1[_0x10a4('0xf')])?_0x252129[_0x10a4('0x1c')][_0x10a4('0x3f')]('ck-suggestion-marker--active',_0x24a0fd):_0x252129['writer'][_0x10a4('0x14')](_0x10a4('0x6'),_0x24a0fd));}}};}_0x3441c1[_0x10a4('0x1d')]['registerCustomCallback'](_0x10a4('0x27'),_0x10a4('0x11'),_0x10a4('0x9'),_0x14da5d),_0x3441c1[_0x10a4('0x1d')][_0x10a4('0x10')]('formatBlock',_0x10a4('0x29'),_0x10a4('0x9'),_0x14da5d),this[_0x10a4('0x3')][_0x10a4('0x1')]['downcastDispatcher']['on'](_0x10a4('0x2'),_0x3b0667(),{'priority':_0x10a4('0xc')}),this['editor'][_0x10a4('0x34')][_0x10a4('0x36')]['on'](_0x10a4('0x2'),(_0x1ea1eb,_0xfa2be0,_0x59cf42)=>{_0x59cf42[_0x10a4('0x2a')][_0x10a4('0x3b')]&&_0x3b0667({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1ea1eb,_0xfa2be0,_0x59cf42);},{'priority':_0x10a4('0xc')}),this[_0x10a4('0x3')]['editing'][_0x10a4('0x36')]['on']('removeMarker:suggestion',(_0x4304fa,_0x34fbd4,_0x5eb7d4)=>{const {type:_0x390960,id:_0x47b777}=_0x3441c1['_splitMarkerName'](_0x34fbd4[_0x10a4('0xf')]),_0x4d0085=_0x3441c1[_0x10a4('0xe')](_0x47b777),_0x994ac5=_0x4d0085['data'];if(_0x10a4('0x27')!=_0x4d0085[_0x10a4('0x13')]||!_0x994ac5||_0x10a4('0x29')!=_0x994ac5[_0x10a4('0x16')])return;const _0x14373c=_0x5eb7d4[_0x10a4('0x44')][_0x10a4('0x42')](_0x34fbd4['markerName']);if(_0x14373c)for(const _0x323191 of _0x14373c)_0x5eb7d4[_0x10a4('0x1c')][_0x10a4('0x14')]('ck-suggestion-marker-'+_0x390960,_0x323191),_0x5eb7d4[_0x10a4('0x1c')][_0x10a4('0x14')]('ck-suggestion-marker--active',_0x323191),_0x5eb7d4[_0x10a4('0x1c')]['removeAttribute'](_0x10a4('0x38'),_0x323191),_0x5eb7d4[_0x10a4('0x44')]['unbindElementFromMarkerName'](_0x323191,_0x34fbd4['markerName']);},{'priority':_0x10a4('0xc')}),this[_0x10a4('0x30')]();}[_0x10a4('0x30')](){const _0x2a9abf=this[_0x10a4('0x3')],_0x3b29b7=_0x2a9abf[_0x10a4('0x15')];function _0x1773ac(_0x17b0e1){return{'type':_0x10a4('0x2e'),'content':_0x414dbf(_0x3b29b7,_0x10a4('0x5'),_0x17b0e1)};}_0x2a9abf[_0x10a4('0x1e')][_0x10a4('0x37')](_0x10a4('0x21'))['_descriptionFactory'][_0x10a4('0x35')](_0x421349=>{if('formatBlock'!=_0x421349[_0x10a4('0x13')])return;const {data:_0x33a8fd}=_0x421349;if(_0x33a8fd){if('setTableRowHeader'==_0x33a8fd['commandName']){const _0x512e7c=_0x33a8fd['commandParams'][0x0][_0x10a4('0x23')];return _0x1773ac(_0x414dbf(_0x3b29b7,_0x512e7c?_0x10a4('0x32'):_0x10a4('0x24')));}if(_0x10a4('0x29')==_0x33a8fd[_0x10a4('0x16')]){const _0x48b57b=_0x33a8fd[_0x10a4('0x17')][0x0][_0x10a4('0x23')];return _0x1773ac(_0x414dbf(_0x3b29b7,_0x48b57b?_0x10a4('0x28'):_0x10a4('0x12')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5697=['*Split\x20cell:*\x20vertically','plugins','deletion','_areMergableCells','registerDescriptionCallback','getFirstPosition','splitTableCellVertically','mergeTableCellUp','document','enableCommand','mergeTableCells','type','_areSelectedCellsMergable','direction','mergeTableCellRight','change','mergeTableCellDown','*Merge\x20cells*','splitTableCellHorizontally','table','requires','TableUtils','cell','tableCell','rootName','from','_descriptionFactory','getSuggestions','length','_acceptFormatSuggestionCallbackFactory','format','low','mergeTableCellLeft','editor','selection','commands','author','map','forceDefaultExecution','refresh','trackChanges','add','set:isEnabled','find','accept','createRangeOn','value','formatInline','getCellLocation','execute','_tablePostFixingSubtypes','commandName','getSelectionAffectedTableCells','setSelection','markMultiRangeBlockFormat','root','return','has','stop','_suggestionFactory','size','getAncestors','insertion','registerCustomCallback','*Split\x20cell:*\x20horizontally','get','element','getRanges','locale','formatBlock','markBlockFormat','TrackChangesEditing','afterInit','model','findAncestor','createTableWalker','push'];(function(_0x1513b6,_0x56976d){const _0x67475=function(_0x387629){while(--_0x387629){_0x1513b6['push'](_0x1513b6['shift']());}};_0x67475(++_0x56976d);}(_0x5697,0x69));const _0x6747=function(_0x1513b6,_0x56976d){_0x1513b6=_0x1513b6-0x0;let _0x67475=_0x5697[_0x1513b6];return _0x67475;};import{Plugin as _0x23d2df}from'ckeditor5/src/core.js';import _0x305804 from'./table.js';import{LiveRange as _0x1a103b}from'ckeditor5/src/engine.js';import{getTranslation as _0x5b4403}from'../utils/common-translations.js';export default class yt extends _0x23d2df{static get[_0x6747('0x45')](){return[_0x305804];}[_0x6747('0x2c')](){const _0x2fed8a=this[_0x6747('0x5')],_0x3fe642=_0x2fed8a[_0x6747('0x2d')][_0x6747('0x39')][_0x6747('0x6')],_0x1f4dce=_0x2fed8a[_0x6747('0x28')];if(!_0x2fed8a[_0x6747('0x32')]['has']('TableEditing'))return;const _0x18b4fd=_0x2fed8a[_0x6747('0x32')][_0x6747('0x25')](_0x6747('0x2b')),_0x5534c6=_0x2fed8a[_0x6747('0x32')][_0x6747('0x25')](_0x6747('0x46')),_0x4c98c5=_0x2fed8a['plugins'][_0x6747('0x25')](_0x305804);_0x4c98c5[_0x6747('0x16')][_0x6747('0x30')]('mergeTableCells'),_0x18b4fd['enableCommand'](_0x6747('0x3b'),()=>{const _0x228ef9=_0x5534c6[_0x6747('0x18')](_0x2fed8a['model'][_0x6747('0x39')]['selection']);_0x2fed8a[_0x6747('0x2d')]['change'](()=>{_0x18b4fd[_0x6747('0x1a')](_0x228ef9,{'commandName':_0x6747('0x3b'),'commandParams':[]},[],_0x6747('0x3b'));});}),_0x2fed8a[_0x6747('0x7')][_0x6747('0x25')](_0x6747('0x3b'))['on'](_0x6747('0x15'),(_0x4117c2,_0x129fbe)=>{_0x2fed8a['commands'][_0x6747('0x25')](_0x6747('0xc'))[_0x6747('0x12')]&&(_0x129fbe[_0x6747('0x0')]>0x0&&_0x129fbe[_0x129fbe[_0x6747('0x0')]-0x1]&&_0x129fbe[_0x129fbe[_0x6747('0x0')]-0x1][_0x6747('0xa')]||_0x18b4fd['_isForcedDefaultExecutionBlock']||this[_0x6747('0x3d')]()||_0x4117c2[_0x6747('0x1e')]());},{'priority':'highest'});for(const _0x1c8929 of['mergeTableCellUp','mergeTableCellRight',_0x6747('0x41'),_0x6747('0x4')]){const _0x5aae6c=_0x2fed8a[_0x6747('0x7')][_0x6747('0x25')](_0x1c8929);_0x18b4fd['enableCommand'](_0x1c8929,()=>{const _0x4d2d75=_0x2fed8a['model'][_0x6747('0x39')]['selection'][_0x6747('0x36')]()['getAncestors']()[_0x6747('0xf')](_0x1c6eea=>_0x1c6eea['is'](_0x6747('0x26'),_0x6747('0x48'))),_0x2f1cfc=_0x5aae6c[_0x6747('0x12')];_0x2fed8a[_0x6747('0x2d')][_0x6747('0x40')](()=>{_0x18b4fd['markMultiRangeBlockFormat']([_0x4d2d75,_0x2f1cfc],{'commandName':_0x6747('0x3b'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x32b8c6 of[_0x6747('0x37'),_0x6747('0x43')]){const _0x41a1c3=_0x2fed8a[_0x6747('0x7')][_0x6747('0x25')](_0x32b8c6);_0x18b4fd[_0x6747('0x3a')](_0x32b8c6,()=>{const _0x5652e4=_0x5534c6[_0x6747('0x18')](_0x2fed8a[_0x6747('0x2d')]['document'][_0x6747('0x6')])[0x0],_0x438ce8=_0x5652e4[_0x6747('0x2e')](_0x6747('0x44')),{column:_0x356632,row:_0x3321df}=_0x5534c6[_0x6747('0x14')](_0x5652e4);let _0x8dbfd4=[];if('horizontally'==_0x41a1c3[_0x6747('0x3e')]){const _0xa1d4dc=_0x5534c6[_0x6747('0x2f')](_0x438ce8,{'startRow':_0x3321df,'endRow':_0x3321df,'includeAllSlots':!0x0});_0x8dbfd4=Array[_0x6747('0x4a')](_0xa1d4dc)[_0x6747('0x9')](_0x139f95=>_0x139f95[_0x6747('0x47')]);}else{const _0x483f43=_0x5534c6[_0x6747('0x2f')](_0x438ce8,{'column':_0x356632,'includeAllSlots':!0x0});_0x8dbfd4=Array[_0x6747('0x4a')](_0x483f43)[_0x6747('0x9')](_0x4e6524=>_0x4e6524['cell']);}_0x2fed8a['model'][_0x6747('0x40')](_0xaa42be=>{_0x18b4fd[_0x6747('0x2a')](_0xaa42be[_0x6747('0x11')](_0x5652e4),{'commandName':_0x32b8c6,'commandParams':[]},_0x8dbfd4,_0x32b8c6);});});}_0x18b4fd[_0x6747('0x4b')][_0x6747('0x35')](_0x126226=>{if(_0x6747('0x29')!=_0x126226[_0x6747('0x3c')]&&'formatInline'!=_0x126226[_0x6747('0x3c')])return;const {data:_0x4b15fa}=_0x126226;return _0x4b15fa&&'mergeTableCells'==_0x4b15fa[_0x6747('0x17')]?{'type':_0x6747('0x2'),'content':_0x5b4403(_0x1f4dce,_0x6747('0x42'))}:void 0x0;}),_0x18b4fd[_0x6747('0x4b')][_0x6747('0x35')](_0x641dc5=>{if(_0x6747('0x29')!=_0x641dc5['type']&&_0x6747('0x13')!=_0x641dc5[_0x6747('0x3c')])return;const {data:_0x419981}=_0x641dc5;return _0x419981?_0x6747('0x37')==_0x419981['commandName']?{'type':_0x6747('0x2'),'content':_0x5b4403(_0x1f4dce,_0x6747('0x31'))}:_0x6747('0x43')==_0x419981[_0x6747('0x17')]?{'type':'format','content':_0x5b4403(_0x1f4dce,_0x6747('0x24'))}:void 0x0:void 0x0;});const _0x266f6c=_0x4c98c5[_0x6747('0x1')]();for(const _0x4a9828 of[_0x6747('0x38'),_0x6747('0x3f'),'mergeTableCellDown',_0x6747('0x4')])_0x18b4fd['_suggestionFactory'][_0x6747('0x23')](_0x6747('0x29'),_0x4a9828,_0x6747('0x10'),_0x266f6c);for(const _0x2ff027 of['splitTableCellVertically',_0x6747('0x43')])_0x18b4fd['_suggestionFactory']['registerCustomCallback'](_0x6747('0x29'),_0x2ff027,_0x6747('0x10'),_0x266f6c);_0x18b4fd[_0x6747('0x1f')][_0x6747('0x23')](_0x6747('0x29'),_0x6747('0x3b'),_0x6747('0x10'),_0x332ad6=>{_0x2fed8a['model'][_0x6747('0x40')](_0x3dd43c=>{const _0x41f56d=Array[_0x6747('0x4a')](_0x3fe642[_0x6747('0x27')]())['map'](_0x5348fb=>_0x1a103b['fromRange'](_0x5348fb));_0x3dd43c[_0x6747('0x19')](_0x332ad6),_0x2fed8a['commands'][_0x6747('0x25')]('mergeTableCells')[_0x6747('0xb')](),_0x2fed8a[_0x6747('0x15')](_0x6747('0x3b'),{'forceDefaultExecution':!0x0});const _0x5247a1=_0x41f56d['filter'](_0xfb997e=>'$graveyard'!=_0xfb997e[_0x6747('0x1b')][_0x6747('0x49')]);_0x5247a1[_0x6747('0x0')]>0x0&&_0x3dd43c[_0x6747('0x19')](_0x5247a1);for(const _0x120a63 of _0x41f56d)_0x120a63['detach']();});});for(const _0x45c853 of[_0x6747('0x38'),'mergeTableCellDown','mergeTableCellLeft',_0x6747('0x3f')]){const _0x525163=_0x2fed8a[_0x6747('0x7')][_0x6747('0x25')](_0x45c853);_0x525163['on'](_0x6747('0xe'),(_0x55acd0,_0x4a2e1c,_0x1051d1)=>{if(_0x1051d1){const _0x383b0a=_0x2fed8a['model'][_0x6747('0x39')][_0x6747('0x6')][_0x6747('0x36')]()[_0x6747('0x21')]()[_0x6747('0xf')](_0x1d4aaf=>_0x1d4aaf['is'](_0x6747('0x26'),_0x6747('0x48')));this[_0x6747('0x34')](_0x525163['value'],_0x383b0a)||(_0x55acd0[_0x6747('0x1c')]=!0x1,_0x55acd0['stop']());}},{'priority':_0x6747('0x3')});}}[_0x6747('0x3d')](){const _0x1a1e95=this['editor']['commands'][_0x6747('0x25')](_0x6747('0x3b')),_0xad6ec7=this[_0x6747('0x5')][_0x6747('0x32')][_0x6747('0x25')](_0x6747('0x46'));if(!_0x1a1e95['isEnabled'])return!0x1;const _0x33c9f0=_0xad6ec7[_0x6747('0x18')](this[_0x6747('0x5')][_0x6747('0x2d')][_0x6747('0x39')]['selection']);for(const _0x217ab7 of _0x33c9f0)for(const _0x159879 of _0x33c9f0)if(_0x217ab7!=_0x159879&&!this[_0x6747('0x34')](_0x217ab7,_0x159879))return!0x1;return!0x0;}['_areMergableCells'](_0x27c652,_0x288304){const _0x4e95f6=this[_0x6747('0x5')][_0x6747('0x32')][_0x6747('0x25')](_0x6747('0x2b')),_0x166284=this[_0x6747('0x5')][_0x6747('0x2d')][_0x6747('0x11')](_0x27c652),_0x439afe=this[_0x6747('0x5')][_0x6747('0x2d')][_0x6747('0x11')](_0x288304),_0x588e57=new Set(),_0x496a5c=new Set();for(const _0x40e179 of _0x4e95f6[_0x6747('0x4c')]())if((_0x6747('0x22')==_0x40e179[_0x6747('0x3c')]||_0x6747('0x33')==_0x40e179[_0x6747('0x3c')]||_0x6747('0x3b')==_0x40e179['subType'])&&_0x40e179['isInContent'])for(const _0x3e5c08 of _0x40e179[_0x6747('0x27')]())_0x3e5c08['containsRange'](_0x166284,!0x0)&&_0x588e57[_0x6747('0xd')](_0x40e179[_0x6747('0x3c')]+':'+_0x40e179[_0x6747('0x8')]['id']),_0x3e5c08['containsRange'](_0x439afe,!0x0)&&_0x496a5c[_0x6747('0xd')](_0x40e179[_0x6747('0x3c')]+':'+_0x40e179[_0x6747('0x8')]['id']);if(_0x588e57[_0x6747('0x20')]!=_0x496a5c['size'])return!0x1;for(const _0x4cefe1 of _0x588e57)if(!_0x496a5c[_0x6747('0x1d')](_0x4cefe1))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xed96=['enableCommand','_descriptionFactory','editor','afterInit','registerElementLabel','insertTableOfContents','plugins','TrackChangesEditing','get','commands'];(function(_0x28832a,_0xed9685){const _0x406abc=function(_0x2c266b){while(--_0x2c266b){_0x28832a['push'](_0x28832a['shift']());}};_0x406abc(++_0xed9685);}(_0xed96,0x10e));const _0x406a=function(_0x28832a,_0xed9685){_0x28832a=_0x28832a-0x0;let _0x406abc=_0xed96[_0x28832a];return _0x406abc;};import{Plugin as _0x5e05f5}from'ckeditor5/src/core.js';import{getTranslation as _0x49aa17}from'../utils/common-translations.js';export default class vt extends _0x5e05f5{[_0x406a('0x3')](){const _0x3cff1e=this[_0x406a('0x2')];if(!_0x3cff1e[_0x406a('0x9')][_0x406a('0x8')](_0x406a('0x5')))return;_0x3cff1e[_0x406a('0x6')][_0x406a('0x8')](_0x406a('0x7'))[_0x406a('0x0')](_0x406a('0x5'));const _0x3b6c62=_0x3cff1e['plugins'][_0x406a('0x8')]('TrackChangesEditing'),_0x538442=_0x3cff1e['locale'];_0x3b6c62[_0x406a('0x1')][_0x406a('0x4')]('tableOfContents',_0x502cdb=>_0x49aa17(_0x538442,'ELEMENT_TABLE_OF_CONTENTS',_0x502cdb));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f9d=['model','get','tableCellBorderWidth','getAttribute','getSuggestions','tableCellWidth','tableCellVerticalAlignment','subType','document','format','tableCellHeight','editor','_suggestionFactory','change','tableBackgroundColor','discard','enableCommand','join','*Format:*\x20change\x20table\x20cell\x20properties','batch','tableAlignment','tableHeight','TablePropertiesEditing','getSelectionAffectedTableCells','locale','commandParams','_getSuggestion','table','tableCellHorizontalAlignment','_handlePropertyChange','tableCellProperties','TrackChangesEditing','tableWidth','removeAttribute','registerCustomCallback','accept','registerDescriptionCallback','TrackChangesTableProperties','formatBlock','tableCellBorderStyle','tableProperties','handleSuggestionDescription','getFirstPosition','selection','getContainedElement','tableBorderColor','plugins','setAttribute','has','handleDiscardAction','tableCellPadding','getSuggestionCallback'];(function(_0x2bb169,_0x1f9d1b){const _0x532efe=function(_0x20011a){while(--_0x20011a){_0x2bb169['push'](_0x2bb169['shift']());}};_0x532efe(++_0x1f9d1b);}(_0x1f9d,0x11b));const _0x532e=function(_0x2bb169,_0x1f9d1b){_0x2bb169=_0x2bb169-0x0;let _0x532efe=_0x1f9d[_0x2bb169];return _0x532efe;};import{Plugin as _0x439c17}from'ckeditor5/src/core.js';import{getTranslation as _0x30d3bd}from'../utils/common-translations.js';export default class Nt extends _0x439c17{constructor(_0x2a83d8){super(_0x2a83d8),this[_0x532e('0x11')]=[_0x532e('0x16'),'tableBorderStyle','tableBorderWidth',_0x532e('0x31'),_0x532e('0x9'),_0x532e('0x32'),_0x532e('0x2b')],this[_0x532e('0x7')]=['tableCellBorderColor',_0x532e('0x10'),_0x532e('0x1f'),_0x532e('0x1b'),_0x532e('0x22'),_0x532e('0x27'),'tableCellBackgroundColor',_0x532e('0x5'),_0x532e('0x23')];}static get['pluginName'](){return _0x532e('0xe');}['afterInit'](){const _0x57cfbf=this[_0x532e('0x28')][_0x532e('0x17')][_0x532e('0x1e')](_0x532e('0x8'));if(this[_0x532e('0x28')][_0x532e('0x17')][_0x532e('0x19')](_0x532e('0x33'))){for(const _0x5e2a22 of this[_0x532e('0x11')])_0x57cfbf[_0x532e('0x2d')](_0x5e2a22,(_0x1bf335,_0x5b1e9b)=>{const _0x44783e=this[_0x532e('0x28')][_0x532e('0x1d')][_0x532e('0x25')][_0x532e('0x14')][_0x532e('0x13')]()['findAncestor'](_0x532e('0x4'));this[_0x532e('0x6')](_0x5e2a22,[_0x44783e],this[_0x532e('0x11')],_0x532e('0x11'),_0x1bf335,_0x5b1e9b);});_0x57cfbf['_suggestionFactory'][_0x532e('0xb')]('formatBlock',_0x532e('0x11'),_0x532e('0xc'),_0x57cfbf['_suggestionFactory'][_0x532e('0x1c')](_0x532e('0xf'),null,'discard')),_0x57cfbf[_0x532e('0x29')][_0x532e('0xb')](_0x532e('0xf'),_0x532e('0x11'),_0x532e('0x2c'),(_0x54fe04,_0x3b012a)=>this[_0x532e('0x1a')](this[_0x532e('0x11')],_0x54fe04,_0x3b012a)),_0x57cfbf['_suggestionFactory'][_0x532e('0xb')](_0x532e('0xf'),_0x532e('0x11'),_0x532e('0x2e'),()=>!0x1);}if(this[_0x532e('0x28')][_0x532e('0x17')][_0x532e('0x19')]('TableCellPropertiesEditing')){for(const _0x16cd33 of this[_0x532e('0x7')])_0x57cfbf[_0x532e('0x2d')](_0x16cd33,(_0x253a22,_0x1cc3c9)=>{const _0x2cee56=this[_0x532e('0x28')][_0x532e('0x17')][_0x532e('0x1e')]('TableUtils')[_0x532e('0x0')](this['editor'][_0x532e('0x1d')]['document'][_0x532e('0x14')]);this[_0x532e('0x6')](_0x16cd33,_0x2cee56,this[_0x532e('0x7')],'tableCellProperties',_0x253a22,_0x1cc3c9);});_0x57cfbf[_0x532e('0x29')][_0x532e('0xb')](_0x532e('0xf'),_0x532e('0x7'),_0x532e('0xc'),_0x57cfbf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57cfbf['_suggestionFactory'][_0x532e('0xb')](_0x532e('0xf'),_0x532e('0x7'),_0x532e('0x2c'),(_0x31983b,_0x58a8af)=>this[_0x532e('0x1a')](this[_0x532e('0x7')],_0x31983b,_0x58a8af)),_0x57cfbf[_0x532e('0x29')][_0x532e('0xb')](_0x532e('0xf'),_0x532e('0x7'),'join',()=>!0x1);}_0x57cfbf['_descriptionFactory'][_0x532e('0xd')](_0x3a1cd7=>this['handleSuggestionDescription'](_0x3a1cd7));}['_handlePropertyChange'](_0x41f8a6,_0x59db2e,_0x18e297,_0x332a1e,_0x3179a8,_0x3e3bfc){const _0x2ed9d7=this[_0x532e('0x28')][_0x532e('0x17')]['get'](_0x532e('0x8'));this[_0x532e('0x28')][_0x532e('0x1d')]['enqueueChange'](_0x3e3bfc[_0x532e('0x30')],()=>{for(const _0x1e82c3 of _0x59db2e){if(this[_0x532e('0x3')](_0x1e82c3,_0x332a1e))_0x3179a8(_0x3e3bfc);else{const _0x146281={};for(const _0x33b3dc of _0x18e297){const _0x3bcf83=_0x1e82c3[_0x532e('0x20')](_0x33b3dc);void 0x0!==_0x3bcf83&&(_0x146281[_0x33b3dc]=_0x3bcf83);}_0x3179a8(_0x3e3bfc),_0x2ed9d7['markBlockFormat'](_0x1e82c3,{'commandParams':[_0x146281]},[],_0x332a1e);}}});}[_0x532e('0x1a')](_0x3b64ae,_0x2b9644,_0x27cf14){const _0x3641b1=_0x2b9644[0x0]['start']['nodeAfter'],_0x3a14b6=_0x27cf14[_0x532e('0x2')][0x0];this[_0x532e('0x28')][_0x532e('0x1d')][_0x532e('0x2a')](_0x29c32a=>{for(const _0x78c6ef of _0x3b64ae)void 0x0!==_0x3a14b6[_0x78c6ef]?_0x29c32a[_0x532e('0x18')](_0x78c6ef,_0x3a14b6[_0x78c6ef],_0x3641b1):_0x29c32a[_0x532e('0xa')](_0x78c6ef,_0x3641b1);});}[_0x532e('0x12')](_0x366ab4){if(_0x366ab4['data'])switch(_0x366ab4[_0x532e('0x24')]){case _0x532e('0x11'):return{'type':'format','content':_0x30d3bd(this[_0x532e('0x28')][_0x532e('0x1')],'*Format:*\x20change\x20table\x20properties')};case _0x532e('0x7'):return{'type':_0x532e('0x26'),'content':_0x30d3bd(this['editor'][_0x532e('0x1')],_0x532e('0x2f'))};}}['_getSuggestion'](_0x4c84d5,_0x1a935f){const _0x388bc8=this['editor']['plugins'][_0x532e('0x1e')](_0x532e('0x8'));for(const _0x12409c of _0x388bc8[_0x532e('0x21')]({'skipNotAttached':!0x0})){const _0x4d30fc=_0x12409c[_0x532e('0x15')]();if(_0x12409c['subType']===_0x1a935f&&_0x4d30fc===_0x4c84d5)return _0x12409c;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ba9=['insertTemplate','has','plugins','get','TrackChangesEditing','Template','enableCommand'];(function(_0x399b21,_0x3ba94c){const _0x375aeb=function(_0x3a0bc4){while(--_0x3a0bc4){_0x399b21['push'](_0x399b21['shift']());}};_0x375aeb(++_0x3ba94c);}(_0x3ba9,0x156));const _0x375a=function(_0x399b21,_0x3ba94c){_0x399b21=_0x399b21-0x0;let _0x375aeb=_0x3ba9[_0x399b21];return _0x375aeb;};import{Plugin as _0x35f3f3}from'ckeditor5/src/core.js';export default class It extends _0x35f3f3{['afterInit'](){const _0x30de56=this['editor'];_0x30de56['plugins'][_0x375a('0x2')](_0x375a('0x6'))&&_0x30de56[_0x375a('0x3')][_0x375a('0x4')](_0x375a('0x5'))[_0x375a('0x0')](_0x375a('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53af=['newRange','model','differ','isEqual','locale','nodeBefore','from','end','TrackChangesEditing','getNearestSelectionRange','isCollapsed','plugins','ELEMENT_TITLE','start','get','Title','removeMarker','title-content','element','forward','registerPostFixer','document','schema','suggestion','has','registerElementLabel','afterInit'];(function(_0x3bf34a,_0x53affe){const _0xdde505=function(_0x3d57a6){while(--_0x3d57a6){_0x3bf34a['push'](_0x3bf34a['shift']());}};_0xdde505(++_0x53affe);}(_0x53af,0x160));const _0xdde5=function(_0x3bf34a,_0x53affe){_0x3bf34a=_0x3bf34a-0x0;let _0xdde505=_0x53af[_0x3bf34a];return _0xdde505;};import{Plugin as _0x3c2e47}from'ckeditor5/src/core.js';import{getTranslation as _0x4b6902}from'../utils/common-translations.js';export default class Ct extends _0x3c2e47{[_0xdde5('0x19')](){const _0x1d1918=this['editor'];if(!_0x1d1918['plugins'][_0xdde5('0x17')](_0xdde5('0xe')))return;const _0x30d8f4=_0x1d1918[_0xdde5('0xa')][_0xdde5('0xd')](_0xdde5('0x7'));_0x30d8f4['_descriptionFactory'][_0xdde5('0x18')](_0xdde5('0x10'),()=>_0x4b6902(_0x1d1918[_0xdde5('0x3')],_0xdde5('0xb'))),_0x1d1918[_0xdde5('0x0')][_0xdde5('0x14')][_0xdde5('0x13')](_0x257c1d=>{let _0x6db92b=!0x1;const _0xddf6e=Array[_0xdde5('0x5')](_0x1d1918[_0xdde5('0x0')][_0xdde5('0x14')][_0xdde5('0x1')]['getChangedMarkers']());for(const {name:_0x5df7ef,data:_0x3548ca}of _0xddf6e){const {group:_0x2b2fcb}=_0x30d8f4['_splitMarkerName'](_0x5df7ef);if(_0xdde5('0x16')!==_0x2b2fcb||!_0x3548ca[_0xdde5('0x1a')])continue;const _0x266f5c=_0x3548ca['newRange'],_0x2f0962=_0x266f5c['end'][_0xdde5('0x4')];if(!_0x2f0962||!_0x2f0962['is'](_0xdde5('0x11'),'title-content'))continue;if(!_0x266f5c[_0xdde5('0xc')]['isTouching'](_0x266f5c[_0xdde5('0x6')]))continue;const _0x378324=_0x1d1918[_0xdde5('0x0')][_0xdde5('0x15')][_0xdde5('0x8')](_0x266f5c[_0xdde5('0x6')],_0xdde5('0x12'));if(_0x378324&&_0x378324[_0xdde5('0x9')]){const _0x1bf0d8=_0x257c1d['createRange'](_0x266f5c['start'],_0x378324['start']);_0x1bf0d8[_0xdde5('0x2')](_0x266f5c)||(_0x257c1d['updateMarker'](_0x5df7ef,{'range':_0x1bf0d8}),_0x6db92b=!0x0);}_0x6db92b||(_0x257c1d[_0xdde5('0xf')](_0x5df7ef),_0x6db92b=!0x0);}return _0x6db92b;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x234f=['editor','get','undo','UndoEditing','enableCommand','plugins','TrackChangesEditing'];(function(_0x3a78e2,_0x234f34){const _0x4e2c94=function(_0x496972){while(--_0x496972){_0x3a78e2['push'](_0x3a78e2['shift']());}};_0x4e2c94(++_0x234f34);}(_0x234f,0x159));const _0x4e2c=function(_0x3a78e2,_0x234f34){_0x3a78e2=_0x3a78e2-0x0;let _0x4e2c94=_0x234f[_0x3a78e2];return _0x4e2c94;};import{Plugin as _0x39d0cc}from'ckeditor5/src/core.js';export default class _t extends _0x39d0cc{['afterInit'](){const _0x1b2f65=this[_0x4e2c('0x5')],_0x3d5bf1=_0x1b2f65['plugins'][_0x4e2c('0x6')](_0x4e2c('0x4'));_0x1b2f65[_0x4e2c('0x3')]['has'](_0x4e2c('0x1'))&&(_0x3d5bf1[_0x4e2c('0x2')](_0x4e2c('0x0')),_0x3d5bf1['enableCommand']('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x541a=['isBlock','toViewElement','plugins','activeMarkers','name','markerName','ck-suggestion-marker--active','schema','previousPosition','listIndent','getItems','push','nextSibling','element','createRangeOn','model','getWalker','createUIElement','insert','parent','bindElementToMarker','listItem','isLimit','test','markerRange','addClass','writer','elementEnd','type','mapper','span','get','hasAttribute','isAtEnd'];(function(_0x4771b7,_0x541a66){const _0x2eab9f=function(_0x4d821e){while(--_0x4d821e){_0x4771b7['push'](_0x4771b7['shift']());}};_0x2eab9f(++_0x541a66);}(_0x541a,0x190));const _0x2eab=function(_0x4771b7,_0x541a66){_0x4771b7=_0x4771b7-0x0;let _0x2eab9f=_0x541a[_0x4771b7];return _0x2eab9f;};export function getRangesWithAttribute(_0x35eb2f,_0x113057,_0x22f705){const _0x2ea91a=[];for(const _0x499b9d of _0x113057[_0x2eab('0x12')]())_0x499b9d[_0x2eab('0x6')](_0x35eb2f)&&_0x2ea91a['push'](_0x22f705[_0x2eab('0x16')](_0x499b9d));return _0x2ea91a;}export function getElementsAffectedByListItemRename(_0x1a47e1){const _0x3c6f50=[];if(_0x1a47e1['is']('element',_0x2eab('0x1d'))){let _0x408661=_0x1a47e1[_0x2eab('0x14')];for(;_0x408661&&_0x408661['is'](_0x2eab('0x15'),_0x2eab('0x1d'))&&_0x408661['getAttribute'](_0x2eab('0x11'))>0x0;)_0x3c6f50[_0x2eab('0x13')](_0x408661),_0x408661=_0x408661[_0x2eab('0x14')];}return _0x3c6f50;}export function downcastSplitMergeMarker(_0x2abf25,_0xc2e84c,{showActiveMarker:_0x5181e5=!0x0}={}){const _0x427f85=_0x2abf25[_0x2eab('0xa')][_0x2eab('0x5')]('TrackChangesEditing');return(_0x4db500,_0x18785c,_0x4f7021)=>{if(!_0x4f7021['consumable'][_0x2eab('0x1f')](_0x18785c[_0x2eab('0x20')],_0x4db500[_0x2eab('0xc')]))return;const _0x3cd590=_0x18785c[_0x2eab('0x20')][_0x2eab('0x18')](),_0x394dcd=_0x18785c['markerRange']['start'],_0x18e213=_0x2abf25[_0x2eab('0x17')][_0x2eab('0xf')];let _0x382870=null,_0x515487=null,_0x345dd3=!0x1,_0x3064e4=!0x1;for(const _0xf0f11f of _0x3cd590){const _0x38c5b7=_0xf0f11f['item'];_0x345dd3=_0x345dd3||_0x18e213['isContent'](_0x38c5b7);const _0x364b04=_0x4f7021[_0x2eab('0x3')][_0x2eab('0x9')](_0x38c5b7);if(_0x364b04&&_0x364b04['getCustomProperty']('addHighlight'))return;_0x2eab('0x1')==_0xf0f11f[_0x2eab('0x2')]&&(_0x18e213[_0x2eab('0x8')](_0x38c5b7)&&!_0x18e213[_0x2eab('0x1e')](_0x38c5b7)&&(_0x38c5b7[_0x2eab('0x14')]||_0x394dcd[_0x2eab('0x7')]?_0x382870&&_0x382870[_0x2eab('0x1b')]==_0x38c5b7||(_0x382870=_0x38c5b7,_0x1a395e(_0xf0f11f[_0x2eab('0x10')]),_0x3064e4=!0x0):_0x515487=_0x515487||_0xf0f11f[_0x2eab('0x10')]));}function _0x1a395e(_0x2bcc55){const _0x609222=_0x4f7021[_0x2eab('0x0')][_0x2eab('0x19')](_0x2eab('0x4'),{'class':'ck-suggestion-marker-'+_0xc2e84c}),_0x30cf09=_0x4f7021[_0x2eab('0x3')]['toViewPosition'](_0x2bcc55);_0x5181e5&&_0x427f85[_0x2eab('0xb')]['includes'](_0x18785c['markerName'])&&_0x4f7021[_0x2eab('0x0')][_0x2eab('0x21')](_0x2eab('0xe'),_0x609222),_0x4f7021[_0x2eab('0x0')][_0x2eab('0x1a')](_0x30cf09,_0x609222),_0x4f7021[_0x2eab('0x3')][_0x2eab('0x1c')](_0x609222,_0x18785c[_0x2eab('0xd')]);}_0x345dd3||_0x3064e4||!_0x515487||_0x1a395e(_0x515487);};}
|