@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230818.1 → 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 _0x16a2=['selectTableRow','add','ELEMENT_TABLE_COLUMN','insertTableRowAbove','item','setSelection','locale','_getSuggestionCoords','enableCommand','markMultiRangeInsertion','from','removeTableColumn','plugins','$graveyard','ELEMENT_TABLE_WITH_TEXT','length','includes','createRangeOn','data','oldRange','hasAttribute','ELEMENT_TABLE_COLUMN_WITH_TEXT','subType','registerCustomCallback','_splitMarkerName','editor','join','push','getFirstRange','_setupColumnsRowsFixing','nodeBefore','getItems','MIN_SAFE_INTEGER','$textProxy','tableColumn','table','createTableWalker','registerDescriptionCallback','findAncestor','removeTableRow','highest','root','some','addRange','nodeAfter','last','showSuggestionHighlights','options','map','rootName','deletion','_tableSuggestions','values','TableEditing','markMultiRangeDeletion','TableUtils','document','getRanges','_suggestionFactory','maxColumn','filter','getAttribute','getRowIndexes','getColumnIndexes','classes','ELEMENT_TABLE_ROW','start','discard','getChanges','isArray','getSuggestion','TrackChangesEditing','getSelectionAffectedTableCells','*Insert:*\x20%0','toLowerCase','removeClass','maxRow','first','suggestion','differ','model','commands','max','change:data','above','accept','low','tableCell','_descriptionFactory','enqueueChange','createPositionAt','ELEMENT_TABLE_ROW_WITH_TEXT','getContainedElement','forceValue','ELEMENT_TABLE','selectTableColumn','position','batch','insertTableRowBelow','getChangedMarkers','element','MAX_SAFE_INTEGER','minColumn','refresh','isInContent','downcastDispatcher','substr','order','get','colspan','isEqual','min','name','type','_acceptFormatSuggestionCallbackFactory','cell','_getCoordsForCells','has','detach','startsWith','createRangeIn','tableRow','getCellLocation','insertion','span','end','selection','minRow','toViewElement','*Remove:*\x20%0','execute','_tablePostFixingSubtypes','insertTable','change','writer'];(function(_0x55e7da,_0x16a237){const _0x4f5be5=function(_0x5912a9){while(--_0x5912a9){_0x55e7da['push'](_0x55e7da['shift']());}};_0x4f5be5(++_0x16a237);}(_0x16a2,0x1cd));const _0x4f5b=function(_0x55e7da,_0x16a237){_0x55e7da=_0x55e7da-0x0;let _0x4f5be5=_0x16a2[_0x55e7da];return _0x4f5be5;};import{Plugin as _0x17df08}from'ckeditor5/src/core';import{LiveRange as _0x2ac8e6}from'ckeditor5/src/engine';import{setHighlightHandling as _0xc00eef}from'ckeditor5/src/widget';import{getTranslation as _0xe11d2b}from'../utils/common-translations';export default class mt extends _0x17df08{constructor(_0xbfc8f1){super(_0xbfc8f1),this['_tablePostFixingSubtypes']=[_0x4f5b('0x41'),_0x4f5b('0x71')],this[_0x4f5b('0x82')]=new Set();}['afterInit'](){const _0x19e152=this[_0x4f5b('0x68')],_0x47f1d3=_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x0')][_0x4f5b('0x46')];if(!_0x19e152[_0x4f5b('0x5b')][_0x4f5b('0x3d')](_0x4f5b('0x84')))return;const _0x15055a=_0x19e152[_0x4f5b('0x55')],_0x3953fe=_0x19e152['plugins'][_0x4f5b('0x34')]('TrackChangesEditing'),_0x364f2a=_0x19e152[_0x4f5b('0x5b')]['get'](_0x4f5b('0x86'));_0x3953fe[_0x4f5b('0x20')]['registerElementLabel'](_0x4f5b('0x72'),_0x5c4b31=>_0xe11d2b(_0x15055a,_0x4f5b('0x26'),_0x5c4b31)),this[_0x4f5b('0x6c')](),_0x3953fe[_0x4f5b('0x57')](_0x4f5b('0x4c')),_0x3953fe[_0x4f5b('0x57')](_0x4f5b('0x4f')),_0x3953fe[_0x4f5b('0x57')](_0x4f5b('0x27'));for(const _0x5eebe2 of[_0x4f5b('0x52'),_0x4f5b('0x2a')]){const _0x85bc91=_0x19e152[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x5eebe2);_0x3953fe[_0x4f5b('0x57')](_0x5eebe2,_0x36ea75=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x5c87fd=>{_0x36ea75();const _0x35427e=_0x4f5b('0x1c')===_0x85bc91['order'],_0x2a6d2e=_0x364f2a[_0x4f5b('0x10')](_0x47f1d3),_0x4981e1=_0x364f2a[_0x4f5b('0x6')](_0x2a6d2e),_0x13d31a=_0x35427e?_0x4981e1[_0x4f5b('0x15')]-0x1:_0x4981e1[_0x4f5b('0x7c')]+0x1,_0xb450d5=_0x2a6d2e[0x0][_0x4f5b('0x75')](_0x4f5b('0x72')),_0x14d47e=_0x364f2a[_0x4f5b('0x73')](_0xb450d5,{'startRow':_0x13d31a,'endRow':_0x13d31a}),_0x2afa7f=Array[_0x4f5b('0x59')](_0x14d47e)[_0x4f5b('0x7f')](_0x1c2fb5=>_0x5c87fd['createRangeOn'](_0x1c2fb5[_0x4f5b('0x3b')]));_0x3953fe[_0x4f5b('0x58')](_0x2afa7f,_0x4f5b('0x41'));});});}for(const _0x1a7107 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e8ccc=_0x19e152[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x1a7107);_0x3953fe[_0x4f5b('0x57')](_0x1a7107,_0xc790aa=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x557dba=>{_0xc790aa();const _0x47098a='left'===_0x4e8ccc[_0x4f5b('0x33')],_0x562d83=_0x364f2a[_0x4f5b('0x10')](_0x47f1d3),_0x8dc9ba=_0x364f2a[_0x4f5b('0x7')](_0x562d83),_0x52fdbd=_0x47098a?_0x8dc9ba[_0x4f5b('0x15')]-0x1:_0x8dc9ba[_0x4f5b('0x7c')]+0x1,_0x5dd7ec=_0x562d83[0x0]['findAncestor'](_0x4f5b('0x72')),_0x56acb6=_0x364f2a[_0x4f5b('0x73')](_0x5dd7ec,{'startRow':0x0,'column':_0x52fdbd,'includeAllSlots':!0x1}),_0x22d96e=Array[_0x4f5b('0x59')](_0x56acb6)[_0x4f5b('0x7f')](_0x2d2377=>_0x557dba[_0x4f5b('0x60')](_0x2d2377['cell']));_0x3953fe[_0x4f5b('0x58')](_0x22d96e,_0x4f5b('0x71'));});});}for(const _0x284f38 of[_0x4f5b('0x76'),_0x4f5b('0x5a')]){const _0x13089d=_0x284f38[_0x4f5b('0x32')](0xb),_0x4cbbc9=_0x13089d[_0x4f5b('0x12')](),_0x1ccbf2=_0x4cbbc9[_0x4f5b('0x32')](0x0,0x3)+_0x4f5b('0x44'),_0x334e09=_0x4f5b('0x72')+_0x13089d,_0x2c2afe=_0x4f5b('0x37')+_0x13089d,_0x3c2eb4=_0x4f5b('0x1a')+_0x13089d;_0x3953fe['enableCommand'](_0x284f38,()=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x45dced=>{const _0x5660be=_0x364f2a[_0x4f5b('0x10')](_0x47f1d3),_0xa332f1=_0x5660be[0x0][_0x4f5b('0x75')]('table');let _0x4b2aed;if(_0x4f5b('0x76')==_0x284f38){const _0xc64746=_0x364f2a[_0x4f5b('0x6')](_0x5660be);_0x4b2aed={'startRow':_0xc64746['first'],'endRow':_0xc64746[_0x4f5b('0x7c')],'includeAllSlots':!0x0};}else{const _0x518273=_0x364f2a['getColumnIndexes'](_0x5660be);_0x4b2aed={'startColumn':_0x518273[_0x4f5b('0x15')],'endColumn':_0x518273[_0x4f5b('0x7c')],'includeAllSlots':!0x0};}const _0x2d674d=_0x364f2a[_0x4f5b('0x73')](_0xa332f1,_0x4b2aed),_0xdc802f=Array[_0x4f5b('0x59')](_0x2d674d)[_0x4f5b('0x7f')](({cell:_0x13db32})=>_0x13db32),_0x289daf=se(_0xdc802f[_0x4f5b('0x4')](_0xc450b3=>_0xc450b3[_0x4f5b('0x63')](_0x1ccbf2))),_0x3daee8=se(_0xdc802f[_0x4f5b('0x4')](_0x5b2954=>!_0x5b2954[_0x4f5b('0x63')](_0x1ccbf2)))['map'](_0x56cf88=>_0x45dced[_0x4f5b('0x60')](_0x56cf88)),_0x4358a9=_0x3953fe[_0x4f5b('0x85')](_0x3daee8,_0x334e09);if(_0x4358a9&&('tableRow'==_0x4358a9['subType']||'tableColumn'==_0x4358a9['subType'])){const _0x48f1cd=this['_getSuggestionCoords'](_0x4358a9);for(const _0x1f8fbb of _0x289daf){const _0x17b8c1=_0x45dced['createRangeOn'](_0x1f8fbb),_0x2a5656=_0x364f2a['getCellLocation'](_0x1f8fbb),_0x28d78c=_0x1f8fbb[_0x4f5b('0x5')](_0x1ccbf2)-0x1,_0x792b87=_0x48f1cd[_0x2c2afe],_0x4b9c1b=_0x48f1cd[_0x3c2eb4];_0x792b87<=_0x2a5656[_0x4cbbc9]&&_0x2a5656[_0x4cbbc9]+_0x28d78c<=_0x4b9c1b&&_0x4358a9['addRange'](_0x17b8c1);}}});});}function _0xf6a9be(_0xed8103){const _0x1bd08e=Array['from'](_0x47f1d3['getRanges']())[_0x4f5b('0x7f')](_0x4138a4=>_0x2ac8e6['fromRange'](_0x4138a4));_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x279bab=>{const _0x18f432=_0x279bab[_0x4f5b('0x29')];_0xed8103=_0xed8103['filter'](_0xf6f5e6=>'$graveyard'!=_0xf6f5e6[_0x4f5b('0x78')][_0x4f5b('0x80')]),_0x279bab['setSelection'](_0xed8103),_0x19e152[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x4f5b('0x76'))[_0x4f5b('0x2f')](),_0x19e152[_0x4f5b('0x4a')](_0x4f5b('0x76'),{'forceDefaultExecution':!0x0}),_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x21')](()=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x21')](_0x18f432,_0x207cfa=>{const _0xa7a64c=_0x1bd08e['filter'](_0x57f064=>_0x4f5b('0x5c')!=_0x57f064[_0x4f5b('0x78')][_0x4f5b('0x80')]);_0xa7a64c[_0x4f5b('0x5e')]>0x0&&_0x207cfa[_0x4f5b('0x54')](_0xa7a64c);for(const _0x144e36 of _0x1bd08e)_0x144e36['detach']();});});});}function _0x519627(_0x2273f6){_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x963cf3=>{const _0x4d83f2=Array[_0x4f5b('0x59')](_0x47f1d3[_0x4f5b('0x1')]())['map'](_0x370c73=>_0x2ac8e6['fromRange'](_0x370c73)),_0x18ae18=[];for(const _0x45b883 of _0x2273f6)for(const _0x5b58c8 of _0x45b883[_0x4f5b('0x6e')]({'shallow':!0x0}))_0x18ae18[_0x4f5b('0x6a')](_0x5b58c8);for(const _0x402dfc of _0x18ae18)_0x4f5b('0x5c')!=_0x402dfc['root'][_0x4f5b('0x80')]&&(_0x963cf3[_0x4f5b('0x54')](_0x963cf3[_0x4f5b('0x22')](_0x402dfc,0x0)),_0x19e152['commands'][_0x4f5b('0x34')]('removeTableColumn')[_0x4f5b('0x2f')](),_0x19e152[_0x4f5b('0x4a')](_0x4f5b('0x5a'),{'forceDefaultExecution':!0x0}));const _0x144845=_0x4d83f2[_0x4f5b('0x4')](_0x4b25f5=>_0x4f5b('0x5c')!=_0x4b25f5['root']['rootName']);_0x144845[_0x4f5b('0x5e')]>0x0&&_0x963cf3['setSelection'](_0x144845);for(const _0x87c450 of _0x4d83f2)_0x87c450['detach']();});}function _0x52f624(_0x40b32b,_0x441c0f){return _0x441c0f['every'](_0x17de1e=>_0x40b32b['some'](_0x38dae9=>_0x38dae9[_0x4f5b('0x45')][_0x4f5b('0x36')](_0x17de1e['start'])||_0x17de1e[_0x4f5b('0x45')][_0x4f5b('0x36')](_0x38dae9[_0x4f5b('0xa')])));}function _0x3970d5(_0x58965c,_0x3534b6){return _0x58965c[_0x4f5b('0x79')](_0x181ed0=>_0x3534b6[_0x4f5b('0x79')](_0xd496cc=>_0x181ed0[_0x4f5b('0x45')]['isTouching'](_0xd496cc[_0x4f5b('0xa')])));}_0x19e152[_0x4f5b('0x61')][_0x4f5b('0x31')]['on']('addMarker:suggestion',(_0x323c19,_0x159f69,_0x5e3882)=>{if(!_0x5e3882[_0x4f5b('0x7e')][_0x4f5b('0x7d')])return;const _0x2954f4=_0x159f69[_0x4f5b('0x53')];if(!_0x2954f4)return;const _0x13400d=_0x5e3882['mapper'][_0x4f5b('0x48')](_0x2954f4);function _0xc6c1d7(_0x35f157){return Array[_0x4f5b('0xd')](_0x35f157)?_0x35f157:[_0x35f157];}_0x13400d&&_0x4f5b('0x1f')===_0x2954f4[_0x4f5b('0x38')]&&_0xc00eef(_0x13400d,_0x5e3882[_0x4f5b('0x4e')],(_0x2ae1d0,_0x344f91,_0xe4023c)=>_0xe4023c['addClass'](_0xc6c1d7(_0x344f91[_0x4f5b('0x8')]),_0x2ae1d0),(_0x4b6c97,_0x594dfb,_0x3b4d15)=>_0x3b4d15[_0x4f5b('0x13')](_0xc6c1d7(_0x594dfb[_0x4f5b('0x8')]),_0x4b6c97));},{'priority':_0x4f5b('0x77')}),_0x3953fe[_0x4f5b('0x20')][_0x4f5b('0x74')](_0x5cb04e=>{if(_0x4f5b('0x43')!=_0x5cb04e[_0x4f5b('0x39')]&&_0x4f5b('0x81')!=_0x5cb04e[_0x4f5b('0x39')])return;const _0x17b070=_0x5cb04e[_0x4f5b('0x24')]();if(null!=_0x17b070&&_0x17b070['is'](_0x4f5b('0x2c'),'table')){if(_0x4f5b('0x43')==_0x5cb04e['type']){const _0x36408f=_0x5cb04e[_0x4f5b('0x6e')]()[_0x4f5b('0x4')](_0xa7ddd4=>_0xa7ddd4['is'](_0x4f5b('0x70')))[_0x4f5b('0x7f')](_0x569ff6=>_0x569ff6[_0x4f5b('0x61')]);if(_0x36408f[_0x4f5b('0x5e')])return{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x5d'),'\x22'+_0x36408f[_0x4f5b('0x69')]('\x20')+'\x22'))};}if('deletion'==_0x5cb04e[_0x4f5b('0x39')]){const _0x3e7efb=_0x5cb04e['getItems']()[_0x4f5b('0x4')](_0x405bf0=>_0x405bf0['is'](_0x4f5b('0x70')))[_0x4f5b('0x7f')](_0x20eb16=>_0x20eb16[_0x4f5b('0x61')]);if(_0x3e7efb[_0x4f5b('0x5e')])return{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x49'),_0xe11d2b(_0x15055a,_0x4f5b('0x5d'),'\x22'+_0x3e7efb[_0x4f5b('0x69')]('\x20')+'\x22'))};}}}),_0x3953fe[_0x4f5b('0x20')][_0x4f5b('0x74')](_0x20ebfb=>{if(_0x4f5b('0x41')==_0x20ebfb[_0x4f5b('0x65')]){const _0xde2c2d=_0x20ebfb[_0x4f5b('0x6e')]()[_0x4f5b('0x4')](_0xdc3d5d=>_0xdc3d5d['is'](_0x4f5b('0x70')))['map'](_0x11e4ad=>_0x11e4ad[_0x4f5b('0x61')]),_0xe42b07=this[_0x4f5b('0x56')](_0x20ebfb),_0x164643=_0xe42b07[_0x4f5b('0x14')]-_0xe42b07[_0x4f5b('0x47')]+0x1;if('insertion'==_0x20ebfb[_0x4f5b('0x39')])return _0xde2c2d['length']?{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x23'),[_0x164643,'\x22'+_0xde2c2d[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x9'),_0x164643))};if(_0x4f5b('0x81')==_0x20ebfb[_0x4f5b('0x39')])return _0xde2c2d[_0x4f5b('0x5e')]?{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,'*Remove:*\x20%0',_0xe11d2b(_0x15055a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x164643,'\x22'+_0xde2c2d[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x49'),_0xe11d2b(_0x15055a,_0x4f5b('0x9'),_0x164643))};}if(_0x4f5b('0x71')==_0x20ebfb['subType']){const _0x4504b3=_0x20ebfb['getItems']()['filter'](_0x2c366c=>_0x2c366c['is'](_0x4f5b('0x70')))[_0x4f5b('0x7f')](_0x3b6c05=>_0x3b6c05['data']),_0x154a5d=this[_0x4f5b('0x56')](_0x20ebfb),_0x150452=_0x154a5d[_0x4f5b('0x3')]-_0x154a5d[_0x4f5b('0x2e')]+0x1;if(_0x4f5b('0x43')==_0x20ebfb[_0x4f5b('0x39')])return _0x4504b3[_0x4f5b('0x5e')]?{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x64'),[_0x150452,'\x22'+_0x4504b3[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,'*Insert:*\x20%0',_0xe11d2b(_0x15055a,_0x4f5b('0x51'),_0x150452))};if('deletion'==_0x20ebfb[_0x4f5b('0x39')])return _0x4504b3[_0x4f5b('0x5e')]?{'type':'deletion','content':_0xe11d2b(_0x15055a,'*Remove:*\x20%0',_0xe11d2b(_0x15055a,_0x4f5b('0x64'),[_0x150452,'\x22'+_0x4504b3[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x49'),_0xe11d2b(_0x15055a,_0x4f5b('0x51'),_0x150452))};}}),_0x3953fe[_0x4f5b('0x2')][_0x4f5b('0x66')](_0x4f5b('0x43'),_0x4f5b('0x41'),_0x4f5b('0xb'),_0xf6a9be),_0x3953fe['_suggestionFactory'][_0x4f5b('0x66')](_0x4f5b('0x81'),_0x4f5b('0x41'),_0x4f5b('0x1d'),_0xf6a9be),_0x3953fe[_0x4f5b('0x2')]['registerCustomCallback'](_0x4f5b('0x43'),'tableColumn','discard',_0x519627),_0x3953fe[_0x4f5b('0x2')]['registerCustomCallback'](_0x4f5b('0x81'),_0x4f5b('0x71'),'accept',_0x519627),_0x3953fe[_0x4f5b('0x2')][_0x4f5b('0x66')]('insertion',_0x4f5b('0x71'),_0x4f5b('0x69'),_0x52f624),_0x3953fe['_suggestionFactory']['registerCustomCallback'](_0x4f5b('0x81'),_0x4f5b('0x71'),_0x4f5b('0x69'),_0x52f624),_0x3953fe[_0x4f5b('0x2')]['registerCustomCallback']('insertion',_0x4f5b('0x41'),_0x4f5b('0x69'),_0x3970d5),_0x3953fe[_0x4f5b('0x2')][_0x4f5b('0x66')](_0x4f5b('0x81'),'tableRow',_0x4f5b('0x69'),_0x3970d5);}[_0x4f5b('0x3a')](){const _0x2832b8=this[_0x4f5b('0x68')],_0x29c807=_0x2832b8[_0x4f5b('0x18')][_0x4f5b('0x0')][_0x4f5b('0x46')];return(_0x446580,_0x1ef345)=>{_0x2832b8[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x58a639=>{const {commandName:_0x979b5a,commandParams:_0x4ff39f}=_0x1ef345;let _0x12cb5d=_0x446580[0x0][_0x4f5b('0x45')][_0x4f5b('0x6d')];_0x4ff39f&&_0x4ff39f[0x0]&&!0x1===_0x4ff39f[0x0][_0x4f5b('0x25')]&&(_0x12cb5d=_0x446580[0x0]['start'][_0x4f5b('0x7b')]);const _0x30d255=_0x58a639[_0x4f5b('0x40')](_0x12cb5d);if(_0x4f5b('0x5c')==_0x30d255['root'][_0x4f5b('0x80')])return;const _0x27b71c=Array['from'](_0x29c807['getRanges']())[_0x4f5b('0x7f')](_0x5997e3=>_0x2ac8e6['fromRange'](_0x5997e3));_0x58a639[_0x4f5b('0x54')](_0x30d255),_0x2832b8[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x979b5a)[_0x4f5b('0x2f')](),_0x4ff39f[_0x4f5b('0x6a')]({'forceDefaultExecution':!0x0}),_0x2832b8[_0x4f5b('0x4a')](_0x979b5a,..._0x4ff39f);const _0x3f3d99=_0x27b71c[_0x4f5b('0x4')](_0x291efc=>_0x4f5b('0x5c')!=_0x291efc['root'][_0x4f5b('0x80')]);_0x3f3d99[_0x4f5b('0x5e')]>0x0&&_0x58a639[_0x4f5b('0x54')](_0x3f3d99);for(const _0x165790 of _0x27b71c)_0x165790[_0x4f5b('0x3e')]();});};}[_0x4f5b('0x3c')](_0x5c23a3){const _0x40f521=this[_0x4f5b('0x68')]['plugins'][_0x4f5b('0x34')](_0x4f5b('0x86'));let _0x4031f8=Number[_0x4f5b('0x2d')],_0x4bb039=Number[_0x4f5b('0x6f')],_0x30117c=Number['MAX_SAFE_INTEGER'],_0x3901d3=Number[_0x4f5b('0x6f')];for(const _0x2ee063 of _0x5c23a3){if(_0x4f5b('0x5c')==_0x2ee063[_0x4f5b('0x78')][_0x4f5b('0x80')])continue;const {row:_0xf28544,column:_0x2322ca}=_0x40f521[_0x4f5b('0x42')](_0x2ee063),_0x49909d=_0x2ee063[_0x4f5b('0x63')]('rowspan')?_0x2ee063[_0x4f5b('0x5')]('rowspan')-0x1:0x0,_0x476e09=_0x2ee063[_0x4f5b('0x63')](_0x4f5b('0x35'))?_0x2ee063['getAttribute'](_0x4f5b('0x35'))-0x1:0x0;_0x4031f8=_0xf28544<_0x4031f8?_0xf28544:_0x4031f8,_0x4bb039=_0xf28544+_0x49909d>_0x4bb039?_0xf28544+_0x49909d:_0x4bb039,_0x30117c=_0x2322ca<_0x30117c?_0x2322ca:_0x30117c,_0x3901d3=_0x2322ca+_0x476e09>_0x3901d3?_0x2322ca+_0x476e09:_0x3901d3;}return{'minRow':_0x4031f8,'maxRow':_0x4bb039,'minColumn':_0x30117c,'maxColumn':_0x3901d3};}['_setupColumnsRowsFixing'](){const _0x32f759=this['editor'],_0x5bec26=_0x32f759[_0x4f5b('0x5b')][_0x4f5b('0x34')](_0x4f5b('0xf')),_0x25b82d=_0x32f759[_0x4f5b('0x5b')][_0x4f5b('0x34')](_0x4f5b('0x86'));_0x32f759[_0x4f5b('0x18')][_0x4f5b('0x0')]['on'](_0x4f5b('0x1b'),()=>{const _0x491cd2=Array[_0x4f5b('0x59')](_0x32f759[_0x4f5b('0x18')][_0x4f5b('0x0')][_0x4f5b('0x17')][_0x4f5b('0x2b')]());for(const {name:_0x3ecf94,data:_0xb75d59}of _0x491cd2){const {group:_0x4697bc,id:_0x39bd46,subType:_0x5187ab}=_0x5bec26[_0x4f5b('0x67')](_0x3ecf94);if(_0x4f5b('0x16')!=_0x4697bc)continue;if(null!=_0xb75d59[_0x4f5b('0x62')])continue;const _0x4dd6f2=_0x5bec26[_0x4f5b('0xe')](_0x39bd46);this[_0x4f5b('0x4b')][_0x4f5b('0x5f')](_0x5187ab)&&this[_0x4f5b('0x82')][_0x4f5b('0x50')](_0x4dd6f2);}},{'priority':_0x4f5b('0x1e')});const _0x46f174=(_0x227bd5,_0x3740b6)=>{let _0x4b4d59=!0x1;const _0x4458a3=_0x3740b6[_0x4f5b('0x60')](_0x227bd5),_0x391035=_0x227bd5[_0x4f5b('0x75')]('table'),_0x454b97=_0x25b82d['getCellLocation'](_0x227bd5);for(const _0x197a33 of this['_tableSuggestions']){const _0x4037f2=_0x197a33[_0x4f5b('0x65')],_0x1e0bba=_0x4037f2[_0x4f5b('0x3f')]('tablePaste'),_0x10420b=_0x4037f2['substr'](_0x1e0bba?0xa:0x5),_0x312fae=_0x10420b[_0x4f5b('0x12')](),_0x4fb5a2=_0x312fae[_0x4f5b('0x32')](0x0,0x3)+'span',_0x5a5349=_0x4f5b('0x37')+_0x10420b,_0x45c654=_0x4f5b('0x1a')+_0x10420b;if(!_0x197a33[_0x4f5b('0x30')])continue;if(_0x391035!=_0x197a33[_0x4f5b('0x6b')]()[_0x4f5b('0xa')][_0x4f5b('0x75')](_0x4f5b('0x72')))continue;if(_0x197a33['isIntersectingWithRange'](_0x4458a3))continue;const _0x512e91=_0x227bd5['hasAttribute'](_0x4fb5a2)?_0x227bd5['getAttribute'](_0x4fb5a2)-0x1:0x0,_0x921e9f=this[_0x4f5b('0x56')](_0x197a33),_0x5e2aa6=_0x921e9f[_0x5a5349],_0x539f16=_0x921e9f[_0x45c654];_0x5e2aa6<=_0x454b97[_0x312fae]&&_0x454b97[_0x312fae]+_0x512e91<=_0x539f16&&(_0x197a33[_0x4f5b('0x7a')](_0x4458a3),_0x4b4d59=!0x0);}return _0x4b4d59;};_0x32f759[_0x4f5b('0x18')][_0x4f5b('0x0')]['registerPostFixer'](_0x43f66d=>{let _0x187fd9=!0x1;for(const _0x25a507 of _0x32f759[_0x4f5b('0x18')]['document'][_0x4f5b('0x17')][_0x4f5b('0xc')]())if('insert'==_0x25a507[_0x4f5b('0x39')]){if('tableRow'==_0x25a507[_0x4f5b('0x38')])for(const _0xd4f72 of _0x25a507[_0x4f5b('0x28')][_0x4f5b('0x7b')]['getChildren']())_0x187fd9=_0x187fd9||_0x46f174(_0xd4f72,_0x43f66d);else _0x4f5b('0x1f')==_0x25a507['name']&&(_0x187fd9=_0x187fd9||_0x46f174(_0x25a507[_0x4f5b('0x28')][_0x4f5b('0x7b')],_0x43f66d));}return _0x187fd9;});}[_0x4f5b('0x56')](_0x227fc1){return this['_getCoordsForCells'](_0x227fc1[_0x4f5b('0x1')]()[_0x4f5b('0x7f')](_0x26f51d=>_0x26f51d[_0x4f5b('0xa')][_0x4f5b('0x7b')]));}}function se(_0x34e1a1){return Array[_0x4f5b('0x59')](new Set(_0x34e1a1)[_0x4f5b('0x83')]());}
|
|
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'));}}
|