@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e47=['styles','_getSuggestionBlocksForListStyle','markMultiRangeBlockFormat','handleListStartCommand','getSelectedBlocks','getAttribute','has','createRange','getSiblingNodes','toUpperCase','getFirstPosition','startIndex','format','config','unshift','commandName','plugins','model','bind','listStart','handleDescriptions','backward','replace','reversed','TrackChangesEditing','length','forward','locale','_getTranslationKeyForListStyle','handleListReversedCommand','_getSuggestionBlocks','filter','handleListStyleCommand','flat','parent','afterInit','get','push','*Format:*\x20set\x20start\x20index\x20to\x20%0','createPositionAt','*Format:*\x20set\x20order\x20to\x20regular','*Change\x20to:*\x20%0','change','ELEMENT_','numbered','listType','commandParams','_LIST_','document','element','selection','editor','map','ListUtils','listStyle','getListTypeFromListStyleType','getLastPosition','from','before','listItem','listReversed','enableCommand'];(function(_0x4c26ec,_0x4e47e6){const _0x84b334=function(_0x132242){while(--_0x132242){_0x4c26ec['push'](_0x4c26ec['shift']());}};_0x84b334(++_0x4e47e6);}(_0x4e47,0x1a4));const _0x84b3=function(_0x4c26ec,_0x4e47e6){_0x4c26ec=_0x4c26ec-0x0;let _0x84b334=_0x4e47[_0x4c26ec];return _0x84b334;};import{Plugin as _0x66b554}from'ckeditor5/src/core';import{getTranslation as _0x408e72}from'../utils/common-translations';export default class nt extends _0x66b554{[_0x84b3('0x31')](){if(!this[_0x84b3('0x3')]['plugins'][_0x84b3('0x14')]('ListPropertiesEditing'))return;const _0x42ebb5=this[_0x84b3('0x3')][_0x84b3('0x1b')][_0x84b3('0x32')]('list.properties'),_0x502cb1=this[_0x84b3('0x3')][_0x84b3('0x1e')]['get'](_0x84b3('0x26'));_0x42ebb5[_0x84b3('0xe')]&&_0x502cb1[_0x84b3('0xd')](_0x84b3('0x6'),this['handleListStyleCommand'][_0x84b3('0x20')](this)),_0x42ebb5['reversed']&&_0x502cb1['enableCommand'](_0x84b3('0xc'),this['handleListReversedCommand']['bind'](this)),_0x42ebb5['startIndex']&&_0x502cb1[_0x84b3('0xd')](_0x84b3('0x21'),this[_0x84b3('0x11')][_0x84b3('0x20')](this)),_0x502cb1['_descriptionFactory']['registerDescriptionCallback'](this[_0x84b3('0x22')]['bind'](this));}[_0x84b3('0x2e')](_0x34eeca,_0x3338de={}){const _0x501135=this['editor'][_0x84b3('0x1e')][_0x84b3('0x32')]('TrackChangesEditing'),_0x5260cf=this[_0x84b3('0xf')]();this[_0x84b3('0x3')]['model'][_0x84b3('0x38')](()=>{_0x501135[_0x84b3('0x10')](_0x5260cf,{'commandName':_0x84b3('0x6'),'commandParams':[{'type':_0x3338de['type']}],'formatGroupId':_0x84b3('0x6')});});}[_0x84b3('0x2b')](_0x2a1f9b,_0x80862={}){const _0x247fdf=this[_0x84b3('0x3')][_0x84b3('0x1e')][_0x84b3('0x32')](_0x84b3('0x26')),_0x29efeb=this['_getSuggestionBlocks'](_0x5aa35e=>_0x5aa35e['is'](_0x84b3('0x1'),'listItem')&&_0x84b3('0x3a')===_0x5aa35e[_0x84b3('0x13')]('listType'));if(_0x29efeb['length']<0x1)return;const _0x4618f3=_0x29efeb[_0x84b3('0x4')](_0x42a9e2=>this[_0x84b3('0x3')][_0x84b3('0x1f')]['createRange'](this['editor'][_0x84b3('0x1f')][_0x84b3('0x35')](_0x42a9e2,_0x84b3('0xa')),this[_0x84b3('0x3')][_0x84b3('0x1f')]['createPositionAt'](_0x42a9e2,0x0)));this[_0x84b3('0x3')]['model'][_0x84b3('0x38')](()=>{_0x247fdf[_0x84b3('0x10')](_0x4618f3,{'commandName':_0x84b3('0xc'),'commandParams':[{'reversed':_0x80862[_0x84b3('0x25')]}],'formatGroupId':_0x84b3('0xc')});});}['handleListStartCommand'](_0x347bdd,_0xcf2ec0={}){const _0x309b3b=this['editor'][_0x84b3('0x1e')][_0x84b3('0x32')](_0x84b3('0x26')),_0x3a91de=this[_0x84b3('0x2c')](_0x1d6a83=>_0x1d6a83['is'](_0x84b3('0x1'),_0x84b3('0xb'))&&_0x84b3('0x3a')===_0x1d6a83[_0x84b3('0x13')](_0x84b3('0x3b')));if(_0x3a91de[_0x84b3('0x27')]<0x1)return;const _0x1ebc38=_0x3a91de[_0x84b3('0x4')](_0x92f939=>this[_0x84b3('0x3')][_0x84b3('0x1f')][_0x84b3('0x15')](this[_0x84b3('0x3')]['model'][_0x84b3('0x35')](_0x92f939,'before'),this[_0x84b3('0x3')][_0x84b3('0x1f')][_0x84b3('0x35')](_0x92f939,0x0)));this['editor']['model'][_0x84b3('0x38')](()=>{_0x309b3b[_0x84b3('0x10')](_0x1ebc38,{'commandName':_0x84b3('0x21'),'commandParams':[{'startIndex':_0xcf2ec0[_0x84b3('0x19')]}],'formatGroupId':_0x84b3('0x21')});});}[_0x84b3('0x22')](_0x5cb175){const _0x27f47c=this[_0x84b3('0x3')][_0x84b3('0x29')],{data:_0xf1bae9}=_0x5cb175;if(!_0xf1bae9)return;let _0x46ca22,_0x40afae;switch(_0xf1bae9[_0x84b3('0x1d')]){case _0x84b3('0x6'):_0x46ca22=_0x84b3('0x37'),_0x40afae={'type':_0x84b3('0x1a'),'content':_0x408e72(_0x27f47c,_0x46ca22,_0x408e72(_0x27f47c,this[_0x84b3('0x2a')](_0xf1bae9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46ca22=_0xf1bae9[_0x84b3('0x3c')][0x0][_0x84b3('0x25')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x84b3('0x36'),_0x40afae={'type':_0x84b3('0x1a'),'content':_0x408e72(_0x27f47c,_0x46ca22)};break;case _0x84b3('0x21'):_0x46ca22=_0x84b3('0x34'),_0x40afae={'type':_0x84b3('0x1a'),'content':_0x408e72(_0x27f47c,_0x46ca22,_0xf1bae9[_0x84b3('0x3c')][0x0]['startIndex'])};}return _0x40afae;}[_0x84b3('0xf')](){var _0x3abeb3,_0x3abe55,_0x2c149b,_0x140bf3;const _0x53981c=this[_0x84b3('0x3')][_0x84b3('0x1e')][_0x84b3('0x32')](_0x84b3('0x5'));let _0x5246c7=Array[_0x84b3('0x9')](this['editor'][_0x84b3('0x1f')][_0x84b3('0x0')][_0x84b3('0x2')]['getSelectedBlocks']());return(null===(_0x3abeb3=_0x5246c7[0x0])||void 0x0===_0x3abeb3?void 0x0:_0x3abeb3['is'](_0x84b3('0x1'),'listItem'))&&_0x5246c7[_0x84b3('0x1c')](..._0x53981c[_0x84b3('0x16')](this[_0x84b3('0x3')]['model']['document'][_0x84b3('0x2')][_0x84b3('0x18')](),_0x84b3('0x23'))),(null===(_0x3abe55=_0x5246c7[_0x5246c7[_0x84b3('0x27')]-0x1])||void 0x0===_0x3abe55?void 0x0:_0x3abe55['is'](_0x84b3('0x1'),'listItem'))&&_0x5246c7[_0x84b3('0x33')](..._0x53981c[_0x84b3('0x16')](this[_0x84b3('0x3')][_0x84b3('0x1f')][_0x84b3('0x0')][_0x84b3('0x2')][_0x84b3('0x8')](),_0x84b3('0x28'))),_0x5246c7=[...new Set(_0x5246c7)],(null===(_0x140bf3=null===(_0x2c149b=this[_0x84b3('0x3')][_0x84b3('0x1f')]['document'][_0x84b3('0x2')][_0x84b3('0x18')]())||void 0x0===_0x2c149b?void 0x0:_0x2c149b[_0x84b3('0x30')])||void 0x0===_0x140bf3?void 0x0:_0x140bf3['is']('element',_0x84b3('0xb')))&&(_0x5246c7=_0x5246c7['filter'](_0x43645c=>_0x43645c['is'](_0x84b3('0x1'),_0x84b3('0xb')))),_0x5246c7;}[_0x84b3('0x2c')](_0x22e094){const _0x1c7679=this[_0x84b3('0x3')]['plugins'][_0x84b3('0x32')](_0x84b3('0x5'));let _0x5808d6=Array['from'](this[_0x84b3('0x3')][_0x84b3('0x1f')][_0x84b3('0x0')][_0x84b3('0x2')][_0x84b3('0x12')]())[_0x84b3('0x2d')](_0x22e094)[_0x84b3('0x4')](_0x5401c7=>{const _0x55f0b2=this['editor']['model'][_0x84b3('0x35')](_0x5401c7,0x0);return[..._0x1c7679[_0x84b3('0x16')](_0x55f0b2,_0x84b3('0x23')),..._0x1c7679['getSiblingNodes'](_0x55f0b2,_0x84b3('0x28'))];})[_0x84b3('0x2f')]();return _0x5808d6=[...new Set(_0x5808d6)],_0x5808d6;}[_0x84b3('0x2a')](_0x4b63df){return _0x84b3('0x39')+this['editor'][_0x84b3('0x1e')]['get']('ListUtils')[_0x84b3('0x7')](_0x4b63df)[_0x84b3('0x17')]()+_0x84b3('0x3d')+_0x4b63df[_0x84b3('0x17')]()[_0x84b3('0x24')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45d7=['get','dataDowncast','afterInit','locale','showSuggestionHighlights','downcastDispatcher','elementToElement','div','_descriptionFactory','plugins','has','data','media','mediaEmbed','for','editor','conversion','attribute:url:media','createEmptyElement'];(function(_0x1a4591,_0x45d741){const _0x304db5=function(_0x10e519){while(--_0x10e519){_0x1a4591['push'](_0x1a4591['shift']());}};_0x304db5(++_0x45d741);}(_0x45d7,0xd2));const _0x304d=function(_0x1a4591,_0x45d741){_0x1a4591=_0x1a4591-0x0;let _0x304db5=_0x45d7[_0x1a4591];return _0x304db5;};import{Plugin as _0x571f16}from'ckeditor5/src/core';import{getTranslation as _0x1548ed}from'../utils/common-translations';export default class ot extends _0x571f16{[_0x304d('0x1')](){const _0x3ece8f=this[_0x304d('0xe')];if(!_0x3ece8f[_0x304d('0x8')][_0x304d('0x9')]('MediaEmbedEditing'))return;const _0x2494fb=_0x3ece8f['plugins'][_0x304d('0x12')]('TrackChangesEditing'),_0x60b6bb=_0x3ece8f[_0x304d('0x2')];_0x2494fb['enableCommand'](_0x304d('0xc')),_0x2494fb[_0x304d('0x7')]['registerElementLabel'](_0x304d('0xb'),_0xb76b3a=>_0x1548ed(_0x60b6bb,'ELEMENT_MEDIA',_0xb76b3a)),_0x3ece8f[_0x304d('0xf')][_0x304d('0xd')](_0x304d('0x0'))[_0x304d('0x5')]({'model':_0x304d('0xb'),'view':(_0x2c55f4,{writer:_0x1448fa,options:_0x27cb06})=>{if(_0x27cb06[_0x304d('0x3')])return _0x1448fa[_0x304d('0x11')](_0x304d('0x6'));},'converterPriority':'high'}),_0x3ece8f[_0x304d('0xa')][_0x304d('0x4')]['on'](_0x304d('0x10'),(_0xe245f8,_0x40dc0d,_0x59701c)=>{_0x59701c['options'][_0x304d('0x3')]&&_0xe245f8['stop']();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c40=['afterInit','mention','has','plugins','MentionEditing'];(function(_0x562ab0,_0x1c40ed){const _0x16bb24=function(_0x510308){while(--_0x510308){_0x562ab0['push'](_0x562ab0['shift']());}};_0x16bb24(++_0x1c40ed);}(_0x1c40,0x1ce));const _0x16bb=function(_0x562ab0,_0x1c40ed){_0x562ab0=_0x562ab0-0x0;let _0x16bb24=_0x1c40[_0x562ab0];return _0x16bb24;};import{Plugin as _0x52fbab}from'ckeditor5/src/core';export default class rt extends _0x52fbab{[_0x16bb('0x3')](){const _0x2fe2e5=this['editor'];_0x2fe2e5[_0x16bb('0x1')][_0x16bb('0x0')](_0x16bb('0x2'))&&_0x2fe2e5[_0x16bb('0x1')]['get']('TrackChangesEditing')['enableCommand'](_0x16bb('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11d4=['editor','TrackChangesEditing','has','locale','plugins','ELEMENT_PAGE_BREAK','PageBreakEditing','registerElementLabel','enableCommand','_descriptionFactory','pageBreak','get'];(function(_0x2113aa,_0x11d472){const _0x5c9cc7=function(_0x37c6ad){while(--_0x37c6ad){_0x2113aa['push'](_0x2113aa['shift']());}};_0x5c9cc7(++_0x11d472);}(_0x11d4,0xef));const _0x5c9c=function(_0x2113aa,_0x11d472){_0x2113aa=_0x2113aa-0x0;let _0x5c9cc7=_0x11d4[_0x2113aa];return _0x5c9cc7;};import{Plugin as _0x3627d9}from'ckeditor5/src/core';import{getTranslation as _0x59163e}from'../utils/common-translations';export default class at extends _0x3627d9{['afterInit'](){const _0x14d57c=this[_0x5c9c('0x1')];if(!_0x14d57c['plugins'][_0x5c9c('0x3')](_0x5c9c('0x7')))return;_0x14d57c[_0x5c9c('0x5')][_0x5c9c('0x0')](_0x5c9c('0x2'))[_0x5c9c('0x9')](_0x5c9c('0xb'));const _0x54d8e8=_0x14d57c[_0x5c9c('0x5')][_0x5c9c('0x0')](_0x5c9c('0x2')),_0x2e4c90=_0x14d57c[_0x5c9c('0x4')];_0x54d8e8[_0x5c9c('0xa')][_0x5c9c('0x8')](_0x5c9c('0xb'),_0x23b6ac=>_0x59163e(_0x2e4c90,_0x5c9c('0x6'),_0x23b6ac));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37d5=['markerName','schema','selection','insertParagraph','addMarker:suggestion:insertion','consume','filter','isObject','isTouching','model','isBlock','format','downcastDispatcher','data','type','*Change\x20to:*\x20%0','options','name','plugins','writer','span','end','Paragraph','bindElementToMarker','ck-suggestion-marker--active','includes','document','insert','editing','showSuggestionHighlights','get','TrackChangesEditing','blockName','isLimit','_descriptionFactory','change','from','toViewPosition','registerDescriptionCallback','$text','highest','consumable','mapper','markBlockFormat','paragraph','registerElementLabel','*Insert:*\x20%0','commandName','enableCommand','getItemLabel','editor','nodeAfter','markerRange','getFirstRange','ELEMENT_PARAGRAPH','insertion','afterInit','checkChild'];(function(_0x51c83e,_0x37d5df){const _0x4e1822=function(_0x456fd9){while(--_0x456fd9){_0x51c83e['push'](_0x51c83e['shift']());}};_0x4e1822(++_0x37d5df);}(_0x37d5,0x1bb));const _0x4e18=function(_0x51c83e,_0x37d5df){_0x51c83e=_0x51c83e-0x0;let _0x4e1822=_0x37d5[_0x51c83e];return _0x4e1822;};import{Plugin as _0x2e8f13}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5e17c0}from'./utils';import{getTranslation as _0x3613ca}from'../utils/common-translations';export default class ct extends _0x2e8f13{[_0x4e18('0x13')](){const _0x11e990=this[_0x4e18('0xd')];if(!_0x11e990[_0x4e18('0x27')]['has'](_0x4e18('0x2b')))return;const _0x594011=_0x11e990['locale'],_0x356748=_0x11e990[_0x4e18('0x27')][_0x4e18('0x33')](_0x4e18('0x34'));_0x356748[_0x4e18('0x37')][_0x4e18('0x8')]('paragraph',_0x24c7cc=>_0x3613ca(_0x594011,_0x4e18('0x11'),_0x24c7cc)),_0x356748[_0x4e18('0xb')](_0x4e18('0x7'),(_0x436f5d,_0x2d26ff={})=>{const _0x3844ee=_0x11e990['model'][_0x4e18('0x2f')],_0x1cbfbb=_0x2d26ff[_0x4e18('0x17')]||_0x3844ee[_0x4e18('0x17')],_0x303f7e=Array[_0x4e18('0x39')](_0x1cbfbb['getSelectedBlocks']())[_0x4e18('0x1b')](_0xb68e88=>function(_0x21b569,_0x27c4a6){return _0x27c4a6[_0x4e18('0x14')](_0x21b569['parent'],_0x4e18('0x7'))&&!_0x27c4a6[_0x4e18('0x1c')](_0x21b569)&&_0x4e18('0x7')!=_0x21b569[_0x4e18('0x26')];}(_0xb68e88,this['editor'][_0x4e18('0x1e')][_0x4e18('0x16')]));_0x11e990[_0x4e18('0x1e')][_0x4e18('0x38')](()=>{for(const _0xa2b75d of _0x303f7e)_0x356748[_0x4e18('0x6')](_0xa2b75d,{'commandName':_0x4e18('0x7'),'commandParams':[],'formatGroupId':_0x4e18('0x35')},_0x5e17c0(_0xa2b75d));});}),_0x356748[_0x4e18('0x37')][_0x4e18('0x1')](_0x44a491=>{const {data:_0x5bc7ba}=_0x44a491;if(_0x5bc7ba&&_0x4e18('0x7')==_0x5bc7ba[_0x4e18('0xa')])return{'type':_0x4e18('0x20'),'content':_0x3613ca(_0x594011,_0x4e18('0x24'),_0x3613ca(_0x594011,_0x4e18('0x11')))};}),_0x356748[_0x4e18('0xb')](_0x4e18('0x18')),_0x11e990[_0x4e18('0x31')][_0x4e18('0x21')]['on'](_0x4e18('0x19'),ar(_0x11e990),{'priority':_0x4e18('0x3')}),_0x11e990[_0x4e18('0x22')][_0x4e18('0x21')]['on'](_0x4e18('0x19'),(_0x2824df,_0x369d74,_0x480fdf)=>{_0x480fdf[_0x4e18('0x25')][_0x4e18('0x32')]&&ar(_0x11e990,{'showActiveMarker':!0x1})(_0x2824df,_0x369d74,_0x480fdf);},{'priority':'highest'});const _0x4f0e6b=_0x356748[_0x4e18('0x37')];_0x4f0e6b['registerDescriptionCallback'](_0x6c8f78=>{if(_0x4e18('0x12')!==_0x6c8f78[_0x4e18('0x23')])return;const {start:_0xa82c11,end:_0x5e4d49}=_0x6c8f78[_0x4e18('0x10')]();if(!_0xa82c11[_0x4e18('0x1d')](_0x5e4d49)||!_0xa82c11['nodeAfter'])return;const _0x1440a5=_0x11e990[_0x4e18('0x1e')][_0x4e18('0x16')],_0x3d99c2=_0xa82c11[_0x4e18('0xe')];return _0x1440a5[_0x4e18('0x1f')](_0x3d99c2)&&!_0x1440a5[_0x4e18('0x36')](_0x3d99c2)&&_0x1440a5[_0x4e18('0x14')](_0x3d99c2,_0x4e18('0x2'))?{'type':_0x4e18('0x12'),'content':_0x3613ca(_0x594011,_0x4e18('0x9'),_0x4f0e6b[_0x4e18('0xc')](_0x3d99c2,0x1))}:void 0x0;});}}function ar(_0xbc9dc3,{showActiveMarker:_0xbfb084=!0x0}={}){return(_0x26e811,_0x252c1c,_0x5eb012)=>{const _0x175daf=_0xbc9dc3['plugins'][_0x4e18('0x33')](_0x4e18('0x34')),_0x5f320e=_0x252c1c[_0x4e18('0xf')]['start'],_0x240fe3=_0x252c1c['markerRange'][_0x4e18('0x2a')],_0x58ebf7=_0xbc9dc3[_0x4e18('0x1e')][_0x4e18('0x16')];if(!_0x5f320e['isTouching'](_0x240fe3)||!_0x5f320e[_0x4e18('0xe')])return;const _0x32ed89=_0x5f320e['nodeAfter'];if(_0x58ebf7[_0x4e18('0x1f')](_0x32ed89)&&!_0x58ebf7[_0x4e18('0x36')](_0x32ed89)&&_0x58ebf7[_0x4e18('0x14')](_0x32ed89,_0x4e18('0x2'))){if(!_0x5eb012[_0x4e18('0x4')][_0x4e18('0x1a')](_0x252c1c[_0x4e18('0xf')],_0x26e811['name']))return;const _0x4019cb=_0x5eb012['writer']['createUIElement'](_0x4e18('0x29'),{'class':'ck-suggestion-marker-split'}),_0x11e6dc=_0x5eb012[_0x4e18('0x5')][_0x4e18('0x0')](_0x240fe3);_0xbfb084&&_0x175daf['activeMarkers'][_0x4e18('0x2e')](_0x252c1c[_0x4e18('0x15')])&&_0x5eb012[_0x4e18('0x28')]['addClass'](_0x4e18('0x2d'),_0x4019cb),_0x5eb012[_0x4e18('0x28')][_0x4e18('0x30')](_0x11e6dc,_0x4019cb),_0x5eb012[_0x4e18('0x5')][_0x4e18('0x2c')](_0x4019cb,_0x252c1c[_0x4e18('0x15')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50ac=['model','getItems','createRangeOn','TrackChangesEditing','change','editor','markInlineFormat','isFormatting','removeFormat','schema','document','*Remove\x20all\x20formatting*','plugins','has','enableCommand','RemoveFormatEditing','_descriptionFactory','afterInit','from','getAttributeProperties','isCollapsed','getRanges'];(function(_0x2ccdfd,_0x50acf1){const _0x1e649a=function(_0x45f264){while(--_0x45f264){_0x2ccdfd['push'](_0x2ccdfd['shift']());}};_0x1e649a(++_0x50acf1);}(_0x50ac,0x120));const _0x1e64=function(_0x2ccdfd,_0x50acf1){_0x2ccdfd=_0x2ccdfd-0x0;let _0x1e649a=_0x50ac[_0x2ccdfd];return _0x1e649a;};import{Plugin as _0x59baa4}from'ckeditor5/src/core';import{getTranslation as _0x3af4d5}from'../utils/common-translations';export default class ht extends _0x59baa4{[_0x1e64('0xf')](){const _0x2df4bf=this[_0x1e64('0x3')];if(!_0x2df4bf[_0x1e64('0xa')][_0x1e64('0xb')](_0x1e64('0xd')))return;const _0x2aa589=_0x2df4bf[_0x1e64('0xa')]['get'](_0x1e64('0x1'));_0x2aa589[_0x1e64('0xc')](_0x1e64('0x6'),_0x565bf6=>{const _0x371398=_0x2df4bf[_0x1e64('0x14')][_0x1e64('0x8')]['selection'];_0x371398[_0x1e64('0x12')]?_0x565bf6():_0x2df4bf['model'][_0x1e64('0x2')](()=>{const _0x40ff89=Array[_0x1e64('0x10')](_0x371398[_0x1e64('0x13')]());for(const _0x3c0a32 of _0x40ff89)for(const _0x4fb2fa of _0x3c0a32[_0x1e64('0x15')]())eo(_0x4fb2fa,_0x2df4bf[_0x1e64('0x14')][_0x1e64('0x7')])&&_0x2aa589[_0x1e64('0x4')](_0x2df4bf['model'][_0x1e64('0x0')](_0x4fb2fa),{'commandName':_0x1e64('0x6'),'commandParams':[]});});}),_0x2aa589[_0x1e64('0xe')]['registerDescriptionCallback'](_0x50e564=>{const {data:_0x5b0fee}=_0x50e564;if(_0x5b0fee&&_0x1e64('0x6')==_0x5b0fee['commandName'])return{'type':'format','content':_0x3af4d5(_0x2df4bf['locale'],_0x1e64('0x9'))};});}}function eo(_0x407155,_0x1aa2e6){for(const [_0x20f0ea]of _0x407155['getAttributes']()){const _0x9fed21=_0x1aa2e6[_0x1e64('0x11')](_0x20f0ea);if(_0x9fed21&&_0x9fed21[_0x1e64('0x5')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f30=['trackChanges','acceptAllSuggestions','has','RestrictedEditingModeEditing','goToPreviousRestrictedEditingException','acceptSuggestion','afterInit','plugins','enableCommand','TrackChangesEditing','get','discardSelectedSuggestions','discardSuggestion','acceptSelectedSuggestions'];(function(_0x2a5096,_0x4f30c2){const _0x3347f8=function(_0x5913ef){while(--_0x5913ef){_0x2a5096['push'](_0x2a5096['shift']());}};_0x3347f8(++_0x4f30c2);}(_0x4f30,0x115));const _0x3347=function(_0x2a5096,_0x4f30c2){_0x2a5096=_0x2a5096-0x0;let _0x3347f8=_0x4f30[_0x2a5096];return _0x3347f8;};import{Plugin as _0x6e6042}from'ckeditor5/src/core';export default class ut extends _0x6e6042{[_0x3347('0x9')](){const _0x12b7d4=this['editor'];if(!_0x12b7d4[_0x3347('0xa')][_0x3347('0x5')](_0x3347('0x6')))return;const _0x1d56c3=_0x12b7d4['plugins'][_0x3347('0xd')](_0x3347('0xc'));_0x1d56c3['enableCommand'](_0x3347('0x7')),_0x1d56c3[_0x3347('0xb')]('goToNextRestrictedEditingException');const _0x5452a1=_0x12b7d4[_0x3347('0xa')][_0x3347('0xd')](_0x3347('0x6'));_0x5452a1[_0x3347('0xb')](_0x3347('0x3')),_0x5452a1[_0x3347('0xb')](_0x3347('0x8')),_0x5452a1[_0x3347('0xb')](_0x3347('0x1')),_0x5452a1[_0x3347('0xb')](_0x3347('0x4')),_0x5452a1[_0x3347('0xb')]('discardAllSuggestions'),_0x5452a1[_0x3347('0xb')](_0x3347('0x2')),_0x5452a1[_0x3347('0xb')](_0x3347('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x369c=['writer','shiftEnter','ELEMENT_LINE_BREAK','addMarker:suggestion:deletion','deletion','data','get','init','_descriptionFactory','merge','high','split','markerName','name','mapper','plugins','addMarker:suggestion','span','activeMarkers','locale','addClass','model','requires','getItems','downcastDispatcher','toViewPosition','registerElementLabel','TrackChangesEditing','element','ck-suggestion-marker--active','markerRange','editing','createPositionBefore','test','softBreak'];(function(_0x32fc1f,_0x369c6c){const _0x131f52=function(_0x183173){while(--_0x183173){_0x32fc1f['push'](_0x32fc1f['shift']());}};_0x131f52(++_0x369c6c);}(_0x369c,0x13a));const _0x131f=function(_0x32fc1f,_0x369c6c){_0x32fc1f=_0x32fc1f-0x0;let _0x131f52=_0x369c[_0x32fc1f];return _0x131f52;};import{Plugin as _0x498cc9}from'ckeditor5/src/core';import{ShiftEnter as _0x48a1fa}from'ckeditor5/src/enter';import{getTranslation as _0x50790d}from'../utils/common-translations';export default class ft extends _0x498cc9{static get[_0x131f('0x17')](){return[_0x48a1fa];}[_0x131f('0x8')](){const _0x2fd19f=this['editor'],_0x40b722=_0x2fd19f[_0x131f('0x10')]['get'](_0x131f('0x1c'));_0x40b722['enableCommand'](_0x131f('0x2')),_0x2fd19f['editing'][_0x131f('0x19')]['on']('addMarker:suggestion:insertion',re(_0x2fd19f),{'priority':_0x131f('0xb')}),_0x2fd19f[_0x131f('0x20')]['downcastDispatcher']['on'](_0x131f('0x4'),re(_0x2fd19f),{'priority':_0x131f('0xb')}),_0x2fd19f[_0x131f('0x6')][_0x131f('0x19')]['on'](_0x131f('0x11'),(_0x525f53,_0x45f7c9,_0x4c6eb1)=>{_0x4c6eb1['options']['showSuggestionHighlights']&&re(_0x2fd19f,{'showActiveMarker':!0x1})(_0x525f53,_0x45f7c9,_0x4c6eb1);}),_0x40b722[_0x131f('0x9')][_0x131f('0x1b')](_0x131f('0x0'),_0x55737a=>_0x50790d(_0x2fd19f[_0x131f('0x14')],_0x131f('0x3'),_0x55737a));}}function re(_0x4effd9,{showActiveMarker:_0x543e7d=!0x0}={}){return(_0x420e60,_0x66448d,_0x57cd77)=>{const _0x42011a=_0x4effd9[_0x131f('0x10')][_0x131f('0x7')](_0x131f('0x1c'));if(!_0x57cd77['consumable'][_0x131f('0x22')](_0x66448d[_0x131f('0x1f')],_0x420e60[_0x131f('0xe')]))return;const _0x522550=_0x4effd9[_0x131f('0x16')];for(const _0x409ed2 of _0x66448d['markerRange'][_0x131f('0x18')]()){if(!_0x409ed2['is'](_0x131f('0x1d'),_0x131f('0x0')))continue;const _0x1bf47=_0x131f('0x5')==_0x66448d['markerName'][_0x131f('0xc')](':')[0x1]?_0x131f('0xa'):'split',_0x2c569c=_0x57cd77[_0x131f('0x1')]['createUIElement'](_0x131f('0x12'),{'class':'ck-suggestion-marker-'+_0x1bf47}),_0x2a8965=_0x57cd77['mapper'][_0x131f('0x1a')](_0x522550[_0x131f('0x21')](_0x409ed2));_0x543e7d&&_0x42011a[_0x131f('0x13')]['includes'](_0x66448d['markerName'])&&_0x57cd77[_0x131f('0x1')][_0x131f('0x15')](_0x131f('0x1e'),_0x2c569c),_0x57cd77['writer']['insert'](_0x2a8965,_0x2c569c),_0x57cd77[_0x131f('0xf')]['bindElementToMarker'](_0x2c569c,_0x66448d[_0x131f('0xd')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f62=['getRanges','_descriptionFactory','editor','locale','has','change','get','model','forceValue','format','FORMAT_RESTRICTED_DISABLED','restrictedEditingException','selection','commandParams','value','commands','registerDescriptionCallback','afterInit','commandName','StandardEditingModeEditing','from','plugins'];(function(_0x4e4089,_0x2f62ee){const _0x343bbe=function(_0x37df9a){while(--_0x37df9a){_0x4e4089['push'](_0x4e4089['shift']());}};_0x343bbe(++_0x2f62ee);}(_0x2f62,0x1ad));const _0x343b=function(_0x4e4089,_0x2f62ee){_0x4e4089=_0x4e4089-0x0;let _0x343bbe=_0x2f62[_0x4e4089];return _0x343bbe;};import{Plugin as _0x1a6cbe}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x38b272}from'./utils';import{getTranslation as _0x427802}from'../utils/common-translations';export default class lt extends _0x1a6cbe{[_0x343b('0x6')](){const _0xaa04f6=this[_0x343b('0xd')],_0x2183f4=_0xaa04f6[_0x343b('0x12')],_0x393a29=_0xaa04f6[_0x343b('0xe')];if(!_0xaa04f6[_0x343b('0xa')][_0x343b('0xf')](_0x343b('0x8')))return;const _0x22ffc5=_0xaa04f6['plugins'][_0x343b('0x11')]('TrackChangesEditing'),_0x553b2f=_0x343b('0x0'),_0x1922f6=_0xaa04f6[_0x343b('0x4')][_0x343b('0x11')](_0x553b2f);_0x22ffc5['enableCommand'](_0x553b2f,(_0x125f74,_0x1443a8={})=>{const _0x3d2f17=_0x2183f4['document'][_0x343b('0x1')];if(_0x3d2f17['isCollapsed'])return void _0x125f74(_0x1443a8);const _0xed7e01=void 0x0!==_0x1443a8[_0x343b('0x13')]?_0x1443a8[_0x343b('0x13')]:!_0x1922f6[_0x343b('0x3')];_0x2183f4[_0x343b('0x10')](()=>{const _0x4835aa=Array[_0x343b('0x9')](_0x3d2f17[_0x343b('0xb')]());for(const _0x3f62df of _0x4835aa){const _0x523797=_0xed7e01?[_0x3f62df]:_0x38b272(_0x553b2f,_0x3f62df,_0x2183f4);for(const _0x213bba of _0x523797)_0x22ffc5['markInlineFormat'](_0x213bba,{'commandName':_0x553b2f,'commandParams':[{'forceValue':_0xed7e01}]});}});}),_0x22ffc5[_0x343b('0xc')][_0x343b('0x5')](_0x1a50ef=>{const {data:_0x10c8f6}=_0x1a50ef;if(_0x10c8f6&&_0x10c8f6[_0x343b('0x7')]==_0x553b2f)return _0x10c8f6[_0x343b('0x2')][0x0]['forceValue']?{'type':_0x343b('0x14'),'content':_0x427802(_0x393a29,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x343b('0x14'),'content':_0x427802(_0x393a29,_0x343b('0x15'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4414=['get','commandName','TrackChangesEditing','forceValue','name','classes','find','_descriptionFactory','markInlineFormat','createRangeOn','style:','getAncestors','value','format','config','plugins','inline','*Remove\x20format:*\x20%0','markBlockFormat','Style','normalizeConfig','add','includes','every','_getRangesWithClasses','style','style.definitions','*Format:*\x20%0','getDefinitionsForView','isCollapsed','afterInit','modelElements','commandParams','getAttribute','enableCommand','model','has','isBlock','getItems','enabledStyles','registerDescriptionCallback','toLowerCase','push'];(function(_0x2959dc,_0x4414e5){const _0x459ff5=function(_0x179d93){while(--_0x179d93){_0x2959dc['push'](_0x2959dc['shift']());}};_0x459ff5(++_0x4414e5);}(_0x4414,0x111));const _0x459f=function(_0x2959dc,_0x4414e5){_0x2959dc=_0x2959dc-0x0;let _0x459ff5=_0x4414[_0x2959dc];return _0x459ff5;};import{Plugin as _0x57e680}from'ckeditor5/src/core';import{getTranslation as _0x56e6cb}from'../utils/common-translations';export default class gt extends _0x57e680{[_0x459f('0xf')](){const _0xaadae8=this['editor'];if(!_0xaadae8[_0x459f('0x0')][_0x459f('0x15')](_0x459f('0x4')))return;const _0x559abc=_0xaadae8['commands']['get']('style'),_0x20f19d=_0xaadae8['plugins'][_0x459f('0x1c')](_0x459f('0x1e')),_0x40e6e7=_0xaadae8['locale'],_0x1dd60a=_0xaadae8[_0x459f('0x0')][_0x459f('0x1c')]('DataSchema'),_0x440e14=_0xaadae8[_0x459f('0x0')][_0x459f('0x1c')]('StyleUtils')[_0x459f('0x5')](_0x1dd60a,_0xaadae8[_0x459f('0x2a')][_0x459f('0x1c')](_0x459f('0xb')));_0x20f19d[_0x459f('0x13')](_0x459f('0xa'),(_0x527bca,{styleName:_0xc3646e})=>{const _0x3294d4=_0xaadae8[_0x459f('0x14')]['document']['selection'],_0xe72ae4=this['_getStyleDefinition'](_0xc3646e,_0x440e14);if(!_0xe72ae4)return;if(!_0x559abc[_0x459f('0x18')][_0x459f('0x7')](_0xc3646e))return;if(_0x3294d4[_0x459f('0xe')]&&!_0xe72ae4[_0x459f('0x16')])return void _0x527bca({'styleName':_0xc3646e});const _0x5d562c=!_0x559abc[_0x459f('0x28')][_0x459f('0x7')](_0xe72ae4[_0x459f('0x20')]);if(_0xe72ae4[_0x459f('0x16')]){const _0x566fab=function(_0x46f22a,_0x3d8e95){const _0x5924d7=new Set();for(const _0x1f1ea8 of _0x46f22a){const _0x8d005e=_0x1f1ea8[_0x459f('0x27')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x4fc305 of _0x8d005e)if(_0x3d8e95[_0x459f('0x7')](_0x4fc305[_0x459f('0x20')])){_0x5924d7[_0x459f('0x6')](_0x4fc305);break;}}return _0x5924d7;}(_0x3294d4['getSelectedBlocks'](),_0xe72ae4[_0x459f('0x10')]);_0xaadae8[_0x459f('0x14')]['change'](()=>{for(const _0x2f727e of _0x566fab)_0x20f19d[_0x459f('0x3')](_0x2f727e,{'commandName':'style','commandParams':[{'styleName':_0xc3646e,'forceValue':_0x5d562c}],'formatGroupId':_0x459f('0x26')+_0xc3646e});});}else{let _0x2b1ea5=Array['from'](_0x3294d4['getRanges']());if(!_0x5d562c){const _0x1af554=Array['from'](_0x1dd60a[_0x459f('0xd')](_0xe72ae4['element'],!0x1))[0x0][_0x459f('0x14')],_0x478e4c=[];for(const _0x1b82d1 of _0x2b1ea5){const _0x239156=this[_0x459f('0x9')](_0xaadae8[_0x459f('0x14')],_0x1b82d1,_0xe72ae4[_0x459f('0x21')],_0x1af554);_0x478e4c[_0x459f('0x1b')](..._0x239156);}_0x2b1ea5=_0x478e4c;}_0xaadae8[_0x459f('0x14')]['change'](()=>{for(const _0x44f22d of _0x2b1ea5)_0x20f19d[_0x459f('0x24')](_0x44f22d,{'commandName':_0x459f('0xa'),'commandParams':[{'styleName':_0xc3646e,'forceValue':_0x5d562c}]});});}}),_0x20f19d[_0x459f('0x23')][_0x459f('0x19')](_0x29616f=>{const {data:_0x4d7c9a}=_0x29616f;if(_0x4d7c9a&&_0x459f('0xa')===_0x4d7c9a[_0x459f('0x1d')])return _0x4d7c9a['commandParams'][0x0][_0x459f('0x1f')]?{'type':_0x459f('0x29'),'content':_0x56e6cb(_0x40e6e7,_0x459f('0xc'),_0x4d7c9a[_0x459f('0x11')][0x0]['styleName']['toLowerCase']())}:{'type':_0x459f('0x29'),'content':_0x56e6cb(_0x40e6e7,_0x459f('0x2'),_0x4d7c9a[_0x459f('0x11')][0x0]['styleName'][_0x459f('0x1a')]())};});}['_getStyleDefinition'](_0x45444c,_0x8624f2){let _0x23dae1=_0x8624f2['block'][_0x459f('0x22')](_0x1c2466=>_0x1c2466['name']===_0x45444c);return _0x23dae1||(_0x23dae1=_0x8624f2[_0x459f('0x1')]['find'](_0x470b15=>_0x470b15[_0x459f('0x20')]===_0x45444c)),_0x23dae1;}[_0x459f('0x9')](_0x5cf1f4,_0x39f671,_0x127a50,_0x11031d){const _0x1c38bc=[];for(const _0x1e8c42 of _0x39f671[_0x459f('0x17')]()){const _0xe9828f=_0x1e8c42[_0x459f('0x12')](_0x11031d);_0xe9828f&&(_0x127a50[_0x459f('0x8')](_0x492073=>_0xe9828f[_0x459f('0x21')][_0x459f('0x7')](_0x492073))&&_0x1c38bc[_0x459f('0x1b')](_0x5cf1f4[_0x459f('0x25')](_0x1e8c42)));}return _0x1c38bc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4357=['_suggestionFactory','refresh','discard','nodeBefore','getSuggestion','model','getFirstRange','forceValue','insertTableRowAbove','item','execute','from','_setupColumnsRowsFixing','getRowIndexes','last','detach','every','suggestion','isInContent','removeTableColumn','setSelection','isEqual','MAX_SAFE_INTEGER','cell','nodeAfter','getContainedElement','*Insert:*\x20%0','push','subType','values','accept','toViewElement','get','$textProxy','min','_getSuggestionCoords','left','minRow','editor','removeClass','max','selectTableColumn','batch','map','writer','insertTableRowBelow','getItems','end','has','type','getCellLocation','registerElementLabel','TableUtils','start','addMarker:suggestion','join','_acceptFormatSuggestionCallbackFactory','insert','insertTableColumnLeft','createTableWalker','tableCell','change','name','add','above','showSuggestionHighlights','differ','table','startsWith','element','hasAttribute','data','span','first','highest','root','getColumnIndexes','TableEditing','filter','markMultiRangeInsertion','getChildren','createRangeOn','_splitMarkerName','classes','ELEMENT_TABLE','oldRange','plugins','_tablePostFixingSubtypes','tableRow','maxColumn','getRanges','minColumn','maxRow','markMultiRangeDeletion','tableColumn','mapper','position','_tableSuggestions','isTouching','ELEMENT_TABLE_COLUMN','enableCommand','removeTableRow','ELEMENT_TABLE_WITH_TEXT','MIN_SAFE_INTEGER','ELEMENT_TABLE_COLUMN_WITH_TEXT','ELEMENT_TABLE_ROW','options','isArray','order','findAncestor','$graveyard','afterInit','deletion','toLowerCase','substr','includes','isIntersectingWithRange','*Remove:*\x20%0','low','rootName','some','TrackChangesEditing','addRange','insertTable','insertion','enqueueChange','ELEMENT_TABLE_ROW_WITH_TEXT','length','commands','getAttribute','fromRange','document','rowspan','_descriptionFactory','colspan','change:data','getChangedMarkers','selection','tablePaste','registerCustomCallback','getSelectionAffectedTableCells'];(function(_0x3c1522,_0x4357f6){const _0x2d30f9=function(_0x55634a){while(--_0x55634a){_0x3c1522['push'](_0x3c1522['shift']());}};_0x2d30f9(++_0x4357f6);}(_0x4357,0x160));const _0x2d30=function(_0x3c1522,_0x4357f6){_0x3c1522=_0x3c1522-0x0;let _0x2d30f9=_0x4357[_0x3c1522];return _0x2d30f9;};import{Plugin as _0x26e358}from'ckeditor5/src/core';import{LiveRange as _0x547d2c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5538fe}from'ckeditor5/src/widget';import{getTranslation as _0x27cfbb}from'../utils/common-translations';export default class mt extends _0x26e358{constructor(_0x431a06){super(_0x431a06),this[_0x2d30('0x11')]=[_0x2d30('0x12'),_0x2d30('0x18')],this['_tableSuggestions']=new Set();}[_0x2d30('0x29')](){const _0x1fcf2a=this[_0x2d30('0x6d')],_0x1ed46b=_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x3d')][_0x2d30('0x43')];if(!_0x1fcf2a['plugins'][_0x2d30('0x77')](_0x2d30('0x7')))return;const _0x2e2249=_0x1fcf2a['locale'],_0x169b93=_0x1fcf2a[_0x2d30('0x10')][_0x2d30('0x67')]('TrackChangesEditing'),_0xd3ef8c=_0x1fcf2a[_0x2d30('0x10')]['get'](_0x2d30('0x7b'));_0x169b93[_0x2d30('0x3f')][_0x2d30('0x7a')](_0x2d30('0x8a'),_0x5815bc=>_0x27cfbb(_0x2e2249,_0x2d30('0xe'),_0x5815bc)),this[_0x2d30('0x53')](),_0x169b93[_0x2d30('0x1e')](_0x2d30('0x35')),_0x169b93['enableCommand']('selectTableRow'),_0x169b93['enableCommand'](_0x2d30('0x70'));for(const _0x51f2d5 of[_0x2d30('0x4f'),_0x2d30('0x74')]){const _0x34aacf=_0x1fcf2a[_0x2d30('0x3a')][_0x2d30('0x67')](_0x51f2d5);_0x169b93[_0x2d30('0x1e')](_0x51f2d5,_0x239f4e=>{_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x398a03=>{_0x239f4e();const _0x2b708b=_0x2d30('0x87')===_0x34aacf[_0x2d30('0x26')],_0x55df83=_0xd3ef8c[_0x2d30('0x46')](_0x1ed46b),_0x32f06d=_0xd3ef8c[_0x2d30('0x54')](_0x55df83),_0x1dc969=_0x2b708b?_0x32f06d['first']-0x1:_0x32f06d['last']+0x1,_0x426083=_0x55df83[0x0][_0x2d30('0x27')]('table'),_0x20b913=_0xd3ef8c['createTableWalker'](_0x426083,{'startRow':_0x1dc969,'endRow':_0x1dc969}),_0x367cc8=Array[_0x2d30('0x52')](_0x20b913)['map'](_0x8ec71f=>_0x398a03[_0x2d30('0xb')](_0x8ec71f[_0x2d30('0x5e')]));_0x169b93[_0x2d30('0x9')](_0x367cc8,_0x2d30('0x12'));});});}for(const _0x491e54 of[_0x2d30('0x81'),'insertTableColumnRight']){const _0x2a65fa=_0x1fcf2a[_0x2d30('0x3a')][_0x2d30('0x67')](_0x491e54);_0x169b93['enableCommand'](_0x491e54,_0x13b2ff=>{_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x353c10=>{_0x13b2ff();const _0xf7abbb=_0x2d30('0x6b')===_0x2a65fa[_0x2d30('0x26')],_0x374499=_0xd3ef8c['getSelectionAffectedTableCells'](_0x1ed46b),_0x5e893c=_0xd3ef8c[_0x2d30('0x6')](_0x374499),_0x243590=_0xf7abbb?_0x5e893c['first']-0x1:_0x5e893c[_0x2d30('0x55')]+0x1,_0x2d7c61=_0x374499[0x0][_0x2d30('0x27')]('table'),_0x439848=_0xd3ef8c['createTableWalker'](_0x2d7c61,{'startRow':0x0,'column':_0x243590,'includeAllSlots':!0x1}),_0x2c25dd=Array['from'](_0x439848)[_0x2d30('0x72')](_0x40d0bf=>_0x353c10[_0x2d30('0xb')](_0x40d0bf[_0x2d30('0x5e')]));_0x169b93[_0x2d30('0x9')](_0x2c25dd,_0x2d30('0x18'));});});}for(const _0x3a7f0c of['removeTableRow',_0x2d30('0x5a')]){const _0x448b54=_0x3a7f0c['substr'](0xb),_0x601f44=_0x448b54[_0x2d30('0x2b')](),_0x3862a9=_0x601f44['substr'](0x0,0x3)+'span',_0x1dcf7b=_0x2d30('0x8a')+_0x448b54,_0x25ce10=_0x2d30('0x69')+_0x448b54,_0x1980db=_0x2d30('0x6f')+_0x448b54;_0x169b93[_0x2d30('0x1e')](_0x3a7f0c,()=>{_0x1fcf2a['model'][_0x2d30('0x84')](_0x1c439b=>{const _0x194f0b=_0xd3ef8c[_0x2d30('0x46')](_0x1ed46b),_0x5f6748=_0x194f0b[0x0][_0x2d30('0x27')]('table');let _0x1fb981;if(_0x2d30('0x1f')==_0x3a7f0c){const _0x19835a=_0xd3ef8c[_0x2d30('0x54')](_0x194f0b);_0x1fb981={'startRow':_0x19835a[_0x2d30('0x3')],'endRow':_0x19835a[_0x2d30('0x55')],'includeAllSlots':!0x0};}else{const _0x3648e7=_0xd3ef8c[_0x2d30('0x6')](_0x194f0b);_0x1fb981={'startColumn':_0x3648e7['first'],'endColumn':_0x3648e7['last'],'includeAllSlots':!0x0};}const _0x21b5eb=_0xd3ef8c[_0x2d30('0x82')](_0x5f6748,_0x1fb981),_0x5a2dc9=Array[_0x2d30('0x52')](_0x21b5eb)['map'](({cell:_0x2d6aae})=>_0x2d6aae),_0x1d8377=se(_0x5a2dc9[_0x2d30('0x8')](_0x238eb0=>_0x238eb0[_0x2d30('0x0')](_0x3862a9))),_0x4da698=se(_0x5a2dc9['filter'](_0x176e08=>!_0x176e08[_0x2d30('0x0')](_0x3862a9)))['map'](_0x16f854=>_0x1c439b[_0x2d30('0xb')](_0x16f854)),_0x5b406f=_0x169b93[_0x2d30('0x17')](_0x4da698,_0x1dcf7b);if(_0x5b406f&&(_0x2d30('0x12')==_0x5b406f[_0x2d30('0x63')]||_0x2d30('0x18')==_0x5b406f[_0x2d30('0x63')])){const _0x749fab=this[_0x2d30('0x6a')](_0x5b406f);for(const _0x494ddf of _0x1d8377){const _0x497fd0=_0x1c439b['createRangeOn'](_0x494ddf),_0x38ffb3=_0xd3ef8c[_0x2d30('0x79')](_0x494ddf),_0x4c0c36=_0x494ddf['getAttribute'](_0x3862a9)-0x1,_0x10f33e=_0x749fab[_0x25ce10],_0x2913f1=_0x749fab[_0x1980db];_0x10f33e<=_0x38ffb3[_0x601f44]&&_0x38ffb3[_0x601f44]+_0x4c0c36<=_0x2913f1&&_0x5b406f[_0x2d30('0x34')](_0x497fd0);}}});});}function _0x11eff1(_0x50a623){const _0x34e03c=Array[_0x2d30('0x52')](_0x1ed46b['getRanges']())[_0x2d30('0x72')](_0x2f9235=>_0x547d2c[_0x2d30('0x3c')](_0x2f9235));_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x33118c=>{const _0x424e04=_0x33118c[_0x2d30('0x71')];_0x50a623=_0x50a623['filter'](_0x2b9d58=>_0x2d30('0x28')!=_0x2b9d58[_0x2d30('0x5')][_0x2d30('0x31')]),_0x33118c['setSelection'](_0x50a623),_0x1fcf2a[_0x2d30('0x3a')][_0x2d30('0x67')]('removeTableRow')[_0x2d30('0x48')](),_0x1fcf2a['execute'](_0x2d30('0x1f'),{'forceDefaultExecution':!0x0}),_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x37')](()=>{_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x37')](_0x424e04,_0x5445ee=>{const _0x27f3ee=_0x34e03c[_0x2d30('0x8')](_0x25d4f7=>_0x2d30('0x28')!=_0x25d4f7[_0x2d30('0x5')]['rootName']);_0x27f3ee[_0x2d30('0x39')]>0x0&&_0x5445ee[_0x2d30('0x5b')](_0x27f3ee);for(const _0x5ef225 of _0x34e03c)_0x5ef225['detach']();});});});}function _0x1c4a5b(_0x2542e4){_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x4c2b10=>{const _0x50a6dc=Array[_0x2d30('0x52')](_0x1ed46b[_0x2d30('0x14')]())[_0x2d30('0x72')](_0x1ffa9e=>_0x547d2c['fromRange'](_0x1ffa9e)),_0x2663ab=[];for(const _0x21e59f of _0x2542e4)for(const _0xe01309 of _0x21e59f['getItems']({'shallow':!0x0}))_0x2663ab[_0x2d30('0x62')](_0xe01309);for(const _0x5cf2db of _0x2663ab)'$graveyard'!=_0x5cf2db['root']['rootName']&&(_0x4c2b10[_0x2d30('0x5b')](_0x4c2b10['createPositionAt'](_0x5cf2db,0x0)),_0x1fcf2a[_0x2d30('0x3a')]['get']('removeTableColumn')['refresh'](),_0x1fcf2a[_0x2d30('0x51')](_0x2d30('0x5a'),{'forceDefaultExecution':!0x0}));const _0x5c220b=_0x50a6dc[_0x2d30('0x8')](_0x2e96b9=>'$graveyard'!=_0x2e96b9[_0x2d30('0x5')][_0x2d30('0x31')]);_0x5c220b[_0x2d30('0x39')]>0x0&&_0x4c2b10[_0x2d30('0x5b')](_0x5c220b);for(const _0x319f50 of _0x50a6dc)_0x319f50[_0x2d30('0x56')]();});}function _0x1574bb(_0x9fc272,_0xa28cbb){return _0xa28cbb[_0x2d30('0x57')](_0x3ffa30=>_0x9fc272['some'](_0xdd64a2=>_0xdd64a2[_0x2d30('0x76')][_0x2d30('0x5c')](_0x3ffa30[_0x2d30('0x7c')])||_0x3ffa30[_0x2d30('0x76')][_0x2d30('0x5c')](_0xdd64a2['start'])));}function _0x50b425(_0xe99f56,_0x3cf131){return _0xe99f56['some'](_0x19e240=>_0x3cf131[_0x2d30('0x32')](_0x28c90a=>_0x19e240[_0x2d30('0x76')][_0x2d30('0x1c')](_0x28c90a[_0x2d30('0x7c')])));}_0x1fcf2a[_0x2d30('0x1')]['downcastDispatcher']['on'](_0x2d30('0x7d'),(_0x55e1e5,_0x44bae5,_0x18c9d6)=>{if(!_0x18c9d6[_0x2d30('0x24')][_0x2d30('0x88')])return;const _0x2ecce8=_0x44bae5[_0x2d30('0x50')];if(!_0x2ecce8)return;const _0x5e2ec8=_0x18c9d6[_0x2d30('0x19')][_0x2d30('0x66')](_0x2ecce8);function _0x1c331e(_0x10ed47){return Array[_0x2d30('0x25')](_0x10ed47)?_0x10ed47:[_0x10ed47];}_0x5e2ec8&&_0x2d30('0x83')===_0x2ecce8[_0x2d30('0x85')]&&_0x5538fe(_0x5e2ec8,_0x18c9d6[_0x2d30('0x73')],(_0x5b7bf1,_0x1b2eb2,_0x47e7ba)=>_0x47e7ba['addClass'](_0x1c331e(_0x1b2eb2[_0x2d30('0xd')]),_0x5b7bf1),(_0x5c3c24,_0x1f1493,_0x305ac5)=>_0x305ac5[_0x2d30('0x6e')](_0x1c331e(_0x1f1493[_0x2d30('0xd')]),_0x5c3c24));},{'priority':_0x2d30('0x4')}),_0x169b93[_0x2d30('0x3f')]['registerDescriptionCallback'](_0x3de7bd=>{if(_0x2d30('0x36')!=_0x3de7bd[_0x2d30('0x78')]&&'deletion'!=_0x3de7bd[_0x2d30('0x78')])return;const _0x12ec7a=_0x3de7bd[_0x2d30('0x60')]();if(null!=_0x12ec7a&&_0x12ec7a['is'](_0x2d30('0x8c'),_0x2d30('0x8a'))){if(_0x2d30('0x36')==_0x3de7bd[_0x2d30('0x78')]){const _0x83360a=_0x3de7bd[_0x2d30('0x75')]()[_0x2d30('0x8')](_0x225f6d=>_0x225f6d['is'](_0x2d30('0x68')))['map'](_0x5b789b=>_0x5b789b['data']);if(_0x83360a['length'])return{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x20'),'\x22'+_0x83360a[_0x2d30('0x7e')]('\x20')+'\x22'))};}if(_0x2d30('0x2a')==_0x3de7bd[_0x2d30('0x78')]){const _0x528b6e=_0x3de7bd[_0x2d30('0x75')]()[_0x2d30('0x8')](_0x1ee8a5=>_0x1ee8a5['is'](_0x2d30('0x68')))['map'](_0x52a85e=>_0x52a85e[_0x2d30('0x1')]);if(_0x528b6e[_0x2d30('0x39')])return{'type':'deletion','content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x20'),'\x22'+_0x528b6e['join']('\x20')+'\x22'))};}}}),_0x169b93[_0x2d30('0x3f')]['registerDescriptionCallback'](_0x10d011=>{if('tableRow'==_0x10d011[_0x2d30('0x63')]){const _0x5bbaf9=_0x10d011[_0x2d30('0x75')]()['filter'](_0x278b73=>_0x278b73['is'](_0x2d30('0x68')))[_0x2d30('0x72')](_0x4d5514=>_0x4d5514[_0x2d30('0x1')]),_0x4dd4ec=this['_getSuggestionCoords'](_0x10d011),_0x50393f=_0x4dd4ec[_0x2d30('0x16')]-_0x4dd4ec[_0x2d30('0x6c')]+0x1;if(_0x2d30('0x36')==_0x10d011[_0x2d30('0x78')])return _0x5bbaf9[_0x2d30('0x39')]?{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50393f,'\x22'+_0x5bbaf9[_0x2d30('0x7e')]('\x20')+'\x22']))}:{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x23'),_0x50393f))};if(_0x2d30('0x2a')==_0x10d011[_0x2d30('0x78')])return _0x5bbaf9[_0x2d30('0x39')]?{'type':'deletion','content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x38'),[_0x50393f,'\x22'+_0x5bbaf9[_0x2d30('0x7e')]('\x20')+'\x22']))}:{'type':_0x2d30('0x2a'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x23'),_0x50393f))};}if(_0x2d30('0x18')==_0x10d011[_0x2d30('0x63')]){const _0x4af8b4=_0x10d011[_0x2d30('0x75')]()['filter'](_0x32fbc6=>_0x32fbc6['is']('$textProxy'))[_0x2d30('0x72')](_0x16c8fb=>_0x16c8fb[_0x2d30('0x1')]),_0x4413dd=this['_getSuggestionCoords'](_0x10d011),_0x2d9636=_0x4413dd[_0x2d30('0x13')]-_0x4413dd[_0x2d30('0x15')]+0x1;if(_0x2d30('0x36')==_0x10d011[_0x2d30('0x78')])return _0x4af8b4[_0x2d30('0x39')]?{'type':'insertion','content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x22'),[_0x2d9636,'\x22'+_0x4af8b4['join']('\x20')+'\x22']))}:{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x1d'),_0x2d9636))};if(_0x2d30('0x2a')==_0x10d011[_0x2d30('0x78')])return _0x4af8b4[_0x2d30('0x39')]?{'type':'deletion','content':_0x27cfbb(_0x2e2249,'*Remove:*\x20%0',_0x27cfbb(_0x2e2249,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d9636,'\x22'+_0x4af8b4['join']('\x20')+'\x22']))}:{'type':_0x2d30('0x2a'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x1d'),_0x2d9636))};}}),_0x169b93[_0x2d30('0x47')]['registerCustomCallback'](_0x2d30('0x36'),_0x2d30('0x12'),'discard',_0x11eff1),_0x169b93[_0x2d30('0x47')]['registerCustomCallback'](_0x2d30('0x2a'),_0x2d30('0x12'),_0x2d30('0x65'),_0x11eff1),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x36'),_0x2d30('0x18'),_0x2d30('0x49'),_0x1c4a5b),_0x169b93['_suggestionFactory'][_0x2d30('0x45')](_0x2d30('0x2a'),'tableColumn',_0x2d30('0x65'),_0x1c4a5b),_0x169b93['_suggestionFactory'][_0x2d30('0x45')](_0x2d30('0x36'),_0x2d30('0x18'),_0x2d30('0x7e'),_0x1574bb),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x2a'),'tableColumn',_0x2d30('0x7e'),_0x1574bb),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x36'),_0x2d30('0x12'),_0x2d30('0x7e'),_0x50b425),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x2a'),_0x2d30('0x12'),_0x2d30('0x7e'),_0x50b425);}[_0x2d30('0x7f')](){const _0x44b65b=this[_0x2d30('0x6d')],_0xa84f7d=_0x44b65b[_0x2d30('0x4c')]['document'][_0x2d30('0x43')];return(_0x546057,_0x3f873e)=>{_0x44b65b[_0x2d30('0x4c')][_0x2d30('0x84')](_0x3e2c67=>{const {commandName:_0x50ad00,commandParams:_0x54681d}=_0x3f873e;let _0x26ad2b=_0x546057[0x0][_0x2d30('0x76')][_0x2d30('0x4a')];_0x54681d&&_0x54681d[0x0]&&!0x1===_0x54681d[0x0][_0x2d30('0x4e')]&&(_0x26ad2b=_0x546057[0x0][_0x2d30('0x7c')][_0x2d30('0x5f')]);const _0x590b85=_0x3e2c67['createRangeIn'](_0x26ad2b);if(_0x2d30('0x28')==_0x590b85['root'][_0x2d30('0x31')])return;const _0x501b11=Array[_0x2d30('0x52')](_0xa84f7d['getRanges']())[_0x2d30('0x72')](_0x1f8f13=>_0x547d2c['fromRange'](_0x1f8f13));_0x3e2c67[_0x2d30('0x5b')](_0x590b85),_0x44b65b[_0x2d30('0x3a')][_0x2d30('0x67')](_0x50ad00)['refresh'](),_0x54681d['push']({'forceDefaultExecution':!0x0}),_0x44b65b['execute'](_0x50ad00,..._0x54681d);const _0x5a427f=_0x501b11['filter'](_0x72c097=>_0x2d30('0x28')!=_0x72c097[_0x2d30('0x5')]['rootName']);_0x5a427f[_0x2d30('0x39')]>0x0&&_0x3e2c67['setSelection'](_0x5a427f);for(const _0x12fb28 of _0x501b11)_0x12fb28[_0x2d30('0x56')]();});};}['_getCoordsForCells'](_0x1689ac){const _0x46517d=this[_0x2d30('0x6d')][_0x2d30('0x10')][_0x2d30('0x67')]('TableUtils');let _0x4ab4af=Number[_0x2d30('0x5d')],_0x354c7f=Number['MIN_SAFE_INTEGER'],_0x741c57=Number[_0x2d30('0x5d')],_0x4d230c=Number[_0x2d30('0x21')];for(const _0x28265f of _0x1689ac){if(_0x2d30('0x28')==_0x28265f[_0x2d30('0x5')][_0x2d30('0x31')])continue;const {row:_0x1ce517,column:_0x3aec41}=_0x46517d[_0x2d30('0x79')](_0x28265f),_0x1630db=_0x28265f[_0x2d30('0x0')]('rowspan')?_0x28265f[_0x2d30('0x3b')](_0x2d30('0x3e'))-0x1:0x0,_0x132506=_0x28265f['hasAttribute'](_0x2d30('0x40'))?_0x28265f[_0x2d30('0x3b')]('colspan')-0x1:0x0;_0x4ab4af=_0x1ce517<_0x4ab4af?_0x1ce517:_0x4ab4af,_0x354c7f=_0x1ce517+_0x1630db>_0x354c7f?_0x1ce517+_0x1630db:_0x354c7f,_0x741c57=_0x3aec41<_0x741c57?_0x3aec41:_0x741c57,_0x4d230c=_0x3aec41+_0x132506>_0x4d230c?_0x3aec41+_0x132506:_0x4d230c;}return{'minRow':_0x4ab4af,'maxRow':_0x354c7f,'minColumn':_0x741c57,'maxColumn':_0x4d230c};}[_0x2d30('0x53')](){const _0x75043f=this[_0x2d30('0x6d')],_0x31f702=_0x75043f[_0x2d30('0x10')][_0x2d30('0x67')](_0x2d30('0x33')),_0x5ce556=_0x75043f[_0x2d30('0x10')][_0x2d30('0x67')](_0x2d30('0x7b'));_0x75043f['model'][_0x2d30('0x3d')]['on'](_0x2d30('0x41'),()=>{const _0x3d87f9=Array['from'](_0x75043f[_0x2d30('0x4c')][_0x2d30('0x3d')][_0x2d30('0x89')][_0x2d30('0x42')]());for(const {name:_0x23a28e,data:_0x1c34c5}of _0x3d87f9){const {group:_0x1ea03a,id:_0x44bcca,subType:_0x436164}=_0x31f702[_0x2d30('0xc')](_0x23a28e);if(_0x2d30('0x58')!=_0x1ea03a)continue;if(null!=_0x1c34c5[_0x2d30('0xf')])continue;const _0xa3e436=_0x31f702[_0x2d30('0x4b')](_0x44bcca);this[_0x2d30('0x11')][_0x2d30('0x2d')](_0x436164)&&this['_tableSuggestions'][_0x2d30('0x86')](_0xa3e436);}},{'priority':_0x2d30('0x30')});const _0x5d1b90=(_0x34d7d4,_0x198242)=>{let _0x2b5d51=!0x1;const _0x53039a=_0x198242[_0x2d30('0xb')](_0x34d7d4),_0x1f7515=_0x34d7d4[_0x2d30('0x27')]('table'),_0x5b4ced=_0x5ce556[_0x2d30('0x79')](_0x34d7d4);for(const _0x1398bd of this[_0x2d30('0x1b')]){const _0x23a5a6=_0x1398bd[_0x2d30('0x63')],_0x37bd70=_0x23a5a6[_0x2d30('0x8b')](_0x2d30('0x44')),_0x40935d=_0x23a5a6[_0x2d30('0x2c')](_0x37bd70?0xa:0x5),_0x952408=_0x40935d['toLowerCase'](),_0x291242=_0x952408[_0x2d30('0x2c')](0x0,0x3)+_0x2d30('0x2'),_0x5804db=_0x2d30('0x69')+_0x40935d,_0x18c1f0=_0x2d30('0x6f')+_0x40935d;if(!_0x1398bd[_0x2d30('0x59')])continue;if(_0x1f7515!=_0x1398bd[_0x2d30('0x4d')]()[_0x2d30('0x7c')][_0x2d30('0x27')](_0x2d30('0x8a')))continue;if(_0x1398bd[_0x2d30('0x2e')](_0x53039a))continue;const _0x2fb941=_0x34d7d4[_0x2d30('0x0')](_0x291242)?_0x34d7d4['getAttribute'](_0x291242)-0x1:0x0,_0x472bfa=this[_0x2d30('0x6a')](_0x1398bd),_0x25c1bf=_0x472bfa[_0x5804db],_0x3150a7=_0x472bfa[_0x18c1f0];_0x25c1bf<=_0x5b4ced[_0x952408]&&_0x5b4ced[_0x952408]+_0x2fb941<=_0x3150a7&&(_0x1398bd[_0x2d30('0x34')](_0x53039a),_0x2b5d51=!0x0);}return _0x2b5d51;};_0x75043f[_0x2d30('0x4c')][_0x2d30('0x3d')]['registerPostFixer'](_0x3302f3=>{let _0x300c1c=!0x1;for(const _0x4df93a of _0x75043f['model'][_0x2d30('0x3d')][_0x2d30('0x89')]['getChanges']())if(_0x2d30('0x80')==_0x4df93a[_0x2d30('0x78')]){if(_0x2d30('0x12')==_0x4df93a[_0x2d30('0x85')])for(const _0x192285 of _0x4df93a[_0x2d30('0x1a')]['nodeAfter'][_0x2d30('0xa')]())_0x300c1c=_0x300c1c||_0x5d1b90(_0x192285,_0x3302f3);else _0x2d30('0x83')==_0x4df93a['name']&&(_0x300c1c=_0x300c1c||_0x5d1b90(_0x4df93a[_0x2d30('0x1a')]['nodeAfter'],_0x3302f3));}return _0x300c1c;});}[_0x2d30('0x6a')](_0x1f43ac){return this['_getCoordsForCells'](_0x1f43ac[_0x2d30('0x14')]()[_0x2d30('0x72')](_0x526718=>_0x526718[_0x2d30('0x7c')][_0x2d30('0x5f')]));}}function se(_0x1b4df1){return Array['from'](new Set(_0x1b4df1)[_0x2d30('0x64')]());}
|
|
23
|
+
const _0x16a2=['selectTableRow','add','ELEMENT_TABLE_COLUMN','insertTableRowAbove','item','setSelection','locale','_getSuggestionCoords','enableCommand','markMultiRangeInsertion','from','removeTableColumn','plugins','$graveyard','ELEMENT_TABLE_WITH_TEXT','length','includes','createRangeOn','data','oldRange','hasAttribute','ELEMENT_TABLE_COLUMN_WITH_TEXT','subType','registerCustomCallback','_splitMarkerName','editor','join','push','getFirstRange','_setupColumnsRowsFixing','nodeBefore','getItems','MIN_SAFE_INTEGER','$textProxy','tableColumn','table','createTableWalker','registerDescriptionCallback','findAncestor','removeTableRow','highest','root','some','addRange','nodeAfter','last','showSuggestionHighlights','options','map','rootName','deletion','_tableSuggestions','values','TableEditing','markMultiRangeDeletion','TableUtils','document','getRanges','_suggestionFactory','maxColumn','filter','getAttribute','getRowIndexes','getColumnIndexes','classes','ELEMENT_TABLE_ROW','start','discard','getChanges','isArray','getSuggestion','TrackChangesEditing','getSelectionAffectedTableCells','*Insert:*\x20%0','toLowerCase','removeClass','maxRow','first','suggestion','differ','model','commands','max','change:data','above','accept','low','tableCell','_descriptionFactory','enqueueChange','createPositionAt','ELEMENT_TABLE_ROW_WITH_TEXT','getContainedElement','forceValue','ELEMENT_TABLE','selectTableColumn','position','batch','insertTableRowBelow','getChangedMarkers','element','MAX_SAFE_INTEGER','minColumn','refresh','isInContent','downcastDispatcher','substr','order','get','colspan','isEqual','min','name','type','_acceptFormatSuggestionCallbackFactory','cell','_getCoordsForCells','has','detach','startsWith','createRangeIn','tableRow','getCellLocation','insertion','span','end','selection','minRow','toViewElement','*Remove:*\x20%0','execute','_tablePostFixingSubtypes','insertTable','change','writer'];(function(_0x55e7da,_0x16a237){const _0x4f5be5=function(_0x5912a9){while(--_0x5912a9){_0x55e7da['push'](_0x55e7da['shift']());}};_0x4f5be5(++_0x16a237);}(_0x16a2,0x1cd));const _0x4f5b=function(_0x55e7da,_0x16a237){_0x55e7da=_0x55e7da-0x0;let _0x4f5be5=_0x16a2[_0x55e7da];return _0x4f5be5;};import{Plugin as _0x17df08}from'ckeditor5/src/core';import{LiveRange as _0x2ac8e6}from'ckeditor5/src/engine';import{setHighlightHandling as _0xc00eef}from'ckeditor5/src/widget';import{getTranslation as _0xe11d2b}from'../utils/common-translations';export default class mt extends _0x17df08{constructor(_0xbfc8f1){super(_0xbfc8f1),this['_tablePostFixingSubtypes']=[_0x4f5b('0x41'),_0x4f5b('0x71')],this[_0x4f5b('0x82')]=new Set();}['afterInit'](){const _0x19e152=this[_0x4f5b('0x68')],_0x47f1d3=_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x0')][_0x4f5b('0x46')];if(!_0x19e152[_0x4f5b('0x5b')][_0x4f5b('0x3d')](_0x4f5b('0x84')))return;const _0x15055a=_0x19e152[_0x4f5b('0x55')],_0x3953fe=_0x19e152['plugins'][_0x4f5b('0x34')]('TrackChangesEditing'),_0x364f2a=_0x19e152[_0x4f5b('0x5b')]['get'](_0x4f5b('0x86'));_0x3953fe[_0x4f5b('0x20')]['registerElementLabel'](_0x4f5b('0x72'),_0x5c4b31=>_0xe11d2b(_0x15055a,_0x4f5b('0x26'),_0x5c4b31)),this[_0x4f5b('0x6c')](),_0x3953fe[_0x4f5b('0x57')](_0x4f5b('0x4c')),_0x3953fe[_0x4f5b('0x57')](_0x4f5b('0x4f')),_0x3953fe[_0x4f5b('0x57')](_0x4f5b('0x27'));for(const _0x5eebe2 of[_0x4f5b('0x52'),_0x4f5b('0x2a')]){const _0x85bc91=_0x19e152[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x5eebe2);_0x3953fe[_0x4f5b('0x57')](_0x5eebe2,_0x36ea75=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x5c87fd=>{_0x36ea75();const _0x35427e=_0x4f5b('0x1c')===_0x85bc91['order'],_0x2a6d2e=_0x364f2a[_0x4f5b('0x10')](_0x47f1d3),_0x4981e1=_0x364f2a[_0x4f5b('0x6')](_0x2a6d2e),_0x13d31a=_0x35427e?_0x4981e1[_0x4f5b('0x15')]-0x1:_0x4981e1[_0x4f5b('0x7c')]+0x1,_0xb450d5=_0x2a6d2e[0x0][_0x4f5b('0x75')](_0x4f5b('0x72')),_0x14d47e=_0x364f2a[_0x4f5b('0x73')](_0xb450d5,{'startRow':_0x13d31a,'endRow':_0x13d31a}),_0x2afa7f=Array[_0x4f5b('0x59')](_0x14d47e)[_0x4f5b('0x7f')](_0x1c2fb5=>_0x5c87fd['createRangeOn'](_0x1c2fb5[_0x4f5b('0x3b')]));_0x3953fe[_0x4f5b('0x58')](_0x2afa7f,_0x4f5b('0x41'));});});}for(const _0x1a7107 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e8ccc=_0x19e152[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x1a7107);_0x3953fe[_0x4f5b('0x57')](_0x1a7107,_0xc790aa=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x557dba=>{_0xc790aa();const _0x47098a='left'===_0x4e8ccc[_0x4f5b('0x33')],_0x562d83=_0x364f2a[_0x4f5b('0x10')](_0x47f1d3),_0x8dc9ba=_0x364f2a[_0x4f5b('0x7')](_0x562d83),_0x52fdbd=_0x47098a?_0x8dc9ba[_0x4f5b('0x15')]-0x1:_0x8dc9ba[_0x4f5b('0x7c')]+0x1,_0x5dd7ec=_0x562d83[0x0]['findAncestor'](_0x4f5b('0x72')),_0x56acb6=_0x364f2a[_0x4f5b('0x73')](_0x5dd7ec,{'startRow':0x0,'column':_0x52fdbd,'includeAllSlots':!0x1}),_0x22d96e=Array[_0x4f5b('0x59')](_0x56acb6)[_0x4f5b('0x7f')](_0x2d2377=>_0x557dba[_0x4f5b('0x60')](_0x2d2377['cell']));_0x3953fe[_0x4f5b('0x58')](_0x22d96e,_0x4f5b('0x71'));});});}for(const _0x284f38 of[_0x4f5b('0x76'),_0x4f5b('0x5a')]){const _0x13089d=_0x284f38[_0x4f5b('0x32')](0xb),_0x4cbbc9=_0x13089d[_0x4f5b('0x12')](),_0x1ccbf2=_0x4cbbc9[_0x4f5b('0x32')](0x0,0x3)+_0x4f5b('0x44'),_0x334e09=_0x4f5b('0x72')+_0x13089d,_0x2c2afe=_0x4f5b('0x37')+_0x13089d,_0x3c2eb4=_0x4f5b('0x1a')+_0x13089d;_0x3953fe['enableCommand'](_0x284f38,()=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x45dced=>{const _0x5660be=_0x364f2a[_0x4f5b('0x10')](_0x47f1d3),_0xa332f1=_0x5660be[0x0][_0x4f5b('0x75')]('table');let _0x4b2aed;if(_0x4f5b('0x76')==_0x284f38){const _0xc64746=_0x364f2a[_0x4f5b('0x6')](_0x5660be);_0x4b2aed={'startRow':_0xc64746['first'],'endRow':_0xc64746[_0x4f5b('0x7c')],'includeAllSlots':!0x0};}else{const _0x518273=_0x364f2a['getColumnIndexes'](_0x5660be);_0x4b2aed={'startColumn':_0x518273[_0x4f5b('0x15')],'endColumn':_0x518273[_0x4f5b('0x7c')],'includeAllSlots':!0x0};}const _0x2d674d=_0x364f2a[_0x4f5b('0x73')](_0xa332f1,_0x4b2aed),_0xdc802f=Array[_0x4f5b('0x59')](_0x2d674d)[_0x4f5b('0x7f')](({cell:_0x13db32})=>_0x13db32),_0x289daf=se(_0xdc802f[_0x4f5b('0x4')](_0xc450b3=>_0xc450b3[_0x4f5b('0x63')](_0x1ccbf2))),_0x3daee8=se(_0xdc802f[_0x4f5b('0x4')](_0x5b2954=>!_0x5b2954[_0x4f5b('0x63')](_0x1ccbf2)))['map'](_0x56cf88=>_0x45dced[_0x4f5b('0x60')](_0x56cf88)),_0x4358a9=_0x3953fe[_0x4f5b('0x85')](_0x3daee8,_0x334e09);if(_0x4358a9&&('tableRow'==_0x4358a9['subType']||'tableColumn'==_0x4358a9['subType'])){const _0x48f1cd=this['_getSuggestionCoords'](_0x4358a9);for(const _0x1f8fbb of _0x289daf){const _0x17b8c1=_0x45dced['createRangeOn'](_0x1f8fbb),_0x2a5656=_0x364f2a['getCellLocation'](_0x1f8fbb),_0x28d78c=_0x1f8fbb[_0x4f5b('0x5')](_0x1ccbf2)-0x1,_0x792b87=_0x48f1cd[_0x2c2afe],_0x4b9c1b=_0x48f1cd[_0x3c2eb4];_0x792b87<=_0x2a5656[_0x4cbbc9]&&_0x2a5656[_0x4cbbc9]+_0x28d78c<=_0x4b9c1b&&_0x4358a9['addRange'](_0x17b8c1);}}});});}function _0xf6a9be(_0xed8103){const _0x1bd08e=Array['from'](_0x47f1d3['getRanges']())[_0x4f5b('0x7f')](_0x4138a4=>_0x2ac8e6['fromRange'](_0x4138a4));_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x279bab=>{const _0x18f432=_0x279bab[_0x4f5b('0x29')];_0xed8103=_0xed8103['filter'](_0xf6f5e6=>'$graveyard'!=_0xf6f5e6[_0x4f5b('0x78')][_0x4f5b('0x80')]),_0x279bab['setSelection'](_0xed8103),_0x19e152[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x4f5b('0x76'))[_0x4f5b('0x2f')](),_0x19e152[_0x4f5b('0x4a')](_0x4f5b('0x76'),{'forceDefaultExecution':!0x0}),_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x21')](()=>{_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x21')](_0x18f432,_0x207cfa=>{const _0xa7a64c=_0x1bd08e['filter'](_0x57f064=>_0x4f5b('0x5c')!=_0x57f064[_0x4f5b('0x78')][_0x4f5b('0x80')]);_0xa7a64c[_0x4f5b('0x5e')]>0x0&&_0x207cfa[_0x4f5b('0x54')](_0xa7a64c);for(const _0x144e36 of _0x1bd08e)_0x144e36['detach']();});});});}function _0x519627(_0x2273f6){_0x19e152[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x963cf3=>{const _0x4d83f2=Array[_0x4f5b('0x59')](_0x47f1d3[_0x4f5b('0x1')]())['map'](_0x370c73=>_0x2ac8e6['fromRange'](_0x370c73)),_0x18ae18=[];for(const _0x45b883 of _0x2273f6)for(const _0x5b58c8 of _0x45b883[_0x4f5b('0x6e')]({'shallow':!0x0}))_0x18ae18[_0x4f5b('0x6a')](_0x5b58c8);for(const _0x402dfc of _0x18ae18)_0x4f5b('0x5c')!=_0x402dfc['root'][_0x4f5b('0x80')]&&(_0x963cf3[_0x4f5b('0x54')](_0x963cf3[_0x4f5b('0x22')](_0x402dfc,0x0)),_0x19e152['commands'][_0x4f5b('0x34')]('removeTableColumn')[_0x4f5b('0x2f')](),_0x19e152[_0x4f5b('0x4a')](_0x4f5b('0x5a'),{'forceDefaultExecution':!0x0}));const _0x144845=_0x4d83f2[_0x4f5b('0x4')](_0x4b25f5=>_0x4f5b('0x5c')!=_0x4b25f5['root']['rootName']);_0x144845[_0x4f5b('0x5e')]>0x0&&_0x963cf3['setSelection'](_0x144845);for(const _0x87c450 of _0x4d83f2)_0x87c450['detach']();});}function _0x52f624(_0x40b32b,_0x441c0f){return _0x441c0f['every'](_0x17de1e=>_0x40b32b['some'](_0x38dae9=>_0x38dae9[_0x4f5b('0x45')][_0x4f5b('0x36')](_0x17de1e['start'])||_0x17de1e[_0x4f5b('0x45')][_0x4f5b('0x36')](_0x38dae9[_0x4f5b('0xa')])));}function _0x3970d5(_0x58965c,_0x3534b6){return _0x58965c[_0x4f5b('0x79')](_0x181ed0=>_0x3534b6[_0x4f5b('0x79')](_0xd496cc=>_0x181ed0[_0x4f5b('0x45')]['isTouching'](_0xd496cc[_0x4f5b('0xa')])));}_0x19e152[_0x4f5b('0x61')][_0x4f5b('0x31')]['on']('addMarker:suggestion',(_0x323c19,_0x159f69,_0x5e3882)=>{if(!_0x5e3882[_0x4f5b('0x7e')][_0x4f5b('0x7d')])return;const _0x2954f4=_0x159f69[_0x4f5b('0x53')];if(!_0x2954f4)return;const _0x13400d=_0x5e3882['mapper'][_0x4f5b('0x48')](_0x2954f4);function _0xc6c1d7(_0x35f157){return Array[_0x4f5b('0xd')](_0x35f157)?_0x35f157:[_0x35f157];}_0x13400d&&_0x4f5b('0x1f')===_0x2954f4[_0x4f5b('0x38')]&&_0xc00eef(_0x13400d,_0x5e3882[_0x4f5b('0x4e')],(_0x2ae1d0,_0x344f91,_0xe4023c)=>_0xe4023c['addClass'](_0xc6c1d7(_0x344f91[_0x4f5b('0x8')]),_0x2ae1d0),(_0x4b6c97,_0x594dfb,_0x3b4d15)=>_0x3b4d15[_0x4f5b('0x13')](_0xc6c1d7(_0x594dfb[_0x4f5b('0x8')]),_0x4b6c97));},{'priority':_0x4f5b('0x77')}),_0x3953fe[_0x4f5b('0x20')][_0x4f5b('0x74')](_0x5cb04e=>{if(_0x4f5b('0x43')!=_0x5cb04e[_0x4f5b('0x39')]&&_0x4f5b('0x81')!=_0x5cb04e[_0x4f5b('0x39')])return;const _0x17b070=_0x5cb04e[_0x4f5b('0x24')]();if(null!=_0x17b070&&_0x17b070['is'](_0x4f5b('0x2c'),'table')){if(_0x4f5b('0x43')==_0x5cb04e['type']){const _0x36408f=_0x5cb04e[_0x4f5b('0x6e')]()[_0x4f5b('0x4')](_0xa7ddd4=>_0xa7ddd4['is'](_0x4f5b('0x70')))[_0x4f5b('0x7f')](_0x569ff6=>_0x569ff6[_0x4f5b('0x61')]);if(_0x36408f[_0x4f5b('0x5e')])return{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x5d'),'\x22'+_0x36408f[_0x4f5b('0x69')]('\x20')+'\x22'))};}if('deletion'==_0x5cb04e[_0x4f5b('0x39')]){const _0x3e7efb=_0x5cb04e['getItems']()[_0x4f5b('0x4')](_0x405bf0=>_0x405bf0['is'](_0x4f5b('0x70')))[_0x4f5b('0x7f')](_0x20eb16=>_0x20eb16[_0x4f5b('0x61')]);if(_0x3e7efb[_0x4f5b('0x5e')])return{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x49'),_0xe11d2b(_0x15055a,_0x4f5b('0x5d'),'\x22'+_0x3e7efb[_0x4f5b('0x69')]('\x20')+'\x22'))};}}}),_0x3953fe[_0x4f5b('0x20')][_0x4f5b('0x74')](_0x20ebfb=>{if(_0x4f5b('0x41')==_0x20ebfb[_0x4f5b('0x65')]){const _0xde2c2d=_0x20ebfb[_0x4f5b('0x6e')]()[_0x4f5b('0x4')](_0xdc3d5d=>_0xdc3d5d['is'](_0x4f5b('0x70')))['map'](_0x11e4ad=>_0x11e4ad[_0x4f5b('0x61')]),_0xe42b07=this[_0x4f5b('0x56')](_0x20ebfb),_0x164643=_0xe42b07[_0x4f5b('0x14')]-_0xe42b07[_0x4f5b('0x47')]+0x1;if('insertion'==_0x20ebfb[_0x4f5b('0x39')])return _0xde2c2d['length']?{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x23'),[_0x164643,'\x22'+_0xde2c2d[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x9'),_0x164643))};if(_0x4f5b('0x81')==_0x20ebfb[_0x4f5b('0x39')])return _0xde2c2d[_0x4f5b('0x5e')]?{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,'*Remove:*\x20%0',_0xe11d2b(_0x15055a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x164643,'\x22'+_0xde2c2d[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x49'),_0xe11d2b(_0x15055a,_0x4f5b('0x9'),_0x164643))};}if(_0x4f5b('0x71')==_0x20ebfb['subType']){const _0x4504b3=_0x20ebfb['getItems']()['filter'](_0x2c366c=>_0x2c366c['is'](_0x4f5b('0x70')))[_0x4f5b('0x7f')](_0x3b6c05=>_0x3b6c05['data']),_0x154a5d=this[_0x4f5b('0x56')](_0x20ebfb),_0x150452=_0x154a5d[_0x4f5b('0x3')]-_0x154a5d[_0x4f5b('0x2e')]+0x1;if(_0x4f5b('0x43')==_0x20ebfb[_0x4f5b('0x39')])return _0x4504b3[_0x4f5b('0x5e')]?{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x11'),_0xe11d2b(_0x15055a,_0x4f5b('0x64'),[_0x150452,'\x22'+_0x4504b3[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x43'),'content':_0xe11d2b(_0x15055a,'*Insert:*\x20%0',_0xe11d2b(_0x15055a,_0x4f5b('0x51'),_0x150452))};if('deletion'==_0x20ebfb[_0x4f5b('0x39')])return _0x4504b3[_0x4f5b('0x5e')]?{'type':'deletion','content':_0xe11d2b(_0x15055a,'*Remove:*\x20%0',_0xe11d2b(_0x15055a,_0x4f5b('0x64'),[_0x150452,'\x22'+_0x4504b3[_0x4f5b('0x69')]('\x20')+'\x22']))}:{'type':_0x4f5b('0x81'),'content':_0xe11d2b(_0x15055a,_0x4f5b('0x49'),_0xe11d2b(_0x15055a,_0x4f5b('0x51'),_0x150452))};}}),_0x3953fe[_0x4f5b('0x2')][_0x4f5b('0x66')](_0x4f5b('0x43'),_0x4f5b('0x41'),_0x4f5b('0xb'),_0xf6a9be),_0x3953fe['_suggestionFactory'][_0x4f5b('0x66')](_0x4f5b('0x81'),_0x4f5b('0x41'),_0x4f5b('0x1d'),_0xf6a9be),_0x3953fe[_0x4f5b('0x2')]['registerCustomCallback'](_0x4f5b('0x43'),'tableColumn','discard',_0x519627),_0x3953fe[_0x4f5b('0x2')]['registerCustomCallback'](_0x4f5b('0x81'),_0x4f5b('0x71'),'accept',_0x519627),_0x3953fe[_0x4f5b('0x2')][_0x4f5b('0x66')]('insertion',_0x4f5b('0x71'),_0x4f5b('0x69'),_0x52f624),_0x3953fe['_suggestionFactory']['registerCustomCallback'](_0x4f5b('0x81'),_0x4f5b('0x71'),_0x4f5b('0x69'),_0x52f624),_0x3953fe[_0x4f5b('0x2')]['registerCustomCallback']('insertion',_0x4f5b('0x41'),_0x4f5b('0x69'),_0x3970d5),_0x3953fe[_0x4f5b('0x2')][_0x4f5b('0x66')](_0x4f5b('0x81'),'tableRow',_0x4f5b('0x69'),_0x3970d5);}[_0x4f5b('0x3a')](){const _0x2832b8=this[_0x4f5b('0x68')],_0x29c807=_0x2832b8[_0x4f5b('0x18')][_0x4f5b('0x0')][_0x4f5b('0x46')];return(_0x446580,_0x1ef345)=>{_0x2832b8[_0x4f5b('0x18')][_0x4f5b('0x4d')](_0x58a639=>{const {commandName:_0x979b5a,commandParams:_0x4ff39f}=_0x1ef345;let _0x12cb5d=_0x446580[0x0][_0x4f5b('0x45')][_0x4f5b('0x6d')];_0x4ff39f&&_0x4ff39f[0x0]&&!0x1===_0x4ff39f[0x0][_0x4f5b('0x25')]&&(_0x12cb5d=_0x446580[0x0]['start'][_0x4f5b('0x7b')]);const _0x30d255=_0x58a639[_0x4f5b('0x40')](_0x12cb5d);if(_0x4f5b('0x5c')==_0x30d255['root'][_0x4f5b('0x80')])return;const _0x27b71c=Array['from'](_0x29c807['getRanges']())[_0x4f5b('0x7f')](_0x5997e3=>_0x2ac8e6['fromRange'](_0x5997e3));_0x58a639[_0x4f5b('0x54')](_0x30d255),_0x2832b8[_0x4f5b('0x19')][_0x4f5b('0x34')](_0x979b5a)[_0x4f5b('0x2f')](),_0x4ff39f[_0x4f5b('0x6a')]({'forceDefaultExecution':!0x0}),_0x2832b8[_0x4f5b('0x4a')](_0x979b5a,..._0x4ff39f);const _0x3f3d99=_0x27b71c[_0x4f5b('0x4')](_0x291efc=>_0x4f5b('0x5c')!=_0x291efc['root'][_0x4f5b('0x80')]);_0x3f3d99[_0x4f5b('0x5e')]>0x0&&_0x58a639[_0x4f5b('0x54')](_0x3f3d99);for(const _0x165790 of _0x27b71c)_0x165790[_0x4f5b('0x3e')]();});};}[_0x4f5b('0x3c')](_0x5c23a3){const _0x40f521=this[_0x4f5b('0x68')]['plugins'][_0x4f5b('0x34')](_0x4f5b('0x86'));let _0x4031f8=Number[_0x4f5b('0x2d')],_0x4bb039=Number[_0x4f5b('0x6f')],_0x30117c=Number['MAX_SAFE_INTEGER'],_0x3901d3=Number[_0x4f5b('0x6f')];for(const _0x2ee063 of _0x5c23a3){if(_0x4f5b('0x5c')==_0x2ee063[_0x4f5b('0x78')][_0x4f5b('0x80')])continue;const {row:_0xf28544,column:_0x2322ca}=_0x40f521[_0x4f5b('0x42')](_0x2ee063),_0x49909d=_0x2ee063[_0x4f5b('0x63')]('rowspan')?_0x2ee063[_0x4f5b('0x5')]('rowspan')-0x1:0x0,_0x476e09=_0x2ee063[_0x4f5b('0x63')](_0x4f5b('0x35'))?_0x2ee063['getAttribute'](_0x4f5b('0x35'))-0x1:0x0;_0x4031f8=_0xf28544<_0x4031f8?_0xf28544:_0x4031f8,_0x4bb039=_0xf28544+_0x49909d>_0x4bb039?_0xf28544+_0x49909d:_0x4bb039,_0x30117c=_0x2322ca<_0x30117c?_0x2322ca:_0x30117c,_0x3901d3=_0x2322ca+_0x476e09>_0x3901d3?_0x2322ca+_0x476e09:_0x3901d3;}return{'minRow':_0x4031f8,'maxRow':_0x4bb039,'minColumn':_0x30117c,'maxColumn':_0x3901d3};}['_setupColumnsRowsFixing'](){const _0x32f759=this['editor'],_0x5bec26=_0x32f759[_0x4f5b('0x5b')][_0x4f5b('0x34')](_0x4f5b('0xf')),_0x25b82d=_0x32f759[_0x4f5b('0x5b')][_0x4f5b('0x34')](_0x4f5b('0x86'));_0x32f759[_0x4f5b('0x18')][_0x4f5b('0x0')]['on'](_0x4f5b('0x1b'),()=>{const _0x491cd2=Array[_0x4f5b('0x59')](_0x32f759[_0x4f5b('0x18')][_0x4f5b('0x0')][_0x4f5b('0x17')][_0x4f5b('0x2b')]());for(const {name:_0x3ecf94,data:_0xb75d59}of _0x491cd2){const {group:_0x4697bc,id:_0x39bd46,subType:_0x5187ab}=_0x5bec26[_0x4f5b('0x67')](_0x3ecf94);if(_0x4f5b('0x16')!=_0x4697bc)continue;if(null!=_0xb75d59[_0x4f5b('0x62')])continue;const _0x4dd6f2=_0x5bec26[_0x4f5b('0xe')](_0x39bd46);this[_0x4f5b('0x4b')][_0x4f5b('0x5f')](_0x5187ab)&&this[_0x4f5b('0x82')][_0x4f5b('0x50')](_0x4dd6f2);}},{'priority':_0x4f5b('0x1e')});const _0x46f174=(_0x227bd5,_0x3740b6)=>{let _0x4b4d59=!0x1;const _0x4458a3=_0x3740b6[_0x4f5b('0x60')](_0x227bd5),_0x391035=_0x227bd5[_0x4f5b('0x75')]('table'),_0x454b97=_0x25b82d['getCellLocation'](_0x227bd5);for(const _0x197a33 of this['_tableSuggestions']){const _0x4037f2=_0x197a33[_0x4f5b('0x65')],_0x1e0bba=_0x4037f2[_0x4f5b('0x3f')]('tablePaste'),_0x10420b=_0x4037f2['substr'](_0x1e0bba?0xa:0x5),_0x312fae=_0x10420b[_0x4f5b('0x12')](),_0x4fb5a2=_0x312fae[_0x4f5b('0x32')](0x0,0x3)+'span',_0x5a5349=_0x4f5b('0x37')+_0x10420b,_0x45c654=_0x4f5b('0x1a')+_0x10420b;if(!_0x197a33[_0x4f5b('0x30')])continue;if(_0x391035!=_0x197a33[_0x4f5b('0x6b')]()[_0x4f5b('0xa')][_0x4f5b('0x75')](_0x4f5b('0x72')))continue;if(_0x197a33['isIntersectingWithRange'](_0x4458a3))continue;const _0x512e91=_0x227bd5['hasAttribute'](_0x4fb5a2)?_0x227bd5['getAttribute'](_0x4fb5a2)-0x1:0x0,_0x921e9f=this[_0x4f5b('0x56')](_0x197a33),_0x5e2aa6=_0x921e9f[_0x5a5349],_0x539f16=_0x921e9f[_0x45c654];_0x5e2aa6<=_0x454b97[_0x312fae]&&_0x454b97[_0x312fae]+_0x512e91<=_0x539f16&&(_0x197a33[_0x4f5b('0x7a')](_0x4458a3),_0x4b4d59=!0x0);}return _0x4b4d59;};_0x32f759[_0x4f5b('0x18')][_0x4f5b('0x0')]['registerPostFixer'](_0x43f66d=>{let _0x187fd9=!0x1;for(const _0x25a507 of _0x32f759[_0x4f5b('0x18')]['document'][_0x4f5b('0x17')][_0x4f5b('0xc')]())if('insert'==_0x25a507[_0x4f5b('0x39')]){if('tableRow'==_0x25a507[_0x4f5b('0x38')])for(const _0xd4f72 of _0x25a507[_0x4f5b('0x28')][_0x4f5b('0x7b')]['getChildren']())_0x187fd9=_0x187fd9||_0x46f174(_0xd4f72,_0x43f66d);else _0x4f5b('0x1f')==_0x25a507['name']&&(_0x187fd9=_0x187fd9||_0x46f174(_0x25a507[_0x4f5b('0x28')][_0x4f5b('0x7b')],_0x43f66d));}return _0x187fd9;});}[_0x4f5b('0x56')](_0x227fc1){return this['_getCoordsForCells'](_0x227fc1[_0x4f5b('0x1')]()[_0x4f5b('0x7f')](_0x26f51d=>_0x26f51d[_0x4f5b('0xa')][_0x4f5b('0x7b')]));}}function se(_0x34e1a1){return Array[_0x4f5b('0x59')](new Set(_0x34e1a1)[_0x4f5b('0x83')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49e6=['TableCaptionEditing','enableCommand','requires','editor','TrackChangesEditing','toggleTableCaption','afterInit','plugins'];(function(_0x1900ab,_0x49e68f){const _0x3d968d=function(_0x543302){while(--_0x543302){_0x1900ab['push'](_0x1900ab['shift']());}};_0x3d968d(++_0x49e68f);}(_0x49e6,0xcd));const _0x3d96=function(_0x1900ab,_0x49e68f){_0x1900ab=_0x1900ab-0x0;let _0x3d968d=_0x49e6[_0x1900ab];return _0x3d968d;};import{Plugin as _0x34aae5}from'ckeditor5/src/core';import _0x49aed2 from'./table';export default class vt extends _0x34aae5{static get[_0x3d96('0x5')](){return[_0x49aed2];}[_0x3d96('0x1')](){const _0x1ef577=this[_0x3d96('0x6')];if(!_0x1ef577[_0x3d96('0x2')]['has'](_0x3d96('0x3')))return;_0x1ef577[_0x3d96('0x2')]['get'](_0x3d96('0x7'))[_0x3d96('0x4')](_0x3d96('0x0'));}}
|