@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +12 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- 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 _0x4725=['ListPropertiesEditing','createRange','editor','enableCommand','handleListStyleCommand','config','ListUtils','has','startIndex','unshift','length','map','getFirstPosition','forward','backward','reversed','handleListStartCommand','filter','get','listReversed','parent','listItem','document','createPositionAt','bind','list.properties','change','TrackChangesEditing','element','listStart','listType','registerDescriptionCallback','handleListReversedCommand','toUpperCase','_getTranslationKeyForListStyle','_getSuggestionBlocksForListStyle','_descriptionFactory','getAttribute','commandParams','markMultiRangeBlockFormat','from','handleDescriptions','before','ELEMENT_','listStyle','model','numbered','replace','getListTypeFromListStyleType','selection','*Change\x20to:*\x20%0','type','getSelectedBlocks','_getSuggestionBlocks','getSiblingNodes','styles','plugins','commandName','locale','format'];(function(_0x5f57c8,_0x47257e){const _0xc1e08a=function(_0x156084){while(--_0x156084){_0x5f57c8['push'](_0x5f57c8['shift']());}};_0xc1e08a(++_0x47257e);}(_0x4725,0x1f4));const _0xc1e0=function(_0x5f57c8,_0x47257e){_0x5f57c8=_0x5f57c8-0x0;let _0xc1e08a=_0x4725[_0x5f57c8];return _0xc1e08a;};import{Plugin as _0x274975}from'ckeditor5/src/core';import{getTranslation as _0x4083e3}from'../utils/common-translations';export default class nt extends _0x274975{['afterInit'](){if(!this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x2f')](_0xc1e0('0x28')))return;const _0xa6f4a5=this['editor'][_0xc1e0('0x2d')][_0xc1e0('0x3a')](_0xc1e0('0x5')),_0x597424=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x7'));_0xa6f4a5[_0xc1e0('0x23')]&&_0x597424[_0xc1e0('0x2b')](_0xc1e0('0x18'),this['handleListStyleCommand'][_0xc1e0('0x4')](this)),_0xa6f4a5['reversed']&&_0x597424[_0xc1e0('0x2b')]('listReversed',this[_0xc1e0('0xc')][_0xc1e0('0x4')](this)),_0xa6f4a5['startIndex']&&_0x597424[_0xc1e0('0x2b')](_0xc1e0('0x9'),this[_0xc1e0('0x38')][_0xc1e0('0x4')](this)),_0x597424[_0xc1e0('0x10')][_0xc1e0('0xb')](this[_0xc1e0('0x15')]['bind'](this));}[_0xc1e0('0x2c')](_0x5ab753,_0x369be8={}){const _0x1a7dbe=this['editor'][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x7')),_0x14fa97=this[_0xc1e0('0xf')]();this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x6')](()=>{_0x1a7dbe[_0xc1e0('0x13')](_0x14fa97,{'commandName':_0xc1e0('0x18'),'commandParams':[{'type':_0x369be8[_0xc1e0('0x1f')]}],'formatGroupId':'listStyle'});});}[_0xc1e0('0xc')](_0x3728e8,_0x395e6b={}){const _0x5736f8=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x7')),_0x9f55e7=this[_0xc1e0('0x21')](_0x4cca15=>_0x4cca15['is']('element',_0xc1e0('0x1'))&&_0xc1e0('0x1a')===_0x4cca15[_0xc1e0('0x11')](_0xc1e0('0xa')));if(_0x9f55e7[_0xc1e0('0x32')]<0x1)return;const _0x2c398c=_0x9f55e7[_0xc1e0('0x33')](_0x31f7b9=>this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x29')](this[_0xc1e0('0x2a')][_0xc1e0('0x19')]['createPositionAt'](_0x31f7b9,_0xc1e0('0x16')),this[_0xc1e0('0x2a')]['model']['createPositionAt'](_0x31f7b9,0x0)));this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x6')](()=>{_0x5736f8[_0xc1e0('0x13')](_0x2c398c,{'commandName':_0xc1e0('0x3b'),'commandParams':[{'reversed':_0x395e6b[_0xc1e0('0x37')]}],'formatGroupId':'listReversed'});});}[_0xc1e0('0x38')](_0x236977,_0x2c4d07={}){const _0xac0937=this[_0xc1e0('0x2a')][_0xc1e0('0x24')]['get']('TrackChangesEditing'),_0x4e6f23=this[_0xc1e0('0x21')](_0x2247dd=>_0x2247dd['is'](_0xc1e0('0x8'),_0xc1e0('0x1'))&&_0xc1e0('0x1a')===_0x2247dd[_0xc1e0('0x11')](_0xc1e0('0xa')));if(_0x4e6f23[_0xc1e0('0x32')]<0x1)return;const _0x1cf08f=_0x4e6f23[_0xc1e0('0x33')](_0x2ee44f=>this[_0xc1e0('0x2a')][_0xc1e0('0x19')]['createRange'](this[_0xc1e0('0x2a')][_0xc1e0('0x19')]['createPositionAt'](_0x2ee44f,_0xc1e0('0x16')),this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x3')](_0x2ee44f,0x0)));this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x6')](()=>{_0xac0937[_0xc1e0('0x13')](_0x1cf08f,{'commandName':_0xc1e0('0x9'),'commandParams':[{'startIndex':_0x2c4d07[_0xc1e0('0x30')]}],'formatGroupId':'listStart'});});}[_0xc1e0('0x15')](_0x3730ea){const _0x57e923=this[_0xc1e0('0x2a')][_0xc1e0('0x26')],{data:_0x1b308c}=_0x3730ea;if(!_0x1b308c)return;let _0xffeba4,_0x1f28bd;switch(_0x1b308c[_0xc1e0('0x25')]){case _0xc1e0('0x18'):_0xffeba4=_0xc1e0('0x1e'),_0x1f28bd={'type':_0xc1e0('0x27'),'content':_0x4083e3(_0x57e923,_0xffeba4,_0x4083e3(_0x57e923,this[_0xc1e0('0xe')](_0x1b308c[_0xc1e0('0x12')][0x0][_0xc1e0('0x1f')])))};break;case'listReversed':_0xffeba4=_0x1b308c[_0xc1e0('0x12')][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f28bd={'type':_0xc1e0('0x27'),'content':_0x4083e3(_0x57e923,_0xffeba4)};break;case'listStart':_0xffeba4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f28bd={'type':_0xc1e0('0x27'),'content':_0x4083e3(_0x57e923,_0xffeba4,_0x1b308c['commandParams'][0x0][_0xc1e0('0x30')])};}return _0x1f28bd;}['_getSuggestionBlocksForListStyle'](){var _0x1588a5,_0x3f4954,_0x5e9614,_0x3c2093;const _0x45fe91=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x2e'));let _0x500b08=Array[_0xc1e0('0x14')](this[_0xc1e0('0x2a')]['model']['document']['selection'][_0xc1e0('0x20')]());return(null===(_0x1588a5=_0x500b08[0x0])||void 0x0===_0x1588a5?void 0x0:_0x1588a5['is'](_0xc1e0('0x8'),'listItem'))&&_0x500b08[_0xc1e0('0x31')](..._0x45fe91['getSiblingNodes'](this['editor'][_0xc1e0('0x19')][_0xc1e0('0x2')][_0xc1e0('0x1d')][_0xc1e0('0x34')](),_0xc1e0('0x36'))),(null===(_0x3f4954=_0x500b08[_0x500b08[_0xc1e0('0x32')]-0x1])||void 0x0===_0x3f4954?void 0x0:_0x3f4954['is'](_0xc1e0('0x8'),_0xc1e0('0x1')))&&_0x500b08['push'](..._0x45fe91[_0xc1e0('0x22')](this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x2')][_0xc1e0('0x1d')]['getLastPosition'](),_0xc1e0('0x35'))),_0x500b08=[...new Set(_0x500b08)],(null===(_0x3c2093=null===(_0x5e9614=this['editor'][_0xc1e0('0x19')][_0xc1e0('0x2')]['selection'][_0xc1e0('0x34')]())||void 0x0===_0x5e9614?void 0x0:_0x5e9614[_0xc1e0('0x0')])||void 0x0===_0x3c2093?void 0x0:_0x3c2093['is']('element',_0xc1e0('0x1')))&&(_0x500b08=_0x500b08[_0xc1e0('0x39')](_0x304b33=>_0x304b33['is'](_0xc1e0('0x8'),_0xc1e0('0x1')))),_0x500b08;}['_getSuggestionBlocks'](_0x662c17){const _0x5c919f=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x2e'));let _0x141e3f=Array[_0xc1e0('0x14')](this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x2')][_0xc1e0('0x1d')][_0xc1e0('0x20')]())['filter'](_0x662c17)[_0xc1e0('0x33')](_0x2cb444=>{const _0x39e30a=this[_0xc1e0('0x2a')]['model']['createPositionAt'](_0x2cb444,0x0);return[..._0x5c919f[_0xc1e0('0x22')](_0x39e30a,'backward'),..._0x5c919f[_0xc1e0('0x22')](_0x39e30a,_0xc1e0('0x35'))];})['flat']();return _0x141e3f=[...new Set(_0x141e3f)],_0x141e3f;}[_0xc1e0('0xe')](_0x25555f){return _0xc1e0('0x17')+this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')]('ListUtils')[_0xc1e0('0x1c')](_0x25555f)['toUpperCase']()+'_LIST_'+_0x25555f[_0xc1e0('0xd')]()[_0xc1e0('0x1b')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f00=['downcastDispatcher','get','media','high','afterInit','mediaEmbed','options','attribute:url:media','stop','has','conversion','createEmptyElement','registerElementLabel','for','ELEMENT_MEDIA','elementToElement','showSuggestionHighlights','data','MediaEmbedEditing','_descriptionFactory'];(function(_0x10c517,_0x5f0060){const _0x25a93e=function(_0x51d192){while(--_0x51d192){_0x10c517['push'](_0x10c517['shift']());}};_0x25a93e(++_0x5f0060);}(_0x5f00,0xaa));const _0x25a9=function(_0x10c517,_0x5f0060){_0x10c517=_0x10c517-0x0;let _0x25a93e=_0x5f00[_0x10c517];return _0x25a93e;};import{Plugin as _0x394b4a}from'ckeditor5/src/core';import{getTranslation as _0x2cafb1}from'../utils/common-translations';export default class ot extends _0x394b4a{[_0x25a9('0xe')](){const _0x9f4945=this['editor'];if(!_0x9f4945['plugins'][_0x25a9('0x13')](_0x25a9('0x8')))return;const _0x44c807=_0x9f4945['plugins'][_0x25a9('0xb')]('TrackChangesEditing'),_0x40d3c8=_0x9f4945['locale'];_0x44c807['enableCommand'](_0x25a9('0xf')),_0x44c807[_0x25a9('0x9')][_0x25a9('0x2')](_0x25a9('0xc'),_0x270266=>_0x2cafb1(_0x40d3c8,_0x25a9('0x4'),_0x270266)),_0x9f4945[_0x25a9('0x0')][_0x25a9('0x3')]('dataDowncast')[_0x25a9('0x5')]({'model':_0x25a9('0xc'),'view':(_0x4f7885,{writer:_0x8267af,options:_0x24c1c1})=>{if(_0x24c1c1[_0x25a9('0x6')])return _0x8267af[_0x25a9('0x1')]('div');},'converterPriority':_0x25a9('0xd')}),_0x9f4945[_0x25a9('0x7')][_0x25a9('0xa')]['on'](_0x25a9('0x11'),(_0x55e6b4,_0x5ecfbf,_0x4d37ae)=>{_0x4d37ae[_0x25a9('0x10')]['showSuggestionHighlights']&&_0x55e6b4[_0x25a9('0x12')]();},{'priority':_0x25a9('0xd')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fef=['plugins','TrackChangesEditing','afterInit','get','has','editor','enableCommand'];(function(_0x5df53b,_0x1fef5d){const _0x10e8a4=function(_0x2e6cec){while(--_0x2e6cec){_0x5df53b['push'](_0x5df53b['shift']());}};_0x10e8a4(++_0x1fef5d);}(_0x1fef,0x7c));const _0x10e8=function(_0x5df53b,_0x1fef5d){_0x5df53b=_0x5df53b-0x0;let _0x10e8a4=_0x1fef[_0x5df53b];return _0x10e8a4;};import{Plugin as _0x4763c3}from'ckeditor5/src/core';export default class rt extends _0x4763c3{[_0x10e8('0x4')](){const _0x3c42d6=this[_0x10e8('0x0')];_0x3c42d6[_0x10e8('0x2')][_0x10e8('0x6')]('MentionEditing')&&_0x3c42d6[_0x10e8('0x2')][_0x10e8('0x5')](_0x10e8('0x3'))[_0x10e8('0x1')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dd9=['enableCommand','pageBreak','PageBreakEditing','_descriptionFactory','editor','ELEMENT_PAGE_BREAK','has','plugins','get','afterInit','locale','registerElementLabel','TrackChangesEditing'];(function(_0x2719c0,_0x4dd9c2){const _0x442312=function(_0x7fdc4d){while(--_0x7fdc4d){_0x2719c0['push'](_0x2719c0['shift']());}};_0x442312(++_0x4dd9c2);}(_0x4dd9,0x108));const _0x4423=function(_0x2719c0,_0x4dd9c2){_0x2719c0=_0x2719c0-0x0;let _0x442312=_0x4dd9[_0x2719c0];return _0x442312;};import{Plugin as _0x17ee06}from'ckeditor5/src/core';import{getTranslation as _0x5ce4f8}from'../utils/common-translations';export default class at extends _0x17ee06{[_0x4423('0x5')](){const _0x17b9f8=this[_0x4423('0x0')];if(!_0x17b9f8[_0x4423('0x3')][_0x4423('0x2')](_0x4423('0xb')))return;_0x17b9f8[_0x4423('0x3')][_0x4423('0x4')](_0x4423('0x8'))[_0x4423('0x9')](_0x4423('0xa'));const _0x131dc3=_0x17b9f8['plugins'][_0x4423('0x4')]('TrackChangesEditing'),_0x169c75=_0x17b9f8[_0x4423('0x6')];_0x131dc3[_0x4423('0xc')][_0x4423('0x7')](_0x4423('0xa'),_0xe2741c=>_0x5ce4f8(_0x169c75,_0x4423('0x1'),_0xe2741c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2337=['document','getFirstRange','schema','end','mapper','registerDescriptionCallback','markerRange','filter','includes','nodeAfter','data','ELEMENT_PARAGRAPH','checkChild','locale','editor','editing','afterInit','Paragraph','_descriptionFactory','start','selection','markerName','*Change\x20to:*\x20%0','ck-suggestion-marker--active','options','span','from','addMarker:suggestion:insertion','get','highest','insertParagraph','insert','getItemLabel','bindElementToMarker','activeMarkers','type','has','insertion','isTouching','blockName','plugins','enableCommand','downcastDispatcher','*Insert:*\x20%0','commandName','showSuggestionHighlights','markBlockFormat','parent','isObject','model','writer','isBlock','isLimit','change','name','paragraph'];(function(_0x57f84b,_0x2337ff){const _0x8cdc26=function(_0x16caf4){while(--_0x16caf4){_0x57f84b['push'](_0x57f84b['shift']());}};_0x8cdc26(++_0x2337ff);}(_0x2337,0x1d5));const _0x8cdc=function(_0x57f84b,_0x2337ff){_0x57f84b=_0x57f84b-0x0;let _0x8cdc26=_0x2337[_0x57f84b];return _0x8cdc26;};import{Plugin as _0x49b05b}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x1750b8}from'./utils';import{getTranslation as _0x2c3884}from'../utils/common-translations';export default class ct extends _0x49b05b{[_0x8cdc('0x33')](){const _0x5e3fe8=this['editor'];if(!_0x5e3fe8[_0x8cdc('0x13')][_0x8cdc('0xf')](_0x8cdc('0x34')))return;const _0x4076b1=_0x5e3fe8[_0x8cdc('0x30')],_0x475d28=_0x5e3fe8[_0x8cdc('0x13')][_0x8cdc('0x7')]('TrackChangesEditing');_0x475d28[_0x8cdc('0x35')]['registerElementLabel'](_0x8cdc('0x22'),_0x464c56=>_0x2c3884(_0x4076b1,_0x8cdc('0x2e'),_0x464c56)),_0x475d28[_0x8cdc('0x14')](_0x8cdc('0x22'),(_0x89981c,_0x3ff178={})=>{const _0x36e113=_0x5e3fe8[_0x8cdc('0x1c')][_0x8cdc('0x23')],_0x2f6214=_0x3ff178[_0x8cdc('0x37')]||_0x36e113['selection'],_0x5ca2e0=Array[_0x8cdc('0x5')](_0x2f6214['getSelectedBlocks']())[_0x8cdc('0x2a')](_0x1821ca=>function(_0x4c9239,_0x1aa274){return _0x1aa274[_0x8cdc('0x2f')](_0x4c9239[_0x8cdc('0x1a')],_0x8cdc('0x22'))&&!_0x1aa274[_0x8cdc('0x1b')](_0x4c9239)&&_0x8cdc('0x22')!=_0x4c9239[_0x8cdc('0x21')];}(_0x1821ca,this[_0x8cdc('0x31')]['model'][_0x8cdc('0x25')]));_0x5e3fe8[_0x8cdc('0x1c')][_0x8cdc('0x20')](()=>{for(const _0xb46430 of _0x5ca2e0)_0x475d28[_0x8cdc('0x19')](_0xb46430,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x8cdc('0x12')},_0x1750b8(_0xb46430));});}),_0x475d28[_0x8cdc('0x35')]['registerDescriptionCallback'](_0x1a0a7a=>{const {data:_0x30272b}=_0x1a0a7a;if(_0x30272b&&'paragraph'==_0x30272b[_0x8cdc('0x17')])return{'type':'format','content':_0x2c3884(_0x4076b1,_0x8cdc('0x1'),_0x2c3884(_0x4076b1,_0x8cdc('0x2e')))};}),_0x475d28[_0x8cdc('0x14')](_0x8cdc('0x9')),_0x5e3fe8[_0x8cdc('0x32')]['downcastDispatcher']['on'](_0x8cdc('0x6'),ar(_0x5e3fe8),{'priority':_0x8cdc('0x8')}),_0x5e3fe8[_0x8cdc('0x2d')][_0x8cdc('0x15')]['on'](_0x8cdc('0x6'),(_0x401d38,_0x4496e1,_0x57cb84)=>{_0x57cb84[_0x8cdc('0x3')][_0x8cdc('0x18')]&&ar(_0x5e3fe8,{'showActiveMarker':!0x1})(_0x401d38,_0x4496e1,_0x57cb84);},{'priority':_0x8cdc('0x8')});const _0x536583=_0x475d28['_descriptionFactory'];_0x536583[_0x8cdc('0x28')](_0x44a5d6=>{if(_0x8cdc('0x10')!==_0x44a5d6[_0x8cdc('0xe')])return;const {start:_0xdabf13,end:_0x326a57}=_0x44a5d6[_0x8cdc('0x24')]();if(!_0xdabf13[_0x8cdc('0x11')](_0x326a57)||!_0xdabf13[_0x8cdc('0x2c')])return;const _0x1573d2=_0x5e3fe8[_0x8cdc('0x1c')][_0x8cdc('0x25')],_0x1a2a85=_0xdabf13[_0x8cdc('0x2c')];return _0x1573d2[_0x8cdc('0x1e')](_0x1a2a85)&&!_0x1573d2[_0x8cdc('0x1f')](_0x1a2a85)&&_0x1573d2[_0x8cdc('0x2f')](_0x1a2a85,'$text')?{'type':_0x8cdc('0x10'),'content':_0x2c3884(_0x4076b1,_0x8cdc('0x16'),_0x536583[_0x8cdc('0xb')](_0x1a2a85,0x1))}:void 0x0;});}}function ar(_0x22869b,{showActiveMarker:_0x416571=!0x0}={}){return(_0x456f17,_0x42582c,_0xc5b706)=>{const _0x2a8689=_0x22869b[_0x8cdc('0x13')][_0x8cdc('0x7')]('TrackChangesEditing'),_0x24cff0=_0x42582c[_0x8cdc('0x29')][_0x8cdc('0x36')],_0x4a9975=_0x42582c[_0x8cdc('0x29')][_0x8cdc('0x26')],_0xe46380=_0x22869b[_0x8cdc('0x1c')]['schema'];if(!_0x24cff0[_0x8cdc('0x11')](_0x4a9975)||!_0x24cff0[_0x8cdc('0x2c')])return;const _0x30ffe7=_0x24cff0[_0x8cdc('0x2c')];if(_0xe46380[_0x8cdc('0x1e')](_0x30ffe7)&&!_0xe46380[_0x8cdc('0x1f')](_0x30ffe7)&&_0xe46380['checkChild'](_0x30ffe7,'$text')){if(!_0xc5b706['consumable']['consume'](_0x42582c[_0x8cdc('0x29')],_0x456f17[_0x8cdc('0x21')]))return;const _0x4c48bd=_0xc5b706[_0x8cdc('0x1d')]['createUIElement'](_0x8cdc('0x4'),{'class':'ck-suggestion-marker-split'}),_0x54e9b6=_0xc5b706[_0x8cdc('0x27')]['toViewPosition'](_0x4a9975);_0x416571&&_0x2a8689[_0x8cdc('0xd')][_0x8cdc('0x2b')](_0x42582c[_0x8cdc('0x0')])&&_0xc5b706['writer']['addClass'](_0x8cdc('0x2'),_0x4c48bd),_0xc5b706['writer'][_0x8cdc('0xa')](_0x54e9b6,_0x4c48bd),_0xc5b706[_0x8cdc('0x27')][_0x8cdc('0xc')](_0x4c48bd,_0x42582c[_0x8cdc('0x0')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d9e=['_descriptionFactory','schema','removeFormat','afterInit','isFormatting','selection','commandName','getAttributeProperties','document','has','*Remove\x20all\x20formatting*','model','isCollapsed','RemoveFormatEditing','change','plugins','registerDescriptionCallback','from','get','format','locale','enableCommand','getItems'];(function(_0x37a005,_0x1d9e7f){const _0x1844ee=function(_0x1b72fe){while(--_0x1b72fe){_0x37a005['push'](_0x37a005['shift']());}};_0x1844ee(++_0x1d9e7f);}(_0x1d9e,0x14d));const _0x1844=function(_0x37a005,_0x1d9e7f){_0x37a005=_0x37a005-0x0;let _0x1844ee=_0x1d9e[_0x37a005];return _0x1844ee;};import{Plugin as _0x5b7820}from'ckeditor5/src/core';import{getTranslation as _0x4e3024}from'../utils/common-translations';export default class ht extends _0x5b7820{[_0x1844('0xf')](){const _0x1e20fc=this['editor'];if(!_0x1e20fc[_0x1844('0x4')][_0x1844('0x15')](_0x1844('0x2')))return;const _0x4459da=_0x1e20fc[_0x1844('0x4')][_0x1844('0x7')]('TrackChangesEditing');_0x4459da[_0x1844('0xa')](_0x1844('0xe'),_0x1b21d5=>{const _0x1e7055=_0x1e20fc['model'][_0x1844('0x14')][_0x1844('0x11')];_0x1e7055[_0x1844('0x1')]?_0x1b21d5():_0x1e20fc[_0x1844('0x0')][_0x1844('0x3')](()=>{const _0x28b8ae=Array[_0x1844('0x6')](_0x1e7055['getRanges']());for(const _0x4faa46 of _0x28b8ae)for(const _0x173f57 of _0x4faa46[_0x1844('0xb')]())eo(_0x173f57,_0x1e20fc[_0x1844('0x0')][_0x1844('0xd')])&&_0x4459da['markInlineFormat'](_0x1e20fc[_0x1844('0x0')]['createRangeOn'](_0x173f57),{'commandName':'removeFormat','commandParams':[]});});}),_0x4459da[_0x1844('0xc')][_0x1844('0x5')](_0x550b32=>{const {data:_0x407aa6}=_0x550b32;if(_0x407aa6&&_0x1844('0xe')==_0x407aa6[_0x1844('0x12')])return{'type':_0x1844('0x8'),'content':_0x4e3024(_0x1e20fc[_0x1844('0x9')],_0x1844('0x16'))};});}}function eo(_0x35c8af,_0x15c021){for(const [_0x2df2f1]of _0x35c8af['getAttributes']()){const _0x62cb61=_0x15c021[_0x1844('0x13')](_0x2df2f1);if(_0x62cb61&&_0x62cb61[_0x1844('0x10')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e2a=['acceptAllSuggestions','discardSuggestion','goToNextRestrictedEditingException','enableCommand','editor','trackChanges','plugins','has','goToPreviousRestrictedEditingException','get','RestrictedEditingModeEditing'];(function(_0x2b7cb9,_0x2e2acf){const _0x22f479=function(_0xde4d6){while(--_0xde4d6){_0x2b7cb9['push'](_0x2b7cb9['shift']());}};_0x22f479(++_0x2e2acf);}(_0x2e2a,0x11a));const _0x22f4=function(_0x2b7cb9,_0x2e2acf){_0x2b7cb9=_0x2b7cb9-0x0;let _0x22f479=_0x2e2a[_0x2b7cb9];return _0x22f479;};import{Plugin as _0x1b9528}from'ckeditor5/src/core';export default class ut extends _0x1b9528{['afterInit'](){const _0x97cdaa=this[_0x22f4('0x8')];if(!_0x97cdaa[_0x22f4('0xa')][_0x22f4('0x0')](_0x22f4('0x3')))return;const _0x2b5084=_0x97cdaa['plugins'][_0x22f4('0x2')]('TrackChangesEditing');_0x2b5084[_0x22f4('0x7')](_0x22f4('0x1')),_0x2b5084[_0x22f4('0x7')](_0x22f4('0x6'));const _0x55786c=_0x97cdaa[_0x22f4('0xa')][_0x22f4('0x2')](_0x22f4('0x3'));_0x55786c[_0x22f4('0x7')](_0x22f4('0x9')),_0x55786c[_0x22f4('0x7')]('acceptSuggestion'),_0x55786c[_0x22f4('0x7')](_0x22f4('0x5')),_0x55786c[_0x22f4('0x7')](_0x22f4('0x4')),_0x55786c[_0x22f4('0x7')]('discardAllSuggestions'),_0x55786c[_0x22f4('0x7')]('acceptSelectedSuggestions'),_0x55786c[_0x22f4('0x7')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x454e=['enableCommand','locale','softBreak','merge','getItems','activeMarkers','init','markerRange','model','span','editing','mapper','get','insert','element','data','consumable','downcastDispatcher','shiftEnter','plugins','markerName','createPositionBefore','requires','_descriptionFactory','split','options','addMarker:suggestion:insertion','writer'];(function(_0x43e136,_0x454eeb){const _0x115ced=function(_0x4d0694){while(--_0x4d0694){_0x43e136['push'](_0x43e136['shift']());}};_0x115ced(++_0x454eeb);}(_0x454e,0x181));const _0x115c=function(_0x43e136,_0x454eeb){_0x43e136=_0x43e136-0x0;let _0x115ced=_0x454e[_0x43e136];return _0x115ced;};import{Plugin as _0x572052}from'ckeditor5/src/core';import{ShiftEnter as _0x3973ca}from'ckeditor5/src/enter';import{getTranslation as _0x295511}from'../utils/common-translations';export default class ft extends _0x572052{static get[_0x115c('0x1')](){return[_0x3973ca];}[_0x115c('0xd')](){const _0x4324e5=this['editor'],_0x2c331f=_0x4324e5['plugins']['get']('TrackChangesEditing');_0x2c331f[_0x115c('0x7')](_0x115c('0x19')),_0x4324e5[_0x115c('0x11')][_0x115c('0x18')]['on'](_0x115c('0x5'),re(_0x4324e5),{'priority':'high'}),_0x4324e5[_0x115c('0x11')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x4324e5),{'priority':'high'}),_0x4324e5[_0x115c('0x16')][_0x115c('0x18')]['on']('addMarker:suggestion',(_0x349ef5,_0x14c240,_0x6e60bd)=>{_0x6e60bd[_0x115c('0x4')]['showSuggestionHighlights']&&re(_0x4324e5,{'showActiveMarker':!0x1})(_0x349ef5,_0x14c240,_0x6e60bd);}),_0x2c331f[_0x115c('0x2')]['registerElementLabel'](_0x115c('0x9'),_0x1c5b7d=>_0x295511(_0x4324e5[_0x115c('0x8')],'ELEMENT_LINE_BREAK',_0x1c5b7d));}}function re(_0x55c5d4,{showActiveMarker:_0x2b0d5d=!0x0}={}){return(_0x261688,_0x38b596,_0x54f979)=>{const _0x76fd39=_0x55c5d4[_0x115c('0x1a')][_0x115c('0x13')]('TrackChangesEditing');if(!_0x54f979[_0x115c('0x17')]['test'](_0x38b596[_0x115c('0xe')],_0x261688['name']))return;const _0x1422ef=_0x55c5d4[_0x115c('0xf')];for(const _0x57d172 of _0x38b596['markerRange'][_0x115c('0xb')]()){if(!_0x57d172['is'](_0x115c('0x15'),_0x115c('0x9')))continue;const _0x30e71c='deletion'==_0x38b596['markerName']['split'](':')[0x1]?_0x115c('0xa'):_0x115c('0x3'),_0x968c8d=_0x54f979['writer']['createUIElement'](_0x115c('0x10'),{'class':'ck-suggestion-marker-'+_0x30e71c}),_0x437a95=_0x54f979['mapper']['toViewPosition'](_0x1422ef[_0x115c('0x0')](_0x57d172));_0x2b0d5d&&_0x76fd39[_0x115c('0xc')]['includes'](_0x38b596['markerName'])&&_0x54f979[_0x115c('0x6')]['addClass']('ck-suggestion-marker--active',_0x968c8d),_0x54f979[_0x115c('0x6')][_0x115c('0x14')](_0x437a95,_0x968c8d),_0x54f979[_0x115c('0x12')]['bindElementToMarker'](_0x968c8d,_0x38b596[_0x115c('0x1b')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9a55=['forceValue','FORMAT_RESTRICTED_ENABLED','locale','getRanges','markInlineFormat','value','commandName','editor','restrictedEditingException','StandardEditingModeEditing','has','plugins','registerDescriptionCallback','format','isCollapsed','selection','TrackChangesEditing','_descriptionFactory','model','enableCommand','get','commands'];(function(_0x343199,_0x9a55dc){const _0x173885=function(_0x52306b){while(--_0x52306b){_0x343199['push'](_0x343199['shift']());}};_0x173885(++_0x9a55dc);}(_0x9a55,0x13f));const _0x1738=function(_0x343199,_0x9a55dc){_0x343199=_0x343199-0x0;let _0x173885=_0x9a55[_0x343199];return _0x173885;};import{Plugin as _0x1be535}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x4c6af1}from'./utils';import{getTranslation as _0x5c50b4}from'../utils/common-translations';export default class lt extends _0x1be535{['afterInit'](){const _0x596094=this[_0x1738('0x12')],_0x1f8040=_0x596094[_0x1738('0x7')],_0xe4ed92=_0x596094[_0x1738('0xd')];if(!_0x596094[_0x1738('0x0')][_0x1738('0x15')](_0x1738('0x14')))return;const _0x6d2c62=_0x596094['plugins']['get'](_0x1738('0x5')),_0x2a06b2=_0x1738('0x13'),_0x3d1d19=_0x596094[_0x1738('0xa')][_0x1738('0x9')](_0x2a06b2);_0x6d2c62[_0x1738('0x8')](_0x2a06b2,(_0x415f7e,_0x3ef416={})=>{const _0x346c97=_0x1f8040['document'][_0x1738('0x4')];if(_0x346c97[_0x1738('0x3')])return void _0x415f7e(_0x3ef416);const _0x58fdb4=void 0x0!==_0x3ef416['forceValue']?_0x3ef416[_0x1738('0xb')]:!_0x3d1d19[_0x1738('0x10')];_0x1f8040['change'](()=>{const _0x2ee16a=Array['from'](_0x346c97[_0x1738('0xe')]());for(const _0x1d0971 of _0x2ee16a){const _0x5065fb=_0x58fdb4?[_0x1d0971]:_0x4c6af1(_0x2a06b2,_0x1d0971,_0x1f8040);for(const _0x10972e of _0x5065fb)_0x6d2c62[_0x1738('0xf')](_0x10972e,{'commandName':_0x2a06b2,'commandParams':[{'forceValue':_0x58fdb4}]});}});}),_0x6d2c62[_0x1738('0x6')][_0x1738('0x1')](_0x386a0c=>{const {data:_0x456763}=_0x386a0c;if(_0x456763&&_0x456763[_0x1738('0x11')]==_0x2a06b2)return _0x456763['commandParams'][0x0][_0x1738('0xb')]?{'type':_0x1738('0x2'),'content':_0x5c50b4(_0xe4ed92,_0x1738('0xc'))}:{'type':_0x1738('0x2'),'content':_0x5c50b4(_0xe4ed92,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x79ed=['commands','editor','document','block','markBlockFormat','locale','getItems','name','enableCommand','change','getAncestors','*Format:*\x20%0','isBlock','element','markInlineFormat','selection','StyleUtils','modelElements','getSelectedBlocks','_descriptionFactory','classes','includes','_getRangesWithClasses','getRanges','normalizeConfig','plugins','TrackChangesEditing','get','model','push','commandParams','toLowerCase','inline','registerDescriptionCallback','getDefinitionsForView','styleName','getAttribute','_getStyleDefinition','afterInit','Style','commandName','format','from','add','value','forceValue','find','style'];(function(_0x4b4571,_0x79ed72){const _0x381a68=function(_0x4f849f){while(--_0x4f849f){_0x4b4571['push'](_0x4b4571['shift']());}};_0x381a68(++_0x79ed72);}(_0x79ed,0x1a0));const _0x381a=function(_0x4b4571,_0x79ed72){_0x4b4571=_0x4b4571-0x0;let _0x381a68=_0x79ed[_0x4b4571];return _0x381a68;};import{Plugin as _0x23e042}from'ckeditor5/src/core';import{getTranslation as _0x37e62b}from'../utils/common-translations';export default class gt extends _0x23e042{[_0x381a('0x6')](){const _0x64e730=this[_0x381a('0x11')];if(!_0x64e730[_0x381a('0x29')]['has'](_0x381a('0x7')))return;const _0x12b2a7=_0x64e730[_0x381a('0x10')]['get'](_0x381a('0xf')),_0x2ac629=_0x64e730[_0x381a('0x29')]['get'](_0x381a('0x2a')),_0x1a5343=_0x64e730[_0x381a('0x15')],_0x23e490=_0x64e730[_0x381a('0x29')][_0x381a('0x2b')]('DataSchema'),_0x5bfe38=_0x64e730[_0x381a('0x29')][_0x381a('0x2b')](_0x381a('0x20'))[_0x381a('0x28')](_0x23e490,_0x64e730['config'][_0x381a('0x2b')]('style.definitions'));_0x2ac629[_0x381a('0x18')](_0x381a('0xf'),(_0x25a0fe,{styleName:_0x5170a6})=>{const _0x2242aa=_0x64e730[_0x381a('0x2c')][_0x381a('0x12')][_0x381a('0x1f')],_0x8a0ea8=this[_0x381a('0x5')](_0x5170a6,_0x5bfe38);if(!_0x8a0ea8)return;if(!_0x12b2a7['enabledStyles']['includes'](_0x5170a6))return;if(_0x2242aa['isCollapsed']&&!_0x8a0ea8[_0x381a('0x1c')])return void _0x25a0fe({'styleName':_0x5170a6});const _0x5e5daf=!_0x12b2a7[_0x381a('0xc')][_0x381a('0x25')](_0x8a0ea8['name']);if(_0x8a0ea8['isBlock']){const _0x163cac=function(_0x2bb236,_0x5ad759){const _0x7ab069=new Set();for(const _0x663653 of _0x2bb236){const _0x2ce204=_0x663653[_0x381a('0x1a')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x4b1205 of _0x2ce204)if(_0x5ad759[_0x381a('0x25')](_0x4b1205[_0x381a('0x17')])){_0x7ab069[_0x381a('0xb')](_0x4b1205);break;}}return _0x7ab069;}(_0x2242aa[_0x381a('0x22')](),_0x8a0ea8[_0x381a('0x21')]);_0x64e730[_0x381a('0x2c')]['change'](()=>{for(const _0x2c0602 of _0x163cac)_0x2ac629[_0x381a('0x14')](_0x2c0602,{'commandName':_0x381a('0xf'),'commandParams':[{'styleName':_0x5170a6,'forceValue':_0x5e5daf}],'formatGroupId':'style:'+_0x5170a6});});}else{let _0x532078=Array[_0x381a('0xa')](_0x2242aa[_0x381a('0x27')]());if(!_0x5e5daf){const _0x67c426=Array['from'](_0x23e490[_0x381a('0x2')](_0x8a0ea8[_0x381a('0x1d')],!0x1))[0x0]['model'],_0x220f34=[];for(const _0x24b23c of _0x532078){const _0x4f3566=this[_0x381a('0x26')](_0x64e730[_0x381a('0x2c')],_0x24b23c,_0x8a0ea8[_0x381a('0x24')],_0x67c426);_0x220f34[_0x381a('0x2d')](..._0x4f3566);}_0x532078=_0x220f34;}_0x64e730[_0x381a('0x2c')][_0x381a('0x19')](()=>{for(const _0x204864 of _0x532078)_0x2ac629[_0x381a('0x1e')](_0x204864,{'commandName':_0x381a('0xf'),'commandParams':[{'styleName':_0x5170a6,'forceValue':_0x5e5daf}]});});}}),_0x2ac629[_0x381a('0x23')][_0x381a('0x1')](_0x1aa202=>{const {data:_0x307dd4}=_0x1aa202;if(_0x307dd4&&_0x381a('0xf')===_0x307dd4[_0x381a('0x8')])return _0x307dd4[_0x381a('0x2e')][0x0][_0x381a('0xd')]?{'type':_0x381a('0x9'),'content':_0x37e62b(_0x1a5343,_0x381a('0x1b'),_0x307dd4['commandParams'][0x0][_0x381a('0x3')]['toLowerCase']())}:{'type':'format','content':_0x37e62b(_0x1a5343,'*Remove\x20format:*\x20%0',_0x307dd4[_0x381a('0x2e')][0x0][_0x381a('0x3')][_0x381a('0x2f')]())};});}[_0x381a('0x5')](_0x2aff75,_0x140cdd){let _0xaae173=_0x140cdd[_0x381a('0x13')][_0x381a('0xe')](_0x3a5f06=>_0x3a5f06[_0x381a('0x17')]===_0x2aff75);return _0xaae173||(_0xaae173=_0x140cdd[_0x381a('0x0')][_0x381a('0xe')](_0x215d56=>_0x215d56[_0x381a('0x17')]===_0x2aff75)),_0xaae173;}[_0x381a('0x26')](_0x189f45,_0x4ab231,_0x9a1448,_0x5c4621){const _0x134ebd=[];for(const _0x409218 of _0x4ab231[_0x381a('0x16')]()){const _0x3c67c9=_0x409218[_0x381a('0x4')](_0x5c4621);_0x3c67c9&&(_0x9a1448['every'](_0x21e71d=>_0x3c67c9[_0x381a('0x24')][_0x381a('0x25')](_0x21e71d))&&_0x134ebd[_0x381a('0x2d')](_0x189f45['createRangeOn'](_0x409218)));}return _0x134ebd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b68=['item','toLowerCase','removeTableColumn','order','every','minRow','markMultiRangeInsertion','insertTableColumnLeft','ELEMENT_TABLE','createTableWalker','setSelection','toViewElement','map','markMultiRangeDeletion','registerCustomCallback','element','locale','discard','refresh','some','ELEMENT_TABLE_COLUMN','MIN_SAFE_INTEGER','insertion','getSuggestion','low','getColumnIndexes','getFirstRange','type','isIntersectingWithRange','highest','filter','oldRange','subType','editor','nodeAfter','ELEMENT_TABLE_COLUMN_WITH_TEXT','change','fromRange','tableColumn','addRange','left','span','afterInit','_getCoordsForCells','change:data','findAncestor','getCellLocation','ELEMENT_TABLE_ROW','isInContent','enqueueChange','_suggestionFactory','_getSuggestionCoords','classes','document','plugins','deletion','cell','insertTableRowBelow','from','substr','first','getChangedMarkers','ELEMENT_TABLE_WITH_TEXT','_tablePostFixingSubtypes','$textProxy','TableUtils','mapper','commands','values','_splitMarkerName','*Insert:*\x20%0','isEqual','_setupColumnsRowsFixing','selectTableColumn','writer','tableCell','_descriptionFactory','accept','insertTableRowAbove','*Remove:*\x20%0','min','getItems','length','detach','removeClass','batch','add','_tableSuggestions','registerDescriptionCallback','TrackChangesEditing','downcastDispatcher','enableCommand','name','getAttribute','registerPostFixer','get','$graveyard','start','nodeBefore','getRanges','minColumn','above','createPositionAt','getRowIndexes','max','rowspan','_acceptFormatSuggestionCallbackFactory','last','join','createRangeOn','insert','execute','hasAttribute','getSelectionAffectedTableCells','includes','push','colspan','position','removeTableRow','showSuggestionHighlights','isTouching','ELEMENT_TABLE_ROW_WITH_TEXT','data','model','tableRow','table','MAX_SAFE_INTEGER','root','rootName','end'];(function(_0x342cad,_0x1b6813){const _0x2c5015=function(_0xbb4f59){while(--_0xbb4f59){_0x342cad['push'](_0x342cad['shift']());}};_0x2c5015(++_0x1b6813);}(_0x1b68,0x13f));const _0x2c50=function(_0x342cad,_0x1b6813){_0x342cad=_0x342cad-0x0;let _0x2c5015=_0x1b68[_0x342cad];return _0x2c5015;};import{Plugin as _0xb286e4}from'ckeditor5/src/core';import{LiveRange as _0x347564}from'ckeditor5/src/engine';import{setHighlightHandling as _0x8be612}from'ckeditor5/src/widget';import{getTranslation as _0x1fd17d}from'../utils/common-translations';export default class mt extends _0xb286e4{constructor(_0x4342f4){super(_0x4342f4),this['_tablePostFixingSubtypes']=['tableRow',_0x2c50('0x6d')],this[_0x2c50('0x1c')]=new Set();}[_0x2c50('0x71')](){const _0x1d3ce2=this[_0x2c50('0x68')],_0x37f3ef=_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x7c')]['selection'];if(!_0x1d3ce2[_0x2c50('0x7d')]['has']('TableEditing'))return;const _0x5aa272=_0x1d3ce2[_0x2c50('0x57')],_0x25e4a1=_0x1d3ce2['plugins'][_0x2c50('0x24')](_0x2c50('0x1e')),_0x3f522f=_0x1d3ce2['plugins'][_0x2c50('0x24')](_0x2c50('0x6'));_0x25e4a1[_0x2c50('0x11')]['registerElementLabel']('table',_0x148e44=>_0x1fd17d(_0x5aa272,_0x2c50('0x4f'),_0x148e44)),this[_0x2c50('0xd')](),_0x25e4a1[_0x2c50('0x20')]('insertTable'),_0x25e4a1['enableCommand']('selectTableRow'),_0x25e4a1[_0x2c50('0x20')](_0x2c50('0xe'));for(const _0x26adf2 of[_0x2c50('0x13'),_0x2c50('0x80')]){const _0x2a0c4e=_0x1d3ce2[_0x2c50('0x8')]['get'](_0x26adf2);_0x25e4a1[_0x2c50('0x20')](_0x26adf2,_0x37dc10=>{_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x6b')](_0x348834=>{_0x37dc10();const _0x298dce=_0x2c50('0x2a')===_0x2a0c4e[_0x2c50('0x4a')],_0x181d1c=_0x3f522f['getSelectionAffectedTableCells'](_0x37f3ef),_0x3fdce3=_0x3f522f[_0x2c50('0x2c')](_0x181d1c),_0x25466e=_0x298dce?_0x3fdce3[_0x2c50('0x1')]-0x1:_0x3fdce3['last']+0x1,_0x14d583=_0x181d1c[0x0][_0x2c50('0x74')](_0x2c50('0x42')),_0x2d8669=_0x3f522f[_0x2c50('0x50')](_0x14d583,{'startRow':_0x25466e,'endRow':_0x25466e}),_0x440d69=Array[_0x2c50('0x81')](_0x2d8669)[_0x2c50('0x53')](_0x56737f=>_0x348834['createRangeOn'](_0x56737f[_0x2c50('0x7f')]));_0x25e4a1[_0x2c50('0x4d')](_0x440d69,_0x2c50('0x41'));});});}for(const _0x4a681e of[_0x2c50('0x4e'),'insertTableColumnRight']){const _0x13ff43=_0x1d3ce2[_0x2c50('0x8')][_0x2c50('0x24')](_0x4a681e);_0x25e4a1[_0x2c50('0x20')](_0x4a681e,_0x45f079=>{_0x1d3ce2['model'][_0x2c50('0x6b')](_0x40b062=>{_0x45f079();const _0x2b05c5=_0x2c50('0x6f')===_0x13ff43[_0x2c50('0x4a')],_0x31bdba=_0x3f522f[_0x2c50('0x36')](_0x37f3ef),_0x22b278=_0x3f522f['getColumnIndexes'](_0x31bdba),_0x49e19f=_0x2b05c5?_0x22b278['first']-0x1:_0x22b278[_0x2c50('0x30')]+0x1,_0x2ca3d4=_0x31bdba[0x0]['findAncestor']('table'),_0x40a8c5=_0x3f522f[_0x2c50('0x50')](_0x2ca3d4,{'startRow':0x0,'column':_0x49e19f,'includeAllSlots':!0x1}),_0x1522e9=Array['from'](_0x40a8c5)[_0x2c50('0x53')](_0x32d571=>_0x40b062[_0x2c50('0x32')](_0x32d571[_0x2c50('0x7f')]));_0x25e4a1[_0x2c50('0x4d')](_0x1522e9,_0x2c50('0x6d'));});});}for(const _0x3ddeff of[_0x2c50('0x3b'),_0x2c50('0x49')]){const _0x2f6f1d=_0x3ddeff[_0x2c50('0x0')](0xb),_0x38053c=_0x2f6f1d[_0x2c50('0x48')](),_0x5321dc=_0x38053c[_0x2c50('0x0')](0x0,0x3)+_0x2c50('0x70'),_0x2a2253=_0x2c50('0x42')+_0x2f6f1d,_0x135eb5=_0x2c50('0x15')+_0x2f6f1d,_0x4a7da5=_0x2c50('0x2d')+_0x2f6f1d;_0x25e4a1[_0x2c50('0x20')](_0x3ddeff,()=>{_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x6b')](_0x56c219=>{const _0x46e2cb=_0x3f522f[_0x2c50('0x36')](_0x37f3ef),_0x5e1c53=_0x46e2cb[0x0][_0x2c50('0x74')](_0x2c50('0x42'));let _0x41c206;if(_0x2c50('0x3b')==_0x3ddeff){const _0x564e6a=_0x3f522f[_0x2c50('0x2c')](_0x46e2cb);_0x41c206={'startRow':_0x564e6a[_0x2c50('0x1')],'endRow':_0x564e6a[_0x2c50('0x30')],'includeAllSlots':!0x0};}else{const _0x3547db=_0x3f522f[_0x2c50('0x60')](_0x46e2cb);_0x41c206={'startColumn':_0x3547db['first'],'endColumn':_0x3547db[_0x2c50('0x30')],'includeAllSlots':!0x0};}const _0x3a4f6a=_0x3f522f[_0x2c50('0x50')](_0x5e1c53,_0x41c206),_0x244fe2=Array[_0x2c50('0x81')](_0x3a4f6a)[_0x2c50('0x53')](({cell:_0x32f63f})=>_0x32f63f),_0x21647=se(_0x244fe2[_0x2c50('0x65')](_0xcbc847=>_0xcbc847[_0x2c50('0x35')](_0x5321dc))),_0x174da7=se(_0x244fe2[_0x2c50('0x65')](_0x3c2d45=>!_0x3c2d45[_0x2c50('0x35')](_0x5321dc)))['map'](_0x171968=>_0x56c219[_0x2c50('0x32')](_0x171968)),_0x5077b0=_0x25e4a1[_0x2c50('0x54')](_0x174da7,_0x2a2253);if(_0x5077b0&&(_0x2c50('0x41')==_0x5077b0[_0x2c50('0x67')]||_0x2c50('0x6d')==_0x5077b0['subType'])){const _0x28dc35=this[_0x2c50('0x7a')](_0x5077b0);for(const _0x22f77c of _0x21647){const _0x495670=_0x56c219[_0x2c50('0x32')](_0x22f77c),_0x285624=_0x3f522f[_0x2c50('0x75')](_0x22f77c),_0x288d1b=_0x22f77c['getAttribute'](_0x5321dc)-0x1,_0xefdc6b=_0x28dc35[_0x135eb5],_0x4ea840=_0x28dc35[_0x4a7da5];_0xefdc6b<=_0x285624[_0x38053c]&&_0x285624[_0x38053c]+_0x288d1b<=_0x4ea840&&_0x5077b0[_0x2c50('0x6e')](_0x495670);}}});});}function _0x37052a(_0x5597ba){const _0x5e6115=Array[_0x2c50('0x81')](_0x37f3ef[_0x2c50('0x28')]())[_0x2c50('0x53')](_0x2d7827=>_0x347564['fromRange'](_0x2d7827));_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x6b')](_0x30098a=>{const _0x1f6bbc=_0x30098a[_0x2c50('0x1a')];_0x5597ba=_0x5597ba[_0x2c50('0x65')](_0x350a96=>_0x2c50('0x25')!=_0x350a96[_0x2c50('0x44')]['rootName']),_0x30098a[_0x2c50('0x51')](_0x5597ba),_0x1d3ce2[_0x2c50('0x8')][_0x2c50('0x24')](_0x2c50('0x3b'))[_0x2c50('0x59')](),_0x1d3ce2['execute'](_0x2c50('0x3b'),{'forceDefaultExecution':!0x0}),_0x1d3ce2[_0x2c50('0x40')][_0x2c50('0x78')](()=>{_0x1d3ce2['model'][_0x2c50('0x78')](_0x1f6bbc,_0x33ddc3=>{const _0x5ba2ad=_0x5e6115[_0x2c50('0x65')](_0x498cc7=>_0x2c50('0x25')!=_0x498cc7[_0x2c50('0x44')][_0x2c50('0x45')]);_0x5ba2ad['length']>0x0&&_0x33ddc3[_0x2c50('0x51')](_0x5ba2ad);for(const _0x5a819e of _0x5e6115)_0x5a819e[_0x2c50('0x18')]();});});});}function _0x9023d1(_0x46db2d){_0x1d3ce2['model'][_0x2c50('0x6b')](_0x53a342=>{const _0x394129=Array[_0x2c50('0x81')](_0x37f3ef[_0x2c50('0x28')]())[_0x2c50('0x53')](_0x14faf0=>_0x347564[_0x2c50('0x6c')](_0x14faf0)),_0x2a284e=[];for(const _0x7af09a of _0x46db2d)for(const _0x5da654 of _0x7af09a[_0x2c50('0x16')]({'shallow':!0x0}))_0x2a284e['push'](_0x5da654);for(const _0x40a624 of _0x2a284e)_0x2c50('0x25')!=_0x40a624[_0x2c50('0x44')][_0x2c50('0x45')]&&(_0x53a342[_0x2c50('0x51')](_0x53a342[_0x2c50('0x2b')](_0x40a624,0x0)),_0x1d3ce2['commands'][_0x2c50('0x24')](_0x2c50('0x49'))[_0x2c50('0x59')](),_0x1d3ce2[_0x2c50('0x34')](_0x2c50('0x49'),{'forceDefaultExecution':!0x0}));const _0x54c519=_0x394129[_0x2c50('0x65')](_0x599e22=>_0x2c50('0x25')!=_0x599e22[_0x2c50('0x44')][_0x2c50('0x45')]);_0x54c519[_0x2c50('0x17')]>0x0&&_0x53a342['setSelection'](_0x54c519);for(const _0x33ab74 of _0x394129)_0x33ab74[_0x2c50('0x18')]();});}function _0x441cf4(_0x4c4b73,_0x1e2bbd){return _0x1e2bbd[_0x2c50('0x4b')](_0x573555=>_0x4c4b73[_0x2c50('0x5a')](_0x5c5df4=>_0x5c5df4[_0x2c50('0x46')][_0x2c50('0xc')](_0x573555[_0x2c50('0x26')])||_0x573555['end'][_0x2c50('0xc')](_0x5c5df4[_0x2c50('0x26')])));}function _0x43f690(_0x1ac6f1,_0x3b836b){return _0x1ac6f1[_0x2c50('0x5a')](_0x49f581=>_0x3b836b['some'](_0xb9f153=>_0x49f581[_0x2c50('0x46')][_0x2c50('0x3d')](_0xb9f153[_0x2c50('0x26')])));}_0x1d3ce2[_0x2c50('0x3f')][_0x2c50('0x1f')]['on']('addMarker:suggestion',(_0x1d40b0,_0x3eba1a,_0x184062)=>{if(!_0x184062['options'][_0x2c50('0x3c')])return;const _0x53e5b5=_0x3eba1a[_0x2c50('0x47')];if(!_0x53e5b5)return;const _0x7e5e52=_0x184062[_0x2c50('0x7')][_0x2c50('0x52')](_0x53e5b5);function _0x110933(_0x34aaaa){return Array['isArray'](_0x34aaaa)?_0x34aaaa:[_0x34aaaa];}_0x7e5e52&&_0x2c50('0x10')===_0x53e5b5[_0x2c50('0x21')]&&_0x8be612(_0x7e5e52,_0x184062[_0x2c50('0xf')],(_0x37d478,_0x54499f,_0x516ae6)=>_0x516ae6['addClass'](_0x110933(_0x54499f[_0x2c50('0x7b')]),_0x37d478),(_0x184d56,_0x3870ac,_0x125111)=>_0x125111[_0x2c50('0x19')](_0x110933(_0x3870ac[_0x2c50('0x7b')]),_0x184d56));},{'priority':_0x2c50('0x64')}),_0x25e4a1[_0x2c50('0x11')][_0x2c50('0x1d')](_0xeb04c4=>{if('insertion'!=_0xeb04c4[_0x2c50('0x62')]&&_0x2c50('0x7e')!=_0xeb04c4['type'])return;const _0x236af3=_0xeb04c4['getContainedElement']();if(null!=_0x236af3&&_0x236af3['is'](_0x2c50('0x56'),'table')){if(_0x2c50('0x5d')==_0xeb04c4[_0x2c50('0x62')]){const _0x1dcb65=_0xeb04c4[_0x2c50('0x16')]()[_0x2c50('0x65')](_0x15e914=>_0x15e914['is'](_0x2c50('0x5')))[_0x2c50('0x53')](_0x3f2e42=>_0x3f2e42['data']);if(_0x1dcb65[_0x2c50('0x17')])return{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x3'),'\x22'+_0x1dcb65['join']('\x20')+'\x22'))};}if(_0x2c50('0x7e')==_0xeb04c4[_0x2c50('0x62')]){const _0x1bff15=_0xeb04c4[_0x2c50('0x16')]()[_0x2c50('0x65')](_0x1972f5=>_0x1972f5['is'](_0x2c50('0x5')))[_0x2c50('0x53')](_0x368bc2=>_0x368bc2[_0x2c50('0x3f')]);if(_0x1bff15[_0x2c50('0x17')])return{'type':'deletion','content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,_0x2c50('0x3'),'\x22'+_0x1bff15['join']('\x20')+'\x22'))};}}}),_0x25e4a1[_0x2c50('0x11')]['registerDescriptionCallback'](_0x12908d=>{if(_0x2c50('0x41')==_0x12908d[_0x2c50('0x67')]){const _0x3e14fc=_0x12908d['getItems']()['filter'](_0x24c16b=>_0x24c16b['is']('$textProxy'))['map'](_0x2bcbe3=>_0x2bcbe3[_0x2c50('0x3f')]),_0x59978d=this[_0x2c50('0x7a')](_0x12908d),_0x2ea945=_0x59978d['maxRow']-_0x59978d[_0x2c50('0x4c')]+0x1;if('insertion'==_0x12908d[_0x2c50('0x62')])return _0x3e14fc['length']?{'type':'insertion','content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x3e'),[_0x2ea945,'\x22'+_0x3e14fc[_0x2c50('0x31')]('\x20')+'\x22']))}:{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x76'),_0x2ea945))};if(_0x2c50('0x7e')==_0x12908d[_0x2c50('0x62')])return _0x3e14fc[_0x2c50('0x17')]?{'type':'deletion','content':_0x1fd17d(_0x5aa272,'*Remove:*\x20%0',_0x1fd17d(_0x5aa272,_0x2c50('0x3e'),[_0x2ea945,'\x22'+_0x3e14fc[_0x2c50('0x31')]('\x20')+'\x22']))}:{'type':_0x2c50('0x7e'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,_0x2c50('0x76'),_0x2ea945))};}if('tableColumn'==_0x12908d[_0x2c50('0x67')]){const _0xb2037a=_0x12908d[_0x2c50('0x16')]()[_0x2c50('0x65')](_0x29593d=>_0x29593d['is'](_0x2c50('0x5')))[_0x2c50('0x53')](_0xbb6ae7=>_0xbb6ae7['data']),_0x581fac=this[_0x2c50('0x7a')](_0x12908d),_0x345633=_0x581fac['maxColumn']-_0x581fac[_0x2c50('0x29')]+0x1;if(_0x2c50('0x5d')==_0x12908d[_0x2c50('0x62')])return _0xb2037a[_0x2c50('0x17')]?{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x6a'),[_0x345633,'\x22'+_0xb2037a['join']('\x20')+'\x22']))}:{'type':_0x2c50('0x5d'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0xb'),_0x1fd17d(_0x5aa272,_0x2c50('0x5b'),_0x345633))};if(_0x2c50('0x7e')==_0x12908d[_0x2c50('0x62')])return _0xb2037a[_0x2c50('0x17')]?{'type':_0x2c50('0x7e'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x345633,'\x22'+_0xb2037a[_0x2c50('0x31')]('\x20')+'\x22']))}:{'type':_0x2c50('0x7e'),'content':_0x1fd17d(_0x5aa272,_0x2c50('0x14'),_0x1fd17d(_0x5aa272,_0x2c50('0x5b'),_0x345633))};}}),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x5d'),_0x2c50('0x41'),_0x2c50('0x58'),_0x37052a),_0x25e4a1['_suggestionFactory']['registerCustomCallback'](_0x2c50('0x7e'),_0x2c50('0x41'),_0x2c50('0x12'),_0x37052a),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')]('insertion','tableColumn',_0x2c50('0x58'),_0x9023d1),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x7e'),'tableColumn','accept',_0x9023d1),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x5d'),'tableColumn',_0x2c50('0x31'),_0x441cf4),_0x25e4a1[_0x2c50('0x79')]['registerCustomCallback'](_0x2c50('0x7e'),'tableColumn',_0x2c50('0x31'),_0x441cf4),_0x25e4a1['_suggestionFactory'][_0x2c50('0x55')]('insertion',_0x2c50('0x41'),_0x2c50('0x31'),_0x43f690),_0x25e4a1[_0x2c50('0x79')][_0x2c50('0x55')](_0x2c50('0x7e'),_0x2c50('0x41'),_0x2c50('0x31'),_0x43f690);}[_0x2c50('0x2f')](){const _0x25d0e7=this[_0x2c50('0x68')],_0x2342fd=_0x25d0e7['model'][_0x2c50('0x7c')]['selection'];return(_0x25c24b,_0x3717a1)=>{_0x25d0e7[_0x2c50('0x40')][_0x2c50('0x6b')](_0x100618=>{const {commandName:_0x4933ce,commandParams:_0x58151d}=_0x3717a1;let _0x347690=_0x25c24b[0x0]['end'][_0x2c50('0x27')];_0x58151d&&_0x58151d[0x0]&&!0x1===_0x58151d[0x0]['forceValue']&&(_0x347690=_0x25c24b[0x0]['start']['nodeAfter']);const _0x34d57a=_0x100618['createRangeIn'](_0x347690);if(_0x2c50('0x25')==_0x34d57a['root'][_0x2c50('0x45')])return;const _0x42a9b9=Array[_0x2c50('0x81')](_0x2342fd[_0x2c50('0x28')]())['map'](_0x508d74=>_0x347564['fromRange'](_0x508d74));_0x100618[_0x2c50('0x51')](_0x34d57a),_0x25d0e7[_0x2c50('0x8')][_0x2c50('0x24')](_0x4933ce)[_0x2c50('0x59')](),_0x58151d[_0x2c50('0x38')]({'forceDefaultExecution':!0x0}),_0x25d0e7['execute'](_0x4933ce,..._0x58151d);const _0x355db4=_0x42a9b9[_0x2c50('0x65')](_0x5bf6a6=>_0x2c50('0x25')!=_0x5bf6a6[_0x2c50('0x44')][_0x2c50('0x45')]);_0x355db4[_0x2c50('0x17')]>0x0&&_0x100618[_0x2c50('0x51')](_0x355db4);for(const _0x18538e of _0x42a9b9)_0x18538e[_0x2c50('0x18')]();});};}['_getCoordsForCells'](_0x3c6006){const _0x4bc9ce=this[_0x2c50('0x68')][_0x2c50('0x7d')][_0x2c50('0x24')](_0x2c50('0x6'));let _0x368202=Number[_0x2c50('0x43')],_0x3095fd=Number['MIN_SAFE_INTEGER'],_0x7f6cc0=Number[_0x2c50('0x43')],_0x17934d=Number[_0x2c50('0x5c')];for(const _0x1d05c3 of _0x3c6006){if(_0x2c50('0x25')==_0x1d05c3[_0x2c50('0x44')]['rootName'])continue;const {row:_0x4ffae4,column:_0x58cde2}=_0x4bc9ce['getCellLocation'](_0x1d05c3),_0x4d2feb=_0x1d05c3[_0x2c50('0x35')](_0x2c50('0x2e'))?_0x1d05c3['getAttribute'](_0x2c50('0x2e'))-0x1:0x0,_0x99a272=_0x1d05c3[_0x2c50('0x35')](_0x2c50('0x39'))?_0x1d05c3[_0x2c50('0x22')](_0x2c50('0x39'))-0x1:0x0;_0x368202=_0x4ffae4<_0x368202?_0x4ffae4:_0x368202,_0x3095fd=_0x4ffae4+_0x4d2feb>_0x3095fd?_0x4ffae4+_0x4d2feb:_0x3095fd,_0x7f6cc0=_0x58cde2<_0x7f6cc0?_0x58cde2:_0x7f6cc0,_0x17934d=_0x58cde2+_0x99a272>_0x17934d?_0x58cde2+_0x99a272:_0x17934d;}return{'minRow':_0x368202,'maxRow':_0x3095fd,'minColumn':_0x7f6cc0,'maxColumn':_0x17934d};}['_setupColumnsRowsFixing'](){const _0x5ba54e=this[_0x2c50('0x68')],_0x3bc52a=_0x5ba54e['plugins'][_0x2c50('0x24')](_0x2c50('0x1e')),_0x2740b5=_0x5ba54e[_0x2c50('0x7d')]['get'](_0x2c50('0x6'));_0x5ba54e[_0x2c50('0x40')][_0x2c50('0x7c')]['on'](_0x2c50('0x73'),()=>{const _0x2f291a=Array[_0x2c50('0x81')](_0x5ba54e[_0x2c50('0x40')][_0x2c50('0x7c')]['differ'][_0x2c50('0x2')]());for(const {name:_0x4df40d,data:_0x367586}of _0x2f291a){const {group:_0x1abb54,id:_0x538b9f,subType:_0x3de9c4}=_0x3bc52a[_0x2c50('0xa')](_0x4df40d);if('suggestion'!=_0x1abb54)continue;if(null!=_0x367586[_0x2c50('0x66')])continue;const _0x3eddac=_0x3bc52a[_0x2c50('0x5e')](_0x538b9f);this[_0x2c50('0x4')][_0x2c50('0x37')](_0x3de9c4)&&this[_0x2c50('0x1c')][_0x2c50('0x1b')](_0x3eddac);}},{'priority':_0x2c50('0x5f')});const _0x1dedca=(_0x158eb9,_0x474877)=>{let _0x450df6=!0x1;const _0x21b18b=_0x474877[_0x2c50('0x32')](_0x158eb9),_0x4a3a4a=_0x158eb9[_0x2c50('0x74')]('table'),_0x55e715=_0x2740b5[_0x2c50('0x75')](_0x158eb9);for(const _0x5132b1 of this[_0x2c50('0x1c')]){const _0x1654b2=_0x5132b1[_0x2c50('0x67')],_0x136918=_0x1654b2['startsWith']('tablePaste'),_0x4e620b=_0x1654b2[_0x2c50('0x0')](_0x136918?0xa:0x5),_0x2fd55c=_0x4e620b['toLowerCase'](),_0x1f9233=_0x2fd55c[_0x2c50('0x0')](0x0,0x3)+_0x2c50('0x70'),_0x32137c='min'+_0x4e620b,_0x531795=_0x2c50('0x2d')+_0x4e620b;if(!_0x5132b1[_0x2c50('0x77')])continue;if(_0x4a3a4a!=_0x5132b1[_0x2c50('0x61')]()[_0x2c50('0x26')][_0x2c50('0x74')](_0x2c50('0x42')))continue;if(_0x5132b1[_0x2c50('0x63')](_0x21b18b))continue;const _0x4e878a=_0x158eb9['hasAttribute'](_0x1f9233)?_0x158eb9['getAttribute'](_0x1f9233)-0x1:0x0,_0x4c4996=this[_0x2c50('0x7a')](_0x5132b1),_0x593171=_0x4c4996[_0x32137c],_0x3ea05b=_0x4c4996[_0x531795];_0x593171<=_0x55e715[_0x2fd55c]&&_0x55e715[_0x2fd55c]+_0x4e878a<=_0x3ea05b&&(_0x5132b1[_0x2c50('0x6e')](_0x21b18b),_0x450df6=!0x0);}return _0x450df6;};_0x5ba54e[_0x2c50('0x40')][_0x2c50('0x7c')][_0x2c50('0x23')](_0x4acc6a=>{let _0x18e8bf=!0x1;for(const _0x478c21 of _0x5ba54e[_0x2c50('0x40')]['document']['differ']['getChanges']())if(_0x2c50('0x33')==_0x478c21[_0x2c50('0x62')]){if('tableRow'==_0x478c21[_0x2c50('0x21')])for(const _0x34f1c5 of _0x478c21[_0x2c50('0x3a')]['nodeAfter']['getChildren']())_0x18e8bf=_0x18e8bf||_0x1dedca(_0x34f1c5,_0x4acc6a);else _0x2c50('0x10')==_0x478c21[_0x2c50('0x21')]&&(_0x18e8bf=_0x18e8bf||_0x1dedca(_0x478c21['position'][_0x2c50('0x69')],_0x4acc6a));}return _0x18e8bf;});}[_0x2c50('0x7a')](_0x53b6d9){return this[_0x2c50('0x72')](_0x53b6d9[_0x2c50('0x28')]()[_0x2c50('0x53')](_0x318125=>_0x318125['start'][_0x2c50('0x69')]));}}function se(_0xdc0c4e){return Array[_0x2c50('0x81')](new Set(_0xdc0c4e)[_0x2c50('0x9')]());}
|
|
23
|
+
const _0x546a=['selection','map','add','execute','locale','toViewElement','insertTableColumnRight','order','isEqual','position','length','findAncestor','refresh','ELEMENT_TABLE_WITH_TEXT','change:data','tableCell','join','createTableWalker','_setupColumnsRowsFixing','*Remove:*\x20%0','insertion','substr','ELEMENT_TABLE_ROW_WITH_TEXT','item','hasAttribute','createRangeOn','accept','getSelectionAffectedTableCells','registerDescriptionCallback','values','_suggestionFactory','enqueueChange','TrackChangesEditing','registerPostFixer','classes','maxRow','ELEMENT_TABLE_COLUMN','insert','nodeBefore','getColumnIndexes','data','options','last','element','subType','getChildren','selectTableColumn','insertTableRowAbove','get','name','selectTableRow','from','nodeAfter','getRowIndexes','forceValue','isTouching','ELEMENT_TABLE_COLUMN_WITH_TEXT','every','plugins','suggestion','minRow','ELEMENT_TABLE_ROW','removeTableRow','registerElementLabel','_acceptFormatSuggestionCallbackFactory','document','includes','root','commands','markMultiRangeDeletion','first','getCellLocation','$textProxy','createPositionAt','cell','_descriptionFactory','registerCustomCallback','model','enableCommand','getItems','$graveyard','toLowerCase','_getSuggestionCoords','insertTable','getAttribute','table','isInContent','start','tableRow','getChangedMarkers','oldRange','getContainedElement','max','removeTableColumn','min','rowspan','afterInit','getRanges','left','fromRange','differ','markMultiRangeInsertion','addMarker:suggestion','TableUtils','MAX_SAFE_INTEGER','createRangeIn','getSuggestion','span','tableColumn','editor','showSuggestionHighlights','detach','tablePaste','deletion','rootName','end','maxColumn','minColumn','filter','MIN_SAFE_INTEGER','colspan','getFirstRange','type','ELEMENT_TABLE','_tableSuggestions','change','batch','setSelection','removeClass','push','*Insert:*\x20%0','some','addRange','isIntersectingWithRange','_tablePostFixingSubtypes'];(function(_0x4d4535,_0x546a50){const _0x253d82=function(_0x5e4eef){while(--_0x5e4eef){_0x4d4535['push'](_0x4d4535['shift']());}};_0x253d82(++_0x546a50);}(_0x546a,0x1a8));const _0x253d=function(_0x4d4535,_0x546a50){_0x4d4535=_0x4d4535-0x0;let _0x253d82=_0x546a[_0x4d4535];return _0x253d82;};import{Plugin as _0x116aa7}from'ckeditor5/src/core';import{LiveRange as _0x40fb04}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4c6e02}from'ckeditor5/src/widget';import{getTranslation as _0x3b2a6c}from'../utils/common-translations';export default class mt extends _0x116aa7{constructor(_0xf6c63d){super(_0xf6c63d),this[_0x253d('0x73')]=['tableRow',_0x253d('0x59')],this['_tableSuggestions']=new Set();}[_0x253d('0x4d')](){const _0x131801=this['editor'],_0x3ed342=_0x131801[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0x74')];if(!_0x131801[_0x253d('0x27')]['has']('TableEditing'))return;const _0x3a3588=_0x131801[_0x253d('0x78')],_0x422fe3=_0x131801[_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0xd')),_0x2092b1=_0x131801[_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0x54'));_0x422fe3[_0x253d('0x38')][_0x253d('0x2c')]('table',_0x4b06ef=>_0x3b2a6c(_0x3a3588,_0x253d('0x68'),_0x4b06ef)),this[_0x253d('0x86')](),_0x422fe3[_0x253d('0x3b')](_0x253d('0x40')),_0x422fe3['enableCommand'](_0x253d('0x1f')),_0x422fe3['enableCommand'](_0x253d('0x1b'));for(const _0x235bd8 of[_0x253d('0x1c'),'insertTableRowBelow']){const _0x15f479=_0x131801[_0x253d('0x31')][_0x253d('0x1d')](_0x235bd8);_0x422fe3['enableCommand'](_0x235bd8,_0x4e79d2=>{_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x77fd09=>{_0x4e79d2();const _0x5a0fae='above'===_0x15f479[_0x253d('0x7b')],_0x5f24a2=_0x2092b1[_0x253d('0x8')](_0x3ed342),_0x543920=_0x2092b1['getRowIndexes'](_0x5f24a2),_0x3799ba=_0x5a0fae?_0x543920[_0x253d('0x33')]-0x1:_0x543920['last']+0x1,_0x9bdf3c=_0x5f24a2[0x0][_0x253d('0x7f')](_0x253d('0x42')),_0x19620e=_0x2092b1[_0x253d('0x85')](_0x9bdf3c,{'startRow':_0x3799ba,'endRow':_0x3799ba}),_0x37b7d5=Array['from'](_0x19620e)['map'](_0x7c8e26=>_0x77fd09['createRangeOn'](_0x7c8e26['cell']));_0x422fe3['markMultiRangeInsertion'](_0x37b7d5,_0x253d('0x45'));});});}for(const _0x27e6a8 of['insertTableColumnLeft',_0x253d('0x7a')]){const _0x56f59f=_0x131801[_0x253d('0x31')][_0x253d('0x1d')](_0x27e6a8);_0x422fe3[_0x253d('0x3b')](_0x27e6a8,_0x471ce5=>{_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x66749=>{_0x471ce5();const _0x6eea27=_0x253d('0x4f')===_0x56f59f[_0x253d('0x7b')],_0x19a606=_0x2092b1[_0x253d('0x8')](_0x3ed342),_0x27df81=_0x2092b1[_0x253d('0x14')](_0x19a606),_0x580a1a=_0x6eea27?_0x27df81[_0x253d('0x33')]-0x1:_0x27df81[_0x253d('0x17')]+0x1,_0x199d5d=_0x19a606[0x0]['findAncestor'](_0x253d('0x42')),_0x374acd=_0x2092b1['createTableWalker'](_0x199d5d,{'startRow':0x0,'column':_0x580a1a,'includeAllSlots':!0x1}),_0x28b6cd=Array[_0x253d('0x20')](_0x374acd)[_0x253d('0x75')](_0xc01970=>_0x66749['createRangeOn'](_0xc01970[_0x253d('0x37')]));_0x422fe3[_0x253d('0x52')](_0x28b6cd,_0x253d('0x59'));});});}for(const _0x5a107c of[_0x253d('0x2b'),_0x253d('0x4a')]){const _0xca313=_0x5a107c[_0x253d('0x2')](0xb),_0x383a16=_0xca313[_0x253d('0x3e')](),_0x527f6c=_0x383a16['substr'](0x0,0x3)+_0x253d('0x58'),_0x41bb33='table'+_0xca313,_0xd5f1f1=_0x253d('0x4b')+_0xca313,_0x175786=_0x253d('0x49')+_0xca313;_0x422fe3[_0x253d('0x3b')](_0x5a107c,()=>{_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x828685=>{const _0x406fe8=_0x2092b1[_0x253d('0x8')](_0x3ed342),_0x6346a7=_0x406fe8[0x0][_0x253d('0x7f')](_0x253d('0x42'));let _0x8618b5;if(_0x253d('0x2b')==_0x5a107c){const _0x32c084=_0x2092b1[_0x253d('0x22')](_0x406fe8);_0x8618b5={'startRow':_0x32c084[_0x253d('0x33')],'endRow':_0x32c084['last'],'includeAllSlots':!0x0};}else{const _0x2d42c1=_0x2092b1['getColumnIndexes'](_0x406fe8);_0x8618b5={'startColumn':_0x2d42c1[_0x253d('0x33')],'endColumn':_0x2d42c1[_0x253d('0x17')],'includeAllSlots':!0x0};}const _0x2520b9=_0x2092b1[_0x253d('0x85')](_0x6346a7,_0x8618b5),_0x5adb05=Array['from'](_0x2520b9)[_0x253d('0x75')](({cell:_0x6d9523})=>_0x6d9523),_0x203aae=se(_0x5adb05['filter'](_0x1bc5f0=>_0x1bc5f0[_0x253d('0x5')](_0x527f6c))),_0x3f521e=se(_0x5adb05['filter'](_0x5cfbcd=>!_0x5cfbcd['hasAttribute'](_0x527f6c)))['map'](_0x10e83a=>_0x828685[_0x253d('0x6')](_0x10e83a)),_0x3ffb54=_0x422fe3[_0x253d('0x32')](_0x3f521e,_0x41bb33);if(_0x3ffb54&&('tableRow'==_0x3ffb54['subType']||_0x253d('0x59')==_0x3ffb54['subType'])){const _0x1a2613=this[_0x253d('0x3f')](_0x3ffb54);for(const _0x41e968 of _0x203aae){const _0x283d5f=_0x828685['createRangeOn'](_0x41e968),_0x5c417c=_0x2092b1[_0x253d('0x34')](_0x41e968),_0x5e3723=_0x41e968[_0x253d('0x41')](_0x527f6c)-0x1,_0x4b771f=_0x1a2613[_0xd5f1f1],_0x576cc8=_0x1a2613[_0x175786];_0x4b771f<=_0x5c417c[_0x383a16]&&_0x5c417c[_0x383a16]+_0x5e3723<=_0x576cc8&&_0x3ffb54[_0x253d('0x71')](_0x283d5f);}}});});}function _0x14ddf9(_0xedc7db){const _0x420831=Array['from'](_0x3ed342[_0x253d('0x4e')]())[_0x253d('0x75')](_0x45b9f3=>_0x40fb04[_0x253d('0x50')](_0x45b9f3));_0x131801['model']['change'](_0x1b0d13=>{const _0x3ac08b=_0x1b0d13[_0x253d('0x6b')];_0xedc7db=_0xedc7db[_0x253d('0x63')](_0x1b6931=>_0x253d('0x3d')!=_0x1b6931[_0x253d('0x30')]['rootName']),_0x1b0d13['setSelection'](_0xedc7db),_0x131801['commands'][_0x253d('0x1d')](_0x253d('0x2b'))[_0x253d('0x80')](),_0x131801[_0x253d('0x77')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x131801[_0x253d('0x3a')][_0x253d('0xc')](()=>{_0x131801['model'][_0x253d('0xc')](_0x3ac08b,_0x22af20=>{const _0x47f64f=_0x420831[_0x253d('0x63')](_0x3b3d78=>'$graveyard'!=_0x3b3d78[_0x253d('0x30')][_0x253d('0x5f')]);_0x47f64f[_0x253d('0x7e')]>0x0&&_0x22af20[_0x253d('0x6c')](_0x47f64f);for(const _0x5481fd of _0x420831)_0x5481fd[_0x253d('0x5c')]();});});});}function _0x445085(_0x3f7acc){_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x118d24=>{const _0x58d233=Array[_0x253d('0x20')](_0x3ed342[_0x253d('0x4e')]())[_0x253d('0x75')](_0x2975b6=>_0x40fb04[_0x253d('0x50')](_0x2975b6)),_0x53debf=[];for(const _0x8bf14b of _0x3f7acc)for(const _0x5edb51 of _0x8bf14b['getItems']({'shallow':!0x0}))_0x53debf[_0x253d('0x6e')](_0x5edb51);for(const _0x18fa84 of _0x53debf)_0x253d('0x3d')!=_0x18fa84[_0x253d('0x30')][_0x253d('0x5f')]&&(_0x118d24[_0x253d('0x6c')](_0x118d24[_0x253d('0x36')](_0x18fa84,0x0)),_0x131801[_0x253d('0x31')][_0x253d('0x1d')]('removeTableColumn')[_0x253d('0x80')](),_0x131801[_0x253d('0x77')](_0x253d('0x4a'),{'forceDefaultExecution':!0x0}));const _0x54c109=_0x58d233[_0x253d('0x63')](_0xe3bb0b=>'$graveyard'!=_0xe3bb0b[_0x253d('0x30')][_0x253d('0x5f')]);_0x54c109[_0x253d('0x7e')]>0x0&&_0x118d24['setSelection'](_0x54c109);for(const _0xfebe96 of _0x58d233)_0xfebe96[_0x253d('0x5c')]();});}function _0x2aea1d(_0x13948a,_0x23d5cf){return _0x23d5cf[_0x253d('0x26')](_0x12a18e=>_0x13948a['some'](_0x23868b=>_0x23868b[_0x253d('0x60')][_0x253d('0x7c')](_0x12a18e[_0x253d('0x44')])||_0x12a18e[_0x253d('0x60')]['isEqual'](_0x23868b[_0x253d('0x44')])));}function _0x55e587(_0x233bec,_0x3c2786){return _0x233bec[_0x253d('0x70')](_0x3b834b=>_0x3c2786[_0x253d('0x70')](_0x35f538=>_0x3b834b[_0x253d('0x60')][_0x253d('0x24')](_0x35f538[_0x253d('0x44')])));}_0x131801[_0x253d('0x15')]['downcastDispatcher']['on'](_0x253d('0x53'),(_0x50cc0e,_0x4a7fc9,_0x2a938a)=>{if(!_0x2a938a[_0x253d('0x16')][_0x253d('0x5b')])return;const _0x26e25a=_0x4a7fc9[_0x253d('0x4')];if(!_0x26e25a)return;const _0x3bc640=_0x2a938a['mapper'][_0x253d('0x79')](_0x26e25a);function _0x28573c(_0xe7f8a5){return Array['isArray'](_0xe7f8a5)?_0xe7f8a5:[_0xe7f8a5];}_0x3bc640&&'tableCell'===_0x26e25a[_0x253d('0x1e')]&&_0x4c6e02(_0x3bc640,_0x2a938a['writer'],(_0x940f08,_0x490369,_0x23fba4)=>_0x23fba4['addClass'](_0x28573c(_0x490369[_0x253d('0xf')]),_0x940f08),(_0x4fbfed,_0x504da4,_0x5af3aa)=>_0x5af3aa[_0x253d('0x6d')](_0x28573c(_0x504da4[_0x253d('0xf')]),_0x4fbfed));},{'priority':'highest'}),_0x422fe3[_0x253d('0x38')]['registerDescriptionCallback'](_0x25c5f2=>{if(_0x253d('0x1')!=_0x25c5f2[_0x253d('0x67')]&&_0x253d('0x5e')!=_0x25c5f2['type'])return;const _0x1f3ef2=_0x25c5f2[_0x253d('0x48')]();if(null!=_0x1f3ef2&&_0x1f3ef2['is'](_0x253d('0x18'),_0x253d('0x42'))){if(_0x253d('0x1')==_0x25c5f2[_0x253d('0x67')]){const _0x4fe284=_0x25c5f2[_0x253d('0x3c')]()['filter'](_0x4e1809=>_0x4e1809['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x163114=>_0x163114[_0x253d('0x15')]);if(_0x4fe284['length'])return{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,_0x253d('0x81'),'\x22'+_0x4fe284[_0x253d('0x84')]('\x20')+'\x22'))};}if('deletion'==_0x25c5f2[_0x253d('0x67')]){const _0x1da871=_0x25c5f2[_0x253d('0x3c')]()[_0x253d('0x63')](_0x1a9560=>_0x1a9560['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x23a8e6=>_0x23a8e6[_0x253d('0x15')]);if(_0x1da871['length'])return{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x81'),'\x22'+_0x1da871[_0x253d('0x84')]('\x20')+'\x22'))};}}}),_0x422fe3[_0x253d('0x38')][_0x253d('0x9')](_0x1593fe=>{if(_0x253d('0x45')==_0x1593fe['subType']){const _0x4fb327=_0x1593fe['getItems']()['filter'](_0x1418b3=>_0x1418b3['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x770b6=>_0x770b6[_0x253d('0x15')]),_0x419a27=this[_0x253d('0x3f')](_0x1593fe),_0x2cf3e9=_0x419a27[_0x253d('0x10')]-_0x419a27[_0x253d('0x29')]+0x1;if(_0x253d('0x1')==_0x1593fe[_0x253d('0x67')])return _0x4fb327['length']?{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,_0x253d('0x3'),[_0x2cf3e9,'\x22'+_0x4fb327[_0x253d('0x84')]('\x20')+'\x22']))}:{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,'ELEMENT_TABLE_ROW',_0x2cf3e9))};if(_0x253d('0x5e')==_0x1593fe[_0x253d('0x67')])return _0x4fb327[_0x253d('0x7e')]?{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x3'),[_0x2cf3e9,'\x22'+_0x4fb327[_0x253d('0x84')]('\x20')+'\x22']))}:{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x2a'),_0x2cf3e9))};}if(_0x253d('0x59')==_0x1593fe[_0x253d('0x19')]){const _0x341617=_0x1593fe[_0x253d('0x3c')]()[_0x253d('0x63')](_0x4d8d53=>_0x4d8d53['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x3ce6e0=>_0x3ce6e0[_0x253d('0x15')]),_0x32c3da=this[_0x253d('0x3f')](_0x1593fe),_0x2315db=_0x32c3da[_0x253d('0x61')]-_0x32c3da[_0x253d('0x62')]+0x1;if(_0x253d('0x1')==_0x1593fe[_0x253d('0x67')])return _0x341617['length']?{'type':'insertion','content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,_0x253d('0x25'),[_0x2315db,'\x22'+_0x341617['join']('\x20')+'\x22']))}:{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,'*Insert:*\x20%0',_0x3b2a6c(_0x3a3588,'ELEMENT_TABLE_COLUMN',_0x2315db))};if(_0x253d('0x5e')==_0x1593fe[_0x253d('0x67')])return _0x341617[_0x253d('0x7e')]?{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,'*Remove:*\x20%0',_0x3b2a6c(_0x3a3588,_0x253d('0x25'),[_0x2315db,'\x22'+_0x341617[_0x253d('0x84')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x11'),_0x2315db))};}}),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x1'),_0x253d('0x45'),'discard',_0x14ddf9),_0x422fe3[_0x253d('0xb')]['registerCustomCallback'](_0x253d('0x5e'),_0x253d('0x45'),_0x253d('0x7'),_0x14ddf9),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x1'),_0x253d('0x59'),'discard',_0x445085),_0x422fe3[_0x253d('0xb')]['registerCustomCallback']('deletion',_0x253d('0x59'),'accept',_0x445085),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')]('insertion',_0x253d('0x59'),_0x253d('0x84'),_0x2aea1d),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x5e'),_0x253d('0x59'),_0x253d('0x84'),_0x2aea1d),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')]('insertion',_0x253d('0x45'),_0x253d('0x84'),_0x55e587),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x5e'),_0x253d('0x45'),'join',_0x55e587);}[_0x253d('0x2d')](){const _0x5bd20c=this[_0x253d('0x5a')],_0x5d684f=_0x5bd20c['model'][_0x253d('0x2e')][_0x253d('0x74')];return(_0x5de76f,_0x25e6bd)=>{_0x5bd20c[_0x253d('0x3a')][_0x253d('0x6a')](_0x1994da=>{const {commandName:_0x2bde38,commandParams:_0x46a6a8}=_0x25e6bd;let _0x4762ca=_0x5de76f[0x0]['end'][_0x253d('0x13')];_0x46a6a8&&_0x46a6a8[0x0]&&!0x1===_0x46a6a8[0x0][_0x253d('0x23')]&&(_0x4762ca=_0x5de76f[0x0][_0x253d('0x44')]['nodeAfter']);const _0x357bd0=_0x1994da[_0x253d('0x56')](_0x4762ca);if(_0x253d('0x3d')==_0x357bd0[_0x253d('0x30')][_0x253d('0x5f')])return;const _0x4d2b63=Array[_0x253d('0x20')](_0x5d684f['getRanges']())['map'](_0xb39740=>_0x40fb04[_0x253d('0x50')](_0xb39740));_0x1994da[_0x253d('0x6c')](_0x357bd0),_0x5bd20c[_0x253d('0x31')][_0x253d('0x1d')](_0x2bde38)[_0x253d('0x80')](),_0x46a6a8[_0x253d('0x6e')]({'forceDefaultExecution':!0x0}),_0x5bd20c[_0x253d('0x77')](_0x2bde38,..._0x46a6a8);const _0x513a5b=_0x4d2b63[_0x253d('0x63')](_0x270bce=>'$graveyard'!=_0x270bce['root'][_0x253d('0x5f')]);_0x513a5b[_0x253d('0x7e')]>0x0&&_0x1994da['setSelection'](_0x513a5b);for(const _0x1f6d11 of _0x4d2b63)_0x1f6d11[_0x253d('0x5c')]();});};}['_getCoordsForCells'](_0x2e2c29){const _0x2014ca=this[_0x253d('0x5a')][_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0x54'));let _0x4db821=Number['MAX_SAFE_INTEGER'],_0xb961b3=Number[_0x253d('0x64')],_0x7b015=Number[_0x253d('0x55')],_0x4b7fd7=Number[_0x253d('0x64')];for(const _0x1ec739 of _0x2e2c29){if(_0x253d('0x3d')==_0x1ec739[_0x253d('0x30')][_0x253d('0x5f')])continue;const {row:_0x59dc28,column:_0x51f8e7}=_0x2014ca[_0x253d('0x34')](_0x1ec739),_0x291659=_0x1ec739['hasAttribute'](_0x253d('0x4c'))?_0x1ec739[_0x253d('0x41')](_0x253d('0x4c'))-0x1:0x0,_0x3bd20e=_0x1ec739[_0x253d('0x5')](_0x253d('0x65'))?_0x1ec739['getAttribute'](_0x253d('0x65'))-0x1:0x0;_0x4db821=_0x59dc28<_0x4db821?_0x59dc28:_0x4db821,_0xb961b3=_0x59dc28+_0x291659>_0xb961b3?_0x59dc28+_0x291659:_0xb961b3,_0x7b015=_0x51f8e7<_0x7b015?_0x51f8e7:_0x7b015,_0x4b7fd7=_0x51f8e7+_0x3bd20e>_0x4b7fd7?_0x51f8e7+_0x3bd20e:_0x4b7fd7;}return{'minRow':_0x4db821,'maxRow':_0xb961b3,'minColumn':_0x7b015,'maxColumn':_0x4b7fd7};}[_0x253d('0x86')](){const _0x1babd9=this[_0x253d('0x5a')],_0x5931aa=_0x1babd9['plugins']['get']('TrackChangesEditing'),_0x3f7308=_0x1babd9[_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0x54'));_0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')]['on'](_0x253d('0x82'),()=>{const _0xd4ecbf=Array[_0x253d('0x20')](_0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0x51')][_0x253d('0x46')]());for(const {name:_0x3bfa29,data:_0x1b9ec3}of _0xd4ecbf){const {group:_0x3a4371,id:_0x16e4e5,subType:_0x544a64}=_0x5931aa['_splitMarkerName'](_0x3bfa29);if(_0x253d('0x28')!=_0x3a4371)continue;if(null!=_0x1b9ec3[_0x253d('0x47')])continue;const _0x309dc0=_0x5931aa[_0x253d('0x57')](_0x16e4e5);this[_0x253d('0x73')][_0x253d('0x2f')](_0x544a64)&&this[_0x253d('0x69')][_0x253d('0x76')](_0x309dc0);}},{'priority':'low'});const _0x37b804=(_0x3cfd8b,_0x19c309)=>{let _0x5b7260=!0x1;const _0x282368=_0x19c309['createRangeOn'](_0x3cfd8b),_0x3cde4d=_0x3cfd8b[_0x253d('0x7f')](_0x253d('0x42')),_0x2c8a81=_0x3f7308[_0x253d('0x34')](_0x3cfd8b);for(const _0x2624db of this['_tableSuggestions']){const _0x22a6af=_0x2624db[_0x253d('0x19')],_0x3efbd4=_0x22a6af['startsWith'](_0x253d('0x5d')),_0x560e01=_0x22a6af['substr'](_0x3efbd4?0xa:0x5),_0x7f8f6a=_0x560e01[_0x253d('0x3e')](),_0x4bd6cf=_0x7f8f6a['substr'](0x0,0x3)+_0x253d('0x58'),_0x19b46e=_0x253d('0x4b')+_0x560e01,_0x4ae3c0=_0x253d('0x49')+_0x560e01;if(!_0x2624db[_0x253d('0x43')])continue;if(_0x3cde4d!=_0x2624db[_0x253d('0x66')]()[_0x253d('0x44')][_0x253d('0x7f')](_0x253d('0x42')))continue;if(_0x2624db[_0x253d('0x72')](_0x282368))continue;const _0x489b18=_0x3cfd8b[_0x253d('0x5')](_0x4bd6cf)?_0x3cfd8b[_0x253d('0x41')](_0x4bd6cf)-0x1:0x0,_0x19faa6=this[_0x253d('0x3f')](_0x2624db),_0xb31a55=_0x19faa6[_0x19b46e],_0x4f35a9=_0x19faa6[_0x4ae3c0];_0xb31a55<=_0x2c8a81[_0x7f8f6a]&&_0x2c8a81[_0x7f8f6a]+_0x489b18<=_0x4f35a9&&(_0x2624db['addRange'](_0x282368),_0x5b7260=!0x0);}return _0x5b7260;};_0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0xe')](_0xf773b3=>{let _0x3b10fd=!0x1;for(const _0x408d71 of _0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0x51')]['getChanges']())if(_0x253d('0x12')==_0x408d71[_0x253d('0x67')]){if(_0x253d('0x45')==_0x408d71[_0x253d('0x1e')])for(const _0x3256bc of _0x408d71['position'][_0x253d('0x21')][_0x253d('0x1a')]())_0x3b10fd=_0x3b10fd||_0x37b804(_0x3256bc,_0xf773b3);else _0x253d('0x83')==_0x408d71[_0x253d('0x1e')]&&(_0x3b10fd=_0x3b10fd||_0x37b804(_0x408d71[_0x253d('0x7d')][_0x253d('0x21')],_0xf773b3));}return _0x3b10fd;});}[_0x253d('0x3f')](_0x54fadc){return this['_getCoordsForCells'](_0x54fadc[_0x253d('0x4e')]()['map'](_0x14b2e5=>_0x14b2e5[_0x253d('0x44')][_0x253d('0x21')]));}}function se(_0x4c4b5a){return Array[_0x253d('0x20')](new Set(_0x4c4b5a)[_0x253d('0xa')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4509=['requires','afterInit','TableCaptionEditing','TrackChangesEditing','has','editor','toggleTableCaption','plugins','get'];(function(_0x526ce3,_0x4509d9){const _0x4dd66a=function(_0x1b2fe6){while(--_0x1b2fe6){_0x526ce3['push'](_0x526ce3['shift']());}};_0x4dd66a(++_0x4509d9);}(_0x4509,0x1be));const _0x4dd6=function(_0x526ce3,_0x4509d9){_0x526ce3=_0x526ce3-0x0;let _0x4dd66a=_0x4509[_0x526ce3];return _0x4dd66a;};import{Plugin as _0x1f856a}from'ckeditor5/src/core';import _0xf59066 from'./table';export default class vt extends _0x1f856a{static get[_0x4dd6('0x4')](){return[_0xf59066];}[_0x4dd6('0x5')](){const _0x3dfe9c=this[_0x4dd6('0x0')];if(!_0x3dfe9c[_0x4dd6('0x2')][_0x4dd6('0x8')](_0x4dd6('0x6')))return;_0x3dfe9c[_0x4dd6('0x2')][_0x4dd6('0x3')](_0x4dd6('0x7'))['enableCommand'](_0x4dd6('0x1'));}}
|