@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230909.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 _0xf2eb=['getAttribute','plugins','numbered','bind','TrackChangesEditing','afterInit','_LIST_','get','listStyle','ListUtils','_getSuggestionBlocks','parent','enableCommand','getSiblingNodes','getSelectedBlocks','ELEMENT_','listReversed','startIndex','handleListStartCommand','element','length','change','forward','getFirstPosition','model','handleDescriptions','backward','createPositionAt','list.properties','commandName','editor','push','*Format:*\x20set\x20order\x20to\x20reversed','createRange','listItem','listStart','*Format:*\x20set\x20start\x20index\x20to\x20%0','from','_getTranslationKeyForListStyle','has','map','handleListStyleCommand','styles','config','markMultiRangeBlockFormat','unshift','filter','_getSuggestionBlocksForListStyle','reversed','locale','handleListReversedCommand','selection','before','getLastPosition','commandParams','type','format','toUpperCase','document','listType'];(function(_0x5a1ad3,_0xf2ebfc){const _0x49f3b5=function(_0x524dbe){while(--_0x524dbe){_0x5a1ad3['push'](_0x5a1ad3['shift']());}};_0x49f3b5(++_0xf2ebfc);}(_0xf2eb,0x1de));const _0x49f3=function(_0x5a1ad3,_0xf2ebfc){_0x5a1ad3=_0x5a1ad3-0x0;let _0x49f3b5=_0xf2eb[_0x5a1ad3];return _0x49f3b5;};import{Plugin as _0x361894}from'ckeditor5/src/core';import{getTranslation as _0x5175ee}from'../utils/common-translations';export default class st extends _0x361894{[_0x49f3('0x7')](){if(!this['editor'][_0x49f3('0x3')][_0x49f3('0x29')]('ListPropertiesEditing'))return;const _0x5e9585=this['editor'][_0x49f3('0x2d')][_0x49f3('0x9')](_0x49f3('0x1e')),_0x3a319b=this['editor'][_0x49f3('0x3')][_0x49f3('0x9')](_0x49f3('0x6'));_0x5e9585[_0x49f3('0x2c')]&&_0x3a319b['enableCommand'](_0x49f3('0xa'),this[_0x49f3('0x2b')][_0x49f3('0x5')](this)),_0x5e9585[_0x49f3('0x32')]&&_0x3a319b[_0x49f3('0xe')](_0x49f3('0x12'),this[_0x49f3('0x34')][_0x49f3('0x5')](this)),_0x5e9585[_0x49f3('0x13')]&&_0x3a319b['enableCommand'](_0x49f3('0x25'),this[_0x49f3('0x14')][_0x49f3('0x5')](this)),_0x3a319b['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions'][_0x49f3('0x5')](this));}['handleListStyleCommand'](_0x1083e9,_0x29d841={}){const _0xb99783=this['editor']['plugins'][_0x49f3('0x9')]('TrackChangesEditing'),_0x34ab4a=this[_0x49f3('0x31')]();this[_0x49f3('0x20')]['model'][_0x49f3('0x17')](()=>{_0xb99783[_0x49f3('0x2e')](_0x34ab4a,{'commandName':'listStyle','commandParams':[{'type':_0x29d841[_0x49f3('0x39')]}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2ee8f5,_0x2f4232={}){const _0x339064=this[_0x49f3('0x20')][_0x49f3('0x3')][_0x49f3('0x9')]('TrackChangesEditing'),_0x292aa3=this[_0x49f3('0xc')](_0x3aa6a5=>_0x3aa6a5['is'](_0x49f3('0x15'),'listItem')&&_0x49f3('0x4')===_0x3aa6a5[_0x49f3('0x2')](_0x49f3('0x1')));if(_0x292aa3[_0x49f3('0x16')]<0x1)return;const _0x2c66a6=_0x292aa3[_0x49f3('0x2a')](_0x46a081=>this[_0x49f3('0x20')][_0x49f3('0x1a')]['createRange'](this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x1d')](_0x46a081,_0x49f3('0x36')),this[_0x49f3('0x20')]['model'][_0x49f3('0x1d')](_0x46a081,0x0)));this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x17')](()=>{_0x339064[_0x49f3('0x2e')](_0x2c66a6,{'commandName':_0x49f3('0x12'),'commandParams':[{'reversed':_0x2f4232[_0x49f3('0x32')]}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24b775,_0x3295c7={}){const _0x5d6d8b=this[_0x49f3('0x20')]['plugins'][_0x49f3('0x9')](_0x49f3('0x6')),_0x105eee=this[_0x49f3('0xc')](_0x5bde35=>_0x5bde35['is'](_0x49f3('0x15'),_0x49f3('0x24'))&&'numbered'===_0x5bde35['getAttribute'](_0x49f3('0x1')));if(_0x105eee[_0x49f3('0x16')]<0x1)return;const _0x158897=_0x105eee['map'](_0x4180d8=>this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x23')](this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x1d')](_0x4180d8,'before'),this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x1d')](_0x4180d8,0x0)));this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x17')](()=>{_0x5d6d8b[_0x49f3('0x2e')](_0x158897,{'commandName':_0x49f3('0x25'),'commandParams':[{'startIndex':_0x3295c7[_0x49f3('0x13')]}],'formatGroupId':_0x49f3('0x25')});});}[_0x49f3('0x1b')](_0x171e4a){const _0x1a203d=this['editor'][_0x49f3('0x33')],{data:_0x28ba92}=_0x171e4a;if(!_0x28ba92)return;let _0x214c14,_0x53f645;switch(_0x28ba92[_0x49f3('0x1f')]){case'listStyle':_0x214c14='*Change\x20to:*\x20%0',_0x53f645={'type':_0x49f3('0x3a'),'content':_0x5175ee(_0x1a203d,_0x214c14,_0x5175ee(_0x1a203d,this[_0x49f3('0x28')](_0x28ba92[_0x49f3('0x38')][0x0][_0x49f3('0x39')])))};break;case'listReversed':_0x214c14=_0x28ba92[_0x49f3('0x38')][0x0][_0x49f3('0x32')]?_0x49f3('0x22'):'*Format:*\x20set\x20order\x20to\x20regular',_0x53f645={'type':_0x49f3('0x3a'),'content':_0x5175ee(_0x1a203d,_0x214c14)};break;case'listStart':_0x214c14=_0x49f3('0x26'),_0x53f645={'type':'format','content':_0x5175ee(_0x1a203d,_0x214c14,_0x28ba92[_0x49f3('0x38')][0x0]['startIndex'])};}return _0x53f645;}[_0x49f3('0x31')](){var _0x194b20,_0x31963b,_0x511b6f,_0x404f84;const _0x2c5f93=this[_0x49f3('0x20')][_0x49f3('0x3')][_0x49f3('0x9')]('ListUtils');let _0x55b874=Array['from'](this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x0')]['selection'][_0x49f3('0x10')]());return(null===(_0x194b20=_0x55b874[0x0])||void 0x0===_0x194b20?void 0x0:_0x194b20['is'](_0x49f3('0x15'),'listItem'))&&_0x55b874[_0x49f3('0x2f')](..._0x2c5f93[_0x49f3('0xf')](this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x0')]['selection']['getFirstPosition'](),_0x49f3('0x1c'))),(null===(_0x31963b=_0x55b874[_0x55b874[_0x49f3('0x16')]-0x1])||void 0x0===_0x31963b?void 0x0:_0x31963b['is']('element','listItem'))&&_0x55b874[_0x49f3('0x21')](..._0x2c5f93['getSiblingNodes'](this[_0x49f3('0x20')][_0x49f3('0x1a')][_0x49f3('0x0')]['selection'][_0x49f3('0x37')](),'forward')),_0x55b874=[...new Set(_0x55b874)],(null===(_0x404f84=null===(_0x511b6f=this[_0x49f3('0x20')][_0x49f3('0x1a')]['document']['selection'][_0x49f3('0x19')]())||void 0x0===_0x511b6f?void 0x0:_0x511b6f[_0x49f3('0xd')])||void 0x0===_0x404f84?void 0x0:_0x404f84['is'](_0x49f3('0x15'),_0x49f3('0x24')))&&(_0x55b874=_0x55b874[_0x49f3('0x30')](_0x1c803e=>_0x1c803e['is'](_0x49f3('0x15'),_0x49f3('0x24')))),_0x55b874;}[_0x49f3('0xc')](_0x1b5f48){const _0x2fc99c=this[_0x49f3('0x20')][_0x49f3('0x3')][_0x49f3('0x9')]('ListUtils');let _0x5c1b49=Array[_0x49f3('0x27')](this[_0x49f3('0x20')]['model'][_0x49f3('0x0')][_0x49f3('0x35')][_0x49f3('0x10')]())[_0x49f3('0x30')](_0x1b5f48)[_0x49f3('0x2a')](_0xc4632c=>{const _0x41dac3=this[_0x49f3('0x20')]['model'][_0x49f3('0x1d')](_0xc4632c,0x0);return[..._0x2fc99c[_0x49f3('0xf')](_0x41dac3,'backward'),..._0x2fc99c[_0x49f3('0xf')](_0x41dac3,_0x49f3('0x18'))];})['flat']();return _0x5c1b49=[...new Set(_0x5c1b49)],_0x5c1b49;}[_0x49f3('0x28')](_0x5d4df2){return _0x49f3('0x11')+this['editor'][_0x49f3('0x3')][_0x49f3('0x9')](_0x49f3('0xb'))['getListTypeFromListStyleType'](_0x5d4df2)['toUpperCase']()+_0x49f3('0x8')+_0x5d4df2[_0x49f3('0x3b')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41d8=['elementToElement','enableCommand','plugins','stop','for','media','dataDowncast','afterInit','ELEMENT_MEDIA','data','showSuggestionHighlights','mediaEmbed','high','TrackChangesEditing','options','MediaEmbedEditing','has','conversion','editor','locale','createEmptyElement','_descriptionFactory'];(function(_0x1c8bc8,_0x41d8d2){const _0x3a507c=function(_0x1f9b2a){while(--_0x1f9b2a){_0x1c8bc8['push'](_0x1c8bc8['shift']());}};_0x3a507c(++_0x41d8d2);}(_0x41d8,0x6b));const _0x3a50=function(_0x1c8bc8,_0x41d8d2){_0x1c8bc8=_0x1c8bc8-0x0;let _0x3a507c=_0x41d8[_0x1c8bc8];return _0x3a507c;};import{Plugin as _0x5a1b67}from'ckeditor5/src/core';import{getTranslation as _0x50cbf9}from'../utils/common-translations';export default class ot extends _0x5a1b67{[_0x3a50('0xa')](){const _0x4af292=this[_0x3a50('0x15')];if(!_0x4af292[_0x3a50('0x5')][_0x3a50('0x13')](_0x3a50('0x12')))return;const _0x4178a9=_0x4af292[_0x3a50('0x5')]['get'](_0x3a50('0x10')),_0x20b2db=_0x4af292[_0x3a50('0x0')];_0x4178a9[_0x3a50('0x4')](_0x3a50('0xe')),_0x4178a9[_0x3a50('0x2')]['registerElementLabel']('media',_0x3a1c6e=>_0x50cbf9(_0x20b2db,_0x3a50('0xb'),_0x3a1c6e)),_0x4af292[_0x3a50('0x14')][_0x3a50('0x7')](_0x3a50('0x9'))[_0x3a50('0x3')]({'model':_0x3a50('0x8'),'view':(_0x2ec828,{writer:_0x4a33a8,options:_0x476b37})=>{if(_0x476b37[_0x3a50('0xd')])return _0x4a33a8[_0x3a50('0x1')]('div');},'converterPriority':_0x3a50('0xf')}),_0x4af292[_0x3a50('0xc')]['downcastDispatcher']['on']('attribute:url:media',(_0x24003f,_0x449355,_0x54f947)=>{_0x54f947[_0x3a50('0x11')][_0x3a50('0xd')]&&_0x24003f[_0x3a50('0x6')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c0f=['TrackChangesEditing','get','enableCommand','MentionEditing','afterInit','mention','has','plugins'];(function(_0x2242fc,_0x1c0ff5){const _0x15d7dc=function(_0x1bc926){while(--_0x1bc926){_0x2242fc['push'](_0x2242fc['shift']());}};_0x15d7dc(++_0x1c0ff5);}(_0x1c0f,0xf4));const _0x15d7=function(_0x2242fc,_0x1c0ff5){_0x2242fc=_0x2242fc-0x0;let _0x15d7dc=_0x1c0f[_0x2242fc];return _0x15d7dc;};import{Plugin as _0x10af3b}from'ckeditor5/src/core';export default class rt extends _0x10af3b{[_0x15d7('0x0')](){const _0xbef80a=this['editor'];_0xbef80a['plugins'][_0x15d7('0x2')](_0x15d7('0x7'))&&_0xbef80a[_0x15d7('0x3')][_0x15d7('0x5')](_0x15d7('0x4'))[_0x15d7('0x6')](_0x15d7('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33f9=['pageBreak','plugins','afterInit','editor','PageBreakEditing','enableCommand','registerElementLabel','get','locale','ELEMENT_PAGE_BREAK','has','_descriptionFactory','TrackChangesEditing'];(function(_0x5e5f5c,_0x33f9b3){const _0x1e50a6=function(_0x112240){while(--_0x112240){_0x5e5f5c['push'](_0x5e5f5c['shift']());}};_0x1e50a6(++_0x33f9b3);}(_0x33f9,0x1f0));const _0x1e50=function(_0x5e5f5c,_0x33f9b3){_0x5e5f5c=_0x5e5f5c-0x0;let _0x1e50a6=_0x33f9[_0x5e5f5c];return _0x1e50a6;};import{Plugin as _0x51a36e}from'ckeditor5/src/core';import{getTranslation as _0x4e0271}from'../utils/common-translations';export default class at extends _0x51a36e{[_0x1e50('0x0')](){const _0x2ecbe0=this[_0x1e50('0x1')];if(!_0x2ecbe0[_0x1e50('0xc')][_0x1e50('0x8')](_0x1e50('0x2')))return;_0x2ecbe0['plugins']['get'](_0x1e50('0xa'))[_0x1e50('0x3')](_0x1e50('0xb'));const _0x1242b7=_0x2ecbe0[_0x1e50('0xc')][_0x1e50('0x5')](_0x1e50('0xa')),_0x5dcde8=_0x2ecbe0[_0x1e50('0x6')];_0x1242b7[_0x1e50('0x9')][_0x1e50('0x4')](_0x1e50('0xb'),_0x3b1efd=>_0x4e0271(_0x5dcde8,_0x1e50('0x7'),_0x3b1efd));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e86=['activeMarkers','plugins','ELEMENT_PARAGRAPH','Paragraph','type','registerElementLabel','ck-suggestion-marker-split','isTouching','afterInit','registerDescriptionCallback','*Change\x20to:*\x20%0','isLimit','createUIElement','_descriptionFactory','paragraph','$text','filter','addMarker:suggestion:insertion','document','parent','insertParagraph','insertion','change','consumable','enableCommand','from','blockName','downcastDispatcher','showSuggestionHighlights','getSelectedBlocks','get','nodeAfter','writer','checkChild','getItemLabel','editing','ck-suggestion-marker--active','TrackChangesEditing','editor','bindElementToMarker','*Insert:*\x20%0','has','commandName','includes','selection','getFirstRange','markerName','name','isBlock','end','markBlockFormat','markerRange','mapper','toViewPosition','model','locale','insert','options','addClass','highest','span','consume','schema'];(function(_0x1db399,_0x4e869e){const _0x440a73=function(_0x13e19d){while(--_0x13e19d){_0x1db399['push'](_0x1db399['shift']());}};_0x440a73(++_0x4e869e);}(_0x4e86,0xe0));const _0x440a=function(_0x1db399,_0x4e869e){_0x1db399=_0x1db399-0x0;let _0x440a73=_0x4e86[_0x1db399];return _0x440a73;};import{Plugin as _0xf1d060}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x1723c5}from'./utils';import{getTranslation as _0x25e479}from'../utils/common-translations';export default class ct extends _0xf1d060{[_0x440a('0x24')](){const _0x1e8cac=this[_0x440a('0x3')];if(!_0x1e8cac[_0x440a('0x1d')][_0x440a('0x6')](_0x440a('0x1f')))return;const _0x933227=_0x1e8cac[_0x440a('0x14')],_0xa413e6=_0x1e8cac[_0x440a('0x1d')][_0x440a('0x3a')](_0x440a('0x2'));_0xa413e6[_0x440a('0x29')][_0x440a('0x21')](_0x440a('0x2a'),_0x75ac29=>_0x25e479(_0x933227,_0x440a('0x1e'),_0x75ac29)),_0xa413e6[_0x440a('0x34')](_0x440a('0x2a'),(_0x13cb10,_0x54a8d8={})=>{const _0xb697c7=_0x1e8cac[_0x440a('0x13')][_0x440a('0x2e')],_0x22daa8=_0x54a8d8[_0x440a('0x9')]||_0xb697c7[_0x440a('0x9')],_0x153b8c=Array[_0x440a('0x35')](_0x22daa8[_0x440a('0x39')]())[_0x440a('0x2c')](_0x52621c=>function(_0x4fd100,_0x595573){return _0x595573[_0x440a('0x3d')](_0x4fd100[_0x440a('0x2f')],_0x440a('0x2a'))&&!_0x595573['isObject'](_0x4fd100)&&_0x440a('0x2a')!=_0x4fd100['name'];}(_0x52621c,this['editor'][_0x440a('0x13')][_0x440a('0x1b')]));_0x1e8cac[_0x440a('0x13')][_0x440a('0x32')](()=>{for(const _0x1b9d5f of _0x153b8c)_0xa413e6[_0x440a('0xf')](_0x1b9d5f,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x440a('0x36')},_0x1723c5(_0x1b9d5f));});}),_0xa413e6[_0x440a('0x29')][_0x440a('0x25')](_0x4d1740=>{const {data:_0x1655c0}=_0x4d1740;if(_0x1655c0&&_0x440a('0x2a')==_0x1655c0[_0x440a('0x7')])return{'type':'format','content':_0x25e479(_0x933227,_0x440a('0x26'),_0x25e479(_0x933227,'ELEMENT_PARAGRAPH'))};}),_0xa413e6[_0x440a('0x34')](_0x440a('0x30')),_0x1e8cac[_0x440a('0x0')][_0x440a('0x37')]['on'](_0x440a('0x2d'),ar(_0x1e8cac),{'priority':'highest'}),_0x1e8cac['data'][_0x440a('0x37')]['on'](_0x440a('0x2d'),(_0xcb8edc,_0x41af0d,_0xa1043a)=>{_0xa1043a[_0x440a('0x16')][_0x440a('0x38')]&&ar(_0x1e8cac,{'showActiveMarker':!0x1})(_0xcb8edc,_0x41af0d,_0xa1043a);},{'priority':_0x440a('0x18')});const _0x5ba919=_0xa413e6[_0x440a('0x29')];_0x5ba919['registerDescriptionCallback'](_0x6c2a67=>{if('insertion'!==_0x6c2a67[_0x440a('0x20')])return;const {start:_0x43bd13,end:_0x89419b}=_0x6c2a67[_0x440a('0xa')]();if(!_0x43bd13[_0x440a('0x23')](_0x89419b)||!_0x43bd13[_0x440a('0x3b')])return;const _0x253cca=_0x1e8cac[_0x440a('0x13')]['schema'],_0x3e97ed=_0x43bd13[_0x440a('0x3b')];return _0x253cca[_0x440a('0xd')](_0x3e97ed)&&!_0x253cca[_0x440a('0x27')](_0x3e97ed)&&_0x253cca['checkChild'](_0x3e97ed,_0x440a('0x2b'))?{'type':_0x440a('0x31'),'content':_0x25e479(_0x933227,_0x440a('0x5'),_0x5ba919[_0x440a('0x3e')](_0x3e97ed,0x1))}:void 0x0;});}}function ar(_0x4d4798,{showActiveMarker:_0x309709=!0x0}={}){return(_0x391fda,_0x21beb6,_0x2c468f)=>{const _0x207125=_0x4d4798[_0x440a('0x1d')][_0x440a('0x3a')]('TrackChangesEditing'),_0x557fdc=_0x21beb6['markerRange']['start'],_0x181a8b=_0x21beb6['markerRange'][_0x440a('0xe')],_0x1e188d=_0x4d4798['model']['schema'];if(!_0x557fdc[_0x440a('0x23')](_0x181a8b)||!_0x557fdc[_0x440a('0x3b')])return;const _0x3de19=_0x557fdc[_0x440a('0x3b')];if(_0x1e188d[_0x440a('0xd')](_0x3de19)&&!_0x1e188d['isLimit'](_0x3de19)&&_0x1e188d[_0x440a('0x3d')](_0x3de19,_0x440a('0x2b'))){if(!_0x2c468f[_0x440a('0x33')][_0x440a('0x1a')](_0x21beb6[_0x440a('0x10')],_0x391fda[_0x440a('0xc')]))return;const _0x5cb283=_0x2c468f[_0x440a('0x3c')][_0x440a('0x28')](_0x440a('0x19'),{'class':_0x440a('0x22')}),_0x311793=_0x2c468f[_0x440a('0x11')][_0x440a('0x12')](_0x181a8b);_0x309709&&_0x207125[_0x440a('0x1c')][_0x440a('0x8')](_0x21beb6[_0x440a('0xb')])&&_0x2c468f[_0x440a('0x3c')][_0x440a('0x17')](_0x440a('0x1'),_0x5cb283),_0x2c468f[_0x440a('0x3c')][_0x440a('0x15')](_0x311793,_0x5cb283),_0x2c468f[_0x440a('0x11')][_0x440a('0x4')](_0x5cb283,_0x21beb6[_0x440a('0xb')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58ee=['removeFormat','commandName','getItems','schema','change','locale','markInlineFormat','isFormatting','isCollapsed','plugins','has','model','format','afterInit','from','*Remove\x20all\x20formatting*'];(function(_0x3fc011,_0x58ee94){const _0x47ac2a=function(_0x36f234){while(--_0x36f234){_0x3fc011['push'](_0x3fc011['shift']());}};_0x47ac2a(++_0x58ee94);}(_0x58ee,0x74));const _0x47ac=function(_0x3fc011,_0x58ee94){_0x3fc011=_0x3fc011-0x0;let _0x47ac2a=_0x58ee[_0x3fc011];return _0x47ac2a;};import{Plugin as _0x4c9cd1}from'ckeditor5/src/core';import{getTranslation as _0x33a897}from'../utils/common-translations';export default class ht extends _0x4c9cd1{[_0x47ac('0x9')](){const _0x8e9c27=this['editor'];if(!_0x8e9c27[_0x47ac('0x5')][_0x47ac('0x6')]('RemoveFormatEditing'))return;const _0x2f8ff4=_0x8e9c27[_0x47ac('0x5')]['get']('TrackChangesEditing');_0x2f8ff4['enableCommand'](_0x47ac('0xc'),_0x27ed34=>{const _0x350448=_0x8e9c27[_0x47ac('0x7')]['document']['selection'];_0x350448[_0x47ac('0x4')]?_0x27ed34():_0x8e9c27[_0x47ac('0x7')][_0x47ac('0x0')](()=>{const _0x16a3d3=Array[_0x47ac('0xa')](_0x350448['getRanges']());for(const _0x48a455 of _0x16a3d3)for(const _0x1df76d of _0x48a455[_0x47ac('0xe')]())mo(_0x1df76d,_0x8e9c27[_0x47ac('0x7')][_0x47ac('0xf')])&&_0x2f8ff4[_0x47ac('0x2')](_0x8e9c27['model']['createRangeOn'](_0x1df76d),{'commandName':_0x47ac('0xc'),'commandParams':[]});});}),_0x2f8ff4['_descriptionFactory']['registerDescriptionCallback'](_0x346c69=>{const {data:_0x4c067c}=_0x346c69;if(_0x4c067c&&_0x47ac('0xc')==_0x4c067c[_0x47ac('0xd')])return{'type':_0x47ac('0x8'),'content':_0x33a897(_0x8e9c27[_0x47ac('0x1')],_0x47ac('0xb'))};});}}function mo(_0x58c4a5,_0x58e08f){for(const [_0x35afc3]of _0x58c4a5['getAttributes']()){const _0xbbed27=_0x58e08f['getAttributeProperties'](_0x35afc3);if(_0xbbed27&&_0xbbed27[_0x47ac('0x3')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21a4=['TrackChangesEditing','plugins','RestrictedEditingModeEditing','trackChanges','enableCommand','get','acceptSuggestion','discardSuggestion','discardAllSuggestions','acceptSelectedSuggestions','goToNextRestrictedEditingException','acceptAllSuggestions','goToPreviousRestrictedEditingException','discardSelectedSuggestions','has'];(function(_0xf1d8a0,_0x21a4e8){const _0x2cef4f=function(_0x51d64a){while(--_0x51d64a){_0xf1d8a0['push'](_0xf1d8a0['shift']());}};_0x2cef4f(++_0x21a4e8);}(_0x21a4,0xa3));const _0x2cef=function(_0xf1d8a0,_0x21a4e8){_0xf1d8a0=_0xf1d8a0-0x0;let _0x2cef4f=_0x21a4[_0xf1d8a0];return _0x2cef4f;};import{Plugin as _0x243b26}from'ckeditor5/src/core';export default class ut extends _0x243b26{['afterInit'](){const _0x44d248=this['editor'];if(!_0x44d248[_0x2cef('0x3')][_0x2cef('0x1')](_0x2cef('0x4')))return;const _0x5d25be=_0x44d248[_0x2cef('0x3')][_0x2cef('0x7')](_0x2cef('0x2'));_0x5d25be[_0x2cef('0x6')](_0x2cef('0xe')),_0x5d25be[_0x2cef('0x6')](_0x2cef('0xc'));const _0x266940=_0x44d248['plugins'][_0x2cef('0x7')](_0x2cef('0x4'));_0x266940['enableCommand'](_0x2cef('0x5')),_0x266940['enableCommand'](_0x2cef('0x8')),_0x266940[_0x2cef('0x6')](_0x2cef('0x9')),_0x266940[_0x2cef('0x6')](_0x2cef('0xd')),_0x266940['enableCommand'](_0x2cef('0xa')),_0x266940[_0x2cef('0x6')](_0x2cef('0xb')),_0x266940[_0x2cef('0x6')](_0x2cef('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37e6=['init','downcastDispatcher','test','editing','softBreak','plugins','data','ELEMENT_LINE_BREAK','merge','requires','element','writer','addMarker:suggestion:insertion','showSuggestionHighlights','markerRange','model','locale','addClass','options','high','shiftEnter','split','TrackChangesEditing','mapper','deletion','activeMarkers','createPositionBefore','name','toViewPosition','addMarker:suggestion','bindElementToMarker','_descriptionFactory','get'];(function(_0x5ee24c,_0x37e637){const _0x147345=function(_0x10f0ce){while(--_0x10f0ce){_0x5ee24c['push'](_0x5ee24c['shift']());}};_0x147345(++_0x37e637);}(_0x37e6,0x7c));const _0x1473=function(_0x5ee24c,_0x37e637){_0x5ee24c=_0x5ee24c-0x0;let _0x147345=_0x37e6[_0x5ee24c];return _0x147345;};import{Plugin as _0xf617c4}from'ckeditor5/src/core';import{ShiftEnter as _0x1dd4d6}from'ckeditor5/src/enter';import{getTranslation as _0x56f09c}from'../utils/common-translations';export default class ft extends _0xf617c4{static get[_0x1473('0x11')](){return[_0x1dd4d6];}[_0x1473('0x8')](){const _0x24ae0b=this['editor'],_0x16fe88=_0x24ae0b[_0x1473('0xd')][_0x1473('0x7')](_0x1473('0x1e'));_0x16fe88['enableCommand'](_0x1473('0x1c')),_0x24ae0b[_0x1473('0xb')][_0x1473('0x9')]['on'](_0x1473('0x14'),re(_0x24ae0b),{'priority':_0x1473('0x1b')}),_0x24ae0b[_0x1473('0xb')][_0x1473('0x9')]['on']('addMarker:suggestion:deletion',re(_0x24ae0b),{'priority':_0x1473('0x1b')}),_0x24ae0b[_0x1473('0xe')]['downcastDispatcher']['on'](_0x1473('0x4'),(_0x57056f,_0x14cfc0,_0x46a8b1)=>{_0x46a8b1[_0x1473('0x1a')][_0x1473('0x15')]&&re(_0x24ae0b,{'showActiveMarker':!0x1})(_0x57056f,_0x14cfc0,_0x46a8b1);}),_0x16fe88[_0x1473('0x6')]['registerElementLabel']('softBreak',_0x18853e=>_0x56f09c(_0x24ae0b[_0x1473('0x18')],_0x1473('0xf'),_0x18853e));}}function re(_0x202cf8,{showActiveMarker:_0x588e36=!0x0}={}){return(_0x382b63,_0x5dff80,_0x4f838f)=>{const _0x4f98f7=_0x202cf8[_0x1473('0xd')]['get'](_0x1473('0x1e'));if(!_0x4f838f['consumable'][_0x1473('0xa')](_0x5dff80[_0x1473('0x16')],_0x382b63[_0x1473('0x2')]))return;const _0x1aeed0=_0x202cf8[_0x1473('0x17')];for(const _0x1f180d of _0x5dff80[_0x1473('0x16')]['getItems']()){if(!_0x1f180d['is'](_0x1473('0x12'),_0x1473('0xc')))continue;const _0xc97622=_0x1473('0x20')==_0x5dff80['markerName'][_0x1473('0x1d')](':')[0x1]?_0x1473('0x10'):'split',_0x43158a=_0x4f838f[_0x1473('0x13')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc97622}),_0x3188df=_0x4f838f[_0x1473('0x1f')][_0x1473('0x3')](_0x1aeed0[_0x1473('0x1')](_0x1f180d));_0x588e36&&_0x4f98f7[_0x1473('0x0')]['includes'](_0x5dff80['markerName'])&&_0x4f838f['writer'][_0x1473('0x19')]('ck-suggestion-marker--active',_0x43158a),_0x4f838f[_0x1473('0x13')]['insert'](_0x3188df,_0x43158a),_0x4f838f[_0x1473('0x1f')][_0x1473('0x5')](_0x43158a,_0x5dff80['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50dc=['value','locale','restrictedEditingException','FORMAT_RESTRICTED_DISABLED','markInlineFormat','isCollapsed','document','getRanges','editor','plugins','FORMAT_RESTRICTED_ENABLED','forceValue','selection','afterInit','_descriptionFactory','StandardEditingModeEditing','enableCommand','registerDescriptionCallback','has','change','format','get'];(function(_0x291152,_0x50dc63){const _0x189237=function(_0x1594be){while(--_0x1594be){_0x291152['push'](_0x291152['shift']());}};_0x189237(++_0x50dc63);}(_0x50dc,0x110));const _0x1892=function(_0x291152,_0x50dc63){_0x291152=_0x291152-0x0;let _0x189237=_0x50dc[_0x291152];return _0x189237;};import{Plugin as _0x2e0bf8}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x27aa31}from'./utils';import{getTranslation as _0x31d8ef}from'../utils/common-translations';export default class lt extends _0x2e0bf8{[_0x1892('0x5')](){const _0x3829e2=this[_0x1892('0x0')],_0x4d5f1d=_0x3829e2['model'],_0x5a34fa=_0x3829e2[_0x1892('0xf')];if(!_0x3829e2[_0x1892('0x1')][_0x1892('0xa')](_0x1892('0x7')))return;const _0x41c344=_0x3829e2[_0x1892('0x1')][_0x1892('0xd')]('TrackChangesEditing'),_0x3128db=_0x1892('0x10'),_0x52b955=_0x3829e2['commands']['get'](_0x3128db);_0x41c344[_0x1892('0x8')](_0x3128db,(_0x1e231e,_0x4e93d6={})=>{const _0x21b832=_0x4d5f1d[_0x1892('0x14')][_0x1892('0x4')];if(_0x21b832[_0x1892('0x13')])return void _0x1e231e(_0x4e93d6);const _0x133f7e=void 0x0!==_0x4e93d6[_0x1892('0x3')]?_0x4e93d6[_0x1892('0x3')]:!_0x52b955[_0x1892('0xe')];_0x4d5f1d[_0x1892('0xb')](()=>{const _0x22104f=Array['from'](_0x21b832[_0x1892('0x15')]());for(const _0xbd6332 of _0x22104f){const _0x2bdccd=_0x133f7e?[_0xbd6332]:_0x27aa31(_0x3128db,_0xbd6332,_0x4d5f1d);for(const _0x17748b of _0x2bdccd)_0x41c344[_0x1892('0x12')](_0x17748b,{'commandName':_0x3128db,'commandParams':[{'forceValue':_0x133f7e}]});}});}),_0x41c344[_0x1892('0x6')][_0x1892('0x9')](_0x5c1358=>{const {data:_0x4a8298}=_0x5c1358;if(_0x4a8298&&_0x4a8298['commandName']==_0x3128db)return _0x4a8298['commandParams'][0x0]['forceValue']?{'type':_0x1892('0xc'),'content':_0x31d8ef(_0x5a34fa,_0x1892('0x2'))}:{'type':_0x1892('0xc'),'content':_0x31d8ef(_0x5a34fa,_0x1892('0x11'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58ae=['model','config','inline','find','TrackChangesEditing','includes','style','createRangeOn','commands','element','block','toLowerCase','format','from','classes','_getStyleDefinition','enabledStyles','push','StyleUtils','plugins','getItems','styleName','get','markInlineFormat','normalizeConfig','_descriptionFactory','change','locale','getAncestors','style.definitions','markBlockFormat','has','forceValue','getSelectedBlocks','name','value','_getRangesWithClasses','style:','*Remove\x20format:*\x20%0','selection','getDefinitionsForView','*Format:*\x20%0','registerDescriptionCallback','DataSchema','afterInit','getRanges','every','commandParams'];(function(_0x564750,_0x58ae18){const _0x52f240=function(_0xa1b25a){while(--_0xa1b25a){_0x564750['push'](_0x564750['shift']());}};_0x52f240(++_0x58ae18);}(_0x58ae,0x1ce));const _0x52f2=function(_0x564750,_0x58ae18){_0x564750=_0x564750-0x0;let _0x52f240=_0x58ae[_0x564750];return _0x52f240;};import{Plugin as _0x50a149}from'ckeditor5/src/core';import{getTranslation as _0x58c036}from'../utils/common-translations';export default class gt extends _0x50a149{[_0x52f2('0xe')](){const _0x1b58d2=this['editor'];if(!_0x1b58d2[_0x52f2('0x25')][_0x52f2('0x1')]('Style'))return;const _0x7abe09=_0x1b58d2[_0x52f2('0x1a')][_0x52f2('0x28')]('style'),_0x29bc20=_0x1b58d2[_0x52f2('0x25')][_0x52f2('0x28')](_0x52f2('0x16')),_0x1ff63f=_0x1b58d2[_0x52f2('0x2d')],_0x2a7dab=_0x1b58d2[_0x52f2('0x25')][_0x52f2('0x28')](_0x52f2('0xd')),_0x26f046=_0x1b58d2['plugins'][_0x52f2('0x28')](_0x52f2('0x24'))[_0x52f2('0x2a')](_0x2a7dab,_0x1b58d2[_0x52f2('0x13')]['get'](_0x52f2('0x2f')));_0x29bc20['enableCommand'](_0x52f2('0x18'),(_0x5ce316,{styleName:_0x52bf02})=>{const _0x26c2f4=_0x1b58d2[_0x52f2('0x12')]['document'][_0x52f2('0x9')],_0x316776=this[_0x52f2('0x21')](_0x52bf02,_0x26f046);if(!_0x316776)return;if(!_0x7abe09[_0x52f2('0x22')][_0x52f2('0x17')](_0x52bf02))return;if(_0x26c2f4['isCollapsed']&&!_0x316776['isBlock'])return void _0x5ce316({'styleName':_0x52bf02});const _0x508a7f=!_0x7abe09[_0x52f2('0x5')][_0x52f2('0x17')](_0x316776[_0x52f2('0x4')]);if(_0x316776['isBlock']){const _0x57be64=function(_0x536f28,_0x3f2e2b){const _0x4f4641=new Set();for(const _0x1a0f7f of _0x536f28){const _0x30a246=_0x1a0f7f[_0x52f2('0x2e')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x50a6c2 of _0x30a246)if(_0x3f2e2b[_0x52f2('0x17')](_0x50a6c2[_0x52f2('0x4')])){_0x4f4641['add'](_0x50a6c2);break;}}return _0x4f4641;}(_0x26c2f4[_0x52f2('0x3')](),_0x316776['modelElements']);_0x1b58d2[_0x52f2('0x12')][_0x52f2('0x2c')](()=>{for(const _0x59a51f of _0x57be64)_0x29bc20[_0x52f2('0x0')](_0x59a51f,{'commandName':_0x52f2('0x18'),'commandParams':[{'styleName':_0x52bf02,'forceValue':_0x508a7f}],'formatGroupId':_0x52f2('0x7')+_0x52bf02});});}else{let _0x4761bc=Array[_0x52f2('0x1f')](_0x26c2f4[_0x52f2('0xf')]());if(!_0x508a7f){const _0x40e254=Array[_0x52f2('0x1f')](_0x2a7dab[_0x52f2('0xa')](_0x316776[_0x52f2('0x1b')],!0x1))[0x0]['model'],_0x45045f=[];for(const _0x5ae385 of _0x4761bc){const _0x1baeeb=this[_0x52f2('0x6')](_0x1b58d2['model'],_0x5ae385,_0x316776[_0x52f2('0x20')],_0x40e254);_0x45045f[_0x52f2('0x23')](..._0x1baeeb);}_0x4761bc=_0x45045f;}_0x1b58d2[_0x52f2('0x12')][_0x52f2('0x2c')](()=>{for(const _0x2eba3f of _0x4761bc)_0x29bc20[_0x52f2('0x29')](_0x2eba3f,{'commandName':'style','commandParams':[{'styleName':_0x52bf02,'forceValue':_0x508a7f}]});});}}),_0x29bc20[_0x52f2('0x2b')][_0x52f2('0xc')](_0xa6df8e=>{const {data:_0x312853}=_0xa6df8e;if(_0x312853&&_0x52f2('0x18')===_0x312853['commandName'])return _0x312853['commandParams'][0x0][_0x52f2('0x2')]?{'type':'format','content':_0x58c036(_0x1ff63f,_0x52f2('0xb'),_0x312853[_0x52f2('0x11')][0x0][_0x52f2('0x27')]['toLowerCase']())}:{'type':_0x52f2('0x1e'),'content':_0x58c036(_0x1ff63f,_0x52f2('0x8'),_0x312853[_0x52f2('0x11')][0x0][_0x52f2('0x27')][_0x52f2('0x1d')]())};});}[_0x52f2('0x21')](_0x21c276,_0x11058d){let _0x50e40a=_0x11058d[_0x52f2('0x1c')][_0x52f2('0x15')](_0x3033c6=>_0x3033c6[_0x52f2('0x4')]===_0x21c276);return _0x50e40a||(_0x50e40a=_0x11058d[_0x52f2('0x14')]['find'](_0x3cc125=>_0x3cc125[_0x52f2('0x4')]===_0x21c276)),_0x50e40a;}['_getRangesWithClasses'](_0xf0b775,_0x6649b2,_0x4c3546,_0x11d952){const _0x1054f2=[];for(const _0x344227 of _0x6649b2[_0x52f2('0x26')]()){const _0x3f0c93=_0x344227['getAttribute'](_0x11d952);_0x3f0c93&&(_0x4c3546[_0x52f2('0x10')](_0x54a824=>_0x3f0c93[_0x52f2('0x20')][_0x52f2('0x17')](_0x54a824))&&_0x1054f2['push'](_0xf0b775[_0x52f2('0x19')](_0x344227)));}return _0x1054f2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x28d2=['getColumnIndexes','*Remove:*\x20%0','findAncestor','TableUtils','add','ELEMENT_TABLE_ROW','hasAttribute','oldRange','registerElementLabel','editor','plugins','nodeBefore','first','maxRow','selectTableColumn','isIntersectingWithRange','tableCell','getSelectionAffectedTableCells','refresh','_splitMarkerName','getRanges','createRangeOn','getChildren','_tablePostFixingSubtypes','markMultiRangeInsertion','nodeAfter','position','name','colspan','forceValue','ELEMENT_TABLE_COLUMN','length','type','detach','registerDescriptionCallback','getCellLocation','addClass','start','tableRow','_acceptFormatSuggestionCallbackFactory','setSelection','end','discard','addRange','values','from','createTableWalker','execute','mapper','TableEditing','enableCommand','afterInit','_getCoordsForCells','includes','_getSuggestionCoords','createRangeIn','span','order','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableRowAbove','deletion','$graveyard','toViewElement','subType','min','filter','minColumn','item','enqueueChange','getFirstRange','getChangedMarkers','getAttribute','selectTableRow','root','removeTableRow','MAX_SAFE_INTEGER','getItems','change','data','writer','classes','selection','some','startsWith','insertTable','_descriptionFactory','isEqual','table','_tableSuggestions','rootName','model','addMarker:suggestion','tableColumn','differ','*Insert:*\x20%0','registerCustomCallback','registerPostFixer','document','last','_suggestionFactory','toLowerCase','insertTableColumnRight','$textProxy','fromRange','change:data','_setupColumnsRowsFixing','commands','ELEMENT_TABLE','join','cell','suggestion','push','tablePaste','getRowIndexes','accept','substr','get','insertTableColumnLeft','element','map','removeTableColumn','isInContent','insertion','ELEMENT_TABLE_WITH_TEXT','TrackChangesEditing','isTouching','showSuggestionHighlights','has','ELEMENT_TABLE_ROW_WITH_TEXT','max','low'];(function(_0x30b613,_0x28d2a4){const _0x1b4924=function(_0x1fc134){while(--_0x1fc134){_0x30b613['push'](_0x30b613['shift']());}};_0x1b4924(++_0x28d2a4);}(_0x28d2,0x130));const _0x1b49=function(_0x30b613,_0x28d2a4){_0x30b613=_0x30b613-0x0;let _0x1b4924=_0x28d2[_0x30b613];return _0x1b4924;};import{Plugin as _0x238895}from'ckeditor5/src/core';import{LiveRange as _0x263e68}from'ckeditor5/src/engine';import{setHighlightHandling as _0xaabf0}from'ckeditor5/src/widget';import{getTranslation as _0x2a917a}from'../utils/common-translations';export default class mt extends _0x238895{constructor(_0x4c0e3b){super(_0x4c0e3b),this[_0x1b49('0x70')]=[_0x1b49('0x7f'),_0x1b49('0x32')],this['_tableSuggestions']=new Set();}[_0x1b49('0x9')](){const _0x200d29=this[_0x1b49('0x62')],_0x9fe1a2=_0x200d29['model'][_0x1b49('0x37')][_0x1b49('0x27')];if(!_0x200d29[_0x1b49('0x63')][_0x1b49('0x55')](_0x1b49('0x7')))return;const _0x2539f8=_0x200d29['locale'],_0x1a9504=_0x200d29[_0x1b49('0x63')][_0x1b49('0x4a')](_0x1b49('0x52')),_0x3699f8=_0x200d29[_0x1b49('0x63')][_0x1b49('0x4a')]('TableUtils');_0x1a9504[_0x1b49('0x2b')][_0x1b49('0x61')](_0x1b49('0x2d'),_0x3a31a3=>_0x2a917a(_0x2539f8,_0x1b49('0x41'),_0x3a31a3)),this[_0x1b49('0x3f')](),_0x1a9504[_0x1b49('0x8')](_0x1b49('0x2a')),_0x1a9504[_0x1b49('0x8')](_0x1b49('0x1e')),_0x1a9504['enableCommand'](_0x1b49('0x67'));for(const _0x4dd3be of[_0x1b49('0x11'),'insertTableRowBelow']){const _0x70d3cc=_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0x4dd3be);_0x1a9504[_0x1b49('0x8')](_0x4dd3be,_0x2e64aa=>{_0x200d29[_0x1b49('0x30')]['change'](_0x1471cb=>{_0x2e64aa();const _0x343fec='above'===_0x70d3cc[_0x1b49('0xf')],_0x506827=_0x3699f8[_0x1b49('0x6a')](_0x9fe1a2),_0x5b0047=_0x3699f8[_0x1b49('0x47')](_0x506827),_0xa2c95a=_0x343fec?_0x5b0047[_0x1b49('0x65')]-0x1:_0x5b0047[_0x1b49('0x38')]+0x1,_0x23a775=_0x506827[0x0][_0x1b49('0x5b')](_0x1b49('0x2d')),_0x199f8b=_0x3699f8['createTableWalker'](_0x23a775,{'startRow':_0xa2c95a,'endRow':_0xa2c95a}),_0x1fc72b=Array[_0x1b49('0x3')](_0x199f8b)[_0x1b49('0x4d')](_0x41dd0c=>_0x1471cb[_0x1b49('0x6e')](_0x41dd0c[_0x1b49('0x43')]));_0x1a9504['markMultiRangeInsertion'](_0x1fc72b,_0x1b49('0x7f'));});});}for(const _0xa0610c of[_0x1b49('0x4b'),_0x1b49('0x3b')]){const _0x2323a9=_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0xa0610c);_0x1a9504[_0x1b49('0x8')](_0xa0610c,_0x390529=>{_0x200d29[_0x1b49('0x30')][_0x1b49('0x23')](_0x58ac9f=>{_0x390529();const _0x32fa9c='left'===_0x2323a9[_0x1b49('0xf')],_0x4d6887=_0x3699f8[_0x1b49('0x6a')](_0x9fe1a2),_0x50353a=_0x3699f8[_0x1b49('0x59')](_0x4d6887),_0x54cbb0=_0x32fa9c?_0x50353a[_0x1b49('0x65')]-0x1:_0x50353a[_0x1b49('0x38')]+0x1,_0x16d382=_0x4d6887[0x0][_0x1b49('0x5b')](_0x1b49('0x2d')),_0x25b4fe=_0x3699f8[_0x1b49('0x4')](_0x16d382,{'startRow':0x0,'column':_0x54cbb0,'includeAllSlots':!0x1}),_0x32f90b=Array[_0x1b49('0x3')](_0x25b4fe)['map'](_0x3b162b=>_0x58ac9f[_0x1b49('0x6e')](_0x3b162b[_0x1b49('0x43')]));_0x1a9504[_0x1b49('0x71')](_0x32f90b,_0x1b49('0x32'));});});}for(const _0x2dd6ec of[_0x1b49('0x20'),_0x1b49('0x4e')]){const _0xb4a160=_0x2dd6ec[_0x1b49('0x49')](0xb),_0x2a57e0=_0xb4a160['toLowerCase'](),_0x5da379=_0x2a57e0[_0x1b49('0x49')](0x0,0x3)+_0x1b49('0xe'),_0xb851d9=_0x1b49('0x2d')+_0xb4a160,_0x163ca4='min'+_0xb4a160,_0x4682ee=_0x1b49('0x57')+_0xb4a160;_0x1a9504[_0x1b49('0x8')](_0x2dd6ec,()=>{_0x200d29[_0x1b49('0x30')]['change'](_0x2d9a07=>{const _0x31bff6=_0x3699f8[_0x1b49('0x6a')](_0x9fe1a2),_0x134e32=_0x31bff6[0x0][_0x1b49('0x5b')](_0x1b49('0x2d'));let _0x4fde6d;if(_0x1b49('0x20')==_0x2dd6ec){const _0x1bfcb7=_0x3699f8[_0x1b49('0x47')](_0x31bff6);_0x4fde6d={'startRow':_0x1bfcb7['first'],'endRow':_0x1bfcb7[_0x1b49('0x38')],'includeAllSlots':!0x0};}else{const _0x362612=_0x3699f8[_0x1b49('0x59')](_0x31bff6);_0x4fde6d={'startColumn':_0x362612['first'],'endColumn':_0x362612[_0x1b49('0x38')],'includeAllSlots':!0x0};}const _0x27bb3c=_0x3699f8['createTableWalker'](_0x134e32,_0x4fde6d),_0x1f87a8=Array[_0x1b49('0x3')](_0x27bb3c)['map'](({cell:_0x42716d})=>_0x42716d),_0x47f0bd=se(_0x1f87a8[_0x1b49('0x17')](_0x56e528=>_0x56e528[_0x1b49('0x5f')](_0x5da379))),_0x4bf167=se(_0x1f87a8[_0x1b49('0x17')](_0x28a323=>!_0x28a323[_0x1b49('0x5f')](_0x5da379)))[_0x1b49('0x4d')](_0x3c02e9=>_0x2d9a07[_0x1b49('0x6e')](_0x3c02e9)),_0x445fc8=_0x1a9504['markMultiRangeDeletion'](_0x4bf167,_0xb851d9);if(_0x445fc8&&(_0x1b49('0x7f')==_0x445fc8[_0x1b49('0x15')]||_0x1b49('0x32')==_0x445fc8['subType'])){const _0xfac838=this[_0x1b49('0xc')](_0x445fc8);for(const _0x3341ba of _0x47f0bd){const _0x41020d=_0x2d9a07[_0x1b49('0x6e')](_0x3341ba),_0x29d20a=_0x3699f8[_0x1b49('0x7c')](_0x3341ba),_0x58d824=_0x3341ba[_0x1b49('0x1d')](_0x5da379)-0x1,_0x4d3fa3=_0xfac838[_0x163ca4],_0x1fe0e0=_0xfac838[_0x4682ee];_0x4d3fa3<=_0x29d20a[_0x2a57e0]&&_0x29d20a[_0x2a57e0]+_0x58d824<=_0x1fe0e0&&_0x445fc8[_0x1b49('0x1')](_0x41020d);}}});});}function _0x5d764c(_0x1580ac){const _0x3fab62=Array[_0x1b49('0x3')](_0x9fe1a2[_0x1b49('0x6d')]())[_0x1b49('0x4d')](_0x52264d=>_0x263e68['fromRange'](_0x52264d));_0x200d29['model'][_0x1b49('0x23')](_0xb72386=>{const _0x228fcf=_0xb72386['batch'];_0x1580ac=_0x1580ac[_0x1b49('0x17')](_0x371e17=>_0x1b49('0x13')!=_0x371e17[_0x1b49('0x1f')][_0x1b49('0x2f')]),_0xb72386[_0x1b49('0x81')](_0x1580ac),_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0x1b49('0x20'))['refresh'](),_0x200d29[_0x1b49('0x5')](_0x1b49('0x20'),{'forceDefaultExecution':!0x0}),_0x200d29[_0x1b49('0x30')]['enqueueChange'](()=>{_0x200d29['model'][_0x1b49('0x1a')](_0x228fcf,_0x102dd9=>{const _0x1f94f1=_0x3fab62['filter'](_0x5290ee=>_0x1b49('0x13')!=_0x5290ee[_0x1b49('0x1f')][_0x1b49('0x2f')]);_0x1f94f1[_0x1b49('0x78')]>0x0&&_0x102dd9[_0x1b49('0x81')](_0x1f94f1);for(const _0x35be8e of _0x3fab62)_0x35be8e[_0x1b49('0x7a')]();});});});}function _0x100be5(_0x41c977){_0x200d29[_0x1b49('0x30')][_0x1b49('0x23')](_0x58bf9f=>{const _0x3c0d69=Array[_0x1b49('0x3')](_0x9fe1a2[_0x1b49('0x6d')]())['map'](_0x1f1fb8=>_0x263e68[_0x1b49('0x3d')](_0x1f1fb8)),_0x42760c=[];for(const _0x507602 of _0x41c977)for(const _0x35d62c of _0x507602[_0x1b49('0x22')]({'shallow':!0x0}))_0x42760c[_0x1b49('0x45')](_0x35d62c);for(const _0x91adaa of _0x42760c)_0x1b49('0x13')!=_0x91adaa[_0x1b49('0x1f')][_0x1b49('0x2f')]&&(_0x58bf9f[_0x1b49('0x81')](_0x58bf9f['createPositionAt'](_0x91adaa,0x0)),_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0x1b49('0x4e'))[_0x1b49('0x6b')](),_0x200d29[_0x1b49('0x5')](_0x1b49('0x4e'),{'forceDefaultExecution':!0x0}));const _0x26de15=_0x3c0d69['filter'](_0xccdfa4=>'$graveyard'!=_0xccdfa4[_0x1b49('0x1f')][_0x1b49('0x2f')]);_0x26de15[_0x1b49('0x78')]>0x0&&_0x58bf9f[_0x1b49('0x81')](_0x26de15);for(const _0x58b542 of _0x3c0d69)_0x58b542[_0x1b49('0x7a')]();});}function _0x101e05(_0x14c45f,_0x526616){return _0x526616['every'](_0x630473=>_0x14c45f[_0x1b49('0x28')](_0x4f113b=>_0x4f113b[_0x1b49('0x82')][_0x1b49('0x2c')](_0x630473['start'])||_0x630473[_0x1b49('0x82')][_0x1b49('0x2c')](_0x4f113b[_0x1b49('0x7e')])));}function _0x58ce15(_0x19ddf9,_0x3277e1){return _0x19ddf9[_0x1b49('0x28')](_0x146991=>_0x3277e1[_0x1b49('0x28')](_0x54f645=>_0x146991[_0x1b49('0x82')][_0x1b49('0x53')](_0x54f645[_0x1b49('0x7e')])));}_0x200d29['data']['downcastDispatcher']['on'](_0x1b49('0x31'),(_0x17b695,_0x47ad3c,_0x86b7cf)=>{if(!_0x86b7cf['options'][_0x1b49('0x54')])return;const _0x3fdfcb=_0x47ad3c[_0x1b49('0x19')];if(!_0x3fdfcb)return;const _0x3bcd98=_0x86b7cf[_0x1b49('0x6')][_0x1b49('0x14')](_0x3fdfcb);function _0x2ac7e9(_0x163a78){return Array['isArray'](_0x163a78)?_0x163a78:[_0x163a78];}_0x3bcd98&&_0x1b49('0x69')===_0x3fdfcb[_0x1b49('0x74')]&&_0xaabf0(_0x3bcd98,_0x86b7cf[_0x1b49('0x25')],(_0x51ee84,_0x5b17a2,_0x48004e)=>_0x48004e[_0x1b49('0x7d')](_0x2ac7e9(_0x5b17a2[_0x1b49('0x26')]),_0x51ee84),(_0x259b61,_0x9705c2,_0x2bbb6e)=>_0x2bbb6e['removeClass'](_0x2ac7e9(_0x9705c2[_0x1b49('0x26')]),_0x259b61));},{'priority':'highest'}),_0x1a9504['_descriptionFactory']['registerDescriptionCallback'](_0x3e9d26=>{if(_0x1b49('0x50')!=_0x3e9d26['type']&&_0x1b49('0x12')!=_0x3e9d26[_0x1b49('0x79')])return;const _0x2aa8da=_0x3e9d26['getContainedElement']();if(null!=_0x2aa8da&&_0x2aa8da['is'](_0x1b49('0x4c'),_0x1b49('0x2d'))){if(_0x1b49('0x50')==_0x3e9d26[_0x1b49('0x79')]){const _0x186731=_0x3e9d26[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x92ca40=>_0x92ca40['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x30062d=>_0x30062d[_0x1b49('0x24')]);if(_0x186731[_0x1b49('0x78')])return{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x51'),'\x22'+_0x186731[_0x1b49('0x42')]('\x20')+'\x22'))};}if(_0x1b49('0x12')==_0x3e9d26[_0x1b49('0x79')]){const _0x524c50=_0x3e9d26[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x9e4cc8=>_0x9e4cc8['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x166dd6=>_0x166dd6[_0x1b49('0x24')]);if(_0x524c50[_0x1b49('0x78')])return{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x51'),'\x22'+_0x524c50[_0x1b49('0x42')]('\x20')+'\x22'))};}}}),_0x1a9504[_0x1b49('0x2b')][_0x1b49('0x7b')](_0x539097=>{if(_0x1b49('0x7f')==_0x539097[_0x1b49('0x15')]){const _0x280fbd=_0x539097[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x4b378d=>_0x4b378d['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x1b0a43=>_0x1b0a43[_0x1b49('0x24')]),_0xfb074e=this['_getSuggestionCoords'](_0x539097),_0x58dae5=_0xfb074e[_0x1b49('0x66')]-_0xfb074e['minRow']+0x1;if(_0x1b49('0x50')==_0x539097[_0x1b49('0x79')])return _0x280fbd[_0x1b49('0x78')]?{'type':'insertion','content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x56'),[_0x58dae5,'\x22'+_0x280fbd[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,'ELEMENT_TABLE_ROW',_0x58dae5))};if(_0x1b49('0x12')==_0x539097[_0x1b49('0x79')])return _0x280fbd[_0x1b49('0x78')]?{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x56'),[_0x58dae5,'\x22'+_0x280fbd[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x5e'),_0x58dae5))};}if(_0x1b49('0x32')==_0x539097['subType']){const _0x458f3c=_0x539097[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x31fc1b=>_0x31fc1b['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x3f2bf5=>_0x3f2bf5['data']),_0x4649db=this[_0x1b49('0xc')](_0x539097),_0x20be4c=_0x4649db['maxColumn']-_0x4649db[_0x1b49('0x18')]+0x1;if('insertion'==_0x539097['type'])return _0x458f3c['length']?{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x10'),[_0x20be4c,'\x22'+_0x458f3c[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x77'),_0x20be4c))};if('deletion'==_0x539097[_0x1b49('0x79')])return _0x458f3c['length']?{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x10'),[_0x20be4c,'\x22'+_0x458f3c[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x77'),_0x20be4c))};}}),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x7f'),_0x1b49('0x0'),_0x5d764c),_0x1a9504['_suggestionFactory'][_0x1b49('0x35')](_0x1b49('0x12'),_0x1b49('0x7f'),'accept',_0x5d764c),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x32'),_0x1b49('0x0'),_0x100be5),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x12'),_0x1b49('0x32'),_0x1b49('0x48'),_0x100be5),_0x1a9504['_suggestionFactory'][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x32'),_0x1b49('0x42'),_0x101e05),_0x1a9504[_0x1b49('0x39')]['registerCustomCallback'](_0x1b49('0x12'),_0x1b49('0x32'),_0x1b49('0x42'),_0x101e05),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x7f'),_0x1b49('0x42'),_0x58ce15),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x12'),_0x1b49('0x7f'),_0x1b49('0x42'),_0x58ce15);}[_0x1b49('0x80')](){const _0x269d5e=this[_0x1b49('0x62')],_0x116d00=_0x269d5e[_0x1b49('0x30')][_0x1b49('0x37')][_0x1b49('0x27')];return(_0x1bc477,_0x3b87f1)=>{_0x269d5e['model'][_0x1b49('0x23')](_0x500e1f=>{const {commandName:_0x215ef4,commandParams:_0x3c77b3}=_0x3b87f1;let _0x1e5954=_0x1bc477[0x0][_0x1b49('0x82')][_0x1b49('0x64')];_0x3c77b3&&_0x3c77b3[0x0]&&!0x1===_0x3c77b3[0x0][_0x1b49('0x76')]&&(_0x1e5954=_0x1bc477[0x0][_0x1b49('0x7e')][_0x1b49('0x72')]);const _0x27be7e=_0x500e1f[_0x1b49('0xd')](_0x1e5954);if(_0x1b49('0x13')==_0x27be7e['root'][_0x1b49('0x2f')])return;const _0x251c66=Array[_0x1b49('0x3')](_0x116d00[_0x1b49('0x6d')]())[_0x1b49('0x4d')](_0x4710bc=>_0x263e68['fromRange'](_0x4710bc));_0x500e1f[_0x1b49('0x81')](_0x27be7e),_0x269d5e[_0x1b49('0x40')]['get'](_0x215ef4)[_0x1b49('0x6b')](),_0x3c77b3[_0x1b49('0x45')]({'forceDefaultExecution':!0x0}),_0x269d5e['execute'](_0x215ef4,..._0x3c77b3);const _0xa5be7f=_0x251c66[_0x1b49('0x17')](_0x2bae3d=>_0x1b49('0x13')!=_0x2bae3d['root'][_0x1b49('0x2f')]);_0xa5be7f[_0x1b49('0x78')]>0x0&&_0x500e1f[_0x1b49('0x81')](_0xa5be7f);for(const _0x1d7fa1 of _0x251c66)_0x1d7fa1[_0x1b49('0x7a')]();});};}[_0x1b49('0xa')](_0x321edc){const _0x55ddce=this[_0x1b49('0x62')][_0x1b49('0x63')][_0x1b49('0x4a')](_0x1b49('0x5c'));let _0x956b1f=Number[_0x1b49('0x21')],_0x404d50=Number['MIN_SAFE_INTEGER'],_0x27533c=Number[_0x1b49('0x21')],_0x4ccbb0=Number['MIN_SAFE_INTEGER'];for(const _0x312b25 of _0x321edc){if(_0x1b49('0x13')==_0x312b25[_0x1b49('0x1f')][_0x1b49('0x2f')])continue;const {row:_0x4b9855,column:_0x2eac29}=_0x55ddce[_0x1b49('0x7c')](_0x312b25),_0x227c9c=_0x312b25[_0x1b49('0x5f')]('rowspan')?_0x312b25['getAttribute']('rowspan')-0x1:0x0,_0x311906=_0x312b25[_0x1b49('0x5f')](_0x1b49('0x75'))?_0x312b25[_0x1b49('0x1d')](_0x1b49('0x75'))-0x1:0x0;_0x956b1f=_0x4b9855<_0x956b1f?_0x4b9855:_0x956b1f,_0x404d50=_0x4b9855+_0x227c9c>_0x404d50?_0x4b9855+_0x227c9c:_0x404d50,_0x27533c=_0x2eac29<_0x27533c?_0x2eac29:_0x27533c,_0x4ccbb0=_0x2eac29+_0x311906>_0x4ccbb0?_0x2eac29+_0x311906:_0x4ccbb0;}return{'minRow':_0x956b1f,'maxRow':_0x404d50,'minColumn':_0x27533c,'maxColumn':_0x4ccbb0};}[_0x1b49('0x3f')](){const _0x1c6097=this[_0x1b49('0x62')],_0x5d54d3=_0x1c6097[_0x1b49('0x63')][_0x1b49('0x4a')]('TrackChangesEditing'),_0xc762c9=_0x1c6097[_0x1b49('0x63')]['get'](_0x1b49('0x5c'));_0x1c6097['model'][_0x1b49('0x37')]['on'](_0x1b49('0x3e'),()=>{const _0x267298=Array[_0x1b49('0x3')](_0x1c6097['model']['document'][_0x1b49('0x33')][_0x1b49('0x1c')]());for(const {name:_0x1007c4,data:_0x3d73bc}of _0x267298){const {group:_0x406e1d,id:_0x1d4531,subType:_0x156483}=_0x5d54d3[_0x1b49('0x6c')](_0x1007c4);if(_0x1b49('0x44')!=_0x406e1d)continue;if(null!=_0x3d73bc[_0x1b49('0x60')])continue;const _0xef0099=_0x5d54d3['getSuggestion'](_0x1d4531);this[_0x1b49('0x70')][_0x1b49('0xb')](_0x156483)&&this[_0x1b49('0x2e')][_0x1b49('0x5d')](_0xef0099);}},{'priority':_0x1b49('0x58')});const _0x121817=(_0x4506ee,_0xef0cd6)=>{let _0x7b832f=!0x1;const _0x404af8=_0xef0cd6[_0x1b49('0x6e')](_0x4506ee),_0x1b29c5=_0x4506ee[_0x1b49('0x5b')](_0x1b49('0x2d')),_0x1fb640=_0xc762c9[_0x1b49('0x7c')](_0x4506ee);for(const _0x31b7ed of this[_0x1b49('0x2e')]){const _0x448232=_0x31b7ed[_0x1b49('0x15')],_0x93a128=_0x448232[_0x1b49('0x29')](_0x1b49('0x46')),_0x262641=_0x448232['substr'](_0x93a128?0xa:0x5),_0x469e9d=_0x262641[_0x1b49('0x3a')](),_0x17c1f0=_0x469e9d['substr'](0x0,0x3)+_0x1b49('0xe'),_0x564e9f=_0x1b49('0x16')+_0x262641,_0x1f10b4=_0x1b49('0x57')+_0x262641;if(!_0x31b7ed[_0x1b49('0x4f')])continue;if(_0x1b29c5!=_0x31b7ed[_0x1b49('0x1b')]()[_0x1b49('0x7e')][_0x1b49('0x5b')](_0x1b49('0x2d')))continue;if(_0x31b7ed[_0x1b49('0x68')](_0x404af8))continue;const _0x2e3065=_0x4506ee[_0x1b49('0x5f')](_0x17c1f0)?_0x4506ee[_0x1b49('0x1d')](_0x17c1f0)-0x1:0x0,_0x1595ea=this[_0x1b49('0xc')](_0x31b7ed),_0x55c5bb=_0x1595ea[_0x564e9f],_0x10551d=_0x1595ea[_0x1f10b4];_0x55c5bb<=_0x1fb640[_0x469e9d]&&_0x1fb640[_0x469e9d]+_0x2e3065<=_0x10551d&&(_0x31b7ed['addRange'](_0x404af8),_0x7b832f=!0x0);}return _0x7b832f;};_0x1c6097[_0x1b49('0x30')][_0x1b49('0x37')][_0x1b49('0x36')](_0x5f199b=>{let _0x5740b1=!0x1;for(const _0x45f391 of _0x1c6097[_0x1b49('0x30')][_0x1b49('0x37')][_0x1b49('0x33')]['getChanges']())if('insert'==_0x45f391[_0x1b49('0x79')]){if(_0x1b49('0x7f')==_0x45f391['name'])for(const _0xaff70d of _0x45f391[_0x1b49('0x73')][_0x1b49('0x72')][_0x1b49('0x6f')]())_0x5740b1=_0x5740b1||_0x121817(_0xaff70d,_0x5f199b);else _0x1b49('0x69')==_0x45f391['name']&&(_0x5740b1=_0x5740b1||_0x121817(_0x45f391[_0x1b49('0x73')]['nodeAfter'],_0x5f199b));}return _0x5740b1;});}['_getSuggestionCoords'](_0xb8a511){return this[_0x1b49('0xa')](_0xb8a511[_0x1b49('0x6d')]()[_0x1b49('0x4d')](_0x43e4dd=>_0x43e4dd[_0x1b49('0x7e')][_0x1b49('0x72')]));}}function se(_0x3902cf){return Array[_0x1b49('0x3')](new Set(_0x3902cf)[_0x1b49('0x2')]());}
|
|
23
|
+
const _0x3473=['insertTableColumnRight','toViewElement','createPositionAt','data','from','MAX_SAFE_INTEGER','getItems','options','_tableSuggestions','getRowIndexes','isTouching','getRanges','getSelectionAffectedTableCells','position','every','hasAttribute','insertTableRowBelow','isArray','accept','fromRange','_tablePostFixingSubtypes','TrackChangesEditing','locale','ELEMENT_TABLE_WITH_TEXT','registerElementLabel','_getSuggestionCoords','createRangeIn','insertTable','_splitMarkerName','plugins','createTableWalker','getChangedMarkers','downcastDispatcher','setSelection','nodeAfter','includes','$textProxy','enqueueChange','tableRow','toLowerCase','addMarker:suggestion','_setupColumnsRowsFixing','selectTableRow','ELEMENT_TABLE_COLUMN','selection','startsWith','change:data','selectTableColumn','getColumnIndexes','ELEMENT_TABLE_ROW','table','batch','getCellLocation','createRangeOn','map','registerCustomCallback','type','join','removeTableColumn','_getCoordsForCells','some','order','document','getFirstRange','highest','last','findAncestor','minRow','writer','name','isEqual','get','markMultiRangeInsertion','isInContent','max','rowspan','registerDescriptionCallback','nodeBefore','*Remove:*\x20%0','deletion','detach','insertion','removeTableRow','tableCell','oldRange','end','substr','mapper','insert','span','MIN_SAFE_INTEGER','TableUtils','cell','tableColumn','getAttribute','$graveyard','subType','tablePaste','refresh','removeClass','*Insert:*\x20%0','change','colspan','getChanges','has','getContainedElement','addClass','discard','filter','start','TableEditing','commands','differ','model','left','element','item','above','first','ELEMENT_TABLE_COLUMN_WITH_TEXT','root','length','enableCommand','editor','add','getChildren','rootName','_suggestionFactory','maxRow','_descriptionFactory'];(function(_0x5e4c61,_0x3473fb){const _0x5f5720=function(_0x34b258){while(--_0x34b258){_0x5e4c61['push'](_0x5e4c61['shift']());}};_0x5f5720(++_0x3473fb);}(_0x3473,0x1f0));const _0x5f57=function(_0x5e4c61,_0x3473fb){_0x5e4c61=_0x5e4c61-0x0;let _0x5f5720=_0x3473[_0x5e4c61];return _0x5f5720;};import{Plugin as _0x7e3525}from'ckeditor5/src/core';import{LiveRange as _0x2faa42}from'ckeditor5/src/engine';import{setHighlightHandling as _0x104ca5}from'ckeditor5/src/widget';import{getTranslation as _0x3e4497}from'../utils/common-translations';export default class mt extends _0x7e3525{constructor(_0x70a97f){super(_0x70a97f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this[_0x5f57('0x20')]=new Set();}['afterInit'](){const _0x5a3aba=this[_0x5f57('0x11')],_0x4bc162=_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x56')][_0x5f57('0x44')];if(!_0x5a3aba['plugins'][_0x5f57('0x80')](_0x5f57('0x4')))return;const _0x4f17de=_0x5a3aba[_0x5f57('0x2e')],_0xcd34a6=_0x5a3aba['plugins'][_0x5f57('0x5f')](_0x5f57('0x2d')),_0x4a90e5=_0x5a3aba[_0x5f57('0x35')][_0x5f57('0x5f')]('TableUtils');_0xcd34a6[_0x5f57('0x17')][_0x5f57('0x30')]('table',_0x2c2f99=>_0x3e4497(_0x4f17de,'ELEMENT_TABLE',_0x2c2f99)),this[_0x5f57('0x41')](),_0xcd34a6[_0x5f57('0x10')](_0x5f57('0x33')),_0xcd34a6[_0x5f57('0x10')](_0x5f57('0x42')),_0xcd34a6[_0x5f57('0x10')](_0x5f57('0x47'));for(const _0x211766 of['insertTableRowAbove',_0x5f57('0x28')]){const _0x13a577=_0x5a3aba[_0x5f57('0x5')][_0x5f57('0x5f')](_0x211766);_0xcd34a6[_0x5f57('0x10')](_0x211766,_0x178668=>{_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x7d')](_0x198f8d=>{_0x178668();const _0x17d940=_0x5f57('0xb')===_0x13a577[_0x5f57('0x55')],_0xdbf504=_0x4a90e5[_0x5f57('0x24')](_0x4bc162),_0x43e645=_0x4a90e5[_0x5f57('0x21')](_0xdbf504),_0x23848f=_0x17d940?_0x43e645['first']-0x1:_0x43e645['last']+0x1,_0x9b04d0=_0xdbf504[0x0]['findAncestor'](_0x5f57('0x4a')),_0x413b7a=_0x4a90e5['createTableWalker'](_0x9b04d0,{'startRow':_0x23848f,'endRow':_0x23848f}),_0x2ec16e=Array[_0x5f57('0x1c')](_0x413b7a)[_0x5f57('0x4e')](_0x4cd445=>_0x198f8d[_0x5f57('0x4d')](_0x4cd445[_0x5f57('0x74')]));_0xcd34a6[_0x5f57('0x60')](_0x2ec16e,'tableRow');});});}for(const _0xfe1257 of['insertTableColumnLeft',_0x5f57('0x18')]){const _0x44a48e=_0x5a3aba['commands']['get'](_0xfe1257);_0xcd34a6['enableCommand'](_0xfe1257,_0x178ce8=>{_0x5a3aba[_0x5f57('0x7')]['change'](_0x24e790=>{_0x178ce8();const _0x21562d=_0x5f57('0x8')===_0x44a48e[_0x5f57('0x55')],_0x566244=_0x4a90e5[_0x5f57('0x24')](_0x4bc162),_0x5f4522=_0x4a90e5[_0x5f57('0x48')](_0x566244),_0x1f78d0=_0x21562d?_0x5f4522[_0x5f57('0xc')]-0x1:_0x5f4522[_0x5f57('0x59')]+0x1,_0x52aadf=_0x566244[0x0]['findAncestor'](_0x5f57('0x4a')),_0x3b5e0c=_0x4a90e5[_0x5f57('0x36')](_0x52aadf,{'startRow':0x0,'column':_0x1f78d0,'includeAllSlots':!0x1}),_0x5b8a3b=Array[_0x5f57('0x1c')](_0x3b5e0c)[_0x5f57('0x4e')](_0x51b7d9=>_0x24e790[_0x5f57('0x4d')](_0x51b7d9[_0x5f57('0x74')]));_0xcd34a6[_0x5f57('0x60')](_0x5b8a3b,_0x5f57('0x75'));});});}for(const _0x1400a3 of[_0x5f57('0x6a'),_0x5f57('0x52')]){const _0x4faf39=_0x1400a3[_0x5f57('0x6e')](0xb),_0x3a1600=_0x4faf39['toLowerCase'](),_0x4825bb=_0x3a1600[_0x5f57('0x6e')](0x0,0x3)+_0x5f57('0x71'),_0xfec83a=_0x5f57('0x4a')+_0x4faf39,_0x48dfe1='min'+_0x4faf39,_0x5a7d6b=_0x5f57('0x62')+_0x4faf39;_0xcd34a6['enableCommand'](_0x1400a3,()=>{_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x7d')](_0x2ff404=>{const _0x3cf0cf=_0x4a90e5[_0x5f57('0x24')](_0x4bc162),_0x1c799d=_0x3cf0cf[0x0][_0x5f57('0x5a')](_0x5f57('0x4a'));let _0x53e5e2;if(_0x5f57('0x6a')==_0x1400a3){const _0x4a8af8=_0x4a90e5[_0x5f57('0x21')](_0x3cf0cf);_0x53e5e2={'startRow':_0x4a8af8['first'],'endRow':_0x4a8af8[_0x5f57('0x59')],'includeAllSlots':!0x0};}else{const _0x406ece=_0x4a90e5[_0x5f57('0x48')](_0x3cf0cf);_0x53e5e2={'startColumn':_0x406ece[_0x5f57('0xc')],'endColumn':_0x406ece[_0x5f57('0x59')],'includeAllSlots':!0x0};}const _0x2aa7e2=_0x4a90e5[_0x5f57('0x36')](_0x1c799d,_0x53e5e2),_0x95abe=Array[_0x5f57('0x1c')](_0x2aa7e2)['map'](({cell:_0x1d8106})=>_0x1d8106),_0x504f40=se(_0x95abe[_0x5f57('0x2')](_0x244a11=>_0x244a11[_0x5f57('0x27')](_0x4825bb))),_0xbcb427=se(_0x95abe[_0x5f57('0x2')](_0x585818=>!_0x585818[_0x5f57('0x27')](_0x4825bb)))[_0x5f57('0x4e')](_0xb72c0b=>_0x2ff404[_0x5f57('0x4d')](_0xb72c0b)),_0x28a332=_0xcd34a6['markMultiRangeDeletion'](_0xbcb427,_0xfec83a);if(_0x28a332&&(_0x5f57('0x3e')==_0x28a332[_0x5f57('0x78')]||_0x5f57('0x75')==_0x28a332['subType'])){const _0x45b88d=this[_0x5f57('0x31')](_0x28a332);for(const _0x5b4596 of _0x504f40){const _0x2a362a=_0x2ff404['createRangeOn'](_0x5b4596),_0x21147c=_0x4a90e5[_0x5f57('0x4c')](_0x5b4596),_0x2b1cd7=_0x5b4596[_0x5f57('0x76')](_0x4825bb)-0x1,_0x525cbc=_0x45b88d[_0x48dfe1],_0x18e145=_0x45b88d[_0x5a7d6b];_0x525cbc<=_0x21147c[_0x3a1600]&&_0x21147c[_0x3a1600]+_0x2b1cd7<=_0x18e145&&_0x28a332['addRange'](_0x2a362a);}}});});}function _0x2da1d8(_0x12d3f3){const _0x116ce0=Array['from'](_0x4bc162[_0x5f57('0x23')]())[_0x5f57('0x4e')](_0x883d68=>_0x2faa42['fromRange'](_0x883d68));_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x7d')](_0xff9b6f=>{const _0x5c70b3=_0xff9b6f[_0x5f57('0x4b')];_0x12d3f3=_0x12d3f3[_0x5f57('0x2')](_0x2dcb24=>_0x5f57('0x77')!=_0x2dcb24[_0x5f57('0xe')]['rootName']),_0xff9b6f['setSelection'](_0x12d3f3),_0x5a3aba[_0x5f57('0x5')][_0x5f57('0x5f')](_0x5f57('0x6a'))[_0x5f57('0x7a')](),_0x5a3aba['execute'](_0x5f57('0x6a'),{'forceDefaultExecution':!0x0}),_0x5a3aba[_0x5f57('0x7')]['enqueueChange'](()=>{_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x3d')](_0x5c70b3,_0x35d711=>{const _0x2ec242=_0x116ce0[_0x5f57('0x2')](_0x276f6e=>'$graveyard'!=_0x276f6e['root'][_0x5f57('0x14')]);_0x2ec242[_0x5f57('0xf')]>0x0&&_0x35d711[_0x5f57('0x39')](_0x2ec242);for(const _0x2f43d7 of _0x116ce0)_0x2f43d7[_0x5f57('0x68')]();});});});}function _0x442d31(_0x4b1d94){_0x5a3aba[_0x5f57('0x7')]['change'](_0x190aeb=>{const _0x1daad2=Array[_0x5f57('0x1c')](_0x4bc162[_0x5f57('0x23')]())['map'](_0x205905=>_0x2faa42[_0x5f57('0x2b')](_0x205905)),_0x300e58=[];for(const _0x215215 of _0x4b1d94)for(const _0x437f27 of _0x215215['getItems']({'shallow':!0x0}))_0x300e58['push'](_0x437f27);for(const _0x8b6d18 of _0x300e58)'$graveyard'!=_0x8b6d18[_0x5f57('0xe')][_0x5f57('0x14')]&&(_0x190aeb[_0x5f57('0x39')](_0x190aeb[_0x5f57('0x1a')](_0x8b6d18,0x0)),_0x5a3aba[_0x5f57('0x5')][_0x5f57('0x5f')]('removeTableColumn')[_0x5f57('0x7a')](),_0x5a3aba['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x18472d=_0x1daad2[_0x5f57('0x2')](_0x475617=>'$graveyard'!=_0x475617[_0x5f57('0xe')][_0x5f57('0x14')]);_0x18472d[_0x5f57('0xf')]>0x0&&_0x190aeb['setSelection'](_0x18472d);for(const _0xbab0af of _0x1daad2)_0xbab0af[_0x5f57('0x68')]();});}function _0x1556fc(_0x523ef8,_0x189baf){return _0x189baf[_0x5f57('0x26')](_0xe1c8a8=>_0x523ef8[_0x5f57('0x54')](_0x55c3fc=>_0x55c3fc['end'][_0x5f57('0x5e')](_0xe1c8a8[_0x5f57('0x3')])||_0xe1c8a8[_0x5f57('0x6d')][_0x5f57('0x5e')](_0x55c3fc[_0x5f57('0x3')])));}function _0x589b39(_0x209b0d,_0x336605){return _0x209b0d[_0x5f57('0x54')](_0x25e4bc=>_0x336605[_0x5f57('0x54')](_0x25f3ae=>_0x25e4bc['end'][_0x5f57('0x22')](_0x25f3ae[_0x5f57('0x3')])));}_0x5a3aba[_0x5f57('0x1b')][_0x5f57('0x38')]['on'](_0x5f57('0x40'),(_0x9da9ad,_0x4b64cc,_0x31ccd4)=>{if(!_0x31ccd4[_0x5f57('0x1f')]['showSuggestionHighlights'])return;const _0x4149c6=_0x4b64cc[_0x5f57('0xa')];if(!_0x4149c6)return;const _0x23d92b=_0x31ccd4[_0x5f57('0x6f')][_0x5f57('0x19')](_0x4149c6);function _0x1ced6f(_0x3f8120){return Array[_0x5f57('0x29')](_0x3f8120)?_0x3f8120:[_0x3f8120];}_0x23d92b&&_0x5f57('0x6b')===_0x4149c6[_0x5f57('0x5d')]&&_0x104ca5(_0x23d92b,_0x31ccd4[_0x5f57('0x5c')],(_0x57eeb0,_0x2c2b9f,_0x292644)=>_0x292644[_0x5f57('0x0')](_0x1ced6f(_0x2c2b9f['classes']),_0x57eeb0),(_0x1c3dba,_0x4471af,_0x16c9c6)=>_0x16c9c6[_0x5f57('0x7b')](_0x1ced6f(_0x4471af['classes']),_0x1c3dba));},{'priority':_0x5f57('0x58')}),_0xcd34a6[_0x5f57('0x17')][_0x5f57('0x64')](_0x1c2bdf=>{if('insertion'!=_0x1c2bdf[_0x5f57('0x50')]&&_0x5f57('0x67')!=_0x1c2bdf['type'])return;const _0x53725d=_0x1c2bdf[_0x5f57('0x81')]();if(null!=_0x53725d&&_0x53725d['is'](_0x5f57('0x9'),_0x5f57('0x4a'))){if(_0x5f57('0x69')==_0x1c2bdf[_0x5f57('0x50')]){const _0x201db7=_0x1c2bdf[_0x5f57('0x1e')]()[_0x5f57('0x2')](_0x55b6c0=>_0x55b6c0['is'](_0x5f57('0x3c')))['map'](_0x53b5ff=>_0x53b5ff[_0x5f57('0x1b')]);if(_0x201db7[_0x5f57('0xf')])return{'type':_0x5f57('0x69'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x201db7['join']('\x20')+'\x22'))};}if(_0x5f57('0x67')==_0x1c2bdf[_0x5f57('0x50')]){const _0x4e8e99=_0x1c2bdf[_0x5f57('0x1e')]()[_0x5f57('0x2')](_0x7dcefd=>_0x7dcefd['is'](_0x5f57('0x3c')))[_0x5f57('0x4e')](_0x58f016=>_0x58f016[_0x5f57('0x1b')]);if(_0x4e8e99['length'])return{'type':'deletion','content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,_0x5f57('0x2f'),'\x22'+_0x4e8e99[_0x5f57('0x51')]('\x20')+'\x22'))};}}}),_0xcd34a6[_0x5f57('0x17')][_0x5f57('0x64')](_0x49c726=>{if('tableRow'==_0x49c726[_0x5f57('0x78')]){const _0x21898f=_0x49c726[_0x5f57('0x1e')]()['filter'](_0x54720a=>_0x54720a['is'](_0x5f57('0x3c')))[_0x5f57('0x4e')](_0xb92ac5=>_0xb92ac5[_0x5f57('0x1b')]),_0x330ef5=this['_getSuggestionCoords'](_0x49c726),_0x41dd69=_0x330ef5[_0x5f57('0x16')]-_0x330ef5[_0x5f57('0x5b')]+0x1;if(_0x5f57('0x69')==_0x49c726[_0x5f57('0x50')])return _0x21898f[_0x5f57('0xf')]?{'type':'insertion','content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41dd69,'\x22'+_0x21898f[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':_0x5f57('0x69'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,_0x5f57('0x49'),_0x41dd69))};if(_0x5f57('0x67')==_0x49c726[_0x5f57('0x50')])return _0x21898f['length']?{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41dd69,'\x22'+_0x21898f[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,_0x5f57('0x49'),_0x41dd69))};}if(_0x5f57('0x75')==_0x49c726[_0x5f57('0x78')]){const _0x2f1b67=_0x49c726[_0x5f57('0x1e')]()['filter'](_0x5ecb39=>_0x5ecb39['is'](_0x5f57('0x3c')))[_0x5f57('0x4e')](_0x3c7157=>_0x3c7157['data']),_0x3f9249=this[_0x5f57('0x31')](_0x49c726),_0x3775e5=_0x3f9249['maxColumn']-_0x3f9249['minColumn']+0x1;if('insertion'==_0x49c726[_0x5f57('0x50')])return _0x2f1b67[_0x5f57('0xf')]?{'type':'insertion','content':_0x3e4497(_0x4f17de,'*Insert:*\x20%0',_0x3e4497(_0x4f17de,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3775e5,'\x22'+_0x2f1b67[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,_0x5f57('0x43'),_0x3775e5))};if(_0x5f57('0x67')==_0x49c726[_0x5f57('0x50')])return _0x2f1b67[_0x5f57('0xf')]?{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,_0x5f57('0xd'),[_0x3775e5,'\x22'+_0x2f1b67[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_COLUMN',_0x3775e5))};}}),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x69'),_0x5f57('0x3e'),_0x5f57('0x1'),_0x2da1d8),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback']('deletion',_0x5f57('0x3e'),_0x5f57('0x2a'),_0x2da1d8),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x69'),'tableColumn',_0x5f57('0x1'),_0x442d31),_0xcd34a6['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f57('0x75'),_0x5f57('0x2a'),_0x442d31),_0xcd34a6[_0x5f57('0x15')][_0x5f57('0x4f')](_0x5f57('0x69'),_0x5f57('0x75'),_0x5f57('0x51'),_0x1556fc),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x67'),_0x5f57('0x75'),_0x5f57('0x51'),_0x1556fc),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x69'),_0x5f57('0x3e'),'join',_0x589b39),_0xcd34a6[_0x5f57('0x15')][_0x5f57('0x4f')]('deletion','tableRow','join',_0x589b39);}['_acceptFormatSuggestionCallbackFactory'](){const _0x52f0ae=this[_0x5f57('0x11')],_0x166131=_0x52f0ae[_0x5f57('0x7')]['document'][_0x5f57('0x44')];return(_0x96c944,_0x579bc5)=>{_0x52f0ae[_0x5f57('0x7')]['change'](_0x2bdb2d=>{const {commandName:_0xd04c9e,commandParams:_0x22f4a2}=_0x579bc5;let _0x1acf1c=_0x96c944[0x0][_0x5f57('0x6d')][_0x5f57('0x65')];_0x22f4a2&&_0x22f4a2[0x0]&&!0x1===_0x22f4a2[0x0]['forceValue']&&(_0x1acf1c=_0x96c944[0x0]['start'][_0x5f57('0x3a')]);const _0xd38998=_0x2bdb2d[_0x5f57('0x32')](_0x1acf1c);if(_0x5f57('0x77')==_0xd38998['root'][_0x5f57('0x14')])return;const _0x5be059=Array[_0x5f57('0x1c')](_0x166131[_0x5f57('0x23')]())[_0x5f57('0x4e')](_0x5c34fa=>_0x2faa42[_0x5f57('0x2b')](_0x5c34fa));_0x2bdb2d[_0x5f57('0x39')](_0xd38998),_0x52f0ae[_0x5f57('0x5')][_0x5f57('0x5f')](_0xd04c9e)[_0x5f57('0x7a')](),_0x22f4a2['push']({'forceDefaultExecution':!0x0}),_0x52f0ae['execute'](_0xd04c9e,..._0x22f4a2);const _0x50d69e=_0x5be059[_0x5f57('0x2')](_0x599026=>_0x5f57('0x77')!=_0x599026[_0x5f57('0xe')]['rootName']);_0x50d69e[_0x5f57('0xf')]>0x0&&_0x2bdb2d[_0x5f57('0x39')](_0x50d69e);for(const _0x34c728 of _0x5be059)_0x34c728[_0x5f57('0x68')]();});};}[_0x5f57('0x53')](_0x5ca5c9){const _0x41a77b=this[_0x5f57('0x11')][_0x5f57('0x35')][_0x5f57('0x5f')](_0x5f57('0x73'));let _0x5d0367=Number[_0x5f57('0x1d')],_0x474053=Number[_0x5f57('0x72')],_0x4e3f7c=Number['MAX_SAFE_INTEGER'],_0x349db8=Number[_0x5f57('0x72')];for(const _0x484ff4 of _0x5ca5c9){if(_0x5f57('0x77')==_0x484ff4[_0x5f57('0xe')]['rootName'])continue;const {row:_0x48ebdd,column:_0x3b3668}=_0x41a77b[_0x5f57('0x4c')](_0x484ff4),_0x953dab=_0x484ff4[_0x5f57('0x27')]('rowspan')?_0x484ff4['getAttribute'](_0x5f57('0x63'))-0x1:0x0,_0x324f0b=_0x484ff4[_0x5f57('0x27')](_0x5f57('0x7e'))?_0x484ff4[_0x5f57('0x76')](_0x5f57('0x7e'))-0x1:0x0;_0x5d0367=_0x48ebdd<_0x5d0367?_0x48ebdd:_0x5d0367,_0x474053=_0x48ebdd+_0x953dab>_0x474053?_0x48ebdd+_0x953dab:_0x474053,_0x4e3f7c=_0x3b3668<_0x4e3f7c?_0x3b3668:_0x4e3f7c,_0x349db8=_0x3b3668+_0x324f0b>_0x349db8?_0x3b3668+_0x324f0b:_0x349db8;}return{'minRow':_0x5d0367,'maxRow':_0x474053,'minColumn':_0x4e3f7c,'maxColumn':_0x349db8};}[_0x5f57('0x41')](){const _0x4ba37b=this[_0x5f57('0x11')],_0x14585c=_0x4ba37b[_0x5f57('0x35')][_0x5f57('0x5f')](_0x5f57('0x2d')),_0x3a04b0=_0x4ba37b['plugins'][_0x5f57('0x5f')](_0x5f57('0x73'));_0x4ba37b['model'][_0x5f57('0x56')]['on'](_0x5f57('0x46'),()=>{const _0x59db60=Array['from'](_0x4ba37b[_0x5f57('0x7')]['document'][_0x5f57('0x6')][_0x5f57('0x37')]());for(const {name:_0x1fa1f5,data:_0x3cffe6}of _0x59db60){const {group:_0x1445ad,id:_0x4952d6,subType:_0x3300a0}=_0x14585c[_0x5f57('0x34')](_0x1fa1f5);if('suggestion'!=_0x1445ad)continue;if(null!=_0x3cffe6[_0x5f57('0x6c')])continue;const _0x35a29d=_0x14585c['getSuggestion'](_0x4952d6);this[_0x5f57('0x2c')][_0x5f57('0x3b')](_0x3300a0)&&this['_tableSuggestions'][_0x5f57('0x12')](_0x35a29d);}},{'priority':'low'});const _0x3e05f6=(_0x1486d8,_0x1823de)=>{let _0x33075d=!0x1;const _0x428c04=_0x1823de[_0x5f57('0x4d')](_0x1486d8),_0x456d3e=_0x1486d8[_0x5f57('0x5a')]('table'),_0x2c8d9b=_0x3a04b0[_0x5f57('0x4c')](_0x1486d8);for(const _0x45b10d of this[_0x5f57('0x20')]){const _0x488ef6=_0x45b10d['subType'],_0x139226=_0x488ef6[_0x5f57('0x45')](_0x5f57('0x79')),_0x30f7a7=_0x488ef6[_0x5f57('0x6e')](_0x139226?0xa:0x5),_0x1f3a16=_0x30f7a7[_0x5f57('0x3f')](),_0x3f9ab3=_0x1f3a16[_0x5f57('0x6e')](0x0,0x3)+'span',_0x443973='min'+_0x30f7a7,_0x2ca2d2=_0x5f57('0x62')+_0x30f7a7;if(!_0x45b10d[_0x5f57('0x61')])continue;if(_0x456d3e!=_0x45b10d[_0x5f57('0x57')]()['start'][_0x5f57('0x5a')](_0x5f57('0x4a')))continue;if(_0x45b10d['isIntersectingWithRange'](_0x428c04))continue;const _0x31759c=_0x1486d8['hasAttribute'](_0x3f9ab3)?_0x1486d8[_0x5f57('0x76')](_0x3f9ab3)-0x1:0x0,_0x5eacf0=this['_getSuggestionCoords'](_0x45b10d),_0x4c99ee=_0x5eacf0[_0x443973],_0x2ac70e=_0x5eacf0[_0x2ca2d2];_0x4c99ee<=_0x2c8d9b[_0x1f3a16]&&_0x2c8d9b[_0x1f3a16]+_0x31759c<=_0x2ac70e&&(_0x45b10d['addRange'](_0x428c04),_0x33075d=!0x0);}return _0x33075d;};_0x4ba37b['model'][_0x5f57('0x56')]['registerPostFixer'](_0x550a0d=>{let _0x53da0d=!0x1;for(const _0x3e2074 of _0x4ba37b[_0x5f57('0x7')][_0x5f57('0x56')]['differ'][_0x5f57('0x7f')]())if(_0x5f57('0x70')==_0x3e2074[_0x5f57('0x50')]){if(_0x5f57('0x3e')==_0x3e2074[_0x5f57('0x5d')])for(const _0x4212cc of _0x3e2074[_0x5f57('0x25')]['nodeAfter'][_0x5f57('0x13')]())_0x53da0d=_0x53da0d||_0x3e05f6(_0x4212cc,_0x550a0d);else _0x5f57('0x6b')==_0x3e2074[_0x5f57('0x5d')]&&(_0x53da0d=_0x53da0d||_0x3e05f6(_0x3e2074[_0x5f57('0x25')]['nodeAfter'],_0x550a0d));}return _0x53da0d;});}[_0x5f57('0x31')](_0xfb4a86){return this[_0x5f57('0x53')](_0xfb4a86[_0x5f57('0x23')]()[_0x5f57('0x4e')](_0x28d033=>_0x28d033[_0x5f57('0x3')]['nodeAfter']));}}function se(_0x4e52d0){return Array[_0x5f57('0x1c')](new Set(_0x4e52d0)['values']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5248=['enableCommand','TrackChangesEditing','plugins','toggleTableCaption','has','requires','TableCaptionEditing','afterInit'];(function(_0x1fc553,_0x524800){const _0x11d3ca=function(_0x4d28a9){while(--_0x4d28a9){_0x1fc553['push'](_0x1fc553['shift']());}};_0x11d3ca(++_0x524800);}(_0x5248,0xe9));const _0x11d3=function(_0x1fc553,_0x524800){_0x1fc553=_0x1fc553-0x0;let _0x11d3ca=_0x5248[_0x1fc553];return _0x11d3ca;};import{Plugin as _0x37e216}from'ckeditor5/src/core';import _0x8dde9a from'./table';export default class vt extends _0x37e216{static get[_0x11d3('0x4')](){return[_0x8dde9a];}[_0x11d3('0x6')](){const _0x36cbd7=this['editor'];if(!_0x36cbd7[_0x11d3('0x1')][_0x11d3('0x3')](_0x11d3('0x5')))return;_0x36cbd7[_0x11d3('0x1')]['get'](_0x11d3('0x0'))[_0x11d3('0x7')](_0x11d3('0x2'));}}
|