@ckeditor/ckeditor5-track-changes 38.0.0 → 38.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/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 _0x57e0=['startIndex','forward','getAttribute','commandName','plugins','before','styles','registerDescriptionCallback','listReversed','ListUtils','push','length','bind','editor','*Format:*\x20set\x20order\x20to\x20reversed','_getTranslationKeyForListStyle','handleListStartCommand','ELEMENT_','getSelectedBlocks','listStart','flat','commandParams','handleListStyleCommand','locale','listType','type','format','model','map','_LIST_','element','*Format:*\x20set\x20start\x20index\x20to\x20%0','ListPropertiesEditing','handleListReversedCommand','from','getFirstPosition','reversed','TrackChangesEditing','filter','enableCommand','*Change\x20to:*\x20%0','list.properties','listItem','_getSuggestionBlocksForListStyle','markMultiRangeBlockFormat','listStyle','document','afterInit','numbered','getSiblingNodes','*Format:*\x20set\x20order\x20to\x20regular','get','createRange','handleDescriptions','selection','replace','getListTypeFromListStyleType','change','backward','createPositionAt'];(function(_0x3ea150,_0x57e023){const _0xbfc53=function(_0x3b4c19){while(--_0x3b4c19){_0x3ea150['push'](_0x3ea150['shift']());}};_0xbfc53(++_0x57e023);}(_0x57e0,0x16b));const _0xbfc5=function(_0x3ea150,_0x57e023){_0x3ea150=_0x3ea150-0x0;let _0xbfc53=_0x57e0[_0x3ea150];return _0xbfc53;};import{Plugin as _0x135b8f}from'ckeditor5/src/core';import{getTranslation as _0x4fbff8}from'../utils/common-translations';export default class nt extends _0x135b8f{[_0xbfc5('0x2c')](){if(!this['editor'][_0xbfc5('0x1')]['has'](_0xbfc5('0x1d')))return;const _0x51ea6c=this[_0xbfc5('0xa')]['config'][_0xbfc5('0x30')](_0xbfc5('0x26')),_0x98eefb=this[_0xbfc5('0xa')][_0xbfc5('0x1')][_0xbfc5('0x30')]('TrackChangesEditing');_0x51ea6c[_0xbfc5('0x3')]&&_0x98eefb[_0xbfc5('0x24')](_0xbfc5('0x2a'),this[_0xbfc5('0x13')][_0xbfc5('0x9')](this)),_0x51ea6c[_0xbfc5('0x21')]&&_0x98eefb[_0xbfc5('0x24')](_0xbfc5('0x5'),this[_0xbfc5('0x1e')][_0xbfc5('0x9')](this)),_0x51ea6c['startIndex']&&_0x98eefb[_0xbfc5('0x24')]('listStart',this[_0xbfc5('0xd')]['bind'](this)),_0x98eefb['_descriptionFactory'][_0xbfc5('0x4')](this[_0xbfc5('0x32')][_0xbfc5('0x9')](this));}[_0xbfc5('0x13')](_0x9f1d3a,_0x21f300={}){const _0x3d71b1=this['editor'][_0xbfc5('0x1')]['get'](_0xbfc5('0x22')),_0x282307=this[_0xbfc5('0x28')]();this[_0xbfc5('0xa')][_0xbfc5('0x18')]['change'](()=>{_0x3d71b1[_0xbfc5('0x29')](_0x282307,{'commandName':_0xbfc5('0x2a'),'commandParams':[{'type':_0x21f300[_0xbfc5('0x16')]}],'formatGroupId':_0xbfc5('0x2a')});});}[_0xbfc5('0x1e')](_0x456f7d,_0x491439={}){const _0x106928=this['editor']['plugins'][_0xbfc5('0x30')](_0xbfc5('0x22')),_0x53d9a4=this['_getSuggestionBlocks'](_0x464fdb=>_0x464fdb['is'](_0xbfc5('0x1b'),_0xbfc5('0x27'))&&_0xbfc5('0x2d')===_0x464fdb[_0xbfc5('0x3b')]('listType'));if(_0x53d9a4[_0xbfc5('0x8')]<0x1)return;const _0x5cf920=_0x53d9a4[_0xbfc5('0x19')](_0x1e2311=>this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x31')](this[_0xbfc5('0xa')]['model'][_0xbfc5('0x38')](_0x1e2311,_0xbfc5('0x2')),this[_0xbfc5('0xa')][_0xbfc5('0x18')]['createPositionAt'](_0x1e2311,0x0)));this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x36')](()=>{_0x106928['markMultiRangeBlockFormat'](_0x5cf920,{'commandName':_0xbfc5('0x5'),'commandParams':[{'reversed':_0x491439[_0xbfc5('0x21')]}],'formatGroupId':'listReversed'});});}[_0xbfc5('0xd')](_0x228f1b,_0x22b60d={}){const _0xe5c0a1=this[_0xbfc5('0xa')][_0xbfc5('0x1')][_0xbfc5('0x30')](_0xbfc5('0x22')),_0x2a9785=this['_getSuggestionBlocks'](_0x152da8=>_0x152da8['is'](_0xbfc5('0x1b'),_0xbfc5('0x27'))&&_0xbfc5('0x2d')===_0x152da8[_0xbfc5('0x3b')](_0xbfc5('0x15')));if(_0x2a9785['length']<0x1)return;const _0x5e13ed=_0x2a9785['map'](_0x4bc900=>this['editor'][_0xbfc5('0x18')][_0xbfc5('0x31')](this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x38')](_0x4bc900,'before'),this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x38')](_0x4bc900,0x0)));this[_0xbfc5('0xa')]['model'][_0xbfc5('0x36')](()=>{_0xe5c0a1[_0xbfc5('0x29')](_0x5e13ed,{'commandName':_0xbfc5('0x10'),'commandParams':[{'startIndex':_0x22b60d['startIndex']}],'formatGroupId':_0xbfc5('0x10')});});}[_0xbfc5('0x32')](_0x233f4b){const _0x4df751=this['editor'][_0xbfc5('0x14')],{data:_0x401f9f}=_0x233f4b;if(!_0x401f9f)return;let _0x390fca,_0x3c38c8;switch(_0x401f9f[_0xbfc5('0x0')]){case _0xbfc5('0x2a'):_0x390fca=_0xbfc5('0x25'),_0x3c38c8={'type':_0xbfc5('0x17'),'content':_0x4fbff8(_0x4df751,_0x390fca,_0x4fbff8(_0x4df751,this['_getTranslationKeyForListStyle'](_0x401f9f['commandParams'][0x0]['type'])))};break;case _0xbfc5('0x5'):_0x390fca=_0x401f9f[_0xbfc5('0x12')][0x0][_0xbfc5('0x21')]?_0xbfc5('0xb'):_0xbfc5('0x2f'),_0x3c38c8={'type':_0xbfc5('0x17'),'content':_0x4fbff8(_0x4df751,_0x390fca)};break;case _0xbfc5('0x10'):_0x390fca=_0xbfc5('0x1c'),_0x3c38c8={'type':'format','content':_0x4fbff8(_0x4df751,_0x390fca,_0x401f9f[_0xbfc5('0x12')][0x0][_0xbfc5('0x39')])};}return _0x3c38c8;}['_getSuggestionBlocksForListStyle'](){var _0x1ab51e,_0xb98d89,_0x1a4709,_0x3d5a9d;const _0x4d8e1a=this[_0xbfc5('0xa')]['plugins'][_0xbfc5('0x30')]('ListUtils');let _0x3f7e3d=Array[_0xbfc5('0x1f')](this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x2b')][_0xbfc5('0x33')][_0xbfc5('0xf')]());return(null===(_0x1ab51e=_0x3f7e3d[0x0])||void 0x0===_0x1ab51e?void 0x0:_0x1ab51e['is']('element','listItem'))&&_0x3f7e3d['unshift'](..._0x4d8e1a[_0xbfc5('0x2e')](this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x2b')][_0xbfc5('0x33')][_0xbfc5('0x20')](),_0xbfc5('0x37'))),(null===(_0xb98d89=_0x3f7e3d[_0x3f7e3d[_0xbfc5('0x8')]-0x1])||void 0x0===_0xb98d89?void 0x0:_0xb98d89['is'](_0xbfc5('0x1b'),_0xbfc5('0x27')))&&_0x3f7e3d[_0xbfc5('0x7')](..._0x4d8e1a[_0xbfc5('0x2e')](this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x2b')][_0xbfc5('0x33')]['getLastPosition'](),_0xbfc5('0x3a'))),_0x3f7e3d=[...new Set(_0x3f7e3d)],(null===(_0x3d5a9d=null===(_0x1a4709=this[_0xbfc5('0xa')][_0xbfc5('0x18')][_0xbfc5('0x2b')][_0xbfc5('0x33')][_0xbfc5('0x20')]())||void 0x0===_0x1a4709?void 0x0:_0x1a4709['parent'])||void 0x0===_0x3d5a9d?void 0x0:_0x3d5a9d['is'](_0xbfc5('0x1b'),'listItem'))&&(_0x3f7e3d=_0x3f7e3d[_0xbfc5('0x23')](_0x206b47=>_0x206b47['is'](_0xbfc5('0x1b'),_0xbfc5('0x27')))),_0x3f7e3d;}['_getSuggestionBlocks'](_0x56401e){const _0x5a0f53=this[_0xbfc5('0xa')][_0xbfc5('0x1')][_0xbfc5('0x30')](_0xbfc5('0x6'));let _0x6d301b=Array[_0xbfc5('0x1f')](this['editor'][_0xbfc5('0x18')]['document'][_0xbfc5('0x33')]['getSelectedBlocks']())['filter'](_0x56401e)[_0xbfc5('0x19')](_0x1fea3e=>{const _0x59da8a=this[_0xbfc5('0xa')][_0xbfc5('0x18')]['createPositionAt'](_0x1fea3e,0x0);return[..._0x5a0f53[_0xbfc5('0x2e')](_0x59da8a,'backward'),..._0x5a0f53['getSiblingNodes'](_0x59da8a,_0xbfc5('0x3a'))];})[_0xbfc5('0x11')]();return _0x6d301b=[...new Set(_0x6d301b)],_0x6d301b;}[_0xbfc5('0xc')](_0x39c63f){return _0xbfc5('0xe')+this['editor'][_0xbfc5('0x1')][_0xbfc5('0x30')](_0xbfc5('0x6'))[_0xbfc5('0x35')](_0x39c63f)['toUpperCase']()+_0xbfc5('0x1a')+_0x39c63f['toUpperCase']()[_0xbfc5('0x34')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1277=['high','get','options','_descriptionFactory','registerElementLabel','dataDowncast','mediaEmbed','stop','createEmptyElement','afterInit','div','enableCommand','for','plugins','locale','MediaEmbedEditing','ELEMENT_MEDIA','attribute:url:media','elementToElement','data','TrackChangesEditing','editor','media'];(function(_0x3d5605,_0x127712){const _0xdfaa72=function(_0x1eea46){while(--_0x1eea46){_0x3d5605['push'](_0x3d5605['shift']());}};_0xdfaa72(++_0x127712);}(_0x1277,0x165));const _0xdfaa=function(_0x3d5605,_0x127712){_0x3d5605=_0x3d5605-0x0;let _0xdfaa72=_0x1277[_0x3d5605];return _0xdfaa72;};import{Plugin as _0x5274d6}from'ckeditor5/src/core';import{getTranslation as _0x5a1465}from'../utils/common-translations';export default class ot extends _0x5274d6{[_0xdfaa('0x14')](){const _0x2a64c1=this[_0xdfaa('0x9')];if(!_0x2a64c1[_0xdfaa('0x1')]['has'](_0xdfaa('0x3')))return;const _0x5d9204=_0x2a64c1[_0xdfaa('0x1')][_0xdfaa('0xc')](_0xdfaa('0x8')),_0x471c89=_0x2a64c1[_0xdfaa('0x2')];_0x5d9204[_0xdfaa('0x16')](_0xdfaa('0x11')),_0x5d9204[_0xdfaa('0xe')][_0xdfaa('0xf')](_0xdfaa('0xa'),_0x1aa3bd=>_0x5a1465(_0x471c89,_0xdfaa('0x4'),_0x1aa3bd)),_0x2a64c1['conversion'][_0xdfaa('0x0')](_0xdfaa('0x10'))[_0xdfaa('0x6')]({'model':_0xdfaa('0xa'),'view':(_0x1cf1c8,{writer:_0x17c552,options:_0x2b9fbf})=>{if(_0x2b9fbf['showSuggestionHighlights'])return _0x17c552[_0xdfaa('0x13')](_0xdfaa('0x15'));},'converterPriority':'high'}),_0x2a64c1[_0xdfaa('0x7')]['downcastDispatcher']['on'](_0xdfaa('0x5'),(_0x24ffe0,_0x3e368b,_0x169f4a)=>{_0x169f4a[_0xdfaa('0xd')]['showSuggestionHighlights']&&_0x24ffe0[_0xdfaa('0x12')]();},{'priority':_0xdfaa('0xb')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d0d=['has','editor','mention','get','plugins','TrackChangesEditing','MentionEditing'];(function(_0x5f3634,_0x3d0dba){const _0x56988f=function(_0x3e7ba5){while(--_0x3e7ba5){_0x5f3634['push'](_0x5f3634['shift']());}};_0x56988f(++_0x3d0dba);}(_0x3d0d,0x1f4));const _0x5698=function(_0x5f3634,_0x3d0dba){_0x5f3634=_0x5f3634-0x0;let _0x56988f=_0x3d0d[_0x5f3634];return _0x56988f;};import{Plugin as _0x609e10}from'ckeditor5/src/core';export default class rt extends _0x609e10{['afterInit'](){const _0x1e05a2=this[_0x5698('0x5')];_0x1e05a2[_0x5698('0x1')][_0x5698('0x4')](_0x5698('0x3'))&&_0x1e05a2[_0x5698('0x1')][_0x5698('0x0')](_0x5698('0x2'))['enableCommand'](_0x5698('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19af=['plugins','afterInit','get','PageBreakEditing','TrackChangesEditing','has','pageBreak','ELEMENT_PAGE_BREAK','locale','registerElementLabel'];(function(_0xcac077,_0x19afa2){const _0x16399f=function(_0x4aa15d){while(--_0x4aa15d){_0xcac077['push'](_0xcac077['shift']());}};_0x16399f(++_0x19afa2);}(_0x19af,0x99));const _0x1639=function(_0xcac077,_0x19afa2){_0xcac077=_0xcac077-0x0;let _0x16399f=_0x19af[_0xcac077];return _0x16399f;};import{Plugin as _0x1969c6}from'ckeditor5/src/core';import{getTranslation as _0x45ed68}from'../utils/common-translations';export default class at extends _0x1969c6{[_0x1639('0x8')](){const _0xe6b969=this['editor'];if(!_0xe6b969[_0x1639('0x7')][_0x1639('0x2')](_0x1639('0x0')))return;_0xe6b969[_0x1639('0x7')][_0x1639('0x9')](_0x1639('0x1'))['enableCommand']('pageBreak');const _0x4bf48a=_0xe6b969[_0x1639('0x7')][_0x1639('0x9')](_0x1639('0x1')),_0x10b9b3=_0xe6b969[_0x1639('0x5')];_0x4bf48a['_descriptionFactory'][_0x1639('0x6')](_0x1639('0x3'),_0x4e3942=>_0x45ed68(_0x10b9b3,_0x1639('0x4'),_0x4e3942));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ebe=['isBlock','createUIElement','markerRange','insertion','paragraph','bindElementToMarker','document','getFirstRange','blockName','consume','schema','consumable','selection','isTouching','ck-suggestion-marker-split','highest','markBlockFormat','checkChild','change','span','end','model','TrackChangesEditing','locale','isLimit','from','registerElementLabel','insertParagraph','markerName','addClass','start','commandName','getItemLabel','options','plugins','getSelectedBlocks','*Insert:*\x20%0','filter','nodeAfter','_descriptionFactory','type','addMarker:suggestion:insertion','*Change\x20to:*\x20%0','name','get','has','ELEMENT_PARAGRAPH','afterInit','format','enableCommand','downcastDispatcher','mapper','editing','registerDescriptionCallback','writer','ck-suggestion-marker--active','editor','isObject','toViewPosition','parent','insert'];(function(_0x402476,_0x4ebe8d){const _0x1e854a=function(_0x55ec25){while(--_0x55ec25){_0x402476['push'](_0x402476['shift']());}};_0x1e854a(++_0x4ebe8d);}(_0x4ebe,0x171));const _0x1e85=function(_0x402476,_0x4ebe8d){_0x402476=_0x402476-0x0;let _0x1e854a=_0x4ebe[_0x402476];return _0x1e854a;};import{Plugin as _0x5e57f1}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x4b127c}from'./utils';import{getTranslation as _0x321e60}from'../utils/common-translations';export default class ct extends _0x5e57f1{[_0x1e85('0x2c')](){const _0x3e7106=this[_0x1e85('0x35')];if(!_0x3e7106[_0x1e85('0x1f')][_0x1e85('0x2a')]('Paragraph'))return;const _0x3699e7=_0x3e7106[_0x1e85('0x14')],_0x2d8ea7=_0x3e7106[_0x1e85('0x1f')][_0x1e85('0x29')]('TrackChangesEditing');_0x2d8ea7[_0x1e85('0x24')][_0x1e85('0x17')]('paragraph',_0x2e47ce=>_0x321e60(_0x3699e7,_0x1e85('0x2b'),_0x2e47ce)),_0x2d8ea7[_0x1e85('0x2e')](_0x1e85('0x1'),(_0x56dd10,_0xa874b0={})=>{const _0x4997d2=_0x3e7106[_0x1e85('0x12')][_0x1e85('0x3')],_0x95d62f=_0xa874b0[_0x1e85('0x9')]||_0x4997d2[_0x1e85('0x9')],_0x480929=Array[_0x1e85('0x16')](_0x95d62f[_0x1e85('0x20')]())[_0x1e85('0x22')](_0x25b757=>function(_0x1c2150,_0x597337){return _0x597337[_0x1e85('0xe')](_0x1c2150[_0x1e85('0x38')],_0x1e85('0x1'))&&!_0x597337[_0x1e85('0x36')](_0x1c2150)&&_0x1e85('0x1')!=_0x1c2150[_0x1e85('0x28')];}(_0x25b757,this[_0x1e85('0x35')][_0x1e85('0x12')][_0x1e85('0x7')]));_0x3e7106['model'][_0x1e85('0xf')](()=>{for(const _0x1efe06 of _0x480929)_0x2d8ea7[_0x1e85('0xd')](_0x1efe06,{'commandName':_0x1e85('0x1'),'commandParams':[],'formatGroupId':_0x1e85('0x5')},_0x4b127c(_0x1efe06));});}),_0x2d8ea7[_0x1e85('0x24')][_0x1e85('0x32')](_0x3ad006=>{const {data:_0x2c4e25}=_0x3ad006;if(_0x2c4e25&&'paragraph'==_0x2c4e25[_0x1e85('0x1c')])return{'type':_0x1e85('0x2d'),'content':_0x321e60(_0x3699e7,_0x1e85('0x27'),_0x321e60(_0x3699e7,_0x1e85('0x2b')))};}),_0x2d8ea7['enableCommand'](_0x1e85('0x18')),_0x3e7106[_0x1e85('0x31')][_0x1e85('0x2f')]['on'](_0x1e85('0x26'),ar(_0x3e7106),{'priority':_0x1e85('0xc')}),_0x3e7106['data'][_0x1e85('0x2f')]['on'](_0x1e85('0x26'),(_0x5f535a,_0x1dfa9b,_0x3f1c35)=>{_0x3f1c35[_0x1e85('0x1e')]['showSuggestionHighlights']&&ar(_0x3e7106,{'showActiveMarker':!0x1})(_0x5f535a,_0x1dfa9b,_0x3f1c35);},{'priority':'highest'});const _0x4c3913=_0x2d8ea7[_0x1e85('0x24')];_0x4c3913[_0x1e85('0x32')](_0x20963d=>{if(_0x1e85('0x0')!==_0x20963d[_0x1e85('0x25')])return;const {start:_0x3e8320,end:_0x191097}=_0x20963d[_0x1e85('0x4')]();if(!_0x3e8320[_0x1e85('0xa')](_0x191097)||!_0x3e8320['nodeAfter'])return;const _0x59d3bf=_0x3e7106[_0x1e85('0x12')][_0x1e85('0x7')],_0x57130d=_0x3e8320[_0x1e85('0x23')];return _0x59d3bf[_0x1e85('0x3a')](_0x57130d)&&!_0x59d3bf[_0x1e85('0x15')](_0x57130d)&&_0x59d3bf[_0x1e85('0xe')](_0x57130d,'$text')?{'type':'insertion','content':_0x321e60(_0x3699e7,_0x1e85('0x21'),_0x4c3913[_0x1e85('0x1d')](_0x57130d,0x1))}:void 0x0;});}}function ar(_0x368706,{showActiveMarker:_0x455389=!0x0}={}){return(_0x47b8d1,_0x3f924a,_0x511b81)=>{const _0x15d161=_0x368706[_0x1e85('0x1f')][_0x1e85('0x29')](_0x1e85('0x13')),_0x44c187=_0x3f924a[_0x1e85('0x3c')][_0x1e85('0x1b')],_0x3f815d=_0x3f924a['markerRange'][_0x1e85('0x11')],_0x478348=_0x368706['model'][_0x1e85('0x7')];if(!_0x44c187[_0x1e85('0xa')](_0x3f815d)||!_0x44c187[_0x1e85('0x23')])return;const _0x5a4e7f=_0x44c187[_0x1e85('0x23')];if(_0x478348[_0x1e85('0x3a')](_0x5a4e7f)&&!_0x478348['isLimit'](_0x5a4e7f)&&_0x478348[_0x1e85('0xe')](_0x5a4e7f,'$text')){if(!_0x511b81[_0x1e85('0x8')][_0x1e85('0x6')](_0x3f924a['markerRange'],_0x47b8d1[_0x1e85('0x28')]))return;const _0x5b0083=_0x511b81[_0x1e85('0x33')][_0x1e85('0x3b')](_0x1e85('0x10'),{'class':_0x1e85('0xb')}),_0x4f0bc5=_0x511b81[_0x1e85('0x30')][_0x1e85('0x37')](_0x3f815d);_0x455389&&_0x15d161['activeMarkers']['includes'](_0x3f924a['markerName'])&&_0x511b81['writer'][_0x1e85('0x1a')](_0x1e85('0x34'),_0x5b0083),_0x511b81[_0x1e85('0x33')][_0x1e85('0x39')](_0x4f0bc5,_0x5b0083),_0x511b81['mapper'][_0x1e85('0x2')](_0x5b0083,_0x3f924a[_0x1e85('0x19')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bf9=['*Remove\x20all\x20formatting*','TrackChangesEditing','schema','markInlineFormat','getAttributes','afterInit','isCollapsed','editor','model','isFormatting','from','removeFormat','plugins','format','_descriptionFactory','createRangeOn','getItems','change','enableCommand','registerDescriptionCallback','RemoveFormatEditing','commandName','selection'];(function(_0x459f08,_0x2bf958){const _0x2c1d9d=function(_0x5d7ed1){while(--_0x5d7ed1){_0x459f08['push'](_0x459f08['shift']());}};_0x2c1d9d(++_0x2bf958);}(_0x2bf9,0x188));const _0x2c1d=function(_0x459f08,_0x2bf958){_0x459f08=_0x459f08-0x0;let _0x2c1d9d=_0x2bf9[_0x459f08];return _0x2c1d9d;};import{Plugin as _0x381f33}from'ckeditor5/src/core';import{getTranslation as _0x47e263}from'../utils/common-translations';export default class ht extends _0x381f33{[_0x2c1d('0x4')](){const _0x1fe3e1=this[_0x2c1d('0x6')];if(!_0x1fe3e1['plugins']['has'](_0x2c1d('0x13')))return;const _0xcae71e=_0x1fe3e1[_0x2c1d('0xb')]['get'](_0x2c1d('0x0'));_0xcae71e[_0x2c1d('0x11')]('removeFormat',_0x4cdc9e=>{const _0xccd28c=_0x1fe3e1[_0x2c1d('0x7')]['document'][_0x2c1d('0x15')];_0xccd28c[_0x2c1d('0x5')]?_0x4cdc9e():_0x1fe3e1[_0x2c1d('0x7')][_0x2c1d('0x10')](()=>{const _0x63439d=Array[_0x2c1d('0x9')](_0xccd28c['getRanges']());for(const _0x363e89 of _0x63439d)for(const _0x34fe94 of _0x363e89[_0x2c1d('0xf')]())eo(_0x34fe94,_0x1fe3e1['model'][_0x2c1d('0x1')])&&_0xcae71e[_0x2c1d('0x2')](_0x1fe3e1['model'][_0x2c1d('0xe')](_0x34fe94),{'commandName':'removeFormat','commandParams':[]});});}),_0xcae71e[_0x2c1d('0xd')][_0x2c1d('0x12')](_0x196670=>{const {data:_0x5cc787}=_0x196670;if(_0x5cc787&&_0x2c1d('0xa')==_0x5cc787[_0x2c1d('0x14')])return{'type':_0x2c1d('0xc'),'content':_0x47e263(_0x1fe3e1['locale'],_0x2c1d('0x16'))};});}}function eo(_0x5bad1b,_0x22129e){for(const [_0x587498]of _0x5bad1b[_0x2c1d('0x3')]()){const _0x2370b1=_0x22129e['getAttributeProperties'](_0x587498);if(_0x2370b1&&_0x2370b1[_0x2c1d('0x8')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36fe=['afterInit','get','goToPreviousRestrictedEditingException','discardSelectedSuggestions','trackChanges','plugins','has','goToNextRestrictedEditingException','acceptAllSuggestions','RestrictedEditingModeEditing','editor','enableCommand','TrackChangesEditing','discardSuggestion'];(function(_0x3fee5e,_0x36feee){const _0x14e686=function(_0x340e59){while(--_0x340e59){_0x3fee5e['push'](_0x3fee5e['shift']());}};_0x14e686(++_0x36feee);}(_0x36fe,0x170));const _0x14e6=function(_0x3fee5e,_0x36feee){_0x3fee5e=_0x3fee5e-0x0;let _0x14e686=_0x36fe[_0x3fee5e];return _0x14e686;};import{Plugin as _0x52f7dd}from'ckeditor5/src/core';export default class ut extends _0x52f7dd{[_0x14e6('0xa')](){const _0xb01fb6=this[_0x14e6('0x6')];if(!_0xb01fb6[_0x14e6('0x1')][_0x14e6('0x2')](_0x14e6('0x5')))return;const _0x500188=_0xb01fb6[_0x14e6('0x1')][_0x14e6('0xb')](_0x14e6('0x8'));_0x500188[_0x14e6('0x7')](_0x14e6('0xc')),_0x500188[_0x14e6('0x7')](_0x14e6('0x3'));const _0x22e28f=_0xb01fb6[_0x14e6('0x1')][_0x14e6('0xb')](_0x14e6('0x5'));_0x22e28f['enableCommand'](_0x14e6('0x0')),_0x22e28f[_0x14e6('0x7')]('acceptSuggestion'),_0x22e28f[_0x14e6('0x7')](_0x14e6('0x9')),_0x22e28f[_0x14e6('0x7')](_0x14e6('0x4')),_0x22e28f['enableCommand']('discardAllSuggestions'),_0x22e28f[_0x14e6('0x7')]('acceptSelectedSuggestions'),_0x22e28f[_0x14e6('0x7')](_0x14e6('0xd'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cf9=['insert','shiftEnter','addClass','name','addMarker:suggestion','markerName','split','registerElementLabel','createUIElement','editor','get','options','markerRange','ck-suggestion-marker-','consumable','getItems','plugins','deletion','high','mapper','element','test','ELEMENT_LINE_BREAK','editing','locale','toViewPosition','includes','init','writer','TrackChangesEditing','softBreak','_descriptionFactory','ck-suggestion-marker--active','model'];(function(_0x2e4f2d,_0x2cf9fa){const _0x31dc8f=function(_0x5c3c3d){while(--_0x5c3c3d){_0x2e4f2d['push'](_0x2e4f2d['shift']());}};_0x31dc8f(++_0x2cf9fa);}(_0x2cf9,0x126));const _0x31dc=function(_0x2e4f2d,_0x2cf9fa){_0x2e4f2d=_0x2e4f2d-0x0;let _0x31dc8f=_0x2cf9[_0x2e4f2d];return _0x31dc8f;};import{Plugin as _0x1e3493}from'ckeditor5/src/core';import{ShiftEnter as _0x30b0c4}from'ckeditor5/src/enter';import{getTranslation as _0x2b87db}from'../utils/common-translations';export default class ft extends _0x1e3493{static get['requires'](){return[_0x30b0c4];}[_0x31dc('0x5')](){const _0x1e50cb=this[_0x31dc('0x15')],_0x57f0b1=_0x1e50cb[_0x31dc('0x1c')][_0x31dc('0x16')]('TrackChangesEditing');_0x57f0b1['enableCommand'](_0x31dc('0xd')),_0x1e50cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0x1e50cb),{'priority':'high'}),_0x1e50cb[_0x31dc('0x1')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x1e50cb),{'priority':_0x31dc('0x1e')}),_0x1e50cb['data']['downcastDispatcher']['on'](_0x31dc('0x10'),(_0x99128d,_0x14b047,_0x6d4a85)=>{_0x6d4a85[_0x31dc('0x17')]['showSuggestionHighlights']&&re(_0x1e50cb,{'showActiveMarker':!0x1})(_0x99128d,_0x14b047,_0x6d4a85);}),_0x57f0b1[_0x31dc('0x9')][_0x31dc('0x13')](_0x31dc('0x8'),_0x227002=>_0x2b87db(_0x1e50cb[_0x31dc('0x2')],_0x31dc('0x0'),_0x227002));}}function re(_0x9dbe8d,{showActiveMarker:_0x4c0624=!0x0}={}){return(_0x46fc1f,_0x3d9d95,_0xd10569)=>{const _0x234d6a=_0x9dbe8d[_0x31dc('0x1c')][_0x31dc('0x16')](_0x31dc('0x7'));if(!_0xd10569[_0x31dc('0x1a')][_0x31dc('0x21')](_0x3d9d95[_0x31dc('0x18')],_0x46fc1f[_0x31dc('0xf')]))return;const _0x42ee81=_0x9dbe8d[_0x31dc('0xb')];for(const _0x538614 of _0x3d9d95['markerRange'][_0x31dc('0x1b')]()){if(!_0x538614['is'](_0x31dc('0x20'),_0x31dc('0x8')))continue;const _0x1b9085=_0x31dc('0x1d')==_0x3d9d95[_0x31dc('0x11')][_0x31dc('0x12')](':')[0x1]?'merge':'split',_0x47fae3=_0xd10569[_0x31dc('0x6')][_0x31dc('0x14')]('span',{'class':_0x31dc('0x19')+_0x1b9085}),_0x45a5c9=_0xd10569[_0x31dc('0x1f')][_0x31dc('0x3')](_0x42ee81['createPositionBefore'](_0x538614));_0x4c0624&&_0x234d6a['activeMarkers'][_0x31dc('0x4')](_0x3d9d95['markerName'])&&_0xd10569[_0x31dc('0x6')][_0x31dc('0xe')](_0x31dc('0xa'),_0x47fae3),_0xd10569[_0x31dc('0x6')][_0x31dc('0xc')](_0x45a5c9,_0x47fae3),_0xd10569[_0x31dc('0x1f')]['bindElementToMarker'](_0x47fae3,_0x3d9d95[_0x31dc('0x11')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d32=['StandardEditingModeEditing','TrackChangesEditing','isCollapsed','has','afterInit','commands','locale','selection','from','value','document','getRanges','change','format','model','FORMAT_RESTRICTED_DISABLED','forceValue','editor','plugins','_descriptionFactory','FORMAT_RESTRICTED_ENABLED','registerDescriptionCallback','get','restrictedEditingException','enableCommand'];(function(_0x1fe528,_0x2d3267){const _0x28d337=function(_0x37c048){while(--_0x37c048){_0x1fe528['push'](_0x1fe528['shift']());}};_0x28d337(++_0x2d3267);}(_0x2d32,0xea));const _0x28d3=function(_0x1fe528,_0x2d3267){_0x1fe528=_0x1fe528-0x0;let _0x28d337=_0x2d32[_0x1fe528];return _0x28d337;};import{Plugin as _0x53a088}from'ckeditor5/src/core';import{getRangesWithAttribute as _0xe929ac}from'./utils';import{getTranslation as _0x2c12ea}from'../utils/common-translations';export default class lt extends _0x53a088{[_0x28d3('0x14')](){const _0x55ea8a=this[_0x28d3('0x8')],_0x2d771a=_0x55ea8a[_0x28d3('0x5')],_0xe010cc=_0x55ea8a[_0x28d3('0x16')];if(!_0x55ea8a[_0x28d3('0x9')][_0x28d3('0x13')](_0x28d3('0x10')))return;const _0x519560=_0x55ea8a[_0x28d3('0x9')][_0x28d3('0xd')](_0x28d3('0x11')),_0xaaa738=_0x28d3('0xe'),_0x27c146=_0x55ea8a[_0x28d3('0x15')][_0x28d3('0xd')](_0xaaa738);_0x519560[_0x28d3('0xf')](_0xaaa738,(_0x4238b7,_0x34e689={})=>{const _0x6417b0=_0x2d771a[_0x28d3('0x1')][_0x28d3('0x17')];if(_0x6417b0[_0x28d3('0x12')])return void _0x4238b7(_0x34e689);const _0xa49be8=void 0x0!==_0x34e689[_0x28d3('0x7')]?_0x34e689[_0x28d3('0x7')]:!_0x27c146[_0x28d3('0x0')];_0x2d771a[_0x28d3('0x3')](()=>{const _0x571c8a=Array[_0x28d3('0x18')](_0x6417b0[_0x28d3('0x2')]());for(const _0x308fba of _0x571c8a){const _0x5cb8ad=_0xa49be8?[_0x308fba]:_0xe929ac(_0xaaa738,_0x308fba,_0x2d771a);for(const _0x401cdf of _0x5cb8ad)_0x519560['markInlineFormat'](_0x401cdf,{'commandName':_0xaaa738,'commandParams':[{'forceValue':_0xa49be8}]});}});}),_0x519560[_0x28d3('0xa')][_0x28d3('0xc')](_0x5d2d08=>{const {data:_0x5c17b5}=_0x5d2d08;if(_0x5c17b5&&_0x5c17b5['commandName']==_0xaaa738)return _0x5c17b5['commandParams'][0x0][_0x28d3('0x7')]?{'type':'format','content':_0x2c12ea(_0xe010cc,_0x28d3('0xb'))}:{'type':_0x28d3('0x4'),'content':_0x2c12ea(_0xe010cc,_0x28d3('0x6'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1833=['has','change','createRangeOn','editor','normalizeConfig','inline','modelElements','getItems','classes','DataSchema','block','enabledStyles','commands','isBlock','isCollapsed','document','includes','plugins','format','markBlockFormat','selection','style:','add','afterInit','_descriptionFactory','name','value','locale','TrackChangesEditing','forceValue','styleName','style','toLowerCase','from','style.definitions','get','element','model','every','find','*Remove\x20format:*\x20%0','_getStyleDefinition','StyleUtils','*Format:*\x20%0','Style'];(function(_0x598eda,_0x1833a6){const _0x4fd61e=function(_0x5b093d){while(--_0x5b093d){_0x598eda['push'](_0x598eda['shift']());}};_0x4fd61e(++_0x1833a6);}(_0x1833,0x1dc));const _0x4fd6=function(_0x598eda,_0x1833a6){_0x598eda=_0x598eda-0x0;let _0x4fd61e=_0x1833[_0x598eda];return _0x4fd61e;};import{Plugin as _0x5a9e89}from'ckeditor5/src/core';import{getTranslation as _0x5e884b}from'../utils/common-translations';export default class gt extends _0x5a9e89{[_0x4fd6('0x2a')](){const _0x21dbd4=this[_0x4fd6('0x16')];if(!_0x21dbd4[_0x4fd6('0x24')][_0x4fd6('0x13')](_0x4fd6('0x12')))return;const _0x3ae020=_0x21dbd4[_0x4fd6('0x1f')][_0x4fd6('0x9')](_0x4fd6('0x5')),_0x17d4f9=_0x21dbd4[_0x4fd6('0x24')][_0x4fd6('0x9')](_0x4fd6('0x2')),_0x4fa23c=_0x21dbd4[_0x4fd6('0x1')],_0x2e4de2=_0x21dbd4[_0x4fd6('0x24')][_0x4fd6('0x9')](_0x4fd6('0x1c')),_0x3098a7=_0x21dbd4[_0x4fd6('0x24')][_0x4fd6('0x9')](_0x4fd6('0x10'))[_0x4fd6('0x17')](_0x2e4de2,_0x21dbd4['config'][_0x4fd6('0x9')](_0x4fd6('0x8')));_0x17d4f9['enableCommand'](_0x4fd6('0x5'),(_0x46e86a,{styleName:_0x33ecd4})=>{const _0x591c0a=_0x21dbd4[_0x4fd6('0xb')][_0x4fd6('0x22')][_0x4fd6('0x27')],_0x31f4da=this[_0x4fd6('0xf')](_0x33ecd4,_0x3098a7);if(!_0x31f4da)return;if(!_0x3ae020[_0x4fd6('0x1e')][_0x4fd6('0x23')](_0x33ecd4))return;if(_0x591c0a[_0x4fd6('0x21')]&&!_0x31f4da['isBlock'])return void _0x46e86a({'styleName':_0x33ecd4});const _0x4f0eae=!_0x3ae020[_0x4fd6('0x0')][_0x4fd6('0x23')](_0x31f4da[_0x4fd6('0x2c')]);if(_0x31f4da[_0x4fd6('0x20')]){const _0x21e8ee=function(_0x1fbc48,_0x3966bc){const _0x573394=new Set();for(const _0x4b0ca7 of _0x1fbc48){const _0x1174d9=_0x4b0ca7['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x10ceae of _0x1174d9)if(_0x3966bc['includes'](_0x10ceae[_0x4fd6('0x2c')])){_0x573394[_0x4fd6('0x29')](_0x10ceae);break;}}return _0x573394;}(_0x591c0a['getSelectedBlocks'](),_0x31f4da[_0x4fd6('0x19')]);_0x21dbd4['model']['change'](()=>{for(const _0x5e560b of _0x21e8ee)_0x17d4f9[_0x4fd6('0x26')](_0x5e560b,{'commandName':_0x4fd6('0x5'),'commandParams':[{'styleName':_0x33ecd4,'forceValue':_0x4f0eae}],'formatGroupId':_0x4fd6('0x28')+_0x33ecd4});});}else{let _0x250f58=Array['from'](_0x591c0a['getRanges']());if(!_0x4f0eae){const _0x213883=Array[_0x4fd6('0x7')](_0x2e4de2['getDefinitionsForView'](_0x31f4da[_0x4fd6('0xa')],!0x1))[0x0][_0x4fd6('0xb')],_0x174523=[];for(const _0x400f82 of _0x250f58){const _0x15c77c=this['_getRangesWithClasses'](_0x21dbd4['model'],_0x400f82,_0x31f4da['classes'],_0x213883);_0x174523['push'](..._0x15c77c);}_0x250f58=_0x174523;}_0x21dbd4[_0x4fd6('0xb')][_0x4fd6('0x14')](()=>{for(const _0x490c3 of _0x250f58)_0x17d4f9['markInlineFormat'](_0x490c3,{'commandName':'style','commandParams':[{'styleName':_0x33ecd4,'forceValue':_0x4f0eae}]});});}}),_0x17d4f9[_0x4fd6('0x2b')]['registerDescriptionCallback'](_0x27512f=>{const {data:_0x57b67b}=_0x27512f;if(_0x57b67b&&_0x4fd6('0x5')===_0x57b67b['commandName'])return _0x57b67b['commandParams'][0x0][_0x4fd6('0x3')]?{'type':'format','content':_0x5e884b(_0x4fa23c,_0x4fd6('0x11'),_0x57b67b['commandParams'][0x0]['styleName'][_0x4fd6('0x6')]())}:{'type':_0x4fd6('0x25'),'content':_0x5e884b(_0x4fa23c,_0x4fd6('0xe'),_0x57b67b['commandParams'][0x0][_0x4fd6('0x4')][_0x4fd6('0x6')]())};});}[_0x4fd6('0xf')](_0x44e0ee,_0x39496c){let _0x162f6f=_0x39496c[_0x4fd6('0x1d')]['find'](_0x11db87=>_0x11db87[_0x4fd6('0x2c')]===_0x44e0ee);return _0x162f6f||(_0x162f6f=_0x39496c[_0x4fd6('0x18')][_0x4fd6('0xd')](_0x46710f=>_0x46710f['name']===_0x44e0ee)),_0x162f6f;}['_getRangesWithClasses'](_0x5aef80,_0x125eb9,_0x24fd6a,_0x446c35){const _0x5f1215=[];for(const _0x4a2bb0 of _0x125eb9[_0x4fd6('0x1a')]()){const _0x2d9c1b=_0x4a2bb0['getAttribute'](_0x446c35);_0x2d9c1b&&(_0x24fd6a[_0x4fd6('0xc')](_0x5937cc=>_0x2d9c1b[_0x4fd6('0x1b')]['includes'](_0x5937cc))&&_0x5f1215['push'](_0x5aef80[_0x4fd6('0x15')](_0x4a2bb0)));}return _0x5f1215;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x43b4=['createTableWalker','suggestion','writer','markMultiRangeInsertion','isInContent','TrackChangesEditing','getChildren','above','$graveyard','enableCommand','tableColumn','root','getRowIndexes','filter','name','_setupColumnsRowsFixing','getSuggestion','isIntersectingWithRange','getFirstRange','editor','getSelectionAffectedTableCells','markMultiRangeDeletion','add','differ','_getCoordsForCells','end','every','first','max','getContainedElement','change','last','data','*Remove:*\x20%0','createPositionAt','_acceptFormatSuggestionCallbackFactory','afterInit','_tablePostFixingSubtypes','addMarker:suggestion','rowspan','deletion','execute','join','map','tableCell','isArray','toViewElement','plugins','ELEMENT_TABLE_COLUMN','position','subType','commands','order','showSuggestionHighlights','selectTableColumn','_tableSuggestions','registerPostFixer','hasAttribute','getRanges','type','maxRow','insertTable','insertTableRowAbove','includes','ELEMENT_TABLE_ROW_WITH_TEXT','createRangeOn','from','oldRange','left','fromRange','_suggestionFactory','get','registerDescriptionCallback','substr','removeTableColumn','*Insert:*\x20%0','element','enqueueChange','_splitMarkerName','change:data','getItems','ELEMENT_TABLE_WITH_TEXT','isEqual','discard','minColumn','MIN_SAFE_INTEGER','ELEMENT_TABLE','push','removeClass','document','getAttribute','insertTableRowBelow','insertion','minRow','_getSuggestionCoords','_descriptionFactory','classes','length','min','getCellLocation','addRange','isTouching','options','detach','removeTableRow','downcastDispatcher','findAncestor','ELEMENT_TABLE_COLUMN_WITH_TEXT','start','rootName','colspan','selectTableRow','model','getChangedMarkers','getChanges','$textProxy','tableRow','values','some','table','refresh','insertTableColumnLeft','ELEMENT_TABLE_ROW','registerCustomCallback','setSelection','toLowerCase','accept','TableUtils','insert','getColumnIndexes','item','nodeAfter','TableEditing','cell','MAX_SAFE_INTEGER'];(function(_0x34bdd3,_0x43b4f9){const _0x5cc087=function(_0x1b6f82){while(--_0x1b6f82){_0x34bdd3['push'](_0x34bdd3['shift']());}};_0x5cc087(++_0x43b4f9);}(_0x43b4,0x141));const _0x5cc0=function(_0x34bdd3,_0x43b4f9){_0x34bdd3=_0x34bdd3-0x0;let _0x5cc087=_0x43b4[_0x34bdd3];return _0x5cc087;};import{Plugin as _0x46f1c9}from'ckeditor5/src/core';import{LiveRange as _0x5366cb}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3fbed8}from'ckeditor5/src/widget';import{getTranslation as _0x528878}from'../utils/common-translations';export default class mt extends _0x46f1c9{constructor(_0x4ae1ef){super(_0x4ae1ef),this['_tablePostFixingSubtypes']=[_0x5cc0('0x41'),_0x5cc0('0x5e')],this['_tableSuggestions']=new Set();}[_0x5cc0('0x78')](){const _0x233006=this['editor'],_0x326853=_0x233006['model'][_0x5cc0('0x26')]['selection'];if(!_0x233006[_0x5cc0('0x83')]['has'](_0x5cc0('0x51')))return;const _0x553e08=_0x233006['locale'],_0x5baea5=_0x233006[_0x5cc0('0x83')][_0x5cc0('0x14')](_0x5cc0('0x59')),_0x5368c4=_0x233006[_0x5cc0('0x83')]['get'](_0x5cc0('0x4c'));_0x5baea5[_0x5cc0('0x2c')]['registerElementLabel']('table',_0x23b1b2=>_0x528878(_0x553e08,_0x5cc0('0x23'),_0x23b1b2)),this[_0x5cc0('0x63')](),_0x5baea5[_0x5cc0('0x5d')](_0x5cc0('0xa')),_0x5baea5[_0x5cc0('0x5d')](_0x5cc0('0x3c')),_0x5baea5['enableCommand'](_0x5cc0('0x3'));for(const _0x601cc of[_0x5cc0('0xb'),_0x5cc0('0x28')]){const _0x28440c=_0x233006['commands'][_0x5cc0('0x14')](_0x601cc);_0x5baea5[_0x5cc0('0x5d')](_0x601cc,_0xc34638=>{_0x233006['model'][_0x5cc0('0x72')](_0x209a44=>{_0xc34638();const _0x236e24=_0x5cc0('0x5b')===_0x28440c[_0x5cc0('0x1')],_0xa16bbb=_0x5368c4[_0x5cc0('0x68')](_0x326853),_0x439f91=_0x5368c4['getRowIndexes'](_0xa16bbb),_0x4361b2=_0x236e24?_0x439f91['first']-0x1:_0x439f91[_0x5cc0('0x73')]+0x1,_0x45860a=_0xa16bbb[0x0][_0x5cc0('0x37')](_0x5cc0('0x44')),_0xd9c337=_0x5368c4[_0x5cc0('0x54')](_0x45860a,{'startRow':_0x4361b2,'endRow':_0x4361b2}),_0x2e0e76=Array[_0x5cc0('0xf')](_0xd9c337)['map'](_0x333669=>_0x209a44[_0x5cc0('0xe')](_0x333669[_0x5cc0('0x52')]));_0x5baea5['markMultiRangeInsertion'](_0x2e0e76,_0x5cc0('0x41'));});});}for(const _0x1e188d of[_0x5cc0('0x46'),'insertTableColumnRight']){const _0xf74201=_0x233006[_0x5cc0('0x0')][_0x5cc0('0x14')](_0x1e188d);_0x5baea5[_0x5cc0('0x5d')](_0x1e188d,_0x296dd4=>{_0x233006[_0x5cc0('0x3d')]['change'](_0x25a90b=>{_0x296dd4();const _0x4a7060=_0x5cc0('0x11')===_0xf74201[_0x5cc0('0x1')],_0x568f0e=_0x5368c4['getSelectionAffectedTableCells'](_0x326853),_0x4cf83f=_0x5368c4[_0x5cc0('0x4e')](_0x568f0e),_0x2ae2fc=_0x4a7060?_0x4cf83f[_0x5cc0('0x6f')]-0x1:_0x4cf83f[_0x5cc0('0x73')]+0x1,_0x554d06=_0x568f0e[0x0][_0x5cc0('0x37')](_0x5cc0('0x44')),_0x4600e8=_0x5368c4[_0x5cc0('0x54')](_0x554d06,{'startRow':0x0,'column':_0x2ae2fc,'includeAllSlots':!0x1}),_0x41ba04=Array[_0x5cc0('0xf')](_0x4600e8)[_0x5cc0('0x7f')](_0x3a3f88=>_0x25a90b[_0x5cc0('0xe')](_0x3a3f88[_0x5cc0('0x52')]));_0x5baea5[_0x5cc0('0x57')](_0x41ba04,_0x5cc0('0x5e'));});});}for(const _0x4c0837 of[_0x5cc0('0x35'),_0x5cc0('0x17')]){const _0x135c6b=_0x4c0837['substr'](0xb),_0x29a132=_0x135c6b[_0x5cc0('0x4a')](),_0x297a31=_0x29a132['substr'](0x0,0x3)+'span',_0x29673e='table'+_0x135c6b,_0x589200=_0x5cc0('0x2f')+_0x135c6b,_0x3fc9f0=_0x5cc0('0x70')+_0x135c6b;_0x5baea5[_0x5cc0('0x5d')](_0x4c0837,()=>{_0x233006[_0x5cc0('0x3d')][_0x5cc0('0x72')](_0x46cbec=>{const _0x37c493=_0x5368c4[_0x5cc0('0x68')](_0x326853),_0x3adf9a=_0x37c493[0x0]['findAncestor'](_0x5cc0('0x44'));let _0x58e0c9;if('removeTableRow'==_0x4c0837){const _0x16b8b9=_0x5368c4[_0x5cc0('0x60')](_0x37c493);_0x58e0c9={'startRow':_0x16b8b9['first'],'endRow':_0x16b8b9['last'],'includeAllSlots':!0x0};}else{const _0x5be5ca=_0x5368c4[_0x5cc0('0x4e')](_0x37c493);_0x58e0c9={'startColumn':_0x5be5ca[_0x5cc0('0x6f')],'endColumn':_0x5be5ca[_0x5cc0('0x73')],'includeAllSlots':!0x0};}const _0x47fb24=_0x5368c4[_0x5cc0('0x54')](_0x3adf9a,_0x58e0c9),_0x38c3db=Array[_0x5cc0('0xf')](_0x47fb24)[_0x5cc0('0x7f')](({cell:_0x167ece})=>_0x167ece),_0x3c85b9=se(_0x38c3db[_0x5cc0('0x61')](_0x416420=>_0x416420[_0x5cc0('0x6')](_0x297a31))),_0x509a9a=se(_0x38c3db['filter'](_0x122783=>!_0x122783['hasAttribute'](_0x297a31)))[_0x5cc0('0x7f')](_0x10d758=>_0x46cbec[_0x5cc0('0xe')](_0x10d758)),_0x269450=_0x5baea5[_0x5cc0('0x69')](_0x509a9a,_0x29673e);if(_0x269450&&(_0x5cc0('0x41')==_0x269450[_0x5cc0('0x86')]||'tableColumn'==_0x269450[_0x5cc0('0x86')])){const _0x26122e=this[_0x5cc0('0x2b')](_0x269450);for(const _0x4c2609 of _0x3c85b9){const _0x47ddbb=_0x46cbec[_0x5cc0('0xe')](_0x4c2609),_0x2eab36=_0x5368c4[_0x5cc0('0x30')](_0x4c2609),_0x4555f3=_0x4c2609[_0x5cc0('0x27')](_0x297a31)-0x1,_0x485ca0=_0x26122e[_0x589200],_0x544ffe=_0x26122e[_0x3fc9f0];_0x485ca0<=_0x2eab36[_0x29a132]&&_0x2eab36[_0x29a132]+_0x4555f3<=_0x544ffe&&_0x269450[_0x5cc0('0x31')](_0x47ddbb);}}});});}function _0xb81d6(_0x54bce5){const _0x359b8d=Array[_0x5cc0('0xf')](_0x326853[_0x5cc0('0x7')]())['map'](_0x13b264=>_0x5366cb[_0x5cc0('0x12')](_0x13b264));_0x233006[_0x5cc0('0x3d')][_0x5cc0('0x72')](_0x5c1fbb=>{const _0x343534=_0x5c1fbb['batch'];_0x54bce5=_0x54bce5['filter'](_0x46bca0=>_0x5cc0('0x5c')!=_0x46bca0[_0x5cc0('0x5f')]['rootName']),_0x5c1fbb[_0x5cc0('0x49')](_0x54bce5),_0x233006[_0x5cc0('0x0')][_0x5cc0('0x14')](_0x5cc0('0x35'))[_0x5cc0('0x45')](),_0x233006[_0x5cc0('0x7d')](_0x5cc0('0x35'),{'forceDefaultExecution':!0x0}),_0x233006['model'][_0x5cc0('0x1a')](()=>{_0x233006[_0x5cc0('0x3d')][_0x5cc0('0x1a')](_0x343534,_0xd3d5f8=>{const _0x5125b9=_0x359b8d[_0x5cc0('0x61')](_0x232a2a=>_0x5cc0('0x5c')!=_0x232a2a[_0x5cc0('0x5f')][_0x5cc0('0x3a')]);_0x5125b9['length']>0x0&&_0xd3d5f8[_0x5cc0('0x49')](_0x5125b9);for(const _0x5e9129 of _0x359b8d)_0x5e9129['detach']();});});});}function _0x3ad50d(_0x141bc9){_0x233006['model'][_0x5cc0('0x72')](_0x557b40=>{const _0x128761=Array[_0x5cc0('0xf')](_0x326853[_0x5cc0('0x7')]())[_0x5cc0('0x7f')](_0x59ada5=>_0x5366cb['fromRange'](_0x59ada5)),_0x17a6fa=[];for(const _0x3b42b8 of _0x141bc9)for(const _0x237d97 of _0x3b42b8[_0x5cc0('0x1d')]({'shallow':!0x0}))_0x17a6fa['push'](_0x237d97);for(const _0xc7c553 of _0x17a6fa)_0x5cc0('0x5c')!=_0xc7c553[_0x5cc0('0x5f')][_0x5cc0('0x3a')]&&(_0x557b40[_0x5cc0('0x49')](_0x557b40[_0x5cc0('0x76')](_0xc7c553,0x0)),_0x233006[_0x5cc0('0x0')]['get'](_0x5cc0('0x17'))[_0x5cc0('0x45')](),_0x233006[_0x5cc0('0x7d')](_0x5cc0('0x17'),{'forceDefaultExecution':!0x0}));const _0x14b1b6=_0x128761['filter'](_0x337856=>'$graveyard'!=_0x337856[_0x5cc0('0x5f')][_0x5cc0('0x3a')]);_0x14b1b6[_0x5cc0('0x2e')]>0x0&&_0x557b40[_0x5cc0('0x49')](_0x14b1b6);for(const _0x373af0 of _0x128761)_0x373af0[_0x5cc0('0x34')]();});}function _0x18f750(_0x5477c1,_0x193066){return _0x193066[_0x5cc0('0x6e')](_0x303110=>_0x5477c1[_0x5cc0('0x43')](_0x4713bd=>_0x4713bd[_0x5cc0('0x6d')][_0x5cc0('0x1f')](_0x303110[_0x5cc0('0x39')])||_0x303110[_0x5cc0('0x6d')]['isEqual'](_0x4713bd[_0x5cc0('0x39')])));}function _0x574dba(_0x22698d,_0xaa77c3){return _0x22698d[_0x5cc0('0x43')](_0x1464f8=>_0xaa77c3[_0x5cc0('0x43')](_0x34d7b4=>_0x1464f8[_0x5cc0('0x6d')][_0x5cc0('0x32')](_0x34d7b4[_0x5cc0('0x39')])));}_0x233006[_0x5cc0('0x74')][_0x5cc0('0x36')]['on'](_0x5cc0('0x7a'),(_0xbefd52,_0x31d8b2,_0xe46697)=>{if(!_0xe46697[_0x5cc0('0x33')][_0x5cc0('0x2')])return;const _0x4ec455=_0x31d8b2[_0x5cc0('0x4f')];if(!_0x4ec455)return;const _0x1fd7aa=_0xe46697['mapper'][_0x5cc0('0x82')](_0x4ec455);function _0xf06a82(_0x565c3d){return Array[_0x5cc0('0x81')](_0x565c3d)?_0x565c3d:[_0x565c3d];}_0x1fd7aa&&_0x5cc0('0x80')===_0x4ec455['name']&&_0x3fbed8(_0x1fd7aa,_0xe46697[_0x5cc0('0x56')],(_0x2e72dc,_0x3f049f,_0x107165)=>_0x107165['addClass'](_0xf06a82(_0x3f049f[_0x5cc0('0x2d')]),_0x2e72dc),(_0x373c2b,_0x54f7d4,_0x204026)=>_0x204026[_0x5cc0('0x25')](_0xf06a82(_0x54f7d4[_0x5cc0('0x2d')]),_0x373c2b));},{'priority':'highest'}),_0x5baea5[_0x5cc0('0x2c')][_0x5cc0('0x15')](_0x1c0c79=>{if(_0x5cc0('0x29')!=_0x1c0c79[_0x5cc0('0x8')]&&_0x5cc0('0x7c')!=_0x1c0c79['type'])return;const _0x14bb88=_0x1c0c79[_0x5cc0('0x71')]();if(null!=_0x14bb88&&_0x14bb88['is'](_0x5cc0('0x19'),_0x5cc0('0x44'))){if(_0x5cc0('0x29')==_0x1c0c79[_0x5cc0('0x8')]){const _0x34faee=_0x1c0c79[_0x5cc0('0x1d')]()[_0x5cc0('0x61')](_0x49a55f=>_0x49a55f['is'](_0x5cc0('0x40')))[_0x5cc0('0x7f')](_0x213c35=>_0x213c35['data']);if(_0x34faee[_0x5cc0('0x2e')])return{'type':'insertion','content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x1e'),'\x22'+_0x34faee['join']('\x20')+'\x22'))};}if(_0x5cc0('0x7c')==_0x1c0c79['type']){const _0x4fdcf0=_0x1c0c79[_0x5cc0('0x1d')]()['filter'](_0x19616a=>_0x19616a['is']('$textProxy'))[_0x5cc0('0x7f')](_0x3a47ac=>_0x3a47ac[_0x5cc0('0x74')]);if(_0x4fdcf0[_0x5cc0('0x2e')])return{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0x1e'),'\x22'+_0x4fdcf0[_0x5cc0('0x7e')]('\x20')+'\x22'))};}}}),_0x5baea5[_0x5cc0('0x2c')][_0x5cc0('0x15')](_0x2e5601=>{if(_0x5cc0('0x41')==_0x2e5601[_0x5cc0('0x86')]){const _0x180f70=_0x2e5601[_0x5cc0('0x1d')]()[_0x5cc0('0x61')](_0x4a6fb0=>_0x4a6fb0['is'](_0x5cc0('0x40')))[_0x5cc0('0x7f')](_0x56e3d4=>_0x56e3d4[_0x5cc0('0x74')]),_0x5c0f68=this[_0x5cc0('0x2b')](_0x2e5601),_0xdc50e0=_0x5c0f68[_0x5cc0('0x9')]-_0x5c0f68[_0x5cc0('0x2a')]+0x1;if(_0x5cc0('0x29')==_0x2e5601[_0x5cc0('0x8')])return _0x180f70[_0x5cc0('0x2e')]?{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xdc50e0,'\x22'+_0x180f70['join']('\x20')+'\x22']))}:{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x47'),_0xdc50e0))};if(_0x5cc0('0x7c')==_0x2e5601[_0x5cc0('0x8')])return _0x180f70['length']?{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0xd'),[_0xdc50e0,'\x22'+_0x180f70[_0x5cc0('0x7e')]('\x20')+'\x22']))}:{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0x47'),_0xdc50e0))};}if(_0x5cc0('0x5e')==_0x2e5601['subType']){const _0x311d1a=_0x2e5601[_0x5cc0('0x1d')]()[_0x5cc0('0x61')](_0x2f94a1=>_0x2f94a1['is'](_0x5cc0('0x40')))['map'](_0x260f16=>_0x260f16['data']),_0x18f40d=this['_getSuggestionCoords'](_0x2e5601),_0x33908c=_0x18f40d['maxColumn']-_0x18f40d[_0x5cc0('0x21')]+0x1;if(_0x5cc0('0x29')==_0x2e5601[_0x5cc0('0x8')])return _0x311d1a['length']?{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x38'),[_0x33908c,'\x22'+_0x311d1a[_0x5cc0('0x7e')]('\x20')+'\x22']))}:{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x84'),_0x33908c))};if(_0x5cc0('0x7c')==_0x2e5601[_0x5cc0('0x8')])return _0x311d1a[_0x5cc0('0x2e')]?{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33908c,'\x22'+_0x311d1a[_0x5cc0('0x7e')]('\x20')+'\x22']))}:{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0x84'),_0x33908c))};}}),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')](_0x5cc0('0x29'),'tableRow',_0x5cc0('0x20'),_0xb81d6),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback'](_0x5cc0('0x7c'),'tableRow','accept',_0xb81d6),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')](_0x5cc0('0x29'),_0x5cc0('0x5e'),_0x5cc0('0x20'),_0x3ad50d),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback']('deletion',_0x5cc0('0x5e'),_0x5cc0('0x4b'),_0x3ad50d),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback'](_0x5cc0('0x29'),'tableColumn',_0x5cc0('0x7e'),_0x18f750),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')](_0x5cc0('0x7c'),_0x5cc0('0x5e'),_0x5cc0('0x7e'),_0x18f750),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')]('insertion','tableRow',_0x5cc0('0x7e'),_0x574dba),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback'](_0x5cc0('0x7c'),_0x5cc0('0x41'),_0x5cc0('0x7e'),_0x574dba);}[_0x5cc0('0x77')](){const _0x224b36=this[_0x5cc0('0x67')],_0x47820d=_0x224b36[_0x5cc0('0x3d')][_0x5cc0('0x26')]['selection'];return(_0x6c00a6,_0xadb59e)=>{_0x224b36['model'][_0x5cc0('0x72')](_0x1e594c=>{const {commandName:_0x338c26,commandParams:_0x591d25}=_0xadb59e;let _0x596326=_0x6c00a6[0x0][_0x5cc0('0x6d')]['nodeBefore'];_0x591d25&&_0x591d25[0x0]&&!0x1===_0x591d25[0x0]['forceValue']&&(_0x596326=_0x6c00a6[0x0]['start'][_0x5cc0('0x50')]);const _0x1e8ea8=_0x1e594c['createRangeIn'](_0x596326);if(_0x5cc0('0x5c')==_0x1e8ea8[_0x5cc0('0x5f')][_0x5cc0('0x3a')])return;const _0x247643=Array[_0x5cc0('0xf')](_0x47820d[_0x5cc0('0x7')]())['map'](_0x423815=>_0x5366cb[_0x5cc0('0x12')](_0x423815));_0x1e594c['setSelection'](_0x1e8ea8),_0x224b36[_0x5cc0('0x0')]['get'](_0x338c26)[_0x5cc0('0x45')](),_0x591d25[_0x5cc0('0x24')]({'forceDefaultExecution':!0x0}),_0x224b36[_0x5cc0('0x7d')](_0x338c26,..._0x591d25);const _0x4b4924=_0x247643['filter'](_0x1151d1=>'$graveyard'!=_0x1151d1[_0x5cc0('0x5f')][_0x5cc0('0x3a')]);_0x4b4924['length']>0x0&&_0x1e594c[_0x5cc0('0x49')](_0x4b4924);for(const _0x246467 of _0x247643)_0x246467[_0x5cc0('0x34')]();});};}[_0x5cc0('0x6c')](_0x2813bb){const _0x5a50a3=this[_0x5cc0('0x67')][_0x5cc0('0x83')][_0x5cc0('0x14')](_0x5cc0('0x4c'));let _0x335ed5=Number[_0x5cc0('0x53')],_0x2d56e8=Number[_0x5cc0('0x22')],_0x1c41d0=Number[_0x5cc0('0x53')],_0x556fd6=Number[_0x5cc0('0x22')];for(const _0x5a1eea of _0x2813bb){if('$graveyard'==_0x5a1eea[_0x5cc0('0x5f')][_0x5cc0('0x3a')])continue;const {row:_0x1a0074,column:_0x56fe9c}=_0x5a50a3['getCellLocation'](_0x5a1eea),_0x24ca1a=_0x5a1eea[_0x5cc0('0x6')](_0x5cc0('0x7b'))?_0x5a1eea[_0x5cc0('0x27')](_0x5cc0('0x7b'))-0x1:0x0,_0x1e176c=_0x5a1eea[_0x5cc0('0x6')](_0x5cc0('0x3b'))?_0x5a1eea[_0x5cc0('0x27')](_0x5cc0('0x3b'))-0x1:0x0;_0x335ed5=_0x1a0074<_0x335ed5?_0x1a0074:_0x335ed5,_0x2d56e8=_0x1a0074+_0x24ca1a>_0x2d56e8?_0x1a0074+_0x24ca1a:_0x2d56e8,_0x1c41d0=_0x56fe9c<_0x1c41d0?_0x56fe9c:_0x1c41d0,_0x556fd6=_0x56fe9c+_0x1e176c>_0x556fd6?_0x56fe9c+_0x1e176c:_0x556fd6;}return{'minRow':_0x335ed5,'maxRow':_0x2d56e8,'minColumn':_0x1c41d0,'maxColumn':_0x556fd6};}[_0x5cc0('0x63')](){const _0x1f71df=this['editor'],_0x4625f1=_0x1f71df['plugins'][_0x5cc0('0x14')](_0x5cc0('0x59')),_0x57c9b2=_0x1f71df[_0x5cc0('0x83')][_0x5cc0('0x14')]('TableUtils');_0x1f71df['model'][_0x5cc0('0x26')]['on'](_0x5cc0('0x1c'),()=>{const _0x1c0b5a=Array['from'](_0x1f71df['model']['document']['differ'][_0x5cc0('0x3e')]());for(const {name:_0x3fc7cc,data:_0x44decf}of _0x1c0b5a){const {group:_0xb71735,id:_0x1dfd26,subType:_0x5850ae}=_0x4625f1[_0x5cc0('0x1b')](_0x3fc7cc);if(_0x5cc0('0x55')!=_0xb71735)continue;if(null!=_0x44decf[_0x5cc0('0x10')])continue;const _0x5f135a=_0x4625f1[_0x5cc0('0x64')](_0x1dfd26);this[_0x5cc0('0x79')][_0x5cc0('0xc')](_0x5850ae)&&this[_0x5cc0('0x4')][_0x5cc0('0x6a')](_0x5f135a);}},{'priority':'low'});const _0x128267=(_0x13154b,_0x54cd4c)=>{let _0x3102bd=!0x1;const _0xe1552a=_0x54cd4c[_0x5cc0('0xe')](_0x13154b),_0x4b9471=_0x13154b[_0x5cc0('0x37')](_0x5cc0('0x44')),_0x34efde=_0x57c9b2['getCellLocation'](_0x13154b);for(const _0x24991b of this['_tableSuggestions']){const _0x193c7d=_0x24991b[_0x5cc0('0x86')],_0x4b48ac=_0x193c7d['startsWith']('tablePaste'),_0x3a8ede=_0x193c7d[_0x5cc0('0x16')](_0x4b48ac?0xa:0x5),_0x16b25e=_0x3a8ede[_0x5cc0('0x4a')](),_0x35a397=_0x16b25e['substr'](0x0,0x3)+'span',_0x343d86='min'+_0x3a8ede,_0x2c014e=_0x5cc0('0x70')+_0x3a8ede;if(!_0x24991b[_0x5cc0('0x58')])continue;if(_0x4b9471!=_0x24991b[_0x5cc0('0x66')]()[_0x5cc0('0x39')]['findAncestor'](_0x5cc0('0x44')))continue;if(_0x24991b[_0x5cc0('0x65')](_0xe1552a))continue;const _0x5bfb19=_0x13154b[_0x5cc0('0x6')](_0x35a397)?_0x13154b[_0x5cc0('0x27')](_0x35a397)-0x1:0x0,_0x35a2cb=this[_0x5cc0('0x2b')](_0x24991b),_0x3ae0b5=_0x35a2cb[_0x343d86],_0x45d824=_0x35a2cb[_0x2c014e];_0x3ae0b5<=_0x34efde[_0x16b25e]&&_0x34efde[_0x16b25e]+_0x5bfb19<=_0x45d824&&(_0x24991b[_0x5cc0('0x31')](_0xe1552a),_0x3102bd=!0x0);}return _0x3102bd;};_0x1f71df['model'][_0x5cc0('0x26')][_0x5cc0('0x5')](_0x9cf32a=>{let _0x3e59c4=!0x1;for(const _0x461745 of _0x1f71df[_0x5cc0('0x3d')]['document'][_0x5cc0('0x6b')][_0x5cc0('0x3f')]())if(_0x5cc0('0x4d')==_0x461745[_0x5cc0('0x8')]){if(_0x5cc0('0x41')==_0x461745[_0x5cc0('0x62')])for(const _0x4e203a of _0x461745[_0x5cc0('0x85')]['nodeAfter'][_0x5cc0('0x5a')]())_0x3e59c4=_0x3e59c4||_0x128267(_0x4e203a,_0x9cf32a);else _0x5cc0('0x80')==_0x461745[_0x5cc0('0x62')]&&(_0x3e59c4=_0x3e59c4||_0x128267(_0x461745[_0x5cc0('0x85')][_0x5cc0('0x50')],_0x9cf32a));}return _0x3e59c4;});}[_0x5cc0('0x2b')](_0x3ca9d7){return this[_0x5cc0('0x6c')](_0x3ca9d7[_0x5cc0('0x7')]()[_0x5cc0('0x7f')](_0x4830f9=>_0x4830f9['start']['nodeAfter']));}}function se(_0x16bdf7){return Array[_0x5cc0('0xf')](new Set(_0x16bdf7)[_0x5cc0('0x42')]());}
|
|
23
|
+
const _0x44c1=['options','differ','hasAttribute','addRange','createRangeIn','forceValue','push','getAttribute','every','change:data','writer','batch','removeTableRow','element','ELEMENT_TABLE_COLUMN_WITH_TEXT','join','rowspan','mapper','maxRow','insert','removeClass','map','nodeAfter','markMultiRangeInsertion','above','*Remove:*\x20%0','locale','selectTableColumn','root','ELEMENT_TABLE_ROW_WITH_TEXT','some','insertion','getCellLocation','data','classes','getColumnIndexes','MIN_SAFE_INTEGER','highest','min','name','subType','tableColumn','detach','item','_tablePostFixingSubtypes','insertTableColumnRight','table','tableCell','accept','addMarker:suggestion','oldRange','createPositionAt','$graveyard','selection','isInContent','createTableWalker','toLowerCase','isEqual','add','get','values','maxColumn','_tableSuggestions','span','deletion','_getCoordsForCells','addClass','setSelection','type','last','getSuggestion','getChildren','getFirstRange','enableCommand','model','getRanges','getItems','createRangeOn','commands','_getSuggestionCoords','getSelectionAffectedTableCells','findAncestor','execute','ELEMENT_TABLE_ROW','has','TableUtils','_descriptionFactory','$textProxy','cell','start','insertTableRowBelow','suggestion','getChanges','document','plugins','tablePaste','downcastDispatcher','substr','getContainedElement','max','editor','showSuggestionHighlights','rootName','isIntersectingWithRange','colspan','afterInit','tableRow','filter','refresh','nodeBefore','first','enqueueChange','removeTableColumn','*Insert:*\x20%0','length','MAX_SAFE_INTEGER','getChangedMarkers','isTouching','change','minRow','startsWith','_setupColumnsRowsFixing','from','left','end','TrackChangesEditing','_splitMarkerName','_suggestionFactory','fromRange','_acceptFormatSuggestionCallbackFactory','registerCustomCallback','getRowIndexes','ELEMENT_TABLE_WITH_TEXT','ELEMENT_TABLE_COLUMN'];(function(_0x181bb5,_0x44c168){const _0x415afb=function(_0x161e0f){while(--_0x161e0f){_0x181bb5['push'](_0x181bb5['shift']());}};_0x415afb(++_0x44c168);}(_0x44c1,0xc9));const _0x415a=function(_0x181bb5,_0x44c168){_0x181bb5=_0x181bb5-0x0;let _0x415afb=_0x44c1[_0x181bb5];return _0x415afb;};import{Plugin as _0x131160}from'ckeditor5/src/core';import{LiveRange as _0xeafbc7}from'ckeditor5/src/engine';import{setHighlightHandling as _0x493a31}from'ckeditor5/src/widget';import{getTranslation as _0x313188}from'../utils/common-translations';export default class mt extends _0x131160{constructor(_0x2150a2){super(_0x2150a2),this[_0x415a('0x6f')]=[_0x415a('0x27'),_0x415a('0x6c')],this[_0x415a('0x81')]=new Set();}[_0x415a('0x26')](){const _0x14238f=this[_0x415a('0x21')],_0xfe88a0=_0x14238f[_0x415a('0x7')][_0x415a('0x1a')]['selection'];if(!_0x14238f['plugins'][_0x415a('0x11')]('TableEditing'))return;const _0x5f4768=_0x14238f[_0x415a('0x5d')],_0x142b26=_0x14238f[_0x415a('0x1b')][_0x415a('0x7e')](_0x415a('0x3a')),_0x2ee131=_0x14238f['plugins'][_0x415a('0x7e')]('TableUtils');_0x142b26[_0x415a('0x13')]['registerElementLabel'](_0x415a('0x71'),_0x42681b=>_0x313188(_0x5f4768,'ELEMENT_TABLE',_0x42681b)),this[_0x415a('0x36')](),_0x142b26[_0x415a('0x6')]('insertTable'),_0x142b26[_0x415a('0x6')]('selectTableRow'),_0x142b26[_0x415a('0x6')](_0x415a('0x5e'));for(const _0x24da05 of['insertTableRowAbove',_0x415a('0x17')]){const _0x5f3ffe=_0x14238f['commands'][_0x415a('0x7e')](_0x24da05);_0x142b26['enableCommand'](_0x24da05,_0x1df2d4=>{_0x14238f[_0x415a('0x7')][_0x415a('0x33')](_0x5e7925=>{_0x1df2d4();const _0x41dd56=_0x415a('0x5b')===_0x5f3ffe['order'],_0x585133=_0x2ee131[_0x415a('0xd')](_0xfe88a0),_0x4e4459=_0x2ee131[_0x415a('0x40')](_0x585133),_0xcb97b5=_0x41dd56?_0x4e4459['first']-0x1:_0x4e4459[_0x415a('0x2')]+0x1,_0x10d204=_0x585133[0x0][_0x415a('0xe')]('table'),_0x5b4c54=_0x2ee131['createTableWalker'](_0x10d204,{'startRow':_0xcb97b5,'endRow':_0xcb97b5}),_0x55bad6=Array['from'](_0x5b4c54)[_0x415a('0x58')](_0x539eab=>_0x5e7925[_0x415a('0xa')](_0x539eab[_0x415a('0x15')]));_0x142b26[_0x415a('0x5a')](_0x55bad6,'tableRow');});});}for(const _0x410398 of['insertTableColumnLeft',_0x415a('0x70')]){const _0x5a23a4=_0x14238f['commands']['get'](_0x410398);_0x142b26[_0x415a('0x6')](_0x410398,_0x5be921=>{_0x14238f[_0x415a('0x7')][_0x415a('0x33')](_0x5cfd9f=>{_0x5be921();const _0xbf9bae=_0x415a('0x38')===_0x5a23a4['order'],_0x2b2ab8=_0x2ee131['getSelectionAffectedTableCells'](_0xfe88a0),_0x3a6e3=_0x2ee131['getColumnIndexes'](_0x2b2ab8),_0x47861d=_0xbf9bae?_0x3a6e3['first']-0x1:_0x3a6e3[_0x415a('0x2')]+0x1,_0x793d32=_0x2b2ab8[0x0][_0x415a('0xe')](_0x415a('0x71')),_0x4dba9f=_0x2ee131[_0x415a('0x7a')](_0x793d32,{'startRow':0x0,'column':_0x47861d,'includeAllSlots':!0x1}),_0x486fd2=Array[_0x415a('0x37')](_0x4dba9f)[_0x415a('0x58')](_0xc0029a=>_0x5cfd9f[_0x415a('0xa')](_0xc0029a[_0x415a('0x15')]));_0x142b26[_0x415a('0x5a')](_0x486fd2,'tableColumn');});});}for(const _0x139dfc of[_0x415a('0x4f'),_0x415a('0x2d')]){const _0xe98fe7=_0x139dfc[_0x415a('0x1e')](0xb),_0x3b457f=_0xe98fe7[_0x415a('0x7b')](),_0x500a3b=_0x3b457f[_0x415a('0x1e')](0x0,0x3)+_0x415a('0x82'),_0x572ca1=_0x415a('0x71')+_0xe98fe7,_0x3b9f51=_0x415a('0x69')+_0xe98fe7,_0x50d746='max'+_0xe98fe7;_0x142b26[_0x415a('0x6')](_0x139dfc,()=>{_0x14238f[_0x415a('0x7')]['change'](_0x59b602=>{const _0xbba55c=_0x2ee131[_0x415a('0xd')](_0xfe88a0),_0x110e54=_0xbba55c[0x0][_0x415a('0xe')](_0x415a('0x71'));let _0x1feb2f;if(_0x415a('0x4f')==_0x139dfc){const _0x58fda5=_0x2ee131[_0x415a('0x40')](_0xbba55c);_0x1feb2f={'startRow':_0x58fda5[_0x415a('0x2b')],'endRow':_0x58fda5[_0x415a('0x2')],'includeAllSlots':!0x0};}else{const _0x40113f=_0x2ee131[_0x415a('0x66')](_0xbba55c);_0x1feb2f={'startColumn':_0x40113f[_0x415a('0x2b')],'endColumn':_0x40113f[_0x415a('0x2')],'includeAllSlots':!0x0};}const _0x5a39ad=_0x2ee131[_0x415a('0x7a')](_0x110e54,_0x1feb2f),_0x3ee534=Array[_0x415a('0x37')](_0x5a39ad)[_0x415a('0x58')](({cell:_0x2ccc3e})=>_0x2ccc3e),_0x43d305=se(_0x3ee534['filter'](_0x8d8946=>_0x8d8946['hasAttribute'](_0x500a3b))),_0x4942e7=se(_0x3ee534[_0x415a('0x28')](_0x514bbc=>!_0x514bbc['hasAttribute'](_0x500a3b)))['map'](_0x16f968=>_0x59b602[_0x415a('0xa')](_0x16f968)),_0xebb0b=_0x142b26['markMultiRangeDeletion'](_0x4942e7,_0x572ca1);if(_0xebb0b&&(_0x415a('0x27')==_0xebb0b[_0x415a('0x6b')]||_0x415a('0x6c')==_0xebb0b['subType'])){const _0x26a5c5=this[_0x415a('0xc')](_0xebb0b);for(const _0x34b375 of _0x43d305){const _0x1b4bd3=_0x59b602[_0x415a('0xa')](_0x34b375),_0x419cea=_0x2ee131[_0x415a('0x63')](_0x34b375),_0x2ee30a=_0x34b375[_0x415a('0x4a')](_0x500a3b)-0x1,_0x49571e=_0x26a5c5[_0x3b9f51],_0x1df714=_0x26a5c5[_0x50d746];_0x49571e<=_0x419cea[_0x3b457f]&&_0x419cea[_0x3b457f]+_0x2ee30a<=_0x1df714&&_0xebb0b['addRange'](_0x1b4bd3);}}});});}function _0x78bdad(_0x5232a2){const _0x953fdd=Array[_0x415a('0x37')](_0xfe88a0[_0x415a('0x8')]())[_0x415a('0x58')](_0x348ad2=>_0xeafbc7[_0x415a('0x3d')](_0x348ad2));_0x14238f[_0x415a('0x7')]['change'](_0x3825ab=>{const _0x6eee50=_0x3825ab[_0x415a('0x4e')];_0x5232a2=_0x5232a2[_0x415a('0x28')](_0x33ceec=>_0x415a('0x77')!=_0x33ceec['root'][_0x415a('0x23')]),_0x3825ab[_0x415a('0x0')](_0x5232a2),_0x14238f[_0x415a('0xb')][_0x415a('0x7e')](_0x415a('0x4f'))[_0x415a('0x29')](),_0x14238f['execute'](_0x415a('0x4f'),{'forceDefaultExecution':!0x0}),_0x14238f['model']['enqueueChange'](()=>{_0x14238f[_0x415a('0x7')][_0x415a('0x2c')](_0x6eee50,_0x30ec12=>{const _0x25127a=_0x953fdd[_0x415a('0x28')](_0x20b3f4=>'$graveyard'!=_0x20b3f4[_0x415a('0x5f')][_0x415a('0x23')]);_0x25127a[_0x415a('0x2f')]>0x0&&_0x30ec12['setSelection'](_0x25127a);for(const _0x328548 of _0x953fdd)_0x328548[_0x415a('0x6d')]();});});});}function _0x1f260a(_0x315823){_0x14238f['model'][_0x415a('0x33')](_0x1f32f9=>{const _0xdba518=Array['from'](_0xfe88a0[_0x415a('0x8')]())[_0x415a('0x58')](_0x1ad3bc=>_0xeafbc7[_0x415a('0x3d')](_0x1ad3bc)),_0xb9bca1=[];for(const _0x21d4ea of _0x315823)for(const _0x18ca60 of _0x21d4ea[_0x415a('0x9')]({'shallow':!0x0}))_0xb9bca1[_0x415a('0x49')](_0x18ca60);for(const _0x1954de of _0xb9bca1)_0x415a('0x77')!=_0x1954de[_0x415a('0x5f')]['rootName']&&(_0x1f32f9['setSelection'](_0x1f32f9[_0x415a('0x76')](_0x1954de,0x0)),_0x14238f['commands'][_0x415a('0x7e')](_0x415a('0x2d'))[_0x415a('0x29')](),_0x14238f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x469e0e=_0xdba518[_0x415a('0x28')](_0x1c851d=>'$graveyard'!=_0x1c851d[_0x415a('0x5f')][_0x415a('0x23')]);_0x469e0e[_0x415a('0x2f')]>0x0&&_0x1f32f9[_0x415a('0x0')](_0x469e0e);for(const _0x4b1578 of _0xdba518)_0x4b1578[_0x415a('0x6d')]();});}function _0x500661(_0x48071b,_0x598bd1){return _0x598bd1[_0x415a('0x4b')](_0x10b5b1=>_0x48071b[_0x415a('0x61')](_0x55cc71=>_0x55cc71['end'][_0x415a('0x7c')](_0x10b5b1[_0x415a('0x16')])||_0x10b5b1[_0x415a('0x39')][_0x415a('0x7c')](_0x55cc71[_0x415a('0x16')])));}function _0x4480c9(_0x133b0f,_0x3ebeb9){return _0x133b0f[_0x415a('0x61')](_0x2b689a=>_0x3ebeb9[_0x415a('0x61')](_0x35aada=>_0x2b689a[_0x415a('0x39')][_0x415a('0x32')](_0x35aada['start'])));}_0x14238f['data'][_0x415a('0x1d')]['on'](_0x415a('0x74'),(_0x383aa9,_0x39e485,_0x10f83c)=>{if(!_0x10f83c[_0x415a('0x43')][_0x415a('0x22')])return;const _0x567d2d=_0x39e485[_0x415a('0x6e')];if(!_0x567d2d)return;const _0x48e0e5=_0x10f83c[_0x415a('0x54')]['toViewElement'](_0x567d2d);function _0x458b00(_0xe8d843){return Array['isArray'](_0xe8d843)?_0xe8d843:[_0xe8d843];}_0x48e0e5&&_0x415a('0x72')===_0x567d2d['name']&&_0x493a31(_0x48e0e5,_0x10f83c[_0x415a('0x4d')],(_0x3d94f2,_0x49d184,_0x496240)=>_0x496240[_0x415a('0x85')](_0x458b00(_0x49d184[_0x415a('0x65')]),_0x3d94f2),(_0x4b480c,_0x28ba28,_0xd7e87)=>_0xd7e87[_0x415a('0x57')](_0x458b00(_0x28ba28['classes']),_0x4b480c));},{'priority':_0x415a('0x68')}),_0x142b26['_descriptionFactory']['registerDescriptionCallback'](_0x50cdb3=>{if(_0x415a('0x62')!=_0x50cdb3[_0x415a('0x1')]&&'deletion'!=_0x50cdb3[_0x415a('0x1')])return;const _0x5af855=_0x50cdb3[_0x415a('0x1f')]();if(null!=_0x5af855&&_0x5af855['is'](_0x415a('0x50'),_0x415a('0x71'))){if('insertion'==_0x50cdb3[_0x415a('0x1')]){const _0x37defc=_0x50cdb3['getItems']()[_0x415a('0x28')](_0x47be46=>_0x47be46['is']('$textProxy'))[_0x415a('0x58')](_0x54888d=>_0x54888d[_0x415a('0x64')]);if(_0x37defc[_0x415a('0x2f')])return{'type':'insertion','content':_0x313188(_0x5f4768,_0x415a('0x2e'),_0x313188(_0x5f4768,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37defc['join']('\x20')+'\x22'))};}if(_0x415a('0x83')==_0x50cdb3[_0x415a('0x1')]){const _0xb88381=_0x50cdb3[_0x415a('0x9')]()['filter'](_0x354d6c=>_0x354d6c['is'](_0x415a('0x14')))['map'](_0x526a45=>_0x526a45[_0x415a('0x64')]);if(_0xb88381[_0x415a('0x2f')])return{'type':_0x415a('0x83'),'content':_0x313188(_0x5f4768,'*Remove:*\x20%0',_0x313188(_0x5f4768,_0x415a('0x41'),'\x22'+_0xb88381[_0x415a('0x52')]('\x20')+'\x22'))};}}}),_0x142b26['_descriptionFactory']['registerDescriptionCallback'](_0x411c65=>{if(_0x415a('0x27')==_0x411c65[_0x415a('0x6b')]){const _0x4850d6=_0x411c65['getItems']()[_0x415a('0x28')](_0x2abd87=>_0x2abd87['is'](_0x415a('0x14')))[_0x415a('0x58')](_0x3709d7=>_0x3709d7[_0x415a('0x64')]),_0x476b7d=this[_0x415a('0xc')](_0x411c65),_0x7c2749=_0x476b7d[_0x415a('0x55')]-_0x476b7d[_0x415a('0x34')]+0x1;if(_0x415a('0x62')==_0x411c65[_0x415a('0x1')])return _0x4850d6[_0x415a('0x2f')]?{'type':'insertion','content':_0x313188(_0x5f4768,'*Insert:*\x20%0',_0x313188(_0x5f4768,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7c2749,'\x22'+_0x4850d6[_0x415a('0x52')]('\x20')+'\x22']))}:{'type':_0x415a('0x62'),'content':_0x313188(_0x5f4768,'*Insert:*\x20%0',_0x313188(_0x5f4768,_0x415a('0x10'),_0x7c2749))};if(_0x415a('0x83')==_0x411c65[_0x415a('0x1')])return _0x4850d6[_0x415a('0x2f')]?{'type':_0x415a('0x83'),'content':_0x313188(_0x5f4768,_0x415a('0x5c'),_0x313188(_0x5f4768,_0x415a('0x60'),[_0x7c2749,'\x22'+_0x4850d6[_0x415a('0x52')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x313188(_0x5f4768,'*Remove:*\x20%0',_0x313188(_0x5f4768,_0x415a('0x10'),_0x7c2749))};}if(_0x415a('0x6c')==_0x411c65[_0x415a('0x6b')]){const _0xa14096=_0x411c65[_0x415a('0x9')]()[_0x415a('0x28')](_0x1f3736=>_0x1f3736['is'](_0x415a('0x14')))[_0x415a('0x58')](_0x159c69=>_0x159c69[_0x415a('0x64')]),_0x5269bb=this[_0x415a('0xc')](_0x411c65),_0x54091e=_0x5269bb[_0x415a('0x80')]-_0x5269bb['minColumn']+0x1;if(_0x415a('0x62')==_0x411c65[_0x415a('0x1')])return _0xa14096[_0x415a('0x2f')]?{'type':_0x415a('0x62'),'content':_0x313188(_0x5f4768,_0x415a('0x2e'),_0x313188(_0x5f4768,_0x415a('0x51'),[_0x54091e,'\x22'+_0xa14096['join']('\x20')+'\x22']))}:{'type':_0x415a('0x62'),'content':_0x313188(_0x5f4768,_0x415a('0x2e'),_0x313188(_0x5f4768,_0x415a('0x42'),_0x54091e))};if(_0x415a('0x83')==_0x411c65[_0x415a('0x1')])return _0xa14096[_0x415a('0x2f')]?{'type':_0x415a('0x83'),'content':_0x313188(_0x5f4768,_0x415a('0x5c'),_0x313188(_0x5f4768,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54091e,'\x22'+_0xa14096[_0x415a('0x52')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x313188(_0x5f4768,_0x415a('0x5c'),_0x313188(_0x5f4768,_0x415a('0x42'),_0x54091e))};}}),_0x142b26[_0x415a('0x3c')]['registerCustomCallback'](_0x415a('0x62'),_0x415a('0x27'),'discard',_0x78bdad),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')](_0x415a('0x83'),'tableRow','accept',_0x78bdad),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')](_0x415a('0x62'),_0x415a('0x6c'),'discard',_0x1f260a),_0x142b26[_0x415a('0x3c')]['registerCustomCallback']('deletion',_0x415a('0x6c'),_0x415a('0x73'),_0x1f260a),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')](_0x415a('0x62'),'tableColumn','join',_0x500661),_0x142b26[_0x415a('0x3c')]['registerCustomCallback']('deletion','tableColumn',_0x415a('0x52'),_0x500661),_0x142b26['_suggestionFactory']['registerCustomCallback'](_0x415a('0x62'),'tableRow','join',_0x4480c9),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')]('deletion','tableRow',_0x415a('0x52'),_0x4480c9);}[_0x415a('0x3e')](){const _0x26c117=this[_0x415a('0x21')],_0x4541dc=_0x26c117[_0x415a('0x7')]['document'][_0x415a('0x78')];return(_0x3de249,_0x5c3e73)=>{_0x26c117[_0x415a('0x7')][_0x415a('0x33')](_0x46cfad=>{const {commandName:_0xdaf560,commandParams:_0x330ae8}=_0x5c3e73;let _0x532c11=_0x3de249[0x0][_0x415a('0x39')][_0x415a('0x2a')];_0x330ae8&&_0x330ae8[0x0]&&!0x1===_0x330ae8[0x0][_0x415a('0x48')]&&(_0x532c11=_0x3de249[0x0][_0x415a('0x16')]['nodeAfter']);const _0x504d04=_0x46cfad[_0x415a('0x47')](_0x532c11);if(_0x415a('0x77')==_0x504d04[_0x415a('0x5f')][_0x415a('0x23')])return;const _0x765509=Array['from'](_0x4541dc[_0x415a('0x8')]())[_0x415a('0x58')](_0x56e160=>_0xeafbc7[_0x415a('0x3d')](_0x56e160));_0x46cfad[_0x415a('0x0')](_0x504d04),_0x26c117[_0x415a('0xb')][_0x415a('0x7e')](_0xdaf560)['refresh'](),_0x330ae8['push']({'forceDefaultExecution':!0x0}),_0x26c117[_0x415a('0xf')](_0xdaf560,..._0x330ae8);const _0x17ee7a=_0x765509['filter'](_0xccc68b=>_0x415a('0x77')!=_0xccc68b[_0x415a('0x5f')][_0x415a('0x23')]);_0x17ee7a[_0x415a('0x2f')]>0x0&&_0x46cfad[_0x415a('0x0')](_0x17ee7a);for(const _0x120b82 of _0x765509)_0x120b82[_0x415a('0x6d')]();});};}[_0x415a('0x84')](_0x31335b){const _0x2ef98a=this[_0x415a('0x21')][_0x415a('0x1b')][_0x415a('0x7e')](_0x415a('0x12'));let _0x5d258d=Number[_0x415a('0x30')],_0x238b9c=Number[_0x415a('0x67')],_0x24952d=Number[_0x415a('0x30')],_0x5539f0=Number[_0x415a('0x67')];for(const _0x346959 of _0x31335b){if('$graveyard'==_0x346959[_0x415a('0x5f')][_0x415a('0x23')])continue;const {row:_0x587dab,column:_0x86ef47}=_0x2ef98a[_0x415a('0x63')](_0x346959),_0xdcc15d=_0x346959[_0x415a('0x45')](_0x415a('0x53'))?_0x346959[_0x415a('0x4a')](_0x415a('0x53'))-0x1:0x0,_0x243a5e=_0x346959[_0x415a('0x45')](_0x415a('0x25'))?_0x346959[_0x415a('0x4a')](_0x415a('0x25'))-0x1:0x0;_0x5d258d=_0x587dab<_0x5d258d?_0x587dab:_0x5d258d,_0x238b9c=_0x587dab+_0xdcc15d>_0x238b9c?_0x587dab+_0xdcc15d:_0x238b9c,_0x24952d=_0x86ef47<_0x24952d?_0x86ef47:_0x24952d,_0x5539f0=_0x86ef47+_0x243a5e>_0x5539f0?_0x86ef47+_0x243a5e:_0x5539f0;}return{'minRow':_0x5d258d,'maxRow':_0x238b9c,'minColumn':_0x24952d,'maxColumn':_0x5539f0};}[_0x415a('0x36')](){const _0x32b5cf=this[_0x415a('0x21')],_0xaa66b4=_0x32b5cf[_0x415a('0x1b')][_0x415a('0x7e')](_0x415a('0x3a')),_0x222980=_0x32b5cf[_0x415a('0x1b')]['get'](_0x415a('0x12'));_0x32b5cf['model']['document']['on'](_0x415a('0x4c'),()=>{const _0x4a207b=Array[_0x415a('0x37')](_0x32b5cf['model'][_0x415a('0x1a')][_0x415a('0x44')][_0x415a('0x31')]());for(const {name:_0xe20032,data:_0x4f7ff6}of _0x4a207b){const {group:_0x469d9f,id:_0x144664,subType:_0x1431b8}=_0xaa66b4[_0x415a('0x3b')](_0xe20032);if(_0x415a('0x18')!=_0x469d9f)continue;if(null!=_0x4f7ff6[_0x415a('0x75')])continue;const _0x33c71f=_0xaa66b4[_0x415a('0x3')](_0x144664);this[_0x415a('0x6f')]['includes'](_0x1431b8)&&this[_0x415a('0x81')][_0x415a('0x7d')](_0x33c71f);}},{'priority':'low'});const _0x50782b=(_0x6785e3,_0x9799f2)=>{let _0x5a404d=!0x1;const _0xf6f432=_0x9799f2[_0x415a('0xa')](_0x6785e3),_0x3eab95=_0x6785e3[_0x415a('0xe')](_0x415a('0x71')),_0x52fc34=_0x222980[_0x415a('0x63')](_0x6785e3);for(const _0x3d87fb of this[_0x415a('0x81')]){const _0x443986=_0x3d87fb['subType'],_0x32d957=_0x443986[_0x415a('0x35')](_0x415a('0x1c')),_0x2088dc=_0x443986[_0x415a('0x1e')](_0x32d957?0xa:0x5),_0x381eaa=_0x2088dc[_0x415a('0x7b')](),_0x19ea05=_0x381eaa[_0x415a('0x1e')](0x0,0x3)+_0x415a('0x82'),_0x3e1a37='min'+_0x2088dc,_0x4bd284=_0x415a('0x20')+_0x2088dc;if(!_0x3d87fb[_0x415a('0x79')])continue;if(_0x3eab95!=_0x3d87fb[_0x415a('0x5')]()[_0x415a('0x16')][_0x415a('0xe')]('table'))continue;if(_0x3d87fb[_0x415a('0x24')](_0xf6f432))continue;const _0x56e3e1=_0x6785e3[_0x415a('0x45')](_0x19ea05)?_0x6785e3['getAttribute'](_0x19ea05)-0x1:0x0,_0x1efab1=this[_0x415a('0xc')](_0x3d87fb),_0x5a567a=_0x1efab1[_0x3e1a37],_0x362115=_0x1efab1[_0x4bd284];_0x5a567a<=_0x52fc34[_0x381eaa]&&_0x52fc34[_0x381eaa]+_0x56e3e1<=_0x362115&&(_0x3d87fb[_0x415a('0x46')](_0xf6f432),_0x5a404d=!0x0);}return _0x5a404d;};_0x32b5cf[_0x415a('0x7')][_0x415a('0x1a')]['registerPostFixer'](_0x1d4826=>{let _0x1a57bf=!0x1;for(const _0x3047c2 of _0x32b5cf[_0x415a('0x7')][_0x415a('0x1a')][_0x415a('0x44')][_0x415a('0x19')]())if(_0x415a('0x56')==_0x3047c2[_0x415a('0x1')]){if('tableRow'==_0x3047c2[_0x415a('0x6a')])for(const _0x4e1221 of _0x3047c2['position'][_0x415a('0x59')][_0x415a('0x4')]())_0x1a57bf=_0x1a57bf||_0x50782b(_0x4e1221,_0x1d4826);else'tableCell'==_0x3047c2[_0x415a('0x6a')]&&(_0x1a57bf=_0x1a57bf||_0x50782b(_0x3047c2['position'][_0x415a('0x59')],_0x1d4826));}return _0x1a57bf;});}[_0x415a('0xc')](_0x5d7f90){return this['_getCoordsForCells'](_0x5d7f90[_0x415a('0x8')]()[_0x415a('0x58')](_0x5f0f9b=>_0x5f0f9b[_0x415a('0x16')][_0x415a('0x59')]));}}function se(_0x43e34f){return Array[_0x415a('0x37')](new Set(_0x43e34f)[_0x415a('0x7f')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54a9=['get','has','plugins','TrackChangesEditing','TableCaptionEditing','editor','enableCommand','requires','afterInit'];(function(_0x4c6eda,_0x54a9a2){const _0x2c48f1=function(_0x26d204){while(--_0x26d204){_0x4c6eda['push'](_0x4c6eda['shift']());}};_0x2c48f1(++_0x54a9a2);}(_0x54a9,0x1a5));const _0x2c48=function(_0x4c6eda,_0x54a9a2){_0x4c6eda=_0x4c6eda-0x0;let _0x2c48f1=_0x54a9[_0x4c6eda];return _0x2c48f1;};import{Plugin as _0x2b8290}from'ckeditor5/src/core';import _0xc11186 from'./table';export default class vt extends _0x2b8290{static get[_0x2c48('0x0')](){return[_0xc11186];}[_0x2c48('0x1')](){const _0x18b59d=this[_0x2c48('0x7')];if(!_0x18b59d[_0x2c48('0x4')][_0x2c48('0x3')](_0x2c48('0x6')))return;_0x18b59d[_0x2c48('0x4')][_0x2c48('0x2')](_0x2c48('0x5'))[_0x2c48('0x8')]('toggleTableCaption');}}
|