@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.1
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 +2 -2
- 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 +6 -2
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +6 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +6 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +5 -1
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +16 -12
- package/src/index.js +2 -2
- package/src/integrations/alignment.d.ts +5 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +5 -1
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +5 -1
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +5 -1
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +5 -1
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +5 -1
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +6 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +5 -1
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +7 -3
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +6 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +5 -1
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +5 -1
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +5 -1
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +5 -1
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +5 -1
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +5 -1
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +5 -1
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +5 -1
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +7 -3
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +5 -1
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +5 -1
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +6 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +5 -1
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +5 -1
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +7 -3
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +5 -1
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +5 -1
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +5 -1
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +5 -1
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +5 -1
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +5 -1
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +6 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +5 -1
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +5 -1
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +5 -1
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +6 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +4 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +8 -4
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +6 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +6 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +5 -1
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +8 -4
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +5 -1
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +5 -1
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +5 -1
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +7 -3
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +15 -5
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +5 -5
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +10 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +5 -1
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +55 -51
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +7 -3
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +7 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +7 -7
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +8 -4
- 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
|
|
23
|
+
const _0x5d4b=['document','*Remove\x20format:*\x20%0','TrackChangesEditing','_descriptionFactory','classes','from','modelElements','DataSchema','element','push','enabledStyles','change','getRanges','*Format:*\x20%0','has','locale','plugins','block','getAttribute','_getRangesWithClasses','config','getSelectedBlocks','getDefinitionsForView','afterInit','toLowerCase','_getStyleDefinition','markInlineFormat','Style','includes','find','name','every','isBlock','createRangeOn','enableCommand','commandName','add','commandParams','style:','model','styleName','selection','normalizeConfig','inline','StyleUtils','editor','style','get'];(function(_0x405785,_0x5d4bf0){const _0x4e41d2=function(_0x2f50fb){while(--_0x2f50fb){_0x405785['push'](_0x405785['shift']());}};_0x4e41d2(++_0x5d4bf0);}(_0x5d4b,0x172));const _0x4e41=function(_0x405785,_0x5d4bf0){_0x405785=_0x405785-0x0;let _0x4e41d2=_0x5d4b[_0x405785];return _0x4e41d2;};import{Plugin as _0x7d49ac}from'ckeditor5/src/core';import{getTranslation as _0x46a3d0}from'../utils/common-translations';export default class gt extends _0x7d49ac{[_0x4e41('0x25')](){const _0x4a96d4=this[_0x4e41('0xb')];if(!_0x4a96d4['plugins'][_0x4e41('0x1c')](_0x4e41('0x29')))return;const _0x30ecfd=_0x4a96d4['commands'][_0x4e41('0xd')](_0x4e41('0xc')),_0x2c8cff=_0x4a96d4[_0x4e41('0x1e')]['get'](_0x4e41('0x10')),_0x1adf74=_0x4a96d4[_0x4e41('0x1d')],_0x3753bc=_0x4a96d4['plugins'][_0x4e41('0xd')](_0x4e41('0x15')),_0x26759d=_0x4a96d4[_0x4e41('0x1e')]['get'](_0x4e41('0xa'))[_0x4e41('0x8')](_0x3753bc,_0x4a96d4[_0x4e41('0x22')]['get']('style.definitions'));_0x2c8cff[_0x4e41('0x0')]('style',(_0x393f27,{styleName:_0x485119})=>{const _0x46b99f=_0x4a96d4[_0x4e41('0x5')][_0x4e41('0xe')][_0x4e41('0x7')],_0x4725cb=this[_0x4e41('0x27')](_0x485119,_0x26759d);if(!_0x4725cb)return;if(!_0x30ecfd[_0x4e41('0x18')]['includes'](_0x485119))return;if(_0x46b99f['isCollapsed']&&!_0x4725cb['isBlock'])return void _0x393f27({'styleName':_0x485119});const _0x45dd1d=!_0x30ecfd['value'][_0x4e41('0x2a')](_0x4725cb[_0x4e41('0x2c')]);if(_0x4725cb[_0x4e41('0x2e')]){const _0x537285=function(_0x31586e,_0xc00b93){const _0x112041=new Set();for(const _0x2d8a1c of _0x31586e){const _0x28a406=_0x2d8a1c['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0xb7652b of _0x28a406)if(_0xc00b93[_0x4e41('0x2a')](_0xb7652b[_0x4e41('0x2c')])){_0x112041[_0x4e41('0x2')](_0xb7652b);break;}}return _0x112041;}(_0x46b99f[_0x4e41('0x23')](),_0x4725cb[_0x4e41('0x14')]);_0x4a96d4[_0x4e41('0x5')][_0x4e41('0x19')](()=>{for(const _0xe6faa6 of _0x537285)_0x2c8cff['markBlockFormat'](_0xe6faa6,{'commandName':'style','commandParams':[{'styleName':_0x485119,'forceValue':_0x45dd1d}],'formatGroupId':_0x4e41('0x4')+_0x485119});});}else{let _0x19af19=Array[_0x4e41('0x13')](_0x46b99f[_0x4e41('0x1a')]());if(!_0x45dd1d){const _0x14eedc=Array[_0x4e41('0x13')](_0x3753bc[_0x4e41('0x24')](_0x4725cb[_0x4e41('0x16')],!0x1))[0x0][_0x4e41('0x5')],_0x1d3f9e=[];for(const _0x3721b2 of _0x19af19){const _0x2f2ab7=this[_0x4e41('0x21')](_0x4a96d4[_0x4e41('0x5')],_0x3721b2,_0x4725cb[_0x4e41('0x12')],_0x14eedc);_0x1d3f9e[_0x4e41('0x17')](..._0x2f2ab7);}_0x19af19=_0x1d3f9e;}_0x4a96d4[_0x4e41('0x5')][_0x4e41('0x19')](()=>{for(const _0xecf3c1 of _0x19af19)_0x2c8cff[_0x4e41('0x28')](_0xecf3c1,{'commandName':_0x4e41('0xc'),'commandParams':[{'styleName':_0x485119,'forceValue':_0x45dd1d}]});});}}),_0x2c8cff[_0x4e41('0x11')]['registerDescriptionCallback'](_0x559d41=>{const {data:_0x54b502}=_0x559d41;if(_0x54b502&&_0x4e41('0xc')===_0x54b502[_0x4e41('0x1')])return _0x54b502[_0x4e41('0x3')][0x0]['forceValue']?{'type':'format','content':_0x46a3d0(_0x1adf74,_0x4e41('0x1b'),_0x54b502[_0x4e41('0x3')][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':_0x46a3d0(_0x1adf74,_0x4e41('0xf'),_0x54b502[_0x4e41('0x3')][0x0][_0x4e41('0x6')][_0x4e41('0x26')]())};});}[_0x4e41('0x27')](_0x3fd153,_0x5a8d9){let _0x118f2b=_0x5a8d9[_0x4e41('0x1f')][_0x4e41('0x2b')](_0x436dfb=>_0x436dfb['name']===_0x3fd153);return _0x118f2b||(_0x118f2b=_0x5a8d9[_0x4e41('0x9')][_0x4e41('0x2b')](_0x1e0081=>_0x1e0081[_0x4e41('0x2c')]===_0x3fd153)),_0x118f2b;}['_getRangesWithClasses'](_0x15582b,_0x2f1b7c,_0x5a9587,_0x359b83){const _0x584d9c=[];for(const _0x420c48 of _0x2f1b7c['getItems']()){const _0x336694=_0x420c48[_0x4e41('0x20')](_0x359b83);_0x336694&&(_0x5a9587[_0x4e41('0x2d')](_0x4e5705=>_0x336694[_0x4e41('0x12')][_0x4e41('0x2a')](_0x4e5705))&&_0x584d9c[_0x4e41('0x17')](_0x15582b[_0x4e41('0x2f')](_0x420c48)));}return _0x584d9c;}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/table
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
7
11
|
*/
|
|
@@ -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 _0xb443=['_descriptionFactory','registerDescriptionCallback','map','markMultiRangeInsertion','enqueueChange','item','isArray','getCellLocation','min','removeTableColumn','afterInit','from','_acceptFormatSuggestionCallbackFactory','addRange','differ','markMultiRangeDeletion','isInContent','refresh','editor','discard','every','selectTableColumn','getItems','isEqual','insertTableColumnLeft','$textProxy','insert','low','cell','classes','toViewElement','removeClass','startsWith','findAncestor','MAX_SAFE_INTEGER','*Insert:*\x20%0','addClass','selection','enableCommand','ELEMENT_TABLE_COLUMN_WITH_TEXT','length','downcastDispatcher','insertTableColumnRight','createRangeOn','ELEMENT_TABLE_COLUMN','ELEMENT_TABLE_ROW_WITH_TEXT','getSuggestion','name','colspan','$graveyard','has','mapper','toLowerCase','batch','*Remove:*\x20%0','hasAttribute','model','deletion','MIN_SAFE_INTEGER','ELEMENT_TABLE','detach','nodeBefore','createRangeIn','some','data','minRow','_getCoordsForCells','values','setSelection','registerCustomCallback','ELEMENT_TABLE_WITH_TEXT','substr','change','_getSuggestionCoords','fromRange','isIntersectingWithRange','end','get','push','rootName','insertTable','type','getColumnIndexes','_tableSuggestions','highest','nodeAfter','root','span','filter','first','getChangedMarkers','execute','oldRange','includes','tableRow','join','rowspan','plugins','position','insertTableRowAbove','locale','insertTableRowBelow','getRowIndexes','selectTableRow','TrackChangesEditing','ELEMENT_TABLE_ROW','element','createPositionAt','accept','TableUtils','left','table','max','insertion','document','getChildren','change:data','start','minColumn','getAttribute','commands','registerElementLabel','last','getRanges','getSelectionAffectedTableCells','addMarker:suggestion','subType','_tablePostFixingSubtypes','writer','_suggestionFactory','createTableWalker','forceValue','tableColumn','order','maxColumn','removeTableRow'];(function(_0x3a681f,_0xb44371){const _0x4b0aec=function(_0x899de6){while(--_0x899de6){_0x3a681f['push'](_0x3a681f['shift']());}};_0x4b0aec(++_0xb44371);}(_0xb443,0x159));const _0x4b0a=function(_0x3a681f,_0xb44371){_0x3a681f=_0x3a681f-0x0;let _0x4b0aec=_0xb443[_0x3a681f];return _0x4b0aec;};import{Plugin as _0x3a036f}from'ckeditor5/src/core.js';import{LiveRange as _0x2cf8aa}from'ckeditor5/src/engine.js';import{setHighlightHandling as _0x457e1e}from'ckeditor5/src/widget.js';import{getTranslation as _0x2a7062}from'../utils/common-translations.js';export default class mt extends _0x3a036f{constructor(_0x45ee08){super(_0x45ee08),this[_0x4b0a('0x36')]=['tableRow','tableColumn'],this[_0x4b0a('0xa')]=new Set();}[_0x4b0a('0x49')](){const _0x1937ca=this[_0x4b0a('0x51')],_0x4c99ea=_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x29')][_0x4b0a('0x64')];if(!_0x1937ca[_0x4b0a('0x18')][_0x4b0a('0x71')]('TableEditing'))return;const _0x412f11=_0x1937ca[_0x4b0a('0x1b')],_0x1b52da=_0x1937ca['plugins']['get'](_0x4b0a('0x1f')),_0xe2efa0=_0x1937ca[_0x4b0a('0x18')][_0x4b0a('0x4')]('TableUtils');_0x1b52da[_0x4b0a('0x3f')][_0x4b0a('0x30')](_0x4b0a('0x26'),_0x486814=>_0x2a7062(_0x412f11,_0x4b0a('0x7a'),_0x486814)),this['_setupColumnsRowsFixing'](),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x7')),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x1e')),_0x1b52da[_0x4b0a('0x65')](_0x4b0a('0x54'));for(const _0xd46449 of[_0x4b0a('0x1a'),_0x4b0a('0x1c')]){const _0x18bf99=_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0xd46449);_0x1b52da[_0x4b0a('0x65')](_0xd46449,_0xfcc0a0=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0xaa2cd4=>{_0xfcc0a0();const _0x4bb9af='above'===_0x18bf99[_0x4b0a('0x3c')],_0x3e5914=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x104d1b=_0xe2efa0[_0x4b0a('0x1d')](_0x3e5914),_0x54e2e4=_0x4bb9af?_0x104d1b[_0x4b0a('0x10')]-0x1:_0x104d1b[_0x4b0a('0x31')]+0x1,_0x1fe229=_0x3e5914[0x0]['findAncestor'](_0x4b0a('0x26')),_0x1e9125=_0xe2efa0['createTableWalker'](_0x1fe229,{'startRow':_0x54e2e4,'endRow':_0x54e2e4}),_0x1b2424=Array[_0x4b0a('0x4a')](_0x1e9125)[_0x4b0a('0x41')](_0x4c702f=>_0xaa2cd4['createRangeOn'](_0x4c702f[_0x4b0a('0x5b')]));_0x1b52da[_0x4b0a('0x42')](_0x1b2424,_0x4b0a('0x15'));});});}for(const _0x3783f0 of[_0x4b0a('0x57'),_0x4b0a('0x69')]){const _0x20dfec=_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0x3783f0);_0x1b52da[_0x4b0a('0x65')](_0x3783f0,_0x2c83e6=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0x4b24c9=>{_0x2c83e6();const _0x4f2bc9=_0x4b0a('0x25')===_0x20dfec[_0x4b0a('0x3c')],_0x44979b=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x476d04=_0xe2efa0[_0x4b0a('0x9')](_0x44979b),_0x3141c0=_0x4f2bc9?_0x476d04['first']-0x1:_0x476d04[_0x4b0a('0x31')]+0x1,_0x58209d=_0x44979b[0x0]['findAncestor'](_0x4b0a('0x26')),_0x2ad266=_0xe2efa0[_0x4b0a('0x39')](_0x58209d,{'startRow':0x0,'column':_0x3141c0,'includeAllSlots':!0x1}),_0x577300=Array[_0x4b0a('0x4a')](_0x2ad266)[_0x4b0a('0x41')](_0x120b69=>_0x4b24c9[_0x4b0a('0x6a')](_0x120b69[_0x4b0a('0x5b')]));_0x1b52da[_0x4b0a('0x42')](_0x577300,_0x4b0a('0x3b'));});});}for(const _0x4ca0c0 of[_0x4b0a('0x3e'),_0x4b0a('0x48')]){const _0x325694=_0x4ca0c0['substr'](0xb),_0x4d645b=_0x325694[_0x4b0a('0x73')](),_0x59a377=_0x4d645b[_0x4b0a('0x86')](0x0,0x3)+_0x4b0a('0xe'),_0xb60424='table'+_0x325694,_0x3e981d=_0x4b0a('0x47')+_0x325694,_0x151cf9=_0x4b0a('0x27')+_0x325694;_0x1b52da['enableCommand'](_0x4ca0c0,()=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x87')](_0x2e6210=>{const _0x1b1d59=_0xe2efa0[_0x4b0a('0x33')](_0x4c99ea),_0x32e402=_0x1b1d59[0x0][_0x4b0a('0x60')](_0x4b0a('0x26'));let _0x54a399;if(_0x4b0a('0x3e')==_0x4ca0c0){const _0x112adb=_0xe2efa0[_0x4b0a('0x1d')](_0x1b1d59);_0x54a399={'startRow':_0x112adb[_0x4b0a('0x10')],'endRow':_0x112adb['last'],'includeAllSlots':!0x0};}else{const _0x2c00a1=_0xe2efa0['getColumnIndexes'](_0x1b1d59);_0x54a399={'startColumn':_0x2c00a1['first'],'endColumn':_0x2c00a1[_0x4b0a('0x31')],'includeAllSlots':!0x0};}const _0x45eec8=_0xe2efa0[_0x4b0a('0x39')](_0x32e402,_0x54a399),_0x4f0ac8=Array[_0x4b0a('0x4a')](_0x45eec8)[_0x4b0a('0x41')](({cell:_0x204901})=>_0x204901),_0x2a83b5=ie(_0x4f0ac8[_0x4b0a('0xf')](_0x5252c6=>_0x5252c6[_0x4b0a('0x76')](_0x59a377))),_0xf0abed=ie(_0x4f0ac8[_0x4b0a('0xf')](_0x384ad2=>!_0x384ad2[_0x4b0a('0x76')](_0x59a377)))[_0x4b0a('0x41')](_0x32d22e=>_0x2e6210[_0x4b0a('0x6a')](_0x32d22e)),_0x25d1fb=_0x1b52da[_0x4b0a('0x4e')](_0xf0abed,_0xb60424);if(_0x25d1fb&&(_0x4b0a('0x15')==_0x25d1fb[_0x4b0a('0x35')]||_0x4b0a('0x3b')==_0x25d1fb['subType'])){const _0x30c783=this[_0x4b0a('0x0')](_0x25d1fb);for(const _0x255e83 of _0x2a83b5){const _0x5e4e10=_0x2e6210[_0x4b0a('0x6a')](_0x255e83),_0x1f18c9=_0xe2efa0[_0x4b0a('0x46')](_0x255e83),_0x5f33a2=_0x255e83[_0x4b0a('0x2e')](_0x59a377)-0x1,_0x1af3dd=_0x30c783[_0x3e981d],_0x248b9a=_0x30c783[_0x151cf9];_0x1af3dd<=_0x1f18c9[_0x4d645b]&&_0x1f18c9[_0x4d645b]+_0x5f33a2<=_0x248b9a&&_0x25d1fb[_0x4b0a('0x4c')](_0x5e4e10);}}});});}function _0x288483(_0x4b10fe){const _0x4e7f7e=Array[_0x4b0a('0x4a')](_0x4c99ea[_0x4b0a('0x32')]())[_0x4b0a('0x41')](_0x2a21fb=>_0x2cf8aa[_0x4b0a('0x1')](_0x2a21fb));_0x1937ca[_0x4b0a('0x77')]['change'](_0x172f7b=>{const _0x375106=_0x172f7b[_0x4b0a('0x74')];_0x4b10fe=_0x4b10fe['filter'](_0x1b3e86=>'$graveyard'!=_0x1b3e86[_0x4b0a('0xd')][_0x4b0a('0x6')]),_0x172f7b[_0x4b0a('0x83')](_0x4b10fe),_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')]('removeTableRow')[_0x4b0a('0x50')](),_0x1937ca[_0x4b0a('0x12')](_0x4b0a('0x3e'),{'forceDefaultExecution':!0x0}),_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x43')](()=>{_0x1937ca[_0x4b0a('0x77')][_0x4b0a('0x43')](_0x375106,_0x4d9db7=>{const _0x29bdb3=_0x4e7f7e[_0x4b0a('0xf')](_0xe55cb9=>_0x4b0a('0x70')!=_0xe55cb9[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x29bdb3[_0x4b0a('0x67')]>0x0&&_0x4d9db7[_0x4b0a('0x83')](_0x29bdb3);for(const _0x40211e of _0x4e7f7e)_0x40211e['detach']();});});});}function _0x26494a(_0x34e560){_0x1937ca['model'][_0x4b0a('0x87')](_0x20c72c=>{const _0x40ee4a=Array[_0x4b0a('0x4a')](_0x4c99ea[_0x4b0a('0x32')]())[_0x4b0a('0x41')](_0x5c62f8=>_0x2cf8aa[_0x4b0a('0x1')](_0x5c62f8)),_0x4da995=[];for(const _0x4941a1 of _0x34e560)for(const _0x483cd1 of _0x4941a1[_0x4b0a('0x55')]({'shallow':!0x0}))_0x4da995[_0x4b0a('0x5')](_0x483cd1);for(const _0x40065a of _0x4da995)_0x4b0a('0x70')!=_0x40065a[_0x4b0a('0xd')]['rootName']&&(_0x20c72c[_0x4b0a('0x83')](_0x20c72c[_0x4b0a('0x22')](_0x40065a,0x0)),_0x1937ca[_0x4b0a('0x2f')][_0x4b0a('0x4')]('removeTableColumn')[_0x4b0a('0x50')](),_0x1937ca[_0x4b0a('0x12')](_0x4b0a('0x48'),{'forceDefaultExecution':!0x0}));const _0x4cc8c8=_0x40ee4a[_0x4b0a('0xf')](_0x3adcff=>'$graveyard'!=_0x3adcff[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x4cc8c8['length']>0x0&&_0x20c72c[_0x4b0a('0x83')](_0x4cc8c8);for(const _0xcf385 of _0x40ee4a)_0xcf385[_0x4b0a('0x7b')]();});}function _0x294862(_0x4641ab,_0x43448a){return _0x43448a[_0x4b0a('0x53')](_0x340b3d=>_0x4641ab[_0x4b0a('0x7e')](_0x4e7b47=>_0x4e7b47['end'][_0x4b0a('0x56')](_0x340b3d[_0x4b0a('0x2c')])||_0x340b3d[_0x4b0a('0x3')][_0x4b0a('0x56')](_0x4e7b47['start'])));}function _0x472c91(_0x420a20,_0x2534d2){return _0x420a20[_0x4b0a('0x7e')](_0x2d115e=>_0x2534d2[_0x4b0a('0x7e')](_0x528aab=>_0x2d115e[_0x4b0a('0x3')]['isTouching'](_0x528aab[_0x4b0a('0x2c')])));}_0x1937ca[_0x4b0a('0x7f')][_0x4b0a('0x68')]['on'](_0x4b0a('0x34'),(_0x325e22,_0xdde29e,_0x20b814)=>{if(!_0x20b814['options']['showSuggestionHighlights'])return;const _0x102eb4=_0xdde29e[_0x4b0a('0x44')];if(!_0x102eb4)return;const _0x5370c7=_0x20b814[_0x4b0a('0x72')][_0x4b0a('0x5d')](_0x102eb4);function _0x4d153e(_0x5bf50e){return Array[_0x4b0a('0x45')](_0x5bf50e)?_0x5bf50e:[_0x5bf50e];}_0x5370c7&&'tableCell'===_0x102eb4[_0x4b0a('0x6e')]&&_0x457e1e(_0x5370c7,_0x20b814[_0x4b0a('0x37')],(_0x49c908,_0x53227e,_0x247f71)=>_0x247f71[_0x4b0a('0x63')](_0x4d153e(_0x53227e[_0x4b0a('0x5c')]),_0x49c908),(_0x5efdbf,_0x3bafe0,_0x2b6321)=>_0x2b6321[_0x4b0a('0x5e')](_0x4d153e(_0x3bafe0[_0x4b0a('0x5c')]),_0x5efdbf));},{'priority':_0x4b0a('0xb')}),_0x1b52da[_0x4b0a('0x3f')][_0x4b0a('0x40')](_0x452a55=>{if(_0x4b0a('0x28')!=_0x452a55['type']&&_0x4b0a('0x78')!=_0x452a55[_0x4b0a('0x8')])return;const _0x2ef2a6=_0x452a55['getContainedElement']();if(null!=_0x2ef2a6&&_0x2ef2a6['is'](_0x4b0a('0x21'),_0x4b0a('0x26'))){if(_0x4b0a('0x28')==_0x452a55[_0x4b0a('0x8')]){const _0xc71027=_0x452a55['getItems']()['filter'](_0x319e2f=>_0x319e2f['is'](_0x4b0a('0x58')))['map'](_0x2a25d1=>_0x2a25d1['data']);if(_0xc71027[_0x4b0a('0x67')])return{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x85'),'\x22'+_0xc71027[_0x4b0a('0x16')]('\x20')+'\x22'))};}if(_0x4b0a('0x78')==_0x452a55[_0x4b0a('0x8')]){const _0x3bda46=_0x452a55['getItems']()[_0x4b0a('0xf')](_0x359e10=>_0x359e10['is']('$textProxy'))[_0x4b0a('0x41')](_0x394074=>_0x394074[_0x4b0a('0x7f')]);if(_0x3bda46[_0x4b0a('0x67')])return{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3bda46['join']('\x20')+'\x22'))};}}}),_0x1b52da[_0x4b0a('0x3f')]['registerDescriptionCallback'](_0x1e5321=>{if(_0x4b0a('0x15')==_0x1e5321[_0x4b0a('0x35')]){const _0x1c8c44=_0x1e5321['getItems']()[_0x4b0a('0xf')](_0x19f50e=>_0x19f50e['is']('$textProxy'))[_0x4b0a('0x41')](_0x38908a=>_0x38908a[_0x4b0a('0x7f')]),_0x27f7c2=this[_0x4b0a('0x0')](_0x1e5321),_0x437d61=_0x27f7c2['maxRow']-_0x27f7c2[_0x4b0a('0x80')]+0x1;if(_0x4b0a('0x28')==_0x1e5321[_0x4b0a('0x8')])return _0x1c8c44[_0x4b0a('0x67')]?{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x6c'),[_0x437d61,'\x22'+_0x1c8c44[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x20'),_0x437d61))};if(_0x4b0a('0x78')==_0x1e5321[_0x4b0a('0x8')])return _0x1c8c44['length']?{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,_0x4b0a('0x6c'),[_0x437d61,'\x22'+_0x1c8c44[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':_0x4b0a('0x78'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_ROW',_0x437d61))};}if(_0x4b0a('0x3b')==_0x1e5321['subType']){const _0x533701=_0x1e5321[_0x4b0a('0x55')]()[_0x4b0a('0xf')](_0x10fa71=>_0x10fa71['is']('$textProxy'))[_0x4b0a('0x41')](_0x17c3e6=>_0x17c3e6[_0x4b0a('0x7f')]),_0x2749e9=this[_0x4b0a('0x0')](_0x1e5321),_0x455b5f=_0x2749e9[_0x4b0a('0x3d')]-_0x2749e9[_0x4b0a('0x2d')]+0x1;if(_0x4b0a('0x28')==_0x1e5321[_0x4b0a('0x8')])return _0x533701['length']?{'type':'insertion','content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,_0x4b0a('0x66'),[_0x455b5f,'\x22'+_0x533701[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':_0x4b0a('0x28'),'content':_0x2a7062(_0x412f11,_0x4b0a('0x62'),_0x2a7062(_0x412f11,'ELEMENT_TABLE_COLUMN',_0x455b5f))};if(_0x4b0a('0x78')==_0x1e5321['type'])return _0x533701[_0x4b0a('0x67')]?{'type':'deletion','content':_0x2a7062(_0x412f11,'*Remove:*\x20%0',_0x2a7062(_0x412f11,_0x4b0a('0x66'),[_0x455b5f,'\x22'+_0x533701[_0x4b0a('0x16')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x2a7062(_0x412f11,_0x4b0a('0x75'),_0x2a7062(_0x412f11,_0x4b0a('0x6b'),_0x455b5f))};}}),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),_0x4b0a('0x15'),_0x4b0a('0x52'),_0x288483),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x15'),_0x4b0a('0x23'),_0x288483),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')]('insertion','tableColumn','discard',_0x26494a),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x3b'),_0x4b0a('0x23'),_0x26494a),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),'tableColumn',_0x4b0a('0x16'),_0x294862),_0x1b52da['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b0a('0x3b'),_0x4b0a('0x16'),_0x294862),_0x1b52da[_0x4b0a('0x38')][_0x4b0a('0x84')](_0x4b0a('0x28'),_0x4b0a('0x15'),_0x4b0a('0x16'),_0x472c91),_0x1b52da['_suggestionFactory']['registerCustomCallback'](_0x4b0a('0x78'),_0x4b0a('0x15'),_0x4b0a('0x16'),_0x472c91);}[_0x4b0a('0x4b')](){const _0xf8f3f0=this[_0x4b0a('0x51')],_0x27f2b8=_0xf8f3f0[_0x4b0a('0x77')][_0x4b0a('0x29')]['selection'];return(_0x2dc2b1,_0xcedcb2)=>{_0xf8f3f0['model']['change'](_0xa1bb28=>{const {commandName:_0x4bf3e9,commandParams:_0x388657}=_0xcedcb2;let _0x182582=_0x2dc2b1[0x0][_0x4b0a('0x3')][_0x4b0a('0x7c')];_0x388657&&_0x388657[0x0]&&!0x1===_0x388657[0x0][_0x4b0a('0x3a')]&&(_0x182582=_0x2dc2b1[0x0][_0x4b0a('0x2c')][_0x4b0a('0xc')]);const _0x374f1c=_0xa1bb28[_0x4b0a('0x7d')](_0x182582);if(_0x4b0a('0x70')==_0x374f1c[_0x4b0a('0xd')][_0x4b0a('0x6')])return;const _0x418593=Array['from'](_0x27f2b8[_0x4b0a('0x32')]())['map'](_0x5ba6cd=>_0x2cf8aa['fromRange'](_0x5ba6cd));_0xa1bb28[_0x4b0a('0x83')](_0x374f1c),_0xf8f3f0[_0x4b0a('0x2f')][_0x4b0a('0x4')](_0x4bf3e9)[_0x4b0a('0x50')](),_0x388657[_0x4b0a('0x5')]({'forceDefaultExecution':!0x0}),_0xf8f3f0[_0x4b0a('0x12')](_0x4bf3e9,..._0x388657);const _0x5197ed=_0x418593['filter'](_0x5bd64d=>_0x4b0a('0x70')!=_0x5bd64d[_0x4b0a('0xd')][_0x4b0a('0x6')]);_0x5197ed[_0x4b0a('0x67')]>0x0&&_0xa1bb28[_0x4b0a('0x83')](_0x5197ed);for(const _0x287d0e of _0x418593)_0x287d0e[_0x4b0a('0x7b')]();});};}[_0x4b0a('0x81')](_0x19d2e8){const _0x4a5eb7=this[_0x4b0a('0x51')]['plugins']['get']('TableUtils');let _0x3ca16b=Number[_0x4b0a('0x61')],_0x469744=Number[_0x4b0a('0x79')],_0x10ff96=Number['MAX_SAFE_INTEGER'],_0x182c96=Number[_0x4b0a('0x79')];for(const _0x5aedb6 of _0x19d2e8){if(_0x4b0a('0x70')==_0x5aedb6[_0x4b0a('0xd')][_0x4b0a('0x6')])continue;const {row:_0x37b4d9,column:_0x597d6f}=_0x4a5eb7[_0x4b0a('0x46')](_0x5aedb6),_0x5560fe=_0x5aedb6['hasAttribute'](_0x4b0a('0x17'))?_0x5aedb6['getAttribute'](_0x4b0a('0x17'))-0x1:0x0,_0x1cfc66=_0x5aedb6[_0x4b0a('0x76')](_0x4b0a('0x6f'))?_0x5aedb6[_0x4b0a('0x2e')](_0x4b0a('0x6f'))-0x1:0x0;_0x3ca16b=_0x37b4d9<_0x3ca16b?_0x37b4d9:_0x3ca16b,_0x469744=_0x37b4d9+_0x5560fe>_0x469744?_0x37b4d9+_0x5560fe:_0x469744,_0x10ff96=_0x597d6f<_0x10ff96?_0x597d6f:_0x10ff96,_0x182c96=_0x597d6f+_0x1cfc66>_0x182c96?_0x597d6f+_0x1cfc66:_0x182c96;}return{'minRow':_0x3ca16b,'maxRow':_0x469744,'minColumn':_0x10ff96,'maxColumn':_0x182c96};}['_setupColumnsRowsFixing'](){const _0x54d63c=this[_0x4b0a('0x51')],_0x5b92c5=_0x54d63c['plugins'][_0x4b0a('0x4')](_0x4b0a('0x1f')),_0x21fc0f=_0x54d63c[_0x4b0a('0x18')][_0x4b0a('0x4')](_0x4b0a('0x24'));_0x54d63c[_0x4b0a('0x77')]['document']['on'](_0x4b0a('0x2b'),()=>{const _0x5f3fca=Array[_0x4b0a('0x4a')](_0x54d63c[_0x4b0a('0x77')][_0x4b0a('0x29')]['differ'][_0x4b0a('0x11')]());for(const {name:_0x3cd51e,data:_0x39f37f}of _0x5f3fca){const {group:_0x359b8d,id:_0x4df6af,subType:_0x54320e}=_0x5b92c5['_splitMarkerName'](_0x3cd51e);if('suggestion'!=_0x359b8d)continue;if(null!=_0x39f37f[_0x4b0a('0x13')])continue;const _0x3de42f=_0x5b92c5[_0x4b0a('0x6d')](_0x4df6af);this[_0x4b0a('0x36')][_0x4b0a('0x14')](_0x54320e)&&this[_0x4b0a('0xa')]['add'](_0x3de42f);}},{'priority':_0x4b0a('0x5a')});const _0x1cc39b=(_0x549505,_0x5c62d6)=>{let _0x4964a9=!0x1;const _0xa64357=_0x5c62d6[_0x4b0a('0x6a')](_0x549505),_0x1a748f=_0x549505[_0x4b0a('0x60')](_0x4b0a('0x26')),_0x575309=_0x21fc0f[_0x4b0a('0x46')](_0x549505);for(const _0x23c9cb of this[_0x4b0a('0xa')]){const _0x23086a=_0x23c9cb[_0x4b0a('0x35')],_0x8923df=_0x23086a[_0x4b0a('0x5f')]('tablePaste'),_0x2fdb9b=_0x23086a[_0x4b0a('0x86')](_0x8923df?0xa:0x5),_0xc56e4e=_0x2fdb9b[_0x4b0a('0x73')](),_0x290848=_0xc56e4e[_0x4b0a('0x86')](0x0,0x3)+_0x4b0a('0xe'),_0x41b09b=_0x4b0a('0x47')+_0x2fdb9b,_0x431a8f='max'+_0x2fdb9b;if(!_0x23c9cb[_0x4b0a('0x4f')])continue;if(_0x1a748f!=_0x23c9cb['getFirstRange']()[_0x4b0a('0x2c')][_0x4b0a('0x60')](_0x4b0a('0x26')))continue;if(_0x23c9cb[_0x4b0a('0x2')](_0xa64357))continue;const _0x45ae88=_0x549505[_0x4b0a('0x76')](_0x290848)?_0x549505['getAttribute'](_0x290848)-0x1:0x0,_0x2f94f8=this[_0x4b0a('0x0')](_0x23c9cb),_0x5d8f8c=_0x2f94f8[_0x41b09b],_0x300e7b=_0x2f94f8[_0x431a8f];_0x5d8f8c<=_0x575309[_0xc56e4e]&&_0x575309[_0xc56e4e]+_0x45ae88<=_0x300e7b&&(_0x23c9cb['addRange'](_0xa64357),_0x4964a9=!0x0);}return _0x4964a9;};_0x54d63c[_0x4b0a('0x77')][_0x4b0a('0x29')]['registerPostFixer'](_0x2f2bb3=>{let _0x40be17=!0x1;for(const _0x9a7ad8 of _0x54d63c['model'][_0x4b0a('0x29')][_0x4b0a('0x4d')]['getChanges']())if(_0x4b0a('0x59')==_0x9a7ad8[_0x4b0a('0x8')]){if(_0x4b0a('0x15')==_0x9a7ad8[_0x4b0a('0x6e')])for(const _0xda8f32 of _0x9a7ad8[_0x4b0a('0x19')][_0x4b0a('0xc')][_0x4b0a('0x2a')]())_0x40be17=_0x40be17||_0x1cc39b(_0xda8f32,_0x2f2bb3);else'tableCell'==_0x9a7ad8[_0x4b0a('0x6e')]&&(_0x40be17=_0x40be17||_0x1cc39b(_0x9a7ad8['position'][_0x4b0a('0xc')],_0x2f2bb3));}return _0x40be17;});}[_0x4b0a('0x0')](_0x2add85){return this[_0x4b0a('0x81')](_0x2add85[_0x4b0a('0x32')]()[_0x4b0a('0x41')](_0x459266=>_0x459266[_0x4b0a('0x2c')][_0x4b0a('0xc')]));}}function ie(_0x5401a4){return Array[_0x4b0a('0x4a')](new Set(_0x5401a4)[_0x4b0a('0x82')]());}
|
|
23
|
+
const _0x56e7=['registerDescriptionCallback','removeClass','every','fromRange','TableUtils','insertion','isTouching','ELEMENT_TABLE_ROW','get','registerElementLabel','hasAttribute','plugins','batch','markMultiRangeDeletion','ELEMENT_TABLE','registerCustomCallback','tablePaste','last','findAncestor','some','commands','removeTableColumn','_suggestionFactory','addMarker:suggestion','enqueueChange','change:data','setSelection','ELEMENT_TABLE_COLUMN_WITH_TEXT','rootName','_getCoordsForCells','_acceptFormatSuggestionCallbackFactory','getRanges','isArray','type','name','element','low','root','execute','values','from','insertTable','$graveyard','selection','position','registerPostFixer','forceValue','addClass','_getSuggestionCoords','$textProxy','maxRow','_descriptionFactory','createTableWalker','insertTableRowBelow','_setupColumnsRowsFixing','getItems','toViewElement','end','above','createRangeIn','length','getRowIndexes','filter','suggestion','getAttribute','editor','nodeBefore','change','removeTableRow','deletion','item','getFirstRange','downcastDispatcher','getSelectionAffectedTableCells','writer','nodeAfter','getSuggestion','accept','differ','showSuggestionHighlights','insertTableRowAbove','minColumn','insertTableColumnRight','start','_tablePostFixingSubtypes','getCellLocation','min','MIN_SAFE_INTEGER','getColumnIndexes','map','detach','add','data','toLowerCase','oldRange','table','getChildren','getChanges','markMultiRangeInsertion','highest','classes','TrackChangesEditing','startsWith','ELEMENT_TABLE_COLUMN','createRangeOn','colspan','span','substr','tableColumn','join','refresh','isEqual','addRange','document','tableRow','tableCell','model','enableCommand','*Insert:*\x20%0','minRow','subType','*Remove:*\x20%0','ELEMENT_TABLE_ROW_WITH_TEXT','first','options','push','ELEMENT_TABLE_WITH_TEXT','discard','max','rowspan','_tableSuggestions','order','cell','includes','locale','afterInit','left'];(function(_0x330bb2,_0x56e77a){const _0x57c9eb=function(_0x3ea95b){while(--_0x3ea95b){_0x330bb2['push'](_0x330bb2['shift']());}};_0x57c9eb(++_0x56e77a);}(_0x56e7,0x71));const _0x57c9=function(_0x330bb2,_0x56e77a){_0x330bb2=_0x330bb2-0x0;let _0x57c9eb=_0x56e7[_0x330bb2];return _0x57c9eb;};import{Plugin as _0x1c98dc}from'ckeditor5/src/core';import{LiveRange as _0x2461bd}from'ckeditor5/src/engine';import{setHighlightHandling as _0xd57c4}from'ckeditor5/src/widget';import{getTranslation as _0x209475}from'../utils/common-translations';export default class mt extends _0x1c98dc{constructor(_0x5716ff){super(_0x5716ff),this[_0x57c9('0x6c')]=['tableRow',_0x57c9('0x84')],this[_0x57c9('0x11')]=new Set();}[_0x57c9('0x16')](){const _0x2366a9=this[_0x57c9('0x59')],_0x27b0e0=_0x2366a9['model'][_0x57c9('0x0')][_0x57c9('0x43')];if(!_0x2366a9[_0x57c9('0x23')]['has']('TableEditing'))return;const _0x5a4d65=_0x2366a9[_0x57c9('0x15')],_0x15e43f=_0x2366a9[_0x57c9('0x23')]['get'](_0x57c9('0x7d')),_0x49c3bc=_0x2366a9['plugins'][_0x57c9('0x20')](_0x57c9('0x1c'));_0x15e43f[_0x57c9('0x4b')][_0x57c9('0x21')](_0x57c9('0x77'),_0xfe1b91=>_0x209475(_0x5a4d65,_0x57c9('0x26'),_0xfe1b91)),this[_0x57c9('0x4e')](),_0x15e43f[_0x57c9('0x4')](_0x57c9('0x41')),_0x15e43f['enableCommand']('selectTableRow'),_0x15e43f[_0x57c9('0x4')]('selectTableColumn');for(const _0x184551 of[_0x57c9('0x68'),_0x57c9('0x4d')]){const _0xd561d1=_0x2366a9[_0x57c9('0x2c')][_0x57c9('0x20')](_0x184551);_0x15e43f[_0x57c9('0x4')](_0x184551,_0x55c8fd=>{_0x2366a9['model']['change'](_0x5a0bc7=>{_0x55c8fd();const _0x405e65=_0x57c9('0x52')===_0xd561d1['order'],_0xe24fea=_0x49c3bc['getSelectionAffectedTableCells'](_0x27b0e0),_0x517584=_0x49c3bc[_0x57c9('0x55')](_0xe24fea),_0x4475f0=_0x405e65?_0x517584['first']-0x1:_0x517584['last']+0x1,_0x36a8a8=_0xe24fea[0x0]['findAncestor']('table'),_0x5e72c7=_0x49c3bc[_0x57c9('0x4c')](_0x36a8a8,{'startRow':_0x4475f0,'endRow':_0x4475f0}),_0x11d83=Array[_0x57c9('0x40')](_0x5e72c7)[_0x57c9('0x71')](_0x4b8ef1=>_0x5a0bc7[_0x57c9('0x80')](_0x4b8ef1[_0x57c9('0x13')]));_0x15e43f['markMultiRangeInsertion'](_0x11d83,_0x57c9('0x1'));});});}for(const _0x3a7afd of['insertTableColumnLeft',_0x57c9('0x6a')]){const _0x388c0d=_0x2366a9[_0x57c9('0x2c')]['get'](_0x3a7afd);_0x15e43f[_0x57c9('0x4')](_0x3a7afd,_0x1c4372=>{_0x2366a9['model']['change'](_0x390a28=>{_0x1c4372();const _0x425d47=_0x57c9('0x17')===_0x388c0d[_0x57c9('0x12')],_0x5c3be7=_0x49c3bc[_0x57c9('0x61')](_0x27b0e0),_0x22eef6=_0x49c3bc['getColumnIndexes'](_0x5c3be7),_0x50b2a5=_0x425d47?_0x22eef6['first']-0x1:_0x22eef6[_0x57c9('0x29')]+0x1,_0x4a542e=_0x5c3be7[0x0]['findAncestor'](_0x57c9('0x77')),_0x3c8637=_0x49c3bc[_0x57c9('0x4c')](_0x4a542e,{'startRow':0x0,'column':_0x50b2a5,'includeAllSlots':!0x1}),_0x163ca0=Array[_0x57c9('0x40')](_0x3c8637)['map'](_0x5d3dd1=>_0x390a28['createRangeOn'](_0x5d3dd1[_0x57c9('0x13')]));_0x15e43f[_0x57c9('0x7a')](_0x163ca0,_0x57c9('0x84'));});});}for(const _0x5ea9e1 of[_0x57c9('0x5c'),_0x57c9('0x2d')]){const _0xe9602c=_0x5ea9e1[_0x57c9('0x83')](0xb),_0x3d2e4b=_0xe9602c[_0x57c9('0x75')](),_0x3e57c8=_0x3d2e4b[_0x57c9('0x83')](0x0,0x3)+'span',_0x4cff91='table'+_0xe9602c,_0x119372=_0x57c9('0x6e')+_0xe9602c,_0x4fa41a='max'+_0xe9602c;_0x15e43f['enableCommand'](_0x5ea9e1,()=>{_0x2366a9[_0x57c9('0x3')][_0x57c9('0x5b')](_0xc5a01f=>{const _0x6d883e=_0x49c3bc[_0x57c9('0x61')](_0x27b0e0),_0x16047a=_0x6d883e[0x0]['findAncestor'](_0x57c9('0x77'));let _0xaa27e6;if(_0x57c9('0x5c')==_0x5ea9e1){const _0x2e4af2=_0x49c3bc[_0x57c9('0x55')](_0x6d883e);_0xaa27e6={'startRow':_0x2e4af2[_0x57c9('0xa')],'endRow':_0x2e4af2['last'],'includeAllSlots':!0x0};}else{const _0x4cc112=_0x49c3bc[_0x57c9('0x70')](_0x6d883e);_0xaa27e6={'startColumn':_0x4cc112['first'],'endColumn':_0x4cc112[_0x57c9('0x29')],'includeAllSlots':!0x0};}const _0x208026=_0x49c3bc[_0x57c9('0x4c')](_0x16047a,_0xaa27e6),_0x3292ff=Array[_0x57c9('0x40')](_0x208026)[_0x57c9('0x71')](({cell:_0x57d400})=>_0x57d400),_0x5674a2=se(_0x3292ff[_0x57c9('0x56')](_0x4cb4a5=>_0x4cb4a5[_0x57c9('0x22')](_0x3e57c8))),_0x3397ee=se(_0x3292ff[_0x57c9('0x56')](_0x272307=>!_0x272307[_0x57c9('0x22')](_0x3e57c8)))[_0x57c9('0x71')](_0x217a39=>_0xc5a01f[_0x57c9('0x80')](_0x217a39)),_0x402e48=_0x15e43f[_0x57c9('0x25')](_0x3397ee,_0x4cff91);if(_0x402e48&&(_0x57c9('0x1')==_0x402e48[_0x57c9('0x7')]||_0x57c9('0x84')==_0x402e48[_0x57c9('0x7')])){const _0x3b2c7d=this[_0x57c9('0x48')](_0x402e48);for(const _0x5161ce of _0x5674a2){const _0x1f3e27=_0xc5a01f[_0x57c9('0x80')](_0x5161ce),_0x4edb0f=_0x49c3bc[_0x57c9('0x6d')](_0x5161ce),_0x27caee=_0x5161ce[_0x57c9('0x58')](_0x3e57c8)-0x1,_0x2194d1=_0x3b2c7d[_0x119372],_0x475f9e=_0x3b2c7d[_0x4fa41a];_0x2194d1<=_0x4edb0f[_0x3d2e4b]&&_0x4edb0f[_0x3d2e4b]+_0x27caee<=_0x475f9e&&_0x402e48[_0x57c9('0x88')](_0x1f3e27);}}});});}function _0x30ec12(_0x2843f4){const _0x3bc702=Array[_0x57c9('0x40')](_0x27b0e0[_0x57c9('0x37')]())['map'](_0x12c446=>_0x2461bd['fromRange'](_0x12c446));_0x2366a9[_0x57c9('0x3')][_0x57c9('0x5b')](_0x2901bb=>{const _0x1e4b0e=_0x2901bb[_0x57c9('0x24')];_0x2843f4=_0x2843f4['filter'](_0x5ab6d1=>_0x57c9('0x42')!=_0x5ab6d1[_0x57c9('0x3d')][_0x57c9('0x34')]),_0x2901bb['setSelection'](_0x2843f4),_0x2366a9[_0x57c9('0x2c')][_0x57c9('0x20')](_0x57c9('0x5c'))['refresh'](),_0x2366a9[_0x57c9('0x3e')](_0x57c9('0x5c'),{'forceDefaultExecution':!0x0}),_0x2366a9[_0x57c9('0x3')][_0x57c9('0x30')](()=>{_0x2366a9[_0x57c9('0x3')][_0x57c9('0x30')](_0x1e4b0e,_0x36e136=>{const _0x540872=_0x3bc702[_0x57c9('0x56')](_0xdcaf7b=>_0x57c9('0x42')!=_0xdcaf7b[_0x57c9('0x3d')][_0x57c9('0x34')]);_0x540872[_0x57c9('0x54')]>0x0&&_0x36e136['setSelection'](_0x540872);for(const _0x220885 of _0x3bc702)_0x220885[_0x57c9('0x72')]();});});});}function _0x5a947e(_0x59136c){_0x2366a9[_0x57c9('0x3')][_0x57c9('0x5b')](_0xc0c83b=>{const _0x100d45=Array[_0x57c9('0x40')](_0x27b0e0[_0x57c9('0x37')]())[_0x57c9('0x71')](_0x4a4484=>_0x2461bd['fromRange'](_0x4a4484)),_0x4d3eb7=[];for(const _0x3567ae of _0x59136c)for(const _0x531e30 of _0x3567ae[_0x57c9('0x4f')]({'shallow':!0x0}))_0x4d3eb7[_0x57c9('0xc')](_0x531e30);for(const _0x4a29fd of _0x4d3eb7)_0x57c9('0x42')!=_0x4a29fd[_0x57c9('0x3d')][_0x57c9('0x34')]&&(_0xc0c83b[_0x57c9('0x32')](_0xc0c83b['createPositionAt'](_0x4a29fd,0x0)),_0x2366a9[_0x57c9('0x2c')][_0x57c9('0x20')](_0x57c9('0x2d'))[_0x57c9('0x86')](),_0x2366a9['execute'](_0x57c9('0x2d'),{'forceDefaultExecution':!0x0}));const _0x50c189=_0x100d45[_0x57c9('0x56')](_0x298d51=>_0x57c9('0x42')!=_0x298d51[_0x57c9('0x3d')][_0x57c9('0x34')]);_0x50c189['length']>0x0&&_0xc0c83b[_0x57c9('0x32')](_0x50c189);for(const _0x38b4fa of _0x100d45)_0x38b4fa[_0x57c9('0x72')]();});}function _0x43b245(_0x150599,_0x801fc){return _0x801fc[_0x57c9('0x1a')](_0xb99aa6=>_0x150599[_0x57c9('0x2b')](_0x371e6a=>_0x371e6a[_0x57c9('0x51')][_0x57c9('0x87')](_0xb99aa6[_0x57c9('0x6b')])||_0xb99aa6[_0x57c9('0x51')][_0x57c9('0x87')](_0x371e6a[_0x57c9('0x6b')])));}function _0x27f362(_0x2b74f0,_0x2a38cb){return _0x2b74f0[_0x57c9('0x2b')](_0x530c4c=>_0x2a38cb[_0x57c9('0x2b')](_0x3839e7=>_0x530c4c['end'][_0x57c9('0x1e')](_0x3839e7[_0x57c9('0x6b')])));}_0x2366a9[_0x57c9('0x74')][_0x57c9('0x60')]['on'](_0x57c9('0x2f'),(_0x1a78e9,_0x3dd623,_0x3ada78)=>{if(!_0x3ada78[_0x57c9('0xb')][_0x57c9('0x67')])return;const _0x456d57=_0x3dd623[_0x57c9('0x5e')];if(!_0x456d57)return;const _0x29882c=_0x3ada78['mapper'][_0x57c9('0x50')](_0x456d57);function _0x119a1d(_0x23b0f0){return Array[_0x57c9('0x38')](_0x23b0f0)?_0x23b0f0:[_0x23b0f0];}_0x29882c&&_0x57c9('0x2')===_0x456d57[_0x57c9('0x3a')]&&_0xd57c4(_0x29882c,_0x3ada78[_0x57c9('0x62')],(_0xbf49,_0xc5f20,_0x3b48d8)=>_0x3b48d8[_0x57c9('0x47')](_0x119a1d(_0xc5f20['classes']),_0xbf49),(_0x4a96bc,_0x21e025,_0x368613)=>_0x368613[_0x57c9('0x19')](_0x119a1d(_0x21e025[_0x57c9('0x7c')]),_0x4a96bc));},{'priority':_0x57c9('0x7b')}),_0x15e43f[_0x57c9('0x4b')][_0x57c9('0x18')](_0x41c257=>{if(_0x57c9('0x1d')!=_0x41c257[_0x57c9('0x39')]&&_0x57c9('0x5d')!=_0x41c257[_0x57c9('0x39')])return;const _0x3580ca=_0x41c257['getContainedElement']();if(null!=_0x3580ca&&_0x3580ca['is'](_0x57c9('0x3b'),_0x57c9('0x77'))){if(_0x57c9('0x1d')==_0x41c257['type']){const _0x1fe2d5=_0x41c257['getItems']()[_0x57c9('0x56')](_0x2d749c=>_0x2d749c['is'](_0x57c9('0x49')))[_0x57c9('0x71')](_0x26452f=>_0x26452f[_0x57c9('0x74')]);if(_0x1fe2d5['length'])return{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,'*Insert:*\x20%0',_0x209475(_0x5a4d65,_0x57c9('0xd'),'\x22'+_0x1fe2d5['join']('\x20')+'\x22'))};}if(_0x57c9('0x5d')==_0x41c257[_0x57c9('0x39')]){const _0x4724e2=_0x41c257[_0x57c9('0x4f')]()['filter'](_0x5eede3=>_0x5eede3['is'](_0x57c9('0x49')))[_0x57c9('0x71')](_0x54ddc7=>_0x54ddc7[_0x57c9('0x74')]);if(_0x4724e2[_0x57c9('0x54')])return{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0xd'),'\x22'+_0x4724e2[_0x57c9('0x85')]('\x20')+'\x22'))};}}}),_0x15e43f[_0x57c9('0x4b')]['registerDescriptionCallback'](_0x49a5dc=>{if('tableRow'==_0x49a5dc[_0x57c9('0x7')]){const _0x2a1f32=_0x49a5dc[_0x57c9('0x4f')]()[_0x57c9('0x56')](_0x5eee30=>_0x5eee30['is']('$textProxy'))[_0x57c9('0x71')](_0x30591a=>_0x30591a[_0x57c9('0x74')]),_0x582546=this['_getSuggestionCoords'](_0x49a5dc),_0x32d98d=_0x582546[_0x57c9('0x4a')]-_0x582546[_0x57c9('0x6')]+0x1;if(_0x57c9('0x1d')==_0x49a5dc[_0x57c9('0x39')])return _0x2a1f32['length']?{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,'*Insert:*\x20%0',_0x209475(_0x5a4d65,_0x57c9('0x9'),[_0x32d98d,'\x22'+_0x2a1f32['join']('\x20')+'\x22']))}:{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x5'),_0x209475(_0x5a4d65,_0x57c9('0x1f'),_0x32d98d))};if('deletion'==_0x49a5dc[_0x57c9('0x39')])return _0x2a1f32[_0x57c9('0x54')]?{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0x9'),[_0x32d98d,'\x22'+_0x2a1f32[_0x57c9('0x85')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0x1f'),_0x32d98d))};}if(_0x57c9('0x84')==_0x49a5dc[_0x57c9('0x7')]){const _0x314550=_0x49a5dc['getItems']()[_0x57c9('0x56')](_0x251a4f=>_0x251a4f['is']('$textProxy'))['map'](_0x46356e=>_0x46356e['data']),_0x2b61d4=this[_0x57c9('0x48')](_0x49a5dc),_0x2ebb37=_0x2b61d4['maxColumn']-_0x2b61d4[_0x57c9('0x69')]+0x1;if(_0x57c9('0x1d')==_0x49a5dc[_0x57c9('0x39')])return _0x314550['length']?{'type':_0x57c9('0x1d'),'content':_0x209475(_0x5a4d65,'*Insert:*\x20%0',_0x209475(_0x5a4d65,_0x57c9('0x33'),[_0x2ebb37,'\x22'+_0x314550['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x209475(_0x5a4d65,_0x57c9('0x5'),_0x209475(_0x5a4d65,_0x57c9('0x7f'),_0x2ebb37))};if(_0x57c9('0x5d')==_0x49a5dc[_0x57c9('0x39')])return _0x314550['length']?{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ebb37,'\x22'+_0x314550[_0x57c9('0x85')]('\x20')+'\x22']))}:{'type':_0x57c9('0x5d'),'content':_0x209475(_0x5a4d65,_0x57c9('0x8'),_0x209475(_0x5a4d65,_0x57c9('0x7f'),_0x2ebb37))};}}),_0x15e43f[_0x57c9('0x2e')][_0x57c9('0x27')]('insertion','tableRow',_0x57c9('0xe'),_0x30ec12),_0x15e43f[_0x57c9('0x2e')][_0x57c9('0x27')](_0x57c9('0x5d'),_0x57c9('0x1'),_0x57c9('0x65'),_0x30ec12),_0x15e43f[_0x57c9('0x2e')]['registerCustomCallback']('insertion',_0x57c9('0x84'),_0x57c9('0xe'),_0x5a947e),_0x15e43f['_suggestionFactory'][_0x57c9('0x27')](_0x57c9('0x5d'),'tableColumn',_0x57c9('0x65'),_0x5a947e),_0x15e43f[_0x57c9('0x2e')]['registerCustomCallback']('insertion',_0x57c9('0x84'),_0x57c9('0x85'),_0x43b245),_0x15e43f['_suggestionFactory'][_0x57c9('0x27')]('deletion',_0x57c9('0x84'),_0x57c9('0x85'),_0x43b245),_0x15e43f[_0x57c9('0x2e')][_0x57c9('0x27')](_0x57c9('0x1d'),_0x57c9('0x1'),_0x57c9('0x85'),_0x27f362),_0x15e43f['_suggestionFactory'][_0x57c9('0x27')]('deletion',_0x57c9('0x1'),_0x57c9('0x85'),_0x27f362);}[_0x57c9('0x36')](){const _0xbac73c=this[_0x57c9('0x59')],_0x85967e=_0xbac73c['model'][_0x57c9('0x0')]['selection'];return(_0x512708,_0x5ac733)=>{_0xbac73c['model']['change'](_0x4e125a=>{const {commandName:_0x2498a3,commandParams:_0x5468b8}=_0x5ac733;let _0x17ba50=_0x512708[0x0][_0x57c9('0x51')][_0x57c9('0x5a')];_0x5468b8&&_0x5468b8[0x0]&&!0x1===_0x5468b8[0x0][_0x57c9('0x46')]&&(_0x17ba50=_0x512708[0x0][_0x57c9('0x6b')][_0x57c9('0x63')]);const _0x5cb47b=_0x4e125a[_0x57c9('0x53')](_0x17ba50);if('$graveyard'==_0x5cb47b[_0x57c9('0x3d')][_0x57c9('0x34')])return;const _0x104d5d=Array[_0x57c9('0x40')](_0x85967e[_0x57c9('0x37')]())[_0x57c9('0x71')](_0x3cdc38=>_0x2461bd[_0x57c9('0x1b')](_0x3cdc38));_0x4e125a[_0x57c9('0x32')](_0x5cb47b),_0xbac73c[_0x57c9('0x2c')]['get'](_0x2498a3)[_0x57c9('0x86')](),_0x5468b8['push']({'forceDefaultExecution':!0x0}),_0xbac73c['execute'](_0x2498a3,..._0x5468b8);const _0x3cac3e=_0x104d5d['filter'](_0x1b0ebb=>_0x57c9('0x42')!=_0x1b0ebb[_0x57c9('0x3d')][_0x57c9('0x34')]);_0x3cac3e[_0x57c9('0x54')]>0x0&&_0x4e125a[_0x57c9('0x32')](_0x3cac3e);for(const _0x150ecd of _0x104d5d)_0x150ecd[_0x57c9('0x72')]();});};}[_0x57c9('0x35')](_0x2af977){const _0x2d1fee=this[_0x57c9('0x59')][_0x57c9('0x23')][_0x57c9('0x20')](_0x57c9('0x1c'));let _0x25883f=Number['MAX_SAFE_INTEGER'],_0x3e3c8e=Number[_0x57c9('0x6f')],_0x40cc50=Number['MAX_SAFE_INTEGER'],_0x59cb94=Number[_0x57c9('0x6f')];for(const _0x78a8e0 of _0x2af977){if(_0x57c9('0x42')==_0x78a8e0[_0x57c9('0x3d')][_0x57c9('0x34')])continue;const {row:_0xe5b887,column:_0x49d594}=_0x2d1fee['getCellLocation'](_0x78a8e0),_0x31e4f3=_0x78a8e0['hasAttribute'](_0x57c9('0x10'))?_0x78a8e0[_0x57c9('0x58')](_0x57c9('0x10'))-0x1:0x0,_0x1ac171=_0x78a8e0[_0x57c9('0x22')](_0x57c9('0x81'))?_0x78a8e0[_0x57c9('0x58')]('colspan')-0x1:0x0;_0x25883f=_0xe5b887<_0x25883f?_0xe5b887:_0x25883f,_0x3e3c8e=_0xe5b887+_0x31e4f3>_0x3e3c8e?_0xe5b887+_0x31e4f3:_0x3e3c8e,_0x40cc50=_0x49d594<_0x40cc50?_0x49d594:_0x40cc50,_0x59cb94=_0x49d594+_0x1ac171>_0x59cb94?_0x49d594+_0x1ac171:_0x59cb94;}return{'minRow':_0x25883f,'maxRow':_0x3e3c8e,'minColumn':_0x40cc50,'maxColumn':_0x59cb94};}['_setupColumnsRowsFixing'](){const _0x4056b6=this[_0x57c9('0x59')],_0x186165=_0x4056b6['plugins'][_0x57c9('0x20')](_0x57c9('0x7d')),_0xddf2d5=_0x4056b6[_0x57c9('0x23')][_0x57c9('0x20')]('TableUtils');_0x4056b6[_0x57c9('0x3')][_0x57c9('0x0')]['on'](_0x57c9('0x31'),()=>{const _0x342a97=Array[_0x57c9('0x40')](_0x4056b6['model'][_0x57c9('0x0')][_0x57c9('0x66')]['getChangedMarkers']());for(const {name:_0x2407bd,data:_0x1ae7e3}of _0x342a97){const {group:_0xdb9749,id:_0x16cf83,subType:_0x23648a}=_0x186165['_splitMarkerName'](_0x2407bd);if(_0x57c9('0x57')!=_0xdb9749)continue;if(null!=_0x1ae7e3[_0x57c9('0x76')])continue;const _0x5a386b=_0x186165[_0x57c9('0x64')](_0x16cf83);this[_0x57c9('0x6c')][_0x57c9('0x14')](_0x23648a)&&this[_0x57c9('0x11')][_0x57c9('0x73')](_0x5a386b);}},{'priority':_0x57c9('0x3c')});const _0x522aa8=(_0x92e151,_0x51928a)=>{let _0x1234e4=!0x1;const _0x491046=_0x51928a[_0x57c9('0x80')](_0x92e151),_0x5ef74d=_0x92e151[_0x57c9('0x2a')]('table'),_0x3bd692=_0xddf2d5[_0x57c9('0x6d')](_0x92e151);for(const _0x58c3b3 of this[_0x57c9('0x11')]){const _0x143231=_0x58c3b3['subType'],_0x293fde=_0x143231[_0x57c9('0x7e')](_0x57c9('0x28')),_0xeb9cd9=_0x143231[_0x57c9('0x83')](_0x293fde?0xa:0x5),_0x2da3c=_0xeb9cd9[_0x57c9('0x75')](),_0x5a36ed=_0x2da3c[_0x57c9('0x83')](0x0,0x3)+_0x57c9('0x82'),_0x5869da='min'+_0xeb9cd9,_0x563660=_0x57c9('0xf')+_0xeb9cd9;if(!_0x58c3b3['isInContent'])continue;if(_0x5ef74d!=_0x58c3b3[_0x57c9('0x5f')]()['start'][_0x57c9('0x2a')](_0x57c9('0x77')))continue;if(_0x58c3b3['isIntersectingWithRange'](_0x491046))continue;const _0x6fe205=_0x92e151[_0x57c9('0x22')](_0x5a36ed)?_0x92e151[_0x57c9('0x58')](_0x5a36ed)-0x1:0x0,_0x39ba9e=this[_0x57c9('0x48')](_0x58c3b3),_0x107280=_0x39ba9e[_0x5869da],_0x548e53=_0x39ba9e[_0x563660];_0x107280<=_0x3bd692[_0x2da3c]&&_0x3bd692[_0x2da3c]+_0x6fe205<=_0x548e53&&(_0x58c3b3[_0x57c9('0x88')](_0x491046),_0x1234e4=!0x0);}return _0x1234e4;};_0x4056b6[_0x57c9('0x3')][_0x57c9('0x0')][_0x57c9('0x45')](_0x3c3361=>{let _0x5a1c4b=!0x1;for(const _0x22bff2 of _0x4056b6['model'][_0x57c9('0x0')][_0x57c9('0x66')][_0x57c9('0x79')]())if('insert'==_0x22bff2[_0x57c9('0x39')]){if(_0x57c9('0x1')==_0x22bff2[_0x57c9('0x3a')])for(const _0xc5cf0c of _0x22bff2[_0x57c9('0x44')][_0x57c9('0x63')][_0x57c9('0x78')]())_0x5a1c4b=_0x5a1c4b||_0x522aa8(_0xc5cf0c,_0x3c3361);else _0x57c9('0x2')==_0x22bff2[_0x57c9('0x3a')]&&(_0x5a1c4b=_0x5a1c4b||_0x522aa8(_0x22bff2['position'][_0x57c9('0x63')],_0x3c3361));}return _0x5a1c4b;});}['_getSuggestionCoords'](_0x540057){return this[_0x57c9('0x35')](_0x540057[_0x57c9('0x37')]()[_0x57c9('0x71')](_0x25aa8d=>_0x25aa8d[_0x57c9('0x6b')]['nodeAfter']));}}function se(_0x372f09){return Array[_0x57c9('0x40')](new Set(_0x372f09)[_0x57c9('0x3f')]());}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/tablecaption
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import TrackChangesTable from './table
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import TrackChangesTable from './table';
|
|
6
10
|
/**
|
|
7
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
8
12
|
*/
|
|
@@ -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 _0x1d1d=['requires','TableCaptionEditing','TrackChangesEditing','editor','plugins','enableCommand','afterInit','toggleTableCaption'];(function(_0x22696a,_0x1d1d79){const _0x4e48df=function(_0x168731){while(--_0x168731){_0x22696a['push'](_0x22696a['shift']());}};_0x4e48df(++_0x1d1d79);}(_0x1d1d,0xf4));const _0x4e48=function(_0x22696a,_0x1d1d79){_0x22696a=_0x22696a-0x0;let _0x4e48df=_0x1d1d[_0x22696a];return _0x4e48df;};import{Plugin as _0x3bb29a}from'ckeditor5/src/core';import _0x4de80b from'./table';export default class vt extends _0x3bb29a{static get[_0x4e48('0x4')](){return[_0x4de80b];}[_0x4e48('0x2')](){const _0x3bd6ad=this[_0x4e48('0x7')];if(!_0x3bd6ad[_0x4e48('0x0')]['has'](_0x4e48('0x5')))return;_0x3bd6ad['plugins']['get'](_0x4e48('0x6'))[_0x4e48('0x1')](_0x4e48('0x3'));}}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import TrackChangesTable from './table
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
import TrackChangesTable from './table';
|
|
6
7
|
/**
|
|
7
8
|
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
8
9
|
*/
|
|
@@ -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 _0x2099=['suggestionUnloaded','plugins','column','registerCustomCallback','redo','getRange','endColumn','registerDescriptionCallback','change','getTableIfOnlyTableInContent','isEmpty','paragraph','createElement','tablePaste','findAncestor','setAttributes','getChild','_tablePostFixingSubtypes','tableCellBackgroundColor','unwrap','add','table','find','isInContent','value','get','removeMarkers','row','tableCellSuggestion','getSelectionAffectedTableCells','TableClipboard','return','end','editingDowncast','markerName','getAttributes','createRangeIn','attributes','editor','nextSibling','editing','low','getAllAdjacentSuggestions','subType','ck-suggestion-marker-insertion','fromEntries','getItems','push','startsWith','last','registerPostFixer','tablePasteCell','rootName','suggestion-td','getSuggestionCallback','first','element','suggestion:formatBlock:tablePasteCell','getChanges','suggestionLoaded','view','insertContent','columnInsertionIndexes','start','tableCellBorderColor','_splitMarkerName','insertion','deletion','has','markMultiRangeBlockFormat','getRowIndexes','tablePasteRow','suggestion','join','tablePasteColumn','commands','oldRange','insertionRanges','$graveyard','discard','position','setAttribute','previousSibling','type','getRanges','remove','showSuggestionHighlights','createRange','fill','markMultiRangeInsertion','tableCellHorizontalAlignment','afterInit','differ','hasSuggestion','map','for','markMultiRangeDeletion','TableUtils','batch','locale','rowInsertionIndexes','filter','Users','updateMarker','length','content','tableCell','register','_suggestionFactory','includes','_getCoordsForCells','TrackChangesEditing','nodeAfter','stop','ck-suggestion-marker--active','keys','root','*Replace\x20table\x20cells*','_descriptionFactory','author','columns','previous','insertColumns','clipboardOutput','getChangedMarkers','getChildren','removeMarker','getColumns','conversion','getShiftedBy','next','accept','elementToElement','isEqual','deletionRanges','from','containsRange','every','formatBlock','set','document','createTableWalker','tablePasteChainId','getContainedElement','getMarkers','rowInsertionRanges','listenTo','high','dataDowncast','markerAttributes','name','getSuggestions','markers','createRangeOn','_createdBatches','reduce','_isForcedDefaultExecutionBlock','removeColumns','some','model','insert','endRow','markerToHighlight','newRange'];(function(_0x32f571,_0x2099d1){const _0x2647bc=function(_0x55011b){while(--_0x55011b){_0x32f571['push'](_0x32f571['shift']());}};_0x2647bc(++_0x2099d1);}(_0x2099,0x13a));const _0x2647=function(_0x32f571,_0x2099d1){_0x32f571=_0x32f571-0x0;let _0x2647bc=_0x2099[_0x32f571];return _0x2647bc;};import{getTranslation as _0x3458be}from'../utils/common-translations.js';import{Plugin as _0xb42fed}from'ckeditor5/src/core.js';import{uid as _0x24988f,priorities as _0x2d5128}from'ckeditor5/src/utils.js';import _0x5820ec from'./table.js';const le=['tableCellBorderWidth',_0x2647('0x4e'),'tableCellBorderStyle',_0x2647('0x68'),'tableCellVerticalAlignment',_0x2647('0x20'),'tableCellPadding'],ae=Object[_0x2647('0x3b')](le[_0x2647('0x6c')](_0xa41e91=>[_0xa41e91,null]));export default class kt extends _0xb42fed{static get['requires'](){return[_0x5820ec];}[_0x2647('0x69')](){const _0x2e29fb=this[_0x2647('0x34')];if(!_0x2e29fb[_0x2647('0xf')][_0x2647('0x52')]('TableClipboard'))return;const _0x20f8f9=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x7d')),_0x4db143=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x6f')),_0x9c1a2d=_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x5820ec),_0x4a4f59=_0x2e29fb['plugins']['get'](_0x2647('0x2c'));_0x9c1a2d[_0x2647('0x1f')][_0x2647('0x3d')](_0x2647('0x55'),_0x2647('0x58')),_0x2e29fb[_0x2647('0x9')]['schema'][_0x2647('0x79')]('tableCellSuggestion',{'allowIn':_0x2647('0x78'),'allowContentOf':_0x2647('0x78'),'isLimit':!0x0}),_0x2e29fb[_0x2647('0x8e')][_0x2647('0x92')]({'model':_0x2647('0x2a'),'view':_0x2647('0x43')});let _0x448a95=null;_0x2e29fb[_0x2647('0x9')]['on'](_0x2647('0x4b'),(_0xe5a01c,_0x3e611f)=>{const [_0x161bc6,_0x291945]=_0x3e611f,_0x5bd549=_0x3e611f[_0x3e611f['length']-0x1];_0x5bd549&&_0x5bd549['forceDefaultExecution']||_0x20f8f9[_0x2647('0x6')]||this[_0x2647('0x34')][_0x2647('0x59')][_0x2647('0x27')]('trackChanges')[_0x2647('0x26')]&&function(_0xfa63f5,_0x7cdac4,_0x4cd0d4,_0x282ee2,_0x137ba8){if(_0x7cdac4&&!_0x7cdac4['is']('documentSelection'))return!0x1;const _0x1f9cba=_0x137ba8[_0x2647('0x17')](_0xfa63f5,_0x4cd0d4);if(!_0x1f9cba||!fe(_0x1f9cba,void 0x0,_0x282ee2))return!0x1;const _0x488576=_0x282ee2[_0x2647('0x2b')](_0x4cd0d4[_0x2647('0x9a')]['selection']);if(!_0x488576[_0x2647('0x76')])return!0x1;const _0x2ac8b7=_0x488576[0x0]['findAncestor'](_0x2647('0x23')),_0x56dba5=_0x282ee2[_0x2647('0x54')](_0x488576),_0x33511c=_0x282ee2['getColumnIndexes'](_0x488576),_0x3f22cb={'startRow':_0x56dba5[_0x2647('0x45')],'endRow':_0x56dba5['last'],'startColumn':_0x33511c[_0x2647('0x45')],'endColumn':_0x33511c[_0x2647('0x3f')]};return 0x1==_0x488576['length']&&(_0x3f22cb[_0x2647('0xb')]+=_0x282ee2['getRows'](_0x1f9cba)-0x1,_0x3f22cb[_0x2647('0x14')]+=_0x282ee2[_0x2647('0x8d')](_0x1f9cba)-0x1),fe(_0x2ac8b7,_0x3f22cb,_0x282ee2);}(_0x161bc6,_0x291945,_0x2e29fb[_0x2647('0x9')],_0x4db143,_0x4a4f59)&&(_0xe5a01c[_0x2647('0x7f')](),_0x448a95={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e29fb[_0x2647('0x9')][_0x2647('0x16')](()=>{_0x2e29fb[_0x2647('0x9')][_0x2647('0x4b')](_0x3e611f[0x0],_0x3e611f[0x1],_0x3e611f[0x2],{'forceDefaultExecution':!0x0});const _0x957668=_0x24988f(),{rowInsertionRanges:_0x251085,columnInsertionRanges:_0x1098eb,insertionRanges:_0x1e0eb9,deletionRanges:_0x431a8e,cells:_0x12d9a7}=_0x448a95;_0x251085[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x67')](_0x251085,_0x2647('0x55'),{'tablePasteChainId':_0x957668}),_0x1098eb[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x67')](_0x1098eb,_0x2647('0x58'),{'tablePasteChainId':_0x957668}),_0x1e0eb9['length']&&_0x20f8f9[_0x2647('0x67')](_0x1e0eb9,_0x2647('0x1b'),{'tablePasteChainId':_0x957668,'skipNestingCheck':!0x0}),_0x431a8e[_0x2647('0x76')]&&_0x20f8f9[_0x2647('0x6e')](_0x431a8e,_0x2647('0x1b'),{'tablePasteChainId':_0x957668,'skipNestingCheck':!0x0});const _0xb3b5a7=_0x20f8f9[_0x2647('0x53')](_0x12d9a7[_0x2647('0x6c')](({element:_0x454edd})=>_0x454edd),{'formatGroupId':_0x24988f()},[],'tablePasteCell',{'tablePasteChainId':_0x957668});if(_0xb3b5a7){const _0x22dc23=_0xb3b5a7[_0x2647('0x9e')](),_0x4c4b05=[];for(const {element:_0x2349ef,attributes:_0x47be40}of _0x12d9a7){if(!_0x47be40)continue;const _0x313a88=_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x2349ef),_0x5bd2e5=_0x22dc23['find'](_0xb0609c=>_0xb0609c[_0x2647('0x13')]()[_0x2647('0x93')](_0x313a88));_0x5bd2e5&&_0x4c4b05[_0x2647('0x3d')]([_0x5bd2e5[_0x2647('0x0')],_0x47be40]);}_0x4c4b05[_0x2647('0x76')]&&_0xb3b5a7[_0x2647('0x5f')](_0x2647('0xa3'),Object['fromEntries'](_0x4c4b05));}_0x448a95=null;}));},{'priority':_0x2d5128[_0x2647('0xa1')]+0xa}),_0x2e29fb[_0x2647('0xf')][_0x2647('0x27')](_0x2647('0x2c'))['on']('_replaceTableSlotCell',(_0x2a862b,_0x36446d)=>{const [_0xeb1740,_0x44dad0,,_0x494f32]=_0x36446d;if(!_0x448a95)return;_0x2a862b[_0x2647('0x7f')]();const _0x1e0754=_0xeb1740['cell'],_0x3fdff9=_0x44dad0,_0x4a7233=ce(_0x1e0754),_0x4b115d=ce(_0x3fdff9);_0x2a862b[_0x2647('0x2d')]=_0x1e0754;let _0xea83b6=null,_0x2d54cc=null;if(_0x4b115d||_0x4a7233){if(_0x4a7233&&!_0x4b115d){_0x494f32[_0x2647('0x63')](_0x1e0754[_0x2647('0x1e')](0x0));for(const _0x137a88 of Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x8b')]()))_0x494f32['insert'](_0x137a88,_0x1e0754,_0x2647('0x2e'));const _0x3c3af1=_0x448a95[_0x2647('0x72')][_0x2647('0x7b')](_0xeb1740[_0x2647('0x29')]),_0x13be84=_0x448a95[_0x2647('0x4c')][_0x2647('0x7b')](_0xeb1740[_0x2647('0x10')]);_0x3c3af1||_0x13be84||(_0xea83b6=_0x494f32[_0x2647('0x32')](_0x1e0754));}else _0x4b115d&&!_0x4a7233&&(_0x2d54cc=_0x494f32['createRangeIn'](_0x1e0754));}else{const _0x1ea19d=_0x494f32[_0x2647('0x1a')](_0x2647('0x2a')),_0x132a04=_0x494f32[_0x2647('0x1a')](_0x2647('0x2a'));_0x494f32['wrap'](_0x494f32[_0x2647('0x32')](_0x1e0754),_0x132a04),_0x494f32['insert'](_0x1ea19d,_0x1e0754,0x0);for(const _0x558fa1 of Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x8b')]()))_0x494f32[_0x2647('0xa')](_0x558fa1,_0x1ea19d,_0x2647('0x2e'));_0xea83b6=_0x494f32[_0x2647('0x3')](_0x1ea19d),_0x2d54cc=_0x494f32[_0x2647('0x3')](_0x132a04);}const _0x4f549b=Array[_0x2647('0x95')](_0x3fdff9[_0x2647('0x31')]())[_0x2647('0x73')](([_0xc74a6b])=>le[_0x2647('0x7b')](_0xc74a6b));_0x448a95['cells'][_0x2647('0x3d')]({'element':_0x1e0754,'attributes':_0x4f549b[_0x2647('0x76')]?Object[_0x2647('0x3b')](_0x4f549b):null}),_0xea83b6&&_0x448a95[_0x2647('0x5b')][_0x2647('0x3d')](_0xea83b6),_0x2d54cc&&_0x448a95[_0x2647('0x94')][_0x2647('0x3d')](_0x2d54cc);},{'priority':_0x2647('0xa1')}),_0x4db143['on'](_0x2647('0x88'),(_0x593ab6,_0x1e94cb)=>{const [_0x1f1793,_0x3c92fe={}]=_0x1e94cb;if(!_0x448a95)return;const _0x1a8bae=_0x3c92fe['at']||0x0,_0x292417=_0x3c92fe[_0x2647('0x86')]||0x1;_0x448a95[_0x2647('0x4c')]=new Array(_0x292417)[_0x2647('0x66')](_0x1a8bae)[_0x2647('0x6c')]((_0x1ad0af,_0x51057c)=>_0x1ad0af+_0x51057c);for(const {cell:_0x2db98f}of _0x4db143[_0x2647('0x9b')](_0x1f1793,{'startColumn':_0x1a8bae,'endColumn':_0x1a8bae+_0x292417-0x1}))_0x448a95['columnInsertionRanges'][_0x2647('0x3d')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x2db98f));},{'priority':_0x2647('0x37')}),_0x4db143['on']('insertRows',(_0x41cb15,_0x57ec54)=>{const [_0x93bc1c,_0x143a0c={}]=_0x57ec54;if(!_0x448a95)return;const _0x4de42f=_0x143a0c['at']||0x0,_0x358da9=_0x143a0c['rows']||0x1;_0x448a95[_0x2647('0x72')]=new Array(_0x358da9)[_0x2647('0x66')](_0x4de42f)[_0x2647('0x6c')]((_0x505199,_0xa24216)=>_0x505199+_0xa24216);for(const {cell:_0x5b38a6}of _0x4db143[_0x2647('0x9b')](_0x93bc1c,{'startRow':_0x4de42f,'endRow':_0x4de42f+_0x358da9-0x1}))_0x448a95[_0x2647('0x9f')][_0x2647('0x3d')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x3')](_0x5b38a6));},{'priority':_0x2647('0x37')}),_0x20f8f9[_0x2647('0x84')][_0x2647('0x15')](_0xf5b13f=>{if(_0xf5b13f[_0x2647('0x39')]&&_0xf5b13f[_0x2647('0x39')][_0x2647('0x3e')](_0x2647('0x1b')))return _0xf5b13f[_0x2647('0x87')]?{}:{'type':_0x2647('0x50'),'content':_0x3458be(_0x2e29fb[_0x2647('0x71')],_0x2647('0x83'))};});const _0xd6d7fe=()=>{};for(const _0x4d871e of[_0x2647('0x1b'),_0x2647('0x58'),_0x2647('0x55'),_0x2647('0x41')])_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback']('insertion',_0x4d871e,_0x2647('0x57'),_0xd6d7fe),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x51'),_0x4d871e,_0x2647('0x57'),_0xd6d7fe);_0x20f8f9[_0x2647('0x7a')][_0x2647('0x11')](_0x2647('0x98'),_0x2647('0x41'),_0x2647('0x5d'),_0xd6d7fe),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x98'),_0x2647('0x41'),_0x2647('0x91'),(_0x5e8102,_0xb2441c,_0x1ae0d1)=>{const _0x43fbcc=_0x5e8102['map'](_0x599235=>_0x599235[_0x2647('0x9d')]())[_0x2647('0x73')](_0x40ca12=>_0x40ca12),_0x4488cd=new Map(_0x43fbcc['map'](_0x7c7bd9=>[_0x7c7bd9,null]));if(_0x448a95)for(const {element:_0x36fff0,attributes:_0x52985e}of _0x448a95['cells'])_0x52985e&&_0x4488cd[_0x2647('0x99')](_0x36fff0,_0x52985e);else{if(_0x1ae0d1&&_0x1ae0d1[_0x2647('0xa3')])for(const [_0x40c609,_0xdf26dd]of Object['entries'](_0x1ae0d1[_0x2647('0xa3')])){const _0x1f1ffd=_0x2e29fb[_0x2647('0x9')][_0x2647('0x2')][_0x2647('0x27')](_0x40c609),_0x3da461=_0x1f1ffd?_0x1f1ffd[_0x2647('0x13')]()[_0x2647('0x9d')]():null;_0x3da461&&_0x4488cd[_0x2647('0x99')](_0x3da461,_0xdf26dd);}}_0x2e29fb[_0x2647('0x9')][_0x2647('0x16')](_0x5399a5=>{for(const [_0x1413bf,_0x1ac81f]of _0x4488cd)_0x5399a5[_0x2647('0x1d')]({...ae,..._0x1ac81f},_0x1413bf);});});const _0x2acd9a=(_0x373bdd,_0x3695ef)=>{_0x20f8f9[_0x2647('0x7a')][_0x2647('0x11')](_0x373bdd,_0x2647('0x1b'),_0x3695ef,(_0xd9fc7c,_0x31b1a8,_0x5c6fe3)=>{_0x2e29fb['model'][_0x2647('0x16')](_0x3829ae=>{const _0x2ac3cc=[];for(const _0x2e0284 of _0xd9fc7c){const _0x4cf8f7=_0x2e0284[_0x2647('0x4d')][_0x2647('0x7e')];_0x4cf8f7['is'](_0x2647('0x46'),_0x2647('0x2a'))&&_0x2ac3cc[_0x2647('0x3d')](_0x4cf8f7);}_0x20f8f9[_0x2647('0x7a')][_0x2647('0x44')](_0x373bdd,null,_0x3695ef)(_0xd9fc7c,_0x31b1a8,_0x5c6fe3);for(const _0x46957a of _0x2ac3cc)_0x2647('0x5c')!=_0x46957a[_0x2647('0x82')][_0x2647('0x42')]&&_0x3829ae[_0x2647('0x21')](_0x46957a);});});};_0x2acd9a(_0x2647('0x50'),_0x2647('0x91')),_0x2acd9a(_0x2647('0x50'),_0x2647('0x5d')),_0x2acd9a('deletion',_0x2647('0x91')),_0x2acd9a('deletion',_0x2647('0x5d')),_0x20f8f9['_suggestionFactory'][_0x2647('0x11')]('insertion','tablePasteRow',_0x2647('0x5d'),_0x11b4bd=>{const _0x5d2225=_0x11b4bd[_0x2647('0x6c')](_0x47e54b=>_0x47e54b['getContainedElement']()),_0x370685=_0x5d2225[0x0][_0x2647('0x1c')](_0x2647('0x23')),{minRow:_0x50926e,maxRow:_0x2d6a73}=_0x9c1a2d[_0x2647('0x7c')](_0x5d2225);_0x4db143['removeRows'](_0x370685,{'at':_0x50926e,'rows':_0x2d6a73-_0x50926e+0x1});}),_0x20f8f9[_0x2647('0x7a')]['registerCustomCallback'](_0x2647('0x50'),_0x2647('0x58'),_0x2647('0x5d'),_0x4473c6=>{const _0x48b1dd=_0x4473c6[_0x2647('0x6c')](_0x3852ee=>_0x3852ee[_0x2647('0x9d')]()),_0x498611=_0x48b1dd[0x0][_0x2647('0x1c')](_0x2647('0x23')),{minColumn:_0x13034e,maxColumn:_0x1c4793}=_0x9c1a2d['_getCoordsForCells'](_0x48b1dd);_0x4db143[_0x2647('0x7')](_0x498611,{'at':_0x13034e,'columns':_0x1c4793-_0x13034e+0x1});});const _0x2c3ee5=(_0x17229a,_0x1a7148)=>{if(!_0x1a7148['subType']||!_0x1a7148[_0x2647('0x39')][_0x2647('0x3e')](_0x2647('0x1b')))return;const _0x41f917=_0x1a7148[_0x2647('0x33')][_0x2647('0x9c')],_0x1e7317=_0x20f8f9[_0x2647('0x1')]()[_0x2647('0x73')](_0xb1ae9c=>_0xb1ae9c['isInContent']&&_0xb1ae9c[_0x2647('0x33')]&&_0xb1ae9c['attributes'][_0x2647('0x9c')]==_0x41f917);_0x1e7317['length']&&_0x1a7148[_0x2647('0x38')]()[_0x2647('0x76')]!=_0x1e7317[_0x2647('0x76')]&&_0x1e7317[_0x2647('0x5')]((_0x49ce41,_0x1d6b4c)=>(_0x49ce41[_0x2647('0x90')]=_0x1d6b4c,_0x1d6b4c[_0x2647('0x87')]=_0x49ce41,_0x1d6b4c));};function _0x14c7d1(_0x1d1d7e,_0x3be916=!0x0){const {id:_0x382b6e}=_0x20f8f9[_0x2647('0x4f')](_0x1d1d7e[_0x2647('0x30')]),_0x93218e=['ck-suggestion-marker',_0x2647('0x3a')],_0xb1c5d9=_0x20f8f9['activeMarkers']['includes'](_0x1d1d7e[_0x2647('0x30')]);return _0xb1c5d9&&_0x93218e['push'](_0x2647('0x80')),{'classes':_0x93218e,'attributes':{'data-suggestion':_0x382b6e},'priority':_0xb1c5d9&&_0x3be916?0xbc2:0xbb8};}_0x20f8f9['on'](_0x2647('0x49'),_0x2c3ee5,{'priority':_0x2647('0xa1')}),_0x20f8f9['on'](_0x2647('0xe'),_0x2c3ee5,{'priority':_0x2647('0xa1')}),_0x2e29fb['model']['document'][_0x2647('0x40')](()=>{let _0x29539c=!0x1;const _0x2d86ba=Array[_0x2647('0x95')](_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x8a')]());for(const {name:_0x18a714,data:_0x441b6b}of _0x2d86ba){const {group:_0x566ec2,type:_0x586862,id:_0x41d77b}=_0x20f8f9[_0x2647('0x4f')](_0x18a714);if(_0x2647('0x56')!=_0x566ec2||'deletion'!=_0x586862||_0x441b6b['oldRange'])continue;if(!_0x20f8f9[_0x2647('0x6b')](_0x41d77b))continue;const _0x53ea2c=_0x20f8f9['getSuggestion'](_0x41d77b)[_0x2647('0x62')](),_0x3fbd5f=_0x2e29fb[_0x2647('0xf')]['get'](_0x2647('0x74'))['me'];for(const _0x1970e3 of _0x20f8f9[_0x2647('0x1')]()){if(!_0x1970e3['isInContent']||_0x1970e3['author']!=_0x3fbd5f)continue;if(_0x2647('0x98')!=_0x1970e3[_0x2647('0x61')]||_0x2647('0x41')!=_0x1970e3['subType'])continue;if(_0x1970e3[_0x2647('0x62')]()[_0x2647('0x97')](_0x1fda63=>_0x53ea2c[_0x2647('0x8')](_0x4f8f69=>_0x4f8f69[_0x2647('0x96')](_0x1fda63,!0x0))))for(const _0x1e8ec8 of _0x1970e3[_0x2647('0x38')]())_0x1e8ec8[_0x2647('0x25')]&&(_0x1e8ec8['discard'](),_0x29539c=!0x0);}}return _0x29539c;}),_0x2e29fb[_0x2647('0x9')]['document'][_0x2647('0x40')](_0x1b67ae=>{const _0x30146e=_0x2e29fb[_0x2647('0x59')][_0x2647('0x27')](_0x2647('0x12'));if(!_0x30146e||!_0x30146e[_0x2647('0x4')][_0x2647('0x52')](_0x1b67ae[_0x2647('0x70')]))return!0x1;let _0x5d7bb5=!0x1;const _0x4ca233=_0x2e29fb['plugins'][_0x2647('0x27')]('Users')['me'],_0x47eac7=_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x48')](),_0x15ddaa=Array['from'](_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')][_0x2647('0x6a')][_0x2647('0x8a')]())[_0x2647('0x73')](({name:_0x327da3,data:_0x37af86})=>{const {group:_0x44376b,subType:_0x1feee7,authorId:_0x52279e}=_0x20f8f9[_0x2647('0x4f')](_0x327da3);return _0x2647('0x56')==_0x44376b&&_0x2647('0x1b')==_0x1feee7&&_0x52279e==_0x4ca233['id']&&!_0x37af86[_0x2647('0x5a')];});for(const _0x589278 of _0x47eac7){if('insert'!=_0x589278[_0x2647('0x61')]||'tableCellSuggestion'!=_0x589278[_0x2647('0x0')]||0x1!=_0x589278[_0x2647('0x76')])continue;const _0x11322b=_0x1b67ae[_0x2647('0x65')](_0x589278[_0x2647('0x5e')],_0x589278[_0x2647('0x5e')][_0x2647('0x8f')](0x1));if(!_0x15ddaa[_0x2647('0x24')](({data:_0x444ccb})=>_0x444ccb[_0x2647('0xd')][_0x2647('0x93')](_0x11322b)))for(const {name:_0x5d905d,data:_0x22d00b}of _0x15ddaa)if(_0x11322b[_0x2647('0x96')](_0x22d00b[_0x2647('0xd')])){_0x1b67ae[_0x2647('0x75')](_0x5d905d,{'range':_0x11322b}),_0x5d7bb5=!0x0;break;}}return _0x5d7bb5;}),_0x2e29fb[_0x2647('0x9')][_0x2647('0x9a')]['registerPostFixer'](_0xc27168=>{let _0x51798b=!0x1;const _0x3938e1=_0x2e29fb['plugins'][_0x2647('0x27')](_0x2647('0x74'))['me'],_0x2546c5=_0x20f8f9[_0x2647('0x1')]()['filter'](_0xad7e94=>_0xad7e94[_0x2647('0x25')]&&_0xad7e94[_0x2647('0x85')]==_0x3938e1),_0x145213=new Set(),_0x3ac91e=new Set();for(const _0x452259 of _0x2546c5)if(_0x2647('0x1b')==_0x452259['subType'])for(const _0x589b93 of _0x452259[_0x2647('0x9e')]()){const _0x2d8a90=_0x589b93[_0x2647('0x13')]()['getContainedElement']();if(_0x2d8a90){if(_0x2d8a90['is'](_0x2647('0x46'),_0x2647('0x2a'))&&ce(_0x2d8a90)){_0x452259[_0x2647('0x8c')](_0x589b93[_0x2647('0x0')]),_0x145213[_0x2647('0x22')](_0x2d8a90),_0x51798b=!0x0;const _0x30d92b=_0x2d8a90[_0x2647('0x35')],_0x56927d=_0x2d8a90[_0x2647('0x60')],_0x5df6a6=_0x30d92b&&_0x30d92b['is'](_0x2647('0x46'),_0x2647('0x2a')),_0x1f7135=_0x56927d&&_0x56927d['is'](_0x2647('0x46'),'tableCellSuggestion');_0x5df6a6&&!_0x145213[_0x2647('0x52')](_0x30d92b)&&_0x3ac91e[_0x2647('0x22')](_0x30d92b),_0x1f7135&&!_0x145213[_0x2647('0x52')](_0x56927d)&&_0x3ac91e[_0x2647('0x22')](_0x56927d);}else _0x2d8a90['is'](_0x2647('0x46'),_0x2647('0x19'))&&_0x2d8a90['isEmpty']&&(_0x452259['removeMarker'](_0x589b93[_0x2647('0x0')]),_0x51798b=!0x0);}}else{if(_0x2647('0x41')==_0x452259[_0x2647('0x39')]){if(!_0x452259[_0x2647('0x33')]||!_0x452259[_0x2647('0x33')][_0x2647('0x9c')])continue;const _0x23db8d=_0x452259[_0x2647('0x33')][_0x2647('0xa3')];if(_0x23db8d&&Object[_0x2647('0x81')](_0x23db8d)[_0x2647('0x76')])continue;const _0x1e5a86=_0x452259[_0x2647('0x33')]['tablePasteChainId'];let _0x3942bd=!0x0,_0x19ef2e=!0x0;for(const _0x23a568 of _0x2546c5)if(_0x23a568['subType']&&_0x23a568['subType'][_0x2647('0x3e')](_0x2647('0x1b'))){if(!_0x23a568['attributes']['tablePasteChainId']){_0x19ef2e=!0x1;break;}if(_0x23a568['id']!=_0x452259['id']&&_0x23a568[_0x2647('0x33')][_0x2647('0x9c')]==_0x1e5a86){_0x3942bd=!0x1;break;}}_0x19ef2e&&_0x3942bd&&(_0x452259[_0x2647('0x28')](),_0x51798b=!0x0);}}for(const _0x44b87a of _0x145213)_0xc27168[_0x2647('0x63')](_0x44b87a);for(const _0x114ade of _0x3ac91e)_0xc27168['unwrap'](_0x114ade);return _0x51798b;}),_0x2e29fb[_0x2647('0x8e')][_0x2647('0x6d')](_0x2647('0x2f'))[_0x2647('0xc')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c0d06,_0x5888d8)=>_0x14c7d1(_0x1c0d06),'converterPriority':_0x2647('0xa1')}),_0x2e29fb['conversion'][_0x2647('0x6d')](_0x2647('0xa2'))[_0x2647('0xc')]({'model':_0x2647('0x47'),'view':(_0x575685,_0x2654f9)=>_0x2654f9['options'][_0x2647('0x64')]?_0x14c7d1(_0x575685,!0x1):null,'converterPriority':_0x2647('0xa1')});const _0x57c450=_0x2e29fb[_0x2647('0x36')][_0x2647('0x4a')];this[_0x2647('0xa0')](_0x57c450[_0x2647('0x9a')],_0x2647('0x89'),(_0x18cb02,_0x14b791)=>{const _0xb120e2=[];for(const _0x46212b of _0x57c450['createRangeIn'](_0x14b791[_0x2647('0x77')])[_0x2647('0x3c')]())_0x46212b['is'](_0x2647('0x46'),_0x2647('0x43'))&&_0xb120e2[_0x2647('0x3d')](_0x46212b);_0x57c450['change'](_0x1e2a49=>{for(const _0x102e10 of _0xb120e2)_0x1e2a49['move'](_0x1e2a49['createRangeIn'](_0x102e10),_0x1e2a49['createPositionBefore'](_0x102e10)),_0x1e2a49[_0x2647('0x63')](_0x102e10);});});}}function ce(_0x3d9f04){if(_0x3d9f04['isEmpty'])return!0x0;const _0x5c48d6=_0x3d9f04[_0x2647('0x1e')](0x0);return _0x5c48d6['is'](_0x2647('0x46'),_0x2647('0x19'))&&_0x5c48d6[_0x2647('0x18')];}function fe(_0x41246d,_0x187603={},_0x329ba8){for(const {isAnchor:_0x1ecdfd,cellHeight:_0x1745c4,cellWidth:_0x1f4be6}of _0x329ba8[_0x2647('0x9b')](_0x41246d,{'includeAllSlots':!0x0,..._0x187603}))if(!_0x1ecdfd||0x1!=_0x1745c4||0x1!=_0x1f4be6)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4836=['view','markMultiRangeInsertion','join','table','insert','tablePasteColumn','markerToHighlight','element','oldRange','tablePasteChainId','tableCell','filter','redo','options','markMultiRangeBlockFormat','tableCellBorderColor','rowInsertionRanges','wrap','length','deletion','markers','schema','updateMarker','*Replace\x20table\x20cells*','createRangeIn','registerCustomCallback','markMultiRangeDeletion','get','nodeAfter','entries','markerAttributes','locale','isEqual','change','newRange','findAncestor','tableCellBorderStyle','map','removeColumns','markerName','selection','low','startsWith','editor','getColumnIndexes','paragraph','setAttribute','getRowIndexes','stop','conversion','listenTo','tableCellBorderWidth','move','attributes','getSuggestionCallback','getSuggestions','find','createTableWalker','accept','rowInsertionIndexes','tableCellVerticalAlignment','editing','ck-suggestion-marker-insertion','TrackChangesEditing','tableCellSuggestion','getChildren','tablePasteRow','getContainedElement','insertRows','plugins','isEmpty','fromEntries','author','tableCellBackgroundColor','columns','containsRange','hasSuggestion','insertContent','Users','high','_descriptionFactory','getShiftedBy','name','getRows','_splitMarkerName','column','getAttributes','$graveyard','insertion','columnInsertionRanges','tableCellHorizontalAlignment','getChanges','content','_createdBatches','add','createRangeOn','has','differ','type','formatBlock','showSuggestionHighlights','documentSelection','subType','getChild','createPositionBefore','ck-suggestion-marker','requires','suggestion:formatBlock:tablePasteCell','nextSibling','removeMarkers','batch','position','document','every','getSuggestion','tablePasteCell','_tablePostFixingSubtypes','getSelectionAffectedTableCells','reduce','set','endColumn','elementToElement','registerDescriptionCallback','createElement','registerPostFixer','columnInsertionIndexes','getRanges','_replaceTableSlotCell','fill','getTableIfOnlyTableInContent','TableClipboard','getMarkers','tableCellPadding','push','getColumns','tablePaste','removeMarker','keys','register','getAllAdjacentSuggestions','includes','_getCoordsForCells','unwrap','forceDefaultExecution','previous','for','end','suggestion-td','trackChanges','isInContent','_suggestionFactory','getRange','suggestion','first','remove','removeRows','discard','TableUtils','suggestionLoaded','deletionRanges','getChangedMarkers','model','from','last','commands'];(function(_0x10492b,_0x48366c){const _0x352ca7=function(_0x4db370){while(--_0x4db370){_0x10492b['push'](_0x10492b['shift']());}};_0x352ca7(++_0x48366c);}(_0x4836,0xa8));const _0x352c=function(_0x10492b,_0x48366c){_0x10492b=_0x10492b-0x0;let _0x352ca7=_0x4836[_0x10492b];return _0x352ca7;};import{getTranslation as _0x5e1dce}from'../utils/common-translations';import{Plugin as _0x5db8da}from'ckeditor5/src/core';import{uid as _0x3c6117,priorities as _0x220747}from'ckeditor5/src/utils';import _0x2060a9 from'./table';const le=[_0x352c('0x30'),_0x352c('0xc'),_0x352c('0x21'),_0x352c('0x57'),_0x352c('0x39'),_0x352c('0x46'),_0x352c('0x81')],ae=Object[_0x352c('0x44')](le[_0x352c('0x22')](_0x37127e=>[_0x37127e,null]));export default class kt extends _0x5db8da{static get[_0x352c('0x67')](){return[_0x2060a9];}['afterInit'](){const _0x18d001=this[_0x352c('0x28')];if(!_0x18d001[_0x352c('0x42')][_0x352c('0x5d')](_0x352c('0x7f')))return;const _0x30f891=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x3c')),_0x5c60be=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x9a')),_0x434e26=_0x18d001[_0x352c('0x42')]['get'](_0x2060a9),_0x3886f9=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x7f'));_0x434e26[_0x352c('0x71')][_0x352c('0x82')](_0x352c('0x3f'),'tablePasteColumn'),_0x18d001['model'][_0x352c('0x12')][_0x352c('0x87')](_0x352c('0x3d'),{'allowIn':_0x352c('0x7'),'allowContentOf':_0x352c('0x7'),'isLimit':!0x0}),_0x18d001['conversion'][_0x352c('0x76')]({'model':'tableCellSuggestion','view':_0x352c('0x90')});let _0x558b2f=null;_0x18d001[_0x352c('0x9e')]['on'](_0x352c('0x4a'),(_0x14aa56,_0x3f1505)=>{const [_0x57c54c,_0x4ff70e]=_0x3f1505,_0x5395f6=_0x3f1505[_0x3f1505[_0x352c('0xf')]-0x1];_0x5395f6&&_0x5395f6[_0x352c('0x8c')]||_0x30f891['_isForcedDefaultExecutionBlock']||this['editor'][_0x352c('0xa1')][_0x352c('0x18')](_0x352c('0x91'))['value']&&function(_0x2fa9bf,_0x406ad5,_0x1c1c3e,_0x42cfd5,_0x2b08db){if(_0x406ad5&&!_0x406ad5['is'](_0x352c('0x62')))return!0x1;const _0x25c343=_0x2b08db[_0x352c('0x7e')](_0x2fa9bf,_0x1c1c3e);if(!_0x25c343||!fe(_0x25c343,void 0x0,_0x42cfd5))return!0x1;const _0x1e7473=_0x42cfd5[_0x352c('0x72')](_0x1c1c3e[_0x352c('0x6d')][_0x352c('0x25')]);if(!_0x1e7473[_0x352c('0xf')])return!0x1;const _0x1069ec=_0x1e7473[0x0][_0x352c('0x20')](_0x352c('0x0')),_0x5d5adf=_0x42cfd5[_0x352c('0x2c')](_0x1e7473),_0xed75d7=_0x42cfd5[_0x352c('0x29')](_0x1e7473),_0x2ed9b0={'startRow':_0x5d5adf[_0x352c('0x96')],'endRow':_0x5d5adf['last'],'startColumn':_0xed75d7[_0x352c('0x96')],'endColumn':_0xed75d7[_0x352c('0xa0')]};return 0x1==_0x1e7473['length']&&(_0x2ed9b0['endRow']+=_0x42cfd5[_0x352c('0x50')](_0x25c343)-0x1,_0x2ed9b0[_0x352c('0x75')]+=_0x42cfd5[_0x352c('0x83')](_0x25c343)-0x1),fe(_0x1069ec,_0x2ed9b0,_0x42cfd5);}(_0x57c54c,_0x4ff70e,_0x18d001[_0x352c('0x9e')],_0x5c60be,_0x3886f9)&&(_0x14aa56['stop'](),_0x558b2f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x18d001[_0x352c('0x9e')][_0x352c('0x1e')](()=>{_0x18d001['model'][_0x352c('0x4a')](_0x3f1505[0x0],_0x3f1505[0x1],_0x3f1505[0x2],{'forceDefaultExecution':!0x0});const _0x344a3c=_0x3c6117(),{rowInsertionRanges:_0x3f5d8c,columnInsertionRanges:_0x579d1a,insertionRanges:_0x5efe86,deletionRanges:_0x309887,cells:_0x3b5c95}=_0x558b2f;_0x3f5d8c['length']&&_0x30f891[_0x352c('0xa3')](_0x3f5d8c,_0x352c('0x3f'),{'tablePasteChainId':_0x344a3c}),_0x579d1a[_0x352c('0xf')]&&_0x30f891['markMultiRangeInsertion'](_0x579d1a,_0x352c('0x2'),{'tablePasteChainId':_0x344a3c}),_0x5efe86[_0x352c('0xf')]&&_0x30f891[_0x352c('0xa3')](_0x5efe86,'tablePaste',{'tablePasteChainId':_0x344a3c,'skipNestingCheck':!0x0}),_0x309887[_0x352c('0xf')]&&_0x30f891[_0x352c('0x17')](_0x309887,'tablePaste',{'tablePasteChainId':_0x344a3c,'skipNestingCheck':!0x0});const _0x2dad16=_0x30f891[_0x352c('0xb')](_0x3b5c95['map'](({element:_0x4f0fc5})=>_0x4f0fc5),{'formatGroupId':_0x3c6117()},[],_0x352c('0x70'),{'tablePasteChainId':_0x344a3c});if(_0x2dad16){const _0x22620a=_0x2dad16[_0x352c('0x80')](),_0x5d6ac1=[];for(const {element:_0x1356df,attributes:_0x41277c}of _0x3b5c95){if(!_0x41277c)continue;const _0xe3adc5=_0x18d001[_0x352c('0x9e')][_0x352c('0x5c')](_0x1356df),_0x5ef5e1=_0x22620a[_0x352c('0x35')](_0x52dec4=>_0x52dec4[_0x352c('0x94')]()[_0x352c('0x1d')](_0xe3adc5));_0x5ef5e1&&_0x5d6ac1[_0x352c('0x82')]([_0x5ef5e1[_0x352c('0x4f')],_0x41277c]);}_0x5d6ac1[_0x352c('0xf')]&&_0x2dad16[_0x352c('0x2b')](_0x352c('0x1b'),Object['fromEntries'](_0x5d6ac1));}_0x558b2f=null;}));},{'priority':_0x220747[_0x352c('0x4c')]+0xa}),_0x18d001[_0x352c('0x42')]['get'](_0x352c('0x7f'))['on'](_0x352c('0x7c'),(_0x2e3790,_0x4241fe)=>{const [_0x39cada,_0x5ba930,,_0x2bd8f1]=_0x4241fe;if(!_0x558b2f)return;_0x2e3790[_0x352c('0x2d')]();const _0x48be69=_0x39cada['cell'],_0x4c5d06=_0x5ba930,_0x2acb6c=ce(_0x48be69),_0x14a082=ce(_0x4c5d06);_0x2e3790['return']=_0x48be69;let _0x5ee595=null,_0xc96bd6=null;if(_0x14a082||_0x2acb6c){if(_0x2acb6c&&!_0x14a082){_0x2bd8f1[_0x352c('0x97')](_0x48be69[_0x352c('0x64')](0x0));for(const _0x515e6d of Array['from'](_0x4c5d06[_0x352c('0x3e')]()))_0x2bd8f1[_0x352c('0x1')](_0x515e6d,_0x48be69,_0x352c('0x8f'));const _0x3a6ac6=_0x558b2f[_0x352c('0x38')][_0x352c('0x89')](_0x39cada['row']),_0x39de7a=_0x558b2f[_0x352c('0x7a')][_0x352c('0x89')](_0x39cada[_0x352c('0x52')]);_0x3a6ac6||_0x39de7a||(_0x5ee595=_0x2bd8f1[_0x352c('0x15')](_0x48be69));}else _0x14a082&&!_0x2acb6c&&(_0xc96bd6=_0x2bd8f1[_0x352c('0x15')](_0x48be69));}else{const _0x3d2d36=_0x2bd8f1['createElement'](_0x352c('0x3d')),_0x5b04b5=_0x2bd8f1[_0x352c('0x78')](_0x352c('0x3d'));_0x2bd8f1[_0x352c('0xe')](_0x2bd8f1['createRangeIn'](_0x48be69),_0x5b04b5),_0x2bd8f1['insert'](_0x3d2d36,_0x48be69,0x0);for(const _0x300906 of Array['from'](_0x4c5d06[_0x352c('0x3e')]()))_0x2bd8f1[_0x352c('0x1')](_0x300906,_0x3d2d36,'end');_0x5ee595=_0x2bd8f1[_0x352c('0x5c')](_0x3d2d36),_0xc96bd6=_0x2bd8f1[_0x352c('0x5c')](_0x5b04b5);}const _0x233462=Array['from'](_0x4c5d06[_0x352c('0x53')]())[_0x352c('0x8')](([_0x35c303])=>le['includes'](_0x35c303));_0x558b2f['cells'][_0x352c('0x82')]({'element':_0x48be69,'attributes':_0x233462['length']?Object[_0x352c('0x44')](_0x233462):null}),_0x5ee595&&_0x558b2f['insertionRanges']['push'](_0x5ee595),_0xc96bd6&&_0x558b2f[_0x352c('0x9c')][_0x352c('0x82')](_0xc96bd6);},{'priority':_0x352c('0x4c')}),_0x5c60be['on']('insertColumns',(_0x4f718f,_0x284a62)=>{const [_0x26c4ec,_0x274f6d={}]=_0x284a62;if(!_0x558b2f)return;const _0x17962d=_0x274f6d['at']||0x0,_0x3f4130=_0x274f6d[_0x352c('0x47')]||0x1;_0x558b2f['columnInsertionIndexes']=new Array(_0x3f4130)[_0x352c('0x7d')](_0x17962d)[_0x352c('0x22')]((_0x2829d2,_0x5c7f94)=>_0x2829d2+_0x5c7f94);for(const {cell:_0x134b14}of _0x5c60be[_0x352c('0x36')](_0x26c4ec,{'startColumn':_0x17962d,'endColumn':_0x17962d+_0x3f4130-0x1}))_0x558b2f[_0x352c('0x56')]['push'](_0x18d001[_0x352c('0x9e')][_0x352c('0x5c')](_0x134b14));},{'priority':_0x352c('0x26')}),_0x5c60be['on'](_0x352c('0x41'),(_0x28d51c,_0x18a4cc)=>{const [_0x3684d1,_0x1a8996={}]=_0x18a4cc;if(!_0x558b2f)return;const _0x5de894=_0x1a8996['at']||0x0,_0x408c5d=_0x1a8996['rows']||0x1;_0x558b2f[_0x352c('0x38')]=new Array(_0x408c5d)[_0x352c('0x7d')](_0x5de894)[_0x352c('0x22')]((_0x369598,_0x115044)=>_0x369598+_0x115044);for(const {cell:_0x260569}of _0x5c60be[_0x352c('0x36')](_0x3684d1,{'startRow':_0x5de894,'endRow':_0x5de894+_0x408c5d-0x1}))_0x558b2f[_0x352c('0xd')][_0x352c('0x82')](_0x18d001['model'][_0x352c('0x5c')](_0x260569));},{'priority':'low'}),_0x30f891[_0x352c('0x4d')][_0x352c('0x77')](_0x512807=>{if(_0x512807[_0x352c('0x63')]&&_0x512807[_0x352c('0x63')][_0x352c('0x27')](_0x352c('0x84')))return _0x512807[_0x352c('0x8d')]?{}:{'type':'insertion','content':_0x5e1dce(_0x18d001[_0x352c('0x1c')],_0x352c('0x14'))};});const _0x49681d=()=>{};for(const _0xf08a5c of[_0x352c('0x84'),_0x352c('0x2'),_0x352c('0x3f'),_0x352c('0x70')])_0x30f891['_suggestionFactory'][_0x352c('0x16')](_0x352c('0x55'),_0xf08a5c,_0x352c('0xa4'),_0x49681d),_0x30f891[_0x352c('0x93')][_0x352c('0x16')]('deletion',_0xf08a5c,_0x352c('0xa4'),_0x49681d);_0x30f891[_0x352c('0x93')][_0x352c('0x16')]('formatBlock',_0x352c('0x70'),_0x352c('0x99'),_0x49681d),_0x30f891[_0x352c('0x93')][_0x352c('0x16')](_0x352c('0x60'),_0x352c('0x70'),_0x352c('0x37'),(_0x3b8877,_0x5c3573,_0x34bb61)=>{const _0x583c95=_0x3b8877['map'](_0x4d83d1=>_0x4d83d1[_0x352c('0x40')]())[_0x352c('0x8')](_0x3c7724=>_0x3c7724),_0x411e2c=new Map(_0x583c95[_0x352c('0x22')](_0x5bbac8=>[_0x5bbac8,null]));if(_0x558b2f)for(const {element:_0x357357,attributes:_0x50e95c}of _0x558b2f['cells'])_0x50e95c&&_0x411e2c[_0x352c('0x74')](_0x357357,_0x50e95c);else{if(_0x34bb61&&_0x34bb61['markerAttributes'])for(const [_0x59f658,_0x3242fc]of Object[_0x352c('0x1a')](_0x34bb61['markerAttributes'])){const _0x3cea10=_0x18d001['model'][_0x352c('0x11')][_0x352c('0x18')](_0x59f658),_0x1a1ccb=_0x3cea10?_0x3cea10[_0x352c('0x94')]()[_0x352c('0x40')]():null;_0x1a1ccb&&_0x411e2c['set'](_0x1a1ccb,_0x3242fc);}}_0x18d001[_0x352c('0x9e')]['change'](_0xdf857c=>{for(const [_0x34c4b1,_0x1dadfe]of _0x411e2c)_0xdf857c['setAttributes']({...ae,..._0x1dadfe},_0x34c4b1);});});const _0x29deb0=(_0x1c9845,_0x1f0e56)=>{_0x30f891['_suggestionFactory']['registerCustomCallback'](_0x1c9845,_0x352c('0x84'),_0x1f0e56,(_0x461c4e,_0x5b7d54,_0x10a72e)=>{_0x18d001['model'][_0x352c('0x1e')](_0x286f8a=>{const _0x414fb7=[];for(const _0x407383 of _0x461c4e){const _0x312465=_0x407383['start'][_0x352c('0x19')];_0x312465['is'](_0x352c('0x4'),_0x352c('0x3d'))&&_0x414fb7['push'](_0x312465);}_0x30f891['_suggestionFactory'][_0x352c('0x33')](_0x1c9845,null,_0x1f0e56)(_0x461c4e,_0x5b7d54,_0x10a72e);for(const _0x46924d of _0x414fb7)_0x352c('0x54')!=_0x46924d['root']['rootName']&&_0x286f8a[_0x352c('0x8b')](_0x46924d);});});};_0x29deb0(_0x352c('0x55'),_0x352c('0x37')),_0x29deb0('insertion','discard'),_0x29deb0(_0x352c('0x10'),_0x352c('0x37')),_0x29deb0(_0x352c('0x10'),'discard'),_0x30f891[_0x352c('0x93')][_0x352c('0x16')]('insertion',_0x352c('0x3f'),_0x352c('0x99'),_0x1a91b8=>{const _0x290a5d=_0x1a91b8[_0x352c('0x22')](_0x3892d6=>_0x3892d6[_0x352c('0x40')]()),_0x56a46c=_0x290a5d[0x0]['findAncestor']('table'),{minRow:_0x4ea6fe,maxRow:_0x46c496}=_0x434e26[_0x352c('0x8a')](_0x290a5d);_0x5c60be[_0x352c('0x98')](_0x56a46c,{'at':_0x4ea6fe,'rows':_0x46c496-_0x4ea6fe+0x1});}),_0x30f891[_0x352c('0x93')][_0x352c('0x16')](_0x352c('0x55'),_0x352c('0x2'),_0x352c('0x99'),_0x3ce4a4=>{const _0x499e6f=_0x3ce4a4[_0x352c('0x22')](_0x3fb879=>_0x3fb879[_0x352c('0x40')]()),_0x40ec56=_0x499e6f[0x0][_0x352c('0x20')](_0x352c('0x0')),{minColumn:_0x22d4ce,maxColumn:_0x20e10e}=_0x434e26['_getCoordsForCells'](_0x499e6f);_0x5c60be[_0x352c('0x23')](_0x40ec56,{'at':_0x22d4ce,'columns':_0x20e10e-_0x22d4ce+0x1});});const _0x3b08d3=(_0x506569,_0x383b71)=>{if(!_0x383b71[_0x352c('0x63')]||!_0x383b71['subType'][_0x352c('0x27')](_0x352c('0x84')))return;const _0x2e61e6=_0x383b71[_0x352c('0x32')][_0x352c('0x6')],_0x5b94b6=_0x30f891[_0x352c('0x34')]()[_0x352c('0x8')](_0x3dfa80=>_0x3dfa80[_0x352c('0x92')]&&_0x3dfa80[_0x352c('0x32')]&&_0x3dfa80[_0x352c('0x32')][_0x352c('0x6')]==_0x2e61e6);_0x5b94b6['length']&&_0x383b71[_0x352c('0x88')]()[_0x352c('0xf')]!=_0x5b94b6[_0x352c('0xf')]&&_0x5b94b6[_0x352c('0x73')]((_0x16b814,_0x294b53)=>(_0x16b814['next']=_0x294b53,_0x294b53[_0x352c('0x8d')]=_0x16b814,_0x294b53));};function _0x154ea7(_0x1d20e9,_0x525119=!0x0){const {id:_0x2bc79e}=_0x30f891['_splitMarkerName'](_0x1d20e9[_0x352c('0x24')]),_0x49237a=[_0x352c('0x66'),_0x352c('0x3b')],_0x468802=_0x30f891['activeMarkers'][_0x352c('0x89')](_0x1d20e9['markerName']);return _0x468802&&_0x49237a[_0x352c('0x82')]('ck-suggestion-marker--active'),{'classes':_0x49237a,'attributes':{'data-suggestion':_0x2bc79e},'priority':_0x468802&&_0x525119?0xbc2:0xbb8};}_0x30f891['on'](_0x352c('0x9b'),_0x3b08d3,{'priority':_0x352c('0x4c')}),_0x30f891['on']('suggestionUnloaded',_0x3b08d3,{'priority':_0x352c('0x4c')}),_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x79')](()=>{let _0x2e0323=!0x1;const _0x1eac6d=Array[_0x352c('0x9f')](_0x18d001[_0x352c('0x9e')]['document'][_0x352c('0x5e')][_0x352c('0x9d')]());for(const {name:_0x2cbd35,data:_0x233387}of _0x1eac6d){const {group:_0x189cc3,type:_0x52d516,id:_0x4e5e40}=_0x30f891['_splitMarkerName'](_0x2cbd35);if(_0x352c('0x95')!=_0x189cc3||_0x352c('0x10')!=_0x52d516||_0x233387['oldRange'])continue;if(!_0x30f891[_0x352c('0x49')](_0x4e5e40))continue;const _0x524bca=_0x30f891[_0x352c('0x6f')](_0x4e5e40)[_0x352c('0x7b')](),_0x224891=_0x18d001[_0x352c('0x42')][_0x352c('0x18')](_0x352c('0x4b'))['me'];for(const _0x436dab of _0x30f891[_0x352c('0x34')]()){if(!_0x436dab['isInContent']||_0x436dab['author']!=_0x224891)continue;if(_0x352c('0x60')!=_0x436dab[_0x352c('0x5f')]||_0x352c('0x70')!=_0x436dab['subType'])continue;if(_0x436dab[_0x352c('0x7b')]()[_0x352c('0x6e')](_0x31466d=>_0x524bca['some'](_0x50573d=>_0x50573d[_0x352c('0x48')](_0x31466d,!0x0))))for(const _0x38f64d of _0x436dab['getAllAdjacentSuggestions']())_0x38f64d['isInContent']&&(_0x38f64d['discard'](),_0x2e0323=!0x0);}}return _0x2e0323;}),_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x79')](_0x24eee6=>{const _0xf6225b=_0x18d001[_0x352c('0xa1')]['get'](_0x352c('0x9'));if(!_0xf6225b||!_0xf6225b[_0x352c('0x5a')][_0x352c('0x5d')](_0x24eee6[_0x352c('0x6b')]))return!0x1;let _0x2e418b=!0x1;const _0xa6e89d=_0x18d001[_0x352c('0x42')]['get'](_0x352c('0x4b'))['me'],_0x12323b=_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x5e')][_0x352c('0x58')](),_0x5db19b=Array['from'](_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')][_0x352c('0x5e')][_0x352c('0x9d')]())['filter'](({name:_0x51367b,data:_0x5be200})=>{const {group:_0x23962a,subType:_0x3238ae,authorId:_0x36a8eb}=_0x30f891[_0x352c('0x51')](_0x51367b);return _0x352c('0x95')==_0x23962a&&_0x352c('0x84')==_0x3238ae&&_0x36a8eb==_0xa6e89d['id']&&!_0x5be200[_0x352c('0x5')];});for(const _0x4d85cb of _0x12323b){if(_0x352c('0x1')!=_0x4d85cb[_0x352c('0x5f')]||_0x352c('0x3d')!=_0x4d85cb['name']||0x1!=_0x4d85cb[_0x352c('0xf')])continue;const _0x37dd81=_0x24eee6['createRange'](_0x4d85cb[_0x352c('0x6c')],_0x4d85cb['position'][_0x352c('0x4e')](0x1));if(!_0x5db19b[_0x352c('0x35')](({data:_0x5157d5})=>_0x5157d5[_0x352c('0x1f')][_0x352c('0x1d')](_0x37dd81)))for(const {name:_0x296f65,data:_0x1ceca5}of _0x5db19b)if(_0x37dd81[_0x352c('0x48')](_0x1ceca5['newRange'])){_0x24eee6[_0x352c('0x13')](_0x296f65,{'range':_0x37dd81}),_0x2e418b=!0x0;break;}}return _0x2e418b;}),_0x18d001[_0x352c('0x9e')][_0x352c('0x6d')]['registerPostFixer'](_0x4c6ab8=>{let _0x1deb88=!0x1;const _0x319fe3=_0x18d001['plugins']['get'](_0x352c('0x4b'))['me'],_0x470a7d=_0x30f891[_0x352c('0x34')]()['filter'](_0x1b5288=>_0x1b5288[_0x352c('0x92')]&&_0x1b5288[_0x352c('0x45')]==_0x319fe3),_0x1a9998=new Set(),_0x4a521f=new Set();for(const _0x4d094b of _0x470a7d)if(_0x352c('0x84')==_0x4d094b[_0x352c('0x63')])for(const _0x36cbac of _0x4d094b['getMarkers']()){const _0x2cb007=_0x36cbac[_0x352c('0x94')]()['getContainedElement']();if(_0x2cb007){if(_0x2cb007['is'](_0x352c('0x4'),_0x352c('0x3d'))&&ce(_0x2cb007)){_0x4d094b[_0x352c('0x85')](_0x36cbac[_0x352c('0x4f')]),_0x1a9998[_0x352c('0x5b')](_0x2cb007),_0x1deb88=!0x0;const _0x3812b5=_0x2cb007[_0x352c('0x69')],_0x43d150=_0x2cb007['previousSibling'],_0x2bf0d4=_0x3812b5&&_0x3812b5['is'](_0x352c('0x4'),_0x352c('0x3d')),_0x93c357=_0x43d150&&_0x43d150['is']('element',_0x352c('0x3d'));_0x2bf0d4&&!_0x1a9998[_0x352c('0x5d')](_0x3812b5)&&_0x4a521f[_0x352c('0x5b')](_0x3812b5),_0x93c357&&!_0x1a9998[_0x352c('0x5d')](_0x43d150)&&_0x4a521f[_0x352c('0x5b')](_0x43d150);}else _0x2cb007['is']('element','paragraph')&&_0x2cb007['isEmpty']&&(_0x4d094b[_0x352c('0x85')](_0x36cbac[_0x352c('0x4f')]),_0x1deb88=!0x0);}}else{if(_0x352c('0x70')==_0x4d094b[_0x352c('0x63')]){if(!_0x4d094b['attributes']||!_0x4d094b['attributes'][_0x352c('0x6')])continue;const _0x55ec88=_0x4d094b[_0x352c('0x32')][_0x352c('0x1b')];if(_0x55ec88&&Object[_0x352c('0x86')](_0x55ec88)['length'])continue;const _0x108e76=_0x4d094b['attributes'][_0x352c('0x6')];let _0x54edbc=!0x0,_0x41ff30=!0x0;for(const _0x3a7cf1 of _0x470a7d)if(_0x3a7cf1[_0x352c('0x63')]&&_0x3a7cf1[_0x352c('0x63')]['startsWith'](_0x352c('0x84'))){if(!_0x3a7cf1['attributes'][_0x352c('0x6')]){_0x41ff30=!0x1;break;}if(_0x3a7cf1['id']!=_0x4d094b['id']&&_0x3a7cf1[_0x352c('0x32')][_0x352c('0x6')]==_0x108e76){_0x54edbc=!0x1;break;}}_0x41ff30&&_0x54edbc&&(_0x4d094b[_0x352c('0x6a')](),_0x1deb88=!0x0);}}for(const _0x13e5ba of _0x1a9998)_0x4c6ab8[_0x352c('0x97')](_0x13e5ba);for(const _0x316807 of _0x4a521f)_0x4c6ab8[_0x352c('0x8b')](_0x316807);return _0x1deb88;}),_0x18d001[_0x352c('0x2e')][_0x352c('0x8e')]('editingDowncast')['markerToHighlight']({'model':_0x352c('0x68'),'view':(_0x59cbba,_0x5a7d9f)=>_0x154ea7(_0x59cbba),'converterPriority':_0x352c('0x4c')}),_0x18d001[_0x352c('0x2e')][_0x352c('0x8e')]('dataDowncast')[_0x352c('0x3')]({'model':_0x352c('0x68'),'view':(_0x2d9762,_0x79c1ed)=>_0x79c1ed[_0x352c('0xa')][_0x352c('0x61')]?_0x154ea7(_0x2d9762,!0x1):null,'converterPriority':'high'});const _0x11f620=_0x18d001[_0x352c('0x3a')][_0x352c('0xa2')];this[_0x352c('0x2f')](_0x11f620['document'],'clipboardOutput',(_0x55d49c,_0x1cdf98)=>{const _0x3525f1=[];for(const _0x4758bf of _0x11f620[_0x352c('0x15')](_0x1cdf98[_0x352c('0x59')])['getItems']())_0x4758bf['is'](_0x352c('0x4'),_0x352c('0x90'))&&_0x3525f1[_0x352c('0x82')](_0x4758bf);_0x11f620[_0x352c('0x1e')](_0x4fd482=>{for(const _0x2e9c6d of _0x3525f1)_0x4fd482[_0x352c('0x31')](_0x4fd482[_0x352c('0x15')](_0x2e9c6d),_0x4fd482[_0x352c('0x65')](_0x2e9c6d)),_0x4fd482[_0x352c('0x97')](_0x2e9c6d);});});}}function ce(_0x4ccc0c){if(_0x4ccc0c[_0x352c('0x43')])return!0x0;const _0x4951d6=_0x4ccc0c[_0x352c('0x64')](0x0);return _0x4951d6['is'](_0x352c('0x4'),_0x352c('0x2a'))&&_0x4951d6[_0x352c('0x43')];}function fe(_0x4af501,_0x574719={},_0x2fbdb7){for(const {isAnchor:_0x22fd0e,cellHeight:_0x7c5930,cellWidth:_0x53826c}of _0x2fbdb7[_0x352c('0x36')](_0x4af501,{'includeAllSlots':!0x0,..._0x574719}))if(!_0x22fd0e||0x1!=_0x7c5930||0x1!=_0x53826c)return!0x1;return!0x0;}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/tablecolumnresize
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import type { Element } from 'ckeditor5/src/engine
|
|
6
|
-
import type Suggestion from '../suggestion
|
|
7
|
-
import type { Description } from '../suggestiondescriptionfactory
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Element } from 'ckeditor5/src/engine';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
12
|
/**
|
|
9
13
|
* Provides track changes plugin integration for table column resize feature.
|
|
10
14
|
*/
|
|
@@ -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 _0x5c16=['getColumnGroupElement','editor','author','markBlockFormat','registerCustomCallback','columnWidths','getTableColumnsWidths','model','getContainedElement','resizeTable','commandParams','bind','TrackChangesEditing','*Format:*\x20resize\x20table','registerDescriptionCallback','enableCommand','TableColumnResizeEditing','plugins','selection','getSuggestionCallback','formatGroupId','Users','getSelectedElement','resizeTableWidth','tableWidth','_descriptionFactory','_suggestionFactory','document','formatBlock','handleSuggestionDescription','get','locale','has','accept','getAttribute','handleResizeTableWidthCommand','resizeColumnWidths'];(function(_0xab98fc,_0x5c16c8){const _0x3aa27f=function(_0x1c9bb3){while(--_0x1c9bb3){_0xab98fc['push'](_0xab98fc['shift']());}};_0x3aa27f(++_0x5c16c8);}(_0x5c16,0x91));const _0x3aa2=function(_0xab98fc,_0x5c16c8){_0xab98fc=_0xab98fc-0x0;let _0x3aa27f=_0x5c16[_0xab98fc];return _0x3aa27f;};import{Plugin as _0x5e870e}from'ckeditor5/src/core';import{getTranslation as _0x12ea19}from'../utils/common-translations';export default class wt extends _0x5e870e{['afterInit'](){if(!this[_0x3aa2('0x4')][_0x3aa2('0x14')][_0x3aa2('0x23')](_0x3aa2('0x13')))return;const _0x248c23=this[_0x3aa2('0x4')][_0x3aa2('0x14')][_0x3aa2('0x21')](_0x3aa2('0xf'));_0x248c23[_0x3aa2('0x12')](_0x3aa2('0x1a'),this[_0x3aa2('0x1')][_0x3aa2('0xe')](this)),_0x248c23['enableCommand'](_0x3aa2('0x2'),this[_0x3aa2('0x1')][_0x3aa2('0xe')](this)),_0x248c23[_0x3aa2('0x1d')][_0x3aa2('0x7')](_0x3aa2('0x1f'),_0x3aa2('0xc'),'accept',_0x248c23[_0x3aa2('0x1d')][_0x3aa2('0x16')](_0x3aa2('0x1f'),null,'discard')),_0x248c23[_0x3aa2('0x1d')][_0x3aa2('0x7')]('formatBlock',_0x3aa2('0xc'),'discard',_0x248c23['_suggestionFactory'][_0x3aa2('0x16')]('formatBlock',null,_0x3aa2('0x24'))),_0x248c23[_0x3aa2('0x1c')][_0x3aa2('0x11')](this[_0x3aa2('0x20')][_0x3aa2('0xe')](this));}[_0x3aa2('0x1')](_0x228144,_0x48e990){const _0x3f4447=this[_0x3aa2('0x4')][_0x3aa2('0x14')][_0x3aa2('0x21')](_0x3aa2('0xf')),_0x52878c=this[_0x3aa2('0x4')]['plugins'][_0x3aa2('0x21')](_0x3aa2('0x13')),_0x496527=_0x48e990['table']||this['editor']['model'][_0x3aa2('0x1e')][_0x3aa2('0x15')][_0x3aa2('0x19')]();this[_0x3aa2('0x4')][_0x3aa2('0xa')]['change'](()=>{const _0x578b27=_0x52878c[_0x3aa2('0x3')](_0x496527);let _0x2587a8=_0x578b27?_0x52878c[_0x3aa2('0x9')](_0x578b27):null,_0x1febb2=_0x496527[_0x3aa2('0x0')]('tableWidth')||null;const _0x1ac942=_0x48e990[_0x3aa2('0x1b')]||_0x1febb2,_0x537397=_0x48e990[_0x3aa2('0x8')]||_0x2587a8,_0x4036af=this[_0x3aa2('0x4')][_0x3aa2('0x14')][_0x3aa2('0x21')](_0x3aa2('0x18'))['me'];for(const _0x483520 of _0x3f4447['getSuggestions']()){const _0x5791e1=_0x483520[_0x3aa2('0xb')]();if(_0x3aa2('0xc')===_0x483520['subType']&&_0x5791e1===_0x496527){_0x483520[_0x3aa2('0x5')]!==_0x4036af&&_0x483520['discard']();const _0x580b13=_0x483520['data'][_0x3aa2('0xd')];_0x1febb2=_0x580b13[0x0]['tableWidth'],_0x2587a8=_0x580b13[0x0][_0x3aa2('0x8')];break;}}_0x228144({'table':_0x496527,'tableWidth':_0x1ac942,'columnWidths':_0x537397}),_0x3f4447[_0x3aa2('0x6')](_0x496527,{'commandName':_0x3aa2('0x1a'),'commandParams':[{'tableWidth':_0x1febb2,'columnWidths':_0x2587a8}],'formatGroupId':_0x3aa2('0xc')},[],_0x3aa2('0xc'));});}[_0x3aa2('0x20')](_0x370274){const {data:_0x4c7aa7}=_0x370274;if(_0x4c7aa7&&_0x3aa2('0xc')===_0x4c7aa7[_0x3aa2('0x17')]){const _0x5e481c=_0x3aa2('0x10');return{'type':'format','content':_0x12ea19(this['editor'][_0x3aa2('0x22')],_0x5e481c)};}}}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/tableheadings
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import TrackChangesTable from './table
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import TrackChangesTable from './table';
|
|
6
10
|
/**
|
|
7
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
|
|
8
12
|
*/
|
|
@@ -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 _0x3734=['document','addMarker:suggestion','change','toViewElement','markerName','setAttribute','addClass','commandParams','stop','formatBlock','ck-suggestion-marker-','getAttribute','getSuggestion','table','setTableRowHeader','registerDescriptionCallback','TableUtils','writer','from','start','selection','end','unbindElementFromMarkerName','item','markerRange','findAncestor','FORMAT_REGULAR_ROW','last','cell','activeMarkers','options','editing','consumable','TrackChangesEditing','data-suggestion','model','createTableWalker','_splitMarkerName','name','createPositionBefore','getChild','getSelectionAffectedTableCells','requires','plugins','bindElementToMarker','getColumnIndexes','FORMAT_REGULAR_COLUMN','format','createRange','editor','data','markBlockFormat','childCount','FORMAT_HEADER_ROW','setTableColumnHeader','FORMAT_HEADER_COLUMN','downcastDispatcher','first','highest','commandName','enableCommand','afterInit','removeAttribute','getCellLocation','locale','forceValue','get','value','isBefore','has','removeClass','ck-suggestion-marker--active','getRowIndexes','commands','nodeAfter','accept','registerCustomCallback','parent','mapper','_descriptionFactory','*Format:*\x20%0','index','markerNameToElements','createPositionAfter'];(function(_0x51fdec,_0x37343a){const _0x4ffae2=function(_0x4511af){while(--_0x4511af){_0x51fdec['push'](_0x51fdec['shift']());}};_0x4ffae2(++_0x37343a);}(_0x3734,0x1bc));const _0x4ffa=function(_0x51fdec,_0x37343a){_0x51fdec=_0x51fdec-0x0;let _0x4ffae2=_0x3734[_0x51fdec];return _0x4ffae2;};import{Plugin as _0x1df3f7}from'ckeditor5/src/core';import _0x23d83f from'./table';import{getTranslation as _0x56f731}from'../utils/common-translations';export default class pt extends _0x1df3f7{static get[_0x4ffa('0x12')](){return[_0x23d83f];}[_0x4ffa('0x25')](){const _0x3e3620=this[_0x4ffa('0x19')];if(!_0x3e3620[_0x4ffa('0x13')][_0x4ffa('0x2d')]('TableEditing'))return;const _0x51743a=_0x3e3620[_0x4ffa('0x28')],_0x53bfd7=_0x3e3620['plugins'][_0x4ffa('0x2a')](_0x4ffa('0x9')),_0x2ebb57=_0x3e3620[_0x4ffa('0x13')]['get'](_0x4ffa('0x4c')),_0x3e129c=_0x3e3620[_0x4ffa('0x13')][_0x4ffa('0x2a')](_0x23d83f);function _0x44a30b({showActiveMarker:_0x5980ca=!0x0,setDataAttribute:_0x3226bb=!0x0}={}){return(_0x316798,_0x20e34f,_0x42d40e)=>{const {type:_0x388dc2,id:_0x2b914c}=_0x53bfd7[_0x4ffa('0xd')](_0x20e34f[_0x4ffa('0x40')]),_0x54c497=_0x53bfd7[_0x4ffa('0x48')](_0x2b914c);if(!_0x54c497[_0x4ffa('0x1a')]||_0x4ffa('0x1e')!=_0x54c497[_0x4ffa('0x1a')][_0x4ffa('0x23')])return;if(_0x20e34f[_0x4ffa('0x53')])return void _0x316798[_0x4ffa('0x44')]();if(!_0x42d40e[_0x4ffa('0x8')]['consume'](_0x20e34f[_0x4ffa('0x0')],_0x316798[_0x4ffa('0xe')]))return;const _0x305aac=_0x20e34f[_0x4ffa('0x0')][_0x4ffa('0x4f')][_0x4ffa('0x32')],_0x440894=_0x20e34f[_0x4ffa('0x0')][_0x4ffa('0x51')]['nodeBefore'],_0x5163a6=_0x305aac[_0x4ffa('0x35')][_0x4ffa('0x35')],{column:_0x2647a9}=_0x2ebb57[_0x4ffa('0x27')](_0x305aac),{column:_0x188719}=_0x2ebb57[_0x4ffa('0x27')](_0x440894);for(let _0x5999e4=_0x2647a9;_0x5999e4<=_0x188719;_0x5999e4++){const _0x52deb9=_0x2ebb57[_0x4ffa('0xc')](_0x5163a6,{'column':_0x5999e4,'includeAllSlots':!0x1});for(const _0x5b099e of _0x52deb9){const _0x6636f8=_0x5b099e[_0x4ffa('0x4')],_0x42e7ec=_0x42d40e[_0x4ffa('0x36')][_0x4ffa('0x3f')](_0x6636f8);_0x42d40e[_0x4ffa('0x4d')][_0x4ffa('0x42')]('ck-suggestion-marker-'+_0x388dc2,_0x42e7ec),_0x3226bb&&_0x42d40e[_0x4ffa('0x4d')][_0x4ffa('0x41')](_0x4ffa('0xa'),_0x2b914c,_0x42e7ec),_0x42d40e[_0x4ffa('0x36')][_0x4ffa('0x14')](_0x42e7ec,_0x20e34f[_0x4ffa('0x40')]),_0x5980ca&&(_0x53bfd7[_0x4ffa('0x5')]['includes'](_0x20e34f[_0x4ffa('0x40')])?_0x42d40e[_0x4ffa('0x4d')]['addClass'](_0x4ffa('0x2f'),_0x42e7ec):_0x42d40e[_0x4ffa('0x4d')][_0x4ffa('0x2e')](_0x4ffa('0x2f'),_0x42e7ec));}}};}_0x53bfd7['enableCommand'](_0x4ffa('0x4a'),(_0x4771f3,_0x38a50e)=>{const _0x2df15f=_0x2ebb57[_0x4ffa('0x11')](_0x3e3620['model']['document'][_0x4ffa('0x50')]),_0x946c30=_0x2ebb57[_0x4ffa('0x30')](_0x2df15f),_0xa8230f=_0x2df15f[0x0][_0x4ffa('0x1')](_0x4ffa('0x49')),_0x5f2b5b=_0xa8230f['getAttribute']('headingRows')||0x0,_0x3f6cb4=_0x38a50e&&null!==_0x38a50e[_0x4ffa('0x29')]?_0x38a50e[_0x4ffa('0x29')]:!_0x3e3620[_0x4ffa('0x31')]['get'](_0x4ffa('0x4a'))[_0x4ffa('0x2b')],_0x50033d=_0x3f6cb4?_0x946c30[_0x4ffa('0x3')]:_0x946c30[_0x4ffa('0x21')],_0x2425bf=_0xa8230f[_0x4ffa('0x10')](_0x50033d);let _0x24b741;if(_0x3f6cb4){const _0x36e00e=_0xa8230f[_0x4ffa('0x10')](_0x5f2b5b);if(_0x2425bf[_0x4ffa('0x39')]<_0x36e00e[_0x4ffa('0x39')])return;_0x24b741=_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0x18')](_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0xf')](_0x36e00e[_0x4ffa('0x10')](0x0)),_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0x3b')](_0x2425bf[_0x4ffa('0x10')](_0x2425bf[_0x4ffa('0x1c')]-0x1)));}else{const _0x591522=_0xa8230f['getChild'](_0x5f2b5b-0x1);if(!_0x591522)return;_0x24b741=_0x3e3620['model']['createRange'](_0x3e3620['model'][_0x4ffa('0xf')](_0x2425bf[_0x4ffa('0x10')](0x0)),_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0x3b')](_0x591522[_0x4ffa('0x10')](_0x591522['childCount']-0x1)));}_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0x3e')](()=>{_0x53bfd7[_0x4ffa('0x1b')](_0x24b741,{'commandName':_0x4ffa('0x4a'),'commandParams':[{'forceValue':_0x3f6cb4}]},[],'setTableRowHeader');});}),_0x53bfd7[_0x4ffa('0x24')](_0x4ffa('0x1e'),(_0x1bf493,_0x1453a5)=>{const _0x240422=_0x3e3620[_0x4ffa('0x13')]['get'](_0x4ffa('0x4c')),_0xa73b2a=_0x240422[_0x4ffa('0x11')](_0x3e3620['model'][_0x4ffa('0x3c')][_0x4ffa('0x50')]),_0x1a8e63=_0x240422[_0x4ffa('0x15')](_0xa73b2a),_0x59287b=_0xa73b2a[0x0]['findAncestor'](_0x4ffa('0x49')),_0x4ac90a=_0x59287b[_0x4ffa('0x47')]('headingColumns')||0x0,_0x2f1bfd=_0x1453a5&&null!==_0x1453a5[_0x4ffa('0x29')]?_0x1453a5[_0x4ffa('0x29')]:!_0x3e3620[_0x4ffa('0x31')][_0x4ffa('0x2a')](_0x4ffa('0x1e'))[_0x4ffa('0x2b')];let _0x3e12f7;const _0x20ff3e=_0x59287b[_0x4ffa('0x10')](0x0),_0x2763c6=_0x2f1bfd?_0x1a8e63[_0x4ffa('0x3')]:_0x1a8e63['first'],_0x31229a=_0x240422[_0x4ffa('0xc')](_0x59287b,{'startRow':0x0,'column':_0x2763c6,'includeAllSlots':!0x1}),_0x5a3f94=Array[_0x4ffa('0x4e')](_0x31229a)[0x0][_0x4ffa('0x4')];if(_0x2f1bfd){const _0x31d9f4=_0x20ff3e[_0x4ffa('0x10')](_0x4ac90a);if(_0x5a3f94[_0x4ffa('0x2c')](_0x31d9f4))return;_0x3e12f7=_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0x18')](_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0xf')](_0x31d9f4),_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0x3b')](_0x5a3f94));}else{const _0x3bb6af=_0x20ff3e[_0x4ffa('0x10')](_0x4ac90a-0x1);if(!_0x3bb6af)return;_0x3e12f7=_0x3e3620['model'][_0x4ffa('0x18')](_0x3e3620[_0x4ffa('0xb')]['createPositionBefore'](_0x5a3f94),_0x3e3620['model'][_0x4ffa('0x3b')](_0x3bb6af));}_0x3e3620[_0x4ffa('0xb')][_0x4ffa('0x3e')](()=>{_0x53bfd7[_0x4ffa('0x1b')](_0x3e12f7,{'commandName':_0x4ffa('0x1e'),'commandParams':[{'forceValue':_0x2f1bfd}]},[],'setTableColumnHeader');});}),_0x3e3620[_0x4ffa('0x7')]['downcastDispatcher']['on'](_0x4ffa('0x3d'),_0x44a30b(),{'priority':_0x4ffa('0x22')}),_0x3e3620[_0x4ffa('0x1a')][_0x4ffa('0x20')]['on'](_0x4ffa('0x3d'),(_0x298432,_0x1f9973,_0x269192)=>{_0x269192[_0x4ffa('0x6')]['showSuggestionHighlights']&&_0x44a30b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x298432,_0x1f9973,_0x269192);},{'priority':'highest'}),_0x3e3620[_0x4ffa('0x7')][_0x4ffa('0x20')]['on']('removeMarker:suggestion',(_0x13b722,_0x54e25e,_0x2e3a89)=>{const {type:_0x4bf1a5,id:_0x5793b0}=_0x53bfd7[_0x4ffa('0xd')](_0x54e25e[_0x4ffa('0x40')]),_0xca9f40=_0x53bfd7[_0x4ffa('0x48')](_0x5793b0);if(!_0xca9f40[_0x4ffa('0x1a')]||_0x4ffa('0x1e')!=_0xca9f40[_0x4ffa('0x1a')]['commandName'])return;const _0x18378c=_0x2e3a89[_0x4ffa('0x36')][_0x4ffa('0x3a')](_0x54e25e[_0x4ffa('0x40')]);if(_0x18378c)for(const _0x1d9117 of _0x18378c)_0x2e3a89[_0x4ffa('0x4d')][_0x4ffa('0x2e')](_0x4ffa('0x46')+_0x4bf1a5,_0x1d9117),_0x2e3a89[_0x4ffa('0x4d')]['removeClass'](_0x4ffa('0x2f'),_0x1d9117),_0x2e3a89[_0x4ffa('0x4d')][_0x4ffa('0x26')](_0x4ffa('0xa'),_0x1d9117),_0x2e3a89[_0x4ffa('0x36')][_0x4ffa('0x52')](_0x1d9117,_0x54e25e[_0x4ffa('0x40')]);},{'priority':_0x4ffa('0x22')}),_0x53bfd7[_0x4ffa('0x37')][_0x4ffa('0x4b')](_0x3f104b=>{const {data:_0x401489}=_0x3f104b;if(_0x401489){if(_0x4ffa('0x4a')==_0x401489[_0x4ffa('0x23')]){const _0x5983ec=_0x401489[_0x4ffa('0x43')][0x0][_0x4ffa('0x29')];return _0x4d0aab(_0x56f731(_0x51743a,_0x5983ec?_0x4ffa('0x1d'):_0x4ffa('0x2')));}if(_0x4ffa('0x1e')==_0x401489[_0x4ffa('0x23')]){const _0x50c896=_0x401489[_0x4ffa('0x43')][0x0][_0x4ffa('0x29')];return _0x4d0aab(_0x56f731(_0x51743a,_0x50c896?_0x4ffa('0x1f'):_0x4ffa('0x16')));}}function _0x4d0aab(_0x46f2fa){return{'type':_0x4ffa('0x17'),'content':_0x56f731(_0x51743a,_0x4ffa('0x38'),_0x46f2fa)};}});const _0x3bd870=_0x3e129c['_acceptFormatSuggestionCallbackFactory']();_0x53bfd7['_suggestionFactory'][_0x4ffa('0x34')](_0x4ffa('0x45'),'setTableRowHeader','accept',_0x3bd870),_0x53bfd7['_suggestionFactory'][_0x4ffa('0x34')]('formatBlock',_0x4ffa('0x1e'),_0x4ffa('0x33'),_0x3bd870);}}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/tablemergesplit
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import TrackChangesTable from './table
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import TrackChangesTable from './table';
|
|
6
10
|
/**
|
|
7
11
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
|
|
8
12
|
*/
|