@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230803.0 → 0.0.0-nightly-20230805.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -7
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24cd=['commandName','get','_getSuggestionBlocksForListStyle','styles','*Format:*\x20set\x20order\x20to\x20reversed','getLastPosition','commandParams','toUpperCase','enableCommand','handleListReversedCommand','list.properties','listItem','numbered','listType','before','listStyle','config','listReversed','handleDescriptions','locale','reversed','push','length','type','*Format:*\x20set\x20start\x20index\x20to\x20%0','backward','model','ListUtils','handleListStyleCommand','format','element','handleListStartCommand','filter','registerDescriptionCallback','getAttribute','map','createRange','startIndex','_descriptionFactory','TrackChangesEditing','editor','*Format:*\x20set\x20order\x20to\x20regular','getSelectedBlocks','selection','getSiblingNodes','getFirstPosition','document','markMultiRangeBlockFormat','_getSuggestionBlocks','ELEMENT_','bind','change','ListPropertiesEditing','from','createPositionAt','listStart','plugins','_getTranslationKeyForListStyle'];(function(_0x59575f,_0x24cdef){const _0x14c713=function(_0x56b10c){while(--_0x56b10c){_0x59575f['push'](_0x59575f['shift']());}};_0x14c713(++_0x24cdef);}(_0x24cd,0x1db));const _0x14c7=function(_0x59575f,_0x24cdef){_0x59575f=_0x59575f-0x0;let _0x14c713=_0x24cd[_0x59575f];return _0x14c713;};import{Plugin as _0x37d381}from'ckeditor5/src/core';import{getTranslation as _0x2251d9}from'../utils/common-translations';export default class nt extends _0x37d381{['afterInit'](){if(!this[_0x14c7('0x1d')][_0x14c7('0x2d')]['has'](_0x14c7('0x29')))return;const _0x58b8ba=this[_0x14c7('0x1d')][_0x14c7('0x5')]['get'](_0x14c7('0x39')),_0x2b9ef9=this['editor'][_0x14c7('0x2d')][_0x14c7('0x30')](_0x14c7('0x1c'));_0x58b8ba[_0x14c7('0x32')]&&_0x2b9ef9[_0x14c7('0x37')](_0x14c7('0x4'),this[_0x14c7('0x11')][_0x14c7('0x27')](this)),_0x58b8ba[_0x14c7('0x9')]&&_0x2b9ef9[_0x14c7('0x37')]('listReversed',this[_0x14c7('0x38')][_0x14c7('0x27')](this)),_0x58b8ba['startIndex']&&_0x2b9ef9[_0x14c7('0x37')]('listStart',this[_0x14c7('0x14')][_0x14c7('0x27')](this)),_0x2b9ef9[_0x14c7('0x1b')][_0x14c7('0x16')](this[_0x14c7('0x7')][_0x14c7('0x27')](this));}['handleListStyleCommand'](_0x1047e8,_0x164881={}){const _0x224e92=this[_0x14c7('0x1d')]['plugins'][_0x14c7('0x30')](_0x14c7('0x1c')),_0x566b42=this[_0x14c7('0x31')]();this[_0x14c7('0x1d')][_0x14c7('0xf')][_0x14c7('0x28')](()=>{_0x224e92['markMultiRangeBlockFormat'](_0x566b42,{'commandName':'listStyle','commandParams':[{'type':_0x164881[_0x14c7('0xc')]}],'formatGroupId':_0x14c7('0x4')});});}[_0x14c7('0x38')](_0x44d7bc,_0x4cb10a={}){const _0x146bc8=this[_0x14c7('0x1d')][_0x14c7('0x2d')][_0x14c7('0x30')](_0x14c7('0x1c')),_0x417ac3=this[_0x14c7('0x25')](_0x409128=>_0x409128['is'](_0x14c7('0x13'),_0x14c7('0x0'))&&_0x14c7('0x1')===_0x409128[_0x14c7('0x17')]('listType'));if(_0x417ac3[_0x14c7('0xb')]<0x1)return;const _0x4811e0=_0x417ac3[_0x14c7('0x18')](_0x439c6c=>this['editor']['model'][_0x14c7('0x19')](this['editor'][_0x14c7('0xf')]['createPositionAt'](_0x439c6c,_0x14c7('0x3')),this[_0x14c7('0x1d')]['model'][_0x14c7('0x2b')](_0x439c6c,0x0)));this[_0x14c7('0x1d')]['model'][_0x14c7('0x28')](()=>{_0x146bc8[_0x14c7('0x24')](_0x4811e0,{'commandName':_0x14c7('0x6'),'commandParams':[{'reversed':_0x4cb10a['reversed']}],'formatGroupId':_0x14c7('0x6')});});}['handleListStartCommand'](_0x451505,_0x2a323d={}){const _0x43138d=this[_0x14c7('0x1d')][_0x14c7('0x2d')][_0x14c7('0x30')](_0x14c7('0x1c')),_0x562622=this['_getSuggestionBlocks'](_0x4bf650=>_0x4bf650['is'](_0x14c7('0x13'),'listItem')&&'numbered'===_0x4bf650[_0x14c7('0x17')](_0x14c7('0x2')));if(_0x562622[_0x14c7('0xb')]<0x1)return;const _0x1b8b9e=_0x562622[_0x14c7('0x18')](_0x3a6d46=>this[_0x14c7('0x1d')][_0x14c7('0xf')][_0x14c7('0x19')](this[_0x14c7('0x1d')][_0x14c7('0xf')][_0x14c7('0x2b')](_0x3a6d46,_0x14c7('0x3')),this[_0x14c7('0x1d')][_0x14c7('0xf')][_0x14c7('0x2b')](_0x3a6d46,0x0)));this[_0x14c7('0x1d')][_0x14c7('0xf')][_0x14c7('0x28')](()=>{_0x43138d[_0x14c7('0x24')](_0x1b8b9e,{'commandName':_0x14c7('0x2c'),'commandParams':[{'startIndex':_0x2a323d['startIndex']}],'formatGroupId':_0x14c7('0x2c')});});}['handleDescriptions'](_0x298cb6){const _0x447613=this[_0x14c7('0x1d')][_0x14c7('0x8')],{data:_0x6f2ba}=_0x298cb6;if(!_0x6f2ba)return;let _0x21ef45,_0x1fdfc6;switch(_0x6f2ba[_0x14c7('0x2f')]){case _0x14c7('0x4'):_0x21ef45='*Change\x20to:*\x20%0',_0x1fdfc6={'type':_0x14c7('0x12'),'content':_0x2251d9(_0x447613,_0x21ef45,_0x2251d9(_0x447613,this['_getTranslationKeyForListStyle'](_0x6f2ba[_0x14c7('0x35')][0x0][_0x14c7('0xc')])))};break;case _0x14c7('0x6'):_0x21ef45=_0x6f2ba[_0x14c7('0x35')][0x0]['reversed']?_0x14c7('0x33'):_0x14c7('0x1e'),_0x1fdfc6={'type':'format','content':_0x2251d9(_0x447613,_0x21ef45)};break;case'listStart':_0x21ef45=_0x14c7('0xd'),_0x1fdfc6={'type':_0x14c7('0x12'),'content':_0x2251d9(_0x447613,_0x21ef45,_0x6f2ba[_0x14c7('0x35')][0x0][_0x14c7('0x1a')])};}return _0x1fdfc6;}[_0x14c7('0x31')](){var _0xed957b,_0x88240a,_0x1aa484,_0x293669;const _0x49f234=this[_0x14c7('0x1d')][_0x14c7('0x2d')][_0x14c7('0x30')](_0x14c7('0x10'));let _0x352eb2=Array[_0x14c7('0x2a')](this['editor'][_0x14c7('0xf')][_0x14c7('0x23')][_0x14c7('0x20')][_0x14c7('0x1f')]());return(null===(_0xed957b=_0x352eb2[0x0])||void 0x0===_0xed957b?void 0x0:_0xed957b['is'](_0x14c7('0x13'),_0x14c7('0x0')))&&_0x352eb2['unshift'](..._0x49f234[_0x14c7('0x21')](this[_0x14c7('0x1d')][_0x14c7('0xf')][_0x14c7('0x23')]['selection'][_0x14c7('0x22')](),_0x14c7('0xe'))),(null===(_0x88240a=_0x352eb2[_0x352eb2[_0x14c7('0xb')]-0x1])||void 0x0===_0x88240a?void 0x0:_0x88240a['is'](_0x14c7('0x13'),'listItem'))&&_0x352eb2[_0x14c7('0xa')](..._0x49f234[_0x14c7('0x21')](this['editor']['model'][_0x14c7('0x23')][_0x14c7('0x20')][_0x14c7('0x34')](),'forward')),_0x352eb2=[...new Set(_0x352eb2)],(null===(_0x293669=null===(_0x1aa484=this[_0x14c7('0x1d')]['model'][_0x14c7('0x23')]['selection'][_0x14c7('0x22')]())||void 0x0===_0x1aa484?void 0x0:_0x1aa484['parent'])||void 0x0===_0x293669?void 0x0:_0x293669['is'](_0x14c7('0x13'),'listItem'))&&(_0x352eb2=_0x352eb2['filter'](_0x51ccfa=>_0x51ccfa['is']('element',_0x14c7('0x0')))),_0x352eb2;}[_0x14c7('0x25')](_0x3a3ffe){const _0x132cc1=this[_0x14c7('0x1d')][_0x14c7('0x2d')][_0x14c7('0x30')](_0x14c7('0x10'));let _0x2e638e=Array[_0x14c7('0x2a')](this[_0x14c7('0x1d')]['model']['document'][_0x14c7('0x20')][_0x14c7('0x1f')]())[_0x14c7('0x15')](_0x3a3ffe)[_0x14c7('0x18')](_0x422b86=>{const _0x4b93fd=this[_0x14c7('0x1d')]['model'][_0x14c7('0x2b')](_0x422b86,0x0);return[..._0x132cc1[_0x14c7('0x21')](_0x4b93fd,_0x14c7('0xe')),..._0x132cc1[_0x14c7('0x21')](_0x4b93fd,'forward')];})['flat']();return _0x2e638e=[...new Set(_0x2e638e)],_0x2e638e;}[_0x14c7('0x2e')](_0x4cf0b0){return _0x14c7('0x26')+this[_0x14c7('0x1d')][_0x14c7('0x2d')][_0x14c7('0x30')](_0x14c7('0x10'))['getListTypeFromListStyleType'](_0x4cf0b0)[_0x14c7('0x36')]()+'_LIST_'+_0x4cf0b0[_0x14c7('0x36')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bff=['elementToElement','_descriptionFactory','high','attribute:url:media','afterInit','enableCommand','has','mediaEmbed','stop','data','TrackChangesEditing','get','plugins','createEmptyElement','registerElementLabel','ELEMENT_MEDIA','showSuggestionHighlights','downcastDispatcher','dataDowncast','media','options','for'];(function(_0x41a9b8,_0x1bff53){const _0x9ae2f=function(_0x5edab7){while(--_0x5edab7){_0x41a9b8['push'](_0x41a9b8['shift']());}};_0x9ae2f(++_0x1bff53);}(_0x1bff,0x178));const _0x9ae2=function(_0x41a9b8,_0x1bff53){_0x41a9b8=_0x41a9b8-0x0;let _0x9ae2f=_0x1bff[_0x41a9b8];return _0x9ae2f;};import{Plugin as _0x36124c}from'ckeditor5/src/core';import{getTranslation as _0x1e1abc}from'../utils/common-translations';export default class ot extends _0x36124c{[_0x9ae2('0x2')](){const _0x57ef0b=this['editor'];if(!_0x57ef0b[_0x9ae2('0xa')][_0x9ae2('0x4')]('MediaEmbedEditing'))return;const _0x3a422b=_0x57ef0b[_0x9ae2('0xa')][_0x9ae2('0x9')](_0x9ae2('0x8')),_0x349cf9=_0x57ef0b['locale'];_0x3a422b[_0x9ae2('0x3')](_0x9ae2('0x5')),_0x3a422b[_0x9ae2('0x15')][_0x9ae2('0xc')](_0x9ae2('0x11'),_0x4dbcd3=>_0x1e1abc(_0x349cf9,_0x9ae2('0xd'),_0x4dbcd3)),_0x57ef0b['conversion'][_0x9ae2('0x13')](_0x9ae2('0x10'))[_0x9ae2('0x14')]({'model':_0x9ae2('0x11'),'view':(_0x422006,{writer:_0x253cf4,options:_0x46cfeb})=>{if(_0x46cfeb[_0x9ae2('0xe')])return _0x253cf4[_0x9ae2('0xb')]('div');},'converterPriority':_0x9ae2('0x0')}),_0x57ef0b[_0x9ae2('0x7')][_0x9ae2('0xf')]['on'](_0x9ae2('0x1'),(_0x482fe6,_0x268a6c,_0x58a3bc)=>{_0x58a3bc[_0x9ae2('0x12')]['showSuggestionHighlights']&&_0x482fe6[_0x9ae2('0x6')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20f4=['has','editor','TrackChangesEditing','plugins','enableCommand','MentionEditing'];(function(_0x7fa710,_0x20f46d){const _0xa71aa9=function(_0x121d82){while(--_0x121d82){_0x7fa710['push'](_0x7fa710['shift']());}};_0xa71aa9(++_0x20f46d);}(_0x20f4,0x85));const _0xa71a=function(_0x7fa710,_0x20f46d){_0x7fa710=_0x7fa710-0x0;let _0xa71aa9=_0x20f4[_0x7fa710];return _0xa71aa9;};import{Plugin as _0x55343d}from'ckeditor5/src/core';export default class rt extends _0x55343d{['afterInit'](){const _0x1ba7fb=this[_0xa71a('0x0')];_0x1ba7fb[_0xa71a('0x2')][_0xa71a('0x5')](_0xa71a('0x4'))&&_0x1ba7fb[_0xa71a('0x2')]['get'](_0xa71a('0x1'))[_0xa71a('0x3')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a28=['enableCommand','ELEMENT_PAGE_BREAK','plugins','PageBreakEditing','registerElementLabel','TrackChangesEditing','locale','pageBreak','editor','afterInit','get'];(function(_0x3cd86d,_0x4a2854){const _0x3c2df8=function(_0x4213e5){while(--_0x4213e5){_0x3cd86d['push'](_0x3cd86d['shift']());}};_0x3c2df8(++_0x4a2854);}(_0x4a28,0x163));const _0x3c2d=function(_0x3cd86d,_0x4a2854){_0x3cd86d=_0x3cd86d-0x0;let _0x3c2df8=_0x4a28[_0x3cd86d];return _0x3c2df8;};import{Plugin as _0x52b665}from'ckeditor5/src/core';import{getTranslation as _0x1c0efa}from'../utils/common-translations';export default class at extends _0x52b665{[_0x3c2d('0x6')](){const _0x54fc42=this[_0x3c2d('0x5')];if(!_0x54fc42['plugins']['has'](_0x3c2d('0x0')))return;_0x54fc42[_0x3c2d('0xa')][_0x3c2d('0x7')](_0x3c2d('0x2'))[_0x3c2d('0x8')](_0x3c2d('0x4'));const _0x1d03af=_0x54fc42[_0x3c2d('0xa')]['get'](_0x3c2d('0x2')),_0x598aec=_0x54fc42[_0x3c2d('0x3')];_0x1d03af['_descriptionFactory'][_0x3c2d('0x1')]('pageBreak',_0xc32b66=>_0x1c0efa(_0x598aec,_0x3c2d('0x9'),_0xc32b66));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5947=['ck-suggestion-marker-split','includes','registerDescriptionCallback','enableCommand','insertParagraph','markerRange','nodeAfter','has','addMarker:suggestion:insertion','Paragraph','data','toViewPosition','get','$text','plugins','ck-suggestion-marker--active','checkChild','selection','*Change\x20to:*\x20%0','downcastDispatcher','start','TrackChangesEditing','span','schema','locale','writer','parent','model','commandName','paragraph','createUIElement','*Insert:*\x20%0','highest','format','ELEMENT_PARAGRAPH','getFirstRange','insert','mapper','markerName','name','consumable','consume','isBlock','document','markBlockFormat','isObject','_descriptionFactory','options','isLimit','insertion','editor','editing','showSuggestionHighlights','bindElementToMarker','type','activeMarkers','end'];(function(_0x4d5305,_0x5947d4){const _0x39df93=function(_0x30f952){while(--_0x30f952){_0x4d5305['push'](_0x4d5305['shift']());}};_0x39df93(++_0x5947d4);}(_0x5947,0x1a9));const _0x39df=function(_0x4d5305,_0x5947d4){_0x4d5305=_0x4d5305-0x0;let _0x39df93=_0x5947[_0x4d5305];return _0x39df93;};import{Plugin as _0x128d1a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3501c0}from'./utils';import{getTranslation as _0x1911d3}from'../utils/common-translations';export default class ct extends _0x128d1a{['afterInit'](){const _0x12b44d=this[_0x39df('0x18')];if(!_0x12b44d['plugins'][_0x39df('0x26')](_0x39df('0x28')))return;const _0xb8847f=_0x12b44d[_0x39df('0x37')],_0x46d8fd=_0x12b44d[_0x39df('0x2d')][_0x39df('0x2b')](_0x39df('0x34'));_0x46d8fd[_0x39df('0x14')]['registerElementLabel'](_0x39df('0x3'),_0x3ea688=>_0x1911d3(_0xb8847f,_0x39df('0x8'),_0x3ea688)),_0x46d8fd[_0x39df('0x22')](_0x39df('0x3'),(_0x26c69b,_0x4fe105={})=>{const _0x470acb=_0x12b44d[_0x39df('0x1')][_0x39df('0x11')],_0x1b1e32=_0x4fe105['selection']||_0x470acb[_0x39df('0x30')],_0x4e5013=Array['from'](_0x1b1e32['getSelectedBlocks']())['filter'](_0x2ecfa7=>function(_0x2e1d09,_0x38e15a){return _0x38e15a[_0x39df('0x2f')](_0x2e1d09[_0x39df('0x0')],_0x39df('0x3'))&&!_0x38e15a[_0x39df('0x13')](_0x2e1d09)&&'paragraph'!=_0x2e1d09[_0x39df('0xd')];}(_0x2ecfa7,this[_0x39df('0x18')]['model'][_0x39df('0x36')]));_0x12b44d[_0x39df('0x1')]['change'](()=>{for(const _0x35298d of _0x4e5013)_0x46d8fd[_0x39df('0x12')](_0x35298d,{'commandName':'paragraph','commandParams':[],'formatGroupId':'blockName'},_0x3501c0(_0x35298d));});}),_0x46d8fd[_0x39df('0x14')][_0x39df('0x21')](_0x12c28a=>{const {data:_0x409a21}=_0x12c28a;if(_0x409a21&&_0x39df('0x3')==_0x409a21[_0x39df('0x2')])return{'type':_0x39df('0x7'),'content':_0x1911d3(_0xb8847f,_0x39df('0x31'),_0x1911d3(_0xb8847f,'ELEMENT_PARAGRAPH'))};}),_0x46d8fd['enableCommand'](_0x39df('0x23')),_0x12b44d[_0x39df('0x19')][_0x39df('0x32')]['on'](_0x39df('0x27'),ar(_0x12b44d),{'priority':_0x39df('0x6')}),_0x12b44d[_0x39df('0x29')][_0x39df('0x32')]['on']('addMarker:suggestion:insertion',(_0x290e24,_0x4745db,_0x478ffc)=>{_0x478ffc[_0x39df('0x15')][_0x39df('0x1a')]&&ar(_0x12b44d,{'showActiveMarker':!0x1})(_0x290e24,_0x4745db,_0x478ffc);},{'priority':_0x39df('0x6')});const _0x1b7ca2=_0x46d8fd[_0x39df('0x14')];_0x1b7ca2[_0x39df('0x21')](_0x541a6c=>{if(_0x39df('0x17')!==_0x541a6c[_0x39df('0x1c')])return;const {start:_0x122491,end:_0x5b2122}=_0x541a6c[_0x39df('0x9')]();if(!_0x122491['isTouching'](_0x5b2122)||!_0x122491[_0x39df('0x25')])return;const _0x337e8f=_0x12b44d['model'][_0x39df('0x36')],_0x5eca32=_0x122491[_0x39df('0x25')];return _0x337e8f[_0x39df('0x10')](_0x5eca32)&&!_0x337e8f[_0x39df('0x16')](_0x5eca32)&&_0x337e8f[_0x39df('0x2f')](_0x5eca32,_0x39df('0x2c'))?{'type':_0x39df('0x17'),'content':_0x1911d3(_0xb8847f,_0x39df('0x5'),_0x1b7ca2['getItemLabel'](_0x5eca32,0x1))}:void 0x0;});}}function ar(_0x288fc0,{showActiveMarker:_0x28a44c=!0x0}={}){return(_0x3ea5e7,_0x312d81,_0x4579f5)=>{const _0x5863ec=_0x288fc0[_0x39df('0x2d')][_0x39df('0x2b')](_0x39df('0x34')),_0xfb0b44=_0x312d81[_0x39df('0x24')][_0x39df('0x33')],_0x1a30b5=_0x312d81[_0x39df('0x24')][_0x39df('0x1e')],_0x544891=_0x288fc0[_0x39df('0x1')]['schema'];if(!_0xfb0b44['isTouching'](_0x1a30b5)||!_0xfb0b44[_0x39df('0x25')])return;const _0x20c83f=_0xfb0b44[_0x39df('0x25')];if(_0x544891['isBlock'](_0x20c83f)&&!_0x544891[_0x39df('0x16')](_0x20c83f)&&_0x544891['checkChild'](_0x20c83f,_0x39df('0x2c'))){if(!_0x4579f5[_0x39df('0xe')][_0x39df('0xf')](_0x312d81[_0x39df('0x24')],_0x3ea5e7[_0x39df('0xd')]))return;const _0x200cec=_0x4579f5['writer'][_0x39df('0x4')](_0x39df('0x35'),{'class':_0x39df('0x1f')}),_0x1fd2e1=_0x4579f5[_0x39df('0xb')][_0x39df('0x2a')](_0x1a30b5);_0x28a44c&&_0x5863ec[_0x39df('0x1d')][_0x39df('0x20')](_0x312d81[_0x39df('0xc')])&&_0x4579f5['writer']['addClass'](_0x39df('0x2e'),_0x200cec),_0x4579f5[_0x39df('0x38')][_0x39df('0xa')](_0x1fd2e1,_0x200cec),_0x4579f5[_0x39df('0xb')][_0x39df('0x1b')](_0x200cec,_0x312d81['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bd3=['model','*Remove\x20all\x20formatting*','locale','schema','document','markInlineFormat','editor','_descriptionFactory','getRanges','removeFormat','TrackChangesEditing','getAttributeProperties','isCollapsed','enableCommand','createRangeOn','isFormatting','getItems','from','registerDescriptionCallback'];(function(_0x261e98,_0x2bd3ce){const _0x5efe3c=function(_0x491c94){while(--_0x491c94){_0x261e98['push'](_0x261e98['shift']());}};_0x5efe3c(++_0x2bd3ce);}(_0x2bd3,0x104));const _0x5efe=function(_0x261e98,_0x2bd3ce){_0x261e98=_0x261e98-0x0;let _0x5efe3c=_0x2bd3[_0x261e98];return _0x5efe3c;};import{Plugin as _0x31c27a}from'ckeditor5/src/core';import{getTranslation as _0x1d662d}from'../utils/common-translations';export default class ht extends _0x31c27a{['afterInit'](){const _0x269264=this[_0x5efe('0xc')];if(!_0x269264['plugins']['has']('RemoveFormatEditing'))return;const _0x4d69ad=_0x269264['plugins']['get'](_0x5efe('0x10'));_0x4d69ad[_0x5efe('0x0')]('removeFormat',_0x4a444e=>{const _0x3eeaba=_0x269264[_0x5efe('0x6')][_0x5efe('0xa')]['selection'];_0x3eeaba[_0x5efe('0x12')]?_0x4a444e():_0x269264['model']['change'](()=>{const _0x4ddb11=Array[_0x5efe('0x4')](_0x3eeaba[_0x5efe('0xe')]());for(const _0x3fff38 of _0x4ddb11)for(const _0x367de5 of _0x3fff38[_0x5efe('0x3')]())eo(_0x367de5,_0x269264[_0x5efe('0x6')][_0x5efe('0x9')])&&_0x4d69ad[_0x5efe('0xb')](_0x269264[_0x5efe('0x6')][_0x5efe('0x1')](_0x367de5),{'commandName':_0x5efe('0xf'),'commandParams':[]});});}),_0x4d69ad[_0x5efe('0xd')][_0x5efe('0x5')](_0x1beb07=>{const {data:_0x4d9793}=_0x1beb07;if(_0x4d9793&&'removeFormat'==_0x4d9793['commandName'])return{'type':'format','content':_0x1d662d(_0x269264[_0x5efe('0x8')],_0x5efe('0x7'))};});}}function eo(_0x35d04a,_0x323f30){for(const [_0x441890]of _0x35d04a['getAttributes']()){const _0x2b1f2b=_0x323f30[_0x5efe('0x11')](_0x441890);if(_0x2b1f2b&&_0x2b1f2b[_0x5efe('0x2')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17fa=['acceptSelectedSuggestions','discardSuggestion','RestrictedEditingModeEditing','trackChanges','goToNextRestrictedEditingException','discardAllSuggestions','editor','acceptSuggestion','afterInit','acceptAllSuggestions','plugins','has','TrackChangesEditing','enableCommand','get','discardSelectedSuggestions'];(function(_0x38e7f6,_0x17fa91){const _0x278f29=function(_0x4507bc){while(--_0x4507bc){_0x38e7f6['push'](_0x38e7f6['shift']());}};_0x278f29(++_0x17fa91);}(_0x17fa,0x153));const _0x278f=function(_0x38e7f6,_0x17fa91){_0x38e7f6=_0x38e7f6-0x0;let _0x278f29=_0x17fa[_0x38e7f6];return _0x278f29;};import{Plugin as _0x1ac792}from'ckeditor5/src/core';export default class ut extends _0x1ac792{[_0x278f('0x5')](){const _0xd253c=this[_0x278f('0x3')];if(!_0xd253c[_0x278f('0x7')][_0x278f('0x8')](_0x278f('0xf')))return;const _0x26b502=_0xd253c[_0x278f('0x7')][_0x278f('0xb')](_0x278f('0x9'));_0x26b502[_0x278f('0xa')]('goToPreviousRestrictedEditingException'),_0x26b502['enableCommand'](_0x278f('0x1'));const _0x2b7450=_0xd253c['plugins']['get'](_0x278f('0xf'));_0x2b7450['enableCommand'](_0x278f('0x0')),_0x2b7450[_0x278f('0xa')](_0x278f('0x4')),_0x2b7450[_0x278f('0xa')](_0x278f('0xe')),_0x2b7450[_0x278f('0xa')](_0x278f('0x6')),_0x2b7450[_0x278f('0xa')](_0x278f('0x2')),_0x2b7450[_0x278f('0xa')](_0x278f('0xd')),_0x2b7450[_0x278f('0xa')](_0x278f('0xc'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4675=['mapper','includes','activeMarkers','registerElementLabel','data','insert','split','requires','toViewPosition','writer','ck-suggestion-marker-','plugins','_descriptionFactory','merge','consumable','bindElementToMarker','createPositionBefore','locale','addMarker:suggestion:insertion','softBreak','TrackChangesEditing','options','element','editing','downcastDispatcher','high','span','init','test','markerName','getItems','markerRange','addMarker:suggestion:deletion','createUIElement','addMarker:suggestion','get','ck-suggestion-marker--active','ELEMENT_LINE_BREAK'];(function(_0x5698c1,_0x4675b1){const _0x741c=function(_0x39f508){while(--_0x39f508){_0x5698c1['push'](_0x5698c1['shift']());}};_0x741c(++_0x4675b1);}(_0x4675,0x7a));const _0x741c=function(_0x5698c1,_0x4675b1){_0x5698c1=_0x5698c1-0x0;let _0x39f508=_0x4675[_0x5698c1];return _0x39f508;};import{Plugin as _0x42a56f}from'ckeditor5/src/core';import{ShiftEnter as _0x134b81}from'ckeditor5/src/enter';import{getTranslation as _0x276e4b}from'../utils/common-translations';export default class ft extends _0x42a56f{static get[_0x741c('0x25')](){return[_0x134b81];}[_0x741c('0x13')](){const _0x23548a=this['editor'],_0x49c2b6=_0x23548a['plugins']['get'](_0x741c('0xc'));_0x49c2b6['enableCommand']('shiftEnter'),_0x23548a[_0x741c('0xf')]['downcastDispatcher']['on'](_0x741c('0xa'),re(_0x23548a),{'priority':_0x741c('0x11')}),_0x23548a[_0x741c('0xf')][_0x741c('0x10')]['on'](_0x741c('0x18'),re(_0x23548a),{'priority':'high'}),_0x23548a[_0x741c('0x22')][_0x741c('0x10')]['on'](_0x741c('0x1a'),(_0xee756f,_0x1837e5,_0x21c086)=>{_0x21c086[_0x741c('0xd')]['showSuggestionHighlights']&&re(_0x23548a,{'showActiveMarker':!0x1})(_0xee756f,_0x1837e5,_0x21c086);}),_0x49c2b6[_0x741c('0x4')][_0x741c('0x21')](_0x741c('0xb'),_0x1bfb62=>_0x276e4b(_0x23548a[_0x741c('0x9')],_0x741c('0x1d'),_0x1bfb62));}}function re(_0x3d51f3,{showActiveMarker:_0xc8c0e0=!0x0}={}){return(_0x4c84f1,_0x4e0e9e,_0x39d585)=>{const _0x25fc86=_0x3d51f3[_0x741c('0x3')][_0x741c('0x1b')]('TrackChangesEditing');if(!_0x39d585[_0x741c('0x6')][_0x741c('0x14')](_0x4e0e9e[_0x741c('0x17')],_0x4c84f1['name']))return;const _0x1416f2=_0x3d51f3['model'];for(const _0x36e2e7 of _0x4e0e9e[_0x741c('0x17')][_0x741c('0x16')]()){if(!_0x36e2e7['is'](_0x741c('0xe'),'softBreak'))continue;const _0x9dc50b='deletion'==_0x4e0e9e[_0x741c('0x15')]['split'](':')[0x1]?_0x741c('0x5'):_0x741c('0x24'),_0x534647=_0x39d585[_0x741c('0x1')][_0x741c('0x19')](_0x741c('0x12'),{'class':_0x741c('0x2')+_0x9dc50b}),_0x4a4e4d=_0x39d585[_0x741c('0x1e')][_0x741c('0x0')](_0x1416f2[_0x741c('0x8')](_0x36e2e7));_0xc8c0e0&&_0x25fc86[_0x741c('0x20')][_0x741c('0x1f')](_0x4e0e9e[_0x741c('0x15')])&&_0x39d585[_0x741c('0x1')]['addClass'](_0x741c('0x1c'),_0x534647),_0x39d585['writer'][_0x741c('0x23')](_0x4a4e4d,_0x534647),_0x39d585[_0x741c('0x1e')][_0x741c('0x7')](_0x534647,_0x4e0e9e[_0x741c('0x15')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ec0=['plugins','from','document','isCollapsed','_descriptionFactory','get','forceValue','FORMAT_RESTRICTED_DISABLED','getRanges','format','value','StandardEditingModeEditing','afterInit','restrictedEditingException','TrackChangesEditing','editor','change','has','commands','registerDescriptionCallback','markInlineFormat','enableCommand','model'];(function(_0x565a63,_0x1ec0a5){const _0x23ac94=function(_0x466319){while(--_0x466319){_0x565a63['push'](_0x565a63['shift']());}};_0x23ac94(++_0x1ec0a5);}(_0x1ec0,0x1cf));const _0x23ac=function(_0x565a63,_0x1ec0a5){_0x565a63=_0x565a63-0x0;let _0x23ac94=_0x1ec0[_0x565a63];return _0x23ac94;};import{Plugin as _0x1bbf3e}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x4c4331}from'./utils';import{getTranslation as _0x208f2b}from'../utils/common-translations';export default class lt extends _0x1bbf3e{[_0x23ac('0x9')](){const _0x77477f=this[_0x23ac('0xc')],_0x1ded9f=_0x77477f[_0x23ac('0x13')],_0x4bea72=_0x77477f['locale'];if(!_0x77477f[_0x23ac('0x14')][_0x23ac('0xe')](_0x23ac('0x8')))return;const _0x43ffbb=_0x77477f[_0x23ac('0x14')][_0x23ac('0x2')](_0x23ac('0xb')),_0xda30c=_0x23ac('0xa'),_0x174d14=_0x77477f[_0x23ac('0xf')][_0x23ac('0x2')](_0xda30c);_0x43ffbb[_0x23ac('0x12')](_0xda30c,(_0x1fd233,_0x1dd25c={})=>{const _0x307b65=_0x1ded9f[_0x23ac('0x16')]['selection'];if(_0x307b65[_0x23ac('0x0')])return void _0x1fd233(_0x1dd25c);const _0x3f3c37=void 0x0!==_0x1dd25c[_0x23ac('0x3')]?_0x1dd25c[_0x23ac('0x3')]:!_0x174d14[_0x23ac('0x7')];_0x1ded9f[_0x23ac('0xd')](()=>{const _0x1c2f6e=Array[_0x23ac('0x15')](_0x307b65[_0x23ac('0x5')]());for(const _0xb03577 of _0x1c2f6e){const _0x3738aa=_0x3f3c37?[_0xb03577]:_0x4c4331(_0xda30c,_0xb03577,_0x1ded9f);for(const _0x43a8d2 of _0x3738aa)_0x43ffbb[_0x23ac('0x11')](_0x43a8d2,{'commandName':_0xda30c,'commandParams':[{'forceValue':_0x3f3c37}]});}});}),_0x43ffbb[_0x23ac('0x1')][_0x23ac('0x10')](_0x3ffb93=>{const {data:_0x2b1c5e}=_0x3ffb93;if(_0x2b1c5e&&_0x2b1c5e['commandName']==_0xda30c)return _0x2b1c5e['commandParams'][0x0][_0x23ac('0x3')]?{'type':_0x23ac('0x6'),'content':_0x208f2b(_0x4bea72,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x23ac('0x6'),'content':_0x208f2b(_0x4bea72,_0x23ac('0x4'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f77=['getAncestors','getDefinitionsForView','selection','find','editor','includes','commands','createRangeOn','push','StyleUtils','style:','change','registerDescriptionCallback','*Remove\x20format:*\x20%0','modelElements','plugins','TrackChangesEditing','*Format:*\x20%0','isBlock','style','style.definitions','model','enableCommand','element','getAttribute','from','toLowerCase','config','classes','afterInit','styleName','enabledStyles','normalizeConfig','commandParams','DataSchema','getRanges','name','inline','commandName','markInlineFormat','get','add','format','_getRangesWithClasses','_getStyleDefinition','has'];(function(_0x4dc21a,_0x3f7765){const _0x20194d=function(_0x586f9c){while(--_0x586f9c){_0x4dc21a['push'](_0x4dc21a['shift']());}};_0x20194d(++_0x3f7765);}(_0x3f77,0x1aa));const _0x2019=function(_0x4dc21a,_0x3f7765){_0x4dc21a=_0x4dc21a-0x0;let _0x20194d=_0x3f77[_0x4dc21a];return _0x20194d;};import{Plugin as _0x58ef42}from'ckeditor5/src/core';import{getTranslation as _0x3b89ba}from'../utils/common-translations';export default class gt extends _0x58ef42{[_0x2019('0x11')](){const _0x5cb55a=this[_0x2019('0x26')];if(!_0x5cb55a['plugins'][_0x2019('0x21')]('Style'))return;const _0x7ce2e4=_0x5cb55a[_0x2019('0x28')][_0x2019('0x1c')](_0x2019('0x7')),_0x141c9b=_0x5cb55a[_0x2019('0x3')]['get'](_0x2019('0x4')),_0x2262d5=_0x5cb55a['locale'],_0x58e5f5=_0x5cb55a[_0x2019('0x3')][_0x2019('0x1c')](_0x2019('0x16')),_0x334253=_0x5cb55a['plugins']['get'](_0x2019('0x2b'))[_0x2019('0x14')](_0x58e5f5,_0x5cb55a[_0x2019('0xf')][_0x2019('0x1c')](_0x2019('0x8')));_0x141c9b[_0x2019('0xa')]('style',(_0x70c655,{styleName:_0x2f3918})=>{const _0x5e805e=_0x5cb55a[_0x2019('0x9')]['document'][_0x2019('0x24')],_0xf87896=this[_0x2019('0x20')](_0x2f3918,_0x334253);if(!_0xf87896)return;if(!_0x7ce2e4[_0x2019('0x13')][_0x2019('0x27')](_0x2f3918))return;if(_0x5e805e['isCollapsed']&&!_0xf87896[_0x2019('0x6')])return void _0x70c655({'styleName':_0x2f3918});const _0x459043=!_0x7ce2e4['value'][_0x2019('0x27')](_0xf87896['name']);if(_0xf87896['isBlock']){const _0x152d75=function(_0x285d17,_0x18e794){const _0x58835c=new Set();for(const _0xaf2f62 of _0x285d17){const _0x523fa1=_0xaf2f62[_0x2019('0x22')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x1777bf of _0x523fa1)if(_0x18e794[_0x2019('0x27')](_0x1777bf[_0x2019('0x18')])){_0x58835c[_0x2019('0x1d')](_0x1777bf);break;}}return _0x58835c;}(_0x5e805e['getSelectedBlocks'](),_0xf87896[_0x2019('0x2')]);_0x5cb55a[_0x2019('0x9')][_0x2019('0x2d')](()=>{for(const _0x194028 of _0x152d75)_0x141c9b['markBlockFormat'](_0x194028,{'commandName':_0x2019('0x7'),'commandParams':[{'styleName':_0x2f3918,'forceValue':_0x459043}],'formatGroupId':_0x2019('0x2c')+_0x2f3918});});}else{let _0x29569b=Array[_0x2019('0xd')](_0x5e805e[_0x2019('0x17')]());if(!_0x459043){const _0x526432=Array[_0x2019('0xd')](_0x58e5f5[_0x2019('0x23')](_0xf87896[_0x2019('0xb')],!0x1))[0x0][_0x2019('0x9')],_0x3bcf5b=[];for(const _0x57ba85 of _0x29569b){const _0x4e0ad7=this[_0x2019('0x1f')](_0x5cb55a[_0x2019('0x9')],_0x57ba85,_0xf87896[_0x2019('0x10')],_0x526432);_0x3bcf5b['push'](..._0x4e0ad7);}_0x29569b=_0x3bcf5b;}_0x5cb55a[_0x2019('0x9')][_0x2019('0x2d')](()=>{for(const _0x470c83 of _0x29569b)_0x141c9b[_0x2019('0x1b')](_0x470c83,{'commandName':_0x2019('0x7'),'commandParams':[{'styleName':_0x2f3918,'forceValue':_0x459043}]});});}}),_0x141c9b['_descriptionFactory'][_0x2019('0x0')](_0x1f818c=>{const {data:_0x1e7194}=_0x1f818c;if(_0x1e7194&&_0x2019('0x7')===_0x1e7194[_0x2019('0x1a')])return _0x1e7194[_0x2019('0x15')][0x0]['forceValue']?{'type':_0x2019('0x1e'),'content':_0x3b89ba(_0x2262d5,_0x2019('0x5'),_0x1e7194[_0x2019('0x15')][0x0][_0x2019('0x12')]['toLowerCase']())}:{'type':_0x2019('0x1e'),'content':_0x3b89ba(_0x2262d5,_0x2019('0x1'),_0x1e7194[_0x2019('0x15')][0x0][_0x2019('0x12')][_0x2019('0xe')]())};});}['_getStyleDefinition'](_0x5aa980,_0x415b6b){let _0x23a5b2=_0x415b6b['block'][_0x2019('0x25')](_0x65e6a6=>_0x65e6a6[_0x2019('0x18')]===_0x5aa980);return _0x23a5b2||(_0x23a5b2=_0x415b6b[_0x2019('0x19')][_0x2019('0x25')](_0x594faf=>_0x594faf[_0x2019('0x18')]===_0x5aa980)),_0x23a5b2;}[_0x2019('0x1f')](_0x4b7fbc,_0x1c0664,_0x223d9c,_0x273552){const _0x130977=[];for(const _0x456bdd of _0x1c0664['getItems']()){const _0x26650a=_0x456bdd[_0x2019('0xc')](_0x273552);_0x26650a&&(_0x223d9c['every'](_0x2c4e6f=>_0x26650a[_0x2019('0x10')][_0x2019('0x27')](_0x2c4e6f))&&_0x130977[_0x2019('0x2a')](_0x4b7fbc[_0x2019('0x29')](_0x456bdd)));}return _0x130977;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30e6=['mapper','push','document','subType','tableRow','element','fromRange','min','plugins','getCellLocation','some','insertTableRowBelow','getItems','accept','enableCommand','isArray','item','getChildren','filter','insertTable','highest','ELEMENT_TABLE_COLUMN','add','$textProxy','hasAttribute','_tableSuggestions','join','MAX_SAFE_INTEGER','_splitMarkerName','execute','editor','rowspan','cell','ELEMENT_TABLE_COLUMN_WITH_TEXT','rootName','_suggestionFactory','minRow','getSelectionAffectedTableCells','has','maxRow','options','isIntersectingWithRange','removeTableColumn','above','addClass','change','_getSuggestionCoords','removeTableRow','getRanges','change:data','forceValue','TrackChangesEditing','addRange','insert','createTableWalker','deletion','showSuggestionHighlights','createRangeIn','_setupColumnsRowsFixing','*Insert:*\x20%0','$graveyard','getChanges','addMarker:suggestion','colspan','tableColumn','findAncestor','registerElementLabel','get','selection','last','registerDescriptionCallback','values','table','selectTableRow','locale','low','_getCoordsForCells','ELEMENT_TABLE_ROW_WITH_TEXT','enqueueChange','toViewElement','getChangedMarkers','isInContent','getContainedElement','order','getColumnIndexes','registerPostFixer','registerCustomCallback','getAttribute','markMultiRangeInsertion','insertion','map','MIN_SAFE_INTEGER','insertTableRowAbove','afterInit','start','_tablePostFixingSubtypes','differ','span','TableEditing','ELEMENT_TABLE_WITH_TEXT','position','nodeBefore','left','createPositionAt','length','refresh','selectTableColumn','substr','from','name','markMultiRangeDeletion','model','TableUtils','detach','getFirstRange','tablePaste','type','insertTableColumnLeft','end','removeClass','getSuggestion','_acceptFormatSuggestionCallbackFactory','batch','isEqual','tableCell','setSelection','discard','max','*Remove:*\x20%0','ELEMENT_TABLE_ROW','createRangeOn','_descriptionFactory','nodeAfter','toLowerCase','first','commands','ELEMENT_TABLE','root','data'];(function(_0x3a9d82,_0x30e60f){const _0x16976=function(_0x5698d5){while(--_0x5698d5){_0x3a9d82['push'](_0x3a9d82['shift']());}};_0x16976(++_0x30e60f);}(_0x30e6,0x15a));const _0x1697=function(_0x3a9d82,_0x30e60f){_0x3a9d82=_0x3a9d82-0x0;let _0x16976=_0x30e6[_0x3a9d82];return _0x16976;};import{Plugin as _0x2431c5}from'ckeditor5/src/core';import{LiveRange as _0x4d3b24}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2dcfd1}from'ckeditor5/src/widget';import{getTranslation as _0x538e05}from'../utils/common-translations';export default class mt extends _0x2431c5{constructor(_0x4171ae){super(_0x4171ae),this[_0x1697('0x1b')]=[_0x1697('0x4b'),_0x1697('0x87')],this[_0x1697('0x60')]=new Set();}[_0x1697('0x19')](){const _0x233c1c=this[_0x1697('0x65')],_0x1fd8d1=_0x233c1c[_0x1697('0x2b')][_0x1697('0x49')][_0x1697('0x0')];if(!_0x233c1c[_0x1697('0x4f')][_0x1697('0x6d')](_0x1697('0x1e')))return;const _0x1b4ada=_0x233c1c[_0x1697('0x6')],_0x52c729=_0x233c1c[_0x1697('0x4f')][_0x1697('0x8a')]('TrackChangesEditing'),_0x27935f=_0x233c1c[_0x1697('0x4f')]['get'](_0x1697('0x2c'));_0x52c729[_0x1697('0x3f')][_0x1697('0x89')](_0x1697('0x4'),_0x42f103=>_0x538e05(_0x1b4ada,_0x1697('0x44'),_0x42f103)),this[_0x1697('0x81')](),_0x52c729[_0x1697('0x55')](_0x1697('0x5a')),_0x52c729[_0x1697('0x55')](_0x1697('0x5')),_0x52c729[_0x1697('0x55')](_0x1697('0x26'));for(const _0x3b582f of[_0x1697('0x18'),_0x1697('0x52')]){const _0x53709b=_0x233c1c[_0x1697('0x43')]['get'](_0x3b582f);_0x52c729[_0x1697('0x55')](_0x3b582f,_0x566bac=>{_0x233c1c[_0x1697('0x2b')][_0x1697('0x74')](_0x2ee852=>{_0x566bac();const _0x25421b=_0x1697('0x72')===_0x53709b[_0x1697('0xf')],_0x166dce=_0x27935f[_0x1697('0x6c')](_0x1fd8d1),_0x579171=_0x27935f['getRowIndexes'](_0x166dce),_0x1d015b=_0x25421b?_0x579171[_0x1697('0x42')]-0x1:_0x579171[_0x1697('0x1')]+0x1,_0x4a556f=_0x166dce[0x0][_0x1697('0x88')]('table'),_0x180bff=_0x27935f[_0x1697('0x7d')](_0x4a556f,{'startRow':_0x1d015b,'endRow':_0x1d015b}),_0xf4ee53=Array[_0x1697('0x28')](_0x180bff)['map'](_0xa6c09b=>_0x2ee852['createRangeOn'](_0xa6c09b['cell']));_0x52c729[_0x1697('0x14')](_0xf4ee53,_0x1697('0x4b'));});});}for(const _0x2d1e85 of[_0x1697('0x31'),'insertTableColumnRight']){const _0x3dc751=_0x233c1c[_0x1697('0x43')][_0x1697('0x8a')](_0x2d1e85);_0x52c729[_0x1697('0x55')](_0x2d1e85,_0x2dbcf9=>{_0x233c1c[_0x1697('0x2b')]['change'](_0x7637c9=>{_0x2dbcf9();const _0x4ede4f=_0x1697('0x22')===_0x3dc751[_0x1697('0xf')],_0x30a344=_0x27935f[_0x1697('0x6c')](_0x1fd8d1),_0x335c4b=_0x27935f[_0x1697('0x10')](_0x30a344),_0x1041cb=_0x4ede4f?_0x335c4b[_0x1697('0x42')]-0x1:_0x335c4b[_0x1697('0x1')]+0x1,_0x145a8e=_0x30a344[0x0][_0x1697('0x88')](_0x1697('0x4')),_0x55d81c=_0x27935f['createTableWalker'](_0x145a8e,{'startRow':0x0,'column':_0x1041cb,'includeAllSlots':!0x1}),_0x2450cb=Array['from'](_0x55d81c)['map'](_0x271545=>_0x7637c9[_0x1697('0x3e')](_0x271545[_0x1697('0x67')]));_0x52c729[_0x1697('0x14')](_0x2450cb,_0x1697('0x87'));});});}for(const _0x1ce11a of[_0x1697('0x76'),_0x1697('0x71')]){const _0x209086=_0x1ce11a[_0x1697('0x27')](0xb),_0x4506d1=_0x209086[_0x1697('0x41')](),_0x46e792=_0x4506d1[_0x1697('0x27')](0x0,0x3)+_0x1697('0x1d'),_0x1981ac=_0x1697('0x4')+_0x209086,_0x47332a=_0x1697('0x4e')+_0x209086,_0x1d5a27=_0x1697('0x3b')+_0x209086;_0x52c729[_0x1697('0x55')](_0x1ce11a,()=>{_0x233c1c['model'][_0x1697('0x74')](_0x40cf2b=>{const _0x47126e=_0x27935f[_0x1697('0x6c')](_0x1fd8d1),_0x48ec0e=_0x47126e[0x0][_0x1697('0x88')]('table');let _0x26903d;if(_0x1697('0x76')==_0x1ce11a){const _0x2c7777=_0x27935f['getRowIndexes'](_0x47126e);_0x26903d={'startRow':_0x2c7777[_0x1697('0x42')],'endRow':_0x2c7777['last'],'includeAllSlots':!0x0};}else{const _0x4707df=_0x27935f['getColumnIndexes'](_0x47126e);_0x26903d={'startColumn':_0x4707df[_0x1697('0x42')],'endColumn':_0x4707df['last'],'includeAllSlots':!0x0};}const _0x11f4ed=_0x27935f[_0x1697('0x7d')](_0x48ec0e,_0x26903d),_0x91b3fd=Array['from'](_0x11f4ed)[_0x1697('0x16')](({cell:_0x214391})=>_0x214391),_0x439b4a=se(_0x91b3fd['filter'](_0x588f03=>_0x588f03[_0x1697('0x5f')](_0x46e792))),_0x451634=se(_0x91b3fd[_0x1697('0x59')](_0x96f41c=>!_0x96f41c[_0x1697('0x5f')](_0x46e792)))[_0x1697('0x16')](_0x537ff1=>_0x40cf2b[_0x1697('0x3e')](_0x537ff1)),_0x6bd2e2=_0x52c729[_0x1697('0x2a')](_0x451634,_0x1981ac);if(_0x6bd2e2&&(_0x1697('0x4b')==_0x6bd2e2['subType']||_0x1697('0x87')==_0x6bd2e2[_0x1697('0x4a')])){const _0x15a29f=this['_getSuggestionCoords'](_0x6bd2e2);for(const _0x348102 of _0x439b4a){const _0x34aaaf=_0x40cf2b[_0x1697('0x3e')](_0x348102),_0x5bc88e=_0x27935f['getCellLocation'](_0x348102),_0x160432=_0x348102[_0x1697('0x13')](_0x46e792)-0x1,_0x1a2ca2=_0x15a29f[_0x47332a],_0x1e3094=_0x15a29f[_0x1d5a27];_0x1a2ca2<=_0x5bc88e[_0x4506d1]&&_0x5bc88e[_0x4506d1]+_0x160432<=_0x1e3094&&_0x6bd2e2[_0x1697('0x7b')](_0x34aaaf);}}});});}function _0x5ce937(_0x2ba064){const _0xf2710b=Array['from'](_0x1fd8d1[_0x1697('0x77')]())[_0x1697('0x16')](_0x345038=>_0x4d3b24[_0x1697('0x4d')](_0x345038));_0x233c1c[_0x1697('0x2b')][_0x1697('0x74')](_0x99d7bb=>{const _0x2a9d84=_0x99d7bb[_0x1697('0x36')];_0x2ba064=_0x2ba064[_0x1697('0x59')](_0x1d6c93=>'$graveyard'!=_0x1d6c93[_0x1697('0x45')]['rootName']),_0x99d7bb[_0x1697('0x39')](_0x2ba064),_0x233c1c[_0x1697('0x43')][_0x1697('0x8a')](_0x1697('0x76'))[_0x1697('0x25')](),_0x233c1c[_0x1697('0x64')](_0x1697('0x76'),{'forceDefaultExecution':!0x0}),_0x233c1c[_0x1697('0x2b')][_0x1697('0xa')](()=>{_0x233c1c[_0x1697('0x2b')][_0x1697('0xa')](_0x2a9d84,_0xcf1aa8=>{const _0x280133=_0xf2710b[_0x1697('0x59')](_0xc09d08=>_0x1697('0x83')!=_0xc09d08['root'][_0x1697('0x69')]);_0x280133[_0x1697('0x24')]>0x0&&_0xcf1aa8[_0x1697('0x39')](_0x280133);for(const _0x507174 of _0xf2710b)_0x507174[_0x1697('0x2d')]();});});});}function _0x5c8d04(_0xc6b611){_0x233c1c[_0x1697('0x2b')][_0x1697('0x74')](_0x182d36=>{const _0x2eb7ce=Array['from'](_0x1fd8d1[_0x1697('0x77')]())[_0x1697('0x16')](_0x160620=>_0x4d3b24[_0x1697('0x4d')](_0x160620)),_0xb0d34e=[];for(const _0x2fc1e3 of _0xc6b611)for(const _0x45d45b of _0x2fc1e3['getItems']({'shallow':!0x0}))_0xb0d34e[_0x1697('0x48')](_0x45d45b);for(const _0x55f5bd of _0xb0d34e)_0x1697('0x83')!=_0x55f5bd['root']['rootName']&&(_0x182d36['setSelection'](_0x182d36[_0x1697('0x23')](_0x55f5bd,0x0)),_0x233c1c['commands'][_0x1697('0x8a')](_0x1697('0x71'))[_0x1697('0x25')](),_0x233c1c['execute'](_0x1697('0x71'),{'forceDefaultExecution':!0x0}));const _0x5e669b=_0x2eb7ce[_0x1697('0x59')](_0x41d5ae=>_0x1697('0x83')!=_0x41d5ae['root']['rootName']);_0x5e669b[_0x1697('0x24')]>0x0&&_0x182d36[_0x1697('0x39')](_0x5e669b);for(const _0x10f6d3 of _0x2eb7ce)_0x10f6d3[_0x1697('0x2d')]();});}function _0x83b96e(_0x388e4b,_0x110d72){return _0x110d72['every'](_0x2ead0d=>_0x388e4b[_0x1697('0x51')](_0x1b9031=>_0x1b9031[_0x1697('0x32')][_0x1697('0x37')](_0x2ead0d['start'])||_0x2ead0d[_0x1697('0x32')][_0x1697('0x37')](_0x1b9031[_0x1697('0x1a')])));}function _0x5582ae(_0x2c1f7e,_0x3d0ecb){return _0x2c1f7e[_0x1697('0x51')](_0x2e0985=>_0x3d0ecb['some'](_0x462693=>_0x2e0985[_0x1697('0x32')]['isTouching'](_0x462693['start'])));}_0x233c1c['data']['downcastDispatcher']['on'](_0x1697('0x85'),(_0x442f9,_0x1786ff,_0x37750a)=>{if(!_0x37750a[_0x1697('0x6f')][_0x1697('0x7f')])return;const _0x4a54ff=_0x1786ff[_0x1697('0x57')];if(!_0x4a54ff)return;const _0x18849d=_0x37750a[_0x1697('0x47')][_0x1697('0xb')](_0x4a54ff);function _0x3a4161(_0xe1392){return Array[_0x1697('0x56')](_0xe1392)?_0xe1392:[_0xe1392];}_0x18849d&&_0x1697('0x38')===_0x4a54ff[_0x1697('0x29')]&&_0x2dcfd1(_0x18849d,_0x37750a['writer'],(_0x4e4996,_0x38c4de,_0x13ba61)=>_0x13ba61[_0x1697('0x73')](_0x3a4161(_0x38c4de['classes']),_0x4e4996),(_0x3b3a89,_0xb15565,_0x136cf0)=>_0x136cf0[_0x1697('0x33')](_0x3a4161(_0xb15565['classes']),_0x3b3a89));},{'priority':_0x1697('0x5b')}),_0x52c729[_0x1697('0x3f')][_0x1697('0x2')](_0x478fab=>{if(_0x1697('0x15')!=_0x478fab[_0x1697('0x30')]&&_0x1697('0x7e')!=_0x478fab[_0x1697('0x30')])return;const _0x3222ee=_0x478fab[_0x1697('0xe')]();if(null!=_0x3222ee&&_0x3222ee['is'](_0x1697('0x4c'),_0x1697('0x4'))){if('insertion'==_0x478fab[_0x1697('0x30')]){const _0x2f75f3=_0x478fab[_0x1697('0x53')]()[_0x1697('0x59')](_0x307e9f=>_0x307e9f['is'](_0x1697('0x5e')))[_0x1697('0x16')](_0x589eeb=>_0x589eeb['data']);if(_0x2f75f3[_0x1697('0x24')])return{'type':_0x1697('0x15'),'content':_0x538e05(_0x1b4ada,_0x1697('0x82'),_0x538e05(_0x1b4ada,_0x1697('0x1f'),'\x22'+_0x2f75f3[_0x1697('0x61')]('\x20')+'\x22'))};}if(_0x1697('0x7e')==_0x478fab[_0x1697('0x30')]){const _0x3b021d=_0x478fab['getItems']()[_0x1697('0x59')](_0x58032a=>_0x58032a['is']('$textProxy'))[_0x1697('0x16')](_0x9757fa=>_0x9757fa['data']);if(_0x3b021d['length'])return{'type':_0x1697('0x7e'),'content':_0x538e05(_0x1b4ada,'*Remove:*\x20%0',_0x538e05(_0x1b4ada,_0x1697('0x1f'),'\x22'+_0x3b021d[_0x1697('0x61')]('\x20')+'\x22'))};}}}),_0x52c729['_descriptionFactory']['registerDescriptionCallback'](_0x3acf56=>{if(_0x1697('0x4b')==_0x3acf56[_0x1697('0x4a')]){const _0x3d4eaa=_0x3acf56[_0x1697('0x53')]()['filter'](_0x418d1e=>_0x418d1e['is'](_0x1697('0x5e')))['map'](_0x2e32d5=>_0x2e32d5[_0x1697('0x46')]),_0x231194=this[_0x1697('0x75')](_0x3acf56),_0x271bd7=_0x231194[_0x1697('0x6e')]-_0x231194[_0x1697('0x6b')]+0x1;if(_0x1697('0x15')==_0x3acf56[_0x1697('0x30')])return _0x3d4eaa[_0x1697('0x24')]?{'type':_0x1697('0x15'),'content':_0x538e05(_0x1b4ada,_0x1697('0x82'),_0x538e05(_0x1b4ada,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x271bd7,'\x22'+_0x3d4eaa[_0x1697('0x61')]('\x20')+'\x22']))}:{'type':_0x1697('0x15'),'content':_0x538e05(_0x1b4ada,'*Insert:*\x20%0',_0x538e05(_0x1b4ada,_0x1697('0x3d'),_0x271bd7))};if(_0x1697('0x7e')==_0x3acf56[_0x1697('0x30')])return _0x3d4eaa['length']?{'type':_0x1697('0x7e'),'content':_0x538e05(_0x1b4ada,_0x1697('0x3c'),_0x538e05(_0x1b4ada,_0x1697('0x9'),[_0x271bd7,'\x22'+_0x3d4eaa[_0x1697('0x61')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x538e05(_0x1b4ada,_0x1697('0x3c'),_0x538e05(_0x1b4ada,_0x1697('0x3d'),_0x271bd7))};}if(_0x1697('0x87')==_0x3acf56[_0x1697('0x4a')]){const _0x31a1dd=_0x3acf56[_0x1697('0x53')]()['filter'](_0x135e47=>_0x135e47['is'](_0x1697('0x5e')))[_0x1697('0x16')](_0x549494=>_0x549494[_0x1697('0x46')]),_0xbcba53=this['_getSuggestionCoords'](_0x3acf56),_0x175c5d=_0xbcba53['maxColumn']-_0xbcba53['minColumn']+0x1;if(_0x1697('0x15')==_0x3acf56[_0x1697('0x30')])return _0x31a1dd[_0x1697('0x24')]?{'type':'insertion','content':_0x538e05(_0x1b4ada,'*Insert:*\x20%0',_0x538e05(_0x1b4ada,_0x1697('0x68'),[_0x175c5d,'\x22'+_0x31a1dd[_0x1697('0x61')]('\x20')+'\x22']))}:{'type':_0x1697('0x15'),'content':_0x538e05(_0x1b4ada,_0x1697('0x82'),_0x538e05(_0x1b4ada,_0x1697('0x5c'),_0x175c5d))};if('deletion'==_0x3acf56[_0x1697('0x30')])return _0x31a1dd[_0x1697('0x24')]?{'type':_0x1697('0x7e'),'content':_0x538e05(_0x1b4ada,_0x1697('0x3c'),_0x538e05(_0x1b4ada,_0x1697('0x68'),[_0x175c5d,'\x22'+_0x31a1dd[_0x1697('0x61')]('\x20')+'\x22']))}:{'type':_0x1697('0x7e'),'content':_0x538e05(_0x1b4ada,_0x1697('0x3c'),_0x538e05(_0x1b4ada,_0x1697('0x5c'),_0x175c5d))};}}),_0x52c729['_suggestionFactory'][_0x1697('0x12')](_0x1697('0x15'),'tableRow',_0x1697('0x3a'),_0x5ce937),_0x52c729[_0x1697('0x6a')]['registerCustomCallback']('deletion',_0x1697('0x4b'),_0x1697('0x54'),_0x5ce937),_0x52c729[_0x1697('0x6a')][_0x1697('0x12')]('insertion',_0x1697('0x87'),_0x1697('0x3a'),_0x5c8d04),_0x52c729[_0x1697('0x6a')]['registerCustomCallback'](_0x1697('0x7e'),_0x1697('0x87'),_0x1697('0x54'),_0x5c8d04),_0x52c729[_0x1697('0x6a')]['registerCustomCallback'](_0x1697('0x15'),_0x1697('0x87'),_0x1697('0x61'),_0x83b96e),_0x52c729[_0x1697('0x6a')][_0x1697('0x12')](_0x1697('0x7e'),_0x1697('0x87'),_0x1697('0x61'),_0x83b96e),_0x52c729[_0x1697('0x6a')][_0x1697('0x12')](_0x1697('0x15'),_0x1697('0x4b'),'join',_0x5582ae),_0x52c729[_0x1697('0x6a')][_0x1697('0x12')]('deletion',_0x1697('0x4b'),_0x1697('0x61'),_0x5582ae);}[_0x1697('0x35')](){const _0x44effd=this[_0x1697('0x65')],_0x44c9d5=_0x44effd['model'][_0x1697('0x49')][_0x1697('0x0')];return(_0x4dd965,_0x1c78c1)=>{_0x44effd[_0x1697('0x2b')][_0x1697('0x74')](_0x479955=>{const {commandName:_0x11a688,commandParams:_0x52dd49}=_0x1c78c1;let _0x578403=_0x4dd965[0x0][_0x1697('0x32')][_0x1697('0x21')];_0x52dd49&&_0x52dd49[0x0]&&!0x1===_0x52dd49[0x0][_0x1697('0x79')]&&(_0x578403=_0x4dd965[0x0][_0x1697('0x1a')][_0x1697('0x40')]);const _0x26b377=_0x479955[_0x1697('0x80')](_0x578403);if(_0x1697('0x83')==_0x26b377[_0x1697('0x45')][_0x1697('0x69')])return;const _0x8f17b2=Array[_0x1697('0x28')](_0x44c9d5['getRanges']())[_0x1697('0x16')](_0x3b50e4=>_0x4d3b24['fromRange'](_0x3b50e4));_0x479955[_0x1697('0x39')](_0x26b377),_0x44effd[_0x1697('0x43')][_0x1697('0x8a')](_0x11a688)[_0x1697('0x25')](),_0x52dd49[_0x1697('0x48')]({'forceDefaultExecution':!0x0}),_0x44effd['execute'](_0x11a688,..._0x52dd49);const _0xe946ed=_0x8f17b2[_0x1697('0x59')](_0xe2707e=>_0x1697('0x83')!=_0xe2707e[_0x1697('0x45')][_0x1697('0x69')]);_0xe946ed[_0x1697('0x24')]>0x0&&_0x479955[_0x1697('0x39')](_0xe946ed);for(const _0x57f0ca of _0x8f17b2)_0x57f0ca[_0x1697('0x2d')]();});};}[_0x1697('0x8')](_0x3418d1){const _0x17c8e1=this[_0x1697('0x65')][_0x1697('0x4f')][_0x1697('0x8a')]('TableUtils');let _0x3fe3be=Number[_0x1697('0x62')],_0x37ec7c=Number['MIN_SAFE_INTEGER'],_0x383123=Number[_0x1697('0x62')],_0x2ecfe8=Number[_0x1697('0x17')];for(const _0x51e5ed of _0x3418d1){if(_0x1697('0x83')==_0x51e5ed['root'][_0x1697('0x69')])continue;const {row:_0x3f8b04,column:_0x43b5c2}=_0x17c8e1[_0x1697('0x50')](_0x51e5ed),_0x3438f6=_0x51e5ed[_0x1697('0x5f')](_0x1697('0x66'))?_0x51e5ed[_0x1697('0x13')](_0x1697('0x66'))-0x1:0x0,_0x405974=_0x51e5ed[_0x1697('0x5f')]('colspan')?_0x51e5ed[_0x1697('0x13')](_0x1697('0x86'))-0x1:0x0;_0x3fe3be=_0x3f8b04<_0x3fe3be?_0x3f8b04:_0x3fe3be,_0x37ec7c=_0x3f8b04+_0x3438f6>_0x37ec7c?_0x3f8b04+_0x3438f6:_0x37ec7c,_0x383123=_0x43b5c2<_0x383123?_0x43b5c2:_0x383123,_0x2ecfe8=_0x43b5c2+_0x405974>_0x2ecfe8?_0x43b5c2+_0x405974:_0x2ecfe8;}return{'minRow':_0x3fe3be,'maxRow':_0x37ec7c,'minColumn':_0x383123,'maxColumn':_0x2ecfe8};}[_0x1697('0x81')](){const _0x3c9250=this[_0x1697('0x65')],_0x263653=_0x3c9250[_0x1697('0x4f')]['get'](_0x1697('0x7a')),_0x129e06=_0x3c9250[_0x1697('0x4f')][_0x1697('0x8a')](_0x1697('0x2c'));_0x3c9250[_0x1697('0x2b')]['document']['on'](_0x1697('0x78'),()=>{const _0x5e120f=Array['from'](_0x3c9250['model'][_0x1697('0x49')][_0x1697('0x1c')][_0x1697('0xc')]());for(const {name:_0x45f35f,data:_0x1c3b34}of _0x5e120f){const {group:_0x4bbf26,id:_0x5c22c8,subType:_0x48ba00}=_0x263653[_0x1697('0x63')](_0x45f35f);if('suggestion'!=_0x4bbf26)continue;if(null!=_0x1c3b34['oldRange'])continue;const _0x3447ca=_0x263653[_0x1697('0x34')](_0x5c22c8);this[_0x1697('0x1b')]['includes'](_0x48ba00)&&this['_tableSuggestions'][_0x1697('0x5d')](_0x3447ca);}},{'priority':_0x1697('0x7')});const _0x201171=(_0x146c19,_0x53eac8)=>{let _0xcdfd90=!0x1;const _0x74e37e=_0x53eac8[_0x1697('0x3e')](_0x146c19),_0x521f51=_0x146c19['findAncestor'](_0x1697('0x4')),_0x4667f6=_0x129e06[_0x1697('0x50')](_0x146c19);for(const _0x156005 of this[_0x1697('0x60')]){const _0x2ab271=_0x156005[_0x1697('0x4a')],_0x5bba79=_0x2ab271['startsWith'](_0x1697('0x2f')),_0x2c6c18=_0x2ab271[_0x1697('0x27')](_0x5bba79?0xa:0x5),_0x5b40bb=_0x2c6c18[_0x1697('0x41')](),_0x2f996a=_0x5b40bb['substr'](0x0,0x3)+_0x1697('0x1d'),_0x357cc7=_0x1697('0x4e')+_0x2c6c18,_0x1fc372=_0x1697('0x3b')+_0x2c6c18;if(!_0x156005[_0x1697('0xd')])continue;if(_0x521f51!=_0x156005[_0x1697('0x2e')]()['start'][_0x1697('0x88')](_0x1697('0x4')))continue;if(_0x156005[_0x1697('0x70')](_0x74e37e))continue;const _0x2d3ac2=_0x146c19['hasAttribute'](_0x2f996a)?_0x146c19[_0x1697('0x13')](_0x2f996a)-0x1:0x0,_0xb6f94c=this[_0x1697('0x75')](_0x156005),_0x200d8b=_0xb6f94c[_0x357cc7],_0xc9c470=_0xb6f94c[_0x1fc372];_0x200d8b<=_0x4667f6[_0x5b40bb]&&_0x4667f6[_0x5b40bb]+_0x2d3ac2<=_0xc9c470&&(_0x156005[_0x1697('0x7b')](_0x74e37e),_0xcdfd90=!0x0);}return _0xcdfd90;};_0x3c9250[_0x1697('0x2b')][_0x1697('0x49')][_0x1697('0x11')](_0x5ed687=>{let _0x2079bd=!0x1;for(const _0x504f0d of _0x3c9250[_0x1697('0x2b')]['document']['differ'][_0x1697('0x84')]())if(_0x1697('0x7c')==_0x504f0d['type']){if(_0x1697('0x4b')==_0x504f0d[_0x1697('0x29')])for(const _0x4ad6bf of _0x504f0d[_0x1697('0x20')][_0x1697('0x40')][_0x1697('0x58')]())_0x2079bd=_0x2079bd||_0x201171(_0x4ad6bf,_0x5ed687);else _0x1697('0x38')==_0x504f0d[_0x1697('0x29')]&&(_0x2079bd=_0x2079bd||_0x201171(_0x504f0d[_0x1697('0x20')][_0x1697('0x40')],_0x5ed687));}return _0x2079bd;});}[_0x1697('0x75')](_0x66b906){return this['_getCoordsForCells'](_0x66b906['getRanges']()['map'](_0x2bc437=>_0x2bc437[_0x1697('0x1a')][_0x1697('0x40')]));}}function se(_0xa2d3f8){return Array['from'](new Set(_0xa2d3f8)[_0x1697('0x3')]());}
|
|
23
|
+
const _0x1251=['_tablePostFixingSubtypes','has','TableEditing','plugins','isEqual','execute','name','oldRange','mapper','suggestion','change','findAncestor','markMultiRangeInsertion','registerPostFixer','showSuggestionHighlights','selectTableRow','_descriptionFactory','table','downcastDispatcher','selection','minColumn','insertion','enqueueChange','last','nodeBefore','hasAttribute','max','editor','cell','ELEMENT_TABLE_ROW','values','getSelectionAffectedTableCells','nodeAfter','insertTable','_setupColumnsRowsFixing','_suggestionFactory','differ','insert','addRange','MAX_SAFE_INTEGER','ELEMENT_TABLE','afterInit','fromRange','createPositionAt','document','$graveyard','join','rowspan','substr','registerCustomCallback','highest','toLowerCase','addClass','insertTableRowBelow','first','every','includes','root','min','tableRow','get','getChanges','some','_acceptFormatSuggestionCallbackFactory','rootName','ELEMENT_TABLE_WITH_TEXT','forceValue','subType','insertTableColumnRight','addMarker:suggestion','getSuggestion','_tableSuggestions','batch','length','registerDescriptionCallback','writer','getContainedElement','classes','_getCoordsForCells','isArray','startsWith','MIN_SAFE_INTEGER','isIntersectingWithRange','removeTableColumn','map','order','minRow','low','type','selectTableColumn','$textProxy','position','refresh','createTableWalker','getRowIndexes','enableCommand','locale','_getSuggestionCoords','removeTableRow','tablePaste','setSelection','isTouching','item','element','createRangeIn','model','getItems','getCellLocation','tableCell','tableColumn','getRanges','registerElementLabel','TableUtils','commands','createRangeOn','ELEMENT_TABLE_COLUMN_WITH_TEXT','discard','end','from','*Remove:*\x20%0','TrackChangesEditing','filter','accept','insertTableColumnLeft','maxRow','data','deletion','start','toViewElement','colspan','*Insert:*\x20%0','getAttribute','detach','ELEMENT_TABLE_COLUMN','push'];(function(_0xcd132b,_0x1251ae){const _0x475e3c=function(_0x3172a6){while(--_0x3172a6){_0xcd132b['push'](_0xcd132b['shift']());}};_0x475e3c(++_0x1251ae);}(_0x1251,0x99));const _0x475e=function(_0xcd132b,_0x1251ae){_0xcd132b=_0xcd132b-0x0;let _0x475e3c=_0x1251[_0xcd132b];return _0x475e3c;};import{Plugin as _0x1cdcfd}from'ckeditor5/src/core';import{LiveRange as _0x37b854}from'ckeditor5/src/engine';import{setHighlightHandling as _0x120d8a}from'ckeditor5/src/widget';import{getTranslation as _0x13a608}from'../utils/common-translations';export default class mt extends _0x1cdcfd{constructor(_0x3bd103){super(_0x3bd103),this[_0x475e('0x75')]=[_0x475e('0x29'),_0x475e('0x5b')],this[_0x475e('0x35')]=new Set();}[_0x475e('0x17')](){const _0x3a723a=this[_0x475e('0x9')],_0x3d077b=_0x3a723a[_0x475e('0x57')][_0x475e('0x1a')]['selection'];if(!_0x3a723a[_0x475e('0x78')][_0x475e('0x76')](_0x475e('0x77')))return;const _0x2ef58f=_0x3a723a[_0x475e('0x4e')],_0x594122=_0x3a723a[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x66')),_0x32569e=_0x3a723a[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x5e'));_0x594122[_0x475e('0x85')][_0x475e('0x5d')](_0x475e('0x86'),_0x3166e4=>_0x13a608(_0x2ef58f,_0x475e('0x16'),_0x3166e4)),this[_0x475e('0x10')](),_0x594122[_0x475e('0x4d')](_0x475e('0xf')),_0x594122[_0x475e('0x4d')](_0x475e('0x84')),_0x594122['enableCommand'](_0x475e('0x47'));for(const _0x23439f of['insertTableRowAbove',_0x475e('0x23')]){const _0x2a95b5=_0x3a723a[_0x475e('0x5f')]['get'](_0x23439f);_0x594122[_0x475e('0x4d')](_0x23439f,_0x40e417=>{_0x3a723a['model'][_0x475e('0x7f')](_0x52f005=>{_0x40e417();const _0x18ca26='above'===_0x2a95b5[_0x475e('0x43')],_0x4fa6b9=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x186a7b=_0x32569e[_0x475e('0x4c')](_0x4fa6b9),_0x3eee0c=_0x18ca26?_0x186a7b[_0x475e('0x24')]-0x1:_0x186a7b[_0x475e('0x5')]+0x1,_0x4c11c4=_0x4fa6b9[0x0][_0x475e('0x80')](_0x475e('0x86')),_0x43e5d8=_0x32569e[_0x475e('0x4b')](_0x4c11c4,{'startRow':_0x3eee0c,'endRow':_0x3eee0c}),_0x6155f7=Array['from'](_0x43e5d8)[_0x475e('0x42')](_0x1a6197=>_0x52f005['createRangeOn'](_0x1a6197[_0x475e('0xa')]));_0x594122[_0x475e('0x81')](_0x6155f7,'tableRow');});});}for(const _0x20ba22 of[_0x475e('0x69'),_0x475e('0x32')]){const _0x1413fd=_0x3a723a[_0x475e('0x5f')][_0x475e('0x2a')](_0x20ba22);_0x594122[_0x475e('0x4d')](_0x20ba22,_0x4dfc55=>{_0x3a723a[_0x475e('0x57')]['change'](_0x5bdafb=>{_0x4dfc55();const _0x457224='left'===_0x1413fd[_0x475e('0x43')],_0x293424=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x3a7b87=_0x32569e['getColumnIndexes'](_0x293424),_0x5b235c=_0x457224?_0x3a7b87[_0x475e('0x24')]-0x1:_0x3a7b87[_0x475e('0x5')]+0x1,_0x50b642=_0x293424[0x0]['findAncestor'](_0x475e('0x86')),_0x17520b=_0x32569e[_0x475e('0x4b')](_0x50b642,{'startRow':0x0,'column':_0x5b235c,'includeAllSlots':!0x1}),_0x336418=Array[_0x475e('0x64')](_0x17520b)[_0x475e('0x42')](_0x1a14f9=>_0x5bdafb['createRangeOn'](_0x1a14f9[_0x475e('0xa')]));_0x594122[_0x475e('0x81')](_0x336418,'tableColumn');});});}for(const _0x5e8cec of[_0x475e('0x50'),_0x475e('0x41')]){const _0x25e06f=_0x5e8cec[_0x475e('0x1e')](0xb),_0x468b83=_0x25e06f[_0x475e('0x21')](),_0x15a423=_0x468b83[_0x475e('0x1e')](0x0,0x3)+'span',_0x35936c='table'+_0x25e06f,_0x608f87=_0x475e('0x28')+_0x25e06f,_0x506584=_0x475e('0x8')+_0x25e06f;_0x594122['enableCommand'](_0x5e8cec,()=>{_0x3a723a['model']['change'](_0x17ff86=>{const _0xf16393=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x9e9fc8=_0xf16393[0x0][_0x475e('0x80')]('table');let _0x4621a8;if('removeTableRow'==_0x5e8cec){const _0x4f1f69=_0x32569e[_0x475e('0x4c')](_0xf16393);_0x4621a8={'startRow':_0x4f1f69[_0x475e('0x24')],'endRow':_0x4f1f69[_0x475e('0x5')],'includeAllSlots':!0x0};}else{const _0x42ee3e=_0x32569e['getColumnIndexes'](_0xf16393);_0x4621a8={'startColumn':_0x42ee3e[_0x475e('0x24')],'endColumn':_0x42ee3e[_0x475e('0x5')],'includeAllSlots':!0x0};}const _0x4a9a6e=_0x32569e['createTableWalker'](_0x9e9fc8,_0x4621a8),_0x119151=Array[_0x475e('0x64')](_0x4a9a6e)[_0x475e('0x42')](({cell:_0x3f6335})=>_0x3f6335),_0x32677f=se(_0x119151[_0x475e('0x67')](_0x10672e=>_0x10672e['hasAttribute'](_0x15a423))),_0x2dc2db=se(_0x119151[_0x475e('0x67')](_0x18b435=>!_0x18b435[_0x475e('0x7')](_0x15a423)))[_0x475e('0x42')](_0x5c07ef=>_0x17ff86[_0x475e('0x60')](_0x5c07ef)),_0xcc448e=_0x594122['markMultiRangeDeletion'](_0x2dc2db,_0x35936c);if(_0xcc448e&&(_0x475e('0x29')==_0xcc448e[_0x475e('0x31')]||_0x475e('0x5b')==_0xcc448e[_0x475e('0x31')])){const _0x5a7331=this[_0x475e('0x4f')](_0xcc448e);for(const _0x53d731 of _0x32677f){const _0x49980c=_0x17ff86['createRangeOn'](_0x53d731),_0x468446=_0x32569e[_0x475e('0x59')](_0x53d731),_0xa82df9=_0x53d731[_0x475e('0x71')](_0x15a423)-0x1,_0x3183c0=_0x5a7331[_0x608f87],_0x3babb1=_0x5a7331[_0x506584];_0x3183c0<=_0x468446[_0x468b83]&&_0x468446[_0x468b83]+_0xa82df9<=_0x3babb1&&_0xcc448e[_0x475e('0x14')](_0x49980c);}}});});}function _0x12def0(_0x193379){const _0x4d1cbe=Array[_0x475e('0x64')](_0x3d077b[_0x475e('0x5c')]())[_0x475e('0x42')](_0x8a15e6=>_0x37b854[_0x475e('0x18')](_0x8a15e6));_0x3a723a['model']['change'](_0x26afee=>{const _0x4aa9a4=_0x26afee[_0x475e('0x36')];_0x193379=_0x193379[_0x475e('0x67')](_0x57d4f3=>_0x475e('0x1b')!=_0x57d4f3[_0x475e('0x27')][_0x475e('0x2e')]),_0x26afee['setSelection'](_0x193379),_0x3a723a[_0x475e('0x5f')][_0x475e('0x2a')](_0x475e('0x50'))[_0x475e('0x4a')](),_0x3a723a[_0x475e('0x7a')](_0x475e('0x50'),{'forceDefaultExecution':!0x0}),_0x3a723a[_0x475e('0x57')][_0x475e('0x4')](()=>{_0x3a723a[_0x475e('0x57')]['enqueueChange'](_0x4aa9a4,_0x4c3488=>{const _0x44e587=_0x4d1cbe[_0x475e('0x67')](_0x9b80d8=>'$graveyard'!=_0x9b80d8[_0x475e('0x27')][_0x475e('0x2e')]);_0x44e587[_0x475e('0x37')]>0x0&&_0x4c3488['setSelection'](_0x44e587);for(const _0x9863cb of _0x4d1cbe)_0x9863cb[_0x475e('0x72')]();});});});}function _0x3127fe(_0x33f176){_0x3a723a['model'][_0x475e('0x7f')](_0xc73db7=>{const _0x5dbd09=Array[_0x475e('0x64')](_0x3d077b[_0x475e('0x5c')]())[_0x475e('0x42')](_0x56c503=>_0x37b854[_0x475e('0x18')](_0x56c503)),_0x5a03b6=[];for(const _0x198a2b of _0x33f176)for(const _0x243cc9 of _0x198a2b[_0x475e('0x58')]({'shallow':!0x0}))_0x5a03b6['push'](_0x243cc9);for(const _0x1f9338 of _0x5a03b6)_0x475e('0x1b')!=_0x1f9338[_0x475e('0x27')][_0x475e('0x2e')]&&(_0xc73db7[_0x475e('0x52')](_0xc73db7[_0x475e('0x19')](_0x1f9338,0x0)),_0x3a723a['commands'][_0x475e('0x2a')](_0x475e('0x41'))[_0x475e('0x4a')](),_0x3a723a['execute'](_0x475e('0x41'),{'forceDefaultExecution':!0x0}));const _0x409cfc=_0x5dbd09[_0x475e('0x67')](_0x42c4a4=>_0x475e('0x1b')!=_0x42c4a4['root'][_0x475e('0x2e')]);_0x409cfc[_0x475e('0x37')]>0x0&&_0xc73db7[_0x475e('0x52')](_0x409cfc);for(const _0x5ee700 of _0x5dbd09)_0x5ee700[_0x475e('0x72')]();});}function _0x1129f6(_0x3b8d56,_0x7734aa){return _0x7734aa[_0x475e('0x25')](_0x390677=>_0x3b8d56['some'](_0xac47c1=>_0xac47c1[_0x475e('0x63')][_0x475e('0x79')](_0x390677['start'])||_0x390677[_0x475e('0x63')][_0x475e('0x79')](_0xac47c1[_0x475e('0x6d')])));}function _0x45544d(_0x232ca2,_0x268fdc){return _0x232ca2[_0x475e('0x2c')](_0x1a1de6=>_0x268fdc[_0x475e('0x2c')](_0x150fb0=>_0x1a1de6[_0x475e('0x63')][_0x475e('0x53')](_0x150fb0[_0x475e('0x6d')])));}_0x3a723a[_0x475e('0x6b')][_0x475e('0x0')]['on'](_0x475e('0x33'),(_0x22b356,_0x2b7e42,_0x47c1ff)=>{if(!_0x47c1ff['options'][_0x475e('0x83')])return;const _0x52af56=_0x2b7e42[_0x475e('0x54')];if(!_0x52af56)return;const _0x1cd175=_0x47c1ff[_0x475e('0x7d')][_0x475e('0x6e')](_0x52af56);function _0x1375df(_0x384040){return Array[_0x475e('0x3d')](_0x384040)?_0x384040:[_0x384040];}_0x1cd175&&_0x475e('0x5a')===_0x52af56[_0x475e('0x7b')]&&_0x120d8a(_0x1cd175,_0x47c1ff[_0x475e('0x39')],(_0x276a84,_0x501488,_0x570c8a)=>_0x570c8a[_0x475e('0x22')](_0x1375df(_0x501488[_0x475e('0x3b')]),_0x276a84),(_0x4c0d47,_0x1692b6,_0x3ac287)=>_0x3ac287['removeClass'](_0x1375df(_0x1692b6['classes']),_0x4c0d47));},{'priority':_0x475e('0x20')}),_0x594122['_descriptionFactory'][_0x475e('0x38')](_0x2c2f6b=>{if('insertion'!=_0x2c2f6b[_0x475e('0x46')]&&'deletion'!=_0x2c2f6b[_0x475e('0x46')])return;const _0x34ce67=_0x2c2f6b[_0x475e('0x3a')]();if(null!=_0x34ce67&&_0x34ce67['is'](_0x475e('0x55'),_0x475e('0x86'))){if(_0x475e('0x3')==_0x2c2f6b['type']){const _0x205fca=_0x2c2f6b[_0x475e('0x58')]()[_0x475e('0x67')](_0x40e62c=>_0x40e62c['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x42738c=>_0x42738c[_0x475e('0x6b')]);if(_0x205fca['length'])return{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0x2f'),'\x22'+_0x205fca[_0x475e('0x1c')]('\x20')+'\x22'))};}if(_0x475e('0x6c')==_0x2c2f6b[_0x475e('0x46')]){const _0x5963e1=_0x2c2f6b['getItems']()[_0x475e('0x67')](_0x4e71f8=>_0x4e71f8['is'](_0x475e('0x48')))['map'](_0x5c4967=>_0x5c4967[_0x475e('0x6b')]);if(_0x5963e1[_0x475e('0x37')])return{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x2f'),'\x22'+_0x5963e1['join']('\x20')+'\x22'))};}}}),_0x594122[_0x475e('0x85')][_0x475e('0x38')](_0x13a3b5=>{if('tableRow'==_0x13a3b5[_0x475e('0x31')]){const _0x250216=_0x13a3b5[_0x475e('0x58')]()[_0x475e('0x67')](_0x589541=>_0x589541['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x4b6bd2=>_0x4b6bd2['data']),_0x5dbca8=this['_getSuggestionCoords'](_0x13a3b5),_0x463b49=_0x5dbca8[_0x475e('0x6a')]-_0x5dbca8[_0x475e('0x44')]+0x1;if(_0x475e('0x3')==_0x13a3b5[_0x475e('0x46')])return _0x250216[_0x475e('0x37')]?{'type':'insertion','content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x463b49,'\x22'+_0x250216[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0xb'),_0x463b49))};if(_0x475e('0x6c')==_0x13a3b5[_0x475e('0x46')])return _0x250216[_0x475e('0x37')]?{'type':_0x475e('0x6c'),'content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x463b49,'\x22'+_0x250216[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':_0x475e('0x6c'),'content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0xb'),_0x463b49))};}if(_0x475e('0x5b')==_0x13a3b5['subType']){const _0x38ffb4=_0x13a3b5[_0x475e('0x58')]()['filter'](_0x2987d4=>_0x2987d4['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x25d358=>_0x25d358[_0x475e('0x6b')]),_0x3f5919=this['_getSuggestionCoords'](_0x13a3b5),_0x3b28bc=_0x3f5919['maxColumn']-_0x3f5919[_0x475e('0x2')]+0x1;if(_0x475e('0x3')==_0x13a3b5['type'])return _0x38ffb4['length']?{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0x61'),[_0x3b28bc,'\x22'+_0x38ffb4[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_COLUMN',_0x3b28bc))};if(_0x475e('0x6c')==_0x13a3b5['type'])return _0x38ffb4[_0x475e('0x37')]?{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x61'),[_0x3b28bc,'\x22'+_0x38ffb4[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x73'),_0x3b28bc))};}}),_0x594122[_0x475e('0x11')][_0x475e('0x1f')]('insertion',_0x475e('0x29'),_0x475e('0x62'),_0x12def0),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x6c'),'tableRow',_0x475e('0x68'),_0x12def0),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x3'),_0x475e('0x5b'),'discard',_0x3127fe),_0x594122['_suggestionFactory']['registerCustomCallback'](_0x475e('0x6c'),_0x475e('0x5b'),'accept',_0x3127fe),_0x594122['_suggestionFactory'][_0x475e('0x1f')](_0x475e('0x3'),_0x475e('0x5b'),_0x475e('0x1c'),_0x1129f6),_0x594122['_suggestionFactory'][_0x475e('0x1f')](_0x475e('0x6c'),'tableColumn',_0x475e('0x1c'),_0x1129f6),_0x594122[_0x475e('0x11')]['registerCustomCallback'](_0x475e('0x3'),_0x475e('0x29'),'join',_0x45544d),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x6c'),_0x475e('0x29'),'join',_0x45544d);}[_0x475e('0x2d')](){const _0x3c3357=this['editor'],_0x57ba92=_0x3c3357['model']['document'][_0x475e('0x1')];return(_0x2b4e2f,_0x3c8dc6)=>{_0x3c3357[_0x475e('0x57')][_0x475e('0x7f')](_0x5eb3f5=>{const {commandName:_0x5dad0b,commandParams:_0x347885}=_0x3c8dc6;let _0x38118a=_0x2b4e2f[0x0][_0x475e('0x63')][_0x475e('0x6')];_0x347885&&_0x347885[0x0]&&!0x1===_0x347885[0x0][_0x475e('0x30')]&&(_0x38118a=_0x2b4e2f[0x0][_0x475e('0x6d')][_0x475e('0xe')]);const _0x4f1c36=_0x5eb3f5[_0x475e('0x56')](_0x38118a);if('$graveyard'==_0x4f1c36[_0x475e('0x27')][_0x475e('0x2e')])return;const _0x1a0113=Array[_0x475e('0x64')](_0x57ba92['getRanges']())['map'](_0x2bfd08=>_0x37b854[_0x475e('0x18')](_0x2bfd08));_0x5eb3f5['setSelection'](_0x4f1c36),_0x3c3357[_0x475e('0x5f')]['get'](_0x5dad0b)[_0x475e('0x4a')](),_0x347885[_0x475e('0x74')]({'forceDefaultExecution':!0x0}),_0x3c3357[_0x475e('0x7a')](_0x5dad0b,..._0x347885);const _0x24f0c3=_0x1a0113[_0x475e('0x67')](_0x522d5e=>_0x475e('0x1b')!=_0x522d5e[_0x475e('0x27')][_0x475e('0x2e')]);_0x24f0c3[_0x475e('0x37')]>0x0&&_0x5eb3f5[_0x475e('0x52')](_0x24f0c3);for(const _0x423abc of _0x1a0113)_0x423abc[_0x475e('0x72')]();});};}[_0x475e('0x3c')](_0x227163){const _0xda9254=this[_0x475e('0x9')]['plugins'][_0x475e('0x2a')]('TableUtils');let _0x229a14=Number[_0x475e('0x15')],_0x42a9d4=Number[_0x475e('0x3f')],_0x3749aa=Number[_0x475e('0x15')],_0x33d131=Number[_0x475e('0x3f')];for(const _0x37300c of _0x227163){if('$graveyard'==_0x37300c[_0x475e('0x27')][_0x475e('0x2e')])continue;const {row:_0x20c3ee,column:_0x3dc2ff}=_0xda9254[_0x475e('0x59')](_0x37300c),_0x5a45af=_0x37300c[_0x475e('0x7')](_0x475e('0x1d'))?_0x37300c[_0x475e('0x71')](_0x475e('0x1d'))-0x1:0x0,_0x1b0d73=_0x37300c['hasAttribute'](_0x475e('0x6f'))?_0x37300c[_0x475e('0x71')]('colspan')-0x1:0x0;_0x229a14=_0x20c3ee<_0x229a14?_0x20c3ee:_0x229a14,_0x42a9d4=_0x20c3ee+_0x5a45af>_0x42a9d4?_0x20c3ee+_0x5a45af:_0x42a9d4,_0x3749aa=_0x3dc2ff<_0x3749aa?_0x3dc2ff:_0x3749aa,_0x33d131=_0x3dc2ff+_0x1b0d73>_0x33d131?_0x3dc2ff+_0x1b0d73:_0x33d131;}return{'minRow':_0x229a14,'maxRow':_0x42a9d4,'minColumn':_0x3749aa,'maxColumn':_0x33d131};}[_0x475e('0x10')](){const _0x5d4e6f=this[_0x475e('0x9')],_0x1ce830=_0x5d4e6f[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x66')),_0x467ad4=_0x5d4e6f[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x5e'));_0x5d4e6f[_0x475e('0x57')]['document']['on']('change:data',()=>{const _0x40a495=Array['from'](_0x5d4e6f[_0x475e('0x57')]['document'][_0x475e('0x12')]['getChangedMarkers']());for(const {name:_0x96f05d,data:_0x5d2d1b}of _0x40a495){const {group:_0x1e7e8d,id:_0x548ee3,subType:_0x2dcfee}=_0x1ce830['_splitMarkerName'](_0x96f05d);if(_0x475e('0x7e')!=_0x1e7e8d)continue;if(null!=_0x5d2d1b[_0x475e('0x7c')])continue;const _0x46ff09=_0x1ce830[_0x475e('0x34')](_0x548ee3);this[_0x475e('0x75')][_0x475e('0x26')](_0x2dcfee)&&this[_0x475e('0x35')]['add'](_0x46ff09);}},{'priority':_0x475e('0x45')});const _0x155e86=(_0x5c91c6,_0x364bfe)=>{let _0x3df475=!0x1;const _0x501f1b=_0x364bfe[_0x475e('0x60')](_0x5c91c6),_0x41ddcc=_0x5c91c6['findAncestor'](_0x475e('0x86')),_0x12f849=_0x467ad4[_0x475e('0x59')](_0x5c91c6);for(const _0x12ab94 of this[_0x475e('0x35')]){const _0x2e542a=_0x12ab94[_0x475e('0x31')],_0x4080c4=_0x2e542a[_0x475e('0x3e')](_0x475e('0x51')),_0x4d9ccd=_0x2e542a[_0x475e('0x1e')](_0x4080c4?0xa:0x5),_0x4d47ab=_0x4d9ccd[_0x475e('0x21')](),_0x30f6e9=_0x4d47ab['substr'](0x0,0x3)+'span',_0x181651=_0x475e('0x28')+_0x4d9ccd,_0x4eac47='max'+_0x4d9ccd;if(!_0x12ab94['isInContent'])continue;if(_0x41ddcc!=_0x12ab94['getFirstRange']()[_0x475e('0x6d')][_0x475e('0x80')](_0x475e('0x86')))continue;if(_0x12ab94[_0x475e('0x40')](_0x501f1b))continue;const _0x2f2139=_0x5c91c6[_0x475e('0x7')](_0x30f6e9)?_0x5c91c6[_0x475e('0x71')](_0x30f6e9)-0x1:0x0,_0x470c0b=this[_0x475e('0x4f')](_0x12ab94),_0x5b7286=_0x470c0b[_0x181651],_0x18d381=_0x470c0b[_0x4eac47];_0x5b7286<=_0x12f849[_0x4d47ab]&&_0x12f849[_0x4d47ab]+_0x2f2139<=_0x18d381&&(_0x12ab94[_0x475e('0x14')](_0x501f1b),_0x3df475=!0x0);}return _0x3df475;};_0x5d4e6f[_0x475e('0x57')]['document'][_0x475e('0x82')](_0x8d32bb=>{let _0x307026=!0x1;for(const _0x1ffbdc of _0x5d4e6f[_0x475e('0x57')][_0x475e('0x1a')][_0x475e('0x12')][_0x475e('0x2b')]())if(_0x475e('0x13')==_0x1ffbdc['type']){if(_0x475e('0x29')==_0x1ffbdc[_0x475e('0x7b')])for(const _0xdfe617 of _0x1ffbdc[_0x475e('0x49')][_0x475e('0xe')]['getChildren']())_0x307026=_0x307026||_0x155e86(_0xdfe617,_0x8d32bb);else _0x475e('0x5a')==_0x1ffbdc[_0x475e('0x7b')]&&(_0x307026=_0x307026||_0x155e86(_0x1ffbdc['position'][_0x475e('0xe')],_0x8d32bb));}return _0x307026;});}[_0x475e('0x4f')](_0x55beda){return this[_0x475e('0x3c')](_0x55beda[_0x475e('0x5c')]()[_0x475e('0x42')](_0x28a827=>_0x28a827[_0x475e('0x6d')]['nodeAfter']));}}function se(_0x176719){return Array[_0x475e('0x64')](new Set(_0x176719)[_0x475e('0xc')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f7d=['has','afterInit','TrackChangesEditing','get','toggleTableCaption','editor','enableCommand'];(function(_0x416e3c,_0x4f7dd5){const _0x3412a4=function(_0x739a34){while(--_0x739a34){_0x416e3c['push'](_0x416e3c['shift']());}};_0x3412a4(++_0x4f7dd5);}(_0x4f7d,0x75));const _0x3412=function(_0x416e3c,_0x4f7dd5){_0x416e3c=_0x416e3c-0x0;let _0x3412a4=_0x4f7d[_0x416e3c];return _0x3412a4;};import{Plugin as _0x4d6c73}from'ckeditor5/src/core';import _0x33a89d from'./table';export default class vt extends _0x4d6c73{static get['requires'](){return[_0x33a89d];}[_0x3412('0x3')](){const _0x120b98=this[_0x3412('0x0')];if(!_0x120b98['plugins'][_0x3412('0x2')]('TableCaptionEditing'))return;_0x120b98['plugins'][_0x3412('0x5')](_0x3412('0x4'))[_0x3412('0x1')](_0x3412('0x6'));}}
|