@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230726.0 → 0.0.0-nightly-20230727.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17ec=['numbered','format','list.properties','createPositionAt','unshift','getSiblingNodes','_getTranslationKeyForListStyle','getListTypeFromListStyleType','_getSuggestionBlocks','model','before','map','ELEMENT_','listStyle','editor','toUpperCase','parent','change','element','from','locale','document','plugins','forward','get','listItem','afterInit','listReversed','*Format:*\x20set\x20order\x20to\x20regular','filter','getFirstPosition','listStart','has','handleListReversedCommand','bind','listType','type','handleDescriptions','*Format:*\x20set\x20order\x20to\x20reversed','startIndex','push','config','enableCommand','_getSuggestionBlocksForListStyle','_LIST_','*Format:*\x20set\x20start\x20index\x20to\x20%0','styles','ListPropertiesEditing','commandParams','backward','getSelectedBlocks','length','_descriptionFactory','createRange','handleListStartCommand','reversed','selection','TrackChangesEditing','handleListStyleCommand','getAttribute','registerDescriptionCallback','ListUtils','markMultiRangeBlockFormat','getLastPosition'];(function(_0x114b3d,_0x17eca9){const _0x22a34a=function(_0x3012b4){while(--_0x3012b4){_0x114b3d['push'](_0x114b3d['shift']());}};_0x22a34a(++_0x17eca9);}(_0x17ec,0xac));const _0x22a3=function(_0x114b3d,_0x17eca9){_0x114b3d=_0x114b3d-0x0;let _0x22a34a=_0x17ec[_0x114b3d];return _0x22a34a;};import{Plugin as _0x1b2c28}from'ckeditor5/src/core';import{getTranslation as _0x5e9426}from'../utils/common-translations';export default class nt extends _0x1b2c28{[_0x22a3('0x2e')](){if(!this[_0x22a3('0x22')]['plugins'][_0x22a3('0x34')](_0x22a3('0x3')))return;const _0x575d2c=this[_0x22a3('0x22')][_0x22a3('0x3d')]['get'](_0x22a3('0x16')),_0x45818d=this[_0x22a3('0x22')]['plugins'][_0x22a3('0x2c')](_0x22a3('0xd'));_0x575d2c[_0x22a3('0x2')]&&_0x45818d[_0x22a3('0x3e')]('listStyle',this[_0x22a3('0xe')][_0x22a3('0x36')](this)),_0x575d2c[_0x22a3('0xb')]&&_0x45818d[_0x22a3('0x3e')](_0x22a3('0x2f'),this[_0x22a3('0x35')]['bind'](this)),_0x575d2c[_0x22a3('0x3b')]&&_0x45818d[_0x22a3('0x3e')](_0x22a3('0x33'),this[_0x22a3('0xa')][_0x22a3('0x36')](this)),_0x45818d[_0x22a3('0x8')][_0x22a3('0x10')](this['handleDescriptions']['bind'](this));}[_0x22a3('0xe')](_0xf236a3,_0x4648ff={}){const _0x4da9ff=this[_0x22a3('0x22')][_0x22a3('0x2a')][_0x22a3('0x2c')]('TrackChangesEditing'),_0x26fc43=this[_0x22a3('0x3f')]();this[_0x22a3('0x22')]['model'][_0x22a3('0x25')](()=>{_0x4da9ff[_0x22a3('0x12')](_0x26fc43,{'commandName':'listStyle','commandParams':[{'type':_0x4648ff[_0x22a3('0x38')]}],'formatGroupId':_0x22a3('0x21')});});}['handleListReversedCommand'](_0x89b829,_0x6413df={}){const _0x2c59cf=this['editor'][_0x22a3('0x2a')]['get']('TrackChangesEditing'),_0x5eed7f=this[_0x22a3('0x1c')](_0x3dcfd3=>_0x3dcfd3['is'](_0x22a3('0x26'),_0x22a3('0x2d'))&&_0x22a3('0x14')===_0x3dcfd3['getAttribute'](_0x22a3('0x37')));if(_0x5eed7f['length']<0x1)return;const _0x219b5b=_0x5eed7f['map'](_0x521563=>this[_0x22a3('0x22')]['model']['createRange'](this[_0x22a3('0x22')][_0x22a3('0x1d')][_0x22a3('0x17')](_0x521563,_0x22a3('0x1e')),this['editor'][_0x22a3('0x1d')][_0x22a3('0x17')](_0x521563,0x0)));this['editor'][_0x22a3('0x1d')][_0x22a3('0x25')](()=>{_0x2c59cf[_0x22a3('0x12')](_0x219b5b,{'commandName':_0x22a3('0x2f'),'commandParams':[{'reversed':_0x6413df['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x27636a,_0x3a6875={}){const _0xee5d56=this['editor'][_0x22a3('0x2a')][_0x22a3('0x2c')](_0x22a3('0xd')),_0x524078=this['_getSuggestionBlocks'](_0x2fe5c0=>_0x2fe5c0['is'](_0x22a3('0x26'),'listItem')&&_0x22a3('0x14')===_0x2fe5c0[_0x22a3('0xf')](_0x22a3('0x37')));if(_0x524078[_0x22a3('0x7')]<0x1)return;const _0x311819=_0x524078[_0x22a3('0x1f')](_0x6aa41=>this[_0x22a3('0x22')]['model'][_0x22a3('0x9')](this[_0x22a3('0x22')][_0x22a3('0x1d')][_0x22a3('0x17')](_0x6aa41,'before'),this['editor'][_0x22a3('0x1d')][_0x22a3('0x17')](_0x6aa41,0x0)));this[_0x22a3('0x22')][_0x22a3('0x1d')]['change'](()=>{_0xee5d56[_0x22a3('0x12')](_0x311819,{'commandName':_0x22a3('0x33'),'commandParams':[{'startIndex':_0x3a6875[_0x22a3('0x3b')]}],'formatGroupId':'listStart'});});}[_0x22a3('0x39')](_0xbe6944){const _0x629ab6=this[_0x22a3('0x22')][_0x22a3('0x28')],{data:_0x4e13f9}=_0xbe6944;if(!_0x4e13f9)return;let _0xd2adc1,_0x574a62;switch(_0x4e13f9['commandName']){case _0x22a3('0x21'):_0xd2adc1='*Change\x20to:*\x20%0',_0x574a62={'type':'format','content':_0x5e9426(_0x629ab6,_0xd2adc1,_0x5e9426(_0x629ab6,this['_getTranslationKeyForListStyle'](_0x4e13f9['commandParams'][0x0][_0x22a3('0x38')])))};break;case _0x22a3('0x2f'):_0xd2adc1=_0x4e13f9[_0x22a3('0x4')][0x0][_0x22a3('0xb')]?_0x22a3('0x3a'):_0x22a3('0x30'),_0x574a62={'type':_0x22a3('0x15'),'content':_0x5e9426(_0x629ab6,_0xd2adc1)};break;case _0x22a3('0x33'):_0xd2adc1=_0x22a3('0x1'),_0x574a62={'type':_0x22a3('0x15'),'content':_0x5e9426(_0x629ab6,_0xd2adc1,_0x4e13f9[_0x22a3('0x4')][0x0]['startIndex'])};}return _0x574a62;}['_getSuggestionBlocksForListStyle'](){var _0x50c14c,_0x450389,_0x1a2e5a,_0x48b40c;const _0x1db8c0=this[_0x22a3('0x22')]['plugins'][_0x22a3('0x2c')](_0x22a3('0x11'));let _0x30b4cf=Array['from'](this[_0x22a3('0x22')][_0x22a3('0x1d')][_0x22a3('0x29')][_0x22a3('0xc')][_0x22a3('0x6')]());return(null===(_0x50c14c=_0x30b4cf[0x0])||void 0x0===_0x50c14c?void 0x0:_0x50c14c['is'](_0x22a3('0x26'),_0x22a3('0x2d')))&&_0x30b4cf[_0x22a3('0x18')](..._0x1db8c0['getSiblingNodes'](this[_0x22a3('0x22')][_0x22a3('0x1d')]['document'][_0x22a3('0xc')][_0x22a3('0x32')](),'backward')),(null===(_0x450389=_0x30b4cf[_0x30b4cf[_0x22a3('0x7')]-0x1])||void 0x0===_0x450389?void 0x0:_0x450389['is']('element',_0x22a3('0x2d')))&&_0x30b4cf[_0x22a3('0x3c')](..._0x1db8c0[_0x22a3('0x19')](this[_0x22a3('0x22')][_0x22a3('0x1d')][_0x22a3('0x29')]['selection'][_0x22a3('0x13')](),_0x22a3('0x2b'))),_0x30b4cf=[...new Set(_0x30b4cf)],(null===(_0x48b40c=null===(_0x1a2e5a=this[_0x22a3('0x22')][_0x22a3('0x1d')][_0x22a3('0x29')][_0x22a3('0xc')][_0x22a3('0x32')]())||void 0x0===_0x1a2e5a?void 0x0:_0x1a2e5a[_0x22a3('0x24')])||void 0x0===_0x48b40c?void 0x0:_0x48b40c['is'](_0x22a3('0x26'),'listItem'))&&(_0x30b4cf=_0x30b4cf[_0x22a3('0x31')](_0x33e65a=>_0x33e65a['is']('element','listItem'))),_0x30b4cf;}[_0x22a3('0x1c')](_0x5cf7a7){const _0x501d29=this[_0x22a3('0x22')]['plugins'][_0x22a3('0x2c')](_0x22a3('0x11'));let _0xfea0d6=Array[_0x22a3('0x27')](this[_0x22a3('0x22')][_0x22a3('0x1d')][_0x22a3('0x29')]['selection']['getSelectedBlocks']())['filter'](_0x5cf7a7)[_0x22a3('0x1f')](_0x161a47=>{const _0x2cb7f4=this[_0x22a3('0x22')][_0x22a3('0x1d')][_0x22a3('0x17')](_0x161a47,0x0);return[..._0x501d29[_0x22a3('0x19')](_0x2cb7f4,_0x22a3('0x5')),..._0x501d29[_0x22a3('0x19')](_0x2cb7f4,_0x22a3('0x2b'))];})['flat']();return _0xfea0d6=[...new Set(_0xfea0d6)],_0xfea0d6;}[_0x22a3('0x1a')](_0x22c3b3){return _0x22a3('0x20')+this[_0x22a3('0x22')][_0x22a3('0x2a')][_0x22a3('0x2c')](_0x22a3('0x11'))[_0x22a3('0x1b')](_0x22c3b3)[_0x22a3('0x23')]()+_0x22a3('0x0')+_0x22c3b3[_0x22a3('0x23')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5871=['plugins','has','_descriptionFactory','high','options','stop','MediaEmbedEditing','dataDowncast','showSuggestionHighlights','afterInit','elementToElement','div','data','TrackChangesEditing','ELEMENT_MEDIA','for','conversion','media','downcastDispatcher','get','attribute:url:media'];(function(_0x5ae926,_0x587130){const _0x3f185f=function(_0x40bd75){while(--_0x40bd75){_0x5ae926['push'](_0x5ae926['shift']());}};_0x3f185f(++_0x587130);}(_0x5871,0x1e2));const _0x3f18=function(_0x5ae926,_0x587130){_0x5ae926=_0x5ae926-0x0;let _0x3f185f=_0x5871[_0x5ae926];return _0x3f185f;};import{Plugin as _0x11a7a1}from'ckeditor5/src/core';import{getTranslation as _0x416494}from'../utils/common-translations';export default class ot extends _0x11a7a1{[_0x3f18('0xa')](){const _0x18eb09=this['editor'];if(!_0x18eb09[_0x3f18('0x1')][_0x3f18('0x2')](_0x3f18('0x7')))return;const _0x1ee2b6=_0x18eb09['plugins'][_0x3f18('0x14')](_0x3f18('0xe')),_0x5106d3=_0x18eb09['locale'];_0x1ee2b6['enableCommand']('mediaEmbed'),_0x1ee2b6[_0x3f18('0x3')]['registerElementLabel'](_0x3f18('0x12'),_0x281bba=>_0x416494(_0x5106d3,_0x3f18('0xf'),_0x281bba)),_0x18eb09[_0x3f18('0x11')][_0x3f18('0x10')](_0x3f18('0x8'))[_0x3f18('0xb')]({'model':_0x3f18('0x12'),'view':(_0x3495ba,{writer:_0x4ed80d,options:_0x2a30cb})=>{if(_0x2a30cb[_0x3f18('0x9')])return _0x4ed80d['createEmptyElement'](_0x3f18('0xc'));},'converterPriority':'high'}),_0x18eb09[_0x3f18('0xd')][_0x3f18('0x13')]['on'](_0x3f18('0x0'),(_0x3b5d2e,_0x53d8ac,_0x1bdcdb)=>{_0x1bdcdb[_0x3f18('0x5')][_0x3f18('0x9')]&&_0x3b5d2e[_0x3f18('0x6')]();},{'priority':_0x3f18('0x4')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f2d=['afterInit','editor','plugins','enableCommand','mention','MentionEditing','TrackChangesEditing','get'];(function(_0x2034a2,_0x5f2d32){const _0x367ce9=function(_0xcd9f88){while(--_0xcd9f88){_0x2034a2['push'](_0x2034a2['shift']());}};_0x367ce9(++_0x5f2d32);}(_0x5f2d,0xeb));const _0x367c=function(_0x2034a2,_0x5f2d32){_0x2034a2=_0x2034a2-0x0;let _0x367ce9=_0x5f2d[_0x2034a2];return _0x367ce9;};import{Plugin as _0x314046}from'ckeditor5/src/core';export default class rt extends _0x314046{[_0x367c('0x5')](){const _0x18d56c=this[_0x367c('0x6')];_0x18d56c[_0x367c('0x7')]['has'](_0x367c('0x2'))&&_0x18d56c[_0x367c('0x7')][_0x367c('0x4')](_0x367c('0x3'))[_0x367c('0x0')](_0x367c('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24b3=['PageBreakEditing','TrackChangesEditing','_descriptionFactory','editor','plugins','locale','get','pageBreak','afterInit','registerElementLabel','enableCommand'];(function(_0x2c6cbd,_0x24b373){const _0x44a271=function(_0x2f4d29){while(--_0x2f4d29){_0x2c6cbd['push'](_0x2c6cbd['shift']());}};_0x44a271(++_0x24b373);}(_0x24b3,0x11e));const _0x44a2=function(_0x2c6cbd,_0x24b373){_0x2c6cbd=_0x2c6cbd-0x0;let _0x44a271=_0x24b3[_0x2c6cbd];return _0x44a271;};import{Plugin as _0xbeaa4e}from'ckeditor5/src/core';import{getTranslation as _0x7f984a}from'../utils/common-translations';export default class at extends _0xbeaa4e{[_0x44a2('0x8')](){const _0x503054=this[_0x44a2('0x3')];if(!_0x503054[_0x44a2('0x4')]['has'](_0x44a2('0x0')))return;_0x503054['plugins'][_0x44a2('0x6')](_0x44a2('0x1'))[_0x44a2('0xa')]('pageBreak');const _0x2f534c=_0x503054[_0x44a2('0x4')][_0x44a2('0x6')]('TrackChangesEditing'),_0x5b59c0=_0x503054[_0x44a2('0x5')];_0x2f534c[_0x44a2('0x2')][_0x44a2('0x9')](_0x44a2('0x7'),_0x16997d=>_0x7f984a(_0x5b59c0,'ELEMENT_PAGE_BREAK',_0x16997d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b90=['enableCommand','model','writer','document','showSuggestionHighlights','createUIElement','checkChild','has','blockName','nodeAfter','get','markerName','_descriptionFactory','mapper','data','editing','insert','type','markerRange','selection','name','schema','TrackChangesEditing','ck-suggestion-marker-split','editor','isTouching','filter','registerElementLabel','format','insertion','downcastDispatcher','isBlock','getItemLabel','toViewPosition','Paragraph','paragraph','isLimit','options','commandName','getSelectedBlocks','markBlockFormat','$text','bindElementToMarker','span','end','activeMarkers','addMarker:suggestion:insertion','registerDescriptionCallback','plugins','ELEMENT_PARAGRAPH','consumable','afterInit','highest','isObject','locale'];(function(_0x212c5b,_0x2b90fb){const _0x2dbf9c=function(_0x12a4d9){while(--_0x12a4d9){_0x212c5b['push'](_0x212c5b['shift']());}};_0x2dbf9c(++_0x2b90fb);}(_0x2b90,0xef));const _0x2dbf=function(_0x212c5b,_0x2b90fb){_0x212c5b=_0x212c5b-0x0;let _0x2dbf9c=_0x2b90[_0x212c5b];return _0x2dbf9c;};import{Plugin as _0x60d2af}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2f0463}from'./utils';import{getTranslation as _0x345186}from'../utils/common-translations';export default class ct extends _0x60d2af{[_0x2dbf('0x20')](){const _0x309985=this[_0x2dbf('0x5')];if(!_0x309985[_0x2dbf('0x1d')][_0x2dbf('0x2b')](_0x2dbf('0xf')))return;const _0x1405e1=_0x309985[_0x2dbf('0x23')],_0x51b6fe=_0x309985[_0x2dbf('0x1d')][_0x2dbf('0x2e')](_0x2dbf('0x3'));_0x51b6fe['_descriptionFactory'][_0x2dbf('0x8')](_0x2dbf('0x10'),_0x139a8c=>_0x345186(_0x1405e1,_0x2dbf('0x1e'),_0x139a8c)),_0x51b6fe[_0x2dbf('0x24')](_0x2dbf('0x10'),(_0xd68f28,_0x16f505={})=>{const _0x54d4da=_0x309985[_0x2dbf('0x25')][_0x2dbf('0x27')],_0x122e87=_0x16f505[_0x2dbf('0x0')]||_0x54d4da[_0x2dbf('0x0')],_0x380985=Array['from'](_0x122e87[_0x2dbf('0x14')]())[_0x2dbf('0x7')](_0x2cf076=>function(_0x4abcd9,_0x205655){return _0x205655[_0x2dbf('0x2a')](_0x4abcd9['parent'],'paragraph')&&!_0x205655[_0x2dbf('0x22')](_0x4abcd9)&&'paragraph'!=_0x4abcd9[_0x2dbf('0x1')];}(_0x2cf076,this['editor'][_0x2dbf('0x25')][_0x2dbf('0x2')]));_0x309985[_0x2dbf('0x25')]['change'](()=>{for(const _0x4619e5 of _0x380985)_0x51b6fe[_0x2dbf('0x15')](_0x4619e5,{'commandName':_0x2dbf('0x10'),'commandParams':[],'formatGroupId':_0x2dbf('0x2c')},_0x2f0463(_0x4619e5));});}),_0x51b6fe[_0x2dbf('0x30')][_0x2dbf('0x1c')](_0x2ce00b=>{const {data:_0x287724}=_0x2ce00b;if(_0x287724&&_0x2dbf('0x10')==_0x287724[_0x2dbf('0x13')])return{'type':_0x2dbf('0x9'),'content':_0x345186(_0x1405e1,'*Change\x20to:*\x20%0',_0x345186(_0x1405e1,_0x2dbf('0x1e')))};}),_0x51b6fe[_0x2dbf('0x24')]('insertParagraph'),_0x309985[_0x2dbf('0x33')]['downcastDispatcher']['on'](_0x2dbf('0x1b'),ar(_0x309985),{'priority':_0x2dbf('0x21')}),_0x309985[_0x2dbf('0x32')][_0x2dbf('0xb')]['on'](_0x2dbf('0x1b'),(_0x193fe7,_0x583a14,_0x3755e5)=>{_0x3755e5[_0x2dbf('0x12')][_0x2dbf('0x28')]&&ar(_0x309985,{'showActiveMarker':!0x1})(_0x193fe7,_0x583a14,_0x3755e5);},{'priority':_0x2dbf('0x21')});const _0x57dbf7=_0x51b6fe['_descriptionFactory'];_0x57dbf7[_0x2dbf('0x1c')](_0x106f1a=>{if(_0x2dbf('0xa')!==_0x106f1a[_0x2dbf('0x35')])return;const {start:_0x475441,end:_0x429db2}=_0x106f1a['getFirstRange']();if(!_0x475441[_0x2dbf('0x6')](_0x429db2)||!_0x475441['nodeAfter'])return;const _0x391115=_0x309985['model']['schema'],_0x152f92=_0x475441[_0x2dbf('0x2d')];return _0x391115[_0x2dbf('0xc')](_0x152f92)&&!_0x391115[_0x2dbf('0x11')](_0x152f92)&&_0x391115['checkChild'](_0x152f92,_0x2dbf('0x16'))?{'type':'insertion','content':_0x345186(_0x1405e1,'*Insert:*\x20%0',_0x57dbf7[_0x2dbf('0xd')](_0x152f92,0x1))}:void 0x0;});}}function ar(_0x15992d,{showActiveMarker:_0x3d6b78=!0x0}={}){return(_0x2a561e,_0x56a6ea,_0x22680d)=>{const _0x1e83f4=_0x15992d[_0x2dbf('0x1d')][_0x2dbf('0x2e')](_0x2dbf('0x3')),_0x20673a=_0x56a6ea[_0x2dbf('0x36')]['start'],_0x1f3337=_0x56a6ea[_0x2dbf('0x36')][_0x2dbf('0x19')],_0x246494=_0x15992d['model'][_0x2dbf('0x2')];if(!_0x20673a['isTouching'](_0x1f3337)||!_0x20673a[_0x2dbf('0x2d')])return;const _0x2074fc=_0x20673a['nodeAfter'];if(_0x246494[_0x2dbf('0xc')](_0x2074fc)&&!_0x246494[_0x2dbf('0x11')](_0x2074fc)&&_0x246494[_0x2dbf('0x2a')](_0x2074fc,_0x2dbf('0x16'))){if(!_0x22680d[_0x2dbf('0x1f')]['consume'](_0x56a6ea[_0x2dbf('0x36')],_0x2a561e[_0x2dbf('0x1')]))return;const _0x608654=_0x22680d[_0x2dbf('0x26')][_0x2dbf('0x29')](_0x2dbf('0x18'),{'class':_0x2dbf('0x4')}),_0x2ee5fa=_0x22680d[_0x2dbf('0x31')][_0x2dbf('0xe')](_0x1f3337);_0x3d6b78&&_0x1e83f4[_0x2dbf('0x1a')]['includes'](_0x56a6ea['markerName'])&&_0x22680d[_0x2dbf('0x26')]['addClass']('ck-suggestion-marker--active',_0x608654),_0x22680d[_0x2dbf('0x26')][_0x2dbf('0x34')](_0x2ee5fa,_0x608654),_0x22680d[_0x2dbf('0x31')][_0x2dbf('0x17')](_0x608654,_0x56a6ea[_0x2dbf('0x2f')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e98=['plugins','markInlineFormat','commandName','RemoveFormatEditing','get','getAttributeProperties','getAttributes','enableCommand','editor','has','TrackChangesEditing','isFormatting','isCollapsed','registerDescriptionCallback','change','from','schema','createRangeOn','removeFormat','document','afterInit','selection','_descriptionFactory','getItems','format','model'];(function(_0x27c304,_0x5e98c6){const _0x7a9968=function(_0x2d49ff){while(--_0x2d49ff){_0x27c304['push'](_0x27c304['shift']());}};_0x7a9968(++_0x5e98c6);}(_0x5e98,0x10b));const _0x7a99=function(_0x27c304,_0x5e98c6){_0x27c304=_0x27c304-0x0;let _0x7a9968=_0x5e98[_0x27c304];return _0x7a9968;};import{Plugin as _0x36aa23}from'ckeditor5/src/core';import{getTranslation as _0x4438fd}from'../utils/common-translations';export default class ht extends _0x36aa23{[_0x7a99('0xd')](){const _0x4ab476=this[_0x7a99('0x1')];if(!_0x4ab476['plugins'][_0x7a99('0x2')](_0x7a99('0x16')))return;const _0x2cb595=_0x4ab476[_0x7a99('0x13')][_0x7a99('0x17')](_0x7a99('0x3'));_0x2cb595[_0x7a99('0x0')](_0x7a99('0xb'),_0x3a0d65=>{const _0x13ce8e=_0x4ab476[_0x7a99('0x12')][_0x7a99('0xc')][_0x7a99('0xe')];_0x13ce8e[_0x7a99('0x5')]?_0x3a0d65():_0x4ab476[_0x7a99('0x12')][_0x7a99('0x7')](()=>{const _0x4b62db=Array[_0x7a99('0x8')](_0x13ce8e['getRanges']());for(const _0xf29c78 of _0x4b62db)for(const _0x37ca50 of _0xf29c78[_0x7a99('0x10')]())eo(_0x37ca50,_0x4ab476[_0x7a99('0x12')][_0x7a99('0x9')])&&_0x2cb595[_0x7a99('0x14')](_0x4ab476[_0x7a99('0x12')][_0x7a99('0xa')](_0x37ca50),{'commandName':'removeFormat','commandParams':[]});});}),_0x2cb595[_0x7a99('0xf')][_0x7a99('0x6')](_0x33ee32=>{const {data:_0x494639}=_0x33ee32;if(_0x494639&&_0x7a99('0xb')==_0x494639[_0x7a99('0x15')])return{'type':_0x7a99('0x11'),'content':_0x4438fd(_0x4ab476['locale'],'*Remove\x20all\x20formatting*')};});}}function eo(_0x30f096,_0x440a7c){for(const [_0x3f14c4]of _0x30f096[_0x7a99('0x19')]()){const _0x812cec=_0x440a7c[_0x7a99('0x18')](_0x3f14c4);if(_0x812cec&&_0x812cec[_0x7a99('0x4')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5787=['trackChanges','goToNextRestrictedEditingException','enableCommand','get','has','TrackChangesEditing','discardAllSuggestions','goToPreviousRestrictedEditingException','discardSuggestion','plugins'];(function(_0x2bbc66,_0x57871f){const _0x1f55e5=function(_0x3c38b9){while(--_0x3c38b9){_0x2bbc66['push'](_0x2bbc66['shift']());}};_0x1f55e5(++_0x57871f);}(_0x5787,0x11b));const _0x1f55=function(_0x2bbc66,_0x57871f){_0x2bbc66=_0x2bbc66-0x0;let _0x1f55e5=_0x5787[_0x2bbc66];return _0x1f55e5;};import{Plugin as _0x1639b2}from'ckeditor5/src/core';export default class ut extends _0x1639b2{['afterInit'](){const _0x159967=this['editor'];if(!_0x159967[_0x1f55('0x6')][_0x1f55('0x1')]('RestrictedEditingModeEditing'))return;const _0x42eb62=_0x159967[_0x1f55('0x6')][_0x1f55('0x0')](_0x1f55('0x2'));_0x42eb62['enableCommand'](_0x1f55('0x4')),_0x42eb62[_0x1f55('0x9')](_0x1f55('0x8'));const _0x20257d=_0x159967[_0x1f55('0x6')]['get']('RestrictedEditingModeEditing');_0x20257d[_0x1f55('0x9')](_0x1f55('0x7')),_0x20257d['enableCommand']('acceptSuggestion'),_0x20257d['enableCommand'](_0x1f55('0x5')),_0x20257d['enableCommand']('acceptAllSuggestions'),_0x20257d[_0x1f55('0x9')](_0x1f55('0x3')),_0x20257d['enableCommand']('acceptSelectedSuggestions'),_0x20257d[_0x1f55('0x9')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5426=['span','addMarker:suggestion:deletion','element','editor','includes','addMarker:suggestion','test','locale','high','getItems','createUIElement','softBreak','TrackChangesEditing','insert','model','options','_descriptionFactory','markerName','consumable','merge','markerRange','ELEMENT_LINE_BREAK','showSuggestionHighlights','createPositionBefore','shiftEnter','get','ck-suggestion-marker--active','ck-suggestion-marker-','downcastDispatcher','plugins','deletion','split','requires','writer','mapper','enableCommand','registerElementLabel'];(function(_0x45b29a,_0x542626){const _0x57ba78=function(_0x314e00){while(--_0x314e00){_0x45b29a['push'](_0x45b29a['shift']());}};_0x57ba78(++_0x542626);}(_0x5426,0x189));const _0x57ba=function(_0x45b29a,_0x542626){_0x45b29a=_0x45b29a-0x0;let _0x57ba78=_0x5426[_0x45b29a];return _0x57ba78;};import{Plugin as _0x3251b6}from'ckeditor5/src/core';import{ShiftEnter as _0x22f7d5}from'ckeditor5/src/enter';import{getTranslation as _0x12fc92}from'../utils/common-translations';export default class ft extends _0x3251b6{static get[_0x57ba('0x9')](){return[_0x22f7d5];}['init'](){const _0x21141b=this[_0x57ba('0x11')],_0x15a1dc=_0x21141b[_0x57ba('0x6')]['get']('TrackChangesEditing');_0x15a1dc[_0x57ba('0xc')](_0x57ba('0x1')),_0x21141b['editing'][_0x57ba('0x5')]['on']('addMarker:suggestion:insertion',re(_0x21141b),{'priority':_0x57ba('0x16')}),_0x21141b['editing']['downcastDispatcher']['on'](_0x57ba('0xf'),re(_0x21141b),{'priority':'high'}),_0x21141b['data']['downcastDispatcher']['on'](_0x57ba('0x13'),(_0x1e99e5,_0x3aa308,_0x1db402)=>{_0x1db402[_0x57ba('0x1d')][_0x57ba('0x24')]&&re(_0x21141b,{'showActiveMarker':!0x1})(_0x1e99e5,_0x3aa308,_0x1db402);}),_0x15a1dc[_0x57ba('0x1e')][_0x57ba('0xd')](_0x57ba('0x19'),_0x567118=>_0x12fc92(_0x21141b[_0x57ba('0x15')],_0x57ba('0x23'),_0x567118));}}function re(_0x209339,{showActiveMarker:_0x3b50ac=!0x0}={}){return(_0x2cec6a,_0x9f4ac8,_0x99b253)=>{const _0x3f58dd=_0x209339[_0x57ba('0x6')][_0x57ba('0x2')](_0x57ba('0x1a'));if(!_0x99b253[_0x57ba('0x20')][_0x57ba('0x14')](_0x9f4ac8[_0x57ba('0x22')],_0x2cec6a['name']))return;const _0x23cb96=_0x209339[_0x57ba('0x1c')];for(const _0xfd1464 of _0x9f4ac8[_0x57ba('0x22')][_0x57ba('0x17')]()){if(!_0xfd1464['is'](_0x57ba('0x10'),_0x57ba('0x19')))continue;const _0x2eb1fb=_0x57ba('0x7')==_0x9f4ac8['markerName'][_0x57ba('0x8')](':')[0x1]?_0x57ba('0x21'):_0x57ba('0x8'),_0x39fe98=_0x99b253[_0x57ba('0xa')][_0x57ba('0x18')](_0x57ba('0xe'),{'class':_0x57ba('0x4')+_0x2eb1fb}),_0x21f8f8=_0x99b253[_0x57ba('0xb')]['toViewPosition'](_0x23cb96[_0x57ba('0x0')](_0xfd1464));_0x3b50ac&&_0x3f58dd['activeMarkers'][_0x57ba('0x12')](_0x9f4ac8[_0x57ba('0x1f')])&&_0x99b253['writer']['addClass'](_0x57ba('0x3'),_0x39fe98),_0x99b253[_0x57ba('0xa')][_0x57ba('0x1b')](_0x21f8f8,_0x39fe98),_0x99b253[_0x57ba('0xb')]['bindElementToMarker'](_0x39fe98,_0x9f4ac8[_0x57ba('0x1f')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb7a4=['enableCommand','afterInit','editor','FORMAT_RESTRICTED_DISABLED','getRanges','TrackChangesEditing','locale','selection','StandardEditingModeEditing','format','markInlineFormat','registerDescriptionCallback','commandName','isCollapsed','commandParams','forceValue','plugins','commands','has','get','_descriptionFactory'];(function(_0x17b506,_0xb7a44b){const _0x476521=function(_0x4fef91){while(--_0x4fef91){_0x17b506['push'](_0x17b506['shift']());}};_0x476521(++_0xb7a44b);}(_0xb7a4,0xc7));const _0x4765=function(_0x17b506,_0xb7a44b){_0x17b506=_0x17b506-0x0;let _0x476521=_0xb7a4[_0x17b506];return _0x476521;};import{Plugin as _0x2d09f3}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x538ef6}from'./utils';import{getTranslation as _0x39d7a4}from'../utils/common-translations';export default class lt extends _0x2d09f3{[_0x4765('0xc')](){const _0x2da560=this[_0x4765('0xd')],_0x8e1146=_0x2da560['model'],_0x358ecd=_0x2da560[_0x4765('0x11')];if(!_0x2da560[_0x4765('0x6')][_0x4765('0x8')](_0x4765('0x13')))return;const _0x1d7a0f=_0x2da560[_0x4765('0x6')][_0x4765('0x9')](_0x4765('0x10')),_0x31efb7='restrictedEditingException',_0x838330=_0x2da560[_0x4765('0x7')][_0x4765('0x9')](_0x31efb7);_0x1d7a0f[_0x4765('0xb')](_0x31efb7,(_0x586493,_0x5305ed={})=>{const _0x28a91c=_0x8e1146['document'][_0x4765('0x12')];if(_0x28a91c[_0x4765('0x3')])return void _0x586493(_0x5305ed);const _0x50c3d9=void 0x0!==_0x5305ed[_0x4765('0x5')]?_0x5305ed['forceValue']:!_0x838330['value'];_0x8e1146['change'](()=>{const _0x12addb=Array['from'](_0x28a91c[_0x4765('0xf')]());for(const _0x1a278d of _0x12addb){const _0x1621ec=_0x50c3d9?[_0x1a278d]:_0x538ef6(_0x31efb7,_0x1a278d,_0x8e1146);for(const _0x59b7f1 of _0x1621ec)_0x1d7a0f[_0x4765('0x0')](_0x59b7f1,{'commandName':_0x31efb7,'commandParams':[{'forceValue':_0x50c3d9}]});}});}),_0x1d7a0f[_0x4765('0xa')][_0x4765('0x1')](_0x2ecf50=>{const {data:_0x3806a0}=_0x2ecf50;if(_0x3806a0&&_0x3806a0[_0x4765('0x2')]==_0x31efb7)return _0x3806a0[_0x4765('0x4')][0x0]['forceValue']?{'type':_0x4765('0x14'),'content':_0x39d7a4(_0x358ecd,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x4765('0x14'),'content':_0x39d7a4(_0x358ecd,_0x4765('0xe'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b07=['name','plugins','classes','every','commandParams','element','_getStyleDefinition','normalizeConfig','push','document','_getRangesWithClasses','change','enableCommand','from','isBlock','get','has','modelElements','_descriptionFactory','model','getRanges','enabledStyles','*Format:*\x20%0','StyleUtils','Style','style.definitions','style','format','find','isCollapsed','commandName','selection','styleName','createRangeOn','getItems','markInlineFormat','includes','toLowerCase','getAttribute','locale','style:','commands','block','editor','getAncestors','getDefinitionsForView'];(function(_0x354a45,_0x5b07a5){const _0xc3936a=function(_0x1f2e9f){while(--_0x1f2e9f){_0x354a45['push'](_0x354a45['shift']());}};_0xc3936a(++_0x5b07a5);}(_0x5b07,0x144));const _0xc393=function(_0x354a45,_0x5b07a5){_0x354a45=_0x354a45-0x0;let _0xc3936a=_0x5b07[_0x354a45];return _0xc3936a;};import{Plugin as _0x1962a8}from'ckeditor5/src/core';import{getTranslation as _0x197022}from'../utils/common-translations';export default class gt extends _0x1962a8{['afterInit'](){const _0x599fef=this[_0xc393('0x29')];if(!_0x599fef[_0xc393('0x2d')][_0xc393('0xe')](_0xc393('0x16')))return;const _0x2ec483=_0x599fef[_0xc393('0x27')]['get'](_0xc393('0x18')),_0x18a1b4=_0x599fef[_0xc393('0x2d')]['get']('TrackChangesEditing'),_0x3e874b=_0x599fef[_0xc393('0x25')],_0x11ebf5=_0x599fef[_0xc393('0x2d')][_0xc393('0xd')]('DataSchema'),_0x5793bc=_0x599fef['plugins'][_0xc393('0xd')](_0xc393('0x15'))[_0xc393('0x5')](_0x11ebf5,_0x599fef['config'][_0xc393('0xd')](_0xc393('0x17')));_0x18a1b4[_0xc393('0xa')](_0xc393('0x18'),(_0x2f11db,{styleName:_0x90be39})=>{const _0x2a6554=_0x599fef[_0xc393('0x11')][_0xc393('0x7')][_0xc393('0x1d')],_0x213ac5=this['_getStyleDefinition'](_0x90be39,_0x5793bc);if(!_0x213ac5)return;if(!_0x2ec483[_0xc393('0x13')][_0xc393('0x22')](_0x90be39))return;if(_0x2a6554[_0xc393('0x1b')]&&!_0x213ac5[_0xc393('0xc')])return void _0x2f11db({'styleName':_0x90be39});const _0x3b80ea=!_0x2ec483['value'][_0xc393('0x22')](_0x213ac5[_0xc393('0x2c')]);if(_0x213ac5[_0xc393('0xc')]){const _0x25f950=function(_0x187246,_0x1c1f5a){const _0x9fe045=new Set();for(const _0x53239d of _0x187246){const _0x9c37d5=_0x53239d[_0xc393('0x2a')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2f2920 of _0x9c37d5)if(_0x1c1f5a[_0xc393('0x22')](_0x2f2920[_0xc393('0x2c')])){_0x9fe045['add'](_0x2f2920);break;}}return _0x9fe045;}(_0x2a6554['getSelectedBlocks'](),_0x213ac5[_0xc393('0xf')]);_0x599fef[_0xc393('0x11')]['change'](()=>{for(const _0x5a48c7 of _0x25f950)_0x18a1b4['markBlockFormat'](_0x5a48c7,{'commandName':_0xc393('0x18'),'commandParams':[{'styleName':_0x90be39,'forceValue':_0x3b80ea}],'formatGroupId':_0xc393('0x26')+_0x90be39});});}else{let _0x260fb5=Array[_0xc393('0xb')](_0x2a6554[_0xc393('0x12')]());if(!_0x3b80ea){const _0x1ab971=Array[_0xc393('0xb')](_0x11ebf5[_0xc393('0x2b')](_0x213ac5[_0xc393('0x3')],!0x1))[0x0][_0xc393('0x11')],_0x14669a=[];for(const _0x3a6d6d of _0x260fb5){const _0xc22bf8=this[_0xc393('0x8')](_0x599fef[_0xc393('0x11')],_0x3a6d6d,_0x213ac5[_0xc393('0x0')],_0x1ab971);_0x14669a[_0xc393('0x6')](..._0xc22bf8);}_0x260fb5=_0x14669a;}_0x599fef['model'][_0xc393('0x9')](()=>{for(const _0x618f0b of _0x260fb5)_0x18a1b4[_0xc393('0x21')](_0x618f0b,{'commandName':'style','commandParams':[{'styleName':_0x90be39,'forceValue':_0x3b80ea}]});});}}),_0x18a1b4[_0xc393('0x10')]['registerDescriptionCallback'](_0x16e739=>{const {data:_0x2124fa}=_0x16e739;if(_0x2124fa&&'style'===_0x2124fa[_0xc393('0x1c')])return _0x2124fa[_0xc393('0x2')][0x0]['forceValue']?{'type':_0xc393('0x19'),'content':_0x197022(_0x3e874b,_0xc393('0x14'),_0x2124fa['commandParams'][0x0][_0xc393('0x1e')][_0xc393('0x23')]())}:{'type':_0xc393('0x19'),'content':_0x197022(_0x3e874b,'*Remove\x20format:*\x20%0',_0x2124fa[_0xc393('0x2')][0x0][_0xc393('0x1e')][_0xc393('0x23')]())};});}[_0xc393('0x4')](_0x590e75,_0x310838){let _0x3c60da=_0x310838[_0xc393('0x28')][_0xc393('0x1a')](_0x195aed=>_0x195aed[_0xc393('0x2c')]===_0x590e75);return _0x3c60da||(_0x3c60da=_0x310838['inline'][_0xc393('0x1a')](_0x3bbca5=>_0x3bbca5[_0xc393('0x2c')]===_0x590e75)),_0x3c60da;}[_0xc393('0x8')](_0x2b2d25,_0x4f7631,_0x1534f,_0x41e0eb){const _0x5d4742=[];for(const _0x385951 of _0x4f7631[_0xc393('0x20')]()){const _0x3f5a21=_0x385951[_0xc393('0x24')](_0x41e0eb);_0x3f5a21&&(_0x1534f[_0xc393('0x1')](_0x50dafc=>_0x3f5a21[_0xc393('0x0')][_0xc393('0x22')](_0x50dafc))&&_0x5d4742['push'](_0x2b2d25[_0xc393('0x1f')](_0x385951)));}return _0x5d4742;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2674=['MIN_SAFE_INTEGER','getSuggestion','above','includes','ELEMENT_TABLE_ROW_WITH_TEXT','maxColumn','add','commands','refresh','end','ELEMENT_TABLE_COLUMN','insert','type','nodeBefore','MAX_SAFE_INTEGER','removeTableRow','substr','isTouching','batch','from','enableCommand','getItems','start','table','rowspan','_getSuggestionCoords','$textProxy','suggestion','push','deletion','min','_tableSuggestions','fromRange','isArray','data','addRange','removeTableColumn','maxRow','createRangeOn','findAncestor','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableRowAbove','insertTableColumnRight','getCellLocation','change','isInContent','markMultiRangeInsertion','_suggestionFactory','ELEMENT_TABLE_ROW','_acceptFormatSuggestionCallbackFactory','colspan','position','span','ELEMENT_TABLE','getRowIndexes','detach','model','registerCustomCallback','writer','insertTable','plugins','rootName','some','options','tableRow','_descriptionFactory','toLowerCase','highest','max','discard','getSelectionAffectedTableCells','removeClass','get','first','length','low','tablePaste','getRanges','registerDescriptionCallback','getAttribute','selectTableColumn','registerElementLabel','join','left','nodeAfter','_splitMarkerName','accept','createTableWalker','insertTableColumnLeft','showSuggestionHighlights','insertion','addMarker:suggestion','locale','execute','every','enqueueChange','TrackChangesEditing','insertTableRowBelow','differ','hasAttribute','filter','selectTableRow','*Insert:*\x20%0','document','setSelection','editor','root','minColumn','markMultiRangeDeletion','last','*Remove:*\x20%0','change:data','isIntersectingWithRange','getChangedMarkers','getContainedElement','oldRange','getColumnIndexes','order','_setupColumnsRowsFixing','downcastDispatcher','ELEMENT_TABLE_WITH_TEXT','has','tableColumn','selection','classes','$graveyard','values','_getCoordsForCells','getFirstRange','TableUtils','element','tableCell','_tablePostFixingSubtypes','startsWith','subType','cell','map','name','item'];(function(_0x113c97,_0x2674bf){const _0x512371=function(_0x2d638b){while(--_0x2d638b){_0x113c97['push'](_0x113c97['shift']());}};_0x512371(++_0x2674bf);}(_0x2674,0xac));const _0x5123=function(_0x113c97,_0x2674bf){_0x113c97=_0x113c97-0x0;let _0x512371=_0x2674[_0x113c97];return _0x512371;};import{Plugin as _0x2295f3}from'ckeditor5/src/core';import{LiveRange as _0x22f666}from'ckeditor5/src/engine';import{setHighlightHandling as _0x343e7d}from'ckeditor5/src/widget';import{getTranslation as _0x220379}from'../utils/common-translations';export default class mt extends _0x2295f3{constructor(_0x2129e5){super(_0x2129e5),this[_0x5123('0x63')]=['tableRow',_0x5123('0x59')],this[_0x5123('0x89')]=new Set();}['afterInit'](){const _0x3ed0c7=this['editor'],_0x403d03=_0x3ed0c7['model'][_0x5123('0x46')][_0x5123('0x5a')];if(!_0x3ed0c7['plugins'][_0x5123('0x58')]('TableEditing'))return;const _0x4622ab=_0x3ed0c7[_0x5123('0x3b')],_0x520790=_0x3ed0c7[_0x5123('0x1b')][_0x5123('0x27')](_0x5123('0x3f')),_0x55d204=_0x3ed0c7[_0x5123('0x1b')][_0x5123('0x27')]('TableUtils');_0x520790[_0x5123('0x20')][_0x5123('0x30')](_0x5123('0x81'),_0x5298f4=>_0x220379(_0x4622ab,_0x5123('0x14'),_0x5298f4)),this['_setupColumnsRowsFixing'](),_0x520790[_0x5123('0x7e')](_0x5123('0x1a')),_0x520790[_0x5123('0x7e')](_0x5123('0x44')),_0x520790['enableCommand'](_0x5123('0x2f'));for(const _0x1ed319 of[_0x5123('0x8'),_0x5123('0x40')]){const _0x3187a3=_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x1ed319);_0x520790[_0x5123('0x7e')](_0x1ed319,_0x461f04=>{_0x3ed0c7['model'][_0x5123('0xb')](_0x1051dd=>{_0x461f04();const _0x519e4c=_0x5123('0x6c')===_0x3187a3[_0x5123('0x54')],_0x28feba=_0x55d204[_0x5123('0x25')](_0x403d03),_0x4d268=_0x55d204[_0x5123('0x15')](_0x28feba),_0x2feccb=_0x519e4c?_0x4d268[_0x5123('0x28')]-0x1:_0x4d268[_0x5123('0x4c')]+0x1,_0x5455d9=_0x28feba[0x0][_0x5123('0x6')](_0x5123('0x81')),_0x3c287a=_0x55d204[_0x5123('0x36')](_0x5455d9,{'startRow':_0x2feccb,'endRow':_0x2feccb}),_0x7708d8=Array['from'](_0x3c287a)[_0x5123('0x67')](_0xcdd5f5=>_0x1051dd['createRangeOn'](_0xcdd5f5[_0x5123('0x66')]));_0x520790[_0x5123('0xd')](_0x7708d8,_0x5123('0x1f'));});});}for(const _0x474bde of[_0x5123('0x37'),_0x5123('0x9')]){const _0x50f3a4=_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x474bde);_0x520790[_0x5123('0x7e')](_0x474bde,_0x29d525=>{_0x3ed0c7['model'][_0x5123('0xb')](_0x3d7c76=>{_0x29d525();const _0x278978=_0x5123('0x32')===_0x50f3a4[_0x5123('0x54')],_0x26f113=_0x55d204['getSelectionAffectedTableCells'](_0x403d03),_0x168eed=_0x55d204[_0x5123('0x53')](_0x26f113),_0x21d124=_0x278978?_0x168eed[_0x5123('0x28')]-0x1:_0x168eed[_0x5123('0x4c')]+0x1,_0x2529eb=_0x26f113[0x0][_0x5123('0x6')]('table'),_0x734d7=_0x55d204[_0x5123('0x36')](_0x2529eb,{'startRow':0x0,'column':_0x21d124,'includeAllSlots':!0x1}),_0x24cf73=Array[_0x5123('0x7d')](_0x734d7)[_0x5123('0x67')](_0x696483=>_0x3d7c76[_0x5123('0x5')](_0x696483[_0x5123('0x66')]));_0x520790[_0x5123('0xd')](_0x24cf73,_0x5123('0x59'));});});}for(const _0x1d42e8 of[_0x5123('0x79'),'removeTableColumn']){const _0x5cbe04=_0x1d42e8[_0x5123('0x7a')](0xb),_0x43b8ef=_0x5cbe04[_0x5123('0x21')](),_0x233c33=_0x43b8ef[_0x5123('0x7a')](0x0,0x3)+_0x5123('0x13'),_0x5b3e76=_0x5123('0x81')+_0x5cbe04,_0x39e640=_0x5123('0x88')+_0x5cbe04,_0x3565f8='max'+_0x5cbe04;_0x520790[_0x5123('0x7e')](_0x1d42e8,()=>{_0x3ed0c7['model'][_0x5123('0xb')](_0x1244ef=>{const _0x4c2cf4=_0x55d204[_0x5123('0x25')](_0x403d03),_0x4ad5da=_0x4c2cf4[0x0]['findAncestor'](_0x5123('0x81'));let _0x362ade;if(_0x5123('0x79')==_0x1d42e8){const _0x4c0d3b=_0x55d204[_0x5123('0x15')](_0x4c2cf4);_0x362ade={'startRow':_0x4c0d3b['first'],'endRow':_0x4c0d3b[_0x5123('0x4c')],'includeAllSlots':!0x0};}else{const _0x4a3d7f=_0x55d204['getColumnIndexes'](_0x4c2cf4);_0x362ade={'startColumn':_0x4a3d7f[_0x5123('0x28')],'endColumn':_0x4a3d7f['last'],'includeAllSlots':!0x0};}const _0x25cd3d=_0x55d204[_0x5123('0x36')](_0x4ad5da,_0x362ade),_0x5a69e9=Array[_0x5123('0x7d')](_0x25cd3d)[_0x5123('0x67')](({cell:_0x94be68})=>_0x94be68),_0x332ed3=se(_0x5a69e9[_0x5123('0x43')](_0x419279=>_0x419279[_0x5123('0x42')](_0x233c33))),_0x3bca9e=se(_0x5a69e9[_0x5123('0x43')](_0x449347=>!_0x449347[_0x5123('0x42')](_0x233c33)))[_0x5123('0x67')](_0x3e826a=>_0x1244ef[_0x5123('0x5')](_0x3e826a)),_0x4a7056=_0x520790[_0x5123('0x4b')](_0x3bca9e,_0x5b3e76);if(_0x4a7056&&(_0x5123('0x1f')==_0x4a7056[_0x5123('0x65')]||_0x5123('0x59')==_0x4a7056[_0x5123('0x65')])){const _0x1b0ef1=this[_0x5123('0x83')](_0x4a7056);for(const _0xc5068d of _0x332ed3){const _0x54addf=_0x1244ef[_0x5123('0x5')](_0xc5068d),_0x2e4774=_0x55d204[_0x5123('0xa')](_0xc5068d),_0x2277b7=_0xc5068d[_0x5123('0x2e')](_0x233c33)-0x1,_0x243f90=_0x1b0ef1[_0x39e640],_0x3eeebf=_0x1b0ef1[_0x3565f8];_0x243f90<=_0x2e4774[_0x43b8ef]&&_0x2e4774[_0x43b8ef]+_0x2277b7<=_0x3eeebf&&_0x4a7056['addRange'](_0x54addf);}}});});}function _0x3ccce2(_0x106cda){const _0x17a8df=Array[_0x5123('0x7d')](_0x403d03[_0x5123('0x2c')]())[_0x5123('0x67')](_0xd652e4=>_0x22f666['fromRange'](_0xd652e4));_0x3ed0c7[_0x5123('0x17')][_0x5123('0xb')](_0x3f3346=>{const _0x300bb9=_0x3f3346[_0x5123('0x7c')];_0x106cda=_0x106cda[_0x5123('0x43')](_0x370fc4=>_0x5123('0x5c')!=_0x370fc4[_0x5123('0x49')][_0x5123('0x1c')]),_0x3f3346[_0x5123('0x47')](_0x106cda),_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x5123('0x79'))['refresh'](),_0x3ed0c7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ed0c7[_0x5123('0x17')][_0x5123('0x3e')](()=>{_0x3ed0c7[_0x5123('0x17')][_0x5123('0x3e')](_0x300bb9,_0xeb76a=>{const _0x1309ac=_0x17a8df[_0x5123('0x43')](_0x5945d1=>_0x5123('0x5c')!=_0x5945d1['root'][_0x5123('0x1c')]);_0x1309ac[_0x5123('0x29')]>0x0&&_0xeb76a[_0x5123('0x47')](_0x1309ac);for(const _0x5aa9bf of _0x17a8df)_0x5aa9bf[_0x5123('0x16')]();});});});}function _0x259e14(_0x489fc3){_0x3ed0c7[_0x5123('0x17')]['change'](_0x38eeb0=>{const _0x57f078=Array[_0x5123('0x7d')](_0x403d03['getRanges']())[_0x5123('0x67')](_0x4bca80=>_0x22f666[_0x5123('0x8a')](_0x4bca80)),_0x2c18ca=[];for(const _0x14fb62 of _0x489fc3)for(const _0x3a32fb of _0x14fb62[_0x5123('0x7f')]({'shallow':!0x0}))_0x2c18ca[_0x5123('0x86')](_0x3a32fb);for(const _0x5ba9a6 of _0x2c18ca)'$graveyard'!=_0x5ba9a6[_0x5123('0x49')][_0x5123('0x1c')]&&(_0x38eeb0[_0x5123('0x47')](_0x38eeb0['createPositionAt'](_0x5ba9a6,0x0)),_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x5123('0x3'))[_0x5123('0x72')](),_0x3ed0c7[_0x5123('0x3c')](_0x5123('0x3'),{'forceDefaultExecution':!0x0}));const _0x182d82=_0x57f078[_0x5123('0x43')](_0xf55967=>_0x5123('0x5c')!=_0xf55967[_0x5123('0x49')]['rootName']);_0x182d82[_0x5123('0x29')]>0x0&&_0x38eeb0['setSelection'](_0x182d82);for(const _0x16a329 of _0x57f078)_0x16a329[_0x5123('0x16')]();});}function _0x4aed86(_0x4bfce7,_0x479ab9){return _0x479ab9[_0x5123('0x3d')](_0x253b19=>_0x4bfce7['some'](_0x2bbd3f=>_0x2bbd3f['end']['isEqual'](_0x253b19[_0x5123('0x80')])||_0x253b19[_0x5123('0x73')]['isEqual'](_0x2bbd3f[_0x5123('0x80')])));}function _0x22dda1(_0x33956a,_0x475ba1){return _0x33956a[_0x5123('0x1d')](_0x291948=>_0x475ba1[_0x5123('0x1d')](_0x985e4f=>_0x291948[_0x5123('0x73')][_0x5123('0x7b')](_0x985e4f[_0x5123('0x80')])));}_0x3ed0c7['data'][_0x5123('0x56')]['on'](_0x5123('0x3a'),(_0x26f0fe,_0x449715,_0x1067bb)=>{if(!_0x1067bb[_0x5123('0x1e')][_0x5123('0x38')])return;const _0x2eceb7=_0x449715[_0x5123('0x69')];if(!_0x2eceb7)return;const _0x551a68=_0x1067bb['mapper']['toViewElement'](_0x2eceb7);function _0x51e3da(_0x3adb70){return Array[_0x5123('0x0')](_0x3adb70)?_0x3adb70:[_0x3adb70];}_0x551a68&&_0x5123('0x62')===_0x2eceb7[_0x5123('0x68')]&&_0x343e7d(_0x551a68,_0x1067bb[_0x5123('0x19')],(_0x5404d2,_0x32c11b,_0x1d49de)=>_0x1d49de['addClass'](_0x51e3da(_0x32c11b[_0x5123('0x5b')]),_0x5404d2),(_0x5b57e4,_0x3b3610,_0x307deb)=>_0x307deb[_0x5123('0x26')](_0x51e3da(_0x3b3610['classes']),_0x5b57e4));},{'priority':_0x5123('0x22')}),_0x520790[_0x5123('0x20')]['registerDescriptionCallback'](_0x4b32bd=>{if(_0x5123('0x39')!=_0x4b32bd[_0x5123('0x76')]&&_0x5123('0x87')!=_0x4b32bd[_0x5123('0x76')])return;const _0x50417f=_0x4b32bd[_0x5123('0x51')]();if(null!=_0x50417f&&_0x50417f['is'](_0x5123('0x61'),_0x5123('0x81'))){if(_0x5123('0x39')==_0x4b32bd[_0x5123('0x76')]){const _0x2fa802=_0x4b32bd[_0x5123('0x7f')]()[_0x5123('0x43')](_0x1deefe=>_0x1deefe['is'](_0x5123('0x84')))[_0x5123('0x67')](_0x18ce38=>_0x18ce38['data']);if(_0x2fa802[_0x5123('0x29')])return{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,_0x5123('0x57'),'\x22'+_0x2fa802[_0x5123('0x31')]('\x20')+'\x22'))};}if(_0x5123('0x87')==_0x4b32bd[_0x5123('0x76')]){const _0x524a6e=_0x4b32bd[_0x5123('0x7f')]()[_0x5123('0x43')](_0xf0cc11=>_0xf0cc11['is'](_0x5123('0x84')))[_0x5123('0x67')](_0x1468f0=>_0x1468f0[_0x5123('0x1')]);if(_0x524a6e[_0x5123('0x29')])return{'type':_0x5123('0x87'),'content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0x57'),'\x22'+_0x524a6e[_0x5123('0x31')]('\x20')+'\x22'))};}}}),_0x520790[_0x5123('0x20')][_0x5123('0x2d')](_0x37a339=>{if('tableRow'==_0x37a339[_0x5123('0x65')]){const _0x4508e0=_0x37a339['getItems']()[_0x5123('0x43')](_0x2ddefd=>_0x2ddefd['is'](_0x5123('0x84')))['map'](_0x1b090c=>_0x1b090c['data']),_0x3db6b0=this[_0x5123('0x83')](_0x37a339),_0x107479=_0x3db6b0[_0x5123('0x4')]-_0x3db6b0['minRow']+0x1;if(_0x5123('0x39')==_0x37a339[_0x5123('0x76')])return _0x4508e0[_0x5123('0x29')]?{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,_0x5123('0x6e'),[_0x107479,'\x22'+_0x4508e0[_0x5123('0x31')]('\x20')+'\x22']))}:{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,'*Insert:*\x20%0',_0x220379(_0x4622ab,'ELEMENT_TABLE_ROW',_0x107479))};if(_0x5123('0x87')==_0x37a339[_0x5123('0x76')])return _0x4508e0[_0x5123('0x29')]?{'type':'deletion','content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0x6e'),[_0x107479,'\x22'+_0x4508e0['join']('\x20')+'\x22']))}:{'type':_0x5123('0x87'),'content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0xf'),_0x107479))};}if(_0x5123('0x59')==_0x37a339[_0x5123('0x65')]){const _0x48c892=_0x37a339['getItems']()[_0x5123('0x43')](_0x4a9c96=>_0x4a9c96['is']('$textProxy'))[_0x5123('0x67')](_0x182306=>_0x182306[_0x5123('0x1')]),_0x18608a=this[_0x5123('0x83')](_0x37a339),_0x48c295=_0x18608a[_0x5123('0x6f')]-_0x18608a[_0x5123('0x4a')]+0x1;if(_0x5123('0x39')==_0x37a339[_0x5123('0x76')])return _0x48c892[_0x5123('0x29')]?{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48c295,'\x22'+_0x48c892[_0x5123('0x31')]('\x20')+'\x22']))}:{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,_0x5123('0x74'),_0x48c295))};if(_0x5123('0x87')==_0x37a339[_0x5123('0x76')])return _0x48c892['length']?{'type':_0x5123('0x87'),'content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0x7'),[_0x48c295,'\x22'+_0x48c892[_0x5123('0x31')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x220379(_0x4622ab,'*Remove:*\x20%0',_0x220379(_0x4622ab,_0x5123('0x74'),_0x48c295))};}}),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x39'),_0x5123('0x1f'),'discard',_0x3ccce2),_0x520790['_suggestionFactory']['registerCustomCallback'](_0x5123('0x87'),_0x5123('0x1f'),_0x5123('0x35'),_0x3ccce2),_0x520790[_0x5123('0xe')][_0x5123('0x18')]('insertion',_0x5123('0x59'),_0x5123('0x24'),_0x259e14),_0x520790[_0x5123('0xe')]['registerCustomCallback'](_0x5123('0x87'),'tableColumn','accept',_0x259e14),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x39'),_0x5123('0x59'),'join',_0x4aed86),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x87'),_0x5123('0x59'),_0x5123('0x31'),_0x4aed86),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x39'),_0x5123('0x1f'),_0x5123('0x31'),_0x22dda1),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x87'),'tableRow',_0x5123('0x31'),_0x22dda1);}[_0x5123('0x10')](){const _0x1c93df=this[_0x5123('0x48')],_0x169f0c=_0x1c93df[_0x5123('0x17')]['document']['selection'];return(_0x305c04,_0x317931)=>{_0x1c93df[_0x5123('0x17')][_0x5123('0xb')](_0x210626=>{const {commandName:_0x12718a,commandParams:_0x275b5c}=_0x317931;let _0x2a4a34=_0x305c04[0x0][_0x5123('0x73')][_0x5123('0x77')];_0x275b5c&&_0x275b5c[0x0]&&!0x1===_0x275b5c[0x0]['forceValue']&&(_0x2a4a34=_0x305c04[0x0][_0x5123('0x80')]['nodeAfter']);const _0x1a4e8c=_0x210626['createRangeIn'](_0x2a4a34);if(_0x5123('0x5c')==_0x1a4e8c[_0x5123('0x49')][_0x5123('0x1c')])return;const _0x41ca11=Array[_0x5123('0x7d')](_0x169f0c[_0x5123('0x2c')]())[_0x5123('0x67')](_0x1f9920=>_0x22f666['fromRange'](_0x1f9920));_0x210626['setSelection'](_0x1a4e8c),_0x1c93df['commands'][_0x5123('0x27')](_0x12718a)['refresh'](),_0x275b5c[_0x5123('0x86')]({'forceDefaultExecution':!0x0}),_0x1c93df['execute'](_0x12718a,..._0x275b5c);const _0x6bc35c=_0x41ca11[_0x5123('0x43')](_0x2409bc=>_0x5123('0x5c')!=_0x2409bc[_0x5123('0x49')]['rootName']);_0x6bc35c[_0x5123('0x29')]>0x0&&_0x210626[_0x5123('0x47')](_0x6bc35c);for(const _0x4ba3d9 of _0x41ca11)_0x4ba3d9[_0x5123('0x16')]();});};}[_0x5123('0x5e')](_0x11a0c2){const _0x247db7=this[_0x5123('0x48')]['plugins'][_0x5123('0x27')](_0x5123('0x60'));let _0x590148=Number[_0x5123('0x78')],_0x31ec5a=Number[_0x5123('0x6a')],_0x42576c=Number[_0x5123('0x78')],_0x177073=Number[_0x5123('0x6a')];for(const _0x35f0ee of _0x11a0c2){if('$graveyard'==_0x35f0ee[_0x5123('0x49')]['rootName'])continue;const {row:_0x31fdd9,column:_0x10cf89}=_0x247db7['getCellLocation'](_0x35f0ee),_0x2d7da8=_0x35f0ee[_0x5123('0x42')](_0x5123('0x82'))?_0x35f0ee[_0x5123('0x2e')](_0x5123('0x82'))-0x1:0x0,_0x3657f9=_0x35f0ee[_0x5123('0x42')](_0x5123('0x11'))?_0x35f0ee['getAttribute'](_0x5123('0x11'))-0x1:0x0;_0x590148=_0x31fdd9<_0x590148?_0x31fdd9:_0x590148,_0x31ec5a=_0x31fdd9+_0x2d7da8>_0x31ec5a?_0x31fdd9+_0x2d7da8:_0x31ec5a,_0x42576c=_0x10cf89<_0x42576c?_0x10cf89:_0x42576c,_0x177073=_0x10cf89+_0x3657f9>_0x177073?_0x10cf89+_0x3657f9:_0x177073;}return{'minRow':_0x590148,'maxRow':_0x31ec5a,'minColumn':_0x42576c,'maxColumn':_0x177073};}[_0x5123('0x55')](){const _0x2f8daf=this[_0x5123('0x48')],_0x4ebe24=_0x2f8daf[_0x5123('0x1b')][_0x5123('0x27')](_0x5123('0x3f')),_0x4e2cc3=_0x2f8daf[_0x5123('0x1b')][_0x5123('0x27')](_0x5123('0x60'));_0x2f8daf['model'][_0x5123('0x46')]['on'](_0x5123('0x4e'),()=>{const _0x573a67=Array[_0x5123('0x7d')](_0x2f8daf[_0x5123('0x17')][_0x5123('0x46')][_0x5123('0x41')][_0x5123('0x50')]());for(const {name:_0x128207,data:_0x4aa697}of _0x573a67){const {group:_0x53d53b,id:_0x538819,subType:_0x423faa}=_0x4ebe24[_0x5123('0x34')](_0x128207);if(_0x5123('0x85')!=_0x53d53b)continue;if(null!=_0x4aa697[_0x5123('0x52')])continue;const _0x10aca9=_0x4ebe24[_0x5123('0x6b')](_0x538819);this['_tablePostFixingSubtypes'][_0x5123('0x6d')](_0x423faa)&&this[_0x5123('0x89')][_0x5123('0x70')](_0x10aca9);}},{'priority':_0x5123('0x2a')});const _0xbb804a=(_0x130760,_0x16d8de)=>{let _0x370c51=!0x1;const _0x33891a=_0x16d8de[_0x5123('0x5')](_0x130760),_0x173244=_0x130760['findAncestor'](_0x5123('0x81')),_0x165d7d=_0x4e2cc3[_0x5123('0xa')](_0x130760);for(const _0xdad025 of this['_tableSuggestions']){const _0xaaf5c7=_0xdad025[_0x5123('0x65')],_0xfd6b84=_0xaaf5c7[_0x5123('0x64')](_0x5123('0x2b')),_0x141e91=_0xaaf5c7['substr'](_0xfd6b84?0xa:0x5),_0x1ce01f=_0x141e91[_0x5123('0x21')](),_0x543046=_0x1ce01f[_0x5123('0x7a')](0x0,0x3)+'span',_0x55dff9=_0x5123('0x88')+_0x141e91,_0x23c7fe=_0x5123('0x23')+_0x141e91;if(!_0xdad025[_0x5123('0xc')])continue;if(_0x173244!=_0xdad025[_0x5123('0x5f')]()[_0x5123('0x80')][_0x5123('0x6')](_0x5123('0x81')))continue;if(_0xdad025[_0x5123('0x4f')](_0x33891a))continue;const _0x21025d=_0x130760[_0x5123('0x42')](_0x543046)?_0x130760[_0x5123('0x2e')](_0x543046)-0x1:0x0,_0x35eb32=this[_0x5123('0x83')](_0xdad025),_0x5867b1=_0x35eb32[_0x55dff9],_0x151a13=_0x35eb32[_0x23c7fe];_0x5867b1<=_0x165d7d[_0x1ce01f]&&_0x165d7d[_0x1ce01f]+_0x21025d<=_0x151a13&&(_0xdad025[_0x5123('0x2')](_0x33891a),_0x370c51=!0x0);}return _0x370c51;};_0x2f8daf[_0x5123('0x17')]['document']['registerPostFixer'](_0xeca80a=>{let _0x5e872b=!0x1;for(const _0x5e8793 of _0x2f8daf[_0x5123('0x17')]['document'][_0x5123('0x41')]['getChanges']())if(_0x5123('0x75')==_0x5e8793[_0x5123('0x76')]){if(_0x5123('0x1f')==_0x5e8793[_0x5123('0x68')])for(const _0xb7d802 of _0x5e8793[_0x5123('0x12')][_0x5123('0x33')]['getChildren']())_0x5e872b=_0x5e872b||_0xbb804a(_0xb7d802,_0xeca80a);else _0x5123('0x62')==_0x5e8793['name']&&(_0x5e872b=_0x5e872b||_0xbb804a(_0x5e8793[_0x5123('0x12')][_0x5123('0x33')],_0xeca80a));}return _0x5e872b;});}[_0x5123('0x83')](_0x3d1cee){return this[_0x5123('0x5e')](_0x3d1cee[_0x5123('0x2c')]()['map'](_0x4292f2=>_0x4292f2[_0x5123('0x80')][_0x5123('0x33')]));}}function se(_0x38cc27){return Array[_0x5123('0x7d')](new Set(_0x38cc27)[_0x5123('0x5d')]());}
|
|
23
|
+
const _0x1710=['values','join','getRanges','MIN_SAFE_INTEGER','registerDescriptionCallback','accept','has','start','cell','setSelection','createRangeIn','registerElementLabel','$graveyard','isArray','plugins','name','type','some','item','length','change','tableCell','hasAttribute','*Insert:*\x20%0','addRange','maxColumn','ELEMENT_TABLE','_tableSuggestions','minColumn','createRangeOn','getChildren','insert','selectTableRow','above','ELEMENT_TABLE_ROW_WITH_TEXT','TableUtils','left','toLowerCase','differ','insertTableRowBelow','TableEditing','max','minRow','_suggestionFactory','includes','last','ELEMENT_TABLE_WITH_TEXT','downcastDispatcher','colspan','data','writer','getItems','refresh','selection','getFirstRange','getChanges','getColumnIndexes','execute','first','ELEMENT_TABLE_COLUMN','createTableWalker','detach','substr','table','model','enqueueChange','discard','maxRow','deletion','insertTableColumnLeft','_getCoordsForCells','addClass','isEqual','removeTableRow','registerCustomCallback','isInContent','selectTableColumn','enableCommand','add','change:data','_descriptionFactory','subType','nodeAfter','$textProxy','removeTableColumn','editor','filter','getChangedMarkers','addMarker:suggestion','rootName','_splitMarkerName','position','getCellLocation','document','classes','from','_setupColumnsRowsFixing','insertion','commands','options','getSelectionAffectedTableCells','isIntersectingWithRange','tablePaste','toViewElement','batch','TrackChangesEditing','nodeBefore','MAX_SAFE_INTEGER','_tablePostFixingSubtypes','afterInit','startsWith','locale','tableColumn','showSuggestionHighlights','min','element','span','push','getAttribute','insertTable','markMultiRangeInsertion','tableRow','ELEMENT_TABLE_ROW','findAncestor','map','rowspan','get','getSuggestion','isTouching','suggestion','_getSuggestionCoords','ELEMENT_TABLE_COLUMN_WITH_TEXT','getRowIndexes','highest','order','end','fromRange','markMultiRangeDeletion','*Remove:*\x20%0','root'];(function(_0x28eb70,_0x1710ea){const _0x5802f2=function(_0x2789cd){while(--_0x2789cd){_0x28eb70['push'](_0x28eb70['shift']());}};_0x5802f2(++_0x1710ea);}(_0x1710,0x110));const _0x5802=function(_0x28eb70,_0x1710ea){_0x28eb70=_0x28eb70-0x0;let _0x5802f2=_0x1710[_0x28eb70];return _0x5802f2;};import{Plugin as _0x5a1358}from'ckeditor5/src/core';import{LiveRange as _0x5b5b06}from'ckeditor5/src/engine';import{setHighlightHandling as _0x15bcdf}from'ckeditor5/src/widget';import{getTranslation as _0x166972}from'../utils/common-translations';export default class mt extends _0x5a1358{constructor(_0x50aa7f){super(_0x50aa7f),this[_0x5802('0x74')]=['tableRow',_0x5802('0x78')],this[_0x5802('0x23')]=new Set();}[_0x5802('0x75')](){const _0x3f989e=this['editor'],_0x54b8e2=_0x3f989e[_0x5802('0x48')][_0x5802('0x65')][_0x5802('0x3d')];if(!_0x3f989e['plugins'][_0x5802('0xe')](_0x5802('0x30')))return;const _0xb798bd=_0x3f989e[_0x5802('0x77')],_0x28bc5b=_0x3f989e[_0x5802('0x16')][_0x5802('0x86')](_0x5802('0x71')),_0x14a1ec=_0x3f989e[_0x5802('0x16')]['get']('TableUtils');_0x28bc5b[_0x5802('0x58')][_0x5802('0x13')](_0x5802('0x47'),_0x123a70=>_0x166972(_0xb798bd,_0x5802('0x22'),_0x123a70)),this[_0x5802('0x68')](),_0x28bc5b[_0x5802('0x55')](_0x5802('0x7f')),_0x28bc5b[_0x5802('0x55')](_0x5802('0x28')),_0x28bc5b['enableCommand'](_0x5802('0x54'));for(const _0xc1bcd0 of['insertTableRowAbove',_0x5802('0x2f')]){const _0x12ff45=_0x3f989e['commands']['get'](_0xc1bcd0);_0x28bc5b[_0x5802('0x55')](_0xc1bcd0,_0x178430=>{_0x3f989e[_0x5802('0x48')][_0x5802('0x1c')](_0x286869=>{_0x178430();const _0x19d188=_0x5802('0x29')===_0x12ff45[_0x5802('0x2')],_0x2404f9=_0x14a1ec[_0x5802('0x6c')](_0x54b8e2),_0x1fe3ec=_0x14a1ec['getRowIndexes'](_0x2404f9),_0x1d773c=_0x19d188?_0x1fe3ec[_0x5802('0x42')]-0x1:_0x1fe3ec[_0x5802('0x35')]+0x1,_0x29f1dd=_0x2404f9[0x0][_0x5802('0x83')](_0x5802('0x47')),_0x537007=_0x14a1ec[_0x5802('0x44')](_0x29f1dd,{'startRow':_0x1d773c,'endRow':_0x1d773c}),_0x2fad67=Array[_0x5802('0x67')](_0x537007)[_0x5802('0x84')](_0x1f5130=>_0x286869[_0x5802('0x25')](_0x1f5130['cell']));_0x28bc5b['markMultiRangeInsertion'](_0x2fad67,_0x5802('0x81'));});});}for(const _0x280e9c of[_0x5802('0x4d'),'insertTableColumnRight']){const _0x41a286=_0x3f989e[_0x5802('0x6a')][_0x5802('0x86')](_0x280e9c);_0x28bc5b[_0x5802('0x55')](_0x280e9c,_0x5024a3=>{_0x3f989e[_0x5802('0x48')][_0x5802('0x1c')](_0x113f2a=>{_0x5024a3();const _0x2e5b0c=_0x5802('0x2c')===_0x41a286[_0x5802('0x2')],_0x22d3ed=_0x14a1ec[_0x5802('0x6c')](_0x54b8e2),_0x29be14=_0x14a1ec[_0x5802('0x40')](_0x22d3ed),_0x4fe7df=_0x2e5b0c?_0x29be14[_0x5802('0x42')]-0x1:_0x29be14[_0x5802('0x35')]+0x1,_0x4d979a=_0x22d3ed[0x0][_0x5802('0x83')](_0x5802('0x47')),_0xb11809=_0x14a1ec[_0x5802('0x44')](_0x4d979a,{'startRow':0x0,'column':_0x4fe7df,'includeAllSlots':!0x1}),_0x564a48=Array[_0x5802('0x67')](_0xb11809)['map'](_0x2e7dde=>_0x113f2a[_0x5802('0x25')](_0x2e7dde[_0x5802('0x10')]));_0x28bc5b[_0x5802('0x80')](_0x564a48,_0x5802('0x78'));});});}for(const _0x288dfc of[_0x5802('0x51'),'removeTableColumn']){const _0x2a2716=_0x288dfc['substr'](0xb),_0x5bff4d=_0x2a2716[_0x5802('0x2d')](),_0x25c794=_0x5bff4d[_0x5802('0x46')](0x0,0x3)+_0x5802('0x7c'),_0x3e7fc3=_0x5802('0x47')+_0x2a2716,_0x34b009=_0x5802('0x7a')+_0x2a2716,_0x2061c3='max'+_0x2a2716;_0x28bc5b[_0x5802('0x55')](_0x288dfc,()=>{_0x3f989e['model'][_0x5802('0x1c')](_0x2f8b7e=>{const _0xc26d3e=_0x14a1ec[_0x5802('0x6c')](_0x54b8e2),_0x1e0153=_0xc26d3e[0x0][_0x5802('0x83')](_0x5802('0x47'));let _0x472171;if(_0x5802('0x51')==_0x288dfc){const _0x4618a5=_0x14a1ec[_0x5802('0x0')](_0xc26d3e);_0x472171={'startRow':_0x4618a5['first'],'endRow':_0x4618a5[_0x5802('0x35')],'includeAllSlots':!0x0};}else{const _0x2dd21c=_0x14a1ec[_0x5802('0x40')](_0xc26d3e);_0x472171={'startColumn':_0x2dd21c[_0x5802('0x42')],'endColumn':_0x2dd21c[_0x5802('0x35')],'includeAllSlots':!0x0};}const _0x16d888=_0x14a1ec[_0x5802('0x44')](_0x1e0153,_0x472171),_0x3a5bef=Array['from'](_0x16d888)[_0x5802('0x84')](({cell:_0x51c74f})=>_0x51c74f),_0xac78af=se(_0x3a5bef[_0x5802('0x5e')](_0x4a9c97=>_0x4a9c97[_0x5802('0x1e')](_0x25c794))),_0x5ec3f5=se(_0x3a5bef[_0x5802('0x5e')](_0x42183=>!_0x42183[_0x5802('0x1e')](_0x25c794)))[_0x5802('0x84')](_0x301695=>_0x2f8b7e[_0x5802('0x25')](_0x301695)),_0x2e0dc7=_0x28bc5b[_0x5802('0x5')](_0x5ec3f5,_0x3e7fc3);if(_0x2e0dc7&&(_0x5802('0x81')==_0x2e0dc7['subType']||_0x5802('0x78')==_0x2e0dc7[_0x5802('0x59')])){const _0x2cc76b=this[_0x5802('0x8a')](_0x2e0dc7);for(const _0x13bed7 of _0xac78af){const _0x340fac=_0x2f8b7e[_0x5802('0x25')](_0x13bed7),_0x50dfa2=_0x14a1ec[_0x5802('0x64')](_0x13bed7),_0x23d980=_0x13bed7[_0x5802('0x7e')](_0x25c794)-0x1,_0x54e4d9=_0x2cc76b[_0x34b009],_0x202f14=_0x2cc76b[_0x2061c3];_0x54e4d9<=_0x50dfa2[_0x5bff4d]&&_0x50dfa2[_0x5bff4d]+_0x23d980<=_0x202f14&&_0x2e0dc7[_0x5802('0x20')](_0x340fac);}}});});}function _0x44a2cf(_0x5aaafb){const _0x2adba6=Array[_0x5802('0x67')](_0x54b8e2[_0x5802('0xa')]())['map'](_0x5ed1a3=>_0x5b5b06[_0x5802('0x4')](_0x5ed1a3));_0x3f989e[_0x5802('0x48')][_0x5802('0x1c')](_0x53d983=>{const _0x2b805c=_0x53d983[_0x5802('0x70')];_0x5aaafb=_0x5aaafb['filter'](_0x27356d=>_0x5802('0x14')!=_0x27356d[_0x5802('0x7')][_0x5802('0x61')]),_0x53d983[_0x5802('0x11')](_0x5aaafb),_0x3f989e['commands'][_0x5802('0x86')]('removeTableRow')[_0x5802('0x3c')](),_0x3f989e[_0x5802('0x41')](_0x5802('0x51'),{'forceDefaultExecution':!0x0}),_0x3f989e[_0x5802('0x48')][_0x5802('0x49')](()=>{_0x3f989e[_0x5802('0x48')]['enqueueChange'](_0x2b805c,_0x30c06f=>{const _0x10ff53=_0x2adba6[_0x5802('0x5e')](_0xcd5500=>'$graveyard'!=_0xcd5500[_0x5802('0x7')][_0x5802('0x61')]);_0x10ff53[_0x5802('0x1b')]>0x0&&_0x30c06f['setSelection'](_0x10ff53);for(const _0x1d1cf9 of _0x2adba6)_0x1d1cf9[_0x5802('0x45')]();});});});}function _0xe238b7(_0x1e73ff){_0x3f989e['model']['change'](_0x3e5d85=>{const _0x3017c2=Array[_0x5802('0x67')](_0x54b8e2['getRanges']())[_0x5802('0x84')](_0x3e6d5a=>_0x5b5b06['fromRange'](_0x3e6d5a)),_0x105019=[];for(const _0x42db77 of _0x1e73ff)for(const _0x2c588b of _0x42db77[_0x5802('0x3b')]({'shallow':!0x0}))_0x105019['push'](_0x2c588b);for(const _0x35df69 of _0x105019)_0x5802('0x14')!=_0x35df69['root']['rootName']&&(_0x3e5d85[_0x5802('0x11')](_0x3e5d85['createPositionAt'](_0x35df69,0x0)),_0x3f989e[_0x5802('0x6a')][_0x5802('0x86')](_0x5802('0x5c'))[_0x5802('0x3c')](),_0x3f989e['execute'](_0x5802('0x5c'),{'forceDefaultExecution':!0x0}));const _0x186407=_0x3017c2[_0x5802('0x5e')](_0xc71fb2=>_0x5802('0x14')!=_0xc71fb2[_0x5802('0x7')]['rootName']);_0x186407['length']>0x0&&_0x3e5d85[_0x5802('0x11')](_0x186407);for(const _0x2a8f62 of _0x3017c2)_0x2a8f62['detach']();});}function _0x2de75d(_0x54d6ad,_0x5fdf78){return _0x5fdf78['every'](_0x4223f1=>_0x54d6ad['some'](_0x552004=>_0x552004['end'][_0x5802('0x50')](_0x4223f1['start'])||_0x4223f1[_0x5802('0x3')][_0x5802('0x50')](_0x552004[_0x5802('0xf')])));}function _0x10ae6a(_0x2a5740,_0x389c39){return _0x2a5740[_0x5802('0x19')](_0x12fe6c=>_0x389c39[_0x5802('0x19')](_0x3d6137=>_0x12fe6c[_0x5802('0x3')][_0x5802('0x88')](_0x3d6137[_0x5802('0xf')])));}_0x3f989e[_0x5802('0x39')][_0x5802('0x37')]['on'](_0x5802('0x60'),(_0x2185ac,_0xe5c2ee,_0x305b18)=>{if(!_0x305b18[_0x5802('0x6b')][_0x5802('0x79')])return;const _0x486495=_0xe5c2ee[_0x5802('0x1a')];if(!_0x486495)return;const _0x9d26ad=_0x305b18['mapper'][_0x5802('0x6f')](_0x486495);function _0x17ba3b(_0x470893){return Array[_0x5802('0x15')](_0x470893)?_0x470893:[_0x470893];}_0x9d26ad&&'tableCell'===_0x486495[_0x5802('0x17')]&&_0x15bcdf(_0x9d26ad,_0x305b18[_0x5802('0x3a')],(_0x57a80b,_0x346225,_0x5d0f9a)=>_0x5d0f9a[_0x5802('0x4f')](_0x17ba3b(_0x346225[_0x5802('0x66')]),_0x57a80b),(_0x13e9a5,_0x334330,_0xe74f5)=>_0xe74f5['removeClass'](_0x17ba3b(_0x334330['classes']),_0x13e9a5));},{'priority':_0x5802('0x1')}),_0x28bc5b['_descriptionFactory']['registerDescriptionCallback'](_0x1c1313=>{if(_0x5802('0x69')!=_0x1c1313[_0x5802('0x18')]&&_0x5802('0x4c')!=_0x1c1313['type'])return;const _0x917f25=_0x1c1313['getContainedElement']();if(null!=_0x917f25&&_0x917f25['is'](_0x5802('0x7b'),'table')){if(_0x5802('0x69')==_0x1c1313[_0x5802('0x18')]){const _0x3dba34=_0x1c1313[_0x5802('0x3b')]()[_0x5802('0x5e')](_0x288e7=>_0x288e7['is'](_0x5802('0x5b')))[_0x5802('0x84')](_0x135b9d=>_0x135b9d[_0x5802('0x39')]);if(_0x3dba34[_0x5802('0x1b')])return{'type':_0x5802('0x69'),'content':_0x166972(_0xb798bd,_0x5802('0x1f'),_0x166972(_0xb798bd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3dba34['join']('\x20')+'\x22'))};}if(_0x5802('0x4c')==_0x1c1313[_0x5802('0x18')]){const _0x24ac24=_0x1c1313[_0x5802('0x3b')]()[_0x5802('0x5e')](_0x291b6e=>_0x291b6e['is'](_0x5802('0x5b')))['map'](_0x383ac3=>_0x383ac3[_0x5802('0x39')]);if(_0x24ac24[_0x5802('0x1b')])return{'type':_0x5802('0x4c'),'content':_0x166972(_0xb798bd,_0x5802('0x6'),_0x166972(_0xb798bd,_0x5802('0x36'),'\x22'+_0x24ac24[_0x5802('0x9')]('\x20')+'\x22'))};}}}),_0x28bc5b[_0x5802('0x58')][_0x5802('0xc')](_0x488cec=>{if(_0x5802('0x81')==_0x488cec['subType']){const _0xb84028=_0x488cec['getItems']()['filter'](_0x5dfd9b=>_0x5dfd9b['is'](_0x5802('0x5b')))['map'](_0x9cd5f1=>_0x9cd5f1['data']),_0x5011d3=this[_0x5802('0x8a')](_0x488cec),_0x1e1a94=_0x5011d3[_0x5802('0x4b')]-_0x5011d3[_0x5802('0x32')]+0x1;if(_0x5802('0x69')==_0x488cec['type'])return _0xb84028['length']?{'type':_0x5802('0x69'),'content':_0x166972(_0xb798bd,_0x5802('0x1f'),_0x166972(_0xb798bd,_0x5802('0x2a'),[_0x1e1a94,'\x22'+_0xb84028[_0x5802('0x9')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x166972(_0xb798bd,_0x5802('0x1f'),_0x166972(_0xb798bd,_0x5802('0x82'),_0x1e1a94))};if(_0x5802('0x4c')==_0x488cec['type'])return _0xb84028[_0x5802('0x1b')]?{'type':_0x5802('0x4c'),'content':_0x166972(_0xb798bd,_0x5802('0x6'),_0x166972(_0xb798bd,_0x5802('0x2a'),[_0x1e1a94,'\x22'+_0xb84028[_0x5802('0x9')]('\x20')+'\x22']))}:{'type':_0x5802('0x4c'),'content':_0x166972(_0xb798bd,_0x5802('0x6'),_0x166972(_0xb798bd,'ELEMENT_TABLE_ROW',_0x1e1a94))};}if(_0x5802('0x78')==_0x488cec[_0x5802('0x59')]){const _0x459f0a=_0x488cec[_0x5802('0x3b')]()[_0x5802('0x5e')](_0x2f1000=>_0x2f1000['is']('$textProxy'))[_0x5802('0x84')](_0x2f44b6=>_0x2f44b6['data']),_0x3b9f99=this[_0x5802('0x8a')](_0x488cec),_0x458bff=_0x3b9f99[_0x5802('0x21')]-_0x3b9f99[_0x5802('0x24')]+0x1;if(_0x5802('0x69')==_0x488cec['type'])return _0x459f0a[_0x5802('0x1b')]?{'type':_0x5802('0x69'),'content':_0x166972(_0xb798bd,_0x5802('0x1f'),_0x166972(_0xb798bd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x458bff,'\x22'+_0x459f0a[_0x5802('0x9')]('\x20')+'\x22']))}:{'type':_0x5802('0x69'),'content':_0x166972(_0xb798bd,_0x5802('0x1f'),_0x166972(_0xb798bd,_0x5802('0x43'),_0x458bff))};if(_0x5802('0x4c')==_0x488cec[_0x5802('0x18')])return _0x459f0a['length']?{'type':_0x5802('0x4c'),'content':_0x166972(_0xb798bd,_0x5802('0x6'),_0x166972(_0xb798bd,_0x5802('0x8b'),[_0x458bff,'\x22'+_0x459f0a[_0x5802('0x9')]('\x20')+'\x22']))}:{'type':_0x5802('0x4c'),'content':_0x166972(_0xb798bd,_0x5802('0x6'),_0x166972(_0xb798bd,_0x5802('0x43'),_0x458bff))};}}),_0x28bc5b[_0x5802('0x33')]['registerCustomCallback'](_0x5802('0x69'),_0x5802('0x81'),_0x5802('0x4a'),_0x44a2cf),_0x28bc5b[_0x5802('0x33')]['registerCustomCallback'](_0x5802('0x4c'),_0x5802('0x81'),_0x5802('0xd'),_0x44a2cf),_0x28bc5b['_suggestionFactory']['registerCustomCallback']('insertion',_0x5802('0x78'),_0x5802('0x4a'),_0xe238b7),_0x28bc5b[_0x5802('0x33')]['registerCustomCallback']('deletion',_0x5802('0x78'),'accept',_0xe238b7),_0x28bc5b['_suggestionFactory'][_0x5802('0x52')]('insertion',_0x5802('0x78'),_0x5802('0x9'),_0x2de75d),_0x28bc5b['_suggestionFactory'][_0x5802('0x52')]('deletion',_0x5802('0x78'),_0x5802('0x9'),_0x2de75d),_0x28bc5b['_suggestionFactory'][_0x5802('0x52')](_0x5802('0x69'),_0x5802('0x81'),'join',_0x10ae6a),_0x28bc5b[_0x5802('0x33')][_0x5802('0x52')](_0x5802('0x4c'),_0x5802('0x81'),'join',_0x10ae6a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x38686e=this['editor'],_0x2ca0d5=_0x38686e[_0x5802('0x48')][_0x5802('0x65')][_0x5802('0x3d')];return(_0x274966,_0x98cd8e)=>{_0x38686e[_0x5802('0x48')][_0x5802('0x1c')](_0x5e2418=>{const {commandName:_0x3dabcc,commandParams:_0x604223}=_0x98cd8e;let _0xf1eaf9=_0x274966[0x0][_0x5802('0x3')][_0x5802('0x72')];_0x604223&&_0x604223[0x0]&&!0x1===_0x604223[0x0]['forceValue']&&(_0xf1eaf9=_0x274966[0x0][_0x5802('0xf')][_0x5802('0x5a')]);const _0x504cc3=_0x5e2418[_0x5802('0x12')](_0xf1eaf9);if(_0x5802('0x14')==_0x504cc3[_0x5802('0x7')]['rootName'])return;const _0xc564cd=Array[_0x5802('0x67')](_0x2ca0d5[_0x5802('0xa')]())['map'](_0x35ea35=>_0x5b5b06[_0x5802('0x4')](_0x35ea35));_0x5e2418[_0x5802('0x11')](_0x504cc3),_0x38686e[_0x5802('0x6a')][_0x5802('0x86')](_0x3dabcc)[_0x5802('0x3c')](),_0x604223[_0x5802('0x7d')]({'forceDefaultExecution':!0x0}),_0x38686e['execute'](_0x3dabcc,..._0x604223);const _0x482a72=_0xc564cd[_0x5802('0x5e')](_0x3987c3=>_0x5802('0x14')!=_0x3987c3[_0x5802('0x7')]['rootName']);_0x482a72[_0x5802('0x1b')]>0x0&&_0x5e2418[_0x5802('0x11')](_0x482a72);for(const _0x32f07f of _0xc564cd)_0x32f07f[_0x5802('0x45')]();});};}[_0x5802('0x4e')](_0x37b0f2){const _0x10f487=this[_0x5802('0x5d')][_0x5802('0x16')]['get'](_0x5802('0x2b'));let _0x3cde57=Number[_0x5802('0x73')],_0x58704a=Number['MIN_SAFE_INTEGER'],_0x1c880d=Number[_0x5802('0x73')],_0x14ad33=Number[_0x5802('0xb')];for(const _0x166dce of _0x37b0f2){if('$graveyard'==_0x166dce[_0x5802('0x7')][_0x5802('0x61')])continue;const {row:_0x4fcb8e,column:_0x3c9659}=_0x10f487[_0x5802('0x64')](_0x166dce),_0x517e00=_0x166dce[_0x5802('0x1e')]('rowspan')?_0x166dce[_0x5802('0x7e')](_0x5802('0x85'))-0x1:0x0,_0xd366b1=_0x166dce['hasAttribute'](_0x5802('0x38'))?_0x166dce[_0x5802('0x7e')](_0x5802('0x38'))-0x1:0x0;_0x3cde57=_0x4fcb8e<_0x3cde57?_0x4fcb8e:_0x3cde57,_0x58704a=_0x4fcb8e+_0x517e00>_0x58704a?_0x4fcb8e+_0x517e00:_0x58704a,_0x1c880d=_0x3c9659<_0x1c880d?_0x3c9659:_0x1c880d,_0x14ad33=_0x3c9659+_0xd366b1>_0x14ad33?_0x3c9659+_0xd366b1:_0x14ad33;}return{'minRow':_0x3cde57,'maxRow':_0x58704a,'minColumn':_0x1c880d,'maxColumn':_0x14ad33};}[_0x5802('0x68')](){const _0x133d80=this[_0x5802('0x5d')],_0x51a8ce=_0x133d80['plugins'][_0x5802('0x86')](_0x5802('0x71')),_0x2ee3cc=_0x133d80[_0x5802('0x16')][_0x5802('0x86')]('TableUtils');_0x133d80[_0x5802('0x48')][_0x5802('0x65')]['on'](_0x5802('0x57'),()=>{const _0x50630a=Array['from'](_0x133d80['model']['document'][_0x5802('0x2e')][_0x5802('0x5f')]());for(const {name:_0x5a707b,data:_0x5b1498}of _0x50630a){const {group:_0x19296d,id:_0x3693ee,subType:_0x23c4c7}=_0x51a8ce[_0x5802('0x62')](_0x5a707b);if(_0x5802('0x89')!=_0x19296d)continue;if(null!=_0x5b1498['oldRange'])continue;const _0x56fafe=_0x51a8ce[_0x5802('0x87')](_0x3693ee);this['_tablePostFixingSubtypes'][_0x5802('0x34')](_0x23c4c7)&&this['_tableSuggestions'][_0x5802('0x56')](_0x56fafe);}},{'priority':'low'});const _0x570db2=(_0x61a977,_0x1e3cf4)=>{let _0x2150d9=!0x1;const _0x30d3b6=_0x1e3cf4[_0x5802('0x25')](_0x61a977),_0x4dfdcc=_0x61a977['findAncestor']('table'),_0x29a28f=_0x2ee3cc[_0x5802('0x64')](_0x61a977);for(const _0x32b595 of this[_0x5802('0x23')]){const _0x1abdab=_0x32b595[_0x5802('0x59')],_0x102627=_0x1abdab[_0x5802('0x76')](_0x5802('0x6e')),_0x574479=_0x1abdab[_0x5802('0x46')](_0x102627?0xa:0x5),_0x201bd1=_0x574479['toLowerCase'](),_0x8a0b54=_0x201bd1[_0x5802('0x46')](0x0,0x3)+_0x5802('0x7c'),_0x6b1c10=_0x5802('0x7a')+_0x574479,_0x310a76=_0x5802('0x31')+_0x574479;if(!_0x32b595[_0x5802('0x53')])continue;if(_0x4dfdcc!=_0x32b595[_0x5802('0x3e')]()[_0x5802('0xf')][_0x5802('0x83')](_0x5802('0x47')))continue;if(_0x32b595[_0x5802('0x6d')](_0x30d3b6))continue;const _0x6c21e2=_0x61a977['hasAttribute'](_0x8a0b54)?_0x61a977[_0x5802('0x7e')](_0x8a0b54)-0x1:0x0,_0x547cb6=this[_0x5802('0x8a')](_0x32b595),_0x5cbc94=_0x547cb6[_0x6b1c10],_0x17ddc2=_0x547cb6[_0x310a76];_0x5cbc94<=_0x29a28f[_0x201bd1]&&_0x29a28f[_0x201bd1]+_0x6c21e2<=_0x17ddc2&&(_0x32b595[_0x5802('0x20')](_0x30d3b6),_0x2150d9=!0x0);}return _0x2150d9;};_0x133d80[_0x5802('0x48')][_0x5802('0x65')]['registerPostFixer'](_0x5182d3=>{let _0x1bab08=!0x1;for(const _0x5235a9 of _0x133d80[_0x5802('0x48')][_0x5802('0x65')][_0x5802('0x2e')][_0x5802('0x3f')]())if(_0x5802('0x27')==_0x5235a9[_0x5802('0x18')]){if(_0x5802('0x81')==_0x5235a9['name'])for(const _0x5d88cc of _0x5235a9[_0x5802('0x63')][_0x5802('0x5a')][_0x5802('0x26')]())_0x1bab08=_0x1bab08||_0x570db2(_0x5d88cc,_0x5182d3);else _0x5802('0x1d')==_0x5235a9[_0x5802('0x17')]&&(_0x1bab08=_0x1bab08||_0x570db2(_0x5235a9[_0x5802('0x63')][_0x5802('0x5a')],_0x5182d3));}return _0x1bab08;});}['_getSuggestionCoords'](_0x56d589){return this[_0x5802('0x4e')](_0x56d589[_0x5802('0xa')]()[_0x5802('0x84')](_0x36e057=>_0x36e057['start'][_0x5802('0x5a')]));}}function se(_0x57fa49){return Array[_0x5802('0x67')](new Set(_0x57fa49)[_0x5802('0x8')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e95=['plugins','editor','TrackChangesEditing','has'];(function(_0x1c54c1,_0x2e95c3){const _0x7b2662=function(_0x3684a8){while(--_0x3684a8){_0x1c54c1['push'](_0x1c54c1['shift']());}};_0x7b2662(++_0x2e95c3);}(_0x2e95,0xdb));const _0x7b26=function(_0x1c54c1,_0x2e95c3){_0x1c54c1=_0x1c54c1-0x0;let _0x7b2662=_0x2e95[_0x1c54c1];return _0x7b2662;};import{Plugin as _0x59312d}from'ckeditor5/src/core';import _0x375a7d from'./table';export default class vt extends _0x59312d{static get['requires'](){return[_0x375a7d];}['afterInit'](){const _0x1fd724=this[_0x7b26('0x2')];if(!_0x1fd724[_0x7b26('0x1')][_0x7b26('0x0')]('TableCaptionEditing'))return;_0x1fd724[_0x7b26('0x1')]['get'](_0x7b26('0x3'))['enableCommand']('toggleTableCaption');}}
|