@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230908.0 → 0.0.0-nightly-20230910.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 _0xc8f6=['createPositionAt','markMultiRangeDeletion','classes','map','registerPostFixer','tableCell','isIntersectingWithRange','getSelectionAffectedTableCells','registerDescriptionCallback','get','_tableSuggestions','removeTableColumn','_getSuggestionCoords','locale','toViewElement','low','oldRange','document','nodeAfter','push','root','createRangeOn','selection','MAX_SAFE_INTEGER','ELEMENT_TABLE_WITH_TEXT','_suggestionFactory','differ','TableEditing','options','_tablePostFixingSubtypes','enableCommand','markMultiRangeInsertion','deletion','writer','_descriptionFactory','subType','getChanges','ELEMENT_TABLE_ROW_WITH_TEXT','startsWith','rootName','includes','name','isEqual','data','ELEMENT_TABLE','isArray','insert','_splitMarkerName','ELEMENT_TABLE_COLUMN_WITH_TEXT','some','ELEMENT_TABLE_ROW','removeTableRow','getSuggestion','isInContent','min','showSuggestionHighlights','end','getChildren','insertion','max','getChangedMarkers','colspan','start','getCellLocation','getItems','*Insert:*\x20%0','maxColumn','commands','getAttribute','fromRange','_setupColumnsRowsFixing','removeClass','span','hasAttribute','registerElementLabel','length','rowspan','model','_getCoordsForCells','getRanges','enqueueChange','values','batch','plugins','discard','addRange','*Remove:*\x20%0','refresh','maxRow','insertTable','TrackChangesEditing','execute','selectTableColumn','minRow','item','getRowIndexes','substr','editor','getColumnIndexes','afterInit','$graveyard','change:data','has','ELEMENT_TABLE_COLUMN','every','MIN_SAFE_INTEGER','change','minColumn','isTouching','first','$textProxy','TableUtils','position','mapper','accept','registerCustomCallback','type','insertTableColumnRight','_acceptFormatSuggestionCallbackFactory','tablePaste','add','filter','forceValue','suggestion','tableRow','table','createRangeIn','tableColumn','getContainedElement','join','getFirstRange','insertTableRowBelow','downcastDispatcher','detach','setSelection','findAncestor','createTableWalker','last','from','highest','order'];(function(_0x3c4647,_0xc8f667){const _0x5a753b=function(_0x20de2c){while(--_0x20de2c){_0x3c4647['push'](_0x3c4647['shift']());}};_0x5a753b(++_0xc8f667);}(_0xc8f6,0x161));const _0x5a75=function(_0x3c4647,_0xc8f667){_0x3c4647=_0x3c4647-0x0;let _0x5a753b=_0xc8f6[_0x3c4647];return _0x5a753b;};import{Plugin as _0x5225e2}from'ckeditor5/src/core';import{LiveRange as _0x44849a}from'ckeditor5/src/engine';import{setHighlightHandling as _0x43502e}from'ckeditor5/src/widget';import{getTranslation as _0x29cafb}from'../utils/common-translations';export default class mt extends _0x5225e2{constructor(_0x2761f9){super(_0x2761f9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this[_0x5a75('0x50')]=new Set();}[_0x5a75('0x1c')](){const _0x5235d1=this[_0x5a75('0x1a')],_0x4a93f7=_0x5235d1[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x5c')];if(!_0x5235d1['plugins'][_0x5a75('0x1f')](_0x5a75('0x61')))return;const _0x211a8b=_0x5235d1[_0x5a75('0x53')],_0x630e3d=_0x5235d1['plugins'][_0x5a75('0x4f')](_0x5a75('0x13')),_0x291c1f=_0x5235d1[_0x5a75('0xc')][_0x5a75('0x4f')](_0x5a75('0x28'));_0x630e3d[_0x5a75('0x68')][_0x5a75('0x3')](_0x5a75('0x36'),_0xe1369f=>_0x29cafb(_0x211a8b,_0x5a75('0x72'),_0xe1369f)),this[_0x5a75('0x8c')](),_0x630e3d[_0x5a75('0x64')](_0x5a75('0x12')),_0x630e3d[_0x5a75('0x64')]('selectTableRow'),_0x630e3d[_0x5a75('0x64')](_0x5a75('0x15'));for(const _0xdeb9db of['insertTableRowAbove',_0x5a75('0x3c')]){const _0x491832=_0x5235d1[_0x5a75('0x89')][_0x5a75('0x4f')](_0xdeb9db);_0x630e3d[_0x5a75('0x64')](_0xdeb9db,_0x3ddaa3=>{_0x5235d1[_0x5a75('0x6')]['change'](_0x4bffd7=>{_0x3ddaa3();const _0x5e777e='above'===_0x491832[_0x5a75('0x45')],_0xf38861=_0x291c1f[_0x5a75('0x4d')](_0x4a93f7),_0x2cf550=_0x291c1f[_0x5a75('0x18')](_0xf38861),_0x4848f4=_0x5e777e?_0x2cf550['first']-0x1:_0x2cf550[_0x5a75('0x42')]+0x1,_0x151af1=_0xf38861[0x0][_0x5a75('0x40')]('table'),_0x2d9f16=_0x291c1f[_0x5a75('0x41')](_0x151af1,{'startRow':_0x4848f4,'endRow':_0x4848f4}),_0x3179b2=Array[_0x5a75('0x43')](_0x2d9f16)[_0x5a75('0x49')](_0x4105cf=>_0x4bffd7[_0x5a75('0x5b')](_0x4105cf['cell']));_0x630e3d[_0x5a75('0x65')](_0x3179b2,'tableRow');});});}for(const _0x4eae51 of['insertTableColumnLeft',_0x5a75('0x2e')]){const _0x19e1c8=_0x5235d1[_0x5a75('0x89')][_0x5a75('0x4f')](_0x4eae51);_0x630e3d[_0x5a75('0x64')](_0x4eae51,_0x4e704e=>{_0x5235d1['model'][_0x5a75('0x23')](_0x5de50d=>{_0x4e704e();const _0x468e1b='left'===_0x19e1c8[_0x5a75('0x45')],_0x32d55f=_0x291c1f['getSelectionAffectedTableCells'](_0x4a93f7),_0x12988b=_0x291c1f[_0x5a75('0x1b')](_0x32d55f),_0xa74db6=_0x468e1b?_0x12988b[_0x5a75('0x26')]-0x1:_0x12988b['last']+0x1,_0x21bd6e=_0x32d55f[0x0][_0x5a75('0x40')]('table'),_0x5dbcad=_0x291c1f[_0x5a75('0x41')](_0x21bd6e,{'startRow':0x0,'column':_0xa74db6,'includeAllSlots':!0x1}),_0xfa552d=Array['from'](_0x5dbcad)[_0x5a75('0x49')](_0x3dfd8c=>_0x5de50d[_0x5a75('0x5b')](_0x3dfd8c['cell']));_0x630e3d[_0x5a75('0x65')](_0xfa552d,'tableColumn');});});}for(const _0x4a2ea7 of[_0x5a75('0x79'),_0x5a75('0x51')]){const _0x5d34e9=_0x4a2ea7[_0x5a75('0x19')](0xb),_0x19b6e4=_0x5d34e9['toLowerCase'](),_0x431e79=_0x19b6e4[_0x5a75('0x19')](0x0,0x3)+_0x5a75('0x1'),_0x131a3e=_0x5a75('0x36')+_0x5d34e9,_0x4a33bc='min'+_0x5d34e9,_0x4b1a18='max'+_0x5d34e9;_0x630e3d[_0x5a75('0x64')](_0x4a2ea7,()=>{_0x5235d1['model'][_0x5a75('0x23')](_0x1f64a=>{const _0x2d3440=_0x291c1f[_0x5a75('0x4d')](_0x4a93f7),_0x35c957=_0x2d3440[0x0]['findAncestor'](_0x5a75('0x36'));let _0x3962fc;if(_0x5a75('0x79')==_0x4a2ea7){const _0x4dbc33=_0x291c1f[_0x5a75('0x18')](_0x2d3440);_0x3962fc={'startRow':_0x4dbc33[_0x5a75('0x26')],'endRow':_0x4dbc33[_0x5a75('0x42')],'includeAllSlots':!0x0};}else{const _0x422259=_0x291c1f[_0x5a75('0x1b')](_0x2d3440);_0x3962fc={'startColumn':_0x422259[_0x5a75('0x26')],'endColumn':_0x422259[_0x5a75('0x42')],'includeAllSlots':!0x0};}const _0x1ad9a9=_0x291c1f[_0x5a75('0x41')](_0x35c957,_0x3962fc),_0x21d4b1=Array[_0x5a75('0x43')](_0x1ad9a9)[_0x5a75('0x49')](({cell:_0x2d89fd})=>_0x2d89fd),_0x572de4=se(_0x21d4b1[_0x5a75('0x32')](_0x8a7c0d=>_0x8a7c0d['hasAttribute'](_0x431e79))),_0x3f76ac=se(_0x21d4b1[_0x5a75('0x32')](_0x1a9706=>!_0x1a9706['hasAttribute'](_0x431e79)))[_0x5a75('0x49')](_0x24d551=>_0x1f64a[_0x5a75('0x5b')](_0x24d551)),_0xa26014=_0x630e3d[_0x5a75('0x47')](_0x3f76ac,_0x131a3e);if(_0xa26014&&('tableRow'==_0xa26014[_0x5a75('0x69')]||_0x5a75('0x38')==_0xa26014[_0x5a75('0x69')])){const _0x43901b=this[_0x5a75('0x52')](_0xa26014);for(const _0x4c91ea of _0x572de4){const _0x370a9a=_0x1f64a[_0x5a75('0x5b')](_0x4c91ea),_0x18a0d1=_0x291c1f[_0x5a75('0x85')](_0x4c91ea),_0x330556=_0x4c91ea[_0x5a75('0x8a')](_0x431e79)-0x1,_0x3d7e31=_0x43901b[_0x4a33bc],_0x4483b7=_0x43901b[_0x4b1a18];_0x3d7e31<=_0x18a0d1[_0x19b6e4]&&_0x18a0d1[_0x19b6e4]+_0x330556<=_0x4483b7&&_0xa26014[_0x5a75('0xe')](_0x370a9a);}}});});}function _0x12eccf(_0x121c20){const _0x21955c=Array['from'](_0x4a93f7[_0x5a75('0x8')]())[_0x5a75('0x49')](_0xf422ce=>_0x44849a[_0x5a75('0x8b')](_0xf422ce));_0x5235d1['model'][_0x5a75('0x23')](_0x2e5565=>{const _0x40be58=_0x2e5565[_0x5a75('0xb')];_0x121c20=_0x121c20[_0x5a75('0x32')](_0x509da6=>_0x5a75('0x1d')!=_0x509da6[_0x5a75('0x5a')][_0x5a75('0x6d')]),_0x2e5565[_0x5a75('0x3f')](_0x121c20),_0x5235d1[_0x5a75('0x89')][_0x5a75('0x4f')](_0x5a75('0x79'))[_0x5a75('0x10')](),_0x5235d1[_0x5a75('0x14')](_0x5a75('0x79'),{'forceDefaultExecution':!0x0}),_0x5235d1[_0x5a75('0x6')][_0x5a75('0x9')](()=>{_0x5235d1['model'][_0x5a75('0x9')](_0x40be58,_0x51d2eb=>{const _0x30852b=_0x21955c[_0x5a75('0x32')](_0x2e2fc6=>'$graveyard'!=_0x2e2fc6[_0x5a75('0x5a')][_0x5a75('0x6d')]);_0x30852b['length']>0x0&&_0x51d2eb[_0x5a75('0x3f')](_0x30852b);for(const _0xc8751 of _0x21955c)_0xc8751[_0x5a75('0x3e')]();});});});}function _0x41e81e(_0x30989e){_0x5235d1[_0x5a75('0x6')]['change'](_0x4cd5b4=>{const _0x1b61b9=Array['from'](_0x4a93f7['getRanges']())['map'](_0xbbbe49=>_0x44849a[_0x5a75('0x8b')](_0xbbbe49)),_0x4f592d=[];for(const _0x4924eb of _0x30989e)for(const _0x4988f6 of _0x4924eb[_0x5a75('0x86')]({'shallow':!0x0}))_0x4f592d[_0x5a75('0x59')](_0x4988f6);for(const _0x1ce13a of _0x4f592d)_0x5a75('0x1d')!=_0x1ce13a[_0x5a75('0x5a')][_0x5a75('0x6d')]&&(_0x4cd5b4['setSelection'](_0x4cd5b4[_0x5a75('0x46')](_0x1ce13a,0x0)),_0x5235d1[_0x5a75('0x89')]['get']('removeTableColumn')[_0x5a75('0x10')](),_0x5235d1[_0x5a75('0x14')](_0x5a75('0x51'),{'forceDefaultExecution':!0x0}));const _0x14fc66=_0x1b61b9[_0x5a75('0x32')](_0x3ee915=>_0x5a75('0x1d')!=_0x3ee915[_0x5a75('0x5a')][_0x5a75('0x6d')]);_0x14fc66[_0x5a75('0x4')]>0x0&&_0x4cd5b4[_0x5a75('0x3f')](_0x14fc66);for(const _0x55964b of _0x1b61b9)_0x55964b[_0x5a75('0x3e')]();});}function _0x1595ac(_0x2f8870,_0x2438dc){return _0x2438dc[_0x5a75('0x21')](_0x550681=>_0x2f8870[_0x5a75('0x77')](_0x461675=>_0x461675[_0x5a75('0x7e')][_0x5a75('0x70')](_0x550681[_0x5a75('0x84')])||_0x550681['end'][_0x5a75('0x70')](_0x461675[_0x5a75('0x84')])));}function _0x58612e(_0x38ddf1,_0x1c654b){return _0x38ddf1['some'](_0x13f267=>_0x1c654b['some'](_0x266769=>_0x13f267[_0x5a75('0x7e')][_0x5a75('0x25')](_0x266769[_0x5a75('0x84')])));}_0x5235d1[_0x5a75('0x71')][_0x5a75('0x3d')]['on']('addMarker:suggestion',(_0x511d17,_0x51d76c,_0x86ab43)=>{if(!_0x86ab43[_0x5a75('0x62')][_0x5a75('0x7d')])return;const _0x1dddc0=_0x51d76c[_0x5a75('0x17')];if(!_0x1dddc0)return;const _0x29545d=_0x86ab43[_0x5a75('0x2a')][_0x5a75('0x54')](_0x1dddc0);function _0x409038(_0x1f32a4){return Array[_0x5a75('0x73')](_0x1f32a4)?_0x1f32a4:[_0x1f32a4];}_0x29545d&&_0x5a75('0x4b')===_0x1dddc0[_0x5a75('0x6f')]&&_0x43502e(_0x29545d,_0x86ab43[_0x5a75('0x67')],(_0x2a013d,_0x323736,_0x2842f1)=>_0x2842f1['addClass'](_0x409038(_0x323736['classes']),_0x2a013d),(_0x532d16,_0x5c7927,_0xeb5338)=>_0xeb5338[_0x5a75('0x0')](_0x409038(_0x5c7927[_0x5a75('0x48')]),_0x532d16));},{'priority':_0x5a75('0x44')}),_0x630e3d[_0x5a75('0x68')][_0x5a75('0x4e')](_0x5a8774=>{if('insertion'!=_0x5a8774['type']&&_0x5a75('0x66')!=_0x5a8774['type'])return;const _0xa244cf=_0x5a8774[_0x5a75('0x39')]();if(null!=_0xa244cf&&_0xa244cf['is']('element',_0x5a75('0x36'))){if(_0x5a75('0x80')==_0x5a8774[_0x5a75('0x2d')]){const _0x1a82da=_0x5a8774[_0x5a75('0x86')]()[_0x5a75('0x32')](_0x52cf00=>_0x52cf00['is'](_0x5a75('0x27')))['map'](_0xab71fa=>_0xab71fa[_0x5a75('0x71')]);if(_0x1a82da[_0x5a75('0x4')])return{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x5e'),'\x22'+_0x1a82da['join']('\x20')+'\x22'))};}if(_0x5a75('0x66')==_0x5a8774['type']){const _0x25f473=_0x5a8774[_0x5a75('0x86')]()[_0x5a75('0x32')](_0x35bb8a=>_0x35bb8a['is'](_0x5a75('0x27')))['map'](_0x1a01cd=>_0x1a01cd['data']);if(_0x25f473['length'])return{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,_0x5a75('0xf'),_0x29cafb(_0x211a8b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x25f473['join']('\x20')+'\x22'))};}}}),_0x630e3d[_0x5a75('0x68')][_0x5a75('0x4e')](_0x26713f=>{if(_0x5a75('0x35')==_0x26713f[_0x5a75('0x69')]){const _0x56cc1e=_0x26713f['getItems']()['filter'](_0x33f3c9=>_0x33f3c9['is'](_0x5a75('0x27')))[_0x5a75('0x49')](_0x2fb025=>_0x2fb025[_0x5a75('0x71')]),_0x58150f=this[_0x5a75('0x52')](_0x26713f),_0x19c815=_0x58150f[_0x5a75('0x11')]-_0x58150f[_0x5a75('0x16')]+0x1;if(_0x5a75('0x80')==_0x26713f['type'])return _0x56cc1e['length']?{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x6b'),[_0x19c815,'\x22'+_0x56cc1e[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x78'),_0x19c815))};if(_0x5a75('0x66')==_0x26713f[_0x5a75('0x2d')])return _0x56cc1e['length']?{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,'*Remove:*\x20%0',_0x29cafb(_0x211a8b,_0x5a75('0x6b'),[_0x19c815,'\x22'+_0x56cc1e[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x29cafb(_0x211a8b,_0x5a75('0xf'),_0x29cafb(_0x211a8b,_0x5a75('0x78'),_0x19c815))};}if(_0x5a75('0x38')==_0x26713f[_0x5a75('0x69')]){const _0x310167=_0x26713f[_0x5a75('0x86')]()[_0x5a75('0x32')](_0x121084=>_0x121084['is'](_0x5a75('0x27')))['map'](_0x5d0c1c=>_0x5d0c1c[_0x5a75('0x71')]),_0x4f14d5=this[_0x5a75('0x52')](_0x26713f),_0x413f3b=_0x4f14d5[_0x5a75('0x88')]-_0x4f14d5[_0x5a75('0x24')]+0x1;if('insertion'==_0x26713f[_0x5a75('0x2d')])return _0x310167[_0x5a75('0x4')]?{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,'*Insert:*\x20%0',_0x29cafb(_0x211a8b,_0x5a75('0x76'),[_0x413f3b,'\x22'+_0x310167[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x20'),_0x413f3b))};if(_0x5a75('0x66')==_0x26713f['type'])return _0x310167['length']?{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,'*Remove:*\x20%0',_0x29cafb(_0x211a8b,_0x5a75('0x76'),[_0x413f3b,'\x22'+_0x310167[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,_0x5a75('0xf'),_0x29cafb(_0x211a8b,_0x5a75('0x20'),_0x413f3b))};}}),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x80'),_0x5a75('0x35'),_0x5a75('0xd'),_0x12eccf),_0x630e3d[_0x5a75('0x5f')]['registerCustomCallback'](_0x5a75('0x66'),'tableRow',_0x5a75('0x2b'),_0x12eccf),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x80'),'tableColumn',_0x5a75('0xd'),_0x41e81e),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x66'),_0x5a75('0x38'),'accept',_0x41e81e),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')]('insertion',_0x5a75('0x38'),_0x5a75('0x3a'),_0x1595ac),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')]('deletion',_0x5a75('0x38'),_0x5a75('0x3a'),_0x1595ac),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x80'),'tableRow',_0x5a75('0x3a'),_0x58612e),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x66'),'tableRow',_0x5a75('0x3a'),_0x58612e);}[_0x5a75('0x2f')](){const _0x1db72a=this[_0x5a75('0x1a')],_0x8cb236=_0x1db72a[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x5c')];return(_0x21dbe5,_0x4004d3)=>{_0x1db72a[_0x5a75('0x6')][_0x5a75('0x23')](_0x37d065=>{const {commandName:_0x4df84f,commandParams:_0x1bcc5f}=_0x4004d3;let _0x1530d1=_0x21dbe5[0x0][_0x5a75('0x7e')]['nodeBefore'];_0x1bcc5f&&_0x1bcc5f[0x0]&&!0x1===_0x1bcc5f[0x0][_0x5a75('0x33')]&&(_0x1530d1=_0x21dbe5[0x0][_0x5a75('0x84')][_0x5a75('0x58')]);const _0xfccd5a=_0x37d065[_0x5a75('0x37')](_0x1530d1);if(_0x5a75('0x1d')==_0xfccd5a[_0x5a75('0x5a')]['rootName'])return;const _0x3e5230=Array[_0x5a75('0x43')](_0x8cb236[_0x5a75('0x8')]())['map'](_0x857ac3=>_0x44849a['fromRange'](_0x857ac3));_0x37d065[_0x5a75('0x3f')](_0xfccd5a),_0x1db72a[_0x5a75('0x89')][_0x5a75('0x4f')](_0x4df84f)[_0x5a75('0x10')](),_0x1bcc5f[_0x5a75('0x59')]({'forceDefaultExecution':!0x0}),_0x1db72a['execute'](_0x4df84f,..._0x1bcc5f);const _0x5baed5=_0x3e5230[_0x5a75('0x32')](_0x2dabdf=>_0x5a75('0x1d')!=_0x2dabdf['root']['rootName']);_0x5baed5[_0x5a75('0x4')]>0x0&&_0x37d065[_0x5a75('0x3f')](_0x5baed5);for(const _0x52a93f of _0x3e5230)_0x52a93f[_0x5a75('0x3e')]();});};}[_0x5a75('0x7')](_0x30b277){const _0x639a8a=this[_0x5a75('0x1a')][_0x5a75('0xc')]['get'](_0x5a75('0x28'));let _0x574d0c=Number[_0x5a75('0x5d')],_0xee418d=Number[_0x5a75('0x22')],_0x347674=Number[_0x5a75('0x5d')],_0x38b4c0=Number[_0x5a75('0x22')];for(const _0x4fb745 of _0x30b277){if(_0x5a75('0x1d')==_0x4fb745[_0x5a75('0x5a')][_0x5a75('0x6d')])continue;const {row:_0x1c8f7a,column:_0x943790}=_0x639a8a[_0x5a75('0x85')](_0x4fb745),_0xa80b16=_0x4fb745[_0x5a75('0x2')](_0x5a75('0x5'))?_0x4fb745[_0x5a75('0x8a')](_0x5a75('0x5'))-0x1:0x0,_0x1fbfa3=_0x4fb745[_0x5a75('0x2')](_0x5a75('0x83'))?_0x4fb745[_0x5a75('0x8a')](_0x5a75('0x83'))-0x1:0x0;_0x574d0c=_0x1c8f7a<_0x574d0c?_0x1c8f7a:_0x574d0c,_0xee418d=_0x1c8f7a+_0xa80b16>_0xee418d?_0x1c8f7a+_0xa80b16:_0xee418d,_0x347674=_0x943790<_0x347674?_0x943790:_0x347674,_0x38b4c0=_0x943790+_0x1fbfa3>_0x38b4c0?_0x943790+_0x1fbfa3:_0x38b4c0;}return{'minRow':_0x574d0c,'maxRow':_0xee418d,'minColumn':_0x347674,'maxColumn':_0x38b4c0};}[_0x5a75('0x8c')](){const _0x55e9b0=this[_0x5a75('0x1a')],_0x3c291e=_0x55e9b0[_0x5a75('0xc')]['get'](_0x5a75('0x13')),_0x4dcfa0=_0x55e9b0[_0x5a75('0xc')][_0x5a75('0x4f')](_0x5a75('0x28'));_0x55e9b0[_0x5a75('0x6')][_0x5a75('0x57')]['on'](_0x5a75('0x1e'),()=>{const _0x18445f=Array[_0x5a75('0x43')](_0x55e9b0[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x60')][_0x5a75('0x82')]());for(const {name:_0x5da5fd,data:_0x53b11c}of _0x18445f){const {group:_0x328b9e,id:_0x272efa,subType:_0x2e20f0}=_0x3c291e[_0x5a75('0x75')](_0x5da5fd);if(_0x5a75('0x34')!=_0x328b9e)continue;if(null!=_0x53b11c[_0x5a75('0x56')])continue;const _0x37e4ec=_0x3c291e[_0x5a75('0x7a')](_0x272efa);this[_0x5a75('0x63')][_0x5a75('0x6e')](_0x2e20f0)&&this['_tableSuggestions'][_0x5a75('0x31')](_0x37e4ec);}},{'priority':_0x5a75('0x55')});const _0x5d2c2a=(_0x5850d9,_0x1e84af)=>{let _0x31105f=!0x1;const _0x287cac=_0x1e84af[_0x5a75('0x5b')](_0x5850d9),_0x1a7bf9=_0x5850d9[_0x5a75('0x40')](_0x5a75('0x36')),_0x16b9dc=_0x4dcfa0[_0x5a75('0x85')](_0x5850d9);for(const _0x25b9ce of this['_tableSuggestions']){const _0x4353d1=_0x25b9ce[_0x5a75('0x69')],_0x57cb89=_0x4353d1[_0x5a75('0x6c')](_0x5a75('0x30')),_0x2568a1=_0x4353d1[_0x5a75('0x19')](_0x57cb89?0xa:0x5),_0x25dbdd=_0x2568a1['toLowerCase'](),_0x300130=_0x25dbdd['substr'](0x0,0x3)+'span',_0x4bb2b6=_0x5a75('0x7c')+_0x2568a1,_0x3fca30=_0x5a75('0x81')+_0x2568a1;if(!_0x25b9ce[_0x5a75('0x7b')])continue;if(_0x1a7bf9!=_0x25b9ce[_0x5a75('0x3b')]()['start'][_0x5a75('0x40')](_0x5a75('0x36')))continue;if(_0x25b9ce[_0x5a75('0x4c')](_0x287cac))continue;const _0x9d8352=_0x5850d9[_0x5a75('0x2')](_0x300130)?_0x5850d9[_0x5a75('0x8a')](_0x300130)-0x1:0x0,_0x5ddf19=this[_0x5a75('0x52')](_0x25b9ce),_0x50b6b8=_0x5ddf19[_0x4bb2b6],_0x2bef37=_0x5ddf19[_0x3fca30];_0x50b6b8<=_0x16b9dc[_0x25dbdd]&&_0x16b9dc[_0x25dbdd]+_0x9d8352<=_0x2bef37&&(_0x25b9ce[_0x5a75('0xe')](_0x287cac),_0x31105f=!0x0);}return _0x31105f;};_0x55e9b0['model'][_0x5a75('0x57')][_0x5a75('0x4a')](_0xb1d8d1=>{let _0x1e40d8=!0x1;for(const _0x825162 of _0x55e9b0[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x60')][_0x5a75('0x6a')]())if(_0x5a75('0x74')==_0x825162[_0x5a75('0x2d')]){if(_0x5a75('0x35')==_0x825162['name'])for(const _0x3a9677 of _0x825162[_0x5a75('0x29')]['nodeAfter'][_0x5a75('0x7f')]())_0x1e40d8=_0x1e40d8||_0x5d2c2a(_0x3a9677,_0xb1d8d1);else _0x5a75('0x4b')==_0x825162[_0x5a75('0x6f')]&&(_0x1e40d8=_0x1e40d8||_0x5d2c2a(_0x825162['position'][_0x5a75('0x58')],_0xb1d8d1));}return _0x1e40d8;});}[_0x5a75('0x52')](_0x4ba300){return this[_0x5a75('0x7')](_0x4ba300[_0x5a75('0x8')]()[_0x5a75('0x49')](_0x67bed6=>_0x67bed6[_0x5a75('0x84')]['nodeAfter']));}}function se(_0x36c055){return Array[_0x5a75('0x43')](new Set(_0x36c055)[_0x5a75('0xa')]());}
|
|
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'));}}
|