@ckeditor/ckeditor5-track-changes 39.0.2 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +23 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +18 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -467
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b46=['has','getRanges','selection','get','plugins','enableCommand','registerDescriptionCallback','commandParams','format','restrictedEditingException','TrackChangesEditing','isCollapsed','markInlineFormat','_descriptionFactory','locale','from','forceValue','document','commands','commandName','FORMAT_RESTRICTED_DISABLED','value','editor','change','afterInit'];(function(_0x52058c,_0x5b46d2){const _0x46ed43=function(_0x6558a8){while(--_0x6558a8){_0x52058c['push'](_0x52058c['shift']());}};_0x46ed43(++_0x5b46d2);}(_0x5b46,0x1bc));const _0x46ed=function(_0x52058c,_0x5b46d2){_0x52058c=_0x52058c-0x0;let _0x46ed43=_0x5b46[_0x52058c];return _0x46ed43;};import{Plugin as _0x3cd860}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x201e3c}from'./utils';import{getTranslation as _0x227da4}from'../utils/common-translations';export default class gt extends _0x3cd860{[_0x46ed('0x5')](){const _0x418439=this[_0x46ed('0x3')],_0x1dca01=_0x418439['model'],_0x146ee9=_0x418439[_0x46ed('0x14')];if(!_0x418439[_0x46ed('0xa')][_0x46ed('0x6')]('StandardEditingModeEditing'))return;const _0x292f61=_0x418439[_0x46ed('0xa')][_0x46ed('0x9')](_0x46ed('0x10')),_0x1119d0=_0x46ed('0xf'),_0x3fd49a=_0x418439[_0x46ed('0x18')][_0x46ed('0x9')](_0x1119d0);_0x292f61[_0x46ed('0xb')](_0x1119d0,(_0x4375ed,_0x17f68b={})=>{const _0x183399=_0x1dca01[_0x46ed('0x17')][_0x46ed('0x8')];if(_0x183399[_0x46ed('0x11')])return void _0x4375ed(_0x17f68b);const _0x3eb2f5=void 0x0!==_0x17f68b['forceValue']?_0x17f68b[_0x46ed('0x16')]:!_0x3fd49a[_0x46ed('0x2')];_0x1dca01[_0x46ed('0x4')](()=>{const _0x3d1907=Array[_0x46ed('0x15')](_0x183399[_0x46ed('0x7')]());for(const _0x1c4f86 of _0x3d1907){const _0x4068d4=_0x3eb2f5?[_0x1c4f86]:_0x201e3c(_0x1119d0,_0x1c4f86,_0x1dca01);for(const _0x2b53a7 of _0x4068d4)_0x292f61[_0x46ed('0x12')](_0x2b53a7,{'commandName':_0x1119d0,'commandParams':[{'forceValue':_0x3eb2f5}]});}});}),_0x292f61[_0x46ed('0x13')][_0x46ed('0xc')](_0x3302d9=>{const {data:_0x3423b8}=_0x3302d9;if(_0x3423b8&&_0x3423b8[_0x46ed('0x0')]==_0x1119d0)return _0x3423b8[_0x46ed('0xd')][0x0]['forceValue']?{'type':'format','content':_0x227da4(_0x146ee9,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x46ed('0xe'),'content':_0x227da4(_0x146ee9,_0x46ed('0x1'))};});}}
|
|
@@ -1,18 +1,18 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/style
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for styles dropdown feature.
|
|
11
|
-
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesStylesDropdown extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
afterInit(): void;
|
|
18
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/style
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for styles dropdown feature.
|
|
11
|
+
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesStylesDropdown extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
afterInit(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55bf=['style.definitions','styleName','getDefinitionsForView','commands','_getRangesWithClasses','add','getRanges','isBlock','classes','_getStyleDefinition','locale','inline','Style','document','getAncestors','markInlineFormat','block','has','push','getAttribute','element','_descriptionFactory','from','format','change','*Format:*\x20%0','get','registerDescriptionCallback','TrackChangesEditing','name','style','editor','createRangeOn','modelElements','forceValue','afterInit','isCollapsed','find','getItems','toLowerCase','includes','normalizeConfig','model','commandParams','getSelectedBlocks','plugins','DataSchema','config'];(function(_0x4792f3,_0x55bf00){const _0x2528a3=function(_0x49d065){while(--_0x49d065){_0x4792f3['push'](_0x4792f3['shift']());}};_0x2528a3(++_0x55bf00);}(_0x55bf,0x190));const _0x2528=function(_0x4792f3,_0x55bf00){_0x4792f3=_0x4792f3-0x0;let _0x2528a3=_0x55bf[_0x4792f3];return _0x2528a3;};import{Plugin as _0x5472a5}from'ckeditor5/src/core';import{getTranslation as _0x5a8586}from'../utils/common-translations';export default class mt extends _0x5472a5{[_0x2528('0x13')](){const _0x54cb8d=this[_0x2528('0xf')];if(!_0x54cb8d[_0x2528('0x1d')][_0x2528('0x1')](_0x2528('0x2c')))return;const _0x1003ac=_0x54cb8d[_0x2528('0x23')][_0x2528('0xa')](_0x2528('0xe')),_0x47961e=_0x54cb8d[_0x2528('0x1d')][_0x2528('0xa')](_0x2528('0xc')),_0x86445b=_0x54cb8d[_0x2528('0x2a')],_0x2c1784=_0x54cb8d[_0x2528('0x1d')]['get'](_0x2528('0x1e')),_0x5bad55=_0x54cb8d[_0x2528('0x1d')][_0x2528('0xa')]('StyleUtils')[_0x2528('0x19')](_0x2c1784,_0x54cb8d[_0x2528('0x1f')][_0x2528('0xa')](_0x2528('0x20')));_0x47961e['enableCommand'](_0x2528('0xe'),(_0x519bc2,{styleName:_0x51903f})=>{const _0x48f96e=_0x54cb8d[_0x2528('0x1a')][_0x2528('0x2d')]['selection'],_0x57ab4b=this[_0x2528('0x29')](_0x51903f,_0x5bad55);if(!_0x57ab4b)return;if(!_0x1003ac['enabledStyles'][_0x2528('0x18')](_0x51903f))return;if(_0x48f96e[_0x2528('0x14')]&&!_0x57ab4b[_0x2528('0x27')])return void _0x519bc2({'styleName':_0x51903f});const _0x3671f2=!_0x1003ac['value'][_0x2528('0x18')](_0x57ab4b[_0x2528('0xd')]);if(_0x57ab4b[_0x2528('0x27')]){const _0x25bd9e=function(_0x5f21f6,_0x51b3e9){const _0x505eff=new Set();for(const _0x33b7a1 of _0x5f21f6){const _0x5d6467=_0x33b7a1[_0x2528('0x2e')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2a2825 of _0x5d6467)if(_0x51b3e9['includes'](_0x2a2825['name'])){_0x505eff[_0x2528('0x25')](_0x2a2825);break;}}return _0x505eff;}(_0x48f96e[_0x2528('0x1c')](),_0x57ab4b[_0x2528('0x11')]);_0x54cb8d[_0x2528('0x1a')][_0x2528('0x8')](()=>{for(const _0x5e519f of _0x25bd9e)_0x47961e['markBlockFormat'](_0x5e519f,{'commandName':'style','commandParams':[{'styleName':_0x51903f,'forceValue':_0x3671f2}],'formatGroupId':'style:'+_0x51903f});});}else{let _0x2b34e2=Array[_0x2528('0x6')](_0x48f96e[_0x2528('0x26')]());if(!_0x3671f2){const _0x360b57=Array[_0x2528('0x6')](_0x2c1784[_0x2528('0x22')](_0x57ab4b[_0x2528('0x4')],!0x1))[0x0][_0x2528('0x1a')],_0x19579e=[];for(const _0x1a8a63 of _0x2b34e2){const _0x1829a5=this[_0x2528('0x24')](_0x54cb8d[_0x2528('0x1a')],_0x1a8a63,_0x57ab4b[_0x2528('0x28')],_0x360b57);_0x19579e[_0x2528('0x2')](..._0x1829a5);}_0x2b34e2=_0x19579e;}_0x54cb8d['model'][_0x2528('0x8')](()=>{for(const _0x48e4d7 of _0x2b34e2)_0x47961e[_0x2528('0x2f')](_0x48e4d7,{'commandName':'style','commandParams':[{'styleName':_0x51903f,'forceValue':_0x3671f2}]});});}}),_0x47961e[_0x2528('0x5')][_0x2528('0xb')](_0x390839=>{const {data:_0x574f90}=_0x390839;if(_0x574f90&&_0x2528('0xe')===_0x574f90['commandName'])return _0x574f90['commandParams'][0x0][_0x2528('0x12')]?{'type':'format','content':_0x5a8586(_0x86445b,_0x2528('0x9'),_0x574f90[_0x2528('0x1b')][0x0][_0x2528('0x21')][_0x2528('0x17')]())}:{'type':_0x2528('0x7'),'content':_0x5a8586(_0x86445b,'*Remove\x20format:*\x20%0',_0x574f90['commandParams'][0x0][_0x2528('0x21')][_0x2528('0x17')]())};});}[_0x2528('0x29')](_0x5215ee,_0x286606){let _0x338a59=_0x286606[_0x2528('0x0')][_0x2528('0x15')](_0x207848=>_0x207848['name']===_0x5215ee);return _0x338a59||(_0x338a59=_0x286606[_0x2528('0x2b')]['find'](_0x2907d7=>_0x2907d7['name']===_0x5215ee)),_0x338a59;}[_0x2528('0x24')](_0x4544f6,_0x228b00,_0x181cf8,_0x6d283d){const _0x3de029=[];for(const _0x596803 of _0x228b00[_0x2528('0x16')]()){const _0x2c4c1f=_0x596803[_0x2528('0x3')](_0x6d283d);_0x2c4c1f&&(_0x181cf8['every'](_0x2c18e1=>_0x2c4c1f['classes'][_0x2528('0x18')](_0x2c18e1))&&_0x3de029[_0x2528('0x2')](_0x4544f6[_0x2528('0x10')](_0x596803)));}return _0x3de029;}}
|
|
@@ -1,42 +1,42 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/table
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesTable extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
constructor(editor: Editor);
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
afterInit(): void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Coordinates for suggestion.
|
|
24
|
-
*/
|
|
25
|
-
export interface SuggestionCoordinates {
|
|
26
|
-
/**
|
|
27
|
-
* Index of the row at which the suggestion starts.
|
|
28
|
-
*/
|
|
29
|
-
minRow: number;
|
|
30
|
-
/**
|
|
31
|
-
* Index of the row at which the suggestion ends.
|
|
32
|
-
*/
|
|
33
|
-
maxRow: number;
|
|
34
|
-
/**
|
|
35
|
-
* Index of the column at which the suggestion starts.
|
|
36
|
-
*/
|
|
37
|
-
minColumn: number;
|
|
38
|
-
/**
|
|
39
|
-
* Index of the column at which the suggestion ends.
|
|
40
|
-
*/
|
|
41
|
-
maxColumn: number;
|
|
42
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/table
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesTable extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
constructor(editor: Editor);
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
afterInit(): void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Coordinates for suggestion.
|
|
24
|
+
*/
|
|
25
|
+
export interface SuggestionCoordinates {
|
|
26
|
+
/**
|
|
27
|
+
* Index of the row at which the suggestion starts.
|
|
28
|
+
*/
|
|
29
|
+
minRow: number;
|
|
30
|
+
/**
|
|
31
|
+
* Index of the row at which the suggestion ends.
|
|
32
|
+
*/
|
|
33
|
+
maxRow: number;
|
|
34
|
+
/**
|
|
35
|
+
* Index of the column at which the suggestion starts.
|
|
36
|
+
*/
|
|
37
|
+
minColumn: number;
|
|
38
|
+
/**
|
|
39
|
+
* Index of the column at which the suggestion ends.
|
|
40
|
+
*/
|
|
41
|
+
maxColumn: number;
|
|
42
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xcc58=['substr','toLowerCase','document','differ','deletion','filter','rootName','left','minRow','isArray','map','enqueueChange','markMultiRangeDeletion','getItems','tableCell','createRangeOn','ELEMENT_TABLE_WITH_TEXT','registerDescriptionCallback','ELEMENT_TABLE_ROW','ELEMENT_TABLE_COLUMN','low','nodeAfter','tableColumn','selectTableColumn','length','removeClass','type','showSuggestionHighlights','createRangeIn','getFirstRange','options','start','getContainedElement','MIN_SAFE_INTEGER','isIntersectingWithRange','getSelectionAffectedTableCells','table','forceValue','insert','mapper','data','ELEMENT_TABLE','createTableWalker','getChanges','execute','selection','includes','fromRange','classes','*Insert:*\x20%0','_suggestionFactory','_acceptFormatSuggestionCallbackFactory','$textProxy','position','change','isTouching','insertTableColumnLeft','createPositionAt','ELEMENT_TABLE_ROW_WITH_TEXT','maxRow','min','item','writer','push','downcastDispatcher','TableEditing','registerCustomCallback','_setupColumnsRowsFixing','get','values','removeTableRow','last','rowspan','getChildren','setSelection','startsWith','_splitMarkerName','tablePaste','commands','from','locale','max','hasAttribute','root','markMultiRangeInsertion','batch','TableUtils','registerElementLabel','nodeBefore','suggestion','some','span','element','order','end','colspan','_descriptionFactory','getRanges','*Remove:*\x20%0','plugins','cell','insertTableRowAbove','has','highest','removeTableColumn','enableCommand','editor','model','toViewElement','name','discard','above','getAttribute','detach','ELEMENT_TABLE_COLUMN_WITH_TEXT','tableRow','getSuggestion','insertTableRowBelow','accept','join','change:data','insertion','addMarker:suggestion','findAncestor','subType','_tablePostFixingSubtypes','getCellLocation','TrackChangesEditing','minColumn','first','isEqual','refresh','getColumnIndexes','$graveyard','_tableSuggestions','_getSuggestionCoords','insertTable','addClass','_getCoordsForCells','addRange'];(function(_0x3a1ac0,_0xcc58f1){const _0x354c98=function(_0x476ed4){while(--_0x476ed4){_0x3a1ac0['push'](_0x3a1ac0['shift']());}};_0x354c98(++_0xcc58f1);}(_0xcc58,0x158));const _0x354c=function(_0x3a1ac0,_0xcc58f1){_0x3a1ac0=_0x3a1ac0-0x0;let _0x354c98=_0xcc58[_0x3a1ac0];return _0x354c98;};import{Plugin as _0x4ac848}from'ckeditor5/src/core';import{LiveRange as _0x451ecb}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4ed48f}from'ckeditor5/src/widget';import{getTranslation as _0x20a1cc}from'../utils/common-translations';export default class mt extends _0x4ac848{constructor(_0xfbc21d){super(_0xfbc21d),this[_0x354c('0x3d')]=[_0x354c('0x33'),'tableColumn'],this[_0x354c('0x46')]=new Set();}['afterInit'](){const _0x700f23=this[_0x354c('0x2a')],_0x57487f=_0x700f23['model'][_0x354c('0x4e')][_0x354c('0x79')];if(!_0x700f23[_0x354c('0x23')][_0x354c('0x26')](_0x354c('0x1')))return;const _0xb32df=_0x700f23[_0x354c('0x10')],_0x1fae45=_0x700f23['plugins']['get'](_0x354c('0x3f')),_0x324a94=_0x700f23[_0x354c('0x23')]['get'](_0x354c('0x16'));_0x1fae45[_0x354c('0x20')][_0x354c('0x17')]('table',_0x1d61be=>_0x20a1cc(_0xb32df,_0x354c('0x75'),_0x1d61be)),this['_setupColumnsRowsFixing'](),_0x1fae45[_0x354c('0x29')](_0x354c('0x48')),_0x1fae45['enableCommand']('selectTableRow'),_0x1fae45[_0x354c('0x29')](_0x354c('0x63'));for(const _0x36cf57 of[_0x354c('0x25'),_0x354c('0x35')]){const _0x13b866=_0x700f23[_0x354c('0xe')][_0x354c('0x4')](_0x36cf57);_0x1fae45[_0x354c('0x29')](_0x36cf57,_0x30b031=>{_0x700f23['model'][_0x354c('0x82')](_0x1a9b6b=>{_0x30b031();const _0x372e9b=_0x354c('0x2f')===_0x13b866[_0x354c('0x1d')],_0x3eaf0e=_0x324a94[_0x354c('0x6f')](_0x57487f),_0x26272b=_0x324a94['getRowIndexes'](_0x3eaf0e),_0x22cdda=_0x372e9b?_0x26272b[_0x354c('0x41')]-0x1:_0x26272b[_0x354c('0x7')]+0x1,_0x3c4a40=_0x3eaf0e[0x0]['findAncestor']('table'),_0x5e79d9=_0x324a94[_0x354c('0x76')](_0x3c4a40,{'startRow':_0x22cdda,'endRow':_0x22cdda}),_0xc24be8=Array[_0x354c('0xf')](_0x5e79d9)[_0x354c('0x56')](_0x2b7b75=>_0x1a9b6b[_0x354c('0x5b')](_0x2b7b75[_0x354c('0x24')]));_0x1fae45['markMultiRangeInsertion'](_0xc24be8,_0x354c('0x33'));});});}for(const _0x2f94f4 of[_0x354c('0x84'),'insertTableColumnRight']){const _0x2958d1=_0x700f23[_0x354c('0xe')][_0x354c('0x4')](_0x2f94f4);_0x1fae45['enableCommand'](_0x2f94f4,_0x50d8f1=>{_0x700f23['model']['change'](_0x25899c=>{_0x50d8f1();const _0x1a6d55=_0x354c('0x53')===_0x2958d1['order'],_0x70c6a6=_0x324a94['getSelectionAffectedTableCells'](_0x57487f),_0x56eab3=_0x324a94['getColumnIndexes'](_0x70c6a6),_0x1c7cae=_0x1a6d55?_0x56eab3[_0x354c('0x41')]-0x1:_0x56eab3['last']+0x1,_0x4eba65=_0x70c6a6[0x0][_0x354c('0x3b')]('table'),_0x30c634=_0x324a94[_0x354c('0x76')](_0x4eba65,{'startRow':0x0,'column':_0x1c7cae,'includeAllSlots':!0x1}),_0x1651ad=Array[_0x354c('0xf')](_0x30c634)[_0x354c('0x56')](_0x176967=>_0x25899c[_0x354c('0x5b')](_0x176967['cell']));_0x1fae45[_0x354c('0x14')](_0x1651ad,_0x354c('0x62'));});});}for(const _0x2bcb50 of[_0x354c('0x6'),_0x354c('0x28')]){const _0x5b1e54=_0x2bcb50[_0x354c('0x4c')](0xb),_0x3d2ad6=_0x5b1e54[_0x354c('0x4d')](),_0x346d64=_0x3d2ad6[_0x354c('0x4c')](0x0,0x3)+_0x354c('0x1b'),_0xf99169=_0x354c('0x70')+_0x5b1e54,_0x3c3f45='min'+_0x5b1e54,_0x4c39a3=_0x354c('0x11')+_0x5b1e54;_0x1fae45[_0x354c('0x29')](_0x2bcb50,()=>{_0x700f23[_0x354c('0x2b')]['change'](_0x28c280=>{const _0x2ba157=_0x324a94[_0x354c('0x6f')](_0x57487f),_0x2e0b6c=_0x2ba157[0x0]['findAncestor'](_0x354c('0x70'));let _0x19a494;if('removeTableRow'==_0x2bcb50){const _0x1bb224=_0x324a94['getRowIndexes'](_0x2ba157);_0x19a494={'startRow':_0x1bb224['first'],'endRow':_0x1bb224[_0x354c('0x7')],'includeAllSlots':!0x0};}else{const _0xbfd329=_0x324a94[_0x354c('0x44')](_0x2ba157);_0x19a494={'startColumn':_0xbfd329['first'],'endColumn':_0xbfd329['last'],'includeAllSlots':!0x0};}const _0x50ddb3=_0x324a94[_0x354c('0x76')](_0x2e0b6c,_0x19a494),_0x15f5bb=Array[_0x354c('0xf')](_0x50ddb3)[_0x354c('0x56')](({cell:_0x1739f8})=>_0x1739f8),_0x363b84=se(_0x15f5bb[_0x354c('0x51')](_0x344018=>_0x344018[_0x354c('0x12')](_0x346d64))),_0x3b95f6=se(_0x15f5bb[_0x354c('0x51')](_0x5a277b=>!_0x5a277b['hasAttribute'](_0x346d64)))['map'](_0x214f70=>_0x28c280['createRangeOn'](_0x214f70)),_0x2e5b7a=_0x1fae45[_0x354c('0x58')](_0x3b95f6,_0xf99169);if(_0x2e5b7a&&(_0x354c('0x33')==_0x2e5b7a['subType']||_0x354c('0x62')==_0x2e5b7a['subType'])){const _0x3f3e6d=this[_0x354c('0x47')](_0x2e5b7a);for(const _0x231f1f of _0x363b84){const _0x21c4a7=_0x28c280[_0x354c('0x5b')](_0x231f1f),_0x2c6b4e=_0x324a94[_0x354c('0x3e')](_0x231f1f),_0x341d59=_0x231f1f[_0x354c('0x30')](_0x346d64)-0x1,_0x100b8a=_0x3f3e6d[_0x3c3f45],_0x2a466b=_0x3f3e6d[_0x4c39a3];_0x100b8a<=_0x2c6b4e[_0x3d2ad6]&&_0x2c6b4e[_0x3d2ad6]+_0x341d59<=_0x2a466b&&_0x2e5b7a[_0x354c('0x4b')](_0x21c4a7);}}});});}function _0x1fd488(_0xa98b11){const _0x43667d=Array['from'](_0x57487f[_0x354c('0x21')]())[_0x354c('0x56')](_0x4308d8=>_0x451ecb[_0x354c('0x7b')](_0x4308d8));_0x700f23['model'][_0x354c('0x82')](_0x41670c=>{const _0x3d1e6f=_0x41670c[_0x354c('0x15')];_0xa98b11=_0xa98b11['filter'](_0x4ceffe=>_0x354c('0x45')!=_0x4ceffe[_0x354c('0x13')][_0x354c('0x52')]),_0x41670c[_0x354c('0xa')](_0xa98b11),_0x700f23[_0x354c('0xe')][_0x354c('0x4')](_0x354c('0x6'))[_0x354c('0x43')](),_0x700f23[_0x354c('0x78')](_0x354c('0x6'),{'forceDefaultExecution':!0x0}),_0x700f23[_0x354c('0x2b')][_0x354c('0x57')](()=>{_0x700f23['model']['enqueueChange'](_0x3d1e6f,_0x4a3ff2=>{const _0x271354=_0x43667d['filter'](_0x2fbbca=>_0x354c('0x45')!=_0x2fbbca[_0x354c('0x13')]['rootName']);_0x271354[_0x354c('0x64')]>0x0&&_0x4a3ff2['setSelection'](_0x271354);for(const _0x445ed0 of _0x43667d)_0x445ed0[_0x354c('0x31')]();});});});}function _0x487beb(_0x394292){_0x700f23['model'][_0x354c('0x82')](_0x5b12ac=>{const _0x202cf8=Array[_0x354c('0xf')](_0x57487f[_0x354c('0x21')]())[_0x354c('0x56')](_0x5b5fd9=>_0x451ecb[_0x354c('0x7b')](_0x5b5fd9)),_0x37c81b=[];for(const _0x1a051b of _0x394292)for(const _0x2c7484 of _0x1a051b[_0x354c('0x59')]({'shallow':!0x0}))_0x37c81b[_0x354c('0x8b')](_0x2c7484);for(const _0x5556e5 of _0x37c81b)_0x354c('0x45')!=_0x5556e5[_0x354c('0x13')][_0x354c('0x52')]&&(_0x5b12ac[_0x354c('0xa')](_0x5b12ac[_0x354c('0x85')](_0x5556e5,0x0)),_0x700f23['commands'][_0x354c('0x4')](_0x354c('0x28'))['refresh'](),_0x700f23[_0x354c('0x78')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x591d38=_0x202cf8['filter'](_0x3b7b0a=>_0x354c('0x45')!=_0x3b7b0a[_0x354c('0x13')]['rootName']);_0x591d38[_0x354c('0x64')]>0x0&&_0x5b12ac[_0x354c('0xa')](_0x591d38);for(const _0x337e0f of _0x202cf8)_0x337e0f[_0x354c('0x31')]();});}function _0x2a5790(_0x160fab,_0xbee1bd){return _0xbee1bd['every'](_0x176c69=>_0x160fab[_0x354c('0x1a')](_0x55e49b=>_0x55e49b[_0x354c('0x1e')][_0x354c('0x42')](_0x176c69[_0x354c('0x6b')])||_0x176c69[_0x354c('0x1e')][_0x354c('0x42')](_0x55e49b[_0x354c('0x6b')])));}function _0x1755aa(_0x40aab1,_0x402925){return _0x40aab1[_0x354c('0x1a')](_0x8b3536=>_0x402925[_0x354c('0x1a')](_0x3e4d69=>_0x8b3536[_0x354c('0x1e')][_0x354c('0x83')](_0x3e4d69[_0x354c('0x6b')])));}_0x700f23[_0x354c('0x74')][_0x354c('0x0')]['on'](_0x354c('0x3a'),(_0x13f42d,_0x24f03f,_0x2bb719)=>{if(!_0x2bb719[_0x354c('0x6a')][_0x354c('0x67')])return;const _0x38934c=_0x24f03f[_0x354c('0x89')];if(!_0x38934c)return;const _0x56f4bb=_0x2bb719[_0x354c('0x73')][_0x354c('0x2c')](_0x38934c);function _0x30090d(_0x1366b9){return Array[_0x354c('0x55')](_0x1366b9)?_0x1366b9:[_0x1366b9];}_0x56f4bb&&_0x354c('0x5a')===_0x38934c[_0x354c('0x2d')]&&_0x4ed48f(_0x56f4bb,_0x2bb719[_0x354c('0x8a')],(_0x3c9197,_0x28b9b8,_0x1a56db)=>_0x1a56db[_0x354c('0x49')](_0x30090d(_0x28b9b8['classes']),_0x3c9197),(_0x582d5a,_0x33b50f,_0x449a3b)=>_0x449a3b[_0x354c('0x65')](_0x30090d(_0x33b50f[_0x354c('0x7c')]),_0x582d5a));},{'priority':_0x354c('0x27')}),_0x1fae45[_0x354c('0x20')][_0x354c('0x5d')](_0x1c2cff=>{if(_0x354c('0x39')!=_0x1c2cff[_0x354c('0x66')]&&_0x354c('0x50')!=_0x1c2cff[_0x354c('0x66')])return;const _0x570411=_0x1c2cff[_0x354c('0x6c')]();if(null!=_0x570411&&_0x570411['is'](_0x354c('0x1c'),_0x354c('0x70'))){if(_0x354c('0x39')==_0x1c2cff[_0x354c('0x66')]){const _0x17201f=_0x1c2cff[_0x354c('0x59')]()[_0x354c('0x51')](_0x226133=>_0x226133['is']('$textProxy'))[_0x354c('0x56')](_0x2a7042=>_0x2a7042[_0x354c('0x74')]);if(_0x17201f['length'])return{'type':_0x354c('0x39'),'content':_0x20a1cc(_0xb32df,_0x354c('0x7d'),_0x20a1cc(_0xb32df,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x17201f[_0x354c('0x37')]('\x20')+'\x22'))};}if('deletion'==_0x1c2cff['type']){const _0x2dcaf9=_0x1c2cff[_0x354c('0x59')]()[_0x354c('0x51')](_0x47dc77=>_0x47dc77['is'](_0x354c('0x80')))['map'](_0x3417cf=>_0x3417cf['data']);if(_0x2dcaf9[_0x354c('0x64')])return{'type':'deletion','content':_0x20a1cc(_0xb32df,_0x354c('0x22'),_0x20a1cc(_0xb32df,_0x354c('0x5c'),'\x22'+_0x2dcaf9[_0x354c('0x37')]('\x20')+'\x22'))};}}}),_0x1fae45[_0x354c('0x20')][_0x354c('0x5d')](_0x38f809=>{if('tableRow'==_0x38f809[_0x354c('0x3c')]){const _0x5b5fd2=_0x38f809[_0x354c('0x59')]()[_0x354c('0x51')](_0x2e586e=>_0x2e586e['is'](_0x354c('0x80')))['map'](_0x42a110=>_0x42a110[_0x354c('0x74')]),_0x4565b2=this[_0x354c('0x47')](_0x38f809),_0x36e7d7=_0x4565b2[_0x354c('0x87')]-_0x4565b2[_0x354c('0x54')]+0x1;if(_0x354c('0x39')==_0x38f809[_0x354c('0x66')])return _0x5b5fd2['length']?{'type':_0x354c('0x39'),'content':_0x20a1cc(_0xb32df,'*Insert:*\x20%0',_0x20a1cc(_0xb32df,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x36e7d7,'\x22'+_0x5b5fd2[_0x354c('0x37')]('\x20')+'\x22']))}:{'type':_0x354c('0x39'),'content':_0x20a1cc(_0xb32df,_0x354c('0x7d'),_0x20a1cc(_0xb32df,_0x354c('0x5e'),_0x36e7d7))};if(_0x354c('0x50')==_0x38f809[_0x354c('0x66')])return _0x5b5fd2[_0x354c('0x64')]?{'type':'deletion','content':_0x20a1cc(_0xb32df,_0x354c('0x22'),_0x20a1cc(_0xb32df,_0x354c('0x86'),[_0x36e7d7,'\x22'+_0x5b5fd2[_0x354c('0x37')]('\x20')+'\x22']))}:{'type':_0x354c('0x50'),'content':_0x20a1cc(_0xb32df,_0x354c('0x22'),_0x20a1cc(_0xb32df,_0x354c('0x5e'),_0x36e7d7))};}if(_0x354c('0x62')==_0x38f809[_0x354c('0x3c')]){const _0x8f7fe5=_0x38f809[_0x354c('0x59')]()['filter'](_0x5bc674=>_0x5bc674['is']('$textProxy'))[_0x354c('0x56')](_0x480b6b=>_0x480b6b[_0x354c('0x74')]),_0xe1e07=this['_getSuggestionCoords'](_0x38f809),_0x59683a=_0xe1e07['maxColumn']-_0xe1e07[_0x354c('0x40')]+0x1;if(_0x354c('0x39')==_0x38f809[_0x354c('0x66')])return _0x8f7fe5[_0x354c('0x64')]?{'type':_0x354c('0x39'),'content':_0x20a1cc(_0xb32df,'*Insert:*\x20%0',_0x20a1cc(_0xb32df,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59683a,'\x22'+_0x8f7fe5['join']('\x20')+'\x22']))}:{'type':_0x354c('0x39'),'content':_0x20a1cc(_0xb32df,'*Insert:*\x20%0',_0x20a1cc(_0xb32df,_0x354c('0x5f'),_0x59683a))};if(_0x354c('0x50')==_0x38f809[_0x354c('0x66')])return _0x8f7fe5['length']?{'type':'deletion','content':_0x20a1cc(_0xb32df,'*Remove:*\x20%0',_0x20a1cc(_0xb32df,_0x354c('0x32'),[_0x59683a,'\x22'+_0x8f7fe5[_0x354c('0x37')]('\x20')+'\x22']))}:{'type':_0x354c('0x50'),'content':_0x20a1cc(_0xb32df,'*Remove:*\x20%0',_0x20a1cc(_0xb32df,_0x354c('0x5f'),_0x59683a))};}}),_0x1fae45[_0x354c('0x7e')]['registerCustomCallback'](_0x354c('0x39'),_0x354c('0x33'),'discard',_0x1fd488),_0x1fae45[_0x354c('0x7e')]['registerCustomCallback'](_0x354c('0x50'),_0x354c('0x33'),_0x354c('0x36'),_0x1fd488),_0x1fae45[_0x354c('0x7e')][_0x354c('0x2')](_0x354c('0x39'),_0x354c('0x62'),_0x354c('0x2e'),_0x487beb),_0x1fae45[_0x354c('0x7e')][_0x354c('0x2')](_0x354c('0x50'),_0x354c('0x62'),_0x354c('0x36'),_0x487beb),_0x1fae45[_0x354c('0x7e')][_0x354c('0x2')](_0x354c('0x39'),'tableColumn',_0x354c('0x37'),_0x2a5790),_0x1fae45[_0x354c('0x7e')][_0x354c('0x2')](_0x354c('0x50'),_0x354c('0x62'),_0x354c('0x37'),_0x2a5790),_0x1fae45[_0x354c('0x7e')][_0x354c('0x2')]('insertion',_0x354c('0x33'),_0x354c('0x37'),_0x1755aa),_0x1fae45[_0x354c('0x7e')]['registerCustomCallback'](_0x354c('0x50'),_0x354c('0x33'),_0x354c('0x37'),_0x1755aa);}[_0x354c('0x7f')](){const _0x25cb30=this[_0x354c('0x2a')],_0x52204a=_0x25cb30[_0x354c('0x2b')][_0x354c('0x4e')]['selection'];return(_0x45d8f5,_0x405fe5)=>{_0x25cb30['model'][_0x354c('0x82')](_0x497659=>{const {commandName:_0x3257b7,commandParams:_0x56b4d3}=_0x405fe5;let _0x33ba25=_0x45d8f5[0x0][_0x354c('0x1e')][_0x354c('0x18')];_0x56b4d3&&_0x56b4d3[0x0]&&!0x1===_0x56b4d3[0x0][_0x354c('0x71')]&&(_0x33ba25=_0x45d8f5[0x0]['start'][_0x354c('0x61')]);const _0x4731b2=_0x497659[_0x354c('0x68')](_0x33ba25);if(_0x354c('0x45')==_0x4731b2[_0x354c('0x13')][_0x354c('0x52')])return;const _0x44bcd8=Array['from'](_0x52204a['getRanges']())[_0x354c('0x56')](_0x4ea9fe=>_0x451ecb['fromRange'](_0x4ea9fe));_0x497659['setSelection'](_0x4731b2),_0x25cb30[_0x354c('0xe')]['get'](_0x3257b7)[_0x354c('0x43')](),_0x56b4d3[_0x354c('0x8b')]({'forceDefaultExecution':!0x0}),_0x25cb30['execute'](_0x3257b7,..._0x56b4d3);const _0x180ecb=_0x44bcd8[_0x354c('0x51')](_0x3ab477=>_0x354c('0x45')!=_0x3ab477[_0x354c('0x13')][_0x354c('0x52')]);_0x180ecb[_0x354c('0x64')]>0x0&&_0x497659['setSelection'](_0x180ecb);for(const _0x1d67ef of _0x44bcd8)_0x1d67ef[_0x354c('0x31')]();});};}['_getCoordsForCells'](_0xb09cd2){const _0x4ebc03=this[_0x354c('0x2a')][_0x354c('0x23')]['get'](_0x354c('0x16'));let _0x25aa60=Number['MAX_SAFE_INTEGER'],_0x505c0d=Number[_0x354c('0x6d')],_0x16a134=Number['MAX_SAFE_INTEGER'],_0x5f8d45=Number['MIN_SAFE_INTEGER'];for(const _0x2de734 of _0xb09cd2){if(_0x354c('0x45')==_0x2de734[_0x354c('0x13')]['rootName'])continue;const {row:_0x18cabb,column:_0x343453}=_0x4ebc03['getCellLocation'](_0x2de734),_0x1d5091=_0x2de734[_0x354c('0x12')]('rowspan')?_0x2de734[_0x354c('0x30')](_0x354c('0x8'))-0x1:0x0,_0x4c3791=_0x2de734['hasAttribute']('colspan')?_0x2de734[_0x354c('0x30')](_0x354c('0x1f'))-0x1:0x0;_0x25aa60=_0x18cabb<_0x25aa60?_0x18cabb:_0x25aa60,_0x505c0d=_0x18cabb+_0x1d5091>_0x505c0d?_0x18cabb+_0x1d5091:_0x505c0d,_0x16a134=_0x343453<_0x16a134?_0x343453:_0x16a134,_0x5f8d45=_0x343453+_0x4c3791>_0x5f8d45?_0x343453+_0x4c3791:_0x5f8d45;}return{'minRow':_0x25aa60,'maxRow':_0x505c0d,'minColumn':_0x16a134,'maxColumn':_0x5f8d45};}[_0x354c('0x3')](){const _0x2670cc=this[_0x354c('0x2a')],_0x5216ad=_0x2670cc['plugins'][_0x354c('0x4')]('TrackChangesEditing'),_0x487281=_0x2670cc[_0x354c('0x23')]['get'](_0x354c('0x16'));_0x2670cc[_0x354c('0x2b')][_0x354c('0x4e')]['on'](_0x354c('0x38'),()=>{const _0x3cab7e=Array[_0x354c('0xf')](_0x2670cc[_0x354c('0x2b')]['document'][_0x354c('0x4f')]['getChangedMarkers']());for(const {name:_0x4324e3,data:_0x52ea6c}of _0x3cab7e){const {group:_0x378056,id:_0x54191e,subType:_0x482fc8}=_0x5216ad[_0x354c('0xc')](_0x4324e3);if(_0x354c('0x19')!=_0x378056)continue;if(null!=_0x52ea6c['oldRange'])continue;const _0x246961=_0x5216ad[_0x354c('0x34')](_0x54191e);this['_tablePostFixingSubtypes'][_0x354c('0x7a')](_0x482fc8)&&this[_0x354c('0x46')]['add'](_0x246961);}},{'priority':_0x354c('0x60')});const _0x224576=(_0x16cea6,_0x27cd6d)=>{let _0x5daed0=!0x1;const _0x5999bc=_0x27cd6d[_0x354c('0x5b')](_0x16cea6),_0x3cff76=_0x16cea6[_0x354c('0x3b')]('table'),_0x1efc25=_0x487281[_0x354c('0x3e')](_0x16cea6);for(const _0x589511 of this[_0x354c('0x46')]){const _0x488dea=_0x589511[_0x354c('0x3c')],_0x54fc01=_0x488dea[_0x354c('0xb')](_0x354c('0xd')),_0x2a8b2f=_0x488dea[_0x354c('0x4c')](_0x54fc01?0xa:0x5),_0x5058b4=_0x2a8b2f[_0x354c('0x4d')](),_0xc36436=_0x5058b4[_0x354c('0x4c')](0x0,0x3)+_0x354c('0x1b'),_0x5c8242=_0x354c('0x88')+_0x2a8b2f,_0x46a7d3=_0x354c('0x11')+_0x2a8b2f;if(!_0x589511['isInContent'])continue;if(_0x3cff76!=_0x589511[_0x354c('0x69')]()['start']['findAncestor']('table'))continue;if(_0x589511[_0x354c('0x6e')](_0x5999bc))continue;const _0x507bf1=_0x16cea6[_0x354c('0x12')](_0xc36436)?_0x16cea6[_0x354c('0x30')](_0xc36436)-0x1:0x0,_0x2fd045=this[_0x354c('0x47')](_0x589511),_0x4fe88e=_0x2fd045[_0x5c8242],_0x2c51a3=_0x2fd045[_0x46a7d3];_0x4fe88e<=_0x1efc25[_0x5058b4]&&_0x1efc25[_0x5058b4]+_0x507bf1<=_0x2c51a3&&(_0x589511[_0x354c('0x4b')](_0x5999bc),_0x5daed0=!0x0);}return _0x5daed0;};_0x2670cc[_0x354c('0x2b')][_0x354c('0x4e')]['registerPostFixer'](_0xd4cc5=>{let _0x554046=!0x1;for(const _0x389897 of _0x2670cc[_0x354c('0x2b')]['document'][_0x354c('0x4f')][_0x354c('0x77')]())if(_0x354c('0x72')==_0x389897['type']){if(_0x354c('0x33')==_0x389897[_0x354c('0x2d')])for(const _0x402517 of _0x389897[_0x354c('0x81')][_0x354c('0x61')][_0x354c('0x9')]())_0x554046=_0x554046||_0x224576(_0x402517,_0xd4cc5);else _0x354c('0x5a')==_0x389897['name']&&(_0x554046=_0x554046||_0x224576(_0x389897[_0x354c('0x81')]['nodeAfter'],_0xd4cc5));}return _0x554046;});}[_0x354c('0x47')](_0x54d3d2){return this[_0x354c('0x4a')](_0x54d3d2['getRanges']()[_0x354c('0x56')](_0x38a4eb=>_0x38a4eb[_0x354c('0x6b')]['nodeAfter']));}}function se(_0x4e2a3a){return Array[_0x354c('0xf')](new Set(_0x4e2a3a)[_0x354c('0x5')]());}
|
|
23
|
+
const _0x1619=['tableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','fromRange','deletion','last','map','position','substr','above','removeTableColumn','some','getSuggestion','refresh','options','_suggestionFactory','left','oldRange','change','order','TableUtils','data','showSuggestionHighlights','root','markMultiRangeInsertion','createRangeIn','commands','min','cell','nodeAfter','addRange','_getSuggestionCoords','discard','getCellLocation','isEqual','tableCell','ELEMENT_TABLE_COLUMN','minRow','insertTable','_splitMarkerName','insert','classes','_acceptFormatSuggestionCallbackFactory','start','getSelectionAffectedTableCells','getItems','createPositionAt','hasAttribute','toViewElement','subType','insertion','model','editor','setSelection','ELEMENT_TABLE_ROW','tableColumn','from','getRowIndexes','enqueueChange','accept','maxColumn','tablePaste','nodeBefore','_tableSuggestions','MAX_SAFE_INTEGER','createRangeOn','low','insertTableColumnLeft','getAttribute','get','isArray','afterInit','removeTableRow','selectTableRow','insertTableRowAbove','rowspan','TableEditing','TrackChangesEditing','getChildren','findAncestor','$graveyard','table','createTableWalker','colspan','push','_getCoordsForCells','minColumn','MIN_SAFE_INTEGER','detach','span','*Remove:*\x20%0','*Insert:*\x20%0','document','type','registerPostFixer','toLowerCase','highest','isIntersectingWithRange','insertTableRowBelow','_setupColumnsRowsFixing','getColumnIndexes','enableCommand','batch','element','execute','forceValue','rootName','max','_tablePostFixingSubtypes','join','name','first','registerCustomCallback','downcastDispatcher','length','registerDescriptionCallback','includes','getFirstRange','plugins','_descriptionFactory','differ','end','ELEMENT_TABLE','getContainedElement','$textProxy','filter','addClass','isTouching','add','selectTableColumn','ELEMENT_TABLE_WITH_TEXT','ELEMENT_TABLE_ROW_WITH_TEXT','getRanges'];(function(_0x22961e,_0x161942){const _0x16c3b8=function(_0x2b249f){while(--_0x2b249f){_0x22961e['push'](_0x22961e['shift']());}};_0x16c3b8(++_0x161942);}(_0x1619,0xf5));const _0x16c3=function(_0x22961e,_0x161942){_0x22961e=_0x22961e-0x0;let _0x16c3b8=_0x1619[_0x22961e];return _0x16c3b8;};import{Plugin as _0x37a406}from'ckeditor5/src/core';import{LiveRange as _0x392b59}from'ckeditor5/src/engine';import{setHighlightHandling as _0xe25658}from'ckeditor5/src/widget';import{getTranslation as _0x12deb4}from'../utils/common-translations';export default class dt extends _0x37a406{constructor(_0x4d7730){super(_0x4d7730),this['_tablePostFixingSubtypes']=[_0x16c3('0x13'),_0x16c3('0x49')],this[_0x16c3('0x51')]=new Set();}[_0x16c3('0x59')](){const _0x68df5b=this[_0x16c3('0x46')],_0x58ed94=_0x68df5b[_0x16c3('0x45')][_0x16c3('0x6e')]['selection'];if(!_0x68df5b[_0x16c3('0x4')]['has'](_0x16c3('0x5e')))return;const _0x2db262=_0x68df5b['locale'],_0x4377e4=_0x68df5b[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x5f')),_0x2b21c9=_0x68df5b[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x26'));_0x4377e4['_descriptionFactory']['registerElementLabel'](_0x16c3('0x63'),_0x2ac39c=>_0x12deb4(_0x2db262,_0x16c3('0x8'),_0x2ac39c)),this[_0x16c3('0x75')](),_0x4377e4[_0x16c3('0x77')](_0x16c3('0x38')),_0x4377e4['enableCommand'](_0x16c3('0x5b')),_0x4377e4[_0x16c3('0x77')](_0x16c3('0xf'));for(const _0x40dfa1 of[_0x16c3('0x5c'),_0x16c3('0x74')]){const _0x5d33ff=_0x68df5b['commands'][_0x16c3('0x57')](_0x40dfa1);_0x4377e4['enableCommand'](_0x40dfa1,_0x374c88=>{_0x68df5b[_0x16c3('0x45')]['change'](_0x293a3e=>{_0x374c88();const _0x7bc191=_0x16c3('0x1b')===_0x5d33ff['order'],_0x73d61d=_0x2b21c9['getSelectionAffectedTableCells'](_0x58ed94),_0xa6659=_0x2b21c9[_0x16c3('0x4b')](_0x73d61d),_0x643cc7=_0x7bc191?_0xa6659[_0x16c3('0x81')]-0x1:_0xa6659['last']+0x1,_0x6e80da=_0x73d61d[0x0][_0x16c3('0x61')](_0x16c3('0x63')),_0x381917=_0x2b21c9['createTableWalker'](_0x6e80da,{'startRow':_0x643cc7,'endRow':_0x643cc7}),_0x25ba58=Array[_0x16c3('0x4a')](_0x381917)['map'](_0x5a8e07=>_0x293a3e[_0x16c3('0x53')](_0x5a8e07[_0x16c3('0x2e')]));_0x4377e4[_0x16c3('0x2a')](_0x25ba58,_0x16c3('0x13'));});});}for(const _0x118f17 of[_0x16c3('0x55'),'insertTableColumnRight']){const _0x54d4d0=_0x68df5b[_0x16c3('0x2c')][_0x16c3('0x57')](_0x118f17);_0x4377e4[_0x16c3('0x77')](_0x118f17,_0x5f482=>{_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x738480=>{_0x5f482();const _0x36993b=_0x16c3('0x22')===_0x54d4d0[_0x16c3('0x25')],_0x51def4=_0x2b21c9['getSelectionAffectedTableCells'](_0x58ed94),_0x1667fc=_0x2b21c9[_0x16c3('0x76')](_0x51def4),_0x59bcbf=_0x36993b?_0x1667fc[_0x16c3('0x81')]-0x1:_0x1667fc[_0x16c3('0x17')]+0x1,_0x86a329=_0x51def4[0x0][_0x16c3('0x61')](_0x16c3('0x63')),_0x2e24eb=_0x2b21c9[_0x16c3('0x64')](_0x86a329,{'startRow':0x0,'column':_0x59bcbf,'includeAllSlots':!0x1}),_0x5180a7=Array['from'](_0x2e24eb)[_0x16c3('0x18')](_0x23d49c=>_0x738480[_0x16c3('0x53')](_0x23d49c[_0x16c3('0x2e')]));_0x4377e4[_0x16c3('0x2a')](_0x5180a7,_0x16c3('0x49'));});});}for(const _0x564349 of['removeTableRow',_0x16c3('0x1c')]){const _0x1b602d=_0x564349[_0x16c3('0x1a')](0xb),_0x551b3f=_0x1b602d['toLowerCase'](),_0x519f49=_0x551b3f[_0x16c3('0x1a')](0x0,0x3)+'span',_0x6d77c5=_0x16c3('0x63')+_0x1b602d,_0x4df3ef=_0x16c3('0x2d')+_0x1b602d,_0x2f671c='max'+_0x1b602d;_0x4377e4['enableCommand'](_0x564349,()=>{_0x68df5b['model'][_0x16c3('0x24')](_0x5ce7ee=>{const _0x598c16=_0x2b21c9[_0x16c3('0x3e')](_0x58ed94),_0x1ea8cf=_0x598c16[0x0]['findAncestor'](_0x16c3('0x63'));let _0x5d3d46;if(_0x16c3('0x5a')==_0x564349){const _0x57bfc2=_0x2b21c9[_0x16c3('0x4b')](_0x598c16);_0x5d3d46={'startRow':_0x57bfc2[_0x16c3('0x81')],'endRow':_0x57bfc2[_0x16c3('0x17')],'includeAllSlots':!0x0};}else{const _0x4c8782=_0x2b21c9[_0x16c3('0x76')](_0x598c16);_0x5d3d46={'startColumn':_0x4c8782['first'],'endColumn':_0x4c8782[_0x16c3('0x17')],'includeAllSlots':!0x0};}const _0x597133=_0x2b21c9[_0x16c3('0x64')](_0x1ea8cf,_0x5d3d46),_0x599069=Array[_0x16c3('0x4a')](_0x597133)[_0x16c3('0x18')](({cell:_0x86c9b1})=>_0x86c9b1),_0x3d28f1=se(_0x599069[_0x16c3('0xb')](_0x42d925=>_0x42d925[_0x16c3('0x41')](_0x519f49))),_0xbbf5c=se(_0x599069[_0x16c3('0xb')](_0x110058=>!_0x110058['hasAttribute'](_0x519f49)))[_0x16c3('0x18')](_0x5ebfce=>_0x5ce7ee[_0x16c3('0x53')](_0x5ebfce)),_0x174217=_0x4377e4['markMultiRangeDeletion'](_0xbbf5c,_0x6d77c5);if(_0x174217&&('tableRow'==_0x174217['subType']||'tableColumn'==_0x174217[_0x16c3('0x43')])){const _0x457ce2=this[_0x16c3('0x31')](_0x174217);for(const _0x4ba175 of _0x3d28f1){const _0x3504e7=_0x5ce7ee[_0x16c3('0x53')](_0x4ba175),_0x52f175=_0x2b21c9[_0x16c3('0x33')](_0x4ba175),_0x4e77c1=_0x4ba175[_0x16c3('0x56')](_0x519f49)-0x1,_0x533a83=_0x457ce2[_0x4df3ef],_0x4693b4=_0x457ce2[_0x2f671c];_0x533a83<=_0x52f175[_0x551b3f]&&_0x52f175[_0x551b3f]+_0x4e77c1<=_0x4693b4&&_0x174217[_0x16c3('0x30')](_0x3504e7);}}});});}function _0x122dde(_0x4371f1){const _0x3415aa=Array['from'](_0x58ed94[_0x16c3('0x12')]())[_0x16c3('0x18')](_0x351848=>_0x392b59[_0x16c3('0x15')](_0x351848));_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x14fe4b=>{const _0x53d35d=_0x14fe4b[_0x16c3('0x78')];_0x4371f1=_0x4371f1['filter'](_0x23af3b=>_0x16c3('0x62')!=_0x23af3b['root'][_0x16c3('0x7c')]),_0x14fe4b[_0x16c3('0x47')](_0x4371f1),_0x68df5b[_0x16c3('0x2c')][_0x16c3('0x57')](_0x16c3('0x5a'))[_0x16c3('0x1f')](),_0x68df5b[_0x16c3('0x7a')](_0x16c3('0x5a'),{'forceDefaultExecution':!0x0}),_0x68df5b[_0x16c3('0x45')]['enqueueChange'](()=>{_0x68df5b[_0x16c3('0x45')][_0x16c3('0x4c')](_0x53d35d,_0x25218c=>{const _0x9fd483=_0x3415aa[_0x16c3('0xb')](_0x331d90=>_0x16c3('0x62')!=_0x331d90['root'][_0x16c3('0x7c')]);_0x9fd483['length']>0x0&&_0x25218c['setSelection'](_0x9fd483);for(const _0x3a8231 of _0x3415aa)_0x3a8231[_0x16c3('0x6a')]();});});});}function _0x10253e(_0x3d9236){_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x503476=>{const _0x305f12=Array[_0x16c3('0x4a')](_0x58ed94[_0x16c3('0x12')]())[_0x16c3('0x18')](_0x1d68ab=>_0x392b59['fromRange'](_0x1d68ab)),_0x50ba05=[];for(const _0x44547d of _0x3d9236)for(const _0x44faf3 of _0x44547d[_0x16c3('0x3f')]({'shallow':!0x0}))_0x50ba05[_0x16c3('0x66')](_0x44faf3);for(const _0x23c6fb of _0x50ba05)_0x16c3('0x62')!=_0x23c6fb['root']['rootName']&&(_0x503476[_0x16c3('0x47')](_0x503476[_0x16c3('0x40')](_0x23c6fb,0x0)),_0x68df5b[_0x16c3('0x2c')]['get']('removeTableColumn')[_0x16c3('0x1f')](),_0x68df5b['execute'](_0x16c3('0x1c'),{'forceDefaultExecution':!0x0}));const _0x2597e5=_0x305f12[_0x16c3('0xb')](_0xba35ac=>_0x16c3('0x62')!=_0xba35ac[_0x16c3('0x29')]['rootName']);_0x2597e5['length']>0x0&&_0x503476[_0x16c3('0x47')](_0x2597e5);for(const _0x320c0a of _0x305f12)_0x320c0a[_0x16c3('0x6a')]();});}function _0x530253(_0x117884,_0xf06874){return _0xf06874['every'](_0x3b38e7=>_0x117884[_0x16c3('0x1d')](_0x6cd7e3=>_0x6cd7e3[_0x16c3('0x7')]['isEqual'](_0x3b38e7[_0x16c3('0x3d')])||_0x3b38e7[_0x16c3('0x7')][_0x16c3('0x34')](_0x6cd7e3[_0x16c3('0x3d')])));}function _0x332219(_0x1906ed,_0x22a151){return _0x1906ed[_0x16c3('0x1d')](_0x5d927d=>_0x22a151[_0x16c3('0x1d')](_0x24aca2=>_0x5d927d[_0x16c3('0x7')][_0x16c3('0xd')](_0x24aca2[_0x16c3('0x3d')])));}_0x68df5b[_0x16c3('0x27')][_0x16c3('0x83')]['on']('addMarker:suggestion',(_0x3a3eac,_0x8ed327,_0x286b22)=>{if(!_0x286b22[_0x16c3('0x20')][_0x16c3('0x28')])return;const _0x1ab0d9=_0x8ed327['item'];if(!_0x1ab0d9)return;const _0x1e48af=_0x286b22['mapper'][_0x16c3('0x42')](_0x1ab0d9);function _0x44fe93(_0x34d877){return Array[_0x16c3('0x58')](_0x34d877)?_0x34d877:[_0x34d877];}_0x1e48af&&_0x16c3('0x35')===_0x1ab0d9[_0x16c3('0x80')]&&_0xe25658(_0x1e48af,_0x286b22['writer'],(_0x4932af,_0x4ffd8f,_0x1e506c)=>_0x1e506c[_0x16c3('0xc')](_0x44fe93(_0x4ffd8f[_0x16c3('0x3b')]),_0x4932af),(_0x3366e7,_0x2eb532,_0x190dba)=>_0x190dba['removeClass'](_0x44fe93(_0x2eb532['classes']),_0x3366e7));},{'priority':_0x16c3('0x72')}),_0x4377e4[_0x16c3('0x5')][_0x16c3('0x1')](_0x4e02ed=>{if(_0x16c3('0x44')!=_0x4e02ed[_0x16c3('0x6f')]&&'deletion'!=_0x4e02ed[_0x16c3('0x6f')])return;const _0x4081a8=_0x4e02ed[_0x16c3('0x9')]();if(null!=_0x4081a8&&_0x4081a8['is'](_0x16c3('0x79'),_0x16c3('0x63'))){if(_0x16c3('0x44')==_0x4e02ed[_0x16c3('0x6f')]){const _0x71b36f=_0x4e02ed['getItems']()[_0x16c3('0xb')](_0x3f9abe=>_0x3f9abe['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x1750e2=>_0x1750e2[_0x16c3('0x27')]);if(_0x71b36f[_0x16c3('0x0')])return{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6d'),_0x12deb4(_0x2db262,_0x16c3('0x10'),'\x22'+_0x71b36f[_0x16c3('0x7f')]('\x20')+'\x22'))};}if(_0x16c3('0x16')==_0x4e02ed[_0x16c3('0x6f')]){const _0x55f6fe=_0x4e02ed[_0x16c3('0x3f')]()['filter'](_0x2c1fce=>_0x2c1fce['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x3d0cad=>_0x3d0cad[_0x16c3('0x27')]);if(_0x55f6fe[_0x16c3('0x0')])return{'type':_0x16c3('0x16'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x10'),'\x22'+_0x55f6fe[_0x16c3('0x7f')]('\x20')+'\x22'))};}}}),_0x4377e4[_0x16c3('0x5')]['registerDescriptionCallback'](_0x344e07=>{if(_0x16c3('0x13')==_0x344e07[_0x16c3('0x43')]){const _0x28692d=_0x344e07['getItems']()['filter'](_0x462aed=>_0x462aed['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x543c50=>_0x543c50[_0x16c3('0x27')]),_0x194726=this['_getSuggestionCoords'](_0x344e07),_0x23a6ec=_0x194726['maxRow']-_0x194726[_0x16c3('0x37')]+0x1;if('insertion'==_0x344e07[_0x16c3('0x6f')])return _0x28692d[_0x16c3('0x0')]?{'type':'insertion','content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x11'),[_0x23a6ec,'\x22'+_0x28692d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x48'),_0x23a6ec))};if(_0x16c3('0x16')==_0x344e07[_0x16c3('0x6f')])return _0x28692d[_0x16c3('0x0')]?{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x23a6ec,'\x22'+_0x28692d['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x48'),_0x23a6ec))};}if(_0x16c3('0x49')==_0x344e07[_0x16c3('0x43')]){const _0x159c1d=_0x344e07[_0x16c3('0x3f')]()[_0x16c3('0xb')](_0x40c8c0=>_0x40c8c0['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x1b0e03=>_0x1b0e03[_0x16c3('0x27')]),_0x375b40=this['_getSuggestionCoords'](_0x344e07),_0xeef44c=_0x375b40[_0x16c3('0x4e')]-_0x375b40[_0x16c3('0x68')]+0x1;if(_0x16c3('0x44')==_0x344e07[_0x16c3('0x6f')])return _0x159c1d[_0x16c3('0x0')]?{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6d'),_0x12deb4(_0x2db262,_0x16c3('0x14'),[_0xeef44c,'\x22'+_0x159c1d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x36'),_0xeef44c))};if('deletion'==_0x344e07[_0x16c3('0x6f')])return _0x159c1d[_0x16c3('0x0')]?{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x14'),[_0xeef44c,'\x22'+_0x159c1d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':_0x16c3('0x16'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x36'),_0xeef44c))};}}),_0x4377e4['_suggestionFactory'][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x13'),_0x16c3('0x32'),_0x122dde),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x16'),_0x16c3('0x13'),'accept',_0x122dde),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x49'),_0x16c3('0x32'),_0x10253e),_0x4377e4['_suggestionFactory'][_0x16c3('0x82')]('deletion',_0x16c3('0x49'),_0x16c3('0x4d'),_0x10253e),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),'tableColumn',_0x16c3('0x7f'),_0x530253),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')]('deletion',_0x16c3('0x49'),'join',_0x530253),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x13'),_0x16c3('0x7f'),_0x332219),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x16'),'tableRow',_0x16c3('0x7f'),_0x332219);}[_0x16c3('0x3c')](){const _0x17ee33=this['editor'],_0x818b98=_0x17ee33[_0x16c3('0x45')][_0x16c3('0x6e')]['selection'];return(_0x338e4a,_0x1f0345)=>{_0x17ee33[_0x16c3('0x45')][_0x16c3('0x24')](_0x3d21bc=>{const {commandName:_0xea5379,commandParams:_0x17083b}=_0x1f0345;let _0x36b33a=_0x338e4a[0x0]['end'][_0x16c3('0x50')];_0x17083b&&_0x17083b[0x0]&&!0x1===_0x17083b[0x0][_0x16c3('0x7b')]&&(_0x36b33a=_0x338e4a[0x0][_0x16c3('0x3d')]['nodeAfter']);const _0x4dbadd=_0x3d21bc[_0x16c3('0x2b')](_0x36b33a);if(_0x16c3('0x62')==_0x4dbadd[_0x16c3('0x29')][_0x16c3('0x7c')])return;const _0x30a0df=Array['from'](_0x818b98[_0x16c3('0x12')]())['map'](_0x33c08c=>_0x392b59[_0x16c3('0x15')](_0x33c08c));_0x3d21bc[_0x16c3('0x47')](_0x4dbadd),_0x17ee33[_0x16c3('0x2c')]['get'](_0xea5379)[_0x16c3('0x1f')](),_0x17083b[_0x16c3('0x66')]({'forceDefaultExecution':!0x0}),_0x17ee33['execute'](_0xea5379,..._0x17083b);const _0x47866d=_0x30a0df[_0x16c3('0xb')](_0x55ac23=>_0x16c3('0x62')!=_0x55ac23['root'][_0x16c3('0x7c')]);_0x47866d[_0x16c3('0x0')]>0x0&&_0x3d21bc[_0x16c3('0x47')](_0x47866d);for(const _0x127f42 of _0x30a0df)_0x127f42['detach']();});};}[_0x16c3('0x67')](_0x5e0c42){const _0xd2341a=this[_0x16c3('0x46')]['plugins'][_0x16c3('0x57')](_0x16c3('0x26'));let _0x2e02ed=Number[_0x16c3('0x52')],_0x379315=Number[_0x16c3('0x69')],_0x5950e8=Number[_0x16c3('0x52')],_0x12e184=Number[_0x16c3('0x69')];for(const _0x54d01b of _0x5e0c42){if(_0x16c3('0x62')==_0x54d01b['root'][_0x16c3('0x7c')])continue;const {row:_0x307df2,column:_0x3828af}=_0xd2341a[_0x16c3('0x33')](_0x54d01b),_0x2f0a8a=_0x54d01b['hasAttribute'](_0x16c3('0x5d'))?_0x54d01b['getAttribute'](_0x16c3('0x5d'))-0x1:0x0,_0x333a27=_0x54d01b['hasAttribute']('colspan')?_0x54d01b[_0x16c3('0x56')](_0x16c3('0x65'))-0x1:0x0;_0x2e02ed=_0x307df2<_0x2e02ed?_0x307df2:_0x2e02ed,_0x379315=_0x307df2+_0x2f0a8a>_0x379315?_0x307df2+_0x2f0a8a:_0x379315,_0x5950e8=_0x3828af<_0x5950e8?_0x3828af:_0x5950e8,_0x12e184=_0x3828af+_0x333a27>_0x12e184?_0x3828af+_0x333a27:_0x12e184;}return{'minRow':_0x2e02ed,'maxRow':_0x379315,'minColumn':_0x5950e8,'maxColumn':_0x12e184};}[_0x16c3('0x75')](){const _0x19b277=this[_0x16c3('0x46')],_0x264948=_0x19b277[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x5f')),_0x561d65=_0x19b277[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x26'));_0x19b277['model'][_0x16c3('0x6e')]['on']('change:data',()=>{const _0x4db890=Array[_0x16c3('0x4a')](_0x19b277[_0x16c3('0x45')][_0x16c3('0x6e')][_0x16c3('0x6')]['getChangedMarkers']());for(const {name:_0x48256d,data:_0x59e4e8}of _0x4db890){const {group:_0x313c8d,id:_0x5f3125,subType:_0x547743}=_0x264948[_0x16c3('0x39')](_0x48256d);if('suggestion'!=_0x313c8d)continue;if(null!=_0x59e4e8[_0x16c3('0x23')])continue;const _0x265c03=_0x264948[_0x16c3('0x1e')](_0x5f3125);this[_0x16c3('0x7e')][_0x16c3('0x2')](_0x547743)&&this[_0x16c3('0x51')][_0x16c3('0xe')](_0x265c03);}},{'priority':_0x16c3('0x54')});const _0x44a238=(_0x181ef9,_0x303ec0)=>{let _0x3d3aff=!0x1;const _0x2fb1b2=_0x303ec0[_0x16c3('0x53')](_0x181ef9),_0x2d441e=_0x181ef9[_0x16c3('0x61')](_0x16c3('0x63')),_0x3c788f=_0x561d65[_0x16c3('0x33')](_0x181ef9);for(const _0x26c56c of this['_tableSuggestions']){const _0x2fd725=_0x26c56c['subType'],_0xc25093=_0x2fd725['startsWith'](_0x16c3('0x4f')),_0x5f00e5=_0x2fd725[_0x16c3('0x1a')](_0xc25093?0xa:0x5),_0x4528d4=_0x5f00e5[_0x16c3('0x71')](),_0x54b963=_0x4528d4[_0x16c3('0x1a')](0x0,0x3)+_0x16c3('0x6b'),_0x5725c0='min'+_0x5f00e5,_0x363f2c=_0x16c3('0x7d')+_0x5f00e5;if(!_0x26c56c['isInContent'])continue;if(_0x2d441e!=_0x26c56c[_0x16c3('0x3')]()[_0x16c3('0x3d')][_0x16c3('0x61')](_0x16c3('0x63')))continue;if(_0x26c56c[_0x16c3('0x73')](_0x2fb1b2))continue;const _0x36fb62=_0x181ef9[_0x16c3('0x41')](_0x54b963)?_0x181ef9[_0x16c3('0x56')](_0x54b963)-0x1:0x0,_0x2ce3d6=this['_getSuggestionCoords'](_0x26c56c),_0x513014=_0x2ce3d6[_0x5725c0],_0x14557a=_0x2ce3d6[_0x363f2c];_0x513014<=_0x3c788f[_0x4528d4]&&_0x3c788f[_0x4528d4]+_0x36fb62<=_0x14557a&&(_0x26c56c['addRange'](_0x2fb1b2),_0x3d3aff=!0x0);}return _0x3d3aff;};_0x19b277[_0x16c3('0x45')]['document'][_0x16c3('0x70')](_0x22bd80=>{let _0x3a42f7=!0x1;for(const _0x309b09 of _0x19b277[_0x16c3('0x45')][_0x16c3('0x6e')]['differ']['getChanges']())if(_0x16c3('0x3a')==_0x309b09[_0x16c3('0x6f')]){if('tableRow'==_0x309b09[_0x16c3('0x80')])for(const _0x160ecb of _0x309b09[_0x16c3('0x19')]['nodeAfter'][_0x16c3('0x60')]())_0x3a42f7=_0x3a42f7||_0x44a238(_0x160ecb,_0x22bd80);else _0x16c3('0x35')==_0x309b09[_0x16c3('0x80')]&&(_0x3a42f7=_0x3a42f7||_0x44a238(_0x309b09['position'][_0x16c3('0x2f')],_0x22bd80));}return _0x3a42f7;});}[_0x16c3('0x31')](_0x59df5e){return this[_0x16c3('0x67')](_0x59df5e['getRanges']()[_0x16c3('0x18')](_0x235c75=>_0x235c75[_0x16c3('0x3d')][_0x16c3('0x2f')]));}}function se(_0x3ee864){return Array['from'](new Set(_0x3ee864)['values']());}
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tablecaption
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import TrackChangesTable from './table';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesTableCaption extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
afterInit(): void;
|
|
22
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tablecaption
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import TrackChangesTable from './table';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesTableCaption extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
afterInit(): void;
|
|
22
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ab4=['requires','afterInit','get','enableCommand','plugins','editor'];(function(_0x14a5dd,_0x2ab414){const _0x3f4d4e=function(_0x33e42c){while(--_0x33e42c){_0x14a5dd['push'](_0x14a5dd['shift']());}};_0x3f4d4e(++_0x2ab414);}(_0x2ab4,0xba));const _0x3f4d=function(_0x14a5dd,_0x2ab414){_0x14a5dd=_0x14a5dd-0x0;let _0x3f4d4e=_0x2ab4[_0x14a5dd];return _0x3f4d4e;};import{Plugin as _0x491d32}from'ckeditor5/src/core';import _0x2fea25 from'./table';export default class At extends _0x491d32{static get[_0x3f4d('0x0')](){return[_0x2fea25];}[_0x3f4d('0x1')](){const _0x1b956a=this[_0x3f4d('0x5')];if(!_0x1b956a[_0x3f4d('0x4')]['has']('TableCaptionEditing'))return;_0x1b956a['plugins'][_0x3f4d('0x2')]('TrackChangesEditing')[_0x3f4d('0x3')]('toggleTableCaption');}}
|
|
@@ -1,19 +1,19 @@
|
|
|
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
|
-
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import TrackChangesTable from './table';
|
|
7
|
-
/**
|
|
8
|
-
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
9
|
-
*/
|
|
10
|
-
export default class TrackChangesTableClipboard extends Plugin {
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
import TrackChangesTable from './table';
|
|
7
|
+
/**
|
|
8
|
+
* Provides track changes plugin integration for {@link module:table/tableclipboard~TableClipboard table clipboard feature}.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesTableClipboard extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
afterInit(): void;
|
|
19
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x43df=['getRows','plugins','from','getTableIfOnlyTableInContent','type','redo','insertion','suggestion-td','suggestionUnloaded','findAncestor','$graveyard','keys','Users','first','getShiftedBy','rowInsertionIndexes','columns','markerToHighlight','dataDowncast','getSuggestions','markerAttributes','registerCustomCallback','conversion','getChildren','registerPostFixer','oldRange','startsWith','tablePasteCell','_descriptionFactory','rowInsertionRanges','remove','createRangeIn','forceDefaultExecution','wrap','has','_splitMarkerName','_suggestionFactory','isEmpty','requires','some','getAllAdjacentSuggestions','high','filter','nodeAfter','batch','isInContent','fill','markMultiRangeDeletion','hasSuggestion','showSuggestionHighlights','tableCellBackgroundColor','TableClipboard','suggestionLoaded','setAttributes','tableCellBorderStyle','afterInit','low','getRange','_tablePostFixingSubtypes','nextSibling','tableCell','getColumnIndexes','ck-suggestion-marker-insertion','getChanges','length','listenTo','table','return','createRangeOn','name','position','setAttribute','getRowIndexes','getColumns','getChild','_createdBatches','registerDescriptionCallback','createPositionBefore','set','markMultiRangeBlockFormat','insertionRanges','register','getSuggestion','fromEntries','*Replace\x20table\x20cells*','getAttributes','options','getContainedElement','tableCellBorderWidth','selection','tableCellBorderColor','tablePasteRow','TableUtils','suggestion:formatBlock:tablePasteCell','isEqual','insert','value','_getCoordsForCells','end','endRow','clipboardOutput','paragraph','includes','createRange','trackChanges','map','tableCellSuggestion','removeMarker','removeMarkers','tablePasteChainId','getChangedMarkers','editing','attributes','getRanges','editingDowncast','formatBlock','deletionRanges','activeMarkers','getSuggestionCallback','newRange','push','every','rows','columnInsertionIndexes','discard','tablePaste','accept','documentSelection','getSelectionAffectedTableCells','createTableWalker','previousSibling','rootName','element','differ','model','insertColumns','suggestion','deletion','change','add','containsRange','getItems','tableCellHorizontalAlignment','stop','elementToElement','find','document','cell','for','_isForcedDefaultExecutionBlock','tableCellVerticalAlignment','last','markerName','previous','subType','updateMarker','author','markMultiRangeInsertion','ck-suggestion-marker--active','unwrap','move','column','createElement','editor','tablePasteColumn','get','insertContent','reduce','join'];(function(_0x66d6b7,_0x43df5a){const _0x2209a3=function(_0x166568){while(--_0x166568){_0x66d6b7['push'](_0x66d6b7['shift']());}};_0x2209a3(++_0x43df5a);}(_0x43df,0x7e));const _0x2209=function(_0x66d6b7,_0x43df5a){_0x66d6b7=_0x66d6b7-0x0;let _0x2209a3=_0x43df[_0x66d6b7];return _0x2209a3;};import{getTranslation as _0x72daf2}from'../utils/common-translations';import{Plugin as _0x3b65ed}from'ckeditor5/src/core';import{uid as _0x3039e3,priorities as _0x23c838}from'ckeditor5/src/utils';import _0x481d37 from'./table';const le=[_0x2209('0x83'),_0x2209('0x85'),_0x2209('0x61'),_0x2209('0x10'),_0x2209('0x18'),_0x2209('0x5d'),'tableCellPadding'],ae=Object[_0x2209('0x7e')](le[_0x2209('0x94')](_0x398a88=>[_0x398a88,null]));export default class kt extends _0x3b65ed{static get[_0x2209('0x51')](){return[_0x481d37];}[_0x2209('0x62')](){const _0x4f0249=this[_0x2209('0x25')];if(!_0x4f0249[_0x2209('0x2c')][_0x2209('0x4d')]('TableClipboard'))return;const _0x29fa46=_0x4f0249['plugins'][_0x2209('0x27')]('TrackChangesEditing'),_0x41a5c4=_0x4f0249[_0x2209('0x2c')][_0x2209('0x27')](_0x2209('0x87')),_0x8eddb6=_0x4f0249[_0x2209('0x2c')][_0x2209('0x27')](_0x481d37),_0x1709ba=_0x4f0249[_0x2209('0x2c')][_0x2209('0x27')]('TableClipboard');_0x8eddb6[_0x2209('0x65')][_0x2209('0xa3')](_0x2209('0x86'),_0x2209('0x26')),_0x4f0249[_0x2209('0x8')]['schema'][_0x2209('0x7c')](_0x2209('0x95'),{'allowIn':_0x2209('0x67'),'allowContentOf':_0x2209('0x67'),'isLimit':!0x0}),_0x4f0249[_0x2209('0x41')][_0x2209('0x12')]({'model':'tableCellSuggestion','view':_0x2209('0x32')});let _0x16cddf=null;_0x4f0249[_0x2209('0x8')]['on'](_0x2209('0x28'),(_0x2dd899,_0x30ffb6)=>{const [_0x459de0,_0x37de8d]=_0x30ffb6,_0x47fe5a=_0x30ffb6[_0x30ffb6['length']-0x1];_0x47fe5a&&_0x47fe5a[_0x2209('0x4b')]||_0x29fa46[_0x2209('0x17')]||this[_0x2209('0x25')]['commands']['get'](_0x2209('0x93'))[_0x2209('0x8b')]&&function(_0x2a25a9,_0x3c0939,_0x29abaf,_0x444735,_0x9c97b1){if(_0x3c0939&&!_0x3c0939['is'](_0x2209('0x1')))return!0x1;const _0x4ac8c6=_0x9c97b1[_0x2209('0x2e')](_0x2a25a9,_0x29abaf);if(!_0x4ac8c6||!fe(_0x4ac8c6,void 0x0,_0x444735))return!0x1;const _0x38c6fd=_0x444735[_0x2209('0x2')](_0x29abaf[_0x2209('0x14')][_0x2209('0x84')]);if(!_0x38c6fd[_0x2209('0x6b')])return!0x1;const _0x3600bb=_0x38c6fd[0x0][_0x2209('0x34')]('table'),_0xdbe690=_0x444735[_0x2209('0x73')](_0x38c6fd),_0x53c26a=_0x444735[_0x2209('0x68')](_0x38c6fd),_0x45da81={'startRow':_0xdbe690[_0x2209('0x38')],'endRow':_0xdbe690[_0x2209('0x19')],'startColumn':_0x53c26a[_0x2209('0x38')],'endColumn':_0x53c26a[_0x2209('0x19')]};return 0x1==_0x38c6fd['length']&&(_0x45da81[_0x2209('0x8e')]+=_0x444735[_0x2209('0x2b')](_0x4ac8c6)-0x1,_0x45da81['endColumn']+=_0x444735[_0x2209('0x74')](_0x4ac8c6)-0x1),fe(_0x3600bb,_0x45da81,_0x444735);}(_0x459de0,_0x37de8d,_0x4f0249[_0x2209('0x8')],_0x41a5c4,_0x1709ba)&&(_0x2dd899[_0x2209('0x11')](),_0x16cddf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4f0249[_0x2209('0x8')][_0x2209('0xc')](()=>{_0x4f0249[_0x2209('0x8')]['insertContent'](_0x30ffb6[0x0],_0x30ffb6[0x1],_0x30ffb6[0x2],{'forceDefaultExecution':!0x0});const _0x190e10=_0x3039e3(),{rowInsertionRanges:_0x20a092,columnInsertionRanges:_0x371bbd,insertionRanges:_0x4dd372,deletionRanges:_0x2b9759,cells:_0x2714a0}=_0x16cddf;_0x20a092['length']&&_0x29fa46[_0x2209('0x1f')](_0x20a092,_0x2209('0x86'),{'tablePasteChainId':_0x190e10}),_0x371bbd[_0x2209('0x6b')]&&_0x29fa46[_0x2209('0x1f')](_0x371bbd,_0x2209('0x26'),{'tablePasteChainId':_0x190e10}),_0x4dd372[_0x2209('0x6b')]&&_0x29fa46[_0x2209('0x1f')](_0x4dd372,_0x2209('0xa8'),{'tablePasteChainId':_0x190e10,'skipNestingCheck':!0x0}),_0x2b9759['length']&&_0x29fa46[_0x2209('0x5a')](_0x2b9759,'tablePaste',{'tablePasteChainId':_0x190e10,'skipNestingCheck':!0x0});const _0x49c949=_0x29fa46[_0x2209('0x7a')](_0x2714a0[_0x2209('0x94')](({element:_0x52ebd2})=>_0x52ebd2),{'formatGroupId':_0x3039e3()},[],_0x2209('0x46'),{'tablePasteChainId':_0x190e10});if(_0x49c949){const _0xedba2d=_0x49c949['getMarkers'](),_0x3739af=[];for(const {element:_0xc83ec9,attributes:_0x513e15}of _0x2714a0){if(!_0x513e15)continue;const _0x3d0443=_0x4f0249[_0x2209('0x8')]['createRangeOn'](_0xc83ec9),_0x363699=_0xedba2d[_0x2209('0x13')](_0x561983=>_0x561983[_0x2209('0x64')]()[_0x2209('0x89')](_0x3d0443));_0x363699&&_0x3739af[_0x2209('0xa3')]([_0x363699[_0x2209('0x70')],_0x513e15]);}_0x3739af[_0x2209('0x6b')]&&_0x49c949[_0x2209('0x72')](_0x2209('0x3f'),Object[_0x2209('0x7e')](_0x3739af));}_0x16cddf=null;}));},{'priority':_0x23c838['high']+0xa}),_0x4f0249[_0x2209('0x2c')][_0x2209('0x27')](_0x2209('0x5e'))['on']('_replaceTableSlotCell',(_0xb08638,_0x3dd795)=>{const [_0x169205,_0x4fd20c,,_0x5e4216]=_0x3dd795;if(!_0x16cddf)return;_0xb08638[_0x2209('0x11')]();const _0x567e6b=_0x169205[_0x2209('0x15')],_0x584427=_0x4fd20c,_0x4c1fae=ce(_0x567e6b),_0x8b1838=ce(_0x584427);_0xb08638[_0x2209('0x6e')]=_0x567e6b;let _0x877130=null,_0x599a61=null;if(_0x8b1838||_0x4c1fae){if(_0x4c1fae&&!_0x8b1838){_0x5e4216[_0x2209('0x49')](_0x567e6b[_0x2209('0x75')](0x0));for(const _0x54bd46 of Array[_0x2209('0x2d')](_0x584427[_0x2209('0x42')]()))_0x5e4216['insert'](_0x54bd46,_0x567e6b,_0x2209('0x8d'));const _0x52e61b=_0x16cddf[_0x2209('0x3a')][_0x2209('0x91')](_0x169205['row']),_0x466268=_0x16cddf[_0x2209('0xa6')][_0x2209('0x91')](_0x169205[_0x2209('0x23')]);_0x52e61b||_0x466268||(_0x877130=_0x5e4216[_0x2209('0x4a')](_0x567e6b));}else _0x8b1838&&!_0x4c1fae&&(_0x599a61=_0x5e4216[_0x2209('0x4a')](_0x567e6b));}else{const _0x3ec4c6=_0x5e4216[_0x2209('0x24')]('tableCellSuggestion'),_0x355507=_0x5e4216[_0x2209('0x24')](_0x2209('0x95'));_0x5e4216[_0x2209('0x4c')](_0x5e4216[_0x2209('0x4a')](_0x567e6b),_0x355507),_0x5e4216[_0x2209('0x8a')](_0x3ec4c6,_0x567e6b,0x0);for(const _0x44b4f0 of Array[_0x2209('0x2d')](_0x584427[_0x2209('0x42')]()))_0x5e4216[_0x2209('0x8a')](_0x44b4f0,_0x3ec4c6,_0x2209('0x8d'));_0x877130=_0x5e4216[_0x2209('0x6f')](_0x3ec4c6),_0x599a61=_0x5e4216[_0x2209('0x6f')](_0x355507);}const _0x53c6e7=Array[_0x2209('0x2d')](_0x584427[_0x2209('0x80')]())[_0x2209('0x55')](([_0x9bbbc6])=>le[_0x2209('0x91')](_0x9bbbc6));_0x16cddf['cells'][_0x2209('0xa3')]({'element':_0x567e6b,'attributes':_0x53c6e7[_0x2209('0x6b')]?Object[_0x2209('0x7e')](_0x53c6e7):null}),_0x877130&&_0x16cddf[_0x2209('0x7b')][_0x2209('0xa3')](_0x877130),_0x599a61&&_0x16cddf[_0x2209('0x9f')][_0x2209('0xa3')](_0x599a61);},{'priority':_0x2209('0x54')}),_0x41a5c4['on'](_0x2209('0x9'),(_0x74ec93,_0x2cf73c)=>{const [_0x1dff1d,_0x25a5ca={}]=_0x2cf73c;if(!_0x16cddf)return;const _0x55311e=_0x25a5ca['at']||0x0,_0x2ca8a7=_0x25a5ca[_0x2209('0x3b')]||0x1;_0x16cddf[_0x2209('0xa6')]=new Array(_0x2ca8a7)[_0x2209('0x59')](_0x55311e)[_0x2209('0x94')]((_0x1978b2,_0x59d7a2)=>_0x1978b2+_0x59d7a2);for(const {cell:_0x2de2aa}of _0x41a5c4['createTableWalker'](_0x1dff1d,{'startColumn':_0x55311e,'endColumn':_0x55311e+_0x2ca8a7-0x1}))_0x16cddf['columnInsertionRanges']['push'](_0x4f0249[_0x2209('0x8')][_0x2209('0x6f')](_0x2de2aa));},{'priority':_0x2209('0x63')}),_0x41a5c4['on']('insertRows',(_0x429760,_0x468f0e)=>{const [_0x5c8e81,_0x40f4f9={}]=_0x468f0e;if(!_0x16cddf)return;const _0x4a1225=_0x40f4f9['at']||0x0,_0x416589=_0x40f4f9[_0x2209('0xa5')]||0x1;_0x16cddf[_0x2209('0x3a')]=new Array(_0x416589)[_0x2209('0x59')](_0x4a1225)[_0x2209('0x94')]((_0x36bb26,_0x3e392b)=>_0x36bb26+_0x3e392b);for(const {cell:_0x2c1ad6}of _0x41a5c4[_0x2209('0x3')](_0x5c8e81,{'startRow':_0x4a1225,'endRow':_0x4a1225+_0x416589-0x1}))_0x16cddf[_0x2209('0x48')][_0x2209('0xa3')](_0x4f0249[_0x2209('0x8')][_0x2209('0x6f')](_0x2c1ad6));},{'priority':_0x2209('0x63')}),_0x29fa46[_0x2209('0x47')][_0x2209('0x77')](_0x3900c3=>{if(_0x3900c3['subType']&&_0x3900c3[_0x2209('0x1c')][_0x2209('0x45')](_0x2209('0xa8')))return _0x3900c3[_0x2209('0x1b')]?{}:{'type':_0x2209('0x31'),'content':_0x72daf2(_0x4f0249['locale'],_0x2209('0x7f'))};});const _0x5d6eb6=()=>!0x1;for(const _0x3474b4 of[_0x2209('0xa8'),_0x2209('0x26'),'tablePasteRow','tablePasteCell'])_0x29fa46[_0x2209('0x4f')][_0x2209('0x40')](_0x2209('0x31'),_0x3474b4,_0x2209('0x2a'),_0x5d6eb6),_0x29fa46['_suggestionFactory']['registerCustomCallback'](_0x2209('0xb'),_0x3474b4,_0x2209('0x2a'),_0x5d6eb6),_0x29fa46[_0x2209('0x4f')][_0x2209('0x40')]('formatBlock',_0x3474b4,_0x2209('0x2a'),_0x5d6eb6);_0x29fa46[_0x2209('0x4f')][_0x2209('0x40')](_0x2209('0x9e'),_0x2209('0x46'),_0x2209('0xa7'),_0x5d6eb6),_0x29fa46['_suggestionFactory'][_0x2209('0x40')](_0x2209('0x9e'),_0x2209('0x46'),_0x2209('0x0'),(_0x5052e0,_0x34757c,_0x3e16cd)=>{const _0x2e75a7=_0x5052e0[_0x2209('0x94')](_0x397060=>_0x397060['getContainedElement']())['filter'](_0x155f97=>_0x155f97),_0x4fa66e=new Map(_0x2e75a7[_0x2209('0x94')](_0x3f44c1=>[_0x3f44c1,null]));if(_0x16cddf)for(const {element:_0x843d12,attributes:_0x528d92}of _0x16cddf['cells'])_0x528d92&&_0x4fa66e[_0x2209('0x79')](_0x843d12,_0x528d92);else{if(_0x3e16cd&&_0x3e16cd[_0x2209('0x3f')])for(const [_0x5e5aba,_0x21375]of Object['entries'](_0x3e16cd[_0x2209('0x3f')])){const _0xe85dc=_0x4f0249[_0x2209('0x8')]['markers'][_0x2209('0x27')](_0x5e5aba),_0x211b54=_0xe85dc?_0xe85dc[_0x2209('0x64')]()['getContainedElement']():null;_0x211b54&&_0x4fa66e[_0x2209('0x79')](_0x211b54,_0x21375);}}_0x4f0249['model']['change'](_0xb7ef3=>{for(const [_0x24c228,_0x58218f]of _0x4fa66e)_0xb7ef3[_0x2209('0x60')]({...ae,..._0x58218f},_0x24c228);});});const _0x3343f5=(_0x58f0f7,_0x25c167)=>{_0x29fa46[_0x2209('0x4f')]['registerCustomCallback'](_0x58f0f7,'tablePaste',_0x25c167,(_0x18602f,_0x52f12e,_0xb4c106)=>{_0x4f0249[_0x2209('0x8')][_0x2209('0xc')](_0x25435f=>{const _0x41c269=[];for(const _0x1d8bd5 of _0x18602f){const _0x2989fd=_0x1d8bd5['start'][_0x2209('0x56')];_0x2989fd['is'](_0x2209('0x6'),_0x2209('0x95'))&&_0x41c269[_0x2209('0xa3')](_0x2989fd);}_0x29fa46[_0x2209('0x4f')][_0x2209('0xa1')](_0x58f0f7,null,_0x25c167)(_0x18602f,_0x52f12e,_0xb4c106);for(const _0x3f7c56 of _0x41c269)_0x2209('0x35')!=_0x3f7c56['root'][_0x2209('0x5')]&&_0x25435f[_0x2209('0x21')](_0x3f7c56);});});};_0x3343f5(_0x2209('0x31'),_0x2209('0x0')),_0x3343f5(_0x2209('0x31'),_0x2209('0xa7')),_0x3343f5(_0x2209('0xb'),'accept'),_0x3343f5(_0x2209('0xb'),_0x2209('0xa7')),_0x29fa46[_0x2209('0x4f')]['registerCustomCallback'](_0x2209('0x31'),_0x2209('0x86'),_0x2209('0xa7'),_0x2d1f00=>{const _0x4ead0d=_0x2d1f00['map'](_0x4eea5a=>_0x4eea5a[_0x2209('0x82')]()),_0xd75ef7=_0x4ead0d[0x0]['findAncestor'](_0x2209('0x6d')),{minRow:_0x1587a6,maxRow:_0x546040}=_0x8eddb6[_0x2209('0x8c')](_0x4ead0d);_0x41a5c4['removeRows'](_0xd75ef7,{'at':_0x1587a6,'rows':_0x546040-_0x1587a6+0x1});}),_0x29fa46[_0x2209('0x4f')][_0x2209('0x40')](_0x2209('0x31'),_0x2209('0x26'),'discard',_0x58cebb=>{const _0x4e6cdb=_0x58cebb['map'](_0x3f5875=>_0x3f5875['getContainedElement']()),_0x3c2a50=_0x4e6cdb[0x0][_0x2209('0x34')]('table'),{minColumn:_0x20dd1c,maxColumn:_0x362c87}=_0x8eddb6['_getCoordsForCells'](_0x4e6cdb);_0x41a5c4['removeColumns'](_0x3c2a50,{'at':_0x20dd1c,'columns':_0x362c87-_0x20dd1c+0x1});});const _0x1f6a23=(_0x4d85b6,_0x4fdfac)=>{if(!_0x4fdfac[_0x2209('0x1c')]||!_0x4fdfac[_0x2209('0x1c')]['startsWith']('tablePaste'))return;const _0x3e8e0f=_0x4fdfac[_0x2209('0x9b')][_0x2209('0x98')],_0x10446b=_0x29fa46['getSuggestions']()['filter'](_0xc692b0=>_0xc692b0['isInContent']&&_0xc692b0[_0x2209('0x9b')]&&_0xc692b0[_0x2209('0x9b')][_0x2209('0x98')]==_0x3e8e0f);_0x10446b['length']&&_0x4fdfac[_0x2209('0x53')]()[_0x2209('0x6b')]!=_0x10446b[_0x2209('0x6b')]&&_0x10446b[_0x2209('0x29')]((_0x4b925a,_0xea32f6)=>(_0x4b925a['next']=_0xea32f6,_0xea32f6[_0x2209('0x1b')]=_0x4b925a,_0xea32f6));};function _0x8cedc7(_0x29e436,_0x129397=!0x0){const {id:_0x281298}=_0x29fa46[_0x2209('0x4e')](_0x29e436[_0x2209('0x1a')]),_0xc4170b=['ck-suggestion-marker',_0x2209('0x69')],_0x12a407=_0x29fa46[_0x2209('0xa0')][_0x2209('0x91')](_0x29e436['markerName']);return _0x12a407&&_0xc4170b[_0x2209('0xa3')](_0x2209('0x20')),{'classes':_0xc4170b,'attributes':{'data-suggestion':_0x281298},'priority':_0x12a407&&_0x129397?0xbc2:0xbb8};}_0x29fa46['on'](_0x2209('0x5f'),_0x1f6a23,{'priority':'high'}),_0x29fa46['on'](_0x2209('0x33'),_0x1f6a23,{'priority':_0x2209('0x54')}),_0x4f0249[_0x2209('0x8')]['document'][_0x2209('0x43')](()=>{let _0x55fe01=!0x1;const _0x53219d=Array[_0x2209('0x2d')](_0x4f0249[_0x2209('0x8')][_0x2209('0x14')][_0x2209('0x7')][_0x2209('0x99')]());for(const {name:_0x2fe5ce,data:_0x3623f7}of _0x53219d){const {group:_0x48d177,type:_0x39f8c1,id:_0x1b21da}=_0x29fa46[_0x2209('0x4e')](_0x2fe5ce);if(_0x2209('0xa')!=_0x48d177||'deletion'!=_0x39f8c1||_0x3623f7[_0x2209('0x44')])continue;if(!_0x29fa46[_0x2209('0x5b')](_0x1b21da))continue;const _0x109fe8=_0x29fa46[_0x2209('0x7d')](_0x1b21da)['getRanges'](),_0x2b80aa=_0x4f0249['plugins']['get'](_0x2209('0x37'))['me'];for(const _0x1fefb4 of _0x29fa46['getSuggestions']()){if(!_0x1fefb4['isInContent']||_0x1fefb4[_0x2209('0x1e')]!=_0x2b80aa)continue;if(_0x2209('0x9e')!=_0x1fefb4[_0x2209('0x2f')]||_0x2209('0x46')!=_0x1fefb4['subType'])continue;if(_0x1fefb4[_0x2209('0x9c')]()[_0x2209('0xa4')](_0x4a695b=>_0x109fe8[_0x2209('0x52')](_0x540fc7=>_0x540fc7[_0x2209('0xe')](_0x4a695b,!0x0))))for(const _0x57347a of _0x1fefb4['getAllAdjacentSuggestions']())_0x57347a[_0x2209('0x58')]&&(_0x57347a[_0x2209('0xa7')](),_0x55fe01=!0x0);}}return _0x55fe01;}),_0x4f0249[_0x2209('0x8')][_0x2209('0x14')]['registerPostFixer'](_0x3c9af5=>{const _0x47d46f=_0x4f0249['commands'][_0x2209('0x27')](_0x2209('0x30'));if(!_0x47d46f||!_0x47d46f[_0x2209('0x76')][_0x2209('0x4d')](_0x3c9af5[_0x2209('0x57')]))return!0x1;let _0x6f5310=!0x1;const _0xf85758=_0x4f0249['plugins'][_0x2209('0x27')](_0x2209('0x37'))['me'],_0x424507=_0x4f0249[_0x2209('0x8')]['document']['differ'][_0x2209('0x6a')](),_0x37c5b7=Array['from'](_0x4f0249[_0x2209('0x8')]['document'][_0x2209('0x7')][_0x2209('0x99')]())[_0x2209('0x55')](({name:_0x3e164f,data:_0x157ad2})=>{const {group:_0x460858,subType:_0x48d7a1,authorId:_0x22ca35}=_0x29fa46[_0x2209('0x4e')](_0x3e164f);return _0x2209('0xa')==_0x460858&&'tablePaste'==_0x48d7a1&&_0x22ca35==_0xf85758['id']&&!_0x157ad2[_0x2209('0x44')];});for(const _0x563cd6 of _0x424507){if(_0x2209('0x8a')!=_0x563cd6['type']||'tableCellSuggestion'!=_0x563cd6[_0x2209('0x70')]||0x1!=_0x563cd6[_0x2209('0x6b')])continue;const _0x488b27=_0x3c9af5[_0x2209('0x92')](_0x563cd6[_0x2209('0x71')],_0x563cd6[_0x2209('0x71')][_0x2209('0x39')](0x1));if(!_0x37c5b7[_0x2209('0x13')](({data:_0x24b9ce})=>_0x24b9ce['newRange'][_0x2209('0x89')](_0x488b27)))for(const {name:_0x214697,data:_0x3ea116}of _0x37c5b7)if(_0x488b27['containsRange'](_0x3ea116[_0x2209('0xa2')])){_0x3c9af5[_0x2209('0x1d')](_0x214697,{'range':_0x488b27}),_0x6f5310=!0x0;break;}}return _0x6f5310;}),_0x4f0249[_0x2209('0x8')][_0x2209('0x14')][_0x2209('0x43')](_0x5147c3=>{let _0x4effdd=!0x1;const _0x58b299=_0x4f0249[_0x2209('0x2c')][_0x2209('0x27')](_0x2209('0x37'))['me'],_0x49fb97=_0x29fa46[_0x2209('0x3e')]()['filter'](_0x25c90e=>_0x25c90e[_0x2209('0x58')]&&_0x25c90e[_0x2209('0x1e')]==_0x58b299),_0x455daf=new Set(),_0x538e34=new Set();for(const _0x2d0001 of _0x49fb97)if(_0x2209('0xa8')==_0x2d0001[_0x2209('0x1c')])for(const _0x59bc08 of _0x2d0001['getMarkers']()){const _0xc92c9f=_0x59bc08['getRange']()[_0x2209('0x82')]();if(_0xc92c9f){if(_0xc92c9f['is'](_0x2209('0x6'),_0x2209('0x95'))&&ce(_0xc92c9f)){_0x2d0001[_0x2209('0x96')](_0x59bc08['name']),_0x455daf['add'](_0xc92c9f),_0x4effdd=!0x0;const _0x127836=_0xc92c9f[_0x2209('0x66')],_0x52a20c=_0xc92c9f[_0x2209('0x4')],_0x271740=_0x127836&&_0x127836['is']('element','tableCellSuggestion'),_0x27971a=_0x52a20c&&_0x52a20c['is'](_0x2209('0x6'),_0x2209('0x95'));_0x271740&&!_0x455daf[_0x2209('0x4d')](_0x127836)&&_0x538e34[_0x2209('0xd')](_0x127836),_0x27971a&&!_0x455daf[_0x2209('0x4d')](_0x52a20c)&&_0x538e34[_0x2209('0xd')](_0x52a20c);}else _0xc92c9f['is'](_0x2209('0x6'),_0x2209('0x90'))&&_0xc92c9f[_0x2209('0x50')]&&(_0x2d0001['removeMarker'](_0x59bc08[_0x2209('0x70')]),_0x4effdd=!0x0);}}else{if(_0x2209('0x46')==_0x2d0001[_0x2209('0x1c')]){if(!_0x2d0001['attributes']||!_0x2d0001[_0x2209('0x9b')][_0x2209('0x98')])continue;const _0x3b7f89=_0x2d0001[_0x2209('0x9b')]['markerAttributes'];if(_0x3b7f89&&Object[_0x2209('0x36')](_0x3b7f89)[_0x2209('0x6b')])continue;const _0x57bb5c=_0x2d0001[_0x2209('0x9b')]['tablePasteChainId'];let _0x22ebe6=!0x0,_0x3a4b35=!0x0;for(const _0x29a389 of _0x49fb97)if(_0x29a389[_0x2209('0x1c')]&&_0x29a389[_0x2209('0x1c')][_0x2209('0x45')](_0x2209('0xa8'))){if(!_0x29a389['attributes']['tablePasteChainId']){_0x3a4b35=!0x1;break;}if(_0x29a389['id']!=_0x2d0001['id']&&_0x29a389[_0x2209('0x9b')][_0x2209('0x98')]==_0x57bb5c){_0x22ebe6=!0x1;break;}}_0x3a4b35&&_0x22ebe6&&(_0x2d0001[_0x2209('0x97')](),_0x4effdd=!0x0);}}for(const _0x1a3242 of _0x455daf)_0x5147c3[_0x2209('0x49')](_0x1a3242);for(const _0xf7f3c1 of _0x538e34)_0x5147c3[_0x2209('0x21')](_0xf7f3c1);return _0x4effdd;}),_0x4f0249[_0x2209('0x41')][_0x2209('0x16')](_0x2209('0x9d'))[_0x2209('0x3c')]({'model':_0x2209('0x88'),'view':(_0x2cf849,_0x550520)=>_0x8cedc7(_0x2cf849),'converterPriority':'high'}),_0x4f0249[_0x2209('0x41')]['for'](_0x2209('0x3d'))[_0x2209('0x3c')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e08dc,_0x5df712)=>_0x5df712[_0x2209('0x81')][_0x2209('0x5c')]?_0x8cedc7(_0x1e08dc,!0x1):null,'converterPriority':_0x2209('0x54')});const _0x1b490f=_0x4f0249[_0x2209('0x9a')]['view'];this[_0x2209('0x6c')](_0x1b490f[_0x2209('0x14')],_0x2209('0x8f'),(_0x1867cd,_0x4430a4)=>{const _0x1179d0=[];for(const _0x45f759 of _0x1b490f['createRangeIn'](_0x4430a4['content'])[_0x2209('0xf')]())_0x45f759['is'](_0x2209('0x6'),_0x2209('0x32'))&&_0x1179d0[_0x2209('0xa3')](_0x45f759);_0x1b490f[_0x2209('0xc')](_0x364038=>{for(const _0x3bb6e1 of _0x1179d0)_0x364038[_0x2209('0x22')](_0x364038[_0x2209('0x4a')](_0x3bb6e1),_0x364038[_0x2209('0x78')](_0x3bb6e1)),_0x364038[_0x2209('0x49')](_0x3bb6e1);});});}}function ce(_0x9ab764){if(_0x9ab764[_0x2209('0x50')])return!0x0;const _0x589e8e=_0x9ab764['getChild'](0x0);return _0x589e8e['is'](_0x2209('0x6'),_0x2209('0x90'))&&_0x589e8e[_0x2209('0x50')];}function fe(_0x57a5ca,_0x99a23d={},_0xe21cad){for(const {isAnchor:_0x112dc9,cellHeight:_0x40be4c,cellWidth:_0x10f845}of _0xe21cad[_0x2209('0x3')](_0x57a5ca,{'includeAllSlots':!0x0,..._0x99a23d}))if(!_0x112dc9||0x1!=_0x40be4c||0x1!=_0x10f845)return!0x1;return!0x0;}
|
|
23
|
+
const _0x9a74=['markerAttributes','tablePasteChainId','unwrap','deletionRanges','high','attributes','getMarkers','tablePasteColumn','forceDefaultExecution','cell','Users','_tablePostFixingSubtypes','insertRows','accept','newRange','tableCell','tablePaste','tableCellVerticalAlignment','suggestion','differ','registerCustomCallback','columnInsertionRanges','author','document','createTableWalker','markerToHighlight','tablePasteRow','isEmpty','formatBlock','low','_isForcedDefaultExecutionBlock','findAncestor','element','ck-suggestion-marker-insertion','isEqual','columnInsertionIndexes','map','rows','endRow','getColumns','registerPostFixer','_suggestionFactory','push','commands','tableCellBorderWidth','TableClipboard','register','markers','from','last','getAllAdjacentSuggestions','subType','getRowIndexes','dataDowncast','createRangeIn','getChangedMarkers','tableCellHorizontalAlignment','plugins','requires','suggestionUnloaded','first','getSuggestion','locale','insert','elementToElement','getChildren','conversion','length','rowInsertionIndexes','view','getSuggestions','tablePasteCell','return','markerName','markMultiRangeInsertion','includes','end','getChild','redo','wrap','table','every','change','removeRows','deletion','rowInsertionRanges','getRange','type','tableCellBorderStyle','fromEntries','options','getShiftedBy','activeMarkers','TableUtils','some','editor','getAttributes','hasSuggestion','position','get','removeMarker','getColumnIndexes','model','getItems','createRangeOn','insertion','startsWith','tableCellBorderColor','_getCoordsForCells','removeColumns','selection','column','_splitMarkerName','suggestion-td','getChanges','discard','find','nextSibling','insertColumns','removeMarkers','next','move','endColumn','tableCellBackgroundColor','add','*Replace\x20table\x20cells*','getSelectionAffectedTableCells','name','reduce','join','markMultiRangeBlockFormat','cells','getRanges','filter','getContainedElement','createPositionBefore','batch','createElement','keys','_descriptionFactory','afterInit','for','$graveyard','oldRange','remove','getRows','insertContent','schema','ck-suggestion-marker--active','containsRange','listenTo','stop','suggestion:formatBlock:tablePasteCell','suggestionLoaded','tableCellSuggestion','isInContent','_createdBatches','getTableIfOnlyTableInContent','trackChanges','has','showSuggestionHighlights'];(function(_0x3a7a31,_0x9a74f4){const _0x373f90=function(_0x4eb29d){while(--_0x4eb29d){_0x3a7a31['push'](_0x3a7a31['shift']());}};_0x373f90(++_0x9a74f4);}(_0x9a74,0x159));const _0x373f=function(_0x3a7a31,_0x9a74f4){_0x3a7a31=_0x3a7a31-0x0;let _0x373f90=_0x9a74[_0x3a7a31];return _0x373f90;};import{getTranslation as _0x34c3ad}from'../utils/common-translations';import{Plugin as _0x249369}from'ckeditor5/src/core';import{uid as _0xc3f4ce,priorities as _0x365b75}from'ckeditor5/src/utils';import _0xeec717 from'./table';const le=[_0x373f('0x15'),_0x373f('0x54'),_0x373f('0x41'),_0x373f('0x21'),_0x373f('0x9b'),_0x373f('0x64'),'tableCellPadding'],ae=Object[_0x373f('0x42')](le[_0x373f('0xd')](_0x149776=>[_0x149776,null]));export default class wt extends _0x249369{static get[_0x373f('0x23')](){return[_0xeec717];}[_0x373f('0x75')](){const _0xb0b07=this['editor'];if(!_0xb0b07[_0x373f('0x22')][_0x373f('0x88')]('TableClipboard'))return;const _0x7be3af=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')]('TrackChangesEditing'),_0x595255=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')](_0x373f('0x46')),_0x54f627=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')](_0xeec717),_0x523add=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')]('TableClipboard');_0x54f627[_0x373f('0x95')][_0x373f('0x13')](_0x373f('0x3'),'tablePasteColumn'),_0xb0b07['model'][_0x373f('0x7c')][_0x373f('0x17')](_0x373f('0x83'),{'allowIn':_0x373f('0x99'),'allowContentOf':'tableCell','isLimit':!0x0}),_0xb0b07[_0x373f('0x2b')][_0x373f('0x29')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5d549c=null;_0xb0b07[_0x373f('0x4f')]['on'](_0x373f('0x7b'),(_0x3ca2c9,_0x28f369)=>{const [_0x26f2bd,_0x208c40]=_0x28f369,_0x5ecd37=_0x28f369[_0x28f369[_0x373f('0x2c')]-0x1];_0x5ecd37&&_0x5ecd37[_0x373f('0x92')]||_0x7be3af[_0x373f('0x7')]||this[_0x373f('0x48')]['commands']['get'](_0x373f('0x87'))['value']&&function(_0x406b78,_0x540184,_0x28ad51,_0x134613,_0x18d56b){if(_0x540184&&!_0x540184['is']('documentSelection'))return!0x1;const _0x25109f=_0x18d56b[_0x373f('0x86')](_0x406b78,_0x28ad51);if(!_0x25109f||!fe(_0x25109f,void 0x0,_0x134613))return!0x1;const _0x12d126=_0x134613[_0x373f('0x67')](_0x28ad51[_0x373f('0x0')][_0x373f('0x57')]);if(!_0x12d126[_0x373f('0x2c')])return!0x1;const _0x4dafe5=_0x12d126[0x0][_0x373f('0x8')]('table'),_0x549ff8=_0x134613[_0x373f('0x1d')](_0x12d126),_0x3a1c59=_0x134613[_0x373f('0x4e')](_0x12d126),_0x252ac7={'startRow':_0x549ff8['first'],'endRow':_0x549ff8[_0x373f('0x1a')],'startColumn':_0x3a1c59[_0x373f('0x25')],'endColumn':_0x3a1c59['last']};return 0x1==_0x12d126[_0x373f('0x2c')]&&(_0x252ac7[_0x373f('0xf')]+=_0x134613[_0x373f('0x7a')](_0x25109f)-0x1,_0x252ac7[_0x373f('0x63')]+=_0x134613[_0x373f('0x10')](_0x25109f)-0x1),fe(_0x4dafe5,_0x252ac7,_0x134613);}(_0x26f2bd,_0x208c40,_0xb0b07[_0x373f('0x4f')],_0x595255,_0x523add)&&(_0x3ca2c9[_0x373f('0x80')](),_0x5d549c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb0b07[_0x373f('0x4f')][_0x373f('0x3b')](()=>{_0xb0b07['model'][_0x373f('0x7b')](_0x28f369[0x0],_0x28f369[0x1],_0x28f369[0x2],{'forceDefaultExecution':!0x0});const _0x38a548=_0xc3f4ce(),{rowInsertionRanges:_0x2f002a,columnInsertionRanges:_0x25c57d,insertionRanges:_0x1ab9a1,deletionRanges:_0x11388f,cells:_0x450c06}=_0x5d549c;_0x2f002a[_0x373f('0x2c')]&&_0x7be3af[_0x373f('0x33')](_0x2f002a,_0x373f('0x3'),{'tablePasteChainId':_0x38a548}),_0x25c57d['length']&&_0x7be3af[_0x373f('0x33')](_0x25c57d,'tablePasteColumn',{'tablePasteChainId':_0x38a548}),_0x1ab9a1[_0x373f('0x2c')]&&_0x7be3af[_0x373f('0x33')](_0x1ab9a1,_0x373f('0x9a'),{'tablePasteChainId':_0x38a548,'skipNestingCheck':!0x0}),_0x11388f[_0x373f('0x2c')]&&_0x7be3af['markMultiRangeDeletion'](_0x11388f,_0x373f('0x9a'),{'tablePasteChainId':_0x38a548,'skipNestingCheck':!0x0});const _0x114462=_0x7be3af[_0x373f('0x6b')](_0x450c06['map'](({element:_0x481f91})=>_0x481f91),{'formatGroupId':_0xc3f4ce()},[],_0x373f('0x30'),{'tablePasteChainId':_0x38a548});if(_0x114462){const _0x54e85d=_0x114462[_0x373f('0x90')](),_0x1f2c52=[];for(const {element:_0x5336d6,attributes:_0x5aa605}of _0x450c06){if(!_0x5aa605)continue;const _0x230a45=_0xb0b07[_0x373f('0x4f')][_0x373f('0x51')](_0x5336d6),_0x4802f6=_0x54e85d[_0x373f('0x5d')](_0x3f602b=>_0x3f602b[_0x373f('0x3f')]()[_0x373f('0xb')](_0x230a45));_0x4802f6&&_0x1f2c52[_0x373f('0x13')]([_0x4802f6[_0x373f('0x68')],_0x5aa605]);}_0x1f2c52[_0x373f('0x2c')]&&_0x114462['setAttribute'](_0x373f('0x8a'),Object[_0x373f('0x42')](_0x1f2c52));}_0x5d549c=null;}));},{'priority':_0x365b75[_0x373f('0x8e')]+0xa}),_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')](_0x373f('0x16'))['on']('_replaceTableSlotCell',(_0x34a0bd,_0x18f80c)=>{const [_0x3a38fc,_0x58ac8a,,_0x19a12d]=_0x18f80c;if(!_0x5d549c)return;_0x34a0bd[_0x373f('0x80')]();const _0xe758f0=_0x3a38fc[_0x373f('0x93')],_0x309636=_0x58ac8a,_0x346e8e=ce(_0xe758f0),_0x1870f4=ce(_0x309636);_0x34a0bd[_0x373f('0x31')]=_0xe758f0;let _0x582dff=null,_0xae0874=null;if(_0x1870f4||_0x346e8e){if(_0x346e8e&&!_0x1870f4){_0x19a12d[_0x373f('0x79')](_0xe758f0[_0x373f('0x36')](0x0));for(const _0xbf8ed9 of Array['from'](_0x309636[_0x373f('0x2a')]()))_0x19a12d[_0x373f('0x28')](_0xbf8ed9,_0xe758f0,_0x373f('0x35'));const _0x401feb=_0x5d549c[_0x373f('0x2d')][_0x373f('0x34')](_0x3a38fc['row']),_0x5073bb=_0x5d549c[_0x373f('0xc')][_0x373f('0x34')](_0x3a38fc[_0x373f('0x58')]);_0x401feb||_0x5073bb||(_0x582dff=_0x19a12d[_0x373f('0x1f')](_0xe758f0));}else _0x1870f4&&!_0x346e8e&&(_0xae0874=_0x19a12d[_0x373f('0x1f')](_0xe758f0));}else{const _0x2c00f0=_0x19a12d[_0x373f('0x72')](_0x373f('0x83')),_0x2bab0c=_0x19a12d['createElement'](_0x373f('0x83'));_0x19a12d[_0x373f('0x38')](_0x19a12d['createRangeIn'](_0xe758f0),_0x2bab0c),_0x19a12d['insert'](_0x2c00f0,_0xe758f0,0x0);for(const _0x5d683e of Array[_0x373f('0x19')](_0x309636[_0x373f('0x2a')]()))_0x19a12d[_0x373f('0x28')](_0x5d683e,_0x2c00f0,_0x373f('0x35'));_0x582dff=_0x19a12d[_0x373f('0x51')](_0x2c00f0),_0xae0874=_0x19a12d[_0x373f('0x51')](_0x2bab0c);}const _0x15e9bc=Array[_0x373f('0x19')](_0x309636[_0x373f('0x49')]())[_0x373f('0x6e')](([_0x4c927b])=>le[_0x373f('0x34')](_0x4c927b));_0x5d549c[_0x373f('0x6c')][_0x373f('0x13')]({'element':_0xe758f0,'attributes':_0x15e9bc['length']?Object[_0x373f('0x42')](_0x15e9bc):null}),_0x582dff&&_0x5d549c['insertionRanges'][_0x373f('0x13')](_0x582dff),_0xae0874&&_0x5d549c[_0x373f('0x8d')][_0x373f('0x13')](_0xae0874);},{'priority':'high'}),_0x595255['on'](_0x373f('0x5f'),(_0x2168d9,_0x3249f4)=>{const [_0x51b878,_0x503a2f={}]=_0x3249f4;if(!_0x5d549c)return;const _0x36bd3a=_0x503a2f['at']||0x0,_0x3e73da=_0x503a2f['columns']||0x1;_0x5d549c[_0x373f('0xc')]=new Array(_0x3e73da)['fill'](_0x36bd3a)[_0x373f('0xd')]((_0x1579ad,_0x236eb6)=>_0x1579ad+_0x236eb6);for(const {cell:_0x1816b2}of _0x595255['createTableWalker'](_0x51b878,{'startColumn':_0x36bd3a,'endColumn':_0x36bd3a+_0x3e73da-0x1}))_0x5d549c[_0x373f('0x9f')][_0x373f('0x13')](_0xb0b07[_0x373f('0x4f')][_0x373f('0x51')](_0x1816b2));},{'priority':_0x373f('0x6')}),_0x595255['on'](_0x373f('0x96'),(_0x428047,_0x1d0536)=>{const [_0x1b3cb9,_0x15f458={}]=_0x1d0536;if(!_0x5d549c)return;const _0x472abd=_0x15f458['at']||0x0,_0x20d03d=_0x15f458[_0x373f('0xe')]||0x1;_0x5d549c[_0x373f('0x2d')]=new Array(_0x20d03d)['fill'](_0x472abd)['map']((_0x4c4d8e,_0xe3629c)=>_0x4c4d8e+_0xe3629c);for(const {cell:_0xe653d9}of _0x595255[_0x373f('0x1')](_0x1b3cb9,{'startRow':_0x472abd,'endRow':_0x472abd+_0x20d03d-0x1}))_0x5d549c[_0x373f('0x3e')][_0x373f('0x13')](_0xb0b07[_0x373f('0x4f')][_0x373f('0x51')](_0xe653d9));},{'priority':'low'}),_0x7be3af[_0x373f('0x74')]['registerDescriptionCallback'](_0x142499=>{if(_0x142499['subType']&&_0x142499['subType'][_0x373f('0x53')](_0x373f('0x9a')))return _0x142499['previous']?{}:{'type':_0x373f('0x52'),'content':_0x34c3ad(_0xb0b07[_0x373f('0x27')],_0x373f('0x66'))};});const _0xd82c00=()=>!0x1;for(const _0x4decc7 of[_0x373f('0x9a'),'tablePasteColumn',_0x373f('0x3'),'tablePasteCell'])_0x7be3af['_suggestionFactory']['registerCustomCallback'](_0x373f('0x52'),_0x4decc7,_0x373f('0x6a'),_0xd82c00),_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')](_0x373f('0x3d'),_0x4decc7,_0x373f('0x6a'),_0xd82c00),_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')](_0x373f('0x5'),_0x4decc7,_0x373f('0x6a'),_0xd82c00);_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')]('formatBlock','tablePasteCell',_0x373f('0x5c'),_0xd82c00),_0x7be3af['_suggestionFactory'][_0x373f('0x9e')]('formatBlock',_0x373f('0x30'),_0x373f('0x97'),(_0x5547ce,_0x4ff409,_0x3076cd)=>{const _0x277b7e=_0x5547ce[_0x373f('0xd')](_0x5197b8=>_0x5197b8[_0x373f('0x6f')]())[_0x373f('0x6e')](_0x112d65=>_0x112d65),_0x2ee9af=new Map(_0x277b7e[_0x373f('0xd')](_0x13a628=>[_0x13a628,null]));if(_0x5d549c)for(const {element:_0x375be4,attributes:_0x24c83f}of _0x5d549c[_0x373f('0x6c')])_0x24c83f&&_0x2ee9af['set'](_0x375be4,_0x24c83f);else{if(_0x3076cd&&_0x3076cd[_0x373f('0x8a')])for(const [_0x2c869e,_0x16d552]of Object['entries'](_0x3076cd[_0x373f('0x8a')])){const _0x3e2e8b=_0xb0b07[_0x373f('0x4f')][_0x373f('0x18')]['get'](_0x2c869e),_0x3732ed=_0x3e2e8b?_0x3e2e8b['getRange']()[_0x373f('0x6f')]():null;_0x3732ed&&_0x2ee9af['set'](_0x3732ed,_0x16d552);}}_0xb0b07[_0x373f('0x4f')][_0x373f('0x3b')](_0x29ff1a=>{for(const [_0x40e726,_0x22d134]of _0x2ee9af)_0x29ff1a['setAttributes']({...ae,..._0x22d134},_0x40e726);});});const _0x3af0e1=(_0x5ed349,_0x41d0c9)=>{_0x7be3af[_0x373f('0x12')]['registerCustomCallback'](_0x5ed349,_0x373f('0x9a'),_0x41d0c9,(_0xf1e29e,_0x26e56b,_0x30aabd)=>{_0xb0b07[_0x373f('0x4f')][_0x373f('0x3b')](_0x46681d=>{const _0x3ca1b5=[];for(const _0x55c7a5 of _0xf1e29e){const _0x16958f=_0x55c7a5['start']['nodeAfter'];_0x16958f['is']('element',_0x373f('0x83'))&&_0x3ca1b5['push'](_0x16958f);}_0x7be3af[_0x373f('0x12')]['getSuggestionCallback'](_0x5ed349,null,_0x41d0c9)(_0xf1e29e,_0x26e56b,_0x30aabd);for(const _0x4a0a3e of _0x3ca1b5)_0x373f('0x77')!=_0x4a0a3e['root']['rootName']&&_0x46681d[_0x373f('0x8c')](_0x4a0a3e);});});};_0x3af0e1('insertion',_0x373f('0x97')),_0x3af0e1(_0x373f('0x52'),_0x373f('0x5c')),_0x3af0e1(_0x373f('0x3d'),_0x373f('0x97')),_0x3af0e1(_0x373f('0x3d'),_0x373f('0x5c')),_0x7be3af[_0x373f('0x12')][_0x373f('0x9e')](_0x373f('0x52'),_0x373f('0x3'),'discard',_0x998953=>{const _0x91512e=_0x998953['map'](_0xf5ce57=>_0xf5ce57[_0x373f('0x6f')]()),_0x4309ab=_0x91512e[0x0][_0x373f('0x8')](_0x373f('0x39')),{minRow:_0x292d54,maxRow:_0x17b4b0}=_0x54f627[_0x373f('0x55')](_0x91512e);_0x595255[_0x373f('0x3c')](_0x4309ab,{'at':_0x292d54,'rows':_0x17b4b0-_0x292d54+0x1});}),_0x7be3af['_suggestionFactory'][_0x373f('0x9e')]('insertion',_0x373f('0x91'),_0x373f('0x5c'),_0x31baf8=>{const _0x33d2a9=_0x31baf8[_0x373f('0xd')](_0x269430=>_0x269430[_0x373f('0x6f')]()),_0x9aceb5=_0x33d2a9[0x0]['findAncestor'](_0x373f('0x39')),{minColumn:_0x265719,maxColumn:_0x10d7a3}=_0x54f627[_0x373f('0x55')](_0x33d2a9);_0x595255[_0x373f('0x56')](_0x9aceb5,{'at':_0x265719,'columns':_0x10d7a3-_0x265719+0x1});});const _0xbc0bf9=(_0x1e8714,_0x113327)=>{if(!_0x113327[_0x373f('0x1c')]||!_0x113327[_0x373f('0x1c')][_0x373f('0x53')](_0x373f('0x9a')))return;const _0x895f52=_0x113327[_0x373f('0x8f')][_0x373f('0x8b')],_0x53f4fc=_0x7be3af[_0x373f('0x2f')]()[_0x373f('0x6e')](_0x59b6f0=>_0x59b6f0[_0x373f('0x84')]&&_0x59b6f0['attributes']&&_0x59b6f0[_0x373f('0x8f')][_0x373f('0x8b')]==_0x895f52);_0x53f4fc[_0x373f('0x2c')]&&_0x113327[_0x373f('0x1b')]()[_0x373f('0x2c')]!=_0x53f4fc[_0x373f('0x2c')]&&_0x53f4fc[_0x373f('0x69')]((_0x58415d,_0x1472eb)=>(_0x58415d[_0x373f('0x61')]=_0x1472eb,_0x1472eb['previous']=_0x58415d,_0x1472eb));};function _0x6b9c65(_0x4ed7e0,_0xfc4f5=!0x0){const {id:_0x49615c}=_0x7be3af[_0x373f('0x59')](_0x4ed7e0[_0x373f('0x32')]),_0x2c8f98=['ck-suggestion-marker',_0x373f('0xa')],_0x50fe7c=_0x7be3af[_0x373f('0x45')]['includes'](_0x4ed7e0[_0x373f('0x32')]);return _0x50fe7c&&_0x2c8f98[_0x373f('0x13')](_0x373f('0x7d')),{'classes':_0x2c8f98,'attributes':{'data-suggestion':_0x49615c},'priority':_0x50fe7c&&_0xfc4f5?0xbc2:0xbb8};}_0x7be3af['on'](_0x373f('0x82'),_0xbc0bf9,{'priority':_0x373f('0x8e')}),_0x7be3af['on'](_0x373f('0x24'),_0xbc0bf9,{'priority':'high'}),_0xb0b07[_0x373f('0x4f')][_0x373f('0x0')][_0x373f('0x11')](()=>{let _0xed4e20=!0x1;const _0x5ec9ef=Array[_0x373f('0x19')](_0xb0b07['model'][_0x373f('0x0')][_0x373f('0x9d')][_0x373f('0x20')]());for(const {name:_0x4dd123,data:_0x3c2bc5}of _0x5ec9ef){const {group:_0x5408ed,type:_0x4e9b41,id:_0x56b5d2}=_0x7be3af[_0x373f('0x59')](_0x4dd123);if('suggestion'!=_0x5408ed||'deletion'!=_0x4e9b41||_0x3c2bc5[_0x373f('0x78')])continue;if(!_0x7be3af[_0x373f('0x4a')](_0x56b5d2))continue;const _0x4feea7=_0x7be3af[_0x373f('0x26')](_0x56b5d2)[_0x373f('0x6d')](),_0x1f782c=_0xb0b07[_0x373f('0x22')][_0x373f('0x4c')]('Users')['me'];for(const _0x14612d of _0x7be3af['getSuggestions']()){if(!_0x14612d[_0x373f('0x84')]||_0x14612d[_0x373f('0xa0')]!=_0x1f782c)continue;if(_0x373f('0x5')!=_0x14612d[_0x373f('0x40')]||_0x373f('0x30')!=_0x14612d[_0x373f('0x1c')])continue;if(_0x14612d[_0x373f('0x6d')]()[_0x373f('0x3a')](_0x35d35b=>_0x4feea7[_0x373f('0x47')](_0xf95373=>_0xf95373[_0x373f('0x7e')](_0x35d35b,!0x0))))for(const _0x4971cf of _0x14612d[_0x373f('0x1b')]())_0x4971cf[_0x373f('0x84')]&&(_0x4971cf[_0x373f('0x5c')](),_0xed4e20=!0x0);}}return _0xed4e20;}),_0xb0b07[_0x373f('0x4f')][_0x373f('0x0')][_0x373f('0x11')](_0x2d34c0=>{const _0x1ebb33=_0xb0b07[_0x373f('0x14')][_0x373f('0x4c')](_0x373f('0x37'));if(!_0x1ebb33||!_0x1ebb33[_0x373f('0x85')][_0x373f('0x88')](_0x2d34c0[_0x373f('0x71')]))return!0x1;let _0x289d44=!0x1;const _0x2de3b4=_0xb0b07['plugins'][_0x373f('0x4c')](_0x373f('0x94'))['me'],_0x53dc2b=_0xb0b07[_0x373f('0x4f')][_0x373f('0x0')][_0x373f('0x9d')][_0x373f('0x5b')](),_0x3e467b=Array[_0x373f('0x19')](_0xb0b07['model'][_0x373f('0x0')][_0x373f('0x9d')][_0x373f('0x20')]())[_0x373f('0x6e')](({name:_0x2cca88,data:_0x4f2247})=>{const {group:_0x48a26d,subType:_0xcf32d5,authorId:_0x47a426}=_0x7be3af[_0x373f('0x59')](_0x2cca88);return _0x373f('0x9c')==_0x48a26d&&_0x373f('0x9a')==_0xcf32d5&&_0x47a426==_0x2de3b4['id']&&!_0x4f2247[_0x373f('0x78')];});for(const _0x451268 of _0x53dc2b){if(_0x373f('0x28')!=_0x451268[_0x373f('0x40')]||_0x373f('0x83')!=_0x451268[_0x373f('0x68')]||0x1!=_0x451268['length'])continue;const _0x40f937=_0x2d34c0['createRange'](_0x451268[_0x373f('0x4b')],_0x451268[_0x373f('0x4b')][_0x373f('0x44')](0x1));if(!_0x3e467b['find'](({data:_0x40b8e9})=>_0x40b8e9[_0x373f('0x98')][_0x373f('0xb')](_0x40f937)))for(const {name:_0x2baf92,data:_0x1f90ce}of _0x3e467b)if(_0x40f937[_0x373f('0x7e')](_0x1f90ce[_0x373f('0x98')])){_0x2d34c0['updateMarker'](_0x2baf92,{'range':_0x40f937}),_0x289d44=!0x0;break;}}return _0x289d44;}),_0xb0b07['model'][_0x373f('0x0')][_0x373f('0x11')](_0x3015e8=>{let _0xbd5528=!0x1;const _0x2dd6d6=_0xb0b07['plugins'][_0x373f('0x4c')](_0x373f('0x94'))['me'],_0x352a38=_0x7be3af['getSuggestions']()[_0x373f('0x6e')](_0x2c5d9b=>_0x2c5d9b[_0x373f('0x84')]&&_0x2c5d9b[_0x373f('0xa0')]==_0x2dd6d6),_0x125d10=new Set(),_0x3fda72=new Set();for(const _0x234d4c of _0x352a38)if(_0x373f('0x9a')==_0x234d4c[_0x373f('0x1c')])for(const _0x59de88 of _0x234d4c[_0x373f('0x90')]()){const _0x5b9154=_0x59de88[_0x373f('0x3f')]()[_0x373f('0x6f')]();if(_0x5b9154){if(_0x5b9154['is'](_0x373f('0x9'),_0x373f('0x83'))&&ce(_0x5b9154)){_0x234d4c['removeMarker'](_0x59de88[_0x373f('0x68')]),_0x125d10[_0x373f('0x65')](_0x5b9154),_0xbd5528=!0x0;const _0x2ebeee=_0x5b9154[_0x373f('0x5e')],_0x45ac8a=_0x5b9154['previousSibling'],_0x36af02=_0x2ebeee&&_0x2ebeee['is'](_0x373f('0x9'),_0x373f('0x83')),_0x561ea2=_0x45ac8a&&_0x45ac8a['is'](_0x373f('0x9'),_0x373f('0x83'));_0x36af02&&!_0x125d10[_0x373f('0x88')](_0x2ebeee)&&_0x3fda72[_0x373f('0x65')](_0x2ebeee),_0x561ea2&&!_0x125d10['has'](_0x45ac8a)&&_0x3fda72[_0x373f('0x65')](_0x45ac8a);}else _0x5b9154['is']('element','paragraph')&&_0x5b9154[_0x373f('0x4')]&&(_0x234d4c[_0x373f('0x4d')](_0x59de88[_0x373f('0x68')]),_0xbd5528=!0x0);}}else{if(_0x373f('0x30')==_0x234d4c[_0x373f('0x1c')]){if(!_0x234d4c[_0x373f('0x8f')]||!_0x234d4c[_0x373f('0x8f')][_0x373f('0x8b')])continue;const _0x24cfb5=_0x234d4c[_0x373f('0x8f')][_0x373f('0x8a')];if(_0x24cfb5&&Object[_0x373f('0x73')](_0x24cfb5)[_0x373f('0x2c')])continue;const _0xb802c3=_0x234d4c['attributes'][_0x373f('0x8b')];let _0x4d5561=!0x0,_0x2da9b7=!0x0;for(const _0x5b3461 of _0x352a38)if(_0x5b3461['subType']&&_0x5b3461[_0x373f('0x1c')][_0x373f('0x53')]('tablePaste')){if(!_0x5b3461[_0x373f('0x8f')][_0x373f('0x8b')]){_0x2da9b7=!0x1;break;}if(_0x5b3461['id']!=_0x234d4c['id']&&_0x5b3461[_0x373f('0x8f')][_0x373f('0x8b')]==_0xb802c3){_0x4d5561=!0x1;break;}}_0x2da9b7&&_0x4d5561&&(_0x234d4c[_0x373f('0x60')](),_0xbd5528=!0x0);}}for(const _0x35aaff of _0x125d10)_0x3015e8['remove'](_0x35aaff);for(const _0x31581b of _0x3fda72)_0x3015e8[_0x373f('0x8c')](_0x31581b);return _0xbd5528;}),_0xb0b07[_0x373f('0x2b')][_0x373f('0x76')]('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4441f8,_0x3ce024)=>_0x6b9c65(_0x4441f8),'converterPriority':'high'}),_0xb0b07['conversion'][_0x373f('0x76')](_0x373f('0x1e'))[_0x373f('0x2')]({'model':_0x373f('0x81'),'view':(_0x5bb9de,_0x4f1636)=>_0x4f1636[_0x373f('0x43')][_0x373f('0x89')]?_0x6b9c65(_0x5bb9de,!0x1):null,'converterPriority':_0x373f('0x8e')});const _0x270f9a=_0xb0b07['editing'][_0x373f('0x2e')];this[_0x373f('0x7f')](_0x270f9a[_0x373f('0x0')],'clipboardOutput',(_0x49e9e3,_0x55970d)=>{const _0x1d1543=[];for(const _0x308a75 of _0x270f9a[_0x373f('0x1f')](_0x55970d['content'])[_0x373f('0x50')]())_0x308a75['is'](_0x373f('0x9'),_0x373f('0x5a'))&&_0x1d1543[_0x373f('0x13')](_0x308a75);_0x270f9a[_0x373f('0x3b')](_0x155199=>{for(const _0x196bd5 of _0x1d1543)_0x155199[_0x373f('0x62')](_0x155199['createRangeIn'](_0x196bd5),_0x155199[_0x373f('0x70')](_0x196bd5)),_0x155199[_0x373f('0x79')](_0x196bd5);});});}}function ce(_0x1eeb76){if(_0x1eeb76[_0x373f('0x4')])return!0x0;const _0x21c8a8=_0x1eeb76['getChild'](0x0);return _0x21c8a8['is'](_0x373f('0x9'),'paragraph')&&_0x21c8a8[_0x373f('0x4')];}function fe(_0x1d38b3,_0x19568a={},_0x14f00f){for(const {isAnchor:_0x59b839,cellHeight:_0x3cb4af,cellWidth:_0x4adf09}of _0x14f00f[_0x373f('0x1')](_0x1d38b3,{'includeAllSlots':!0x0,..._0x19568a}))if(!_0x59b839||0x1!=_0x3cb4af||0x1!=_0x4adf09)return!0x1;return!0x0;}
|
|
@@ -1,26 +1,26 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/tablecolumnresize
|
|
7
|
-
*/
|
|
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';
|
|
12
|
-
/**
|
|
13
|
-
* Provides track changes plugin integration for table column resize feature.
|
|
14
|
-
*/
|
|
15
|
-
export default class TrackChangesTableColumnResize extends Plugin {
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
afterInit(): void;
|
|
20
|
-
handleResizeTableWidthCommand(executeCommand: Function, options: {
|
|
21
|
-
table?: Element;
|
|
22
|
-
tableWidth?: string;
|
|
23
|
-
columnWidths?: string;
|
|
24
|
-
}): void;
|
|
25
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
26
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/tablecolumnresize
|
|
7
|
+
*/
|
|
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';
|
|
12
|
+
/**
|
|
13
|
+
* Provides track changes plugin integration for table column resize feature.
|
|
14
|
+
*/
|
|
15
|
+
export default class TrackChangesTableColumnResize extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
afterInit(): void;
|
|
20
|
+
handleResizeTableWidthCommand(executeCommand: Function, options: {
|
|
21
|
+
table?: Element;
|
|
22
|
+
tableWidth?: string;
|
|
23
|
+
columnWidths?: string;
|
|
24
|
+
}): void;
|
|
25
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
26
|
+
}
|