@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.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.d.ts +12 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- 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 _0xedc4=['numbered','listStyle','toUpperCase','commandName','createPositionAt','handleListStyleCommand','_getSuggestionBlocksForListStyle','styles','document','model','_descriptionFactory','listType','getLastPosition','handleDescriptions','_getTranslationKeyForListStyle','getSiblingNodes','change','filter','_LIST_','getAttribute','ListPropertiesEditing','plugins','reversed','locale','config','from','bind','_getSuggestionBlocks','format','TrackChangesEditing','replace','get','commandParams','length','registerDescriptionCallback','listReversed','*Format:*\x20set\x20start\x20index\x20to\x20%0','getSelectedBlocks','*Format:*\x20set\x20order\x20to\x20regular','getFirstPosition','map','has','unshift','listStart','element','markMultiRangeBlockFormat','getListTypeFromListStyleType','*Change\x20to:*\x20%0','afterInit','backward','forward','*Format:*\x20set\x20order\x20to\x20reversed','editor','ELEMENT_','ListUtils','flat','selection','createRange','enableCommand','handleListReversedCommand','type','startIndex','list.properties','listItem','handleListStartCommand'];(function(_0x37e67a,_0xedc413){const _0x2d7efc=function(_0x4a9a94){while(--_0x4a9a94){_0x37e67a['push'](_0x37e67a['shift']());}};_0x2d7efc(++_0xedc413);}(_0xedc4,0x14f));const _0x2d7e=function(_0x37e67a,_0xedc413){_0x37e67a=_0x37e67a-0x0;let _0x2d7efc=_0xedc4[_0x37e67a];return _0x2d7efc;};import{Plugin as _0x22e58a}from'ckeditor5/src/core';import{getTranslation as _0x2fe4c2}from'../utils/common-translations';export default class nt extends _0x22e58a{[_0x2d7e('0x26')](){if(!this[_0x2d7e('0x2a')]['plugins'][_0x2d7e('0x1f')](_0x2d7e('0xa')))return;const _0x4bdbd4=this[_0x2d7e('0x2a')][_0x2d7e('0xe')][_0x2d7e('0x15')](_0x2d7e('0x34')),_0x3dc500=this[_0x2d7e('0x2a')]['plugins'][_0x2d7e('0x15')](_0x2d7e('0x13'));_0x4bdbd4[_0x2d7e('0x3e')]&&_0x3dc500[_0x2d7e('0x30')](_0x2d7e('0x38'),this['handleListStyleCommand'][_0x2d7e('0x10')](this)),_0x4bdbd4['reversed']&&_0x3dc500[_0x2d7e('0x30')](_0x2d7e('0x19'),this['handleListReversedCommand']['bind'](this)),_0x4bdbd4[_0x2d7e('0x33')]&&_0x3dc500['enableCommand'](_0x2d7e('0x21'),this[_0x2d7e('0x36')][_0x2d7e('0x10')](this)),_0x3dc500[_0x2d7e('0x0')][_0x2d7e('0x18')](this[_0x2d7e('0x3')][_0x2d7e('0x10')](this));}[_0x2d7e('0x3c')](_0x350a46,_0x391a63={}){const _0x1f4bb5=this[_0x2d7e('0x2a')][_0x2d7e('0xb')][_0x2d7e('0x15')](_0x2d7e('0x13')),_0x324374=this[_0x2d7e('0x3d')]();this['editor'][_0x2d7e('0x40')][_0x2d7e('0x6')](()=>{_0x1f4bb5[_0x2d7e('0x23')](_0x324374,{'commandName':'listStyle','commandParams':[{'type':_0x391a63[_0x2d7e('0x32')]}],'formatGroupId':_0x2d7e('0x38')});});}[_0x2d7e('0x31')](_0x575278,_0x21851b={}){const _0x138213=this['editor'][_0x2d7e('0xb')][_0x2d7e('0x15')](_0x2d7e('0x13')),_0x1ea0a2=this[_0x2d7e('0x11')](_0x768583=>_0x768583['is'](_0x2d7e('0x22'),_0x2d7e('0x35'))&&_0x2d7e('0x37')===_0x768583[_0x2d7e('0x9')](_0x2d7e('0x1')));if(_0x1ea0a2['length']<0x1)return;const _0x290052=_0x1ea0a2[_0x2d7e('0x1e')](_0x94539c=>this[_0x2d7e('0x2a')][_0x2d7e('0x40')][_0x2d7e('0x2f')](this[_0x2d7e('0x2a')]['model'][_0x2d7e('0x3b')](_0x94539c,'before'),this[_0x2d7e('0x2a')][_0x2d7e('0x40')]['createPositionAt'](_0x94539c,0x0)));this[_0x2d7e('0x2a')][_0x2d7e('0x40')][_0x2d7e('0x6')](()=>{_0x138213[_0x2d7e('0x23')](_0x290052,{'commandName':_0x2d7e('0x19'),'commandParams':[{'reversed':_0x21851b[_0x2d7e('0xc')]}],'formatGroupId':'listReversed'});});}[_0x2d7e('0x36')](_0x42017d,_0x48257d={}){const _0x33b835=this[_0x2d7e('0x2a')][_0x2d7e('0xb')][_0x2d7e('0x15')](_0x2d7e('0x13')),_0x291ade=this[_0x2d7e('0x11')](_0x520b66=>_0x520b66['is'](_0x2d7e('0x22'),_0x2d7e('0x35'))&&_0x2d7e('0x37')===_0x520b66[_0x2d7e('0x9')](_0x2d7e('0x1')));if(_0x291ade['length']<0x1)return;const _0x45ad84=_0x291ade[_0x2d7e('0x1e')](_0xede812=>this['editor']['model'][_0x2d7e('0x2f')](this[_0x2d7e('0x2a')][_0x2d7e('0x40')][_0x2d7e('0x3b')](_0xede812,'before'),this['editor'][_0x2d7e('0x40')]['createPositionAt'](_0xede812,0x0)));this['editor'][_0x2d7e('0x40')][_0x2d7e('0x6')](()=>{_0x33b835['markMultiRangeBlockFormat'](_0x45ad84,{'commandName':_0x2d7e('0x21'),'commandParams':[{'startIndex':_0x48257d[_0x2d7e('0x33')]}],'formatGroupId':_0x2d7e('0x21')});});}[_0x2d7e('0x3')](_0x36ec59){const _0xb8219d=this['editor'][_0x2d7e('0xd')],{data:_0xa35c16}=_0x36ec59;if(!_0xa35c16)return;let _0x59fb12,_0x1cb661;switch(_0xa35c16[_0x2d7e('0x3a')]){case'listStyle':_0x59fb12=_0x2d7e('0x25'),_0x1cb661={'type':_0x2d7e('0x12'),'content':_0x2fe4c2(_0xb8219d,_0x59fb12,_0x2fe4c2(_0xb8219d,this[_0x2d7e('0x4')](_0xa35c16[_0x2d7e('0x16')][0x0]['type'])))};break;case _0x2d7e('0x19'):_0x59fb12=_0xa35c16[_0x2d7e('0x16')][0x0][_0x2d7e('0xc')]?_0x2d7e('0x29'):_0x2d7e('0x1c'),_0x1cb661={'type':'format','content':_0x2fe4c2(_0xb8219d,_0x59fb12)};break;case _0x2d7e('0x21'):_0x59fb12=_0x2d7e('0x1a'),_0x1cb661={'type':'format','content':_0x2fe4c2(_0xb8219d,_0x59fb12,_0xa35c16[_0x2d7e('0x16')][0x0][_0x2d7e('0x33')])};}return _0x1cb661;}[_0x2d7e('0x3d')](){var _0x3815c6,_0x345978,_0x18943c,_0x184d84;const _0x1e3b02=this[_0x2d7e('0x2a')][_0x2d7e('0xb')][_0x2d7e('0x15')](_0x2d7e('0x2c'));let _0xafe6d7=Array[_0x2d7e('0xf')](this[_0x2d7e('0x2a')]['model'][_0x2d7e('0x3f')][_0x2d7e('0x2e')]['getSelectedBlocks']());return(null===(_0x3815c6=_0xafe6d7[0x0])||void 0x0===_0x3815c6?void 0x0:_0x3815c6['is'](_0x2d7e('0x22'),_0x2d7e('0x35')))&&_0xafe6d7[_0x2d7e('0x20')](..._0x1e3b02[_0x2d7e('0x5')](this[_0x2d7e('0x2a')]['model'][_0x2d7e('0x3f')][_0x2d7e('0x2e')][_0x2d7e('0x1d')](),_0x2d7e('0x27'))),(null===(_0x345978=_0xafe6d7[_0xafe6d7[_0x2d7e('0x17')]-0x1])||void 0x0===_0x345978?void 0x0:_0x345978['is'](_0x2d7e('0x22'),_0x2d7e('0x35')))&&_0xafe6d7['push'](..._0x1e3b02['getSiblingNodes'](this[_0x2d7e('0x2a')][_0x2d7e('0x40')]['document'][_0x2d7e('0x2e')][_0x2d7e('0x2')](),_0x2d7e('0x28'))),_0xafe6d7=[...new Set(_0xafe6d7)],(null===(_0x184d84=null===(_0x18943c=this[_0x2d7e('0x2a')]['model'][_0x2d7e('0x3f')][_0x2d7e('0x2e')][_0x2d7e('0x1d')]())||void 0x0===_0x18943c?void 0x0:_0x18943c['parent'])||void 0x0===_0x184d84?void 0x0:_0x184d84['is'](_0x2d7e('0x22'),'listItem'))&&(_0xafe6d7=_0xafe6d7[_0x2d7e('0x7')](_0x5d5efa=>_0x5d5efa['is']('element',_0x2d7e('0x35')))),_0xafe6d7;}['_getSuggestionBlocks'](_0x49ba9e){const _0x46ca49=this[_0x2d7e('0x2a')]['plugins'][_0x2d7e('0x15')](_0x2d7e('0x2c'));let _0xe3881c=Array['from'](this[_0x2d7e('0x2a')][_0x2d7e('0x40')][_0x2d7e('0x3f')]['selection'][_0x2d7e('0x1b')]())[_0x2d7e('0x7')](_0x49ba9e)[_0x2d7e('0x1e')](_0x1793ee=>{const _0x242eaa=this['editor'][_0x2d7e('0x40')][_0x2d7e('0x3b')](_0x1793ee,0x0);return[..._0x46ca49['getSiblingNodes'](_0x242eaa,_0x2d7e('0x27')),..._0x46ca49[_0x2d7e('0x5')](_0x242eaa,_0x2d7e('0x28'))];})[_0x2d7e('0x2d')]();return _0xe3881c=[...new Set(_0xe3881c)],_0xe3881c;}[_0x2d7e('0x4')](_0x28050d){return _0x2d7e('0x2b')+this[_0x2d7e('0x2a')]['plugins'][_0x2d7e('0x15')](_0x2d7e('0x2c'))[_0x2d7e('0x24')](_0x28050d)[_0x2d7e('0x39')]()+_0x2d7e('0x8')+_0x28050d[_0x2d7e('0x39')]()[_0x2d7e('0x14')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e19=['for','get','ELEMENT_MEDIA','showSuggestionHighlights','div','high','elementToElement','conversion','data','locale','has','media','enableCommand','dataDowncast','plugins','_descriptionFactory','MediaEmbedEditing','stop','editor','afterInit','downcastDispatcher'];(function(_0x40cebd,_0x1e19bd){const _0x2f4b6f=function(_0x10f9ae){while(--_0x10f9ae){_0x40cebd['push'](_0x40cebd['shift']());}};_0x2f4b6f(++_0x1e19bd);}(_0x1e19,0x174));const _0x2f4b=function(_0x40cebd,_0x1e19bd){_0x40cebd=_0x40cebd-0x0;let _0x2f4b6f=_0x1e19[_0x40cebd];return _0x2f4b6f;};import{Plugin as _0x256907}from'ckeditor5/src/core';import{getTranslation as _0x52b481}from'../utils/common-translations';export default class ot extends _0x256907{[_0x2f4b('0x4')](){const _0xddd7ed=this[_0x2f4b('0x3')];if(!_0xddd7ed[_0x2f4b('0x14')][_0x2f4b('0x10')](_0x2f4b('0x1')))return;const _0x4295ff=_0xddd7ed[_0x2f4b('0x14')][_0x2f4b('0x7')]('TrackChangesEditing'),_0x215d59=_0xddd7ed[_0x2f4b('0xf')];_0x4295ff[_0x2f4b('0x12')]('mediaEmbed'),_0x4295ff[_0x2f4b('0x0')]['registerElementLabel'](_0x2f4b('0x11'),_0x118920=>_0x52b481(_0x215d59,_0x2f4b('0x8'),_0x118920)),_0xddd7ed[_0x2f4b('0xd')][_0x2f4b('0x6')](_0x2f4b('0x13'))[_0x2f4b('0xc')]({'model':_0x2f4b('0x11'),'view':(_0x1d725a,{writer:_0x3254ea,options:_0x359f30})=>{if(_0x359f30[_0x2f4b('0x9')])return _0x3254ea['createEmptyElement'](_0x2f4b('0xa'));},'converterPriority':'high'}),_0xddd7ed[_0x2f4b('0xe')][_0x2f4b('0x5')]['on']('attribute:url:media',(_0x2758c6,_0xbe7a7c,_0x39bd91)=>{_0x39bd91['options'][_0x2f4b('0x9')]&&_0x2758c6[_0x2f4b('0x2')]();},{'priority':_0x2f4b('0xb')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8312=['has','editor','afterInit','get','enableCommand','TrackChangesEditing','mention','plugins'];(function(_0x5c21c4,_0x8312e){const _0x3730ac=function(_0x20f416){while(--_0x20f416){_0x5c21c4['push'](_0x5c21c4['shift']());}};_0x3730ac(++_0x8312e);}(_0x8312,0x1e7));const _0x3730=function(_0x5c21c4,_0x8312e){_0x5c21c4=_0x5c21c4-0x0;let _0x3730ac=_0x8312[_0x5c21c4];return _0x3730ac;};import{Plugin as _0x59d8a6}from'ckeditor5/src/core';export default class rt extends _0x59d8a6{[_0x3730('0x3')](){const _0x32ab49=this[_0x3730('0x2')];_0x32ab49[_0x3730('0x0')][_0x3730('0x1')]('MentionEditing')&&_0x32ab49[_0x3730('0x0')][_0x3730('0x4')](_0x3730('0x6'))[_0x3730('0x5')](_0x3730('0x7'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40bc=['registerElementLabel','PageBreakEditing','locale','TrackChangesEditing','_descriptionFactory','pageBreak','ELEMENT_PAGE_BREAK','has','enableCommand','editor','plugins'];(function(_0x365a65,_0x40bc68){const _0x410b01=function(_0x551488){while(--_0x551488){_0x365a65['push'](_0x365a65['shift']());}};_0x410b01(++_0x40bc68);}(_0x40bc,0x148));const _0x410b=function(_0x365a65,_0x40bc68){_0x365a65=_0x365a65-0x0;let _0x410b01=_0x40bc[_0x365a65];return _0x410b01;};import{Plugin as _0x21786a}from'ckeditor5/src/core';import{getTranslation as _0x59762b}from'../utils/common-translations';export default class at extends _0x21786a{['afterInit'](){const _0x3617c9=this[_0x410b('0x0')];if(!_0x3617c9[_0x410b('0x1')][_0x410b('0x9')](_0x410b('0x3')))return;_0x3617c9[_0x410b('0x1')]['get']('TrackChangesEditing')[_0x410b('0xa')](_0x410b('0x7'));const _0x3ef499=_0x3617c9[_0x410b('0x1')]['get'](_0x410b('0x5')),_0x11df5f=_0x3617c9[_0x410b('0x4')];_0x3ef499[_0x410b('0x6')][_0x410b('0x2')]('pageBreak',_0x44d1de=>_0x59762b(_0x11df5f,_0x410b('0x8'),_0x44d1de));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4781=['consume','parent','_descriptionFactory','isObject','showSuggestionHighlights','$text','insert','isLimit','Paragraph','locale','getFirstRange','blockName','markerRange','addMarker:suggestion:insertion','filter','schema','editor','mapper','ck-suggestion-marker-split','paragraph','markBlockFormat','ELEMENT_PARAGRAPH','addClass','document','highest','checkChild','afterInit','type','activeMarkers','isTouching','insertion','enableCommand','from','name','model','downcastDispatcher','writer','toViewPosition','isBlock','getItemLabel','registerDescriptionCallback','markerName','*Change\x20to:*\x20%0','includes','nodeAfter','plugins','TrackChangesEditing','end','get','registerElementLabel','commandName','ck-suggestion-marker--active','selection','*Insert:*\x20%0'];(function(_0x177b07,_0x47810b){const _0x5a39ee=function(_0x53b59b){while(--_0x53b59b){_0x177b07['push'](_0x177b07['shift']());}};_0x5a39ee(++_0x47810b);}(_0x4781,0xc6));const _0x5a39=function(_0x177b07,_0x47810b){_0x177b07=_0x177b07-0x0;let _0x5a39ee=_0x4781[_0x177b07];return _0x5a39ee;};import{Plugin as _0x11f06e}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x8d3eb0}from'./utils';import{getTranslation as _0x2bef35}from'../utils/common-translations';export default class ct extends _0x11f06e{[_0x5a39('0x2c')](){const _0x5ac5d9=this[_0x5a39('0x22')];if(!_0x5ac5d9[_0x5a39('0x9')]['has'](_0x5a39('0x1a')))return;const _0x42cdb2=_0x5ac5d9[_0x5a39('0x1b')],_0x1caa21=_0x5ac5d9[_0x5a39('0x9')][_0x5a39('0xc')]('TrackChangesEditing');_0x1caa21[_0x5a39('0x14')][_0x5a39('0xd')](_0x5a39('0x25'),_0x4f0127=>_0x2bef35(_0x42cdb2,_0x5a39('0x27'),_0x4f0127)),_0x1caa21[_0x5a39('0x31')](_0x5a39('0x25'),(_0x49cbca,_0x496ec7={})=>{const _0x21affb=_0x5ac5d9[_0x5a39('0x34')][_0x5a39('0x29')],_0x2e5bbc=_0x496ec7[_0x5a39('0x10')]||_0x21affb[_0x5a39('0x10')],_0x46daf5=Array[_0x5a39('0x32')](_0x2e5bbc['getSelectedBlocks']())[_0x5a39('0x20')](_0x2b5718=>function(_0x37f75e,_0x52e757){return _0x52e757[_0x5a39('0x2b')](_0x37f75e[_0x5a39('0x13')],_0x5a39('0x25'))&&!_0x52e757[_0x5a39('0x15')](_0x37f75e)&&_0x5a39('0x25')!=_0x37f75e[_0x5a39('0x33')];}(_0x2b5718,this['editor']['model'][_0x5a39('0x21')]));_0x5ac5d9[_0x5a39('0x34')]['change'](()=>{for(const _0x55f0c2 of _0x46daf5)_0x1caa21[_0x5a39('0x26')](_0x55f0c2,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x5a39('0x1d')},_0x8d3eb0(_0x55f0c2));});}),_0x1caa21[_0x5a39('0x14')][_0x5a39('0x4')](_0x24c0d9=>{const {data:_0x485cf4}=_0x24c0d9;if(_0x485cf4&&'paragraph'==_0x485cf4[_0x5a39('0xe')])return{'type':'format','content':_0x2bef35(_0x42cdb2,_0x5a39('0x6'),_0x2bef35(_0x42cdb2,_0x5a39('0x27')))};}),_0x1caa21[_0x5a39('0x31')]('insertParagraph'),_0x5ac5d9['editing'][_0x5a39('0x35')]['on'](_0x5a39('0x1f'),ar(_0x5ac5d9),{'priority':_0x5a39('0x2a')}),_0x5ac5d9['data'][_0x5a39('0x35')]['on'](_0x5a39('0x1f'),(_0x52867c,_0x3cf88f,_0x18617e)=>{_0x18617e['options'][_0x5a39('0x16')]&&ar(_0x5ac5d9,{'showActiveMarker':!0x1})(_0x52867c,_0x3cf88f,_0x18617e);},{'priority':'highest'});const _0x5f0a11=_0x1caa21[_0x5a39('0x14')];_0x5f0a11[_0x5a39('0x4')](_0x126b1c=>{if('insertion'!==_0x126b1c[_0x5a39('0x2d')])return;const {start:_0x17dc04,end:_0x24bfd7}=_0x126b1c[_0x5a39('0x1c')]();if(!_0x17dc04[_0x5a39('0x2f')](_0x24bfd7)||!_0x17dc04[_0x5a39('0x8')])return;const _0x5f974e=_0x5ac5d9[_0x5a39('0x34')][_0x5a39('0x21')],_0x1ce67a=_0x17dc04[_0x5a39('0x8')];return _0x5f974e['isBlock'](_0x1ce67a)&&!_0x5f974e[_0x5a39('0x19')](_0x1ce67a)&&_0x5f974e[_0x5a39('0x2b')](_0x1ce67a,_0x5a39('0x17'))?{'type':_0x5a39('0x30'),'content':_0x2bef35(_0x42cdb2,_0x5a39('0x11'),_0x5f0a11[_0x5a39('0x3')](_0x1ce67a,0x1))}:void 0x0;});}}function ar(_0x25618a,{showActiveMarker:_0x14476e=!0x0}={}){return(_0x3b5963,_0x437459,_0x1f0d33)=>{const _0x4e87e0=_0x25618a[_0x5a39('0x9')][_0x5a39('0xc')](_0x5a39('0xa')),_0x1ec3b3=_0x437459['markerRange']['start'],_0x24c529=_0x437459[_0x5a39('0x1e')][_0x5a39('0xb')],_0x276432=_0x25618a[_0x5a39('0x34')]['schema'];if(!_0x1ec3b3['isTouching'](_0x24c529)||!_0x1ec3b3[_0x5a39('0x8')])return;const _0x4ef85b=_0x1ec3b3[_0x5a39('0x8')];if(_0x276432[_0x5a39('0x2')](_0x4ef85b)&&!_0x276432[_0x5a39('0x19')](_0x4ef85b)&&_0x276432[_0x5a39('0x2b')](_0x4ef85b,'$text')){if(!_0x1f0d33['consumable'][_0x5a39('0x12')](_0x437459[_0x5a39('0x1e')],_0x3b5963[_0x5a39('0x33')]))return;const _0x4a1294=_0x1f0d33[_0x5a39('0x0')]['createUIElement']('span',{'class':_0x5a39('0x24')}),_0x6be8d0=_0x1f0d33[_0x5a39('0x23')][_0x5a39('0x1')](_0x24c529);_0x14476e&&_0x4e87e0[_0x5a39('0x2e')][_0x5a39('0x7')](_0x437459['markerName'])&&_0x1f0d33[_0x5a39('0x0')][_0x5a39('0x28')](_0x5a39('0xf'),_0x4a1294),_0x1f0d33[_0x5a39('0x0')][_0x5a39('0x18')](_0x6be8d0,_0x4a1294),_0x1f0d33[_0x5a39('0x23')]['bindElementToMarker'](_0x4a1294,_0x437459[_0x5a39('0x5')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f2a=['locale','getAttributeProperties','selection','from','removeFormat','*Remove\x20all\x20formatting*','change','document','schema','editor','commandName','isFormatting','markInlineFormat','getAttributes','getItems','format','TrackChangesEditing','plugins','model','enableCommand'];(function(_0x5cb6a9,_0x5f2a28){const _0x35e159=function(_0x2bff58){while(--_0x2bff58){_0x5cb6a9['push'](_0x5cb6a9['shift']());}};_0x35e159(++_0x5f2a28);}(_0x5f2a,0x1e9));const _0x35e1=function(_0x5cb6a9,_0x5f2a28){_0x5cb6a9=_0x5cb6a9-0x0;let _0x35e159=_0x5f2a[_0x5cb6a9];return _0x35e159;};import{Plugin as _0x225cf7}from'ckeditor5/src/core';import{getTranslation as _0x24925a}from'../utils/common-translations';export default class ht extends _0x225cf7{['afterInit'](){const _0x50d770=this[_0x35e1('0x0')];if(!_0x50d770[_0x35e1('0x8')]['has']('RemoveFormatEditing'))return;const _0x32b234=_0x50d770[_0x35e1('0x8')]['get'](_0x35e1('0x7'));_0x32b234[_0x35e1('0xa')](_0x35e1('0xf'),_0x19f1b0=>{const _0x3606e5=_0x50d770['model'][_0x35e1('0x12')][_0x35e1('0xd')];_0x3606e5['isCollapsed']?_0x19f1b0():_0x50d770[_0x35e1('0x9')][_0x35e1('0x11')](()=>{const _0xc89934=Array[_0x35e1('0xe')](_0x3606e5['getRanges']());for(const _0x50ad70 of _0xc89934)for(const _0x2da9af of _0x50ad70[_0x35e1('0x5')]())eo(_0x2da9af,_0x50d770[_0x35e1('0x9')][_0x35e1('0x13')])&&_0x32b234[_0x35e1('0x3')](_0x50d770['model']['createRangeOn'](_0x2da9af),{'commandName':_0x35e1('0xf'),'commandParams':[]});});}),_0x32b234['_descriptionFactory']['registerDescriptionCallback'](_0x12a8d4=>{const {data:_0x5433db}=_0x12a8d4;if(_0x5433db&&_0x35e1('0xf')==_0x5433db[_0x35e1('0x1')])return{'type':_0x35e1('0x6'),'content':_0x24925a(_0x50d770[_0x35e1('0xb')],_0x35e1('0x10'))};});}}function eo(_0x5efff4,_0x46de01){for(const [_0x46622a]of _0x5efff4[_0x35e1('0x4')]()){const _0x13d5a2=_0x46de01[_0x35e1('0xc')](_0x46622a);if(_0x13d5a2&&_0x13d5a2[_0x35e1('0x2')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2499=['goToNextRestrictedEditingException','discardSuggestion','trackChanges','afterInit','plugins','acceptSelectedSuggestions','acceptAllSuggestions','discardSelectedSuggestions','RestrictedEditingModeEditing','editor','discardAllSuggestions','get','enableCommand','TrackChangesEditing','acceptSuggestion','goToPreviousRestrictedEditingException'];(function(_0x562d70,_0x2499e3){const _0x957ace=function(_0x5bb2de){while(--_0x5bb2de){_0x562d70['push'](_0x562d70['shift']());}};_0x957ace(++_0x2499e3);}(_0x2499,0x1ce));const _0x957a=function(_0x562d70,_0x2499e3){_0x562d70=_0x562d70-0x0;let _0x957ace=_0x2499[_0x562d70];return _0x957ace;};import{Plugin as _0x54f57f}from'ckeditor5/src/core';export default class ut extends _0x54f57f{[_0x957a('0x5')](){const _0x2f076e=this[_0x957a('0xb')];if(!_0x2f076e[_0x957a('0x6')]['has'](_0x957a('0xa')))return;const _0x4e5b52=_0x2f076e[_0x957a('0x6')][_0x957a('0xd')](_0x957a('0xf'));_0x4e5b52['enableCommand'](_0x957a('0x1')),_0x4e5b52[_0x957a('0xe')](_0x957a('0x2'));const _0x303166=_0x2f076e[_0x957a('0x6')][_0x957a('0xd')](_0x957a('0xa'));_0x303166['enableCommand'](_0x957a('0x4')),_0x303166[_0x957a('0xe')](_0x957a('0x0')),_0x303166[_0x957a('0xe')](_0x957a('0x3')),_0x303166[_0x957a('0xe')](_0x957a('0x8')),_0x303166[_0x957a('0xe')](_0x957a('0xc')),_0x303166['enableCommand'](_0x957a('0x7')),_0x303166[_0x957a('0xe')](_0x957a('0x9'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ce1=['test','markerName','editor','requires','get','downcastDispatcher','createUIElement','toViewPosition','insert','ck-suggestion-marker-','registerElementLabel','addMarker:suggestion:insertion','merge','ck-suggestion-marker--active','_descriptionFactory','data','options','ELEMENT_LINE_BREAK','shiftEnter','model','TrackChangesEditing','element','markerRange','showSuggestionHighlights','addMarker:suggestion','editing','high','plugins','mapper','writer','deletion','activeMarkers','createPositionBefore','addMarker:suggestion:deletion','span','split'];(function(_0x2ae127,_0x2ce13b){const _0x41adf7=function(_0x51d9db){while(--_0x51d9db){_0x2ae127['push'](_0x2ae127['shift']());}};_0x41adf7(++_0x2ce13b);}(_0x2ce1,0x118));const _0x41ad=function(_0x2ae127,_0x2ce13b){_0x2ae127=_0x2ae127-0x0;let _0x41adf7=_0x2ce1[_0x2ae127];return _0x41adf7;};import{Plugin as _0x298b74}from'ckeditor5/src/core';import{ShiftEnter as _0x5cc4d0}from'ckeditor5/src/enter';import{getTranslation as _0x134d71}from'../utils/common-translations';export default class ft extends _0x298b74{static get[_0x41ad('0xb')](){return[_0x5cc4d0];}['init'](){const _0x21df44=this[_0x41ad('0xa')],_0x147fd8=_0x21df44[_0x41ad('0x23')][_0x41ad('0xc')](_0x41ad('0x1c'));_0x147fd8['enableCommand'](_0x41ad('0x1a')),_0x21df44[_0x41ad('0x21')][_0x41ad('0xd')]['on'](_0x41ad('0x13'),re(_0x21df44),{'priority':_0x41ad('0x22')}),_0x21df44[_0x41ad('0x21')]['downcastDispatcher']['on'](_0x41ad('0x5'),re(_0x21df44),{'priority':'high'}),_0x21df44[_0x41ad('0x17')][_0x41ad('0xd')]['on'](_0x41ad('0x20'),(_0x5ebf6c,_0xd521cd,_0x426737)=>{_0x426737[_0x41ad('0x18')][_0x41ad('0x1f')]&&re(_0x21df44,{'showActiveMarker':!0x1})(_0x5ebf6c,_0xd521cd,_0x426737);}),_0x147fd8[_0x41ad('0x16')][_0x41ad('0x12')]('softBreak',_0x58546c=>_0x134d71(_0x21df44['locale'],_0x41ad('0x19'),_0x58546c));}}function re(_0x123f1b,{showActiveMarker:_0x1b540b=!0x0}={}){return(_0x550b12,_0x21cd13,_0x4021c6)=>{const _0x47f694=_0x123f1b[_0x41ad('0x23')][_0x41ad('0xc')](_0x41ad('0x1c'));if(!_0x4021c6['consumable'][_0x41ad('0x8')](_0x21cd13[_0x41ad('0x1e')],_0x550b12['name']))return;const _0x573099=_0x123f1b[_0x41ad('0x1b')];for(const _0x468501 of _0x21cd13[_0x41ad('0x1e')]['getItems']()){if(!_0x468501['is'](_0x41ad('0x1d'),'softBreak'))continue;const _0x53b88f=_0x41ad('0x2')==_0x21cd13['markerName']['split'](':')[0x1]?_0x41ad('0x14'):_0x41ad('0x7'),_0x23cc58=_0x4021c6['writer'][_0x41ad('0xe')](_0x41ad('0x6'),{'class':_0x41ad('0x11')+_0x53b88f}),_0x500b02=_0x4021c6[_0x41ad('0x0')][_0x41ad('0xf')](_0x573099[_0x41ad('0x4')](_0x468501));_0x1b540b&&_0x47f694[_0x41ad('0x3')]['includes'](_0x21cd13[_0x41ad('0x9')])&&_0x4021c6[_0x41ad('0x1')]['addClass'](_0x41ad('0x15'),_0x23cc58),_0x4021c6['writer'][_0x41ad('0x10')](_0x500b02,_0x23cc58),_0x4021c6[_0x41ad('0x0')]['bindElementToMarker'](_0x23cc58,_0x21cd13[_0x41ad('0x9')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42d2=['model','markInlineFormat','editor','getRanges','TrackChangesEditing','change','isCollapsed','_descriptionFactory','StandardEditingModeEditing','from','value','afterInit','enableCommand','plugins','selection','FORMAT_RESTRICTED_DISABLED','has','commandName','registerDescriptionCallback','commandParams','document','forceValue'];(function(_0x186f7e,_0x42d2fa){const _0xb0177b=function(_0x27ae36){while(--_0x27ae36){_0x186f7e['push'](_0x186f7e['shift']());}};_0xb0177b(++_0x42d2fa);}(_0x42d2,0xca));const _0xb017=function(_0x186f7e,_0x42d2fa){_0x186f7e=_0x186f7e-0x0;let _0xb0177b=_0x42d2[_0x186f7e];return _0xb0177b;};import{Plugin as _0x238d17}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x3e32e8}from'./utils';import{getTranslation as _0x5b11f6}from'../utils/common-translations';export default class lt extends _0x238d17{[_0xb017('0x7')](){const _0x4720a9=this[_0xb017('0x14')],_0x5ca1c6=_0x4720a9[_0xb017('0x12')],_0x494c1a=_0x4720a9['locale'];if(!_0x4720a9[_0xb017('0x9')][_0xb017('0xc')](_0xb017('0x4')))return;const _0xd76ded=_0x4720a9[_0xb017('0x9')]['get'](_0xb017('0x0')),_0x2d657a='restrictedEditingException',_0x1af269=_0x4720a9['commands']['get'](_0x2d657a);_0xd76ded[_0xb017('0x8')](_0x2d657a,(_0x38187b,_0x34fd08={})=>{const _0x298c49=_0x5ca1c6[_0xb017('0x10')][_0xb017('0xa')];if(_0x298c49[_0xb017('0x2')])return void _0x38187b(_0x34fd08);const _0x2bccee=void 0x0!==_0x34fd08[_0xb017('0x11')]?_0x34fd08['forceValue']:!_0x1af269[_0xb017('0x6')];_0x5ca1c6[_0xb017('0x1')](()=>{const _0x5eb8f5=Array[_0xb017('0x5')](_0x298c49[_0xb017('0x15')]());for(const _0x120f8d of _0x5eb8f5){const _0xcd5f48=_0x2bccee?[_0x120f8d]:_0x3e32e8(_0x2d657a,_0x120f8d,_0x5ca1c6);for(const _0x13b215 of _0xcd5f48)_0xd76ded[_0xb017('0x13')](_0x13b215,{'commandName':_0x2d657a,'commandParams':[{'forceValue':_0x2bccee}]});}});}),_0xd76ded[_0xb017('0x3')][_0xb017('0xe')](_0x50e5c6=>{const {data:_0x1f1c46}=_0x50e5c6;if(_0x1f1c46&&_0x1f1c46[_0xb017('0xd')]==_0x2d657a)return _0x1f1c46[_0xb017('0xf')][0x0][_0xb017('0x11')]?{'type':'format','content':_0x5b11f6(_0x494c1a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x5b11f6(_0x494c1a,_0xb017('0xb'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dfe=['commandName','get','style:','enableCommand','enabledStyles','document','push','format','classes','modelElements','getAttribute','every','element','normalizeConfig','commandParams','afterInit','style','commands','getDefinitionsForView','isBlock','isCollapsed','registerDescriptionCallback','selection','_getStyleDefinition','getItems','block','*Format:*\x20%0','value','includes','markInlineFormat','styleName','StyleUtils','inline','toLowerCase','*Remove\x20format:*\x20%0','name','markBlockFormat','plugins','model','getSelectedBlocks','change','from','getRanges','Style','DataSchema','_getRangesWithClasses','config'];(function(_0x994ba6,_0x2dfed6){const _0xcc6b7f=function(_0x546763){while(--_0x546763){_0x994ba6['push'](_0x994ba6['shift']());}};_0xcc6b7f(++_0x2dfed6);}(_0x2dfe,0x8c));const _0xcc6b=function(_0x994ba6,_0x2dfed6){_0x994ba6=_0x994ba6-0x0;let _0xcc6b7f=_0x2dfe[_0x994ba6];return _0xcc6b7f;};import{Plugin as _0x14e6c2}from'ckeditor5/src/core';import{getTranslation as _0x18488e}from'../utils/common-translations';export default class gt extends _0x14e6c2{[_0xcc6b('0x10')](){const _0x1ffbc7=this['editor'];if(!_0x1ffbc7[_0xcc6b('0x26')]['has'](_0xcc6b('0x2c')))return;const _0x1596bb=_0x1ffbc7[_0xcc6b('0x12')][_0xcc6b('0x2')](_0xcc6b('0x11')),_0x38b7f5=_0x1ffbc7['plugins'][_0xcc6b('0x2')]('TrackChangesEditing'),_0x43a4c6=_0x1ffbc7['locale'],_0x2e516a=_0x1ffbc7['plugins'][_0xcc6b('0x2')](_0xcc6b('0x2d')),_0x145515=_0x1ffbc7[_0xcc6b('0x26')][_0xcc6b('0x2')](_0xcc6b('0x20'))[_0xcc6b('0xe')](_0x2e516a,_0x1ffbc7[_0xcc6b('0x0')][_0xcc6b('0x2')]('style.definitions'));_0x38b7f5[_0xcc6b('0x4')](_0xcc6b('0x11'),(_0x28c666,{styleName:_0x42f93a})=>{const _0x8c8487=_0x1ffbc7[_0xcc6b('0x27')][_0xcc6b('0x6')][_0xcc6b('0x17')],_0x2b08e7=this[_0xcc6b('0x18')](_0x42f93a,_0x145515);if(!_0x2b08e7)return;if(!_0x1596bb[_0xcc6b('0x5')][_0xcc6b('0x1d')](_0x42f93a))return;if(_0x8c8487[_0xcc6b('0x15')]&&!_0x2b08e7[_0xcc6b('0x14')])return void _0x28c666({'styleName':_0x42f93a});const _0x505c94=!_0x1596bb[_0xcc6b('0x1c')][_0xcc6b('0x1d')](_0x2b08e7[_0xcc6b('0x24')]);if(_0x2b08e7[_0xcc6b('0x14')]){const _0x5c8757=function(_0x16b596,_0x468c7a){const _0x595058=new Set();for(const _0x2b1845 of _0x16b596){const _0x149d1f=_0x2b1845['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x9779ce of _0x149d1f)if(_0x468c7a[_0xcc6b('0x1d')](_0x9779ce[_0xcc6b('0x24')])){_0x595058['add'](_0x9779ce);break;}}return _0x595058;}(_0x8c8487[_0xcc6b('0x28')](),_0x2b08e7[_0xcc6b('0xa')]);_0x1ffbc7[_0xcc6b('0x27')][_0xcc6b('0x29')](()=>{for(const _0xda1ee5 of _0x5c8757)_0x38b7f5[_0xcc6b('0x25')](_0xda1ee5,{'commandName':_0xcc6b('0x11'),'commandParams':[{'styleName':_0x42f93a,'forceValue':_0x505c94}],'formatGroupId':_0xcc6b('0x3')+_0x42f93a});});}else{let _0x4ccc64=Array[_0xcc6b('0x2a')](_0x8c8487[_0xcc6b('0x2b')]());if(!_0x505c94){const _0x5a80fd=Array[_0xcc6b('0x2a')](_0x2e516a[_0xcc6b('0x13')](_0x2b08e7[_0xcc6b('0xd')],!0x1))[0x0][_0xcc6b('0x27')],_0x1a5a8a=[];for(const _0x203cda of _0x4ccc64){const _0x5d71aa=this[_0xcc6b('0x2e')](_0x1ffbc7[_0xcc6b('0x27')],_0x203cda,_0x2b08e7[_0xcc6b('0x9')],_0x5a80fd);_0x1a5a8a[_0xcc6b('0x7')](..._0x5d71aa);}_0x4ccc64=_0x1a5a8a;}_0x1ffbc7[_0xcc6b('0x27')][_0xcc6b('0x29')](()=>{for(const _0x1bf797 of _0x4ccc64)_0x38b7f5[_0xcc6b('0x1e')](_0x1bf797,{'commandName':_0xcc6b('0x11'),'commandParams':[{'styleName':_0x42f93a,'forceValue':_0x505c94}]});});}}),_0x38b7f5['_descriptionFactory'][_0xcc6b('0x16')](_0x339bd4=>{const {data:_0x536abc}=_0x339bd4;if(_0x536abc&&_0xcc6b('0x11')===_0x536abc[_0xcc6b('0x1')])return _0x536abc['commandParams'][0x0]['forceValue']?{'type':_0xcc6b('0x8'),'content':_0x18488e(_0x43a4c6,_0xcc6b('0x1b'),_0x536abc[_0xcc6b('0xf')][0x0][_0xcc6b('0x1f')][_0xcc6b('0x22')]())}:{'type':_0xcc6b('0x8'),'content':_0x18488e(_0x43a4c6,_0xcc6b('0x23'),_0x536abc['commandParams'][0x0][_0xcc6b('0x1f')][_0xcc6b('0x22')]())};});}[_0xcc6b('0x18')](_0x190e10,_0x4c0daa){let _0x593d48=_0x4c0daa[_0xcc6b('0x1a')]['find'](_0x2c8526=>_0x2c8526[_0xcc6b('0x24')]===_0x190e10);return _0x593d48||(_0x593d48=_0x4c0daa[_0xcc6b('0x21')]['find'](_0x37d460=>_0x37d460[_0xcc6b('0x24')]===_0x190e10)),_0x593d48;}[_0xcc6b('0x2e')](_0x3fc9d8,_0x5222f8,_0x36e008,_0x2c3aa0){const _0x3d268e=[];for(const _0x3d8999 of _0x5222f8[_0xcc6b('0x19')]()){const _0x3f7612=_0x3d8999[_0xcc6b('0xb')](_0x2c3aa0);_0x3f7612&&(_0x36e008[_0xcc6b('0xc')](_0x43df47=>_0x3f7612[_0xcc6b('0x9')][_0xcc6b('0x1d')](_0x43df47))&&_0x3d268e[_0xcc6b('0x7')](_0x3fc9d8['createRangeOn'](_0x3d8999)));}return _0x3d268e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b68=['item','toLowerCase','removeTableColumn','order','every','minRow','markMultiRangeInsertion','insertTableColumnLeft','ELEMENT_TABLE','createTableWalker','setSelection','toViewElement','map','markMultiRangeDeletion','registerCustomCallback','element','locale','discard','refresh','some','ELEMENT_TABLE_COLUMN','MIN_SAFE_INTEGER','insertion','getSuggestion','low','getColumnIndexes','getFirstRange','type','isIntersectingWithRange','highest','filter','oldRange','subType','editor','nodeAfter','ELEMENT_TABLE_COLUMN_WITH_TEXT','change','fromRange','tableColumn','addRange','left','span','afterInit','_getCoordsForCells','change:data','findAncestor','getCellLocation','ELEMENT_TABLE_ROW','isInContent','enqueueChange','_suggestionFactory','_getSuggestionCoords','classes','document','plugins','deletion','cell','insertTableRowBelow','from','substr','first','getChangedMarkers','ELEMENT_TABLE_WITH_TEXT','_tablePostFixingSubtypes','$textProxy','TableUtils','mapper','commands','values','_splitMarkerName','*Insert:*\x20%0','isEqual','_setupColumnsRowsFixing','selectTableColumn','writer','tableCell','_descriptionFactory','accept','insertTableRowAbove','*Remove:*\x20%0','min','getItems','length','detach','removeClass','batch','add','_tableSuggestions','registerDescriptionCallback','TrackChangesEditing','downcastDispatcher','enableCommand','name','getAttribute','registerPostFixer','get','$graveyard','start','nodeBefore','getRanges','minColumn','above','createPositionAt','getRowIndexes','max','rowspan','_acceptFormatSuggestionCallbackFactory','last','join','createRangeOn','insert','execute','hasAttribute','getSelectionAffectedTableCells','includes','push','colspan','position','removeTableRow','showSuggestionHighlights','isTouching','ELEMENT_TABLE_ROW_WITH_TEXT','data','model','tableRow','table','MAX_SAFE_INTEGER','root','rootName','end'];(function(_0x342cad,_0x1b6813){const _0x2c5015=function(_0xbb4f59){while(--_0xbb4f59){_0x342cad['push'](_0x342cad['shift']());}};_0x2c5015(++_0x1b6813);}(_0x1b68,0x13f));const _0x2c50=function(_0x342cad,_0x1b6813){_0x342cad=_0x342cad-0x0;let _0x2c5015=_0x1b68[_0x342cad];return _0x2c5015;};import{Plugin as _0xb286e4}from'ckeditor5/src/core';import{LiveRange as _0x347564}from'ckeditor5/src/engine';import{setHighlightHandling as _0x8be612}from'ckeditor5/src/widget';import{getTranslation as _0x1fd17d}from'../utils/common-translations';export default class mt extends _0xb286e4{constructor(_0x4342f4){super(_0x4342f4),this['_tablePostFixingSubtypes']=['tableRow',_0x2c50('0x6d')],this[_0x2c50('0x1c')]=new Set();}[_0x2c50('0x71')](){const _0x1d3ce2=this[_0x2c50('0x68')],_0x37f3ef=_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x7c')]['selection'];if(!_0x1d3ce2[_0x2c50('0x7d')]['has']('TableEditing'))return;const _0x5aa272=_0x1d3ce2[_0x2c50('0x57')],_0x25e4a1=_0x1d3ce2['plugins'][_0x2c50('0x24')](_0x2c50('0x1e')),_0x3f522f=_0x1d3ce2['plugins'][_0x2c50('0x24')](_0x2c50('0x6'));_0x25e4a1[_0x2c50('0x11')]['registerElementLabel']('table',_0x148e44=>_0x1fd17d(_0x5aa272,_0x2c50('0x4f'),_0x148e44)),this[_0x2c50('0xd')](),_0x25e4a1[_0x2c50('0x20')]('insertTable'),_0x25e4a1['enableCommand']('selectTableRow'),_0x25e4a1[_0x2c50('0x20')](_0x2c50('0xe'));for(const _0x26adf2 of[_0x2c50('0x13'),_0x2c50('0x80')]){const _0x2a0c4e=_0x1d3ce2[_0x2c50('0x8')]['get'](_0x26adf2);_0x25e4a1[_0x2c50('0x20')](_0x26adf2,_0x37dc10=>{_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x6b')](_0x348834=>{_0x37dc10();const _0x298dce=_0x2c50('0x2a')===_0x2a0c4e[_0x2c50('0x4a')],_0x181d1c=_0x3f522f['getSelectionAffectedTableCells'](_0x37f3ef),_0x3fdce3=_0x3f522f[_0x2c50('0x2c')](_0x181d1c),_0x25466e=_0x298dce?_0x3fdce3[_0x2c50('0x1')]-0x1:_0x3fdce3['last']+0x1,_0x14d583=_0x181d1c[0x0][_0x2c50('0x74')](_0x2c50('0x42')),_0x2d8669=_0x3f522f[_0x2c50('0x50')](_0x14d583,{'startRow':_0x25466e,'endRow':_0x25466e}),_0x440d69=Array[_0x2c50('0x81')](_0x2d8669)[_0x2c50('0x53')](_0x56737f=>_0x348834['createRangeOn'](_0x56737f[_0x2c50('0x7f')]));_0x25e4a1[_0x2c50('0x4d')](_0x440d69,_0x2c50('0x41'));});});}for(const _0x4a681e of[_0x2c50('0x4e'),'insertTableColumnRight']){const _0x13ff43=_0x1d3ce2[_0x2c50('0x8')][_0x2c50('0x24')](_0x4a681e);_0x25e4a1[_0x2c50('0x20')](_0x4a681e,_0x45f079=>{_0x1d3ce2['model'][_0x2c50('0x6b')](_0x40b062=>{_0x45f079();const _0x2b05c5=_0x2c50('0x6f')===_0x13ff43[_0x2c50('0x4a')],_0x31bdba=_0x3f522f[_0x2c50('0x36')](_0x37f3ef),_0x22b278=_0x3f522f['getColumnIndexes'](_0x31bdba),_0x49e19f=_0x2b05c5?_0x22b278['first']-0x1:_0x22b278[_0x2c50('0x30')]+0x1,_0x2ca3d4=_0x31bdba[0x0]['findAncestor']('table'),_0x40a8c5=_0x3f522f[_0x2c50('0x50')](_0x2ca3d4,{'startRow':0x0,'column':_0x49e19f,'includeAllSlots':!0x1}),_0x1522e9=Array['from'](_0x40a8c5)[_0x2c50('0x53')](_0x32d571=>_0x40b062[_0x2c50('0x32')](_0x32d571[_0x2c50('0x7f')]));_0x25e4a1[_0x2c50('0x4d')](_0x1522e9,_0x2c50('0x6d'));});});}for(const _0x3ddeff of[_0x2c50('0x3b'),_0x2c50('0x49')]){const _0x2f6f1d=_0x3ddeff[_0x2c50('0x0')](0xb),_0x38053c=_0x2f6f1d[_0x2c50('0x48')](),_0x5321dc=_0x38053c[_0x2c50('0x0')](0x0,0x3)+_0x2c50('0x70'),_0x2a2253=_0x2c50('0x42')+_0x2f6f1d,_0x135eb5=_0x2c50('0x15')+_0x2f6f1d,_0x4a7da5=_0x2c50('0x2d')+_0x2f6f1d;_0x25e4a1[_0x2c50('0x20')](_0x3ddeff,()=>{_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x6b')](_0x56c219=>{const _0x46e2cb=_0x3f522f[_0x2c50('0x36')](_0x37f3ef),_0x5e1c53=_0x46e2cb[0x0][_0x2c50('0x74')](_0x2c50('0x42'));let _0x41c206;if(_0x2c50('0x3b')==_0x3ddeff){const _0x564e6a=_0x3f522f[_0x2c50('0x2c')](_0x46e2cb);_0x41c206={'startRow':_0x564e6a[_0x2c50('0x1')],'endRow':_0x564e6a[_0x2c50('0x30')],'includeAllSlots':!0x0};}else{const _0x3547db=_0x3f522f[_0x2c50('0x60')](_0x46e2cb);_0x41c206={'startColumn':_0x3547db['first'],'endColumn':_0x3547db[_0x2c50('0x30')],'includeAllSlots':!0x0};}const _0x3a4f6a=_0x3f522f[_0x2c50('0x50')](_0x5e1c53,_0x41c206),_0x244fe2=Array[_0x2c50('0x81')](_0x3a4f6a)[_0x2c50('0x53')](({cell:_0x32f63f})=>_0x32f63f),_0x21647=se(_0x244fe2[_0x2c50('0x65')](_0xcbc847=>_0xcbc847[_0x2c50('0x35')](_0x5321dc))),_0x174da7=se(_0x244fe2[_0x2c50('0x65')](_0x3c2d45=>!_0x3c2d45[_0x2c50('0x35')](_0x5321dc)))['map'](_0x171968=>_0x56c219[_0x2c50('0x32')](_0x171968)),_0x5077b0=_0x25e4a1[_0x2c50('0x54')](_0x174da7,_0x2a2253);if(_0x5077b0&&(_0x2c50('0x41')==_0x5077b0[_0x2c50('0x67')]||_0x2c50('0x6d')==_0x5077b0['subType'])){const _0x28dc35=this[_0x2c50('0x7a')](_0x5077b0);for(const _0x22f77c of _0x21647){const _0x495670=_0x56c219[_0x2c50('0x32')](_0x22f77c),_0x285624=_0x3f522f[_0x2c50('0x75')](_0x22f77c),_0x288d1b=_0x22f77c['getAttribute'](_0x5321dc)-0x1,_0xefdc6b=_0x28dc35[_0x135eb5],_0x4ea840=_0x28dc35[_0x4a7da5];_0xefdc6b<=_0x285624[_0x38053c]&&_0x285624[_0x38053c]+_0x288d1b<=_0x4ea840&&_0x5077b0[_0x2c50('0x6e')](_0x495670);}}});});}function _0x37052a(_0x5597ba){const _0x5e6115=Array[_0x2c50('0x81')](_0x37f3ef[_0x2c50('0x28')]())[_0x2c50('0x53')](_0x2d7827=>_0x347564['fromRange'](_0x2d7827));_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x6b')](_0x30098a=>{const _0x1f6bbc=_0x30098a[_0x2c50('0x1a')];_0x5597ba=_0x5597ba[_0x2c50('0x65')](_0x350a96=>_0x2c50('0x25')!=_0x350a96[_0x2c50('0x44')]['rootName']),_0x30098a[_0x2c50('0x51')](_0x5597ba),_0x1d3ce2[_0x2c50('0x8')][_0x2c50('0x24')](_0x2c50('0x3b'))[_0x2c50('0x59')](),_0x1d3ce2['execute'](_0x2c50('0x3b'),{'forceDefaultExecution':!0x0}),_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x78')](()=>{_0x1d3ce2['model'][_0x2c50('0x78')](_0x1f6bbc,_0x33ddc3=>{const _0x5ba2ad=_0x5e6115[_0x2c50('0x65')](_0x498cc7=>_0x2c50('0x25')!=_0x498cc7[_0x2c50('0x44')][_0x2c50('0x45')]);_0x5ba2ad['length']>0x0&&_0x33ddc3[_0x2c50('0x51')](_0x5ba2ad);for(const _0x5a819e of _0x5e6115)_0x5a819e[_0x2c50('0x18')]();});});});}function _0x9023d1(_0x46db2d){_0x1d3ce2['model'][_0x2c50('0x6b')](_0x53a342=>{const _0x394129=Array[_0x2c50('0x81')](_0x37f3ef[_0x2c50('0x28')]())[_0x2c50('0x53')](_0x14faf0=>_0x347564[_0x2c50('0x6c')](_0x14faf0)),_0x2a284e=[];for(const _0x7af09a of _0x46db2d)for(const _0x5da654 of _0x7af09a[_0x2c50('0x16')]({'shallow':!0x0}))_0x2a284e['push'](_0x5da654);for(const _0x40a624 of _0x2a284e)_0x2c50('0x25')!=_0x40a624[_0x2c50('0x44')][_0x2c50('0x45')]&&(_0x53a342[_0x2c50('0x51')](_0x53a342[_0x2c50('0x2b')](_0x40a624,0x0)),_0x1d3ce2['commands'][_0x2c50('0x24')](_0x2c50('0x49'))[_0x2c50('0x59')](),_0x1d3ce2[_0x2c50('0x34')](_0x2c50('0x49'),{'forceDefaultExecution':!0x0}));const _0x54c519=_0x394129[_0x2c50('0x65')](_0x599e22=>_0x2c50('0x25')!=_0x599e22[_0x2c50('0x44')][_0x2c50('0x45')]);_0x54c519[_0x2c50('0x17')]>0x0&&_0x53a342['setSelection'](_0x54c519);for(const _0x33ab74 of _0x394129)_0x33ab74[_0x2c50('0x18')]();});}function _0x441cf4(_0x4c4b73,_0x1e2bbd){return _0x1e2bbd[_0x2c50('0x4b')](_0x573555=>_0x4c4b73[_0x2c50('0x5a')](_0x5c5df4=>_0x5c5df4[_0x2c50('0x46')][_0x2c50('0xc')](_0x573555[_0x2c50('0x26')])||_0x573555['end'][_0x2c50('0xc')](_0x5c5df4[_0x2c50('0x26')])));}function _0x43f690(_0x1ac6f1,_0x3b836b){return _0x1ac6f1[_0x2c50('0x5a')](_0x49f581=>_0x3b836b['some'](_0xb9f153=>_0x49f581[_0x2c50('0x46')][_0x2c50('0x3d')](_0xb9f153[_0x2c50('0x26')])));}_0x1d3ce2[_0x2c50('0x3f')][_0x2c50('0x1f')]['on']('addMarker:suggestion',(_0x1d40b0,_0x3eba1a,_0x184062)=>{if(!_0x184062['options'][_0x2c50('0x3c')])return;const _0x53e5b5=_0x3eba1a[_0x2c50('0x47')];if(!_0x53e5b5)return;const _0x7e5e52=_0x184062[_0x2c50('0x7')][_0x2c50('0x52')](_0x53e5b5);function _0x110933(_0x34aaaa){return Array['isArray'](_0x34aaaa)?_0x34aaaa:[_0x34aaaa];}_0x7e5e52&&_0x2c50('0x10')===_0x53e5b5[_0x2c50('0x21')]&&_0x8be612(_0x7e5e52,_0x184062[_0x2c50('0xf')],(_0x37d478,_0x54499f,_0x516ae6)=>_0x516ae6['addClass'](_0x110933(_0x54499f[_0x2c50('0x7b')]),_0x37d478),(_0x184d56,_0x3870ac,_0x125111)=>_0x125111[_0x2c50('0x19')](_0x110933(_0x3870ac[_0x2c50('0x7b')]),_0x184d56));},{'priority':_0x2c50('0x64')}),_0x25e4a1[_0x2c50('0x11')][_0x2c50('0x1d')](_0xeb04c4=>{if('insertion'!=_0xeb04c4[_0x2c50('0x62')]&&_0x2c50('0x7e')!=_0xeb04c4['type'])return;const _0x236af3=_0xeb04c4['getContainedElement']();if(null!=_0x236af3&&_0x236af3['is'](_0x2c50('0x56'),'table')){if(_0x2c50('0x5d')==_0xeb04c4[_0x2c50('0x62')]){const _0x1dcb65=_0xeb04c4[_0x2c50('0x16')]()[_0x2c50('0x65')](_0x15e914=>_0x15e914['is'](_0x2c50('0x5')))[_0x2c50('0x53')](_0x3f2e42=>_0x3f2e42['data']);if(_0x1dcb65[_0x2c50('0x17')])return{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x3'),'\x22'+_0x1dcb65['join']('\x20')+'\x22'))};}if(_0x2c50('0x7e')==_0xeb04c4[_0x2c50('0x62')]){const _0x1bff15=_0xeb04c4[_0x2c50('0x16')]()[_0x2c50('0x65')](_0x1972f5=>_0x1972f5['is'](_0x2c50('0x5')))[_0x2c50('0x53')](_0x368bc2=>_0x368bc2[_0x2c50('0x3f')]);if(_0x1bff15[_0x2c50('0x17')])return{'type':'deletion','content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,_0x2c50('0x3'),'\x22'+_0x1bff15['join']('\x20')+'\x22'))};}}}),_0x25e4a1[_0x2c50('0x11')]['registerDescriptionCallback'](_0x12908d=>{if(_0x2c50('0x41')==_0x12908d[_0x2c50('0x67')]){const _0x3e14fc=_0x12908d['getItems']()['filter'](_0x24c16b=>_0x24c16b['is']('$textProxy'))['map'](_0x2bcbe3=>_0x2bcbe3[_0x2c50('0x3f')]),_0x59978d=this[_0x2c50('0x7a')](_0x12908d),_0x2ea945=_0x59978d['maxRow']-_0x59978d[_0x2c50('0x4c')]+0x1;if('insertion'==_0x12908d[_0x2c50('0x62')])return _0x3e14fc['length']?{'type':'insertion','content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x3e'),[_0x2ea945,'\x22'+_0x3e14fc[_0x2c50('0x31')]('\x20')+'\x22']))}:{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x76'),_0x2ea945))};if(_0x2c50('0x7e')==_0x12908d[_0x2c50('0x62')])return _0x3e14fc[_0x2c50('0x17')]?{'type':'deletion','content':_0x1fd17d(_0x5aa272,'*Remove:*\x20%0',_0x1fd17d(_0x5aa272,_0x2c50('0x3e'),[_0x2ea945,'\x22'+_0x3e14fc[_0x2c50('0x31')]('\x20')+'\x22']))}:{'type':_0x2c50('0x7e'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,_0x2c50('0x76'),_0x2ea945))};}if('tableColumn'==_0x12908d[_0x2c50('0x67')]){const _0xb2037a=_0x12908d[_0x2c50('0x16')]()[_0x2c50('0x65')](_0x29593d=>_0x29593d['is'](_0x2c50('0x5')))[_0x2c50('0x53')](_0xbb6ae7=>_0xbb6ae7['data']),_0x581fac=this[_0x2c50('0x7a')](_0x12908d),_0x345633=_0x581fac['maxColumn']-_0x581fac[_0x2c50('0x29')]+0x1;if(_0x2c50('0x5d')==_0x12908d[_0x2c50('0x62')])return _0xb2037a[_0x2c50('0x17')]?{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x6a'),[_0x345633,'\x22'+_0xb2037a['join']('\x20')+'\x22']))}:{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x5b'),_0x345633))};if(_0x2c50('0x7e')==_0x12908d[_0x2c50('0x62')])return _0xb2037a[_0x2c50('0x17')]?{'type':_0x2c50('0x7e'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x345633,'\x22'+_0xb2037a[_0x2c50('0x31')]('\x20')+'\x22']))}:{'type':_0x2c50('0x7e'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,_0x2c50('0x5b'),_0x345633))};}}),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x5d'),_0x2c50('0x41'),_0x2c50('0x58'),_0x37052a),_0x25e4a1['_suggestionFactory']['registerCustomCallback'](_0x2c50('0x7e'),_0x2c50('0x41'),_0x2c50('0x12'),_0x37052a),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')]('insertion','tableColumn',_0x2c50('0x58'),_0x9023d1),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x7e'),'tableColumn','accept',_0x9023d1),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x5d'),'tableColumn',_0x2c50('0x31'),_0x441cf4),_0x25e4a1[_0x2c50('0x79')]['registerCustomCallback'](_0x2c50('0x7e'),'tableColumn',_0x2c50('0x31'),_0x441cf4),_0x25e4a1['_suggestionFactory'][_0x2c50('0x55')]('insertion',_0x2c50('0x41'),_0x2c50('0x31'),_0x43f690),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x7e'),_0x2c50('0x41'),_0x2c50('0x31'),_0x43f690);}[_0x2c50('0x2f')](){const _0x25d0e7=this[_0x2c50('0x68')],_0x2342fd=_0x25d0e7['model'][_0x2c50('0x7c')]['selection'];return(_0x25c24b,_0x3717a1)=>{_0x25d0e7[_0x2c50('0x40')][_0x2c50('0x6b')](_0x100618=>{const {commandName:_0x4933ce,commandParams:_0x58151d}=_0x3717a1;let _0x347690=_0x25c24b[0x0]['end'][_0x2c50('0x27')];_0x58151d&&_0x58151d[0x0]&&!0x1===_0x58151d[0x0]['forceValue']&&(_0x347690=_0x25c24b[0x0]['start']['nodeAfter']);const _0x34d57a=_0x100618['createRangeIn'](_0x347690);if(_0x2c50('0x25')==_0x34d57a['root'][_0x2c50('0x45')])return;const _0x42a9b9=Array[_0x2c50('0x81')](_0x2342fd[_0x2c50('0x28')]())['map'](_0x508d74=>_0x347564['fromRange'](_0x508d74));_0x100618[_0x2c50('0x51')](_0x34d57a),_0x25d0e7[_0x2c50('0x8')][_0x2c50('0x24')](_0x4933ce)[_0x2c50('0x59')](),_0x58151d[_0x2c50('0x38')]({'forceDefaultExecution':!0x0}),_0x25d0e7['execute'](_0x4933ce,..._0x58151d);const _0x355db4=_0x42a9b9[_0x2c50('0x65')](_0x5bf6a6=>_0x2c50('0x25')!=_0x5bf6a6[_0x2c50('0x44')][_0x2c50('0x45')]);_0x355db4[_0x2c50('0x17')]>0x0&&_0x100618[_0x2c50('0x51')](_0x355db4);for(const _0x18538e of _0x42a9b9)_0x18538e[_0x2c50('0x18')]();});};}['_getCoordsForCells'](_0x3c6006){const _0x4bc9ce=this[_0x2c50('0x68')][_0x2c50('0x7d')][_0x2c50('0x24')](_0x2c50('0x6'));let _0x368202=Number[_0x2c50('0x43')],_0x3095fd=Number['MIN_SAFE_INTEGER'],_0x7f6cc0=Number[_0x2c50('0x43')],_0x17934d=Number[_0x2c50('0x5c')];for(const _0x1d05c3 of _0x3c6006){if(_0x2c50('0x25')==_0x1d05c3[_0x2c50('0x44')]['rootName'])continue;const {row:_0x4ffae4,column:_0x58cde2}=_0x4bc9ce['getCellLocation'](_0x1d05c3),_0x4d2feb=_0x1d05c3[_0x2c50('0x35')](_0x2c50('0x2e'))?_0x1d05c3['getAttribute'](_0x2c50('0x2e'))-0x1:0x0,_0x99a272=_0x1d05c3[_0x2c50('0x35')](_0x2c50('0x39'))?_0x1d05c3[_0x2c50('0x22')](_0x2c50('0x39'))-0x1:0x0;_0x368202=_0x4ffae4<_0x368202?_0x4ffae4:_0x368202,_0x3095fd=_0x4ffae4+_0x4d2feb>_0x3095fd?_0x4ffae4+_0x4d2feb:_0x3095fd,_0x7f6cc0=_0x58cde2<_0x7f6cc0?_0x58cde2:_0x7f6cc0,_0x17934d=_0x58cde2+_0x99a272>_0x17934d?_0x58cde2+_0x99a272:_0x17934d;}return{'minRow':_0x368202,'maxRow':_0x3095fd,'minColumn':_0x7f6cc0,'maxColumn':_0x17934d};}['_setupColumnsRowsFixing'](){const _0x5ba54e=this[_0x2c50('0x68')],_0x3bc52a=_0x5ba54e['plugins'][_0x2c50('0x24')](_0x2c50('0x1e')),_0x2740b5=_0x5ba54e[_0x2c50('0x7d')]['get'](_0x2c50('0x6'));_0x5ba54e[_0x2c50('0x40')][_0x2c50('0x7c')]['on'](_0x2c50('0x73'),()=>{const _0x2f291a=Array[_0x2c50('0x81')](_0x5ba54e[_0x2c50('0x40')][_0x2c50('0x7c')]['differ'][_0x2c50('0x2')]());for(const {name:_0x4df40d,data:_0x367586}of _0x2f291a){const {group:_0x1abb54,id:_0x538b9f,subType:_0x3de9c4}=_0x3bc52a[_0x2c50('0xa')](_0x4df40d);if('suggestion'!=_0x1abb54)continue;if(null!=_0x367586[_0x2c50('0x66')])continue;const _0x3eddac=_0x3bc52a[_0x2c50('0x5e')](_0x538b9f);this[_0x2c50('0x4')][_0x2c50('0x37')](_0x3de9c4)&&this[_0x2c50('0x1c')][_0x2c50('0x1b')](_0x3eddac);}},{'priority':_0x2c50('0x5f')});const _0x1dedca=(_0x158eb9,_0x474877)=>{let _0x450df6=!0x1;const _0x21b18b=_0x474877[_0x2c50('0x32')](_0x158eb9),_0x4a3a4a=_0x158eb9[_0x2c50('0x74')]('table'),_0x55e715=_0x2740b5[_0x2c50('0x75')](_0x158eb9);for(const _0x5132b1 of this[_0x2c50('0x1c')]){const _0x1654b2=_0x5132b1[_0x2c50('0x67')],_0x136918=_0x1654b2['startsWith']('tablePaste'),_0x4e620b=_0x1654b2[_0x2c50('0x0')](_0x136918?0xa:0x5),_0x2fd55c=_0x4e620b['toLowerCase'](),_0x1f9233=_0x2fd55c[_0x2c50('0x0')](0x0,0x3)+_0x2c50('0x70'),_0x32137c='min'+_0x4e620b,_0x531795=_0x2c50('0x2d')+_0x4e620b;if(!_0x5132b1[_0x2c50('0x77')])continue;if(_0x4a3a4a!=_0x5132b1[_0x2c50('0x61')]()[_0x2c50('0x26')][_0x2c50('0x74')](_0x2c50('0x42')))continue;if(_0x5132b1[_0x2c50('0x63')](_0x21b18b))continue;const _0x4e878a=_0x158eb9['hasAttribute'](_0x1f9233)?_0x158eb9['getAttribute'](_0x1f9233)-0x1:0x0,_0x4c4996=this[_0x2c50('0x7a')](_0x5132b1),_0x593171=_0x4c4996[_0x32137c],_0x3ea05b=_0x4c4996[_0x531795];_0x593171<=_0x55e715[_0x2fd55c]&&_0x55e715[_0x2fd55c]+_0x4e878a<=_0x3ea05b&&(_0x5132b1[_0x2c50('0x6e')](_0x21b18b),_0x450df6=!0x0);}return _0x450df6;};_0x5ba54e[_0x2c50('0x40')][_0x2c50('0x7c')][_0x2c50('0x23')](_0x4acc6a=>{let _0x18e8bf=!0x1;for(const _0x478c21 of _0x5ba54e[_0x2c50('0x40')]['document']['differ']['getChanges']())if(_0x2c50('0x33')==_0x478c21[_0x2c50('0x62')]){if('tableRow'==_0x478c21[_0x2c50('0x21')])for(const _0x34f1c5 of _0x478c21[_0x2c50('0x3a')]['nodeAfter']['getChildren']())_0x18e8bf=_0x18e8bf||_0x1dedca(_0x34f1c5,_0x4acc6a);else _0x2c50('0x10')==_0x478c21[_0x2c50('0x21')]&&(_0x18e8bf=_0x18e8bf||_0x1dedca(_0x478c21['position'][_0x2c50('0x69')],_0x4acc6a));}return _0x18e8bf;});}[_0x2c50('0x7a')](_0x53b6d9){return this[_0x2c50('0x72')](_0x53b6d9[_0x2c50('0x28')]()[_0x2c50('0x53')](_0x318125=>_0x318125['start'][_0x2c50('0x69')]));}}function se(_0xdc0c4e){return Array[_0x2c50('0x81')](new Set(_0xdc0c4e)[_0x2c50('0x9')]());}
|
|
23
|
+
const _0x4b49=['root','refresh','from','$graveyard','getChangedMarkers','*Insert:*\x20%0','insertTableRowAbove','map','ELEMENT_TABLE_ROW_WITH_TEXT','getAttribute','substr','subType','get','ELEMENT_TABLE_WITH_TEXT','first','ELEMENT_TABLE_COLUMN_WITH_TEXT','hasAttribute','tablePaste','above','order','getFirstRange','document','plugins','rowspan','has','type','createRangeIn','*Remove:*\x20%0','length','downcastDispatcher','getRowIndexes','selection','writer','$textProxy','every','tableColumn','span','enableCommand','insertTable','getChanges','TableUtils','min','push','tableRow','getSuggestion','isEqual','discard','isIntersectingWithRange','start','_suggestionFactory','item','findAncestor','editor','options','selectTableRow','detach','ELEMENT_TABLE_COLUMN','toLowerCase','accept','getRanges','minRow','TrackChangesEditing','batch','table','_descriptionFactory','removeTableRow','ELEMENT_TABLE','removeTableColumn','insertTableRowBelow','includes','change','filter','commands','getItems','enqueueChange','oldRange','element','getSelectionAffectedTableCells','setSelection','ELEMENT_TABLE_ROW','end','differ','_tableSuggestions','getChildren','execute','last','fromRange','rootName','_splitMarkerName','forceValue','locale','nodeBefore','max','registerPostFixer','_setupColumnsRowsFixing','join','createRangeOn','deletion','registerCustomCallback','suggestion','insert','model','removeClass','createPositionAt','data','selectTableColumn','add','_getCoordsForCells','addClass','_tablePostFixingSubtypes','insertion','markMultiRangeDeletion','isTouching','colspan','insertTableColumnLeft','some','getColumnIndexes','toViewElement','insertTableColumnRight','getCellLocation','_getSuggestionCoords','showSuggestionHighlights','nodeAfter','afterInit','minColumn','position','MIN_SAFE_INTEGER','createTableWalker','markMultiRangeInsertion','registerElementLabel','classes','isInContent','name'];(function(_0x243211,_0x4b4901){const _0x3a207d=function(_0x5d8155){while(--_0x5d8155){_0x243211['push'](_0x243211['shift']());}};_0x3a207d(++_0x4b4901);}(_0x4b49,0xfc));const _0x3a20=function(_0x243211,_0x4b4901){_0x243211=_0x243211-0x0;let _0x3a207d=_0x4b49[_0x243211];return _0x3a207d;};import{Plugin as _0x3fc206}from'ckeditor5/src/core';import{LiveRange as _0x334c83}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4ecc8a}from'ckeditor5/src/widget';import{getTranslation as _0x5e7dfe}from'../utils/common-translations';export default class mt extends _0x3fc206{constructor(_0x531db7){super(_0x531db7),this[_0x3a20('0x7b')]=[_0x3a20('0x39'),'tableColumn'],this['_tableSuggestions']=new Set();}[_0x3a20('0x4')](){const _0x55e63f=this[_0x3a20('0x42')],_0x26b57e=_0x55e63f[_0x3a20('0x73')][_0x3a20('0x23')][_0x3a20('0x2d')];if(!_0x55e63f[_0x3a20('0x24')][_0x3a20('0x26')]('TableEditing'))return;const _0x33644e=_0x55e63f[_0x3a20('0x68')],_0x4ecf83=_0x55e63f[_0x3a20('0x24')][_0x3a20('0x1a')](_0x3a20('0x4b')),_0x4e1f65=_0x55e63f['plugins'][_0x3a20('0x1a')]('TableUtils');_0x4ecf83['_descriptionFactory'][_0x3a20('0xa')]('table',_0x555cd4=>_0x5e7dfe(_0x33644e,_0x3a20('0x50'),_0x555cd4)),this[_0x3a20('0x6c')](),_0x4ecf83[_0x3a20('0x33')](_0x3a20('0x34')),_0x4ecf83[_0x3a20('0x33')](_0x3a20('0x44')),_0x4ecf83[_0x3a20('0x33')](_0x3a20('0x77'));for(const _0x18706c of[_0x3a20('0x14'),_0x3a20('0x52')]){const _0x5edcb7=_0x55e63f['commands'][_0x3a20('0x1a')](_0x18706c);_0x4ecf83[_0x3a20('0x33')](_0x18706c,_0x4229ab=>{_0x55e63f['model'][_0x3a20('0x54')](_0x586b1e=>{_0x4229ab();const _0x4acbdb=_0x3a20('0x20')===_0x5edcb7['order'],_0x2c730d=_0x4e1f65['getSelectionAffectedTableCells'](_0x26b57e),_0xefcf83=_0x4e1f65[_0x3a20('0x2c')](_0x2c730d),_0x371383=_0x4acbdb?_0xefcf83[_0x3a20('0x1c')]-0x1:_0xefcf83[_0x3a20('0x63')]+0x1,_0x5a0231=_0x2c730d[0x0][_0x3a20('0x41')]('table'),_0x6c7923=_0x4e1f65['createTableWalker'](_0x5a0231,{'startRow':_0x371383,'endRow':_0x371383}),_0x512581=Array['from'](_0x6c7923)[_0x3a20('0x15')](_0x451d86=>_0x586b1e['createRangeOn'](_0x451d86['cell']));_0x4ecf83[_0x3a20('0x9')](_0x512581,'tableRow');});});}for(const _0x71befa of[_0x3a20('0x80'),_0x3a20('0x84')]){const _0x514f22=_0x55e63f[_0x3a20('0x56')][_0x3a20('0x1a')](_0x71befa);_0x4ecf83[_0x3a20('0x33')](_0x71befa,_0x57200b=>{_0x55e63f['model'][_0x3a20('0x54')](_0x440421=>{_0x57200b();const _0x362565='left'===_0x514f22[_0x3a20('0x21')],_0x5df564=_0x4e1f65[_0x3a20('0x5b')](_0x26b57e),_0x26ca60=_0x4e1f65[_0x3a20('0x82')](_0x5df564),_0x38a27e=_0x362565?_0x26ca60[_0x3a20('0x1c')]-0x1:_0x26ca60[_0x3a20('0x63')]+0x1,_0x4151e5=_0x5df564[0x0][_0x3a20('0x41')](_0x3a20('0x4d')),_0x439c1d=_0x4e1f65[_0x3a20('0x8')](_0x4151e5,{'startRow':0x0,'column':_0x38a27e,'includeAllSlots':!0x1}),_0x3604b4=Array[_0x3a20('0x10')](_0x439c1d)['map'](_0xb6db87=>_0x440421['createRangeOn'](_0xb6db87['cell']));_0x4ecf83[_0x3a20('0x9')](_0x3604b4,'tableColumn');});});}for(const _0x54aa2a of[_0x3a20('0x4f'),_0x3a20('0x51')]){const _0xf64efa=_0x54aa2a[_0x3a20('0x18')](0xb),_0x4584da=_0xf64efa[_0x3a20('0x47')](),_0x4c430e=_0x4584da[_0x3a20('0x18')](0x0,0x3)+_0x3a20('0x32'),_0x1fcd65=_0x3a20('0x4d')+_0xf64efa,_0x30a64f=_0x3a20('0x37')+_0xf64efa,_0xcc74f6=_0x3a20('0x6a')+_0xf64efa;_0x4ecf83[_0x3a20('0x33')](_0x54aa2a,()=>{_0x55e63f[_0x3a20('0x73')]['change'](_0x2562bb=>{const _0xdaac37=_0x4e1f65[_0x3a20('0x5b')](_0x26b57e),_0x3c0643=_0xdaac37[0x0]['findAncestor']('table');let _0x58f3a3;if(_0x3a20('0x4f')==_0x54aa2a){const _0x1a9691=_0x4e1f65[_0x3a20('0x2c')](_0xdaac37);_0x58f3a3={'startRow':_0x1a9691[_0x3a20('0x1c')],'endRow':_0x1a9691[_0x3a20('0x63')],'includeAllSlots':!0x0};}else{const _0x1856a3=_0x4e1f65[_0x3a20('0x82')](_0xdaac37);_0x58f3a3={'startColumn':_0x1856a3['first'],'endColumn':_0x1856a3[_0x3a20('0x63')],'includeAllSlots':!0x0};}const _0x2f207d=_0x4e1f65[_0x3a20('0x8')](_0x3c0643,_0x58f3a3),_0xc4cfb6=Array['from'](_0x2f207d)[_0x3a20('0x15')](({cell:_0x5492c6})=>_0x5492c6),_0x122cd2=se(_0xc4cfb6[_0x3a20('0x55')](_0x418cdc=>_0x418cdc[_0x3a20('0x1e')](_0x4c430e))),_0x3db04c=se(_0xc4cfb6[_0x3a20('0x55')](_0x25e927=>!_0x25e927[_0x3a20('0x1e')](_0x4c430e)))[_0x3a20('0x15')](_0xefd17c=>_0x2562bb['createRangeOn'](_0xefd17c)),_0x279e54=_0x4ecf83[_0x3a20('0x7d')](_0x3db04c,_0x1fcd65);if(_0x279e54&&(_0x3a20('0x39')==_0x279e54[_0x3a20('0x19')]||_0x3a20('0x31')==_0x279e54['subType'])){const _0x41e76b=this[_0x3a20('0x1')](_0x279e54);for(const _0x30b99c of _0x122cd2){const _0x3cb4e4=_0x2562bb[_0x3a20('0x6e')](_0x30b99c),_0x45aadb=_0x4e1f65[_0x3a20('0x0')](_0x30b99c),_0x2e69df=_0x30b99c[_0x3a20('0x17')](_0x4c430e)-0x1,_0x872842=_0x41e76b[_0x30a64f],_0x42a5b9=_0x41e76b[_0xcc74f6];_0x872842<=_0x45aadb[_0x4584da]&&_0x45aadb[_0x4584da]+_0x2e69df<=_0x42a5b9&&_0x279e54['addRange'](_0x3cb4e4);}}});});}function _0x1c372f(_0x586507){const _0x2b6fa2=Array[_0x3a20('0x10')](_0x26b57e[_0x3a20('0x49')]())[_0x3a20('0x15')](_0x1ca35e=>_0x334c83[_0x3a20('0x64')](_0x1ca35e));_0x55e63f['model'][_0x3a20('0x54')](_0x5ac7c1=>{const _0x5c715d=_0x5ac7c1[_0x3a20('0x4c')];_0x586507=_0x586507[_0x3a20('0x55')](_0x43c744=>_0x3a20('0x11')!=_0x43c744['root'][_0x3a20('0x65')]),_0x5ac7c1[_0x3a20('0x5c')](_0x586507),_0x55e63f[_0x3a20('0x56')][_0x3a20('0x1a')](_0x3a20('0x4f'))[_0x3a20('0xf')](),_0x55e63f[_0x3a20('0x62')](_0x3a20('0x4f'),{'forceDefaultExecution':!0x0}),_0x55e63f[_0x3a20('0x73')][_0x3a20('0x58')](()=>{_0x55e63f[_0x3a20('0x73')][_0x3a20('0x58')](_0x5c715d,_0x1ed6b5=>{const _0x196d9b=_0x2b6fa2['filter'](_0x23a529=>_0x3a20('0x11')!=_0x23a529[_0x3a20('0xe')][_0x3a20('0x65')]);_0x196d9b['length']>0x0&&_0x1ed6b5[_0x3a20('0x5c')](_0x196d9b);for(const _0x1cb33f of _0x2b6fa2)_0x1cb33f[_0x3a20('0x45')]();});});});}function _0x3711bf(_0x503b02){_0x55e63f[_0x3a20('0x73')]['change'](_0xea72ec=>{const _0x4b0681=Array[_0x3a20('0x10')](_0x26b57e['getRanges']())[_0x3a20('0x15')](_0x2942f7=>_0x334c83[_0x3a20('0x64')](_0x2942f7)),_0x1ba9d1=[];for(const _0x2dbe45 of _0x503b02)for(const _0x124285 of _0x2dbe45['getItems']({'shallow':!0x0}))_0x1ba9d1[_0x3a20('0x38')](_0x124285);for(const _0x3c79c8 of _0x1ba9d1)_0x3a20('0x11')!=_0x3c79c8[_0x3a20('0xe')]['rootName']&&(_0xea72ec[_0x3a20('0x5c')](_0xea72ec[_0x3a20('0x75')](_0x3c79c8,0x0)),_0x55e63f[_0x3a20('0x56')][_0x3a20('0x1a')](_0x3a20('0x51'))[_0x3a20('0xf')](),_0x55e63f['execute'](_0x3a20('0x51'),{'forceDefaultExecution':!0x0}));const _0x33ad1a=_0x4b0681[_0x3a20('0x55')](_0x2dbfe2=>_0x3a20('0x11')!=_0x2dbfe2[_0x3a20('0xe')][_0x3a20('0x65')]);_0x33ad1a[_0x3a20('0x2a')]>0x0&&_0xea72ec['setSelection'](_0x33ad1a);for(const _0x36793b of _0x4b0681)_0x36793b[_0x3a20('0x45')]();});}function _0x18424f(_0x494776,_0x1f7c2a){return _0x1f7c2a[_0x3a20('0x30')](_0x4323b=>_0x494776[_0x3a20('0x81')](_0x12ac0a=>_0x12ac0a[_0x3a20('0x5e')]['isEqual'](_0x4323b[_0x3a20('0x3e')])||_0x4323b[_0x3a20('0x5e')][_0x3a20('0x3b')](_0x12ac0a['start'])));}function _0x143210(_0x2583ca,_0x3ed80a){return _0x2583ca[_0x3a20('0x81')](_0xee80a0=>_0x3ed80a[_0x3a20('0x81')](_0x4e612e=>_0xee80a0['end'][_0x3a20('0x7e')](_0x4e612e[_0x3a20('0x3e')])));}_0x55e63f[_0x3a20('0x76')][_0x3a20('0x2b')]['on']('addMarker:suggestion',(_0x38e816,_0x208d7e,_0x5f1c9b)=>{if(!_0x5f1c9b[_0x3a20('0x43')][_0x3a20('0x2')])return;const _0x4c32a0=_0x208d7e[_0x3a20('0x40')];if(!_0x4c32a0)return;const _0x13efff=_0x5f1c9b['mapper'][_0x3a20('0x83')](_0x4c32a0);function _0x273b0f(_0x28fbcb){return Array['isArray'](_0x28fbcb)?_0x28fbcb:[_0x28fbcb];}_0x13efff&&'tableCell'===_0x4c32a0['name']&&_0x4ecc8a(_0x13efff,_0x5f1c9b[_0x3a20('0x2e')],(_0x29abf6,_0x17adc7,_0x9a87ee)=>_0x9a87ee[_0x3a20('0x7a')](_0x273b0f(_0x17adc7[_0x3a20('0xb')]),_0x29abf6),(_0x5c1433,_0x3fc64f,_0x45979a)=>_0x45979a[_0x3a20('0x74')](_0x273b0f(_0x3fc64f[_0x3a20('0xb')]),_0x5c1433));},{'priority':'highest'}),_0x4ecf83[_0x3a20('0x4e')]['registerDescriptionCallback'](_0x267b38=>{if(_0x3a20('0x7c')!=_0x267b38[_0x3a20('0x27')]&&_0x3a20('0x6f')!=_0x267b38[_0x3a20('0x27')])return;const _0x3b00e9=_0x267b38['getContainedElement']();if(null!=_0x3b00e9&&_0x3b00e9['is'](_0x3a20('0x5a'),_0x3a20('0x4d'))){if('insertion'==_0x267b38[_0x3a20('0x27')]){const _0xfa132d=_0x267b38[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x569a20=>_0x569a20['is']('$textProxy'))[_0x3a20('0x15')](_0x3b7f65=>_0x3b7f65[_0x3a20('0x76')]);if(_0xfa132d['length'])return{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1b'),'\x22'+_0xfa132d[_0x3a20('0x6d')]('\x20')+'\x22'))};}if(_0x3a20('0x6f')==_0x267b38[_0x3a20('0x27')]){const _0x92ac75=_0x267b38[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x1bb167=>_0x1bb167['is'](_0x3a20('0x2f')))['map'](_0x5a941b=>_0x5a941b[_0x3a20('0x76')]);if(_0x92ac75[_0x3a20('0x2a')])return{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,'*Remove:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1b'),'\x22'+_0x92ac75[_0x3a20('0x6d')]('\x20')+'\x22'))};}}}),_0x4ecf83[_0x3a20('0x4e')]['registerDescriptionCallback'](_0x2d2dd4=>{if('tableRow'==_0x2d2dd4[_0x3a20('0x19')]){const _0x21b741=_0x2d2dd4[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x2615ad=>_0x2615ad['is']('$textProxy'))[_0x3a20('0x15')](_0x40757e=>_0x40757e[_0x3a20('0x76')]),_0x4d07b5=this[_0x3a20('0x1')](_0x2d2dd4),_0x2d5f69=_0x4d07b5['maxRow']-_0x4d07b5[_0x3a20('0x4a')]+0x1;if(_0x3a20('0x7c')==_0x2d2dd4['type'])return _0x21b741[_0x3a20('0x2a')]?{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,_0x3a20('0x13'),_0x5e7dfe(_0x33644e,_0x3a20('0x16'),[_0x2d5f69,'\x22'+_0x21b741['join']('\x20')+'\x22']))}:{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x5d'),_0x2d5f69))};if(_0x3a20('0x6f')==_0x2d2dd4[_0x3a20('0x27')])return _0x21b741[_0x3a20('0x2a')]?{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,_0x3a20('0x29'),_0x5e7dfe(_0x33644e,_0x3a20('0x16'),[_0x2d5f69,'\x22'+_0x21b741['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x5e7dfe(_0x33644e,_0x3a20('0x29'),_0x5e7dfe(_0x33644e,_0x3a20('0x5d'),_0x2d5f69))};}if(_0x3a20('0x31')==_0x2d2dd4['subType']){const _0x49f942=_0x2d2dd4[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x5666c3=>_0x5666c3['is'](_0x3a20('0x2f')))[_0x3a20('0x15')](_0x12c07d=>_0x12c07d[_0x3a20('0x76')]),_0x296994=this[_0x3a20('0x1')](_0x2d2dd4),_0x2749c0=_0x296994['maxColumn']-_0x296994[_0x3a20('0x5')]+0x1;if(_0x3a20('0x7c')==_0x2d2dd4[_0x3a20('0x27')])return _0x49f942['length']?{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1d'),[_0x2749c0,'\x22'+_0x49f942[_0x3a20('0x6d')]('\x20')+'\x22']))}:{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x46'),_0x2749c0))};if(_0x3a20('0x6f')==_0x2d2dd4[_0x3a20('0x27')])return _0x49f942[_0x3a20('0x2a')]?{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,'*Remove:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1d'),[_0x2749c0,'\x22'+_0x49f942['join']('\x20')+'\x22']))}:{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,'*Remove:*\x20%0',_0x5e7dfe(_0x33644e,'ELEMENT_TABLE_COLUMN',_0x2749c0))};}}),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x7c'),_0x3a20('0x39'),_0x3a20('0x3c'),_0x1c372f),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')]('deletion',_0x3a20('0x39'),_0x3a20('0x48'),_0x1c372f),_0x4ecf83['_suggestionFactory'][_0x3a20('0x70')](_0x3a20('0x7c'),'tableColumn','discard',_0x3711bf),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')]('deletion',_0x3a20('0x31'),_0x3a20('0x48'),_0x3711bf),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x7c'),_0x3a20('0x31'),'join',_0x18424f),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x6f'),_0x3a20('0x31'),_0x3a20('0x6d'),_0x18424f),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')]('insertion','tableRow','join',_0x143210),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x6f'),'tableRow','join',_0x143210);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3b865e=this[_0x3a20('0x42')],_0x24cbfa=_0x3b865e['model'][_0x3a20('0x23')][_0x3a20('0x2d')];return(_0x1b77b4,_0x9de50)=>{_0x3b865e[_0x3a20('0x73')][_0x3a20('0x54')](_0x37f339=>{const {commandName:_0x19b40c,commandParams:_0x26b51f}=_0x9de50;let _0x4ee39e=_0x1b77b4[0x0][_0x3a20('0x5e')][_0x3a20('0x69')];_0x26b51f&&_0x26b51f[0x0]&&!0x1===_0x26b51f[0x0][_0x3a20('0x67')]&&(_0x4ee39e=_0x1b77b4[0x0][_0x3a20('0x3e')][_0x3a20('0x3')]);const _0x2d8271=_0x37f339[_0x3a20('0x28')](_0x4ee39e);if(_0x3a20('0x11')==_0x2d8271[_0x3a20('0xe')]['rootName'])return;const _0x291cfe=Array[_0x3a20('0x10')](_0x24cbfa[_0x3a20('0x49')]())[_0x3a20('0x15')](_0x5bab00=>_0x334c83[_0x3a20('0x64')](_0x5bab00));_0x37f339[_0x3a20('0x5c')](_0x2d8271),_0x3b865e['commands'][_0x3a20('0x1a')](_0x19b40c)[_0x3a20('0xf')](),_0x26b51f[_0x3a20('0x38')]({'forceDefaultExecution':!0x0}),_0x3b865e[_0x3a20('0x62')](_0x19b40c,..._0x26b51f);const _0x5af840=_0x291cfe[_0x3a20('0x55')](_0x3e46f8=>_0x3a20('0x11')!=_0x3e46f8[_0x3a20('0xe')][_0x3a20('0x65')]);_0x5af840['length']>0x0&&_0x37f339[_0x3a20('0x5c')](_0x5af840);for(const _0x464bba of _0x291cfe)_0x464bba[_0x3a20('0x45')]();});};}[_0x3a20('0x79')](_0x168b7f){const _0x523695=this[_0x3a20('0x42')][_0x3a20('0x24')]['get'](_0x3a20('0x36'));let _0x14552f=Number['MAX_SAFE_INTEGER'],_0x4c9985=Number[_0x3a20('0x7')],_0x5861c1=Number['MAX_SAFE_INTEGER'],_0x285456=Number[_0x3a20('0x7')];for(const _0x23750b of _0x168b7f){if(_0x3a20('0x11')==_0x23750b['root'][_0x3a20('0x65')])continue;const {row:_0x3c14b0,column:_0x33a9dd}=_0x523695[_0x3a20('0x0')](_0x23750b),_0x537b74=_0x23750b[_0x3a20('0x1e')](_0x3a20('0x25'))?_0x23750b[_0x3a20('0x17')]('rowspan')-0x1:0x0,_0x5355ca=_0x23750b['hasAttribute'](_0x3a20('0x7f'))?_0x23750b[_0x3a20('0x17')]('colspan')-0x1:0x0;_0x14552f=_0x3c14b0<_0x14552f?_0x3c14b0:_0x14552f,_0x4c9985=_0x3c14b0+_0x537b74>_0x4c9985?_0x3c14b0+_0x537b74:_0x4c9985,_0x5861c1=_0x33a9dd<_0x5861c1?_0x33a9dd:_0x5861c1,_0x285456=_0x33a9dd+_0x5355ca>_0x285456?_0x33a9dd+_0x5355ca:_0x285456;}return{'minRow':_0x14552f,'maxRow':_0x4c9985,'minColumn':_0x5861c1,'maxColumn':_0x285456};}[_0x3a20('0x6c')](){const _0x2939d1=this['editor'],_0x20b37b=_0x2939d1[_0x3a20('0x24')]['get'](_0x3a20('0x4b')),_0x492953=_0x2939d1[_0x3a20('0x24')]['get'](_0x3a20('0x36'));_0x2939d1[_0x3a20('0x73')][_0x3a20('0x23')]['on']('change:data',()=>{const _0x2db243=Array[_0x3a20('0x10')](_0x2939d1[_0x3a20('0x73')][_0x3a20('0x23')]['differ'][_0x3a20('0x12')]());for(const {name:_0x209b7a,data:_0x51a4cc}of _0x2db243){const {group:_0x31dc37,id:_0x212a91,subType:_0x40f358}=_0x20b37b[_0x3a20('0x66')](_0x209b7a);if(_0x3a20('0x71')!=_0x31dc37)continue;if(null!=_0x51a4cc[_0x3a20('0x59')])continue;const _0x25e22f=_0x20b37b[_0x3a20('0x3a')](_0x212a91);this[_0x3a20('0x7b')][_0x3a20('0x53')](_0x40f358)&&this['_tableSuggestions'][_0x3a20('0x78')](_0x25e22f);}},{'priority':'low'});const _0x140083=(_0x5aff72,_0xcf9dd5)=>{let _0x52e4ce=!0x1;const _0x338648=_0xcf9dd5[_0x3a20('0x6e')](_0x5aff72),_0xc1b5fb=_0x5aff72[_0x3a20('0x41')](_0x3a20('0x4d')),_0x1e7a93=_0x492953[_0x3a20('0x0')](_0x5aff72);for(const _0x5af2e6 of this[_0x3a20('0x60')]){const _0x2ada7f=_0x5af2e6[_0x3a20('0x19')],_0x5db87a=_0x2ada7f['startsWith'](_0x3a20('0x1f')),_0x25e72a=_0x2ada7f[_0x3a20('0x18')](_0x5db87a?0xa:0x5),_0x274176=_0x25e72a[_0x3a20('0x47')](),_0x3a003e=_0x274176['substr'](0x0,0x3)+'span',_0x5ea56f=_0x3a20('0x37')+_0x25e72a,_0x20c2eb=_0x3a20('0x6a')+_0x25e72a;if(!_0x5af2e6[_0x3a20('0xc')])continue;if(_0xc1b5fb!=_0x5af2e6[_0x3a20('0x22')]()[_0x3a20('0x3e')][_0x3a20('0x41')]('table'))continue;if(_0x5af2e6[_0x3a20('0x3d')](_0x338648))continue;const _0x402d14=_0x5aff72[_0x3a20('0x1e')](_0x3a003e)?_0x5aff72[_0x3a20('0x17')](_0x3a003e)-0x1:0x0,_0x509dde=this[_0x3a20('0x1')](_0x5af2e6),_0x18e542=_0x509dde[_0x5ea56f],_0x3fe3fe=_0x509dde[_0x20c2eb];_0x18e542<=_0x1e7a93[_0x274176]&&_0x1e7a93[_0x274176]+_0x402d14<=_0x3fe3fe&&(_0x5af2e6['addRange'](_0x338648),_0x52e4ce=!0x0);}return _0x52e4ce;};_0x2939d1[_0x3a20('0x73')][_0x3a20('0x23')][_0x3a20('0x6b')](_0x142dee=>{let _0x5374da=!0x1;for(const _0x22aa6a of _0x2939d1[_0x3a20('0x73')]['document'][_0x3a20('0x5f')][_0x3a20('0x35')]())if(_0x3a20('0x72')==_0x22aa6a['type']){if(_0x3a20('0x39')==_0x22aa6a[_0x3a20('0xd')])for(const _0x26e45a of _0x22aa6a[_0x3a20('0x6')]['nodeAfter'][_0x3a20('0x61')]())_0x5374da=_0x5374da||_0x140083(_0x26e45a,_0x142dee);else'tableCell'==_0x22aa6a[_0x3a20('0xd')]&&(_0x5374da=_0x5374da||_0x140083(_0x22aa6a['position'][_0x3a20('0x3')],_0x142dee));}return _0x5374da;});}[_0x3a20('0x1')](_0xb8d0a4){return this[_0x3a20('0x79')](_0xb8d0a4[_0x3a20('0x49')]()[_0x3a20('0x15')](_0x4f8d79=>_0x4f8d79[_0x3a20('0x3e')][_0x3a20('0x3')]));}}function se(_0xb6da46){return Array[_0x3a20('0x10')](new Set(_0xb6da46)['values']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a1c=['enableCommand','toggleTableCaption','TableCaptionEditing','afterInit','plugins','TrackChangesEditing','get','editor','has'];(function(_0x31ca78,_0x2a1cc2){const _0x19bf91=function(_0x2560e9){while(--_0x2560e9){_0x31ca78['push'](_0x31ca78['shift']());}};_0x19bf91(++_0x2a1cc2);}(_0x2a1c,0x135));const _0x19bf=function(_0x31ca78,_0x2a1cc2){_0x31ca78=_0x31ca78-0x0;let _0x19bf91=_0x2a1c[_0x31ca78];return _0x19bf91;};import{Plugin as _0x483c63}from'ckeditor5/src/core';import _0x3923ec from'./table';export default class vt extends _0x483c63{static get['requires'](){return[_0x3923ec];}[_0x19bf('0x0')](){const _0x2b8765=this[_0x19bf('0x4')];if(!_0x2b8765[_0x19bf('0x1')][_0x19bf('0x5')](_0x19bf('0x8')))return;_0x2b8765['plugins'][_0x19bf('0x3')](_0x19bf('0x2'))[_0x19bf('0x6')](_0x19bf('0x7'));}}
|