@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230818.0 → 0.0.0-nightly-20230819.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 _0x45cc=['createPositionAt','backward','editor','styles','listItem','*Change\x20to:*\x20%0','*Format:*\x20set\x20order\x20to\x20regular','locale','getSelectedBlocks','listReversed','enableCommand','parent','handleListStartCommand','flat','getSiblingNodes','document','replace','*Format:*\x20set\x20start\x20index\x20to\x20%0','listType','_getTranslationKeyForListStyle','commandParams','TrackChangesEditing','list.properties','_getSuggestionBlocks','length','getFirstPosition','handleListReversedCommand','_LIST_','getAttribute','element','format','afterInit','toUpperCase','listStyle','get','plugins','markMultiRangeBlockFormat','filter','change','registerDescriptionCallback','unshift','numbered','_descriptionFactory','handleListStyleCommand','selection','map','model','config','handleDescriptions','ELEMENT_','ListPropertiesEditing','startIndex','listStart','ListUtils','*Format:*\x20set\x20order\x20to\x20reversed','forward','reversed','_getSuggestionBlocksForListStyle','createRange','commandName','push','bind','before'];(function(_0x36a478,_0x45cc12){const _0x11f276=function(_0x14395e){while(--_0x14395e){_0x36a478['push'](_0x36a478['shift']());}};_0x11f276(++_0x45cc12);}(_0x45cc,0x149));const _0x11f2=function(_0x36a478,_0x45cc12){_0x36a478=_0x36a478-0x0;let _0x11f276=_0x45cc[_0x36a478];return _0x11f276;};import{Plugin as _0x4c3e2c}from'ckeditor5/src/core';import{getTranslation as _0x4de04d}from'../utils/common-translations';export default class nt extends _0x4c3e2c{[_0x11f2('0x11')](){if(!this['editor'][_0x11f2('0x15')]['has'](_0x11f2('0x24')))return;const _0x3f89c7=this[_0x11f2('0x33')][_0x11f2('0x21')][_0x11f2('0x14')](_0x11f2('0x8')),_0x48d293=this['editor'][_0x11f2('0x15')]['get']('TrackChangesEditing');_0x3f89c7[_0x11f2('0x34')]&&_0x48d293[_0x11f2('0x3b')](_0x11f2('0x13'),this[_0x11f2('0x1d')][_0x11f2('0x2f')](this)),_0x3f89c7[_0x11f2('0x2a')]&&_0x48d293['enableCommand'](_0x11f2('0x3a'),this[_0x11f2('0xc')][_0x11f2('0x2f')](this)),_0x3f89c7[_0x11f2('0x25')]&&_0x48d293['enableCommand'](_0x11f2('0x26'),this[_0x11f2('0x3d')][_0x11f2('0x2f')](this)),_0x48d293[_0x11f2('0x1c')][_0x11f2('0x19')](this[_0x11f2('0x22')][_0x11f2('0x2f')](this));}[_0x11f2('0x1d')](_0x215aba,_0x1fbb43={}){const _0x4c23c2=this[_0x11f2('0x33')]['plugins'][_0x11f2('0x14')](_0x11f2('0x7')),_0x358579=this[_0x11f2('0x2b')]();this['editor'][_0x11f2('0x20')][_0x11f2('0x18')](()=>{_0x4c23c2['markMultiRangeBlockFormat'](_0x358579,{'commandName':_0x11f2('0x13'),'commandParams':[{'type':_0x1fbb43['type']}],'formatGroupId':_0x11f2('0x13')});});}[_0x11f2('0xc')](_0x48a78f,_0xe7b37b={}){const _0x538974=this[_0x11f2('0x33')]['plugins'][_0x11f2('0x14')](_0x11f2('0x7')),_0x510866=this['_getSuggestionBlocks'](_0x500a07=>_0x500a07['is'](_0x11f2('0xf'),'listItem')&&_0x11f2('0x1b')===_0x500a07[_0x11f2('0xe')](_0x11f2('0x4')));if(_0x510866['length']<0x1)return;const _0x29f4f2=_0x510866[_0x11f2('0x1f')](_0xf988d6=>this[_0x11f2('0x33')]['model'][_0x11f2('0x2c')](this['editor']['model'][_0x11f2('0x31')](_0xf988d6,'before'),this[_0x11f2('0x33')][_0x11f2('0x20')][_0x11f2('0x31')](_0xf988d6,0x0)));this['editor'][_0x11f2('0x20')][_0x11f2('0x18')](()=>{_0x538974['markMultiRangeBlockFormat'](_0x29f4f2,{'commandName':_0x11f2('0x3a'),'commandParams':[{'reversed':_0xe7b37b[_0x11f2('0x2a')]}],'formatGroupId':_0x11f2('0x3a')});});}[_0x11f2('0x3d')](_0x27f851,_0x3b5370={}){const _0x655b2d=this[_0x11f2('0x33')][_0x11f2('0x15')][_0x11f2('0x14')](_0x11f2('0x7')),_0x480769=this[_0x11f2('0x9')](_0x5759b8=>_0x5759b8['is'](_0x11f2('0xf'),_0x11f2('0x35'))&&_0x11f2('0x1b')===_0x5759b8[_0x11f2('0xe')](_0x11f2('0x4')));if(_0x480769[_0x11f2('0xa')]<0x1)return;const _0x1decd0=_0x480769['map'](_0x1efc7d=>this[_0x11f2('0x33')]['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1efc7d,_0x11f2('0x30')),this[_0x11f2('0x33')][_0x11f2('0x20')][_0x11f2('0x31')](_0x1efc7d,0x0)));this[_0x11f2('0x33')]['model'][_0x11f2('0x18')](()=>{_0x655b2d[_0x11f2('0x16')](_0x1decd0,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b5370['startIndex']}],'formatGroupId':_0x11f2('0x26')});});}['handleDescriptions'](_0x60d753){const _0x13ace8=this[_0x11f2('0x33')][_0x11f2('0x38')],{data:_0x1fe720}=_0x60d753;if(!_0x1fe720)return;let _0x2fbdc0,_0x22ed1b;switch(_0x1fe720[_0x11f2('0x2d')]){case _0x11f2('0x13'):_0x2fbdc0=_0x11f2('0x36'),_0x22ed1b={'type':_0x11f2('0x10'),'content':_0x4de04d(_0x13ace8,_0x2fbdc0,_0x4de04d(_0x13ace8,this[_0x11f2('0x5')](_0x1fe720[_0x11f2('0x6')][0x0]['type'])))};break;case _0x11f2('0x3a'):_0x2fbdc0=_0x1fe720[_0x11f2('0x6')][0x0][_0x11f2('0x2a')]?_0x11f2('0x28'):_0x11f2('0x37'),_0x22ed1b={'type':_0x11f2('0x10'),'content':_0x4de04d(_0x13ace8,_0x2fbdc0)};break;case _0x11f2('0x26'):_0x2fbdc0=_0x11f2('0x3'),_0x22ed1b={'type':_0x11f2('0x10'),'content':_0x4de04d(_0x13ace8,_0x2fbdc0,_0x1fe720['commandParams'][0x0][_0x11f2('0x25')])};}return _0x22ed1b;}[_0x11f2('0x2b')](){var _0x549b7a,_0x576c40,_0x2e3f7d,_0x1510fd;const _0x356cd2=this[_0x11f2('0x33')][_0x11f2('0x15')][_0x11f2('0x14')](_0x11f2('0x27'));let _0x110a8f=Array['from'](this['editor'][_0x11f2('0x20')][_0x11f2('0x1')][_0x11f2('0x1e')]['getSelectedBlocks']());return(null===(_0x549b7a=_0x110a8f[0x0])||void 0x0===_0x549b7a?void 0x0:_0x549b7a['is'](_0x11f2('0xf'),_0x11f2('0x35')))&&_0x110a8f[_0x11f2('0x1a')](..._0x356cd2[_0x11f2('0x0')](this[_0x11f2('0x33')][_0x11f2('0x20')]['document'][_0x11f2('0x1e')][_0x11f2('0xb')](),_0x11f2('0x32'))),(null===(_0x576c40=_0x110a8f[_0x110a8f['length']-0x1])||void 0x0===_0x576c40?void 0x0:_0x576c40['is']('element',_0x11f2('0x35')))&&_0x110a8f[_0x11f2('0x2e')](..._0x356cd2['getSiblingNodes'](this[_0x11f2('0x33')][_0x11f2('0x20')][_0x11f2('0x1')][_0x11f2('0x1e')]['getLastPosition'](),_0x11f2('0x29'))),_0x110a8f=[...new Set(_0x110a8f)],(null===(_0x1510fd=null===(_0x2e3f7d=this['editor'][_0x11f2('0x20')][_0x11f2('0x1')]['selection'][_0x11f2('0xb')]())||void 0x0===_0x2e3f7d?void 0x0:_0x2e3f7d[_0x11f2('0x3c')])||void 0x0===_0x1510fd?void 0x0:_0x1510fd['is'](_0x11f2('0xf'),_0x11f2('0x35')))&&(_0x110a8f=_0x110a8f[_0x11f2('0x17')](_0x322e1a=>_0x322e1a['is'](_0x11f2('0xf'),_0x11f2('0x35')))),_0x110a8f;}[_0x11f2('0x9')](_0x169d0b){const _0xd7b625=this[_0x11f2('0x33')][_0x11f2('0x15')][_0x11f2('0x14')]('ListUtils');let _0x37993e=Array['from'](this[_0x11f2('0x33')]['model']['document'][_0x11f2('0x1e')][_0x11f2('0x39')]())[_0x11f2('0x17')](_0x169d0b)['map'](_0x2d4411=>{const _0x4ddb03=this['editor']['model'][_0x11f2('0x31')](_0x2d4411,0x0);return[..._0xd7b625['getSiblingNodes'](_0x4ddb03,_0x11f2('0x32')),..._0xd7b625[_0x11f2('0x0')](_0x4ddb03,_0x11f2('0x29'))];})[_0x11f2('0x3e')]();return _0x37993e=[...new Set(_0x37993e)],_0x37993e;}[_0x11f2('0x5')](_0x2507c9){return _0x11f2('0x23')+this[_0x11f2('0x33')]['plugins']['get'](_0x11f2('0x27'))['getListTypeFromListStyleType'](_0x2507c9)[_0x11f2('0x12')]()+_0x11f2('0xd')+_0x2507c9['toUpperCase']()[_0x11f2('0x2')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33be=['_descriptionFactory','locale','afterInit','downcastDispatcher','MediaEmbedEditing','div','conversion','get','for','high','plugins','attribute:url:media','data','has','options','media','ELEMENT_MEDIA','showSuggestionHighlights','enableCommand','createEmptyElement','stop','elementToElement','TrackChangesEditing','editor','mediaEmbed','dataDowncast'];(function(_0x36d9f2,_0x33be28){const _0x46e798=function(_0x23304f){while(--_0x23304f){_0x36d9f2['push'](_0x36d9f2['shift']());}};_0x46e798(++_0x33be28);}(_0x33be,0x14a));const _0x46e7=function(_0x36d9f2,_0x33be28){_0x36d9f2=_0x36d9f2-0x0;let _0x46e798=_0x33be[_0x36d9f2];return _0x46e798;};import{Plugin as _0x3b6bcf}from'ckeditor5/src/core';import{getTranslation as _0x1f8b92}from'../utils/common-translations';export default class ot extends _0x3b6bcf{[_0x46e7('0xa')](){const _0x15e6f0=this[_0x46e7('0x5')];if(!_0x15e6f0[_0x46e7('0x12')][_0x46e7('0x15')](_0x46e7('0xc')))return;const _0x3de54f=_0x15e6f0[_0x46e7('0x12')][_0x46e7('0xf')](_0x46e7('0x4')),_0x3499da=_0x15e6f0[_0x46e7('0x9')];_0x3de54f[_0x46e7('0x0')](_0x46e7('0x6')),_0x3de54f[_0x46e7('0x8')]['registerElementLabel'](_0x46e7('0x17'),_0x5ea63b=>_0x1f8b92(_0x3499da,_0x46e7('0x18'),_0x5ea63b)),_0x15e6f0[_0x46e7('0xe')][_0x46e7('0x10')](_0x46e7('0x7'))[_0x46e7('0x3')]({'model':_0x46e7('0x17'),'view':(_0x159d75,{writer:_0x2168ae,options:_0x28adc6})=>{if(_0x28adc6[_0x46e7('0x19')])return _0x2168ae[_0x46e7('0x1')](_0x46e7('0xd'));},'converterPriority':_0x46e7('0x11')}),_0x15e6f0[_0x46e7('0x14')][_0x46e7('0xb')]['on'](_0x46e7('0x13'),(_0x20892b,_0x37b06f,_0x154093)=>{_0x154093[_0x46e7('0x16')]['showSuggestionHighlights']&&_0x20892b[_0x46e7('0x2')]();},{'priority':_0x46e7('0x11')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x155d=['enableCommand','has','TrackChangesEditing','plugins','afterInit','editor','mention','MentionEditing','get'];(function(_0xe3923b,_0x155d92){const _0x22d68e=function(_0x359981){while(--_0x359981){_0xe3923b['push'](_0xe3923b['shift']());}};_0x22d68e(++_0x155d92);}(_0x155d,0x9f));const _0x22d6=function(_0xe3923b,_0x155d92){_0xe3923b=_0xe3923b-0x0;let _0x22d68e=_0x155d[_0xe3923b];return _0x22d68e;};import{Plugin as _0x212121}from'ckeditor5/src/core';export default class rt extends _0x212121{[_0x22d6('0x7')](){const _0x32c57f=this[_0x22d6('0x8')];_0x32c57f['plugins'][_0x22d6('0x4')](_0x22d6('0x1'))&&_0x32c57f[_0x22d6('0x6')][_0x22d6('0x2')](_0x22d6('0x5'))[_0x22d6('0x3')](_0x22d6('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x293d=['get','pageBreak','plugins','afterInit','PageBreakEditing','registerElementLabel','has','TrackChangesEditing','locale'];(function(_0x3c5f3e,_0x293da7){const _0x1479e4=function(_0x5684e6){while(--_0x5684e6){_0x3c5f3e['push'](_0x3c5f3e['shift']());}};_0x1479e4(++_0x293da7);}(_0x293d,0x161));const _0x1479=function(_0x3c5f3e,_0x293da7){_0x3c5f3e=_0x3c5f3e-0x0;let _0x1479e4=_0x293d[_0x3c5f3e];return _0x1479e4;};import{Plugin as _0x52aaf8}from'ckeditor5/src/core';import{getTranslation as _0x3cbc1f}from'../utils/common-translations';export default class at extends _0x52aaf8{[_0x1479('0x1')](){const _0x5b9f83=this['editor'];if(!_0x5b9f83[_0x1479('0x0')][_0x1479('0x4')](_0x1479('0x2')))return;_0x5b9f83[_0x1479('0x0')][_0x1479('0x7')](_0x1479('0x5'))['enableCommand'](_0x1479('0x8'));const _0xa7ad28=_0x5b9f83[_0x1479('0x0')][_0x1479('0x7')](_0x1479('0x5')),_0x4321ca=_0x5b9f83[_0x1479('0x6')];_0xa7ad28['_descriptionFactory'][_0x1479('0x3')](_0x1479('0x8'),_0x4a74e9=>_0x3cbc1f(_0x4321ca,'ELEMENT_PAGE_BREAK',_0x4a74e9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d77=['isTouching','markerName','mapper','locale','downcastDispatcher','insertParagraph','*Change\x20to:*\x20%0','schema','editor','isObject','filter','TrackChangesEditing','$text','paragraph','nodeAfter','insertion','model','insert','consume','has','editing','span','Paragraph','ck-suggestion-marker-split','checkChild','blockName','bindElementToMarker','highest','parent','toViewPosition','ck-suggestion-marker--active','afterInit','end','get','ELEMENT_PARAGRAPH','isBlock','addMarker:suggestion:insertion','writer','consumable','plugins','getItemLabel','_descriptionFactory','name','includes','getFirstRange','activeMarkers','selection','registerDescriptionCallback','change','markerRange','format','isLimit','showSuggestionHighlights','markBlockFormat','start'];(function(_0x102b9d,_0x3d77bd){const _0x1001b4=function(_0x2fa3db){while(--_0x2fa3db){_0x102b9d['push'](_0x102b9d['shift']());}};_0x1001b4(++_0x3d77bd);}(_0x3d77,0xa7));const _0x1001=function(_0x102b9d,_0x3d77bd){_0x102b9d=_0x102b9d-0x0;let _0x1001b4=_0x3d77[_0x102b9d];return _0x1001b4;};import{Plugin as _0x2936b6}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x1b28f9}from'./utils';import{getTranslation as _0x2a33cc}from'../utils/common-translations';export default class ct extends _0x2936b6{[_0x1001('0x1d')](){const _0x4c1fa6=this[_0x1001('0x6')];if(!_0x4c1fa6[_0x1001('0x25')][_0x1001('0x11')](_0x1001('0x14')))return;const _0x20b3d4=_0x4c1fa6[_0x1001('0x1')],_0x11a5a6=_0x4c1fa6['plugins']['get']('TrackChangesEditing');_0x11a5a6[_0x1001('0x27')]['registerElementLabel'](_0x1001('0xb'),_0x48e582=>_0x2a33cc(_0x20b3d4,'ELEMENT_PARAGRAPH',_0x48e582)),_0x11a5a6['enableCommand']('paragraph',(_0x454233,_0x2097d0={})=>{const _0x42a57d=_0x4c1fa6[_0x1001('0xe')]['document'],_0x1b598c=_0x2097d0[_0x1001('0x2c')]||_0x42a57d[_0x1001('0x2c')],_0x37ed3d=Array['from'](_0x1b598c['getSelectedBlocks']())[_0x1001('0x8')](_0xa17074=>function(_0x2c07a0,_0x1eda27){return _0x1eda27['checkChild'](_0x2c07a0[_0x1001('0x1a')],_0x1001('0xb'))&&!_0x1eda27[_0x1001('0x7')](_0x2c07a0)&&'paragraph'!=_0x2c07a0[_0x1001('0x28')];}(_0xa17074,this[_0x1001('0x6')][_0x1001('0xe')][_0x1001('0x5')]));_0x4c1fa6[_0x1001('0xe')][_0x1001('0x2e')](()=>{for(const _0xaffccf of _0x37ed3d)_0x11a5a6[_0x1001('0x33')](_0xaffccf,{'commandName':_0x1001('0xb'),'commandParams':[],'formatGroupId':_0x1001('0x17')},_0x1b28f9(_0xaffccf));});}),_0x11a5a6[_0x1001('0x27')]['registerDescriptionCallback'](_0x1baa01=>{const {data:_0x39d2ca}=_0x1baa01;if(_0x39d2ca&&_0x1001('0xb')==_0x39d2ca['commandName'])return{'type':_0x1001('0x30'),'content':_0x2a33cc(_0x20b3d4,_0x1001('0x4'),_0x2a33cc(_0x20b3d4,_0x1001('0x20')))};}),_0x11a5a6['enableCommand'](_0x1001('0x3')),_0x4c1fa6[_0x1001('0x12')][_0x1001('0x2')]['on'](_0x1001('0x22'),ar(_0x4c1fa6),{'priority':'highest'}),_0x4c1fa6['data'][_0x1001('0x2')]['on'](_0x1001('0x22'),(_0x313b7d,_0x35bd6d,_0x56513e)=>{_0x56513e['options'][_0x1001('0x32')]&&ar(_0x4c1fa6,{'showActiveMarker':!0x1})(_0x313b7d,_0x35bd6d,_0x56513e);},{'priority':_0x1001('0x19')});const _0x1cc2f2=_0x11a5a6[_0x1001('0x27')];_0x1cc2f2[_0x1001('0x2d')](_0x4ffa2b=>{if(_0x1001('0xd')!==_0x4ffa2b['type'])return;const {start:_0x3f5a72,end:_0x3b9bc4}=_0x4ffa2b[_0x1001('0x2a')]();if(!_0x3f5a72[_0x1001('0x35')](_0x3b9bc4)||!_0x3f5a72[_0x1001('0xc')])return;const _0x7f20ec=_0x4c1fa6[_0x1001('0xe')]['schema'],_0x3f030c=_0x3f5a72[_0x1001('0xc')];return _0x7f20ec['isBlock'](_0x3f030c)&&!_0x7f20ec[_0x1001('0x31')](_0x3f030c)&&_0x7f20ec[_0x1001('0x16')](_0x3f030c,_0x1001('0xa'))?{'type':'insertion','content':_0x2a33cc(_0x20b3d4,'*Insert:*\x20%0',_0x1cc2f2[_0x1001('0x26')](_0x3f030c,0x1))}:void 0x0;});}}function ar(_0x1ed164,{showActiveMarker:_0x321e9b=!0x0}={}){return(_0x2b5f09,_0x7171ba,_0x1bfeda)=>{const _0x40821d=_0x1ed164[_0x1001('0x25')][_0x1001('0x1f')](_0x1001('0x9')),_0x5efadb=_0x7171ba['markerRange'][_0x1001('0x34')],_0x589151=_0x7171ba['markerRange'][_0x1001('0x1e')],_0x55f64f=_0x1ed164[_0x1001('0xe')]['schema'];if(!_0x5efadb[_0x1001('0x35')](_0x589151)||!_0x5efadb[_0x1001('0xc')])return;const _0x506063=_0x5efadb[_0x1001('0xc')];if(_0x55f64f[_0x1001('0x21')](_0x506063)&&!_0x55f64f[_0x1001('0x31')](_0x506063)&&_0x55f64f[_0x1001('0x16')](_0x506063,_0x1001('0xa'))){if(!_0x1bfeda[_0x1001('0x24')][_0x1001('0x10')](_0x7171ba[_0x1001('0x2f')],_0x2b5f09[_0x1001('0x28')]))return;const _0x4eeecf=_0x1bfeda[_0x1001('0x23')]['createUIElement'](_0x1001('0x13'),{'class':_0x1001('0x15')}),_0x1649ee=_0x1bfeda['mapper'][_0x1001('0x1b')](_0x589151);_0x321e9b&&_0x40821d[_0x1001('0x2b')][_0x1001('0x29')](_0x7171ba[_0x1001('0x36')])&&_0x1bfeda[_0x1001('0x23')]['addClass'](_0x1001('0x1c'),_0x4eeecf),_0x1bfeda[_0x1001('0x23')][_0x1001('0xf')](_0x1649ee,_0x4eeecf),_0x1bfeda[_0x1001('0x0')][_0x1001('0x18')](_0x4eeecf,_0x7171ba[_0x1001('0x36')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x138f=['locale','schema','getAttributeProperties','commandName','isFormatting','removeFormat','selection','from','_descriptionFactory','model','getRanges','createRangeOn','has','get','afterInit','enableCommand','TrackChangesEditing','registerDescriptionCallback','plugins'];(function(_0xbb0c9a,_0x138f57){const _0x35c4c8=function(_0xda1859){while(--_0xda1859){_0xbb0c9a['push'](_0xbb0c9a['shift']());}};_0x35c4c8(++_0x138f57);}(_0x138f,0x95));const _0x35c4=function(_0xbb0c9a,_0x138f57){_0xbb0c9a=_0xbb0c9a-0x0;let _0x35c4c8=_0x138f[_0xbb0c9a];return _0x35c4c8;};import{Plugin as _0x225e7c}from'ckeditor5/src/core';import{getTranslation as _0x5ed507}from'../utils/common-translations';export default class ht extends _0x225e7c{[_0x35c4('0x11')](){const _0x417701=this['editor'];if(!_0x417701['plugins'][_0x35c4('0xf')]('RemoveFormatEditing'))return;const _0x4222f9=_0x417701[_0x35c4('0x2')][_0x35c4('0x10')](_0x35c4('0x0'));_0x4222f9[_0x35c4('0x12')](_0x35c4('0x8'),_0x54e4b3=>{const _0x152a18=_0x417701[_0x35c4('0xc')]['document'][_0x35c4('0x9')];_0x152a18['isCollapsed']?_0x54e4b3():_0x417701[_0x35c4('0xc')]['change'](()=>{const _0x119a54=Array[_0x35c4('0xa')](_0x152a18[_0x35c4('0xd')]());for(const _0x143515 of _0x119a54)for(const _0x2c71f6 of _0x143515['getItems']())eo(_0x2c71f6,_0x417701['model'][_0x35c4('0x4')])&&_0x4222f9['markInlineFormat'](_0x417701[_0x35c4('0xc')][_0x35c4('0xe')](_0x2c71f6),{'commandName':'removeFormat','commandParams':[]});});}),_0x4222f9[_0x35c4('0xb')][_0x35c4('0x1')](_0x3872d6=>{const {data:_0x7aeefc}=_0x3872d6;if(_0x7aeefc&&_0x35c4('0x8')==_0x7aeefc[_0x35c4('0x6')])return{'type':'format','content':_0x5ed507(_0x417701[_0x35c4('0x3')],'*Remove\x20all\x20formatting*')};});}}function eo(_0x523d64,_0x43398f){for(const [_0x36ce89]of _0x523d64['getAttributes']()){const _0x59504e=_0x43398f[_0x35c4('0x5')](_0x36ce89);if(_0x59504e&&_0x59504e[_0x35c4('0x7')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x579f=['discardSelectedSuggestions','has','editor','goToPreviousRestrictedEditingException','trackChanges','afterInit','goToNextRestrictedEditingException','TrackChangesEditing','RestrictedEditingModeEditing','enableCommand','discardAllSuggestions','plugins','get'];(function(_0x22ed08,_0x579f82){const _0x4fdf6e=function(_0x566452){while(--_0x566452){_0x22ed08['push'](_0x22ed08['shift']());}};_0x4fdf6e(++_0x579f82);}(_0x579f,0xf6));const _0x4fdf=function(_0x22ed08,_0x579f82){_0x22ed08=_0x22ed08-0x0;let _0x4fdf6e=_0x579f[_0x22ed08];return _0x4fdf6e;};import{Plugin as _0x31c1fe}from'ckeditor5/src/core';export default class ut extends _0x31c1fe{[_0x4fdf('0x6')](){const _0x20187e=this[_0x4fdf('0x3')];if(!_0x20187e[_0x4fdf('0xc')][_0x4fdf('0x2')](_0x4fdf('0x9')))return;const _0x1233b0=_0x20187e[_0x4fdf('0xc')][_0x4fdf('0x0')](_0x4fdf('0x8'));_0x1233b0['enableCommand'](_0x4fdf('0x4')),_0x1233b0[_0x4fdf('0xa')](_0x4fdf('0x7'));const _0x226ec3=_0x20187e[_0x4fdf('0xc')][_0x4fdf('0x0')]('RestrictedEditingModeEditing');_0x226ec3['enableCommand'](_0x4fdf('0x5')),_0x226ec3[_0x4fdf('0xa')]('acceptSuggestion'),_0x226ec3[_0x4fdf('0xa')]('discardSuggestion'),_0x226ec3['enableCommand']('acceptAllSuggestions'),_0x226ec3[_0x4fdf('0xa')](_0x4fdf('0xb')),_0x226ec3[_0x4fdf('0xa')]('acceptSelectedSuggestions'),_0x226ec3[_0x4fdf('0xa')](_0x4fdf('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d26=['addMarker:suggestion:insertion','data','span','ELEMENT_LINE_BREAK','merge','writer','enableCommand','get','bindElementToMarker','addMarker:suggestion','model','downcastDispatcher','requires','editing','includes','plugins','init','TrackChangesEditing','markerName','showSuggestionHighlights','getItems','shiftEnter','registerElementLabel','high','addMarker:suggestion:deletion','consumable','split','mapper','options','deletion','insert','editor','markerRange','createPositionBefore','softBreak','test','ck-suggestion-marker-','createUIElement'];(function(_0x11ea61,_0x5d2667){const _0x47d9ac=function(_0xc4b897){while(--_0xc4b897){_0x11ea61['push'](_0x11ea61['shift']());}};_0x47d9ac(++_0x5d2667);}(_0x5d26,0xaf));const _0x47d9=function(_0x11ea61,_0x5d2667){_0x11ea61=_0x11ea61-0x0;let _0x47d9ac=_0x5d26[_0x11ea61];return _0x47d9ac;};import{Plugin as _0x44a552}from'ckeditor5/src/core';import{ShiftEnter as _0x19f6a0}from'ckeditor5/src/enter';import{getTranslation as _0x4660fb}from'../utils/common-translations';export default class ft extends _0x44a552{static get[_0x47d9('0x1b')](){return[_0x19f6a0];}[_0x47d9('0x1f')](){const _0x36b0b3=this[_0x47d9('0x8')],_0x24c300=_0x36b0b3['plugins'][_0x47d9('0x16')](_0x47d9('0x20'));_0x24c300[_0x47d9('0x15')](_0x47d9('0x24')),_0x36b0b3[_0x47d9('0x1c')][_0x47d9('0x1a')]['on'](_0x47d9('0xf'),re(_0x36b0b3),{'priority':_0x47d9('0x0')}),_0x36b0b3[_0x47d9('0x1c')]['downcastDispatcher']['on'](_0x47d9('0x1'),re(_0x36b0b3),{'priority':'high'}),_0x36b0b3[_0x47d9('0x10')][_0x47d9('0x1a')]['on'](_0x47d9('0x18'),(_0x1621ef,_0x370d46,_0x3d14f1)=>{_0x3d14f1[_0x47d9('0x5')][_0x47d9('0x22')]&&re(_0x36b0b3,{'showActiveMarker':!0x1})(_0x1621ef,_0x370d46,_0x3d14f1);}),_0x24c300['_descriptionFactory'][_0x47d9('0x25')](_0x47d9('0xb'),_0x2aeaf4=>_0x4660fb(_0x36b0b3['locale'],_0x47d9('0x12'),_0x2aeaf4));}}function re(_0xb89a42,{showActiveMarker:_0x337eff=!0x0}={}){return(_0x185a75,_0x533b0,_0x5b2566)=>{const _0x2e92ce=_0xb89a42[_0x47d9('0x1e')][_0x47d9('0x16')](_0x47d9('0x20'));if(!_0x5b2566[_0x47d9('0x2')][_0x47d9('0xc')](_0x533b0[_0x47d9('0x9')],_0x185a75['name']))return;const _0x3153bd=_0xb89a42[_0x47d9('0x19')];for(const _0x58e98a of _0x533b0[_0x47d9('0x9')][_0x47d9('0x23')]()){if(!_0x58e98a['is']('element',_0x47d9('0xb')))continue;const _0x5a6940=_0x47d9('0x6')==_0x533b0[_0x47d9('0x21')][_0x47d9('0x3')](':')[0x1]?_0x47d9('0x13'):_0x47d9('0x3'),_0x14b804=_0x5b2566['writer'][_0x47d9('0xe')](_0x47d9('0x11'),{'class':_0x47d9('0xd')+_0x5a6940}),_0x2d9215=_0x5b2566[_0x47d9('0x4')]['toViewPosition'](_0x3153bd[_0x47d9('0xa')](_0x58e98a));_0x337eff&&_0x2e92ce['activeMarkers'][_0x47d9('0x1d')](_0x533b0[_0x47d9('0x21')])&&_0x5b2566[_0x47d9('0x14')]['addClass']('ck-suggestion-marker--active',_0x14b804),_0x5b2566[_0x47d9('0x14')][_0x47d9('0x7')](_0x2d9215,_0x14b804),_0x5b2566['mapper'][_0x47d9('0x17')](_0x14b804,_0x533b0['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e35=['registerDescriptionCallback','value','forceValue','commands','format','locale','TrackChangesEditing','commandName','commandParams','_descriptionFactory','markInlineFormat','enableCommand','getRanges','change','get','document','plugins','from','FORMAT_RESTRICTED_DISABLED','has','StandardEditingModeEditing','model'];(function(_0x3ae369,_0x1e3565){const _0x277b6a=function(_0x59d279){while(--_0x59d279){_0x3ae369['push'](_0x3ae369['shift']());}};_0x277b6a(++_0x1e3565);}(_0x1e35,0x15b));const _0x277b=function(_0x3ae369,_0x1e3565){_0x3ae369=_0x3ae369-0x0;let _0x277b6a=_0x1e35[_0x3ae369];return _0x277b6a;};import{Plugin as _0x223197}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x799fbd}from'./utils';import{getTranslation as _0x5c1450}from'../utils/common-translations';export default class lt extends _0x223197{['afterInit'](){const _0x2616f2=this['editor'],_0x2582d6=_0x2616f2[_0x277b('0x4')],_0x3af1af=_0x2616f2[_0x277b('0xa')];if(!_0x2616f2[_0x277b('0x15')][_0x277b('0x2')](_0x277b('0x3')))return;const _0x3bae6d=_0x2616f2[_0x277b('0x15')]['get'](_0x277b('0xb')),_0x10414f='restrictedEditingException',_0x32c732=_0x2616f2[_0x277b('0x8')][_0x277b('0x13')](_0x10414f);_0x3bae6d[_0x277b('0x10')](_0x10414f,(_0x4ee65a,_0x101214={})=>{const _0x557ef7=_0x2582d6[_0x277b('0x14')]['selection'];if(_0x557ef7['isCollapsed'])return void _0x4ee65a(_0x101214);const _0x59ed9f=void 0x0!==_0x101214[_0x277b('0x7')]?_0x101214[_0x277b('0x7')]:!_0x32c732[_0x277b('0x6')];_0x2582d6[_0x277b('0x12')](()=>{const _0x27948a=Array[_0x277b('0x0')](_0x557ef7[_0x277b('0x11')]());for(const _0x106670 of _0x27948a){const _0x2775df=_0x59ed9f?[_0x106670]:_0x799fbd(_0x10414f,_0x106670,_0x2582d6);for(const _0x209ca5 of _0x2775df)_0x3bae6d[_0x277b('0xf')](_0x209ca5,{'commandName':_0x10414f,'commandParams':[{'forceValue':_0x59ed9f}]});}});}),_0x3bae6d[_0x277b('0xe')][_0x277b('0x5')](_0x5c578d=>{const {data:_0x98467a}=_0x5c578d;if(_0x98467a&&_0x98467a[_0x277b('0xc')]==_0x10414f)return _0x98467a[_0x277b('0xd')][0x0][_0x277b('0x7')]?{'type':_0x277b('0x9'),'content':_0x5c1450(_0x3af1af,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x277b('0x9'),'content':_0x5c1450(_0x3af1af,_0x277b('0x1'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a94=['getItems','document','change','forceValue','getAncestors','format','getRanges','Style','_descriptionFactory','includes','push','block','modelElements','*Remove\x20format:*\x20%0','model','plugins','name','isCollapsed','config','_getStyleDefinition','enableCommand','inline','find','style','toLowerCase','locale','getDefinitionsForView','style:','isBlock','enabledStyles','classes','registerDescriptionCallback','afterInit','markInlineFormat','styleName','commandParams','from','has','every','_getRangesWithClasses','element','commands','selection','StyleUtils','get','value','add','TrackChangesEditing','normalizeConfig','getSelectedBlocks','DataSchema'];(function(_0x556a5a,_0x3a943a){const _0x111f66=function(_0x3c7c26){while(--_0x3c7c26){_0x556a5a['push'](_0x556a5a['shift']());}};_0x111f66(++_0x3a943a);}(_0x3a94,0x1cb));const _0x111f=function(_0x556a5a,_0x3a943a){_0x556a5a=_0x556a5a-0x0;let _0x111f66=_0x3a94[_0x556a5a];return _0x111f66;};import{Plugin as _0x4f42ca}from'ckeditor5/src/core';import{getTranslation as _0x3ac9fc}from'../utils/common-translations';export default class gt extends _0x4f42ca{[_0x111f('0x20')](){const _0x231d23=this['editor'];if(!_0x231d23[_0x111f('0xf')][_0x111f('0x25')](_0x111f('0x7')))return;const _0x344138=_0x231d23[_0x111f('0x29')][_0x111f('0x2c')](_0x111f('0x17')),_0x1f2c8a=_0x231d23[_0x111f('0xf')][_0x111f('0x2c')](_0x111f('0x2f')),_0x39fab6=_0x231d23[_0x111f('0x19')],_0x3742c7=_0x231d23[_0x111f('0xf')]['get'](_0x111f('0x32')),_0x14d7b4=_0x231d23[_0x111f('0xf')]['get'](_0x111f('0x2b'))[_0x111f('0x30')](_0x3742c7,_0x231d23[_0x111f('0x12')]['get']('style.definitions'));_0x1f2c8a[_0x111f('0x14')]('style',(_0x48b01c,{styleName:_0x37dbdf})=>{const _0x5cc53a=_0x231d23[_0x111f('0xe')][_0x111f('0x1')][_0x111f('0x2a')],_0x220a14=this[_0x111f('0x13')](_0x37dbdf,_0x14d7b4);if(!_0x220a14)return;if(!_0x344138[_0x111f('0x1d')][_0x111f('0x9')](_0x37dbdf))return;if(_0x5cc53a[_0x111f('0x11')]&&!_0x220a14[_0x111f('0x1c')])return void _0x48b01c({'styleName':_0x37dbdf});const _0x5c065c=!_0x344138[_0x111f('0x2d')][_0x111f('0x9')](_0x220a14[_0x111f('0x10')]);if(_0x220a14[_0x111f('0x1c')]){const _0x1948b0=function(_0x49072f,_0x5dde1b){const _0x4a8c4d=new Set();for(const _0x47215e of _0x49072f){const _0xde728f=_0x47215e[_0x111f('0x4')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x28feed of _0xde728f)if(_0x5dde1b['includes'](_0x28feed[_0x111f('0x10')])){_0x4a8c4d[_0x111f('0x2e')](_0x28feed);break;}}return _0x4a8c4d;}(_0x5cc53a[_0x111f('0x31')](),_0x220a14[_0x111f('0xc')]);_0x231d23[_0x111f('0xe')][_0x111f('0x2')](()=>{for(const _0x1af96e of _0x1948b0)_0x1f2c8a['markBlockFormat'](_0x1af96e,{'commandName':_0x111f('0x17'),'commandParams':[{'styleName':_0x37dbdf,'forceValue':_0x5c065c}],'formatGroupId':_0x111f('0x1b')+_0x37dbdf});});}else{let _0x1f9a15=Array[_0x111f('0x24')](_0x5cc53a[_0x111f('0x6')]());if(!_0x5c065c){const _0x21d478=Array[_0x111f('0x24')](_0x3742c7[_0x111f('0x1a')](_0x220a14[_0x111f('0x28')],!0x1))[0x0][_0x111f('0xe')],_0x4d2844=[];for(const _0x2eb28b of _0x1f9a15){const _0x2e202e=this[_0x111f('0x27')](_0x231d23[_0x111f('0xe')],_0x2eb28b,_0x220a14[_0x111f('0x1e')],_0x21d478);_0x4d2844['push'](..._0x2e202e);}_0x1f9a15=_0x4d2844;}_0x231d23[_0x111f('0xe')][_0x111f('0x2')](()=>{for(const _0x3d7573 of _0x1f9a15)_0x1f2c8a[_0x111f('0x21')](_0x3d7573,{'commandName':_0x111f('0x17'),'commandParams':[{'styleName':_0x37dbdf,'forceValue':_0x5c065c}]});});}}),_0x1f2c8a[_0x111f('0x8')][_0x111f('0x1f')](_0x321339=>{const {data:_0x2a1315}=_0x321339;if(_0x2a1315&&_0x111f('0x17')===_0x2a1315['commandName'])return _0x2a1315[_0x111f('0x23')][0x0][_0x111f('0x3')]?{'type':_0x111f('0x5'),'content':_0x3ac9fc(_0x39fab6,'*Format:*\x20%0',_0x2a1315[_0x111f('0x23')][0x0][_0x111f('0x22')][_0x111f('0x18')]())}:{'type':_0x111f('0x5'),'content':_0x3ac9fc(_0x39fab6,_0x111f('0xd'),_0x2a1315['commandParams'][0x0]['styleName'][_0x111f('0x18')]())};});}[_0x111f('0x13')](_0x21e4ce,_0x149b20){let _0x30bcfd=_0x149b20[_0x111f('0xb')]['find'](_0x1929c7=>_0x1929c7[_0x111f('0x10')]===_0x21e4ce);return _0x30bcfd||(_0x30bcfd=_0x149b20[_0x111f('0x15')][_0x111f('0x16')](_0x5ab6b7=>_0x5ab6b7[_0x111f('0x10')]===_0x21e4ce)),_0x30bcfd;}['_getRangesWithClasses'](_0x2d48b7,_0x3db7c7,_0x5826c4,_0xdab563){const _0x455e40=[];for(const _0x5e5a99 of _0x3db7c7[_0x111f('0x0')]()){const _0xc4872d=_0x5e5a99['getAttribute'](_0xdab563);_0xc4872d&&(_0x5826c4[_0x111f('0x26')](_0x472d2c=>_0xc4872d[_0x111f('0x1e')][_0x111f('0x9')](_0x472d2c))&&_0x455e40[_0x111f('0xa')](_0x2d48b7['createRangeOn'](_0x5e5a99)));}return _0x455e40;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2bb0=['subType','cell','markMultiRangeInsertion','tableCell','left','maxColumn','execute','tableRow','maxRow','_setupColumnsRowsFixing','item','insertion','change:data','isEqual','ELEMENT_TABLE_COLUMN_WITH_TEXT','commands','enqueueChange','markMultiRangeDeletion','getRowIndexes','from','isInContent','highest','start','createRangeIn','createTableWalker','toLowerCase','plugins','setSelection','last','insert','locale','position','removeClass','_getSuggestionCoords','discard','colspan','root','mapper','deletion','oldRange','registerElementLabel','ELEMENT_TABLE_WITH_TEXT','every','getChangedMarkers','options','getSelectionAffectedTableCells','filter','findAncestor','addMarker:suggestion','document','min','has','_tableSuggestions','first','TableUtils','change','removeTableRow','insertTableColumnLeft','showSuggestionHighlights','getSuggestion','createPositionAt','_suggestionFactory','_tablePostFixingSubtypes','getRanges','getFirstRange','hasAttribute','$textProxy','getChildren','differ','_descriptionFactory','table','insertTable','includes','downcastDispatcher','rootName','max','ELEMENT_TABLE','selectTableRow','toViewElement','enableCommand','insertTableRowAbove','get','nodeAfter','batch','type','rowspan','fromRange','accept','tableColumn','map','data','startsWith','isArray','MAX_SAFE_INTEGER','span','getCellLocation','getChanges','getItems','selection','registerDescriptionCallback','editor','low','ELEMENT_TABLE_COLUMN','above','model','ELEMENT_TABLE_ROW','*Remove:*\x20%0','insertTableColumnRight','some','removeTableColumn','element','name','add','isTouching','substr','afterInit','tablePaste','_getCoordsForCells','_acceptFormatSuggestionCallbackFactory','length','$graveyard','writer','end','getAttribute','TableEditing','values','join','MIN_SAFE_INTEGER','*Insert:*\x20%0','TrackChangesEditing','selectTableColumn','registerCustomCallback','ELEMENT_TABLE_ROW_WITH_TEXT','addRange','refresh','insertTableRowBelow','createRangeOn'];(function(_0x5c6e81,_0x2bb0df){const _0x50f152=function(_0x3ad698){while(--_0x3ad698){_0x5c6e81['push'](_0x5c6e81['shift']());}};_0x50f152(++_0x2bb0df);}(_0x2bb0,0x1e8));const _0x50f1=function(_0x5c6e81,_0x2bb0df){_0x5c6e81=_0x5c6e81-0x0;let _0x50f152=_0x2bb0[_0x5c6e81];return _0x50f152;};import{Plugin as _0x3ca5cf}from'ckeditor5/src/core';import{LiveRange as _0xc7d87}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3360c9}from'ckeditor5/src/widget';import{getTranslation as _0x39b536}from'../utils/common-translations';export default class mt extends _0x3ca5cf{constructor(_0x3f1772){super(_0x3f1772),this[_0x50f1('0x7a')]=['tableRow',_0x50f1('0xb')],this[_0x50f1('0x70')]=new Set();}[_0x50f1('0x26')](){const _0x5e2b46=this[_0x50f1('0x17')],_0x4d7e6b=_0x5e2b46[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x15')];if(!_0x5e2b46['plugins'][_0x50f1('0x6f')](_0x50f1('0x2f')))return;const _0x245258=_0x5e2b46[_0x50f1('0x5a')],_0x3d6b46=_0x5e2b46[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x34')),_0x14cc5c=_0x5e2b46['plugins'][_0x50f1('0x4')](_0x50f1('0x72'));_0x3d6b46[_0x50f1('0x81')][_0x50f1('0x64')]('table',_0xf352bb=>_0x39b536(_0x245258,_0x50f1('0x88'),_0xf352bb)),this[_0x50f1('0x45')](),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x83')),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x0')),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x35'));for(const _0x465f34 of[_0x50f1('0x3'),_0x50f1('0x3a')]){const _0x108377=_0x5e2b46['commands'][_0x50f1('0x4')](_0x465f34);_0x3d6b46['enableCommand'](_0x465f34,_0x2e5a62=>{_0x5e2b46['model'][_0x50f1('0x73')](_0x1e7522=>{_0x2e5a62();const _0x30e6d2=_0x50f1('0x1a')===_0x108377['order'],_0x4f4957=_0x14cc5c['getSelectionAffectedTableCells'](_0x4d7e6b),_0x3318cc=_0x14cc5c[_0x50f1('0x4e')](_0x4f4957),_0x26fc5d=_0x30e6d2?_0x3318cc[_0x50f1('0x71')]-0x1:_0x3318cc[_0x50f1('0x58')]+0x1,_0x4b67f=_0x4f4957[0x0][_0x50f1('0x6b')](_0x50f1('0x82')),_0x5aebc1=_0x14cc5c[_0x50f1('0x54')](_0x4b67f,{'startRow':_0x26fc5d,'endRow':_0x26fc5d}),_0xa3f160=Array[_0x50f1('0x4f')](_0x5aebc1)[_0x50f1('0xc')](_0x58451a=>_0x1e7522[_0x50f1('0x3b')](_0x58451a[_0x50f1('0x3d')]));_0x3d6b46[_0x50f1('0x3e')](_0xa3f160,'tableRow');});});}for(const _0x379562 of[_0x50f1('0x75'),_0x50f1('0x1e')]){const _0x4e5b2d=_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')](_0x379562);_0x3d6b46['enableCommand'](_0x379562,_0xfb5d2f=>{_0x5e2b46[_0x50f1('0x1b')][_0x50f1('0x73')](_0x53419e=>{_0xfb5d2f();const _0x1ca941=_0x50f1('0x40')===_0x4e5b2d['order'],_0x425533=_0x14cc5c[_0x50f1('0x69')](_0x4d7e6b),_0x40f40b=_0x14cc5c['getColumnIndexes'](_0x425533),_0xe0ea58=_0x1ca941?_0x40f40b[_0x50f1('0x71')]-0x1:_0x40f40b[_0x50f1('0x58')]+0x1,_0x19aba6=_0x425533[0x0][_0x50f1('0x6b')]('table'),_0x21a28c=_0x14cc5c['createTableWalker'](_0x19aba6,{'startRow':0x0,'column':_0xe0ea58,'includeAllSlots':!0x1}),_0x10da79=Array[_0x50f1('0x4f')](_0x21a28c)['map'](_0x47ad70=>_0x53419e['createRangeOn'](_0x47ad70[_0x50f1('0x3d')]));_0x3d6b46[_0x50f1('0x3e')](_0x10da79,_0x50f1('0xb'));});});}for(const _0x294985 of[_0x50f1('0x74'),_0x50f1('0x20')]){const _0x387a97=_0x294985[_0x50f1('0x25')](0xb),_0x2d68f3=_0x387a97[_0x50f1('0x55')](),_0x2cc287=_0x2d68f3[_0x50f1('0x25')](0x0,0x3)+'span',_0x1e678d='table'+_0x387a97,_0x5e3202=_0x50f1('0x6e')+_0x387a97,_0x2a1e49=_0x50f1('0x87')+_0x387a97;_0x3d6b46[_0x50f1('0x2')](_0x294985,()=>{_0x5e2b46['model'][_0x50f1('0x73')](_0x272df2=>{const _0x1a2864=_0x14cc5c[_0x50f1('0x69')](_0x4d7e6b),_0x134401=_0x1a2864[0x0]['findAncestor']('table');let _0x4fffaa;if(_0x50f1('0x74')==_0x294985){const _0x5e3d37=_0x14cc5c[_0x50f1('0x4e')](_0x1a2864);_0x4fffaa={'startRow':_0x5e3d37[_0x50f1('0x71')],'endRow':_0x5e3d37[_0x50f1('0x58')],'includeAllSlots':!0x0};}else{const _0x441da2=_0x14cc5c['getColumnIndexes'](_0x1a2864);_0x4fffaa={'startColumn':_0x441da2['first'],'endColumn':_0x441da2[_0x50f1('0x58')],'includeAllSlots':!0x0};}const _0x334079=_0x14cc5c[_0x50f1('0x54')](_0x134401,_0x4fffaa),_0x147b4f=Array['from'](_0x334079)['map'](({cell:_0x97ac50})=>_0x97ac50),_0x158d6a=se(_0x147b4f[_0x50f1('0x6a')](_0x1a77ff=>_0x1a77ff[_0x50f1('0x7d')](_0x2cc287))),_0x50111a=se(_0x147b4f[_0x50f1('0x6a')](_0x552639=>!_0x552639[_0x50f1('0x7d')](_0x2cc287)))['map'](_0xad6297=>_0x272df2[_0x50f1('0x3b')](_0xad6297)),_0x5ae984=_0x3d6b46[_0x50f1('0x4d')](_0x50111a,_0x1e678d);if(_0x5ae984&&(_0x50f1('0x43')==_0x5ae984[_0x50f1('0x3c')]||_0x50f1('0xb')==_0x5ae984[_0x50f1('0x3c')])){const _0x4335c1=this[_0x50f1('0x5d')](_0x5ae984);for(const _0x2b924 of _0x158d6a){const _0x22da9b=_0x272df2[_0x50f1('0x3b')](_0x2b924),_0xcecb64=_0x14cc5c[_0x50f1('0x12')](_0x2b924),_0x9f3204=_0x2b924['getAttribute'](_0x2cc287)-0x1,_0x454c79=_0x4335c1[_0x5e3202],_0x427be3=_0x4335c1[_0x2a1e49];_0x454c79<=_0xcecb64[_0x2d68f3]&&_0xcecb64[_0x2d68f3]+_0x9f3204<=_0x427be3&&_0x5ae984[_0x50f1('0x38')](_0x22da9b);}}});});}function _0xa5ae03(_0x5ab9d3){const _0x564c72=Array[_0x50f1('0x4f')](_0x4d7e6b['getRanges']())[_0x50f1('0xc')](_0x1df823=>_0xc7d87[_0x50f1('0x9')](_0x1df823));_0x5e2b46['model']['change'](_0x256811=>{const _0x34e0dd=_0x256811[_0x50f1('0x6')];_0x5ab9d3=_0x5ab9d3[_0x50f1('0x6a')](_0x476ae6=>_0x50f1('0x2b')!=_0x476ae6[_0x50f1('0x60')][_0x50f1('0x86')]),_0x256811['setSelection'](_0x5ab9d3),_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')](_0x50f1('0x74'))[_0x50f1('0x39')](),_0x5e2b46[_0x50f1('0x42')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e2b46[_0x50f1('0x1b')]['enqueueChange'](()=>{_0x5e2b46['model'][_0x50f1('0x4c')](_0x34e0dd,_0x496c1a=>{const _0x17e331=_0x564c72[_0x50f1('0x6a')](_0xa55b36=>_0x50f1('0x2b')!=_0xa55b36[_0x50f1('0x60')][_0x50f1('0x86')]);_0x17e331[_0x50f1('0x2a')]>0x0&&_0x496c1a['setSelection'](_0x17e331);for(const _0x3482c2 of _0x564c72)_0x3482c2['detach']();});});});}function _0x3fbea7(_0x201354){_0x5e2b46[_0x50f1('0x1b')]['change'](_0x10866e=>{const _0x136281=Array['from'](_0x4d7e6b[_0x50f1('0x7b')]())[_0x50f1('0xc')](_0xae2858=>_0xc7d87[_0x50f1('0x9')](_0xae2858)),_0x14a4f7=[];for(const _0x214861 of _0x201354)for(const _0x179aa5 of _0x214861[_0x50f1('0x14')]({'shallow':!0x0}))_0x14a4f7['push'](_0x179aa5);for(const _0x3dcd34 of _0x14a4f7)_0x50f1('0x2b')!=_0x3dcd34[_0x50f1('0x60')][_0x50f1('0x86')]&&(_0x10866e[_0x50f1('0x57')](_0x10866e[_0x50f1('0x78')](_0x3dcd34,0x0)),_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')]('removeTableColumn')['refresh'](),_0x5e2b46[_0x50f1('0x42')](_0x50f1('0x20'),{'forceDefaultExecution':!0x0}));const _0x572569=_0x136281[_0x50f1('0x6a')](_0x2f9a1f=>_0x50f1('0x2b')!=_0x2f9a1f[_0x50f1('0x60')][_0x50f1('0x86')]);_0x572569['length']>0x0&&_0x10866e[_0x50f1('0x57')](_0x572569);for(const _0x2f8dd7 of _0x136281)_0x2f8dd7['detach']();});}function _0x1efd4f(_0x2943d8,_0x37cf07){return _0x37cf07[_0x50f1('0x66')](_0x38bbc6=>_0x2943d8[_0x50f1('0x1f')](_0x429021=>_0x429021[_0x50f1('0x2d')][_0x50f1('0x49')](_0x38bbc6['start'])||_0x38bbc6[_0x50f1('0x2d')][_0x50f1('0x49')](_0x429021[_0x50f1('0x52')])));}function _0x54e1f0(_0x18aced,_0x1ec7df){return _0x18aced[_0x50f1('0x1f')](_0x296415=>_0x1ec7df[_0x50f1('0x1f')](_0x44762d=>_0x296415[_0x50f1('0x2d')][_0x50f1('0x24')](_0x44762d[_0x50f1('0x52')])));}_0x5e2b46[_0x50f1('0xd')][_0x50f1('0x85')]['on'](_0x50f1('0x6c'),(_0x278d7e,_0x5929ef,_0x1220d8)=>{if(!_0x1220d8[_0x50f1('0x68')][_0x50f1('0x76')])return;const _0x31559e=_0x5929ef[_0x50f1('0x46')];if(!_0x31559e)return;const _0x217d09=_0x1220d8[_0x50f1('0x61')][_0x50f1('0x1')](_0x31559e);function _0x3c39e8(_0x36ac64){return Array[_0x50f1('0xf')](_0x36ac64)?_0x36ac64:[_0x36ac64];}_0x217d09&&_0x50f1('0x3f')===_0x31559e[_0x50f1('0x22')]&&_0x3360c9(_0x217d09,_0x1220d8[_0x50f1('0x2c')],(_0x4f256c,_0xcc792a,_0x22e6f1)=>_0x22e6f1['addClass'](_0x3c39e8(_0xcc792a['classes']),_0x4f256c),(_0x4889ad,_0x35494e,_0xa8ff39)=>_0xa8ff39[_0x50f1('0x5c')](_0x3c39e8(_0x35494e['classes']),_0x4889ad));},{'priority':_0x50f1('0x51')}),_0x3d6b46['_descriptionFactory']['registerDescriptionCallback'](_0x271766=>{if('insertion'!=_0x271766['type']&&_0x50f1('0x62')!=_0x271766[_0x50f1('0x7')])return;const _0x571747=_0x271766['getContainedElement']();if(null!=_0x571747&&_0x571747['is'](_0x50f1('0x21'),_0x50f1('0x82'))){if('insertion'==_0x271766[_0x50f1('0x7')]){const _0x8b57da=_0x271766[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x3cb30d=>_0x3cb30d['is']('$textProxy'))[_0x50f1('0xc')](_0xf2120b=>_0xf2120b[_0x50f1('0xd')]);if(_0x8b57da['length'])return{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x65'),'\x22'+_0x8b57da[_0x50f1('0x31')]('\x20')+'\x22'))};}if(_0x50f1('0x62')==_0x271766['type']){const _0x3c6ed8=_0x271766[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x2702c5=>_0x2702c5['is'](_0x50f1('0x7e')))[_0x50f1('0xc')](_0x5a8153=>_0x5a8153[_0x50f1('0xd')]);if(_0x3c6ed8['length'])return{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x65'),'\x22'+_0x3c6ed8[_0x50f1('0x31')]('\x20')+'\x22'))};}}}),_0x3d6b46[_0x50f1('0x81')][_0x50f1('0x16')](_0x3926be=>{if(_0x50f1('0x43')==_0x3926be[_0x50f1('0x3c')]){const _0x3e61d4=_0x3926be['getItems']()['filter'](_0x172626=>_0x172626['is'](_0x50f1('0x7e')))[_0x50f1('0xc')](_0x55c261=>_0x55c261['data']),_0x3b0f5b=this['_getSuggestionCoords'](_0x3926be),_0x703855=_0x3b0f5b[_0x50f1('0x44')]-_0x3b0f5b['minRow']+0x1;if(_0x50f1('0x47')==_0x3926be[_0x50f1('0x7')])return _0x3e61d4[_0x50f1('0x2a')]?{'type':'insertion','content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x37'),[_0x703855,'\x22'+_0x3e61d4[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x1c'),_0x703855))};if('deletion'==_0x3926be[_0x50f1('0x7')])return _0x3e61d4[_0x50f1('0x2a')]?{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x37'),[_0x703855,'\x22'+_0x3e61d4[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x1c'),_0x703855))};}if(_0x50f1('0xb')==_0x3926be[_0x50f1('0x3c')]){const _0x56f65c=_0x3926be[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x16fa1c=>_0x16fa1c['is'](_0x50f1('0x7e')))['map'](_0x573811=>_0x573811[_0x50f1('0xd')]),_0x56444b=this[_0x50f1('0x5d')](_0x3926be),_0x10aec6=_0x56444b[_0x50f1('0x41')]-_0x56444b['minColumn']+0x1;if(_0x50f1('0x47')==_0x3926be[_0x50f1('0x7')])return _0x56f65c[_0x50f1('0x2a')]?{'type':'insertion','content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x4a'),[_0x10aec6,'\x22'+_0x56f65c[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,'*Insert:*\x20%0',_0x39b536(_0x245258,_0x50f1('0x19'),_0x10aec6))};if(_0x50f1('0x62')==_0x3926be[_0x50f1('0x7')])return _0x56f65c[_0x50f1('0x2a')]?{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,'*Remove:*\x20%0',_0x39b536(_0x245258,_0x50f1('0x4a'),[_0x10aec6,'\x22'+_0x56f65c[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x19'),_0x10aec6))};}}),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),'tableRow',_0x50f1('0x5e'),_0xa5ae03),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),_0x50f1('0x43'),_0x50f1('0xa'),_0xa5ae03),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),_0x50f1('0xb'),_0x50f1('0x5e'),_0x3fbea7),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),_0x50f1('0xb'),_0x50f1('0xa'),_0x3fbea7),_0x3d6b46['_suggestionFactory']['registerCustomCallback'](_0x50f1('0x47'),_0x50f1('0xb'),_0x50f1('0x31'),_0x1efd4f),_0x3d6b46[_0x50f1('0x79')]['registerCustomCallback'](_0x50f1('0x62'),_0x50f1('0xb'),_0x50f1('0x31'),_0x1efd4f),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),_0x50f1('0x43'),_0x50f1('0x31'),_0x54e1f0),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),'tableRow',_0x50f1('0x31'),_0x54e1f0);}[_0x50f1('0x29')](){const _0x3d834a=this['editor'],_0x1fc142=_0x3d834a[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x15')];return(_0x363edb,_0x3482f8)=>{_0x3d834a[_0x50f1('0x1b')][_0x50f1('0x73')](_0xf69e1b=>{const {commandName:_0x62f8b6,commandParams:_0x314de9}=_0x3482f8;let _0x959d17=_0x363edb[0x0][_0x50f1('0x2d')]['nodeBefore'];_0x314de9&&_0x314de9[0x0]&&!0x1===_0x314de9[0x0]['forceValue']&&(_0x959d17=_0x363edb[0x0][_0x50f1('0x52')]['nodeAfter']);const _0x90d2b6=_0xf69e1b[_0x50f1('0x53')](_0x959d17);if(_0x50f1('0x2b')==_0x90d2b6['root'][_0x50f1('0x86')])return;const _0x1a965e=Array[_0x50f1('0x4f')](_0x1fc142[_0x50f1('0x7b')]())[_0x50f1('0xc')](_0xdcabe7=>_0xc7d87[_0x50f1('0x9')](_0xdcabe7));_0xf69e1b[_0x50f1('0x57')](_0x90d2b6),_0x3d834a[_0x50f1('0x4b')]['get'](_0x62f8b6)[_0x50f1('0x39')](),_0x314de9['push']({'forceDefaultExecution':!0x0}),_0x3d834a['execute'](_0x62f8b6,..._0x314de9);const _0x339ae2=_0x1a965e[_0x50f1('0x6a')](_0x3ec4cb=>'$graveyard'!=_0x3ec4cb[_0x50f1('0x60')]['rootName']);_0x339ae2['length']>0x0&&_0xf69e1b[_0x50f1('0x57')](_0x339ae2);for(const _0x58407f of _0x1a965e)_0x58407f['detach']();});};}[_0x50f1('0x28')](_0x5e5ffc){const _0x1b75b4=this['editor'][_0x50f1('0x56')]['get'](_0x50f1('0x72'));let _0x3d5add=Number[_0x50f1('0x10')],_0x514da7=Number[_0x50f1('0x32')],_0x24612d=Number['MAX_SAFE_INTEGER'],_0x583318=Number[_0x50f1('0x32')];for(const _0x310e50 of _0x5e5ffc){if(_0x50f1('0x2b')==_0x310e50[_0x50f1('0x60')][_0x50f1('0x86')])continue;const {row:_0x3d968c,column:_0x3dd4bb}=_0x1b75b4[_0x50f1('0x12')](_0x310e50),_0x323337=_0x310e50[_0x50f1('0x7d')](_0x50f1('0x8'))?_0x310e50[_0x50f1('0x2e')]('rowspan')-0x1:0x0,_0x21de0f=_0x310e50[_0x50f1('0x7d')]('colspan')?_0x310e50['getAttribute'](_0x50f1('0x5f'))-0x1:0x0;_0x3d5add=_0x3d968c<_0x3d5add?_0x3d968c:_0x3d5add,_0x514da7=_0x3d968c+_0x323337>_0x514da7?_0x3d968c+_0x323337:_0x514da7,_0x24612d=_0x3dd4bb<_0x24612d?_0x3dd4bb:_0x24612d,_0x583318=_0x3dd4bb+_0x21de0f>_0x583318?_0x3dd4bb+_0x21de0f:_0x583318;}return{'minRow':_0x3d5add,'maxRow':_0x514da7,'minColumn':_0x24612d,'maxColumn':_0x583318};}[_0x50f1('0x45')](){const _0x5f2836=this[_0x50f1('0x17')],_0x5c740d=_0x5f2836[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x34')),_0x55735a=_0x5f2836[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x72'));_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')]['on'](_0x50f1('0x48'),()=>{const _0x6bf866=Array['from'](_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x80')][_0x50f1('0x67')]());for(const {name:_0x5ca4d8,data:_0x57e91b}of _0x6bf866){const {group:_0x301cdf,id:_0x4f931e,subType:_0x407842}=_0x5c740d['_splitMarkerName'](_0x5ca4d8);if('suggestion'!=_0x301cdf)continue;if(null!=_0x57e91b[_0x50f1('0x63')])continue;const _0x1600ed=_0x5c740d[_0x50f1('0x77')](_0x4f931e);this[_0x50f1('0x7a')][_0x50f1('0x84')](_0x407842)&&this[_0x50f1('0x70')][_0x50f1('0x23')](_0x1600ed);}},{'priority':_0x50f1('0x18')});const _0x2f2696=(_0xbec238,_0x1f8dda)=>{let _0x12e8d1=!0x1;const _0x284da7=_0x1f8dda[_0x50f1('0x3b')](_0xbec238),_0xa35d5a=_0xbec238[_0x50f1('0x6b')](_0x50f1('0x82')),_0x41336c=_0x55735a[_0x50f1('0x12')](_0xbec238);for(const _0x4c3568 of this['_tableSuggestions']){const _0x4a451e=_0x4c3568[_0x50f1('0x3c')],_0x84e944=_0x4a451e[_0x50f1('0xe')](_0x50f1('0x27')),_0x4a6abf=_0x4a451e[_0x50f1('0x25')](_0x84e944?0xa:0x5),_0xc1e5e3=_0x4a6abf[_0x50f1('0x55')](),_0x159247=_0xc1e5e3[_0x50f1('0x25')](0x0,0x3)+_0x50f1('0x11'),_0x12d1fd=_0x50f1('0x6e')+_0x4a6abf,_0x5c29f2=_0x50f1('0x87')+_0x4a6abf;if(!_0x4c3568[_0x50f1('0x50')])continue;if(_0xa35d5a!=_0x4c3568[_0x50f1('0x7c')]()[_0x50f1('0x52')][_0x50f1('0x6b')](_0x50f1('0x82')))continue;if(_0x4c3568['isIntersectingWithRange'](_0x284da7))continue;const _0x13e187=_0xbec238['hasAttribute'](_0x159247)?_0xbec238[_0x50f1('0x2e')](_0x159247)-0x1:0x0,_0x3c4a22=this[_0x50f1('0x5d')](_0x4c3568),_0x34f04e=_0x3c4a22[_0x12d1fd],_0x33e7ce=_0x3c4a22[_0x5c29f2];_0x34f04e<=_0x41336c[_0xc1e5e3]&&_0x41336c[_0xc1e5e3]+_0x13e187<=_0x33e7ce&&(_0x4c3568[_0x50f1('0x38')](_0x284da7),_0x12e8d1=!0x0);}return _0x12e8d1;};_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')]['registerPostFixer'](_0x167652=>{let _0xbb9692=!0x1;for(const _0x3b186e of _0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x80')][_0x50f1('0x13')]())if(_0x50f1('0x59')==_0x3b186e[_0x50f1('0x7')]){if(_0x50f1('0x43')==_0x3b186e['name'])for(const _0x10fcf4 of _0x3b186e[_0x50f1('0x5b')][_0x50f1('0x5')][_0x50f1('0x7f')]())_0xbb9692=_0xbb9692||_0x2f2696(_0x10fcf4,_0x167652);else _0x50f1('0x3f')==_0x3b186e[_0x50f1('0x22')]&&(_0xbb9692=_0xbb9692||_0x2f2696(_0x3b186e['position']['nodeAfter'],_0x167652));}return _0xbb9692;});}[_0x50f1('0x5d')](_0x2c9122){return this['_getCoordsForCells'](_0x2c9122[_0x50f1('0x7b')]()[_0x50f1('0xc')](_0x4b7c80=>_0x4b7c80[_0x50f1('0x52')][_0x50f1('0x5')]));}}function se(_0x166a11){return Array[_0x50f1('0x4f')](new Set(_0x166a11)[_0x50f1('0x30')]());}
|
|
23
|
+
const _0x45d0=['order','getAttribute','tablePaste','ELEMENT_TABLE_COLUMN','showSuggestionHighlights','getItems','substr','getCellLocation','enqueueChange','filter','position','isTouching','end','execute','_getSuggestionCoords','deletion','getColumnIndexes','removeClass','data','getRowIndexes','classes','fromRange','getSelectionAffectedTableCells','_splitMarkerName','add','insertTableColumnLeft','type','maxColumn','insertTableRowAbove','low','editor','createTableWalker','insertion','getChangedMarkers','TableEditing','includes','values','insertTableColumnRight','findAncestor','name','addRange','ELEMENT_TABLE','accept','last','element','get','cell','selectTableRow','colspan','options','batch','rowspan','$textProxy','setSelection','_setupColumnsRowsFixing','isEqual','map','afterInit','tableRow','getSuggestion','getRanges','_descriptionFactory','toViewElement','rootName','_suggestionFactory','ELEMENT_TABLE_ROW','getContainedElement','registerDescriptionCallback','maxRow','minRow','removeTableColumn','join','has','markMultiRangeInsertion','discard','span','registerElementLabel','tableColumn','downcastDispatcher','$graveyard','createRangeOn','tableCell','document','selectTableColumn','addClass','nodeAfter','left','*Remove:*\x20%0','writer','subType','minColumn','plugins','registerCustomCallback','addMarker:suggestion','detach','length','root','from','removeTableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','_getCoordsForCells','TrackChangesEditing','getChildren','ELEMENT_TABLE_ROW_WITH_TEXT','_tableSuggestions','_acceptFormatSuggestionCallbackFactory','*Insert:*\x20%0','getFirstRange','forceValue','refresh','_tablePostFixingSubtypes','first','model','markMultiRangeDeletion','selection','locale','min','insertTableRowBelow','commands','enableCommand','ELEMENT_TABLE_WITH_TEXT','above','differ','isIntersectingWithRange','createRangeIn','hasAttribute','start','MIN_SAFE_INTEGER','table','TableUtils','MAX_SAFE_INTEGER','item','change','insertTable','highest','registerPostFixer','push','oldRange','max','toLowerCase'];(function(_0x4cb178,_0x45d00d){const _0x518830=function(_0x243942){while(--_0x243942){_0x4cb178['push'](_0x4cb178['shift']());}};_0x518830(++_0x45d00d);}(_0x45d0,0x1a6));const _0x5188=function(_0x4cb178,_0x45d00d){_0x4cb178=_0x4cb178-0x0;let _0x518830=_0x45d0[_0x4cb178];return _0x518830;};import{Plugin as _0x2db0dd}from'ckeditor5/src/core';import{LiveRange as _0x2e3020}from'ckeditor5/src/engine';import{setHighlightHandling as _0x448d39}from'ckeditor5/src/widget';import{getTranslation as _0x1a493a}from'../utils/common-translations';export default class mt extends _0x2db0dd{constructor(_0x287f5b){super(_0x287f5b),this[_0x5188('0x6c')]=[_0x5188('0x38'),'tableColumn'],this[_0x5188('0x66')]=new Set();}[_0x5188('0x37')](){const _0x1c5cbd=this[_0x5188('0x1c')],_0x2caf72=_0x1c5cbd['model'][_0x5188('0x50')][_0x5188('0x70')];if(!_0x1c5cbd[_0x5188('0x59')][_0x5188('0x46')](_0x5188('0x20')))return;const _0x48d636=_0x1c5cbd[_0x5188('0x71')],_0x2a765a=_0x1c5cbd['plugins'][_0x5188('0x2b')]('TrackChangesEditing'),_0x2ccda5=_0x1c5cbd['plugins'][_0x5188('0x2b')](_0x5188('0x7f'));_0x2a765a[_0x5188('0x3b')][_0x5188('0x4a')](_0x5188('0x7e'),_0x4e445e=>_0x1a493a(_0x48d636,_0x5188('0x27'),_0x4e445e)),this[_0x5188('0x34')](),_0x2a765a[_0x5188('0x75')](_0x5188('0x83')),_0x2a765a['enableCommand'](_0x5188('0x2d')),_0x2a765a[_0x5188('0x75')](_0x5188('0x51'));for(const _0x1f884e of[_0x5188('0x1a'),_0x5188('0x73')]){const _0x4a2eee=_0x1c5cbd['commands'][_0x5188('0x2b')](_0x1f884e);_0x2a765a[_0x5188('0x75')](_0x1f884e,_0x477e75=>{_0x1c5cbd['model'][_0x5188('0x82')](_0x13a03a=>{_0x477e75();const _0xfb1b56=_0x5188('0x77')===_0x4a2eee[_0x5188('0x8a')],_0xa7d4=_0x2ccda5[_0x5188('0x14')](_0x2caf72),_0xd36807=_0x2ccda5[_0x5188('0x11')](_0xa7d4),_0x21bfcc=_0xfb1b56?_0xd36807[_0x5188('0x6d')]-0x1:_0xd36807[_0x5188('0x29')]+0x1,_0x428df6=_0xa7d4[0x0][_0x5188('0x24')](_0x5188('0x7e')),_0x525843=_0x2ccda5[_0x5188('0x1d')](_0x428df6,{'startRow':_0x21bfcc,'endRow':_0x21bfcc}),_0x5592ec=Array['from'](_0x525843)[_0x5188('0x36')](_0x197640=>_0x13a03a['createRangeOn'](_0x197640[_0x5188('0x2c')]));_0x2a765a[_0x5188('0x47')](_0x5592ec,_0x5188('0x38'));});});}for(const _0x2aa07d of[_0x5188('0x17'),_0x5188('0x23')]){const _0xc2ee2f=_0x1c5cbd[_0x5188('0x74')][_0x5188('0x2b')](_0x2aa07d);_0x2a765a[_0x5188('0x75')](_0x2aa07d,_0x746230=>{_0x1c5cbd[_0x5188('0x6e')][_0x5188('0x82')](_0x50f173=>{_0x746230();const _0x2ed771=_0x5188('0x54')===_0xc2ee2f[_0x5188('0x8a')],_0x1c066f=_0x2ccda5[_0x5188('0x14')](_0x2caf72),_0x45b0ff=_0x2ccda5['getColumnIndexes'](_0x1c066f),_0x19074f=_0x2ed771?_0x45b0ff['first']-0x1:_0x45b0ff[_0x5188('0x29')]+0x1,_0x59db38=_0x1c066f[0x0][_0x5188('0x24')](_0x5188('0x7e')),_0x166ccf=_0x2ccda5[_0x5188('0x1d')](_0x59db38,{'startRow':0x0,'column':_0x19074f,'includeAllSlots':!0x1}),_0x2aebf3=Array['from'](_0x166ccf)['map'](_0x14e696=>_0x50f173[_0x5188('0x4e')](_0x14e696[_0x5188('0x2c')]));_0x2a765a[_0x5188('0x47')](_0x2aebf3,'tableColumn');});});}for(const _0x3cfc36 of['removeTableRow','removeTableColumn']){const _0x197b17=_0x3cfc36['substr'](0xb),_0x217e01=_0x197b17[_0x5188('0x89')](),_0x2ea862=_0x217e01[_0x5188('0x4')](0x0,0x3)+_0x5188('0x49'),_0x3805f8='table'+_0x197b17,_0x33f28c='min'+_0x197b17,_0x482214='max'+_0x197b17;_0x2a765a[_0x5188('0x75')](_0x3cfc36,()=>{_0x1c5cbd[_0x5188('0x6e')][_0x5188('0x82')](_0x304062=>{const _0x53842b=_0x2ccda5[_0x5188('0x14')](_0x2caf72),_0x6784fc=_0x53842b[0x0][_0x5188('0x24')](_0x5188('0x7e'));let _0x1960f8;if(_0x5188('0x60')==_0x3cfc36){const _0x3dc020=_0x2ccda5[_0x5188('0x11')](_0x53842b);_0x1960f8={'startRow':_0x3dc020[_0x5188('0x6d')],'endRow':_0x3dc020[_0x5188('0x29')],'includeAllSlots':!0x0};}else{const _0x11c083=_0x2ccda5[_0x5188('0xe')](_0x53842b);_0x1960f8={'startColumn':_0x11c083['first'],'endColumn':_0x11c083[_0x5188('0x29')],'includeAllSlots':!0x0};}const _0x8f0efd=_0x2ccda5['createTableWalker'](_0x6784fc,_0x1960f8),_0x31f120=Array[_0x5188('0x5f')](_0x8f0efd)[_0x5188('0x36')](({cell:_0x216f8b})=>_0x216f8b),_0x101d0b=se(_0x31f120['filter'](_0x35cb58=>_0x35cb58['hasAttribute'](_0x2ea862))),_0x32b093=se(_0x31f120[_0x5188('0x7')](_0x51b204=>!_0x51b204[_0x5188('0x7b')](_0x2ea862)))[_0x5188('0x36')](_0x4f8f5a=>_0x304062['createRangeOn'](_0x4f8f5a)),_0x56f5bf=_0x2a765a[_0x5188('0x6f')](_0x32b093,_0x3805f8);if(_0x56f5bf&&(_0x5188('0x38')==_0x56f5bf[_0x5188('0x57')]||'tableColumn'==_0x56f5bf[_0x5188('0x57')])){const _0x54cd8d=this[_0x5188('0xc')](_0x56f5bf);for(const _0x32dd3e of _0x101d0b){const _0x158a23=_0x304062[_0x5188('0x4e')](_0x32dd3e),_0x4aeb07=_0x2ccda5[_0x5188('0x5')](_0x32dd3e),_0xcc964a=_0x32dd3e[_0x5188('0x8b')](_0x2ea862)-0x1,_0x9eb71b=_0x54cd8d[_0x33f28c],_0x346f98=_0x54cd8d[_0x482214];_0x9eb71b<=_0x4aeb07[_0x217e01]&&_0x4aeb07[_0x217e01]+_0xcc964a<=_0x346f98&&_0x56f5bf[_0x5188('0x26')](_0x158a23);}}});});}function _0x46a571(_0x3b8827){const _0x183769=Array[_0x5188('0x5f')](_0x2caf72[_0x5188('0x3a')]())[_0x5188('0x36')](_0x410bba=>_0x2e3020['fromRange'](_0x410bba));_0x1c5cbd[_0x5188('0x6e')][_0x5188('0x82')](_0x585f61=>{const _0x44632d=_0x585f61[_0x5188('0x30')];_0x3b8827=_0x3b8827['filter'](_0x15c234=>_0x5188('0x4d')!=_0x15c234['root']['rootName']),_0x585f61['setSelection'](_0x3b8827),_0x1c5cbd[_0x5188('0x74')][_0x5188('0x2b')](_0x5188('0x60'))[_0x5188('0x6b')](),_0x1c5cbd[_0x5188('0xb')](_0x5188('0x60'),{'forceDefaultExecution':!0x0}),_0x1c5cbd[_0x5188('0x6e')][_0x5188('0x6')](()=>{_0x1c5cbd['model'][_0x5188('0x6')](_0x44632d,_0x3f01d2=>{const _0x3d5571=_0x183769['filter'](_0x52196f=>_0x5188('0x4d')!=_0x52196f[_0x5188('0x5e')][_0x5188('0x3d')]);_0x3d5571['length']>0x0&&_0x3f01d2[_0x5188('0x33')](_0x3d5571);for(const _0x3efab3 of _0x183769)_0x3efab3[_0x5188('0x5c')]();});});});}function _0x6151a6(_0x53bd82){_0x1c5cbd[_0x5188('0x6e')][_0x5188('0x82')](_0x2f14d4=>{const _0x5cfc0b=Array[_0x5188('0x5f')](_0x2caf72['getRanges']())[_0x5188('0x36')](_0x3fcb6d=>_0x2e3020[_0x5188('0x13')](_0x3fcb6d)),_0x39b0a0=[];for(const _0x2351f9 of _0x53bd82)for(const _0x13cad3 of _0x2351f9[_0x5188('0x3')]({'shallow':!0x0}))_0x39b0a0['push'](_0x13cad3);for(const _0x1aa421 of _0x39b0a0)_0x5188('0x4d')!=_0x1aa421['root'][_0x5188('0x3d')]&&(_0x2f14d4[_0x5188('0x33')](_0x2f14d4['createPositionAt'](_0x1aa421,0x0)),_0x1c5cbd[_0x5188('0x74')][_0x5188('0x2b')](_0x5188('0x44'))[_0x5188('0x6b')](),_0x1c5cbd['execute'](_0x5188('0x44'),{'forceDefaultExecution':!0x0}));const _0x194fae=_0x5cfc0b[_0x5188('0x7')](_0x4d6cb5=>_0x5188('0x4d')!=_0x4d6cb5[_0x5188('0x5e')]['rootName']);_0x194fae['length']>0x0&&_0x2f14d4[_0x5188('0x33')](_0x194fae);for(const _0x37c0af of _0x5cfc0b)_0x37c0af[_0x5188('0x5c')]();});}function _0x39bfef(_0x5361a1,_0x1472f4){return _0x1472f4['every'](_0x413ed5=>_0x5361a1['some'](_0x475239=>_0x475239[_0x5188('0xa')][_0x5188('0x35')](_0x413ed5[_0x5188('0x7c')])||_0x413ed5[_0x5188('0xa')][_0x5188('0x35')](_0x475239['start'])));}function _0x121928(_0xd33be9,_0x215d74){return _0xd33be9['some'](_0x1fea4d=>_0x215d74['some'](_0x4d69f7=>_0x1fea4d[_0x5188('0xa')][_0x5188('0x9')](_0x4d69f7[_0x5188('0x7c')])));}_0x1c5cbd[_0x5188('0x10')][_0x5188('0x4c')]['on'](_0x5188('0x5b'),(_0x258b3e,_0xa1fcd0,_0x50184e)=>{if(!_0x50184e[_0x5188('0x2f')][_0x5188('0x2')])return;const _0x4ef19c=_0xa1fcd0[_0x5188('0x81')];if(!_0x4ef19c)return;const _0x76f2da=_0x50184e['mapper'][_0x5188('0x3c')](_0x4ef19c);function _0xa1f48e(_0xea2f4d){return Array['isArray'](_0xea2f4d)?_0xea2f4d:[_0xea2f4d];}_0x76f2da&&'tableCell'===_0x4ef19c[_0x5188('0x25')]&&_0x448d39(_0x76f2da,_0x50184e[_0x5188('0x56')],(_0x5dbb95,_0x5638d1,_0x51398f)=>_0x51398f[_0x5188('0x52')](_0xa1f48e(_0x5638d1['classes']),_0x5dbb95),(_0x2e938c,_0xce0e5b,_0x4a040c)=>_0x4a040c[_0x5188('0xf')](_0xa1f48e(_0xce0e5b[_0x5188('0x12')]),_0x2e938c));},{'priority':_0x5188('0x84')}),_0x2a765a[_0x5188('0x3b')][_0x5188('0x41')](_0x3562ff=>{if(_0x5188('0x1e')!=_0x3562ff[_0x5188('0x18')]&&'deletion'!=_0x3562ff[_0x5188('0x18')])return;const _0x1dad6a=_0x3562ff[_0x5188('0x40')]();if(null!=_0x1dad6a&&_0x1dad6a['is'](_0x5188('0x2a'),_0x5188('0x7e'))){if(_0x5188('0x1e')==_0x3562ff['type']){const _0x35cf4a=_0x3562ff['getItems']()[_0x5188('0x7')](_0x36b01f=>_0x36b01f['is']('$textProxy'))['map'](_0xc80299=>_0xc80299[_0x5188('0x10')]);if(_0x35cf4a[_0x5188('0x5d')])return{'type':'insertion','content':_0x1a493a(_0x48d636,'*Insert:*\x20%0',_0x1a493a(_0x48d636,_0x5188('0x76'),'\x22'+_0x35cf4a[_0x5188('0x45')]('\x20')+'\x22'))};}if(_0x5188('0xd')==_0x3562ff['type']){const _0xc057cd=_0x3562ff['getItems']()[_0x5188('0x7')](_0x560a45=>_0x560a45['is'](_0x5188('0x32')))[_0x5188('0x36')](_0x74eeda=>_0x74eeda[_0x5188('0x10')]);if(_0xc057cd[_0x5188('0x5d')])return{'type':'deletion','content':_0x1a493a(_0x48d636,_0x5188('0x55'),_0x1a493a(_0x48d636,_0x5188('0x76'),'\x22'+_0xc057cd['join']('\x20')+'\x22'))};}}}),_0x2a765a[_0x5188('0x3b')][_0x5188('0x41')](_0x55c45a=>{if(_0x5188('0x38')==_0x55c45a[_0x5188('0x57')]){const _0x3dda72=_0x55c45a[_0x5188('0x3')]()['filter'](_0x51e07b=>_0x51e07b['is'](_0x5188('0x32')))['map'](_0x5a96a9=>_0x5a96a9['data']),_0x2e754e=this[_0x5188('0xc')](_0x55c45a),_0x50de73=_0x2e754e[_0x5188('0x42')]-_0x2e754e[_0x5188('0x43')]+0x1;if(_0x5188('0x1e')==_0x55c45a[_0x5188('0x18')])return _0x3dda72[_0x5188('0x5d')]?{'type':_0x5188('0x1e'),'content':_0x1a493a(_0x48d636,_0x5188('0x68'),_0x1a493a(_0x48d636,_0x5188('0x65'),[_0x50de73,'\x22'+_0x3dda72[_0x5188('0x45')]('\x20')+'\x22']))}:{'type':_0x5188('0x1e'),'content':_0x1a493a(_0x48d636,_0x5188('0x68'),_0x1a493a(_0x48d636,'ELEMENT_TABLE_ROW',_0x50de73))};if(_0x5188('0xd')==_0x55c45a[_0x5188('0x18')])return _0x3dda72[_0x5188('0x5d')]?{'type':_0x5188('0xd'),'content':_0x1a493a(_0x48d636,_0x5188('0x55'),_0x1a493a(_0x48d636,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50de73,'\x22'+_0x3dda72[_0x5188('0x45')]('\x20')+'\x22']))}:{'type':_0x5188('0xd'),'content':_0x1a493a(_0x48d636,_0x5188('0x55'),_0x1a493a(_0x48d636,_0x5188('0x3f'),_0x50de73))};}if(_0x5188('0x4b')==_0x55c45a[_0x5188('0x57')]){const _0x3eef94=_0x55c45a[_0x5188('0x3')]()[_0x5188('0x7')](_0x33c553=>_0x33c553['is'](_0x5188('0x32')))[_0x5188('0x36')](_0x171f13=>_0x171f13['data']),_0x4a9784=this[_0x5188('0xc')](_0x55c45a),_0x2c0900=_0x4a9784[_0x5188('0x19')]-_0x4a9784[_0x5188('0x58')]+0x1;if(_0x5188('0x1e')==_0x55c45a[_0x5188('0x18')])return _0x3eef94[_0x5188('0x5d')]?{'type':_0x5188('0x1e'),'content':_0x1a493a(_0x48d636,_0x5188('0x68'),_0x1a493a(_0x48d636,_0x5188('0x61'),[_0x2c0900,'\x22'+_0x3eef94['join']('\x20')+'\x22']))}:{'type':_0x5188('0x1e'),'content':_0x1a493a(_0x48d636,_0x5188('0x68'),_0x1a493a(_0x48d636,_0x5188('0x1'),_0x2c0900))};if(_0x5188('0xd')==_0x55c45a['type'])return _0x3eef94[_0x5188('0x5d')]?{'type':'deletion','content':_0x1a493a(_0x48d636,_0x5188('0x55'),_0x1a493a(_0x48d636,_0x5188('0x61'),[_0x2c0900,'\x22'+_0x3eef94[_0x5188('0x45')]('\x20')+'\x22']))}:{'type':_0x5188('0xd'),'content':_0x1a493a(_0x48d636,_0x5188('0x55'),_0x1a493a(_0x48d636,_0x5188('0x1'),_0x2c0900))};}}),_0x2a765a['_suggestionFactory']['registerCustomCallback'](_0x5188('0x1e'),_0x5188('0x38'),_0x5188('0x48'),_0x46a571),_0x2a765a[_0x5188('0x3e')][_0x5188('0x5a')](_0x5188('0xd'),'tableRow',_0x5188('0x28'),_0x46a571),_0x2a765a[_0x5188('0x3e')][_0x5188('0x5a')](_0x5188('0x1e'),'tableColumn','discard',_0x6151a6),_0x2a765a[_0x5188('0x3e')][_0x5188('0x5a')]('deletion','tableColumn',_0x5188('0x28'),_0x6151a6),_0x2a765a[_0x5188('0x3e')][_0x5188('0x5a')]('insertion','tableColumn',_0x5188('0x45'),_0x39bfef),_0x2a765a[_0x5188('0x3e')][_0x5188('0x5a')]('deletion',_0x5188('0x4b'),_0x5188('0x45'),_0x39bfef),_0x2a765a[_0x5188('0x3e')][_0x5188('0x5a')](_0x5188('0x1e'),_0x5188('0x38'),_0x5188('0x45'),_0x121928),_0x2a765a[_0x5188('0x3e')]['registerCustomCallback'](_0x5188('0xd'),_0x5188('0x38'),'join',_0x121928);}[_0x5188('0x67')](){const _0x385f9b=this[_0x5188('0x1c')],_0x51fcd1=_0x385f9b['model']['document']['selection'];return(_0x442a18,_0x24a4f7)=>{_0x385f9b['model'][_0x5188('0x82')](_0x20c360=>{const {commandName:_0x3017dd,commandParams:_0x414127}=_0x24a4f7;let _0xe346b9=_0x442a18[0x0]['end']['nodeBefore'];_0x414127&&_0x414127[0x0]&&!0x1===_0x414127[0x0][_0x5188('0x6a')]&&(_0xe346b9=_0x442a18[0x0]['start'][_0x5188('0x53')]);const _0x4f3d86=_0x20c360[_0x5188('0x7a')](_0xe346b9);if('$graveyard'==_0x4f3d86[_0x5188('0x5e')][_0x5188('0x3d')])return;const _0x313ed9=Array[_0x5188('0x5f')](_0x51fcd1[_0x5188('0x3a')]())[_0x5188('0x36')](_0x45f0fc=>_0x2e3020['fromRange'](_0x45f0fc));_0x20c360[_0x5188('0x33')](_0x4f3d86),_0x385f9b[_0x5188('0x74')][_0x5188('0x2b')](_0x3017dd)[_0x5188('0x6b')](),_0x414127[_0x5188('0x86')]({'forceDefaultExecution':!0x0}),_0x385f9b[_0x5188('0xb')](_0x3017dd,..._0x414127);const _0x13118a=_0x313ed9[_0x5188('0x7')](_0x1da9ab=>_0x5188('0x4d')!=_0x1da9ab['root'][_0x5188('0x3d')]);_0x13118a[_0x5188('0x5d')]>0x0&&_0x20c360[_0x5188('0x33')](_0x13118a);for(const _0x245be7 of _0x313ed9)_0x245be7[_0x5188('0x5c')]();});};}[_0x5188('0x62')](_0x232cbf){const _0x4016d7=this[_0x5188('0x1c')][_0x5188('0x59')][_0x5188('0x2b')](_0x5188('0x7f'));let _0x1e49fb=Number[_0x5188('0x80')],_0x1ec6e5=Number['MIN_SAFE_INTEGER'],_0x1b1a40=Number[_0x5188('0x80')],_0x258d2e=Number[_0x5188('0x7d')];for(const _0x298c0e of _0x232cbf){if(_0x5188('0x4d')==_0x298c0e[_0x5188('0x5e')][_0x5188('0x3d')])continue;const {row:_0x41144a,column:_0x46cc3a}=_0x4016d7[_0x5188('0x5')](_0x298c0e),_0x26b540=_0x298c0e[_0x5188('0x7b')]('rowspan')?_0x298c0e[_0x5188('0x8b')](_0x5188('0x31'))-0x1:0x0,_0x39e9ef=_0x298c0e[_0x5188('0x7b')](_0x5188('0x2e'))?_0x298c0e[_0x5188('0x8b')]('colspan')-0x1:0x0;_0x1e49fb=_0x41144a<_0x1e49fb?_0x41144a:_0x1e49fb,_0x1ec6e5=_0x41144a+_0x26b540>_0x1ec6e5?_0x41144a+_0x26b540:_0x1ec6e5,_0x1b1a40=_0x46cc3a<_0x1b1a40?_0x46cc3a:_0x1b1a40,_0x258d2e=_0x46cc3a+_0x39e9ef>_0x258d2e?_0x46cc3a+_0x39e9ef:_0x258d2e;}return{'minRow':_0x1e49fb,'maxRow':_0x1ec6e5,'minColumn':_0x1b1a40,'maxColumn':_0x258d2e};}['_setupColumnsRowsFixing'](){const _0x4713e6=this[_0x5188('0x1c')],_0x4cc42b=_0x4713e6['plugins'][_0x5188('0x2b')](_0x5188('0x63')),_0x1ae292=_0x4713e6['plugins'][_0x5188('0x2b')](_0x5188('0x7f'));_0x4713e6[_0x5188('0x6e')][_0x5188('0x50')]['on']('change:data',()=>{const _0xe1cfc4=Array[_0x5188('0x5f')](_0x4713e6[_0x5188('0x6e')]['document'][_0x5188('0x78')][_0x5188('0x1f')]());for(const {name:_0x5adf10,data:_0x5e5174}of _0xe1cfc4){const {group:_0x2f7f0c,id:_0x3415b3,subType:_0x37df4a}=_0x4cc42b[_0x5188('0x15')](_0x5adf10);if('suggestion'!=_0x2f7f0c)continue;if(null!=_0x5e5174[_0x5188('0x87')])continue;const _0x1a9fdf=_0x4cc42b[_0x5188('0x39')](_0x3415b3);this['_tablePostFixingSubtypes'][_0x5188('0x21')](_0x37df4a)&&this[_0x5188('0x66')][_0x5188('0x16')](_0x1a9fdf);}},{'priority':_0x5188('0x1b')});const _0xc4aa38=(_0x12f16c,_0x11ca9f)=>{let _0x430359=!0x1;const _0x13284c=_0x11ca9f['createRangeOn'](_0x12f16c),_0x99e3b4=_0x12f16c[_0x5188('0x24')](_0x5188('0x7e')),_0x42d344=_0x1ae292['getCellLocation'](_0x12f16c);for(const _0x463d84 of this[_0x5188('0x66')]){const _0x1be53f=_0x463d84[_0x5188('0x57')],_0x337027=_0x1be53f['startsWith'](_0x5188('0x0')),_0x534d69=_0x1be53f[_0x5188('0x4')](_0x337027?0xa:0x5),_0xc839f8=_0x534d69[_0x5188('0x89')](),_0x43696d=_0xc839f8[_0x5188('0x4')](0x0,0x3)+_0x5188('0x49'),_0x27e24b=_0x5188('0x72')+_0x534d69,_0xf76421=_0x5188('0x88')+_0x534d69;if(!_0x463d84['isInContent'])continue;if(_0x99e3b4!=_0x463d84[_0x5188('0x69')]()[_0x5188('0x7c')][_0x5188('0x24')]('table'))continue;if(_0x463d84[_0x5188('0x79')](_0x13284c))continue;const _0x39e294=_0x12f16c[_0x5188('0x7b')](_0x43696d)?_0x12f16c[_0x5188('0x8b')](_0x43696d)-0x1:0x0,_0x44ec96=this['_getSuggestionCoords'](_0x463d84),_0x1f5a1b=_0x44ec96[_0x27e24b],_0xb9afd9=_0x44ec96[_0xf76421];_0x1f5a1b<=_0x42d344[_0xc839f8]&&_0x42d344[_0xc839f8]+_0x39e294<=_0xb9afd9&&(_0x463d84['addRange'](_0x13284c),_0x430359=!0x0);}return _0x430359;};_0x4713e6[_0x5188('0x6e')][_0x5188('0x50')][_0x5188('0x85')](_0x53de62=>{let _0x4cb84d=!0x1;for(const _0x2f0603 of _0x4713e6[_0x5188('0x6e')]['document']['differ']['getChanges']())if('insert'==_0x2f0603[_0x5188('0x18')]){if(_0x5188('0x38')==_0x2f0603[_0x5188('0x25')])for(const _0x27396b of _0x2f0603[_0x5188('0x8')][_0x5188('0x53')][_0x5188('0x64')]())_0x4cb84d=_0x4cb84d||_0xc4aa38(_0x27396b,_0x53de62);else _0x5188('0x4f')==_0x2f0603[_0x5188('0x25')]&&(_0x4cb84d=_0x4cb84d||_0xc4aa38(_0x2f0603[_0x5188('0x8')][_0x5188('0x53')],_0x53de62));}return _0x4cb84d;});}[_0x5188('0xc')](_0xaa34af){return this[_0x5188('0x62')](_0xaa34af[_0x5188('0x3a')]()[_0x5188('0x36')](_0x302f8b=>_0x302f8b[_0x5188('0x7c')]['nodeAfter']));}}function se(_0xfffe43){return Array[_0x5188('0x5f')](new Set(_0xfffe43)[_0x5188('0x22')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a0a=['editor','afterInit','plugins','TableCaptionEditing','enableCommand','toggleTableCaption','has','requires','get','TrackChangesEditing'];(function(_0x590872,_0x2a0a35){const _0x2ea949=function(_0x7d046e){while(--_0x7d046e){_0x590872['push'](_0x590872['shift']());}};_0x2ea949(++_0x2a0a35);}(_0x2a0a,0x1da));const _0x2ea9=function(_0x590872,_0x2a0a35){_0x590872=_0x590872-0x0;let _0x2ea949=_0x2a0a[_0x590872];return _0x2ea949;};import{Plugin as _0x564395}from'ckeditor5/src/core';import _0x428701 from'./table';export default class vt extends _0x564395{static get[_0x2ea9('0x3')](){return[_0x428701];}[_0x2ea9('0x7')](){const _0x47f3bb=this[_0x2ea9('0x6')];if(!_0x47f3bb[_0x2ea9('0x8')][_0x2ea9('0x2')](_0x2ea9('0x9')))return;_0x47f3bb[_0x2ea9('0x8')][_0x2ea9('0x4')](_0x2ea9('0x5'))[_0x2ea9('0x0')](_0x2ea9('0x1'));}}
|