@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.0.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/README.md +0 -1
- package/build/track-changes.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +4 -0
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +4 -0
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +4 -0
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +4 -0
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +4 -0
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +4 -0
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +4 -0
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +4 -0
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +4 -0
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +4 -0
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +4 -0
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +4 -0
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +4 -0
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +4 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +4 -0
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +4 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +4 -0
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +4 -0
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +4 -0
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +4 -0
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +4 -0
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +4 -0
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +4 -0
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +4 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +4 -0
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +4 -0
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +4 -0
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +4 -0
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +4 -0
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +4 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +4 -0
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +4 -0
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +4 -0
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +4 -0
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +4 -0
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +4 -0
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +4 -0
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +4 -0
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +4 -0
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +4 -0
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +2 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +4 -0
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +4 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +4 -0
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +4 -0
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +4 -0
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +4 -0
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +4 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +4 -0
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -0
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +11 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +14 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +4 -0
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +4 -0
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +4 -0
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -0
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +2 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +4 -0
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31c1=['document','editing','isInContent','createRangeOn','insertion','root','clipboardOutput','length','options','row','Users','newRange','markerToHighlight','reduce','deletion','model','selection','every','join','accept','ck-suggestion-marker','subType','_getCoordsForCells','endColumn','differ','getSuggestions','getAllAdjacentSuggestions','tableCellBorderWidth','columnInsertionIndexes','documentSelection','registerPostFixer','tablePasteColumn','first','name','return','end','_suggestionFactory','view','fromEntries','tablePasteCell','type','setAttribute','table','removeColumns','editor','getChangedMarkers','change','for','element','insertColumns','getRowIndexes','wrap','commands','startsWith','author','suggestion:formatBlock:tablePasteCell','columnInsertionRanges','position','from','redo','has','*Replace\x20table\x20cells*','oldRange','nodeAfter','set','insertRows','createRange','createRangeIn','attributes','last','suggestionLoaded','formatBlock','register','isEmpty','get','value','getTableIfOnlyTableInContent','stop','getAttributes','ck-suggestion-marker--active','hasSuggestion','insert','containsRange','discard','insertContent','previous','updateMarker','markerName','nextSibling','suggestion','listenTo','deletionRanges','unwrap','_replaceTableSlotCell','getSelectionAffectedTableCells','columns','tableCellSuggestion','removeMarker','showSuggestionHighlights','conversion','elementToElement','push','high','findAncestor','endRow','getChildren','markMultiRangeDeletion','filter','insertionRanges','paragraph','markerAttributes','fill','move','_descriptionFactory','suggestion-td','trackChanges','previousSibling','_tablePostFixingSubtypes','TableClipboard','remove','$graveyard','getSuggestion','entries','getChild','map','tableCellBorderColor','some','markMultiRangeInsertion','column','_splitMarkerName','getSuggestionCallback','rowInsertionIndexes','tablePaste','getMarkers','tablePasteChainId','getContainedElement','createTableWalker','createElement','getRange','plugins','includes','find','add','tablePasteRow','ck-suggestion-marker-insertion','cell','cells','editingDowncast','forceDefaultExecution','low','registerCustomCallback','markers','markMultiRangeBlockFormat','getChanges'];(function(_0x59a627,_0x31c102){const _0x259239=function(_0x3f6e38){while(--_0x3f6e38){_0x59a627['push'](_0x59a627['shift']());}};_0x259239(++_0x31c102);}(_0x31c1,0x1dc));const _0x2592=function(_0x59a627,_0x31c102){_0x59a627=_0x59a627-0x0;let _0x259239=_0x31c1[_0x59a627];return _0x259239;};import{getTranslation as _0x2868a1}from'../utils/common-translations';import{Plugin as _0x54b11f}from'ckeditor5/src/core';import{uid as _0x2154cf,priorities as _0x102079}from'ckeditor5/src/utils';import _0x220b99 from'./table';const le=[_0x2592('0xd'),_0x2592('0x6f'),'tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ae=Object[_0x2592('0x18')](le[_0x2592('0x6e')](_0x35277c=>[_0x35277c,null]));export default class kt extends _0x54b11f{static get['requires'](){return[_0x220b99];}['afterInit'](){const _0x32626d=this['editor'];if(!_0x32626d[_0x2592('0x7d')][_0x2592('0x2e')](_0x2592('0x68')))return;const _0x54f3e9=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')]('TrackChangesEditing'),_0x3819f7=_0x32626d['plugins']['get']('TableUtils'),_0x384c2d=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')](_0x220b99),_0xd40646=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')]('TableClipboard');_0x384c2d[_0x2592('0x67')]['push']('tablePasteRow',_0x2592('0x11')),_0x32626d[_0x2592('0x1')]['schema'][_0x2592('0x3a')](_0x2592('0x52'),{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x32626d['conversion'][_0x2592('0x56')]({'model':'tableCellSuggestion','view':_0x2592('0x64')});let _0x4b24bf=null;_0x32626d[_0x2592('0x1')]['on'](_0x2592('0x46'),(_0x207600,_0x54a0eb)=>{const [_0x40323c,_0x544d74]=_0x54a0eb,_0x14359d=_0x54a0eb[_0x54a0eb[_0x2592('0x93')]-0x1];_0x14359d&&_0x14359d[_0x2592('0x86')]||_0x54f3e9['_isForcedDefaultExecutionBlock']||this[_0x2592('0x1e')][_0x2592('0x26')][_0x2592('0x3c')](_0x2592('0x65'))[_0x2592('0x3d')]&&function(_0x478858,_0x5dbae0,_0x21cac6,_0x97ecdf,_0x401cc7){if(_0x5dbae0&&!_0x5dbae0['is'](_0x2592('0xf')))return!0x1;const _0x33424a=_0x401cc7[_0x2592('0x3e')](_0x478858,_0x21cac6);if(!_0x33424a||!fe(_0x33424a,void 0x0,_0x97ecdf))return!0x1;const _0x272a09=_0x97ecdf[_0x2592('0x50')](_0x21cac6[_0x2592('0x8c')][_0x2592('0x2')]);if(!_0x272a09[_0x2592('0x93')])return!0x1;const _0x4da702=_0x272a09[0x0][_0x2592('0x59')](_0x2592('0x1c')),_0x1d5167=_0x97ecdf[_0x2592('0x24')](_0x272a09),_0x47e957=_0x97ecdf['getColumnIndexes'](_0x272a09),_0x234d78={'startRow':_0x1d5167[_0x2592('0x12')],'endRow':_0x1d5167[_0x2592('0x37')],'startColumn':_0x47e957['first'],'endColumn':_0x47e957[_0x2592('0x37')]};return 0x1==_0x272a09[_0x2592('0x93')]&&(_0x234d78[_0x2592('0x5a')]+=_0x97ecdf['getRows'](_0x33424a)-0x1,_0x234d78[_0x2592('0x9')]+=_0x97ecdf['getColumns'](_0x33424a)-0x1),fe(_0x4da702,_0x234d78,_0x97ecdf);}(_0x40323c,_0x544d74,_0x32626d[_0x2592('0x1')],_0x3819f7,_0xd40646)&&(_0x207600[_0x2592('0x3f')](),_0x4b24bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x32626d[_0x2592('0x1')][_0x2592('0x20')](()=>{_0x32626d['model'][_0x2592('0x46')](_0x54a0eb[0x0],_0x54a0eb[0x1],_0x54a0eb[0x2],{'forceDefaultExecution':!0x0});const _0x13efe8=_0x2154cf(),{rowInsertionRanges:_0x266b6f,columnInsertionRanges:_0x4c1787,insertionRanges:_0x4fccfc,deletionRanges:_0x35fef3,cells:_0x3e1c}=_0x4b24bf;_0x266b6f[_0x2592('0x93')]&&_0x54f3e9[_0x2592('0x71')](_0x266b6f,_0x2592('0x81'),{'tablePasteChainId':_0x13efe8}),_0x4c1787['length']&&_0x54f3e9[_0x2592('0x71')](_0x4c1787,'tablePasteColumn',{'tablePasteChainId':_0x13efe8}),_0x4fccfc[_0x2592('0x93')]&&_0x54f3e9[_0x2592('0x71')](_0x4fccfc,_0x2592('0x76'),{'tablePasteChainId':_0x13efe8,'skipNestingCheck':!0x0}),_0x35fef3[_0x2592('0x93')]&&_0x54f3e9[_0x2592('0x5c')](_0x35fef3,_0x2592('0x76'),{'tablePasteChainId':_0x13efe8,'skipNestingCheck':!0x0});const _0x3d7a57=_0x54f3e9[_0x2592('0x8a')](_0x3e1c[_0x2592('0x6e')](({element:_0x3f2b47})=>_0x3f2b47),{'formatGroupId':_0x2154cf()},[],_0x2592('0x19'),{'tablePasteChainId':_0x13efe8});if(_0x3d7a57){const _0xf25804=_0x3d7a57[_0x2592('0x77')](),_0x1d3c6f=[];for(const {element:_0x5d896c,attributes:_0x4b83f0}of _0x3e1c){if(!_0x4b83f0)continue;const _0x24a24e=_0x32626d[_0x2592('0x1')][_0x2592('0x8f')](_0x5d896c),_0x31b46f=_0xf25804[_0x2592('0x7f')](_0x12ebea=>_0x12ebea[_0x2592('0x7c')]()['isEqual'](_0x24a24e));_0x31b46f&&_0x1d3c6f[_0x2592('0x57')]([_0x31b46f[_0x2592('0x13')],_0x4b83f0]);}_0x1d3c6f['length']&&_0x3d7a57[_0x2592('0x1b')](_0x2592('0x60'),Object['fromEntries'](_0x1d3c6f));}_0x4b24bf=null;}));},{'priority':_0x102079[_0x2592('0x58')]+0xa}),_0x32626d['plugins'][_0x2592('0x3c')](_0x2592('0x68'))['on'](_0x2592('0x4f'),(_0x410fe6,_0xa1fd34)=>{const [_0x464e58,_0x2f3bda,,_0x2114ae]=_0xa1fd34;if(!_0x4b24bf)return;_0x410fe6[_0x2592('0x3f')]();const _0x50a7cf=_0x464e58[_0x2592('0x83')],_0x399c4c=_0x2f3bda,_0x5539ba=ce(_0x50a7cf),_0x5cefbb=ce(_0x399c4c);_0x410fe6[_0x2592('0x14')]=_0x50a7cf;let _0x409aa6=null,_0x91fb50=null;if(_0x5cefbb||_0x5539ba){if(_0x5539ba&&!_0x5cefbb){_0x2114ae[_0x2592('0x69')](_0x50a7cf[_0x2592('0x6d')](0x0));for(const _0x26cfd8 of Array[_0x2592('0x2c')](_0x399c4c[_0x2592('0x5b')]()))_0x2114ae[_0x2592('0x43')](_0x26cfd8,_0x50a7cf,_0x2592('0x15'));const _0x215cc8=_0x4b24bf[_0x2592('0x75')][_0x2592('0x7e')](_0x464e58[_0x2592('0x95')]),_0x8cbf17=_0x4b24bf[_0x2592('0xe')][_0x2592('0x7e')](_0x464e58[_0x2592('0x72')]);_0x215cc8||_0x8cbf17||(_0x409aa6=_0x2114ae[_0x2592('0x35')](_0x50a7cf));}else _0x5cefbb&&!_0x5539ba&&(_0x91fb50=_0x2114ae[_0x2592('0x35')](_0x50a7cf));}else{const _0x2647da=_0x2114ae[_0x2592('0x7b')](_0x2592('0x52')),_0x315178=_0x2114ae['createElement']('tableCellSuggestion');_0x2114ae[_0x2592('0x25')](_0x2114ae[_0x2592('0x35')](_0x50a7cf),_0x315178),_0x2114ae['insert'](_0x2647da,_0x50a7cf,0x0);for(const _0x3d89d2 of Array[_0x2592('0x2c')](_0x399c4c['getChildren']()))_0x2114ae[_0x2592('0x43')](_0x3d89d2,_0x2647da,_0x2592('0x15'));_0x409aa6=_0x2114ae[_0x2592('0x8f')](_0x2647da),_0x91fb50=_0x2114ae[_0x2592('0x8f')](_0x315178);}const _0x13b394=Array[_0x2592('0x2c')](_0x399c4c[_0x2592('0x40')]())[_0x2592('0x5d')](([_0x2faa13])=>le[_0x2592('0x7e')](_0x2faa13));_0x4b24bf[_0x2592('0x84')][_0x2592('0x57')]({'element':_0x50a7cf,'attributes':_0x13b394[_0x2592('0x93')]?Object[_0x2592('0x18')](_0x13b394):null}),_0x409aa6&&_0x4b24bf[_0x2592('0x5e')][_0x2592('0x57')](_0x409aa6),_0x91fb50&&_0x4b24bf[_0x2592('0x4d')][_0x2592('0x57')](_0x91fb50);},{'priority':_0x2592('0x58')}),_0x3819f7['on'](_0x2592('0x23'),(_0x1d1d14,_0xcbacef)=>{const [_0x24284a,_0x1786bc={}]=_0xcbacef;if(!_0x4b24bf)return;const _0xb11cde=_0x1786bc['at']||0x0,_0x38980e=_0x1786bc[_0x2592('0x51')]||0x1;_0x4b24bf[_0x2592('0xe')]=new Array(_0x38980e)[_0x2592('0x61')](_0xb11cde)[_0x2592('0x6e')]((_0x20d8f8,_0x28c5dc)=>_0x20d8f8+_0x28c5dc);for(const {cell:_0x381f8c}of _0x3819f7[_0x2592('0x7a')](_0x24284a,{'startColumn':_0xb11cde,'endColumn':_0xb11cde+_0x38980e-0x1}))_0x4b24bf[_0x2592('0x2a')][_0x2592('0x57')](_0x32626d[_0x2592('0x1')]['createRangeOn'](_0x381f8c));},{'priority':_0x2592('0x87')}),_0x3819f7['on'](_0x2592('0x33'),(_0x514eb1,_0x3a9c3c)=>{const [_0x57825f,_0x3bbaba={}]=_0x3a9c3c;if(!_0x4b24bf)return;const _0x32d7ba=_0x3bbaba['at']||0x0,_0x737cca=_0x3bbaba['rows']||0x1;_0x4b24bf[_0x2592('0x75')]=new Array(_0x737cca)[_0x2592('0x61')](_0x32d7ba)[_0x2592('0x6e')]((_0x214e9c,_0x8a0d86)=>_0x214e9c+_0x8a0d86);for(const {cell:_0x157cce}of _0x3819f7[_0x2592('0x7a')](_0x57825f,{'startRow':_0x32d7ba,'endRow':_0x32d7ba+_0x737cca-0x1}))_0x4b24bf['rowInsertionRanges'][_0x2592('0x57')](_0x32626d[_0x2592('0x1')][_0x2592('0x8f')](_0x157cce));},{'priority':_0x2592('0x87')}),_0x54f3e9[_0x2592('0x63')]['registerDescriptionCallback'](_0x235185=>{if(_0x235185[_0x2592('0x7')]&&_0x235185['subType'][_0x2592('0x27')](_0x2592('0x76')))return _0x235185[_0x2592('0x47')]?{}:{'type':_0x2592('0x90'),'content':_0x2868a1(_0x32626d['locale'],_0x2592('0x2f'))};});const _0x2d6720=()=>{};for(const _0xe589d2 of[_0x2592('0x76'),_0x2592('0x11'),_0x2592('0x81'),'tablePasteCell'])_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')]('insertion',_0xe589d2,_0x2592('0x4'),_0x2d6720),_0x54f3e9['_suggestionFactory']['registerCustomCallback']('deletion',_0xe589d2,_0x2592('0x4'),_0x2d6720);_0x54f3e9['_suggestionFactory'][_0x2592('0x88')](_0x2592('0x39'),'tablePasteCell',_0x2592('0x45'),_0x2d6720),_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x2592('0x39'),'tablePasteCell','accept',(_0xc7f673,_0x3f9a5d,_0xa73e35)=>{const _0x1f633b=_0xc7f673[_0x2592('0x6e')](_0x2364ad=>_0x2364ad[_0x2592('0x79')]())[_0x2592('0x5d')](_0x22c161=>_0x22c161),_0x10984c=new Map(_0x1f633b['map'](_0x5a77eb=>[_0x5a77eb,null]));if(_0x4b24bf)for(const {element:_0x2cdd00,attributes:_0xd55331}of _0x4b24bf[_0x2592('0x84')])_0xd55331&&_0x10984c['set'](_0x2cdd00,_0xd55331);else{if(_0xa73e35&&_0xa73e35[_0x2592('0x60')])for(const [_0x4c6858,_0x457418]of Object[_0x2592('0x6c')](_0xa73e35[_0x2592('0x60')])){const _0x18df85=_0x32626d[_0x2592('0x1')][_0x2592('0x89')][_0x2592('0x3c')](_0x4c6858),_0x21ed3c=_0x18df85?_0x18df85[_0x2592('0x7c')]()[_0x2592('0x79')]():null;_0x21ed3c&&_0x10984c[_0x2592('0x32')](_0x21ed3c,_0x457418);}}_0x32626d[_0x2592('0x1')][_0x2592('0x20')](_0x867f34=>{for(const [_0x312e33,_0x3662a3]of _0x10984c)_0x867f34['setAttributes']({...ae,..._0x3662a3},_0x312e33);});});const _0x573003=(_0x1f21ff,_0x16b982)=>{_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x1f21ff,'tablePaste',_0x16b982,(_0x3ccb28,_0x224b0e,_0x2aa069)=>{_0x32626d['model']['change'](_0x9a9abb=>{const _0x21b939=[];for(const _0x17c4cb of _0x3ccb28){const _0x524115=_0x17c4cb['start'][_0x2592('0x31')];_0x524115['is'](_0x2592('0x22'),_0x2592('0x52'))&&_0x21b939[_0x2592('0x57')](_0x524115);}_0x54f3e9['_suggestionFactory'][_0x2592('0x74')](_0x1f21ff,null,_0x16b982)(_0x3ccb28,_0x224b0e,_0x2aa069);for(const _0x17b2b0 of _0x21b939)_0x2592('0x6a')!=_0x17b2b0[_0x2592('0x91')]['rootName']&&_0x9a9abb[_0x2592('0x4e')](_0x17b2b0);});});};_0x573003(_0x2592('0x90'),'accept'),_0x573003(_0x2592('0x90'),_0x2592('0x45')),_0x573003(_0x2592('0x0'),_0x2592('0x5')),_0x573003('deletion',_0x2592('0x45')),_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x2592('0x90'),'tablePasteRow',_0x2592('0x45'),_0x582e4f=>{const _0x207648=_0x582e4f['map'](_0x1b8bce=>_0x1b8bce[_0x2592('0x79')]()),_0x2b50a8=_0x207648[0x0][_0x2592('0x59')](_0x2592('0x1c')),{minRow:_0x486715,maxRow:_0xc4c7f4}=_0x384c2d[_0x2592('0x8')](_0x207648);_0x3819f7['removeRows'](_0x2b50a8,{'at':_0x486715,'rows':_0xc4c7f4-_0x486715+0x1});}),_0x54f3e9[_0x2592('0x16')][_0x2592('0x88')](_0x2592('0x90'),_0x2592('0x11'),'discard',_0x4f19f2=>{const _0xfe5f7c=_0x4f19f2[_0x2592('0x6e')](_0x55c1ad=>_0x55c1ad['getContainedElement']()),_0x65e379=_0xfe5f7c[0x0][_0x2592('0x59')](_0x2592('0x1c')),{minColumn:_0x29a42d,maxColumn:_0x1c721a}=_0x384c2d[_0x2592('0x8')](_0xfe5f7c);_0x3819f7[_0x2592('0x1d')](_0x65e379,{'at':_0x29a42d,'columns':_0x1c721a-_0x29a42d+0x1});});const _0x5924ac=(_0x4ddf8d,_0x352043)=>{if(!_0x352043['subType']||!_0x352043[_0x2592('0x7')][_0x2592('0x27')]('tablePaste'))return;const _0x329926=_0x352043['attributes'][_0x2592('0x78')],_0x16109d=_0x54f3e9[_0x2592('0xb')]()[_0x2592('0x5d')](_0x4a57d5=>_0x4a57d5[_0x2592('0x8e')]&&_0x4a57d5['attributes']&&_0x4a57d5[_0x2592('0x36')][_0x2592('0x78')]==_0x329926);_0x16109d[_0x2592('0x93')]&&_0x352043[_0x2592('0xc')]()['length']!=_0x16109d['length']&&_0x16109d[_0x2592('0x99')]((_0x4defb9,_0x37b963)=>(_0x4defb9['next']=_0x37b963,_0x37b963[_0x2592('0x47')]=_0x4defb9,_0x37b963));};function _0x1a1c9c(_0x52ae42,_0x4361e9=!0x0){const {id:_0x2be7fc}=_0x54f3e9[_0x2592('0x73')](_0x52ae42[_0x2592('0x49')]),_0x3c4e1c=[_0x2592('0x6'),_0x2592('0x82')],_0x199e07=_0x54f3e9['activeMarkers'][_0x2592('0x7e')](_0x52ae42['markerName']);return _0x199e07&&_0x3c4e1c['push'](_0x2592('0x41')),{'classes':_0x3c4e1c,'attributes':{'data-suggestion':_0x2be7fc},'priority':_0x199e07&&_0x4361e9?0xbc2:0xbb8};}_0x54f3e9['on'](_0x2592('0x38'),_0x5924ac,{'priority':'high'}),_0x54f3e9['on']('suggestionUnloaded',_0x5924ac,{'priority':_0x2592('0x58')}),_0x32626d[_0x2592('0x1')][_0x2592('0x8c')]['registerPostFixer'](()=>{let _0x3d02bf=!0x1;const _0xbe5c04=Array[_0x2592('0x2c')](_0x32626d['model'][_0x2592('0x8c')][_0x2592('0xa')][_0x2592('0x1f')]());for(const {name:_0x2117a7,data:_0x396faa}of _0xbe5c04){const {group:_0xd75e14,type:_0x1a8abd,id:_0xebd24b}=_0x54f3e9['_splitMarkerName'](_0x2117a7);if(_0x2592('0x4b')!=_0xd75e14||'deletion'!=_0x1a8abd||_0x396faa[_0x2592('0x30')])continue;if(!_0x54f3e9[_0x2592('0x42')](_0xebd24b))continue;const _0x613e4e=_0x54f3e9[_0x2592('0x6b')](_0xebd24b)['getRanges'](),_0x102b3b=_0x32626d['plugins'][_0x2592('0x3c')]('Users')['me'];for(const _0x942021 of _0x54f3e9[_0x2592('0xb')]()){if(!_0x942021['isInContent']||_0x942021[_0x2592('0x28')]!=_0x102b3b)continue;if(_0x2592('0x39')!=_0x942021[_0x2592('0x1a')]||_0x2592('0x19')!=_0x942021[_0x2592('0x7')])continue;if(_0x942021['getRanges']()[_0x2592('0x3')](_0x5b1718=>_0x613e4e[_0x2592('0x70')](_0x3603da=>_0x3603da[_0x2592('0x44')](_0x5b1718,!0x0))))for(const _0x487461 of _0x942021['getAllAdjacentSuggestions']())_0x487461[_0x2592('0x8e')]&&(_0x487461[_0x2592('0x45')](),_0x3d02bf=!0x0);}}return _0x3d02bf;}),_0x32626d[_0x2592('0x1')][_0x2592('0x8c')]['registerPostFixer'](_0x31ecdf=>{const _0x1ac4d5=_0x32626d['commands']['get'](_0x2592('0x2d'));if(!_0x1ac4d5||!_0x1ac4d5['_createdBatches'][_0x2592('0x2e')](_0x31ecdf['batch']))return!0x1;let _0x4c6dca=!0x1;const _0x32f199=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')](_0x2592('0x96'))['me'],_0x5efc01=_0x32626d[_0x2592('0x1')][_0x2592('0x8c')][_0x2592('0xa')][_0x2592('0x8b')](),_0x4a726c=Array['from'](_0x32626d[_0x2592('0x1')][_0x2592('0x8c')]['differ'][_0x2592('0x1f')]())['filter'](({name:_0x5c149b,data:_0x152fb2})=>{const {group:_0x5de770,subType:_0xaee73a,authorId:_0x4e7060}=_0x54f3e9['_splitMarkerName'](_0x5c149b);return _0x2592('0x4b')==_0x5de770&&_0x2592('0x76')==_0xaee73a&&_0x4e7060==_0x32f199['id']&&!_0x152fb2[_0x2592('0x30')];});for(const _0x5522ce of _0x5efc01){if(_0x2592('0x43')!=_0x5522ce[_0x2592('0x1a')]||'tableCellSuggestion'!=_0x5522ce[_0x2592('0x13')]||0x1!=_0x5522ce[_0x2592('0x93')])continue;const _0x2e0a01=_0x31ecdf[_0x2592('0x34')](_0x5522ce[_0x2592('0x2b')],_0x5522ce['position']['getShiftedBy'](0x1));if(!_0x4a726c[_0x2592('0x7f')](({data:_0x20c711})=>_0x20c711['newRange']['isEqual'](_0x2e0a01)))for(const {name:_0x3312b9,data:_0x1f7105}of _0x4a726c)if(_0x2e0a01[_0x2592('0x44')](_0x1f7105[_0x2592('0x97')])){_0x31ecdf[_0x2592('0x48')](_0x3312b9,{'range':_0x2e0a01}),_0x4c6dca=!0x0;break;}}return _0x4c6dca;}),_0x32626d[_0x2592('0x1')]['document'][_0x2592('0x10')](_0x5a1acb=>{let _0x3e8423=!0x1;const _0x2045cb=_0x32626d[_0x2592('0x7d')][_0x2592('0x3c')]('Users')['me'],_0xf6b3d5=_0x54f3e9['getSuggestions']()[_0x2592('0x5d')](_0x425b99=>_0x425b99['isInContent']&&_0x425b99[_0x2592('0x28')]==_0x2045cb),_0x5eb211=new Set(),_0xfeb8ad=new Set();for(const _0x2e211d of _0xf6b3d5)if('tablePaste'==_0x2e211d[_0x2592('0x7')])for(const _0x3d39ca of _0x2e211d[_0x2592('0x77')]()){const _0x30e2f3=_0x3d39ca[_0x2592('0x7c')]()[_0x2592('0x79')]();if(_0x30e2f3){if(_0x30e2f3['is'](_0x2592('0x22'),'tableCellSuggestion')&&ce(_0x30e2f3)){_0x2e211d[_0x2592('0x53')](_0x3d39ca[_0x2592('0x13')]),_0x5eb211[_0x2592('0x80')](_0x30e2f3),_0x3e8423=!0x0;const _0x4cd645=_0x30e2f3[_0x2592('0x4a')],_0x478a70=_0x30e2f3[_0x2592('0x66')],_0x208699=_0x4cd645&&_0x4cd645['is'](_0x2592('0x22'),_0x2592('0x52')),_0x4fd15e=_0x478a70&&_0x478a70['is'](_0x2592('0x22'),'tableCellSuggestion');_0x208699&&!_0x5eb211[_0x2592('0x2e')](_0x4cd645)&&_0xfeb8ad[_0x2592('0x80')](_0x4cd645),_0x4fd15e&&!_0x5eb211[_0x2592('0x2e')](_0x478a70)&&_0xfeb8ad[_0x2592('0x80')](_0x478a70);}else _0x30e2f3['is'](_0x2592('0x22'),_0x2592('0x5f'))&&_0x30e2f3[_0x2592('0x3b')]&&(_0x2e211d[_0x2592('0x53')](_0x3d39ca[_0x2592('0x13')]),_0x3e8423=!0x0);}}else{if(_0x2592('0x19')==_0x2e211d[_0x2592('0x7')]){if(!_0x2e211d[_0x2592('0x36')]||!_0x2e211d[_0x2592('0x36')]['tablePasteChainId'])continue;const _0x36b890=_0x2e211d[_0x2592('0x36')][_0x2592('0x60')];if(_0x36b890&&Object['keys'](_0x36b890)['length'])continue;const _0x3f03a6=_0x2e211d[_0x2592('0x36')][_0x2592('0x78')];let _0x2b32f6=!0x0,_0x30e767=!0x0;for(const _0x50ed9a of _0xf6b3d5)if(_0x50ed9a[_0x2592('0x7')]&&_0x50ed9a[_0x2592('0x7')][_0x2592('0x27')]('tablePaste')){if(!_0x50ed9a[_0x2592('0x36')]['tablePasteChainId']){_0x30e767=!0x1;break;}if(_0x50ed9a['id']!=_0x2e211d['id']&&_0x50ed9a['attributes'][_0x2592('0x78')]==_0x3f03a6){_0x2b32f6=!0x1;break;}}_0x30e767&&_0x2b32f6&&(_0x2e211d['removeMarkers'](),_0x3e8423=!0x0);}}for(const _0x316fef of _0x5eb211)_0x5a1acb[_0x2592('0x69')](_0x316fef);for(const _0x277531 of _0xfeb8ad)_0x5a1acb['unwrap'](_0x277531);return _0x3e8423;}),_0x32626d[_0x2592('0x55')]['for'](_0x2592('0x85'))[_0x2592('0x98')]({'model':_0x2592('0x29'),'view':(_0x2416b8,_0x36225e)=>_0x1a1c9c(_0x2416b8),'converterPriority':'high'}),_0x32626d['conversion'][_0x2592('0x21')]('dataDowncast')[_0x2592('0x98')]({'model':_0x2592('0x29'),'view':(_0x1910d7,_0x23fdd5)=>_0x23fdd5[_0x2592('0x94')][_0x2592('0x54')]?_0x1a1c9c(_0x1910d7,!0x1):null,'converterPriority':_0x2592('0x58')});const _0xf6aeeb=_0x32626d[_0x2592('0x8d')][_0x2592('0x17')];this[_0x2592('0x4c')](_0xf6aeeb['document'],_0x2592('0x92'),(_0x4896a6,_0x38b407)=>{const _0x58595f=[];for(const _0x1517fe of _0xf6aeeb['createRangeIn'](_0x38b407['content'])['getItems']())_0x1517fe['is'](_0x2592('0x22'),_0x2592('0x64'))&&_0x58595f[_0x2592('0x57')](_0x1517fe);_0xf6aeeb['change'](_0x21bc54=>{for(const _0x5373ff of _0x58595f)_0x21bc54[_0x2592('0x62')](_0x21bc54[_0x2592('0x35')](_0x5373ff),_0x21bc54['createPositionBefore'](_0x5373ff)),_0x21bc54[_0x2592('0x69')](_0x5373ff);});});}}function ce(_0x56c501){if(_0x56c501[_0x2592('0x3b')])return!0x0;const _0x443766=_0x56c501[_0x2592('0x6d')](0x0);return _0x443766['is']('element',_0x2592('0x5f'))&&_0x443766['isEmpty'];}function fe(_0x98549d,_0xcf0bfc={},_0x461daa){for(const {isAnchor:_0x4b114e,cellHeight:_0x2f95fa,cellWidth:_0x153a38}of _0x461daa[_0x2592('0x7a')](_0x98549d,{'includeAllSlots':!0x0,..._0xcf0bfc}))if(!_0x4b114e||0x1!=_0x2f95fa||0x1!=_0x153a38)return!0x1;return!0x0;}
|
|
23
|
+
const _0x1651=['suggestion','push','getSuggestions','getRanges','name','getChangedMarkers','ck-suggestion-marker--active','hasSuggestion','dataDowncast','stop','markerToHighlight','filter','low','elementToElement','markerAttributes','markerName','tableCell','end','suggestionLoaded','insert','$graveyard','tableCellVerticalAlignment','fromEntries','rowInsertionRanges','markMultiRangeBlockFormat','ck-suggestion-marker','tableCellHorizontalAlignment','getTableIfOnlyTableInContent','model','differ','subType','last','map','tablePasteChainId','length','insertRows','tableCellBackgroundColor','element','schema','tableCellBorderColor','tablePasteCell','TrackChangesEditing','some','registerCustomCallback','content','startsWith','rows','markers','accept','editor','insertion','getSelectionAffectedTableCells','document','includes','rootName','removeMarkers','getChild','afterInit','findAncestor','next','columnInsertionIndexes','_getCoordsForCells','removeRows','removeMarker','getContainedElement','newRange','getShiftedBy','tableCellBorderWidth','first','markMultiRangeInsertion','options','getChildren','getAllAdjacentSuggestions','_splitMarkerName','requires','Users','table','position','remove','TableClipboard','suggestionUnloaded','registerPostFixer','fill','clipboardOutput','createTableWalker','cell','value','isEqual','getRows','_suggestionFactory','locale','getSuggestion','add','from','attributes','oldRange','type','getMarkers','cells','previous','endRow','nextSibling','set','deletion','tablePasteColumn','documentSelection','createRange','insertionRanges','tableCellSuggestion','change','column','redo','getChanges','formatBlock','markMultiRangeDeletion','createElement','_replaceTableSlotCell','rowInsertionIndexes','nodeAfter','_createdBatches','return','tablePasteRow','wrap','registerDescriptionCallback','updateMarker','discard','join','forceDefaultExecution','keys','deletionRanges','containsRange','editing','getRange','tableCellPadding','createRangeOn','TableUtils','get','high','suggestion:formatBlock:tablePasteCell','insertContent','start','isInContent','move','view','every','find','commands','conversion','paragraph','tablePaste','getSuggestionCallback','unwrap','plugins','getColumns','isEmpty','_descriptionFactory','listenTo','has','createRangeIn'];(function(_0x37756e,_0x165161){const _0xdc8659=function(_0x19196e){while(--_0x19196e){_0x37756e['push'](_0x37756e['shift']());}};_0xdc8659(++_0x165161);}(_0x1651,0x72));const _0xdc86=function(_0x37756e,_0x165161){_0x37756e=_0x37756e-0x0;let _0xdc8659=_0x1651[_0x37756e];return _0xdc8659;};import{getTranslation as _0x4cbe12}from'../utils/common-translations';import{Plugin as _0x25125e}from'ckeditor5/src/core';import{uid as _0x3ea129,priorities as _0x1114ae}from'ckeditor5/src/utils';import _0x4f33b5 from'./table';const le=[_0xdc86('0x70'),_0xdc86('0x54'),'tableCellBorderStyle',_0xdc86('0x47'),_0xdc86('0x42'),_0xdc86('0x51'),_0xdc86('0x13')],ae=Object['fromEntries'](le[_0xdc86('0x4d')](_0x2f7d37=>[_0x2f7d37,null]));export default class kt extends _0x25125e{static get[_0xdc86('0x77')](){return[_0x4f33b5];}[_0xdc86('0x66')](){const _0x120594=this[_0xdc86('0x5e')];if(!_0x120594[_0xdc86('0x26')]['has'](_0xdc86('0x7c')))return;const _0x461bb1=_0x120594[_0xdc86('0x26')][_0xdc86('0x16')](_0xdc86('0x56')),_0x45d226=_0x120594[_0xdc86('0x26')][_0xdc86('0x16')](_0xdc86('0x15')),_0x395b46=_0x120594[_0xdc86('0x26')][_0xdc86('0x16')](_0x4f33b5),_0x534393=_0x120594['plugins'][_0xdc86('0x16')](_0xdc86('0x7c'));_0x395b46['_tablePostFixingSubtypes']['push'](_0xdc86('0x7'),_0xdc86('0x95')),_0x120594[_0xdc86('0x49')][_0xdc86('0x53')]['register']('tableCellSuggestion',{'allowIn':_0xdc86('0x3d'),'allowContentOf':_0xdc86('0x3d'),'isLimit':!0x0}),_0x120594[_0xdc86('0x21')][_0xdc86('0x3a')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f3e5f=null;_0x120594['model']['on']('insertContent',(_0x12ec12,_0x3b6005)=>{const [_0xfce518,_0x27cdc9]=_0x3b6005,_0xdbf4e6=_0x3b6005[_0x3b6005[_0xdc86('0x4f')]-0x1];_0xdbf4e6&&_0xdbf4e6[_0xdc86('0xd')]||_0x461bb1['_isForcedDefaultExecutionBlock']||this['editor'][_0xdc86('0x20')][_0xdc86('0x16')]('trackChanges')[_0xdc86('0x83')]&&function(_0x243c40,_0x30881a,_0x45dd1c,_0x5d675b,_0x4a8373){if(_0x30881a&&!_0x30881a['is'](_0xdc86('0x96')))return!0x1;const _0x203e2c=_0x4a8373[_0xdc86('0x48')](_0x243c40,_0x45dd1c);if(!_0x203e2c||!fe(_0x203e2c,void 0x0,_0x5d675b))return!0x1;const _0x4e7077=_0x5d675b[_0xdc86('0x60')](_0x45dd1c[_0xdc86('0x61')]['selection']);if(!_0x4e7077[_0xdc86('0x4f')])return!0x1;const _0x3dc904=_0x4e7077[0x0][_0xdc86('0x67')](_0xdc86('0x79')),_0x46c89a=_0x5d675b['getRowIndexes'](_0x4e7077),_0x4552f2=_0x5d675b['getColumnIndexes'](_0x4e7077),_0x415cd5={'startRow':_0x46c89a[_0xdc86('0x71')],'endRow':_0x46c89a[_0xdc86('0x4c')],'startColumn':_0x4552f2[_0xdc86('0x71')],'endColumn':_0x4552f2[_0xdc86('0x4c')]};return 0x1==_0x4e7077[_0xdc86('0x4f')]&&(_0x415cd5[_0xdc86('0x91')]+=_0x5d675b[_0xdc86('0x85')](_0x203e2c)-0x1,_0x415cd5['endColumn']+=_0x5d675b[_0xdc86('0x27')](_0x203e2c)-0x1),fe(_0x3dc904,_0x415cd5,_0x5d675b);}(_0xfce518,_0x27cdc9,_0x120594[_0xdc86('0x49')],_0x45d226,_0x534393)&&(_0x12ec12[_0xdc86('0x36')](),_0x5f3e5f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x120594[_0xdc86('0x49')][_0xdc86('0x9a')](()=>{_0x120594[_0xdc86('0x49')][_0xdc86('0x19')](_0x3b6005[0x0],_0x3b6005[0x1],_0x3b6005[0x2],{'forceDefaultExecution':!0x0});const _0x584276=_0x3ea129(),{rowInsertionRanges:_0x1ce4c3,columnInsertionRanges:_0x5acc66,insertionRanges:_0x2da280,deletionRanges:_0x26ec3d,cells:_0x5285e3}=_0x5f3e5f;_0x1ce4c3[_0xdc86('0x4f')]&&_0x461bb1[_0xdc86('0x72')](_0x1ce4c3,_0xdc86('0x7'),{'tablePasteChainId':_0x584276}),_0x5acc66[_0xdc86('0x4f')]&&_0x461bb1[_0xdc86('0x72')](_0x5acc66,_0xdc86('0x95'),{'tablePasteChainId':_0x584276}),_0x2da280['length']&&_0x461bb1[_0xdc86('0x72')](_0x2da280,'tablePaste',{'tablePasteChainId':_0x584276,'skipNestingCheck':!0x0}),_0x26ec3d[_0xdc86('0x4f')]&&_0x461bb1[_0xdc86('0x0')](_0x26ec3d,_0xdc86('0x23'),{'tablePasteChainId':_0x584276,'skipNestingCheck':!0x0});const _0x90d0a2=_0x461bb1[_0xdc86('0x45')](_0x5285e3[_0xdc86('0x4d')](({element:_0x826920})=>_0x826920),{'formatGroupId':_0x3ea129()},[],_0xdc86('0x55'),{'tablePasteChainId':_0x584276});if(_0x90d0a2){const _0x24f81b=_0x90d0a2['getMarkers'](),_0x547b83=[];for(const {element:_0x4f7c4e,attributes:_0x2e704c}of _0x5285e3){if(!_0x2e704c)continue;const _0x8d0076=_0x120594[_0xdc86('0x49')]['createRangeOn'](_0x4f7c4e),_0x5b2a5f=_0x24f81b[_0xdc86('0x1f')](_0x333a26=>_0x333a26[_0xdc86('0x12')]()[_0xdc86('0x84')](_0x8d0076));_0x5b2a5f&&_0x547b83[_0xdc86('0x2e')]([_0x5b2a5f['name'],_0x2e704c]);}_0x547b83['length']&&_0x90d0a2['setAttribute'](_0xdc86('0x3b'),Object[_0xdc86('0x43')](_0x547b83));}_0x5f3e5f=null;}));},{'priority':_0x1114ae[_0xdc86('0x17')]+0xa}),_0x120594['plugins']['get'](_0xdc86('0x7c'))['on'](_0xdc86('0x2'),(_0x12e874,_0x105e85)=>{const [_0x5c994b,_0x4e383b,,_0x56d905]=_0x105e85;if(!_0x5f3e5f)return;_0x12e874[_0xdc86('0x36')]();const _0xff64fa=_0x5c994b[_0xdc86('0x82')],_0x212fb9=_0x4e383b,_0x2d8c3c=ce(_0xff64fa),_0x4562b7=ce(_0x212fb9);_0x12e874[_0xdc86('0x6')]=_0xff64fa;let _0x4496e4=null,_0x193688=null;if(_0x4562b7||_0x2d8c3c){if(_0x2d8c3c&&!_0x4562b7){_0x56d905[_0xdc86('0x7b')](_0xff64fa[_0xdc86('0x65')](0x0));for(const _0x2f1e36 of Array[_0xdc86('0x8a')](_0x212fb9[_0xdc86('0x74')]()))_0x56d905[_0xdc86('0x40')](_0x2f1e36,_0xff64fa,_0xdc86('0x3e'));const _0x31ed4c=_0x5f3e5f['rowInsertionIndexes'][_0xdc86('0x62')](_0x5c994b['row']),_0x2cfa1a=_0x5f3e5f['columnInsertionIndexes']['includes'](_0x5c994b[_0xdc86('0x9b')]);_0x31ed4c||_0x2cfa1a||(_0x4496e4=_0x56d905[_0xdc86('0x2c')](_0xff64fa));}else _0x4562b7&&!_0x2d8c3c&&(_0x193688=_0x56d905[_0xdc86('0x2c')](_0xff64fa));}else{const _0x1d6fc7=_0x56d905[_0xdc86('0x1')](_0xdc86('0x99')),_0x2d9132=_0x56d905[_0xdc86('0x1')](_0xdc86('0x99'));_0x56d905[_0xdc86('0x8')](_0x56d905['createRangeIn'](_0xff64fa),_0x2d9132),_0x56d905[_0xdc86('0x40')](_0x1d6fc7,_0xff64fa,0x0);for(const _0x2fdd95 of Array[_0xdc86('0x8a')](_0x212fb9['getChildren']()))_0x56d905[_0xdc86('0x40')](_0x2fdd95,_0x1d6fc7,'end');_0x4496e4=_0x56d905['createRangeOn'](_0x1d6fc7),_0x193688=_0x56d905[_0xdc86('0x14')](_0x2d9132);}const _0x37096c=Array[_0xdc86('0x8a')](_0x212fb9['getAttributes']())['filter'](([_0x372d64])=>le['includes'](_0x372d64));_0x5f3e5f['cells'][_0xdc86('0x2e')]({'element':_0xff64fa,'attributes':_0x37096c[_0xdc86('0x4f')]?Object[_0xdc86('0x43')](_0x37096c):null}),_0x4496e4&&_0x5f3e5f[_0xdc86('0x98')][_0xdc86('0x2e')](_0x4496e4),_0x193688&&_0x5f3e5f[_0xdc86('0xf')][_0xdc86('0x2e')](_0x193688);},{'priority':_0xdc86('0x17')}),_0x45d226['on']('insertColumns',(_0x40ddaa,_0x5a480a)=>{const [_0x58969b,_0x20a158={}]=_0x5a480a;if(!_0x5f3e5f)return;const _0x46630f=_0x20a158['at']||0x0,_0x110f31=_0x20a158['columns']||0x1;_0x5f3e5f[_0xdc86('0x69')]=new Array(_0x110f31)[_0xdc86('0x7f')](_0x46630f)[_0xdc86('0x4d')]((_0x3dc17f,_0x35c650)=>_0x3dc17f+_0x35c650);for(const {cell:_0x352197}of _0x45d226['createTableWalker'](_0x58969b,{'startColumn':_0x46630f,'endColumn':_0x46630f+_0x110f31-0x1}))_0x5f3e5f['columnInsertionRanges'][_0xdc86('0x2e')](_0x120594['model'][_0xdc86('0x14')](_0x352197));},{'priority':_0xdc86('0x39')}),_0x45d226['on'](_0xdc86('0x50'),(_0xdb8465,_0x2a6804)=>{const [_0x532468,_0x4bd168={}]=_0x2a6804;if(!_0x5f3e5f)return;const _0x3549f7=_0x4bd168['at']||0x0,_0x54285a=_0x4bd168[_0xdc86('0x5b')]||0x1;_0x5f3e5f[_0xdc86('0x3')]=new Array(_0x54285a)[_0xdc86('0x7f')](_0x3549f7)[_0xdc86('0x4d')]((_0x3b1a6c,_0x27102f)=>_0x3b1a6c+_0x27102f);for(const {cell:_0x607adb}of _0x45d226['createTableWalker'](_0x532468,{'startRow':_0x3549f7,'endRow':_0x3549f7+_0x54285a-0x1}))_0x5f3e5f[_0xdc86('0x44')][_0xdc86('0x2e')](_0x120594['model'][_0xdc86('0x14')](_0x607adb));},{'priority':_0xdc86('0x39')}),_0x461bb1[_0xdc86('0x29')][_0xdc86('0x9')](_0x1be9dc=>{if(_0x1be9dc['subType']&&_0x1be9dc[_0xdc86('0x4b')][_0xdc86('0x5a')](_0xdc86('0x23')))return _0x1be9dc[_0xdc86('0x90')]?{}:{'type':'insertion','content':_0x4cbe12(_0x120594[_0xdc86('0x87')],'*Replace\x20table\x20cells*')};});const _0x2ae768=()=>{};for(const _0x581f4f of[_0xdc86('0x23'),_0xdc86('0x95'),_0xdc86('0x7'),_0xdc86('0x55')])_0x461bb1[_0xdc86('0x86')][_0xdc86('0x58')]('insertion',_0x581f4f,_0xdc86('0xc'),_0x2ae768),_0x461bb1[_0xdc86('0x86')][_0xdc86('0x58')]('deletion',_0x581f4f,_0xdc86('0xc'),_0x2ae768);_0x461bb1[_0xdc86('0x86')][_0xdc86('0x58')](_0xdc86('0x9e'),_0xdc86('0x55'),_0xdc86('0xb'),_0x2ae768),_0x461bb1['_suggestionFactory'][_0xdc86('0x58')](_0xdc86('0x9e'),_0xdc86('0x55'),_0xdc86('0x5d'),(_0xe18a61,_0x41824c,_0x257c66)=>{const _0x222973=_0xe18a61[_0xdc86('0x4d')](_0x1434d2=>_0x1434d2[_0xdc86('0x6d')]())['filter'](_0x543e46=>_0x543e46),_0x278c56=new Map(_0x222973[_0xdc86('0x4d')](_0x5c9df2=>[_0x5c9df2,null]));if(_0x5f3e5f)for(const {element:_0x34a214,attributes:_0x207458}of _0x5f3e5f[_0xdc86('0x8f')])_0x207458&&_0x278c56[_0xdc86('0x93')](_0x34a214,_0x207458);else{if(_0x257c66&&_0x257c66[_0xdc86('0x3b')])for(const [_0x17ad1e,_0x390a14]of Object['entries'](_0x257c66[_0xdc86('0x3b')])){const _0x352d47=_0x120594[_0xdc86('0x49')][_0xdc86('0x5c')][_0xdc86('0x16')](_0x17ad1e),_0x37af29=_0x352d47?_0x352d47[_0xdc86('0x12')]()['getContainedElement']():null;_0x37af29&&_0x278c56['set'](_0x37af29,_0x390a14);}}_0x120594[_0xdc86('0x49')][_0xdc86('0x9a')](_0x3021ac=>{for(const [_0x2502ee,_0x411660]of _0x278c56)_0x3021ac['setAttributes']({...ae,..._0x411660},_0x2502ee);});});const _0x7a89a2=(_0x507491,_0xb90f3b)=>{_0x461bb1[_0xdc86('0x86')][_0xdc86('0x58')](_0x507491,_0xdc86('0x23'),_0xb90f3b,(_0x23548a,_0x3951e8,_0x4ccdf0)=>{_0x120594['model'][_0xdc86('0x9a')](_0x33ae5a=>{const _0x51d0fd=[];for(const _0x4eb86f of _0x23548a){const _0x3028c7=_0x4eb86f[_0xdc86('0x1a')][_0xdc86('0x4')];_0x3028c7['is'](_0xdc86('0x52'),_0xdc86('0x99'))&&_0x51d0fd[_0xdc86('0x2e')](_0x3028c7);}_0x461bb1[_0xdc86('0x86')][_0xdc86('0x24')](_0x507491,null,_0xb90f3b)(_0x23548a,_0x3951e8,_0x4ccdf0);for(const _0x14dd5c of _0x51d0fd)_0xdc86('0x41')!=_0x14dd5c['root'][_0xdc86('0x63')]&&_0x33ae5a[_0xdc86('0x25')](_0x14dd5c);});});};_0x7a89a2(_0xdc86('0x5f'),_0xdc86('0x5d')),_0x7a89a2(_0xdc86('0x5f'),_0xdc86('0xb')),_0x7a89a2('deletion',_0xdc86('0x5d')),_0x7a89a2(_0xdc86('0x94'),_0xdc86('0xb')),_0x461bb1[_0xdc86('0x86')][_0xdc86('0x58')](_0xdc86('0x5f'),_0xdc86('0x7'),_0xdc86('0xb'),_0xa4a5fa=>{const _0x20a5c8=_0xa4a5fa[_0xdc86('0x4d')](_0x5157ec=>_0x5157ec[_0xdc86('0x6d')]()),_0x44c88c=_0x20a5c8[0x0][_0xdc86('0x67')](_0xdc86('0x79')),{minRow:_0x2b6e6c,maxRow:_0x3c3229}=_0x395b46[_0xdc86('0x6a')](_0x20a5c8);_0x45d226[_0xdc86('0x6b')](_0x44c88c,{'at':_0x2b6e6c,'rows':_0x3c3229-_0x2b6e6c+0x1});}),_0x461bb1['_suggestionFactory'][_0xdc86('0x58')](_0xdc86('0x5f'),_0xdc86('0x95'),'discard',_0x567ab3=>{const _0x55c9f7=_0x567ab3[_0xdc86('0x4d')](_0x2f68cd=>_0x2f68cd['getContainedElement']()),_0x4120f5=_0x55c9f7[0x0][_0xdc86('0x67')]('table'),{minColumn:_0x2aa298,maxColumn:_0x29e4ab}=_0x395b46[_0xdc86('0x6a')](_0x55c9f7);_0x45d226['removeColumns'](_0x4120f5,{'at':_0x2aa298,'columns':_0x29e4ab-_0x2aa298+0x1});});const _0x5aceac=(_0x2020c7,_0x31fc58)=>{if(!_0x31fc58[_0xdc86('0x4b')]||!_0x31fc58[_0xdc86('0x4b')]['startsWith']('tablePaste'))return;const _0x2c4ca6=_0x31fc58['attributes']['tablePasteChainId'],_0x359374=_0x461bb1['getSuggestions']()['filter'](_0x386a3c=>_0x386a3c[_0xdc86('0x1b')]&&_0x386a3c[_0xdc86('0x8b')]&&_0x386a3c[_0xdc86('0x8b')][_0xdc86('0x4e')]==_0x2c4ca6);_0x359374[_0xdc86('0x4f')]&&_0x31fc58[_0xdc86('0x75')]()[_0xdc86('0x4f')]!=_0x359374[_0xdc86('0x4f')]&&_0x359374['reduce']((_0x4db334,_0x2ef919)=>(_0x4db334[_0xdc86('0x68')]=_0x2ef919,_0x2ef919[_0xdc86('0x90')]=_0x4db334,_0x2ef919));};function _0x1fe4b6(_0x2edc04,_0x15839d=!0x0){const {id:_0x3bdf50}=_0x461bb1[_0xdc86('0x76')](_0x2edc04[_0xdc86('0x3c')]),_0xea2331=[_0xdc86('0x46'),'ck-suggestion-marker-insertion'],_0x591a32=_0x461bb1['activeMarkers'][_0xdc86('0x62')](_0x2edc04[_0xdc86('0x3c')]);return _0x591a32&&_0xea2331[_0xdc86('0x2e')](_0xdc86('0x33')),{'classes':_0xea2331,'attributes':{'data-suggestion':_0x3bdf50},'priority':_0x591a32&&_0x15839d?0xbc2:0xbb8};}_0x461bb1['on'](_0xdc86('0x3f'),_0x5aceac,{'priority':'high'}),_0x461bb1['on'](_0xdc86('0x7d'),_0x5aceac,{'priority':_0xdc86('0x17')}),_0x120594['model'][_0xdc86('0x61')][_0xdc86('0x7e')](()=>{let _0x23455f=!0x1;const _0x895224=Array[_0xdc86('0x8a')](_0x120594['model'][_0xdc86('0x61')][_0xdc86('0x4a')][_0xdc86('0x32')]());for(const {name:_0xc30419,data:_0x265d4f}of _0x895224){const {group:_0x291e09,type:_0xbf7c91,id:_0x36925d}=_0x461bb1['_splitMarkerName'](_0xc30419);if(_0xdc86('0x2d')!=_0x291e09||_0xdc86('0x94')!=_0xbf7c91||_0x265d4f['oldRange'])continue;if(!_0x461bb1[_0xdc86('0x34')](_0x36925d))continue;const _0x8860c2=_0x461bb1[_0xdc86('0x88')](_0x36925d)[_0xdc86('0x30')](),_0x3ee976=_0x120594[_0xdc86('0x26')][_0xdc86('0x16')](_0xdc86('0x78'))['me'];for(const _0x5c35e6 of _0x461bb1[_0xdc86('0x2f')]()){if(!_0x5c35e6[_0xdc86('0x1b')]||_0x5c35e6['author']!=_0x3ee976)continue;if('formatBlock'!=_0x5c35e6[_0xdc86('0x8d')]||'tablePasteCell'!=_0x5c35e6[_0xdc86('0x4b')])continue;if(_0x5c35e6[_0xdc86('0x30')]()[_0xdc86('0x1e')](_0xbbcbe8=>_0x8860c2[_0xdc86('0x57')](_0x2f1274=>_0x2f1274[_0xdc86('0x10')](_0xbbcbe8,!0x0))))for(const _0x2a3764 of _0x5c35e6[_0xdc86('0x75')]())_0x2a3764[_0xdc86('0x1b')]&&(_0x2a3764['discard'](),_0x23455f=!0x0);}}return _0x23455f;}),_0x120594[_0xdc86('0x49')]['document'][_0xdc86('0x7e')](_0x5741d6=>{const _0x5ccf75=_0x120594[_0xdc86('0x20')][_0xdc86('0x16')](_0xdc86('0x9c'));if(!_0x5ccf75||!_0x5ccf75[_0xdc86('0x5')][_0xdc86('0x2b')](_0x5741d6['batch']))return!0x1;let _0x3f8403=!0x1;const _0x2b1d81=_0x120594[_0xdc86('0x26')][_0xdc86('0x16')]('Users')['me'],_0x424263=_0x120594['model']['document'][_0xdc86('0x4a')][_0xdc86('0x9d')](),_0x19c81f=Array[_0xdc86('0x8a')](_0x120594['model']['document']['differ'][_0xdc86('0x32')]())[_0xdc86('0x38')](({name:_0x1ae84b,data:_0x36d5ba})=>{const {group:_0x599e2d,subType:_0x244640,authorId:_0x2129d7}=_0x461bb1[_0xdc86('0x76')](_0x1ae84b);return'suggestion'==_0x599e2d&&'tablePaste'==_0x244640&&_0x2129d7==_0x2b1d81['id']&&!_0x36d5ba[_0xdc86('0x8c')];});for(const _0x5101a5 of _0x424263){if(_0xdc86('0x40')!=_0x5101a5[_0xdc86('0x8d')]||_0xdc86('0x99')!=_0x5101a5[_0xdc86('0x31')]||0x1!=_0x5101a5['length'])continue;const _0x3d606e=_0x5741d6[_0xdc86('0x97')](_0x5101a5[_0xdc86('0x7a')],_0x5101a5[_0xdc86('0x7a')][_0xdc86('0x6f')](0x1));if(!_0x19c81f['find'](({data:_0x4b8999})=>_0x4b8999[_0xdc86('0x6e')][_0xdc86('0x84')](_0x3d606e)))for(const {name:_0x2d83f3,data:_0x8871a1}of _0x19c81f)if(_0x3d606e[_0xdc86('0x10')](_0x8871a1[_0xdc86('0x6e')])){_0x5741d6[_0xdc86('0xa')](_0x2d83f3,{'range':_0x3d606e}),_0x3f8403=!0x0;break;}}return _0x3f8403;}),_0x120594[_0xdc86('0x49')][_0xdc86('0x61')][_0xdc86('0x7e')](_0x530762=>{let _0x5a43b0=!0x1;const _0x4c895b=_0x120594[_0xdc86('0x26')][_0xdc86('0x16')](_0xdc86('0x78'))['me'],_0x2034f6=_0x461bb1[_0xdc86('0x2f')]()[_0xdc86('0x38')](_0x132e32=>_0x132e32[_0xdc86('0x1b')]&&_0x132e32['author']==_0x4c895b),_0x2c3753=new Set(),_0x2b829a=new Set();for(const _0x17eaa8 of _0x2034f6)if(_0xdc86('0x23')==_0x17eaa8[_0xdc86('0x4b')])for(const _0x2e6db1 of _0x17eaa8[_0xdc86('0x8e')]()){const _0x45c11d=_0x2e6db1[_0xdc86('0x12')]()[_0xdc86('0x6d')]();if(_0x45c11d){if(_0x45c11d['is']('element','tableCellSuggestion')&&ce(_0x45c11d)){_0x17eaa8[_0xdc86('0x6c')](_0x2e6db1[_0xdc86('0x31')]),_0x2c3753[_0xdc86('0x89')](_0x45c11d),_0x5a43b0=!0x0;const _0x50226e=_0x45c11d[_0xdc86('0x92')],_0x447ce4=_0x45c11d['previousSibling'],_0x27eeda=_0x50226e&&_0x50226e['is'](_0xdc86('0x52'),_0xdc86('0x99')),_0x186304=_0x447ce4&&_0x447ce4['is'](_0xdc86('0x52'),_0xdc86('0x99'));_0x27eeda&&!_0x2c3753['has'](_0x50226e)&&_0x2b829a[_0xdc86('0x89')](_0x50226e),_0x186304&&!_0x2c3753[_0xdc86('0x2b')](_0x447ce4)&&_0x2b829a[_0xdc86('0x89')](_0x447ce4);}else _0x45c11d['is'](_0xdc86('0x52'),'paragraph')&&_0x45c11d[_0xdc86('0x28')]&&(_0x17eaa8[_0xdc86('0x6c')](_0x2e6db1[_0xdc86('0x31')]),_0x5a43b0=!0x0);}}else{if('tablePasteCell'==_0x17eaa8['subType']){if(!_0x17eaa8[_0xdc86('0x8b')]||!_0x17eaa8[_0xdc86('0x8b')][_0xdc86('0x4e')])continue;const _0x5a579e=_0x17eaa8['attributes'][_0xdc86('0x3b')];if(_0x5a579e&&Object[_0xdc86('0xe')](_0x5a579e)[_0xdc86('0x4f')])continue;const _0x129e21=_0x17eaa8['attributes'][_0xdc86('0x4e')];let _0x490ed3=!0x0,_0x4bd5e5=!0x0;for(const _0x5fe8e4 of _0x2034f6)if(_0x5fe8e4['subType']&&_0x5fe8e4[_0xdc86('0x4b')][_0xdc86('0x5a')](_0xdc86('0x23'))){if(!_0x5fe8e4[_0xdc86('0x8b')][_0xdc86('0x4e')]){_0x4bd5e5=!0x1;break;}if(_0x5fe8e4['id']!=_0x17eaa8['id']&&_0x5fe8e4['attributes'][_0xdc86('0x4e')]==_0x129e21){_0x490ed3=!0x1;break;}}_0x4bd5e5&&_0x490ed3&&(_0x17eaa8[_0xdc86('0x64')](),_0x5a43b0=!0x0);}}for(const _0x5934f3 of _0x2c3753)_0x530762[_0xdc86('0x7b')](_0x5934f3);for(const _0x239fa7 of _0x2b829a)_0x530762[_0xdc86('0x25')](_0x239fa7);return _0x5a43b0;}),_0x120594['conversion']['for']('editingDowncast')[_0xdc86('0x37')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x486485,_0x483ac5)=>_0x1fe4b6(_0x486485),'converterPriority':_0xdc86('0x17')}),_0x120594[_0xdc86('0x21')]['for'](_0xdc86('0x35'))[_0xdc86('0x37')]({'model':_0xdc86('0x18'),'view':(_0x4cc109,_0x52ab5c)=>_0x52ab5c[_0xdc86('0x73')]['showSuggestionHighlights']?_0x1fe4b6(_0x4cc109,!0x1):null,'converterPriority':_0xdc86('0x17')});const _0x5959b3=_0x120594[_0xdc86('0x11')][_0xdc86('0x1d')];this[_0xdc86('0x2a')](_0x5959b3[_0xdc86('0x61')],_0xdc86('0x80'),(_0x49d938,_0x4a27bd)=>{const _0xfe7002=[];for(const _0x349c1b of _0x5959b3[_0xdc86('0x2c')](_0x4a27bd[_0xdc86('0x59')])['getItems']())_0x349c1b['is']('element','suggestion-td')&&_0xfe7002[_0xdc86('0x2e')](_0x349c1b);_0x5959b3['change'](_0x1d57ed=>{for(const _0x207ee3 of _0xfe7002)_0x1d57ed[_0xdc86('0x1c')](_0x1d57ed['createRangeIn'](_0x207ee3),_0x1d57ed['createPositionBefore'](_0x207ee3)),_0x1d57ed[_0xdc86('0x7b')](_0x207ee3);});});}}function ce(_0xaddb9d){if(_0xaddb9d['isEmpty'])return!0x0;const _0xfae090=_0xaddb9d[_0xdc86('0x65')](0x0);return _0xfae090['is'](_0xdc86('0x52'),_0xdc86('0x22'))&&_0xfae090[_0xdc86('0x28')];}function fe(_0x539c8a,_0x8b663d={},_0x16c463){for(const {isAnchor:_0x4b5cb4,cellHeight:_0x1c4beb,cellWidth:_0x2daefe}of _0x16c463[_0xdc86('0x81')](_0x539c8a,{'includeAllSlots':!0x0,..._0x8b663d}))if(!_0x4b5cb4||0x1!=_0x1c4beb||0x1!=_0x2daefe)return!0x1;return!0x0;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2adb=['change','commandParams','selection','*Format:*\x20resize\x20table','handleResizeTableWidthCommand','discard','author','_suggestionFactory','getTableColumnsWidths','tableWidth','bind','enableCommand','registerCustomCallback','accept','afterInit','columnWidths','formatBlock','table','getColumnGroupElement','TableColumnResizeEditing','resizeTableWidth','getSuggestions','has','handleSuggestionDescription','resizeTable','formatGroupId','getContainedElement','model','TrackChangesEditing','subType','get','editor','getAttribute','registerDescriptionCallback','plugins','getSelectedElement'];(function(_0x4e44ca,_0x2adb4e){const _0x1d918c=function(_0x12eed0){while(--_0x12eed0){_0x4e44ca['push'](_0x4e44ca['shift']());}};_0x1d918c(++_0x2adb4e);}(_0x2adb,0x1ad));const _0x1d91=function(_0x4e44ca,_0x2adb4e){_0x4e44ca=_0x4e44ca-0x0;let _0x1d918c=_0x2adb[_0x4e44ca];return _0x1d918c;};import{Plugin as _0xe40963}from'ckeditor5/src/core';import{getTranslation as _0x12a82c}from'../utils/common-translations';export default class wt extends _0xe40963{[_0x1d91('0x11')](){if(!this[_0x1d91('0x22')][_0x1d91('0x1')][_0x1d91('0x19')](_0x1d91('0x16')))return;const _0x22a2cd=this[_0x1d91('0x22')][_0x1d91('0x1')]['get'](_0x1d91('0x1f'));_0x22a2cd[_0x1d91('0xe')](_0x1d91('0x17'),this[_0x1d91('0x7')][_0x1d91('0xd')](this)),_0x22a2cd[_0x1d91('0xe')]('resizeColumnWidths',this['handleResizeTableWidthCommand']['bind'](this)),_0x22a2cd['_suggestionFactory'][_0x1d91('0xf')](_0x1d91('0x13'),'resizeTable',_0x1d91('0x10'),_0x22a2cd[_0x1d91('0xa')]['getSuggestionCallback'](_0x1d91('0x13'),null,_0x1d91('0x8'))),_0x22a2cd[_0x1d91('0xa')][_0x1d91('0xf')]('formatBlock','resizeTable',_0x1d91('0x8'),_0x22a2cd[_0x1d91('0xa')]['getSuggestionCallback'](_0x1d91('0x13'),null,_0x1d91('0x10'))),_0x22a2cd['_descriptionFactory'][_0x1d91('0x0')](this[_0x1d91('0x1a')]['bind'](this));}[_0x1d91('0x7')](_0x43ca88,_0x36eaec){const _0x3ca976=this[_0x1d91('0x22')][_0x1d91('0x1')][_0x1d91('0x21')](_0x1d91('0x1f')),_0x17ce6a=this[_0x1d91('0x22')][_0x1d91('0x1')][_0x1d91('0x21')](_0x1d91('0x16')),_0x31d059=_0x36eaec[_0x1d91('0x14')]||this[_0x1d91('0x22')]['model']['document'][_0x1d91('0x5')][_0x1d91('0x2')]();this[_0x1d91('0x22')][_0x1d91('0x1e')][_0x1d91('0x3')](()=>{const _0x139023=_0x17ce6a[_0x1d91('0x15')](_0x31d059);let _0x2b5d80=_0x139023?_0x17ce6a[_0x1d91('0xb')](_0x139023):null,_0x3471d3=_0x31d059[_0x1d91('0x23')](_0x1d91('0xc'))||null;const _0x2051e8=_0x36eaec[_0x1d91('0xc')]||_0x3471d3,_0x296cc3=_0x36eaec[_0x1d91('0x12')]||_0x2b5d80,_0x376e01=this[_0x1d91('0x22')]['plugins'][_0x1d91('0x21')]('Users')['me'];for(const _0x3898a8 of _0x3ca976[_0x1d91('0x18')]()){const _0x4e50f8=_0x3898a8[_0x1d91('0x1d')]();if('resizeTable'===_0x3898a8[_0x1d91('0x20')]&&_0x4e50f8===_0x31d059){_0x3898a8[_0x1d91('0x9')]!==_0x376e01&&_0x3898a8[_0x1d91('0x8')]();const _0xd0fd6a=_0x3898a8['data'][_0x1d91('0x4')];_0x3471d3=_0xd0fd6a[0x0][_0x1d91('0xc')],_0x2b5d80=_0xd0fd6a[0x0][_0x1d91('0x12')];break;}}_0x43ca88({'table':_0x31d059,'tableWidth':_0x2051e8,'columnWidths':_0x296cc3}),_0x3ca976['markBlockFormat'](_0x31d059,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3471d3,'columnWidths':_0x2b5d80}],'formatGroupId':'resizeTable'},[],_0x1d91('0x1b'));});}[_0x1d91('0x1a')](_0x5db77d){const {data:_0x4b69a0}=_0x5db77d;if(_0x4b69a0&&_0x1d91('0x1b')===_0x4b69a0[_0x1d91('0x1c')]){const _0x43df1d=_0x1d91('0x6');return{'type':'format','content':_0x12a82c(this['editor']['locale'],_0x43df1d)};}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2865=['getChild','createTableWalker','formatBlock','markerName','value','downcastDispatcher','editing','writer','removeAttribute','FORMAT_HEADER_ROW','addMarker:suggestion','markBlockFormat','findAncestor','nodeAfter','table','removeClass','getCellLocation','setTableRowHeader','getSuggestion','unbindElementFromMarkerName','createPositionBefore','data','start','model','data-suggestion','index','format','name','plugins','cell','nodeBefore','removeMarker:suggestion','commandName','accept','getRowIndexes','get','getColumnIndexes','enableCommand','editor','parent','end','markerRange','getAttribute','bindElementToMarker','TrackChangesEditing','consumable','_acceptFormatSuggestionCallbackFactory','FORMAT_REGULAR_COLUMN','highest','TableEditing','*Format:*\x20%0','mapper','item','options','ck-suggestion-marker--active','has','showSuggestionHighlights','setTableColumnHeader','_suggestionFactory','createRange','commandParams','TableUtils','setAttribute','stop','forceValue','headingRows','from','registerDescriptionCallback','change','_splitMarkerName','selection','includes','document','childCount','afterInit','requires','commands','createPositionAfter','first','getSelectionAffectedTableCells','_descriptionFactory','FORMAT_REGULAR_ROW'];(function(_0x44c09c,_0x2865ce){const _0x541acf=function(_0x541b56){while(--_0x541b56){_0x44c09c['push'](_0x44c09c['shift']());}};_0x541acf(++_0x2865ce);}(_0x2865,0x185));const _0x541a=function(_0x44c09c,_0x2865ce){_0x44c09c=_0x44c09c-0x0;let _0x541acf=_0x2865[_0x44c09c];return _0x541acf;};import{Plugin as _0x5567c6}from'ckeditor5/src/core';import _0x325102 from'./table';import{getTranslation as _0x595569}from'../utils/common-translations';export default class pt extends _0x5567c6{static get[_0x541a('0xe')](){return[_0x325102];}[_0x541a('0xd')](){const _0x246aad=this[_0x541a('0x3b')];if(!_0x246aad['plugins'][_0x541a('0x4c')](_0x541a('0x46')))return;const _0x23dad3=_0x246aad['locale'],_0x2a84a1=_0x246aad[_0x541a('0x31')][_0x541a('0x38')](_0x541a('0x41')),_0x271592=_0x246aad[_0x541a('0x31')][_0x541a('0x38')](_0x541a('0x0')),_0x26bbe8=_0x246aad['plugins'][_0x541a('0x38')](_0x325102);function _0x8b56e({showActiveMarker:_0x382730=!0x0,setDataAttribute:_0x32c310=!0x0}={}){return(_0x354797,_0x27c071,_0x1a01aa)=>{const {type:_0xd5e71f,id:_0x394605}=_0x2a84a1[_0x541a('0x8')](_0x27c071[_0x541a('0x18')]),_0x313226=_0x2a84a1[_0x541a('0x27')](_0x394605);if(!_0x313226[_0x541a('0x2a')]||_0x541a('0x4e')!=_0x313226[_0x541a('0x2a')]['commandName'])return;if(_0x27c071[_0x541a('0x49')])return void _0x354797[_0x541a('0x2')]();if(!_0x1a01aa[_0x541a('0x42')]['consume'](_0x27c071[_0x541a('0x3e')],_0x354797[_0x541a('0x30')]))return;const _0x54031c=_0x27c071['markerRange'][_0x541a('0x2b')][_0x541a('0x22')],_0x3e785d=_0x27c071[_0x541a('0x3e')][_0x541a('0x3d')][_0x541a('0x33')],_0x22d151=_0x54031c[_0x541a('0x3c')][_0x541a('0x3c')],{column:_0xd25088}=_0x271592['getCellLocation'](_0x54031c),{column:_0x3782fa}=_0x271592[_0x541a('0x25')](_0x3e785d);for(let _0x562ccf=_0xd25088;_0x562ccf<=_0x3782fa;_0x562ccf++){const _0x267ef8=_0x271592[_0x541a('0x16')](_0x22d151,{'column':_0x562ccf,'includeAllSlots':!0x1});for(const _0x4e2311 of _0x267ef8){const _0x54020d=_0x4e2311[_0x541a('0x32')],_0x49f19e=_0x1a01aa[_0x541a('0x48')]['toViewElement'](_0x54020d);_0x1a01aa['writer']['addClass']('ck-suggestion-marker-'+_0xd5e71f,_0x49f19e),_0x32c310&&_0x1a01aa['writer'][_0x541a('0x1')](_0x541a('0x2d'),_0x394605,_0x49f19e),_0x1a01aa[_0x541a('0x48')][_0x541a('0x40')](_0x49f19e,_0x27c071[_0x541a('0x18')]),_0x382730&&(_0x2a84a1['activeMarkers'][_0x541a('0xa')](_0x27c071[_0x541a('0x18')])?_0x1a01aa['writer']['addClass'](_0x541a('0x4b'),_0x49f19e):_0x1a01aa['writer'][_0x541a('0x24')]('ck-suggestion-marker--active',_0x49f19e));}}};}_0x2a84a1[_0x541a('0x3a')](_0x541a('0x26'),(_0x43d9f3,_0x12da19)=>{const _0x377f90=_0x271592['getSelectionAffectedTableCells'](_0x246aad[_0x541a('0x2c')][_0x541a('0xb')]['selection']),_0x1f920b=_0x271592[_0x541a('0x37')](_0x377f90),_0x1fb8bd=_0x377f90[0x0][_0x541a('0x21')](_0x541a('0x23')),_0x456a33=_0x1fb8bd[_0x541a('0x3f')](_0x541a('0x4'))||0x0,_0x324951=_0x12da19&&null!==_0x12da19[_0x541a('0x3')]?_0x12da19[_0x541a('0x3')]:!_0x246aad[_0x541a('0xf')][_0x541a('0x38')](_0x541a('0x26'))['value'],_0x188b06=_0x324951?_0x1f920b['last']:_0x1f920b['first'],_0x24190c=_0x1fb8bd[_0x541a('0x15')](_0x188b06);let _0x44215f;if(_0x324951){const _0x1a1529=_0x1fb8bd[_0x541a('0x15')](_0x456a33);if(_0x24190c[_0x541a('0x2e')]<_0x1a1529[_0x541a('0x2e')])return;_0x44215f=_0x246aad[_0x541a('0x2c')][_0x541a('0x50')](_0x246aad[_0x541a('0x2c')][_0x541a('0x29')](_0x1a1529[_0x541a('0x15')](0x0)),_0x246aad[_0x541a('0x2c')][_0x541a('0x10')](_0x24190c[_0x541a('0x15')](_0x24190c[_0x541a('0xc')]-0x1)));}else{const _0x54c420=_0x1fb8bd[_0x541a('0x15')](_0x456a33-0x1);if(!_0x54c420)return;_0x44215f=_0x246aad['model']['createRange'](_0x246aad['model'][_0x541a('0x29')](_0x24190c[_0x541a('0x15')](0x0)),_0x246aad[_0x541a('0x2c')][_0x541a('0x10')](_0x54c420[_0x541a('0x15')](_0x54c420[_0x541a('0xc')]-0x1)));}_0x246aad['model'][_0x541a('0x7')](()=>{_0x2a84a1[_0x541a('0x20')](_0x44215f,{'commandName':_0x541a('0x26'),'commandParams':[{'forceValue':_0x324951}]},[],'setTableRowHeader');});}),_0x2a84a1[_0x541a('0x3a')](_0x541a('0x4e'),(_0x1642ef,_0x3a79ae)=>{const _0x1c18b3=_0x246aad[_0x541a('0x31')]['get']('TableUtils'),_0x138fa6=_0x1c18b3[_0x541a('0x12')](_0x246aad['model']['document'][_0x541a('0x9')]),_0x31a6ab=_0x1c18b3[_0x541a('0x39')](_0x138fa6),_0xcf4bd1=_0x138fa6[0x0]['findAncestor'](_0x541a('0x23')),_0x53df61=_0xcf4bd1[_0x541a('0x3f')]('headingColumns')||0x0,_0x247936=_0x3a79ae&&null!==_0x3a79ae[_0x541a('0x3')]?_0x3a79ae[_0x541a('0x3')]:!_0x246aad[_0x541a('0xf')]['get'](_0x541a('0x4e'))[_0x541a('0x19')];let _0x323b98;const _0x52f132=_0xcf4bd1[_0x541a('0x15')](0x0),_0x21e74b=_0x247936?_0x31a6ab['last']:_0x31a6ab[_0x541a('0x11')],_0x136ea5=_0x1c18b3[_0x541a('0x16')](_0xcf4bd1,{'startRow':0x0,'column':_0x21e74b,'includeAllSlots':!0x1}),_0x20748e=Array[_0x541a('0x5')](_0x136ea5)[0x0][_0x541a('0x32')];if(_0x247936){const _0x3a0af4=_0x52f132['getChild'](_0x53df61);if(_0x20748e['isBefore'](_0x3a0af4))return;_0x323b98=_0x246aad[_0x541a('0x2c')][_0x541a('0x50')](_0x246aad[_0x541a('0x2c')][_0x541a('0x29')](_0x3a0af4),_0x246aad['model'][_0x541a('0x10')](_0x20748e));}else{const _0x27b175=_0x52f132[_0x541a('0x15')](_0x53df61-0x1);if(!_0x27b175)return;_0x323b98=_0x246aad[_0x541a('0x2c')]['createRange'](_0x246aad[_0x541a('0x2c')][_0x541a('0x29')](_0x20748e),_0x246aad[_0x541a('0x2c')][_0x541a('0x10')](_0x27b175));}_0x246aad[_0x541a('0x2c')][_0x541a('0x7')](()=>{_0x2a84a1[_0x541a('0x20')](_0x323b98,{'commandName':_0x541a('0x4e'),'commandParams':[{'forceValue':_0x247936}]},[],'setTableColumnHeader');});}),_0x246aad[_0x541a('0x1b')][_0x541a('0x1a')]['on'](_0x541a('0x1f'),_0x8b56e(),{'priority':_0x541a('0x45')}),_0x246aad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2af489,_0x538e8f,_0x11ea70)=>{_0x11ea70[_0x541a('0x4a')][_0x541a('0x4d')]&&_0x8b56e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2af489,_0x538e8f,_0x11ea70);},{'priority':_0x541a('0x45')}),_0x246aad[_0x541a('0x1b')][_0x541a('0x1a')]['on'](_0x541a('0x34'),(_0x6a157c,_0x4772ee,_0x3e3557)=>{const {type:_0x438648,id:_0xed2e41}=_0x2a84a1['_splitMarkerName'](_0x4772ee[_0x541a('0x18')]),_0x58a75b=_0x2a84a1[_0x541a('0x27')](_0xed2e41);if(!_0x58a75b['data']||_0x541a('0x4e')!=_0x58a75b['data'][_0x541a('0x35')])return;const _0x4d5f94=_0x3e3557[_0x541a('0x48')]['markerNameToElements'](_0x4772ee[_0x541a('0x18')]);if(_0x4d5f94)for(const _0x4c88bf of _0x4d5f94)_0x3e3557[_0x541a('0x1c')][_0x541a('0x24')]('ck-suggestion-marker-'+_0x438648,_0x4c88bf),_0x3e3557['writer'][_0x541a('0x24')](_0x541a('0x4b'),_0x4c88bf),_0x3e3557[_0x541a('0x1c')][_0x541a('0x1d')](_0x541a('0x2d'),_0x4c88bf),_0x3e3557[_0x541a('0x48')][_0x541a('0x28')](_0x4c88bf,_0x4772ee[_0x541a('0x18')]);},{'priority':_0x541a('0x45')}),_0x2a84a1[_0x541a('0x13')][_0x541a('0x6')](_0x372910=>{const {data:_0x326a27}=_0x372910;if(_0x326a27){if(_0x541a('0x26')==_0x326a27['commandName']){const _0x40a97c=_0x326a27[_0x541a('0x51')][0x0]['forceValue'];return _0x31dfed(_0x595569(_0x23dad3,_0x40a97c?_0x541a('0x1e'):_0x541a('0x14')));}if(_0x541a('0x4e')==_0x326a27[_0x541a('0x35')]){const _0x52d296=_0x326a27[_0x541a('0x51')][0x0]['forceValue'];return _0x31dfed(_0x595569(_0x23dad3,_0x52d296?'FORMAT_HEADER_COLUMN':_0x541a('0x44')));}}function _0x31dfed(_0x57f7cb){return{'type':_0x541a('0x2f'),'content':_0x595569(_0x23dad3,_0x541a('0x47'),_0x57f7cb)};}});const _0x2042c1=_0x26bbe8[_0x541a('0x43')]();_0x2a84a1[_0x541a('0x4f')]['registerCustomCallback'](_0x541a('0x17'),_0x541a('0x26'),'accept',_0x2042c1),_0x2a84a1[_0x541a('0x4f')]['registerCustomCallback'](_0x541a('0x17'),_0x541a('0x4e'),_0x541a('0x36'),_0x2042c1);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2275=['change','mergeTableCells','push','accept','trackChanges','splitTableCellHorizontally','containsRange','enableCommand','registerDescriptionCallback','low','afterInit','mergeTableCellUp','getSuggestions','editor','author','isEnabled','setSelection','getFirstPosition','TableUtils','getSelectionAffectedTableCells','from','TableEditing','*Split\x20cell:*\x20horizontally','TrackChangesEditing','map','filter','table','splitTableCellVertically','set:isEnabled','document','mergeTableCellRight','type','add','plugins','refresh','stop','has','_acceptFormatSuggestionCallbackFactory','markMultiRangeBlockFormat','commands','insertion','size','createTableWalker','value','$graveyard','cell','length','fromRange','element','requires','mergeTableCellDown','model','format','detach','find','direction','forceDefaultExecution','isInContent','selection','mergeTableCellLeft','formatBlock','highest','root','_descriptionFactory','commandName','getAncestors','getRanges','locale','createRangeOn','getCellLocation','_areMergableCells','horizontally','_tablePostFixingSubtypes','_suggestionFactory','_areSelectedCellsMergable','execute','get'];(function(_0x146a77,_0x2275bb){const _0x2b9004=function(_0x2260ef){while(--_0x2260ef){_0x146a77['push'](_0x146a77['shift']());}};_0x2b9004(++_0x2275bb);}(_0x2275,0xb9));const _0x2b90=function(_0x146a77,_0x2275bb){_0x146a77=_0x146a77-0x0;let _0x2b9004=_0x2275[_0x146a77];return _0x2b9004;};import{Plugin as _0xa1ccec}from'ckeditor5/src/core';import _0x351fbc from'./table';import{LiveRange as _0x568f5d}from'ckeditor5/src/engine';import{getTranslation as _0x150c1b}from'../utils/common-translations';export default class dt extends _0xa1ccec{static get[_0x2b90('0x12')](){return[_0x351fbc];}[_0x2b90('0x38')](){const _0x4c0d73=this[_0x2b90('0x3b')],_0x291e3c=_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')],_0x2326cd=_0x4c0d73[_0x2b90('0x24')];if(!_0x4c0d73[_0x2b90('0x2')][_0x2b90('0x5')](_0x2b90('0x43')))return;const _0x5cffa1=_0x4c0d73['plugins'][_0x2b90('0x2d')](_0x2b90('0x45')),_0x4d45c7=_0x4c0d73[_0x2b90('0x2')][_0x2b90('0x2d')]('TableUtils'),_0x245faf=_0x4c0d73[_0x2b90('0x2')][_0x2b90('0x2d')](_0x351fbc);_0x245faf[_0x2b90('0x29')][_0x2b90('0x30')]('mergeTableCells'),_0x5cffa1[_0x2b90('0x35')](_0x2b90('0x2f'),()=>{const _0x32331d=_0x4d45c7['getSelectionAffectedTableCells'](_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')]);_0x4c0d73['model'][_0x2b90('0x2e')](()=>{_0x5cffa1[_0x2b90('0x7')](_0x32331d,{'commandName':_0x2b90('0x2f'),'commandParams':[]},[],_0x2b90('0x2f'));});}),_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')]('mergeTableCells')['on'](_0x2b90('0x2c'),(_0x58620f,_0x273665)=>{_0x4c0d73[_0x2b90('0x8')]['get'](_0x2b90('0x32'))[_0x2b90('0xc')]&&(_0x273665[_0x2b90('0xf')]>0x0&&_0x273665[_0x273665[_0x2b90('0xf')]-0x1]&&_0x273665[_0x273665[_0x2b90('0xf')]-0x1][_0x2b90('0x19')]||_0x5cffa1['_isForcedDefaultExecutionBlock']||this[_0x2b90('0x2b')]()||_0x58620f[_0x2b90('0x4')]());},{'priority':_0x2b90('0x1e')});for(const _0x2efea2 of[_0x2b90('0x39'),'mergeTableCellRight',_0x2b90('0x13'),_0x2b90('0x1c')]){const _0x53b15e=_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x2efea2);_0x5cffa1[_0x2b90('0x35')](_0x2efea2,()=>{const _0x39abf1=_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')][_0x2b90('0x3f')]()[_0x2b90('0x22')]()[_0x2b90('0x17')](_0x59dd9e=>_0x59dd9e['is'](_0x2b90('0x11'),'tableCell')),_0x17c9db=_0x53b15e[_0x2b90('0xc')];_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x2e')](()=>{_0x5cffa1[_0x2b90('0x7')]([_0x39abf1,_0x17c9db],{'commandName':'mergeTableCells','commandParams':[]},[],_0x2b90('0x2f'));});});}for(const _0x4294ae of[_0x2b90('0x49'),_0x2b90('0x33')]){const _0x560949=_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x4294ae);_0x5cffa1[_0x2b90('0x35')](_0x4294ae,()=>{const _0x24c75d=_0x4d45c7[_0x2b90('0x41')](_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')])[0x0],_0x52cdce=_0x24c75d['findAncestor'](_0x2b90('0x48')),{column:_0x1686f9,row:_0xc87f22}=_0x4d45c7[_0x2b90('0x26')](_0x24c75d);let _0x48e3f8=[];if(_0x2b90('0x28')==_0x560949[_0x2b90('0x18')]){const _0x160e21=_0x4d45c7[_0x2b90('0xb')](_0x52cdce,{'startRow':_0xc87f22,'endRow':_0xc87f22,'includeAllSlots':!0x0});_0x48e3f8=Array['from'](_0x160e21)[_0x2b90('0x46')](_0x34c29c=>_0x34c29c[_0x2b90('0xe')]);}else{const _0x3558f8=_0x4d45c7[_0x2b90('0xb')](_0x52cdce,{'column':_0x1686f9,'includeAllSlots':!0x0});_0x48e3f8=Array['from'](_0x3558f8)[_0x2b90('0x46')](_0x2baab8=>_0x2baab8[_0x2b90('0xe')]);}_0x4c0d73['model'][_0x2b90('0x2e')](_0xad188=>{_0x5cffa1['markBlockFormat'](_0xad188[_0x2b90('0x25')](_0x24c75d),{'commandName':_0x4294ae,'commandParams':[]},_0x48e3f8,_0x4294ae);});});}_0x5cffa1[_0x2b90('0x20')][_0x2b90('0x36')](_0x19243f=>{const {data:_0x7bde98}=_0x19243f;if(_0x7bde98)return'mergeTableCells'==_0x7bde98[_0x2b90('0x21')]?{'type':'format','content':_0x150c1b(_0x2326cd,'*Merge\x20cells*')}:void 0x0;}),_0x5cffa1[_0x2b90('0x20')][_0x2b90('0x36')](_0x32b4b0=>{const {data:_0x3e604f}=_0x32b4b0;if(_0x3e604f)return'splitTableCellVertically'==_0x3e604f['commandName']?{'type':_0x2b90('0x15'),'content':_0x150c1b(_0x2326cd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3e604f['commandName']?{'type':'format','content':_0x150c1b(_0x2326cd,_0x2b90('0x44'))}:void 0x0;});const _0x312499=_0x245faf[_0x2b90('0x6')]();for(const _0x45aea5 of[_0x2b90('0x39'),_0x2b90('0x4c'),_0x2b90('0x13'),_0x2b90('0x1c')])_0x5cffa1[_0x2b90('0x2a')]['registerCustomCallback'](_0x2b90('0x1d'),_0x45aea5,'accept',_0x312499);for(const _0x198d5e of['splitTableCellVertically','splitTableCellHorizontally'])_0x5cffa1[_0x2b90('0x2a')]['registerCustomCallback'](_0x2b90('0x1d'),_0x198d5e,'accept',_0x312499);_0x5cffa1[_0x2b90('0x2a')]['registerCustomCallback']('formatBlock',_0x2b90('0x2f'),_0x2b90('0x31'),_0x2f1713=>{_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x2e')](_0x17b7f0=>{const _0x1ef690=Array[_0x2b90('0x42')](_0x291e3c['getRanges']())['map'](_0x45d101=>_0x568f5d[_0x2b90('0x10')](_0x45d101));_0x17b7f0[_0x2b90('0x3e')](_0x2f1713),_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x2b90('0x2f'))[_0x2b90('0x3')](),_0x4c0d73['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c45bc=_0x1ef690[_0x2b90('0x47')](_0x21c769=>_0x2b90('0xd')!=_0x21c769[_0x2b90('0x1f')]['rootName']);_0x1c45bc[_0x2b90('0xf')]>0x0&&_0x17b7f0[_0x2b90('0x3e')](_0x1c45bc);for(const _0x7371a9 of _0x1ef690)_0x7371a9[_0x2b90('0x16')]();});});for(const _0x4622ea of[_0x2b90('0x39'),_0x2b90('0x13'),_0x2b90('0x1c'),_0x2b90('0x4c')]){const _0x5a2a63=_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x4622ea);_0x5a2a63['on'](_0x2b90('0x4a'),(_0x565a60,_0x433d41,_0x3f29a2)=>{if(_0x3f29a2){const _0x59ffea=_0x4c0d73[_0x2b90('0x14')]['document'][_0x2b90('0x1b')][_0x2b90('0x3f')]()[_0x2b90('0x22')]()[_0x2b90('0x17')](_0xcdf9cf=>_0xcdf9cf['is'](_0x2b90('0x11'),'tableCell'));this['_areMergableCells'](_0x5a2a63[_0x2b90('0xc')],_0x59ffea)||(_0x565a60['return']=!0x1,_0x565a60['stop']());}},{'priority':_0x2b90('0x37')});}}[_0x2b90('0x2b')](){const _0x1be891=this[_0x2b90('0x3b')]['commands'][_0x2b90('0x2d')]('mergeTableCells'),_0x3dee9e=this[_0x2b90('0x3b')][_0x2b90('0x2')][_0x2b90('0x2d')](_0x2b90('0x40'));if(!_0x1be891[_0x2b90('0x3d')])return!0x1;const _0x196422=_0x3dee9e[_0x2b90('0x41')](this[_0x2b90('0x3b')][_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')]);for(const _0x9438f5 of _0x196422)for(const _0x1922ed of _0x196422)if(_0x9438f5!=_0x1922ed&&!this[_0x2b90('0x27')](_0x9438f5,_0x1922ed))return!0x1;return!0x0;}[_0x2b90('0x27')](_0x4d67e0,_0x53bf30){const _0x1c650a=this['editor'][_0x2b90('0x2')]['get'](_0x2b90('0x45')),_0xdd6aaf=this['editor'][_0x2b90('0x14')][_0x2b90('0x25')](_0x4d67e0),_0x1b9653=this['editor'][_0x2b90('0x14')][_0x2b90('0x25')](_0x53bf30),_0xb69dec=new Set(),_0xc77dab=new Set();for(const _0x246c88 of _0x1c650a[_0x2b90('0x3a')]())if((_0x2b90('0x9')==_0x246c88[_0x2b90('0x0')]||'deletion'==_0x246c88['type']||_0x2b90('0x2f')==_0x246c88['subType'])&&_0x246c88[_0x2b90('0x1a')])for(const _0x20f56e of _0x246c88[_0x2b90('0x23')]())_0x20f56e[_0x2b90('0x34')](_0xdd6aaf,!0x0)&&_0xb69dec[_0x2b90('0x1')](_0x246c88[_0x2b90('0x0')]+':'+_0x246c88['author']['id']),_0x20f56e[_0x2b90('0x34')](_0x1b9653,!0x0)&&_0xc77dab[_0x2b90('0x1')](_0x246c88[_0x2b90('0x0')]+':'+_0x246c88[_0x2b90('0x3c')]['id']);if(_0xb69dec[_0x2b90('0xa')]!=_0xc77dab[_0x2b90('0xa')])return!0x1;for(const _0x46aec2 of _0xb69dec)if(!_0xc77dab['has'](_0x46aec2))return!0x1;return!0x0;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59f1=['TrackChangesEditing','locale','_descriptionFactory','plugins','get','ELEMENT_TABLE_OF_CONTENTS','enableCommand','afterInit','commands','editor','registerElementLabel','insertTableOfContents','tableOfContents'];(function(_0x26537a,_0x59f155){const _0x1d8c4b=function(_0x28a133){while(--_0x28a133){_0x26537a['push'](_0x26537a['shift']());}};_0x1d8c4b(++_0x59f155);}(_0x59f1,0x105));const _0x1d8c=function(_0x26537a,_0x59f155){_0x26537a=_0x26537a-0x0;let _0x1d8c4b=_0x59f1[_0x26537a];return _0x1d8c4b;};import{Plugin as _0x4526a7}from'ckeditor5/src/core';import{getTranslation as _0x1086b5}from'../utils/common-translations';export default class bt extends _0x4526a7{[_0x1d8c('0x6')](){const _0x24fbab=this[_0x1d8c('0x8')];if(!_0x24fbab[_0x1d8c('0x7')][_0x1d8c('0x3')]('insertTableOfContents'))return;_0x24fbab['plugins'][_0x1d8c('0x3')](_0x1d8c('0xc'))[_0x1d8c('0x5')](_0x1d8c('0xa'));const _0x479cf2=_0x24fbab[_0x1d8c('0x2')][_0x1d8c('0x3')](_0x1d8c('0xc')),_0x20a42f=_0x24fbab[_0x1d8c('0x0')];_0x479cf2[_0x1d8c('0x1')][_0x1d8c('0x9')](_0x1d8c('0xb'),_0x18b75e=>_0x1086b5(_0x20a42f,_0x1d8c('0x4'),_0x18b75e));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ee1=['registerCustomCallback','commandParams','TrackChangesEditing','tableCellHeight','_descriptionFactory','nodeAfter','getSuggestions','selection','discard','change','_suggestionFactory','getContainedElement','tableWidth','tableCellBorderStyle','handleDiscardAction','_getSuggestion','locale','tableCellVerticalAlignment','format','handleSuggestionDescription','tableCellBackgroundColor','TablePropertiesEditing','join','TrackChangesTableProperties','enqueueChange','has','tableProperties','removeAttribute','document','tableCellProperties','model','table','tableBorderColor','get','tableCellBorderWidth','tableBackgroundColor','plugins','registerDescriptionCallback','setAttribute','TableUtils','getAttribute','_handlePropertyChange','formatBlock','markBlockFormat','enableCommand','pluginName','afterInit','*Format:*\x20change\x20table\x20properties','editor','tableCellWidth'];(function(_0x107f2c,_0x5ee136){const _0x4f29af=function(_0x2b1a44){while(--_0x2b1a44){_0x107f2c['push'](_0x107f2c['shift']());}};_0x4f29af(++_0x5ee136);}(_0x5ee1,0xa9));const _0x4f29=function(_0x107f2c,_0x5ee136){_0x107f2c=_0x107f2c-0x0;let _0x4f29af=_0x5ee1[_0x107f2c];return _0x4f29af;};import{Plugin as _0x48849a}from'ckeditor5/src/core';import{getTranslation as _0x453e3e}from'../utils/common-translations';export default class Ct extends _0x48849a{constructor(_0x351fd2){super(_0x351fd2),this[_0x4f29('0x7')]=[_0x4f29('0xd'),'tableBorderStyle','tableBorderWidth','tableAlignment',_0x4f29('0x2b'),'tableHeight',_0x4f29('0x10')],this[_0x4f29('0xa')]=['tableCellBorderColor',_0x4f29('0x2c'),_0x4f29('0xf'),'tableCellPadding',_0x4f29('0x1e'),_0x4f29('0x22'),_0x4f29('0x1'),'tableCellHorizontalAlignment',_0x4f29('0x30')];}static get[_0x4f29('0x1a')](){return _0x4f29('0x4');}[_0x4f29('0x1b')](){const _0x1851d5=this['editor']['plugins'][_0x4f29('0xe')](_0x4f29('0x21'));if(this[_0x4f29('0x1d')][_0x4f29('0x11')][_0x4f29('0x6')](_0x4f29('0x2'))){for(const _0x1e54a1 of this[_0x4f29('0x7')])_0x1851d5['enableCommand'](_0x1e54a1,(_0x43808f,_0x23d1b3)=>{const _0x5c4943=this[_0x4f29('0x1d')][_0x4f29('0xb')]['document'][_0x4f29('0x26')]['getFirstPosition']()['findAncestor'](_0x4f29('0xc'));this[_0x4f29('0x16')](_0x1e54a1,[_0x5c4943],this[_0x4f29('0x7')],_0x4f29('0x7'),_0x43808f,_0x23d1b3);});_0x1851d5[_0x4f29('0x29')]['registerCustomCallback']('formatBlock',_0x4f29('0x7'),'accept',_0x1851d5[_0x4f29('0x29')]['getSuggestionCallback'](_0x4f29('0x17'),null,_0x4f29('0x27'))),_0x1851d5['_suggestionFactory']['registerCustomCallback'](_0x4f29('0x17'),'tableProperties',_0x4f29('0x27'),(_0x4e329a,_0x5da964)=>this[_0x4f29('0x2d')](this[_0x4f29('0x7')],_0x4e329a,_0x5da964)),_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')](_0x4f29('0x17'),_0x4f29('0x7'),_0x4f29('0x3'),()=>!0x1);}if(this[_0x4f29('0x1d')][_0x4f29('0x11')][_0x4f29('0x6')]('TableCellPropertiesEditing')){for(const _0x4b4f45 of this[_0x4f29('0xa')])_0x1851d5[_0x4f29('0x19')](_0x4b4f45,(_0x5abef9,_0xac08ce)=>{const _0x52a99c=this[_0x4f29('0x1d')][_0x4f29('0x11')][_0x4f29('0xe')](_0x4f29('0x14'))['getSelectionAffectedTableCells'](this[_0x4f29('0x1d')][_0x4f29('0xb')][_0x4f29('0x9')][_0x4f29('0x26')]);this[_0x4f29('0x16')](_0x4b4f45,_0x52a99c,this[_0x4f29('0xa')],'tableCellProperties',_0x5abef9,_0xac08ce);});_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')](_0x4f29('0x17'),'tableCellProperties','accept',_0x1851d5[_0x4f29('0x29')]['getSuggestionCallback'](_0x4f29('0x17'),null,_0x4f29('0x27'))),_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')](_0x4f29('0x17'),_0x4f29('0xa'),_0x4f29('0x27'),(_0x3535b4,_0x577011)=>this[_0x4f29('0x2d')](this['tableCellProperties'],_0x3535b4,_0x577011)),_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')]('formatBlock',_0x4f29('0xa'),'join',()=>!0x1);}_0x1851d5[_0x4f29('0x23')][_0x4f29('0x12')](_0x4194d5=>this[_0x4f29('0x0')](_0x4194d5));}[_0x4f29('0x16')](_0x43bf57,_0x2ed874,_0x28a86e,_0x40540d,_0x501cc1,_0x5abe11){const _0x4f5227=this['editor']['plugins'][_0x4f29('0xe')]('TrackChangesEditing');this['editor'][_0x4f29('0xb')][_0x4f29('0x5')](_0x5abe11['batch'],()=>{for(const _0x2dee8a of _0x2ed874){if(this[_0x4f29('0x2e')](_0x2dee8a,_0x40540d))_0x501cc1(_0x5abe11);else{const _0x4dc06c={};for(const _0x510abb of _0x28a86e){const _0x41482b=_0x2dee8a[_0x4f29('0x15')](_0x510abb);void 0x0!==_0x41482b&&(_0x4dc06c[_0x510abb]=_0x41482b);}_0x501cc1(_0x5abe11),_0x4f5227[_0x4f29('0x18')](_0x2dee8a,{'commandParams':[_0x4dc06c]},[],_0x40540d);}}});}[_0x4f29('0x2d')](_0x55b533,_0xc7138e,_0x36453b){const _0x478551=_0xc7138e[0x0]['start'][_0x4f29('0x24')],_0x1c8153=_0x36453b[_0x4f29('0x20')][0x0];this[_0x4f29('0x1d')][_0x4f29('0xb')][_0x4f29('0x28')](_0x5d5706=>{for(const _0x2c9e97 of _0x55b533)void 0x0!==_0x1c8153[_0x2c9e97]?_0x5d5706[_0x4f29('0x13')](_0x2c9e97,_0x1c8153[_0x2c9e97],_0x478551):_0x5d5706[_0x4f29('0x8')](_0x2c9e97,_0x478551);});}['handleSuggestionDescription'](_0x54302a){if(_0x54302a['data'])switch(_0x54302a['subType']){case _0x4f29('0x7'):return{'type':_0x4f29('0x31'),'content':_0x453e3e(this[_0x4f29('0x1d')][_0x4f29('0x2f')],_0x4f29('0x1c'))};case _0x4f29('0xa'):return{'type':_0x4f29('0x31'),'content':_0x453e3e(this[_0x4f29('0x1d')][_0x4f29('0x2f')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x4f29('0x2e')](_0x14e42c,_0x2506d4){const _0x396dd1=this[_0x4f29('0x1d')][_0x4f29('0x11')]['get'](_0x4f29('0x21'));for(const _0x5328c9 of _0x396dd1[_0x4f29('0x25')]({'skipNotAttached':!0x0})){const _0x46a3ec=_0x5328c9[_0x4f29('0x2a')]();if(_0x5328c9['subType']===_0x2506d4&&_0x46a3ec===_0x14e42c)return _0x5328c9;}return null;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1adc=['afterInit','editor','TrackChangesEditing','plugins','get','Template'];(function(_0xc45a04,_0x1adc03){const _0x51f092=function(_0x41efd8){while(--_0x41efd8){_0xc45a04['push'](_0xc45a04['shift']());}};_0x51f092(++_0x1adc03);}(_0x1adc,0x97));const _0x51f0=function(_0xc45a04,_0x1adc03){_0xc45a04=_0xc45a04-0x0;let _0x51f092=_0x1adc[_0xc45a04];return _0x51f092;};import{Plugin as _0x45ebac}from'ckeditor5/src/core';export default class yt extends _0x45ebac{[_0x51f0('0x5')](){const _0x44c1e6=this[_0x51f0('0x0')];_0x44c1e6[_0x51f0('0x2')]['has'](_0x51f0('0x4'))&&_0x44c1e6['plugins'][_0x51f0('0x3')](_0x51f0('0x1'))['enableCommand']('insertTemplate');}}
|