@ckeditor/ckeditor5-track-changes 38.1.0 → 38.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +36 -36
- package/src/commands/acceptsuggestioncommand.d.ts +20 -20
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -20
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -22
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/integrations/alignment.d.ts +13 -13
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -13
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -13
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -13
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -13
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -10
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +13 -13
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -13
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -25
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +12 -12
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -17
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -13
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -13
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +13 -13
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -13
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -13
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -13
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -13
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -19
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -14
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -13
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +12 -12
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -13
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -13
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -25
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -13
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -13
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -13
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -13
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -13
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -13
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +12 -12
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -13
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -14
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -38
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +18 -18
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -18
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -22
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +18 -18
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -18
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -13
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -23
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -13
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +13 -13
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -13
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -17
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -266
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +151 -151
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +240 -240
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +71 -71
- package/src/trackchangesdata.d.ts +37 -37
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -435
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -34
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -36
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
- 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 +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -26
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x243c=['from','blockName','isTouching','getFirstRange','getSelectedBlocks','isObject','nodeAfter','mapper','isBlock','markerName','change','addClass','type','data','end','checkChild','consumable','downcastDispatcher','plugins','ck-suggestion-marker--active','editor','registerElementLabel','get','model','markerRange','commandName','enableCommand','createUIElement','format','TrackChangesEditing','*Change\x20to:*\x20%0','highest','$text','start','ck-suggestion-marker-split','toViewPosition','schema','has','getItemLabel','paragraph','selection','_descriptionFactory','document','name','showSuggestionHighlights','registerDescriptionCallback','insertion','ELEMENT_PARAGRAPH','span','addMarker:suggestion:insertion','writer','*Insert:*\x20%0','isLimit','afterInit','editing','options'];(function(_0x58b758,_0x243cef){const _0x29796c=function(_0x2803ee){while(--_0x2803ee){_0x58b758['push'](_0x58b758['shift']());}};_0x29796c(++_0x243cef);}(_0x243c,0x1d9));const _0x2979=function(_0x58b758,_0x243cef){_0x58b758=_0x58b758-0x0;let _0x29796c=_0x243c[_0x58b758];return _0x29796c;};import{Plugin as _0x430081}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2c7a4a}from'./utils';import{getTranslation as _0x49443b}from'../utils/common-translations';export default class ct extends _0x430081{[_0x2979('0x1c')](){const _0x419fe=this[_0x2979('0x33')];if(!_0x419fe[_0x2979('0x31')][_0x2979('0xc')]('Paragraph'))return;const _0x43b54d=_0x419fe['locale'],_0x3a055c=_0x419fe[_0x2979('0x31')][_0x2979('0x35')](_0x2979('0x4'));_0x3a055c[_0x2979('0x10')][_0x2979('0x34')](_0x2979('0xe'),_0xfe1161=>_0x49443b(_0x43b54d,_0x2979('0x16'),_0xfe1161)),_0x3a055c[_0x2979('0x1')]('paragraph',(_0x62148a,_0x78b098={})=>{const _0xdcabd0=_0x419fe['model'][_0x2979('0x11')],_0x5e5b1a=_0x78b098[_0x2979('0xf')]||_0xdcabd0['selection'],_0x29e791=Array[_0x2979('0x1f')](_0x5e5b1a[_0x2979('0x23')]())['filter'](_0x4d82f4=>function(_0x14ccf1,_0x579f23){return _0x579f23[_0x2979('0x2e')](_0x14ccf1['parent'],'paragraph')&&!_0x579f23[_0x2979('0x24')](_0x14ccf1)&&_0x2979('0xe')!=_0x14ccf1[_0x2979('0x12')];}(_0x4d82f4,this['editor'][_0x2979('0x36')][_0x2979('0xb')]));_0x419fe['model'][_0x2979('0x29')](()=>{for(const _0x188b96 of _0x29e791)_0x3a055c['markBlockFormat'](_0x188b96,{'commandName':_0x2979('0xe'),'commandParams':[],'formatGroupId':_0x2979('0x20')},_0x2c7a4a(_0x188b96));});}),_0x3a055c[_0x2979('0x10')][_0x2979('0x14')](_0x2ff18e=>{const {data:_0x32c2f9}=_0x2ff18e;if(_0x32c2f9&&_0x2979('0xe')==_0x32c2f9[_0x2979('0x0')])return{'type':_0x2979('0x3'),'content':_0x49443b(_0x43b54d,_0x2979('0x5'),_0x49443b(_0x43b54d,_0x2979('0x16')))};}),_0x3a055c[_0x2979('0x1')]('insertParagraph'),_0x419fe[_0x2979('0x1d')][_0x2979('0x30')]['on']('addMarker:suggestion:insertion',ar(_0x419fe),{'priority':_0x2979('0x6')}),_0x419fe[_0x2979('0x2c')][_0x2979('0x30')]['on'](_0x2979('0x18'),(_0x4f22a2,_0x19dcb6,_0x33c873)=>{_0x33c873[_0x2979('0x1e')][_0x2979('0x13')]&&ar(_0x419fe,{'showActiveMarker':!0x1})(_0x4f22a2,_0x19dcb6,_0x33c873);},{'priority':_0x2979('0x6')});const _0x2fec14=_0x3a055c[_0x2979('0x10')];_0x2fec14['registerDescriptionCallback'](_0xda0f94=>{if(_0x2979('0x15')!==_0xda0f94[_0x2979('0x2b')])return;const {start:_0x560cf8,end:_0x3c62f9}=_0xda0f94[_0x2979('0x22')]();if(!_0x560cf8[_0x2979('0x21')](_0x3c62f9)||!_0x560cf8['nodeAfter'])return;const _0xfb35ac=_0x419fe[_0x2979('0x36')][_0x2979('0xb')],_0x3dc8fb=_0x560cf8[_0x2979('0x25')];return _0xfb35ac[_0x2979('0x27')](_0x3dc8fb)&&!_0xfb35ac[_0x2979('0x1b')](_0x3dc8fb)&&_0xfb35ac[_0x2979('0x2e')](_0x3dc8fb,_0x2979('0x7'))?{'type':_0x2979('0x15'),'content':_0x49443b(_0x43b54d,_0x2979('0x1a'),_0x2fec14[_0x2979('0xd')](_0x3dc8fb,0x1))}:void 0x0;});}}function ar(_0x7dc4ec,{showActiveMarker:_0x1e29c8=!0x0}={}){return(_0x59b346,_0x3127ea,_0x3d192c)=>{const _0x3b8461=_0x7dc4ec['plugins'][_0x2979('0x35')]('TrackChangesEditing'),_0x19ff34=_0x3127ea[_0x2979('0x37')][_0x2979('0x8')],_0x1c2ea9=_0x3127ea[_0x2979('0x37')][_0x2979('0x2d')],_0x35e06d=_0x7dc4ec[_0x2979('0x36')][_0x2979('0xb')];if(!_0x19ff34[_0x2979('0x21')](_0x1c2ea9)||!_0x19ff34[_0x2979('0x25')])return;const _0x3f510f=_0x19ff34[_0x2979('0x25')];if(_0x35e06d[_0x2979('0x27')](_0x3f510f)&&!_0x35e06d['isLimit'](_0x3f510f)&&_0x35e06d[_0x2979('0x2e')](_0x3f510f,_0x2979('0x7'))){if(!_0x3d192c[_0x2979('0x2f')]['consume'](_0x3127ea[_0x2979('0x37')],_0x59b346[_0x2979('0x12')]))return;const _0x5880a9=_0x3d192c[_0x2979('0x19')][_0x2979('0x2')](_0x2979('0x17'),{'class':_0x2979('0x9')}),_0x277a38=_0x3d192c[_0x2979('0x26')][_0x2979('0xa')](_0x1c2ea9);_0x1e29c8&&_0x3b8461['activeMarkers']['includes'](_0x3127ea['markerName'])&&_0x3d192c[_0x2979('0x19')][_0x2979('0x2a')](_0x2979('0x32'),_0x5880a9),_0x3d192c[_0x2979('0x19')]['insert'](_0x277a38,_0x5880a9),_0x3d192c[_0x2979('0x26')]['bindElementToMarker'](_0x5880a9,_0x3127ea[_0x2979('0x28')]);}};}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/removeformat
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for remove format feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesRemoveFormat extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/removeformat
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for remove format feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesRemoveFormat extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xde0f=['from','change','getAttributeProperties','*Remove\x20all\x20formatting*','document','format','selection','RemoveFormatEditing','getRanges','has','getAttributes','editor','afterInit','isCollapsed','markInlineFormat','commandName','model','removeFormat','enableCommand','_descriptionFactory','locale','registerDescriptionCallback'];(function(_0x4d9f11,_0xde0fd1){const _0x30e59f=function(_0x5e074b){while(--_0x5e074b){_0x4d9f11['push'](_0x4d9f11['shift']());}};_0x30e59f(++_0xde0fd1);}(_0xde0f,0x1aa));const _0x30e5=function(_0x4d9f11,_0xde0fd1){_0x4d9f11=_0x4d9f11-0x0;let _0x30e59f=_0xde0f[_0x4d9f11];return _0x30e59f;};import{Plugin as _0x39a115}from'ckeditor5/src/core';import{getTranslation as _0x581200}from'../utils/common-translations';export default class ht extends _0x39a115{[_0x30e5('0x4')](){const _0x5446e=this[_0x30e5('0x3')];if(!_0x5446e['plugins'][_0x30e5('0x1')](_0x30e5('0x15')))return;const _0x304564=_0x5446e['plugins']['get']('TrackChangesEditing');_0x304564[_0x30e5('0xa')](_0x30e5('0x9'),_0x237186=>{const _0x15bac9=_0x5446e['model'][_0x30e5('0x12')][_0x30e5('0x14')];_0x15bac9[_0x30e5('0x5')]?_0x237186():_0x5446e['model'][_0x30e5('0xf')](()=>{const _0x4016fb=Array[_0x30e5('0xe')](_0x15bac9[_0x30e5('0x0')]());for(const _0x30868d of _0x4016fb)for(const _0x5eae73 of _0x30868d['getItems']())eo(_0x5eae73,_0x5446e['model']['schema'])&&_0x304564[_0x30e5('0x6')](_0x5446e[_0x30e5('0x8')]['createRangeOn'](_0x5eae73),{'commandName':'removeFormat','commandParams':[]});});}),_0x304564[_0x30e5('0xb')][_0x30e5('0xd')](_0x3f90fd=>{const {data:_0x33eeef}=_0x3f90fd;if(_0x33eeef&&_0x30e5('0x9')==_0x33eeef[_0x30e5('0x7')])return{'type':_0x30e5('0x13'),'content':_0x581200(_0x5446e[_0x30e5('0xc')],_0x30e5('0x11'))};});}}function eo(_0x264088,_0x2d202d){for(const [_0x210093]of _0x264088[_0x30e5('0x2')]()){const _0x41bc52=_0x2d202d[_0x30e5('0x10')](_0x210093);if(_0x41bc52&&_0x41bc52['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/mention
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesRestrictedEditingMode extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/mention
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesRestrictedEditingMode extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c2f=['trackChanges','RestrictedEditingModeEditing','discardSelectedSuggestions','afterInit','goToNextRestrictedEditingException','editor','acceptSelectedSuggestions','TrackChangesEditing','goToPreviousRestrictedEditingException','acceptAllSuggestions','plugins','enableCommand'];(function(_0x374929,_0x2c2f10){const _0x3551a9=function(_0x15c011){while(--_0x15c011){_0x374929['push'](_0x374929['shift']());}};_0x3551a9(++_0x2c2f10);}(_0x2c2f,0x14c));const _0x3551=function(_0x374929,_0x2c2f10){_0x374929=_0x374929-0x0;let _0x3551a9=_0x2c2f[_0x374929];return _0x3551a9;};import{Plugin as _0x3724f6}from'ckeditor5/src/core';export default class ut extends _0x3724f6{[_0x3551('0x7')](){const _0x6e4085=this[_0x3551('0x9')];if(!_0x6e4085[_0x3551('0x2')]['has'](_0x3551('0x5')))return;const _0x1af91f=_0x6e4085[_0x3551('0x2')]['get'](_0x3551('0xb'));_0x1af91f[_0x3551('0x3')](_0x3551('0x0')),_0x1af91f[_0x3551('0x3')](_0x3551('0x8'));const _0xf7d805=_0x6e4085[_0x3551('0x2')]['get'](_0x3551('0x5'));_0xf7d805['enableCommand'](_0x3551('0x4')),_0xf7d805[_0x3551('0x3')]('acceptSuggestion'),_0xf7d805['enableCommand']('discardSuggestion'),_0xf7d805['enableCommand'](_0x3551('0x1')),_0xf7d805[_0x3551('0x3')]('discardAllSuggestions'),_0xf7d805[_0x3551('0x3')](_0x3551('0xa')),_0xf7d805['enableCommand'](_0x3551('0x6'));}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/shiftentercommand
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
6
|
-
/**
|
|
7
|
-
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
8
|
-
*/
|
|
9
|
-
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
10
|
-
static get requires(): readonly [typeof ShiftEnter];
|
|
11
|
-
init(): void;
|
|
12
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/shiftentercommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
6
|
+
/**
|
|
7
|
+
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
10
|
+
static get requires(): readonly [typeof ShiftEnter];
|
|
11
|
+
init(): void;
|
|
12
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15c1=['showSuggestionHighlights','addMarker:suggestion:insertion','addClass','mapper','markerRange','_descriptionFactory','addMarker:suggestion:deletion','plugins','model','requires','registerElementLabel','consumable','ck-suggestion-marker--active','writer','toViewPosition','ELEMENT_LINE_BREAK','editing','data','addMarker:suggestion','TrackChangesEditing','merge','getItems','high','init','createUIElement','downcastDispatcher','locale','test','shiftEnter','enableCommand','split','markerName','softBreak','get'];(function(_0x326915,_0x15c13c){const _0x346d1e=function(_0x179838){while(--_0x179838){_0x326915['push'](_0x326915['shift']());}};_0x346d1e(++_0x15c13c);}(_0x15c1,0x137));const _0x346d=function(_0x326915,_0x15c13c){_0x326915=_0x326915-0x0;let _0x346d1e=_0x15c1[_0x326915];return _0x346d1e;};import{Plugin as _0x50826a}from'ckeditor5/src/core';import{ShiftEnter as _0x315e45}from'ckeditor5/src/enter';import{getTranslation as _0x5e7848}from'../utils/common-translations';export default class ft extends _0x50826a{static get[_0x346d('0x4')](){return[_0x315e45];}[_0x346d('0x12')](){const _0x4e6f11=this['editor'],_0x1d493b=_0x4e6f11[_0x346d('0x2')]['get']('TrackChangesEditing');_0x1d493b[_0x346d('0x18')](_0x346d('0x17')),_0x4e6f11[_0x346d('0xb')][_0x346d('0x14')]['on'](_0x346d('0x1e'),re(_0x4e6f11),{'priority':_0x346d('0x11')}),_0x4e6f11[_0x346d('0xb')]['downcastDispatcher']['on'](_0x346d('0x1'),re(_0x4e6f11),{'priority':_0x346d('0x11')}),_0x4e6f11[_0x346d('0xc')][_0x346d('0x14')]['on'](_0x346d('0xd'),(_0x170706,_0x342d88,_0x107505)=>{_0x107505['options'][_0x346d('0x1d')]&&re(_0x4e6f11,{'showActiveMarker':!0x1})(_0x170706,_0x342d88,_0x107505);}),_0x1d493b[_0x346d('0x0')][_0x346d('0x5')](_0x346d('0x1b'),_0x2a0c31=>_0x5e7848(_0x4e6f11[_0x346d('0x15')],_0x346d('0xa'),_0x2a0c31));}}function re(_0x4bead0,{showActiveMarker:_0x4a873c=!0x0}={}){return(_0x203cbc,_0x49df39,_0x18ef59)=>{const _0x3b00bb=_0x4bead0[_0x346d('0x2')][_0x346d('0x1c')](_0x346d('0xe'));if(!_0x18ef59[_0x346d('0x6')][_0x346d('0x16')](_0x49df39[_0x346d('0x21')],_0x203cbc['name']))return;const _0x156ae5=_0x4bead0[_0x346d('0x3')];for(const _0x1a92bd of _0x49df39[_0x346d('0x21')][_0x346d('0x10')]()){if(!_0x1a92bd['is']('element','softBreak'))continue;const _0x10ba18='deletion'==_0x49df39[_0x346d('0x1a')][_0x346d('0x19')](':')[0x1]?_0x346d('0xf'):_0x346d('0x19'),_0x5fd443=_0x18ef59[_0x346d('0x8')][_0x346d('0x13')]('span',{'class':'ck-suggestion-marker-'+_0x10ba18}),_0x11a002=_0x18ef59['mapper'][_0x346d('0x9')](_0x156ae5['createPositionBefore'](_0x1a92bd));_0x4a873c&&_0x3b00bb['activeMarkers']['includes'](_0x49df39[_0x346d('0x1a')])&&_0x18ef59['writer'][_0x346d('0x1f')](_0x346d('0x7'),_0x5fd443),_0x18ef59['writer']['insert'](_0x11a002,_0x5fd443),_0x18ef59[_0x346d('0x20')]['bindElementToMarker'](_0x5fd443,_0x49df39['markerName']);}};}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/mention
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesStandardEditingMode extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/mention
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesStandardEditingMode extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xab3d=['commandParams','commandName','registerDescriptionCallback','FORMAT_RESTRICTED_DISABLED','from','format','plugins','has','model','editor','selection','value','isCollapsed','markInlineFormat','enableCommand','StandardEditingModeEditing','change','afterInit','get','TrackChangesEditing','commands','forceValue','document'];(function(_0x288c12,_0xab3d59){const _0x1e78c8=function(_0x33654e){while(--_0x33654e){_0x288c12['push'](_0x288c12['shift']());}};_0x1e78c8(++_0xab3d59);}(_0xab3d,0x10e));const _0x1e78=function(_0x288c12,_0xab3d59){_0x288c12=_0x288c12-0x0;let _0x1e78c8=_0xab3d[_0x288c12];return _0x1e78c8;};import{Plugin as _0xd9727}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x24b505}from'./utils';import{getTranslation as _0x59120f}from'../utils/common-translations';export default class lt extends _0xd9727{[_0x1e78('0x0')](){const _0x5b5599=this[_0x1e78('0xf')],_0x376750=_0x5b5599[_0x1e78('0xe')],_0x14fdc8=_0x5b5599['locale'];if(!_0x5b5599[_0x1e78('0xc')][_0x1e78('0xd')](_0x1e78('0x15')))return;const _0x3d5fce=_0x5b5599['plugins'][_0x1e78('0x1')](_0x1e78('0x2')),_0x1b31fe='restrictedEditingException',_0xfd88dd=_0x5b5599[_0x1e78('0x3')][_0x1e78('0x1')](_0x1b31fe);_0x3d5fce[_0x1e78('0x14')](_0x1b31fe,(_0x502f57,_0x4c0682={})=>{const _0x186c2d=_0x376750[_0x1e78('0x5')][_0x1e78('0x10')];if(_0x186c2d[_0x1e78('0x12')])return void _0x502f57(_0x4c0682);const _0xb1823=void 0x0!==_0x4c0682[_0x1e78('0x4')]?_0x4c0682[_0x1e78('0x4')]:!_0xfd88dd[_0x1e78('0x11')];_0x376750[_0x1e78('0x16')](()=>{const _0x45dce3=Array[_0x1e78('0xa')](_0x186c2d['getRanges']());for(const _0x10bfa7 of _0x45dce3){const _0x541976=_0xb1823?[_0x10bfa7]:_0x24b505(_0x1b31fe,_0x10bfa7,_0x376750);for(const _0x1036fb of _0x541976)_0x3d5fce[_0x1e78('0x13')](_0x1036fb,{'commandName':_0x1b31fe,'commandParams':[{'forceValue':_0xb1823}]});}});}),_0x3d5fce['_descriptionFactory'][_0x1e78('0x8')](_0x30ef7f=>{const {data:_0x94af9d}=_0x30ef7f;if(_0x94af9d&&_0x94af9d[_0x1e78('0x7')]==_0x1b31fe)return _0x94af9d[_0x1e78('0x6')][0x0][_0x1e78('0x4')]?{'type':_0x1e78('0xb'),'content':_0x59120f(_0x14fdc8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x59120f(_0x14fdc8,_0x1e78('0x9'))};});}}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/style
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for styles dropdown feature.
|
|
7
|
-
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
8
|
-
*/
|
|
9
|
-
export default class TrackChangesStylesDropdown extends Plugin {
|
|
10
|
-
/**
|
|
11
|
-
* @inheritDoc
|
|
12
|
-
*/
|
|
13
|
-
afterInit(): void;
|
|
14
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/style
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for styles dropdown feature.
|
|
7
|
+
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesStylesDropdown extends Plugin {
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
afterInit(): void;
|
|
14
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x348e=['style:','value','has','every','includes','normalizeConfig','getAttribute','change','markInlineFormat','style.definitions','block','getItems','element','styleName','markBlockFormat','registerDescriptionCallback','getRanges','isCollapsed','afterInit','TrackChangesEditing','get','_getRangesWithClasses','push','name','getAncestors','model','StyleUtils','enableCommand','*Format:*\x20%0','style','plugins','forceValue','locale','toLowerCase','find','getSelectedBlocks','format','commandName','_descriptionFactory','config','modelElements','add','_getStyleDefinition','commandParams','isBlock','document','from','Style','classes'];(function(_0x1f1c2f,_0x348eb0){const _0xf6298d=function(_0x52b555){while(--_0x52b555){_0x1f1c2f['push'](_0x1f1c2f['shift']());}};_0xf6298d(++_0x348eb0);}(_0x348e,0xe6));const _0xf629=function(_0x1f1c2f,_0x348eb0){_0x1f1c2f=_0x1f1c2f-0x0;let _0xf6298d=_0x348e[_0x1f1c2f];return _0xf6298d;};import{Plugin as _0x4eddac}from'ckeditor5/src/core';import{getTranslation as _0x44524c}from'../utils/common-translations';export default class gt extends _0x4eddac{[_0xf629('0x21')](){const _0x3d7510=this['editor'];if(!_0x3d7510['plugins'][_0xf629('0x11')](_0xf629('0xd')))return;const _0x4e6bb7=_0x3d7510['commands'][_0xf629('0x23')](_0xf629('0x2c')),_0x1bc5a2=_0x3d7510[_0xf629('0x2d')][_0xf629('0x23')](_0xf629('0x22')),_0x245140=_0x3d7510[_0xf629('0x2f')],_0x8d2ac7=_0x3d7510[_0xf629('0x2d')][_0xf629('0x23')]('DataSchema'),_0x5c9bed=_0x3d7510[_0xf629('0x2d')][_0xf629('0x23')](_0xf629('0x29'))[_0xf629('0x14')](_0x8d2ac7,_0x3d7510[_0xf629('0x5')][_0xf629('0x23')](_0xf629('0x18')));_0x1bc5a2[_0xf629('0x2a')](_0xf629('0x2c'),(_0x1dfe4b,{styleName:_0x2b0a3d})=>{const _0x2d9d80=_0x3d7510['model'][_0xf629('0xb')]['selection'],_0x39bc99=this[_0xf629('0x8')](_0x2b0a3d,_0x5c9bed);if(!_0x39bc99)return;if(!_0x4e6bb7['enabledStyles'][_0xf629('0x13')](_0x2b0a3d))return;if(_0x2d9d80[_0xf629('0x20')]&&!_0x39bc99[_0xf629('0xa')])return void _0x1dfe4b({'styleName':_0x2b0a3d});const _0x1edbe0=!_0x4e6bb7[_0xf629('0x10')]['includes'](_0x39bc99[_0xf629('0x26')]);if(_0x39bc99['isBlock']){const _0x4b6874=function(_0xfcdbf,_0x817647){const _0x1e8984=new Set();for(const _0x4ca8ce of _0xfcdbf){const _0x4c1bc3=_0x4ca8ce[_0xf629('0x27')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x370705 of _0x4c1bc3)if(_0x817647['includes'](_0x370705['name'])){_0x1e8984[_0xf629('0x7')](_0x370705);break;}}return _0x1e8984;}(_0x2d9d80[_0xf629('0x1')](),_0x39bc99[_0xf629('0x6')]);_0x3d7510[_0xf629('0x28')][_0xf629('0x16')](()=>{for(const _0xb7d33c of _0x4b6874)_0x1bc5a2[_0xf629('0x1d')](_0xb7d33c,{'commandName':_0xf629('0x2c'),'commandParams':[{'styleName':_0x2b0a3d,'forceValue':_0x1edbe0}],'formatGroupId':_0xf629('0xf')+_0x2b0a3d});});}else{let _0x6602d=Array[_0xf629('0xc')](_0x2d9d80[_0xf629('0x1f')]());if(!_0x1edbe0){const _0x5f0f6e=Array[_0xf629('0xc')](_0x8d2ac7['getDefinitionsForView'](_0x39bc99[_0xf629('0x1b')],!0x1))[0x0]['model'],_0x26b3fd=[];for(const _0x414061 of _0x6602d){const _0x3efb62=this['_getRangesWithClasses'](_0x3d7510[_0xf629('0x28')],_0x414061,_0x39bc99[_0xf629('0xe')],_0x5f0f6e);_0x26b3fd[_0xf629('0x25')](..._0x3efb62);}_0x6602d=_0x26b3fd;}_0x3d7510[_0xf629('0x28')][_0xf629('0x16')](()=>{for(const _0x152cbc of _0x6602d)_0x1bc5a2[_0xf629('0x17')](_0x152cbc,{'commandName':_0xf629('0x2c'),'commandParams':[{'styleName':_0x2b0a3d,'forceValue':_0x1edbe0}]});});}}),_0x1bc5a2[_0xf629('0x4')][_0xf629('0x1e')](_0xc06e5e=>{const {data:_0x447f3d}=_0xc06e5e;if(_0x447f3d&&'style'===_0x447f3d[_0xf629('0x3')])return _0x447f3d['commandParams'][0x0][_0xf629('0x2e')]?{'type':_0xf629('0x2'),'content':_0x44524c(_0x245140,_0xf629('0x2b'),_0x447f3d[_0xf629('0x9')][0x0][_0xf629('0x1c')][_0xf629('0x30')]())}:{'type':_0xf629('0x2'),'content':_0x44524c(_0x245140,'*Remove\x20format:*\x20%0',_0x447f3d['commandParams'][0x0]['styleName']['toLowerCase']())};});}['_getStyleDefinition'](_0x15daa9,_0x2d5e29){let _0x3777b2=_0x2d5e29[_0xf629('0x19')][_0xf629('0x0')](_0x44b08c=>_0x44b08c[_0xf629('0x26')]===_0x15daa9);return _0x3777b2||(_0x3777b2=_0x2d5e29['inline'][_0xf629('0x0')](_0x178a03=>_0x178a03[_0xf629('0x26')]===_0x15daa9)),_0x3777b2;}[_0xf629('0x24')](_0x20fac3,_0x5eb39e,_0x591e91,_0x5dc8e4){const _0x1ea3e3=[];for(const _0x490e53 of _0x5eb39e[_0xf629('0x1a')]()){const _0xd91225=_0x490e53[_0xf629('0x15')](_0x5dc8e4);_0xd91225&&(_0x591e91[_0xf629('0x12')](_0x5105d4=>_0xd91225[_0xf629('0xe')][_0xf629('0x13')](_0x5105d4))&&_0x1ea3e3[_0xf629('0x25')](_0x20fac3['createRangeOn'](_0x490e53)));}return _0x1ea3e3;}}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/table
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesTable extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
constructor(editor: Editor);
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Coordinates for suggestion.
|
|
20
|
-
*/
|
|
21
|
-
export interface SuggestionCoordinates {
|
|
22
|
-
/**
|
|
23
|
-
* Index of the row at which the suggestion starts.
|
|
24
|
-
*/
|
|
25
|
-
minRow: number;
|
|
26
|
-
/**
|
|
27
|
-
* Index of the row at which the suggestion ends.
|
|
28
|
-
*/
|
|
29
|
-
maxRow: number;
|
|
30
|
-
/**
|
|
31
|
-
* Index of the column at which the suggestion starts.
|
|
32
|
-
*/
|
|
33
|
-
minColumn: number;
|
|
34
|
-
/**
|
|
35
|
-
* Index of the column at which the suggestion ends.
|
|
36
|
-
*/
|
|
37
|
-
maxColumn: number;
|
|
38
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/table
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTable extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
constructor(editor: Editor);
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Coordinates for suggestion.
|
|
20
|
+
*/
|
|
21
|
+
export interface SuggestionCoordinates {
|
|
22
|
+
/**
|
|
23
|
+
* Index of the row at which the suggestion starts.
|
|
24
|
+
*/
|
|
25
|
+
minRow: number;
|
|
26
|
+
/**
|
|
27
|
+
* Index of the row at which the suggestion ends.
|
|
28
|
+
*/
|
|
29
|
+
maxRow: number;
|
|
30
|
+
/**
|
|
31
|
+
* Index of the column at which the suggestion starts.
|
|
32
|
+
*/
|
|
33
|
+
minColumn: number;
|
|
34
|
+
/**
|
|
35
|
+
* Index of the column at which the suggestion ends.
|
|
36
|
+
*/
|
|
37
|
+
maxColumn: number;
|
|
38
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3674=['getContainedElement','registerPostFixer','filter','detach','maxRow','some','markMultiRangeInsertion','isArray','removeClass','isEqual','getItems','change','addRange','end','tableCell','getCellLocation','push','_tablePostFixingSubtypes','isTouching','first','minColumn','highest','markMultiRangeDeletion','batch','tablePaste','$textProxy','hasAttribute','createRangeOn','selection','element','from','options','getSuggestion','ELEMENT_TABLE_WITH_TEXT','last','discard','ELEMENT_TABLE_ROW_WITH_TEXT','position','MIN_SAFE_INTEGER','insertTableColumnRight','start','document','nodeBefore','enqueueChange','item','tableRow','getSelectionAffectedTableCells','accept','cell','toLowerCase','createTableWalker','insertTableRowBelow','subType','getRanges','rootName','createRangeIn','isIntersectingWithRange','_descriptionFactory','downcastDispatcher','*Insert:*\x20%0','change:data','above','insertTable','editor','locale','findAncestor','fromRange','name','insertion','forceValue','getChanges','*Remove:*\x20%0','map','enableCommand','ELEMENT_TABLE_ROW','getColumnIndexes','selectTableColumn','insertTableRowAbove','root','addClass','$graveyard','includes','substr','TableUtils','_suggestionFactory','_tableSuggestions','refresh','min','deletion','classes','tableColumn','table','colspan','_getCoordsForCells','ELEMENT_TABLE_COLUMN_WITH_TEXT','setSelection','commands','values','getFirstRange','ELEMENT_TABLE','nodeAfter','oldRange','model','getChangedMarkers','low','_setupColumnsRowsFixing','span','left','type','MAX_SAFE_INTEGER','get','join','registerCustomCallback','rowspan','TableEditing','_getSuggestionCoords','insertTableColumnLeft','add','data','_splitMarkerName','insert','differ','ELEMENT_TABLE_COLUMN','TrackChangesEditing','length','mapper','execute','plugins','removeTableRow','order','getAttribute','registerDescriptionCallback','getRowIndexes','minRow','removeTableColumn','max','writer'];(function(_0x3dcd19,_0x367488){const _0x23de90=function(_0x552ed1){while(--_0x552ed1){_0x3dcd19['push'](_0x3dcd19['shift']());}};_0x23de90(++_0x367488);}(_0x3674,0x167));const _0x23de=function(_0x3dcd19,_0x367488){_0x3dcd19=_0x3dcd19-0x0;let _0x23de90=_0x3674[_0x3dcd19];return _0x23de90;};import{Plugin as _0x539bec}from'ckeditor5/src/core';import{LiveRange as _0xab8c01}from'ckeditor5/src/engine';import{setHighlightHandling as _0x169e26}from'ckeditor5/src/widget';import{getTranslation as _0x3c6b5d}from'../utils/common-translations';export default class mt extends _0x539bec{constructor(_0x1040b1){super(_0x1040b1),this[_0x23de('0x45')]=[_0x23de('0x61'),_0x23de('0x5')],this[_0x23de('0x0')]=new Set();}['afterInit'](){const _0x3e21e7=this['editor'],_0x5d9430=_0x3e21e7['model'][_0x23de('0x5d')]['selection'];if(!_0x3e21e7[_0x23de('0x2a')]['has'](_0x23de('0x1d')))return;const _0x3966b7=_0x3e21e7[_0x23de('0x74')],_0x1c5bc2=_0x3e21e7[_0x23de('0x2a')][_0x23de('0x19')](_0x23de('0x26')),_0x219fb3=_0x3e21e7[_0x23de('0x2a')][_0x23de('0x19')]('TableUtils');_0x1c5bc2[_0x23de('0x6d')]['registerElementLabel'](_0x23de('0x6'),_0x12a85c=>_0x3c6b5d(_0x3966b7,_0x23de('0xe'),_0x12a85c)),this[_0x23de('0x14')](),_0x1c5bc2[_0x23de('0x7d')](_0x23de('0x72')),_0x1c5bc2[_0x23de('0x7d')]('selectTableRow'),_0x1c5bc2[_0x23de('0x7d')](_0x23de('0x80'));for(const _0x175ab5 of[_0x23de('0x81'),_0x23de('0x67')]){const _0x1be80f=_0x3e21e7[_0x23de('0xb')][_0x23de('0x19')](_0x175ab5);_0x1c5bc2[_0x23de('0x7d')](_0x175ab5,_0x45f068=>{_0x3e21e7['model']['change'](_0x5b9ff6=>{_0x45f068();const _0x5b994e=_0x23de('0x71')===_0x1be80f[_0x23de('0x2c')],_0x40d120=_0x219fb3[_0x23de('0x62')](_0x5d9430),_0x5d36e0=_0x219fb3['getRowIndexes'](_0x40d120),_0x3e5156=_0x5b994e?_0x5d36e0[_0x23de('0x47')]-0x1:_0x5d36e0[_0x23de('0x56')]+0x1,_0x18f265=_0x40d120[0x0][_0x23de('0x75')](_0x23de('0x6')),_0x421ab2=_0x219fb3['createTableWalker'](_0x18f265,{'startRow':_0x3e5156,'endRow':_0x3e5156}),_0x4d7780=Array[_0x23de('0x52')](_0x421ab2)[_0x23de('0x7c')](_0xf68860=>_0x5b9ff6[_0x23de('0x4f')](_0xf68860[_0x23de('0x64')]));_0x1c5bc2[_0x23de('0x3a')](_0x4d7780,_0x23de('0x61'));});});}for(const _0x1c94f4 of[_0x23de('0x1f'),_0x23de('0x5b')]){const _0x24be04=_0x3e21e7[_0x23de('0xb')][_0x23de('0x19')](_0x1c94f4);_0x1c5bc2[_0x23de('0x7d')](_0x1c94f4,_0x577422=>{_0x3e21e7[_0x23de('0x11')][_0x23de('0x3f')](_0x55fe2b=>{_0x577422();const _0x2c4441=_0x23de('0x16')===_0x24be04[_0x23de('0x2c')],_0x31bf5f=_0x219fb3['getSelectionAffectedTableCells'](_0x5d9430),_0x3d8a85=_0x219fb3['getColumnIndexes'](_0x31bf5f),_0x4f4087=_0x2c4441?_0x3d8a85[_0x23de('0x47')]-0x1:_0x3d8a85['last']+0x1,_0x42f2af=_0x31bf5f[0x0][_0x23de('0x75')](_0x23de('0x6')),_0x2001fd=_0x219fb3[_0x23de('0x66')](_0x42f2af,{'startRow':0x0,'column':_0x4f4087,'includeAllSlots':!0x1}),_0x55c406=Array[_0x23de('0x52')](_0x2001fd)[_0x23de('0x7c')](_0x35be34=>_0x55fe2b[_0x23de('0x4f')](_0x35be34[_0x23de('0x64')]));_0x1c5bc2[_0x23de('0x3a')](_0x55c406,'tableColumn');});});}for(const _0x2d3dd0 of['removeTableRow','removeTableColumn']){const _0x3380ae=_0x2d3dd0[_0x23de('0x86')](0xb),_0x32653b=_0x3380ae['toLowerCase'](),_0x3c1215=_0x32653b[_0x23de('0x86')](0x0,0x3)+_0x23de('0x15'),_0x297e4f='table'+_0x3380ae,_0x5bcb3a=_0x23de('0x2')+_0x3380ae,_0x49f37e=_0x23de('0x32')+_0x3380ae;_0x1c5bc2[_0x23de('0x7d')](_0x2d3dd0,()=>{_0x3e21e7['model'][_0x23de('0x3f')](_0x50fe5d=>{const _0x548349=_0x219fb3[_0x23de('0x62')](_0x5d9430),_0x55e82c=_0x548349[0x0][_0x23de('0x75')](_0x23de('0x6'));let _0x3ac893;if(_0x23de('0x2b')==_0x2d3dd0){const _0x8e5ad6=_0x219fb3[_0x23de('0x2f')](_0x548349);_0x3ac893={'startRow':_0x8e5ad6[_0x23de('0x47')],'endRow':_0x8e5ad6[_0x23de('0x56')],'includeAllSlots':!0x0};}else{const _0x193f0d=_0x219fb3[_0x23de('0x7f')](_0x548349);_0x3ac893={'startColumn':_0x193f0d[_0x23de('0x47')],'endColumn':_0x193f0d[_0x23de('0x56')],'includeAllSlots':!0x0};}const _0x3824ab=_0x219fb3['createTableWalker'](_0x55e82c,_0x3ac893),_0x16018a=Array[_0x23de('0x52')](_0x3824ab)['map'](({cell:_0x98ded1})=>_0x98ded1),_0x2b0d36=se(_0x16018a['filter'](_0xc561c6=>_0xc561c6['hasAttribute'](_0x3c1215))),_0x32689c=se(_0x16018a['filter'](_0x47c745=>!_0x47c745[_0x23de('0x4e')](_0x3c1215)))['map'](_0x18a997=>_0x50fe5d[_0x23de('0x4f')](_0x18a997)),_0x4d8082=_0x1c5bc2[_0x23de('0x4a')](_0x32689c,_0x297e4f);if(_0x4d8082&&(_0x23de('0x61')==_0x4d8082['subType']||'tableColumn'==_0x4d8082[_0x23de('0x68')])){const _0x257002=this['_getSuggestionCoords'](_0x4d8082);for(const _0x11adad of _0x2b0d36){const _0x2c4dc3=_0x50fe5d[_0x23de('0x4f')](_0x11adad),_0x1b3f97=_0x219fb3[_0x23de('0x43')](_0x11adad),_0x5c3db6=_0x11adad['getAttribute'](_0x3c1215)-0x1,_0x578dd2=_0x257002[_0x5bcb3a],_0x485cf3=_0x257002[_0x49f37e];_0x578dd2<=_0x1b3f97[_0x32653b]&&_0x1b3f97[_0x32653b]+_0x5c3db6<=_0x485cf3&&_0x4d8082[_0x23de('0x40')](_0x2c4dc3);}}});});}function _0x42ebce(_0x21925d){const _0x224292=Array[_0x23de('0x52')](_0x5d9430[_0x23de('0x69')]())[_0x23de('0x7c')](_0x5a0de7=>_0xab8c01['fromRange'](_0x5a0de7));_0x3e21e7[_0x23de('0x11')]['change'](_0x1887d3=>{const _0x5e8127=_0x1887d3[_0x23de('0x4b')];_0x21925d=_0x21925d[_0x23de('0x36')](_0x3fbc80=>_0x23de('0x84')!=_0x3fbc80[_0x23de('0x82')]['rootName']),_0x1887d3[_0x23de('0xa')](_0x21925d),_0x3e21e7[_0x23de('0xb')][_0x23de('0x19')]('removeTableRow')[_0x23de('0x1')](),_0x3e21e7[_0x23de('0x29')](_0x23de('0x2b'),{'forceDefaultExecution':!0x0}),_0x3e21e7['model']['enqueueChange'](()=>{_0x3e21e7['model'][_0x23de('0x5f')](_0x5e8127,_0x260b84=>{const _0x35a882=_0x224292['filter'](_0x52e950=>_0x23de('0x84')!=_0x52e950[_0x23de('0x82')]['rootName']);_0x35a882[_0x23de('0x27')]>0x0&&_0x260b84[_0x23de('0xa')](_0x35a882);for(const _0x306c8d of _0x224292)_0x306c8d[_0x23de('0x37')]();});});});}function _0x59fdf3(_0x14919a){_0x3e21e7[_0x23de('0x11')]['change'](_0x5cf210=>{const _0x344250=Array['from'](_0x5d9430[_0x23de('0x69')]())['map'](_0x3fa9da=>_0xab8c01[_0x23de('0x76')](_0x3fa9da)),_0x170ff2=[];for(const _0x343ece of _0x14919a)for(const _0x1ecebe of _0x343ece[_0x23de('0x3e')]({'shallow':!0x0}))_0x170ff2[_0x23de('0x44')](_0x1ecebe);for(const _0x406980 of _0x170ff2)_0x23de('0x84')!=_0x406980[_0x23de('0x82')]['rootName']&&(_0x5cf210['setSelection'](_0x5cf210['createPositionAt'](_0x406980,0x0)),_0x3e21e7[_0x23de('0xb')]['get'](_0x23de('0x31'))['refresh'](),_0x3e21e7[_0x23de('0x29')](_0x23de('0x31'),{'forceDefaultExecution':!0x0}));const _0x228dbc=_0x344250[_0x23de('0x36')](_0x1b5293=>'$graveyard'!=_0x1b5293['root'][_0x23de('0x6a')]);_0x228dbc[_0x23de('0x27')]>0x0&&_0x5cf210[_0x23de('0xa')](_0x228dbc);for(const _0x3c3b08 of _0x344250)_0x3c3b08['detach']();});}function _0x507df0(_0x2450e8,_0x338b0f){return _0x338b0f['every'](_0x155e4a=>_0x2450e8['some'](_0xc3bd72=>_0xc3bd72[_0x23de('0x41')][_0x23de('0x3d')](_0x155e4a[_0x23de('0x5c')])||_0x155e4a['end']['isEqual'](_0xc3bd72[_0x23de('0x5c')])));}function _0x2d45cb(_0x5aac16,_0x3c7ced){return _0x5aac16[_0x23de('0x39')](_0x4c1115=>_0x3c7ced[_0x23de('0x39')](_0x2b7e1b=>_0x4c1115[_0x23de('0x41')][_0x23de('0x46')](_0x2b7e1b[_0x23de('0x5c')])));}_0x3e21e7['data'][_0x23de('0x6e')]['on']('addMarker:suggestion',(_0x3b10fd,_0x5c33ba,_0x137ee0)=>{if(!_0x137ee0[_0x23de('0x53')]['showSuggestionHighlights'])return;const _0xbf792a=_0x5c33ba[_0x23de('0x60')];if(!_0xbf792a)return;const _0x476835=_0x137ee0[_0x23de('0x28')]['toViewElement'](_0xbf792a);function _0x6c2a44(_0x283648){return Array[_0x23de('0x3b')](_0x283648)?_0x283648:[_0x283648];}_0x476835&&_0x23de('0x42')===_0xbf792a[_0x23de('0x77')]&&_0x169e26(_0x476835,_0x137ee0[_0x23de('0x33')],(_0x1f812b,_0x5d1e1e,_0x5b8522)=>_0x5b8522[_0x23de('0x83')](_0x6c2a44(_0x5d1e1e['classes']),_0x1f812b),(_0x2ca5f5,_0x3b860f,_0x5b121c)=>_0x5b121c[_0x23de('0x3c')](_0x6c2a44(_0x3b860f[_0x23de('0x4')]),_0x2ca5f5));},{'priority':_0x23de('0x49')}),_0x1c5bc2[_0x23de('0x6d')][_0x23de('0x2e')](_0x243823=>{if(_0x23de('0x78')!=_0x243823[_0x23de('0x17')]&&'deletion'!=_0x243823['type'])return;const _0x4bd369=_0x243823[_0x23de('0x34')]();if(null!=_0x4bd369&&_0x4bd369['is'](_0x23de('0x51'),_0x23de('0x6'))){if(_0x23de('0x78')==_0x243823[_0x23de('0x17')]){const _0x2cd44b=_0x243823[_0x23de('0x3e')]()[_0x23de('0x36')](_0x4a3742=>_0x4a3742['is'](_0x23de('0x4d')))[_0x23de('0x7c')](_0x5bb49c=>_0x5bb49c[_0x23de('0x21')]);if(_0x2cd44b[_0x23de('0x27')])return{'type':_0x23de('0x78'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,_0x23de('0x55'),'\x22'+_0x2cd44b[_0x23de('0x1a')]('\x20')+'\x22'))};}if('deletion'==_0x243823[_0x23de('0x17')]){const _0x42de36=_0x243823['getItems']()[_0x23de('0x36')](_0x1a5365=>_0x1a5365['is']('$textProxy'))[_0x23de('0x7c')](_0x2607ce=>_0x2607ce[_0x23de('0x21')]);if(_0x42de36[_0x23de('0x27')])return{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x7b'),_0x3c6b5d(_0x3966b7,_0x23de('0x55'),'\x22'+_0x42de36['join']('\x20')+'\x22'))};}}}),_0x1c5bc2[_0x23de('0x6d')]['registerDescriptionCallback'](_0x3532dc=>{if('tableRow'==_0x3532dc['subType']){const _0x5582e1=_0x3532dc['getItems']()[_0x23de('0x36')](_0x548d22=>_0x548d22['is'](_0x23de('0x4d')))[_0x23de('0x7c')](_0x3efc9a=>_0x3efc9a[_0x23de('0x21')]),_0x5318b0=this[_0x23de('0x1e')](_0x3532dc),_0x49ea4a=_0x5318b0[_0x23de('0x38')]-_0x5318b0[_0x23de('0x30')]+0x1;if(_0x23de('0x78')==_0x3532dc[_0x23de('0x17')])return _0x5582e1[_0x23de('0x27')]?{'type':_0x23de('0x78'),'content':_0x3c6b5d(_0x3966b7,'*Insert:*\x20%0',_0x3c6b5d(_0x3966b7,_0x23de('0x58'),[_0x49ea4a,'\x22'+_0x5582e1['join']('\x20')+'\x22']))}:{'type':_0x23de('0x78'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,'ELEMENT_TABLE_ROW',_0x49ea4a))};if('deletion'==_0x3532dc[_0x23de('0x17')])return _0x5582e1[_0x23de('0x27')]?{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x7b'),_0x3c6b5d(_0x3966b7,_0x23de('0x58'),[_0x49ea4a,'\x22'+_0x5582e1[_0x23de('0x1a')]('\x20')+'\x22']))}:{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x7b'),_0x3c6b5d(_0x3966b7,_0x23de('0x7e'),_0x49ea4a))};}if(_0x23de('0x5')==_0x3532dc['subType']){const _0x10bb6a=_0x3532dc[_0x23de('0x3e')]()[_0x23de('0x36')](_0x3a1319=>_0x3a1319['is']('$textProxy'))[_0x23de('0x7c')](_0x21b14c=>_0x21b14c[_0x23de('0x21')]),_0x1aea33=this[_0x23de('0x1e')](_0x3532dc),_0x174f1d=_0x1aea33['maxColumn']-_0x1aea33[_0x23de('0x48')]+0x1;if('insertion'==_0x3532dc[_0x23de('0x17')])return _0x10bb6a[_0x23de('0x27')]?{'type':'insertion','content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,_0x23de('0x9'),[_0x174f1d,'\x22'+_0x10bb6a[_0x23de('0x1a')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,_0x23de('0x25'),_0x174f1d))};if(_0x23de('0x3')==_0x3532dc['type'])return _0x10bb6a[_0x23de('0x27')]?{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,'*Remove:*\x20%0',_0x3c6b5d(_0x3966b7,_0x23de('0x9'),[_0x174f1d,'\x22'+_0x10bb6a[_0x23de('0x1a')]('\x20')+'\x22']))}:{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,'*Remove:*\x20%0',_0x3c6b5d(_0x3966b7,_0x23de('0x25'),_0x174f1d))};}}),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x78'),_0x23de('0x61'),_0x23de('0x57'),_0x42ebce),_0x1c5bc2[_0x23de('0x88')]['registerCustomCallback'](_0x23de('0x3'),'tableRow',_0x23de('0x63'),_0x42ebce),_0x1c5bc2['_suggestionFactory'][_0x23de('0x1b')](_0x23de('0x78'),_0x23de('0x5'),_0x23de('0x57'),_0x59fdf3),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x3'),_0x23de('0x5'),_0x23de('0x63'),_0x59fdf3),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x78'),_0x23de('0x5'),_0x23de('0x1a'),_0x507df0),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')]('deletion',_0x23de('0x5'),'join',_0x507df0),_0x1c5bc2[_0x23de('0x88')]['registerCustomCallback'](_0x23de('0x78'),_0x23de('0x61'),_0x23de('0x1a'),_0x2d45cb),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x3'),_0x23de('0x61'),_0x23de('0x1a'),_0x2d45cb);}['_acceptFormatSuggestionCallbackFactory'](){const _0xdbcaeb=this[_0x23de('0x73')],_0x4f3f48=_0xdbcaeb['model']['document'][_0x23de('0x50')];return(_0xdcbb66,_0x296a3b)=>{_0xdbcaeb[_0x23de('0x11')][_0x23de('0x3f')](_0x4c7eba=>{const {commandName:_0x461e26,commandParams:_0x540120}=_0x296a3b;let _0x1df222=_0xdcbb66[0x0][_0x23de('0x41')][_0x23de('0x5e')];_0x540120&&_0x540120[0x0]&&!0x1===_0x540120[0x0][_0x23de('0x79')]&&(_0x1df222=_0xdcbb66[0x0]['start']['nodeAfter']);const _0x57f936=_0x4c7eba[_0x23de('0x6b')](_0x1df222);if(_0x23de('0x84')==_0x57f936[_0x23de('0x82')]['rootName'])return;const _0x48674c=Array[_0x23de('0x52')](_0x4f3f48[_0x23de('0x69')]())[_0x23de('0x7c')](_0x28eb30=>_0xab8c01['fromRange'](_0x28eb30));_0x4c7eba[_0x23de('0xa')](_0x57f936),_0xdbcaeb['commands'][_0x23de('0x19')](_0x461e26)[_0x23de('0x1')](),_0x540120[_0x23de('0x44')]({'forceDefaultExecution':!0x0}),_0xdbcaeb[_0x23de('0x29')](_0x461e26,..._0x540120);const _0x5192d4=_0x48674c[_0x23de('0x36')](_0x23a09b=>_0x23de('0x84')!=_0x23a09b[_0x23de('0x82')][_0x23de('0x6a')]);_0x5192d4[_0x23de('0x27')]>0x0&&_0x4c7eba[_0x23de('0xa')](_0x5192d4);for(const _0x55b61d of _0x48674c)_0x55b61d[_0x23de('0x37')]();});};}[_0x23de('0x8')](_0x584475){const _0x28c56a=this[_0x23de('0x73')][_0x23de('0x2a')][_0x23de('0x19')](_0x23de('0x87'));let _0x5b2fe2=Number['MAX_SAFE_INTEGER'],_0x433d55=Number['MIN_SAFE_INTEGER'],_0x2bfff3=Number[_0x23de('0x18')],_0x265e18=Number[_0x23de('0x5a')];for(const _0x13250c of _0x584475){if(_0x23de('0x84')==_0x13250c['root'][_0x23de('0x6a')])continue;const {row:_0x999de7,column:_0x2087ee}=_0x28c56a['getCellLocation'](_0x13250c),_0x479c64=_0x13250c[_0x23de('0x4e')]('rowspan')?_0x13250c[_0x23de('0x2d')](_0x23de('0x1c'))-0x1:0x0,_0x3f2588=_0x13250c['hasAttribute']('colspan')?_0x13250c[_0x23de('0x2d')](_0x23de('0x7'))-0x1:0x0;_0x5b2fe2=_0x999de7<_0x5b2fe2?_0x999de7:_0x5b2fe2,_0x433d55=_0x999de7+_0x479c64>_0x433d55?_0x999de7+_0x479c64:_0x433d55,_0x2bfff3=_0x2087ee<_0x2bfff3?_0x2087ee:_0x2bfff3,_0x265e18=_0x2087ee+_0x3f2588>_0x265e18?_0x2087ee+_0x3f2588:_0x265e18;}return{'minRow':_0x5b2fe2,'maxRow':_0x433d55,'minColumn':_0x2bfff3,'maxColumn':_0x265e18};}[_0x23de('0x14')](){const _0x59fce6=this[_0x23de('0x73')],_0x3bd60d=_0x59fce6[_0x23de('0x2a')]['get'](_0x23de('0x26')),_0x290c7f=_0x59fce6[_0x23de('0x2a')][_0x23de('0x19')]('TableUtils');_0x59fce6[_0x23de('0x11')][_0x23de('0x5d')]['on'](_0x23de('0x70'),()=>{const _0x47af3a=Array[_0x23de('0x52')](_0x59fce6['model'][_0x23de('0x5d')][_0x23de('0x24')][_0x23de('0x12')]());for(const {name:_0x50e472,data:_0x52ff05}of _0x47af3a){const {group:_0x17041a,id:_0x4b4fba,subType:_0x5a33c9}=_0x3bd60d[_0x23de('0x22')](_0x50e472);if('suggestion'!=_0x17041a)continue;if(null!=_0x52ff05[_0x23de('0x10')])continue;const _0x1ed512=_0x3bd60d[_0x23de('0x54')](_0x4b4fba);this['_tablePostFixingSubtypes'][_0x23de('0x85')](_0x5a33c9)&&this[_0x23de('0x0')][_0x23de('0x20')](_0x1ed512);}},{'priority':_0x23de('0x13')});const _0x57f7fc=(_0x5acfbd,_0x1c8dcf)=>{let _0x334701=!0x1;const _0x276da2=_0x1c8dcf[_0x23de('0x4f')](_0x5acfbd),_0x2a2282=_0x5acfbd[_0x23de('0x75')](_0x23de('0x6')),_0x38bd87=_0x290c7f[_0x23de('0x43')](_0x5acfbd);for(const _0x7c80a of this[_0x23de('0x0')]){const _0x6eaaab=_0x7c80a[_0x23de('0x68')],_0x3d2a0e=_0x6eaaab['startsWith'](_0x23de('0x4c')),_0x11f1c3=_0x6eaaab[_0x23de('0x86')](_0x3d2a0e?0xa:0x5),_0xe84cc0=_0x11f1c3[_0x23de('0x65')](),_0x5d71fe=_0xe84cc0['substr'](0x0,0x3)+_0x23de('0x15'),_0x8f2bd2=_0x23de('0x2')+_0x11f1c3,_0x10c339=_0x23de('0x32')+_0x11f1c3;if(!_0x7c80a['isInContent'])continue;if(_0x2a2282!=_0x7c80a[_0x23de('0xd')]()[_0x23de('0x5c')][_0x23de('0x75')](_0x23de('0x6')))continue;if(_0x7c80a[_0x23de('0x6c')](_0x276da2))continue;const _0x2ed9f1=_0x5acfbd[_0x23de('0x4e')](_0x5d71fe)?_0x5acfbd[_0x23de('0x2d')](_0x5d71fe)-0x1:0x0,_0x5ca9ce=this[_0x23de('0x1e')](_0x7c80a),_0x4e7360=_0x5ca9ce[_0x8f2bd2],_0x3f1b4a=_0x5ca9ce[_0x10c339];_0x4e7360<=_0x38bd87[_0xe84cc0]&&_0x38bd87[_0xe84cc0]+_0x2ed9f1<=_0x3f1b4a&&(_0x7c80a[_0x23de('0x40')](_0x276da2),_0x334701=!0x0);}return _0x334701;};_0x59fce6[_0x23de('0x11')][_0x23de('0x5d')][_0x23de('0x35')](_0x5c0a81=>{let _0x9bba10=!0x1;for(const _0x5b23b8 of _0x59fce6[_0x23de('0x11')]['document'][_0x23de('0x24')][_0x23de('0x7a')]())if(_0x23de('0x23')==_0x5b23b8[_0x23de('0x17')]){if(_0x23de('0x61')==_0x5b23b8[_0x23de('0x77')])for(const _0x545cee of _0x5b23b8[_0x23de('0x59')][_0x23de('0xf')]['getChildren']())_0x9bba10=_0x9bba10||_0x57f7fc(_0x545cee,_0x5c0a81);else _0x23de('0x42')==_0x5b23b8['name']&&(_0x9bba10=_0x9bba10||_0x57f7fc(_0x5b23b8[_0x23de('0x59')]['nodeAfter'],_0x5c0a81));}return _0x9bba10;});}[_0x23de('0x1e')](_0x1858ab){return this['_getCoordsForCells'](_0x1858ab[_0x23de('0x69')]()[_0x23de('0x7c')](_0x91ef84=>_0x91ef84[_0x23de('0x5c')]['nodeAfter']));}}function se(_0x3ffbe9){return Array[_0x23de('0x52')](new Set(_0x3ffbe9)[_0x23de('0xc')]());}
|
|
23
|
+
const _0x26f2=['getAttribute','above','getItems','insertion','detach','forceValue','table','refresh','getSelectionAffectedTableCells','getFirstRange','registerDescriptionCallback','filter','tableCell','ELEMENT_TABLE_WITH_TEXT','type','_acceptFormatSuggestionCallbackFactory','colspan','differ','tableColumn','oldRange','accept','removeTableRow','downcastDispatcher','getChanges','isEqual','fromRange','findAncestor','first','ELEMENT_TABLE_COLUMN_WITH_TEXT','selectTableRow','insertTableRowAbove','rootName','getChildren','suggestion','nodeAfter','ELEMENT_TABLE_ROW','_getCoordsForCells','element','highest','length','get','min','toLowerCase','afterInit','position','MAX_SAFE_INTEGER','_tableSuggestions','*Insert:*\x20%0','writer','toViewElement','setSelection','isIntersectingWithRange','values','enableCommand','hasAttribute','createPositionAt','root','selection','insertTable','tableRow','commands','substr','getCellLocation','end','*Remove:*\x20%0','push','model','getContainedElement','editor','_splitMarkerName','deletion','addClass','TableEditing','nodeBefore','getChangedMarkers','_setupColumnsRowsFixing','$graveyard','registerElementLabel','selectTableColumn','insertTableColumnLeft','TableUtils','startsWith','discard','plugins','last','MIN_SAFE_INTEGER','maxColumn','$textProxy','rowspan','start','change:data','addMarker:suggestion','ELEMENT_TABLE_COLUMN','insertTableColumnRight','isTouching','createRangeIn','_descriptionFactory','getRowIndexes','name','registerCustomCallback','addRange','left','_getSuggestionCoords','_suggestionFactory','minColumn','execute','join','createTableWalker','removeTableColumn','data','markMultiRangeDeletion','createRangeOn','every','document','getColumnIndexes','classes','isInContent','minRow','some','getRanges','enqueueChange','tablePaste','span','ELEMENT_TABLE_ROW_WITH_TEXT','map','isArray','_tablePostFixingSubtypes','registerPostFixer','cell','add','mapper','from','order','change','low','subType','markMultiRangeInsertion','showSuggestionHighlights'];(function(_0x55576f,_0x26f2ce){const _0xf817ce=function(_0x2b80dd){while(--_0x2b80dd){_0x55576f['push'](_0x55576f['shift']());}};_0xf817ce(++_0x26f2ce);}(_0x26f2,0x1ca));const _0xf817=function(_0x55576f,_0x26f2ce){_0x55576f=_0x55576f-0x0;let _0xf817ce=_0x26f2[_0x55576f];return _0xf817ce;};import{Plugin as _0x31c149}from'ckeditor5/src/core';import{LiveRange as _0x3eb9cb}from'ckeditor5/src/engine';import{setHighlightHandling as _0x8e5c63}from'ckeditor5/src/widget';import{getTranslation as _0x292fe2}from'../utils/common-translations';export default class mt extends _0x31c149{constructor(_0x1d860a){super(_0x1d860a),this[_0xf817('0x52')]=[_0xf817('0xf'),_0xf817('0x70')],this[_0xf817('0x2')]=new Set();}[_0xf817('0x89')](){const _0x14755f=this[_0xf817('0x18')],_0x3f8990=_0x14755f['model'][_0xf817('0x45')]['selection'];if(!_0x14755f['plugins']['has'](_0xf817('0x1c')))return;const _0x2c1680=_0x14755f['locale'],_0x3ccd91=_0x14755f[_0xf817('0x27')]['get']('TrackChangesEditing'),_0xfb155a=_0x14755f[_0xf817('0x27')]['get'](_0xf817('0x24'));_0x3ccd91[_0xf817('0x34')][_0xf817('0x21')]('table',_0x287a50=>_0x292fe2(_0x2c1680,'ELEMENT_TABLE',_0x287a50)),this['_setupColumnsRowsFixing'](),_0x3ccd91[_0xf817('0x9')](_0xf817('0xe')),_0x3ccd91[_0xf817('0x9')](_0xf817('0x7b')),_0x3ccd91[_0xf817('0x9')](_0xf817('0x22'));for(const _0x9bff83 of[_0xf817('0x7c'),'insertTableRowBelow']){const _0x57d631=_0x14755f['commands']['get'](_0x9bff83);_0x3ccd91['enableCommand'](_0x9bff83,_0x23810e=>{_0x14755f[_0xf817('0x16')]['change'](_0x251c14=>{_0x23810e();const _0x1dbef3=_0xf817('0x5f')===_0x57d631[_0xf817('0x58')],_0x5b62bd=_0xfb155a[_0xf817('0x66')](_0x3f8990),_0x53f8c4=_0xfb155a[_0xf817('0x35')](_0x5b62bd),_0x11edeb=_0x1dbef3?_0x53f8c4[_0xf817('0x79')]-0x1:_0x53f8c4[_0xf817('0x28')]+0x1,_0x1c884f=_0x5b62bd[0x0][_0xf817('0x78')](_0xf817('0x64')),_0x494888=_0xfb155a[_0xf817('0x3f')](_0x1c884f,{'startRow':_0x11edeb,'endRow':_0x11edeb}),_0x5b6900=Array[_0xf817('0x57')](_0x494888)[_0xf817('0x50')](_0x1fe723=>_0x251c14['createRangeOn'](_0x1fe723[_0xf817('0x54')]));_0x3ccd91[_0xf817('0x5c')](_0x5b6900,'tableRow');});});}for(const _0x1225b8 of[_0xf817('0x23'),_0xf817('0x31')]){const _0x4d4614=_0x14755f[_0xf817('0x10')][_0xf817('0x86')](_0x1225b8);_0x3ccd91[_0xf817('0x9')](_0x1225b8,_0x3ea190=>{_0x14755f['model'][_0xf817('0x59')](_0x23c7ad=>{_0x3ea190();const _0x1a9b07=_0xf817('0x39')===_0x4d4614['order'],_0xb6930e=_0xfb155a[_0xf817('0x66')](_0x3f8990),_0x17c8d8=_0xfb155a[_0xf817('0x46')](_0xb6930e),_0x1e3cc8=_0x1a9b07?_0x17c8d8[_0xf817('0x79')]-0x1:_0x17c8d8[_0xf817('0x28')]+0x1,_0x5d8d02=_0xb6930e[0x0][_0xf817('0x78')](_0xf817('0x64')),_0xf4aee=_0xfb155a['createTableWalker'](_0x5d8d02,{'startRow':0x0,'column':_0x1e3cc8,'includeAllSlots':!0x1}),_0x27df3b=Array[_0xf817('0x57')](_0xf4aee)[_0xf817('0x50')](_0x455dde=>_0x23c7ad[_0xf817('0x43')](_0x455dde[_0xf817('0x54')]));_0x3ccd91[_0xf817('0x5c')](_0x27df3b,_0xf817('0x70'));});});}for(const _0x545fd7 of[_0xf817('0x73'),_0xf817('0x40')]){const _0x59a173=_0x545fd7[_0xf817('0x11')](0xb),_0x45b5d0=_0x59a173[_0xf817('0x88')](),_0x50738f=_0x45b5d0['substr'](0x0,0x3)+_0xf817('0x4e'),_0x3cdd1c=_0xf817('0x64')+_0x59a173,_0x16a5c8=_0xf817('0x87')+_0x59a173,_0x445588='max'+_0x59a173;_0x3ccd91['enableCommand'](_0x545fd7,()=>{_0x14755f['model'][_0xf817('0x59')](_0x4afb52=>{const _0x695321=_0xfb155a['getSelectionAffectedTableCells'](_0x3f8990),_0x20322c=_0x695321[0x0][_0xf817('0x78')](_0xf817('0x64'));let _0x224449;if(_0xf817('0x73')==_0x545fd7){const _0xe927e1=_0xfb155a['getRowIndexes'](_0x695321);_0x224449={'startRow':_0xe927e1[_0xf817('0x79')],'endRow':_0xe927e1[_0xf817('0x28')],'includeAllSlots':!0x0};}else{const _0x3ac838=_0xfb155a[_0xf817('0x46')](_0x695321);_0x224449={'startColumn':_0x3ac838[_0xf817('0x79')],'endColumn':_0x3ac838[_0xf817('0x28')],'includeAllSlots':!0x0};}const _0x37b81f=_0xfb155a[_0xf817('0x3f')](_0x20322c,_0x224449),_0x588a1c=Array[_0xf817('0x57')](_0x37b81f)[_0xf817('0x50')](({cell:_0x3aebc7})=>_0x3aebc7),_0x3e2247=se(_0x588a1c[_0xf817('0x69')](_0x258bcc=>_0x258bcc['hasAttribute'](_0x50738f))),_0x29545d=se(_0x588a1c['filter'](_0x44bf4d=>!_0x44bf4d['hasAttribute'](_0x50738f)))[_0xf817('0x50')](_0x3b7aec=>_0x4afb52[_0xf817('0x43')](_0x3b7aec)),_0x2f1cd0=_0x3ccd91[_0xf817('0x42')](_0x29545d,_0x3cdd1c);if(_0x2f1cd0&&(_0xf817('0xf')==_0x2f1cd0[_0xf817('0x5b')]||'tableColumn'==_0x2f1cd0[_0xf817('0x5b')])){const _0x30006c=this[_0xf817('0x3a')](_0x2f1cd0);for(const _0x2d117e of _0x3e2247){const _0x11a90f=_0x4afb52[_0xf817('0x43')](_0x2d117e),_0x36c8e5=_0xfb155a[_0xf817('0x12')](_0x2d117e),_0x4681a2=_0x2d117e['getAttribute'](_0x50738f)-0x1,_0x19fbac=_0x30006c[_0x16a5c8],_0x45d042=_0x30006c[_0x445588];_0x19fbac<=_0x36c8e5[_0x45b5d0]&&_0x36c8e5[_0x45b5d0]+_0x4681a2<=_0x45d042&&_0x2f1cd0[_0xf817('0x38')](_0x11a90f);}}});});}function _0x596471(_0xe3e1e2){const _0x362bc5=Array[_0xf817('0x57')](_0x3f8990[_0xf817('0x4b')]())['map'](_0x414240=>_0x3eb9cb[_0xf817('0x77')](_0x414240));_0x14755f[_0xf817('0x16')][_0xf817('0x59')](_0x51a055=>{const _0x15bd95=_0x51a055['batch'];_0xe3e1e2=_0xe3e1e2['filter'](_0x5cabfd=>_0xf817('0x20')!=_0x5cabfd['root'][_0xf817('0x7d')]),_0x51a055['setSelection'](_0xe3e1e2),_0x14755f[_0xf817('0x10')][_0xf817('0x86')]('removeTableRow')[_0xf817('0x65')](),_0x14755f[_0xf817('0x3d')](_0xf817('0x73'),{'forceDefaultExecution':!0x0}),_0x14755f[_0xf817('0x16')][_0xf817('0x4c')](()=>{_0x14755f[_0xf817('0x16')][_0xf817('0x4c')](_0x15bd95,_0x8c1412=>{const _0x1be413=_0x362bc5[_0xf817('0x69')](_0x5265db=>_0xf817('0x20')!=_0x5265db['root'][_0xf817('0x7d')]);_0x1be413[_0xf817('0x85')]>0x0&&_0x8c1412['setSelection'](_0x1be413);for(const _0x593d26 of _0x362bc5)_0x593d26['detach']();});});});}function _0x35c177(_0xd6643c){_0x14755f[_0xf817('0x16')]['change'](_0x297011=>{const _0x579047=Array['from'](_0x3f8990[_0xf817('0x4b')]())[_0xf817('0x50')](_0x1ec121=>_0x3eb9cb[_0xf817('0x77')](_0x1ec121)),_0xdd3aac=[];for(const _0x5b2919 of _0xd6643c)for(const _0x296e30 of _0x5b2919[_0xf817('0x60')]({'shallow':!0x0}))_0xdd3aac[_0xf817('0x15')](_0x296e30);for(const _0x467f06 of _0xdd3aac)_0xf817('0x20')!=_0x467f06[_0xf817('0xc')][_0xf817('0x7d')]&&(_0x297011['setSelection'](_0x297011[_0xf817('0xb')](_0x467f06,0x0)),_0x14755f[_0xf817('0x10')][_0xf817('0x86')](_0xf817('0x40'))[_0xf817('0x65')](),_0x14755f[_0xf817('0x3d')](_0xf817('0x40'),{'forceDefaultExecution':!0x0}));const _0x5609df=_0x579047[_0xf817('0x69')](_0x1a36ae=>_0xf817('0x20')!=_0x1a36ae[_0xf817('0xc')][_0xf817('0x7d')]);_0x5609df[_0xf817('0x85')]>0x0&&_0x297011[_0xf817('0x6')](_0x5609df);for(const _0x16aa4f of _0x579047)_0x16aa4f['detach']();});}function _0x3142d7(_0x49d734,_0x29bf41){return _0x29bf41[_0xf817('0x44')](_0xf418b1=>_0x49d734[_0xf817('0x4a')](_0x64e547=>_0x64e547['end'][_0xf817('0x76')](_0xf418b1[_0xf817('0x2d')])||_0xf418b1[_0xf817('0x13')][_0xf817('0x76')](_0x64e547[_0xf817('0x2d')])));}function _0xfe1fbd(_0x4078fe,_0x288143){return _0x4078fe['some'](_0x1f3ed0=>_0x288143[_0xf817('0x4a')](_0x178891=>_0x1f3ed0[_0xf817('0x13')][_0xf817('0x32')](_0x178891[_0xf817('0x2d')])));}_0x14755f['data'][_0xf817('0x74')]['on'](_0xf817('0x2f'),(_0x3b49a4,_0x2d25f3,_0x15b013)=>{if(!_0x15b013['options'][_0xf817('0x5d')])return;const _0x282451=_0x2d25f3['item'];if(!_0x282451)return;const _0x463271=_0x15b013[_0xf817('0x56')][_0xf817('0x5')](_0x282451);function _0x3d29bf(_0x172ced){return Array[_0xf817('0x51')](_0x172ced)?_0x172ced:[_0x172ced];}_0x463271&&'tableCell'===_0x282451[_0xf817('0x36')]&&_0x8e5c63(_0x463271,_0x15b013[_0xf817('0x4')],(_0x3ce190,_0x47c71d,_0x538e9b)=>_0x538e9b[_0xf817('0x1b')](_0x3d29bf(_0x47c71d[_0xf817('0x47')]),_0x3ce190),(_0x56820a,_0x4e1d87,_0x4c9448)=>_0x4c9448['removeClass'](_0x3d29bf(_0x4e1d87['classes']),_0x56820a));},{'priority':_0xf817('0x84')}),_0x3ccd91['_descriptionFactory'][_0xf817('0x68')](_0x53479e=>{if(_0xf817('0x61')!=_0x53479e[_0xf817('0x6c')]&&_0xf817('0x1a')!=_0x53479e[_0xf817('0x6c')])return;const _0x1668b7=_0x53479e[_0xf817('0x17')]();if(null!=_0x1668b7&&_0x1668b7['is'](_0xf817('0x83'),'table')){if(_0xf817('0x61')==_0x53479e[_0xf817('0x6c')]){const _0x5d2d42=_0x53479e[_0xf817('0x60')]()[_0xf817('0x69')](_0x55aa50=>_0x55aa50['is'](_0xf817('0x2b')))[_0xf817('0x50')](_0x35f388=>_0x35f388[_0xf817('0x41')]);if(_0x5d2d42[_0xf817('0x85')])return{'type':'insertion','content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x6b'),'\x22'+_0x5d2d42[_0xf817('0x3e')]('\x20')+'\x22'))};}if('deletion'==_0x53479e[_0xf817('0x6c')]){const _0x524c94=_0x53479e[_0xf817('0x60')]()['filter'](_0x4bcf96=>_0x4bcf96['is']('$textProxy'))['map'](_0x38339e=>_0x38339e[_0xf817('0x41')]);if(_0x524c94[_0xf817('0x85')])return{'type':_0xf817('0x1a'),'content':_0x292fe2(_0x2c1680,_0xf817('0x14'),_0x292fe2(_0x2c1680,_0xf817('0x6b'),'\x22'+_0x524c94[_0xf817('0x3e')]('\x20')+'\x22'))};}}}),_0x3ccd91[_0xf817('0x34')][_0xf817('0x68')](_0x580598=>{if(_0xf817('0xf')==_0x580598['subType']){const _0x1f7f58=_0x580598[_0xf817('0x60')]()[_0xf817('0x69')](_0x42f7be=>_0x42f7be['is'](_0xf817('0x2b')))[_0xf817('0x50')](_0x5dce4a=>_0x5dce4a[_0xf817('0x41')]),_0x3a4003=this[_0xf817('0x3a')](_0x580598),_0x52b446=_0x3a4003['maxRow']-_0x3a4003[_0xf817('0x49')]+0x1;if(_0xf817('0x61')==_0x580598['type'])return _0x1f7f58[_0xf817('0x85')]?{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x4f'),[_0x52b446,'\x22'+_0x1f7f58[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x81'),_0x52b446))};if(_0xf817('0x1a')==_0x580598[_0xf817('0x6c')])return _0x1f7f58[_0xf817('0x85')]?{'type':'deletion','content':_0x292fe2(_0x2c1680,'*Remove:*\x20%0',_0x292fe2(_0x2c1680,_0xf817('0x4f'),[_0x52b446,'\x22'+_0x1f7f58[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x1a'),'content':_0x292fe2(_0x2c1680,_0xf817('0x14'),_0x292fe2(_0x2c1680,_0xf817('0x81'),_0x52b446))};}if('tableColumn'==_0x580598[_0xf817('0x5b')]){const _0x382e2c=_0x580598['getItems']()[_0xf817('0x69')](_0x57971d=>_0x57971d['is'](_0xf817('0x2b')))[_0xf817('0x50')](_0x19e39a=>_0x19e39a['data']),_0x294a29=this['_getSuggestionCoords'](_0x580598),_0x20a105=_0x294a29[_0xf817('0x2a')]-_0x294a29[_0xf817('0x3c')]+0x1;if(_0xf817('0x61')==_0x580598['type'])return _0x382e2c[_0xf817('0x85')]?{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x7a'),[_0x20a105,'\x22'+_0x382e2c[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x61'),'content':_0x292fe2(_0x2c1680,_0xf817('0x3'),_0x292fe2(_0x2c1680,_0xf817('0x30'),_0x20a105))};if('deletion'==_0x580598[_0xf817('0x6c')])return _0x382e2c[_0xf817('0x85')]?{'type':'deletion','content':_0x292fe2(_0x2c1680,'*Remove:*\x20%0',_0x292fe2(_0x2c1680,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20a105,'\x22'+_0x382e2c[_0xf817('0x3e')]('\x20')+'\x22']))}:{'type':_0xf817('0x1a'),'content':_0x292fe2(_0x2c1680,_0xf817('0x14'),_0x292fe2(_0x2c1680,_0xf817('0x30'),_0x20a105))};}}),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x61'),_0xf817('0xf'),_0xf817('0x26'),_0x596471),_0x3ccd91[_0xf817('0x3b')]['registerCustomCallback'](_0xf817('0x1a'),_0xf817('0xf'),_0xf817('0x72'),_0x596471),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x61'),_0xf817('0x70'),_0xf817('0x26'),_0x35c177),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x1a'),'tableColumn',_0xf817('0x72'),_0x35c177),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x61'),_0xf817('0x70'),_0xf817('0x3e'),_0x3142d7),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x1a'),_0xf817('0x70'),'join',_0x3142d7),_0x3ccd91[_0xf817('0x3b')]['registerCustomCallback']('insertion',_0xf817('0xf'),_0xf817('0x3e'),_0xfe1fbd),_0x3ccd91[_0xf817('0x3b')][_0xf817('0x37')](_0xf817('0x1a'),_0xf817('0xf'),_0xf817('0x3e'),_0xfe1fbd);}[_0xf817('0x6d')](){const _0x103351=this['editor'],_0x4c13fa=_0x103351[_0xf817('0x16')][_0xf817('0x45')][_0xf817('0xd')];return(_0x5c4dc3,_0x3dab7f)=>{_0x103351[_0xf817('0x16')]['change'](_0x33e698=>{const {commandName:_0x10ace4,commandParams:_0x20cc93}=_0x3dab7f;let _0x4af872=_0x5c4dc3[0x0][_0xf817('0x13')][_0xf817('0x1d')];_0x20cc93&&_0x20cc93[0x0]&&!0x1===_0x20cc93[0x0][_0xf817('0x63')]&&(_0x4af872=_0x5c4dc3[0x0][_0xf817('0x2d')][_0xf817('0x80')]);const _0x469606=_0x33e698[_0xf817('0x33')](_0x4af872);if(_0xf817('0x20')==_0x469606['root'][_0xf817('0x7d')])return;const _0x2b1554=Array[_0xf817('0x57')](_0x4c13fa['getRanges']())[_0xf817('0x50')](_0x1d1953=>_0x3eb9cb[_0xf817('0x77')](_0x1d1953));_0x33e698[_0xf817('0x6')](_0x469606),_0x103351[_0xf817('0x10')]['get'](_0x10ace4)['refresh'](),_0x20cc93[_0xf817('0x15')]({'forceDefaultExecution':!0x0}),_0x103351['execute'](_0x10ace4,..._0x20cc93);const _0x52a245=_0x2b1554[_0xf817('0x69')](_0x4018f3=>_0xf817('0x20')!=_0x4018f3[_0xf817('0xc')][_0xf817('0x7d')]);_0x52a245['length']>0x0&&_0x33e698[_0xf817('0x6')](_0x52a245);for(const _0x1469f2 of _0x2b1554)_0x1469f2[_0xf817('0x62')]();});};}['_getCoordsForCells'](_0xb3baf5){const _0x442b3e=this[_0xf817('0x18')]['plugins'][_0xf817('0x86')](_0xf817('0x24'));let _0x2cd05=Number[_0xf817('0x1')],_0x1a3044=Number[_0xf817('0x29')],_0x36a935=Number[_0xf817('0x1')],_0x1981bf=Number[_0xf817('0x29')];for(const _0x53795f of _0xb3baf5){if(_0xf817('0x20')==_0x53795f['root']['rootName'])continue;const {row:_0x25054b,column:_0x54c7dd}=_0x442b3e[_0xf817('0x12')](_0x53795f),_0x8ad2=_0x53795f['hasAttribute'](_0xf817('0x2c'))?_0x53795f[_0xf817('0x5e')](_0xf817('0x2c'))-0x1:0x0,_0x58005f=_0x53795f[_0xf817('0xa')](_0xf817('0x6e'))?_0x53795f[_0xf817('0x5e')](_0xf817('0x6e'))-0x1:0x0;_0x2cd05=_0x25054b<_0x2cd05?_0x25054b:_0x2cd05,_0x1a3044=_0x25054b+_0x8ad2>_0x1a3044?_0x25054b+_0x8ad2:_0x1a3044,_0x36a935=_0x54c7dd<_0x36a935?_0x54c7dd:_0x36a935,_0x1981bf=_0x54c7dd+_0x58005f>_0x1981bf?_0x54c7dd+_0x58005f:_0x1981bf;}return{'minRow':_0x2cd05,'maxRow':_0x1a3044,'minColumn':_0x36a935,'maxColumn':_0x1981bf};}[_0xf817('0x1f')](){const _0x1c0cdd=this[_0xf817('0x18')],_0x5756db=_0x1c0cdd[_0xf817('0x27')][_0xf817('0x86')]('TrackChangesEditing'),_0x42bade=_0x1c0cdd['plugins'][_0xf817('0x86')]('TableUtils');_0x1c0cdd[_0xf817('0x16')][_0xf817('0x45')]['on'](_0xf817('0x2e'),()=>{const _0x14577d=Array[_0xf817('0x57')](_0x1c0cdd[_0xf817('0x16')][_0xf817('0x45')]['differ'][_0xf817('0x1e')]());for(const {name:_0x2bc357,data:_0x3f685f}of _0x14577d){const {group:_0x4c16b4,id:_0x128d9a,subType:_0x437ce3}=_0x5756db[_0xf817('0x19')](_0x2bc357);if(_0xf817('0x7f')!=_0x4c16b4)continue;if(null!=_0x3f685f[_0xf817('0x71')])continue;const _0x4f2f7a=_0x5756db['getSuggestion'](_0x128d9a);this['_tablePostFixingSubtypes']['includes'](_0x437ce3)&&this[_0xf817('0x2')][_0xf817('0x55')](_0x4f2f7a);}},{'priority':_0xf817('0x5a')});const _0x5b85e1=(_0x308e6f,_0xcb626c)=>{let _0xcf17bc=!0x1;const _0x1d30a9=_0xcb626c[_0xf817('0x43')](_0x308e6f),_0x3dee9e=_0x308e6f['findAncestor'](_0xf817('0x64')),_0x4a1083=_0x42bade[_0xf817('0x12')](_0x308e6f);for(const _0x447edc of this['_tableSuggestions']){const _0x4c9cdf=_0x447edc['subType'],_0x4b0c75=_0x4c9cdf[_0xf817('0x25')](_0xf817('0x4d')),_0x33fcfd=_0x4c9cdf['substr'](_0x4b0c75?0xa:0x5),_0x33bfcf=_0x33fcfd['toLowerCase'](),_0x19998d=_0x33bfcf['substr'](0x0,0x3)+_0xf817('0x4e'),_0x19898e=_0xf817('0x87')+_0x33fcfd,_0x258df5='max'+_0x33fcfd;if(!_0x447edc[_0xf817('0x48')])continue;if(_0x3dee9e!=_0x447edc[_0xf817('0x67')]()['start'][_0xf817('0x78')](_0xf817('0x64')))continue;if(_0x447edc[_0xf817('0x7')](_0x1d30a9))continue;const _0x5f5769=_0x308e6f[_0xf817('0xa')](_0x19998d)?_0x308e6f[_0xf817('0x5e')](_0x19998d)-0x1:0x0,_0x3661f7=this[_0xf817('0x3a')](_0x447edc),_0x5072b3=_0x3661f7[_0x19898e],_0x46daa7=_0x3661f7[_0x258df5];_0x5072b3<=_0x4a1083[_0x33bfcf]&&_0x4a1083[_0x33bfcf]+_0x5f5769<=_0x46daa7&&(_0x447edc[_0xf817('0x38')](_0x1d30a9),_0xcf17bc=!0x0);}return _0xcf17bc;};_0x1c0cdd[_0xf817('0x16')][_0xf817('0x45')][_0xf817('0x53')](_0x407c60=>{let _0x4857ac=!0x1;for(const _0x548d11 of _0x1c0cdd[_0xf817('0x16')]['document'][_0xf817('0x6f')][_0xf817('0x75')]())if('insert'==_0x548d11[_0xf817('0x6c')]){if('tableRow'==_0x548d11[_0xf817('0x36')])for(const _0x126ad0 of _0x548d11[_0xf817('0x0')]['nodeAfter'][_0xf817('0x7e')]())_0x4857ac=_0x4857ac||_0x5b85e1(_0x126ad0,_0x407c60);else _0xf817('0x6a')==_0x548d11[_0xf817('0x36')]&&(_0x4857ac=_0x4857ac||_0x5b85e1(_0x548d11[_0xf817('0x0')][_0xf817('0x80')],_0x407c60));}return _0x4857ac;});}[_0xf817('0x3a')](_0x496abb){return this[_0xf817('0x82')](_0x496abb[_0xf817('0x4b')]()[_0xf817('0x50')](_0x2554f1=>_0x2554f1[_0xf817('0x2d')][_0xf817('0x80')]));}}function se(_0x3d11a8){return Array['from'](new Set(_0x3d11a8)[_0xf817('0x8')]());}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/tablecaption
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import TrackChangesTable from './table';
|
|
6
|
-
/**
|
|
7
|
-
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
8
|
-
*/
|
|
9
|
-
export default class TrackChangesTableCaption extends Plugin {
|
|
10
|
-
/**
|
|
11
|
-
* @inheritDoc
|
|
12
|
-
*/
|
|
13
|
-
static get requires(): readonly [typeof TrackChangesTable];
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
afterInit(): void;
|
|
18
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tablecaption
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import TrackChangesTable from './table';
|
|
6
|
+
/**
|
|
7
|
+
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesTableCaption extends Plugin {
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
afterInit(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28ef=['TableCaptionEditing','afterInit','editor','has','get','toggleTableCaption','plugins','enableCommand'];(function(_0xba2780,_0x28ef50){const _0x537ff2=function(_0x1a00d4){while(--_0x1a00d4){_0xba2780['push'](_0xba2780['shift']());}};_0x537ff2(++_0x28ef50);}(_0x28ef,0x94));const _0x537f=function(_0xba2780,_0x28ef50){_0xba2780=_0xba2780-0x0;let _0x537ff2=_0x28ef[_0xba2780];return _0x537ff2;};import{Plugin as _0xa9fbcc}from'ckeditor5/src/core';import _0x22fb20 from'./table';export default class vt extends _0xa9fbcc{static get['requires'](){return[_0x22fb20];}[_0x537f('0x5')](){const _0x37ecbb=this[_0x537f('0x6')];if(!_0x37ecbb['plugins'][_0x537f('0x7')](_0x537f('0x4')))return;_0x37ecbb[_0x537f('0x2')][_0x537f('0x0')]('TrackChangesEditing')[_0x537f('0x3')](_0x537f('0x1'));}}
|