@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230818.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 _0x2bb0=['subType','cell','markMultiRangeInsertion','tableCell','left','maxColumn','execute','tableRow','maxRow','_setupColumnsRowsFixing','item','insertion','change:data','isEqual','ELEMENT_TABLE_COLUMN_WITH_TEXT','commands','enqueueChange','markMultiRangeDeletion','getRowIndexes','from','isInContent','highest','start','createRangeIn','createTableWalker','toLowerCase','plugins','setSelection','last','insert','locale','position','removeClass','_getSuggestionCoords','discard','colspan','root','mapper','deletion','oldRange','registerElementLabel','ELEMENT_TABLE_WITH_TEXT','every','getChangedMarkers','options','getSelectionAffectedTableCells','filter','findAncestor','addMarker:suggestion','document','min','has','_tableSuggestions','first','TableUtils','change','removeTableRow','insertTableColumnLeft','showSuggestionHighlights','getSuggestion','createPositionAt','_suggestionFactory','_tablePostFixingSubtypes','getRanges','getFirstRange','hasAttribute','$textProxy','getChildren','differ','_descriptionFactory','table','insertTable','includes','downcastDispatcher','rootName','max','ELEMENT_TABLE','selectTableRow','toViewElement','enableCommand','insertTableRowAbove','get','nodeAfter','batch','type','rowspan','fromRange','accept','tableColumn','map','data','startsWith','isArray','MAX_SAFE_INTEGER','span','getCellLocation','getChanges','getItems','selection','registerDescriptionCallback','editor','low','ELEMENT_TABLE_COLUMN','above','model','ELEMENT_TABLE_ROW','*Remove:*\x20%0','insertTableColumnRight','some','removeTableColumn','element','name','add','isTouching','substr','afterInit','tablePaste','_getCoordsForCells','_acceptFormatSuggestionCallbackFactory','length','$graveyard','writer','end','getAttribute','TableEditing','values','join','MIN_SAFE_INTEGER','*Insert:*\x20%0','TrackChangesEditing','selectTableColumn','registerCustomCallback','ELEMENT_TABLE_ROW_WITH_TEXT','addRange','refresh','insertTableRowBelow','createRangeOn'];(function(_0x5c6e81,_0x2bb0df){const _0x50f152=function(_0x3ad698){while(--_0x3ad698){_0x5c6e81['push'](_0x5c6e81['shift']());}};_0x50f152(++_0x2bb0df);}(_0x2bb0,0x1e8));const _0x50f1=function(_0x5c6e81,_0x2bb0df){_0x5c6e81=_0x5c6e81-0x0;let _0x50f152=_0x2bb0[_0x5c6e81];return _0x50f152;};import{Plugin as _0x3ca5cf}from'ckeditor5/src/core';import{LiveRange as _0xc7d87}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3360c9}from'ckeditor5/src/widget';import{getTranslation as _0x39b536}from'../utils/common-translations';export default class mt extends _0x3ca5cf{constructor(_0x3f1772){super(_0x3f1772),this[_0x50f1('0x7a')]=['tableRow',_0x50f1('0xb')],this[_0x50f1('0x70')]=new Set();}[_0x50f1('0x26')](){const _0x5e2b46=this[_0x50f1('0x17')],_0x4d7e6b=_0x5e2b46[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x15')];if(!_0x5e2b46['plugins'][_0x50f1('0x6f')](_0x50f1('0x2f')))return;const _0x245258=_0x5e2b46[_0x50f1('0x5a')],_0x3d6b46=_0x5e2b46[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x34')),_0x14cc5c=_0x5e2b46['plugins'][_0x50f1('0x4')](_0x50f1('0x72'));_0x3d6b46[_0x50f1('0x81')][_0x50f1('0x64')]('table',_0xf352bb=>_0x39b536(_0x245258,_0x50f1('0x88'),_0xf352bb)),this[_0x50f1('0x45')](),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x83')),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x0')),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x35'));for(const _0x465f34 of[_0x50f1('0x3'),_0x50f1('0x3a')]){const _0x108377=_0x5e2b46['commands'][_0x50f1('0x4')](_0x465f34);_0x3d6b46['enableCommand'](_0x465f34,_0x2e5a62=>{_0x5e2b46['model'][_0x50f1('0x73')](_0x1e7522=>{_0x2e5a62();const _0x30e6d2=_0x50f1('0x1a')===_0x108377['order'],_0x4f4957=_0x14cc5c['getSelectionAffectedTableCells'](_0x4d7e6b),_0x3318cc=_0x14cc5c[_0x50f1('0x4e')](_0x4f4957),_0x26fc5d=_0x30e6d2?_0x3318cc[_0x50f1('0x71')]-0x1:_0x3318cc[_0x50f1('0x58')]+0x1,_0x4b67f=_0x4f4957[0x0][_0x50f1('0x6b')](_0x50f1('0x82')),_0x5aebc1=_0x14cc5c[_0x50f1('0x54')](_0x4b67f,{'startRow':_0x26fc5d,'endRow':_0x26fc5d}),_0xa3f160=Array[_0x50f1('0x4f')](_0x5aebc1)[_0x50f1('0xc')](_0x58451a=>_0x1e7522[_0x50f1('0x3b')](_0x58451a[_0x50f1('0x3d')]));_0x3d6b46[_0x50f1('0x3e')](_0xa3f160,'tableRow');});});}for(const _0x379562 of[_0x50f1('0x75'),_0x50f1('0x1e')]){const _0x4e5b2d=_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')](_0x379562);_0x3d6b46['enableCommand'](_0x379562,_0xfb5d2f=>{_0x5e2b46[_0x50f1('0x1b')][_0x50f1('0x73')](_0x53419e=>{_0xfb5d2f();const _0x1ca941=_0x50f1('0x40')===_0x4e5b2d['order'],_0x425533=_0x14cc5c[_0x50f1('0x69')](_0x4d7e6b),_0x40f40b=_0x14cc5c['getColumnIndexes'](_0x425533),_0xe0ea58=_0x1ca941?_0x40f40b[_0x50f1('0x71')]-0x1:_0x40f40b[_0x50f1('0x58')]+0x1,_0x19aba6=_0x425533[0x0][_0x50f1('0x6b')]('table'),_0x21a28c=_0x14cc5c['createTableWalker'](_0x19aba6,{'startRow':0x0,'column':_0xe0ea58,'includeAllSlots':!0x1}),_0x10da79=Array[_0x50f1('0x4f')](_0x21a28c)['map'](_0x47ad70=>_0x53419e['createRangeOn'](_0x47ad70[_0x50f1('0x3d')]));_0x3d6b46[_0x50f1('0x3e')](_0x10da79,_0x50f1('0xb'));});});}for(const _0x294985 of[_0x50f1('0x74'),_0x50f1('0x20')]){const _0x387a97=_0x294985[_0x50f1('0x25')](0xb),_0x2d68f3=_0x387a97[_0x50f1('0x55')](),_0x2cc287=_0x2d68f3[_0x50f1('0x25')](0x0,0x3)+'span',_0x1e678d='table'+_0x387a97,_0x5e3202=_0x50f1('0x6e')+_0x387a97,_0x2a1e49=_0x50f1('0x87')+_0x387a97;_0x3d6b46[_0x50f1('0x2')](_0x294985,()=>{_0x5e2b46['model'][_0x50f1('0x73')](_0x272df2=>{const _0x1a2864=_0x14cc5c[_0x50f1('0x69')](_0x4d7e6b),_0x134401=_0x1a2864[0x0]['findAncestor']('table');let _0x4fffaa;if(_0x50f1('0x74')==_0x294985){const _0x5e3d37=_0x14cc5c[_0x50f1('0x4e')](_0x1a2864);_0x4fffaa={'startRow':_0x5e3d37[_0x50f1('0x71')],'endRow':_0x5e3d37[_0x50f1('0x58')],'includeAllSlots':!0x0};}else{const _0x441da2=_0x14cc5c['getColumnIndexes'](_0x1a2864);_0x4fffaa={'startColumn':_0x441da2['first'],'endColumn':_0x441da2[_0x50f1('0x58')],'includeAllSlots':!0x0};}const _0x334079=_0x14cc5c[_0x50f1('0x54')](_0x134401,_0x4fffaa),_0x147b4f=Array['from'](_0x334079)['map'](({cell:_0x97ac50})=>_0x97ac50),_0x158d6a=se(_0x147b4f[_0x50f1('0x6a')](_0x1a77ff=>_0x1a77ff[_0x50f1('0x7d')](_0x2cc287))),_0x50111a=se(_0x147b4f[_0x50f1('0x6a')](_0x552639=>!_0x552639[_0x50f1('0x7d')](_0x2cc287)))['map'](_0xad6297=>_0x272df2[_0x50f1('0x3b')](_0xad6297)),_0x5ae984=_0x3d6b46[_0x50f1('0x4d')](_0x50111a,_0x1e678d);if(_0x5ae984&&(_0x50f1('0x43')==_0x5ae984[_0x50f1('0x3c')]||_0x50f1('0xb')==_0x5ae984[_0x50f1('0x3c')])){const _0x4335c1=this[_0x50f1('0x5d')](_0x5ae984);for(const _0x2b924 of _0x158d6a){const _0x22da9b=_0x272df2[_0x50f1('0x3b')](_0x2b924),_0xcecb64=_0x14cc5c[_0x50f1('0x12')](_0x2b924),_0x9f3204=_0x2b924['getAttribute'](_0x2cc287)-0x1,_0x454c79=_0x4335c1[_0x5e3202],_0x427be3=_0x4335c1[_0x2a1e49];_0x454c79<=_0xcecb64[_0x2d68f3]&&_0xcecb64[_0x2d68f3]+_0x9f3204<=_0x427be3&&_0x5ae984[_0x50f1('0x38')](_0x22da9b);}}});});}function _0xa5ae03(_0x5ab9d3){const _0x564c72=Array[_0x50f1('0x4f')](_0x4d7e6b['getRanges']())[_0x50f1('0xc')](_0x1df823=>_0xc7d87[_0x50f1('0x9')](_0x1df823));_0x5e2b46['model']['change'](_0x256811=>{const _0x34e0dd=_0x256811[_0x50f1('0x6')];_0x5ab9d3=_0x5ab9d3[_0x50f1('0x6a')](_0x476ae6=>_0x50f1('0x2b')!=_0x476ae6[_0x50f1('0x60')][_0x50f1('0x86')]),_0x256811['setSelection'](_0x5ab9d3),_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')](_0x50f1('0x74'))[_0x50f1('0x39')](),_0x5e2b46[_0x50f1('0x42')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e2b46[_0x50f1('0x1b')]['enqueueChange'](()=>{_0x5e2b46['model'][_0x50f1('0x4c')](_0x34e0dd,_0x496c1a=>{const _0x17e331=_0x564c72[_0x50f1('0x6a')](_0xa55b36=>_0x50f1('0x2b')!=_0xa55b36[_0x50f1('0x60')][_0x50f1('0x86')]);_0x17e331[_0x50f1('0x2a')]>0x0&&_0x496c1a['setSelection'](_0x17e331);for(const _0x3482c2 of _0x564c72)_0x3482c2['detach']();});});});}function _0x3fbea7(_0x201354){_0x5e2b46[_0x50f1('0x1b')]['change'](_0x10866e=>{const _0x136281=Array['from'](_0x4d7e6b[_0x50f1('0x7b')]())[_0x50f1('0xc')](_0xae2858=>_0xc7d87[_0x50f1('0x9')](_0xae2858)),_0x14a4f7=[];for(const _0x214861 of _0x201354)for(const _0x179aa5 of _0x214861[_0x50f1('0x14')]({'shallow':!0x0}))_0x14a4f7['push'](_0x179aa5);for(const _0x3dcd34 of _0x14a4f7)_0x50f1('0x2b')!=_0x3dcd34[_0x50f1('0x60')][_0x50f1('0x86')]&&(_0x10866e[_0x50f1('0x57')](_0x10866e[_0x50f1('0x78')](_0x3dcd34,0x0)),_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')]('removeTableColumn')['refresh'](),_0x5e2b46[_0x50f1('0x42')](_0x50f1('0x20'),{'forceDefaultExecution':!0x0}));const _0x572569=_0x136281[_0x50f1('0x6a')](_0x2f9a1f=>_0x50f1('0x2b')!=_0x2f9a1f[_0x50f1('0x60')][_0x50f1('0x86')]);_0x572569['length']>0x0&&_0x10866e[_0x50f1('0x57')](_0x572569);for(const _0x2f8dd7 of _0x136281)_0x2f8dd7['detach']();});}function _0x1efd4f(_0x2943d8,_0x37cf07){return _0x37cf07[_0x50f1('0x66')](_0x38bbc6=>_0x2943d8[_0x50f1('0x1f')](_0x429021=>_0x429021[_0x50f1('0x2d')][_0x50f1('0x49')](_0x38bbc6['start'])||_0x38bbc6[_0x50f1('0x2d')][_0x50f1('0x49')](_0x429021[_0x50f1('0x52')])));}function _0x54e1f0(_0x18aced,_0x1ec7df){return _0x18aced[_0x50f1('0x1f')](_0x296415=>_0x1ec7df[_0x50f1('0x1f')](_0x44762d=>_0x296415[_0x50f1('0x2d')][_0x50f1('0x24')](_0x44762d[_0x50f1('0x52')])));}_0x5e2b46[_0x50f1('0xd')][_0x50f1('0x85')]['on'](_0x50f1('0x6c'),(_0x278d7e,_0x5929ef,_0x1220d8)=>{if(!_0x1220d8[_0x50f1('0x68')][_0x50f1('0x76')])return;const _0x31559e=_0x5929ef[_0x50f1('0x46')];if(!_0x31559e)return;const _0x217d09=_0x1220d8[_0x50f1('0x61')][_0x50f1('0x1')](_0x31559e);function _0x3c39e8(_0x36ac64){return Array[_0x50f1('0xf')](_0x36ac64)?_0x36ac64:[_0x36ac64];}_0x217d09&&_0x50f1('0x3f')===_0x31559e[_0x50f1('0x22')]&&_0x3360c9(_0x217d09,_0x1220d8[_0x50f1('0x2c')],(_0x4f256c,_0xcc792a,_0x22e6f1)=>_0x22e6f1['addClass'](_0x3c39e8(_0xcc792a['classes']),_0x4f256c),(_0x4889ad,_0x35494e,_0xa8ff39)=>_0xa8ff39[_0x50f1('0x5c')](_0x3c39e8(_0x35494e['classes']),_0x4889ad));},{'priority':_0x50f1('0x51')}),_0x3d6b46['_descriptionFactory']['registerDescriptionCallback'](_0x271766=>{if('insertion'!=_0x271766['type']&&_0x50f1('0x62')!=_0x271766[_0x50f1('0x7')])return;const _0x571747=_0x271766['getContainedElement']();if(null!=_0x571747&&_0x571747['is'](_0x50f1('0x21'),_0x50f1('0x82'))){if('insertion'==_0x271766[_0x50f1('0x7')]){const _0x8b57da=_0x271766[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x3cb30d=>_0x3cb30d['is']('$textProxy'))[_0x50f1('0xc')](_0xf2120b=>_0xf2120b[_0x50f1('0xd')]);if(_0x8b57da['length'])return{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x65'),'\x22'+_0x8b57da[_0x50f1('0x31')]('\x20')+'\x22'))};}if(_0x50f1('0x62')==_0x271766['type']){const _0x3c6ed8=_0x271766[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x2702c5=>_0x2702c5['is'](_0x50f1('0x7e')))[_0x50f1('0xc')](_0x5a8153=>_0x5a8153[_0x50f1('0xd')]);if(_0x3c6ed8['length'])return{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x65'),'\x22'+_0x3c6ed8[_0x50f1('0x31')]('\x20')+'\x22'))};}}}),_0x3d6b46[_0x50f1('0x81')][_0x50f1('0x16')](_0x3926be=>{if(_0x50f1('0x43')==_0x3926be[_0x50f1('0x3c')]){const _0x3e61d4=_0x3926be['getItems']()['filter'](_0x172626=>_0x172626['is'](_0x50f1('0x7e')))[_0x50f1('0xc')](_0x55c261=>_0x55c261['data']),_0x3b0f5b=this['_getSuggestionCoords'](_0x3926be),_0x703855=_0x3b0f5b[_0x50f1('0x44')]-_0x3b0f5b['minRow']+0x1;if(_0x50f1('0x47')==_0x3926be[_0x50f1('0x7')])return _0x3e61d4[_0x50f1('0x2a')]?{'type':'insertion','content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x37'),[_0x703855,'\x22'+_0x3e61d4[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x1c'),_0x703855))};if('deletion'==_0x3926be[_0x50f1('0x7')])return _0x3e61d4[_0x50f1('0x2a')]?{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x37'),[_0x703855,'\x22'+_0x3e61d4[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x1c'),_0x703855))};}if(_0x50f1('0xb')==_0x3926be[_0x50f1('0x3c')]){const _0x56f65c=_0x3926be[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x16fa1c=>_0x16fa1c['is'](_0x50f1('0x7e')))['map'](_0x573811=>_0x573811[_0x50f1('0xd')]),_0x56444b=this[_0x50f1('0x5d')](_0x3926be),_0x10aec6=_0x56444b[_0x50f1('0x41')]-_0x56444b['minColumn']+0x1;if(_0x50f1('0x47')==_0x3926be[_0x50f1('0x7')])return _0x56f65c[_0x50f1('0x2a')]?{'type':'insertion','content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x4a'),[_0x10aec6,'\x22'+_0x56f65c[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,'*Insert:*\x20%0',_0x39b536(_0x245258,_0x50f1('0x19'),_0x10aec6))};if(_0x50f1('0x62')==_0x3926be[_0x50f1('0x7')])return _0x56f65c[_0x50f1('0x2a')]?{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,'*Remove:*\x20%0',_0x39b536(_0x245258,_0x50f1('0x4a'),[_0x10aec6,'\x22'+_0x56f65c[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x19'),_0x10aec6))};}}),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),'tableRow',_0x50f1('0x5e'),_0xa5ae03),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),_0x50f1('0x43'),_0x50f1('0xa'),_0xa5ae03),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),_0x50f1('0xb'),_0x50f1('0x5e'),_0x3fbea7),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),_0x50f1('0xb'),_0x50f1('0xa'),_0x3fbea7),_0x3d6b46['_suggestionFactory']['registerCustomCallback'](_0x50f1('0x47'),_0x50f1('0xb'),_0x50f1('0x31'),_0x1efd4f),_0x3d6b46[_0x50f1('0x79')]['registerCustomCallback'](_0x50f1('0x62'),_0x50f1('0xb'),_0x50f1('0x31'),_0x1efd4f),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),_0x50f1('0x43'),_0x50f1('0x31'),_0x54e1f0),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),'tableRow',_0x50f1('0x31'),_0x54e1f0);}[_0x50f1('0x29')](){const _0x3d834a=this['editor'],_0x1fc142=_0x3d834a[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x15')];return(_0x363edb,_0x3482f8)=>{_0x3d834a[_0x50f1('0x1b')][_0x50f1('0x73')](_0xf69e1b=>{const {commandName:_0x62f8b6,commandParams:_0x314de9}=_0x3482f8;let _0x959d17=_0x363edb[0x0][_0x50f1('0x2d')]['nodeBefore'];_0x314de9&&_0x314de9[0x0]&&!0x1===_0x314de9[0x0]['forceValue']&&(_0x959d17=_0x363edb[0x0][_0x50f1('0x52')]['nodeAfter']);const _0x90d2b6=_0xf69e1b[_0x50f1('0x53')](_0x959d17);if(_0x50f1('0x2b')==_0x90d2b6['root'][_0x50f1('0x86')])return;const _0x1a965e=Array[_0x50f1('0x4f')](_0x1fc142[_0x50f1('0x7b')]())[_0x50f1('0xc')](_0xdcabe7=>_0xc7d87[_0x50f1('0x9')](_0xdcabe7));_0xf69e1b[_0x50f1('0x57')](_0x90d2b6),_0x3d834a[_0x50f1('0x4b')]['get'](_0x62f8b6)[_0x50f1('0x39')](),_0x314de9['push']({'forceDefaultExecution':!0x0}),_0x3d834a['execute'](_0x62f8b6,..._0x314de9);const _0x339ae2=_0x1a965e[_0x50f1('0x6a')](_0x3ec4cb=>'$graveyard'!=_0x3ec4cb[_0x50f1('0x60')]['rootName']);_0x339ae2['length']>0x0&&_0xf69e1b[_0x50f1('0x57')](_0x339ae2);for(const _0x58407f of _0x1a965e)_0x58407f['detach']();});};}[_0x50f1('0x28')](_0x5e5ffc){const _0x1b75b4=this['editor'][_0x50f1('0x56')]['get'](_0x50f1('0x72'));let _0x3d5add=Number[_0x50f1('0x10')],_0x514da7=Number[_0x50f1('0x32')],_0x24612d=Number['MAX_SAFE_INTEGER'],_0x583318=Number[_0x50f1('0x32')];for(const _0x310e50 of _0x5e5ffc){if(_0x50f1('0x2b')==_0x310e50[_0x50f1('0x60')][_0x50f1('0x86')])continue;const {row:_0x3d968c,column:_0x3dd4bb}=_0x1b75b4[_0x50f1('0x12')](_0x310e50),_0x323337=_0x310e50[_0x50f1('0x7d')](_0x50f1('0x8'))?_0x310e50[_0x50f1('0x2e')]('rowspan')-0x1:0x0,_0x21de0f=_0x310e50[_0x50f1('0x7d')]('colspan')?_0x310e50['getAttribute'](_0x50f1('0x5f'))-0x1:0x0;_0x3d5add=_0x3d968c<_0x3d5add?_0x3d968c:_0x3d5add,_0x514da7=_0x3d968c+_0x323337>_0x514da7?_0x3d968c+_0x323337:_0x514da7,_0x24612d=_0x3dd4bb<_0x24612d?_0x3dd4bb:_0x24612d,_0x583318=_0x3dd4bb+_0x21de0f>_0x583318?_0x3dd4bb+_0x21de0f:_0x583318;}return{'minRow':_0x3d5add,'maxRow':_0x514da7,'minColumn':_0x24612d,'maxColumn':_0x583318};}[_0x50f1('0x45')](){const _0x5f2836=this[_0x50f1('0x17')],_0x5c740d=_0x5f2836[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x34')),_0x55735a=_0x5f2836[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x72'));_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')]['on'](_0x50f1('0x48'),()=>{const _0x6bf866=Array['from'](_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x80')][_0x50f1('0x67')]());for(const {name:_0x5ca4d8,data:_0x57e91b}of _0x6bf866){const {group:_0x301cdf,id:_0x4f931e,subType:_0x407842}=_0x5c740d['_splitMarkerName'](_0x5ca4d8);if('suggestion'!=_0x301cdf)continue;if(null!=_0x57e91b[_0x50f1('0x63')])continue;const _0x1600ed=_0x5c740d[_0x50f1('0x77')](_0x4f931e);this[_0x50f1('0x7a')][_0x50f1('0x84')](_0x407842)&&this[_0x50f1('0x70')][_0x50f1('0x23')](_0x1600ed);}},{'priority':_0x50f1('0x18')});const _0x2f2696=(_0xbec238,_0x1f8dda)=>{let _0x12e8d1=!0x1;const _0x284da7=_0x1f8dda[_0x50f1('0x3b')](_0xbec238),_0xa35d5a=_0xbec238[_0x50f1('0x6b')](_0x50f1('0x82')),_0x41336c=_0x55735a[_0x50f1('0x12')](_0xbec238);for(const _0x4c3568 of this['_tableSuggestions']){const _0x4a451e=_0x4c3568[_0x50f1('0x3c')],_0x84e944=_0x4a451e[_0x50f1('0xe')](_0x50f1('0x27')),_0x4a6abf=_0x4a451e[_0x50f1('0x25')](_0x84e944?0xa:0x5),_0xc1e5e3=_0x4a6abf[_0x50f1('0x55')](),_0x159247=_0xc1e5e3[_0x50f1('0x25')](0x0,0x3)+_0x50f1('0x11'),_0x12d1fd=_0x50f1('0x6e')+_0x4a6abf,_0x5c29f2=_0x50f1('0x87')+_0x4a6abf;if(!_0x4c3568[_0x50f1('0x50')])continue;if(_0xa35d5a!=_0x4c3568[_0x50f1('0x7c')]()[_0x50f1('0x52')][_0x50f1('0x6b')](_0x50f1('0x82')))continue;if(_0x4c3568['isIntersectingWithRange'](_0x284da7))continue;const _0x13e187=_0xbec238['hasAttribute'](_0x159247)?_0xbec238[_0x50f1('0x2e')](_0x159247)-0x1:0x0,_0x3c4a22=this[_0x50f1('0x5d')](_0x4c3568),_0x34f04e=_0x3c4a22[_0x12d1fd],_0x33e7ce=_0x3c4a22[_0x5c29f2];_0x34f04e<=_0x41336c[_0xc1e5e3]&&_0x41336c[_0xc1e5e3]+_0x13e187<=_0x33e7ce&&(_0x4c3568[_0x50f1('0x38')](_0x284da7),_0x12e8d1=!0x0);}return _0x12e8d1;};_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')]['registerPostFixer'](_0x167652=>{let _0xbb9692=!0x1;for(const _0x3b186e of _0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x80')][_0x50f1('0x13')]())if(_0x50f1('0x59')==_0x3b186e[_0x50f1('0x7')]){if(_0x50f1('0x43')==_0x3b186e['name'])for(const _0x10fcf4 of _0x3b186e[_0x50f1('0x5b')][_0x50f1('0x5')][_0x50f1('0x7f')]())_0xbb9692=_0xbb9692||_0x2f2696(_0x10fcf4,_0x167652);else _0x50f1('0x3f')==_0x3b186e[_0x50f1('0x22')]&&(_0xbb9692=_0xbb9692||_0x2f2696(_0x3b186e['position']['nodeAfter'],_0x167652));}return _0xbb9692;});}[_0x50f1('0x5d')](_0x2c9122){return this['_getCoordsForCells'](_0x2c9122[_0x50f1('0x7b')]()[_0x50f1('0xc')](_0x4b7c80=>_0x4b7c80[_0x50f1('0x52')][_0x50f1('0x5')]));}}function se(_0x166a11){return Array[_0x50f1('0x4f')](new Set(_0x166a11)[_0x50f1('0x30')]());}
|
|
23
|
+
const _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'));}}
|