@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231009.0 → 0.0.0-nightly-20231011.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.d.ts +21 -0
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -2
- 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 _0x382f=['listItem','selection','styles','reversed','plugins','getLastPosition','listReversed','startIndex','change','length','backward','commandName','parent','_getSuggestionBlocks','numbered','*Format:*\x20set\x20order\x20to\x20regular','handleListStyleCommand','ListUtils','createPositionAt','_LIST_','afterInit','bind','_getSuggestionBlocksForListStyle','_getTranslationKeyForListStyle','markMultiRangeBlockFormat','map','TrackChangesEditing','get','handleListStartCommand','*Format:*\x20set\x20order\x20to\x20reversed','forward','model','push','getSiblingNodes','from','getListTypeFromListStyleType','before','getFirstPosition','enableCommand','listType','getSelectedBlocks','config','editor','handleDescriptions','commandParams','ListPropertiesEditing','locale','filter','document','createRange','format','getAttribute','listStyle','toUpperCase','list.properties','unshift','listStart','type','element'];(function(_0x5450cc,_0x382f9f){const _0x241137=function(_0x148e12){while(--_0x148e12){_0x5450cc['push'](_0x5450cc['shift']());}};_0x241137(++_0x382f9f);}(_0x382f,0x1c6));const _0x2411=function(_0x5450cc,_0x382f9f){_0x5450cc=_0x5450cc-0x0;let _0x241137=_0x382f[_0x5450cc];return _0x241137;};import{Plugin as _0x2f8ac4}from'ckeditor5/src/core';import{getTranslation as _0x4dd710}from'../utils/common-translations';export default class ot extends _0x2f8ac4{[_0x2411('0x26')](){if(!this['editor']['plugins']['has'](_0x2411('0x4')))return;const _0x4655c1=this[_0x2411('0x1')][_0x2411('0x0')]['get'](_0x2411('0xd')),_0x7b6bc4=this[_0x2411('0x1')]['plugins'][_0x2411('0x2d')]('TrackChangesEditing');_0x4655c1[_0x2411('0x14')]&&_0x7b6bc4[_0x2411('0x38')](_0x2411('0xb'),this['handleListStyleCommand']['bind'](this)),_0x4655c1[_0x2411('0x15')]&&_0x7b6bc4[_0x2411('0x38')](_0x2411('0x18'),this['handleListReversedCommand']['bind'](this)),_0x4655c1[_0x2411('0x19')]&&_0x7b6bc4[_0x2411('0x38')](_0x2411('0xf'),this[_0x2411('0x2e')][_0x2411('0x27')](this)),_0x7b6bc4['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions'][_0x2411('0x27')](this));}[_0x2411('0x22')](_0x3c173c,_0x531e5f={}){const _0x41daef=this[_0x2411('0x1')][_0x2411('0x16')][_0x2411('0x2d')](_0x2411('0x2c')),_0x6a095b=this[_0x2411('0x28')]();this['editor'][_0x2411('0x31')][_0x2411('0x1a')](()=>{_0x41daef[_0x2411('0x2a')](_0x6a095b,{'commandName':'listStyle','commandParams':[{'type':_0x531e5f[_0x2411('0x10')]}],'formatGroupId':_0x2411('0xb')});});}['handleListReversedCommand'](_0x3682a6,_0x26a2d1={}){const _0x2a52a7=this['editor'][_0x2411('0x16')][_0x2411('0x2d')]('TrackChangesEditing'),_0x8d8345=this[_0x2411('0x1f')](_0x45e1ea=>_0x45e1ea['is'](_0x2411('0x11'),_0x2411('0x12'))&&_0x2411('0x20')===_0x45e1ea['getAttribute'](_0x2411('0x39')));if(_0x8d8345['length']<0x1)return;const _0x3df99b=_0x8d8345['map'](_0x6628c9=>this[_0x2411('0x1')]['model'][_0x2411('0x8')](this['editor'][_0x2411('0x31')][_0x2411('0x24')](_0x6628c9,_0x2411('0x36')),this[_0x2411('0x1')][_0x2411('0x31')][_0x2411('0x24')](_0x6628c9,0x0)));this[_0x2411('0x1')][_0x2411('0x31')][_0x2411('0x1a')](()=>{_0x2a52a7[_0x2411('0x2a')](_0x3df99b,{'commandName':'listReversed','commandParams':[{'reversed':_0x26a2d1[_0x2411('0x15')]}],'formatGroupId':_0x2411('0x18')});});}['handleListStartCommand'](_0x416822,_0x3920e4={}){const _0x469146=this[_0x2411('0x1')][_0x2411('0x16')][_0x2411('0x2d')](_0x2411('0x2c')),_0x8521ae=this[_0x2411('0x1f')](_0x525ead=>_0x525ead['is'](_0x2411('0x11'),_0x2411('0x12'))&&'numbered'===_0x525ead[_0x2411('0xa')](_0x2411('0x39')));if(_0x8521ae[_0x2411('0x1b')]<0x1)return;const _0x58f119=_0x8521ae[_0x2411('0x2b')](_0x1d1337=>this['editor']['model'][_0x2411('0x8')](this['editor'][_0x2411('0x31')]['createPositionAt'](_0x1d1337,_0x2411('0x36')),this['editor'][_0x2411('0x31')][_0x2411('0x24')](_0x1d1337,0x0)));this[_0x2411('0x1')][_0x2411('0x31')][_0x2411('0x1a')](()=>{_0x469146[_0x2411('0x2a')](_0x58f119,{'commandName':'listStart','commandParams':[{'startIndex':_0x3920e4[_0x2411('0x19')]}],'formatGroupId':'listStart'});});}[_0x2411('0x2')](_0x36fa4b){const _0x5bdd2d=this['editor'][_0x2411('0x5')],{data:_0x10b516}=_0x36fa4b;if(!_0x10b516)return;let _0x5b5e66,_0x15d77c;switch(_0x10b516[_0x2411('0x1d')]){case _0x2411('0xb'):_0x5b5e66='*Change\x20to:*\x20%0',_0x15d77c={'type':_0x2411('0x9'),'content':_0x4dd710(_0x5bdd2d,_0x5b5e66,_0x4dd710(_0x5bdd2d,this[_0x2411('0x29')](_0x10b516[_0x2411('0x3')][0x0][_0x2411('0x10')])))};break;case'listReversed':_0x5b5e66=_0x10b516[_0x2411('0x3')][0x0][_0x2411('0x15')]?_0x2411('0x2f'):_0x2411('0x21'),_0x15d77c={'type':_0x2411('0x9'),'content':_0x4dd710(_0x5bdd2d,_0x5b5e66)};break;case _0x2411('0xf'):_0x5b5e66='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15d77c={'type':_0x2411('0x9'),'content':_0x4dd710(_0x5bdd2d,_0x5b5e66,_0x10b516[_0x2411('0x3')][0x0][_0x2411('0x19')])};}return _0x15d77c;}[_0x2411('0x28')](){var _0x309d56,_0x488bf8,_0x178688,_0x5240c0;const _0x2d6e9f=this[_0x2411('0x1')][_0x2411('0x16')][_0x2411('0x2d')]('ListUtils');let _0x38f092=Array[_0x2411('0x34')](this[_0x2411('0x1')]['model'][_0x2411('0x7')][_0x2411('0x13')][_0x2411('0x3a')]());return(null===(_0x309d56=_0x38f092[0x0])||void 0x0===_0x309d56?void 0x0:_0x309d56['is'](_0x2411('0x11'),_0x2411('0x12')))&&_0x38f092[_0x2411('0xe')](..._0x2d6e9f[_0x2411('0x33')](this[_0x2411('0x1')][_0x2411('0x31')][_0x2411('0x7')][_0x2411('0x13')][_0x2411('0x37')](),_0x2411('0x1c'))),(null===(_0x488bf8=_0x38f092[_0x38f092[_0x2411('0x1b')]-0x1])||void 0x0===_0x488bf8?void 0x0:_0x488bf8['is'](_0x2411('0x11'),_0x2411('0x12')))&&_0x38f092[_0x2411('0x32')](..._0x2d6e9f[_0x2411('0x33')](this[_0x2411('0x1')]['model'][_0x2411('0x7')][_0x2411('0x13')][_0x2411('0x17')](),'forward')),_0x38f092=[...new Set(_0x38f092)],(null===(_0x5240c0=null===(_0x178688=this[_0x2411('0x1')][_0x2411('0x31')][_0x2411('0x7')][_0x2411('0x13')]['getFirstPosition']())||void 0x0===_0x178688?void 0x0:_0x178688[_0x2411('0x1e')])||void 0x0===_0x5240c0?void 0x0:_0x5240c0['is'](_0x2411('0x11'),_0x2411('0x12')))&&(_0x38f092=_0x38f092[_0x2411('0x6')](_0x29f28d=>_0x29f28d['is'](_0x2411('0x11'),_0x2411('0x12')))),_0x38f092;}['_getSuggestionBlocks'](_0x1da449){const _0x338acb=this[_0x2411('0x1')][_0x2411('0x16')]['get'](_0x2411('0x23'));let _0x3c6bca=Array['from'](this['editor'][_0x2411('0x31')][_0x2411('0x7')][_0x2411('0x13')][_0x2411('0x3a')]())['filter'](_0x1da449)[_0x2411('0x2b')](_0x2ff45f=>{const _0x46887d=this['editor'][_0x2411('0x31')][_0x2411('0x24')](_0x2ff45f,0x0);return[..._0x338acb[_0x2411('0x33')](_0x46887d,_0x2411('0x1c')),..._0x338acb[_0x2411('0x33')](_0x46887d,_0x2411('0x30'))];})['flat']();return _0x3c6bca=[...new Set(_0x3c6bca)],_0x3c6bca;}['_getTranslationKeyForListStyle'](_0x26c8c9){return'ELEMENT_'+this[_0x2411('0x1')]['plugins'][_0x2411('0x2d')](_0x2411('0x23'))[_0x2411('0x35')](_0x26c8c9)[_0x2411('0xc')]()+_0x2411('0x25')+_0x26c8c9[_0x2411('0xc')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26b1=['for','conversion','locale','editor','afterInit','has','enableCommand','plugins','_descriptionFactory','high','options','createEmptyElement','div','registerElementLabel','showSuggestionHighlights','attribute:url:media','media','downcastDispatcher'];(function(_0x197802,_0x26b145){const _0x53bd8d=function(_0x26ce40){while(--_0x26ce40){_0x197802['push'](_0x197802['shift']());}};_0x53bd8d(++_0x26b145);}(_0x26b1,0xcf));const _0x53bd=function(_0x197802,_0x26b145){_0x197802=_0x197802-0x0;let _0x53bd8d=_0x26b1[_0x197802];return _0x53bd8d;};import{Plugin as _0x489daa}from'ckeditor5/src/core';import{getTranslation as _0x760dfd}from'../utils/common-translations';export default class rt extends _0x489daa{[_0x53bd('0xd')](){const _0x38a6f1=this[_0x53bd('0xc')];if(!_0x38a6f1[_0x53bd('0x10')][_0x53bd('0xe')]('MediaEmbedEditing'))return;const _0x5acaae=_0x38a6f1[_0x53bd('0x10')]['get']('TrackChangesEditing'),_0x1b31ab=_0x38a6f1[_0x53bd('0xb')];_0x5acaae[_0x53bd('0xf')]('mediaEmbed'),_0x5acaae[_0x53bd('0x11')][_0x53bd('0x4')](_0x53bd('0x7'),_0xc67d8e=>_0x760dfd(_0x1b31ab,'ELEMENT_MEDIA',_0xc67d8e)),_0x38a6f1[_0x53bd('0xa')][_0x53bd('0x9')]('dataDowncast')['elementToElement']({'model':_0x53bd('0x7'),'view':(_0xaef1b0,{writer:_0x1bbcd7,options:_0x305617})=>{if(_0x305617[_0x53bd('0x5')])return _0x1bbcd7[_0x53bd('0x2')](_0x53bd('0x3'));},'converterPriority':_0x53bd('0x0')}),_0x38a6f1['data'][_0x53bd('0x8')]['on'](_0x53bd('0x6'),(_0x24df82,_0x154175,_0x14f05b)=>{_0x14f05b[_0x53bd('0x1')][_0x53bd('0x5')]&&_0x24df82['stop']();},{'priority':_0x53bd('0x0')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x212d=['enableCommand','has','TrackChangesEditing','plugins','afterInit','MentionEditing','get','mention'];(function(_0x2e65c5,_0x212de6){const _0x4b0517=function(_0x4d10dc){while(--_0x4d10dc){_0x2e65c5['push'](_0x2e65c5['shift']());}};_0x4b0517(++_0x212de6);}(_0x212d,0x127));const _0x4b05=function(_0x2e65c5,_0x212de6){_0x2e65c5=_0x2e65c5-0x0;let _0x4b0517=_0x212d[_0x2e65c5];return _0x4b0517;};import{Plugin as _0xd97028}from'ckeditor5/src/core';export default class at extends _0xd97028{[_0x4b05('0x5')](){const _0x5c1dba=this['editor'];_0x5c1dba[_0x4b05('0x4')][_0x4b05('0x2')](_0x4b05('0x6'))&&_0x5c1dba[_0x4b05('0x4')][_0x4b05('0x7')](_0x4b05('0x3'))[_0x4b05('0x1')](_0x4b05('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a59=['PageBreakEditing','afterInit','enableCommand','plugins','has','ELEMENT_PAGE_BREAK','get','locale','_descriptionFactory','TrackChangesEditing','pageBreak','editor'];(function(_0x14ce9d,_0x3a5957){const _0x57c82c=function(_0x50aa43){while(--_0x50aa43){_0x14ce9d['push'](_0x14ce9d['shift']());}};_0x57c82c(++_0x3a5957);}(_0x3a59,0xbb));const _0x57c8=function(_0x14ce9d,_0x3a5957){_0x14ce9d=_0x14ce9d-0x0;let _0x57c82c=_0x3a59[_0x14ce9d];return _0x57c82c;};import{Plugin as _0x39f739}from'ckeditor5/src/core';import{getTranslation as _0x455e6e}from'../utils/common-translations';export default class ct extends _0x39f739{[_0x57c8('0x6')](){const _0x14d6c4=this[_0x57c8('0x4')];if(!_0x14d6c4['plugins'][_0x57c8('0x9')](_0x57c8('0x5')))return;_0x14d6c4[_0x57c8('0x8')][_0x57c8('0xb')](_0x57c8('0x2'))[_0x57c8('0x7')](_0x57c8('0x3'));const _0x2ba1a2=_0x14d6c4[_0x57c8('0x8')][_0x57c8('0xb')](_0x57c8('0x2')),_0x4be571=_0x14d6c4[_0x57c8('0x0')];_0x2ba1a2[_0x57c8('0x1')]['registerElementLabel'](_0x57c8('0x3'),_0x5f4721=>_0x455e6e(_0x4be571,_0x57c8('0xa'),_0x5f4721));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4203=['insert','*Insert:*\x20%0','highest','from','end','insertion','TrackChangesEditing','createUIElement','getItemLabel','isObject','span','paragraph','name','model','type','markerRange','addMarker:suggestion:insertion','filter','activeMarkers','downcastDispatcher','editing','showSuggestionHighlights','consume','isTouching','editor','nodeAfter','parent','commandName','selection','insertParagraph','$text','schema','locale','ck-suggestion-marker--active','addClass','get','includes','ELEMENT_PARAGRAPH','data','getSelectedBlocks','isBlock','bindElementToMarker','options','ck-suggestion-marker-split','start','plugins','_descriptionFactory','markerName','registerElementLabel','markBlockFormat','document','isLimit','mapper','consumable','format','registerDescriptionCallback','enableCommand','checkChild'];(function(_0x504f44,_0x420384){const _0x145aec=function(_0x54d55e){while(--_0x54d55e){_0x504f44['push'](_0x504f44['shift']());}};_0x145aec(++_0x420384);}(_0x4203,0x1b5));const _0x145a=function(_0x504f44,_0x420384){_0x504f44=_0x504f44-0x0;let _0x145aec=_0x4203[_0x504f44];return _0x145aec;};import{Plugin as _0x412b93}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x17b5a2}from'./utils';import{getTranslation as _0x28e36b}from'../utils/common-translations';export default class ht extends _0x412b93{['afterInit'](){const _0x28a710=this[_0x145a('0x33')];if(!_0x28a710[_0x145a('0xe')]['has']('Paragraph'))return;const _0x14c942=_0x28a710[_0x145a('0x1')],_0x55eda0=_0x28a710[_0x145a('0xe')][_0x145a('0x4')](_0x145a('0x21'));_0x55eda0[_0x145a('0xf')][_0x145a('0x11')](_0x145a('0x26'),_0x134eb8=>_0x28e36b(_0x14c942,_0x145a('0x6'),_0x134eb8)),_0x55eda0['enableCommand']('paragraph',(_0x46790c,_0x20b440={})=>{const _0x354c74=_0x28a710[_0x145a('0x28')][_0x145a('0x13')],_0x17d24b=_0x20b440[_0x145a('0x37')]||_0x354c74[_0x145a('0x37')],_0x2ee0b6=Array[_0x145a('0x1e')](_0x17d24b[_0x145a('0x8')]())[_0x145a('0x2c')](_0x25899e=>function(_0x1a5838,_0x286104){return _0x286104[_0x145a('0x1a')](_0x1a5838[_0x145a('0x35')],_0x145a('0x26'))&&!_0x286104[_0x145a('0x24')](_0x1a5838)&&_0x145a('0x26')!=_0x1a5838[_0x145a('0x27')];}(_0x25899e,this[_0x145a('0x33')][_0x145a('0x28')][_0x145a('0x0')]));_0x28a710[_0x145a('0x28')]['change'](()=>{for(const _0x17fa0b of _0x2ee0b6)_0x55eda0[_0x145a('0x12')](_0x17fa0b,{'commandName':_0x145a('0x26'),'commandParams':[],'formatGroupId':'blockName'},_0x17b5a2(_0x17fa0b));});}),_0x55eda0[_0x145a('0xf')][_0x145a('0x18')](_0x4ed29b=>{const {data:_0x6b077b}=_0x4ed29b;if(_0x6b077b&&_0x145a('0x26')==_0x6b077b[_0x145a('0x36')])return{'type':_0x145a('0x17'),'content':_0x28e36b(_0x14c942,'*Change\x20to:*\x20%0',_0x28e36b(_0x14c942,_0x145a('0x6')))};}),_0x55eda0[_0x145a('0x19')](_0x145a('0x38')),_0x28a710[_0x145a('0x2f')]['downcastDispatcher']['on'](_0x145a('0x2b'),ar(_0x28a710),{'priority':_0x145a('0x1d')}),_0x28a710[_0x145a('0x7')][_0x145a('0x2e')]['on'](_0x145a('0x2b'),(_0xfbc234,_0x4e9bce,_0x399592)=>{_0x399592[_0x145a('0xb')][_0x145a('0x30')]&&ar(_0x28a710,{'showActiveMarker':!0x1})(_0xfbc234,_0x4e9bce,_0x399592);},{'priority':_0x145a('0x1d')});const _0x2ca68d=_0x55eda0[_0x145a('0xf')];_0x2ca68d['registerDescriptionCallback'](_0x58c225=>{if(_0x145a('0x20')!==_0x58c225[_0x145a('0x29')])return;const {start:_0x598f91,end:_0x5541b0}=_0x58c225['getFirstRange']();if(!_0x598f91[_0x145a('0x32')](_0x5541b0)||!_0x598f91['nodeAfter'])return;const _0x42e28a=_0x28a710[_0x145a('0x28')][_0x145a('0x0')],_0x1068b1=_0x598f91[_0x145a('0x34')];return _0x42e28a[_0x145a('0x9')](_0x1068b1)&&!_0x42e28a[_0x145a('0x14')](_0x1068b1)&&_0x42e28a['checkChild'](_0x1068b1,_0x145a('0x39'))?{'type':'insertion','content':_0x28e36b(_0x14c942,_0x145a('0x1c'),_0x2ca68d[_0x145a('0x23')](_0x1068b1,0x1))}:void 0x0;});}}function ar(_0x3acaa1,{showActiveMarker:_0x28245a=!0x0}={}){return(_0x441714,_0xf3764e,_0x2ad70d)=>{const _0x229f4f=_0x3acaa1['plugins']['get'](_0x145a('0x21')),_0x447338=_0xf3764e[_0x145a('0x2a')][_0x145a('0xd')],_0x5ee480=_0xf3764e['markerRange'][_0x145a('0x1f')],_0xd9d102=_0x3acaa1[_0x145a('0x28')]['schema'];if(!_0x447338[_0x145a('0x32')](_0x5ee480)||!_0x447338[_0x145a('0x34')])return;const _0x7936e3=_0x447338['nodeAfter'];if(_0xd9d102[_0x145a('0x9')](_0x7936e3)&&!_0xd9d102['isLimit'](_0x7936e3)&&_0xd9d102[_0x145a('0x1a')](_0x7936e3,'$text')){if(!_0x2ad70d[_0x145a('0x16')][_0x145a('0x31')](_0xf3764e[_0x145a('0x2a')],_0x441714['name']))return;const _0x5e14dc=_0x2ad70d['writer'][_0x145a('0x22')](_0x145a('0x25'),{'class':_0x145a('0xc')}),_0x43d6b5=_0x2ad70d[_0x145a('0x15')]['toViewPosition'](_0x5ee480);_0x28245a&&_0x229f4f[_0x145a('0x2d')][_0x145a('0x5')](_0xf3764e[_0x145a('0x10')])&&_0x2ad70d['writer'][_0x145a('0x3')](_0x145a('0x2'),_0x5e14dc),_0x2ad70d['writer'][_0x145a('0x1b')](_0x43d6b5,_0x5e14dc),_0x2ad70d[_0x145a('0x15')][_0x145a('0xa')](_0x5e14dc,_0xf3764e[_0x145a('0x10')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f0c=['getAttributes','registerDescriptionCallback','change','document','selection','model','get','getRanges','has','schema','plugins','TrackChangesEditing','locale','from','createRangeOn','editor','isCollapsed','getAttributeProperties','RemoveFormatEditing','commandName','enableCommand','getItems','removeFormat','*Remove\x20all\x20formatting*'];(function(_0x48c037,_0x4f0c30){const _0x3f0223=function(_0x4115ea){while(--_0x4115ea){_0x48c037['push'](_0x48c037['shift']());}};_0x3f0223(++_0x4f0c30);}(_0x4f0c,0x195));const _0x3f02=function(_0x48c037,_0x4f0c30){_0x48c037=_0x48c037-0x0;let _0x3f0223=_0x4f0c[_0x48c037];return _0x3f0223;};import{Plugin as _0x2e9de7}from'ckeditor5/src/core';import{getTranslation as _0x13af4f}from'../utils/common-translations';export default class ut extends _0x2e9de7{['afterInit'](){const _0x51ef31=this[_0x3f02('0x12')];if(!_0x51ef31[_0x3f02('0xd')][_0x3f02('0xb')](_0x3f02('0x15')))return;const _0x48d5ba=_0x51ef31[_0x3f02('0xd')][_0x3f02('0x9')](_0x3f02('0xe'));_0x48d5ba[_0x3f02('0x17')](_0x3f02('0x1'),_0x472e0c=>{const _0x5c0a62=_0x51ef31[_0x3f02('0x8')][_0x3f02('0x6')][_0x3f02('0x7')];_0x5c0a62[_0x3f02('0x13')]?_0x472e0c():_0x51ef31['model'][_0x3f02('0x5')](()=>{const _0x7edb28=Array[_0x3f02('0x10')](_0x5c0a62[_0x3f02('0xa')]());for(const _0x5d0cff of _0x7edb28)for(const _0x4f522d of _0x5d0cff[_0x3f02('0x0')]())mo(_0x4f522d,_0x51ef31[_0x3f02('0x8')][_0x3f02('0xc')])&&_0x48d5ba['markInlineFormat'](_0x51ef31[_0x3f02('0x8')][_0x3f02('0x11')](_0x4f522d),{'commandName':_0x3f02('0x1'),'commandParams':[]});});}),_0x48d5ba['_descriptionFactory'][_0x3f02('0x4')](_0x42adc5=>{const {data:_0x3064e4}=_0x42adc5;if(_0x3064e4&&'removeFormat'==_0x3064e4[_0x3f02('0x16')])return{'type':'format','content':_0x13af4f(_0x51ef31[_0x3f02('0xf')],_0x3f02('0x2'))};});}}function mo(_0x130d4c,_0x4b9877){for(const [_0x246ead]of _0x130d4c[_0x3f02('0x3')]()){const _0x3f116a=_0x4b9877[_0x3f02('0x14')](_0x246ead);if(_0x3f116a&&_0x3f116a['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34f1=['discardAllSuggestions','afterInit','trackChanges','RestrictedEditingModeEditing','get','acceptAllSuggestions','goToPreviousRestrictedEditingException','enableCommand','plugins','discardSelectedSuggestions','has','discardSuggestion'];(function(_0x1e3465,_0x34f110){const _0x4ce2b2=function(_0x4f6f99){while(--_0x4f6f99){_0x1e3465['push'](_0x1e3465['shift']());}};_0x4ce2b2(++_0x34f110);}(_0x34f1,0xe2));const _0x4ce2=function(_0x1e3465,_0x34f110){_0x1e3465=_0x1e3465-0x0;let _0x4ce2b2=_0x34f1[_0x1e3465];return _0x4ce2b2;};import{Plugin as _0x3b02bf}from'ckeditor5/src/core';export default class ft extends _0x3b02bf{[_0x4ce2('0x3')](){const _0x52d639=this['editor'];if(!_0x52d639[_0x4ce2('0xa')][_0x4ce2('0x0')](_0x4ce2('0x5')))return;const _0x2c0f8a=_0x52d639[_0x4ce2('0xa')]['get']('TrackChangesEditing');_0x2c0f8a['enableCommand'](_0x4ce2('0x8')),_0x2c0f8a[_0x4ce2('0x9')]('goToNextRestrictedEditingException');const _0x91f04d=_0x52d639[_0x4ce2('0xa')][_0x4ce2('0x6')]('RestrictedEditingModeEditing');_0x91f04d[_0x4ce2('0x9')](_0x4ce2('0x4')),_0x91f04d[_0x4ce2('0x9')]('acceptSuggestion'),_0x91f04d[_0x4ce2('0x9')](_0x4ce2('0x1')),_0x91f04d[_0x4ce2('0x9')](_0x4ce2('0x7')),_0x91f04d[_0x4ce2('0x9')](_0x4ce2('0x2')),_0x91f04d[_0x4ce2('0x9')]('acceptSelectedSuggestions'),_0x91f04d[_0x4ce2('0x9')](_0x4ce2('0xb'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a80=['activeMarkers','init','insert','deletion','downcastDispatcher','consumable','ck-suggestion-marker-','enableCommand','name','requires','ELEMENT_LINE_BREAK','includes','_descriptionFactory','markerRange','get','high','ck-suggestion-marker--active','options','TrackChangesEditing','addMarker:suggestion','createUIElement','addMarker:suggestion:insertion','toViewPosition','test','writer','editing','element','mapper','shiftEnter','markerName','model','split','showSuggestionHighlights','createPositionBefore','merge','data'];(function(_0x4b7ec8,_0x1a80a0){const _0x34416e=function(_0x4ac984){while(--_0x4ac984){_0x4b7ec8['push'](_0x4b7ec8['shift']());}};_0x34416e(++_0x1a80a0);}(_0x1a80,0x1a1));const _0x3441=function(_0x4b7ec8,_0x1a80a0){_0x4b7ec8=_0x4b7ec8-0x0;let _0x34416e=_0x1a80[_0x4b7ec8];return _0x34416e;};import{Plugin as _0x1f83db}from'ckeditor5/src/core';import{ShiftEnter as _0x3e9cb3}from'ckeditor5/src/enter';import{getTranslation as _0x1050f1}from'../utils/common-translations';export default class lt extends _0x1f83db{static get[_0x3441('0x18')](){return[_0x3e9cb3];}[_0x3441('0x10')](){const _0x5f269e=this['editor'],_0x50a5de=_0x5f269e['plugins'][_0x3441('0x1d')](_0x3441('0x21'));_0x50a5de[_0x3441('0x16')](_0x3441('0x7')),_0x5f269e[_0x3441('0x4')][_0x3441('0x13')]['on'](_0x3441('0x0'),re(_0x5f269e),{'priority':_0x3441('0x1e')}),_0x5f269e['editing'][_0x3441('0x13')]['on']('addMarker:suggestion:deletion',re(_0x5f269e),{'priority':_0x3441('0x1e')}),_0x5f269e[_0x3441('0xe')][_0x3441('0x13')]['on'](_0x3441('0x22'),(_0x41003e,_0xaf3962,_0x27f80b)=>{_0x27f80b[_0x3441('0x20')][_0x3441('0xb')]&&re(_0x5f269e,{'showActiveMarker':!0x1})(_0x41003e,_0xaf3962,_0x27f80b);}),_0x50a5de[_0x3441('0x1b')]['registerElementLabel']('softBreak',_0x1e1ac0=>_0x1050f1(_0x5f269e['locale'],_0x3441('0x19'),_0x1e1ac0));}}function re(_0x334d05,{showActiveMarker:_0x3a5841=!0x0}={}){return(_0x3b828e,_0x3e4a75,_0xa3117a)=>{const _0x36fd23=_0x334d05['plugins'][_0x3441('0x1d')](_0x3441('0x21'));if(!_0xa3117a[_0x3441('0x14')][_0x3441('0x2')](_0x3e4a75[_0x3441('0x1c')],_0x3b828e[_0x3441('0x17')]))return;const _0x2ad64f=_0x334d05[_0x3441('0x9')];for(const _0x46653d of _0x3e4a75[_0x3441('0x1c')]['getItems']()){if(!_0x46653d['is'](_0x3441('0x5'),'softBreak'))continue;const _0x27a481=_0x3441('0x12')==_0x3e4a75[_0x3441('0x8')][_0x3441('0xa')](':')[0x1]?_0x3441('0xd'):_0x3441('0xa'),_0x4c2cdd=_0xa3117a[_0x3441('0x3')][_0x3441('0x23')]('span',{'class':_0x3441('0x15')+_0x27a481}),_0x49ecae=_0xa3117a[_0x3441('0x6')][_0x3441('0x1')](_0x2ad64f[_0x3441('0xc')](_0x46653d));_0x3a5841&&_0x36fd23[_0x3441('0xf')][_0x3441('0x1a')](_0x3e4a75[_0x3441('0x8')])&&_0xa3117a[_0x3441('0x3')]['addClass'](_0x3441('0x1f'),_0x4c2cdd),_0xa3117a[_0x3441('0x3')][_0x3441('0x11')](_0x49ecae,_0x4c2cdd),_0xa3117a[_0x3441('0x6')]['bindElementToMarker'](_0x4c2cdd,_0x3e4a75[_0x3441('0x8')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2949=['locale','value','commandName','FORMAT_RESTRICTED_DISABLED','get','enableCommand','isCollapsed','getRanges','commands','document','_descriptionFactory','model','TrackChangesEditing','restrictedEditingException','StandardEditingModeEditing','plugins','editor','markInlineFormat','has','commandParams','forceValue','format'];(function(_0x1f2998,_0x29492b){const _0x244979=function(_0x2d0407){while(--_0x2d0407){_0x1f2998['push'](_0x1f2998['shift']());}};_0x244979(++_0x29492b);}(_0x2949,0xe7));const _0x2449=function(_0x1f2998,_0x29492b){_0x1f2998=_0x1f2998-0x0;let _0x244979=_0x2949[_0x1f2998];return _0x244979;};import{Plugin as _0x46cacb}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x20dd02}from'./utils';import{getTranslation as _0x11db7d}from'../utils/common-translations';export default class gt extends _0x46cacb{['afterInit'](){const _0x43dfe6=this[_0x2449('0x5')],_0x446429=_0x43dfe6[_0x2449('0x0')],_0x2ec560=_0x43dfe6[_0x2449('0xb')];if(!_0x43dfe6[_0x2449('0x4')][_0x2449('0x7')](_0x2449('0x3')))return;const _0x4b3f7f=_0x43dfe6['plugins']['get'](_0x2449('0x1')),_0x182007=_0x2449('0x2'),_0x5becf6=_0x43dfe6[_0x2449('0x13')][_0x2449('0xf')](_0x182007);_0x4b3f7f[_0x2449('0x10')](_0x182007,(_0x1f1cba,_0xf80bb4={})=>{const _0x309acf=_0x446429[_0x2449('0x14')]['selection'];if(_0x309acf[_0x2449('0x11')])return void _0x1f1cba(_0xf80bb4);const _0x597227=void 0x0!==_0xf80bb4[_0x2449('0x9')]?_0xf80bb4['forceValue']:!_0x5becf6[_0x2449('0xc')];_0x446429['change'](()=>{const _0x3a66f7=Array['from'](_0x309acf[_0x2449('0x12')]());for(const _0x5bb0ab of _0x3a66f7){const _0xb32353=_0x597227?[_0x5bb0ab]:_0x20dd02(_0x182007,_0x5bb0ab,_0x446429);for(const _0x339df9 of _0xb32353)_0x4b3f7f[_0x2449('0x6')](_0x339df9,{'commandName':_0x182007,'commandParams':[{'forceValue':_0x597227}]});}});}),_0x4b3f7f[_0x2449('0x15')]['registerDescriptionCallback'](_0x379cac=>{const {data:_0x52b073}=_0x379cac;if(_0x52b073&&_0x52b073[_0x2449('0xd')]==_0x182007)return _0x52b073[_0x2449('0x8')][0x0][_0x2449('0x9')]?{'type':_0x2449('0xa'),'content':_0x11db7d(_0x2ec560,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x2449('0xa'),'content':_0x11db7d(_0x2ec560,_0x2449('0xe'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f39=['plugins','model','isBlock','*Remove\x20format:*\x20%0','get','commandName','value','getDefinitionsForView','includes','markBlockFormat','name','format','_descriptionFactory','normalizeConfig','_getRangesWithClasses','Style','classes','locale','inline','commandParams','editor','style:','add','style','selection','commands','createRangeOn','getSelectedBlocks','isCollapsed','push','from','getAttribute','TrackChangesEditing','block','toLowerCase','document','getAncestors','every','find','_getStyleDefinition','change','forceValue','styleName','registerDescriptionCallback','enabledStyles'];(function(_0x4d73c9,_0x1f3994){const _0x3f0126=function(_0x2b94d2){while(--_0x2b94d2){_0x4d73c9['push'](_0x4d73c9['shift']());}};_0x3f0126(++_0x1f3994);}(_0x1f39,0x1a9));const _0x3f01=function(_0x4d73c9,_0x1f3994){_0x4d73c9=_0x4d73c9-0x0;let _0x3f0126=_0x1f39[_0x4d73c9];return _0x3f0126;};import{Plugin as _0x5a05cf}from'ckeditor5/src/core';import{getTranslation as _0x55e05f}from'../utils/common-translations';export default class mt extends _0x5a05cf{['afterInit'](){const _0x1af0f0=this[_0x3f01('0x0')];if(!_0x1af0f0[_0x3f01('0x19')]['has'](_0x3f01('0x28')))return;const _0x10fc9a=_0x1af0f0[_0x3f01('0x5')]['get'](_0x3f01('0x3')),_0x2eb2cf=_0x1af0f0[_0x3f01('0x19')][_0x3f01('0x1d')](_0x3f01('0xc')),_0x1ea934=_0x1af0f0[_0x3f01('0x2a')],_0x13e59f=_0x1af0f0[_0x3f01('0x19')][_0x3f01('0x1d')]('DataSchema'),_0x11a2ab=_0x1af0f0[_0x3f01('0x19')][_0x3f01('0x1d')]('StyleUtils')[_0x3f01('0x26')](_0x13e59f,_0x1af0f0['config']['get']('style.definitions'));_0x2eb2cf['enableCommand'](_0x3f01('0x3'),(_0x1b30f0,{styleName:_0xf2c77f})=>{const _0x1f3fb4=_0x1af0f0[_0x3f01('0x1a')][_0x3f01('0xf')][_0x3f01('0x4')],_0x175753=this[_0x3f01('0x13')](_0xf2c77f,_0x11a2ab);if(!_0x175753)return;if(!_0x10fc9a[_0x3f01('0x18')][_0x3f01('0x21')](_0xf2c77f))return;if(_0x1f3fb4[_0x3f01('0x8')]&&!_0x175753[_0x3f01('0x1b')])return void _0x1b30f0({'styleName':_0xf2c77f});const _0x34d9b7=!_0x10fc9a[_0x3f01('0x1f')]['includes'](_0x175753[_0x3f01('0x23')]);if(_0x175753[_0x3f01('0x1b')]){const _0x4645db=function(_0x3810af,_0x10b507){const _0x6f19bb=new Set();for(const _0x274f4d of _0x3810af){const _0x295ead=_0x274f4d[_0x3f01('0x10')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x465240 of _0x295ead)if(_0x10b507[_0x3f01('0x21')](_0x465240[_0x3f01('0x23')])){_0x6f19bb[_0x3f01('0x2')](_0x465240);break;}}return _0x6f19bb;}(_0x1f3fb4[_0x3f01('0x7')](),_0x175753['modelElements']);_0x1af0f0[_0x3f01('0x1a')][_0x3f01('0x14')](()=>{for(const _0x1b7516 of _0x4645db)_0x2eb2cf[_0x3f01('0x22')](_0x1b7516,{'commandName':_0x3f01('0x3'),'commandParams':[{'styleName':_0xf2c77f,'forceValue':_0x34d9b7}],'formatGroupId':_0x3f01('0x1')+_0xf2c77f});});}else{let _0x193f24=Array[_0x3f01('0xa')](_0x1f3fb4['getRanges']());if(!_0x34d9b7){const _0x24d38e=Array[_0x3f01('0xa')](_0x13e59f[_0x3f01('0x20')](_0x175753['element'],!0x1))[0x0][_0x3f01('0x1a')],_0x21dafd=[];for(const _0x31192d of _0x193f24){const _0x139a10=this[_0x3f01('0x27')](_0x1af0f0[_0x3f01('0x1a')],_0x31192d,_0x175753[_0x3f01('0x29')],_0x24d38e);_0x21dafd[_0x3f01('0x9')](..._0x139a10);}_0x193f24=_0x21dafd;}_0x1af0f0[_0x3f01('0x1a')]['change'](()=>{for(const _0x51a642 of _0x193f24)_0x2eb2cf['markInlineFormat'](_0x51a642,{'commandName':_0x3f01('0x3'),'commandParams':[{'styleName':_0xf2c77f,'forceValue':_0x34d9b7}]});});}}),_0x2eb2cf[_0x3f01('0x25')][_0x3f01('0x17')](_0x1e83f4=>{const {data:_0x1a8cb4}=_0x1e83f4;if(_0x1a8cb4&&'style'===_0x1a8cb4[_0x3f01('0x1e')])return _0x1a8cb4['commandParams'][0x0][_0x3f01('0x15')]?{'type':_0x3f01('0x24'),'content':_0x55e05f(_0x1ea934,'*Format:*\x20%0',_0x1a8cb4[_0x3f01('0x2c')][0x0][_0x3f01('0x16')][_0x3f01('0xe')]())}:{'type':'format','content':_0x55e05f(_0x1ea934,_0x3f01('0x1c'),_0x1a8cb4[_0x3f01('0x2c')][0x0][_0x3f01('0x16')][_0x3f01('0xe')]())};});}[_0x3f01('0x13')](_0x78937f,_0x119575){let _0x4394f8=_0x119575[_0x3f01('0xd')][_0x3f01('0x12')](_0x7c48ed=>_0x7c48ed['name']===_0x78937f);return _0x4394f8||(_0x4394f8=_0x119575[_0x3f01('0x2b')][_0x3f01('0x12')](_0x52cc28=>_0x52cc28[_0x3f01('0x23')]===_0x78937f)),_0x4394f8;}[_0x3f01('0x27')](_0x39966f,_0x3e4da3,_0x5410cb,_0x287388){const _0x5e9159=[];for(const _0x1a44f8 of _0x3e4da3['getItems']()){const _0x41138d=_0x1a44f8[_0x3f01('0xb')](_0x287388);_0x41138d&&(_0x5410cb[_0x3f01('0x11')](_0x203508=>_0x41138d['classes'][_0x3f01('0x21')](_0x203508))&&_0x5e9159['push'](_0x39966f[_0x3f01('0x6')](_0x1a44f8)));}return _0x5e9159;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x23a5=['type','ELEMENT_TABLE','downcastDispatcher','$graveyard','removeTableRow','setSelection','getSelectionAffectedTableCells','values','span','maxRow','addMarker:suggestion','removeTableColumn','differ','join','TableEditing','nodeAfter','getChildren','last','ELEMENT_TABLE_COLUMN_WITH_TEXT','filter','addRange','min','TrackChangesEditing','insertTable','order','createPositionAt','isIntersectingWithRange','fromRange','model','addClass','detach','element','rootName','getRowIndexes','_getCoordsForCells','get','TableUtils','insertTableColumnLeft','end','registerElementLabel','position','document','ELEMENT_TABLE_ROW','selectTableColumn','push','findAncestor','enableCommand','markMultiRangeInsertion','suggestion','_acceptFormatSuggestionCallbackFactory','rowspan','insertion','map','maxColumn','tableCell','refresh','*Remove:*\x20%0','createRangeOn','$textProxy','_descriptionFactory','substr','getCellLocation','enqueueChange','afterInit','insertTableColumnRight','registerCustomCallback','locale','getRanges','low','editor','minColumn','isEqual','deletion','highest','minRow','length','commands','getItems','start','tablePaste','insert','mapper','change:data','data','startsWith','_setupColumnsRowsFixing','table','item','every','tableColumn','from','batch','toViewElement','subType','cell','getFirstRange','nodeBefore','_tableSuggestions','_splitMarkerName','isArray','writer','getColumnIndexes','execute','hasAttribute','oldRange','classes','_suggestionFactory','some','MIN_SAFE_INTEGER','first','registerDescriptionCallback','isInContent','toLowerCase','ELEMENT_TABLE_COLUMN','tableRow','createRangeIn','colspan','_getSuggestionCoords','isTouching','name','_tablePostFixingSubtypes','registerPostFixer','left','getAttribute','root','change','getChanges','ELEMENT_TABLE_ROW_WITH_TEXT','MAX_SAFE_INTEGER','markMultiRangeDeletion','ELEMENT_TABLE_WITH_TEXT','getSuggestion','accept','has','discard','plugins','*Insert:*\x20%0','insertTableRowBelow'];(function(_0x5a450e,_0x23a538){const _0x5c77ca=function(_0x3b7e15){while(--_0x3b7e15){_0x5a450e['push'](_0x5a450e['shift']());}};_0x5c77ca(++_0x23a538);}(_0x23a5,0x1df));const _0x5c77=function(_0x5a450e,_0x23a538){_0x5a450e=_0x5a450e-0x0;let _0x5c77ca=_0x23a5[_0x5a450e];return _0x5c77ca;};import{Plugin as _0x1cbfd8}from'ckeditor5/src/core';import{LiveRange as _0x49c5b6}from'ckeditor5/src/engine';import{setHighlightHandling as _0xed6d71}from'ckeditor5/src/widget';import{getTranslation as _0x3ed19c}from'../utils/common-translations';export default class dt extends _0x1cbfd8{constructor(_0x5418f9){super(_0x5418f9),this[_0x5c77('0x37')]=[_0x5c77('0x31'),_0x5c77('0x18')],this[_0x5c77('0x20')]=new Set();}[_0x5c77('0x88')](){const _0xc82ade=this['editor'],_0x5eb4ac=_0xc82ade['model'][_0x5c77('0x72')]['selection'];if(!_0xc82ade['plugins'][_0x5c77('0x44')](_0x5c77('0x57')))return;const _0x5213e0=_0xc82ade[_0x5c77('0x1')],_0xb9f178=_0xc82ade[_0x5c77('0x46')]['get'](_0x5c77('0x5f')),_0x3c576f=_0xc82ade[_0x5c77('0x46')][_0x5c77('0x6c')](_0x5c77('0x6d'));_0xb9f178[_0x5c77('0x84')][_0x5c77('0x70')](_0x5c77('0x15'),_0x3cb555=>_0x3ed19c(_0x5213e0,_0x5c77('0x4a'),_0x3cb555)),this[_0x5c77('0x14')](),_0xb9f178[_0x5c77('0x77')](_0x5c77('0x60')),_0xb9f178[_0x5c77('0x77')]('selectTableRow'),_0xb9f178[_0x5c77('0x77')](_0x5c77('0x74'));for(const _0x446867 of['insertTableRowAbove',_0x5c77('0x48')]){const _0x3fc21c=_0xc82ade[_0x5c77('0xb')]['get'](_0x446867);_0xb9f178[_0x5c77('0x77')](_0x446867,_0x4541fc=>{_0xc82ade[_0x5c77('0x65')][_0x5c77('0x3c')](_0x6e443c=>{_0x4541fc();const _0x1e7fc2='above'===_0x3fc21c[_0x5c77('0x61')],_0xdff626=_0x3c576f[_0x5c77('0x4f')](_0x5eb4ac),_0x3f24b0=_0x3c576f[_0x5c77('0x6a')](_0xdff626),_0x3c4ae1=_0x1e7fc2?_0x3f24b0[_0x5c77('0x2c')]-0x1:_0x3f24b0[_0x5c77('0x5a')]+0x1,_0x6f31b4=_0xdff626[0x0][_0x5c77('0x76')](_0x5c77('0x15')),_0x417072=_0x3c576f['createTableWalker'](_0x6f31b4,{'startRow':_0x3c4ae1,'endRow':_0x3c4ae1}),_0x4b9965=Array[_0x5c77('0x19')](_0x417072)[_0x5c77('0x7d')](_0x51f57c=>_0x6e443c[_0x5c77('0x82')](_0x51f57c['cell']));_0xb9f178['markMultiRangeInsertion'](_0x4b9965,_0x5c77('0x31'));});});}for(const _0x526283 of[_0x5c77('0x6e'),_0x5c77('0x89')]){const _0x920db1=_0xc82ade[_0x5c77('0xb')][_0x5c77('0x6c')](_0x526283);_0xb9f178[_0x5c77('0x77')](_0x526283,_0x4e306a=>{_0xc82ade[_0x5c77('0x65')]['change'](_0x183933=>{_0x4e306a();const _0x1c8232=_0x5c77('0x39')===_0x920db1[_0x5c77('0x61')],_0x39ffdd=_0x3c576f[_0x5c77('0x4f')](_0x5eb4ac),_0x36051b=_0x3c576f[_0x5c77('0x24')](_0x39ffdd),_0x4a1199=_0x1c8232?_0x36051b[_0x5c77('0x2c')]-0x1:_0x36051b[_0x5c77('0x5a')]+0x1,_0x293cee=_0x39ffdd[0x0][_0x5c77('0x76')](_0x5c77('0x15')),_0x555fcf=_0x3c576f['createTableWalker'](_0x293cee,{'startRow':0x0,'column':_0x4a1199,'includeAllSlots':!0x1}),_0x50f35e=Array[_0x5c77('0x19')](_0x555fcf)[_0x5c77('0x7d')](_0x2c8f92=>_0x183933[_0x5c77('0x82')](_0x2c8f92[_0x5c77('0x1d')]));_0xb9f178[_0x5c77('0x78')](_0x50f35e,_0x5c77('0x18'));});});}for(const _0x196c46 of['removeTableRow',_0x5c77('0x54')]){const _0x3b3d8a=_0x196c46[_0x5c77('0x85')](0xb),_0x3b2474=_0x3b3d8a[_0x5c77('0x2f')](),_0x179fe6=_0x3b2474[_0x5c77('0x85')](0x0,0x3)+_0x5c77('0x51'),_0x1d3b3b=_0x5c77('0x15')+_0x3b3d8a,_0xa53f45=_0x5c77('0x5e')+_0x3b3d8a,_0x3744ee='max'+_0x3b3d8a;_0xb9f178['enableCommand'](_0x196c46,()=>{_0xc82ade[_0x5c77('0x65')][_0x5c77('0x3c')](_0x1dccae=>{const _0x415121=_0x3c576f['getSelectionAffectedTableCells'](_0x5eb4ac),_0x143f33=_0x415121[0x0][_0x5c77('0x76')]('table');let _0x2fd3f3;if('removeTableRow'==_0x196c46){const _0x28ba61=_0x3c576f[_0x5c77('0x6a')](_0x415121);_0x2fd3f3={'startRow':_0x28ba61[_0x5c77('0x2c')],'endRow':_0x28ba61[_0x5c77('0x5a')],'includeAllSlots':!0x0};}else{const _0x52a231=_0x3c576f[_0x5c77('0x24')](_0x415121);_0x2fd3f3={'startColumn':_0x52a231[_0x5c77('0x2c')],'endColumn':_0x52a231['last'],'includeAllSlots':!0x0};}const _0x18b073=_0x3c576f['createTableWalker'](_0x143f33,_0x2fd3f3),_0x40363e=Array[_0x5c77('0x19')](_0x18b073)['map'](({cell:_0x9b63c5})=>_0x9b63c5),_0x21b91b=se(_0x40363e[_0x5c77('0x5c')](_0x1e5384=>_0x1e5384['hasAttribute'](_0x179fe6))),_0x3cf2c4=se(_0x40363e[_0x5c77('0x5c')](_0x56d010=>!_0x56d010['hasAttribute'](_0x179fe6)))[_0x5c77('0x7d')](_0x5b6b8b=>_0x1dccae[_0x5c77('0x82')](_0x5b6b8b)),_0x3d7e30=_0xb9f178[_0x5c77('0x40')](_0x3cf2c4,_0x1d3b3b);if(_0x3d7e30&&('tableRow'==_0x3d7e30[_0x5c77('0x1c')]||_0x5c77('0x18')==_0x3d7e30[_0x5c77('0x1c')])){const _0x33a682=this['_getSuggestionCoords'](_0x3d7e30);for(const _0x5e3cfb of _0x21b91b){const _0x41a5c9=_0x1dccae['createRangeOn'](_0x5e3cfb),_0x385bfa=_0x3c576f[_0x5c77('0x86')](_0x5e3cfb),_0x4633b8=_0x5e3cfb[_0x5c77('0x3a')](_0x179fe6)-0x1,_0x2783ea=_0x33a682[_0xa53f45],_0x19d2ce=_0x33a682[_0x3744ee];_0x2783ea<=_0x385bfa[_0x3b2474]&&_0x385bfa[_0x3b2474]+_0x4633b8<=_0x19d2ce&&_0x3d7e30[_0x5c77('0x5d')](_0x41a5c9);}}});});}function _0x23b26b(_0x5a3442){const _0xd9858a=Array[_0x5c77('0x19')](_0x5eb4ac[_0x5c77('0x2')]())['map'](_0x460689=>_0x49c5b6[_0x5c77('0x64')](_0x460689));_0xc82ade['model'][_0x5c77('0x3c')](_0x4fa7d2=>{const _0x5759f4=_0x4fa7d2[_0x5c77('0x1a')];_0x5a3442=_0x5a3442['filter'](_0x1330c0=>_0x5c77('0x4c')!=_0x1330c0['root'][_0x5c77('0x69')]),_0x4fa7d2[_0x5c77('0x4e')](_0x5a3442),_0xc82ade[_0x5c77('0xb')][_0x5c77('0x6c')]('removeTableRow')[_0x5c77('0x80')](),_0xc82ade[_0x5c77('0x25')](_0x5c77('0x4d'),{'forceDefaultExecution':!0x0}),_0xc82ade[_0x5c77('0x65')][_0x5c77('0x87')](()=>{_0xc82ade[_0x5c77('0x65')][_0x5c77('0x87')](_0x5759f4,_0xa75770=>{const _0x49a458=_0xd9858a[_0x5c77('0x5c')](_0x9faafd=>_0x5c77('0x4c')!=_0x9faafd[_0x5c77('0x3b')][_0x5c77('0x69')]);_0x49a458['length']>0x0&&_0xa75770[_0x5c77('0x4e')](_0x49a458);for(const _0x2b74f4 of _0xd9858a)_0x2b74f4['detach']();});});});}function _0x30854f(_0x446cea){_0xc82ade[_0x5c77('0x65')][_0x5c77('0x3c')](_0x1023ec=>{const _0xb0a95=Array[_0x5c77('0x19')](_0x5eb4ac[_0x5c77('0x2')]())[_0x5c77('0x7d')](_0x1ff750=>_0x49c5b6[_0x5c77('0x64')](_0x1ff750)),_0x18e03f=[];for(const _0x26be05 of _0x446cea)for(const _0x47a34f of _0x26be05[_0x5c77('0xc')]({'shallow':!0x0}))_0x18e03f[_0x5c77('0x75')](_0x47a34f);for(const _0x3ccfd9 of _0x18e03f)'$graveyard'!=_0x3ccfd9[_0x5c77('0x3b')][_0x5c77('0x69')]&&(_0x1023ec[_0x5c77('0x4e')](_0x1023ec[_0x5c77('0x62')](_0x3ccfd9,0x0)),_0xc82ade[_0x5c77('0xb')][_0x5c77('0x6c')](_0x5c77('0x54'))['refresh'](),_0xc82ade[_0x5c77('0x25')](_0x5c77('0x54'),{'forceDefaultExecution':!0x0}));const _0x32f6f4=_0xb0a95[_0x5c77('0x5c')](_0x356c18=>'$graveyard'!=_0x356c18['root']['rootName']);_0x32f6f4['length']>0x0&&_0x1023ec[_0x5c77('0x4e')](_0x32f6f4);for(const _0xc1b778 of _0xb0a95)_0xc1b778[_0x5c77('0x67')]();});}function _0x185e25(_0x380d9d,_0x3bee06){return _0x3bee06[_0x5c77('0x17')](_0x2f7c0c=>_0x380d9d[_0x5c77('0x2a')](_0x21d6a8=>_0x21d6a8['end'][_0x5c77('0x6')](_0x2f7c0c[_0x5c77('0xd')])||_0x2f7c0c[_0x5c77('0x6f')]['isEqual'](_0x21d6a8['start'])));}function _0x53693e(_0xc824b7,_0x3ce8a5){return _0xc824b7['some'](_0x5c1b71=>_0x3ce8a5['some'](_0x2b732e=>_0x5c1b71[_0x5c77('0x6f')][_0x5c77('0x35')](_0x2b732e[_0x5c77('0xd')])));}_0xc82ade[_0x5c77('0x12')][_0x5c77('0x4b')]['on'](_0x5c77('0x53'),(_0x88a852,_0x1f5cc9,_0x89b581)=>{if(!_0x89b581['options']['showSuggestionHighlights'])return;const _0x57569e=_0x1f5cc9[_0x5c77('0x16')];if(!_0x57569e)return;const _0x5af058=_0x89b581[_0x5c77('0x10')][_0x5c77('0x1b')](_0x57569e);function _0x3a42ef(_0x39023a){return Array[_0x5c77('0x22')](_0x39023a)?_0x39023a:[_0x39023a];}_0x5af058&&_0x5c77('0x7f')===_0x57569e[_0x5c77('0x36')]&&_0xed6d71(_0x5af058,_0x89b581[_0x5c77('0x23')],(_0x59e4ab,_0x5001d7,_0x497746)=>_0x497746[_0x5c77('0x66')](_0x3a42ef(_0x5001d7['classes']),_0x59e4ab),(_0x988a15,_0x5b9a54,_0xda73f9)=>_0xda73f9['removeClass'](_0x3a42ef(_0x5b9a54[_0x5c77('0x28')]),_0x988a15));},{'priority':_0x5c77('0x8')}),_0xb9f178[_0x5c77('0x84')][_0x5c77('0x2d')](_0x33d8a4=>{if(_0x5c77('0x7c')!=_0x33d8a4[_0x5c77('0x49')]&&'deletion'!=_0x33d8a4[_0x5c77('0x49')])return;const _0x597210=_0x33d8a4['getContainedElement']();if(null!=_0x597210&&_0x597210['is'](_0x5c77('0x68'),_0x5c77('0x15'))){if(_0x5c77('0x7c')==_0x33d8a4[_0x5c77('0x49')]){const _0x3cba1a=_0x33d8a4['getItems']()['filter'](_0x21b07b=>_0x21b07b['is'](_0x5c77('0x83')))[_0x5c77('0x7d')](_0x1c7277=>_0x1c7277[_0x5c77('0x12')]);if(_0x3cba1a[_0x5c77('0xa')])return{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x41'),'\x22'+_0x3cba1a[_0x5c77('0x56')]('\x20')+'\x22'))};}if('deletion'==_0x33d8a4[_0x5c77('0x49')]){const _0x4c9958=_0x33d8a4[_0x5c77('0xc')]()[_0x5c77('0x5c')](_0x488e33=>_0x488e33['is'](_0x5c77('0x83')))[_0x5c77('0x7d')](_0xc4cae=>_0xc4cae[_0x5c77('0x12')]);if(_0x4c9958[_0x5c77('0xa')])return{'type':_0x5c77('0x7'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,_0x5c77('0x41'),'\x22'+_0x4c9958[_0x5c77('0x56')]('\x20')+'\x22'))};}}}),_0xb9f178[_0x5c77('0x84')][_0x5c77('0x2d')](_0x3b9c6c=>{if(_0x5c77('0x31')==_0x3b9c6c[_0x5c77('0x1c')]){const _0x924a36=_0x3b9c6c['getItems']()[_0x5c77('0x5c')](_0x13430c=>_0x13430c['is'](_0x5c77('0x83')))['map'](_0x542c76=>_0x542c76[_0x5c77('0x12')]),_0x37764a=this[_0x5c77('0x34')](_0x3b9c6c),_0x47d9ed=_0x37764a[_0x5c77('0x52')]-_0x37764a[_0x5c77('0x9')]+0x1;if(_0x5c77('0x7c')==_0x3b9c6c[_0x5c77('0x49')])return _0x924a36[_0x5c77('0xa')]?{'type':'insertion','content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x3e'),[_0x47d9ed,'\x22'+_0x924a36[_0x5c77('0x56')]('\x20')+'\x22']))}:{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x73'),_0x47d9ed))};if(_0x5c77('0x7')==_0x3b9c6c[_0x5c77('0x49')])return _0x924a36['length']?{'type':'deletion','content':_0x3ed19c(_0x5213e0,'*Remove:*\x20%0',_0x3ed19c(_0x5213e0,_0x5c77('0x3e'),[_0x47d9ed,'\x22'+_0x924a36[_0x5c77('0x56')]('\x20')+'\x22']))}:{'type':_0x5c77('0x7'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,_0x5c77('0x73'),_0x47d9ed))};}if(_0x5c77('0x18')==_0x3b9c6c[_0x5c77('0x1c')]){const _0x46fe6b=_0x3b9c6c['getItems']()[_0x5c77('0x5c')](_0x309ad7=>_0x309ad7['is'](_0x5c77('0x83')))['map'](_0x316049=>_0x316049[_0x5c77('0x12')]),_0x5c41b8=this[_0x5c77('0x34')](_0x3b9c6c),_0x595a92=_0x5c41b8[_0x5c77('0x7e')]-_0x5c41b8[_0x5c77('0x5')]+0x1;if(_0x5c77('0x7c')==_0x3b9c6c[_0x5c77('0x49')])return _0x46fe6b[_0x5c77('0xa')]?{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x5b'),[_0x595a92,'\x22'+_0x46fe6b['join']('\x20')+'\x22']))}:{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x30'),_0x595a92))};if('deletion'==_0x3b9c6c[_0x5c77('0x49')])return _0x46fe6b[_0x5c77('0xa')]?{'type':'deletion','content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x595a92,'\x22'+_0x46fe6b['join']('\x20')+'\x22']))}:{'type':_0x5c77('0x7'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,_0x5c77('0x30'),_0x595a92))};}}),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')]('insertion',_0x5c77('0x31'),_0x5c77('0x45'),_0x23b26b),_0xb9f178[_0x5c77('0x29')]['registerCustomCallback'](_0x5c77('0x7'),_0x5c77('0x31'),_0x5c77('0x43'),_0x23b26b),_0xb9f178[_0x5c77('0x29')]['registerCustomCallback']('insertion',_0x5c77('0x18'),_0x5c77('0x45'),_0x30854f),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')](_0x5c77('0x7'),_0x5c77('0x18'),'accept',_0x30854f),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')](_0x5c77('0x7c'),'tableColumn',_0x5c77('0x56'),_0x185e25),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')]('deletion',_0x5c77('0x18'),_0x5c77('0x56'),_0x185e25),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')](_0x5c77('0x7c'),'tableRow','join',_0x53693e),_0xb9f178['_suggestionFactory'][_0x5c77('0x0')](_0x5c77('0x7'),_0x5c77('0x31'),_0x5c77('0x56'),_0x53693e);}[_0x5c77('0x7a')](){const _0x19bc88=this['editor'],_0x11ceb9=_0x19bc88[_0x5c77('0x65')][_0x5c77('0x72')]['selection'];return(_0x43e0a7,_0x3aa8c0)=>{_0x19bc88['model'][_0x5c77('0x3c')](_0x16f721=>{const {commandName:_0x5e3abf,commandParams:_0x158191}=_0x3aa8c0;let _0x3684c7=_0x43e0a7[0x0][_0x5c77('0x6f')][_0x5c77('0x1f')];_0x158191&&_0x158191[0x0]&&!0x1===_0x158191[0x0]['forceValue']&&(_0x3684c7=_0x43e0a7[0x0][_0x5c77('0xd')][_0x5c77('0x58')]);const _0x608f59=_0x16f721[_0x5c77('0x32')](_0x3684c7);if('$graveyard'==_0x608f59[_0x5c77('0x3b')]['rootName'])return;const _0x6c6684=Array['from'](_0x11ceb9[_0x5c77('0x2')]())[_0x5c77('0x7d')](_0x443bf1=>_0x49c5b6[_0x5c77('0x64')](_0x443bf1));_0x16f721['setSelection'](_0x608f59),_0x19bc88[_0x5c77('0xb')][_0x5c77('0x6c')](_0x5e3abf)[_0x5c77('0x80')](),_0x158191[_0x5c77('0x75')]({'forceDefaultExecution':!0x0}),_0x19bc88[_0x5c77('0x25')](_0x5e3abf,..._0x158191);const _0x3a4945=_0x6c6684['filter'](_0x47f239=>_0x5c77('0x4c')!=_0x47f239[_0x5c77('0x3b')][_0x5c77('0x69')]);_0x3a4945[_0x5c77('0xa')]>0x0&&_0x16f721[_0x5c77('0x4e')](_0x3a4945);for(const _0x574198 of _0x6c6684)_0x574198[_0x5c77('0x67')]();});};}['_getCoordsForCells'](_0x209871){const _0x17f95b=this[_0x5c77('0x4')][_0x5c77('0x46')][_0x5c77('0x6c')](_0x5c77('0x6d'));let _0x6e818a=Number[_0x5c77('0x3f')],_0x51a2d2=Number['MIN_SAFE_INTEGER'],_0x54b466=Number[_0x5c77('0x3f')],_0x3aabac=Number[_0x5c77('0x2b')];for(const _0x31d57b of _0x209871){if(_0x5c77('0x4c')==_0x31d57b[_0x5c77('0x3b')]['rootName'])continue;const {row:_0xf47779,column:_0x486a7e}=_0x17f95b[_0x5c77('0x86')](_0x31d57b),_0x5d04fd=_0x31d57b[_0x5c77('0x26')](_0x5c77('0x7b'))?_0x31d57b['getAttribute'](_0x5c77('0x7b'))-0x1:0x0,_0x20313d=_0x31d57b[_0x5c77('0x26')]('colspan')?_0x31d57b[_0x5c77('0x3a')](_0x5c77('0x33'))-0x1:0x0;_0x6e818a=_0xf47779<_0x6e818a?_0xf47779:_0x6e818a,_0x51a2d2=_0xf47779+_0x5d04fd>_0x51a2d2?_0xf47779+_0x5d04fd:_0x51a2d2,_0x54b466=_0x486a7e<_0x54b466?_0x486a7e:_0x54b466,_0x3aabac=_0x486a7e+_0x20313d>_0x3aabac?_0x486a7e+_0x20313d:_0x3aabac;}return{'minRow':_0x6e818a,'maxRow':_0x51a2d2,'minColumn':_0x54b466,'maxColumn':_0x3aabac};}[_0x5c77('0x14')](){const _0x39b77c=this['editor'],_0x198784=_0x39b77c['plugins'][_0x5c77('0x6c')](_0x5c77('0x5f')),_0x2ead4d=_0x39b77c['plugins'][_0x5c77('0x6c')](_0x5c77('0x6d'));_0x39b77c['model'][_0x5c77('0x72')]['on'](_0x5c77('0x11'),()=>{const _0x5a16ea=Array[_0x5c77('0x19')](_0x39b77c[_0x5c77('0x65')][_0x5c77('0x72')][_0x5c77('0x55')]['getChangedMarkers']());for(const {name:_0x3f86b3,data:_0x1de9b4}of _0x5a16ea){const {group:_0x20d21f,id:_0x5bf298,subType:_0x16f702}=_0x198784[_0x5c77('0x21')](_0x3f86b3);if(_0x5c77('0x79')!=_0x20d21f)continue;if(null!=_0x1de9b4[_0x5c77('0x27')])continue;const _0x4cd386=_0x198784[_0x5c77('0x42')](_0x5bf298);this[_0x5c77('0x37')]['includes'](_0x16f702)&&this[_0x5c77('0x20')]['add'](_0x4cd386);}},{'priority':_0x5c77('0x3')});const _0x20eec2=(_0x539350,_0x4336d0)=>{let _0x215f7d=!0x1;const _0x2c2d0a=_0x4336d0['createRangeOn'](_0x539350),_0xd7a6cf=_0x539350[_0x5c77('0x76')](_0x5c77('0x15')),_0x5146df=_0x2ead4d['getCellLocation'](_0x539350);for(const _0x5cdba6 of this['_tableSuggestions']){const _0x5d5030=_0x5cdba6[_0x5c77('0x1c')],_0x1f76c=_0x5d5030[_0x5c77('0x13')](_0x5c77('0xe')),_0x47a1c3=_0x5d5030[_0x5c77('0x85')](_0x1f76c?0xa:0x5),_0x161590=_0x47a1c3[_0x5c77('0x2f')](),_0x35f0b0=_0x161590[_0x5c77('0x85')](0x0,0x3)+_0x5c77('0x51'),_0x5b6470=_0x5c77('0x5e')+_0x47a1c3,_0x384714='max'+_0x47a1c3;if(!_0x5cdba6[_0x5c77('0x2e')])continue;if(_0xd7a6cf!=_0x5cdba6[_0x5c77('0x1e')]()['start'][_0x5c77('0x76')]('table'))continue;if(_0x5cdba6[_0x5c77('0x63')](_0x2c2d0a))continue;const _0x25d101=_0x539350[_0x5c77('0x26')](_0x35f0b0)?_0x539350[_0x5c77('0x3a')](_0x35f0b0)-0x1:0x0,_0x33c4bb=this['_getSuggestionCoords'](_0x5cdba6),_0x10b1bf=_0x33c4bb[_0x5b6470],_0x184133=_0x33c4bb[_0x384714];_0x10b1bf<=_0x5146df[_0x161590]&&_0x5146df[_0x161590]+_0x25d101<=_0x184133&&(_0x5cdba6[_0x5c77('0x5d')](_0x2c2d0a),_0x215f7d=!0x0);}return _0x215f7d;};_0x39b77c[_0x5c77('0x65')][_0x5c77('0x72')][_0x5c77('0x38')](_0xf9b140=>{let _0x40961a=!0x1;for(const _0x34f1b2 of _0x39b77c['model'][_0x5c77('0x72')][_0x5c77('0x55')][_0x5c77('0x3d')]())if(_0x5c77('0xf')==_0x34f1b2[_0x5c77('0x49')]){if(_0x5c77('0x31')==_0x34f1b2[_0x5c77('0x36')])for(const _0xcc2482 of _0x34f1b2[_0x5c77('0x71')]['nodeAfter'][_0x5c77('0x59')]())_0x40961a=_0x40961a||_0x20eec2(_0xcc2482,_0xf9b140);else _0x5c77('0x7f')==_0x34f1b2[_0x5c77('0x36')]&&(_0x40961a=_0x40961a||_0x20eec2(_0x34f1b2[_0x5c77('0x71')][_0x5c77('0x58')],_0xf9b140));}return _0x40961a;});}[_0x5c77('0x34')](_0x1826b0){return this[_0x5c77('0x6b')](_0x1826b0[_0x5c77('0x2')]()[_0x5c77('0x7d')](_0x167a10=>_0x167a10[_0x5c77('0xd')][_0x5c77('0x58')]));}}function se(_0x1216ed){return Array['from'](new Set(_0x1216ed)[_0x5c77('0x50')]());}
|
|
23
|
+
const _0x3f70=['getContainedElement','_setupColumnsRowsFixing','createPositionAt','isInContent','map','enqueueChange','_getSuggestionCoords','cell','subType','tableRow','removeTableRow','execute','last','enableCommand','minColumn','commands','toViewElement','$textProxy','editor','registerCustomCallback','deletion','downcastDispatcher','accept','_suggestionFactory','_getCoordsForCells','document','ELEMENT_TABLE_COLUMN_WITH_TEXT','colspan','*Remove:*\x20%0','TableUtils','isEqual','insertTableColumnLeft','insertTableRowAbove','discard','refresh','addRange','selectTableColumn','tableCell','root','start','fromRange','selectTableRow','add','findAncestor','ELEMENT_TABLE','writer','forceValue','locale','mapper','get','getItems','length','detach','getColumnIndexes','highest','registerDescriptionCallback','ELEMENT_TABLE_WITH_TEXT','change:data','left','rowspan','max','_descriptionFactory','data','insertTableColumnRight','createRangeIn','span','oldRange','order','_acceptFormatSuggestionCallbackFactory','hasAttribute','getChangedMarkers','createTableWalker','markMultiRangeDeletion','MAX_SAFE_INTEGER','ELEMENT_TABLE_ROW','addClass','TableEditing','getSuggestion','toLowerCase','filter','startsWith','plugins','rootName','tableColumn','_tablePostFixingSubtypes','MIN_SAFE_INTEGER','getRowIndexes','name','position','getCellLocation','insertion','some','isIntersectingWithRange','tablePaste','low','change','selection','_tableSuggestions','getSelectionAffectedTableCells','maxRow','registerPostFixer','$graveyard','model','above','getAttribute','addMarker:suggestion','ELEMENT_TABLE_COLUMN','from','removeTableColumn','min','insert','nodeAfter','table','values','differ','createRangeOn','getRanges','registerElementLabel','removeClass','substr','batch','type','ELEMENT_TABLE_ROW_WITH_TEXT','*Insert:*\x20%0','options','push','setSelection','join','first','end','markMultiRangeInsertion'];(function(_0x3e3fca,_0x3f7032){const _0x21abd8=function(_0x123555){while(--_0x123555){_0x3e3fca['push'](_0x3e3fca['shift']());}};_0x21abd8(++_0x3f7032);}(_0x3f70,0x169));const _0x21ab=function(_0x3e3fca,_0x3f7032){_0x3e3fca=_0x3e3fca-0x0;let _0x21abd8=_0x3f70[_0x3e3fca];return _0x21abd8;};import{Plugin as _0xe0ee24}from'ckeditor5/src/core';import{LiveRange as _0x5db462}from'ckeditor5/src/engine';import{setHighlightHandling as _0x1827bf}from'ckeditor5/src/widget';import{getTranslation as _0x540c9a}from'../utils/common-translations';export default class dt extends _0xe0ee24{constructor(_0x3293ba){super(_0x3293ba),this[_0x21ab('0x74')]=[_0x21ab('0x29'),'tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d0091=this['editor'],_0x4fc07d=_0x4d0091[_0x21ab('0x3')][_0x21ab('0x39')]['selection'];if(!_0x4d0091['plugins']['has'](_0x21ab('0x6c')))return;const _0x7a5755=_0x4d0091[_0x21ab('0x4f')],_0x318f64=_0x4d0091[_0x21ab('0x71')][_0x21ab('0x51')]('TrackChangesEditing'),_0x1e9938=_0x4d0091[_0x21ab('0x71')][_0x21ab('0x51')](_0x21ab('0x3d'));_0x318f64[_0x21ab('0x5d')][_0x21ab('0x12')](_0x21ab('0xd'),_0x4622eb=>_0x540c9a(_0x7a5755,_0x21ab('0x4c'),_0x4622eb)),this[_0x21ab('0x21')](),_0x318f64['enableCommand']('insertTable'),_0x318f64[_0x21ab('0x2d')](_0x21ab('0x49')),_0x318f64[_0x21ab('0x2d')](_0x21ab('0x44'));for(const _0x2c79ec of[_0x21ab('0x40'),'insertTableRowBelow']){const _0xb0335=_0x4d0091[_0x21ab('0x2f')][_0x21ab('0x51')](_0x2c79ec);_0x318f64[_0x21ab('0x2d')](_0x2c79ec,_0x2edc95=>{_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x20acdf=>{_0x2edc95();const _0x390af8=_0x21ab('0x4')===_0xb0335[_0x21ab('0x63')],_0xa6f510=_0x1e9938[_0x21ab('0x82')](_0x4fc07d),_0x8aa2b7=_0x1e9938['getRowIndexes'](_0xa6f510),_0x20bbe1=_0x390af8?_0x8aa2b7[_0x21ab('0x1d')]-0x1:_0x8aa2b7[_0x21ab('0x2c')]+0x1,_0x12bc15=_0xa6f510[0x0][_0x21ab('0x4b')](_0x21ab('0xd')),_0x4ad98d=_0x1e9938[_0x21ab('0x67')](_0x12bc15,{'startRow':_0x20bbe1,'endRow':_0x20bbe1}),_0x336e66=Array[_0x21ab('0x8')](_0x4ad98d)[_0x21ab('0x24')](_0x50634e=>_0x20acdf[_0x21ab('0x10')](_0x50634e['cell']));_0x318f64[_0x21ab('0x1f')](_0x336e66,_0x21ab('0x29'));});});}for(const _0x40f44a of[_0x21ab('0x3f'),_0x21ab('0x5f')]){const _0x54b117=_0x4d0091[_0x21ab('0x2f')][_0x21ab('0x51')](_0x40f44a);_0x318f64[_0x21ab('0x2d')](_0x40f44a,_0x3cff6d=>{_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x1beb45=>{_0x3cff6d();const _0x1ffa5d=_0x21ab('0x5a')===_0x54b117[_0x21ab('0x63')],_0x3674e5=_0x1e9938[_0x21ab('0x82')](_0x4fc07d),_0x31caad=_0x1e9938['getColumnIndexes'](_0x3674e5),_0x5abf78=_0x1ffa5d?_0x31caad[_0x21ab('0x1d')]-0x1:_0x31caad['last']+0x1,_0x148fd2=_0x3674e5[0x0][_0x21ab('0x4b')](_0x21ab('0xd')),_0x2d9ff4=_0x1e9938[_0x21ab('0x67')](_0x148fd2,{'startRow':0x0,'column':_0x5abf78,'includeAllSlots':!0x1}),_0x553390=Array[_0x21ab('0x8')](_0x2d9ff4)[_0x21ab('0x24')](_0x4e11d7=>_0x1beb45[_0x21ab('0x10')](_0x4e11d7[_0x21ab('0x27')]));_0x318f64[_0x21ab('0x1f')](_0x553390,_0x21ab('0x73'));});});}for(const _0x1a6512 of[_0x21ab('0x2a'),'removeTableColumn']){const _0x4cb467=_0x1a6512[_0x21ab('0x14')](0xb),_0x40c111=_0x4cb467[_0x21ab('0x6e')](),_0x3f840f=_0x40c111[_0x21ab('0x14')](0x0,0x3)+_0x21ab('0x61'),_0x1e1dc3=_0x21ab('0xd')+_0x4cb467,_0x266090='min'+_0x4cb467,_0x1844e6='max'+_0x4cb467;_0x318f64[_0x21ab('0x2d')](_0x1a6512,()=>{_0x4d0091['model'][_0x21ab('0x7f')](_0x1799d0=>{const _0x5b9938=_0x1e9938[_0x21ab('0x82')](_0x4fc07d),_0x70aded=_0x5b9938[0x0][_0x21ab('0x4b')](_0x21ab('0xd'));let _0x1c348e;if(_0x21ab('0x2a')==_0x1a6512){const _0x2c4b10=_0x1e9938[_0x21ab('0x76')](_0x5b9938);_0x1c348e={'startRow':_0x2c4b10[_0x21ab('0x1d')],'endRow':_0x2c4b10[_0x21ab('0x2c')],'includeAllSlots':!0x0};}else{const _0x22f445=_0x1e9938[_0x21ab('0x55')](_0x5b9938);_0x1c348e={'startColumn':_0x22f445[_0x21ab('0x1d')],'endColumn':_0x22f445['last'],'includeAllSlots':!0x0};}const _0x280a2e=_0x1e9938[_0x21ab('0x67')](_0x70aded,_0x1c348e),_0xa7b661=Array[_0x21ab('0x8')](_0x280a2e)[_0x21ab('0x24')](({cell:_0x1b4190})=>_0x1b4190),_0x5678c4=se(_0xa7b661['filter'](_0x254997=>_0x254997[_0x21ab('0x65')](_0x3f840f))),_0x13132a=se(_0xa7b661[_0x21ab('0x6f')](_0x179399=>!_0x179399['hasAttribute'](_0x3f840f)))['map'](_0x21ab24=>_0x1799d0[_0x21ab('0x10')](_0x21ab24)),_0x340030=_0x318f64[_0x21ab('0x68')](_0x13132a,_0x1e1dc3);if(_0x340030&&(_0x21ab('0x29')==_0x340030[_0x21ab('0x28')]||'tableColumn'==_0x340030[_0x21ab('0x28')])){const _0x347cc5=this['_getSuggestionCoords'](_0x340030);for(const _0x4f3777 of _0x5678c4){const _0x370c43=_0x1799d0['createRangeOn'](_0x4f3777),_0x558be7=_0x1e9938[_0x21ab('0x79')](_0x4f3777),_0x52d142=_0x4f3777[_0x21ab('0x5')](_0x3f840f)-0x1,_0x373558=_0x347cc5[_0x266090],_0x2421f5=_0x347cc5[_0x1844e6];_0x373558<=_0x558be7[_0x40c111]&&_0x558be7[_0x40c111]+_0x52d142<=_0x2421f5&&_0x340030[_0x21ab('0x43')](_0x370c43);}}});});}function _0x5bcbcc(_0x2135c2){const _0x5ac10a=Array[_0x21ab('0x8')](_0x4fc07d['getRanges']())[_0x21ab('0x24')](_0x4cdc7d=>_0x5db462[_0x21ab('0x48')](_0x4cdc7d));_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x34cd01=>{const _0x4841ae=_0x34cd01[_0x21ab('0x15')];_0x2135c2=_0x2135c2['filter'](_0x364595=>_0x21ab('0x2')!=_0x364595[_0x21ab('0x46')][_0x21ab('0x72')]),_0x34cd01['setSelection'](_0x2135c2),_0x4d0091[_0x21ab('0x2f')]['get']('removeTableRow')[_0x21ab('0x42')](),_0x4d0091[_0x21ab('0x2b')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d0091[_0x21ab('0x3')][_0x21ab('0x25')](()=>{_0x4d0091[_0x21ab('0x3')][_0x21ab('0x25')](_0x4841ae,_0x122e08=>{const _0x139723=_0x5ac10a[_0x21ab('0x6f')](_0xab0ccc=>_0x21ab('0x2')!=_0xab0ccc[_0x21ab('0x46')][_0x21ab('0x72')]);_0x139723[_0x21ab('0x53')]>0x0&&_0x122e08[_0x21ab('0x1b')](_0x139723);for(const _0x1f09ad of _0x5ac10a)_0x1f09ad['detach']();});});});}function _0x566e7c(_0x47e30d){_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x426c54=>{const _0x47c370=Array[_0x21ab('0x8')](_0x4fc07d[_0x21ab('0x11')]())[_0x21ab('0x24')](_0x2aa945=>_0x5db462[_0x21ab('0x48')](_0x2aa945)),_0x33b98b=[];for(const _0x23db96 of _0x47e30d)for(const _0x3bc10d of _0x23db96[_0x21ab('0x52')]({'shallow':!0x0}))_0x33b98b['push'](_0x3bc10d);for(const _0x3a4ee4 of _0x33b98b)_0x21ab('0x2')!=_0x3a4ee4[_0x21ab('0x46')][_0x21ab('0x72')]&&(_0x426c54[_0x21ab('0x1b')](_0x426c54[_0x21ab('0x22')](_0x3a4ee4,0x0)),_0x4d0091['commands'][_0x21ab('0x51')](_0x21ab('0x9'))[_0x21ab('0x42')](),_0x4d0091['execute'](_0x21ab('0x9'),{'forceDefaultExecution':!0x0}));const _0x1dd672=_0x47c370[_0x21ab('0x6f')](_0x1e47a9=>_0x21ab('0x2')!=_0x1e47a9[_0x21ab('0x46')][_0x21ab('0x72')]);_0x1dd672[_0x21ab('0x53')]>0x0&&_0x426c54['setSelection'](_0x1dd672);for(const _0x658be2 of _0x47c370)_0x658be2[_0x21ab('0x54')]();});}function _0x411ed2(_0x4d9c25,_0x355da4){return _0x355da4['every'](_0x11d177=>_0x4d9c25[_0x21ab('0x7b')](_0x531406=>_0x531406[_0x21ab('0x1e')][_0x21ab('0x3e')](_0x11d177[_0x21ab('0x47')])||_0x11d177[_0x21ab('0x1e')][_0x21ab('0x3e')](_0x531406['start'])));}function _0x5601a2(_0x2de218,_0x72a868){return _0x2de218[_0x21ab('0x7b')](_0xba53a3=>_0x72a868[_0x21ab('0x7b')](_0x17e790=>_0xba53a3[_0x21ab('0x1e')]['isTouching'](_0x17e790[_0x21ab('0x47')])));}_0x4d0091[_0x21ab('0x5e')][_0x21ab('0x35')]['on'](_0x21ab('0x6'),(_0x1c50e1,_0x385a72,_0x10e2f0)=>{if(!_0x10e2f0[_0x21ab('0x19')]['showSuggestionHighlights'])return;const _0x39b858=_0x385a72['item'];if(!_0x39b858)return;const _0x3deb69=_0x10e2f0[_0x21ab('0x50')][_0x21ab('0x30')](_0x39b858);function _0x1ae21a(_0x241006){return Array['isArray'](_0x241006)?_0x241006:[_0x241006];}_0x3deb69&&_0x21ab('0x45')===_0x39b858[_0x21ab('0x77')]&&_0x1827bf(_0x3deb69,_0x10e2f0[_0x21ab('0x4d')],(_0xe88db2,_0x9847c4,_0x21560f)=>_0x21560f[_0x21ab('0x6b')](_0x1ae21a(_0x9847c4['classes']),_0xe88db2),(_0x5e44f9,_0x1a3f54,_0x4465a8)=>_0x4465a8[_0x21ab('0x13')](_0x1ae21a(_0x1a3f54['classes']),_0x5e44f9));},{'priority':_0x21ab('0x56')}),_0x318f64[_0x21ab('0x5d')]['registerDescriptionCallback'](_0x5e38b5=>{if('insertion'!=_0x5e38b5[_0x21ab('0x16')]&&_0x21ab('0x34')!=_0x5e38b5[_0x21ab('0x16')])return;const _0xf44fdd=_0x5e38b5[_0x21ab('0x20')]();if(null!=_0xf44fdd&&_0xf44fdd['is']('element',_0x21ab('0xd'))){if('insertion'==_0x5e38b5[_0x21ab('0x16')]){const _0x2759b1=_0x5e38b5[_0x21ab('0x52')]()['filter'](_0x339288=>_0x339288['is'](_0x21ab('0x31')))[_0x21ab('0x24')](_0x23cfbb=>_0x23cfbb['data']);if(_0x2759b1[_0x21ab('0x53')])return{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2759b1[_0x21ab('0x1c')]('\x20')+'\x22'))};}if(_0x21ab('0x34')==_0x5e38b5[_0x21ab('0x16')]){const _0x2efeb4=_0x5e38b5[_0x21ab('0x52')]()[_0x21ab('0x6f')](_0x8069a2=>_0x8069a2['is'](_0x21ab('0x31')))[_0x21ab('0x24')](_0x3bc2b7=>_0x3bc2b7[_0x21ab('0x5e')]);if(_0x2efeb4[_0x21ab('0x53')])return{'type':_0x21ab('0x34'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x58'),'\x22'+_0x2efeb4['join']('\x20')+'\x22'))};}}}),_0x318f64[_0x21ab('0x5d')][_0x21ab('0x57')](_0x6efc6a=>{if(_0x21ab('0x29')==_0x6efc6a[_0x21ab('0x28')]){const _0x22398e=_0x6efc6a[_0x21ab('0x52')]()[_0x21ab('0x6f')](_0x5d3999=>_0x5d3999['is']('$textProxy'))['map'](_0x43b7b9=>_0x43b7b9['data']),_0x5e0129=this[_0x21ab('0x26')](_0x6efc6a),_0x1d20f3=_0x5e0129[_0x21ab('0x0')]-_0x5e0129['minRow']+0x1;if('insertion'==_0x6efc6a[_0x21ab('0x16')])return _0x22398e[_0x21ab('0x53')]?{'type':'insertion','content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,_0x21ab('0x17'),[_0x1d20f3,'\x22'+_0x22398e[_0x21ab('0x1c')]('\x20')+'\x22']))}:{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,_0x21ab('0x6a'),_0x1d20f3))};if(_0x21ab('0x34')==_0x6efc6a['type'])return _0x22398e[_0x21ab('0x53')]?{'type':'deletion','content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x17'),[_0x1d20f3,'\x22'+_0x22398e[_0x21ab('0x1c')]('\x20')+'\x22']))}:{'type':_0x21ab('0x34'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x6a'),_0x1d20f3))};}if('tableColumn'==_0x6efc6a[_0x21ab('0x28')]){const _0x3b410f=_0x6efc6a[_0x21ab('0x52')]()['filter'](_0x34b5e1=>_0x34b5e1['is']('$textProxy'))['map'](_0xa1b48d=>_0xa1b48d[_0x21ab('0x5e')]),_0x8b2a5b=this['_getSuggestionCoords'](_0x6efc6a),_0x39c6f4=_0x8b2a5b['maxColumn']-_0x8b2a5b[_0x21ab('0x2e')]+0x1;if(_0x21ab('0x7a')==_0x6efc6a['type'])return _0x3b410f[_0x21ab('0x53')]?{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39c6f4,'\x22'+_0x3b410f[_0x21ab('0x1c')]('\x20')+'\x22']))}:{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,_0x21ab('0x7'),_0x39c6f4))};if(_0x21ab('0x34')==_0x6efc6a[_0x21ab('0x16')])return _0x3b410f[_0x21ab('0x53')]?{'type':_0x21ab('0x34'),'content':_0x540c9a(_0x7a5755,'*Remove:*\x20%0',_0x540c9a(_0x7a5755,_0x21ab('0x3a'),[_0x39c6f4,'\x22'+_0x3b410f['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x7'),_0x39c6f4))};}}),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')]('insertion',_0x21ab('0x29'),_0x21ab('0x41'),_0x5bcbcc),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')](_0x21ab('0x34'),_0x21ab('0x29'),'accept',_0x5bcbcc),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')](_0x21ab('0x7a'),_0x21ab('0x73'),_0x21ab('0x41'),_0x566e7c),_0x318f64[_0x21ab('0x37')]['registerCustomCallback']('deletion','tableColumn',_0x21ab('0x36'),_0x566e7c),_0x318f64['_suggestionFactory']['registerCustomCallback'](_0x21ab('0x7a'),'tableColumn',_0x21ab('0x1c'),_0x411ed2),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')](_0x21ab('0x34'),_0x21ab('0x73'),_0x21ab('0x1c'),_0x411ed2),_0x318f64['_suggestionFactory'][_0x21ab('0x33')](_0x21ab('0x7a'),_0x21ab('0x29'),'join',_0x5601a2),_0x318f64['_suggestionFactory'][_0x21ab('0x33')](_0x21ab('0x34'),'tableRow',_0x21ab('0x1c'),_0x5601a2);}[_0x21ab('0x64')](){const _0x867adf=this[_0x21ab('0x32')],_0x2abe65=_0x867adf[_0x21ab('0x3')][_0x21ab('0x39')][_0x21ab('0x80')];return(_0x32bee2,_0x41475e)=>{_0x867adf[_0x21ab('0x3')]['change'](_0x576d27=>{const {commandName:_0x1bf538,commandParams:_0x40d8a9}=_0x41475e;let _0x3098e9=_0x32bee2[0x0]['end']['nodeBefore'];_0x40d8a9&&_0x40d8a9[0x0]&&!0x1===_0x40d8a9[0x0][_0x21ab('0x4e')]&&(_0x3098e9=_0x32bee2[0x0]['start'][_0x21ab('0xc')]);const _0xa18436=_0x576d27[_0x21ab('0x60')](_0x3098e9);if('$graveyard'==_0xa18436[_0x21ab('0x46')]['rootName'])return;const _0x25153b=Array[_0x21ab('0x8')](_0x2abe65['getRanges']())[_0x21ab('0x24')](_0x565252=>_0x5db462[_0x21ab('0x48')](_0x565252));_0x576d27[_0x21ab('0x1b')](_0xa18436),_0x867adf['commands']['get'](_0x1bf538)[_0x21ab('0x42')](),_0x40d8a9[_0x21ab('0x1a')]({'forceDefaultExecution':!0x0}),_0x867adf[_0x21ab('0x2b')](_0x1bf538,..._0x40d8a9);const _0x4f8163=_0x25153b[_0x21ab('0x6f')](_0x15b6f2=>_0x21ab('0x2')!=_0x15b6f2['root']['rootName']);_0x4f8163[_0x21ab('0x53')]>0x0&&_0x576d27[_0x21ab('0x1b')](_0x4f8163);for(const _0x1c0560 of _0x25153b)_0x1c0560[_0x21ab('0x54')]();});};}['_getCoordsForCells'](_0x2f1d3b){const _0x5ae1e6=this[_0x21ab('0x32')][_0x21ab('0x71')]['get']('TableUtils');let _0x69d9cc=Number[_0x21ab('0x69')],_0x39cb99=Number[_0x21ab('0x75')],_0x4fe3a5=Number['MAX_SAFE_INTEGER'],_0x1a3243=Number['MIN_SAFE_INTEGER'];for(const _0x32711c of _0x2f1d3b){if(_0x21ab('0x2')==_0x32711c[_0x21ab('0x46')][_0x21ab('0x72')])continue;const {row:_0x11e4a3,column:_0x1a0d58}=_0x5ae1e6[_0x21ab('0x79')](_0x32711c),_0x329b7d=_0x32711c[_0x21ab('0x65')]('rowspan')?_0x32711c[_0x21ab('0x5')](_0x21ab('0x5b'))-0x1:0x0,_0x37253e=_0x32711c[_0x21ab('0x65')]('colspan')?_0x32711c[_0x21ab('0x5')](_0x21ab('0x3b'))-0x1:0x0;_0x69d9cc=_0x11e4a3<_0x69d9cc?_0x11e4a3:_0x69d9cc,_0x39cb99=_0x11e4a3+_0x329b7d>_0x39cb99?_0x11e4a3+_0x329b7d:_0x39cb99,_0x4fe3a5=_0x1a0d58<_0x4fe3a5?_0x1a0d58:_0x4fe3a5,_0x1a3243=_0x1a0d58+_0x37253e>_0x1a3243?_0x1a0d58+_0x37253e:_0x1a3243;}return{'minRow':_0x69d9cc,'maxRow':_0x39cb99,'minColumn':_0x4fe3a5,'maxColumn':_0x1a3243};}['_setupColumnsRowsFixing'](){const _0xe1dd92=this[_0x21ab('0x32')],_0x4f11d0=_0xe1dd92[_0x21ab('0x71')][_0x21ab('0x51')]('TrackChangesEditing'),_0x32659b=_0xe1dd92[_0x21ab('0x71')][_0x21ab('0x51')]('TableUtils');_0xe1dd92['model'][_0x21ab('0x39')]['on'](_0x21ab('0x59'),()=>{const _0x386b2e=Array[_0x21ab('0x8')](_0xe1dd92[_0x21ab('0x3')][_0x21ab('0x39')]['differ'][_0x21ab('0x66')]());for(const {name:_0x1e03e7,data:_0x52cab1}of _0x386b2e){const {group:_0xf9a640,id:_0x3466f7,subType:_0x5469ff}=_0x4f11d0['_splitMarkerName'](_0x1e03e7);if('suggestion'!=_0xf9a640)continue;if(null!=_0x52cab1[_0x21ab('0x62')])continue;const _0x14cbec=_0x4f11d0[_0x21ab('0x6d')](_0x3466f7);this[_0x21ab('0x74')]['includes'](_0x5469ff)&&this[_0x21ab('0x81')][_0x21ab('0x4a')](_0x14cbec);}},{'priority':_0x21ab('0x7e')});const _0x2e6884=(_0x4e8b3a,_0x296a29)=>{let _0x425ba6=!0x1;const _0x3356a5=_0x296a29[_0x21ab('0x10')](_0x4e8b3a),_0x55ca39=_0x4e8b3a[_0x21ab('0x4b')](_0x21ab('0xd')),_0x375033=_0x32659b[_0x21ab('0x79')](_0x4e8b3a);for(const _0xddad70 of this[_0x21ab('0x81')]){const _0x290f4f=_0xddad70[_0x21ab('0x28')],_0x35c8a9=_0x290f4f[_0x21ab('0x70')](_0x21ab('0x7d')),_0x4457cb=_0x290f4f[_0x21ab('0x14')](_0x35c8a9?0xa:0x5),_0x3417f0=_0x4457cb[_0x21ab('0x6e')](),_0x36ccf5=_0x3417f0[_0x21ab('0x14')](0x0,0x3)+_0x21ab('0x61'),_0x11d3b8=_0x21ab('0xa')+_0x4457cb,_0x21639b=_0x21ab('0x5c')+_0x4457cb;if(!_0xddad70[_0x21ab('0x23')])continue;if(_0x55ca39!=_0xddad70['getFirstRange']()['start'][_0x21ab('0x4b')](_0x21ab('0xd')))continue;if(_0xddad70[_0x21ab('0x7c')](_0x3356a5))continue;const _0x1e93ec=_0x4e8b3a[_0x21ab('0x65')](_0x36ccf5)?_0x4e8b3a[_0x21ab('0x5')](_0x36ccf5)-0x1:0x0,_0x173766=this[_0x21ab('0x26')](_0xddad70),_0x30723=_0x173766[_0x11d3b8],_0x5890f0=_0x173766[_0x21639b];_0x30723<=_0x375033[_0x3417f0]&&_0x375033[_0x3417f0]+_0x1e93ec<=_0x5890f0&&(_0xddad70[_0x21ab('0x43')](_0x3356a5),_0x425ba6=!0x0);}return _0x425ba6;};_0xe1dd92[_0x21ab('0x3')][_0x21ab('0x39')][_0x21ab('0x1')](_0x5db35c=>{let _0x5934c9=!0x1;for(const _0x2dff1f of _0xe1dd92[_0x21ab('0x3')][_0x21ab('0x39')][_0x21ab('0xf')]['getChanges']())if(_0x21ab('0xb')==_0x2dff1f[_0x21ab('0x16')]){if(_0x21ab('0x29')==_0x2dff1f[_0x21ab('0x77')])for(const _0x26eab5 of _0x2dff1f[_0x21ab('0x78')]['nodeAfter']['getChildren']())_0x5934c9=_0x5934c9||_0x2e6884(_0x26eab5,_0x5db35c);else _0x21ab('0x45')==_0x2dff1f[_0x21ab('0x77')]&&(_0x5934c9=_0x5934c9||_0x2e6884(_0x2dff1f[_0x21ab('0x78')][_0x21ab('0xc')],_0x5db35c));}return _0x5934c9;});}['_getSuggestionCoords'](_0x2511cb){return this[_0x21ab('0x38')](_0x2511cb['getRanges']()[_0x21ab('0x24')](_0x2bb4ae=>_0x2bb4ae[_0x21ab('0x47')][_0x21ab('0xc')]));}}function se(_0x375e2b){return Array[_0x21ab('0x8')](new Set(_0x375e2b)[_0x21ab('0xe')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29ad=['TableCaptionEditing','requires','plugins','enableCommand','get','TrackChangesEditing','afterInit','toggleTableCaption','has'];(function(_0x133ebd,_0x29ad1b){const _0xf35af=function(_0x37a288){while(--_0x37a288){_0x133ebd['push'](_0x133ebd['shift']());}};_0xf35af(++_0x29ad1b);}(_0x29ad,0xb4));const _0xf35a=function(_0x133ebd,_0x29ad1b){_0x133ebd=_0x133ebd-0x0;let _0xf35af=_0x29ad[_0x133ebd];return _0xf35af;};import{Plugin as _0x10c110}from'ckeditor5/src/core';import _0x446656 from'./table';export default class At extends _0x10c110{static get[_0xf35a('0x1')](){return[_0x446656];}[_0xf35a('0x6')](){const _0xe161ab=this['editor'];if(!_0xe161ab[_0xf35a('0x2')][_0xf35a('0x8')](_0xf35a('0x0')))return;_0xe161ab[_0xf35a('0x2')][_0xf35a('0x4')](_0xf35a('0x5'))[_0xf35a('0x3')](_0xf35a('0x7'));}}
|