@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240131.0 → 0.0.0-nightly-20240202.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/build/translations/ro.js +1 -1
- package/lang/translations/ro.po +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/casechange.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/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/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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
|
|
23
|
+
const _0x14fc=['enableCommand','plugins','has','requires','TrackChangesEditing','editor','get','afterInit','toggleTableCaption'];(function(_0x1760da,_0x14fc1d){const _0x580918=function(_0x446907){while(--_0x446907){_0x1760da['push'](_0x1760da['shift']());}};_0x580918(++_0x14fc1d);}(_0x14fc,0xc6));const _0x5809=function(_0x1760da,_0x14fc1d){_0x1760da=_0x1760da-0x0;let _0x580918=_0x14fc[_0x1760da];return _0x580918;};import{Plugin as _0x2fbe3a}from'ckeditor5/src/core.js';import _0x4eec6c from'./table.js';export default class Nt extends _0x2fbe3a{static get[_0x5809('0x3')](){return[_0x4eec6c];}[_0x5809('0x7')](){const _0x51f8eb=this[_0x5809('0x5')];if(!_0x51f8eb['plugins'][_0x5809('0x2')]('TableCaptionEditing'))return;_0x51f8eb[_0x5809('0x1')][_0x5809('0x6')](_0x5809('0x4'))[_0x5809('0x0')](_0x5809('0x8'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x58e1=['rowInsertionRanges','tablePasteRow','createTableWalker','start','return','afterInit','findAncestor','remove','model','getChild','batch','redo','tableCellBorderColor','$graveyard','insert','differ','fromEntries','getMarkers','includes','columnInsertionRanges','tableCellBorderStyle','_suggestionFactory','removeColumns','next','columnInsertionIndexes','unwrap','createElement','discard','column','deletion','options','getRange','reduce','entries','join','insertion','cells','tablePasteCell','tablePasteChainId','forceDefaultExecution','fill','newRange','isInContent','markerAttributes','every','end','createRangeOn','add','getRanges','isEmpty','createRange','tableCellHorizontalAlignment','getShiftedBy','root','endRow','commands','clipboardOutput','set','getSuggestion','tableCellVerticalAlignment','createPositionBefore','removeMarker','getChanges','registerDescriptionCallback','rowInsertionIndexes','getTableIfOnlyTableInContent','previousSibling','value','type','markerToHighlight','tableCellSuggestion','createRangeIn','insertRows','insertionRanges','insertColumns','removeMarkers','high','markers','_isForcedDefaultExecutionBlock','getSuggestionCallback','setAttribute','getContainedElement','markMultiRangeBlockFormat','getChangedMarkers','filter','formatBlock','nodeAfter','getRows','getColumns','tablePaste','editingDowncast','_getCoordsForCells','insertContent','registerPostFixer','keys','schema','name','TrackChangesEditing','markerName','cell','hasSuggestion','dataDowncast','selection','position','length','removeRows','startsWith','markMultiRangeInsertion','tableCellBorderWidth','getAllAdjacentSuggestions','wrap','get','change','tablePasteColumn','subType','ck-suggestion-marker-insertion','trackChanges','table','map','attributes','setAttributes','from','view','TableClipboard','low','previous','nextSibling','rootName','document','paragraph','Users','tableCellPadding','suggestion:formatBlock:tablePasteCell','content','element','rows','editing','author','getChildren','_replaceTableSlotCell','registerCustomCallback','editor','elementToElement','find','conversion','getColumnIndexes','*Replace\x20table\x20cells*','getSuggestions','tableCell','plugins','for','push','first','_splitMarkerName','stop','deletionRanges','isEqual','containsRange','move','some','oldRange','has','accept'];(function(_0x298184,_0x58e157){const _0x4ba91c=function(_0x3d220c){while(--_0x3d220c){_0x298184['push'](_0x298184['shift']());}};_0x4ba91c(++_0x58e157);}(_0x58e1,0x6e));const _0x4ba9=function(_0x298184,_0x58e157){_0x298184=_0x298184-0x0;let _0x4ba91c=_0x58e1[_0x298184];return _0x4ba91c;};import{getTranslation as _0x4f2f78}from'../utils/common-translations.js';import{Plugin as _0x15f2cf}from'ckeditor5/src/core.js';import{uid as _0x24c2df,priorities as _0x4894d5}from'ckeditor5/src/utils.js';import _0x3e7091 from'./table.js';const fe=[_0x4ba9('0xa1'),_0x4ba9('0x41'),_0x4ba9('0x49'),_0x4ba9('0x68'),_0x4ba9('0x70'),'tableCellBackgroundColor',_0x4ba9('0x15')],be=Object['fromEntries'](fe[_0x4ba9('0x8')](_0x2301dc=>[_0x2301dc,null]));export default class At extends _0x15f2cf{static get['requires'](){return[_0x3e7091];}[_0x4ba9('0x3a')](){const _0xaa1103=this[_0x4ba9('0x1f')];if(!_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x33')]('TableClipboard'))return;const _0x2370f0=_0xaa1103['plugins'][_0x4ba9('0x1')](_0x4ba9('0x96')),_0x14a392=_0xaa1103[_0x4ba9('0x27')]['get']('TableUtils'),_0x158ac9=_0xaa1103['plugins']['get'](_0x3e7091),_0x4a6f50=_0xaa1103['plugins']['get'](_0x4ba9('0xd'));_0x158ac9['_tablePostFixingSubtypes'][_0x4ba9('0x29')]('tablePasteRow',_0x4ba9('0x3')),_0xaa1103['model'][_0x4ba9('0x94')]['register']('tableCellSuggestion',{'allowIn':_0x4ba9('0x26'),'allowContentOf':_0x4ba9('0x26'),'isLimit':!0x0}),_0xaa1103['conversion'][_0x4ba9('0x20')]({'model':_0x4ba9('0x7b'),'view':'suggestion-td'});let _0x26f24c=null;_0xaa1103[_0x4ba9('0x3d')]['on'](_0x4ba9('0x91'),(_0x4da330,_0x517e35)=>{const [_0x57d6e1,_0x311c6d]=_0x517e35,_0x5073c6=_0x517e35[_0x517e35[_0x4ba9('0x9d')]-0x1];_0x5073c6&&_0x5073c6[_0x4ba9('0x5c')]||_0x2370f0[_0x4ba9('0x83')]||this[_0x4ba9('0x1f')][_0x4ba9('0x6c')][_0x4ba9('0x1')](_0x4ba9('0x6'))[_0x4ba9('0x78')]&&function(_0x400b74,_0x207114,_0x4b54ce,_0x994145,_0x104352){if(_0x207114&&!_0x207114['is']('documentSelection'))return!0x1;const _0x1879d6=_0x104352[_0x4ba9('0x76')](_0x400b74,_0x4b54ce);if(!_0x1879d6||!de(_0x1879d6,void 0x0,_0x994145))return!0x1;const _0x182b0f=_0x994145['getSelectionAffectedTableCells'](_0x4b54ce['document'][_0x4ba9('0x9b')]);if(!_0x182b0f[_0x4ba9('0x9d')])return!0x1;const _0x2e3c0a=_0x182b0f[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),_0x44f7fc=_0x994145['getRowIndexes'](_0x182b0f),_0x398a4d=_0x994145[_0x4ba9('0x23')](_0x182b0f),_0x4bae24={'startRow':_0x44f7fc[_0x4ba9('0x2a')],'endRow':_0x44f7fc['last'],'startColumn':_0x398a4d['first'],'endColumn':_0x398a4d['last']};return 0x1==_0x182b0f[_0x4ba9('0x9d')]&&(_0x4bae24[_0x4ba9('0x6b')]+=_0x994145[_0x4ba9('0x8c')](_0x1879d6)-0x1,_0x4bae24['endColumn']+=_0x994145[_0x4ba9('0x8d')](_0x1879d6)-0x1),de(_0x2e3c0a,_0x4bae24,_0x994145);}(_0x57d6e1,_0x311c6d,_0xaa1103['model'],_0x14a392,_0x4a6f50)&&(_0x4da330[_0x4ba9('0x2c')](),_0x26f24c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x2')](()=>{_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x91')](_0x517e35[0x0],_0x517e35[0x1],_0x517e35[0x2],{'forceDefaultExecution':!0x0});const _0x236bc7=_0x24c2df(),{rowInsertionRanges:_0x8c3cd7,columnInsertionRanges:_0x4310bc,insertionRanges:_0x526c8f,deletionRanges:_0x2adaa3,cells:_0x1d0520}=_0x26f24c;_0x8c3cd7[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x8c3cd7,_0x4ba9('0x36'),{'tablePasteChainId':_0x236bc7}),_0x4310bc[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x4310bc,'tablePasteColumn',{'tablePasteChainId':_0x236bc7}),_0x526c8f[_0x4ba9('0x9d')]&&_0x2370f0[_0x4ba9('0xa0')](_0x526c8f,'tablePaste',{'tablePasteChainId':_0x236bc7,'skipNestingCheck':!0x0}),_0x2adaa3[_0x4ba9('0x9d')]&&_0x2370f0['markMultiRangeDeletion'](_0x2adaa3,'tablePaste',{'tablePasteChainId':_0x236bc7,'skipNestingCheck':!0x0});const _0x47c21f=_0x2370f0[_0x4ba9('0x87')](_0x1d0520[_0x4ba9('0x8')](({element:_0x3cb06d})=>_0x3cb06d),{'formatGroupId':_0x24c2df()},[],_0x4ba9('0x5a'),{'tablePasteChainId':_0x236bc7});if(_0x47c21f){const _0x13ecdd=_0x47c21f[_0x4ba9('0x46')](),_0x765625=[];for(const {element:_0x301b96,attributes:_0x361c4c}of _0x1d0520){if(!_0x361c4c)continue;const _0x3dcdb7=_0xaa1103[_0x4ba9('0x3d')]['createRangeOn'](_0x301b96),_0xe77d97=_0x13ecdd['find'](_0x261713=>_0x261713[_0x4ba9('0x54')]()[_0x4ba9('0x2e')](_0x3dcdb7));_0xe77d97&&_0x765625['push']([_0xe77d97[_0x4ba9('0x95')],_0x361c4c]);}_0x765625['length']&&_0x47c21f[_0x4ba9('0x85')](_0x4ba9('0x60'),Object[_0x4ba9('0x45')](_0x765625));}_0x26f24c=null;}));},{'priority':_0x4894d5[_0x4ba9('0x81')]+0xa}),_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')]('TableClipboard')['on'](_0x4ba9('0x1d'),(_0x4047b6,_0x2b67c7)=>{const [_0x1f6aac,_0x35b18e,,_0x3d0e4f]=_0x2b67c7;if(!_0x26f24c)return;_0x4047b6['stop']();const _0x5e5a53=_0x1f6aac[_0x4ba9('0x98')],_0x5403f0=_0x35b18e,_0x5b993b=ge(_0x5e5a53),_0x2fff65=ge(_0x5403f0);_0x4047b6[_0x4ba9('0x39')]=_0x5e5a53;let _0x5cee1e=null,_0x64127b=null;if(_0x2fff65||_0x5b993b){if(_0x5b993b&&!_0x2fff65){_0x3d0e4f['remove'](_0x5e5a53[_0x4ba9('0x3e')](0x0));for(const _0x36a117 of Array[_0x4ba9('0xb')](_0x5403f0[_0x4ba9('0x1c')]()))_0x3d0e4f[_0x4ba9('0x43')](_0x36a117,_0x5e5a53,_0x4ba9('0x62'));const _0x392332=_0x26f24c[_0x4ba9('0x75')]['includes'](_0x1f6aac['row']),_0x4ec1fe=_0x26f24c[_0x4ba9('0x4d')]['includes'](_0x1f6aac[_0x4ba9('0x51')]);_0x392332||_0x4ec1fe||(_0x5cee1e=_0x3d0e4f[_0x4ba9('0x7c')](_0x5e5a53));}else _0x2fff65&&!_0x5b993b&&(_0x64127b=_0x3d0e4f['createRangeIn'](_0x5e5a53));}else{const _0x33a491=_0x3d0e4f[_0x4ba9('0x4f')](_0x4ba9('0x7b')),_0x5eadfd=_0x3d0e4f[_0x4ba9('0x4f')](_0x4ba9('0x7b'));_0x3d0e4f[_0x4ba9('0x0')](_0x3d0e4f[_0x4ba9('0x7c')](_0x5e5a53),_0x5eadfd),_0x3d0e4f['insert'](_0x33a491,_0x5e5a53,0x0);for(const _0x442192 of Array['from'](_0x5403f0['getChildren']()))_0x3d0e4f['insert'](_0x442192,_0x33a491,_0x4ba9('0x62'));_0x5cee1e=_0x3d0e4f[_0x4ba9('0x63')](_0x33a491),_0x64127b=_0x3d0e4f['createRangeOn'](_0x5eadfd);}const _0xe9b6e0=Array['from'](_0x5403f0['getAttributes']())[_0x4ba9('0x89')](([_0x31f66e])=>fe[_0x4ba9('0x47')](_0x31f66e));_0x26f24c[_0x4ba9('0x59')][_0x4ba9('0x29')]({'element':_0x5e5a53,'attributes':_0xe9b6e0[_0x4ba9('0x9d')]?Object[_0x4ba9('0x45')](_0xe9b6e0):null}),_0x5cee1e&&_0x26f24c[_0x4ba9('0x7e')][_0x4ba9('0x29')](_0x5cee1e),_0x64127b&&_0x26f24c[_0x4ba9('0x2d')][_0x4ba9('0x29')](_0x64127b);},{'priority':'high'}),_0x14a392['on'](_0x4ba9('0x7f'),(_0x20f08f,_0x1c66a2)=>{const [_0x325868,_0x3a3d3b={}]=_0x1c66a2;if(!_0x26f24c)return;const _0xb70487=_0x3a3d3b['at']||0x0,_0x435f16=_0x3a3d3b['columns']||0x1;_0x26f24c[_0x4ba9('0x4d')]=new Array(_0x435f16)['fill'](_0xb70487)[_0x4ba9('0x8')]((_0x5171dc,_0x372176)=>_0x5171dc+_0x372176);for(const {cell:_0x419441}of _0x14a392[_0x4ba9('0x37')](_0x325868,{'startColumn':_0xb70487,'endColumn':_0xb70487+_0x435f16-0x1}))_0x26f24c[_0x4ba9('0x48')][_0x4ba9('0x29')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x63')](_0x419441));},{'priority':_0x4ba9('0xe')}),_0x14a392['on'](_0x4ba9('0x7d'),(_0x4830de,_0x5c3add)=>{const [_0x301a69,_0x2c35bd={}]=_0x5c3add;if(!_0x26f24c)return;const _0x144b77=_0x2c35bd['at']||0x0,_0x504d57=_0x2c35bd[_0x4ba9('0x19')]||0x1;_0x26f24c['rowInsertionIndexes']=new Array(_0x504d57)[_0x4ba9('0x5d')](_0x144b77)['map']((_0x876cf,_0x291ed3)=>_0x876cf+_0x291ed3);for(const {cell:_0x47ac2e}of _0x14a392[_0x4ba9('0x37')](_0x301a69,{'startRow':_0x144b77,'endRow':_0x144b77+_0x504d57-0x1}))_0x26f24c[_0x4ba9('0x35')][_0x4ba9('0x29')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x63')](_0x47ac2e));},{'priority':_0x4ba9('0xe')}),_0x2370f0['_descriptionFactory'][_0x4ba9('0x74')](_0x3c9b0a=>{if(_0x3c9b0a['subType']&&_0x3c9b0a[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e')))return _0x3c9b0a[_0x4ba9('0xf')]?{}:{'type':_0x4ba9('0x58'),'content':_0x4f2f78(_0xaa1103['locale'],_0x4ba9('0x24'))};});const _0x49f5ff=()=>!0x1;for(const _0x10b8a6 of['tablePaste','tablePasteColumn',_0x4ba9('0x36'),'tablePasteCell'])_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')]('insertion',_0x10b8a6,'join',_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')](_0x4ba9('0x52'),_0x10b8a6,_0x4ba9('0x57'),_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback'](_0x4ba9('0x8a'),_0x10b8a6,'join',_0x49f5ff);_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback']('formatBlock',_0x4ba9('0x5a'),'discard',_0x49f5ff),_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x1e')]('formatBlock',_0x4ba9('0x5a'),_0x4ba9('0x34'),(_0x552cab,_0x5e2d8c,_0x253b64)=>{const _0xe872b0=_0x552cab[_0x4ba9('0x8')](_0x2a4732=>_0x2a4732[_0x4ba9('0x86')]())[_0x4ba9('0x89')](_0x31bb4c=>_0x31bb4c),_0x566686=new Map(_0xe872b0[_0x4ba9('0x8')](_0x464ac2=>[_0x464ac2,null]));if(_0x26f24c)for(const {element:_0x4ce600,attributes:_0x5e64d3}of _0x26f24c[_0x4ba9('0x59')])_0x5e64d3&&_0x566686[_0x4ba9('0x6e')](_0x4ce600,_0x5e64d3);else{if(_0x253b64&&_0x253b64[_0x4ba9('0x60')])for(const [_0xbe4324,_0x5cfda0]of Object[_0x4ba9('0x56')](_0x253b64[_0x4ba9('0x60')])){const _0x295212=_0xaa1103['model'][_0x4ba9('0x82')][_0x4ba9('0x1')](_0xbe4324),_0x408092=_0x295212?_0x295212[_0x4ba9('0x54')]()[_0x4ba9('0x86')]():null;_0x408092&&_0x566686[_0x4ba9('0x6e')](_0x408092,_0x5cfda0);}}_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x2')](_0x321551=>{for(const [_0x15e9a7,_0x129eff]of _0x566686)_0x321551[_0x4ba9('0xa')]({...be,..._0x129eff},_0x15e9a7);});});const _0x1c9f57=(_0x2a445e,_0x4ebb01)=>{_0x2370f0['_suggestionFactory'][_0x4ba9('0x1e')](_0x2a445e,_0x4ba9('0x8e'),_0x4ebb01,(_0x4ce410,_0x3a3bd7,_0x4bdf61)=>{_0xaa1103['model'][_0x4ba9('0x2')](_0x1231a8=>{const _0x44c676=[];for(const _0x18812f of _0x4ce410){const _0x1ce102=_0x18812f[_0x4ba9('0x38')][_0x4ba9('0x8b')];_0x1ce102['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'))&&_0x44c676[_0x4ba9('0x29')](_0x1ce102);}_0x2370f0[_0x4ba9('0x4a')][_0x4ba9('0x84')](_0x2a445e,null,_0x4ebb01)(_0x4ce410,_0x3a3bd7,_0x4bdf61);for(const _0x4c5a2d of _0x44c676)_0x4ba9('0x42')!=_0x4c5a2d[_0x4ba9('0x6a')][_0x4ba9('0x11')]&&_0x1231a8[_0x4ba9('0x4e')](_0x4c5a2d);});});};_0x1c9f57('insertion',_0x4ba9('0x34')),_0x1c9f57('insertion',_0x4ba9('0x50')),_0x1c9f57(_0x4ba9('0x52'),_0x4ba9('0x34')),_0x1c9f57('deletion','discard'),_0x2370f0['_suggestionFactory'][_0x4ba9('0x1e')](_0x4ba9('0x58'),_0x4ba9('0x36'),_0x4ba9('0x50'),_0x54a2d8=>{const _0x576dd0=_0x54a2d8[_0x4ba9('0x8')](_0x130bff=>_0x130bff['getContainedElement']()),_0x5a9fb0=_0x576dd0[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),{minRow:_0x4be408,maxRow:_0x546dac}=_0x158ac9['_getCoordsForCells'](_0x576dd0);_0x14a392[_0x4ba9('0x9e')](_0x5a9fb0,{'at':_0x4be408,'rows':_0x546dac-_0x4be408+0x1});}),_0x2370f0[_0x4ba9('0x4a')]['registerCustomCallback'](_0x4ba9('0x58'),_0x4ba9('0x3'),_0x4ba9('0x50'),_0x5a748e=>{const _0x139d6f=_0x5a748e[_0x4ba9('0x8')](_0x3ff9db=>_0x3ff9db[_0x4ba9('0x86')]()),_0x16bcfe=_0x139d6f[0x0][_0x4ba9('0x3b')](_0x4ba9('0x7')),{minColumn:_0x526ddc,maxColumn:_0x22d4ee}=_0x158ac9[_0x4ba9('0x90')](_0x139d6f);_0x14a392[_0x4ba9('0x4b')](_0x16bcfe,{'at':_0x526ddc,'columns':_0x22d4ee-_0x526ddc+0x1});});const _0x354c57=(_0x35585a,_0x1112ab)=>{if(!_0x1112ab[_0x4ba9('0x4')]||!_0x1112ab[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e')))return;const _0x4a5971=_0x1112ab[_0x4ba9('0x9')]['tablePasteChainId'],_0x461b14=_0x2370f0['getSuggestions']()[_0x4ba9('0x89')](_0x4bbb34=>_0x4bbb34[_0x4ba9('0x5f')]&&_0x4bbb34[_0x4ba9('0x9')]&&_0x4bbb34[_0x4ba9('0x9')][_0x4ba9('0x5b')]==_0x4a5971);_0x461b14[_0x4ba9('0x9d')]&&_0x1112ab[_0x4ba9('0xa2')]()[_0x4ba9('0x9d')]!=_0x461b14[_0x4ba9('0x9d')]&&_0x461b14[_0x4ba9('0x55')]((_0x2bc539,_0x30330f)=>(_0x2bc539[_0x4ba9('0x4c')]=_0x30330f,_0x30330f[_0x4ba9('0xf')]=_0x2bc539,_0x30330f));};function _0x17e5dd(_0x4ac762,_0xb50a07=!0x0){const {id:_0x5aada0}=_0x2370f0[_0x4ba9('0x2b')](_0x4ac762[_0x4ba9('0x97')]),_0x35d5be=['ck-suggestion-marker',_0x4ba9('0x5')],_0x5abe89=_0x2370f0['activeMarkers']['includes'](_0x4ac762[_0x4ba9('0x97')]);return _0x5abe89&&_0x35d5be[_0x4ba9('0x29')]('ck-suggestion-marker--active'),{'classes':_0x35d5be,'attributes':{'data-suggestion':_0x5aada0},'priority':_0x5abe89&&_0xb50a07?0xbc2:0xbb8};}_0x2370f0['on']('suggestionLoaded',_0x354c57,{'priority':_0x4ba9('0x81')}),_0x2370f0['on']('suggestionUnloaded',_0x354c57,{'priority':_0x4ba9('0x81')}),_0xaa1103['model'][_0x4ba9('0x12')][_0x4ba9('0x92')](()=>{let _0x2d309a=!0x1;const _0x45e91e=Array[_0x4ba9('0xb')](_0xaa1103['model'][_0x4ba9('0x12')][_0x4ba9('0x44')][_0x4ba9('0x88')]());for(const {name:_0x56dabc,data:_0x121cea}of _0x45e91e){const {group:_0x40e9cc,type:_0x348f15,id:_0xba84b3}=_0x2370f0[_0x4ba9('0x2b')](_0x56dabc);if('suggestion'!=_0x40e9cc||'deletion'!=_0x348f15||_0x121cea['oldRange'])continue;if(!_0x2370f0[_0x4ba9('0x99')](_0xba84b3))continue;const _0x439d44=_0x2370f0[_0x4ba9('0x6f')](_0xba84b3)[_0x4ba9('0x65')](),_0x39ecbb=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'];for(const _0x4b988b of _0x2370f0[_0x4ba9('0x25')]()){if(!_0x4b988b[_0x4ba9('0x5f')]||_0x4b988b[_0x4ba9('0x1b')]!=_0x39ecbb)continue;if(_0x4ba9('0x8a')!=_0x4b988b[_0x4ba9('0x79')]||_0x4ba9('0x5a')!=_0x4b988b['subType'])continue;if(_0x4b988b[_0x4ba9('0x65')]()[_0x4ba9('0x61')](_0x151d66=>_0x439d44[_0x4ba9('0x31')](_0x88cd42=>_0x88cd42[_0x4ba9('0x2f')](_0x151d66,!0x0))))for(const _0x15dcf9 of _0x4b988b[_0x4ba9('0xa2')]())_0x15dcf9[_0x4ba9('0x5f')]&&(_0x15dcf9['discard'](),_0x2d309a=!0x0);}}return _0x2d309a;}),_0xaa1103[_0x4ba9('0x3d')]['document'][_0x4ba9('0x92')](_0x5703c2=>{const _0x582c7f=_0xaa1103[_0x4ba9('0x6c')][_0x4ba9('0x1')](_0x4ba9('0x40'));if(!_0x582c7f||!_0x582c7f['_createdBatches'][_0x4ba9('0x33')](_0x5703c2[_0x4ba9('0x3f')]))return!0x1;let _0x1700d7=!0x1;const _0x2a0861=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'],_0xd0a8f4=_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x12')][_0x4ba9('0x44')][_0x4ba9('0x73')](),_0x8d1550=Array[_0x4ba9('0xb')](_0xaa1103[_0x4ba9('0x3d')][_0x4ba9('0x12')][_0x4ba9('0x44')]['getChangedMarkers']())[_0x4ba9('0x89')](({name:_0x4c533f,data:_0x4a5ead})=>{const {group:_0x5a9358,subType:_0x30b22d,authorId:_0x2d7c00}=_0x2370f0[_0x4ba9('0x2b')](_0x4c533f);return'suggestion'==_0x5a9358&&_0x4ba9('0x8e')==_0x30b22d&&_0x2d7c00==_0x2a0861['id']&&!_0x4a5ead[_0x4ba9('0x32')];});for(const _0x52b226 of _0xd0a8f4){if('insert'!=_0x52b226[_0x4ba9('0x79')]||_0x4ba9('0x7b')!=_0x52b226[_0x4ba9('0x95')]||0x1!=_0x52b226[_0x4ba9('0x9d')])continue;const _0x4fad56=_0x5703c2[_0x4ba9('0x67')](_0x52b226[_0x4ba9('0x9c')],_0x52b226[_0x4ba9('0x9c')][_0x4ba9('0x69')](0x1));if(!_0x8d1550[_0x4ba9('0x21')](({data:_0x565b2a})=>_0x565b2a[_0x4ba9('0x5e')][_0x4ba9('0x2e')](_0x4fad56)))for(const {name:_0x463a1b,data:_0xb8890}of _0x8d1550)if(_0x4fad56[_0x4ba9('0x2f')](_0xb8890[_0x4ba9('0x5e')])){_0x5703c2['updateMarker'](_0x463a1b,{'range':_0x4fad56}),_0x1700d7=!0x0;break;}}return _0x1700d7;}),_0xaa1103['model']['document'][_0x4ba9('0x92')](_0x453a32=>{let _0x2f4378=!0x1;const _0x36b49b=_0xaa1103[_0x4ba9('0x27')][_0x4ba9('0x1')](_0x4ba9('0x14'))['me'],_0x406cc9=_0x2370f0[_0x4ba9('0x25')]()[_0x4ba9('0x89')](_0x1a6af1=>_0x1a6af1[_0x4ba9('0x5f')]&&_0x1a6af1[_0x4ba9('0x1b')]==_0x36b49b),_0x4263ee=new Set(),_0x2b6ddd=new Set();for(const _0x10de84 of _0x406cc9)if(_0x4ba9('0x8e')==_0x10de84[_0x4ba9('0x4')])for(const _0x17c702 of _0x10de84[_0x4ba9('0x46')]()){const _0x525f5a=_0x17c702[_0x4ba9('0x54')]()[_0x4ba9('0x86')]();if(_0x525f5a){if(_0x525f5a['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'))&&ge(_0x525f5a)){_0x10de84[_0x4ba9('0x72')](_0x17c702[_0x4ba9('0x95')]),_0x4263ee[_0x4ba9('0x64')](_0x525f5a),_0x2f4378=!0x0;const _0x3e1219=_0x525f5a[_0x4ba9('0x10')],_0x3c4b8f=_0x525f5a[_0x4ba9('0x77')],_0x3d85e0=_0x3e1219&&_0x3e1219['is'](_0x4ba9('0x18'),_0x4ba9('0x7b')),_0x55ee58=_0x3c4b8f&&_0x3c4b8f['is'](_0x4ba9('0x18'),_0x4ba9('0x7b'));_0x3d85e0&&!_0x4263ee[_0x4ba9('0x33')](_0x3e1219)&&_0x2b6ddd[_0x4ba9('0x64')](_0x3e1219),_0x55ee58&&!_0x4263ee['has'](_0x3c4b8f)&&_0x2b6ddd[_0x4ba9('0x64')](_0x3c4b8f);}else _0x525f5a['is'](_0x4ba9('0x18'),_0x4ba9('0x13'))&&_0x525f5a[_0x4ba9('0x66')]&&(_0x10de84[_0x4ba9('0x72')](_0x17c702[_0x4ba9('0x95')]),_0x2f4378=!0x0);}}else{if(_0x4ba9('0x5a')==_0x10de84[_0x4ba9('0x4')]){if(!_0x10de84[_0x4ba9('0x9')]||!_0x10de84[_0x4ba9('0x9')][_0x4ba9('0x5b')])continue;const _0x1473f4=_0x10de84[_0x4ba9('0x9')]['markerAttributes'];if(_0x1473f4&&Object[_0x4ba9('0x93')](_0x1473f4)[_0x4ba9('0x9d')])continue;const _0x4e33aa=_0x10de84['attributes'][_0x4ba9('0x5b')];let _0x1a3915=!0x0,_0x3329ae=!0x0;for(const _0x40fc6e of _0x406cc9)if(_0x40fc6e[_0x4ba9('0x4')]&&_0x40fc6e[_0x4ba9('0x4')][_0x4ba9('0x9f')](_0x4ba9('0x8e'))){if(!_0x40fc6e[_0x4ba9('0x9')][_0x4ba9('0x5b')]){_0x3329ae=!0x1;break;}if(_0x40fc6e['id']!=_0x10de84['id']&&_0x40fc6e['attributes'][_0x4ba9('0x5b')]==_0x4e33aa){_0x1a3915=!0x1;break;}}_0x3329ae&&_0x1a3915&&(_0x10de84[_0x4ba9('0x80')](),_0x2f4378=!0x0);}}for(const _0x208541 of _0x4263ee)_0x453a32[_0x4ba9('0x3c')](_0x208541);for(const _0x3783bc of _0x2b6ddd)_0x453a32['unwrap'](_0x3783bc);return _0x2f4378;}),_0xaa1103[_0x4ba9('0x22')][_0x4ba9('0x28')](_0x4ba9('0x8f'))[_0x4ba9('0x7a')]({'model':_0x4ba9('0x16'),'view':(_0x523731,_0x1e637d)=>_0x17e5dd(_0x523731),'converterPriority':'high'}),_0xaa1103[_0x4ba9('0x22')][_0x4ba9('0x28')](_0x4ba9('0x9a'))['markerToHighlight']({'model':_0x4ba9('0x16'),'view':(_0x444580,_0x3e3b58)=>_0x3e3b58[_0x4ba9('0x53')]['showSuggestionHighlights']?_0x17e5dd(_0x444580,!0x1):null,'converterPriority':'high'});const _0x37ff70=_0xaa1103[_0x4ba9('0x1a')][_0x4ba9('0xc')];this['listenTo'](_0x37ff70[_0x4ba9('0x12')],_0x4ba9('0x6d'),(_0x4fdaee,_0x37e10c)=>{const _0x33d1cd=[];for(const _0x1e2e01 of _0x37ff70[_0x4ba9('0x7c')](_0x37e10c[_0x4ba9('0x17')])['getItems']())_0x1e2e01['is'](_0x4ba9('0x18'),'suggestion-td')&&_0x33d1cd[_0x4ba9('0x29')](_0x1e2e01);_0x37ff70[_0x4ba9('0x2')](_0x385b9c=>{for(const _0x214c1e of _0x33d1cd)_0x385b9c[_0x4ba9('0x30')](_0x385b9c[_0x4ba9('0x7c')](_0x214c1e),_0x385b9c[_0x4ba9('0x71')](_0x214c1e)),_0x385b9c[_0x4ba9('0x3c')](_0x214c1e);});});}}function ge(_0x19f644){if(_0x19f644[_0x4ba9('0x66')])return!0x0;const _0x4033aa=_0x19f644[_0x4ba9('0x3e')](0x0);return _0x4033aa['is'](_0x4ba9('0x18'),_0x4ba9('0x13'))&&_0x4033aa[_0x4ba9('0x66')];}function de(_0x54258f,_0x2072e8={},_0x443e19){for(const {isAnchor:_0x42799a,cellHeight:_0x31aa15,cellWidth:_0xda29c6}of _0x443e19[_0x4ba9('0x37')](_0x54258f,{'includeAllSlots':!0x0,..._0x2072e8}))if(!_0x42799a||0x1!=_0x31aa15||0x1!=_0xda29c6)return!0x1;return!0x0;}
|
|
23
|
+
const _0x29a0=['$graveyard','getMarkers','removeRows','tablePasteColumn','getRanges','tableCellBackgroundColor','selection','content','schema','markMultiRangeInsertion','startsWith','position','tableCellPadding','push','root','accept','deletionRanges','previousSibling','start','previous','has','includes','getSuggestions','isInContent','model','markerAttributes','getChildren','getShiftedBy','fill','conversion','columnInsertionIndexes','insertRows','_getCoordsForCells','subType','activeMarkers','differ','getChild','nodeAfter','isEqual','endRow','hasSuggestion','change','deletion','nextSibling','discard','insertion','forceDefaultExecution','getAttributes','createElement','afterInit','rowInsertionIndexes','_replaceTableSlotCell','getColumns','setAttribute','insertContent','updateMarker','type','_isForcedDefaultExecutionBlock','tablePasteChainId','TableClipboard','tableCellBorderWidth','cell','find','_tablePostFixingSubtypes','newRange','editor','name','suggestionUnloaded','tableCellBorderColor','batch','ck-suggestion-marker','removeMarkers','getRows','paragraph','end','isEmpty','some','suggestion:formatBlock:tablePasteCell','markerToHighlight','join','createRangeOn','value','editingDowncast','first','editing','ck-suggestion-marker--active','markerName','table','attributes','add','remove','stop','ck-suggestion-marker-insertion','columnInsertionRanges','map','tableCellBorderStyle','endColumn','tablePasteCell','filter','getRange','last','tableCellSuggestion','tablePasteRow','wrap','registerPostFixer','*Replace\x20table\x20cells*','suggestion-td','getSuggestion','getSuggestionCallback','high','trackChanges','clipboardOutput','containsRange','columns','dataDowncast','insert','findAncestor','row','markMultiRangeDeletion','TrackChangesEditing','fromEntries','getItems','low','getSelectionAffectedTableCells','_splitMarkerName','getAllAdjacentSuggestions','createPositionBefore','formatBlock','markMultiRangeBlockFormat','removeMarker','for','createRangeIn','setAttributes','insertionRanges','createTableWalker','elementToElement','rowInsertionRanges','getRowIndexes','oldRange','keys','documentSelection','plugins','view','element','getTableIfOnlyTableInContent','insertColumns','listenTo','set','get','_suggestionFactory','entries','suggestion','author','options','getContainedElement','Users','from','removeColumns','registerCustomCallback','createRange','length','locale','registerDescriptionCallback','document','commands','tablePaste','_createdBatches'];(function(_0x352dee,_0x29a025){const _0x44fc01=function(_0x54e3ce){while(--_0x54e3ce){_0x352dee['push'](_0x352dee['shift']());}};_0x44fc01(++_0x29a025);}(_0x29a0,0x143));const _0x44fc=function(_0x352dee,_0x29a025){_0x352dee=_0x352dee-0x0;let _0x44fc01=_0x29a0[_0x352dee];return _0x44fc01;};import{getTranslation as _0x33709a}from'../utils/common-translations.js';import{Plugin as _0x3eeabe}from'ckeditor5/src/core.js';import{uid as _0x36d651,priorities as _0x4928b1}from'ckeditor5/src/utils.js';import _0x15e5cc from'./table.js';const fe=[_0x44fc('0x47'),_0x44fc('0x4f'),_0x44fc('0x6a'),'tableCellHorizontalAlignment','tableCellVerticalAlignment',_0x44fc('0x10'),_0x44fc('0x17')],be=Object[_0x44fc('0x83')](fe['map'](_0x43e47c=>[_0x43e47c,null]));export default class At extends _0x3eeabe{static get['requires'](){return[_0x15e5cc];}[_0x44fc('0x3c')](){const _0x262469=this['editor'];if(!_0x262469[_0x44fc('0x98')][_0x44fc('0x1f')]('TableClipboard'))return;const _0x19208d=_0x262469['plugins'][_0x44fc('0x9f')](_0x44fc('0x82')),_0x3dacc5=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')]('TableUtils'),_0xfa7bfb=_0x262469[_0x44fc('0x98')]['get'](_0x15e5cc),_0x1b1ed3=_0x262469[_0x44fc('0x98')]['get']('TableClipboard');_0xfa7bfb[_0x44fc('0x4a')]['push'](_0x44fc('0x71'),_0x44fc('0xe')),_0x262469[_0x44fc('0x23')][_0x44fc('0x13')]['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x262469['conversion'][_0x44fc('0x92')]({'model':_0x44fc('0x70'),'view':_0x44fc('0x75')});let _0x2dcb2f=null;_0x262469['model']['on']('insertContent',(_0x4a87a9,_0x217c5d)=>{const [_0x4dff44,_0x203431]=_0x217c5d,_0x1f16d5=_0x217c5d[_0x217c5d[_0x44fc('0x4')]-0x1];_0x1f16d5&&_0x1f16d5[_0x44fc('0x39')]||_0x19208d[_0x44fc('0x44')]||this[_0x44fc('0x4c')]['commands'][_0x44fc('0x9f')](_0x44fc('0x79'))[_0x44fc('0x5c')]&&function(_0x3c91d1,_0x2cd331,_0x2cf55d,_0x3367c8,_0x5c2c29){if(_0x2cd331&&!_0x2cd331['is'](_0x44fc('0x97')))return!0x1;const _0x217213=_0x5c2c29[_0x44fc('0x9b')](_0x3c91d1,_0x2cf55d);if(!_0x217213||!de(_0x217213,void 0x0,_0x3367c8))return!0x1;const _0x5d941d=_0x3367c8[_0x44fc('0x86')](_0x2cf55d['document'][_0x44fc('0x11')]);if(!_0x5d941d[_0x44fc('0x4')])return!0x1;const _0x453d5b=_0x5d941d[0x0][_0x44fc('0x7f')](_0x44fc('0x62')),_0x3c6752=_0x3367c8[_0x44fc('0x94')](_0x5d941d),_0x276040=_0x3367c8['getColumnIndexes'](_0x5d941d),_0x521ce3={'startRow':_0x3c6752[_0x44fc('0x5e')],'endRow':_0x3c6752['last'],'startColumn':_0x276040['first'],'endColumn':_0x276040[_0x44fc('0x6f')]};return 0x1==_0x5d941d[_0x44fc('0x4')]&&(_0x521ce3[_0x44fc('0x32')]+=_0x3367c8[_0x44fc('0x53')](_0x217213)-0x1,_0x521ce3[_0x44fc('0x6b')]+=_0x3367c8[_0x44fc('0x3f')](_0x217213)-0x1),de(_0x453d5b,_0x521ce3,_0x3367c8);}(_0x4dff44,_0x203431,_0x262469[_0x44fc('0x23')],_0x3dacc5,_0x1b1ed3)&&(_0x4a87a9[_0x44fc('0x66')](),_0x2dcb2f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](()=>{_0x262469[_0x44fc('0x23')][_0x44fc('0x41')](_0x217c5d[0x0],_0x217c5d[0x1],_0x217c5d[0x2],{'forceDefaultExecution':!0x0});const _0x136a3f=_0x36d651(),{rowInsertionRanges:_0x22d685,columnInsertionRanges:_0x8c80f3,insertionRanges:_0xecf501,deletionRanges:_0x33080c,cells:_0x183f8f}=_0x2dcb2f;_0x22d685[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x14')](_0x22d685,'tablePasteRow',{'tablePasteChainId':_0x136a3f}),_0x8c80f3[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x14')](_0x8c80f3,_0x44fc('0xe'),{'tablePasteChainId':_0x136a3f}),_0xecf501['length']&&_0x19208d[_0x44fc('0x14')](_0xecf501,'tablePaste',{'tablePasteChainId':_0x136a3f,'skipNestingCheck':!0x0}),_0x33080c[_0x44fc('0x4')]&&_0x19208d[_0x44fc('0x81')](_0x33080c,_0x44fc('0x9'),{'tablePasteChainId':_0x136a3f,'skipNestingCheck':!0x0});const _0x324e7f=_0x19208d[_0x44fc('0x8b')](_0x183f8f['map'](({element:_0x15f890})=>_0x15f890),{'formatGroupId':_0x36d651()},[],_0x44fc('0x6c'),{'tablePasteChainId':_0x136a3f});if(_0x324e7f){const _0xb15773=_0x324e7f[_0x44fc('0xc')](),_0x498e7a=[];for(const {element:_0x567da9,attributes:_0x542e02}of _0x183f8f){if(!_0x542e02)continue;const _0x42e9e9=_0x262469[_0x44fc('0x23')][_0x44fc('0x5b')](_0x567da9),_0x5d1fb2=_0xb15773[_0x44fc('0x49')](_0x29f21f=>_0x29f21f[_0x44fc('0x6e')]()['isEqual'](_0x42e9e9));_0x5d1fb2&&_0x498e7a[_0x44fc('0x18')]([_0x5d1fb2['name'],_0x542e02]);}_0x498e7a[_0x44fc('0x4')]&&_0x324e7f[_0x44fc('0x40')](_0x44fc('0x24'),Object[_0x44fc('0x83')](_0x498e7a));}_0x2dcb2f=null;}));},{'priority':_0x4928b1['high']+0xa}),_0x262469[_0x44fc('0x98')]['get'](_0x44fc('0x46'))['on'](_0x44fc('0x3e'),(_0x37f0a3,_0x493e59)=>{const [_0x312605,_0x2ec734,,_0x2d155d]=_0x493e59;if(!_0x2dcb2f)return;_0x37f0a3['stop']();const _0x23ad27=_0x312605[_0x44fc('0x48')],_0x241843=_0x2ec734,_0x522b6c=ge(_0x23ad27),_0x16852d=ge(_0x241843);_0x37f0a3['return']=_0x23ad27;let _0x408292=null,_0x404a23=null;if(_0x16852d||_0x522b6c){if(_0x522b6c&&!_0x16852d){_0x2d155d['remove'](_0x23ad27[_0x44fc('0x2f')](0x0));for(const _0x141996 of Array[_0x44fc('0x0')](_0x241843[_0x44fc('0x25')]()))_0x2d155d[_0x44fc('0x7e')](_0x141996,_0x23ad27,_0x44fc('0x55'));const _0x3ffc9f=_0x2dcb2f[_0x44fc('0x3d')][_0x44fc('0x20')](_0x312605[_0x44fc('0x80')]),_0x54aaa6=_0x2dcb2f[_0x44fc('0x29')]['includes'](_0x312605['column']);_0x3ffc9f||_0x54aaa6||(_0x408292=_0x2d155d[_0x44fc('0x8e')](_0x23ad27));}else _0x16852d&&!_0x522b6c&&(_0x404a23=_0x2d155d[_0x44fc('0x8e')](_0x23ad27));}else{const _0x1b530c=_0x2d155d[_0x44fc('0x3b')](_0x44fc('0x70')),_0x5e4ac8=_0x2d155d['createElement'](_0x44fc('0x70'));_0x2d155d[_0x44fc('0x72')](_0x2d155d['createRangeIn'](_0x23ad27),_0x5e4ac8),_0x2d155d[_0x44fc('0x7e')](_0x1b530c,_0x23ad27,0x0);for(const _0x91a088 of Array['from'](_0x241843[_0x44fc('0x25')]()))_0x2d155d[_0x44fc('0x7e')](_0x91a088,_0x1b530c,'end');_0x408292=_0x2d155d[_0x44fc('0x5b')](_0x1b530c),_0x404a23=_0x2d155d['createRangeOn'](_0x5e4ac8);}const _0x47e500=Array['from'](_0x241843[_0x44fc('0x3a')]())[_0x44fc('0x6d')](([_0x1ba8a2])=>fe[_0x44fc('0x20')](_0x1ba8a2));_0x2dcb2f['cells'][_0x44fc('0x18')]({'element':_0x23ad27,'attributes':_0x47e500[_0x44fc('0x4')]?Object['fromEntries'](_0x47e500):null}),_0x408292&&_0x2dcb2f[_0x44fc('0x90')]['push'](_0x408292),_0x404a23&&_0x2dcb2f[_0x44fc('0x1b')][_0x44fc('0x18')](_0x404a23);},{'priority':_0x44fc('0x78')}),_0x3dacc5['on'](_0x44fc('0x9c'),(_0x139405,_0x319642)=>{const [_0x5ce193,_0x487b30={}]=_0x319642;if(!_0x2dcb2f)return;const _0x152fd5=_0x487b30['at']||0x0,_0x453ac5=_0x487b30[_0x44fc('0x7c')]||0x1;_0x2dcb2f[_0x44fc('0x29')]=new Array(_0x453ac5)[_0x44fc('0x27')](_0x152fd5)[_0x44fc('0x69')]((_0x47fe08,_0x4ce37d)=>_0x47fe08+_0x4ce37d);for(const {cell:_0x1d4eb4}of _0x3dacc5[_0x44fc('0x91')](_0x5ce193,{'startColumn':_0x152fd5,'endColumn':_0x152fd5+_0x453ac5-0x1}))_0x2dcb2f[_0x44fc('0x68')][_0x44fc('0x18')](_0x262469[_0x44fc('0x23')]['createRangeOn'](_0x1d4eb4));},{'priority':_0x44fc('0x85')}),_0x3dacc5['on'](_0x44fc('0x2a'),(_0x249215,_0x423b94)=>{const [_0x3af304,_0x381866={}]=_0x423b94;if(!_0x2dcb2f)return;const _0x48295d=_0x381866['at']||0x0,_0x42d150=_0x381866['rows']||0x1;_0x2dcb2f[_0x44fc('0x3d')]=new Array(_0x42d150)[_0x44fc('0x27')](_0x48295d)['map']((_0x47501e,_0x127492)=>_0x47501e+_0x127492);for(const {cell:_0x282f8b}of _0x3dacc5[_0x44fc('0x91')](_0x3af304,{'startRow':_0x48295d,'endRow':_0x48295d+_0x42d150-0x1}))_0x2dcb2f[_0x44fc('0x93')][_0x44fc('0x18')](_0x262469[_0x44fc('0x23')][_0x44fc('0x5b')](_0x282f8b));},{'priority':_0x44fc('0x85')}),_0x19208d['_descriptionFactory'][_0x44fc('0x6')](_0x9b1b3=>{if(_0x9b1b3[_0x44fc('0x2c')]&&_0x9b1b3['subType'][_0x44fc('0x15')](_0x44fc('0x9')))return _0x9b1b3['previous']?{}:{'type':'insertion','content':_0x33709a(_0x262469[_0x44fc('0x5')],_0x44fc('0x74'))};});const _0x26279b=()=>!0x1;for(const _0x1f6c4b of[_0x44fc('0x9'),_0x44fc('0xe'),_0x44fc('0x71'),_0x44fc('0x6c')])_0x19208d['_suggestionFactory'][_0x44fc('0x2')]('insertion',_0x1f6c4b,_0x44fc('0x5a'),_0x26279b),_0x19208d[_0x44fc('0xa0')]['registerCustomCallback'](_0x44fc('0x35'),_0x1f6c4b,_0x44fc('0x5a'),_0x26279b),_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')](_0x44fc('0x8a'),_0x1f6c4b,_0x44fc('0x5a'),_0x26279b);_0x19208d['_suggestionFactory']['registerCustomCallback'](_0x44fc('0x8a'),'tablePasteCell',_0x44fc('0x37'),_0x26279b),_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')]('formatBlock',_0x44fc('0x6c'),'accept',(_0x30c7c8,_0x265e57,_0x57da20)=>{const _0x397dac=_0x30c7c8[_0x44fc('0x69')](_0x1c61c8=>_0x1c61c8['getContainedElement']())[_0x44fc('0x6d')](_0x175a81=>_0x175a81),_0x15e8e6=new Map(_0x397dac[_0x44fc('0x69')](_0x20d114=>[_0x20d114,null]));if(_0x2dcb2f)for(const {element:_0x3d3c14,attributes:_0x191f78}of _0x2dcb2f['cells'])_0x191f78&&_0x15e8e6['set'](_0x3d3c14,_0x191f78);else{if(_0x57da20&&_0x57da20[_0x44fc('0x24')])for(const [_0x27517e,_0x23d394]of Object[_0x44fc('0xa1')](_0x57da20[_0x44fc('0x24')])){const _0x2c22e3=_0x262469[_0x44fc('0x23')]['markers'][_0x44fc('0x9f')](_0x27517e),_0x26a581=_0x2c22e3?_0x2c22e3['getRange']()[_0x44fc('0xa5')]():null;_0x26a581&&_0x15e8e6[_0x44fc('0x9e')](_0x26a581,_0x23d394);}}_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](_0x15d260=>{for(const [_0x35ceb1,_0x13cd28]of _0x15e8e6)_0x15d260[_0x44fc('0x8f')]({...be,..._0x13cd28},_0x35ceb1);});});const _0x1aa84a=(_0x197ed8,_0x52cdfa)=>{_0x19208d[_0x44fc('0xa0')][_0x44fc('0x2')](_0x197ed8,_0x44fc('0x9'),_0x52cdfa,(_0x2c0847,_0x8714ec,_0x35a5fb)=>{_0x262469[_0x44fc('0x23')][_0x44fc('0x34')](_0x3bf3b6=>{const _0x3dea7b=[];for(const _0x1a845a of _0x2c0847){const _0x85c6f1=_0x1a845a[_0x44fc('0x1d')][_0x44fc('0x30')];_0x85c6f1['is'](_0x44fc('0x9a'),_0x44fc('0x70'))&&_0x3dea7b['push'](_0x85c6f1);}_0x19208d[_0x44fc('0xa0')][_0x44fc('0x77')](_0x197ed8,null,_0x52cdfa)(_0x2c0847,_0x8714ec,_0x35a5fb);for(const _0x1c456b of _0x3dea7b)_0x44fc('0xb')!=_0x1c456b[_0x44fc('0x19')]['rootName']&&_0x3bf3b6['unwrap'](_0x1c456b);});});};_0x1aa84a(_0x44fc('0x38'),_0x44fc('0x1a')),_0x1aa84a('insertion',_0x44fc('0x37')),_0x1aa84a(_0x44fc('0x35'),'accept'),_0x1aa84a(_0x44fc('0x35'),_0x44fc('0x37')),_0x19208d[_0x44fc('0xa0')]['registerCustomCallback'](_0x44fc('0x38'),_0x44fc('0x71'),_0x44fc('0x37'),_0x4cb831=>{const _0x73ab7=_0x4cb831['map'](_0x4801db=>_0x4801db[_0x44fc('0xa5')]()),_0x141e8e=_0x73ab7[0x0][_0x44fc('0x7f')]('table'),{minRow:_0x1109f2,maxRow:_0x8b666e}=_0xfa7bfb[_0x44fc('0x2b')](_0x73ab7);_0x3dacc5[_0x44fc('0xd')](_0x141e8e,{'at':_0x1109f2,'rows':_0x8b666e-_0x1109f2+0x1});}),_0x19208d['_suggestionFactory']['registerCustomCallback'](_0x44fc('0x38'),'tablePasteColumn','discard',_0x5fe761=>{const _0x56c9ad=_0x5fe761[_0x44fc('0x69')](_0x59fe4c=>_0x59fe4c['getContainedElement']()),_0x56bca0=_0x56c9ad[0x0]['findAncestor'](_0x44fc('0x62')),{minColumn:_0x4e2e86,maxColumn:_0x59b895}=_0xfa7bfb[_0x44fc('0x2b')](_0x56c9ad);_0x3dacc5[_0x44fc('0x1')](_0x56bca0,{'at':_0x4e2e86,'columns':_0x59b895-_0x4e2e86+0x1});});const _0x30be06=(_0x5ab4db,_0x156c2a)=>{if(!_0x156c2a[_0x44fc('0x2c')]||!_0x156c2a['subType'][_0x44fc('0x15')](_0x44fc('0x9')))return;const _0x3d3faf=_0x156c2a[_0x44fc('0x63')][_0x44fc('0x45')],_0x10caac=_0x19208d[_0x44fc('0x21')]()[_0x44fc('0x6d')](_0x3d96a1=>_0x3d96a1[_0x44fc('0x22')]&&_0x3d96a1[_0x44fc('0x63')]&&_0x3d96a1['attributes'][_0x44fc('0x45')]==_0x3d3faf);_0x10caac[_0x44fc('0x4')]&&_0x156c2a['getAllAdjacentSuggestions']()['length']!=_0x10caac[_0x44fc('0x4')]&&_0x10caac['reduce']((_0x840af6,_0x497335)=>(_0x840af6['next']=_0x497335,_0x497335[_0x44fc('0x1e')]=_0x840af6,_0x497335));};function _0xe59dff(_0x3a0b64,_0x20b591=!0x0){const {id:_0x4d84e9}=_0x19208d['_splitMarkerName'](_0x3a0b64['markerName']),_0x1d543e=[_0x44fc('0x51'),_0x44fc('0x67')],_0x41647d=_0x19208d[_0x44fc('0x2d')][_0x44fc('0x20')](_0x3a0b64[_0x44fc('0x61')]);return _0x41647d&&_0x1d543e[_0x44fc('0x18')](_0x44fc('0x60')),{'classes':_0x1d543e,'attributes':{'data-suggestion':_0x4d84e9},'priority':_0x41647d&&_0x20b591?0xbc2:0xbb8};}_0x19208d['on']('suggestionLoaded',_0x30be06,{'priority':_0x44fc('0x78')}),_0x19208d['on'](_0x44fc('0x4e'),_0x30be06,{'priority':'high'}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](()=>{let _0x4e520c=!0x1;const _0x1f21ac=Array[_0x44fc('0x0')](_0x262469[_0x44fc('0x23')][_0x44fc('0x7')]['differ']['getChangedMarkers']());for(const {name:_0x3da3f2,data:_0x37e14e}of _0x1f21ac){const {group:_0x2276f4,type:_0x1515e3,id:_0x403073}=_0x19208d[_0x44fc('0x87')](_0x3da3f2);if(_0x44fc('0xa2')!=_0x2276f4||'deletion'!=_0x1515e3||_0x37e14e[_0x44fc('0x95')])continue;if(!_0x19208d[_0x44fc('0x33')](_0x403073))continue;const _0x5a7272=_0x19208d[_0x44fc('0x76')](_0x403073)[_0x44fc('0xf')](),_0x5020f3=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')](_0x44fc('0xa6'))['me'];for(const _0x7d2f6e of _0x19208d[_0x44fc('0x21')]()){if(!_0x7d2f6e[_0x44fc('0x22')]||_0x7d2f6e[_0x44fc('0xa3')]!=_0x5020f3)continue;if(_0x44fc('0x8a')!=_0x7d2f6e[_0x44fc('0x43')]||_0x44fc('0x6c')!=_0x7d2f6e[_0x44fc('0x2c')])continue;if(_0x7d2f6e[_0x44fc('0xf')]()['every'](_0xf0ee68=>_0x5a7272[_0x44fc('0x57')](_0x390bae=>_0x390bae[_0x44fc('0x7b')](_0xf0ee68,!0x0))))for(const _0x350e58 of _0x7d2f6e[_0x44fc('0x88')]())_0x350e58[_0x44fc('0x22')]&&(_0x350e58[_0x44fc('0x37')](),_0x4e520c=!0x0);}}return _0x4e520c;}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](_0x3fad2e=>{const _0x596d6d=_0x262469[_0x44fc('0x8')][_0x44fc('0x9f')]('redo');if(!_0x596d6d||!_0x596d6d[_0x44fc('0xa')]['has'](_0x3fad2e[_0x44fc('0x50')]))return!0x1;let _0x327f33=!0x1;const _0x22413c=_0x262469[_0x44fc('0x98')][_0x44fc('0x9f')]('Users')['me'],_0x3077a1=_0x262469[_0x44fc('0x23')]['document'][_0x44fc('0x2e')]['getChanges'](),_0x4700c6=Array[_0x44fc('0x0')](_0x262469[_0x44fc('0x23')][_0x44fc('0x7')]['differ']['getChangedMarkers']())[_0x44fc('0x6d')](({name:_0x57887e,data:_0x4e0854})=>{const {group:_0x205b05,subType:_0x165241,authorId:_0x39144c}=_0x19208d[_0x44fc('0x87')](_0x57887e);return _0x44fc('0xa2')==_0x205b05&&_0x44fc('0x9')==_0x165241&&_0x39144c==_0x22413c['id']&&!_0x4e0854[_0x44fc('0x95')];});for(const _0x296f54 of _0x3077a1){if(_0x44fc('0x7e')!=_0x296f54[_0x44fc('0x43')]||_0x44fc('0x70')!=_0x296f54['name']||0x1!=_0x296f54[_0x44fc('0x4')])continue;const _0x3a0628=_0x3fad2e[_0x44fc('0x3')](_0x296f54[_0x44fc('0x16')],_0x296f54[_0x44fc('0x16')][_0x44fc('0x26')](0x1));if(!_0x4700c6[_0x44fc('0x49')](({data:_0xfe314a})=>_0xfe314a[_0x44fc('0x4b')][_0x44fc('0x31')](_0x3a0628)))for(const {name:_0x32d88c,data:_0x32fea8}of _0x4700c6)if(_0x3a0628['containsRange'](_0x32fea8[_0x44fc('0x4b')])){_0x3fad2e[_0x44fc('0x42')](_0x32d88c,{'range':_0x3a0628}),_0x327f33=!0x0;break;}}return _0x327f33;}),_0x262469[_0x44fc('0x23')][_0x44fc('0x7')][_0x44fc('0x73')](_0x3fbb17=>{let _0x1f3a14=!0x1;const _0x912414=_0x262469['plugins'][_0x44fc('0x9f')]('Users')['me'],_0x257cad=_0x19208d['getSuggestions']()[_0x44fc('0x6d')](_0x5a9b93=>_0x5a9b93[_0x44fc('0x22')]&&_0x5a9b93['author']==_0x912414),_0x5781cc=new Set(),_0x2d990e=new Set();for(const _0x111f09 of _0x257cad)if(_0x44fc('0x9')==_0x111f09[_0x44fc('0x2c')])for(const _0x2fb7e3 of _0x111f09[_0x44fc('0xc')]()){const _0x5ec434=_0x2fb7e3[_0x44fc('0x6e')]()[_0x44fc('0xa5')]();if(_0x5ec434){if(_0x5ec434['is'](_0x44fc('0x9a'),_0x44fc('0x70'))&&ge(_0x5ec434)){_0x111f09[_0x44fc('0x8c')](_0x2fb7e3[_0x44fc('0x4d')]),_0x5781cc[_0x44fc('0x64')](_0x5ec434),_0x1f3a14=!0x0;const _0x1903be=_0x5ec434[_0x44fc('0x36')],_0x38c46d=_0x5ec434[_0x44fc('0x1c')],_0x4f2c50=_0x1903be&&_0x1903be['is']('element','tableCellSuggestion'),_0x4c693f=_0x38c46d&&_0x38c46d['is'](_0x44fc('0x9a'),_0x44fc('0x70'));_0x4f2c50&&!_0x5781cc['has'](_0x1903be)&&_0x2d990e['add'](_0x1903be),_0x4c693f&&!_0x5781cc['has'](_0x38c46d)&&_0x2d990e[_0x44fc('0x64')](_0x38c46d);}else _0x5ec434['is'](_0x44fc('0x9a'),'paragraph')&&_0x5ec434[_0x44fc('0x56')]&&(_0x111f09[_0x44fc('0x8c')](_0x2fb7e3[_0x44fc('0x4d')]),_0x1f3a14=!0x0);}}else{if(_0x44fc('0x6c')==_0x111f09[_0x44fc('0x2c')]){if(!_0x111f09[_0x44fc('0x63')]||!_0x111f09['attributes'][_0x44fc('0x45')])continue;const _0x4f0817=_0x111f09[_0x44fc('0x63')][_0x44fc('0x24')];if(_0x4f0817&&Object[_0x44fc('0x96')](_0x4f0817)[_0x44fc('0x4')])continue;const _0x285a2c=_0x111f09[_0x44fc('0x63')]['tablePasteChainId'];let _0x538d1d=!0x0,_0x10c104=!0x0;for(const _0x443bc2 of _0x257cad)if(_0x443bc2[_0x44fc('0x2c')]&&_0x443bc2[_0x44fc('0x2c')][_0x44fc('0x15')]('tablePaste')){if(!_0x443bc2[_0x44fc('0x63')][_0x44fc('0x45')]){_0x10c104=!0x1;break;}if(_0x443bc2['id']!=_0x111f09['id']&&_0x443bc2[_0x44fc('0x63')]['tablePasteChainId']==_0x285a2c){_0x538d1d=!0x1;break;}}_0x10c104&&_0x538d1d&&(_0x111f09[_0x44fc('0x52')](),_0x1f3a14=!0x0);}}for(const _0x3d0a7d of _0x5781cc)_0x3fbb17[_0x44fc('0x65')](_0x3d0a7d);for(const _0x3cd098 of _0x2d990e)_0x3fbb17['unwrap'](_0x3cd098);return _0x1f3a14;}),_0x262469[_0x44fc('0x28')][_0x44fc('0x8d')](_0x44fc('0x5d'))[_0x44fc('0x59')]({'model':_0x44fc('0x58'),'view':(_0xf761cc,_0x212343)=>_0xe59dff(_0xf761cc),'converterPriority':_0x44fc('0x78')}),_0x262469[_0x44fc('0x28')][_0x44fc('0x8d')](_0x44fc('0x7d'))[_0x44fc('0x59')]({'model':_0x44fc('0x58'),'view':(_0x24232c,_0x23ab8f)=>_0x23ab8f[_0x44fc('0xa4')]['showSuggestionHighlights']?_0xe59dff(_0x24232c,!0x1):null,'converterPriority':_0x44fc('0x78')});const _0x3a66b3=_0x262469[_0x44fc('0x5f')][_0x44fc('0x99')];this[_0x44fc('0x9d')](_0x3a66b3[_0x44fc('0x7')],_0x44fc('0x7a'),(_0x25fe82,_0x31cc37)=>{const _0x286088=[];for(const _0x3dee99 of _0x3a66b3[_0x44fc('0x8e')](_0x31cc37[_0x44fc('0x12')])[_0x44fc('0x84')]())_0x3dee99['is'](_0x44fc('0x9a'),_0x44fc('0x75'))&&_0x286088['push'](_0x3dee99);_0x3a66b3[_0x44fc('0x34')](_0xae1ac1=>{for(const _0x4a0700 of _0x286088)_0xae1ac1['move'](_0xae1ac1[_0x44fc('0x8e')](_0x4a0700),_0xae1ac1[_0x44fc('0x89')](_0x4a0700)),_0xae1ac1['remove'](_0x4a0700);});});}}function ge(_0x53bdc4){if(_0x53bdc4[_0x44fc('0x56')])return!0x0;const _0x14787d=_0x53bdc4[_0x44fc('0x2f')](0x0);return _0x14787d['is'](_0x44fc('0x9a'),_0x44fc('0x54'))&&_0x14787d[_0x44fc('0x56')];}function de(_0x44b04a,_0x4f946d={},_0x2495a8){for(const {isAnchor:_0x446e6e,cellHeight:_0xb305f1,cellWidth:_0x2ebac9}of _0x2495a8['createTableWalker'](_0x44b04a,{'includeAllSlots':!0x0,..._0x4f946d}))if(!_0x446e6e||0x1!=_0xb305f1||0x1!=_0x2ebac9)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x168f=['resizeTable','resizeTableWidth','registerCustomCallback','has','get','handleSuggestionDescription','document','getSuggestionCallback','TableColumnResizeEditing','handleResizeTableWidthCommand','TrackChangesEditing','subType','getSuggestions','columnWidths','table','plugins','afterInit','*Format:*\x20resize\x20table','bind','tableWidth','getTableColumnsWidths','change','discard','format','getColumnGroupElement','markBlockFormat','_descriptionFactory','formatBlock','_suggestionFactory','data','commandParams','accept','formatInline','getSelectedElement','type','enableCommand','author','model','locale','editor'];(function(_0x240211,_0x168fff){const _0x295a19=function(_0xaaa866){while(--_0xaaa866){_0x240211['push'](_0x240211['shift']());}};_0x295a19(++_0x168fff);}(_0x168f,0xfb));const _0x295a=function(_0x240211,_0x168fff){_0x240211=_0x240211-0x0;let _0x295a19=_0x168f[_0x240211];return _0x295a19;};import{Plugin as _0x1dbdc0}from'ckeditor5/src/core.js';import{getTranslation as _0x24e0e4}from'../utils/common-translations.js';export default class It extends _0x1dbdc0{[_0x295a('0x5')](){if(!this[_0x295a('0x1c')][_0x295a('0x4')][_0x295a('0x20')](_0x295a('0x25')))return;const _0x40612d=this[_0x295a('0x1c')][_0x295a('0x4')][_0x295a('0x21')]('TrackChangesEditing');_0x40612d[_0x295a('0x18')](_0x295a('0x1e'),this['handleResizeTableWidthCommand'][_0x295a('0x7')](this)),_0x40612d[_0x295a('0x11')][_0x295a('0x1f')]('formatBlock',_0x295a('0x1d'),_0x295a('0x14'),_0x40612d[_0x295a('0x11')]['getSuggestionCallback'](_0x295a('0x10'),null,_0x295a('0xb'))),_0x40612d[_0x295a('0x11')][_0x295a('0x1f')](_0x295a('0x10'),_0x295a('0x1d'),_0x295a('0xb'),_0x40612d[_0x295a('0x11')][_0x295a('0x24')](_0x295a('0x10'),null,_0x295a('0x14'))),_0x40612d[_0x295a('0xf')]['registerDescriptionCallback'](this[_0x295a('0x22')][_0x295a('0x7')](this));}[_0x295a('0x26')](_0x176814,_0x2ed655){const _0x5a1a70=this[_0x295a('0x1c')]['plugins']['get'](_0x295a('0x27')),_0x413c8a=this[_0x295a('0x1c')][_0x295a('0x4')][_0x295a('0x21')]('TableColumnResizeEditing'),_0x50c10b=_0x2ed655[_0x295a('0x3')]||this['editor']['model'][_0x295a('0x23')]['selection'][_0x295a('0x16')]();this['editor'][_0x295a('0x1a')][_0x295a('0xa')](()=>{const _0x58fdad=_0x413c8a[_0x295a('0xd')](_0x50c10b);let _0x525800=_0x58fdad?_0x413c8a[_0x295a('0x9')](_0x58fdad):null,_0x284886=_0x50c10b['getAttribute'](_0x295a('0x8'))||null;const _0x4943ba=_0x2ed655[_0x295a('0x8')]||_0x284886,_0x26c468=_0x2ed655['columnWidths']||_0x525800,_0x2f5f90=this[_0x295a('0x1c')]['plugins']['get']('Users')['me'];for(const _0x120c0e of _0x5a1a70[_0x295a('0x1')]()){const _0x1b652c=_0x120c0e['getContainedElement']();if(_0x295a('0x1d')===_0x120c0e[_0x295a('0x0')]&&_0x1b652c===_0x50c10b){_0x120c0e[_0x295a('0x19')]!==_0x2f5f90&&_0x120c0e[_0x295a('0xb')]();const _0xe1cb67=_0x120c0e[_0x295a('0x12')][_0x295a('0x13')];_0x284886=_0xe1cb67[0x0][_0x295a('0x8')],_0x525800=_0xe1cb67[0x0][_0x295a('0x2')];break;}}_0x176814({'table':_0x50c10b,'tableWidth':_0x4943ba,'columnWidths':_0x26c468}),_0x5a1a70[_0x295a('0xe')](_0x50c10b,{'commandName':_0x295a('0x1e'),'commandParams':[{'tableWidth':_0x284886,'columnWidths':_0x525800}],'formatGroupId':_0x295a('0x1d')},[],_0x295a('0x1d'));});}['handleSuggestionDescription'](_0x40aad4){if(_0x295a('0x10')!=_0x40aad4[_0x295a('0x17')]&&_0x295a('0x15')!=_0x40aad4[_0x295a('0x17')])return;const {data:_0x33b715}=_0x40aad4;if(_0x33b715&&_0x295a('0x1d')===_0x33b715['formatGroupId']){const _0x14c7a2=_0x295a('0x6');return{'type':_0x295a('0xc'),'content':_0x24e0e4(this[_0x295a('0x1c')][_0x295a('0x1b')],_0x14c7a2)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a80=['setTableColumnHeader','_handleLegacySuggestions','editing','mapper','_acceptFormatSuggestionCallbackFactory','setAttribute','createTableWalker','locale','_suggestionFactory','type','name','get','formatBlock','writer','requires','ck-suggestion-marker-','commandName','addMarker:suggestion','_descriptionFactory','removeAttribute','data','registerDescriptionCallback','removeMarker:suggestion','registerCustomCallback','forceValue','addClass','downcastDispatcher','_enableDefaultAttributesIntegration','getSuggestion','activeMarkers','format','setTableRowHeader','nodeBefore','FORMAT_HEADER_ROW','registerAttributeLabel','FORMAT_HEADER_COLUMN','removeClass','headingRows','commandParams','plugins','stop','_splitMarkerName','bindElementToMarker','consume','ck-suggestion-marker--active','parent','FORMAT_REGULAR_ROW','end','toViewElement','has','cell','getCellLocation','options','start','includes','headingColumns','accept','_registerLegacyDescription','markerName','item','afterInit','highest','data-suggestion','*Format:*\x20%0','unbindElementFromMarkerName','TrackChangesEditing','editor','markerRange','TableUtils'];(function(_0x1685c4,_0x2a8008){const _0x484712=function(_0x59ed40){while(--_0x59ed40){_0x1685c4['push'](_0x1685c4['shift']());}};_0x484712(++_0x2a8008);}(_0x2a80,0xc2));const _0x4847=function(_0x1685c4,_0x2a8008){_0x1685c4=_0x1685c4-0x0;let _0x484712=_0x2a80[_0x1685c4];return _0x484712;};import{Plugin as _0x589e55}from'ckeditor5/src/core.js';import _0x224424 from'./table.js';import{getTranslation as _0x34311f}from'../utils/common-translations.js';export default class St extends _0x589e55{static get[_0x4847('0x1b')](){return[_0x224424];}[_0x4847('0x4')](){const _0x4ceb9e=this[_0x4847('0xa')];if(!_0x4ceb9e[_0x4847('0x34')][_0x4847('0x3e')]('TableEditing'))return;const _0x178b35=_0x4ceb9e[_0x4847('0x14')],_0x5a25e9=_0x4ceb9e['plugins'][_0x4847('0x18')](_0x4847('0x9'));_0x5a25e9[_0x4847('0x28')](_0x4847('0x2c'),[],[_0x4847('0x32')]),_0x5a25e9['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],[_0x4847('0x44')]),_0x5a25e9[_0x4847('0x1f')][_0x4847('0x2f')](_0x4847('0x32'),_0x34311f(_0x178b35,_0x4847('0x2e'))),_0x5a25e9[_0x4847('0x1f')][_0x4847('0x2f')]('headingColumns',_0x34311f(_0x178b35,_0x4847('0x30'))),this[_0x4847('0xe')]();}[_0x4847('0xe')](){const _0x725a8c=this[_0x4847('0xa')]['plugins'][_0x4847('0x18')](_0x4847('0x9')),_0x408d73=this[_0x4847('0xa')][_0x4847('0x34')]['get'](_0x4847('0xc')),_0x3fcacc=this[_0x4847('0xa')][_0x4847('0x34')][_0x4847('0x18')](_0x224424)[_0x4847('0x11')]();function _0xca12f1({showActiveMarker:_0x4f771c=!0x0,setDataAttribute:_0x387996=!0x0}={}){return(_0x53c289,_0x2d2884,_0x2826f5)=>{const {type:_0x56a075,id:_0xb6731a}=_0x725a8c[_0x4847('0x36')](_0x2d2884[_0x4847('0x2')]),_0x539d0e=_0x725a8c[_0x4847('0x29')](_0xb6731a),_0x52091d=_0x539d0e[_0x4847('0x21')];if(_0x4847('0x19')!=_0x539d0e[_0x4847('0x16')]||!_0x52091d||_0x4847('0xd')!=_0x52091d[_0x4847('0x1d')])return;if(_0x2d2884[_0x4847('0x3')])return void _0x53c289[_0x4847('0x35')]();if(!_0x2826f5['consumable'][_0x4847('0x38')](_0x2d2884[_0x4847('0xb')],_0x53c289[_0x4847('0x17')]))return;const _0x1ff96b=_0x2d2884[_0x4847('0xb')][_0x4847('0x42')]['nodeAfter'],_0x468e3a=_0x2d2884['markerRange'][_0x4847('0x3c')][_0x4847('0x2d')],_0x44b38b=_0x1ff96b[_0x4847('0x3a')][_0x4847('0x3a')],{column:_0x3f2edd}=_0x408d73['getCellLocation'](_0x1ff96b),{column:_0x4c2f9f}=_0x408d73[_0x4847('0x40')](_0x468e3a);for(let _0x509943=_0x3f2edd;_0x509943<=_0x4c2f9f;_0x509943++){const _0x51c101=_0x408d73[_0x4847('0x13')](_0x44b38b,{'column':_0x509943,'includeAllSlots':!0x1});for(const _0x20b8a8 of _0x51c101){const _0x47ca9b=_0x20b8a8[_0x4847('0x3f')],_0x357f9b=_0x2826f5[_0x4847('0x10')][_0x4847('0x3d')](_0x47ca9b);_0x2826f5[_0x4847('0x1a')][_0x4847('0x26')](_0x4847('0x1c')+_0x56a075,_0x357f9b),_0x387996&&_0x2826f5[_0x4847('0x1a')][_0x4847('0x12')](_0x4847('0x6'),_0xb6731a,_0x357f9b),_0x2826f5[_0x4847('0x10')][_0x4847('0x37')](_0x357f9b,_0x2d2884[_0x4847('0x2')]),_0x4f771c&&(_0x725a8c[_0x4847('0x2a')][_0x4847('0x43')](_0x2d2884[_0x4847('0x2')])?_0x2826f5[_0x4847('0x1a')][_0x4847('0x26')](_0x4847('0x39'),_0x357f9b):_0x2826f5[_0x4847('0x1a')]['removeClass'](_0x4847('0x39'),_0x357f9b));}}};}_0x725a8c['_suggestionFactory'][_0x4847('0x24')](_0x4847('0x19'),_0x4847('0x2c'),_0x4847('0x0'),_0x3fcacc),_0x725a8c[_0x4847('0x15')][_0x4847('0x24')]('formatBlock',_0x4847('0xd'),_0x4847('0x0'),_0x3fcacc),this[_0x4847('0xa')][_0x4847('0xf')]['downcastDispatcher']['on'](_0x4847('0x1e'),_0xca12f1(),{'priority':_0x4847('0x5')}),this[_0x4847('0xa')]['data'][_0x4847('0x27')]['on'](_0x4847('0x1e'),(_0x441bd0,_0x2fc421,_0x590fa9)=>{_0x590fa9[_0x4847('0x41')]['showSuggestionHighlights']&&_0xca12f1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x441bd0,_0x2fc421,_0x590fa9);},{'priority':_0x4847('0x5')}),this[_0x4847('0xa')][_0x4847('0xf')][_0x4847('0x27')]['on'](_0x4847('0x23'),(_0x367a9e,_0x226ec4,_0x31cff4)=>{const {type:_0x4db784,id:_0xc81e77}=_0x725a8c[_0x4847('0x36')](_0x226ec4[_0x4847('0x2')]),_0x37507f=_0x725a8c[_0x4847('0x29')](_0xc81e77),_0x31638b=_0x37507f['data'];if(_0x4847('0x19')!=_0x37507f[_0x4847('0x16')]||!_0x31638b||_0x4847('0xd')!=_0x31638b[_0x4847('0x1d')])return;const _0x314b03=_0x31cff4[_0x4847('0x10')]['markerNameToElements'](_0x226ec4[_0x4847('0x2')]);if(_0x314b03)for(const _0x4095eb of _0x314b03)_0x31cff4[_0x4847('0x1a')][_0x4847('0x31')](_0x4847('0x1c')+_0x4db784,_0x4095eb),_0x31cff4[_0x4847('0x1a')][_0x4847('0x31')](_0x4847('0x39'),_0x4095eb),_0x31cff4[_0x4847('0x1a')][_0x4847('0x20')]('data-suggestion',_0x4095eb),_0x31cff4['mapper'][_0x4847('0x8')](_0x4095eb,_0x226ec4[_0x4847('0x2')]);},{'priority':'highest'}),this[_0x4847('0x1')]();}[_0x4847('0x1')](){const _0x45af32=this[_0x4847('0xa')],_0x520336=_0x45af32[_0x4847('0x14')];function _0x577cb4(_0xc95119){return{'type':_0x4847('0x2b'),'content':_0x34311f(_0x520336,_0x4847('0x7'),_0xc95119)};}_0x45af32[_0x4847('0x34')][_0x4847('0x18')](_0x4847('0x9'))[_0x4847('0x1f')][_0x4847('0x22')](_0x56d509=>{if(_0x4847('0x19')!=_0x56d509[_0x4847('0x16')])return;const {data:_0x40ccab}=_0x56d509;if(_0x40ccab){if(_0x4847('0x2c')==_0x40ccab[_0x4847('0x1d')]){const _0x3b9b55=_0x40ccab[_0x4847('0x33')][0x0][_0x4847('0x25')];return _0x577cb4(_0x34311f(_0x520336,_0x3b9b55?_0x4847('0x2e'):_0x4847('0x3b')));}if(_0x4847('0xd')==_0x40ccab['commandName']){const _0x5ee644=_0x40ccab['commandParams'][0x0][_0x4847('0x25')];return _0x577cb4(_0x34311f(_0x520336,_0x5ee644?_0x4847('0x30'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf52f=['plugins','get','value','getSelectionAffectedTableCells','stop','afterInit','isInContent','_descriptionFactory','registerCustomCallback','locale','detach','accept','commands','getAncestors','splitTableCellHorizontally','findAncestor','has','mergeTableCellLeft','getCellLocation','requires','length','model','containsRange','root','mergeTableCells','formatInline','createTableWalker','direction','_suggestionFactory','registerDescriptionCallback','_isForcedDefaultExecutionBlock','_tablePostFixingSubtypes','format','add','_areMergableCells','_areSelectedCellsMergable','from','getRanges','*Merge\x20cells*','map','TrackChangesEditing','TableUtils','fromRange','trackChanges','formatBlock','table','size','getSuggestions','subType','$graveyard','*Split\x20cell:*\x20vertically','document','commandName','push','deletion','find','low','execute','insertion','setSelection','selection','cell','type','element','*Split\x20cell:*\x20horizontally','markBlockFormat','markMultiRangeBlockFormat','_acceptFormatSuggestionCallbackFactory','return','forceDefaultExecution','tableCell','mergeTableCellRight','set:isEnabled','mergeTableCellDown','author','highest','enableCommand','splitTableCellVertically','editor','filter','change'];(function(_0x2f4d97,_0xf52fbd){const _0x713743=function(_0x1d6532){while(--_0x1d6532){_0x2f4d97['push'](_0x2f4d97['shift']());}};_0x713743(++_0xf52fbd);}(_0xf52f,0x12a));const _0x7137=function(_0x2f4d97,_0xf52fbd){_0x2f4d97=_0x2f4d97-0x0;let _0x713743=_0xf52f[_0x2f4d97];return _0x713743;};import{Plugin as _0x10aa96}from'ckeditor5/src/core.js';import _0xde422c from'./table.js';import{LiveRange as _0x300509}from'ckeditor5/src/engine.js';import{getTranslation as _0x4a5877}from'../utils/common-translations.js';export default class jt extends _0x10aa96{static get[_0x7137('0x2d')](){return[_0xde422c];}[_0x7137('0x1f')](){const _0x44c950=this['editor'],_0x506777=_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')]['selection'],_0x29bff6=_0x44c950[_0x7137('0x23')];if(!_0x44c950[_0x7137('0x1a')][_0x7137('0x2a')]('TableEditing'))return;const _0x3e58e5=_0x44c950[_0x7137('0x1a')]['get'](_0x7137('0x42')),_0x298bf9=_0x44c950[_0x7137('0x1a')][_0x7137('0x1b')](_0x7137('0x43')),_0x4e70b6=_0x44c950[_0x7137('0x1a')]['get'](_0xde422c);_0x4e70b6[_0x7137('0x39')][_0x7137('0x4f')](_0x7137('0x32')),_0x3e58e5[_0x7137('0x15')]('mergeTableCells',()=>{const _0x3d41b6=_0x298bf9[_0x7137('0x1d')](_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')][_0x7137('0x5')]);_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](()=>{_0x3e58e5[_0x7137('0xb')](_0x3d41b6,{'commandName':'mergeTableCells','commandParams':[]},[],_0x7137('0x32'));});}),_0x44c950[_0x7137('0x26')][_0x7137('0x1b')]('mergeTableCells')['on'](_0x7137('0x2'),(_0x5acb21,_0x513606)=>{_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x7137('0x45'))[_0x7137('0x1c')]&&(_0x513606[_0x7137('0x2e')]>0x0&&_0x513606[_0x513606[_0x7137('0x2e')]-0x1]&&_0x513606[_0x513606['length']-0x1][_0x7137('0xe')]||_0x3e58e5[_0x7137('0x38')]||this[_0x7137('0x3d')]()||_0x5acb21[_0x7137('0x1e')]());},{'priority':_0x7137('0x14')});for(const _0x4b95fc of['mergeTableCellUp','mergeTableCellRight',_0x7137('0x12'),_0x7137('0x2b')]){const _0x255b15=_0x44c950[_0x7137('0x26')]['get'](_0x4b95fc);_0x3e58e5[_0x7137('0x15')](_0x4b95fc,()=>{const _0x38b944=_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')][_0x7137('0x5')]['getFirstPosition']()[_0x7137('0x27')]()[_0x7137('0x0')](_0x4d9b33=>_0x4d9b33['is'](_0x7137('0x8'),_0x7137('0xf'))),_0x372a72=_0x255b15[_0x7137('0x1c')];_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](()=>{_0x3e58e5['markMultiRangeBlockFormat']([_0x38b944,_0x372a72],{'commandName':'mergeTableCells','commandParams':[]},[],_0x7137('0x32'));});});}for(const _0x3f443c of['splitTableCellVertically',_0x7137('0x28')]){const _0x30a2db=_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x3f443c);_0x3e58e5['enableCommand'](_0x3f443c,()=>{const _0x2f7d15=_0x298bf9[_0x7137('0x1d')](_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')]['selection'])[0x0],_0x44c0f6=_0x2f7d15[_0x7137('0x29')](_0x7137('0x47')),{column:_0x542b5a,row:_0x3573e4}=_0x298bf9[_0x7137('0x2c')](_0x2f7d15);let _0x2fea94=[];if('horizontally'==_0x30a2db[_0x7137('0x35')]){const _0x1c3be0=_0x298bf9['createTableWalker'](_0x44c0f6,{'startRow':_0x3573e4,'endRow':_0x3573e4,'includeAllSlots':!0x0});_0x2fea94=Array['from'](_0x1c3be0)['map'](_0x4bd064=>_0x4bd064[_0x7137('0x6')]);}else{const _0x1469a9=_0x298bf9[_0x7137('0x34')](_0x44c0f6,{'column':_0x542b5a,'includeAllSlots':!0x0});_0x2fea94=Array[_0x7137('0x3e')](_0x1469a9)['map'](_0x12915b=>_0x12915b[_0x7137('0x6')]);}_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](_0x285627=>{_0x3e58e5[_0x7137('0xa')](_0x285627['createRangeOn'](_0x2f7d15),{'commandName':_0x3f443c,'commandParams':[]},_0x2fea94,_0x3f443c);});});}_0x3e58e5[_0x7137('0x21')]['registerDescriptionCallback'](_0x4c53e9=>{if('formatBlock'!=_0x4c53e9[_0x7137('0x7')]&&'formatInline'!=_0x4c53e9[_0x7137('0x7')])return;const {data:_0x1a5091}=_0x4c53e9;return _0x1a5091&&_0x7137('0x32')==_0x1a5091[_0x7137('0x4e')]?{'type':_0x7137('0x3a'),'content':_0x4a5877(_0x29bff6,_0x7137('0x40'))}:void 0x0;}),_0x3e58e5['_descriptionFactory'][_0x7137('0x37')](_0xcf23c6=>{if(_0x7137('0x46')!=_0xcf23c6['type']&&_0x7137('0x33')!=_0xcf23c6['type'])return;const {data:_0x50e9ea}=_0xcf23c6;return _0x50e9ea?_0x7137('0x16')==_0x50e9ea[_0x7137('0x4e')]?{'type':_0x7137('0x3a'),'content':_0x4a5877(_0x29bff6,_0x7137('0x4c'))}:_0x7137('0x28')==_0x50e9ea[_0x7137('0x4e')]?{'type':_0x7137('0x3a'),'content':_0x4a5877(_0x29bff6,_0x7137('0x9'))}:void 0x0:void 0x0;});const _0x5b358c=_0x4e70b6[_0x7137('0xc')]();for(const _0xefb621 of['mergeTableCellUp',_0x7137('0x10'),_0x7137('0x12'),'mergeTableCellLeft'])_0x3e58e5[_0x7137('0x36')][_0x7137('0x22')](_0x7137('0x46'),_0xefb621,_0x7137('0x25'),_0x5b358c);for(const _0x3a9aa8 of[_0x7137('0x16'),_0x7137('0x28')])_0x3e58e5['_suggestionFactory'][_0x7137('0x22')](_0x7137('0x46'),_0x3a9aa8,'accept',_0x5b358c);_0x3e58e5['_suggestionFactory'][_0x7137('0x22')]('formatBlock',_0x7137('0x32'),_0x7137('0x25'),_0x295031=>{_0x44c950[_0x7137('0x2f')][_0x7137('0x19')](_0xc1a5d9=>{const _0x517deb=Array['from'](_0x506777[_0x7137('0x3f')]())[_0x7137('0x41')](_0x381dc3=>_0x300509[_0x7137('0x44')](_0x381dc3));_0xc1a5d9['setSelection'](_0x295031),_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x7137('0x32'))['refresh'](),_0x44c950[_0x7137('0x2')](_0x7137('0x32'),{'forceDefaultExecution':!0x0});const _0x4c76d0=_0x517deb[_0x7137('0x18')](_0x8734d4=>_0x7137('0x4b')!=_0x8734d4[_0x7137('0x31')]['rootName']);_0x4c76d0['length']>0x0&&_0xc1a5d9[_0x7137('0x4')](_0x4c76d0);for(const _0x24cc33 of _0x517deb)_0x24cc33[_0x7137('0x24')]();});});for(const _0x1a535a of['mergeTableCellUp',_0x7137('0x12'),'mergeTableCellLeft',_0x7137('0x10')]){const _0x2b3ea8=_0x44c950[_0x7137('0x26')][_0x7137('0x1b')](_0x1a535a);_0x2b3ea8['on'](_0x7137('0x11'),(_0x481386,_0x57b8d6,_0x49611e)=>{if(_0x49611e){const _0x4e07dc=_0x44c950[_0x7137('0x2f')][_0x7137('0x4d')][_0x7137('0x5')]['getFirstPosition']()[_0x7137('0x27')]()[_0x7137('0x0')](_0x1b2cdf=>_0x1b2cdf['is'](_0x7137('0x8'),_0x7137('0xf')));this['_areMergableCells'](_0x2b3ea8[_0x7137('0x1c')],_0x4e07dc)||(_0x481386[_0x7137('0xd')]=!0x1,_0x481386[_0x7137('0x1e')]());}},{'priority':_0x7137('0x1')});}}[_0x7137('0x3d')](){const _0x3fbdcc=this[_0x7137('0x17')]['commands'][_0x7137('0x1b')](_0x7137('0x32')),_0x304b27=this[_0x7137('0x17')][_0x7137('0x1a')]['get'](_0x7137('0x43'));if(!_0x3fbdcc['isEnabled'])return!0x1;const _0x401b0f=_0x304b27['getSelectionAffectedTableCells'](this[_0x7137('0x17')][_0x7137('0x2f')][_0x7137('0x4d')]['selection']);for(const _0x135019 of _0x401b0f)for(const _0x2aa353 of _0x401b0f)if(_0x135019!=_0x2aa353&&!this[_0x7137('0x3c')](_0x135019,_0x2aa353))return!0x1;return!0x0;}['_areMergableCells'](_0x3f8023,_0x218159){const _0x3e8299=this[_0x7137('0x17')][_0x7137('0x1a')][_0x7137('0x1b')](_0x7137('0x42')),_0x2df241=this['editor']['model']['createRangeOn'](_0x3f8023),_0x2b0db6=this[_0x7137('0x17')][_0x7137('0x2f')]['createRangeOn'](_0x218159),_0x45b1a4=new Set(),_0xb1045e=new Set();for(const _0x5dc6e7 of _0x3e8299[_0x7137('0x49')]())if((_0x7137('0x3')==_0x5dc6e7['type']||_0x7137('0x50')==_0x5dc6e7[_0x7137('0x7')]||_0x7137('0x32')==_0x5dc6e7[_0x7137('0x4a')])&&_0x5dc6e7[_0x7137('0x20')])for(const _0xf7fd3e of _0x5dc6e7[_0x7137('0x3f')]())_0xf7fd3e[_0x7137('0x30')](_0x2df241,!0x0)&&_0x45b1a4[_0x7137('0x3b')](_0x5dc6e7['type']+':'+_0x5dc6e7[_0x7137('0x13')]['id']),_0xf7fd3e['containsRange'](_0x2b0db6,!0x0)&&_0xb1045e[_0x7137('0x3b')](_0x5dc6e7[_0x7137('0x7')]+':'+_0x5dc6e7['author']['id']);if(_0x45b1a4[_0x7137('0x48')]!=_0xb1045e[_0x7137('0x48')])return!0x1;for(const _0x44de1f of _0x45b1a4)if(!_0xb1045e[_0x7137('0x2a')](_0x44de1f))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x85ad=['insertTableOfContents','registerElementLabel','plugins','ELEMENT_TABLE_OF_CONTENTS','locale','tableOfContents','get','afterInit','TrackChangesEditing','enableCommand'];(function(_0x25ac7f,_0x85adf8){const _0x15b327=function(_0x5d1f5f){while(--_0x5d1f5f){_0x25ac7f['push'](_0x25ac7f['shift']());}};_0x15b327(++_0x85adf8);}(_0x85ad,0x102));const _0x15b3=function(_0x25ac7f,_0x85adf8){_0x25ac7f=_0x25ac7f-0x0;let _0x15b327=_0x85ad[_0x25ac7f];return _0x15b327;};import{Plugin as _0x2869af}from'ckeditor5/src/core.js';import{getTranslation as _0x5150e6}from'../utils/common-translations.js';export default class _t extends _0x2869af{[_0x15b3('0x9')](){const _0x1782db=this['editor'];if(!_0x1782db['commands'][_0x15b3('0x8')](_0x15b3('0x2')))return;_0x1782db[_0x15b3('0x4')]['get']('TrackChangesEditing')[_0x15b3('0x1')]('insertTableOfContents');const _0x2319bd=_0x1782db['plugins'][_0x15b3('0x8')](_0x15b3('0x0')),_0x5ec99e=_0x1782db[_0x15b3('0x6')];_0x2319bd['_descriptionFactory'][_0x15b3('0x3')](_0x15b3('0x7'),_0xaf89c0=>_0x5150e6(_0x5ec99e,_0x15b3('0x5'),_0xaf89c0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b97=['findAncestor','editor','TrackChangesEditing','getAttribute','tableCellProperties','TableUtils','table','pluginName','setAttribute','tableProperties','_descriptionFactory','getSuggestionCallback','tableCellBorderColor','tableBorderStyle','formatBlock','handleDiscardAction','_getSuggestion','*Format:*\x20change\x20table\x20properties','afterInit','change','_handlePropertyChange','_suggestionFactory','nodeAfter','format','plugins','registerDescriptionCallback','TrackChangesTableProperties','tableCellVerticalAlignment','subType','join','getSelectionAffectedTableCells','discard','tableCellBorderStyle','locale','get','registerCustomCallback','tableCellHeight','document','handleSuggestionDescription','tableHeight','enqueueChange','getContainedElement','tableCellBorderWidth','getSuggestions','tableCellPadding','accept','tableBackgroundColor','TablePropertiesEditing','model','enableCommand','tableCellHorizontalAlignment','getFirstPosition'];(function(_0x13a1bf,_0x2b97a8){const _0x48aae8=function(_0x4c8a4a){while(--_0x4c8a4a){_0x13a1bf['push'](_0x13a1bf['shift']());}};_0x48aae8(++_0x2b97a8);}(_0x2b97,0xb6));const _0x48aa=function(_0x13a1bf,_0x2b97a8){_0x13a1bf=_0x13a1bf-0x0;let _0x48aae8=_0x2b97[_0x13a1bf];return _0x48aae8;};import{Plugin as _0x1a810f}from'ckeditor5/src/core.js';import{getTranslation as _0x2c2033}from'../utils/common-translations.js';export default class Mt extends _0x1a810f{constructor(_0x3f331f){super(_0x3f331f),this['tableProperties']=['tableBorderColor',_0x48aa('0x27'),'tableBorderWidth','tableAlignment','tableWidth',_0x48aa('0xd'),_0x48aa('0x14')],this[_0x48aa('0x1e')]=[_0x48aa('0x26'),_0x48aa('0x6'),_0x48aa('0x10'),_0x48aa('0x12'),'tableCellWidth',_0x48aa('0xa'),'tableCellBackgroundColor',_0x48aa('0x18'),_0x48aa('0x1')];}static get[_0x48aa('0x21')](){return _0x48aa('0x0');}[_0x48aa('0x2c')](){const _0x5f213d=this[_0x48aa('0x1b')]['plugins'][_0x48aa('0x8')](_0x48aa('0x1c'));if(this['editor'][_0x48aa('0x32')]['has'](_0x48aa('0x15'))){for(const _0x317ebe of this[_0x48aa('0x23')])_0x5f213d[_0x48aa('0x17')](_0x317ebe,(_0x331ca2,_0x22d1eb)=>{const _0x1d74aa=this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0xb')]['selection'][_0x48aa('0x19')]()[_0x48aa('0x1a')](_0x48aa('0x20'));this[_0x48aa('0x2e')](_0x317ebe,[_0x1d74aa],this[_0x48aa('0x23')],_0x48aa('0x23'),_0x331ca2,_0x22d1eb);});_0x5f213d[_0x48aa('0x2f')]['registerCustomCallback']('formatBlock',_0x48aa('0x23'),_0x48aa('0x13'),_0x5f213d[_0x48aa('0x2f')][_0x48aa('0x25')](_0x48aa('0x28'),null,'discard')),_0x5f213d['_suggestionFactory'][_0x48aa('0x9')](_0x48aa('0x28'),_0x48aa('0x23'),_0x48aa('0x5'),(_0x360186,_0x47d776)=>this['handleDiscardAction'](this[_0x48aa('0x23')],_0x360186,_0x47d776)),_0x5f213d[_0x48aa('0x2f')]['registerCustomCallback'](_0x48aa('0x28'),'tableProperties',_0x48aa('0x3'),()=>!0x1);}if(this[_0x48aa('0x1b')][_0x48aa('0x32')]['has']('TableCellPropertiesEditing')){for(const _0x343ba0 of this[_0x48aa('0x1e')])_0x5f213d[_0x48aa('0x17')](_0x343ba0,(_0x2d7800,_0x49008a)=>{const _0x265df1=this[_0x48aa('0x1b')][_0x48aa('0x32')][_0x48aa('0x8')](_0x48aa('0x1f'))[_0x48aa('0x4')](this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0xb')]['selection']);this[_0x48aa('0x2e')](_0x343ba0,_0x265df1,this[_0x48aa('0x1e')],_0x48aa('0x1e'),_0x2d7800,_0x49008a);});_0x5f213d['_suggestionFactory'][_0x48aa('0x9')](_0x48aa('0x28'),_0x48aa('0x1e'),'accept',_0x5f213d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f213d[_0x48aa('0x2f')][_0x48aa('0x9')](_0x48aa('0x28'),'tableCellProperties','discard',(_0x2cdef2,_0xde32ad)=>this[_0x48aa('0x29')](this[_0x48aa('0x1e')],_0x2cdef2,_0xde32ad)),_0x5f213d['_suggestionFactory'][_0x48aa('0x9')](_0x48aa('0x28'),_0x48aa('0x1e'),_0x48aa('0x3'),()=>!0x1);}_0x5f213d[_0x48aa('0x24')][_0x48aa('0x33')](_0x21883c=>this[_0x48aa('0xc')](_0x21883c));}[_0x48aa('0x2e')](_0x530d00,_0x2a5348,_0x2e21d4,_0x217b04,_0x4da29b,_0x480df1){const _0x580ca7=this[_0x48aa('0x1b')]['plugins'][_0x48aa('0x8')](_0x48aa('0x1c'));this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0xe')](_0x480df1['batch'],()=>{for(const _0x14d703 of _0x2a5348){if(this[_0x48aa('0x2a')](_0x14d703,_0x217b04))_0x4da29b(_0x480df1);else{const _0x5a7991={};for(const _0x306a1e of _0x2e21d4){const _0x55b13c=_0x14d703[_0x48aa('0x1d')](_0x306a1e);void 0x0!==_0x55b13c&&(_0x5a7991[_0x306a1e]=_0x55b13c);}_0x4da29b(_0x480df1),_0x580ca7['markBlockFormat'](_0x14d703,{'commandParams':[_0x5a7991]},[],_0x217b04);}}});}[_0x48aa('0x29')](_0xde5b94,_0x20cc08,_0x5a1e3a){const _0x3a347a=_0x20cc08[0x0]['start'][_0x48aa('0x30')],_0x5741a3=_0x5a1e3a['commandParams'][0x0];this[_0x48aa('0x1b')][_0x48aa('0x16')][_0x48aa('0x2d')](_0xda4070=>{for(const _0x38137f of _0xde5b94)void 0x0!==_0x5741a3[_0x38137f]?_0xda4070[_0x48aa('0x22')](_0x38137f,_0x5741a3[_0x38137f],_0x3a347a):_0xda4070['removeAttribute'](_0x38137f,_0x3a347a);});}[_0x48aa('0xc')](_0x24a691){if(_0x24a691['data'])switch(_0x24a691[_0x48aa('0x2')]){case'tableProperties':return{'type':_0x48aa('0x31'),'content':_0x2c2033(this[_0x48aa('0x1b')][_0x48aa('0x7')],_0x48aa('0x2b'))};case _0x48aa('0x1e'):return{'type':_0x48aa('0x31'),'content':_0x2c2033(this[_0x48aa('0x1b')]['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x48aa('0x2a')](_0x55c7e8,_0x518b69){const _0x396c94=this[_0x48aa('0x1b')][_0x48aa('0x32')][_0x48aa('0x8')](_0x48aa('0x1c'));for(const _0xf86634 of _0x396c94[_0x48aa('0x11')]({'skipNotAttached':!0x0})){const _0x347de5=_0xf86634[_0x48aa('0xf')]();if(_0xf86634[_0x48aa('0x2')]===_0x518b69&&_0x347de5===_0x55c7e8)return _0xf86634;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bf5=['insertTemplate','get','plugins','TrackChangesEditing','editor'];(function(_0x124377,_0x2bf5af){const _0x171147=function(_0x54fbeb){while(--_0x54fbeb){_0x124377['push'](_0x124377['shift']());}};_0x171147(++_0x2bf5af);}(_0x2bf5,0xb0));const _0x1711=function(_0x124377,_0x2bf5af){_0x124377=_0x124377-0x0;let _0x171147=_0x2bf5[_0x124377];return _0x171147;};import{Plugin as _0x217ef0}from'ckeditor5/src/core.js';export default class vt extends _0x217ef0{['afterInit'](){const _0x54216c=this[_0x1711('0x3')];_0x54216c[_0x1711('0x1')]['has']('Template')&&_0x54216c[_0x1711('0x1')][_0x1711('0x0')](_0x1711('0x2'))['enableCommand'](_0x1711('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x523e=['isEqual','document','start','getNearestSelectionRange','forward','plugins','registerElementLabel','newRange','differ','_splitMarkerName','afterInit','has','TrackChangesEditing','model','end','registerPostFixer','nodeBefore','title-content','removeMarker','get','from','Title','locale','isTouching','isCollapsed','suggestion'];(function(_0x373a85,_0x523ec){const _0x18bd26=function(_0x4ab4d9){while(--_0x4ab4d9){_0x373a85['push'](_0x373a85['shift']());}};_0x18bd26(++_0x523ec);}(_0x523e,0x14c));const _0x18bd=function(_0x373a85,_0x523ec){_0x373a85=_0x373a85-0x0;let _0x18bd26=_0x523e[_0x373a85];return _0x18bd26;};import{Plugin as _0x177c69}from'ckeditor5/src/core.js';import{getTranslation as _0x46b6b7}from'../utils/common-translations.js';export default class Ct extends _0x177c69{[_0x18bd('0x10')](){const _0x1247e7=this['editor'];if(!_0x1247e7[_0x18bd('0xb')][_0x18bd('0x11')](_0x18bd('0x1')))return;const _0x42bee6=_0x1247e7[_0x18bd('0xb')][_0x18bd('0x19')](_0x18bd('0x12'));_0x42bee6['_descriptionFactory'][_0x18bd('0xc')](_0x18bd('0x17'),()=>_0x46b6b7(_0x1247e7[_0x18bd('0x2')],'ELEMENT_TITLE')),_0x1247e7[_0x18bd('0x13')][_0x18bd('0x7')][_0x18bd('0x15')](_0x1b2776=>{let _0x452d0c=!0x1;const _0x1e2715=Array[_0x18bd('0x0')](_0x1247e7[_0x18bd('0x13')][_0x18bd('0x7')][_0x18bd('0xe')]['getChangedMarkers']());for(const {name:_0x1a3364,data:_0x2c8e20}of _0x1e2715){const {group:_0x5440a6}=_0x42bee6[_0x18bd('0xf')](_0x1a3364);if(_0x18bd('0x5')!==_0x5440a6||!_0x2c8e20[_0x18bd('0xd')])continue;const _0x577188=_0x2c8e20[_0x18bd('0xd')],_0x38db55=_0x577188[_0x18bd('0x14')][_0x18bd('0x16')];if(!_0x38db55||!_0x38db55['is']('element',_0x18bd('0x17')))continue;if(!_0x577188[_0x18bd('0x8')][_0x18bd('0x3')](_0x577188[_0x18bd('0x14')]))continue;const _0x54c164=_0x1247e7['model']['schema'][_0x18bd('0x9')](_0x577188[_0x18bd('0x14')],_0x18bd('0xa'));if(_0x54c164&&_0x54c164[_0x18bd('0x4')]){const _0x44fc9d=_0x1b2776['createRange'](_0x577188[_0x18bd('0x8')],_0x54c164[_0x18bd('0x8')]);_0x44fc9d[_0x18bd('0x6')](_0x577188)||(_0x1b2776['updateMarker'](_0x1a3364,{'range':_0x44fc9d}),_0x452d0c=!0x0);}_0x452d0c||(_0x1b2776[_0x18bd('0x18')](_0x1a3364),_0x452d0c=!0x0);}return _0x452d0c;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c4d=['afterInit','redo','editor','plugins','get'];(function(_0x47d65d,_0x4c4de8){const _0x19da7b=function(_0x560d76){while(--_0x560d76){_0x47d65d['push'](_0x47d65d['shift']());}};_0x19da7b(++_0x4c4de8);}(_0x4c4d,0x192));const _0x19da=function(_0x47d65d,_0x4c4de8){_0x47d65d=_0x47d65d-0x0;let _0x19da7b=_0x4c4d[_0x47d65d];return _0x19da7b;};import{Plugin as _0x1da287}from'ckeditor5/src/core.js';export default class Dt extends _0x1da287{[_0x19da('0x3')](){const _0x5e80ab=this[_0x19da('0x0')],_0x167fe4=_0x5e80ab[_0x19da('0x1')][_0x19da('0x2')]('TrackChangesEditing');_0x5e80ab['plugins']['has']('UndoEditing')&&(_0x167fe4['enableCommand']('undo'),_0x167fe4['enableCommand'](_0x19da('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d25=['get','getCustomProperty','type','name','listIndent','isLimit','parent','isContent','test','item','includes','addHighlight','markerRange','mapper','span','markerName','previousPosition','toViewElement','isBlock','activeMarkers','toViewPosition','push','isAtEnd','getItems','nextSibling','consumable','element','addClass','start','hasAttribute','ck-suggestion-marker-','TrackChangesEditing','writer','schema','getAttribute','elementEnd','listItem'];(function(_0x2da7ee,_0x4d25aa){const _0x255d98=function(_0x371353){while(--_0x371353){_0x2da7ee['push'](_0x2da7ee['shift']());}};_0x255d98(++_0x4d25aa);}(_0x4d25,0x123));const _0x255d=function(_0x2da7ee,_0x4d25aa){_0x2da7ee=_0x2da7ee-0x0;let _0x255d98=_0x4d25[_0x2da7ee];return _0x255d98;};export function getRangesWithAttribute(_0x2f7ec6,_0x3a26c3,_0x5ec468){const _0xc3f17=[];for(const _0x45bce4 of _0x3a26c3[_0x255d('0x1c')]())_0x45bce4[_0x255d('0x22')](_0x2f7ec6)&&_0xc3f17[_0x255d('0x1a')](_0x5ec468['createRangeOn'](_0x45bce4));return _0xc3f17;}export function getElementsAffectedByListItemRename(_0x4deff0){const _0x5d312a=[];if(_0x4deff0['is'](_0x255d('0x1f'),'listItem')){let _0x5ec0d0=_0x4deff0[_0x255d('0x1d')];for(;_0x5ec0d0&&_0x5ec0d0['is']('element',_0x255d('0x4'))&&_0x5ec0d0[_0x255d('0x2')](_0x255d('0x9'))>0x0;)_0x5d312a[_0x255d('0x1a')](_0x5ec0d0),_0x5ec0d0=_0x5ec0d0[_0x255d('0x1d')];}return _0x5d312a;}export function downcastSplitMergeMarker(_0x36f9ac,_0x2b6fbf,{showActiveMarker:_0x462e7e=!0x0}={}){const _0x20a70b=_0x36f9ac['plugins'][_0x255d('0x5')](_0x255d('0x24'));return(_0x392d6c,_0x430aee,_0x293522)=>{if(!_0x293522[_0x255d('0x1e')][_0x255d('0xd')](_0x430aee[_0x255d('0x11')],_0x392d6c[_0x255d('0x8')]))return;const _0x4b2003=_0x430aee[_0x255d('0x11')]['getWalker'](),_0x3c5932=_0x430aee['markerRange'][_0x255d('0x21')],_0x4a32bd=_0x36f9ac['model'][_0x255d('0x1')];let _0x4d8338=null,_0x3b22be=null,_0x49c05b=!0x1,_0x286aad=!0x1;for(const _0x3cd7b1 of _0x4b2003){const _0x34a547=_0x3cd7b1[_0x255d('0xe')];_0x49c05b=_0x49c05b||_0x4a32bd[_0x255d('0xc')](_0x34a547);const _0x5ac5f2=_0x293522[_0x255d('0x12')][_0x255d('0x16')](_0x34a547);if(_0x5ac5f2&&_0x5ac5f2[_0x255d('0x6')](_0x255d('0x10')))return;_0x255d('0x3')==_0x3cd7b1[_0x255d('0x7')]&&(_0x4a32bd[_0x255d('0x17')](_0x34a547)&&!_0x4a32bd[_0x255d('0xa')](_0x34a547)&&(_0x34a547[_0x255d('0x1d')]||_0x3c5932[_0x255d('0x1b')]?_0x4d8338&&_0x4d8338[_0x255d('0xb')]==_0x34a547||(_0x4d8338=_0x34a547,_0x181ac4(_0x3cd7b1[_0x255d('0x15')]),_0x286aad=!0x0):_0x3b22be=_0x3b22be||_0x3cd7b1[_0x255d('0x15')]));}function _0x181ac4(_0x3b7d0a){const _0x3fb7f8=_0x293522[_0x255d('0x0')]['createUIElement'](_0x255d('0x13'),{'class':_0x255d('0x23')+_0x2b6fbf}),_0x1fd0a9=_0x293522[_0x255d('0x12')][_0x255d('0x19')](_0x3b7d0a);_0x462e7e&&_0x20a70b[_0x255d('0x18')][_0x255d('0xf')](_0x430aee[_0x255d('0x14')])&&_0x293522[_0x255d('0x0')][_0x255d('0x20')]('ck-suggestion-marker--active',_0x3fb7f8),_0x293522['writer']['insert'](_0x1fd0a9,_0x3fb7f8),_0x293522['mapper']['bindElementToMarker'](_0x3fb7f8,_0x430aee['markerName']);}_0x49c05b||_0x286aad||!_0x3b22be||_0x181ac4(_0x3b22be);};}
|