@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230914.0 → 0.0.0-nightly-20230915.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 -3
- 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 _0x5099=['handleListReversedCommand','toUpperCase','listItem','ListPropertiesEditing','createRange','_LIST_','replace','length','enableCommand','_descriptionFactory','forward','before','element','model','handleListStyleCommand','bind','startIndex','has','editor','_getTranslationKeyForListStyle','get','styles','_getSuggestionBlocksForListStyle','locale','unshift','type','map','handleListStartCommand','listType','_getSuggestionBlocks','listReversed','getListTypeFromListStyleType','filter','reversed','registerDescriptionCallback','change','from','push','listStart','getSiblingNodes','createPositionAt','plugins','selection','*Format:*\x20set\x20order\x20to\x20regular','*Change\x20to:*\x20%0','parent','ListUtils','getSelectedBlocks','*Format:*\x20set\x20start\x20index\x20to\x20%0','document','ELEMENT_','format','commandName','backward','markMultiRangeBlockFormat','TrackChangesEditing','commandParams','getFirstPosition','numbered','config','*Format:*\x20set\x20order\x20to\x20reversed','listStyle'];(function(_0x4f6779,_0x5099a2){const _0x4d01b8=function(_0x21ba8e){while(--_0x21ba8e){_0x4f6779['push'](_0x4f6779['shift']());}};_0x4d01b8(++_0x5099a2);}(_0x5099,0x1b1));const _0x4d01=function(_0x4f6779,_0x5099a2){_0x4f6779=_0x4f6779-0x0;let _0x4d01b8=_0x5099[_0x4f6779];return _0x4d01b8;};import{Plugin as _0x2b795c}from'ckeditor5/src/core';import{getTranslation as _0x36f3a2}from'../utils/common-translations';export default class st extends _0x2b795c{['afterInit'](){if(!this[_0x4d01('0x13')]['plugins'][_0x4d01('0x12')](_0x4d01('0x4')))return;const _0x4e7f1a=this[_0x4d01('0x13')][_0x4d01('0x3c')][_0x4d01('0x15')]('list.properties'),_0x10c607=this[_0x4d01('0x13')][_0x4d01('0x2a')]['get'](_0x4d01('0x38'));_0x4e7f1a[_0x4d01('0x16')]&&_0x10c607[_0x4d01('0x9')](_0x4d01('0x0'),this['handleListStyleCommand'][_0x4d01('0x10')](this)),_0x4e7f1a[_0x4d01('0x22')]&&_0x10c607[_0x4d01('0x9')](_0x4d01('0x1f'),this[_0x4d01('0x1')]['bind'](this)),_0x4e7f1a['startIndex']&&_0x10c607[_0x4d01('0x9')](_0x4d01('0x27'),this['handleListStartCommand'][_0x4d01('0x10')](this)),_0x10c607[_0x4d01('0xa')][_0x4d01('0x23')](this['handleDescriptions'][_0x4d01('0x10')](this));}[_0x4d01('0xf')](_0x2d4a98,_0x29dc99={}){const _0x5bebb3=this[_0x4d01('0x13')][_0x4d01('0x2a')][_0x4d01('0x15')](_0x4d01('0x38')),_0x136691=this[_0x4d01('0x17')]();this[_0x4d01('0x13')][_0x4d01('0xe')][_0x4d01('0x24')](()=>{_0x5bebb3[_0x4d01('0x37')](_0x136691,{'commandName':'listStyle','commandParams':[{'type':_0x29dc99[_0x4d01('0x1a')]}],'formatGroupId':_0x4d01('0x0')});});}[_0x4d01('0x1')](_0x513df5,_0x20f24c={}){const _0x1b2be9=this[_0x4d01('0x13')][_0x4d01('0x2a')][_0x4d01('0x15')](_0x4d01('0x38')),_0x2c56ae=this[_0x4d01('0x1e')](_0x592f84=>_0x592f84['is'](_0x4d01('0xd'),_0x4d01('0x3'))&&_0x4d01('0x3b')===_0x592f84['getAttribute'](_0x4d01('0x1d')));if(_0x2c56ae[_0x4d01('0x8')]<0x1)return;const _0x3123d1=_0x2c56ae[_0x4d01('0x1b')](_0x1ae227=>this[_0x4d01('0x13')]['model'][_0x4d01('0x5')](this[_0x4d01('0x13')][_0x4d01('0xe')]['createPositionAt'](_0x1ae227,_0x4d01('0xc')),this[_0x4d01('0x13')]['model'][_0x4d01('0x29')](_0x1ae227,0x0)));this[_0x4d01('0x13')][_0x4d01('0xe')][_0x4d01('0x24')](()=>{_0x1b2be9[_0x4d01('0x37')](_0x3123d1,{'commandName':_0x4d01('0x1f'),'commandParams':[{'reversed':_0x20f24c[_0x4d01('0x22')]}],'formatGroupId':_0x4d01('0x1f')});});}[_0x4d01('0x1c')](_0x5a4ff6,_0x13c5ee={}){const _0x295773=this[_0x4d01('0x13')]['plugins'][_0x4d01('0x15')](_0x4d01('0x38')),_0x2270b5=this['_getSuggestionBlocks'](_0xe94e46=>_0xe94e46['is'](_0x4d01('0xd'),_0x4d01('0x3'))&&_0x4d01('0x3b')===_0xe94e46['getAttribute']('listType'));if(_0x2270b5[_0x4d01('0x8')]<0x1)return;const _0x2f4804=_0x2270b5['map'](_0x41dbd4=>this[_0x4d01('0x13')][_0x4d01('0xe')][_0x4d01('0x5')](this[_0x4d01('0x13')]['model'][_0x4d01('0x29')](_0x41dbd4,_0x4d01('0xc')),this[_0x4d01('0x13')][_0x4d01('0xe')][_0x4d01('0x29')](_0x41dbd4,0x0)));this[_0x4d01('0x13')][_0x4d01('0xe')][_0x4d01('0x24')](()=>{_0x295773[_0x4d01('0x37')](_0x2f4804,{'commandName':'listStart','commandParams':[{'startIndex':_0x13c5ee[_0x4d01('0x11')]}],'formatGroupId':_0x4d01('0x27')});});}['handleDescriptions'](_0x2e7600){const _0x13ea84=this[_0x4d01('0x13')][_0x4d01('0x18')],{data:_0x443372}=_0x2e7600;if(!_0x443372)return;let _0x240da5,_0xdbd778;switch(_0x443372[_0x4d01('0x35')]){case _0x4d01('0x0'):_0x240da5=_0x4d01('0x2d'),_0xdbd778={'type':_0x4d01('0x34'),'content':_0x36f3a2(_0x13ea84,_0x240da5,_0x36f3a2(_0x13ea84,this['_getTranslationKeyForListStyle'](_0x443372['commandParams'][0x0][_0x4d01('0x1a')])))};break;case'listReversed':_0x240da5=_0x443372[_0x4d01('0x39')][0x0]['reversed']?_0x4d01('0x3d'):_0x4d01('0x2c'),_0xdbd778={'type':_0x4d01('0x34'),'content':_0x36f3a2(_0x13ea84,_0x240da5)};break;case _0x4d01('0x27'):_0x240da5=_0x4d01('0x31'),_0xdbd778={'type':_0x4d01('0x34'),'content':_0x36f3a2(_0x13ea84,_0x240da5,_0x443372[_0x4d01('0x39')][0x0][_0x4d01('0x11')])};}return _0xdbd778;}[_0x4d01('0x17')](){var _0x190705,_0x20fdb6,_0xc00b0,_0x4dfc8d;const _0xf6d7ed=this['editor']['plugins'][_0x4d01('0x15')](_0x4d01('0x2f'));let _0x19b22c=Array[_0x4d01('0x25')](this[_0x4d01('0x13')][_0x4d01('0xe')][_0x4d01('0x32')][_0x4d01('0x2b')]['getSelectedBlocks']());return(null===(_0x190705=_0x19b22c[0x0])||void 0x0===_0x190705?void 0x0:_0x190705['is'](_0x4d01('0xd'),_0x4d01('0x3')))&&_0x19b22c[_0x4d01('0x19')](..._0xf6d7ed[_0x4d01('0x28')](this['editor'][_0x4d01('0xe')][_0x4d01('0x32')][_0x4d01('0x2b')][_0x4d01('0x3a')](),_0x4d01('0x36'))),(null===(_0x20fdb6=_0x19b22c[_0x19b22c['length']-0x1])||void 0x0===_0x20fdb6?void 0x0:_0x20fdb6['is'](_0x4d01('0xd'),'listItem'))&&_0x19b22c[_0x4d01('0x26')](..._0xf6d7ed[_0x4d01('0x28')](this[_0x4d01('0x13')][_0x4d01('0xe')]['document'][_0x4d01('0x2b')]['getLastPosition'](),_0x4d01('0xb'))),_0x19b22c=[...new Set(_0x19b22c)],(null===(_0x4dfc8d=null===(_0xc00b0=this['editor'][_0x4d01('0xe')][_0x4d01('0x32')][_0x4d01('0x2b')][_0x4d01('0x3a')]())||void 0x0===_0xc00b0?void 0x0:_0xc00b0[_0x4d01('0x2e')])||void 0x0===_0x4dfc8d?void 0x0:_0x4dfc8d['is']('element',_0x4d01('0x3')))&&(_0x19b22c=_0x19b22c['filter'](_0x3bf9b3=>_0x3bf9b3['is'](_0x4d01('0xd'),_0x4d01('0x3')))),_0x19b22c;}[_0x4d01('0x1e')](_0x160840){const _0x2e0efa=this[_0x4d01('0x13')]['plugins'][_0x4d01('0x15')](_0x4d01('0x2f'));let _0x22b6eb=Array['from'](this['editor']['model'][_0x4d01('0x32')][_0x4d01('0x2b')][_0x4d01('0x30')]())[_0x4d01('0x21')](_0x160840)[_0x4d01('0x1b')](_0x542126=>{const _0xcfa9a=this[_0x4d01('0x13')][_0x4d01('0xe')][_0x4d01('0x29')](_0x542126,0x0);return[..._0x2e0efa[_0x4d01('0x28')](_0xcfa9a,'backward'),..._0x2e0efa['getSiblingNodes'](_0xcfa9a,_0x4d01('0xb'))];})['flat']();return _0x22b6eb=[...new Set(_0x22b6eb)],_0x22b6eb;}[_0x4d01('0x14')](_0x5ea136){return _0x4d01('0x33')+this[_0x4d01('0x13')]['plugins'][_0x4d01('0x15')](_0x4d01('0x2f'))[_0x4d01('0x20')](_0x5ea136)[_0x4d01('0x2')]()+_0x4d01('0x6')+_0x5ea136[_0x4d01('0x2')]()[_0x4d01('0x7')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3314=['for','_descriptionFactory','showSuggestionHighlights','options','dataDowncast','attribute:url:media','createEmptyElement','data','elementToElement','TrackChangesEditing','ELEMENT_MEDIA','MediaEmbedEditing','plugins','downcastDispatcher','enableCommand','has','registerElementLabel','conversion','media','stop','afterInit','mediaEmbed','high','editor'];(function(_0x1e0f70,_0x331408){const _0x2eea52=function(_0x43266b){while(--_0x43266b){_0x1e0f70['push'](_0x1e0f70['shift']());}};_0x2eea52(++_0x331408);}(_0x3314,0xe2));const _0x2eea=function(_0x1e0f70,_0x331408){_0x1e0f70=_0x1e0f70-0x0;let _0x2eea52=_0x3314[_0x1e0f70];return _0x2eea52;};import{Plugin as _0x4576cd}from'ckeditor5/src/core';import{getTranslation as _0x1f23c5}from'../utils/common-translations';export default class ot extends _0x4576cd{[_0x2eea('0xa')](){const _0x47d928=this[_0x2eea('0xd')];if(!_0x47d928['plugins'][_0x2eea('0x5')](_0x2eea('0x1')))return;const _0x56fc6e=_0x47d928[_0x2eea('0x2')]['get'](_0x2eea('0x17')),_0xcce8b8=_0x47d928['locale'];_0x56fc6e[_0x2eea('0x4')](_0x2eea('0xb')),_0x56fc6e[_0x2eea('0xf')][_0x2eea('0x6')](_0x2eea('0x8'),_0x937f74=>_0x1f23c5(_0xcce8b8,_0x2eea('0x0'),_0x937f74)),_0x47d928[_0x2eea('0x7')][_0x2eea('0xe')](_0x2eea('0x12'))[_0x2eea('0x16')]({'model':_0x2eea('0x8'),'view':(_0x414edf,{writer:_0x35e14e,options:_0x4c9eb2})=>{if(_0x4c9eb2[_0x2eea('0x10')])return _0x35e14e[_0x2eea('0x14')]('div');},'converterPriority':_0x2eea('0xc')}),_0x47d928[_0x2eea('0x15')][_0x2eea('0x3')]['on'](_0x2eea('0x13'),(_0x54a8a9,_0xa4c1d7,_0x6e7284)=>{_0x6e7284[_0x2eea('0x11')]['showSuggestionHighlights']&&_0x54a8a9[_0x2eea('0x9')]();},{'priority':_0x2eea('0xc')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x417c=['TrackChangesEditing','has','enableCommand','get','mention','plugins','editor'];(function(_0x33b9d7,_0x417cce){const _0x25dc84=function(_0x4d845b){while(--_0x4d845b){_0x33b9d7['push'](_0x33b9d7['shift']());}};_0x25dc84(++_0x417cce);}(_0x417c,0x13d));const _0x25dc=function(_0x33b9d7,_0x417cce){_0x33b9d7=_0x33b9d7-0x0;let _0x25dc84=_0x417c[_0x33b9d7];return _0x25dc84;};import{Plugin as _0x192a13}from'ckeditor5/src/core';export default class rt extends _0x192a13{['afterInit'](){const _0x4e5b7f=this[_0x25dc('0x4')];_0x4e5b7f[_0x25dc('0x3')][_0x25dc('0x6')]('MentionEditing')&&_0x4e5b7f[_0x25dc('0x3')][_0x25dc('0x1')](_0x25dc('0x5'))[_0x25dc('0x0')](_0x25dc('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b09=['ELEMENT_PAGE_BREAK','plugins','PageBreakEditing','pageBreak','_descriptionFactory','TrackChangesEditing','locale','afterInit','enableCommand','get'];(function(_0x45b236,_0x3b096f){const _0x470ba7=function(_0x28331d){while(--_0x28331d){_0x45b236['push'](_0x45b236['shift']());}};_0x470ba7(++_0x3b096f);}(_0x3b09,0x189));const _0x470b=function(_0x45b236,_0x3b096f){_0x45b236=_0x45b236-0x0;let _0x470ba7=_0x3b09[_0x45b236];return _0x470ba7;};import{Plugin as _0x1433e1}from'ckeditor5/src/core';import{getTranslation as _0x5ad78d}from'../utils/common-translations';export default class at extends _0x1433e1{[_0x470b('0x4')](){const _0x4cbce5=this['editor'];if(!_0x4cbce5[_0x470b('0x8')]['has'](_0x470b('0x9')))return;_0x4cbce5[_0x470b('0x8')][_0x470b('0x6')](_0x470b('0x2'))[_0x470b('0x5')]('pageBreak');const _0x3ed08b=_0x4cbce5[_0x470b('0x8')]['get'](_0x470b('0x2')),_0x36512c=_0x4cbce5[_0x470b('0x3')];_0x3ed08b[_0x470b('0x1')]['registerElementLabel'](_0x470b('0x0'),_0x2c7704=>_0x5ad78d(_0x36512c,_0x470b('0x7'),_0x2c7704));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fd8=['nodeAfter','includes','isBlock','data','toViewPosition','writer','isTouching','options','get','showSuggestionHighlights','addClass','isLimit','getSelectedBlocks','start','schema','downcastDispatcher','parent','end','format','ELEMENT_PARAGRAPH','isObject','_descriptionFactory','addMarker:suggestion:insertion','insertParagraph','paragraph','name','selection','$text','markerName','createUIElement','filter','change','checkChild','insert','span','locale','Paragraph','editor','highest','getFirstRange','from','document','markBlockFormat','insertion','TrackChangesEditing','enableCommand','mapper','registerDescriptionCallback','ck-suggestion-marker--active','consume','has','plugins','registerElementLabel','editing','markerRange','model','type'];(function(_0x271e4d,_0x2fd87c){const _0x1d9e81=function(_0x4019ab){while(--_0x4019ab){_0x271e4d['push'](_0x271e4d['shift']());}};_0x1d9e81(++_0x2fd87c);}(_0x2fd8,0x108));const _0x1d9e=function(_0x271e4d,_0x2fd87c){_0x271e4d=_0x271e4d-0x0;let _0x1d9e81=_0x2fd8[_0x271e4d];return _0x1d9e81;};import{Plugin as _0x4bf6b2}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x39d98c}from'./utils';import{getTranslation as _0x349859}from'../utils/common-translations';export default class ct extends _0x4bf6b2{['afterInit'](){const _0x5289b9=this[_0x1d9e('0x1')];if(!_0x5289b9[_0x1d9e('0xf')][_0x1d9e('0xe')](_0x1d9e('0x0')))return;const _0x542cb1=_0x5289b9[_0x1d9e('0x38')],_0x1544c4=_0x5289b9['plugins']['get'](_0x1d9e('0x8'));_0x1544c4[_0x1d9e('0x2a')][_0x1d9e('0x10')]('paragraph',_0xf96589=>_0x349859(_0x542cb1,_0x1d9e('0x28'),_0xf96589)),_0x1544c4[_0x1d9e('0x9')]('paragraph',(_0x5cfdad,_0x551f5c={})=>{const _0x217af1=_0x5289b9['model'][_0x1d9e('0x5')],_0x1b7367=_0x551f5c[_0x1d9e('0x2f')]||_0x217af1[_0x1d9e('0x2f')],_0x6a33b5=Array[_0x1d9e('0x4')](_0x1b7367[_0x1d9e('0x21')]())[_0x1d9e('0x33')](_0x2485f3=>function(_0x20a2a5,_0x469017){return _0x469017['checkChild'](_0x20a2a5[_0x1d9e('0x25')],_0x1d9e('0x2d'))&&!_0x469017[_0x1d9e('0x29')](_0x20a2a5)&&_0x1d9e('0x2d')!=_0x20a2a5[_0x1d9e('0x2e')];}(_0x2485f3,this['editor'][_0x1d9e('0x13')][_0x1d9e('0x23')]));_0x5289b9['model'][_0x1d9e('0x34')](()=>{for(const _0x60c1d7 of _0x6a33b5)_0x1544c4[_0x1d9e('0x6')](_0x60c1d7,{'commandName':'paragraph','commandParams':[],'formatGroupId':'blockName'},_0x39d98c(_0x60c1d7));});}),_0x1544c4['_descriptionFactory'][_0x1d9e('0xb')](_0x48a1ea=>{const {data:_0xf6f3c1}=_0x48a1ea;if(_0xf6f3c1&&_0x1d9e('0x2d')==_0xf6f3c1['commandName'])return{'type':_0x1d9e('0x27'),'content':_0x349859(_0x542cb1,'*Change\x20to:*\x20%0',_0x349859(_0x542cb1,_0x1d9e('0x28')))};}),_0x1544c4[_0x1d9e('0x9')](_0x1d9e('0x2c')),_0x5289b9[_0x1d9e('0x11')][_0x1d9e('0x24')]['on'](_0x1d9e('0x2b'),ar(_0x5289b9),{'priority':_0x1d9e('0x2')}),_0x5289b9[_0x1d9e('0x18')][_0x1d9e('0x24')]['on'](_0x1d9e('0x2b'),(_0x2212c9,_0x19d779,_0x18dcbe)=>{_0x18dcbe[_0x1d9e('0x1c')][_0x1d9e('0x1e')]&&ar(_0x5289b9,{'showActiveMarker':!0x1})(_0x2212c9,_0x19d779,_0x18dcbe);},{'priority':_0x1d9e('0x2')});const _0x35ba9f=_0x1544c4[_0x1d9e('0x2a')];_0x35ba9f['registerDescriptionCallback'](_0x246cbe=>{if('insertion'!==_0x246cbe[_0x1d9e('0x14')])return;const {start:_0x376825,end:_0x42c0e5}=_0x246cbe[_0x1d9e('0x3')]();if(!_0x376825[_0x1d9e('0x1b')](_0x42c0e5)||!_0x376825[_0x1d9e('0x15')])return;const _0x46a0e9=_0x5289b9[_0x1d9e('0x13')][_0x1d9e('0x23')],_0x1d9d42=_0x376825['nodeAfter'];return _0x46a0e9[_0x1d9e('0x17')](_0x1d9d42)&&!_0x46a0e9[_0x1d9e('0x20')](_0x1d9d42)&&_0x46a0e9[_0x1d9e('0x35')](_0x1d9d42,_0x1d9e('0x30'))?{'type':_0x1d9e('0x7'),'content':_0x349859(_0x542cb1,'*Insert:*\x20%0',_0x35ba9f['getItemLabel'](_0x1d9d42,0x1))}:void 0x0;});}}function ar(_0x32d185,{showActiveMarker:_0x4b576d=!0x0}={}){return(_0x530a59,_0x4494ab,_0x5e64e0)=>{const _0x5ef8df=_0x32d185['plugins'][_0x1d9e('0x1d')]('TrackChangesEditing'),_0xbce775=_0x4494ab[_0x1d9e('0x12')][_0x1d9e('0x22')],_0x44585d=_0x4494ab[_0x1d9e('0x12')][_0x1d9e('0x26')],_0x2b266f=_0x32d185[_0x1d9e('0x13')][_0x1d9e('0x23')];if(!_0xbce775[_0x1d9e('0x1b')](_0x44585d)||!_0xbce775[_0x1d9e('0x15')])return;const _0x3ed11e=_0xbce775[_0x1d9e('0x15')];if(_0x2b266f['isBlock'](_0x3ed11e)&&!_0x2b266f[_0x1d9e('0x20')](_0x3ed11e)&&_0x2b266f[_0x1d9e('0x35')](_0x3ed11e,_0x1d9e('0x30'))){if(!_0x5e64e0['consumable'][_0x1d9e('0xd')](_0x4494ab[_0x1d9e('0x12')],_0x530a59[_0x1d9e('0x2e')]))return;const _0xa9aa6e=_0x5e64e0[_0x1d9e('0x1a')][_0x1d9e('0x32')](_0x1d9e('0x37'),{'class':'ck-suggestion-marker-split'}),_0x3b776d=_0x5e64e0[_0x1d9e('0xa')][_0x1d9e('0x19')](_0x44585d);_0x4b576d&&_0x5ef8df['activeMarkers'][_0x1d9e('0x16')](_0x4494ab['markerName'])&&_0x5e64e0[_0x1d9e('0x1a')][_0x1d9e('0x1f')](_0x1d9e('0xc'),_0xa9aa6e),_0x5e64e0['writer'][_0x1d9e('0x36')](_0x3b776d,_0xa9aa6e),_0x5e64e0['mapper']['bindElementToMarker'](_0xa9aa6e,_0x4494ab[_0x1d9e('0x31')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c91=['removeFormat','format','_descriptionFactory','getAttributes','from','model','isFormatting','TrackChangesEditing','selection','get','editor','getItems','plugins','document','*Remove\x20all\x20formatting*','isCollapsed','schema','markInlineFormat','afterInit','has','createRangeOn','commandName','getAttributeProperties'];(function(_0x499e58,_0x4c91a4){const _0x4f8849=function(_0x3786a9){while(--_0x3786a9){_0x499e58['push'](_0x499e58['shift']());}};_0x4f8849(++_0x4c91a4);}(_0x4c91,0x199));const _0x4f88=function(_0x499e58,_0x4c91a4){_0x499e58=_0x499e58-0x0;let _0x4f8849=_0x4c91[_0x499e58];return _0x4f8849;};import{Plugin as _0x20edd6}from'ckeditor5/src/core';import{getTranslation as _0x1d3a20}from'../utils/common-translations';export default class ht extends _0x20edd6{[_0x4f88('0x0')](){const _0x291efa=this[_0x4f88('0xf')];if(!_0x291efa['plugins'][_0x4f88('0x1')]('RemoveFormatEditing'))return;const _0x30f89e=_0x291efa[_0x4f88('0x11')][_0x4f88('0xe')](_0x4f88('0xc'));_0x30f89e['enableCommand']('removeFormat',_0x288e8d=>{const _0x3554c2=_0x291efa[_0x4f88('0xa')][_0x4f88('0x12')][_0x4f88('0xd')];_0x3554c2[_0x4f88('0x14')]?_0x288e8d():_0x291efa[_0x4f88('0xa')]['change'](()=>{const _0x1edde7=Array[_0x4f88('0x9')](_0x3554c2['getRanges']());for(const _0x20ab60 of _0x1edde7)for(const _0x44d6fa of _0x20ab60[_0x4f88('0x10')]())mo(_0x44d6fa,_0x291efa[_0x4f88('0xa')][_0x4f88('0x15')])&&_0x30f89e[_0x4f88('0x16')](_0x291efa[_0x4f88('0xa')][_0x4f88('0x2')](_0x44d6fa),{'commandName':_0x4f88('0x5'),'commandParams':[]});});}),_0x30f89e[_0x4f88('0x7')]['registerDescriptionCallback'](_0xbfe8ba=>{const {data:_0x4ef162}=_0xbfe8ba;if(_0x4ef162&&_0x4f88('0x5')==_0x4ef162[_0x4f88('0x3')])return{'type':_0x4f88('0x6'),'content':_0x1d3a20(_0x291efa['locale'],_0x4f88('0x13'))};});}}function mo(_0x59f46e,_0x35e1e8){for(const [_0x4bf571]of _0x59f46e[_0x4f88('0x8')]()){const _0x71437d=_0x35e1e8[_0x4f88('0x4')](_0x4bf571);if(_0x71437d&&_0x71437d[_0x4f88('0xb')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29b5=['discardSuggestion','has','acceptSuggestion','discardAllSuggestions','RestrictedEditingModeEditing','trackChanges','editor','goToPreviousRestrictedEditingException','goToNextRestrictedEditingException','acceptSelectedSuggestions','discardSelectedSuggestions','enableCommand','get','plugins'];(function(_0x4b6f13,_0x29b5d9){const _0x2a948e=function(_0x2a02b4){while(--_0x2a02b4){_0x4b6f13['push'](_0x4b6f13['shift']());}};_0x2a948e(++_0x29b5d9);}(_0x29b5,0x77));const _0x2a94=function(_0x4b6f13,_0x29b5d9){_0x4b6f13=_0x4b6f13-0x0;let _0x2a948e=_0x29b5[_0x4b6f13];return _0x2a948e;};import{Plugin as _0x54b1d8}from'ckeditor5/src/core';export default class ut extends _0x54b1d8{['afterInit'](){const _0x40c2c6=this[_0x2a94('0xd')];if(!_0x40c2c6[_0x2a94('0x6')][_0x2a94('0x8')](_0x2a94('0xb')))return;const _0x535d0d=_0x40c2c6[_0x2a94('0x6')][_0x2a94('0x5')]('TrackChangesEditing');_0x535d0d[_0x2a94('0x4')](_0x2a94('0x0')),_0x535d0d[_0x2a94('0x4')](_0x2a94('0x1'));const _0xedc580=_0x40c2c6[_0x2a94('0x6')][_0x2a94('0x5')](_0x2a94('0xb'));_0xedc580['enableCommand'](_0x2a94('0xc')),_0xedc580[_0x2a94('0x4')](_0x2a94('0x9')),_0xedc580[_0x2a94('0x4')](_0x2a94('0x7')),_0xedc580['enableCommand']('acceptAllSuggestions'),_0xedc580[_0x2a94('0x4')](_0x2a94('0xa')),_0xedc580[_0x2a94('0x4')](_0x2a94('0x2')),_0xedc580[_0x2a94('0x4')](_0x2a94('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6080=['enableCommand','markerRange','insert','showSuggestionHighlights','init','model','span','bindElementToMarker','addClass','locale','TrackChangesEditing','options','registerElementLabel','softBreak','getItems','shiftEnter','element','addMarker:suggestion','toViewPosition','activeMarkers','_descriptionFactory','plugins','ck-suggestion-marker-','split','writer','high','data','markerName','consumable','mapper','test','deletion','downcastDispatcher','editing','includes'];(function(_0x251244,_0x6080ea){const _0x5d358d=function(_0x5141b8){while(--_0x5141b8){_0x251244['push'](_0x251244['shift']());}};_0x5d358d(++_0x6080ea);}(_0x6080,0xff));const _0x5d35=function(_0x251244,_0x6080ea){_0x251244=_0x251244-0x0;let _0x5d358d=_0x6080[_0x251244];return _0x5d358d;};import{Plugin as _0x102c82}from'ckeditor5/src/core';import{ShiftEnter as _0x1092c3}from'ckeditor5/src/enter';import{getTranslation as _0x1f39df}from'../utils/common-translations';export default class ft extends _0x102c82{static get['requires'](){return[_0x1092c3];}[_0x5d35('0x1d')](){const _0x2ec902=this['editor'],_0x28375f=_0x2ec902[_0x5d35('0xb')]['get'](_0x5d35('0x0'));_0x28375f[_0x5d35('0x19')](_0x5d35('0x5')),_0x2ec902[_0x5d35('0x17')][_0x5d35('0x16')]['on']('addMarker:suggestion:insertion',re(_0x2ec902),{'priority':_0x5d35('0xf')}),_0x2ec902[_0x5d35('0x17')][_0x5d35('0x16')]['on']('addMarker:suggestion:deletion',re(_0x2ec902),{'priority':_0x5d35('0xf')}),_0x2ec902[_0x5d35('0x10')][_0x5d35('0x16')]['on'](_0x5d35('0x7'),(_0x31e857,_0x380288,_0x5612d0)=>{_0x5612d0[_0x5d35('0x1')][_0x5d35('0x1c')]&&re(_0x2ec902,{'showActiveMarker':!0x1})(_0x31e857,_0x380288,_0x5612d0);}),_0x28375f[_0x5d35('0xa')][_0x5d35('0x2')]('softBreak',_0x41e83f=>_0x1f39df(_0x2ec902[_0x5d35('0x22')],'ELEMENT_LINE_BREAK',_0x41e83f));}}function re(_0x458801,{showActiveMarker:_0x2642be=!0x0}={}){return(_0x5a9ef3,_0x5e9e10,_0x5cf36a)=>{const _0x53ca16=_0x458801[_0x5d35('0xb')]['get'](_0x5d35('0x0'));if(!_0x5cf36a[_0x5d35('0x12')][_0x5d35('0x14')](_0x5e9e10[_0x5d35('0x1a')],_0x5a9ef3['name']))return;const _0x2a473d=_0x458801[_0x5d35('0x1e')];for(const _0x3b80aa of _0x5e9e10[_0x5d35('0x1a')][_0x5d35('0x4')]()){if(!_0x3b80aa['is'](_0x5d35('0x6'),_0x5d35('0x3')))continue;const _0x17097c=_0x5d35('0x15')==_0x5e9e10['markerName'][_0x5d35('0xd')](':')[0x1]?'merge':'split',_0x51cb34=_0x5cf36a[_0x5d35('0xe')]['createUIElement'](_0x5d35('0x1f'),{'class':_0x5d35('0xc')+_0x17097c}),_0x5e7601=_0x5cf36a['mapper'][_0x5d35('0x8')](_0x2a473d['createPositionBefore'](_0x3b80aa));_0x2642be&&_0x53ca16[_0x5d35('0x9')][_0x5d35('0x18')](_0x5e9e10[_0x5d35('0x11')])&&_0x5cf36a[_0x5d35('0xe')][_0x5d35('0x21')]('ck-suggestion-marker--active',_0x51cb34),_0x5cf36a[_0x5d35('0xe')][_0x5d35('0x1b')](_0x5e7601,_0x51cb34),_0x5cf36a[_0x5d35('0x13')][_0x5d35('0x20')](_0x51cb34,_0x5e9e10['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x424b=['editor','commandName','locale','has','get','plugins','restrictedEditingException','selection','markInlineFormat','commands','change','forceValue','isCollapsed','enableCommand','from','FORMAT_RESTRICTED_ENABLED','StandardEditingModeEditing','afterInit','value','commandParams'];(function(_0x27f4a1,_0x424ba2){const _0x4cf1bf=function(_0x2c7c35){while(--_0x2c7c35){_0x27f4a1['push'](_0x27f4a1['shift']());}};_0x4cf1bf(++_0x424ba2);}(_0x424b,0x10b));const _0x4cf1=function(_0x27f4a1,_0x424ba2){_0x27f4a1=_0x27f4a1-0x0;let _0x4cf1bf=_0x424b[_0x27f4a1];return _0x4cf1bf;};import{Plugin as _0x7624f6}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x44c549}from'./utils';import{getTranslation as _0x5d9233}from'../utils/common-translations';export default class lt extends _0x7624f6{[_0x4cf1('0xa')](){const _0x5587e7=this[_0x4cf1('0xd')],_0x4b78d3=_0x5587e7['model'],_0x54008a=_0x5587e7[_0x4cf1('0xf')];if(!_0x5587e7[_0x4cf1('0x12')][_0x4cf1('0x10')](_0x4cf1('0x9')))return;const _0x2a19e5=_0x5587e7[_0x4cf1('0x12')][_0x4cf1('0x11')]('TrackChangesEditing'),_0x146be8=_0x4cf1('0x13'),_0x201e33=_0x5587e7[_0x4cf1('0x2')]['get'](_0x146be8);_0x2a19e5[_0x4cf1('0x6')](_0x146be8,(_0xde48ed,_0x19d455={})=>{const _0x2bae10=_0x4b78d3['document'][_0x4cf1('0x0')];if(_0x2bae10[_0x4cf1('0x5')])return void _0xde48ed(_0x19d455);const _0x57239e=void 0x0!==_0x19d455[_0x4cf1('0x4')]?_0x19d455[_0x4cf1('0x4')]:!_0x201e33[_0x4cf1('0xb')];_0x4b78d3[_0x4cf1('0x3')](()=>{const _0x4315ab=Array[_0x4cf1('0x7')](_0x2bae10['getRanges']());for(const _0x56bc67 of _0x4315ab){const _0x38e7c4=_0x57239e?[_0x56bc67]:_0x44c549(_0x146be8,_0x56bc67,_0x4b78d3);for(const _0xb21419 of _0x38e7c4)_0x2a19e5[_0x4cf1('0x1')](_0xb21419,{'commandName':_0x146be8,'commandParams':[{'forceValue':_0x57239e}]});}});}),_0x2a19e5['_descriptionFactory']['registerDescriptionCallback'](_0x17028d=>{const {data:_0x260f4e}=_0x17028d;if(_0x260f4e&&_0x260f4e[_0x4cf1('0xe')]==_0x146be8)return _0x260f4e[_0x4cf1('0xc')][0x0][_0x4cf1('0x4')]?{'type':'format','content':_0x5d9233(_0x54008a,_0x4cf1('0x8'))}:{'type':'format','content':_0x5d9233(_0x54008a,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2139=['style.definitions','style:','isCollapsed','change','normalizeConfig','locale','styleName','getDefinitionsForView','*Remove\x20format:*\x20%0','getAncestors','classes','getRanges','registerDescriptionCallback','commands','afterInit','from','_descriptionFactory','format','commandName','value','_getStyleDefinition','name','TrackChangesEditing','element','includes','config','block','find','modelElements','Style','get','style','DataSchema','*Format:*\x20%0','commandParams','push','_getRangesWithClasses','has','every','getItems','inline','getAttribute','model','plugins','enabledStyles','markBlockFormat','add','isBlock'];(function(_0x52a941,_0x21399e){const _0x12cebf=function(_0x26ff49){while(--_0x26ff49){_0x52a941['push'](_0x52a941['shift']());}};_0x12cebf(++_0x21399e);}(_0x2139,0x1bf));const _0x12ce=function(_0x52a941,_0x21399e){_0x52a941=_0x52a941-0x0;let _0x12cebf=_0x2139[_0x52a941];return _0x12cebf;};import{Plugin as _0x31517c}from'ckeditor5/src/core';import{getTranslation as _0x377849}from'../utils/common-translations';export default class gt extends _0x31517c{[_0x12ce('0x2f')](){const _0x52b0b7=this['editor'];if(!_0x52b0b7['plugins'][_0x12ce('0x16')](_0x12ce('0xe')))return;const _0x38d5d3=_0x52b0b7[_0x12ce('0x2e')][_0x12ce('0xf')](_0x12ce('0x10')),_0x23ea8e=_0x52b0b7['plugins']['get'](_0x12ce('0x7')),_0x3c0769=_0x52b0b7[_0x12ce('0x26')],_0x2da849=_0x52b0b7[_0x12ce('0x1c')]['get'](_0x12ce('0x11')),_0x35efed=_0x52b0b7[_0x12ce('0x1c')][_0x12ce('0xf')]('StyleUtils')[_0x12ce('0x25')](_0x2da849,_0x52b0b7[_0x12ce('0xa')][_0x12ce('0xf')](_0x12ce('0x21')));_0x23ea8e['enableCommand']('style',(_0x69b049,{styleName:_0x35efec})=>{const _0x1064cf=_0x52b0b7[_0x12ce('0x1b')]['document']['selection'],_0x58b6fe=this[_0x12ce('0x5')](_0x35efec,_0x35efed);if(!_0x58b6fe)return;if(!_0x38d5d3[_0x12ce('0x1d')]['includes'](_0x35efec))return;if(_0x1064cf[_0x12ce('0x23')]&&!_0x58b6fe[_0x12ce('0x20')])return void _0x69b049({'styleName':_0x35efec});const _0x24ac8c=!_0x38d5d3[_0x12ce('0x4')][_0x12ce('0x9')](_0x58b6fe['name']);if(_0x58b6fe['isBlock']){const _0xb16bfc=function(_0x2c75c8,_0xaadad8){const _0x3f037c=new Set();for(const _0x1c8baa of _0x2c75c8){const _0x41c738=_0x1c8baa[_0x12ce('0x2a')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x46d90c of _0x41c738)if(_0xaadad8[_0x12ce('0x9')](_0x46d90c[_0x12ce('0x6')])){_0x3f037c[_0x12ce('0x1f')](_0x46d90c);break;}}return _0x3f037c;}(_0x1064cf['getSelectedBlocks'](),_0x58b6fe[_0x12ce('0xd')]);_0x52b0b7[_0x12ce('0x1b')][_0x12ce('0x24')](()=>{for(const _0x45a1eb of _0xb16bfc)_0x23ea8e[_0x12ce('0x1e')](_0x45a1eb,{'commandName':_0x12ce('0x10'),'commandParams':[{'styleName':_0x35efec,'forceValue':_0x24ac8c}],'formatGroupId':_0x12ce('0x22')+_0x35efec});});}else{let _0x47a03b=Array[_0x12ce('0x0')](_0x1064cf[_0x12ce('0x2c')]());if(!_0x24ac8c){const _0x5972f3=Array['from'](_0x2da849[_0x12ce('0x28')](_0x58b6fe[_0x12ce('0x8')],!0x1))[0x0][_0x12ce('0x1b')],_0x361bbb=[];for(const _0x5b6ceb of _0x47a03b){const _0x4bcf33=this[_0x12ce('0x15')](_0x52b0b7[_0x12ce('0x1b')],_0x5b6ceb,_0x58b6fe['classes'],_0x5972f3);_0x361bbb[_0x12ce('0x14')](..._0x4bcf33);}_0x47a03b=_0x361bbb;}_0x52b0b7[_0x12ce('0x1b')][_0x12ce('0x24')](()=>{for(const _0x5e4521 of _0x47a03b)_0x23ea8e['markInlineFormat'](_0x5e4521,{'commandName':_0x12ce('0x10'),'commandParams':[{'styleName':_0x35efec,'forceValue':_0x24ac8c}]});});}}),_0x23ea8e[_0x12ce('0x1')][_0x12ce('0x2d')](_0x21b93a=>{const {data:_0x3c5d2c}=_0x21b93a;if(_0x3c5d2c&&'style'===_0x3c5d2c[_0x12ce('0x3')])return _0x3c5d2c[_0x12ce('0x13')][0x0]['forceValue']?{'type':_0x12ce('0x2'),'content':_0x377849(_0x3c0769,_0x12ce('0x12'),_0x3c5d2c[_0x12ce('0x13')][0x0][_0x12ce('0x27')]['toLowerCase']())}:{'type':_0x12ce('0x2'),'content':_0x377849(_0x3c0769,_0x12ce('0x29'),_0x3c5d2c[_0x12ce('0x13')][0x0]['styleName']['toLowerCase']())};});}[_0x12ce('0x5')](_0xd651c6,_0x16e4b6){let _0x370b03=_0x16e4b6[_0x12ce('0xb')][_0x12ce('0xc')](_0x5903e1=>_0x5903e1['name']===_0xd651c6);return _0x370b03||(_0x370b03=_0x16e4b6[_0x12ce('0x19')][_0x12ce('0xc')](_0x2bc911=>_0x2bc911[_0x12ce('0x6')]===_0xd651c6)),_0x370b03;}['_getRangesWithClasses'](_0x321234,_0x1faf5e,_0x4705df,_0x5eccbf){const _0x4cede3=[];for(const _0x6e9a61 of _0x1faf5e[_0x12ce('0x18')]()){const _0x3ed8d0=_0x6e9a61[_0x12ce('0x1a')](_0x5eccbf);_0x3ed8d0&&(_0x4705df[_0x12ce('0x17')](_0x436ed8=>_0x3ed8d0[_0x12ce('0x2b')]['includes'](_0x436ed8))&&_0x4cede3[_0x12ce('0x14')](_0x321234['createRangeOn'](_0x6e9a61)));}return _0x4cede3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x19a0=['addClass','add','getColumnIndexes','_acceptFormatSuggestionCallbackFactory','$textProxy','insertTableRowBelow','isIntersectingWithRange','getSuggestion','startsWith','rootName','map','removeTableRow','isEqual','execute','addMarker:suggestion','end','removeClass','minRow','rowspan','includes','_suggestionFactory','tableRow','registerPostFixer','getChildren','root','order','batch','length','low','position','minColumn','highest','ELEMENT_TABLE_ROW_WITH_TEXT','isArray','first','TableUtils','editor','ELEMENT_TABLE_COLUMN_WITH_TEXT','_getSuggestionCoords','change','deletion','getCellLocation','push','last','nodeAfter','from','cell','*Remove:*\x20%0','getItems','insertTableColumnLeft','ELEMENT_TABLE_ROW','some','removeTableColumn','classes','max','table','insertTable','markMultiRangeInsertion','getSelectionAffectedTableCells','insertTableColumnRight','tableColumn','differ','_splitMarkerName','enqueueChange','ELEMENT_TABLE_COLUMN','downcastDispatcher','enableCommand','mapper','_descriptionFactory','plugins','_setupColumnsRowsFixing','tableCell','filter','getAttribute','get','commands','registerCustomCallback','suggestion','showSuggestionHighlights','refresh','_getCoordsForCells','insertion','findAncestor','writer','element','subType','join','_tablePostFixingSubtypes','document','discard','createRangeOn','above','min','ELEMENT_TABLE_WITH_TEXT','getChanges','createPositionAt','data','span','insertTableRowAbove','hasAttribute','values','TableEditing','colspan','getRanges','$graveyard','isTouching','substr','options','item','_tableSuggestions','getChangedMarkers','locale','TrackChangesEditing','*Insert:*\x20%0','createRangeIn','addRange','model','detach','selection','getContainedElement','name','maxRow','MIN_SAFE_INTEGER','maxColumn','setSelection','createTableWalker','afterInit','fromRange','type','accept','selectTableColumn','start','MAX_SAFE_INTEGER','toLowerCase'];(function(_0x486b49,_0x19a0e3){const _0x2d7a22=function(_0x5c9c62){while(--_0x5c9c62){_0x486b49['push'](_0x486b49['shift']());}};_0x2d7a22(++_0x19a0e3);}(_0x19a0,0x194));const _0x2d7a=function(_0x486b49,_0x19a0e3){_0x486b49=_0x486b49-0x0;let _0x2d7a22=_0x19a0[_0x486b49];return _0x2d7a22;};import{Plugin as _0x51afa7}from'ckeditor5/src/core';import{LiveRange as _0xa6c23}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2d03b2}from'ckeditor5/src/widget';import{getTranslation as _0x1f1ab7}from'../utils/common-translations';export default class mt extends _0x51afa7{constructor(_0x34faf3){super(_0x34faf3),this[_0x2d7a('0x55')]=['tableRow',_0x2d7a('0x3a')],this[_0x2d7a('0x6b')]=new Set();}[_0x2d7a('0x7c')](){const _0x2aed46=this[_0x2d7a('0x22')],_0x4a61ff=_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x56')]['selection'];if(!_0x2aed46[_0x2d7a('0x43')]['has'](_0x2d7a('0x63')))return;const _0x339bca=_0x2aed46[_0x2d7a('0x6d')],_0x689a0b=_0x2aed46['plugins'][_0x2d7a('0x48')]('TrackChangesEditing'),_0x390ee1=_0x2aed46[_0x2d7a('0x43')]['get']('TableUtils');_0x689a0b['_descriptionFactory']['registerElementLabel'](_0x2d7a('0x35'),_0x436f67=>_0x1f1ab7(_0x339bca,'ELEMENT_TABLE',_0x436f67)),this['_setupColumnsRowsFixing'](),_0x689a0b[_0x2d7a('0x40')](_0x2d7a('0x36')),_0x689a0b[_0x2d7a('0x40')]('selectTableRow'),_0x689a0b[_0x2d7a('0x40')](_0x2d7a('0x80'));for(const _0x592e1d of[_0x2d7a('0x60'),_0x2d7a('0x3')]){const _0x5cf946=_0x2aed46['commands'][_0x2d7a('0x48')](_0x592e1d);_0x689a0b[_0x2d7a('0x40')](_0x592e1d,_0x449bab=>{_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x25')](_0x3b8fb6=>{_0x449bab();const _0x556733=_0x2d7a('0x59')===_0x5cf946[_0x2d7a('0x17')],_0x3e2fc9=_0x390ee1[_0x2d7a('0x38')](_0x4a61ff),_0x4bc3b6=_0x390ee1['getRowIndexes'](_0x3e2fc9),_0x46975f=_0x556733?_0x4bc3b6[_0x2d7a('0x20')]-0x1:_0x4bc3b6[_0x2d7a('0x29')]+0x1,_0x3d7c91=_0x3e2fc9[0x0][_0x2d7a('0x50')](_0x2d7a('0x35')),_0x4ab9ed=_0x390ee1[_0x2d7a('0x7b')](_0x3d7c91,{'startRow':_0x46975f,'endRow':_0x46975f}),_0xa32049=Array['from'](_0x4ab9ed)[_0x2d7a('0x8')](_0x43c7dd=>_0x3b8fb6[_0x2d7a('0x58')](_0x43c7dd[_0x2d7a('0x2c')]));_0x689a0b[_0x2d7a('0x37')](_0xa32049,_0x2d7a('0x13'));});});}for(const _0x1d0368 of[_0x2d7a('0x2f'),_0x2d7a('0x39')]){const _0x2d1663=_0x2aed46['commands']['get'](_0x1d0368);_0x689a0b[_0x2d7a('0x40')](_0x1d0368,_0x439c85=>{_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x25')](_0x5df664=>{_0x439c85();const _0x2962e8='left'===_0x2d1663['order'],_0x577588=_0x390ee1[_0x2d7a('0x38')](_0x4a61ff),_0x51f55f=_0x390ee1[_0x2d7a('0x0')](_0x577588),_0x1482df=_0x2962e8?_0x51f55f[_0x2d7a('0x20')]-0x1:_0x51f55f[_0x2d7a('0x29')]+0x1,_0x3068bc=_0x577588[0x0][_0x2d7a('0x50')](_0x2d7a('0x35')),_0x552f64=_0x390ee1[_0x2d7a('0x7b')](_0x3068bc,{'startRow':0x0,'column':_0x1482df,'includeAllSlots':!0x1}),_0x4fd10d=Array[_0x2d7a('0x2b')](_0x552f64)['map'](_0x1ce61e=>_0x5df664[_0x2d7a('0x58')](_0x1ce61e[_0x2d7a('0x2c')]));_0x689a0b[_0x2d7a('0x37')](_0x4fd10d,_0x2d7a('0x3a'));});});}for(const _0x23657c of[_0x2d7a('0x9'),_0x2d7a('0x32')]){const _0x5b751a=_0x23657c[_0x2d7a('0x68')](0xb),_0x5abf9e=_0x5b751a[_0x2d7a('0x83')](),_0xd2a9a5=_0x5abf9e[_0x2d7a('0x68')](0x0,0x3)+'span',_0x341647=_0x2d7a('0x35')+_0x5b751a,_0x26b35d=_0x2d7a('0x5a')+_0x5b751a,_0x379bb0=_0x2d7a('0x34')+_0x5b751a;_0x689a0b[_0x2d7a('0x40')](_0x23657c,()=>{_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x25')](_0x3c3180=>{const _0x112189=_0x390ee1[_0x2d7a('0x38')](_0x4a61ff),_0x54e11e=_0x112189[0x0][_0x2d7a('0x50')](_0x2d7a('0x35'));let _0x203ddf;if(_0x2d7a('0x9')==_0x23657c){const _0x33f1db=_0x390ee1['getRowIndexes'](_0x112189);_0x203ddf={'startRow':_0x33f1db[_0x2d7a('0x20')],'endRow':_0x33f1db['last'],'includeAllSlots':!0x0};}else{const _0x1a16f5=_0x390ee1[_0x2d7a('0x0')](_0x112189);_0x203ddf={'startColumn':_0x1a16f5[_0x2d7a('0x20')],'endColumn':_0x1a16f5['last'],'includeAllSlots':!0x0};}const _0x1b1901=_0x390ee1[_0x2d7a('0x7b')](_0x54e11e,_0x203ddf),_0x5cd9a9=Array[_0x2d7a('0x2b')](_0x1b1901)[_0x2d7a('0x8')](({cell:_0x333b4f})=>_0x333b4f),_0x51c303=se(_0x5cd9a9[_0x2d7a('0x46')](_0x100601=>_0x100601[_0x2d7a('0x61')](_0xd2a9a5))),_0x1a1156=se(_0x5cd9a9['filter'](_0x165d39=>!_0x165d39[_0x2d7a('0x61')](_0xd2a9a5)))['map'](_0x30ee3e=>_0x3c3180['createRangeOn'](_0x30ee3e)),_0x45e515=_0x689a0b['markMultiRangeDeletion'](_0x1a1156,_0x341647);if(_0x45e515&&('tableRow'==_0x45e515[_0x2d7a('0x53')]||'tableColumn'==_0x45e515[_0x2d7a('0x53')])){const _0x1212a1=this['_getSuggestionCoords'](_0x45e515);for(const _0xf7c0ef of _0x51c303){const _0x3f8b05=_0x3c3180['createRangeOn'](_0xf7c0ef),_0x20a0cd=_0x390ee1[_0x2d7a('0x27')](_0xf7c0ef),_0x4da8d6=_0xf7c0ef[_0x2d7a('0x47')](_0xd2a9a5)-0x1,_0x556f9c=_0x1212a1[_0x26b35d],_0x3d1857=_0x1212a1[_0x379bb0];_0x556f9c<=_0x20a0cd[_0x5abf9e]&&_0x20a0cd[_0x5abf9e]+_0x4da8d6<=_0x3d1857&&_0x45e515[_0x2d7a('0x71')](_0x3f8b05);}}});});}function _0x36444f(_0x3c08b6){const _0x41a8b5=Array[_0x2d7a('0x2b')](_0x4a61ff[_0x2d7a('0x65')]())[_0x2d7a('0x8')](_0x37d9c1=>_0xa6c23[_0x2d7a('0x7d')](_0x37d9c1));_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x25')](_0x5002a0=>{const _0x445fa2=_0x5002a0[_0x2d7a('0x18')];_0x3c08b6=_0x3c08b6[_0x2d7a('0x46')](_0x590263=>_0x2d7a('0x66')!=_0x590263[_0x2d7a('0x16')][_0x2d7a('0x7')]),_0x5002a0[_0x2d7a('0x7a')](_0x3c08b6),_0x2aed46[_0x2d7a('0x49')][_0x2d7a('0x48')](_0x2d7a('0x9'))[_0x2d7a('0x4d')](),_0x2aed46[_0x2d7a('0xb')](_0x2d7a('0x9'),{'forceDefaultExecution':!0x0}),_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x3d')](()=>{_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x3d')](_0x445fa2,_0x255921=>{const _0x43950a=_0x41a8b5[_0x2d7a('0x46')](_0x393df1=>_0x2d7a('0x66')!=_0x393df1[_0x2d7a('0x16')][_0x2d7a('0x7')]);_0x43950a[_0x2d7a('0x19')]>0x0&&_0x255921['setSelection'](_0x43950a);for(const _0x550d1e of _0x41a8b5)_0x550d1e[_0x2d7a('0x73')]();});});});}function _0x142a30(_0x54e164){_0x2aed46[_0x2d7a('0x72')][_0x2d7a('0x25')](_0x54ee5a=>{const _0x3c5ebf=Array[_0x2d7a('0x2b')](_0x4a61ff[_0x2d7a('0x65')]())['map'](_0x212da6=>_0xa6c23['fromRange'](_0x212da6)),_0x28946d=[];for(const _0x143354 of _0x54e164)for(const _0x30fcc3 of _0x143354[_0x2d7a('0x2e')]({'shallow':!0x0}))_0x28946d['push'](_0x30fcc3);for(const _0x1e772d of _0x28946d)_0x2d7a('0x66')!=_0x1e772d[_0x2d7a('0x16')][_0x2d7a('0x7')]&&(_0x54ee5a['setSelection'](_0x54ee5a[_0x2d7a('0x5d')](_0x1e772d,0x0)),_0x2aed46['commands'][_0x2d7a('0x48')](_0x2d7a('0x32'))[_0x2d7a('0x4d')](),_0x2aed46[_0x2d7a('0xb')](_0x2d7a('0x32'),{'forceDefaultExecution':!0x0}));const _0x3d0c47=_0x3c5ebf['filter'](_0x42f592=>_0x2d7a('0x66')!=_0x42f592['root'][_0x2d7a('0x7')]);_0x3d0c47['length']>0x0&&_0x54ee5a['setSelection'](_0x3d0c47);for(const _0x11d9bb of _0x3c5ebf)_0x11d9bb[_0x2d7a('0x73')]();});}function _0xffb0c7(_0x22c4b7,_0x186107){return _0x186107['every'](_0x514566=>_0x22c4b7[_0x2d7a('0x31')](_0x59cf8c=>_0x59cf8c[_0x2d7a('0xd')][_0x2d7a('0xa')](_0x514566['start'])||_0x514566[_0x2d7a('0xd')][_0x2d7a('0xa')](_0x59cf8c['start'])));}function _0x13bbaa(_0x4477d6,_0x21e811){return _0x4477d6[_0x2d7a('0x31')](_0x4783af=>_0x21e811[_0x2d7a('0x31')](_0x9651d6=>_0x4783af[_0x2d7a('0xd')][_0x2d7a('0x67')](_0x9651d6['start'])));}_0x2aed46[_0x2d7a('0x5e')][_0x2d7a('0x3f')]['on'](_0x2d7a('0xc'),(_0x522ffa,_0x4c0fba,_0x1595a4)=>{if(!_0x1595a4[_0x2d7a('0x69')][_0x2d7a('0x4c')])return;const _0x110c99=_0x4c0fba[_0x2d7a('0x6a')];if(!_0x110c99)return;const _0x212003=_0x1595a4[_0x2d7a('0x41')]['toViewElement'](_0x110c99);function _0x48aa95(_0x1397b5){return Array[_0x2d7a('0x1f')](_0x1397b5)?_0x1397b5:[_0x1397b5];}_0x212003&&_0x2d7a('0x45')===_0x110c99[_0x2d7a('0x76')]&&_0x2d03b2(_0x212003,_0x1595a4[_0x2d7a('0x51')],(_0x3ad308,_0x55a070,_0x1c8ec5)=>_0x1c8ec5[_0x2d7a('0x84')](_0x48aa95(_0x55a070[_0x2d7a('0x33')]),_0x3ad308),(_0x2b7783,_0x5860af,_0x302f6e)=>_0x302f6e[_0x2d7a('0xe')](_0x48aa95(_0x5860af['classes']),_0x2b7783));},{'priority':_0x2d7a('0x1d')}),_0x689a0b[_0x2d7a('0x42')]['registerDescriptionCallback'](_0x3e6b94=>{if(_0x2d7a('0x4f')!=_0x3e6b94['type']&&'deletion'!=_0x3e6b94[_0x2d7a('0x7e')])return;const _0x4d2c80=_0x3e6b94[_0x2d7a('0x75')]();if(null!=_0x4d2c80&&_0x4d2c80['is'](_0x2d7a('0x52'),_0x2d7a('0x35'))){if(_0x2d7a('0x4f')==_0x3e6b94[_0x2d7a('0x7e')]){const _0x126ea4=_0x3e6b94[_0x2d7a('0x2e')]()[_0x2d7a('0x46')](_0x23bdc3=>_0x23bdc3['is'](_0x2d7a('0x2')))[_0x2d7a('0x8')](_0x1a7212=>_0x1a7212[_0x2d7a('0x5e')]);if(_0x126ea4[_0x2d7a('0x19')])return{'type':_0x2d7a('0x4f'),'content':_0x1f1ab7(_0x339bca,_0x2d7a('0x6f'),_0x1f1ab7(_0x339bca,_0x2d7a('0x5b'),'\x22'+_0x126ea4[_0x2d7a('0x54')]('\x20')+'\x22'))};}if(_0x2d7a('0x26')==_0x3e6b94[_0x2d7a('0x7e')]){const _0x396018=_0x3e6b94[_0x2d7a('0x2e')]()[_0x2d7a('0x46')](_0xbaa5a2=>_0xbaa5a2['is'](_0x2d7a('0x2')))[_0x2d7a('0x8')](_0x1675ec=>_0x1675ec[_0x2d7a('0x5e')]);if(_0x396018[_0x2d7a('0x19')])return{'type':_0x2d7a('0x26'),'content':_0x1f1ab7(_0x339bca,_0x2d7a('0x2d'),_0x1f1ab7(_0x339bca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x396018[_0x2d7a('0x54')]('\x20')+'\x22'))};}}}),_0x689a0b[_0x2d7a('0x42')]['registerDescriptionCallback'](_0x52b51a=>{if(_0x2d7a('0x13')==_0x52b51a[_0x2d7a('0x53')]){const _0x1584d8=_0x52b51a[_0x2d7a('0x2e')]()[_0x2d7a('0x46')](_0x1a136f=>_0x1a136f['is'](_0x2d7a('0x2')))[_0x2d7a('0x8')](_0xdbeb7a=>_0xdbeb7a[_0x2d7a('0x5e')]),_0x430cb4=this['_getSuggestionCoords'](_0x52b51a),_0x6afdd3=_0x430cb4[_0x2d7a('0x77')]-_0x430cb4[_0x2d7a('0xf')]+0x1;if(_0x2d7a('0x4f')==_0x52b51a[_0x2d7a('0x7e')])return _0x1584d8[_0x2d7a('0x19')]?{'type':'insertion','content':_0x1f1ab7(_0x339bca,_0x2d7a('0x6f'),_0x1f1ab7(_0x339bca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x6afdd3,'\x22'+_0x1584d8[_0x2d7a('0x54')]('\x20')+'\x22']))}:{'type':_0x2d7a('0x4f'),'content':_0x1f1ab7(_0x339bca,_0x2d7a('0x6f'),_0x1f1ab7(_0x339bca,_0x2d7a('0x30'),_0x6afdd3))};if(_0x2d7a('0x26')==_0x52b51a[_0x2d7a('0x7e')])return _0x1584d8[_0x2d7a('0x19')]?{'type':_0x2d7a('0x26'),'content':_0x1f1ab7(_0x339bca,_0x2d7a('0x2d'),_0x1f1ab7(_0x339bca,_0x2d7a('0x1e'),[_0x6afdd3,'\x22'+_0x1584d8[_0x2d7a('0x54')]('\x20')+'\x22']))}:{'type':_0x2d7a('0x26'),'content':_0x1f1ab7(_0x339bca,_0x2d7a('0x2d'),_0x1f1ab7(_0x339bca,_0x2d7a('0x30'),_0x6afdd3))};}if(_0x2d7a('0x3a')==_0x52b51a[_0x2d7a('0x53')]){const _0x22773f=_0x52b51a[_0x2d7a('0x2e')]()[_0x2d7a('0x46')](_0x27e724=>_0x27e724['is'](_0x2d7a('0x2')))[_0x2d7a('0x8')](_0x12f3bb=>_0x12f3bb['data']),_0x22c23e=this[_0x2d7a('0x24')](_0x52b51a),_0x5c3592=_0x22c23e[_0x2d7a('0x79')]-_0x22c23e[_0x2d7a('0x1c')]+0x1;if(_0x2d7a('0x4f')==_0x52b51a[_0x2d7a('0x7e')])return _0x22773f[_0x2d7a('0x19')]?{'type':'insertion','content':_0x1f1ab7(_0x339bca,_0x2d7a('0x6f'),_0x1f1ab7(_0x339bca,_0x2d7a('0x23'),[_0x5c3592,'\x22'+_0x22773f[_0x2d7a('0x54')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x1f1ab7(_0x339bca,_0x2d7a('0x6f'),_0x1f1ab7(_0x339bca,_0x2d7a('0x3e'),_0x5c3592))};if(_0x2d7a('0x26')==_0x52b51a[_0x2d7a('0x7e')])return _0x22773f[_0x2d7a('0x19')]?{'type':_0x2d7a('0x26'),'content':_0x1f1ab7(_0x339bca,_0x2d7a('0x2d'),_0x1f1ab7(_0x339bca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c3592,'\x22'+_0x22773f[_0x2d7a('0x54')]('\x20')+'\x22']))}:{'type':_0x2d7a('0x26'),'content':_0x1f1ab7(_0x339bca,_0x2d7a('0x2d'),_0x1f1ab7(_0x339bca,_0x2d7a('0x3e'),_0x5c3592))};}}),_0x689a0b[_0x2d7a('0x12')][_0x2d7a('0x4a')](_0x2d7a('0x4f'),_0x2d7a('0x13'),_0x2d7a('0x57'),_0x36444f),_0x689a0b[_0x2d7a('0x12')][_0x2d7a('0x4a')](_0x2d7a('0x26'),_0x2d7a('0x13'),'accept',_0x36444f),_0x689a0b[_0x2d7a('0x12')]['registerCustomCallback'](_0x2d7a('0x4f'),_0x2d7a('0x3a'),_0x2d7a('0x57'),_0x142a30),_0x689a0b[_0x2d7a('0x12')][_0x2d7a('0x4a')](_0x2d7a('0x26'),_0x2d7a('0x3a'),_0x2d7a('0x7f'),_0x142a30),_0x689a0b[_0x2d7a('0x12')][_0x2d7a('0x4a')](_0x2d7a('0x4f'),_0x2d7a('0x3a'),_0x2d7a('0x54'),_0xffb0c7),_0x689a0b['_suggestionFactory'][_0x2d7a('0x4a')](_0x2d7a('0x26'),'tableColumn',_0x2d7a('0x54'),_0xffb0c7),_0x689a0b[_0x2d7a('0x12')]['registerCustomCallback'](_0x2d7a('0x4f'),_0x2d7a('0x13'),_0x2d7a('0x54'),_0x13bbaa),_0x689a0b[_0x2d7a('0x12')][_0x2d7a('0x4a')](_0x2d7a('0x26'),'tableRow',_0x2d7a('0x54'),_0x13bbaa);}[_0x2d7a('0x1')](){const _0x4e858b=this[_0x2d7a('0x22')],_0x2e9920=_0x4e858b[_0x2d7a('0x72')][_0x2d7a('0x56')][_0x2d7a('0x74')];return(_0x5a837e,_0xb26b65)=>{_0x4e858b[_0x2d7a('0x72')]['change'](_0x292191=>{const {commandName:_0x21995d,commandParams:_0x282a6d}=_0xb26b65;let _0x339f15=_0x5a837e[0x0][_0x2d7a('0xd')]['nodeBefore'];_0x282a6d&&_0x282a6d[0x0]&&!0x1===_0x282a6d[0x0]['forceValue']&&(_0x339f15=_0x5a837e[0x0][_0x2d7a('0x81')][_0x2d7a('0x2a')]);const _0x43d26b=_0x292191[_0x2d7a('0x70')](_0x339f15);if('$graveyard'==_0x43d26b[_0x2d7a('0x16')][_0x2d7a('0x7')])return;const _0x40b6d9=Array[_0x2d7a('0x2b')](_0x2e9920['getRanges']())['map'](_0x535fbf=>_0xa6c23[_0x2d7a('0x7d')](_0x535fbf));_0x292191['setSelection'](_0x43d26b),_0x4e858b[_0x2d7a('0x49')][_0x2d7a('0x48')](_0x21995d)[_0x2d7a('0x4d')](),_0x282a6d[_0x2d7a('0x28')]({'forceDefaultExecution':!0x0}),_0x4e858b[_0x2d7a('0xb')](_0x21995d,..._0x282a6d);const _0x39a6f2=_0x40b6d9[_0x2d7a('0x46')](_0x48a994=>_0x2d7a('0x66')!=_0x48a994[_0x2d7a('0x16')][_0x2d7a('0x7')]);_0x39a6f2[_0x2d7a('0x19')]>0x0&&_0x292191[_0x2d7a('0x7a')](_0x39a6f2);for(const _0x37bc26 of _0x40b6d9)_0x37bc26[_0x2d7a('0x73')]();});};}[_0x2d7a('0x4e')](_0x3e23be){const _0x5801d1=this[_0x2d7a('0x22')][_0x2d7a('0x43')][_0x2d7a('0x48')](_0x2d7a('0x21'));let _0x1e9946=Number['MAX_SAFE_INTEGER'],_0x302a3e=Number['MIN_SAFE_INTEGER'],_0x5c67de=Number[_0x2d7a('0x82')],_0x18a655=Number[_0x2d7a('0x78')];for(const _0x561f44 of _0x3e23be){if(_0x2d7a('0x66')==_0x561f44[_0x2d7a('0x16')][_0x2d7a('0x7')])continue;const {row:_0x34d418,column:_0x42612c}=_0x5801d1[_0x2d7a('0x27')](_0x561f44),_0x2f993a=_0x561f44[_0x2d7a('0x61')](_0x2d7a('0x10'))?_0x561f44[_0x2d7a('0x47')](_0x2d7a('0x10'))-0x1:0x0,_0x13709a=_0x561f44[_0x2d7a('0x61')](_0x2d7a('0x64'))?_0x561f44['getAttribute']('colspan')-0x1:0x0;_0x1e9946=_0x34d418<_0x1e9946?_0x34d418:_0x1e9946,_0x302a3e=_0x34d418+_0x2f993a>_0x302a3e?_0x34d418+_0x2f993a:_0x302a3e,_0x5c67de=_0x42612c<_0x5c67de?_0x42612c:_0x5c67de,_0x18a655=_0x42612c+_0x13709a>_0x18a655?_0x42612c+_0x13709a:_0x18a655;}return{'minRow':_0x1e9946,'maxRow':_0x302a3e,'minColumn':_0x5c67de,'maxColumn':_0x18a655};}[_0x2d7a('0x44')](){const _0xd5b537=this['editor'],_0x4b7a3d=_0xd5b537[_0x2d7a('0x43')][_0x2d7a('0x48')](_0x2d7a('0x6e')),_0x501e48=_0xd5b537[_0x2d7a('0x43')][_0x2d7a('0x48')](_0x2d7a('0x21'));_0xd5b537['model'][_0x2d7a('0x56')]['on']('change:data',()=>{const _0x4ed033=Array[_0x2d7a('0x2b')](_0xd5b537[_0x2d7a('0x72')][_0x2d7a('0x56')][_0x2d7a('0x3b')][_0x2d7a('0x6c')]());for(const {name:_0x35df4a,data:_0x46c763}of _0x4ed033){const {group:_0x576331,id:_0xd198c7,subType:_0x4217c7}=_0x4b7a3d[_0x2d7a('0x3c')](_0x35df4a);if(_0x2d7a('0x4b')!=_0x576331)continue;if(null!=_0x46c763['oldRange'])continue;const _0x1c4e37=_0x4b7a3d[_0x2d7a('0x5')](_0xd198c7);this['_tablePostFixingSubtypes'][_0x2d7a('0x11')](_0x4217c7)&&this[_0x2d7a('0x6b')][_0x2d7a('0x85')](_0x1c4e37);}},{'priority':_0x2d7a('0x1a')});const _0x344681=(_0x13fdee,_0x3d2918)=>{let _0x5f50cd=!0x1;const _0x1ddecb=_0x3d2918['createRangeOn'](_0x13fdee),_0x1bed67=_0x13fdee[_0x2d7a('0x50')](_0x2d7a('0x35')),_0x327707=_0x501e48[_0x2d7a('0x27')](_0x13fdee);for(const _0x5d664c of this[_0x2d7a('0x6b')]){const _0x5dd928=_0x5d664c[_0x2d7a('0x53')],_0x543cc7=_0x5dd928[_0x2d7a('0x6')]('tablePaste'),_0x447ec7=_0x5dd928[_0x2d7a('0x68')](_0x543cc7?0xa:0x5),_0x5e0e89=_0x447ec7[_0x2d7a('0x83')](),_0x39a503=_0x5e0e89[_0x2d7a('0x68')](0x0,0x3)+_0x2d7a('0x5f'),_0x548300='min'+_0x447ec7,_0x4e7856=_0x2d7a('0x34')+_0x447ec7;if(!_0x5d664c['isInContent'])continue;if(_0x1bed67!=_0x5d664c['getFirstRange']()[_0x2d7a('0x81')]['findAncestor']('table'))continue;if(_0x5d664c[_0x2d7a('0x4')](_0x1ddecb))continue;const _0x16e3bb=_0x13fdee['hasAttribute'](_0x39a503)?_0x13fdee['getAttribute'](_0x39a503)-0x1:0x0,_0x298348=this[_0x2d7a('0x24')](_0x5d664c),_0x4608a0=_0x298348[_0x548300],_0x48ca14=_0x298348[_0x4e7856];_0x4608a0<=_0x327707[_0x5e0e89]&&_0x327707[_0x5e0e89]+_0x16e3bb<=_0x48ca14&&(_0x5d664c[_0x2d7a('0x71')](_0x1ddecb),_0x5f50cd=!0x0);}return _0x5f50cd;};_0xd5b537[_0x2d7a('0x72')]['document'][_0x2d7a('0x14')](_0xe0e83=>{let _0x48cdf0=!0x1;for(const _0x3d65de of _0xd5b537[_0x2d7a('0x72')][_0x2d7a('0x56')][_0x2d7a('0x3b')][_0x2d7a('0x5c')]())if('insert'==_0x3d65de['type']){if('tableRow'==_0x3d65de[_0x2d7a('0x76')])for(const _0x42f207 of _0x3d65de[_0x2d7a('0x1b')]['nodeAfter'][_0x2d7a('0x15')]())_0x48cdf0=_0x48cdf0||_0x344681(_0x42f207,_0xe0e83);else _0x2d7a('0x45')==_0x3d65de[_0x2d7a('0x76')]&&(_0x48cdf0=_0x48cdf0||_0x344681(_0x3d65de[_0x2d7a('0x1b')]['nodeAfter'],_0xe0e83));}return _0x48cdf0;});}['_getSuggestionCoords'](_0x305048){return this[_0x2d7a('0x4e')](_0x305048['getRanges']()['map'](_0x33b31e=>_0x33b31e[_0x2d7a('0x81')][_0x2d7a('0x2a')]));}}function se(_0x49bfff){return Array[_0x2d7a('0x2b')](new Set(_0x49bfff)[_0x2d7a('0x62')]());}
|
|
23
|
+
const _0x837a=['deletion','_descriptionFactory','getColumnIndexes','position','document','rootName','*Remove:*\x20%0','findAncestor','colspan','getFirstRange','forceValue','registerCustomCallback','maxColumn','minRow','editor','*Insert:*\x20%0','createTableWalker','nodeBefore','get','filter','plugins','span','rowspan','addRange','differ','root','join','removeTableColumn','min','MAX_SAFE_INTEGER','addClass','getChanges','model','order','left','hasAttribute','push','_suggestionFactory','data','$textProxy','suggestion','_tablePostFixingSubtypes','name','selectTableColumn','selectTableRow','_getSuggestionCoords','tableCell','commands','enableCommand','TableEditing','subType','getChangedMarkers','$graveyard','_splitMarkerName','setSelection','getAttribute','start','getContainedElement','substr','registerDescriptionCallback','isInContent','end','selection','enqueueChange','cell','tableColumn','addMarker:suggestion','insert','getSuggestion','max','first','tableRow','_setupColumnsRowsFixing','isEqual','ELEMENT_TABLE_ROW_WITH_TEXT','getSelectionAffectedTableCells','toLowerCase','ELEMENT_TABLE_ROW','_tableSuggestions','markMultiRangeInsertion','createRangeOn','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableColumnRight','TrackChangesEditing','maxRow','TableUtils','insertion','table','element','getItems','nodeAfter','createPositionAt','_getCoordsForCells','batch','ELEMENT_TABLE_WITH_TEXT','from','downcastDispatcher','change','includes','insertTableRowBelow','showSuggestionHighlights','registerPostFixer','above','ELEMENT_TABLE_COLUMN','map','removeTableRow','change:data','execute','type','removeClass','classes','detach','refresh','getCellLocation','getRanges','values','startsWith','length','isArray','locale','writer','some','fromRange','getRowIndexes','last'];(function(_0x4c5775,_0x837a62){const _0x413772=function(_0xdb82d8){while(--_0xdb82d8){_0x4c5775['push'](_0x4c5775['shift']());}};_0x413772(++_0x837a62);}(_0x837a,0x78));const _0x4137=function(_0x4c5775,_0x837a62){_0x4c5775=_0x4c5775-0x0;let _0x413772=_0x837a[_0x4c5775];return _0x413772;};import{Plugin as _0x1f96be}from'ckeditor5/src/core';import{LiveRange as _0x4780ea}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3956f2}from'ckeditor5/src/widget';import{getTranslation as _0x4f370e}from'../utils/common-translations';export default class mt extends _0x1f96be{constructor(_0x389fb0){super(_0x389fb0),this['_tablePostFixingSubtypes']=[_0x4137('0x4c'),'tableColumn'],this[_0x4137('0x53')]=new Set();}['afterInit'](){const _0x426bf3=this[_0x4137('0x13')],_0x2cd306=_0x426bf3[_0x4137('0x25')]['document'][_0x4137('0x43')];if(!_0x426bf3[_0x4137('0x19')]['has'](_0x4137('0x36')))return;const _0x4b8078=_0x426bf3[_0x4137('0x7c')],_0x4975bb=_0x426bf3['plugins'][_0x4137('0x17')](_0x4137('0x58')),_0x3b1ea1=_0x426bf3[_0x4137('0x19')][_0x4137('0x17')](_0x4137('0x5a'));_0x4975bb[_0x4137('0x6')]['registerElementLabel']('table',_0x44c9e0=>_0x4f370e(_0x4b8078,'ELEMENT_TABLE',_0x44c9e0)),this[_0x4137('0x4d')](),_0x4975bb[_0x4137('0x35')]('insertTable'),_0x4975bb['enableCommand'](_0x4137('0x31')),_0x4975bb[_0x4137('0x35')](_0x4137('0x30'));for(const _0x44c845 of['insertTableRowAbove',_0x4137('0x68')]){const _0x2bef46=_0x426bf3[_0x4137('0x34')][_0x4137('0x17')](_0x44c845);_0x4975bb[_0x4137('0x35')](_0x44c845,_0x3ba444=>{_0x426bf3[_0x4137('0x25')][_0x4137('0x66')](_0x324f06=>{_0x3ba444();const _0x1bd92a=_0x4137('0x6b')===_0x2bef46['order'],_0x2a639e=_0x3b1ea1['getSelectionAffectedTableCells'](_0x2cd306),_0x1795a3=_0x3b1ea1[_0x4137('0x3')](_0x2a639e),_0x5e353c=_0x1bd92a?_0x1795a3[_0x4137('0x4b')]-0x1:_0x1795a3[_0x4137('0x4')]+0x1,_0x223074=_0x2a639e[0x0][_0x4137('0xc')](_0x4137('0x5c')),_0x4fe826=_0x3b1ea1[_0x4137('0x15')](_0x223074,{'startRow':_0x5e353c,'endRow':_0x5e353c}),_0x2eba60=Array[_0x4137('0x64')](_0x4fe826)[_0x4137('0x6d')](_0x271ba9=>_0x324f06[_0x4137('0x55')](_0x271ba9[_0x4137('0x45')]));_0x4975bb[_0x4137('0x54')](_0x2eba60,'tableRow');});});}for(const _0x52690e of['insertTableColumnLeft',_0x4137('0x57')]){const _0x14b846=_0x426bf3[_0x4137('0x34')][_0x4137('0x17')](_0x52690e);_0x4975bb[_0x4137('0x35')](_0x52690e,_0x462e87=>{_0x426bf3[_0x4137('0x25')][_0x4137('0x66')](_0x1a67bd=>{_0x462e87();const _0x29e7c5=_0x4137('0x27')===_0x14b846[_0x4137('0x26')],_0x46995d=_0x3b1ea1[_0x4137('0x50')](_0x2cd306),_0x4f7616=_0x3b1ea1[_0x4137('0x7')](_0x46995d),_0x45a44c=_0x29e7c5?_0x4f7616[_0x4137('0x4b')]-0x1:_0x4f7616['last']+0x1,_0x45488d=_0x46995d[0x0]['findAncestor'](_0x4137('0x5c')),_0x5da0f4=_0x3b1ea1['createTableWalker'](_0x45488d,{'startRow':0x0,'column':_0x45a44c,'includeAllSlots':!0x1}),_0x4a41f3=Array[_0x4137('0x64')](_0x5da0f4)[_0x4137('0x6d')](_0x150e62=>_0x1a67bd[_0x4137('0x55')](_0x150e62['cell']));_0x4975bb[_0x4137('0x54')](_0x4a41f3,'tableColumn');});});}for(const _0x36975c of[_0x4137('0x6e'),'removeTableColumn']){const _0x154646=_0x36975c['substr'](0xb),_0x514a62=_0x154646[_0x4137('0x51')](),_0x16f9c8=_0x514a62[_0x4137('0x3f')](0x0,0x3)+'span',_0xc41f89=_0x4137('0x5c')+_0x154646,_0xfc2917=_0x4137('0x21')+_0x154646,_0x217531=_0x4137('0x4a')+_0x154646;_0x4975bb[_0x4137('0x35')](_0x36975c,()=>{_0x426bf3[_0x4137('0x25')][_0x4137('0x66')](_0x306951=>{const _0x313b1f=_0x3b1ea1[_0x4137('0x50')](_0x2cd306),_0x35622f=_0x313b1f[0x0][_0x4137('0xc')](_0x4137('0x5c'));let _0x4a8773;if(_0x4137('0x6e')==_0x36975c){const _0x42fe42=_0x3b1ea1['getRowIndexes'](_0x313b1f);_0x4a8773={'startRow':_0x42fe42['first'],'endRow':_0x42fe42[_0x4137('0x4')],'includeAllSlots':!0x0};}else{const _0x2ee207=_0x3b1ea1[_0x4137('0x7')](_0x313b1f);_0x4a8773={'startColumn':_0x2ee207[_0x4137('0x4b')],'endColumn':_0x2ee207[_0x4137('0x4')],'includeAllSlots':!0x0};}const _0x383ece=_0x3b1ea1[_0x4137('0x15')](_0x35622f,_0x4a8773),_0x315b07=Array[_0x4137('0x64')](_0x383ece)[_0x4137('0x6d')](({cell:_0x1302d9})=>_0x1302d9),_0x4eefee=se(_0x315b07[_0x4137('0x18')](_0x5be8d6=>_0x5be8d6[_0x4137('0x28')](_0x16f9c8))),_0xaacf30=se(_0x315b07[_0x4137('0x18')](_0x39dd52=>!_0x39dd52[_0x4137('0x28')](_0x16f9c8)))[_0x4137('0x6d')](_0x46a70b=>_0x306951[_0x4137('0x55')](_0x46a70b)),_0x4491f5=_0x4975bb['markMultiRangeDeletion'](_0xaacf30,_0xc41f89);if(_0x4491f5&&('tableRow'==_0x4491f5['subType']||_0x4137('0x46')==_0x4491f5[_0x4137('0x37')])){const _0x67e5f=this[_0x4137('0x32')](_0x4491f5);for(const _0x4a5d40 of _0x4eefee){const _0x339e32=_0x306951[_0x4137('0x55')](_0x4a5d40),_0x13367f=_0x3b1ea1[_0x4137('0x76')](_0x4a5d40),_0x1b30f0=_0x4a5d40['getAttribute'](_0x16f9c8)-0x1,_0x200178=_0x67e5f[_0xfc2917],_0x2484cd=_0x67e5f[_0x217531];_0x200178<=_0x13367f[_0x514a62]&&_0x13367f[_0x514a62]+_0x1b30f0<=_0x2484cd&&_0x4491f5['addRange'](_0x339e32);}}});});}function _0x1adeaf(_0x3ac88a){const _0x512d58=Array[_0x4137('0x64')](_0x2cd306[_0x4137('0x77')]())[_0x4137('0x6d')](_0x21bf26=>_0x4780ea[_0x4137('0x2')](_0x21bf26));_0x426bf3[_0x4137('0x25')]['change'](_0x303613=>{const _0x343007=_0x303613[_0x4137('0x62')];_0x3ac88a=_0x3ac88a[_0x4137('0x18')](_0x327866=>_0x4137('0x39')!=_0x327866['root'][_0x4137('0xa')]),_0x303613[_0x4137('0x3b')](_0x3ac88a),_0x426bf3[_0x4137('0x34')][_0x4137('0x17')](_0x4137('0x6e'))[_0x4137('0x75')](),_0x426bf3[_0x4137('0x70')](_0x4137('0x6e'),{'forceDefaultExecution':!0x0}),_0x426bf3[_0x4137('0x25')][_0x4137('0x44')](()=>{_0x426bf3['model']['enqueueChange'](_0x343007,_0x44690d=>{const _0x4a74cd=_0x512d58[_0x4137('0x18')](_0x1e73c2=>_0x4137('0x39')!=_0x1e73c2['root']['rootName']);_0x4a74cd[_0x4137('0x7a')]>0x0&&_0x44690d[_0x4137('0x3b')](_0x4a74cd);for(const _0x333f5a of _0x512d58)_0x333f5a[_0x4137('0x74')]();});});});}function _0x528c5a(_0x486c7a){_0x426bf3[_0x4137('0x25')][_0x4137('0x66')](_0x4cfb9e=>{const _0x2ddf85=Array[_0x4137('0x64')](_0x2cd306[_0x4137('0x77')]())[_0x4137('0x6d')](_0x479df9=>_0x4780ea[_0x4137('0x2')](_0x479df9)),_0x45d235=[];for(const _0x5ad7c1 of _0x486c7a)for(const _0x2dbf89 of _0x5ad7c1[_0x4137('0x5e')]({'shallow':!0x0}))_0x45d235[_0x4137('0x29')](_0x2dbf89);for(const _0x419db0 of _0x45d235)_0x4137('0x39')!=_0x419db0[_0x4137('0x1e')]['rootName']&&(_0x4cfb9e[_0x4137('0x3b')](_0x4cfb9e[_0x4137('0x60')](_0x419db0,0x0)),_0x426bf3[_0x4137('0x34')][_0x4137('0x17')](_0x4137('0x20'))[_0x4137('0x75')](),_0x426bf3['execute'](_0x4137('0x20'),{'forceDefaultExecution':!0x0}));const _0x4ad883=_0x2ddf85[_0x4137('0x18')](_0x3f1260=>_0x4137('0x39')!=_0x3f1260[_0x4137('0x1e')][_0x4137('0xa')]);_0x4ad883[_0x4137('0x7a')]>0x0&&_0x4cfb9e[_0x4137('0x3b')](_0x4ad883);for(const _0x35d63e of _0x2ddf85)_0x35d63e[_0x4137('0x74')]();});}function _0x2689fb(_0x4abc80,_0x79904f){return _0x79904f['every'](_0x1091c6=>_0x4abc80[_0x4137('0x1')](_0x45ba1a=>_0x45ba1a[_0x4137('0x42')][_0x4137('0x4e')](_0x1091c6[_0x4137('0x3d')])||_0x1091c6[_0x4137('0x42')]['isEqual'](_0x45ba1a[_0x4137('0x3d')])));}function _0x5f1e95(_0x573ac3,_0x82d692){return _0x573ac3[_0x4137('0x1')](_0x1902d2=>_0x82d692[_0x4137('0x1')](_0x40d742=>_0x1902d2[_0x4137('0x42')]['isTouching'](_0x40d742[_0x4137('0x3d')])));}_0x426bf3[_0x4137('0x2b')][_0x4137('0x65')]['on'](_0x4137('0x47'),(_0x1c0e09,_0x2b916f,_0x1fb91f)=>{if(!_0x1fb91f['options'][_0x4137('0x69')])return;const _0x58cba4=_0x2b916f['item'];if(!_0x58cba4)return;const _0x5436ad=_0x1fb91f['mapper']['toViewElement'](_0x58cba4);function _0x4eebfd(_0x6c328b){return Array[_0x4137('0x7b')](_0x6c328b)?_0x6c328b:[_0x6c328b];}_0x5436ad&&_0x4137('0x33')===_0x58cba4['name']&&_0x3956f2(_0x5436ad,_0x1fb91f[_0x4137('0x0')],(_0x21aa32,_0x5bf202,_0x26cc88)=>_0x26cc88[_0x4137('0x23')](_0x4eebfd(_0x5bf202[_0x4137('0x73')]),_0x21aa32),(_0x5c2ac6,_0x2bc4f5,_0x14c012)=>_0x14c012[_0x4137('0x72')](_0x4eebfd(_0x2bc4f5[_0x4137('0x73')]),_0x5c2ac6));},{'priority':'highest'}),_0x4975bb[_0x4137('0x6')][_0x4137('0x40')](_0x5f5dd4=>{if('insertion'!=_0x5f5dd4['type']&&_0x4137('0x5')!=_0x5f5dd4[_0x4137('0x71')])return;const _0x164dba=_0x5f5dd4[_0x4137('0x3e')]();if(null!=_0x164dba&&_0x164dba['is'](_0x4137('0x5d'),_0x4137('0x5c'))){if(_0x4137('0x5b')==_0x5f5dd4['type']){const _0x57ba6c=_0x5f5dd4[_0x4137('0x5e')]()[_0x4137('0x18')](_0x460584=>_0x460584['is'](_0x4137('0x2c')))[_0x4137('0x6d')](_0x20dc8b=>_0x20dc8b['data']);if(_0x57ba6c[_0x4137('0x7a')])return{'type':'insertion','content':_0x4f370e(_0x4b8078,_0x4137('0x14'),_0x4f370e(_0x4b8078,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57ba6c[_0x4137('0x1f')]('\x20')+'\x22'))};}if(_0x4137('0x5')==_0x5f5dd4[_0x4137('0x71')]){const _0x45344e=_0x5f5dd4[_0x4137('0x5e')]()[_0x4137('0x18')](_0x922c77=>_0x922c77['is'](_0x4137('0x2c')))[_0x4137('0x6d')](_0x471f6e=>_0x471f6e[_0x4137('0x2b')]);if(_0x45344e['length'])return{'type':_0x4137('0x5'),'content':_0x4f370e(_0x4b8078,_0x4137('0xb'),_0x4f370e(_0x4b8078,_0x4137('0x63'),'\x22'+_0x45344e['join']('\x20')+'\x22'))};}}}),_0x4975bb[_0x4137('0x6')][_0x4137('0x40')](_0x585e3c=>{if(_0x4137('0x4c')==_0x585e3c[_0x4137('0x37')]){const _0x33ad91=_0x585e3c[_0x4137('0x5e')]()[_0x4137('0x18')](_0x443072=>_0x443072['is'](_0x4137('0x2c')))[_0x4137('0x6d')](_0x1a6438=>_0x1a6438[_0x4137('0x2b')]),_0x358958=this[_0x4137('0x32')](_0x585e3c),_0x1fdc83=_0x358958[_0x4137('0x59')]-_0x358958[_0x4137('0x12')]+0x1;if(_0x4137('0x5b')==_0x585e3c[_0x4137('0x71')])return _0x33ad91[_0x4137('0x7a')]?{'type':_0x4137('0x5b'),'content':_0x4f370e(_0x4b8078,_0x4137('0x14'),_0x4f370e(_0x4b8078,_0x4137('0x4f'),[_0x1fdc83,'\x22'+_0x33ad91[_0x4137('0x1f')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x4f370e(_0x4b8078,'*Insert:*\x20%0',_0x4f370e(_0x4b8078,'ELEMENT_TABLE_ROW',_0x1fdc83))};if('deletion'==_0x585e3c[_0x4137('0x71')])return _0x33ad91[_0x4137('0x7a')]?{'type':_0x4137('0x5'),'content':_0x4f370e(_0x4b8078,_0x4137('0xb'),_0x4f370e(_0x4b8078,_0x4137('0x4f'),[_0x1fdc83,'\x22'+_0x33ad91[_0x4137('0x1f')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x4f370e(_0x4b8078,_0x4137('0xb'),_0x4f370e(_0x4b8078,_0x4137('0x52'),_0x1fdc83))};}if(_0x4137('0x46')==_0x585e3c[_0x4137('0x37')]){const _0x4d35ca=_0x585e3c[_0x4137('0x5e')]()[_0x4137('0x18')](_0x175818=>_0x175818['is'](_0x4137('0x2c')))['map'](_0x41a9fa=>_0x41a9fa[_0x4137('0x2b')]),_0x52cebb=this[_0x4137('0x32')](_0x585e3c),_0x57b363=_0x52cebb[_0x4137('0x11')]-_0x52cebb['minColumn']+0x1;if(_0x4137('0x5b')==_0x585e3c[_0x4137('0x71')])return _0x4d35ca[_0x4137('0x7a')]?{'type':_0x4137('0x5b'),'content':_0x4f370e(_0x4b8078,_0x4137('0x14'),_0x4f370e(_0x4b8078,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57b363,'\x22'+_0x4d35ca['join']('\x20')+'\x22']))}:{'type':_0x4137('0x5b'),'content':_0x4f370e(_0x4b8078,_0x4137('0x14'),_0x4f370e(_0x4b8078,_0x4137('0x6c'),_0x57b363))};if(_0x4137('0x5')==_0x585e3c[_0x4137('0x71')])return _0x4d35ca[_0x4137('0x7a')]?{'type':_0x4137('0x5'),'content':_0x4f370e(_0x4b8078,'*Remove:*\x20%0',_0x4f370e(_0x4b8078,_0x4137('0x56'),[_0x57b363,'\x22'+_0x4d35ca['join']('\x20')+'\x22']))}:{'type':_0x4137('0x5'),'content':_0x4f370e(_0x4b8078,_0x4137('0xb'),_0x4f370e(_0x4b8078,_0x4137('0x6c'),_0x57b363))};}}),_0x4975bb[_0x4137('0x2a')][_0x4137('0x10')](_0x4137('0x5b'),_0x4137('0x4c'),'discard',_0x1adeaf),_0x4975bb[_0x4137('0x2a')][_0x4137('0x10')](_0x4137('0x5'),_0x4137('0x4c'),'accept',_0x1adeaf),_0x4975bb[_0x4137('0x2a')][_0x4137('0x10')](_0x4137('0x5b'),_0x4137('0x46'),'discard',_0x528c5a),_0x4975bb[_0x4137('0x2a')][_0x4137('0x10')]('deletion',_0x4137('0x46'),'accept',_0x528c5a),_0x4975bb['_suggestionFactory']['registerCustomCallback'](_0x4137('0x5b'),_0x4137('0x46'),_0x4137('0x1f'),_0x2689fb),_0x4975bb['_suggestionFactory'][_0x4137('0x10')](_0x4137('0x5'),_0x4137('0x46'),_0x4137('0x1f'),_0x2689fb),_0x4975bb[_0x4137('0x2a')][_0x4137('0x10')](_0x4137('0x5b'),'tableRow',_0x4137('0x1f'),_0x5f1e95),_0x4975bb[_0x4137('0x2a')][_0x4137('0x10')](_0x4137('0x5'),'tableRow',_0x4137('0x1f'),_0x5f1e95);}['_acceptFormatSuggestionCallbackFactory'](){const _0x143674=this[_0x4137('0x13')],_0x295b53=_0x143674[_0x4137('0x25')][_0x4137('0x9')]['selection'];return(_0x2c5853,_0x3eed13)=>{_0x143674[_0x4137('0x25')][_0x4137('0x66')](_0x213159=>{const {commandName:_0x1756b8,commandParams:_0x2a7cb6}=_0x3eed13;let _0x552c4d=_0x2c5853[0x0]['end'][_0x4137('0x16')];_0x2a7cb6&&_0x2a7cb6[0x0]&&!0x1===_0x2a7cb6[0x0][_0x4137('0xf')]&&(_0x552c4d=_0x2c5853[0x0][_0x4137('0x3d')][_0x4137('0x5f')]);const _0x32d6ce=_0x213159['createRangeIn'](_0x552c4d);if('$graveyard'==_0x32d6ce[_0x4137('0x1e')][_0x4137('0xa')])return;const _0x519c43=Array[_0x4137('0x64')](_0x295b53[_0x4137('0x77')]())[_0x4137('0x6d')](_0x21628f=>_0x4780ea['fromRange'](_0x21628f));_0x213159[_0x4137('0x3b')](_0x32d6ce),_0x143674[_0x4137('0x34')][_0x4137('0x17')](_0x1756b8)[_0x4137('0x75')](),_0x2a7cb6[_0x4137('0x29')]({'forceDefaultExecution':!0x0}),_0x143674[_0x4137('0x70')](_0x1756b8,..._0x2a7cb6);const _0x4daf04=_0x519c43['filter'](_0x4935dd=>'$graveyard'!=_0x4935dd[_0x4137('0x1e')][_0x4137('0xa')]);_0x4daf04['length']>0x0&&_0x213159[_0x4137('0x3b')](_0x4daf04);for(const _0x1aa12b of _0x519c43)_0x1aa12b[_0x4137('0x74')]();});};}[_0x4137('0x61')](_0x592fb6){const _0x3e5217=this['editor'][_0x4137('0x19')][_0x4137('0x17')](_0x4137('0x5a'));let _0x91f8cd=Number[_0x4137('0x22')],_0x22aba4=Number['MIN_SAFE_INTEGER'],_0x1569f4=Number['MAX_SAFE_INTEGER'],_0x51d5e7=Number['MIN_SAFE_INTEGER'];for(const _0x3043df of _0x592fb6){if(_0x4137('0x39')==_0x3043df[_0x4137('0x1e')][_0x4137('0xa')])continue;const {row:_0x722516,column:_0x1023d0}=_0x3e5217[_0x4137('0x76')](_0x3043df),_0x389bc3=_0x3043df[_0x4137('0x28')](_0x4137('0x1b'))?_0x3043df['getAttribute']('rowspan')-0x1:0x0,_0x16c2c0=_0x3043df['hasAttribute'](_0x4137('0xd'))?_0x3043df['getAttribute'](_0x4137('0xd'))-0x1:0x0;_0x91f8cd=_0x722516<_0x91f8cd?_0x722516:_0x91f8cd,_0x22aba4=_0x722516+_0x389bc3>_0x22aba4?_0x722516+_0x389bc3:_0x22aba4,_0x1569f4=_0x1023d0<_0x1569f4?_0x1023d0:_0x1569f4,_0x51d5e7=_0x1023d0+_0x16c2c0>_0x51d5e7?_0x1023d0+_0x16c2c0:_0x51d5e7;}return{'minRow':_0x91f8cd,'maxRow':_0x22aba4,'minColumn':_0x1569f4,'maxColumn':_0x51d5e7};}[_0x4137('0x4d')](){const _0x5f25d8=this[_0x4137('0x13')],_0x532595=_0x5f25d8['plugins'][_0x4137('0x17')](_0x4137('0x58')),_0x499627=_0x5f25d8[_0x4137('0x19')][_0x4137('0x17')](_0x4137('0x5a'));_0x5f25d8[_0x4137('0x25')][_0x4137('0x9')]['on'](_0x4137('0x6f'),()=>{const _0x2fb785=Array['from'](_0x5f25d8[_0x4137('0x25')][_0x4137('0x9')][_0x4137('0x1d')][_0x4137('0x38')]());for(const {name:_0x2c7a36,data:_0x21640e}of _0x2fb785){const {group:_0x5ced9b,id:_0x52fb71,subType:_0x2c1ef4}=_0x532595[_0x4137('0x3a')](_0x2c7a36);if(_0x4137('0x2d')!=_0x5ced9b)continue;if(null!=_0x21640e['oldRange'])continue;const _0x26a2ab=_0x532595[_0x4137('0x49')](_0x52fb71);this[_0x4137('0x2e')][_0x4137('0x67')](_0x2c1ef4)&&this[_0x4137('0x53')]['add'](_0x26a2ab);}},{'priority':'low'});const _0x4567ac=(_0x4f37dc,_0x9f8603)=>{let _0x1b7ade=!0x1;const _0x20c990=_0x9f8603['createRangeOn'](_0x4f37dc),_0x3f1512=_0x4f37dc[_0x4137('0xc')](_0x4137('0x5c')),_0x1667f9=_0x499627['getCellLocation'](_0x4f37dc);for(const _0x2a0c32 of this['_tableSuggestions']){const _0x21c8e1=_0x2a0c32[_0x4137('0x37')],_0x27325c=_0x21c8e1[_0x4137('0x79')]('tablePaste'),_0x3d41b9=_0x21c8e1[_0x4137('0x3f')](_0x27325c?0xa:0x5),_0x3e76a3=_0x3d41b9['toLowerCase'](),_0x22d786=_0x3e76a3['substr'](0x0,0x3)+_0x4137('0x1a'),_0x36daaa=_0x4137('0x21')+_0x3d41b9,_0x25340=_0x4137('0x4a')+_0x3d41b9;if(!_0x2a0c32[_0x4137('0x41')])continue;if(_0x3f1512!=_0x2a0c32[_0x4137('0xe')]()['start'][_0x4137('0xc')]('table'))continue;if(_0x2a0c32['isIntersectingWithRange'](_0x20c990))continue;const _0x26dbb7=_0x4f37dc[_0x4137('0x28')](_0x22d786)?_0x4f37dc[_0x4137('0x3c')](_0x22d786)-0x1:0x0,_0x32c36b=this[_0x4137('0x32')](_0x2a0c32),_0x154727=_0x32c36b[_0x36daaa],_0x1f7160=_0x32c36b[_0x25340];_0x154727<=_0x1667f9[_0x3e76a3]&&_0x1667f9[_0x3e76a3]+_0x26dbb7<=_0x1f7160&&(_0x2a0c32[_0x4137('0x1c')](_0x20c990),_0x1b7ade=!0x0);}return _0x1b7ade;};_0x5f25d8[_0x4137('0x25')][_0x4137('0x9')][_0x4137('0x6a')](_0x329ff4=>{let _0x7f289d=!0x1;for(const _0x490fb2 of _0x5f25d8[_0x4137('0x25')][_0x4137('0x9')]['differ'][_0x4137('0x24')]())if(_0x4137('0x48')==_0x490fb2['type']){if(_0x4137('0x4c')==_0x490fb2[_0x4137('0x2f')])for(const _0x576aff of _0x490fb2[_0x4137('0x8')]['nodeAfter']['getChildren']())_0x7f289d=_0x7f289d||_0x4567ac(_0x576aff,_0x329ff4);else'tableCell'==_0x490fb2[_0x4137('0x2f')]&&(_0x7f289d=_0x7f289d||_0x4567ac(_0x490fb2[_0x4137('0x8')][_0x4137('0x5f')],_0x329ff4));}return _0x7f289d;});}[_0x4137('0x32')](_0x3e1109){return this[_0x4137('0x61')](_0x3e1109[_0x4137('0x77')]()[_0x4137('0x6d')](_0x26c766=>_0x26c766['start'][_0x4137('0x5f')]));}}function se(_0x3af9fb){return Array[_0x4137('0x64')](new Set(_0x3af9fb)[_0x4137('0x78')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35fc=['afterInit','get','editor','has','plugins','TrackChangesEditing','enableCommand','requires','TableCaptionEditing','toggleTableCaption'];(function(_0x34f0cf,_0x35fcb1){const _0x53c3d0=function(_0x4db57c){while(--_0x4db57c){_0x34f0cf['push'](_0x34f0cf['shift']());}};_0x53c3d0(++_0x35fcb1);}(_0x35fc,0x71));const _0x53c3=function(_0x34f0cf,_0x35fcb1){_0x34f0cf=_0x34f0cf-0x0;let _0x53c3d0=_0x35fc[_0x34f0cf];return _0x53c3d0;};import{Plugin as _0x4bfc7b}from'ckeditor5/src/core';import _0xd6726c from'./table';export default class vt extends _0x4bfc7b{static get[_0x53c3('0x4')](){return[_0xd6726c];}[_0x53c3('0x7')](){const _0x23b41d=this[_0x53c3('0x9')];if(!_0x23b41d[_0x53c3('0x1')][_0x53c3('0x0')](_0x53c3('0x5')))return;_0x23b41d['plugins'][_0x53c3('0x8')](_0x53c3('0x2'))[_0x53c3('0x3')](_0x53c3('0x6'));}}
|