@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231004.0 → 0.0.0-nightly-20231006.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/aiassistant.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 _0x32ac=['startIndex','document','*Change\x20to:*\x20%0','getSiblingNodes','commandParams','listReversed','_LIST_','map','getAttribute','element','editor','has','numbered','*Format:*\x20set\x20order\x20to\x20reversed','selection','listStyle','handleListStartCommand','forward','createPositionAt','listItem','backward','get','styles','toUpperCase','reversed','getFirstPosition','handleListReversedCommand','getLastPosition','*Format:*\x20set\x20start\x20index\x20to\x20%0','from','flat','TrackChangesEditing','listStart','replace','ListUtils','change','filter','format','model','afterInit','config','getListTypeFromListStyleType','handleListStyleCommand','enableCommand','registerDescriptionCallback','getSelectedBlocks','plugins','*Format:*\x20set\x20order\x20to\x20regular','bind','_getTranslationKeyForListStyle','_getSuggestionBlocks','handleDescriptions','commandName','ELEMENT_','createRange','before','listType','markMultiRangeBlockFormat','list.properties','ListPropertiesEditing','type','length','_getSuggestionBlocksForListStyle'];(function(_0x17a08b,_0x32aca0){const _0x3fbbf1=function(_0x4f5fdf){while(--_0x4f5fdf){_0x17a08b['push'](_0x17a08b['shift']());}};_0x3fbbf1(++_0x32aca0);}(_0x32ac,0xc7));const _0x3fbb=function(_0x17a08b,_0x32aca0){_0x17a08b=_0x17a08b-0x0;let _0x3fbbf1=_0x32ac[_0x17a08b];return _0x3fbbf1;};import{Plugin as _0x41a9e0}from'ckeditor5/src/core';import{getTranslation as _0xe99f32}from'../utils/common-translations';export default class ot extends _0x41a9e0{[_0x3fbb('0x1d')](){if(!this[_0x3fbb('0x0')][_0x3fbb('0x24')][_0x3fbb('0x1')](_0x3fbb('0x31')))return;const _0x2ce9ac=this[_0x3fbb('0x0')][_0x3fbb('0x1e')]['get'](_0x3fbb('0x30')),_0x28f058=this[_0x3fbb('0x0')][_0x3fbb('0x24')][_0x3fbb('0xb')]('TrackChangesEditing');_0x2ce9ac[_0x3fbb('0xc')]&&_0x28f058[_0x3fbb('0x21')](_0x3fbb('0x5'),this[_0x3fbb('0x20')]['bind'](this)),_0x2ce9ac[_0x3fbb('0xe')]&&_0x28f058[_0x3fbb('0x21')]('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2ce9ac['startIndex']&&_0x28f058['enableCommand']('listStart',this['handleListStartCommand'][_0x3fbb('0x26')](this)),_0x28f058['_descriptionFactory'][_0x3fbb('0x22')](this['handleDescriptions'][_0x3fbb('0x26')](this));}[_0x3fbb('0x20')](_0x1a7be6,_0x3b1526={}){const _0x2e7b6a=this['editor'][_0x3fbb('0x24')][_0x3fbb('0xb')]('TrackChangesEditing'),_0x3f47e8=this[_0x3fbb('0x34')]();this[_0x3fbb('0x0')]['model'][_0x3fbb('0x19')](()=>{_0x2e7b6a[_0x3fbb('0x2f')](_0x3f47e8,{'commandName':_0x3fbb('0x5'),'commandParams':[{'type':_0x3b1526[_0x3fbb('0x32')]}],'formatGroupId':'listStyle'});});}[_0x3fbb('0x10')](_0x222f18,_0x37da41={}){const _0x294cb1=this[_0x3fbb('0x0')]['plugins'][_0x3fbb('0xb')](_0x3fbb('0x15')),_0x5bfd67=this[_0x3fbb('0x28')](_0x5def01=>_0x5def01['is'](_0x3fbb('0x3e'),_0x3fbb('0x9'))&&_0x3fbb('0x2')===_0x5def01[_0x3fbb('0x3d')](_0x3fbb('0x2e')));if(_0x5bfd67[_0x3fbb('0x33')]<0x1)return;const _0x23ca35=_0x5bfd67[_0x3fbb('0x3c')](_0xa0a076=>this[_0x3fbb('0x0')][_0x3fbb('0x1c')][_0x3fbb('0x2c')](this['editor'][_0x3fbb('0x1c')][_0x3fbb('0x8')](_0xa0a076,_0x3fbb('0x2d')),this[_0x3fbb('0x0')][_0x3fbb('0x1c')][_0x3fbb('0x8')](_0xa0a076,0x0)));this['editor']['model'][_0x3fbb('0x19')](()=>{_0x294cb1[_0x3fbb('0x2f')](_0x23ca35,{'commandName':_0x3fbb('0x3a'),'commandParams':[{'reversed':_0x37da41[_0x3fbb('0xe')]}],'formatGroupId':_0x3fbb('0x3a')});});}[_0x3fbb('0x6')](_0x4f1a99,_0x2928b3={}){const _0x2758dc=this['editor'][_0x3fbb('0x24')][_0x3fbb('0xb')](_0x3fbb('0x15')),_0x38b4c0=this[_0x3fbb('0x28')](_0x2f190c=>_0x2f190c['is'](_0x3fbb('0x3e'),'listItem')&&_0x3fbb('0x2')===_0x2f190c[_0x3fbb('0x3d')](_0x3fbb('0x2e')));if(_0x38b4c0['length']<0x1)return;const _0x1310b4=_0x38b4c0[_0x3fbb('0x3c')](_0x4b1920=>this[_0x3fbb('0x0')][_0x3fbb('0x1c')]['createRange'](this['editor'][_0x3fbb('0x1c')][_0x3fbb('0x8')](_0x4b1920,_0x3fbb('0x2d')),this[_0x3fbb('0x0')][_0x3fbb('0x1c')]['createPositionAt'](_0x4b1920,0x0)));this['editor'][_0x3fbb('0x1c')][_0x3fbb('0x19')](()=>{_0x2758dc[_0x3fbb('0x2f')](_0x1310b4,{'commandName':_0x3fbb('0x16'),'commandParams':[{'startIndex':_0x2928b3[_0x3fbb('0x35')]}],'formatGroupId':_0x3fbb('0x16')});});}[_0x3fbb('0x29')](_0x5872e6){const _0x117df8=this[_0x3fbb('0x0')]['locale'],{data:_0x572b53}=_0x5872e6;if(!_0x572b53)return;let _0x18ce01,_0x4f5040;switch(_0x572b53[_0x3fbb('0x2a')]){case'listStyle':_0x18ce01=_0x3fbb('0x37'),_0x4f5040={'type':_0x3fbb('0x1b'),'content':_0xe99f32(_0x117df8,_0x18ce01,_0xe99f32(_0x117df8,this[_0x3fbb('0x27')](_0x572b53[_0x3fbb('0x39')][0x0][_0x3fbb('0x32')])))};break;case _0x3fbb('0x3a'):_0x18ce01=_0x572b53[_0x3fbb('0x39')][0x0][_0x3fbb('0xe')]?_0x3fbb('0x3'):_0x3fbb('0x25'),_0x4f5040={'type':'format','content':_0xe99f32(_0x117df8,_0x18ce01)};break;case _0x3fbb('0x16'):_0x18ce01=_0x3fbb('0x12'),_0x4f5040={'type':_0x3fbb('0x1b'),'content':_0xe99f32(_0x117df8,_0x18ce01,_0x572b53[_0x3fbb('0x39')][0x0][_0x3fbb('0x35')])};}return _0x4f5040;}[_0x3fbb('0x34')](){var _0x11ba80,_0x536621,_0xad2f67,_0x199aa7;const _0xe16c3e=this['editor'][_0x3fbb('0x24')][_0x3fbb('0xb')]('ListUtils');let _0x454056=Array[_0x3fbb('0x13')](this[_0x3fbb('0x0')][_0x3fbb('0x1c')][_0x3fbb('0x36')]['selection']['getSelectedBlocks']());return(null===(_0x11ba80=_0x454056[0x0])||void 0x0===_0x11ba80?void 0x0:_0x11ba80['is']('element',_0x3fbb('0x9')))&&_0x454056['unshift'](..._0xe16c3e[_0x3fbb('0x38')](this[_0x3fbb('0x0')][_0x3fbb('0x1c')][_0x3fbb('0x36')][_0x3fbb('0x4')][_0x3fbb('0xf')](),_0x3fbb('0xa'))),(null===(_0x536621=_0x454056[_0x454056[_0x3fbb('0x33')]-0x1])||void 0x0===_0x536621?void 0x0:_0x536621['is'](_0x3fbb('0x3e'),_0x3fbb('0x9')))&&_0x454056['push'](..._0xe16c3e[_0x3fbb('0x38')](this['editor']['model']['document'][_0x3fbb('0x4')][_0x3fbb('0x11')](),_0x3fbb('0x7'))),_0x454056=[...new Set(_0x454056)],(null===(_0x199aa7=null===(_0xad2f67=this[_0x3fbb('0x0')][_0x3fbb('0x1c')][_0x3fbb('0x36')][_0x3fbb('0x4')]['getFirstPosition']())||void 0x0===_0xad2f67?void 0x0:_0xad2f67['parent'])||void 0x0===_0x199aa7?void 0x0:_0x199aa7['is'](_0x3fbb('0x3e'),_0x3fbb('0x9')))&&(_0x454056=_0x454056[_0x3fbb('0x1a')](_0x1c5332=>_0x1c5332['is'](_0x3fbb('0x3e'),_0x3fbb('0x9')))),_0x454056;}[_0x3fbb('0x28')](_0x617471){const _0x8255a3=this[_0x3fbb('0x0')]['plugins'][_0x3fbb('0xb')]('ListUtils');let _0x16e9c9=Array[_0x3fbb('0x13')](this[_0x3fbb('0x0')][_0x3fbb('0x1c')][_0x3fbb('0x36')]['selection'][_0x3fbb('0x23')]())[_0x3fbb('0x1a')](_0x617471)[_0x3fbb('0x3c')](_0x265698=>{const _0x3c3745=this[_0x3fbb('0x0')]['model'][_0x3fbb('0x8')](_0x265698,0x0);return[..._0x8255a3[_0x3fbb('0x38')](_0x3c3745,_0x3fbb('0xa')),..._0x8255a3['getSiblingNodes'](_0x3c3745,'forward')];})[_0x3fbb('0x14')]();return _0x16e9c9=[...new Set(_0x16e9c9)],_0x16e9c9;}['_getTranslationKeyForListStyle'](_0x2a7ad1){return _0x3fbb('0x2b')+this[_0x3fbb('0x0')][_0x3fbb('0x24')][_0x3fbb('0xb')](_0x3fbb('0x18'))[_0x3fbb('0x1f')](_0x2a7ad1)[_0x3fbb('0xd')]()+_0x3fbb('0x3b')+_0x2a7ad1[_0x3fbb('0xd')]()[_0x3fbb('0x17')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4465=['dataDowncast','createEmptyElement','get','media','for','showSuggestionHighlights','plugins','registerElementLabel','has','div','mediaEmbed','elementToElement','_descriptionFactory','editor','ELEMENT_MEDIA','options','conversion','stop','MediaEmbedEditing','data','attribute:url:media','high','TrackChangesEditing'];(function(_0x56b397,_0x446540){const _0x3c38f3=function(_0x2168e5){while(--_0x2168e5){_0x56b397['push'](_0x56b397['shift']());}};_0x3c38f3(++_0x446540);}(_0x4465,0x1d0));const _0x3c38=function(_0x56b397,_0x446540){_0x56b397=_0x56b397-0x0;let _0x3c38f3=_0x4465[_0x56b397];return _0x3c38f3;};import{Plugin as _0xcf04ca}from'ckeditor5/src/core';import{getTranslation as _0x40d4a3}from'../utils/common-translations';export default class rt extends _0xcf04ca{['afterInit'](){const _0x492d85=this[_0x3c38('0x9')];if(!_0x492d85[_0x3c38('0x2')][_0x3c38('0x4')](_0x3c38('0xe')))return;const _0x11023c=_0x492d85[_0x3c38('0x2')][_0x3c38('0x15')](_0x3c38('0x12')),_0x11fb96=_0x492d85['locale'];_0x11023c['enableCommand'](_0x3c38('0x6')),_0x11023c[_0x3c38('0x8')][_0x3c38('0x3')]('media',_0x12ce7f=>_0x40d4a3(_0x11fb96,_0x3c38('0xa'),_0x12ce7f)),_0x492d85[_0x3c38('0xc')][_0x3c38('0x0')](_0x3c38('0x13'))[_0x3c38('0x7')]({'model':_0x3c38('0x16'),'view':(_0x14a849,{writer:_0x9fa042,options:_0xf079ea})=>{if(_0xf079ea[_0x3c38('0x1')])return _0x9fa042[_0x3c38('0x14')](_0x3c38('0x5'));},'converterPriority':_0x3c38('0x11')}),_0x492d85[_0x3c38('0xf')]['downcastDispatcher']['on'](_0x3c38('0x10'),(_0x3492dd,_0x547200,_0x4c6476)=>{_0x4c6476[_0x3c38('0xb')][_0x3c38('0x1')]&&_0x3492dd[_0x3c38('0xd')]();},{'priority':_0x3c38('0x11')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b3a=['plugins','editor','TrackChangesEditing','mention','MentionEditing','enableCommand','has'];(function(_0x51c704,_0x3b3ae6){const _0x266c82=function(_0xae3958){while(--_0xae3958){_0x51c704['push'](_0x51c704['shift']());}};_0x266c82(++_0x3b3ae6);}(_0x3b3a,0x1bb));const _0x266c=function(_0x51c704,_0x3b3ae6){_0x51c704=_0x51c704-0x0;let _0x266c82=_0x3b3a[_0x51c704];return _0x266c82;};import{Plugin as _0x5dea8e}from'ckeditor5/src/core';export default class at extends _0x5dea8e{['afterInit'](){const _0x2ff5fb=this[_0x266c('0x6')];_0x2ff5fb[_0x266c('0x5')][_0x266c('0x4')](_0x266c('0x2'))&&_0x2ff5fb[_0x266c('0x5')]['get'](_0x266c('0x0'))[_0x266c('0x3')](_0x266c('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11d1=['registerElementLabel','plugins','locale','pageBreak','TrackChangesEditing','PageBreakEditing','get','_descriptionFactory','ELEMENT_PAGE_BREAK'];(function(_0x3fb23f,_0x11d142){const _0x44247d=function(_0x525101){while(--_0x525101){_0x3fb23f['push'](_0x3fb23f['shift']());}};_0x44247d(++_0x11d142);}(_0x11d1,0x16f));const _0x4424=function(_0x3fb23f,_0x11d142){_0x3fb23f=_0x3fb23f-0x0;let _0x44247d=_0x11d1[_0x3fb23f];return _0x44247d;};import{Plugin as _0x13dea8}from'ckeditor5/src/core';import{getTranslation as _0x4128c2}from'../utils/common-translations';export default class ct extends _0x13dea8{['afterInit'](){const _0x542228=this['editor'];if(!_0x542228[_0x4424('0x3')]['has'](_0x4424('0x7')))return;_0x542228[_0x4424('0x3')][_0x4424('0x8')](_0x4424('0x6'))['enableCommand'](_0x4424('0x5'));const _0x2a2b78=_0x542228[_0x4424('0x3')][_0x4424('0x8')]('TrackChangesEditing'),_0x589d46=_0x542228[_0x4424('0x4')];_0x2a2b78[_0x4424('0x0')][_0x4424('0x2')](_0x4424('0x5'),_0x54cc7d=>_0x4128c2(_0x589d46,_0x4424('0x1'),_0x54cc7d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4504=['isTouching','_descriptionFactory','insertion','selection','showSuggestionHighlights','data','type','bindElementToMarker','createUIElement','downcastDispatcher','from','getFirstRange','isObject','toViewPosition','get','highest','getSelectedBlocks','end','name','enableCommand','consume','markBlockFormat','addMarker:suggestion:insertion','blockName','afterInit','schema','TrackChangesEditing','mapper','editor','locale','registerDescriptionCallback','start','addClass','*Change\x20to:*\x20%0','isBlock','insertParagraph','$text','checkChild','commandName','ELEMENT_PARAGRAPH','has','filter','document','parent','includes','writer','consumable','activeMarkers','nodeAfter','paragraph','span','editing','*Insert:*\x20%0','options','markerName','markerRange','plugins','change','registerElementLabel','model','Paragraph','ck-suggestion-marker-split'];(function(_0x14445c,_0x45048e){const _0x41f6fe=function(_0x3e38a7){while(--_0x3e38a7){_0x14445c['push'](_0x14445c['shift']());}};_0x41f6fe(++_0x45048e);}(_0x4504,0x69));const _0x41f6=function(_0x14445c,_0x45048e){_0x14445c=_0x14445c-0x0;let _0x41f6fe=_0x4504[_0x14445c];return _0x41f6fe;};import{Plugin as _0x49253d}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5bf206}from'./utils';import{getTranslation as _0x35c051}from'../utils/common-translations';export default class ht extends _0x49253d{[_0x41f6('0x2b')](){const _0x5826e0=this[_0x41f6('0x2f')];if(!_0x5826e0[_0x41f6('0xd')][_0x41f6('0x3b')](_0x41f6('0x11')))return;const _0x445cdc=_0x5826e0[_0x41f6('0x30')],_0x2e06e1=_0x5826e0[_0x41f6('0xd')][_0x41f6('0x21')](_0x41f6('0x2d'));_0x2e06e1['_descriptionFactory'][_0x41f6('0xf')](_0x41f6('0x6'),_0x220c26=>_0x35c051(_0x445cdc,'ELEMENT_PARAGRAPH',_0x220c26)),_0x2e06e1[_0x41f6('0x26')](_0x41f6('0x6'),(_0x4adb13,_0x35522a={})=>{const _0xe0e32=_0x5826e0['model'][_0x41f6('0x3d')],_0x9e2dfe=_0x35522a[_0x41f6('0x16')]||_0xe0e32[_0x41f6('0x16')],_0x44a296=Array[_0x41f6('0x1d')](_0x9e2dfe[_0x41f6('0x23')]())[_0x41f6('0x3c')](_0x185866=>function(_0x21fda9,_0x5c700b){return _0x5c700b[_0x41f6('0x38')](_0x21fda9[_0x41f6('0x0')],_0x41f6('0x6'))&&!_0x5c700b[_0x41f6('0x1f')](_0x21fda9)&&_0x41f6('0x6')!=_0x21fda9[_0x41f6('0x25')];}(_0x185866,this['editor'][_0x41f6('0x10')][_0x41f6('0x2c')]));_0x5826e0[_0x41f6('0x10')][_0x41f6('0xe')](()=>{for(const _0x270fb0 of _0x44a296)_0x2e06e1[_0x41f6('0x28')](_0x270fb0,{'commandName':_0x41f6('0x6'),'commandParams':[],'formatGroupId':_0x41f6('0x2a')},_0x5bf206(_0x270fb0));});}),_0x2e06e1[_0x41f6('0x14')][_0x41f6('0x31')](_0x320d82=>{const {data:_0x3dc360}=_0x320d82;if(_0x3dc360&&_0x41f6('0x6')==_0x3dc360[_0x41f6('0x39')])return{'type':'format','content':_0x35c051(_0x445cdc,_0x41f6('0x34'),_0x35c051(_0x445cdc,_0x41f6('0x3a')))};}),_0x2e06e1[_0x41f6('0x26')](_0x41f6('0x36')),_0x5826e0[_0x41f6('0x8')][_0x41f6('0x1c')]['on'](_0x41f6('0x29'),ar(_0x5826e0),{'priority':_0x41f6('0x22')}),_0x5826e0[_0x41f6('0x18')][_0x41f6('0x1c')]['on'](_0x41f6('0x29'),(_0x3afdb1,_0x320f6b,_0x4349fa)=>{_0x4349fa[_0x41f6('0xa')][_0x41f6('0x17')]&&ar(_0x5826e0,{'showActiveMarker':!0x1})(_0x3afdb1,_0x320f6b,_0x4349fa);},{'priority':_0x41f6('0x22')});const _0x18372a=_0x2e06e1[_0x41f6('0x14')];_0x18372a[_0x41f6('0x31')](_0x17c05f=>{if(_0x41f6('0x15')!==_0x17c05f[_0x41f6('0x19')])return;const {start:_0x5c90af,end:_0x334459}=_0x17c05f[_0x41f6('0x1e')]();if(!_0x5c90af['isTouching'](_0x334459)||!_0x5c90af[_0x41f6('0x5')])return;const _0x42570d=_0x5826e0[_0x41f6('0x10')][_0x41f6('0x2c')],_0x8082cf=_0x5c90af['nodeAfter'];return _0x42570d['isBlock'](_0x8082cf)&&!_0x42570d['isLimit'](_0x8082cf)&&_0x42570d[_0x41f6('0x38')](_0x8082cf,_0x41f6('0x37'))?{'type':_0x41f6('0x15'),'content':_0x35c051(_0x445cdc,_0x41f6('0x9'),_0x18372a['getItemLabel'](_0x8082cf,0x1))}:void 0x0;});}}function ar(_0x43b8c7,{showActiveMarker:_0x59412d=!0x0}={}){return(_0x1b54b6,_0x3e9509,_0x432ee8)=>{const _0x15e953=_0x43b8c7['plugins'][_0x41f6('0x21')](_0x41f6('0x2d')),_0x3c1558=_0x3e9509[_0x41f6('0xc')][_0x41f6('0x32')],_0x3efe7a=_0x3e9509[_0x41f6('0xc')][_0x41f6('0x24')],_0x39a323=_0x43b8c7[_0x41f6('0x10')][_0x41f6('0x2c')];if(!_0x3c1558[_0x41f6('0x13')](_0x3efe7a)||!_0x3c1558['nodeAfter'])return;const _0x362949=_0x3c1558[_0x41f6('0x5')];if(_0x39a323[_0x41f6('0x35')](_0x362949)&&!_0x39a323['isLimit'](_0x362949)&&_0x39a323[_0x41f6('0x38')](_0x362949,_0x41f6('0x37'))){if(!_0x432ee8[_0x41f6('0x3')][_0x41f6('0x27')](_0x3e9509[_0x41f6('0xc')],_0x1b54b6[_0x41f6('0x25')]))return;const _0x447cfa=_0x432ee8[_0x41f6('0x2')][_0x41f6('0x1b')](_0x41f6('0x7'),{'class':_0x41f6('0x12')}),_0x272a6b=_0x432ee8[_0x41f6('0x2e')][_0x41f6('0x20')](_0x3efe7a);_0x59412d&&_0x15e953[_0x41f6('0x4')][_0x41f6('0x1')](_0x3e9509[_0x41f6('0xb')])&&_0x432ee8[_0x41f6('0x2')][_0x41f6('0x33')]('ck-suggestion-marker--active',_0x447cfa),_0x432ee8[_0x41f6('0x2')]['insert'](_0x272a6b,_0x447cfa),_0x432ee8['mapper'][_0x41f6('0x1a')](_0x447cfa,_0x3e9509[_0x41f6('0xb')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d14=['getItems','model','change','createRangeOn','document','get','isCollapsed','getRanges','commandName','selection','getAttributes','removeFormat','_descriptionFactory','registerDescriptionCallback','schema','RemoveFormatEditing','editor','enableCommand','TrackChangesEditing','getAttributeProperties','from','*Remove\x20all\x20formatting*','afterInit','plugins','isFormatting'];(function(_0x291e81,_0x2d14bb){const _0xadf879=function(_0x367023){while(--_0x367023){_0x291e81['push'](_0x291e81['shift']());}};_0xadf879(++_0x2d14bb);}(_0x2d14,0x110));const _0xadf8=function(_0x291e81,_0x2d14bb){_0x291e81=_0x291e81-0x0;let _0xadf879=_0x2d14[_0x291e81];return _0xadf879;};import{Plugin as _0x38060d}from'ckeditor5/src/core';import{getTranslation as _0x1fdf0c}from'../utils/common-translations';export default class ut extends _0x38060d{[_0xadf8('0x0')](){const _0x24d0ae=this[_0xadf8('0x13')];if(!_0x24d0ae[_0xadf8('0x1')]['has'](_0xadf8('0x12')))return;const _0x17232d=_0x24d0ae[_0xadf8('0x1')][_0xadf8('0x8')](_0xadf8('0x15'));_0x17232d[_0xadf8('0x14')](_0xadf8('0xe'),_0x39f6ea=>{const _0x3b8fc4=_0x24d0ae['model'][_0xadf8('0x7')][_0xadf8('0xc')];_0x3b8fc4[_0xadf8('0x9')]?_0x39f6ea():_0x24d0ae[_0xadf8('0x4')][_0xadf8('0x5')](()=>{const _0x4d0c4a=Array[_0xadf8('0x17')](_0x3b8fc4[_0xadf8('0xa')]());for(const _0x170c10 of _0x4d0c4a)for(const _0x4c01ae of _0x170c10[_0xadf8('0x3')]())mo(_0x4c01ae,_0x24d0ae[_0xadf8('0x4')][_0xadf8('0x11')])&&_0x17232d['markInlineFormat'](_0x24d0ae[_0xadf8('0x4')][_0xadf8('0x6')](_0x4c01ae),{'commandName':_0xadf8('0xe'),'commandParams':[]});});}),_0x17232d[_0xadf8('0xf')][_0xadf8('0x10')](_0x5b6f91=>{const {data:_0xab4d04}=_0x5b6f91;if(_0xab4d04&&_0xadf8('0xe')==_0xab4d04[_0xadf8('0xb')])return{'type':'format','content':_0x1fdf0c(_0x24d0ae['locale'],_0xadf8('0x18'))};});}}function mo(_0x4f4b8b,_0x4c7ca4){for(const [_0xcc27c3]of _0x4f4b8b[_0xadf8('0xd')]()){const _0x52c980=_0x4c7ca4[_0xadf8('0x16')](_0xcc27c3);if(_0x52c980&&_0x52c980[_0xadf8('0x2')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb7e5=['TrackChangesEditing','discardSelectedSuggestions','enableCommand','discardSuggestion','RestrictedEditingModeEditing','plugins','has','discardAllSuggestions','acceptSuggestion','acceptAllSuggestions','editor','afterInit','get'];(function(_0x3f2bc8,_0xb7e526){const _0x1a5d94=function(_0x59caf7){while(--_0x59caf7){_0x3f2bc8['push'](_0x3f2bc8['shift']());}};_0x1a5d94(++_0xb7e526);}(_0xb7e5,0x16d));const _0x1a5d=function(_0x3f2bc8,_0xb7e526){_0x3f2bc8=_0x3f2bc8-0x0;let _0x1a5d94=_0xb7e5[_0x3f2bc8];return _0x1a5d94;};import{Plugin as _0x5de388}from'ckeditor5/src/core';export default class ft extends _0x5de388{[_0x1a5d('0xa')](){const _0x18d7a6=this[_0x1a5d('0x9')];if(!_0x18d7a6['plugins'][_0x1a5d('0x5')](_0x1a5d('0x3')))return;const _0x312783=_0x18d7a6[_0x1a5d('0x4')][_0x1a5d('0xb')](_0x1a5d('0xc'));_0x312783['enableCommand']('goToPreviousRestrictedEditingException'),_0x312783[_0x1a5d('0x1')]('goToNextRestrictedEditingException');const _0x2e9071=_0x18d7a6[_0x1a5d('0x4')][_0x1a5d('0xb')]('RestrictedEditingModeEditing');_0x2e9071['enableCommand']('trackChanges'),_0x2e9071['enableCommand'](_0x1a5d('0x7')),_0x2e9071['enableCommand'](_0x1a5d('0x2')),_0x2e9071[_0x1a5d('0x1')](_0x1a5d('0x8')),_0x2e9071[_0x1a5d('0x1')](_0x1a5d('0x6')),_0x2e9071[_0x1a5d('0x1')]('acceptSelectedSuggestions'),_0x2e9071[_0x1a5d('0x1')](_0x1a5d('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46a8=['shiftEnter','mapper','locale','init','editing','split','plugins','markerRange','ck-suggestion-marker-','registerElementLabel','addClass','enableCommand','writer','ELEMENT_LINE_BREAK','addMarker:suggestion:deletion','addMarker:suggestion:insertion','model','downcastDispatcher','data','high','editor','name','TrackChangesEditing','ck-suggestion-marker--active','test','markerName','includes','createPositionBefore','merge','showSuggestionHighlights','softBreak','get','getItems'];(function(_0x4fcdb6,_0x46a89b){const _0x53875d=function(_0x28056a){while(--_0x28056a){_0x4fcdb6['push'](_0x4fcdb6['shift']());}};_0x53875d(++_0x46a89b);}(_0x46a8,0x1b3));const _0x5387=function(_0x4fcdb6,_0x46a89b){_0x4fcdb6=_0x4fcdb6-0x0;let _0x53875d=_0x46a8[_0x4fcdb6];return _0x53875d;};import{Plugin as _0x21a3be}from'ckeditor5/src/core';import{ShiftEnter as _0x22f85e}from'ckeditor5/src/enter';import{getTranslation as _0x308be5}from'../utils/common-translations';export default class lt extends _0x21a3be{static get['requires'](){return[_0x22f85e];}[_0x5387('0x1e')](){const _0x4cfe1e=this[_0x5387('0xe')],_0x265516=_0x4cfe1e['plugins'][_0x5387('0x19')](_0x5387('0x10'));_0x265516[_0x5387('0x5')](_0x5387('0x1b')),_0x4cfe1e['editing'][_0x5387('0xb')]['on'](_0x5387('0x9'),re(_0x4cfe1e),{'priority':_0x5387('0xd')}),_0x4cfe1e[_0x5387('0x1f')]['downcastDispatcher']['on'](_0x5387('0x8'),re(_0x4cfe1e),{'priority':_0x5387('0xd')}),_0x4cfe1e[_0x5387('0xc')][_0x5387('0xb')]['on']('addMarker:suggestion',(_0x2b8a60,_0x504565,_0x11d98)=>{_0x11d98['options'][_0x5387('0x17')]&&re(_0x4cfe1e,{'showActiveMarker':!0x1})(_0x2b8a60,_0x504565,_0x11d98);}),_0x265516['_descriptionFactory'][_0x5387('0x3')](_0x5387('0x18'),_0x5a2812=>_0x308be5(_0x4cfe1e[_0x5387('0x1d')],_0x5387('0x7'),_0x5a2812));}}function re(_0x283d90,{showActiveMarker:_0x325662=!0x0}={}){return(_0x76dc81,_0x55a741,_0x736dac)=>{const _0x4387cb=_0x283d90[_0x5387('0x0')][_0x5387('0x19')](_0x5387('0x10'));if(!_0x736dac['consumable'][_0x5387('0x12')](_0x55a741[_0x5387('0x1')],_0x76dc81[_0x5387('0xf')]))return;const _0x31f8e6=_0x283d90[_0x5387('0xa')];for(const _0x35adf9 of _0x55a741['markerRange'][_0x5387('0x1a')]()){if(!_0x35adf9['is']('element','softBreak'))continue;const _0x540828='deletion'==_0x55a741['markerName'][_0x5387('0x20')](':')[0x1]?_0x5387('0x16'):_0x5387('0x20'),_0x5ac9c2=_0x736dac[_0x5387('0x6')]['createUIElement']('span',{'class':_0x5387('0x2')+_0x540828}),_0x3a617d=_0x736dac[_0x5387('0x1c')]['toViewPosition'](_0x31f8e6[_0x5387('0x15')](_0x35adf9));_0x325662&&_0x4387cb['activeMarkers'][_0x5387('0x14')](_0x55a741[_0x5387('0x13')])&&_0x736dac[_0x5387('0x6')][_0x5387('0x4')](_0x5387('0x11'),_0x5ac9c2),_0x736dac[_0x5387('0x6')]['insert'](_0x3a617d,_0x5ac9c2),_0x736dac[_0x5387('0x1c')]['bindElementToMarker'](_0x5ac9c2,_0x55a741[_0x5387('0x13')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x195e=['has','_descriptionFactory','StandardEditingModeEditing','editor','locale','commands','format','commandParams','getRanges','enableCommand','from','TrackChangesEditing','FORMAT_RESTRICTED_ENABLED','FORMAT_RESTRICTED_DISABLED','model','registerDescriptionCallback','forceValue','markInlineFormat','plugins','get'];(function(_0x4d1812,_0x195e63){const _0x335d10=function(_0x14be35){while(--_0x14be35){_0x4d1812['push'](_0x4d1812['shift']());}};_0x335d10(++_0x195e63);}(_0x195e,0x1a8));const _0x335d=function(_0x4d1812,_0x195e63){_0x4d1812=_0x4d1812-0x0;let _0x335d10=_0x195e[_0x4d1812];return _0x335d10;};import{Plugin as _0xba6e77}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x389920}from'./utils';import{getTranslation as _0x1c5d4c}from'../utils/common-translations';export default class gt extends _0xba6e77{['afterInit'](){const _0x3b69dc=this[_0x335d('0x13')],_0x7838be=_0x3b69dc[_0x335d('0xa')],_0xa605e4=_0x3b69dc[_0x335d('0x0')];if(!_0x3b69dc[_0x335d('0xe')][_0x335d('0x10')](_0x335d('0x12')))return;const _0x25b27a=_0x3b69dc[_0x335d('0xe')][_0x335d('0xf')](_0x335d('0x7')),_0x15dd36='restrictedEditingException',_0x271b9e=_0x3b69dc[_0x335d('0x1')]['get'](_0x15dd36);_0x25b27a[_0x335d('0x5')](_0x15dd36,(_0x4498a5,_0x46feec={})=>{const _0x3b0035=_0x7838be['document']['selection'];if(_0x3b0035['isCollapsed'])return void _0x4498a5(_0x46feec);const _0x56fcdf=void 0x0!==_0x46feec[_0x335d('0xc')]?_0x46feec['forceValue']:!_0x271b9e['value'];_0x7838be['change'](()=>{const _0x1d10ad=Array[_0x335d('0x6')](_0x3b0035[_0x335d('0x4')]());for(const _0x3828ef of _0x1d10ad){const _0x4779e9=_0x56fcdf?[_0x3828ef]:_0x389920(_0x15dd36,_0x3828ef,_0x7838be);for(const _0xb57981 of _0x4779e9)_0x25b27a[_0x335d('0xd')](_0xb57981,{'commandName':_0x15dd36,'commandParams':[{'forceValue':_0x56fcdf}]});}});}),_0x25b27a[_0x335d('0x11')][_0x335d('0xb')](_0x41f3e9=>{const {data:_0x1bb637}=_0x41f3e9;if(_0x1bb637&&_0x1bb637['commandName']==_0x15dd36)return _0x1bb637[_0x335d('0x3')][0x0][_0x335d('0xc')]?{'type':_0x335d('0x2'),'content':_0x1c5d4c(_0xa605e4,_0x335d('0x8'))}:{'type':_0x335d('0x2'),'content':_0x1c5d4c(_0xa605e4,_0x335d('0x9'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2604=['style','getRanges','commands','element','add','*Format:*\x20%0','locale','document','_getStyleDefinition','get','model','modelElements','name','selection','getAttribute','classes','toLowerCase','_descriptionFactory','forceValue','includes','from','isCollapsed','styleName','style.definitions','find','Style','createRangeOn','plugins','value','format','style:','_getRangesWithClasses','getSelectedBlocks','markBlockFormat','isBlock','push','getAncestors','commandName','registerDescriptionCallback','commandParams','inline'];(function(_0x5d820a,_0x260474){const _0x7e53a4=function(_0x2343cd){while(--_0x2343cd){_0x5d820a['push'](_0x5d820a['shift']());}};_0x7e53a4(++_0x260474);}(_0x2604,0x1ed));const _0x7e53=function(_0x5d820a,_0x260474){_0x5d820a=_0x5d820a-0x0;let _0x7e53a4=_0x2604[_0x5d820a];return _0x7e53a4;};import{Plugin as _0x49ce53}from'ckeditor5/src/core';import{getTranslation as _0x3fcbf1}from'../utils/common-translations';export default class mt extends _0x49ce53{['afterInit'](){const _0x1fe929=this['editor'];if(!_0x1fe929[_0x7e53('0x1a')]['has'](_0x7e53('0x18')))return;const _0x539f3f=_0x1fe929[_0x7e53('0x1')][_0x7e53('0x8')](_0x7e53('0x28')),_0x506428=_0x1fe929['plugins'][_0x7e53('0x8')]('TrackChangesEditing'),_0x54df95=_0x1fe929[_0x7e53('0x5')],_0x41aec0=_0x1fe929[_0x7e53('0x1a')][_0x7e53('0x8')]('DataSchema'),_0x3ba9b3=_0x1fe929[_0x7e53('0x1a')][_0x7e53('0x8')]('StyleUtils')['normalizeConfig'](_0x41aec0,_0x1fe929['config'][_0x7e53('0x8')](_0x7e53('0x16')));_0x506428['enableCommand']('style',(_0x3592b3,{styleName:_0x46a4c1})=>{const _0x9db6bd=_0x1fe929[_0x7e53('0x9')][_0x7e53('0x6')][_0x7e53('0xc')],_0x642f2c=this[_0x7e53('0x7')](_0x46a4c1,_0x3ba9b3);if(!_0x642f2c)return;if(!_0x539f3f['enabledStyles'][_0x7e53('0x12')](_0x46a4c1))return;if(_0x9db6bd[_0x7e53('0x14')]&&!_0x642f2c[_0x7e53('0x21')])return void _0x3592b3({'styleName':_0x46a4c1});const _0x4fbf18=!_0x539f3f[_0x7e53('0x1b')]['includes'](_0x642f2c[_0x7e53('0xb')]);if(_0x642f2c[_0x7e53('0x21')]){const _0x421402=function(_0x27a986,_0xc6b439){const _0x4fdc06=new Set();for(const _0x88cb62 of _0x27a986){const _0x4d1948=_0x88cb62[_0x7e53('0x23')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x116d34 of _0x4d1948)if(_0xc6b439[_0x7e53('0x12')](_0x116d34[_0x7e53('0xb')])){_0x4fdc06[_0x7e53('0x3')](_0x116d34);break;}}return _0x4fdc06;}(_0x9db6bd[_0x7e53('0x1f')](),_0x642f2c[_0x7e53('0xa')]);_0x1fe929[_0x7e53('0x9')]['change'](()=>{for(const _0x8f3e73 of _0x421402)_0x506428[_0x7e53('0x20')](_0x8f3e73,{'commandName':_0x7e53('0x28'),'commandParams':[{'styleName':_0x46a4c1,'forceValue':_0x4fbf18}],'formatGroupId':_0x7e53('0x1d')+_0x46a4c1});});}else{let _0x504d3a=Array[_0x7e53('0x13')](_0x9db6bd[_0x7e53('0x0')]());if(!_0x4fbf18){const _0x225a48=Array[_0x7e53('0x13')](_0x41aec0['getDefinitionsForView'](_0x642f2c[_0x7e53('0x2')],!0x1))[0x0]['model'],_0x368d2f=[];for(const _0x2ad994 of _0x504d3a){const _0x4f34f1=this['_getRangesWithClasses'](_0x1fe929['model'],_0x2ad994,_0x642f2c[_0x7e53('0xe')],_0x225a48);_0x368d2f['push'](..._0x4f34f1);}_0x504d3a=_0x368d2f;}_0x1fe929['model']['change'](()=>{for(const _0x1b53a8 of _0x504d3a)_0x506428['markInlineFormat'](_0x1b53a8,{'commandName':_0x7e53('0x28'),'commandParams':[{'styleName':_0x46a4c1,'forceValue':_0x4fbf18}]});});}}),_0x506428[_0x7e53('0x10')][_0x7e53('0x25')](_0x151279=>{const {data:_0x4efae4}=_0x151279;if(_0x4efae4&&'style'===_0x4efae4[_0x7e53('0x24')])return _0x4efae4[_0x7e53('0x26')][0x0][_0x7e53('0x11')]?{'type':'format','content':_0x3fcbf1(_0x54df95,_0x7e53('0x4'),_0x4efae4[_0x7e53('0x26')][0x0][_0x7e53('0x15')][_0x7e53('0xf')]())}:{'type':_0x7e53('0x1c'),'content':_0x3fcbf1(_0x54df95,'*Remove\x20format:*\x20%0',_0x4efae4[_0x7e53('0x26')][0x0][_0x7e53('0x15')][_0x7e53('0xf')]())};});}[_0x7e53('0x7')](_0x556d74,_0x4a448a){let _0xd2af2b=_0x4a448a['block']['find'](_0xc89bcd=>_0xc89bcd[_0x7e53('0xb')]===_0x556d74);return _0xd2af2b||(_0xd2af2b=_0x4a448a[_0x7e53('0x27')][_0x7e53('0x17')](_0x470758=>_0x470758[_0x7e53('0xb')]===_0x556d74)),_0xd2af2b;}[_0x7e53('0x1e')](_0xd68717,_0x293bcd,_0x34ad62,_0x2461eb){const _0x4e0f3f=[];for(const _0x102a63 of _0x293bcd['getItems']()){const _0x2982d5=_0x102a63[_0x7e53('0xd')](_0x2461eb);_0x2982d5&&(_0x34ad62['every'](_0x31c520=>_0x2982d5[_0x7e53('0xe')][_0x7e53('0x12')](_0x31c520))&&_0x4e0f3f[_0x7e53('0x22')](_0xd68717[_0x7e53('0x19')](_0x102a63)));}return _0x4e0f3f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x28a8=['_getSuggestionCoords','locale','mapper','insertion','hasAttribute','_tablePostFixingSubtypes','fromRange','nodeBefore','TableUtils','setSelection','includes','ELEMENT_TABLE','forceValue','getRowIndexes','start','registerCustomCallback','change','getSuggestion','createRangeOn','min','removeTableColumn','_splitMarkerName','insertTableRowAbove','insertTable','discard','above','minRow','isArray','_setupColumnsRowsFixing','deletion','differ','document','span','ELEMENT_TABLE_COLUMN_WITH_TEXT','some','getChangedMarkers','writer','_suggestionFactory','findAncestor','selectTableColumn','getContainedElement','getFirstRange','isInContent','getCellLocation','ELEMENT_TABLE_ROW','colspan','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','max','last','length','commands','push','insertTableRowBelow','addRange','subType','tableRow','map','has','downcastDispatcher','rootName','model','suggestion','_getCoordsForCells','type','low','editor','item','getChanges','getAttribute','isTouching','getSelectionAffectedTableCells','registerElementLabel','element','first','_descriptionFactory','batch','name','selectTableRow','rowspan','getColumnIndexes','nodeAfter','$textProxy','addMarker:suggestion','plugins','enableCommand','toViewElement','left','removeClass','getChildren','add','showSuggestionHighlights','removeTableRow','createTableWalker','toLowerCase','tableColumn','accept','enqueueChange','TrackChangesEditing','selection','ELEMENT_TABLE_COLUMN','data','substr','refresh','classes','_acceptFormatSuggestionCallbackFactory','order','position','startsWith','afterInit','maxColumn','markMultiRangeInsertion','getItems','ELEMENT_TABLE_WITH_TEXT','*Remove:*\x20%0','_tableSuggestions','get','*Insert:*\x20%0','join','$graveyard','isEqual','execute','createRangeIn','options','insertTableColumnLeft','oldRange','every','end','cell','table','getRanges','from','tableCell','registerDescriptionCallback','detach','markMultiRangeDeletion','filter','tablePaste','root'];(function(_0xe6be8d,_0x28a863){const _0x2c0795=function(_0x3f2103){while(--_0x3f2103){_0xe6be8d['push'](_0xe6be8d['shift']());}};_0x2c0795(++_0x28a863);}(_0x28a8,0xa0));const _0x2c07=function(_0xe6be8d,_0x28a863){_0xe6be8d=_0xe6be8d-0x0;let _0x2c0795=_0x28a8[_0xe6be8d];return _0x2c0795;};import{Plugin as _0x37ee80}from'ckeditor5/src/core';import{LiveRange as _0x336e80}from'ckeditor5/src/engine';import{setHighlightHandling as _0x1d60d5}from'ckeditor5/src/widget';import{getTranslation as _0x5f1fed}from'../utils/common-translations';export default class dt extends _0x37ee80{constructor(_0x4f24e2){super(_0x4f24e2),this[_0x2c07('0x7b')]=['tableRow',_0x2c07('0x4a')],this[_0x2c07('0x5e')]=new Set();}[_0x2c07('0x58')](){const _0xddfd5a=this['editor'],_0x4765dd=_0xddfd5a['model'][_0x2c07('0xa')][_0x2c07('0x4e')];if(!_0xddfd5a[_0x2c07('0x3f')][_0x2c07('0x25')]('TableEditing'))return;const _0xff47ed=_0xddfd5a[_0x2c07('0x77')],_0x8d76c3=_0xddfd5a[_0x2c07('0x3f')]['get'](_0x2c07('0x4d')),_0x2fefce=_0xddfd5a[_0x2c07('0x3f')][_0x2c07('0x5f')](_0x2c07('0x7e'));_0x8d76c3[_0x2c07('0x36')][_0x2c07('0x33')](_0x2c07('0x6c'),_0x936896=>_0x5f1fed(_0xff47ed,_0x2c07('0x81'),_0x936896)),this[_0x2c07('0x7')](),_0x8d76c3[_0x2c07('0x40')](_0x2c07('0x2')),_0x8d76c3[_0x2c07('0x40')](_0x2c07('0x39')),_0x8d76c3[_0x2c07('0x40')](_0x2c07('0x12'));for(const _0x5729d3 of[_0x2c07('0x1'),_0x2c07('0x20')]){const _0x47a7ef=_0xddfd5a['commands'][_0x2c07('0x5f')](_0x5729d3);_0x8d76c3[_0x2c07('0x40')](_0x5729d3,_0x34f02a=>{_0xddfd5a[_0x2c07('0x28')][_0x2c07('0x86')](_0x55b184=>{_0x34f02a();const _0xcaa08d=_0x2c07('0x4')===_0x47a7ef['order'],_0x528cd1=_0x2fefce[_0x2c07('0x32')](_0x4765dd),_0x488489=_0x2fefce['getRowIndexes'](_0x528cd1),_0x15d59a=_0xcaa08d?_0x488489[_0x2c07('0x35')]-0x1:_0x488489[_0x2c07('0x1c')]+0x1,_0x452b20=_0x528cd1[0x0][_0x2c07('0x11')](_0x2c07('0x6c')),_0xfd94f8=_0x2fefce['createTableWalker'](_0x452b20,{'startRow':_0x15d59a,'endRow':_0x15d59a}),_0x2a2a7a=Array[_0x2c07('0x6e')](_0xfd94f8)['map'](_0x43ddc1=>_0x55b184['createRangeOn'](_0x43ddc1[_0x2c07('0x6b')]));_0x8d76c3[_0x2c07('0x5a')](_0x2a2a7a,_0x2c07('0x23'));});});}for(const _0x3b8991 of[_0x2c07('0x67'),'insertTableColumnRight']){const _0x21ef30=_0xddfd5a[_0x2c07('0x1e')][_0x2c07('0x5f')](_0x3b8991);_0x8d76c3[_0x2c07('0x40')](_0x3b8991,_0x16580d=>{_0xddfd5a[_0x2c07('0x28')][_0x2c07('0x86')](_0x5ec7af=>{_0x16580d();const _0x2b9be2=_0x2c07('0x42')===_0x21ef30[_0x2c07('0x55')],_0x5c5663=_0x2fefce[_0x2c07('0x32')](_0x4765dd),_0x474793=_0x2fefce[_0x2c07('0x3b')](_0x5c5663),_0x1a7dca=_0x2b9be2?_0x474793[_0x2c07('0x35')]-0x1:_0x474793[_0x2c07('0x1c')]+0x1,_0x4c7bbb=_0x5c5663[0x0][_0x2c07('0x11')](_0x2c07('0x6c')),_0x3c4917=_0x2fefce[_0x2c07('0x48')](_0x4c7bbb,{'startRow':0x0,'column':_0x1a7dca,'includeAllSlots':!0x1}),_0x7f8b66=Array['from'](_0x3c4917)['map'](_0x81139e=>_0x5ec7af[_0x2c07('0x88')](_0x81139e['cell']));_0x8d76c3['markMultiRangeInsertion'](_0x7f8b66,_0x2c07('0x4a'));});});}for(const _0x4f552e of[_0x2c07('0x47'),_0x2c07('0x8a')]){const _0x1c0c47=_0x4f552e['substr'](0xb),_0x5dfea4=_0x1c0c47[_0x2c07('0x49')](),_0x385ca0=_0x5dfea4['substr'](0x0,0x3)+_0x2c07('0xb'),_0xb00eba=_0x2c07('0x6c')+_0x1c0c47,_0x3d459a='min'+_0x1c0c47,_0x153c5a='max'+_0x1c0c47;_0x8d76c3[_0x2c07('0x40')](_0x4f552e,()=>{_0xddfd5a[_0x2c07('0x28')][_0x2c07('0x86')](_0x55f5bd=>{const _0x5ebde4=_0x2fefce[_0x2c07('0x32')](_0x4765dd),_0x25557f=_0x5ebde4[0x0][_0x2c07('0x11')](_0x2c07('0x6c'));let _0x11c8d8;if(_0x2c07('0x47')==_0x4f552e){const _0x49e9c7=_0x2fefce[_0x2c07('0x83')](_0x5ebde4);_0x11c8d8={'startRow':_0x49e9c7[_0x2c07('0x35')],'endRow':_0x49e9c7[_0x2c07('0x1c')],'includeAllSlots':!0x0};}else{const _0x45ed4a=_0x2fefce[_0x2c07('0x3b')](_0x5ebde4);_0x11c8d8={'startColumn':_0x45ed4a['first'],'endColumn':_0x45ed4a[_0x2c07('0x1c')],'includeAllSlots':!0x0};}const _0x2441d7=_0x2fefce['createTableWalker'](_0x25557f,_0x11c8d8),_0x27c6ba=Array['from'](_0x2441d7)['map'](({cell:_0x568450})=>_0x568450),_0x16b86e=se(_0x27c6ba[_0x2c07('0x73')](_0x9dccea=>_0x9dccea[_0x2c07('0x7a')](_0x385ca0))),_0x3ed827=se(_0x27c6ba[_0x2c07('0x73')](_0x218271=>!_0x218271['hasAttribute'](_0x385ca0)))[_0x2c07('0x24')](_0x26a380=>_0x55f5bd[_0x2c07('0x88')](_0x26a380)),_0x200edf=_0x8d76c3[_0x2c07('0x72')](_0x3ed827,_0xb00eba);if(_0x200edf&&(_0x2c07('0x23')==_0x200edf[_0x2c07('0x22')]||_0x2c07('0x4a')==_0x200edf[_0x2c07('0x22')])){const _0x4a9fd0=this[_0x2c07('0x76')](_0x200edf);for(const _0x3100e0 of _0x16b86e){const _0x157696=_0x55f5bd[_0x2c07('0x88')](_0x3100e0),_0xf7c1a3=_0x2fefce[_0x2c07('0x16')](_0x3100e0),_0x743065=_0x3100e0[_0x2c07('0x30')](_0x385ca0)-0x1,_0x537aed=_0x4a9fd0[_0x3d459a],_0x334700=_0x4a9fd0[_0x153c5a];_0x537aed<=_0xf7c1a3[_0x5dfea4]&&_0xf7c1a3[_0x5dfea4]+_0x743065<=_0x334700&&_0x200edf[_0x2c07('0x21')](_0x157696);}}});});}function _0x159235(_0x570728){const _0xdc273c=Array[_0x2c07('0x6e')](_0x4765dd[_0x2c07('0x6d')]())[_0x2c07('0x24')](_0x296b08=>_0x336e80[_0x2c07('0x7c')](_0x296b08));_0xddfd5a[_0x2c07('0x28')][_0x2c07('0x86')](_0x520d4b=>{const _0x479dd1=_0x520d4b[_0x2c07('0x37')];_0x570728=_0x570728[_0x2c07('0x73')](_0x25b871=>_0x2c07('0x62')!=_0x25b871[_0x2c07('0x75')][_0x2c07('0x27')]),_0x520d4b[_0x2c07('0x7f')](_0x570728),_0xddfd5a['commands'][_0x2c07('0x5f')](_0x2c07('0x47'))['refresh'](),_0xddfd5a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xddfd5a[_0x2c07('0x28')][_0x2c07('0x4c')](()=>{_0xddfd5a['model'][_0x2c07('0x4c')](_0x479dd1,_0x128af9=>{const _0x14d3e3=_0xdc273c[_0x2c07('0x73')](_0x27342e=>_0x2c07('0x62')!=_0x27342e['root']['rootName']);_0x14d3e3[_0x2c07('0x1d')]>0x0&&_0x128af9['setSelection'](_0x14d3e3);for(const _0x390704 of _0xdc273c)_0x390704[_0x2c07('0x71')]();});});});}function _0x2c1db8(_0x1d69a6){_0xddfd5a[_0x2c07('0x28')][_0x2c07('0x86')](_0x5604cb=>{const _0x3dce53=Array['from'](_0x4765dd[_0x2c07('0x6d')]())['map'](_0x41dfcd=>_0x336e80['fromRange'](_0x41dfcd)),_0x14c30a=[];for(const _0x429885 of _0x1d69a6)for(const _0x293335 of _0x429885[_0x2c07('0x5b')]({'shallow':!0x0}))_0x14c30a[_0x2c07('0x1f')](_0x293335);for(const _0x17946b of _0x14c30a)_0x2c07('0x62')!=_0x17946b[_0x2c07('0x75')][_0x2c07('0x27')]&&(_0x5604cb[_0x2c07('0x7f')](_0x5604cb['createPositionAt'](_0x17946b,0x0)),_0xddfd5a[_0x2c07('0x1e')][_0x2c07('0x5f')](_0x2c07('0x8a'))[_0x2c07('0x52')](),_0xddfd5a['execute'](_0x2c07('0x8a'),{'forceDefaultExecution':!0x0}));const _0x1fe404=_0x3dce53[_0x2c07('0x73')](_0x149457=>_0x2c07('0x62')!=_0x149457[_0x2c07('0x75')][_0x2c07('0x27')]);_0x1fe404[_0x2c07('0x1d')]>0x0&&_0x5604cb[_0x2c07('0x7f')](_0x1fe404);for(const _0x21c857 of _0x3dce53)_0x21c857['detach']();});}function _0xa5a306(_0x20b728,_0x19e36a){return _0x19e36a[_0x2c07('0x69')](_0x419c4a=>_0x20b728['some'](_0x1a7fae=>_0x1a7fae[_0x2c07('0x6a')][_0x2c07('0x63')](_0x419c4a[_0x2c07('0x84')])||_0x419c4a[_0x2c07('0x6a')]['isEqual'](_0x1a7fae[_0x2c07('0x84')])));}function _0x4e72e4(_0x15d2f7,_0x39d047){return _0x15d2f7[_0x2c07('0xd')](_0x4f3384=>_0x39d047[_0x2c07('0xd')](_0x2d0742=>_0x4f3384[_0x2c07('0x6a')][_0x2c07('0x31')](_0x2d0742['start'])));}_0xddfd5a[_0x2c07('0x50')][_0x2c07('0x26')]['on'](_0x2c07('0x3e'),(_0x373826,_0x12ea11,_0x5b244f)=>{if(!_0x5b244f[_0x2c07('0x66')][_0x2c07('0x46')])return;const _0xfb5afa=_0x12ea11[_0x2c07('0x2e')];if(!_0xfb5afa)return;const _0x333d6a=_0x5b244f[_0x2c07('0x78')][_0x2c07('0x41')](_0xfb5afa);function _0x544266(_0x544c61){return Array[_0x2c07('0x6')](_0x544c61)?_0x544c61:[_0x544c61];}_0x333d6a&&_0x2c07('0x6f')===_0xfb5afa[_0x2c07('0x38')]&&_0x1d60d5(_0x333d6a,_0x5b244f[_0x2c07('0xf')],(_0x49438f,_0x34f19d,_0x593f72)=>_0x593f72['addClass'](_0x544266(_0x34f19d[_0x2c07('0x53')]),_0x49438f),(_0x4a9f30,_0x382c02,_0x226105)=>_0x226105[_0x2c07('0x43')](_0x544266(_0x382c02['classes']),_0x4a9f30));},{'priority':'highest'}),_0x8d76c3['_descriptionFactory'][_0x2c07('0x70')](_0x4f1618=>{if('insertion'!=_0x4f1618[_0x2c07('0x2b')]&&_0x2c07('0x8')!=_0x4f1618[_0x2c07('0x2b')])return;const _0x353dcc=_0x4f1618[_0x2c07('0x13')]();if(null!=_0x353dcc&&_0x353dcc['is'](_0x2c07('0x34'),_0x2c07('0x6c'))){if('insertion'==_0x4f1618[_0x2c07('0x2b')]){const _0x57561a=_0x4f1618[_0x2c07('0x5b')]()[_0x2c07('0x73')](_0x2da136=>_0x2da136['is'](_0x2c07('0x3d')))[_0x2c07('0x24')](_0x110533=>_0x110533[_0x2c07('0x50')]);if(_0x57561a[_0x2c07('0x1d')])return{'type':_0x2c07('0x79'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x60'),_0x5f1fed(_0xff47ed,_0x2c07('0x5c'),'\x22'+_0x57561a[_0x2c07('0x61')]('\x20')+'\x22'))};}if(_0x2c07('0x8')==_0x4f1618['type']){const _0x4ecb5e=_0x4f1618['getItems']()[_0x2c07('0x73')](_0x54129b=>_0x54129b['is']('$textProxy'))[_0x2c07('0x24')](_0x53255e=>_0x53255e[_0x2c07('0x50')]);if(_0x4ecb5e[_0x2c07('0x1d')])return{'type':'deletion','content':_0x5f1fed(_0xff47ed,'*Remove:*\x20%0',_0x5f1fed(_0xff47ed,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ecb5e[_0x2c07('0x61')]('\x20')+'\x22'))};}}}),_0x8d76c3['_descriptionFactory'][_0x2c07('0x70')](_0x1313e7=>{if(_0x2c07('0x23')==_0x1313e7[_0x2c07('0x22')]){const _0x4e15a8=_0x1313e7[_0x2c07('0x5b')]()['filter'](_0x169a72=>_0x169a72['is']('$textProxy'))['map'](_0x3b2010=>_0x3b2010[_0x2c07('0x50')]),_0x2de262=this[_0x2c07('0x76')](_0x1313e7),_0x1161f6=_0x2de262['maxRow']-_0x2de262[_0x2c07('0x5')]+0x1;if(_0x2c07('0x79')==_0x1313e7['type'])return _0x4e15a8[_0x2c07('0x1d')]?{'type':_0x2c07('0x79'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x60'),_0x5f1fed(_0xff47ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1161f6,'\x22'+_0x4e15a8[_0x2c07('0x61')]('\x20')+'\x22']))}:{'type':_0x2c07('0x79'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x60'),_0x5f1fed(_0xff47ed,_0x2c07('0x17'),_0x1161f6))};if(_0x2c07('0x8')==_0x1313e7[_0x2c07('0x2b')])return _0x4e15a8[_0x2c07('0x1d')]?{'type':_0x2c07('0x8'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x5d'),_0x5f1fed(_0xff47ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1161f6,'\x22'+_0x4e15a8[_0x2c07('0x61')]('\x20')+'\x22']))}:{'type':_0x2c07('0x8'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x5d'),_0x5f1fed(_0xff47ed,'ELEMENT_TABLE_ROW',_0x1161f6))};}if(_0x2c07('0x4a')==_0x1313e7[_0x2c07('0x22')]){const _0x3b955d=_0x1313e7[_0x2c07('0x5b')]()[_0x2c07('0x73')](_0x210e42=>_0x210e42['is']('$textProxy'))[_0x2c07('0x24')](_0x58c8b4=>_0x58c8b4[_0x2c07('0x50')]),_0x4dbad4=this['_getSuggestionCoords'](_0x1313e7),_0x1d94b5=_0x4dbad4[_0x2c07('0x59')]-_0x4dbad4['minColumn']+0x1;if(_0x2c07('0x79')==_0x1313e7[_0x2c07('0x2b')])return _0x3b955d[_0x2c07('0x1d')]?{'type':_0x2c07('0x79'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x60'),_0x5f1fed(_0xff47ed,_0x2c07('0xc'),[_0x1d94b5,'\x22'+_0x3b955d['join']('\x20')+'\x22']))}:{'type':_0x2c07('0x79'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x60'),_0x5f1fed(_0xff47ed,_0x2c07('0x4f'),_0x1d94b5))};if(_0x2c07('0x8')==_0x1313e7[_0x2c07('0x2b')])return _0x3b955d[_0x2c07('0x1d')]?{'type':'deletion','content':_0x5f1fed(_0xff47ed,_0x2c07('0x5d'),_0x5f1fed(_0xff47ed,_0x2c07('0xc'),[_0x1d94b5,'\x22'+_0x3b955d[_0x2c07('0x61')]('\x20')+'\x22']))}:{'type':_0x2c07('0x8'),'content':_0x5f1fed(_0xff47ed,_0x2c07('0x5d'),_0x5f1fed(_0xff47ed,'ELEMENT_TABLE_COLUMN',_0x1d94b5))};}}),_0x8d76c3[_0x2c07('0x10')][_0x2c07('0x85')](_0x2c07('0x79'),'tableRow',_0x2c07('0x3'),_0x159235),_0x8d76c3['_suggestionFactory'][_0x2c07('0x85')](_0x2c07('0x8'),'tableRow',_0x2c07('0x4b'),_0x159235),_0x8d76c3[_0x2c07('0x10')]['registerCustomCallback'](_0x2c07('0x79'),_0x2c07('0x4a'),_0x2c07('0x3'),_0x2c1db8),_0x8d76c3[_0x2c07('0x10')][_0x2c07('0x85')](_0x2c07('0x8'),_0x2c07('0x4a'),'accept',_0x2c1db8),_0x8d76c3['_suggestionFactory'][_0x2c07('0x85')](_0x2c07('0x79'),_0x2c07('0x4a'),'join',_0xa5a306),_0x8d76c3['_suggestionFactory'][_0x2c07('0x85')](_0x2c07('0x8'),_0x2c07('0x4a'),_0x2c07('0x61'),_0xa5a306),_0x8d76c3[_0x2c07('0x10')][_0x2c07('0x85')]('insertion',_0x2c07('0x23'),'join',_0x4e72e4),_0x8d76c3[_0x2c07('0x10')]['registerCustomCallback'](_0x2c07('0x8'),'tableRow',_0x2c07('0x61'),_0x4e72e4);}[_0x2c07('0x54')](){const _0x25e970=this[_0x2c07('0x2d')],_0x43a66f=_0x25e970['model'][_0x2c07('0xa')]['selection'];return(_0x4b8bf8,_0x1f4932)=>{_0x25e970[_0x2c07('0x28')]['change'](_0x5084c1=>{const {commandName:_0x15d59e,commandParams:_0x9d7a60}=_0x1f4932;let _0x1004c0=_0x4b8bf8[0x0]['end'][_0x2c07('0x7d')];_0x9d7a60&&_0x9d7a60[0x0]&&!0x1===_0x9d7a60[0x0][_0x2c07('0x82')]&&(_0x1004c0=_0x4b8bf8[0x0][_0x2c07('0x84')]['nodeAfter']);const _0x3b46c9=_0x5084c1[_0x2c07('0x65')](_0x1004c0);if(_0x2c07('0x62')==_0x3b46c9[_0x2c07('0x75')]['rootName'])return;const _0x44ab96=Array[_0x2c07('0x6e')](_0x43a66f[_0x2c07('0x6d')]())[_0x2c07('0x24')](_0x3ccd95=>_0x336e80['fromRange'](_0x3ccd95));_0x5084c1[_0x2c07('0x7f')](_0x3b46c9),_0x25e970[_0x2c07('0x1e')][_0x2c07('0x5f')](_0x15d59e)[_0x2c07('0x52')](),_0x9d7a60['push']({'forceDefaultExecution':!0x0}),_0x25e970[_0x2c07('0x64')](_0x15d59e,..._0x9d7a60);const _0x45238a=_0x44ab96['filter'](_0x2f0cc6=>_0x2c07('0x62')!=_0x2f0cc6[_0x2c07('0x75')]['rootName']);_0x45238a[_0x2c07('0x1d')]>0x0&&_0x5084c1[_0x2c07('0x7f')](_0x45238a);for(const _0x445854 of _0x44ab96)_0x445854[_0x2c07('0x71')]();});};}[_0x2c07('0x2a')](_0x52d4cc){const _0x2af9bf=this[_0x2c07('0x2d')]['plugins'][_0x2c07('0x5f')](_0x2c07('0x7e'));let _0x53263=Number[_0x2c07('0x1a')],_0x1baf95=Number[_0x2c07('0x19')],_0x2a20d7=Number['MAX_SAFE_INTEGER'],_0x483dfc=Number[_0x2c07('0x19')];for(const _0x39af07 of _0x52d4cc){if(_0x2c07('0x62')==_0x39af07[_0x2c07('0x75')][_0x2c07('0x27')])continue;const {row:_0x25ac54,column:_0x3b1d67}=_0x2af9bf[_0x2c07('0x16')](_0x39af07),_0x5bd39a=_0x39af07[_0x2c07('0x7a')]('rowspan')?_0x39af07[_0x2c07('0x30')](_0x2c07('0x3a'))-0x1:0x0,_0x5729e3=_0x39af07[_0x2c07('0x7a')](_0x2c07('0x18'))?_0x39af07['getAttribute'](_0x2c07('0x18'))-0x1:0x0;_0x53263=_0x25ac54<_0x53263?_0x25ac54:_0x53263,_0x1baf95=_0x25ac54+_0x5bd39a>_0x1baf95?_0x25ac54+_0x5bd39a:_0x1baf95,_0x2a20d7=_0x3b1d67<_0x2a20d7?_0x3b1d67:_0x2a20d7,_0x483dfc=_0x3b1d67+_0x5729e3>_0x483dfc?_0x3b1d67+_0x5729e3:_0x483dfc;}return{'minRow':_0x53263,'maxRow':_0x1baf95,'minColumn':_0x2a20d7,'maxColumn':_0x483dfc};}[_0x2c07('0x7')](){const _0x155126=this[_0x2c07('0x2d')],_0x5aad36=_0x155126[_0x2c07('0x3f')][_0x2c07('0x5f')](_0x2c07('0x4d')),_0xbd3c99=_0x155126[_0x2c07('0x3f')][_0x2c07('0x5f')]('TableUtils');_0x155126[_0x2c07('0x28')][_0x2c07('0xa')]['on']('change:data',()=>{const _0x5a4a58=Array[_0x2c07('0x6e')](_0x155126[_0x2c07('0x28')][_0x2c07('0xa')][_0x2c07('0x9')][_0x2c07('0xe')]());for(const {name:_0x45ea56,data:_0x25e60a}of _0x5a4a58){const {group:_0x21cd14,id:_0x51db33,subType:_0x21c4c0}=_0x5aad36[_0x2c07('0x0')](_0x45ea56);if(_0x2c07('0x29')!=_0x21cd14)continue;if(null!=_0x25e60a[_0x2c07('0x68')])continue;const _0x3a5c82=_0x5aad36[_0x2c07('0x87')](_0x51db33);this[_0x2c07('0x7b')][_0x2c07('0x80')](_0x21c4c0)&&this[_0x2c07('0x5e')][_0x2c07('0x45')](_0x3a5c82);}},{'priority':_0x2c07('0x2c')});const _0x2bfe56=(_0x5417f5,_0x38d091)=>{let _0x5bd32=!0x1;const _0x487da6=_0x38d091[_0x2c07('0x88')](_0x5417f5),_0x2c891c=_0x5417f5[_0x2c07('0x11')](_0x2c07('0x6c')),_0x5eed42=_0xbd3c99[_0x2c07('0x16')](_0x5417f5);for(const _0x391499 of this[_0x2c07('0x5e')]){const _0x1f2c0e=_0x391499[_0x2c07('0x22')],_0x5256b6=_0x1f2c0e[_0x2c07('0x57')](_0x2c07('0x74')),_0x38332f=_0x1f2c0e[_0x2c07('0x51')](_0x5256b6?0xa:0x5),_0x127476=_0x38332f['toLowerCase'](),_0xd9d9c0=_0x127476[_0x2c07('0x51')](0x0,0x3)+_0x2c07('0xb'),_0x355a2f=_0x2c07('0x89')+_0x38332f,_0x5db30a=_0x2c07('0x1b')+_0x38332f;if(!_0x391499[_0x2c07('0x15')])continue;if(_0x2c891c!=_0x391499[_0x2c07('0x14')]()[_0x2c07('0x84')][_0x2c07('0x11')]('table'))continue;if(_0x391499['isIntersectingWithRange'](_0x487da6))continue;const _0x4910fe=_0x5417f5[_0x2c07('0x7a')](_0xd9d9c0)?_0x5417f5[_0x2c07('0x30')](_0xd9d9c0)-0x1:0x0,_0x529009=this['_getSuggestionCoords'](_0x391499),_0x3b5102=_0x529009[_0x355a2f],_0x976d4a=_0x529009[_0x5db30a];_0x3b5102<=_0x5eed42[_0x127476]&&_0x5eed42[_0x127476]+_0x4910fe<=_0x976d4a&&(_0x391499['addRange'](_0x487da6),_0x5bd32=!0x0);}return _0x5bd32;};_0x155126['model']['document']['registerPostFixer'](_0x129fd3=>{let _0x34c7ff=!0x1;for(const _0x33262a of _0x155126[_0x2c07('0x28')][_0x2c07('0xa')][_0x2c07('0x9')][_0x2c07('0x2f')]())if('insert'==_0x33262a[_0x2c07('0x2b')]){if(_0x2c07('0x23')==_0x33262a[_0x2c07('0x38')])for(const _0x845821 of _0x33262a[_0x2c07('0x56')][_0x2c07('0x3c')][_0x2c07('0x44')]())_0x34c7ff=_0x34c7ff||_0x2bfe56(_0x845821,_0x129fd3);else _0x2c07('0x6f')==_0x33262a[_0x2c07('0x38')]&&(_0x34c7ff=_0x34c7ff||_0x2bfe56(_0x33262a[_0x2c07('0x56')][_0x2c07('0x3c')],_0x129fd3));}return _0x34c7ff;});}[_0x2c07('0x76')](_0x5a6c98){return this['_getCoordsForCells'](_0x5a6c98[_0x2c07('0x6d')]()[_0x2c07('0x24')](_0x4a1388=>_0x4a1388[_0x2c07('0x84')][_0x2c07('0x3c')]));}}function se(_0x104c13){return Array[_0x2c07('0x6e')](new Set(_0x104c13)['values']());}
|
|
23
|
+
const _0xdfe5=['getItems','change:data','start','selectTableColumn','TableEditing','substr','*Remove:*\x20%0','removeTableColumn','_suggestionFactory','enableCommand','TableUtils','type','getChildren','tablePaste','tableRow','deletion','has','rowspan','editor','_descriptionFactory','table','isIntersectingWithRange','removeClass','showSuggestionHighlights','addClass','oldRange','left','getColumnIndexes','_tableSuggestions','*Insert:*\x20%0','createRangeOn','colspan','element','order','from','plugins','highest','afterInit','nodeBefore','span','getFirstRange','isArray','subType','position','minRow','createTableWalker','createRangeIn','end','selection','isTouching','options','getAttribute','includes','name','nodeAfter','_getCoordsForCells','addRange','_getSuggestionCoords','_acceptFormatSuggestionCallbackFactory','push','data','getRanges','fromRange','setSelection','MAX_SAFE_INTEGER','$textProxy','isInContent','startsWith','getCellLocation','toLowerCase','ELEMENT_TABLE_ROW_WITH_TEXT','insertTableColumnLeft','_tablePostFixingSubtypes','tableColumn','insertTableRowBelow','TrackChangesEditing','commands','low','registerElementLabel','map','addMarker:suggestion','enqueueChange','getChangedMarkers','getContainedElement','tableCell','registerCustomCallback','execute','some','ELEMENT_TABLE_WITH_TEXT','min','removeTableRow','markMultiRangeInsertion','getRowIndexes','ELEMENT_TABLE_COLUMN','$graveyard','rootName','maxRow','values','discard','last','getChanges','detach','root','ELEMENT_TABLE_COLUMN_WITH_TEXT','downcastDispatcher','isEqual','differ','ELEMENT_TABLE_ROW','join','filter','insertTableRowAbove','toViewElement','classes','markMultiRangeDeletion','insertTable','get','length','change','getSelectionAffectedTableCells','_setupColumnsRowsFixing','locale','document','ELEMENT_TABLE','first','hasAttribute','findAncestor','MIN_SAFE_INTEGER','model','insertion','registerDescriptionCallback'];(function(_0x2d6a2b,_0xdfe5a4){const _0x1db4ba=function(_0x833977){while(--_0x833977){_0x2d6a2b['push'](_0x2d6a2b['shift']());}};_0x1db4ba(++_0xdfe5a4);}(_0xdfe5,0x122));const _0x1db4=function(_0x2d6a2b,_0xdfe5a4){_0x2d6a2b=_0x2d6a2b-0x0;let _0x1db4ba=_0xdfe5[_0x2d6a2b];return _0x1db4ba;};import{Plugin as _0x451299}from'ckeditor5/src/core';import{LiveRange as _0x3f2bdc}from'ckeditor5/src/engine';import{setHighlightHandling as _0x280e00}from'ckeditor5/src/widget';import{getTranslation as _0x350cd1}from'../utils/common-translations';export default class dt extends _0x451299{constructor(_0x482c1d){super(_0x482c1d),this[_0x1db4('0x2a')]=[_0x1db4('0x72'),_0x1db4('0x2b')],this[_0x1db4('0x80')]=new Set();}[_0x1db4('0x7')](){const _0x16e9cf=this[_0x1db4('0x76')],_0x6087d=_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x5b')][_0x1db4('0x12')];if(!_0x16e9cf['plugins'][_0x1db4('0x74')](_0x1db4('0x68')))return;const _0x5efb3f=_0x16e9cf[_0x1db4('0x5a')],_0x177d22=_0x16e9cf[_0x1db4('0x5')][_0x1db4('0x55')](_0x1db4('0x2d')),_0x2597cd=_0x16e9cf[_0x1db4('0x5')][_0x1db4('0x55')](_0x1db4('0x6e'));_0x177d22[_0x1db4('0x77')][_0x1db4('0x30')](_0x1db4('0x78'),_0x14c2ba=>_0x350cd1(_0x5efb3f,_0x1db4('0x5c'),_0x14c2ba)),this[_0x1db4('0x59')](),_0x177d22[_0x1db4('0x6d')](_0x1db4('0x54')),_0x177d22[_0x1db4('0x6d')]('selectTableRow'),_0x177d22['enableCommand'](_0x1db4('0x67'));for(const _0x2c34a1 of[_0x1db4('0x50'),_0x1db4('0x2c')]){const _0x358ff9=_0x16e9cf[_0x1db4('0x2e')][_0x1db4('0x55')](_0x2c34a1);_0x177d22[_0x1db4('0x6d')](_0x2c34a1,_0xcaeeb4=>{_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x57')](_0x4c8476=>{_0xcaeeb4();const _0x549722='above'===_0x358ff9[_0x1db4('0x3')],_0x1d41a3=_0x2597cd[_0x1db4('0x58')](_0x6087d),_0x1d9ccf=_0x2597cd['getRowIndexes'](_0x1d41a3),_0xd6ae7a=_0x549722?_0x1d9ccf[_0x1db4('0x5d')]-0x1:_0x1d9ccf[_0x1db4('0x45')]+0x1,_0x46557d=_0x1d41a3[0x0]['findAncestor'](_0x1db4('0x78')),_0x402564=_0x2597cd[_0x1db4('0xf')](_0x46557d,{'startRow':_0xd6ae7a,'endRow':_0xd6ae7a}),_0x107507=Array[_0x1db4('0x4')](_0x402564)[_0x1db4('0x31')](_0xdc42bc=>_0x4c8476[_0x1db4('0x0')](_0xdc42bc['cell']));_0x177d22['markMultiRangeInsertion'](_0x107507,_0x1db4('0x72'));});});}for(const _0x3379df of[_0x1db4('0x29'),'insertTableColumnRight']){const _0x3240e5=_0x16e9cf[_0x1db4('0x2e')]['get'](_0x3379df);_0x177d22[_0x1db4('0x6d')](_0x3379df,_0x1ac57c=>{_0x16e9cf[_0x1db4('0x61')]['change'](_0x5745b3=>{_0x1ac57c();const _0x3cf83e=_0x1db4('0x7e')===_0x3240e5[_0x1db4('0x3')],_0x59ce6d=_0x2597cd[_0x1db4('0x58')](_0x6087d),_0x1ddb94=_0x2597cd[_0x1db4('0x7f')](_0x59ce6d),_0xf3f461=_0x3cf83e?_0x1ddb94[_0x1db4('0x5d')]-0x1:_0x1ddb94[_0x1db4('0x45')]+0x1,_0x4262e7=_0x59ce6d[0x0][_0x1db4('0x5f')]('table'),_0x566389=_0x2597cd[_0x1db4('0xf')](_0x4262e7,{'startRow':0x0,'column':_0xf3f461,'includeAllSlots':!0x1}),_0xdd7534=Array[_0x1db4('0x4')](_0x566389)[_0x1db4('0x31')](_0x4eb692=>_0x5745b3[_0x1db4('0x0')](_0x4eb692['cell']));_0x177d22[_0x1db4('0x3d')](_0xdd7534,_0x1db4('0x2b'));});});}for(const _0x361475 of[_0x1db4('0x3c'),_0x1db4('0x6b')]){const _0x371303=_0x361475[_0x1db4('0x69')](0xb),_0x352fd6=_0x371303[_0x1db4('0x27')](),_0x1a0649=_0x352fd6[_0x1db4('0x69')](0x0,0x3)+'span',_0x4a0bc6=_0x1db4('0x78')+_0x371303,_0x203a08='min'+_0x371303,_0x3dee84='max'+_0x371303;_0x177d22['enableCommand'](_0x361475,()=>{_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x57')](_0x1deec5=>{const _0x5d6610=_0x2597cd[_0x1db4('0x58')](_0x6087d),_0x541684=_0x5d6610[0x0]['findAncestor']('table');let _0x26ddc5;if(_0x1db4('0x3c')==_0x361475){const _0x3f734f=_0x2597cd[_0x1db4('0x3e')](_0x5d6610);_0x26ddc5={'startRow':_0x3f734f[_0x1db4('0x5d')],'endRow':_0x3f734f[_0x1db4('0x45')],'includeAllSlots':!0x0};}else{const _0x1a3a8c=_0x2597cd[_0x1db4('0x7f')](_0x5d6610);_0x26ddc5={'startColumn':_0x1a3a8c[_0x1db4('0x5d')],'endColumn':_0x1a3a8c[_0x1db4('0x45')],'includeAllSlots':!0x0};}const _0x667e73=_0x2597cd[_0x1db4('0xf')](_0x541684,_0x26ddc5),_0x25a6ad=Array[_0x1db4('0x4')](_0x667e73)[_0x1db4('0x31')](({cell:_0x566f63})=>_0x566f63),_0x307754=se(_0x25a6ad[_0x1db4('0x4f')](_0x2e52db=>_0x2e52db[_0x1db4('0x5e')](_0x1a0649))),_0x2e42b1=se(_0x25a6ad[_0x1db4('0x4f')](_0x1fe180=>!_0x1fe180[_0x1db4('0x5e')](_0x1a0649)))[_0x1db4('0x31')](_0x4b9cc6=>_0x1deec5[_0x1db4('0x0')](_0x4b9cc6)),_0x3197fb=_0x177d22[_0x1db4('0x53')](_0x2e42b1,_0x4a0bc6);if(_0x3197fb&&('tableRow'==_0x3197fb[_0x1db4('0xc')]||'tableColumn'==_0x3197fb['subType'])){const _0x3374da=this[_0x1db4('0x1b')](_0x3197fb);for(const _0x13d9c3 of _0x307754){const _0x475625=_0x1deec5[_0x1db4('0x0')](_0x13d9c3),_0x2070e2=_0x2597cd['getCellLocation'](_0x13d9c3),_0x340754=_0x13d9c3['getAttribute'](_0x1a0649)-0x1,_0x18ec8c=_0x3374da[_0x203a08],_0x5ac46d=_0x3374da[_0x3dee84];_0x18ec8c<=_0x2070e2[_0x352fd6]&&_0x2070e2[_0x352fd6]+_0x340754<=_0x5ac46d&&_0x3197fb[_0x1db4('0x1a')](_0x475625);}}});});}function _0x8e2711(_0x19f77d){const _0x4d0a1c=Array[_0x1db4('0x4')](_0x6087d[_0x1db4('0x1f')]())['map'](_0x5180d9=>_0x3f2bdc[_0x1db4('0x20')](_0x5180d9));_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x57')](_0x3625fa=>{const _0x33a044=_0x3625fa['batch'];_0x19f77d=_0x19f77d[_0x1db4('0x4f')](_0x31bc38=>'$graveyard'!=_0x31bc38[_0x1db4('0x48')][_0x1db4('0x41')]),_0x3625fa[_0x1db4('0x21')](_0x19f77d),_0x16e9cf['commands'][_0x1db4('0x55')](_0x1db4('0x3c'))['refresh'](),_0x16e9cf[_0x1db4('0x38')](_0x1db4('0x3c'),{'forceDefaultExecution':!0x0}),_0x16e9cf['model'][_0x1db4('0x33')](()=>{_0x16e9cf[_0x1db4('0x61')]['enqueueChange'](_0x33a044,_0x1319bf=>{const _0xe04514=_0x4d0a1c[_0x1db4('0x4f')](_0x513dd9=>'$graveyard'!=_0x513dd9[_0x1db4('0x48')][_0x1db4('0x41')]);_0xe04514[_0x1db4('0x56')]>0x0&&_0x1319bf[_0x1db4('0x21')](_0xe04514);for(const _0x37ed42 of _0x4d0a1c)_0x37ed42['detach']();});});});}function _0x319a66(_0x336c66){_0x16e9cf['model'][_0x1db4('0x57')](_0x4543ea=>{const _0x5a48a7=Array[_0x1db4('0x4')](_0x6087d['getRanges']())[_0x1db4('0x31')](_0x5a0001=>_0x3f2bdc[_0x1db4('0x20')](_0x5a0001)),_0x38ad37=[];for(const _0xcc498f of _0x336c66)for(const _0x4dbfe6 of _0xcc498f[_0x1db4('0x64')]({'shallow':!0x0}))_0x38ad37[_0x1db4('0x1d')](_0x4dbfe6);for(const _0x388b59 of _0x38ad37)_0x1db4('0x40')!=_0x388b59[_0x1db4('0x48')][_0x1db4('0x41')]&&(_0x4543ea[_0x1db4('0x21')](_0x4543ea['createPositionAt'](_0x388b59,0x0)),_0x16e9cf[_0x1db4('0x2e')][_0x1db4('0x55')](_0x1db4('0x6b'))['refresh'](),_0x16e9cf[_0x1db4('0x38')](_0x1db4('0x6b'),{'forceDefaultExecution':!0x0}));const _0x554113=_0x5a48a7[_0x1db4('0x4f')](_0x6d6f80=>_0x1db4('0x40')!=_0x6d6f80[_0x1db4('0x48')]['rootName']);_0x554113[_0x1db4('0x56')]>0x0&&_0x4543ea[_0x1db4('0x21')](_0x554113);for(const _0x1b3e54 of _0x5a48a7)_0x1b3e54[_0x1db4('0x47')]();});}function _0x10952c(_0xd80cce,_0x215748){return _0x215748['every'](_0x18813b=>_0xd80cce[_0x1db4('0x39')](_0xbe09ac=>_0xbe09ac['end'][_0x1db4('0x4b')](_0x18813b[_0x1db4('0x66')])||_0x18813b[_0x1db4('0x11')][_0x1db4('0x4b')](_0xbe09ac[_0x1db4('0x66')])));}function _0x40a05d(_0x3cd393,_0x451f5d){return _0x3cd393[_0x1db4('0x39')](_0x35a382=>_0x451f5d[_0x1db4('0x39')](_0x556e06=>_0x35a382[_0x1db4('0x11')][_0x1db4('0x13')](_0x556e06['start'])));}_0x16e9cf[_0x1db4('0x1e')][_0x1db4('0x4a')]['on'](_0x1db4('0x32'),(_0x287ad8,_0x4b47c9,_0x5a1a68)=>{if(!_0x5a1a68[_0x1db4('0x14')][_0x1db4('0x7b')])return;const _0x1082f1=_0x4b47c9['item'];if(!_0x1082f1)return;const _0x3c4bb1=_0x5a1a68['mapper'][_0x1db4('0x51')](_0x1082f1);function _0x40760f(_0x35bd6f){return Array[_0x1db4('0xb')](_0x35bd6f)?_0x35bd6f:[_0x35bd6f];}_0x3c4bb1&&_0x1db4('0x36')===_0x1082f1['name']&&_0x280e00(_0x3c4bb1,_0x5a1a68['writer'],(_0x23a2f0,_0x38c472,_0x3826b6)=>_0x3826b6[_0x1db4('0x7c')](_0x40760f(_0x38c472[_0x1db4('0x52')]),_0x23a2f0),(_0x19e879,_0x389113,_0x430673)=>_0x430673[_0x1db4('0x7a')](_0x40760f(_0x389113[_0x1db4('0x52')]),_0x19e879));},{'priority':_0x1db4('0x6')}),_0x177d22[_0x1db4('0x77')][_0x1db4('0x63')](_0xc5b151=>{if(_0x1db4('0x62')!=_0xc5b151[_0x1db4('0x6f')]&&_0x1db4('0x73')!=_0xc5b151[_0x1db4('0x6f')])return;const _0x3dda01=_0xc5b151[_0x1db4('0x35')]();if(null!=_0x3dda01&&_0x3dda01['is'](_0x1db4('0x2'),_0x1db4('0x78'))){if(_0x1db4('0x62')==_0xc5b151['type']){const _0x1f16d8=_0xc5b151[_0x1db4('0x64')]()['filter'](_0x50e706=>_0x50e706['is']('$textProxy'))[_0x1db4('0x31')](_0x52ed66=>_0x52ed66[_0x1db4('0x1e')]);if(_0x1f16d8[_0x1db4('0x56')])return{'type':'insertion','content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f16d8['join']('\x20')+'\x22'))};}if(_0x1db4('0x73')==_0xc5b151[_0x1db4('0x6f')]){const _0x299c2a=_0xc5b151['getItems']()[_0x1db4('0x4f')](_0x1d01cb=>_0x1d01cb['is'](_0x1db4('0x23')))[_0x1db4('0x31')](_0x460856=>_0x460856['data']);if(_0x299c2a[_0x1db4('0x56')])return{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x6a'),_0x350cd1(_0x5efb3f,_0x1db4('0x3a'),'\x22'+_0x299c2a[_0x1db4('0x4e')]('\x20')+'\x22'))};}}}),_0x177d22[_0x1db4('0x77')][_0x1db4('0x63')](_0x285633=>{if(_0x1db4('0x72')==_0x285633[_0x1db4('0xc')]){const _0x24e385=_0x285633[_0x1db4('0x64')]()['filter'](_0x426f9c=>_0x426f9c['is'](_0x1db4('0x23')))[_0x1db4('0x31')](_0x15c173=>_0x15c173['data']),_0x3cdfbb=this[_0x1db4('0x1b')](_0x285633),_0x205fc0=_0x3cdfbb[_0x1db4('0x42')]-_0x3cdfbb[_0x1db4('0xe')]+0x1;if(_0x1db4('0x62')==_0x285633[_0x1db4('0x6f')])return _0x24e385[_0x1db4('0x56')]?{'type':_0x1db4('0x62'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x28'),[_0x205fc0,'\x22'+_0x24e385[_0x1db4('0x4e')]('\x20')+'\x22']))}:{'type':_0x1db4('0x62'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x4d'),_0x205fc0))};if(_0x1db4('0x73')==_0x285633[_0x1db4('0x6f')])return _0x24e385[_0x1db4('0x56')]?{'type':'deletion','content':_0x350cd1(_0x5efb3f,_0x1db4('0x6a'),_0x350cd1(_0x5efb3f,_0x1db4('0x28'),[_0x205fc0,'\x22'+_0x24e385[_0x1db4('0x4e')]('\x20')+'\x22']))}:{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x6a'),_0x350cd1(_0x5efb3f,'ELEMENT_TABLE_ROW',_0x205fc0))};}if('tableColumn'==_0x285633[_0x1db4('0xc')]){const _0x4b063a=_0x285633[_0x1db4('0x64')]()[_0x1db4('0x4f')](_0x34f2f5=>_0x34f2f5['is']('$textProxy'))[_0x1db4('0x31')](_0x3df201=>_0x3df201[_0x1db4('0x1e')]),_0x4c743=this[_0x1db4('0x1b')](_0x285633),_0x1a4ead=_0x4c743['maxColumn']-_0x4c743['minColumn']+0x1;if(_0x1db4('0x62')==_0x285633[_0x1db4('0x6f')])return _0x4b063a['length']?{'type':_0x1db4('0x62'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x49'),[_0x1a4ead,'\x22'+_0x4b063a[_0x1db4('0x4e')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x3f'),_0x1a4ead))};if('deletion'==_0x285633[_0x1db4('0x6f')])return _0x4b063a['length']?{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,'*Remove:*\x20%0',_0x350cd1(_0x5efb3f,_0x1db4('0x49'),[_0x1a4ead,'\x22'+_0x4b063a['join']('\x20')+'\x22']))}:{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,'*Remove:*\x20%0',_0x350cd1(_0x5efb3f,_0x1db4('0x3f'),_0x1a4ead))};}}),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x62'),_0x1db4('0x72'),_0x1db4('0x44'),_0x8e2711),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x73'),_0x1db4('0x72'),'accept',_0x8e2711),_0x177d22['_suggestionFactory']['registerCustomCallback'](_0x1db4('0x62'),'tableColumn','discard',_0x319a66),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x73'),_0x1db4('0x2b'),'accept',_0x319a66),_0x177d22['_suggestionFactory'][_0x1db4('0x37')](_0x1db4('0x62'),_0x1db4('0x2b'),_0x1db4('0x4e'),_0x10952c),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x73'),_0x1db4('0x2b'),_0x1db4('0x4e'),_0x10952c),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x62'),_0x1db4('0x72'),_0x1db4('0x4e'),_0x40a05d),_0x177d22[_0x1db4('0x6c')]['registerCustomCallback'](_0x1db4('0x73'),_0x1db4('0x72'),'join',_0x40a05d);}[_0x1db4('0x1c')](){const _0x352f40=this[_0x1db4('0x76')],_0x4384c7=_0x352f40[_0x1db4('0x61')][_0x1db4('0x5b')][_0x1db4('0x12')];return(_0x10b35e,_0x85c2af)=>{_0x352f40['model'][_0x1db4('0x57')](_0x43c12d=>{const {commandName:_0xbadf0c,commandParams:_0x1c7d25}=_0x85c2af;let _0x4ca913=_0x10b35e[0x0][_0x1db4('0x11')][_0x1db4('0x8')];_0x1c7d25&&_0x1c7d25[0x0]&&!0x1===_0x1c7d25[0x0]['forceValue']&&(_0x4ca913=_0x10b35e[0x0]['start'][_0x1db4('0x18')]);const _0x89a85f=_0x43c12d[_0x1db4('0x10')](_0x4ca913);if(_0x1db4('0x40')==_0x89a85f['root'][_0x1db4('0x41')])return;const _0x390980=Array[_0x1db4('0x4')](_0x4384c7['getRanges']())[_0x1db4('0x31')](_0x17ca51=>_0x3f2bdc['fromRange'](_0x17ca51));_0x43c12d[_0x1db4('0x21')](_0x89a85f),_0x352f40[_0x1db4('0x2e')]['get'](_0xbadf0c)['refresh'](),_0x1c7d25[_0x1db4('0x1d')]({'forceDefaultExecution':!0x0}),_0x352f40[_0x1db4('0x38')](_0xbadf0c,..._0x1c7d25);const _0x8098dd=_0x390980[_0x1db4('0x4f')](_0x15609e=>_0x1db4('0x40')!=_0x15609e['root']['rootName']);_0x8098dd[_0x1db4('0x56')]>0x0&&_0x43c12d['setSelection'](_0x8098dd);for(const _0x15c4b5 of _0x390980)_0x15c4b5[_0x1db4('0x47')]();});};}['_getCoordsForCells'](_0x494c45){const _0x403359=this[_0x1db4('0x76')][_0x1db4('0x5')][_0x1db4('0x55')]('TableUtils');let _0x3a1ca3=Number['MAX_SAFE_INTEGER'],_0x4f2d95=Number[_0x1db4('0x60')],_0x38c699=Number[_0x1db4('0x22')],_0x3b90f7=Number['MIN_SAFE_INTEGER'];for(const _0x3fb011 of _0x494c45){if(_0x1db4('0x40')==_0x3fb011[_0x1db4('0x48')][_0x1db4('0x41')])continue;const {row:_0x5b4d80,column:_0x503f14}=_0x403359[_0x1db4('0x26')](_0x3fb011),_0x1bd08a=_0x3fb011['hasAttribute'](_0x1db4('0x75'))?_0x3fb011[_0x1db4('0x15')](_0x1db4('0x75'))-0x1:0x0,_0x122100=_0x3fb011[_0x1db4('0x5e')]('colspan')?_0x3fb011[_0x1db4('0x15')](_0x1db4('0x1'))-0x1:0x0;_0x3a1ca3=_0x5b4d80<_0x3a1ca3?_0x5b4d80:_0x3a1ca3,_0x4f2d95=_0x5b4d80+_0x1bd08a>_0x4f2d95?_0x5b4d80+_0x1bd08a:_0x4f2d95,_0x38c699=_0x503f14<_0x38c699?_0x503f14:_0x38c699,_0x3b90f7=_0x503f14+_0x122100>_0x3b90f7?_0x503f14+_0x122100:_0x3b90f7;}return{'minRow':_0x3a1ca3,'maxRow':_0x4f2d95,'minColumn':_0x38c699,'maxColumn':_0x3b90f7};}[_0x1db4('0x59')](){const _0x170ff5=this['editor'],_0x311af2=_0x170ff5[_0x1db4('0x5')][_0x1db4('0x55')]('TrackChangesEditing'),_0x233b7c=_0x170ff5['plugins'][_0x1db4('0x55')]('TableUtils');_0x170ff5[_0x1db4('0x61')][_0x1db4('0x5b')]['on'](_0x1db4('0x65'),()=>{const _0x418ce1=Array[_0x1db4('0x4')](_0x170ff5[_0x1db4('0x61')]['document'][_0x1db4('0x4c')][_0x1db4('0x34')]());for(const {name:_0x1faa22,data:_0x47b16a}of _0x418ce1){const {group:_0x2205e4,id:_0x1b20a4,subType:_0x22dce8}=_0x311af2['_splitMarkerName'](_0x1faa22);if('suggestion'!=_0x2205e4)continue;if(null!=_0x47b16a[_0x1db4('0x7d')])continue;const _0x483d32=_0x311af2['getSuggestion'](_0x1b20a4);this[_0x1db4('0x2a')][_0x1db4('0x16')](_0x22dce8)&&this[_0x1db4('0x80')]['add'](_0x483d32);}},{'priority':_0x1db4('0x2f')});const _0xb063c2=(_0x1f8d89,_0x4ae398)=>{let _0x25db1d=!0x1;const _0x40a927=_0x4ae398[_0x1db4('0x0')](_0x1f8d89),_0x2d6ae3=_0x1f8d89[_0x1db4('0x5f')]('table'),_0x36dcd5=_0x233b7c[_0x1db4('0x26')](_0x1f8d89);for(const _0xa58afb of this[_0x1db4('0x80')]){const _0x5e6af4=_0xa58afb[_0x1db4('0xc')],_0x5f65a=_0x5e6af4[_0x1db4('0x25')](_0x1db4('0x71')),_0x4a2fe4=_0x5e6af4[_0x1db4('0x69')](_0x5f65a?0xa:0x5),_0x1147b6=_0x4a2fe4[_0x1db4('0x27')](),_0x250ca8=_0x1147b6[_0x1db4('0x69')](0x0,0x3)+_0x1db4('0x9'),_0x18155c=_0x1db4('0x3b')+_0x4a2fe4,_0x29477b='max'+_0x4a2fe4;if(!_0xa58afb[_0x1db4('0x24')])continue;if(_0x2d6ae3!=_0xa58afb[_0x1db4('0xa')]()[_0x1db4('0x66')][_0x1db4('0x5f')](_0x1db4('0x78')))continue;if(_0xa58afb[_0x1db4('0x79')](_0x40a927))continue;const _0x55dbca=_0x1f8d89[_0x1db4('0x5e')](_0x250ca8)?_0x1f8d89[_0x1db4('0x15')](_0x250ca8)-0x1:0x0,_0x1a6ba6=this[_0x1db4('0x1b')](_0xa58afb),_0x2736fe=_0x1a6ba6[_0x18155c],_0xd7b842=_0x1a6ba6[_0x29477b];_0x2736fe<=_0x36dcd5[_0x1147b6]&&_0x36dcd5[_0x1147b6]+_0x55dbca<=_0xd7b842&&(_0xa58afb[_0x1db4('0x1a')](_0x40a927),_0x25db1d=!0x0);}return _0x25db1d;};_0x170ff5[_0x1db4('0x61')][_0x1db4('0x5b')]['registerPostFixer'](_0x544f79=>{let _0xf06c67=!0x1;for(const _0x54e5df of _0x170ff5[_0x1db4('0x61')][_0x1db4('0x5b')][_0x1db4('0x4c')][_0x1db4('0x46')]())if('insert'==_0x54e5df['type']){if('tableRow'==_0x54e5df[_0x1db4('0x17')])for(const _0x283a83 of _0x54e5df['position'][_0x1db4('0x18')][_0x1db4('0x70')]())_0xf06c67=_0xf06c67||_0xb063c2(_0x283a83,_0x544f79);else _0x1db4('0x36')==_0x54e5df['name']&&(_0xf06c67=_0xf06c67||_0xb063c2(_0x54e5df[_0x1db4('0xd')][_0x1db4('0x18')],_0x544f79));}return _0xf06c67;});}[_0x1db4('0x1b')](_0x6e8de3){return this[_0x1db4('0x19')](_0x6e8de3[_0x1db4('0x1f')]()['map'](_0x2ca35b=>_0x2ca35b[_0x1db4('0x66')][_0x1db4('0x18')]));}}function se(_0x101b7c){return Array[_0x1db4('0x4')](new Set(_0x101b7c)[_0x1db4('0x43')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b60=['TrackChangesEditing','TableCaptionEditing','get','toggleTableCaption','plugins','has','afterInit'];(function(_0x2f688a,_0x5b6052){const _0x415a46=function(_0x20459a){while(--_0x20459a){_0x2f688a['push'](_0x2f688a['shift']());}};_0x415a46(++_0x5b6052);}(_0x5b60,0x12b));const _0x415a=function(_0x2f688a,_0x5b6052){_0x2f688a=_0x2f688a-0x0;let _0x415a46=_0x5b60[_0x2f688a];return _0x415a46;};import{Plugin as _0x2729d0}from'ckeditor5/src/core';import _0x3d16a0 from'./table';export default class At extends _0x2729d0{static get['requires'](){return[_0x3d16a0];}[_0x415a('0x1')](){const _0x5562ea=this['editor'];if(!_0x5562ea[_0x415a('0x6')][_0x415a('0x0')](_0x415a('0x3')))return;_0x5562ea[_0x415a('0x6')][_0x415a('0x4')](_0x415a('0x2'))['enableCommand'](_0x415a('0x5'));}}
|