@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230725.1 → 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 _0xd210=['insertTableColumnLeft','change:data','enqueueChange','detach','removeTableColumn','substr','hasAttribute','ELEMENT_TABLE','selection','_descriptionFactory','_setupColumnsRowsFixing','nodeAfter','$graveyard','removeTableRow','*Insert:*\x20%0','isIntersectingWithRange','registerCustomCallback','_tableSuggestions','position','getChanges','getSelectionAffectedTableCells','rootName','insertTableColumnRight','has','type','createRangeOn','registerDescriptionCallback','showSuggestionHighlights','root','maxColumn','getRowIndexes','maxRow','subType','table','join','_acceptFormatSuggestionCallbackFactory','MIN_SAFE_INTEGER','document','name','_splitMarkerName','*Remove:*\x20%0','setSelection','createRangeIn','tableRow','add','execute','isInContent','last','model','markMultiRangeDeletion','suggestion','fromRange','colspan','deletion','TableUtils','insertTableRowAbove','addClass','start','getChildren','downcastDispatcher','batch','MAX_SAFE_INTEGER','isTouching','insert','filter','length','createPositionAt','plugins','findAncestor','differ','tablePaste','getCellLocation','get','end','addRange','markMultiRangeInsertion','cell','left','_getCoordsForCells','above','_tablePostFixingSubtypes','options','selectTableColumn','every','getColumnIndexes','toViewElement','push','min','enableCommand','order','classes','ELEMENT_TABLE_ROW_WITH_TEXT','registerElementLabel','tableCell','writer','max','refresh','ELEMENT_TABLE_WITH_TEXT','rowspan','nodeBefore','minColumn','tableColumn','from','getAttribute','first','$textProxy','afterInit','addMarker:suggestion','oldRange','getRanges','minRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','_getSuggestionCoords','removeClass','getItems','TrackChangesEditing','locale','data','editor','toLowerCase','ELEMENT_TABLE_ROW','insertTable','isEqual','ELEMENT_TABLE_COLUMN','includes','_suggestionFactory','getContainedElement','commands','insertion','span','insertTableRowBelow','discard','createTableWalker','change','values','map','TableEditing','getFirstRange','some'];(function(_0x248efb,_0xd2101c){const _0xf326cf=function(_0x3e7a50){while(--_0x3e7a50){_0x248efb['push'](_0x248efb['shift']());}};_0xf326cf(++_0xd2101c);}(_0xd210,0xfd));const _0xf326=function(_0x248efb,_0xd2101c){_0x248efb=_0x248efb-0x0;let _0xf326cf=_0xd210[_0x248efb];return _0xf326cf;};import{Plugin as _0x500636}from'ckeditor5/src/core';import{LiveRange as _0x62383e}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2b935e}from'ckeditor5/src/widget';import{getTranslation as _0x143fc6}from'../utils/common-translations';export default class mt extends _0x500636{constructor(_0x2e2aae){super(_0x2e2aae),this[_0xf326('0x69')]=[_0xf326('0x44'),_0xf326('0x7e')],this[_0xf326('0x2a')]=new Set();}[_0xf326('0x83')](){const _0x41537d=this[_0xf326('0x4')],_0x3c8887=_0x41537d[_0xf326('0x49')][_0xf326('0x3e')]['selection'];if(!_0x41537d[_0xf326('0x5c')][_0xf326('0x30')](_0xf326('0x16')))return;const _0x4cb8af=_0x41537d[_0xf326('0x2')],_0x4c23b2=_0x41537d[_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x1')),_0x39c7d9=_0x41537d['plugins'][_0xf326('0x61')](_0xf326('0x4f'));_0x4c23b2[_0xf326('0x22')][_0xf326('0x75')](_0xf326('0x3a'),_0x15f74a=>_0x143fc6(_0x4cb8af,_0xf326('0x20'),_0x15f74a)),this[_0xf326('0x23')](),_0x4c23b2[_0xf326('0x71')](_0xf326('0x7')),_0x4c23b2[_0xf326('0x71')]('selectTableRow'),_0x4c23b2[_0xf326('0x71')](_0xf326('0x6b'));for(const _0x8b8b42 of[_0xf326('0x50'),_0xf326('0x10')]){const _0xb2f299=_0x41537d[_0xf326('0xd')][_0xf326('0x61')](_0x8b8b42);_0x4c23b2[_0xf326('0x71')](_0x8b8b42,_0x404db7=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0xe44db=>{_0x404db7();const _0x28064f=_0xf326('0x68')===_0xb2f299[_0xf326('0x72')],_0x453786=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x1b8305=_0x39c7d9[_0xf326('0x37')](_0x453786),_0x47515d=_0x28064f?_0x1b8305[_0xf326('0x81')]-0x1:_0x1b8305[_0xf326('0x48')]+0x1,_0x5305e0=_0x453786[0x0][_0xf326('0x5d')](_0xf326('0x3a')),_0x22dc7f=_0x39c7d9[_0xf326('0x12')](_0x5305e0,{'startRow':_0x47515d,'endRow':_0x47515d}),_0x16edb7=Array[_0xf326('0x7f')](_0x22dc7f)[_0xf326('0x15')](_0x59e01f=>_0xe44db[_0xf326('0x32')](_0x59e01f[_0xf326('0x65')]));_0x4c23b2['markMultiRangeInsertion'](_0x16edb7,_0xf326('0x44'));});});}for(const _0xee7e14 of[_0xf326('0x19'),_0xf326('0x2f')]){const _0x592f56=_0x41537d['commands']['get'](_0xee7e14);_0x4c23b2[_0xf326('0x71')](_0xee7e14,_0x5e8837=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x24195f=>{_0x5e8837();const _0x405e53=_0xf326('0x66')===_0x592f56[_0xf326('0x72')],_0x490f7a=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x35dc36=_0x39c7d9[_0xf326('0x6d')](_0x490f7a),_0x170c73=_0x405e53?_0x35dc36[_0xf326('0x81')]-0x1:_0x35dc36['last']+0x1,_0x1e9e15=_0x490f7a[0x0][_0xf326('0x5d')](_0xf326('0x3a')),_0x1471cd=_0x39c7d9[_0xf326('0x12')](_0x1e9e15,{'startRow':0x0,'column':_0x170c73,'includeAllSlots':!0x1}),_0x53eb06=Array[_0xf326('0x7f')](_0x1471cd)[_0xf326('0x15')](_0xe465a3=>_0x24195f[_0xf326('0x32')](_0xe465a3[_0xf326('0x65')]));_0x4c23b2[_0xf326('0x64')](_0x53eb06,_0xf326('0x7e'));});});}for(const _0x25df25 of[_0xf326('0x26'),_0xf326('0x1d')]){const _0x3c56fb=_0x25df25['substr'](0xb),_0x3456bf=_0x3c56fb[_0xf326('0x5')](),_0x5c80d9=_0x3456bf['substr'](0x0,0x3)+_0xf326('0xf'),_0x4be89b='table'+_0x3c56fb,_0x29a828=_0xf326('0x70')+_0x3c56fb,_0x46198a=_0xf326('0x78')+_0x3c56fb;_0x4c23b2[_0xf326('0x71')](_0x25df25,()=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x29a3b0=>{const _0x5d2442=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x5ef197=_0x5d2442[0x0][_0xf326('0x5d')](_0xf326('0x3a'));let _0x59a2e8;if(_0xf326('0x26')==_0x25df25){const _0x255482=_0x39c7d9[_0xf326('0x37')](_0x5d2442);_0x59a2e8={'startRow':_0x255482[_0xf326('0x81')],'endRow':_0x255482['last'],'includeAllSlots':!0x0};}else{const _0x374e24=_0x39c7d9['getColumnIndexes'](_0x5d2442);_0x59a2e8={'startColumn':_0x374e24['first'],'endColumn':_0x374e24[_0xf326('0x48')],'includeAllSlots':!0x0};}const _0x55d12e=_0x39c7d9[_0xf326('0x12')](_0x5ef197,_0x59a2e8),_0x458f5f=Array['from'](_0x55d12e)[_0xf326('0x15')](({cell:_0x459a46})=>_0x459a46),_0x4e4d87=se(_0x458f5f['filter'](_0x1b4476=>_0x1b4476['hasAttribute'](_0x5c80d9))),_0x33b553=se(_0x458f5f[_0xf326('0x59')](_0x3ae4d7=>!_0x3ae4d7['hasAttribute'](_0x5c80d9)))[_0xf326('0x15')](_0x56c94f=>_0x29a3b0['createRangeOn'](_0x56c94f)),_0x34f95c=_0x4c23b2[_0xf326('0x4a')](_0x33b553,_0x4be89b);if(_0x34f95c&&(_0xf326('0x44')==_0x34f95c[_0xf326('0x39')]||'tableColumn'==_0x34f95c[_0xf326('0x39')])){const _0x29e6ab=this[_0xf326('0x89')](_0x34f95c);for(const _0xfe2c2a of _0x4e4d87){const _0x3115ba=_0x29a3b0[_0xf326('0x32')](_0xfe2c2a),_0x43ed5b=_0x39c7d9['getCellLocation'](_0xfe2c2a),_0x347c6d=_0xfe2c2a[_0xf326('0x80')](_0x5c80d9)-0x1,_0x44098a=_0x29e6ab[_0x29a828],_0x190cbb=_0x29e6ab[_0x46198a];_0x44098a<=_0x43ed5b[_0x3456bf]&&_0x43ed5b[_0x3456bf]+_0x347c6d<=_0x190cbb&&_0x34f95c[_0xf326('0x63')](_0x3115ba);}}});});}function _0xc1579e(_0x3b33a2){const _0x4e9d69=Array['from'](_0x3c8887[_0xf326('0x86')]())[_0xf326('0x15')](_0x190d9e=>_0x62383e[_0xf326('0x4c')](_0x190d9e));_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x565260=>{const _0x17135c=_0x565260[_0xf326('0x55')];_0x3b33a2=_0x3b33a2[_0xf326('0x59')](_0x3f1f9c=>_0xf326('0x25')!=_0x3f1f9c[_0xf326('0x35')]['rootName']),_0x565260[_0xf326('0x42')](_0x3b33a2),_0x41537d['commands']['get']('removeTableRow')[_0xf326('0x79')](),_0x41537d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41537d[_0xf326('0x49')][_0xf326('0x1b')](()=>{_0x41537d[_0xf326('0x49')]['enqueueChange'](_0x17135c,_0x568cfb=>{const _0x2107ec=_0x4e9d69[_0xf326('0x59')](_0x34efb6=>_0xf326('0x25')!=_0x34efb6[_0xf326('0x35')][_0xf326('0x2e')]);_0x2107ec['length']>0x0&&_0x568cfb[_0xf326('0x42')](_0x2107ec);for(const _0x32b328 of _0x4e9d69)_0x32b328[_0xf326('0x1c')]();});});});}function _0x129051(_0x148bd7){_0x41537d[_0xf326('0x49')]['change'](_0x53adae=>{const _0x1b298=Array[_0xf326('0x7f')](_0x3c8887[_0xf326('0x86')]())['map'](_0x3d8080=>_0x62383e['fromRange'](_0x3d8080)),_0x1d8438=[];for(const _0x1d3c00 of _0x148bd7)for(const _0x116025 of _0x1d3c00['getItems']({'shallow':!0x0}))_0x1d8438[_0xf326('0x6f')](_0x116025);for(const _0x33bf58 of _0x1d8438)_0xf326('0x25')!=_0x33bf58[_0xf326('0x35')][_0xf326('0x2e')]&&(_0x53adae[_0xf326('0x42')](_0x53adae[_0xf326('0x5b')](_0x33bf58,0x0)),_0x41537d[_0xf326('0xd')]['get'](_0xf326('0x1d'))[_0xf326('0x79')](),_0x41537d[_0xf326('0x46')](_0xf326('0x1d'),{'forceDefaultExecution':!0x0}));const _0x1cb8cc=_0x1b298[_0xf326('0x59')](_0x34344e=>_0xf326('0x25')!=_0x34344e[_0xf326('0x35')][_0xf326('0x2e')]);_0x1cb8cc[_0xf326('0x5a')]>0x0&&_0x53adae[_0xf326('0x42')](_0x1cb8cc);for(const _0x293f3c of _0x1b298)_0x293f3c['detach']();});}function _0x357f3e(_0x340b63,_0x4a47b4){return _0x4a47b4[_0xf326('0x6c')](_0x51a58e=>_0x340b63[_0xf326('0x18')](_0x28e503=>_0x28e503[_0xf326('0x62')]['isEqual'](_0x51a58e[_0xf326('0x52')])||_0x51a58e['end'][_0xf326('0x8')](_0x28e503[_0xf326('0x52')])));}function _0x54edcd(_0x34d229,_0x12f23a){return _0x34d229[_0xf326('0x18')](_0x162bbc=>_0x12f23a['some'](_0x546aa5=>_0x162bbc[_0xf326('0x62')][_0xf326('0x57')](_0x546aa5[_0xf326('0x52')])));}_0x41537d[_0xf326('0x3')][_0xf326('0x54')]['on'](_0xf326('0x84'),(_0x5f26f3,_0x14929e,_0x65d749)=>{if(!_0x65d749[_0xf326('0x6a')][_0xf326('0x34')])return;const _0x5b621f=_0x14929e['item'];if(!_0x5b621f)return;const _0x2874e6=_0x65d749['mapper'][_0xf326('0x6e')](_0x5b621f);function _0x39c1f7(_0x4e0e9f){return Array['isArray'](_0x4e0e9f)?_0x4e0e9f:[_0x4e0e9f];}_0x2874e6&&_0xf326('0x76')===_0x5b621f[_0xf326('0x3f')]&&_0x2b935e(_0x2874e6,_0x65d749[_0xf326('0x77')],(_0x598bc4,_0x51bee7,_0x443d1a)=>_0x443d1a[_0xf326('0x51')](_0x39c1f7(_0x51bee7[_0xf326('0x73')]),_0x598bc4),(_0x595e8d,_0x9660f1,_0xd02d91)=>_0xd02d91[_0xf326('0x8a')](_0x39c1f7(_0x9660f1[_0xf326('0x73')]),_0x595e8d));},{'priority':'highest'}),_0x4c23b2[_0xf326('0x22')]['registerDescriptionCallback'](_0x52f4f0=>{if(_0xf326('0xe')!=_0x52f4f0[_0xf326('0x31')]&&_0xf326('0x4e')!=_0x52f4f0[_0xf326('0x31')])return;const _0x11073d=_0x52f4f0[_0xf326('0xc')]();if(null!=_0x11073d&&_0x11073d['is']('element','table')){if(_0xf326('0xe')==_0x52f4f0[_0xf326('0x31')]){const _0x1f1f22=_0x52f4f0[_0xf326('0x0')]()['filter'](_0x4658b1=>_0x4658b1['is'](_0xf326('0x82')))[_0xf326('0x15')](_0x533f64=>_0x533f64[_0xf326('0x3')]);if(_0x1f1f22[_0xf326('0x5a')])return{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x7a'),'\x22'+_0x1f1f22[_0xf326('0x3b')]('\x20')+'\x22'))};}if(_0xf326('0x4e')==_0x52f4f0[_0xf326('0x31')]){const _0x32b437=_0x52f4f0[_0xf326('0x0')]()[_0xf326('0x59')](_0x50a962=>_0x50a962['is']('$textProxy'))[_0xf326('0x15')](_0x8d0846=>_0x8d0846['data']);if(_0x32b437['length'])return{'type':'deletion','content':_0x143fc6(_0x4cb8af,'*Remove:*\x20%0',_0x143fc6(_0x4cb8af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32b437[_0xf326('0x3b')]('\x20')+'\x22'))};}}}),_0x4c23b2['_descriptionFactory'][_0xf326('0x33')](_0xf96240=>{if('tableRow'==_0xf96240[_0xf326('0x39')]){const _0x5ee059=_0xf96240[_0xf326('0x0')]()['filter'](_0x48d510=>_0x48d510['is']('$textProxy'))[_0xf326('0x15')](_0x2f1dbf=>_0x2f1dbf[_0xf326('0x3')]),_0x418f57=this[_0xf326('0x89')](_0xf96240),_0x12788b=_0x418f57[_0xf326('0x38')]-_0x418f57[_0xf326('0x87')]+0x1;if(_0xf326('0xe')==_0xf96240[_0xf326('0x31')])return _0x5ee059[_0xf326('0x5a')]?{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x74'),[_0x12788b,'\x22'+_0x5ee059[_0xf326('0x3b')]('\x20')+'\x22']))}:{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x6'),_0x12788b))};if(_0xf326('0x4e')==_0xf96240[_0xf326('0x31')])return _0x5ee059[_0xf326('0x5a')]?{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x74'),[_0x12788b,'\x22'+_0x5ee059['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,'ELEMENT_TABLE_ROW',_0x12788b))};}if('tableColumn'==_0xf96240[_0xf326('0x39')]){const _0x598573=_0xf96240['getItems']()['filter'](_0x44de1a=>_0x44de1a['is'](_0xf326('0x82')))['map'](_0x5dbb3c=>_0x5dbb3c[_0xf326('0x3')]),_0x1890cc=this[_0xf326('0x89')](_0xf96240),_0x3ed001=_0x1890cc[_0xf326('0x36')]-_0x1890cc[_0xf326('0x7d')]+0x1;if('insertion'==_0xf96240[_0xf326('0x31')])return _0x598573['length']?{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x88'),[_0x3ed001,'\x22'+_0x598573['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x143fc6(_0x4cb8af,'*Insert:*\x20%0',_0x143fc6(_0x4cb8af,_0xf326('0x9'),_0x3ed001))};if(_0xf326('0x4e')==_0xf96240[_0xf326('0x31')])return _0x598573['length']?{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x88'),[_0x3ed001,'\x22'+_0x598573[_0xf326('0x3b')]('\x20')+'\x22']))}:{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x9'),_0x3ed001))};}}),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0xe'),_0xf326('0x44'),_0xf326('0x11'),_0xc1579e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')]('deletion',_0xf326('0x44'),'accept',_0xc1579e),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0xe'),_0xf326('0x7e'),'discard',_0x129051),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0x4e'),'tableColumn','accept',_0x129051),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0xe'),_0xf326('0x7e'),_0xf326('0x3b'),_0x357f3e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')]('deletion',_0xf326('0x7e'),_0xf326('0x3b'),_0x357f3e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0xe'),_0xf326('0x44'),_0xf326('0x3b'),_0x54edcd),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0x4e'),_0xf326('0x44'),'join',_0x54edcd);}[_0xf326('0x3c')](){const _0x3e5f27=this[_0xf326('0x4')],_0x4f9603=_0x3e5f27[_0xf326('0x49')][_0xf326('0x3e')][_0xf326('0x21')];return(_0x572c78,_0x3a8808)=>{_0x3e5f27[_0xf326('0x49')]['change'](_0x18f52d=>{const {commandName:_0x32ce16,commandParams:_0x23c043}=_0x3a8808;let _0x522ca0=_0x572c78[0x0][_0xf326('0x62')][_0xf326('0x7c')];_0x23c043&&_0x23c043[0x0]&&!0x1===_0x23c043[0x0]['forceValue']&&(_0x522ca0=_0x572c78[0x0][_0xf326('0x52')][_0xf326('0x24')]);const _0x17c04a=_0x18f52d[_0xf326('0x43')](_0x522ca0);if('$graveyard'==_0x17c04a[_0xf326('0x35')][_0xf326('0x2e')])return;const _0x2fe4ba=Array[_0xf326('0x7f')](_0x4f9603[_0xf326('0x86')]())[_0xf326('0x15')](_0x436f07=>_0x62383e['fromRange'](_0x436f07));_0x18f52d[_0xf326('0x42')](_0x17c04a),_0x3e5f27[_0xf326('0xd')][_0xf326('0x61')](_0x32ce16)[_0xf326('0x79')](),_0x23c043[_0xf326('0x6f')]({'forceDefaultExecution':!0x0}),_0x3e5f27[_0xf326('0x46')](_0x32ce16,..._0x23c043);const _0x354c7c=_0x2fe4ba[_0xf326('0x59')](_0x518f12=>_0xf326('0x25')!=_0x518f12[_0xf326('0x35')][_0xf326('0x2e')]);_0x354c7c[_0xf326('0x5a')]>0x0&&_0x18f52d[_0xf326('0x42')](_0x354c7c);for(const _0x58d6d1 of _0x2fe4ba)_0x58d6d1[_0xf326('0x1c')]();});};}['_getCoordsForCells'](_0x2a257b){const _0x4ae7ba=this[_0xf326('0x4')][_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x4f'));let _0x169a59=Number[_0xf326('0x56')],_0x28fa12=Number[_0xf326('0x3d')],_0x3b8504=Number[_0xf326('0x56')],_0x6b785=Number[_0xf326('0x3d')];for(const _0x562273 of _0x2a257b){if(_0xf326('0x25')==_0x562273['root'][_0xf326('0x2e')])continue;const {row:_0x57d770,column:_0xe561eb}=_0x4ae7ba[_0xf326('0x60')](_0x562273),_0x3c4515=_0x562273['hasAttribute'](_0xf326('0x7b'))?_0x562273[_0xf326('0x80')](_0xf326('0x7b'))-0x1:0x0,_0x5824e0=_0x562273[_0xf326('0x1f')](_0xf326('0x4d'))?_0x562273['getAttribute'](_0xf326('0x4d'))-0x1:0x0;_0x169a59=_0x57d770<_0x169a59?_0x57d770:_0x169a59,_0x28fa12=_0x57d770+_0x3c4515>_0x28fa12?_0x57d770+_0x3c4515:_0x28fa12,_0x3b8504=_0xe561eb<_0x3b8504?_0xe561eb:_0x3b8504,_0x6b785=_0xe561eb+_0x5824e0>_0x6b785?_0xe561eb+_0x5824e0:_0x6b785;}return{'minRow':_0x169a59,'maxRow':_0x28fa12,'minColumn':_0x3b8504,'maxColumn':_0x6b785};}[_0xf326('0x23')](){const _0x4d064e=this['editor'],_0x3c2577=_0x4d064e[_0xf326('0x5c')]['get']('TrackChangesEditing'),_0x52fa17=_0x4d064e[_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x4f'));_0x4d064e[_0xf326('0x49')]['document']['on'](_0xf326('0x1a'),()=>{const _0xd098c7=Array[_0xf326('0x7f')](_0x4d064e[_0xf326('0x49')][_0xf326('0x3e')][_0xf326('0x5e')]['getChangedMarkers']());for(const {name:_0x1adb84,data:_0x167e71}of _0xd098c7){const {group:_0x3462e5,id:_0x4f117c,subType:_0xddba1d}=_0x3c2577[_0xf326('0x40')](_0x1adb84);if(_0xf326('0x4b')!=_0x3462e5)continue;if(null!=_0x167e71[_0xf326('0x85')])continue;const _0x164703=_0x3c2577['getSuggestion'](_0x4f117c);this['_tablePostFixingSubtypes'][_0xf326('0xa')](_0xddba1d)&&this[_0xf326('0x2a')][_0xf326('0x45')](_0x164703);}},{'priority':'low'});const _0x125899=(_0x677497,_0x377d46)=>{let _0x4093ac=!0x1;const _0x230ee4=_0x377d46['createRangeOn'](_0x677497),_0xcc7320=_0x677497[_0xf326('0x5d')](_0xf326('0x3a')),_0x636972=_0x52fa17['getCellLocation'](_0x677497);for(const _0x2e37d8 of this[_0xf326('0x2a')]){const _0x1abb56=_0x2e37d8[_0xf326('0x39')],_0x48d337=_0x1abb56['startsWith'](_0xf326('0x5f')),_0xfd9c01=_0x1abb56[_0xf326('0x1e')](_0x48d337?0xa:0x5),_0x321256=_0xfd9c01[_0xf326('0x5')](),_0x65dd94=_0x321256[_0xf326('0x1e')](0x0,0x3)+_0xf326('0xf'),_0x1e6337=_0xf326('0x70')+_0xfd9c01,_0x3dc0ce=_0xf326('0x78')+_0xfd9c01;if(!_0x2e37d8[_0xf326('0x47')])continue;if(_0xcc7320!=_0x2e37d8[_0xf326('0x17')]()[_0xf326('0x52')][_0xf326('0x5d')](_0xf326('0x3a')))continue;if(_0x2e37d8[_0xf326('0x28')](_0x230ee4))continue;const _0x4db28a=_0x677497[_0xf326('0x1f')](_0x65dd94)?_0x677497[_0xf326('0x80')](_0x65dd94)-0x1:0x0,_0x37556c=this[_0xf326('0x89')](_0x2e37d8),_0x4592a3=_0x37556c[_0x1e6337],_0x5a9e3c=_0x37556c[_0x3dc0ce];_0x4592a3<=_0x636972[_0x321256]&&_0x636972[_0x321256]+_0x4db28a<=_0x5a9e3c&&(_0x2e37d8[_0xf326('0x63')](_0x230ee4),_0x4093ac=!0x0);}return _0x4093ac;};_0x4d064e[_0xf326('0x49')]['document']['registerPostFixer'](_0x267a16=>{let _0x4a7191=!0x1;for(const _0x55dd7e of _0x4d064e['model'][_0xf326('0x3e')][_0xf326('0x5e')][_0xf326('0x2c')]())if(_0xf326('0x58')==_0x55dd7e[_0xf326('0x31')]){if(_0xf326('0x44')==_0x55dd7e[_0xf326('0x3f')])for(const _0x59f105 of _0x55dd7e['position'][_0xf326('0x24')][_0xf326('0x53')]())_0x4a7191=_0x4a7191||_0x125899(_0x59f105,_0x267a16);else _0xf326('0x76')==_0x55dd7e['name']&&(_0x4a7191=_0x4a7191||_0x125899(_0x55dd7e[_0xf326('0x2b')][_0xf326('0x24')],_0x267a16));}return _0x4a7191;});}[_0xf326('0x89')](_0x11c5ca){return this[_0xf326('0x67')](_0x11c5ca['getRanges']()[_0xf326('0x15')](_0x10d3b3=>_0x10d3b3['start'][_0xf326('0x24')]));}}function se(_0x453ba2){return Array['from'](new Set(_0x453ba2)[_0xf326('0x14')]());}
|
|
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');}}
|